PageSourceSearch

https://lk.esi.bz/8815.8f2961386f5d3e1d.js

js esi.bz collected 2026-10-08 15:21:53 UTC 343,790 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkthingsboard=self.webpackChunkthingsboard||[]).push([[8815],{38815:($g,Yi,Qi)=>{Qi.r(Yi),Qi.d(Yi,{AST:()=>H,ASTWithName:()=>Js,ASTWithSource:()=>Je,AbsoluteSourceSpan:()=>xe,ArrayType:()=>fo,AstMemoryEfficientTransformer:()=>ka,AstTransformer:()=>Ra,Attribute:()=>rn,Binary:()=>De,BinaryOperator:()=>S,BinaryOperatorExpr:()=>F,BindingPipe:()=>tn,BoundElementProperty:()=>hi,BuiltinType:()=>Me,BuiltinTypeName:()=>ge,CUSTOM_ELEMENTS_SCHEMA:()=>dn,Call:()=>Pt,Chain:()=>Kn,ChangeDetectionStrategy:()=>Et,CommaExpr:()=>xn,Comment:()=>ds,CompilerConfig:()=>ym,Conditional:()=>Xn,ConditionalExpr:()=>Ts,ConstantPool:()=>Br,CssSelector:()=>Ue,DEFAULT_INTERPOLATION_CONFIG:()=>he,DYNAMIC_TYPE:()=>tt,DeclareFunctionStmt:()=>Ns,DeclareVarStmt:()=>Re,DomElementSchemaRegistry:()=>fr,EOF:()=>lr,Element:()=>hs,ElementSchemaRegistry:()=>lu,EmitterVisitorContext:()=>Dn,EmptyExpr:()=>de,Expansion:()=>ps,ExpansionCase:()=>Ti,Expression:()=>O,ExpressionBinding:()=>Ma,ExpressionStatement:()=>ke,ExpressionType:()=>Ae,ExternalExpr:()=>Ht,ExternalReference:()=>xo,FactoryTarget:()=>Ee,FunctionExpr:()=>rt,HtmlParser:()=>Li,HtmlTagDefinition:()=>I,I18NHtmlParser:()=>ig,IfStmt:()=>Ps,ImplicitReceiver:()=>Nt,InstantiateExpr:()=>xt,Interpolation:()=>J,InterpolationConfig:()=>Ws,InvokeFunctionExpr:()=>nt,JSDocComment:()=>Cn,JitEvaluator:()=>ba,KeyedRead:()=>Zs,KeyedWrite:()=>Jn,LeadingComment:()=>wn,Lexer:()=>xi,LiteralArray:()=>sn,LiteralArrayExpr:()=>St,LiteralExpr:()=>ce,LiteralMap:()=>Zn,LiteralMapExpr:()=>Gt,LiteralPrimitive:()=>oe,LocalizedString:()=>Nr,MapType:()=>mo,MessageBundle:()=>ag,NONE_TYPE:()=>ve,NO_ERRORS_SCHEMA:()=>fn,NodeWithI18n:()=>ls,NonNullAssert:()=>tr,NotExpr:()=>Is,ParseError:()=>ss,ParseErrorLevel:()=>Fe,ParseLocation:()=>ct,ParseSourceFile:()=>jn,ParseSourceSpan:()=>W,ParseSpan:()=>rs,ParseTreeResult:()=>ms,ParsedEvent:()=>pi,ParsedProperty:()=>nr,ParsedPropertyType:()=>pt,ParsedVariable:()=>Ba,Parser:()=>Ai,ParserError:()=>Gn,PrefixNot:()=>er,PropertyRead:()=>Qe,PropertyWrite:()=>Yn,R3BoundTarget:()=>ql,R3Identifiers:()=>u,R3SelectorScopeMode:()=>ns,R3TargetBinder:()=>lg,R3TemplateDependencyKind:()=>Ye,ReadKeyExpr:()=>bs,ReadPropExpr:()=>Wt,ReadVarExpr:()=>yt,RecursiveAstVisitor:()=>ci,RecursiveVisitor:()=>Qh,ResourceLoader:()=>cl,ReturnStatement:()=>U,STRING_TYPE:()=>vn,SafeCall:()=>nn,SafeKeyedRead:()=>en,SafePropertyRead:()=>Qn,SelectorContext:()=>eo,SelectorListContext:()=>Zi,SelectorMatcher:()=>Es,Serializer:()=>$s,SplitInterpolation:()=>ou,Statement:()=>wt,StmtModifier:()=>re,TagContentType:()=>Se,TaggedTemplateExpr:()=>Cs,TemplateBindingParseResult:()=>au,TemplateLiteral:()=>En,TemplateLiteralElement:()=>_n,Text:()=>cs,ThisReceiver:()=>zn,TmplAstBoundAttribute:()=>Bs,TmplAstBoundEvent:()=>Fs,TmplAstBoundText:()=>Ln,TmplAstContent:()=>Ho,TmplAstElement:()=>Xt,TmplAstIcu:()=>Vr,TmplAstRecursiveVisitor:()=>Wc,TmplAstReference:()=>jo,TmplAstTemplate:()=>Be,TmplAstText:()=>ks,TmplAstTextAttribute:()=>Mn,TmplAstVariable:()=>Or,Token:()=>Oe,TokenType:()=>D,TreeError:()=>Ce,Type:()=>Ot,TypeModifier:()=>ys,TypeofExpr:()=>qt,Unary:()=>$e,UnaryOperator:()=>st,UnaryOperatorExpr:()=>jt,VERSION:()=>_m,VariableBinding:()=>sr,Version:()=>Po,ViewEncapsulation:()=>ue,WrappedNodeExpr:()=>A,WriteKeyExpr:()=>Ss,WritePropExpr:()=>ws,WriteVarExpr:()=>xs,Xliff:()=>Pl,Xliff2:()=>kl,Xmb:()=>zo,XmlParser:()=>Mt,Xtb:()=>Ol,_ParseAST:()=>us,compileClassMetadata:()=>pg,compileComponentFromMetadata:()=>tl,compileDeclareClassMetadata:()=>dg,compileDeclareComponentFromMetadata:()=>_g,compileDeclareDirectiveFromMetadata:()=>gg,compileDeclareFactoryFunction:()=>Ag,compileDeclareInjectableFromMetadata:()=>Ig,compileDeclareInjectorFromMetadata:()=>Ng,compileDeclareNgModuleFromMetadata:()=>Mg,compileDeclarePipeFromMetadata:()=>Bg,compileDirectiveFromMetadata:()=>el,compileFactoryFunction:()=>it,compileInjectable:()=>Xr,compileInjector:()=>ai,compileNgModule:()=>Na,compilePipeFromMetadata:()=>li,computeMsgId:()=>br,core:()=>Xl,createInjectableType:()=>Yr,createMayBeForwardRefExpression:()=>Pn,devOnlyGuardedExpression:()=>$o,emitDistinctChangesOnlyDefaultValue:()=>to,getHtmlTagDefinition:()=>Ii,getNsPrefix:()=>hr,getSafePropertyAccessString:()=>Bo,identifierName:()=>Aa,isIdentifier:()=>jh,isNgContainer:()=>cr,isNgContent:()=>pr,isNgTemplate:()=>uu,jsDocComment:()=>Mr,leadingComment:()=>So,literalMap:()=>G,makeBindingParser:()=>ln,mergeNsAndName:()=>dr,outputAst:()=>vc,parseHostBindings:()=>al,parseTemplate:()=>
1zu,preserveWhitespacesDefault:()=>Cl,publishFacade:()=>wl,r3JitTypeSourceSpan:()=>Ca,sanitizeIdentifier:()=>Dt,splitNsName:()=>we,verifyHostBindings:()=>ul,visitAll:()=>P});const Ji=new RegExp("(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g");class Ue{constructor(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}static parse(e){const t=[],s=(l,c)=>{c.notSelectors.length>0&&!c.element&&0==c.classNames.length&&0==c.attrs.length&&(c.element="*"),l.push(c)};let i,r=new Ue,o=r,a=!1;for(Ji.lastIndex=0;i=Ji.exec(e);){if(i[1]){if(a)throw new Error("Nesting :not in a selector is not allowed");a=!0,o=new Ue,r.notSelectors.push(o)}const l=i[2];if(l){const p=i[3];"#"===p?o.addAttribute("id",l.slice(1)):"."===p?o.addClassName(l.slice(1)):o.setElement(l)}const c=i[4];if(c&&o.addAttribute(o.unescapeAttribute(c),i[6]),i[7]&&(a=!1,o=r),i[8]){if(a)throw new Error("Multiple selectors in :not are not supported");s(t,r),r=o=new Ue}}return s(t,r),t}unescapeAttribute(e){let t="",s=!1;for(let r=0;r<e.length;r++){const i=e.charAt(r);if("\\"!==i){if("$"===i&&!s)throw new Error(`Error in attribute selector "${e}". Unescaped "$" is not supported. Please escape with "\\$".`);s=!1,t+=i}else s=!0}return t}escapeAttribute(e){return e.replace(/\\/g,"\\\\").replace(/\$/g,"\\$")}isElementSelector(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length}hasElementSelector(){return!!this.element}
1setElement(e=null){this.element=e}getAttrs(){const e=[];return this.classNames.length>0&&e.push("class",this.classNames.join(" ")),e.concat(this.attrs)}addAttribute(e,t=""){this.attrs.push(e,t&&t.toLowerCase()||"")}addClassName(e){this.classNames.push(e.toLowerCase())}toString(){let e=this.element||"";if(this.classNames&&this.classNames.forEach(t=>e+=`.${t}`),this.attrs)for(let t=0;t<this.attrs.length;t+=2){const s=this.escapeAttribute(this.attrs[t]),r=this.attrs[t+1];e+=`[${s}${r?"="+r:""}]`}return this.notSelectors.forEach(t=>e+=`:not(${t})`),e}}class Es{constructor(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}static createNotMatcher(e){const t=new Es;return t.addSelectables(e,null),t}addSelectables(e,t){let s=null;e.length>1&&(s=new Zi(e),this._listContexts.push(s));for(let r=0;r<e.length;r++)this._addSelectable(e[r],t,s)}_addSelectable(e,t,s){let r=this;const i=e.element,o=e.classNames,a=e.attrs,l=new eo(e,t,s);if(i&&(0===a.length&&0===o.length?this._addTerminal(r._elementMap,i,l):r=this._addPartial(r._elementPartialMap,i)),o)for(let c=0;c<o.length;c++){const p=0===a.length&&c===o.length-1,h=o[c];p?this._addTerminal(r._classMap,h,l):r=this._addPartial(r._classPartialMap,h)}
1if(a)for(let c=0;c<a.length;c+=2){const p=c===a.length-2,h=a[c],m=a[c+1];if(p){const g=r._attrValueMap;let v=g.get(h);v||(v=new Map,g.set(h,v)),this._addTerminal(v,m,l)}else{const g=r._attrValuePartialMap;let v=g.get(h);v||(v=new Map,g.set(h,v)),r=this._addPartial(v,m)}}}_addTerminal(e,t,s){let r=e.get(t);r||(r=[],e.set(t,r)),r.push(s)}_addPartial(e,t){let s=e.get(t);return s||(s=new Es,e.set(t,s)),s}match(e,t){let s=!1;const r=e.element,i=e.classNames,o=e.attrs;for(let a=0;a<this._listContexts.length;a++)this._listContexts[a].alreadyMatched=!1;if(s=this._matchTerminal(this._elementMap,r,e,t)||s,s=this._matchPartial(this._elementPartialMap,r,e,t)||s,i)for(let a=0;a<i.length;a++){const l=i[a];s=this._matchTerminal(this._classMap,l,e,t)||s,s=this._matchPartial(this._classPartialMap,l,e,t)||s}if(o)for(let a=0;a<o.length;a+=2){const l=o[a],c=o[a+1],p=this._attrValueMap.get(l);c&&(s=this._matchTerminal(p,"",e,t)||s),s=this._matchTerminal(p,c,e,t)||s;const h=this._attrValuePartialMap.get(l);c&&(s=this._matchPartial(h,"",e,t)||s),s=this._matchPartial(h,c,e,t)||s}return s}_matchTerminal(e,t,s,r){if(!e||"string"!=typeof t)return!1;let i=e.get(t)||[];const o=e.get("*");if(o&&(i=i.concat(o)),0===i.length)return!1;let a,l=!1;for(let c=0;c<i.length;c++)a=i[c],l=a.finalize(s,r)||l;return l}_matchPartial(e,t,s,r){if(!e||"string"!=typeof t)return!1;const i=e.get(t);return!!i&&i.match(s,r)}}class Zi{constructor(e){this.selectors=e,this.alreadyMatched=!1}}class eo{constructor(e,t,s){this.selector=e,this.cbContext=t,this.listContext=s,this.notSelectors=e.notSelectors}finalize(e,t){let s=!0;return this.notSelectors.length>0&&(!this.listContext||!this.listContext.alreadyMatched)&&(s=!Es.createNotMatcher(this.notSelectors).match(e,null)),s&&t&&(!this.listContext||!this.listContext.alreadyMatched)&&(this.listContext&&(this.listContext.alreadyMatched=!0),t(this.selector,this.cbContext)),s}}const to=!0;var ue,n,Et;(n=ue||(ue={}
1))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",function(n){n[n.OnPush=0]="OnPush",n[n.Default=1]="Default"}(Et||(Et={}));const dn={name:"custom-elements"},fn={name:"no-errors-schema"},Wl=Function;var V,_t;function Kl(n){const e=function Gl(n){const e=n.classNames&&n.classNames.length?[8,...n.classNames]:[];return[n.element&&"*"!==n.element?n.element:"",...n.attrs,...e]}(n),t=n.notSelectors&&n.notSelectors.length?n.notSelectors.map(s=>function zl(n){const e=n.classNames&&n.classNames.length?[8,...n.classNames]:[];return n.element?[5,n.element,...n.attrs,...e]:n.attrs.length?[3,...n.attrs,...e]:n.classNames&&n.classNames.length?[9,...n.classNames]:[]}(s)):[];return e.concat(...t)}function mn(n){return n?Ue.parse(n).map(Kl):[]}!function(n){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"}(V||(V={})),function(n){n[n.Error=0]="Error",n[n.Warning=1]="Warning",n[n.Ignore=2]="Ignore"}(_t||(_t={}));var Xl=Object.freeze({__proto__:null,emitDistinctChangesOnlyDefaultValue:to,get ViewEncapsulation(){return ue},get ChangeDetectionStrategy(){return Et},CUSTOM_ELEMENTS_SCHEMA:dn,NO_ERRORS_SCHEMA:fn,Type:Wl,get SecurityContext(){return V},get MissingTranslationStrategy(){return _t},parseSelectorToR3Selector:mn});class Ft{static zero(){return new Ft([0])}static one(){return new Ft([1])}constructor(e){this.digits=e}clone(){return new Ft(this.digits.slice())}add(e){const t=this.clone();return t.addToSelf(e),t}addToSelf(e){const t=Math.max(this.digits.length,e.digits.length);let s=0;for(let r=0;r<t;r++){let i=s;r<this.digits.length&&(i+=this.digits[r]),r<e.digits.length&&(i+=e.digits[r]),i>=10?(this.digits[r]=i-10,s=1):(this.digits[r]=i,s=0)}s>0&&(this.digits[t]=1)}toString(){let e="";for(let t=this.digits.length-1;t>=0;t--)e+=this.digits[t];return e}}class so{constructor(e){this.powerOfTwos=[e]}getValue(){return this.powerOfTwos[0]}multiplyBy(e){const t=Ft.zero();return this.multiplyByAndAddTo(e,t),t}multiplyByAndAddTo(e,t){for(let s=0;0!==e;e>>>=1,s++)if(1&e){const r=this.getMultipliedByPowerOfTwo(s);t.addToSelf(r)}}getMultipliedByPowerOfTwo(e){for(let t=this.powerOfTwos.length;t<=e;t++){const s=this.powerOfTwos[t-1];this.powerOfTwos[t]=s.add(s)}return this.powerOfTwos[e]}}let $t;function no(n){return n.id||ro(n)}function ro(n){return function ec(n){var e;null!==(e=$t)&&void 0!==e||($t=new TextEncoder);const t=[...$t.encode(n)],s=function rc(n,e){const t=n.length+3>>>2,s=[];for(let r=0;r<t;r++)s[r]=ic(n,4*r,e);return s}(t,gn.Big),r=8*t.length,i=new Uint32Array(80);let o=1732584193,a=4023233417,l=2562383102,c=271733878,p=3285377520;s[r>>5]|=128<<24-r%32,s[15+(r+64>>9<<4)]=r;for(let h=0;h<s.length;h+=16){const m=o,g=a,v=l,_=c,x=p;for(let w=0;w<80;w++){i[w]=w<16?s[h+w]:Dr(i[w-3]^i[w-8]^i[w-14]^i[w-16],1);const y=tc(w,a,l,c),C=y[0],B=y[1],Q=[Dr(o,5),C,p,B,i[w]].reduce(et);p=c,c=l,l=Dr(a,30),a=o,o=Q}o=et(o,m),a=et(a,g),l=et(l,v),c=et(c,_),p=et(p,x)}return _s(o)+_s(a)+_s(l)+_s(c)+_s(p)}(function Jl(n){return n.map(e=>e.visit(Ql,null))}(n.nodes).join("")+`[${n.meaning}]`)}function Ir(n){return n.id||io(n)}function io(n){const e=new Zl;return br(n.nodes.map(s=>s.visit(e,null)).join(""),n.meaning)}class oo{visitText(e,t){return e.value}visitContainer(e,t){return`[${e.children.map(s=>s.visit(this)).join(", ")}]`}visitIcu(e,t){const s=Object.keys(e.cases).map(r=>`${r} {${e.cases[r].visit(this)}}`);return`{${e.expression}, ${e.type}, ${s.join(", ")}}`}visitTagPlaceholder(e,t){return e.isVoid?`<ph tag name="${e.startName}"/>`:`<ph tag name="${e.startName}">${e.children.map(s=>s.visit(this)).join(", ")}</ph name="${e.closeName}">`}visitPlaceholder(e,t){return e.value?`<ph name="${e.name}">${e.value}</ph>`:`<ph name="${e.name}"/>`}visitIcuPlaceholder(e,t){return`<ph icu name="${e.name}">${e.value.visit(this)}</ph>`}}const Ql=new oo;class Zl extends oo{visitIcu(e,t){let s=Object.keys(e.cases).map(r=>`${r} {${e.cases[r].visit(this)}}`);return`{${e.type}, ${s.join(", ")}}`}}function _s(n){return(n>>>0).toString(16).padStart(8,"0")}function tc(n,e,t,s){return n<20?[e&t|~e&s,1518500249]:n<40?[e^t^s,1859775393]:n<60?[e&t|e&s|t&s,2400959708]:[e^t^s,3395469782]}function ao(n){var e;null!==(e=$t)&&void 0!==e||($t=new TextEncoder);const t=$t.encode(n),s=new DataView(t.buffer,t.byteOffset,t.byteLength);let r=uo(s,t.length,0),i=uo(s,t.length,102072);return 0==r&&(0==i||1==i)&&(r^=319790063,i^=-1801410264),[r,i]}function br(n,e=""){let t=ao(n);if(e){const i=ao(e);t=function sc(n,e){const t=n[0],s=n[1],r=e[0],i=e[1],o=co(s,i),a=o[0],l=o[1];return[et(et(t,r),a),l]}(function nc(n,e){const t=n[0],s=n[1],r=t<<e|s>>>32-e,i=s<<e|t>>>32-e;return[r,i]}(t,1),i)}return function oc(n,e){const t=ho.toThePowerOf(0).multiplyBy(e);return ho.toThePowerOf(4).multiplyByAndAddTo(n,t),t.toString()}(2147483647&t[0],t[1])}function uo(n,e,t){let s=2654435769,r=2654435769,i=0;const o=e-12;for(;i<=o;i+=12){s+=n.getUint32(i,!0),r+=n.getUint32(i+4,!0);const l=lo(s,r,t+=n.getUint32(i+8,!0));s=l[0],r=l[1],t=l[2]}const a=e-i;return t+=e,a>=4?(s+=n.getUint32(i,!0),i+=4,a>=8?(r+=n.getUint32(i,!0),i+=4,a>=9&&(t+=n.getUint8(i++)<<8),a>=10&&(t+=n.getUint8(i++)<<16),11===a&&(t+=n.getUint8(i++)<<24)):(a>=5&&(r+=n.getUint8(i++)),a>=6&&(r+=n.getUint8(i++)<<8),7===a&&(r+=n.getUint8(i++)<<16))):(a>=1&&(s+=n.getUint8(i++)),a>=2&&(s+=n.getUint8(i++)<<8),3===a&&(s+=n.getUint8(i++)<<16)),lo(s,r,t)[2]}function lo(n,e,t){return n-=e,n-=t,e-=t,e-=n^=t>>>13,t-=n,t-=e^=n<<8,n-=e,n-=t^=e>>>13,e-=t,e-=n^=t>>>12,t-=n,t-=e^=n<<16,n-=e,n-=t^=e>>>5,e-=t,e-=n^=t>>>3,t-=n,t-=e^=n<<10,[n,e,t^=e>>>15]}var gn;function et(n,e){return co(n,e)[1]}function co(n,e){const t=(65535&n)+(65535&e),s=(n>>>16)+(e>>>16)+(t>>>16);return[s>>>16,s<<16|65535&t]}function Dr(n,e){return n<<e|n>>>32-e}function po(n,e){return e>=n.length?0:n[e]}function ic(n,e,t){let s=0;if(t===gn.Big)for(let r=0;r<4;r++)s+=po(n,e+r)<<24-8*r;else for(let r=0;r<4;r++)s+=po(n,e+r)<<8*r;return s}!function(n){n[n.Little=0]="Little",n[n.Big=1]="Big"}(gn||(gn={}));const ho=new class Yl{constructor(e){this.base=e,this.exponents=[new so(Ft.one())]}toThePowerOf(e){for(let t=this.exponents.length;t<=e;t++){const s=this.exponents[t-1].multiplyBy(this.base);this.exponents[t]=new so(s)}return this.exponents[e]}}(256);var ys,ge;!function(n){n[n.None=0]="None",n[n.Const=1]="Const"}(ys||(ys={}));class Ot{constructor(e=ys.None){this.modifiers=e}hasModifier(e){return 0!=(this.modifiers&e)}}!function(n){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"}(ge||(ge={}));class Me extends Ot{constructor(e,t){super(t),this.name=e}visitType(e,t){return e.visitBuiltinType(this,t)}}class Ae extends Ot{constructor(e,t,s=null){super(t),this.value=e,this.typeParams=s}visitType(e,t){return e.visitExpressionType(this,t)}}class fo extends Ot{constructor(e,t){super(t),this.of=e}visitType(e,t){return e.visitArrayType(this,t)}}class mo extends Ot{constructor(e,t){super(t),this.valueType=e||null}visitType(e,t){return e.visitMapType(this,t)}}const tt=new Me(ge.Dynamic),Z=new Me(ge.Inferred),go=new Me(ge.Bool),ac=new Me(ge.Int),Vt=new Me(ge.Number),vn=new Me(ge.String),uc=new Me(ge.Function),ve=new Me(ge.None);var st,S;function vo(n,e){return null==n||null==e?n==e:n.isEquivalent(e)}function Eo(n,e,t){const s=n.length;if(s!==e.length)return!1;for(let r=0;r<s;r++)if(!t(n[r],e[r]))return!1;return!0}function le(n,e){return Eo(n,e,(t,s)=>t.isEquivalent(s))}!function(n){n[n.Minus=0]="Minus",n[n.Plus=1]="Plus"}(st||(st={})),function(n){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=
15]="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.BitwiseAnd=11]="BitwiseAnd",n[n.Lower=12]="Lower",n[n.LowerEquals=13]="LowerEquals",n[n.Bigger=14]="Bigger",n[n.BiggerEquals=15]="BiggerEquals",n[n.NullishCoalesce=16]="NullishCoalesce"}(S||(S={}));class O{constructor(e,t){this.type=e||null,this.sourceSpan=t||null}prop(e,t){return new Wt(this,e,null,t)}key(e,t,s){return new bs(this,e,t,s)}callFn(e,t,s){return new nt(this,e,null,t,s)}instantiate(e,t,s){return new xt(this,e,t,s)}conditional(e,t=null,s){return new Ts(this,e,t,null,s)}equals(e,t){return new F(S.Equals,this,e,null,t)}notEquals(e,t){return new F(S.NotEquals,this,e,null,t)}identical(e,t){return new F(S.Identical,this,e,null,t)}notIdentical(e,t){return new F(S.NotIdentical,this,e,null,t)}minus(e,t){return new F(S.Minus,this,e,null,t)}plus(e,t){return new F(S.Plus,this,e,null,t)}divide(e,t){return new F(S.Divide,this,e,null,t)}multiply(e,t){return new F(S.Multiply,this,e,null,t)}modulo(e,t){return new F(S.Modulo,this,e,null,t)}and(e,t){return new F(S.And,this,e,null,t)}bitwiseAnd(e,t,s=!0){return new F(S.BitwiseAnd,this,e,null,t,s)}or(e,t){return new F(S.Or,this,e,null,t)}lower(e,t){return new F(S.Lower,this,e,null,t)}lowerEquals(e,t){return new F(S.LowerEquals,this,e,null,t)}bigger(e,t){return new F(S.Bigger,this,e,null,t)}biggerEquals(e,t){return new F(S.BiggerEquals,this,e,null,t)}isBlank(e){return this.equals(Ds,e)}nullishCoalesce(e,t){return new F(S.NullishCoalesce,this,e,null,t)}toStmt(){return new ke(this,null)}}class yt extends O{constructor(e,t,s){super(t,s),this.name=e}isEquivalent(e){return e instanceof yt&&this.name===e.name}isConstant(){return!1}visitExpression(e,t){return e.visitReadVarExpr(this,t)}set(e){return new xs(this.name,e,null,this.sourceSpan)}}class qt extends O{constructor(e,t,s){super(t,s),this.expr=e}visitExpression(e,t){return e.visitTypeofExpr(this,t)}isEquivalent(e){return e instanceof qt&&e.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}}class A extends O{constructor(e,t,s){super(t,s),this.node=e}isEquivalent(e){return e instanceof A&&this.node===e.node}isConstant(){return!1}visitExpression(e,t){return e.visitWrappedNodeExpr(this,t)}}class xs extends O{constructor(e,t,s,r){super(s||t.type,r),this.name=e,this.value=t}isEquivalent(e){return e instanceof xs&&this.name===e.name&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,t){return e.visitWriteVarExpr(this,t)}toDeclStmt(e,t){return new Re(this.name,this.value,e,t,this.sourceSpan)}toConstDecl(){return this.toDeclStmt(Z,re.Final)}}class Ss extends O{constructor(e,t,s,r,i){super(r||s.type,i),this.receiver=e,this.index=t,this.value=s}isEquivalent(e){return e instanceof Ss&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,t){return e.visitWriteKeyExpr(this,t)}}class ws extends O{constructor(e,t,s,r,i){super(r||s.type,i),this.receiver=e,this.name=t,this.value=s}isEquivalent(e){return e instanceof ws&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,t){return e.visitWritePropExpr(this,t)}}class nt extends O{constructor(e,t,s,r,i=!1){super(s,r),this.fn=e,this.args=t,this.pure=i}isEquivalent(e){return e instanceof nt&&this.fn.isEquivalent(e.fn)&&le(this.args,e.args)&&this.pure===e.pure}isConstant(){return!1}visitExpression(e,t){return e.visitInvokeFunctionExpr(this,t)}}class Cs extends O{constructor(e,t,s,r){super(s,r),this.tag=e,this.template=t}isEquivalent(e){return e instanceof Cs&&this.tag.isEquivalent(e.tag)&&Eo(this.template.elements,e.template.elements,(t,s)=>t.text===s.text)&&le(this.template.expressions,e.template.expressions)}isConstant(){return!1}visitExpression(e,t){return e.visitTaggedTemplateExpr(this,t)}}class xt extends O{constructor(e,t,s,r){super(s,r),this.classExpr=e,this.args=t}isEquivalent(e){return e instanceof xt&&this.classExpr.isEquivalent(e.classExpr)&&le(this.args,e.args)}isConstant(){return!1}visitExpression(e,t){return e.visitInstantiateExpr(this,t)}}class ce extends O{constructor(e,t,s){super(t,s),this.value=e}isEquivalent(e){return e instanceof ce&&this.value===e.value}isConstant(){return!0}visitExpression(e,t){return e.visitLiteralExpr(this,t)}}class En{constructor(e,t){this.elements=e,this.expressions=t}}class _n{constructor(e,t,s){var r;this.text=e,this.sourceSpan=t,this.rawText=null!==(r=null!=s?s:null==t?void 0:t.toString())&&void 0!==r?r:Pr(yn(e))}}class Ut{constructor(e,t){this.text=e,this.sourceSpan=t}}class As{constructor(e,t,s){this.text=e,this.sourceSpan=t,this.associatedMessage=s}}class Nr extends O{constructor(e,t,s,r,i){super(vn,i),this.metaBlock=e,this.messageParts=t,this.placeHolderNames=s,this.expressions=r}isEquivalent(e){return!1}isConstant(){return!1}visitExpression(e,t){return e.visitLocalizedString(this,t)}serializeI18nHead(){let e=this.metaBlock.description||"";return this.metaBlock.meaning&&(e=`${this.metaBlock.meaning}|${e}`),this.metaBlock.customId&&(e=`${e}@@${this.metaBlock.customId}`),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(t=>{e=`${e}\u241f${t}`}),yo(e,this.messageParts[0].text,this.getMessagePartSourceSpan(0))}getMessagePartSourceSpan(e){var t,s;return null!==(t=null===(s=this.messageParts[e])||void 0===s?void 0:s.sourceSpan)&&void 0!==t?t:this.sourceSpan}getPlaceholderSourceSpan(e){var t,s,r,i;return null!==(t=null!==(s=null===(r=this.placeHolderNames[e])||void 0===r?void 0:r.sourceSpan)&&void 0!==s?s:null===(i=this.expressions[e])||void 0===i?void 0:i.sourceSpan)&&void 0!==t?t:this.sourceSpan}serializeI18nTemplatePart(e){var t;
1const s=this.placeHolderNames[e-1],r=this.messageParts[e];let i=s.text;return 0===(null===(t=s.associatedMessage)||void 0===t?void 0:t.legacyIds.length)&&(i+=`@@${br(s.associatedMessage.messageString,s.associatedMessage.meaning)}`),yo(i,r.text,this.getMessagePartSourceSpan(e))}}const yn=n=>n.replace(/\\/g,"\\\\"),pc=n=>n.replace(/^:/,"\\:"),hc=n=>n.replace(/:/g,"\\:"),Pr=n=>n.replace(/`/g,"\\`").replace(/\${/g,"$\\{");function yo(n,e,t){return""===n?{cooked:e,raw:Pr(pc(yn(e))),range:t}:{cooked:`:${n}:${e}`,raw:Pr(`:${hc(yn(n))}:${yn(e)}`),range:t}}class Ht extends O{constructor(e,t,s=null,r){super(t,r),this.value=e,this.typeParams=s}isEquivalent(e){return e instanceof Ht&&this.value.name===e.value.name&&this.value.moduleName===e.value.moduleName&&this.value.runtime===e.value.runtime}isConstant(){return!1}visitExpression(e,t){return e.visitExternalExpr(this,t)}}class xo{constructor(e,t,s){this.moduleName=e,this.name=t,this.runtime=s}}class Ts extends O{constructor(e,t,s=null,r,i){super(r||t.type,i),this.condition=e,this.falseCase=s,this.trueCase=t}isEquivalent(e){return e instanceof Ts&&this.condition.isEquivalent(e.condition)&&this.trueCase.isEquivalent(e.trueCase)&&vo(this.falseCase,e.falseCase)}isConstant(){return!1}visitExpression(e,t){return e.visitConditionalExpr(this,t)}}class Is extends O{constructor(e,t){super(go,t),this.condition=e}isEquivalent(e){return e instanceof Is&&this.condition.isEquivalent(e.condition)}isConstant(){return!1}visitExpression(e,t){return e.visitNotExpr(this,t)}}class ne{constructor(e,t=null){this.name=e,this.type=t}isEquivalent(e){return this.name===e.name}}class rt extends O{constructor(e,t,s,r,i){super(s,r),this.params=e,this.statements=t,this.name=i}isEquivalent(e){return e instanceof rt&&le(this.params,e.params)&&le(this.statements,e.statements)}isConstant(){return!1}visitExpression(e,t){return e.visitFunctionExpr(this,t)}toDeclStmt(e,t){return new Ns(e,this.params,this.statements,this.type,t,this.sourceSpan)}}class jt extends O{constructor(e,t,s,r,i=!0){super(s||Vt,r),this.operator=e,this.expr=t,this.parens=i}isEquivalent(e){return e instanceof jt&&this.operator===e.operator&&this.expr.isEquivalent(e.expr)}isConstant(){return!1}visitExpression(e,t){return e.visitUnaryOperatorExpr(this,t)}}class F extends O{constructor(e,t,s,r,i,o=!0){super(r||t.type,i),this.operator=e,this.rhs=s,this.parens=o,this.lhs=t}isEquivalent(e){return e instanceof F&&this.operator===e.operator&&this.lhs.isEquivalent(e.lhs)&&this.rhs.isEquivalent(e.rhs)}isConstant(){return!1}visitExpression(e,t){return e.visitBinaryOperatorExpr(this,t)}}class Wt extends O{constructor(e,t,s,r){super(s,r),this.receiver=e,this.name=t}isEquivalent(e){return e instanceof Wt&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name}isConstant(){return!1}visitExpression(e,t){return e.visitReadPropExpr(this,t)}set(e){return new ws(this.receiver,this.name,e,null,this.sourceSpan)}}class bs extends O{constructor(e,t,s,r){super(s,r),this.receiver=e,this.index=t}isEquivalent(e){return e instanceof bs&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)}isConstant(){return!1}visitExpression(e,t){return e.visitReadKeyExpr(this,t)}set(e){return new Ss(this.receiver,this.index,e,null,this.sourceSpan)}}class St extends O{constructor(e,t,s){super(t,s),this.entries=e}isConstant(){return this.entries.every(e=>e.isConstant())}isEquivalent(e){return e instanceof St&&le(this.entries,e.entries)}visitExpression(e,t){return e.visitLiteralArrayExpr(this,t)}}class Lr{constructor(e,t,s){this.key=e,this.value=t,this.quoted=s}isEquivalent(e){return this.key===e.key&&this.value.isEquivalent(e.value)}}class Gt extends O{constructor(e,t,s){super(t,s),this.entries=e,this.valueType=null,t&&(this.valueType=t.valueType)}isEquivalent(e){return e instanceof Gt&&le(this.entries,e.entries)}isConstant(){return this.entries.every(e=>e.value.isConstant())}visitExpression(e,t){return e.visitLiteralMapExpr(this,t)}}class xn extends O{constructor(e,t){super(e[e.length-1].type,t),this.parts=e}isEquivalent(e){return e instanceof xn&&le(this.parts,e.parts)}isConstant(){return!1}visitExpression(e,t){return e.visitCommaExpr(this,t)}}const Sn=new ce(null,null,null),Ds=new ce(null,Z,null);var re;!function(n){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"}(re||(re={}));class wn{constructor(e,t,s){this.text=e,this.multiline=t,this.trailingNewline=s}toString(){return this.multiline?` ${this.text} `:this.text}}class Cn extends wn{constructor(e){super("",!0,!0),this.tags=e}toString(){return function gc(n){if(0===n.length)return"";if(1===n.length&&n[0].tagName&&!n[0].text)return`*${Ao(n[0])} `;let e="*\n";for(const t of n)e+=" *",e+=Ao(t).replace(/\n/g,"\n * "),e+="\n";return e+=" ",e}(this.tags)}}class wt{constructor(e=re.None,t=null,s){this.modifiers=e,this.sourceSpan=t,this.leadingComments=s}hasModifier(e){return 0!=(this.modifiers&e)}addLeadingComment(e){var t;this.leadingComments=null!==(t=this.leadingComments)&&void 0!==t?t:[],this.leadingComments.push(e)}}class Re extends wt{constructor(e,t,s,r,i,o){super(r,i,o),this.name=e,this.value=t,this.type=s||t&&t.type||null}isEquivalent(e){return e instanceof Re&&this.name===e.name&&(this.value?!!e.value&&this.value.isEquivalent(e.value):!e.value)}
1visitStatement(e,t){return e.visitDeclareVarStmt(this,t)}}class Ns extends wt{constructor(e,t,s,r,i,o,a){super(i,o,a),this.name=e,this.params=t,this.statements=s,this.type=r||null}isEquivalent(e){return e instanceof Ns&&le(this.params,e.params)&&le(this.statements,e.statements)}visitStatement(e,t){return e.visitDeclareFunctionStmt(this,t)}}class ke extends wt{constructor(e,t,s){super(re.None,t,s),this.expr=e}isEquivalent(e){return e instanceof ke&&this.expr.isEquivalent(e.expr)}visitStatement(e,t){return e.visitExpressionStmt(this,t)}}class U extends wt{constructor(e,t=null,s){super(re.None,t,s),this.value=e}isEquivalent(e){return e instanceof U&&this.value.isEquivalent(e.value)}visitStatement(e,t){return e.visitReturnStmt(this,t)}}class Ps extends wt{constructor(e,t,s=[],r,i){super(re.None,r,i),this.condition=e,this.trueCase=t,this.falseCase=s}isEquivalent(e){return e instanceof Ps&&this.condition.isEquivalent(e.condition)&&le(this.trueCase,e.trueCase)&&le(this.falseCase,e.falseCase)}visitStatement(e,t){return e.visitIfStmt(this,t)}}function So(n,e=!1,t=!0){return new wn(n,e,t)}function Mr(n=[]){return new Cn(n)}function L(n,e,t){return new yt(n,e,t)}function E(n,e=null,t){return new Ht(n,null,e,t)}function X(n,e,t){return new Ae(n,e,t)}function Ls(n){return new qt(n)}function b(n,e,t){return new St(n,e,t)}function G(n,e=null){return new Gt(n.map(t=>new Lr(t.key,t.value,t.quoted)),e,null)}function wo(n,e){return new Is(n,e)}function Y(n,e,t,s,r){return new rt(n,e,t,s,r)}function An(n,e,t,s,r){return new Ps(n,e,t,s,r)}function Rr(n,e,t,s){return new Cs(n,e,t,s)}function f(n,e,t){return new ce(n,e,t)}function Co(n,e,t,s,r){return new Nr(n,e,t,s,r)}function kr(n){return n instanceof ce&&null===n.value}function Ao(n){let e="";if(n.tagName&&(e+=` @${n.tagName}`),n.text){if(n.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');e+=" "+n.text.replace(/@/g,"\\@")}return e}var vc=Object.freeze({__proto__:null,get TypeModifier(){return ys},Type:Ot,get BuiltinTypeName(){return ge},BuiltinType:Me,ExpressionType:Ae,ArrayType:fo,MapType:mo,DYNAMIC_TYPE:tt,INFERRED_TYPE:Z,BOOL_TYPE:go,INT_TYPE:ac,NUMBER_TYPE:Vt,STRING_TYPE:vn,FUNCTION_TYPE:uc,NONE_TYPE:ve,get UnaryOperator(){return st},get BinaryOperator(){return S},nullSafeIsEquivalent:vo,areAllEquivalent:le,Expression:O,ReadVarExpr:yt,TypeofExpr:qt,WrappedNodeExpr:A,WriteVarExpr:xs,WriteKeyExpr:Ss,WritePropExpr:ws,InvokeFunctionExpr:nt,TaggedTemplateExpr:Cs,InstantiateExpr:xt,LiteralExpr:ce,TemplateLiteral:En,TemplateLiteralElement:_n,LiteralPiece:Ut,PlaceholderPiece:As,LocalizedString:Nr,ExternalExpr:Ht,ExternalReference:xo,ConditionalExpr:Ts,NotExpr:Is,FnParam:ne,FunctionExpr:rt,UnaryOperatorExpr:jt,BinaryOperatorExpr:F,ReadPropExpr:Wt,ReadKeyExpr:bs,LiteralArrayExpr:St,LiteralMapEntry:Lr,LiteralMapExpr:Gt,CommaExpr:xn,NULL_EXPR:Sn,TYPED_NULL_EXPR:Ds,get StmtModifier(){return re},LeadingComment:wn,JSDocComment:Cn,Statement:wt,DeclareVarStmt:Re,DeclareFunctionStmt:Ns,ExpressionStatement:ke,ReturnStatement:U,IfStmt:Ps,RecursiveAstVisitor:class dc{visitType(e,t){return e}visitExpression(e,t){return e.type&&e.type.visitType(this,t),e}visitBuiltinType(e,t){return this.visitType(e,t)}visitExpressionType(e,t){return e.value.visitExpression(this,t),null!==e.typeParams&&e.typeParams.forEach(s=>this.visitType(s,t)),this.visitType(e,t)}visitArrayType(e,t){return this.visitType(e,t)}visitMapType(e,t){return this.visitType(e,t)}visitWrappedNodeExpr(e,t){return e}visitTypeofExpr(e,t){return this.visitExpression(e,t)}visitReadVarExpr(e,t){return this.visitExpression(e,t)}visitWriteVarExpr(e,t){return e.value.visitExpression(this,t),this.visitExpression(e,t)}visitWriteKeyExpr(e,t){return e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),e.value.visitExpression(this,t),this.visitExpression(e,t)}visitWritePropExpr(e,t){return e.receiver.visitExpression(this,t),e.value.visitExpression(this,t),this.visitExpression(e,t)}visitInvokeFunctionExpr(e,t){return e.fn.visitExpression(this,t),this.visitAllExpressions(e.args,t),this.visitExpression(e,t)}visitTaggedTemplateExpr(e,t){return e.tag.visitExpression(this,t),this.visitAllExpressions(e.template.expressions,t),this.visitExpression(e,t)}visitInstantiateExpr(e,t){return e.classExpr.visitExpression(this,t),this.visitAllExpressions(e.args,t),this.visitExpression(e,t)}visitLiteralExpr(e,t){return this.visitExpression(e,t)}visitLocalizedString(e,t){return this.visitExpression(e,t)}
1visitExternalExpr(e,t){return e.typeParams&&e.typeParams.forEach(s=>s.visitType(this,t)),this.visitExpression(e,t)}visitConditionalExpr(e,t){return e.condition.visitExpression(this,t),e.trueCase.visitExpression(this,t),e.falseCase.visitExpression(this,t),this.visitExpression(e,t)}visitNotExpr(e,t){return e.condition.visitExpression(this,t),this.visitExpression(e,t)}visitFunctionExpr(e,t){return this.visitAllStatements(e.statements,t),this.visitExpression(e,t)}visitUnaryOperatorExpr(e,t){return e.expr.visitExpression(this,t),this.visitExpression(e,t)}visitBinaryOperatorExpr(e,t){return e.lhs.visitExpression(this,t),e.rhs.visitExpression(this,t),this.visitExpression(e,t)}visitReadPropExpr(e,t){return e.receiver.visitExpression(this,t),this.visitExpression(e,t)}visitReadKeyExpr(e,t){return e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),this.visitExpression(e,t)}visitLiteralArrayExpr(e,t){return this.visitAllExpressions(e.entries,t),this.visitExpression(e,t)}visitLiteralMapExpr(e,t){return e.entries.forEach(s=>s.value.visitExpression(this,t)),this.visitExpression(e,t)}visitCommaExpr(e,t){return this.visitAllExpressions(e.parts,t),this.visitExpression(e,t)}visitAllExpressions(e,t){e.forEach(s=>s.visitExpression(this,t))}visitDeclareVarStmt(e,t){return e.value&&e.value.visitExpression(this,t),e.type&&e.type.visitType(this,t),e}visitDeclareFunctionStmt(e,t){return this.visitAllStatements(e.statements,t),e.type&&e.type.visitType(this,t),e}visitExpressionStmt(e,t){return e.expr.visitExpression(this,t),e}visitReturnStmt(e,t){return e.value.visitExpression(this,t),e}visitIfStmt(e,t){return e.condition.visitExpression(this,t),this.visitAllStatements(e.trueCase,t),this.visitAllStatements(e.falseCase,t),e}visitAllStatements(e,t){e.forEach(s=>s.visitStatement(this,t))}},leadingComment:So,jsDocComment:Mr,variable:L,importExpr:E,importType:function fc(n,e,t){return null!=n?X(E(n,e,null),t):null},expressionType:X,typeofExpr:Ls,literalArr:b,literalMap:G,unary:function mc(n,e,t,s){return new jt(n,e,t,s)},not:wo,fn:Y,ifStmt:An,taggedTemplate:Rr,literal:f,localizedString:Co,isNull:kr});const To=L("<unknown>"),Io={},_c=50;class Tn extends O{constructor(e){super(e.type),this.resolved=e,this.original=e}visitExpression(e,t){return t===Io?this.original.visitExpression(e,t):this.resolved.visitExpression(e,t)}isEquivalent(e){return e instanceof Tn&&this.resolved.isEquivalent(e.resolved)}isConstant(){return!0}fixup(e){this.resolved=e,this.shared=!0}}class Br{constructor(e=!1){this.isClosureCompilerEnabled=e,this.statements=[],this.literals=new Map,this.literalFactories=new Map,this.nextNameIndex=0}getConstLiteral(e,t){if(e instanceof ce&&!bo(e)||e instanceof Tn)return e;const s=this.keyOf(e);let r=this.literals.get(s),i=!1;if(r||(r=new Tn(e),this.literals.set(s,r),i=!0),!i&&!r.shared||i&&t){const o=this.freshName();let a,l;this.isClosureCompilerEnabled&&bo(e)?(a=L(o).set(new rt([],[new U(e)])),l=L(o).callFn([])):(a=L(o).set(e),l=L(o)),this.statements.push(a.toDeclStmt(Z,re.Final)),r.fixup(l)}return r}getLiteralFactory(e){if(e instanceof St){const t=e.entries.map(r=>r.isConstant()?r:To),s=this.keyOf(b(t));return this._getLiteralFactory(s,e.entries,r=>b(r))}{const t=G(e.entries.map(r=>({key:r.key,value:r.value.isConstant()?r.value:To,quoted:r.quoted}))),s=this.keyOf(t);return this._getLiteralFactory(s,e.entries.map(r=>r.value),r=>G(r.map((i,o)=>({key:e.entries[o].key,value:i,quoted:e.entries[o].quoted}))))}}_getLiteralFactory(e,t,s){let r=this.literalFactories.get(e);const i=t.filter(o=>!o.isConstant());if(!r){const o=t.map((p,h)=>p.isConstant()?this.getConstLiteral(p,!0):L(`a${h}`)),l=Y(o.filter(xc).map(p=>new ne(p.name,tt)),[new U(s(o))],Z),c=this.freshName();this.statements.push(L(c).set(l).toDeclStmt(Z,re.Final)),r=L(c),this.literalFactories.set(e,r)}return{literalFactory:r,literalFactoryArguments:i}}uniqueName(e){return`${e}${this.nextNameIndex++}`}freshName(){return this.uniqueName("_c")}keyOf(e){return e.visitExpression(new yc,Io)}}class yc{constructor(){this.visitWrappedNodeExpr=z,this.visitWriteVarExpr=z,this.visitWriteKeyExpr=z,this.visitWritePropExpr=z,this.visitInvokeFunctionExpr=z,this.visitTaggedTemplateExpr=z,this.visitInstantiateExpr=z,this.visitConditionalExpr=z,this.visitNotExpr=z,this.visitAssertNotNullExpr=z,this.visitCastExpr=z,this.visitFunctionExpr=z,this.visitUnaryOperatorExpr=z,this.visitBinaryOperatorExpr=z,this.visitReadPropExpr=z,this.visitReadKeyExpr=z,this.visitCommaExpr=z,this.visitLocalizedString=z}visitLiteralExpr(e){return`${"string"==typeof e.value?'"'+e.value+'"'
1:e.value}`}visitLiteralArrayExpr(e,t){return`[${e.entries.map(s=>s.visitExpression(this,t)).join(",")}]`}visitLiteralMapExpr(e,t){return`{${e.entries.map(i=>`${(i=>{const o=i.quoted?'"':"";return`${o}${i.key}${o}`})(i)}:${i.value.visitExpression(this,t)}`).join(",")}`}visitExternalExpr(e){return e.value.moduleName?`EX:${e.value.moduleName}:${e.value.name}`:`EX:${e.value.runtime.name}`}visitReadVarExpr(e){return`VAR:${e.name}`}visitTypeofExpr(e,t){return`TYPEOF:${e.expr.visitExpression(this,t)}`}}function z(n){throw new Error(`Invalid state: Visitor ${this.constructor.name} doesn't handle ${n.constructor.name}`)}function xc(n){return n instanceof yt}function bo(n){return n instanceof ce&&"string"==typeof n.value&&n.value.length>=_c}const d="@angular/core";class u{}u.NEW_METHOD="factory",u.TRANSFORM_METHOD="transform",u.PATCH_DEPS="patchedDeps",u.core={name:null,moduleName:d},u.namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:d},u.namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:d},u.namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:d},u.element={name:"\u0275\u0275element",moduleName:d},u.elementStart={name:"\u0275\u0275elementStart",moduleName:d},u.elementEnd={name:"\u0275\u0275elementEnd",moduleName:d},u.advance={name:"\u0275\u0275advance",moduleName:d},u.syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:d},u.syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:d},u.attribute={name:"\u0275\u0275attribute",moduleName:d},u.attributeInterpolate1={name:"\u0275\u0275attributeInterpolate1",moduleName:d},u.attributeInterpolate2={name:"\u0275\u0275attributeInterpolate2",moduleName:d},u.attributeInterpolate3={name:"\u0275\u0275attributeInterpolate3",moduleName:d},u.attributeInterpolate4={name:"\u0275\u0275attributeInterpolate4",moduleName:d},u.attributeInterpolate5={name:"\u0275\u0275attributeInterpolate5",moduleName:d},u.attributeInterpolate6={name:"\u0275\u0275attributeInterpolate6",moduleName:d},u.attributeInterpolate7={name:"\u0275\u0275attributeInterpolate7",moduleName:d},u.attributeInterpolate8={name:"\u0275\u0275attributeInterpolate8",moduleName:d},u.attributeInterpolateV={name:"\u0275\u0275attributeInterpolateV",moduleName:d},u.classProp={name:"\u0275\u0275classProp",moduleName:d},u.elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:d},u.elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:d},u.elementContainer={name:"\u0275\u0275elementContainer",moduleName:d},u.styleMap={name:"\u0275\u0275styleMap",moduleName:d},u.styleMapInterpolate1={name:"\u0275\u0275styleMapInterpolate1",moduleName:d},u.styleMapInterpolate2={name:"\u0275\u0275styleMapInterpolate2",moduleName:d},u.styleMapInterpolate3={name:"\u0275\u0275styleMapInterpolate3",moduleName:d},u.styleMapInterpolate4={name:"\u0275\u0275styleMapInterpolate4",moduleName:d},u.styleMapInterpolate5={name:"\u0275\u0275styleMapInterpolate5",moduleName:d},u.styleMapInterpolate6={name:"\u0275\u0275styleMapInterpolate6",moduleName:d},u.styleMapInterpolate7={name:"\u0275\u0275styleMapInterpolate7",moduleName:d},u.styleMapInterpolate8={name:"\u0275\u0275styleMapInterpolate8",moduleName:d},u.styleMapInterpolateV={name:"\u0275\u0275styleMapInterpolateV",moduleName:d},u.classMap={name:"\u0275\u0275classMap",moduleName:d},u.classMapInterpolate1={name:"\u0275\u0275classMapInterpolate1",moduleName:d},u.classMapInterpolate2={name:"\u0275\u0275classMapInterpolate2",moduleName:d},u.classMapInterpolate3={name:"\u0275\u0275classMapInterpolate3",moduleName:d},u.classMapInterpolate4={name:"\u0275\u0275classMapInterpolate4",moduleName:d},u.classMapInterpolate5={name:"\u0275\u0275classMapInterpolate5",moduleName:d},u.classMapInterpolate6={name:"\u0275\u0275classMapInterpolate6",moduleName:d},u.classMapInterpolate7={name:"\u0275\u0275classMapInterpolate7",moduleName:d},u.classMapInterpolate8={name:"\u0275\u0275classMapInterpolate8",moduleName:d},u.classMapInterpolateV={name:"\u0275\u0275classMapInterpolateV",moduleName:d},u.styleProp={name:"\u0275\u0275styleProp",moduleName:d},u.stylePropInterpolate1={name:"\u0275\u0275stylePropInterpolate1",moduleName:d},u.stylePropInterpolate2={name:"\u0275\u0275stylePropInterpolate2",moduleName:d},u.stylePropInterpolate3={name:"\u0275\u0275stylePropInterpolate3",moduleName:d},u.stylePropInterpolate4={name:"\u0275\u0275stylePropInterpolate4",moduleName:d},u.stylePropInterpolate5={name:"\u0275\u0275stylePropInterpolate5",moduleName:d},u.stylePropInterpolate6={name:"\u0275\u0275stylePropInterpolate6",moduleName:d},u.stylePropInterpolate7={name:"\u0275\u0275stylePropInterpolate7",moduleName:d},u.stylePropInterpolate8={name:"\u0275\u0275stylePropInterpolate8",moduleName:d},u.stylePropInterpolateV={name:"\u0275\u0275stylePropInterpolateV",moduleName:d},u.nextContext={name:"\u0275\u0275nextContext",moduleName:d}
1,u.resetView={name:"\u0275\u0275resetView",moduleName:d},u.templateCreate={name:"\u0275\u0275template",moduleName:d},u.text={name:"\u0275\u0275text",moduleName:d},u.enableBindings={name:"\u0275\u0275enableBindings",moduleName:d},u.disableBindings={name:"\u0275\u0275disableBindings",moduleName:d},u.getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:d},u.textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:d},u.textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:d},u.textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:d},u.textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:d},u.textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:d},u.textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:d},u.textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:d},u.textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:d},u.textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:d},u.textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:d},u.restoreView={name:"\u0275\u0275restoreView",moduleName:d},u.pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:d},u.pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:d},u.pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:d},u.pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:d},u.pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:d},u.pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:d},u.pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:d},u.pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:d},u.pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:d},u.pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:d},u.pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:d},u.pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:d},u.pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:d},u.pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:d},u.pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:d},u.hostProperty={name:"\u0275\u0275hostProperty",moduleName:d},u.property={name:"\u0275\u0275property",moduleName:d},u.propertyInterpolate={name:"\u0275\u0275propertyInterpolate",moduleName:d},u.propertyInterpolate1={name:"\u0275\u0275propertyInterpolate1",moduleName:d},u.propertyInterpolate2={name:"\u0275\u0275propertyInterpolate2",moduleName:d},u.propertyInterpolate3={name:"\u0275\u0275propertyInterpolate3",moduleName:d},u.propertyInterpolate4={name:"\u0275\u0275propertyInterpolate4",moduleName:d},u.propertyInterpolate5={name:"\u0275\u0275propertyInterpolate5",moduleName:d},u.propertyInterpolate6={name:"\u0275\u0275propertyInterpolate6",moduleName:d},u.propertyInterpolate7={name:"\u0275\u0275propertyInterpolate7",moduleName:d},u.propertyInterpolate8={name:"\u0275\u0275propertyInterpolate8",moduleName:d},u.propertyInterpolateV={name:"\u0275\u0275propertyInterpolateV",moduleName:d},u.i18n={name:"\u0275\u0275i18n",moduleName:d},u.i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:d},u.i18nExp={name:"\u0275\u0275i18nExp",moduleName:d},u.i18nStart={name:"\u0275\u0275i18nStart",moduleName:d},u.i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:d},u.i18nApply={name:"\u0275\u0275i18nApply",moduleName:d},u.i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:d},u.pipe={name:"\u0275\u0275pipe",moduleName:d},u.projection={name:"\u0275\u0275projection",moduleName:d},u.projectionDef={name:"\u0275\u0275projectionDef",moduleName:d},u.reference={name:"\u0275\u0275reference",moduleName:d},u.inject={name:"\u0275\u0275inject",moduleName:d},u.injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:d},u.directiveInject={name:"\u0275\u0275directiveInject",moduleName:d},u.invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:d},u.invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:d},u.templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:d},u.forwardRef={name:"forwardRef",moduleName:d},u.resolveForwardRef={name:"resolveForwardRef",moduleName:d},u.\u0275\u0275defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:d},u.declareInjectable={name:"\u0275\u0275ngDeclareInjectable",moduleName:d},u.InjectableDeclaration={name:"\u0275\u0275InjectableDeclaration",moduleName:d},u.resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:d},u.resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:d},u.resolveBody={name:"\u0275\u0275resolveBody",moduleName:d},u.defineComponent={name:"\u0275\u0275defineComponent",moduleName:d},u.declareComponent={name:"\u0275\u0275ngDeclareComponent",moduleName:d},u.setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:d},u.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:d},u.ViewEncapsulation={name:"ViewEncapsulation",moduleName:d},u.ComponentDeclaration={name:"\u0275\u0275ComponentDeclaration",moduleName:d},u.FactoryDeclaration={name:"\u0275\u0275FactoryDeclaration",moduleName:d},u.declareFactory={name:"\u0275\u0275ngDeclareFactory",moduleName:d},u.FactoryTarget={name:"\u0275\u0275FactoryTarget",moduleName:d},u.defineDirective={name:"\u0275\u0275defineDirective",moduleName:d},u.declareDirective={name:"\u0275\u0275ngDeclareDirective",moduleName:d},u.DirectiveDeclaration={name:"\u0275\u0275DirectiveDeclaration",moduleName:d},u.InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:d},u.InjectorDeclaration={name:"\u0275\u0275InjectorDeclaration",moduleName:d},u.defineInjector={name:"\u0275\u0275defineInjector",moduleName:d},u.declareInjector={name:"\u0275\u0275ngDeclareInjector",moduleName:d},u.NgModuleDeclaration={name:"\u0275\u0275NgModuleDeclaration",moduleName:d},u.ModuleWithProviders={name:"ModuleWithProviders",moduleName:d},u.defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:d},u.declareNgModule={name:"\u0275\u0275ngDeclareNgModule",moduleName:d},u.setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:d},u.registerNgModuleType={name:"\u0275\u0275registerNgModuleType",moduleName:d},u.PipeDeclaration={name:"\u0275\u0275PipeDeclaration",moduleName:d},u.definePipe={name:"\u0275\u0275definePipe",moduleName:d},u.declarePipe={name:"\u0275\u0275ngDeclarePipe",moduleName:d},u.declareClassMetadata={name:"\u0275\u0275ngDeclareClassMetadata",moduleName:d},u.setClassMetadata={name:"\u0275setClassMetadata",moduleName:d},u.queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:d},u.viewQuery={name:"\u0275\u0275viewQuery",moduleName:d},u.loadQuery={name:"\u0275\u0275loadQuery",moduleName:d},u.contentQuery={name:"\u0275\u0275contentQuery",moduleName:d},u.NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:d},u.InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:d},u.CopyDefinitionFeature={name:"\u0275\u0275CopyDefinitionFeature",moduleName:d},u.StandaloneFeature={name:"\u0275\u0275StandaloneFeature",moduleName:d},u.ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:d},u.HostDirectivesFeature={name:"\u0275\u0275HostDirectivesFeature",moduleName:d},u.listener={name:"\u0275\u0275listener",moduleName:d}
1,u.getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:d},u.sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:d},u.sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:d},u.sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:d},u.sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:d},u.sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:d},u.sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:d},u.trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:d},u.trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:d},u.validateIframeAttribute={name:"\u0275\u0275validateIframeAttribute",moduleName:d};const Sc=/-+([a-z0-9])/g;function Do(n,e,t){const s=n.indexOf(e);return-1==s?t:[n.slice(0,s).trim(),n.slice(s+1).trim()]}function In(n){throw new Error(`Internal Error: ${n}`)}function No(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(No).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;if(!n.toString)return"object";const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}class Po{constructor(e){this.full=e;const t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}}const zt=(()=>typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)();class Pc{constructor(e=null){this.file=e,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}addSource(e,t=null){return this.sourcesContent.has(e)||this.sourcesContent.set(e,t),this}addLine(){return this.lines.push([]),this.lastCol0=0,this}addMapping(e,t,s,r){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=t&&!this.sourcesContent.has(t))throw new Error(`Unknown source file "${t}"`);if(null==e)throw new Error("The column in the generated code must be provided");if(e<this.lastCol0)throw new Error("Mapping should be added in output order");if(t&&(null==s||null==r))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=e,this.currentLine.push({col0:e,sourceUrl:t,sourceLine0:s,sourceCol0:r}),this}get currentLine(){return this.lines.slice(-1)[0]}toJSON(){if(!this.hasMappings)return null;const e=new Map,t=[],s=[];Array.from(this.sourcesContent.keys()).forEach((c,p)=>{e.set(c,p),t.push(c),s.push(this.sourcesContent.get(c)||null)});let r="",i=0,o=0,a=0,l=0;return this.lines.forEach(c=>{i=0,r+=c.map(p=>{let h=bn(p.col0-i);return i=p.col0,null!=p.sourceUrl&&(h+=bn(e.get(p.sourceUrl)-o),o=e.get(p.sourceUrl),h+=bn(p.sourceLine0-a),a=p.sourceLine0,h+=bn(p.sourceCol0-l),l=p.sourceCol0),h}).join(","),r+=";"}),r=r.slice(0,-1),{file:this.file||"",version:3,sourceRoot:"",sources:t,sourcesContent:s,mappings:r}}toJsComment(){return this.hasMappings?"//# sourceMappingURL=data:application/json;base64,"+function Lc(n){let e="";const t=function Ic(n){let e=[];for(let t=0;t<n.length;t++){let s=n.charCodeAt(t);if(s>=55296&&s<=56319&&n.length>t+1){const r=n.charCodeAt(t+1);r>=56320&&r<=57343&&(t++,s=(s-55296<<10)+r-56320+65536)}s<=127?e.push(s):s<=2047?e.push(s>>6&31|192,63&s|128):s<=65535?e.push(s>>12|224,s>>6&63|128,63&s|128):s<=2097151&&e.push(s>>18&7|240,s>>12&63|128,s>>6&63|128,63&s|128)}return e}(n);for(let s=0;s<t.length;){const r=t[s++],i=s<t.length?t[s++]:null,o=s<t.length?t[s++]:null;e+=Ms(r>>2),e+=Ms((3&r)<<4|(null===i?0:i>>4)),e+=null===i?"=":Ms((15&i)<<2|(null===o?0:o>>6)),e+=null===i||null===o?"=":Ms(63&o)}return e}(JSON.stringify(this,null,0)):""}}function bn(n){n=n<0?1+(-n<<1):n<<1;let e="";do{let t=31&n;(n>>=5)>0&&(t|=32),e+=Ms(t)}while(n>0);return e}const Mc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Ms(n){if(n<0||n>=64)throw new Error("Can only encode value in the range [0, 63]");return Mc[n]}const Rc=/'|\\|\n|\r|\$/g,kc=/^[$A-Z_][0-9A-Z_$]*$/i,Fr="  ";class Lo{constructor(e){this.indent=e,this.partsLength=0,this.parts=[],this.srcSpans=[]}}class Dn{static createRoot(){return new Dn(0)}constructor(e){this._indent=e,this._lines=[new Lo(e)]}get _currentLine(){return this._lines[this._lines.length-1]}println(e,t=""){this.print(e||null,t,!0)}lineIsEmpty(){return 0===this._currentLine.parts.length}lineLength(){return this._currentLine.indent*Fr.length+this._currentLine.partsLength}print(e,t,s=!1){t.length>0&&(this._currentLine.parts.push(t),this._currentLine.partsLength+=t.length,this._currentLine.srcSpans.push(e&&e.sourceSpan||null)),s&&this._lines.push(new Lo(this._indent))}removeEmptyLastLine(){this.lineIsEmpty()&&this._lines.pop()}incIndent(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}
1decIndent(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}toSource(){return this.sourceLines.map(e=>e.parts.length>0?Mo(e.indent)+e.parts.join(""):"").join("\n")}toSourceMapGenerator(e,t=0){const s=new Pc(e);let r=!1;const i=()=>{r||(s.addSource(e," ").addMapping(0,e,0,0),r=!0)};for(let o=0;o<t;o++)s.addLine(),i();return this.sourceLines.forEach((o,a)=>{s.addLine();const l=o.srcSpans,c=o.parts;let p=o.indent*Fr.length,h=0;for(;h<l.length&&!l[h];)p+=c[h].length,h++;for(h<l.length&&0===a&&0===p?r=!0:i();h<l.length;){const m=l[h],g=m.start.file,v=m.start.line,_=m.start.col;for(s.addSource(g.url,g.content).addMapping(p,g.url,v,_),p+=c[h].length,h++;h<l.length&&(m===l[h]||!l[h]);)p+=c[h].length,h++}}),s}spanOf(e,t){const s=this._lines[e];if(s){let r=t-Mo(s.indent).length;for(let i=0;i<s.parts.length;i++){const o=s.parts[i];if(o.length>r)return s.srcSpans[i];r-=o.length}}return null}get sourceLines(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines}}class Bc{constructor(e){this._escapeDollarInStrings=e}printLeadingComments(e,t){if(void 0!==e.leadingComments)for(const s of e.leadingComments)s instanceof Cn?t.print(e,`/*${s.toString()}*/`,s.trailingNewline):s.multiline?t.print(e,`/* ${s.text} */`,s.trailingNewline):s.text.split("\n").forEach(r=>{t.println(e,`// ${r}`)})}visitExpressionStmt(e,t){return this.printLeadingComments(e,t),e.expr.visitExpression(this,t),t.println(e,";"),null}visitReturnStmt(e,t){return this.printLeadingComments(e,t),t.print(e,"return "),e.value.visitExpression(this,t),t.println(e,";"),null}visitIfStmt(e,t){this.printLeadingComments(e,t),t.print(e,"if ("),e.condition.visitExpression(this,t),t.print(e,") {");const s=null!=e.falseCase&&e.falseCase.length>0;return e.trueCase.length<=1&&!s?(t.print(e," "),this.visitAllStatements(e.trueCase,t),t.removeEmptyLastLine(),t.print(e," ")):(t.println(),t.incIndent(),this.visitAllStatements(e.trueCase,t),t.decIndent(),s&&(t.println(e,"} else {"),t.incIndent(),this.visitAllStatements(e.falseCase,t),t.decIndent())),t.println(e,"}"),null}visitWriteVarExpr(e,t){const s=t.lineIsEmpty();return s||t.print(e,"("),t.print(e,`${e.name} = `),e.value.visitExpression(this,t),s||t.print(e,")"),null}visitWriteKeyExpr(e,t){const s=t.lineIsEmpty();return s||t.print(e,"("),e.receiver.visitExpression(this,t),t.print(e,"["),e.index.visitExpression(this,t),t.print(e,"] = "),e.value.visitExpression(this,t),s||t.print(e,")"),null}visitWritePropExpr(e,t){const s=t.lineIsEmpty();return s||t.print(e,"("),e.receiver.visitExpression(this,t),t.print(e,`.${e.name} = `),e.value.visitExpression(this,t),s||t.print(e,")"),null}visitInvokeFunctionExpr(e,t){return e.fn.visitExpression(this,t),t.print(e,"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null}visitTaggedTemplateExpr(e,t){e.tag.visitExpression(this,t),t.print(e,"`"+e.template.elements[0].rawText);for(let s=1;s<e.template.elements.length;s++)t.print(e,"${"),e.template.expressions[s-1].visitExpression(this,t),t.print(e,`}${e.template.elements[s].rawText}`);return t.print(e,"`"),null}visitWrappedNodeExpr(e,t){throw new Error("Abstract emitter cannot visit WrappedNodeExpr.")}visitTypeofExpr(e,t){t.print(e,"typeof "),e.expr.visitExpression(this,t)}visitReadVarExpr(e,t){return t.print(e,e.name),null}visitInstantiateExpr(e,t){return t.print(e,"new "),e.classExpr.visitExpression(this,t),t.print(e,"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null}visitLiteralExpr(e,t){const s=e.value;return"string"==typeof s?t.print(e,Ct(s,this._escapeDollarInStrings)):t.print(e,`${s}`),null}visitLocalizedString(e,t){const s=e.serializeI18nHead();t.print(e,"$localize `"+s.raw);for(let r=1;r<e.messageParts.length;r++)t.print(e,"${"),e.expressions[r-1].visitExpression(this,t),t.print(e,`}${e.serializeI18nTemplatePart(r).raw}`);return t.print(e,"`"),null}visitConditionalExpr(e,t){return t.print(e,"("),e.condition.visitExpression(this,t),t.print(e,"? "),e.trueCase.visitExpression(this,t),t.print(e,": "),e.falseCase.visitExpression(this,t),t.print(e,")"),null}visitNotExpr(e,t){return t.print(e,"!"),e.condition.visitExpression(this,t),null}visitUnaryOperatorExpr(e,t){let s;
1switch(e.operator){case st.Plus:s="+";break;case st.Minus:s="-";break;default:throw new Error(`Unknown operator ${e.operator}`)}return e.parens&&t.print(e,"("),t.print(e,s),e.expr.visitExpression(this,t),e.parens&&t.print(e,")"),null}visitBinaryOperatorExpr(e,t){let s;switch(e.operator){case S.Equals:s="==";break;case S.Identical:s="===";break;case S.NotEquals:s="!=";break;case S.NotIdentical:s="!==";break;case S.And:s="&&";break;case S.BitwiseAnd:s="&";break;case S.Or:s="||";break;case S.Plus:s="+";break;case S.Minus:s="-";break;case S.Divide:s="/";break;case S.Multiply:s="*";break;case S.Modulo:s="%";break;case S.Lower:s="<";break;case S.LowerEquals:s="<=";break;case S.Bigger:s=">";break;case S.BiggerEquals:s=">=";break;case S.NullishCoalesce:s="??";break;default:throw new Error(`Unknown operator ${e.operator}`)}return e.parens&&t.print(e,"("),e.lhs.visitExpression(this,t),t.print(e,` ${s} `),e.rhs.visitExpression(this,t),e.parens&&t.print(e,")"),null}visitReadPropExpr(e,t){return e.receiver.visitExpression(this,t),t.print(e,"."),t.print(e,e.name),null}visitReadKeyExpr(e,t){return e.receiver.visitExpression(this,t),t.print(e,"["),e.index.visitExpression(this,t),t.print(e,"]"),null}visitLiteralArrayExpr(e,t){return t.print(e,"["),this.visitAllExpressions(e.entries,t,","),t.print(e,"]"),null}visitLiteralMapExpr(e,t){return t.print(e,"{"),this.visitAllObjects(s=>{t.print(e,`${Ct(s.key,this._escapeDollarInStrings,s.quoted)}:`),s.value.visitExpression(this,t)},e.entries,t,","),t.print(e,"}"),null}visitCommaExpr(e,t){return t.print(e,"("),this.visitAllExpressions(e.parts,t,","),t.print(e,")"),null}visitAllExpressions(e,t,s){this.visitAllObjects(r=>r.visitExpression(this,t),e,t,s)}visitAllObjects(e,t,s,r){let i=!1;for(let o=0;o<t.length;o++)o>0&&(s.lineLength()>80?(s.print(null,r,!0),i||(s.incIndent(),s.incIndent(),i=!0)):s.print(null,r,!1)),e(t[o]);i&&(s.decIndent(),s.decIndent())}visitAllStatements(e,t){e.forEach(s=>s.visitStatement(this,t))}}function Ct(n,e,t=!0){if(null==n)return null;const s=n.replace(Rc,(...i)=>"$"==i[0]?e?"\\$":"$":"\n"==i[0]?"\\n":"\r"==i[0]?"\\r":`\\${i[0]}`);return t||!kc.test(s)?`'${s}'`:s}function Mo(n){let e="";for(let t=0;t<n;t++)e+=Fr;return e}function Nn(n,e){if(0===e)return X(n);const t=[];for(let s=0;s<e;s++)t.push(tt);return X(n,void 0,t)}const Ro="@";function ko(n){return`${Ro}${n}`}function Bo(n,e){const t=Ct(e,!1,!1);return t!==e?`${n}[${t}]`:`${n}.${e}`}function Fo(n,e){return`animation_${n}_${e}`}function $o(n){return Oo("ngDevMode",n)}function Oo(n,e){const t=new Ht({name:n,moduleName:null}),s=new F(S.Identical,new qt(t),f("undefined")),r=new F(S.Or,s,t,void 0,void 0,!0);return new F(S.And,r,e)}function K(n){const e=new A(n);return{value:e,type:e}}function Te(n,e){const t=b(n.map(s=>s.value));return e?Y([],[new U(t)]):t}function Pn(n,e){return{expression:n,forwardRef:e}}function Kt({expression:n,forwardRef:e}){switch(e){case 0:case 1:return n;case 2:return $r(n)}}function $r(n){return E(u.forwardRef).callFn([Y([],[new U(n)])])}var Rs,Ee;function it(n){const e=L("t");let t=null;const s=Uo(n)?e:new F(S.Or,e,n.internalType);let r=null;null!==n.deps?"invalid"!==n.deps&&(r=new xt(s,qo(n.deps,n.target))):(t=L(`\u0275${n.name}_BaseFactory`),r=t.callFn([s]));const i=[];let o=null;function a(c){const p=L("r");i.push(p.set(Sn).toDeclStmt());const h=null!==r?p.set(r).toStmt():E(u.invalidFactory).callFn([]).toStmt();return i.push(An(e,[h],[p.set(c).toStmt()])),p}if(Uo(n)){const c=qo(n.delegateDeps,n.target);o=a(new(n.delegateType===Rs.Class?xt:nt)(n.delegate,c))}else o=function Uc(n){return void 0!==n.expression}(n)?a(n.expression):r;if(null===o)i.push(E(u.invalidFactory).callFn([]).toStmt());else if(null!==t){const c=E(u.getInheritedFactory).callFn([n.internalType]),p=new F(S.Or,t,t.set(c));i.push(new U(p.callFn([s])))}else i.push(new U(o));let l=Y([new ne("t",tt)],i,Z,void 0,`${n.name}_Factory`);return null!==t&&(l=Y([],[new Re(t.name),new U(l)]).callFn([],void 0,!0)),{expression:l,statements:[],type:Vo(n)}}function Vo(n){const e=null!==n.deps&&"invalid"!==n.deps?function Vc(n){let e=!1;const t=n.map(s=>{const r=function qc(n){const e=[];return null!==n.attributeNameType&&e.push({key:"attribute",value:n.attributeNameType,quoted:!1}),n.optional&&e.push({key:"optional",value:f(!0),quoted:!1}),n.host&&e.push({key:"host",value:f(!0),quoted:!1}),n.self&&e.push({key:"self",value:f(!0),quoted:!1}),n.skipSelf&&e.push({key:"skipSelf",value:f(!0),quoted:!1}),e.length>0?G(e):null}(s);return null!==r?(e=!0,r):f(null)});return e?X(b(t)):ve}(n.deps):ve;return X(E(u.FactoryDeclaration,[Nn(n.type.type,n.typeArgumentCount),e]))}function qo(n,e){return n.map((t,s)=>function Oc(n,e,t){if(null===n.token)return E(u.invalidFactoryDep).callFn([f(t)]);if(null===n.attributeNameType){const s=0|(n.self?2:0)|(n.skipSelf?4:0)|(n.host?1:0)|(n.optional?8:0)|(e===Ee.Pipe?16:0);let r=0!==s||n.optional?f(s):null;const i=[n.token];r&&i.push(r);const o=function Hc(n){switch(n){case Ee.Component:case Ee.Directive:case Ee.Pipe:return u.directiveInject;case Ee.NgModule:case Ee.Injectable:default:return u.inject}}(e);return E(o).callFn(i)}return E(u.injectAttribute).callFn([n.token])}(t,e,s))}function Uo(n){return void 0!==n.delegateType}!function(n){n[n.Class=0]="Class",n[n.Function=1]="Function"}(Rs||(Rs={}
1)),function(n){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"}(Ee||(Ee={}));class jc{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e){throw new Error("visit() not implemented for Comment")}}class ks{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e){return e.visitText(this)}}class Ln{constructor(e,t,s){this.value=e,this.sourceSpan=t,this.i18n=s}visit(e){return e.visitBoundText(this)}}class Mn{constructor(e,t,s,r,i,o){this.name=e,this.value=t,this.sourceSpan=s,this.keySpan=r,this.valueSpan=i,this.i18n=o}visit(e){return e.visitTextAttribute(this)}}class Bs{constructor(e,t,s,r,i,o,a,l,c){this.name=e,this.type=t,this.securityContext=s,this.value=r,this.unit=i,this.sourceSpan=o,this.keySpan=a,this.valueSpan=l,this.i18n=c}static fromBoundElementProperty(e,t){if(void 0===e.keySpan)throw new Error(`Unexpected state: keySpan must be defined for bound attributes but was not for ${e.name}: ${e.sourceSpan}`);return new Bs(e.name,e.type,e.securityContext,e.value,e.unit,e.sourceSpan,e.keySpan,e.valueSpan,t)}visit(e){return e.visitBoundAttribute(this)}}class Fs{constructor(e,t,s,r,i,o,a,l){this.name=e,this.type=t,this.handler=s,this.target=r,this.phase=i,this.sourceSpan=o,this.handlerSpan=a,this.keySpan=l}static fromParsedEvent(e){const t=0===e.type?e.targetOrPhase:null,s=1===e.type?e.targetOrPhase:null;if(void 0===e.keySpan)throw new Error(`Unexpected state: keySpan must be defined for bound event but was not for ${e.name}: ${e.sourceSpan}`);return new Fs(e.name,e.type,e.handler,t,s,e.sourceSpan,e.handlerSpan,e.keySpan)}visit(e){return e.visitBoundEvent(this)}}class Xt{constructor(e,t,s,r,i,o,a,l,c,p){this.name=e,this.attributes=t,this.inputs=s,this.outputs=r,this.children=i,this.references=o,this.sourceSpan=a,this.startSourceSpan=l,this.endSourceSpan=c,this.i18n=p}visit(e){return e.visitElement(this)}}class Be{constructor(e,t,s,r,i,o,a,l,c,p,h,m){this.tagName=e,this.attributes=t,this.inputs=s,this.outputs=r,this.templateAttrs=i,this.children=o,this.references=a,this.variables=l,this.sourceSpan=c,this.startSourceSpan=p,this.endSourceSpan=h,this.i18n=m}visit(e){return e.visitTemplate(this)}}class Ho{constructor(e,t,s,r){this.selector=e,this.attributes=t,this.sourceSpan=s,this.i18n=r,this.name="ng-content"}visit(e){return e.visitContent(this)}}class Or{constructor(e,t,s,r,i){this.name=e,this.value=t,this.sourceSpan=s,this.keySpan=r,this.valueSpan=i}visit(e){return e.visitVariable(this)}}class jo{constructor(e,t,s,r,i){this.name=e,this.value=t,this.sourceSpan=s,this.keySpan=r,this.valueSpan=i}visit(e){return e.visitReference(this)}}class Vr{constructor(e,t,s,r){this.vars=e,this.placeholders=t,this.sourceSpan=s,this.i18n=r}visit(e){return e.visitIcu(this)}}class Wc{visitElement(e){pe(this,e.attributes),pe(this,e.inputs),pe(this,e.outputs),pe(this,e.children),pe(this,e.references)}visitTemplate(e){pe(this,e.attributes),pe(this,e.inputs),pe(this,e.outputs),pe(this,e.children),pe(this,e.references),pe(this,e.variables)}visitContent(e){}visitVariable(e){}visitReference(e){}visitTextAttribute(e){}visitBoundAttribute(e){}visitBoundEvent(e){}visitText(e){}visitBoundText(e){}visitIcu(e){}}function pe(n,e){const t=[];if(n.visit)for(const s of e){n.visit(s)||s.visit(n)}else for(const s of e){const r=s.visit(n);r&&t.push(r)}return t}class He{constructor(e,t,s,r,i,o){this.nodes=e,this.placeholders=t,this.placeholderToMessage=s,this.meaning=r,this.description=i,this.customId=o,this.id=this.customId,this.legacyIds=[],this.messageString=function Kc(n){const e=new Xc;return n.map(s=>s.visit(e)).join("")}(this.nodes),e.length?this.sources=[{filePath:e[0].sourceSpan.start.file.url,startLine:e[0].sourceSpan.start.line+1,startCol:e[0].sourceSpan.start.col+1,endLine:e[e.length-1].sourceSpan.end.line+1,endCol:e[0].sourceSpan.start.col+1}]:this.sources=[]}}class je{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e,t){return e.visitText(this,t)}}class We{constructor(e,t){this.children=e,this.sourceSpan=t}visit(e,t){return e.visitContainer(this,t)}}
1class Yt{constructor(e,t,s,r){this.expression=e,this.type=t,this.cases=s,this.sourceSpan=r}visit(e,t){return e.visitIcu(this,t)}}class qr{constructor(e,t,s,r,i,o,a,l,c){this.tag=e,this.attrs=t,this.startName=s,this.closeName=r,this.children=i,this.isVoid=o,this.sourceSpan=a,this.startSourceSpan=l,this.endSourceSpan=c}visit(e,t){return e.visitTagPlaceholder(this,t)}}class Ge{constructor(e,t,s){this.value=e,this.name=t,this.sourceSpan=s}visit(e,t){return e.visitPlaceholder(this,t)}}class Qt{constructor(e,t,s){this.value=e,this.name=t,this.sourceSpan=s}visit(e,t){return e.visitIcuPlaceholder(this,t)}}class Gc{visitText(e,t){return new je(e.value,e.sourceSpan)}visitContainer(e,t){const s=e.children.map(r=>r.visit(this,t));return new We(s,e.sourceSpan)}visitIcu(e,t){const s={};Object.keys(e.cases).forEach(i=>s[i]=e.cases[i].visit(this,t));const r=new Yt(e.expression,e.type,s,e.sourceSpan);return r.expressionPlaceholder=e.expressionPlaceholder,r}visitTagPlaceholder(e,t){const s=e.children.map(r=>r.visit(this,t));return new qr(e.tag,e.attrs,e.startName,e.closeName,s,e.isVoid,e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}visitPlaceholder(e,t){return new Ge(e.value,e.name,e.sourceSpan)}visitIcuPlaceholder(e,t){return new Qt(e.value,e.name,e.sourceSpan)}}class zc{visitText(e,t){}visitContainer(e,t){e.children.forEach(s=>s.visit(this))}visitIcu(e,t){Object.keys(e.cases).forEach(s=>{e.cases[s].visit(this)})}visitTagPlaceholder(e,t){e.children.forEach(s=>s.visit(this))}visitPlaceholder(e,t){}visitIcuPlaceholder(e,t){}}class Xc{visitText(e){return e.value}visitContainer(e){return e.children.map(t=>t.visit(this)).join("")}visitIcu(e){const t=Object.keys(e.cases).map(s=>`${s} {${e.cases[s].visit(this)}}`);return`{${e.expressionPlaceholder}, ${e.type}, ${t.join(" ")}}`}visitTagPlaceholder(e){const t=e.children.map(s=>s.visit(this)).join("");return`{$${e.startName}}${t}{$${e.closeName}}`}visitPlaceholder(e){return`{$${e.name}}`}visitIcuPlaceholder(e){return`{$${e.name}}`}}class $s{createNameMapper(e){return null}}class Wo extends zc{constructor(e,t){super(),this.mapName=t,this.internalToPublic={},this.publicToNextId={},this.publicToInternal={},e.nodes.forEach(s=>s.visit(this))}toPublicName(e){return this.internalToPublic.hasOwnProperty(e)?this.internalToPublic[e]:null}toInternalName(e){return this.publicToInternal.hasOwnProperty(e)?this.publicToInternal[e]:null}visitText(e,t){return null}visitTagPlaceholder(e,t){this.visitPlaceholderName(e.startName),super.visitTagPlaceholder(e,t),this.visitPlaceholderName(e.closeName)}visitPlaceholder(e,t){this.visitPlaceholderName(e.name)}visitIcuPlaceholder(e,t){this.visitPlaceholderName(e.name)}visitPlaceholderName(e){if(!e||this.internalToPublic.hasOwnProperty(e))return;let t=this.mapName(e);if(this.publicToInternal.hasOwnProperty(t)){const s=this.publicToNextId[t];this.publicToNextId[t]=s+1,t=`${t}_${s}`}else this.publicToNextId[t]=1;this.internalToPublic[e]=t,this.publicToInternal[t]=e}}const Qc=new class Yc{visitTag(e){const t=this._serializeAttributes(e.attrs);if(0==e.children.length)return`<${e.name}${t}/>`;const s=e.children.map(r=>r.visit(this));return`<${e.name}${t}>${s.join("")}</${e.name}>`}visitText(e){return e.value}visitDeclaration(e){return`<?xml${this._serializeAttributes(e.attrs)} ?>`}_serializeAttributes(e){const t=Object.keys(e).map(s=>`${s}="${e[s]}"`).join(" ");return t.length>0?" "+t:""}visitDoctype(e){return`<!DOCTYPE ${e.rootTag} [\n${e.dtd}\n]>`}};function Ur(n){return n.map(e=>e.visit(Qc)).join("")}class Hr{constructor(e){this.attrs={},Object.keys(e).forEach(t=>{this.attrs[t]=Rn(e[t])})}visit(e){return e.visitDeclaration(this)}}class Jc{constructor(e,t){this.rootTag=e,this.dtd=t}visit(e){return e.visitDoctype(this)}}class N{constructor(e,t={},s=[]){this.name=e,this.children=s,this.attrs={},Object.keys(t).forEach(r=>{this.attrs[r]=Rn(t[r])})}visit(e){return e.visitTag(this)}}class k{constructor(e){this.value=Rn(e)}visit(e){return e.visitText(this)}}class M extends k{constructor(e=0){super(`\n${new Array(e+1).join(" ")}`)}}const Zc=[[/&/g,"&amp;"],[/"/g,"&quot;"],[/'/g,"&apos;"],[/</g,"&lt;"],[/>/g,"&gt;"]];function Rn(n){return Zc.reduce((e,t)=>
1e.replace(t[0],t[1]),n)}const Go="messagebundle",Os="ph",Vs="ex";class zo extends $s{write(e,t){const s=new rp,r=new np;let i=new N(Go);return e.forEach(o=>{const a={id:o.id};o.description&&(a.desc=o.description),o.meaning&&(a.meaning=o.meaning);let l=[];o.sources.forEach(c=>{l.push(new N("source",{},[new k(`${c.filePath}:${c.startLine}${c.endLine!==c.startLine?","+c.endLine:""}`)]))}),i.children.push(new M(2),new N("msg",a,[...l,...r.serialize(o.nodes)]))}),i.children.push(new M),Ur([new Hr({version:"1.0",encoding:"UTF-8"}),new M,new Jc(Go,'<!ELEMENT messagebundle (msg)*>\n<!ATTLIST messagebundle class CDATA #IMPLIED>\n\n<!ELEMENT msg (#PCDATA|ph|source)*>\n<!ATTLIST msg id CDATA #IMPLIED>\n<!ATTLIST msg seq CDATA #IMPLIED>\n<!ATTLIST msg name CDATA #IMPLIED>\n<!ATTLIST msg desc CDATA #IMPLIED>\n<!ATTLIST msg meaning CDATA #IMPLIED>\n<!ATTLIST msg obsolete (obsolete) #IMPLIED>\n<!ATTLIST msg xml:space (default|preserve) "default">\n<!ATTLIST msg is_hidden CDATA #IMPLIED>\n\n<!ELEMENT source (#PCDATA)>\n\n<!ELEMENT ph (#PCDATA|ex)*>\n<!ATTLIST ph name CDATA #REQUIRED>\n\n<!ELEMENT ex (#PCDATA)>'),new M,s.addDefaultExamples(i),new M])}load(e,t){throw new Error("Unsupported")}digest(e){return Ko(e)}createNameMapper(e){return new Wo(e,jr)}}class np{visitText(e,t){return[new k(e.value)]}visitContainer(e,t){const s=[];return e.children.forEach(r=>s.push(...r.visit(this))),s}visitIcu(e,t){const s=[new k(`{${e.expressionPlaceholder}, ${e.type}, `)];return Object.keys(e.cases).forEach(r=>{s.push(new k(`${r} {`),...e.cases[r].visit(this),new k("} "))}),s.push(new k("}")),s}visitTagPlaceholder(e,t){const s=new k(`<${e.tag}>`),r=new N(Vs,{},[s]),i=new N(Os,{name:e.startName},[r,s]);if(e.isVoid)return[i];const o=new k(`</${e.tag}>`),a=new N(Vs,{},[o]),l=new N(Os,{name:e.closeName},[a,o]);return[i,...this.serialize(e.children),l]}visitPlaceholder(e,t){const s=new k(`{{${e.value}}}`),r=new N(Vs,{},[s]);return[new N(Os,{name:e.name},[r,s])]}visitIcuPlaceholder(e,t){const s=e.value.expression,r=e.value.type,i=Object.keys(e.value.cases).map(l=>l+" {...}").join(" "),o=new k(`{${s}, ${r}, ${i}}`),a=new N(Vs,{},[o]);return[new N(Os,{name:e.name},[a,o])]}serialize(e){return[].concat(...e.map(t=>t.visit(this)))}}function Ko(n){return Ir(n)}class rp{addDefaultExamples(e){return e.visit(this),e}visitTag(e){if(e.name===Os){if(!e.children||0==e.children.length){const t=new k(e.attrs.name||"...");e.children=[new N(Vs,{},[t])]}}else e.children&&e.children.forEach(t=>t.visit(this))}visitText(e){}visitDeclaration(e){}visitDoctype(e){}}function jr(n){return n.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}const ip="MSG_",Xo="i18n",Wr="i18n-",Yo="\ufffd";function Qo(n){return n===Xo||n.startsWith(Wr)}function qs(n){return n instanceof He}function kn(n){return qs(n)&&1===n.nodes.length&&n.nodes[0]instanceof Yt}function lp(n){return!!n.i18n}function Jo(n){return n.nodes[0]}function Bn(n,e=0){return`${Yo}${n}${e>0?`:${e}`:""}${Yo}`}function hp(n=0){let e=n;return()=>e++}function Zo(n){const e={};return n.forEach((t,s)=>{e[s]=f(t.length>1?`[${t.join("|")}]`:t[0])}),e}function Fn(n,e,...t){const s=n.get(e)||[];s.push(...t),n.set(e,s)}function ea(n,e=0,t=0){const s=e,r=new Map,i=n instanceof He?n.nodes.find(o=>o instanceof We):n;return i&&i.children.filter(o=>o instanceof Ge).forEach((o,a)=>{const l=Bn(s+a,t);Fn(r,o.name,l)}),r}function Gr(n={},e){const t={};return n&&Object.keys(n).length&&Object.keys(n).forEach(s=>t[Us(s,e)]=n[s]),t}function Us(n,e=!0){const t=jr(n);if(!e)return t;const s=t.split("_");if(1===s.length)return n.toLowerCase();let r;/^\d+$/.test(s[s.length-1])&&(r=s.pop());let i=s.shift().toLowerCase();return s.length&&(i+=s.map(o=>o.charAt(0).toUpperCase()+o.slice(1).toLowerCase()).join("")),r?`${i}_${r}`:i}function ta(n){return`${ip}${n}`.toUpperCase()}function dp(n){return new Re(n.name,void 0,Z,void 0,n.sourceSpan)}const fp=/[-.]/,zr="_t",Ie="ctx",Hs="rf",sa="restoredCtx",Ep=500,_p=new Set([u.element,u.elementStart,u.elementEnd,u.elementContainer,u.elementContainerStart,u.elementContainerEnd,u.i18nExp,u.listener,u.classProp,u.syntheticHostListener,u.hostProperty,u.syntheticHostProperty,u.property,u.propertyInterpolate1,u.propertyInterpolate2,u.propertyInterpolate3,u.propertyInterpolate4,u.propertyInterpolate5,u.propertyInterpolate6,u.propertyInterpolate7,u.propertyInterpolate8,u.propertyInterpolateV,u.attribute,u.attributeInterpolate1,u.attributeInterpolate2,u.attributeInterpolate3,u.attributeInterpolate4,u.attributeInterpolate5,u.attributeInterpolate6,u.attributeInterpolate7,u.attributeInterpolate8,u.attributeInterpolateV,u.styleProp,u.stylePropInterpolate1,u.stylePropInterpolate2,u.stylePropInterpolate3,u.stylePropInterpolate4,u.stylePropInterpolate5,u.stylePropInterpolate6,u.stylePropInterpolate7,u.stylePropInterpolate8,u.stylePropInterpolateV,u.textInterpolate,u.textInterpolate1,u.textInterpolate2,u.textInterpolate3,u.textInterpolate4,u.textInterpolate5,u.textInterpolate6,u.textInterpolate7,u.textInterpolate8,u.textInterpolateV]);function At(n,e,t){return E(e,null,n).callFn(t,n)}function na(n,e){let t=null;return()=>(t||(n.push(new Re(zr,void 0,tt)),t=L(e)),t)}function js(n){throw new Error(`Invalid state: Visitor ${this.constructor.name} doesn't handle ${n.constructor.name}`)}function ye(n){return Array.isArray(n)?b(n.map(ye)):f(n,Z)}function $n(n,e){return Object.getOwnPropertyNames(n).length>0?function yp(n,e){return G(Object.getOwnPropertyNames(n).map(t=>{const s=n[t];let r,i,o,a;return Array.isArray(s)?([i,r]=s,o=t,a=i!==r):(o=r=t,i=s,a=!1),{key:o,quoted:fp.test(o),value:e&&a?b([ye(i),ye(r)]):ye(i)}}))}(n,e):null}function Kr(n){for(;kr(n[n.length-1]);)n.pop();return n}function xp(n,e){if(Array.isArray(n.predicate)){let t=[];return n.predicate.forEach(s=>{const r=s.split(",").map(i=>f(i.trim()));t.push(...r)}),e.getConstLiteral(b(t),!0)}switch(n.predicate.forwardRef){case 0:case 2:return n.predicate.expression;case 1:return E(u.resolveForwardRef).callFn([n.predicate.expression])}}class j{constructor(){this.values=[]}set(e,t){t&&this.values.push({key:e,value:t,quoted:!1})}toLiteralMap(){return G(this.values)}}function Tt(n){const{expressions:e,strings:t}=n;return 1===e.length&&2===t.length&&""===t[0]&&""===t[1]?1:e.length+t.length}function On(n){const e=[];let t=null,s=null,r=0;for(const o of n){var i;const a=null!==(i="function"==typeof o.paramsOrFn?o.paramsOrFn():o.paramsOrFn)&&void 0!==i?i:[],l=Array.isArray(a)?a:[a];r<Ep&&s===o.reference&&_p.has(s)?(t=t.callFn(l,t.sourceSpan),r++):(null!==t&&e.push(t.toStmt()),t=At(o.span,o.reference,l),s=o.reference,r=0)}return null!==t&&e.push(t.toStmt()),e}function Xr(n,e){let t=null;const s={name:n.name,type:n.type,internalType:n.internalType,typeArgumentCount:n.typeArgumentCount,deps:[],target:Ee.Injectable};
1if(void 0!==n.useClass){const a=n.useClass.expression.isEquivalent(n.internalType);let l;void 0!==n.deps&&(l=n.deps),t=void 0!==l?it({...s,delegate:n.useClass.expression,delegateDeps:l,delegateType:Rs.Class}):a?it(s):{statements:[],expression:ra(n.type.value,n.useClass.expression,e)}}else t=void 0!==n.useFactory?void 0!==n.deps?it({...s,delegate:n.useFactory,delegateDeps:n.deps||[],delegateType:Rs.Function}):{statements:[],expression:Y([],[new U(n.useFactory.callFn([]))])}:void 0!==n.useValue?it({...s,expression:n.useValue.expression}):void 0!==n.useExisting?it({...s,expression:E(u.inject).callFn([n.useExisting.expression])}):{statements:[],expression:ra(n.type.value,n.internalType,e)};const r=n.internalType,i=new j;return i.set("token",r),i.set("factory",t.expression),null!==n.providedIn.expression.value&&i.set("providedIn",Kt(n.providedIn)),{expression:E(u.\u0275\u0275defineInjectable).callFn([i.toLiteralMap()],void 0,!0),type:Yr(n),statements:t.statements}}function Yr(n){return new Ae(E(u.InjectableDeclaration,[Nn(n.type.type,n.typeArgumentCount)]))}function ra(n,e,t){if(n.node===e.node)return e.prop("\u0275fac");if(!t)return ia(e);return ia(E(u.resolveForwardRef).callFn([e]))}function ia(n){return Y([new ne("t",tt)],[new U(n.prop("\u0275fac").callFn([L("t")]))])}const wp=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];class Ws{static fromArray(e){return e?(function Cp(n,e){if(null!=e&&(!Array.isArray(e)||2!=e.length))throw new Error(`Expected '${n}' to be an array, [start, end].`);if(null!=e){const t=e[0],s=e[1];wp.forEach(r=>{if(r.test(t)||r.test(s))throw new Error(`['${t}', '${s}'] contains unusable interpolation symbol.`)})}}("interpolation",e),new Ws(e[0],e[1])):he}constructor(e,t){this.start=e,this.end=t}}const he=new Ws("{{","}}"),ie=0,Qr=9,It=10,oa=11,aa=12,Jr=13,ua=32,Gs=34,ca=36,zs=39,pa=43,Un=45,Ke=47,Xe=59,Zt=60,es=61,at=62,ei=48,bp=55,da=57,ts=65,Dp=69,Np=70,Hn=90,si=95,bt=97,Rp=101,ni=102,fa=110,ma=114,ga=116,Ea=118,Qs=122,ut=123,be=125,xa=160,kp=96;function ri(n){return n>=Qr&&n<=ua||n==xa}function lt(n){return ei<=n&&n<=da}function ii(n){return n>=bt&&n<=Qs||n>=ts&&n<=Hn}function Sa(n){return n===It||n===Jr}function wa(n){return ei<=n&&n<=bp}function oi(n){return n===zs||n===Gs||n===kp}class ct{constructor(e,t,s,r){this.file=e,this.offset=t,this.line=s,this.col=r}toString(){return null!=this.offset?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){const t=this.file.content,s=t.length;let r=this.offset,i=this.line,o=this.col;for(;r>0&&e<0;)if(r--,e++,t.charCodeAt(r)==It){i--;const l=t.substring(0,r-1).lastIndexOf(String.fromCharCode(It));o=l>0?r-l:r}else o--;for(;r<s&&e>0;){const a=t.charCodeAt(r);r++,e--,a==It?(i++,o=0):o++}return new ct(this.file,r,i,o)}getContext(e,t){const s=this.file.content;let r=this.offset;if(null!=r){r>s.length-1&&(r=s.length-1);let i=r,o=0,a=0;for(;o<e&&r>0&&(r--,o++,"\n"!=s[r]||++a!=t););for(o=0,a=0;o<e&&i<s.length-1&&(i++,o++,"\n"!=s[i]||++a!=t););return{before:s.substring(r,this.offset),after:s.substring(this.offset,i+1)}}return null}}class jn{constructor(e,t){this.content=e,this.url=t}}class W{constructor(e,t,s=e,r=null){this.start=e,this.end=t,this.fullStart=s,this.details=r}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}}var Fe;!function(n){n[n.WARNING=0]="WARNING",n[n.ERROR=1]="ERROR"}(Fe||(Fe={}));class ss{constructor(e,t,s=Fe.ERROR){this.span=e,this.msg=t,this.level=s}contextualMessage(){const e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${Fe[this.level]} ->]${e.after}")`:this.msg}toString(){const e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}}function Ca(n,e,t){const r=new jn("",`in ${n} ${e} in ${t}`);return new W(new ct(r,-1,-1,-1),new ct(r,-1,-1,-1))}let Fp=0;function Aa(n){if(!n||!n.reference)return null;const e=n.reference;if(e.__anonymousType)return e.__anonymousType;if(e.__forward_ref__)return"__forward_ref__";let t=No(e);return t.indexOf("(")>=0?(t="anonymous_"+Fp++,e.__anonymousType=t):t=Dt(t),t}function Dt(n){return n.replace(/\W/g,"_")}
1const Ta='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})';class $p extends Bc{constructor(){super(!1)}visitWrappedNodeExpr(e,t){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")}visitDeclareVarStmt(e,t){return t.print(e,`var ${e.name}`),e.value&&(t.print(e," = "),e.value.visitExpression(this,t)),t.println(e,";"),null}visitTaggedTemplateExpr(e,t){const s=e.template.elements;return e.tag.visitExpression(this,t),t.print(e,`(${Ta}(`),t.print(e,`[${s.map(r=>Ct(r.text,!1)).join(", ")}], `),t.print(e,`[${s.map(r=>Ct(r.rawText,!1)).join(", ")}])`),e.template.expressions.forEach(r=>{t.print(e,", "),r.visitExpression(this,t)}),t.print(e,")"),null}visitFunctionExpr(e,t){return t.print(e,`function${e.name?" "+e.name:""}(`),this._visitParams(e.params,t),t.println(e,") {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.print(e,"}"),null}visitDeclareFunctionStmt(e,t){return t.print(e,`function ${e.name}(`),this._visitParams(e.params,t),t.println(e,") {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.println(e,"}"),null}visitLocalizedString(e,t){t.print(e,`$localize(${Ta}(`);const s=[e.serializeI18nHead()];for(let r=1;r<e.messageParts.length;r++)s.push(e.serializeI18nTemplatePart(r));return t.print(e,`[${s.map(r=>Ct(r.cooked,!1)).join(", ")}], `),t.print(e,`[${s.map(r=>Ct(r.raw,!1)).join(", ")}])`),e.expressions.forEach(r=>{t.print(e,", "),r.visitExpression(this,t)}),t.print(e,")"),null}_visitParams(e,t){this.visitAllObjects(s=>t.print(null,s.name),e,t,",")}}let Wn;function Vp(n){var e;return(null===(e=function Op(){if(void 0===Wn&&(Wn=null,zt.trustedTypes))try{Wn=zt.trustedTypes.createPolicy("angular#unsafe-jit",{createScript:n=>n})}catch{}return Wn}())||void 0===e?void 0:e.createScript(n))||n}function Ia(...n){if(!zt.trustedTypes)return new Function(...n);const s=`(function anonymous(${n.slice(0,-1).join(",")}\n) { ${n[n.length-1]}\n})`,r=zt.eval(Vp(s));return void 0===r.bind?new Function(...n):(r.toString=()=>s,r.bind(zt))}class ba{evaluateStatements(e,t,s,r){const i=new qp(s),o=Dn.createRoot();return t.length>0&&!function Up(n){return n.isEquivalent(f("use strict").toStmt())}(t[0])&&(t=[f("use strict").toStmt(),...t]),i.visitAllStatements(t,o),i.createReturnStmt(o),this.evaluateCode(e,o,i.getArgs(),r)}evaluateCode(e,t,s,r){let i=`"use strict";${t.toSource()}\n//# sourceURL=${e}`;const o=[],a=[];for(const c in s)a.push(s[c]),o.push(c);if(r){const c=Ia(...o.concat("return null;")).toString(),p=c.slice(0,c.indexOf("return null;")).split("\n").length-1;i+=`\n${t.toSourceMapGenerator(e,p).toJsComment()}`}const l=Ia(...o.concat(i));return this.executeFunction(l,a)}executeFunction(e,t){return e(...t)}}class qp extends $p{constructor(e){super(),this.refResolver=e,this._evalArgNames=[],this._evalArgValues=[],this._evalExportedVars=[]}createReturnStmt(e){new U(new Gt(this._evalExportedVars.map(s=>new Lr(s,L(s),!1)))).visitStatement(this,e)}getArgs(){const e={};for(let t=0;t<this._evalArgNames.length;t++)e[this._evalArgNames[t]]=this._evalArgValues[t];return e}visitExternalExpr(e,t){return this._emitReferenceToExternal(e,this.refResolver.resolveExternalReference(e.value),t),null}visitWrappedNodeExpr(e,t){return this._emitReferenceToExternal(e,e.node,t),null}visitDeclareVarStmt(e,t){return e.hasModifier(re.Exported)&&this._evalExportedVars.push(e.name),super.visitDeclareVarStmt(e,t)}visitDeclareFunctionStmt(e,t){return e.hasModifier(re.Exported)&&this._evalExportedVars.push(e.name),super.visitDeclareFunctionStmt(e,t)}_emitReferenceToExternal(e,t,s){let r=this._evalArgValues.indexOf(t);if(-1===r){r=this._evalArgValues.length,this._evalArgValues.push(t);const i=Aa({reference:t})||"val";this._evalArgNames.push(`jit_${i}_${r}`)}s.print(e,this._evalArgNames[r])}}function ai(n){const e=new j;null!==n.providers&&e.set("providers",n.providers),n.imports.length>0&&e.set("imports",b(n.imports));return{expression:E(u.defineInjector).callFn([e.toLiteralMap()],void 0,!0),type:Da(n),statements:[]}}function Da(n){return new Ae(E(u.InjectorDeclaration,[new Ae(n.type.type)]))}class Hp{constructor(e){this.context=e}
1resolveExternalReference(e){if("@angular/core"!==e.moduleName)throw new Error(`Cannot resolve external reference to ${e.moduleName}, only references to @angular/core are supported.`);if(!this.context.hasOwnProperty(e.name))throw new Error(`No value provided for @angular/core symbol '${e.name}'.`);return this.context[e.name]}}var ns,Ye,pt,R;function Na(n){const{adjacentType:e,internalType:t,bootstrap:s,declarations:r,imports:i,exports:o,schemas:a,containsForwardDecls:l,selectorScopeMode:c,id:p}=n,h=[],m=new j;if(m.set("type",t),s.length>0&&m.set("bootstrap",Te(s,l)),c===ns.Inline)r.length>0&&m.set("declarations",Te(r,l)),i.length>0&&m.set("imports",Te(i,l)),o.length>0&&m.set("exports",Te(o,l));else if(c===ns.SideEffect){const _=function Wp(n){const{adjacentType:e,declarations:t,imports:s,exports:r,containsForwardDecls:i}=n,o=new j;if(t.length>0&&o.set("declarations",Te(t,i)),s.length>0&&o.set("imports",Te(s,i)),r.length>0&&o.set("exports",Te(r,i)),0===Object.keys(o.values).length)return null;const a=new nt(E(u.setNgModuleScope),[e,o.toLiteralMap()]),l=function $c(n){return Oo("ngJitMode",n)}(a),c=new rt([],[l.toStmt()]);return new nt(c,[]).toStmt()}(n);null!==_&&h.push(_)}null!==a&&a.length>0&&m.set("schemas",b(a.map(_=>_.value))),null!==p&&(m.set("id",p),h.push(E(u.registerNgModuleType).callFn([e,p]).toStmt()));return{expression:E(u.defineNgModule).callFn([m.toLiteralMap()],void 0,!0),type:Pa(n),statements:h}}function Pa({type:n,declarations:e,exports:t,imports:s,includeImportTypes:r,publicDeclarationTypes:i}){return new Ae(E(u.NgModuleDeclaration,[new Ae(n.type),null===i?ui(e):Gp(i),r?ui(s):ve,ui(t)]))}function ui(n){const e=n.map(t=>Ls(t.type));return n.length>0?X(b(e)):ve}function Gp(n){const e=n.map(t=>Ls(t));return n.length>0?X(b(e)):ve}function li(n){const e=[];e.push({key:"name",value:f(n.pipeName),quoted:!1}),e.push({key:"type",value:n.type.value,quoted:!1}),e.push({key:"pure",value:f(n.pure),quoted:!1}),n.isStandalone&&e.push({key:"standalone",value:f(!0),quoted:!1});return{expression:E(u.definePipe).callFn([G(e)],void 0,!0),type:La(n),statements:[]}}function La(n){return new Ae(E(u.PipeDeclaration,[Nn(n.type.type,n.typeArgumentCount),new Ae(new ce(n.pipeName)),new Ae(new ce(n.isStandalone))]))}!function(n){n[n.Inline=0]="Inline",n[n.SideEffect=1]="SideEffect",n[n.Omit=2]="Omit"}(ns||(ns={})),function(n){n[n.Directive=0]="Directive",n[n.Pipe=1]="Pipe",n[n.NgModule=2]="NgModule"}(Ye||(Ye={}));class Gn{constructor(e,t,s,r){this.input=t,this.errLocation=s,this.ctxLocation=r,this.message=`Parser Error: ${e} ${s} [${t}] in ${r}`}}class rs{constructor(e,t){this.start=e,this.end=t}toAbsolute(e){return new xe(e+this.start,e+this.end)}}class H{constructor(e,t){this.span=e,this.sourceSpan=t}toString(){return"AST"}}class Js extends H{constructor(e,t,s){super(e,t),this.nameSpan=s}}class de extends H{visit(e,t=null){}}class Nt extends H{visit(e,t=null){return e.visitImplicitReceiver(this,t)}}class zn extends Nt{visit(e,t=null){var s;return null===(s=e.visitThisReceiver)||void 0===s?void 0:s.call(e,this,t)}}class Kn extends H{constructor(e,t,s){super(e,t),this.expressions=s}visit(e,t=null){return e.visitChain(this,t)}}class Xn extends H{constructor(e,t,s,r,i){super(e,t),this.condition=s,this.trueExp=r,this.falseExp=i}visit(e,t=null){return e.visitConditional(this,t)}}class Qe extends Js{constructor(e,t,s,r,i){super(e,t,s),this.receiver=r,this.name=i}visit(e,t=null){return e.visitPropertyRead(this,t)}}class Yn extends Js{constructor(e,t,s,r,i,o){super(e,t,s),this.receiver=r,this.name=i,this.value=o}visit(e,t=null){return e.visitPropertyWrite(this,t)}}class Qn extends Js{constructor(e,t,s,r,i){super(e,t,s),this.receiver=r,this.name=i}visit(e,t=null){return e.visitSafePropertyRead(this,t)}}class Zs extends H{constructor(e,t,s,r){super(e,t),this.receiver=s,this.key=r}visit(e,t=null){return e.visitKeyedRead(this,t)}}class en extends H{constructor(e,t,s,r){super(e,t),this.receiver=s,this.key=r}visit(e,t=null){return e.visitSafeKeyedRead(this,t)}}class Jn extends H{constructor(e,t,s,r,i){super(e,t),this.receiver=s,this.key=r,this.value=i}visit(e,t=null){return e.visitKeyedWrite(this,t)}}class tn extends Js{constructor(e,t,s,r,i,o){super(e,t,o),this.exp=s,this.name=r,this.args=i}visit(e,t=null){return e.visitPipe(this,t)}}class oe extends H{constructor(e,t,s){super(e,t),this.value=s}visit(e,t=null){return e.visitLiteralPrimitive(this,t)}}class sn extends H{constructor(e,t,s){super(e,t),this.expressions=s}visit(e,t=null){return e.visitLiteralArray(this,t)}}class Zn extends H{constructor(e,t,s,r){super(e,t),this.keys=s,this.values=r}visit(e,t=null){return e.visitLiteralMap(this,t)}}class J extends H{constructor(e,t,s,r){super(e,t),this.strings=s,this.expressions=r}visit(e,t=null){return e.visitInterpolation(this,t)}}class De extends H{constructor(e,t,s,r,i){super(e,t),this.operation=s,this.left=r,this.right=i}visit(e,t=null){return e.visitBinary(this,t)}}class $e extends De{static createMinus(e,t,s){return new $e(e,t,"-",s,"-",new oe(e,t,0),s)}static createPlus(e,t,s){return new $e(e,t,"+",s,"-",s,new oe(e,t,0))}constructor(e,t,s,r,i,o,a){super(e,t,i,o,a),this.operator=s,this.expr=r,this.left=null,this.right=null,this.operation=null}visit(e,t=null){return void 0!==e.visitUnary?e.visitUnary(this,t):e.visitBinary(this,t)}}class er extends H{constructor(e,t,s){super(e,t),this.expression=s}visit(e,t=null){return e.visitPrefixNot(this,t)}}class tr extends H{constructor(e,t,s){super(e,t),this.expression=s}visit(e,t=null){return e.visitNonNullAssert(this,t)}}class Pt extends H{constructor(e,t,s,r,i){super(e,t),this.receiver=s,this.args=r,this.argumentSpan=i}visit(e,t=null){return e.visitCall(this,t)}}class nn extends H{constructor(e,t,s,r,i){super(e,t),this.receiver=s,this.args=r,this.argumentSpan=i}visit(e,t=null){return e.visitSafeCall(this,t)}}class xe{constructor(e,t){this.start=e,this.end=t}}class Je extends H{constructor(e,t,s,r,i){super(new rs(0,null===t?0:t.length),new xe(r,null===t?r:r+t.length)),this.ast=e,this.source=t,this.location=s,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}`}}class sr{constructor(e,t,s){this.sourceSpan=e,this.key=t,this.value=s}}class Ma{constructor(e,t,s){this.sourceSpan=e,this.key=t,this.value=s}}class ci{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)}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)}visitAll(e,t){for(const s of e)this.visit(s,t)}}class Ra{visitImplicitReceiver(e,t){return e}visitThisReceiver(e,t){return e}
1visitInterpolation(e,t){return new J(e.span,e.sourceSpan,e.strings,this.visitAll(e.expressions))}visitLiteralPrimitive(e,t){return new oe(e.span,e.sourceSpan,e.value)}visitPropertyRead(e,t){return new Qe(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}visitPropertyWrite(e,t){return new Yn(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name,e.value.visit(this))}visitSafePropertyRead(e,t){return new Qn(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}visitLiteralArray(e,t){return new sn(e.span,e.sourceSpan,this.visitAll(e.expressions))}visitLiteralMap(e,t){return new Zn(e.span,e.sourceSpan,e.keys,this.visitAll(e.values))}visitUnary(e,t){switch(e.operator){case"+":return $e.createPlus(e.span,e.sourceSpan,e.expr.visit(this));case"-":return $e.createMinus(e.span,e.sourceSpan,e.expr.visit(this));default:throw new Error(`Unknown unary operator ${e.operator}`)}}visitBinary(e,t){return new De(e.span,e.sourceSpan,e.operation,e.left.visit(this),e.right.visit(this))}visitPrefixNot(e,t){return new er(e.span,e.sourceSpan,e.expression.visit(this))}visitNonNullAssert(e,t){return new tr(e.span,e.sourceSpan,e.expression.visit(this))}visitConditional(e,t){return new Xn(e.span,e.sourceSpan,e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this))}visitPipe(e,t){return new tn(e.span,e.sourceSpan,e.exp.visit(this),e.name,this.visitAll(e.args),e.nameSpan)}visitKeyedRead(e,t){return new Zs(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this))}visitKeyedWrite(e,t){return new Jn(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this),e.value.visit(this))}visitCall(e,t){return new Pt(e.span,e.sourceSpan,e.receiver.visit(this),this.visitAll(e.args),e.argumentSpan)}visitSafeCall(e,t){return new nn(e.span,e.sourceSpan,e.receiver.visit(this),this.visitAll(e.args),e.argumentSpan)}visitAll(e){const t=[];for(let s=0;s<e.length;++s)t[s]=e[s].visit(this);return t}visitChain(e,t){return new Kn(e.span,e.sourceSpan,this.visitAll(e.expressions))}visitSafeKeyedRead(e,t){return new en(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this))}}class ka{visitImplicitReceiver(e,t){return e}visitThisReceiver(e,t){return e}visitInterpolation(e,t){const s=this.visitAll(e.expressions);return s!==e.expressions?new J(e.span,e.sourceSpan,e.strings,s):e}visitLiteralPrimitive(e,t){return e}visitPropertyRead(e,t){const s=e.receiver.visit(this);return s!==e.receiver?new Qe(e.span,e.sourceSpan,e.nameSpan,s,e.name):e}visitPropertyWrite(e,t){const s=e.receiver.visit(this),r=e.value.visit(this);return s!==e.receiver||r!==e.value?new Yn(e.span,e.sourceSpan,e.nameSpan,s,e.name,r):e}visitSafePropertyRead(e,t){const s=e.receiver.visit(this);return s!==e.receiver?new Qn(e.span,e.sourceSpan,e.nameSpan,s,e.name):e}visitLiteralArray(e,t){const s=this.visitAll(e.expressions);return s!==e.expressions?new sn(e.span,e.sourceSpan,s):e}visitLiteralMap(e,t){const s=this.visitAll(e.values);return s!==e.values?new Zn(e.span,e.sourceSpan,e.keys,s):e}visitUnary(e,t){const s=e.expr.visit(this);if(s!==e.expr)switch(e.operator){case"+":return $e.createPlus(e.span,e.sourceSpan,s);case"-":return $e.createMinus(e.span,e.sourceSpan,s);default:throw new Error(`Unknown unary operator ${e.operator}`)}return e}visitBinary(e,t){const s=e.left.visit(this),r=e.right.visit(this);return s!==e.left||r!==e.right?new De(e.span,e.sourceSpan,e.operation,s,r):e}visitPrefixNot(e,t){const s=e.expression.visit(this);return s!==e.expression?new er(e.span,e.sourceSpan,s):e}visitNonNullAssert(e,t){const s=e.expression.visit(this);return s!==e.expression?new tr(e.span,e.sourceSpan,s):e}visitConditional(e,t){const s=e.condition.visit(this),r=e.trueExp.visit(this),i=e.falseExp.visit(this);return s!==e.condition||r!==e.trueExp||i!==e.falseExp?new Xn(e.span,e.sourceSpan,s,r,i):e}visitPipe(e,t){const s=e.exp.visit(this),r=this.visitAll(e.args);return s!==e.exp||r!==e.args?new tn(e.span,e.sourceSpan,s,e.name,r,e.nameSpan):e}visitKeyedRead(e,t){const s=e.receiver.visit(this),r=e.key.visit(this);return s!==e.receiver||r!==e.key?new Zs(e.span,e.sourceSpan,s,r):e}visitKeyedWrite(e,t){const s=e.receiver.visit(this),r=e.key.visit(this),i=e.value.visit(this);return s!==e.receiver||r!==e.key||i!==e.value?new Jn(e.span,e.sourceSpan,s,r,i):e}visitAll(e){const t=[];let s=!1;for(let r=0;r<e.length;++r){const i=e[r],o=i.visit(this);t[r]=o,s=s||o!==i}return s?t:e}visitChain(e,t){const s=this.visitAll(e.expressions);return s!==e.expressions?new Kn(e.span,e.sourceSpan,s):e}
1visitCall(e,t){const s=e.receiver.visit(this),r=this.visitAll(e.args);return s!==e.receiver||r!==e.args?new Pt(e.span,e.sourceSpan,s,r,e.argumentSpan):e}visitSafeCall(e,t){const s=e.receiver.visit(this),r=this.visitAll(e.args);return s!==e.receiver||r!==e.args?new nn(e.span,e.sourceSpan,s,r,e.argumentSpan):e}visitSafeKeyedRead(e,t){const s=e.receiver.visit(this),r=e.key.visit(this);return s!==e.receiver||r!==e.key?new en(e.span,e.sourceSpan,s,r):e}}class nr{constructor(e,t,s,r,i,o){this.name=e,this.expression=t,this.type=s,this.sourceSpan=r,this.keySpan=i,this.valueSpan=o,this.isLiteral=this.type===pt.LITERAL_ATTR,this.isAnimation=this.type===pt.ANIMATION}}!function(n){n[n.DEFAULT=0]="DEFAULT",n[n.LITERAL_ATTR=1]="LITERAL_ATTR",n[n.ANIMATION=2]="ANIMATION"}(pt||(pt={}));class pi{constructor(e,t,s,r,i,o,a){this.name=e,this.targetOrPhase=t,this.type=s,this.handler=r,this.sourceSpan=i,this.handlerSpan=o,this.keySpan=a}}class Ba{constructor(e,t,s,r,i){this.name=e,this.value=t,this.sourceSpan=s,this.keySpan=r,this.valueSpan=i}}class hi{constructor(e,t,s,r,i,o,a,l){this.name=e,this.type=t,this.securityContext=s,this.value=r,this.unit=i,this.sourceSpan=o,this.keySpan=a,this.valueSpan=l}}class di{}function zp(n,e,t,s,r,i,o){n||(n=new Ua(o));const a=function Kp(n,e){return function Qp(n,e){const t=new eh(n);return e.visit(t)}(n,e)}({createLiteralArrayConverter:h=>m=>b(m),createLiteralMapConverter:h=>m=>G(h.map((v,_)=>({key:v.key,value:m[_],quoted:v.quoted}))),createPipeConverter:h=>{throw new Error(`Illegal State: Actions are not allowed to contain pipes. Pipe: ${h}`)}},t),l=new mi(n,e,s,!1,r,i),c=[];qa(a.visit(l,R.Statement),c),function Jp(n,e,t){for(let s=n-1;s>=0;s--)t.unshift(Oa(e,s))}(l.temporaryCount,s,c),l.usesImplicitReceiver&&n.notifyImplicitReceiverUse();const p=c.length-1;if(p>=0){const h=c[p];h instanceof ke&&(c[p]=new U(h.expr))}return c}di.event=L("$event");class Xp{constructor(e,t){this.stmts=e,this.currValExpr=t}}function Fa(n,e,t,s){n||(n=new Ua);const r=new mi(n,e,s,!1),i=t.visit(r,R.Expression),o=$a(r,s);return r.usesImplicitReceiver&&n.notifyImplicitReceiverUse(),new Xp(o,i)}function $a(n,e){const t=[];for(let s=0;s<n.temporaryCount;s++)t.push(Oa(e,s));return t}function fi(n,e){return`tmp_${n}_${e}`}function Oa(n,e){return new Re(fi(n,e))}function Va(n,e){if(n!==R.Expression)throw new Error(`Expected an expression, but saw ${e}`)}function ee(n,e){return n===R.Statement?e.toStmt():e}!function(n){n[n.Statement=0]="Statement",n[n.Expression=1]="Expression"}(R||(R={}));class eh extends Ra{constructor(e){super(),this._converterFactory=e}visitPipe(e,t){const s=[e.exp,...e.args].map(r=>r.visit(this,t));return new is(e.span,e.sourceSpan,s,this._converterFactory.createPipeConverter(e.name,s.length))}visitLiteralArray(e,t){const s=e.expressions.map(r=>r.visit(this,t));return new is(e.span,e.sourceSpan,s,this._converterFactory.createLiteralArrayConverter(e.expressions.length))}visitLiteralMap(e,t){const s=e.values.map(r=>r.visit(this,t));return new is(e.span,e.sourceSpan,s,this._converterFactory.createLiteralMapConverter(e.keys))}}class mi{constructor(e,t,s,r,i,o){this._localResolver=e,this._implicitReceiver=t,this.bindingId=s,this.supportsInterpolation=r,this.baseSourceSpan=i,this.implicitReceiverAccesses=o,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0,this.usesImplicitReceiver=!1}visitUnary(e,t){let s;switch(e.operator){case"+":s=st.Plus;break;case"-":s=st.Minus;break;default:throw new Error(`Unsupported operator ${e.operator}`)}return ee(t,new jt(s,this._visit(e.expr,R.Expression),void 0,this.convertSourceSpan(e.span)))}visitBinary(e,t){let s;switch(e.operation){case"+":s=S.Plus;break;case"-":s=S.Minus;break;case"*":s=S.Multiply;break;case"/":s=S.Divide;break;case"%":s=S.Modulo;break;case"&&":s=S.And;break;case"||":s=S.Or;break;case"==":s=S.Equals;break;case"!=":s=S.NotEquals;break;case"===":s=S.Identical;break;case"!==":s=S.NotIdentical;break;case"<":s=S.Lower;break;case">":s=S.Bigger;break;case"<=":s=S.LowerEquals;break;case">=":s=S.BiggerEquals;break;case"??":return this.convertNullishCoalesce(e,t);default:throw new Error(`Unsupported operation ${e.operation}`)}return ee(t,new F(s,this._visit(e.left,R.Expression),this._visit(e.right,R.Expression),void 0,this.convertSourceSpan(e.span)))}visitChain(e,t){return function Zp(n,e){if(n!==R.Statement)throw new Error(`Expected a statement, but saw ${e}`)}(t,e),this.visitAll(e.expressions,t)}visitConditional(e,t){return ee(t,this._visit(e.condition,R.Expression).conditional(this._visit(e.trueExp,R.Expression),this._visit(e.falseExp,R.Expression),this.convertSourceSpan(e.span)))}visitPipe(e,t){throw new Error(`Illegal state: Pipes should have been converted into functions. Pipe: ${e.name}`)}visitImplicitReceiver(e,t){return Va(t,e),this.usesImplicitReceiver=!0,this._implicitReceiver}visitThisReceiver(e,t){return this.visitImplicitReceiver(e,t)}visitInterpolation(e,t){if(!this.supportsInterpolation)throw new Error("Unexpected interpolation");Va(t,e);let s=[];for(let i=0;i<e.strings.length-1;i++)s.push(f(e.strings[i])),s.push(this._visit(e.expressions[i],R.Expression));s.push(f(e.strings[e.strings.length-1]));const r=e.strings;return 2===r.length&&""===r[0]&&""===r[1]?s=[s[1]]:e.expressions.length>=9&&(s=[b(s)]),new th(s)}visitKeyedRead(e,t){const s=this.leftMostSafeNode(e);return s?this.convertSafeAccess(e,s,t):ee(t,this._visit(e.receiver,R.Expression).key(this._visit(e.key,R.Expression)))}visitKeyedWrite(e,t){const s=this._visit(e.receiver,R.Expression),r=this._visit(e.key,R.Expression),i=this._visit(e.value,R.Expression);return s===this._implicitReceiver&&this._localResolver.maybeRestoreView(),ee(t,s.key(r).set(i))}visitLiteralArray(e,t){throw new Error("Illegal State: literal arrays should have been converted into functions")}visitLiteralMap(e,t){throw new Error("Illegal State: literal maps should have been converted into functions")}visitLiteralPrimitive(e,t){const s=null===e.value||void 0===e.value||!0===e.value||!0===e.value?Z:void 0;return ee(t,f(e.value,s,this.convertSourceSpan(e.span)))}_getLocal(e,t){var s;return null!==(s=this._localResolver.globals)&&void 0!==s&&s.has(e)&&t instanceof zn?null:this._localResolver.getLocal(e)}visitPrefixNot(e,t){return ee(t,wo(this._visit(e.expression,R.Expression)))}visitNonNullAssert(e,t){return ee(t,this._visit(e.expression,R.Expression))}visitPropertyRead(e,t){const s=this.leftMostSafeNode(e);if(s)return this.convertSafeAccess(e,s,t);{let r=null;const i=this.usesImplicitReceiver,o=this._visit(e.receiver,R.Expression);return o===this._implicitReceiver&&(r=this._getLocal(e.name,e.receiver),r&&(this.usesImplicitReceiver=i,this.addImplicitReceiverAccess(e.name))),null==r&&(r=o.prop(e.name,this.convertSourceSpan(e.span))),ee(t,r)}}visitPropertyWrite(e,t){const s=this._visit(e.receiver,R.Expression),r=this.usesImplicitReceiver;let i=null;if(s===this._implicitReceiver){const o=this._getLocal(e.name,e.receiver);if(o){if(!(o instanceof Wt)){const a=e.name,l=e.value instanceof Qe?e.value.name:void 0;throw new Error(`Cannot assign value "${l}" to template variable "${a}". Template variables are read-only.`)}i=o,this.usesImplicitReceiver=r,this.addImplicitReceiverAccess(e.name)}}return null===i&&(i=s.prop(e.name,this.convertSourceSpan(e.span))),ee(t,i.set(this._visit(e.value,R.Expression)))}visitSafePropertyRead(e,t){return this.convertSafeAccess(e,this.leftMostSafeNode(e),t)}visitSafeKeyedRead(e,t){return this.convertSafeAccess(e,this.leftMostSafeNode(e),t)}visitAll(e,t){return e.map(s=>this._visit(s,t))}visitCall(e,t){const s=this.leftMostSafeNode(e);if(s)return this.convertSafeAccess(e,s,t);const r=this.visitAll(e.args,R.Expression);if(e instanceof is)return ee(t,e.converter(r));const i=e.receiver;if(i instanceof Qe&&i.receiver instanceof Nt&&!(i.receiver instanceof zn)&&"$any"===i.name){if(1!==r.length)throw new Error(`Invalid call to $any, expected 1 argument but received ${r.length||"none"}`);return ee(t,r[0])}return ee(t,this._visit(i,R.Expression).callFn(r,this.convertSourceSpan(e.span)))}visitSafeCall(e,t){return this.convertSafeAccess(e,this.leftMostSafeNode(e),t)}_visit(e,t){return this._resultMap.get(e)||(this._nodeMap.get(e)||e).visit(this,t)}
1convertSafeAccess(e,t,s){let i,r=this._visit(t.receiver,R.Expression);this.needsTemporaryInSafeAccess(t.receiver)&&(i=this.allocateTemporary(),r=i.set(r),this._resultMap.set(t.receiver,i));const o=r.isBlank();t instanceof nn?this._nodeMap.set(t,new Pt(t.span,t.sourceSpan,t.receiver,t.args,t.argumentSpan)):t instanceof en?this._nodeMap.set(t,new Zs(t.span,t.sourceSpan,t.receiver,t.key)):this._nodeMap.set(t,new Qe(t.span,t.sourceSpan,t.nameSpan,t.receiver,t.name));const a=this._visit(e,R.Expression);return this._nodeMap.delete(t),i&&this.releaseTemporary(i),ee(s,o.conditional(Sn,a))}convertNullishCoalesce(e,t){const s=this._visit(e.left,R.Expression),r=this._visit(e.right,R.Expression),i=this.allocateTemporary();return this.releaseTemporary(i),ee(t,i.set(s).notIdentical(Sn).and(i.notIdentical(f(void 0))).conditional(i,r))}leftMostSafeNode(e){const t=(s,r)=>(this._nodeMap.get(r)||r).visit(s);return e.visit({visitUnary:s=>null,visitBinary:s=>null,visitChain:s=>null,visitConditional:s=>null,visitCall(s){return t(this,s.receiver)},visitSafeCall(s){return t(this,s.receiver)||s},visitImplicitReceiver:s=>null,visitThisReceiver:s=>null,visitInterpolation:s=>null,visitKeyedRead(s){return t(this,s.receiver)},visitKeyedWrite:s=>null,visitLiteralArray:s=>null,visitLiteralMap:s=>null,visitLiteralPrimitive:s=>null,visitPipe:s=>null,visitPrefixNot:s=>null,visitNonNullAssert(s){return t(this,s.expression)},visitPropertyRead(s){return t(this,s.receiver)},visitPropertyWrite:s=>null,visitSafePropertyRead(s){return t(this,s.receiver)||s},visitSafeKeyedRead(s){return t(this,s.receiver)||s}})}needsTemporaryInSafeAccess(e){const t=(r,i)=>i&&(this._nodeMap.get(i)||i).visit(r);return e.visit({visitUnary(r){return t(this,r.expr)},visitBinary(r){return t(this,r.left)||t(this,r.right)},visitChain:r=>!1,visitConditional(r){return t(this,r.condition)||t(this,r.trueExp)||t(this,r.falseExp)},visitCall:r=>!0,visitSafeCall:r=>!0,visitImplicitReceiver:r=>!1,visitThisReceiver:r=>!1,visitInterpolation(r){return((r,i)=>i.some(o=>t(r,o)))(this,r.expressions)},visitKeyedRead:r=>!1,visitKeyedWrite:r=>!1,visitLiteralArray:r=>!0,visitLiteralMap:r=>!0,visitLiteralPrimitive:r=>!1,visitPipe:r=>!0,visitPrefixNot(r){return t(this,r.expression)},visitNonNullAssert(r){return t(this,r.expression)},visitPropertyRead:r=>!1,visitPropertyWrite:r=>!1,visitSafePropertyRead:r=>!1,visitSafeKeyedRead:r=>!1})}allocateTemporary(){const e=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new yt(fi(this.bindingId,e))}releaseTemporary(e){if(this._currentTemporary--,e.name!=fi(this.bindingId,this._currentTemporary))throw new Error(`Temporary ${e.name} released out of order`)}convertSourceSpan(e){if(this.baseSourceSpan){const t=this.baseSourceSpan.start.moveBy(e.start),s=this.baseSourceSpan.start.moveBy(e.end),r=this.baseSourceSpan.fullStart.moveBy(e.start);return new W(t,s,r)}return null}addImplicitReceiverAccess(e){this.implicitReceiverAccesses&&this.implicitReceiverAccesses.add(e)}}function qa(n,e){Array.isArray(n)?n.forEach(t=>qa(t,e)):e.push(n)}function gi(){throw new Error("Unsupported operation")}class th extends O{constructor(e){super(null,null),this.args=e,this.isConstant=gi,this.isEquivalent=gi,this.visitExpression=gi}}class Ua{constructor(e){this.globals=e}notifyImplicitReceiverUse(){}maybeRestoreView(){}getLocal(e){return e===di.event.name?di.event:null}}class is extends Pt{constructor(e,t,s,r){super(e,t,new de(e,t),s,null),this.converter=r}}let rr;function Ha(){return rr||(rr={},ir(V.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),ir(V.STYLE,["*|style"]),ir(V.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),ir(V.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),rr}function ir(n,e){for(const t of e)rr[t.toLowerCase()]=n}const sh=new Set(["sandbox","allow","allowfullscreen","referrerpolicy","csp","fetchpriority"]);function ja(n){return sh.has(n.toLowerCase())}
1const nh=new Set(["inherit","initial","revert","unset","alternate","alternate-reverse","normal","reverse","backwards","both","forwards","none","paused","running","ease","ease-in","ease-in-out","ease-out","linear","step-start","step-end","end","jump-both","jump-end","jump-none","jump-start","start"]);class rh{constructor(){this._animationDeclarationKeyframesRe=/(^|\s+)(?:(?:(['"])((?:\\\\|\\\2|(?!\2).)+)\2)|(-?[A-Za-z][\w\-]*))(?=[,\s]|$)/g}shimCssText(e,t,s=""){const r=function Eh(n){return n.match(vh)||[]}(e);return e=function gh(n){return n.replace(mh,"")}(e),e=this._insertDirectives(e),[this._scopeCssText(e,t,s),...r].join("\n")}_insertDirectives(e){return e=this._insertPolyfillDirectivesInCssText(e),this._insertPolyfillRulesInCssText(e)}_scopeKeyframesRelatedCss(e,t){const s=new Set,r=ar(e,i=>this._scopeLocalKeyframeDeclarations(i,t,s));return ar(r,i=>this._scopeAnimationRule(i,t,s))}_scopeLocalKeyframeDeclarations(e,t,s){return{...e,selector:e.selector.replace(/(^@(?:-webkit-)?keyframes(?:\s+))(['"]?)(.+)\2(\s*)$/,(r,i,o,a,l)=>(s.add(Ja(a,o)),`${i}${o}${t}_${a}${o}${l}`))}}_scopeAnimationKeyframe(e,t,s){return e.replace(/^(\s*)(['"]?)(.+?)\2(\s*)$/,(r,i,o,a,l)=>`${i}${o}${a=`${s.has(Ja(a,o))?t+"_":""}${a}`}${o}${l}`)}_scopeAnimationRule(e,t,s){let r=e.content.replace(/((?:^|\s+|;)(?:-webkit-)?animation(?:\s*):(?:\s*))([^;]+)/g,(i,o,a)=>o+a.replace(this._animationDeclarationKeyframesRe,(l,c,p="",h,m)=>h?`${c}${this._scopeAnimationKeyframe(`${p}${h}${p}`,t,s)}`:nh.has(m)?l:`${c}${this._scopeAnimationKeyframe(m,t,s)}`));return r=r.replace(/((?:^|\s+|;)(?:-webkit-)?animation-name(?:\s*):(?:\s*))([^;]+)/g,(i,o,a)=>`${o}${a.split(",").map(l=>this._scopeAnimationKeyframe(l,t,s)).join(",")}`),{...e,content:r}}_insertPolyfillDirectivesInCssText(e){return e.replace(oh,function(...t){return t[2]+"{"})}_insertPolyfillRulesInCssText(e){return e.replace(ah,(...t)=>{const s=t[0].replace(t[1],"").replace(t[2],"");return t[4]+s})}_scopeCssText(e,t,s){const r=this._extractUnscopedRulesFromCssText(e);return e=this._insertPolyfillHostInCssText(e),e=this._convertColonHost(e),e=this._convertColonHostContext(e),e=this._convertShadowDOMSelectors(e),t&&(e=this._scopeKeyframesRelatedCss(e,t),e=this._scopeSelectors(e,t,s)),(e=e+"\n"+r).trim()}_extractUnscopedRulesFromCssText(e){let s,t="";for(Wa.lastIndex=0;null!==(s=Wa.exec(e));){t+=s[0].replace(s[2],"").replace(s[1],s[4])+"\n\n"}return t}_convertColonHost(e){return e.replace(uh,(t,s,r)=>{if(s){const i=[],o=s.split(",").map(a=>a.trim());for(const a of o){if(!a)break;const l=Lt+a.replace(or,"")+r;i.push(l)}return i.join(",")}return Lt+r})}_convertColonHostContext(e){return e.replace(lh,t=>{const s=[[]];let r;for(;r=ch.exec(t);){var i;const o=(null!==(i=r[1])&&void 0!==i?i:"").trim().split(",").map(l=>l.trim()).filter(l=>""!==l),a=s.length;Nh(s,o.length);for(let l=0;l<o.length;l++)for(let c=0;c<a;c++)s[c+l*a].push(o[l]);t=r[2]}return s.map(o=>function Dh(n,e){const t=Lt;os.lastIndex=0;const s=os.test(e);if(0===n.length)return t+e;const r=[n.pop()||""];for(;n.length>0;){const i=r.length,o=n.pop();for(let a=0;a<i;a++){const l=r[a];r[2*i+a]=l+" "+o,r[i+a]=o+" "+l,r[a]=o+l}}return r.map(i=>s?`${i}${e}`:`${i}${t}${e}, ${i} ${t}${e}`).join(",")}(o,t)).join(", ")})}_convertShadowDOMSelectors(e){return ph.reduce((t,s)=>t.replace(s," "),e)}_scopeSelectors(e,t,s){return ar(e,r=>{let i=r.selector,o=r.content;return"@"!==r.selector[0]?i=this._scopeSelector(r.selector,t,s):r.selector.startsWith("@media")||r.selector.startsWith("@supports")||r.selector.startsWith("@document")||r.selector.startsWith("@layer")||r.selector.startsWith("@container")?o=this._scopeSelectors(r.content,t,s):(r.selector.startsWith("@font-face")||r.selector.startsWith("@page"))&&(o=this._stripScopingSelectors(r.content)),new yi(i,o)})}_stripScopingSelectors(e){return ar(e,t=>{const s=t.selector.replace(za," ").replace(Ga," ");return new yi(s,t.content)})}_scopeSelector(e,t,s){return e.split(",").map(r=>r.trim().split(za)).map(r=>{const[i,...o]=r;return[(l=>this._selectorNeedsScoping(l,t)?this._applySelectorScope(l,t,s):l)(i),...o].join(" ")}).join(", ")}_selectorNeedsScoping(e,t){return!this._makeScopeMatcher(t).test(e)}_makeScopeMatcher(e){return e=e.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+e+")"+hh,"m")}_applySimpleSelectorScope(e,t,s){if(os.lastIndex=0,os.test(e)){const r=`[${s}]`;return e.replace(Ga,(i,o)=>o.replace(/([^:]*)(:*)(.*)/,(a,l,c,p)=>l+r+c+p)).replace(os,r+" ")}return t+" "+e}_applySelectorScope(e,t,s){const i="["+(t=t.replace(/\[is=([^\]]*)\]/g,(x,...w)=>w[0]))+"]",o=x=>{let w=x.trim();if(!w)return"";if(x.indexOf(Lt)>-1)w=this._applySimpleSelectorScope(x,t,s);else{const y=x.replace(os,"");if(y.length>0){const C=y.match(/([^:]*)(:*)(.*)/);C&&(w=C[1]+i+C[2]+C[3])}}return w},a=new ih(e);let p,l="",c=0;const h=/( |>|\+|~(?!=))\s*/g;let g=!((e=a.content()).indexOf(Lt)>-1);for(;null!==(p=h.exec(e));){var v;const x=p[1],w=e.slice(c,p.index).trim();if(w.match(Ka)&&null!==(v=e[p.index+1])&&void 0!==v&&v.match(/[a-fA-F\d]/))continue;g=g||w.indexOf(Lt)>-1;l+=`${g?o(w):w} ${x} `,c=h.lastIndex}const _=e.substring(c);
1return g=g||_.indexOf(Lt)>-1,l+=g?o(_):_,a.restore(l)}_insertPolyfillHostInCssText(e){return e.replace(fh,vi).replace(dh,or)}}class ih{constructor(e){this.placeholders=[],this.index=0,e=this._escapeRegexMatches(e,/(\[[^\]]*\])/g),e=this._escapeRegexMatches(e,/(\\.)/g),this._content=e.replace(/(:nth-[-\w]+)(\([^)]+\))/g,(t,s,r)=>{const i=`__ph-${this.index}__`;return this.placeholders.push(r),this.index++,s+i})}restore(e){return e.replace(Ka,(t,s)=>this.placeholders[+s])}content(){return this._content}_escapeRegexMatches(e,t){return e.replace(t,(s,r)=>{const i=`__ph-${this.index}__`;return this.placeholders.push(r),this.index++,i})}}const oh=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,ah=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Wa=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,or="-shadowcsshost",vi="-shadowcsscontext",Ei="(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",uh=new RegExp(or+Ei,"gim"),lh=new RegExp(vi+Ei,"gim"),ch=new RegExp(vi+Ei,"im"),Lt=or+"-no-combinator",Ga=/-shadowcsshost-no-combinator([^\s]*)/,ph=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],za=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,hh="([>\\s~+[.,{:][\\s\\S]*)?$",os=/-shadowcsshost/gim,dh=/:host/gim,fh=/:host-context/gim,mh=/\/\*[\s\S]*?\*\//g,Ka=/__ph-(\d+)__/g;const vh=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;const _i="%BLOCK%",_h=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,yh=new Map([["{","}"]]),Xa="%COMMA_IN_PLACEHOLDER%",Ya="%SEMI_IN_PLACEHOLDER%",Qa="%COLON_IN_PLACEHOLDER%",xh=new RegExp(Xa,"g"),Sh=new RegExp(Ya,"g"),wh=new RegExp(Qa,"g");class yi{constructor(e,t){this.selector=e,this.content=t}}function ar(n,e){const t=function Ih(n){let e=n,t=null;for(let s=0;s<e.length;s++){const r=e[s];if("\\"===r)s++;else if(null!==t)if(r===t)t=null;else{const i=Th[r];i&&(e=`${e.substr(0,s)}${i}${e.substr(s+1)}`,s+=i.length-1)}else("'"===r||'"'===r)&&(t=r)}return e}(n),s=function Ah(n,e,t){const s=[],r=[];let l,c,i=0,o=0,a=-1;for(let p=0;p<n.length;p++){const h=n[p];"\\"===h?p++:h===c?(i--,0===i&&(r.push(n.substring(a,p)),s.push(t),o=p,a=-1,l=c=void 0)):h===l?i++:0===i&&e.has(h)&&(l=h,c=e.get(h),i=1,a=p+1,s.push(n.substring(o,a)))}return-1!==a?(r.push(n.substring(a)),s.push(t)):s.push(n.substring(o)),new Ch(s.join(""),r)}(t,yh,_i);let r=0;return function bh(n){let e=n.replace(xh,",");return e=e.replace(Sh,";"),e=e.replace(wh,":"),e}(s.escapedString.replace(_h,(...o)=>{const a=o[2];let l="",c=o[4],p="";c&&c.startsWith("{"+_i)&&(l=s.blocks[r++],c=c.substring(_i.length+1),p="{");const h=e(new yi(a,l));return`${o[1]}${h.selector}${o[3]}${p}${h.content}${c}`}))}class Ch{constructor(e,t){this.escapedString=e,this.blocks=t}}const Th={";":Ya,",":Xa,":":Qa};function Ja(n,e){return e?n.replace(/((?:^|[^\\])(?:\\\\)*)\\(?=['"])/g,"$1"):n}function Nh(n,e){const t=n.length;for(let s=1;s<e;s++)for(let r=0;r<t;r++)n[r+s*t]=n[r].slice(0)}function Za(n){return n.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}const Lh="!important",ur=2;class eu{constructor(e){this._directiveExpr=e,this._hasInitialValues=!1,this.hasBindings=!1,this.hasBindingsWithPipes=!1,this._classMapInput=null,this._styleMapInput=null,this._singleStyleInputs=null,this._singleClassInputs=null,this._lastStylingInput=null,this._firstStylingInput=null,this._stylesIndex=new Map,this._classesIndex=new Map,this._initialStyleValues=[],this._initialClassValues=[]}registerBoundInput(e){let t=null,s=e.name;switch(e.type){case 0:t=this.registerInputBasedOnName(s,e.value,e.sourceSpan);break;case 3:t=this.registerStyleInput(s,!1,e.value,e.sourceSpan,e.unit);break;case 2:t=this.registerClassInput(s,!1,e.value,e.sourceSpan)}return!!t}registerInputBasedOnName(e,t,s){let r=null;const i=e.substring(0,6),o="style"===e||"style."===i||"style!"===i;if(o||!o&&("class"===e||"class."===i||"class!"===i)){const l="."!==e.charAt(5),c=e.slice(l?5:6);r=o?this.registerStyleInput(c,l,t,s):this.registerClassInput(c,l,t,s)}return r}registerStyleInput(e,t,s,r,i){if(nu(s))return null;(function Bh(n){return n.startsWith("--")})(e)||(e=Za(e));const{property:o,hasOverrideFlag:a,suffix:l}
1=su(e),c={name:o,suffix:i="string"==typeof i&&0!==i.length?i:l,value:s,sourceSpan:r,hasOverrideFlag:a};return t?this._styleMapInput=c:((this._singleStyleInputs=this._singleStyleInputs||[]).push(c),tu(this._stylesIndex,o)),this._lastStylingInput=c,this._firstStylingInput=this._firstStylingInput||c,this._checkForPipes(s),this.hasBindings=!0,c}registerClassInput(e,t,s,r){if(nu(s))return null;const{property:i,hasOverrideFlag:o}=su(e),a={name:i,value:s,sourceSpan:r,hasOverrideFlag:o,suffix:null};return t?this._classMapInput=a:((this._singleClassInputs=this._singleClassInputs||[]).push(a),tu(this._classesIndex,i)),this._lastStylingInput=a,this._firstStylingInput=this._firstStylingInput||a,this._checkForPipes(s),this.hasBindings=!0,a}_checkForPipes(e){e instanceof Je&&e.ast instanceof tn&&(this.hasBindingsWithPipes=!0)}registerStyleAttr(e){this._initialStyleValues=function Ph(n){const e=[];let t=0,s=0,r=0,i=0,o=0,a=null;for(;t<n.length;)switch(n.charCodeAt(t++)){case 40:s++;break;case 41:s--;break;case 39:0===r?r=39:39===r&&92!==n.charCodeAt(t-1)&&(r=0);break;case 34:0===r?r=34:34===r&&92!==n.charCodeAt(t-1)&&(r=0);break;case 58:!a&&0===s&&0===r&&(a=Za(n.substring(o,t-1).trim()),i=t);break;case 59:if(a&&i>0&&0===s&&0===r){const c=n.substring(i,t-1).trim();e.push(a,c),o=t,i=0,a=null}}if(a&&i){const l=n.slice(i).trim();e.push(a,l)}return e}(e),this._hasInitialValues=!0}registerClassAttr(e){this._initialClassValues=e.trim().split(/\s+/g),this._hasInitialValues=!0}populateInitialStylingAttrs(e){if(this._initialClassValues.length){e.push(f(1));for(let t=0;t<this._initialClassValues.length;t++)e.push(f(this._initialClassValues[t]))}if(this._initialStyleValues.length){e.push(f(2));for(let t=0;t<this._initialStyleValues.length;t+=2)e.push(f(this._initialStyleValues[t]),f(this._initialStyleValues[t+1]))}}assignHostAttrs(e,t){this._directiveExpr&&(e.length||this._hasInitialValues)&&(this.populateInitialStylingAttrs(e),t.set("hostAttrs",b(e)))}buildClassMapInstruction(e){return this._classMapInput?this._buildMapBasedInstruction(e,!0,this._classMapInput):null}buildStyleMapInstruction(e){return this._styleMapInput?this._buildMapBasedInstruction(e,!1,this._styleMapInput):null}_buildMapBasedInstruction(e,t,s){let r=ur;const i=s.value.visit(e);let o;return i instanceof J?(r+=i.expressions.length,o=t?function Mh(n){switch(Tt(n)){case 1:return u.classMap;case 3:return u.classMapInterpolate1;case 5:return u.classMapInterpolate2;case 7:return u.classMapInterpolate3;case 9:return u.classMapInterpolate4;case 11:return u.classMapInterpolate5;case 13:return u.classMapInterpolate6;case 15:return u.classMapInterpolate7;case 17:return u.classMapInterpolate8;default:return u.classMapInterpolateV}}(i):function Rh(n){switch(Tt(n)){case 1:return u.styleMap;case 3:return u.styleMapInterpolate1;case 5:return u.styleMapInterpolate2;case 7:return u.styleMapInterpolate3;case 9:return u.styleMapInterpolate4;case 11:return u.styleMapInterpolate5;case 13:return u.styleMapInterpolate6;case 15:return u.styleMapInterpolate7;case 17:return u.styleMapInterpolate8;default:return u.styleMapInterpolateV}}(i)):o=t?u.classMap:u.styleMap,{reference:o,calls:[{supportsInterpolation:!0,sourceSpan:s.sourceSpan,allocateBindingSlots:r,params:a=>{const l=a(i);return Array.isArray(l)?l:[l]}}]}}_buildSingleInputs(e,t,s,r,i){const o=[];return t.forEach(a=>{const l=o[o.length-1],c=a.value.visit(s);let p=e,h=ur;c instanceof J&&(h+=c.expressions.length,r&&(p=r(c)));const m={sourceSpan:a.sourceSpan,allocateBindingSlots:h,supportsInterpolation:!!r,params:g=>{const v=[];v.push(f(a.name));const _=g(c);return Array.isArray(_)?v.push(..._):v.push(_),!i&&null!==a.suffix&&v.push(f(a.suffix)),v}};l&&l.reference===p?l.calls.push(m):o.push({reference:p,calls:[m]})}),o}_buildClassInputs(e){return this._singleClassInputs?this._buildSingleInputs(u.classProp,this._singleClassInputs,e,null,!0):[]}_buildStyleInputs(e){return this._singleStyleInputs?this._buildSingleInputs(u.styleProp,this._singleStyleInputs,e,kh,!1):[]}buildUpdateLevelInstructions(e){const t=[];if(this.hasBindings){const s=this.buildStyleMapInstruction(e);
1s&&t.push(s);const r=this.buildClassMapInstruction(e);r&&t.push(r),t.push(...this._buildStyleInputs(e)),t.push(...this._buildClassInputs(e))}return t}}function tu(n,e){n.has(e)||n.set(e,n.size)}function su(n){let e=!1;const t=n.indexOf(Lh);-1!==t&&(n=t>0?n.substring(0,t):"",e=!0);let s=null,r=n;const i=n.lastIndexOf(".");return i>0&&(s=n.slice(i+1),r=n.substring(0,i)),{property:r,suffix:s,hasOverrideFlag:e}}function kh(n){switch(Tt(n)){case 1:return u.styleProp;case 3:return u.stylePropInterpolate1;case 5:return u.stylePropInterpolate2;case 7:return u.stylePropInterpolate3;case 9:return u.stylePropInterpolate4;case 11:return u.stylePropInterpolate5;case 13:return u.stylePropInterpolate6;case 15:return u.stylePropInterpolate7;case 17:return u.stylePropInterpolate8;default:return u.stylePropInterpolateV}}function nu(n){return n instanceof Je&&(n=n.ast),n instanceof de}var D;!function(n){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"}(D||(D={}));const Fh=["var","let","as","null","undefined","true","false","if","else","this"];class xi{tokenize(e){const t=new iu(e),s=[];let r=t.scanToken();for(;null!=r;)s.push(r),r=t.scanToken();return s}}class Oe{constructor(e,t,s,r,i){this.index=e,this.end=t,this.type=s,this.numValue=r,this.strValue=i}isCharacter(e){return this.type==D.Character&&this.numValue==e}isNumber(){return this.type==D.Number}isString(){return this.type==D.String}isOperator(e){return this.type==D.Operator&&this.strValue==e}isIdentifier(){return this.type==D.Identifier}isPrivateIdentifier(){return this.type==D.PrivateIdentifier}isKeyword(){return this.type==D.Keyword}isKeywordLet(){return this.type==D.Keyword&&"let"==this.strValue}isKeywordAs(){return this.type==D.Keyword&&"as"==this.strValue}isKeywordNull(){return this.type==D.Keyword&&"null"==this.strValue}isKeywordUndefined(){return this.type==D.Keyword&&"undefined"==this.strValue}isKeywordTrue(){return this.type==D.Keyword&&"true"==this.strValue}isKeywordFalse(){return this.type==D.Keyword&&"false"==this.strValue}isKeywordThis(){return this.type==D.Keyword&&"this"==this.strValue}isError(){return this.type==D.Error}toNumber(){return this.type==D.Number?this.numValue:-1}toString(){switch(this.type){case D.Character:case D.Identifier:case D.Keyword:case D.Operator:case D.PrivateIdentifier:case D.String:case D.Error:return this.strValue;case D.Number:return this.numValue.toString();default:return null}}}function ru(n,e,t){return new Oe(n,e,D.Character,t,String.fromCharCode(t))}function Si(n,e,t){return new Oe(n,e,D.Operator,0,t)}const lr=new Oe(-1,-1,D.Character,0,"");class iu{constructor(e){this.input=e,this.peek=0,this.index=-1,this.length=e.length,this.advance()}advance(){this.peek=++this.index>=this.length?ie:this.input.charCodeAt(this.index)}scanToken(){const e=this.input,t=this.length;let s=this.peek,r=this.index;for(;s<=ua;){if(++r>=t){s=ie;break}s=e.charCodeAt(r)}if(this.peek=s,this.index=r,r>=t)return null;if(wi(s))return this.scanIdentifier();if(lt(s))return this.scanNumber(r);const i=r;switch(s){case 46:return this.advance(),lt(this.peek)?this.scanNumber(i):ru(i,this.index,46);case 40:case 41:case ut:case be:case 91:case 93:case 44:case 58:case Xe:return this.scanCharacter(i,s);case zs:case Gs:return this.scanString();case 35:return this.scanPrivateIdentifier();case pa:case Un:case 42:case Ke:case 37:case 94:return this.scanOperator(i,String.fromCharCode(s));case 63:return this.scanQuestion(i);case Zt:case at:return this.scanComplexOperator(i,String.fromCharCode(s),es,"=");case 33:case es:return this.scanComplexOperator(i,String.fromCharCode(s),es,"=",es,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case xa:for(;ri(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(s)}]`,0)}scanCharacter(e,t){return this.advance(),ru(e,this.index,t)}scanOperator(e,t){return this.advance(),Si(e,this.index,t)}scanComplexOperator(e,t,s,r,i,o){this.advance();let a=t;return this.peek==s&&(this.advance(),a+=r),null!=i&&this.peek==i&&(this.advance(),a+=o),Si(e,this.index,a)}scanIdentifier(){const e=this.index;for(this.advance();Ci(this.peek);)this.advance();const t=this.input.substring(e,this.index);return Fh.indexOf(t)>-1?function Vh(n,e,t){return new Oe(n,e,D.Keyword,0,t)}(e,this.index,t):function $h(n,e,t){return new Oe(n,e,D.Identifier,0,t)}(e,this.index,t)}scanPrivateIdentifier(){const e=this.index;if(this.advance(),!wi(this.peek))return this.error("Invalid character [#]",-1);for(;Ci(this.peek);)this.advance();const t=this.input.substring(e,this.index);return function Oh(n,e,t){return new Oe(n,e,D.PrivateIdentifier,0,t)}(e,this.index,t)}scanNumber(e){let t=this.index===e,s=!1;for(this.advance();;){if(!lt(this.peek))if(this.peek===si){if(!lt(this.input.charCodeAt(this.index-1))||!lt(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);s=!0}else if(46===this.peek)t=!1;else{if(!Wh(this.peek))break;if(this.advance(),Gh(this.peek)&&this.advance(),!lt(this.peek))return this.error("Invalid exponent",-1);t=!1}this.advance()}let r=this.input.substring(e,this.index);s&&(r=r.replace(/_/g,""));const i=t?function Kh(n){const e=parseInt(n);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+n);return e}(r):parseFloat(r);return function Uh(n,e,t){return new Oe(n,e,D.Number,t,"")}(e,this.index,i)}scanString(){const e=this.index,t=this.peek;this.advance();let s="",r=this.index;const i=this.input;for(;this.peek!=t;)if(92==this.peek){let a;if(s+=i.substring(r,this.index),this.advance(),117==this.peek){const l=i.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(l))return this.error(`Invalid unicode escape [\\u${l}]`,0);a=parseInt(l,16);for(let c=0;c<5;c++)this.advance()}else a=zh(this.peek),this.advance();s+=String.fromCharCode(a),r=this.index}else{if(this.peek==ie)return this.error("Unterminated quote",0);this.advance()}const o=i.substring(r,this.index);return this.advance(),function qh(n,e,t){return new Oe(n,e,D.String,0,t)}(e,this.index,s+o)}scanQuestion(e){this.advance();let t="?";return(63===this.peek||46===this.peek)&&(t+=46===this.peek?".":"?",this.advance()),Si(e,this.index,t)}error(e,t){const s=this.index+t;return function Hh(n,e,t){return new Oe(n,e,D.Error,0,t)}(s,this.index,`Lexer Error: ${e} at column ${s} in expression [${this.input}]`)}}function wi(n){return bt<=n&&n<=Qs||ts<=n&&n<=Hn||n==si||n==ca}function jh(n){if(0==n.length)return!1;const e=new iu(n);if(!wi(e.peek))return!1;for(e.advance();e.peek!==ie;){if(!Ci(e.peek))return!1;e.advance()}return!0}function Ci(n){return ii(n)||lt(n)||n==si||n==ca}function Wh(n){return n==Rp||n==Dp}function Gh(n){return n==Un||n==pa}function zh(n){switch(n){case fa:return It;case ni:return aa;case ma:return Jr;case ga:return Qr;case Ea:return oa;default:return n}}class ou{constructor(e,t,s){this.strings=e,this.expressions=t,this.offsets=s}}class au{constructor(e,t,s){this.templateBindings=e,this.warnings=t,this.errors=s}}class Ai{constructor(e){this._lexer=e,this.errors=[]}parseAction(e,t,s,r,i=he){this._checkNoInterpolation(e,s,i);const o=this._stripComments(e),a=this._lexer.tokenize(o);let l=1;t&&(l|=2);const c=new us(e,s,r,a,l,this.errors,0).parseChain();return new Je(c,e,s,r,this.errors)}parseBinding(e,t,s,r=he){const i=this._parseBindingAst(e,t,s,r);return new Je(i,e,t,s,this.errors)}checkSimpleExpression(e){const t=new Xh;return e.visit(t),t.errors}parseSimpleBinding(e,t,s,r=he){const i=this._parseBindingAst(e,t,s,r),o=this.checkSimpleExpression(i);return o.length>0&&this._reportError(`Host binding expression cannot contain ${o.join(" ")}`,e,t),new Je(i,e,t,s,this.errors)}_reportError(e,t,s,r){this.errors.push(new Gn(e,t,s,r))}_parseBindingAst(e,t,s,r){this._checkNoInterpolation(e,t,r);const i=this._stripComments(e),o=this._lexer.tokenize(i);return new us(e,t,s,o,0,this.errors,0).parseChain()}parseTemplateBindings(e,t,s,r,i){const o=this._lexer.tokenize(t);return new us(t,s,i,o,0,this.errors,0).parseTemplateBindings({source:e,span:new xe(r,r+e.length)})}parseInterpolation(e,t,s,r,i=he){const{strings:o,expressions:a,offsets:l}=this.splitInterpolation(e,t,r,i);if(0===a.length)return null;const c=[];for(let p=0;p<a.length;++p){const h=a[p].text,m=this._stripComments(h),g=this._lexer.tokenize(m),v=new us(e,t,s,g,0,this.errors,l[p]).parseChain();c.push(v)}return this.createInterpolationAst(o.map(p=>p.text),c,e,t,s)}parseInterpolationExpression(e,t,s){const r=this._stripComments(e),i=this._lexer.tokenize(r),o=new us(e,t,s,i,0,this.errors,0).parseChain();return this.createInterpolationAst(["",""],[o],e,t,s)}createInterpolationAst(e,t,s,r,i){const o=new rs(0,s.length),a=new J(o,o.toAbsolute(i),e,t);return new Je(a,s,r,i,this.errors)}splitInterpolation(e,t,s,r=he){const i=[],o=[],a=[],l=s?function Yh(n){let e=new Map,t=0,s=0,r=0;for(;r<n.length;){const i=n[r];if(9===i.type){const[o,a]=i.parts;t+=a.length,s+=o.length}else{const o=i.parts.reduce((a,l)=>a+l.length,0);s+=o,t+=o}e.set(s,t),r++}return e}(s):null;
1let c=0,p=!1,h=!1,{start:m,end:g}=r;for(;c<e.length;)if(p){var v;const _=c,x=_+m.length,w=this._getInterpolationEndIndex(e,g,x);if(-1===w){p=!1,h=!0;break}const y=w+g.length,C=e.substring(x,w);0===C.trim().length&&this._reportError("Blank expressions are not allowed in interpolated strings",e,`at column ${c} in`,t),o.push({text:C,start:_,end:y});const Q=(null!==(v=null==l?void 0:l.get(_))&&void 0!==v?v:_)+m.length;a.push(Q),c=y,p=!1}else{const _=c;c=e.indexOf(m,c),-1===c&&(c=e.length);const x=e.substring(_,c);i.push({text:x,start:_,end:c}),p=!0}if(!p)if(h){const _=i[i.length-1];_.text+=e.substring(c),_.end=e.length}else i.push({text:e.substring(c),start:c,end:e.length});return new ou(i,o,a)}wrapLiteralPrimitive(e,t,s){const r=new rs(0,null==e?0:e.length);return new Je(new oe(r,r.toAbsolute(s),e),e,t,s,this.errors)}_stripComments(e){const t=this._commentStart(e);return null!=t?e.substring(0,t):e}_commentStart(e){let t=null;for(let s=0;s<e.length-1;s++){const r=e.charCodeAt(s),i=e.charCodeAt(s+1);if(r===Ke&&i==Ke&&null==t)return s;t===r?t=null:null==t&&oi(r)&&(t=r)}return null}_checkNoInterpolation(e,t,{start:s,end:r}){let i=-1,o=-1;for(const a of this._forEachUnquotedChar(e,0))if(-1===i)e.startsWith(s)&&(i=a);else if(o=this._getInterpolationEndIndex(e,r,a),o>-1)break;i>-1&&o>-1&&this._reportError(`Got interpolation (${s}${r}) where expression was expected`,e,`at column ${i} in`,t)}_getInterpolationEndIndex(e,t,s){for(const r of this._forEachUnquotedChar(e,s)){if(e.startsWith(t,r))return r;if(e.startsWith("//",r))return e.indexOf(t,r)}return-1}*_forEachUnquotedChar(e,t){let s=null,r=0;for(let i=t;i<e.length;i++){const o=e[i];!oi(e.charCodeAt(i))||null!==s&&s!==o||r%2!=0?null===s&&(yield i):s=null===s?o:null,r="\\"===o?r+1:0}}}var as,Se;!function(n){n[n.None=0]="None",n[n.Writable=1]="Writable"}(as||(as={}));class us{constructor(e,t,s,r,i,o,a){this.input=e,this.location=t,this.absoluteOffset=s,this.tokens=r,this.parseFlags=i,this.errors=o,this.offset=a,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.context=as.None,this.sourceSpanCache=new Map,this.index=0}peek(e){const t=this.index+e;return t<this.tokens.length?this.tokens[t]:lr}get next(){return this.peek(0)}get atEOF(){return this.index>=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){return this.index>0?this.peek(-1).end+this.offset:0===this.tokens.length?this.input.length+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(e,t){let s=this.currentEndIndex;if(void 0!==t&&t>this.currentEndIndex&&(s=t),e>s){const r=s;s=e,e=r}return new rs(e,s)}sourceSpan(e,t){const s=`${e}@${this.inputIndex}:${t}`;return this.sourceSpanCache.has(s)||this.sourceSpanCache.set(s,this.span(e,t).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(s)}advance(){this.index++}withContext(e,t){this.context|=e;const s=t();return this.context^=e,s}consumeOptionalCharacter(e){return!!this.next.isCharacter(e)&&(this.advance(),!0)}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(e){this.consumeOptionalCharacter(e)||this.error(`Missing expected ${String.fromCharCode(e)}`)}consumeOptionalOperator(e){return!!this.next.isOperator(e)&&(this.advance(),!0)}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===lr?"end of input":`token ${e}`}expectIdentifierOrKeyword(){const e=this.next;return e.isIdentifier()||e.isKeyword()?(this.advance(),e.toString()):(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier or keyword"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier or keyword`),null)}expectIdentifierOrKeywordOrString(){const e=this.next;return e.isIdentifier()||e.isKeyword()||e.isString()?(this.advance(),e.toString()):(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier, keyword or string"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier, keyword, or string`),"")}parseChain(){const e=[],t=this.inputIndex;for(;this.index<this.tokens.length;){const s=this.parsePipe();if(e.push(s),this.consumeOptionalCharacter(Xe))for(1&this.parseFlags||this.error("Binding expression cannot contain chained expression");this.consumeOptionalCharacter(Xe););else if(this.index<this.tokens.length){const r=this.index;if(this.error(`Unexpected token '${this.next}'`),this.index===r)break}}if(0===e.length){const s=this.offset,r=this.offset+this.input.length;return new de(this.span(s,r),this.sourceSpan(s,r))}return 1==e.length?e[0]:new Kn(this.span(t),this.sourceSpan(t),e)}parsePipe(){const e=this.inputIndex;let t=this.parseExpression();if(this.consumeOptionalOperator("|")){1&this.parseFlags&&this.error("Cannot have a pipe in an action expression");do{const s=this.inputIndex;let i,o,r=this.expectIdentifierOrKeyword();null!==r?i=this.sourceSpan(s):(r="",o=-1!==this.next.index?this.next.index:this.input.length+this.offset,i=new rs(o,o).toAbsolute(this.absoluteOffset));const a=[];for(;this.consumeOptionalCharacter(58);)a.push(this.parseExpression());t=new tn(this.span(e),this.sourceSpan(e,o),t,r,a,i)}while(this.consumeOptionalOperator("|"))}return t}parseExpression(){return this.parseConditional()}parseConditional(){const e=this.inputIndex,t=this.parseLogicalOr();if(this.consumeOptionalOperator("?")){const s=this.parsePipe();let r;if(this.consumeOptionalCharacter(58))r=this.parsePipe();else{const i=this.inputIndex,o=this.input.substring(e,i);this.error(`Conditional expression ${o} requires all 3 expressions`),r=new de(this.span(e),this.sourceSpan(e))}return new Xn(this.span(e),this.sourceSpan(e),t,s,r)}return t}parseLogicalOr(){const e=this.inputIndex;let t=this.parseLogicalAnd();for(;this.consumeOptionalOperator("||");){const s=this.parseLogicalAnd();t=new De(this.span(e),this.sourceSpan(e),"||",t,s)}return t}parseLogicalAnd(){const e=this.inputIndex;let t=this.parseNullishCoalescing();for(;this.consumeOptionalOperator("&&");){const s=this.parseNullishCoalescing();t=new De(this.span(e),this.sourceSpan(e),"&&",t,s)}return t}parseNullishCoalescing(){const e=this.inputIndex;let t=this.parseEquality();for(;this.consumeOptionalOperator("??");){const s=this.parseEquality();t=new De(this.span(e),this.sourceSpan(e),"??",t,s)}return t}parseEquality(){const e=this.inputIndex;let t=this.parseRelational();for(;this.next.type==D.Operator;){const s=this.next.strValue;switch(s){case"==":case"===":case"!=":case"!==":this.advance();const r=this.parseRelational();t=new De(this.span(e),this.sourceSpan(e),s,t,r);continue}break}return t}parseRelational(){const e=this.inputIndex;let t=this.parseAdditive();for(;this.next.type==D.Operator;){const s=this.next.strValue;switch(s){case"<":case">":case"<=":case">=":this.advance();const r=this.parseAdditive();t=new De(this.span(e),this.sourceSpan(e),s,t,r);continue}break}return t}parseAdditive(){const e=this.inputIndex;let t=this.parseMultiplicative();for(;this.next.type==D.Operator;){const s=this.next.strValue;switch(s){case"+":case"-":this.advance();let r=this.parseMultiplicative();t=new De(this.span(e),this.sourceSpan(e),s,t,r);continue}break}return t}parseMultiplicative(){const e=this.inputIndex;let t=this.parsePrefix();for(;this.next.type==D.Operator;){const s=this.next.strValue;switch(s){case"*":case"%":case"/":this.advance();let r=this.parsePrefix();t=new De(this.span(e),this.sourceSpan(e),s,t,r);continue}break}return t}parsePrefix(){if(this.next.type==D.Operator){const e=this.inputIndex;let s;switch(this.next.strValue){case"+":return this.advance(),s=this.parsePrefix(),$e.createPlus(this.span(e),this.sourceSpan(e),s);case"-":return this.advance(),s=this.parsePrefix(),$e.createMinus(this.span(e),this.sourceSpan(e),s);case"!":return this.advance(),s=this.parsePrefix(),new er(this.span(e),this.sourceSpan(e),s)}}return this.parseCallChain()}parseCallChain(){const e=this.inputIndex;let t=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(46))t=this.parseAccessMember(t,e,!1);else if(this.consumeOptionalOperator("?."))t=this.consumeOptionalCharacter(40)?this.parseCall(t,e,!0):this.consumeOptionalCharacter(91)?this.parseKeyedReadOrWrite(t,e,!0):this.parseAccessMember(t,e,!0);else if(this.consumeOptionalCharacter(91))t=this.parseKeyedReadOrWrite(t,e,!1);else if(this.consumeOptionalCharacter(40))t=this.parseCall(t,e,!1);else{if(!this.consumeOptionalOperator("!"))return t;t=new tr(this.span(e),this.sourceSpan(e),t)}}parsePrimary(){const e=this.inputIndex;if(this.consumeOptionalCharacter(40)){this.rparensExpected++;const t=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),t}if(this.next.isKeywordNull())return this.advance(),new oe(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new oe(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new oe(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new oe(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new zn(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(91)){this.rbracketsExpected++;const t=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new sn(this.span(e),this.sourceSpan(e),t)}if(this.next.isCharacter(ut))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new Nt(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){const t=this.next.toNumber();return this.advance(),new oe(this.span(e),this.sourceSpan(e),t)}if(this.next.isString()){const t=this.next.toString();return this.advance(),new oe(this.span(e),this.sourceSpan(e),t)}return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new de(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new de(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new de(this.span(e),this.sourceSpan(e)))}parseExpressionList(e){const t=[];do{if(this.next.isCharacter(e))break;t.push(this.parsePipe())}while(this.consumeOptionalCharacter(44));return t}parseLiteralMap(){const e=[],t=[],s=this.inputIndex;if(this.expectCharacter(ut),!this.consumeOptionalCharacter(be)){this.rbracesExpected++;do{const r=this.inputIndex,i=this.next.isString(),o=this.expectIdentifierOrKeywordOrString();if(e.push({key:o,quoted:i}
1),i)this.expectCharacter(58),t.push(this.parsePipe());else if(this.consumeOptionalCharacter(58))t.push(this.parsePipe());else{const a=this.span(r),l=this.sourceSpan(r);t.push(new Qe(a,l,l,new Nt(a,l),o))}}while(this.consumeOptionalCharacter(44)&&!this.next.isCharacter(be));this.rbracesExpected--,this.expectCharacter(be)}return new Zn(this.span(s),this.sourceSpan(s),e,t)}parseAccessMember(e,t,s){const r=this.inputIndex,i=this.withContext(as.Writable,()=>{var l;const c=null!==(l=this.expectIdentifierOrKeyword())&&void 0!==l?l:"";return 0===c.length&&this.error("Expected identifier for property access",e.span.end),c}),o=this.sourceSpan(r);let a;if(s)this.consumeOptionalAssignment()?(this.error("The '?.' operator cannot be used in the assignment"),a=new de(this.span(t),this.sourceSpan(t))):a=new Qn(this.span(t),this.sourceSpan(t),o,e,i);else if(this.consumeOptionalAssignment()){if(!(1&this.parseFlags))return this.error("Bindings cannot contain assignments"),new de(this.span(t),this.sourceSpan(t));const l=this.parseConditional();a=new Yn(this.span(t),this.sourceSpan(t),o,e,i,l)}else a=new Qe(this.span(t),this.sourceSpan(t),o,e,i);return a}parseCall(e,t,s){const r=this.inputIndex;this.rparensExpected++;const i=this.parseCallArguments(),o=this.span(r,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(41),this.rparensExpected--;const a=this.span(t),l=this.sourceSpan(t);return s?new nn(a,l,e,i,o):new Pt(a,l,e,i,o)}consumeOptionalAssignment(){return 2&this.parseFlags&&this.next.isOperator("!")&&this.peek(1).isOperator("=")?(this.advance(),this.advance(),!0):this.consumeOptionalOperator("=")}parseCallArguments(){if(this.next.isCharacter(41))return[];const e=[];do{e.push(this.parsePipe())}while(this.consumeOptionalCharacter(44));return e}expectTemplateBindingKey(){let e="",t=!1;const s=this.currentAbsoluteOffset;do{e+=this.expectIdentifierOrKeywordOrString(),t=this.consumeOptionalOperator("-"),t&&(e+="-")}while(t);return{source:e,span:new xe(s,s+e.length)}}parseTemplateBindings(e){const t=[];for(t.push(...this.parseDirectiveKeywordBindings(e));this.index<this.tokens.length;){const s=this.parseLetBinding();if(s)t.push(s);else{const r=this.expectTemplateBindingKey(),i=this.parseAsBinding(r);i?t.push(i):(r.source=e.source+r.source.charAt(0).toUpperCase()+r.source.substring(1),t.push(...this.parseDirectiveKeywordBindings(r)))}this.consumeStatementTerminator()}return new au(t,[],this.errors)}parseKeyedReadOrWrite(e,t,s){return this.withContext(as.Writable,()=>{this.rbracketsExpected++;const r=this.parsePipe();if(r instanceof de&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(93),!this.consumeOptionalOperator("="))return s?new en(this.span(t),this.sourceSpan(t),e,r):new Zs(this.span(t),this.sourceSpan(t),e,r);if(!s){const i=this.parseConditional();return new Jn(this.span(t),this.sourceSpan(t),e,r,i)}return this.error("The '?.' operator cannot be used in the assignment"),new de(this.span(t),this.sourceSpan(t))})}parseDirectiveKeywordBindings(e){const t=[];this.consumeOptionalCharacter(58);const s=this.getDirectiveBoundTarget();let r=this.currentAbsoluteOffset;const i=this.parseAsBinding(e);i||(this.consumeStatementTerminator(),r=this.currentAbsoluteOffset);const o=new xe(e.span.start,r);return t.push(new Ma(o,e,s)),i&&t.push(i),t}getDirectiveBoundTarget(){if(this.next===lr||this.peekKeywordAs()||this.peekKeywordLet())return null;const e=this.parsePipe(),{start:t,end:s}=e.span,r=this.input.substring(t,s);return new Je(e,r,this.location,this.absoluteOffset+t,this.errors)}parseAsBinding(e){if(!this.peekKeywordAs())return null;this.advance();const t=this.expectTemplateBindingKey();this.consumeStatementTerminator();const s=new xe(e.span.start,this.currentAbsoluteOffset);return new sr(s,t,e)}parseLetBinding(){if(!this.peekKeywordLet())return null;const e=this.currentAbsoluteOffset;this.advance();const t=this.expectTemplateBindingKey();let s=null;this.consumeOptionalOperator("=")&&(s=this.expectTemplateBindingKey()),this.consumeStatementTerminator();const r=new xe(e,this.currentAbsoluteOffset);return new sr(r,t,s)}consumeStatementTerminator(){this.consumeOptionalCharacter(Xe)||this.consumeOptionalCharacter(44)}
1error(e,t=null){this.errors.push(new Gn(e,this.input,this.locationText(t),this.location)),this.skip()}locationText(e=null){return null==e&&(e=this.index),e<this.tokens.length?`at column ${this.tokens[e].index+1} in`:"at the end of the expression"}_reportErrorForPrivateIdentifier(e,t){let s=`Private identifiers are not supported. Unexpected private identifier: ${e}`;null!==t&&(s+=`, ${t}`),this.error(s)}skip(){let e=this.next;for(;!(!(this.index<this.tokens.length)||e.isCharacter(Xe)||e.isOperator("|")||!(this.rparensExpected<=0)&&e.isCharacter(41)||!(this.rbracesExpected<=0)&&e.isCharacter(be)||!(this.rbracketsExpected<=0)&&e.isCharacter(93)||this.context&as.Writable&&e.isOperator("="));)this.next.isError()&&this.errors.push(new Gn(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),e=this.next}}class Xh extends ci{constructor(){super(...arguments),this.errors=[]}visitPipe(){this.errors.push("pipes")}}class ls{constructor(e,t){this.sourceSpan=e,this.i18n=t}}class cs extends ls{constructor(e,t,s,r){super(t,r),this.value=e,this.tokens=s}visit(e,t){return e.visitText(this,t)}}class ps extends ls{constructor(e,t,s,r,i,o){super(r,o),this.switchValue=e,this.type=t,this.cases=s,this.switchValueSourceSpan=i}visit(e,t){return e.visitExpansion(this,t)}}class Ti{constructor(e,t,s,r,i){this.value=e,this.expression=t,this.sourceSpan=s,this.valueSourceSpan=r,this.expSourceSpan=i}visit(e,t){return e.visitExpansionCase(this,t)}}class rn extends ls{constructor(e,t,s,r,i,o,a){super(s,a),this.name=e,this.value=t,this.keySpan=r,this.valueSpan=i,this.valueTokens=o}visit(e,t){return e.visitAttribute(this,t)}}class hs extends ls{constructor(e,t,s,r,i,o=null,a){super(r,a),this.name=e,this.attrs=t,this.children=s,this.startSourceSpan=i,this.endSourceSpan=o}visit(e,t){return e.visitElement(this,t)}}class ds{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e,t){return e.visitComment(this,t)}}function P(n,e,t=null){const s=[],r=n.visit?i=>n.visit(i,t)||i.visit(n,t):i=>i.visit(n,t);return e.forEach(i=>{const o=r(i);o&&s.push(o)}),s}class Qh{constructor(){}visitElement(e,t){this.visitChildren(t,s=>{s(e.attrs),s(e.children)})}visitAttribute(e,t){}visitText(e,t){}visitComment(e,t){}visitExpansion(e,t){return this.visitChildren(t,s=>{s(e.cases)})}visitExpansionCase(e,t){}visitChildren(e,t){let s=[],r=this;return t(function i(o){o&&s.push(P(r,o,e))}),Array.prototype.concat.apply([],s)}}function we(n){if(":"!=n[0])return[null,n];const e=n.indexOf(":",1);if(-1===e)throw new Error(`Unsupported format "${n}" expecting ":namespace:name"`);return[n.slice(1,e),n.slice(e+1)]}function cr(n){return"ng-container"===we(n)[1]}function pr(n){return"ng-content"===we(n)[1]}function uu(n){return"ng-template"===we(n)[1]}function hr(n){return null===n?null:we(n)[0]}function dr(n,e){return n?`:${n}:${e}`:e}!function(n){n[n.RAW_TEXT=0]="RAW_TEXT",n[n.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",n[n.PARSABLE_DATA=2]="PARSABLE_DATA"}(Se||(Se={}));class lu{}
1const sd=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*p
1ointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|"],cu=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),nd=Array.from(cu).reduce((n,[e,t])=>(n.set(e,t),n),new Map);class fr extends lu{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,sd.forEac
1h(e=>{const t=new Map,s=new Set,[r,i]=e.split("|"),o=i.split(","),[a,l]=r.split("^");a.split(",").forEach(p=>{this._schema.set(p.toLowerCase(),t),this._eventSchema.set(p.toLowerCase(),s)});const c=l&&this._schema.get(l.toLowerCase());if(c){for(const[p,h]of c)t.set(p,h);for(const p of this._eventSchema.get(l.toLowerCase()))s.add(p)}o.forEach(p=>{if(p.length>0)switch(p[0]){case"*":s.add(p.substring(1));break;case"!":t.set(p.substring(1),"boolean");break;case"#":t.set(p.substring(1),"number");break;case"%":t.set(p.substring(1),"object");break;default:t.set(p,"string")}})})}hasProperty(e,t,s){if(s.some(i=>i.name===fn.name))return!0;if(e.indexOf("-")>-1){if(cr(e)||pr(e))return!1;if(s.some(i=>i.name===dn.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(t)}hasElement(e,t){return!!(t.some(s=>s.name===fn.name)||e.indexOf("-")>-1&&(cr(e)||pr(e)||t.some(s=>s.name===dn.name)))||this._schema.has(e.toLowerCase())}securityContext(e,t,s){s&&(t=this.getMappedPropName(t)),e=e.toLowerCase(),t=t.toLowerCase();let r=Ha()[e+"|"+t];return r||(r=Ha()["*|"+t],r||V.NONE)}getMappedPropName(e){var t;return null!==(t=cu.get(e))&&void 0!==t?t:e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...\nIf '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){const t=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(t.keys()).map(s=>{var r;return null!==(r=nd.get(s))&&void 0!==r?r:s})}allKnownEventsOfElement(e){var t;return Array.from(null!==(t=this._eventSchema.get(e.toLowerCase()))&&void 0!==t?t:[])}normalizeAnimationStyleProperty(e){return function wc(n){return n.replace(Sc,(...e)=>e[1].toUpperCase())}(e)}normalizeAnimationStyleValue(e,t,s){let r="";const i=s.toString().trim();let o=null;if(function rd(n){switch(n){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}(e)&&0!==s&&"0"!==s)if("number"==typeof s)r="px";else{const a=s.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&(o=`Please provide a CSS unit value for ${t}:${s}`)}return{error:o,value:i+r}}}class I{constructor({closedByChildren:e,implicitNamespacePrefix:t,contentType:s=Se.PARSABLE_DATA,closedByParent:r=!1,isVoid:i=!1,ignoreFirstLf:o=!1,preventNamespaceInheritance:a=!1,canSelfClose:l=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach(c=>this.closedByChildren[c]=!0),this.isVoid=i,this.closedByParent=r||i,this.implicitNamespacePrefix=t||null,this.contentType=s,this.ignoreFirstLf=o,this.preventNamespaceInheritance=a,this.canSelfClose=null!=l?l:i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){if("object"==typeof this.contentType){const t=void 0===e?void 0:this.contentType[e];return null!=t?t:this.contentType.default}return this.contentType}}let pu,fs;function Ii(n){var e,t;return fs||(pu=new I({canSelfClose:!0}),fs={base:new I({isVoid:!0}),meta:new I({isVoid:!0}),area:new I({isVoid:!0}),embed:new I({isVoid:!0}),link:new I({isVoid:!0}),img:new I({isVoid:!0}),input:new I({isVoid:!0}),param:new I({isVoid:!0}),hr:new I({isVoid:!0}),br:new I({isVoid:!0}),source:new I({isVoid:!0}),track:new I({isVoid:!0}),wbr:new I({isVoid:!0}),p:new I({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new I({closedByChildren:["tbody","tfoot"]}),tbody:new I({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new I({closedByChildren:["tbody"],closedByParent:!0}),tr:new I({closedByChildren:["tr"],closedByParent:!0}),td:new I({closedByChildren:["td","th"],closedByParent:!0}),th:new I({closedByChildren:["td","th"],closedByParent:!0}),col:new I({isVoid:!0}),svg:new I({implicitNamespacePrefix:"svg"}
1),foreignObject:new I({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new I({implicitNamespacePrefix:"math"}),li:new I({closedByChildren:["li"],closedByParent:!0}),dt:new I({closedByChildren:["dt","dd"]}),dd:new I({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new I({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new I({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new I({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new I({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new I({closedByChildren:["optgroup"],closedByParent:!0}),option:new I({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new I({ignoreFirstLf:!0}),listing:new I({ignoreFirstLf:!0}),style:new I({contentType:Se.RAW_TEXT}),script:new I({contentType:Se.RAW_TEXT}),title:new I({contentType:{default:Se.ESCAPABLE_RAW_TEXT,svg:Se.PARSABLE_DATA}}),textarea:new I({contentType:Se.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},(new fr).allKnownElementNames().forEach(s=>{!fs.hasOwnProperty(s)&&null===hr(s)&&(fs[s]=new I({canSelfClose:!1}))})),null!==(e=null!==(t=fs[n])&&void 0!==t?t:fs[n.toLowerCase()])&&void 0!==e?e:pu}const mr={AElig:"\xc6",AMP:"&",amp:"&",Aacute:"\xc1",Abreve:"\u0102",Acirc:"\xc2",Acy:"\u0410",Afr:"\u{1d504}",Agrave:"\xc0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2a53",Aogon:"\u0104",Aopf:"\u{1d538}",ApplyFunction:"\u2061",af:"\u2061",Aring:"\xc5",angst:"\xc5",Ascr:"\u{1d49c}",Assign:"\u2254",colone:"\u2254",coloneq:"\u2254",Atilde:"\xc3",Auml:"\xc4",Backslash:"\u2216",setminus:"\u2216",setmn:"\u2216",smallsetminus:"\u2216",ssetmn:"\u2216",Barv:"\u2ae7",Barwed:"\u2306",doublebarwedge:"\u2306",Bcy:"\u0411",Because:"\u2235",becaus:"\u2235",because:"\u2235",Bernoullis:"\u212c",Bscr:"\u212c",bernou:"\u212c",Beta:"\u0392",Bfr:"\u{1d505}",Bopf:"\u{1d539}",Breve:"\u02d8",breve:"\u02d8",Bumpeq:"\u224e",HumpDownHump:"\u224e",bump:"\u224e",CHcy:"\u0427",COPY:"\xa9",copy:"\xa9",Cacute:"\u0106",Cap:"\u22d2",CapitalDifferentialD:"\u2145",DD:"\u2145",Cayleys:"\u212d",Cfr:"\u212d",Ccaron:"\u010c",Ccedil:"\xc7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010a",Cedilla:"\xb8",cedil:"\xb8",CenterDot:"\xb7",centerdot:"\xb7",middot:"\xb7",Chi:"\u03a7",CircleDot:"\u2299",odot:"\u2299",CircleMinus:"\u2296",ominus:"\u2296",CirclePlus:"\u2295",oplus:"\u2295",CircleTimes:"\u2297",otimes:"\u2297",ClockwiseContourIntegral:"\u2232",cwconint:"\u2232",CloseCurlyDoubleQuote:"\u201d",rdquo:"\u201d",rdquor:"\u201d",CloseCurlyQuote:"\u2019",rsquo:"\u2019",rsquor:"\u2019",Colon:"\u2237",Proportion:"\u2237",Colone:"\u2a74",Congruent:"\u2261",equiv:"\u2261",Conint:"\u222f",DoubleContourIntegral:"\u222f",ContourIntegral:"\u222e",conint:"\u222e",oint:"\u222e",Copf:"\u2102",complexes:"\u2102",Coproduct:"\u2210",coprod:"\u2210",CounterClockwiseContourIntegral:"\u2233",awconint:"\u2233",Cross:"\u2a2f",Cscr:"\u{1d49e}",Cup:"\u22d3",CupCap:"\u224d",asympeq:"\u224d",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040f",Dagger:"\u2021",ddagger:"\u2021",Darr:"\u21a1",Dashv:"\u2ae4",DoubleLeftTee:"\u2ae4",Dcaron:"\u010e",Dcy:"\u0414",Del:"\u2207",nabla:"\u2207",Delta:"\u0394",Dfr:"\u{1d507}",DiacriticalAcute:"\xb4",acute:"\xb4",DiacriticalDot:"\u02d9",dot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",dblac:"\u02dd",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"\u02dc",tilde:"\u02dc",Diamond:"\u22c4",diam:"\u22c4",diamond:"\u22c4",DifferentialD:"\u2146",dd:"\u2146",Dopf:"\u{1d53b}",Dot:"\xa8",DoubleDot:"\xa8",die:"\xa8",uml:"\xa8",DotDot:"\u20dc",DotEqual:"\u2250",doteq:"\u2250",esdot:"\u2250",DoubleDownArrow:"\u21d3",Downarrow:"\u21d3",dArr:"\u21d3",DoubleLeftArrow:"\u21d0",Leftarrow:"\u21d0",lArr:"\u21d0",DoubleLeftRightArrow:"\u21d4",Leftrightarrow:"\u21d4",hArr:"\u21d4",iff:"\u21d4",DoubleLongLeftArrow:"\u27f8",Longleftarrow:"\u27f8",xlArr:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",Longleftrightarrow:"\u27fa",xhArr:"\u27fa",DoubleLongRightArrow:"\u27f9",Longrightarrow:"\u27f9",xrArr:"\u27f9",DoubleRightArrow:"\u21d2",Implies:"\u21d2",Rightarrow:"\u21d2",rArr:"\u21d2",DoubleRightTee:"\u22a8",vDash:"\u22a8",DoubleUpArrow:"\u21d1",Uparrow:"\u21d1",uArr:"\u21d1",DoubleUpDownArrow:"\u21d5",Updownarrow:"\u21d5",vArr:"\u21d5",DoubleVerticalBar:"\u2225",par:"\u2225",parallel:"\u2225",shortparallel:"\u2225",spar:"\u2225",DownArrow:"\u2193",ShortDownArrow:"\u2193",darr:"\u2193",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21f5",duarr:"\u21f5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVector:"\u21bd",leftharpoondown:"\u21bd",lhard:"\u21bd",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295f",DownRightVector:"\u21c1",rhard:"\u21c1",rightharpoondown:"\u21c1",DownRightVectorBar:"\u2957",DownTee:"\u22a4",top:"\u22a4",DownTeeArrow:"\u21a7",mapstodown:"\u21a7",Dscr:"\u{1d49f}",Dstrok:"\u0110",ENG:"\u014a",ETH:"\xd0",Eacute:"\xc9",Ecaron:"\u011a",Ecirc:"\xca",
1Ecy:"\u042d",Edot:"\u0116",Efr:"\u{1d508}",Egrave:"\xc8",Element:"\u2208",in:"\u2208",isin:"\u2208",isinv:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25fb",EmptyVerySmallSquare:"\u25ab",Eogon:"\u0118",Eopf:"\u{1d53c}",Epsilon:"\u0395",Equal:"\u2a75",EqualTilde:"\u2242",eqsim:"\u2242",esim:"\u2242",Equilibrium:"\u21cc",rightleftharpoons:"\u21cc",rlhar:"\u21cc",Escr:"\u2130",expectation:"\u2130",Esim:"\u2a73",Eta:"\u0397",Euml:"\xcb",Exists:"\u2203",exist:"\u2203",ExponentialE:"\u2147",ee:"\u2147",exponentiale:"\u2147",Fcy:"\u0424",Ffr:"\u{1d509}",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",blacksquare:"\u25aa",squarf:"\u25aa",squf:"\u25aa",Fopf:"\u{1d53d}",ForAll:"\u2200",forall:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",gt:">",Gamma:"\u0393",Gammad:"\u03dc",Gbreve:"\u011e",Gcedil:"\u0122",Gcirc:"\u011c",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1d50a}",Gg:"\u22d9",ggg:"\u22d9",Gopf:"\u{1d53e}",GreaterEqual:"\u2265",ge:"\u2265",geq:"\u2265",GreaterEqualLess:"\u22db",gel:"\u22db",gtreqless:"\u22db",GreaterFullEqual:"\u2267",gE:"\u2267",geqq:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",gl:"\u2277",gtrless:"\u2277",GreaterSlantEqual:"\u2a7e",geqslant:"\u2a7e",ges:"\u2a7e",GreaterTilde:"\u2273",gsim:"\u2273",gtrsim:"\u2273",Gscr:"\u{1d4a2}",Gt:"\u226b",NestedGreaterGreater:"\u226b",gg:"\u226b",HARDcy:"\u042a",Hacek:"\u02c7",caron:"\u02c7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210c",Poincareplane:"\u210c",HilbertSpace:"\u210b",Hscr:"\u210b",hamilt:"\u210b",Hopf:"\u210d",quaternions:"\u210d",HorizontalLine:"\u2500",boxh:"\u2500",Hstrok:"\u0126",HumpEqual:"\u224f",bumpe:"\u224f",bumpeq:"\u224f",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xcd",Icirc:"\xce",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Im:"\u2111",image:"\u2111",imagpart:"\u2111",Igrave:"\xcc",Imacr:"\u012a",ImaginaryI:"\u2148",ii:"\u2148",Int:"\u222c",Integral:"\u222b",int:"\u222b",Intersection:"\u22c2",bigcap:"\u22c2",xcap:"\u22c2",InvisibleComma:"\u2063",ic:"\u2063",InvisibleTimes:"\u2062",it:"\u2062",Iogon:"\u012e",Iopf:"\u{1d540}",Iota:"\u0399",Iscr:"\u2110",imagline:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xcf",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1d50d}",Jopf:"\u{1d541}",Jscr:"\u{1d4a5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040c",Kappa:"\u039a",Kcedil:"\u0136",Kcy:"\u041a",Kfr:"\u{1d50e}",Kopf:"\u{1d542}",Kscr:"\u{1d4a6}",LJcy:"\u0409",LT:"<",lt:"<",Lacute:"\u0139",Lambda:"\u039b",Lang:"\u27ea",Laplacetrf:"\u2112",Lscr:"\u2112",lagran:"\u2112",Larr:"\u219e",twoheadleftarrow:"\u219e",Lcaron:"\u013d",Lcedil:"\u013b",Lcy:"\u041b",LeftAngleBracket:"\u27e8",lang:"\u27e8",langle:"\u27e8",LeftArrow:"\u2190",ShortLeftArrow:"\u2190",larr:"\u2190",leftarrow:"\u2190",slarr:"\u2190",LeftArrowBar:"\u21e4",larrb:"\u21e4",LeftArrowRightArrow:"\u21c6",leftrightarrows:"\u21c6",lrarr:"\u21c6",LeftCeiling:"\u2308",lceil:"\u2308",LeftDoubleBracket:"\u27e6",lobrk:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21c3",dharl:"\u21c3",downharpoonleft:"\u21c3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230a",lfloor:"\u230a",LeftRightArrow:"\u2194",harr:"\u2194",leftrightarrow:"\u2194",LeftRightVector:"\u294e",LeftTee:"\u22a3",dashv:"\u22a3",LeftTeeArrow:"\u21a4",mapstoleft:"\u21a4",LeftTeeVector:"\u295a",LeftTriangle:"\u22b2",vartriangleleft:"\u22b2",vltri:"\u22b2",LeftTriangleBar:"\u29cf",LeftTriangleEqual:"\u22b4",ltrie:"\u22b4",trianglelefteq:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21bf",uharl:"\u21bf",upharpoonleft:"\u21bf",LeftUpVectorBar:"\u2958",LeftVector:"\u21bc",leftharpoonup:"\u21bc",lharu:"\u21bc",LeftVectorBar:"\u2952",LessEqualGreater:"\u22da",leg:"\u22da",lesseqgtr:"\u22da",LessFullEqual:"\u2266",lE:"\u2266",leqq:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",lg:"\u2276",LessLess:"\u2aa1",LessSlantEqual:"\u2a7d",leqslant:"\u2a7d",les:"\u2a7d",LessTilde:"\u2272",lesssim:"\u2272",lsim:"\u2272",Lfr:"\u{1d50f}",Ll:"\u22d8",Lleftarrow:"\u21da",lAarr:"\u21da",Lmidot:"\u013f",LongLeftArrow:"\u27f5",longleftarrow:"\u27f5",xlarr:"\u27f5",LongLeftRightArrow:"\u27f7",longleftrightarrow:"\u27f7",xharr:"\u27f7",LongRightArrow:"\u27f6",longrightarrow:"\u27f6",xrarr:"\u27f6",Lopf:"\u{1d543}",LowerLeftArrow:"\u2199",swarr:"\u2199",swarrow:"\u2199",LowerRightArrow:"\u2198",searr:"\u2198",searrow:"\u2198",Lsh:"\u21b0",lsh:"\u21b0",Lstrok:"\u0141",Lt:"\u226a",NestedLessLess:"\u226a",ll:"\u226a",Map:"\u2905",Mcy:"\u041c",MediumSpace:"\u205f",Mellintrf:"\u2133",Mscr:"\u2133",phmmat:"\u2133",Mfr:"\u{1d510}",MinusPlus:"\u2213",mnplus:"\u2213",mp:"\u2213",Mopf:"\u{1d544}",Mu:"\u039c",NJcy:"\u040a",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041d",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",ZeroWidthSpace:"\u200b",NewLine:"\n",Nfr:"\u{1d511}",NoBreak:"\u2060",NonBreakingSpace:"\xa0",nbsp:"\xa0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2aec",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226f",ngt:"\u226f",ngtr:"\u226f",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",nGtv:"\u226b\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224e\u0338",nbump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",nbumpe:"\u224f\u0338",NotLeftTriangle:"\u22ea",nltri:"\u22ea",ntriangleleft:"\u22ea",NotLeftTriangleBar:"\u29cf\u
10338",NotLeftTriangleEqual:"\u22ec",nltrie:"\u22ec",ntrianglelefteq:"\u22ec",NotLess:"\u226e",nless:"\u226e",nlt:"\u226e",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226a\u0338",nLtv:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",npre:"\u2aaf\u0338",npreceq:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",nprcue:"\u22e0",NotReverseElement:"\u220c",notni:"\u220c",notniva:"\u220c",NotRightTriangle:"\u22eb",nrtri:"\u22eb",ntriangleright:"\u22eb",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangleEqual:"\u22ed",nrtrie:"\u22ed",ntrianglerighteq:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",nsqsube:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",nsqsupe:"\u22e3",NotSubset:"\u2282\u20d2",nsubset:"\u2282\u20d2",vnsub:"\u2282\u20d2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",nsce:"\u2ab0\u0338",nsucceq:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",nsccue:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",nsupset:"\u2283\u20d2",vnsup:"\u2283\u20d2",NotSupersetEqual:"\u2289",nsupe:"\u2289",nsupseteq:"\u2289",NotTilde:"\u2241",nsim:"\u2241",NotTildeEqual:"\u2244",nsime:"\u2244",nsimeq:"\u2244",NotTildeFullEqual:"\u2247",ncong:"\u2247",NotTildeTilde:"\u2249",nap:"\u2249",napprox:"\u2249",NotVerticalBar:"\u2224",nmid:"\u2224",nshortmid:"\u2224",nsmid:"\u2224",Nscr:"\u{1d4a9}",Ntilde:"\xd1",Nu:"\u039d",OElig:"\u0152",Oacute:"\xd3",Ocirc:"\xd4",Ocy:"\u041e",Odblac:"\u0150",Ofr:"\u{1d512}",Ograve:"\xd2",Omacr:"\u014c",Omega:"\u03a9",ohm:"\u03a9",Omicron:"\u039f",Oopf:"\u{1d546}",OpenCurlyDoubleQuote:"\u201c",ldquo:"\u201c",OpenCurlyQuote:"\u2018",lsquo:"\u2018",Or:"\u2a54",Oscr:"\u{1d4aa}",Oslash:"\xd8",Otilde:"\xd5",Otimes:"\u2a37",Ouml:"\xd6",OverBar:"\u203e",oline:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",tbrk:"\u23b4",OverParenthesis:"\u23dc",PartialD:"\u2202",part:"\u2202",Pcy:"\u041f",Pfr:"\u{1d513}",Phi:"\u03a6",Pi:"\u03a0",PlusMinus:"\xb1",plusmn:"\xb1",pm:"\xb1",Popf:"\u2119",primes:"\u2119",Pr:"\u2abb",Precedes:"\u227a",pr:"\u227a",prec:"\u227a",PrecedesEqual:"\u2aaf",pre:"\u2aaf",preceq:"\u2aaf",PrecedesSlantEqual:"\u227c",prcue:"\u227c",preccurlyeq:"\u227c",PrecedesTilde:"\u227e",precsim:"\u227e",prsim:"\u227e",Prime:"\u2033",Product:"\u220f",prod:"\u220f",Proportional:"\u221d",prop:"\u221d",propto:"\u221d",varpropto:"\u221d",vprop:"\u221d",Pscr:"\u{1d4ab}",Psi:"\u03a8",QUOT:'"',quot:'"',Qfr:"\u{1d514}",Qopf:"\u211a",rationals:"\u211a",Qscr:"\u{1d4ac}",RBarr:"\u2910",drbkarow:"\u2910",REG:"\xae",circledR:"\xae",reg:"\xae",Racute:"\u0154",Rang:"\u27eb",Rarr:"\u21a0",twoheadrightarrow:"\u21a0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211c",Rfr:"\u211c",real:"\u211c",realpart:"\u211c",ReverseElement:"\u220b",SuchThat:"\u220b",ni:"\u220b",niv:"\u220b",ReverseEquilibrium:"\u21cb",leftrightharpoons:"\u21cb",lrhar:"\u21cb",ReverseUpEquilibrium:"\u296f",duhar:"\u296f",Rho:"\u03a1",RightAngleBracket:"\u27e9",rang:"\u27e9",rangle:"\u27e9",RightArrow:"\u2192",ShortRightArrow:"\u2192",rarr:"\u2192",rightarrow:"\u2192",srarr:"\u2192",RightArrowBar:"\u21e5",rarrb:"\u21e5",RightArrowLeftArrow:"\u21c4",rightleftarrows:"\u21c4",rlarr:"\u21c4",RightCeiling:"\u2309",rceil:"\u2309",RightDoubleBracket:"\u27e7",robrk:"\u27e7",RightDownTeeVector:"\u295d",RightDownVector:"\u21c2",dharr:"\u21c2",downharpoonright:"\u21c2",RightDownVectorBar:"\u2955",RightFloor:"\u230b",rfloor:"\u230b",RightTee:"\u22a2",vdash:"\u22a2",RightTeeArrow:"\u21a6",map:"\u21a6",mapsto:"\u21a6",RightTeeVector:"\u295b",RightTriangle:"\u22b3",vartriangleright:"\u22b3",vrtri:"\u22b3",RightTriangleBar:"\u29d0",RightTriangleEqual:"\u22b5",rtrie:"\u22b5",trianglerighteq:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVector:"\u21be",uharr:"\u21be",upharpoonright:"\u21be",RightUpVectorBar:"\u2954",RightVector:"\u21c0",rharu:"\u21c0",rightharpoonup:"\u21c0",RightVectorBar:"\u2953",Ropf:"\u211d",reals:"\u211d",RoundImplies:"\u2970",Rrightarrow:"\u21db",rAarr:"\u21db",Rscr:"\u211b",realine:"\u211b",Rsh:"\u21b1",rsh:"\u21b1",RuleDelayed:"\u29f4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042c",Sacute:"\u015a",Sc:"\u2abc",Scaron:"\u0160",Scedil:"\u015e",Scirc:"\u015c",Scy:"\u0421",Sfr:"\u{1d516}",ShortUpArrow:"\u2191",UpArrow:"\u2191",uarr:"\u2191",uparrow:"\u2191",Sigma:"\u03a3",SmallCircle:"\u2218",compfn:"\u2218",Sopf:"\u{1d54a}",Sqrt:"\u221a",radic:"\u221a",Square:"\u25a1",squ:"\u25a1",square:"\u25a1",SquareIntersection:"\u2293",sqcap:"\u2293",SquareSubset:"\u228f",sqsub:"\u228f",sqsubset:"\u228f",SquareSubsetEqual:"\u2291",sqsube:"\u2291",sqsubseteq:"\u2291",SquareSuperset:"\u2290",sqsup:"\u2290",sqsupset:"\u2290",SquareSupersetEqual:"\u2292",sqsupe:"\u2292",sqsupseteq:"\u2292",SquareUnion:"\u2294",sqcup:"\u2294",Sscr:"\u{1d4ae}",Star:"\u22c6",sstarf:"\u22c6",Sub:"\u22d0",Subset:"\u22d0",SubsetEqual:"\u2286",sube:"\u2286",subseteq:"\u2286",Succeeds:"\u227b",sc:"\u227b",succ:"\u227b",SucceedsEqual:"\u2ab0",sce:"\u2ab0",succeq:"\u2ab0",SucceedsSlantEqual:"\u227d",sccue:"\u227d",succcurlyeq:"\u227d",SucceedsTilde:"\u227f",scsim:"\u227f",succsim:"\u227f",Sum:"\u2211",sum:"\u2211",Sup:"\u22d1",Supset:"\u22d1",Superset:"\u2283",sup:"\u2283",supset:"\u2283",SupersetEqual:"\u2287",supe:"\u2287",supseteq:"\u2287",THORN:"\xde",TRADE:"\u2122",trade:"\u2122",TSHcy:"\u040b",TScy:"\u0426",Tab:"\t",Tau:"\u03a4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1d517}",Therefore:"\u2234",there4:"\u2234",therefore:"\u2234",Theta:"\u0398",ThickS
1pace:"\u205f\u200a",ThinSpace:"\u2009",thinsp:"\u2009",Tilde:"\u223c",sim:"\u223c",thicksim:"\u223c",thksim:"\u223c",TildeEqual:"\u2243",sime:"\u2243",simeq:"\u2243",TildeFullEqual:"\u2245",cong:"\u2245",TildeTilde:"\u2248",ap:"\u2248",approx:"\u2248",asymp:"\u2248",thickapprox:"\u2248",thkap:"\u2248",Topf:"\u{1d54b}",TripleDot:"\u20db",tdot:"\u20db",Tscr:"\u{1d4af}",Tstrok:"\u0166",Uacute:"\xda",Uarr:"\u219f",Uarrocir:"\u2949",Ubrcy:"\u040e",Ubreve:"\u016c",Ucirc:"\xdb",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1d518}",Ugrave:"\xd9",Umacr:"\u016a",UnderBar:"_",lowbar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",bbrk:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",bigcup:"\u22c3",xcup:"\u22c3",UnionPlus:"\u228e",uplus:"\u228e",Uogon:"\u0172",Uopf:"\u{1d54c}",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21c5",udarr:"\u21c5",UpDownArrow:"\u2195",updownarrow:"\u2195",varr:"\u2195",UpEquilibrium:"\u296e",udhar:"\u296e",UpTee:"\u22a5",bot:"\u22a5",bottom:"\u22a5",perp:"\u22a5",UpTeeArrow:"\u21a5",mapstoup:"\u21a5",UpperLeftArrow:"\u2196",nwarr:"\u2196",nwarrow:"\u2196",UpperRightArrow:"\u2197",nearr:"\u2197",nearrow:"\u2197",Upsi:"\u03d2",upsih:"\u03d2",Upsilon:"\u03a5",Uring:"\u016e",Uscr:"\u{1d4b0}",Utilde:"\u0168",Uuml:"\xdc",VDash:"\u22ab",Vbar:"\u2aeb",Vcy:"\u0412",Vdash:"\u22a9",Vdashl:"\u2ae6",Vee:"\u22c1",bigvee:"\u22c1",xvee:"\u22c1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",mid:"\u2223",shortmid:"\u2223",smid:"\u2223",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",VeryThinSpace:"\u200a",hairsp:"\u200a",Vfr:"\u{1d519}",Vopf:"\u{1d54d}",Vscr:"\u{1d4b1}",Vvdash:"\u22aa",Wcirc:"\u0174",Wedge:"\u22c0",bigwedge:"\u22c0",xwedge:"\u22c0",Wfr:"\u{1d51a}",Wopf:"\u{1d54e}",Wscr:"\u{1d4b2}",Xfr:"\u{1d51b}",Xi:"\u039e",Xopf:"\u{1d54f}",Xscr:"\u{1d4b3}",YAcy:"\u042f",YIcy:"\u0407",YUcy:"\u042e",Yacute:"\xdd",Ycirc:"\u0176",Ycy:"\u042b",Yfr:"\u{1d51c}",Yopf:"\u{1d550}",Yscr:"\u{1d4b4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017d",Zcy:"\u0417",Zdot:"\u017b",Zeta:"\u0396",Zfr:"\u2128",zeetrf:"\u2128",Zopf:"\u2124",integers:"\u2124",Zscr:"\u{1d4b5}",aacute:"\xe1",abreve:"\u0103",ac:"\u223e",mstpos:"\u223e",acE:"\u223e\u0333",acd:"\u223f",acirc:"\xe2",acy:"\u0430",aelig:"\xe6",afr:"\u{1d51e}",agrave:"\xe0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03b1",amacr:"\u0101",amalg:"\u2a3f",and:"\u2227",wedge:"\u2227",andand:"\u2a55",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",angle:"\u2220",ange:"\u29a4",angmsd:"\u2221",measuredangle:"\u2221",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angzarr:"\u237c",aogon:"\u0105",aopf:"\u{1d552}",apE:"\u2a70",apacir:"\u2a6f",ape:"\u224a",approxeq:"\u224a",apid:"\u224b",apos:"'",aring:"\xe5",ascr:"\u{1d4b6}",ast:"*",midast:"*",atilde:"\xe3",auml:"\xe4",awint:"\u2a11",bNot:"\u2aed",backcong:"\u224c",bcong:"\u224c",backepsilon:"\u03f6",bepsi:"\u03f6",backprime:"\u2035",bprime:"\u2035",backsim:"\u223d",bsim:"\u223d",backsimeq:"\u22cd",bsime:"\u22cd",barvee:"\u22bd",barwed:"\u2305",barwedge:"\u2305",bbrktbrk:"\u23b6",bcy:"\u0431",bdquo:"\u201e",ldquor:"\u201e",bemptyv:"\u29b0",beta:"\u03b2",beth:"\u2136",between:"\u226c",twixt:"\u226c",bfr:"\u{1d51f}",bigcirc:"\u25ef",xcirc:"\u25ef",bigodot:"\u2a00",xodot:"\u2a00",bigoplus:"\u2a01",xoplus:"\u2a01",bigotimes:"\u2a02",xotime:"\u2a02",bigsqcup:"\u2a06",xsqcup:"\u2a06",bigstar:"\u2605",starf:"\u2605",bigtriangledown:"\u25bd",xdtri:"\u25bd",bigtriangleup:"\u25b3",xutri:"\u25b3",biguplus:"\u2a04",xuplus:"\u2a04",bkarow:"\u290d",rbarr:"\u290d",blacklozenge:"\u29eb",lozf:"\u29eb",blacktriangle:"\u25b4",utrif:"\u25b4",blacktriangledown:"\u25be",dtrif:"\u25be",blacktriangleleft:"\u25c2",ltrif:"\u25c2",blacktriangleright:"\u25b8",rtrif:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bnot:"\u2310",bopf:"\u{1d553}",bowtie:"\u22c8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255d",boxUR:"\u255a",boxUl:"\u255c",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256c",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256b",boxVl:"\u2562",boxVr:"\u255f",boxbox:"\u29c9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250c",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252c",boxhu:"\u2534",boxminus:"\u229f",minu
1sb:"\u229f",boxplus:"\u229e",plusb:"\u229e",boxtimes:"\u22a0",timesb:"\u22a0",boxuL:"\u255b",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256a",boxvL:"\u2561",boxvR:"\u255e",boxvh:"\u253c",boxvl:"\u2524",boxvr:"\u251c",brvbar:"\xa6",bscr:"\u{1d4b7}",bsemi:"\u204f",bsol:"\\",bsolb:"\u29c5",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bumpE:"\u2aae",cacute:"\u0107",cap:"\u2229",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",capcup:"\u2a47",capdot:"\u2a40",caps:"\u2229\ufe00",caret:"\u2041",ccaps:"\u2a4d",ccaron:"\u010d",ccedil:"\xe7",ccirc:"\u0109",ccups:"\u2a4c",ccupssm:"\u2a50",cdot:"\u010b",cemptyv:"\u29b2",cent:"\xa2",cfr:"\u{1d520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03c7",cir:"\u25cb",cirE:"\u29c3",circ:"\u02c6",circeq:"\u2257",cire:"\u2257",circlearrowleft:"\u21ba",olarr:"\u21ba",circlearrowright:"\u21bb",orarr:"\u21bb",circledS:"\u24c8",oS:"\u24c8",circledast:"\u229b",oast:"\u229b",circledcirc:"\u229a",ocir:"\u229a",circleddash:"\u229d",odash:"\u229d",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",clubs:"\u2663",clubsuit:"\u2663",colon:":",comma:",",commat:"@",comp:"\u2201",complement:"\u2201",congdot:"\u2a6d",copf:"\u{1d554}",copysr:"\u2117",crarr:"\u21b5",cross:"\u2717",cscr:"\u{1d4b8}",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",curlyeqprec:"\u22de",cuesc:"\u22df",curlyeqsucc:"\u22df",cularr:"\u21b6",curvearrowleft:"\u21b6",cularrp:"\u293d",cup:"\u222a",cupbrcap:"\u2a48",cupcap:"\u2a46",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curvearrowright:"\u21b7",curarrm:"\u293c",curlyvee:"\u22ce",cuvee:"\u22ce",curlywedge:"\u22cf",cuwed:"\u22cf",curren:"\xa4",cwint:"\u2231",cylcty:"\u232d",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",dash:"\u2010",hyphen:"\u2010",dbkarow:"\u290f",rBarr:"\u290f",dcaron:"\u010f",dcy:"\u0434",ddarr:"\u21ca",downdownarrows:"\u21ca",ddotseq:"\u2a77",eDDot:"\u2a77",deg:"\xb0",delta:"\u03b4",demptyv:"\u29b1",dfisht:"\u297f",dfr:"\u{1d521}",diamondsuit:"\u2666",diams:"\u2666",digamma:"\u03dd",gammad:"\u03dd",disin:"\u22f2",div:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",djcy:"\u0452",dlcorn:"\u231e",llcorner:"\u231e",dlcrop:"\u230d",dollar:"$",dopf:"\u{1d555}",doteqdot:"\u2251",eDot:"\u2251",dotminus:"\u2238",minusd:"\u2238",dotplus:"\u2214",plusdo:"\u2214",dotsquare:"\u22a1",sdotb:"\u22a1",drcorn:"\u231f",lrcorner:"\u231f",drcrop:"\u230c",dscr:"\u{1d4b9}",dscy:"\u0455",dsol:"\u29f6",dstrok:"\u0111",dtdot:"\u22f1",dtri:"\u25bf",triangledown:"\u25bf",dwangle:"\u29a6",dzcy:"\u045f",dzigrarr:"\u27ff",eacute:"\xe9",easter:"\u2a6e",ecaron:"\u011b",ecir:"\u2256",eqcirc:"\u2256",ecirc:"\xea",ecolon:"\u2255",eqcolon:"\u2255",ecy:"\u044d",edot:"\u0117",efDot:"\u2252",fallingdotseq:"\u2252",efr:"\u{1d522}",eg:"\u2a9a",egrave:"\xe8",egs:"\u2a96",eqslantgtr:"\u2a96",egsdot:"\u2a98",el:"\u2a99",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",eqslantless:"\u2a95",elsdot:"\u2a97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014b",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1d556}",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",epsilon:"\u03b5",epsiv:"\u03f5",straightepsilon:"\u03f5",varepsilon:"\u03f5",equals:"=",equest:"\u225f",questeq:"\u225f",equivDD:"\u2a78",eqvparsl:"\u29e5",erDot:"\u2253",risingdotseq:"\u2253",erarr:"\u2971",escr:"\u212f",eta:"\u03b7",eth:"\xf0",euml:"\xeb",euro:"\u20ac",excl:"!",fcy:"\u0444",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",ffr:"\u{1d523}",filig:"\ufb01",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",fopf:"\u{1d557}",fork:"\u22d4",pitchfork:"\u22d4",forkv:"\u2ad9",fpartint:"\u2a0d",frac12:"\xbd",half:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",sfrown:"\u2322",fscr:"\u{1d4bb}",gEl:"\u2a8c",gtreqqless:"\u2a8c",gacute:"\u01f5",gamma:"\u03b3",gap:"\u2a86",gtrapprox:"\u2a86",gbreve:"\u011f",gcirc:"\u011d",gcy:"\u0433",gdot:"\u0121",gescc:"\u2aa9",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",gfr:"\u{1d524}",gimel:"\u2137",gjcy:"\u0453",glE:"\u2a92",gla:"\u2aa5",glj:"\u2aa4",gnE:"\u2269",gneqq:"\u2269",gnap:"\u2a8a",gnapprox:"\u2a8a",gne:"\u2a88",gneq:"\u2a88",gnsim:"\u22e7",gopf:"\u{1d558}",gscr:"\u210a",gsime:"\u2a8e",gsiml:"\u2a90",gtcc:"\u2aa7",gtcir:"\u2a7a",gtdot:"\u22d7",gtrdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrarr:"\u2978",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",hardcy:"\u044a",harrcir:"\u2948",harrw:"\u21ad",leftrightsquigarrow:"\u21ad",hbar:"\u210f",hslash:"\u210f",planck:"\u210f",plankv:"\u210f",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",mldr:"\u2026",hercon:"\u22b9",hfr:"\u{1d525}",hksearow:"\u2925",searhk:"\u2925",hkswarow:"\u2926",swarhk:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",larrhk:"\u21a9",hookrightarrow:"\u21aa",rarrhk:"\u21aa",hopf:"\u{1d559}",horbar:"\u2015",hscr:"\u{1d4bd}",hstrok:"\u0127",hybull:"\u2043",iacute:"\xed",icirc:"\xee",icy:"\u0438",iecy:"\u0435",iexcl:"\xa1",ifr:"\u{1d526}",igrave:"\xec",iiiint:"\u2a0c",qint:"\u2a0c",iiint:"\u222d",tint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012b",imath:"\u0131",inodot:"\u0131",imof:"\u22b7",imped:"\u01b5",incare:"\u2105",infin:"\u221e",infintie:"\u29dd",intcal:"\u22ba",intercal:"\u22ba",intlarhk:"\u2a17",intprod:"\u2a3c",iprod:"\u2a3c",iocy:"\u0451",iogon:"\u012f",iopf:"\u{1d55a}",iota:"\u03b9",iquest:"\xbf",iscr:"\u{1d4be}",isinE:"\u22f9",isindot:"\u22f5",isins:"\u22f4",isinsv:"\u22f3",itilde:"\u0129",iukcy:"\u0456",iuml:"\xef",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1d527}",jmath:"\u0237",jopf:"\u{1d55b}",jscr:"\u{1d4bf}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03ba",kappav:"\u03f0",varkappa:"\u03f0",kcedil
1:"\u0137",kcy:"\u043a",kfr:"\u{1d528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045c",kopf:"\u{1d55c}",kscr:"\u{1d4c0}",lAtail:"\u291b",lBarr:"\u290e",lEg:"\u2a8b",lesseqqgtr:"\u2a8b",lHar:"\u2962",lacute:"\u013a",laemptyv:"\u29b4",lambda:"\u03bb",langd:"\u2991",lap:"\u2a85",lessapprox:"\u2a85",laquo:"\xab",larrbfs:"\u291f",larrfs:"\u291d",larrlp:"\u21ab",looparrowleft:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",leftarrowtail:"\u21a2",lat:"\u2aab",latail:"\u2919",late:"\u2aad",lates:"\u2aad\ufe00",lbarr:"\u290c",lbbrk:"\u2772",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",lcaron:"\u013e",lcedil:"\u013c",lcy:"\u043b",ldca:"\u2936",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",le:"\u2264",leq:"\u2264",leftleftarrows:"\u21c7",llarr:"\u21c7",leftthreetimes:"\u22cb",lthree:"\u22cb",lescc:"\u2aa8",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessdot:"\u22d6",ltdot:"\u22d6",lfisht:"\u297c",lfr:"\u{1d529}",lgE:"\u2a91",lharul:"\u296a",lhblk:"\u2584",ljcy:"\u0459",llhard:"\u296b",lltri:"\u25fa",lmidot:"\u0140",lmoust:"\u23b0",lmoustache:"\u23b0",lnE:"\u2268",lneqq:"\u2268",lnap:"\u2a89",lnapprox:"\u2a89",lne:"\u2a87",lneq:"\u2a87",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",longmapsto:"\u27fc",xmap:"\u27fc",looparrowright:"\u21ac",rarrlp:"\u21ac",lopar:"\u2985",lopf:"\u{1d55d}",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",loz:"\u25ca",lozenge:"\u25ca",lpar:"(",lparlt:"\u2993",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",lscr:"\u{1d4c1}",lsime:"\u2a8d",lsimg:"\u2a8f",lsquor:"\u201a",sbquo:"\u201a",lstrok:"\u0142",ltcc:"\u2aa6",ltcir:"\u2a79",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltrPar:"\u2996",ltri:"\u25c3",triangleleft:"\u25c3",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",mDDot:"\u223a",macr:"\xaf",strns:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",marker:"\u25ae",mcomma:"\u2a29",mcy:"\u043c",mdash:"\u2014",mfr:"\u{1d52a}",mho:"\u2127",micro:"\xb5",midcir:"\u2af0",minus:"\u2212",minusdu:"\u2a2a",mlcp:"\u2adb",models:"\u22a7",mopf:"\u{1d55e}",mscr:"\u{1d4c2}",mu:"\u03bc",multimap:"\u22b8",mumap:"\u22b8",nGg:"\u22d9\u0338",nGt:"\u226b\u20d2",nLeftarrow:"\u21cd",nlArr:"\u21cd",nLeftrightarrow:"\u21ce",nhArr:"\u21ce",nLl:"\u22d8\u0338",nLt:"\u226a\u20d2",nRightarrow:"\u21cf",nrArr:"\u21cf",nVDash:"\u22af",nVdash:"\u22ae",nacute:"\u0144",nang:"\u2220\u20d2",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",natur:"\u266e",natural:"\u266e",ncap:"\u2a43",ncaron:"\u0148",ncedil:"\u0146",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",ncy:"\u043d",ndash:"\u2013",neArr:"\u21d7",nearhk:"\u2924",nedot:"\u2250\u0338",nesear:"\u2928",toea:"\u2928",nfr:"\u{1d52b}",nharr:"\u21ae",nleftrightarrow:"\u21ae",nhpar:"\u2af2",nis:"\u22fc",nisd:"\u22fa",njcy:"\u045a",nlE:"\u2266\u0338",nleqq:"\u2266\u0338",nlarr:"\u219a",nleftarrow:"\u219a",nldr:"\u2025",nopf:"\u{1d55f}",not:"\xac",notinE:"\u22f9\u0338",notindot:"\u22f5\u0338",notinvb:"\u22f7",notinvc:"\u22f6",notnivb:"\u22fe",notnivc:"\u22fd",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",nrarr:"\u219b",nrightarrow:"\u219b",nrarrc:"\u2933\u0338",nrarrw:"\u219d\u0338",nscr:"\u{1d4c3}",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsubseteqq:"\u2ac5\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupseteqq:"\u2ac6\u0338",ntilde:"\xf1",nu:"\u03bd",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22ad",nvHarr:"\u2904",nvap:"\u224d\u20d2",nvdash:"\u22ac",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwArr:"\u21d6",nwarhk:"\u2923",nwnear:"\u2927",oacute:"\xf3",ocirc:"\xf4",ocy:"\u043e",odblac:"\u0151",odiv:"\u2a38",odsold:"\u29bc",oelig:"\u0153",ofcir:"\u29bf",ofr:"\u{1d52c}",ogon:"\u02db",ograve:"\xf2",ogt:"\u29c1",ohbar:"\u29b5",olcir:"\u29be",olcross:"\u29bb",olt:"\u29c0",omacr:"\u014d",omega:"\u03c9",omicron:"\u03bf",omid:"\u29b6",oopf:"\u{1d560}",opar:"\u29b7",operp:"\u29b9",or:"\u2228",vee:"\u2228",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",oscr:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oslash:"\xf8",osol:"\u2298",otilde:"\xf5",otimesas:"\u2a36",ouml:"\xf6",ovbar:"\u233d",para:"\xb6",parsim:"\u2af3",parsl:"\u2afd",pcy:"\u043f",percnt:"%",period:".",permil:"\u2030",pertenk:"\u2031",pfr:"\u{1d52d}",phi:"\u03c6",phiv:"\u03d5",straightphi:"\u03d5",varphi:"\u03d5",phone:"\u260e",pi:"\u03c0",piv:"\u03d6",varpi:"\u03d6",planckh:"\u210e",plus:"+",plusacir:"\u2a23",pluscir:"\u2a22",plusdu:"\u2a25",pluse:"\u2a72",plussim:"\u2a26",plustwo:"\u2a27",pointint:"\u2a15",popf:"\u{1d561}",pound:"\xa3",prE:"\u2ab3",prap:"\u2ab7",precapprox:"\u2ab7",precnapprox:"\u2ab9",prnap:"\u2ab9",precneqq:"\u2ab5",prnE:"\u2ab5",precnsim:"\u22e8",prnsim:"\u22e8",prime:"\u2032",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prurel:"\u22b0",pscr:"\u{1d4c5}",psi:"\u03c8",puncsp:"\u2008",qfr:"\u{1d52e}",qopf:"\u{1d562}",qprime:"\u2057",qscr:"\u{1d4c6}",quatint:"\u2a16",quest:"?",rAtail:"\u291c",rHar:"\u2964",race:"\u223d\u0331",racute:"\u0155",raemptyv:"\u29b3",rangd:"\u2992",range:"\u29a5",raquo:"\xbb",rarrap:"\u2975",rarrbf
1s:"\u2920",rarrc:"\u2933",rarrfs:"\u291e",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21a3",rightarrowtail:"\u21a3",rarrw:"\u219d",rightsquigarrow:"\u219d",ratail:"\u291a",ratio:"\u2236",rbbrk:"\u2773",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdsh:"\u21b3",rect:"\u25ad",rfisht:"\u297d",rfr:"\u{1d52f}",rharul:"\u296c",rho:"\u03c1",rhov:"\u03f1",varrho:"\u03f1",rightrightarrows:"\u21c9",rrarr:"\u21c9",rightthreetimes:"\u22cc",rthree:"\u22cc",ring:"\u02da",rlm:"\u200f",rmoust:"\u23b1",rmoustache:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",ropar:"\u2986",ropf:"\u{1d563}",roplus:"\u2a2e",rotimes:"\u2a35",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rsaquo:"\u203a",rscr:"\u{1d4c7}",rtimes:"\u22ca",rtri:"\u25b9",triangleright:"\u25b9",rtriltri:"\u29ce",ruluhar:"\u2968",rx:"\u211e",sacute:"\u015b",scE:"\u2ab4",scap:"\u2ab8",succapprox:"\u2ab8",scaron:"\u0161",scedil:"\u015f",scirc:"\u015d",scnE:"\u2ab6",succneqq:"\u2ab6",scnap:"\u2aba",succnapprox:"\u2aba",scnsim:"\u22e9",succnsim:"\u22e9",scpolint:"\u2a13",scy:"\u0441",sdot:"\u22c5",sdote:"\u2a66",seArr:"\u21d8",sect:"\xa7",semi:";",seswar:"\u2929",tosa:"\u2929",sext:"\u2736",sfr:"\u{1d530}",sharp:"\u266f",shchcy:"\u0449",shcy:"\u0448",shy:"\xad",sigma:"\u03c3",sigmaf:"\u03c2",sigmav:"\u03c2",varsigma:"\u03c2",simdot:"\u2a6a",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",smashp:"\u2a33",smeparsl:"\u29e4",smile:"\u2323",ssmile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",softcy:"\u044c",sol:"/",solb:"\u29c4",solbar:"\u233f",sopf:"\u{1d564}",spades:"\u2660",spadesuit:"\u2660",sqcaps:"\u2293\ufe00",sqcups:"\u2294\ufe00",sscr:"\u{1d4c8}",star:"\u2606",sub:"\u2282",subset:"\u2282",subE:"\u2ac5",subseteqq:"\u2ac5",subdot:"\u2abd",subedot:"\u2ac3",submult:"\u2ac1",subnE:"\u2acb",subsetneqq:"\u2acb",subne:"\u228a",subsetneq:"\u228a",subplus:"\u2abf",subrarr:"\u2979",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",sung:"\u266a",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supE:"\u2ac6",supseteqq:"\u2ac6",supdot:"\u2abe",supdsub:"\u2ad8",supedot:"\u2ac4",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supnE:"\u2acc",supsetneqq:"\u2acc",supne:"\u228b",supsetneq:"\u228b",supplus:"\u2ac0",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swArr:"\u21d9",swnwar:"\u292a",szlig:"\xdf",target:"\u2316",tau:"\u03c4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",telrec:"\u2315",tfr:"\u{1d531}",theta:"\u03b8",thetasym:"\u03d1",thetav:"\u03d1",vartheta:"\u03d1",thorn:"\xfe",times:"\xd7",timesbar:"\u2a31",timesd:"\u2a30",topbot:"\u2336",topcir:"\u2af1",topf:"\u{1d565}",topfork:"\u2ada",tprime:"\u2034",triangle:"\u25b5",utri:"\u25b5",triangleq:"\u225c",trie:"\u225c",tridot:"\u25ec",triminus:"\u2a3a",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",tscr:"\u{1d4c9}",tscy:"\u0446",tshcy:"\u045b",tstrok:"\u0167",uHar:"\u2963",uacute:"\xfa",ubrcy:"\u045e",ubreve:"\u016d",ucirc:"\xfb",ucy:"\u0443",udblac:"\u0171",ufisht:"\u297e",ufr:"\u{1d532}",ugrave:"\xf9",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",umacr:"\u016b",uogon:"\u0173",uopf:"\u{1d566}",upsi:"\u03c5",upsilon:"\u03c5",upuparrows:"\u21c8",uuarr:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",uring:"\u016f",urtri:"\u25f9",uscr:"\u{1d4ca}",utdot:"\u22f0",utilde:"\u0169",uuml:"\xfc",uwangle:"\u29a7",vBar:"\u2ae8",vBarv:"\u2ae9",vangrt:"\u299c",varsubsetneq:"\u228a\ufe00",vsubne:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",vsubnE:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",vsupne:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vsupnE:"\u2acc\ufe00",vcy:"\u0432",veebar:"\u22bb",veeeq:"\u225a",vellip:"\u22ee",vfr:"\u{1d533}",vopf:"\u{1d567}",vscr:"\u{1d4cb}",vzigzag:"\u299a",wcirc:"\u0175",wedbar:"\u2a5f",wedgeq:"\u2259",weierp:"\u2118",wp:"\u2118",wfr:"\u{1d534}",wopf:"\u{1d568}",wscr:"\u{1d4cc}",xfr:"\u{1d535}",xi:"\u03be",xnis:"\u22fb",xopf:"\u{1d569}",xscr:"\u{1d4cd}",yacute:"\xfd",yacy:"\u044f",ycirc:"\u0177",ycy:"\u044b",yen:"\xa5",yfr:"\u{1d536}",yicy:"\u0457",yopf:"\u{1d56a}",yscr:"\u{1d4ce}",yucy:"\u044e",yuml:"\xff",zacute:"\u017a",zcaron:"\u017e",zcy:"\u0437",zdot:"\u017c",zeta:"\u03b6",zfr:"\u{1d537}",zhcy:"\u0436",zigrarr:"\u21dd",zopf:"\u{1d56b}",zscr:"\u{1d4cf}",zwj:"\u200d",zwnj:"\u200c"},hu="\ue500";mr.ngsp=hu;class bi extends ss{constructor(e,t,s){super(s,e),this.tokenType=t}}
1class id{constructor(e,t,s){this.tokens=e,this.errors=t,this.nonNormalizedIcuExpressions=s}}const ad=/\r\n?/g;function on(n){return`Unexpected character "${n===ie?"EOF":String.fromCharCode(n)}"`}function du(n){return`Unknown entity "${n}" - use the "&#<decimal>;" or  "&#x<hex>;" syntax`}var gr;!function(n){n.HEX="hexadecimal",n.DEC="decimal"}(gr||(gr={}));class Di{constructor(e){this.error=e}}class ld{constructor(e,t,s){this._getTagDefinition=t,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=s.tokenizeExpansionForms||!1,this._interpolationConfig=s.interpolationConfig||he,this._leadingTriviaCodePoints=s.leadingTriviaChars&&s.leadingTriviaChars.map(i=>i.codePointAt(0)||0);const r=s.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=s.escapedString?new vr(e,r):new an(e,r),this._preserveLineEndings=s.preserveLineEndings||!1,this._escapedString=s.escapedString||!1,this._i18nNormalizeLineEndingsInICUs=s.i18nNormalizeLineEndingsInICUs||!1;try{this._cursor.init()}catch(i){this.handleError(i)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(ad,"\n")}tokenize(){for(;this._cursor.peek()!==ie;){const e=this._cursor.clone();try{this._attemptCharCode(Zt)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(e):this._attemptCharCode(Un)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(Ke)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(t){this.handleError(t)}}this._beginToken(24),this._endToken([])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(function dd(n){return n!==be}(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===be){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,t=this._cursor.clone()){this._currentTokenStart=t,this._currentTokenType=e}_endToken(e,t){if(null===this._currentTokenStart)throw new bi("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(t));if(null===this._currentTokenType)throw new bi("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));const s={type:this._currentTokenType,parts:e,sourceSpan:(null!=t?t:this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(s),this._currentTokenStart=null,this._currentTokenType=null,s}_createError(e,t){this._isInExpansionForm()&&(e+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');const s=new bi(e,this._currentTokenType,t);return this._currentTokenStart=null,this._currentTokenType=null,new Di(s)}handleError(e){if(e instanceof Ni&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),!(e instanceof Di))throw e;this.errors.push(e.error)}_attemptCharCode(e){return this._cursor.peek()===e&&(this._cursor.advance(),!0)}_attemptCharCodeCaseInsensitive(e){return!!function fd(n,e){return mu(n)===mu(e)}(this._cursor.peek(),e)&&(this._cursor.advance(),!0)}_requireCharCode(e){const t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(on(this._cursor.peek()),this._cursor.getSpan(t))}_attemptStr(e){const t=e.length;if(this._cursor.charsLeft()<t)return!1;const s=this._cursor.clone();for(let r=0;r<t;r++)if(!this._attemptCharCode(e.charCodeAt(r)))return this._cursor=s,!1;return!0}_attemptStrCaseInsensitive(e){for(let t=0;t<e.length;t++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(t)))return!1;return!0}_requireStr(e){const t=this._cursor.clone();if(!this._attemptStr(e))throw this._createError(on(this._cursor.peek()),this._cursor.getSpan(t))}_attemptCharCodeUntilFn(e){for(;!e(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(e,t){const s=this._cursor.clone();if(this._attemptCharCodeUntilFn(e),this._cursor.diff(s)<t)throw this._createError(on(this._cursor.peek()),this._cursor.getSpan(s))}_attemptUntilChar(e){for(;this._cursor.peek()!==e;)this._cursor.advance()}_readChar(){const e=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),e}_consumeEntity(e){this._beginToken(9);const t=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(35)){const s=this._attemptCharCode(120)||this._attemptCharCode(88),r=this._cursor.clone();if(this._attemptCharCodeUntilFn(pd),this._cursor.peek()!=Xe){this._cursor.advance();const o=s?gr.HEX:gr.DEC;throw this._createError(function ud(n,e){return`Unable to parse entity "${e}" - ${n} character reference entities must end with ";"`}(o,this._cursor.getChars(t)),this._cursor.getSpan())}const i=this._cursor.getChars(r);this._cursor.advance();try{const o=parseInt(i,s?16:10);this._endToken([String.fromCharCode(o),this._cursor.getChars(t)])}catch{throw this._createError(du(this._cursor.getChars(t)),this._cursor.getSpan())}}else{const s=this._cursor.clone();if(this._attemptCharCodeUntilFn(hd),this._cursor.peek()!=Xe)this._beginToken(e,t),this._cursor=s,this._endToken(["&"]);else{const r=this._cursor.getChars(s);this._cursor.advance();const i=mr[r];if(!i)throw this._createError(du(r),this._cursor.getSpan(t));this._endToken([i,`&${r};`])}}}_consumeRawText(e,t){this._beginToken(e?6:7);const s=[];for(;;){const r=this._cursor.clone(),i=t();if(this._cursor=r,i)break;e&&38===this._cursor.peek()?(this._endToken([this._processCarriageReturns(s.join(""))]),s.length=0,this._consumeEntity(6),this._beginToken(6)):s.push(this._readChar())}this._endToken([this._processCarriageReturns(s.join(""))])}_consumeComment(e){this._beginToken(10,e),this._requireCharCode(Un),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("--\x3e")),this._beginToken(11),this._requireStr("--\x3e"),this._endToken([])}_consumeCdata(e){this._beginToken(12,e),this._requireStr("CDATA["),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(18,e);const t=this._cursor.clone();this._attemptUntilChar(at);const s=this._cursor.getChars(t);this._cursor.advance(),this._endToken([s])}_consumePrefixAndName(){const e=this._cursor.clone();let s,t="";for(;58!==this._cursor.peek()&&!cd(this._cursor.peek());)this._cursor.advance();58===this._cursor.peek()?(t=this._cursor.getChars(e),this._cursor.advance(),s=this._cursor.clone()):s=e,this._requireCharCodeUntilFn(fu,""===t?0:1);return[t,this._cursor.getChars(s)]}_consumeTagOpen(e){let t,s,r;try{if(!ii(this._cursor.peek()))throw this._createError(on(this._cursor.peek()),this._cursor.getSpan(e));for(r=this._consumeTagOpenStart(e),s=r.parts[0],t=r.parts[1],this._attemptCharCodeUntilFn(fe);this._cursor.peek()!==Ke&&this._cursor.peek()!==at&&this._cursor.peek()!==Zt&&this._cursor.peek()!==ie;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(fe),this._attemptCharCode(es)&&(this._attemptCharCodeUntilFn(fe),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(fe);this._consumeTagOpenEnd()}catch(o){if(o instanceof Di)return void(r?r.type=4:(this._beginToken(5,e),this._endToken(["<"])));throw o}const i=this._getTagDefinition(t).getContentType(s);i===Se.RAW_TEXT?this._consumeRawTextWithTagClose(s,t,!1):i===Se.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(s,t,!0)}_consumeRawTextWithTagClose(e,t,s){this._consumeRawText(s,()=>!!(this._attemptCharCode(Zt)&&this._attemptCharCode(Ke)&&(this._attemptCharCodeUntilFn(fe),this._attemptStrCaseInsensitive(t)))&&(this._attemptCharCodeUntilFn(fe),this._attemptCharCode(at))),this._beginToken(3),this._requireCharCodeUntilFn(r=>r===at,3),this._cursor.advance(),this._endToken([e,t])}_consumeTagOpenStart(e){this._beginToken(0,e);const t=this._consumePrefixAndName();return this._endToken(t)}_consumeAttributeName(){const e=this._cursor.peek();if(e===zs||e===Gs)throw this._createError(on(e),this._cursor.getSpan());this._beginToken(14);const t=this._consumePrefixAndName();this._endToken(t)}_consumeAttributeValue(){if(this._cursor.peek()===zs||this._cursor.peek()===Gs){const t=this._cursor.peek();this._consumeQuote(t);const s=()=>this._cursor.peek()===t;this._consumeWithInterpolation(16,17,s,s),this._consumeQuote(t)}
1else{const t=()=>fu(this._cursor.peek());this._consumeWithInterpolation(16,17,t,t)}}_consumeQuote(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){const e=this._attemptCharCode(Ke)?2:1;this._beginToken(e),this._requireCharCode(at),this._endToken([])}_consumeTagClose(e){this._beginToken(3,e),this._attemptCharCodeUntilFn(fe);const t=this._consumePrefixAndName();this._attemptCharCodeUntilFn(fe),this._requireCharCode(at),this._endToken(t)}_consumeExpansionFormStart(){this._beginToken(19),this._requireCharCode(ut),this._endToken([]),this._expansionCaseStack.push(19),this._beginToken(7);const e=this._readUntil(44),t=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([t]);else{const r=this._endToken([e]);t!==e&&this.nonNormalizedIcuExpressions.push(r)}this._requireCharCode(44),this._attemptCharCodeUntilFn(fe),this._beginToken(7);const s=this._readUntil(44);this._endToken([s]),this._requireCharCode(44),this._attemptCharCodeUntilFn(fe)}_consumeExpansionCaseStart(){this._beginToken(20);const e=this._readUntil(ut).trim();this._endToken([e]),this._attemptCharCodeUntilFn(fe),this._beginToken(21),this._requireCharCode(ut),this._endToken([]),this._attemptCharCodeUntilFn(fe),this._expansionCaseStack.push(21)}_consumeExpansionCaseEnd(){this._beginToken(22),this._requireCharCode(be),this._endToken([]),this._attemptCharCodeUntilFn(fe),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(23),this._requireCharCode(be),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,t,s,r){this._beginToken(e);const i=[];for(;!s();){const o=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(i.join(""))],o),i.length=0,this._consumeInterpolation(t,o,r),this._beginToken(e)):38===this._cursor.peek()?(this._endToken([this._processCarriageReturns(i.join(""))]),i.length=0,this._consumeEntity(e),this._beginToken(e)):i.push(this._readChar())}this._inInterpolation=!1,this._endToken([this._processCarriageReturns(i.join(""))])}_consumeInterpolation(e,t,s){const r=[];this._beginToken(e,t),r.push(this._interpolationConfig.start);const i=this._cursor.clone();let o=null,a=!1;for(;this._cursor.peek()!==ie&&(null===s||!s());){const l=this._cursor.clone();if(this._isTagStart())return this._cursor=l,r.push(this._getProcessedChars(i,l)),void this._endToken(r);if(null===o){if(this._attemptStr(this._interpolationConfig.end))return r.push(this._getProcessedChars(i,l)),r.push(this._interpolationConfig.end),void this._endToken(r);this._attemptStr("//")&&(a=!0)}const c=this._cursor.peek();this._cursor.advance(),92===c?this._cursor.advance():c===o?o=null:!a&&null===o&&oi(c)&&(o=c)}r.push(this._getProcessedChars(i,this._cursor)),this._endToken(r)}_getProcessedChars(e,t){return this._processCarriageReturns(t.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===ie||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===be&&this._isInExpansionCase()))}
1_isTagStart(){if(this._cursor.peek()===Zt){const e=this._cursor.clone();e.advance();const t=e.peek();if(bt<=t&&t<=Qs||ts<=t&&t<=Hn||t===Ke||33===t)return!0}return!1}_readUntil(e){const t=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(t)}_isInExpansionCase(){return this._expansionCaseStack.length>0&&21===this._expansionCaseStack[this._expansionCaseStack.length-1]}_isInExpansionForm(){return this._expansionCaseStack.length>0&&19===this._expansionCaseStack[this._expansionCaseStack.length-1]}isExpansionFormStart(){if(this._cursor.peek()!==ut)return!1;if(this._interpolationConfig){const e=this._cursor.clone(),t=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!t}return!0}}function fe(n){return!ri(n)||n===ie}function fu(n){return ri(n)||n===at||n===Zt||n===Ke||n===zs||n===Gs||n===es||n===ie}function cd(n){return(n<bt||Qs<n)&&(n<ts||Hn<n)&&(n<ei||n>da)}function pd(n){return n===Xe||n===ie||!function Bp(n){return n>=bt&&n<=ni||n>=ts&&n<=Np||lt(n)}(n)}function hd(n){return n===Xe||n===ie||!ii(n)}function mu(n){return n>=bt&&n<=Qs?n-bt+ts:n}class an{constructor(e,t){if(e instanceof an){this.file=e.file,this.input=e.input,this.end=e.end;const s=e.state;this.state={peek:s.peek,offset:s.offset,line:s.line,column:s.column}}else{if(!t)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=e,this.input=e.content,this.end=t.endPos,this.state={peek:-1,offset:t.startPos,line:t.startLine,column:t.startCol}}}clone(){return new an(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(e){return this.state.offset-e.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(e,t){let s=e=e||this;if(t)for(;this.diff(e)>0&&-1!==t.indexOf(e.peek());)s===e&&(e=e.clone()),e.advance();const r=this.locationFromCursor(e),i=this.locationFromCursor(this),o=s!==e?this.locationFromCursor(s):r;return new W(r,i,o)}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new Ni('Unexpected character "EOF"',this);const t=this.charAt(e.offset);t===It?(e.line++,e.column=0):Sa(t)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?ie:this.charAt(e.offset)}locationFromCursor(e){return new ct(e.file,e.state.offset,e.state.line,e.state.column)}}class vr extends an{constructor(e,t){e instanceof vr?(super(e),this.internalState={...e.internalState}):(super(e,t),this.internalState=this.state)}
1advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new vr(this)}getChars(e){const t=e.clone();let s="";for(;t.internalState.offset<this.internalState.offset;)s+=String.fromCodePoint(t.peek()),t.advance();return s}processEscapeSequence(){const e=()=>this.internalState.peek;if(92===e())if(this.internalState={...this.state},this.advanceState(this.internalState),e()===fa)this.state.peek=It;else if(e()===ma)this.state.peek=Jr;else if(e()===Ea)this.state.peek=oa;else if(e()===ga)this.state.peek=Qr;else if(98===e())this.state.peek=8;else if(e()===ni)this.state.peek=aa;else if(117===e())if(this.advanceState(this.internalState),e()===ut){this.advanceState(this.internalState);const t=this.clone();let s=0;for(;e()!==be;)this.advanceState(this.internalState),s++;this.state.peek=this.decodeHexDigits(t,s)}else{const t=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(t,4)}else if(120===e()){this.advanceState(this.internalState);const t=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(t,2)}else if(wa(e())){let t="",s=0,r=this.clone();for(;wa(e())&&s<3;)r=this.clone(),t+=String.fromCodePoint(e()),this.advanceState(this.internalState),s++;this.state.peek=parseInt(t,8),this.internalState=r.internalState}else Sa(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,t){const s=this.input.slice(e.internalState.offset,e.internalState.offset+t),r=parseInt(s,16);if(isNaN(r))throw e.state=e.internalState,new Ni("Invalid hexadecimal escape sequence",e);return r}}class Ni{constructor(e,t){this.msg=e,this.cursor=t}}class Ce extends ss{static create(e,t,s){return new Ce(e,t,s)}constructor(e,t,s){super(t,s),this.elementName=e}}class ms{constructor(e,t){this.rootNodes=e,this.errors=t}}class gu{constructor(e){this.getTagDefinition=e}parse(e,t,s){const r=function od(n,e,t,s={}){const r=new ld(new jn(n,e),t,s);return r.tokenize(),new id(function md(n){const e=[];let t;for(let s=0;s<n.length;s++){const r=n[s];t&&5===t.type&&5===r.type||t&&16===t.type&&16===r.type?(t.parts[0]+=r.parts[0],t.sourceSpan.end=r.sourceSpan.end):(t=r,e.push(t))}return e}(r.tokens),r.errors,r.nonNormalizedIcuExpressions)}(e,t,this.getTagDefinition,s),i=new Pi(r.tokens,this.getTagDefinition);return i.build(),new ms(i.rootNodes,r.errors.concat(i.errors))}}class Pi{constructor(e,t){this.tokens=e,this.getTagDefinition=t,this._index=-1,this._elementStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;24!==this._peek.type;)0===this._peek.type||4===this._peek.type?this._consumeStartTag(this._advance()):3===this._peek.type?this._consumeEndTag(this._advance()):12===this._peek.type?(this._closeVoidElement(),this._consumeCdata(this._advance())):10===this._peek.type?(this._closeVoidElement(),this._consumeComment(this._advance())):5===this._peek.type||7===this._peek.type||6===this._peek.type?(this._closeVoidElement(),this._consumeText(this._advance())):19===this._peek.type?this._consumeExpansion(this._advance()):this._advance()}_advance(){const e=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],e}_advanceIf(e){return this._peek.type===e?this._advance():null}_consumeCdata(e){this._consumeText(this._advance()),this._advanceIf(13)}_consumeComment(e){const t=this._advanceIf(7);this._advanceIf(11);const s=null!=t?t.parts[0].trim():null;this._addToParent(new ds(s,e.sourceSpan))}_consumeExpansion(e){const t=this._advance(),s=this._advance(),r=[];for(;20===this._peek.type;){const o=this._parseExpansionCase();if(!o)return;r.push(o)}if(23!==this._peek.type)return void this.errors.push(Ce.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));const i=new W(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new ps(t.parts[0],s.parts[0],r,i,t.sourceSpan)),this._advance()}_parseExpansionCase(){const e=this._advance();if(21!==this._peek.type)return this.errors.push(Ce.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;const t=this._advance(),s=this._collectExpansionExpTokens(t);if(!s)return null;const r=this._advance();s.push({type:24,parts:[],sourceSpan:r.sourceSpan});const i=new Pi(s,this.getTagDefinition);if(i.build(),i.errors.length>0)return this.errors=this.errors.concat(i.errors),null;const o=new W(e.sourceSpan.start,r.sourceSpan.end,e.sourceSpan.fullStart),a=new W(t.sourceSpan.start,r.sourceSpan.end,t.sourceSpan.fullStart);return new Ti(e.parts[0],i.rootNodes,o,e.sourceSpan,a)}_collectExpansionExpTokens(e){const t=[],s=[21];for(;;){if((19===this._peek.type||21===this._peek.type)&&s.push(this._peek.type),22===this._peek.type){if(!vu(s,21))return this.errors.push(Ce.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(s.pop(),0===s.length)return t}if(23===this._peek.type){if(!vu(s,19))return this.errors.push(Ce.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;s.pop()}
1if(24===this._peek.type)return this.errors.push(Ce.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;t.push(this._advance())}}_consumeText(e){const t=[e],s=e.sourceSpan;let r=e.parts[0];if(r.length>0&&"\n"===r[0]){const i=this._getParentElement();null!=i&&0===i.children.length&&this.getTagDefinition(i.name).ignoreFirstLf&&(r=r.substring(1),t[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[r]})}for(;8===this._peek.type||5===this._peek.type||9===this._peek.type;)e=this._advance(),t.push(e),8===e.type?r+=e.parts.join("").replace(/&([^;]+);/g,Eu):9===e.type?r+=e.parts[0]:r+=e.parts.join("");if(r.length>0){const i=e.sourceSpan;this._addToParent(new cs(r,new W(s.start,i.end,s.fullStart,s.details),t))}}_closeVoidElement(){const e=this._getParentElement();e&&this.getTagDefinition(e.name).isVoid&&this._elementStack.pop()}_consumeStartTag(e){const[t,s]=e.parts,r=[];for(;14===this._peek.type;)r.push(this._consumeAttr(this._advance()));const i=this._getElementFullName(t,s,this._getParentElement());let o=!1;if(2===this._peek.type){this._advance(),o=!0;const h=this.getTagDefinition(i);h.canSelfClose||null!==hr(i)||h.isVoid||this.errors.push(Ce.create(i,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else 1===this._peek.type&&(this._advance(),o=!1);const a=this._peek.sourceSpan.fullStart,l=new W(e.sourceSpan.start,a,e.sourceSpan.fullStart),c=new W(e.sourceSpan.start,a,e.sourceSpan.fullStart),p=new hs(i,r,[],l,c,void 0);this._pushElement(p),o?this._popElement(i,l):4===e.type&&(this._popElement(i,null),this.errors.push(Ce.create(i,l,`Opening tag "${i}" not terminated.`)))}_pushElement(e){const t=this._getParentElement();t&&this.getTagDefinition(t.name).isClosedByChild(e.name)&&this._elementStack.pop(),this._addToParent(e),this._elementStack.push(e)}_consumeEndTag(e){const t=this._getElementFullName(e.parts[0],e.parts[1],this._getParentElement());if(this.getTagDefinition(t).isVoid)this.errors.push(Ce.create(t,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popElement(t,e.sourceSpan)){const s=`Unexpected closing tag "${t}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(Ce.create(t,e.sourceSpan,s))}}_popElement(e,t){let s=!1;for(let r=this._elementStack.length-1;r>=0;r--){const i=this._elementStack[r];if(i.name===e)return i.endSourceSpan=t,i.sourceSpan.end=null!==t?t.end:i.sourceSpan.end,this._elementStack.splice(r,this._elementStack.length-r),!s;this.getTagDefinition(i.name).closedByParent||(s=!0)}return!1}_consumeAttr(e){const t=dr(e.parts[0],e.parts[1]);let s=e.sourceSpan.end;15===this._peek.type&&this._advance();let r="";const i=[];let o,a;if(16===this._peek.type)for(o=this._peek.sourceSpan,a=this._peek.sourceSpan.end;16===this._peek.type||17===this._peek.type||9===this._peek.type;){const p=this._advance();i.push(p),17===p.type?r+=p.parts.join("").replace(/&([^;]+);/g,Eu):9===p.type?r+=p.parts[0]:r+=p.parts.join(""),a=s=p.sourceSpan.end}15===this._peek.type&&(s=this._advance().sourceSpan.end);const c=o&&a&&new W(o.start,a,o.fullStart);return new rn(t,r,new W(e.sourceSpan.start,s,e.sourceSpan.fullStart),e.sourceSpan,c,i.length>0?i:void 0,void 0)}_getParentElement(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null}_addToParent(e){const t=this._getParentElement();null!=t?t.children.push(e):this.rootNodes.push(e)}_getElementFullName(e,t,s){if(""===e&&(""===(e=this.getTagDefinition(t).implicitNamespacePrefix||"")&&null!=s)){const r=we(s.name)[1];this.getTagDefinition(r).preventNamespaceInheritance||(e=hr(s.name))}return dr(e,t)}}function vu(n,e){return n.length>0&&n[n.length-1]===e}function Eu(n,e){return void 0!==mr[e]?mr[e]||n:/^#x[a-f0-9]+$/i.test(e)?String.fromCodePoint(parseInt(e.slice(2),16)):/^#\d+$/.test(e)?String.fromCodePoint(parseInt(e.slice(1),10)):n}class Li extends gu{constructor(){super(Ii)}parse(e,t,s){return super.parse(e,t,s)}}
1const _u="ngPreserveWhitespaces",gd=new Set(["pre","template","textarea","script","style"]),yu=" \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff",vd=new RegExp(`[^${yu}]`),Ed=new RegExp(`[${yu}]{2,}`,"g");function xu(n){return n.replace(new RegExp(hu,"g")," ")}class Su{visitElement(e,t){return gd.has(e.name)||function _d(n){return n.some(e=>e.name===_u)}(e.attrs)?new hs(e.name,P(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n):new hs(e.name,e.attrs,function xd(n,e){const t=[];return e.forEach((s,r)=>{const i={prev:e[r-1],next:e[r+1]},o=s.visit(n,i);o&&t.push(o)}),t}(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}visitAttribute(e,t){return e.name!==_u?e:null}visitText(e,t){const s=e.value.match(vd),r=t&&(t.prev instanceof ps||t.next instanceof ps);if(s||r){const i=e.tokens.map(a=>5===a.type?function yd({type:n,parts:e,sourceSpan:t}){return{type:n,parts:[wu(e[0])],sourceSpan:t}}(a):a),o=wu(e.value);return new cs(o,e.sourceSpan,i,e.i18n)}return null}visitComment(e,t){return e}visitExpansion(e,t){return e}visitExpansionCase(e,t){return e}}function wu(n){return xu(n).replace(Ed," ")}function Er(n,e=!1){return G(Object.keys(n).map(t=>({key:t,quoted:e,value:n[t]})))}const Cu=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","object|codebase","object|data"]);function Au(n,e){return n=n.toLowerCase(),e=e.toLowerCase(),Cu.has(n+"|"+e)||Cu.has("*|"+e)}const Mi="animate-";class Td{constructor(e,t,s,r){this._exprParser=e,this._interpolationConfig=t,this._schemaRegistry=s,this.errors=r}get interpolationConfig(){return this._interpolationConfig}createBoundHostProperties(e,t){const s=[];for(const r of Object.keys(e)){const i=e[r];"string"==typeof i?this.parsePropertyBinding(r,i,!0,t,t.start.offset,void 0,[],s,t):this._reportError(`Value of the host property binding "${r}" needs to be a string representing an expression but got "${i}" (${typeof i})`,t)}return s}createDirectiveHostEventAsts(e,t){const s=[];for(const r of Object.keys(e)){const i=e[r];"string"==typeof i?this.parseEvent(r,i,!1,t,t,[],s,t):this._reportError(`Value of the host listener "${r}" needs to be a string representing an expression but got "${i}" (${typeof i})`,t)}return s}parseInterpolation(e,t,s){const r=t.start.toString(),i=t.fullStart.offset;try{const o=this._exprParser.parseInterpolation(e,r,i,s,this._interpolationConfig);return o&&this._reportExpressionParserErrors(o.errors,t),o}catch(o){return this._reportError(`${o}`,t),this._exprParser.wrapLiteralPrimitive("ERROR",r,i)}}parseInterpolationExpression(e,t){const s=t.start.toString(),r=t.start.offset;try{const i=this._exprParser.parseInterpolationExpression(e,s,r);return i&&this._reportExpressionParserErrors(i.errors,t),i}catch(i){return this._reportError(`${i}`,t),this._exprParser.wrapLiteralPrimitive("ERROR",s,r)}}parseInlineTemplateBinding(e,t,s,r,i,o,a,l){const c=s.start.offset+"*".length,p=this._parseTemplateBindings(e,t,s,c,r);for(const h of p){const m=ht(s,h.sourceSpan),g=h.key.source,v=ht(s,h.key.span);if(h instanceof sr){const _=h.value?h.value.source:"$implicit",x=h.value?ht(s,h.value.span):void 0;a.push(new Ba(g,_,m,v,x))}else if(h.value){const _=l?m:s,x=ht(s,h.value.ast.sourceSpan);this._parsePropertyAst(g,h.value,_,v,x,i,o)}else i.push([g,""]),this.parseLiteralAttr(g,null,v,r,void 0,i,o,v)}}_parseTemplateBindings(e,t,s,r,i){const o=s.start.toString();try{const a=this._exprParser.parseTemplateBindings(e,t,o,r,i);return this._reportExpressionParserErrors(a.errors,s),a.warnings.forEac
1h(l=>{this._reportError(l,s,Fe.WARNING)}),a.templateBindings}catch(a){return this._reportError(`${a}`,s),[]}}parseLiteralAttr(e,t,s,r,i,o,a,l){Ri(e)?(e=e.substring(1),void 0!==l&&(l=ht(l,new xe(l.start.offset+1,l.end.offset))),t&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',s,Fe.ERROR),this._parseAnimation(e,t,s,r,l,i,o,a)):a.push(new nr(e,this._exprParser.wrapLiteralPrimitive(t,"",r),pt.LITERAL_ATTR,s,l,i))}parsePropertyBinding(e,t,s,r,i,o,a,l,c){0===e.length&&this._reportError("Property name is missing in binding",r);let p=!1;e.startsWith(Mi)?(p=!0,e=e.substring(Mi.length),void 0!==c&&(c=ht(c,new xe(c.start.offset+Mi.length,c.end.offset)))):Ri(e)&&(p=!0,e=e.substring(1),void 0!==c&&(c=ht(c,new xe(c.start.offset+1,c.end.offset)))),p?this._parseAnimation(e,t,r,i,c,o,a,l):this._parsePropertyAst(e,this._parseBinding(t,s,o||r,i),r,c,o,a,l)}parsePropertyInterpolation(e,t,s,r,i,o,a,l){const c=this.parseInterpolation(t,r||s,l);return!!c&&(this._parsePropertyAst(e,c,s,a,r,i,o),!0)}_parsePropertyAst(e,t,s,r,i,o,a){o.push([e,t.source]),a.push(new nr(e,t,pt.DEFAULT,s,r,i))}_parseAnimation(e,t,s,r,i,o,a,l){0===e.length&&this._reportError("Animation trigger is missing",s);const c=this._parseBinding(t||"undefined",!1,o||s,r);a.push([e,c.source]),l.push(new nr(e,c,pt.ANIMATION,s,i,o))}_parseBinding(e,t,s,r){const i=(s&&s.start||"(unknown)").toString();try{const o=t?this._exprParser.parseSimpleBinding(e,i,r,this._interpolationConfig):this._exprParser.parseBinding(e,i,r,this._interpolationConfig);return o&&this._reportExpressionParserErrors(o.errors,s),o}catch(o){return this._reportError(`${o}`,s),this._exprParser.wrapLiteralPrimitive("ERROR",i,r)}}createBoundElementProperty(e,t,s=!1,r=!0){if(t.isAnimation)return new hi(t.name,4,V.NONE,t.expression,null,t.sourceSpan,t.keySpan,t.valueSpan);let o,i=null,a=null;const l=t.name.split(".");let c;if(l.length>1)if("attr"==l[0]){a=l.slice(1).join("."),s||this._validatePropertyOrAttributeName(a,t.sourceSpan,!0),c=ki(this._schemaRegistry,e,a,!0);const p=a.indexOf(":");if(p>-1){const h=a.substring(0,p),m=a.substring(p+1);a=dr(h,m)}o=1}else"class"==l[0]?(a=l[1],o=2,c=[V.NONE]):"style"==l[0]&&(i=l.length>2?l[2]:null,a=l[1],o=3,c=[V.STYLE]);if(null===a){const p=this._schemaRegistry.getMappedPropName(t.name);a=r?p:t.name,c=ki(this._schemaRegistry,e,p,!1),o=0,s||this._validatePropertyOrAttributeName(p,t.sourceSpan,!1)}return new hi(a,o,c[0],t.expression,i,t.sourceSpan,t.keySpan,t.valueSpan)}parseEvent(e,t,s,r,i,o,a,l){0===e.length&&this._reportError("Event name is missing in binding",r),Ri(e)?(e=e.slice(1),void 0!==l&&(l=ht(l,new xe(l.start.offset+1,l.end.offset))),this._parseAnimationEvent(e,t,s,r,i,a,l)):this._parseRegularEvent(e,t,s,r,i,o,a,l)}calcPossibleSecurityContexts(e,t,s){const r=this._schemaRegistry.getMappedPropName(t);return ki(this._schemaRegistry,e,r,s)}_parseAnimationEvent(e,t,s,r,i,o,a){const l=function Ac(n,e){return Do(n,".",e)}(e,[e,""]),c=l[0],p=l[1].toLowerCase(),h=this._parseAction(t,s,i);o.push(new pi(c,p,1,h,r,i,a)),0===c.length&&this._reportError("Animation event name is missing in binding",r),p?"start"!==p&&"done"!==p&&this._reportError(`The provided animation output phase value "${p}" for "@${c}" is not supported (use start or done)`,r):this._reportError(`The animation trigger output event (@${c}) is missing its phase value name (start or done are currently supported)`,r)}_parseRegularEvent(e,t,s,r,i,o,a,l){const[c,p]=function Cc(n,e){return Do(n,":",e)}(e,[null,e]),h=this._parseAction(t,s,i);o.push([e,h.source]),a.push(new pi(p,c,0,h,r,i,l))}_parseAction(e,t,s){const r=(s&&s.start||"(unknown").toString(),i=s&&s.start?s.start.offset:0;try{const o=this._exprParser.parseAction(e,t,r,i,this._interpolationConfig);return o&&this._reportExpressionParserErrors(o.errors,s),!o||o.ast instanceof de?(this._reportError("Empty expressions are not allowed",s),this._exprParser.wrapLiteralPrimitive("ERROR",r,i)):o}catch(o){return this._reportError(`${o}`,s),this._exprParser.wrapLiteralPrimitive("ERROR",r,i)}}_reportError(e,t,s=Fe.ERROR){this.errors.push(new ss(t,e,s))}_reportExpressionParserErrors(e,t){for(const s of e)this._reportError(s.message,t)}_validatePropertyOrAttributeName(e,t,s){const r=s?this._schemaRegistry.validateAttribute(e):this._schemaRegistry.validateProperty(e);r.error&&this._reportError(r.msg,t,Fe.ERROR)}}function Ri(n){return"@"==n[0]}function ki(n,e,t,s){const r=[];return Ue.parse(e).forEach(i=>
1{const o=i.element?[i.element]:n.allKnownElementNames(),a=new Set(i.notSelectors.filter(c=>c.isElementSelector()).map(c=>c.element)),l=o.filter(c=>!a.has(c));r.push(...l.map(c=>n.securityContext(c,t,s)))}),0===r.length?[V.NONE]:Array.from(new Set(r)).sort()}function ht(n,e){const t=e.start-n.start.offset,s=e.end-n.end.offset;return new W(n.start.moveBy(t),n.end.moveBy(s),n.fullStart.moveBy(t),n.details)}const bd=/^([^:/?#]+):/,Dd="select",Nd="link",Pd="rel",Ld="href",Md="stylesheet",Rd="style",kd="script",Bd="ngNonBindable",Fd="ngProjectAs";function Iu(n){let e=null,t=null,s=null,r=!1,i="";n.attrs.forEach(l=>{const c=l.name.toLowerCase();c==Dd?e=l.value:c==Ld?t=l.value:c==Pd?s=l.value:l.name==Bd?r=!0:l.name==Fd&&l.value.length>0&&(i=l.value)}),e=function Od(n){return null===n||0===n.length?"*":n}(e);const o=n.name.toLowerCase();let a=ae.OTHER;return pr(o)?a=ae.NG_CONTENT:o==Rd?a=ae.STYLE:o==kd?a=ae.SCRIPT:o==Nd&&s==Md&&(a=ae.STYLESHEET),new $d(a,e,t,r,i)}var ae;!function(n){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"}(ae||(ae={}));class $d{constructor(e,t,s,r,i){this.type=e,this.selectAttr=t,this.hrefAttr=s,this.nonBindable=r,this.projectAs=i}}const Vd=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,dt_BANANA_BOX={start:"[(",end:")]"},dt_PROPERTY={start:"[",end:"]"},dt_EVENT={start:"(",end:")"};class Hd{constructor(e,t){this.bindingParser=e,this.options=t,this.errors=[],this.styles=[],this.styleUrls=[],this.ngContentSelectors=[],this.commentNodes=[],this.inI18nBlock=!1}visitElement(e){const t=qs(e.i18n);t&&(this.inI18nBlock&&this.reportError("Cannot mark an element as translatable inside of a translatable section. Please remove the nested i18n marker.",e.sourceSpan),this.inI18nBlock=!0);const s=Iu(e);if(s.type===ae.SCRIPT)return null;if(s.type===ae.STYLE){const x=function Kd(n){return 1===n.children.length&&n.children[0]instanceof cs?n.children[0].value:null}(e);return null!==x&&this.styles.push(x),null}if(s.type===ae.STYLESHEET&&function Id(n){if(null==n||0===n.length||"/"==n[0])return!1;const e=n.match(bd);return null===e||"package"==e[1]||"asset"==e[1]}(s.hrefAttr))return this.styleUrls.push(s.hrefAttr),null;const r=uu(e.name),i=[],o=[],a=[],l=[],c=[],p={},h=[],m=[];let g=!1;for(const x of e.attrs){let w=!1;const y=Ru(x.name);let C=!1;if(x.i18n&&(p[x.name]=x.i18n),y.startsWith("*")){g&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",x.sourceSpan),C=!0,g=!0;const B=x.value,Q=y.substring("*".length),Pe=[],mt=x.valueSpan?x.valueSpan.start.offset:x.sourceSpan.start.offset+x.name.length;this.bindingParser.parseInlineTemplateBinding(Q,B,x.sourceSpan,mt,[],h,Pe,!0),m.push(...Pe.map(Le=>new Or(Le.name,Le.value,Le.sourceSpan,Le.keySpan,Le.valueSpan)))}else w=this.parseAttribute(r,x,[],i,o,a,l);!w&&!C&&c.push(this.visitAttribute(x))}const v=P(s.nonBindable?Wd:this,e.children);let _;if(s.type===ae.NG_CONTENT){e.children&&!e.children.every(y=>function Gd(n){return n instanceof cs&&0==n.value.trim().length}(y)||function zd(n){return n instanceof ds}(y))&&this.reportError("<ng-content> element cannot have content.",e.sourceSpan);const x=s.selectAttr,w=e.attrs.map(y=>this.visitAttribute(y));_=new Ho(x,w,e.sourceSpan,e.i18n),this.ngContentSelectors.push(x)}else if(r){const x=this.extractAttributes(e.name,i,p);_=new Be(e.name,c,x.bound,o,[],v,l,a,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{const x=this.extractAttributes(e.name,i,p);_=new Xt(e.name,c,x.bound,o,v,l,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}if(g){const x=this.extractAttributes("ng-template",h,p),w=[];x.literal.forEach(Q=>w.push(Q)),x.bound.forEach(Q=>w.push(Q));const y=_ instanceof Xt?{attributes:_.attributes,inputs:_.inputs,outputs:_.outputs}:{attributes:[],inputs:[],outputs:[]},C=r&&t?void 0:e.i18n,B=_ instanceof Be?null:_.name;_=new Be(B,y.attributes,y.inputs,y.outputs,w,[_],[],m,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,C)}return t&&(this.inI18nBlock=!1),_}visitAttribute(e){return new Mn(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return this._visitTextWithInterpolation(e.value,e.sourceSpan,e.tokens,e.i18n)}visitExpansion(e){if(!e.i18n)return null;if(!qs(e.i18n))throw new Error(`Invalid type "${e.i18n.constructor}" for "i18n" property of ${e.sourceSpan.toString()}. Expected a "Message"`);const t=e.i18n,s={},r={};
1return Object.keys(t.placeholders).forEach(i=>{const o=t.placeholders[i];if(i.startsWith("VAR_")){const a=i.trim(),l=this.bindingParser.parseInterpolationExpression(o.text,o.sourceSpan);s[a]=new Ln(l,o.sourceSpan)}else r[i]=this._visitTextWithInterpolation(o.text,o.sourceSpan,null)}),new Vr(s,r,e.sourceSpan,t)}visitExpansionCase(e){return null}visitComment(e){return this.options.collectCommentNodes&&this.commentNodes.push(new jc(e.value||"",e.sourceSpan)),null}extractAttributes(e,t,s){const r=[],i=[];return t.forEach(o=>{const a=s[o.name];if(o.isLiteral)i.push(new Mn(o.name,o.expression.source||"",o.sourceSpan,o.keySpan,o.valueSpan,a));else{const l=this.bindingParser.createBoundElementProperty(e,o,!0,!1);r.push(Bs.fromBoundElementProperty(l,a))}}),{bound:r,literal:i}}parseAttribute(e,t,s,r,i,o,a){var l;const c=Ru(t.name),p=t.value,h=t.sourceSpan,m=t.valueSpan?t.valueSpan.start.offset:h.start.offset;function g(y,C,B){const Q=t.name.length-c.length,Pe=y.start.moveBy(C.length+Q),mt=Pe.moveBy(B.length);return new W(Pe,mt,Pe,B)}const v=c.match(Vd);if(v){if(null!=v[1]){const y=v[7],C=g(h,v[1],y);this.bindingParser.parsePropertyBinding(y,p,!1,h,m,t.valueSpan,s,r,C)}else if(v[2])if(e){const y=v[7],C=g(h,v[2],y);this.parseVariable(y,p,h,C,t.valueSpan,o)}else this.reportError('"let-" is only supported on ng-template elements.',h);else if(v[3]){const y=v[7],C=g(h,v[3],y);this.parseReference(y,p,h,C,t.valueSpan,a)}else if(v[4]){const y=[],C=v[7],B=g(h,v[4],C);this.bindingParser.parseEvent(C,p,!1,h,t.valueSpan||h,s,y,B),Bi(y,i)}else if(v[5]){const y=v[7],C=g(h,v[5],y);this.bindingParser.parsePropertyBinding(y,p,!1,h,m,t.valueSpan,s,r,C),this.parseAssignmentEvent(y,p,h,t.valueSpan,s,i,C)}else if(v[6]){const y=g(h,"",c);this.bindingParser.parseLiteralAttr(c,p,h,m,t.valueSpan,s,r,y)}return!0}let _=null;if(c.startsWith(dt_BANANA_BOX.start)?_=dt_BANANA_BOX:c.startsWith(dt_PROPERTY.start)?_=dt_PROPERTY:c.startsWith(dt_EVENT.start)&&(_=dt_EVENT),null!==_&&c.endsWith(_.end)&&c.length>_.start.length+_.end.length){const y=c.substring(_.start.length,c.length-_.end.length),C=g(h,_.start,y);if(_.start===dt_BANANA_BOX.start)this.bindingParser.parsePropertyBinding(y,p,!1,h,m,t.valueSpan,s,r,C),this.parseAssignmentEvent(y,p,h,t.valueSpan,s,i,C);else if(_.start===dt_PROPERTY.start)this.bindingParser.parsePropertyBinding(y,p,!1,h,m,t.valueSpan,s,r,C);else{const B=[];this.bindingParser.parseEvent(y,p,!1,h,t.valueSpan||h,s,B,C),Bi(B,i)}return!0}const x=g(h,"",c);return this.bindingParser.parsePropertyInterpolation(c,p,h,t.valueSpan,s,r,x,null!==(l=t.valueTokens)&&void 0!==l?l:null)}_visitTextWithInterpolation(e,t,s,r){const i=xu(e),o=this.bindingParser.parseInterpolation(i,t,s);return o?new Ln(o,t,r):new ks(i,t)}parseVariable(e,t,s,r,i,o){e.indexOf("-")>-1?this.reportError('"-" is not allowed in variable names',s):0===e.length&&this.reportError("Variable does not have a name",s),o.push(new Or(e,t,s,r,i))}parseReference(e,t,s,r,i,o){e.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',s):0===e.length?this.reportError("Reference does not have a name",s):o.some(a=>a.name===e)&&this.reportError(`Reference "#${e}" is defined more than once`,s),o.push(new jo(e,t,s,r,i))}parseAssignmentEvent(e,t,s,r,i,o,a){const l=[];this.bindingParser.parseEvent(`${e}Change`,`${t} =$event`,!0,s,r||s,i,l,a),Bi(l,o)}reportError(e,t,s=Fe.ERROR){this.errors.push(new ss(t,e,s))}}const Wd=new class jd{visitElement(e){const t=Iu(e);if(t.type===ae.SCRIPT||t.type===ae.STYLE||t.type===ae.STYLESHEET)return null;const s=P(this,e.children,null);return new Xt(e.name,P(this,e.attrs),[],[],s,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}visitComment(e){return null}visitAttribute(e){return new Mn(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return new ks(e.value,e.sourceSpan)}visitExpansion(e){return null}visitExpansionCase(e){return null}};function Ru(n){return/^data-/i.test(n)?n.substring(5):n}function Bi(n,e){e.push(...n.map(t=>Fs.fromParsedEvent(t)))}var Ve;!function(n){n[n.ELEMENT=0]="ELEMENT",n[n.TEMPLATE=1]="TEMPLATE"}(Ve||(Ve={}));class Fi{constructor(e,t,s=0,r=null,i,o){this.index=e,this.ref=t,this.level=s,this.templateIndex=r,this.meta=i,this.registry=o,this.bindings=new Set,this.placeholders=new Map,this.isEmitted=!1,this._unresolvedCtxCount=0,this._registry=o||function Xd(){return{getUniqueId:hp(),icus:new Map}}(),this.id=this._registry.getUniqueId()}appendTag(e,t,s,r){if(t.isVoid&&r)return;const i=t.isVoid||!r?t.startName:t.closeName,o={type:e,index:s,ctx:this.id,isVoid:t.isVoid,closed:r};Fn(this.placeholders,i,o)}get icus(){return this._registry.icus}get isRoot(){return 0===this.level}get isResolved(){return 0===this._unresolvedCtxCount}getSerializedPlaceholders(){const e=new Map;
1return this.placeholders.forEach((t,s)=>e.set(s,t.map(Yd))),e}appendBinding(e){this.bindings.add(e)}appendIcu(e,t){Fn(this._registry.icus,e,t)}appendBoundText(e){ea(e,this.bindings.size,this.id).forEach((s,r)=>Fn(this.placeholders,r,...s))}appendTemplate(e,t){this.appendTag(Ve.TEMPLATE,e,t,!1),this.appendTag(Ve.TEMPLATE,e,t,!0),this._unresolvedCtxCount++}appendElement(e,t,s){this.appendTag(Ve.ELEMENT,e,t,s)}appendProjection(e,t){this.appendTag(Ve.ELEMENT,e,t,!1),this.appendTag(Ve.ELEMENT,e,t,!0)}forkChildContext(e,t,s){return new Fi(e,this.ref,this.level+1,t,s,this._registry)}reconcileChildContext(e){["start","close"].forEach(s=>{const r=e.meta[`${s}Name`],o=(this.placeholders.get(r)||[]).find(Bu(this.id,e.templateIndex));o&&(o.ctx=e.id)}),e.placeholders.forEach((s,r)=>{const i=this.placeholders.get(r);if(!i)return void this.placeholders.set(r,s);const o=i.findIndex(Bu(e.id,e.templateIndex));if(o>=0){const a=r.startsWith("CLOSE");if(r.endsWith("NG-TEMPLATE"))i.splice(o+(a?0:1),0,...s);else{s[a?s.length-1:0].tmpl=i[o],i.splice(o,1,...s)}}else i.push(...s);this.placeholders.set(r,i)}),this._unresolvedCtxCount--}}function $i(n,e,t,s){return Bn(`${s?"/":""}${n}${e}`,t)}function ku(n,{index:e,ctx:t,isVoid:s},r){return s?$i(n,e,t)+$i(n,e,t,!0):$i(n,e,t,r)}function Bu(n,e){return t=>"object"==typeof t&&t.type===Ve.TEMPLATE&&t.index===e&&t.ctx===n}function Yd(n){const e=(s,r)=>ku("#",s,r),t=(s,r)=>ku("*",s,r);switch(n.type){case Ve.ELEMENT:return n.closed?e(n,!0)+(n.tmpl?t(n.tmpl,!0):""):n.tmpl?t(n.tmpl)+e(n)+(n.isVoid?t(n.tmpl,!0):""):e(n);case Ve.TEMPLATE:return t(n,n.closed);default:return n}}const Jd=new class Qd{visitText(e){return e.value}visitContainer(e){return e.children.map(t=>t.visit(this)).join("")}visitIcu(e){const t=Object.keys(e.cases).map(r=>`${r} {${e.cases[r].visit(this)}}`);return`{${e.expressionPlaceholder}, ${e.type}, ${t.join(" ")}}`}visitTagPlaceholder(e){return e.isVoid?this.formatPh(e.startName):`${this.formatPh(e.startName)}${e.children.map(t=>t.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitPlaceholder(e){return this.formatPh(e.name)}visitIcuPlaceholder(e,t){return this.formatPh(e.name)}formatPh(e){return`{${Us(e,!1)}}`}};function Fu(n){return n.visit(Jd)}const $u={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"};class Zd{constructor(){this._placeHolderNameCounts={},this._signatureToName={}}getStartTagPlaceholderName(e,t,s){const r=this._hashTag(e,t,s);if(this._signatureToName[r])return this._signatureToName[r];const i=e.toUpperCase(),o=$u[i]||`TAG_${i}`,a=this._generateUniqueName(s?o:`START_${o}`);return this._signatureToName[r]=a,a}getCloseTagPlaceholderName(e){const t=this._hashClosingTag(e);if(this._signatureToName[t])return this._signatureToName[t];const s=e.toUpperCase(),r=$u[s]||`TAG_${s}`,i=this._generateUniqueName(`CLOSE_${r}`);return this._signatureToName[t]=i,i}getPlaceholderName(e,t){const s=e.toUpperCase(),r=`PH: ${s}=${t}`;if(this._signatureToName[r])return this._signatureToName[r];const i=this._generateUniqueName(s);return this._signatureToName[r]=i,i}getUniquePlaceholder(e){return this._generateUniqueName(e.toUpperCase())}_hashTag(e,t,s){return`<${e}`+Object.keys(t).sort().map(a=>` ${a}=${t[a]}`).join("")+(s?"/>":`></${e}>`)}_hashClosingTag(e){return this._hashTag(`/${e}`,{},!1)}_generateUniqueName(e){if(!this._placeHolderNameCounts.hasOwnProperty(e))return this._placeHolderNameCounts[e]=1,e;const s=this._placeHolderNameCounts[e];return this._placeHolderNameCounts[e]=s+1,`${e}_${s}`}}const ef=new Ai(new xi);function Ou(n){const e=new sf(ef,n);return(t,s,r,i,o)=>e.toI18nMessage(t,s,r,i,o)}function tf(n,e){return e}class sf{constructor(e,t){this._expressionParser=e,this._interpolationConfig=t}toI18nMessage(e,t="",s="",r="",i){const o={isIcu:1==e.length&&e[0]instanceof ps,icuDepth:0,placeholderRegistry:new Zd,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:i||tf},a=P(this,e,o);return new He(a,o.placeholderToContent,o.placeholderToMessage,t,s,r)}visitElement(e,t){const s=P(this,e.children,t),r={};
1e.attrs.forEach(p=>{r[p.name]=p.value});const i=Ii(e.name).isVoid,o=t.placeholderRegistry.getStartTagPlaceholderName(e.name,r,i);t.placeholderToContent[o]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan};let a="";var l;i||(a=t.placeholderRegistry.getCloseTagPlaceholderName(e.name),t.placeholderToContent[a]={text:`</${e.name}>`,sourceSpan:null!==(l=e.endSourceSpan)&&void 0!==l?l:e.sourceSpan});const c=new qr(e.name,r,o,a,s,i,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return t.visitNodeFn(e,c)}visitAttribute(e,t){const s=void 0===e.valueTokens||1===e.valueTokens.length?new je(e.value,e.valueSpan||e.sourceSpan):this._visitTextWithInterpolation(e.valueTokens,e.valueSpan||e.sourceSpan,t,e.i18n);return t.visitNodeFn(e,s)}visitText(e,t){const s=1===e.tokens.length?new je(e.value,e.sourceSpan):this._visitTextWithInterpolation(e.tokens,e.sourceSpan,t,e.i18n);return t.visitNodeFn(e,s)}visitComment(e,t){return null}visitExpansion(e,t){t.icuDepth++;const s={},r=new Yt(e.switchValue,e.type,s,e.sourceSpan);if(e.cases.forEach(a=>{s[a.value]=new We(a.expression.map(l=>l.visit(this,t)),a.expSourceSpan)}),t.icuDepth--,t.isIcu||t.icuDepth>0){const a=t.placeholderRegistry.getUniquePlaceholder(`VAR_${e.type}`);return r.expressionPlaceholder=a,t.placeholderToContent[a]={text:e.switchValue,sourceSpan:e.switchValueSourceSpan},t.visitNodeFn(e,r)}const i=t.placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString());t.placeholderToMessage[i]=this.toI18nMessage([e],"","","",void 0);const o=new Qt(r,i,e.sourceSpan);return t.visitNodeFn(e,o)}visitExpansionCase(e,t){throw new Error("Unreachable code")}_visitTextWithInterpolation(e,t,s,r){const i=[];let o=!1;for(const a of e)switch(a.type){case 8:case 17:o=!0;const l=a.parts[1],c=uf(l)||"INTERPOLATION",p=s.placeholderRegistry.getPlaceholderName(c,l);s.placeholderToContent[p]={text:a.parts.join(""),sourceSpan:a.sourceSpan},i.push(new Ge(l,p,a.sourceSpan));break;default:if(a.parts[0].length>0){const h=i[i.length-1];h instanceof je?(h.value+=a.parts[0],h.sourceSpan=new W(h.sourceSpan.start,a.sourceSpan.end,h.sourceSpan.fullStart,h.sourceSpan.details)):i.push(new je(a.parts[0],a.sourceSpan))}}return o?(function nf(n,e){if(e instanceof He&&(function rf(n){const e=n.nodes;if(1!==e.length||!(e[0]instanceof We))throw new Error("Unexpected previous i18n message - expected it to consist of only a single `Container` node.")}(e),e=e.nodes[0]),e instanceof We){!function of(n,e){if(n.length!==e.length)throw new Error("The number of i18n message children changed between first and second pass.");if(n.some((t,s)=>e[s].constructor!==t.constructor))throw new Error("The types of the i18n message children changed between first and second pass.")}(e.children,n);for(let t=0;t<n.length;t++)n[t].sourceSpan=e.children[t].sourceSpan}}(i,r),new We(i,t)):i[0]}}const af=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function uf(n){return n.split(af)[2]}class Ze extends ss{constructor(e,t){super(e,t)}}const lf=(n,e)=>(n instanceof ls&&(e instanceof Qt&&n.i18n instanceof He&&(e.previousMessage=n.i18n),n.i18n=e),e);class Vu{constructor(e=he,t=!1,s=!1){this.interpolationConfig=e,this.keepI18nAttrs=t,this.enableI18nLegacyMessageIdFormat=s,this.hasI18nMeta=!1,this._errors=[],this._createI18nMessage=Ou(this.interpolationConfig)}_generateI18nMessage(e,t="",s){const{meaning:r,description:i,customId:o}=this._parseMetadata(t),a=this._createI18nMessage(e,r,i,o,s);return this._setMessageId(a,t),this._setLegacyIds(a,t),a}visitAllWithErrors(e){const t=e.map(s=>s.visit(this,null));return new ms(t,this._errors)}visitElement(e){let t;if(function cp(n){return n.attrs.some(e=>Qo(e.name))}(e)){this.hasI18nMeta=!0;const s=[],r={};for(const i of e.attrs)if(i.name===Xo){const o=e.i18n||i.value;t=this._generateI18nMessage(e.children,o,lf),0===t.nodes.length&&(t=void 0),e.i18n=t}else if(i.name.startsWith(Wr)){const o=i.name.slice(Wr.length);Au(e.name,o)?this._reportError(i,`Translating attribute '${o}' is disallowed for security reasons.`):r[o]=i.value}else s.push(i);if(Object.keys(r).length)for(const i of s){const o=r[i.name];
1void 0!==o&&i.value&&(i.i18n=this._generateI18nMessage([i],i.i18n||o))}this.keepI18nAttrs||(e.attrs=s)}return P(this,e.children,t),e}visitExpansion(e,t){let s;const r=e.i18n;if(this.hasI18nMeta=!0,r instanceof Qt){const i=r.name;s=this._generateI18nMessage([e],r);Jo(s).name=i,null!==t&&(t.placeholderToMessage[i]=s)}else s=this._generateI18nMessage([e],t||r);return e.i18n=s,e}visitText(e){return e}visitAttribute(e){return e}visitComment(e){return e}visitExpansionCase(e){return e}_parseMetadata(e){return"string"==typeof e?function hf(n=""){let e,t,s;if(n=n.trim(),n){const r=n.indexOf(pf),i=n.indexOf(cf);let o;[o,e]=r>-1?[n.slice(0,r),n.slice(r+2)]:[n,""],[t,s]=i>-1?[o.slice(0,i),o.slice(i+1)]:["",o]}return{customId:e,meaning:t,description:s}}(e):e instanceof He?e:{}}_setMessageId(e,t){e.id||(e.id=t instanceof He&&t.id||Ir(e))}_setLegacyIds(e,t){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[ro(e),io(e)];else if("string"!=typeof t){const s=t instanceof He?t:t instanceof Qt?t.previousMessage:void 0;e.legacyIds=s?s.legacyIds:[]}}_reportError(e,t){this._errors.push(new Ze(e.sourceSpan,t))}}const cf="|",pf="@@";const ff="goog.getMsg";function mf(n,e,t,s){const r=function Ef(n){return n.nodes.map(e=>e.visit(vf,null)).join("")}(e),i=[f(r)];Object.keys(s).length&&(i.push(Er(Gr(s,!0),!0)),i.push(Er({original_code:G(Object.keys(s).map(l=>({key:Us(l),quoted:!0,value:e.placeholders[l]?f(e.placeholders[l].sourceSpan.toString()):f(e.placeholderToMessage[l].nodes.map(c=>c.sourceSpan.toString()).join(""))})))})));const o=t.set(L(ff).callFn(i)).toConstDecl();o.addLeadingComment(function df(n){const e=[];return n.description?e.push({tagName:"desc",text:n.description}):e.push({tagName:"suppress",text:"{msgDescriptions}"}),n.meaning&&e.push({tagName:"meaning",text:n.meaning}),Mr(e)}(e));return[o,new ke(n.set(t))]}const vf=new class gf{formatPh(e){return`{$${Us(e)}}`}visitText(e){return e.value}visitContainer(e){return e.children.map(t=>t.visit(this)).join("")}visitIcu(e){return Fu(e)}visitTagPlaceholder(e){return e.isVoid?this.formatPh(e.startName):`${this.formatPh(e.startName)}${e.children.map(t=>t.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitPlaceholder(e){return this.formatPh(e.name)}visitIcuPlaceholder(e,t){return this.formatPh(e.name)}};function _f(n,e,t){const{messageParts:s,placeHolders:r}=function xf(n){const e=[],t=new yf(n.placeholderToMessage,e);return n.nodes.forEach(s=>s.visit(t)),function wf(n){const e=[],t=[];n[0]instanceof As&&e.push(Oi(n[0].sourceSpan.start));for(let s=0;s<n.length;s++){const r=n[s];r instanceof Ut?e.push(r):(t.push(r),n[s-1]instanceof As&&e.push(Oi(n[s-1].sourceSpan.end)))}return n[n.length-1]instanceof As&&e.push(Oi(n[n.length-1].sourceSpan.end)),{messageParts:e,placeHolders:t}}(e)}(e),i=function Sf(n){const e=n.nodes[0],t=n.nodes[n.nodes.length-1];return new W(e.sourceSpan.fullStart,t.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details)}(e),o=r.map(c=>t[c.text]),a=Co(e,s,r,o,i),l=n.set(a);return[new ke(l)]}class yf{constructor(e,t){this.placeholderToMessage=e,this.pieces=t}visitText(e){if(this.pieces[this.pieces.length-1]instanceof Ut)this.pieces[this.pieces.length-1].text+=e.value;else{const t=new W(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new Ut(e.value,t))}}visitContainer(e){e.children.forEach(t=>t.visit(this))}visitIcu(e){this.pieces.push(new Ut(Fu(e),e.sourceSpan))}visitTagPlaceholder(e){var t,s;(this.pieces.push(this.createPlaceholderPiece(e.startName,null!==(t=e.startSourceSpan)&&void 0!==t?t:e.sourceSpan)),e.isVoid)||(e.children.forEach(r=>r.visit(this)),this.pieces.push(this.createPlaceholderPiece(e.closeName,null!==(s=e.endSourceSpan)&&void 0!==s?s:e.sourceSpan)))}visitPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan))}visitIcuPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan,this.placeholderToMessage[e.name]))}createPlaceholderPiece(e,t,s){return new As(Us(e,!1),t,s)}}function Oi(n){return new Ut("",new W(n,n))}const qu=new Set(["$event"]),Vi=new Map([["window",u.resolveWindow],["document",u.resolveDocument],["body",u.resolveBody]]),Tf=[" ","\n","\r","\t"];function ft(n,e){return An(L(Hs).bitwiseAnd(f(n),null,!1),e)}function Uu(n,e=null,t=null){const{type:s,name:r,target:i,phase:o,handler:a}=n;
1if(i&&!Vi.has(i))throw new Error(`Unexpected global target '${i}' defined for '${r}' event.\n        Supported list of global targets: ${Array.from(Vi.keys())}.`);const l="$event",c=new Set,p=null===t||0===t.bindingLevel?L(Ie):t.getOrCreateSharedContextVar(0),h=zp(t,p,a,"b",n.handlerSpan,c,qu),m=[],g=null==t?void 0:t.variableDeclarations(),v=null==t?void 0:t.restoreViewStatement();if(g&&m.push(...g),m.push(...h),v){m.unshift(v);const B=m[m.length-1];B instanceof U?m[m.length-1]=new U(At(B.value.sourceSpan,u.resetView,[B.value])):m.push(new ke(At(null,u.resetView,[])))}const _=1===s?function Fc(n,e){return`${Ro}${n}.${e}`}(r,o):r,x=e&&Dt(e),w=[];c.has(l)&&w.push(new ne(l,tt));const y=Y(w,m,Z,null,x),C=[f(_),y];return i&&C.push(f(!1),E(Vi.get(i))),C}class qi{constructor(e,t,s=0,r,i,o,a,l,c,p,h=function If(){return{prepareStatements:[],constExpressions:[],i18nVarRefsCache:new Map}}()){this.constantPool=e,this.level=s,this.contextName=r,this.i18nContext=i,this.templateIndex=o,this.templateName=a,this._namespace=l,this.i18nUseExternalIds=p,this._constants=h,this._dataIndex=0,this._bindingContext=0,this._prefixCode=[],this._creationCodeFns=[],this._updateCodeFns=[],this._currentIndex=0,this._tempVariables=[],this._nestedTemplateFns=[],this.i18n=null,this._pureFunctionSlots=0,this._bindingSlots=0,this._ngContentReservedSlots=[],this._ngContentSelectorsOffset=0,this._implicitReceiverExpr=null,this.visitReference=js,this.visitVariable=js,this.visitTextAttribute=js,this.visitBoundAttribute=js,this.visitBoundEvent=js,this._bindingScope=t.nestedScope(s),this.fileBasedI18nSuffix=c.replace(/[^A-Za-z0-9]/g,"_")+"_",this._valueConverter=new Hu(e,()=>this.allocateDataSlot(),m=>this.allocatePureFunctionSlots(m),(m,g,v,_)=>{this._bindingScope.set(this.level,g,_),this.creationInstruction(null,u.pipe,[f(v),f(m)])})}buildTemplateFunction(e,t,s=0,r){this._ngContentSelectorsOffset=s,this._namespace!==u.namespaceHTML&&this.creationInstruction(null,this._namespace),t.forEach(g=>this.registerContextVariables(g));const i=this.i18nContext||qs(r)&&!kn(r)&&!(function Ff(n){return 1===n.length&&n[0]instanceof Xt}(e)&&e[0].i18n===r),o=Hi(e);if(i&&this.i18nStart(null,r,o),pe(this,e),this._pureFunctionSlots+=this._bindingSlots,this._valueConverter.updatePipeSlotOffsets(this._bindingSlots),this._nestedTemplateFns.forEach(g=>g()),0===this.level&&this._ngContentReservedSlots.length){const g=[];if(this._ngContentReservedSlots.length>1||"*"!==this._ngContentReservedSlots[0]){const v=this._ngContentReservedSlots.map(_=>"*"!==_?mn(_):_);g.push(this.constantPool.getConstLiteral(ye(v),!0))}this.creationInstruction(null,u.projectionDef,g,!0)}i&&this.i18nEnd(null,o);const a=On(this._creationCodeFns),l=On(this._updateCodeFns),c=this._bindingScope.viewSnapshotStatements(),p=this._bindingScope.variableDeclarations().concat(this._tempVariables),h=a.length>0?[ft(1,c.concat(a))]:[],m=l.length>0?[ft(2,p.concat(l))]:[];return Y([new ne(Hs,Vt),new ne(Ie,null)],[...this._prefixCode,...h,...m],Z,null,this.templateName)}getLocal(e){return this._bindingScope.get(e)}notifyImplicitReceiverUse(){this._bindingScope.notifyImplicitReceiverUse()}maybeRestoreView(){this._bindingScope.maybeRestoreView()}i18nTranslate(e,t={},s,r){const i=s||this.i18nGenerateMainBlockVar(),a=function Vf(n,e,t,s={},r){const i=[dp(e),An(qf(),mf(e,n,t,s),_f(e,n,Gr(s,!1)))];return r&&i.push(new ke(e.set(r(e)))),i}(e,i,this.i18nGenerateClosureVar(e.id),t,r);return this._constants.prepareStatements.push(...a),i}registerContextVariables(e){const t=this._bindingScope.freshReferenceName(),s=this.level,r=L(e.name+t);this._bindingScope.set(s,e.name,r,1,(i,o)=>{let a;if(i.bindingLevel===s)i.isListenerScope()&&i.hasRestoreViewVariable()?(a=L(sa),i.notifyRestoredViewContextUse()):a=L(Ie);else{a=i.getSharedContextName(s)||Ui(o)}return[r.set(a.prop(e.value||"$implicit")).toConstDecl()]})}i18nAppendBindings(e){e.length>0&&e.forEach(t=>this.i18n.appendBinding(t))}
1i18nBindProps(e){const t={};return Object.keys(e).forEach(s=>{const r=e[s];if(r instanceof ks)t[s]=f(r.value);else{const i=r.value.visit(this._valueConverter);if(this.allocateBindingSlots(i),i instanceof J){const{strings:o,expressions:a}=i,{id:l,bindings:c}=this.i18n,p=function pp(n,e=0,t=0){if(!n.length)return"";let s="";const r=n.length-1;for(let i=0;i<r;i++)s+=`${n[i]}${Bn(e+i,t)}`;return s+=n[r],s}(o,c.size,l);this.i18nAppendBindings(a),t[s]=f(p)}}}),t}i18nGenerateMainBlockVar(){return L(this.constantPool.uniqueName("i18n_"))}i18nGenerateClosureVar(e){let t;const s=this.fileBasedI18nSuffix.toUpperCase();if(this.i18nUseExternalIds){const r=ta("EXTERNAL_"),i=this.constantPool.uniqueName(s);t=`${r}${Dt(e)}$$${i}`}else{const r=ta(s);t=this.constantPool.uniqueName(r)}return L(t)}i18nUpdateRef(e){const{icus:t,meta:s,isRoot:r,isResolved:i,isEmitted:o}=e;if(r&&i&&!o&&!kn(s)){e.isEmitted=!0;const a=e.getSerializedPlaceholders();let l={},c=a.size?Zo(a):{};t.size&&t.forEach((m,g)=>{if(1===m.length)c[g]=m[0];else{const v=Bn(`I18N_EXP_${g}`);c[g]=f(v),l[g]=b(m)}});let h;(Array.from(a.values()).some(m=>m.length>1)||Object.keys(l).length)&&(h=m=>{const g=[m];return Object.keys(l).length&&g.push(Er(l,!0)),At(null,u.i18nPostprocess,g)}),this.i18nTranslate(s,c,e.ref,h)}}i18nStart(e=null,t,s){const r=this.allocateDataSlot();this.i18n=this.i18nContext?this.i18nContext.forkChildContext(r,this.templateIndex,t):new Fi(r,this.i18nGenerateMainBlockVar(),0,this.templateIndex,t);const{id:i,ref:o}=this.i18n,a=[f(r),this.addToConsts(o)];i>0&&a.push(f(i)),this.creationInstruction(e,s?u.i18n:u.i18nStart,a)}i18nEnd(e=null,t){if(!this.i18n)throw new Error("i18nEnd is executed with no i18n context present");this.i18nContext?(this.i18nContext.reconcileChildContext(this.i18n),this.i18nUpdateRef(this.i18nContext)):this.i18nUpdateRef(this.i18n);const{index:s,bindings:r}=this.i18n;if(r.size){for(const i of r)this.updateInstructionWithAdvance(this.getConstCount()-1,e,u.i18nExp,()=>this.convertPropertyBinding(i));this.updateInstruction(e,u.i18nApply,[f(s)])}t||this.creationInstruction(e,u.i18nEnd),this.i18n=null}i18nAttributesInstruction(e,t,s){let r=!1;const i=[];if(t.forEach(o=>{const a=o.i18n,l=o.value.visit(this._valueConverter);if(this.allocateBindingSlots(l),l instanceof J){const p=Zo(ea(a));i.push(f(o.name),this.i18nTranslate(a,p)),l.expressions.forEach(h=>{r=!0,this.updateInstructionWithAdvance(e,s,u.i18nExp,()=>this.convertPropertyBinding(h))})}}),i.length>0){const o=f(this.allocateDataSlot()),a=this.addToConsts(b(i));this.creationInstruction(s,u.i18nAttributes,[o,a]),r&&this.updateInstruction(s,u.i18nApply,[o])}}getNamespaceInstruction(e){switch(e){case"math":return u.namespaceMathML;case"svg":return u.namespaceSVG;default:return u.namespaceHTML}}addNamespaceInstruction(e,t){this._namespace=e,this.creationInstruction(t.startSourceSpan,e)}interpolatedUpdateInstruction(e,t,s,r,i,o){this.updateInstructionWithAdvance(t,r.sourceSpan,e,()=>[f(s),...this.getUpdateInstructionArguments(i),...o])}visitContent(e){const t=this.allocateDataSlot(),s=this._ngContentSelectorsOffset+this._ngContentReservedSlots.length,r=[f(t)];this._ngContentReservedSlots.push(e.selector);const i=e.attributes.filter(a=>"select"!==a.name.toLowerCase()),o=this.getAttributeExpressions(e.name,i,[],[]);o.length>0?r.push(f(s),b(o)):0!==s&&r.push(f(s)),this.creationInstruction(e.sourceSpan,u.projection,r),this.i18n&&this.i18n.appendProjection(e.i18n,t)}visitElement(e){const t=this.allocateDataSlot(),s=new eu(null);let r=!1;const i=qs(e.i18n)&&!kn(e.i18n),o=[],[a,l]=we(e.name),c=cr(e.name);for(const T of e.attributes){const{name:se,value:$}=T;"ngNonBindable"===se?r=!0:"style"===se?s.registerStyleAttr($):"class"===se?s.registerClassAttr($):o.push(T)}const p=[f(t)];c||p.push(f(l));const h=[],m=[];e.inputs.forEach(T=>{s.registerBoundInput(T)||(0===T.type&&T.i18n?m.push(T):h.push(T))});const g=this.getAttributeExpressions(e.name,o,h,e.outputs,s,[],m);p.push(this.addAttrsToConsts(g));const v=this.prepareRefsArray(e.references);p.push(this.addToConsts(v));
1const _=this._namespace,x=this.getNamespaceInstruction(a);x!==_&&this.addNamespaceInstruction(x,e),this.i18n&&this.i18n.appendElement(e.i18n,t);const w=!i&&this.i18n?!Hi(e.children):e.children.length>0,y=!s.hasBindingsWithPipes&&0===e.outputs.length&&0===m.length&&!w,C=!y&&Hi(e.children);if(y)this.creationInstruction(e.sourceSpan,c?u.elementContainer:u.element,Kr(p));else{var B;if(this.creationInstruction(e.startSourceSpan,c?u.elementContainerStart:u.elementStart,Kr(p)),r&&this.creationInstruction(e.startSourceSpan,u.disableBindings),m.length>0)this.i18nAttributesInstruction(t,m,null!==(B=e.startSourceSpan)&&void 0!==B?B:e.sourceSpan);if(e.outputs.length>0)for(const T of e.outputs)this.creationInstruction(T.sourceSpan,u.listener,this.prepareListenerParameter(e.name,T,t));i&&this.i18nStart(e.startSourceSpan,e.i18n,C)}const Q=s.buildUpdateLevelInstructions(this._valueConverter),Pe=Q.length-1;for(let T=0;T<=Pe;T++){const se=Q[T];this._bindingSlots+=this.processStylingUpdateInstruction(t,se)}const mt=f(void 0),Le=[],q=[];h.forEach(T=>{const se=T.type;if(4===se){const $=T.value.visit(this._valueConverter),me=!($ instanceof oe)||!!$.value;this.allocateBindingSlots($),Le.push({span:T.sourceSpan,paramsOrFn:yr(()=>me?this.convertPropertyBinding($):mt,ko(T.name))})}else{if(T.i18n)return;const $=T.value.visit(this._valueConverter);if(void 0!==$){const me=[],[gt,qe]=we(T.name),vt=1===se;let Bt=Xu(T.securityContext,vt);if(Bt||function Of(n){return"iframe"===n.toLowerCase()}(e.name)&&ja(T.name)&&(Bt=E(u.validateIframeAttribute)),Bt&&me.push(Bt),gt){const Tr=f(gt);Bt?me.push(Tr):me.push(f(null),Tr)}if(this.allocateBindingSlots($),0===se)$ instanceof J?this.interpolatedUpdateInstruction(Gu($),t,qe,T,$,me):Le.push({span:T.sourceSpan,paramsOrFn:yr(()=>this.convertPropertyBinding($),qe,me)});else if(1===se)if($ instanceof J&&Tt($)>1)this.interpolatedUpdateInstruction(function Rf(n){switch(Tt(n)){case 3:return u.attributeInterpolate1;case 5:return u.attributeInterpolate2;case 7:return u.attributeInterpolate3;case 9:return u.attributeInterpolate4;case 11:return u.attributeInterpolate5;case 13:return u.attributeInterpolate6;case 15:return u.attributeInterpolate7;case 17:return u.attributeInterpolate8;default:return u.attributeInterpolateV}}($),t,qe,T,$,me);else{const Tr=$ instanceof J?$.expressions[0]:$;q.push({span:T.sourceSpan,paramsOrFn:yr(()=>this.convertPropertyBinding(Tr),qe,me)})}else this.updateInstructionWithAdvance(t,T.sourceSpan,u.classProp,()=>[f(t),f(qe),this.convertPropertyBinding($),...me])}}});for(const T of Le)this.updateInstructionWithAdvance(t,T.span,u.property,T.paramsOrFn);for(const T of q)this.updateInstructionWithAdvance(t,T.span,u.attribute,T.paramsOrFn);if(pe(this,e.children),!i&&this.i18n&&this.i18n.appendElement(e.i18n,t,!0),!y){var te;const T=null!==(te=e.endSourceSpan)&&void 0!==te?te:e.sourceSpan;i&&this.i18nEnd(T,C),r&&this.creationInstruction(T,u.enableBindings),this.creationInstruction(T,c?u.elementContainerEnd:u.elementEnd)}}visitTemplate(e){const t="ng-template",s=this.allocateDataSlot();this.i18n&&this.i18n.appendTemplate(e.i18n,s);const r=e.tagName?we(e.tagName)[1]:e.tagName,i=`${this.contextName}${e.tagName?"_"+Dt(e.tagName):""}_${s}`,o=`${i}_Template`,a=[f(s),L(o),f(r)],l=this.getAttributeExpressions(t,e.attributes,e.inputs,e.outputs,void 0,e.templateAttrs);if(a.push(this.addAttrsToConsts(l)),e.references&&e.references.length){const h=this.prepareRefsArray(e.references);a.push(this.addToConsts(h)),a.push(E(u.templateRefExtractor))}const c=new qi(this.constantPool,this._bindingScope,this.level+1,i,this.i18n,s,o,this._namespace,this.fileBasedI18nSuffix,this.i18nUseExternalIds,this._constants);if(this._nestedTemplateFns.push(()=>{const h=c.buildTemplateFunction(e.children,e.variables,this._ngContentReservedSlots.length+this._ngContentSelectorsOffset,e.i18n);this.constantPool.statements.push(h.toDeclStmt(o)),c._ngContentReservedSlots.length&&this._ngContentReservedSlots.push(...c._ngContentReservedSlots)}),this.creationInstruction(e.sourceSpan,u.templateCreate,()=>(a.splice(2,0,f(c.getConstCount()),f(c.getVarCount())),Kr(a))),this.templatePropertyBindings(s,e.templateAttrs),r===t){const[h,m]=function bc(n,e){const t=[],s=[];for(const r of n)(e(r)?t:s).push(r);return[t,s]}(e.inputs,lp);var p;if(h.length>0)this.i18nAttributesInstruction(s,h,null!==(p=e.startSourceSpan)&&void 0!==p?p:e.sourceSpan);m.length>0&&this.templatePropertyBindings(s,m);for(const g of e.outputs)this.creationInstruction(g.sourceSpan,u.listener,this.prepareListenerParameter("ng_template",g,s))}}visitBoundText(e){if(this.i18n){const r=e.value.visit(this._valueConverter);return this.allocateBindingSlots(r),void(r instanceof J&&(this.i18n.appendBoundText(e.i18n),this.i18nAppendBindings(r.expressions)))}const t=this.allocateDataSlot();this.creationInstruction(e.sourceSpan,u.text,[f(t)]);const s=e.value.visit(this._valueConverter);this.allocateBindingSlots(s),s instanceof J?this.updateInstructionWithAdvance(t,e.sourceSpan,function kf(n){switch(Tt(n)){case 1:return u.textInterpolate;case 3:return u.textInterpolate1;case 5:return u.textInterpolate2;case 7:return u.textInterpolate3;case 9:return u.textInterpolate4;case 11:return u.textInterpolate5;case 13:return u.textInterpolate6;case 15:return u.textInterpolate7;case 17:return u.textInterpolate8;default:return u.textInterpolateV}}(s),()=>this.getUpdateInstructionArguments(s)):In("Text nodes should be interpolated and never bound directly.")}visitText(e){this.i18n||this.creationInstruction(e.sourceSpan,u.text,[f(this.allocateDataSlot()),f(e.value)])}visitIcu(e){let t=!1;this.i18n||(t=!0,this.i18nStart(null,e.i18n,!0));
1const s=this.i18n,r=this.i18nBindProps(e.vars),i=this.i18nBindProps(e.placeholders),o=e.i18n,a=l=>{const p=Gr({...r,...i},!1);return At(null,u.i18nPostprocess,[l,Er(p,!0)])};if(kn(s.meta))this.i18nTranslate(o,{},s.ref,a);else{const l=this.i18nTranslate(o,{},void 0,a);s.appendIcu(Jo(o).name,l)}return t&&this.i18nEnd(null,!0),null}allocateDataSlot(){return this._dataIndex++}getConstCount(){return this._dataIndex}getVarCount(){return this._pureFunctionSlots}getConsts(){return this._constants}getNgContentSelectors(){return this._ngContentReservedSlots.length?this.constantPool.getConstLiteral(ye(this._ngContentReservedSlots),!0):null}bindingContext(){return""+this._bindingContext++}templatePropertyBindings(e,t){const s=[];for(const r of t){if(!(r instanceof Bs))continue;const i=r.value.visit(this._valueConverter);if(void 0!==i)if(this.allocateBindingSlots(i),i instanceof J){const o=[];this.interpolatedUpdateInstruction(Gu(i),e,r.name,r,i,o)}else s.push({span:r.sourceSpan,paramsOrFn:yr(()=>this.convertPropertyBinding(i),r.name)})}for(const r of s)this.updateInstructionWithAdvance(e,r.span,u.property,r.paramsOrFn)}instructionFn(e,t,s,r,i=!1){e[i?"unshift":"push"]({span:t,reference:s,paramsOrFn:r})}processStylingUpdateInstruction(e,t){let s=0;if(t)for(const r of t.calls)s+=r.allocateBindingSlots,this.updateInstructionWithAdvance(e,r.sourceSpan,t.reference,()=>r.params(i=>r.supportsInterpolation&&i instanceof J?this.getUpdateInstructionArguments(i):this.convertPropertyBinding(i)));return s}creationInstruction(e,t,s,r){this.instructionFn(this._creationCodeFns,e,t,s||[],r)}updateInstructionWithAdvance(e,t,s,r){this.addAdvanceInstructionIfNecessary(e,t),this.updateInstruction(t,s,r)}updateInstruction(e,t,s){this.instructionFn(this._updateCodeFns,e,t,s||[])}addAdvanceInstructionIfNecessary(e,t){if(e!==this._currentIndex){const s=e-this._currentIndex;if(s<1)throw new Error("advance instruction can only go forwards");this.instructionFn(this._updateCodeFns,t,u.advance,[f(s)]),this._currentIndex=e}}allocatePureFunctionSlots(e){const t=this._pureFunctionSlots;return this._pureFunctionSlots+=e,t}allocateBindingSlots(e){this._bindingSlots+=e instanceof J?e.expressions.length:1}getImplicitReceiverExpr(){return this._implicitReceiverExpr?this._implicitReceiverExpr:this._implicitReceiverExpr=0===this.level?L(Ie):this._bindingScope.getOrCreateSharedContextVar(0)}convertPropertyBinding(e){const t=Fa(this,this.getImplicitReceiverExpr(),e,this.bindingContext()),s=t.currValExpr;return this._tempVariables.push(...t.stmts),s}getUpdateInstructionArguments(e){const{args:t,stmts:s}=function Yp(n,e,t,s){const r=new mi(n,e,s,!0),i=r.visitInterpolation(t,R.Expression);return r.usesImplicitReceiver&&n.notifyImplicitReceiverUse(),{stmts:$a(r,s),args:i.args}}(this,this.getImplicitReceiverExpr(),e,this.bindingContext());return this._tempVariables.push(...s),t}getAttributeExpressions(e,t,s,r,i,o=[],a=[]){const l=new Set,c=[];let p;for(const m of t)if("ngProjectAs"===m.name&&(p=m),m.i18n){const{i18nVarRefsCache:g}=this._constants;let v;g.has(m.i18n)?v=g.get(m.i18n):(v=this.i18nTranslate(m.i18n),g.set(m.i18n,v)),c.push(f(m.name),v)}else c.push(...Wu(m.name),Bf(e,m));function h(m,g){"string"==typeof m?l.has(m)||(c.push(...Wu(m)),void 0!==g&&c.push(g),l.add(m)):c.push(f(m))}if(p&&c.push(...function Mf(n){const e=mn(n.value)[0];return[f(5),ye(e)]}(p)),i&&i.populateInitialStylingAttrs(c),s.length||r.length){const m=c.length;for(let g=0;g<s.length;g++){const v=s[g];4!==v.type&&1!==v.type&&h(v.name)}for(let g=0;g<r.length;g++){const v=r[g];1!==v.type&&h(v.name)}c.length!==m&&c.splice(m,0,f(3))}return o.length&&(c.push(f(4)),o.forEach(m=>h(m.name))),a.length&&(c.push(f(6)),a.forEach(m=>h(m.name))),c}addToConsts(e){if(kr(e))return Ds;const t=this._constants.constExpressions;for(let s=0;s<t.length;s++)if(t[s].isEquivalent(e))return f(s);return f(t.push(e)-1)}addAttrsToConsts(e){return e.length>0?this.addToConsts(b(e)):Ds}prepareRefsArray(e){if(!e||0===e.length)return Ds;return ye(e.flatMap(s=>{const r=this.allocateDataSlot(),i=this._bindingScope.freshReferenceName(),o=this.level,a=L(i);return this._bindingScope.set(o,s.name,a,0,(l,c)=>{const p=c>0?[Ui(c).toStmt()]:[],h=a.set(E(u.reference).callFn([f(r)]));return p.concat(h.toConstDecl())},!0),[s.name,s.value]}))}prepareListenerParameter(e,t,s){return()=>{const r=t.name,i=1===t.type?Fo(r,t.phase):Dt(r),o=`${this.templateName}_${e}_${i}_${s}_listener`,a=this._bindingScope.nestedScope(this._bindingScope.bindingLevel,qu);return Uu(t,o,a)}}}class Hu extends ka{constructor(e,t,s,r){super(),this.constantPool=e,this.allocateSlot=t,this.allocatePureFunctionSlots=s,this.definePipe=r,this._pipeBindExprs=[]}visitPipe(e,t){const s=this.allocateSlot(),r=`PIPE:${s}`,i=this.allocatePureFunctionSlots(2+e.args.length),o=new Qe(e.span,e.sourceSpan,e.nameSpan,new Nt(e.span,e.sourceSpan),r),{identifier:a,isVarLength:l}=function Df(n){const e=bf[n.length];return{identifier:e||u.pipeBindV,isVarLength:!e}}(e.args);
1this.definePipe(e.name,r,s,E(a));const c=[e.exp,...e.args],p=l?this.visitAll([new sn(e.span,e.sourceSpan,c)]):this.visitAll(c),h=new Pt(e.span,e.sourceSpan,o,[new oe(e.span,e.sourceSpan,s),new oe(e.span,e.sourceSpan,i),...p],null);return this._pipeBindExprs.push(h),h}updatePipeSlotOffsets(e){this._pipeBindExprs.forEach(t=>{t.args[1].value+=e})}visitLiteralArray(e,t){return new is(e.span,e.sourceSpan,this.visitAll(e.expressions),s=>{const r=b(s);return ju(this.constantPool,r,this.allocatePureFunctionSlots)})}visitLiteralMap(e,t){return new is(e.span,e.sourceSpan,this.visitAll(e.values),s=>{const r=G(s.map((i,o)=>({key:e.keys[o].key,value:i,quoted:e.keys[o].quoted})));return ju(this.constantPool,r,this.allocatePureFunctionSlots)})}}const bf=[u.pipeBind1,u.pipeBind2,u.pipeBind3,u.pipeBind4];const Nf=[u.pureFunction0,u.pureFunction1,u.pureFunction2,u.pureFunction3,u.pureFunction4,u.pureFunction5,u.pureFunction6,u.pureFunction7,u.pureFunction8];function Ui(n){return E(u.nextContext).callFn(n>1?[f(n)]:[])}function ju(n,e,t){const{literalFactory:s,literalFactoryArguments:r}=n.getLiteralFactory(e),i=t(1+r.length),{identifier:o,isVarLength:a}=function Pf(n){const e=Nf[n.length];return{identifier:e||u.pureFunctionV,isVarLength:!e}}(r),l=[f(i),s];return a?l.push(b(r)):l.push(...r),E(o).callFn(l)}function Wu(n){const[e,t]=we(n),s=f(t);return e?[f(0),f(e),s]:[s]}const gs="$$shared_ctx$$";class _r{static createRootScope(){return new _r}constructor(e=0,t=null,s){if(this.bindingLevel=e,this.parent=t,this.globals=s,this.map=new Map,this.referenceNameIndex=0,this.restoreViewVariable=null,this.usesRestoredViewContext=!1,void 0!==s)for(const r of s)this.set(0,r,L(r))}get(e){let t=this;for(;t;){let s=t.map.get(e);if(null!=s)return t!==this&&(s={retrievalLevel:s.retrievalLevel,lhs:s.lhs,declareLocalCallback:s.declareLocalCallback,declare:!1,priority:s.priority},this.map.set(e,s),this.maybeGenerateSharedContextVar(s),this.maybeRestoreView()),s.declareLocalCallback&&!s.declare&&(s.declare=!0),s.lhs;t=t.parent}return 0===this.bindingLevel?null:this.getComponentProperty(e)}set(e,t,s,r=0,i,o){if(this.map.has(t)){if(o)return this;In(`The name ${t} is already defined in scope to be ${this.map.get(t)}`)}return this.map.set(t,{retrievalLevel:e,lhs:s,declare:!1,declareLocalCallback:i,priority:r}),this}getLocal(e){return this.get(e)}notifyImplicitReceiverUse(){0!==this.bindingLevel&&(this.map.get(gs+0).declare=!0)}nestedScope(e,t){const s=new _r(e,this,t);return e>0&&s.generateSharedContextVar(0),s}getOrCreateSharedContextVar(e){const t=gs+e;return this.map.has(t)||this.generateSharedContextVar(e),this.map.get(t).lhs}getSharedContextName(e){const t=this.map.get(gs+e);return t&&t.declare?t.lhs:null}maybeGenerateSharedContextVar(e){if(1===e.priority&&e.retrievalLevel<this.bindingLevel){const t=this.map.get(gs+e.retrievalLevel);t?t.declare=!0:this.generateSharedContextVar(e.retrievalLevel)}}generateSharedContextVar(e){const t=L(Ie+this.freshReferenceName());this.map.set(gs+e,{retrievalLevel:e,lhs:t,declareLocalCallback:(s,r)=>[t.set(Ui(r)).toConstDecl()],declare:!1,priority:2})}getComponentProperty(e){const t=this.map.get(gs+0);return t.declare=!0,this.maybeRestoreView(),t.lhs.prop(e)}maybeRestoreView(){this.isListenerScope()&&(this.parent.restoreViewVariable||(this.parent.restoreViewVariable=L(this.parent.freshReferenceName())),this.restoreViewVariable=this.parent.restoreViewVariable)}
1restoreViewStatement(){if(this.restoreViewVariable){const e=At(null,u.restoreView,[this.restoreViewVariable]);return this.usesRestoredViewContext?L(sa).set(e).toConstDecl():e.toStmt()}return null}viewSnapshotStatements(){return this.restoreViewVariable?[this.restoreViewVariable.set(At(null,u.getCurrentView,[])).toConstDecl()]:[]}isListenerScope(){return this.parent&&this.parent.bindingLevel===this.bindingLevel}variableDeclarations(){let e=0;return Array.from(this.map.values()).filter(t=>t.declare).sort((t,s)=>s.retrievalLevel-t.retrievalLevel||s.priority-t.priority).reduce((t,s)=>{const r=this.bindingLevel-s.retrievalLevel,i=s.declareLocalCallback(this,r-e);return e=r,t.concat(i)},[])}freshReferenceName(){let e=this;for(;e.parent;)e=e.parent;return"_r"+e.referenceNameIndex++}hasRestoreViewVariable(){return!!this.restoreViewVariable}notifyRestoredViewContextUse(){this.usesRestoredViewContext=!0}}function Gu(n){switch(Tt(n)){case 1:return u.propertyInterpolate;case 3:return u.propertyInterpolate1;case 5:return u.propertyInterpolate2;case 7:return u.propertyInterpolate3;case 9:return u.propertyInterpolate4;case 11:return u.propertyInterpolate5;case 13:return u.propertyInterpolate6;case 15:return u.propertyInterpolate7;case 17:return u.propertyInterpolate8;default:return u.propertyInterpolateV}}function zu(n,e,t={}){const{interpolationConfig:s,preserveWhitespaces:r,enableI18nLegacyMessageIdFormat:i}=t,o=ln(s),l=(new Li).parse(n,e,{leadingTriviaChars:Tf,...t,tokenizeExpansionForms:!0});if(!t.alwaysAttemptHtmlToR3AstConversion&&l.errors&&l.errors.length>0){const C={interpolationConfig:s,preserveWhitespaces:r,errors:l.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return t.collectCommentNodes&&(C.commentNodes=[]),C}let c=l.rootNodes;const p=new Vu(s,!r,i),h=p.visitAllWithErrors(c);if(!t.alwaysAttemptHtmlToR3AstConversion&&h.errors&&h.errors.length>0){const C={interpolationConfig:s,preserveWhitespaces:r,errors:h.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return t.collectCommentNodes&&(C.commentNodes=[]),C}c=h.rootNodes,r||(c=P(new Su,c),p.hasI18nMeta&&(c=P(new Vu(s,!1),c)));const{nodes:m,errors:g,styleUrls:v,styles:_,ngContentSelectors:x,commentNodes:w}=function Ud(n,e,t){const s=new Hd(e,t),o={nodes:P(s,n),errors:e.errors.concat(s.errors),styleUrls:s.styleUrls,styles:s.styles,ngContentSelectors:s.ngContentSelectors};return t.collectCommentNodes&&(o.commentNodes=s.commentNodes),o}(c,o,{collectCommentNodes:!!t.collectCommentNodes});g.push(...l.errors,...h.errors);const y={interpolationConfig:s,preserveWhitespaces:r,errors:g.length>
10?g:null,nodes:m,styleUrls:v,styles:_,ngContentSelectors:x};return t.collectCommentNodes&&(y.commentNodes=w),y}const Ku=new fr;function ln(n=he){return new Td(new Ai(new xi),n,Ku,[])}function Xu(n,e){switch(n){case V.HTML:return E(u.sanitizeHtml);case V.SCRIPT:return E(u.sanitizeScript);case V.STYLE:return e?E(u.sanitizeStyle):null;case V.URL:return E(u.sanitizeUrl);case V.RESOURCE_URL:return E(u.sanitizeResourceUrl);default:return null}}function Bf(n,e){const t=ye(e.value);if(!Au(n,e.name))return t;switch(Ku.securityContext(n,e.name,!0)){case V.HTML:return Rr(E(u.trustConstantHtml),new En([new _n(e.value)],[]),void 0,e.valueSpan);case V.RESOURCE_URL:return Rr(E(u.trustConstantResourceUrl),new En([new _n(e.value)],[]),void 0,e.valueSpan);default:return t}}function $f(n){return n instanceof ks||n instanceof Ln||n instanceof Vr}function Hi(n){return n.every($f)}function yr(n,e,t){return()=>{const s=n(),r=Array.isArray(s)?s:[s];return t&&r.push(...t),e&&r.unshift(f(e)),r}}const Yu="ngI18nClosureMode";function qf(){return Ls(L(Yu)).notIdentical(f("undefined",vn)).and(L(Yu))}const Uf=/attr\.([^\]]+)/,Hf="_nghost-%COMP%",jf="_ngcontent-%COMP%";function Ju(n,e,t){const s=new j,r=mn(n.selector);return s.set("type",n.internalType),r.length>0&&s.set("selectors",ye(r)),n.queries.length>0&&s.set("contentQueries",function Kf(n,e,t){const s=[],r=[],i=na(r,zr);for(const a of n){s.push(E(u.contentQuery).callFn([L("dirIndex"),...nl(a,e)]).toStmt());const l=i(),c=E(u.loadQuery).callFn([]),p=E(u.queryRefresh).callFn([l.set(c)]),h=L(Ie).prop(a.propertyName).set(a.first?l.prop("first"):l);r.push(p.and(h).toStmt())}const o=t?`${t}_ContentQueries`:null;return Y([new ne(Hs,Vt),new ne(Ie,null),new ne("dirIndex",null)],[ft(1,s),ft(2,r)],Z,null,o)}(n.queries,e,n.name)),n.viewQueries.length&&s.set("viewQuery",function Yf(n,e,t){const s=[],r=[],i=na(r,zr);n.forEach(a=>{const l=E(u.viewQuery).callFn(nl(a,e));s.push(l.toStmt());const c=i(),p=E(u.loadQuery).callFn([]),h=E(u.queryRefresh).callFn([c.set(p)]),m=L(Ie).prop(a.propertyName).set(a.first?c.prop("first"):c);r.push(h.and(m).toStmt())});const o=t?`${t}_Query`:null;return Y([new ne(Hs,Vt),new ne(Ie,null)],[ft(1,s),ft(2,r)],Z,null,o)}(n.viewQueries,e,n.name)),s.set("hostBindings",function Qf(n,e,t,s,r,i,o){const a=L(Ie),l=new eu(a),{styleAttr:c,classAttr:p}=n.specialAttributes;void 0!==c&&l.registerStyleAttr(c),void 0!==p&&l.registerClassAttr(p);const h=[],m=[],g=[],v=e,_=t.createDirectiveHostEventAsts(n.listeners,v);_&&_.length&&h.push(...function em(n,e){const t=[],s=[],r=[];for(const i of n){let o=i.name&&Dt(i.name);const a=1===i.type?Fo(o,i.targetOrPhase):o,l=e&&o?`${e}_${a}_HostBindingHandler`:null,c=Uu(Fs.fromParsedEvent(i),l);1==i.type?s.push(c):t.push(c)}for(const i of s)r.push({reference:u.syntheticHostListener,paramsOrFn:i,span:null});for(const i of t)r.push({reference:u.listener,paramsOrFn:i,span:null});return r}(_,i));const x=t.createBoundHostProperties(n.properties,v),w=[];let C,y=0;x&&x.forEach(q=>{l.registerInputBasedOnName(q.name,q.expression,v)?y+=ur:(w.push(q),y++)});const B=()=>{if(!C){C=new Hu(s,()=>In("Unexpected node"),te=>{const T=y;return y+=te,T},()=>In("Unexpected pipe"))}return C},Q=[],Pe=[],mt=[];for(const q of w){const te=q.expression.visit(B()),T=ol(a,te),{bindingName:se,instruction:$,isAttribute:me}=Zf(q),gt=t.calcPossibleSecurityContexts(r,se,me).filter(Bt=>Bt!==V.NONE);let qe=null;gt.length&&(qe=2===gt.length&&gt.indexOf(V.URL)>-1&&gt.indexOf(V.RESOURCE_URL)>-1?E(u.sanitizeUrlOrResourceUrl):Xu(gt[0],me));const vt=[f(se),T.currValExpr];qe?vt.push(qe):ja(se)&&vt.push(E(u.validateIframeAttribute)),g.push(...T.stmts),$===u.hostProperty?Q.push(vt):$===u.attribute?Pe.push(vt):$===u.syntheticHostProperty?mt.push(vt):m.push({reference:$,paramsOrFn:vt,span:null})}for(const q of Q)m.push({reference:u.hostProperty,paramsOrFn:q,span:null});for(const q of Pe)m.push({reference:u.attribute,paramsOrFn:q,span:null});for(const q of mt)m.push({reference:u.syntheticHostProperty,paramsOrFn:q,span:null});const Le=function zf(n){const e=[];for(let t of Object.getOwnPropertyNames(n)){const s=n[t];e.push(f(t),s)}return e}(n.attributes);if(l.assignHostAttrs(Le,o),l.hasBindings&&l.buildUpdateLevelInstructions(B()).forEac
1h(q=>{for(const te of q.calls)y+=Math.max(te.allocateBindingSlots-ur,0),m.push({reference:q.reference,paramsOrFn:Jf(te,a,ol),span:null})}),y&&o.set("hostVars",f(y)),h.length>0||m.length>0){const q=i?`${i}_HostBindings`:null,te=[];return h.length>0&&te.push(ft(1,On(h))),m.length>0&&te.push(ft(2,g.concat(On(m)))),Y([new ne(Hs,Vt),new ne(Ie,null)],te,Z,null,q)}return null}(n.host,n.typeSourceSpan,t,e,n.selector||"",n.name,s)),s.set("inputs",$n(n.inputs,!0)),s.set("outputs",$n(n.outputs)),null!==n.exportAs&&s.set("exportAs",b(n.exportAs.map(i=>f(i)))),n.isStandalone&&s.set("standalone",f(!0)),s}function Zu(n,e){var t;const s=[],r=e.providers,i=e.viewProviders;if(r||i){const o=[r||new St([])];i&&o.push(i),s.push(E(u.ProvidersFeature).callFn(o))}e.usesInheritance&&s.push(E(u.InheritDefinitionFeature)),e.fullInheritance&&s.push(E(u.CopyDefinitionFeature)),e.lifecycle.usesOnChanges&&s.push(E(u.NgOnChangesFeature)),e.hasOwnProperty("template")&&e.isStandalone&&s.push(E(u.StandaloneFeature)),null!==(t=e.hostDirectives)&&void 0!==t&&t.length&&s.push(E(u.HostDirectivesFeature).callFn([nm(e.hostDirectives)])),s.length&&n.set("features",b(s))}function el(n,e,t){const s=Ju(n,e,t);Zu(s,n);return{expression:E(u.defineDirective).callFn([s.toLiteralMap()],void 0,!0),type:il(n),statements:[]}}function tl(n,e,t){const s=Ju(n,e,t);Zu(s,n);const r=n.selector&&Ue.parse(n.selector),i=r&&r[0];if(i){const w=i.getAttrs();w.length&&s.set("attrs",e.getConstLiteral(b(w.map(y=>f(null!=y?y:void 0))),!0))}const o=n.name,a=o?`${o}_Template`:null,l=n.changeDetection,c=n.template,p=new qi(e,_r.createRootScope(),0,o,null,null,a,u.namespaceHTML,n.relativeContextFilePath,n.i18nUseExternalIds),h=p.buildTemplateFunction(c.nodes,[]),m=p.getNgContentSelectors();m&&s.set("ngContentSelectors",m),s.set("decls",f(p.getConstCount())),s.set("vars",f(p.getVarCount()));const{constExpressions:g,prepareStatements:v}=p.getConsts();if(g.length>0){let w=b(g);v.length>0&&(w=Y([],[...v,new U(w)])),s.set("consts",w)}if(s.set("template",h),n.declarations.length>0&&s.set("dependencies",function Wf(n,e){switch(e){case 0:return n;case 1:return Y([],[new U(n)]);case 2:const t=n.prop("map").callFn([E(u.resolveForwardRef)]);return Y([],[new U(t)])}}(b(n.declarations.map(w=>w.type)),n.declarationListEmitMode)),null===n.encapsulation&&(n.encapsulation=ue.Emulated),n.styles&&n.styles.length){const y=(n.encapsulation==ue.Emulated?function sm(n,e,t){const s=new rh;return n.map(r=>s.shimCssText(r,e,t))}(n.styles,jf,Hf):n.styles).reduce((C,B)=>(B.trim().length>0&&C.push(e.getConstLiteral(f(B))),C),[]);y.length>0&&s.set("styles",b(y))}else n.encapsulation===ue.Emulated&&(n.encapsulation=ue.None);n.encapsulation!==ue.Emulated&&s.set("encapsulation",f(n.encapsulation)),null!==n.animations&&s.set("data",G([{key:"animation",value:n.animations,quoted:!1}])),null!=l&&l!==Et.Default&&s.set("changeDetection",f(l));return{expression:E(u.defineComponent).callFn([s.toLiteralMap()],void 0,!0),type:sl(n),statements:[]}}function sl(n){const e=rl(n);return e.push(ji(n.template.ngContentSelectors)),e.push(X(f(n.isStandalone))),e.push(ll(n)),X(E(u.ComponentDeclaration,e))}function nl(n,e){const t=[xp(n,e),f(Gf(n))];return n.read&&t.push(n.read),t}function Gf(n){return(n.descendants?1:0)|(n.static?2:0)|(n.emitDistinctChangesOnly?4:0)}function Xf(n){return X(f(n))}function xr(n){return G(Object.keys(n).map(t=>({key:t,value:f(Array.isArray(n[t])?n[t][0]:n[t]),quoted:!0})))}function ji(n){return n.length>0?X(b(n.map(e=>f(e)))):ve}function rl(n){const e=null!==n.selector?n.selector.replace(/\n/g,""):null;return[Nn(n.type.type,n.typeArgumentCount),null!==e?Xf(e):ve,null!==n.exportAs?ji(n.exportAs):ve,X(xr(n.inputs)),X(xr(n.outputs)),ji(n.queries.map(t=>t.propertyName))]}function il(n){const e=rl(n);return e.push(ve),e.push(X(f(n.isStandalone))),e.push(ll(n)),X(E(u.DirectiveDeclaration,e))}function ol(n,e){return Fa(null,n,e,"b")}function Jf(n,e,t){return n.params(s=>t(e,s).currValExpr)}function Zf(n){let t,e=n.name;const s=e.match(Uf);return s?(e=s[1],t=u.attribute):n.isAnimation?(e=ko(e),t=u.syntheticHostProperty):t=u.hostProperty,{bindingName:e,instruction:t,isAttribute:!!s}}const tm=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function al(n){const e={},t={},s={},r={};for(const i of Object.keys(n)){const o=n[i],a=i.match(tm);if(null===a)switch(i){case"class":if("string"!=typeof o)throw new Error("Class binding must be string");r.classAttr=o;break;case"style":if("string"!=typeof o)throw new Error("Style binding must be string");r.styleAttr=o;break;default:e[i]="string"==typeof o?f(o):o}
1else if(null!=a[1]){if("string"!=typeof o)throw new Error("Property binding must be string");s[a[1]]=o}else if(null!=a[2]){if("string"!=typeof o)throw new Error("Event binding must be string");t[a[2]]=o}}return{attributes:e,listeners:t,properties:s,specialAttributes:r}}function ul(n,e){const t=ln();return t.createDirectiveHostEventAsts(n.listeners,e),t.createBoundHostProperties(n.properties,e),t.errors}function ll(n){var e;return null!==(e=n.hostDirectives)&&void 0!==e&&e.length?X(b(n.hostDirectives.map(t=>G([{key:"directive",value:Ls(t.directive.type),quoted:!1},{key:"inputs",value:xr(t.inputs||{}),quoted:!1},{key:"outputs",value:xr(t.outputs||{}),quoted:!1}])))):ve}function nm(n){const e=[];let t=!1;for(const s of n){if(s.inputs||s.outputs){const r=[{key:"directive",value:s.directive.type,quoted:!1}];if(s.inputs){const i=Sr(s.inputs);i&&r.push({key:"inputs",value:i,quoted:!1})}if(s.outputs){const i=Sr(s.outputs);i&&r.push({key:"outputs",value:i,quoted:!1})}e.push(G(r))}else e.push(s.directive.type);s.isForwardReference&&(t=!0)}return t?new rt([],[new U(b(e))]):b(e)}function Sr(n){const e=[];for(const t in n)n.hasOwnProperty(t)&&e.push(f(t),f(n[t]));return e.length>0?b(e):null}class cl{}class rm{constructor(e=new ba){this.jitEvaluator=e,this.FactoryTarget=Ee,this.ResourceLoader=cl,this.elementSchemaRegistry=new fr}compilePipe(e,t,s){const i=li({name:s.name,type:K(s.type),internalType:new A(s.type),typeArgumentCount:0,deps:null,pipeName:s.pipeName,pure:s.pure,isStandalone:s.isStandalone});return this.jitExpression(i.expression,e,t,[])}compilePipeDeclaration(e,t,s){const r=function vm(n){var e,t;return{name:n.type.name,type:K(n.type),internalType:new A(n.type),typeArgumentCount:0,pipeName:n.name,deps:null,pure:null===(e=n.pure)||void 0===e||e,isStandalone:null!==(t=n.isStandalone)&&void 0!==t&&t}}(s),i=li(r);return this.jitExpression(i.expression,e,t,[])}compileInjectable(e,t,s){var r;const{expression:i,statements:o}=Xr({name:s.name,type:K(s.type),internalType:new A(s.type),typeArgumentCount:s.typeArgumentCount,providedIn:_l(s.providedIn),useClass:vs(s,"useClass"),useFactory:El(s,"useFactory"),useValue:vs(s,"useValue"),useExisting:vs(s,"useExisting"),deps:null===(r=s.deps)||void 0===r?void 0:r.map(yl)},!0);return this.jitExpression(i,e,t,o)}compileInjectableDeclaration(e,t,s){var r;const{expression:i,statements:o}=Xr({name:s.type.name,type:K(s.type),internalType:new A(s.type),typeArgumentCount:0,providedIn:_l(s.providedIn),useClass:vs(s,"useClass"),useFactory:El(s,"useFactory"),useValue:vs(s,"useValue"),useExisting:vs(s,"useExisting"),deps:null===(r=s.deps)||void 0===r?void 0:r.map(xl)},!0);return this.jitExpression(i,e,t,o)}compileInjector(e,t,s){const i=ai({name:s.name,type:K(s.type),internalType:new A(s.type),providers:s.providers&&s.providers.length>0?new A(s.providers):null,imports:s.imports.map(o=>new A(o))});return this.jitExpression(i.expression,e,t,[])}compileInjectorDeclaration(e,t,s){const r=function Em(n){return{name:n.type.name,type:K(n.type),internalType:new A(n.type),providers:void 0!==n.providers&&n.providers.length>0?new A(n.providers):null,imports:void 0!==n.imports?n.imports.map(e=>new A(e)):[]}}(s),i=ai(r);return this.jitExpression(i.expression,e,t,[])}compileNgModule(e,t,s){const i=Na({type:K(s.type),internalType:new A(s.type),adjacentType:new A(s.type),bootstrap:s.bootstrap.map(K),declarations:s.declarations.map(K),publicDeclarationTypes:null,imports:s.imports.map(K),includeImportTypes:!0,exports:s.exports.map(K),selectorScopeMode:ns.Inline,containsForwardDecls:!1,schemas:s.schemas?s.schemas.map(K):null,id:s.id?new A(s.id):null});return this.jitExpression(i.expression,e,t,[])}compileNgModuleDeclaration(e,t,s){const r=function jp(n){const e=new j;return e.set("type",new A(n.type)),void 0!==n.bootstrap&&e.set("bootstrap",new A(n.bootstrap)),void 0!==n.declarations&&e.set("declarations",new A(n.declarations)),void 0!==n.imports&&e.set("imports",new A(n.imports)),void 0!==n.exports&&e.set("exports",new A(n.exports)),void 0!==n.schemas&&e.set("schemas",new A(n.schemas)),void 0!==n.id&&e.set("id",new A(n.id)),E(u.defineNgModule).callFn([e.toLiteralMap()])}(s);return this.jitExpression(r,e,t,[])}compileDirective(e,t,s){const r=fl(s);return this.compileDirectiveFromMeta(e,t,r)}compileDirectiveDeclaration(e,t,s){const i=ml(s,this.createParseSourceSpan("Directive",s.type.name,t));return this.compileDirectiveFromMeta(e,t,i)}compileDirectiveFromMeta(e,t,s){const r=new Br,o=el(s,r,ln());return this.jitExpression(o.expression,e,t,r.statements)}compileComponent(e,t,s){const{template:r,interpolation:i}
1=vl(s.template,s.name,t,s.preserveWhitespaces,s.interpolation),o={...s,...fl(s),selector:s.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:r,declarations:s.declarations.map(um),declarationListEmitMode:0,styles:[...s.styles,...r.styles],encapsulation:s.encapsulation,interpolation:i,changeDetection:s.changeDetection,animations:null!=s.animations?new A(s.animations):null,viewProviders:null!=s.viewProviders?new A(s.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0},a=`ng:///${s.name}.js`;return this.compileComponentFromMeta(e,a,o)}compileComponentDeclaration(e,t,s){const i=function am(n,e,t){var s,r,i,o;const{template:a,interpolation:l}=vl(n.template,n.type.name,t,null!==(s=n.preserveWhitespaces)&&void 0!==s&&s,n.interpolation),c=[];if(n.dependencies)for(const p of n.dependencies)switch(p.kind){case"directive":case"component":c.push(Wi(p));break;case"pipe":c.push(cm(p))}else(n.components||n.directives||n.pipes)&&(n.components&&c.push(...n.components.map(p=>Wi(p,!0))),n.directives&&c.push(...n.directives.map(p=>Wi(p))),n.pipes&&c.push(...function lm(n){return n?Object.keys(n).map(e=>({kind:Ye.Pipe,name:e,type:new A(n[e])})):[]}(n.pipes)));return{...ml(n,e),template:a,styles:null!==(r=n.styles)&&void 0!==r?r:[],declarations:c,viewProviders:void 0!==n.viewProviders?new A(n.viewProviders):null,animations:void 0!==n.animations?new A(n.animations):null,changeDetection:null!==(i=n.changeDetection)&&void 0!==i?i:Et.Default,encapsulation:null!==(o=n.encapsulation)&&void 0!==o?o:ue.Emulated,interpolation:l,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0}}(s,this.createParseSourceSpan("Component",s.type.name,t),t);return this.compileComponentFromMeta(e,t,i)}compileComponentFromMeta(e,t,s){const r=new Br,o=tl(s,r,ln(s.interpolation));return this.jitExpression(o.expression,e,t,r.statements)}compileFactory(e,t,s){const r=it({name:s.name,type:K(s.type),internalType:new A(s.type),typeArgumentCount:s.typeArgumentCount,deps:pm(s.deps),target:s.target});return this.jitExpression(r.expression,e,t,r.statements)}compileFactoryDeclaration(e,t,s){const r=it({name:s.type.name,type:K(s.type),internalType:new A(s.type),typeArgumentCount:0,deps:Array.isArray(s.deps)?s.deps.map(xl):s.deps,target:s.target});return this.jitExpression(r.expression,e,t,r.statements)}createParseSourceSpan(e,t,s){return Ca(e,t,s)}jitExpression(e,t,s,r){const i=[...r,new Re("$def",e,void 0,re.Exported)];return this.jitEvaluator.evaluateStatements(s,i,new Hp(t),!0).$def}}function pl(n){return{...n,predicate:dl(n.predicate),read:n.read?new A(n.read):null,static:n.static,emitDistinctChangesOnly:n.emitDistinctChangesOnly}}function hl(n){var e,t,s,r;return{propertyName:n.propertyName,first:null!==(e=n.first)&&void 0!==e&&e,predicate:dl(n.predicate),descendants:null!==(t=n.descendants)&&void 0!==t&&t,read:n.read?new A(n.read):null,static:null!==(s=n.static)&&void 0!==s&&s,emitDistinctChangesOnly:null===(r=n.emitDistinctChangesOnly)||void 0===r||r}}function dl(n){return Array.isArray(n)?n:Pn(new A(n),1)}function fl(n){const e=wr(n.inputs||[]),t=wr(n.outputs||[]),s=n.propMetadata,r={},i={};for(const o in s)s.hasOwnProperty(o)&&s[o].forEach(a=>{mm(a)?r[o]=a.bindingPropertyName?[a.bindingPropertyName,o]:o:gm(a)&&(i[o]=a.bindingPropertyName||o)});return{...n,typeArgumentCount:0,typeSourceSpan:n.typeSourceSpan,type:K(n.type),internalType:new A(n.type),deps:null,host:hm(n.propMetadata,n.typeSourceSpan,n.host),inputs:{...e,...r},outputs:{...t,...i},queries:n.queries.map(pl),providers:null!=n.providers?new A(n.providers):null,viewQueries:n.viewQueries.map(pl),fullInheritance:!1,hostDirectives:gl(n)}}function ml(n,e){var t,s,r,i,o,a,l,c,p;return{name:n.type.name,type:K(n.type),typeSourceSpan:e,internalType:new A(n.type),selector:null!==(t=n.selector)&&void 0!==t?t:null,inputs:null!==(s=n.inputs)&&void 0!==s?s:{},outputs:null!==(r=n.outputs)&&void 0!==r?r:{},host:im(n.host),queries:(null!==(i=n.queries)&&void 0!==i?i:[]).map(hl),viewQueries:(null!==(o=n.viewQueries)&&void 0!==o?o:[]).map(hl),providers:void 0!==n.providers?new A(n.providers):null,exportAs:null!==(a=n.exportAs)&&void 0!==a?a:null,usesInheritance:null!==(l=n.usesInheritance)&&void 0!==l&&l,lifecycle:{usesOnChanges:null!==(c=n.usesOnChanges)&&void 0!==c&&c},deps:null,typeArgumentCount:0,fullInheritance:!1,isStandalone:null!==(p=n.isStandalone)&&void 0!==p&&p,hostDirectives:gl(n)}}function im(n={}){var e,t,s;return{attributes:om(null!==(e=n.attributes)&&void 0!==e?e:{}),listeners:null!==(t=n.listeners)&&void 0!==t?t:{},properties:null!==(s=n.properties)&&void 0!==s?s:{},specialAttributes:{classAttr:n.classAttribute,styleAttr:n.styleAttribute}}}function gl(n){var e;return null!==(e=n.hostDirectives)&&void 0!==e&&e.length?n.hostDirectives.map(t=>"function"==typeof t?{directive:K(t),inputs:null,outputs:null,isForwardReference:!1}:{directive:K(t.directive),isForwardReference:!1,inputs:t.inputs?wr(t.inputs):null,outputs:t.outputs?wr(t.outputs):null}):null}function om(n){const e={};for(const t of Object.keys(n))e[t]=new A(n[t]);return e}function um(n){return{...n,type:new A(n.type)}}function Wi(n,e=null){var t,s,r;return{kind:Ye.Directive,isComponent:e||"component"===n.kind,selector:n.selector,type:new A(n.type),inputs:null!==(t=n.inputs)&&void 0!==t?t:[],outputs:null!==(s=n.outputs)&&void 0!==s?s:[],exportAs:null!==(r=n.exportAs)&&void 0!==r?r:null}}function cm(n){return{kind:Ye.Pipe,name:n.name,type:new A(n.type)}}function vl(n,e,t,s,r){const i=r?Ws.fromArray(r):he,o=zu(n,t,{preserveWhitespace
1s:s,interpolationConfig:i});if(null!==o.errors){const a=o.errors.map(l=>l.toString()).join(", ");throw new Error(`Errors during JIT compilation of template for ${e}: ${a}`)}return{template:o,interpolation:i}}function vs(n,e){if(n.hasOwnProperty(e))return Pn(new A(n[e]),0)}function El(n,e){if(n.hasOwnProperty(e))return new A(n[e])}function _l(n){return Pn("function"==typeof n?new A(n):new ce(null!=n?n:null),0)}function pm(n){return null==n?null:n.map(yl)}function yl(n){const e=null!=n.attribute,t=null===n.token?null:new A(n.token);return Sl(e?new A(n.attribute):t,e,n.host,n.optional,n.self,n.skipSelf)}function xl(n){var e,t,s,r,i;const o=null!==(e=n.attribute)&&void 0!==e&&e;return Sl(null===n.token?null:new A(n.token),o,null!==(t=n.host)&&void 0!==t&&t,null!==(s=n.optional)&&void 0!==s&&s,null!==(r=n.self)&&void 0!==r&&r,null!==(i=n.skipSelf)&&void 0!==i&&i)}function Sl(n,e,t,s,r,i){return{token:n,attributeNameType:e?f("unknown"):null,host:t,optional:s,self:r,skipSelf:i}}function hm(n,e,t){const s=al(t||{}),r=ul(s,e);if(r.length)throw new Error(r.map(i=>i.msg).join("\n"));for(const i in n)n.hasOwnProperty(i)&&n[i].forEach(o=>{dm(o)?s.properties[o.hostPropertyName||i]=Bo("this",i):fm(o)&&(s.listeners[o.eventName||i]=`${i}(${(o.args||[]).join(",")})`)}
1);return s}function dm(n){return"HostBinding"===n.ngMetadataName}function fm(n){return"HostListener"===n.ngMetadataName}function mm(n){return"Input"===n.ngMetadataName}function gm(n){return"Output"===n.ngMetadataName}function wr(n){return n.reduce((e,t)=>{const[s,r]=t.split(":",2).map(i=>i.trim());return e[s]=r||s,e},{})}function wl(n){(n.ng||(n.ng={})).\u0275compilerFacade=new rm}const _m=new Po("15.2.9");class ym{constructor({defaultEncapsulation:e=ue.Emulated,useJit:t=!0,missingTranslation:s=null,preserveWhitespaces:r,strictInjectionParameters:i}={}){this.defaultEncapsulation=e,this.useJit=!!t,this.missingTranslation=s,this.preserveWhitespaces=Cl(function Tc(n){return void 0===n?null:n}(r)),this.strictInjectionParameters=!0===i}}function Cl(n,e=!1){return null===n?e:n}const Al="i18n",cn="i18n-",xm=/^i18n:?/,Sm="|",wm="@@";let Tl=!1;class Tm{constructor(e,t){this.messages=e,this.errors=t}}var Ne;!function(n){n[n.Extract=0]="Extract",n[n.Merge=1]="Merge"}(Ne||(Ne={}));class Il{constructor(e,t){this._implicitTags=e,this._implicitAttrs=t}extract(e,t){return this._init(Ne.Extract,t),e.forEach(s=>s.visit(this,null)),this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new Tm(this._messages,this._errors)}merge(e,t,s){this._init(Ne.Merge,s),this._translations=t;const i=new hs("wrapper",[],e,void 0,void 0,void 0).visit(this,null);return this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new ms(i.children,this._errors)}visitExpansionCase(e,t){const s=P(this,e.expression,t);if(this._mode===Ne.Merge)return new Ti(e.value,s,e.sourceSpan,e.valueSourceSpan,e.expSourceSpan)}visitExpansion(e,t){this._mayBeAddBlockChildren(e);const s=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([e]),this._inIcu=!0);const r=P(this,e.cases,t);return this._mode===Ne.Merge&&(e=new ps(e.switchValue,e.type,r,e.sourceSpan,e.switchValueSourceSpan)),this._inIcu=s,e}visitComment(e,t){const s=function Im(n){return!!(n instanceof ds&&n.value&&n.value.startsWith("i18n"))}(e);if(s&&this._isInTranslatableSection)return void this._reportError(e,"Could not start a block inside a translatable section");const r=function bm(n){return!!(n instanceof ds&&n.value&&"/i18n"===n.value)}(e);if(!r||this._inI18nBlock){if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(r){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(e,this._blockChildren),this._inI18nBlock=!1;const i=this._addMessage(this._blockChildren,this._blockMeaningAndDesc);return P(this,this._translateMessage(e,i))}return void this._reportError(e,"I18N blocks should not cross element boundaries")}}else if(s){if(!Tl&&console&&console.warn){Tl=!0;const i=e.sourceSpan.details?`, ${e.sourceSpan.details}`:"";console.warn(`I18n comments are deprecated, use an <ng-container> element instead (${e.sourceSpan.start}${i})`)}this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=e.value.replace(xm,"").trim(),this._openTranslatableSection(e)}}else this._reportError(e,"Trying to close an unopened block")}visitText(e,t){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(e),e}visitElement(e,t){this._mayBeAddBlockChildren(e),this._depth++;const s=this._inI18nNode,r=this._inImplicitNode;let o,i=[];const a=function Dm(n){return n.attrs.find(e=>e.name===Al)||null}(e),l=a?a.value:"",c=this._implicitTags.some(h=>e.name===h)&&!this._inIcu&&!this._isInTranslatableSection,p=!r&&c;if(this._inImplicitNode=r||c,this._isInTranslatableSection||this._inIcu)(a||p)&&this._reportError(e,"Could not mark an element as translatable inside a translatable section"),this._mode==Ne.Extract&&P(this,e.children);else{if(a||p){this._inI18nNode=!0;const h=this._addMessage(e.children,l);o=this._translateMessage(e,h)}if(this._mode==Ne.Extract){const h=a||p;h&&this._openTranslatableSection(e),P(this,e.children),h&&this._closeTranslatableSection(e,e.children)}}if(this._mode===Ne.Merge&&(o||e.children).forEach(m=>{const g=m.visit(this,t);g&&!this._isInTranslatableSection&&(i=i.concat(g))}),this._visitAttributesOf(e),this._depth--,this._inI18nNode=s,this._inImplicitNode=r,this._mode===Ne.Merge){const h=this._translateAttributes(e);return new hs(e.name,h,i,e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}return null}visitAttribute(e,t){throw new Error("unreachable code")}_init(e,t){this._mode=e,this._inI18nBlock=!1,this._inI18nNode=!1,this._depth=0,this._inIcu=!1,this._msgCountAtSectionStart=void 0,this._errors=[],this._messages=[],this._inImplicitNode=!1,this._createI18nMessage=Ou(t)}_visitAttributesOf(e){const t={},s=this._implicitAttrs[e.name]||[];e.attrs.filter(r=>
1r.name.startsWith(cn)).forEach(r=>t[r.name.slice(cn.length)]=r.value),e.attrs.forEach(r=>{r.name in t?this._addMessage([r],t[r.name]):s.some(i=>r.name===i)&&this._addMessage([r])})}_addMessage(e,t){if(0==e.length||1==e.length&&e[0]instanceof rn&&!e[0].value)return null;const{meaning:s,description:r,id:i}=bl(t),o=this._createI18nMessage(e,s,r,i);return this._messages.push(o),o}_translateMessage(e,t){if(t&&this._mode===Ne.Merge){const s=this._translations.get(t);if(s)return s;this._reportError(e,`Translation unavailable for message id="${this._translations.digest(t)}"`)}return[]}_translateAttributes(e){const t=e.attrs,s={};t.forEach(i=>{i.name.startsWith(cn)&&(s[i.name.slice(cn.length)]=bl(i.value))});const r=[];return t.forEach(i=>{if(i.name!==Al&&!i.name.startsWith(cn))if(i.value&&""!=i.value&&s.hasOwnProperty(i.name)){const{meaning:o,description:a,id:l}=s[i.name],c=this._createI18nMessage([i],o,a,l),p=this._translations.get(c);if(p)if(0==p.length)r.push(new rn(i.name,"",i.sourceSpan,void 0,void 0,void 0,void 0));else if(p[0]instanceof cs){const h=p[0].value;r.push(new rn(i.name,h,i.sourceSpan,void 0,void 0,void 0,void 0))}else this._reportError(e,`Unexpected translation for attribute "${i.name}" (id="${l||this._translations.digest(c)}")`);else this._reportError(e,`Translation unavailable for attribute "${i.name}" (id="${l||this._translations.digest(c)}")`)}else r.push(i)}),r}_mayBeAddBlockChildren(e){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(e)}_openTranslatableSection(e){this._isInTranslatableSection?this._reportError(e,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length}get _isInTranslatableSection(){return void 0!==this._msgCountAtSectionStart}_closeTranslatableSection(e,t){if(!this._isInTranslatableSection)return void this._reportError(e,"Unexpected section end");const s=this._msgCountAtSectionStart;if(1==t.reduce((i,o)=>i+(o instanceof ds?0:1),0))for(let i=this._messages.length-1;i>=s;i--){const o=this._messages[i].nodes;if(!(1==o.length&&o[0]instanceof je)){this._messages.splice(i,1);break}}this._msgCountAtSectionStart=void 0}_reportError(e,t){this._errors.push(new Ze(e.sourceSpan,t))}}function bl(n){if(!n)return{meaning:"",description:"",id:""};const e=n.indexOf(wm),t=n.indexOf(Sm),[s,r]=e>-1?[n.slice(0,e),n.slice(e+2)]:[n,""],[i,o]=t>-1?[s.slice(0,t),s.slice(t+1)]:["",s];return{meaning:i,description:o,id:r.trim()}}const Pm=new class Nm{constructor(){this.closedByParent=!1,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0,this.preventNamespaceInheritance=!1}requireExtraParent(e){return!1}isClosedByChild(e){return!1}getContentType(){return Se.PARSABLE_DATA}};function Lm(n){return Pm}class Mt extends gu{constructor(){super(Lm)}parse(e,t,s){return super.parse(e,t,s)}}const Gi="trans-unit",Nl="context";class Pl extends $s{write(e,t){const s=new Um,r=[];e.forEach(l=>{let c=[];l.sources.forEach(h=>{let m=new N("context-group",{purpose:"location"});m.children.push(new M(10),new N(Nl,{"context-type":"sourcefile"},[new k(h.filePath)]),new M(10),new N(Nl,{"context-type":"linenumber"},[new k(`${h.startLine}`)]),new M(8)),c.push(new M(8),m)});const p=new N(Gi,{id:l.id,datatype:"html"});p.children.push(new M(8),new N("source",{},s.serialize(l.nodes)),...c),l.description&&p.children.push(new M(8),new N("note",{priority:"1",from:"description"},[new k(l.description)])),l.meaning&&p.children.push(new M(8),new N("note",{priority:"1",from:"meaning"}
1,[new k(l.meaning)])),p.children.push(new M(6)),r.push(new M(6),p)});const i=new N("body",{},[...r,new M(4)]),o=new N("file",{"source-language":t||"en",datatype:"plaintext",original:"ng2.template"},[new M(4),i,new M(2)]),a=new N("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new M(2),o,new M]);return Ur([new Hr({version:"1.0",encoding:"UTF-8"}),new M,a,new M])}load(e,t){const s=new Hm,{locale:r,msgIdToHtml:i,errors:o}=s.parse(e,t),a={},l=new jm;if(Object.keys(i).forEach(c=>{const{i18nNodes:p,errors:h}=l.convert(i[c],t);o.push(...h),a[c]=p}),o.length)throw new Error(`xliff parse errors:\n${o.join("\n")}`);return{locale:r,i18nNodesByMsgId:a}}digest(e){return no(e)}}class Um{visitText(e,t){return[new k(e.value)]}visitContainer(e,t){const s=[];return e.children.forEach(r=>s.push(...r.visit(this))),s}visitIcu(e,t){const s=[new k(`{${e.expressionPlaceholder}, ${e.type}, `)];return Object.keys(e.cases).forEach(r=>{s.push(new k(`${r} {`),...e.cases[r].visit(this),new k("} "))}),s.push(new k("}")),s}visitTagPlaceholder(e,t){const s=function Wm(n){switch(n.toLowerCase()){case"br":return"lb";case"img":return"image";default:return`x-${n}`}}(e.tag);if(e.isVoid)return[new N("x",{id:e.startName,ctype:s,"equiv-text":`<${e.tag}/>`})];const r=new N("x",{id:e.startName,ctype:s,"equiv-text":`<${e.tag}>`}),i=new N("x",{id:e.closeName,ctype:s,"equiv-text":`</${e.tag}>`});return[r,...this.serialize(e.children),i]}visitPlaceholder(e,t){return[new N("x",{id:e.name,"equiv-text":`{{${e.value}}}`})]}visitIcuPlaceholder(e,t){const s=`{${e.value.expression}, ${e.value.type}, ${Object.keys(e.value.cases).map(r=>r+" {...}").join(" ")}}`;return[new N("x",{id:e.name,"equiv-text":s})]}serialize(e){return[].concat(...e.map(t=>t.visit(this)))}}class Hm{constructor(){this._locale=null}parse(e,t){this._unitMlString=null,this._msgIdToHtml={};const s=(new Mt).parse(e,t);return this._errors=s.errors,P(this,s.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}}visitElement(e,t){switch(e.name){case Gi:this._unitMlString=null;const s=e.attrs.find(c=>"id"===c.name);if(s){const c=s.value;this._msgIdToHtml.hasOwnProperty(c)?this._addError(e,`Duplicated translations for msg ${c}`):(P(this,e.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[c]=this._unitMlString:this._addError(e,`Message ${c} misses a translation`))}else this._addError(e,`<${Gi}> misses the "id" attribute`);break;case"source":case"seg-source":case"alt-trans":break;case"target":const r=e.startSourceSpan.end.offset,i=e.endSourceSpan.start.offset,a=e.startSourceSpan.start.file.content.slice(r,i);this._unitMlString=a;break;case"file":const l=e.attrs.find(c=>"target-language"===c.name);l&&(this._locale=l.value),P(this,e.children,null);break;default:P(this,e.children,null)}}visitAttribute(e,t){}visitText(e,t){}visitComment(e,t){}visitExpansion(e,t){}visitExpansionCase(e,t){}_addError(e,t){this._errors.push(new Ze(e.sourceSpan,t))}}class jm{convert(e,t){const s=(new Mt).parse(e,t,{tokenizeExpansionForms:!0});return this._errors=s.errors,{i18nNodes:this._errors.length>0||0==s.rootNodes.length?[]:[].concat(...P(this,s.rootNodes)),errors:this._errors}}visitText(e,t){return new je(e.value,e.sourceSpan)}visitElement(e,t){if("x"===e.name){const s=e.attrs.find(r=>"id"===r.name);return s?new Ge("",s.value,e.sourceSpan):(this._addError(e,'<x> misses the "id" attribute'),null)}return"mrk"===e.name?[].concat(...P(this,e.children)):(this._addError(e,"Unexpected tag"),null)}visitExpansion(e,t){const s={};return P(this,e.cases).forEach(r=>{s[r.value]=new We(r.nodes,e.sourceSpan)}),new Yt(e.switchValue,e.type,s,e.sourceSpan)}visitExpansionCase(e,t){return{value:e.value,nodes:P(this,e.expression)}}visitComment(e,t){}visitAttribute(e,t){}_addError(e,t){this._errors.push(new Ze(e.sourceSpan,t))}}const kt="ph",zi="unit";class kl extends $s{write(e,t){const s=new Qm,r=[];e.forEach(a=>{const l=new N(zi,{id:a.id}),c=new N("notes");(a.description||a.meaning)&&(a.description&&c.children.push(new M(8),new N("note",{category:"description"},[new k(a.description)])),a.meaning&&c.children.push(new M(8),new N("note",{category:"meaning"}
1,[new k(a.meaning)]))),a.sources.forEach(h=>{c.children.push(new M(8),new N("note",{category:"location"},[new k(`${h.filePath}:${h.startLine}${h.endLine!==h.startLine?","+h.endLine:""}`)]))}),c.children.push(new M(6)),l.children.push(new M(6),c);const p=new N("segment");p.children.push(new M(8),new N("source",{},s.serialize(a.nodes)),new M(6)),l.children.push(new M(6),p,new M(4)),r.push(new M(4),l)});const i=new N("file",{original:"ng.template",id:"ngi18n"},[...r,new M(2)]),o=new N("xliff",{version:"2.0",xmlns:"urn:oasis:names:tc:xliff:document:2.0",srcLang:t||"en"},[new M(2),i,new M]);return Ur([new Hr({version:"1.0",encoding:"UTF-8"}),new M,o,new M])}load(e,t){const s=new Jm,{locale:r,msgIdToHtml:i,errors:o}=s.parse(e,t),a={},l=new Zm;if(Object.keys(i).forEach(c=>{const{i18nNodes:p,errors:h}=l.convert(i[c],t);o.push(...h),a[c]=p}),o.length)throw new Error(`xliff2 parse errors:\n${o.join("\n")}`);return{locale:r,i18nNodesByMsgId:a}}digest(e){return Ir(e)}}class Qm{visitText(e,t){return[new k(e.value)]}visitContainer(e,t){const s=[];return e.children.forEach(r=>s.push(...r.visit(this))),s}visitIcu(e,t){const s=[new k(`{${e.expressionPlaceholder}, ${e.type}, `)];return Object.keys(e.cases).forEach(r=>{s.push(new k(`${r} {`),...e.cases[r].visit(this),new k("} "))}),s.push(new k("}")),s}visitTagPlaceholder(e,t){const s=function eg(n){switch(n.toLowerCase()){case"br":case"b":case"i":case"u":return"fmt";case"img":return"image";case"a":return"link";default:return"other"}}(e.tag);if(e.isVoid)return[new N(kt,{id:(this._nextPlaceholderId++).toString(),equiv:e.startName,type:s,disp:`<${e.tag}/>`})];const r=new N("pc",{id:(this._nextPlaceholderId++).toString(),equivStart:e.startName,equivEnd:e.closeName,type:s,dispStart:`<${e.tag}>`,dispEnd:`</${e.tag}>`}),i=[].concat(...e.children.map(o=>o.visit(this)));return i.length?i.forEach(o=>r.children.push(o)):r.children.push(new k("")),[r]}visitPlaceholder(e,t){const s=(this._nextPlaceholderId++).toString();return[new N(kt,{id:s,equiv:e.name,disp:`{{${e.value}}}`})]}visitIcuPlaceholder(e,t){const s=Object.keys(e.value.cases).map(i=>i+" {...}").join(" "),r=(this._nextPlaceholderId++).toString();return[new N(kt,{id:r,equiv:e.name,disp:`{${e.value.expression}, ${e.value.type}, ${s}}`})]}serialize(e){return this._nextPlaceholderId=0,[].concat(...e.map(t=>t.visit(this)))}}class Jm{constructor(){this._locale=null}parse(e,t){this._unitMlString=null,this._msgIdToHtml={};const s=(new Mt).parse(e,t);return this._errors=s.errors,P(this,s.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}}visitElement(e,t){switch(e.name){case zi:this._unitMlString=null;const s=e.attrs.find(p=>"id"===p.name);if(s){const p=s.value;this._msgIdToHtml.hasOwnProperty(p)?this._addError(e,`Duplicated translations for msg ${p}`):(P(this,e.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[p]=this._unitMlString:this._addError(e,`Message ${p} misses a translation`))}else this._addError(e,`<${zi}> misses the "id" attribute`);break;case"source":break;case"target":const r=e.startSourceSpan.end.offset,i=e.endSourceSpan.start.offset,a=e.startSourceSpan.start.file.content.slice(r,i);this._unitMlString=a;break;case"xliff":const l=e.attrs.find(p=>"trgLang"===p.name);l&&(this._locale=l.value);const c=e.attrs.find(p=>"version"===p.name);if(c){const p=c.value;"2.0"!==p?this._addError(e,`The XLIFF file version ${p} is not compatible with XLIFF 2.0 serializer`):P(this,e.children,null)}break;default:P(this,e.children,null)}}visitAttribute(e,t){}visitText(e,t){}visitComment(e,t){}visitExpansion(e,t){}visitExpansionCase(e,t){}_addError(e,t){this._errors.push(new Ze(e.sourceSpan,t))}}class Zm{convert(e,t){const s=(new Mt).parse(e,t,{tokenizeExpansionForms:!0});return this._errors=s.errors,{i18nNodes:this._errors.length>0||0==s.rootNodes.length?[]:[].concat(...P(this,s.rootNodes)),errors:this._errors}}visitText(e,t){return new je(e.value,e.sourceSpan)}visitElement(e,t){switch(e.name){case kt:const s=e.attrs.find(o=>"equiv"===o.name);if(s)return[new Ge("",s.value,e.sourceSpan)];this._addError(e,`<${kt}> misses the "equiv" attribute`);break;case"pc":const r=e.attrs.find(o=>"equivStart"===o.name),i=e.attrs.find(o=>"equivEnd"===o.name);if(r){if(i){const o=r.value,a=i.value;return[].concat(new Ge("",o,e.sourceSpan),...e.children.map(c=>c.visit(this,null)),new Ge("",a,e.sourceSpan))}this._addError(e,`<${kt}> misses the "equivEnd" attribute`)}else this._addError(e,`<${kt}> misses the "equivStart" attribute`);break;case"mrk":return[].concat(...P(this,e.children));default:this._addError(e,"Unexpected tag")}return null}visitExpansion(e,t){const s={};
1return P(this,e.cases).forEach(r=>{s[r.value]=new We(r.nodes,e.sourceSpan)}),new Yt(e.switchValue,e.type,s,e.sourceSpan)}visitExpansionCase(e,t){return{value:e.value,nodes:[].concat(...P(this,e.expression))}}visitComment(e,t){}visitAttribute(e,t){}_addError(e,t){this._errors.push(new Ze(e.sourceSpan,t))}}const Bl="translationbundle",Fl="translation";class Ol extends $s{write(e,t){throw new Error("Unsupported")}load(e,t){const s=new sg,{locale:r,msgIdToHtml:i,errors:o}=s.parse(e,t),a={},l=new ng;if(Object.keys(i).forEach(c=>{!function tg(n,e,t){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){const s=t();return Object.defineProperty(n,e,{enumerable:!0,value:s}),s},set:s=>{throw new Error("Could not overwrite an XTB translation")}})}(a,c,function(){const{i18nNodes:h,errors:m}=l.convert(i[c],t);if(m.length)throw new Error(`xtb parse errors:\n${m.join("\n")}`);return h})}),o.length)throw new Error(`xtb parse errors:\n${o.join("\n")}`);return{locale:r,i18nNodesByMsgId:a}}digest(e){return Ko(e)}createNameMapper(e){return new Wo(e,jr)}}class sg{constructor(){this._locale=null}parse(e,t){this._bundleDepth=0,this._msgIdToHtml={};const s=(new Mt).parse(e,t);return this._errors=s.errors,P(this,s.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}}visitElement(e,t){switch(e.name){case Bl:this._bundleDepth++,this._bundleDepth>
11&&this._addError(e,`<${Bl}> elements can not be nested`);const s=e.attrs.find(i=>"lang"===i.name);s&&(this._locale=s.value),P(this,e.children,null),this._bundleDepth--;break;case Fl:const r=e.attrs.find(i=>"id"===i.name);if(r){const i=r.value;if(this._msgIdToHtml.hasOwnProperty(i))this._addError(e,`Duplicated translations for msg ${i}`);else{const o=e.startSourceSpan.end.offset,a=e.endSourceSpan.start.offset,c=e.startSourceSpan.start.file.content.slice(o,a);this._msgIdToHtml[i]=c}}else this._addError(e,`<${Fl}> misses the "id" attribute`);break;default:this._addError(e,"Unexpected tag")}}visitAttribute(e,t){}visitText(e,t){}visitComment(e,t){}visitExpansion(e,t){}visitExpansionCase(e,t){}_addError(e,t){this._errors.push(new Ze(e.sourceSpan,t))}}class ng{convert(e,t){const s=(new Mt).parse(e,t,{tokenizeExpansionForms:!0});return this._errors=s.errors,{i18nNodes:this._errors.length>0||0==s.rootNodes.length?[]:P(this,s.rootNodes),errors:this._errors}}visitText(e,t){return new je(e.value,e.sourceSpan)}visitExpansion(e,t){const s={};return P(this,e.cases).forEach(r=>{s[r.value]=new We(r.nodes,e.sourceSpan)}),new Yt(e.switchValue,e.type,s,e.sourceSpan)}visitExpansionCase(e,t){return{value:e.value,nodes:P(this,e.expression)}}visitElement(e,t){if("ph"===e.name){const s=e.attrs.find(r=>"name"===r.name);if(s)return new Ge("",s.value,e.sourceSpan);this._addError(e,'<ph> misses the "name" attribute')}else this._addError(e,"Unexpected tag");return null}visitComment(e,t){}visitAttribute(e,t){}_addError(e,t){this._errors.push(new Ze(e.sourceSpan,t))}}class Cr{constructor(e={},t,s,r,i=_t.Warning,o){this._i18nNodesByMsgId=e,this.digest=s,this.mapperFactory=r,this._i18nToHtml=new rg(e,t,s,r,i,o)}static load(e,t,s,r,i){const{locale:o,i18nNodesByMsgId:a}=s.load(e,t);return new Cr(a,o,p=>s.digest(p),p=>s.createNameMapper(p),r,i)}get(e){const t=this._i18nToHtml.convert(e);if(t.errors.length)throw new Error(t.errors.join("\n"));return t.nodes}has(e){return this.digest(e)in this._i18nNodesByMsgId}}class rg{constructor(e={},t,s,r,i,o){this._i18nNodesByMsgId=e,this._locale=t,this._digest=s,this._mapperFactory=r,this._missingTranslationStrategy=i,this._console=o,this._contextStack=[],this._errors=[]}convert(e){this._contextStack.length=0,this._errors.length=0;const t=this._convertToText(e),s=e.nodes[0].sourceSpan.start.file.url,r=(new Li).parse(t,s,{tokenizeExpansionForms:!0});return{nodes:r.rootNodes,errors:[...this._errors,...r.errors]}}visitText(e,t){return Rn(e.value)}visitContainer(e,t){return e.children.map(s=>s.visit(this)).join("")}visitIcu(e,t){const s=Object.keys(e.cases).map(i=>`${i} {${e.cases[i].visit(this)}}`);return`{${this._srcMsg.placeholders.hasOwnProperty(e.expression)?this._srcMsg.placeholders[e.expression].text:e.expression}, ${e.type}, ${s.join(" ")}}`}visitPlaceholder(e,t){const s=this._mapper(e.name);return this._srcMsg.placeholders.hasOwnProperty(s)?this._srcMsg.placeholders[s].text:this._srcMsg.placeholderToMessage.hasOwnProperty(s)?this._convertToText(this._srcMsg.placeholderToMessage[s]):(this._addError(e,`Unknown placeholder "${e.name}"`),"")}visitTagPlaceholder(e,t){const s=`${e.tag}`,r=Object.keys(e.attrs).map(o=>`${o}="${e.attrs[o]}"`).join(" ");if(e.isVoid)return`<${s} ${r}/>`;return`<${s} ${r}>${e.children.map(o=>o.visit(this)).join("")}</${s}>`}visitIcuPlaceholder(e,t){return this._convertToText(this._srcMsg.placeholderToMessage[e.name])}_convertToText(e){const t=this._digest(e),s=this._mapperFactory?this._mapperFactory(e):null;let r;if(this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=e,this._i18nNodesByMsgId.hasOwnProperty(t))r=this._i18nNodesByMsgId[t],this._mapper=a=>s?s.toInternalName(a):a;else{if(this._missingTranslationStrategy===_t.Error){const a=this._locale?` for locale "${this._locale}"`:"";this._addError(e.nodes[0],`Missing translation for message "${t}"${a}`)}else if(this._console&&this._missingTranslationStrategy===_t.Warning){const a=this._locale?` for locale "${this._locale}"`:"";this._console.warn(`Missing translation for message "${t}"${a}`)}r=e.nodes,this._mapper=a=>a}const i=r.map(a=>a.visit(this)).join(""),o=this._contextStack.pop();return this._srcMsg=o.msg,this._mapper=o.mapper,i}_addError(e,t){this._errors.push(new Ze(e.sourceSpan,t))}}class ig{constructor(e,t,s,r=_t.Warning,i){if(this._htmlParser=e,t){const o=function og(n){switch(n=(n||"xlf").toLowerCase()){case"xmb":return new zo;case"xtb":return new Ol;case"xliff2":case"xlf2":return new kl;default:return new Pl}}(s);this._translationBundle=Cr.load(t,"i18n",o,r,i)}else this._translationBundle=new Cr({}
1,null,no,void 0,r,i)}parse(e,t,s={}){const r=s.interpolationConfig||he,i=this._htmlParser.parse(e,t,{interpolationConfig:r,...s});return i.errors.length?new ms(i.rootNodes,i.errors):function Am(n,e,t,s,r){return new Il(s,r).merge(n,e,t)}(i.rootNodes,this._translationBundle,r,[],{})}}class ag{constructor(e,t,s,r=null){this._htmlParser=e,this._implicitTags=t,this._implicitAttrs=s,this._locale=r,this._messages=[]}updateFromTemplate(e,t,s){const r=this._htmlParser.parse(e,t,{tokenizeExpansionForms:!0,interpolationConfig:s});if(r.errors.length)return r.errors;const i=function Cm(n,e,t,s){return new Il(t,s).extract(n,e)}(r.rootNodes,s,this._implicitTags,this._implicitAttrs);return i.errors.length?i.errors:(this._messages.push(...i.messages),[])}getMessages(){return this._messages}write(e,t){const s={},r=new ug;this._messages.forEach(o=>{const a=e.digest(o);s.hasOwnProperty(a)?s[a].sources.push(...o.sources):s[a]=o});const i=Object.keys(s).map(o=>{const a=e.createNameMapper(s[o]),l=s[o],c=a?r.convert(l.nodes,a):l.nodes;let p=new He(c,{},{},l.meaning,l.description,o);return p.sources=l.sources,t&&p.sources.forEach(h=>h.filePath=t(h.filePath)),p});return e.write(i,this._locale)}}class ug extends Gc{convert(e,t){return t?e.map(s=>s.visit(this,t)):e}visitTagPlaceholder(e,t){const s=t.toPublicName(e.startName),r=e.closeName?t.toPublicName(e.closeName):e.closeName,i=e.children.map(o=>o.visit(this,t));return new qr(e.tag,e.attrs,s,r,i,e.isVoid,e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}visitPlaceholder(e,t){return new Ge(e.value,t.toPublicName(e.name),e.sourceSpan)}visitIcuPlaceholder(e,t){return new Qt(e.value,t.toPublicName(e.name),e.sourceSpan)}}var Vl;!function(n){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"}(Vl||(Vl={}));class lg{constructor(e){this.directiveMatcher=e}bind(e){if(!e.template)throw new Error("Binding without a template not yet supported");const t=pn.apply(e.template),s=function cg(n){const e=new Map;function t(i){if(e.has(i.template))return e.get(i.template);const o=i.namedEntities;let a;return a=null!==i.parentScope?new Map([...t(i.parentScope),...o]):new Map(o),e.set(i.template,a),a}const s=[n];for(;s.length>0;){const i=s.pop();for(const o of i.childScopes.values())s.push(o);t(i)}const r=new Map;for(const[i,o]of e)r.set(i,new Set(o.values()));return r}(t),{directives:r,bindings:i,references:o}=Ki.apply(e.template,this.directiveMatcher),{expressions:a,symbols:l,nestingLevel:c,usedPipes:p}=Ar.applyWithScope(e.template,t);return new ql(e,r,i,o,a,l,c,s,p)}}class pn{constructor(e,t){this.parentScope=e,this.template=t,this.namedEntities=new Map,this.childScopes=new Map}static newRootScope(){return new pn(null,null)}static apply(e){const t=pn.newRootScope();return t.ingest(e),t}
1ingest(e){e instanceof Be?(e.variables.forEach(t=>this.visitVariable(t)),e.children.forEach(t=>t.visit(this))):e.forEach(t=>t.visit(this))}visitElement(e){e.references.forEach(t=>this.visitReference(t)),e.children.forEach(t=>t.visit(this))}visitTemplate(e){e.references.forEach(s=>this.visitReference(s));const t=new pn(this,e);t.ingest(e),this.childScopes.set(e,t)}visitVariable(e){this.maybeDeclare(e)}visitReference(e){this.maybeDeclare(e)}visitContent(e){}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundText(e){}visitText(e){}visitTextAttribute(e){}visitIcu(e){}maybeDeclare(e){this.namedEntities.has(e.name)||this.namedEntities.set(e.name,e)}lookup(e){return this.namedEntities.has(e)?this.namedEntities.get(e):null!==this.parentScope?this.parentScope.lookup(e):null}getChildScope(e){const t=this.childScopes.get(e);if(void 0===t)throw new Error(`Assertion error: child scope for ${e} not found`);return t}}class Ki{constructor(e,t,s,r){this.matcher=e,this.directives=t,this.bindings=s,this.references=r}static apply(e,t){const s=new Map,r=new Map,i=new Map;return new Ki(t,s,r,i).ingest(e),{directives:s,bindings:r,references:i}}ingest(e){e.forEach(t=>t.visit(this))}visitElement(e){this.visitElementOrTemplate(e.name,e)}visitTemplate(e){this.visitElementOrTemplate("ng-template",e)}visitElementOrTemplate(e,t){const s=function Lf(n,e){const t=new Ue,s=we(n)[1];return t.setElement(s),Object.getOwnPropertyNames(e).forEach(r=>{const i=we(r)[1],o=e[r];t.addAttribute(i,o),"class"===r.toLowerCase()&&o.trim().split(/\s+/).forEach(l=>t.addClassName(l))}),t}(e,function Sp(n){const e={};return n instanceof Be&&"ng-template"!==n.tagName?n.templateAttrs.forEach(t=>e[t.name]=""):(n.attributes.forEach(t=>{Qo(t.name)||(e[t.name]=t.value)}),n.inputs.forEach(t=>{e[t.name]=""}),n.outputs.forEach(t=>{e[t.name]=""})),e}(t)),r=[];this.matcher.match(s,(o,a)=>r.push(...a)),r.length>0&&this.directives.set(t,r),t.references.forEach(o=>{let a=null;if(""===o.value.trim())a=r.find(l=>l.isComponent)||null;else if(a=r.find(l=>null!==l.exportAs&&l.exportAs.some(c=>c===o.value))||null,null===a)return;null!==a?this.references.set(o,{directive:a,node:t}):this.references.set(o,t)});const i=(o,a)=>{const l=r.find(p=>p[a].hasBindingPropertyName(o.name)),c=void 0!==l?l:t;this.bindings.set(o,c)};t.inputs.forEach(o=>i(o,"inputs")),t.attributes.forEach(o=>i(o,"inputs")),t instanceof Be&&t.templateAttrs.forEach(o=>i(o,"inputs")),t.outputs.forEach(o=>i(o,"outputs")),t.children.forEach(o=>o.visit(this))}visitContent(e){}visitVariable(e){}visitReference(e){}visitTextAttribute(e){}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundAttributeOrEvent(e){}visitText(e){}visitBoundText(e){}visitIcu(e){}}class Ar extends ci{constructor(e,t,s,r,i,o,a){super(),this.bindings=e,this.symbols=t,this.usedPipes=s,this.nestingLevel=r,this.scope=i,this.template=o,this.level=a,this.visitNode=l=>l.visit(this)}visit(e,t){e instanceof H?e.visit(this,t):e.visit(this)}static applyWithScope(e,t){const s=new Map,r=new Map,i=new Map,o=new Set;return new Ar(s,r,o,i,t,e instanceof Be?e:null,0).ingest(e),{expressions:s,symbols:r,nestingLevel:i,usedPipes:o}}
1ingest(e){e instanceof Be?(e.variables.forEach(this.visitNode),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level)):e.forEach(this.visitNode)}visitElement(e){e.inputs.forEach(this.visitNode),e.outputs.forEach(this.visitNode),e.children.forEach(this.visitNode)}visitTemplate(e){e.inputs.forEach(this.visitNode),e.outputs.forEach(this.visitNode),e.templateAttrs.forEach(this.visitNode),e.references.forEach(this.visitNode);const t=this.scope.getChildScope(e);new Ar(this.bindings,this.symbols,this.usedPipes,this.nestingLevel,t,e,this.level+1).ingest(e)}visitVariable(e){null!==this.template&&this.symbols.set(e,this.template)}visitReference(e){null!==this.template&&this.symbols.set(e,this.template)}visitText(e){}visitContent(e){}visitTextAttribute(e){}visitIcu(e){Object.keys(e.vars).forEach(t=>e.vars[t].visit(this)),Object.keys(e.placeholders).forEach(t=>e.placeholders[t].visit(this))}visitBoundAttribute(e){e.value.visit(this)}visitBoundEvent(e){e.handler.visit(this)}visitBoundText(e){e.value.visit(this)}visitPipe(e,t){return this.usedPipes.add(e.name),super.visitPipe(e,t)}visitPropertyRead(e,t){return this.maybeMap(t,e,e.name),super.visitPropertyRead(e,t)}visitSafePropertyRead(e,t){return this.maybeMap(t,e,e.name),super.visitSafePropertyRead(e,t)}visitPropertyWrite(e,t){return this.maybeMap(t,e,e.name),super.visitPropertyWrite(e,t)}maybeMap(e,t,s){if(!(t.receiver instanceof Nt))return;let r=this.scope.lookup(s);null!==r&&this.bindings.set(t,r)}}class ql{constructor(e,t,s,r,i,o,a,l,c){this.target=e,this.directives=t,this.bindings=s,this.references=r,this.exprTargets=i,this.symbols=o,this.nestingLevel=a,this.templateEntities=l,this.usedPipes=c}getEntitiesInTemplateScope(e){var t;return null!==(t=this.templateEntities.get(e))&&void 0!==t?t:new Set}getDirectivesOfNode(e){return this.directives.get(e)||null}getReferenceTarget(e){return this.references.get(e)||null}getConsumerOfBinding(e){return this.bindings.get(e)||null}getExpressionTarget(e){return this.exprTargets.get(e)||null}getTemplateOfSymbol(e){return this.symbols.get(e)||null}getNestingLevel(e){return this.nestingLevel.get(e)||0}getUsedDirectives(){const e=new Set;return this.directives.forEach(t=>t.forEach(s=>e.add(s))),Array.from(e.values())}getUsedPipes(){return Array.from(this.usedPipes)}}function pg(n){var e,t;return Y([],[$o(E(u.setClassMetadata).callFn([n.type,n.decorators,null!==(e=n.ctorParameters)&&void 0!==e?e:f(null),null!==(t=n.propDecorators)&&void 0!==t?t:f(null)])).toStmt()]).callFn([])}const hg="12.0.0";function dg(n){const e=new j;return e.set("minVersion",f(hg)),e.set("version",f("15.2.9")),e.set("ngImport",E(u.core)),e.set("type",n.type),e.set("decorators",n.decorators),e.set("ctorParameters",n.ctorParameters),e.set("propDecorators",n.propDecorators),E(u.declareClassMetadata).callFn([e.toLiteralMap()])}function hn(n,e){return null===n||0===n.length?null:b(n.map(t=>e(t)))}function Xi(n,e){const t=Object.keys(n).map(s=>{const r=n[s];return{key:s,value:e(r),quoted:!0}});return t.length>0?G(t):null}function Ul(n){const e=new j;return e.set("token",n.token),null!==n.attributeNameType&&e.set("attribute",f(!0)),n.host&&e.set("host",f(!0)),n.optional&&e.set("optional",f(!0)),n.self&&e.set("self",f(!0)),n.skipSelf&&e.set("skipSelf",f(!0)),e.toLiteralMap()}const mg="14.0.0";function gg(n){const e=Hl(n);return{expression:E(u.declareDirective).callFn([e.toLiteralMap()]),type:il(n),statements:[]}}function Hl(n){var e;const t=new j;return t.set("minVersion",f(mg)),t.set("version",f("15.2.9")),t.set("type",n.internalType),n.isStandalone&&t.set("isStandalone",f(n.isStandalone)),null!==n.selector&&t.set("selector",f(n.selector)),t.set("inputs",$n(n.inputs,!0)),t.set("outputs",$n(n.outputs)),t.set("host",function vg(n){const e=new j;return e.set("attributes",Xi(n.attributes,t=>t)),e.set("listeners",Xi(n.listeners,f)),e.set("properties",Xi(n.properties,f)),n.specialAttributes.styleAttr&&e.set("styleAttribute",f(n.specialAttributes.styleAttr)),n.specialAttributes.classAttr&&e.set("classAttribute",f(n.specialAttributes.classAttr)),e.values.length>0?e.toLiteralMap():null}(n.host)),t.set("providers",n.providers),n.queries.length>0&&t.set("queries",b(n.queries.map(jl))),n.viewQueries.length>0&&t.set("viewQueries",b(n.viewQueries.map(jl))),null!==n.exportAs&&t.set("exportAs",ye(n.exportAs)),n.usesInheritance&&t.set("usesInheritance",f(!0)),n.lifecycle.usesOnChanges&&t.set("usesOnChanges",f(!0)),null!==(e=n.hostDirectives)&&void 0!==e&&e.length&&t.set("hostDirectives",function Eg(n){const e=n.map(t=>{const s=[{key:"directive",value:t.isForwardReference?$r(t.directive.type):t.directive.type,quoted:!1}],r=t.inputs?Sr(t.inputs):null,i=t.outputs?Sr(t.outputs):null;return r&&s.push({key:"inputs",value:r,quoted:!1}),i&&s.push({key:"outputs",value:i,quoted:!1}),G(s)});return b(e)}(n.hostDirectives)),t.set("ngImport",E(u.core)),t}function jl(n){const e=new j;return e.set("propertyName",f(n.propertyName)),n.first&&e.set("first",f(!0)),e.set("predicate",Array.isArray(n.predicate)?ye(n.predicate):Kt(n.predicate)),n.emitDistinctChangesOnly||e.set("emitDistinctChangesOnly",f(!1)),n.descendants&&e.set("descendants",f(!0)),e.set("read",n.read),n.static&&e.set("static",f(!0)),e.toLiteralMap()}function _g(n,e,t){const s=function yg(n,e,t){const s=Hl(n);return s.set("template",function xg(n,e){if(null!==e.inlineTemplateLiteralExpression)return e.inlineTemplateLiteralExpression;if(e.isInline)return f(e.content,null,null);const t=e.content,s=new jn(t,e.sourceUrl),r=new ct(s,0,0,0),i=function Sg(n,e){const t=e.length;let s=0,r=0,i=0;do{s=e.indexOf("\n",r),-1!==s&&(r=s+1,i++)}while(-1!==s);return new ct(n,t,i,t-r)}(s,t),o=new W(r,i);return f(t,null,o)}(0,t)),t.isInline&&s.set("isInline",f(!0)),s.set("styles",hn(n.styles,f)),s.set("dependencies",function wg(n){const e=0!==n.declarationListEmitMode?$r:t=>t;return hn(n.declarations,t=>{switch(t.kind){case Ye.Directive:const s=new j;return s.set("kind",f(t.isComponent?"component":"directive")),s.set("type",e(t.type)),s.set("selector",f(t.selector)),s.set("inputs",hn(t.inputs,f)),s.set("outputs",hn(t.outputs,f)),s.set("exportAs",hn(t.exportAs,f)),s.toLiteralMap();case Ye.Pipe:const r=new j;return r.set("kind",f("pipe")),r.set("type",e(t.type)),r.set("name",f(t.name)),r.toLiteralMap();case Ye.NgModule:const i=new j;return i.set("kind",f("ngmodule")),i.set("type",e(t.type)),i.toLiteralMap()}})}(n)),s.set("viewProviders",n.viewProviders),s.set("animations",n.animations),void 0!==n.changeDetection&&s.set("changeDetection",E(u.ChangeDetectionStrategy).prop(Et[n.changeDetection])),n.encapsulation!==ue.Emulated&&s.set("encapsulation",E(u.ViewEncapsulation).prop(ue[n.encapsulation])),n.interpolation!==he&&s.set("interpolation",b([f(n.interpolation.start),f(n.interpolation.end)])),!0===e.preserveWhitespace
1s&&s.set("preserveWhitespaces",f(!0)),s}(n,e,t);return{expression:E(u.declareComponent).callFn([s.toLiteralMap()]),type:sl(n),statements:[]}}const Cg="12.0.0";function Ag(n){const e=new j;return e.set("minVersion",f(Cg)),e.set("version",f("15.2.9")),e.set("ngImport",E(u.core)),e.set("type",n.internalType),e.set("deps",function fg(n){return"invalid"===n?f("invalid"):null===n?f(null):b(n.map(Ul))}(n.deps)),e.set("target",E(u.FactoryTarget).prop(Ee[n.target])),{expression:E(u.declareFactory).callFn([e.toLiteralMap()]),statements:[],type:Vo(n)}}const Tg="12.0.0";function Ig(n){const e=function bg(n){const e=new j;if(e.set("minVersion",f(Tg)),e.set("version",f("15.2.9")),e.set("ngImport",E(u.core)),e.set("type",n.internalType),void 0!==n.providedIn){const t=Kt(n.providedIn);null!==t.value&&e.set("providedIn",t)}return void 0!==n.useClass&&e.set("useClass",Kt(n.useClass)),void 0!==n.useExisting&&e.set("useExisting",Kt(n.useExisting)),void 0!==n.useValue&&e.set("useValue",Kt(n.useValue)),void 0!==n.useFactory&&e.set("useFactory",n.useFactory),void 0!==n.deps&&e.set("deps",b(n.deps.map(Ul))),e}(n);return{expression:E(u.declareInjectable).callFn([e.toLiteralMap()]),type:Yr(n),statements:[]}}const Dg="12.0.0";function Ng(n){const e=function Pg(n){const e=new j;return e.set("minVersion",f(Dg)),e.set("version",f("15.2.9")),e.set("ngImport",E(u.core)),e.set("type",n.internalType),e.set("providers",n.providers),n.imports.length>0&&e.set("imports",b(n.imports)),e}(n);return{expression:E(u.declareInjector).callFn([e.toLiteralMap()]),type:Da(n),statements:[]}}const Lg="14.0.0";function Mg(n){const e=function Rg(n){const e=new j;return e.set("minVersion",f(Lg)),e.set("version",f("15.2.9")),e.set("ngImport",E(u.core)),e.set("type",n.internalType),n.bootstrap.length>0&&e.set("bootstrap",Te(n.bootstrap,n.containsForwardDecls)),n.declarations.length>0&&e.set("declarations",Te(n.declarations,n.containsForwardDecls)),n.imports.length>0&&e.set("imports",Te(n.imports,n.containsForwardDecls)),n.exports.length>0&&e.set("exports",Te(n.exports,n.containsForwardDecls)),null!==n.schemas&&n.schemas.length>0&&e.set("schemas",b(n.schemas.map(t=>t.value))),null!==n.id&&e.set("id",n.id),e}(n);return{expression:E(u.declareNgModule).callFn([e.toLiteralMap()]),type:Pa(n),statements:[]}}const kg="14.0.0";function Bg(n){const e=function Fg(n){const e=new j;return e.set("minVersion",f(kg)),e.set("version",f("15.2.9")),e.set("ngImport",E(u.core)),e.set("type",n.internalType),n.isStandalone&&e.set("isStandalone",f(n.isStandalone)),e.set("name",f(n.pipeName)),!1===n.pure&&e.set("pure",f(n.pure)),e}(n);return{expression:E(u.declarePipe).callFn([e.toLiteralMap()]),type:La(n),statements:[]}}wl(zt)}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.