Submit
Path:
~
/
/
opt
/
psa
/
admin
/
htdocs
/
modules
/
imunify360
/
assets
/
static
/
shared-dependencies
/
File Content:
compiler.min.cd009adf48f8.js
System.register([],function(e){"use strict";return{execute:function(){var t;function s(e){if(":"!=e[0])return[null,e];const t=e.indexOf(":",1);if(-1===t)throw new Error(`Unsupported format "${e}" expecting ":namespace:name"`);return[e.slice(1,t),e.slice(t+1)]}function n(e){return"ng-container"===s(e)[1]}function r(e){return"ng-content"===s(e)[1]}function i(e){return"ng-template"===s(e)[1]}function a(e){return null===e?null:s(e)[0]}function o(e,t){return e?`:${e}:${t}`:t}e({compileClassMetadata:function(e){const t=ft(Bt.setClassMetadata).callFn([e.type,e.decorators,e.ctorParameters??Tt(null),e.propDecorators??Tt(null)]);return _t([],[ns(t).toStmt()]).callFn([])},compileComponentFromMetadata:yc,compileDeclareClassMetadata:function(e){const t=new On;return t.set("minVersion",Tt(Hu)),t.set("version",Tt("14.2.12")),t.set("ngImport",ft(Bt.core)),t.set("type",e.type),t.set("decorators",e.decorators),t.set("ctorParameters",e.ctorParameters),t.set("propDecorators",e.propDecorators),ft(Bt.declareClassMetadata).callFn([t.toLiteralMap()])},compileDeclareComponentFromMetadata:function(e,t,s){const n=function(e,t,s){const n=Yu(e);n.set("template",function(e,t){if(null!==t.inlineTemplateLiteralExpression)return t.inlineTemplateLiteralExpression;if(t.isInline)return Tt(t.content,null,null);const s=t.content,n=new yr(s,t.sourceUrl),r=new fr(n,0,0,0),i=function(e,t){const s=t.length;let n=0,r=0,i=0;do{n=t.indexOf("\n",r),-1!==n&&(r=n+1,i++)}while(-1!==n);return new fr(e,s,i,s-r)}(n,s),a=new xr(r,i);return Tt(s,null,a)}(0,s)),s.isInline&&n.set("isInline",Tt(!0));n.set("styles",ju(e.styles,Tt)),n.set("dependencies",function(e){const t=0!==e.declarationListEmitMode?cs:e=>e;return ju(e.declarations,e=>{switch(e.kind){case Or.Directive:const s=new On;return s.set("kind",Tt(e.isComponent?"component":"directive")),s.set("type",t(e.type)),s.set("selector",Tt(e.selector)),s.set("inputs",ju(e.inputs,Tt)),s.set("outputs",ju(e.outputs,Tt)),s.set("exportAs",ju(e.exportAs,Tt)),s.toLiteralMap();case Or.Pipe:const n=new On;return n.set("kind",Tt("pipe")),n.set("type",t(e.type)),n.set("name",Tt(e.name)),n.toLiteralMap();case Or.NgModule:const r=new On;return r.set("kind",Tt("ngmodule")),r.set("type",t(e.type)),r.toLiteralMap()}})}(e)),n.set("viewProviders",e.viewProviders),n.set("animations",e.animations),void 0!==e.changeDetection&&n.set("changeDetection",ft(Bt.ChangeDetectionStrategy).prop(x[e.changeDetection]));e.encapsulation!==y.Emulated&&n.set("encapsulation",ft(Bt.ViewEncapsulation).prop(y[e.encapsulation]));e.interpolation!==jn&&n.set("interpolation",wt([Tt(e.interpolation.start),Tt(e.interpolation.end)]));!0===t.preserveWhitespaces&&n.set("preserveWhitespaces",Tt(!0));return n}(e,t,s),r=ft(Bt.declareComponent).callFn([n.toLiteralMap()]),i=xc(e);return{expression:r,type:i,statements:[]}},compileDeclareDirectiveFromMetadata:function(e){const t=Yu(e),s=ft(Bt.declareDirective).callFn([t.toLiteralMap()]),n=Cc(e);return{expression:s,type:n,statements:[]}},compileDeclareFactoryFunction:function(e){const t=new On;return t.set("minVersion",Tt(Xu)),t.set("version",Tt("14.2.12")),t.set("ngImport",ft(Bt.core)),t.set("type",e.internalType),t.set("deps",zu(e.deps)),t.set("target",ft(Bt.FactoryTarget).prop(ps[e.target])),{expression:ft(Bt.declareFactory).callFn([t.toLiteralMap()]),statements:[],type:ds(e)}},compileDeclareInjectableFromMetadata:function(e){const t=function(e){const t=new On;if(t.set("minVersion",Tt(Ju)),t.set("version",Tt("14.2.12")),t.set("ngImport",ft(Bt.core)),t.set("type",e.internalType),void 0!==e.providedIn){const s=ls(e.providedIn);null!==s.value&&t.set("providedIn",s)}void 0!==e.useClass&&t.set("useClass",ls(e.useClass));void 0!==e.useExisting&&t.set("useExisting",ls(e.useExisting));void 0!==e.useValue&&t.set("useValue",ls(e.useValue));void 0!==e.useFactory&&t.set("useFactory",e.useFactory);void 0!==e.deps&&t.set("deps",wt(e.deps.map(Ku)));return t}(e),s=ft(Bt.declareInjectable).callFn([t.toLiteralMap()]),n=Bn(e);return{expression:s,type:n,statements:[]}},compileDeclareInjectorFromMetadata:function(e){const t=function(e){const t=new On;t.set("minVersion",Tt(Zu)),t.set("version",Tt("14.2.12")),t.set("ngImport",ft(Bt.core)),t.set("type",e.internalType),t.set("providers",e.providers),e.imports.length>0&&t.set("imports",wt(e.imports));return t}(e),s=ft(Bt.declareInjector).callFn([t.toLiteralMap()]),n=Lr(e);return{expression:s,type:n,statements:[]}},compileDeclareNgModuleFromMetadata:function(e){const t=function(e){const t=new On;t.set("minVersion",Tt(ep)),t.set("version",Tt("14.2.12")),t.set("ngImport",ft(Bt.core)),t.set("type",e.internalType),e.bootstrap.length>0&&t.set("bootstrap",as(e.bootstrap,e.containsForwardDecls));e.declarations.length>0&&t.set("declarations",as(e.declarations,e.containsForwardDecls));e.imports.length>0&&t.set("imports",as(e.imports,e.containsForwardDecls));e.exports.length>0&&t.set("exports",as(e.exports,e.containsForwardDecls));null!==e.schemas&&e.schemas.length>0&&t.set("schemas",wt(e.schemas.map(e=>e.value)));null!==e.id&&t.set("id",e.id);return t}(e),s=ft(Bt.declareNgModule).callFn([t.toLiteralMap()]),n=Br(e);return{expression:s,type:n,statements:[]}},compileDeclarePipeFromMetadata:function(e){const t=function(e){const t=new On;t.set("minVersion",Tt(tp)),t.set("version",Tt("14.2.12")),t.set("ngImport",ft(Bt.core)),t.set("type",e.internalType),e.isStandalone&&t.set("isStandalone",Tt(e.isStandalone));t.set("name",Tt(e.pipeName)),!1===e.pure&&t.set("pure",Tt(e.pure));return t}(e),s=ft(Bt.declarePipe).callFn([t.toLiteralMap()]),n=Hr(e);return{expression:s,type:n,statements:[]}},compileDirectiveFromMetadata:fc,compileFactoryFunction:hs,compileInjectable:qn,compileInjector:Ar,compileNgModule:qr,compilePipeFromMetadata:Ur,computeMsgId:W,createInjectableType:Bn,createMayBeForwardRefExpression:os,devOnlyGuardedExpression:ns,getHtmlTagDefinition:p,getNsPrefix:a,getSafePropertyAccessString:ts,identifierName:br,isIdentifier:function(e){if(0==e.length)return!1;const t=new Va(e);if(!Ua(t.peek))return!1;t.advance();for(;t.peek!==Wn;){if(!Ha(t.peek))return!1;t.advance()}return!0},isNgContainer:n,isNgContent:r,isNgTemplate:i,jsDocComment:gt,leadingComment:mt,literalMap:St,makeBindingParser:sc,mergeNsAndName:o,parseHostBindings:Pc,parseTemplate:ec,preserveWhitespacesDefault:su,publishFacade:tu,r3JitTypeSourceSpan:Er,sanitizeIdentifier:Cr,splitNsName:s,verifyHostBindings:Ac,visitAll:ao}),e("TagContentType",t),function(e){e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA"}(t||e("TagContentType",t={}));class l{constructor({closedByChildren:e,implicitNamespacePrefix:s,contentType:n=t.PARSABLE_DATA,closedByParent:r=!1,isVoid:i=!1,ignoreFirstLf:a=!1,preventNamespaceInheritance:o=!1}={}){this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,e&&e.length>0&&e.forEach(e=>this.closedByChildren[e]=!0),this.isVoid=i,this.closedByParent=r||i,this.implicitNamespacePrefix=s||null,this.contentType=n,this.ignoreFirstLf=a,this.preventNamespaceInheritance=o}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){if("object"==typeof this.contentType){return(void 0===e?void 0:this.contentType[e])??this.contentType.default}return this.contentType}}let c,u;function p(e){return u||(c=new l,u={base:new l({isVoid:!0}),meta:new l({isVoid:!0}),area:new l({isVoid:!0}),embed:new l({isVoid:!0}),link:new l({isVoid:!0}),img:new l({isVoid:!0}),input:new l({isVoid:!0}),param:new l({isVoid:!0}),hr:new l({isVoid:!0}),br:new l({isVoid:!0}),source:new l({isVoid:!0}),track:new l({isVoid:!0}),wbr:new l({isVoid:!0}),p:new l({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 l({closedByChildren:["tbody","tfoot"]}),tbody:new l({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new l({closedByChildren:["tbody"],closedByParent:!0}),tr:new l({closedByChildren:["tr"],closedByParent:!0}),td:new l({closedByChildren:["td","th"],closedByParent:!0}),th:new l({closedByChildren:["td","th"],closedByParent:!0}),col:new l({isVoid:!0}),svg:new l({implicitNamespacePrefix:"svg"}),foreignObject:new l({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new l({implicitNamespacePrefix:"math"}),li:new l({closedByChildren:["li"],closedByParent:!0}),dt:new l({closedByChildren:["dt","dd"]}),dd:new l({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new l({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new l({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new l({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new l({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new l({closedByChildren:["optgroup"],closedByParent:!0}),option:new l({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new l({ignoreFirstLf:!0}),listing:new l({ignoreFirstLf:!0}),style:new l({contentType:t.RAW_TEXT}),script:new l({contentType:t.RAW_TEXT}),title:new l({contentType:{default:t.ESCAPABLE_RAW_TEXT,svg:t.PARSABLE_DATA}}),textarea:new l({contentType:t.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),u[e]??u[e.toLowerCase()]??c}e("HtmlTagDefinition",l);const h=new RegExp("(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g");class d{constructor(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}static parse(e){const t=[],s=(e,t)=>{t.notSelectors.length>0&&!t.element&&0==t.classNames.length&&0==t.attrs.length&&(t.element="*"),e.push(t)};let n,r=new d,i=r,a=!1;for(h.lastIndex=0;n=h.exec(e);){if(n[1]){if(a)throw new Error("Nesting :not in a selector is not allowed");a=!0,i=new d,r.notSelectors.push(i)}const e=n[2];if(e){const t=n[3];"#"===t?i.addAttribute("id",e.slice(1)):"."===t?i.addClassName(e.slice(1)):i.setElement(e)}const o=n[4];if(o&&i.addAttribute(i.unescapeAttribute(o),n[6]),n[7]&&(a=!1,i=r),n[8]){if(a)throw new Error("Multiple selectors in :not are not supported");s(t,r),r=i=new d}}return s(t,r),t}unescapeAttribute(e){let t="",s=!1;for(let n=0;n<e.length;n++){const r=e.charAt(n);if("\\"!==r){if("$"===r&&!s)throw new Error(`Error in attribute selector "${e}". Unescaped "$" is not supported. Please escape with "\\$".`);s=!1,t+=r}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}setElement(e=null){this.element=e}getMatchingElementTemplate(){const e=this.element||"div",t=this.classNames.length>0?` class="${this.classNames.join(" ")}"`:"";let s="";for(let e=0;e<this.attrs.length;e+=2){s+=` ${this.attrs[e]}${""!==this.attrs[e+1]?`="${this.attrs[e+1]}"`:""}`}return p(e).isVoid?`<${e}${t}${s}/>`:`<${e}${t}${s}></${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]),n=this.attrs[t+1];e+=`[${s}${n?"="+n:""}]`}return this.notSelectors.forEach(t=>e+=`:not(${t})`),e}}e("CssSelector",d);class m{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 m;return t.addSelectables(e,null),t}addSelectables(e,t){let s=null;e.length>1&&(s=new g(e),this._listContexts.push(s));for(let n=0;n<e.length;n++)this._addSelectable(e[n],t,s)}_addSelectable(e,t,s){let n=this;const r=e.element,i=e.classNames,a=e.attrs,o=new v(e,t,s);if(r){0===a.length&&0===i.length?this._addTerminal(n._elementMap,r,o):n=this._addPartial(n._elementPartialMap,r)}if(i)for(let e=0;e<i.length;e++){const t=0===a.length&&e===i.length-1,s=i[e];t?this._addTerminal(n._classMap,s,o):n=this._addPartial(n._classPartialMap,s)}if(a)for(let e=0;e<a.length;e+=2){const t=e===a.length-2,s=a[e],r=a[e+1];if(t){const e=n._attrValueMap;let t=e.get(s);t||(t=new Map,e.set(s,t)),this._addTerminal(t,r,o)}else{const e=n._attrValuePartialMap;let t=e.get(s);t||(t=new Map,e.set(s,t)),n=this._addPartial(t,r)}}}_addTerminal(e,t,s){let n=e.get(t);n||(n=[],e.set(t,n)),n.push(s)}_addPartial(e,t){let s=e.get(t);return s||(s=new m,e.set(t,s)),s}match(e,t){let s=!1;const n=e.element,r=e.classNames,i=e.attrs;for(let e=0;e<this._listContexts.length;e++)this._listContexts[e].alreadyMatched=!1;if(s=this._matchTerminal(this._elementMap,n,e,t)||s,s=this._matchPartial(this._elementPartialMap,n,e,t)||s,r)for(let n=0;n<r.length;n++){const i=r[n];s=this._matchTerminal(this._classMap,i,e,t)||s,s=this._matchPartial(this._classPartialMap,i,e,t)||s}if(i)for(let n=0;n<i.length;n+=2){const r=i[n],a=i[n+1],o=this._attrValueMap.get(r);a&&(s=this._matchTerminal(o,"",e,t)||s),s=this._matchTerminal(o,a,e,t)||s;const l=this._attrValuePartialMap.get(r);a&&(s=this._matchPartial(l,"",e,t)||s),s=this._matchPartial(l,a,e,t)||s}return s}_matchTerminal(e,t,s,n){if(!e||"string"!=typeof t)return!1;let r=e.get(t)||[];const i=e.get("*");if(i&&(r=r.concat(i)),0===r.length)return!1;let a,o=!1;for(let e=0;e<r.length;e++)a=r[e],o=a.finalize(s,n)||o;return o}_matchPartial(e,t,s,n){if(!e||"string"!=typeof t)return!1;const r=e.get(t);return!!r&&r.match(s,n)}}e("SelectorMatcher",m);class g{constructor(e){this.selectors=e,this.alreadyMatched=!1}}e("SelectorListContext",g);class v{constructor(e,t,s){this.selector=e,this.cbContext=t,this.listContext=s,this.notSelectors=e.notSelectors}finalize(e,t){let s=!0;if(this.notSelectors.length>0&&(!this.listContext||!this.listContext.alreadyMatched)){s=!m.createNotMatcher(this.notSelectors).match(e,null)}return!s||!t||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),t(this.selector,this.cbContext)),s}}e("SelectorContext",v);const f=e("emitDistinctChangesOnlyDefaultValue",!0);var y,x;e("ViewEncapsulation",y),function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(y||e("ViewEncapsulation",y={})),e("ChangeDetectionStrategy",x),function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default"}(x||e("ChangeDetectionStrategy",x={}));const w=e("CUSTOM_ELEMENTS_SCHEMA",{name:"custom-elements"}),S=e("NO_ERRORS_SCHEMA",{name:"no-errors-schema"}),E=Function;var _,b;function C(e){const t=function(e){const t=e.classNames&&e.classNames.length?[8,...e.classNames]:[];return[e.element&&"*"!==e.element?e.element:"",...e.attrs,...t]}(e),s=e.notSelectors&&e.notSelectors.length?e.notSelectors.map(e=>function(e){const t=e.classNames&&e.classNames.length?[8,...e.classNames]:[];return e.element?[5,e.element,...e.attrs,...t]:e.attrs.length?[3,...e.attrs,...t]:e.classNames&&e.classNames.length?[9,...e.classNames]:[]}(e)):[];return t.concat(...s)}function T(e){return e?d.parse(e).map(C):[]}!function(e){e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL"}(_||(_={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore"}(b||(b={}));e("core",Object.freeze({__proto__:null,emitDistinctChangesOnlyDefaultValue:f,get ViewEncapsulation(){return y},get ChangeDetectionStrategy(){return x},CUSTOM_ELEMENTS_SCHEMA:w,NO_ERRORS_SCHEMA:S,Type:E,get SecurityContext(){return _},get MissingTranslationStrategy(){return b},parseSelectorToR3Selector:T}));const I=/-+([a-z0-9])/g;function N(e,t,s){const n=e.indexOf(t);return-1==n?s:[e.slice(0,n).trim(),e.slice(n+1).trim()]}function k(e){throw new Error(`Internal Error: ${e}`)}function P(e){let t=[];for(let s=0;s<e.length;s++){let n=e.charCodeAt(s);if(n>=55296&&n<=56319&&e.length>s+1){const t=e.charCodeAt(s+1);t>=56320&&t<=57343&&(s++,n=(n-55296<<10)+t-56320+65536)}n<=127?t.push(n):n<=2047?t.push(n>>6&31|192,63&n|128):n<=65535?t.push(n>>12|224,n>>6&63|128,63&n|128):n<=2097151&&t.push(n>>18&7|240,n>>12&63|128,n>>6&63|128,63&n|128)}return t}function A(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(A).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;if(!e.toString)return"object";const t=e.toString();if(null==t)return""+t;const s=t.indexOf("\n");return-1===s?t:t.substring(0,s)}class L{constructor(e){this.full=e;const t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}}e("Version",L);const M=(()=>"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self)();class R{constructor(e){this.digits=e}static zero(){return new R([0])}static one(){return new R([1])}clone(){return new R(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 n=0;n<t;n++){let t=s;n<this.digits.length&&(t+=this.digits[n]),n<e.digits.length&&(t+=e.digits[n]),t>=10?(this.digits[n]=t-10,s=1):(this.digits[n]=t,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 O{constructor(e){this.powerOfTwos=[e]}getValue(){return this.powerOfTwos[0]}multiplyBy(e){const t=R.zero();return this.multiplyByAndAddTo(e,t),t}multiplyByAndAddTo(e,t){for(let s=0;0!==e;e>>>=1,s++)if(1&e){const e=this.getMultipliedByPowerOfTwo(s);t.addToSelf(e)}}getMultipliedByPowerOfTwo(e){for(let t=this.powerOfTwos.length;t<=e;t++){const e=this.powerOfTwos[t-1];this.powerOfTwos[t]=e.add(e)}return this.powerOfTwos[e]}}function $(e){return e.id||D(e)}function D(e){return function(e){const t=P(e),s=function(e,t){const s=e.length+3>>>2,n=[];for(let r=0;r<s;r++)n[r]=ee(e,4*r,t);return n}(t,G.Big),n=8*t.length,r=function(e,t){const s=[];for(let n=0;n<e;n++)s.push(t);return s}(80);let i=1732584193,a=4023233417,o=2562383102,l=271733878,c=3285377520;s[n>>5]|=128<<24-n%32,s[15+(n+64>>9<<4)]=n;for(let e=0;e<s.length;e+=16){const t=i,n=a,u=o,p=l,h=c;for(let t=0;t<80;t++){r[t]=t<16?s[e+t]:J(r[t-3]^r[t-8]^r[t-14]^r[t-16],1);const n=H(t,a,o,l),u=n[0],p=n[1],h=[J(i,5),u,c,p,r[t]].reduce(Y);c=l,l=o,o=J(a,30),a=i,i=h}i=Y(i,t),a=Y(a,n),o=Y(o,u),l=Y(l,p),c=Y(c,h)}return function(e){let t="";for(let s=0;s<e.length;s++){const n=Z(e,s);t+=(n>>>4).toString(16)+(15&n).toString(16)}return t.toLowerCase()}(function(e){return e.reduce((e,t)=>e.concat(function(e){let t=[];for(let s=0;s<4;s++)t.push(e>>>8*(3-s)&255);return t}(t)),[])}([i,a,o,l,c]))}((t=e.nodes,t.map(e=>e.visit(V,null))).join("")+`[${e.meaning}]`);var t}function q(e){return e.id||B(e)}function B(e){const t=new U;return W(e.nodes.map(e=>e.visit(t,null)).join(""),e.meaning)}class F{visitText(e,t){return e.value}visitContainer(e,t){return`[${e.children.map(e=>e.visit(this)).join(", ")}]`}visitIcu(e,t){const s=Object.keys(e.cases).map(t=>`${t} {${e.cases[t].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(e=>e.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 V=new F;class U extends F{visitIcu(e,t){let s=Object.keys(e.cases).map(t=>`${t} {${e.cases[t].visit(this)}}`);return`{${e.type}, ${s.join(", ")}}`}}function H(e,t,s,n){return e<20?[t&s|~t&n,1518500249]:e<40?[t^s^n,1859775393]:e<60?[t&s|t&n|s&n,2400959708]:[t^s^n,3395469782]}function j(e){const t=P(e);let s=z(t,0),n=z(t,102072);return 0!=s||0!=n&&1!=n||(s^=319790063,n^=-1801410264),[s,n]}function W(e,t=""){let s=j(e);if(t){const e=j(t);s=function(e,t){const s=e[0],n=e[1],r=t[0],i=t[1],a=Q(n,i),o=a[0],l=a[1];return[Y(Y(s,r),o),l]}(function(e,t){const s=e[0],n=e[1],r=s<<t|n>>>32-t,i=n<<t|s>>>32-t;return[r,i]}(s,1),e)}return function(e,t){const s=te.toThePowerOf(0).multiplyBy(t);return te.toThePowerOf(4).multiplyByAndAddTo(e,s),s.toString()}(2147483647&s[0],s[1])}function z(e,t){let s,n=2654435769,r=2654435769;const i=e.length;for(s=0;s+12<=i;s+=12){n=Y(n,ee(e,s,G.Little)),r=Y(r,ee(e,s+4,G.Little));const i=K(n,r,t=Y(t,ee(e,s+8,G.Little)));n=i[0],r=i[1],t=i[2]}return n=Y(n,ee(e,s,G.Little)),r=Y(r,ee(e,s+4,G.Little)),t=Y(t,i),K(n,r,t=Y(t,ee(e,s+8,G.Little)<<8))[2]}function K(e,t,s){return e=X(e,t),e=X(e,s),e^=s>>>13,t=X(t,s),t=X(t,e),t^=e<<8,s=X(s,e),s=X(s,t),s^=t>>>13,e=X(e,t),e=X(e,s),e^=s>>>12,t=X(t,s),t=X(t,e),t^=e<<16,s=X(s,e),s=X(s,t),s^=t>>>5,e=X(e,t),e=X(e,s),e^=s>>>3,t=X(t,s),t=X(t,e),t^=e<<10,s=X(s,e),s=X(s,t),[e,t,s^=t>>>15]}var G;function Y(e,t){return Q(e,t)[1]}function Q(e,t){const s=(65535&e)+(65535&t),n=(e>>>16)+(t>>>16)+(s>>>16);return[n>>>16,n<<16|65535&s]}function X(e,t){const s=(65535&e)-(65535&t);return(e>>16)-(t>>16)+(s>>16)<<16|65535&s}function J(e,t){return e<<t|e>>>32-t}function Z(e,t){return t>=e.length?0:e[t]}function ee(e,t,s){let n=0;if(s===G.Big)for(let s=0;s<4;s++)n+=Z(e,t+s)<<24-8*s;else for(let s=0;s<4;s++)n+=Z(e,t+s)<<8*s;return n}!function(e){e[e.Little=0]="Little",e[e.Big=1]="Big"}(G||(G={}));const te=new class{constructor(e){this.base=e,this.exponents=[new O(R.one())]}toThePowerOf(e){for(let t=this.exponents.length;t<=e;t++){const e=this.exponents[t-1].multiplyBy(this.base);this.exponents[t]=new O(e)}return this.exponents[e]}}(256);var se,ne;e("TypeModifier",se),function(e){e[e.None=0]="None",e[e.Const=1]="Const"}(se||e("TypeModifier",se={}));class re{constructor(e=se.None){this.modifiers=e}hasModifier(e){return 0!==(this.modifiers&e)}}e("Type",re),e("BuiltinTypeName",ne),function(e){e[e.Dynamic=0]="Dynamic",e[e.Bool=1]="Bool",e[e.String=2]="String",e[e.Int=3]="Int",e[e.Number=4]="Number",e[e.Function=5]="Function",e[e.Inferred=6]="Inferred",e[e.None=7]="None"}(ne||e("BuiltinTypeName",ne={}));class ie extends re{constructor(e,t){super(t),this.name=e}visitType(e,t){return e.visitBuiltinType(this,t)}}e("BuiltinType",ie);class ae extends re{constructor(e,t,s=null){super(t),this.value=e,this.typeParams=s}visitType(e,t){return e.visitExpressionType(this,t)}}e("ExpressionType",ae);class oe extends re{constructor(e,t){super(t),this.of=e}visitType(e,t){return e.visitArrayType(this,t)}}e("ArrayType",oe);class le extends re{constructor(e,t){super(t),this.valueType=e||null}visitType(e,t){return e.visitMapType(this,t)}}e("MapType",le);const ce=e("DYNAMIC_TYPE",new ie(ne.Dynamic)),ue=new ie(ne.Inferred),pe=new ie(ne.Bool),he=new ie(ne.Int),de=new ie(ne.Number),me=e("STRING_TYPE",new ie(ne.String)),ge=new ie(ne.Function),ve=e("NONE_TYPE",new ie(ne.None));var fe,ye;function xe(e,t){return null==e||null==t?e==t:e.isEquivalent(t)}function we(e,t,s){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(!s(e[r],t[r]))return!1;return!0}function Se(e,t){return we(e,t,(e,t)=>e.isEquivalent(t))}e("UnaryOperator",fe),function(e){e[e.Minus=0]="Minus",e[e.Plus=1]="Plus"}(fe||e("UnaryOperator",fe={})),e("BinaryOperator",ye),function(e){e[e.Equals=0]="Equals",e[e.NotEquals=1]="NotEquals",e[e.Identical=2]="Identical",e[e.NotIdentical=3]="NotIdentical",e[e.Minus=4]="Minus",e[e.Plus=5]="Plus",e[e.Divide=6]="Divide",e[e.Multiply=7]="Multiply",e[e.Modulo=8]="Modulo",e[e.And=9]="And",e[e.Or=10]="Or",e[e.BitwiseAnd=11]="BitwiseAnd",e[e.Lower=12]="Lower",e[e.LowerEquals=13]="LowerEquals",e[e.Bigger=14]="Bigger",e[e.BiggerEquals=15]="BiggerEquals",e[e.NullishCoalesce=16]="NullishCoalesce"}(ye||e("BinaryOperator",ye={}));class Ee{constructor(e,t){this.type=e||null,this.sourceSpan=t||null}prop(e,t){return new Xe(this,e,null,t)}key(e,t,s){return new Je(this,e,t,s)}callFn(e,t,s){return new ke(this,e,null,t,s)}instantiate(e,t,s){return new Ae(this,e,t,s)}conditional(e,t=null,s){return new We(this,e,t,null,s)}equals(e,t){return new Qe(ye.Equals,this,e,null,t)}notEquals(e,t){return new Qe(ye.NotEquals,this,e,null,t)}identical(e,t){return new Qe(ye.Identical,this,e,null,t)}notIdentical(e,t){return new Qe(ye.NotIdentical,this,e,null,t)}minus(e,t){return new Qe(ye.Minus,this,e,null,t)}plus(e,t){return new Qe(ye.Plus,this,e,null,t)}divide(e,t){return new Qe(ye.Divide,this,e,null,t)}multiply(e,t){return new Qe(ye.Multiply,this,e,null,t)}modulo(e,t){return new Qe(ye.Modulo,this,e,null,t)}and(e,t){return new Qe(ye.And,this,e,null,t)}bitwiseAnd(e,t,s=!0){return new Qe(ye.BitwiseAnd,this,e,null,t,s)}or(e,t){return new Qe(ye.Or,this,e,null,t)}lower(e,t){return new Qe(ye.Lower,this,e,null,t)}lowerEquals(e,t){return new Qe(ye.LowerEquals,this,e,null,t)}bigger(e,t){return new Qe(ye.Bigger,this,e,null,t)}biggerEquals(e,t){return new Qe(ye.BiggerEquals,this,e,null,t)}isBlank(e){return this.equals(rt,e)}nullishCoalesce(e,t){return new Qe(ye.NullishCoalesce,this,e,null,t)}toStmt(){return new pt(this,null)}}e("Expression",Ee);class _e extends Ee{constructor(e,t,s){super(t,s),this.name=e}isEquivalent(e){return e instanceof _e&&this.name===e.name}isConstant(){return!1}visitExpression(e,t){return e.visitReadVarExpr(this,t)}set(e){return new Te(this.name,e,null,this.sourceSpan)}}e("ReadVarExpr",_e);class be extends Ee{constructor(e,t,s){super(t,s),this.expr=e}visitExpression(e,t){return e.visitTypeofExpr(this,t)}isEquivalent(e){return e instanceof be&&e.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}}e("TypeofExpr",be);class Ce extends Ee{constructor(e,t,s){super(t,s),this.node=e}isEquivalent(e){return e instanceof Ce&&this.node===e.node}isConstant(){return!1}visitExpression(e,t){return e.visitWrappedNodeExpr(this,t)}}e("WrappedNodeExpr",Ce);class Te extends Ee{constructor(e,t,s,n){super(s||t.type,n),this.name=e,this.value=t}isEquivalent(e){return e instanceof Te&&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 ct(this.name,this.value,e,t,this.sourceSpan)}toConstDecl(){return this.toDeclStmt(ue,it.Final)}}e("WriteVarExpr",Te);class Ie extends Ee{constructor(e,t,s,n,r){super(n||s.type,r),this.receiver=e,this.index=t,this.value=s}isEquivalent(e){return e instanceof Ie&&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)}}e("WriteKeyExpr",Ie);class Ne extends Ee{constructor(e,t,s,n,r){super(n||s.type,r),this.receiver=e,this.name=t,this.value=s}isEquivalent(e){return e instanceof Ne&&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)}}e("WritePropExpr",Ne);class ke extends Ee{constructor(e,t,s,n,r=!1){super(s,n),this.fn=e,this.args=t,this.pure=r}isEquivalent(e){return e instanceof ke&&this.fn.isEquivalent(e.fn)&&Se(this.args,e.args)&&this.pure===e.pure}isConstant(){return!1}visitExpression(e,t){return e.visitInvokeFunctionExpr(this,t)}}e("InvokeFunctionExpr",ke);class Pe extends Ee{constructor(e,t,s,n){super(s,n),this.tag=e,this.template=t}isEquivalent(e){return e instanceof Pe&&this.tag.isEquivalent(e.tag)&&we(this.template.elements,e.template.elements,(e,t)=>e.text===t.text)&&Se(this.template.expressions,e.template.expressions)}isConstant(){return!1}visitExpression(e,t){return e.visitTaggedTemplateExpr(this,t)}}e("TaggedTemplateExpr",Pe);class Ae extends Ee{constructor(e,t,s,n){super(s,n),this.classExpr=e,this.args=t}isEquivalent(e){return e instanceof Ae&&this.classExpr.isEquivalent(e.classExpr)&&Se(this.args,e.args)}isConstant(){return!1}visitExpression(e,t){return e.visitInstantiateExpr(this,t)}}e("InstantiateExpr",Ae);class Le extends Ee{constructor(e,t,s){super(t,s),this.value=e}isEquivalent(e){return e instanceof Le&&this.value===e.value}isConstant(){return!0}visitExpression(e,t){return e.visitLiteralExpr(this,t)}}e("LiteralExpr",Le);class Me{constructor(e,t){this.elements=e,this.expressions=t}}e("TemplateLiteral",Me);class Re{constructor(e,t,s){this.text=e,this.sourceSpan=t,this.rawText=s??t?.toString()??Ve(qe(e))}}e("TemplateLiteralElement",Re);class Oe{constructor(e,t){this.text=e,this.sourceSpan=t}}class $e{constructor(e,t,s){this.text=e,this.sourceSpan=t,this.associatedMessage=s}}class De extends Ee{constructor(e,t,s,n,r){super(me,r),this.metaBlock=e,this.messageParts=t,this.placeHolderNames=s,this.expressions=n}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}`}),Ue(e,this.messageParts[0].text,this.getMessagePartSourceSpan(0))}getMessagePartSourceSpan(e){return this.messageParts[e]?.sourceSpan??this.sourceSpan}getPlaceholderSourceSpan(e){return this.placeHolderNames[e]?.sourceSpan??this.expressions[e]?.sourceSpan??this.sourceSpan}serializeI18nTemplatePart(e){const t=this.placeHolderNames[e-1],s=this.messageParts[e];let n=t.text;return 0===t.associatedMessage?.legacyIds.length&&(n+=`@@${W(t.associatedMessage.messageString,t.associatedMessage.meaning)}`),Ue(n,s.text,this.getMessagePartSourceSpan(e))}}e("LocalizedString",De);const qe=e=>e.replace(/\\/g,"\\\\"),Be=e=>e.replace(/^:/,"\\:"),Fe=e=>e.replace(/:/g,"\\:"),Ve=e=>e.replace(/`/g,"\\`").replace(/\${/g,"$\\{");function Ue(e,t,s){return""===e?{cooked:t,raw:Ve(Be(qe(t))),range:s}:{cooked:`:${e}:${t}`,raw:Ve(`:${Fe(qe(e))}:${qe(t)}`),range:s}}class He extends Ee{constructor(e,t,s=null,n){super(t,n),this.value=e,this.typeParams=s}isEquivalent(e){return e instanceof He&&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)}}e("ExternalExpr",He);class je{constructor(e,t,s){this.moduleName=e,this.name=t,this.runtime=s}}e("ExternalReference",je);class We extends Ee{constructor(e,t,s=null,n,r){super(n||t.type,r),this.condition=e,this.falseCase=s,this.trueCase=t}isEquivalent(e){return e instanceof We&&this.condition.isEquivalent(e.condition)&&this.trueCase.isEquivalent(e.trueCase)&&xe(this.falseCase,e.falseCase)}isConstant(){return!1}visitExpression(e,t){return e.visitConditionalExpr(this,t)}}e("ConditionalExpr",We);class ze extends Ee{constructor(e,t){super(pe,t),this.condition=e}isEquivalent(e){return e instanceof ze&&this.condition.isEquivalent(e.condition)}isConstant(){return!1}visitExpression(e,t){return e.visitNotExpr(this,t)}}e("NotExpr",ze);class Ke{constructor(e,t=null){this.name=e,this.type=t}isEquivalent(e){return this.name===e.name}}class Ge extends Ee{constructor(e,t,s,n,r){super(s,n),this.params=e,this.statements=t,this.name=r}isEquivalent(e){return e instanceof Ge&&Se(this.params,e.params)&&Se(this.statements,e.statements)}isConstant(){return!1}visitExpression(e,t){return e.visitFunctionExpr(this,t)}toDeclStmt(e,t){return new ut(e,this.params,this.statements,this.type,t,this.sourceSpan)}}e("FunctionExpr",Ge);class Ye extends Ee{constructor(e,t,s,n,r=!0){super(s||de,n),this.operator=e,this.expr=t,this.parens=r}isEquivalent(e){return e instanceof Ye&&this.operator===e.operator&&this.expr.isEquivalent(e.expr)}isConstant(){return!1}visitExpression(e,t){return e.visitUnaryOperatorExpr(this,t)}}e("UnaryOperatorExpr",Ye);class Qe extends Ee{constructor(e,t,s,n,r,i=!0){super(n||t.type,r),this.operator=e,this.rhs=s,this.parens=i,this.lhs=t}isEquivalent(e){return e instanceof Qe&&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)}}e("BinaryOperatorExpr",Qe);class Xe extends Ee{constructor(e,t,s,n){super(s,n),this.receiver=e,this.name=t}isEquivalent(e){return e instanceof Xe&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name}isConstant(){return!1}visitExpression(e,t){return e.visitReadPropExpr(this,t)}set(e){return new Ne(this.receiver,this.name,e,null,this.sourceSpan)}}e("ReadPropExpr",Xe);class Je extends Ee{constructor(e,t,s,n){super(s,n),this.receiver=e,this.index=t}isEquivalent(e){return e instanceof Je&&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 Ie(this.receiver,this.index,e,null,this.sourceSpan)}}e("ReadKeyExpr",Je);class Ze extends Ee{constructor(e,t,s){super(t,s),this.entries=e}isConstant(){return this.entries.every(e=>e.isConstant())}isEquivalent(e){return e instanceof Ze&&Se(this.entries,e.entries)}visitExpression(e,t){return e.visitLiteralArrayExpr(this,t)}}e("LiteralArrayExpr",Ze);class et{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 tt extends Ee{constructor(e,t,s){super(t,s),this.entries=e,this.valueType=null,t&&(this.valueType=t.valueType)}isEquivalent(e){return e instanceof tt&&Se(this.entries,e.entries)}isConstant(){return this.entries.every(e=>e.value.isConstant())}visitExpression(e,t){return e.visitLiteralMapExpr(this,t)}}e("LiteralMapExpr",tt);class st extends Ee{constructor(e,t){super(e[e.length-1].type,t),this.parts=e}isEquivalent(e){return e instanceof st&&Se(this.parts,e.parts)}isConstant(){return!1}visitExpression(e,t){return e.visitCommaExpr(this,t)}}e("CommaExpr",st);const nt=new Le(null,null,null),rt=new Le(null,ue,null);var it;e("StmtModifier",it),function(e){e[e.None=0]="None",e[e.Final=1]="Final",e[e.Private=2]="Private",e[e.Exported=4]="Exported",e[e.Static=8]="Static"}(it||e("StmtModifier",it={}));class at{constructor(e,t,s){this.text=e,this.multiline=t,this.trailingNewline=s}toString(){return this.multiline?` ${this.text} `:this.text}}e("LeadingComment",at);class ot extends at{constructor(e){super("",!0,!0),this.tags=e}toString(){return function(e){if(0===e.length)return"";if(1===e.length&&e[0].tagName&&!e[0].text)return`*${kt(e[0])} `;let t="*\n";for(const s of e)t+=" *",t+=kt(s).replace(/\n/g,"\n * "),t+="\n";return t+=" ",t}(this.tags)}}e("JSDocComment",ot);class lt{constructor(e=it.None,t=null,s){this.modifiers=e,this.sourceSpan=t,this.leadingComments=s}hasModifier(e){return 0!==(this.modifiers&e)}addLeadingComment(e){this.leadingComments=this.leadingComments??[],this.leadingComments.push(e)}}e("Statement",lt);class ct extends lt{constructor(e,t,s,n,r,i){super(n,r,i),this.name=e,this.value=t,this.type=s||t&&t.type||null}isEquivalent(e){return e instanceof ct&&this.name===e.name&&(this.value?!!e.value&&this.value.isEquivalent(e.value):!e.value)}visitStatement(e,t){return e.visitDeclareVarStmt(this,t)}}e("DeclareVarStmt",ct);class ut extends lt{constructor(e,t,s,n,r,i,a){super(r,i,a),this.name=e,this.params=t,this.statements=s,this.type=n||null}isEquivalent(e){return e instanceof ut&&Se(this.params,e.params)&&Se(this.statements,e.statements)}visitStatement(e,t){return e.visitDeclareFunctionStmt(this,t)}}e("DeclareFunctionStmt",ut);class pt extends lt{constructor(e,t,s){super(it.None,t,s),this.expr=e}isEquivalent(e){return e instanceof pt&&this.expr.isEquivalent(e.expr)}visitStatement(e,t){return e.visitExpressionStmt(this,t)}}e("ExpressionStatement",pt);class ht extends lt{constructor(e,t=null,s){super(it.None,t,s),this.value=e}isEquivalent(e){return e instanceof ht&&this.value.isEquivalent(e.value)}visitStatement(e,t){return e.visitReturnStmt(this,t)}}e("ReturnStatement",ht);class dt extends lt{constructor(e,t,s=[],n,r){super(it.None,n,r),this.condition=e,this.trueCase=t,this.falseCase=s}isEquivalent(e){return e instanceof dt&&this.condition.isEquivalent(e.condition)&&Se(this.trueCase,e.trueCase)&&Se(this.falseCase,e.falseCase)}visitStatement(e,t){return e.visitIfStmt(this,t)}}e("IfStmt",dt);function mt(e,t=!1,s=!0){return new at(e,t,s)}function gt(e=[]){return new ot(e)}function vt(e,t,s){return new _e(e,t,s)}function ft(e,t=null,s){return new He(e,null,t,s)}function yt(e,t,s){return new ae(e,t,s)}function xt(e){return new be(e)}function wt(e,t,s){return new Ze(e,t,s)}function St(e,t=null){return new tt(e.map(e=>new et(e.key,e.value,e.quoted)),t,null)}function Et(e,t){return new ze(e,t)}function _t(e,t,s,n,r){return new Ge(e,t,s,n,r)}function bt(e,t,s,n,r){return new dt(e,t,s,n,r)}function Ct(e,t,s,n){return new Pe(e,t,s,n)}function Tt(e,t,s){return new Le(e,t,s)}function It(e,t,s,n,r){return new De(e,t,s,n,r)}function Nt(e){return e instanceof Le&&null===e.value}function kt(e){let t="";if(e.tagName&&(t+=` @${e.tagName}`),e.text){if(e.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');t+=" "+e.text.replace(/@/g,"\\@")}return t}e("outputAst",Object.freeze({__proto__:null,get TypeModifier(){return se},Type:re,get BuiltinTypeName(){return ne},BuiltinType:ie,ExpressionType:ae,ArrayType:oe,MapType:le,DYNAMIC_TYPE:ce,INFERRED_TYPE:ue,BOOL_TYPE:pe,INT_TYPE:he,NUMBER_TYPE:de,STRING_TYPE:me,FUNCTION_TYPE:ge,NONE_TYPE:ve,get UnaryOperator(){return fe},get BinaryOperator(){return ye},nullSafeIsEquivalent:xe,areAllEquivalent:Se,Expression:Ee,ReadVarExpr:_e,TypeofExpr:be,WrappedNodeExpr:Ce,WriteVarExpr:Te,WriteKeyExpr:Ie,WritePropExpr:Ne,InvokeFunctionExpr:ke,TaggedTemplateExpr:Pe,InstantiateExpr:Ae,LiteralExpr:Le,TemplateLiteral:Me,TemplateLiteralElement:Re,LiteralPiece:Oe,PlaceholderPiece:$e,LocalizedString:De,ExternalExpr:He,ExternalReference:je,ConditionalExpr:We,NotExpr:ze,FnParam:Ke,FunctionExpr:Ge,UnaryOperatorExpr:Ye,BinaryOperatorExpr:Qe,ReadPropExpr:Xe,ReadKeyExpr:Je,LiteralArrayExpr:Ze,LiteralMapEntry:et,LiteralMapExpr:tt,CommaExpr:st,NULL_EXPR:nt,TYPED_NULL_EXPR:rt,get StmtModifier(){return it},LeadingComment:at,JSDocComment:ot,Statement:lt,DeclareVarStmt:ct,DeclareFunctionStmt:ut,ExpressionStatement:pt,ReturnStatement:ht,IfStmt:dt,RecursiveAstVisitor:class{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(e=>this.visitType(e,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)}visitExternalExpr(e,t){return e.typeParams&&e.typeParams.forEach(e=>e.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(e=>e.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(e=>e.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(e=>e.visitStatement(this,t))}},leadingComment:mt,jsDocComment:gt,variable:vt,importExpr:ft,importType:function(e,t,s){return null!=e?yt(ft(e,t,null),s):null},expressionType:yt,typeofExpr:xt,literalArr:wt,literalMap:St,unary:function(e,t,s,n){return new Ye(e,t,s,n)},not:Et,fn:_t,ifStmt:bt,taggedTemplate:Ct,literal:Tt,localizedString:It,isNull:Nt}));const Pt=vt("<unknown>"),At={};class Lt extends Ee{constructor(e){super(e.type),this.resolved=e,this.original=e}visitExpression(e,t){return t===At?this.original.visitExpression(e,t):this.resolved.visitExpression(e,t)}isEquivalent(e){return e instanceof Lt&&this.resolved.isEquivalent(e.resolved)}isConstant(){return!0}fixup(e){this.resolved=e,this.shared=!0}}class Mt{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 Le&&!Dt(e)||e instanceof Lt)return e;const s=this.keyOf(e);let n=this.literals.get(s),r=!1;if(n||(n=new Lt(e),this.literals.set(s,n),r=!0),!r&&!n.shared||r&&t){const t=this.freshName();let s,r;this.isClosureCompilerEnabled&&Dt(e)?(s=vt(t).set(new Ge([],[new ht(e)])),r=vt(t).callFn([])):(s=vt(t).set(e),r=vt(t)),this.statements.push(s.toDeclStmt(ue,it.Final)),n.fixup(r)}return n}getLiteralFactory(e){if(e instanceof Ze){const t=e.entries.map(e=>e.isConstant()?e:Pt),s=this.keyOf(wt(t));return this._getLiteralFactory(s,e.entries,e=>wt(e))}{const t=St(e.entries.map(e=>({key:e.key,value:e.value.isConstant()?e.value:Pt,quoted:e.quoted}))),s=this.keyOf(t);return this._getLiteralFactory(s,e.entries.map(e=>e.value),t=>St(t.map((t,s)=>({key:e.entries[s].key,value:t,quoted:e.entries[s].quoted}))))}}_getLiteralFactory(e,t,s){let n=this.literalFactories.get(e);const r=t.filter(e=>!e.isConstant());if(!n){const r=t.map((e,t)=>e.isConstant()?this.getConstLiteral(e,!0):vt(`a${t}`)),i=_t(r.filter($t).map(e=>new Ke(e.name,ce)),[new ht(s(r))],ue),a=this.freshName();this.statements.push(vt(a).set(i).toDeclStmt(ue,it.Final)),n=vt(a),this.literalFactories.set(e,n)}return{literalFactory:n,literalFactoryArguments:r}}uniqueName(e){return`${e}${this.nextNameIndex++}`}freshName(){return this.uniqueName("_c")}keyOf(e){return e.visitExpression(new Rt,At)}}e("ConstantPool",Mt);class Rt{constructor(){this.visitWrappedNodeExpr=Ot,this.visitWriteVarExpr=Ot,this.visitWriteKeyExpr=Ot,this.visitWritePropExpr=Ot,this.visitInvokeFunctionExpr=Ot,this.visitTaggedTemplateExpr=Ot,this.visitInstantiateExpr=Ot,this.visitConditionalExpr=Ot,this.visitNotExpr=Ot,this.visitAssertNotNullExpr=Ot,this.visitCastExpr=Ot,this.visitFunctionExpr=Ot,this.visitUnaryOperatorExpr=Ot,this.visitBinaryOperatorExpr=Ot,this.visitReadPropExpr=Ot,this.visitReadKeyExpr=Ot,this.visitCommaExpr=Ot,this.visitLocalizedString=Ot}visitLiteralExpr(e){return`${"string"==typeof e.value?'"'+e.value+'"':e.value}`}visitLiteralArrayExpr(e,t){return`[${e.entries.map(e=>e.visitExpression(this,t)).join(",")}]`}visitLiteralMapExpr(e,t){return`{${e.entries.map(e=>`${(e=>{const t=e.quoted?'"':"";return`${t}${e.key}${t}`})(e)}:${e.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 Ot(e){throw new Error(`Invalid state: Visitor ${this.constructor.name} doesn't handle ${e.constructor.name}`)}function $t(e){return e instanceof _e}function Dt(e){return e instanceof Le&&"string"==typeof e.value&&e.value.length>=50}const qt="@angular/core";class Bt{}e("R3Identifiers",Bt),Bt.NEW_METHOD="factory",Bt.TRANSFORM_METHOD="transform",Bt.PATCH_DEPS="patchedDeps",Bt.core={name:null,moduleName:qt},Bt.namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:qt},Bt.namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:qt},Bt.namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:qt},Bt.element={name:"\u0275\u0275element",moduleName:qt},Bt.elementStart={name:"\u0275\u0275elementStart",moduleName:qt},Bt.elementEnd={name:"\u0275\u0275elementEnd",moduleName:qt},Bt.advance={name:"\u0275\u0275advance",moduleName:qt},Bt.syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:qt},Bt.syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:qt},Bt.attribute={name:"\u0275\u0275attribute",moduleName:qt},Bt.attributeInterpolate1={name:"\u0275\u0275attributeInterpolate1",moduleName:qt},Bt.attributeInterpolate2={name:"\u0275\u0275attributeInterpolate2",moduleName:qt},Bt.attributeInterpolate3={name:"\u0275\u0275attributeInterpolate3",moduleName:qt},Bt.attributeInterpolate4={name:"\u0275\u0275attributeInterpolate4",moduleName:qt},Bt.attributeInterpolate5={name:"\u0275\u0275attributeInterpolate5",moduleName:qt},Bt.attributeInterpolate6={name:"\u0275\u0275attributeInterpolate6",moduleName:qt},Bt.attributeInterpolate7={name:"\u0275\u0275attributeInterpolate7",moduleName:qt},Bt.attributeInterpolate8={name:"\u0275\u0275attributeInterpolate8",moduleName:qt},Bt.attributeInterpolateV={name:"\u0275\u0275attributeInterpolateV",moduleName:qt},Bt.classProp={name:"\u0275\u0275classProp",moduleName:qt},Bt.elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:qt},Bt.elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:qt},Bt.elementContainer={name:"\u0275\u0275elementContainer",moduleName:qt},Bt.styleMap={name:"\u0275\u0275styleMap",moduleName:qt},Bt.styleMapInterpolate1={name:"\u0275\u0275styleMapInterpolate1",moduleName:qt},Bt.styleMapInterpolate2={name:"\u0275\u0275styleMapInterpolate2",moduleName:qt},Bt.styleMapInterpolate3={name:"\u0275\u0275styleMapInterpolate3",moduleName:qt},Bt.styleMapInterpolate4={name:"\u0275\u0275styleMapInterpolate4",moduleName:qt},Bt.styleMapInterpolate5={name:"\u0275\u0275styleMapInterpolate5",moduleName:qt},Bt.styleMapInterpolate6={name:"\u0275\u0275styleMapInterpolate6",moduleName:qt},Bt.styleMapInterpolate7={name:"\u0275\u0275styleMapInterpolate7",moduleName:qt},Bt.styleMapInterpolate8={name:"\u0275\u0275styleMapInterpolate8",moduleName:qt},Bt.styleMapInterpolateV={name:"\u0275\u0275styleMapInterpolateV",moduleName:qt},Bt.classMap={name:"\u0275\u0275classMap",moduleName:qt},Bt.classMapInterpolate1={name:"\u0275\u0275classMapInterpolate1",moduleName:qt},Bt.classMapInterpolate2={name:"\u0275\u0275classMapInterpolate2",moduleName:qt},Bt.classMapInterpolate3={name:"\u0275\u0275classMapInterpolate3",moduleName:qt},Bt.classMapInterpolate4={name:"\u0275\u0275classMapInterpolate4",moduleName:qt},Bt.classMapInterpolate5={name:"\u0275\u0275classMapInterpolate5",moduleName:qt},Bt.classMapInterpolate6={name:"\u0275\u0275classMapInterpolate6",moduleName:qt},Bt.classMapInterpolate7={name:"\u0275\u0275classMapInterpolate7",moduleName:qt},Bt.classMapInterpolate8={name:"\u0275\u0275classMapInterpolate8",moduleName:qt},Bt.classMapInterpolateV={name:"\u0275\u0275classMapInterpolateV",moduleName:qt},Bt.styleProp={name:"\u0275\u0275styleProp",moduleName:qt},Bt.stylePropInterpolate1={name:"\u0275\u0275stylePropInterpolate1",moduleName:qt},Bt.stylePropInterpolate2={name:"\u0275\u0275stylePropInterpolate2",moduleName:qt},Bt.stylePropInterpolate3={name:"\u0275\u0275stylePropInterpolate3",moduleName:qt},Bt.stylePropInterpolate4={name:"\u0275\u0275stylePropInterpolate4",moduleName:qt},Bt.stylePropInterpolate5={name:"\u0275\u0275stylePropInterpolate5",moduleName:qt},Bt.stylePropInterpolate6={name:"\u0275\u0275stylePropInterpolate6",moduleName:qt},Bt.stylePropInterpolate7={name:"\u0275\u0275stylePropInterpolate7",moduleName:qt},Bt.stylePropInterpolate8={name:"\u0275\u0275stylePropInterpolate8",moduleName:qt},Bt.stylePropInterpolateV={name:"\u0275\u0275stylePropInterpolateV",moduleName:qt},Bt.nextContext={name:"\u0275\u0275nextContext",moduleName:qt},Bt.resetView={name:"\u0275\u0275resetView",moduleName:qt},Bt.templateCreate={name:"\u0275\u0275template",moduleName:qt},Bt.text={name:"\u0275\u0275text",moduleName:qt},Bt.enableBindings={name:"\u0275\u0275enableBindings",moduleName:qt},Bt.disableBindings={name:"\u0275\u0275disableBindings",moduleName:qt},Bt.getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:qt},Bt.textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:qt},Bt.textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:qt},Bt.textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:qt},Bt.textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:qt},Bt.textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:qt},Bt.textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:qt},Bt.textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:qt},Bt.textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:qt},Bt.textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:qt},Bt.textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:qt},Bt.restoreView={name:"\u0275\u0275restoreView",moduleName:qt},Bt.pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:qt},Bt.pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:qt},Bt.pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:qt},Bt.pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:qt},Bt.pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:qt},Bt.pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:qt},Bt.pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:qt},Bt.pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:qt},Bt.pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:qt},Bt.pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:qt},Bt.pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:qt},Bt.pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:qt},Bt.pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:qt},Bt.pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:qt},Bt.pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:qt},Bt.hostProperty={name:"\u0275\u0275hostProperty",moduleName:qt},Bt.property={name:"\u0275\u0275property",moduleName:qt},Bt.propertyInterpolate={name:"\u0275\u0275propertyInterpolate",moduleName:qt},Bt.propertyInterpolate1={name:"\u0275\u0275propertyInterpolate1",moduleName:qt},Bt.propertyInterpolate2={name:"\u0275\u0275propertyInterpolate2",moduleName:qt},Bt.propertyInterpolate3={name:"\u0275\u0275propertyInterpolate3",moduleName:qt},Bt.propertyInterpolate4={name:"\u0275\u0275propertyInterpolate4",moduleName:qt},Bt.propertyInterpolate5={name:"\u0275\u0275propertyInterpolate5",moduleName:qt},Bt.propertyInterpolate6={name:"\u0275\u0275propertyInterpolate6",moduleName:qt},Bt.propertyInterpolate7={name:"\u0275\u0275propertyInterpolate7",moduleName:qt},Bt.propertyInterpolate8={name:"\u0275\u0275propertyInterpolate8",moduleName:qt},Bt.propertyInterpolateV={name:"\u0275\u0275propertyInterpolateV",moduleName:qt},Bt.i18n={name:"\u0275\u0275i18n",moduleName:qt},Bt.i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:qt},Bt.i18nExp={name:"\u0275\u0275i18nExp",moduleName:qt},Bt.i18nStart={name:"\u0275\u0275i18nStart",moduleName:qt},Bt.i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:qt},Bt.i18nApply={name:"\u0275\u0275i18nApply",moduleName:qt},Bt.i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:qt},Bt.pipe={name:"\u0275\u0275pipe",moduleName:qt},Bt.projection={name:"\u0275\u0275projection",moduleName:qt},Bt.projectionDef={name:"\u0275\u0275projectionDef",moduleName:qt},Bt.reference={name:"\u0275\u0275reference",moduleName:qt},Bt.inject={name:"\u0275\u0275inject",moduleName:qt},Bt.injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:qt},Bt.directiveInject={name:"\u0275\u0275directiveInject",moduleName:qt},Bt.invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:qt},Bt.invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:qt},Bt.templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:qt},Bt.forwardRef={name:"forwardRef",moduleName:qt},Bt.resolveForwardRef={name:"resolveForwardRef",moduleName:qt},Bt.\u0275\u0275defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:qt},Bt.declareInjectable={name:"\u0275\u0275ngDeclareInjectable",moduleName:qt},Bt.InjectableDeclaration={name:"\u0275\u0275InjectableDeclaration",moduleName:qt},Bt.resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:qt},Bt.resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:qt},Bt.resolveBody={name:"\u0275\u0275resolveBody",moduleName:qt},Bt.defineComponent={name:"\u0275\u0275defineComponent",moduleName:qt},Bt.declareComponent={name:"\u0275\u0275ngDeclareComponent",moduleName:qt},Bt.setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:qt},Bt.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:qt},Bt.ViewEncapsulation={name:"ViewEncapsulation",moduleName:qt},Bt.ComponentDeclaration={name:"\u0275\u0275ComponentDeclaration",moduleName:qt},Bt.FactoryDeclaration={name:"\u0275\u0275FactoryDeclaration",moduleName:qt},Bt.declareFactory={name:"\u0275\u0275ngDeclareFactory",moduleName:qt},Bt.FactoryTarget={name:"\u0275\u0275FactoryTarget",moduleName:qt},Bt.defineDirective={name:"\u0275\u0275defineDirective",moduleName:qt},Bt.declareDirective={name:"\u0275\u0275ngDeclareDirective",moduleName:qt},Bt.DirectiveDeclaration={name:"\u0275\u0275DirectiveDeclaration",moduleName:qt},Bt.InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:qt},Bt.InjectorDeclaration={name:"\u0275\u0275InjectorDeclaration",moduleName:qt},Bt.defineInjector={name:"\u0275\u0275defineInjector",moduleName:qt},Bt.declareInjector={name:"\u0275\u0275ngDeclareInjector",moduleName:qt},Bt.NgModuleDeclaration={name:"\u0275\u0275NgModuleDeclaration",moduleName:qt},Bt.ModuleWithProviders={name:"ModuleWithProviders",moduleName:qt},Bt.defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:qt},Bt.declareNgModule={name:"\u0275\u0275ngDeclareNgModule",moduleName:qt},Bt.setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:qt},Bt.registerNgModuleType={name:"\u0275\u0275registerNgModuleType",moduleName:qt},Bt.PipeDeclaration={name:"\u0275\u0275PipeDeclaration",moduleName:qt},Bt.definePipe={name:"\u0275\u0275definePipe",moduleName:qt},Bt.declarePipe={name:"\u0275\u0275ngDeclarePipe",moduleName:qt},Bt.declareClassMetadata={name:"\u0275\u0275ngDeclareClassMetadata",moduleName:qt},Bt.setClassMetadata={name:"\u0275setClassMetadata",moduleName:qt},Bt.queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:qt},Bt.viewQuery={name:"\u0275\u0275viewQuery",moduleName:qt},Bt.loadQuery={name:"\u0275\u0275loadQuery",moduleName:qt},Bt.contentQuery={name:"\u0275\u0275contentQuery",moduleName:qt},Bt.NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:qt},Bt.InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:qt},Bt.CopyDefinitionFeature={name:"\u0275\u0275CopyDefinitionFeature",moduleName:qt},Bt.StandaloneFeature={name:"\u0275\u0275StandaloneFeature",moduleName:qt},Bt.ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:qt},Bt.listener={name:"\u0275\u0275listener",moduleName:qt},Bt.getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:qt},Bt.sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:qt},Bt.sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:qt},Bt.sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:qt},Bt.sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:qt},Bt.sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:qt},Bt.sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:qt},Bt.trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:qt},Bt.trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:qt},Bt.validateIframeAttribute={name:"\u0275\u0275validateIframeAttribute",moduleName:qt};class Ft{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,n){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==n))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:n}),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((n,r)=>{e.set(n,r),t.push(n),s.push(this.sourcesContent.get(n)||null)});let n="",r=0,i=0,a=0,o=0;return this.lines.forEach(t=>{r=0,n+=t.map(t=>{let s=Vt(t.col0-r);return r=t.col0,null!=t.sourceUrl&&(s+=Vt(e.get(t.sourceUrl)-i),i=e.get(t.sourceUrl),s+=Vt(t.sourceLine0-a),a=t.sourceLine0,s+=Vt(t.sourceCol0-o),o=t.sourceCol0),s}).join(","),n+=";"}),n=n.slice(0,-1),{file:this.file||"",version:3,sourceRoot:"",sources:t,sourcesContent:s,mappings:n}}toJsComment(){return this.hasMappings?"//# sourceMappingURL=data:application/json;base64,"+function(e){let t="";const s=P(e);for(let e=0;e<s.length;){const n=s[e++],r=e<s.length?s[e++]:null,i=e<s.length?s[e++]:null;t+=Ht(n>>2),t+=Ht((3&n)<<4|(null===r?0:r>>4)),t+=null===r?"=":Ht((15&r)<<2|(null===i?0:i>>6)),t+=null===r||null===i?"=":Ht(63&i)}return t}(JSON.stringify(this,null,0)):""}}function Vt(e){e=e<0?1+(-e<<1):e<<1;let t="";do{let s=31&e;(e>>=5)>0&&(s|=32),t+=Ht(s)}while(e>0);return t}const Ut="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Ht(e){if(e<0||e>=64)throw new Error("Can only encode value in the range [0, 63]");return Ut[e]}const jt=/'|\\|\n|\r|\$/g,Wt=/^[$A-Z_][0-9A-Z_$]*$/i,zt=" ";class Kt{constructor(e){this.indent=e,this.partsLength=0,this.parts=[],this.srcSpans=[]}}class Gt{constructor(e){this._indent=e,this._lines=[new Kt(e)]}static createRoot(){return new Gt(0)}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 2*this._currentLine.indent+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 Kt(this._indent))}removeEmptyLastLine(){this.lineIsEmpty()&&this._lines.pop()}incIndent(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}decIndent(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}toSource(){return this.sourceLines.map(e=>e.parts.length>0?Xt(e.indent)+e.parts.join(""):"").join("\n")}toSourceMapGenerator(e,t=0){const s=new Ft(e);let n=!1;const r=()=>{n||(s.addSource(e," ").addMapping(0,e,0,0),n=!0)};for(let e=0;e<t;e++)s.addLine(),r();return this.sourceLines.forEach((e,t)=>{s.addLine();const i=e.srcSpans,a=e.parts;let o=2*e.indent,l=0;for(;l<i.length&&!i[l];)o+=a[l].length,l++;for(l<i.length&&0===t&&0===o?n=!0:r();l<i.length;){const e=i[l],t=e.start.file,n=e.start.line,r=e.start.col;for(s.addSource(t.url,t.content).addMapping(o,t.url,n,r),o+=a[l].length,l++;l<i.length&&(e===i[l]||!i[l]);)o+=a[l].length,l++}}),s}spanOf(e,t){const s=this._lines[e];if(s){let e=t-Xt(s.indent).length;for(let t=0;t<s.parts.length;t++){const n=s.parts[t];if(n.length>e)return s.srcSpans[t];e-=n.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}}e("EmitterVisitorContext",Gt);class Yt{constructor(e){this._escapeDollarInStrings=e}printLeadingComments(e,t){if(void 0!==e.leadingComments)for(const s of e.leadingComments)s instanceof ot?t.print(e,`/*${s.toString()}*/`,s.trailingNewline):s.multiline?t.print(e,`/* ${s.text} */`,s.trailingNewline):s.text.split("\n").forEach(s=>{t.println(e,`// ${s}`)})}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,Qt(s,this._escapeDollarInStrings)):t.print(e,`${s}`),null}visitLocalizedString(e,t){const s=e.serializeI18nHead();t.print(e,"$localize `"+s.raw);for(let s=1;s<e.messageParts.length;s++)t.print(e,"${"),e.expressions[s-1].visitExpression(this,t),t.print(e,`}${e.serializeI18nTemplatePart(s).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;switch(e.operator){case fe.Plus:s="+";break;case fe.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 ye.Equals:s="==";break;case ye.Identical:s="===";break;case ye.NotEquals:s="!=";break;case ye.NotIdentical:s="!==";break;case ye.And:s="&&";break;case ye.BitwiseAnd:s="&";break;case ye.Or:s="||";break;case ye.Plus:s="+";break;case ye.Minus:s="-";break;case ye.Divide:s="/";break;case ye.Multiply:s="*";break;case ye.Modulo:s="%";break;case ye.Lower:s="<";break;case ye.LowerEquals:s="<=";break;case ye.Bigger:s=">";break;case ye.BiggerEquals:s=">=";break;case ye.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,`${Qt(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(e=>e.visitExpression(this,t),e,t,s)}visitAllObjects(e,t,s,n){let r=!1;for(let i=0;i<t.length;i++)i>0&&(s.lineLength()>80?(s.print(null,n,!0),r||(s.incIndent(),s.incIndent(),r=!0)):s.print(null,n,!1)),e(t[i]);r&&(s.decIndent(),s.decIndent())}visitAllStatements(e,t){e.forEach(e=>e.visitStatement(this,t))}}function Qt(e,t,s=!0){if(null==e)return null;const n=e.replace(jt,(...e)=>"$"==e[0]?t?"\\$":"$":"\n"==e[0]?"\\n":"\r"==e[0]?"\\r":`\\${e[0]}`);return s||!Wt.test(n)?`'${n}'`:n}function Xt(e){let t="";for(let s=0;s<e;s++)t+=zt;return t}function Jt(e,t){if(0===t)return yt(e);const s=[];for(let e=0;e<t;e++)s.push(ce);return yt(e,void 0,s)}const Zt="@";function es(e){return`${Zt}${e}`}function ts(e,t){const s=Qt(t,!1,!1);return s!==t?`${e}[${s}]`:`${e}.${t}`}function ss(e,t){return`animation_${e}_${t}`}function ns(e){return rs("ngDevMode",e)}function rs(e,t){const s=new He({name:e,moduleName:null}),n=new Qe(ye.Identical,new be(s),Tt("undefined")),r=new Qe(ye.Or,n,s,void 0,void 0,!0);return new Qe(ye.And,r,t)}function is(e){const t=new Ce(e);return{value:t,type:t}}function as(e,t){const s=wt(e.map(e=>e.value));return t?_t([],[new ht(s)]):s}function os(e,t){return{expression:e,forwardRef:t}}function ls({expression:e,forwardRef:t}){switch(t){case 0:case 1:return e;case 2:return cs(e)}}function cs(e){return ft(Bt.forwardRef).callFn([_t([],[new ht(e)])])}var us,ps;function hs(e){const t=vt("t");let s=null;const n=gs(e)?t:new Qe(ye.Or,t,e.internalType);let r=null;null!==e.deps?"invalid"!==e.deps&&(r=new Ae(n,ms(e.deps,e.target))):(s=vt(`\u0275${e.name}_BaseFactory`),r=s.callFn([n]));const i=[];let a=null;function o(e){const s=vt("r");i.push(s.set(nt).toDeclStmt());const n=null!==r?s.set(r).toStmt():ft(Bt.invalidFactory).callFn([]).toStmt();return i.push(bt(t,[n],[s.set(e).toStmt()])),s}if(gs(e)){const t=ms(e.delegateDeps,e.target);a=o(new(e.delegateType===us.Class?Ae:ke)(e.delegate,t))}else a=function(e){return void 0!==e.expression}(e)?o(e.expression):r;if(null===a)i.push(ft(Bt.invalidFactory).callFn([]).toStmt());else if(null!==s){const t=ft(Bt.getInheritedFactory).callFn([e.internalType]),r=new Qe(ye.Or,s,s.set(t));i.push(new ht(r.callFn([n])))}else i.push(new ht(a));let l=_t([new Ke("t",ce)],i,ue,void 0,`${e.name}_Factory`);return null!==s&&(l=_t([],[new ct(s.name),new ht(l)]).callFn([],void 0,!0)),{expression:l,statements:[],type:ds(e)}}function ds(e){const t=null!==e.deps&&"invalid"!==e.deps?function(e){let t=!1;const s=e.map(e=>{const s=function(e){const t=[];null!==e.attributeNameType&&t.push({key:"attribute",value:e.attributeNameType,quoted:!1});e.optional&&t.push({key:"optional",value:Tt(!0),quoted:!1});e.host&&t.push({key:"host",value:Tt(!0),quoted:!1});e.self&&t.push({key:"self",value:Tt(!0),quoted:!1});e.skipSelf&&t.push({key:"skipSelf",value:Tt(!0),quoted:!1});return t.length>0?St(t):null}(e);return null!==s?(t=!0,s):Tt(null)});return t?yt(wt(s)):ve}(e.deps):ve;return yt(ft(Bt.FactoryDeclaration,[Jt(e.type.type,e.typeArgumentCount),t]))}function ms(e,t){return e.map((e,s)=>function(e,t,s){if(null===e.token)return ft(Bt.invalidFactoryDep).callFn([Tt(s)]);if(null===e.attributeNameType){const s=(e.self?2:0)|(e.skipSelf?4:0)|(e.host?1:0)|(e.optional?8:0)|(t===ps.Pipe?16:0);let n=0!==s||e.optional?Tt(s):null;const r=[e.token];n&&r.push(n);const i=function(e){switch(e){case ps.Component:case ps.Directive:case ps.Pipe:return Bt.directiveInject;case ps.NgModule:case ps.Injectable:default:return Bt.inject}}(t);return ft(i).callFn(r)}return ft(Bt.injectAttribute).callFn([e.token])}(e,t,s))}function gs(e){return void 0!==e.delegateType}!function(e){e[e.Class=0]="Class",e[e.Function=1]="Function"}(us||(us={})),e("FactoryTarget",ps),function(e){e[e.Directive=0]="Directive",e[e.Component=1]="Component",e[e.Injectable=2]="Injectable",e[e.Pipe=3]="Pipe",e[e.NgModule=4]="NgModule"}(ps||e("FactoryTarget",ps={}));class vs{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e){throw new Error("visit() not implemented for Comment")}}class fs{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e){return e.visitText(this)}}e("TmplAstText",fs);class ys{constructor(e,t,s){this.value=e,this.sourceSpan=t,this.i18n=s}visit(e){return e.visitBoundText(this)}}e("TmplAstBoundText",ys);class xs{constructor(e,t,s,n,r,i){this.name=e,this.value=t,this.sourceSpan=s,this.keySpan=n,this.valueSpan=r,this.i18n=i}visit(e){return e.visitTextAttribute(this)}}e("TmplAstTextAttribute",xs);class ws{constructor(e,t,s,n,r,i,a,o,l){this.name=e,this.type=t,this.securityContext=s,this.value=n,this.unit=r,this.sourceSpan=i,this.keySpan=a,this.valueSpan=o,this.i18n=l}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 ws(e.name,e.type,e.securityContext,e.value,e.unit,e.sourceSpan,e.keySpan,e.valueSpan,t)}visit(e){return e.visitBoundAttribute(this)}}e("TmplAstBoundAttribute",ws);class Ss{constructor(e,t,s,n,r,i,a,o){this.name=e,this.type=t,this.handler=s,this.target=n,this.phase=r,this.sourceSpan=i,this.handlerSpan=a,this.keySpan=o}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 Ss(e.name,e.type,e.handler,t,s,e.sourceSpan,e.handlerSpan,e.keySpan)}visit(e){return e.visitBoundEvent(this)}}e("TmplAstBoundEvent",Ss);class Es{constructor(e,t,s,n,r,i,a,o,l,c){this.name=e,this.attributes=t,this.inputs=s,this.outputs=n,this.children=r,this.references=i,this.sourceSpan=a,this.startSourceSpan=o,this.endSourceSpan=l,this.i18n=c}visit(e){return e.visitElement(this)}}e("TmplAstElement",Es);class _s{constructor(e,t,s,n,r,i,a,o,l,c,u,p){this.tagName=e,this.attributes=t,this.inputs=s,this.outputs=n,this.templateAttrs=r,this.children=i,this.references=a,this.variables=o,this.sourceSpan=l,this.startSourceSpan=c,this.endSourceSpan=u,this.i18n=p}visit(e){return e.visitTemplate(this)}}e("TmplAstTemplate",_s);class bs{constructor(e,t,s,n){this.selector=e,this.attributes=t,this.sourceSpan=s,this.i18n=n,this.name="ng-content"}visit(e){return e.visitContent(this)}}e("TmplAstContent",bs);class Cs{constructor(e,t,s,n,r){this.name=e,this.value=t,this.sourceSpan=s,this.keySpan=n,this.valueSpan=r}visit(e){return e.visitVariable(this)}}e("TmplAstVariable",Cs);class Ts{constructor(e,t,s,n,r){this.name=e,this.value=t,this.sourceSpan=s,this.keySpan=n,this.valueSpan=r}visit(e){return e.visitReference(this)}}e("TmplAstReference",Ts);class Is{constructor(e,t,s,n){this.vars=e,this.placeholders=t,this.sourceSpan=s,this.i18n=n}visit(e){return e.visitIcu(this)}}e("TmplAstIcu",Is);function Ns(e,t){const s=[];if(e.visit)for(const s of t)e.visit(s)||s.visit(e);else for(const n of t){const t=n.visit(e);t&&s.push(t)}return s}e("TmplAstRecursiveVisitor",class{visitElement(e){Ns(this,e.attributes),Ns(this,e.inputs),Ns(this,e.outputs),Ns(this,e.children),Ns(this,e.references)}visitTemplate(e){Ns(this,e.attributes),Ns(this,e.inputs),Ns(this,e.outputs),Ns(this,e.children),Ns(this,e.references),Ns(this,e.variables)}visitContent(e){}visitVariable(e){}visitReference(e){}visitTextAttribute(e){}visitBoundAttribute(e){}visitBoundEvent(e){}visitText(e){}visitBoundText(e){}visitIcu(e){}});class ks{constructor(e,t,s,n,r,i){this.nodes=e,this.placeholders=t,this.placeholderToMessage=s,this.meaning=n,this.description=r,this.customId=i,this.id=this.customId,this.legacyIds=[],this.messageString=function(e){const t=new qs;return e.map(e=>e.visit(t)).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 Ps{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e,t){return e.visitText(this,t)}}class As{constructor(e,t){this.children=e,this.sourceSpan=t}visit(e,t){return e.visitContainer(this,t)}}class Ls{constructor(e,t,s,n){this.expression=e,this.type=t,this.cases=s,this.sourceSpan=n}visit(e,t){return e.visitIcu(this,t)}}class Ms{constructor(e,t,s,n,r,i,a,o,l){this.tag=e,this.attrs=t,this.startName=s,this.closeName=n,this.children=r,this.isVoid=i,this.sourceSpan=a,this.startSourceSpan=o,this.endSourceSpan=l}visit(e,t){return e.visitTagPlaceholder(this,t)}}class Rs{constructor(e,t,s){this.value=e,this.name=t,this.sourceSpan=s}visit(e,t){return e.visitPlaceholder(this,t)}}class Os{constructor(e,t,s){this.value=e,this.name=t,this.sourceSpan=s}visit(e,t){return e.visitIcuPlaceholder(this,t)}}class $s{visitText(e,t){return new Ps(e.value,e.sourceSpan)}visitContainer(e,t){const s=e.children.map(e=>e.visit(this,t));return new As(s,e.sourceSpan)}visitIcu(e,t){const s={};Object.keys(e.cases).forEach(n=>s[n]=e.cases[n].visit(this,t));const n=new Ls(e.expression,e.type,s,e.sourceSpan);return n.expressionPlaceholder=e.expressionPlaceholder,n}visitTagPlaceholder(e,t){const s=e.children.map(e=>e.visit(this,t));return new Ms(e.tag,e.attrs,e.startName,e.closeName,s,e.isVoid,e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}visitPlaceholder(e,t){return new Rs(e.value,e.name,e.sourceSpan)}visitIcuPlaceholder(e,t){return new Os(e.value,e.name,e.sourceSpan)}}class Ds{visitText(e,t){}visitContainer(e,t){e.children.forEach(e=>e.visit(this))}visitIcu(e,t){Object.keys(e.cases).forEach(t=>{e.cases[t].visit(this)})}visitTagPlaceholder(e,t){e.children.forEach(e=>e.visit(this))}visitPlaceholder(e,t){}visitIcuPlaceholder(e,t){}}class qs{visitText(e){return e.value}visitContainer(e){return e.children.map(e=>e.visit(this)).join("")}visitIcu(e){const t=Object.keys(e.cases).map(t=>`${t} {${e.cases[t].visit(this)}}`);return`{${e.expressionPlaceholder}, ${e.type}, ${t.join(" ")}}`}visitTagPlaceholder(e){const t=e.children.map(e=>e.visit(this)).join("");return`{$${e.startName}}${t}{$${e.closeName}}`}visitPlaceholder(e){return`{$${e.name}}`}visitIcuPlaceholder(e){return`{$${e.name}}`}}class Bs{createNameMapper(e){return null}}e("Serializer",Bs);class Fs extends Ds{constructor(e,t){super(),this.mapName=t,this.internalToPublic={},this.publicToNextId={},this.publicToInternal={},e.nodes.forEach(e=>e.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 e=this.publicToNextId[t];this.publicToNextId[t]=e+1,t=`${t}_${e}`}else this.publicToNextId[t]=1;this.internalToPublic[e]=t,this.publicToInternal[t]=e}}const Vs=new class{visitTag(e){const t=this._serializeAttributes(e.attrs);if(0==e.children.length)return`<${e.name}${t}/>`;const s=e.children.map(e=>e.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(t=>`${t}="${e[t]}"`).join(" ");return t.length>0?" "+t:""}visitDoctype(e){return`<!DOCTYPE ${e.rootTag} [\n${e.dtd}\n]>`}};function Us(e){return e.map(e=>e.visit(Vs)).join("")}class Hs{constructor(e){this.attrs={},Object.keys(e).forEach(t=>{this.attrs[t]=Ys(e[t])})}visit(e){return e.visitDeclaration(this)}}class js{constructor(e,t){this.rootTag=e,this.dtd=t}visit(e){return e.visitDoctype(this)}}class Ws{constructor(e,t={},s=[]){this.name=e,this.children=s,this.attrs={},Object.keys(t).forEach(e=>{this.attrs[e]=Ys(t[e])})}visit(e){return e.visitTag(this)}}class zs{constructor(e){this.value=Ys(e)}visit(e){return e.visitText(this)}}class Ks extends zs{constructor(e=0){super(`\n${new Array(e+1).join(" ")}`)}}const Gs=[[/&/g,"&"],[/"/g,"""],[/'/g,"'"],[/</g,"<"],[/>/g,">"]];function Ys(e){return Gs.reduce((e,t)=>e.replace(t[0],t[1]),e)}const Qs="messagebundle",Xs="ph",Js="ex";class Zs extends Bs{write(e,t){const s=new sn,n=new en;let r=new Ws(Qs);return e.forEach(e=>{const t={id:e.id};e.description&&(t.desc=e.description),e.meaning&&(t.meaning=e.meaning);let s=[];e.sources.forEach(e=>{s.push(new Ws("source",{},[new zs(`${e.filePath}:${e.startLine}${e.endLine!==e.startLine?","+e.endLine:""}`)]))}),r.children.push(new Ks(2),new Ws("msg",t,[...s,...n.serialize(e.nodes)]))}),r.children.push(new Ks),Us([new Hs({version:"1.0",encoding:"UTF-8"}),new Ks,new js(Qs,'<!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 Ks,s.addDefaultExamples(r),new Ks])}load(e,t){throw new Error("Unsupported")}digest(e){return tn(e)}createNameMapper(e){return new Fs(e,nn)}}e("Xmb",Zs);class en{visitText(e,t){return[new zs(e.value)]}visitContainer(e,t){const s=[];return e.children.forEach(e=>s.push(...e.visit(this))),s}visitIcu(e,t){const s=[new zs(`{${e.expressionPlaceholder}, ${e.type}, `)];return Object.keys(e.cases).forEach(t=>{s.push(new zs(`${t} {`),...e.cases[t].visit(this),new zs("} "))}),s.push(new zs("}")),s}visitTagPlaceholder(e,t){const s=new zs(`<${e.tag}>`),n=new Ws(Js,{},[s]),r=new Ws(Xs,{name:e.startName},[n,s]);if(e.isVoid)return[r];const i=new zs(`</${e.tag}>`),a=new Ws(Js,{},[i]),o=new Ws(Xs,{name:e.closeName},[a,i]);return[r,...this.serialize(e.children),o]}visitPlaceholder(e,t){const s=new zs(`{{${e.value}}}`),n=new Ws(Js,{},[s]);return[new Ws(Xs,{name:e.name},[n,s])]}visitIcuPlaceholder(e,t){const s=e.value.expression,n=e.value.type,r=Object.keys(e.value.cases).map(e=>e+" {...}").join(" "),i=new zs(`{${s}, ${n}, ${r}}`),a=new Ws(Js,{},[i]);return[new Ws(Xs,{name:e.name},[a,i])]}serialize(e){return[].concat(...e.map(e=>e.visit(this)))}}function tn(e){return q(e)}class sn{addDefaultExamples(e){return e.visit(this),e}visitTag(e){if(e.name===Xs){if(!e.children||0==e.children.length){const t=new zs(e.attrs.name||"...");e.children=[new Ws(Js,{},[t])]}}else e.children&&e.children.forEach(e=>e.visit(this))}visitText(e){}visitDeclaration(e){}visitDoctype(e){}}function nn(e){return e.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}const rn="i18n",an="i18n-";function on(e){return e===rn||e.startsWith(an)}function ln(e){return e instanceof ks}function cn(e){return ln(e)&&1===e.nodes.length&&e.nodes[0]instanceof Ls}function un(e){return!!e.i18n}function pn(e){return e.nodes[0]}function hn(e,t=0){return`\ufffd${e}${t>0?`:${t}`:""}\ufffd`}function dn(e=0){let t=e;return()=>t++}function mn(e){const t={};return e.forEach((e,s)=>{t[s]=Tt(e.length>1?`[${e.join("|")}]`:e[0])}),t}function gn(e,t,...s){const n=e.get(t)||[];n.push(...s),e.set(t,n)}function vn(e,t=0,s=0){const n=t,r=new Map,i=e instanceof ks?e.nodes.find(e=>e instanceof As):e;return i&&i.children.filter(e=>e instanceof Rs).forEach((e,t)=>{const i=hn(n+t,s);gn(r,e.name,i)}),r}function fn(e={},t){const s={};return e&&Object.keys(e).length&&Object.keys(e).forEach(n=>s[yn(n,t)]=e[n]),s}function yn(e,t=!0){const s=nn(e);if(!t)return s;const n=s.split("_");if(1===n.length)return e.toLowerCase();let r;/^\d+$/.test(n[n.length-1])&&(r=n.pop());let i=n.shift().toLowerCase();return n.length&&(i+=n.map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join("")),r?`${i}_${r}`:i}function xn(e){return`MSG_${e}`.toUpperCase()}function wn(e){return new ct(e.name,void 0,ue,void 0,e.sourceSpan)}const Sn=/[-.]/,En="_t",_n="ctx",bn="rf",Cn="restoredCtx",Tn=500,In=new Set([Bt.element,Bt.elementStart,Bt.elementEnd,Bt.elementContainer,Bt.elementContainerStart,Bt.elementContainerEnd,Bt.i18nExp,Bt.listener,Bt.classProp,Bt.syntheticHostListener,Bt.hostProperty,Bt.syntheticHostProperty,Bt.property,Bt.propertyInterpolate1,Bt.propertyInterpolate2,Bt.propertyInterpolate3,Bt.propertyInterpolate4,Bt.propertyInterpolate5,Bt.propertyInterpolate6,Bt.propertyInterpolate7,Bt.propertyInterpolate8,Bt.propertyInterpolateV,Bt.attribute,Bt.attributeInterpolate1,Bt.attributeInterpolate2,Bt.attributeInterpolate3,Bt.attributeInterpolate4,Bt.attributeInterpolate5,Bt.attributeInterpolate6,Bt.attributeInterpolate7,Bt.attributeInterpolate8,Bt.attributeInterpolateV,Bt.styleProp,Bt.stylePropInterpolate1,Bt.stylePropInterpolate2,Bt.stylePropInterpolate3,Bt.stylePropInterpolate4,Bt.stylePropInterpolate5,Bt.stylePropInterpolate6,Bt.stylePropInterpolate7,Bt.stylePropInterpolate8,Bt.stylePropInterpolateV,Bt.textInterpolate,Bt.textInterpolate1,Bt.textInterpolate2,Bt.textInterpolate3,Bt.textInterpolate4,Bt.textInterpolate5,Bt.textInterpolate6,Bt.textInterpolate7,Bt.textInterpolate8,Bt.textInterpolateV]);function Nn(e,t,s){return ft(t,null,e).callFn(s,e)}function kn(e,t){let s=null;return()=>(s||(e.push(new ct(En,void 0,ce)),s=vt(t)),s)}function Pn(e){throw new Error(`Invalid state: Visitor ${this.constructor.name} doesn't handle ${e.constructor.name}`)}function An(e){return Array.isArray(e)?wt(e.map(An)):Tt(e,ue)}function Ln(e,t){return Object.getOwnPropertyNames(e).length>0?function(e,t){return St(Object.getOwnPropertyNames(e).map(s=>{const n=e[s];let r,i,a,o;return Array.isArray(n)?([i,r]=n,a=s,o=i!==r):(a=r=s,i=n,o=!1),{key:a,quoted:Sn.test(a),value:t&&o?wt([An(i),An(r)]):An(i)}}))}(e,t):null}function Mn(e){for(;Nt(e[e.length-1]);)e.pop();return e}function Rn(e,t){if(Array.isArray(e.predicate)){let s=[];return e.predicate.forEach(e=>{const t=e.split(",").map(e=>Tt(e.trim()));s.push(...t)}),t.getConstLiteral(wt(s),!0)}switch(e.predicate.forwardRef){case 0:case 2:return e.predicate.expression;case 1:return ft(Bt.resolveForwardRef).callFn([e.predicate.expression])}}class On{constructor(){this.values=[]}set(e,t){t&&this.values.push({key:e,value:t,quoted:!1})}toLiteralMap(){return St(this.values)}}function $n(e){const{expressions:t,strings:s}=e;return 1===t.length&&2===s.length&&""===s[0]&&""===s[1]?1:t.length+s.length}function Dn(e){const t=[];let s=null,n=null,r=0;for(const i of e){const e=("function"==typeof i.paramsOrFn?i.paramsOrFn():i.paramsOrFn)??[],a=Array.isArray(e)?e:[e];r<Tn&&n===i.reference&&In.has(n)?(s=s.callFn(a,s.sourceSpan),r++):(null!==s&&t.push(s.toStmt()),s=Nn(i.span,i.reference,a),n=i.reference,r=0)}return null!==s&&t.push(s.toStmt()),t}function qn(e,t){let s=null;const n={name:e.name,type:e.type,internalType:e.internalType,typeArgumentCount:e.typeArgumentCount,deps:[],target:ps.Injectable};if(void 0!==e.useClass){const r=e.useClass.expression.isEquivalent(e.internalType);let i;void 0!==e.deps&&(i=e.deps),s=void 0!==i?hs({...n,delegate:e.useClass.expression,delegateDeps:i,delegateType:us.Class}):r?hs(n):{statements:[],expression:Fn(e.type.value,e.useClass.expression,t)}}else s=void 0!==e.useFactory?void 0!==e.deps?hs({...n,delegate:e.useFactory,delegateDeps:e.deps||[],delegateType:us.Function}):{statements:[],expression:_t([],[new ht(e.useFactory.callFn([]))])}:void 0!==e.useValue?hs({...n,expression:e.useValue.expression}):void 0!==e.useExisting?hs({...n,expression:ft(Bt.inject).callFn([e.useExisting.expression])}):{statements:[],expression:Fn(e.type.value,e.internalType,t)};const r=e.internalType,i=new On;i.set("token",r),i.set("factory",s.expression),null!==e.providedIn.expression.value&&i.set("providedIn",ls(e.providedIn));return{expression:ft(Bt.\u0275\u0275defineInjectable).callFn([i.toLiteralMap()],void 0,!0),type:Bn(e),statements:s.statements}}function Bn(e){return new ae(ft(Bt.InjectableDeclaration,[Jt(e.type.type,e.typeArgumentCount)]))}function Fn(e,t,s){if(e.node===t.node)return t.prop("\u0275fac");if(!s)return Vn(t);return Vn(ft(Bt.resolveForwardRef).callFn([t]))}function Vn(e){return _t([new Ke("t",ce)],[new ht(e.prop("\u0275fac").callFn([vt("t")]))])}const Un=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];class Hn{constructor(e,t){this.start=e,this.end=t}static fromArray(e){return e?(function(e,t){if(!(null==t||Array.isArray(t)&&2==t.length))throw new Error(`Expected '${e}' to be an array, [start, end].`);if(null!=t){const e=t[0],s=t[1];Un.forEach(t=>{if(t.test(e)||t.test(s))throw new Error(`['${e}', '${s}'] contains unusable interpolation symbol.`)})}}("interpolation",e),new Hn(e[0],e[1])):jn}}e("InterpolationConfig",Hn);const jn=e("DEFAULT_INTERPOLATION_CONFIG",new Hn("{{","}}")),Wn=0,zn=10,Kn=36,Gn=44,Yn=46,Qn=47,Xn=58,Jn=59,Zn=60,er=61,tr=62,sr=48,nr=57,rr=65,ir=90,ar=95,or=97,lr=122,cr=123,ur=125;function pr(e){return e>=9&&e<=32||160==e}function hr(e){return sr<=e&&e<=nr}function dr(e){return e>=or&&e<=lr||e>=rr&&e<=ir}function mr(e){return e===zn||13===e}function gr(e){return sr<=e&&e<=55}function vr(e){return 39===e||34===e||96===e}class fr{constructor(e,t,s,n){this.file=e,this.offset=t,this.line=s,this.col=n}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 n=this.offset,r=this.line,i=this.col;for(;n>0&&e<0;){n--,e++;if(t.charCodeAt(n)==zn){r--;const e=t.substring(0,n-1).lastIndexOf(String.fromCharCode(zn));i=e>0?n-e:n}else i--}for(;n<s&&e>0;){const s=t.charCodeAt(n);n++,e--,s==zn?(r++,i=0):i++}return new fr(this.file,n,r,i)}getContext(e,t){const s=this.file.content;let n=this.offset;if(null!=n){n>s.length-1&&(n=s.length-1);let r=n,i=0,a=0;for(;i<e&&n>0&&(n--,i++,"\n"!=s[n]||++a!=t););for(i=0,a=0;i<e&&r<s.length-1&&(r++,i++,"\n"!=s[r]||++a!=t););return{before:s.substring(n,this.offset),after:s.substring(this.offset,r+1)}}return null}}e("ParseLocation",fr);class yr{constructor(e,t){this.content=e,this.url=t}}e("ParseSourceFile",yr);class xr{constructor(e,t,s=e,n=null){this.start=e,this.end=t,this.fullStart=s,this.details=n}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}}var wr;e("ParseSourceSpan",xr),e("ParseErrorLevel",wr),function(e){e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR"}(wr||e("ParseErrorLevel",wr={}));class Sr{constructor(e,t,s=wr.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}[${wr[this.level]} ->]${e.after}")`:this.msg}toString(){const e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}}function Er(e,t,s){const n=new yr("",`in ${e} ${t} in ${s}`);return new xr(new fr(n,-1,-1,-1),new fr(n,-1,-1,-1))}e("ParseError",Sr);let _r=0;function br(e){if(!e||!e.reference)return null;const t=e.reference;if(t.__anonymousType)return t.__anonymousType;if(t.__forward_ref__)return"__forward_ref__";let s=A(t);return s.indexOf("(")>=0?(s="anonymous_"+_r++,t.__anonymousType=s):s=Cr(s),s}function Cr(e){return e.replace(/\W/g,"_")}const Tr='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})';class Ir extends Yt{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,`(${Tr}(`),t.print(e,`[${s.map(e=>Qt(e.text,!1)).join(", ")}], `),t.print(e,`[${s.map(e=>Qt(e.rawText,!1)).join(", ")}])`),e.template.expressions.forEach(s=>{t.print(e,", "),s.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(${Tr}(`);const s=[e.serializeI18nHead()];for(let t=1;t<e.messageParts.length;t++)s.push(e.serializeI18nTemplatePart(t));return t.print(e,`[${s.map(e=>Qt(e.cooked,!1)).join(", ")}], `),t.print(e,`[${s.map(e=>Qt(e.raw,!1)).join(", ")}])`),e.expressions.forEach(s=>{t.print(e,", "),s.visitExpression(this,t)}),t.print(e,")"),null}_visitParams(e,t){this.visitAllObjects(e=>t.print(null,e.name),e,t,",")}}function Nr(...e){if(!M.trustedTypes)return new Function(...e);const t=`(function anonymous(${e.slice(0,-1).join(",")}\n) { ${e[e.length-1]}\n})`,s=M.eval(t);return void 0===s.bind?new Function(...e):(s.toString=()=>t,s.bind(M))}class kr{evaluateStatements(e,t,s,n){const r=new Pr(s),i=Gt.createRoot();return t.length>0&&!t[0].isEquivalent(Tt("use strict").toStmt())&&(t=[Tt("use strict").toStmt(),...t]),r.visitAllStatements(t,i),r.createReturnStmt(i),this.evaluateCode(e,i,r.getArgs(),n)}evaluateCode(e,t,s,n){let r=`"use strict";${t.toSource()}\n//# sourceURL=${e}`;const i=[],a=[];for(const e in s)a.push(s[e]),i.push(e);if(n){const s=Nr(...i.concat("return null;")).toString(),n=s.slice(0,s.indexOf("return null;")).split("\n").length-1;r+=`\n${t.toSourceMapGenerator(e,n).toJsComment()}`}const o=Nr(...i.concat(r));return this.executeFunction(o,a)}executeFunction(e,t){return e(...t)}}e("JitEvaluator",kr);class Pr extends Ir{constructor(e){super(),this.refResolver=e,this._evalArgNames=[],this._evalArgValues=[],this._evalExportedVars=[]}createReturnStmt(e){new ht(new tt(this._evalExportedVars.map(e=>new et(e,vt(e),!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(it.Exported)&&this._evalExportedVars.push(e.name),super.visitDeclareVarStmt(e,t)}visitDeclareFunctionStmt(e,t){return e.hasModifier(it.Exported)&&this._evalExportedVars.push(e.name),super.visitDeclareFunctionStmt(e,t)}_emitReferenceToExternal(e,t,s){let n=this._evalArgValues.indexOf(t);if(-1===n){n=this._evalArgValues.length,this._evalArgValues.push(t);const e=br({reference:t})||"val";this._evalArgNames.push(`jit_${e}_${n}`)}s.print(e,this._evalArgNames[n])}}function Ar(e){const t=new On;null!==e.providers&&t.set("providers",e.providers),e.imports.length>0&&t.set("imports",wt(e.imports));return{expression:ft(Bt.defineInjector).callFn([t.toLiteralMap()],void 0,!0),type:Lr(e),statements:[]}}function Lr(e){return new ae(ft(Bt.InjectorDeclaration,[new ae(e.type.type)]))}class Mr{constructor(e){this.context=e}resolveExternalReference(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 Rr,Or,$r,Dr;function qr(e){const{adjacentType:t,internalType:s,bootstrap:n,declarations:r,imports:i,exports:a,schemas:o,containsForwardDecls:l,selectorScopeMode:c,id:u}=e,p=[],h=new On;if(h.set("type",s),n.length>0&&h.set("bootstrap",as(n,l)),c===Rr.Inline)r.length>0&&h.set("declarations",as(r,l)),i.length>0&&h.set("imports",as(i,l)),a.length>0&&h.set("exports",as(a,l));else if(c===Rr.SideEffect){const t=function(e){const{adjacentType:t,declarations:s,imports:n,exports:r,containsForwardDecls:i}=e,a=new On;s.length>0&&a.set("declarations",as(s,i));n.length>0&&a.set("imports",as(n,i));r.length>0&&a.set("exports",as(r,i));if(0===Object.keys(a.values).length)return null;const o=(c=new ke(ft(Bt.setNgModuleScope),[t,a.toLiteralMap()]),rs("ngJitMode",c)),l=new Ge([],[o.toStmt()]);var c;return new ke(l,[]).toStmt()}(e);null!==t&&p.push(t)}null!==o&&o.length>0&&h.set("schemas",wt(o.map(e=>e.value))),null!==u&&(h.set("id",u),p.push(ft(Bt.registerNgModuleType).callFn([t,u]).toStmt()));return{expression:ft(Bt.defineNgModule).callFn([h.toLiteralMap()],void 0,!0),type:Br(e),statements:p}}function Br({type:e,declarations:t,exports:s,imports:n,includeImportTypes:r,publicDeclarationTypes:i}){return new ae(ft(Bt.NgModuleDeclaration,[new ae(e.type),null===i?Fr(t):Vr(i),r?Fr(n):ve,Fr(s)]))}function Fr(e){const t=e.map(e=>xt(e.type));return e.length>0?yt(wt(t)):ve}function Vr(e){const t=e.map(e=>xt(e));return e.length>0?yt(wt(t)):ve}function Ur(e){const t=[];t.push({key:"name",value:Tt(e.pipeName),quoted:!1}),t.push({key:"type",value:e.type.value,quoted:!1}),t.push({key:"pure",value:Tt(e.pure),quoted:!1}),e.isStandalone&&t.push({key:"standalone",value:Tt(!0),quoted:!1});return{expression:ft(Bt.definePipe).callFn([St(t)],void 0,!0),type:Hr(e),statements:[]}}function Hr(e){return new ae(ft(Bt.PipeDeclaration,[Jt(e.type.type,e.typeArgumentCount),new ae(new Le(e.pipeName)),new ae(new Le(e.isStandalone))]))}e("R3SelectorScopeMode",Rr),function(e){e[e.Inline=0]="Inline",e[e.SideEffect=1]="SideEffect",e[e.Omit=2]="Omit"}(Rr||e("R3SelectorScopeMode",Rr={})),e("R3TemplateDependencyKind",Or),function(e){e[e.Directive=0]="Directive",e[e.Pipe=1]="Pipe",e[e.NgModule=2]="NgModule"}(Or||e("R3TemplateDependencyKind",Or={}));class jr{constructor(e,t,s,n){this.input=t,this.errLocation=s,this.ctxLocation=n,this.message=`Parser Error: ${e} ${s} [${t}] in ${n}`}}e("ParserError",jr);class Wr{constructor(e,t){this.start=e,this.end=t}toAbsolute(e){return new vi(e+this.start,e+this.end)}}e("ParseSpan",Wr);class zr{constructor(e,t){this.span=e,this.sourceSpan=t}toString(){return"AST"}}e("AST",zr);class Kr extends zr{constructor(e,t,s){super(e,t),this.nameSpan=s}}e("ASTWithName",Kr);class Gr extends zr{visit(e,t=null){}}e("EmptyExpr",Gr);class Yr extends zr{visit(e,t=null){return e.visitImplicitReceiver(this,t)}}e("ImplicitReceiver",Yr);class Qr extends Yr{visit(e,t=null){return e.visitThisReceiver?.(this,t)}}e("ThisReceiver",Qr);class Xr extends zr{constructor(e,t,s){super(e,t),this.expressions=s}visit(e,t=null){return e.visitChain(this,t)}}e("Chain",Xr);class Jr extends zr{constructor(e,t,s,n,r){super(e,t),this.condition=s,this.trueExp=n,this.falseExp=r}visit(e,t=null){return e.visitConditional(this,t)}}e("Conditional",Jr);class Zr extends Kr{constructor(e,t,s,n,r){super(e,t,s),this.receiver=n,this.name=r}visit(e,t=null){return e.visitPropertyRead(this,t)}}e("PropertyRead",Zr);class ei extends Kr{constructor(e,t,s,n,r,i){super(e,t,s),this.receiver=n,this.name=r,this.value=i}visit(e,t=null){return e.visitPropertyWrite(this,t)}}e("PropertyWrite",ei);class ti extends Kr{constructor(e,t,s,n,r){super(e,t,s),this.receiver=n,this.name=r}visit(e,t=null){return e.visitSafePropertyRead(this,t)}}e("SafePropertyRead",ti);class si extends zr{constructor(e,t,s,n){super(e,t),this.receiver=s,this.key=n}visit(e,t=null){return e.visitKeyedRead(this,t)}}e("KeyedRead",si);class ni extends zr{constructor(e,t,s,n){super(e,t),this.receiver=s,this.key=n}visit(e,t=null){return e.visitSafeKeyedRead(this,t)}}e("SafeKeyedRead",ni);class ri extends zr{constructor(e,t,s,n,r){super(e,t),this.receiver=s,this.key=n,this.value=r}visit(e,t=null){return e.visitKeyedWrite(this,t)}}e("KeyedWrite",ri);class ii extends Kr{constructor(e,t,s,n,r,i){super(e,t,i),this.exp=s,this.name=n,this.args=r}visit(e,t=null){return e.visitPipe(this,t)}}e("BindingPipe",ii);class ai extends zr{constructor(e,t,s){super(e,t),this.value=s}visit(e,t=null){return e.visitLiteralPrimitive(this,t)}}e("LiteralPrimitive",ai);class oi extends zr{constructor(e,t,s){super(e,t),this.expressions=s}visit(e,t=null){return e.visitLiteralArray(this,t)}}e("LiteralArray",oi);class li extends zr{constructor(e,t,s,n){super(e,t),this.keys=s,this.values=n}visit(e,t=null){return e.visitLiteralMap(this,t)}}e("LiteralMap",li);class ci extends zr{constructor(e,t,s,n){super(e,t),this.strings=s,this.expressions=n}visit(e,t=null){return e.visitInterpolation(this,t)}}e("Interpolation",ci);class ui extends zr{constructor(e,t,s,n,r){super(e,t),this.operation=s,this.left=n,this.right=r}visit(e,t=null){return e.visitBinary(this,t)}}e("Binary",ui);class pi extends ui{constructor(e,t,s,n,r,i,a){super(e,t,r,i,a),this.operator=s,this.expr=n,this.left=null,this.right=null,this.operation=null}static createMinus(e,t,s){return new pi(e,t,"-",s,"-",new ai(e,t,0),s)}static createPlus(e,t,s){return new pi(e,t,"+",s,"-",s,new ai(e,t,0))}visit(e,t=null){return void 0!==e.visitUnary?e.visitUnary(this,t):e.visitBinary(this,t)}}e("Unary",pi);class hi extends zr{constructor(e,t,s){super(e,t),this.expression=s}visit(e,t=null){return e.visitPrefixNot(this,t)}}e("PrefixNot",hi);class di extends zr{constructor(e,t,s){super(e,t),this.expression=s}visit(e,t=null){return e.visitNonNullAssert(this,t)}}e("NonNullAssert",di);class mi extends zr{constructor(e,t,s,n,r){super(e,t),this.receiver=s,this.args=n,this.argumentSpan=r}visit(e,t=null){return e.visitCall(this,t)}}e("Call",mi);class gi extends zr{constructor(e,t,s,n,r){super(e,t),this.receiver=s,this.args=n,this.argumentSpan=r}visit(e,t=null){return e.visitSafeCall(this,t)}}e("SafeCall",gi);class vi{constructor(e,t){this.start=e,this.end=t}}e("AbsoluteSourceSpan",vi);class fi extends zr{constructor(e,t,s,n,r){super(new Wr(0,null===t?0:t.length),new vi(n,null===t?n:n+t.length)),this.ast=e,this.source=t,this.location=s,this.errors=r}visit(e,t=null){return e.visitASTWithSource?e.visitASTWithSource(this,t):this.ast.visit(e,t)}toString(){return`${this.source} in ${this.location}`}}e("ASTWithSource",fi);class yi{constructor(e,t,s){this.sourceSpan=e,this.key=t,this.value=s}}e("VariableBinding",yi);class xi{constructor(e,t,s){this.sourceSpan=e,this.key=t,this.value=s}}e("ExpressionBinding",xi);class wi{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)}}e("RecursiveAstVisitor",wi);class Si{visitImplicitReceiver(e,t){return e}visitThisReceiver(e,t){return e}visitInterpolation(e,t){return new ci(e.span,e.sourceSpan,e.strings,this.visitAll(e.expressions))}visitLiteralPrimitive(e,t){return new ai(e.span,e.sourceSpan,e.value)}visitPropertyRead(e,t){return new Zr(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}visitPropertyWrite(e,t){return new ei(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name,e.value.visit(this))}visitSafePropertyRead(e,t){return new ti(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}visitLiteralArray(e,t){return new oi(e.span,e.sourceSpan,this.visitAll(e.expressions))}visitLiteralMap(e,t){return new li(e.span,e.sourceSpan,e.keys,this.visitAll(e.values))}visitUnary(e,t){switch(e.operator){case"+":return pi.createPlus(e.span,e.sourceSpan,e.expr.visit(this));case"-":return pi.createMinus(e.span,e.sourceSpan,e.expr.visit(this));default:throw new Error(`Unknown unary operator ${e.operator}`)}}visitBinary(e,t){return new ui(e.span,e.sourceSpan,e.operation,e.left.visit(this),e.right.visit(this))}visitPrefixNot(e,t){return new hi(e.span,e.sourceSpan,e.expression.visit(this))}visitNonNullAssert(e,t){return new di(e.span,e.sourceSpan,e.expression.visit(this))}visitConditional(e,t){return new Jr(e.span,e.sourceSpan,e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this))}visitPipe(e,t){return new ii(e.span,e.sourceSpan,e.exp.visit(this),e.name,this.visitAll(e.args),e.nameSpan)}visitKeyedRead(e,t){return new si(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this))}visitKeyedWrite(e,t){return new ri(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this),e.value.visit(this))}visitCall(e,t){return new mi(e.span,e.sourceSpan,e.receiver.visit(this),this.visitAll(e.args),e.argumentSpan)}visitSafeCall(e,t){return new gi(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 Xr(e.span,e.sourceSpan,this.visitAll(e.expressions))}visitSafeKeyedRead(e,t){return new ni(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this))}}e("AstTransformer",Si);class Ei{visitImplicitReceiver(e,t){return e}visitThisReceiver(e,t){return e}visitInterpolation(e,t){const s=this.visitAll(e.expressions);return s!==e.expressions?new ci(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 Zr(e.span,e.sourceSpan,e.nameSpan,s,e.name):e}visitPropertyWrite(e,t){const s=e.receiver.visit(this),n=e.value.visit(this);return s!==e.receiver||n!==e.value?new ei(e.span,e.sourceSpan,e.nameSpan,s,e.name,n):e}visitSafePropertyRead(e,t){const s=e.receiver.visit(this);return s!==e.receiver?new ti(e.span,e.sourceSpan,e.nameSpan,s,e.name):e}visitLiteralArray(e,t){const s=this.visitAll(e.expressions);return s!==e.expressions?new oi(e.span,e.sourceSpan,s):e}visitLiteralMap(e,t){const s=this.visitAll(e.values);return s!==e.values?new li(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 pi.createPlus(e.span,e.sourceSpan,s);case"-":return pi.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),n=e.right.visit(this);return s!==e.left||n!==e.right?new ui(e.span,e.sourceSpan,e.operation,s,n):e}visitPrefixNot(e,t){const s=e.expression.visit(this);return s!==e.expression?new hi(e.span,e.sourceSpan,s):e}visitNonNullAssert(e,t){const s=e.expression.visit(this);return s!==e.expression?new di(e.span,e.sourceSpan,s):e}visitConditional(e,t){const s=e.condition.visit(this),n=e.trueExp.visit(this),r=e.falseExp.visit(this);return s!==e.condition||n!==e.trueExp||r!==e.falseExp?new Jr(e.span,e.sourceSpan,s,n,r):e}visitPipe(e,t){const s=e.exp.visit(this),n=this.visitAll(e.args);return s!==e.exp||n!==e.args?new ii(e.span,e.sourceSpan,s,e.name,n,e.nameSpan):e}visitKeyedRead(e,t){const s=e.receiver.visit(this),n=e.key.visit(this);return s!==e.receiver||n!==e.key?new si(e.span,e.sourceSpan,s,n):e}visitKeyedWrite(e,t){const s=e.receiver.visit(this),n=e.key.visit(this),r=e.value.visit(this);return s!==e.receiver||n!==e.key||r!==e.value?new ri(e.span,e.sourceSpan,s,n,r):e}visitAll(e){const t=[];let s=!1;for(let n=0;n<e.length;++n){const r=e[n],i=r.visit(this);t[n]=i,s=s||i!==r}return s?t:e}visitChain(e,t){const s=this.visitAll(e.expressions);return s!==e.expressions?new Xr(e.span,e.sourceSpan,s):e}visitCall(e,t){const s=e.receiver.visit(this),n=this.visitAll(e.args);return s!==e.receiver||n!==e.args?new mi(e.span,e.sourceSpan,s,n,e.argumentSpan):e}visitSafeCall(e,t){const s=e.receiver.visit(this),n=this.visitAll(e.args);return s!==e.receiver||n!==e.args?new gi(e.span,e.sourceSpan,s,n,e.argumentSpan):e}visitSafeKeyedRead(e,t){const s=e.receiver.visit(this),n=e.key.visit(this);return s!==e.receiver||n!==e.key?new ni(e.span,e.sourceSpan,s,n):e}}e("AstMemoryEfficientTransformer",Ei);class _i{constructor(e,t,s,n,r,i){this.name=e,this.expression=t,this.type=s,this.sourceSpan=n,this.keySpan=r,this.valueSpan=i,this.isLiteral=this.type===$r.LITERAL_ATTR,this.isAnimation=this.type===$r.ANIMATION}}e("ParsedProperty",_i),e("ParsedPropertyType",$r),function(e){e[e.DEFAULT=0]="DEFAULT",e[e.LITERAL_ATTR=1]="LITERAL_ATTR",e[e.ANIMATION=2]="ANIMATION"}($r||e("ParsedPropertyType",$r={}));class bi{constructor(e,t,s,n,r,i,a){this.name=e,this.targetOrPhase=t,this.type=s,this.handler=n,this.sourceSpan=r,this.handlerSpan=i,this.keySpan=a}}e("ParsedEvent",bi);class Ci{constructor(e,t,s,n,r){this.name=e,this.value=t,this.sourceSpan=s,this.keySpan=n,this.valueSpan=r}}e("ParsedVariable",Ci);class Ti{constructor(e,t,s,n,r,i,a,o){this.name=e,this.type=t,this.securityContext=s,this.value=n,this.unit=r,this.sourceSpan=i,this.keySpan=a,this.valueSpan=o}}e("BoundElementProperty",Ti);class Ii{}function Ni(e,t,s,n,r,i,a){e||(e=new Vi(a));const o=function(e,t){const s=new $i(e);return t.visit(s)}({createLiteralArrayConverter:e=>e=>wt(e),createLiteralMapConverter:e=>t=>St(e.map((e,s)=>({key:e.key,value:t[s],quoted:e.quoted}))),createPipeConverter:e=>{throw new Error(`Illegal State: Actions are not allowed to contain pipes. Pipe: ${e}`)}},s);const l=new Di(e,t,n,!1,r,i),c=[];qi(o.visit(l,Dr.Statement),c),function(e,t,s){for(let n=e-1;n>=0;n--)s.unshift(Mi(t,n))}(l.temporaryCount,n,c),l.usesImplicitReceiver&&e.notifyImplicitReceiverUse();const u=c.length-1;if(u>=0){const e=c[u];e instanceof pt&&(c[u]=new ht(e.expr))}return c}Ii.event=vt("$event");class ki{constructor(e,t){this.stmts=e,this.currValExpr=t}}function Pi(e,t,s,n){e||(e=new Vi);const r=new Di(e,t,n,!1),i=s.visit(r,Dr.Expression),a=Ai(r,n);return r.usesImplicitReceiver&&e.notifyImplicitReceiverUse(),new ki(a,i)}function Ai(e,t){const s=[];for(let n=0;n<e.temporaryCount;n++)s.push(Mi(t,n));return s}function Li(e,t){return`tmp_${e}_${t}`}function Mi(e,t){return new ct(Li(e,t))}function Ri(e,t){if(e!==Dr.Expression)throw new Error(`Expected an expression, but saw ${t}`)}function Oi(e,t){return e===Dr.Statement?t.toStmt():t}!function(e){e[e.Statement=0]="Statement",e[e.Expression=1]="Expression"}(Dr||(Dr={}));class $i extends Si{constructor(e){super(),this._converterFactory=e}visitPipe(e,t){const s=[e.exp,...e.args].map(e=>e.visit(this,t));return new Ui(e.span,e.sourceSpan,s,this._converterFactory.createPipeConverter(e.name,s.length))}visitLiteralArray(e,t){const s=e.expressions.map(e=>e.visit(this,t));return new Ui(e.span,e.sourceSpan,s,this._converterFactory.createLiteralArrayConverter(e.expressions.length))}visitLiteralMap(e,t){const s=e.values.map(e=>e.visit(this,t));return new Ui(e.span,e.sourceSpan,s,this._converterFactory.createLiteralMapConverter(e.keys))}}class Di{constructor(e,t,s,n,r,i){this._localResolver=e,this._implicitReceiver=t,this.bindingId=s,this.supportsInterpolation=n,this.baseSourceSpan=r,this.implicitReceiverAccesses=i,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=fe.Plus;break;case"-":s=fe.Minus;break;default:throw new Error(`Unsupported operator ${e.operator}`)}return Oi(t,new Ye(s,this._visit(e.expr,Dr.Expression),void 0,this.convertSourceSpan(e.span)))}visitBinary(e,t){let s;switch(e.operation){case"+":s=ye.Plus;break;case"-":s=ye.Minus;break;case"*":s=ye.Multiply;break;case"/":s=ye.Divide;break;case"%":s=ye.Modulo;break;case"&&":s=ye.And;break;case"||":s=ye.Or;break;case"==":s=ye.Equals;break;case"!=":s=ye.NotEquals;break;case"===":s=ye.Identical;break;case"!==":s=ye.NotIdentical;break;case"<":s=ye.Lower;break;case">":s=ye.Bigger;break;case"<=":s=ye.LowerEquals;break;case">=":s=ye.BiggerEquals;break;case"??":return this.convertNullishCoalesce(e,t);default:throw new Error(`Unsupported operation ${e.operation}`)}return Oi(t,new Qe(s,this._visit(e.left,Dr.Expression),this._visit(e.right,Dr.Expression),void 0,this.convertSourceSpan(e.span)))}visitChain(e,t){return function(e,t){if(e!==Dr.Statement)throw new Error(`Expected a statement, but saw ${t}`)}(t,e),this.visitAll(e.expressions,t)}visitConditional(e,t){return Oi(t,this._visit(e.condition,Dr.Expression).conditional(this._visit(e.trueExp,Dr.Expression),this._visit(e.falseExp,Dr.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 Ri(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");Ri(t,e);let s=[];for(let t=0;t<e.strings.length-1;t++)s.push(Tt(e.strings[t])),s.push(this._visit(e.expressions[t],Dr.Expression));s.push(Tt(e.strings[e.strings.length-1]));const n=e.strings;return 2===n.length&&""===n[0]&&""===n[1]?s=[s[1]]:e.expressions.length>=9&&(s=[wt(s)]),new Fi(s)}visitKeyedRead(e,t){const s=this.leftMostSafeNode(e);return s?this.convertSafeAccess(e,s,t):Oi(t,this._visit(e.receiver,Dr.Expression).key(this._visit(e.key,Dr.Expression)))}visitKeyedWrite(e,t){const s=this._visit(e.receiver,Dr.Expression),n=this._visit(e.key,Dr.Expression),r=this._visit(e.value,Dr.Expression);return s===this._implicitReceiver&&this._localResolver.maybeRestoreView(),Oi(t,s.key(n).set(r))}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?ue:void 0;return Oi(t,Tt(e.value,s,this.convertSourceSpan(e.span)))}_getLocal(e,t){return this._localResolver.globals?.has(e)&&t instanceof Qr?null:this._localResolver.getLocal(e)}visitPrefixNot(e,t){return Oi(t,Et(this._visit(e.expression,Dr.Expression)))}visitNonNullAssert(e,t){return Oi(t,this._visit(e.expression,Dr.Expression))}visitPropertyRead(e,t){const s=this.leftMostSafeNode(e);if(s)return this.convertSafeAccess(e,s,t);{let s=null;const n=this.usesImplicitReceiver,r=this._visit(e.receiver,Dr.Expression);return r===this._implicitReceiver&&(s=this._getLocal(e.name,e.receiver),s&&(this.usesImplicitReceiver=n,this.addImplicitReceiverAccess(e.name))),null==s&&(s=r.prop(e.name,this.convertSourceSpan(e.span))),Oi(t,s)}}visitPropertyWrite(e,t){const s=this._visit(e.receiver,Dr.Expression),n=this.usesImplicitReceiver;let r=null;if(s===this._implicitReceiver){const t=this._getLocal(e.name,e.receiver);if(t){if(!(t instanceof Xe)){const t=e.name,s=e.value instanceof Zr?e.value.name:void 0;throw new Error(`Cannot assign value "${s}" to template variable "${t}". Template variables are read-only.`)}r=t,this.usesImplicitReceiver=n,this.addImplicitReceiverAccess(e.name)}}return null===r&&(r=s.prop(e.name,this.convertSourceSpan(e.span))),Oi(t,r.set(this._visit(e.value,Dr.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(e=>this._visit(e,t))}visitCall(e,t){const s=this.leftMostSafeNode(e);if(s)return this.convertSafeAccess(e,s,t);const n=this.visitAll(e.args,Dr.Expression);if(e instanceof Ui)return Oi(t,e.converter(n));const r=e.receiver;if(r instanceof Zr&&r.receiver instanceof Yr&&!(r.receiver instanceof Qr)&&"$any"===r.name){if(1!==n.length)throw new Error(`Invalid call to $any, expected 1 argument but received ${n.length||"none"}`);return Oi(t,n[0])}return Oi(t,this._visit(r,Dr.Expression).callFn(n,this.convertSourceSpan(e.span)))}visitSafeCall(e,t){return this.convertSafeAccess(e,this.leftMostSafeNode(e),t)}_visit(e,t){const s=this._resultMap.get(e);return s||(this._nodeMap.get(e)||e).visit(this,t)}convertSafeAccess(e,t,s){let n,r=this._visit(t.receiver,Dr.Expression);this.needsTemporaryInSafeAccess(t.receiver)&&(n=this.allocateTemporary(),r=n.set(r),this._resultMap.set(t.receiver,n));const i=r.isBlank();t instanceof gi?this._nodeMap.set(t,new mi(t.span,t.sourceSpan,t.receiver,t.args,t.argumentSpan)):t instanceof ni?this._nodeMap.set(t,new si(t.span,t.sourceSpan,t.receiver,t.key)):this._nodeMap.set(t,new Zr(t.span,t.sourceSpan,t.nameSpan,t.receiver,t.name));const a=this._visit(e,Dr.Expression);return this._nodeMap.delete(t),n&&this.releaseTemporary(n),Oi(s,i.conditional(nt,a))}convertNullishCoalesce(e,t){const s=this._visit(e.left,Dr.Expression),n=this._visit(e.right,Dr.Expression),r=this.allocateTemporary();return this.releaseTemporary(r),Oi(t,r.set(s).notIdentical(nt).and(r.notIdentical(Tt(void 0))).conditional(r,n))}leftMostSafeNode(e){const t=(e,t)=>(this._nodeMap.get(t)||t).visit(e);return e.visit({visitUnary:e=>null,visitBinary:e=>null,visitChain:e=>null,visitConditional:e=>null,visitCall(e){return t(this,e.receiver)},visitSafeCall(e){return t(this,e.receiver)||e},visitImplicitReceiver:e=>null,visitThisReceiver:e=>null,visitInterpolation:e=>null,visitKeyedRead(e){return t(this,e.receiver)},visitKeyedWrite:e=>null,visitLiteralArray:e=>null,visitLiteralMap:e=>null,visitLiteralPrimitive:e=>null,visitPipe:e=>null,visitPrefixNot:e=>null,visitNonNullAssert:e=>null,visitPropertyRead(e){return t(this,e.receiver)},visitPropertyWrite:e=>null,visitSafePropertyRead(e){return t(this,e.receiver)||e},visitSafeKeyedRead(e){return t(this,e.receiver)||e}})}needsTemporaryInSafeAccess(e){const t=(e,t)=>t&&(this._nodeMap.get(t)||t).visit(e);return e.visit({visitUnary(e){return t(this,e.expr)},visitBinary(e){return t(this,e.left)||t(this,e.right)},visitChain:e=>!1,visitConditional(e){return t(this,e.condition)||t(this,e.trueExp)||t(this,e.falseExp)},visitCall:e=>!0,visitSafeCall:e=>!0,visitImplicitReceiver:e=>!1,visitThisReceiver:e=>!1,visitInterpolation(e){return((e,s)=>s.some(s=>t(e,s)))(this,e.expressions)},visitKeyedRead:e=>!1,visitKeyedWrite:e=>!1,visitLiteralArray:e=>!0,visitLiteralMap:e=>!0,visitLiteralPrimitive:e=>!1,visitPipe:e=>!0,visitPrefixNot(e){return t(this,e.expression)},visitNonNullAssert(e){return t(this,e.expression)},visitPropertyRead:e=>!1,visitPropertyWrite:e=>!1,visitSafePropertyRead:e=>!1,visitSafeKeyedRead:e=>!1})}allocateTemporary(){const e=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new _e(Li(this.bindingId,e))}releaseTemporary(e){if(this._currentTemporary--,e.name!=Li(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),n=this.baseSourceSpan.fullStart.moveBy(e.start);return new xr(t,s,n)}return null}addImplicitReceiverAccess(e){this.implicitReceiverAccesses&&this.implicitReceiverAccesses.add(e)}}function qi(e,t){Array.isArray(e)?e.forEach(e=>qi(e,t)):t.push(e)}function Bi(){throw new Error("Unsupported operation")}class Fi extends Ee{constructor(e){super(null,null),this.args=e,this.isConstant=Bi,this.isEquivalent=Bi,this.visitExpression=Bi}}class Vi{constructor(e){this.globals=e}notifyImplicitReceiverUse(){}maybeRestoreView(){}getLocal(e){return e===Ii.event.name?Ii.event:null}}class Ui extends mi{constructor(e,t,s,n){super(e,t,new Gr(e,t),s,null),this.converter=n}}let Hi;function ji(){return Hi||(Hi={},Wi(_.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Wi(_.STYLE,["*|style"]),Wi(_.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"]),Wi(_.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"])),Hi}function Wi(e,t){for(const s of t)Hi[s.toLowerCase()]=e}const zi=new Set(["sandbox","allow","allowfullscreen","referrerpolicy","csp","fetchpriority"]);function Ki(e){return zi.has(e.toLowerCase())}class Gi{constructor(){this.strictStyling=!0}shimCssText(e,t,s=""){const n=e.match(ma)||[];e=function(e){return e.replace(da,"")}(e),e=this._insertDirectives(e);return[this._scopeCssText(e,t,s),...n].join("\n")}_insertDirectives(e){return e=this._insertPolyfillDirectivesInCssText(e),this._insertPolyfillRulesInCssText(e)}_insertPolyfillDirectivesInCssText(e){return e.replace(Qi,function(...e){return e[2]+"{"})}_insertPolyfillRulesInCssText(e){return e.replace(Xi,(...e)=>{const t=e[0].replace(e[1],"").replace(e[2],"");return e[4]+t})}_scopeCssText(e,t,s){const n=this._extractUnscopedRulesFromCssText(e);return e=this._insertPolyfillHostInCssText(e),e=this._convertColonHost(e),e=this._convertColonHostContext(e),e=this._convertShadowDOMSelectors(e),t&&(e=this._scopeSelectors(e,t,s)),(e=e+"\n"+n).trim()}_extractUnscopedRulesFromCssText(e){let t,s="";for(Ji.lastIndex=0;null!==(t=Ji.exec(e));){s+=t[0].replace(t[2],"").replace(t[1],t[4])+"\n\n"}return s}_convertColonHost(e){return e.replace(sa,(e,t,s)=>{if(t){const e=[],n=t.split(",").map(e=>e.trim());for(const t of n){if(!t)break;const n=ia+t.replace(Zi,"")+s;e.push(n)}return e.join(",")}return ia+s})}_convertColonHostContext(e){return e.replace(na,e=>{const t=[[]];let s;for(;s=ra.exec(e);){const n=(s[1]??"").trim().split(",").map(e=>e.trim()).filter(e=>""!==e),r=t.length;Ca(t,n.length);for(let e=0;e<n.length;e++)for(let s=0;s<r;s++)t[s+e*r].push(n[e]);e=s[2]}return t.map(t=>function(e,t){const s=ia;ua.lastIndex=0;const n=ua.test(t);if(0===e.length)return s+t;const r=[e.pop()||""];for(;e.length>0;){const t=r.length,s=e.pop();for(let e=0;e<t;e++){const n=r[e];r[2*t+e]=n+" "+s,r[t+e]=s+" "+n,r[e]=s+n}}return r.map(e=>n?`${e}${t}`:`${e}${s}${t}, ${e} ${s}${t}`).join(",")}(t,e)).join(", ")})}_convertShadowDOMSelectors(e){return oa.reduce((e,t)=>e.replace(t," "),e)}_scopeSelectors(e,t,s){return Ea(e,e=>{let n=e.selector,r=e.content;return"@"!==e.selector[0]?n=this._scopeSelector(e.selector,t,s,this.strictStyling):e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@document")||e.selector.startsWith("@layer")?r=this._scopeSelectors(e.content,t,s):(e.selector.startsWith("@font-face")||e.selector.startsWith("@page"))&&(r=this._stripScopingSelectors(e.content)),new Sa(n,r)})}_stripScopingSelectors(e){return Ea(e,e=>{const t=e.selector.replace(la," ").replace(aa," ");return new Sa(t,e.content)})}_scopeSelector(e,t,s,n){return e.split(",").map(e=>e.trim().split(la)).map(e=>{const[r,...i]=e;return[(e=>this._selectorNeedsScoping(e,t)?n?this._applyStrictSelectorScope(e,t,s):this._applySelectorScope(e,t,s):e)(r),...i].join(" ")}).join(", ")}_selectorNeedsScoping(e,t){return!this._makeScopeMatcher(t).test(e)}_makeScopeMatcher(e){return e=e.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+e+")"+ca,"m")}_applySelectorScope(e,t,s){return this._applySimpleSelectorScope(e,t,s)}_applySimpleSelectorScope(e,t,s){if(ua.lastIndex=0,ua.test(e)){const n=this.strictStyling?`[${s}]`:t;return e.replace(aa,(e,t)=>t.replace(/([^:]*)(:*)(.*)/,(e,t,s,r)=>t+n+s+r)).replace(ua,n+" ")}return t+" "+e}_applyStrictSelectorScope(e,t,s){const n="["+(t=t.replace(/\[is=([^\]]*)\]/g,(e,...t)=>t[0]))+"]",r=e=>{let r=e.trim();if(!r)return"";if(e.indexOf(ia)>-1)r=this._applySimpleSelectorScope(e,t,s);else{const t=e.replace(ua,"");if(t.length>0){const e=t.match(/([^:]*)(:*)(.*)/);e&&(r=e[1]+n+e[2]+e[3])}}return r},i=new Yi(e);let a,o="",l=0;const c=/( |>|\+|~(?!=))\s*/g;let u=!((e=i.content()).indexOf(ia)>-1);for(;null!==(a=c.exec(e));){const t=a[1],s=e.slice(l,a.index).trim();u=u||s.indexOf(ia)>-1;o+=`${u?r(s):s} ${t} `,l=c.lastIndex}const p=e.substring(l);return u=u||p.indexOf(ia)>-1,o+=u?r(p):p,i.restore(o)}_insertPolyfillHostInCssText(e){return e.replace(ha,ea).replace(pa,Zi)}}class Yi{constructor(e){this.placeholders=[],this.index=0,e=this._escapeRegexMatches(e,/(\[[^\]]*\])/g),e=this._escapeRegexMatches(e,/(\\.)/g),this._content=e.replace(/(:nth-[-\w]+)(\([^)]+\))/g,(e,t,s)=>{const n=`__ph-${this.index}__`;return this.placeholders.push(s),this.index++,t+n})}restore(e){return e.replace(/__ph-(\d+)__/g,(e,t)=>this.placeholders[+t])}content(){return this._content}_escapeRegexMatches(e,t){return e.replace(t,(e,t)=>{const s=`__ph-${this.index}__`;return this.placeholders.push(t),this.index++,s})}}const Qi=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,Xi=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Ji=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Zi="-shadowcsshost",ea="-shadowcsscontext",ta="(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",sa=new RegExp(Zi+ta,"gim"),na=new RegExp(ea+ta,"gim"),ra=new RegExp(ea+ta,"im"),ia=Zi+"-no-combinator",aa=/-shadowcsshost-no-combinator([^\s]*)/,oa=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],la=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,ca="([>\\s~+[.,{:][\\s\\S]*)?$",ua=/-shadowcsshost/gim,pa=/:host/gim,ha=/:host-context/gim,da=/\/\*[\s\S]*?\*\//g;const ma=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;const ga="%BLOCK%",va="%QUOTED%",fa=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,ya=/%QUOTED%/g,xa=new Map([["{","}"]]),wa=new Map([['"','"'],["'","'"]]);class Sa{constructor(e,t){this.selector=e,this.content=t}}function Ea(e,t){const s=ba(e,wa,va),n=ba(s.escapedString,xa,ga);let r=0,i=0;return n.escapedString.replace(fa,(...e)=>{const s=e[2];let i="",a=e[4],o="";a&&a.startsWith("{"+ga)&&(i=n.blocks[r++],a=a.substring(ga.length+1),o="{");const l=t(new Sa(s,i));return`${e[1]}${l.selector}${e[3]}${o}${l.content}${a}`}).replace(ya,()=>s.blocks[i++])}class _a{constructor(e,t){this.escapedString=e,this.blocks=t}}function ba(e,t,s){const n=[],r=[];let i,a,o=0,l=0,c=-1;for(let u=0;u<e.length;u++){const p=e[u];"\\"===p?u++:p===a?(o--,0===o&&(r.push(e.substring(c,u)),n.push(s),l=u,c=-1,i=a=void 0)):p===i?o++:0===o&&t.has(p)&&(i=p,a=t.get(p),o=1,c=u+1,n.push(e.substring(l,c)))}return-1!==c?(r.push(e.substring(c)),n.push(s)):n.push(e.substring(l)),new _a(n.join(""),r)}function Ca(e,t){const s=e.length;for(let n=1;n<t;n++)for(let t=0;t<s;t++)e[t+n*s]=e[t].slice(0)}function Ta(e){const t=e.charCodeAt(0);if(t==e.charCodeAt(e.length-1)&&(39==t||34==t)){const t=e.substring(1,e.length-1);-1==t.indexOf("'")&&-1==t.indexOf('"')&&(e=t)}return e}function Ia(e){return e.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}const Na=2;class ka{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 n=null;const r=e.substring(0,6),i="style"===e||"style."===r||"style!"===r;if(i||!i&&("class"===e||"class."===r||"class!"===r)){const r="."!==e.charAt(5),a=e.slice(r?5:6);n=i?this.registerStyleInput(a,r,t,s):this.registerClassInput(a,r,t,s)}return n}registerStyleInput(e,t,s,n,r){if(Ma(s))return null;(function(e){return e.startsWith("--")})(e)||(e=Ia(e));const{property:i,hasOverrideFlag:a,suffix:o}=Aa(e),l={name:i,suffix:r="string"==typeof r&&0!==r.length?r:o,value:s,sourceSpan:n,hasOverrideFlag:a};return t?this._styleMapInput=l:((this._singleStyleInputs=this._singleStyleInputs||[]).push(l),Pa(this._stylesIndex,i)),this._lastStylingInput=l,this._firstStylingInput=this._firstStylingInput||l,this._checkForPipes(s),this.hasBindings=!0,l}registerClassInput(e,t,s,n){if(Ma(s))return null;const{property:r,hasOverrideFlag:i}=Aa(e),a={name:r,value:s,sourceSpan:n,hasOverrideFlag:i,suffix:null};return t?this._classMapInput=a:((this._singleClassInputs=this._singleClassInputs||[]).push(a),Pa(this._classesIndex,r)),this._lastStylingInput=a,this._firstStylingInput=this._firstStylingInput||a,this._checkForPipes(s),this.hasBindings=!0,a}_checkForPipes(e){e instanceof fi&&e.ast instanceof ii&&(this.hasBindingsWithPipes=!0)}registerStyleAttr(e){this._initialStyleValues=function(e){const t=[];let s=0,n=0,r=0,i=0,a=0,o=null,l=!1;for(;s<e.length;)switch(e.charCodeAt(s++)){case 40:n++;break;case 41:n--;break;case 39:l=l||i>0,0===r?r=39:39===r&&92!==e.charCodeAt(s-1)&&(r=0);break;case 34:l=l||i>0,0===r?r=34:34===r&&92!==e.charCodeAt(s-1)&&(r=0);break;case 58:o||0!==n||0!==r||(o=Ia(e.substring(a,s-1).trim()),i=s);break;case 59:if(o&&i>0&&0===n&&0===r){const n=e.substring(i,s-1).trim();t.push(o,l?Ta(n):n),a=s,i=0,o=null,l=!1}}if(o&&i){const s=e.slice(i).trim();t.push(o,l?Ta(s):s)}return t}(e),this._hasInitialValues=!0}registerClassAttr(e){this._initialClassValues=e.trim().split(/\s+/g),this._hasInitialValues=!0}populateInitialStylingAttrs(e){if(this._initialClassValues.length){e.push(Tt(1));for(let t=0;t<this._initialClassValues.length;t++)e.push(Tt(this._initialClassValues[t]))}if(this._initialStyleValues.length){e.push(Tt(2));for(let t=0;t<this._initialStyleValues.length;t+=2)e.push(Tt(this._initialStyleValues[t]),Tt(this._initialStyleValues[t+1]))}}assignHostAttrs(e,t){this._directiveExpr&&(e.length||this._hasInitialValues)&&(this.populateInitialStylingAttrs(e),t.set("hostAttrs",wt(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 n=Na;const r=s.value.visit(e);let i;return r instanceof ci?(n+=r.expressions.length,i=t?function(e){switch($n(e)){case 1:return Bt.classMap;case 3:return Bt.classMapInterpolate1;case 5:return Bt.classMapInterpolate2;case 7:return Bt.classMapInterpolate3;case 9:return Bt.classMapInterpolate4;case 11:return Bt.classMapInterpolate5;case 13:return Bt.classMapInterpolate6;case 15:return Bt.classMapInterpolate7;case 17:return Bt.classMapInterpolate8;default:return Bt.classMapInterpolateV}}(r):function(e){switch($n(e)){case 1:return Bt.styleMap;case 3:return Bt.styleMapInterpolate1;case 5:return Bt.styleMapInterpolate2;case 7:return Bt.styleMapInterpolate3;case 9:return Bt.styleMapInterpolate4;case 11:return Bt.styleMapInterpolate5;case 13:return Bt.styleMapInterpolate6;case 15:return Bt.styleMapInterpolate7;case 17:return Bt.styleMapInterpolate8;default:return Bt.styleMapInterpolateV}}(r)):i=t?Bt.classMap:Bt.styleMap,{reference:i,calls:[{supportsInterpolation:!0,sourceSpan:s.sourceSpan,allocateBindingSlots:n,params:e=>{const t=e(r);return Array.isArray(t)?t:[t]}}]}}_buildSingleInputs(e,t,s,n,r){const i=[];return t.forEach(t=>{const a=i[i.length-1],o=t.value.visit(s);let l=e,c=Na;o instanceof ci&&(c+=o.expressions.length,n&&(l=n(o)));const u={sourceSpan:t.sourceSpan,allocateBindingSlots:c,supportsInterpolation:!!n,params:e=>{const s=[];s.push(Tt(t.name));const n=e(o);return Array.isArray(n)?s.push(...n):s.push(n),r||null===t.suffix||s.push(Tt(t.suffix)),s}};a&&a.reference===l?a.calls.push(u):i.push({reference:l,calls:[u]})}),i}_buildClassInputs(e){return this._singleClassInputs?this._buildSingleInputs(Bt.classProp,this._singleClassInputs,e,null,!0):[]}_buildStyleInputs(e){return this._singleStyleInputs?this._buildSingleInputs(Bt.styleProp,this._singleStyleInputs,e,La,!1):[]}buildUpdateLevelInstructions(e){const t=[];if(this.hasBindings){const s=this.buildStyleMapInstruction(e);s&&t.push(s);const n=this.buildClassMapInstruction(e);n&&t.push(n),t.push(...this._buildStyleInputs(e)),t.push(...this._buildClassInputs(e))}return t}}function Pa(e,t){e.has(t)||e.set(t,e.size)}function Aa(e){let t=!1;const s=e.indexOf("!important");-1!==s&&(e=s>0?e.substring(0,s):"",t=!0);let n=null,r=e;const i=e.lastIndexOf(".");return i>0&&(n=e.slice(i+1),r=e.substring(0,i)),{property:r,suffix:n,hasOverrideFlag:t}}function La(e){switch($n(e)){case 1:return Bt.styleProp;case 3:return Bt.stylePropInterpolate1;case 5:return Bt.stylePropInterpolate2;case 7:return Bt.stylePropInterpolate3;case 9:return Bt.stylePropInterpolate4;case 11:return Bt.stylePropInterpolate5;case 13:return Bt.stylePropInterpolate6;case 15:return Bt.stylePropInterpolate7;case 17:return Bt.stylePropInterpolate8;default:return Bt.stylePropInterpolateV}}function Ma(e){return e instanceof fi&&(e=e.ast),e instanceof Gr}var Ra;e("TokenType",Ra),function(e){e[e.Character=0]="Character",e[e.Identifier=1]="Identifier",e[e.PrivateIdentifier=2]="PrivateIdentifier",e[e.Keyword=3]="Keyword",e[e.String=4]="String",e[e.Operator=5]="Operator",e[e.Number=6]="Number",e[e.Error=7]="Error"}(Ra||e("TokenType",Ra={}));const Oa=["var","let","as","null","undefined","true","false","if","else","this"];class $a{tokenize(e){const t=new Va(e),s=[];let n=t.scanToken();for(;null!=n;)s.push(n),n=t.scanToken();return s}}e("Lexer",$a);class Da{constructor(e,t,s,n,r){this.index=e,this.end=t,this.type=s,this.numValue=n,this.strValue=r}isCharacter(e){return this.type==Ra.Character&&this.numValue==e}isNumber(){return this.type==Ra.Number}isString(){return this.type==Ra.String}isOperator(e){return this.type==Ra.Operator&&this.strValue==e}isIdentifier(){return this.type==Ra.Identifier}isPrivateIdentifier(){return this.type==Ra.PrivateIdentifier}isKeyword(){return this.type==Ra.Keyword}isKeywordLet(){return this.type==Ra.Keyword&&"let"==this.strValue}isKeywordAs(){return this.type==Ra.Keyword&&"as"==this.strValue}isKeywordNull(){return this.type==Ra.Keyword&&"null"==this.strValue}isKeywordUndefined(){return this.type==Ra.Keyword&&"undefined"==this.strValue}isKeywordTrue(){return this.type==Ra.Keyword&&"true"==this.strValue}isKeywordFalse(){return this.type==Ra.Keyword&&"false"==this.strValue}isKeywordThis(){return this.type==Ra.Keyword&&"this"==this.strValue}isError(){return this.type==Ra.Error}toNumber(){return this.type==Ra.Number?this.numValue:-1}toString(){switch(this.type){case Ra.Character:case Ra.Identifier:case Ra.Keyword:case Ra.Operator:case Ra.PrivateIdentifier:case Ra.String:case Ra.Error:return this.strValue;case Ra.Number:return this.numValue.toString();default:return null}}}function qa(e,t,s){return new Da(e,t,Ra.Character,s,String.fromCharCode(s))}function Ba(e,t,s){return new Da(e,t,Ra.Operator,0,s)}e("Token",Da);const Fa=e("EOF",new Da(-1,-1,Ra.Character,0,""));class Va{constructor(e){this.input=e,this.peek=0,this.index=-1,this.length=e.length,this.advance()}advance(){this.peek=++this.index>=this.length?Wn:this.input.charCodeAt(this.index)}scanToken(){const e=this.input,t=this.length;let s=this.peek,n=this.index;for(;s<=32;){if(++n>=t){s=Wn;break}s=e.charCodeAt(n)}if(this.peek=s,this.index=n,n>=t)return null;if(Ua(s))return this.scanIdentifier();if(hr(s))return this.scanNumber(n);const r=n;switch(s){case Yn:return this.advance(),hr(this.peek)?this.scanNumber(r):qa(r,this.index,Yn);case 40:case 41:case cr:case ur:case 91:case 93:case Gn:case Xn:case Jn:return this.scanCharacter(r,s);case 39:case 34:return this.scanString();case 35:return this.scanPrivateIdentifier();case 43:case 45:case 42:case Qn:case 37:case 94:return this.scanOperator(r,String.fromCharCode(s));case 63:return this.scanQuestion(r);case Zn:case tr:return this.scanComplexOperator(r,String.fromCharCode(s),er,"=");case 33:case er:return this.scanComplexOperator(r,String.fromCharCode(s),er,"=",er,"=");case 38:return this.scanComplexOperator(r,"&",38,"&");case 124:return this.scanComplexOperator(r,"|",124,"|");case 160:for(;pr(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(s)}]`,0)}scanCharacter(e,t){return this.advance(),qa(e,this.index,t)}scanOperator(e,t){return this.advance(),Ba(e,this.index,t)}scanComplexOperator(e,t,s,n,r,i){this.advance();let a=t;return this.peek==s&&(this.advance(),a+=n),null!=r&&this.peek==r&&(this.advance(),a+=i),Ba(e,this.index,a)}scanIdentifier(){const e=this.index;for(this.advance();Ha(this.peek);)this.advance();const t=this.input.substring(e,this.index);return Oa.indexOf(t)>-1?(s=e,n=this.index,r=t,new Da(s,n,Ra.Keyword,0,r)):function(e,t,s){return new Da(e,t,Ra.Identifier,0,s)}(e,this.index,t);var s,n,r}scanPrivateIdentifier(){const e=this.index;if(this.advance(),!Ua(this.peek))return this.error("Invalid character [#]",-1);for(;Ha(this.peek);)this.advance();const t=this.input.substring(e,this.index);return s=e,n=this.index,r=t,new Da(s,n,Ra.PrivateIdentifier,0,r);var s,n,r}scanNumber(e){let t=this.index===e,s=!1;for(this.advance();;){if(hr(this.peek));else if(this.peek===ar){if(!hr(this.input.charCodeAt(this.index-1))||!hr(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);s=!0}else if(this.peek===Yn)t=!1;else{if(!ja(this.peek))break;if(this.advance(),Wa(this.peek)&&this.advance(),!hr(this.peek))return this.error("Invalid exponent",-1);t=!1}this.advance()}let n=this.input.substring(e,this.index);s&&(n=n.replace(/_/g,""));const r=t?function(e){const t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}(n):parseFloat(n);return i=e,a=this.index,o=r,new Da(i,a,Ra.Number,o,"");var i,a,o}scanString(){const e=this.index,t=this.peek;this.advance();let s="",n=this.index;const r=this.input;for(;this.peek!=t;)if(92==this.peek){let e;if(s+=r.substring(n,this.index),this.advance(),this.peek=this.peek,117==this.peek){const t=r.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(t))return this.error(`Invalid unicode escape [\\u${t}]`,0);e=parseInt(t,16);for(let e=0;e<5;e++)this.advance()}else e=za(this.peek),this.advance();s+=String.fromCharCode(e),n=this.index}else{if(this.peek==Wn)return this.error("Unterminated quote",0);this.advance()}const i=r.substring(n,this.index);return this.advance(),a=e,o=this.index,l=s+i,new Da(a,o,Ra.String,0,l);var a,o,l}scanQuestion(e){this.advance();let t="?";return 63!==this.peek&&this.peek!==Yn||(t+=this.peek===Yn?".":"?",this.advance()),Ba(e,this.index,t)}error(e,t){const s=this.index+t;return function(e,t,s){return new Da(e,t,Ra.Error,0,s)}(s,this.index,`Lexer Error: ${e} at column ${s} in expression [${this.input}]`)}}function Ua(e){return or<=e&&e<=lr||rr<=e&&e<=ir||e==ar||e==Kn}function Ha(e){return dr(e)||hr(e)||e==ar||e==Kn}function ja(e){return 101==e||69==e}function Wa(e){return 45==e||43==e}function za(e){switch(e){case 110:return zn;case 102:return 12;case 114:return 13;case 116:return 9;case 118:return 11;default:return e}}class Ka{constructor(e,t,s){this.strings=e,this.expressions=t,this.offsets=s}}e("SplitInterpolation",Ka);class Ga{constructor(e,t,s){this.templateBindings=e,this.warnings=t,this.errors=s}}e("TemplateBindingParseResult",Ga);class Ya{constructor(e){this._lexer=e,this.errors=[]}parseAction(e,t,s,n,r=jn){this._checkNoInterpolation(e,s,r);const i=this._stripComments(e),a=this._lexer.tokenize(i);let o=1;t&&(o|=2);const l=new Xa(e,s,n,a,o,this.errors,0).parseChain();return new fi(l,e,s,n,this.errors)}parseBinding(e,t,s,n=jn){const r=this._parseBindingAst(e,t,s,n);return new fi(r,e,t,s,this.errors)}checkSimpleExpression(e){const t=new Ja;return e.visit(t),t.errors}parseSimpleBinding(e,t,s,n=jn){const r=this._parseBindingAst(e,t,s,n),i=this.checkSimpleExpression(r);return i.length>0&&this._reportError(`Host binding expression cannot contain ${i.join(" ")}`,e,t),new fi(r,e,t,s,this.errors)}_reportError(e,t,s,n){this.errors.push(new jr(e,t,s,n))}_parseBindingAst(e,t,s,n){this._checkNoInterpolation(e,t,n);const r=this._stripComments(e),i=this._lexer.tokenize(r);return new Xa(e,t,s,i,0,this.errors,0).parseChain()}parseTemplateBindings(e,t,s,n,r){const i=this._lexer.tokenize(t);return new Xa(t,s,r,i,0,this.errors,0).parseTemplateBindings({source:e,span:new vi(n,n+e.length)})}parseInterpolation(e,t,s,n,r=jn){const{strings:i,expressions:a,offsets:o}=this.splitInterpolation(e,t,n,r);if(0===a.length)return null;const l=[];for(let n=0;n<a.length;++n){const r=a[n].text,i=this._stripComments(r),c=this._lexer.tokenize(i),u=new Xa(e,t,s,c,0,this.errors,o[n]).parseChain();l.push(u)}return this.createInterpolationAst(i.map(e=>e.text),l,e,t,s)}parseInterpolationExpression(e,t,s){const n=this._stripComments(e),r=this._lexer.tokenize(n),i=new Xa(e,t,s,r,0,this.errors,0).parseChain();return this.createInterpolationAst(["",""],[i],e,t,s)}createInterpolationAst(e,t,s,n,r){const i=new Wr(0,s.length),a=new ci(i,i.toAbsolute(r),e,t);return new fi(a,s,n,r,this.errors)}splitInterpolation(e,t,s,n=jn){const r=[],i=[],a=[],o=s?function(e){let t=new Map,s=0,n=0,r=0;for(;r<e.length;){const i=e[r];if(9===i.type){const[e,t]=i.parts;s+=t.length,n+=e.length}else{const e=i.parts.reduce((e,t)=>e+t.length,0);n+=e,s+=e}t.set(n,s),r++}return t}(s):null;let l=0,c=!1,u=!1,{start:p,end:h}=n;for(;l<e.length;)if(c){const s=l,n=s+p.length,r=this._getInterpolationEndIndex(e,h,n);if(-1===r){c=!1,u=!0;break}const d=r+h.length,m=e.substring(n,r);0===m.trim().length&&this._reportError("Blank expressions are not allowed in interpolated strings",e,`at column ${l} in`,t),i.push({text:m,start:s,end:d});const g=(o?.get(s)??s)+p.length;a.push(g),l=d,c=!1}else{const t=l;l=e.indexOf(p,l),-1===l&&(l=e.length);const s=e.substring(t,l);r.push({text:s,start:t,end:l}),c=!0}if(!c)if(u){const t=r[r.length-1];t.text+=e.substring(l),t.end=e.length}else r.push({text:e.substring(l),start:l,end:e.length});return new Ka(r,i,a)}wrapLiteralPrimitive(e,t,s){const n=new Wr(0,null==e?0:e.length);return new fi(new ai(n,n.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 n=e.charCodeAt(s),r=e.charCodeAt(s+1);if(n===Qn&&r==Qn&&null==t)return s;t===n?t=null:null==t&&vr(n)&&(t=n)}return null}_checkNoInterpolation(e,t,{start:s,end:n}){let r=-1,i=-1;for(const t of this._forEachUnquotedChar(e,0))if(-1===r)e.startsWith(s)&&(r=t);else if(i=this._getInterpolationEndIndex(e,n,t),i>-1)break;r>-1&&i>-1&&this._reportError(`Got interpolation (${s}${n}) where expression was expected`,e,`at column ${r} in`,t)}_getInterpolationEndIndex(e,t,s){for(const n of this._forEachUnquotedChar(e,s)){if(e.startsWith(t,n))return n;if(e.startsWith("//",n))return e.indexOf(t,n)}return-1}*_forEachUnquotedChar(e,t){let s=null,n=0;for(let r=t;r<e.length;r++){const t=e[r];!vr(e.charCodeAt(r))||null!==s&&s!==t||n%2!=0?null===s&&(yield r):s=null===s?t:null,n="\\"===t?n+1:0}}}var Qa;e("Parser",Ya),function(e){e[e.None=0]="None",e[e.Writable=1]="Writable"}(Qa||(Qa={}));class Xa{constructor(e,t,s,n,r,i,a){this.input=e,this.location=t,this.absoluteOffset=s,this.tokens=n,this.parseFlags=r,this.errors=i,this.offset=a,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.context=Qa.None,this.sourceSpanCache=new Map,this.index=0}peek(e){const t=this.index+e;return t<this.tokens.length?this.tokens[t]:Fa}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(){if(this.index>0){return this.peek(-1).end+this.offset}return 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 t=s;s=e,e=t}return new Wr(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===Fa?"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 t=this.parsePipe();if(e.push(t),this.consumeOptionalCharacter(Jn))for(1&this.parseFlags||this.error("Binding expression cannot contain chained expression");this.consumeOptionalCharacter(Jn););else if(this.index<this.tokens.length){const e=this.index;if(this.error(`Unexpected token '${this.next}'`),this.index===e)break}}if(0===e.length){const e=this.offset,t=this.offset+this.input.length;return new Gr(this.span(e,t),this.sourceSpan(e,t))}return 1==e.length?e[0]:new Xr(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 n,r,i=this.expectIdentifierOrKeyword();null!==i?n=this.sourceSpan(s):(i="",r=-1!==this.next.index?this.next.index:this.input.length+this.offset,n=new Wr(r,r).toAbsolute(this.absoluteOffset));const a=[];for(;this.consumeOptionalCharacter(Xn);)a.push(this.parseExpression());t=new ii(this.span(e),this.sourceSpan(e,r),t,i,a,n)}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 n;if(this.consumeOptionalCharacter(Xn))n=this.parsePipe();else{const t=this.inputIndex,s=this.input.substring(e,t);this.error(`Conditional expression ${s} requires all 3 expressions`),n=new Gr(this.span(e),this.sourceSpan(e))}return new Jr(this.span(e),this.sourceSpan(e),t,s,n)}return t}parseLogicalOr(){const e=this.inputIndex;let t=this.parseLogicalAnd();for(;this.consumeOptionalOperator("||");){const s=this.parseLogicalAnd();t=new ui(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 ui(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 ui(this.span(e),this.sourceSpan(e),"??",t,s)}return t}parseEquality(){const e=this.inputIndex;let t=this.parseRelational();for(;this.next.type==Ra.Operator;){const s=this.next.strValue;switch(s){case"==":case"===":case"!=":case"!==":this.advance();const n=this.parseRelational();t=new ui(this.span(e),this.sourceSpan(e),s,t,n);continue}break}return t}parseRelational(){const e=this.inputIndex;let t=this.parseAdditive();for(;this.next.type==Ra.Operator;){const s=this.next.strValue;switch(s){case"<":case">":case"<=":case">=":this.advance();const n=this.parseAdditive();t=new ui(this.span(e),this.sourceSpan(e),s,t,n);continue}break}return t}parseAdditive(){const e=this.inputIndex;let t=this.parseMultiplicative();for(;this.next.type==Ra.Operator;){const s=this.next.strValue;switch(s){case"+":case"-":this.advance();let n=this.parseMultiplicative();t=new ui(this.span(e),this.sourceSpan(e),s,t,n);continue}break}return t}parseMultiplicative(){const e=this.inputIndex;let t=this.parsePrefix();for(;this.next.type==Ra.Operator;){const s=this.next.strValue;switch(s){case"*":case"%":case"/":this.advance();let n=this.parsePrefix();t=new ui(this.span(e),this.sourceSpan(e),s,t,n);continue}break}return t}parsePrefix(){if(this.next.type==Ra.Operator){const e=this.inputIndex;let t;switch(this.next.strValue){case"+":return this.advance(),t=this.parsePrefix(),pi.createPlus(this.span(e),this.sourceSpan(e),t);case"-":return this.advance(),t=this.parsePrefix(),pi.createMinus(this.span(e),this.sourceSpan(e),t);case"!":return this.advance(),t=this.parsePrefix(),new hi(this.span(e),this.sourceSpan(e),t)}}return this.parseCallChain()}parseCallChain(){const e=this.inputIndex;let t=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(Yn))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 di(this.span(e),this.sourceSpan(e),t)}}parsePrimary(){const e=this.inputIndex;if(this.consumeOptionalCharacter(40)){this.rparensExpected++;const e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),e}if(this.next.isKeywordNull())return this.advance(),new ai(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new ai(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new ai(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new ai(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new Qr(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(91)){this.rbracketsExpected++;const t=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new oi(this.span(e),this.sourceSpan(e),t)}if(this.next.isCharacter(cr))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new Yr(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){const t=this.next.toNumber();return this.advance(),new ai(this.span(e),this.sourceSpan(e),t)}if(this.next.isString()){const t=this.next.toString();return this.advance(),new ai(this.span(e),this.sourceSpan(e),t)}return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new Gr(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new Gr(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new Gr(this.span(e),this.sourceSpan(e)))}parseExpressionList(e){const t=[];do{if(this.next.isCharacter(e))break;t.push(this.parsePipe())}while(this.consumeOptionalCharacter(Gn));return t}parseLiteralMap(){const e=[],t=[],s=this.inputIndex;if(this.expectCharacter(cr),!this.consumeOptionalCharacter(ur)){this.rbracesExpected++;do{const s=this.inputIndex,n=this.next.isString(),r=this.expectIdentifierOrKeywordOrString();if(e.push({key:r,quoted:n}),n)this.expectCharacter(Xn),t.push(this.parsePipe());else if(this.consumeOptionalCharacter(Xn))t.push(this.parsePipe());else{const e=this.span(s),n=this.sourceSpan(s);t.push(new Zr(e,n,n,new Yr(e,n),r))}}while(this.consumeOptionalCharacter(Gn));this.rbracesExpected--,this.expectCharacter(ur)}return new li(this.span(s),this.sourceSpan(s),e,t)}parseAccessMember(e,t,s){const n=this.inputIndex,r=this.withContext(Qa.Writable,()=>{const t=this.expectIdentifierOrKeyword()??"";return 0===t.length&&this.error("Expected identifier for property access",e.span.end),t}),i=this.sourceSpan(n);let a;if(s)this.consumeOptionalAssignment()?(this.error("The '?.' operator cannot be used in the assignment"),a=new Gr(this.span(t),this.sourceSpan(t))):a=new ti(this.span(t),this.sourceSpan(t),i,e,r);else if(this.consumeOptionalAssignment()){if(!(1&this.parseFlags))return this.error("Bindings cannot contain assignments"),new Gr(this.span(t),this.sourceSpan(t));const s=this.parseConditional();a=new ei(this.span(t),this.sourceSpan(t),i,e,r,s)}else a=new Zr(this.span(t),this.sourceSpan(t),i,e,r);return a}parseCall(e,t,s){const n=this.inputIndex;this.rparensExpected++;const r=this.parseCallArguments(),i=this.span(n,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(41),this.rparensExpected--;const a=this.span(t),o=this.sourceSpan(t);return s?new gi(a,o,e,r,i):new mi(a,o,e,r,i)}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(Gn));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 vi(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 s=this.expectTemplateBindingKey(),n=this.parseAsBinding(s);n?t.push(n):(s.source=e.source+s.source.charAt(0).toUpperCase()+s.source.substring(1),t.push(...this.parseDirectiveKeywordBindings(s)))}this.consumeStatementTerminator()}return new Ga(t,[],this.errors)}parseKeyedReadOrWrite(e,t,s){return this.withContext(Qa.Writable,()=>{this.rbracketsExpected++;const n=this.parsePipe();if(n instanceof Gr&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(93),!this.consumeOptionalOperator("="))return s?new ni(this.span(t),this.sourceSpan(t),e,n):new si(this.span(t),this.sourceSpan(t),e,n);if(!s){const s=this.parseConditional();return new ri(this.span(t),this.sourceSpan(t),e,n,s)}return this.error("The '?.' operator cannot be used in the assignment"),new Gr(this.span(t),this.sourceSpan(t))})}parseDirectiveKeywordBindings(e){const t=[];this.consumeOptionalCharacter(Xn);const s=this.getDirectiveBoundTarget();let n=this.currentAbsoluteOffset;const r=this.parseAsBinding(e);r||(this.consumeStatementTerminator(),n=this.currentAbsoluteOffset);const i=new vi(e.span.start,n);return t.push(new xi(i,e,s)),r&&t.push(r),t}getDirectiveBoundTarget(){if(this.next===Fa||this.peekKeywordAs()||this.peekKeywordLet())return null;const e=this.parsePipe(),{start:t,end:s}=e.span,n=this.input.substring(t,s);return new fi(e,n,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 vi(e.span.start,this.currentAbsoluteOffset);return new yi(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 n=new vi(e,this.currentAbsoluteOffset);return new yi(n,t,s)}consumeStatementTerminator(){this.consumeOptionalCharacter(Jn)||this.consumeOptionalCharacter(Gn)}error(e,t=null){this.errors.push(new jr(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(Jn)||e.isOperator("|")||!(this.rparensExpected<=0)&&e.isCharacter(41)||!(this.rbracesExpected<=0)&&e.isCharacter(ur)||!(this.rbracketsExpected<=0)&&e.isCharacter(93)||this.context&Qa.Writable&&e.isOperator("="));)this.next.isError()&&this.errors.push(new jr(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),e=this.next}}e("_ParseAST",Xa);class Ja extends wi{constructor(){super(...arguments),this.errors=[]}visitPipe(){this.errors.push("pipes")}}class Za{constructor(e,t){this.sourceSpan=e,this.i18n=t}}e("NodeWithI18n",Za);class eo extends Za{constructor(e,t,s,n){super(t,n),this.value=e,this.tokens=s}visit(e,t){return e.visitText(this,t)}}e("Text",eo);class to extends Za{constructor(e,t,s,n,r,i){super(n,i),this.switchValue=e,this.type=t,this.cases=s,this.switchValueSourceSpan=r}visit(e,t){return e.visitExpansion(this,t)}}e("Expansion",to);class so{constructor(e,t,s,n,r){this.value=e,this.expression=t,this.sourceSpan=s,this.valueSourceSpan=n,this.expSourceSpan=r}visit(e,t){return e.visitExpansionCase(this,t)}}e("ExpansionCase",so);class no extends Za{constructor(e,t,s,n,r,i,a){super(s,a),this.name=e,this.value=t,this.keySpan=n,this.valueSpan=r,this.valueTokens=i}visit(e,t){return e.visitAttribute(this,t)}}e("Attribute",no);class ro extends Za{constructor(e,t,s,n,r,i=null,a){super(n,a),this.name=e,this.attrs=t,this.children=s,this.startSourceSpan=r,this.endSourceSpan=i}visit(e,t){return e.visitElement(this,t)}}e("Element",ro);class io{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e,t){return e.visitComment(this,t)}}function ao(e,t,s=null){const n=[],r=e.visit?t=>e.visit(t,s)||t.visit(e,s):t=>t.visit(e,s);return t.forEach(e=>{const t=r(e);t&&n.push(t)}),n}e("Comment",io);e("RecursiveVisitor",class{constructor(){}visitElement(e,t){this.visitChildren(t,t=>{t(e.attrs),t(e.children)})}visitAttribute(e,t){}visitText(e,t){}visitComment(e,t){}visitExpansion(e,t){return this.visitChildren(t,t=>{t(e.cases)})}visitExpansionCase(e,t){}visitChildren(e,t){let s=[],n=this;return t(function(t){t&&s.push(ao(n,t,e))}),Array.prototype.concat.apply([],s)}});const oo={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",Ecy:"\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\u0338",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",ThickSpace:"\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",minusb:"\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:"\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",rarrbfs:"\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"};oo.ngsp="\ue500";class lo extends Sr{constructor(e,t,s){super(s,e),this.tokenType=t}}class co{constructor(e,t,s){this.tokens=e,this.errors=t,this.nonNormalizedIcuExpressions=s}}function uo(e,t,s,n={}){const r=new fo(new yr(e,t),s,n);return r.tokenize(),new co(function(e){const t=[];let s;for(let n=0;n<e.length;n++){const r=e[n];s&&5===s.type&&5===r.type||s&&16===s.type&&16===r.type?(s.parts[0]+=r.parts[0],s.sourceSpan.end=r.sourceSpan.end):(s=r,t.push(s))}return t}(r.tokens),r.errors,r.nonNormalizedIcuExpressions)}const po=/\r\n?/g;function ho(e){return`Unexpected character "${e===Wn?"EOF":String.fromCharCode(e)}"`}function mo(e){return`Unknown entity "${e}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}var go;!function(e){e.HEX="hexadecimal",e.DEC="decimal"}(go||(go={}));class vo{constructor(e){this.error=e}}class fo{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||jn,this._leadingTriviaCodePoints=s.leadingTriviaChars&&s.leadingTriviaChars.map(e=>e.codePointAt(0)||0);const n=s.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=s.escapedString?new Co(e,n):new bo(e,n),this._preserveLineEndings=s.preserveLineEndings||!1,this._escapedString=s.escapedString||!1,this._i18nNormalizeLineEndingsInICUs=s.i18nNormalizeLineEndingsInICUs||!1;try{this._cursor.init()}catch(e){this.handleError(e)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(po,"\n")}tokenize(){for(;this._cursor.peek()!==Wn;){const e=this._cursor.clone();try{this._attemptCharCode(Zn)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(e):this._attemptCharCode(45)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(Qn)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(e){this.handleError(e)}}this._beginToken(24),this._endToken([])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(this._cursor.peek()!==ur&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===ur){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 lo("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 lo("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:(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 lo(e,this._currentTokenType,t);return this._currentTokenStart=null,this._currentTokenType=null,new vo(s)}handleError(e){if(e instanceof To&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),!(e instanceof vo))throw e;this.errors.push(e.error)}_attemptCharCode(e){return this._cursor.peek()===e&&(this._cursor.advance(),!0)}_attemptCharCodeCaseInsensitive(e){return t=this._cursor.peek(),s=e,_o(t)===_o(s)&&(this._cursor.advance(),!0);var t,s}_requireCharCode(e){const t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(ho(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 n=0;n<t;n++)if(!this._attemptCharCode(e.charCodeAt(n)))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(ho(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(ho(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 e=this._attemptCharCode(120)||this._attemptCharCode(88),n=this._cursor.clone();if(this._attemptCharCodeUntilFn(So),this._cursor.peek()!=Jn){this._cursor.advance();const n=e?go.HEX:go.DEC;throw this._createError((s=n,`Unable to parse entity "${this._cursor.getChars(t)}" - ${s} character reference entities must end with ";"`),this._cursor.getSpan())}const r=this._cursor.getChars(n);this._cursor.advance();try{const s=parseInt(r,e?16:10);this._endToken([String.fromCharCode(s),this._cursor.getChars(t)])}catch{throw this._createError(mo(this._cursor.getChars(t)),this._cursor.getSpan())}}else{const s=this._cursor.clone();if(this._attemptCharCodeUntilFn(Eo),this._cursor.peek()!=Jn)this._beginToken(e,t),this._cursor=s,this._endToken(["&"]);else{const e=this._cursor.getChars(s);this._cursor.advance();const n=oo[e];if(!n)throw this._createError(mo(e),this._cursor.getSpan(t));this._endToken([n,`&${e};`])}}var s}_consumeRawText(e,t){this._beginToken(e?6:7);const s=[];for(;;){const n=this._cursor.clone(),r=t();if(this._cursor=n,r)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(45),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(tr);const s=this._cursor.getChars(t);this._cursor.advance(),this._endToken([s])}_consumePrefixAndName(){const e=this._cursor.clone();let t,s="";for(;this._cursor.peek()!==Xn&&!wo(this._cursor.peek());)this._cursor.advance();this._cursor.peek()===Xn?(s=this._cursor.getChars(e),this._cursor.advance(),t=this._cursor.clone()):t=e,this._requireCharCodeUntilFn(xo,""===s?0:1);return[s,this._cursor.getChars(t)]}_consumeTagOpen(e){let s,n,r;try{if(!dr(this._cursor.peek()))throw this._createError(ho(this._cursor.peek()),this._cursor.getSpan(e));for(r=this._consumeTagOpenStart(e),n=r.parts[0],s=r.parts[1],this._attemptCharCodeUntilFn(yo);this._cursor.peek()!==Qn&&this._cursor.peek()!==tr&&this._cursor.peek()!==Zn&&this._cursor.peek()!==Wn;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(yo),this._attemptCharCode(er)&&(this._attemptCharCodeUntilFn(yo),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(yo);this._consumeTagOpenEnd()}catch(t){if(t instanceof vo)return void(r?r.type=4:(this._beginToken(5,e),this._endToken(["<"])));throw t}const i=this._getTagDefinition(s).getContentType(n);i===t.RAW_TEXT?this._consumeRawTextWithTagClose(n,s,!1):i===t.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,s,!0)}_consumeRawTextWithTagClose(e,t,s){this._consumeRawText(s,()=>!!this._attemptCharCode(Zn)&&(!!this._attemptCharCode(Qn)&&(this._attemptCharCodeUntilFn(yo),!!this._attemptStrCaseInsensitive(t)&&(this._attemptCharCodeUntilFn(yo),this._attemptCharCode(tr))))),this._beginToken(3),this._requireCharCodeUntilFn(e=>e===tr,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(39===e||34===e)throw this._createError(ho(e),this._cursor.getSpan());this._beginToken(14);const t=this._consumePrefixAndName();this._endToken(t)}_consumeAttributeValue(){if(39===this._cursor.peek()||34===this._cursor.peek()){const e=this._cursor.peek();this._consumeQuote(e);const t=()=>this._cursor.peek()===e;this._consumeWithInterpolation(16,17,t,t),this._consumeQuote(e)}else{const e=()=>xo(this._cursor.peek());this._consumeWithInterpolation(16,17,e,e)}}_consumeQuote(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){const e=this._attemptCharCode(Qn)?2:1;this._beginToken(e),this._requireCharCode(tr),this._endToken([])}_consumeTagClose(e){this._beginToken(3,e),this._attemptCharCodeUntilFn(yo);const t=this._consumePrefixAndName();this._attemptCharCodeUntilFn(yo),this._requireCharCode(tr),this._endToken(t)}_consumeExpansionFormStart(){this._beginToken(19),this._requireCharCode(cr),this._endToken([]),this._expansionCaseStack.push(19),this._beginToken(7);const e=this._readUntil(Gn),t=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([t]);else{const s=this._endToken([e]);t!==e&&this.nonNormalizedIcuExpressions.push(s)}this._requireCharCode(Gn),this._attemptCharCodeUntilFn(yo),this._beginToken(7);const s=this._readUntil(Gn);this._endToken([s]),this._requireCharCode(Gn),this._attemptCharCodeUntilFn(yo)}_consumeExpansionCaseStart(){this._beginToken(20);const e=this._readUntil(cr).trim();this._endToken([e]),this._attemptCharCodeUntilFn(yo),this._beginToken(21),this._requireCharCode(cr),this._endToken([]),this._attemptCharCodeUntilFn(yo),this._expansionCaseStack.push(21)}_consumeExpansionCaseEnd(){this._beginToken(22),this._requireCharCode(ur),this._endToken([]),this._attemptCharCodeUntilFn(yo),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(23),this._requireCharCode(ur),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,t,s,n){this._beginToken(e);const r=[];for(;!s();){const s=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(r.join(""))],s),r.length=0,this._consumeInterpolation(t,s,n),this._beginToken(e)):38===this._cursor.peek()?(this._endToken([this._processCarriageReturns(r.join(""))]),r.length=0,this._consumeEntity(e),this._beginToken(e)):r.push(this._readChar())}this._inInterpolation=!1,this._endToken([this._processCarriageReturns(r.join(""))])}_consumeInterpolation(e,t,s){const n=[];this._beginToken(e,t),n.push(this._interpolationConfig.start);const r=this._cursor.clone();let i=null,a=!1;for(;this._cursor.peek()!==Wn&&(null===s||!s());){const e=this._cursor.clone();if(this._isTagStart())return this._cursor=e,n.push(this._getProcessedChars(r,e)),void this._endToken(n);if(null===i){if(this._attemptStr(this._interpolationConfig.end))return n.push(this._getProcessedChars(r,e)),n.push(this._interpolationConfig.end),void this._endToken(n);this._attemptStr("//")&&(a=!0)}const t=this._cursor.peek();this._cursor.advance(),92===t?this._cursor.advance():t===i?i=null:!a&&null===i&&vr(t)&&(i=t)}n.push(this._getProcessedChars(r,this._cursor)),this._endToken(n)}_getProcessedChars(e,t){return this._processCarriageReturns(t.getChars(e))}_isTextEnd(){if(this._isTagStart()||this._cursor.peek()===Wn)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(this.isExpansionFormStart())return!0;if(this._cursor.peek()===ur&&this._isInExpansionCase())return!0}return!1}_isTagStart(){if(this._cursor.peek()===Zn){const e=this._cursor.clone();e.advance();const t=e.peek();if(or<=t&&t<=lr||rr<=t&&t<=ir||t===Qn||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()!==cr)return!1;if(this._interpolationConfig){const e=this._cursor.clone(),t=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!t}return!0}}function yo(e){return!pr(e)||e===Wn}function xo(e){return pr(e)||e===tr||e===Zn||e===Qn||39===e||34===e||e===er||e===Wn}function wo(e){return(e<or||lr<e)&&(e<rr||ir<e)&&(e<sr||e>nr)}function So(e){return e===Jn||e===Wn||!function(e){return e>=or&&e<=102||e>=rr&&e<=70||hr(e)}(e)}function Eo(e){return e===Jn||e===Wn||!dr(e)}function _o(e){return e>=or&&e<=lr?e-or+rr:e}class bo{constructor(e,t){if(e instanceof bo){this.file=e.file,this.input=e.input,this.end=e.end;const t=e.state;this.state={peek:t.peek,offset:t.offset,line:t.line,column:t.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 bo(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 n=this.locationFromCursor(e),r=this.locationFromCursor(this),i=s!==e?this.locationFromCursor(s):n;return new xr(n,r,i)}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 To('Unexpected character "EOF"',this);const t=this.charAt(e.offset);t===zn?(e.line++,e.column=0):mr(t)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?Wn:this.charAt(e.offset)}locationFromCursor(e){return new fr(e.file,e.state.offset,e.state.line,e.state.column)}}class Co extends bo{constructor(e,t){e instanceof Co?(super(e),this.internalState={...e.internalState}):(super(e,t),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new Co(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),110===e())this.state.peek=zn;else if(114===e())this.state.peek=13;else if(118===e())this.state.peek=11;else if(116===e())this.state.peek=9;else if(98===e())this.state.peek=8;else if(102===e())this.state.peek=12;else if(117===e())if(this.advanceState(this.internalState),e()===cr){this.advanceState(this.internalState);const t=this.clone();let s=0;for(;e()!==ur;)this.advanceState(this.internalState),s++;this.state.peek=this.decodeHexDigits(t,s)}else{const e=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(e,4)}else if(120===e()){this.advanceState(this.internalState);const e=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(e,2)}else if(gr(e())){let t="",s=0,n=this.clone();for(;gr(e())&&s<3;)n=this.clone(),t+=String.fromCodePoint(e()),this.advanceState(this.internalState),s++;this.state.peek=parseInt(t,8),this.internalState=n.internalState}else mr(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),n=parseInt(s,16);if(isNaN(n))throw e.state=e.internalState,new To("Invalid hexadecimal escape sequence",e);return n}}class To{constructor(e,t){this.msg=e,this.cursor=t}}class Io extends Sr{constructor(e,t,s){super(t,s),this.elementName=e}static create(e,t,s){return new Io(e,t,s)}}e("TreeError",Io);class No{constructor(e,t){this.rootNodes=e,this.errors=t}}e("ParseTreeResult",No);class ko{constructor(e){this.getTagDefinition=e}parse(e,t,s){const n=uo(e,t,this.getTagDefinition,s),r=new Po(n.tokens,this.getTagDefinition);return r.build(),new No(r.rootNodes,n.errors.concat(r.errors))}}class Po{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 io(s,e.sourceSpan))}_consumeExpansion(e){const t=this._advance(),s=this._advance(),n=[];for(;20===this._peek.type;){const e=this._parseExpansionCase();if(!e)return;n.push(e)}if(23!==this._peek.type)return void this.errors.push(Io.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));const r=new xr(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new to(t.parts[0],s.parts[0],n,r,t.sourceSpan)),this._advance()}_parseExpansionCase(){const e=this._advance();if(21!==this._peek.type)return this.errors.push(Io.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;const t=this._advance(),s=this._collectExpansionExpTokens(t);if(!s)return null;const n=this._advance();s.push({type:24,parts:[],sourceSpan:n.sourceSpan});const r=new Po(s,this.getTagDefinition);if(r.build(),r.errors.length>0)return this.errors=this.errors.concat(r.errors),null;const i=new xr(e.sourceSpan.start,n.sourceSpan.end,e.sourceSpan.fullStart),a=new xr(t.sourceSpan.start,n.sourceSpan.end,t.sourceSpan.fullStart);return new so(e.parts[0],r.rootNodes,i,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(!Ao(s,21))return this.errors.push(Io.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(s.pop(),0===s.length)return t}if(23===this._peek.type){if(!Ao(s,19))return this.errors.push(Io.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;s.pop()}if(24===this._peek.type)return this.errors.push(Io.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;t.push(this._advance())}}_consumeText(e){const t=[e],s=e.sourceSpan;let n=e.parts[0];if(n.length>0&&"\n"===n[0]){const s=this._getParentElement();null!=s&&0===s.children.length&&this.getTagDefinition(s.name).ignoreFirstLf&&(n=n.substring(1),t[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[n]})}for(;8===this._peek.type||5===this._peek.type||9===this._peek.type;)e=this._advance(),t.push(e),8===e.type?n+=e.parts.join("").replace(/&([^;]+);/g,Lo):9===e.type?n+=e.parts[0]:n+=e.parts.join("");if(n.length>0){const r=e.sourceSpan;this._addToParent(new eo(n,new xr(s.start,r.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,n=[];for(;14===this._peek.type;)n.push(this._consumeAttr(this._advance()));const r=this._getElementFullName(t,s,this._getParentElement());let i=!1;if(2===this._peek.type){this._advance(),i=!0;const t=this.getTagDefinition(r);t.canSelfClose||null!==a(r)||t.isVoid||this.errors.push(Io.create(r,e.sourceSpan,`Only void and foreign elements can be self closed "${e.parts[1]}"`))}else 1===this._peek.type&&(this._advance(),i=!1);const o=this._peek.sourceSpan.fullStart,l=new xr(e.sourceSpan.start,o,e.sourceSpan.fullStart),c=new xr(e.sourceSpan.start,o,e.sourceSpan.fullStart),u=new ro(r,n,[],l,c,void 0);this._pushElement(u),i?this._popElement(r,l):4===e.type&&(this._popElement(r,null),this.errors.push(Io.create(r,l,`Opening tag "${r}" 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(Io.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(Io.create(t,e.sourceSpan,s))}}_popElement(e,t){let s=!1;for(let n=this._elementStack.length-1;n>=0;n--){const r=this._elementStack[n];if(r.name===e)return r.endSourceSpan=t,r.sourceSpan.end=null!==t?t.end:r.sourceSpan.end,this._elementStack.splice(n,this._elementStack.length-n),!s;this.getTagDefinition(r.name).closedByParent||(s=!0)}return!1}_consumeAttr(e){const t=o(e.parts[0],e.parts[1]);let s=e.sourceSpan.end;15===this._peek.type&&this._advance();let n="";const r=[];let i,a;if(16===this._peek.type)for(i=this._peek.sourceSpan,a=this._peek.sourceSpan.end;16===this._peek.type||17===this._peek.type||9===this._peek.type;){const e=this._advance();r.push(e),17===e.type?n+=e.parts.join("").replace(/&([^;]+);/g,Lo):9===e.type?n+=e.parts[0]:n+=e.parts.join(""),a=s=e.sourceSpan.end}if(15===this._peek.type){s=this._advance().sourceSpan.end}const l=i&&a&&new xr(i.start,a,i.fullStart);return new no(t,n,new xr(e.sourceSpan.start,s,e.sourceSpan.fullStart),e.sourceSpan,l,r.length>0?r: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,n){if(""===e&&""===(e=this.getTagDefinition(t).implicitNamespacePrefix||"")&&null!=n){const t=s(n.name)[1];this.getTagDefinition(t).preventNamespaceInheritance||(e=a(n.name))}return o(e,t)}}function Ao(e,t){return e.length>0&&e[e.length-1]===t}function Lo(e,t){return void 0!==oo[t]?oo[t]||e:/^#x[a-f0-9]+$/i.test(t)?String.fromCodePoint(parseInt(t.slice(2),16)):/^#\d+$/.test(t)?String.fromCodePoint(parseInt(t.slice(1),10)):e}class Mo extends ko{constructor(){super(p)}parse(e,t,s){return super.parse(e,t,s)}}e("HtmlParser",Mo);const Ro="ngPreserveWhitespaces",Oo=new Set(["pre","template","textarea","script","style"]),$o=" \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff",Do=new RegExp(`[^${$o}]`),qo=new RegExp(`[${$o}]{2,}`,"g");function Bo(e){return e.replace(new RegExp("\ue500","g")," ")}class Fo{visitElement(e,t){return Oo.has(e.name)||e.attrs.some(e=>e.name===Ro)?new ro(e.name,ao(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n):new ro(e.name,e.attrs,function(e,t){const s=[];return t.forEach((n,r)=>{const i={prev:t[r-1],next:t[r+1]},a=n.visit(e,i);a&&s.push(a)}),s}(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}visitAttribute(e,t){return e.name!==Ro?e:null}visitText(e,t){const s=e.value.match(Do),n=t&&(t.prev instanceof to||t.next instanceof to);if(s||n){const t=e.tokens.map(e=>5===e.type?function({type:e,parts:t,sourceSpan:s}){return{type:e,parts:[Vo(t[0])],sourceSpan:s}}(e):e),s=Vo(e.value);return new eo(s,e.sourceSpan,t,e.i18n)}return null}visitComment(e,t){return e}visitExpansion(e,t){return e}visitExpansionCase(e,t){return e}}function Vo(e){return Bo(e).replace(qo," ")}function Uo(e,t=!1){return St(Object.keys(e).map(s=>({key:s,quoted:t,value:e[s]})))}class Ho{}e("ElementSchemaRegistry",Ho);const jo=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%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,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","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,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*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,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!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,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,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,src,text,type","select^[HTMLElement]|autocomplete,!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|media,sizes,src,srcset,type","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]|autocapitalize,autocomplete,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,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|",":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:|"],Wo=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),zo=Array.from(Wo).reduce((e,[t,s])=>(e.set(t,s),e),new Map);class Ko extends Ho{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,jo.forEach(e=>{const t=new Map,s=new Set,[n,r]=e.split("|"),i=r.split(","),[a,o]=n.split("^");a.split(",").forEach(e=>{this._schema.set(e.toLowerCase(),t),this._eventSchema.set(e.toLowerCase(),s)});const l=o&&this._schema.get(o.toLowerCase());if(l){for(const[e,s]of l)t.set(e,s);for(const e of this._eventSchema.get(o.toLowerCase()))s.add(e)}i.forEach(e=>{if(e.length>0)switch(e[0]){case"*":s.add(e.substring(1));break;case"!":t.set(e.substring(1),"boolean");break;case"#":t.set(e.substring(1),"number");break;case"%":t.set(e.substring(1),"object");break;default:t.set(e,"string")}})})}hasProperty(e,t,s){if(s.some(e=>e.name===S.name))return!0;if(e.indexOf("-")>-1){if(n(e)||r(e))return!1;if(s.some(e=>e.name===w.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(t)}hasElement(e,t){if(t.some(e=>e.name===S.name))return!0;if(e.indexOf("-")>-1){if(n(e)||r(e))return!0;if(t.some(e=>e.name===w.name))return!0}return this._schema.has(e.toLowerCase())}securityContext(e,t,s){s&&(t=this.getMappedPropName(t)),e=e.toLowerCase(),t=t.toLowerCase();let n=ji()[e+"|"+t];return n||(n=ji()["*|"+t],n||_.NONE)}getMappedPropName(e){return Wo.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){if(e.toLowerCase().startsWith("on")){return{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.`}}return{error:!1}}validateAttribute(e){if(e.toLowerCase().startsWith("on")){return{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}}return{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(e=>zo.get(e)??e)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return e.replace(I,(...e)=>e[1].toUpperCase())}normalizeAnimationStyleValue(e,t,s){let n="";const r=s.toString().trim();let i=null;if(function(e){switch(e){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)n="px";else{const e=s.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&(i=`Please provide a CSS unit value for ${t}:${s}`)}return{error:i,value:r+n}}}e("DomElementSchemaRegistry",Ko);const Go=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","object|codebase","object|data"]);function Yo(e,t){return e=e.toLowerCase(),t=t.toLowerCase(),Go.has(e+"|"+t)||Go.has("*|"+t)}const Qo="animate-";class Xo{constructor(e,t,s,n){this._exprParser=e,this._interpolationConfig=t,this._schemaRegistry=s,this.errors=n}get interpolationConfig(){return this._interpolationConfig}createBoundHostProperties(e,t){const s=[];for(const n of Object.keys(e)){const r=e[n];"string"==typeof r?this.parsePropertyBinding(n,r,!0,t,t.start.offset,void 0,[],s,t):this._reportError(`Value of the host property binding "${n}" needs to be a string representing an expression but got "${r}" (${typeof r})`,t)}return s}createDirectiveHostEventAsts(e,t){const s=[];for(const n of Object.keys(e)){const r=e[n];"string"==typeof r?this.parseEvent(n,r,!1,t,t,[],s,t):this._reportError(`Value of the host listener "${n}" needs to be a string representing an expression but got "${r}" (${typeof r})`,t)}return s}parseInterpolation(e,t,s){const n=t.start.toString(),r=t.fullStart.offset;try{const i=this._exprParser.parseInterpolation(e,n,r,s,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,t),i}catch(e){return this._reportError(`${e}`,t),this._exprParser.wrapLiteralPrimitive("ERROR",n,r)}}parseInterpolationExpression(e,t){const s=t.start.toString(),n=t.start.offset;try{const r=this._exprParser.parseInterpolationExpression(e,s,n);return r&&this._reportExpressionParserErrors(r.errors,t),r}catch(e){return this._reportError(`${e}`,t),this._exprParser.wrapLiteralPrimitive("ERROR",s,n)}}parseInlineTemplateBinding(e,t,s,n,r,i,a,o){const l=s.start.offset+1,c=this._parseTemplateBindings(e,t,s,l,n);for(const e of c){const t=el(s,e.sourceSpan),l=e.key.source,c=el(s,e.key.span);if(e instanceof yi){const n=e.value?e.value.source:"$implicit",r=e.value?el(s,e.value.span):void 0;a.push(new Ci(l,n,t,c,r))}else if(e.value){const n=o?t:s,a=el(s,e.value.ast.sourceSpan);this._parsePropertyAst(l,e.value,n,c,a,r,i)}else r.push([l,""]),this.parseLiteralAttr(l,null,c,n,void 0,r,i,c)}}_parseTemplateBindings(e,t,s,n,r){const i=s.start.toString();try{const a=this._exprParser.parseTemplateBindings(e,t,i,n,r);return this._reportExpressionParserErrors(a.errors,s),a.warnings.forEach(e=>{this._reportError(e,s,wr.WARNING)}),a.templateBindings}catch(e){return this._reportError(`${e}`,s),[]}}parseLiteralAttr(e,t,s,n,r,i,a,o){Jo(e)?(e=e.substring(1),void 0!==o&&(o=el(o,new vi(o.start.offset+1,o.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,wr.ERROR),this._parseAnimation(e,t,s,n,o,r,i,a)):a.push(new _i(e,this._exprParser.wrapLiteralPrimitive(t,"",n),$r.LITERAL_ATTR,s,o,r))}parsePropertyBinding(e,t,s,n,r,i,a,o,l){0===e.length&&this._reportError("Property name is missing in binding",n);let c=!1;e.startsWith(Qo)?(c=!0,e=e.substring(8),void 0!==l&&(l=el(l,new vi(l.start.offset+8,l.end.offset)))):Jo(e)&&(c=!0,e=e.substring(1),void 0!==l&&(l=el(l,new vi(l.start.offset+1,l.end.offset)))),c?this._parseAnimation(e,t,n,r,l,i,a,o):this._parsePropertyAst(e,this._parseBinding(t,s,i||n,r),n,l,i,a,o)}parsePropertyInterpolation(e,t,s,n,r,i,a,o){const l=this.parseInterpolation(t,n||s,o);return!!l&&(this._parsePropertyAst(e,l,s,a,n,r,i),!0)}_parsePropertyAst(e,t,s,n,r,i,a){i.push([e,t.source]),a.push(new _i(e,t,$r.DEFAULT,s,n,r))}_parseAnimation(e,t,s,n,r,i,a,o){0===e.length&&this._reportError("Animation trigger is missing",s);const l=this._parseBinding(t||"undefined",!1,i||s,n);a.push([e,l.source]),o.push(new _i(e,l,$r.ANIMATION,s,r,i))}_parseBinding(e,t,s,n){const r=(s&&s.start||"(unknown)").toString();try{const i=t?this._exprParser.parseSimpleBinding(e,r,n,this._interpolationConfig):this._exprParser.parseBinding(e,r,n,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,s),i}catch(e){return this._reportError(`${e}`,s),this._exprParser.wrapLiteralPrimitive("ERROR",r,n)}}createBoundElementProperty(e,t,s=!1,n=!0){if(t.isAnimation)return new Ti(t.name,4,_.NONE,t.expression,null,t.sourceSpan,t.keySpan,t.valueSpan);let r,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=Zo(this._schemaRegistry,e,a,!0);const n=a.indexOf(":");if(n>-1){const e=a.substring(0,n),t=a.substring(n+1);a=o(e,t)}r=1}else"class"==l[0]?(a=l[1],r=2,c=[_.NONE]):"style"==l[0]&&(i=l.length>2?l[2]:null,a=l[1],r=3,c=[_.STYLE]);if(null===a){const i=this._schemaRegistry.getMappedPropName(t.name);a=n?i:t.name,c=Zo(this._schemaRegistry,e,i,!1),r=0,s||this._validatePropertyOrAttributeName(i,t.sourceSpan,!1)}return new Ti(a,r,c[0],t.expression,i,t.sourceSpan,t.keySpan,t.valueSpan)}parseEvent(e,t,s,n,r,i,a,o){0===e.length&&this._reportError("Event name is missing in binding",n),Jo(e)?(e=e.slice(1),void 0!==o&&(o=el(o,new vi(o.start.offset+1,o.end.offset))),this._parseAnimationEvent(e,t,s,n,r,a,o)):this._parseRegularEvent(e,t,s,n,r,i,a,o)}calcPossibleSecurityContexts(e,t,s){const n=this._schemaRegistry.getMappedPropName(t);return Zo(this._schemaRegistry,e,n,s)}_parseAnimationEvent(e,t,s,n,r,i,a){const o=N(e,".",[e,""]);const l=o[0],c=o[1].toLowerCase(),u=this._parseAction(t,s,r);i.push(new bi(l,c,1,u,n,r,a)),0===l.length&&this._reportError("Animation event name is missing in binding",n),c?"start"!==c&&"done"!==c&&this._reportError(`The provided animation output phase value "${c}" for "@${l}" is not supported (use start or done)`,n):this._reportError(`The animation trigger output event (@${l}) is missing its phase value name (start or done are currently supported)`,n)}_parseRegularEvent(e,t,s,n,r,i,a,o){const[l,c]=N(e,":",[null,e]);const u=this._parseAction(t,s,r);i.push([e,u.source]),a.push(new bi(c,l,0,u,n,r,o))}_parseAction(e,t,s){const n=(s&&s.start||"(unknown").toString(),r=s&&s.start?s.start.offset:0;try{const i=this._exprParser.parseAction(e,t,n,r,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,s),!i||i.ast instanceof Gr?(this._reportError("Empty expressions are not allowed",s),this._exprParser.wrapLiteralPrimitive("ERROR",n,r)):i}catch(e){return this._reportError(`${e}`,s),this._exprParser.wrapLiteralPrimitive("ERROR",n,r)}}_reportError(e,t,s=wr.ERROR){this.errors.push(new Sr(t,e,s))}_reportExpressionParserErrors(e,t){for(const s of e)this._reportError(s.message,t)}_validatePropertyOrAttributeName(e,t,s){const n=s?this._schemaRegistry.validateAttribute(e):this._schemaRegistry.validateProperty(e);n.error&&this._reportError(n.msg,t,wr.ERROR)}}function Jo(e){return"@"==e[0]}function Zo(e,t,s,n){const r=[];return d.parse(t).forEach(t=>{const i=t.element?[t.element]:e.allKnownElementNames(),a=new Set(t.notSelectors.filter(e=>e.isElementSelector()).map(e=>e.element)),o=i.filter(e=>!a.has(e));r.push(...o.map(t=>e.securityContext(t,s,n)))}),0===r.length?[_.NONE]:Array.from(new Set(r)).sort()}function el(e,t){const s=t.start-e.start.offset,n=t.end-e.end.offset;return new xr(e.start.moveBy(s),e.end.moveBy(n),e.fullStart.moveBy(s),e.details)}const tl=/^([^:/?#]+):/;function sl(e){let t=null,s=null,n=null,i=!1,a="";e.attrs.forEach(e=>{const r=e.name.toLowerCase();"select"==r?t=e.value:"href"==r?s=e.value:"rel"==r?n=e.value:"ngNonBindable"==e.name?i=!0:"ngProjectAs"==e.name&&e.value.length>0&&(a=e.value)}),t=function(e){if(null===e||0===e.length)return"*";return e}(t);const o=e.name.toLowerCase();let l=nl.OTHER;return r(o)?l=nl.NG_CONTENT:"style"==o?l=nl.STYLE:"script"==o?l=nl.SCRIPT:"link"==o&&"stylesheet"==n&&(l=nl.STYLESHEET),new rl(l,t,s,i,a)}var nl;!function(e){e[e.NG_CONTENT=0]="NG_CONTENT",e[e.STYLE=1]="STYLE",e[e.STYLESHEET=2]="STYLESHEET",e[e.SCRIPT=3]="SCRIPT",e[e.OTHER=4]="OTHER"}(nl||(nl={}));class rl{constructor(e,t,s,n,r){this.type=e,this.selectAttr=t,this.hrefAttr=s,this.nonBindable=n,this.projectAs=r}}const il=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,al={start:"[(",end:")]"},ol={start:"[",end:"]"},ll={start:"(",end:")"};class cl{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=ln(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=sl(e);if(s.type===nl.SCRIPT)return null;if(s.type===nl.STYLE){const t=1===(n=e).children.length&&n.children[0]instanceof eo?n.children[0].value:null;return null!==t&&this.styles.push(t),null}if(s.type===nl.STYLESHEET&&function(e){if(null==e||0===e.length||"/"==e[0])return!1;const t=e.match(tl);return null===t||"package"==t[1]||"asset"==t[1]}(s.hrefAttr))return this.styleUrls.push(s.hrefAttr),null;var n;const r=i(e.name),a=[],o=[],l=[],c=[],u=[],p={},h=[],d=[];let m=!1;for(const t of e.attrs){let e=!1;const s=pl(t.name);let n=!1;if(t.i18n&&(p[t.name]=t.i18n),s.startsWith("*")){m&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",t.sourceSpan),n=!0,m=!0;const e=t.value,r=s.substring(1),i=[],a=t.valueSpan?t.valueSpan.start.offset:t.sourceSpan.start.offset+t.name.length;this.bindingParser.parseInlineTemplateBinding(r,e,t.sourceSpan,a,[],h,i,!0),d.push(...i.map(e=>new Cs(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan)))}else e=this.parseAttribute(r,t,[],a,o,l,c);e||n||u.push(this.visitAttribute(t))}const g=ao(s.nonBindable?ul:this,e.children);let v;if(s.type===nl.NG_CONTENT){e.children&&!e.children.every(e=>function(e){return e instanceof eo&&0==e.value.trim().length}(e)||function(e){return e instanceof io}(e))&&this.reportError("<ng-content> element cannot have content.",e.sourceSpan);const t=s.selectAttr,n=e.attrs.map(e=>this.visitAttribute(e));v=new bs(t,n,e.sourceSpan,e.i18n),this.ngContentSelectors.push(t)}else if(r){const t=this.extractAttributes(e.name,a,p);v=new _s(e.name,u,t.bound,o,[],g,c,l,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{const t=this.extractAttributes(e.name,a,p);v=new Es(e.name,u,t.bound,o,g,c,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}if(m){const s=this.extractAttributes("ng-template",h,p),n=[];s.literal.forEach(e=>n.push(e)),s.bound.forEach(e=>n.push(e));const i=v instanceof Es?{attributes:v.attributes,inputs:v.inputs,outputs:v.outputs}:{attributes:[],inputs:[],outputs:[]},a=r&&t?void 0:e.i18n,o=v instanceof _s?null:v.name;v=new _s(o,i.attributes,i.inputs,i.outputs,n,[v],[],d,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,a)}return t&&(this.inI18nBlock=!1),v}visitAttribute(e){return new xs(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(!ln(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={},n={};return Object.keys(t.placeholders).forEach(e=>{const r=t.placeholders[e];if(e.startsWith("VAR_")){const t=e.trim(),n=this.bindingParser.parseInterpolationExpression(r.text,r.sourceSpan);s[t]=new ys(n,r.sourceSpan)}else n[e]=this._visitTextWithInterpolation(r.text,r.sourceSpan,null)}),new Is(s,n,e.sourceSpan,t)}visitExpansionCase(e){return null}visitComment(e){return this.options.collectCommentNodes&&this.commentNodes.push(new vs(e.value||"",e.sourceSpan)),null}extractAttributes(e,t,s){const n=[],r=[];return t.forEach(t=>{const i=s[t.name];if(t.isLiteral)r.push(new xs(t.name,t.expression.source||"",t.sourceSpan,t.keySpan,t.valueSpan,i));else{const s=this.bindingParser.createBoundElementProperty(e,t,!0,!1);n.push(ws.fromBoundElementProperty(s,i))}}),{bound:n,literal:r}}parseAttribute(e,t,s,n,r,i,a){const o=pl(t.name),l=t.value,c=t.sourceSpan,u=t.valueSpan?t.valueSpan.start.offset:c.start.offset;function p(e,s,n){const r=t.name.length-o.length,i=e.start.moveBy(s.length+r),a=i.moveBy(n.length);return new xr(i,a,i,n)}const h=o.match(il);if(h){if(null!=h[1]){const e=h[7],r=p(c,h[1],e);this.bindingParser.parsePropertyBinding(e,l,!1,c,u,t.valueSpan,s,n,r)}else if(h[2])if(e){const e=h[7],s=p(c,h[2],e);this.parseVariable(e,l,c,s,t.valueSpan,i)}else this.reportError('"let-" is only supported on ng-template elements.',c);else if(h[3]){const e=h[7],s=p(c,h[3],e);this.parseReference(e,l,c,s,t.valueSpan,a)}else if(h[4]){const e=[],n=h[7],i=p(c,h[4],n);this.bindingParser.parseEvent(n,l,!1,c,t.valueSpan||c,s,e,i),hl(e,r)}else if(h[5]){const e=h[7],i=p(c,h[5],e);this.bindingParser.parsePropertyBinding(e,l,!1,c,u,t.valueSpan,s,n,i),this.parseAssignmentEvent(e,l,c,t.valueSpan,s,r,i)}else if(h[6]){const e=p(c,"",o);this.bindingParser.parseLiteralAttr(o,l,c,u,t.valueSpan,s,n,e)}return!0}let d=null;if(o.startsWith(al.start)?d=al:o.startsWith(ol.start)?d=ol:o.startsWith(ll.start)&&(d=ll),null!==d&&o.endsWith(d.end)&&o.length>d.start.length+d.end.length){const e=o.substring(d.start.length,o.length-d.end.length),i=p(c,d.start,e);if(d.start===al.start)this.bindingParser.parsePropertyBinding(e,l,!1,c,u,t.valueSpan,s,n,i),this.parseAssignmentEvent(e,l,c,t.valueSpan,s,r,i);else if(d.start===ol.start)this.bindingParser.parsePropertyBinding(e,l,!1,c,u,t.valueSpan,s,n,i);else{const n=[];this.bindingParser.parseEvent(e,l,!1,c,t.valueSpan||c,s,n,i),hl(n,r)}return!0}const m=p(c,"",o);return this.bindingParser.parsePropertyInterpolation(o,l,c,t.valueSpan,s,n,m,t.valueTokens??null)}_visitTextWithInterpolation(e,t,s,n){const r=Bo(e),i=this.bindingParser.parseInterpolation(r,t,s);return i?new ys(i,t,n):new fs(r,t)}parseVariable(e,t,s,n,r,i){e.indexOf("-")>-1?this.reportError('"-" is not allowed in variable names',s):0===e.length&&this.reportError("Variable does not have a name",s),i.push(new Cs(e,t,s,n,r))}parseReference(e,t,s,n,r,i){e.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',s):0===e.length?this.reportError("Reference does not have a name",s):i.some(t=>t.name===e)&&this.reportError(`Reference "#${e}" is defined more than once`,s),i.push(new Ts(e,t,s,n,r))}parseAssignmentEvent(e,t,s,n,r,i,a){const o=[];this.bindingParser.parseEvent(`${e}Change`,`${t} =$event`,!0,s,n||s,r,o,a),hl(o,i)}reportError(e,t,s=wr.ERROR){this.errors.push(new Sr(t,e,s))}}const ul=new class{visitElement(e){const t=sl(e);if(t.type===nl.SCRIPT||t.type===nl.STYLE||t.type===nl.STYLESHEET)return null;const s=ao(this,e.children,null);return new Es(e.name,ao(this,e.attrs),[],[],s,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}visitComment(e){return null}visitAttribute(e){return new xs(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return new fs(e.value,e.sourceSpan)}visitExpansion(e){return null}visitExpansionCase(e){return null}};function pl(e){return/^data-/i.test(e)?e.substring(5):e}function hl(e,t){t.push(...e.map(e=>Ss.fromParsedEvent(e)))}var dl;!function(e){e[e.ELEMENT=0]="ELEMENT",e[e.TEMPLATE=1]="TEMPLATE"}(dl||(dl={}));class ml{constructor(e,t,s=0,n=null,r,i){this.index=e,this.ref=t,this.level=s,this.templateIndex=n,this.meta=r,this.registry=i,this.bindings=new Set,this.placeholders=new Map,this.isEmitted=!1,this._unresolvedCtxCount=0,this._registry=i||{getUniqueId:dn(),icus:new Map},this.id=this._registry.getUniqueId()}appendTag(e,t,s,n){if(t.isVoid&&n)return;const r=t.isVoid||!n?t.startName:t.closeName,i={type:e,index:s,ctx:this.id,isVoid:t.isVoid,closed:n};gn(this.placeholders,r,i)}get icus(){return this._registry.icus}get isRoot(){return 0===this.level}get isResolved(){return 0===this._unresolvedCtxCount}getSerializedPlaceholders(){const e=new Map;return this.placeholders.forEach((t,s)=>e.set(s,t.map(yl))),e}appendBinding(e){this.bindings.add(e)}appendIcu(e,t){gn(this._registry.icus,e,t)}appendBoundText(e){vn(e,this.bindings.size,this.id).forEach((e,t)=>gn(this.placeholders,t,...e))}appendTemplate(e,t){this.appendTag(dl.TEMPLATE,e,t,!1),this.appendTag(dl.TEMPLATE,e,t,!0),this._unresolvedCtxCount++}appendElement(e,t,s){this.appendTag(dl.ELEMENT,e,t,s)}appendProjection(e,t){this.appendTag(dl.ELEMENT,e,t,!1),this.appendTag(dl.ELEMENT,e,t,!0)}forkChildContext(e,t,s){return new ml(e,this.ref,this.level+1,t,s,this._registry)}reconcileChildContext(e){["start","close"].forEach(t=>{const s=e.meta[`${t}Name`],n=(this.placeholders.get(s)||[]).find(fl(this.id,e.templateIndex));n&&(n.ctx=e.id)});e.placeholders.forEach((t,s)=>{const n=this.placeholders.get(s);if(!n)return void this.placeholders.set(s,t);const r=n.findIndex(fl(e.id,e.templateIndex));if(r>=0){const e=s.startsWith("CLOSE");if(s.endsWith("NG-TEMPLATE"))n.splice(r+(e?0:1),0,...t);else{t[e?t.length-1:0].tmpl=n[r],n.splice(r,1,...t)}}else n.push(...t);this.placeholders.set(s,n)}),this._unresolvedCtxCount--}}function gl(e,t,s,n){return hn(`${n?"/":""}${e}${t}`,s)}function vl(e,{index:t,ctx:s,isVoid:n},r){return n?gl(e,t,s)+gl(e,t,s,!0):gl(e,t,s,r)}function fl(e,t){return s=>"object"==typeof s&&s.type===dl.TEMPLATE&&s.index===t&&s.ctx===e}function yl(e){const t=(e,t)=>vl("#",e,t),s=(e,t)=>vl("*",e,t);switch(e.type){case dl.ELEMENT:return e.closed?t(e,!0)+(e.tmpl?s(e.tmpl,!0):""):e.tmpl?s(e.tmpl)+t(e)+(e.isVoid?s(e.tmpl,!0):""):t(e);case dl.TEMPLATE:return s(e,e.closed);default:return e}}const xl=new class{visitText(e){return e.value}visitContainer(e){return e.children.map(e=>e.visit(this)).join("")}visitIcu(e){const t=Object.keys(e.cases).map(t=>`${t} {${e.cases[t].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(e=>e.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`{${yn(e,!1)}}`}};function wl(e){return e.visit(xl)}const Sl={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 El{constructor(){this._placeHolderNameCounts={},this._signatureToName={}}getStartTagPlaceholderName(e,t,s){const n=this._hashTag(e,t,s);if(this._signatureToName[n])return this._signatureToName[n];const r=e.toUpperCase(),i=Sl[r]||`TAG_${r}`,a=this._generateUniqueName(s?i:`START_${i}`);return this._signatureToName[n]=a,a}getCloseTagPlaceholderName(e){const t=this._hashClosingTag(e);if(this._signatureToName[t])return this._signatureToName[t];const s=e.toUpperCase(),n=Sl[s]||`TAG_${s}`,r=this._generateUniqueName(`CLOSE_${n}`);return this._signatureToName[t]=r,r}getPlaceholderName(e,t){const s=e.toUpperCase(),n=`PH: ${s}=${t}`;if(this._signatureToName[n])return this._signatureToName[n];const r=this._generateUniqueName(s);return this._signatureToName[n]=r,r}getUniquePlaceholder(e){return this._generateUniqueName(e.toUpperCase())}_hashTag(e,t,s){return`<${e}`+Object.keys(t).sort().map(e=>` ${e}=${t[e]}`).join("")+(s?"/>":`></${e}>`)}_hashClosingTag(e){return this._hashTag(`/${e}`,{},!1)}_generateUniqueName(e){if(!this._placeHolderNameCounts.hasOwnProperty(e))return this._placeHolderNameCounts[e]=1,e;const t=this._placeHolderNameCounts[e];return this._placeHolderNameCounts[e]=t+1,`${e}_${t}`}}const _l=new Ya(new $a);function bl(e){const t=new Tl(_l,e);return(e,s,n,r,i)=>t.toI18nMessage(e,s,n,r,i)}function Cl(e,t){return t}class Tl{constructor(e,t){this._expressionParser=e,this._interpolationConfig=t}toI18nMessage(e,t="",s="",n="",r){const i={isIcu:1==e.length&&e[0]instanceof to,icuDepth:0,placeholderRegistry:new El,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:r||Cl},a=ao(this,e,i);return new ks(a,i.placeholderToContent,i.placeholderToMessage,t,s,n)}visitElement(e,t){const s=ao(this,e.children,t),n={};e.attrs.forEach(e=>{n[e.name]=e.value});const r=p(e.name).isVoid,i=t.placeholderRegistry.getStartTagPlaceholderName(e.name,n,r);t.placeholderToContent[i]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan};let a="";r||(a=t.placeholderRegistry.getCloseTagPlaceholderName(e.name),t.placeholderToContent[a]={text:`</${e.name}>`,sourceSpan:e.endSourceSpan??e.sourceSpan});const o=new Ms(e.name,n,i,a,s,r,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return t.visitNodeFn(e,o)}visitAttribute(e,t){const s=void 0===e.valueTokens||1===e.valueTokens.length?new Ps(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 Ps(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={},n=new Ls(e.switchValue,e.type,s,e.sourceSpan);if(e.cases.forEach(e=>{s[e.value]=new As(e.expression.map(e=>e.visit(this,t)),e.expSourceSpan)}),t.icuDepth--,t.isIcu||t.icuDepth>0){const s=t.placeholderRegistry.getUniquePlaceholder(`VAR_${e.type}`);return n.expressionPlaceholder=s,t.placeholderToContent[s]={text:e.switchValue,sourceSpan:e.switchValueSourceSpan},t.visitNodeFn(e,n)}const r=t.placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString());t.placeholderToMessage[r]=this.toI18nMessage([e],"","","",void 0);const i=new Os(n,r,e.sourceSpan);return t.visitNodeFn(e,i)}visitExpansionCase(e,t){throw new Error("Unreachable code")}_visitTextWithInterpolation(e,t,s,n){const r=[];let i=!1;for(const t of e)switch(t.type){case 8:case 17:i=!0;const e=t.parts[1],n=Nl(e)||"INTERPOLATION",a=s.placeholderRegistry.getPlaceholderName(n,e);s.placeholderToContent[a]={text:t.parts.join(""),sourceSpan:t.sourceSpan},r.push(new Rs(e,a,t.sourceSpan));break;default:if(t.parts[0].length>0){const e=r[r.length-1];e instanceof Ps?(e.value+=t.parts[0],e.sourceSpan=new xr(e.sourceSpan.start,t.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details)):r.push(new Ps(t.parts[0],t.sourceSpan))}}return i?(function(e,t){t instanceof ks&&(!function(e){const t=e.nodes;if(1!==t.length||!(t[0]instanceof As))throw new Error("Unexpected previous i18n message - expected it to consist of only a single `Container` node.")}(t),t=t.nodes[0]);if(t instanceof As){!function(e,t){if(e.length!==t.length)throw new Error("The number of i18n message children changed between first and second pass.");if(e.some((e,s)=>t[s].constructor!==e.constructor))throw new Error("The types of the i18n message children changed between first and second pass.")}(t.children,e);for(let s=0;s<e.length;s++)e[s].sourceSpan=t.children[s].sourceSpan}}(r,n),new As(r,t)):r[0]}}const Il=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function Nl(e){return e.split(Il)[2]}class kl extends Sr{constructor(e,t){super(e,t)}}const Pl=(e,t)=>(e instanceof Za&&(t instanceof Os&&e.i18n instanceof ks&&(t.previousMessage=e.i18n),e.i18n=t),t);class Al{constructor(e=jn,t=!1,s=!1){this.interpolationConfig=e,this.keepI18nAttrs=t,this.enableI18nLegacyMessageIdFormat=s,this.hasI18nMeta=!1,this._errors=[],this._createI18nMessage=bl(this.interpolationConfig)}_generateI18nMessage(e,t="",s){const{meaning:n,description:r,customId:i}=this._parseMetadata(t),a=this._createI18nMessage(e,n,r,i,s);return this._setMessageId(a,t),this._setLegacyIds(a,t),a}visitAllWithErrors(e){const t=e.map(e=>e.visit(this,null));return new No(t,this._errors)}visitElement(e){let t;if(function(e){return e.attrs.some(e=>on(e.name))}(e)){this.hasI18nMeta=!0;const s=[],n={};for(const r of e.attrs)if(r.name===rn){const s=e.i18n||r.value;t=this._generateI18nMessage(e.children,s,Pl),0===t.nodes.length&&(t=void 0),e.i18n=t}else if(r.name.startsWith(an)){const t=r.name.slice(5);Yo(e.name,t)?this._reportError(r,`Translating attribute '${t}' is disallowed for security reasons.`):n[t]=r.value}else s.push(r);if(Object.keys(n).length)for(const e of s){const t=n[e.name];void 0!==t&&e.value&&(e.i18n=this._generateI18nMessage([e],e.i18n||t))}this.keepI18nAttrs||(e.attrs=s)}return ao(this,e.children,t),e}visitExpansion(e,t){let s;const n=e.i18n;if(this.hasI18nMeta=!0,n instanceof Os){const r=n.name;s=this._generateI18nMessage([e],n);pn(s).name=r,null!==t&&(t.placeholderToMessage[r]=s)}else s=this._generateI18nMessage([e],t||n);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(e=""){let t,s,n;if(e=e.trim(),e){const r=e.indexOf(Ml),i=e.indexOf(Ll);let a;[a,t]=r>-1?[e.slice(0,r),e.slice(r+2)]:[e,""],[s,n]=i>-1?[a.slice(0,i),a.slice(i+1)]:["",a]}return{customId:t,meaning:s,description:n}}(e):e instanceof ks?e:{}}_setMessageId(e,t){e.id||(e.id=t instanceof ks&&t.id||q(e))}_setLegacyIds(e,t){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[D(e),B(e)];else if("string"!=typeof t){const s=t instanceof ks?t:t instanceof Os?t.previousMessage:void 0;e.legacyIds=s?s.legacyIds:[]}}_reportError(e,t){this._errors.push(new kl(e.sourceSpan,t))}}const Ll="|",Ml="@@";function Rl(e,t,s,n){const r=function(e){return e.nodes.map(e=>e.visit(Ol,null)).join("")}(t),i=[Tt(r)];Object.keys(n).length&&(i.push(Uo(fn(n,!0),!0)),i.push(Uo({original_code:St(Object.keys(n).map(e=>({key:yn(e),quoted:!0,value:t.placeholders[e]?Tt(t.placeholders[e].sourceSpan.toString()):Tt(t.placeholderToMessage[e].nodes.map(e=>e.sourceSpan.toString()).join(""))})))})));const a=s.set(vt("goog.getMsg").callFn(i)).toConstDecl();a.addLeadingComment(function(e){const t=[];return e.description?t.push({tagName:"desc",text:e.description}):t.push({tagName:"suppress",text:"{msgDescriptions}"}),e.meaning&&t.push({tagName:"meaning",text:e.meaning}),gt(t)}(t));return[a,new pt(e.set(s))]}const Ol=new class{formatPh(e){return`{$${yn(e)}}`}visitText(e){return e.value}visitContainer(e){return e.children.map(e=>e.visit(this)).join("")}visitIcu(e){return wl(e)}visitTagPlaceholder(e){return e.isVoid?this.formatPh(e.startName):`${this.formatPh(e.startName)}${e.children.map(e=>e.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitPlaceholder(e){return this.formatPh(e.name)}visitIcuPlaceholder(e,t){return this.formatPh(e.name)}};function $l(e,t,s){const{messageParts:n,placeHolders:r}=function(e){const t=[],s=new Dl(e.placeholderToMessage,t);return e.nodes.forEach(e=>e.visit(s)),function(e){const t=[],s=[];e[0]instanceof $e&&t.push(ql(e[0].sourceSpan.start));for(let n=0;n<e.length;n++){const r=e[n];r instanceof Oe?t.push(r):(s.push(r),e[n-1]instanceof $e&&t.push(ql(e[n-1].sourceSpan.end)))}e[e.length-1]instanceof $e&&t.push(ql(e[e.length-1].sourceSpan.end));return{messageParts:t,placeHolders:s}}(t)}(t),i=function(e){const t=e.nodes[0],s=e.nodes[e.nodes.length-1];return new xr(t.sourceSpan.fullStart,s.sourceSpan.end,t.sourceSpan.fullStart,t.sourceSpan.details)}(t),a=r.map(e=>s[e.text]),o=It(t,n,r,a,i),l=e.set(o);return[new pt(l)]}class Dl{constructor(e,t){this.placeholderToMessage=e,this.pieces=t}visitText(e){if(this.pieces[this.pieces.length-1]instanceof Oe)this.pieces[this.pieces.length-1].text+=e.value;else{const t=new xr(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new Oe(e.value,t))}}visitContainer(e){e.children.forEach(e=>e.visit(this))}visitIcu(e){this.pieces.push(new Oe(wl(e),e.sourceSpan))}visitTagPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.startName,e.startSourceSpan??e.sourceSpan)),e.isVoid||(e.children.forEach(e=>e.visit(this)),this.pieces.push(this.createPlaceholderPiece(e.closeName,e.endSourceSpan??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 $e(yn(e,!1),t,s)}}function ql(e){return new Oe("",new xr(e,e))}const Bl=new Set(["$event"]),Fl=new Map([["window",Bt.resolveWindow],["document",Bt.resolveDocument],["body",Bt.resolveBody]]),Vl=[" ","\n","\r","\t"];function Ul(e,t){return bt(vt(bn).bitwiseAnd(Tt(e),null,!1),t)}function Hl(e,t=null,s=null){const{type:n,name:r,target:i,phase:a,handler:o}=e;if(i&&!Fl.has(i))throw new Error(`Unexpected global target '${i}' defined for '${r}' event.\n Supported list of global targets: ${Array.from(Fl.keys())}.`);const l="$event",c=new Set,u=null===s||0===s.bindingLevel?vt(_n):s.getOrCreateSharedContextVar(0),p=Ni(s,u,o,"b",e.handlerSpan,c,Bl),h=[],d=s?.variableDeclarations(),m=s?.restoreViewStatement();if(d&&h.push(...d),h.push(...p),m){h.unshift(m);const e=h[h.length-1];e instanceof ht?h[h.length-1]=new ht(Nn(e.value.sourceSpan,Bt.resetView,[e.value])):h.push(new pt(Nn(null,Bt.resetView,[])))}const g=1===n?function(e,t){return`${Zt}${e}.${t}`}(r,a):r,v=t&&Cr(t),f=[];c.has(l)&&f.push(new Ke(l,ce));const y=_t(f,h,ue,null,v),x=[Tt(g),y];return i&&x.push(Tt(!1),ft(Fl.get(i))),x}class jl{constructor(e,t,s=0,n,r,i,a,o,l,c,u=function(){return{prepareStatements:[],constExpressions:[],i18nVarRefsCache:new Map}}()){this.constantPool=e,this.level=s,this.contextName=n,this.i18nContext=r,this.templateIndex=i,this.templateName=a,this._namespace=o,this.i18nUseExternalIds=c,this._constants=u,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=Pn,this.visitVariable=Pn,this.visitTextAttribute=Pn,this.visitBoundAttribute=Pn,this.visitBoundEvent=Pn,this._bindingScope=t.nestedScope(s),this.fileBasedI18nSuffix=l.replace(/[^A-Za-z0-9]/g,"_")+"_",this._valueConverter=new Wl(e,()=>this.allocateDataSlot(),e=>this.allocatePureFunctionSlots(e),(e,t,s,n)=>{this._bindingScope.set(this.level,t,n),this.creationInstruction(null,Bt.pipe,[Tt(s),Tt(e)])})}buildTemplateFunction(e,t,s=0,n){this._ngContentSelectorsOffset=s,this._namespace!==Bt.namespaceHTML&&this.creationInstruction(null,this._namespace),t.forEach(e=>this.registerContextVariables(e));const r=this.i18nContext||ln(n)&&!cn(n)&&!(1===(i=e).length&&i[0]instanceof Es&&e[0].i18n===n);var i;const a=ac(e);if(r&&this.i18nStart(null,n,a),Ns(this,e),this._pureFunctionSlots+=this._bindingSlots,this._valueConverter.updatePipeSlotOffsets(this._bindingSlots),this._nestedTemplateFns.forEach(e=>e()),0===this.level&&this._ngContentReservedSlots.length){const e=[];if(this._ngContentReservedSlots.length>1||"*"!==this._ngContentReservedSlots[0]){const t=this._ngContentReservedSlots.map(e=>"*"!==e?T(e):e);e.push(this.constantPool.getConstLiteral(An(t),!0))}this.creationInstruction(null,Bt.projectionDef,e,!0)}r&&this.i18nEnd(null,a);const o=Dn(this._creationCodeFns),l=Dn(this._updateCodeFns),c=this._bindingScope.viewSnapshotStatements(),u=this._bindingScope.variableDeclarations().concat(this._tempVariables),p=o.length>0?[Ul(1,c.concat(o))]:[],h=l.length>0?[Ul(2,u.concat(l))]:[];return _t([new Ke(bn,de),new Ke(_n,null)],[...this._prefixCode,...p,...h],ue,null,this.templateName)}getLocal(e){return this._bindingScope.get(e)}notifyImplicitReceiverUse(){this._bindingScope.notifyImplicitReceiverUse()}maybeRestoreView(){this._bindingScope.maybeRestoreView()}i18nTranslate(e,t={},s,n){const r=s||this.i18nGenerateMainBlockVar(),i=function(e,t,s,n={},r){const i=[wn(t),bt(cc(),Rl(t,e,s,n),$l(t,e,fn(n,!1)))];r&&i.push(new pt(t.set(r(t))));return i}(e,r,this.i18nGenerateClosureVar(e.id),t,n);return this._constants.prepareStatements.push(...i),r}registerContextVariables(e){const t=this._bindingScope.freshReferenceName(),s=this.level,n=vt(e.name+t);this._bindingScope.set(s,e.name,n,1,(t,r)=>{let i;if(t.bindingLevel===s)t.isListenerScope()&&t.hasRestoreViewVariable()?(i=vt(Cn),t.notifyRestoredViewContextUse()):i=vt(_n);else{const e=t.getSharedContextName(s);i=e||Gl(r)}return[n.set(i.prop(e.value||"$implicit")).toConstDecl()]})}i18nAppendBindings(e){e.length>0&&e.forEach(e=>this.i18n.appendBinding(e))}i18nBindProps(e){const t={};return Object.keys(e).forEach(s=>{const n=e[s];if(n instanceof fs)t[s]=Tt(n.value);else{const e=n.value.visit(this._valueConverter);if(this.allocateBindingSlots(e),e instanceof ci){const{strings:n,expressions:r}=e,{id:i,bindings:a}=this.i18n,o=function(e,t=0,s=0){if(!e.length)return"";let n="";const r=e.length-1;for(let i=0;i<r;i++)n+=`${e[i]}${hn(t+i,s)}`;return n+=e[r],n}(n,a.size,i);this.i18nAppendBindings(r),t[s]=Tt(o)}}}),t}i18nGenerateMainBlockVar(){return vt(this.constantPool.uniqueName("i18n_"))}i18nGenerateClosureVar(e){let t;const s=this.fileBasedI18nSuffix.toUpperCase();if(this.i18nUseExternalIds){const n=xn("EXTERNAL_"),r=this.constantPool.uniqueName(s);t=`${n}${Cr(e)}$$${r}`}else{const e=xn(s);t=this.constantPool.uniqueName(e)}return vt(t)}i18nUpdateRef(e){const{icus:t,meta:s,isRoot:n,isResolved:r,isEmitted:i}=e;if(n&&r&&!i&&!cn(s)){e.isEmitted=!0;const n=e.getSerializedPlaceholders();let r={},i=n.size?mn(n):{};t.size&&t.forEach((e,t)=>{if(1===e.length)i[t]=e[0];else{const s=hn(`I18N_EXP_${t}`);i[t]=Tt(s),r[t]=wt(e)}});let a;(Array.from(n.values()).some(e=>e.length>1)||Object.keys(r).length)&&(a=e=>{const t=[e];return Object.keys(r).length&&t.push(Uo(r,!0)),Nn(null,Bt.i18nPostprocess,t)}),this.i18nTranslate(s,i,e.ref,a)}}i18nStart(e=null,t,s){const n=this.allocateDataSlot();this.i18n=this.i18nContext?this.i18nContext.forkChildContext(n,this.templateIndex,t):new ml(n,this.i18nGenerateMainBlockVar(),0,this.templateIndex,t);const{id:r,ref:i}=this.i18n,a=[Tt(n),this.addToConsts(i)];r>0&&a.push(Tt(r)),this.creationInstruction(e,s?Bt.i18n:Bt.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:n}=this.i18n;if(n.size){for(const t of n)this.updateInstructionWithAdvance(this.getConstCount()-1,e,Bt.i18nExp,()=>this.convertPropertyBinding(t));this.updateInstruction(e,Bt.i18nApply,[Tt(s)])}t||this.creationInstruction(e,Bt.i18nEnd),this.i18n=null}i18nAttributesInstruction(e,t,s){let n=!1;const r=[];if(t.forEach(t=>{const i=t.i18n,a=t.value.visit(this._valueConverter);if(this.allocateBindingSlots(a),a instanceof ci){const o=mn(vn(i));r.push(Tt(t.name),this.i18nTranslate(i,o)),a.expressions.forEach(t=>{n=!0,this.updateInstructionWithAdvance(e,s,Bt.i18nExp,()=>this.convertPropertyBinding(t))})}}),r.length>0){const e=Tt(this.allocateDataSlot()),t=this.addToConsts(wt(r));this.creationInstruction(s,Bt.i18nAttributes,[e,t]),n&&this.updateInstruction(s,Bt.i18nApply,[e])}}getNamespaceInstruction(e){switch(e){case"math":return Bt.namespaceMathML;case"svg":return Bt.namespaceSVG;default:return Bt.namespaceHTML}}addNamespaceInstruction(e,t){this._namespace=e,this.creationInstruction(t.startSourceSpan,e)}interpolatedUpdateInstruction(e,t,s,n,r,i){this.updateInstructionWithAdvance(t,n.sourceSpan,e,()=>[Tt(s),...this.getUpdateInstructionArguments(r),...i])}visitContent(e){const t=this.allocateDataSlot(),s=this._ngContentSelectorsOffset+this._ngContentReservedSlots.length,n=[Tt(t)];this._ngContentReservedSlots.push(e.selector);const r=e.attributes.filter(e=>"select"!==e.name.toLowerCase()),i=this.getAttributeExpressions(e.name,r,[],[]);i.length>0?n.push(Tt(s),wt(i)):0!==s&&n.push(Tt(s)),this.creationInstruction(e.sourceSpan,Bt.projection,n),this.i18n&&this.i18n.appendProjection(e.i18n,t)}visitElement(e){const t=this.allocateDataSlot(),r=new ka(null);let i=!1;const a=ln(e.i18n)&&!cn(e.i18n),o=[],[l,c]=s(e.name),u=n(e.name);for(const t of e.attributes){const{name:e,value:s}=t;"ngNonBindable"===e?i=!0:"style"===e?r.registerStyleAttr(s):"class"===e?r.registerClassAttr(s):o.push(t)}const p=[Tt(t)];u||p.push(Tt(c));const h=[],d=[];e.inputs.forEach(e=>{r.registerBoundInput(e)||(0===e.type&&e.i18n?d.push(e):h.push(e))});const m=this.getAttributeExpressions(e.name,o,h,e.outputs,r,[],d);p.push(this.addAttrsToConsts(m));const g=this.prepareRefsArray(e.references);p.push(this.addToConsts(g));const v=this._namespace,f=this.getNamespaceInstruction(l);f!==v&&this.addNamespaceInstruction(f,e),this.i18n&&this.i18n.appendElement(e.i18n,t);const y=!a&&this.i18n?!ac(e.children):e.children.length>0,x=!r.hasBindingsWithPipes&&0===e.outputs.length&&0===d.length&&!y,w=!x&&ac(e.children);if(x)this.creationInstruction(e.sourceSpan,u?Bt.elementContainer:Bt.element,Mn(p));else{if(this.creationInstruction(e.startSourceSpan,u?Bt.elementContainerStart:Bt.elementStart,Mn(p)),i&&this.creationInstruction(e.startSourceSpan,Bt.disableBindings),d.length>0&&this.i18nAttributesInstruction(t,d,e.startSourceSpan??e.sourceSpan),e.outputs.length>0)for(const s of e.outputs)this.creationInstruction(s.sourceSpan,Bt.listener,this.prepareListenerParameter(e.name,s,t));a&&this.i18nStart(e.startSourceSpan,e.i18n,w)}const S=r.buildUpdateLevelInstructions(this._valueConverter),E=S.length-1;for(let e=0;e<=E;e++){const s=S[e];this._bindingSlots+=this.processStylingUpdateInstruction(t,s)}const _=Tt(void 0),b=[],C=[];h.forEach(n=>{const r=n.type;if(4===r){const e=n.value.visit(this._valueConverter),t=!(e instanceof ai)||!!e.value;this.allocateBindingSlots(e),b.push({span:n.sourceSpan,paramsOrFn:oc(()=>t?this.convertPropertyBinding(e):_,es(n.name))})}else{if(n.i18n)return;const i=n.value.visit(this._valueConverter);if(void 0!==i){const a=[],[o,l]=s(n.name),c=1===r;let u=nc(n.securityContext,c);if(u||"iframe"===e.name.toLowerCase()&&Ki(n.name)&&(u=ft(Bt.validateIframeAttribute)),u&&a.push(u),o){const e=Tt(o);u?a.push(e):a.push(Tt(null),e)}if(this.allocateBindingSlots(i),0===r)i instanceof ci?this.interpolatedUpdateInstruction(Zl(i),t,l,n,i,a):b.push({span:n.sourceSpan,paramsOrFn:oc(()=>this.convertPropertyBinding(i),l,a)});else if(1===r)if(i instanceof ci&&$n(i)>1)this.interpolatedUpdateInstruction(function(e){switch($n(e)){case 3:return Bt.attributeInterpolate1;case 5:return Bt.attributeInterpolate2;case 7:return Bt.attributeInterpolate3;case 9:return Bt.attributeInterpolate4;case 11:return Bt.attributeInterpolate5;case 13:return Bt.attributeInterpolate6;case 15:return Bt.attributeInterpolate7;case 17:return Bt.attributeInterpolate8;default:return Bt.attributeInterpolateV}}(i),t,l,n,i,a);else{const e=i instanceof ci?i.expressions[0]:i;C.push({span:n.sourceSpan,paramsOrFn:oc(()=>this.convertPropertyBinding(e),l,a)})}else this.updateInstructionWithAdvance(t,n.sourceSpan,Bt.classProp,()=>[Tt(t),Tt(l),this.convertPropertyBinding(i),...a])}}});for(const e of b)this.updateInstructionWithAdvance(t,e.span,Bt.property,e.paramsOrFn);for(const e of C)this.updateInstructionWithAdvance(t,e.span,Bt.attribute,e.paramsOrFn);if(Ns(this,e.children),!a&&this.i18n&&this.i18n.appendElement(e.i18n,t,!0),!x){const t=e.endSourceSpan??e.sourceSpan;a&&this.i18nEnd(t,w),i&&this.creationInstruction(t,Bt.enableBindings),this.creationInstruction(t,u?Bt.elementContainerEnd:Bt.elementEnd)}}visitTemplate(e){const t="ng-template",n=this.allocateDataSlot();this.i18n&&this.i18n.appendTemplate(e.i18n,n);const r=e.tagName?s(e.tagName)[1]:e.tagName,i=`${this.contextName}${e.tagName?"_"+Cr(e.tagName):""}_${n}`,a=`${i}_Template`,o=[Tt(n),vt(a),Tt(r)],l=this.getAttributeExpressions(t,e.attributes,e.inputs,e.outputs,void 0,e.templateAttrs);if(o.push(this.addAttrsToConsts(l)),e.references&&e.references.length){const t=this.prepareRefsArray(e.references);o.push(this.addToConsts(t)),o.push(ft(Bt.templateRefExtractor))}const c=new jl(this.constantPool,this._bindingScope,this.level+1,i,this.i18n,n,a,this._namespace,this.fileBasedI18nSuffix,this.i18nUseExternalIds,this._constants);if(this._nestedTemplateFns.push(()=>{const t=c.buildTemplateFunction(e.children,e.variables,this._ngContentReservedSlots.length+this._ngContentSelectorsOffset,e.i18n);this.constantPool.statements.push(t.toDeclStmt(a)),c._ngContentReservedSlots.length&&this._ngContentReservedSlots.push(...c._ngContentReservedSlots)}),this.creationInstruction(e.sourceSpan,Bt.templateCreate,()=>(o.splice(2,0,Tt(c.getConstCount()),Tt(c.getVarCount())),Mn(o))),this.templatePropertyBindings(n,e.templateAttrs),r===t){const[t,s]=function(e,t){const s=[],n=[];for(const r of e)(t(r)?s:n).push(r);return[s,n]}(e.inputs,un);t.length>0&&this.i18nAttributesInstruction(n,t,e.startSourceSpan??e.sourceSpan),s.length>0&&this.templatePropertyBindings(n,s);for(const t of e.outputs)this.creationInstruction(t.sourceSpan,Bt.listener,this.prepareListenerParameter("ng_template",t,n))}}visitBoundText(e){if(this.i18n){const t=e.value.visit(this._valueConverter);return this.allocateBindingSlots(t),void(t instanceof ci&&(this.i18n.appendBoundText(e.i18n),this.i18nAppendBindings(t.expressions)))}const t=this.allocateDataSlot();this.creationInstruction(e.sourceSpan,Bt.text,[Tt(t)]);const s=e.value.visit(this._valueConverter);this.allocateBindingSlots(s),s instanceof ci?this.updateInstructionWithAdvance(t,e.sourceSpan,function(e){switch($n(e)){case 1:return Bt.textInterpolate;case 3:return Bt.textInterpolate1;case 5:return Bt.textInterpolate2;case 7:return Bt.textInterpolate3;case 9:return Bt.textInterpolate4;case 11:return Bt.textInterpolate5;case 13:return Bt.textInterpolate6;case 15:return Bt.textInterpolate7;case 17:return Bt.textInterpolate8;default:return Bt.textInterpolateV}}(s),()=>this.getUpdateInstructionArguments(s)):k("Text nodes should be interpolated and never bound directly.")}visitText(e){this.i18n||this.creationInstruction(e.sourceSpan,Bt.text,[Tt(this.allocateDataSlot()),Tt(e.value)])}visitIcu(e){let t=!1;this.i18n||(t=!0,this.i18nStart(null,e.i18n,!0));const s=this.i18n,n=this.i18nBindProps(e.vars),r=this.i18nBindProps(e.placeholders),i=e.i18n,a=e=>{const t=fn({...n,...r},!1);return Nn(null,Bt.i18nPostprocess,[e,Uo(t,!0)])};if(cn(s.meta))this.i18nTranslate(i,{},s.ref,a);else{const e=this.i18nTranslate(i,{},void 0,a);s.appendIcu(pn(i).name,e)}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(An(this._ngContentReservedSlots),!0):null}bindingContext(){return""+this._bindingContext++}templatePropertyBindings(e,t){const s=[];for(const n of t){if(!(n instanceof ws))continue;const t=n.value.visit(this._valueConverter);if(void 0!==t)if(this.allocateBindingSlots(t),t instanceof ci){const s=[];this.interpolatedUpdateInstruction(Zl(t),e,n.name,n,t,s)}else s.push({span:n.sourceSpan,paramsOrFn:oc(()=>this.convertPropertyBinding(t),n.name)})}for(const t of s)this.updateInstructionWithAdvance(e,t.span,Bt.property,t.paramsOrFn)}instructionFn(e,t,s,n,r=!1){e[r?"unshift":"push"]({span:t,reference:s,paramsOrFn:n})}processStylingUpdateInstruction(e,t){let s=0;if(t)for(const n of t.calls)s+=n.allocateBindingSlots,this.updateInstructionWithAdvance(e,n.sourceSpan,t.reference,()=>n.params(e=>n.supportsInterpolation&&e instanceof ci?this.getUpdateInstructionArguments(e):this.convertPropertyBinding(e)));return s}creationInstruction(e,t,s,n){this.instructionFn(this._creationCodeFns,e,t,s||[],n)}updateInstructionWithAdvance(e,t,s,n){this.addAdvanceInstructionIfNecessary(e,t),this.updateInstruction(t,s,n)}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,Bt.advance,[Tt(s)]),this._currentIndex=e}}allocatePureFunctionSlots(e){const t=this._pureFunctionSlots;return this._pureFunctionSlots+=e,t}allocateBindingSlots(e){this._bindingSlots+=e instanceof ci?e.expressions.length:1}getImplicitReceiverExpr(){return this._implicitReceiverExpr?this._implicitReceiverExpr:this._implicitReceiverExpr=0===this.level?vt(_n):this._bindingScope.getOrCreateSharedContextVar(0)}convertPropertyBinding(e){const t=Pi(this,this.getImplicitReceiverExpr(),e,this.bindingContext()),s=t.currValExpr;return this._tempVariables.push(...t.stmts),s}getUpdateInstructionArguments(e){const{args:t,stmts:s}=function(e,t,s,n){const r=new Di(e,t,n,!0),i=r.visitInterpolation(s,Dr.Expression);return r.usesImplicitReceiver&&e.notifyImplicitReceiverUse(),{stmts:Ai(r,n),args:i.args}}(this,this.getImplicitReceiverExpr(),e,this.bindingContext());return this._tempVariables.push(...s),t}getAttributeExpressions(e,t,s,n,r,i=[],a=[]){const o=new Set,l=[];let c;for(const s of t)if("ngProjectAs"===s.name&&(c=s),s.i18n){const{i18nVarRefsCache:e}=this._constants;let t;e.has(s.i18n)?t=e.get(s.i18n):(t=this.i18nTranslate(s.i18n),e.set(s.i18n,t)),l.push(Tt(s.name),t)}else l.push(...Ql(s.name),rc(e,s));function u(e,t){"string"==typeof e?o.has(e)||(l.push(...Ql(e)),void 0!==t&&l.push(t),o.add(e)):l.push(Tt(e))}if(c&&l.push(...function(e){const t=T(e.value)[0];return[Tt(5),An(t)]}(c)),r&&r.populateInitialStylingAttrs(l),s.length||n.length){const e=l.length;for(let e=0;e<s.length;e++){const t=s[e];4!==t.type&&1!==t.type&&u(t.name)}for(let e=0;e<n.length;e++){const t=n[e];1!==t.type&&u(t.name)}l.length!==e&&l.splice(e,0,Tt(3))}return i.length&&(l.push(Tt(4)),i.forEach(e=>u(e.name))),a.length&&(l.push(Tt(6)),a.forEach(e=>u(e.name))),l}addToConsts(e){if(Nt(e))return rt;const t=this._constants.constExpressions;for(let s=0;s<t.length;s++)if(t[s].isEquivalent(e))return Tt(s);return Tt(t.push(e)-1)}addAttrsToConsts(e){return e.length>0?this.addToConsts(wt(e)):rt}prepareRefsArray(e){if(!e||0===e.length)return rt;return An(uc(e.map(e=>{const t=this.allocateDataSlot(),s=this._bindingScope.freshReferenceName(),n=this.level,r=vt(s);return this._bindingScope.set(n,e.name,r,0,(e,s)=>{const n=s>0?[Gl(s).toStmt()]:[],i=r.set(ft(Bt.reference).callFn([Tt(t)]));return n.concat(i.toConstDecl())},!0),[e.name,e.value]})))}prepareListenerParameter(e,t,s){return()=>{const n=t.name,r=1===t.type?ss(n,t.phase):Cr(n),i=`${this.templateName}_${e}_${r}_${s}_listener`,a=this._bindingScope.nestedScope(this._bindingScope.bindingLevel,Bl);return Hl(t,i,a)}}}class Wl extends Ei{constructor(e,t,s,n){super(),this.constantPool=e,this.allocateSlot=t,this.allocatePureFunctionSlots=s,this.definePipe=n,this._pipeBindExprs=[]}visitPipe(e,t){const s=this.allocateSlot(),n=`PIPE:${s}`,r=this.allocatePureFunctionSlots(2+e.args.length),i=new Zr(e.span,e.sourceSpan,e.nameSpan,new Yr(e.span,e.sourceSpan),n),{identifier:a,isVarLength:o}=function(e){const t=zl[e.length];return{identifier:t||Bt.pipeBindV,isVarLength:!t}}(e.args);this.definePipe(e.name,n,s,ft(a));const l=[e.exp,...e.args],c=o?this.visitAll([new oi(e.span,e.sourceSpan,l)]):this.visitAll(l),u=new mi(e.span,e.sourceSpan,i,[new ai(e.span,e.sourceSpan,s),new ai(e.span,e.sourceSpan,r),...c],null);return this._pipeBindExprs.push(u),u}updatePipeSlotOffsets(e){this._pipeBindExprs.forEach(t=>{t.args[1].value+=e})}visitLiteralArray(e,t){return new Ui(e.span,e.sourceSpan,this.visitAll(e.expressions),e=>{const t=wt(e);return Yl(this.constantPool,t,this.allocatePureFunctionSlots)})}visitLiteralMap(e,t){return new Ui(e.span,e.sourceSpan,this.visitAll(e.values),t=>{const s=St(t.map((t,s)=>({key:e.keys[s].key,value:t,quoted:e.keys[s].quoted})));return Yl(this.constantPool,s,this.allocatePureFunctionSlots)})}}const zl=[Bt.pipeBind1,Bt.pipeBind2,Bt.pipeBind3,Bt.pipeBind4];const Kl=[Bt.pureFunction0,Bt.pureFunction1,Bt.pureFunction2,Bt.pureFunction3,Bt.pureFunction4,Bt.pureFunction5,Bt.pureFunction6,Bt.pureFunction7,Bt.pureFunction8];function Gl(e){return ft(Bt.nextContext).callFn(e>1?[Tt(e)]:[])}function Yl(e,t,s){const{literalFactory:n,literalFactoryArguments:r}=e.getLiteralFactory(t),i=s(1+r.length),{identifier:a,isVarLength:o}=function(e){const t=Kl[e.length];return{identifier:t||Bt.pureFunctionV,isVarLength:!t}}(r),l=[Tt(i),n];return o?l.push(wt(r)):l.push(...r),ft(a).callFn(l)}function Ql(e){const[t,n]=s(e),r=Tt(n);return t?[Tt(0),Tt(t),r]:[r]}const Xl="$$shared_ctx$$";class Jl{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 e of s)this.set(0,e,vt(e))}static createRootScope(){return new Jl}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,n=0,r,i){if(this.map.has(t)){if(i)return this;k(`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:r,priority:n}),this}getLocal(e){return this.get(e)}notifyImplicitReceiverUse(){0!==this.bindingLevel&&(this.map.get(Xl+0).declare=!0)}nestedScope(e,t){const s=new Jl(e,this,t);return e>0&&s.generateSharedContextVar(0),s}getOrCreateSharedContextVar(e){const t=Xl+e;return this.map.has(t)||this.generateSharedContextVar(e),this.map.get(t).lhs}getSharedContextName(e){const t=this.map.get(Xl+e);return t&&t.declare?t.lhs:null}maybeGenerateSharedContextVar(e){if(1===e.priority&&e.retrievalLevel<this.bindingLevel){const t=this.map.get(Xl+e.retrievalLevel);t?t.declare=!0:this.generateSharedContextVar(e.retrievalLevel)}}generateSharedContextVar(e){const t=vt(_n+this.freshReferenceName());this.map.set(Xl+e,{retrievalLevel:e,lhs:t,declareLocalCallback:(e,s)=>[t.set(Gl(s)).toConstDecl()],declare:!1,priority:2})}getComponentProperty(e){const t=this.map.get(Xl+0);return t.declare=!0,this.maybeRestoreView(),t.lhs.prop(e)}maybeRestoreView(){this.isListenerScope()&&(this.parent.restoreViewVariable||(this.parent.restoreViewVariable=vt(this.parent.freshReferenceName())),this.restoreViewVariable=this.parent.restoreViewVariable)}restoreViewStatement(){if(this.restoreViewVariable){const e=Nn(null,Bt.restoreView,[this.restoreViewVariable]);return this.usesRestoredViewContext?vt(Cn).set(e).toConstDecl():e.toStmt()}return null}viewSnapshotStatements(){return this.restoreViewVariable?[this.restoreViewVariable.set(Nn(null,Bt.getCurrentView,[])).toConstDecl()]:[]}isListenerScope(){return this.parent&&this.parent.bindingLevel===this.bindingLevel}variableDeclarations(){let e=0;return Array.from(this.map.values()).filter(e=>e.declare).sort((e,t)=>t.retrievalLevel-e.retrievalLevel||t.priority-e.priority).reduce((t,s)=>{const n=this.bindingLevel-s.retrievalLevel,r=s.declareLocalCallback(this,n-e);return e=n,t.concat(r)},[])}freshReferenceName(){let e=this;for(;e.parent;)e=e.parent;return"_r"+e.referenceNameIndex++}hasRestoreViewVariable(){return!!this.restoreViewVariable}notifyRestoredViewContextUse(){this.usesRestoredViewContext=!0}}function Zl(e){switch($n(e)){case 1:return Bt.propertyInterpolate;case 3:return Bt.propertyInterpolate1;case 5:return Bt.propertyInterpolate2;case 7:return Bt.propertyInterpolate3;case 9:return Bt.propertyInterpolate4;case 11:return Bt.propertyInterpolate5;case 13:return Bt.propertyInterpolate6;case 15:return Bt.propertyInterpolate7;case 17:return Bt.propertyInterpolate8;default:return Bt.propertyInterpolateV}}function ec(e,t,s={}){const{interpolationConfig:n,preserveWhitespaces:r,enableI18nLegacyMessageIdFormat:i}=s,a=sc(n),o=(new Mo).parse(e,t,{leadingTriviaChars:Vl,...s,tokenizeExpansionForms:!0});if(!s.alwaysAttemptHtmlToR3AstConversion&&o.errors&&o.errors.length>0){const e={interpolationConfig:n,preserveWhitespaces:r,errors:o.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return s.collectCommentNodes&&(e.commentNodes=[]),e}let l=o.rootNodes;const c=new Al(n,!r,i),u=c.visitAllWithErrors(l);if(!s.alwaysAttemptHtmlToR3AstConversion&&u.errors&&u.errors.length>0){const e={interpolationConfig:n,preserveWhitespaces:r,errors:u.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return s.collectCommentNodes&&(e.commentNodes=[]),e}l=u.rootNodes,r||(l=ao(new Fo,l),c.hasI18nMeta&&(l=ao(new Al(n,!1),l)));const{nodes:p,errors:h,styleUrls:d,styles:m,ngContentSelectors:g,commentNodes:v}=function(e,t,s){const n=new cl(t,s),r={nodes:ao(n,e),errors:t.errors.concat(n.errors),styleUrls:n.styleUrls,styles:n.styles,ngContentSelectors:n.ngContentSelectors};return s.collectCommentNodes&&(r.commentNodes=n.commentNodes),r}(l,a,{collectCommentNodes:!!s.collectCommentNodes});h.push(...o.errors,...u.errors);const f={interpolationConfig:n,preserveWhitespaces:r,errors:h.length>0?h:null,nodes:p,styleUrls:d,styles:m,ngContentSelectors:g};return s.collectCommentNodes&&(f.commentNodes=v),f}const tc=new Ko;function sc(e=jn){return new Xo(new Ya(new $a),e,tc,[])}function nc(e,t){switch(e){case _.HTML:return ft(Bt.sanitizeHtml);case _.SCRIPT:return ft(Bt.sanitizeScript);case _.STYLE:return t?ft(Bt.sanitizeStyle):null;case _.URL:return ft(Bt.sanitizeUrl);case _.RESOURCE_URL:return ft(Bt.sanitizeResourceUrl);default:return null}}function rc(e,t){const s=An(t.value);if(!Yo(e,t.name))return s;switch(tc.securityContext(e,t.name,!0)){case _.HTML:return Ct(ft(Bt.trustConstantHtml),new Me([new Re(t.value)],[]),void 0,t.valueSpan);case _.RESOURCE_URL:return Ct(ft(Bt.trustConstantResourceUrl),new Me([new Re(t.value)],[]),void 0,t.valueSpan);default:return s}}function ic(e){return e instanceof fs||e instanceof ys||e instanceof Is}function ac(e){return e.every(ic)}function oc(e,t,s){return()=>{const n=e(),r=Array.isArray(n)?n:[n];return s&&r.push(...s),t&&r.unshift(Tt(t)),r}}const lc="ngI18nClosureMode";function cc(){return xt(vt(lc)).notIdentical(Tt("undefined",me)).and(vt(lc))}function uc(e){return e.reduce((e,t)=>{const s=Array.isArray(t)?uc(t):t;return e.concat(s)},[])}const pc=/attr\.([^\]]+)/,hc="%COMP%",dc=`_nghost-${hc}`,mc=`_ngcontent-${hc}`;function gc(e,t,s){const n=new On,r=T(e.selector);return n.set("type",e.internalType),r.length>0&&n.set("selectors",An(r)),e.queries.length>0&&n.set("contentQueries",function(e,t,s){const n=[],r=[],i=kn(r,En);for(const s of e){n.push(ft(Bt.contentQuery).callFn([vt("dirIndex"),...wc(s,t)]).toStmt());const e=i(),a=ft(Bt.loadQuery).callFn([]),o=ft(Bt.queryRefresh).callFn([e.set(a)]),l=vt(_n).prop(s.propertyName).set(s.first?e.prop("first"):e);r.push(o.and(l).toStmt())}const a=s?`${s}_ContentQueries`:null;return _t([new Ke(bn,de),new Ke(_n,null),new Ke("dirIndex",null)],[Ul(1,n),Ul(2,r)],ue,null,a)}(e.queries,t,e.name)),e.viewQueries.length&&n.set("viewQuery",function(e,t,s){const n=[],r=[],i=kn(r,En);e.forEach(e=>{const s=ft(Bt.viewQuery).callFn(wc(e,t));n.push(s.toStmt());const a=i(),o=ft(Bt.loadQuery).callFn([]),l=ft(Bt.queryRefresh).callFn([a.set(o)]),c=vt(_n).prop(e.propertyName).set(e.first?a.prop("first"):a);r.push(l.and(c).toStmt())});const a=s?`${s}_Query`:null;return _t([new Ke(bn,de),new Ke(_n,null)],[Ul(1,n),Ul(2,r)],ue,null,a)}(e.viewQueries,t,e.name)),n.set("hostBindings",function(e,t,s,n,r,i,a){const o=vt(_n),l=new ka(o),{styleAttr:c,classAttr:u}=e.specialAttributes;void 0!==c&&l.registerStyleAttr(c);void 0!==u&&l.registerClassAttr(u);const p=[],h=[],d=[],m=t,g=s.createDirectiveHostEventAsts(e.listeners,m);g&&g.length&&p.push(...function(e,t){const s=[],n=[],r=[];for(const r of e){let e=r.name&&Cr(r.name);const i=1===r.type?ss(e,r.targetOrPhase):e,a=t&&e?`${t}_${i}_HostBindingHandler`:null,o=Hl(Ss.fromParsedEvent(r),a);1==r.type?n.push(o):s.push(o)}for(const e of n)r.push({reference:Bt.syntheticHostListener,paramsOrFn:e,span:null});for(const e of s)r.push({reference:Bt.listener,paramsOrFn:e,span:null});return r}(g,i));const v=s.createBoundHostProperties(e.properties,m),f=[];let y,x=0;v&&v.forEach(e=>{l.registerInputBasedOnName(e.name,e.expression,m)?x+=Na:(f.push(e),x++)});const w=()=>{if(!y){y=new Wl(n,()=>k("Unexpected node"),e=>{const t=x;return x+=e,t},()=>k("Unexpected pipe"))}return y},S=[],E=[],b=[];for(const e of f){const t=e.expression.visit(w()),n=Tc(o,t),{bindingName:i,instruction:a,isAttribute:l}=Nc(e),c=s.calcPossibleSecurityContexts(r,i,l).filter(e=>e!==_.NONE);let u=null;c.length&&(u=2===c.length&&c.indexOf(_.URL)>-1&&c.indexOf(_.RESOURCE_URL)>-1?ft(Bt.sanitizeUrlOrResourceUrl):nc(c[0],l));const p=[Tt(i),n.currValExpr];u?p.push(u):Ki(i)&&p.push(ft(Bt.validateIframeAttribute)),d.push(...n.stmts),a===Bt.hostProperty?S.push(p):a===Bt.attribute?E.push(p):a===Bt.syntheticHostProperty?b.push(p):h.push({reference:a,paramsOrFn:p,span:null})}for(const e of S)h.push({reference:Bt.hostProperty,paramsOrFn:e,span:null});for(const e of E)h.push({reference:Bt.attribute,paramsOrFn:e,span:null});for(const e of b)h.push({reference:Bt.syntheticHostProperty,paramsOrFn:e,span:null});const C=function(e){const t=[];for(let s of Object.getOwnPropertyNames(e)){const n=e[s];t.push(Tt(s),n)}return t}(e.attributes);l.assignHostAttrs(C,a),l.hasBindings&&l.buildUpdateLevelInstructions(w()).forEach(e=>{for(const t of e.calls)x+=Math.max(t.allocateBindingSlots-Na,0),h.push({reference:e.reference,paramsOrFn:Ic(t,o,Tc),span:null})});x&&a.set("hostVars",Tt(x));if(p.length>0||h.length>0){const e=i?`${i}_HostBindings`:null,t=[];return p.length>0&&t.push(Ul(1,Dn(p))),h.length>0&&t.push(Ul(2,d.concat(Dn(h)))),_t([new Ke(bn,de),new Ke(_n,null)],t,ue,null,e)}return null}(e.host,e.typeSourceSpan,s,t,e.selector||"",e.name,n)),n.set("inputs",Ln(e.inputs,!0)),n.set("outputs",Ln(e.outputs)),null!==e.exportAs&&n.set("exportAs",wt(e.exportAs.map(e=>Tt(e)))),e.isStandalone&&n.set("standalone",Tt(!0)),n}function vc(e,t){const s=[],n=t.providers,r=t.viewProviders;if(n||r){const e=[n||new Ze([])];r&&e.push(r),s.push(ft(Bt.ProvidersFeature).callFn(e))}t.usesInheritance&&s.push(ft(Bt.InheritDefinitionFeature)),t.fullInheritance&&s.push(ft(Bt.CopyDefinitionFeature)),t.lifecycle.usesOnChanges&&s.push(ft(Bt.NgOnChangesFeature)),t.hasOwnProperty("template")&&t.isStandalone&&s.push(ft(Bt.StandaloneFeature)),s.length&&e.set("features",wt(s))}function fc(e,t,s){const n=gc(e,t,s);vc(n,e);return{expression:ft(Bt.defineDirective).callFn([n.toLiteralMap()],void 0,!0),type:Cc(e),statements:[]}}function yc(e,t,s){const n=gc(e,t,s);vc(n,e);const r=e.selector&&d.parse(e.selector),i=r&&r[0];if(i){const e=i.getAttrs();e.length&&n.set("attrs",t.getConstLiteral(wt(e.map(e=>Tt(null!=e?e:void 0))),!0))}const a=e.name,o=a?`${a}_Template`:null,l=e.changeDetection,c=e.template,u=new jl(t,Jl.createRootScope(),0,a,null,null,o,Bt.namespaceHTML,e.relativeContextFilePath,e.i18nUseExternalIds),p=u.buildTemplateFunction(c.nodes,[]),h=u.getNgContentSelectors();h&&n.set("ngContentSelectors",h),n.set("decls",Tt(u.getConstCount())),n.set("vars",Tt(u.getVarCount()));const{constExpressions:m,prepareStatements:g}=u.getConsts();if(m.length>0){let e=wt(m);g.length>0&&(e=_t([],[...g,new ht(e)])),n.set("consts",e)}if(n.set("template",p),e.declarations.length>0&&n.set("dependencies",function(e,t){switch(t){case 0:return e;case 1:return _t([],[new ht(e)]);case 2:const t=e.prop("map").callFn([ft(Bt.resolveForwardRef)]);return _t([],[new ht(t)])}}(wt(e.declarations.map(e=>e.type)),e.declarationListEmitMode)),null===e.encapsulation&&(e.encapsulation=y.Emulated),e.styles&&e.styles.length){const s=e.encapsulation==y.Emulated?function(e,t,s){const n=new Gi;return e.map(e=>n.shimCssText(e,t,s))}(e.styles,mc,dc):e.styles,r=s.reduce((e,s)=>(s.trim().length>0&&e.push(t.getConstLiteral(Tt(s))),e),[]);r.length>0&&n.set("styles",wt(r))}else e.encapsulation===y.Emulated&&(e.encapsulation=y.None);e.encapsulation!==y.Emulated&&n.set("encapsulation",Tt(e.encapsulation)),null!==e.animations&&n.set("data",St([{key:"animation",value:e.animations,quoted:!1}])),null!=l&&l!==x.Default&&n.set("changeDetection",Tt(l));return{expression:ft(Bt.defineComponent).callFn([n.toLiteralMap()],void 0,!0),type:xc(e),statements:[]}}function xc(e){const t=bc(e);return t.push(_c(e.template.ngContentSelectors)),t.push(yt(Tt(e.isStandalone))),yt(ft(Bt.ComponentDeclaration,t))}function wc(e,t){const s=[Rn(e,t),Tt(Sc(e))];return e.read&&s.push(e.read),s}function Sc(e){return(e.descendants?1:0)|(e.static?2:0)|(e.emitDistinctChangesOnly?4:0)}function Ec(e){return yt(St(Object.keys(e).map(t=>({key:t,value:Tt(Array.isArray(e[t])?e[t][0]:e[t]),quoted:!0}))))}function _c(e){return e.length>0?yt(wt(e.map(e=>Tt(e)))):ve}function bc(e){const t=null!==e.selector?e.selector.replace(/\n/g,""):null;return[Jt(e.type.type,e.typeArgumentCount),null!==t?(s=t,yt(Tt(s))):ve,null!==e.exportAs?_c(e.exportAs):ve,Ec(e.inputs),Ec(e.outputs),_c(e.queries.map(e=>e.propertyName))];var s}function Cc(e){const t=bc(e);return t.push(ve),t.push(yt(Tt(e.isStandalone))),yt(ft(Bt.DirectiveDeclaration,t))}function Tc(e,t){return Pi(null,e,t,"b")}function Ic(e,t,s){return e.params(e=>s(t,e).currValExpr)}function Nc(e){let t,s=e.name;const n=s.match(pc);return n?(s=n[1],t=Bt.attribute):e.isAnimation?(s=es(s),t=Bt.syntheticHostProperty):t=Bt.hostProperty,{bindingName:s,instruction:t,isAttribute:!!n}}const kc=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function Pc(e){const t={},s={},n={},r={};for(const i of Object.keys(e)){const a=e[i],o=i.match(kc);if(null===o)switch(i){case"class":if("string"!=typeof a)throw new Error("Class binding must be string");r.classAttr=a;break;case"style":if("string"!=typeof a)throw new Error("Style binding must be string");r.styleAttr=a;break;default:t[i]="string"==typeof a?Tt(a):a}else if(null!=o[1]){if("string"!=typeof a)throw new Error("Property binding must be string");n[o[1]]=a}else if(null!=o[2]){if("string"!=typeof a)throw new Error("Event binding must be string");s[o[2]]=a}}return{attributes:t,listeners:s,properties:n,specialAttributes:r}}function Ac(e,t){const s=sc();return s.createDirectiveHostEventAsts(e.listeners,t),s.createBoundHostProperties(e.properties,t),s.errors}class Lc{}e("ResourceLoader",Lc);class Mc{constructor(e=new kr){this.jitEvaluator=e,this.FactoryTarget=ps,this.ResourceLoader=Lc,this.elementSchemaRegistry=new Ko}compilePipe(e,t,s){const n=Ur({name:s.name,type:is(s.type),internalType:new Ce(s.type),typeArgumentCount:0,deps:null,pipeName:s.pipeName,pure:s.pure,isStandalone:s.isStandalone});return this.jitExpression(n.expression,e,t,[])}compilePipeDeclaration(e,t,s){const n=function(e){return{name:e.type.name,type:is(e.type),internalType:new Ce(e.type),typeArgumentCount:0,pipeName:e.name,deps:null,pure:e.pure??!0,isStandalone:e.isStandalone??!1}}(s),r=Ur(n);return this.jitExpression(r.expression,e,t,[])}compileInjectable(e,t,s){const{expression:n,statements:r}=qn({name:s.name,type:is(s.type),internalType:new Ce(s.type),typeArgumentCount:s.typeArgumentCount,providedIn:Kc(s.providedIn),useClass:Wc(s,"useClass"),useFactory:zc(s,"useFactory"),useValue:Wc(s,"useValue"),useExisting:Wc(s,"useExisting"),deps:s.deps?.map(Gc)},!0);return this.jitExpression(n,e,t,r)}compileInjectableDeclaration(e,t,s){const{expression:n,statements:r}=qn({name:s.type.name,type:is(s.type),internalType:new Ce(s.type),typeArgumentCount:0,providedIn:Kc(s.providedIn),useClass:Wc(s,"useClass"),useFactory:zc(s,"useFactory"),useValue:Wc(s,"useValue"),useExisting:Wc(s,"useExisting"),deps:s.deps?.map(Yc)},!0);return this.jitExpression(n,e,t,r)}compileInjector(e,t,s){const n=Ar({name:s.name,type:is(s.type),internalType:new Ce(s.type),providers:s.providers&&s.providers.length>0?new Ce(s.providers):null,imports:s.imports.map(e=>new Ce(e))});return this.jitExpression(n.expression,e,t,[])}compileInjectorDeclaration(e,t,s){const n=function(e){return{name:e.type.name,type:is(e.type),internalType:new Ce(e.type),providers:void 0!==e.providers&&e.providers.length>0?new Ce(e.providers):null,imports:void 0!==e.imports?e.imports.map(e=>new Ce(e)):[]}}(s),r=Ar(n);return this.jitExpression(r.expression,e,t,[])}compileNgModule(e,t,s){const n=qr({type:is(s.type),internalType:new Ce(s.type),adjacentType:new Ce(s.type),bootstrap:s.bootstrap.map(is),declarations:s.declarations.map(is),publicDeclarationTypes:null,imports:s.imports.map(is),includeImportTypes:!0,exports:s.exports.map(is),selectorScopeMode:Rr.Inline,containsForwardDecls:!1,schemas:s.schemas?s.schemas.map(is):null,id:s.id?new Ce(s.id):null});return this.jitExpression(n.expression,e,t,[])}compileNgModuleDeclaration(e,t,s){const n=function(e){const t=new On;return t.set("type",new Ce(e.type)),void 0!==e.bootstrap&&t.set("bootstrap",new Ce(e.bootstrap)),void 0!==e.declarations&&t.set("declarations",new Ce(e.declarations)),void 0!==e.imports&&t.set("imports",new Ce(e.imports)),void 0!==e.exports&&t.set("exports",new Ce(e.exports)),void 0!==e.schemas&&t.set("schemas",new Ce(e.schemas)),void 0!==e.id&&t.set("id",new Ce(e.id)),ft(Bt.defineNgModule).callFn([t.toLiteralMap()])}(s);return this.jitExpression(n,e,t,[])}compileDirective(e,t,s){const n=Dc(s);return this.compileDirectiveFromMeta(e,t,n)}compileDirectiveDeclaration(e,t,s){const n=qc(s,this.createParseSourceSpan("Directive",s.type.name,t));return this.compileDirectiveFromMeta(e,t,n)}compileDirectiveFromMeta(e,t,s){const n=new Mt,r=fc(s,n,sc());return this.jitExpression(r.expression,e,t,n.statements)}compileComponent(e,t,s){const{template:n,interpolation:r}=jc(s.template,s.name,t,s.preserveWhitespaces,s.interpolation),i={...s,...Dc(s),selector:s.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:n,declarations:s.declarations.map(Vc),declarationListEmitMode:0,styles:[...s.styles,...n.styles],encapsulation:s.encapsulation,interpolation:r,changeDetection:s.changeDetection,animations:null!=s.animations?new Ce(s.animations):null,viewProviders:null!=s.viewProviders?new Ce(s.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0},a=`ng:///${s.name}.js`;return this.compileComponentFromMeta(e,a,i)}compileComponentDeclaration(e,t,s){const n=function(e,t,s){const{template:n,interpolation:r}=jc(e.template,e.type.name,s,e.preserveWhitespaces??!1,e.interpolation),i=[];if(e.dependencies)for(const t of e.dependencies)switch(t.kind){case"directive":case"component":i.push(Uc(t));break;case"pipe":i.push(Hc(t))}else(e.components||e.directives||e.pipes)&&(e.components&&i.push(...e.components.map(e=>Uc(e,!0))),e.directives&&i.push(...e.directives.map(e=>Uc(e))),e.pipes&&i.push(...function(e){if(!e)return[];return Object.keys(e).map(t=>({kind:Or.Pipe,name:t,type:new Ce(e[t])}))}(e.pipes)));return{...qc(e,t),template:n,styles:e.styles??[],declarations:i,viewProviders:void 0!==e.viewProviders?new Ce(e.viewProviders):null,animations:void 0!==e.animations?new Ce(e.animations):null,changeDetection:e.changeDetection??x.Default,encapsulation:e.encapsulation??y.Emulated,interpolation:r,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0}}(s,this.createParseSourceSpan("Component",s.type.name,t),t);return this.compileComponentFromMeta(e,t,n)}compileComponentFromMeta(e,t,s){const n=new Mt,r=yc(s,n,sc(s.interpolation));return this.jitExpression(r.expression,e,t,n.statements)}compileFactory(e,t,s){const n=hs({name:s.name,type:is(s.type),internalType:new Ce(s.type),typeArgumentCount:s.typeArgumentCount,deps:(r=s.deps,null==r?null:r.map(Gc)),target:s.target});var r;return this.jitExpression(n.expression,e,t,n.statements)}compileFactoryDeclaration(e,t,s){const n=hs({name:s.type.name,type:is(s.type),internalType:new Ce(s.type),typeArgumentCount:0,deps:Array.isArray(s.deps)?s.deps.map(Yc):s.deps,target:s.target});return this.jitExpression(n.expression,e,t,n.statements)}createParseSourceSpan(e,t,s){return Er(e,t,s)}jitExpression(e,t,s,n){const r=[...n,new ct("$def",e,void 0,it.Exported)];return this.jitEvaluator.evaluateStatements(s,r,new Mr(t),!0).$def}}function Rc(e){return{...e,predicate:$c(e.predicate),read:e.read?new Ce(e.read):null,static:e.static,emitDistinctChangesOnly:e.emitDistinctChangesOnly}}function Oc(e){return{propertyName:e.propertyName,first:e.first??!1,predicate:$c(e.predicate),descendants:e.descendants??!1,read:e.read?new Ce(e.read):null,static:e.static??!1,emitDistinctChangesOnly:e.emitDistinctChangesOnly??!0}}function $c(e){return Array.isArray(e)?e:os(new Ce(e),1)}function Dc(e){const t=eu(e.inputs||[]),s=eu(e.outputs||[]),n=e.propMetadata,r={},i={};for(const e in n)n.hasOwnProperty(e)&&n[e].forEach(t=>{"Input"===t.ngMetadataName?r[e]=t.bindingPropertyName?[t.bindingPropertyName,e]:e:Zc(t)&&(i[e]=t.bindingPropertyName||e)});return{...e,typeArgumentCount:0,typeSourceSpan:e.typeSourceSpan,type:is(e.type),internalType:new Ce(e.type),deps:null,host:Xc(e.propMetadata,e.typeSourceSpan,e.host),inputs:{...t,...r},outputs:{...s,...i},queries:e.queries.map(Rc),providers:null!=e.providers?new Ce(e.providers):null,viewQueries:e.viewQueries.map(Rc),fullInheritance:!1}}function qc(e,t){return{name:e.type.name,type:is(e.type),typeSourceSpan:t,internalType:new Ce(e.type),selector:e.selector??null,inputs:e.inputs??{},outputs:e.outputs??{},host:Bc(e.host),queries:(e.queries??[]).map(Oc),viewQueries:(e.viewQueries??[]).map(Oc),providers:void 0!==e.providers?new Ce(e.providers):null,exportAs:e.exportAs??null,usesInheritance:e.usesInheritance??!1,lifecycle:{usesOnChanges:e.usesOnChanges??!1},deps:null,typeArgumentCount:0,fullInheritance:!1,isStandalone:e.isStandalone??!1}}function Bc(e={}){return{attributes:Fc(e.attributes??{}),listeners:e.listeners??{},properties:e.properties??{},specialAttributes:{classAttr:e.classAttribute,styleAttr:e.styleAttribute}}}function Fc(e){const t={};for(const s of Object.keys(e))t[s]=new Ce(e[s]);return t}function Vc(e){return{...e,type:new Ce(e.type)}}function Uc(e,t=null){return{kind:Or.Directive,isComponent:t||"component"===e.kind,selector:e.selector,type:new Ce(e.type),inputs:e.inputs??[],outputs:e.outputs??[],exportAs:e.exportAs??null}}function Hc(e){return{kind:Or.Pipe,name:e.name,type:new Ce(e.type)}}function jc(e,t,s,n,r){const i=r?Hn.fromArray(r):jn,a=ec(e,s,{preserveWhitespaces:n,interpolationConfig:i});if(null!==a.errors){const e=a.errors.map(e=>e.toString()).join(", ");throw new Error(`Errors during JIT compilation of template for ${t}: ${e}`)}return{template:a,interpolation:i}}function Wc(e,t){return e.hasOwnProperty(t)?os(new Ce(e[t]),0):void 0}function zc(e,t){return e.hasOwnProperty(t)?new Ce(e[t]):void 0}function Kc(e){return os("function"==typeof e?new Ce(e):new Le(e??null),0)}function Gc(e){const t=null!=e.attribute,s=null===e.token?null:new Ce(e.token);return Qc(t?new Ce(e.attribute):s,t,e.host,e.optional,e.self,e.skipSelf)}function Yc(e){const t=e.attribute??!1;return Qc(null===e.token?null:new Ce(e.token),t,e.host??!1,e.optional??!1,e.self??!1,e.skipSelf??!1)}function Qc(e,t,s,n,r,i){return{token:e,attributeNameType:t?Tt("unknown"):null,host:s,optional:n,self:r,skipSelf:i}}function Xc(e,t,s){const n=Pc(s||{}),r=Ac(n,t);if(r.length)throw new Error(r.map(e=>e.msg).join("\n"));for(const t in e)e.hasOwnProperty(t)&&e[t].forEach(e=>{"HostBinding"===e.ngMetadataName?n.properties[e.hostPropertyName||t]=ts("this",t):Jc(e)&&(n.listeners[e.eventName||t]=`${t}(${(e.args||[]).join(",")})`)});return n}function Jc(e){return"HostListener"===e.ngMetadataName}function Zc(e){return"Output"===e.ngMetadataName}function eu(e){return e.reduce((e,t)=>{const[s,n]=t.split(":",2).map(e=>e.trim());return e[s]=n||s,e},{})}function tu(e){(e.ng||(e.ng={})).\u0275compilerFacade=new Mc}e("VERSION",new L("14.2.12"));function su(e,t=!1){return null===e?t:e}e("CompilerConfig",class{constructor({defaultEncapsulation:e=y.Emulated,useJit:t=!0,jitDevMode:s=!1,missingTranslation:n=null,preserveWhitespaces:r,strictInjectionParameters:i}={}){var a;this.defaultEncapsulation=e,this.useJit=!!t,this.jitDevMode=!!s,this.missingTranslation=n,this.preserveWhitespaces=su(void 0===(a=r)?null:a),this.strictInjectionParameters=!0===i}});const nu="i18n",ru="i18n-",iu=/^i18n:?/;let au=!1;class ou{constructor(e,t){this.messages=e,this.errors=t}}var lu;!function(e){e[e.Extract=0]="Extract",e[e.Merge=1]="Merge"}(lu||(lu={}));class cu{constructor(e,t){this._implicitTags=e,this._implicitAttrs=t}extract(e,t){return this._init(lu.Extract,t),e.forEach(e=>e.visit(this,null)),this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new ou(this._messages,this._errors)}merge(e,t,s){this._init(lu.Merge,s),this._translations=t;const n=new ro("wrapper",[],e,void 0,void 0,void 0).visit(this,null);return this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new No(n.children,this._errors)}visitExpansionCase(e,t){const s=ao(this,e.expression,t);if(this._mode===lu.Merge)return new so(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 n=ao(this,e.cases,t);return this._mode===lu.Merge&&(e=new to(e.switchValue,e.type,n,e.sourceSpan,e.switchValueSourceSpan)),this._inIcu=s,e}visitComment(e,t){const s=!!((n=e)instanceof io&&n.value&&n.value.startsWith("i18n"));var n;if(s&&this._isInTranslatableSection)return void this._reportError(e,"Could not start a block inside a translatable section");const r=function(e){return!!(e instanceof io&&e.value&&"/i18n"===e.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 t=this._addMessage(this._blockChildren,this._blockMeaningAndDesc);return ao(this,this._translateMessage(e,t))}return void this._reportError(e,"I18N blocks should not cross element boundaries")}}else if(s){if(!au&&console&&console.warn){au=!0;const t=e.sourceSpan.details?`, ${e.sourceSpan.details}`:"";console.warn(`I18n comments are deprecated, use an <ng-container> element instead (${e.sourceSpan.start}${t})`)}this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=e.value.replace(iu,"").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,n=this._inImplicitNode;let r,i=[];const a=e.attrs.find(e=>e.name===nu)||null;const o=a?a.value:"",l=this._implicitTags.some(t=>e.name===t)&&!this._inIcu&&!this._isInTranslatableSection,c=!n&&l;if(this._inImplicitNode=n||l,this._isInTranslatableSection||this._inIcu)(a||c)&&this._reportError(e,"Could not mark an element as translatable inside a translatable section"),this._mode==lu.Extract&&ao(this,e.children);else{if(a||c){this._inI18nNode=!0;const t=this._addMessage(e.children,o);r=this._translateMessage(e,t)}if(this._mode==lu.Extract){const t=a||c;t&&this._openTranslatableSection(e),ao(this,e.children),t&&this._closeTranslatableSection(e,e.children)}}if(this._mode===lu.Merge){(r||e.children).forEach(e=>{const s=e.visit(this,t);s&&!this._isInTranslatableSection&&(i=i.concat(s))})}if(this._visitAttributesOf(e),this._depth--,this._inI18nNode=s,this._inImplicitNode=n,this._mode===lu.Merge){const t=this._translateAttributes(e);return new ro(e.name,t,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=bl(t)}_visitAttributesOf(e){const t={},s=this._implicitAttrs[e.name]||[];e.attrs.filter(e=>e.name.startsWith(ru)).forEach(e=>t[e.name.slice(5)]=e.value),e.attrs.forEach(e=>{e.name in t?this._addMessage([e],t[e.name]):s.some(t=>e.name===t)&&this._addMessage([e])})}_addMessage(e,t){if(0==e.length||1==e.length&&e[0]instanceof no&&!e[0].value)return null;const{meaning:s,description:n,id:r}=uu(t),i=this._createI18nMessage(e,s,n,r);return this._messages.push(i),i}_translateMessage(e,t){if(t&&this._mode===lu.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(e=>{e.name.startsWith(ru)&&(s[e.name.slice(5)]=uu(e.value))});const n=[];return t.forEach(t=>{if(t.name!==nu&&!t.name.startsWith(ru))if(t.value&&""!=t.value&&s.hasOwnProperty(t.name)){const{meaning:r,description:i,id:a}=s[t.name],o=this._createI18nMessage([t],r,i,a),l=this._translations.get(o);if(l)if(0==l.length)n.push(new no(t.name,"",t.sourceSpan,void 0,void 0,void 0,void 0));else if(l[0]instanceof eo){const e=l[0].value;n.push(new no(t.name,e,t.sourceSpan,void 0,void 0,void 0,void 0))}else this._reportError(e,`Unexpected translation for attribute "${t.name}" (id="${a||this._translations.digest(o)}")`);else this._reportError(e,`Translation unavailable for attribute "${t.name}" (id="${a||this._translations.digest(o)}")`)}else n.push(t)}),n}_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,n=t.reduce((e,t)=>e+(t instanceof io?0:1),0);if(1==n)for(let e=this._messages.length-1;e>=s;e--){const t=this._messages[e].nodes;if(!(1==t.length&&t[0]instanceof Ps)){this._messages.splice(e,1);break}}this._msgCountAtSectionStart=void 0}_reportError(e,t){this._errors.push(new kl(e.sourceSpan,t))}}function uu(e){if(!e)return{meaning:"",description:"",id:""};const t=e.indexOf("@@"),s=e.indexOf("|"),[n,r]=t>-1?[e.slice(0,t),e.slice(t+2)]:[e,""],[i,a]=s>-1?[n.slice(0,s),n.slice(s+1)]:["",n];return{meaning:i,description:a,id:r.trim()}}const pu=new class{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 t.PARSABLE_DATA}};function hu(e){return pu}class du extends ko{constructor(){super(hu)}parse(e,t,s){return super.parse(e,t,s)}}e("XmlParser",du);const mu="x",gu="source",vu="trans-unit",fu="context";class yu extends Bs{write(e,t){const s=new xu,n=[];e.forEach(e=>{let t=[];e.sources.forEach(e=>{let s=new Ws("context-group",{purpose:"location"});s.children.push(new Ks(10),new Ws(fu,{"context-type":"sourcefile"},[new zs(e.filePath)]),new Ks(10),new Ws(fu,{"context-type":"linenumber"},[new zs(`${e.startLine}`)]),new Ks(8)),t.push(new Ks(8),s)});const r=new Ws(vu,{id:e.id,datatype:"html"});r.children.push(new Ks(8),new Ws(gu,{},s.serialize(e.nodes)),...t),e.description&&r.children.push(new Ks(8),new Ws("note",{priority:"1",from:"description"},[new zs(e.description)])),e.meaning&&r.children.push(new Ks(8),new Ws("note",{priority:"1",from:"meaning"},[new zs(e.meaning)])),r.children.push(new Ks(6)),n.push(new Ks(6),r)});const r=new Ws("body",{},[...n,new Ks(4)]),i=new Ws("file",{"source-language":t||"en",datatype:"plaintext",original:"ng2.template"},[new Ks(4),r,new Ks(2)]),a=new Ws("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new Ks(2),i,new Ks]);return Us([new Hs({version:"1.0",encoding:"UTF-8"}),new Ks,a,new Ks])}load(e,t){const s=new wu,{locale:n,msgIdToHtml:r,errors:i}=s.parse(e,t),a={},o=new Su;if(Object.keys(r).forEach(e=>{const{i18nNodes:s,errors:n}=o.convert(r[e],t);i.push(...n),a[e]=s}),i.length)throw new Error(`xliff parse errors:\n${i.join("\n")}`);return{locale:n,i18nNodesByMsgId:a}}digest(e){return $(e)}}e("Xliff",yu);class xu{visitText(e,t){return[new zs(e.value)]}visitContainer(e,t){const s=[];return e.children.forEach(e=>s.push(...e.visit(this))),s}visitIcu(e,t){const s=[new zs(`{${e.expressionPlaceholder}, ${e.type}, `)];return Object.keys(e.cases).forEach(t=>{s.push(new zs(`${t} {`),...e.cases[t].visit(this),new zs("} "))}),s.push(new zs("}")),s}visitTagPlaceholder(e,t){const s=function(e){switch(e.toLowerCase()){case"br":return"lb";case"img":return"image";default:return`x-${e}`}}(e.tag);if(e.isVoid)return[new Ws(mu,{id:e.startName,ctype:s,"equiv-text":`<${e.tag}/>`})];const n=new Ws(mu,{id:e.startName,ctype:s,"equiv-text":`<${e.tag}>`}),r=new Ws(mu,{id:e.closeName,ctype:s,"equiv-text":`</${e.tag}>`});return[n,...this.serialize(e.children),r]}visitPlaceholder(e,t){return[new Ws(mu,{id:e.name,"equiv-text":`{{${e.value}}}`})]}visitIcuPlaceholder(e,t){const s=`{${e.value.expression}, ${e.value.type}, ${Object.keys(e.value.cases).map(e=>e+" {...}").join(" ")}}`;return[new Ws(mu,{id:e.name,"equiv-text":s})]}serialize(e){return[].concat(...e.map(e=>e.visit(this)))}}class wu{constructor(){this._locale=null}parse(e,t){this._unitMlString=null,this._msgIdToHtml={};const s=(new du).parse(e,t);return this._errors=s.errors,ao(this,s.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}}visitElement(e,t){switch(e.name){case vu:this._unitMlString=null;const t=e.attrs.find(e=>"id"===e.name);if(t){const s=t.value;this._msgIdToHtml.hasOwnProperty(s)?this._addError(e,`Duplicated translations for msg ${s}`):(ao(this,e.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[s]=this._unitMlString:this._addError(e,`Message ${s} misses a translation`))}else this._addError(e,`<${vu}> misses the "id" attribute`);break;case gu:case"seg-source":case"alt-trans":break;case"target":const s=e.startSourceSpan.end.offset,n=e.endSourceSpan.start.offset,r=e.startSourceSpan.start.file.content.slice(s,n);this._unitMlString=r;break;case"file":const i=e.attrs.find(e=>"target-language"===e.name);i&&(this._locale=i.value),ao(this,e.children,null);break;default:ao(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 kl(e.sourceSpan,t))}}class Su{convert(e,t){const s=(new du).parse(e,t,{tokenizeExpansionForms:!0});this._errors=s.errors;return{i18nNodes:this._errors.length>0||0==s.rootNodes.length?[]:[].concat(...ao(this,s.rootNodes)),errors:this._errors}}visitText(e,t){return new Ps(e.value,e.sourceSpan)}visitElement(e,t){if(e.name===mu){const t=e.attrs.find(e=>"id"===e.name);return t?new Rs("",t.value,e.sourceSpan):(this._addError(e,`<${mu}> misses the "id" attribute`),null)}return"mrk"===e.name?[].concat(...ao(this,e.children)):(this._addError(e,"Unexpected tag"),null)}visitExpansion(e,t){const s={};return ao(this,e.cases).forEach(t=>{s[t.value]=new As(t.nodes,e.sourceSpan)}),new Ls(e.switchValue,e.type,s,e.sourceSpan)}visitExpansionCase(e,t){return{value:e.value,nodes:ao(this,e.expression)}}visitComment(e,t){}visitAttribute(e,t){}_addError(e,t){this._errors.push(new kl(e.sourceSpan,t))}}const Eu="ph",_u="xliff",bu="source",Cu="unit";class Tu extends Bs{write(e,t){const s=new Iu,n=[];e.forEach(e=>{const t=new Ws(Cu,{id:e.id}),r=new Ws("notes");(e.description||e.meaning)&&(e.description&&r.children.push(new Ks(8),new Ws("note",{category:"description"},[new zs(e.description)])),e.meaning&&r.children.push(new Ks(8),new Ws("note",{category:"meaning"},[new zs(e.meaning)]))),e.sources.forEach(e=>{r.children.push(new Ks(8),new Ws("note",{category:"location"},[new zs(`${e.filePath}:${e.startLine}${e.endLine!==e.startLine?","+e.endLine:""}`)]))}),r.children.push(new Ks(6)),t.children.push(new Ks(6),r);const i=new Ws("segment");i.children.push(new Ks(8),new Ws(bu,{},s.serialize(e.nodes)),new Ks(6)),t.children.push(new Ks(6),i,new Ks(4)),n.push(new Ks(4),t)});const r=new Ws("file",{original:"ng.template",id:"ngi18n"},[...n,new Ks(2)]),i=new Ws(_u,{version:"2.0",xmlns:"urn:oasis:names:tc:xliff:document:2.0",srcLang:t||"en"},[new Ks(2),r,new Ks]);return Us([new Hs({version:"1.0",encoding:"UTF-8"}),new Ks,i,new Ks])}load(e,t){const s=new Nu,{locale:n,msgIdToHtml:r,errors:i}=s.parse(e,t),a={},o=new ku;if(Object.keys(r).forEach(e=>{const{i18nNodes:s,errors:n}=o.convert(r[e],t);i.push(...n),a[e]=s}),i.length)throw new Error(`xliff2 parse errors:\n${i.join("\n")}`);return{locale:n,i18nNodesByMsgId:a}}digest(e){return q(e)}}e("Xliff2",Tu);class Iu{visitText(e,t){return[new zs(e.value)]}visitContainer(e,t){const s=[];return e.children.forEach(e=>s.push(...e.visit(this))),s}visitIcu(e,t){const s=[new zs(`{${e.expressionPlaceholder}, ${e.type}, `)];return Object.keys(e.cases).forEach(t=>{s.push(new zs(`${t} {`),...e.cases[t].visit(this),new zs("} "))}),s.push(new zs("}")),s}visitTagPlaceholder(e,t){const s=function(e){switch(e.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 Ws(Eu,{id:(this._nextPlaceholderId++).toString(),equiv:e.startName,type:s,disp:`<${e.tag}/>`})]}const n=new Ws("pc",{id:(this._nextPlaceholderId++).toString(),equivStart:e.startName,equivEnd:e.closeName,type:s,dispStart:`<${e.tag}>`,dispEnd:`</${e.tag}>`}),r=[].concat(...e.children.map(e=>e.visit(this)));return r.length?r.forEach(e=>n.children.push(e)):n.children.push(new zs("")),[n]}visitPlaceholder(e,t){const s=(this._nextPlaceholderId++).toString();return[new Ws(Eu,{id:s,equiv:e.name,disp:`{{${e.value}}}`})]}visitIcuPlaceholder(e,t){const s=Object.keys(e.value.cases).map(e=>e+" {...}").join(" "),n=(this._nextPlaceholderId++).toString();return[new Ws(Eu,{id:n,equiv:e.name,disp:`{${e.value.expression}, ${e.value.type}, ${s}}`})]}serialize(e){return this._nextPlaceholderId=0,[].concat(...e.map(e=>e.visit(this)))}}class Nu{constructor(){this._locale=null}parse(e,t){this._unitMlString=null,this._msgIdToHtml={};const s=(new du).parse(e,t);return this._errors=s.errors,ao(this,s.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}}visitElement(e,t){switch(e.name){case Cu:this._unitMlString=null;const t=e.attrs.find(e=>"id"===e.name);if(t){const s=t.value;this._msgIdToHtml.hasOwnProperty(s)?this._addError(e,`Duplicated translations for msg ${s}`):(ao(this,e.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[s]=this._unitMlString:this._addError(e,`Message ${s} misses a translation`))}else this._addError(e,`<${Cu}> misses the "id" attribute`);break;case bu:break;case"target":const s=e.startSourceSpan.end.offset,n=e.endSourceSpan.start.offset,r=e.startSourceSpan.start.file.content.slice(s,n);this._unitMlString=r;break;case _u:const i=e.attrs.find(e=>"trgLang"===e.name);i&&(this._locale=i.value);const a=e.attrs.find(e=>"version"===e.name);if(a){const t=a.value;"2.0"!==t?this._addError(e,`The XLIFF file version ${t} is not compatible with XLIFF 2.0 serializer`):ao(this,e.children,null)}break;default:ao(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 kl(e.sourceSpan,t))}}class ku{convert(e,t){const s=(new du).parse(e,t,{tokenizeExpansionForms:!0});this._errors=s.errors;return{i18nNodes:this._errors.length>0||0==s.rootNodes.length?[]:[].concat(...ao(this,s.rootNodes)),errors:this._errors}}visitText(e,t){return new Ps(e.value,e.sourceSpan)}visitElement(e,t){switch(e.name){case Eu:const t=e.attrs.find(e=>"equiv"===e.name);if(t)return[new Rs("",t.value,e.sourceSpan)];this._addError(e,`<${Eu}> misses the "equiv" attribute`);break;case"pc":const s=e.attrs.find(e=>"equivStart"===e.name),n=e.attrs.find(e=>"equivEnd"===e.name);if(s){if(n){const t=s.value,r=n.value;return[].concat(new Rs("",t,e.sourceSpan),...e.children.map(e=>e.visit(this,null)),new Rs("",r,e.sourceSpan))}this._addError(e,`<${Eu}> misses the "equivEnd" attribute`)}else this._addError(e,`<${Eu}> misses the "equivStart" attribute`);break;case"mrk":return[].concat(...ao(this,e.children));default:this._addError(e,"Unexpected tag")}return null}visitExpansion(e,t){const s={};return ao(this,e.cases).forEach(t=>{s[t.value]=new As(t.nodes,e.sourceSpan)}),new Ls(e.switchValue,e.type,s,e.sourceSpan)}visitExpansionCase(e,t){return{value:e.value,nodes:[].concat(...ao(this,e.expression))}}visitComment(e,t){}visitAttribute(e,t){}_addError(e,t){this._errors.push(new kl(e.sourceSpan,t))}}const Pu="translationbundle",Au="translation";class Lu extends Bs{write(e,t){throw new Error("Unsupported")}load(e,t){const s=new Mu,{locale:n,msgIdToHtml:r,errors:i}=s.parse(e,t),a={},o=new Ru;if(Object.keys(r).forEach(e=>{!function(e,t,s){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){const n=s();return Object.defineProperty(e,t,{enumerable:!0,value:n}),n},set:e=>{throw new Error("Could not overwrite an XTB translation")}})}(a,e,function(){const{i18nNodes:s,errors:n}=o.convert(r[e],t);if(n.length)throw new Error(`xtb parse errors:\n${n.join("\n")}`);return s})}),i.length)throw new Error(`xtb parse errors:\n${i.join("\n")}`);return{locale:n,i18nNodesByMsgId:a}}digest(e){return tn(e)}createNameMapper(e){return new Fs(e,nn)}}e("Xtb",Lu);class Mu{constructor(){this._locale=null}parse(e,t){this._bundleDepth=0,this._msgIdToHtml={};const s=(new du).parse(e,t);return this._errors=s.errors,ao(this,s.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}}visitElement(e,t){switch(e.name){case Pu:this._bundleDepth++,this._bundleDepth>1&&this._addError(e,`<${Pu}> elements can not be nested`);const t=e.attrs.find(e=>"lang"===e.name);t&&(this._locale=t.value),ao(this,e.children,null),this._bundleDepth--;break;case Au:const s=e.attrs.find(e=>"id"===e.name);if(s){const t=s.value;if(this._msgIdToHtml.hasOwnProperty(t))this._addError(e,`Duplicated translations for msg ${t}`);else{const s=e.startSourceSpan.end.offset,n=e.endSourceSpan.start.offset,r=e.startSourceSpan.start.file.content.slice(s,n);this._msgIdToHtml[t]=r}}else this._addError(e,`<${Au}> 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 kl(e.sourceSpan,t))}}class Ru{convert(e,t){const s=(new du).parse(e,t,{tokenizeExpansionForms:!0});this._errors=s.errors;return{i18nNodes:this._errors.length>0||0==s.rootNodes.length?[]:ao(this,s.rootNodes),errors:this._errors}}visitText(e,t){return new Ps(e.value,e.sourceSpan)}visitExpansion(e,t){const s={};return ao(this,e.cases).forEach(t=>{s[t.value]=new As(t.nodes,e.sourceSpan)}),new Ls(e.switchValue,e.type,s,e.sourceSpan)}visitExpansionCase(e,t){return{value:e.value,nodes:ao(this,e.expression)}}visitElement(e,t){if("ph"===e.name){const t=e.attrs.find(e=>"name"===e.name);if(t)return new Rs("",t.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 kl(e.sourceSpan,t))}}class Ou{constructor(e={},t,s,n,r=b.Warning,i){this._i18nNodesByMsgId=e,this.digest=s,this.mapperFactory=n,this._i18nToHtml=new $u(e,t,s,n,r,i)}static load(e,t,s,n,r){const{locale:i,i18nNodesByMsgId:a}=s.load(e,t);return new Ou(a,i,e=>s.digest(e),e=>s.createNameMapper(e),n,r)}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 $u{constructor(e={},t,s,n,r,i){this._i18nNodesByMsgId=e,this._locale=t,this._digest=s,this._mapperFactory=n,this._missingTranslationStrategy=r,this._console=i,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,n=(new Mo).parse(t,s,{tokenizeExpansionForms:!0});return{nodes:n.rootNodes,errors:[...this._errors,...n.errors]}}visitText(e,t){return Ys(e.value)}visitContainer(e,t){return e.children.map(e=>e.visit(this)).join("")}visitIcu(e,t){const s=Object.keys(e.cases).map(t=>`${t} {${e.cases[t].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}`,n=Object.keys(e.attrs).map(t=>`${t}="${e.attrs[t]}"`).join(" ");if(e.isVoid)return`<${s} ${n}/>`;return`<${s} ${n}>${e.children.map(e=>e.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 n;if(this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=e,this._i18nNodesByMsgId.hasOwnProperty(t))n=this._i18nNodesByMsgId[t],this._mapper=e=>s?s.toInternalName(e):e;else{if(this._missingTranslationStrategy===b.Error){const s=this._locale?` for locale "${this._locale}"`:"";this._addError(e.nodes[0],`Missing translation for message "${t}"${s}`)}else if(this._console&&this._missingTranslationStrategy===b.Warning){const e=this._locale?` for locale "${this._locale}"`:"";this._console.warn(`Missing translation for message "${t}"${e}`)}n=e.nodes,this._mapper=e=>e}const r=n.map(e=>e.visit(this)).join(""),i=this._contextStack.pop();return this._srcMsg=i.msg,this._mapper=i.mapper,r}_addError(e,t){this._errors.push(new kl(e.sourceSpan,t))}}e("I18NHtmlParser",class{constructor(e,t,s,n=b.Warning,r){if(this._htmlParser=e,t){const e=function(e){switch(e=(e||"xlf").toLowerCase()){case"xmb":return new Zs;case"xtb":return new Lu;case"xliff2":case"xlf2":return new Tu;default:return new yu}}(s);this._translationBundle=Ou.load(t,"i18n",e,n,r)}else this._translationBundle=new Ou({},null,$,void 0,n,r)}parse(e,t,s={}){const n=s.interpolationConfig||jn,r=this._htmlParser.parse(e,t,{interpolationConfig:n,...s});return r.errors.length?new No(r.rootNodes,r.errors):function(e,t,s,n,r){return new cu(n,r).merge(e,t,s)}(r.rootNodes,this._translationBundle,n,[],{})}});e("MessageBundle",class{constructor(e,t,s,n=null){this._htmlParser=e,this._implicitTags=t,this._implicitAttrs=s,this._locale=n,this._messages=[]}updateFromTemplate(e,t,s){const n=this._htmlParser.parse(e,t,{tokenizeExpansionForms:!0,interpolationConfig:s});if(n.errors.length)return n.errors;const r=function(e,t,s,n){return new cu(s,n).extract(e,t)}(n.rootNodes,s,this._implicitTags,this._implicitAttrs);return r.errors.length?r.errors:(this._messages.push(...r.messages),[])}getMessages(){return this._messages}write(e,t){const s={},n=new Du;this._messages.forEach(t=>{const n=e.digest(t);s.hasOwnProperty(n)?s[n].sources.push(...t.sources):s[n]=t});const r=Object.keys(s).map(r=>{const i=e.createNameMapper(s[r]),a=s[r],o=i?n.convert(a.nodes,i):a.nodes;let l=new ks(o,{},{},a.meaning,a.description,r);return l.sources=a.sources,t&&l.sources.forEach(e=>e.filePath=t(e.filePath)),l});return e.write(r,this._locale)}});class Du extends $s{convert(e,t){return t?e.map(e=>e.visit(this,t)):e}visitTagPlaceholder(e,t){const s=t.toPublicName(e.startName),n=e.closeName?t.toPublicName(e.closeName):e.closeName,r=e.children.map(e=>e.visit(this,t));return new Ms(e.tag,e.attrs,s,n,r,e.isVoid,e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}visitPlaceholder(e,t){return new Rs(e.value,t.toPublicName(e.name),e.sourceSpan)}visitIcuPlaceholder(e,t){return new Os(e.value,t.toPublicName(e.name),e.sourceSpan)}}var qu;!function(e){e[e.Directive=0]="Directive",e[e.Component=1]="Component",e[e.Injectable=2]="Injectable",e[e.Pipe=3]="Pipe",e[e.NgModule=4]="NgModule"}(qu||(qu={}));e("R3TargetBinder",class{constructor(e){this.directiveMatcher=e}bind(e){if(!e.template)throw new Error("Binding without a template not yet supported");const t=Bu.apply(e.template),s=function(e){const t=new Map;function s(e){if(t.has(e.template))return t.get(e.template);const n=e.namedEntities;let r;return r=null!==e.parentScope?new Map([...s(e.parentScope),...n]):new Map(n),t.set(e.template,r),r}const n=[e];for(;n.length>0;){const e=n.pop();for(const t of e.childScopes.values())n.push(t);s(e)}const r=new Map;for(const[e,s]of t)r.set(e,new Set(s.values()));return r}(t),{directives:n,bindings:r,references:i}=Fu.apply(e.template,this.directiveMatcher),{expressions:a,symbols:o,nestingLevel:l,usedPipes:c}=Vu.applyWithScope(e.template,t);return new Uu(e,n,r,i,a,o,l,s,c)}});class Bu{constructor(e,t){this.parentScope=e,this.template=t,this.namedEntities=new Map,this.childScopes=new Map}static newRootScope(){return new Bu(null,null)}static apply(e){const t=Bu.newRootScope();return t.ingest(e),t}ingest(e){e instanceof _s?(e.variables.forEach(e=>this.visitVariable(e)),e.children.forEach(e=>e.visit(this))):e.forEach(e=>e.visit(this))}visitElement(e){e.references.forEach(e=>this.visitReference(e)),e.children.forEach(e=>e.visit(this))}visitTemplate(e){e.references.forEach(e=>this.visitReference(e));const t=new Bu(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 Fu{constructor(e,t,s,n){this.matcher=e,this.directives=t,this.bindings=s,this.references=n}static apply(e,t){const s=new Map,n=new Map,r=new Map;return new Fu(t,s,n,r).ingest(e),{directives:s,bindings:n,references:r}}ingest(e){e.forEach(e=>e.visit(this))}visitElement(e){this.visitElementOrTemplate(e.name,e)}visitTemplate(e){this.visitElementOrTemplate("ng-template",e)}visitElementOrTemplate(e,t){const n=function(e,t){const n=new d,r=s(e)[1];return n.setElement(r),Object.getOwnPropertyNames(t).forEach(e=>{const r=s(e)[1],i=t[e];n.addAttribute(r,i),"class"===e.toLowerCase()&&i.trim().split(/\s+/).forEach(e=>n.addClassName(e))}),n}(e,function(e){const t={};return e instanceof _s&&"ng-template"!==e.tagName?e.templateAttrs.forEach(e=>t[e.name]=""):(e.attributes.forEach(e=>{on(e.name)||(t[e.name]=e.value)}),e.inputs.forEach(e=>{t[e.name]=""}),e.outputs.forEach(e=>{t[e.name]=""})),t}(t)),r=[];this.matcher.match(n,(e,t)=>r.push(t)),r.length>0&&this.directives.set(t,r),t.references.forEach(e=>{let s=null;if(""===e.value.trim())s=r.find(e=>e.isComponent)||null;else if(s=r.find(t=>null!==t.exportAs&&t.exportAs.some(t=>t===e.value))||null,null===s)return;null!==s?this.references.set(e,{directive:s,node:t}):this.references.set(e,t)});const i=(e,s)=>{const n=r.find(t=>t[s].hasBindingPropertyName(e.name)),i=void 0!==n?n:t;this.bindings.set(e,i)};t.inputs.forEach(e=>i(e,"inputs")),t.attributes.forEach(e=>i(e,"inputs")),t instanceof _s&&t.templateAttrs.forEach(e=>i(e,"inputs")),t.outputs.forEach(e=>i(e,"outputs")),t.children.forEach(e=>e.visit(this))}visitContent(e){}visitVariable(e){}visitReference(e){}visitTextAttribute(e){}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundAttributeOrEvent(e){}visitText(e){}visitBoundText(e){}visitIcu(e){}}class Vu extends wi{constructor(e,t,s,n,r,i,a){super(),this.bindings=e,this.symbols=t,this.usedPipes=s,this.nestingLevel=n,this.scope=r,this.template=i,this.level=a,this.pipesUsed=[],this.visitNode=e=>e.visit(this)}visit(e,t){e instanceof zr?e.visit(this,t):e.visit(this)}static applyWithScope(e,t){const s=new Map,n=new Map,r=new Map,i=new Set;return new Vu(s,n,i,r,t,e instanceof _s?e:null,0).ingest(e),{expressions:s,symbols:n,nestingLevel:r,usedPipes:i}}ingest(e){e instanceof _s?(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 Vu(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 Yr))return;let n=this.scope.lookup(s);null!==n&&this.bindings.set(t,n)}}class Uu{constructor(e,t,s,n,r,i,a,o,l){this.target=e,this.directives=t,this.bindings=s,this.references=n,this.exprTargets=r,this.symbols=i,this.nestingLevel=a,this.templateEntities=o,this.usedPipes=l}getEntitiesInTemplateScope(e){return this.templateEntities.get(e)??new Set}getDirectivesOfNode(e){return this.directives.get(e)||null}getReferenceTarget(e){return this.references.get(e)||null}getConsumerOfBinding(e){return this.bindings.get(e)||null}getExpressionTarget(e){return this.exprTargets.get(e)||null}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(t=>e.add(t))),Array.from(e.values())}getUsedPipes(){return Array.from(this.usedPipes)}}e("R3BoundTarget",Uu);const Hu="12.0.0";function ju(e,t){return null===e||0===e.length?null:wt(e.map(e=>t(e)))}function Wu(e,t){const s=Object.keys(e).map(s=>{const n=e[s];return{key:s,value:t(n),quoted:!0}});return s.length>0?St(s):null}function zu(e){return"invalid"===e?Tt("invalid"):null===e?Tt(null):wt(e.map(Ku))}function Ku(e){const t=new On;return t.set("token",e.token),null!==e.attributeNameType&&t.set("attribute",Tt(!0)),e.host&&t.set("host",Tt(!0)),e.optional&&t.set("optional",Tt(!0)),e.self&&t.set("self",Tt(!0)),e.skipSelf&&t.set("skipSelf",Tt(!0)),t.toLiteralMap()}const Gu="14.0.0";function Yu(e){const t=new On;return t.set("minVersion",Tt(Gu)),t.set("version",Tt("14.2.12")),t.set("type",e.internalType),e.isStandalone&&t.set("isStandalone",Tt(e.isStandalone)),null!==e.selector&&t.set("selector",Tt(e.selector)),t.set("inputs",Ln(e.inputs,!0)),t.set("outputs",Ln(e.outputs)),t.set("host",function(e){const t=new On;t.set("attributes",Wu(e.attributes,e=>e)),t.set("listeners",Wu(e.listeners,Tt)),t.set("properties",Wu(e.properties,Tt)),e.specialAttributes.styleAttr&&t.set("styleAttribute",Tt(e.specialAttributes.styleAttr));e.specialAttributes.classAttr&&t.set("classAttribute",Tt(e.specialAttributes.classAttr));return t.values.length>0?t.toLiteralMap():null}(e.host)),t.set("providers",e.providers),e.queries.length>0&&t.set("queries",wt(e.queries.map(Qu))),e.viewQueries.length>0&&t.set("viewQueries",wt(e.viewQueries.map(Qu))),null!==e.exportAs&&t.set("exportAs",An(e.exportAs)),e.usesInheritance&&t.set("usesInheritance",Tt(!0)),e.lifecycle.usesOnChanges&&t.set("usesOnChanges",Tt(!0)),t.set("ngImport",ft(Bt.core)),t}function Qu(e){const t=new On;return t.set("propertyName",Tt(e.propertyName)),e.first&&t.set("first",Tt(!0)),t.set("predicate",Array.isArray(e.predicate)?An(e.predicate):ls(e.predicate)),e.emitDistinctChangesOnly||t.set("emitDistinctChangesOnly",Tt(!1)),e.descendants&&t.set("descendants",Tt(!0)),t.set("read",e.read),e.static&&t.set("static",Tt(!0)),t.toLiteralMap()}const Xu="12.0.0";const Ju="12.0.0";const Zu="12.0.0";const ep="14.0.0";const tp="14.0.0";tu(M)}}});
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
a11y.min.87af77b136b7.js
31117 bytes
0644
accordion.min.0075d7e4bda1.js
3334 bytes
0644
amd.min.js
1288 bytes
0644
animations.min.67d0b2c35722.js
4270 bytes
0644
autocomplete.min.b8fb45c142b6.js
19857 bytes
0644
badge.min.474b5aef1217.js
4226 bytes
0644
bidi.min.68df829247b4.js
1939 bytes
0644
bottom-sheet.min.a7fb3501f7f8.js
7841 bytes
0644
browser.min.ee11ca64e883.js
60027 bytes
0644
button-toggle.min.2340e206952b.js
11749 bytes
0644
button.min.83e8fabfc158.js
19196 bytes
0644
card.min.886f310f0995.js
8403 bytes
0644
cdk-dialog.min.a8a2b31e946f.js
11590 bytes
0644
cdk.min.eb855fc8a7af.js
160 bytes
0644
chart.min.8f631cc0fc8d.js
197143 bytes
0644
checkbox.min.e351df03e020.js
18972 bytes
0644
chips.min.2e6461ff82b2.js
24887 bytes
0644
coercion.min.3b449d79723d.js
725 bytes
0644
collections.min.b89791f763bf.js
4623 bytes
0644
common.min.15ff3541ebe8.js
62830 bytes
0644
compiler.min.cd009adf48f8.js
336696 bytes
0644
core.min.f62d6cd1d8e7.js
185045 bytes
0644
datepicker.min.cab061c5a4f6.js
106866 bytes
0644
divider.min.a7470a9b7762.js
1565 bytes
0644
form-field.min.b8dbab3befe3.js
36356 bytes
0644
forms.min.80f675b7c98f.js
57342 bytes
0644
grid-list.min.d7c02f50908a.js
11831 bytes
0644
http.min.aec31d3816f2.js
19030 bytes
0644
icon.min.ffbc56b06055.js
13599 bytes
0644
input.min.1ea7090deda6.js
6980 bytes
0644
keycodes.min.605c57f67235.js
2062 bytes
0644
layout.min.8df2b70e5622.js
3598 bytes
0644
list.min.902887e22ee1.js
45061 bytes
0644
long-stack-trace-zone.min.js
2154 bytes
0755
material-core.min.dc7eb77e8879.js
27118 bytes
0644
material-dialog.min.6f12982eba9b.js
14642 bytes
0644
material.min.c8ae3876fcd0.js
135 bytes
0644
menu.min.dafa3180b1c8.js
25076 bytes
0644
minified.js
211624 bytes
0644
named-exports.min.js
678 bytes
0644
named-register.min.js
1007 bytes
0644
observers.min.bc88a44f45c5.js
3173 bytes
0644
overlay.min.dba6d9fa728f.js
42982 bytes
0644
paginator.min.a97ab23a31b8.js
13682 bytes
0644
platform-browser-animations.min.bd5497bc5449.js
26769 bytes
0644
platform-browser-dynamic.min.a167804656d6.js
2846 bytes
0644
platform-browser.min.7fb4007767f7.js
21805 bytes
0644
platform.min.fb6e7f12d699.js
3723 bytes
0644
portal.min.f77945843ce4.js
6999 bytes
0644
progress-bar.min.913197928105.js
10209 bytes
0644
progress-spinner.min.48ba2bf83ab5.js
10274 bytes
0644
radio.min.15275c6e7dac.js
13961 bytes
0644
router.min.3620fa413415.js
98095 bytes
0644
rxjs.umd.min.67c4c1e73767.js
88037 bytes
0644
scrolling.min.66a5637056c7.js
25434 bytes
0644
select.min.6465d7f4ec05.js
28057 bytes
0644
single-spa-angular-internals.min.bef0dda47422.js
558 bytes
0644
single-spa-angular.min.ae0438d8ae06.js
3800 bytes
0644
single-spa-layout.min.5bf6d9cda318.js
17978 bytes
0644
single-spa.min.1ef7e0b9902d.js
20611 bytes
0644
slide-toggle.min.019804b8fa15.js
11157 bytes
0644
slider.min.546a3560336a.js
22902 bytes
0644
snack-bar.min.c705709f4260.js
13243 bytes
0644
sort.min.7189290a6492.js
13758 bytes
0644
system.min.js
12231 bytes
0644
tabs.min.2991ec6bda6b.js
52968 bytes
0644
text-field.min.e0d3cf8aa31f.js
7393 bytes
0644
toolbar.min.33e88ee301ad.js
2671 bytes
0644
tooltip.min.fdbf4a8d3461.js
17343 bytes
0644
tree.min.b11775252976.js
7022 bytes
0644
zone-testing.js
110502 bytes
0755
zone.min.js
50019 bytes
0755
N4ST4R_ID | Naxtarrr