allyward 0.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,113 @@
1
+ import { createRequire as __createRequire } from 'module'; const require = __createRequire(import.meta.url);
2
+ import{a as Io,b as ZE,c as eS}from"./chunk-OLLDCSVO.mjs";import{c as dD,f as No,l as fD,m as tS,n as nS}from"./chunk-RAB5WJOG.mjs";import"./chunk-GMYSZQLH.mjs";import{a as JE}from"./chunk-7T75TQUC.mjs";import{a as sS,b as Hp}from"./chunk-UIPLYHZY.mjs";import{a as rS,c as qp,d as jp}from"./chunk-LRFMPFDN.mjs";import"./chunk-6W3JS6DP.mjs";import{h as Wp}from"./chunk-SNU37HWC.mjs";import{a as hD,c as C,e as uc}from"./chunk-7UDH5BXX.mjs";var uS=C(Ur=>{"use strict";var mD=Ur&&Ur.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ur,"__esModule",{value:!0});Ur.isFileLikelyToContainComponentDeclarations=oS;Ur.preprocessComponentFile=lS;Ur.postprocessComponentFile=cS;var iS=hD("path"),Me=mD(ZE()),aS=new Map;function oS(e,t){return!!([".component.ts",".page.ts",".dialog.ts",".modal.ts",".popover.ts",".bottomsheet.ts",".snackbar.ts"].some(n=>t.endsWith(n))||e.includes("Component")&&e.includes("@angular/core"))}function lS(e,t){let n=[e];if(!oS(e,t))return n;try{let r=Me.default.createSourceFile(t,e,Me.default.ScriptTarget.Latest,!0),s=gD(r);if(!s||!s.length)return n;let i=[];for(let c of s){let u=Me.default.getDecorators(c);if(u)for(let p of u)Me.default.isCallExpression(p.expression)&&Me.default.isIdentifier(p.expression.expression)&&p.expression.expression.text==="Component"&&i.push(p)}if(!i||!i.length)return n;let a=[e],o=0;for(let c of i){if(!Me.default.isDecorator(c)||!Me.default.isCallExpression(c.expression)||c.expression.arguments.length!==1)continue;let u=c.expression.arguments[0];if(!Me.default.isObjectLiteralExpression(u))continue;let p=u.properties.find(N=>N&&N.name&&N.name.getText()==="template");if(u.properties.find(N=>N&&N.name&&N.name.getText()==="templateUrl")||!p||!Me.default.isPropertyAssignment(p))continue;let h,f=p.initializer;if(Me.default.isNoSubstitutionTemplateLiteral(f)&&(h=f.rawText),Me.default.isTemplateExpression(f)&&(h=f.getText().slice(1,-1)),Me.default.isStringLiteral(f)&&(h=f.text),!h)continue;let E=`inline-template-${(0,iS.basename)(t)}-${++o}.component.html`,T=p.initializer.getStart(),y=p.initializer.getEnd();aS.set(E,{range:[T,y],lineAndCharacter:{start:r.getLineAndCharacterOfPosition(T),end:r.getLineAndCharacterOfPosition(y)}}),a.push({text:h,filename:E})}return a}catch(r){return console.log(r),console.error("preprocess: ERROR could not parse @Component() metadata",t),n}}function gD(e){let t=[];return n(e),t;function n(r){if(Me.default.isClassDeclaration(r)){t.push(r);return}if(!(r.kind<Me.default.SyntaxKind.FirstNode||r.kind>Me.default.SyntaxKind.FirstJSDocNode)&&!(r.kind>=Me.default.SyntaxKind.TypePredicate&&r.kind<=Me.default.SyntaxKind.ImportType)){switch(r.kind){case Me.default.SyntaxKind.InterfaceDeclaration:case Me.default.SyntaxKind.EnumDeclaration:case Me.default.SyntaxKind.ImportEqualsDeclaration:case Me.default.SyntaxKind.ImportDeclaration:case Me.default.SyntaxKind.ImportClause:return}Me.default.forEachChild(r,n)}}}function cS(e,t){let n=e[0];if(e.length===1)return n;let r=e.slice(1);return[...n,...r.flatMap((i,a)=>{let c=`inline-template-${(0,iS.basename)(t)}-${a+1}.component.html`,u=aS.get(c);return u?i.map(p=>{if(p.line===1&&(p.column+=u.lineAndCharacter.start.character+1),p.endLine===1&&(p.endColumn+=u.lineAndCharacter.start.character+1),p.line+=u.lineAndCharacter.start.line,p.endLine+=u.lineAndCharacter.start.line,p.fix){let h=u.range[0]+1;p.fix.range=[h+p.fix.range[0],h+p.fix.range[1]]}return p}):[]})]}Ur.default={"extract-inline-html":{meta:{name:"extract-inline-html"},preprocess:lS,postprocess:cS,supportsAutofix:!0}}});var ko=C(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.toPattern=yt.toHumanReadableText=yt.kebabToCamelCase=yt.isNotNullOrUndefined=yt.objectKeys=void 0;yt.getLast=vD;yt.arrayify=ED;yt.capitalize=xD;yt.withoutBracketsAndWhitespaces=bD;function vD(e){return e.slice(-1)[0]}yt.objectKeys=Object.keys;function ED(e){return Array.isArray(e)?e:e?[e]:[]}var SD=e=>e!=null;yt.isNotNullOrUndefined=SD;var yD=e=>e.replace(/-[a-zA-Z]/g,({1:t})=>t.toUpperCase());yt.kebabToCamelCase=yD;var wD=e=>{let t=e.length;return t===1?`"${e[0]}"`:`${e.map(n=>`"${n}"`).slice(0,t-1).join(", ")} or "${[...e].pop()}"`};yt.toHumanReadableText=wD;var TD=e=>RegExp(`^(${e.join("|")})$`);yt.toPattern=TD;function xD(e){return`${e[0].toUpperCase()}${e.slice(1)}`}function bD(e){return e.replace(/[[\]\s]/g,"")}});var hS=C(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});zp.getAriaAttributeKeys=AD;var pS=null;function AD(){return pS??(pS=new Set(["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-dragged","aria-dropeffect","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"]))}});var fS=C(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});Gp.getNativeEventNames=CD;var dS=null;function CD(){return dS??(dS=new Set(["abort","afterprint","afterscriptexecute","animationcancel","animationend","animationiteration","animationstart","appinstalled","auxclick","beforeinput","beforeinstallprompt","beforematch","beforeprint","beforescriptexecute","beforetoggle","beforeunload","beforexrselect","beginEvent","blur","cancel","canplay","canplaythrough","change","click","close","command","compositionend","compositionstart","compositionupdate","contentvisibilityautostatechange","contextlost","contextmenu","contextrestored","copy","cuechange","cut","dblclick","devicemotion","deviceorientation","deviceorientationabsolute","DOMActivate","DOMContentLoaded","DOMMouseScroll","drag","dragend","dragenter","dragexit","dragleave","dragover","dragstart","drop","durationchange","emptied","encrypted","ended","endEvent","enterpictureinpicture","error","focus","focusin","focusout","formdata","freeze","fullscreenchange","fullscreenerror","gamepadconnected","gamepaddisconnected","gesturechange","gestureend","gesturestart","gotpointercapture","hashchange","input","installresult","interest","invalid","keydown","keypress","keyup","languagechange","leavepictureinpicture","load","loadeddata","loadedmetadata","loadstart","location","loseinterest","lostpointercapture","message","messageerror","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","MozMousePixelScroll","offline","online","orientationchange","pagehide","pagereveal","pageshow","pageswap","paste","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","pointerlockerror","pointermove","pointerout","pointerover","pointerrawupdate","pointerup","popstate","prerenderingchange","progress","promptaction","promptdismiss","ratechange","readystatechange","rejectionhandled","repeatEvent","reset","resize","resume","scroll","scrollend","scrollsnapchange","scrollsnapchanging","search","securitypolicyviolation","seeked","seeking","select","selectionchange","selectstart","slotchange","stalled","storage","stream","submit","suspend","timeupdate","toggle","touchcancel","touchend","touchmove","touchstart","track","transitioncancel","transitionend","transitionrun","transitionstart","unhandledrejection","unload","validationstatuschange","visibilitychange","volumechange","vrdisplayactivate","vrdisplayconnect","vrdisplaydeactivate","vrdisplaydisconnect","vrdisplaypresentchange","waiting","waitingforkey","webglcontextcreationerror","webglcontextlost","webglcontextrestored","webkitmouseforcechanged","webkitmouseforcedown","webkitmouseforceup","webkitmouseforcewillbegin","wheel"]))}});var mS=C($e=>{"use strict";var _D=$e&&$e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),ND=$e&&$e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),ID=$e&&$e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(n){var r=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[r.length]=s);return r},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),s=0;s<r.length;s++)r[s]!=="default"&&_D(n,t,r[s]);return ND(n,t),n}})();Object.defineProperty($e,"__esModule",{value:!0});$e.isParenthesized=$e.hasSideEffect=$e.getStringIfConstant=$e.getStaticValue=$e.getPropertyName=$e.getFunctionNameWithKind=$e.getFunctionHeadLocation=void 0;var ti=ID(No());$e.getFunctionHeadLocation=ti.getFunctionHeadLocation;$e.getFunctionNameWithKind=ti.getFunctionNameWithKind;$e.getPropertyName=ti.getPropertyName;$e.getStaticValue=ti.getStaticValue;$e.getStringIfConstant=ti.getStringIfConstant;$e.hasSideEffect=ti.hasSideEffect;$e.isParenthesized=ti.isParenthesized});var gS=C(qn=>{"use strict";var kD=qn&&qn.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),PD=qn&&qn.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),LD=qn&&qn.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(n){var r=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[r.length]=s);return r},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),s=0;s<r.length;s++)r[s]!=="default"&&kD(n,t,r[s]);return PD(n,t),n}})();Object.defineProperty(qn,"__esModule",{value:!0});qn.PatternMatcher=void 0;var DD=LD(No());qn.PatternMatcher=DD.PatternMatcher});var vS=C(W=>{"use strict";var OD=W&&W.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),RD=W&&W.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),BD=W&&W.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(n){var r=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[r.length]=s);return r},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),s=0;s<r.length;s++)r[s]!=="default"&&OD(n,t,r[s]);return RD(n,t),n}})();Object.defineProperty(W,"__esModule",{value:!0});W.isNotSemicolonToken=W.isSemicolonToken=W.isNotOpeningParenToken=W.isOpeningParenToken=W.isNotOpeningBracketToken=W.isOpeningBracketToken=W.isNotOpeningBraceToken=W.isOpeningBraceToken=W.isNotCommentToken=W.isCommentToken=W.isNotCommaToken=W.isCommaToken=W.isNotColonToken=W.isColonToken=W.isNotClosingParenToken=W.isClosingParenToken=W.isNotClosingBracketToken=W.isClosingBracketToken=W.isNotClosingBraceToken=W.isClosingBraceToken=W.isNotArrowToken=W.isArrowToken=void 0;var Ue=BD(No());W.isArrowToken=Ue.isArrowToken;W.isNotArrowToken=Ue.isNotArrowToken;W.isClosingBraceToken=Ue.isClosingBraceToken;W.isNotClosingBraceToken=Ue.isNotClosingBraceToken;W.isClosingBracketToken=Ue.isClosingBracketToken;W.isNotClosingBracketToken=Ue.isNotClosingBracketToken;W.isClosingParenToken=Ue.isClosingParenToken;W.isNotClosingParenToken=Ue.isNotClosingParenToken;W.isColonToken=Ue.isColonToken;W.isNotColonToken=Ue.isNotColonToken;W.isCommaToken=Ue.isCommaToken;W.isNotCommaToken=Ue.isNotCommaToken;W.isCommentToken=Ue.isCommentToken;W.isNotCommentToken=Ue.isNotCommentToken;W.isOpeningBraceToken=Ue.isOpeningBraceToken;W.isNotOpeningBraceToken=Ue.isNotOpeningBraceToken;W.isOpeningBracketToken=Ue.isOpeningBracketToken;W.isNotOpeningBracketToken=Ue.isNotOpeningBracketToken;W.isOpeningParenToken=Ue.isOpeningParenToken;W.isNotOpeningParenToken=Ue.isNotOpeningParenToken;W.isSemicolonToken=Ue.isSemicolonToken;W.isNotSemicolonToken=Ue.isNotSemicolonToken});var ES=C(Hn=>{"use strict";var MD=Hn&&Hn.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),FD=Hn&&Hn.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),$D=Hn&&Hn.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(n){var r=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[r.length]=s);return r},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),s=0;s<r.length;s++)r[s]!=="default"&&MD(n,t,r[s]);return FD(n,t),n}})();Object.defineProperty(Hn,"__esModule",{value:!0});Hn.ReferenceTracker=void 0;var Po=$D(No()),T3=Po.ReferenceTracker.READ,x3=Po.ReferenceTracker.CALL,b3=Po.ReferenceTracker.CONSTRUCT,A3=Po.ReferenceTracker.ESM;Hn.ReferenceTracker=Po.ReferenceTracker});var yS=C(fn=>{"use strict";var UD=fn&&fn.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),VD=fn&&fn.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),qD=fn&&fn.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(n){var r=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[r.length]=s);return r},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),s=0;s<r.length;s++)r[s]!=="default"&&UD(n,t,r[s]);return VD(n,t),n}})();Object.defineProperty(fn,"__esModule",{value:!0});fn.getInnermostScope=fn.findVariable=void 0;var SS=qD(No());fn.findVariable=SS.findVariable;fn.getInnermostScope=SS.getInnermostScope});var wS=C(Ln=>{"use strict";var HD=Ln&&Ln.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),Lo=Ln&&Ln.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&HD(t,e,n)};Object.defineProperty(Ln,"__esModule",{value:!0});Lo(mS(),Ln);Lo(gS(),Ln);Lo(vS(),Ln);Lo(ES(),Ln);Lo(yS(),Ln)});var Xp=C(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.isNotTokenOfTypeWithConditions=Zt.isTokenOfTypeWithConditions=Zt.isNodeOfTypeWithConditions=Zt.isNodeOfTypes=Zt.isNodeOfType=void 0;var jD=e=>t=>t?.type===e;Zt.isNodeOfType=jD;var WD=e=>t=>!!t&&e.includes(t.type);Zt.isNodeOfTypes=WD;var zD=(e,t)=>{let n=Object.entries(t);return r=>r?.type===e&&n.every(([s,i])=>r[s]===i)};Zt.isNodeOfTypeWithConditions=zD;var GD=(e,t)=>{let n=Object.entries(t);return r=>r?.type===e&&n.every(([s,i])=>r[s]===i)};Zt.isTokenOfTypeWithConditions=GD;var XD=(e,t)=>n=>!(0,Zt.isTokenOfTypeWithConditions)(e,t)(n);Zt.isNotTokenOfTypeWithConditions=XD});var TS=C(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.LINEBREAK_MATCHER=void 0;Do.isTokenOnSameLine=YD;Do.LINEBREAK_MATCHER=/\r\n|[\r\n\u2028\u2029]/;function YD(e,t){return e.loc.end.line===t.loc.start.line}});var Kp=C(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.TSESTree=Vr.AST_TOKEN_TYPES=Vr.AST_NODE_TYPES=void 0;var Yp=eS();Object.defineProperty(Vr,"AST_NODE_TYPES",{enumerable:!0,get:function(){return Yp.AST_NODE_TYPES}});Object.defineProperty(Vr,"AST_TOKEN_TYPES",{enumerable:!0,get:function(){return Yp.AST_TOKEN_TYPES}});Object.defineProperty(Vr,"TSESTree",{enumerable:!0,get:function(){return Yp.TSESTree}})});var AS=C(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.isLoop=J.isImportKeyword=J.isTypeKeyword=J.isAwaitKeyword=J.isAwaitExpression=J.isIdentifier=J.isConstructor=J.isClassOrTypeElement=J.isTSConstructorType=J.isTSFunctionType=J.isFunctionOrFunctionType=J.isFunctionType=J.isFunction=J.isVariableDeclarator=J.isTypeAssertion=J.isLogicalOrOperator=J.isOptionalCallExpression=J.isNotNonNullAssertionPunctuator=J.isNonNullAssertionPunctuator=J.isNotOptionalChainPunctuator=J.isOptionalChainPunctuator=void 0;J.isSetter=KD;var Z=Kp(),We=Xp();J.isOptionalChainPunctuator=(0,We.isTokenOfTypeWithConditions)(Z.AST_TOKEN_TYPES.Punctuator,{value:"?."});J.isNotOptionalChainPunctuator=(0,We.isNotTokenOfTypeWithConditions)(Z.AST_TOKEN_TYPES.Punctuator,{value:"?."});J.isNonNullAssertionPunctuator=(0,We.isTokenOfTypeWithConditions)(Z.AST_TOKEN_TYPES.Punctuator,{value:"!"});J.isNotNonNullAssertionPunctuator=(0,We.isNotTokenOfTypeWithConditions)(Z.AST_TOKEN_TYPES.Punctuator,{value:"!"});J.isOptionalCallExpression=(0,We.isNodeOfTypeWithConditions)(Z.AST_NODE_TYPES.CallExpression,{optional:!0});J.isLogicalOrOperator=(0,We.isNodeOfTypeWithConditions)(Z.AST_NODE_TYPES.LogicalExpression,{operator:"||"});J.isTypeAssertion=(0,We.isNodeOfTypes)([Z.AST_NODE_TYPES.TSAsExpression,Z.AST_NODE_TYPES.TSTypeAssertion]);J.isVariableDeclarator=(0,We.isNodeOfType)(Z.AST_NODE_TYPES.VariableDeclarator);var xS=[Z.AST_NODE_TYPES.ArrowFunctionExpression,Z.AST_NODE_TYPES.FunctionDeclaration,Z.AST_NODE_TYPES.FunctionExpression];J.isFunction=(0,We.isNodeOfTypes)(xS);var bS=[Z.AST_NODE_TYPES.TSCallSignatureDeclaration,Z.AST_NODE_TYPES.TSConstructorType,Z.AST_NODE_TYPES.TSConstructSignatureDeclaration,Z.AST_NODE_TYPES.TSDeclareFunction,Z.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,Z.AST_NODE_TYPES.TSFunctionType,Z.AST_NODE_TYPES.TSMethodSignature];J.isFunctionType=(0,We.isNodeOfTypes)(bS);J.isFunctionOrFunctionType=(0,We.isNodeOfTypes)([...xS,...bS]);J.isTSFunctionType=(0,We.isNodeOfType)(Z.AST_NODE_TYPES.TSFunctionType);J.isTSConstructorType=(0,We.isNodeOfType)(Z.AST_NODE_TYPES.TSConstructorType);J.isClassOrTypeElement=(0,We.isNodeOfTypes)([Z.AST_NODE_TYPES.PropertyDefinition,Z.AST_NODE_TYPES.FunctionExpression,Z.AST_NODE_TYPES.MethodDefinition,Z.AST_NODE_TYPES.TSAbstractPropertyDefinition,Z.AST_NODE_TYPES.TSAbstractMethodDefinition,Z.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,Z.AST_NODE_TYPES.TSIndexSignature,Z.AST_NODE_TYPES.TSCallSignatureDeclaration,Z.AST_NODE_TYPES.TSConstructSignatureDeclaration,Z.AST_NODE_TYPES.TSMethodSignature,Z.AST_NODE_TYPES.TSPropertySignature]);J.isConstructor=(0,We.isNodeOfTypeWithConditions)(Z.AST_NODE_TYPES.MethodDefinition,{kind:"constructor"});function KD(e){return!!e&&(e.type===Z.AST_NODE_TYPES.MethodDefinition||e.type===Z.AST_NODE_TYPES.Property)&&e.kind==="set"}J.isIdentifier=(0,We.isNodeOfType)(Z.AST_NODE_TYPES.Identifier);J.isAwaitExpression=(0,We.isNodeOfType)(Z.AST_NODE_TYPES.AwaitExpression);J.isAwaitKeyword=(0,We.isTokenOfTypeWithConditions)(Z.AST_TOKEN_TYPES.Identifier,{value:"await"});J.isTypeKeyword=(0,We.isTokenOfTypeWithConditions)(Z.AST_TOKEN_TYPES.Identifier,{value:"type"});J.isImportKeyword=(0,We.isTokenOfTypeWithConditions)(Z.AST_TOKEN_TYPES.Keyword,{value:"import"});J.isLoop=(0,We.isNodeOfTypes)([Z.AST_NODE_TYPES.DoWhileStatement,Z.AST_NODE_TYPES.ForStatement,Z.AST_NODE_TYPES.ForInStatement,Z.AST_NODE_TYPES.ForOfStatement,Z.AST_NODE_TYPES.WhileStatement])});var CS=C(jn=>{"use strict";var QD=jn&&jn.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),pc=jn&&jn.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&QD(t,e,n)};Object.defineProperty(jn,"__esModule",{value:!0});pc(wS(),jn);pc(Xp(),jn);pc(TS(),jn);pc(AS(),jn)});var Jp=C(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.isObjectNotArray=Qp;hc.deepMerge=_S;function Qp(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function _S(e={},t={}){let n=new Set([...Object.keys(e),...Object.keys(t)]);return Object.fromEntries([...n].map(r=>{let s=r in e,i=r in t,a=e[r],o=t[r],c;return s&&i?Qp(a)&&Qp(o)?c=_S(a,o):c=o:s?c=a:c=o,[r,c]}))}});var th=C(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});eh.applyDefault=JD;var Zp=Jp();function JD(e,t){let n=structuredClone(e);return t==null||n.forEach((r,s)=>{if(t[s]!==void 0){let i=t[s];(0,Zp.isObjectNotArray)(i)&&(0,Zp.isObjectNotArray)(r)?n[s]=(0,Zp.deepMerge)(r,i):n[s]=i}}),n}});var NS=C(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});nh.parserSeemsToBeTSESLint=ZD;function ZD(e){return!!e&&/(?:typescript-eslint|\.\.)[\w/\\]*parser/.test(e)}});var kS=C(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});rh.getParserServices=r2;var e2=NS(),t2="You have used a rule which requires type information, but don't have parserOptions set to generate type information for this file. See https://tseslint.com/typed-linting for enabling linting with type information.",n2='Note: detected a parser other than @typescript-eslint/parser. Make sure the parser is configured to forward "parserOptions.project" to @typescript-eslint/parser.';function r2(e,t=!1){let n=e.parserPath||e.languageOptions.parser?.meta?.name;return(e.sourceCode.parserServices?.esTreeNodeToTSNodeMap==null||e.sourceCode.parserServices.tsNodeToESTreeNodeMap==null)&&IS(n),e.sourceCode.parserServices.program==null&&!t&&IS(n),e.sourceCode.parserServices}function IS(e){let t=[t2,`Parser: ${e||"(unknown)"}`,!(0,e2.parserSeemsToBeTSESLint)(e)&&n2].filter(Boolean);throw new Error(t.join(`
3
+ `))}});var LS=C(PS=>{"use strict";Object.defineProperty(PS,"__esModule",{value:!0})});var DS=C(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.NullThrowsReasons=void 0;Oo.nullThrows=s2;Oo.NullThrowsReasons={MissingParent:"Expected node to have a parent.",MissingToken:(e,t)=>`Expected to find a ${e} for the ${t}.`};function s2(e,t){if(e==null)throw new Error(`Non-null Assertion Failed: ${t}`);return e}});var BS=C(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});sh.RuleCreator=OS;var i2=th();function OS(e){return function({meta:n,name:r,...s}){return RS({meta:{...n,docs:{...n.docs,url:e(r)}},name:r,...s})}}function RS({create:e,defaultOptions:t,meta:n,name:r}){let s=n.defaultOptions??t??[];return{create(i){let a=(0,i2.applyDefault)(s,i.options);return e(i,a)},defaultOptions:t,meta:n,name:r}}OS.withoutDocs=function(t){return RS(t)}});var MS=C(mn=>{"use strict";var a2=mn&&mn.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),aa=mn&&mn.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&a2(t,e,n)};Object.defineProperty(mn,"__esModule",{value:!0});aa(th(),mn);aa(Jp(),mn);aa(kS(),mn);aa(LS(),mn);aa(DS(),mn);aa(BS(),mn)});var $S=C(FS=>{"use strict";Object.defineProperty(FS,"__esModule",{value:!0})});var US=C(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});ih.isArray=o2;function o2(e){return Array.isArray(e)}});var qS=C(VS=>{"use strict";Object.defineProperty(VS,"__esModule",{value:!0})});var jS=C(qr=>{"use strict";var l2=qr&&qr.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),HS=qr&&qr.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&l2(t,e,n)};Object.defineProperty(qr,"__esModule",{value:!0});HS(US(),qr);HS(qS(),qr)});var fc=C(ze=>{"use strict";var WS=ze&&ze.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),c2=ze&&ze.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),dc=ze&&ze.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(n){var r=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[r.length]=s);return r},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),s=0;s<r.length;s++)r[s]!=="default"&&WS(n,t,r[s]);return c2(n,t),n}})(),u2=ze&&ze.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&WS(t,e,n)};Object.defineProperty(ze,"__esModule",{value:!0});ze.TSUtils=ze.TSESLint=ze.JSONSchema=ze.ESLintUtils=ze.ASTUtils=void 0;ze.ASTUtils=dc(CS());ze.ESLintUtils=dc(MS());ze.JSONSchema=dc($S());ze.TSESLint={};u2(Kp(),ze);ze.TSUtils=dc(jS())});var vc=C(x=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});x.getLifecycleInterfaceByMethodName=x.getMethodName=x.getDeclaredMethods=x.getDecoratorPropertyValue=x.getDecoratorProperty=x.getDecoratorProperties=x.isAngularInnerClassDecorator=x.isAngularClassDecorator=x.isAngularLifecycleMethod=x.isAngularLifecycleInterface=x.ANGULAR_LIFECYCLE_METHODS=x.ANGULAR_LIFECYCLE_INTERFACES=x.getDecoratorName=x.getDecoratorArgument=x.getAngularClassDecorator=x.getDecorator=x.getClassName=x.getDeclaredAngularLifecycleMethods=x.getDeclaredAngularLifecycleInterfaces=x.getPipeDecorator=x.ANGULAR_CLASS_DECORATOR_MAPPER=x.ANGULAR_CLASS_DECORATORS=x.ANGULAR_INNER_CLASS_DECORATORS=x.ANGULAR_CLASS_DECORATOR_LIFECYCLE_METHOD_MAPPER=x.angularLifecycleMethodsOrdered=x.angularLifecycleMethodKeys=x.angularLifecycleInterfaceKeys=x.angularInnerClassDecoratorKeys=x.angularClassDecoratorKeys=x.OPTION_STYLE_KEBAB_CASE=x.OPTION_STYLE_CAMEL_CASE=x.AngularLifecycleMethods=x.AngularLifecycleInterfaces=x.AngularInnerClassDecorators=x.AngularClassDecorators=void 0;x.getCorrespondentImportClause=p2;x.getImportDeclarations=zS;x.getImportDeclarationSpecifier=h2;x.getInterface=d2;x.getInterfaceName=uh;x.getInterfaces=ph;x.getDeclaredInterfaceNames=GS;x.getNearestNodeFrom=v2;x.getPropertyDefinitionName=_2;x.isImportedFrom=O2;x.getRawText=XS;x.getReplacementText=R2;x.isCallExpression=hh;x.isMemberExpression=YS;x.isIdentifierOrMemberExpression=KS;x.isClassDeclaration=QS;x.isPropertyDefinition=dh;x.isPropertyOrMethodDefinition=B2;x.isImportDefaultSpecifier=M2;x.isImportNamespaceSpecifier=JS;x.isObjectExpression=ZS;x.isArrayExpression=F2;x.isProperty=fh;x.isLiteral=Ro;x.isTemplateElement=ty;x.isTemplateLiteral=ny;x.isImportDeclaration=ry;x.isImportSpecifier=mh;x.isStringLiteral=mc;x.isMethodDefinition=gc;x.isSuper=$2;x.isImplementsToken=U2;var be=fc(),Hr=ko(),Nt;(function(e){e.Component="Component",e.Directive="Directive",e.Injectable="Injectable",e.NgModule="NgModule",e.Pipe="Pipe",e.Service="Service"})(Nt||(x.AngularClassDecorators=Nt={}));var ah;(function(e){e.Attribute="Attribute",e.Host="Host",e.Inject="Inject",e.Optional="Optional",e.Self="Self",e.SkipSelf="SkipSelf"})(ah||(ah={}));var oh;(function(e){e.HostListener="HostListener"})(oh||(oh={}));var lh;(function(e){e.ContentChild="ContentChild",e.ContentChildren="ContentChildren",e.HostBinding="HostBinding",e.Input="Input",e.Output="Output",e.ViewChild="ViewChild",e.ViewChildren="ViewChildren"})(lh||(lh={}));x.AngularInnerClassDecorators={...ah,...oh,...lh};var ch;(function(e){e.AfterContentChecked="AfterContentChecked",e.AfterContentInit="AfterContentInit",e.AfterViewChecked="AfterViewChecked",e.AfterViewInit="AfterViewInit",e.DoBootstrap="DoBootstrap",e.DoCheck="DoCheck",e.OnChanges="OnChanges",e.OnDestroy="OnDestroy",e.OnInit="OnInit"})(ch||(x.AngularLifecycleInterfaces=ch={}));var ve;(function(e){e.ngAfterContentChecked="ngAfterContentChecked",e.ngAfterContentInit="ngAfterContentInit",e.ngAfterViewChecked="ngAfterViewChecked",e.ngAfterViewInit="ngAfterViewInit",e.ngDoBootstrap="ngDoBootstrap",e.ngDoCheck="ngDoCheck",e.ngOnChanges="ngOnChanges",e.ngOnDestroy="ngOnDestroy",e.ngOnInit="ngOnInit"})(ve||(x.AngularLifecycleMethods=ve={}));x.OPTION_STYLE_CAMEL_CASE="camelCase";x.OPTION_STYLE_KEBAB_CASE="kebab-case";x.angularClassDecoratorKeys=(0,Hr.objectKeys)(Nt);x.angularInnerClassDecoratorKeys=(0,Hr.objectKeys)(x.AngularInnerClassDecorators);x.angularLifecycleInterfaceKeys=(0,Hr.objectKeys)(ch);x.angularLifecycleMethodKeys=(0,Hr.objectKeys)(ve);x.angularLifecycleMethodsOrdered=[ve.ngOnChanges,ve.ngOnInit,ve.ngDoCheck,ve.ngAfterContentInit,ve.ngAfterContentChecked,ve.ngAfterViewInit,ve.ngAfterViewChecked,ve.ngOnDestroy];x.ANGULAR_CLASS_DECORATOR_LIFECYCLE_METHOD_MAPPER=new Map([[Nt.Component,new Set([ve.ngAfterContentChecked,ve.ngAfterContentInit,ve.ngAfterViewChecked,ve.ngAfterViewInit,ve.ngOnChanges,ve.ngOnDestroy,ve.ngOnInit,ve.ngDoCheck])],[Nt.Directive,new Set([ve.ngAfterContentChecked,ve.ngAfterContentInit,ve.ngAfterViewChecked,ve.ngAfterViewInit,ve.ngOnChanges,ve.ngOnDestroy,ve.ngOnInit,ve.ngDoCheck])],[Nt.Injectable,new Set([ve.ngOnDestroy])],[Nt.NgModule,new Set([ve.ngDoBootstrap])],[Nt.Pipe,new Set([ve.ngOnDestroy])],[Nt.Service,new Set([ve.ngOnDestroy])]]);x.ANGULAR_INNER_CLASS_DECORATORS=new Set(x.angularInnerClassDecoratorKeys);x.ANGULAR_CLASS_DECORATORS=new Set(x.angularClassDecoratorKeys);x.ANGULAR_CLASS_DECORATOR_MAPPER=new Map([[Nt.Component,x.ANGULAR_INNER_CLASS_DECORATORS],[Nt.Directive,x.ANGULAR_INNER_CLASS_DECORATORS],[Nt.Injectable,new Set([x.AngularInnerClassDecorators.Host,x.AngularInnerClassDecorators.Inject,x.AngularInnerClassDecorators.Optional,x.AngularInnerClassDecorators.Self,x.AngularInnerClassDecorators.SkipSelf])],[Nt.NgModule,new Set([x.AngularInnerClassDecorators.Host,x.AngularInnerClassDecorators.Inject,x.AngularInnerClassDecorators.Optional,x.AngularInnerClassDecorators.Self,x.AngularInnerClassDecorators.SkipSelf])],[Nt.Pipe,new Set([x.AngularInnerClassDecorators.Host,x.AngularInnerClassDecorators.Inject,x.AngularInnerClassDecorators.Optional,x.AngularInnerClassDecorators.Self,x.AngularInnerClassDecorators.SkipSelf])],[Nt.Service,new Set([x.AngularInnerClassDecorators.Host,x.AngularInnerClassDecorators.Inject,x.AngularInnerClassDecorators.Optional,x.AngularInnerClassDecorators.Self,x.AngularInnerClassDecorators.SkipSelf])]]);function p2(e,t=!1){let n;for(let{importKind:r,specifiers:s}of e){let i=(0,Hr.getLast)(s);!t&&r==="type"||JS(i)||(n=i)}return n}function zS(e,t){let n=e;for(;n=n.parent;)if(ey(n))return n.body.filter(r=>ry(r)&&r.source.value===t);return n}function h2(e,t){for(let n of e){let r=n.specifiers.find(s=>mh(s)&&(be.ASTUtils.isIdentifier(s.imported)&&s.imported.name===t||mc(s.imported)&&s.imported.value===t));if(r)return{importDeclaration:n,importSpecifier:r}}}function d2(e,t){return ph(e).find(n=>uh(n)===t)}function uh(e){return be.ASTUtils.isIdentifier(e)?e.name:be.ASTUtils.isIdentifier(e.property)?e.property.name:void 0}var f2=e=>(0,x.getDecorator)(e,"Pipe");x.getPipeDecorator=f2;function ph(e){return(e.implements??[]).map(({expression:t})=>t).filter(KS)}function GS(e){return ph(e).map(uh).filter(Hr.isNotNullOrUndefined)}var m2=e=>GS(e).filter(x.isAngularLifecycleInterface);x.getDeclaredAngularLifecycleInterfaces=m2;var g2=e=>(0,x.getDeclaredMethods)(e).map(x.getMethodName).filter(Hr.isNotNullOrUndefined).filter(x.isAngularLifecycleMethod);x.getDeclaredAngularLifecycleMethods=g2;function v2({parent:e},t){for(;e&&!ey(e);){if(t(e))return e;e=e.parent}return null}var E2=e=>{if(QS(e))return e.id?.name;if(e.parent)return(0,x.getClassName)(e.parent)};x.getClassName=E2;var S2=(e,t)=>e.decorators?.find(n=>(0,x.getDecoratorName)(n)===t);x.getDecorator=S2;var y2=({decorators:e})=>e?.map(x.getDecoratorName).filter(Hr.isNotNullOrUndefined).find(x.isAngularClassDecorator);x.getAngularClassDecorator=y2;var w2=({expression:e})=>{if(!hh(e)||e.arguments.length===0)return;let[t]=e.arguments;return ZS(t)&&t.properties?t:void 0};x.getDecoratorArgument=w2;var T2=({expression:e})=>be.ASTUtils.isIdentifier(e)?e.name:hh(e)&&be.ASTUtils.isIdentifier(e.callee)?e.callee.name:void 0;x.getDecoratorName=T2;x.ANGULAR_LIFECYCLE_INTERFACES=new Set(x.angularLifecycleInterfaceKeys);x.ANGULAR_LIFECYCLE_METHODS=new Set(x.angularLifecycleMethodKeys);var x2=e=>x.ANGULAR_LIFECYCLE_INTERFACES.has(e);x.isAngularLifecycleInterface=x2;var b2=e=>x.ANGULAR_LIFECYCLE_METHODS.has(e);x.isAngularLifecycleMethod=b2;var A2=e=>x.ANGULAR_CLASS_DECORATORS.has(e);x.isAngularClassDecorator=A2;var C2=e=>x.ANGULAR_INNER_CLASS_DECORATORS.has(e);x.isAngularInnerClassDecorator=C2;function _2({computed:e,key:t}){if(be.ASTUtils.isIdentifier(t)&&!e)return t.name;if(Ro(t))return t.raw;throw new Error(`Unexpected "PropertyDefinition.key.type" provided: ${t.type}`)}var N2=e=>(0,x.getDecoratorArgument)(e)?.properties.filter(fh)??[];x.getDecoratorProperties=N2;var I2=(e,t)=>(0,x.getDecoratorProperties)(e).find(({key:n})=>be.ASTUtils.isIdentifier(n)&&n.name===t);x.getDecoratorProperty=I2;var k2=(e,t)=>(0,x.getDecoratorProperty)(e,t)?.value;x.getDecoratorPropertyValue=k2;var P2=({body:{body:e}})=>e.filter(gc);x.getDeclaredMethods=P2;var L2=({computed:e,key:t})=>mc(t)?t.value:be.ASTUtils.isIdentifier(t)&&!e?t.name:void 0;x.getMethodName=L2;var D2=e=>e.slice(2);x.getLifecycleInterfaceByMethodName=D2;function O2(e,t){return!!zS(e,t)?.some(r=>r.specifiers.some(s=>mh(s)&&(be.ASTUtils.isIdentifier(s.imported)&&s.imported.name===e.name||mc(s.imported)&&s.imported.value===e.name)&&s.local.name===e.name))}function XS(e){if(be.ASTUtils.isIdentifier(e))return e.name;if(dh(e)||gc(e)||fh(e))return XS(e.key);if(Ro(e))return String(e.value);if(ty(e))return e.value.raw;if(ny(e))return e.quasis[0].value.raw;throw Error(`Unexpected \`node.type\` provided: ${e.type}`)}function R2(e,t){return Ro(e)?`'${t}'`:`\`${t}\``}function hh(e){return e.type===be.AST_NODE_TYPES.CallExpression}function YS(e){return e.type===be.AST_NODE_TYPES.MemberExpression}function KS(e){return be.ASTUtils.isIdentifier(e)||YS(e)}function QS(e){return e.type===be.AST_NODE_TYPES.ClassDeclaration}function dh(e){return e.type===be.AST_NODE_TYPES.PropertyDefinition}function B2(e){return dh(e)||gc(e)}function M2(e){return e.type===be.AST_NODE_TYPES.ImportDefaultSpecifier}function JS(e){return e.type===be.AST_NODE_TYPES.ImportNamespaceSpecifier}function ZS(e){return e.type===be.AST_NODE_TYPES.ObjectExpression}function F2(e){return e.type===be.AST_NODE_TYPES.ArrayExpression}function fh(e){return e.type===be.AST_NODE_TYPES.Property}function ey(e){return e.type===be.AST_NODE_TYPES.Program}function Ro(e){return e.type===be.AST_NODE_TYPES.Literal}function ty(e){return e.type===be.AST_NODE_TYPES.TemplateElement}function ny(e){return e.type===be.AST_NODE_TYPES.TemplateLiteral}function ry(e){return e.type===be.AST_NODE_TYPES.ImportDeclaration}function mh(e){return e.type===be.AST_NODE_TYPES.ImportSpecifier}function mc(e){return Ro(e)&&typeof e.value=="string"}function gc(e){return e.type===be.AST_NODE_TYPES.MethodDefinition}function $2(e){return e.type===be.AST_NODE_TYPES.Super}function U2(e){return e.type===be.AST_TOKEN_TYPES.Keyword&&e.value==="implements"}});var sy=C(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.extractPropertyComments=V2;Bo.buildSortedPropertiesWithComments=q2;Bo.getObjectIndentation=H2;function V2(e,t,n,r){let s=e.getAllComments(),i=new Set,a=new Map,o=new Map;for(let u of s){let p=e.getLocFromIndex(u.range[0]).line;o.has(p)||o.set(p,[]),o.get(p)?.push(u)}let c=(u,p)=>`${u}-${p}`;for(let u=0;u<t.length;u++){let p=t[u],h=p.key.name,f=p.range,v=[],E=u>0?t[u-1].range[1]:n.range[0]+1;for(let V of s){let q=c(V.range[0],V.range[1]);V.range[0]>E&&V.range[0]<f[0]&&!i.has(q)&&(v.push(r+e.getText(V)),i.add(q))}let T=e.getText(p).replace(/,\s*$/,""),y=[],N=e.getLocFromIndex(f[1]).line;if(o.has(N)){let V=o.get(N)||[];for(let q of V){let le=c(q.range[0],q.range[1]);if(q.range[0]>f[1]&&!i.has(le)){let Ht=e.getText().substring(f[1],q.range[0]).replace(/,/g,"");y.push(Ht+e.getText(q)),i.add(le)}}}a.set(h,{name:h,leadingComments:v,value:T,trailingComments:y})}return a}function q2(e,t,n){let r=[];for(let s=0;s<e.length;s++){let i=e[s],a=t.get(i);if(a){a.leadingComments.length>0&&r.push(...a.leadingComments);let o=s===e.length-1,c=n+a.value;o||(c+=","),a.trailingComments.length>0&&a.trailingComments.forEach(u=>{c+=u}),r.push(c)}}return r.join(`
4
+ `)}function H2(e,t){let r=e.getText(t).split(`
5
+ `);return r[1]&&r[1].match(/^\s*/)?.[0]||""}});var oy=C(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.getImportAddFix=iy;pr.getImportRemoveFix=ay;pr.getImportReplaceFix=j2;pr.getImplementsSchemaFixer=W2;pr.getDecoratorPropertyAddFix=z2;pr.getImplementsRemoveFix=G2;pr.getNodeToCommaRemoveFix=Y2;var oa=fc(),gn=vc(),la=ko();function iy({compatibleWithTypeOnlyImport:e=!1,fixer:t,importName:n,moduleName:r,node:s}){let i=`import { ${n} } from '${r}';
6
+ `,a=(0,gn.getImportDeclarations)(s,r);if(!a?.length)return t.insertTextAfterRange([0,0],i);if((0,gn.getImportDeclarationSpecifier)(a,n))return;let c=(0,gn.getCorrespondentImportClause)(a,e);if(!c)return t.insertTextAfterRange([0,0],i);let u=(0,gn.isImportDefaultSpecifier)(c)?`, { ${n} }`:`, ${n}`;return t.insertTextAfter(c,u)}function ay(e,t,n,r){let{importDeclaration:s,importSpecifier:i}=(0,gn.getImportDeclarationSpecifier)(t,n)??{};if(!s||!i)return;let a=s.specifiers[0]===i,o=(0,la.getLast)(s.specifiers)===i;if(a&&o)return r.remove(s);let u=e.getTokenAfter(i);if(a&&u)return r.removeRange([i.range[0],u.range[1]]);let p=e.getTokenBefore(i);if(p)return r.removeRange([p.range[0],i.range[1]])}function j2({fixer:e,fromName:t,moduleName:n,node:r,sourceCode:s,toName:i}){let a=(0,gn.getImportDeclarations)(r,n),o=!!(a&&(0,gn.getImportDeclarationSpecifier)(a,i)),c=a?(0,gn.getImportDeclarationSpecifier)(a,t):void 0,u=oa.ASTUtils.findVariable(s.getScope(r),t)?.references.length===1;if(u&&!o&&c)return[e.replaceText(c.importSpecifier,i)];let p=o?void 0:iy({fixer:e,importName:i,moduleName:n,node:r}),h=u&&a?ay(s,a,t,e):void 0;return[p,h]}function W2({id:e,superClass:t,implements:n,typeParameters:r},s){if(Array.isArray(n)&&n.length>0)return{implementsNodeReplace:(0,la.getLast)(n),implementsTextReplace:`, ${s}`};let i=` implements ${s}`;return(0,la.isNotNullOrUndefined)(t)?{implementsNodeReplace:t,implementsTextReplace:i}:(0,la.isNotNullOrUndefined)(r)?{implementsNodeReplace:r,implementsTextReplace:i}:{implementsNodeReplace:e,implementsTextReplace:i}}function z2({expression:e},t,n){if(!(0,gn.isCallExpression)(e))return;let[r]=e.arguments;if(!r||!(0,gn.isObjectExpression)(r)){let[i,a]=e.range;return t.insertTextAfterRange([i+1,a-1],`{${n}}`)}let{properties:s}=r;if(s.length===0){let[i,a]=r.range;return t.insertTextAfterRange([i+1,a-1],n)}return t.insertTextAfter((0,la.getLast)(s),`, ${n}`)}function G2(e,t,n,r){let{implements:s}=t;if(!s)return;let i=(0,gn.getInterface)(t,n);if(!i)return;let a=s[0].expression===i,o=(0,la.getLast)(s).expression===i,c=a&&o,u=e.getTokenBefore(i);if(c)return!u||!(0,gn.isImplementsToken)(u)?void 0:r.removeRange([u.range[0],s[0].range[1]]);if(a){let p=e.getTokenAfter(i);return p?r.removeRange([i.range[0],p.range[1]]):void 0}return u?r.removeRange([u.range[0],i.range[1]]):void 0}function X2(e){return oa.ASTUtils.isClosingBraceToken(e)||oa.ASTUtils.isClosingBracketToken(e)||oa.ASTUtils.isClosingParenToken(e)}function Y2(e,t,n){let r=e.getTokenAfter(t),s=r&&oa.ASTUtils.isCommaToken(r)?r:void 0;if(s){let o=e.getTokenAfter(s,{includeComments:!0});if(o&&!X2(o))return n.removeRange([t.range[0],o.range[0]])}let i=e.getTokenBefore(t,{includeComments:!0}),a=i&&oa.ASTUtils.isCommaToken(i)?i.range[1]:t.range[0];return n.removeRange([a,s?.range[1]??t.range[1]])}});var ly=C(O=>{"use strict";Object.defineProperty(O,"__esModule",{value:!0});O.OUTPUT_PROPERTY_OR_GETTER=O.OUTPUT_ALIAS=O.OUTPUTS_METADATA_PROPERTY_LITERAL=O.INPUT_PROPERTY_OR_SETTER=O.INPUT_ALIAS=O.INPUTS_METADATA_PROPERTY_LITERAL=O.COMPONENT_OR_DIRECTIVE_SELECTOR_LITERAL=O.DIRECTIVE_SELECTOR_LITERAL=O.COMPONENT_SELECTOR_LITERAL=O.ALIAS_PROPERTY_VALUE=O.LITERAL_OR_TEMPLATE_ELEMENT=O.HOST_LISTENER_DECORATOR=O.HOST_BINDING_DECORATOR=O.OUTPUT_DECORATOR=O.INPUT_DECORATOR=O.MODULE_CLASS_DECORATOR=O.SERVICE_CLASS_DECORATOR=O.INJECTABLE_CLASS_DECORATOR=O.PIPE_CLASS_DECORATOR=O.DIRECTIVE_CLASS_DECORATOR=O.COMPONENT_CLASS_DECORATOR=O.COMPONENT_OR_DIRECTIVE_CLASS_DECORATOR=void 0;O.decoratorDefinition=K2;O.metadataProperty=Mo;O.methodDefinition=Q2;O.COMPONENT_OR_DIRECTIVE_CLASS_DECORATOR="ClassDeclaration > Decorator[expression.callee.name=/^(Component|Directive)$/]";O.COMPONENT_CLASS_DECORATOR='ClassDeclaration > Decorator[expression.callee.name="Component"]';O.DIRECTIVE_CLASS_DECORATOR='ClassDeclaration > Decorator[expression.callee.name="Directive"]';O.PIPE_CLASS_DECORATOR='ClassDeclaration > Decorator[expression.callee.name="Pipe"]';O.INJECTABLE_CLASS_DECORATOR='ClassDeclaration > Decorator[expression.callee.name="Injectable"]';O.SERVICE_CLASS_DECORATOR='ClassDeclaration > Decorator[expression.callee.name="Service"]';O.MODULE_CLASS_DECORATOR='ClassDeclaration > Decorator[expression.callee.name="NgModule"]';O.INPUT_DECORATOR='Decorator[expression.callee.name="Input"]';O.OUTPUT_DECORATOR='Decorator[expression.callee.name="Output"]';O.HOST_BINDING_DECORATOR='Decorator[expression.callee.name="HostBinding"]';O.HOST_LISTENER_DECORATOR='Decorator[expression.callee.name="HostListener"]';O.LITERAL_OR_TEMPLATE_ELEMENT=":matches(Literal, TemplateElement)";O.ALIAS_PROPERTY_VALUE=`ObjectExpression > Property[key.name='alias'] ${O.LITERAL_OR_TEMPLATE_ELEMENT}`;function K2(e){return`ClassDeclaration:has(Decorator[expression.callee.name=${e}])`}function Mo(e){return`Property:matches([key.name=${e}][computed=false], [key.value=${e}], [key.quasis.0.value.raw=${e}])`}function Q2(e){return`MethodDefinition:matches([key.name=${e}][computed=false], [key.value=${e}], [key.quasis.0.value.raw=${e}])`}O.COMPONENT_SELECTOR_LITERAL=`${O.COMPONENT_CLASS_DECORATOR} ${Mo("selector")} ${O.LITERAL_OR_TEMPLATE_ELEMENT}`;O.DIRECTIVE_SELECTOR_LITERAL=`${O.DIRECTIVE_CLASS_DECORATOR} ${Mo("selector")} ${O.LITERAL_OR_TEMPLATE_ELEMENT}`;O.COMPONENT_OR_DIRECTIVE_SELECTOR_LITERAL=`:matches(${O.COMPONENT_SELECTOR_LITERAL}, ${O.DIRECTIVE_SELECTOR_LITERAL})`;O.INPUTS_METADATA_PROPERTY_LITERAL=`${O.COMPONENT_OR_DIRECTIVE_CLASS_DECORATOR} ${Mo("inputs")} > ArrayExpression ${O.LITERAL_OR_TEMPLATE_ELEMENT}`;O.INPUT_ALIAS=[`:matches(PropertyDefinition, MethodDefinition[kind='set']) ${O.INPUT_DECORATOR} > CallExpression > Literal`,`:matches(PropertyDefinition, MethodDefinition[kind='set']) ${O.INPUT_DECORATOR} > CallExpression > TemplateLiteral > TemplateElement`,`:matches(PropertyDefinition, MethodDefinition[kind='set']) ${O.INPUT_DECORATOR} > CallExpression > ${O.ALIAS_PROPERTY_VALUE}`,`PropertyDefinition > CallExpression[callee.name='input'] > ${O.ALIAS_PROPERTY_VALUE}`,`PropertyDefinition > CallExpression:has(MemberExpression[object.name='input'][property.name='required']) > ${O.ALIAS_PROPERTY_VALUE}`].join(",");O.INPUT_PROPERTY_OR_SETTER=`:matches(PropertyDefinition, MethodDefinition[kind='set'])[computed=false]:has(${O.INPUT_DECORATOR}) > :matches(Identifier, Literal)`;O.OUTPUTS_METADATA_PROPERTY_LITERAL=`${O.COMPONENT_OR_DIRECTIVE_CLASS_DECORATOR} ${Mo("outputs")} > ArrayExpression ${O.LITERAL_OR_TEMPLATE_ELEMENT}`;O.OUTPUT_ALIAS=[`:matches(PropertyDefinition, MethodDefinition[kind='get']) ${O.OUTPUT_DECORATOR} ${O.LITERAL_OR_TEMPLATE_ELEMENT}`,`PropertyDefinition > CallExpression[callee.name='output'] > ${O.ALIAS_PROPERTY_VALUE}`].join(",");O.OUTPUT_PROPERTY_OR_GETTER=[`:matches(PropertyDefinition, MethodDefinition[kind='get'])[computed=false]:has(${O.OUTPUT_DECORATOR}) > :matches(Identifier, Literal)`,"PropertyDefinition[computed=false]:has(CallExpression[callee.name='output']) > :matches(Identifier, Literal)"].join(",")});var fe=C((v7,r1)=>{"use strict";var Tu=Object.defineProperty,J2=Object.getOwnPropertyDescriptor,Z2=Object.getOwnPropertyNames,eO=Object.prototype.hasOwnProperty,l=(e,t)=>Tu(e,"name",{value:t,configurable:!0}),tO=(e,t)=>{for(var n in t)Tu(e,n,{get:t[n],enumerable:!0})},nO=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Z2(t))!eO.call(e,s)&&s!==n&&Tu(e,s,{get:()=>t[s],enumerable:!(r=J2(t,s))||r.enumerable});return e},rO=e=>nO(Tu({},"__esModule",{value:!0}),e),sw={};tO(sw,{AST:()=>Ae,ASTWithName:()=>$l,ASTWithSource:()=>Gt,AbsoluteSourceSpan:()=>at,AbstractEmitterVisitor:()=>Kw,ArrayType:()=>yw,ArrowFunction:()=>Dm,ArrowFunctionExpr:()=>on,ArrowFunctionIdentifierParameter:()=>hT,Attribute:()=>Ti,Binary:()=>wt,BinaryOperator:()=>A,BinaryOperatorExpr:()=>ce,BindingPipe:()=>Ru,BindingPipeType:()=>Ia,BindingType:()=>$,Block:()=>Bn,BlockParameter:()=>of,BoundElementProperty:()=>Sd,BuiltinType:()=>sr,BuiltinTypeName:()=>nt,CUSTOM_ELEMENTS_SCHEMA:()=>Wc,Call:()=>ln,Chain:()=>Ul,ChangeDetectionStrategy:()=>Ai,ClassPropertyMapping:()=>zf,CombinedRecursiveAstVisitor:()=>wI,CommaExpr:()=>vm,Comment:()=>Yi,CommentTriviaType:()=>Pl,CompilerConfig:()=>qM,CompilerFacadeImpl:()=>_I,Component:()=>vt,Conditional:()=>Pm,ConditionalExpr:()=>an,ConstantPool:()=>ud,CssSelector:()=>Fi,DYNAMIC_TYPE:()=>L,DeclareFunctionStmt:()=>Ni,DeclareVarStmt:()=>Ke,Directive:()=>Ng,DomElementSchemaRegistry:()=>Ki,DynamicImportExpr:()=>Ma,EOF:()=>ma,Element:()=>jt,ElementSchemaRegistry:()=>c_,EmitterVisitorContext:()=>Xw,EmptyExpr:()=>gt,Expansion:()=>wi,ExpansionCase:()=>rp,Expression:()=>he,ExpressionBinding:()=>dT,ExpressionIdentifier:()=>rr,ExpressionStatement:()=>St,ExpressionType:()=>zt,ExternalExpr:()=>is,ExternalReference:()=>bw,FactoryTarget:()=>Sn,FunctionExpr:()=>Fn,HOST_BINDING_GUARD_COMMENT_TEXT:()=>qk,HtmlParser:()=>ev,HtmlTagDefinition:()=>re,I18NHtmlParser:()=>EF,IfStmt:()=>Iu,ImplicitReceiver:()=>dt,InstantiateExpr:()=>fl,Interpolation:()=>so,InvokeFunctionExpr:()=>Ye,JSDocComment:()=>Nu,JitEvaluator:()=>FT,KeyedRead:()=>Lr,LEGACY_OPTIONAL_CHAINING_DEFAULT:()=>Qm,LeadingComment:()=>_u,LetDeclaration:()=>lf,Lexer:()=>sp,LiteralArray:()=>Vl,LiteralArrayExpr:()=>ir,LiteralExpr:()=>ct,LiteralMap:()=>Pi,LiteralMapExpr:()=>Cn,LiteralMapPropertyAssignment:()=>Jr,LiteralMapSpreadAssignment:()=>Nr,LiteralPrimitive:()=>Dt,LocalizedString:()=>Cu,MapType:()=>ww,MatchSource:()=>Cr,MessageBundle:()=>SF,NONE_TYPE:()=>Mt,NO_ERRORS_SCHEMA:()=>zc,NodeWithI18n:()=>ls,NonNullAssert:()=>ql,NotExpr:()=>to,OutOfBandDiagnosticCategory:()=>Ll,ParenthesizedExpr:()=>Ft,ParenthesizedExpression:()=>Bu,ParseError:()=>k,ParseErrorLevel:()=>Xn,ParseLocation:()=>$a,ParseSourceFile:()=>Ou,ParseSourceSpan:()=>F,ParseSpan:()=>Pr,ParseTreeResult:()=>ec,ParsedEvent:()=>Ed,ParsedEventType:()=>Re,ParsedProperty:()=>Go,ParsedPropertyType:()=>En,ParsedVariable:()=>fT,Parser:()=>Og,PrefixNot:()=>Qc,PropertyRead:()=>Je,R3Identifiers:()=>m,R3NgModuleMetadataKind:()=>Tt,R3SelectorScopeMode:()=>qa,R3TargetBinder:()=>hv,R3TemplateDependencyKind:()=>bn,ReadKeyExpr:()=>An,ReadPropExpr:()=>ft,ReadVarExpr:()=>Un,RecursiveAstVisitor:()=>io,RecursiveVisitor:()=>iB,RegularExpressionLiteral:()=>Om,RegularExpressionLiteralExpr:()=>eo,ResourceLoader:()=>CI,ReturnStatement:()=>Qe,SCHEMA:()=>u_,STRING_TYPE:()=>Rl,SafeCall:()=>Hi,SafeKeyedRead:()=>Ua,SafePropertyRead:()=>ki,SelectorContext:()=>aw,SelectorListContext:()=>iw,SelectorMatcher:()=>Dl,SelectorlessMatcher:()=>jc,Serializer:()=>Xl,SplitInterpolation:()=>r_,SpreadElement:()=>Lm,SpreadElementExpr:()=>_i,StartTagComment:()=>AC,Statement:()=>Vi,StmtModifier:()=>ke,StringToken:()=>kc,StringTokenKind:()=>br,TagContentType:()=>wn,TaggedTemplateLiteral:()=>eu,TaggedTemplateLiteralExpr:()=>Za,TcbExpr:()=>w,TcbGenericContextBehavior:()=>om,TemplateBindingParseResult:()=>s_,TemplateLiteral:()=>tu,TemplateLiteralElement:()=>vd,TemplateLiteralElementExpr:()=>Au,TemplateLiteralExpr:()=>Ml,Text:()=>cs,ThisReceiver:()=>tr,TmplAstBlockNode:()=>Ct,TmplAstBoundAttribute:()=>Di,TmplAstBoundDeferredTrigger:()=>Rm,TmplAstBoundEvent:()=>Mu,TmplAstBoundText:()=>Li,TmplAstBoundaryBlock:()=>ao,TmplAstBoundaryErrorBlock:()=>jl,TmplAstComponent:()=>Jn,TmplAstContent:()=>oo,TmplAstContentBlock:()=>Hl,TmplAstDeferredBlock:()=>Xr,TmplAstDeferredBlockError:()=>Vu,TmplAstDeferredBlockLoading:()=>Uu,TmplAstDeferredBlockPlaceholder:()=>$u,TmplAstDeferredTrigger:()=>Rr,TmplAstDirective:()=>ka,TmplAstElement:()=>de,TmplAstForLoopBlock:()=>Zr,TmplAstForLoopBlockEmpty:()=>Hu,TmplAstHostElement:()=>Bt,TmplAstHoverDeferredTrigger:()=>Bm,TmplAstIcu:()=>ju,TmplAstIdleDeferredTrigger:()=>ET,TmplAstIfBlock:()=>zl,TmplAstIfBlockBranch:()=>yi,TmplAstImmediateDeferredTrigger:()=>ST,TmplAstInteractionDeferredTrigger:()=>Mm,TmplAstLetDeclaration:()=>Tr,TmplAstNeverDeferredTrigger:()=>vT,TmplAstRecursiveVisitor:()=>xT,TmplAstReference:()=>El,TmplAstSwitchBlock:()=>Wl,TmplAstSwitchBlockCase:()=>wT,TmplAstSwitchBlockCaseGroup:()=>qu,TmplAstSwitchExhaustiveCheck:()=>TT,TmplAstTemplate:()=>De,TmplAstText:()=>Yn,TmplAstTextAttribute:()=>vl,TmplAstTimerDeferredTrigger:()=>yT,TmplAstUnknownBlock:()=>Fm,TmplAstVariable:()=>cn,TmplAstViewportDeferredTrigger:()=>Fu,Token:()=>_n,TokenType:()=>H,TransplantedType:()=>fm,TreeError:()=>tt,Type:()=>$i,TypeModifier:()=>dl,TypeofExpr:()=>Ui,TypeofExpression:()=>Jc,Unary:()=>ll,UnaryOperator:()=>Qr,UnaryOperatorExpr:()=>_r,VERSION:()=>kF,VariableBinding:()=>nu,Version:()=>zw,ViewEncapsulation:()=>rn,VoidExpr:()=>Bl,VoidExpression:()=>Zc,WrappedNodeExpr:()=>se,Xliff:()=>rk,Xliff2:()=>ok,Xmb:()=>LT,XmlParser:()=>Qi,Xtb:()=>ck,_ATTR_TO_PROP:()=>Rg,compileClassDebugInfo:()=>$k,compileClassMetadata:()=>wv,compileComponentClassMetadata:()=>dk,compileComponentDeclareClassMetadata:()=>mk,compileComponentFromMetadata:()=>iv,compileDeclareClassMetadata:()=>Av,compileDeclareComponentFromMetadata:()=>xk,compileDeclareDirectiveFromMetadata:()=>vk,compileDeclareFactoryFunction:()=>Nk,compileDeclareInjectableFromMetadata:()=>Ik,compileDeclareInjectorFromMetadata:()=>Dk,compileDeclareNgModuleFromMetadata:()=>Rk,compileDeclarePipeFromMetadata:()=>Mk,compileDeclareServiceFromMetadata:()=>Pk,compileDeferResolverFunction:()=>yI,compileDirectiveFromMetadata:()=>sv,compileFactoryFunction:()=>Sr,compileHmrInitializer:()=>Uk,compileHmrUpdateCallback:()=>Vk,compileInjectable:()=>iu,compileInjector:()=>au,compileNgModule:()=>Zm,compileOpaqueAsyncClassMetadata:()=>fk,compilePipeFromMetadata:()=>ou,compileService:()=>Su,computeMsgId:()=>bu,core:()=>aO,createCssSelectorFromNode:()=>Qu,createHostBindingsBlockGuard:()=>Iv,createHostElement:()=>Hk,createInjectableType:()=>po,createMayBeForwardRefExpression:()=>Gl,delegateToFactory:()=>Tl,devOnlyGuardedExpression:()=>Oi,emitDistinctChangesOnlyDefaultValue:()=>cw,encapsulateStyle:()=>EI,escapeRegExp:()=>jw,findMatchingDirectivesAndPipes:()=>xI,generateTypeCheckBlock:()=>n1,getHtmlTagDefinition:()=>Cl,getNsPrefix:()=>wl,getSafePropertyAccessString:()=>Vm,identifierName:()=>km,isNgContainer:()=>ru,isNgContent:()=>yl,isNgTemplate:()=>jm,isUnsafeObjectKey:()=>ji,jsDocComment:()=>Pu,leadingComment:()=>ku,literal:()=>g,literalMap:()=>je,makeBindingParser:()=>ss,mergeNsAndName:()=>Pa,outputAst:()=>gO,parseHostBindings:()=>cv,parseTemplate:()=>pp,preserveWhitespacesDefault:()=>yv,publishFacade:()=>Sv,r3JitTypeSourceSpan:()=>Im,sanitizeIdentifier:()=>Er,splitNsName:()=>ot,tmplAstVisitAll:()=>te,verifyHostBindings:()=>uv,visitAll:()=>M});r1.exports=rO(sw);var cy=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g"),Fi=class Tc{static{l(this,"CssSelector")}element=null;classNames=[];attrs=[];notSelectors=[];static parse(t){let n=[],r=l((c,u)=>{u.notSelectors.length>0&&!u.element&&u.classNames.length==0&&u.attrs.length==0&&(u.element="*"),c.push(u)},"_addResult"),s=new Tc,i,a=s,o=!1;for(cy.lastIndex=0;i=cy.exec(t);){if(i[1]){if(o)throw new Error("Nesting :not in a selector is not allowed");o=!0,a=new Tc,s.notSelectors.push(a)}let c=i[2];if(c){let p=i[3];p==="#"?a.addAttribute("id",c.slice(1)):p==="."?a.addClassName(c.slice(1)):a.setElement(c)}let u=i[4];if(u&&a.addAttribute(a.unescapeAttribute(u),i[6]),i[7]&&(o=!1,a=s),i[8]){if(o)throw new Error("Multiple selectors in :not are not supported");r(n,s),s=a=new Tc}}return r(n,s),n}unescapeAttribute(t){let n="",r=!1;for(let s=0;s<t.length;s++){let i=t.charAt(s);if(i==="\\"){r=!0;continue}if(i==="$"&&!r)throw new Error(`Error in attribute selector "${t}". Unescaped "$" is not supported. Please escape with "\\$".`);r=!1,n+=i}return n}escapeAttribute(t){return t.replace(/\\/g,"\\\\").replace(/\$/g,"\\$")}isElementSelector(){return this.hasElementSelector()&&this.classNames.length==0&&this.attrs.length==0&&this.notSelectors.length===0}hasElementSelector(){return!!this.element}setElement(t=null){this.element=t}getAttrs(){let t=[];return this.classNames.length>0&&t.push("class",this.classNames.join(" ")),t.concat(this.attrs)}addAttribute(t,n=""){this.attrs.push(t,n&&n.toLowerCase()||"")}addClassName(t){this.classNames.push(t.toLowerCase())}toString(){let t=this.element||"";if(this.classNames&&this.classNames.forEach(n=>t+=`.${n}`),this.attrs)for(let n=0;n<this.attrs.length;n+=2){let r=this.escapeAttribute(this.attrs[n]),s=this.attrs[n+1];t+=`[${r}${s?"="+s:""}]`}return this.notSelectors.forEach(n=>t+=`:not(${n})`),t}},Dl=class Ch{static{l(this,"SelectorMatcher")}static createNotMatcher(t){let n=new Ch;return n.addSelectables(t,null),n}_elementMap=new Map;_elementPartialMap=new Map;_classMap=new Map;_classPartialMap=new Map;_attrValueMap=new Map;_attrValuePartialMap=new Map;_listContexts=[];addSelectables(t,n){let r=null;t.length>1&&(r=new iw(t),this._listContexts.push(r));for(let s=0;s<t.length;s++)this._addSelectable(t[s],n,r)}_addSelectable(t,n,r){let s=this,i=t.element,a=t.classNames,o=t.attrs,c=new aw(t,n,r);if(i&&(o.length===0&&a.length===0?this._addTerminal(s._elementMap,i,c):s=this._addPartial(s._elementPartialMap,i)),a)for(let u=0;u<a.length;u++){let p=o.length===0&&u===a.length-1,h=a[u];p?this._addTerminal(s._classMap,h,c):s=this._addPartial(s._classPartialMap,h)}if(o)for(let u=0;u<o.length;u+=2){let p=u===o.length-2,h=o[u],f=o[u+1];if(p){let v=s._attrValueMap,E=v.get(h);E||(E=new Map,v.set(h,E)),this._addTerminal(E,f,c)}else{let v=s._attrValuePartialMap,E=v.get(h);E||(E=new Map,v.set(h,E)),s=this._addPartial(E,f)}}}_addTerminal(t,n,r){let s=t.get(n);s||(s=[],t.set(n,s)),s.push(r)}_addPartial(t,n){let r=t.get(n);return r||(r=new Ch,t.set(n,r)),r}match(t,n){let r=!1,s=t.element,i=t.classNames,a=t.attrs;for(let o=0;o<this._listContexts.length;o++)this._listContexts[o].alreadyMatched=!1;if(r=this._matchTerminal(this._elementMap,s,t,n)||r,r=this._matchPartial(this._elementPartialMap,s,t,n)||r,i)for(let o=0;o<i.length;o++){let c=i[o];r=this._matchTerminal(this._classMap,c,t,n)||r,r=this._matchPartial(this._classPartialMap,c,t,n)||r}if(a)for(let o=0;o<a.length;o+=2){let c=a[o],u=a[o+1],p=this._attrValueMap.get(c);u&&(r=this._matchTerminal(p,"",t,n)||r),r=this._matchTerminal(p,u,t,n)||r;let h=this._attrValuePartialMap.get(c);u&&(r=this._matchPartial(h,"",t,n)||r),r=this._matchPartial(h,u,t,n)||r}return r}_matchTerminal(t,n,r,s){if(!t||typeof n!="string")return!1;let i=t.get(n)||[],a=t.get("*");if(a&&(i=i.concat(a)),i.length===0)return!1;let o,c=!1;for(let u=0;u<i.length;u++)o=i[u],c=o.finalize(r,s)||c;return c}_matchPartial(t,n,r,s){if(!t||typeof n!="string")return!1;let i=t.get(n);return i?i.match(r,s):!1}},iw=class{static{l(this,"SelectorListContext")}selectors;alreadyMatched=!1;constructor(e){this.selectors=e}},aw=class{static{l(this,"SelectorContext")}selector;cbContext;listContext;notSelectors;constructor(e,t,n){this.selector=e,this.cbContext=t,this.listContext=n,this.notSelectors=e.notSelectors}finalize(e,t){let n=!0;return this.notSelectors.length>0&&(!this.listContext||!this.listContext.alreadyMatched)&&(n=!Dl.createNotMatcher(this.notSelectors).match(e,null)),n&&t&&(!this.listContext||!this.listContext.alreadyMatched)&&(this.listContext&&(this.listContext.alreadyMatched=!0),t(this.selector,this.cbContext)),n}},jc=class{static{l(this,"SelectorlessMatcher")}registry;constructor(e){this.registry=e}match(e){return this.registry.has(e)?this.registry.get(e):[]}},ee;(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",e[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING"})(ee||(ee={}));var Wo,_h="svg",sO="math",Nh="",uy="*",Ih=l(()=>Object.create(null),"createNullObj");function ow(){return Wo||(Wo=Ih(),hr(ee.HTML,void 0,[["iframe",["srcdoc"]],["*",["innerHTML","outerHTML"]]]),hr(ee.STYLE,void 0,[["*",["style"]]]),hr(ee.URL,void 0,[["*",["formAction"]],["area",["href"]],["a",["href","xlink:href"]],["form",["action"]],["img",["src"]],["video",["src"]]]),hr(ee.URL,sO,[["*",["href","xlink:href"]]]),hr(ee.RESOURCE_URL,void 0,[["base",["href"]],["embed",["src"]],["frame",["src"]],["iframe",["src"]],["link",["href"]],["object",["codebase","data"]]]),hr(ee.URL,_h,[["a",["href","xlink:href"]]]),hr(ee.ATTRIBUTE_NO_BINDING,_h,[["animate",["attributeName","values","to","from"]],["set",["to","attributeName"]],["animateMotion",["attributeName"]],["animateTransform",["attributeName"]]]),hr(ee.ATTRIBUTE_NO_BINDING,void 0,[["unknown",["attributeName","values","to","from","sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority","credentialless"]],["iframe",["sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority","credentialless"]]]),Wo)}l(ow,"SECURITY_SCHEMA");function hr(e,t,n){let r=t??Nh;for(let[s,i]of n){let a=s.toLowerCase();for(let o of i){let c=o.toLowerCase(),u=Wo[c]??=Ih(),p=u[r]??=Ih();p[a]=e}}}l(hr,"registerContext");function lw(e,t,n){let s=ow()[t.toLowerCase()];if(!s)return ee.NONE;let i=e.toLowerCase(),a;if(n){let o=s[n];o&&(a=o[i]??o[uy])}if(a===void 0){let o=s[Nh];o&&(a=o[i]??o[uy])}if(a===void 0&&(!n||n===Nh)){let o=s[_h];o&&(a=o[i])}return a??ee.NONE}l(lw,"checkSecurityContext");var cw=!0,rn;(function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom"})(rn||(rn={}));var Ai;(function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e[e.Eager=1]="Eager"})(Ai||(Ai={}));var pi;(function(e){e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(pi||(pi={}));var Wc={name:"custom-elements"},zc={name:"no-errors-schema"},iO=Function,Ci;(function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore"})(Ci||(Ci={}));function uw(e){let t=e.classNames&&e.classNames.length?[8,...e.classNames]:[];return[e.element&&e.element!=="*"?e.element:"",...e.attrs,...t]}l(uw,"parserSelectorToSimpleSelector");function pw(e){let 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]:[]}l(pw,"parserSelectorToNegativeSelector");function hw(e){let t=uw(e),n=e.notSelectors&&e.notSelectors.length?e.notSelectors.map(r=>pw(r)):[];return t.concat(...n)}l(hw,"parserSelectorToR3Selector");function Ol(e){return e?Fi.parse(e).map(hw):[]}l(Ol,"parseSelectorToR3Selector");var aO=Object.freeze({__proto__:null,CUSTOM_ELEMENTS_SCHEMA:Wc,get ChangeDetectionStrategy(){return Ai},get InputFlags(){return pi},get MissingTranslationStrategy(){return Ci},NO_ERRORS_SCHEMA:zc,get SecurityContext(){return ee},Type:iO,get ViewEncapsulation(){return rn},emitDistinctChangesOnlyDefaultValue:cw,parseSelectorToR3Selector:Ol}),Sn;(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",e[e.Service=5]="Service"})(Sn||(Sn={}));var py;(function(e){e[e.Directive=0]="Directive",e[e.Pipe=1]="Pipe",e[e.NgModule=2]="NgModule"})(py||(py={}));var hy;(function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom"})(hy||(hy={}));var Gc;function pm(e){return e.id||hm(e)}l(pm,"digest$1");function hm(e){return mw(fw(e.nodes).join("")+`[${e.meaning}]`)}l(hm,"computeDigest");function xu(e){return e.id||dm(e)}l(xu,"decimalDigest");function dm(e){let t=new lO,n=e.nodes.map(r=>r.visit(t,null));return bu(n.join(""),e.meaning)}l(dm,"computeDecimalDigest");var dw=class{static{l(this,"_SerializerVisitor")}visitText(e,t){return e.value}visitContainer(e,t){return`[${e.children.map(n=>n.visit(this)).join(", ")}]`}visitIcu(e,t){let n=Object.keys(e.cases).map(r=>`${r} {${e.cases[r].visit(this)}}`);return`{${e.expression}, ${e.type}, ${n.join(", ")}}`}visitTagPlaceholder(e,t){return e.isVoid?`<ph tag name="${e.startName}"/>`:`<ph tag name="${e.startName}">${e.children.map(n=>n.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>`}visitBlockPlaceholder(e,t){return`<ph block name="${e.startName}">${e.children.map(n=>n.visit(this)).join(", ")}</ph name="${e.closeName}">`}},oO=new dw;function fw(e){return e.map(t=>t.visit(oO,null))}l(fw,"serializeNodes");var lO=class extends dw{static{l(this,"_SerializerIgnoreIcuExpVisitor")}visitIcu(e){let t=Object.keys(e.cases).map(n=>`${n} {${e.cases[n].visit(this)}}`);return`{${e.type}, ${t.join(", ")}}`}};function mw(e){Gc??=new TextEncoder;let t=[...Gc.encode(e)],n=Ew(t,Xc.Big),r=t.length*8,s=new Uint32Array(80),i=1732584193,a=4023233417,o=2562383102,c=271733878,u=3285377520;n[r>>5]|=128<<24-r%32,n[(r+64>>9<<4)+15]=r;for(let p=0;p<n.length;p+=16){let h=i,f=a,v=o,E=c,T=u;for(let y=0;y<80;y++){y<16?s[y]=n[p+y]:s[y]=xc(s[y-3]^s[y-8]^s[y-14]^s[y-16],1);let N=gw(y,a,o,c),V=N[0],q=N[1],le=[xc(i,5),V,u,q,s[y]].reduce(ni);u=c,c=o,o=xc(a,30),a=i,i=le}i=ni(i,h),a=ni(a,f),o=ni(o,v),c=ni(c,E),u=ni(u,T)}return ha(i)+ha(a)+ha(o)+ha(c)+ha(u)}l(mw,"sha1");function ha(e){return(e>>>0).toString(16).padStart(8,"0")}l(ha,"toHexU32");function gw(e,t,n,r){return e<20?[t&n|~t&r,1518500249]:e<40?[t^n^r,1859775393]:e<60?[t&n|t&r|n&r,2400959708]:[t^n^r,3395469782]}l(gw,"fk");function kh(e){Gc??=new TextEncoder;let t=Gc.encode(e),n=new DataView(t.buffer,t.byteOffset,t.byteLength),r=Ph(n,t.length,0),s=Ph(n,t.length,102072);return r==0&&(s==0||s==1)&&(r=r^319790063,s=s^-1801410264),BigInt.asUintN(32,BigInt(r))<<BigInt(32)|BigInt.asUintN(32,BigInt(s))}l(kh,"fingerprint");function bu(e,t=""){let n=kh(e);return t&&(n=BigInt.asUintN(64,n<<BigInt(1))|n>>BigInt(63)&BigInt(1),n+=kh(t)),BigInt.asUintN(63,n).toString()}l(bu,"computeMsgId");function Ph(e,t,n){let r=2654435769,s=2654435769,i=0,a=t-12;for(;i<=a;i+=12){r+=e.getUint32(i,!0),s+=e.getUint32(i+4,!0),n+=e.getUint32(i+8,!0);let c=Lh(r,s,n);r=c[0],s=c[1],n=c[2]}let o=t-i;return n+=t,o>=4?(r+=e.getUint32(i,!0),i+=4,o>=8?(s+=e.getUint32(i,!0),i+=4,o>=9&&(n+=e.getUint8(i++)<<8),o>=10&&(n+=e.getUint8(i++)<<16),o===11&&(n+=e.getUint8(i++)<<24)):(o>=5&&(s+=e.getUint8(i++)),o>=6&&(s+=e.getUint8(i++)<<8),o===7&&(s+=e.getUint8(i++)<<16))):(o>=1&&(r+=e.getUint8(i++)),o>=2&&(r+=e.getUint8(i++)<<8),o===3&&(r+=e.getUint8(i++)<<16)),Lh(r,s,n)[2]}l(Ph,"hash32");function Lh(e,t,n){return e-=t,e-=n,e^=n>>>13,t-=n,t-=e,t^=e<<8,n-=e,n-=t,n^=t>>>13,e-=t,e-=n,e^=n>>>12,t-=n,t-=e,t^=e<<16,n-=e,n-=t,n^=t>>>5,e-=t,e-=n,e^=n>>>3,t-=n,t-=e,t^=e<<10,n-=e,n-=t,n^=t>>>15,[e,t,n]}l(Lh,"mix");var Xc;(function(e){e[e.Little=0]="Little",e[e.Big=1]="Big"})(Xc||(Xc={}));function ni(e,t){return vw(e,t)[1]}l(ni,"add32");function vw(e,t){let n=(e&65535)+(t&65535),r=(e>>>16)+(t>>>16)+(n>>>16);return[r>>>16,r<<16|n&65535]}l(vw,"add32to64");function xc(e,t){return e<<t|e>>>32-t}l(xc,"rol32");function Ew(e,t){let n=e.length+3>>>2,r=[];for(let s=0;s<n;s++)r[s]=Sw(e,s*4,t);return r}l(Ew,"bytesToWords32");function Dh(e,t){return t>=e.length?0:e[t]}l(Dh,"byteAt");function Sw(e,t,n){let r=0;if(n===Xc.Big)for(let s=0;s<4;s++)r+=Dh(e,t+s)<<24-8*s;else for(let s=0;s<4;s++)r+=Dh(e,t+s)<<8*s;return r}l(Sw,"wordAt");var dl;(function(e){e[e.None=0]="None",e[e.Const=1]="Const"})(dl||(dl={}));var $i=class{static{l(this,"Type")}modifiers;constructor(e=dl.None){this.modifiers=e}hasModifier(e){return(this.modifiers&e)!==0}},nt;(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"})(nt||(nt={}));var sr=class extends $i{static{l(this,"BuiltinType")}name;constructor(e,t){super(t),this.name=e}visitType(e,t){return e.visitBuiltinType(this,t)}},zt=class extends $i{static{l(this,"ExpressionType")}value;typeParams;constructor(e,t,n=null){super(t),this.value=e,this.typeParams=n}visitType(e,t){return e.visitExpressionType(this,t)}},yw=class extends $i{static{l(this,"ArrayType")}of;constructor(e,t){super(t),this.of=e}visitType(e,t){return e.visitArrayType(this,t)}},ww=class extends $i{static{l(this,"MapType")}valueType;constructor(e,t){super(t),this.valueType=e||null}visitType(e,t){return e.visitMapType(this,t)}},fm=class extends $i{static{l(this,"TransplantedType")}type;constructor(e,t){super(t),this.type=e}visitType(e,t){return e.visitTransplantedType(this,t)}},L=new sr(nt.Dynamic),Yr=new sr(nt.Inferred),Tw=new sr(nt.Bool),cO=new sr(nt.Int),Kr=new sr(nt.Number),Rl=new sr(nt.String),uO=new sr(nt.Function),Mt=new sr(nt.None),Qr;(function(e){e[e.Minus=0]="Minus",e[e.Plus=1]="Plus"})(Qr||(Qr={}));var A;(function(e){e[e.Equals=0]="Equals",e[e.NotEquals=1]="NotEquals",e[e.Assign=2]="Assign",e[e.Identical=3]="Identical",e[e.NotIdentical=4]="NotIdentical",e[e.Minus=5]="Minus",e[e.Plus=6]="Plus",e[e.Divide=7]="Divide",e[e.Multiply=8]="Multiply",e[e.Modulo=9]="Modulo",e[e.And=10]="And",e[e.Or=11]="Or",e[e.BitwiseOr=12]="BitwiseOr",e[e.BitwiseAnd=13]="BitwiseAnd",e[e.Lower=14]="Lower",e[e.LowerEquals=15]="LowerEquals",e[e.Bigger=16]="Bigger",e[e.BiggerEquals=17]="BiggerEquals",e[e.NullishCoalesce=18]="NullishCoalesce",e[e.Exponentiation=19]="Exponentiation",e[e.In=20]="In",e[e.InstanceOf=21]="InstanceOf",e[e.AdditionAssignment=22]="AdditionAssignment",e[e.SubtractionAssignment=23]="SubtractionAssignment",e[e.MultiplicationAssignment=24]="MultiplicationAssignment",e[e.DivisionAssignment=25]="DivisionAssignment",e[e.RemainderAssignment=26]="RemainderAssignment",e[e.ExponentiationAssignment=27]="ExponentiationAssignment",e[e.AndAssignment=28]="AndAssignment",e[e.OrAssignment=29]="OrAssignment",e[e.NullishCoalesceAssignment=30]="NullishCoalesceAssignment"})(A||(A={}));function mm(e,t){return e==null||t==null?e==t:e.isEquivalent(t)}l(mm,"nullSafeIsEquivalent");function gm(e,t,n){let r=e.length;if(r!==t.length)return!1;for(let s=0;s<r;s++)if(!n(e[s],t[s]))return!1;return!0}l(gm,"areAllEquivalentPredicate");function At(e,t){return gm(e,t,(n,r)=>n.isEquivalent(r))}l(At,"areAllEquivalent");var he=class{static{l(this,"Expression")}leadingComments;type;sourceSpan;constructor(e,t,n){this.leadingComments=n,this.type=e||null,this.sourceSpan=t||null}prop(e,t){return new ft(this,e,null,t)}key(e,t,n){return new An(this,e,t,n)}callFn(e,t,n,r){return new Ye(this,e,null,t,n,r)}instantiate(e,t,n,r){return new fl(this,e,t,n)}conditional(e,t=null,n,r){return new an(this,e,t,null,n)}equals(e,t){return new ce(A.Equals,this,e,null,t)}notEquals(e,t){return new ce(A.NotEquals,this,e,null,t)}identical(e,t){return new ce(A.Identical,this,e,null,t)}notIdentical(e,t){return new ce(A.NotIdentical,this,e,null,t)}minus(e,t){return new ce(A.Minus,this,e,null,t)}plus(e,t){return new ce(A.Plus,this,e,null,t)}divide(e,t){return new ce(A.Divide,this,e,null,t)}multiply(e,t){return new ce(A.Multiply,this,e,null,t)}modulo(e,t){return new ce(A.Modulo,this,e,null,t)}power(e,t){return new ce(A.Exponentiation,this,e,null,t)}and(e,t){return new ce(A.And,this,e,null,t)}bitwiseOr(e,t){return new ce(A.BitwiseOr,this,e,null,t)}bitwiseAnd(e,t){return new ce(A.BitwiseAnd,this,e,null,t)}or(e,t){return new ce(A.Or,this,e,null,t)}lower(e,t){return new ce(A.Lower,this,e,null,t)}lowerEquals(e,t){return new ce(A.LowerEquals,this,e,null,t)}bigger(e,t){return new ce(A.Bigger,this,e,null,t)}biggerEquals(e,t){return new ce(A.BiggerEquals,this,e,null,t)}isBlank(e){return this.equals(_w,e)}nullishCoalesce(e,t){return new ce(A.NullishCoalesce,this,e,null,t)}toStmt(e){return new St(this,null,e)}},Un=class Oh extends he{static{l(this,"ReadVarExpr")}name;constructor(t,n,r,s){super(n,r,s),this.name=t}isEquivalent(t){return t instanceof Oh&&this.name===t.name}isConstant(){return!1}visitExpression(t,n){return t.visitReadVarExpr(this,n)}clone(){return new Oh(this.name,this.type,this.sourceSpan)}set(t){return new ce(A.Assign,this,t,null,this.sourceSpan)}},Ui=class Rh extends he{static{l(this,"TypeofExpr")}expr;constructor(t,n,r,s){super(n,r,s),this.expr=t}visitExpression(t,n){return t.visitTypeofExpr(this,n)}isEquivalent(t){return t instanceof Rh&&t.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new Rh(this.expr.clone())}},Bl=class Bh extends he{static{l(this,"VoidExpr")}expr;constructor(t,n,r,s){super(n,r,s),this.expr=t}visitExpression(t,n){return t.visitVoidExpr(this,n)}isEquivalent(t){return t instanceof Bh&&t.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new Bh(this.expr.clone())}},se=class Mh extends he{static{l(this,"WrappedNodeExpr")}node;constructor(t,n,r,s){super(n,r,s),this.node=t}isEquivalent(t){return t instanceof Mh&&this.node===t.node}isConstant(){return!1}visitExpression(t,n){return t.visitWrappedNodeExpr(this,n)}clone(){return new Mh(this.node,this.type,this.sourceSpan)}},Ye=class Fh extends he{static{l(this,"InvokeFunctionExpr")}fn;args;pure;isOptional;constructor(t,n,r,s,i=!1,a,o=!1){super(r,s,a),this.fn=t,this.args=n,this.pure=i,this.isOptional=o}get receiver(){return this.fn}isEquivalent(t){return t instanceof Fh&&this.fn.isEquivalent(t.fn)&&At(this.args,t.args)&&this.pure===t.pure}isConstant(){return!1}visitExpression(t,n){return t.visitInvokeFunctionExpr(this,n)}clone(){return new Fh(this.fn.clone(),this.args.map(t=>t.clone()),this.type,this.sourceSpan,this.pure,[],this.isOptional)}},Za=class $h extends he{static{l(this,"TaggedTemplateLiteralExpr")}tag;template;constructor(t,n,r,s,i){super(r,s,i),this.tag=t,this.template=n}isEquivalent(t){return t instanceof $h&&this.tag.isEquivalent(t.tag)&&this.template.isEquivalent(t.template)}isConstant(){return!1}visitExpression(t,n){return t.visitTaggedTemplateLiteralExpr(this,n)}clone(){return new $h(this.tag.clone(),this.template.clone(),this.type,this.sourceSpan)}},fl=class Uh extends he{static{l(this,"InstantiateExpr")}classExpr;args;constructor(t,n,r,s,i){super(r,s,i),this.classExpr=t,this.args=n}isEquivalent(t){return t instanceof Uh&&this.classExpr.isEquivalent(t.classExpr)&&At(this.args,t.args)}isConstant(){return!1}visitExpression(t,n){return t.visitInstantiateExpr(this,n)}clone(){return new Uh(this.classExpr.clone(),this.args.map(t=>t.clone()),this.type,this.sourceSpan)}},eo=class Vh extends he{static{l(this,"RegularExpressionLiteralExpr")}body;flags;constructor(t,n,r,s){super(null,r,s),this.body=t,this.flags=n}isEquivalent(t){return t instanceof Vh&&this.body===t.body&&this.flags===t.flags}isConstant(){return!0}visitExpression(t,n){return t.visitRegularExpressionLiteral(this,n)}clone(){return new Vh(this.body,this.flags,this.sourceSpan)}},ct=class qh extends he{static{l(this,"LiteralExpr")}value;constructor(t,n,r,s){super(n,r,s),this.value=t}isEquivalent(t){return t instanceof qh&&this.value===t.value}isConstant(){return!0}visitExpression(t,n){return t.visitLiteralExpr(this,n)}clone(){return new qh(this.value,this.type,this.sourceSpan)}},Ml=class Hh extends he{static{l(this,"TemplateLiteralExpr")}elements;expressions;constructor(t,n,r,s){super(null,r,s),this.elements=t,this.expressions=n}isEquivalent(t){return t instanceof Hh&&gm(this.elements,t.elements,(n,r)=>n.text===r.text)&&At(this.expressions,t.expressions)}isConstant(){return!1}visitExpression(t,n){return t.visitTemplateLiteralExpr(this,n)}clone(){return new Hh(this.elements.map(t=>t.clone()),this.expressions.map(t=>t.clone()))}},Au=class jh extends he{static{l(this,"TemplateLiteralElementExpr")}text;rawText;constructor(t,n,r,s){super(Rl,n,s),this.text=t,this.rawText=r??Wh(bc(t))}visitExpression(t,n){return t.visitTemplateLiteralElementExpr(this,n)}isEquivalent(t){return t instanceof jh&&t.text===this.text&&t.rawText===this.rawText}isConstant(){return!0}clone(){return new jh(this.text,this.sourceSpan,this.rawText)}},Aa=class{static{l(this,"LiteralPiece")}text;sourceSpan;constructor(e,t){this.text=e,this.sourceSpan=t}},al=class{static{l(this,"PlaceholderPiece")}text;sourceSpan;associatedMessage;constructor(e,t,n){this.text=e,this.sourceSpan=t,this.associatedMessage=n}},pO="|",dy="@@",hO="\u241F",Cu=class xw extends he{static{l(this,"LocalizedString")}metaBlock;messageParts;placeHolderNames;expressions;constructor(t,n,r,s,i,a){super(Rl,i,a),this.metaBlock=t,this.messageParts=n,this.placeHolderNames=r,this.expressions=s}isEquivalent(t){return!1}isConstant(){return!1}visitExpression(t,n){return t.visitLocalizedString(this,n)}clone(){return new xw(this.metaBlock,this.messageParts,this.placeHolderNames,this.expressions.map(t=>t.clone()),this.sourceSpan)}serializeI18nHead(){let t=this.metaBlock.description||"";return this.metaBlock.meaning&&(t=`${this.metaBlock.meaning}${pO}${t}`),this.metaBlock.customId&&(t=`${t}${dy}${this.metaBlock.customId}`),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(n=>{t=`${t}${hO}${n}`}),zh(t,this.messageParts[0].text,this.getMessagePartSourceSpan(0))}getMessagePartSourceSpan(t){return this.messageParts[t]?.sourceSpan??this.sourceSpan}getPlaceholderSourceSpan(t){return this.placeHolderNames[t]?.sourceSpan??this.expressions[t]?.sourceSpan??this.sourceSpan}serializeI18nTemplatePart(t){let n=this.placeHolderNames[t-1],r=this.messageParts[t],s=n.text;return n.associatedMessage?.legacyIds.length===0&&(s+=`${dy}${bu(n.associatedMessage.messageString,n.associatedMessage.meaning)}`),zh(s,r.text,this.getMessagePartSourceSpan(t))}},bc=l(e=>e.replace(/\\/g,"\\\\"),"escapeSlashes"),dO=l(e=>e.replace(/^:/,"\\:"),"escapeStartingColon"),fO=l(e=>e.replace(/:/g,"\\:"),"escapeColons"),Wh=l(e=>e.replace(/`/g,"\\`").replace(/\${/g,"$\\{"),"escapeForTemplateLiteral");function zh(e,t,n){return e===""?{cooked:t,raw:Wh(dO(bc(t))),range:n}:{cooked:`:${e}:${t}`,raw:Wh(`:${fO(bc(e))}:${bc(t)}`),range:n}}l(zh,"createCookedRawString");var is=class Gh extends he{static{l(this,"ExternalExpr")}value;typeParams;constructor(t,n,r=null,s,i){super(n,s,i),this.value=t,this.typeParams=r}isEquivalent(t){return t instanceof Gh&&this.value.name===t.value.name&&this.value.moduleName===t.value.moduleName}isConstant(){return!1}visitExpression(t,n){return t.visitExternalExpr(this,n)}clone(){return new Gh(this.value,this.type,this.typeParams,this.sourceSpan)}},bw=class{static{l(this,"ExternalReference")}moduleName;name;constructor(e,t){this.moduleName=e,this.name=t}},an=class Xh extends he{static{l(this,"ConditionalExpr")}condition;falseCase;trueCase;constructor(t,n,r=null,s,i,a){super(s||n.type,i,a),this.condition=t,this.falseCase=r,this.trueCase=n}isEquivalent(t){return t instanceof Xh&&this.condition.isEquivalent(t.condition)&&this.trueCase.isEquivalent(t.trueCase)&&mm(this.falseCase,t.falseCase)}isConstant(){return!1}visitExpression(t,n){return t.visitConditionalExpr(this,n)}clone(){return new Xh(this.condition.clone(),this.trueCase.clone(),this.falseCase?.clone(),this.type,this.sourceSpan)}},Ma=class Yh extends he{static{l(this,"DynamicImportExpr")}url;urlComment;constructor(t,n,r,s){super(null,n,s),this.url=t,this.urlComment=r}isEquivalent(t){return t instanceof Yh&&this.url===t.url&&this.urlComment===t.urlComment}isConstant(){return!1}visitExpression(t,n){return t.visitDynamicImportExpr(this,n)}clone(){return new Yh(typeof this.url=="string"?this.url:this.url.clone(),this.sourceSpan,this.urlComment)}},to=class Kh extends he{static{l(this,"NotExpr")}condition;constructor(t,n,r){super(Tw,n,r),this.condition=t}isEquivalent(t){return t instanceof Kh&&this.condition.isEquivalent(t.condition)}isConstant(){return!1}visitExpression(t,n){return t.visitNotExpr(this,n)}clone(){return new Kh(this.condition.clone(),this.sourceSpan)}},Te=class Aw{static{l(this,"FnParam")}name;type;constructor(t,n=null){this.name=t,this.type=n}isEquivalent(t){return this.name===t.name}clone(){return new Aw(this.name,this.type)}},Fn=class Qh extends he{static{l(this,"FunctionExpr")}params;statements;name;constructor(t,n,r,s,i,a){super(r,s,a),this.params=t,this.statements=n,this.name=i}isEquivalent(t){return(t instanceof Qh||t instanceof Ni)&&At(this.params,t.params)&&At(this.statements,t.statements)}isConstant(){return!1}visitExpression(t,n){return t.visitFunctionExpr(this,n)}toDeclStmt(t,n){return new Ni(t,this.params,this.statements,this.type,n,this.sourceSpan)}clone(){return new Qh(this.params.map(t=>t.clone()),this.statements,this.type,this.sourceSpan,this.name)}},on=class Jh extends he{static{l(this,"ArrowFunctionExpr")}params;body;constructor(t,n,r,s,i){super(r,s,i),this.params=t,this.body=n}isEquivalent(t){return!(t instanceof Jh)||!At(this.params,t.params)?!1:this.body instanceof he&&t.body instanceof he?this.body.isEquivalent(t.body):Array.isArray(this.body)&&Array.isArray(t.body)?At(this.body,t.body):!1}isConstant(){return!1}visitExpression(t,n){return t.visitArrowFunctionExpr(this,n)}clone(){return new Jh(this.params.map(t=>t.clone()),Array.isArray(this.body)?this.body:this.body.clone(),this.type,this.sourceSpan)}toDeclStmt(t,n){return new Ke(t,this,Yr,n,this.sourceSpan)}},_r=class Zh extends he{static{l(this,"UnaryOperatorExpr")}operator;expr;parens;constructor(t,n,r,s,i=!0,a){super(r||Kr,s,a),this.operator=t,this.expr=n,this.parens=i}isEquivalent(t){return t instanceof Zh&&this.operator===t.operator&&this.expr.isEquivalent(t.expr)}isConstant(){return!1}visitExpression(t,n){return t.visitUnaryOperatorExpr(this,n)}clone(){return new Zh(this.operator,this.expr.clone(),this.type,this.sourceSpan,this.parens)}},Ft=class ed extends he{static{l(this,"ParenthesizedExpr")}expr;constructor(t,n,r,s){super(n,r,s),this.expr=t}visitExpression(t,n){return t.visitParenthesizedExpr(this,n)}isEquivalent(t){return t instanceof ed&&t.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new ed(this.expr.clone())}},ce=class td extends he{static{l(this,"BinaryOperatorExpr")}operator;rhs;lhs;constructor(t,n,r,s,i,a){super(s||n.type,i,a),this.operator=t,this.rhs=r,this.lhs=n}isEquivalent(t){return t instanceof td&&this.operator===t.operator&&this.lhs.isEquivalent(t.lhs)&&this.rhs.isEquivalent(t.rhs)}isConstant(){return!1}visitExpression(t,n){return t.visitBinaryOperatorExpr(this,n)}clone(){return new td(this.operator,this.lhs.clone(),this.rhs.clone(),this.type,this.sourceSpan)}isAssignment(){let t=this.operator;return t===A.Assign||t===A.AdditionAssignment||t===A.SubtractionAssignment||t===A.MultiplicationAssignment||t===A.DivisionAssignment||t===A.RemainderAssignment||t===A.ExponentiationAssignment||t===A.AndAssignment||t===A.OrAssignment||t===A.NullishCoalesceAssignment}},ft=class nd extends he{static{l(this,"ReadPropExpr")}receiver;name;isOptional;constructor(t,n,r,s,i,a=!1){super(r,s,i),this.receiver=t,this.name=n,this.isOptional=a}get index(){return this.name}isEquivalent(t){return t instanceof nd&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name&&this.isOptional===t.isOptional}isConstant(){return!1}visitExpression(t,n){return t.visitReadPropExpr(this,n)}set(t){return new ce(A.Assign,this.receiver.prop(this.name),t,null,this.sourceSpan)}clone(){return new nd(this.receiver.clone(),this.name,this.type,this.sourceSpan,[],this.isOptional)}},An=class rd extends he{static{l(this,"ReadKeyExpr")}receiver;index;isOptional;constructor(t,n,r,s,i,a=!1){super(r,s,i),this.receiver=t,this.index=n,this.isOptional=a}isEquivalent(t){return t instanceof rd&&this.receiver.isEquivalent(t.receiver)&&this.index.isEquivalent(t.index)&&this.isOptional===t.isOptional}isConstant(){return!1}visitExpression(t,n){return t.visitReadKeyExpr(this,n)}set(t){return new ce(A.Assign,this.receiver.key(this.index),t,null,this.sourceSpan)}clone(){return new rd(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan,[],this.isOptional)}},ir=class sd extends he{static{l(this,"LiteralArrayExpr")}entries;constructor(t,n,r,s){super(n,r,s),this.entries=t}isConstant(){return this.entries.every(t=>t.isConstant())}isEquivalent(t){return t instanceof sd&&At(this.entries,t.entries)}visitExpression(t,n){return t.visitLiteralArrayExpr(this,n)}clone(){return new sd(this.entries.map(t=>t.clone()),this.type,this.sourceSpan)}},Jr=class Cw{static{l(this,"LiteralMapPropertyAssignment")}key;value;quoted;leadingComments;constructor(t,n,r,s){this.key=t,this.value=n,this.quoted=r,this.leadingComments=s}isEquivalent(t){return this.key===t.key&&this.value.isEquivalent(t.value)}clone(){return new Cw(this.key,this.value.clone(),this.quoted,this.leadingComments?[...this.leadingComments]:void 0)}isConstant(){return this.value.isConstant()}},Nr=class id{static{l(this,"LiteralMapSpreadAssignment")}expression;constructor(t){this.expression=t}isEquivalent(t){return t instanceof id&&this.expression.isEquivalent(t.expression)}clone(){return new id(this.expression.clone())}isConstant(){return this.expression.isConstant()}},Cn=class ad extends he{static{l(this,"LiteralMapExpr")}entries;valueType=null;constructor(t,n,r,s){super(n,r,s),this.entries=t,n&&(this.valueType=n.valueType)}isEquivalent(t){return t instanceof ad&&At(this.entries,t.entries)}isConstant(){return this.entries.every(t=>t.isConstant())}visitExpression(t,n){return t.visitLiteralMapExpr(this,n)}clone(){let t=this.entries.map(n=>n.clone());return new ad(t,this.type,this.sourceSpan)}},vm=class od extends he{static{l(this,"CommaExpr")}parts;constructor(t,n,r){super(t[t.length-1].type,n,r),this.parts=t}isEquivalent(t){return t instanceof od&&At(this.parts,t.parts)}isConstant(){return!1}visitExpression(t,n){return t.visitCommaExpr(this,n)}clone(){return new od(this.parts.map(t=>t.clone()))}},_i=class ld extends he{static{l(this,"SpreadElementExpr")}expression;constructor(t,n,r){super(null,n,r),this.expression=t}isEquivalent(t){return t instanceof ld&&this.expression.isEquivalent(t.expression)}isConstant(){return this.expression.isConstant()}visitExpression(t,n){return t.visitSpreadElementExpr(this,n)}clone(){return new ld(this.expression.clone(),this.sourceSpan)}},Ir=new ct(null,null,null),_w=new ct(null,Yr,null),ke;(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"})(ke||(ke={}));var _u=class{static{l(this,"LeadingComment")}text;multiline;trailingNewline;constructor(e,t,n){this.text=e,this.multiline=t,this.trailingNewline=n}toString(){return this.multiline?` ${this.text} `:this.text}},Nu=class extends _u{static{l(this,"JSDocComment")}tags;constructor(e){super("",!0,!0),this.tags=e}toString(){return Mw(this.tags)}},Vi=class{static{l(this,"Statement")}modifiers;sourceSpan;leadingComments;constructor(e=ke.None,t=null,n){this.modifiers=e,this.sourceSpan=t,this.leadingComments=n}hasModifier(e){return(this.modifiers&e)!==0}addLeadingComment(e){this.leadingComments=this.leadingComments??[],this.leadingComments.push(e)}},Ke=class Nw extends Vi{static{l(this,"DeclareVarStmt")}name;value;type;constructor(t,n,r,s,i,a){super(s,i,a),this.name=t,this.value=n,this.type=r||null}isEquivalent(t){return t instanceof Nw&&this.name===t.name&&(this.value?!!t.value&&this.value.isEquivalent(t.value):!t.value)}visitStatement(t,n){return t.visitDeclareVarStmt(this,n)}},Ni=class Iw extends Vi{static{l(this,"DeclareFunctionStmt")}name;params;statements;type;constructor(t,n,r,s,i,a,o){super(i,a,o),this.name=t,this.params=n,this.statements=r,this.type=s||null}isEquivalent(t){return t instanceof Iw&&At(this.params,t.params)&&At(this.statements,t.statements)}visitStatement(t,n){return t.visitDeclareFunctionStmt(this,n)}},St=class kw extends Vi{static{l(this,"ExpressionStatement")}expr;constructor(t,n,r){super(ke.None,n,r),this.expr=t}isEquivalent(t){return t instanceof kw&&this.expr.isEquivalent(t.expr)}visitStatement(t,n){return t.visitExpressionStmt(this,n)}},Qe=class Pw extends Vi{static{l(this,"ReturnStatement")}value;constructor(t,n=null,r){super(ke.None,n,r),this.value=t}isEquivalent(t){return t instanceof Pw&&this.value.isEquivalent(t.value)}visitStatement(t,n){return t.visitReturnStmt(this,n)}},Iu=class Lw extends Vi{static{l(this,"IfStmt")}condition;trueCase;falseCase;constructor(t,n,r=[],s,i){super(ke.None,s,i),this.condition=t,this.trueCase=n,this.falseCase=r}isEquivalent(t){return t instanceof Lw&&this.condition.isEquivalent(t.condition)&&At(this.trueCase,t.trueCase)&&At(this.falseCase,t.falseCase)}visitStatement(t,n){return t.visitIfStmt(this,n)}},mO=class{static{l(this,"RecursiveAstVisitor")}visitType(t,n){return t}visitExpression(t,n){return t.type&&t.type.visitType(this,n),t}visitBuiltinType(t,n){return this.visitType(t,n)}visitExpressionType(t,n){return t.value.visitExpression(this,n),t.typeParams!==null&&t.typeParams.forEach(r=>this.visitType(r,n)),this.visitType(t,n)}visitArrayType(t,n){return this.visitType(t,n)}visitMapType(t,n){return this.visitType(t,n)}visitTransplantedType(t,n){return t}visitWrappedNodeExpr(t,n){return t}visitReadVarExpr(t,n){return this.visitExpression(t,n)}visitDynamicImportExpr(t,n){return this.visitExpression(t,n)}visitInvokeFunctionExpr(t,n){return t.fn.visitExpression(this,n),this.visitAllExpressions(t.args,n),this.visitExpression(t,n)}visitTaggedTemplateLiteralExpr(t,n){return t.tag.visitExpression(this,n),t.template.visitExpression(this,n),this.visitExpression(t,n)}visitInstantiateExpr(t,n){return t.classExpr.visitExpression(this,n),this.visitAllExpressions(t.args,n),this.visitExpression(t,n)}visitLiteralExpr(t,n){return this.visitExpression(t,n)}visitRegularExpressionLiteral(t,n){return this.visitExpression(t,n)}visitLocalizedString(t,n){return this.visitExpression(t,n)}visitExternalExpr(t,n){return t.typeParams&&t.typeParams.forEach(r=>r.visitType(this,n)),this.visitExpression(t,n)}visitConditionalExpr(t,n){return t.condition.visitExpression(this,n),t.trueCase.visitExpression(this,n),t.falseCase.visitExpression(this,n),this.visitExpression(t,n)}visitNotExpr(t,n){return t.condition.visitExpression(this,n),this.visitExpression(t,n)}visitFunctionExpr(t,n){return this.visitAllStatements(t.statements,n),this.visitExpression(t,n)}visitArrowFunctionExpr(t,n){return Array.isArray(t.body)?this.visitAllStatements(t.body,n):t.body.visitExpression(this,n),this.visitExpression(t,n)}visitUnaryOperatorExpr(t,n){return t.expr.visitExpression(this,n),this.visitExpression(t,n)}visitTypeofExpr(t,n){return t.expr.visitExpression(this,n),this.visitExpression(t,n)}visitVoidExpr(t,n){return t.expr.visitExpression(this,n),this.visitExpression(t,n)}visitBinaryOperatorExpr(t,n){return t.lhs.visitExpression(this,n),t.rhs.visitExpression(this,n),this.visitExpression(t,n)}visitReadPropExpr(t,n){return t.receiver.visitExpression(this,n),this.visitExpression(t,n)}visitReadKeyExpr(t,n){return t.receiver.visitExpression(this,n),t.index.visitExpression(this,n),this.visitExpression(t,n)}visitLiteralArrayExpr(t,n){return this.visitAllExpressions(t.entries,n),this.visitExpression(t,n)}visitLiteralMapExpr(t,n){return t.entries.forEach(r=>{r instanceof Nr?r.expression.visitExpression(this,n):r.value.visitExpression(this,n)}),this.visitExpression(t,n)}visitCommaExpr(t,n){return this.visitAllExpressions(t.parts,n),this.visitExpression(t,n)}visitTemplateLiteralExpr(t,n){return this.visitAllExpressions(t.elements,n),this.visitAllExpressions(t.expressions,n),this.visitExpression(t,n)}visitTemplateLiteralElementExpr(t,n){return this.visitExpression(t,n)}visitParenthesizedExpr(t,n){return t.expr.visitExpression(this,n),this.visitExpression(t,n)}visitSpreadElementExpr(t,n){return t.expression.visitExpression(this,n),this.visitExpression(t,n)}visitAllExpressions(t,n){t.forEach(r=>r.visitExpression(this,n))}visitDeclareVarStmt(t,n){return t.value&&t.value.visitExpression(this,n),t.type&&t.type.visitType(this,n),t}visitDeclareFunctionStmt(t,n){return this.visitAllStatements(t.statements,n),t.type&&t.type.visitType(this,n),t}visitExpressionStmt(t,n){return t.expr.visitExpression(this,n),t}visitReturnStmt(t,n){return t.value.visitExpression(this,n),t}visitIfStmt(t,n){return t.condition.visitExpression(this,n),this.visitAllStatements(t.trueCase,n),this.visitAllStatements(t.falseCase,n),t}visitAllStatements(t,n){t.forEach(r=>r.visitStatement(this,n))}};function ku(e,t=!1,n=!0){return new _u(e,t,n)}l(ku,"leadingComment");function Pu(e=[]){return new Nu(e)}l(Pu,"jsDocComment");function B(e,t,n,r){return new Un(e,t,n,r)}l(B,"variable");function _(e,t=null,n){return new is(e,null,t,n)}l(_,"importExpr");function Dw(e,t,n){return e!=null?He(_(e,t,null),n):null}l(Dw,"importType");function He(e,t,n){return new zt(e,t,n)}l(He,"expressionType");function Ow(e,t){return new fm(e,t)}l(Ow,"transplantedType");function qi(e){return new Ui(e)}l(qi,"typeofExpr");function K(e,t,n){return new ir(e,t,n)}l(K,"literalArr");function je(e,t=null){return new Cn(e.map(n=>new Jr(n.key,n.value,n.quoted)),t,null)}l(je,"literalMap");function Rw(e,t,n,r){return new _r(e,t,n,r)}l(Rw,"unary");function Em(e,t){return new to(e,t)}l(Em,"not");function er(e,t,n,r,s){return new Fn(e,t,n,r,s)}l(er,"fn");function Se(e,t,n,r){return new on(e,t,n,r)}l(Se,"arrowFn");function no(e,t,n,r,s){return new Iu(e,t,n,r,s)}l(no,"ifStmt");function Sm(e,t,n,r){return new Za(e,t,n,r)}l(Sm,"taggedTemplate");function g(e,t,n){return new ct(e,t,n)}l(g,"literal");function ym(e,t,n,r,s){return new Cu(e,t,n,r,s)}l(ym,"localizedString");function Bw(e){return e instanceof ct&&e.value===null}l(Bw,"isNull");function cd(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}l(cd,"tagToString");function Mw(e){if(e.length===0)return"";if(e.length===1&&e[0].tagName&&!e[0].text)return`*${cd(e[0])} `;let t=`*
7
+ `;for(let n of e)t+=" *",t+=cd(n).replace(/\n/g,`
8
+ * `),t+=`
9
+ `;return t+=" ",t}l(Mw,"serializeTags");var gO=Object.freeze({__proto__:null,ArrayType:yw,ArrowFunctionExpr:on,BOOL_TYPE:Tw,get BinaryOperator(){return A},BinaryOperatorExpr:ce,BuiltinType:sr,get BuiltinTypeName(){return nt},CommaExpr:vm,ConditionalExpr:an,DYNAMIC_TYPE:L,DeclareFunctionStmt:Ni,DeclareVarStmt:Ke,DynamicImportExpr:Ma,Expression:he,ExpressionStatement:St,ExpressionType:zt,ExternalExpr:is,ExternalReference:bw,FUNCTION_TYPE:uO,FnParam:Te,FunctionExpr:Fn,INFERRED_TYPE:Yr,INT_TYPE:cO,IfStmt:Iu,InstantiateExpr:fl,InvokeFunctionExpr:Ye,JSDocComment:Nu,LeadingComment:_u,LiteralArrayExpr:ir,LiteralExpr:ct,LiteralMapExpr:Cn,LiteralMapPropertyAssignment:Jr,LiteralMapSpreadAssignment:Nr,LiteralPiece:Aa,LocalizedString:Cu,MapType:ww,NONE_TYPE:Mt,NULL_EXPR:Ir,NUMBER_TYPE:Kr,NotExpr:to,ParenthesizedExpr:Ft,PlaceholderPiece:al,ReadKeyExpr:An,ReadPropExpr:ft,ReadVarExpr:Un,RecursiveAstVisitor:mO,RegularExpressionLiteralExpr:eo,ReturnStatement:Qe,STRING_TYPE:Rl,SpreadElementExpr:_i,Statement:Vi,get StmtModifier(){return ke},TYPED_NULL_EXPR:_w,TaggedTemplateLiteralExpr:Za,TemplateLiteralElementExpr:Au,TemplateLiteralExpr:Ml,TransplantedType:fm,Type:$i,get TypeModifier(){return dl},TypeofExpr:Ui,get UnaryOperator(){return Qr},UnaryOperatorExpr:_r,VoidExpr:Bl,WrappedNodeExpr:se,areAllEquivalent:At,arrowFn:Se,expressionType:He,fn:er,ifStmt:no,importExpr:_,importType:Dw,isNull:Bw,jsDocComment:Pu,leadingComment:ku,literal:g,literalArr:K,literalMap:je,localizedString:ym,not:Em,nullSafeIsEquivalent:mm,taggedTemplate:Sm,transplantedType:Ow,typeofExpr:qi,unary:Rw,variable:B}),vO="_c",EO={},SO=50,fy=class Fw extends he{static{l(this,"FixupExpression")}resolved;original;shared=!1;constructor(t){super(t.type),this.resolved=t,this.original=t}visitExpression(t,n){return n===EO?this.original.visitExpression(t,n):this.resolved.visitExpression(t,n)}isEquivalent(t){return t instanceof Fw&&this.resolved.isEquivalent(t.resolved)}isConstant(){return!0}clone(){throw new Error("Not supported.")}fixup(t){this.resolved=t,this.shared=!0}},ud=class{static{l(this,"ConstantPool")}isClosureCompilerEnabled;statements=[];literals=new Map;sharedConstants=new Map;_claimedNames=new Map;constructor(e=!1){this.isClosureCompilerEnabled=e}getConstLiteral(e,t){if(e instanceof ct&&!pd(e)||e instanceof fy)return e;let n=wm.INSTANCE.keyOf(e),r=this.literals.get(n),s=!1;if(r||(r=new fy(e),this.literals.set(n,r),s=!0),!s&&!r.shared||s&&t){let i=this.freshName(),a,o;this.isClosureCompilerEnabled&&pd(e)?(a=new Fn([],[new Qe(e)],L),o=B(i).callFn([])):(a=e,o=B(i)),this.statements.push(new Ke(i,a,Yr,ke.Final)),r.fixup(o)}return r}getSharedConstant(e,t){let n=e.keyOf(t);if(!this.sharedConstants.has(n)){let r=this.freshName();this.sharedConstants.set(n,B(r)),this.statements.push(e.toSharedConstantDeclaration(r,t))}return this.sharedConstants.get(n)}getSharedFunctionReference(e,t,n=!0){let r=e instanceof on;for(let i of this.statements)if(r&&i instanceof Ke&&i.value?.isEquivalent(e)||!r&&i instanceof Ni&&e instanceof Fn&&e.isEquivalent(i))return B(i.name);let s=n?this.uniqueName(t):t;return this.statements.push(e instanceof Fn?e.toDeclStmt(s,ke.Final):new Ke(s,e,Yr,ke.Final,e.sourceSpan)),B(s)}uniqueName(e,t=!0){let n=this._claimedNames.get(e)??0,r=n===0&&!t?`${e}`:`${e}${n}`;return this._claimedNames.set(e,n+1),r}freshName(){return this.uniqueName(vO)}},wm=class $w{static{l(this,"GenericKeyFn")}static INSTANCE=new $w;keyOf(t){if(t instanceof ct&&typeof t.value=="string")return`"${t.value}"`;if(t instanceof ct)return String(t.value);if(t instanceof eo)return`/${t.body}/${t.flags??""}`;if(t instanceof ir){let n=[];for(let r of t.entries)n.push(this.keyOf(r));return`[${n.join(",")}]`}else if(t instanceof Cn){let n=[];for(let r of t.entries)if(r instanceof Nr)n.push("..."+this.keyOf(r.expression));else{let s=r.key;r.quoted&&(s=`"${s}"`),n.push(s+":"+this.keyOf(r.value))}return`{${n.join(",")}}`}else{if(t instanceof is)return`import("${t.value.moduleName}", ${t.value.name})`;if(t instanceof Un)return`read(${t.name})`;if(t instanceof Ui)return`typeof(${this.keyOf(t.expr)})`;if(t instanceof _i)return`...${this.keyOf(t.expression)}`;throw new Error(`${this.constructor.name} does not handle expressions of type ${t.constructor.name}`)}}};function pd(e){return e instanceof ct&&typeof e.value=="string"&&e.value.length>=SO}l(pd,"isLongStringLiteral");var S="@angular/core",m=class{static{l(this,"Identifiers")}static core={name:null,moduleName:S};static namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:S};static namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:S};static namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:S};static element={name:"\u0275\u0275element",moduleName:S};static elementStart={name:"\u0275\u0275elementStart",moduleName:S};static elementEnd={name:"\u0275\u0275elementEnd",moduleName:S};static foreignComponent={name:"\u0275\u0275foreignComponent",moduleName:S};static foreignContent={name:"\u0275\u0275foreignContent",moduleName:S};static foreignContentFn={name:"\u0275\u0275foreignContentFn",moduleName:S};static domElement={name:"\u0275\u0275domElement",moduleName:S};static domElementStart={name:"\u0275\u0275domElementStart",moduleName:S};static domElementEnd={name:"\u0275\u0275domElementEnd",moduleName:S};static domElementContainer={name:"\u0275\u0275domElementContainer",moduleName:S};static domElementContainerStart={name:"\u0275\u0275domElementContainerStart",moduleName:S};static domElementContainerEnd={name:"\u0275\u0275domElementContainerEnd",moduleName:S};static domTemplate={name:"\u0275\u0275domTemplate",moduleName:S};static domListener={name:"\u0275\u0275domListener",moduleName:S};static advance={name:"\u0275\u0275advance",moduleName:S};static syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:S};static syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:S};static attribute={name:"\u0275\u0275attribute",moduleName:S};static classProp={name:"\u0275\u0275classProp",moduleName:S};static elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:S};static elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:S};static elementContainer={name:"\u0275\u0275elementContainer",moduleName:S};static styleMap={name:"\u0275\u0275styleMap",moduleName:S};static classMap={name:"\u0275\u0275classMap",moduleName:S};static styleProp={name:"\u0275\u0275styleProp",moduleName:S};static interpolate={name:"\u0275\u0275interpolate",moduleName:S};static interpolate1={name:"\u0275\u0275interpolate1",moduleName:S};static interpolate2={name:"\u0275\u0275interpolate2",moduleName:S};static interpolate3={name:"\u0275\u0275interpolate3",moduleName:S};static interpolate4={name:"\u0275\u0275interpolate4",moduleName:S};static interpolate5={name:"\u0275\u0275interpolate5",moduleName:S};static interpolate6={name:"\u0275\u0275interpolate6",moduleName:S};static interpolate7={name:"\u0275\u0275interpolate7",moduleName:S};static interpolate8={name:"\u0275\u0275interpolate8",moduleName:S};static interpolateV={name:"\u0275\u0275interpolateV",moduleName:S};static nextContext={name:"\u0275\u0275nextContext",moduleName:S};static resetView={name:"\u0275\u0275resetView",moduleName:S};static templateCreate={name:"\u0275\u0275template",moduleName:S};static defer={name:"\u0275\u0275defer",moduleName:S};static deferWhen={name:"\u0275\u0275deferWhen",moduleName:S};static deferOnIdle={name:"\u0275\u0275deferOnIdle",moduleName:S};static deferOnImmediate={name:"\u0275\u0275deferOnImmediate",moduleName:S};static deferOnTimer={name:"\u0275\u0275deferOnTimer",moduleName:S};static deferOnHover={name:"\u0275\u0275deferOnHover",moduleName:S};static deferOnInteraction={name:"\u0275\u0275deferOnInteraction",moduleName:S};static deferOnViewport={name:"\u0275\u0275deferOnViewport",moduleName:S};static deferPrefetchWhen={name:"\u0275\u0275deferPrefetchWhen",moduleName:S};static deferPrefetchOnIdle={name:"\u0275\u0275deferPrefetchOnIdle",moduleName:S};static deferPrefetchOnImmediate={name:"\u0275\u0275deferPrefetchOnImmediate",moduleName:S};static deferPrefetchOnTimer={name:"\u0275\u0275deferPrefetchOnTimer",moduleName:S};static deferPrefetchOnHover={name:"\u0275\u0275deferPrefetchOnHover",moduleName:S};static deferPrefetchOnInteraction={name:"\u0275\u0275deferPrefetchOnInteraction",moduleName:S};static deferPrefetchOnViewport={name:"\u0275\u0275deferPrefetchOnViewport",moduleName:S};static deferHydrateWhen={name:"\u0275\u0275deferHydrateWhen",moduleName:S};static deferHydrateNever={name:"\u0275\u0275deferHydrateNever",moduleName:S};static deferHydrateOnIdle={name:"\u0275\u0275deferHydrateOnIdle",moduleName:S};static deferHydrateOnImmediate={name:"\u0275\u0275deferHydrateOnImmediate",moduleName:S};static deferHydrateOnTimer={name:"\u0275\u0275deferHydrateOnTimer",moduleName:S};static deferHydrateOnHover={name:"\u0275\u0275deferHydrateOnHover",moduleName:S};static deferHydrateOnInteraction={name:"\u0275\u0275deferHydrateOnInteraction",moduleName:S};static deferHydrateOnViewport={name:"\u0275\u0275deferHydrateOnViewport",moduleName:S};static deferEnableTimerScheduling={name:"\u0275\u0275deferEnableTimerScheduling",moduleName:S};static enableIncrementalHydrationRuntime={name:"\u0275\u0275enableIncrementalHydrationRuntime",moduleName:S};static conditionalCreate={name:"\u0275\u0275conditionalCreate",moduleName:S};static conditionalBranchCreate={name:"\u0275\u0275conditionalBranchCreate",moduleName:S};static conditional={name:"\u0275\u0275conditional",moduleName:S};static boundaryCreate={name:"\u0275\u0275boundaryCreate",moduleName:S};static boundaryUpdate={name:"\u0275\u0275boundaryUpdate",moduleName:S};static getBoundary={name:"\u0275\u0275getBoundary",moduleName:S};static repeater={name:"\u0275\u0275repeater",moduleName:S};static repeaterCreate={name:"\u0275\u0275repeaterCreate",moduleName:S};static repeaterTrackByIndex={name:"\u0275\u0275repeaterTrackByIndex",moduleName:S};static repeaterTrackByIdentity={name:"\u0275\u0275repeaterTrackByIdentity",moduleName:S};static componentInstance={name:"\u0275\u0275componentInstance",moduleName:S};static text={name:"\u0275\u0275text",moduleName:S};static enableBindings={name:"\u0275\u0275enableBindings",moduleName:S};static disableBindings={name:"\u0275\u0275disableBindings",moduleName:S};static getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:S};static textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:S};static textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:S};static textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:S};static textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:S};static textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:S};static textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:S};static textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:S};static textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:S};static textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:S};static textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:S};static restoreView={name:"\u0275\u0275restoreView",moduleName:S};static pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:S};static pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:S};static pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:S};static pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:S};static pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:S};static pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:S};static pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:S};static pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:S};static pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:S};static pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:S};static pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:S};static pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:S};static pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:S};static pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:S};static pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:S};static domProperty={name:"\u0275\u0275domProperty",moduleName:S};static ariaProperty={name:"\u0275\u0275ariaProperty",moduleName:S};static property={name:"\u0275\u0275property",moduleName:S};static control={name:"\u0275\u0275control",moduleName:S};static controlCreate={name:"\u0275\u0275controlCreate",moduleName:S};static animationEnterListener={name:"\u0275\u0275animateEnterListener",moduleName:S};static animationLeaveListener={name:"\u0275\u0275animateLeaveListener",moduleName:S};static animationEnter={name:"\u0275\u0275animateEnter",moduleName:S};static animationLeave={name:"\u0275\u0275animateLeave",moduleName:S};static i18n={name:"\u0275\u0275i18n",moduleName:S};static i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:S};static i18nExp={name:"\u0275\u0275i18nExp",moduleName:S};static i18nStart={name:"\u0275\u0275i18nStart",moduleName:S};static i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:S};static i18nApply={name:"\u0275\u0275i18nApply",moduleName:S};static i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:S};static pipe={name:"\u0275\u0275pipe",moduleName:S};static projection={name:"\u0275\u0275projection",moduleName:S};static projectionDef={name:"\u0275\u0275projectionDef",moduleName:S};static reference={name:"\u0275\u0275reference",moduleName:S};static inject={name:"\u0275\u0275inject",moduleName:S};static injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:S};static directiveInject={name:"\u0275\u0275directiveInject",moduleName:S};static invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:S};static invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:S};static templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:S};static forwardRef={name:"forwardRef",moduleName:S};static resolveForwardRef={name:"resolveForwardRef",moduleName:S};static replaceMetadata={name:"\u0275\u0275replaceMetadata",moduleName:S};static getReplaceMetadataURL={name:"\u0275\u0275getReplaceMetadataURL",moduleName:S};static \u0275\u0275defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:S};static declareInjectable={name:"\u0275\u0275ngDeclareInjectable",moduleName:S};static InjectableDeclaration={name:"\u0275\u0275InjectableDeclaration",moduleName:S};static defineService={name:"\u0275\u0275defineService",moduleName:S};static declareService={name:"\u0275\u0275ngDeclareService",moduleName:S};static resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:S};static resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:S};static resolveBody={name:"\u0275\u0275resolveBody",moduleName:S};static getComponentDepsFactory={name:"\u0275\u0275getComponentDepsFactory",moduleName:S};static defineComponent={name:"\u0275\u0275defineComponent",moduleName:S};static declareComponent={name:"\u0275\u0275ngDeclareComponent",moduleName:S};static setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:S};static ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:S};static ViewEncapsulation={name:"ViewEncapsulation",moduleName:S};static ComponentDeclaration={name:"\u0275\u0275ComponentDeclaration",moduleName:S};static FactoryDeclaration={name:"\u0275\u0275FactoryDeclaration",moduleName:S};static declareFactory={name:"\u0275\u0275ngDeclareFactory",moduleName:S};static FactoryTarget={name:"\u0275\u0275FactoryTarget",moduleName:S};static defineDirective={name:"\u0275\u0275defineDirective",moduleName:S};static declareDirective={name:"\u0275\u0275ngDeclareDirective",moduleName:S};static DirectiveDeclaration={name:"\u0275\u0275DirectiveDeclaration",moduleName:S};static InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:S};static InjectorDeclaration={name:"\u0275\u0275InjectorDeclaration",moduleName:S};static defineInjector={name:"\u0275\u0275defineInjector",moduleName:S};static declareInjector={name:"\u0275\u0275ngDeclareInjector",moduleName:S};static NgModuleDeclaration={name:"\u0275\u0275NgModuleDeclaration",moduleName:S};static ModuleWithProviders={name:"ModuleWithProviders",moduleName:S};static defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:S};static declareNgModule={name:"\u0275\u0275ngDeclareNgModule",moduleName:S};static setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:S};static registerNgModuleType={name:"\u0275\u0275registerNgModuleType",moduleName:S};static PipeDeclaration={name:"\u0275\u0275PipeDeclaration",moduleName:S};static definePipe={name:"\u0275\u0275definePipe",moduleName:S};static declarePipe={name:"\u0275\u0275ngDeclarePipe",moduleName:S};static declareClassMetadata={name:"\u0275\u0275ngDeclareClassMetadata",moduleName:S};static declareClassMetadataAsync={name:"\u0275\u0275ngDeclareClassMetadataAsync",moduleName:S};static setClassMetadata={name:"\u0275setClassMetadata",moduleName:S};static setClassMetadataAsync={name:"\u0275setClassMetadataAsync",moduleName:S};static setClassDebugInfo={name:"\u0275setClassDebugInfo",moduleName:S};static queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:S};static viewQuery={name:"\u0275\u0275viewQuery",moduleName:S};static loadQuery={name:"\u0275\u0275loadQuery",moduleName:S};static contentQuery={name:"\u0275\u0275contentQuery",moduleName:S};static viewQuerySignal={name:"\u0275\u0275viewQuerySignal",moduleName:S};static contentQuerySignal={name:"\u0275\u0275contentQuerySignal",moduleName:S};static queryAdvance={name:"\u0275\u0275queryAdvance",moduleName:S};static twoWayProperty={name:"\u0275\u0275twoWayProperty",moduleName:S};static twoWayBindingSet={name:"\u0275\u0275twoWayBindingSet",moduleName:S};static twoWayListener={name:"\u0275\u0275twoWayListener",moduleName:S};static declareLet={name:"\u0275\u0275declareLet",moduleName:S};static storeLet={name:"\u0275\u0275storeLet",moduleName:S};static readContextLet={name:"\u0275\u0275readContextLet",moduleName:S};static arrowFunction={name:"\u0275\u0275arrowFunction",moduleName:S};static attachSourceLocations={name:"\u0275\u0275attachSourceLocations",moduleName:S};static NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:S};static ControlFeature={name:"\u0275\u0275ControlFeature",moduleName:S};static InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:S};static ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:S};static HostDirectivesFeature={name:"\u0275\u0275HostDirectivesFeature",moduleName:S};static ExternalStylesFeature={name:"\u0275\u0275ExternalStylesFeature",moduleName:S};static listener={name:"\u0275\u0275listener",moduleName:S};static getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:S};static sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:S};static sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:S};static validateAttribute={name:"\u0275\u0275validateAttribute",moduleName:S};static sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:S};static sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:S};static sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:S};static sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:S};static trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:S};static trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:S};static inputDecorator={name:"Input",moduleName:S};static outputDecorator={name:"Output",moduleName:S};static viewChildDecorator={name:"ViewChild",moduleName:S};static viewChildrenDecorator={name:"ViewChildren",moduleName:S};static contentChildDecorator={name:"ContentChild",moduleName:S};static contentChildrenDecorator={name:"ContentChildren",moduleName:S};static InputSignalBrandWriteType={name:"\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE",moduleName:S};static UnwrapDirectiveSignalInputs={name:"\u0275UnwrapDirectiveSignalInputs",moduleName:S};static unwrapWritableSignal={name:"\u0275unwrapWritableSignal",moduleName:S};static assertType={name:"\u0275assertType",moduleName:S}},yO=/-+([a-z0-9])/g;function Uw(e){return e.replace(yO,(...t)=>t[1].toUpperCase())}l(Uw,"dashCaseToCamelCase");function Vw(e,t){return Tm(e,":",t)}l(Vw,"splitAtColon");function qw(e,t){return Tm(e,".",t)}l(qw,"splitAtPeriod");function Tm(e,t,n){let r=e.indexOf(t);return r==-1?n:[e.slice(0,r).trim(),e.slice(r+1).trim()]}l(Tm,"_splitAt");function Hw(e){return e===void 0?null:e}l(Hw,"noUndefined");function jw(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}l(jw,"escapeRegExp");function Ww(e){let t=[];for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r>=55296&&r<=56319&&e.length>n+1){let s=e.charCodeAt(n+1);s>=56320&&s<=57343&&(n++,r=(r-55296<<10)+s-56320+65536)}r<=127?t.push(r):r<=2047?t.push(r>>6&31|192,r&63|128):r<=65535?t.push(r>>12|224,r>>6&63|128,r&63|128):r<=2097151&&t.push(r>>18&7|240,r>>12&63|128,r>>6&63|128,r&63|128)}return t}l(Ww,"utf8Encode");function xm(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(xm).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;if(!e.toString)return"object";let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
10
+ `);return r>=0?n.slice(0,r):n}l(xm,"stringify");var zw=class{static{l(this,"Version")}full;major;minor;patch;constructor(e){this.full=e;let t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}},ol=globalThis,wO=/^([1-9]|1[0-8])\./;function bm(e){return e.startsWith("0.")?!0:!wO.test(e)}l(bm,"getJitStandaloneDefaultForVersion");function Lu(e){return e.startsWith("--global--")?"--"+e.substring(10):"--%NS%"+e.substring(2)}l(Lu,"namespaceCssVariable");var TO=3,xO="# sourceMappingURL=data:application/json;base64,",bO=class{static{l(this,"SourceMapGenerator")}file;sourcesContent=new Map;lines=[];lastCol0=0;hasMappings=!1;constructor(e=null){this.file=e}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,n,r){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(t!=null&&!this.sourcesContent.has(t))throw new Error(`Unknown source file "${t}"`);if(e==null)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&&(n==null||r==null))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:n,sourceCol0:r}),this}get currentLine(){return this.lines.slice(-1)[0]}toJSON(){if(!this.hasMappings)return null;let e=new Map,t=[],n=[];Array.from(this.sourcesContent.keys()).forEach((c,u)=>{e.set(c,u),t.push(c),n.push(this.sourcesContent.get(c)||null)});let r="",s=0,i=0,a=0,o=0;return this.lines.forEach(c=>{s=0,r+=c.map(u=>{let p=zo(u.col0-s);return s=u.col0,u.sourceUrl!=null&&(p+=zo(e.get(u.sourceUrl)-i),i=e.get(u.sourceUrl),p+=zo(u.sourceLine0-a),a=u.sourceLine0,p+=zo(u.sourceCol0-o),o=u.sourceCol0),p}).join(","),r+=";"}),r=r.slice(0,-1),{file:this.file||"",version:TO,sourceRoot:"",sources:t,sourcesContent:n,mappings:r}}toJsComment(){return this.hasMappings?"//"+xO+Gw(JSON.stringify(this,null,0)):""}};function Gw(e){let t="",n=Ww(e);for(let r=0;r<n.length;){let s=n[r++],i=r<n.length?n[r++]:null,a=r<n.length?n[r++]:null;t+=Ea(s>>2),t+=Ea((s&3)<<4|(i===null?0:i>>4)),t+=i===null?"=":Ea((i&15)<<2|(a===null?0:a>>6)),t+=i===null||a===null?"=":Ea(a&63)}return t}l(Gw,"toBase64String");function zo(e){e=e<0?(-e<<1)+1:e<<1;let t="";do{let n=e&31;e=e>>5,e>0&&(n=n|32),t+=Ea(n)}while(e>0);return t}l(zo,"toBase64VLQ");var AO="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Ea(e){if(e<0||e>=64)throw new Error("Can only encode value in the range [0, 63]");return AO[e]}l(Ea,"toBase64Digit");var CO=/'|\\|\n|\r/g,_O=/^[$A-Z_][0-9A-Z_$]*$/i,Ec=" ",gh=class{static{l(this,"EmittedLine")}indent;partsLength=0;parts=[];srcSpans=[];constructor(e){this.indent=e}},NO=new Map([[A.And,"&&"],[A.Bigger,">"],[A.BiggerEquals,">="],[A.BitwiseOr,"|"],[A.BitwiseAnd,"&"],[A.Divide,"/"],[A.Assign,"="],[A.Equals,"=="],[A.Identical,"==="],[A.Lower,"<"],[A.LowerEquals,"<="],[A.Minus,"-"],[A.Modulo,"%"],[A.Exponentiation,"**"],[A.Multiply,"*"],[A.NotEquals,"!="],[A.NotIdentical,"!=="],[A.NullishCoalesce,"??"],[A.Or,"||"],[A.Plus,"+"],[A.In,"in"],[A.InstanceOf,"instanceof"],[A.AdditionAssignment,"+="],[A.SubtractionAssignment,"-="],[A.MultiplicationAssignment,"*="],[A.DivisionAssignment,"/="],[A.RemainderAssignment,"%="],[A.ExponentiationAssignment,"**="],[A.AndAssignment,"&&="],[A.OrAssignment,"||="],[A.NullishCoalesceAssignment,"??="]]),Xw=class Yw{static{l(this,"EmitterVisitorContext")}_indent;static createRoot(){return new Yw(0)}_lines;constructor(t){this._indent=t,this._lines=[new gh(t)]}get _currentLine(){return this._lines[this._lines.length-1]}println(t,n=""){this.print(t||null,n,!0)}lineIsEmpty(){return this._currentLine.parts.length===0}lineLength(){return this._currentLine.indent*Ec.length+this._currentLine.partsLength}print(t,n,r=!1){n.length>0&&(this._currentLine.parts.push(n),this._currentLine.partsLength+=n.length,this._currentLine.srcSpans.push(t&&t.sourceSpan||null)),r&&this._lines.push(new gh(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(t=>t.parts.length>0?Ec.repeat(t.indent)+t.parts.join(""):"").join(`
11
+ `)}toSourceMapGenerator(t,n=0){let r=new bO(t),s=!1,i=l(()=>{s||(r.addSource(t," ").addMapping(0,t,0,0),s=!0)},"mapFirstOffsetIfNeeded");for(let a=0;a<n;a++)r.addLine(),i();return this.sourceLines.forEach((a,o)=>{r.addLine();let c=a.srcSpans,u=a.parts,p=a.indent*Ec.length,h=0;for(;h<c.length&&!c[h];)p+=u[h].length,h++;for(h<c.length&&o===0&&p===0?s=!0:i();h<c.length;){let f=c[h],v=f.start.file,E=f.start.line,T=f.start.col;for(r.addSource(v.url,v.content).addMapping(p,v.url,E,T),p+=u[h].length,h++;h<c.length&&(f===c[h]||!c[h]);)p+=u[h].length,h++}}),r}spanOf(t,n){let r=this._lines[t];if(r){let s=n-Ec.repeat(r.indent).length;for(let i=0;i<r.parts.length;i++){let a=r.parts[i];if(a.length>s)return r.srcSpans[i];s-=a.length}}return null}addUniqueSingleLineComment(t){let n=this._lines.length-2,r=`//${t}`;if(n>=0&&this._lines[n].parts.length===1&&this._lines[n].parts[0]===r)return;let s=new gh(this._currentLine.indent);s.parts.push(r),s.partsLength=r.length,s.srcSpans.push(null),this._lines.splice(this._lines.length-1,0,s)}get sourceLines(){return this._lines.length&&this._lines[this._lines.length-1].parts.length===0?this._lines.slice(0,-1):this._lines}},Kw=class{static{l(this,"AbstractEmitterVisitor")}printComments;printTypes;lastIfCondition=null;constructor(e,t){this.printComments=e,this.printTypes=t}visitExpressionStmt(e,t){this.printLeadingComments(e,t),e.expr.visitExpression(this,t),t.println(e,";")}visitReturnStmt(e,t){this.printLeadingComments(e,t),t.print(e,"return "),e.value.visitExpression(this,t),t.println(e,";")}visitIfStmt(e,t){this.printLeadingComments(e,t),t.print(e,"if ("),this.lastIfCondition=e.condition,e.condition.visitExpression(this,t),this.lastIfCondition=null,t.print(e,") {");let n=e.falseCase!=null&&e.falseCase.length>0;e.trueCase.length<=1&&!n?(t.print(e," "),this.visitAllStatements(e.trueCase,t),t.removeEmptyLastLine(),t.print(e," ")):(t.println(),t.incIndent(),this.visitAllStatements(e.trueCase,t),t.decIndent(),n&&(t.println(e,"} else {"),t.incIndent(),this.visitAllStatements(e.falseCase,t),t.decIndent())),t.println(e,"}")}visitDeclareVarStmt(e,t){let n=e.hasModifier(ke.Final)?"const":"let";this.printLeadingComments(e,t),t.print(e,`${n} ${e.name}`),e.type?.visitType(this,t),e.value&&(t.print(e," = "),e.value.visitExpression(this,t)),t.println(e,";")}visitInvokeFunctionExpr(e,t){this.printLeadingComments(e,t);let n=this.shouldParenthesize(e.fn,e);n&&t.print(e.fn,"("),e.fn.visitExpression(this,t),n&&t.print(e.fn,")"),t.print(e,e.isOptional?"?.(":"("),this.visitAllExpressions(e.args,t,","),t.print(e,")")}visitTaggedTemplateLiteralExpr(e,t){this.printLeadingComments(e,t),e.tag.visitExpression(this,t),e.template.visitExpression(this,t)}visitTemplateLiteralExpr(e,t){this.printLeadingComments(e,t),t.print(e,"`");for(let n=0;n<e.elements.length;n++){e.elements[n].visitExpression(this,t);let r=n<e.expressions.length?e.expressions[n]:null;r!==null&&(t.print(r,"${"),r.visitExpression(this,t),t.print(r,"}"))}t.print(e,"`")}visitTemplateLiteralElementExpr(e,t){this.printLeadingComments(e,t),t.print(e,e.rawText)}visitTypeofExpr(e,t){this.printLeadingComments(e,t),t.print(e,"typeof "),e.expr.visitExpression(this,t)}visitVoidExpr(e,t){this.printLeadingComments(e,t),t.print(e,"void "),e.expr.visitExpression(this,t)}visitReadVarExpr(e,t){this.printLeadingComments(e,t),t.print(e,e.name)}visitInstantiateExpr(e,t){this.printLeadingComments(e,t),t.print(e,"new "),e.classExpr.visitExpression(this,t),t.print(e,"("),this.visitAllExpressions(e.args,t,","),t.print(e,")")}visitLiteralExpr(e,t){this.printLeadingComments(e,t);let n=e.value;typeof n=="string"?t.print(e,yr(n)):t.print(e,`${n}`)}visitRegularExpressionLiteral(e,t){this.printLeadingComments(e,t),t.print(e,`/${e.body}/${e.flags||""}`)}visitLocalizedString(e,t){this.printLeadingComments(e,t);let n=e.serializeI18nHead();t.print(e,"$localize `"+n.raw);for(let r=1;r<e.messageParts.length;r++)t.print(e,"${"),e.expressions[r-1].visitExpression(this,t),t.print(e,`}${e.serializeI18nTemplatePart(r).raw}`);t.print(e,"`")}visitConditionalExpr(e,t){this.printLeadingComments(e,t),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,")")}visitDynamicImportExpr(e,t){this.printLeadingComments(e,t),t.print(e,"import("),typeof e.url=="string"?t.print(e,yr(e.url,!0)):e.url.visitExpression(this,t),t.print(e,")")}visitNotExpr(e,t){this.printLeadingComments(e,t),t.print(e,"!"),e.condition.visitExpression(this,t)}visitFunctionExpr(e,t){this.printLeadingComments(e,t),t.print(e,`function${e.name?" "+e.name:""}(`),this.visitParams(e.params,t),t.print(e,")"),e.type?.visitType(this,t),t.print(e," {"),t.println(e),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.println(e,"}")}visitArrowFunctionExpr(e,t){if(this.printLeadingComments(e,t),t.print(e,"("),this.visitParams(e.params,t),t.print(e,")"),e.type?.visitType(this,t),t.print(e," => "),Array.isArray(e.body))t.print(e,"{"),t.println(e),t.incIndent(),this.visitAllStatements(e.body,t),t.decIndent(),t.println(e,"}");else{let n=this.shouldParenthesize(e.body,e);n&&t.print(e,"("),e.body.visitExpression(this,t),n&&t.print(e,")")}}visitDeclareFunctionStmt(e,t){this.printLeadingComments(e,t),t.print(e,`function ${e.name}(`),this.visitParams(e.params,t),t.print(e,")"),e.type?.visitType(this,t),t.print(e," {"),t.println(e),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.println(e,"}")}visitUnaryOperatorExpr(e,t){this.printLeadingComments(e,t);let n;switch(e.operator){case Qr.Plus:n="+";break;case Qr.Minus:n="-";break;default:throw new Error(`Unknown operator ${e.operator}`)}let r=e!==this.lastIfCondition;r&&t.print(e,"("),t.print(e,n),e.expr.visitExpression(this,t),r&&t.print(e,")")}visitBinaryOperatorExpr(e,t){this.printLeadingComments(e,t);let n=NO.get(e.operator);if(!n)throw new Error(`Unknown operator ${e.operator}`);let r=e!==this.lastIfCondition;r&&t.print(e,"("),e.lhs.visitExpression(this,t),t.print(e,` ${n} `),e.rhs.visitExpression(this,t),r&&t.print(e,")")}visitReadPropExpr(e,t){this.printLeadingComments(e,t),e.receiver.visitExpression(this,t),t.print(e,e.isOptional?"?.":"."),t.print(e,e.name)}visitReadKeyExpr(e,t){this.printLeadingComments(e,t),e.receiver.visitExpression(this,t),t.print(e,e.isOptional?"?.[":"["),e.index.visitExpression(this,t),t.print(e,"]")}visitLiteralArrayExpr(e,t){this.printLeadingComments(e,t),t.print(e,"["),this.visitAllExpressions(e.entries,t,", "),t.print(e,"]")}visitLiteralMapExpr(e,t){this.printLeadingComments(e,t),t.print(e,"{");for(let n=0;n<e.entries.length;n++){let r=e.entries[n];if(r instanceof Nr)n>0&&t.print(e,", ",!1),t.print(e,"..."),r.expression.visitExpression(this,t);else{let s=this.printComments&&r.leadingComments!==void 0&&r.leadingComments.length>0;n>0?t.print(e,s?",":", ",s):s&&t.println(e),this.printLeadingComments(r,t),t.print(e,`${yr(r.key,r.quoted)}: `),r.value.visitExpression(this,t)}}t.print(e,"}")}visitCommaExpr(e,t){this.printLeadingComments(e,t),t.print(e,"("),this.visitAllExpressions(e.parts,t,", "),t.print(e,")")}visitParenthesizedExpr(e,t){if(this.printLeadingComments(e,t),e===this.lastIfCondition)this.lastIfCondition=e.expr,e.expr.visitExpression(this,t);else{let n=!(e.expr instanceof ce)&&!(e.expr instanceof _r)&&!(e.expr instanceof an)&&!(e.expr instanceof vm)&&!(e.expr instanceof Ft);n&&t.print(e,"("),e.expr.visitExpression(this,t),n&&t.print(e,")")}}visitSpreadElementExpr(e,t){this.printLeadingComments(e,t),t.print(e,"..."),e.expression.visitExpression(this,t)}visitBuiltinType(e,t){if(this.printTypes)switch(e.name){case nt.Bool:t.print(null,": boolean");break;case nt.Dynamic:t.print(null,": any");break;case nt.Int:case nt.Number:t.print(null,": number");break;case nt.String:t.print(null,": string");break;case nt.None:t.print(null,": void");break;case nt.Inferred:break;case nt.Function:t.print(null,": Function");break;default:t.print(null,": any");break}}visitExpressionType(e,t){this.printTypes&&(t.print(null,": "),e.value.visitExpression(this,t),e.typeParams&&e.typeParams.length>0&&(t.print(null,"<"),this.visitAllObjects(n=>n.visitType(this,t),e.typeParams,t,","),t.print(null,">")))}visitArrayType(e,t){this.printTypes&&(t.print(null,": "),e.of.visitType(this,t),t.print(null,"[]"))}visitMapType(e,t){this.printTypes&&(t.print(null,": { [key: string]: "),e.valueType?e.valueType.visitType(this,t):t.print(null,"any"),t.print(null,"}"))}visitTransplantedType(e,t){throw new Error("TransplantedType nodes are not supported")}visitAllExpressions(e,t,n){this.visitAllObjects(r=>r.visitExpression(this,t),e,t,n)}visitAllObjects(e,t,n,r){for(let s=0;s<t.length;s++)s>0&&n.print(null,r,!1),e(t[s])}visitAllStatements(e,t){e.forEach(n=>n.visitStatement(this,t))}visitParams(e,t){this.visitAllObjects(n=>{t.print(null,n.name),n.type?.visitType(this,t)},e,t,", ")}shouldParenthesize(e,t){return(e instanceof on||e instanceof Fn)&&t instanceof Ye||e instanceof Cn&&t instanceof on}printLeadingComments(e,t){if(!(!this.printComments||e.leadingComments===void 0))for(let n of e.leadingComments)n instanceof Nu?t.print(e,`/*${n.toString()}*/`,n.trailingNewline):n.multiline?t.print(e,`/* ${n.text} */`,n.trailingNewline):n.text.split(`
12
+ `).forEach(r=>t.println(e,`// ${r}`))}};function yr(e,t=!0){if(e==null)return null;let n=e.replace(CO,(...s)=>s[0]==`
13
+ `?"\\n":s[0]=="\r"?"\\r":`\\${s[0]}`);return t||!_O.test(n)?`'${n}'`:n}l(yr,"escapeIdentifier");var rt=0,IO=8,Am=9,Ei=10,Qw=11,Jw=12,Cm=13,Zw=32,hd=33,ml=34,eT=35,Du=36,kO=37,Yc=38,gl=39,Rt=40,st=41,dd=42,tT=43,xt=44,Kc=45,ri=46,en=47,zn=58,Wt=59,Ca=60,pt=61,kt=62,Sa=63,_m=48,PO=55,nT=57,as=65,LO=69,DO=70,OO=88,ro=90,Qn=91,Si=92,wr=93,RO=94,os=95,Ii=97,BO=98,MO=101,Nm=102,rT=110,sT=114,iT=116,aT=117,oT=118,lT=120,Fl=122,yn=123,my=124,Lt=125,cT=160,ca=64,fd=96;function Fa(e){return e>=Am&&e<=Zw||e==cT}l(Fa,"isWhitespace");function nn(e){return _m<=e&&e<=nT}l(nn,"isDigit");function kr(e){return e>=Ii&&e<=Fl||e>=as&&e<=ro}l(kr,"isAsciiLetter");function uT(e){return e>=Ii&&e<=Nm||e>=as&&e<=DO||nn(e)}l(uT,"isAsciiHexDigit");function _a(e){return e===Ei||e===Cm}l(_a,"isNewLine");function md(e){return _m<=e&&e<=PO}l(md,"isOctalDigit");function Na(e){return e===gl||e===ml||e===fd}l(Na,"isQuote");var $a=class pT{static{l(this,"ParseLocation")}file;offset;line;col;constructor(t,n,r,s){this.file=t,this.offset=n,this.line=r,this.col=s}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(t){let n=this.file.content,r=n.length,s=this.offset,i=this.line,a=this.col;for(;s>0&&t<0;)if(s--,t++,n.charCodeAt(s)==Ei){i--;let c=n.substring(0,s-1).lastIndexOf(String.fromCharCode(Ei));a=c>0?s-c:s}else a--;for(;s<r&&t>0;){let o=n.charCodeAt(s);s++,t--,o==Ei?(i++,a=0):a++}return new pT(this.file,s,i,a)}getContext(t,n){let r=this.file.content,s=this.offset;if(s!=null){s>r.length-1&&(s=r.length-1);let i=s,a=0,o=0;for(;a<t&&s>0&&(s--,a++,!(r[s]==`
14
+ `&&++o==n)););for(a=0,o=0;a<t&&i<r.length-1&&(i++,a++,!(r[i]==`
15
+ `&&++o==n)););return{before:r.substring(s,this.offset),after:r.substring(this.offset,i+1)}}return null}},Ou=class{static{l(this,"ParseSourceFile")}content;url;constructor(e,t){this.content=e,this.url=t}},F=class{static{l(this,"ParseSourceSpan")}start;end;fullStart;details;constructor(e,t,n=e,r=null){this.start=e,this.end=t,this.fullStart=n,this.details=r}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},Xn;(function(e){e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR"})(Xn||(Xn={}));var k=class extends Error{static{l(this,"ParseError")}span;msg;level;relatedError;constructor(e,t,n=Xn.ERROR,r){super(t),this.span=e,this.msg=t,this.level=n,this.relatedError=r,Object.setPrototypeOf(this,new.target.prototype)}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${Xn[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};function Im(e,t,n){let r=`in ${e} ${t} in ${n}`,s=new Ou("",r);return new F(new $a(s,-1,-1,-1),new $a(s,-1,-1,-1))}l(Im,"r3JitTypeSourceSpan");var FO=0;function km(e){if(!e||!e.reference)return null;let t=e.reference;if(t.__anonymousType)return t.__anonymousType;if(t.__forward_ref__)return"__forward_ref__";let n=xm(t);return n.indexOf("(")>=0?(n=`anonymous_${FO++}`,t.__anonymousType=n):n=Er(n),n}l(km,"identifierName");function Er(e){return e.replace(/\W/g,"_")}l(Er,"sanitizeIdentifier");var Pr=class{static{l(this,"ParseSpan")}start;end;constructor(e,t){this.start=e,this.end=t}toAbsolute(e){return new at(e+this.start,e+this.end)}},Ae=class{static{l(this,"AST")}span;sourceSpan;constructor(e,t){this.span=e,this.sourceSpan=t}toString(){return"AST"}},$l=class extends Ae{static{l(this,"ASTWithName")}nameSpan;constructor(e,t,n){super(e,t),this.nameSpan=n}},gt=class extends Ae{static{l(this,"EmptyExpr")}visit(t,n=null){return t.visitEmptyExpr?.(this,n)}},dt=class extends Ae{static{l(this,"ImplicitReceiver")}visit(e,t=null){return e.visitImplicitReceiver(this,t)}},tr=class extends Ae{static{l(this,"ThisReceiver")}visit(e,t=null){return e.visitThisReceiver?.(this,t)}},Ul=class extends Ae{static{l(this,"Chain")}expressions;constructor(e,t,n){super(e,t),this.expressions=n}visit(e,t=null){return e.visitChain(this,t)}},Pm=class extends Ae{static{l(this,"Conditional")}condition;trueExp;falseExp;constructor(e,t,n,r,s){super(e,t),this.condition=n,this.trueExp=r,this.falseExp=s}visit(e,t=null){return e.visitConditional(this,t)}},Je=class extends $l{static{l(this,"PropertyRead")}receiver;name;constructor(e,t,n,r,s){super(e,t,n),this.receiver=r,this.name=s}visit(e,t=null){return e.visitPropertyRead(this,t)}},ki=class extends $l{static{l(this,"SafePropertyRead")}receiver;name;constructor(e,t,n,r,s){super(e,t,n),this.receiver=r,this.name=s}visit(e,t=null){return e.visitSafePropertyRead(this,t)}},Lr=class extends Ae{static{l(this,"KeyedRead")}receiver;key;constructor(e,t,n,r){super(e,t),this.receiver=n,this.key=r}visit(e,t=null){return e.visitKeyedRead(this,t)}},Ua=class extends Ae{static{l(this,"SafeKeyedRead")}receiver;key;constructor(e,t,n,r){super(e,t),this.receiver=n,this.key=r}visit(e,t=null){return e.visitSafeKeyedRead(this,t)}},Ia;(function(e){e[e.ReferencedByName=0]="ReferencedByName",e[e.ReferencedDirectly=1]="ReferencedDirectly"})(Ia||(Ia={}));var Ru=class extends $l{static{l(this,"BindingPipe")}exp;name;args;type;constructor(e,t,n,r,s,i,a){super(e,t,a),this.exp=n,this.name=r,this.args=s,this.type=i}visit(e,t=null){return e.visitPipe(this,t)}},Dt=class extends Ae{static{l(this,"LiteralPrimitive")}value;constructor(e,t,n){super(e,t),this.value=n}visit(e,t=null){return e.visitLiteralPrimitive(this,t)}},Vl=class extends Ae{static{l(this,"LiteralArray")}expressions;constructor(e,t,n){super(e,t),this.expressions=n}visit(e,t=null){return e.visitLiteralArray(this,t)}},Lm=class extends Ae{static{l(this,"SpreadElement")}expression;constructor(e,t,n){super(e,t),this.expression=n}visit(e,t=null){return e.visitSpreadElement(this,t)}},Pi=class extends Ae{static{l(this,"LiteralMap")}keys;values;constructor(e,t,n,r){super(e,t),this.keys=n,this.values=r}visit(e,t=null){return e.visitLiteralMap(this,t)}},so=class extends Ae{static{l(this,"Interpolation")}strings;expressions;constructor(t,n,r,s){super(t,n),this.strings=r,this.expressions=s}visit(t,n=null){return t.visitInterpolation(this,n)}},wt=class extends Ae{static{l(this,"Binary")}operation;left;right;constructor(e,t,n,r,s){super(e,t),this.operation=n,this.left=r,this.right=s}visit(e,t=null){return e.visitBinary(this,t)}static isAssignmentOperation(e){return e==="="||e==="+="||e==="-="||e==="*="||e==="/="||e==="%="||e==="**="||e==="&&="||e==="||="||e==="??="}},ll=class gd extends wt{static{l(this,"Unary")}operator;expr;left=null;right=null;operation=null;static createMinus(t,n,r){return new gd(t,n,"-",r,"-",new Dt(t,n,0),r)}static createPlus(t,n,r){return new gd(t,n,"+",r,"-",r,new Dt(t,n,0))}constructor(t,n,r,s,i,a,o){super(t,n,i,a,o),this.operator=r,this.expr=s}visit(t,n=null){return t.visitUnary!==void 0?t.visitUnary(this,n):t.visitBinary(this,n)}},Qc=class extends Ae{static{l(this,"PrefixNot")}expression;constructor(e,t,n){super(e,t),this.expression=n}visit(e,t=null){return e.visitPrefixNot(this,t)}},Jc=class extends Ae{static{l(this,"TypeofExpression")}expression;constructor(e,t,n){super(e,t),this.expression=n}visit(e,t=null){return e.visitTypeofExpression(this,t)}},Zc=class extends Ae{static{l(this,"VoidExpression")}expression;constructor(e,t,n){super(e,t),this.expression=n}visit(e,t=null){return e.visitVoidExpression(this,t)}},ql=class extends Ae{static{l(this,"NonNullAssert")}expression;constructor(e,t,n){super(e,t),this.expression=n}visit(e,t=null){return e.visitNonNullAssert(this,t)}},ln=class extends Ae{static{l(this,"Call")}receiver;args;argumentSpan;constructor(e,t,n,r,s){super(e,t),this.receiver=n,this.args=r,this.argumentSpan=s}visit(e,t=null){return e.visitCall(this,t)}},Hi=class extends Ae{static{l(this,"SafeCall")}receiver;args;argumentSpan;constructor(e,t,n,r,s){super(e,t),this.receiver=n,this.args=r,this.argumentSpan=s}visit(e,t=null){return e.visitSafeCall(this,t)}},eu=class extends Ae{static{l(this,"TaggedTemplateLiteral")}tag;template;constructor(e,t,n,r){super(e,t),this.tag=n,this.template=r}visit(e,t){return e.visitTaggedTemplateLiteral(this,t)}},tu=class extends Ae{static{l(this,"TemplateLiteral")}elements;expressions;constructor(e,t,n,r){super(e,t),this.elements=n,this.expressions=r}visit(e,t){return e.visitTemplateLiteral(this,t)}},vd=class extends Ae{static{l(this,"TemplateLiteralElement")}text;constructor(e,t,n){super(e,t),this.text=n}visit(e,t){return e.visitTemplateLiteralElement(this,t)}},Bu=class extends Ae{static{l(this,"ParenthesizedExpression")}expression;constructor(e,t,n){super(e,t),this.expression=n}visit(e,t){return e.visitParenthesizedExpression(this,t)}},hT=class{static{l(this,"ArrowFunctionIdentifierParameter")}name;span;sourceSpan;constructor(e,t,n){this.name=e,this.span=t,this.sourceSpan=n}},Dm=class extends Ae{static{l(this,"ArrowFunction")}parameters;body;constructor(e,t,n,r){super(e,t),this.parameters=n,this.body=r}visit(e,t){return e.visitArrowFunction(this,t)}},Om=class extends Ae{static{l(this,"RegularExpressionLiteral")}body;flags;constructor(e,t,n,r){super(e,t),this.body=n,this.flags=r}visit(e,t){return e.visitRegularExpressionLiteral(this,t)}},at=class{static{l(this,"AbsoluteSourceSpan")}start;end;constructor(e,t){this.start=e,this.end=t}},Gt=class extends Ae{static{l(this,"ASTWithSource")}ast;source;location;errors;constructor(e,t,n,r,s){super(new Pr(0,t===null?0:t.length),new at(r,t===null?r:r+t.length)),this.ast=e,this.source=t,this.location=n,this.errors=s}visit(e,t=null){return e.visitASTWithSource?e.visitASTWithSource(this,t):this.ast.visit(e,t)}toString(){return`${this.source} in ${this.location}`}},nu=class{static{l(this,"VariableBinding")}sourceSpan;key;value;constructor(e,t,n){this.sourceSpan=e,this.key=t,this.value=n}},dT=class{static{l(this,"ExpressionBinding")}sourceSpan;key;value;constructor(e,t,n){this.sourceSpan=e,this.key=t,this.value=n}},io=class{static{l(this,"RecursiveAstVisitor")}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)}visitLiteralArray(e,t){this.visitAll(e.expressions,t)}visitLiteralMap(e,t){this.visitAll(e.values,t)}visitLiteralPrimitive(e,t){}visitPrefixNot(e,t){this.visit(e.expression,t)}visitTypeofExpression(e,t){this.visit(e.expression,t)}visitVoidExpression(e,t){this.visit(e.expression,t)}visitNonNullAssert(e,t){this.visit(e.expression,t)}visitPropertyRead(e,t){this.visit(e.receiver,t)}visitSafePropertyRead(e,t){this.visit(e.receiver,t)}visitSafeKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitSafeCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitTemplateLiteral(e,t){for(let n=0;n<e.elements.length;n++){this.visit(e.elements[n],t);let r=n<e.expressions.length?e.expressions[n]:null;r!==null&&this.visit(r,t)}}visitTemplateLiteralElement(e,t){}visitTaggedTemplateLiteral(e,t){this.visit(e.tag,t),this.visit(e.template,t)}visitParenthesizedExpression(e,t){this.visit(e.expression,t)}visitArrowFunction(e,t){this.visit(e.body,t)}visitRegularExpressionLiteral(e,t){}visitSpreadElement(e,t){this.visit(e.expression,t)}visitEmptyExpr(e,t){}visitAll(e,t){for(let n of e)this.visit(n,t)}},Go=class{static{l(this,"ParsedProperty")}name;expression;type;sourceSpan;keySpan;valueSpan;isLiteral;isLegacyAnimation;isAnimation;constructor(e,t,n,r,s,i){this.name=e,this.expression=t,this.type=n,this.sourceSpan=r,this.keySpan=s,this.valueSpan=i,this.isLiteral=this.type===En.LITERAL_ATTR,this.isLegacyAnimation=this.type===En.LEGACY_ANIMATION,this.isAnimation=this.type===En.ANIMATION}},En;(function(e){e[e.DEFAULT=0]="DEFAULT",e[e.LITERAL_ATTR=1]="LITERAL_ATTR",e[e.LEGACY_ANIMATION=2]="LEGACY_ANIMATION",e[e.TWO_WAY=3]="TWO_WAY",e[e.ANIMATION=4]="ANIMATION"})(En||(En={}));var Re;(function(e){e[e.Regular=0]="Regular",e[e.LegacyAnimation=1]="LegacyAnimation",e[e.TwoWay=2]="TwoWay",e[e.Animation=3]="Animation"})(Re||(Re={}));var Ed=class{static{l(this,"ParsedEvent")}name;targetOrPhase;type;handler;sourceSpan;handlerSpan;keySpan;constructor(e,t,n,r,s,i,a){this.name=e,this.targetOrPhase=t,this.type=n,this.handler=r,this.sourceSpan=s,this.handlerSpan=i,this.keySpan=a}},fT=class{static{l(this,"ParsedVariable")}name;value;sourceSpan;keySpan;valueSpan;constructor(e,t,n,r,s){this.name=e,this.value=t,this.sourceSpan=n,this.keySpan=r,this.valueSpan=s}},$;(function(e){e[e.Property=0]="Property",e[e.Attribute=1]="Attribute",e[e.Class=2]="Class",e[e.Style=3]="Style",e[e.LegacyAnimation=4]="LegacyAnimation",e[e.TwoWay=5]="TwoWay",e[e.Animation=6]="Animation"})($||($={}));var Sd=class{static{l(this,"BoundElementProperty")}name;type;securityContext;value;unit;sourceSpan;keySpan;valueSpan;constructor(e,t,n,r,s,i,a,o){this.name=e,this.type=t,this.securityContext=n,this.value=r,this.unit=s,this.sourceSpan=i,this.keySpan=a,this.valueSpan=o}},hi=class{static{l(this,"Comment")}value;sourceSpan;constructor(t,n){this.value=t,this.sourceSpan=n}visit(t){throw new Error("visit() not implemented for Comment")}},Yn=class{static{l(this,"Text")}value;sourceSpan;constructor(t,n){this.value=t,this.sourceSpan=n}visit(t){return t.visitText(this)}},Li=class{static{l(this,"BoundText")}value;sourceSpan;i18n;constructor(e,t,n){this.value=e,this.sourceSpan=t,this.i18n=n}visit(e){return e.visitBoundText(this)}},vl=class{static{l(this,"TextAttribute")}name;value;sourceSpan;keySpan;valueSpan;i18n;constructor(e,t,n,r,s,i){this.name=e,this.value=t,this.sourceSpan=n,this.keySpan=r,this.valueSpan=s,this.i18n=i}visit(e){return e.visitTextAttribute(this)}},Di=class mT{static{l(this,"BoundAttribute")}name;type;securityContext;value;unit;sourceSpan;keySpan;valueSpan;i18n;constructor(t,n,r,s,i,a,o,c,u){this.name=t,this.type=n,this.securityContext=r,this.value=s,this.unit=i,this.sourceSpan=a,this.keySpan=o,this.valueSpan=c,this.i18n=u}static fromBoundElementProperty(t,n){if(t.keySpan===void 0)throw new Error(`Unexpected state: keySpan must be defined for bound attributes but was not for ${t.name}: ${t.sourceSpan}`);return new mT(t.name,t.type,t.securityContext,t.value,t.unit,t.sourceSpan,t.keySpan,t.valueSpan,n)}visit(t){return t.visitBoundAttribute(this)}},Mu=class gT{static{l(this,"BoundEvent")}name;type;handler;target;phase;sourceSpan;handlerSpan;keySpan;constructor(t,n,r,s,i,a,o,c){this.name=t,this.type=n,this.handler=r,this.target=s,this.phase=i,this.sourceSpan=a,this.handlerSpan=o,this.keySpan=c}static fromParsedEvent(t){let n=t.type===Re.Regular?t.targetOrPhase:null,r=t.type===Re.LegacyAnimation?t.targetOrPhase:null;if(t.keySpan===void 0)throw new Error(`Unexpected state: keySpan must be defined for bound event but was not for ${t.name}: ${t.sourceSpan}`);return new gT(t.name,t.type,t.handler,n,r,t.sourceSpan,t.handlerSpan,t.keySpan)}visit(t){return t.visitBoundEvent(this)}},de=class{static{l(this,"Element")}name;attributes;inputs;outputs;directives;children;references;isSelfClosing;sourceSpan;startSourceSpan;endSourceSpan;isVoid;i18n;constructor(t,n,r,s,i,a,o,c,u,p,h,f,v){this.name=t,this.attributes=n,this.inputs=r,this.outputs=s,this.directives=i,this.children=a,this.references=o,this.isSelfClosing=c,this.sourceSpan=u,this.startSourceSpan=p,this.endSourceSpan=h,this.isVoid=f,this.i18n=v}visit(t){return t.visitElement(this)}},Rr=class{static{l(this,"DeferredTrigger")}nameSpan;sourceSpan;prefetchSpan;whenOrOnSourceSpan;hydrateSpan;constructor(e,t,n,r,s){this.nameSpan=e,this.sourceSpan=t,this.prefetchSpan=n,this.whenOrOnSourceSpan=r,this.hydrateSpan=s}visit(e){return e.visitDeferredTrigger(this)}},Rm=class extends Rr{static{l(this,"BoundDeferredTrigger")}value;constructor(e,t,n,r,s){super(null,t,n,r,s),this.value=e}},vT=class extends Rr{static{l(this,"NeverDeferredTrigger")}},ET=class extends Rr{static{l(this,"IdleDeferredTrigger")}timeout;constructor(e,t,n,r,s,i){super(e,t,n,r,s),this.timeout=i}},ST=class extends Rr{static{l(this,"ImmediateDeferredTrigger")}},Bm=class extends Rr{static{l(this,"HoverDeferredTrigger")}reference;constructor(e,t,n,r,s,i){super(t,n,r,s,i),this.reference=e}},yT=class extends Rr{static{l(this,"TimerDeferredTrigger")}delay;constructor(e,t,n,r,s,i){super(t,n,r,s,i),this.delay=e}},Mm=class extends Rr{static{l(this,"InteractionDeferredTrigger")}reference;constructor(e,t,n,r,s,i){super(t,n,r,s,i),this.reference=e}},Fu=class extends Rr{static{l(this,"ViewportDeferredTrigger")}reference;options;constructor(e,t,n,r,s,i,a){super(n,r,s,i,a),this.reference=e,this.options=t}},Ct=class{static{l(this,"BlockNode")}nameSpan;sourceSpan;startSourceSpan;endSourceSpan;constructor(e,t,n,r){this.nameSpan=e,this.sourceSpan=t,this.startSourceSpan=n,this.endSourceSpan=r}},$u=class extends Ct{static{l(this,"DeferredBlockPlaceholder")}children;minimumTime;i18n;constructor(e,t,n,r,s,i,a){super(n,r,s,i),this.children=e,this.minimumTime=t,this.i18n=a}visit(e){return e.visitDeferredBlockPlaceholder(this)}},Uu=class extends Ct{static{l(this,"DeferredBlockLoading")}children;afterTime;minimumTime;i18n;constructor(e,t,n,r,s,i,a,o){super(r,s,i,a),this.children=e,this.afterTime=t,this.minimumTime=n,this.i18n=o}visit(e){return e.visitDeferredBlockLoading(this)}},Vu=class extends Ct{static{l(this,"DeferredBlockError")}children;i18n;constructor(e,t,n,r,s,i){super(t,n,r,s),this.children=e,this.i18n=i}visit(e){return e.visitDeferredBlockError(this)}},Hl=class extends Ct{static{l(this,"ContentBlock")}name;variables;children;i18n;constructor(e,t,n,r,s,i,a,o){super(r,s,i,a),this.name=e,this.variables=t,this.children=n,this.i18n=o}visit(e){return e.visitContentBlock(this)}},ao=class extends Ct{static{l(this,"BoundaryBlock")}children;errorBlocks;mainBlockSpan;i18n;constructor(e,t,n,r,s,i,a,o){super(n,r,i,a),this.children=e,this.errorBlocks=t,this.mainBlockSpan=s,this.i18n=o}visit(e){return e.visitBoundaryBlock(this)}},jl=class extends Ct{static{l(this,"BoundaryErrorBlock")}children;contextVariables;expression;i18n;constructor(e,t,n,r,s,i,a,o){super(r,s,i,a),this.children=e,this.contextVariables=t,this.expression=n,this.i18n=o}visit(e){return e.visitBoundaryErrorBlock(this)}},Xr=class extends Ct{static{l(this,"DeferredBlock")}children;placeholder;loading;error;mainBlockSpan;definedName;i18n;triggers;prefetchTriggers;hydrateTriggers;definedTriggers;definedPrefetchTriggers;definedHydrateTriggers;constructor(e,t,n,r,s,i,a,o,c,u,p,h,f,v){super(o,c,p,h),this.children=e,this.placeholder=s,this.loading=i,this.error=a,this.mainBlockSpan=u,this.definedName=f,this.i18n=v,this.triggers=t,this.prefetchTriggers=n,this.hydrateTriggers=r,this.definedTriggers=Object.keys(t),this.definedPrefetchTriggers=Object.keys(n),this.definedHydrateTriggers=Object.keys(r)}visit(e){return e.visitDeferredBlock(this)}visitAll(e){this.visitTriggers(this.definedHydrateTriggers,this.hydrateTriggers,e),this.visitTriggers(this.definedTriggers,this.triggers,e),this.visitTriggers(this.definedPrefetchTriggers,this.prefetchTriggers,e),te(e,this.children);let t=[this.placeholder,this.loading,this.error].filter(n=>n!==null);te(e,t)}visitTriggers(e,t,n){te(n,e.map(r=>t[r]))}},Wl=class extends Ct{static{l(this,"SwitchBlock")}expression;groups;unknownBlocks;exhaustiveCheck;constructor(e,t,n,r,s,i,a,o){super(o,s,i,a),this.expression=e,this.groups=t,this.unknownBlocks=n,this.exhaustiveCheck=r}visit(e){return e.visitSwitchBlock(this)}},wT=class extends Ct{static{l(this,"SwitchBlockCase")}expression;constructor(e,t,n,r,s){super(s,t,n,r),this.expression=e}visit(e){return e.visitSwitchBlockCase(this)}},qu=class extends Ct{static{l(this,"SwitchBlockCaseGroup")}cases;children;i18n;constructor(e,t,n,r,s,i,a){super(i,n,r,s),this.cases=e,this.children=t,this.i18n=a}visit(e){return e.visitSwitchBlockCaseGroup(this)}},TT=class extends Ct{static{l(this,"SwitchExhaustiveCheck")}expression;constructor(e,t,n,r,s){super(s,t,n,r),this.expression=e}visit(e){return e.visitSwitchExhaustiveCheck(this)}},Zr=class extends Ct{static{l(this,"ForLoopBlock")}item;expression;trackBy;trackKeywordSpan;contextVariables;children;empty;mainBlockSpan;i18n;constructor(e,t,n,r,s,i,a,o,c,u,p,h,f){super(h,o,u,p),this.item=e,this.expression=t,this.trackBy=n,this.trackKeywordSpan=r,this.contextVariables=s,this.children=i,this.empty=a,this.mainBlockSpan=c,this.i18n=f}visit(e){return e.visitForLoopBlock(this)}},Hu=class extends Ct{static{l(this,"ForLoopBlockEmpty")}children;i18n;constructor(e,t,n,r,s,i){super(s,t,n,r),this.children=e,this.i18n=i}visit(e){return e.visitForLoopBlockEmpty(this)}},zl=class extends Ct{static{l(this,"IfBlock")}branches;constructor(e,t,n,r,s){super(s,t,n,r),this.branches=e}visit(e){return e.visitIfBlock(this)}},yi=class extends Ct{static{l(this,"IfBlockBranch")}expression;children;expressionAlias;i18n;constructor(e,t,n,r,s,i,a,o){super(a,r,s,i),this.expression=e,this.children=t,this.expressionAlias=n,this.i18n=o}visit(e){return e.visitIfBlockBranch(this)}},Fm=class{static{l(this,"UnknownBlock")}name;sourceSpan;nameSpan;constructor(e,t,n){this.name=e,this.sourceSpan=t,this.nameSpan=n}visit(e){return e.visitUnknownBlock(this)}},Tr=class{static{l(this,"LetDeclaration")}name;value;sourceSpan;nameSpan;valueSpan;constructor(t,n,r,s,i){this.name=t,this.value=n,this.sourceSpan=r,this.nameSpan=s,this.valueSpan=i}visit(t){return t.visitLetDeclaration(this)}},Jn=class{static{l(this,"Component")}componentName;tagName;fullName;attributes;inputs;outputs;directives;children;references;isSelfClosing;sourceSpan;startSourceSpan;endSourceSpan;i18n;constructor(t,n,r,s,i,a,o,c,u,p,h,f,v,E){this.componentName=t,this.tagName=n,this.fullName=r,this.attributes=s,this.inputs=i,this.outputs=a,this.directives=o,this.children=c,this.references=u,this.isSelfClosing=p,this.sourceSpan=h,this.startSourceSpan=f,this.endSourceSpan=v,this.i18n=E}visit(t){return t.visitComponent(this)}},ka=class{static{l(this,"Directive")}name;attributes;inputs;outputs;references;sourceSpan;startSourceSpan;endSourceSpan;i18n;constructor(t,n,r,s,i,a,o,c,u){this.name=t,this.attributes=n,this.inputs=r,this.outputs=s,this.references=i,this.sourceSpan=a,this.startSourceSpan=o,this.endSourceSpan=c,this.i18n=u}visit(t){return t.visitDirective(this)}},De=class{static{l(this,"Template")}tagName;attributes;inputs;outputs;directives;templateAttrs;children;references;variables;isSelfClosing;sourceSpan;startSourceSpan;endSourceSpan;i18n;constructor(e,t,n,r,s,i,a,o,c,u,p,h,f,v){this.tagName=e,this.attributes=t,this.inputs=n,this.outputs=r,this.directives=s,this.templateAttrs=i,this.children=a,this.references=o,this.variables=c,this.isSelfClosing=u,this.sourceSpan=p,this.startSourceSpan=h,this.endSourceSpan=f,this.i18n=v}visit(e){return e.visitTemplate(this)}},oo=class{static{l(this,"Content")}selector;attributes;children;isSelfClosing;sourceSpan;startSourceSpan;endSourceSpan;i18n;name="ng-content";constructor(e,t,n,r,s,i,a,o){this.selector=e,this.attributes=t,this.children=n,this.isSelfClosing=r,this.sourceSpan=s,this.startSourceSpan=i,this.endSourceSpan=a,this.i18n=o}visit(e){return e.visitContent(this)}},cn=class{static{l(this,"Variable")}name;value;sourceSpan;keySpan;valueSpan;constructor(e,t,n,r,s){this.name=e,this.value=t,this.sourceSpan=n,this.keySpan=r,this.valueSpan=s}visit(e){return e.visitVariable(this)}},El=class{static{l(this,"Reference")}name;value;sourceSpan;keySpan;valueSpan;constructor(e,t,n,r,s){this.name=e,this.value=t,this.sourceSpan=n,this.keySpan=r,this.valueSpan=s}visit(e){return e.visitReference(this)}},ju=class{static{l(this,"Icu")}vars;placeholders;sourceSpan;i18n;constructor(t,n,r,s){this.vars=t,this.placeholders=n,this.sourceSpan=r,this.i18n=s}visit(t){return t.visitIcu(this)}},Bt=class{static{l(this,"HostElement")}tagNames;bindings;listeners;sourceSpan;constructor(e,t,n,r){if(this.tagNames=e,this.bindings=t,this.listeners=n,this.sourceSpan=r,e.length===0)throw new Error("HostElement must have at least one tag name.")}visit(){throw new Error("HostElement cannot be visited")}},xT=class{static{l(this,"RecursiveVisitor")}visitElement(t){te(this,t.attributes),te(this,t.inputs),te(this,t.outputs),te(this,t.directives),te(this,t.children),te(this,t.references)}visitTemplate(t){te(this,t.attributes),te(this,t.inputs),te(this,t.outputs),te(this,t.directives),te(this,t.children),te(this,t.references),te(this,t.variables)}visitDeferredBlock(t){t.visitAll(this)}visitDeferredBlockPlaceholder(t){te(this,t.children)}visitDeferredBlockError(t){te(this,t.children)}visitDeferredBlockLoading(t){te(this,t.children)}visitSwitchBlock(t){te(this,t.groups)}visitSwitchBlockCase(t){}visitSwitchBlockCaseGroup(t){te(this,t.cases),te(this,t.children)}visitSwitchExhaustiveCheck(t){}visitForLoopBlock(t){let n=[t.item,...t.contextVariables,...t.children];t.empty&&n.push(t.empty),te(this,n)}visitForLoopBlockEmpty(t){te(this,t.children)}visitIfBlock(t){te(this,t.branches)}visitIfBlockBranch(t){te(this,t.children),t.expressionAlias?.visit(this)}visitBoundaryBlock(t){te(this,t.children),te(this,t.errorBlocks)}visitBoundaryErrorBlock(t){let n=[...t.contextVariables,...t.children];te(this,n)}visitContent(t){te(this,t.children)}visitComponent(t){te(this,t.attributes),te(this,t.inputs),te(this,t.outputs),te(this,t.directives),te(this,t.children),te(this,t.references)}visitDirective(t){te(this,t.attributes),te(this,t.inputs),te(this,t.outputs),te(this,t.references)}visitVariable(t){}visitReference(t){}visitTextAttribute(t){}visitBoundAttribute(t){}visitBoundEvent(t){}visitText(t){}visitBoundText(t){}visitIcu(t){}visitDeferredTrigger(t){}visitUnknownBlock(t){}visitLetDeclaration(t){}visitContentBlock(t){te(this,t.children)}};function te(e,t){let n=[];if(e.visit)for(let r of t)e.visit(r);else for(let r of t){let s=r.visit(e);s&&n.push(s)}return n}l(te,"visitAll$1");var gy=/(\s*)(\S+)(\s*)/,$O=/[-.]/,Wu=/^[$A-Z_][0-9A-Z_$]*$/i,$m=/^let\s+([\S\s]*)/;function Um(e,t,n,r,s,i,a,o){let c=t.split(","),u=n.start;for(let p of c){let h=p.split("="),f=h[0].trim(),v=h.length===2?h[1].trim():o??"";if(f.length===0||v.length===0)s.push(new k(e,`Invalid ${a} "let" parameter. Parameter should match the pattern "<name> = <variable name>"`));else if(!Wu.test(f))s.push(new k(e,'"let" parameter must be a valid JavaScript identifier'));else{i(f,v,e);let[,E,T]=h[0].match(gy)??[],y=E!==void 0?new F(u.moveBy(E.length),u.moveBy(E.length+T.length)):n,N;if(h.length===2){let[,q,le]=h[1].match(gy)??[];N=q!==void 0?new F(u.moveBy(h[0].length+1+q.length),u.moveBy(h[0].length+1+q.length+le.length)):void 0}let V=new F(y.start,N?.end??y.end);r.push(new cn(f,v,V,y,N))}u=u.moveBy(p.length+1)}}l(Um,"parseLetParameters");function zu(e,t){if(t===0)return He(e);let n=[];for(let r=0;r<t;r++)n.push(L);return He(e,void 0,n)}l(zu,"typeWithParameters");function Vm(e,t){let n=yr(t,!1);return n!==t?`${e}[${n}]`:`${e}.${t}`}l(Vm,"getSafePropertyAccessString");function bT(e){return qm("ngJitMode",e)}l(bT,"jitOnlyGuardedExpression");function Oi(e){return qm("ngDevMode",e)}l(Oi,"devOnlyGuardedExpression");function qm(e,t){let n=new is({name:e,moduleName:null}),r=new ce(A.Identical,new Ui(n),g("undefined")),s=new ce(A.Or,r,n,void 0,void 0);return new ce(A.And,s,t)}l(qm,"guardedExpression");function Ve(e){let t=new se(e);return{value:t,type:t}}l(Ve,"wrapReference");function Tn(e,t){let n=K(e.map(r=>r.value));return t?Se([],n,L):n}l(Tn,"refsToArray");function nr(){return ku("@ts-ignore",!0,!0)}l(nr,"tsIgnoreComment");function ji(e){return $O.test(e)}l(ji,"isUnsafeObjectKey");function Gl(e,t){return{expression:e,forwardRef:t}}l(Gl,"createMayBeForwardRefExpression");function di({expression:e,forwardRef:t}){switch(t){case 0:case 1:return e;case 2:return Gu(e)}}l(di,"convertFromMaybeForwardRefExpression");function Gu(e){return _(m.forwardRef).callFn([Se([],e,L)])}l(Gu,"generateForwardRef");var Sl;(function(e){e[e.Class=0]="Class",e[e.Function=1]="Function"})(Sl||(Sl={}));function Sr(e){let t=B("__ngFactoryType__"),n=null,r=wd(e)?t:new ce(A.Or,t,e.type.value),s=null,i=e.deps!==null&&e.deps!=="invalid"&&e.deps.length>0?[nr()]:void 0;e.deps!==null?e.deps!=="invalid"&&(s=new fl(r,yd(e.deps,e.target))):(n=B(`\u0275${e.name}_BaseFactory`),s=n.callFn([r]));let a=[],o=null;function c(p){let h=B("__ngConditionalFactory__");a.push(new Ke(h.name,Ir,L));let f=s!==null?h.set(s).toStmt(i):_(m.invalidFactory).callFn([]).toStmt();return a.push(no(t,[f],[h.set(p).toStmt([nr()])])),h}if(l(c,"makeConditionalFactory"),wd(e)){let p=yd(e.delegateDeps,e.target),h=new(e.delegateType===Sl.Class?fl:Ye)(e.delegate,p);o=c(h)}else NT(e)?o=c(e.expression):o=s;if(o===null)a.push(_(m.invalidFactory).callFn([]).toStmt());else if(n!==null){let p=_(m.getInheritedFactory).callFn([e.type.value]),h=new ce(A.Or,n,n.set(p));a.push(new Qe(h.callFn([r])))}else a.push(new Qe(o,null,i));let u=er([new Te(t.name,L)],a,L,void 0,`${e.name}_Factory`);return n!==null&&(u=Se([],[new Ke(n.name,void 0,L),new Qe(u)],L).callFn([],void 0,!0)),{expression:u,statements:[],type:Hm(e)}}l(Sr,"compileFactoryFunction");function Hm(e){let t=e.deps!==null&&e.deps!=="invalid"?CT(e.deps):Mt;return He(_(m.FactoryDeclaration,[zu(e.type.type,e.typeArgumentCount),t]))}l(Hm,"createFactoryType");function yd(e,t){return e.map((n,r)=>AT(n,t,r))}l(yd,"injectDependencies");function AT(e,t,n){if(e.token===null)return _(m.invalidFactoryDep).callFn([g(n)]);if(e.attributeNameType===null){let r=0|(e.self?2:0)|(e.skipSelf?4:0)|(e.host?1:0)|(e.optional?8:0)|(t===Sn.Pipe?16:0),s=r!==0||e.optional?g(r):null,i=[e.token];s&&i.push(s);let a=IT(t);return _(a).callFn(i)}else return _(m.injectAttribute).callFn([e.token])}l(AT,"compileInjectDependency");function CT(e){let t=!1,n=e.map(r=>{let s=_T(r);return s!==null?(t=!0,s):g(null)});return t?He(K(n)):Mt}l(CT,"createCtorDepsType");function _T(e){let t=[];return e.attributeNameType!==null&&t.push({key:"attribute",value:e.attributeNameType,quoted:!1}),e.optional&&t.push({key:"optional",value:g(!0),quoted:!1}),e.host&&t.push({key:"host",value:g(!0),quoted:!1}),e.self&&t.push({key:"self",value:g(!0),quoted:!1}),e.skipSelf&&t.push({key:"skipSelf",value:g(!0),quoted:!1}),t.length>0?je(t):null}l(_T,"createCtorDepType");function wd(e){return e.delegateType!==void 0}l(wd,"isDelegatedFactoryMetadata");function NT(e){return e.expression!==void 0}l(NT,"isExpressionFactoryMetadata");function IT(e){switch(e){case Sn.Component:case Sn.Directive:case Sn.Pipe:return m.directiveInject;case Sn.NgModule:case Sn.Injectable:default:return m.inject}}l(IT,"getInjectFn");var wn;(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"})(wn||(wn={}));function ot(e,t=!0){if(e[0]!=":")return[null,e];let n=e.indexOf(":",1);if(n===-1){if(t)throw new Error(`Unsupported format "${e}" expecting ":namespace:name"`);return[null,e]}return[e.slice(1,n),e.slice(n+1)]}l(ot,"splitNsName");function ru(e){return ot(e)[1]==="ng-container"}l(ru,"isNgContainer");function yl(e){return ot(e)[1]==="ng-content"}l(yl,"isNgContent");function jm(e){return ot(e)[1]==="ng-template"}l(jm,"isNgTemplate");function wl(e){return e===null?null:ot(e)[0]}l(wl,"getNsPrefix");function Pa(e,t){return e?`:${e}:${t}`:t}l(Pa,"mergeNsAndName");var Yt=class{static{l(this,"Message")}nodes;placeholders;placeholderToMessage;meaning;description;customId;sources;id;legacyIds=[];messageString;constructor(e,t,n,r,s,i){this.nodes=e,this.placeholders=t,this.placeholderToMessage=n,this.meaning=r,this.description=s,this.customId=i,this.id=this.customId,this.messageString=kT(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=[]}},Gn=class{static{l(this,"Text")}value;sourceSpan;constructor(t,n){this.value=t,this.sourceSpan=n}visit(t,n){return t.visitText(this,n)}},$n=class{static{l(this,"Container")}children;sourceSpan;constructor(e,t){this.children=e,this.sourceSpan=t}visit(e,t){return e.visitContainer(this,t)}},lo=class{static{l(this,"Icu")}expression;type;cases;sourceSpan;expressionPlaceholder;constructor(e,t,n,r,s){this.expression=e,this.type=t,this.cases=n,this.sourceSpan=r,this.expressionPlaceholder=s}visit(e,t){return e.visitIcu(this,t)}},es=class{static{l(this,"TagPlaceholder")}tag;attrs;startName;closeName;children;isVoid;sourceSpan;startSourceSpan;endSourceSpan;constructor(e,t,n,r,s,i,a,o,c){this.tag=e,this.attrs=t,this.startName=n,this.closeName=r,this.children=s,this.isVoid=i,this.sourceSpan=a,this.startSourceSpan=o,this.endSourceSpan=c}visit(e,t){return e.visitTagPlaceholder(this,t)}},Zn=class{static{l(this,"Placeholder")}value;name;sourceSpan;constructor(e,t,n){this.value=e,this.name=t,this.sourceSpan=n}visit(e,t){return e.visitPlaceholder(this,t)}},Va=class{static{l(this,"IcuPlaceholder")}value;name;sourceSpan;previousMessage;constructor(e,t,n){this.value=e,this.name=t,this.sourceSpan=n}visit(e,t){return e.visitIcuPlaceholder(this,t)}},ts=class{static{l(this,"BlockPlaceholder")}name;parameters;startName;closeName;children;sourceSpan;startSourceSpan;endSourceSpan;constructor(e,t,n,r,s,i,a,o){this.name=e,this.parameters=t,this.startName=n,this.closeName=r,this.children=s,this.sourceSpan=i,this.startSourceSpan=a,this.endSourceSpan=o}visit(e,t){return e.visitBlockPlaceholder(this,t)}},UO=class{static{l(this,"CloneVisitor")}visitText(e,t){return new Gn(e.value,e.sourceSpan)}visitContainer(e,t){let n=e.children.map(r=>r.visit(this,t));return new $n(n,e.sourceSpan)}visitIcu(e,t){let n={};return Object.keys(e.cases).forEach(s=>n[s]=e.cases[s].visit(this,t)),new lo(e.expression,e.type,n,e.sourceSpan,e.expressionPlaceholder)}visitTagPlaceholder(e,t){let n=e.children.map(r=>r.visit(this,t));return new es(e.tag,e.attrs,e.startName,e.closeName,n,e.isVoid,e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}visitPlaceholder(e,t){return new Zn(e.value,e.name,e.sourceSpan)}visitIcuPlaceholder(e,t){return new Va(e.value,e.name,e.sourceSpan)}visitBlockPlaceholder(e,t){let n=e.children.map(r=>r.visit(this,t));return new ts(e.name,e.parameters,e.startName,e.closeName,n,e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}},VO=class{static{l(this,"RecurseVisitor")}visitText(e,t){}visitContainer(e,t){e.children.forEach(n=>n.visit(this))}visitIcu(e,t){Object.keys(e.cases).forEach(n=>{e.cases[n].visit(this)})}visitTagPlaceholder(e,t){e.children.forEach(n=>n.visit(this))}visitPlaceholder(e,t){}visitIcuPlaceholder(e,t){}visitBlockPlaceholder(e,t){e.children.forEach(n=>n.visit(this))}};function kT(e){let t=new qO;return e.map(r=>r.visit(t)).join("")}l(kT,"serializeMessage");var qO=class{static{l(this,"LocalizeMessageStringVisitor")}visitText(e){return e.value}visitContainer(e){return e.children.map(t=>t.visit(this)).join("")}visitIcu(e){let t=Object.keys(e.cases).map(n=>`${n} {${e.cases[n].visit(this)}}`);return`{${e.expressionPlaceholder}, ${e.type}, ${t.join(" ")}}`}visitTagPlaceholder(e){let t=e.children.map(n=>n.visit(this)).join("");return`{$${e.startName}}${t}{$${e.closeName}}`}visitPlaceholder(e){return`{$${e.name}}`}visitIcuPlaceholder(e){return`{$${e.name}}`}visitBlockPlaceholder(e){let t=e.children.map(n=>n.visit(this)).join("");return`{$${e.startName}}${t}{$${e.closeName}}`}},Xl=class{static{l(this,"Serializer")}createNameMapper(e){return null}},PT=class extends VO{static{l(this,"SimplePlaceholderMapper")}mapName;internalToPublic={};publicToNextId={};publicToInternal={};constructor(e,t){super(),this.mapName=t,e.nodes.forEach(n=>n.visit(this))}toPublicName(e){return Object.hasOwn(this.internalToPublic,e)?this.internalToPublic[e]:null}toInternalName(e){return Object.hasOwn(this.publicToInternal,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)}visitBlockPlaceholder(e,t){this.visitPlaceholderName(e.startName),super.visitBlockPlaceholder(e,t),this.visitPlaceholderName(e.closeName)}visitIcuPlaceholder(e,t){this.visitPlaceholderName(e.name)}visitPlaceholderName(e){if(!e||Object.hasOwn(this.internalToPublic,e))return;let t=this.mapName(e);if(Object.hasOwn(this.publicToInternal,t)){let n=this.publicToNextId[t];this.publicToNextId[t]=n+1,t=`${t}_${n}`}else this.publicToNextId[t]=1;this.internalToPublic[e]=t,this.publicToInternal[t]=e}},HO=class{static{l(this,"_Visitor")}visitTag(t){let n=this._serializeAttributes(t.attrs);if(t.children.length==0)return`<${t.name}${n}/>`;let r=t.children.map(s=>s.visit(this));return`<${t.name}${n}>${r.join("")}</${t.name}>`}visitText(t){return t.value}visitDeclaration(t){return`<?xml${this._serializeAttributes(t.attrs)} ?>`}_serializeAttributes(t){let n=Object.keys(t).map(r=>`${r}="${t[r]}"`).join(" ");return n.length>0?" "+n:""}visitDoctype(t){return`<!DOCTYPE ${t.rootTag} [
16
+ ${t.dtd}
17
+ ]>`}},jO=new HO;function Xu(e){return e.map(t=>t.visit(jO)).join("")}l(Xu,"serialize$1");var Wm=class{static{l(this,"Declaration")}attrs={};constructor(e){Object.keys(e).forEach(t=>{this.attrs[t]=Yl(e[t])})}visit(e){return e.visitDeclaration(this)}},WO=class{static{l(this,"Doctype")}rootTag;dtd;constructor(e,t){this.rootTag=e,this.dtd=t}visit(e){return e.visitDoctype(this)}},Y=class{static{l(this,"Tag")}name;children;attrs={};constructor(e,t={},n=[]){this.name=e,this.children=n,Object.keys(t).forEach(r=>{this.attrs[r]=Yl(t[r])})}visit(e){return e.visitTag(this)}},me=class{static{l(this,"Text")}value;constructor(t){this.value=Yl(t)}visit(t){return t.visitText(this)}},pe=class extends me{static{l(this,"CR")}constructor(e=0){super(`
18
+ ${new Array(e+1).join(" ")}`)}},zO=[[/&/g,"&amp;"],[/"/g,"&quot;"],[/'/g,"&apos;"],[/</g,"&lt;"],[/>/g,"&gt;"]];function Yl(e){return zO.reduce((t,n)=>t.replace(n[0],n[1]),e)}l(Yl,"escapeXml");var GO="angular",vy="messagebundle",XO="msg",si="ph",ii="ex",YO="source",KO=`<!ELEMENT messagebundle (msg)*>
19
+ <!ATTLIST messagebundle class CDATA #IMPLIED>
20
+
21
+ <!ELEMENT msg (#PCDATA|ph|source)*>
22
+ <!ATTLIST msg id CDATA #IMPLIED>
23
+ <!ATTLIST msg seq CDATA #IMPLIED>
24
+ <!ATTLIST msg name CDATA #IMPLIED>
25
+ <!ATTLIST msg desc CDATA #IMPLIED>
26
+ <!ATTLIST msg meaning CDATA #IMPLIED>
27
+ <!ATTLIST msg obsolete (obsolete) #IMPLIED>
28
+ <!ATTLIST msg xml:space (default|preserve) "default">
29
+ <!ATTLIST msg is_hidden CDATA #IMPLIED>
30
+
31
+ <!ELEMENT source (#PCDATA)>
32
+
33
+ <!ELEMENT ph (#PCDATA|ex)*>
34
+ <!ATTLIST ph name CDATA #REQUIRED>
35
+
36
+ <!ELEMENT ex (#PCDATA)>`,LT=class extends Xl{static{l(this,"Xmb")}write(e,t){let n=new JO,r=new QO,s=new Y(vy);return s.attrs.handler=GO,e.forEach(i=>{let a={id:i.id};i.description&&(a.desc=i.description),i.meaning&&(a.meaning=i.meaning);let o=[];i.sources.forEach(c=>{o.push(new Y(YO,{},[new me(`${c.filePath}:${c.startLine}${c.endLine!==c.startLine?","+c.endLine:""}`)]))}),s.children.push(new pe(2),new Y(XO,a,[...o,...r.serialize(i.nodes)]))}),s.children.push(new pe),Xu([new Wm({version:"1.0",encoding:"UTF-8"}),new pe,new WO(vy,KO),new pe,n.addDefaultExamples(s),new pe])}load(e,t){throw new Error("Unsupported")}digest(e){return zm(e)}createNameMapper(e){return new PT(e,Yu)}},QO=class{static{l(this,"_Visitor")}visitText(t,n){return[new me(t.value)]}visitContainer(t,n){let r=[];return t.children.forEach(s=>r.push(...s.visit(this))),r}visitIcu(t,n){let r=[new me(`{${t.expressionPlaceholder}, ${t.type}, `)];return Object.keys(t.cases).forEach(s=>{r.push(new me(`${s} {`),...t.cases[s].visit(this),new me("} "))}),r.push(new me("}")),r}visitTagPlaceholder(t,n){let r=new me(`<${t.tag}>`),s=new Y(ii,{},[r]),i=new Y(si,{name:t.startName},[s,r]);if(t.isVoid)return[i];let a=new me(`</${t.tag}>`),o=new Y(ii,{},[a]),c=new Y(si,{name:t.closeName},[o,a]);return[i,...this.serialize(t.children),c]}visitPlaceholder(t,n){let r=new me(`{{${t.value}}}`),s=new Y(ii,{},[r]);return[new Y(si,{name:t.name},[s,r])]}visitBlockPlaceholder(t,n){let r=new me(`@${t.name}`),s=new Y(ii,{},[r]),i=new Y(si,{name:t.startName},[s,r]),a=new me("}"),o=new Y(ii,{},[a]),c=new Y(si,{name:t.closeName},[o,a]);return[i,...this.serialize(t.children),c]}visitIcuPlaceholder(t,n){let r=t.value.expression,s=t.value.type,i=Object.keys(t.value.cases).map(c=>c+" {...}").join(" "),a=new me(`{${r}, ${s}, ${i}}`),o=new Y(ii,{},[a]);return[new Y(si,{name:t.name},[o,a])]}serialize(t){return[].concat(...t.map(n=>n.visit(this)))}};function zm(e){return xu(e)}l(zm,"digest");var JO=class{static{l(this,"ExampleVisitor")}addDefaultExamples(e){return e.visit(this),e}visitTag(e){if(e.name===si){if(!e.children||e.children.length==0){let t=new me(e.attrs.name||"...");e.children=[new Y(ii,{},[t])]}}else e.children&&e.children.forEach(t=>t.visit(this))}visitText(e){}visitDeclaration(e){}visitDoctype(e){}};function Yu(e){return e.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}l(Yu,"toPublicName");var DT="i18n",Td="i18n-",ZO="VAR_";function Gm(e){return e===DT||e.startsWith(Td)}l(Gm,"isI18nAttribute");function OT(e){return e.attrs.some(t=>Gm(t.name))}l(OT,"hasI18nAttrs");function Xm(e){return e.nodes[0]}l(Xm,"icuFromI18nMessage");function Ku(e={},t){let n={};return e&&Object.keys(e).length&&Object.keys(e).forEach(r=>n[co(r,t)]=e[r]),n}l(Ku,"formatI18nPlaceholderNamesInMap");function co(e,t=!0){let n=Yu(e);if(!t)return n;let r=n.split("_");if(r.length===1)return e.toLowerCase();let s;/^\d+$/.test(r[r.length-1])&&(s=r.pop());let i=r.shift().toLowerCase();return r.length&&(i+=r.map(a=>a.charAt(0).toUpperCase()+a.slice(1).toLowerCase()).join("")),s?`${i}_${s}`:i}l(co,"formatI18nPlaceholderName");var Ym="_t",un="ctx",uo="rf";function Km(e,t){let n=null;return()=>(n||(e(new Ke(Ym,void 0,L)),n=B(t)),n)}l(Km,"temporaryAllocator");function bt(e){return Array.isArray(e)?K(e.map(bt)):g(e,Yr)}l(bt,"asLiteral");function su(e,t){let n=Object.getOwnPropertyNames(e);return n.length===0?null:je(n.map(r=>{let s=e[r],i,a,o,c;if(typeof s=="string")i=r,o=r,a=s,c=bt(a);else{o=r,i=s.classPropertyName,a=s.bindingPropertyName;let u=a!==i,p=s.transformFunction!==null,h=pi.None;if(s.isSignal&&(h|=pi.SignalBased),p&&(h|=pi.HasDecoratorInputTransform),t&&(u||p||h!==pi.None)){let f=[g(h),bt(a)];(u||p)&&(f.push(bt(i)),p&&f.push(s.transformFunction)),c=K(f)}else c=bt(a)}return{key:o,quoted:ji(o),value:c}}))}l(su,"conditionallyCreateDirectiveBindingLiteral");var Fe=class{static{l(this,"DefinitionMap")}values=[];set(e,t){if(t){let n=this.values.find(r=>r.key===e);n?n.value=t:this.values.push({key:e,value:t,quoted:!1})}}toLiteralMap(){return je(this.values)}};function Qu(e){let t=e instanceof de?e.name:"ng-template",n=RT(e),r=new Fi,s=ot(t)[1];return r.setElement(s),Object.getOwnPropertyNames(n).forEach(i=>{let a=ot(i)[1],o=n[i];r.addAttribute(a,o),i.toLowerCase()==="class"&&o.trim().split(/\s+/).forEach(u=>r.addClassName(u))}),r}l(Qu,"createCssSelectorFromNode");function RT(e){let t={};return e instanceof De&&e.tagName!=="ng-template"?e.templateAttrs.forEach(n=>t[n.name]=""):(e.attributes.forEach(n=>{Gm(n.name)||(t[n.name]=n.value)}),e.inputs.forEach(n=>{(n.type===$.Property||n.type===$.TwoWay)&&(t[n.name]="")}),e.outputs.forEach(n=>{t[n.name]=""})),t}l(RT,"getAttrsForDirectiveMatching");function iu(e,t){let n=null,r={name:e.name,type:e.type,typeArgumentCount:e.typeArgumentCount,deps:[],target:Sn.Injectable};if(e.useClass!==void 0){let o=e.useClass.expression.isEquivalent(e.type.value),c;e.deps!==void 0&&(c=e.deps),c!==void 0?n=Sr({...r,delegate:e.useClass.expression,delegateDeps:c,delegateType:Sl.Class}):o?n=Sr(r):n={statements:[],expression:Tl(e.type.value,e.useClass.expression,t)}}else e.useFactory!==void 0?e.deps!==void 0?n=Sr({...r,delegate:e.useFactory,delegateDeps:e.deps||[],delegateType:Sl.Function}):n={statements:[],expression:Se([],e.useFactory.callFn([]),L)}:e.useValue!==void 0?n=Sr({...r,expression:e.useValue.expression}):e.useExisting!==void 0?n=Sr({...r,expression:_(m.inject).callFn([e.useExisting.expression])}):n={statements:[],expression:Tl(e.type.value,e.type.value,t)};let s=e.type.value,i=new Fe;return i.set("token",s),i.set("factory",n.expression),e.providedIn.expression.value!==null&&i.set("providedIn",di(e.providedIn)),{expression:_(m.\u0275\u0275defineInjectable).callFn([i.toLiteralMap()],void 0,!0),type:po(),statements:n.statements}}l(iu,"compileInjectable");function po(e,t){return new zt(_(m.InjectableDeclaration,[L]))}l(po,"createInjectableType");function Tl(e,t,n){if(e.node===t.node)return t.prop("\u0275fac");if(!n)return xd(t);let r=_(m.resolveForwardRef).callFn([t]);return xd(r)}l(Tl,"delegateToFactory");function xd(e){let t=new Te("__ngFactoryType__",L);return Se([t],e.prop("\u0275fac").callFn([B(t.name)]),L)}l(xd,"createFactoryFunction");var Qm=!1,Ey='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})',eR=class extends Kw{static{l(this,"AbstractJsEmitterVisitor")}constructor(){super(!1,!1)}visitWrappedNodeExpr(e,t){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")}visitDeclareVarStmt(e,t){t.print(e,`var ${e.name}`),e.value&&(t.print(e," = "),e.value.visitExpression(this,t)),t.println(e,";")}visitTaggedTemplateLiteralExpr(e,t){let n=e.template.elements;e.tag.visitExpression(this,t),t.print(e,`(${Ey}(`),t.print(e,`[${n.map(r=>yr(r.text)).join(", ")}], `),t.print(e,`[${n.map(r=>yr(r.rawText)).join(", ")}])`),e.template.expressions.forEach(r=>{t.print(e,", "),r.visitExpression(this,t)}),t.print(e,")")}visitTemplateLiteralExpr(e,t){t.print(e,"`");for(let n=0;n<e.elements.length;n++){e.elements[n].visitExpression(this,t);let r=n<e.expressions.length?e.expressions[n]:null;r!==null&&(t.print(r,"${"),r.visitExpression(this,t),t.print(r,"}"))}t.print(e,"`")}visitTemplateLiteralElementExpr(e,t){t.print(e,e.rawText)}visitLocalizedString(e,t){t.print(e,`$localize(${Ey}(`);let n=[e.serializeI18nHead()];for(let r=1;r<e.messageParts.length;r++)n.push(e.serializeI18nTemplatePart(r));t.print(e,`[${n.map(r=>yr(r.cooked)).join(", ")}], `),t.print(e,`[${n.map(r=>yr(r.raw)).join(", ")}])`),e.expressions.forEach(r=>{t.print(e,", "),r.visitExpression(this,t)}),t.print(e,")")}},Sc;function BT(){if(Sc===void 0){let e=ol.trustedTypes;if(Sc=null,e)try{Sc=e.createPolicy("angular#unsafe-jit",{createScript:l(t=>t,"createScript")})}catch{}}return Sc}l(BT,"getPolicy");function MT(e){return BT()?.createScript(e)||e}l(MT,"trustedScriptFromString");function bd(...e){if(!ol.trustedTypes)return new Function(...e);let t=e.slice(0,-1).join(","),n=e[e.length-1],r=`(function anonymous(${t}
37
+ ) { ${n}
38
+ })`,s=ol.eval(MT(r));return s.bind===void 0?new Function(...e):(s.toString=()=>r,s.bind(ol))}l(bd,"newTrustedFunctionForJIT");var FT=class{static{l(this,"JitEvaluator")}evaluateStatements(e,t,n,r){let s=new tR(n),i=Xw.createRoot();return t.length>0&&!$T(t[0])&&(t=[g("use strict").toStmt(),...t]),s.visitAllStatements(t,i),s.createReturnStmt(i),this.evaluateCode(e,i,s.getArgs(),r)}evaluateCode(e,t,n,r){let s=`"use strict";${t.toSource()}
39
+ //# sourceURL=${e}`,i=[],a=[];for(let c in n)a.push(n[c]),i.push(c);if(r){let c=bd(...i.concat("return null;")).toString(),u=c.slice(0,c.indexOf("return null;")).split(`
40
+ `).length-1;s+=`
41
+ ${t.toSourceMapGenerator(e,u).toJsComment()}`}let o=bd(...i.concat(s));return this.executeFunction(o,a)}executeFunction(e,t){return e(...t)}},tR=class extends eR{static{l(this,"JitEmitterVisitor")}refResolver;_evalArgNames=[];_evalArgValues=[];_evalExportedVars=[];constructor(e){super(),this.refResolver=e}createReturnStmt(e){new Qe(new Cn(this._evalExportedVars.map(n=>new Jr(n,B(n),!1)))).visitStatement(this,e)}getArgs(){let 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(ke.Exported)&&this._evalExportedVars.push(e.name),super.visitDeclareVarStmt(e,t)}visitDeclareFunctionStmt(e,t){return e.hasModifier(ke.Exported)&&this._evalExportedVars.push(e.name),super.visitDeclareFunctionStmt(e,t)}_emitReferenceToExternal(e,t,n){let r=this._evalArgValues.indexOf(t);if(r===-1){r=this._evalArgValues.length,this._evalArgValues.push(t);let s=km({reference:t})||"val";this._evalArgNames.push(`jit_${s}_${r}`)}n.print(e,this._evalArgNames[r])}};function $T(e){return e.isEquivalent(g("use strict").toStmt())}l($T,"isUseStrictStatement");function au(e){let t=new Fe;e.providers!==null&&t.set("providers",e.providers),e.imports.length>0&&t.set("imports",K(e.imports));let n=_(m.defineInjector).callFn([t.toLiteralMap()],void 0,!0),r=Jm(e);return{expression:n,type:r,statements:[]}}l(au,"compileInjector");function Jm(e){return new zt(_(m.InjectorDeclaration,[new zt(e.type.type)]))}l(Jm,"createInjectorType");var nR=class{static{l(this,"R3JitReflector")}context;constructor(e){this.context=e}resolveExternalReference(e){if(e.moduleName!=="@angular/core")throw new Error(`Cannot resolve external reference to ${e.moduleName}, only references to @angular/core are supported.`);if(!Object.hasOwn(this.context,e.name))throw new Error(`No value provided for @angular/core symbol '${e.name}'.`);return this.context[e.name]}},qa;(function(e){e[e.Inline=0]="Inline",e[e.SideEffect=1]="SideEffect",e[e.Omit=2]="Omit"})(qa||(qa={}));var Tt;(function(e){e[e.Global=0]="Global",e[e.Local=1]="Local",e[e.Isolated=2]="Isolated"})(Tt||(Tt={}));function Zm(e){let t=[],n=new Fe;if(n.set("type",e.type.value),e.kind===Tt.Global&&e.bootstrap.length>0&&n.set("bootstrap",Tn(e.bootstrap,e.containsForwardDecls)),e.selectorScopeMode===qa.Inline)e.declarations.length>0&&n.set("declarations",Tn(e.declarations,e.containsForwardDecls)),e.imports.length>0&&n.set("imports",Tn(e.imports,e.containsForwardDecls)),e.exports.length>0&&n.set("exports",Tn(e.exports,e.containsForwardDecls));else if(e.selectorScopeMode===qa.SideEffect){let i=VT(e);i!==null&&t.push(i)}e.schemas!==null&&e.schemas.length>0&&n.set("schemas",K(e.schemas.map(i=>i.value))),e.id!==null&&(n.set("id",e.id),t.push(_(m.registerNgModuleType).callFn([e.type.value,e.id]).toStmt()));let r=_(m.defineNgModule).callFn([n.toLiteralMap()],void 0,!0),s=eg(e);return{expression:r,type:s,statements:t}}l(Zm,"compileNgModule");function UT(e){let t=new Fe;return t.set("type",new se(e.type)),e.bootstrap!==void 0&&t.set("bootstrap",new se(e.bootstrap)),e.declarations!==void 0&&t.set("declarations",new se(e.declarations)),e.imports!==void 0&&t.set("imports",new se(e.imports)),e.exports!==void 0&&t.set("exports",new se(e.exports)),e.schemas!==void 0&&t.set("schemas",new se(e.schemas)),e.id!==void 0&&t.set("id",new se(e.id)),_(m.defineNgModule).callFn([t.toLiteralMap()])}l(UT,"compileNgModuleDeclarationExpression");function eg(e){if(e.kind===Tt.Local)return new zt(e.type.value);if(e.kind===Tt.Isolated)return new zt(_(m.NgModuleDeclaration,[new zt(e.type.type),Mt,e.importsExpression?He(e.importsExpression):Mt,e.exportsExpression?He(e.exportsExpression):Mt]));let{type:t,declarations:n,exports:r,imports:s,includeImportTypes:i,publicDeclarationTypes:a}=e;return new zt(_(m.NgModuleDeclaration,[new zt(t.type),a===null?Ac(n):qT(a),i?Ac(s):Mt,Ac(r)]))}l(eg,"createNgModuleType");function VT(e){let t=new Fe;if(e.kind===Tt.Global?e.declarations.length>0&&t.set("declarations",Tn(e.declarations,e.containsForwardDecls)):e.kind===Tt.Local&&e.declarationsExpression&&t.set("declarations",e.declarationsExpression),e.kind===Tt.Global?e.imports.length>0&&t.set("imports",Tn(e.imports,e.containsForwardDecls)):e.kind===Tt.Local&&e.importsExpression&&t.set("imports",e.importsExpression),e.kind===Tt.Global?e.exports.length>0&&t.set("exports",Tn(e.exports,e.containsForwardDecls)):e.kind===Tt.Local&&e.exportsExpression&&t.set("exports",e.exportsExpression),e.kind===Tt.Local&&e.bootstrapExpression&&t.set("bootstrap",e.bootstrapExpression),Object.keys(t.values).length===0)return null;let n=new Ye(_(m.setNgModuleScope),[e.type.value,t.toLiteralMap()]),r=bT(n),s=new Fn([],[r.toStmt()],L);return new Ye(s,[]).toStmt()}l(VT,"generateSetNgModuleScopeCall");function Ac(e){let t=e.map(n=>qi(n.type));return e.length>0?He(K(t)):Mt}l(Ac,"tupleTypeOf");function qT(e){let t=e.map(n=>qi(n));return e.length>0?He(K(t)):Mt}l(qT,"tupleOfTypes");function ou(e){let t=[];t.push({key:"name",value:g(e.pipeName??e.name),quoted:!1}),t.push({key:"type",value:e.type.value,quoted:!1}),t.push({key:"pure",value:g(e.pure),quoted:!1}),e.isStandalone===!1&&t.push({key:"standalone",value:g(!1),quoted:!1});let n=_(m.definePipe).callFn([je(t)],void 0,!0),r=tg(e);return{expression:n,type:r,statements:[]}}l(ou,"compilePipeFromMetadata");function tg(e){return new zt(_(m.PipeDeclaration,[zu(e.type.type,e.typeArgumentCount),new zt(new ct(e.pipeName)),new zt(new ct(e.isStandalone))]))}l(tg,"createPipeType");var bn;(function(e){e[e.Directive=0]="Directive",e[e.Pipe=1]="Pipe",e[e.NgModule=2]="NgModule"})(bn||(bn={}));var rR=new Set(["inherit","initial","revert","unset","alternate","alternate-reverse","normal","reverse","backwards","both","forwards","none","paused","running","ease","ease-in","ease-in-out","ease-out","linear","step-start","step-end","end","jump-both","jump-end","jump-none","jump-start","start"]),sR=["@media","@supports","@document","@layer","@container","@scope","@starting-style"],HT=class{static{l(this,"ShadowCss")}shimCssText(e,t,n=""){let r=[];e=e.replace(ER,a=>{if(a.match(SR))r.push(a);else{let o=a.match(vR);r.push(o?.join("")??"")}return rg});let s=this._scopeCssText(e,t,n),i=0;return s.replace(yR,()=>r[i++])}_scopeKeyframesRelatedCss(e,t){let n=new Set,r=Xo(e,s=>this._scopeLocalKeyframeDeclarations(s,t,n));return Xo(r,s=>this._scopeAnimationRule(s,t,n))}_scopeLocalKeyframeDeclarations(e,t,n){return{...e,selector:e.selector.replace(/(^@(?:-webkit-)?keyframes(?:\s+))(['"]?)(.+)\2(\s*)$/,(r,s,i,a,o)=>(n.add(_d(a,i)),`${s}${i}${t}_${a}${i}${o}`))}}_scopeAnimationKeyframe(e,t,n){return e.replace(/^(\s*)(['"]?)(.+?)\2(\s*)$/,(r,s,i,a,o)=>(a=`${n.has(_d(a,i))?t+"_":""}${a}`,`${s}${i}${a}${i}${o}`))}_animationDeclarationKeyframesRe=/(^|\s+|,)(?:(?:(['"])((?:\\\\|\\\2|(?!\2).)+)\2)|(-?[A-Za-z][\w\-]*))(?=[,\s]|$)/g;_scopeAnimationRule(e,t,n){let r=e.content.replace(/((?:^|[\s;{])(?:-webkit-)?animation\s*:\s*)([^;}]+)/g,(s,i,a)=>i+a.replace(this._animationDeclarationKeyframesRe,(o,c,u="",p,h)=>p?`${c}${this._scopeAnimationKeyframe(`${u}${p}${u}`,t,n)}`:rR.has(h)?o:`${c}${this._scopeAnimationKeyframe(h,t,n)}`));return r=r.replace(/((?:^|[\s;{])(?:-webkit-)?animation-name(?:\s*):(?:\s*))([^;}]+)/g,(s,i,a)=>`${i}${a.split(",").map(o=>this._scopeAnimationKeyframe(o,t,n)).join(",")}`),{...e,content:r}}_scopeCssText(e,t,n){return e=this._insertPolyfillHostInCssText(e),e=this._convertColonHost(e),e=this._convertColonHostContext(e),t&&(e=this._scopeKeyframesRelatedCss(e,t),e=this._scopeSelectors(e,t,n)),e.trim()}_convertColonHost(e){return e.replace(uR,(t,n,r)=>{if(n){let s=[...this._splitOnTopLevelCommas(n,!0)];if(s.length>1)return":host("+n+")"+r;let i=s[0].trim();if(i)return zr+i.replace(lu,"")+r}return zr+r})}*_splitOnTopLevelCommas(e,t){let n=e.length,r=0,s=0;for(let i=0;i<n;i++){let a=e.charCodeAt(i);if(a===Rt)r++;else if(a===st){if(r--,r<0&&t){yield e.slice(s,i);return}}else a===xt&&r===0&&(yield e.slice(s,i),s=i+1)}yield e.slice(s)}_convertColonHostContext(e){let t=[];for(let n of this._splitOnTopLevelCommas(e,!1))t.push(this._convertColonHostContextInSelectorPart(n));return t.join(",")}_convertColonHostContextInSelectorPart(e){return e.replace(hR,(t,n)=>{let r=[[]],s=t.indexOf(da);for(;s!==-1;){let i=t.substring(s+da.length);if(!i||i[0]!=="("){t=i,s=t.indexOf(da);continue}let a=[],o=0;for(let u of this._splitOnTopLevelCommas(i.substring(1),!0)){o=o+u.length+1;let p=u.trim();p&&a.push(p)}let c=r.length;ex(r,a.length);for(let u=0;u<a.length;u++)for(let p=0;p<c;p++)r[p+u*c].push(a[u]);t=i.substring(o+1),s=t.indexOf(da)}return r.map(i=>ZT(i,t,n)).join(", ")})}_scopeSelectors(e,t,n){return Xo(e,r=>{let s=r.selector,i=r.content;if(r.selector[0]!=="@"){if(r.isBlock){let o=s.split(Sy).some(c=>Eh.test(c));s=this._scopeSelector({selector:s,scopeSelector:t,hostSelector:n,isParentSelector:!0}),i=!o&&r.content.includes("{")?this._scopeSelectors(r.content,t,n):this._stripScopingSelectors(r.content)}}else sR.some(a=>r.selector.startsWith(a))?i=this._scopeSelectors(r.content,t,n):(r.selector.startsWith("@font-face")||r.selector.startsWith("@page"))&&(i=this._stripScopingSelectors(r.content));return new Cd(s,i,r.isBlock)})}_stripScopingSelectors(e){return Xo(e,t=>{let n=t.selector.replace(Eh," ").replace(vh," ");return new Cd(n,t.content,t.isBlock)})}_safeSelector;_shouldScopeIndicator;_scopeSelector({selector:e,scopeSelector:t,hostSelector:n,isParentSelector:r=!1}){return e.split(Sy).map(s=>s.split(Eh)).map(s=>{let[i,...a]=s;return[l(c=>this._selectorNeedsScoping(c,t)?this._applySelectorScope({selector:c,scopeSelector:t,hostSelector:n,isParentSelector:r}):c,"applyScope")(i),...a].join(" ")}).join(", ")}_selectorNeedsScoping(e,t){return!this._makeScopeMatcher(t).test(e)}_makeScopeMatcher(e){let t=/\[/g,n=/\]/g;return e=e.replace(t,"\\[").replace(n,"\\]"),new RegExp("^("+e+")"+fR,"m")}_applySimpleSelectorScope(e,t,n){if(ya.lastIndex=0,ya.test(e)){let r=`[${n}]`,s=e;for(;s.match(vh);)s=s.replace(vh,(i,a)=>a.replace(/([^:\)]*)(:*)(.*)/,(o,c,u,p)=>c+r+u+p));return s.replace(ya,r)}return t+" "+e}_applySelectorScope({selector:e,scopeSelector:t,hostSelector:n,isParentSelector:r}){let s=/\[is=([^\]]*)\]/g;t=t.replace(s,(E,...T)=>T[0]);let i=`[${t}]`,a=l(E=>{let T=E.trim();if(!T||T==="&")return E;if(E.includes(zr)){if(T=this._applySimpleSelectorScope(E,t,n),!E.match(dR)){let[y,N,V,q]=T.match(/([^:]*)(:*)([\s\S]*)/);T=N+i+V+q}}else{let y=E.replace(ya,"");if(y.length>0){let N=y.match(/([^:]*)(:*)([\s\S]*)/);N&&(T=N[1]+i+N[2]+N[3])}}return T},"_scopeSelectorPart"),o=l(E=>{let T="",y=[],N;for(;(N=Fo.exec(E))!==null;){let V=1,q=Fo.lastIndex;for(;q<E.length;){let le=E[q];if(q++,le==="("){V++;continue}if(le===")"){if(V--,V===0)break;continue}}y.push(`${N[0]}${E.slice(Fo.lastIndex,q)}`),Fo.lastIndex=q}return y.join("")===E?T=y.map(V=>{let[q]=V.match(Fo)??[],le=V.slice(q?.length,-1);le.includes(zr)&&(this._shouldScopeIndicator=!0);let Ht=this._scopeSelector({selector:le,scopeSelector:t,hostSelector:n});return`${q}${Ht})`}).join(""):(this._shouldScopeIndicator=this._shouldScopeIndicator||E.includes(zr),T=this._shouldScopeIndicator?a(E):E),T},"_pseudoFunctionAwareScopeSelectorPart");r&&(this._safeSelector=new iR(e),e=this._safeSelector.content());let c="",u=0,p,h=/( |>|\+|~(?!=))(?!([^)(]*(?:\([^)(]*(?:\([^)(]*(?:\([^)(]*\)[^)(]*)*\)[^)(]*)*\)[^)(]*)*\)))\s*/g,f=e.includes(zr);for((r||this._shouldScopeIndicator)&&(this._shouldScopeIndicator=!f);(p=h.exec(e))!==null;){let E=p[1],T=e.slice(u,p.index);if(T.match(/__esc-ph-(\d+)__/)&&e[p.index+1]?.match(/[a-fA-F\d]/))continue;let y=o(T);c+=`${y} ${E} `,u=h.lastIndex}let v=e.substring(u);return c+=o(v),this._safeSelector.restore(c)}_insertPolyfillHostInCssText(e){return e.replace(gR,da).replace(mR,lu)}},iR=class{static{l(this,"SafeSelector")}placeholders=[];index=0;_content;constructor(e){e=this._escapeRegexMatches(e,/(\[[^\]]*\])/g),e=e.replace(/(\\.)/g,(t,n)=>{let r=`__esc-ph-${this.index}__`;return this.placeholders.push(n),this.index++,r}),this._content=e.replace(cR,(t,n,r)=>{let s=`__ph-${this.index}__`;return this.placeholders.push(`(${r})`),this.index++,n+s})}restore(e){return e.replace(/__(?:ph|esc-ph)-(\d+)__/g,(t,n)=>this.placeholders[+n])}content(){return this._content}_escapeRegexMatches(e,t){return e.replace(t,(n,r)=>{let s=`__ph-${this.index}__`;return this.placeholders.push(r),this.index++,s})}},aR="(:(where|is)\\()?",Fo=/:(where|is)\(/gi,lu="-shadowcsshost",da="-shadowcsscontext",Ad="[^)(]*",oR=String.raw`(?:\(${Ad}\)|${Ad})+?`,lR=String.raw`(?:\(${oR}\)|${Ad})+?`,ng=String.raw`(?:\((${lR})\))`,cR=new RegExp(String.raw`(:nth-[-\w]+)`+ng,"g"),uR=new RegExp(lu+ng+"?([^,{]*)","gim"),pR=da+ng+"([^{]*)",hR=new RegExp(`${aR}(${pR})`,"gim"),zr=lu+"-no-combinator",dR=new RegExp(`${zr}(?![^(]*\\))`,"g"),vh=/-shadowcsshost-no-combinator([^\s,]*)/,Eh=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,Sy=/ ?,(?!(?:[^)(]*(?:\([^)(]*(?:\([^)(]*(?:\([^)(]*\)[^)(]*)*\)[^)(]*)*\)[^)(]*)*\))) ?/,fR="([>\\s~+[.,{:][\\s\\S]*)?$",ya=/-shadowcsshost/gim,mR=/:host(?!\-context)/gim,gR=/:host-context(?=\(\s*[^)\s])/gim,vR=/\r?\n/g,ER=/\/\*[\s\S]*?\*\//g,SR=/\/\*\s*#\s*source(Mapping)?URL=/g,rg="%COMMENT%",yR=new RegExp(rg,"g"),Sh="%BLOCK%",wR=new RegExp(`(\\s*(?:${rg}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;)|$)`,"g"),TR=new Map([["{","}"]]),jT="%COMMA_IN_PLACEHOLDER%",WT="%SEMI_IN_PLACEHOLDER%",zT="%COLON_IN_PLACEHOLDER%",GT="%LBRACE_IN_PLACEHOLDER%",XT="%RBRACE_IN_PLACEHOLDER%",xR=new RegExp(jT,"g"),bR=new RegExp(WT,"g"),AR=new RegExp(zT,"g"),CR=new RegExp(GT,"g"),_R=new RegExp(XT,"g"),NR=/(var\(\s*|@property\s+)?(--(?:[a-zA-Z0-9_-]|[^\x00-\x7F])+)(\s*:)?/g;function YT(e){return e.replace(NR,(t,n,r,s)=>!n&&!s?t:(n??"")+Lu(r)+(s??""))}l(YT,"namespaceCssVariables");var Cd=class{static{l(this,"CssRule")}selector;content;isBlock;constructor(e,t,n){this.selector=e,this.content=t,this.isBlock=n}};function Xo(e,t){let n=QT(e),r=KT(n,TR,Sh),s=0,i=r.escapedString.replace(wR,(...a)=>{let o=a[2],c="",u=a[4],p="",h=!1;u&&u.startsWith("{"+Sh)&&(c=r.blocks[s++],u=u.substring(Sh.length+1),p="{",h=!0);let f=t(new Cd(o,c,h));return`${a[1]}${f.selector}${a[3]}${p}${f.content}${u}`});return JT(i)}l(Xo,"processRules");var IR=class{static{l(this,"StringWithEscapedBlocks")}escapedString;blocks;constructor(e,t){this.escapedString=e,this.blocks=t}};function KT(e,t,n){let r=[],s=[],i=0,a=0,o=-1,c,u;for(let p=0;p<e.length;p++){let h=e[p];h==="\\"?p++:h===u?(i--,i===0&&(s.push(e.substring(o,p)),r.push(n),a=p,o=-1,c=u=void 0)):h===c?i++:i===0&&t.has(h)&&(c=h,u=t.get(h),i=1,o=p+1,r.push(e.substring(a,o)))}return o!==-1?(s.push(e.substring(o)),r.push(n)):r.push(e.substring(a)),new IR(r.join(""),s)}l(KT,"escapeBlocks");var kR={";":WT,",":jT,":":zT,"{":GT,"}":XT};function QT(e){let t=e,n=null;for(let r=0;r<t.length;r++){let s=t[r];if(s==="\\")r++;else if(n!==null)if(s===n)n=null;else{let i=kR[s];i&&(t=`${t.substr(0,r)}${i}${t.substr(r+1)}`,r+=i.length-1)}else(s==="'"||s==='"')&&(n=s)}return t}l(QT,"escapeInStrings");function JT(e){let t=e.replace(xR,",");return t=t.replace(bR,";"),t=t.replace(AR,":"),t=t.replace(CR,"{"),t=t.replace(_R,"}"),t}l(JT,"unescapeInStrings");function _d(e,t){return t?e.replace(/((?:^|[^\\])(?:\\\\)*)\\(?=['"])/g,"$1"):e}l(_d,"unescapeQuotes");function ZT(e,t,n=""){let r=zr;ya.lastIndex=0;let s=ya.test(t);if(e.length===0)return r+t;let i=[e.pop()||""];for(;e.length>0;){let a=i.length,o=e.pop();for(let c=0;c<a;c++){let u=i[c];i[a*2+c]=u+" "+o,i[a+c]=o+" "+u,i[c]=o+u}}return i.map(a=>s?`${n}${a}${t}`:`${n}${a}${r}${t}, ${n}${a} ${r}${t}`).join(",")}l(ZT,"_combineHostContextSelectors");function ex(e,t){let n=e.length;for(let r=1;r<t;r++)for(let s=0;s<n;s++)e[s+r*n]=e[s].slice(0)}l(ex,"repeatGroups");var d;(function(e){e[e.ListEnd=0]="ListEnd",e[e.Statement=1]="Statement",e[e.Variable=2]="Variable",e[e.ElementStart=3]="ElementStart",e[e.Element=4]="Element",e[e.ForeignComponent=5]="ForeignComponent",e[e.Template=6]="Template",e[e.ElementEnd=7]="ElementEnd",e[e.ContainerStart=8]="ContainerStart",e[e.Container=9]="Container",e[e.ContainerEnd=10]="ContainerEnd",e[e.DisableBindings=11]="DisableBindings",e[e.ConditionalCreate=12]="ConditionalCreate",e[e.ConditionalBranchCreate=13]="ConditionalBranchCreate",e[e.Conditional=14]="Conditional",e[e.BoundaryCreate=15]="BoundaryCreate",e[e.BoundaryErrorCreate=16]="BoundaryErrorCreate",e[e.Boundary=17]="Boundary",e[e.EnableBindings=18]="EnableBindings",e[e.Text=19]="Text",e[e.Listener=20]="Listener",e[e.InterpolateText=21]="InterpolateText",e[e.Binding=22]="Binding",e[e.Property=23]="Property",e[e.StyleProp=24]="StyleProp",e[e.ClassProp=25]="ClassProp",e[e.StyleMap=26]="StyleMap",e[e.ClassMap=27]="ClassMap",e[e.Advance=28]="Advance",e[e.Pipe=29]="Pipe",e[e.Attribute=30]="Attribute",e[e.ExtractedAttribute=31]="ExtractedAttribute",e[e.Defer=32]="Defer",e[e.DeferOn=33]="DeferOn",e[e.DeferWhen=34]="DeferWhen",e[e.I18nMessage=35]="I18nMessage",e[e.DomProperty=36]="DomProperty",e[e.Namespace=37]="Namespace",e[e.ProjectionDef=38]="ProjectionDef",e[e.EnableIncrementalHydrationRuntime=39]="EnableIncrementalHydrationRuntime",e[e.Projection=40]="Projection",e[e.Content=41]="Content",e[e.RepeaterCreate=42]="RepeaterCreate",e[e.Repeater=43]="Repeater",e[e.TwoWayProperty=44]="TwoWayProperty",e[e.TwoWayListener=45]="TwoWayListener",e[e.DeclareLet=46]="DeclareLet",e[e.StoreLet=47]="StoreLet",e[e.I18nStart=48]="I18nStart",e[e.I18n=49]="I18n",e[e.I18nEnd=50]="I18nEnd",e[e.I18nExpression=51]="I18nExpression",e[e.I18nApply=52]="I18nApply",e[e.IcuStart=53]="IcuStart",e[e.IcuEnd=54]="IcuEnd",e[e.IcuPlaceholder=55]="IcuPlaceholder",e[e.I18nContext=56]="I18nContext",e[e.I18nAttributes=57]="I18nAttributes",e[e.SourceLocation=58]="SourceLocation",e[e.Animation=59]="Animation",e[e.AnimationString=60]="AnimationString",e[e.AnimationBinding=61]="AnimationBinding",e[e.AnimationListener=62]="AnimationListener",e[e.Control=63]="Control",e[e.ControlCreate=64]="ControlCreate"})(d||(d={}));var R;(function(e){e[e.LexicalRead=0]="LexicalRead",e[e.Context=1]="Context",e[e.TrackContext=2]="TrackContext",e[e.ReadVariable=3]="ReadVariable",e[e.NextContext=4]="NextContext",e[e.Reference=5]="Reference",e[e.StoreLet=6]="StoreLet",e[e.ContextLetReference=7]="ContextLetReference",e[e.BoundaryState=8]="BoundaryState",e[e.GetCurrentView=9]="GetCurrentView",e[e.RestoreView=10]="RestoreView",e[e.ResetView=11]="ResetView",e[e.PureFunctionExpr=12]="PureFunctionExpr",e[e.PureFunctionParameterExpr=13]="PureFunctionParameterExpr",e[e.PipeBinding=14]="PipeBinding",e[e.PipeBindingVariadic=15]="PipeBindingVariadic",e[e.SafePropertyRead=16]="SafePropertyRead",e[e.SafeKeyedRead=17]="SafeKeyedRead",e[e.SafeNavigationMigration=18]="SafeNavigationMigration",e[e.SafeTernaryExpr=19]="SafeTernaryExpr",e[e.EmptyExpr=20]="EmptyExpr",e[e.AssignTemporaryExpr=21]="AssignTemporaryExpr",e[e.ReadTemporaryExpr=22]="ReadTemporaryExpr",e[e.SlotLiteralExpr=23]="SlotLiteralExpr",e[e.ConditionalCase=24]="ConditionalCase",e[e.ConstCollected=25]="ConstCollected",e[e.TwoWayBindingSet=26]="TwoWayBindingSet",e[e.ForeignContent=27]="ForeignContent",e[e.ArrowFunction=28]="ArrowFunction"})(R||(R={}));var Ot;(function(e){e[e.None=0]="None",e[e.AlwaysInline=1]="AlwaysInline"})(Ot||(Ot={}));var Oe;(function(e){e[e.Context=0]="Context",e[e.Identifier=1]="Identifier",e[e.SavedView=2]="SavedView",e[e.Alias=3]="Alias",e[e.BoundaryState=4]="BoundaryState"})(Oe||(Oe={}));var D;(function(e){e[e.Attribute=0]="Attribute",e[e.ClassName=1]="ClassName",e[e.StyleProperty=2]="StyleProperty",e[e.Property=3]="Property",e[e.Template=4]="Template",e[e.I18n=5]="I18n",e[e.LegacyAnimation=6]="LegacyAnimation",e[e.TwoWayProperty=7]="TwoWayProperty",e[e.Animation=8]="Animation"})(D||(D={}));var Ha;(function(e){e[e.Creation=0]="Creation",e[e.Postproccessing=1]="Postproccessing"})(Ha||(Ha={}));var Ri;(function(e){e[e.I18nText=0]="I18nText",e[e.I18nAttribute=1]="I18nAttribute"})(Ri||(Ri={}));var we;(function(e){e[e.None=0]="None",e[e.ElementTag=1]="ElementTag",e[e.TemplateTag=2]="TemplateTag",e[e.OpenTag=4]="OpenTag",e[e.CloseTag=8]="CloseTag",e[e.ExpressionIndex=16]="ExpressionIndex"})(we||(we={}));var Be;(function(e){e[e.HTML=0]="HTML",e[e.SVG=1]="SVG",e[e.Math=2]="Math"})(Be||(Be={}));var Ee;(function(e){e[e.Idle=0]="Idle",e[e.Immediate=1]="Immediate",e[e.Timer=2]="Timer",e[e.Hover=3]="Hover",e[e.Interaction=4]="Interaction",e[e.Viewport=5]="Viewport",e[e.Never=6]="Never"})(Ee||(Ee={}));var Gr;(function(e){e[e.RootI18n=0]="RootI18n",e[e.Icu=1]="Icu",e[e.Attr=2]="Attr"})(Gr||(Gr={}));var lt;(function(e){e[e.NgTemplate=0]="NgTemplate",e[e.Structural=1]="Structural",e[e.Block=2]="Block"})(lt||(lt={}));var b=class Ne{static{l(this,"OpList")}static nextListId=0;debugListId=Ne.nextListId++;head={kind:d.ListEnd,next:null,prev:null,debugListId:this.debugListId};tail={kind:d.ListEnd,next:null,prev:null,debugListId:this.debugListId};constructor(){this.head.next=this.tail,this.tail.prev=this.head}push(t){if(Array.isArray(t)){for(let r of t)this.push(r);return}Ne.assertIsNotEnd(t),Ne.assertIsUnowned(t),t.debugListId=this.debugListId;let n=this.tail.prev;t.prev=n,n.next=t,t.next=this.tail,this.tail.prev=t}prepend(t){if(t.length===0)return;for(let s of t)Ne.assertIsNotEnd(s),Ne.assertIsUnowned(s),s.debugListId=this.debugListId;let n=this.head.next,r=this.head;for(let s of t)r.next=s,s.prev=r,r=s;r.next=n,n.prev=r}*[Symbol.iterator](){let t=this.head.next;for(;t!==this.tail;){Ne.assertIsOwned(t,this.debugListId);let n=t.next;yield t,t=n}}*reversed(){let t=this.tail.prev;for(;t!==this.head;){Ne.assertIsOwned(t,this.debugListId);let n=t.prev;yield t,t=n}}static replace(t,n){Ne.assertIsNotEnd(t),Ne.assertIsNotEnd(n),Ne.assertIsOwned(t),Ne.assertIsUnowned(n),n.debugListId=t.debugListId,t.prev!==null&&(t.prev.next=n,n.prev=t.prev),t.next!==null&&(t.next.prev=n,n.next=t.next),t.debugListId=null,t.prev=null,t.next=null}static replaceWithMany(t,n){if(n.length===0){Ne.remove(t);return}Ne.assertIsNotEnd(t),Ne.assertIsOwned(t);let r=t.debugListId;t.debugListId=null;for(let u of n)Ne.assertIsNotEnd(u),Ne.assertIsUnowned(u);let{prev:s,next:i}=t;t.prev=null,t.next=null;let a=s;for(let u of n)Ne.assertIsUnowned(u),u.debugListId=r,a.next=u,u.prev=a,u.next=null,a=u;let o=n[0],c=a;s!==null&&(s.next=o,o.prev=s),i!==null&&(i.prev=c,c.next=i)}static remove(t){Ne.assertIsNotEnd(t),Ne.assertIsOwned(t),t.prev.next=t.next,t.next.prev=t.prev,t.debugListId=null,t.prev=null,t.next=null}static insertBefore(t,n){if(Array.isArray(t)){for(let r of t)Ne.insertBefore(r,n);return}if(Ne.assertIsOwned(n),n.prev===null)throw new Error("AssertionError: illegal operation on list start");Ne.assertIsNotEnd(t),Ne.assertIsUnowned(t),t.debugListId=n.debugListId,t.prev=null,n.prev.next=t,t.prev=n.prev,t.next=n,n.prev=t}static insertAfter(t,n){if(Ne.assertIsOwned(n),n.next===null)throw new Error("AssertionError: illegal operation on list end");Ne.assertIsNotEnd(t),Ne.assertIsUnowned(t),t.debugListId=n.debugListId,n.next.prev=t,t.next=n.next,t.prev=n,n.next=t}static assertIsUnowned(t){if(t.debugListId!==null)throw new Error(`AssertionError: illegal operation on owned node: ${d[t.kind]}`)}static assertIsOwned(t,n){if(t.debugListId===null)throw new Error(`AssertionError: illegal operation on unowned node: ${d[t.kind]}`);if(n!==void 0&&t.debugListId!==n)throw new Error(`AssertionError: node belongs to the wrong list (expected ${n}, actual ${t.debugListId})`)}static assertIsNotEnd(t){if(t.kind===d.ListEnd)throw new Error("AssertionError: illegal operation on list head or tail")}};function Kt(e){return{kind:d.Statement,statement:e,...U}}l(Kt,"createStatementOp");function Rn(e,t,n,r){return{kind:d.Variable,xref:e,variable:t,initializer:n,flags:r,...U}}l(Rn,"createVariableOp");var U={debugListId:null,prev:null,next:null},tx=Symbol("ConsumesSlot"),sg=Symbol("DependsOnSlotContext"),Wi=Symbol("ConsumesVars"),Kl=Symbol("UsesVarOffset"),$t={[tx]:!0,numSlotsUsed:1},Ut={[sg]:!0},Vt={[Wi]:!0};function zi(e){return e[tx]===!0}l(zi,"hasConsumesSlotTrait");function ja(e){return e[sg]===!0}l(ja,"hasDependsOnSlotContextTrait");function Cc(e){return e[Wi]===!0}l(Cc,"hasConsumesVarsTrait");function Nd(e){return e[Kl]===!0}l(Nd,"hasUsesVarOffsetTrait");function nx(e,t,n){return{kind:d.InterpolateText,target:e,interpolation:t,sourceSpan:n,...Ut,...Vt,...U}}l(nx,"createInterpolateTextOp");var Ze=class{static{l(this,"Interpolation")}strings;expressions;i18nPlaceholders;constructor(e,t,n){if(this.strings=e,this.expressions=t,this.i18nPlaceholders=n,n.length!==0&&n.length!==t.length)throw new Error(`Expected ${t.length} placeholders to match interpolation expression count, but got ${n.length}`)}};function ns(e,t,n,r,s,i,a,o,c,u,p){return{kind:d.Binding,bindingKind:t,target:e,name:n,expression:r,unit:s,securityContext:i,isTextAttribute:a,isStructuralTemplateAttribute:o,templateKind:c,i18nContext:null,i18nMessage:u,sourceSpan:p,...U}}l(ns,"createBindingOp");function rx(e,t,n,r,s,i,a,o,c,u){return{kind:d.Property,target:e,name:t,expression:n,bindingKind:r,securityContext:s,sanitizer:null,isStructuralTemplateAttribute:i,templateKind:a,i18nContext:o,i18nMessage:c,sourceSpan:u,...Ut,...Vt,...U}}l(rx,"createPropertyOp");function sx(e,t,n,r,s,i,a,o,c){return{kind:d.TwoWayProperty,target:e,name:t,expression:n,securityContext:r,sanitizer:null,isStructuralTemplateAttribute:s,templateKind:i,i18nContext:a,i18nMessage:o,sourceSpan:c,...Ut,...Vt,...U}}l(sx,"createTwoWayPropertyOp");function ix(e,t,n,r,s){return{kind:d.StyleProp,target:e,name:t,expression:n,unit:r,sourceSpan:s,...Ut,...Vt,...U}}l(ix,"createStylePropOp");function ax(e,t,n,r){return{kind:d.ClassProp,target:e,name:t,expression:n,sourceSpan:r,...Ut,...Vt,...U}}l(ax,"createClassPropOp");function ox(e,t,n){return{kind:d.StyleMap,target:e,expression:t,sourceSpan:n,...Ut,...Vt,...U}}l(ox,"createStyleMapOp");function lx(e,t,n){return{kind:d.ClassMap,target:e,expression:t,sourceSpan:n,...Ut,...Vt,...U}}l(lx,"createClassMapOp");function Id(e,t,n,r,s,i,a,o,c,u){return{kind:d.Attribute,target:e,namespace:t,name:n,expression:r,securityContext:s,sanitizer:null,isTextAttribute:i,isStructuralTemplateAttribute:a,templateKind:o,i18nContext:null,i18nMessage:c,sourceSpan:u,...Ut,...Vt,...U}}l(Id,"createAttributeOp");function cx(e,t){return{kind:d.Advance,delta:e,sourceSpan:t,...U}}l(cx,"createAdvanceOp");function ig(e,t,n,r){return{kind:d.Conditional,target:e,test:t,conditions:n,processed:null,sourceSpan:r,contextValue:null,...U,...Ut,...Vt}}l(ig,"createConditionalOp");function ux(e,t,n,r,s,i){return{kind:d.Boundary,target:e,targetSlot:t,primaryTarget:n,guarded:r,conditions:s,processed:null,sourceSpan:i,...U,...Ut,...Vt}}l(ux,"createBoundaryOp");function px(e,t,n,r){return{kind:d.Repeater,target:e,targetSlot:t,collection:n,sourceSpan:r,...U,...Ut}}l(px,"createRepeaterOp");function kd(e,t,n,r,s,i,a){return{kind:d.AnimationBinding,name:e,target:t,animationKind:n,expression:r,i18nMessage:null,securityContext:s,sanitizer:null,sourceSpan:i,animationBindingKind:a,...U}}l(kd,"createAnimationBindingOp");function hx(e,t,n,r){return{kind:d.DeferWhen,target:e,expr:t,modifier:n,sourceSpan:r,...U,...Ut,...Vt}}l(hx,"createDeferWhenOp");function ag(e,t,n,r,s,i,a,o,c,u,p){return{kind:d.I18nExpression,context:e,target:t,i18nOwner:n,handle:r,expression:s,icuPlaceholder:i,i18nPlaceholder:a,resolutionTime:o,usage:c,name:u,sourceSpan:p,...U,...Vt,...Ut}}l(ag,"createI18nExpressionOp");function dx(e,t,n){return{kind:d.I18nApply,owner:e,handle:t,sourceSpan:n,...U}}l(dx,"createI18nApplyOp");function fx(e,t,n,r){return{kind:d.StoreLet,target:e,declaredName:t,value:n,sourceSpan:r,...Ut,...Vt,...U}}l(fx,"createStoreLetOp");function mx(e,t){return{kind:d.Control,sourceSpan:t,target:e,...Ut,...U}}l(mx,"createControlOp");function Vn(e){return e instanceof ye}l(Vn,"isIrExpression");var ye=class extends he{static{l(this,"ExpressionBase")}constructor(e=null){super(null,e)}},ht=class gx extends ye{static{l(this,"LexicalReadExpr")}name;kind=R.LexicalRead;constructor(t){super(),this.name=t}visitExpression(t,n){}isEquivalent(t){return this.name===t.name}isConstant(){return!1}transformInternalExpressions(){}clone(){return new gx(this.name)}},vx=class Pd extends ye{static{l(this,"ReferenceExpr")}target;targetSlot;offset;kind=R.Reference;constructor(t,n,r){super(),this.target=t,this.targetSlot=n,this.offset=r}visitExpression(){}isEquivalent(t){return t instanceof Pd&&t.target===this.target}isConstant(){return!1}transformInternalExpressions(){}clone(){return new Pd(this.target,this.targetSlot,this.offset)}},PR=class Ld extends ye{static{l(this,"ForeignContentExpr")}childrenViewXref;childrenViewHandle;foreignComponentConstIndex;kind=R.ForeignContent;constructor(t,n,r){super(),this.childrenViewXref=t,this.childrenViewHandle=n,this.foreignComponentConstIndex=r}visitExpression(){}isEquivalent(t){return t instanceof Ld&&t.childrenViewXref===this.childrenViewXref&&t.foreignComponentConstIndex===this.foreignComponentConstIndex}isConstant(){return!1}transformInternalExpressions(){}clone(){return new Ld(this.childrenViewXref,this.childrenViewHandle,this.foreignComponentConstIndex)}},og=class Dd extends ye{static{l(this,"BoundaryStateExpr")}xref;kind=R.BoundaryState;name=null;constructor(t){super(),this.xref=t}visitExpression(){}isEquivalent(t){return t instanceof Dd&&t.xref===this.xref}isConstant(){return!1}transformInternalExpressions(){}clone(){let t=new Dd(this.xref);return t.name=this.name,t}},lg=class Od extends ye{static{l(this,"StoreLetExpr")}target;value;sourceSpan;kind=R.StoreLet;[Wi]=!0;[sg]=!0;constructor(t,n,r){super(),this.target=t,this.value=n,this.sourceSpan=r}visitExpression(){}isEquivalent(t){return t instanceof Od&&t.target===this.target&&t.value.isEquivalent(this.value)}isConstant(){return!1}transformInternalExpressions(t,n){this.value=P(this.value,t,n)}clone(){return new Od(this.target,this.value,this.sourceSpan)}},cg=class Rd extends ye{static{l(this,"ContextLetReferenceExpr")}target;targetSlot;kind=R.ContextLetReference;constructor(t,n){super(),this.target=t,this.targetSlot=n}visitExpression(){}isEquivalent(t){return t instanceof Rd&&t.target===this.target}isConstant(){return!1}transformInternalExpressions(){}clone(){return new Rd(this.target,this.targetSlot)}},Gi=class Bd extends ye{static{l(this,"ContextExpr")}view;kind=R.Context;constructor(t){super(),this.view=t}visitExpression(){}isEquivalent(t){return t instanceof Bd&&t.view===this.view}isConstant(){return!1}transformInternalExpressions(){}clone(){return new Bd(this.view)}},LR=class Md extends ye{static{l(this,"TrackContextExpr")}view;kind=R.TrackContext;constructor(t){super(),this.view=t}visitExpression(){}isEquivalent(t){return t instanceof Md&&t.view===this.view}isConstant(){return!1}transformInternalExpressions(){}clone(){return new Md(this.view)}},Ex=class Fd extends ye{static{l(this,"NextContextExpr")}kind=R.NextContext;steps=1;visitExpression(){}isEquivalent(t){return t instanceof Fd&&t.steps===this.steps}isConstant(){return!1}transformInternalExpressions(){}clone(){let t=new Fd;return t.steps=this.steps,t}},DR=class $d extends ye{static{l(this,"GetCurrentViewExpr")}kind=R.GetCurrentView;constructor(){super()}visitExpression(){}isEquivalent(t){return t instanceof $d}isConstant(){return!1}transformInternalExpressions(){}clone(){return new $d}},ug=class Ud extends ye{static{l(this,"RestoreViewExpr")}view;kind=R.RestoreView;constructor(t){super(),this.view=t}visitExpression(t,n){typeof this.view!="number"&&this.view.visitExpression(t,n)}isEquivalent(t){return!(t instanceof Ud)||typeof t.view!=typeof this.view?!1:typeof this.view=="number"?this.view===t.view:this.view.isEquivalent(t.view)}isConstant(){return!1}transformInternalExpressions(t,n){typeof this.view!="number"&&(this.view=P(this.view,t,n))}clone(){return new Ud(this.view instanceof he?this.view.clone():this.view)}},Sx=class Vd extends ye{static{l(this,"ResetViewExpr")}expr;kind=R.ResetView;constructor(t){super(),this.expr=t}visitExpression(t,n){this.expr.visitExpression(t,n)}isEquivalent(t){return t instanceof Vd&&this.expr.isEquivalent(t.expr)}isConstant(){return!1}transformInternalExpressions(t,n){this.expr=P(this.expr,t,n)}clone(){return new Vd(this.expr.clone())}},yx=class wx extends ye{static{l(this,"TwoWayBindingSetExpr")}target;value;kind=R.TwoWayBindingSet;constructor(t,n){super(),this.target=t,this.value=n}visitExpression(t,n){this.target.visitExpression(t,n),this.value.visitExpression(t,n)}isEquivalent(t){return this.target.isEquivalent(t.target)&&this.value.isEquivalent(t.value)}isConstant(){return!1}transformInternalExpressions(t,n){this.target=P(this.target,t,n),this.value=P(this.value,t,n)}clone(){return new wx(this.target,this.value)}},xr=class qd extends ye{static{l(this,"ReadVariableExpr")}xref;kind=R.ReadVariable;name=null;constructor(t){super(),this.xref=t}visitExpression(){}isEquivalent(t){return t instanceof qd&&t.xref===this.xref}isConstant(){return!1}transformInternalExpressions(){}clone(){let t=new qd(this.xref);return t.name=this.name,t}},xl=class Hd extends ye{static{l(this,"PureFunctionExpr")}kind=R.PureFunctionExpr;[Wi]=!0;[Kl]=!0;varOffset=null;body;args;fn=null;constructor(t,n){super(),this.body=t,this.args=n}visitExpression(t,n){this.body?.visitExpression(t,n);for(let r of this.args)r.visitExpression(t,n)}isEquivalent(t){return!(t instanceof Hd)||t.args.length!==this.args.length?!1:t.body!==null&&this.body!==null&&t.body.isEquivalent(this.body)&&t.args.every((n,r)=>n.isEquivalent(this.args[r]))}isConstant(){return!1}transformInternalExpressions(t,n){this.body!==null?this.body=P(this.body,t,n|G.InChildOperation):this.fn!==null&&(this.fn=P(this.fn,t,n));for(let r=0;r<this.args.length;r++)this.args[r]=P(this.args[r],t,n)}clone(){let t=new Hd(this.body?.clone()??null,this.args.map(n=>n.clone()));return t.fn=this.fn?.clone()??null,t.varOffset=this.varOffset,t}},Wa=class jd extends ye{static{l(this,"PureFunctionParameterExpr")}index;kind=R.PureFunctionParameterExpr;constructor(t){super(),this.index=t}visitExpression(){}isEquivalent(t){return t instanceof jd&&t.index===this.index}isConstant(){return!0}transformInternalExpressions(){}clone(){return new jd(this.index)}},Ql=class Tx extends ye{static{l(this,"PipeBindingExpr")}target;targetSlot;name;args;kind=R.PipeBinding;[Wi]=!0;[Kl]=!0;varOffset=null;constructor(t,n,r,s){super(),this.target=t,this.targetSlot=n,this.name=r,this.args=s}visitExpression(t,n){for(let r of this.args)r.visitExpression(t,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(t,n){for(let r=0;r<this.args.length;r++)this.args[r]=P(this.args[r],t,n)}clone(){let t=new Tx(this.target,this.targetSlot,this.name,this.args.map(n=>n.clone()));return t.varOffset=this.varOffset,t}},pg=class xx extends ye{static{l(this,"PipeBindingVariadicExpr")}target;targetSlot;name;args;numArgs;kind=R.PipeBindingVariadic;[Wi]=!0;[Kl]=!0;varOffset=null;constructor(t,n,r,s,i){super(),this.target=t,this.targetSlot=n,this.name=r,this.args=s,this.numArgs=i}visitExpression(t,n){this.args.visitExpression(t,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(t,n){this.args=P(this.args,t,n)}clone(){let t=new xx(this.target,this.targetSlot,this.name,this.args.clone(),this.numArgs);return t.varOffset=this.varOffset,t}},cl=class bx extends ye{static{l(this,"SafePropertyReadExpr")}receiver;name;kind=R.SafePropertyRead;constructor(t,n){super(),this.receiver=t,this.name=n}get index(){return this.name}visitExpression(t,n){this.receiver.visitExpression(t,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(t,n){this.receiver=P(this.receiver,t,n)}clone(){return new bx(this.receiver.clone(),this.name)}},ul=class Ax extends ye{static{l(this,"SafeKeyedReadExpr")}receiver;index;kind=R.SafeKeyedRead;constructor(t,n,r){super(r),this.receiver=t,this.index=n}visitExpression(t,n){this.receiver.visitExpression(t,n),this.index.visitExpression(t,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(t,n){this.receiver=P(this.receiver,t,n),this.index=P(this.index,t,n)}clone(){return new Ax(this.receiver.clone(),this.index.clone(),this.sourceSpan)}},hg=class Wd extends ye{static{l(this,"SafeNavigationMigrationExpr")}expr;kind=R.SafeNavigationMigration;constructor(t){super(),this.expr=t}visitExpression(t,n){this.expr.visitExpression(t,n)}isEquivalent(t){return t instanceof Wd&&this.expr.isEquivalent(t.expr)}isConstant(){return this.expr.isConstant()}transformInternalExpressions(t,n){this.expr=P(this.expr,t,n|G.InSafeNavigationMigration)}clone(){return new Wd(this.expr.clone())}},cu=class Cx extends ye{static{l(this,"SafeTernaryExpr")}guard;expr;kind=R.SafeTernaryExpr;constructor(t,n){super(),this.guard=t,this.expr=n}visitExpression(t,n){this.guard.visitExpression(t,n),this.expr.visitExpression(t,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(t,n){this.guard=P(this.guard,t,n),this.expr=P(this.expr,t,n)}clone(){return new Cx(this.guard.clone(),this.expr.clone())}},dg=class zd extends ye{static{l(this,"EmptyExpr")}kind=R.EmptyExpr;visitExpression(t,n){}isEquivalent(t){return t instanceof zd}isConstant(){return!0}clone(){return new zd}transformInternalExpressions(){}},rs=class _x extends ye{static{l(this,"AssignTemporaryExpr")}expr;xref;kind=R.AssignTemporaryExpr;name=null;constructor(t,n){super(),this.expr=t,this.xref=n}visitExpression(t,n){this.expr.visitExpression(t,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(t,n){this.expr=P(this.expr,t,n)}clone(){let t=new _x(this.expr.clone(),this.xref);return t.name=this.name,t}},za=class Nx extends ye{static{l(this,"ReadTemporaryExpr")}xref;kind=R.ReadTemporaryExpr;name=null;constructor(t){super(),this.xref=t}visitExpression(t,n){}isEquivalent(){return this.xref===this.xref}isConstant(){return!1}transformInternalExpressions(t,n){}clone(){let t=new Nx(this.xref);return t.name=this.name,t}},La=class Gd extends ye{static{l(this,"SlotLiteralExpr")}slot;kind=R.SlotLiteralExpr;constructor(t){super(),this.slot=t}visitExpression(t,n){}isEquivalent(t){return t instanceof Gd&&t.slot===this.slot}isConstant(){return!0}clone(){return new Gd(this.slot)}transformInternalExpressions(){}},uu=class Xd extends ye{static{l(this,"ConditionalCaseExpr")}expr;target;targetSlot;alias;kind=R.ConditionalCase;constructor(t,n,r,s=null){super(),this.expr=t,this.target=n,this.targetSlot=r,this.alias=s}visitExpression(t,n){this.expr!==null&&this.expr.visitExpression(t,n)}isEquivalent(t){return t instanceof Xd&&t.expr===this.expr}isConstant(){return!0}clone(){return new Xd(this.expr,this.target,this.targetSlot)}transformInternalExpressions(t,n){this.expr!==null&&(this.expr=P(this.expr,t,n))}},Yd=class Kd extends ye{static{l(this,"ConstCollectedExpr")}expr;kind=R.ConstCollected;constructor(t){super(),this.expr=t}transformInternalExpressions(t,n){this.expr=t(this.expr,n)}visitExpression(t,n){this.expr.visitExpression(t,n)}isEquivalent(t){return t instanceof Kd?this.expr.isEquivalent(t.expr):!1}isConstant(){return this.expr.isConstant()}clone(){return new Kd(this.expr)}},OR=class Qd extends ye{static{l(this,"ArrowFunctionExpr")}parameters;body;kind=R.ArrowFunction;[Wi]=!0;[Kl]=!0;contextName=un;currentViewName="view";varOffset=null;ops;constructor(t,n){super(),this.parameters=t,this.body=n,this.ops=new b,this.ops.push([Kt(new Qe(n,n.sourceSpan))])}visitExpression(t,n){for(let r of this.ops)qe(r,s=>{s.visitExpression(t,n)})}isEquivalent(t){return t instanceof Qd&&t.parameters.length===this.parameters.length&&t.parameters.every((n,r)=>n.isEquivalent(this.parameters[r]))&&t.body.isEquivalent(this.body)}isConstant(){return!1}transformInternalExpressions(t,n){for(let r of this.ops)Pe(r,t,n|(G.InChildOperation|G.InArrowFunctionOperation))}clone(){let t=new Qd(this.parameters,this.body);return t.varOffset=this.varOffset,t.ops=this.ops,t}};function qe(e,t){Pe(e,(n,r)=>(t(n,r),n),G.None)}l(qe,"visitExpressionsInOp");var G;(function(e){e[e.None=0]="None",e[e.InChildOperation=1]="InChildOperation",e[e.InArrowFunctionOperation=2]="InArrowFunctionOperation",e[e.InSafeNavigationMigration=4]="InSafeNavigationMigration"})(G||(G={}));function _c(e,t,n){for(let r=0;r<e.expressions.length;r++)e.expressions[r]=P(e.expressions[r],t,n)}l(_c,"transformExpressionsInInterpolation");function Pe(e,t,n){switch(e.kind){case d.StyleProp:case d.StyleMap:case d.ClassProp:case d.ClassMap:case d.AnimationString:case d.AnimationBinding:case d.Binding:e.expression instanceof Ze?_c(e.expression,t,n):e.expression=P(e.expression,t,n);break;case d.Property:case d.DomProperty:case d.Attribute:e.expression instanceof Ze?_c(e.expression,t,n):e.expression=P(e.expression,t,n),e.sanitizer=e.sanitizer&&P(e.sanitizer,t,n);break;case d.TwoWayProperty:e.expression=P(e.expression,t,n),e.sanitizer=e.sanitizer&&P(e.sanitizer,t,n);break;case d.I18nExpression:e.expression=P(e.expression,t,n);break;case d.InterpolateText:_c(e.interpolation,t,n);break;case d.Statement:Ga(e.statement,t,n);break;case d.Variable:e.initializer=P(e.initializer,t,n);break;case d.Conditional:for(let r of e.conditions)r.expr!==null&&(r.expr=P(r.expr,t,n));e.processed!==null&&(e.processed=P(e.processed,t,n)),e.contextValue!==null&&(e.contextValue=P(e.contextValue,t,n));break;case d.Boundary:for(let r of e.conditions)r.expr!==null&&(r.expr=P(r.expr,t,n));e.processed!==null&&(e.processed=P(e.processed,t,n));break;case d.Animation:case d.AnimationListener:case d.Listener:case d.TwoWayListener:for(let r of e.handlerOps)Pe(r,t,n|G.InChildOperation);break;case d.ExtractedAttribute:e.expression=e.expression&&P(e.expression,t,n),e.trustedValueFn=e.trustedValueFn&&P(e.trustedValueFn,t,n);break;case d.RepeaterCreate:if(e.trackByOps===null)e.track=P(e.track,t,n);else for(let r of e.trackByOps)Pe(r,t,n|G.InChildOperation);e.trackByFn!==null&&(e.trackByFn=P(e.trackByFn,t,n));break;case d.Repeater:e.collection=P(e.collection,t,n);break;case d.Defer:e.loadingConfig!==null&&(e.loadingConfig=P(e.loadingConfig,t,n)),e.placeholderConfig!==null&&(e.placeholderConfig=P(e.placeholderConfig,t,n)),e.resolverFn!==null&&(e.resolverFn=P(e.resolverFn,t,n));break;case d.I18nMessage:for(let[r,s]of e.params)e.params.set(r,P(s,t,n));for(let[r,s]of e.postprocessingParams)e.postprocessingParams.set(r,P(s,t,n));break;case d.DeferWhen:e.expr=P(e.expr,t,n);break;case d.StoreLet:e.value=P(e.value,t,n);break;case d.ForeignComponent:for(let[r,s]of e.props)e.props.set(r,P(s,t,n));break;case d.Advance:case d.Container:case d.ContainerEnd:case d.ContainerStart:case d.DeferOn:case d.DisableBindings:case d.Element:case d.ElementEnd:case d.ElementStart:case d.EnableBindings:case d.I18n:case d.I18nApply:case d.I18nContext:case d.I18nEnd:case d.I18nStart:case d.IcuEnd:case d.IcuStart:case d.Namespace:case d.Pipe:case d.Projection:case d.ProjectionDef:case d.EnableIncrementalHydrationRuntime:case d.Template:case d.Content:case d.Text:case d.I18nAttributes:case d.IcuPlaceholder:case d.DeclareLet:case d.SourceLocation:case d.ConditionalCreate:case d.ConditionalBranchCreate:case d.Control:case d.ControlCreate:case d.BoundaryCreate:case d.BoundaryErrorCreate:break;default:throw new Error(`AssertionError: transformExpressionsInOp doesn't handle ${d[e.kind]}`)}}l(Pe,"transformExpressionsInOp");function P(e,t,n){if(e instanceof ye)e.transformInternalExpressions(t,n);else if(e instanceof ce)e.lhs=P(e.lhs,t,n),e.rhs=P(e.rhs,t,n);else if(e instanceof _r)e.expr=P(e.expr,t,n);else if(e instanceof ft)e.receiver=P(e.receiver,t,n);else if(e instanceof An)e.receiver=P(e.receiver,t,n),e.index=P(e.index,t,n);else if(e instanceof Ye){e.fn=P(e.fn,t,n);for(let r=0;r<e.args.length;r++)e.args[r]=P(e.args[r],t,n)}else if(e instanceof ir)for(let r=0;r<e.entries.length;r++)e.entries[r]=P(e.entries[r],t,n);else if(e instanceof Cn)for(let r of e.entries)r instanceof Nr?r.expression=P(r.expression,t,n):r.value=P(r.value,t,n);else if(e instanceof an)e.condition=P(e.condition,t,n),e.trueCase=P(e.trueCase,t,n),e.falseCase!==null&&(e.falseCase=P(e.falseCase,t,n));else if(e instanceof Ui)e.expr=P(e.expr,t,n);else if(e instanceof Bl)e.expr=P(e.expr,t,n);else if(e instanceof Cu)for(let r=0;r<e.expressions.length;r++)e.expressions[r]=P(e.expressions[r],t,n);else if(e instanceof to)e.condition=P(e.condition,t,n);else if(e instanceof Za)e.tag=P(e.tag,t,n),e.template.expressions=e.template.expressions.map(r=>P(r,t,n));else if(e instanceof on)if(Array.isArray(e.body))for(let r=0;r<e.body.length;r++)Ga(e.body[r],t,n|G.InChildOperation);else e.body=P(e.body,t,n|G.InChildOperation);else if(!(e instanceof se)){if(e instanceof Ml)for(let r=0;r<e.expressions.length;r++)e.expressions[r]=P(e.expressions[r],t,n);else if(e instanceof Ft)e.expr=P(e.expr,t,n);else if(e instanceof _i)e.expression=P(e.expression,t,n);else if(e instanceof Fn)for(let r=0;r<e.statements.length;r++)Ga(e.statements[r],t,n);else if(!(e instanceof Un||e instanceof is||e instanceof ct||e instanceof eo))throw new Error(`Unhandled expression kind: ${e.constructor.name}`)}return t(e,n)}l(P,"transformExpressionsInExpression");function Ga(e,t,n){if(e instanceof St)e.expr=P(e.expr,t,n);else if(e instanceof Qe)e.value=P(e.value,t,n);else if(e instanceof Ke)e.value!==void 0&&(e.value=P(e.value,t,n));else if(e instanceof Iu){e.condition=P(e.condition,t,n);for(let r of e.trueCase)Ga(r,t,n);for(let r of e.falseCase)Ga(r,t,n)}else throw new Error(`Unhandled statement kind: ${e.constructor.name}`)}l(Ga,"transformExpressionsInStatement");function fg(e){return e instanceof ct&&typeof e.value=="string"}l(fg,"isStringLiteral");var mt=class{static{l(this,"SlotHandle")}slot=null},RR=new Set([d.Element,d.ElementStart,d.Container,d.ContainerStart,d.Template,d.RepeaterCreate,d.ConditionalCreate,d.ConditionalBranchCreate,d.BoundaryCreate]);function Dr(e){return RR.has(e.kind)}l(Dr,"isElementOrContainerOp");function Ix(e,t,n,r,s,i){return{kind:d.ElementStart,xref:t,tag:e,handle:new mt,attributes:null,localRefs:[],nonBindable:!1,namespace:n,i18nPlaceholder:r,startSourceSpan:s,wholeSourceSpan:i,...$t,...U}}l(Ix,"createElementStartOp");function kx(e,t,n,r){return{kind:d.ForeignComponent,xref:e,handle:new mt,constIndex:t,props:n,sourceSpan:r,...$t,...U}}l(kx,"createForeignComponentOp");function Jd(e,t,n,r,s){return{kind:d.Content,target:e,propertyName:n,view:t,startSourceSpan:r,sourceSpan:s,...U}}l(Jd,"createContentOp");function Ju(e,t,n,r,s,i,a,o){return{kind:d.Template,xref:e,templateKind:t,attributes:null,tag:n,handle:new mt,functionNameSuffix:r,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:s,i18nPlaceholder:i,startSourceSpan:a,wholeSourceSpan:o,...$t,...U}}l(Ju,"createTemplateOp");function mg(e,t,n,r,s,i,a,o){return{kind:d.ConditionalCreate,xref:e,templateKind:t,attributes:null,tag:n,handle:new mt,functionNameSuffix:r,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:s,i18nPlaceholder:i,startSourceSpan:a,wholeSourceSpan:o,...$t,...U}}l(mg,"createConditionalCreateOp");function Zu(e,t,n,r,s,i,a,o){return{kind:d.ConditionalBranchCreate,xref:e,templateKind:t,attributes:null,tag:n,handle:new mt,functionNameSuffix:r,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:s,i18nPlaceholder:i,startSourceSpan:a,wholeSourceSpan:o,...$t,...U}}l(Zu,"createConditionalBranchCreateOp");function Px(e,t,n,r,s,i,a,o){return{kind:d.BoundaryCreate,xref:e,templateKind:t,attributes:null,tag:n,handle:new mt,functionNameSuffix:r,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:s,i18nPlaceholder:i,startSourceSpan:a,wholeSourceSpan:o,...$t,...U}}l(Px,"createBoundaryCreateOp");function Lx(e,t,n,r,s,i,a,o){return{kind:d.BoundaryErrorCreate,xref:e,templateKind:t,handle:new mt,functionNameSuffix:n,decls:null,vars:null,i18nPlaceholder:r,startSourceSpan:s,wholeSourceSpan:i,boundaryXref:a,contextVariables:o,...$t,...U}}l(Lx,"createBoundaryErrorCreateOp");function Dx(e,t,n,r,s,i,a,o,c,u){return{kind:d.RepeaterCreate,attributes:null,xref:e,handle:new mt,emptyView:t,track:r,trackByFn:null,trackByOps:null,tag:n,emptyTag:i,emptyAttributes:null,functionNameSuffix:"For",namespace:Be.HTML,nonBindable:!1,localRefs:[],decls:null,vars:null,varNames:s,usesComponentInstance:!1,i18nPlaceholder:a,emptyI18nPlaceholder:o,startSourceSpan:c,wholeSourceSpan:u,...$t,...U,...Vt,numSlotsUsed:t===null?2:3}}l(Dx,"createRepeaterCreateOp");function Ox(e,t){return{kind:d.ElementEnd,xref:e,sourceSpan:t,...U}}l(Ox,"createElementEndOp");function Rx(e){return{kind:d.DisableBindings,xref:e,...U}}l(Rx,"createDisableBindingsOp");function Bx(e){return{kind:d.EnableBindings,xref:e,...U}}l(Bx,"createEnableBindingsOp");function gg(e,t,n,r){return{kind:d.Text,xref:e,handle:new mt,initialValue:t,icuPlaceholder:n,sourceSpan:r,...$t,...U}}l(gg,"createTextOp");function Mx(e,t,n,r,s,i){return{kind:d.AnimationString,name:e,target:t,animationKind:n,expression:r,i18nMessage:null,securityContext:s,sanitizer:null,sourceSpan:i,...U}}l(Mx,"createAnimationStringOp");function Fx(e,t,n,r,s,i){let a=new b;return a.push(r),{kind:d.Animation,name:e,target:t,animationKind:n,handlerOps:a,handlerFnName:null,i18nMessage:null,securityContext:s,sanitizer:null,sourceSpan:i,...U}}l(Fx,"createAnimationOp");function ep(e,t,n,r,s,i,a,o,c){let u=new b;return u.push(s),{kind:d.Listener,target:e,targetSlot:t,tag:r,hostListener:o,name:n,handlerOps:u,handlerFnName:null,consumesDollarEvent:!1,isLegacyAnimationListener:i!==null,legacyAnimationPhase:i,eventTarget:a,sourceSpan:c,...U}}l(ep,"createListenerOp");function vg(e,t,n,r,s,i,a,o,c){let u=new b;return u.push(s),{kind:d.AnimationListener,target:e,targetSlot:t,tag:r,hostListener:o,name:n,animationKind:i,handlerOps:u,handlerFnName:null,consumesDollarEvent:!1,eventTarget:a,sourceSpan:c,...U}}l(vg,"createAnimationListenerOp");function Eg(e,t,n,r,s,i){let a=new b;return a.push(s),{kind:d.TwoWayListener,target:e,targetSlot:t,tag:r,name:n,handlerOps:a,handlerFnName:null,sourceSpan:i,...U}}l(Eg,"createTwoWayListenerOp");function $x(e,t,n){return{kind:d.Pipe,xref:e,handle:t,name:n,...U,...$t}}l($x,"createPipeOp");function Ux(e){return{kind:d.Namespace,active:e,...U}}l(Ux,"createNamespaceOp");function Vx(e){return{kind:d.ProjectionDef,def:e,...U}}l(Vx,"createProjectionDefOp");function qx(e){return{kind:d.EnableIncrementalHydrationRuntime,sourceSpan:e,...U}}l(qx,"createEnableIncrementalHydrationRuntimeOp");function Hx(e,t,n,r,s){return{kind:d.Projection,xref:e,handle:new mt,selector:t,i18nPlaceholder:n,fallbackView:r,projectionSlotIndex:0,attributes:null,localRefs:[],sourceSpan:s,...U,...$t,numSlotsUsed:r===null?1:2}}l(Hx,"createProjectionOp");function sn(e,t,n,r,s,i,a,o){return{kind:d.ExtractedAttribute,target:e,bindingKind:t,namespace:n,name:r,expression:s,i18nContext:i,i18nMessage:a,securityContext:o,trustedValueFn:null,...U}}l(sn,"createExtractedAttributeOp");function jx(e,t,n,r,s,i){return{kind:d.Defer,xref:e,handle:new mt,mainView:t,mainSlot:n,loadingView:null,loadingSlot:null,loadingConfig:null,loadingMinimumTime:null,loadingAfterTime:null,placeholderView:null,placeholderSlot:null,placeholderConfig:null,placeholderMinimumTime:null,errorView:null,errorSlot:null,ownResolverFn:r,resolverFn:s,flags:null,sourceSpan:i,...U,...$t,numSlotsUsed:2}}l(jx,"createDeferOp");function mr(e,t,n,r){return{kind:d.DeferOn,defer:e,trigger:t,modifier:n,sourceSpan:r,...U}}l(mr,"createDeferOnOp");function Wx(e,t,n){return{kind:d.DeclareLet,xref:e,declaredName:t,sourceSpan:n,handle:new mt,...$t,...U}}l(Wx,"createDeclareLetOp");function zx(e,t,n,r,s,i,a,o){return{kind:d.I18nMessage,xref:e,i18nContext:t,i18nBlock:n,message:r,messagePlaceholder:s,params:i,postprocessingParams:a,needsPostprocessing:o,subMessages:[],requiresExtraction:null,...U}}l(zx,"createI18nMessageOp");function Jl(e,t,n,r){return{kind:d.I18nStart,xref:e,handle:new mt,root:n??e,message:t,messageIndex:null,subTemplateIndex:null,context:null,sourceSpan:r,...U,...$t}}l(Jl,"createI18nStartOp");function Zl(e,t){return{kind:d.I18nEnd,xref:e,sourceSpan:t,...U}}l(Zl,"createI18nEndOp");function Gx(e,t,n,r){return{kind:d.IcuStart,xref:e,message:t,messagePlaceholder:n,context:null,sourceSpan:r,...U}}l(Gx,"createIcuStartOp");function Xx(e){return{kind:d.IcuEnd,xref:e,...U}}l(Xx,"createIcuEndOp");function Yx(e,t,n){return{kind:d.IcuPlaceholder,xref:e,name:t,strings:n,expressionPlaceholders:[],...U}}l(Yx,"createIcuPlaceholderOp");function Nc(e,t,n,r,s){if(n===null&&e!==Gr.Attr)throw new Error("AssertionError: i18nBlock must be provided for non-attribute contexts.");return{kind:d.I18nContext,contextKind:e,xref:t,i18nBlock:n,message:r,sourceSpan:s,params:new Map,postprocessingParams:new Map,...U}}l(Nc,"createI18nContextOp");function Sg(e,t,n){return{kind:d.I18nAttributes,xref:e,handle:t,target:n,i18nAttributesConfig:null,...U,...$t}}l(Sg,"createI18nAttributesOp");function Kx(e,t){return{kind:d.SourceLocation,templatePath:e,locations:t,...U}}l(Kx,"createSourceLocationOp");function Qx(e){return{kind:d.ControlCreate,sourceSpan:e,...U}}l(Qx,"createControlCreateOp");function Jx(e,t,n,r,s,i){return{kind:d.DomProperty,name:e,expression:t,bindingKind:n,i18nContext:r,securityContext:s,sanitizer:null,sourceSpan:i,...Vt,...U}}l(Jx,"createDomPropertyOp");var Zx="CTX_REF_MARKER",I;(function(e){e[e.Tmpl=0]="Tmpl",e[e.Host=1]="Host",e[e.Both=2]="Both"})(I||(I={}));var Pt;(function(e){e[e.Full=0]="Full",e[e.DomOnly=1]="DomOnly"})(Pt||(Pt={}));var eb=class{static{l(this,"CompilationJob")}componentName;pool;mode;legacyOptionalChaining;constructor(e,t,n,r){this.componentName=e,this.pool=t,this.mode=n,this.legacyOptionalChaining=r}kind=I.Both;allocateXrefId(){return this.nextXrefId++}nextXrefId=0},yg=class extends eb{static{l(this,"ComponentCompilationJob")}relativeContextFilePath;i18nUseExternalIds;deferMeta;allDeferrableDepsFn;relativeTemplatePath;enableDebugLocations;foreignImports;foreignMatcher;constructor(e,t,n,r,s,i,a,o,c,u,p){if(super(e,t,n,u),this.relativeContextFilePath=r,this.i18nUseExternalIds=s,this.deferMeta=i,this.allDeferrableDepsFn=a,this.relativeTemplatePath=o,this.enableDebugLocations=c,this.foreignImports=p,this.root=new tn(this,this.allocateXrefId(),null),this.views.set(this.root.xref,this.root),p&&p.length>0){let h=new Map;for(let f of p)h.set(f.name,[f]);this.foreignMatcher=new jc(h)}else this.foreignMatcher=null}getForeignComponent(e){if(this.foreignMatcher===null)return null;let t=this.foreignMatcher.match(e.name);return t.length>0?t[0]:null}kind=I.Tmpl;fnSuffix="Template";root;views=new Map;contentSelectors=null;allocateView(e){let t=new tn(this,this.allocateXrefId(),e);return this.views.set(t.xref,t),t}get units(){return this.views.values()}addConst(e,t){for(let r=0;r<this.consts.length;r++)if(this.consts[r].isEquivalent(e))return r;let n=this.consts.length;return this.consts.push(e),t&&this.constsInitializers.push(...t),n}consts=[];constsInitializers=[]},tb=class{static{l(this,"CompilationUnit")}xref;constructor(e){this.xref=e}create=new b;update=new b;functions=new Set;fnName=null;vars=null;*ops(){for(let e of this.functions)for(let t of e.ops)yield t;for(let e of this.create)if(yield e,e.kind===d.Listener||e.kind===d.Animation||e.kind===d.AnimationListener||e.kind===d.TwoWayListener)for(let t of e.handlerOps)yield t;else if(e.kind===d.RepeaterCreate&&e.trackByOps!==null)for(let t of e.trackByOps)yield t;for(let e of this.update)yield e}},tn=class extends tb{static{l(this,"ViewCompilationUnit")}job;parent;constructor(e,t,n){super(t),this.job=e,this.parent=n}contextVariables=new Map;aliases=new Set;decls=null},nb=class extends eb{static{l(this,"HostBindingCompilationJob")}constructor(e,t,n,r){super(e,t,n,r),this.root=new BR(this)}kind=I.Host;fnSuffix="HostBindings";root;get units(){return[this.root]}},BR=class extends tb{static{l(this,"HostBindingCompilationUnit")}job;constructor(e){super(0),this.job=e}attributes=null};function rb(e){for(let t of e.units)for(let n of t.ops())Pe(n,sb,G.None)}l(rb,"deleteAnyCasts");function sb(e){if(e instanceof Ye&&e.fn instanceof ht&&e.fn.name==="$any"){if(e.args.length!==1)throw new Error("The $any builtin function expects exactly one argument.");return e.args[0]}return e}l(sb,"removeAnys");function ib(e){let t=new Map;for(let n of e.units)for(let r of n.create)r.kind===d.I18nContext&&t.set(r.xref,r);for(let n of e.units)for(let r of n.update)r.kind===d.I18nExpression&&ab(t,r)&&b.insertAfter(dx(r.i18nOwner,r.handle,null),r)}l(ib,"applyI18nExpressions");function ab(e,t){if(t.next?.kind!==d.I18nExpression)return!0;let n=e.get(t.context),r=e.get(t.next.context);if(n===void 0)throw new Error("AssertionError: expected an I18nContextOp to exist for the I18nExpressionOp's context");if(r===void 0)throw new Error("AssertionError: expected an I18nContextOp to exist for the next I18nExpressionOp's context");return n.i18nBlock!==null?n.i18nBlock!==r.i18nBlock:t.i18nOwner!==t.next.i18nOwner}l(ab,"needsApplication");function ob(e){for(let t of e.units){let n=t.update.head,r=[],s=null;for(let i of t.create){if(i.kind===d.I18nStart)s={blockXref:i.xref,lastSlotConsumer:i.xref};else if(i.kind===d.I18nEnd){for(let a of r)a.target=s.lastSlotConsumer,b.insertBefore(a,n);r.length=0,s=null}if(zi(i))for(s!==null&&(s.lastSlotConsumer=i.xref);n.next!==null;){if(s!==null&&n.kind===d.I18nExpression&&n.usage===Ri.I18nText&&n.i18nOwner===s.blockXref){let o=n;n=n.next,b.remove(o),r.push(o);continue}let a=!1;if(ja(n)&&n.target!==i.xref?a=!0:(n.kind===d.Statement||n.kind===d.Variable)&&qe(n,o=>{!a&&ja(o)&&o.target!==i.xref&&(a=!0)}),a)break;n=n.next}}}}l(ob,"assignI18nSlotDependencies");function lb(e){if(!(!e.enableDebugLocations||e.relativeTemplatePath===null))for(let t of e.units){let n=[];for(let r of t.create)if(r.kind===d.ElementStart||r.kind===d.Element){let s=r.startSourceSpan.start;n.push({targetSlot:r.handle,offset:s.offset,line:s.line,column:s.col})}n.length>0&&t.create.push(Kx(e.relativeTemplatePath,n))}}l(lb,"attachSourceLocations");function wg(e){let t=new Map;for(let n of e.create)zi(n)&&(t.set(n.xref,n),n.kind===d.RepeaterCreate&&n.emptyView!==null&&t.set(n.emptyView,n));return t}l(wg,"createOpXrefMap");function cb(e){for(let t of e.units){let n=wg(t);for(let r of t.ops())switch(r.kind){case d.Attribute:ub(t,r,n);break;case d.Property:if(r.bindingKind!==D.LegacyAnimation&&r.bindingKind!==D.Animation){let s;r.i18nMessage!==null&&r.templateKind===null?s=D.I18n:r.isStructuralTemplateAttribute?s=D.Template:s=D.Property,b.insertBefore(sn(r.target,s,null,r.name,null,null,null,r.securityContext),ci(n,r.target))}break;case d.TwoWayProperty:b.insertBefore(sn(r.target,D.TwoWayProperty,null,r.name,null,null,null,r.securityContext),ci(n,r.target));break;case d.StyleProp:case d.ClassProp:r.expression instanceof dg&&b.insertBefore(sn(r.target,D.Property,null,r.name,null,null,null,ee.STYLE),ci(n,r.target));break;case d.Listener:if(!r.isLegacyAnimationListener){let s=sn(r.target,D.Property,null,r.name,null,null,null,ee.NONE);if(e.kind===I.Host)break;b.insertBefore(s,ci(n,r.target))}break;case d.TwoWayListener:if(e.kind!==I.Host){let s=sn(r.target,D.Property,null,r.name,null,null,null,ee.NONE);b.insertBefore(s,ci(n,r.target))}break}}}l(cb,"extractAttributes");function ci(e,t){let n=e.get(t);if(n===void 0)throw new Error("All attributes should have an element-like target.");return n}l(ci,"lookupElement$3");function ub(e,t,n){if(!(t.expression instanceof Ze)&&t.isTextAttribute){let r=sn(t.target,t.isStructuralTemplateAttribute?D.Template:D.Attribute,t.namespace,t.name,t.expression,t.i18nContext,t.i18nMessage,t.securityContext);if(e.job.kind===I.Host)e.create.push(r);else{let s=ci(n,t.target);b.insertBefore(r,s)}b.remove(t)}}l(ub,"extractAttributeOp");var yy="aria-";function Tg(e){return e.startsWith(yy)&&e.length>yy.length}l(Tg,"isAriaAttribute");function pb(e,t){let n=e.get(t);if(n===void 0)throw new Error("All attributes should have an element-like target.");return n}l(pb,"lookupElement$2");function hb(e){let t=new Map;for(let n of e.units)for(let r of n.create)Dr(r)&&t.set(r.xref,r);for(let n of e.units)for(let r of n.ops())if(r.kind===d.Binding)switch(r.bindingKind){case D.Attribute:if(r.name==="ngNonBindable"){b.remove(r);let s=pb(t,r.target);s.nonBindable=!0}else if(r.name.startsWith("animate."))b.replace(r,kd(r.name,r.target,r.name==="animate.enter"?"enter":"leave",r.expression,r.securityContext,r.sourceSpan,0));else{let[s,i]=ot(r.name);b.replace(r,Id(r.target,s,i,r.expression,r.securityContext,r.isTextAttribute,r.isStructuralTemplateAttribute,r.templateKind,r.i18nMessage,r.sourceSpan))}break;case D.Animation:b.replace(r,kd(r.name,r.target,r.name==="animate.enter"?"enter":"leave",r.expression,r.securityContext,r.sourceSpan,1));break;case D.Property:case D.LegacyAnimation:e.mode===Pt.DomOnly&&Tg(r.name)?b.replace(r,Id(r.target,null,r.name,r.expression,r.securityContext,!1,r.isStructuralTemplateAttribute,r.templateKind,r.i18nMessage,r.sourceSpan)):e.kind===I.Host?b.replace(r,Jx(r.name,r.expression,r.bindingKind,r.i18nContext,r.securityContext,r.sourceSpan)):b.replace(r,rx(r.target,r.name,r.expression,r.bindingKind,r.securityContext,r.isStructuralTemplateAttribute,r.templateKind,r.i18nContext,r.i18nMessage,r.sourceSpan));break;case D.TwoWayProperty:if(!(r.expression instanceof he))throw new Error(`Expected value of two-way property binding "${r.name}" to be an expression`);b.replace(r,sx(r.target,r.name,r.expression,r.securityContext,r.isStructuralTemplateAttribute,r.templateKind,r.i18nContext,r.i18nMessage,r.sourceSpan));break;case D.I18n:case D.ClassName:case D.StyleProperty:throw new Error(`Unhandled binding of kind ${D[r.bindingKind]}`)}}l(hb,"specializeBindings");var wy=new Map([[m.ariaProperty,m.ariaProperty],[m.attribute,m.attribute],[m.classProp,m.classProp],[m.element,m.element],[m.elementContainer,m.elementContainer],[m.elementContainerEnd,m.elementContainerEnd],[m.elementContainerStart,m.elementContainerStart],[m.elementEnd,m.elementEnd],[m.elementStart,m.elementStart],[m.domProperty,m.domProperty],[m.i18nExp,m.i18nExp],[m.listener,m.listener],[m.listener,m.listener],[m.property,m.property],[m.styleProp,m.styleProp],[m.syntheticHostListener,m.syntheticHostListener],[m.syntheticHostProperty,m.syntheticHostProperty],[m.templateCreate,m.templateCreate],[m.twoWayProperty,m.twoWayProperty],[m.twoWayListener,m.twoWayListener],[m.declareLet,m.declareLet],[m.conditionalCreate,m.conditionalBranchCreate],[m.conditionalBranchCreate,m.conditionalBranchCreate],[m.domElement,m.domElement],[m.domElementStart,m.domElementStart],[m.domElementEnd,m.domElementEnd],[m.domElementContainer,m.domElementContainer],[m.domElementContainerStart,m.domElementContainerStart],[m.domElementContainerEnd,m.domElementContainerEnd],[m.domListener,m.domListener],[m.domTemplate,m.domTemplate],[m.animationEnter,m.animationEnter],[m.animationLeave,m.animationLeave],[m.animationEnterListener,m.animationEnterListener],[m.animationLeaveListener,m.animationLeaveListener]]),MR=256;function db(e){for(let t of e.units)Zd(t.create),Zd(t.update)}l(db,"chain");function Zd(e){let t=null;for(let n of e){if(n.kind!==d.Statement||!(n.statement instanceof St)){t=null;continue}if(!(n.statement.expr instanceof Ye)||!(n.statement.expr.fn instanceof is)){t=null;continue}let r=n.statement.expr.fn.value;if(!wy.has(r)){t=null;continue}if(t!==null&&wy.get(t.instruction)===r&&t.length<MR){let s=t.expression.callFn(n.statement.expr.args,n.statement.expr.sourceSpan,n.statement.expr.pure);t.expression=s,t.op.statement=s.toStmt(),t.length++,b.remove(n)}else t={op:n,instruction:r,expression:n.statement.expr,length:1}}}l(Zd,"chainOperationsInList");function fb(e){for(let t of e.units)for(let n of t.update)(n.kind===d.Attribute||n.kind===d.StyleProp||n.kind==d.StyleMap||n.kind===d.ClassMap)&&n.expression instanceof Ze&&n.expression.strings.length===2&&n.expression.strings.every(s=>s==="")&&(n.expression=n.expression.expressions[0])}l(fb,"collapseSingletonInterpolations");function mb(e){for(let t of e.units)for(let n of t.ops()){if(n.kind!==d.Conditional)continue;let r,s=n.conditions.findIndex(o=>o.expr===null);if(s>=0){let o=n.conditions.splice(s,1)[0].targetSlot;r=new La(o)}else r=g(-1);let i=n.test!=null?new rs(n.test,e.allocateXrefId()):null,a=null;for(let o=n.conditions.length-1;o>=0;o--){let c=n.conditions[o];if(c.expr!==null){if(i!==null){let u=o===0?i:new za(i.xref);c.expr=new ce(A.Identical,u,c.expr)}else c.alias!==null&&(a??=e.allocateXrefId(),c.expr=new rs(c.expr,a),n.contextValue=new za(a));r=new an(c.expr,new La(c.targetSlot),r)}}n.processed=r,n.conditions=[]}}l(mb,"generateConditionalExpressions");function gb(e){for(let t of e.units)for(let n of t.update)if(n.kind===d.Boundary){let r=n.target,s=new og(r),i=new ft(s,"error"),a=new ce(A.Identical,i,Ir),o=n.conditions,c=o.find(h=>h.expr===null),u=c?new La(c.targetSlot):g(-1),p=o.filter(h=>h.expr!==null);for(let h=p.length-1;h>=0;h--){let f=p[h],v=f.expr,E=Array.from(t.create).find(T=>T.kind===d.BoundaryErrorCreate&&T.xref===f.target);if(E!==void 0){let T=E.contextVariables.filter(y=>y.value==="$error").map(y=>y.name);T.length>0&&(v=P(v,y=>y instanceof ht&&T.includes(y.name)?i:y,G.None))}u=new an(v,new La(f.targetSlot),u)}n.processed=new an(a,new La(n.guarded.targetSlot),u)}}l(gb,"generateBoundaryConditions");var FR=new Map([["&&",A.And],[">",A.Bigger],[">=",A.BiggerEquals],["|",A.BitwiseOr],["&",A.BitwiseAnd],["/",A.Divide],["=",A.Assign],["==",A.Equals],["===",A.Identical],["<",A.Lower],["<=",A.LowerEquals],["-",A.Minus],["%",A.Modulo],["**",A.Exponentiation],["*",A.Multiply],["!=",A.NotEquals],["!==",A.NotIdentical],["??",A.NullishCoalesce],["||",A.Or],["+",A.Plus],["in",A.In],["instanceof",A.InstanceOf],["+=",A.AdditionAssignment],["-=",A.SubtractionAssignment],["*=",A.MultiplicationAssignment],["/=",A.DivisionAssignment],["%=",A.RemainderAssignment],["**=",A.ExponentiationAssignment],["&&=",A.AndAssignment],["||=",A.OrAssignment],["??=",A.NullishCoalesceAssignment]]);function xg(e){let t=new Map([["svg",Be.SVG],["math",Be.Math]]);return e===null?Be.HTML:t.get(e)??Be.HTML}l(xg,"namespaceForKey");function vb(e){let t=new Map([["svg",Be.SVG],["math",Be.Math]]);for(let[n,r]of t.entries())if(r===e)return n;return null}l(vb,"keyForNamespace");function Eb(e,t){return t===Be.HTML?e:`:${vb(t)}:${e}`}l(Eb,"prefixWithNamespace");function Bi(e){return Array.isArray(e)?K(e.map(Bi)):g(e)}l(Bi,"literalOrArrayLiteral");function Sb(e){let t=new Map;for(let n of e.units)for(let r of n.create)if(r.kind===d.ExtractedAttribute){let s=t.get(r.target)||new $R;t.set(r.target,s),s.add(r.bindingKind,r.name,r.expression,r.namespace,r.trustedValueFn),b.remove(r)}if(e instanceof yg)for(let n of e.units)for(let r of n.create)if(r.kind==d.Projection){let s=t.get(r.xref);if(s!==void 0){let i=pu(s);i.entries.length>0&&(r.attributes=e.pool.getConstLiteral(i,!0))}}else Dr(r)&&(r.attributes=ef(e,t,r.xref),r.kind===d.RepeaterCreate&&r.emptyView!==null&&(r.emptyAttributes=ef(e,t,r.emptyView)));else if(e instanceof nb)for(let[n,r]of t.entries()){if(n!==e.root.xref)throw new Error("An attribute would be const collected into the host binding's template function, but is not associated with the root xref.");let s=pu(r);s.entries.length>0&&(e.root.attributes=s)}}l(Sb,"collectElementConsts");function ef(e,t,n){let r=t.get(n);if(r!==void 0){let s=pu(r);if(s.entries.length>0)return e.addConst(s)}return null}l(ef,"getConstIndex");var ua=Object.freeze([]),$R=class{static{l(this,"ElementAttributes")}known=new Map;byKind=new Map;propertyBindings=null;projectAs=null;get attributes(){return this.byKind.get(D.Attribute)??ua}get classes(){return this.byKind.get(D.ClassName)??ua}get styles(){return this.byKind.get(D.StyleProperty)??ua}get bindings(){return this.propertyBindings??ua}get template(){return this.byKind.get(D.Template)??ua}get i18n(){return this.byKind.get(D.I18n)??ua}isKnown(e,t){let n=this.known.get(e)??new Set;return this.known.set(e,n),n.has(t)?!0:(n.add(t),!1)}add(e,t,n,r,s){if(!(e===D.Attribute||e===D.ClassName||e===D.StyleProperty)&&this.isKnown(e,t))return;if(t==="ngProjectAs"){if(n===null||!(n instanceof ct)||n.value==null||typeof n.value?.toString()!="string")throw Error("ngProjectAs must have a string literal value");this.projectAs=n.value.toString()}let a=this.arrayFor(e);if(a.push(...yb(r,t)),e===D.Attribute||e===D.StyleProperty){if(n===null)throw Error("Attribute, i18n attribute, & style element attributes must have a value");s!==null&&fg(n)?a.push(Sm(s,new Ml([new Au(n.value)],[]),void 0,n.sourceSpan)):a.push(n)}}arrayFor(e){return e===D.Property||e===D.TwoWayProperty?(this.propertyBindings??=[],this.propertyBindings):(this.byKind.has(e)||this.byKind.set(e,[]),this.byKind.get(e))}};function yb(e,t){let n=g(t);return e?[g(0),g(e),n]:[n]}l(yb,"getAttributeNameLiterals");function pu({attributes:e,bindings:t,classes:n,i18n:r,projectAs:s,styles:i,template:a}){let o=[...e];if(s!==null){let c=Ol(s)[0];o.push(g(5),Bi(c))}return n.length>0&&o.push(g(1),...n),i.length>0&&o.push(g(2),...i),t.length>0&&o.push(g(3),...t),a.length>0&&o.push(g(4),...a),r.length>0&&o.push(g(6),...r),K(o)}l(pu,"serializeAttributes");var UR=new Map([["formField",new Set([d.Property])],["formControl",new Set([d.Property])],["formControlName",new Set([d.Property,d.Attribute])],["ngModel",new Set([d.Attribute,d.Property,d.TwoWayProperty])]]);function wb(e){for(let t of e.units)Tb(t)}l(wb,"specializeControlProperties");function Tb(e){for(let t of e.update){if(t.kind!==d.Property&&t.kind!==d.TwoWayProperty&&t.kind!==d.Attribute)continue;let n=UR.get(t.name);n!==void 0&&n.has(t.kind)&&Ab(e,t)}}l(Tb,"processView");var VR=new Set([d.Container,d.ContainerStart,d.Element,d.ElementStart]);function xb(e){return VR.has(e.kind)}l(xb,"isRelevantCreateOp");function bb(e,t){for(let n of e.create)if(xb(n)&&n.xref===t)return n;return null}l(bb,"findCreateInstruction");function Ab(e,t){let n=bb(e,t.target);if(n===null)return;let r=Qx(t.sourceSpan);b.insertAfter(r,n),b.insertAfter(mx(t.target,t.sourceSpan),t)}l(Ab,"addControlInstruction");function Cb(e,t){let n=e.get(t);if(n===void 0)throw new Error("All attributes should have an element-like target.");return n}l(Cb,"lookupElement$1");function _b(e){let t=new Map;for(let n of e.units)for(let r of n.create)Dr(r)&&t.set(r.xref,r);for(let n of e.units)for(let r of n.ops())if(r.kind===d.AnimationBinding){let s=Nb(r);e.kind===I.Host?n.create.push(s):b.insertAfter(s,Cb(t,r.target)),b.remove(r)}}l(_b,"convertAnimations");function Nb(e){if(e.animationBindingKind===0)return Mx(e.name,e.target,e.name==="animate.enter"?"enter":"leave",e.expression,e.securityContext,e.sourceSpan);{let t=e.expression;return Fx(e.name,e.target,e.name==="animate.enter"?"enter":"leave",[Kt(new Qe(t,t.sourceSpan))],e.securityContext,e.sourceSpan)}}l(Nb,"getAnimationOp");function Ib(e){let t=new Map;for(let n of e.units){for(let r of n.create)r.kind===d.I18nAttributes&&t.set(r.target,r);for(let r of n.update)switch(r.kind){case d.Property:case d.Attribute:if(r.i18nContext===null||!(r.expression instanceof Ze))continue;let s=t.get(r.target);if(s===void 0)throw new Error("AssertionError: An i18n attribute binding instruction requires the owning element to have an I18nAttributes create instruction");if(s.target!==r.target)throw new Error("AssertionError: Expected i18nAttributes target element to match binding target element");let i=[];for(let a=0;a<r.expression.expressions.length;a++){let o=r.expression.expressions[a];if(r.expression.i18nPlaceholders.length!==r.expression.expressions.length)throw new Error(`AssertionError: An i18n attribute binding instruction requires the same number of expressions and placeholders, but found ${r.expression.i18nPlaceholders.length} placeholders and ${r.expression.expressions.length} expressions`);i.push(ag(r.i18nContext,s.target,s.xref,s.handle,o,null,r.expression.i18nPlaceholders[a],Ha.Creation,Ri.I18nAttribute,r.name,r.sourceSpan))}b.replaceWithMany(r,i);break}}}l(Ib,"convertI18nBindings");function kb(e){let t=new Map;for(let s of e.units)for(let i of s.ops())switch(i.kind){case d.Binding:case d.Property:case d.Attribute:case d.ExtractedAttribute:if(i.i18nMessage===null)continue;if(!t.has(i.i18nMessage)){let a=Nc(Gr.Attr,e.allocateXrefId(),null,i.i18nMessage,null);s.create.push(a),t.set(i.i18nMessage,a.xref)}i.i18nContext=t.get(i.i18nMessage);break}let n=new Map;for(let s of e.units)for(let i of s.create)switch(i.kind){case d.I18nStart:if(i.xref===i.root){let a=Nc(Gr.RootI18n,e.allocateXrefId(),i.xref,i.message,null);s.create.push(a),i.context=a.xref,n.set(i.xref,a)}break}for(let s of e.units)for(let i of s.create)if(i.kind===d.I18nStart&&i.xref!==i.root){let a=n.get(i.root);if(a===void 0)throw Error("AssertionError: Root i18n block i18n context should have been created.");i.context=a.xref,n.set(i.xref,a)}let r=null;for(let s of e.units)for(let i of s.create)switch(i.kind){case d.I18nStart:r=i;break;case d.I18nEnd:r=null;break;case d.IcuStart:if(r===null)throw Error("AssertionError: Unexpected ICU outside of an i18n block.");if(i.message.id!==r.message.id){let a=Nc(Gr.Icu,e.allocateXrefId(),r.root,i.message,null);s.create.push(a),i.context=a.xref}else i.context=r.context,n.get(r.xref).contextKind=Gr.Icu;break}}l(kb,"createI18nContexts");function Pb(e){let t=new Map;for(let n of e.units)for(let r of n.update.reversed())if(r.kind===d.Binding&&r.isTextAttribute){let s=t.get(r.target)||new Set;s.has(r.name)&&(r.name==="style"||r.name==="class")&&b.remove(r),s.add(r.name),t.set(r.target,s)}}l(Pb,"deduplicateTextBindings");function Lb(e){for(let t of e.units)for(let n of t.create)n.kind===d.Defer&&(n.placeholderMinimumTime!==null&&(n.placeholderConfig=new Yd(Bi([n.placeholderMinimumTime]))),(n.loadingMinimumTime!==null||n.loadingAfterTime!==null)&&(n.loadingConfig=new Yd(Bi([n.loadingMinimumTime,n.loadingAfterTime]))))}l(Lb,"configureDeferInstructions");function Db(e){for(let t of e.units)for(let n of t.create)if(n.kind===d.Defer&&n.flags!==null&&(n.flags&1)!==0){b.insertBefore(qx(n.sourceSpan),n);break}}l(Db,"insertIncrementalHydrationRuntime");function Ob(e){let t=new Map;function n(s){if(t.has(s.xref))return t.get(s.xref);let i=new qR;for(let a of s.create)if(!(!Dr(a)||a.localRefs===null)){if(!Array.isArray(a.localRefs))throw new Error("LocalRefs were already processed, but were needed to resolve defer targets.");for(let o of a.localRefs)o.target===""&&i.targets.set(o.name,{xref:a.xref,slot:a.handle})}return t.set(s.xref,i),i}l(n,"getScopeForView");function r(s,i,a){let o=i.trigger.kind;switch(o){case Ee.Idle:case Ee.Never:case Ee.Immediate:case Ee.Timer:return;case Ee.Hover:case Ee.Interaction:case Ee.Viewport:if(i.trigger.targetName===null){if(a===null)throw new Error("defer on trigger with no target name must have a placeholder block");let p=e.views.get(a);if(p==null)throw new Error("AssertionError: could not find placeholder view for defer on trigger");for(let h of p.create)if(zi(h)&&(Dr(h)||h.kind===d.Projection)){i.trigger.targetXref=h.xref,i.trigger.targetView=a,i.trigger.targetSlotViewSteps=-1,i.trigger.targetSlot=h.handle;return}return}let c=a!==null?e.views.get(a):s,u=a!==null?-1:0;for(;c!==null;){let p=n(c);if(p.targets.has(i.trigger.targetName)){let{xref:h,slot:f}=p.targets.get(i.trigger.targetName);i.trigger.targetXref=h,i.trigger.targetView=c.xref,i.trigger.targetSlotViewSteps=u,i.trigger.targetSlot=f;return}c=c.parent!==null?e.views.get(c.parent):null,u++}break;default:{let p=o;throw new Error(`Trigger kind ${p} not handled`)}}}l(r,"resolveTrigger");for(let s of e.units){let i=new Map;for(let a of s.create)switch(a.kind){case d.Defer:i.set(a.xref,a);break;case d.DeferOn:let o=i.get(a.defer);r(s,a,a.modifier==="hydrate"?o.mainView:o.placeholderView);break}}}l(Ob,"resolveDeferTargetNames");var qR=class{static{l(this,"Scope")}targets=new Map},HR=new Map([[d.ElementEnd,[d.ElementStart,d.Element]],[d.ContainerEnd,[d.ContainerStart,d.Container]],[d.I18nEnd,[d.I18nStart,d.I18n]]]),jR=new Set([d.Pipe]);function Rb(e){for(let t of e.units)for(let n of t.create){let r=HR.get(n.kind);if(r===void 0)continue;let[s,i]=r,a=n.prev;for(;a!==null&&jR.has(a.kind);)a=a.prev;a!==null&&a.kind===s&&(a.kind=i,b.remove(n))}}l(Rb,"collapseEmptyInstructions");function Bb(e){for(let t of e.units)for(let n of t.ops())Pe(n,(r,s)=>qb(r,{job:e},s),G.None),Pe(n,Hb,G.None)}l(Bb,"expandSafeReads");function It(e){return e instanceof _r?It(e.expr):e instanceof ce?It(e.lhs)||It(e.rhs):e instanceof an?e.falseCase&&It(e.falseCase)?!0:It(e.condition)||It(e.trueCase):e instanceof to?It(e.condition):e instanceof rs?It(e.expr):e instanceof ft?It(e.receiver):e instanceof An?It(e.receiver)||It(e.index):e instanceof Ft||e instanceof hg?It(e.expr):e instanceof Ye||e instanceof ir||e instanceof Cn||e instanceof Ql}l(It,"needsTemporaryInSafeAccess");function Mb(e){let t=new Set;return P(e,n=>(n instanceof rs&&t.add(n.xref),n),G.None),t}l(Mb,"temporariesIn");function Fb(e,t,n){return P(e,r=>{if(r instanceof rs&&t.has(r.xref)){let s=new za(r.xref);return new rs(s,s.xref)}return r},G.None),e}l(Fb,"eliminateTemporaryAssignments");function ai(e,t,n){let r;if(It(e)){let s=n.job.allocateXrefId();r=[new rs(e,s),new za(s)]}else r=[e,e.clone()],Fb(r[1],Mb(r[0]));return new cu(r[0],t(r[1]))}l(ai,"safeTernaryWithTemporary");function $b(e){return e instanceof cl||e instanceof ul||e instanceof Ye&&e.isOptional}l($b,"isSafeAccessExpression");function Ub(e){return e instanceof ft||e instanceof An||e instanceof Ye&&!e.isOptional}l(Ub,"isUnsafeAccessExpression");function bg(e){return $b(e)||Ub(e)}l(bg,"isAccessExpression");function Vb(e){if(bg(e)&&e.receiver instanceof cu){let t=e.receiver;for(;t.expr instanceof cu;)t=t.expr;return t}return null}l(Vb,"deepestSafeTernary");function qb(e,t,n){if(e instanceof hg)return e.expr;if(!(t.job.legacyOptionalChaining||(n&G.InSafeNavigationMigration)!==0))return e instanceof cl?new ft(e.receiver,e.name,null,e.sourceSpan,[],!0):e instanceof ul?new An(e.receiver,e.index,null,e.sourceSpan,[],!0):e;if(!bg(e))return e;let s=Vb(e);if(s){if(e instanceof Ye&&!e.isOptional)return s.expr=s.expr.callFn(e.args),e.receiver;if(e instanceof ft)return s.expr=s.expr.prop(e.name),e.receiver;if(e instanceof An)return s.expr=s.expr.key(e.index),e.receiver;if(e instanceof Ye&&e.isOptional)return s.expr=ai(s.expr,i=>i.callFn(e.args),t),e.receiver;if(e instanceof cl)return s.expr=ai(s.expr,i=>i.prop(e.name),t),e.receiver;if(e instanceof ul)return s.expr=ai(s.expr,i=>i.key(e.index),t),e.receiver}else{if(e instanceof Ye&&e.isOptional)return ai(e.receiver,i=>i.callFn(e.args),t);if(e instanceof cl)return ai(e.receiver,i=>i.prop(e.name),t);if(e instanceof ul)return ai(e.receiver,i=>i.key(e.index),t)}return e}l(qb,"safeTransform");function Hb(e){return e instanceof cu?new Ft(new an(new ce(A.Equals,e.guard,Ir),Ir,e.expr)):e}l(Hb,"ternaryTransform");var Ty="\uFFFD",WR="#",zR="*",GR="/",XR=":",YR="[",KR="]",QR="|";function jb(e){let t=new Map,n=new Map,r=new Map;for(let i of e.units)for(let a of i.create)switch(a.kind){case d.I18nContext:let o=Wb(e,a);i.create.push(o),t.set(a.xref,o),r.set(a.xref,a);break;case d.I18nStart:n.set(a.xref,a);break}let s=null;for(let i of e.units)for(let a of i.create)switch(a.kind){case d.IcuStart:s=a,b.remove(a);let o=r.get(a.context);if(o.contextKind!==Gr.Icu)continue;let c=n.get(o.i18nBlock);if(c.context===o.xref)continue;let u=n.get(c.root),p=t.get(u.context);if(p===void 0)throw Error("AssertionError: ICU sub-message should belong to a root message.");let h=t.get(o.xref);h.messagePlaceholder=a.messagePlaceholder,p.subMessages.push(h.xref);break;case d.IcuEnd:s=null,b.remove(a);break;case d.IcuPlaceholder:if(s===null||s.context==null)throw Error("AssertionError: Unexpected ICU placeholder outside of i18n context");t.get(s.context).postprocessingParams.set(a.name,g(zb(a))),b.remove(a);break}}l(jb,"extractI18nMessages");function Wb(e,t,n){let r=tf(t.params),s=tf(t.postprocessingParams),i=[...t.params.values()].some(a=>a.length>1);return zx(e.allocateXrefId(),t.xref,t.i18nBlock,t.message,null,r,s,i)}l(Wb,"createI18nMessage");function zb(e){if(e.strings.length!==e.expressionPlaceholders.length+1)throw Error(`AssertionError: Invalid ICU placeholder with ${e.strings.length} strings and ${e.expressionPlaceholders.length} expressions`);let t=e.expressionPlaceholders.map(fi);return e.strings.flatMap((n,r)=>[n,t[r]||""]).join("")}l(zb,"formatIcuPlaceholder");function tf(e){let t=new Map;for(let[n,r]of e){let s=Gb(r);s!==null&&t.set(n,g(s))}return t}l(tf,"formatParams");function Gb(e){if(e.length===0)return null;let t=e.map(n=>fi(n));return t.length===1?t[0]:`${YR}${t.join(QR)}${KR}`}l(Gb,"formatParamValues");function fi(e){if(e.flags&we.ElementTag&&e.flags&we.TemplateTag){if(typeof e.value!="object")throw Error("AssertionError: Expected i18n param value to have an element and template slot");let s=fi({...e,value:e.value.element,flags:e.flags&~we.TemplateTag}),i=fi({...e,value:e.value.template,flags:e.flags&~we.ElementTag});return e.flags&we.OpenTag&&e.flags&we.CloseTag?`${i}${s}${i}`:e.flags&we.CloseTag?`${s}${i}`:`${i}${s}`}if(e.flags&we.OpenTag&&e.flags&we.CloseTag)return`${fi({...e,flags:e.flags&~we.CloseTag})}${fi({...e,flags:e.flags&~we.OpenTag})}`;if(e.flags===we.None)return`${e.value}`;let t="",n="";e.flags&we.ElementTag?t=WR:e.flags&we.TemplateTag&&(t=zR),t!==""&&(n=e.flags&we.CloseTag?GR:"");let r=e.subTemplateIndex===null?"":`${XR}${e.subTemplateIndex}`;return`${Ty}${n}${t}${e.value}${r}${Ty}`}l(fi,"formatValue");function Xb(e){for(let t of e.units){let n=new Map;for(let s of t.create){if(zi(s)){if(s.handle.slot===null)throw new Error("AssertionError: expected slots to have been allocated before generating advance() calls")}else continue;n.set(s.xref,s.handle.slot)}let r=0;for(let s of t.update){let i=null;if(ja(s)?i=s:qe(s,o=>{i===null&&ja(o)&&(i=o)}),i===null)continue;if(!n.has(i.target))throw new Error(`AssertionError: reference to unknown slot for target ${i.target}`);let a=n.get(i.target);if(r!==a){let o=a-r;if(o<0)throw new Error("AssertionError: slot counter should never need to move backwards");b.insertBefore(cx(o,i.sourceSpan),s),r=a}}}}l(Xb,"generateAdvance");function Yb(e){for(let t of e.units){for(let n of t.create)n.kind!==d.Animation&&n.kind!==d.AnimationListener&&n.kind!==d.Listener&&n.kind!==d.TwoWayListener&&nf(t,n);for(let n of t.update)nf(t,n)}}l(Yb,"generateArrowFunctions");function nf(e,t){Pe(t,(n,r)=>{if(!(n instanceof on)||r&G.InChildOperation)return n;if(Array.isArray(n.body))throw new Error("AssertionError: unexpected multi-line arrow function");let s=new OR(n.params,n.body);return e.functions.add(s),s},G.None)}l(nf,"addArrowFunctions");function Kb(e){for(let t of e.units)for(let n of t.update){if(n.kind!==d.StoreLet)continue;let r={kind:Oe.Identifier,name:null,identifier:n.declaredName,local:!0};b.replace(n,Rn(e.allocateXrefId(),r,new lg(n.target,n.value,n.sourceSpan),Ot.None))}}l(Kb,"generateLocalLetReferences");function Qb(e){let n=[],r=0;for(let s of e.units)for(let i of s.create)i.kind===d.Projection&&(n.push(i.selector),i.projectionSlotIndex=r++);if(n.length>0){let s=null;if(n.length>1||n[0]!=="*"){let i=n.map(a=>a==="*"?a:Ol(a));s=e.pool.getConstLiteral(Bi(i),!0)}e.contentSelectors=e.pool.getConstLiteral(Bi(n),!0),e.root.create.prepend([Vx(s)])}}l(Qb,"generateProjectionDefs");function Jb(e,t,n,r,s){return Br(m.element,e,t,n,r,s)}l(Jb,"element");function Zb(e,t,n,r,s){return Br(m.elementStart,e,t,n,r,s)}l(Zb,"elementStart");function eA(e,t,n,r){let s=[g(e),t];return n!==null&&s.push(n),j(m.foreignComponent,s,r)}l(eA,"foreignComponent");function tA(e,t,n){return _(n?m.foreignContentFn:m.foreignContent).callFn([g(e),g(t)])}l(tA,"foreignContent");function Br(e,t,n,r,s,i){let a=[g(t)];return n!==null&&a.push(g(n)),s!==null?a.push(g(r),g(s)):r!==null&&a.push(g(r)),j(e,a,i)}l(Br,"elementOrContainerBase");function Ag(e,t,n,r,s,i,a,o,c){let u=[g(t),n,g(r),g(s),g(i),g(a)];for(o!==null&&(u.push(g(o)),u.push(_(m.templateRefExtractor)));u[u.length-1].isEquivalent(Ir);)u.pop();return j(e,u,c)}l(Ag,"templateBase");function tp(e,t,n,r,s){let i=[g(t)];return n instanceof Ze?i.push(Xi(n,s)):i.push(n),r!==null&&i.push(r),j(e,i,s)}l(tp,"propertyBase");function nA(e){return j(m.elementEnd,[],e)}l(nA,"elementEnd");function rA(e,t,n,r){return Br(m.elementContainerStart,e,null,t,n,r)}l(rA,"elementContainerStart");function sA(e,t,n,r){return Br(m.elementContainer,e,null,t,n,r)}l(sA,"elementContainer");function iA(){return j(m.elementContainerEnd,[],null)}l(iA,"elementContainerEnd");function aA(e,t,n,r,s,i,a,o){return Ag(m.templateCreate,e,t,n,r,s,i,a,o)}l(aA,"template");function oA(){return j(m.disableBindings,[],null)}l(oA,"disableBindings$1");function lA(){return j(m.enableBindings,[],null)}l(lA,"enableBindings");function cA(e,t,n,r,s){let i=[g(e),t];return n!==null&&i.push(_(n)),j(r?m.syntheticHostListener:m.listener,i,s)}l(cA,"listener");function rf(e,t){return _(m.twoWayBindingSet).callFn([e,t])}l(rf,"twoWayBindingSet");function uA(e,t,n){return j(m.twoWayListener,[g(e),t],n)}l(uA,"twoWayListener");function pA(e,t){return j(m.pipe,[g(e),g(t)],null)}l(pA,"pipe");function hA(){return j(m.namespaceHTML,[],null)}l(hA,"namespaceHTML");function dA(){return j(m.namespaceSVG,[],null)}l(dA,"namespaceSVG");function fA(){return j(m.namespaceMathML,[],null)}l(fA,"namespaceMath");function mA(e,t){return j(m.advance,e>1?[g(e)]:[],t)}l(mA,"advance");function gA(e){return _(m.reference).callFn([g(e)])}l(gA,"reference");function vA(e){return _(m.nextContext).callFn(e===1?[]:[g(e)])}l(vA,"nextContext");function EA(){return _(m.getCurrentView).callFn([])}l(EA,"getCurrentView");function SA(e){return _(m.restoreView).callFn([e])}l(SA,"restoreView");function yA(e){return _(m.resetView).callFn([e])}l(yA,"resetView");function wA(e,t,n){let r=[g(e,null)];return t!==""&&r.push(g(t)),j(m.text,r,n)}l(wA,"text");function TA(e,t,n,r,s,i,a,o,c,u,p){let h=[g(e),g(t),n??g(null),g(r),g(s),g(i),a??g(null),o??g(null),c?_(m.deferEnableTimerScheduling):g(null),g(p)],f;for(;(f=h[h.length-1])!==null&&f instanceof ct&&f.value===null;)h.pop();return j(m.defer,h,u)}l(TA,"defer");function xA(e){return j(m.enableIncrementalHydrationRuntime,[],e)}l(xA,"enableIncrementalHydrationRuntime");var JR=new Map([[Ee.Idle,{none:m.deferOnIdle,prefetch:m.deferPrefetchOnIdle,hydrate:m.deferHydrateOnIdle}],[Ee.Immediate,{none:m.deferOnImmediate,prefetch:m.deferPrefetchOnImmediate,hydrate:m.deferHydrateOnImmediate}],[Ee.Timer,{none:m.deferOnTimer,prefetch:m.deferPrefetchOnTimer,hydrate:m.deferHydrateOnTimer}],[Ee.Hover,{none:m.deferOnHover,prefetch:m.deferPrefetchOnHover,hydrate:m.deferHydrateOnHover}],[Ee.Interaction,{none:m.deferOnInteraction,prefetch:m.deferPrefetchOnInteraction,hydrate:m.deferHydrateOnInteraction}],[Ee.Viewport,{none:m.deferOnViewport,prefetch:m.deferPrefetchOnViewport,hydrate:m.deferHydrateOnViewport}],[Ee.Never,{none:m.deferHydrateNever,prefetch:m.deferHydrateNever,hydrate:m.deferHydrateNever}]]);function bA(e,t,n,r){let s=JR.get(e)?.[n];if(s===void 0)throw new Error(`Unable to determine instruction for trigger ${e}`);return j(s,t,r)}l(bA,"deferOn");function AA(e){return j(m.projectionDef,e?[e]:[],null)}l(AA,"projectionDef");function CA(e,t,n,r,s,i,a){let o=[g(e)];return(t!==0||n!==null||r!==null)&&(o.push(g(t)),n!==null&&o.push(n),r!==null&&(n===null&&o.push(g(null)),o.push(B(r),g(s),g(i)))),j(m.projection,o,a)}l(CA,"projection");function _A(e,t,n,r){let s=[g(e),g(t)];return n!==null&&s.push(g(n)),j(m.i18nStart,s,r)}l(_A,"i18nStart");function NA(e,t,n,r,s,i,a,o){let c=[g(e),t,g(n),g(r),g(s),g(i)];for(a!==null&&(c.push(g(a)),c.push(_(m.templateRefExtractor)));c[c.length-1].isEquivalent(Ir);)c.pop();return j(m.conditionalCreate,c,o)}l(NA,"conditionalCreate");function sf(e,t,n,r,s,i,a,o){let c=[g(e),t,g(n),g(r),g(s),g(i)];for(a!==null&&(c.push(g(a)),c.push(_(m.templateRefExtractor)));c[c.length-1].isEquivalent(Ir);)c.pop();return j(m.conditionalBranchCreate,c,o)}l(sf,"conditionalBranchCreate");function IA(e,t){return j(m.boundaryCreate,[g(e)],t)}l(IA,"boundaryCreate");function kA(e){return _(m.getBoundary).callFn([e])}l(kA,"getBoundary");function PA(e,t,n,r){let s=[e,t,n];return j(m.boundaryUpdate,s,r)}l(PA,"boundary");function LA(e,t,n,r,s,i,a,o,c,u,p,h,f,v){let E=[g(e),B(t),g(n),g(r),g(s),g(i),a];return(o||c!==null)&&(E.push(g(o)),c!==null&&(E.push(B(c),g(u),g(p)),(h!==null||f!==null)&&E.push(g(h)),f!==null&&E.push(g(f)))),j(m.repeaterCreate,E,v)}l(LA,"repeaterCreate");function DA(e,t){return j(m.repeater,[e],t)}l(DA,"repeater");function OA(e,t,n){return e==="prefetch"?j(m.deferPrefetchWhen,[t],n):e==="hydrate"?j(m.deferHydrateWhen,[t],n):j(m.deferWhen,[t],n)}l(OA,"deferWhen");function RA(e,t){return j(m.declareLet,[g(e)],t)}l(RA,"declareLet");function BA(e,t){return _(m.storeLet).callFn([e],t)}l(BA,"storeLet");function MA(e){return _(m.readContextLet).callFn([g(e)])}l(MA,"readContextLet");function FA(e,t,n,r){let s=[g(e),g(t)];return n&&s.push(g(n)),j(m.i18n,s,r)}l(FA,"i18n");function $A(e){return j(m.i18nEnd,[],e)}l($A,"i18nEnd");function UA(e,t){let n=[g(e),g(t)];return j(m.i18nAttributes,n,null)}l(UA,"i18nAttributes");function VA(e,t,n){return tp(m.ariaProperty,e,t,null,n)}l(VA,"ariaProperty");function qA(e,t,n,r){return tp(m.property,e,t,n,r)}l(qA,"property");function HA(e){return j(m.control,[],e)}l(HA,"control");function jA(e){return j(m.controlCreate,[],e)}l(jA,"controlCreate");function WA(e,t,n,r){let s=[g(e),t];return n!==null&&s.push(n),j(m.twoWayProperty,s,r)}l(WA,"twoWayProperty");function zA(e,t,n,r,s){let i=[g(e)];return t instanceof Ze?i.push(Xi(t,s)):i.push(t),(n!==null||r!==null)&&i.push(n??g(null)),r!==null&&i.push(g(r)),j(m.attribute,i,null)}l(zA,"attribute");function GA(e,t,n,r){let s=[g(e)];return t instanceof Ze?s.push(Xi(t,r)):s.push(t),n!==null&&s.push(g(n)),j(m.styleProp,s,r)}l(GA,"styleProp");function XA(e,t,n){return j(m.classProp,[g(e),t],n)}l(XA,"classProp");function YA(e,t){let n=e instanceof Ze?Xi(e,t):e;return j(m.styleMap,[n],t)}l(YA,"styleMap");function KA(e,t){let n=e instanceof Ze?Xi(e,t):e;return j(m.classMap,[n],t)}l(KA,"classMap");function QA(e,t,n,r,s){return Br(m.domElement,e,t,n,r,s)}l(QA,"domElement");function JA(e,t,n,r,s){return Br(m.domElementStart,e,t,n,r,s)}l(JA,"domElementStart");function ZA(e){return j(m.domElementEnd,[],e)}l(ZA,"domElementEnd");function eC(e,t,n,r){return Br(m.domElementContainerStart,e,null,t,n,r)}l(eC,"domElementContainerStart");function tC(e,t,n,r){return Br(m.domElementContainer,e,null,t,n,r)}l(tC,"domElementContainer");function nC(){return j(m.domElementContainerEnd,[],null)}l(nC,"domElementContainerEnd");function rC(e,t,n,r){let s=[g(e),t];return n!==null&&s.push(_(n)),j(m.domListener,s,r)}l(rC,"domListener");function sC(e,t,n,r,s,i,a,o){return Ag(m.domTemplate,e,t,n,r,s,i,a,o)}l(sC,"domTemplate");var xy=[m.pipeBind1,m.pipeBind2,m.pipeBind3,m.pipeBind4];function iC(e,t,n){if(n.length<1||n.length>xy.length)throw new Error("pipeBind() argument count out of bounds");let r=xy[n.length-1];return _(r).callFn([g(e),g(t),...n])}l(iC,"pipeBind");function aC(e,t,n){return _(m.pipeBindV).callFn([g(e),g(t),n])}l(aC,"pipeBindV");function oC(e,t,n){let r=Cg(e,t);return SC(ZR,[],r,n)}l(oC,"textInterpolate");function lC(e,t){return j(m.i18nExp,[e],t)}l(lC,"i18nExp");function cC(e,t){return j(m.i18nApply,[g(e)],t)}l(cC,"i18nApply");function uC(e,t,n,r){return tp(m.domProperty,e,t,n,r)}l(uC,"domProperty");function pC(e,t,n,r){let s=[t];n!==null&&s.push(n);let i=e==="enter"?m.animationEnter:m.animationLeave;return j(i,s,r)}l(pC,"animation");function hC(e,t,n,r){let i=[t instanceof Ze?Xi(t,r):t];n!==null&&i.push(n);let a=e==="enter"?m.animationEnter:m.animationLeave;return j(a,i,r)}l(hC,"animationString");function dC(e,t,n,r){let s=[t],i=e==="enter"?m.animationEnterListener:m.animationLeaveListener;return j(i,s,r)}l(dC,"animationListener");function fC(e,t,n){return j(m.syntheticHostProperty,[g(e),t],n)}l(fC,"syntheticHostProperty");function mC(e,t,n){return np(tB,[g(e),t],n,null)}l(mC,"pureFunction");function gC(e,t){return j(m.attachSourceLocations,[g(e),t],null)}l(gC,"attachSourceLocation");function vC(e,t,n){return _(m.arrowFunction).callFn([g(e),t,n])}l(vC,"arrowFunction");function Cg(e,t){if(e.length<1||t.length!==e.length-1)throw new Error("AssertionError: expected specific shape of args for strings/expressions in interpolation");let n=[];if(t.length===1&&e[0]===""&&e[1]==="")n.push(t[0]);else{let r;for(r=0;r<t.length;r++)n.push(g(e[r]),t[r]);n.push(g(e[r]))}return n}l(Cg,"collateInterpolationArgs");function Xi(e,t){let n=Cg(e.strings,e.expressions);return np(eB,[],n,t)}l(Xi,"interpolationToExpression");function j(e,t,n){let r=_(e).callFn(t,n);return Kt(new St(r,n))}l(j,"call");function EC(e,t,n){let r=[e];return t!==null&&r.push(t),j(m.conditional,r,n)}l(EC,"conditional");var ZR={constant:[m.textInterpolate,m.textInterpolate1,m.textInterpolate2,m.textInterpolate3,m.textInterpolate4,m.textInterpolate5,m.textInterpolate6,m.textInterpolate7,m.textInterpolate8],variable:m.textInterpolateV,mapping:l(e=>{if(e%2===0)throw new Error("Expected odd number of arguments");return(e-1)/2},"mapping")},eB={constant:[m.interpolate,m.interpolate1,m.interpolate2,m.interpolate3,m.interpolate4,m.interpolate5,m.interpolate6,m.interpolate7,m.interpolate8],variable:m.interpolateV,mapping:l(e=>{if(e%2===0)throw new Error("Expected odd number of arguments");return(e-1)/2},"mapping")},tB={constant:[m.pureFunction0,m.pureFunction1,m.pureFunction2,m.pureFunction3,m.pureFunction4,m.pureFunction5,m.pureFunction6,m.pureFunction7,m.pureFunction8],variable:m.pureFunctionV,mapping:l(e=>e,"mapping")};function np(e,t,n,r){let s=e.mapping(n.length),i=n.at(-1);if(n.length>1&&i instanceof ct&&i.value===""&&n.pop(),s<e.constant.length)return _(e.constant[s]).callFn([...t,...n],r);if(e.variable!==null)return _(e.variable).callFn([...t,K(n)],r);throw new Error("AssertionError: unable to call variadic function")}l(np,"callVariadicInstructionExpr");function SC(e,t,n,r){return Kt(np(e,t,n,r).toStmt())}l(SC,"callVariadicInstruction");function yC(e){wa(e.root,null)}l(yC,"generateVariables");function wa(e,t){let n=af(e,t);for(let r of e.create)switch(r.kind){case d.ConditionalCreate:case d.ConditionalBranchCreate:case d.BoundaryErrorCreate:case d.Template:wa(e.job.views.get(r.xref),n);break;case d.Projection:r.fallbackView!==null&&wa(e.job.views.get(r.fallbackView),n);break;case d.RepeaterCreate:wa(e.job.views.get(r.xref),n),r.emptyView&&wa(e.job.views.get(r.emptyView),n),r.trackByOps!==null&&r.trackByOps.prepend(ui(e,n,!1));break;case d.Animation:case d.AnimationListener:case d.Listener:case d.TwoWayListener:r.handlerOps.prepend(ui(e,n,!0));break}e.create.prepend(ui(e,n,!1)),e.update.prepend(ui(e,n,!1));for(let r of e.functions)r.ops.prepend(ui(e,af(e,t),!0))}l(wa,"recursivelyProcessView");function af(e,t){let n={view:e.xref,viewContextVariable:{kind:Oe.Context,name:null,view:e.xref},contextVariables:new Map,aliases:e.aliases,references:[],letDeclarations:[],boundaryVariables:new Map,parent:t};for(let r of e.contextVariables.keys())n.contextVariables.set(r,{kind:Oe.Identifier,name:null,identifier:r,local:!1});for(let r of e.create)switch(r.kind){case d.ElementStart:case d.ConditionalCreate:case d.ConditionalBranchCreate:case d.Template:if(!Array.isArray(r.localRefs))throw new Error("AssertionError: expected localRefs to be an array");for(let a=0;a<r.localRefs.length;a++)n.references.push({name:r.localRefs[a].name,targetId:r.xref,targetSlot:r.handle,offset:a,variable:{kind:Oe.Identifier,name:null,identifier:r.localRefs[a].name,local:!1}});break;case d.BoundaryCreate:n.boundaryVariables.set(r.xref,{variable:{kind:Oe.BoundaryState,name:null,boundaryXref:r.xref},handle:r.handle});break;case d.DeclareLet:n.letDeclarations.push({targetId:r.xref,targetSlot:r.handle,variable:{kind:Oe.Identifier,name:null,identifier:r.declaredName,local:!1}});break;case d.BoundaryErrorCreate:let s=new og(r.boundaryXref),i=new ft(s,"error");for(let a of r.contextVariables)a.value==="$error"&&e.aliases.add({kind:Oe.Alias,name:null,identifier:a.name,expression:i});break}return n}l(af,"getScopeForView");function ui(e,t,n){let r=[];t.view!==e.xref&&r.push(Rn(e.job.allocateXrefId(),t.viewContextVariable,new Ex,Ot.None));let s=e.job.views.get(t.view);for(let[i,a]of s.contextVariables){let o=new Gi(t.view),c;a===Zx?c=o:typeof a=="number"?c=new An(o,g(a)):c=new ft(o,a),r.push(Rn(e.job.allocateXrefId(),t.contextVariables.get(i),c,Ot.None))}for(let i of s.aliases)r.push(Rn(e.job.allocateXrefId(),i,i.expression.clone(),Ot.AlwaysInline));for(let[i,{variable:a,handle:o}]of t.boundaryVariables)r.push(Rn(e.job.allocateXrefId(),a,kA(new La(o)),Ot.None));for(let i of t.references)r.push(Rn(e.job.allocateXrefId(),i.variable,new vx(i.targetId,i.targetSlot,i.offset),Ot.None));if(t.view!==e.xref||n)for(let i of t.letDeclarations)r.push(Rn(e.job.allocateXrefId(),i.variable,new cg(i.targetId,i.targetSlot),Ot.None));return t.parent!==null&&r.push(...ui(e,t.parent,!1)),r}l(ui,"generateVariablesInScopeForView");function wC(e){for(let t of e.units)for(let n of t.ops())Pe(n,r=>r instanceof Yd?g(e.addConst(r.expr)):r,G.None)}l(wC,"collectConstExpressions");var by="style.",Ay="class.",nB="style!",Cy="class!",_y="!important";function TC(e){for(let t of e.root.update)if(t.kind===d.Binding&&t.bindingKind===D.Property)if(t.name.endsWith(_y)&&(t.name=t.name.substring(0,t.name.length-_y.length)),t.name.startsWith(by)){t.bindingKind=D.StyleProperty,t.name=t.name.substring(by.length),xC(t.name)?t.name=Lu(t.name):t.name=bC(t.name);let{property:n,suffix:r}=Ic(t.name);t.name=n,t.unit=r}else t.name.startsWith(nB)?(t.bindingKind=D.StyleProperty,t.name="style"):t.name.startsWith(Ay)?(t.bindingKind=D.ClassName,t.name=Ic(t.name.substring(Ay.length)).property):t.name.startsWith(Cy)&&(t.bindingKind=D.ClassName,t.name=Ic(t.name.substring(Cy.length)).property)}l(TC,"parseHostStyleProperties");function xC(e){return e.startsWith("--")}l(xC,"isCssCustomProperty");function bC(e){return e.replace(/[a-z][A-Z]/g,t=>t.charAt(0)+"-"+t.charAt(1)).toLowerCase()}l(bC,"hyphenate$1");function Ic(e){let t=e.indexOf("!important");t!==-1&&(e=t>0?e.substring(0,t):"");let n=null,r=e,s=e.lastIndexOf(".");return s>0&&(n=e.slice(s+1),r=e.substring(0,s)),{property:r,suffix:n}}l(Ic,"parseProperty");function bl(e,t=!1){return je(Object.keys(e).map(n=>({key:n,quoted:t,value:e[n]})))}l(bl,"mapLiteral");var rB=class{static{l(this,"IcuSerializerVisitor")}visitText(e){return e.value}visitContainer(e){return e.children.map(t=>t.visit(this)).join("")}visitIcu(e){let t=Object.keys(e.cases).map(r=>`${r} {${e.cases[r].visit(this)}}`);return`{${e.expressionPlaceholder}, ${e.type}, ${t.join(" ")}}`}visitTagPlaceholder(e){return e.isVoid?this.formatPh(e.startName):`${this.formatPh(e.startName)}${e.children.map(t=>t.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitPlaceholder(e){return this.formatPh(e.name)}visitBlockPlaceholder(e){return`${this.formatPh(e.startName)}${e.children.map(t=>t.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitIcuPlaceholder(e,t){return this.formatPh(e.name)}formatPh(e){return`{${co(e,!1)}}`}},sB=new rB;function _g(e){return e.visit(sB)}l(_g,"serializeIcuNode");var ls=class{static{l(this,"NodeWithI18n")}sourceSpan;i18n;constructor(e,t){this.sourceSpan=e,this.i18n=t}},cs=class extends ls{static{l(this,"Text")}value;tokens;constructor(e,t,n,r){super(t,r),this.value=e,this.tokens=n}visit(e,t){return e.visitText(this,t)}},wi=class extends ls{static{l(this,"Expansion")}switchValue;type;cases;switchValueSourceSpan;constructor(e,t,n,r,s,i){super(r,i),this.switchValue=e,this.type=t,this.cases=n,this.switchValueSourceSpan=s}visit(e,t){return e.visitExpansion(this,t)}},rp=class{static{l(this,"ExpansionCase")}value;expression;sourceSpan;valueSourceSpan;expSourceSpan;constructor(e,t,n,r,s){this.value=e,this.expression=t,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=s}visit(e,t){return e.visitExpansionCase(this,t)}},Ti=class extends ls{static{l(this,"Attribute")}name;value;keySpan;valueSpan;valueTokens;constructor(e,t,n,r,s,i,a){super(n,a),this.name=e,this.value=t,this.keySpan=r,this.valueSpan=s,this.valueTokens=i}visit(e,t){return e.visitAttribute(this,t)}},AC=class{static{l(this,"StartTagComment")}value;type;sourceSpan;constructor(e,t,n){this.value=e,this.type=t,this.sourceSpan=n}visit(e,t){return e.visitStartTagComment?e.visitStartTagComment(this,t):void 0}},jt=class extends ls{static{l(this,"Element")}name;attrs;directives;children;isSelfClosing;startSourceSpan;endSourceSpan;isVoid;comments;constructor(e,t,n,r,s,i,a,o=null,c,u,p=[]){super(i,u),this.name=e,this.attrs=t,this.directives=n,this.children=r,this.isSelfClosing=s,this.startSourceSpan=a,this.endSourceSpan=o,this.isVoid=c,this.comments=p}visit(e,t){return e.visitElement(this,t)}},Yi=class{static{l(this,"Comment")}value;sourceSpan;constructor(e,t){this.value=e,this.sourceSpan=t}visit(e,t){return e.visitComment(this,t)}},Bn=class extends ls{static{l(this,"Block")}name;parameters;children;nameSpan;startSourceSpan;endSourceSpan;constructor(e,t,n,r,s,i,a=null,o){super(r,o),this.name=e,this.parameters=t,this.children=n,this.nameSpan=s,this.startSourceSpan=i,this.endSourceSpan=a}visit(e,t){return e.visitBlock(this,t)}},vt=class extends ls{static{l(this,"Component")}componentName;tagName;fullName;attrs;directives;children;isSelfClosing;startSourceSpan;endSourceSpan;comments;constructor(e,t,n,r,s,i,a,o,c,u=null,p,h=[]){super(o,p),this.componentName=e,this.tagName=t,this.fullName=n,this.attrs=r,this.directives=s,this.children=i,this.isSelfClosing=a,this.startSourceSpan=c,this.endSourceSpan=u,this.comments=h}visit(e,t){return e.visitComponent(this,t)}},Ng=class{static{l(this,"Directive")}name;attrs;sourceSpan;startSourceSpan;endSourceSpan;constructor(e,t,n,r,s=null){this.name=e,this.attrs=t,this.sourceSpan=n,this.startSourceSpan=r,this.endSourceSpan=s}visit(e,t){return e.visitDirective(this,t)}},of=class{static{l(this,"BlockParameter")}expression;sourceSpan;constructor(e,t){this.expression=e,this.sourceSpan=t}visit(e,t){return e.visitBlockParameter(this,t)}},lf=class{static{l(this,"LetDeclaration")}name;value;sourceSpan;nameSpan;valueSpan;constructor(e,t,n,r,s){this.name=e,this.value=t,this.sourceSpan=n,this.nameSpan=r,this.valueSpan=s}visit(e,t){return e.visitLetDeclaration(this,t)}};function M(e,t,n=null){let r=[],s=e.visit?i=>e.visit(i,n)||i.visit(e,n):i=>i.visit(e,n);return t.forEach(i=>{let a=s(i);a&&r.push(a)}),r}l(M,"visitAll");var iB=class{static{l(this,"RecursiveVisitor")}constructor(){}visitElement(e,t){this.visitChildren(t,n=>{n(e.attrs),n(e.directives),n(e.comments),n(e.children)})}visitAttribute(e,t){}visitStartTagComment(e,t){}visitText(e,t){}visitComment(e,t){}visitExpansion(e,t){return this.visitChildren(t,n=>{n(e.cases)})}visitExpansionCase(e,t){}visitBlock(e,t){this.visitChildren(t,n=>{n(e.parameters),n(e.children)})}visitBlockParameter(e,t){}visitLetDeclaration(e,t){}visitComponent(e,t){this.visitChildren(t,n=>{n(e.attrs),n(e.comments),n(e.children)})}visitDirective(e,t){this.visitChildren(t,n=>{n(e.attrs)})}visitChildren(e,t){let n=[],r=this;function s(i){i&&n.push(M(r,i,e))}return l(s,"visit"),t(s),Array.prototype.concat.apply([],n)}},Al={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:`
42
+ `,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:" ",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"},CC="\uE500";Al.ngsp=CC;var aB=class{static{l(this,"TokenizeResult")}tokens;errors;nonNormalizedIcuExpressions;constructor(e,t,n){this.tokens=e,this.errors=t,this.nonNormalizedIcuExpressions=n}};function _C(e,t,n,r={}){let s=new pB(new Ou(e,t),n,r);return s.tokenize(),new aB(RC(s.tokens),s.errors,s.nonNormalizedIcuExpressions)}l(_C,"tokenize");var oB=/\r\n?/g;function oi(e){return`Unexpected character "${e===rt?"EOF":String.fromCharCode(e)}"`}l(oi,"_unexpectedCharacterErrorMsg");function cf(e){return`Unknown entity "${e}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}l(cf,"_unknownEntityErrorMsg");function NC(e,t){return`Unable to parse entity "${t}" - ${e} character reference entities must end with ";"`}l(NC,"_unparsableEntityErrorMsg");var hu;(function(e){e.HEX="hexadecimal",e.DEC="decimal"})(hu||(hu={}));var lB=["@if","@else","@for","@switch","@case","@default","@empty","@defer","@placeholder","@loading","@boundary","@error","@content"],$o={start:"{{",end:"}}"},cB=/^default[^\S\r\n]+never/,uB=/^else[^\S\r\n]+if/,pB=class{static{l(this,"_Tokenizer")}_getTagDefinition;_cursor;_tokenizeIcu;_leadingTriviaCodePoints;_currentTokenStart=null;_currentTokenType=null;_expansionCaseStack=[];_openDirectiveCount=0;_inInterpolation=!1;_preserveLineEndings;_i18nNormalizeLineEndingsInICUs;_tokenizeBlocks;_tokenizeLet;_selectorlessEnabled;tokens=[];errors=[];nonNormalizedIcuExpressions=[];constructor(e,t,n){this._getTagDefinition=t,this._tokenizeIcu=n.tokenizeExpansionForms||!1,this._leadingTriviaCodePoints=n.leadingTriviaChars&&n.leadingTriviaChars.map(s=>s.codePointAt(0)||0);let r=n.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=n.escapedString?new hB(e,r):new BC(e,r),this._preserveLineEndings=n.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=n.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=n.tokenizeBlocks??!0,this._tokenizeLet=n.tokenizeLet??!0,this._selectorlessEnabled=n.selectorlessEnabled??!1;try{this._cursor.init()}catch(s){this.handleError(s)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(oB,`
43
+ `)}tokenize(){for(;this._cursor.peek()!==rt;){let e=this._cursor.clone();try{this._attemptCharCode(Ca)?this._attemptCharCode(hd)?this._attemptCharCode(Qn)?this._consumeCdata(e):this._attemptCharCode(Kc)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(en)?this._consumeTagClose(e):this._attemptCharCode(Sa)?this._consumeProcessingInstruction(e):this._consumeTagOpen(e):this._tokenizeLet&&this._cursor.peek()===ca&&!this._inInterpolation&&this._isLetStart()?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._isBlockStart()?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(Lt)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(t){this.handleError(t)}}this._beginToken(43),this._endToken([])}_getBlockName(){let e=!1,t=this._cursor.clone();this._attemptCharCodeUntilFn(r=>Fa(r)?!e:OC(r)?(e=!0,!1):!0);let n=this._cursor.getChars(t).trim();return uB.test(n)?n="else if":cB.test(n)&&(n="default never"),n}_consumeBlockStart(e){this._requireCharCode(ca),this._beginToken(25,e);let t=this._endToken([this._getBlockName()]);if(this._cursor.peek()===Rt)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(Ce),this._attemptCharCode(st))this._attemptCharCodeUntilFn(Ce);else{t.type=29;return}if(t.parts[0]==="default never"&&this._attemptCharCode(Wt)){this._beginToken(26),this._endToken([]),this._beginToken(27),this._endToken([]);return}this._attemptCharCode(yn)?(this._beginToken(26),this._endToken([])):this._isBlockStart()&&(t.parts[0]==="case"||t.parts[0]==="default")?(this._beginToken(26),this._endToken([]),this._beginToken(27),this._endToken([])):t.type=29}_consumeBlockEnd(e){this._beginToken(27,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(pf);this._cursor.peek()!==st&&this._cursor.peek()!==rt;){this._beginToken(28);let e=this._cursor.clone(),t=null,n=0;for(;this._cursor.peek()!==Wt&&this._cursor.peek()!==rt||t!==null;){let r=this._cursor.peek();if(r===Si)this._cursor.advance();else if(r===t)t=null;else if(t===null&&Na(r))t=r;else if(r===Rt&&t===null)n++;else if(r===st&&t===null){if(n===0)break;n>0&&n--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(pf)}}_consumeLetDeclaration(e){if(this._requireStr("@let"),this._beginToken(30,e),Fa(this._cursor.peek()))this._attemptCharCodeUntilFn(Ce);else{let r=this._endToken([this._cursor.getChars(e)]);r.type=33;return}let t=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(Ce),!this._attemptCharCode(pt)){t.type=33;return}this._attemptCharCodeUntilFn(r=>Ce(r)&&!_a(r)),this._consumeLetDeclarationValue(),this._cursor.peek()===Wt?(this._beginToken(32),this._cursor.advance(),this._endToken([])):(t.type=33,t.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),t=!1;return this._attemptCharCodeUntilFn(n=>kr(n)||n===Du||n===os||t&&nn(n)?(t=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();this._beginToken(31,e),this._attemptUntilIgnoreQuotes(t=>t===Wt),this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(LC(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===Lt){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(this._currentTokenStart===null)throw new k(this._cursor.getSpan(t),"Programming error - attempted to end a token when there was no start to the token");if(this._currentTokenType===null)throw new k(this._cursor.getSpan(this._currentTokenStart),"Programming error - attempted to end a token which has no token type");let n={type:this._currentTokenType,parts:e,sourceSpan:(t??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n}_createError(e,t){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let n=new k(t,e);return this._currentTokenStart=null,this._currentTokenType=null,n}handleError(e){if(e instanceof Ig&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof k)this.errors.push(e);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return DC(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(oi(this._cursor.peek()),this._cursor.getSpan(t))}_attemptStr(e){let t=e.length;if(this._cursor.charsLeft()<t)return!1;let n=this._cursor.clone();for(let r=0;r<t;r++)if(!this._attemptCharCode(e.charCodeAt(r)))return this._cursor=n,!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){let t=this._cursor.clone();if(!this._attemptStr(e))throw this._createError(oi(this._cursor.peek()),this._cursor.getSpan(t))}_attemptCharCodeUntilFn(e){for(;!e(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(e,t){let n=this._cursor.clone();if(this._attemptCharCodeUntilFn(e),this._cursor.diff(n)<t)throw this._createError(oi(this._cursor.peek()),this._cursor.getSpan(n))}_attemptUntilChar(e){for(;this._cursor.peek()!==e;)this._cursor.advance()}_attemptUntilIgnoreQuotes(e){for(;this._cursor.peek()!==rt;){let t=this._cursor.peek();if(e(t))break;Na(t)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(n=>n===Si?(this._cursor.advance(),!1):n===t)),this._cursor.advance()}}_readChar(){let e=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),e}_peekStr(e){let t=e.length;if(this._cursor.charsLeft()<t)return!1;let n=this._cursor.clone();for(let r=0;r<t;r++){if(n.peek()!==e.charCodeAt(r))return!1;n.advance()}return!0}_isBlockStart(){return this._cursor.peek()===ca&&lB.some(e=>this._peekStr(e))}_isLetStart(){return this._cursor.peek()===ca&&this._peekStr("@let")}_consumeEntity(e){this._beginToken(9);let t=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(eT)){let n=this._attemptCharCode(lT)||this._attemptCharCode(OO),r=this._cursor.clone();if(this._attemptCharCodeUntilFn(kC),this._cursor.peek()!=Wt){this._cursor.advance();let i=n?hu.HEX:hu.DEC;throw this._createError(NC(i,this._cursor.getChars(t)),this._cursor.getSpan())}let s=this._cursor.getChars(r);this._cursor.advance();try{let i=parseInt(s,n?16:10);this._endToken([String.fromCodePoint(i),this._cursor.getChars(t)])}catch{throw this._createError(cf(this._cursor.getChars(t)),this._cursor.getSpan())}}else{let n=this._cursor.clone();if(this._attemptCharCodeUntilFn(PC),this._cursor.peek()!=Wt)this._beginToken(e,t),this._cursor=n,this._endToken(["&"]);else{let r=this._cursor.getChars(n);this._cursor.advance();let s=Object.hasOwn(Al,r)&&Al[r];if(!s)throw this._createError(cf(r),this._cursor.getSpan(t));this._endToken([s,`&${r};`])}}}_consumeRawText(e,t){this._beginToken(e?6:7);let n=[];for(;;){let r=this._cursor.clone(),s=t();if(this._cursor=r,s)break;e&&this._cursor.peek()===Yc?(this._endToken([this._processCarriageReturns(n.join(""))]),n.length=0,this._consumeEntity(6),this._beginToken(6)):n.push(this._readChar())}this._endToken([this._processCarriageReturns(n.join(""))])}_consumeComment(e){this._beginToken(10,e),this._requireCharCode(Kc),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeCdata(e){this._beginToken(13,e),this._requireStr("CDATA["),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(14),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(19,e);let t=this._cursor.clone();this._attemptUntilChar(kt);let n=this._cursor.getChars(t);this._cursor.advance(),this._endToken([n])}_consumeProcessingInstruction(e){this._beginToken(42,e);let t=this._cursor.clone();this._attemptUntilIgnoreQuotes(s=>s===Sa||s===kt);let n=this._cursor.peek(),r=this._cursor.getChars(t);this._cursor.advance(),n===Sa&&this._requireCharCode(kt),this._endToken([r])}_consumePrefixAndName(e){let t=this._cursor.clone(),n="";for(;this._cursor.peek()!==zn&&!IC(this._cursor.peek());)this._cursor.advance();let r;this._cursor.peek()===zn?(n=this._cursor.getChars(t),this._cursor.advance(),r=this._cursor.clone()):r=t,this._requireCharCodeUntilFn(e,n===""?0:1);let s=this._cursor.getChars(r);return[n,s]}_consumeSingleLineComment(e){let t=this._cursor.clone();this._attemptCharCodeUntilFn(s=>_a(s)||s===rt);let n=this._cursor.clone(),r=n.getChars(t);this._beginToken(12,e),this._endToken([r,"single"],n),this._attemptCharCodeUntilFn(Ce)}_consumeMultiLineComment(e){let t=this._cursor.clone();this._attemptCharCodeUntilFn(i=>{if(i===rt)return!0;if(i===dd){let a=this._cursor.clone();return a.advance(),a.peek()===en}return!1});let n=this._cursor.clone(),r=n.getChars(t),s=n;this._attemptStr("*/")&&(s=this._cursor.clone(),this._attemptCharCodeUntilFn(Ce)),this._beginToken(12,e),this._endToken([r,"multi"],s)}_consumeTagOpen(e){let t,n,r,s;try{if(this._selectorlessEnabled&&Yo(this._cursor.peek()))s=this._consumeComponentOpenStart(e),[r,n,t]=s.parts,n&&(r+=`:${n}`),t&&(r+=`:${t}`),this._attemptCharCodeUntilFn(Ce);else{if(!kr(this._cursor.peek()))throw this._createError(oi(this._cursor.peek()),this._cursor.getSpan(e));s=this._consumeTagOpenStart(e),n=s.parts[0],t=r=s.parts[1],this._attemptCharCodeUntilFn(Ce)}for(;;){let a=this._cursor.clone();if(this._attemptStr("//")){this._consumeSingleLineComment(a);continue}if(this._attemptStr("/*")){this._consumeMultiLineComment(a);continue}if(df(this._cursor.peek()))break;if(this._selectorlessEnabled&&this._cursor.peek()===ca){let o=this._cursor.clone(),c=o.clone();c.advance(),Yo(c.peek())&&this._consumeDirective(o,c)}else this._consumeAttribute()}s.type===34?this._consumeComponentOpenEnd():this._consumeTagOpenEnd()}catch(a){if(a instanceof k){s?s.type=s.type===34?38:4:(this._beginToken(5,e),this._endToken(["<"]));return}throw a}let i=this._getTagDefinition(t).getContentType(n);i===wn.RAW_TEXT?this._consumeRawTextWithTagClose(s,r,!1):i===wn.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(s,r,!0)}_consumeRawTextWithTagClose(e,t,n){this._consumeRawText(n,()=>!this._attemptCharCode(Ca)||!this._attemptCharCode(en)||(this._attemptCharCodeUntilFn(Ce),!this._attemptStrCaseInsensitive(t))?!1:(this._attemptCharCodeUntilFn(Ce),this._attemptCharCode(kt))),this._beginToken(e.type===34?37:3),this._requireCharCodeUntilFn(r=>r===kt,3),this._cursor.advance(),this._endToken(e.parts)}_consumeTagOpenStart(e){this._beginToken(0,e);let t=this._consumePrefixAndName(Wr);return this._endToken(t)}_consumeComponentOpenStart(e){this._beginToken(34,e);let t=this._consumeComponentName();return this._endToken(t)}_consumeComponentName(){let e=this._cursor.clone();for(;hf(this._cursor.peek());)this._cursor.advance();let t=this._cursor.getChars(e),n="",r="";return this._cursor.peek()===zn&&(this._cursor.advance(),[n,r]=this._consumePrefixAndName(Wr)),[t,n,r]}_consumeAttribute(){this._consumeAttributeName(),this._attemptCharCodeUntilFn(Ce),this._attemptCharCode(pt)&&(this._attemptCharCodeUntilFn(Ce),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Ce)}_consumeAttributeName(){let e=this._cursor.peek();if(e===gl||e===ml)throw this._createError(oi(e),this._cursor.getSpan());this._beginToken(15);let t;if(this._openDirectiveCount>0){let r=0;t=l(s=>{if(this._openDirectiveCount>0){if(s===Rt)r++;else if(s===st){if(r===0)return!0;r--}}return Wr(s)},"nameEndPredicate")}else if(e===Qn){let r=0;t=l(s=>(s===Qn?r++:s===wr&&r--,r<=0?Wr(s):_a(s)),"nameEndPredicate")}else t=Wr;let n=this._consumePrefixAndName(t);this._endToken(n)}_consumeAttributeValue(){if(this._cursor.peek()===gl||this._cursor.peek()===ml){let e=this._cursor.peek();this._consumeQuote(e);let t=l(()=>this._cursor.peek()===e,"endPredicate");this._consumeWithInterpolation(17,18,t,t),this._consumeQuote(e)}else{let e=l(()=>Wr(this._cursor.peek()),"endPredicate");this._consumeWithInterpolation(17,18,e,e)}}_consumeQuote(e){this._beginToken(16),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(en)?2:1;this._beginToken(e),this._requireCharCode(kt),this._endToken([])}_consumeComponentOpenEnd(){let e=this._attemptCharCode(en)?36:35;this._beginToken(e),this._requireCharCode(kt),this._endToken([])}_consumeTagClose(e){if(this._selectorlessEnabled){let n=e.clone();for(;n.peek()!==kt&&!Yo(n.peek());)n.advance();if(Yo(n.peek())){this._beginToken(37,e);let r=this._consumeComponentName();this._attemptCharCodeUntilFn(Ce),this._requireCharCode(kt),this._endToken(r);return}}this._beginToken(3,e),this._attemptCharCodeUntilFn(Ce);let t=this._consumePrefixAndName(Wr);this._attemptCharCodeUntilFn(Ce),this._requireCharCode(kt),this._endToken(t)}_consumeExpansionFormStart(){this._beginToken(20),this._requireCharCode(yn),this._endToken([]),this._expansionCaseStack.push(20),this._beginToken(7);let e=this._readUntil(xt),t=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([t]);else{let r=this._endToken([e]);t!==e&&this.nonNormalizedIcuExpressions.push(r)}this._requireCharCode(xt),this._attemptCharCodeUntilFn(Ce),this._beginToken(7);let n=this._readUntil(xt);this._endToken([n]),this._requireCharCode(xt),this._attemptCharCodeUntilFn(Ce)}_consumeExpansionCaseStart(){this._beginToken(21);let e=this._readUntil(yn).trim();this._endToken([e]),this._attemptCharCodeUntilFn(Ce),this._beginToken(22),this._requireCharCode(yn),this._endToken([]),this._attemptCharCodeUntilFn(Ce),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(Lt),this._endToken([]),this._attemptCharCodeUntilFn(Ce),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(Lt),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,t,n,r){this._beginToken(e);let s=[];for(;!n();){let i=this._cursor.clone();this._attemptStr($o.start)?(this._endToken([this._processCarriageReturns(s.join(""))],i),s.length=0,this._consumeInterpolation(t,i,r),this._beginToken(e)):this._cursor.peek()===Yc?(this._endToken([this._processCarriageReturns(s.join(""))]),s.length=0,this._consumeEntity(e),this._beginToken(e)):s.push(this._readChar())}this._inInterpolation=!1,this._endToken([this._processCarriageReturns(s.join(""))])}_consumeInterpolation(e,t,n){let r=[];this._beginToken(e,t),r.push($o.start);let s=this._cursor.clone(),i=null,a=!1;for(;this._cursor.peek()!==rt&&(n===null||!n());){let o=this._cursor.clone();if(this._isTagStart()){this._cursor=o,r.push(this._getProcessedChars(s,o)),this._endToken(r);return}if(i===null)if(this._attemptStr($o.end)){r.push(this._getProcessedChars(s,o)),r.push($o.end),this._endToken(r);return}else this._attemptStr("//")&&(a=!0);let c=this._cursor.peek();this._cursor.advance(),c===Si?this._cursor.advance():c===i?i=null:!a&&i===null&&Na(c)&&(i=c)}r.push(this._getProcessedChars(s,this._cursor)),this._endToken(r)}_consumeDirective(e,t){for(this._requireCharCode(ca),this._cursor.advance();hf(this._cursor.peek());)this._cursor.advance();this._beginToken(39,e);let n=this._cursor.getChars(t);if(this._endToken([n]),this._attemptCharCodeUntilFn(Ce),this._cursor.peek()===Rt){for(this._openDirectiveCount++,this._beginToken(40),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(Ce);!df(this._cursor.peek())&&this._cursor.peek()!==st;)this._consumeAttribute();if(this._attemptCharCodeUntilFn(Ce),this._openDirectiveCount--,this._cursor.peek()!==st){if(this._cursor.peek()===kt||this._cursor.peek()===en)return;throw this._createError(oi(this._cursor.peek()),this._cursor.getSpan(e))}this._beginToken(41),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(Ce)}}_getProcessedChars(e,t){return this._processCarriageReturns(t.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===rt||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===Lt&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._isLetStart()||this._cursor.peek()===Lt))}_isTagStart(){if(this._cursor.peek()===Ca){let e=this._cursor.clone();e.advance();let t=e.peek();if(Ii<=t&&t<=Fl||as<=t&&t<=ro||t===en||t===hd||t===Sa)return!0}return!1}_readUntil(e){let t=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(t)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===22}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===20}isExpansionFormStart(){if(this._cursor.peek()!==yn)return!1;let e=this._cursor.clone(),t=this._attemptStr($o.start);return this._cursor=e,!t}};function Ce(e){return!Fa(e)||e===rt}l(Ce,"isNotWhitespace");function Wr(e){return Fa(e)||e===kt||e===Ca||e===en||e===gl||e===ml||e===pt||e===rt}l(Wr,"isNameEnd");function IC(e){return(e<Ii||Fl<e)&&(e<as||ro<e)&&(e<_m||e>nT)}l(IC,"isPrefixEnd");function kC(e){return e===Wt||e===rt||!uT(e)}l(kC,"isDigitEntityEnd");function PC(e){return e===Wt||e===rt||!(kr(e)||nn(e))}l(PC,"isNamedEntityEnd");function LC(e){return e!==Lt}l(LC,"isExpansionCaseStart");function DC(e,t){return uf(e)===uf(t)}l(DC,"compareCharCodeCaseInsensitive");function uf(e){return e>=Ii&&e<=Fl?e-Ii+as:e}l(uf,"toUpperCaseCharCode");function OC(e){return kr(e)||nn(e)||e===os}l(OC,"isBlockNameChar");function pf(e){return e!==Wt&&Ce(e)}l(pf,"isBlockParameterChar");function Yo(e){return e===os||e>=as&&e<=ro}l(Yo,"isSelectorlessNameStart");function hf(e){return kr(e)||nn(e)||e===os}l(hf,"isSelectorlessNameChar");function df(e){return e===en||e===kt||e===Ca||e===rt}l(df,"isAttributeTerminator");function RC(e){let t=[],n;for(let r=0;r<e.length;r++){let s=e[r];n&&n.type===5&&s.type===5||n&&n.type===17&&s.type===17?(n.parts[0]+=s.parts[0],n.sourceSpan.end=s.sourceSpan.end):(n=s,t.push(n))}return t}l(RC,"mergeTextTokens");var BC=class ff{static{l(this,"PlainCharacterCursor")}state;file;input;end;constructor(t,n){if(t instanceof ff){this.file=t.file,this.input=t.input,this.end=t.end;let r=t.state;this.state={peek:r.peek,offset:r.offset,line:r.line,column:r.column}}else{if(!n)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=t,this.input=t.content,this.end=n.endPos,this.state={peek:-1,offset:n.startPos,line:n.startLine,column:n.startCol}}}clone(){return new ff(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(t){return this.state.offset-t.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(t,n){t=t||this;let r=t;if(n)for(;this.diff(t)>0&&n.indexOf(t.peek())!==-1;)r===t&&(t=t.clone()),t.advance();let s=this.locationFromCursor(t),i=this.locationFromCursor(this),a=r!==t?this.locationFromCursor(r):s;return new F(s,i,a)}getChars(t){return this.input.substring(t.state.offset,this.state.offset)}charAt(t){return this.input.charCodeAt(t)}advanceState(t){if(t.offset>=this.end)throw this.state=t,new Ig('Unexpected character "EOF"',this);let n=this.charAt(t.offset);n===Ei?(t.line++,t.column=0):_a(n)||t.column++,t.offset++,this.updatePeek(t)}updatePeek(t){t.peek=t.offset>=this.end?rt:this.charAt(t.offset)}locationFromCursor(t){return new $a(t.file,t.state.offset,t.state.line,t.state.column)}},hB=class mf extends BC{static{l(this,"EscapedCharacterCursor")}internalState;constructor(t,n){t instanceof mf?(super(t),this.internalState={...t.internalState}):(super(t,n),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new mf(this)}getChars(t){let n=t.clone(),r="";for(;n.internalState.offset<this.internalState.offset;)r+=String.fromCodePoint(n.peek()),n.advance();return r}processEscapeSequence(){let t=l(()=>this.internalState.peek,"peek");if(t()===Si)if(this.internalState={...this.state},this.advanceState(this.internalState),t()===rT)this.state.peek=Ei;else if(t()===sT)this.state.peek=Cm;else if(t()===oT)this.state.peek=Qw;else if(t()===iT)this.state.peek=Am;else if(t()===BO)this.state.peek=IO;else if(t()===Nm)this.state.peek=Jw;else if(t()===aT)if(this.advanceState(this.internalState),t()===yn){this.advanceState(this.internalState);let n=this.clone(),r=0;for(;t()!==Lt;)this.advanceState(this.internalState),r++;this.state.peek=this.decodeHexDigits(n,r)}else{let n=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(n,4)}else if(t()===lT){this.advanceState(this.internalState);let n=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(n,2)}else if(md(t())){let n="",r=0,s=this.clone();for(;md(t())&&r<3;)s=this.clone(),n+=String.fromCodePoint(t()),this.advanceState(this.internalState),r++;this.state.peek=parseInt(n,8),this.internalState=s.internalState}else _a(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(t,n){let r=this.input.slice(t.internalState.offset,t.internalState.offset+n),s=parseInt(r,16);if(isNaN(s))throw t.state=t.internalState,new Ig("Invalid hexadecimal escape sequence",t);return s}},Ig=class extends Error{static{l(this,"CursorError")}msg;cursor;constructor(e,t){super(e),this.msg=e,this.cursor=t,Object.setPrototypeOf(this,new.target.prototype)}},tt=class MC extends k{static{l(this,"TreeError")}elementName;static create(t,n,r){return new MC(t,n,r)}constructor(t,n,r){super(n,r),this.elementName=t}},ec=class{static{l(this,"ParseTreeResult")}rootNodes;errors;constructor(e,t){this.rootNodes=e,this.errors=t}},FC=class{static{l(this,"Parser")}getTagDefinition;constructor(t){this.getTagDefinition=t}parse(t,n,r){let s=_C(t,n,this.getTagDefinition,r),i=new dB(s.tokens,this.getTagDefinition);return i.build(),new ec(i.rootNodes,[...s.errors,...i.errors])}},dB=class $C{static{l(this,"_TreeBuilder")}tokens;tagDefinitionResolver;_index=-1;_peek;_containerStack=[];rootNodes=[];errors=[];constructor(t,n){this.tokens=t,this.tagDefinitionResolver=n,this._advance()}build(){for(;this._peek.type!==43;)this._peek.type===0||this._peek.type===4?this._consumeElementStartTag(this._advance()):this._peek.type===3?this._consumeElementEndTag(this._advance()):this._peek.type===13?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===20?this._consumeExpansion(this._advance()):this._peek.type===25?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===27?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===30?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===33?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._peek.type===34||this._peek.type===38?this._consumeComponentStartTag(this._advance()):this._peek.type===37?this._consumeComponentEndTag(this._advance()):this._advance();for(let t of this._containerStack)t instanceof Bn&&this.errors.push(tt.create(t.name,t.sourceSpan,`Unclosed block "${t.name}"`))}_advance(){let t=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],t}_advanceIf(t){return this._peek.type===t?this._advance():null}_consumeCdata(t){this._consumeText(this._advance()),this._advanceIf(14)}_consumeComment(t){let n=this._advanceIf(7),r=this._advanceIf(11),s=n!=null?n.parts[0].trim():null,i=r==null?t.sourceSpan:new F(t.sourceSpan.start,r.sourceSpan.end,t.sourceSpan.fullStart);this._addToParent(new Yi(s,i))}_consumeExpansion(t){let n=this._advance(),r=this._advance(),s=[];for(;this._peek.type===21;){let a=this._parseExpansionCase();if(!a)return;s.push(a)}if(this._peek.type!==24){this.errors.push(tt.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let i=new F(t.sourceSpan.start,this._peek.sourceSpan.end,t.sourceSpan.fullStart);this._addToParent(new wi(n.parts[0],r.parts[0],s,i,n.sourceSpan)),this._advance()}_parseExpansionCase(){let t=this._advance();if(this._peek.type!==22)return this.errors.push(tt.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let n=this._advance(),r=this._collectExpansionExpTokens(n);if(!r)return null;let s=this._advance();r.push({type:43,parts:[],sourceSpan:s.sourceSpan});let i=new $C(r,this.tagDefinitionResolver);if(i.build(),i.errors.length>0)return this.errors=this.errors.concat(i.errors),null;let a=new F(t.sourceSpan.start,s.sourceSpan.end,t.sourceSpan.fullStart),o=new F(n.sourceSpan.start,s.sourceSpan.end,n.sourceSpan.fullStart);return new rp(t.parts[0],i.rootNodes,a,t.sourceSpan,o)}_collectExpansionExpTokens(t){let n=[],r=[22];for(;;){if((this._peek.type===20||this._peek.type===22)&&r.push(this._peek.type),this._peek.type===23)if(gf(r,22)){if(r.pop(),r.length===0)return n}else return this.errors.push(tt.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===24)if(gf(r,20))r.pop();else return this.errors.push(tt.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===43)return this.errors.push(tt.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.push(this._advance())}}_consumeText(t){let n=[t],r=t.sourceSpan,s=t.parts[0];if(s.length>0&&s[0]===`
44
+ `){let i=this._getContainer();i!=null&&i.children.length===0&&this._getTagDefinition(i)?.ignoreFirstLf&&(s=s.substring(1),n[0]={type:t.type,sourceSpan:t.sourceSpan,parts:[s]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)t=this._advance(),n.push(t),t.type===8?s+=t.parts.join("").replace(/&([^;]+);/g,vf):t.type===9?s+=t.parts[0]:s+=t.parts.join("");if(s.length>0){let i=t.sourceSpan;this._addToParent(new cs(s,new F(r.start,i.end,r.fullStart,r.details),n))}}_closeVoidElement(){let t=this._getContainer();t!==null&&this._getTagDefinition(t)?.isVoid&&this._containerStack.pop()}_consumeElementStartTag(t){let n=[],r=[],s=[];this._consumeAttributesAndDirectives(n,r,s);let i=this._getElementFullName(t,this._getClosestElementLikeParent()),a=this._getTagDefinition(i),o=!1;this._peek.type===2?(this._advance(),o=!0,a?.canSelfClose||wl(i)!==null||a?.isVoid||this.errors.push(tt.create(i,t.sourceSpan,`Only void, custom and foreign elements can be self closed "${t.parts[1]}"`))):this._peek.type===1&&(this._advance(),o=!1);let c=this._peek.sourceSpan.fullStart,u=new F(t.sourceSpan.start,c,t.sourceSpan.fullStart),p=new F(t.sourceSpan.start,c,t.sourceSpan.fullStart),h=new jt(i,n,r,[],o,u,p,void 0,a?.isVoid??!1,void 0,s),f=this._getContainer(),v=f!==null&&!!this._getTagDefinition(f)?.isClosedByChild(h.name);this._pushContainer(h,v),o?this._popContainer(i,jt,u):t.type===4&&(this._popContainer(i,jt,null),this.errors.push(tt.create(i,u,`Opening tag "${i}" not terminated.`)))}_consumeComponentStartTag(t){let n=t.parts[0],r=[],s=[],i=[];this._consumeAttributesAndDirectives(r,s,i);let a=this._getClosestElementLikeParent(),o=this._getComponentTagName(t,a),c=this._getComponentFullName(t,a),u=this._peek.type===36;this._advance();let p=this._peek.sourceSpan.fullStart,h=new F(t.sourceSpan.start,p,t.sourceSpan.fullStart),f=new F(t.sourceSpan.start,p,t.sourceSpan.fullStart),v=new vt(n,o,c,r,s,[],u,h,f,void 0,void 0,i),E=this._getContainer(),T=E!==null&&v.tagName!==null&&!!this._getTagDefinition(E)?.isClosedByChild(v.tagName);this._pushContainer(v,T),u?this._popContainer(c,vt,h):t.type===38&&(this._popContainer(c,vt,null),this.errors.push(tt.create(c,h,`Opening tag "${c}" not terminated.`)))}_consumeAttributesAndDirectives(t,n,r){for(;this._peek.type===15||this._peek.type===39||this._peek.type===12;)if(this._peek.type===39)n.push(this._consumeDirective(this._peek));else if(this._peek.type===15)t.push(this._consumeAttr(this._advance()));else{let s=this._advance();r.push(new AC(s.parts[0],s.parts[1],s.sourceSpan))}}_consumeComponentEndTag(t){let n=this._getComponentFullName(t,this._getClosestElementLikeParent());if(!this._popContainer(n,vt,t.sourceSpan)){let r=this._containerStack[this._containerStack.length-1],s;r instanceof vt&&r.componentName===t.parts[0]?s=`, did you mean "${r.fullName}"?`:s=". It may happen when the tag has already been closed by another tag.";let i=`Unexpected closing tag "${n}"${s}`;this.errors.push(tt.create(n,t.sourceSpan,i))}}_getTagDefinition(t){return typeof t=="string"?this.tagDefinitionResolver(t):t instanceof jt?this.tagDefinitionResolver(t.name):t instanceof vt&&t.tagName!==null?this.tagDefinitionResolver(t.tagName):null}_pushContainer(t,n){n&&this._containerStack.pop(),this._addToParent(t),this._containerStack.push(t)}_consumeElementEndTag(t){let n=this._getElementFullName(t,this._getClosestElementLikeParent());if(this._getTagDefinition(n)?.isVoid)this.errors.push(tt.create(n,t.sourceSpan,`Void elements do not have end tags "${t.parts[1]}"`));else if(!this._popContainer(n,jt,t.sourceSpan)){let r=`Unexpected closing tag "${n}". 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(tt.create(n,t.sourceSpan,r))}}_popContainer(t,n,r){let s=!1;for(let i=this._containerStack.length-1;i>=0;i--){let a=this._containerStack[i];if(((a instanceof vt?a.fullName:a.name)===t||t===null)&&a instanceof n)return a.endSourceSpan=r,a.sourceSpan.end=r!==null?r.end:a.sourceSpan.end,this._containerStack.splice(i,this._containerStack.length-i),!s;(a instanceof Bn||!this._getTagDefinition(a)?.closedByParent)&&(s=!0)}return!1}_consumeAttr(t){let n=Pa(t.parts[0],t.parts[1]),r=t.sourceSpan.end;this._peek.type===16&&this._advance();let s="",i=[],a,o;if(this._peek.type===17)for(a=this._peek.sourceSpan,o=this._peek.sourceSpan.end;this._peek.type===17||this._peek.type===18||this._peek.type===9;){let p=this._advance();i.push(p),p.type===18?s+=p.parts.join("").replace(/&([^;]+);/g,vf):p.type===9?s+=p.parts[0]:s+=p.parts.join(""),o=r=p.sourceSpan.end}this._peek.type===16&&(r=this._advance().sourceSpan.end);let u=a&&o&&new F(a.start,o,a.fullStart);return new Ti(n,s,new F(t.sourceSpan.start,r,t.sourceSpan.fullStart),t.sourceSpan,u,i.length>0?i:void 0,void 0)}_consumeDirective(t){let n=[],r=t.sourceSpan.end,s=null;if(this._advance(),this._peek.type===40){for(r=this._peek.sourceSpan.end,this._advance();this._peek.type===15;)n.push(this._consumeAttr(this._advance()));this._peek.type===41?(s=this._peek.sourceSpan,this._advance()):this.errors.push(tt.create(null,t.sourceSpan,"Unterminated directive definition"))}let i=new F(t.sourceSpan.start,r,t.sourceSpan.fullStart),a=new F(i.start,s===null?t.sourceSpan.end:s.end,i.fullStart);return new Ng(t.parts[0],n,a,i,s)}_consumeBlockOpen(t){let n=[];for(;this._peek.type===28;){let o=this._advance();n.push(new of(o.parts[0],o.sourceSpan))}this._peek.type===26&&this._advance();let r=this._peek.sourceSpan.fullStart,s=new F(t.sourceSpan.start,r,t.sourceSpan.fullStart),i=new F(t.sourceSpan.start,r,t.sourceSpan.fullStart),a=new Bn(t.parts[0],n,[],s,t.sourceSpan,i);this._pushContainer(a,!1)}_consumeBlockClose(t){let n=this._containerStack.length,r=this._containerStack[n-1];if(!this._popContainer(null,Bn,t.sourceSpan)){if(this._containerStack.length<n){let s=r instanceof vt?r.fullName:r.name;this.errors.push(tt.create(null,t.sourceSpan,`Unexpected closing block. The block may have been closed earlier. Did you forget to close the <${s}> element? If you meant to write the \`}\` character, you should use the "&#125;" HTML entity instead.`));return}this.errors.push(tt.create(null,t.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the `}` character, you should use the "&#125;" HTML entity instead.'))}}_consumeIncompleteBlock(t){let n=[];for(;this._peek.type===28;){let o=this._advance();n.push(new of(o.parts[0],o.sourceSpan))}let r=this._peek.sourceSpan.fullStart,s=new F(t.sourceSpan.start,r,t.sourceSpan.fullStart),i=new F(t.sourceSpan.start,r,t.sourceSpan.fullStart),a=new Bn(t.parts[0],n,[],s,t.sourceSpan,i);this._pushContainer(a,!1),this._popContainer(null,Bn,null),this.errors.push(tt.create(t.parts[0],s,`Incomplete block "${t.parts[0]}". If you meant to write the @ character, you should use the "&#64;" HTML entity instead.`))}_consumeLet(t){let n=t.parts[0],r,s;if(this._peek.type!==31){this.errors.push(tt.create(t.parts[0],t.sourceSpan,`Invalid @let declaration "${n}". Declaration must have a value.`));return}else r=this._advance();if(this._peek.type!==32){this.errors.push(tt.create(t.parts[0],t.sourceSpan,`Unterminated @let declaration "${n}". Declaration must be terminated with a semicolon.`));return}else s=this._advance();let i=s.sourceSpan.end,a=new F(t.sourceSpan.start,i,t.sourceSpan.fullStart),o=t.sourceSpan.toString().lastIndexOf(n),c=t.sourceSpan.start.moveBy(o),u=new F(c,t.sourceSpan.end),p=new lf(n,r.parts[0],a,u,r.sourceSpan);this._addToParent(p)}_consumeIncompleteLet(t){let n=t.parts[0]??"",r=n?` "${n}"`:"";if(n.length>0){let s=t.sourceSpan.toString().lastIndexOf(n),i=t.sourceSpan.start.moveBy(s),a=new F(i,t.sourceSpan.end),o=new F(t.sourceSpan.start,t.sourceSpan.start.moveBy(0)),c=new lf(n,"",t.sourceSpan,a,o);this._addToParent(c)}this.errors.push(tt.create(t.parts[0],t.sourceSpan,`Incomplete @let declaration${r}. @let declarations must be written as \`@let <name> = <value>;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestElementLikeParent(){for(let t=this._containerStack.length-1;t>-1;t--){let n=this._containerStack[t];if(n instanceof jt||n instanceof vt)return n}return null}_addToParent(t){let n=this._getContainer();n===null?this.rootNodes.push(t):n.children.push(t)}_getElementFullName(t,n){let r=this._getPrefix(t,n);return Pa(r,t.parts[1])}_getComponentFullName(t,n){let r=t.parts[0],s=this._getComponentTagName(t,n);return s===null?r:s.startsWith(":")?r+s:`${r}:${s}`}_getComponentTagName(t,n){let r=this._getPrefix(t,n),s=t.parts[2];return!r&&!s?null:!r&&s?s:Pa(r,s||"ng-component")}_getPrefix(t,n){let r,s;if(t.type===34||t.type===38||t.type===37?(r=t.parts[1],s=t.parts[2]):(r=t.parts[0],s=t.parts[1]),r=r||this._getTagDefinition(s)?.implicitNamespacePrefix||"",!r&&n){let i=n instanceof jt?n.name:n.tagName;if(i!==null){let a=ot(i)[1],o=this._getTagDefinition(a);o!==null&&!o.preventNamespaceInheritance&&(r=wl(i))}}return r}};function gf(e,t){return e.length>0&&e[e.length-1]===t}l(gf,"lastOnStack");function vf(e,t){return Al[t]!==void 0?Al[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}l(vf,"decodeEntity");var UC="ngPreserveWhitespaces",Ny=new Set(["pre","template","textarea","script","style"]),VC=` \f
45
+ \r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`,fB=new RegExp(`[^${VC}]`),mB=new RegExp(`[${VC}]{2,}`,"g");function Ef(e){return e.some(t=>t.name===UC)}l(Ef,"hasPreserveWhitespacesAttr");function kg(e){return e.replace(new RegExp(CC,"g")," ")}l(kg,"replaceNgsp");var Pg=class{static{l(this,"WhitespaceVisitor")}preserveSignificantWhitespace;originalNodeMap;requireContext;icuExpansionDepth=0;constructor(e,t,n=!0){this.preserveSignificantWhitespace=e,this.originalNodeMap=t,this.requireContext=n}visitElement(e,t){if(Ny.has(e.name)||Ef(e.attrs)){let r=new jt(e.name,vn(this,e.attrs),vn(this,e.directives),e.children,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid,e.i18n,e.comments);return this.originalNodeMap?.set(r,e),r}let n=new jt(e.name,e.attrs,e.directives,vn(this,e.children),e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid,e.i18n,e.comments);return this.originalNodeMap?.set(n,e),n}visitAttribute(e,t){return e.name!==UC?e:null}visitText(e,t){let n=e.value.match(fB),r=t&&(t.prev instanceof wi||t.next instanceof wi);if(this.icuExpansionDepth>0&&this.preserveSignificantWhitespace)return e;if(n||r){let i=e.tokens.map(u=>u.type===5?WC(u):u);if(!this.preserveSignificantWhitespace&&i.length>0){let u=i[0];i.splice(0,1,qC(u,t));let p=i[i.length-1];i.splice(i.length-1,1,HC(p,t))}let a=Dg(e.value),o=this.preserveSignificantWhitespace?a:jC(a,t),c=new cs(o,e.sourceSpan,i,e.i18n);return this.originalNodeMap?.set(c,e),c}return null}visitComment(e,t){return e}visitExpansion(e,t){this.icuExpansionDepth++;let n;try{n=new wi(e.switchValue,e.type,vn(this,e.cases),e.sourceSpan,e.switchValueSourceSpan,e.i18n)}finally{this.icuExpansionDepth--}return this.originalNodeMap?.set(n,e),n}visitExpansionCase(e,t){let n=new rp(e.value,vn(this,e.expression),e.sourceSpan,e.valueSourceSpan,e.expSourceSpan);return this.originalNodeMap?.set(n,e),n}visitBlock(e,t){let n=new Bn(e.name,e.parameters,vn(this,e.children),e.sourceSpan,e.nameSpan,e.startSourceSpan,e.endSourceSpan);return this.originalNodeMap?.set(n,e),n}visitBlockParameter(e,t){return e}visitLetDeclaration(e,t){return e}visitComponent(e,t){if(e.tagName&&Ny.has(e.tagName)||Ef(e.attrs)){let r=new vt(e.componentName,e.tagName,e.fullName,vn(this,e.attrs),vn(this,e.directives),e.children,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n,e.comments);return this.originalNodeMap?.set(r,e),r}let n=new vt(e.componentName,e.tagName,e.fullName,e.attrs,e.directives,vn(this,e.children),e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n,e.comments);return this.originalNodeMap?.set(n,e),n}visitDirective(e,t){return e}visit(e,t){if(this.requireContext&&!t)throw new Error("WhitespaceVisitor requires context. Visit via `visitAllWithSiblings` to get this context.");return!1}};function qC(e,t){return e.type!==5||!!t?.prev?e:Lg(e,r=>r.trimStart())}l(qC,"trimLeadingWhitespace");function HC(e,t){return e.type!==5||!!t?.next?e:Lg(e,r=>r.trimEnd())}l(HC,"trimTrailingWhitespace");function jC(e,t){let n=!t?.prev,r=!t?.next,s=n?e.trimStart():e;return r?s.trimEnd():s}l(jC,"trimLeadingAndTrailingWhitespace");function WC({type:e,parts:t,sourceSpan:n}){return{type:e,parts:[Dg(t[0])],sourceSpan:n}}l(WC,"createWhitespaceProcessedTextToken");function Lg({type:e,parts:t,sourceSpan:n},r){return{type:e,parts:[r(t[0])],sourceSpan:n}}l(Lg,"transformTextToken");function Dg(e){return kg(e).replace(mB," ")}l(Dg,"processWhitespace");function vn(e,t){let n=[];return t.forEach((r,s)=>{let i={prev:t[s-1],next:t[s+1]},a=r.visit(e,i);a&&n.push(a)}),n}l(vn,"visitAllWithSiblings");var H;(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.RegExpBody=7]="RegExpBody",e[e.RegExpFlags=8]="RegExpFlags",e[e.Error=9]="Error"})(H||(H={}));var br;(function(e){e[e.Plain=0]="Plain",e[e.TemplateLiteralPart=1]="TemplateLiteralPart",e[e.TemplateLiteralEnd=2]="TemplateLiteralEnd"})(br||(br={}));var gB=["var","let","as","null","undefined","true","false","if","else","this","typeof","void","in","instanceof"],sp=class{static{l(this,"Lexer")}tokenize(e){return new vB(e).scan()}},_n=class{static{l(this,"Token")}index;end;type;numValue;strValue;constructor(e,t,n,r,s){this.index=e,this.end=t,this.type=n,this.numValue=r,this.strValue=s}isCharacter(e){return this.type===H.Character&&this.numValue===e}isNumber(){return this.type===H.Number}isString(){return this.type===H.String}isOperator(e){return this.type===H.Operator&&this.strValue===e}isIdentifier(){return this.type===H.Identifier}isPrivateIdentifier(){return this.type===H.PrivateIdentifier}isKeyword(){return this.type===H.Keyword}isKeywordLet(){return this.type===H.Keyword&&this.strValue==="let"}isKeywordAs(){return this.type===H.Keyword&&this.strValue==="as"}isKeywordNull(){return this.type===H.Keyword&&this.strValue==="null"}isKeywordUndefined(){return this.type===H.Keyword&&this.strValue==="undefined"}isKeywordTrue(){return this.type===H.Keyword&&this.strValue==="true"}isKeywordFalse(){return this.type===H.Keyword&&this.strValue==="false"}isKeywordThis(){return this.type===H.Keyword&&this.strValue==="this"}isKeywordTypeof(){return this.type===H.Keyword&&this.strValue==="typeof"}isKeywordVoid(){return this.type===H.Keyword&&this.strValue==="void"}isKeywordIn(){return this.type===H.Keyword&&this.strValue==="in"}isKeywordInstanceOf(){return this.type===H.Keyword&&this.strValue==="instanceof"}isError(){return this.type===H.Error}isRegExpBody(){return this.type===H.RegExpBody}isRegExpFlags(){return this.type===H.RegExpFlags}toNumber(){return this.type===H.Number?this.numValue:-1}isTemplateLiteralPart(){return this.isString()&&this.kind===br.TemplateLiteralPart}isTemplateLiteralEnd(){return this.isString()&&this.kind===br.TemplateLiteralEnd}isTemplateLiteralInterpolationStart(){return this.isOperator("${")}toString(){switch(this.type){case H.Character:case H.Identifier:case H.Keyword:case H.Operator:case H.PrivateIdentifier:case H.String:case H.Error:case H.RegExpBody:case H.RegExpFlags:return this.strValue;case H.Number:return this.numValue.toString();default:return null}}},kc=class extends _n{static{l(this,"StringToken")}kind;constructor(e,t,n,r){super(e,t,H.String,0,n),this.kind=r}};function fa(e,t,n){return new _n(e,t,H.Character,n,String.fromCharCode(n))}l(fa,"newCharacterToken");function zC(e,t,n){return new _n(e,t,H.Identifier,0,n)}l(zC,"newIdentifierToken");function GC(e,t,n){return new _n(e,t,H.PrivateIdentifier,0,n)}l(GC,"newPrivateIdentifierToken");function XC(e,t,n){return new _n(e,t,H.Keyword,0,n)}l(XC,"newKeywordToken");function dr(e,t,n){return new _n(e,t,H.Operator,0,n)}l(dr,"newOperatorToken");function YC(e,t,n){return new _n(e,t,H.Number,n,"")}l(YC,"newNumberToken");function KC(e,t,n){return new _n(e,t,H.Error,0,n)}l(KC,"newErrorToken");function QC(e,t,n){return new _n(e,t,H.RegExpBody,0,n)}l(QC,"newRegExpBodyToken");function JC(e,t,n){return new _n(e,t,H.RegExpFlags,0,n)}l(JC,"newRegExpFlagsToken");var ma=new _n(-1,-1,H.Character,0,""),vB=class{static{l(this,"_Scanner")}input;tokens=[];length;peek=0;index=-1;braceStack=[];constructor(e){this.input=e,this.length=e.length,this.advance()}scan(){let e=this.scanToken();for(;e!==null;)this.tokens.push(e),e=this.scanToken();return this.tokens}advance(){this.peek=++this.index>=this.length?rt:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,t=this.length,n=this.peek,r=this.index;for(;n<=Zw;)if(++r>=t){n=rt;break}else n=e.charCodeAt(r);if(this.peek=n,this.index=r,r>=t)return null;if(Sf(n))return this.scanIdentifier();if(nn(n))return this.scanNumber(r);let s=r;switch(n){case ri:return this.advance(),nn(this.peek)?this.scanNumber(s):this.peek!==ri?fa(s,this.index,ri):(this.advance(),this.peek===ri?(this.advance(),dr(s,this.index,"...")):this.error(`Unexpected character [${String.fromCharCode(n)}]`,0));case Rt:case st:case Qn:case wr:case xt:case zn:case Wt:return this.scanCharacter(s,n);case yn:return this.scanOpenBrace(s,n);case Lt:return this.scanCloseBrace(s,n);case gl:case ml:return this.scanString();case fd:return this.advance(),this.scanTemplateLiteralPart(s);case eT:return this.scanPrivateIdentifier();case tT:return this.scanComplexOperator(s,"+",pt,"=");case Kc:return this.scanComplexOperator(s,"-",pt,"=");case en:return this.isStartOfRegex()?this.scanRegex(r):this.scanComplexOperator(s,"/",pt,"=");case kO:return this.scanComplexOperator(s,"%",pt,"=");case RO:return this.scanOperator(s,"^");case dd:return this.scanStar(s);case Sa:return this.scanQuestion(s);case Ca:case kt:return this.scanComplexOperator(s,String.fromCharCode(n),pt,"=");case hd:return this.scanComplexOperator(s,"!",pt,"=",pt,"=");case pt:return this.scanEquals(s);case Yc:return this.scanComplexOperator(s,"&",Yc,"&",pt,"=");case my:return this.scanComplexOperator(s,"|",my,"|",pt,"=");case cT:for(;Fa(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(n)}]`,0)}scanCharacter(e,t){return this.advance(),fa(e,this.index,t)}scanOperator(e,t){return this.advance(),dr(e,this.index,t)}scanOpenBrace(e,t){return this.braceStack.push("expression"),this.advance(),fa(e,this.index,t)}scanCloseBrace(e,t){return this.advance(),this.braceStack.pop()==="interpolation"?(this.tokens.push(fa(e,this.index,Lt)),this.scanTemplateLiteralPart(this.index)):fa(e,this.index,t)}scanComplexOperator(e,t,n,r,s,i){this.advance();let a=t;return this.peek==n&&(this.advance(),a+=r),s!=null&&this.peek==s&&(this.advance(),a+=i),dr(e,this.index,a)}scanEquals(e){this.advance();let t="=";if(this.peek===pt)this.advance(),t+="=";else if(this.peek===kt)return this.advance(),t+=">",dr(e,this.index,t);return this.peek===pt&&(this.advance(),t+="="),dr(e,this.index,t)}scanIdentifier(){let e=this.index;for(this.advance();yf(this.peek);)this.advance();let t=this.input.substring(e,this.index);return gB.indexOf(t)>-1?XC(e,this.index,t):zC(e,this.index,t)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!Sf(this.peek))return this.error("Invalid character [#]",-1);for(;yf(this.peek);)this.advance();let t=this.input.substring(e,this.index);return GC(e,this.index,t)}scanNumber(e){let t=this.index===e,n=!1;for(this.advance();;){if(!nn(this.peek))if(this.peek===os){if(!nn(this.input.charCodeAt(this.index-1))||!nn(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);n=!0}else if(this.peek===ri)t=!1;else if(ZC(this.peek)){if(this.advance(),e_(this.peek)&&this.advance(),!nn(this.peek))return this.error("Invalid exponent",-1);t=!1}else break;this.advance()}let r=this.input.substring(e,this.index);n&&(r=r.replace(/_/g,""));let s=t?n_(r):parseFloat(r);return YC(e,this.index,s)}scanString(){let e=this.index,t=this.peek;this.advance();let n="",r=this.index,s=this.input;for(;this.peek!=t;)if(this.peek==Si){let a=this.scanStringBackslash(n,r);if(typeof a!="string")return a;n=a,r=this.index}else{if(this.peek==rt)return this.error("Unterminated quote",0);this.advance()}let i=s.substring(r,this.index);return this.advance(),new kc(e,this.index,n+i,br.Plain)}scanQuestion(e){this.advance();let t="?";return this.peek===Sa?(t+="?",this.advance(),this.peek===pt&&(t+="=",this.advance())):this.peek===ri&&(t+=".",this.advance()),dr(e,this.index,t)}scanTemplateLiteralPart(e){let t="",n=this.index;for(;this.peek!==fd;)if(this.peek===Si){let s=this.scanStringBackslash(t,n);if(typeof s!="string")return s;t=s,n=this.index}else if(this.peek===Du){let s=this.index;if(this.advance(),this.peek===yn)return this.braceStack.push("interpolation"),this.tokens.push(new kc(e,s,t+this.input.substring(n,s),br.TemplateLiteralPart)),this.advance(),dr(s,this.index,this.input.substring(s,this.index))}else{if(this.peek===rt)return this.error("Unterminated template literal",0);this.advance()}let r=this.input.substring(n,this.index);return this.advance(),new kc(e,this.index,t+r,br.TemplateLiteralEnd)}error(e,t){let n=this.index+t;return KC(n,this.index,`Lexer Error: ${e} at column ${n} in expression [${this.input}]`)}scanStringBackslash(e,t){e+=this.input.substring(t,this.index);let n;if(this.advance(),this.peek===aT){let r=this.input.substring(this.index+1,this.index+5);if(/^[0-9a-f]+$/i.test(r))n=parseInt(r,16);else return this.error(`Invalid unicode escape [\\u${r}]`,0);for(let s=0;s<5;s++)this.advance()}else n=t_(this.peek),this.advance();return e+=String.fromCharCode(n),e}scanStar(e){this.advance();let t="*";return this.peek===dd?(t+="*",this.advance(),this.peek===pt&&(t+="=",this.advance())):this.peek===pt&&(t+="=",this.advance()),dr(e,this.index,t)}isStartOfRegex(){if(this.tokens.length===0)return!0;let e=this.tokens[this.tokens.length-1];if(e.isOperator("!")){let t=this.tokens.length>1?this.tokens[this.tokens.length-2]:null;return t===null||t.type!==H.Identifier&&!t.isCharacter(st)&&!t.isCharacter(wr)}return e.type===H.Operator||e.isCharacter(Rt)||e.isCharacter(Qn)||e.isCharacter(xt)||e.isCharacter(zn)}scanRegex(e){this.advance();let t=this.index,n=!1,r=!1;for(;;){let o=this.peek;if(o===rt)return this.error("Unterminated regular expression",0);if(n)n=!1;else if(o===Si)n=!0;else if(o===Qn)r=!0;else if(o===wr)r=!1;else if(o===en&&!r)break;this.advance()}let s=this.input.substring(t,this.index);this.advance();let i=QC(e,this.index,s),a=this.scanRegexFlags(this.index);return a!==null?(this.tokens.push(i),a):i}scanRegexFlags(e){if(!kr(this.peek))return null;for(;kr(this.peek);)this.advance();return JC(e,this.index,this.input.substring(e,this.index))}};function Sf(e){return Ii<=e&&e<=Fl||as<=e&&e<=ro||e==os||e==Du}l(Sf,"isIdentifierStart");function yf(e){return kr(e)||nn(e)||e==os||e==Du}l(yf,"isIdentifierPart");function ZC(e){return e==MO||e==LO}l(ZC,"isExponentStart");function e_(e){return e==Kc||e==tT}l(e_,"isExponentSign");function t_(e){switch(e){case rT:return Ei;case Nm:return Jw;case sT:return Cm;case iT:return Am;case oT:return Qw;default:return e}}l(t_,"unescape");function n_(e){let t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}l(n_,"parseIntAutoRadix");var r_=class{static{l(this,"SplitInterpolation")}strings;expressions;offsets;constructor(e,t,n){this.strings=e,this.expressions=t,this.offsets=n}},s_=class{static{l(this,"TemplateBindingParseResult")}templateBindings;warnings;errors;constructor(e,t,n){this.templateBindings=e,this.warnings=t,this.errors=n}};function vr(e){return e.start.toString()||"(unknown)"}l(vr,"getLocation");var Og=class{static{l(this,"Parser")}_lexer;_supportsDirectPipeReferences;constructor(e,t=!1){this._lexer=e,this._supportsDirectPipeReferences=t}parseAction(e,t,n){let r=[];this._checkNoInterpolation(r,e,t);let{stripped:s}=this._stripComments(e),i=this._lexer.tokenize(s),a=new Uo(e,t,n,i,1,r,0,this._supportsDirectPipeReferences).parseChain();return new Gt(a,e,vr(t),n,r)}parseBinding(e,t,n){let r=[],s=this._parseBindingAst(e,t,n,r);return new Gt(s,e,vr(t),n,r)}checkSimpleExpression(e){let t=new EB;return e.visit(t),t.errors}parseSimpleBinding(e,t,n){let r=[],s=this._parseBindingAst(e,t,n,r),i=this.checkSimpleExpression(s);return i.length>0&&r.push(mi(`Host binding expression cannot contain ${i.join(" ")}`,e,"",t)),new Gt(s,e,vr(t),n,r)}_parseBindingAst(e,t,n,r){this._checkNoInterpolation(r,e,t);let{stripped:s}=this._stripComments(e),i=this._lexer.tokenize(s);return new Uo(e,t,n,i,0,r,0,this._supportsDirectPipeReferences).parseChain()}parseTemplateBindings(e,t,n,r,s){let i=this._lexer.tokenize(t),a=[];return new Uo(t,n,s,i,0,a,0,this._supportsDirectPipeReferences).parseTemplateBindings({source:e,span:new at(r,r+e.length)})}parseInterpolation(e,t,n,r){let s=[],{strings:i,expressions:a,offsets:o}=this.splitInterpolation(e,t,s,r);if(a.length===0)return null;let c=[];for(let u=0;u<a.length;++u){let p=r?.[u*2+1]?.sourceSpan,h=a[u].text,{stripped:f,hasComments:v}=this._stripComments(h),E=this._lexer.tokenize(f);if(v&&f.trim().length===0&&E.length===0){s.push(mi("Interpolation expression cannot only contain a comment",e,`at column ${a[u].start} in`,t));continue}let T=new Uo(p?h:e,p||t,n,E,0,s,o[u],this._supportsDirectPipeReferences).parseChain();c.push(T)}return this.createInterpolationAst(i.map(u=>u.text),c,e,vr(t),n,s)}parseInterpolationExpression(e,t,n){let{stripped:r}=this._stripComments(e),s=this._lexer.tokenize(r),i=[],a=new Uo(e,t,n,s,0,i,0,this._supportsDirectPipeReferences).parseChain(),o=["",""];return this.createInterpolationAst(o,[a],e,vr(t),n,i)}createInterpolationAst(e,t,n,r,s,i){let a=new Pr(0,n.length),o=new so(a,a.toAbsolute(s),e,t);return new Gt(o,n,r,s,i)}splitInterpolation(e,t,n,r){let s=[],i=[],a=[],o=r?i_(r):null,c=0,u=!1,p=!1,h="{{",f="}}";for(;c<e.length;)if(u){let v=c,E=v+h.length,T=this._getInterpolationEndIndex(e,f,E);if(T===-1){u=!1,p=!0;break}let y=T+f.length,N=e.substring(E,T);N.trim().length===0&&n.push(mi("Blank expressions are not allowed in interpolated strings",e,`at column ${c} in`,t)),i.push({text:N,start:v,end:y});let q=(o?.get(v)??v)+h.length;a.push(q),c=y,u=!1}else{let v=c;c=e.indexOf(h,c),c===-1&&(c=e.length);let E=e.substring(v,c);s.push({text:E,start:v,end:c}),u=!0}if(!u)if(p){let v=s[s.length-1];v.text+=e.substring(c),v.end=e.length}else s.push({text:e.substring(c),start:c,end:e.length});return new r_(s,i,a)}wrapLiteralPrimitive(e,t,n){let r=new Pr(0,e==null?0:e.length);return new Gt(new Dt(r,r.toAbsolute(n),e),e,typeof t=="string"?t:vr(t),n,[])}_stripComments(e){let t=this._commentStart(e);return t!=null?{stripped:e.substring(0,t),hasComments:!0}:{stripped:e,hasComments:!1}}_commentStart(e){let t=null;for(let n=0;n<e.length-1;n++){let r=e.charCodeAt(n),s=e.charCodeAt(n+1);if(r===en&&s==en&&t==null)return n;t===r?t=null:t==null&&Na(r)&&(t=r)}return null}_checkNoInterpolation(e,t,n){let r=-1,s=-1;for(let i of this._forEachUnquotedChar(t,0))if(r===-1)t.startsWith("{{")&&(r=i);else if(s=this._getInterpolationEndIndex(t,"}}",i),s>-1)break;r>-1&&s>-1&&e.push(mi("Got interpolation ({{}}) where expression was expected",t,`at column ${r} in`,n))}_getInterpolationEndIndex(e,t,n){for(let r of this._forEachUnquotedChar(e,n)){if(e.startsWith(t,r))return r;if(e.startsWith("//",r))return e.indexOf(t,r)}return-1}*_forEachUnquotedChar(e,t){let n=null,r=0;for(let s=t;s<e.length;s++){let i=e[s];Na(e.charCodeAt(s))&&(n===null||n===i)&&r%2===0?n=n===null?i:null:n===null&&(yield s),r=i==="\\"?r+1:0}}},Ta;(function(e){e[e.None=0]="None",e[e.Writable=1]="Writable"})(Ta||(Ta={}));var Iy=new Set(["d","g","i","m","s","u","v","y"]),Uo=class{static{l(this,"_ParseAST")}input;parseSourceSpan;absoluteOffset;tokens;parseFlags;errors;offset;supportsDirectPipeReferences;rparensExpected=0;rbracketsExpected=0;rbracesExpected=0;context=Ta.None;sourceSpanCache=new Map;index=0;constructor(e,t,n,r,s,i,a,o){this.input=e,this.parseSourceSpan=t,this.absoluteOffset=n,this.tokens=r,this.parseFlags=s,this.errors=i,this.offset=a,this.supportsDirectPipeReferences=o}peek(e){let t=this.index+e;return t<this.tokens.length?this.tokens[t]:ma}get next(){return this.peek(0)}get atEOF(){return this.index>=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){return this.index>0?this.peek(-1).end+this.offset:this.tokens.length===0?this.input.length+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(e,t){let n=this.currentEndIndex;if(t!==void 0&&t>this.currentEndIndex&&(n=t),e>n){let r=n;n=e,e=r}return new Pr(e,n)}sourceSpan(e,t){let n=`${e}@${this.inputIndex}:${t}`;return this.sourceSpanCache.has(n)||this.sourceSpanCache.set(n,this.span(e,t).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(n)}advance(){this.index++}withContext(e,t){this.context|=e;let n=t();return this.context^=e,n}consumeOptionalCharacter(e){return this.next.isCharacter(e)?(this.advance(),!0):!1}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(e){this.consumeOptionalCharacter(e)||this.error(`Missing expected ${String.fromCharCode(e)}`)}consumeOptionalOperator(e){return this.next.isOperator(e)?(this.advance(),!0):!1}isAssignmentOperator(e){return e.type===H.Operator&&wt.isAssignmentOperation(e.strValue)}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===ma?"end of input":`token ${e}`}expectIdentifierOrKeyword(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier or keyword"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier or keyword`),null):(this.advance(),e.toString())}expectIdentifierOrKeywordOrString(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()&&!e.isString()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier, keyword or string"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier, keyword, or string`),""):(this.advance(),e.toString())}parseChain(){let e=[],t=this.inputIndex;for(;this.index<this.tokens.length;){let n=this.parsePipe();if(e.push(n),this.consumeOptionalCharacter(Wt))for(this.parseFlags&1||this.error("Binding expression cannot contain chained expression");this.consumeOptionalCharacter(Wt););else if(this.index<this.tokens.length){let r=this.index;if(this.error(`Unexpected token '${this.next}'`),this.index===r)break}}if(e.length===0){let n=this.offset,r=this.offset+this.input.length;return new gt(this.span(n,r),this.sourceSpan(n,r))}return e.length==1?e[0]:new Ul(this.span(t),this.sourceSpan(t),e)}parsePipe(){let e=this.inputIndex,t=this.parseExpression();if(this.consumeOptionalOperator("|")){this.parseFlags&1&&this.error("Cannot have a pipe in an action expression");do{let n=this.inputIndex,r=this.expectIdentifierOrKeyword(),s,i;r!==null?s=this.sourceSpan(n):(r="",i=this.next.index!==-1?this.next.index:this.input.length+this.offset,s=new Pr(i,i).toAbsolute(this.absoluteOffset));let a=[];for(;this.consumeOptionalCharacter(zn);)a.push(this.parseExpression());let o;if(this.supportsDirectPipeReferences){let c=r.charCodeAt(0);o=c===os||c>=as&&c<=ro?Ia.ReferencedDirectly:Ia.ReferencedByName}else o=Ia.ReferencedByName;t=new Ru(this.span(e),this.sourceSpan(e,i),t,r,a,o,s)}while(this.consumeOptionalOperator("|"))}return t}parseExpression(){return this.parseConditional()}parseConditional(){let e=this.inputIndex,t=this.parseLogicalOr();if(this.consumeOptionalOperator("?")){let n=this.parsePipe(),r;if(this.consumeOptionalCharacter(zn))r=this.parsePipe();else{let s=this.inputIndex,i=this.input.substring(e,s);this.error(`Conditional expression ${i} requires all 3 expressions`),r=new gt(this.span(e),this.sourceSpan(e))}return new Pm(this.span(e),this.sourceSpan(e),t,n,r)}else return t}parseLogicalOr(){let e=this.inputIndex,t=this.parseLogicalAnd();for(;this.consumeOptionalOperator("||");){let n=this.parseLogicalAnd();t=new wt(this.span(e),this.sourceSpan(e),"||",t,n)}return t}parseLogicalAnd(){let e=this.inputIndex,t=this.parseNullishCoalescing();for(;this.consumeOptionalOperator("&&");){let n=this.parseNullishCoalescing();t=new wt(this.span(e),this.sourceSpan(e),"&&",t,n)}return t}parseNullishCoalescing(){let e=this.inputIndex,t=this.parseEquality();for(;this.consumeOptionalOperator("??");){let n=this.parseEquality();t=new wt(this.span(e),this.sourceSpan(e),"??",t,n)}return t}parseEquality(){let e=this.inputIndex,t=this.parseRelational();for(;this.next.type==H.Operator;){let n=this.next.strValue;switch(n){case"==":case"===":case"!=":case"!==":this.advance();let r=this.parseRelational();t=new wt(this.span(e),this.sourceSpan(e),n,t,r);continue}break}return t}parseRelational(){let e=this.inputIndex,t=this.parseAdditive();for(;this.next.type==H.Operator||this.next.isKeywordIn()||this.next.isKeywordInstanceOf();){let n=this.next.strValue;switch(n){case"<":case">":case"<=":case">=":case"in":case"instanceof":this.advance();let r=this.parseAdditive();t=new wt(this.span(e),this.sourceSpan(e),n,t,r);continue}break}return t}parseAdditive(){let e=this.inputIndex,t=this.parseMultiplicative();for(;this.next.type==H.Operator;){let n=this.next.strValue;switch(n){case"+":case"-":this.advance();let r=this.parseMultiplicative();t=new wt(this.span(e),this.sourceSpan(e),n,t,r);continue}break}return t}parseMultiplicative(){let e=this.inputIndex,t=this.parseExponentiation();for(;this.next.type==H.Operator;){let n=this.next.strValue;switch(n){case"*":case"%":case"/":this.advance();let r=this.parseExponentiation();t=new wt(this.span(e),this.sourceSpan(e),n,t,r);continue}break}return t}parseExponentiation(){let e=this.inputIndex,t=this.parsePrefix();for(;this.next.type==H.Operator&&this.next.strValue==="**";){(t instanceof ll||t instanceof Qc||t instanceof Jc||t instanceof Zc)&&this.error("Unary operator used immediately before exponentiation expression. Parenthesis must be used to disambiguate operator precedence"),this.advance();let n=this.parseExponentiation();t=new wt(this.span(e),this.sourceSpan(e),"**",t,n)}return t}parsePrefix(){if(this.next.type==H.Operator){let e=this.inputIndex,t=this.next.strValue,n;switch(t){case"+":return this.advance(),n=this.parsePrefix(),ll.createPlus(this.span(e),this.sourceSpan(e),n);case"-":return this.advance(),n=this.parsePrefix(),ll.createMinus(this.span(e),this.sourceSpan(e),n);case"!":return this.advance(),n=this.parsePrefix(),new Qc(this.span(e),this.sourceSpan(e),n)}}else if(this.next.isKeywordTypeof()){let e=this.inputIndex;this.advance();let t=this.parsePrefix();return new Jc(this.span(e),this.sourceSpan(e),t)}else if(this.next.isKeywordVoid()){let e=this.inputIndex;this.advance();let t=this.parsePrefix();return new Zc(this.span(e),this.sourceSpan(e),t)}return this.parseCallChain()}parseCallChain(){let e=this.inputIndex,t=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(ri))t=this.parseAccessMember(t,e,!1);else if(this.consumeOptionalOperator("?."))this.consumeOptionalCharacter(Rt)?t=this.parseCall(t,e,!0):t=this.consumeOptionalCharacter(Qn)?this.parseKeyedReadOrWrite(t,e,!0):this.parseAccessMember(t,e,!0);else if(this.consumeOptionalCharacter(Qn))t=this.parseKeyedReadOrWrite(t,e,!1);else if(this.consumeOptionalCharacter(Rt))t=this.parseCall(t,e,!1);else if(this.consumeOptionalOperator("!"))t=new ql(this.span(e),this.sourceSpan(e),t);else if(this.next.isTemplateLiteralEnd())t=this.parseNoInterpolationTaggedTemplateLiteral(t,e);else if(this.next.isTemplateLiteralPart())t=this.parseTaggedTemplateLiteral(t,e);else return t}parsePrimary(){let e=this.inputIndex;if(this.isArrowFunction())return this.parseArrowFunction(e);if(this.consumeOptionalCharacter(Rt)){this.rparensExpected++;let t=this.parsePipe();return this.consumeOptionalCharacter(st)||(this.error("Missing closing parentheses"),this.consumeOptionalCharacter(st)),this.rparensExpected--,new Bu(this.span(e),this.sourceSpan(e),t)}else{if(this.next.isKeywordNull())return this.advance(),new Dt(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new Dt(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new Dt(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new Dt(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new tr(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(Qn))return this.parseLiteralArray(e);if(this.next.isCharacter(yn))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new dt(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){let t=this.next.toNumber();return this.advance(),new Dt(this.span(e),this.sourceSpan(e),t)}else{if(this.next.isTemplateLiteralEnd())return this.parseNoInterpolationTemplateLiteral();if(this.next.isTemplateLiteralPart())return this.parseTemplateLiteral();if(this.next.isString()&&this.next.kind===br.Plain){let t=this.next.toString();return this.advance(),new Dt(this.span(e),this.sourceSpan(e),t)}else return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new gt(this.span(e),this.sourceSpan(e))):this.next.isRegExpBody()?this.parseRegularExpressionLiteral():this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new gt(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new gt(this.span(e),this.sourceSpan(e)))}}}parseLiteralArray(e){this.rbracketsExpected++;let t=[];do if(this.next.isOperator("..."))t.push(this.parseSpreadElement());else if(!this.next.isCharacter(wr))t.push(this.parsePipe());else break;while(this.consumeOptionalCharacter(xt));return this.rbracketsExpected--,this.expectCharacter(wr),new Vl(this.span(e),this.sourceSpan(e),t)}parseLiteralMap(){let e=[],t=[],n=this.inputIndex;if(this.expectCharacter(yn),!this.consumeOptionalCharacter(Lt)){this.rbracesExpected++;do{let r=this.inputIndex;if(this.next.isOperator("...")){this.advance(),e.push({kind:"spread",span:this.span(r),sourceSpan:this.sourceSpan(r)}),t.push(this.parsePipe());continue}let s=this.next.isString(),i=this.expectIdentifierOrKeywordOrString(),a=this.span(r),o=this.sourceSpan(r),c={kind:"property",key:i,quoted:s,span:a,sourceSpan:o};e.push(c),s?(this.expectCharacter(zn),t.push(this.parsePipe())):this.consumeOptionalCharacter(zn)?t.push(this.parsePipe()):(c.isShorthandInitialized=!0,t.push(new Je(a,o,o,new dt(a,o),i)))}while(this.consumeOptionalCharacter(xt)&&!this.next.isCharacter(Lt));this.rbracesExpected--,this.expectCharacter(Lt)}return new Pi(this.span(n),this.sourceSpan(n),e,t)}parseAccessMember(e,t,n){let r=this.inputIndex,s=this.withContext(Ta.Writable,()=>{let a=this.expectIdentifierOrKeyword()??"";return a.length===0&&this.error("Expected identifier for property access",e.span.end),a}),i=this.sourceSpan(r);if(n)return this.isAssignmentOperator(this.next)?(this.advance(),this.error("The '?.' operator cannot be used in the assignment"),new gt(this.span(t),this.sourceSpan(t))):new ki(this.span(t),this.sourceSpan(t),i,e,s);if(this.isAssignmentOperator(this.next)){let a=this.next.strValue;if(!(this.parseFlags&1))return this.advance(),this.error("Bindings cannot contain assignments"),new gt(this.span(t),this.sourceSpan(t));let o=new Je(this.span(t),this.sourceSpan(t),i,e,s);this.advance();let c=this.parseConditional();return new wt(this.span(t),this.sourceSpan(t),a,o,c)}else return new Je(this.span(t),this.sourceSpan(t),i,e,s)}parseCall(e,t,n){let r=this.inputIndex;this.rparensExpected++;let s=this.parseCallArguments(),i=this.span(r,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(st),this.rparensExpected--;let a=this.span(t),o=this.sourceSpan(t);return n?new Hi(a,o,e,s,i):new ln(a,o,e,s,i)}parseCallArguments(){if(this.next.isCharacter(st))return[];let e=[];do e.push(this.next.isOperator("...")?this.parseSpreadElement():this.parsePipe());while(this.consumeOptionalCharacter(xt));return e}parseSpreadElement(){this.next.isOperator("...")||this.error("Spread element must start with '...' operator");let e=this.inputIndex;this.advance();let t=this.parsePipe(),n=this.span(e),r=this.sourceSpan(e);return new Lm(n,r,t)}expectTemplateBindingKey(){let e="",t=!1,n=this.currentAbsoluteOffset;do e+=this.expectIdentifierOrKeywordOrString(),t=this.consumeOptionalOperator("-"),t&&(e+="-");while(t);return{source:e,span:new at(n,n+e.length)}}parseTemplateBindings(e){let t=[];for(t.push(...this.parseDirectiveKeywordBindings(e));this.index<this.tokens.length;){let n=this.parseLetBinding();if(n)t.push(n);else{let r=this.expectTemplateBindingKey(),s=this.parseAsBinding(r);s?t.push(s):(r.source=e.source+r.source.charAt(0).toUpperCase()+r.source.substring(1),t.push(...this.parseDirectiveKeywordBindings(r)))}this.consumeStatementTerminator()}return new s_(t,[],this.errors)}parseKeyedReadOrWrite(e,t,n){return this.withContext(Ta.Writable,()=>{this.rbracketsExpected++;let r=this.parsePipe();if(r instanceof gt&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(wr),this.isAssignmentOperator(this.next)){let s=this.next.strValue;if(n)this.advance(),this.error("The '?.' operator cannot be used in the assignment");else{let i=new Lr(this.span(t),this.sourceSpan(t),e,r);this.advance();let a=this.parseConditional();return new wt(this.span(t),this.sourceSpan(t),s,i,a)}}else return n?new Ua(this.span(t),this.sourceSpan(t),e,r):new Lr(this.span(t),this.sourceSpan(t),e,r);return new gt(this.span(t),this.sourceSpan(t))})}parseDirectiveKeywordBindings(e){let t=[];this.consumeOptionalCharacter(zn);let n=this.getDirectiveBoundTarget(),r=this.currentAbsoluteOffset,s=this.parseAsBinding(e);s||(this.consumeStatementTerminator(),r=this.currentAbsoluteOffset);let i=new at(e.span.start,r);return t.push(new dT(i,e,n)),s&&t.push(s),t}getDirectiveBoundTarget(){if(this.next===ma||this.peekKeywordAs()||this.peekKeywordLet())return null;let e=this.parsePipe(),{start:t,end:n}=e.span,r=this.input.substring(t,n);return new Gt(e,r,vr(this.parseSourceSpan),this.absoluteOffset+t,this.errors)}parseAsBinding(e){if(!this.peekKeywordAs())return null;this.advance();let t=this.expectTemplateBindingKey();this.consumeStatementTerminator();let n=new at(e.span.start,this.currentAbsoluteOffset);return new nu(n,t,e)}parseLetBinding(){if(!this.peekKeywordLet())return null;let e=this.currentAbsoluteOffset;this.advance();let t=this.expectTemplateBindingKey(),n=null;this.consumeOptionalOperator("=")&&(n=this.expectTemplateBindingKey()),this.consumeStatementTerminator();let r=new at(e,this.currentAbsoluteOffset);return new nu(r,t,n)}parseNoInterpolationTaggedTemplateLiteral(e,t){let n=this.parseNoInterpolationTemplateLiteral();return new eu(this.span(t),this.sourceSpan(t),e,n)}parseNoInterpolationTemplateLiteral(){let e=this.next.strValue,t=this.inputIndex;this.advance();let n=this.span(t),r=this.sourceSpan(t);return new tu(n,r,[new vd(n,r,e)],[])}parseTaggedTemplateLiteral(e,t){let n=this.parseTemplateLiteral();return new eu(this.span(t),this.sourceSpan(t),e,n)}parseTemplateLiteral(){let e=[],t=[],n=this.inputIndex;for(;this.next!==ma;){let r=this.next;if(r.isTemplateLiteralPart()||r.isTemplateLiteralEnd()){let s=this.inputIndex;if(this.advance(),e.push(new vd(this.span(s),this.sourceSpan(s),r.strValue)),r.isTemplateLiteralEnd())break}else if(r.isTemplateLiteralInterpolationStart()){this.advance(),this.rbracesExpected++;let s=this.parsePipe();s instanceof gt&&this.error("Template literal interpolation cannot be empty"),t.push(s),this.rbracesExpected--}else this.advance()}return new tu(this.span(n),this.sourceSpan(n),e,t)}parseRegularExpressionLiteral(){let e=this.next;if(this.advance(),!e.isRegExpBody())return new gt(this.span(this.inputIndex),this.sourceSpan(this.inputIndex));let t=null;if(this.next.isRegExpFlags()){t=this.next,this.advance();let s=new Set;for(let i=0;i<t.strValue.length;i++){let a=t.strValue[i];Iy.has(a)?s.has(a)?this.error(`Duplicate regular expression flag "${a}"`,t.index+i):s.add(a):this.error(`Unsupported regular expression flag "${a}". The supported flags are: `+Array.from(Iy,o=>`"${o}"`).join(", "),t.index+i)}}let n=e.index,r=t?t.end:e.end;return new Om(this.span(n,r),this.sourceSpan(n,r),e.strValue,t?t.strValue:null)}parseArrowFunction(e){let t;if(this.next.isIdentifier()){let r=this.next;this.advance(),t=[this.getArrowFunctionIdentifierArg(r)]}else this.next.isCharacter(Rt)?(this.rparensExpected++,this.advance(),t=this.parseArrowFunctionParameters(),this.rparensExpected--):(t=[],this.error(`Unexpected token ${this.next}`));this.expectOperator("=>");let n;if(this.next.isCharacter(yn))this.error("Multi-line arrow functions are not supported. If you meant to return an object literal, wrap it with parentheses."),n=new gt(this.span(e),this.sourceSpan(e));else{let r=this.parseFlags;this.parseFlags=1,n=this.parseExpression(),this.parseFlags=r}return new Dm(this.span(e),this.sourceSpan(e),t,n)}parseArrowFunctionParameters(){let e=[];if(!this.consumeOptionalCharacter(st))for(;this.next!==ma;)if(this.next.isIdentifier()){let t=this.next;if(this.advance(),e.push(this.getArrowFunctionIdentifierArg(t)),this.consumeOptionalCharacter(st))break;this.expectCharacter(xt)}else{this.error(`Unexpected token ${this.next}`);break}return e}getArrowFunctionIdentifierArg(e){return new hT(e.strValue,this.span(e.index),this.sourceSpan(e.index))}isArrowFunction(){let e=this.index,t=this.tokens;if(e>t.length-2)return!1;if(t[e].isIdentifier()&&t[e+1].isOperator("=>"))return!0;if(t[e].isCharacter(Rt)){let n=e+1;for(n;n<t.length&&!(!t[n].isIdentifier()&&!t[n].isCharacter(xt));n++);return n<t.length-1&&t[n].isCharacter(st)&&t[n+1].isOperator("=>")}return!1}consumeStatementTerminator(){this.consumeOptionalCharacter(Wt)||this.consumeOptionalCharacter(xt)}error(e,t=this.index){this.errors.push(mi(e,this.input,this.getErrorLocationText(t),this.parseSourceSpan)),this.skip()}getErrorLocationText(e){return e<this.tokens.length?`at column ${this.tokens[e].index+1} in`:"at the end of the expression"}_reportErrorForPrivateIdentifier(e,t){let n=`Private identifiers are not supported. Unexpected private identifier: ${e}`;t!==null&&(n+=`, ${t}`),this.error(n)}skip(){let e=this.next;for(;this.index<this.tokens.length&&!e.isCharacter(Wt)&&!e.isOperator("|")&&(this.rparensExpected<=0||!e.isCharacter(st))&&(this.rbracesExpected<=0||!e.isCharacter(Lt))&&(this.rbracketsExpected<=0||!e.isCharacter(wr))&&(!(this.context&Ta.Writable)||!this.isAssignmentOperator(e));)this.next.isError()&&this.errors.push(mi(this.next.toString(),this.input,this.getErrorLocationText(this.next.index),this.parseSourceSpan)),this.advance(),e=this.next}};function mi(e,t,n,r){n.length>0&&(n=` ${n} `);let s=vr(r),i=`Parser Error: ${e}${n}[${t}] in ${s}`;return new k(r,i)}l(mi,"getParseError");var EB=class extends io{static{l(this,"SimpleExpressionChecker")}errors=[];visitPipe(){this.errors.push("pipes")}};function i_(e){let t=new Map,n=0,r=0,s=0;for(;s<e.length;){let i=e[s];if(i.type===9){let[a,o]=i.parts;n+=o.length,r+=a.length}else{let a=i.parts.reduce((o,c)=>o+c.length,0);r+=a,n+=a}t.set(r,n),s++}return t}l(i_,"getIndexMapForOriginalTemplate");function a_(e){return e.visit(new SB)}l(a_,"serialize");var SB=class{static{l(this,"SerializeExpressionVisitor")}visitUnary(e,t){return`${e.operator}${e.expr.visit(this,t)}`}visitBinary(e,t){return`${e.left.visit(this,t)} ${e.operation} ${e.right.visit(this,t)}`}visitChain(e,t){return e.expressions.map(n=>n.visit(this,t)).join("; ")}visitConditional(e,t){return`${e.condition.visit(this,t)} ? ${e.trueExp.visit(this,t)} : ${e.falseExp.visit(this,t)}`}visitThisReceiver(){return"this"}visitImplicitReceiver(){return""}visitInterpolation(e,t){return l_(e.strings,e.expressions.map(n=>n.visit(this,t))).join("")}visitKeyedRead(e,t){return`${e.receiver.visit(this,t)}[${e.key.visit(this,t)}]`}visitLiteralArray(e,t){return`[${e.expressions.map(n=>n.visit(this,t)).join(", ")}]`}visitLiteralMap(e,t){return`{${o_(e.keys.map(n=>n.kind==="spread"?"...":n.quoted?`'${n.key}'`:n.key),e.values.map(n=>n.visit(this,t))).map(([n,r])=>`${n}: ${r}`).join(", ")}}`}visitLiteralPrimitive(e){if(e.value===null)return"null";switch(typeof e.value){case"number":case"boolean":return e.value.toString();case"undefined":return"undefined";case"string":return`'${e.value.replace(/'/g,"\\'")}'`;default:throw new Error(`Unsupported primitive type: ${e.value}`)}}visitPipe(e,t){return`${e.exp.visit(this,t)} | ${e.name}`}visitPrefixNot(e,t){return`!${e.expression.visit(this,t)}`}visitNonNullAssert(e,t){return`${e.expression.visit(this,t)}!`}visitPropertyRead(e,t){return e.receiver instanceof dt||e.receiver instanceof tr?e.name:`${e.receiver.visit(this,t)}.${e.name}`}visitSafePropertyRead(e,t){return`${e.receiver.visit(this,t)}?.${e.name}`}visitSafeKeyedRead(e,t){return`${e.receiver.visit(this,t)}?.[${e.key.visit(this,t)}]`}visitCall(e,t){return`${e.receiver.visit(this,t)}(${e.args.map(n=>n.visit(this,t)).join(", ")})`}visitSafeCall(e,t){return`${e.receiver.visit(this,t)}?.(${e.args.map(n=>n.visit(this,t)).join(", ")})`}visitTypeofExpression(e,t){return`typeof ${e.expression.visit(this,t)}`}visitVoidExpression(e,t){return`void ${e.expression.visit(this,t)}`}visitRegularExpressionLiteral(e,t){return`/${e.body}/${e.flags||""}`}visitArrowFunction(e,t){let n;return e.parameters.length===1?n=e.parameters[0].name:n=`(${e.parameters.map(r=>r.name).join(", ")})`,`${n} => ${e.body.visit(this,t)}`}visitASTWithSource(e,t){return e.ast.visit(this,t)}visitTemplateLiteral(e,t){let n="";for(let r=0;r<e.elements.length;r++){n+=e.elements[r].visit(this,t);let s=r<e.expressions.length?e.expressions[r]:null;s!==null&&(n+="${"+s.visit(this,t)+"}")}return"`"+n+"`"}visitTemplateLiteralElement(e,t){return e.text}visitTaggedTemplateLiteral(e,t){return e.tag.visit(this,t)+e.template.visit(this,t)}visitSpreadElement(e,t){return`...${e.expression.visit(this,t)}`}visitParenthesizedExpression(e,t){return"("+e.expression.visit(this,t)+")"}};function o_(e,t){if(e.length!==t.length)throw new Error("Array lengths must match");return e.map((n,r)=>[n,t[r]])}l(o_,"zip");function l_(e,t){let n=[];for(let r=0;r<Math.max(e.length,t.length);r++)r<e.length&&n.push(e[r]),r<t.length&&n.push(t[r]);return n}l(l_,"interleave");var ip="svg",ap="math",c_=class{static{l(this,"ElementSchemaRegistry")}},yB="boolean",wB="number",TB="string",xB="object";function Ko(e){let t=e.toLowerCase(),[n,r]=ot(t,!1);return n===ip||n===ap?`:${n}:${r}`:r}l(Ko,"normalizeTagName");var u_=["[Element]|textContent,%ariaActiveDescendantElement,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColIndexText,%ariaColSpan,%ariaControlsElements,%ariaCurrent,%ariaDescribedByElements,%ariaDescription,%ariaDetailsElements,%ariaDisabled,%ariaErrorMessageElements,%ariaExpanded,%ariaFlowToElements,%ariaHasPopup,%ariaHidden,%ariaInvalid,%ariaKeyShortcuts,%ariaLabel,%ariaLabelledByElements,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaOwnsElements,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowIndexText,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,search,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","geolocation^[HTMLElement]|accuracymode,!autolocate,*location,*promptaction,*promptdismiss,*validationstatuschange,!watch","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,!credentialless,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","selectedcontent^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","search^[HTMLELement]|","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],Rg=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex","aria-activedescendant":"ariaActiveDescendantElement","aria-atomic":"ariaAtomic","aria-autocomplete":"ariaAutoComplete","aria-busy":"ariaBusy","aria-checked":"ariaChecked","aria-colcount":"ariaColCount","aria-colindex":"ariaColIndex","aria-colindextext":"ariaColIndexText","aria-colspan":"ariaColSpan","aria-controls":"ariaControlsElements","aria-current":"ariaCurrent","aria-describedby":"ariaDescribedByElements","aria-description":"ariaDescription","aria-details":"ariaDetailsElements","aria-disabled":"ariaDisabled","aria-errormessage":"ariaErrorMessageElements","aria-expanded":"ariaExpanded","aria-flowto":"ariaFlowToElements","aria-haspopup":"ariaHasPopup","aria-hidden":"ariaHidden","aria-invalid":"ariaInvalid","aria-keyshortcuts":"ariaKeyShortcuts","aria-label":"ariaLabel","aria-labelledby":"ariaLabelledByElements","aria-level":"ariaLevel","aria-live":"ariaLive","aria-modal":"ariaModal","aria-multiline":"ariaMultiLine","aria-multiselectable":"ariaMultiSelectable","aria-orientation":"ariaOrientation","aria-owns":"ariaOwnsElements","aria-placeholder":"ariaPlaceholder","aria-posinset":"ariaPosInSet","aria-pressed":"ariaPressed","aria-readonly":"ariaReadOnly","aria-required":"ariaRequired","aria-roledescription":"ariaRoleDescription","aria-rowcount":"ariaRowCount","aria-rowindex":"ariaRowIndex","aria-rowindextext":"ariaRowIndexText","aria-rowspan":"ariaRowSpan","aria-selected":"ariaSelected","aria-setsize":"ariaSetSize","aria-sort":"ariaSort","aria-valuemax":"ariaValueMax","aria-valuemin":"ariaValueMin","aria-valuenow":"ariaValueNow","aria-valuetext":"ariaValueText"})),bB=Array.from(Rg).reduce((e,[t,n])=>(e.set(t,n),e),new Map),Ki=class extends c_{static{l(this,"DomElementSchemaRegistry")}_schema=new Map;_eventSchema=new Map;_allKnownEvents=null;constructor(){super(),u_.forEach(e=>{let t=new Map,n=new Set,[r,s]=e.split("|"),i=s.split(","),[a,o]=r.split("^");a.split(",").forEach(u=>{this._schema.set(u.toLowerCase(),t),this._eventSchema.set(u.toLowerCase(),n)});let c=o&&this._schema.get(o.toLowerCase());if(c){for(let[u,p]of c)t.set(u,p);for(let u of this._eventSchema.get(o.toLowerCase()))n.add(u)}i.forEach(u=>{if(u.length>0)switch(u[0]){case"*":n.add(u.substring(1));break;case"!":t.set(u.substring(1),yB);break;case"#":t.set(u.substring(1),wB);break;case"%":t.set(u.substring(1),xB);break;default:t.set(u,TB)}})})}hasProperty(e,t,n){if(n.some(i=>i.name===zc.name))return!0;let r=Ko(e);if(r.includes("-")){if(ru(r)||yl(r))return!1;if(n.some(i=>i.name===Wc.name))return!0}return(this._schema.get(r)||this._schema.get("unknown")).has(t)}hasElement(e,t){if(t.some(r=>r.name===zc.name))return!0;let n=Ko(e);return n.includes("-")&&(ru(n)||yl(n)||t.some(r=>r.name===Wc.name))?!0:this._schema.has(n)}securityContext(e,t,n){n&&(t=this.getMappedPropName(t));let[r,s]=ot(e,!1);return lw(s,t,r)}getMappedPropName(e){return Rg.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...
46
+ If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let t=Ko(e),n=this._schema.get(t)||this._schema.get("unknown");return Array.from(n.keys()).map(r=>bB.get(r)??r)}allKnownEventsOfElement(e){let t=Ko(e);return Array.from(this._eventSchema.get(t)??[])}isKnownEventOfAnyElement(e){return this._allKnownEvents??=new Set(Array.from(this._eventSchema.values()).flatMap(t=>Array.from(t))),this._allKnownEvents.has(e.toLowerCase())}normalizeAnimationStyleProperty(e){return Uw(e)}normalizeAnimationStyleValue(e,t,n){let r="",s=n.toString().trim(),i=null;if(p_(e)&&n!==0&&n!=="0")if(typeof n=="number")r="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&(i=`Please provide a CSS unit value for ${t}:${n}`)}return{error:i,value:s+r}}};function p_(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}}l(p_,"_isPixelDimensionStyle");var re=class{static{l(this,"HtmlTagDefinition")}closedByChildren={};contentType;closedByParent=!1;implicitNamespacePrefix;isVoid;ignoreFirstLf;canSelfClose;preventNamespaceInheritance;constructor({closedByChildren:e,implicitNamespacePrefix:t,contentType:n=wn.PARSABLE_DATA,closedByParent:r=!1,isVoid:s=!1,ignoreFirstLf:i=!1,preventNamespaceInheritance:a=!1,canSelfClose:o=!1}={}){e&&e.length>0&&e.forEach(c=>this.closedByChildren[c]=!0),this.isVoid=s,this.closedByParent=r||s,this.implicitNamespacePrefix=t||null,this.contentType=n,this.ignoreFirstLf=i,this.preventNamespaceInheritance=a,this.canSelfClose=o??s}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},ky,pa;function Cl(e){return pa||(ky=new re({canSelfClose:!0}),pa=Object.assign(Object.create(null),{base:new re({isVoid:!0}),meta:new re({isVoid:!0}),area:new re({isVoid:!0}),embed:new re({isVoid:!0}),link:new re({isVoid:!0}),img:new re({isVoid:!0}),input:new re({isVoid:!0}),param:new re({isVoid:!0}),hr:new re({isVoid:!0}),br:new re({isVoid:!0}),source:new re({isVoid:!0}),track:new re({isVoid:!0}),wbr:new re({isVoid:!0}),p:new re({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 re({closedByChildren:["tbody","tfoot"]}),tbody:new re({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new re({closedByChildren:["tbody"],closedByParent:!0}),tr:new re({closedByChildren:["tr"],closedByParent:!0}),td:new re({closedByChildren:["td","th"],closedByParent:!0}),th:new re({closedByChildren:["td","th"],closedByParent:!0}),col:new re({isVoid:!0}),svg:new re({implicitNamespacePrefix:"svg"}),foreignObject:new re({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new re({implicitNamespacePrefix:"math"}),li:new re({closedByChildren:["li"],closedByParent:!0}),dt:new re({closedByChildren:["dt","dd"]}),dd:new re({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new re({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new re({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new re({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new re({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new re({closedByChildren:["optgroup"],closedByParent:!0}),option:new re({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new re({ignoreFirstLf:!0}),listing:new re({ignoreFirstLf:!0}),style:new re({contentType:wn.RAW_TEXT}),script:new re({contentType:wn.RAW_TEXT}),title:new re({contentType:{default:wn.ESCAPABLE_RAW_TEXT,svg:wn.PARSABLE_DATA}}),textarea:new re({contentType:wn.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new Ki().allKnownElementNames().forEach(t=>{!pa[t]&&wl(t)===null&&(pa[t]=new re({canSelfClose:!1}))})),pa[e]??pa[e.toLowerCase()]??ky}l(Cl,"getHtmlTagDefinition");var Py={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"},AB=class{static{l(this,"PlaceholderRegistry")}_placeHolderNameCounts={};_signatureToName={};getStartTagPlaceholderName(e,t,n){let r=this._hashTag(e,t,n);if(this._signatureToName[r])return this._signatureToName[r];let s=e.toUpperCase(),i=Py[s]||`TAG_${s}`,a=this._generateUniqueName(n?i:`START_${i}`);return this._signatureToName[r]=a,a}getCloseTagPlaceholderName(e){let t=this._hashClosingTag(e);if(this._signatureToName[t])return this._signatureToName[t];let n=e.toUpperCase(),r=Py[n]||`TAG_${n}`,s=this._generateUniqueName(`CLOSE_${r}`);return this._signatureToName[t]=s,s}getPlaceholderName(e,t){let n=e.toUpperCase(),r=`PH: ${n}=${t}`;if(this._signatureToName[r])return this._signatureToName[r];let s=this._generateUniqueName(n);return this._signatureToName[r]=s,s}getUniquePlaceholder(e){return this._generateUniqueName(e.toUpperCase())}getStartBlockPlaceholderName(e,t){let n=this._hashBlock(e,t);if(this._signatureToName[n])return this._signatureToName[n];let r=this._generateUniqueName(`START_BLOCK_${this._toSnakeCase(e)}`);return this._signatureToName[n]=r,r}getCloseBlockPlaceholderName(e){let t=this._hashClosingBlock(e);if(this._signatureToName[t])return this._signatureToName[t];let n=this._generateUniqueName(`CLOSE_BLOCK_${this._toSnakeCase(e)}`);return this._signatureToName[t]=n,n}_hashTag(e,t,n){let r=`<${e}`,s=Object.keys(t).sort().map(a=>` ${a}=${t[a]}`).join(""),i=n?"/>":`></${e}>`;return r+s+i}_hashClosingTag(e){return this._hashTag(`/${e}`,{},!1)}_hashBlock(e,t){let n=t.length===0?"":` (${t.sort().join("; ")})`;return`@${e}${n} {}`}_hashClosingBlock(e){return this._hashBlock(`close_${e}`,[])}_toSnakeCase(e){return e.toUpperCase().replace(/[^A-Z0-9]/g,"_")}_generateUniqueName(e){if(!Object.hasOwn(this._placeHolderNameCounts,e))return this._placeHolderNameCounts[e]=1,e;let n=this._placeHolderNameCounts[e];return this._placeHolderNameCounts[e]=n+1,`${e}_${n}`}},CB=new Og(new sp);function Bg(e,t){let n=new _B(CB,e,t);return(r,s,i,a,o)=>n.toI18nMessage(r,s,i,a,o)}l(Bg,"createI18nMessageFactory");function h_(e,t){return t}l(h_,"noopVisitNodeFn");var _B=class{static{l(this,"_I18nVisitor")}_expressionParser;_retainEmptyTokens;_preserveExpressionWhitespace;constructor(e,t,n){this._expressionParser=e,this._retainEmptyTokens=t,this._preserveExpressionWhitespace=n}toI18nMessage(e,t="",n="",r="",s){let i={isIcu:e.length==1&&e[0]instanceof wi,icuDepth:0,placeholderRegistry:new AB,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:s||h_},a=M(this,e,i);return new Yt(a,i.placeholderToContent,i.placeholderToMessage,t,n,r)}visitElement(e,t){return this._visitElementLike(e,t)}visitComponent(e,t){return this._visitElementLike(e,t)}visitDirective(e,t){throw new Error("Unreachable code")}visitAttribute(e,t){let n=e.valueTokens===void 0||e.valueTokens.length===1?new Gn(e.value,e.valueSpan||e.sourceSpan):this._visitTextWithInterpolation(e.valueTokens,e.valueSpan||e.sourceSpan,t,e.i18n);return t.visitNodeFn(e,n)}visitText(e,t){let n=e.tokens.length===1?new Gn(e.value,e.sourceSpan):this._visitTextWithInterpolation(e.tokens,e.sourceSpan,t,e.i18n);return t.visitNodeFn(e,n)}visitComment(e,t){return null}visitExpansion(e,t){t.icuDepth++;let n={},r=new lo(e.switchValue,e.type,n,e.sourceSpan);if(e.cases.forEach(a=>{n[a.value]=new $n(a.expression.map(o=>o.visit(this,t)),a.expSourceSpan)}),t.icuDepth--,t.isIcu||t.icuDepth>0){let a=t.placeholderRegistry.getUniquePlaceholder(`VAR_${e.type}`);return r.expressionPlaceholder=a,t.placeholderToContent[a]={text:e.switchValue,sourceSpan:e.switchValueSourceSpan},t.visitNodeFn(e,r)}let s=t.placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString());t.placeholderToMessage[s]=this.toI18nMessage([e],"","","",void 0);let i=new Va(r,s,e.sourceSpan);return t.visitNodeFn(e,i)}visitExpansionCase(e,t){throw new Error("Unreachable code")}visitBlock(e,t){let n=M(this,e.children,t);if(e.name==="switch")return new $n(n,e.sourceSpan);let r=e.parameters.map(o=>o.expression),s=t.placeholderRegistry.getStartBlockPlaceholderName(e.name,r),i=t.placeholderRegistry.getCloseBlockPlaceholderName(e.name);t.placeholderToContent[s]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan},t.placeholderToContent[i]={text:e.endSourceSpan?e.endSourceSpan.toString():"}",sourceSpan:e.endSourceSpan??e.sourceSpan};let a=new ts(e.name,r,s,i,n,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return t.visitNodeFn(e,a)}visitBlockParameter(e,t){throw new Error("Unreachable code")}visitLetDeclaration(e,t){return null}_visitElementLike(e,t){let n=M(this,e.children,t),r={},s=l(p=>{r[p.name]=p.value},"visitAttribute"),i,a;e instanceof jt?(i=e.name,a=Cl(e.name).isVoid):(i=e.fullName,a=e.tagName?Cl(e.tagName).isVoid:!1),e.attrs.forEach(s),e.directives.forEach(p=>p.attrs.forEach(s));let o=t.placeholderRegistry.getStartTagPlaceholderName(i,r,a);t.placeholderToContent[o]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan};let c="";a||(c=t.placeholderRegistry.getCloseTagPlaceholderName(i),t.placeholderToContent[c]={text:`</${i}>`,sourceSpan:e.endSourceSpan??e.sourceSpan});let u=new es(i,r,o,c,n,a,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return t.visitNodeFn(e,u)}_visitTextWithInterpolation(e,t,n,r){let s=[],i=!1;for(let a of e)switch(a.type){case 8:case 18:i=!0;let[o,c,u]=a.parts,p=g_(c)||"INTERPOLATION",h=n.placeholderRegistry.getPlaceholderName(p,c);if(this._preserveExpressionWhitespace)n.placeholderToContent[h]={text:a.parts.join(""),sourceSpan:a.sourceSpan},s.push(new Zn(c,h,a.sourceSpan));else{let f=this.normalizeExpression(a);n.placeholderToContent[h]={text:`${o}${f}${u}`,sourceSpan:a.sourceSpan},s.push(new Zn(f,h,a.sourceSpan))}break;default:if(a.parts[0].length>0||this._retainEmptyTokens){let f=s[s.length-1];f instanceof Gn?(f.value+=a.parts[0],f.sourceSpan=new F(f.sourceSpan.start,a.sourceSpan.end,f.sourceSpan.fullStart,f.sourceSpan.details)):s.push(new Gn(a.parts[0],a.sourceSpan))}else this._retainEmptyTokens&&s.push(new Gn(a.parts[0],a.sourceSpan));break}return i?(d_(s,r),new $n(s,t)):s[0]}normalizeExpression(e){let t=e.parts[1],n=this._expressionParser.parseBinding(t,e.sourceSpan,e.sourceSpan.start.offset);return a_(n)}};function d_(e,t){if(t instanceof Yt&&(f_(t),t=t.nodes[0]),t instanceof $n){m_(t.children,e);for(let n=0;n<e.length;n++)e[n].sourceSpan=t.children[n].sourceSpan}}l(d_,"reusePreviousSourceSpans");function f_(e){let t=e.nodes;if(t.length!==1||!(t[0]instanceof $n))throw new Error("Unexpected previous i18n message - expected it to consist of only a single `Container` node.")}l(f_,"assertSingleContainerMessage");function m_(e,t){if(e.length!==t.length)throw new Error(`
47
+ The number of i18n message children changed between first and second pass.
48
+
49
+ First pass (${e.length} tokens):
50
+ ${e.map(n=>`"${n.sourceSpan.toString()}"`).join(`
51
+ `)}
52
+
53
+ Second pass (${t.length} tokens):
54
+ ${t.map(n=>`"${n.sourceSpan.toString()}"`).join(`
55
+ `)}
56
+ `.trim());if(e.some((n,r)=>t[r].constructor!==n.constructor))throw new Error("The types of the i18n message children changed between first and second pass.")}l(m_,"assertEquivalentNodes");var NB=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function g_(e){return e.split(NB)[2]}l(g_,"extractPlaceholderName");var Ly=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","iframe|src","object|codebase","object|data"]);function wf(e,t){return e=e.toLowerCase(),t=t.toLowerCase(),Ly.has(e+"|"+t)||Ly.has("*|"+t)}l(wf,"isTrustedTypesSink");var IB=l(e=>(t,n)=>{let r=e.get(t)??t;return r instanceof ls&&(n instanceof Va&&r.i18n instanceof Yt&&(n.previousMessage=r.i18n),r.i18n=n),n},"setI18nRefs"),Dy=class{static{l(this,"I18nMetaVisitor")}keepI18nAttrs;enableI18nLegacyMessageIdFormat;preserveSignificantWhitespace;retainEmptyTokens;hasI18nMeta=!1;_errors=[];constructor(e=!1,t=!1,n=!0,r=!n){this.keepI18nAttrs=e,this.enableI18nLegacyMessageIdFormat=t,this.preserveSignificantWhitespace=n,this.retainEmptyTokens=r}_generateI18nMessage(e,t="",n){let{meaning:r,description:s,customId:i}=this._parseMetadata(t),o=Bg(this.retainEmptyTokens,this.preserveSignificantWhitespace)(e,r,s,i,n);return this._setMessageId(o,t),this._setLegacyIds(o,t),o}visitAllWithErrors(e){let t=e.map(n=>n.visit(this,null));return new ec(t,this._errors)}visitElement(e){return this._visitElementLike(e),e}visitComponent(e,t){return this._visitElementLike(e),e}visitExpansion(e,t){let n,r=e.i18n;if(this.hasI18nMeta=!0,r instanceof Va){let s=r.name;n=this._generateI18nMessage([e],r);let i=Xm(n);i.name=s,t!==null&&(t.placeholderToMessage[s]=n)}else n=this._generateI18nMessage([e],t||r);return e.i18n=n,e}visitText(e){return e}visitAttribute(e){return e}visitComment(e){return e}visitExpansionCase(e){return e}visitBlock(e,t){return M(this,e.children,t),e}visitBlockParameter(e,t){return e}visitLetDeclaration(e,t){return e}visitDirective(e,t){return e}_visitElementLike(e){let t;if(OT(e)){this.hasI18nMeta=!0;let n=[],r={};for(let s of e.attrs)if(s.name===DT){let i=e.i18n||s.value,a=new Map,o=this.preserveSignificantWhitespace?e.children:vn(new Pg(!1,a),e.children);t=this._generateI18nMessage(o,i,IB(a)),t.nodes.length===0&&(t=void 0),e.i18n=t}else if(s.name.startsWith(Td)){let i=s.name.slice(Td.length),a;e instanceof vt?a=e.tagName===null?!1:wf(e.tagName,i):a=wf(e.name,i),a||S_(i)?this._reportError(s,`Translating attribute '${i}' is disallowed for security reasons.`):r[i]=s.value}else n.push(s);if(Object.keys(r).length)for(let s of n){let i=r[s.name];i!==void 0&&s.value&&(s.i18n=this._generateI18nMessage([s],s.i18n||i))}this.keepI18nAttrs||(e.attrs=n)}M(this,e.children,t)}_parseMetadata(e){return typeof e=="string"?v_(e):e instanceof Yt?e:{}}_setMessageId(e,t){e.id||(e.id=t instanceof Yt&&t.id||xu(e))}_setLegacyIds(e,t){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[hm(e),dm(e)];else if(typeof t!="string"){let n=t instanceof Yt?t:t instanceof Va?t.previousMessage:void 0;e.legacyIds=n?n.legacyIds:[]}}_reportError(e,t){this._errors.push(new k(e.sourceSpan,t))}},kB="|",PB="@@";function v_(e=""){let t,n,r;if(e=e.trim(),e){let s=e.indexOf(PB),i=e.indexOf(kB),a;[a,t]=s>-1?[e.slice(0,s),e.slice(s+2)]:[e,""],[n,r]=i>-1?[a.slice(0,i),a.slice(i+1)]:["",a]}return{customId:t,meaning:n,description:r}}l(v_,"parseI18nMeta");function E_(e){let 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}),Pu(t)}l(E_,"i18nMetaToJSDoc");function S_(e){let t=e.toLowerCase();return t.length>2&&t!=="only"&&t.startsWith("on")}l(S_,"isPossibleEventHandler");function y_(e,t,n,r){let s=w_(t),i=[g(s)];Object.keys(r).length&&(i.push(bl(Ku(r,!0),!0)),i.push(bl({original_code:je(Object.keys(r).map(c=>({key:co(c),quoted:!0,value:t.placeholders[c]?g(t.placeholders[c].sourceSpan.toString()):g(t.placeholderToMessage[c].nodes.map(u=>u.sourceSpan.toString()).join(""))})))})));let a=new Ke(n.name,B("goog").prop("getMsg").callFn(i,null,void 0,[nr()]),Yr,ke.Final);a.addLeadingComment(E_(t));let o=new St(e.set(n));return[a,o]}l(y_,"createGoogleGetMsgStatements");var LB=class{static{l(this,"GetMsgSerializerVisitor")}formatPh(e){return`{$${co(e)}}`}visitText(e){return e.value}visitContainer(e){return e.children.map(t=>t.visit(this)).join("")}visitIcu(e){return _g(e)}visitTagPlaceholder(e){return e.isVoid?this.formatPh(e.startName):`${this.formatPh(e.startName)}${e.children.map(t=>t.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitPlaceholder(e){return this.formatPh(e.name)}visitBlockPlaceholder(e){return`${this.formatPh(e.startName)}${e.children.map(t=>t.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitIcuPlaceholder(e,t){return this.formatPh(e.name)}},DB=new LB;function w_(e){return e.nodes.map(t=>t.visit(DB,null)).join("")}l(w_,"serializeI18nMessageForGetMsg");function T_(e,t,n){let{messageParts:r,placeHolders:s}=x_(t),i=b_(t),a=s.map(u=>n[u.text]),o=ym(t,r,s,a,i),c=e.set(o);return[new St(c,null,[nr()])]}l(T_,"createLocalizeStatements");var OB=class{static{l(this,"LocalizeSerializerVisitor")}placeholderToMessage;pieces;constructor(e,t){this.placeholderToMessage=e,this.pieces=t}visitText(e){if(this.pieces[this.pieces.length-1]instanceof Aa)this.pieces[this.pieces.length-1].text+=e.value;else{let t=new F(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new Aa(e.value,t))}}visitContainer(e){e.children.forEach(t=>t.visit(this))}visitIcu(e){this.pieces.push(new Aa(_g(e),e.sourceSpan))}visitTagPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.startName,e.startSourceSpan??e.sourceSpan)),e.isVoid||(e.children.forEach(t=>t.visit(this)),this.pieces.push(this.createPlaceholderPiece(e.closeName,e.endSourceSpan??e.sourceSpan)))}visitPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan))}visitBlockPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.startName,e.startSourceSpan??e.sourceSpan)),e.children.forEach(t=>t.visit(this)),this.pieces.push(this.createPlaceholderPiece(e.closeName,e.endSourceSpan??e.sourceSpan))}visitIcuPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan,this.placeholderToMessage[e.name]))}createPlaceholderPiece(e,t,n){return new al(co(e,!1),t,n)}};function x_(e){let t=[],n=new OB(e.placeholderToMessage,t);return e.nodes.forEach(r=>r.visit(n)),A_(t)}l(x_,"serializeI18nMessageForLocalize");function b_(e){let t=e.nodes[0],n=e.nodes[e.nodes.length-1];return new F(t.sourceSpan.fullStart,n.sourceSpan.end,t.sourceSpan.fullStart,t.sourceSpan.details)}l(b_,"getSourceSpan");function A_(e){let t=[],n=[];e[0]instanceof al&&t.push(Pc(e[0].sourceSpan.start));for(let r=0;r<e.length;r++){let s=e[r];s instanceof Aa?t.push(s):(n.push(s),e[r-1]instanceof al&&t.push(Pc(e[r-1].sourceSpan.end)))}return e[e.length-1]instanceof al&&t.push(Pc(e[e.length-1].sourceSpan.end)),{messageParts:t,placeHolders:n}}l(A_,"processMessagePieces");function Pc(e){return new Aa("",new F(e,e))}l(Pc,"createEmptyMessagePart");var Oy="ngI18nClosureMode",Ry="i18n_",RB="I18N_EXP_",By="\uFFFD",BB="MSG_",MB=250;function Tf(e){return`${BB}${e}`.toUpperCase()}l(Tf,"getTranslationConstPrefix");function C_(e){return new Ke(e.name,void 0,Yr,void 0,e.sourceSpan)}l(C_,"declareI18nVariable");function __(e){let t=e.relativeContextFilePath.replace(/[^A-Za-z0-9]/g,"_").toUpperCase()+"_",n=new Map,r=new Map,s=new Map,i=new Map;for(let c of e.units)for(let u of c.ops())if(u.kind===d.ExtractedAttribute&&u.i18nContext!==null){let p=n.get(u.i18nContext)??[];p.push(u),n.set(u.i18nContext,p)}else if(u.kind===d.I18nAttributes)r.set(u.target,u);else if(u.kind===d.I18nExpression&&u.usage===Ri.I18nAttribute){let p=s.get(u.target)??[];p.push(u),s.set(u.target,p)}else u.kind===d.I18nMessage&&(u.requiresExtraction===null&&(u.requiresExtraction=i.size>=MB),i.set(u.xref,u));let a=new Map,o=new Map;for(let c of e.units)for(let u of c.create)if(u.kind===d.I18nMessage){if(u.messagePlaceholder===null){let{value:p,statements:h}=Mg(e,t,i,u);if(u.i18nBlock!==null){let f=e.addConst(p,h);o.set(u.i18nBlock,f)}else{e.constsInitializers.push(...h),a.set(u.i18nContext,p);let f=n.get(u.i18nContext);if(f!==void 0)for(let v of f)v.expression=p.clone()}}b.remove(u)}for(let c of e.units)for(let u of c.create)if(Dr(u)){let p=r.get(u.xref);if(p===void 0)continue;let h=s.get(u.xref);if(h===void 0)throw new Error("AssertionError: Could not find any i18n expressions associated with an I18nAttributes instruction");let f=new Set;h=h.filter(E=>{let T=f.has(E.name);return f.add(E.name),!T});let v=h.flatMap(E=>{let T=a.get(E.context);if(T===void 0)throw new Error("AssertionError: Could not find i18n expression's value");return[g(E.name),T]});p.i18nAttributesConfig=e.addConst(new ir(v))}for(let c of e.units)for(let u of c.create)if(u.kind===d.I18nStart){let p=o.get(u.root);if(p===void 0)throw new Error("AssertionError: Could not find corresponding i18n block index for an i18n message op; was an i18n message incorrectly assumed to correspond to an attribute?");u.messageIndex=p}}l(__,"collectI18nConsts");function Mg(e,t,n,r){let s=[],i=new Map;for(let u of r.subMessages){let p=n.get(u),{value:h,statements:f}=Mg(e,t,n,p);s.push(...f);let v=i.get(p.messagePlaceholder)??[];v.push(h),i.set(p.messagePlaceholder,v)}N_(r,i),r.params=new Map([...r.params.entries()].sort());let a=k_(e.pool,r.message.id,t,e.i18nUseExternalIds),o;if(r.needsPostprocessing||r.postprocessingParams.size>0){let u=Object.fromEntries([...r.postprocessingParams.entries()].sort()),p=Ku(u,!1),h=[];r.postprocessingParams.size>0&&h.push(bl(p,!0)),o=l(f=>_(m.i18nPostprocess).callFn([f,...h]),"transformFn")}if(r.requiresExtraction===null)throw new Error("AssertionError: requiresExtraction of a message operation was not computed");let c;if(r.requiresExtraction){let u=e.pool.uniqueName(Ry),p=B("msg"),h=xf(r.message,p,a,r.params,o);h.push(new Qe(p)),e.pool.statements.push(new Fn([],h,L).toDeclStmt(u,ke.Final)),c=B(u).callFn([])}else{let u=B(e.pool.uniqueName(Ry),L);c=u,s.push(...xf(r.message,u,a,r.params,o))}return{value:c,statements:s}}l(Mg,"collectMessage");function N_(e,t){for(let[n,r]of t)r.length===1?e.params.set(n,r[0]):(e.params.set(n,g(`${By}${RB}${n}${By}`)),e.postprocessingParams.set(n,K(r)))}l(N_,"addSubMessageParams");function xf(e,t,n,r,s){let i=Object.fromEntries(r),a=[C_(t),no(I_(),y_(t,e,n,i),T_(t,e,Ku(i,!1)))];return s&&a.push(new St(t.set(s(t)))),a}l(xf,"getTranslationDeclStmts");function I_(){return qi(B(Oy)).notIdentical(g("undefined",Rl)).and(B(Oy))}l(I_,"createClosureModeGuard");function k_(e,t,n,r){let s,i=n;if(r){let a=Tf("EXTERNAL_"),o=e.uniqueName(i);s=`${a}${Er(t)}$$${o}`}else{let a=Tf(i);s=e.uniqueName(a)}return B(s)}l(k_,"i18nGenerateClosureVar");function P_(e){for(let t of e.units){let n=null,r=null,s=new Map,i=new Map,a=new Map;for(let o of t.create)switch(o.kind){case d.I18nStart:if(o.context===null)throw Error("I18n op should have its context set.");n=o;break;case d.I18nEnd:n=null;break;case d.IcuStart:if(o.context===null)throw Error("Icu op should have its context set.");r=o;break;case d.IcuEnd:r=null;break;case d.Text:if(n!==null)if(s.set(o.xref,n),i.set(o.xref,r),o.icuPlaceholder!==null){let c=Yx(e.allocateXrefId(),o.icuPlaceholder,[o.initialValue]);b.replace(o,c),a.set(o.xref,c)}else b.remove(o);break}for(let o of t.update)switch(o.kind){case d.InterpolateText:if(!s.has(o.target))continue;let c=s.get(o.target),u=i.get(o.target),p=a.get(o.target),h=u?u.context:c.context,f=u?Ha.Postproccessing:Ha.Creation,v=[];for(let E=0;E<o.interpolation.expressions.length;E++){let T=o.interpolation.expressions[E];v.push(ag(h,c.xref,c.xref,c.handle,T,p?.xref??null,o.interpolation.i18nPlaceholders[E]??null,f,Ri.I18nText,"",T.sourceSpan??o.sourceSpan))}b.replaceWithMany(o,v),p!==void 0&&(p.strings=o.interpolation.strings);break}}}l(P_,"convertI18nText");function L_(e){for(let t of e.units)for(let n of t.create)switch(n.kind){case d.ElementStart:case d.ConditionalCreate:case d.ConditionalBranchCreate:case d.Template:if(!Array.isArray(n.localRefs))throw new Error("AssertionError: expected localRefs to be an array still");if(n.numSlotsUsed+=n.localRefs.length,n.localRefs.length>0){let r=D_(n.localRefs);n.localRefs=e.addConst(r)}else n.localRefs=null;break}}l(L_,"liftLocalRefs");function D_(e){let t=[];for(let n of e)t.push(g(n.name),g(n.target));return K(t)}l(D_,"serializeLocalRefs");function O_(e){for(let t of e.units){let n=Be.HTML;for(let r of t.create)r.kind===d.ElementStart&&r.namespace!==n&&(b.insertBefore(Ux(r.namespace),r),n=r.namespace)}}l(O_,"emitNamespaceChanges");function R_(e){let t=[],n=0,r=0,s=0,i=0,a=0,o=null;for(;n<e.length;)switch(e.charCodeAt(n++)){case 40:r++;break;case 41:r--;break;case 39:s===0?s=39:s===39&&e.charCodeAt(n-1)!==92&&(s=0);break;case 34:s===0?s=34:s===34&&e.charCodeAt(n-1)!==92&&(s=0);break;case 58:!o&&r===0&&s===0&&(o=Fg(e.substring(a,n-1).trim()),i=n);break;case 59:if(o&&i>0&&r===0&&s===0){let u=e.substring(i,n-1).trim();t.push(o,u),a=n,i=0,o=null}break}if(o&&i){let c=e.slice(i).trim();t.push(o,c)}return t}l(R_,"parse");function Fg(e){return e.replace(/[a-z][A-Z]/g,t=>t.charAt(0)+"-"+t.charAt(1)).toLowerCase()}l(Fg,"hyphenate");function B_(e){let t=new Map;for(let n of e.units)for(let r of n.create)Dr(r)&&t.set(r.xref,r);for(let n of e.units)for(let r of n.create)if(r.kind===d.ExtractedAttribute&&r.bindingKind===D.Attribute&&fg(r.expression)){let s=t.get(r.target);if(s!==void 0&&(s.kind===d.Template||s.kind===d.ConditionalCreate||s.kind===d.ConditionalBranchCreate)&&s.templateKind===lt.Structural)continue;if(r.name==="style"){let i=R_(r.expression.value);for(let a=0;a<i.length-1;a+=2)b.insertBefore(sn(r.target,D.StyleProperty,null,i[a],g(i[a+1]),null,null,ee.STYLE),r);b.remove(r)}else if(r.name==="class"){let i=r.expression.value.trim().split(/\s+/g);for(let a of i)b.insertBefore(sn(r.target,D.ClassName,null,a,null,null,null,ee.NONE),r);b.remove(r)}}}l(B_,"parseExtractedStyles");function M_(e){xa(e.root,e.componentName,{index:0})}l(M_,"nameFunctionsAndVariables");function xa(e,t,n){e.fnName===null&&(e.fnName=e.job.pool.uniqueName(Er(`${t}_${e.job.fnSuffix}`),!1));let r=new Map;for(let s of e.ops())switch(s.kind){case d.Property:case d.DomProperty:s.bindingKind===D.LegacyAnimation&&(s.name="@"+s.name);break;case d.Animation:if(s.handlerFnName===null){let u=s.name.replace(".","");s.handlerFnName=`${e.fnName}_${u}_cb`,s.handlerFnName=Er(s.handlerFnName)}break;case d.AnimationListener:if(s.handlerFnName!==null)break;if(!s.hostListener&&s.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");let i=s.name.replace(".","");s.hostListener?s.handlerFnName=`${t}_${i}_HostBindingHandler`:s.handlerFnName=`${e.fnName}_${s.tag.replace("-","_")}_${i}_${s.targetSlot.slot}_listener`,s.handlerFnName=Er(s.handlerFnName);break;case d.Listener:if(s.handlerFnName!==null)break;if(!s.hostListener&&s.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");let a="";s.isLegacyAnimationListener&&(s.name=`@${s.name}.${s.legacyAnimationPhase}`,a="animation"),s.hostListener?s.handlerFnName=`${t}_${a}${s.name}_HostBindingHandler`:s.handlerFnName=`${e.fnName}_${s.tag.replace("-","_")}_${a}${s.name}_${s.targetSlot.slot}_listener`,s.handlerFnName=Er(s.handlerFnName);break;case d.TwoWayListener:if(s.handlerFnName!==null)break;if(s.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");s.handlerFnName=Er(`${e.fnName}_${s.tag.replace("-","_")}_${s.name}_${s.targetSlot.slot}_listener`);break;case d.Variable:r.set(s.xref,F_(s.variable,n));break;case d.RepeaterCreate:if(!(e instanceof tn))throw new Error("AssertionError: must be compiling a component");if(s.handle.slot===null)throw new Error("Expected slot to be assigned");if(s.emptyView!==null){let u=e.job.views.get(s.emptyView);xa(u,`${t}_${s.functionNameSuffix}Empty_${s.handle.slot+2}`,n)}xa(e.job.views.get(s.xref),`${t}_${s.functionNameSuffix}_${s.handle.slot+1}`,n);break;case d.Projection:if(!(e instanceof tn))throw new Error("AssertionError: must be compiling a component");if(s.handle.slot===null)throw new Error("Expected slot to be assigned");if(s.fallbackView!==null){let u=e.job.views.get(s.fallbackView);xa(u,`${t}_ProjectionFallback_${s.handle.slot}`,n)}break;case d.ConditionalCreate:case d.ConditionalBranchCreate:case d.BoundaryErrorCreate:case d.Template:if(!(e instanceof tn))throw new Error("AssertionError: must be compiling a component");let o=e.job.views.get(s.xref);if(s.handle.slot===null)throw new Error("Expected slot to be assigned");let c=s.functionNameSuffix.length===0?"":`_${s.functionNameSuffix}`;xa(o,`${t}${c}_${s.handle.slot}`,n);break;case d.StyleProp:s.name=bf($_(s.name));break;case d.ClassProp:s.name=bf(s.name);break}for(let s of e.ops())qe(s,i=>{if(!(!(i instanceof xr)||i.name!==null)){if(!r.has(i.xref))throw new Error(`Variable ${i.xref} not yet named`);i.name=r.get(i.xref)}})}l(xa,"addNamesToView");function F_(e,t){if(e.name===null)switch(e.kind){case Oe.Context:e.name=`ctx_r${t.index++}`;break;case Oe.Identifier:let n=e.identifier===un?"i":"";e.name=`${e.identifier}_${n}r${++t.index}`;break;case Oe.BoundaryState:e.name=`bnd_r${++t.index}`;break;default:e.name=`_r${++t.index}`;break}return e.name}l(F_,"getVariableName");function $_(e){return e.startsWith("--")?e:Fg(e)}l($_,"normalizeStylePropName");function bf(e){let t=e.indexOf("!important");return t>-1?e.substring(0,t):e}l(bf,"stripImportant");function U_(e){for(let t of e.units){for(let n of t.functions)Qo(n.ops);for(let n of t.create)(n.kind===d.Listener||n.kind===d.Animation||n.kind===d.AnimationListener||n.kind===d.TwoWayListener)&&Qo(n.handlerOps);Qo(t.create),Qo(t.update)}}l(U_,"mergeNextContextExpressions");function Qo(e){for(let t of e){if(t.kind!==d.Statement||!(t.statement instanceof St)||!(t.statement.expr instanceof Ex))continue;let n=t.statement.expr.steps,r=!0;for(let s=t.next;s.kind!==d.ListEnd&&r;s=s.next)qe(s,(i,a)=>{if(!Vn(i))return i;if(r&&!(a&G.InChildOperation))switch(i.kind){case R.NextContext:i.steps+=n,b.remove(t),r=!1;break;case R.GetCurrentView:case R.Reference:case R.ContextLetReference:r=!1;break}})}}l(Qo,"mergeNextContextsInOps");var FB="ng-container";function V_(e){for(let t of e.units){let n=new Set;for(let r of t.create)r.kind===d.ElementStart&&r.tag===FB&&(r.kind=d.ContainerStart,n.add(r.xref)),r.kind===d.ElementEnd&&n.has(r.xref)&&(r.kind=d.ContainerEnd)}}l(V_,"generateNgContainerOps");function q_(e,t){let n=e.get(t);if(n===void 0)throw new Error("All attributes should have an element-like target.");return n}l(q_,"lookupElement");function H_(e){let t=new Map;for(let n of e.units)for(let r of n.create)Dr(r)&&t.set(r.xref,r);for(let n of e.units)for(let r of n.create)(r.kind===d.ElementStart||r.kind===d.ContainerStart)&&r.nonBindable&&b.insertAfter(Rx(r.xref),r),(r.kind===d.ElementEnd||r.kind===d.ContainerEnd)&&q_(t,r.xref).nonBindable&&b.insertBefore(Bx(r.xref),r)}l(H_,"disableBindings");function Mn(e){return t=>t.kind===e}l(Mn,"kindTest");function Da(e,t){return n=>n.kind===e&&t===n.expression instanceof Ze}l(Da,"kindWithInterpolationTest");function j_(e){return e.kind===d.Listener&&!(e.hostListener&&e.isLegacyAnimationListener)||e.kind===d.TwoWayListener||e.kind===d.Animation||e.kind===d.AnimationListener}l(j_,"basicListenerKindTest");function W_(e){return(e.kind===d.Property||e.kind===d.TwoWayProperty)&&!(e.expression instanceof Ze)}l(W_,"nonInterpolationPropertyKindTest");var $B=[{test:l(e=>e.kind===d.Listener&&e.hostListener&&e.isLegacyAnimationListener,"test")},{test:j_}],UB=[{test:Mn(d.StyleMap),transform:_l},{test:Mn(d.ClassMap),transform:_l},{test:Mn(d.StyleProp)},{test:Mn(d.ClassProp)},{test:Da(d.Attribute,!0)},{test:Da(d.Property,!0)},{test:W_},{test:Da(d.Attribute,!1)},{test:Mn(d.Control)}],VB=[{test:Da(d.DomProperty,!0)},{test:Da(d.DomProperty,!1)},{test:Mn(d.Attribute)},{test:Mn(d.StyleMap),transform:_l},{test:Mn(d.ClassMap),transform:_l},{test:Mn(d.StyleProp)},{test:Mn(d.ClassProp)}],My=new Set([d.Listener,d.TwoWayListener,d.AnimationListener,d.StyleMap,d.ClassMap,d.StyleProp,d.ClassProp,d.Property,d.TwoWayProperty,d.DomProperty,d.Attribute,d.Animation,d.Control]);function z_(e){for(let t of e.units){Af(t.create,$B);let n=t.job.kind===I.Host?VB:UB;Af(t.update,n)}}l(z_,"orderOps");function Af(e,t){let n=[],r=null;for(let s of e){let i=ja(s)?s.target:null;(!My.has(s.kind)||i!==r&&r!==null&&i!==null)&&(b.insertBefore(Cf(n,t),s),n=[],r=null),My.has(s.kind)&&(n.push(s),b.remove(s),r=i??r)}e.push(Cf(n,t))}l(Af,"orderWithin");function Cf(e,t){let n=Array.from(t,()=>new Array);for(let r of e){let s=t.findIndex(i=>i.test(r));n[s].push(r)}return n.flatMap((r,s)=>{let i=t[s].transform;return i?i(r):r})}l(Cf,"reorder");function _l(e){return e.slice(e.length-1)}l(_l,"keepLast");function G_(e){for(let t of e.units){let n=wg(t);for(let r of t.ops())if(r.kind===d.Binding){let s=Y_(n,r.target);X_(r.name)&&s.kind===d.Projection&&b.remove(r)}}}l(G_,"removeContentSelectors");function X_(e){return e.toLowerCase()==="select"}l(X_,"isSelectAttribute");function Y_(e,t){let n=e.get(t);if(n===void 0)throw new Error("All attributes should have an slottable target.");return n}l(Y_,"lookupInXrefMap");function K_(e){for(let t of e.units)Q_(t)}l(K_,"createPipes");function Q_(e){for(let t of e.update)qe(t,(n,r)=>{if(!Vn(n)||n.kind!==R.PipeBinding)return;if(r&G.InChildOperation)throw new Error("AssertionError: pipe bindings should not appear in child expressions");let s=t.target;if(s==null)throw new Error("AssertionError: expected slot handle to be assigned for pipe creation");J_(e,s,n)})}l(Q_,"processPipeBindingsInView");function J_(e,t,n){for(let r=e.create.head.next;r.kind!==d.ListEnd;r=r.next){if(!zi(r)||r.xref!==t)continue;for(;r.next.kind===d.Pipe;)r=r.next;let s=$x(n.target,n.targetSlot,n.name);b.insertBefore(s,r.next);return}throw new Error(`AssertionError: unable to find insertion point for pipe ${n.name}`)}l(J_,"addPipeToCreationBlock");function Z_(e){for(let t of e.units)for(let n of t.update)Pe(n,r=>!(r instanceof Ql)||r.args.length<=4?r:new pg(r.target,r.targetSlot,r.name,K(r.args),r.args.length),G.None)}l(Z_,"createVariadicPipes");function e0(e){$g(e.root,0)}l(e0,"propagateI18nBlocks");function $g(e,t){let n=null;for(let r of e.create)switch(r.kind){case d.I18nStart:r.subTemplateIndex=t===0?null:t,n=r;break;case d.I18nEnd:n.subTemplateIndex===null&&(t=0),n=null;break;case d.ConditionalCreate:case d.ConditionalBranchCreate:case d.Template:t=Jo(e.job.views.get(r.xref),n,r.i18nPlaceholder,t);break;case d.RepeaterCreate:let s=e.job.views.get(r.xref);t=Jo(s,n,r.i18nPlaceholder,t),r.emptyView!==null&&(t=Jo(e.job.views.get(r.emptyView),n,r.emptyI18nPlaceholder,t));break;case d.Projection:r.fallbackView!==null&&(t=Jo(e.job.views.get(r.fallbackView),n,r.fallbackViewI18nPlaceholder,t));break}return t}l($g,"propagateI18nBlocksToTemplates");function Jo(e,t,n,r){if(n!==void 0){if(t===null)throw Error("Expected template with i18n placeholder to be in an i18n block.");r++,t0(e,t)}return $g(e,r)}l(Jo,"propagateI18nBlocksForView");function t0(e,t){if(e.create.head.next?.kind!==d.I18nStart){let n=e.job.allocateXrefId();b.insertAfter(Jl(n,t.message,t.root,null),e.create.head),b.insertBefore(Zl(n,null),e.create.tail)}}l(t0,"wrapTemplateWithI18n");function n0(e){for(let t of e.units)for(let n of t.ops())qe(n,r=>{if(!(r instanceof xl)||r.body===null)return;let s=new qB(r.args.length);r.fn=e.pool.getSharedConstant(s,r.body),r.body=null})}l(n0,"extractPureFunctions");var qB=class extends wm{static{l(this,"PureFunctionConstant")}numArgs;constructor(e){super(),this.numArgs=e}keyOf(e){return e instanceof Wa?`param(${e.index})`:super.keyOf(e)}toSharedConstantDeclaration(e,t){let n=[];for(let s=0;s<this.numArgs;s++)n.push(new Te("a"+s,L));let r=P(t,s=>s instanceof Wa?B("a"+s.index):s,G.None);return new Ke(e,new on(n,r,L),void 0,ke.Final)}};function r0(e){for(let t of e.units)for(let n of t.update)Pe(n,(r,s)=>s&G.InChildOperation?r:r instanceof ir?s0(r):r instanceof Cn?i0(r):r,G.None)}l(r0,"generatePureLiteralStructures");function s0(e){let t=[],n=[];for(let r of e.entries){if(r instanceof _i){if(r.expression.isConstant())t.push(r);else{let s=n.length;n.push(r.expression),t.push(new _i(new Wa(s)))}continue}if(r.isConstant())t.push(r);else{let s=n.length;n.push(r),t.push(new Wa(s))}}return new xl(K(t),n)}l(s0,"transformLiteralArray");function i0(e){let t=[],n=[];for(let r of e.entries){if(r instanceof Nr){if(r.expression.isConstant())t.push(r);else{let s=n.length;n.push(r.expression),t.push(new Nr(new Wa(s)))}continue}if(r.value.isConstant())t.push(r);else{let s=n.length;n.push(r.value),t.push(new Jr(r.key,new Wa(s),r.quoted))}}return new xl(new Cn(t),n)}l(i0,"transformLiteralMap");var HB=new Set(["d","i","m","s","u","v"]);function a0(e){for(let t of e.units)for(let n of t.ops())Pe(n,r=>r instanceof eo&&o0(r)?e.pool.getSharedConstant(new jB,r):r,G.None)}l(a0,"optimizeRegularExpressions");function o0(e){if(!e.flags)return!0;for(let t=0;t<e.flags.length;t++)if(!HB.has(e.flags[t]))return!1;return!0}l(o0,"canOptimizeRegex");var jB=class extends wm{static{l(this,"RegularExpressionConstant")}toSharedConstantDeclaration(e,t){return new Ke(e,t,void 0,ke.Final)}},WB=new Map([["window",m.resolveWindow],["document",m.resolveDocument],["body",m.resolveBody]]),zB=new Map([["class","className"],["for","htmlFor"],["formaction","formAction"],["innerHtml","innerHTML"],["readonly","readOnly"],["tabindex","tabIndex"]]);function l0(e){for(let t of e.units)c0(t,t.create),tc(t,t.update)}l(l0,"reify");function c0(e,t){for(let n of t)switch(Pe(n,r=>Ug(e,r),G.None),n.kind){case d.Text:b.replace(n,wA(n.handle.slot,n.initialValue,n.sourceSpan));break;case d.ElementStart:b.replace(n,e.job.mode===Pt.DomOnly?JA(n.handle.slot,n.tag,n.attributes,n.localRefs,n.startSourceSpan):Zb(n.handle.slot,n.tag,n.attributes,n.localRefs,n.startSourceSpan));break;case d.Element:b.replace(n,e.job.mode===Pt.DomOnly?QA(n.handle.slot,n.tag,n.attributes,n.localRefs,n.wholeSourceSpan):Jb(n.handle.slot,n.tag,n.attributes,n.localRefs,n.wholeSourceSpan));break;case d.ForeignComponent:let r=n.props.size>0?je(Array.from(n.props.entries()).map(([Q,ut])=>({key:Q,value:ut,quoted:ji(Q)}))):null,s=r!==null?Se([],r,L):null;b.replace(n,eA(n.handle.slot,g(n.constIndex),s,n.sourceSpan));break;case d.ElementEnd:b.replace(n,e.job.mode===Pt.DomOnly?ZA(n.sourceSpan):nA(n.sourceSpan));break;case d.ContainerStart:b.replace(n,e.job.mode===Pt.DomOnly?eC(n.handle.slot,n.attributes,n.localRefs,n.startSourceSpan):rA(n.handle.slot,n.attributes,n.localRefs,n.startSourceSpan));break;case d.Container:b.replace(n,e.job.mode===Pt.DomOnly?tC(n.handle.slot,n.attributes,n.localRefs,n.wholeSourceSpan):sA(n.handle.slot,n.attributes,n.localRefs,n.wholeSourceSpan));break;case d.ContainerEnd:b.replace(n,e.job.mode===Pt.DomOnly?nC():iA());break;case d.I18nStart:b.replace(n,_A(n.handle.slot,n.messageIndex,n.subTemplateIndex,n.sourceSpan));break;case d.I18nEnd:b.replace(n,$A(n.sourceSpan));break;case d.I18n:b.replace(n,FA(n.handle.slot,n.messageIndex,n.subTemplateIndex,n.sourceSpan));break;case d.I18nAttributes:if(n.i18nAttributesConfig===null)throw new Error("AssertionError: i18nAttributesConfig was not set");b.replace(n,UA(n.handle.slot,n.i18nAttributesConfig));break;case d.Template:if(!(e instanceof tn))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(n.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let i=e.job.views.get(n.xref);b.replace(n,n.templateKind===lt.Block||e.job.mode===Pt.DomOnly?sC(n.handle.slot,B(i.fnName),i.decls,i.vars,n.tag,n.attributes,n.localRefs,n.startSourceSpan):aA(n.handle.slot,B(i.fnName),i.decls,i.vars,n.tag,n.attributes,n.localRefs,n.startSourceSpan));break;case d.DisableBindings:b.replace(n,oA());break;case d.EnableBindings:b.replace(n,lA());break;case d.Pipe:b.replace(n,pA(n.handle.slot,n.name));break;case d.DeclareLet:b.replace(n,RA(n.handle.slot,n.sourceSpan));break;case d.AnimationString:b.replace(n,hC(n.animationKind,n.expression,n.sanitizer,n.sourceSpan));break;case d.Animation:let a=Zo(e,n.handlerFnName,n.handlerOps,!1);b.replace(n,pC(n.animationKind,a,n.sanitizer,n.sourceSpan));break;case d.AnimationListener:let o=Zo(e,n.handlerFnName,n.handlerOps,n.consumesDollarEvent);b.replace(n,dC(n.animationKind,o,null,n.sourceSpan));break;case d.Listener:let c=Zo(e,n.handlerFnName,n.handlerOps,n.consumesDollarEvent),u=n.eventTarget?WB.get(n.eventTarget):null;if(u===void 0)throw new Error(`Unexpected global target '${n.eventTarget}' defined for '${n.name}' event. Supported list of global targets: window,document,body.`);b.replace(n,e.job.mode===Pt.DomOnly&&!n.hostListener&&!n.isLegacyAnimationListener?rC(n.name,c,u,n.sourceSpan):cA(n.name,c,u,n.hostListener&&n.isLegacyAnimationListener,n.sourceSpan));break;case d.TwoWayListener:b.replace(n,uA(n.name,Zo(e,n.handlerFnName,n.handlerOps,!0),n.sourceSpan));break;case d.Variable:if(n.variable.name===null)throw new Error(`AssertionError: unnamed variable ${n.xref}`);b.replace(n,Kt(new Ke(n.variable.name,n.initializer,L,ke.Final)));break;case d.Namespace:switch(n.active){case Be.HTML:b.replace(n,hA());break;case Be.SVG:b.replace(n,dA());break;case Be.Math:b.replace(n,fA());break}break;case d.Defer:let p=!!n.loadingMinimumTime||!!n.loadingAfterTime||!!n.placeholderMinimumTime;b.replace(n,TA(n.handle.slot,n.mainSlot.slot,n.resolverFn,n.loadingSlot?.slot??null,n.placeholderSlot?.slot??null,n.errorSlot?.slot??null,n.loadingConfig,n.placeholderConfig,p,n.sourceSpan,n.flags));break;case d.DeferOn:let h=[],f=n.trigger.kind;switch(f){case Ee.Never:case Ee.Immediate:break;case Ee.Idle:n.trigger.timeout!=null&&(h=[g(n.trigger.timeout)]);break;case Ee.Timer:h=[g(n.trigger.delay)];break;case Ee.Viewport:n.modifier==="hydrate"?h=n.trigger.options?[n.trigger.options]:[]:(h=[g(n.trigger.targetSlot?.slot??null)],n.trigger.targetSlotViewSteps!==0?h.push(g(n.trigger.targetSlotViewSteps)):n.trigger.options&&h.push(g(null)),n.trigger.options&&h.push(n.trigger.options));break;case Ee.Interaction:case Ee.Hover:n.modifier==="hydrate"?h=[]:(h=[g(n.trigger.targetSlot?.slot??null)],n.trigger.targetSlotViewSteps!==0&&h.push(g(n.trigger.targetSlotViewSteps)));break;default:{let Q=f;throw new Error(`AssertionError: Unsupported reification of defer trigger kind ${Q}`)}}b.replace(n,bA(n.trigger.kind,h,n.modifier,n.sourceSpan));break;case d.ProjectionDef:b.replace(n,AA(n.def));break;case d.EnableIncrementalHydrationRuntime:b.replace(n,xA(n.sourceSpan));break;case d.Projection:if(n.handle.slot===null)throw new Error("No slot was assigned for project instruction");let v=null,E=null,T=null;if(n.fallbackView!==null){if(!(e instanceof tn))throw new Error("AssertionError: must be compiling a component");let Q=e.job.views.get(n.fallbackView);if(Q===void 0)throw new Error("AssertionError: projection had fallback view xref, but fallback view was not found");if(Q.fnName===null||Q.decls===null||Q.vars===null)throw new Error("AssertionError: expected projection fallback view to have been named and counted");v=Q.fnName,E=Q.decls,T=Q.vars}b.replace(n,CA(n.handle.slot,n.projectionSlotIndex,n.attributes,v,E,T,n.sourceSpan));break;case d.ConditionalCreate:if(!(e instanceof tn))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(n.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let y=e.job.views.get(n.xref);b.replace(n,NA(n.handle.slot,B(y.fnName),y.decls,y.vars,n.tag,n.attributes,n.localRefs,n.startSourceSpan));break;case d.ConditionalBranchCreate:if(!(e instanceof tn))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(n.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let N=e.job.views.get(n.xref);b.replace(n,sf(n.handle.slot,B(N.fnName),N.decls,N.vars,n.tag,n.attributes,n.localRefs,n.startSourceSpan));break;case d.BoundaryErrorCreate:if(!(e instanceof tn))throw new Error("AssertionError: must be compiling a component");let V=e.job.views.get(n.xref);b.replace(n,sf(n.handle.slot,B(V.fnName),V.decls,V.vars,null,null,null,n.startSourceSpan));break;case d.BoundaryCreate:if(!(e instanceof tn))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(n.localRefs)&&n.localRefs.length>0)throw new Error("AssertionError: local refs array should have been extracted into a constant");b.replace(n,IA(n.handle.slot,n.startSourceSpan));break;case d.RepeaterCreate:if(n.handle.slot===null)throw new Error("No slot was assigned for repeater instruction");if(!(e instanceof tn))throw new Error("AssertionError: must be compiling a component");let q=e.job.views.get(n.xref);if(q.fnName===null)throw new Error("AssertionError: expected repeater primary view to have been named");let le=null,Ht=null,ge=null;if(n.emptyView!==null){let Q=e.job.views.get(n.emptyView);if(Q===void 0)throw new Error("AssertionError: repeater had empty view xref, but empty view was not found");if(Q.fnName===null||Q.decls===null||Q.vars===null)throw new Error("AssertionError: expected repeater empty view to have been named and counted");le=Q.fnName,Ht=Q.decls,ge=Q.vars}b.replace(n,LA(n.handle.slot,q.fnName,n.decls,n.vars,n.tag,n.attributes,h0(e,n),n.usesComponentInstance,le,Ht,ge,n.emptyTag,n.emptyAttributes,n.wholeSourceSpan));break;case d.SourceLocation:let Le=K(n.locations.map(({targetSlot:Q,offset:ut,line:Jt,column:dn})=>{if(Q.slot===null)throw new Error("No slot was assigned for source location");return K([g(Q.slot),g(ut),g(Jt),g(dn)])}));b.replace(n,gC(n.templatePath,Le));break;case d.ControlCreate:b.replace(n,jA(n.sourceSpan));break;case d.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of create op ${d[n.kind]}`)}}l(c0,"reifyCreateOperations");function tc(e,t){for(let n of t)switch(Pe(n,r=>Ug(e,r),G.None),n.kind){case d.Advance:b.replace(n,mA(n.delta,n.sourceSpan));break;case d.Property:b.replace(n,e.job.mode===Pt.DomOnly&&n.bindingKind!==D.LegacyAnimation&&n.bindingKind!==D.Animation?_f(n):u0(n));break;case d.Control:b.replace(n,p0(n));break;case d.TwoWayProperty:b.replace(n,WA(n.name,n.expression,n.sanitizer,n.sourceSpan));break;case d.StyleProp:b.replace(n,GA(n.name,n.expression,n.unit,n.sourceSpan));break;case d.ClassProp:b.replace(n,XA(n.name,n.expression,n.sourceSpan));break;case d.StyleMap:b.replace(n,YA(n.expression,n.sourceSpan));break;case d.ClassMap:b.replace(n,KA(n.expression,n.sourceSpan));break;case d.I18nExpression:b.replace(n,lC(n.expression,n.sourceSpan));break;case d.I18nApply:b.replace(n,cC(n.handle.slot,n.sourceSpan));break;case d.InterpolateText:b.replace(n,oC(n.interpolation.strings,n.interpolation.expressions,n.sourceSpan));break;case d.Attribute:b.replace(n,zA(n.name,n.expression,n.sanitizer,n.namespace,n.sourceSpan));break;case d.DomProperty:if(n.expression instanceof Ze)throw new Error("not yet handled");n.bindingKind===D.LegacyAnimation||n.bindingKind===D.Animation?b.replace(n,fC(n.name,n.expression,n.sourceSpan)):b.replace(n,_f(n));break;case d.Variable:if(n.variable.name===null)throw new Error(`AssertionError: unnamed variable ${n.xref}`);b.replace(n,Kt(new Ke(n.variable.name,n.initializer,L,ke.Final)));break;case d.Conditional:if(n.processed===null)throw new Error("Conditional test was not set.");b.replace(n,EC(n.processed,n.contextValue,n.sourceSpan));break;case d.Boundary:if(n.processed===null)throw new Error("Boundary test was not set.");let r=n.targetSlot.slot;if(r===null)throw new Error("AssertionError: Boundary target slot not found");let s=n.guarded.targetSlot.slot;if(s===null)throw new Error("AssertionError: Primary slot not found for boundary");b.replace(n,PA(g(r),n.processed,g(s),n.sourceSpan));break;case d.Repeater:b.replace(n,DA(n.collection,n.sourceSpan));break;case d.DeferWhen:b.replace(n,OA(n.modifier,n.expr,n.sourceSpan));break;case d.StoreLet:throw new Error(`AssertionError: unexpected storeLet ${n.declaredName}`);case d.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of update op ${d[n.kind]}`)}}l(tc,"reifyUpdateOperations");function _f(e){return uC(zB.get(e.name)??e.name,e.expression,e.sanitizer,e.sourceSpan)}l(_f,"reifyDomProperty");function u0(e){return Tg(e.name)?VA(e.name,e.expression,e.sourceSpan):qA(e.name,e.expression,e.sanitizer,e.sourceSpan)}l(u0,"reifyProperty");function p0(e){return HA(e.sourceSpan)}l(p0,"reifyControl");function Ug(e,t){if(!Vn(t))return t;switch(t.kind){case R.NextContext:return vA(t.steps);case R.Reference:return gA(t.targetSlot.slot+1+t.offset);case R.ForeignContent:if(!(e instanceof tn))throw new Error("AssertionError: must be compiling a component");let n=e.job.views.get(t.childrenViewXref).contextVariables.size>0;return tA(t.childrenViewHandle.slot,t.foreignComponentConstIndex,n);case R.LexicalRead:throw new Error(`AssertionError: unresolved LexicalRead of ${t.name}`);case R.TwoWayBindingSet:throw new Error("AssertionError: unresolved TwoWayBindingSet");case R.RestoreView:if(typeof t.view=="number")throw new Error("AssertionError: unresolved RestoreView");return SA(t.view);case R.ResetView:return yA(t.expr);case R.GetCurrentView:return EA();case R.ReadVariable:if(t.name===null)throw new Error(`Read of unnamed variable ${t.xref}`);return B(t.name);case R.ReadTemporaryExpr:if(t.name===null)throw new Error(`Read of unnamed temporary ${t.xref}`);return B(t.name);case R.AssignTemporaryExpr:if(t.name===null)throw new Error(`Assign of unnamed temporary ${t.xref}`);return B(t.name).set(t.expr);case R.PureFunctionExpr:if(t.fn===null)throw new Error("AssertionError: expected PureFunctions to have been extracted");return mC(t.varOffset,t.fn,t.args);case R.PureFunctionParameterExpr:throw new Error("AssertionError: expected PureFunctionParameterExpr to have been extracted");case R.PipeBinding:return iC(t.targetSlot.slot,t.varOffset,t.args);case R.PipeBindingVariadic:return aC(t.targetSlot.slot,t.varOffset,t.args);case R.SlotLiteralExpr:return g(t.slot.slot);case R.ContextLetReference:return MA(t.targetSlot.slot);case R.StoreLet:return BA(t.value,t.sourceSpan);case R.TrackContext:return B("this");case R.ArrowFunction:if(t.varOffset===null)throw new Error("AssertionError: variable offset was not assigned to arrow function");return vC(t.varOffset,e.job.pool.getSharedFunctionReference(d0(e,t),"arrowFn"),B(un));default:throw new Error(`AssertionError: Unsupported reification of ir.Expression kind: ${R[t.kind]}`)}}l(Ug,"reifyIrExpression");function Zo(e,t,n,r){tc(e,n);let s=[];for(let a of n){if(a.kind!==d.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${d[a.kind]}`);s.push(a.statement)}let i=[];return r&&i.push(new Te("$event",L)),er(i,s,L,void 0,t)}l(Zo,"reifyListenerHandler");function h0(e,t){if(t.trackByFn!==null)return t.trackByFn;let n=[new Te("$index",Kr),new Te("$item",L)],r;if(t.trackByOps===null)r=t.usesComponentInstance?er(n,[new Qe(t.track)],L):Se(n,t.track,L);else{tc(e,t.trackByOps);let s=[];for(let i of t.trackByOps){if(i.kind!==d.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${d[i.kind]}`);s.push(i.statement)}r=t.usesComponentInstance||s.length!==1||!(s[0]instanceof Qe)?er(n,s,L):Se(n,s[0].value,L)}return t.trackByFn=e.job.pool.getSharedFunctionReference(r,"_forTrack"),t.trackByFn}l(h0,"reifyTrackBy");function d0(e,t){tc(e,t.ops);let n=[];for(let s of t.ops){if(s.kind!==d.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${d[s.kind]}`);n.push(s.statement)}let r=n.length===1&&n[0]instanceof Qe?n[0].value:n;return Se([new Te(t.contextName,L),new Te(t.currentViewName,L)],Se(t.parameters,r,L),L)}l(d0,"getArrowFunctionFactory");function f0(e){for(let t of e.units)for(let n of t.update)switch(n.kind){case d.Attribute:case d.Binding:case d.ClassProp:case d.ClassMap:case d.Property:case d.StyleProp:case d.StyleMap:n.expression instanceof dg&&b.remove(n);break}}l(f0,"removeEmptyBindings");function m0(e){for(let t of e.units)for(let n of t.create)switch(n.kind){case d.I18nContext:b.remove(n);break;case d.I18nStart:n.context=null;break}}l(m0,"removeI18nContexts");function g0(e){for(let t of e.units)for(let n of t.update){if(n.kind!==d.Variable||n.variable.kind!==Oe.Identifier||!(n.initializer instanceof lg))continue;let r=n.variable.identifier,s=n;for(;s&&s.kind!==d.ListEnd;)Pe(s,i=>i instanceof ht&&i.name===r?g(void 0):i,G.None),s=s.prev}}l(g0,"removeIllegalLetReferences");function v0(e){for(let t of e.units){let n=new Set;for(let r of t.update)r.kind===d.I18nExpression&&n.add(r.i18nOwner);for(let r of t.create)switch(r.kind){case d.I18nAttributes:if(n.has(r.xref))continue;b.remove(r)}}}l(v0,"removeUnusedI18nAttributesOps");function E0(e){for(let t of e.units)S0(t)}l(E0,"resolveBoundaries");function S0(e){let t=new Map;for(let n of e.ops())if(n.kind===d.Variable&&n.variable.kind===Oe.BoundaryState){let r=n.variable;t.set(r.boundaryXref,n.xref)}for(let n of e.ops())Pe(n,r=>{if(r instanceof og){let s=t.get(r.xref);if(s===void 0)throw new Error(`Could not find variable for boundary ${r.xref}`);return new xr(s)}return r},G.None)}l(S0,"processUnit");function y0(e){for(let t of e.units){for(let n of t.functions)Oa(t,n.ops);Oa(t,t.create),Oa(t,t.update)}}l(y0,"resolveContexts");function Oa(e,t){let n=new Map;n.set(e.xref,B(un));for(let r of t)switch(r.kind){case d.Variable:r.variable.kind===Oe.Context&&n.set(r.variable.view,new xr(r.xref));break;case d.Animation:case d.AnimationListener:case d.Listener:case d.TwoWayListener:Oa(e,r.handlerOps);break;case d.RepeaterCreate:r.trackByOps!==null&&Oa(e,r.trackByOps);break}e===e.job.root&&n.set(e.xref,B(un));for(let r of t)Pe(r,s=>{if(s instanceof Gi){if(!n.has(s.view))throw new Error(`No context found for reference to view ${s.view} from view ${e.xref}`);return n.get(s.view)}else return s},G.None)}l(Oa,"processLexicalScope$1");function w0(e){for(let t of e.units)for(let n of t.create)if(n.kind===d.Defer){if(n.resolverFn!==null)continue;if(n.ownResolverFn!==null){if(n.handle.slot===null)throw new Error("AssertionError: slot must be assigned before extracting defer deps functions");let r=t.fnName?.replace("_Template","");n.resolverFn=e.pool.getSharedFunctionReference(n.ownResolverFn,`${r}_Defer_${n.handle.slot}_DepsFn`,!1)}}}l(w0,"resolveDeferDepsFns");function T0(e){for(let t of e.units)Nf(t.create),Nf(t.update)}l(T0,"resolveDollarEvent");function Nf(e){for(let t of e)(t.kind===d.Listener||t.kind===d.TwoWayListener||t.kind===d.AnimationListener)&&Pe(t,n=>n instanceof ht&&n.name==="$event"?((t.kind===d.Listener||t.kind===d.AnimationListener)&&(t.consumesDollarEvent=!0),new Un(n.name)):n,G.InChildOperation)}l(Nf,"transformDollarEvent");function x0(e){for(let t of e.units){let n=new Map;for(let r of t.create)r.kind===d.ForeignComponent&&n.set(r.xref,r);for(let r of t.create){if(r.kind!==d.Content)continue;let s=n.get(r.target);if(s===void 0)throw new Error("AssertionError: ContentOp target not found");let i=r.propertyName.charAt(0).toUpperCase()+r.propertyName.slice(1),a=Ju(r.view,lt.NgTemplate,null,i,Be.HTML,void 0,r.startSourceSpan,r.sourceSpan);b.replace(r,a);let o=new PR(a.xref,a.handle,s.constIndex),c=e.allocateXrefId(),u={kind:Oe.Identifier,name:null,identifier:r.propertyName,local:!0},p=Rn(c,u,o,Ot.None);b.insertBefore(p,s),s.props.set(r.propertyName,new xr(c))}}}l(x0,"resolveForeignContent");function b0(e){let t=new Map,n=new Map;for(let r of e.units)for(let s of r.create)switch(s.kind){case d.I18nContext:t.set(s.xref,s);break;case d.ElementStart:n.set(s.xref,s);break}Dn(e,e.root,t,n)}l(b0,"resolveI18nElementPlaceholders");function Dn(e,t,n,r,s){let i=null,a=new Map;for(let o of t.create)switch(o.kind){case d.I18nStart:if(!o.context)throw Error("Could not find i18n context for i18n op");i={i18nBlock:o,i18nContext:n.get(o.context)};break;case d.I18nEnd:i=null;break;case d.ElementStart:if(o.i18nPlaceholder!==void 0){if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");If(o,i.i18nContext,i.i18nBlock,s),s&&o.i18nPlaceholder.closeName&&a.set(o.xref,s),s=void 0}break;case d.ElementEnd:let c=r.get(o.xref);if(c&&c.i18nPlaceholder!==void 0){if(i===null)throw Error("AssertionError: i18n tag placeholder should only occur inside an i18n block");kf(c,i.i18nContext,i.i18nBlock,a.get(o.xref)),a.delete(o.xref)}break;case d.Projection:if(o.i18nPlaceholder!==void 0){if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");If(o,i.i18nContext,i.i18nBlock,s),kf(o,i.i18nContext,i.i18nBlock,s),s=void 0}if(o.fallbackView!==null){let f=e.views.get(o.fallbackView);if(o.fallbackViewI18nPlaceholder===void 0)Dn(e,f,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");el(e,f,o.handle.slot,o.fallbackViewI18nPlaceholder,i.i18nContext,i.i18nBlock,s),Dn(e,f,n,r),tl(e,f,o.handle.slot,o.fallbackViewI18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0}}break;case d.ConditionalCreate:case d.ConditionalBranchCreate:case d.Template:let u=e.views.get(o.xref);if(o.i18nPlaceholder===void 0)Dn(e,u,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");o.templateKind===lt.Structural?Dn(e,u,n,r,o):(el(e,u,o.handle.slot,o.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),Dn(e,u,n,r),tl(e,u,o.handle.slot,o.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0)}break;case d.RepeaterCreate:if(s!==void 0)throw Error("AssertionError: Unexpected structural directive associated with @for block");let p=o.handle.slot+1,h=e.views.get(o.xref);if(o.i18nPlaceholder===void 0)Dn(e,h,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");el(e,h,p,o.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),Dn(e,h,n,r),tl(e,h,p,o.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0}if(o.emptyView!==null){let f=o.handle.slot+2,v=e.views.get(o.emptyView);if(o.emptyI18nPlaceholder===void 0)Dn(e,v,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");el(e,v,f,o.emptyI18nPlaceholder,i.i18nContext,i.i18nBlock,s),Dn(e,v,n,r),tl(e,v,f,o.emptyI18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0}}break}}l(Dn,"resolvePlaceholdersForView");function If(e,t,n,r){let{startName:s,closeName:i}=e.i18nPlaceholder,a=we.ElementTag|we.OpenTag,o=e.handle.slot;r!==void 0&&(a|=we.TemplateTag,o={element:o,template:r.handle.slot}),i||(a|=we.CloseTag),Mi(t.params,s,o,n.subTemplateIndex,a)}l(If,"recordElementStart");function kf(e,t,n,r){let{closeName:s}=e.i18nPlaceholder;if(s){let i=we.ElementTag|we.CloseTag,a=e.handle.slot;r!==void 0&&(i|=we.TemplateTag,a={element:a,template:r.handle.slot}),Mi(t.params,s,a,n.subTemplateIndex,i)}}l(kf,"recordElementClose");function el(e,t,n,r,s,i,a){let{startName:o,closeName:c}=r,u=we.TemplateTag|we.OpenTag;c||(u|=we.CloseTag),a!==void 0&&Mi(s.params,o,a.handle.slot,i.subTemplateIndex,u),Mi(s.params,o,n,Vg(e,i,t),u)}l(el,"recordTemplateStart");function tl(e,t,n,r,s,i,a){let{closeName:o}=r,c=we.TemplateTag|we.CloseTag;o&&(Mi(s.params,o,n,Vg(e,i,t),c),a!==void 0&&Mi(s.params,o,a.handle.slot,i.subTemplateIndex,c))}l(tl,"recordTemplateClose");function Vg(e,t,n){for(let r of n.create)if(r.kind===d.I18nStart)return r.subTemplateIndex;return t.subTemplateIndex}l(Vg,"getSubTemplateIndexForTemplateTag");function Mi(e,t,n,r,s){let i=e.get(t)??[];i.push({value:n,subTemplateIndex:r,flags:s}),e.set(t,i)}l(Mi,"addParam");function A0(e){let t=new Map,n=new Map,r=new Map;for(let a of e.units)for(let o of a.create)switch(o.kind){case d.I18nStart:t.set(o.xref,o.subTemplateIndex);break;case d.I18nContext:n.set(o.xref,o);break;case d.IcuPlaceholder:r.set(o.xref,o);break}let s=new Map,i=l(a=>a.usage===Ri.I18nText?a.i18nOwner:a.context,"referenceIndex");for(let a of e.units)for(let o of a.update)if(o.kind===d.I18nExpression){let c=s.get(i(o))||0,u=t.get(o.i18nOwner)??null,p={value:c,subTemplateIndex:u,flags:we.ExpressionIndex};C0(o,p,n,r),s.set(i(o),c+1)}}l(A0,"resolveI18nExpressionPlaceholders");function C0(e,t,n,r){if(e.i18nPlaceholder!==null){let s=n.get(e.context),i=e.resolutionTime===Ha.Creation?s.params:s.postprocessingParams,a=i.get(e.i18nPlaceholder)||[];a.push(t),i.set(e.i18nPlaceholder,a)}e.icuPlaceholder!==null&&r.get(e.icuPlaceholder)?.expressionPlaceholders.push(t)}l(C0,"updatePlaceholder");function _0(e){let t=new Map;for(let n of e.units)for(let r of n.ops())if(r.kind===d.ElementStart||r.kind===d.Template){let s=r.tag??"";switch(r.namespace){case Be.SVG:s=`:${ip}:${s}`;break;case Be.Math:s=`:${ap}:${s}`;break}t.set(r.xref,s)}for(let n of e.units)for(let r of n.create)if(r.kind===d.ExtractedAttribute&&r.i18nContext!==null&&r.expression!==null){let s=t.get(r.target)??"",i=r.expression;switch(r.securityContext){case ee.HTML:i=_(m.sanitizeHtml).callFn([i]);break;case ee.STYLE:i=_(m.sanitizeStyle).callFn([i]);break;case ee.SCRIPT:i=_(m.sanitizeScript).callFn([i]);break;case ee.URL:i=_(m.sanitizeUrl).callFn([i]);break;case ee.RESOURCE_URL:i=_(m.sanitizeResourceUrl).callFn([i]);break;case ee.ATTRIBUTE_NO_BINDING:i=_(m.validateAttribute).callFn([i,g(s),g(r.name)]);break}r.expression=i}}l(_0,"resolveI18nAttrSanitizers");function N0(e){for(let t of e.units){for(let n of t.functions)Ra(t,n.ops,null);Ra(t,t.create,null),Ra(t,t.update,null)}}l(N0,"resolveNames");function Ra(e,t,n){let r=new Map,s=new Map;for(let i of t)switch(i.kind){case d.Variable:switch(i.variable.kind){case Oe.Identifier:if(i.variable.local){if(s.has(i.variable.identifier))continue;s.set(i.variable.identifier,i.xref)}else if(r.has(i.variable.identifier))continue;r.set(i.variable.identifier,i.xref);break;case Oe.Alias:if(r.has(i.variable.identifier))continue;r.set(i.variable.identifier,i.xref);break;case Oe.SavedView:n={view:i.variable.view,variable:i.xref};break}break;case d.Animation:case d.AnimationListener:case d.Listener:case d.TwoWayListener:Ra(e,i.handlerOps,n);break;case d.RepeaterCreate:i.trackByOps!==null&&Ra(e,i.trackByOps,n);break}for(let i of t)i.kind===d.Listener||i.kind===d.TwoWayListener||i.kind===d.Animation||i.kind===d.AnimationListener||Pe(i,a=>{if(a instanceof ht)return s.has(a.name)?new xr(s.get(a.name)):r.has(a.name)?new xr(r.get(a.name)):new ft(new Gi(e.job.root.xref),a.name);if(a instanceof ug&&typeof a.view=="number"){if(n===null||n.view!==a.view)throw new Error(`AssertionError: no saved view ${a.view} from view ${e.xref}`);return a.view=new xr(n.variable),a}else return a},G.None);for(let i of t)qe(i,a=>{if(a instanceof ht)throw new Error(`AssertionError: no lexical reads should remain, but found read of ${a.name}`)})}l(Ra,"processLexicalScope");var GB=new Map([[ee.HTML,m.sanitizeHtml],[ee.RESOURCE_URL,m.sanitizeResourceUrl],[ee.SCRIPT,m.sanitizeScript],[ee.STYLE,m.sanitizeStyle],[ee.URL,m.sanitizeUrl],[ee.ATTRIBUTE_NO_BINDING,m.validateAttribute]]),XB=new Map([[ee.HTML,m.trustConstantHtml],[ee.RESOURCE_URL,m.trustConstantResourceUrl]]);function I0(e){for(let t of e.units){if(e.kind!==I.Host){for(let n of t.create)if(n.kind===d.ExtractedAttribute){let r=XB.get(Pf(n.securityContext))??null;n.trustedValueFn=r!==null?_(r):null}}for(let n of t.update)switch(n.kind){case d.Property:case d.Attribute:case d.DomProperty:case d.TwoWayProperty:let r=null;Array.isArray(n.securityContext)&&k0(n.securityContext)?r=m.sanitizeUrlOrResourceUrl:r=GB.get(Pf(n.securityContext))??null,n.sanitizer=r!==null?_(r):null;break}}}l(I0,"resolveSanitizers");function k0(e){let t=!1,n=!1,r=!1;for(let s of e)switch(s){case ee.URL:t=!0;break;case ee.RESOURCE_URL:n=!0;break;case ee.NONE:r=!0;break;default:return!1}return(t||n)&&r||t&&n}l(k0,"hasCompositeUrlSecurityContext");function Pf(e){if(!Array.isArray(e))return e;if(e.length<2)return e[0]??ee.NONE;let t=e.filter(n=>n!==ee.NONE);if(t.length>1)throw Error("AssertionError: Ambiguous security context");return t[0]??ee.NONE}l(Pf,"getOnlySecurityContext");function P0(e){for(let t of e.units)for(let n of t.ops())Pe(n,r=>L0(r),G.None)}l(P0,"removeSafeNavigationMigration");function L0(e){if(e instanceof Ye&&e.fn instanceof ht&&e.fn.name==="$safeNavigationMigration"){if(e.args.length!==1)throw new Error("The $safeNavigationMigration builtin function expects exactly one argument.");return new hg(e.args[0])}return e}l(L0,"convertSafeNavigationMigrationCall");function D0(e){for(let t of e.units){for(let n of t.functions)Lf(e,t,n.ops)&&Df(t,n.ops,B(n.currentViewName));t.create.prepend([Rn(t.job.allocateXrefId(),{kind:Oe.SavedView,name:null,view:t.xref},new DR,Ot.None)]);for(let n of t.create)(n.kind===d.Listener||n.kind===d.TwoWayListener||n.kind===d.Animation||n.kind===d.AnimationListener)&&Lf(e,t,n.handlerOps)&&Df(t,n.handlerOps,t.xref)}}l(D0,"saveAndRestoreView");function Lf(e,t,n){let r=t!==e.root;if(!r)for(let s of n)qe(s,i=>{(i instanceof vx||i instanceof cg)&&(r=!0)});return r}l(Lf,"needsRestoreView");function Df(e,t,n){t.prepend([Rn(e.job.allocateXrefId(),{kind:Oe.Context,name:null,view:e.xref},new ug(n),Ot.None)]);for(let r of t)r.kind===d.Statement&&r.statement instanceof Qe&&(r.statement.value=new Sx(r.statement.value))}l(Df,"addSaveRestoreViewOperation");function O0(e){for(let t of e.units){let n=0;for(let r of t.create)zi(r)&&(r.handle.slot=n,n+=r.numSlotsUsed);t.decls=n}for(let t of e.units)for(let n of t.ops())if(n.kind===d.Template||n.kind===d.ConditionalCreate||n.kind===d.ConditionalBranchCreate||n.kind===d.RepeaterCreate){let r=e.views.get(n.xref);n.decls=r.decls}}l(O0,"allocateSlots");function R0(e){let t=new Set,n=new Map;for(let r of e.units)for(let s of r.ops())s.kind===d.DeclareLet&&n.set(s.xref,s),qe(s,i=>{i instanceof cg&&t.add(i.target)});for(let r of e.units)for(let s of r.update)Pe(s,i=>i instanceof lg&&!t.has(i.target)?(B0(i)||b.remove(n.get(i.target)),i.value):i,G.None)}l(R0,"optimizeStoreLet");function B0(e){let t=!1;return P(e,n=>((n instanceof Ql||n instanceof pg)&&(t=!0),n),G.None),t}l(B0,"hasPipe");function M0(e){let t=new Set;for(let n of e.units)for(let r of n.ops())qe(r,s=>{if(s instanceof ce)switch(V0(s,t),s.operator){case A.Exponentiation:F0(s,t);break;case A.NullishCoalesce:$0(s,t);break;case A.And:case A.Or:U0(s,t)}else s instanceof ft||s instanceof An?Lc(s.receiver,t):s instanceof Ye?Lc(s.fn,t):s instanceof Za&&Lc(s.tag,t)});for(let n of e.units)for(let r of n.ops())Pe(r,s=>s instanceof Ft?t.has(s)?s:s.expr:s,G.None)}l(M0,"stripNonrequiredParentheses");function F0(e,t){e.lhs instanceof Ft&&(e.lhs.expr instanceof _r||qg(e.lhs.expr))&&t.add(e.lhs)}l(F0,"checkExponentiationParens");function $0(e,t){e.lhs instanceof Ft&&(Of(e.lhs.expr)||e.lhs.expr instanceof an)&&t.add(e.lhs),e.rhs instanceof Ft&&(Of(e.rhs.expr)||e.rhs.expr instanceof an)&&t.add(e.rhs)}l($0,"checkNullishCoalescingParens");function U0(e,t){e.lhs instanceof Ft&&e.lhs.expr instanceof ce&&e.lhs.expr.operator===A.NullishCoalesce&&t.add(e.lhs)}l(U0,"checkAndOrParens");function Of(e){return e instanceof ce&&(e.operator===A.And||e.operator===A.Or)}l(Of,"isLogicalAndOr");function Lc(e,t){e instanceof Ft&&(qg(e.expr)||e.expr instanceof on||e.expr instanceof ct&&typeof e.expr.value=="number")&&t.add(e)}l(Lc,"checkTargetParens");function V0(e,t){e.lhs instanceof Ft&&e.lhs.expr instanceof on&&t.add(e.lhs),!e.isAssignment()&&e.rhs instanceof Ft&&e.rhs.expr instanceof on&&t.add(e.rhs)}l(V0,"checkArrowFunctionOperandParens");function qg(e){return e instanceof to||e instanceof Ui||e instanceof Bl}l(qg,"isUnaryLikeExpr");function q0(e){for(let t of e.units)for(let n of t.update)if(n.kind===d.Binding)switch(n.bindingKind){case D.ClassName:if(n.expression instanceof Ze)throw new Error("Unexpected interpolation in ClassName binding");b.replace(n,ax(n.target,n.name,n.expression,n.sourceSpan));break;case D.StyleProperty:b.replace(n,ix(n.target,n.name,n.expression,n.unit,n.sourceSpan));break;case D.Property:case D.Template:n.name==="style"?b.replace(n,ox(n.target,n.expression,n.sourceSpan)):n.name==="class"&&b.replace(n,lx(n.target,n.expression,n.sourceSpan));break}}l(q0,"specializeStyleBindings");function H0(e){for(let t of e.units){t.create.prepend(Ba(t.create)),t.update.prepend(Ba(t.update));for(let n of t.functions)n.ops.prepend(Ba(n.ops))}}l(H0,"generateTemporaryVariables");function Ba(e){let t=0,n=[];for(let r of e){let s=new Map;qe(r,(c,u)=>{u&G.InChildOperation||c instanceof za&&s.set(c.xref,c)});let i=0,a=new Set,o=new Map;qe(r,(c,u)=>{u&G.InChildOperation||(c instanceof rs?(a.has(c.xref)||(a.add(c.xref),o.set(c.xref,`tmp_${t}_${i++}`)),Rf(o,c)):c instanceof za&&(s.get(c.xref)===c&&i--,Rf(o,c)))}),n.push(...Array.from(new Set(o.values())).map(c=>Kt(new Ke(c)))),t++,r.kind===d.Listener||r.kind===d.Animation||r.kind===d.AnimationListener||r.kind===d.TwoWayListener?r.handlerOps.prepend(Ba(r.handlerOps)):r.kind===d.RepeaterCreate&&r.trackByOps!==null&&r.trackByOps.prepend(Ba(r.trackByOps))}return n}l(Ba,"generateTemporaries");function Rf(e,t){let n=e.get(t.xref);if(n===void 0)throw new Error(`Found xref with unassigned name: ${t.xref}`);t.name=n}l(Rf,"assignName");function j0(e){for(let t of e.units)for(let n of t.create)if(n.kind===d.RepeaterCreate)if(n.track instanceof Un&&n.track.name==="$index")n.trackByFn=_(m.repeaterTrackByIndex);else if(n.track instanceof Un&&n.track.name==="$item")n.trackByFn=_(m.repeaterTrackByIdentity);else if(W0(e.root.xref,n.track))n.usesComponentInstance=!0,n.track.receiver.receiver.view===t.xref?n.trackByFn=n.track.receiver:(n.trackByFn=_(m.componentInstance).callFn([]).prop(n.track.receiver.name),n.track=n.trackByFn);else{n.track=P(n.track,s=>{if(s instanceof Ql||s instanceof pg)throw new Error("Illegal State: Pipes are not allowed in this context");return s instanceof Gi?(n.usesComponentInstance=!0,new LR(s.view)):s},G.None);let r=new b;r.push(Kt(new Qe(n.track,n.track.sourceSpan,[nr()]))),n.trackByOps=r}}l(j0,"optimizeTrackFns");function W0(e,t){if(!(t instanceof Ye)||t.args.length===0||t.args.length>2||!(t.receiver instanceof ft&&t.receiver.receiver instanceof Gi)||t.receiver.receiver.view!==e)return!1;let[n,r]=t.args;return!(n instanceof Un)||n.name!=="$index"?!1:t.args.length===1?!0:!(!(r instanceof Un)||r.name!=="$item")}l(W0,"isTrackByFunctionCall");function z0(e){for(let t of e.units)for(let n of t.create)n.kind===d.RepeaterCreate&&(n.track=P(n.track,r=>{if(r instanceof ht){if(n.varNames.$index.has(r.name))return B("$index");if(r.name===n.varNames.$implicit)return B("$item")}return r},G.None))}l(z0,"generateTrackVariables");function G0(e){for(let t of e.units)for(let n of t.create)n.kind===d.TwoWayListener&&Pe(n,r=>{if(!(r instanceof yx))return r;let{target:s,value:i}=r;if(s instanceof ft||s instanceof An)return rf(s,i).or(s.set(i));if(s instanceof xr)return rf(s,i);throw new Error("Unsupported expression in two-way action binding.")},G.InChildOperation)}l(G0,"transformTwoWayBindingSet");function X0(e){for(let t of e.units){let n=0;for(let i of t.ops())Cc(i)&&(n+=Y0(i));let r=l(i=>{Vn(i)&&(i instanceof xl||(Nd(i)&&(i.varOffset=n),Cc(i)&&(n+=Bf(i))))},"firstPassCountExpressionVars"),s=l(i=>{!Vn(i)||!(i instanceof xl)||(Nd(i)&&(i.varOffset=n),Cc(i)&&(n+=Bf(i)))},"secondPassCountExpressionVars");for(let i of t.create)qe(i,r);for(let i of t.update)qe(i,r);for(let i of t.create)qe(i,s);for(let i of t.update)qe(i,s);t.vars=n}if(e instanceof yg)for(let t of e.units)for(let n of t.create){if(n.kind!==d.Template&&n.kind!==d.RepeaterCreate&&n.kind!==d.ConditionalCreate&&n.kind!==d.ConditionalBranchCreate)continue;let r=e.views.get(n.xref);n.vars=r.vars}}l(X0,"countVariables");function Y0(e){let t;switch(e.kind){case d.Attribute:return t=1,e.expression instanceof Ze&&!K0(e.expression)&&(t+=e.expression.expressions.length),t;case d.Property:case d.DomProperty:return t=1,e.expression instanceof Ze&&(t+=e.expression.expressions.length),t;case d.Control:return 2;case d.TwoWayProperty:return 1;case d.StyleProp:case d.ClassProp:case d.StyleMap:case d.ClassMap:return t=2,e.expression instanceof Ze&&(t+=e.expression.expressions.length),t;case d.InterpolateText:return e.interpolation.expressions.length;case d.I18nExpression:case d.Conditional:case d.Boundary:case d.DeferWhen:case d.StoreLet:return 1;case d.RepeaterCreate:return e.emptyView?1:0;default:throw new Error(`Unhandled op: ${d[e.kind]}`)}}l(Y0,"varsUsedByOp");function Bf(e){switch(e.kind){case R.PureFunctionExpr:return 1+e.args.length;case R.PipeBinding:return 1+e.args.length;case R.PipeBindingVariadic:return 1+e.numArgs;case R.StoreLet:case R.ArrowFunction:return 1;default:throw new Error(`AssertionError: unhandled ConsumesVarsTrait expression ${e.constructor.name}`)}}l(Bf,"varsUsedByIrExpression");function K0(e){return!(e.expressions.length!==1||e.strings.length!==2||e.strings[0]!==""||e.strings[1]!=="")}l(K0,"isSingletonInterpolation");function Q0(e){for(let t of e.units){for(let n of t.functions)ga(n.ops);ga(t.create),ga(t.update);for(let n of t.create)n.kind===d.Listener||n.kind===d.Animation||n.kind===d.AnimationListener||n.kind===d.TwoWayListener?ga(n.handlerOps):n.kind===d.RepeaterCreate&&n.trackByOps!==null&&ga(n.trackByOps);for(let n of t.functions)va(n.ops,null),Mf(n.ops);for(let n of t.create)n.kind===d.Listener||n.kind===d.Animation||n.kind===d.AnimationListener||n.kind===d.TwoWayListener?(va(n.handlerOps,nl),Mf(n.handlerOps)):n.kind===d.RepeaterCreate&&n.trackByOps!==null&&va(n.trackByOps,nl);va(t.create,nl),va(t.update,nl)}}l(Q0,"optimizeVariables");var it;(function(e){e[e.None=0]="None",e[e.ViewContextRead=1]="ViewContextRead",e[e.ViewContextWrite=2]="ViewContextWrite",e[e.SideEffectful=4]="SideEffectful"})(it||(it={}));function nl(e){return!(e&G.InArrowFunctionOperation)}l(nl,"skipArrowFunctionOps");function ga(e){let t=new Map;for(let n of e)n.kind===d.Variable&&n.flags&Ot.AlwaysInline&&(qe(n,r=>{if(Vn(r)&&op(r)!==it.None)throw new Error("AssertionError: A context-sensitive variable was marked AlwaysInline")}),t.set(n.xref,n)),Pe(n,r=>r instanceof xr&&t.has(r.xref)?t.get(r.xref).initializer.clone():r,G.None);for(let n of t.values())b.remove(n)}l(ga,"inlineAlwaysInlineVariables");function va(e,t){let n=new Map,r=new Map,s=new Set,i=new Map;for(let u of e){if(u.kind===d.Variable){if(n.has(u.xref)||r.has(u.xref))throw new Error(`Should not see two declarations of the same variable: ${u.xref}`);n.set(u.xref,u),r.set(u.xref,0)}i.set(u,J0(u,t)),Z0(u,r,s,t)}let a=!1;for(let u of e.reversed()){let p=i.get(u);if(u.kind===d.Variable&&r.get(u.xref)===0){if(a&&p.fences&it.ViewContextWrite||p.fences&it.SideEffectful){let h=Kt(u.initializer.toStmt());i.set(h,p),b.replace(u,h)}else eN(u,r),b.remove(u);i.delete(u),n.delete(u.xref),r.delete(u.xref);continue}p.fences&it.ViewContextRead&&(a=!0)}let o=[];for(let[u,p]of r){let f=!!(n.get(u).flags&Ot.AlwaysInline);p!==1||f||s.has(u)||o.push(u)}let c;for(;c=o.pop();){let u=n.get(c),p=i.get(u);if(!!(u.flags&Ot.AlwaysInline))throw new Error("AssertionError: Found an 'AlwaysInline' variable after the always inlining pass.");for(let f=u.next;f.kind!==d.ListEnd;f=f.next){let v=i.get(f);if(v.variablesUsed.has(c)){if(!nN(u,f))break;if(tN(c,u.initializer,f,p.fences)){v.variablesUsed.delete(c);for(let E of p.variablesUsed)v.variablesUsed.add(E);v.fences|=p.fences,n.delete(c),r.delete(c),i.delete(u),b.remove(u)}break}if(!Hg(v.fences,p.fences))break}}}l(va,"optimizeVariablesInOpList");function op(e){switch(e.kind){case R.NextContext:return it.ViewContextRead|it.ViewContextWrite;case R.RestoreView:return it.ViewContextRead|it.ViewContextWrite|it.SideEffectful;case R.StoreLet:return it.SideEffectful;case R.Reference:case R.ContextLetReference:return it.ViewContextRead;default:return it.None}}l(op,"fencesForIrExpression");function J0(e,t){let n=it.None,r=new Set;return qe(e,(s,i)=>{!Vn(s)||t!==null&&!t(i)||(s.kind===R.ReadVariable?r.add(s.xref):i&G.InChildOperation||(n|=op(s)))}),{fences:n,variablesUsed:r}}l(J0,"collectOpInfo");function Z0(e,t,n,r){qe(e,(s,i)=>{if(!Vn(s)||r!==null&&!r(i)||s.kind!==R.ReadVariable)return;let a=t.get(s.xref);a!==void 0&&(t.set(s.xref,a+1),i&G.InChildOperation&&n.add(s.xref))})}l(Z0,"countVariableUsages");function eN(e,t){qe(e,n=>{if(!Vn(n)||n.kind!==R.ReadVariable)return;let r=t.get(n.xref);if(r!==void 0){if(r===0)throw new Error(`Inaccurate variable count: ${n.xref} - found another read but count is already 0`);t.set(n.xref,r-1)}})}l(eN,"uncountVariableUsages");function Hg(e,t){if(e&it.ViewContextWrite){if(t&it.ViewContextRead)return!1}else if(e&it.ViewContextRead&&t&it.ViewContextWrite)return!1;return!0}l(Hg,"safeToInlinePastFences");function tN(e,t,n,r){let s=!1,i=!0;return Pe(n,(a,o)=>{if(!Vn(a)||s||!i)return a;if(o&G.InChildOperation&&r&it.ViewContextRead)return a;switch(a.kind){case R.ReadVariable:if(a.xref===e)return s=!0,t;break;default:let c=op(a);i=i&&Hg(c,r);break}return a},G.None),s}l(tN,"tryInlineVariableInitializer");function nN(e,t){switch(e.variable.kind){case Oe.Identifier:return e.initializer instanceof Un&&e.initializer.name===un;case Oe.Context:return t.kind===d.Variable;default:return!0}}l(nN,"allowConservativeInlining");function Mf(e){let t=e.head.next,n=e.tail.prev;t!==null&&n!==null&&t.next===n&&t.kind===d.Statement&&t.statement instanceof St&&t.statement.expr instanceof ug&&n.kind===d.Statement&&n.statement instanceof Qe&&n.statement.value instanceof Sx&&(b.remove(t),n.statement.value=n.statement.value.expr)}l(Mf,"optimizeSaveRestoreView");function rN(e){for(let t of e.units){let n=null,r=null;for(let s of t.create)switch(s.kind){case d.I18nStart:n=s;break;case d.I18nEnd:n=null;break;case d.IcuStart:n===null&&(r=e.allocateXrefId(),b.insertBefore(Jl(r,s.message,void 0,null),s));break;case d.IcuEnd:r!==null&&(b.insertAfter(Zl(r,null),s),r=null);break}}}l(rN,"wrapI18nIcus");var YB=[{kind:I.Tmpl,fn:x0},{kind:I.Tmpl,fn:G_},{kind:I.Both,fn:a0},{kind:I.Host,fn:TC},{kind:I.Tmpl,fn:O_},{kind:I.Tmpl,fn:e0},{kind:I.Tmpl,fn:rN},{kind:I.Both,fn:Pb},{kind:I.Both,fn:q0},{kind:I.Both,fn:hb},{kind:I.Tmpl,fn:wb},{kind:I.Both,fn:_b},{kind:I.Both,fn:cb},{kind:I.Tmpl,fn:kb},{kind:I.Both,fn:B_},{kind:I.Tmpl,fn:f0},{kind:I.Both,fn:fb},{kind:I.Both,fn:z_},{kind:I.Tmpl,fn:mb},{kind:I.Tmpl,fn:gb},{kind:I.Tmpl,fn:K_},{kind:I.Tmpl,fn:Lb},{kind:I.Tmpl,fn:Db},{kind:I.Tmpl,fn:Z_},{kind:I.Both,fn:Yb},{kind:I.Both,fn:r0},{kind:I.Tmpl,fn:Qb},{kind:I.Tmpl,fn:Kb},{kind:I.Tmpl,fn:yC},{kind:I.Tmpl,fn:E0},{kind:I.Tmpl,fn:D0},{kind:I.Both,fn:rb},{kind:I.Both,fn:P0},{kind:I.Both,fn:T0},{kind:I.Tmpl,fn:z0},{kind:I.Tmpl,fn:g0},{kind:I.Both,fn:N0},{kind:I.Tmpl,fn:Ob},{kind:I.Tmpl,fn:G0},{kind:I.Tmpl,fn:j0},{kind:I.Both,fn:y0},{kind:I.Both,fn:I0},{kind:I.Tmpl,fn:L_},{kind:I.Both,fn:Bb},{kind:I.Both,fn:M0},{kind:I.Both,fn:H0},{kind:I.Both,fn:Q0},{kind:I.Both,fn:R0},{kind:I.Tmpl,fn:P_},{kind:I.Tmpl,fn:Ib},{kind:I.Tmpl,fn:v0},{kind:I.Tmpl,fn:ob},{kind:I.Tmpl,fn:ib},{kind:I.Tmpl,fn:O0},{kind:I.Tmpl,fn:b0},{kind:I.Tmpl,fn:A0},{kind:I.Tmpl,fn:jb},{kind:I.Tmpl,fn:__},{kind:I.Tmpl,fn:_0},{kind:I.Tmpl,fn:wC},{kind:I.Both,fn:Sb},{kind:I.Tmpl,fn:m0},{kind:I.Both,fn:X0},{kind:I.Tmpl,fn:Xb},{kind:I.Both,fn:M_},{kind:I.Tmpl,fn:w0},{kind:I.Tmpl,fn:U_},{kind:I.Tmpl,fn:V_},{kind:I.Tmpl,fn:Rb},{kind:I.Tmpl,fn:lb},{kind:I.Tmpl,fn:H_},{kind:I.Both,fn:n0},{kind:I.Both,fn:l0},{kind:I.Both,fn:db}];function jg(e,t){for(let n of YB)(n.kind===t||n.kind===I.Both)&&n.fn(e)}l(jg,"transform");function sN(e,t){let n=zg(e.root);return Wg(e.root,t),n}l(sN,"emitTemplateFn");function Wg(e,t){for(let n of e.job.units){if(n.parent!==e.xref)continue;Wg(n,t);let r=zg(n);t.statements.push(r.toDeclStmt(r.name))}}l(Wg,"emitChildViews");function zg(e){if(e.fnName===null)throw new Error(`AssertionError: view ${e.xref} is unnamed`);let t=[];for(let i of e.create){if(i.kind!==d.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${d[i.kind]}`);t.push(i.statement)}let n=[];for(let i of e.update){if(i.kind!==d.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${d[i.kind]}`);n.push(i.statement)}let r=Nl(1,t),s=Nl(2,n);return er([new Te(uo,Kr),new Te(un,L)],[...r,...s],L,void 0,e.fnName)}l(zg,"emitView");function Nl(e,t){return t.length===0?[]:[no(new ce(A.BitwiseAnd,B(uo),g(e)),t)]}l(Nl,"maybeGenerateRfBlock");function iN(e){if(e.root.fnName===null)throw new Error("AssertionError: host binding function is unnamed");let t=[];for(let i of e.root.create){if(i.kind!==d.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${d[i.kind]}`);t.push(i.statement)}let n=[];for(let i of e.root.update){if(i.kind!==d.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${d[i.kind]}`);n.push(i.statement)}if(t.length===0&&n.length===0)return null;let r=Nl(1,t),s=Nl(2,n);return er([new Te(uo,Kr),new Te(un,L)],[...r,...s],L,void 0,e.root.fnName)}l(iN,"emitHostBindingFunction");var yc=".",KB="attr",yh="animate",QB="class",JB="style",ZB="*",wh="animate-",eM=class{static{l(this,"BindingParser")}_exprParser;_schemaRegistry;errors;constructor(e,t,n){this._exprParser=e,this._schemaRegistry=t,this.errors=n}createBoundHostProperties(e,t){let n=[];for(let r of Object.keys(e)){let s=e[r];typeof s=="string"?this.parsePropertyBinding(r,s,!0,!1,t,t.start.offset,void 0,[],n,t):this._reportError(`Value of the host property binding "${r}" needs to be a string representing an expression but got "${s}" (${typeof s})`,t)}return n}createDirectiveHostEventAsts(e,t){let n=[];for(let r of Object.keys(e)){let s=e[r];typeof s=="string"?this.parseEvent(r,s,!1,t,t,[],n,t):this._reportError(`Value of the host listener "${r}" needs to be a string representing an expression but got "${s}" (${typeof s})`,t)}return n}parseInterpolation(e,t,n){let r=t.fullStart.offset;try{let s=this._exprParser.parseInterpolation(e,t,r,n);return s&&this.errors.push(...s.errors),s}catch(s){return this._reportError(`${s}`,t),this._exprParser.wrapLiteralPrimitive("ERROR",t,r)}}parseInterpolationExpression(e,t){let n=t.start.offset;try{let r=this._exprParser.parseInterpolationExpression(e,t,n);return r&&this.errors.push(...r.errors),r}catch(r){return this._reportError(`${r}`,t),this._exprParser.wrapLiteralPrimitive("ERROR",t,n)}}parseInlineTemplateBinding(e,t,n,r,s,i,a,o){let c=n.start.offset+ZB.length,u=this._parseTemplateBindings(e,t,n,c,r);for(let p of u){let h=fr(n,p.sourceSpan),f=p.key.source,v=fr(n,p.key.span);if(p instanceof nu){let E=p.value?p.value.source:"$implicit",T=p.value?fr(n,p.value.span):void 0;a.push(new fT(f,E,h,v,T))}else if(p.value){let E=o?h:n,T=fr(n,p.value.ast.sourceSpan);this._parsePropertyAst(f,p.value,!1,E,v,T,s,i)}else s.push([f,""]),this.parseLiteralAttr(f,null,v,r,void 0,s,i,v)}}_parseTemplateBindings(e,t,n,r,s){try{let i=this._exprParser.parseTemplateBindings(e,t,n,r,s);return i.errors.forEach(a=>this.errors.push(a)),i.warnings.forEach(a=>{this._reportError(a,n,Xn.WARNING)}),i.templateBindings}catch(i){return this._reportError(`${i}`,n),[]}}parseLiteralAttr(e,t,n,r,s,i,a,o){Dc(e)?(e=e.substring(1),o!==void 0&&(o=fr(o,new at(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.',n,Xn.ERROR),this._parseLegacyAnimation(e,t,n,r,o,s,i,a)):a.push(new Go(e,this._exprParser.wrapLiteralPrimitive(t,"",r),En.LITERAL_ATTR,n,o,s))}parsePropertyBinding(e,t,n,r,s,i,a,o,c,u){e.length===0&&this._reportError("Property name is missing in binding",s);let p=!1;e.startsWith(wh)?(p=!0,e=e.substring(wh.length),u!==void 0&&(u=fr(u,new at(u.start.offset+wh.length,u.end.offset)))):Dc(e)&&(p=!0,e=e.substring(1),u!==void 0&&(u=fr(u,new at(u.start.offset+1,u.end.offset)))),p?this._parseLegacyAnimation(e,t,s,i,u,a,o,c):e.startsWith(`${yh}${yc}`)?this._parseAnimation(e,this.parseBinding(t,n,a||s,i),s,u,a,o,c):this._parsePropertyAst(e,this.parseBinding(t,n,a||s,i),r,s,u,a,o,c)}parsePropertyInterpolation(e,t,n,r,s,i,a,o){let c=this.parseInterpolation(t,r||n,o);return c?(this._parsePropertyAst(e,c,!1,n,a,r,s,i),!0):!1}_parsePropertyAst(e,t,n,r,s,i,a,o){a.push([e,t.source]),o.push(new Go(e,t,n?En.TWO_WAY:En.DEFAULT,r,s,i))}_parseAnimation(e,t,n,r,s,i,a){i.push([e,t.source]),a.push(new Go(e,t,En.ANIMATION,n,r,s))}_parseLegacyAnimation(e,t,n,r,s,i,a,o){e.length===0&&this._reportError("Animation trigger is missing",n);let c=this.parseBinding(t||"undefined",!1,i||n,r);a.push([e,c.source]),o.push(new Go(e,c,En.LEGACY_ANIMATION,n,s,i))}parseBinding(e,t,n,r){try{let s=t?this._exprParser.parseSimpleBinding(e,n,r):this._exprParser.parseBinding(e,n,r);return s&&this.errors.push(...s.errors),s}catch(s){return this._reportError(`${s}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",n,r)}}createBoundElementProperty(e,t,n=!1,r=!0){if(t.isLegacyAnimation)return new Sd(t.name,$.LegacyAnimation,ee.NONE,t.expression,null,t.sourceSpan,t.keySpan,t.valueSpan);let s=null,i,a=null,o=t.name.split(yc),c;if(o.length>1)if(o[0]==KB){a=o.slice(1).join(yc),n||this._validatePropertyOrAttributeName(a,t.sourceSpan,!0),c=pl(this._schemaRegistry,e,a,!0);let u=a.indexOf(":");if(u>-1){let p=a.substring(0,u),h=a.substring(u+1);a=Pa(p,h)}i=$.Attribute}else if(o[0]==QB)a=o[1],i=$.Class,c=[ee.NONE];else if(o[0]==JB){s=o.length>2?o[2]:null;let u=o[1];if(!u.startsWith("--"))a=u;else try{a=Lu(u)}catch(p){this._reportError(p.message,t.sourceSpan)}i=$.Style,c=[ee.STYLE]}else o[0]==yh&&(a=t.name,i=$.Animation,c=[ee.NONE]);if(a===null){let u=this._schemaRegistry.getMappedPropName(t.name);a=r?u:t.name,c=pl(this._schemaRegistry,e,u,!1),i=t.type===En.TWO_WAY?$.TwoWay:$.Property,n||this._validatePropertyOrAttributeName(u,t.sourceSpan,!1)}return new Sd(a,i,c[0],t.expression,s,t.sourceSpan,t.keySpan,t.valueSpan)}parseEvent(e,t,n,r,s,i,a,o){e.length===0&&this._reportError("Event name is missing in binding",r),Dc(e)?(e=e.slice(1),o!==void 0&&(o=fr(o,new at(o.start.offset+1,o.end.offset))),this._parseLegacyAnimationEvent(e,t,r,s,a,o)):this._parseRegularEvent(e,t,n,r,s,i,a,o)}calcPossibleSecurityContexts(e,t,n){let r=this._schemaRegistry.getMappedPropName(t);return pl(this._schemaRegistry,e,r,n)}parseEventListenerName(e){let[t,n]=Vw(e,[null,e]);return{eventName:n,target:t}}parseLegacyAnimationEventName(e){let t=qw(e,[e,null]);return{eventName:t[0],phase:t[1]===null?null:t[1].toLowerCase()}}_parseLegacyAnimationEvent(e,t,n,r,s,i){let{eventName:a,phase:o}=this.parseLegacyAnimationEventName(e),c=this._parseAction(t,r);s.push(new Ed(a,o,Re.LegacyAnimation,c,n,r,i)),a.length===0&&this._reportError("Animation event name is missing in binding",n),o?o!=="start"&&o!=="done"&&this._reportError(`The provided animation output phase value "${o}" for "@${a}" is not supported (use start or done)`,n):this._reportError(`The animation trigger output event (@${a}) is missing its phase value name (start or done are currently supported)`,n)}_parseRegularEvent(e,t,n,r,s,i,a,o){let{eventName:c,target:u}=this.parseEventListenerName(e),p=this.errors.length,h=this._parseAction(t,s),f=this.errors.length===p;i.push([e,h.source]),n&&f&&!this._isAllowedAssignmentEvent(h)&&this._reportError("Unsupported expression in a two-way binding",r);let v=Re.Regular;n&&(v=Re.TwoWay),e.startsWith(`${yh}${yc}`)&&(v=Re.Animation),a.push(new Ed(c,u,v,h,r,s,o))}_parseAction(e,t){let n=t&&t.start?t.start.offset:0;try{let r=this._exprParser.parseAction(e,t,n);return r&&this.errors.push(...r.errors),!r||r.ast instanceof gt?(this._reportError("Empty expressions are not allowed",t),this._exprParser.wrapLiteralPrimitive("ERROR",t,n)):r}catch(r){return this._reportError(`${r}`,t),this._exprParser.wrapLiteralPrimitive("ERROR",t,n)}}_reportError(e,t,n=Xn.ERROR){this.errors.push(new k(t,e,n))}_validatePropertyOrAttributeName(e,t,n){let r=n?this._schemaRegistry.validateAttribute(e):this._schemaRegistry.validateProperty(e);r.error&&this._reportError(r.msg,t,Xn.ERROR)}_isAllowedAssignmentEvent(e){return e instanceof Gt?this._isAllowedAssignmentEvent(e.ast):e instanceof ql?this._isAllowedAssignmentEvent(e.expression):e instanceof ln&&e.args.length===1&&e.receiver instanceof Je&&e.receiver.name==="$any"&&e.receiver.receiver instanceof dt?this._isAllowedAssignmentEvent(e.args[0]):(e instanceof Je||e instanceof Lr)&&!du(e)}};function du(e){return e instanceof ki||e instanceof Ua?!0:e instanceof Bu?du(e.expression):e instanceof Je||e instanceof Lr||e instanceof ln?du(e.receiver):!1}l(du,"hasRecursiveSafeReceiver");function Dc(e){return e[0]=="@"}l(Dc,"isLegacyAnimationLabel");function pl(e,t,n,r){let s,[i,a]=t?ot(t,!1):[null,t],o=l(u=>{let[p,h]=ot(u,!1),f=p??i,v=f?`:${f}:${h}`:h;return e.securityContext(v,n,r)},"nameToContext"),c=e.allKnownElementNames();return a===null?s=c.map(o):(s=[],Fi.parse(a).forEach(u=>{let p=u.element?[u.element]:c;if(u.element&&!e.hasElement(u.element,[])){let v=`:${ip}:${u.element}`,E=`:${ap}:${u.element}`;e.hasElement(v,[])?p=[v]:e.hasElement(E,[])&&(p=[E])}let h=new Set(u.notSelectors.filter(v=>v.isElementSelector()).map(v=>v.element?.toLowerCase())),f=p.filter(v=>{let E=v.toLowerCase();return!h.has(E)&&!h.has(ot(E)[1])});s.push(...f.map(o))})),s.length===0?[ee.NONE]:Array.from(new Set(s)).sort()}l(pl,"calcPossibleSecurityContexts");function fr(e,t){let n=t.start-e.start.offset,r=t.end-e.end.offset;return new F(e.start.moveBy(n),e.end.moveBy(r),e.fullStart.moveBy(n),e.details)}l(fr,"moveParseSourceSpan");var Ar=new Ki,xi="ng-template",tM="animate.";function hl(e){return e instanceof Yt}l(hl,"isI18nRootNode");function aN(e){return hl(e)&&e.nodes.length===1&&e.nodes[0]instanceof lo}l(aN,"isSingleI18nIcu");function oN(e,t,n,r,s,i,a,o,c,u,p,h){let f=new yg(e,n,r,s,i,a,o,c,u,p,h);return Qt(f.root,t),f}l(oN,"ingestComponent");function lN(e,t,n){let r=new nb(e.componentName,n,Pt.DomOnly,e.legacyOptionalChaining);for(let s of e.properties??[]){let i=D.Property;s.name.startsWith("attr.")&&(s.name=s.name.substring(5),i=D.Attribute),s.isLegacyAnimation&&(i=D.LegacyAnimation),s.isAnimation&&(i=D.Animation);let a=Ff(t,e.componentSelector,s.name,i===D.Attribute);cN(r,s,i,a)}for(let[s,i]of Object.entries(e.attributes)??[]){let a=Ff(t,e.componentSelector,s,!0);uN(r,s,i,a)}for(let s of e.events??[])pN(r,s);return r}l(lN,"ingestHostBinding");function Ff(e,t,n,r){let s=e.calcPossibleSecurityContexts(t,n,r),i=pl(Ar,null,Ar.getMappedPropName(n),r),a=i.filter(u=>u!==ee.NONE),o=a.length;return o!==i.length&&o>0||a.some(u=>!s.includes(u))?i:s.filter(u=>u!==ee.NONE)}l(Ff,"calcHostBindingSecurityContexts");function cN(e,t,n,r){let s,i=t.expression.ast;i instanceof so?s=new Ze(i.strings,i.expressions.map(a=>X(a,e,t.sourceSpan)),[]):s=X(i,e,t.sourceSpan),e.root.update.push(ns(e.root.xref,n,t.name,s,null,r,!1,!1,null,null,t.sourceSpan))}l(cN,"ingestDomProperty");function uN(e,t,n,r){let s=ns(e.root.xref,D.Attribute,t,n,null,r,!0,!1,null,null,n.sourceSpan);e.root.update.push(s)}l(uN,"ingestHostAttribute");function pN(e,t){let n;if(t.type===Re.Animation)n=vg(e.root.xref,new mt,t.name,null,Xa(e.root,t.handler,t.handlerSpan),t.name.endsWith("enter")?"enter":"leave",t.targetOrPhase,!0,t.sourceSpan);else{let[r,s]=t.type!==Re.LegacyAnimation?[null,t.targetOrPhase]:[t.targetOrPhase,null];n=ep(e.root.xref,new mt,t.name,null,Xa(e.root,t.handler,t.handlerSpan),r,s,!0,t.sourceSpan)}e.root.create.push(n)}l(pN,"ingestHostEvent");function Qt(e,t){for(let n of t)if(n instanceof de)hN(e,n);else if(n instanceof De)fN(e,n);else if(n instanceof oo)mN(e,n);else if(n instanceof Yn)Gg(e,n,null);else if(n instanceof Li)Xg(e,n,null);else if(n instanceof zl)gN(e,n);else if(n instanceof Wl)EN(e,n);else if(n instanceof Xr)SN(e,n);else if(n instanceof ju)wN(e,n);else if(n instanceof Zr)TN(e,n);else if(n instanceof Tr)bN(e,n);else if(n instanceof ao)vN(e,n);else if(!(n instanceof Jn))throw new Error(`Unsupported template node: ${n.constructor.name}`)}l(Qt,"ingestNodes");function hN(e,t){if(t.i18n!==void 0&&!(t.i18n instanceof Yt||t.i18n instanceof es))throw Error(`Unhandled i18n metadata type for element: ${t.i18n.constructor.name}`);let n=e.job.allocateXrefId(),r=e.job.getForeignComponent(t);if(r){dN(e,n,t,r);return}let[s,i]=ot(t.name),a=Ix(i,n,xg(s),t.i18n instanceof es?t.i18n:void 0,t.startSourceSpan,t.sourceSpan);e.create.push(a),_N(e,a,t),Kg(a,t);let o=null;t.i18n instanceof Yt&&(o=e.job.allocateXrefId(),e.create.push(Jl(o,t.i18n,void 0,t.startSourceSpan))),Qt(e,t.children);let c=Ox(n,t.endSourceSpan??t.startSourceSpan);e.create.push(c),o!==null&&b.insertBefore(Zl(o,t.endSourceSpan??t.startSourceSpan),c)}l(hN,"ingestElement");function dN(e,t,n,r){let s=new Map;for(let c of n.attributes)s.set(c.name,g(c.value));for(let c of n.inputs)s.set(c.name,X(c.value,e.job,c.sourceSpan));let i=[],a=[];for(let c of n.children)c instanceof Hl?i.push(c):a.push(c);for(let c of i){let u=e.job.allocateView(e.xref);for(let p=0;p<c.variables.length;p++)u.contextVariables.set(c.variables[p].name,p);Qt(u,c.children),e.create.push(Jd(t,u.xref,c.name,c.startSourceSpan,c.sourceSpan))}if(a.length>0){let c=e.job.allocateView(e.xref);Qt(c,a),e.create.push(Jd(t,c.xref,"children",n.startSourceSpan,n.sourceSpan))}let o=e.job.addConst(r.component);e.create.push(kx(t,o,s,n.startSourceSpan))}l(dN,"ingestForeignComponent");function fN(e,t){if(t.i18n!==void 0&&!(t.i18n instanceof Yt||t.i18n instanceof es))throw Error(`Unhandled i18n metadata type for template: ${t.i18n.constructor.name}`);let n=e.job.allocateView(e.xref),r=t.tagName,s="";t.tagName&&([s,r]=ot(t.tagName));let i=t.i18n instanceof es?t.i18n:void 0,a=xg(s),o=r===null?"":Eb(r,a),c=CN(t)?lt.NgTemplate:lt.Structural,u=Ju(n.xref,c,r,o,a,i,t.startSourceSpan,t.sourceSpan);e.create.push(u),NN(e,u,t,c),Kg(u,t),Qt(n,t.children);for(let{name:p,value:h}of t.variables)n.contextVariables.set(p,h!==""?h:"$implicit");if(c===lt.NgTemplate&&t.i18n instanceof Yt){let p=e.job.allocateXrefId();b.insertAfter(Jl(p,t.i18n,void 0,t.startSourceSpan),n.create.head),b.insertBefore(Zl(p,t.endSourceSpan??t.startSourceSpan),n.create.tail)}}l(fN,"ingestTemplate");function mN(e,t){if(t.i18n!==void 0&&!(t.i18n instanceof es))throw Error(`Unhandled i18n metadata type for element: ${t.i18n.constructor.name}`);let n=null;t.children.some(i=>!(i instanceof hi)&&(!(i instanceof Yn)||i.value.trim().length>0))&&(n=e.job.allocateView(e.xref),Qt(n,t.children));let r=e.job.allocateXrefId(),s=Hx(r,t.selector,t.i18n,n?.xref??null,t.sourceSpan);for(let i of t.attributes){let a=Ar.securityContext(t.name,i.name,!0);e.update.push(ns(s.xref,D.Attribute,i.name,g(i.value),null,a,!0,!1,null,Kn(i.i18n),i.sourceSpan))}e.create.push(s)}l(mN,"ingestContent");function Gg(e,t,n){e.create.push(gg(e.job.allocateXrefId(),t.value,n,t.sourceSpan))}l(Gg,"ingestText");function Xg(e,t,n){let r=t.value;if(r instanceof Gt&&(r=r.ast),!(r instanceof so))throw new Error(`AssertionError: expected Interpolation for BoundText node, got ${r.constructor.name}`);if(t.i18n!==void 0&&!(t.i18n instanceof $n))throw Error(`Unhandled i18n metadata type for text interpolation: ${t.i18n?.constructor.name}`);let s=t.i18n instanceof $n?t.i18n.children.filter(a=>a instanceof Zn).map(a=>a.name):[];if(s.length>0&&s.length!==r.expressions.length)throw Error(`Unexpected number of i18n placeholders (${r.expressions.length}) for BoundText with ${r.expressions.length} expressions`);let i=e.job.allocateXrefId();e.create.push(gg(i,"",n,t.sourceSpan)),e.update.push(nx(i,new Ze(r.strings,r.expressions.map(a=>X(a,e.job,null)),s),t.sourceSpan))}l(Xg,"ingestBoundText");function gN(e,t){let n=null,r=[];for(let s=0;s<t.branches.length;s++){let i=t.branches[s],a=e.job.allocateView(e.xref),o=Ka(e,a.xref,i);i.expressionAlias!==null&&a.contextVariables.set(i.expressionAlias.name,Zx);let c;if(i.i18n!==void 0){if(!(i.i18n instanceof ts))throw Error(`Unhandled i18n metadata type for if block: ${i.i18n?.constructor.name}`);c=i.i18n}let p=(s===0?mg:Zu)(a.xref,lt.Block,o,"Conditional",Be.HTML,c,i.startSourceSpan,i.sourceSpan);e.create.push(p),n===null&&(n=a.xref);let h=i.expression?X(i.expression,e.job,null):null,f=new uu(h,p.xref,p.handle,i.expressionAlias);r.push(f),Qt(a,i.children)}e.update.push(ig(n,null,r,t.sourceSpan))}l(gN,"ingestIfBlock");function vN(e,t){let n=e.job.allocateView(e.xref),r=Ka(e,n.xref,t),s=Px(e.job.allocateXrefId(),lt.Block,r,"Boundary",Be.HTML,void 0,t.startSourceSpan,t.sourceSpan);e.create.push(s);let i=Zu(n.xref,lt.Block,r,"Primary",Be.HTML,void 0,t.startSourceSpan,t.sourceSpan);e.create.push(i);let a=[];for(let c of t.errorBlocks){let u=e.job.allocateView(e.xref),p=Lx(u.xref,lt.Block,"Error",void 0,c.startSourceSpan,c.sourceSpan,s.xref,c.contextVariables);e.create.push(p);let h=c.expression?X(c.expression,e.job,null):null,f=c.contextVariables.find(E=>E.value==="$error"),v=new uu(h,p.xref,p.handle,f||null);a.push(v);for(let E of c.contextVariables)u.aliases.add({kind:Oe.Alias,name:null,identifier:E.name,expression:new ft(new Gi(u.xref),E.value)});Qt(u,c.children)}let o=new uu(null,i.xref,i.handle,null);Qt(n,t.children),e.update.push(ux(s.xref,s.handle,i.xref,o,a,t.sourceSpan))}l(vN,"ingestBoundaryBlock");function EN(e,t){if(t.groups.length===0)return;let n=null,r=[];for(let s=0;s<t.groups.length;s++){let i=t.groups[s],a=e.job.allocateView(e.xref),o=Ka(e,a.xref,i),c;if(i.i18n!==void 0){if(!(i.i18n instanceof ts))throw Error(`Unhandled i18n metadata type for switch block: ${i.i18n?.constructor.name}`);c=i.i18n}let p=(s===0?mg:Zu)(a.xref,lt.Block,o,"Case",Be.HTML,c,i.startSourceSpan,i.sourceSpan);e.create.push(p),n===null&&(n=a.xref);for(let h of i.cases){let f=h.expression?X(h.expression,e.job,t.startSourceSpan):null,v=new uu(f,p.xref,p.handle);r.push(v)}Qt(a,i.children)}e.update.push(ig(n,X(t.expression,e.job,null),r,t.sourceSpan))}l(EN,"ingestSwitchBlock");function rl(e,t,n,r,s){if(n!==void 0&&!(n instanceof ts))throw Error("Unhandled i18n metadata type for defer block");if(r===void 0)return null;let i=e.job.allocateView(e.xref);Qt(i,r);let a=Ju(i.xref,lt.Block,null,`Defer${t}`,Be.HTML,n,s,s);return e.create.push(a),a}l(rl,"ingestDeferView");function SN(e,t){let n=null;if(e.job.deferMeta.mode===0){if(!e.job.deferMeta.blocks.has(t))throw new Error("AssertionError: unable to find a dependency function for this deferred block");n=e.job.deferMeta.blocks.get(t)??null}let r=rl(e,"",t.i18n,t.children,t.sourceSpan),s=rl(e,"Loading",t.loading?.i18n,t.loading?.children,t.loading?.sourceSpan),i=rl(e,"Placeholder",t.placeholder?.i18n,t.placeholder?.children,t.placeholder?.sourceSpan),a=rl(e,"Error",t.error?.i18n,t.error?.children,t.error?.sourceSpan),o=e.job.allocateXrefId(),c=jx(o,r.xref,r.handle,n,e.job.allDeferrableDepsFn,t.sourceSpan);c.placeholderView=i?.xref??null,c.placeholderSlot=i?.handle??null,c.loadingSlot=s?.handle??null,c.errorSlot=a?.handle??null,c.placeholderMinimumTime=t.placeholder?.minimumTime??null,c.loadingMinimumTime=t.loading?.minimumTime??null,c.loadingAfterTime=t.loading?.afterTime??null,c.flags=yN(t),e.create.push(c);let u=[],p=[];Oc("hydrate",t.hydrateTriggers,u,p,e,o),Oc("none",t.triggers,u,p,e,o),Oc("prefetch",t.prefetchTriggers,u,p,e,o),u.some(f=>f.modifier==="none")||p.some(f=>f.modifier==="none")||u.push(mr(o,{kind:Ee.Idle,timeout:null},"none",null)),e.create.push(u),e.update.push(p)}l(SN,"ingestDeferBlock");function yN(e){return Object.keys(e.hydrateTriggers).length>0?1:null}l(yN,"calcDeferBlockFlags");function Oc(e,t,n,r,s,i){if(t.idle!==void 0){let a=mr(i,{kind:Ee.Idle,timeout:t.idle.timeout??null},e,t.idle.sourceSpan);n.push(a)}if(t.immediate!==void 0){let a=mr(i,{kind:Ee.Immediate},e,t.immediate.sourceSpan);n.push(a)}if(t.timer!==void 0){let a=mr(i,{kind:Ee.Timer,delay:t.timer.delay},e,t.timer.sourceSpan);n.push(a)}if(t.hover!==void 0){let a=mr(i,{kind:Ee.Hover,targetName:t.hover.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},e,t.hover.sourceSpan);n.push(a)}if(t.interaction!==void 0){let a=mr(i,{kind:Ee.Interaction,targetName:t.interaction.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},e,t.interaction.sourceSpan);n.push(a)}if(t.viewport!==void 0){let a=mr(i,{kind:Ee.Viewport,targetName:t.viewport.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null,options:t.viewport.options?X(t.viewport.options,s.job,t.viewport.sourceSpan):null},e,t.viewport.sourceSpan);n.push(a)}if(t.never!==void 0){let a=mr(i,{kind:Ee.Never},e,t.never.sourceSpan);n.push(a)}if(t.when!==void 0){if(t.when.value instanceof so)throw new Error("Unexpected interpolation in defer block when trigger");let a=hx(i,X(t.when.value,s.job,t.when.sourceSpan),e,t.when.sourceSpan);r.push(a)}}l(Oc,"ingestDeferTriggers");function wN(e,t){if(t.i18n instanceof Yt&&aN(t.i18n)){let n=e.job.allocateXrefId();e.create.push(Gx(n,t.i18n,Xm(t.i18n).name,null));for(let[r,s]of Object.entries({...t.vars,...t.placeholders}))s instanceof Li?Xg(e,s,r):Gg(e,s,r);e.create.push(Xx(n))}else throw Error(`Unhandled i18n metadata type for ICU: ${t.i18n?.constructor.name}`)}l(wN,"ingestIcu");function TN(e,t){let n=e.job.allocateView(e.xref),r=`\u0275$index_${n.xref}`,s=`\u0275$count_${n.xref}`,i=new Set;n.contextVariables.set(t.item.name,t.item.value);for(let y of t.contextVariables)y.value==="$index"&&i.add(y.name),y.name==="$index"?n.contextVariables.set("$index",y.value).set(r,y.value):y.name==="$count"?n.contextVariables.set("$count",y.value).set(s,y.value):n.aliases.add({kind:Oe.Alias,name:null,identifier:y.name,expression:xN(y,r,s)});let a;t.trackBy===null?a=B("$index"):a=X(t.trackBy,e.job,Ge(t.trackBy.span,t.sourceSpan)),Qt(n,t.children);let o=null,c=null;t.empty!==null&&(o=e.job.allocateView(e.xref),Qt(o,t.empty.children),c=Ka(e,o.xref,t.empty));let u={$index:i,$implicit:t.item.name};if(t.i18n!==void 0&&!(t.i18n instanceof ts))throw Error("AssertionError: Unhandled i18n metadata type or @for");if(t.empty?.i18n!==void 0&&!(t.empty.i18n instanceof ts))throw Error("AssertionError: Unhandled i18n metadata type or @empty");let p=t.i18n,h=t.empty?.i18n,f=Ka(e,n.xref,t),v=Dx(n.xref,o?.xref??null,f,a,u,c,p,h,t.startSourceSpan,t.sourceSpan);e.create.push(v);let E=X(t.expression,e.job,Ge(t.expression.span,t.sourceSpan)),T=px(v.xref,v.handle,E,t.sourceSpan);e.update.push(T)}l(TN,"ingestForBlock");function xN(e,t,n){switch(e.value){case"$index":return new ht(t);case"$count":return new ht(n);case"$first":return new ht(t).identical(g(0));case"$last":return new ht(t).identical(new ht(n).minus(g(1)));case"$even":return new ht(t).modulo(g(2)).identical(g(0));case"$odd":return new ht(t).modulo(g(2)).notIdentical(g(0));default:throw new Error(`AssertionError: unknown @for loop variable ${e.value}`)}}l(xN,"getComputedForLoopVariableExpression");function bN(e,t){let n=e.job.allocateXrefId();e.create.push(Wx(n,t.name,t.sourceSpan)),e.update.push(fx(n,t.name,X(t.value,e.job,t.valueSpan),t.sourceSpan))}l(bN,"ingestLetDeclaration");function X(e,t,n){if(e instanceof Gt)return X(e.ast,t,n);if(e instanceof Je)return e.receiver instanceof dt?new ht(e.name):new ft(X(e.receiver,t,n),e.name,null,Ge(e.span,n));if(e instanceof ln){if(e.receiver instanceof dt)throw new Error("Unexpected ImplicitReceiver");return new Ye(X(e.receiver,t,n),e.args.map(r=>X(r,t,n)),void 0,Ge(e.span,n))}else{if(e instanceof Dt)return g(e.value,void 0,Ge(e.span,n));if(e instanceof ll)switch(e.operator){case"+":return new _r(Qr.Plus,X(e.expr,t,n),void 0,Ge(e.span,n));case"-":return new _r(Qr.Minus,X(e.expr,t,n),void 0,Ge(e.span,n));default:throw new Error(`AssertionError: unknown unary operator ${e.operator}`)}else if(e instanceof wt){let r=FR.get(e.operation);if(r===void 0)throw new Error(`AssertionError: unknown binary operator ${e.operation}`);return new ce(r,X(e.left,t,n),X(e.right,t,n),void 0,Ge(e.span,n))}else{if(e instanceof tr)return new Gi(t.root.xref);if(e instanceof Lr)return new An(X(e.receiver,t,n),X(e.key,t,n),void 0,Ge(e.span,n));if(e instanceof Ul)throw new Error("AssertionError: Chain in unknown context");if(e instanceof Pi){let r=e.keys.map((s,i)=>{let a=X(e.values[i],t,n);return s.kind==="spread"?new Nr(a):new Jr(s.key,a,s.quoted)});return new Cn(r,void 0,Ge(e.span,n))}else{if(e instanceof Vl)return new ir(e.expressions.map(r=>X(r,t,n)));if(e instanceof Pm)return new an(X(e.condition,t,n),X(e.trueExp,t,n),X(e.falseExp,t,n),void 0,Ge(e.span,n));if(e instanceof ql)return X(e.expression,t,n);if(e instanceof Ru)return new Ql(t.allocateXrefId(),new mt,e.name,[X(e.exp,t,n),...e.args.map(r=>X(r,t,n))]);if(e instanceof Ua)return new ul(X(e.receiver,t,n),X(e.key,t,n),Ge(e.span,n));if(e instanceof ki)return new cl(X(e.receiver,t,n),e.name);if(e instanceof Hi)return new Ye(X(e.receiver,t,n),e.args.map(r=>X(r,t,n)),null,Ge(e.span,n),!1,[],!0);if(e instanceof gt)return new dg(Ge(e.span,n));if(e instanceof Qc)return Em(X(e.expression,t,n),Ge(e.span,n));if(e instanceof Jc)return qi(X(e.expression,t,n));if(e instanceof Zc)return new Bl(X(e.expression,t,n),void 0,Ge(e.span,n));if(e instanceof tu)return $f(e,t,n);if(e instanceof eu)return new Za(X(e.tag,t,n),$f(e.template,t,n),void 0,Ge(e.span,n));if(e instanceof Bu)return new Ft(X(e.expression,t,n),void 0,Ge(e.span,n));if(e instanceof Om)return new eo(e.body,e.flags,n);if(e instanceof Lm)return new _i(X(e.expression,t,n));if(e instanceof Dm)return kN(Se(e.parameters.map(r=>new Te(r.name,L)),X(e.body,t,n),L));throw new Error(`Unhandled expression type "${e.constructor.name}" in file "${n?.start.file.url}"`)}}}}l(X,"convertAst");function $f(e,t,n){return new Ml(e.elements.map(r=>new Au(r.text,Ge(r.span,n))),e.expressions.map(r=>X(r,t,n)),Ge(e.span,n))}l($f,"convertTemplateLiteral");function fu(e,t,n,r){let s;return t instanceof so?s=new Ze(t.strings,t.expressions.map(i=>X(i,e,null)),Object.keys(Kn(n)?.placeholders??{})):t instanceof Ae?s=X(t,e,null):s=g(t),s}l(fu,"convertAstWithInterpolation");var AN=new Map([[$.Property,D.Property],[$.TwoWay,D.TwoWayProperty],[$.Attribute,D.Attribute],[$.Class,D.ClassName],[$.Style,D.StyleProperty],[$.LegacyAnimation,D.LegacyAnimation],[$.Animation,D.Animation]]);function CN(e){return ot(e.tagName??"")[1]===xi}l(CN,"isPlainTemplate");function Kn(e){if(e==null)return null;if(!(e instanceof Yt))throw Error(`Expected i18n meta to be a Message, but got: ${e.constructor.name}`);return e}l(Kn,"asMessage");function _N(e,t,n){let r=new Array,s=new Set;for(let i of n.attributes){let[a,o]=ot(n.name),c=a;if(!a)switch(t.namespace){case Be.SVG:c=ip;break;case Be.Math:c=ap;break}let u=Ar.securityContext(c?`:${c}:${o}`:o,i.name,!0);r.push(ns(t.xref,D.Attribute,i.name,fu(e.job,i.value,i.i18n),null,u,!0,!1,null,Kn(i.i18n),i.sourceSpan)),i.i18n&&s.add(i.name)}for(let i of n.inputs)s.has(i.name)&&console.error(`On component ${e.job.componentName}, the binding ${i.name} is both an i18n attribute and a property. You may want to remove the property binding. This will become a compilation error in future versions of Angular.`),r.push(ns(t.xref,AN.get(i.type),i.name,fu(e.job,Ya(i.value),i.i18n),i.unit,i.securityContext,!1,!1,null,Kn(i.i18n)??null,i.sourceSpan));e.create.push(r.filter(i=>i?.kind===d.ExtractedAttribute)),e.update.push(r.filter(i=>i?.kind===d.Binding));for(let i of n.outputs){if(i.type===Re.LegacyAnimation&&i.phase===null)throw Error("Animation listener should have a phase");i.type===Re.TwoWay?e.create.push(Eg(t.xref,t.handle,i.name,t.tag,Yg(e,i.handler,i.handlerSpan),i.sourceSpan)):i.type===Re.Animation?e.create.push(vg(t.xref,t.handle,i.name,t.tag,Xa(e,i.handler,i.handlerSpan),i.name.endsWith("enter")?"enter":"leave",i.target,!1,i.sourceSpan)):e.create.push(ep(t.xref,t.handle,i.name,t.tag,Xa(e,i.handler,i.handlerSpan),i.phase,i.target,!1,i.sourceSpan))}r.some(i=>i?.i18nMessage)!==null&&e.create.push(Sg(e.job.allocateXrefId(),new mt,t.xref))}l(_N,"ingestElementBindings");function NN(e,t,n,r){let s=new Array;for(let i of n.templateAttrs)if(i instanceof vl){let a=Ar.securityContext(xi,i.name,!0);s.push(sl(e,t.xref,$.Attribute,i.name,i.value,null,a,!0,r,Kn(i.i18n),i.sourceSpan))}else s.push(sl(e,t.xref,i.type,i.name,Ya(i.value),i.unit,i.securityContext,!0,r,Kn(i.i18n),i.sourceSpan));for(let i of n.attributes){let a=Ar.securityContext(xi,i.name,!0);s.push(sl(e,t.xref,$.Attribute,i.name,i.value,null,a,!1,r,Kn(i.i18n),i.sourceSpan))}for(let i of n.inputs)s.push(sl(e,t.xref,i.type,i.name,Ya(i.value),i.unit,i.securityContext,!1,r,Kn(i.i18n),i.sourceSpan));e.create.push(s.filter(i=>i?.kind===d.ExtractedAttribute)),e.update.push(s.filter(i=>i?.kind===d.Binding));for(let i of n.outputs){if(i.type===Re.LegacyAnimation&&i.phase===null)throw Error("Animation listener should have a phase");if(r===lt.NgTemplate&&(i.type===Re.TwoWay?e.create.push(Eg(t.xref,t.handle,i.name,t.tag,Yg(e,i.handler,i.handlerSpan),i.sourceSpan)):e.create.push(ep(t.xref,t.handle,i.name,t.tag,Xa(e,i.handler,i.handlerSpan),i.phase,i.target,!1,i.sourceSpan))),r===lt.Structural&&i.type!==Re.LegacyAnimation){let a=Ar.securityContext(xi,i.name,!1);e.create.push(sn(t.xref,D.Property,null,i.name,null,null,null,a))}}s.some(i=>i?.i18nMessage)!==null&&e.create.push(Sg(e.job.allocateXrefId(),new mt,t.xref))}l(NN,"ingestTemplateBindings");function sl(e,t,n,r,s,i,a,o,c,u,p){let h=typeof s=="string";if(c===lt.Structural){if(!o)switch(n){case $.Property:case $.Class:case $.Style:return sn(t,D.Property,null,r,null,null,u,a);case $.TwoWay:return sn(t,D.TwoWayProperty,null,r,null,null,u,a)}if(!h&&(n===$.Attribute||n===$.LegacyAnimation||n===$.Animation))return null}let f=AN.get(n);return c===lt.NgTemplate&&(n===$.Class||n===$.Style||n===$.Attribute&&!h)&&(f=D.Property),ns(t,f,r,fu(e.job,s,u),i,a,h,o,c,u,p)}l(sl,"createTemplateBinding");function Xa(e,t,n){t=Ya(t);let r=new Array,s=t instanceof Ul?t.expressions:[t];if(s.length===0)throw new Error("Expected listener to have non-empty expression list.");let i=s.map(o=>X(o,e.job,n)),a=i.pop();return r.push(...i.map(o=>Kt(new St(o,o.sourceSpan)))),r.push(Kt(new Qe(a,a.sourceSpan))),r}l(Xa,"makeListenerHandlerOps");function Yg(e,t,n){t=Ya(t);let r=new Array;if(t instanceof Ul)if(t.expressions.length===1)t=t.expressions[0];else throw new Error("Expected two-way listener to have a single expression.");let s=X(t,e.job,n),i=new ht("$event"),a=new yx(s,i);return r.push(Kt(new St(a))),r.push(Kt(new Qe(i))),r}l(Yg,"makeTwoWayListenerHandlerOps");function Ya(e){return e instanceof Gt?e.ast:e}l(Ya,"astOf");function Kg(e,t){IN(e.localRefs);for(let{name:n,value:r}of t.references)e.localRefs.push({name:n,target:r})}l(Kg,"ingestReferences");function IN(e){if(!Array.isArray(e))throw new Error("AssertionError: expected an array")}l(IN,"assertIsArray");function Ge(e,t){if(t===null)return null;let n=t.start.moveBy(e.start),r=t.start.moveBy(e.end),s=t.fullStart.moveBy(e.start);return new F(n,r,s)}l(Ge,"convertSourceSpan");function Ka(e,t,n){let r=null;for(let s of n.children)if(!(s instanceof hi||s instanceof Tr)){if(r!==null)return null;if(s instanceof de&&e.job.getForeignComponent(s)===null||s instanceof De&&s.tagName!==null)r=s;else return null}if(r!==null){for(let i of r.attributes)if(!i.name.startsWith(tM)){let a=Ar.securityContext(xi,i.name,!0);e.update.push(ns(t,D.Attribute,i.name,g(i.value),null,a,!0,!1,null,Kn(i.i18n),i.sourceSpan))}for(let i of r.inputs)if(i.type!==$.LegacyAnimation&&i.type!==$.Animation&&i.type!==$.Attribute){let a=Ar.securityContext(xi,i.name,!0);e.create.push(sn(t,D.Property,null,i.name,null,null,null,a))}let s=r instanceof de?r.name:r.tagName;return s===xi?null:s}return null}l(Ka,"ingestControlFlowInsertionPoint");function kN(e){let t=new Set(e.params.map(n=>n.name));return P(e,n=>{if(n instanceof on)for(let r of n.params)t.add(r.name);else if(n instanceof ht&&t.has(n.name))return B(n.name);return n},G.None)}l(kN,"updateParameterReferences");var nM=!1;function Il(e,t){return no(B(uo).bitwiseAnd(g(e),null),t)}l(Il,"renderFlagCheckIfStmt");function PN(e){return(e.descendants?1:0)|(e.static?2:0)|(e.emitDistinctChangesOnly?4:0)}l(PN,"toQueryFlags");function LN(e,t){if(Array.isArray(e.predicate)){let n=[];return e.predicate.forEach(r=>{let s=r.split(",").map(i=>g(i.trim()));n.push(...s)}),t.getConstLiteral(K(n),!0)}else switch(e.predicate.forwardRef){case 0:case 2:return e.predicate.expression;case 1:return _(m.resolveForwardRef).callFn([e.predicate.expression])}}l(LN,"getQueryPredicate");function Qg(e,t,n){let r=[];return n!==void 0&&r.push(...n),e.isSignal&&r.push(new ft(B(un),e.propertyName)),r.push(LN(e,t),g(PN(e))),e.read&&r.push(e.read),r}l(Qg,"getQueryCreateParameters");var Jg=Symbol("queryAdvancePlaceholder");function Zg(e){let t=[],n=0,r=l(()=>{n>0&&(t.unshift(_(m.queryAdvance).callFn(n===1?[]:[g(n)]).toStmt()),n=0)},"flushAdvanceCount");for(let s=e.length-1;s>=0;s--){let i=e[s];i===Jg?n++:(r(),t.unshift(i))}return r(),t}l(Zg,"collapseAdvanceStatements");function DN(e,t,n){let r=[],s=[],i=Km(u=>s.push(u),Ym),a=null,o=null;e.forEach(u=>{let p=Qg(u,t);if(u.isSignal?(a??=_(m.viewQuerySignal),a=a.callFn(p)):(o??=_(m.viewQuery),o=o.callFn(p)),u.isSignal){s.push(Jg);return}let h=i(),f=_(m.loadQuery).callFn([]),v=_(m.queryRefresh).callFn([h.set(f)]),E=B(un).prop(u.propertyName).set(u.first?h.prop("first"):h);s.push(v.and(E).toStmt())}),a!==null&&r.push(new St(a)),o!==null&&r.push(new St(o));let c=n?`${n}_Query`:null;return er([new Te(uo,Kr),new Te(un,L)],[Il(1,r),Il(2,Zg(s))],L,null,c)}l(DN,"createViewQueriesFunction");function ON(e,t,n){let r=[],s=[],i=Km(u=>s.push(u),Ym),a=null,o=null;for(let u of e){let p=Qg(u,t,[B("dirIndex")]);if(u.isSignal?(a??=_(m.contentQuerySignal),a=a.callFn(p)):(o??=_(m.contentQuery),o=o.callFn(p)),u.isSignal){s.push(Jg);continue}let h=i(),f=_(m.loadQuery).callFn([]),v=_(m.queryRefresh).callFn([h.set(f)]),E=B(un).prop(u.propertyName).set(u.first?h.prop("first"):h);s.push(v.and(E).toStmt())}a!==null&&r.push(new St(a)),o!==null&&r.push(new St(o));let c=n?`${n}_ContentQueries`:null;return er([new Te(uo,Kr),new Te(un,L),new Te("dirIndex",Kr)],[Il(1,r),Il(2,Zg(s))],L,null,c)}l(ON,"createContentQueriesFunction");var ev=class extends FC{static{l(this,"HtmlParser")}constructor(){super(Cl)}parse(e,t,n){return super.parse(e,t,n)}};function RN(e){if(e==null||e.length===0||e[0]=="/")return!1;let t=e.match(rM);return t===null||t[1]=="package"||t[1]=="asset"}l(RN,"isStyleUrlResolvable");var rM=/^([^:/?#]+):/,sM="select",iM="link",aM="rel",oM="href",lM="stylesheet",cM="style",uM=new Set([":math:script",":svg:script","script"]),pM="ngNonBindable",hM="ngProjectAs";function tv(e){let t=null,n=null,r=null,s=!1,i="";for(let c of e.attrs){let u=c.name.toLowerCase();u==sM?t=c.value:u==oM?n=c.value:u==aM?r=c.value:c.name==pM?s=!0:c.name==hM&&c.value.length>0&&(i=c.value)}t||="*";let a=e.name.toLowerCase(),o=Xt.OTHER;return yl(a)?o=Xt.NG_CONTENT:cM===a?o=Xt.STYLE:uM.has(a)?o=Xt.SCRIPT:a==iM&&r==lM&&(o=Xt.STYLESHEET),new dM(o,t,n,s,i)}l(tv,"preparseElement");var Xt;(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"})(Xt||(Xt={}));var dM=class{static{l(this,"PreparsedElement")}type;selectAttr;hrefAttr;nonBindable;projectAs;constructor(e,t,n,r,s){this.type=e,this.selectAttr=t,this.hrefAttr=n,this.nonBindable=r,this.projectAs=s}},fM=/^(when\s+)(.*)/;function Uf(e){return e==="error"}l(Uf,"isConnectedBoundaryErrorBlock");function BN(e,t,n,r){let s=[],i=[];e.parameters.length>0&&s.push(new k(e.sourceSpan,"@boundary block cannot have parameters"));for(let h=0;h<t.length;h++){let f=t[h];if(f.name!=="error"){s.push(new k(f.sourceSpan,`Unrecognized @boundary connected block @${f.name}`));continue}let v=new F(f.startSourceSpan.end,f.startSourceSpan.end),E=[new cn("$error","$error",v,v,v),new cn("$reset","$reset",v,v,v)],T=null;for(let y of f.parameters){let N=y.expression.match($m),V=y.expression.match(/^\s*[$A-Z_][0-9A-Z_$]*\s*=/i)!==null;if(N!==null||V){let le=N!==null?N[1]:y.expression,Ht=N!==null?new F(y.sourceSpan.start.moveBy(N[0].length-N[1].length),y.sourceSpan.end):y.sourceSpan;Um(y.sourceSpan,le,Ht,E,s,(ge,Le,Q)=>{Le!=="$error"&&Le!=="$reset"?s.push(new k(Q,`Unknown context variable "${Le}". Only "$error" and "$reset" are allowed`)):E.some(ut=>ut.name===ge)&&s.push(new k(Q,`Duplicate "let" parameter variable "${ge}"`))},"@error block","$error");continue}let q=y.expression.match(fM);if(q){if(T!==null)s.push(new k(y.sourceSpan,'@error block can only have one "when" expression'));else{let le=y.expression.indexOf(q[2]),Ht=le+q[2].length;T=r.parseBinding(y.expression.slice(le,Ht),!1,y.sourceSpan,y.sourceSpan.start.offset+le).ast}continue}s.push(new k(y.sourceSpan,`Unrecognized @error block parameter "${y.expression}"`))}i.push(new jl(M(n,f.children,f.children),E,T,f.nameSpan,f.sourceSpan,f.startSourceSpan,f.endSourceSpan,f.i18n))}let a=!1;for(let h=0;h<i.length;h++){let f=i[h];f.expression===null&&(a?s.push(new k(f.sourceSpan,"@boundary block can only have one unconditional @error block")):h!==i.length-1&&s.push(new k(f.sourceSpan,"Unconditional @error block must be the last @error block in the boundary chain")),a=!0)}let o=e.sourceSpan,c=i[i.length-1];c!==void 0&&(o=new F(e.startSourceSpan.start,c.sourceSpan.end));let u=i.length>0?i[i.length-1].endSourceSpan:e.endSourceSpan;return{node:new ao(M(n,e.children,e.children),i,e.nameSpan,o,e.sourceSpan,e.startSourceSpan,u,e.i18n),errors:s}}l(BN,"createBoundaryBlock");function MN(e,t){let n=[];if(e.parameters.length<1||e.parameters.length>2)return n.push(new k(e.startSourceSpan,'@content block must have one or two parameters, e.g. "@content(header)" or "@content(items; let item, index)"')),{node:null,errors:n};let r=e.parameters[0],s=r.expression.trim();if(s.includes(","))return n.push(new k(e.startSourceSpan,"@content block must have exactly one name parameter")),{node:null,errors:n};if(!Wu.test(s))return n.push(new k(r.sourceSpan,"@content name must be a valid JavaScript identifier")),{node:null,errors:n};let i=FN(e,n);return i===null?{node:null,errors:n}:{node:new Hl(s,i,M(t,e.children,e.children),e.nameSpan,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n),errors:n}}l(MN,"createContentBlock");function FN(e,t){let n=[];if(e.parameters.length<2)return n;let r=e.parameters[1],i=r.expression.trim().match($m);if(!i)return t.push(new k(r.sourceSpan,'@content block variables must start with "let", e.g. "let item, index"')),null;let a=i[1].split(",").map(h=>h.trim()),o=i[1],c=r.expression.indexOf(o),u=r.sourceSpan.start.moveBy(c),p=0;for(let h of a){if(h===""){t.push(new k(r.sourceSpan,"Invalid variable name in @content block"));continue}let f,v=o.indexOf(h,p),E=u.moveBy(v);if(h.includes("=")){let T=h.indexOf("="),y=h.substring(0,T).trim(),N=new F(E,E.moveBy(h.length));t.push(new k(N,"@content block variables cannot be assigned a value")),h=y,f=new F(E,E.moveBy(h.length))}else f=new F(E,E.moveBy(h.length));if(!Wu.test(h)){t.push(new k(f,`Variable name "${h}" must be a valid JavaScript identifier`)),p=v+h.length;continue}if(n.some(T=>T.name===h)){t.push(new k(f,`Duplicate variable name "${h}" in @content block`)),p=v+h.length;continue}n.push(new cn(h,"",f,f)),p=v+h.length}return n}l(FN,"parseContentBlockVariables");var mM=/^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/,gM=/^track\s+([\S\s]*)/,vM=/^(as\s+)(.*)/,Vo=new Set(["$index","$first","$last","$even","$odd","$count"]);function Vf(e){return e==="empty"}l(Vf,"isConnectedForLoopBlock");function qf(e){return e==="else"||e==="else if"}l(qf,"isConnectedIfLoopBlock");function $N(e,t,n,r){let s=jN(t),i=[],a=Hf(e,s,r);a!==null&&i.push(new yi(a.expression,M(n,e.children,e.children),a.expressionAlias,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.nameSpan,e.i18n));for(let h of t)if(h.name==="else if"){let f=Hf(h,s,r);if(f!==null){let v=M(n,h.children,h.children);i.push(new yi(f.expression,v,f.expressionAlias,h.sourceSpan,h.startSourceSpan,h.endSourceSpan,h.nameSpan,h.i18n))}}else if(h.name==="else"){let f=M(n,h.children,h.children);i.push(new yi(null,f,null,h.sourceSpan,h.startSourceSpan,h.endSourceSpan,h.nameSpan,h.i18n))}let o=i.length>0?i[0].startSourceSpan:e.startSourceSpan,c=i.length>0?i[i.length-1].endSourceSpan:e.endSourceSpan,u=e.sourceSpan,p=i[i.length-1];return p!==void 0&&(u=new F(o.start,p.sourceSpan.end)),{node:new zl(i,u,e.startSourceSpan,c,e.nameSpan),errors:s}}l($N,"createIfBlock");function UN(e,t,n,r){let s=[],i=qN(e,s,r),a=null,o=null;for(let c of t)c.name==="empty"?o!==null?s.push(new k(c.sourceSpan,"@for loop can only have one @empty block")):c.parameters.length>0?s.push(new k(c.sourceSpan,"@empty block cannot have parameters")):o=new Hu(M(n,c.children,c.children),c.sourceSpan,c.startSourceSpan,c.endSourceSpan,c.nameSpan,c.i18n):s.push(new k(c.sourceSpan,`Unrecognized @for loop block "${c.name}"`));if(i!==null){let c=o?.endSourceSpan??e.endSourceSpan,u=new F(e.sourceSpan.start,c?.end??e.sourceSpan.end),p,h;i.trackBy===null?(p=h=null,s.push(new k(e.startSourceSpan,'@for loop must have a "track" expression'))):(p=i.trackBy.expression,h=i.trackBy.keywordSpan,HN(i.trackBy.expression,i.trackBy.keywordSpan,s)),a=new Zr(i.itemName,i.expression,p,h,i.context,M(n,e.children,e.children),o,u,e.sourceSpan,e.startSourceSpan,c,e.nameSpan,e.i18n)}return{node:a,errors:s}}l(UN,"createForLoop");function VN(e,t,n){let r=WN(e),s=e.parameters.length>0?bi(e.parameters[0],n):n.parseBinding("",!1,e.sourceSpan,0),i=[],a=[],o=[],c=null,u=null;for(let h of e.children){if(!(h instanceof Bn))continue;if((h.name!=="case"||h.parameters.length===0)&&h.name!=="default"&&h.name!=="default never"){a.push(new Fm(h.name,h.sourceSpan,h.nameSpan));continue}u!==null&&r.push(new k(h.sourceSpan,'@default block with "never" parameter must be the last case in a switch'));let f=h.name==="case",v=null;if(f)v=bi(h.parameters[0],n);else if(h.name==="default never"){h.parameters.length>0&&(v=bi(h.parameters[0],n)),(h.children.length>0||h.endSourceSpan!==null&&h.endSourceSpan.start.offset!==h.endSourceSpan.end.offset)&&r.push(new k(h.sourceSpan,'@default block with "never" parameter cannot have a body')),o.length>0&&r.push(new k(h.sourceSpan,'A @case block with no body cannot be followed by a @default block with "never" parameter')),u=new TT(v,h.sourceSpan,h.startSourceSpan,h.endSourceSpan,h.nameSpan);continue}let E=new wT(v,h.sourceSpan,h.startSourceSpan,h.endSourceSpan,h.nameSpan);if(o.push(E),h.children.length===0&&h.endSourceSpan!==null&&h.endSourceSpan.start.offset===h.endSourceSpan.end.offset){c===null&&(c=h.sourceSpan);continue}let y=h.sourceSpan,N=h.startSourceSpan;c!==null&&(y=new F(c.start,h.sourceSpan.end),N=new F(c.start,h.startSourceSpan.end),c=null);let V=new qu(o,M(t,h.children,h.children),y,N,h.endSourceSpan,h.nameSpan,h.i18n);i.push(V),o=[]}return{node:new Wl(s,i,a,u,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.nameSpan),errors:r}}l(VN,"createSwitchBlock");function qN(e,t,n){if(e.parameters.length===0)return t.push(new k(e.startSourceSpan,"@for loop does not have an expression")),null;let[r,...s]=e.parameters,i=zN(r,t)?.match(mM);if(!i||i[2].trim().length===0)return t.push(new k(r.sourceSpan,'Cannot parse expression. @for loop expression must match the pattern "<identifier> of <expression>"')),null;let[,a,o]=i;Vo.has(a)&&t.push(new k(r.sourceSpan,`@for loop item name cannot be one of ${Array.from(Vo).join(", ")}.`));let c=r.expression.split(" ")[0],u=new F(r.sourceSpan.start,r.sourceSpan.start.moveBy(c.length)),p={itemName:new cn(a,"$implicit",u,u),trackBy:null,expression:bi(r,n,o),context:Array.from(Vo,h=>{let f=new F(e.startSourceSpan.end,e.startSourceSpan.end);return new cn(h,h,f,f)})};for(let h of s){let f=h.expression.match($m);if(f!==null){let E=new F(h.sourceSpan.start.moveBy(f[0].length-f[1].length),h.sourceSpan.end);Um(h.sourceSpan,f[1],E,p.context,t,(T,y,N)=>{Vo.has(y)?T===a?t.push(new k(N,`Invalid @for loop "let" parameter. Variable cannot be called "${a}"`)):p.context.some(V=>V.name===T)&&t.push(new k(N,`Duplicate "let" parameter variable "${y}"`)):t.push(new k(N,`Unknown "let" parameter variable "${y}". The allowed variables are: ${Array.from(Vo).join(", ")}`))},"@for loop");continue}let v=h.expression.match(gM);if(v!==null){if(p.trackBy!==null)t.push(new k(h.sourceSpan,'@for loop can only have one "track" expression'));else{let E=bi(h,n,v[1]);E.ast instanceof gt&&t.push(new k(e.startSourceSpan,'@for loop must have a "track" expression'));let T=new F(h.sourceSpan.start,h.sourceSpan.start.moveBy(5));p.trackBy={expression:E,keywordSpan:T}}continue}t.push(new k(h.sourceSpan,`Unrecognized @for loop parameter "${h.expression}"`))}return p}l(qN,"parseForLoopParameters");function HN(e,t,n){let r=new EM;e.ast.visit(r),r.hasPipe&&n.push(new k(t,"Cannot use pipes in track expressions"))}l(HN,"validateTrackByExpression");function jN(e){let t=[],n=!1;for(let r=0;r<e.length;r++){let s=e[r];s.name==="else"?(n?t.push(new k(s.startSourceSpan,"Conditional can only have one @else block")):e.length>1&&r<e.length-1?t.push(new k(s.startSourceSpan,"@else block must be last inside the conditional")):s.parameters.length>0&&t.push(new k(s.startSourceSpan,"@else block cannot have parameters")),n=!0):s.name!=="else if"&&t.push(new k(s.startSourceSpan,`Unrecognized conditional block @${s.name}`))}return t}l(jN,"validateIfConnectedBlocks");function WN(e){let t=[],n=!1;if(e.parameters.length!==1)return t.push(new k(e.startSourceSpan,"@switch block must have exactly one parameter")),t;for(let r of e.children)if(!(r instanceof Yi||r instanceof cs&&r.value.trim().length===0)){if(!(r instanceof Bn)||r.name!=="case"&&r.name!=="default"&&r.name!=="default never"){t.push(new k(r.sourceSpan,"@switch block can only contain @case and @default blocks"));continue}r.name==="default never"?(n&&t.push(new k(r.startSourceSpan,"@switch block can only have one @default block")),n=!0):r.name==="default"?(n?t.push(new k(r.startSourceSpan,"@switch block can only have one @default block")):r.parameters.length>0&&t.push(new k(r.startSourceSpan,"@default block cannot have parameters")),n=!0):r.name==="case"&&r.parameters.length!==1&&t.push(new k(r.startSourceSpan,"@case block must have exactly one parameter"))}return t}l(WN,"validateSwitchBlock");function bi(e,t,n){let r,s;return typeof n=="string"?(r=Math.max(0,e.expression.lastIndexOf(n)),s=r+n.length):(r=0,s=e.expression.length),t.parseBinding(e.expression.slice(r,s),!1,e.sourceSpan,e.sourceSpan.start.offset+r)}l(bi,"parseBlockParameterToBinding");function Hf(e,t,n){if(e.parameters.length===0)return t.push(new k(e.startSourceSpan,"Conditional block does not have an expression")),null;let r=bi(e.parameters[0],n),s=null;for(let i=1;i<e.parameters.length;i++){let a=e.parameters[i],o=a.expression.match(vM);if(o===null)t.push(new k(a.sourceSpan,`Unrecognized conditional parameter "${a.expression}"`));else if(e.name!=="if"&&e.name!=="else if")t.push(new k(a.sourceSpan,'"as" expression is only allowed on `@if` and `@else if` blocks'));else if(s!==null)t.push(new k(a.sourceSpan,'Conditional can only have one "as" expression'));else{let c=o[2].trim();if(Wu.test(c)){let u=a.sourceSpan.start.moveBy(o[1].length),p=new F(u,u.moveBy(c.length));s=new cn(c,c,p,p)}else t.push(new k(a.sourceSpan,'"as" expression must be a valid JavaScript identifier'))}}return{expression:r,expressionAlias:s}}l(Hf,"parseConditionalBlockParameters");function zN(e,t){let n=e.expression,r=/^\s$/,s=0,i=0,a=n.length-1;for(let o=0;o<n.length;o++){let c=n[o];if(c==="(")i=o+1,s++;else{if(r.test(c))continue;break}}if(s===0)return n;for(let o=n.length-1;o>-1;o--){let c=n[o];if(c===")"){if(a=o,s--,s===0)break}else{if(r.test(c))continue;break}}return s!==0?(t.push(new k(e.sourceSpan,"Unclosed parentheses in expression")),null):n.slice(i,a)}l(zN,"stripOptionalParentheses");var EM=class extends io{static{l(this,"PipeVisitor")}hasPipe=!1;visitPipe(){this.hasPipe=!0}},SM=/^\d+\.?\d*(ms|s)?$/,yM=/^\s$/,Fy=new Map([[yn,Lt],[Qn,wr],[Rt,st]]),Et;(function(e){e.IDLE="idle",e.TIMER="timer",e.INTERACTION="interaction",e.IMMEDIATE="immediate",e.HOVER="hover",e.VIEWPORT="viewport",e.NEVER="never"})(Et||(Et={}));function GN({expression:e,sourceSpan:t},n,r){let s=e.indexOf("never"),i=new F(t.start.moveBy(s),t.start.moveBy(s+5)),a=lp(e,t),o=cp(e,t);s===-1?r.push(new k(t,'Could not find "never" keyword in expression')):up("never",n,r,new vT(i,t,a,null,o))}l(GN,"parseNeverTrigger");function Rc({expression:e,sourceSpan:t},n,r,s){let i=e.indexOf("when"),a=new F(t.start.moveBy(i),t.start.moveBy(i+4)),o=lp(e,t),c=cp(e,t);if(i===-1)s.push(new k(t,'Could not find "when" keyword in expression'));else{let u=Qa(e,i+1),p=n.parseBinding(e.slice(u),!1,t,t.start.offset+u);up("when",r,s,new Rm(p,t,o,a,c))}}l(Rc,"parseWhenTrigger");function Bc({expression:e,sourceSpan:t},n,r,s,i){let a=e.indexOf("on"),o=new F(t.start.moveBy(a),t.start.moveBy(a+2)),c=lp(e,t),u=cp(e,t);if(a===-1)s.push(new k(t,'Could not find "on" keyword in expression'));else{let p=Qa(e,a+1),h=e.startsWith("hydrate");new wM(e,n,p,t,r,s,h?tI:eI,h,c,o,u).parse()}}l(Bc,"parseOnTrigger");function lp(e,t){return e.startsWith("prefetch")?new F(t.start,t.start.moveBy(8)):null}l(lp,"getPrefetchSpan");function cp(e,t){return e.startsWith("hydrate")?new F(t.start,t.start.moveBy(7)):null}l(cp,"getHydrateSpan");var wM=class{static{l(this,"OnTriggerParser")}expression;bindingParser;start;span;triggers;errors;validator;isHydrationTrigger;prefetchSpan;onSourceSpan;hydrateSpan;index=0;tokens;constructor(e,t,n,r,s,i,a,o,c,u,p){this.expression=e,this.bindingParser=t,this.start=n,this.span=r,this.triggers=s,this.errors=i,this.validator=a,this.isHydrationTrigger=o,this.prefetchSpan=c,this.onSourceSpan=u,this.hydrateSpan=p,this.tokens=new sp().tokenize(e.slice(n))}parse(){for(;this.tokens.length>0&&this.index<this.tokens.length;){let e=this.token();if(!e.isIdentifier()){this.unexpectedToken(e);break}if(this.isFollowedByOrLast(xt))this.consumeTrigger(e,[]),this.advance();else if(this.isFollowedByOrLast(Rt)){this.advance();let t=this.errors.length,n=this.consumeParameters();if(this.errors.length!==t)break;this.consumeTrigger(e,n),this.advance()}else this.index<this.tokens.length-1&&this.unexpectedToken(this.tokens[this.index+1]);this.advance()}}advance(){this.index++}isFollowedByOrLast(e){return this.index===this.tokens.length-1?!0:this.tokens[this.index+1].isCharacter(e)}token(){return this.tokens[Math.min(this.index,this.tokens.length-1)]}consumeTrigger(e,t){let n=this.span.start.moveBy(this.start+e.index-this.tokens[0].index),r=new F(n,n.moveBy(e.strValue.length)),s=n.moveBy(this.token().end-e.index),i=e.index===0,a=i?this.onSourceSpan:null,o=i?this.prefetchSpan:null,c=i?this.hydrateSpan:null,u=new F(i?this.span.start:n,s);try{switch(e.toString()){case Et.IDLE:this.trackTrigger("idle",XN(t,r,u,o,a,c));break;case Et.TIMER:this.trackTrigger("timer",YN(t,r,u,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case Et.INTERACTION:this.trackTrigger("interaction",JN(t,r,u,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case Et.IMMEDIATE:this.trackTrigger("immediate",KN(t,r,u,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case Et.HOVER:this.trackTrigger("hover",QN(t,r,u,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case Et.VIEWPORT:this.trackTrigger("viewport",ZN(this.start,this.isHydrationTrigger,this.bindingParser,t,r,u,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;default:throw new Error(`Unrecognized trigger type "${e}"`)}}catch(p){this.error(e,p.message)}}consumeParameters(){let e=[];if(!this.token().isCharacter(Rt))return this.unexpectedToken(this.token()),e;this.advance();let t=[],n=[];for(;this.index<this.tokens.length;){let r=this.token();if(r.isCharacter(st)&&t.length===0){n.length&&e.push({expression:this.tokenRangeText(n),start:n[0].index});break}if(r.type===H.Character&&Fy.has(r.numValue)&&t.push(Fy.get(r.numValue)),t.length>0&&r.isCharacter(t[t.length-1])&&t.pop(),t.length===0&&r.isCharacter(xt)&&n.length>0){e.push({expression:this.tokenRangeText(n),start:n[0].index}),this.advance(),n=[];continue}n.push(r),this.advance()}return(!this.token().isCharacter(st)||t.length>0)&&this.error(this.token(),"Unexpected end of expression"),this.index<this.tokens.length-1&&!this.tokens[this.index+1].isCharacter(xt)&&this.unexpectedToken(this.tokens[this.index+1]),e}tokenRangeText(e){return e.length===0?"":this.expression.slice(this.start+e[0].index,this.start+e[e.length-1].end)}trackTrigger(e,t){up(e,this.triggers,this.errors,t)}error(e,t){let n=this.span.start.moveBy(this.start+e.index),r=n.moveBy(e.end-e.index);this.errors.push(new k(new F(n,r),t))}unexpectedToken(e){this.error(e,`Unexpected token "${e}"`)}};function up(e,t,n,r){t[e]?n.push(new k(r.sourceSpan,`Duplicate "${e}" trigger is not allowed`)):t[e]=r}l(up,"trackTrigger");function XN(e,t,n,r,s,i){if(e.length>1)throw new Error(`"${Et.IDLE}" trigger can only have zero or one parameters`);let a=null;if(e[0]&&(a=Ja(e[0].expression),a===null))throw new Error(`Could not parse time value of trigger "${Et.IDLE}"`);return new ET(t,n,r,s,i,a)}l(XN,"createIdleTrigger");function YN(e,t,n,r,s,i){if(e.length!==1)throw new Error(`"${Et.TIMER}" trigger must have exactly one parameter`);let a=Ja(e[0].expression);if(a===null)throw new Error(`Could not parse time value of trigger "${Et.TIMER}"`);return new yT(a,t,n,r,s,i)}l(YN,"createTimerTrigger");function KN(e,t,n,r,s,i){if(e.length>0)throw new Error(`"${Et.IMMEDIATE}" trigger cannot have parameters`);return new ST(t,n,r,s,i)}l(KN,"createImmediateTrigger");function QN(e,t,n,r,s,i,a){return a(Et.HOVER,e),new Bm(e[0]?.expression??null,t,n,r,s,i)}l(QN,"createHoverTrigger");function JN(e,t,n,r,s,i,a){return a(Et.INTERACTION,e),new Mm(e[0]?.expression??null,t,n,r,s,i)}l(JN,"createInteractionTrigger");function ZN(e,t,n,r,s,i,a,o,c,u){u(Et.VIEWPORT,r);let p,h;if(r.length===0)p=h=null;else if(!r[0].expression.startsWith("{"))p=r[0].expression,h=null;else{let f=n.parseBinding(r[0].expression,!1,i,i.start.offset+e+r[0].start);if(f.ast instanceof Pi){if(f.ast.keys.some(E=>E.kind==="spread"))throw new Error("Spread operator are not allowed in this context");if(f.ast.keys.some(E=>E.kind==="property"&&E.key==="root"))throw new Error('The "root" option is not supported in the options parameter of the "viewport" trigger')}else throw new Error('Options parameter of the "viewport" trigger must be an object literal');let v=f.ast.keys.findIndex(E=>E.kind==="property"&&E.key==="trigger");if(v===-1)p=null,h=f.ast;else{let E=f.ast.values[v],T=l((y,N)=>N!==v,"triggerFilter");if(!(E instanceof Je)||!(E.receiver instanceof dt))throw new Error('"trigger" option of the "viewport" trigger must be an identifier');p=E.name,h=new Pi(f.ast.span,f.ast.sourceSpan,f.ast.keys.filter(T),f.ast.values.filter(T))}}if(t&&p!==null)throw new Error('"viewport" hydration trigger cannot have a "trigger"');if(h){let f=TM.findDynamicNode(h);if(f!==null)throw new Error(`Options of the "viewport" trigger must be an object literal containing only literal values, but "${f.constructor.name}" was found`)}return new Fu(p,h,s,i,a,o,c)}l(ZN,"createViewportTrigger");function eI(e,t){if(t.length>1)throw new Error(`"${e}" trigger can only have zero or one parameters`)}l(eI,"validatePlainReferenceBasedTrigger");function tI(e,t){if(e===Et.VIEWPORT){if(t.length>1)throw new Error(`Hydration trigger "${e}" cannot have more than one parameter`);return}if(t.length>0)throw new Error(`Hydration trigger "${e}" cannot have parameters`)}l(tI,"validateHydrateReferenceBasedTrigger");function Qa(e,t=0){let n=!1;for(let r=t;r<e.length;r++)if(yM.test(e[r]))n=!0;else if(n)return r;return-1}l(Qa,"getTriggerParametersStart");function Ja(e){let t=e.match(SM);if(!t)return null;let[n,r]=t;return parseFloat(n)*(r==="s"?1e3:1)}l(Ja,"parseDeferredTime");var TM=class nI extends io{static{l(this,"DynamicAstValidator")}dynamicNode=null;static findDynamicNode(t){let n=new nI;return n.visit(t),n.dynamicNode}visit(t){!(t instanceof Gt)&&!(t instanceof Dt)&&!(t instanceof Vl)&&!(t instanceof Pi)?this.dynamicNode=t:super.visit(t)}},xM=/^prefetch\s+when\s/,bM=/^prefetch\s+on\s/,AM=/^hydrate\s+when\s/,CM=/^hydrate\s+on\s/,_M=/^hydrate\s+never(\s*)$/,rI=/^minimum\s/,NM=/^after\s/,IM=/^when\s/,kM=/^on\s/,PM=/^name\s+/;function mu(e){return e==="placeholder"||e==="loading"||e==="error"}l(mu,"isConnectedDeferLoopBlock");function sI(e,t,n,r){let s=[],{placeholder:i,loading:a,error:o}=iI(t,s,n),{triggers:c,prefetchTriggers:u,hydrateTriggers:p,definedName:h}=cI(e,r,s),f=e.endSourceSpan,v=e.sourceSpan.end;if(t.length>0){let y=t[t.length-1];f=y.endSourceSpan,v=y.sourceSpan.end}let E=new F(e.sourceSpan.start,v);return{node:new Xr(M(n,e.children,e.children),c,u,p,i,a,o,e.nameSpan,E,e.sourceSpan,e.startSourceSpan,f,h,e.i18n),errors:s}}l(sI,"createDeferredBlock");function iI(e,t,n){let r=null,s=null,i=null;for(let a of e)try{if(!mu(a.name)){t.push(new k(a.startSourceSpan,`Unrecognized block "@${a.name}"`));break}switch(a.name){case"placeholder":r!==null?t.push(new k(a.startSourceSpan,"@defer block can only have one @placeholder block")):r=aI(a,n);break;case"loading":s!==null?t.push(new k(a.startSourceSpan,"@defer block can only have one @loading block")):s=oI(a,n);break;case"error":i!==null?t.push(new k(a.startSourceSpan,"@defer block can only have one @error block")):i=lI(a,n);break}}catch(o){t.push(new k(a.startSourceSpan,o.message))}return{placeholder:r,loading:s,error:i}}l(iI,"parseConnectedBlocks");function aI(e,t){let n=null;for(let r of e.parameters)if(rI.test(r.expression)){if(n!=null)throw new Error('@placeholder block can only have one "minimum" parameter');let s=Ja(r.expression.slice(Qa(r.expression)));if(s===null)throw new Error('Could not parse time value of parameter "minimum"');n=s}else throw new Error(`Unrecognized parameter in @placeholder block: "${r.expression}"`);return new $u(M(t,e.children,e.children),n,e.nameSpan,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}l(aI,"parsePlaceholderBlock");function oI(e,t){let n=null,r=null;for(let s of e.parameters)if(NM.test(s.expression)){if(n!=null)throw new Error('@loading block can only have one "after" parameter');let i=Ja(s.expression.slice(Qa(s.expression)));if(i===null)throw new Error('Could not parse time value of parameter "after"');n=i}else if(rI.test(s.expression)){if(r!=null)throw new Error('@loading block can only have one "minimum" parameter');let i=Ja(s.expression.slice(Qa(s.expression)));if(i===null)throw new Error('Could not parse time value of parameter "minimum"');r=i}else throw new Error(`Unrecognized parameter in @loading block: "${s.expression}"`);return new Uu(M(t,e.children,e.children),n,r,e.nameSpan,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}l(oI,"parseLoadingBlock");function lI(e,t){if(e.parameters.length>0)throw new Error("@error block cannot have parameters");return new Vu(M(t,e.children,e.children),e.nameSpan,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}l(lI,"parseErrorBlock");function cI(e,t,n,r){let s={},i={},a={},o=null;for(let c of e.parameters)if(IM.test(c.expression))Rc(c,t,s,n);else if(kM.test(c.expression))Bc(c,t,s,n);else if(xM.test(c.expression))Rc(c,t,i,n);else if(bM.test(c.expression))Bc(c,t,i,n);else if(AM.test(c.expression))Rc(c,t,a,n);else if(CM.test(c.expression))Bc(c,t,a,n);else if(_M.test(c.expression))GN(c,a,n);else if(PM.test(c.expression))if(o!==null)n.push(new k(c.sourceSpan,"Cannot specify multiple name parameters"));else{let u=c.expression.slice(5).trim();u.startsWith("'")||u.startsWith('"')||u.endsWith("'")||u.endsWith('"')?n.push(new k(c.sourceSpan,"Block names cannot be quoted in @defer blocks")):/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(u)?o=u:n.push(new k(c.sourceSpan,`Invalid block name "${u}"`))}else n.push(new k(c.sourceSpan,"Unrecognized trigger"));return a.never&&Object.keys(a).length>1&&n.push(new k(e.startSourceSpan,"Cannot specify additional `hydrate` triggers if `hydrate never` is present")),{triggers:s,prefetchTriggers:i,hydrateTriggers:a,definedName:o}}l(cI,"parsePrimaryTriggers");var LM=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,$y=1,Uy=2,Vy=3,qy=4,Hy=5,DM=6,qo=7,jr={BANANA_BOX:{start:"[(",end:")]"},PROPERTY:{start:"[",end:"]"},EVENT:{start:"(",end:")"}},Th="*",OM=new Set(["link","style","script","ng-template","ng-container","ng-content"]),RM=new Set(["ngProjectAs","ngNonBindable"]);function uI(e,t,n){let r=new BM(t,n),s=M(r,e,e),i=t.errors.concat(r.errors),a={nodes:s,errors:i,styleUrls:r.styleUrls,styles:r.styles,ngContentSelectors:r.ngContentSelectors};return n.collectCommentNodes&&(a.commentNodes=r.commentNodes),a}l(uI,"htmlAstToRender3Ast");var BM=class{static{l(this,"HtmlAstToIvyAst")}bindingParser;options;errors=[];styles=[];styleUrls=[];ngContentSelectors=[];commentNodes=[];inI18nBlock=!1;processedNodes=new Set;constructor(e,t){this.bindingParser=e,this.options=t}visitElement(e){let t=hl(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);let n=tv(e);if(n.type===Xt.SCRIPT)return null;if(n.type===Xt.STYLE){let y=pI(e);return y!==null&&this.styles.push(y),null}else if(n.type===Xt.STYLESHEET&&RN(n.hrefAttr))return this.styleUrls.push(n.hrefAttr),null;let r=jm(e.name),{attributes:s,boundEvents:i,references:a,variables:o,templateVariables:c,elementHasInlineTemplate:u,parsedProperties:p,templateParsedProperties:h,i18nAttrsMeta:f}=this.prepareAttributes(e.attrs,r),v=this.extractDirectives(e),E;n.nonBindable?E=M(jy,e.children).flat(1/0):E=M(this,e.children,e.children);let T;if(n.type===Xt.NG_CONTENT){let y=n.selectAttr,N=e.attrs.map(V=>this.visitAttribute(V));T=new oo(y,N,E,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n),this.ngContentSelectors.push(y)}else if(r){let y=this.categorizePropertyAttributes(e.name,p,f);T=new De(e.name,s,y.bound,i,v,[],E,a,o,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{let y=this.categorizePropertyAttributes(e.name,p,f);if(e.name==="ng-container")for(let N of y.bound)N.type===$.Attribute&&this.reportError("Attribute bindings are not supported on ng-container. Use property bindings instead.",N.sourceSpan);T=new de(e.name,s,y.bound,i,v,E,a,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid,e.i18n)}return this.options.collectCommentNodes&&e.comments.forEach(y=>{this.commentNodes.push(new hi(y.value||"",y.sourceSpan))}),u&&(T=this.wrapInTemplate(T,h,c,f,r,t)),t&&(this.inI18nBlock=!1),T}visitAttribute(e){return new vl(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return this.processedNodes.has(e)?null:this._visitTextWithInterpolation(e.value,e.sourceSpan,e.tokens,e.i18n)}visitExpansion(e){if(!e.i18n)return null;if(!hl(e.i18n))throw new Error(`Invalid type "${e.i18n.constructor}" for "i18n" property of ${e.sourceSpan.toString()}. Expected a "Message"`);let t=e.i18n,n={},r={};return Object.keys(t.placeholders).forEach(s=>{let i=t.placeholders[s];if(s.startsWith(ZO)){let a=s.trim(),o=this.bindingParser.parseInterpolationExpression(i.text,i.sourceSpan);n[a]=new Li(o,i.sourceSpan)}else r[s]=this._visitTextWithInterpolation(i.text,i.sourceSpan,null)}),new ju(n,r,e.sourceSpan,t)}visitExpansionCase(e){return null}visitComment(e){return this.options.collectCommentNodes&&this.commentNodes.push(new hi(e.value||"",e.sourceSpan)),null}visitStartTagComment(e){return this.options.collectCommentNodes&&this.commentNodes.push(new hi(e.value||"",e.sourceSpan)),null}visitLetDeclaration(e,t){let n=this.bindingParser.parseBinding(e.value,!1,e.valueSpan,e.valueSpan.start.offset);return n.errors.length===0&&n.ast instanceof gt&&this.reportError("@let declaration value cannot be empty",e.valueSpan),new Tr(e.name,n,e.sourceSpan,e.nameSpan,e.valueSpan)}visitComponent(e){let t=hl(e.i18n);if(t&&(this.inI18nBlock&&this.reportError("Cannot mark a component as translatable inside of a translatable section. Please remove the nested i18n marker.",e.sourceSpan),this.inI18nBlock=!0),e.tagName!==null&&OM.has(e.tagName))return this.reportError(`Tag name "${e.tagName}" cannot be used as a component tag`,e.startSourceSpan),null;let{attributes:n,boundEvents:r,references:s,templateVariables:i,elementHasInlineTemplate:a,parsedProperties:o,templateParsedProperties:c,i18nAttrsMeta:u}=this.prepareAttributes(e.attrs,!1);this.validateSelectorlessReferences(s);let p=this.extractDirectives(e),h;e.attrs.find(E=>E.name==="ngNonBindable")?h=M(jy,e.children).flat(1/0):h=M(this,e.children,e.children);let f=this.categorizePropertyAttributes(e.tagName,o,u),v=new Jn(e.componentName,e.tagName,e.fullName,n,f.bound,r,p,h,s,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return this.options.collectCommentNodes&&e.comments.forEach(E=>{this.commentNodes.push(new hi(E.value||"",E.sourceSpan))}),a&&(v=this.wrapInTemplate(v,c,i,u,!1,t)),t&&(this.inI18nBlock=!1),v}visitDirective(){return null}visitBlockParameter(){return null}visitBlock(e,t){let n=Array.isArray(t)?t.indexOf(e):-1;if(n===-1)throw new Error("Visitor invoked incorrectly. Expecting visitBlock to be invoked siblings array as its context");if(this.processedNodes.has(e))return null;let r=null;switch(e.name){case"defer":r=sI(e,this.findConnectedBlocks(n,t,mu),this,this.bindingParser);break;case"switch":r=VN(e,this,this.bindingParser);break;case"content":r=MN(e,this);break;case"for":r=UN(e,this.findConnectedBlocks(n,t,Vf),this,this.bindingParser);break;case"if":r=$N(e,this.findConnectedBlocks(n,t,qf),this,this.bindingParser);break;case"boundary":r=BN(e,this.findConnectedBlocks(n,t,Uf),this,this.bindingParser);break;default:let s;Uf(e.name)?(s=`@${e.name} block can only be used after an @defer or @boundary block.`,this.processedNodes.add(e)):mu(e.name)?(s=`@${e.name} block can only be used after an @defer block.`,this.processedNodes.add(e)):Vf(e.name)?(s=`@${e.name} block can only be used after an @for block.`,this.processedNodes.add(e)):qf(e.name)?(s=`@${e.name} block can only be used after an @if or @else if block.`,this.processedNodes.add(e)):s=`Unrecognized block @${e.name}.`,r={node:new Fm(e.name,e.sourceSpan,e.nameSpan),errors:[new k(e.sourceSpan,s)]};break}return this.errors.push(...r.errors),r.node}findConnectedBlocks(e,t,n){let r=[];for(let s=e+1;s<t.length;s++){let i=t[s];if(!(i instanceof Yi)){if(i instanceof cs&&i.value.trim().length===0){this.processedNodes.add(i);continue}if(!(i instanceof Bn)||!n(i.name))break;r.push(i),this.processedNodes.add(i)}}return r}categorizePropertyAttributes(e,t,n){let r=[],s=[];return t.forEach(i=>{let a=n[i.name];if(i.isLiteral)s.push(new vl(i.name,i.expression.source||"",i.sourceSpan,i.keySpan,i.valueSpan,a));else{let o=i.name.toLowerCase().startsWith("attr.on"),c=this.bindingParser.createBoundElementProperty(e,i,!o,!1);r.push(Di.fromBoundElementProperty(c,a))}}),{bound:r,literal:s}}prepareAttributes(e,t){let n=[],r=[],s=[],i=[],a=[],o={},c=[],u=[],p=!1;for(let h of e){let f=!1,v=!1;if(h.i18n&&(o[h.name]=h.i18n),h.name.startsWith(Th)){p&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",h.sourceSpan),v=!0,p=!0;let E=h.value,T=h.name.substring(Th.length),y=[],N=h.valueSpan?h.valueSpan.fullStart.offset:h.sourceSpan.fullStart.offset+h.name.length;this.bindingParser.parseInlineTemplateBinding(T,E,h.sourceSpan,N,[],c,y,!0),u.push(...y.map(V=>new cn(V.name,V.value,V.sourceSpan,V.keySpan,V.valueSpan)))}else f=this.parseAttribute(t,h,[],n,r,s,i);!f&&!v&&a.push(this.visitAttribute(h))}return{attributes:a,boundEvents:r,references:i,variables:s,templateVariables:u,elementHasInlineTemplate:p,parsedProperties:n,templateParsedProperties:c,i18nAttrsMeta:o}}parseAttribute(e,t,n,r,s,i,a){let o=t.name,c=t.value,u=t.sourceSpan,p=t.valueSpan?t.valueSpan.fullStart.offset:u.fullStart.offset;function h(y,N,V){let q=y.start.moveBy(N.length),le=q.moveBy(V.length);return new F(q,le,q,V)}l(h,"createKeySpan");let f=o.match(LM);if(f){if(f[$y]!=null){let y=f[qo],N=h(u,f[$y],y);this.bindingParser.parsePropertyBinding(y,c,!1,!1,u,p,t.valueSpan,n,r,N)}else if(f[Uy])if(e){let y=f[qo],N=h(u,f[Uy],y);this.parseVariable(y,c,u,N,t.valueSpan,i)}else this.reportError('"let-" is only supported on ng-template elements.',u);else if(f[Vy]){let y=f[qo],N=h(u,f[Vy],y);this.parseReference(y,c,u,N,t.valueSpan,a)}else if(f[qy]){let y=[],N=f[qo],V=h(u,f[qy],N);this.bindingParser.parseEvent(N,c,!1,u,t.valueSpan||u,n,y,V),Mc(y,s)}else if(f[Hy]){let y=f[qo],N=h(u,f[Hy],y);this.bindingParser.parsePropertyBinding(y,c,!1,!0,u,p,t.valueSpan,n,r,N),this.parseAssignmentEvent(y,c,u,t.valueSpan,n,s,N,p)}else if(f[DM]){let y=h(u,"",o);this.bindingParser.parseLiteralAttr(o,c,u,p,t.valueSpan,n,r,y)}return!0}let v=null;if(o.startsWith(jr.BANANA_BOX.start)?v=jr.BANANA_BOX:o.startsWith(jr.PROPERTY.start)?v=jr.PROPERTY:o.startsWith(jr.EVENT.start)&&(v=jr.EVENT),v!==null&&o.endsWith(v.end)&&o.length>v.start.length+v.end.length){let y=o.substring(v.start.length,o.length-v.end.length),N=h(u,v.start,y);if(v.start===jr.BANANA_BOX.start)this.bindingParser.parsePropertyBinding(y,c,!1,!0,u,p,t.valueSpan,n,r,N),this.parseAssignmentEvent(y,c,u,t.valueSpan,n,s,N,p);else if(v.start===jr.PROPERTY.start)this.bindingParser.parsePropertyBinding(y,c,!1,!1,u,p,t.valueSpan,n,r,N);else{let V=[];this.bindingParser.parseEvent(y,c,!1,u,t.valueSpan||u,n,V,N),Mc(V,s)}return!0}let E=h(u,"",o);return this.bindingParser.parsePropertyInterpolation(o,c,u,t.valueSpan,n,r,E,t.valueTokens??null)}extractDirectives(e){let t=e instanceof vt?e.tagName:e.name,n=[],r=new Set;for(let s of e.directives){let i=!1;for(let f of s.attrs)f.name.startsWith(Th)?(i=!0,this.reportError(`Shorthand template syntax "${f.name}" is not supported inside a directive context`,f.sourceSpan)):RM.has(f.name)&&(i=!0,this.reportError(`Attribute "${f.name}" is not supported in a directive context`,f.sourceSpan));if(!i&&r.has(s.name)&&(i=!0,this.reportError(`Cannot apply directive "${s.name}" multiple times on the same element`,s.sourceSpan)),i)continue;let{attributes:a,parsedProperties:o,boundEvents:c,references:u,i18nAttrsMeta:p}=this.prepareAttributes(s.attrs,!1);this.validateSelectorlessReferences(u);let{bound:h}=this.categorizePropertyAttributes(t,o,p);for(let f of h)f.type!==$.Property&&f.type!==$.TwoWay&&(i=!0,this.reportError("Binding is not supported in a directive context",f.sourceSpan));i||(r.add(s.name),n.push(new ka(s.name,a,h,c,u,s.sourceSpan,s.startSourceSpan,s.endSourceSpan,void 0)))}return n}filterAnimationAttributes(e){return e.filter(t=>!t.name.startsWith("animate."))}filterAnimationInputs(e){return e.filter(t=>t.type!==$.Animation)}wrapInTemplate(e,t,n,r,s,i){let a=this.categorizePropertyAttributes("ng-template",t,r),o=[];a.literal.forEach(h=>o.push(h)),a.bound.forEach(h=>o.push(h));let c={attributes:[],inputs:[],outputs:[]};(e instanceof de||e instanceof Jn)&&(c.attributes.push(...this.filterAnimationAttributes(e.attributes)),c.inputs.push(...this.filterAnimationInputs(e.inputs)),c.outputs.push(...e.outputs));let u=s&&i?void 0:e.i18n,p;return e instanceof Jn?p=e.tagName:e instanceof De?p=null:p=e.name,new De(p,c.attributes,c.inputs,c.outputs,[],o,[e],[],n,!1,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,u)}_visitTextWithInterpolation(e,t,n,r){let s=kg(e),i=this.bindingParser.parseInterpolation(s,t,n);return i?new Li(i,t,r):new Yn(s,t)}parseVariable(e,t,n,r,s,i){e.indexOf("-")>-1?this.reportError('"-" is not allowed in variable names',n):e.length===0&&this.reportError("Variable does not have a name",n),i.push(new cn(e,t,n,r,s))}parseReference(e,t,n,r,s,i){e.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',n):e.length===0?this.reportError("Reference does not have a name",n):i.some(a=>a.name===e)&&this.reportError(`Reference "#${e}" is defined more than once`,n),i.push(new El(e,t,n,r,s))}parseAssignmentEvent(e,t,n,r,s,i,a,o){let c=[];this.bindingParser.parseEvent(`${e}Change`,t,!0,n,r||n,s,c,a),Mc(c,i)}validateSelectorlessReferences(e){if(e.length===0)return;let t=new Set;for(let n of e)n.value.length>0?this.reportError("Cannot specify a value for a local reference in this context",n.valueSpan||n.sourceSpan):t.has(n.name)?this.reportError("Duplicate reference names are not allowed",n.sourceSpan):t.add(n.name)}reportError(e,t,n=Xn.ERROR){this.errors.push(new k(t,e,n))}},MM=class{static{l(this,"NonBindableVisitor")}visitElement(e){let t=tv(e);if(t.type===Xt.SCRIPT||t.type===Xt.STYLE||t.type===Xt.STYLESHEET)return null;let n=M(this,e.children,null);return new de(e.name,M(this,e.attrs),[],[],[],n,[],e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid)}visitComment(e){return null}visitAttribute(e){return new vl(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return new Yn(e.value,e.sourceSpan)}visitExpansion(e){return null}visitExpansionCase(e){return null}visitBlock(e,t){let n=[new Yn(e.startSourceSpan.toString(),e.startSourceSpan),...M(this,e.children)];return e.endSourceSpan!==null&&n.push(new Yn(e.endSourceSpan.toString(),e.endSourceSpan)),n}visitBlockParameter(e,t){return null}visitLetDeclaration(e,t){return new Yn(`@let ${e.name} = ${e.value};`,e.sourceSpan)}visitComponent(e,t){let n=M(this,e.children,null);return new de(e.fullName,M(this,e.attrs),[],[],[],n,[],e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,!1)}visitDirective(e,t){return null}},jy=new MM;function Mc(e,t){t.push(...e.map(n=>Mu.fromParsedEvent(n)))}l(Mc,"addEvents");function pI(e){return e.children.length!==1||!(e.children[0]instanceof cs)?null:e.children[0].value}l(pI,"textContents");var FM=[" ",`
57
+ `,"\r"," "];function pp(e,t,n={}){let{preserveWhitespaces:r,enableI18nLegacyMessageIdFormat:s}=n,i=n.enableSelectorless??!1,a=ss(i),c=new ev().parse(e,t,{leadingTriviaChars:FM,...n,tokenizeExpansionForms:!0,tokenizeBlocks:n.enableBlockSyntax??!0,tokenizeLet:n.enableLetSyntax??!0,selectorlessEnabled:i});if(!n.alwaysAttemptHtmlToR3AstConversion&&c.errors&&c.errors.length>0){let le={preserveWhitespaces:r,errors:c.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return n.collectCommentNodes&&(le.commentNodes=[]),le}let u=c.rootNodes,p=!(n.preserveSignificantWhitespace??!0),h=new Dy(!r,s,n.preserveSignificantWhitespace,p),f=h.visitAllWithErrors(u);if(!n.alwaysAttemptHtmlToR3AstConversion&&f.errors&&f.errors.length>0){let le={preserveWhitespaces:r,errors:f.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return n.collectCommentNodes&&(le.commentNodes=[]),le}u=f.rootNodes,r||(u=M(new Pg(!0,void 0,!1),u),h.hasI18nMeta&&(u=M(new Dy(!1,void 0,!0,p),u)));let{nodes:v,errors:E,styleUrls:T,styles:y,ngContentSelectors:N,commentNodes:V}=uI(u,a,{collectCommentNodes:!!n.collectCommentNodes});E.push(...c.errors,...f.errors);let q={preserveWhitespaces:r,errors:E.length>0?E:null,nodes:v,styleUrls:T,styles:y,ngContentSelectors:N};return n.collectCommentNodes&&(q.commentNodes=V),q}l(pp,"parseTemplate");var $M=new Ki;function ss(e=!1){return new eM(new Og(new sp,e),$M,[])}l(ss,"makeBindingParser");var gu="%COMP%",jf=`_nghost-${gu}`,Wf=`_ngcontent-${gu}`;function nv(e,t,n){let r=new Fe,s=Ol(e.selector);return r.set("type",e.type.value),s.length>0&&r.set("selectors",bt(s)),e.queries.length>0&&r.set("contentQueries",ON(e.queries,t,e.name)),e.viewQueries.length&&r.set("viewQuery",DN(e.viewQueries,t,e.name)),r.set("hostBindings",mI(e.host,e.typeSourceSpan,n,t,e.selector||"",e.name,r,e.legacyOptionalChaining)),r.set("inputs",su(e.inputs,!0)),r.set("outputs",su(e.outputs)),e.exportAs!==null&&r.set("exportAs",K(e.exportAs.map(i=>g(i)))),e.isStandalone===!1&&r.set("standalone",g(!1)),e.isSignal&&r.set("signals",g(!0)),r}l(nv,"baseDirectiveFields");function rv(e,t){let n=[],r=t.providers,s=t.viewProviders;if(r||s){let i=[r||new ir([])];s&&i.push(s),n.push(_(m.ProvidersFeature).callFn(i))}if(t.hostDirectives?.length&&n.push(_(m.HostDirectivesFeature).callFn([SI(t.hostDirectives)])),t.usesInheritance&&n.push(_(m.InheritDefinitionFeature)),t.lifecycle.usesOnChanges&&n.push(_(m.NgOnChangesFeature)),t.controlCreate!==null&&n.push(_(m.ControlFeature).callFn([g(t.controlCreate.passThroughInput)])),"externalStyles"in t&&t.externalStyles?.length){let i=t.externalStyles.map(a=>g(a));n.push(_(m.ExternalStylesFeature).callFn([K(i)]))}n.length&&e.set("features",K(n))}l(rv,"addFeatures");function sv(e,t,n){let r=nv(e,t,n);rv(r,e);let s=_(m.defineDirective).callFn([r.toLiteralMap()],void 0,!0),i=lv(e);return{expression:s,type:i,statements:[]}}l(sv,"compileDirectiveFromMetadata");function iv(e,t,n){let r=nv(e,t,n);rv(r,e);let s=e.name,i=null;if(e.defer.mode===1&&e.defer.dependenciesFn!==null){let f=`${s}_DeferFn`;t.statements.push(new Ke(f,e.defer.dependenciesFn,void 0,ke.Final)),i=B(f)}let a=e.isStandalone&&!e.hasDirectiveDependencies?Pt.DomOnly:Pt.Full,o=oN(e.name,e.template.nodes,t,a,e.relativeContextFilePath,e.i18nUseExternalIds,e.defer,i,e.relativeTemplatePath,e.enableTemplateSourceLocations||nM,e.legacyOptionalChaining,e.foreignImports);jg(o,I.Tmpl);let c=sN(o,t);if(o.contentSelectors!==null&&r.set("ngContentSelectors",o.contentSelectors),r.set("decls",g(o.root.decls)),r.set("vars",g(o.root.vars)),o.consts.length>0&&(o.constsInitializers.length>0?r.set("consts",Se([],[...o.constsInitializers,new Qe(K(o.consts))],L)):r.set("consts",K(o.consts))),r.set("template",c),e.declarationListEmitMode!==3&&e.declarations.length>0)r.set("dependencies",hI(K(e.declarations.map(f=>f.type)),e.declarationListEmitMode));else if(e.declarationListEmitMode===3){let f=[e.type.value];e.rawImports&&f.push(e.rawImports),r.set("dependencies",_(m.getComponentDepsFactory).callFn(f))}e.encapsulation===null&&(e.encapsulation=rn.Emulated);let u=!!e.externalStyles?.length;if(e.styles&&e.styles.length){let f=e.styles.map(T=>YT(T)),E=(e.encapsulation==rn.Emulated?vI(f,Wf,jf):f).reduce((T,y)=>(y.trim().length>0&&T.push(t.getConstLiteral(g(y))),T),[]);E.length>0&&(u=!0,r.set("styles",K(E)))}!u&&e.encapsulation===rn.Emulated&&(e.encapsulation=rn.None),e.encapsulation!==rn.Emulated&&r.set("encapsulation",g(e.encapsulation)),e.animations!==null&&r.set("data",je([{key:"animation",value:e.animations,quoted:!1}])),e.changeDetection!==null&&(typeof e.changeDetection=="number"&&e.changeDetection!==Ai.OnPush?r.set("changeDetection",g(e.changeDetection)):typeof e.changeDetection=="object"&&r.set("changeDetection",e.changeDetection));let p=_(m.defineComponent).callFn([r.toLiteralMap()],void 0,!0),h=av(e);return{expression:p,type:h,statements:[]}}l(iv,"compileComponentFromMetadata");function av(e){let t=ov(e);return t.push(Eu(e.template.ngContentSelectors)),t.push(He(g(e.isStandalone))),t.push(pv(e)),e.isSignal&&t.push(He(g(e.isSignal))),He(_(m.ComponentDeclaration,t))}l(av,"createComponentType");function hI(e,t){switch(t){case 0:return e;case 1:return Se([],e,L);case 2:let n=e.prop("map").callFn([_(m.resolveForwardRef)]);return Se([],n,L);case 3:throw new Error("Unsupported with an array of pre-resolved dependencies")}}l(hI,"compileDeclarationList");function dI(e){return He(g(e))}l(dI,"stringAsType");function vu(e){let t=Object.keys(e).map(n=>{let r=Array.isArray(e[n])?e[n][0]:e[n];return{key:n,value:g(r),quoted:!0}});return je(t)}l(vu,"stringMapAsLiteralExpression");function Eu(e){return e.length>0?He(K(e.map(t=>g(t)))):Mt}l(Eu,"stringArrayAsType");function ov(e){let t=e.selector!==null?e.selector.replace(/\n/g,""):null;return[zu(e.type.type,e.typeArgumentCount),t!==null?dI(t):Mt,e.exportAs!==null?Eu(e.exportAs):Mt,He(fI(e)),He(vu(e.outputs)),Eu(e.queries.map(n=>n.propertyName))]}l(ov,"createBaseDirectiveTypeParams");function fI(e){return je(Object.keys(e.inputs).map(t=>{let n=e.inputs[t],r=[{key:"alias",value:g(n.bindingPropertyName),quoted:!0},{key:"required",value:g(n.required),quoted:!0}];return n.isSignal&&r.push({key:"isSignal",value:g(n.isSignal),quoted:!0}),{key:t,value:je(r),quoted:!0}}))}l(fI,"getInputsTypeExpression");function lv(e){let t=ov(e);return t.push(Mt),t.push(He(g(e.isStandalone))),t.push(pv(e)),e.isSignal&&t.push(He(g(e.isSignal))),He(_(m.DirectiveDeclaration,t))}l(lv,"createDirectiveType");function mI(e,t,n,r,s,i,a,o){let c=n.createBoundHostProperties(e.properties,t),u=n.createDirectiveHostEventAsts(e.listeners,t);e.specialAttributes.styleAttr&&(e.attributes.style=g(e.specialAttributes.styleAttr)),e.specialAttributes.classAttr&&(e.attributes.class=g(e.specialAttributes.classAttr));let p=lN({componentName:i,componentSelector:s,properties:c,events:u,attributes:e.attributes,legacyOptionalChaining:o},n,r);jg(p,I.Host),a.set("hostAttrs",p.root.attributes);let h=p.root.vars;return h!==null&&h>0&&a.set("hostVars",g(h)),iN(p)}l(mI,"createHostBindingsFunction");function cv(e){let t={},n={},r={},s={};for(let i of Object.keys(e)){let a=e[i];if(i.startsWith("(")&&i.endsWith(")")){if(typeof a!="string")throw new Error("Event binding must be string");n[i.slice(1,-1)]=a}else if(i.startsWith("[")&&i.endsWith("]")){if(typeof a!="string")throw new Error("Property binding must be string");r[i.slice(1,-1)]=a}else switch(i){case"class":if(typeof a!="string")throw new Error("Class binding must be string");s.classAttr=a;break;case"style":if(typeof a!="string")throw new Error("Style binding must be string");s.styleAttr=a;break;default:typeof a=="string"?t[i]=g(a):t[i]=a}}return{attributes:t,listeners:n,properties:r,specialAttributes:s}}l(cv,"parseHostBindings");function uv(e,t){let n=ss();return n.createDirectiveHostEventAsts(e.listeners,t),n.createBoundHostProperties(e.properties,t),gI(e,n,t),n.errors}l(uv,"verifyHostBindings");function gI(e,t,n){for(let r in e.properties){let s=r.startsWith("attr."),i=s?r.slice(5):r;if(i.toLowerCase().startsWith("on")){let a=s?"attribute":"property",o=`(${i.slice(2)})=...`,c=`Binding to event ${a} '${i}' is disallowed for security reasons, please use ${o}`;s||(c+=`
58
+ If '${r}' is a directive input, make sure the directive is imported by the current module.`),t.errors.push(new k(n,c))}}}l(gI,"validateNoEventBindings");function vI(e,t,n){let r=new HT;return e.map(s=>r.shimCssText(s,t,n))}l(vI,"compileStyles");function EI(e,t){let n=new HT,r=t?Wf.replace(gu,t):Wf,s=t?jf.replace(gu,t):jf;return n.shimCssText(e,r,s)}l(EI,"encapsulateStyle");function pv(e){return e.hostDirectives?.length?He(K(e.hostDirectives.map(t=>je([{key:"directive",value:qi(t.directive.type),quoted:!1},{key:"inputs",value:vu(t.inputs||{}),quoted:!1},{key:"outputs",value:vu(t.outputs||{}),quoted:!1}])))):Mt}l(pv,"createHostDirectivesType");function SI(e){let t=[],n=!1;for(let r of e){if(!r.inputs&&!r.outputs)t.push(r.directive.type);else{let s=[{key:"directive",value:r.directive.type,quoted:!1}];if(r.inputs){let i=kl(r.inputs);i&&s.push({key:"inputs",value:i,quoted:!1})}if(r.outputs){let i=kl(r.outputs);i&&s.push({key:"outputs",value:i,quoted:!1})}t.push(je(s))}r.isForwardReference&&(n=!0)}return n?new Fn([],[new Qe(K(t))],L):K(t)}l(SI,"createHostDirectivesFeatureArg");function kl(e){let t=[];for(let n in e)Object.hasOwn(e,n)&&t.push(g(n),g(e[n]));return t.length>0?K(t):null}l(kl,"createHostDirectivesMappingArray");function yI(e){let t=[];if(e.mode===0)for(let n of e.dependencies)if(n.isDeferrable){let r=Se([new Te("m",L)],B("m").prop(n.isDefaultImport?"default":n.symbolName),L),s=new Ma(n.importPath).prop("then").callFn([r],void 0,void 0,[nr()]);t.push(s)}else t.push(n.typeReference);else for(let{symbolName:n,importPath:r,isDefaultImport:s}of e.dependencies){let i=Se([new Te("m",L)],B("m").prop(s?"default":n),L),a=new Ma(r).prop("then").callFn([i],void 0,void 0,[nr()]);t.push(a)}return Se([],K(t),L)}l(yI,"compileDeferResolverFunction");var wI=class extends io{static{l(this,"CombinedRecursiveAstVisitor")}visit(e){e instanceof Gt?this.visit(e.ast):e.visit(this)}visitElement(e){this.visitAllTemplateNodes(e.attributes),this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs),this.visitAllTemplateNodes(e.directives),this.visitAllTemplateNodes(e.references),this.visitAllTemplateNodes(e.children)}visitTemplate(e){this.visitAllTemplateNodes(e.attributes),this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs),this.visitAllTemplateNodes(e.directives),this.visitAllTemplateNodes(e.templateAttrs),this.visitAllTemplateNodes(e.variables),this.visitAllTemplateNodes(e.references),this.visitAllTemplateNodes(e.children)}visitContent(e){this.visitAllTemplateNodes(e.children)}visitContentBlock(e){this.visitAllTemplateNodes(e.children)}visitBoundAttribute(e){this.visit(e.value)}visitBoundEvent(e){this.visit(e.handler)}visitBoundText(e){this.visit(e.value)}visitIcu(e){Object.keys(e.vars).forEach(t=>this.visit(e.vars[t])),Object.keys(e.placeholders).forEach(t=>this.visit(e.placeholders[t]))}visitDeferredBlock(e){e.visitAll(this)}visitDeferredTrigger(e){e instanceof Rm?this.visit(e.value):e instanceof Fu&&e.options!==null&&this.visit(e.options)}visitDeferredBlockPlaceholder(e){this.visitAllTemplateNodes(e.children)}visitDeferredBlockError(e){this.visitAllTemplateNodes(e.children)}visitDeferredBlockLoading(e){this.visitAllTemplateNodes(e.children)}visitSwitchBlock(e){this.visit(e.expression),this.visitAllTemplateNodes(e.groups),e.exhaustiveCheck?.visit(this)}visitSwitchBlockCase(e){e.expression&&this.visit(e.expression)}visitSwitchBlockCaseGroup(e){this.visitAllTemplateNodes(e.cases),this.visitAllTemplateNodes(e.children)}visitSwitchExhaustiveCheck(e){}visitForLoopBlock(e){e.item.visit(this),this.visitAllTemplateNodes(e.contextVariables),this.visit(e.expression),this.visitAllTemplateNodes(e.children),e.empty?.visit(this)}visitForLoopBlockEmpty(e){this.visitAllTemplateNodes(e.children)}visitIfBlock(e){this.visitAllTemplateNodes(e.branches)}visitIfBlockBranch(e){e.expression&&this.visit(e.expression),e.expressionAlias?.visit(this),this.visitAllTemplateNodes(e.children)}visitBoundaryBlock(e){this.visitAllTemplateNodes(e.children),this.visitAllTemplateNodes(e.errorBlocks)}visitBoundaryErrorBlock(e){this.visitAllTemplateNodes(e.contextVariables),e.expression&&this.visit(e.expression),this.visitAllTemplateNodes(e.children)}visitLetDeclaration(e){this.visit(e.value)}visitComponent(e){this.visitAllTemplateNodes(e.attributes),this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs),this.visitAllTemplateNodes(e.directives),this.visitAllTemplateNodes(e.references),this.visitAllTemplateNodes(e.children)}visitDirective(e){this.visitAllTemplateNodes(e.attributes),this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs),this.visitAllTemplateNodes(e.references)}visitVariable(e){}visitReference(e){}visitTextAttribute(e){}visitText(e){}visitUnknownBlock(e){}visitAllTemplateNodes(e){for(let t of e)this.visit(t)}},zf=class Fc{static{l(this,"ClassPropertyMapping")}forwardMap;reverseMap;constructor(t){this.forwardMap=t,this.reverseMap=TI(t)}static empty(){return new Fc(new Map)}static fromMappedObject(t){let n=new Map;for(let r of Object.keys(t)){let s=t[r],i;typeof s=="string"?i={classPropertyName:r,bindingPropertyName:s,isSignal:!1}:i=s,n.set(r,i)}return new Fc(n)}static merge(t,n){let r=new Map(t.forwardMap.entries());for(let[s,i]of n.forwardMap)r.set(s,i);return new Fc(r)}get classPropertyNames(){return Array.from(this.forwardMap.keys())}get propertyNames(){return Array.from(this.reverseMap.keys())}hasBindingPropertyName(t){return this.reverseMap.has(t)}getByBindingPropertyName(t){return this.reverseMap.has(t)?this.reverseMap.get(t):null}getByClassPropertyName(t){return this.forwardMap.has(t)?this.forwardMap.get(t):null}toDirectMappedObject(){let t={};for(let[n,r]of this.forwardMap)t[n]=r.bindingPropertyName;return t}toJointMappedObject(t){let n={};for(let[r,s]of this.forwardMap)n[r]=t(s);return n}*[Symbol.iterator](){for(let t of this.forwardMap.values())yield t}};function TI(e){let t=new Map;for(let[n,r]of e)t.has(r.bindingPropertyName)||t.set(r.bindingPropertyName,[]),t.get(r.bindingPropertyName).push(r);return t}l(TI,"reverseMapFromForwardMap");var Cr;(function(e){e[e.Selector=0]="Selector",e[e.HostDirective=1]="HostDirective"})(Cr||(Cr={}));function Gf(e,t){let n=new Set(t);return e.filter(r=>!n.has(r))}l(Gf,"diff");function xI(e,t){let n=new Dl;for(let u of t){let p={selector:u,exportAs:null,inputs:{hasBindingPropertyName(){return!1}},outputs:{hasBindingPropertyName(){return!1}},matchSource:Cr.Selector};n.addSelectables(Fi.parse(u),[p])}let r=pp(e,""),i=new hv(n).bind({template:r.nodes}),a=i.getEagerlyUsedDirectives().map(u=>u.selector),o=i.getUsedDirectives().map(u=>u.selector),c=i.getEagerlyUsedPipes();return{directives:{regular:a,deferCandidates:Gf(o,a)},pipes:{regular:c,deferCandidates:Gf(i.getUsedPipes(),c)}}}l(xI,"findMatchingDirectivesAndPipes");var hv=class{static{l(this,"R3TargetBinder")}directiveMatcher;foreignComponentMatcher;constructor(e,t=null){this.directiveMatcher=e,this.foreignComponentMatcher=t}bind(e){if(!e.template&&!e.host)throw new Error("Empty bound targets are not supported");let t=new Map,n=new Map,r=[],s=new Set,i=new Map,a=new Map,o=new Map,c=new Map,u=new Map,p=new Map,h=new Set,f=new Set,v=[],E=new Map,T=new Map;if(e.template){let y=Wy.apply(e.template);AI(y,o),UM.apply(e.template,this.directiveMatcher,this.foreignComponentMatcher,t,n,r,s,i,a,T),zy.applyWithScope(e.template,y,c,u,p,h,f,v,E)}return e.host&&(t.set(e.host.node,e.host.directives),zy.applyWithScope(e.host.node,Wy.apply(e.host.node),c,u,p,h,f,v,E)),new VM(e,t,n,r,s,i,a,c,u,p,o,h,f,v,E,T)}},Wy=class $c{static{l(this,"Scope")}parentScope;rootNode;namedEntities=new Map;elementLikeInScope=new Set;childScopes=new Map;isDeferred;constructor(t,n){this.parentScope=t,this.rootNode=n,this.isDeferred=t!==null&&t.isDeferred?!0:n instanceof Xr}static newRootScope(){return new $c(null,null)}static apply(t){let n=$c.newRootScope();return n.ingest(t),n}ingest(t){t instanceof De?(t.variables.forEach(n=>this.visitVariable(n)),t.children.forEach(n=>n.visit(this))):t instanceof yi?(t.expressionAlias!==null&&this.visitVariable(t.expressionAlias),t.children.forEach(n=>n.visit(this))):t instanceof Zr?(this.visitVariable(t.item),t.contextVariables.forEach(n=>this.visitVariable(n)),t.children.forEach(n=>n.visit(this))):t instanceof jl?(t.contextVariables.forEach(n=>this.visitVariable(n)),t.children.forEach(n=>n.visit(this))):t instanceof qu||t instanceof Hu||t instanceof Xr||t instanceof Vu||t instanceof $u||t instanceof Uu||t instanceof Hl||t instanceof ao||t instanceof oo?t.children.forEach(n=>n.visit(this)):t instanceof Bt||t.forEach(n=>n.visit(this))}visitElement(t){this.visitElementLike(t)}visitTemplate(t){this.elementLikeInScope.add(t),t.directives.forEach(n=>n.visit(this)),t.references.forEach(n=>this.visitReference(n)),this.ingestScopedNode(t)}visitVariable(t){this.maybeDeclare(t)}visitReference(t){this.maybeDeclare(t)}visitDeferredBlock(t){this.ingestScopedNode(t),t.placeholder?.visit(this),t.loading?.visit(this),t.error?.visit(this)}visitDeferredBlockPlaceholder(t){this.ingestScopedNode(t)}visitDeferredBlockError(t){this.ingestScopedNode(t)}visitDeferredBlockLoading(t){this.ingestScopedNode(t)}visitBoundaryBlock(t){this.ingestScopedNode(t),t.errorBlocks.forEach(n=>n.visit(this))}visitBoundaryErrorBlock(t){this.ingestScopedNode(t)}visitSwitchBlock(t){t.groups.forEach(n=>n.visit(this))}visitSwitchBlockCase(t){}visitSwitchBlockCaseGroup(t){this.ingestScopedNode(t)}visitSwitchExhaustiveCheck(t){}visitForLoopBlock(t){this.ingestScopedNode(t),t.empty?.visit(this)}visitForLoopBlockEmpty(t){this.ingestScopedNode(t)}visitIfBlock(t){t.branches.forEach(n=>n.visit(this))}visitIfBlockBranch(t){this.ingestScopedNode(t)}visitContent(t){this.ingestScopedNode(t)}visitContentBlock(t){this.ingestScopedNode(t)}visitLetDeclaration(t){this.maybeDeclare(t)}visitComponent(t){this.visitElementLike(t)}visitDirective(t){this.elementLikeInScope.add(t),t.references.forEach(n=>this.visitReference(n))}visitBoundAttribute(t){}visitBoundEvent(t){}visitBoundText(t){}visitText(t){}visitTextAttribute(t){}visitIcu(t){}visitDeferredTrigger(t){}visitUnknownBlock(t){}visitElementLike(t){t.directives.forEach(n=>n.visit(this)),t.references.forEach(n=>this.visitReference(n)),t.children.forEach(n=>n.visit(this)),this.elementLikeInScope.add(t)}getEnclosingDeferBlocks(){let t=[],n=this;for(;n!==null;)n.rootNode instanceof Xr&&t.push(n.rootNode),n=n.parentScope;return t.reverse()}maybeDeclare(t){this.namedEntities.has(t.name)||this.namedEntities.set(t.name,t)}lookup(t){return this.namedEntities.has(t)?this.namedEntities.get(t):this.parentScope!==null?this.parentScope.lookup(t):null}getChildScope(t){let n=this.childScopes.get(t);if(n===void 0)throw new Error(`Assertion error: child scope for ${t} not found`);return n}ingestScopedNode(t){let n=new $c(this,t);n.ingest(t),this.childScopes.set(t,n)}},UM=class bI{static{l(this,"DirectiveBinder")}directiveMatcher;foreignMatcher;directives;foreignComponents;eagerDirectives;missingDirectives;bindings;references;conflictingHostDirectiveBindings;isInDeferBlock=!1;constructor(t,n,r,s,i,a,o,c,u){this.directiveMatcher=t,this.foreignMatcher=n,this.directives=r,this.foreignComponents=s,this.eagerDirectives=i,this.missingDirectives=a,this.bindings=o,this.references=c,this.conflictingHostDirectiveBindings=u}static apply(t,n,r,s,i,a,o,c,u,p){new bI(n,r,s,i,a,o,c,u,p).ingest(t)}ingest(t){t.forEach(n=>n.visit(this))}visitElement(t){this.visitElementOrTemplate(t)}visitTemplate(t){this.visitElementOrTemplate(t)}visitDeferredBlock(t){let n=this.isInDeferBlock;this.isInDeferBlock=!0,t.children.forEach(r=>r.visit(this)),this.isInDeferBlock=n,t.placeholder?.visit(this),t.loading?.visit(this),t.error?.visit(this)}visitDeferredBlockPlaceholder(t){t.children.forEach(n=>n.visit(this))}visitDeferredBlockError(t){t.children.forEach(n=>n.visit(this))}visitDeferredBlockLoading(t){t.children.forEach(n=>n.visit(this))}visitBoundaryBlock(t){t.children.forEach(n=>n.visit(this)),t.errorBlocks.forEach(n=>n.visit(this))}visitBoundaryErrorBlock(t){t.children.forEach(n=>n.visit(this))}visitSwitchBlock(t){t.groups.forEach(n=>n.visit(this))}visitSwitchBlockCase(t){}visitSwitchBlockCaseGroup(t){t.children.forEach(n=>n.visit(this))}visitSwitchExhaustiveCheck(t){}visitForLoopBlock(t){t.item.visit(this),t.contextVariables.forEach(n=>n.visit(this)),t.children.forEach(n=>n.visit(this)),t.empty?.visit(this)}visitForLoopBlockEmpty(t){t.children.forEach(n=>n.visit(this))}visitIfBlock(t){t.branches.forEach(n=>n.visit(this))}visitIfBlockBranch(t){t.expressionAlias?.visit(this),t.children.forEach(n=>n.visit(this))}visitContent(t){t.children.forEach(n=>n.visit(this))}visitContentBlock(t){t.children.forEach(n=>n.visit(this))}visitComponent(t){if(this.directiveMatcher instanceof jc){let n=this.directiveMatcher.match(t.componentName);n.length>0?this.trackSelectorlessMatchesAndDirectives(t,n):this.missingDirectives.add(t.componentName)}t.directives.forEach(n=>n.visit(this)),t.children.forEach(n=>n.visit(this))}visitDirective(t){if(this.directiveMatcher instanceof jc){let n=this.directiveMatcher.match(t.name);n.length>0?this.trackSelectorlessMatchesAndDirectives(t,n):this.missingDirectives.add(t.name)}}visitElementOrTemplate(t){let n=[];if(this.directiveMatcher instanceof Dl){let r=Qu(t);this.directiveMatcher.match(r,(s,i)=>n.push(...i)),this.trackSelectorBasedBindingsAndDirectives(t,n)}else t.references.forEach(r=>{r.value.trim()===""&&this.references.set(r,t)});if(this.foreignMatcher&&t instanceof de){let r=this.foreignMatcher.match(t.name);if(r.length>0){if(n.length>0)throw new Error(`Conflict: Element '${t.name}' matches both an Angular directive and a foreign component.`);this.foreignComponents.set(t,r[0])}}t.directives.forEach(r=>r.visit(this)),t.children.forEach(r=>r.visit(this))}trackMatchedDirectives(t,n){if(n.length>0){let r=this.dedupeAndMergeDirectives(t,n);this.directives.set(t,r),this.isInDeferBlock||this.eagerDirectives.push(...r)}}dedupeAndMergeDirectives(t,n){if(n.length===0||n.every(a=>a.matchSource===Cr.Selector))return n;let r=new Set,s=new Map,i=new Map;for(let a of n)a.matchSource===Cr.Selector?r.add(a.ref.key):(s.has(a.ref.key)||s.set(a.ref.key,[]),s.get(a.ref.key).push(a));for(let[a,o]of s.entries()){if(r.has(a))continue;if(o.length===1){i.set(a,o[0]);continue}let c={},u={};for(let p of o)this.mergeMapping(t,p,"input",c,p.inputs),this.mergeMapping(t,p,"output",u,p.outputs);i.set(a,{...o[0],inputs:zf.fromMappedObject(c),outputs:zf.fromMappedObject(u)})}return n.reduce((a,o)=>(o.matchSource===Cr.Selector?a.push(o):i.has(o.ref.key)&&(a.push(i.get(o.ref.key)),i.delete(o.ref.key)),a),[])}mergeMapping(t,n,r,s,i){for(let a of i){let o=s[a.classPropertyName];if(!o){s[a.classPropertyName]=a;continue}if(o.bindingPropertyName===a.bindingPropertyName&&o.classPropertyName===a.classPropertyName&&o.isSignal===a.isSignal)continue;this.conflictingHostDirectiveBindings.has(t)||this.conflictingHostDirectiveBindings.set(t,[]);let c=this.conflictingHostDirectiveBindings.get(t),u=c.find(p=>p.directive.ref.key===n.ref.key&&p.kind===r&&p.classPropertyName===a.classPropertyName);u||(u={directive:n,kind:r,classPropertyName:o.classPropertyName,conflictingAliases:new Set([o.bindingPropertyName])},c.push(u)),u.conflictingAliases.add(a.bindingPropertyName)}}trackSelectorlessMatchesAndDirectives(t,n){if(n.length===0)return;this.trackMatchedDirectives(t,n);let r=l((s,i,a)=>{s[a].hasBindingPropertyName(i.name)&&this.bindings.set(i,s)},"setBinding");for(let s of n)t.inputs.forEach(i=>r(s,i,"inputs")),t.attributes.forEach(i=>r(s,i,"inputs")),t.outputs.forEach(i=>r(s,i,"outputs"));t.references.forEach(s=>this.references.set(s,{directive:n[0],node:t}))}trackSelectorBasedBindingsAndDirectives(t,n){this.trackMatchedDirectives(t,n),t.references.forEach(s=>{let i=null;if(s.value.trim()==="")i=n.find(a=>a.isComponent)||null;else if(i=n.find(a=>a.exportAs!==null&&a.exportAs.some(o=>o===s.value))||null,i===null)return;i!==null?this.references.set(s,{directive:i,node:t}):this.references.set(s,t)});let r=l((s,i)=>{let a=n.find(c=>c[i].hasBindingPropertyName(s.name)),o=a!==void 0?a:t;this.bindings.set(s,o)},"setAttributeBinding");t.inputs.forEach(s=>r(s,"inputs")),t.attributes.forEach(s=>r(s,"inputs")),t instanceof De&&t.templateAttrs.forEach(s=>r(s,"inputs")),t.outputs.forEach(s=>r(s,"outputs"))}visitVariable(t){}visitReference(t){}visitTextAttribute(t){}visitBoundAttribute(t){}visitBoundEvent(t){}visitBoundAttributeOrEvent(t){}visitText(t){}visitBoundText(t){}visitIcu(t){}visitDeferredTrigger(t){}visitUnknownBlock(t){}visitLetDeclaration(t){}},zy=class Xf extends wI{static{l(this,"TemplateBinder")}bindings;symbols;usedPipes;eagerPipes;deferBlocks;nestingLevel;scope;rootNode;level;pipes;visitNode=l(t=>t.visit(this),"visitNode");constructor(t,n,r,s,i,a,o,c,u,p){super(),this.bindings=t,this.symbols=n,this.usedPipes=r,this.eagerPipes=s,this.deferBlocks=i,this.nestingLevel=a,this.scope=o,this.rootNode=c,this.level=u,this.pipes=p}static applyWithScope(t,n,r,s,i,a,o,c,u){let p=t instanceof De?t:null;new Xf(r,s,a,o,c,i,n,p,0,u).ingest(t)}ingest(t){if(t instanceof De)t.variables.forEach(this.visitNode),t.children.forEach(this.visitNode),this.nestingLevel.set(t,this.level);else if(t instanceof yi)t.expressionAlias!==null&&this.visitNode(t.expressionAlias),t.children.forEach(this.visitNode),this.nestingLevel.set(t,this.level);else if(t instanceof Zr)this.visitNode(t.item),t.contextVariables.forEach(n=>this.visitNode(n)),t.trackBy?.visit(this),t.children.forEach(this.visitNode),this.nestingLevel.set(t,this.level);else if(t instanceof Xr){if(this.scope.rootNode!==t)throw new Error(`Assertion error: resolved incorrect scope for deferred block ${t}`);this.deferBlocks.push([t,this.scope]),t.children.forEach(n=>n.visit(this)),this.nestingLevel.set(t,this.level)}else t instanceof jl?(t.contextVariables.forEach(n=>this.visitNode(n)),t.expression?.visit(this),t.children.forEach(n=>n.visit(this)),this.nestingLevel.set(t,this.level)):t instanceof qu||t instanceof Hu||t instanceof Vu||t instanceof $u||t instanceof Uu||t instanceof Hl||t instanceof ao||t instanceof oo?(t.children.forEach(n=>n.visit(this)),this.nestingLevel.set(t,this.level)):t instanceof Bt?this.nestingLevel.set(t,0):t.forEach(this.visitNode)}visitTemplate(t){t.inputs.forEach(this.visitNode),t.outputs.forEach(this.visitNode),t.directives.forEach(this.visitNode),t.templateAttrs.forEach(this.visitNode),t.references.forEach(this.visitNode),this.ingestScopedNode(t)}visitVariable(t){this.rootNode!==null&&this.symbols.set(t,this.rootNode)}visitReference(t){this.rootNode!==null&&this.symbols.set(t,this.rootNode)}visitDeferredBlock(t){this.ingestScopedNode(t),t.triggers.when?.value.visit(this),t.prefetchTriggers.when?.value.visit(this),t.hydrateTriggers.when?.value.visit(this),t.hydrateTriggers.never?.visit(this),t.placeholder&&this.visitNode(t.placeholder),t.loading&&this.visitNode(t.loading),t.error&&this.visitNode(t.error)}visitDeferredBlockPlaceholder(t){this.ingestScopedNode(t)}visitDeferredBlockError(t){this.ingestScopedNode(t)}visitDeferredBlockLoading(t){this.ingestScopedNode(t)}visitBoundaryBlock(t){this.ingestScopedNode(t),t.errorBlocks.forEach(n=>n.visit(this))}visitBoundaryErrorBlock(t){this.ingestScopedNode(t)}visitSwitchBlockCase(t){t.expression?.visit(this)}visitSwitchBlockCaseGroup(t){t.cases.forEach(n=>n.visit(this)),this.ingestScopedNode(t)}visitSwitchExhaustiveCheck(t){t.expression?.visit(this)}visitForLoopBlock(t){t.expression.visit(this),this.ingestScopedNode(t),t.empty?.visit(this)}visitForLoopBlockEmpty(t){this.ingestScopedNode(t)}visitIfBlockBranch(t){t.expression?.visit(this),this.ingestScopedNode(t)}visitContent(t){this.ingestScopedNode(t)}visitContentBlock(t){this.ingestScopedNode(t)}visitLetDeclaration(t){super.visitLetDeclaration(t),this.rootNode!==null&&this.symbols.set(t,this.rootNode)}visitPipe(t,n){return this.usedPipes.add(t.name),this.scope.isDeferred||this.eagerPipes.add(t.name),this.pipes.set(t,this.scope.getEnclosingDeferBlocks()),super.visitPipe(t,n)}visitPropertyRead(t,n){return this.maybeMap(t,t.name),super.visitPropertyRead(t,n)}visitSafePropertyRead(t,n){return this.maybeMap(t,t.name),super.visitSafePropertyRead(t,n)}ingestScopedNode(t){let n=this.scope.getChildScope(t);new Xf(this.bindings,this.symbols,this.usedPipes,this.eagerPipes,this.deferBlocks,this.nestingLevel,n,t,this.level+1,this.pipes).ingest(t)}maybeMap(t,n){if(!(t.receiver instanceof dt))return;let r=this.scope.lookup(n);r!==null&&this.bindings.set(t,r)}},VM=class{static{l(this,"R3BoundTarget")}target;directives;foreignComponents;eagerDirectives;missingDirectives;bindings;references;exprTargets;symbols;nestingLevel;scopedNodeEntities;usedPipes;eagerPipes;pipes;conflictingHostDirectiveBindings;deferredBlocks;deferredScopes;constructor(e,t,n,r,s,i,a,o,c,u,p,h,f,v,E,T){this.target=e,this.directives=t,this.foreignComponents=n,this.eagerDirectives=r,this.missingDirectives=s,this.bindings=i,this.references=a,this.exprTargets=o,this.symbols=c,this.nestingLevel=u,this.scopedNodeEntities=p,this.usedPipes=h,this.eagerPipes=f,this.pipes=E,this.conflictingHostDirectiveBindings=T,this.deferredBlocks=v.map(y=>y[0]),this.deferredScopes=new Map(v)}getEntitiesInScope(e){return this.scopedNodeEntities.get(e)??new Set}getDirectivesOfNode(e){return this.directives.get(e)||null}getForeignComponent(e){return this.foreignComponents.get(e)||null}getReferenceTarget(e){return this.references.get(e)||null}getConsumerOfBinding(e){return this.bindings.get(e)||null}getExpressionTarget(e){return this.exprTargets.get(e)||null}getDefinitionNodeOfSymbol(e){return this.symbols.get(e)||null}getNestingLevel(e){return this.nestingLevel.get(e)||0}getUsedDirectives(){let e=new Set;return this.directives.forEach(t=>t.forEach(n=>e.add(n))),Array.from(e.values())}getEagerlyUsedDirectives(){let e=new Set(this.eagerDirectives);return Array.from(e.values())}getUsedPipes(){return Array.from(this.usedPipes)}getEagerlyUsedPipes(){return Array.from(this.eagerPipes)}getDeferBlocks(){return this.deferredBlocks}getDeferredTriggerTarget(e,t){if(!(t instanceof Mm)&&!(t instanceof Fu)&&!(t instanceof Bm))return null;let n=t.reference;if(n===null){let s=null;if(e.placeholder!==null){for(let i of e.placeholder.children)if(!(i instanceof hi)){if(s!==null)return null;i instanceof de&&(s=i)}}return s}let r=this.findEntityInScope(e,n);if(r instanceof El&&this.getDefinitionNodeOfSymbol(r)!==e){let s=this.getReferenceTarget(r);if(s!==null)return this.referenceTargetToElement(s)}if(e.placeholder!==null){let s=this.findEntityInScope(e.placeholder,n),i=s instanceof El?this.getReferenceTarget(s):null;if(i!==null)return this.referenceTargetToElement(i)}return null}isDeferred(e){return this.getDeferBlocksOfNode(e).length>0}getDeferBlocksOfNode(e){let t=[];for(let n of this.deferredBlocks){if(!this.deferredScopes.has(n))continue;let r=[this.deferredScopes.get(n)];for(;r.length>0;){let s=r.pop();if(s.elementLikeInScope.has(e)){t.push(n);break}r.push(...s.childScopes.values())}}return t}getDeferBlocksOfPipe(e){return this.pipes.get(e)??[]}referencedDirectiveExists(e){return!this.missingDirectives.has(e)}getConflictingHostDirectiveBindings(e){return this.conflictingHostDirectiveBindings.get(e)||null}findEntityInScope(e,t){let n=this.getEntitiesInScope(e);for(let r of n)if(r.name===t)return r;return null}referenceTargetToElement(e){return e instanceof de?e:e instanceof De||e.node instanceof Jn||e.node instanceof ka||e.node instanceof Bt?null:this.referenceTargetToElement(e.node)}};function AI(e,t){let n=new Map;function r(i){if(n.has(i.rootNode))return n.get(i.rootNode);let a=i.namedEntities,o;return i.parentScope!==null?o=new Map([...r(i.parentScope),...a]):o=new Map(a),n.set(i.rootNode,o),o}l(r,"extractScopeEntities");let s=[e];for(;s.length>0;){let i=s.pop();for(let a of i.childScopes.values())s.push(a);r(i)}for(let[i,a]of n)t.set(i,new Set(a.values()))}l(AI,"extractScopedNodeEntities");var CI=class{static{l(this,"ResourceLoader")}};function Su(e,t){let n=new Fe;return n.set("token",e.type.value),n.set("factory",e.factory===void 0?Tl(e.type.value,e.type.value,t):Se([],e.factory.callFn([]),L)),e.autoProvided===!1&&n.set("autoProvided",g(!1)),{expression:_(m.defineService).callFn([n.toLiteralMap()],void 0,!0),type:po(),statements:[]}}l(Su,"compileService");var _I=class{static{l(this,"CompilerFacadeImpl")}jitEvaluator;FactoryTarget=Sn;ResourceLoader=CI;elementSchemaRegistry=new Ki;constructor(e=new FT){this.jitEvaluator=e}compilePipe(e,t,n){let r={name:n.name,type:Ve(n.type),typeArgumentCount:0,pipeName:n.pipeName,pure:n.pure,isStandalone:n.isStandalone},s=ou(r);return this.jitExpression(s.expression,e,t,[])}compilePipeDeclaration(e,t,n){let r=WI(n),s=ou(r);return this.jitExpression(s.expression,e,t,[])}compileInjectable(e,t,n){let{expression:r,statements:s}=iu({name:n.name,type:Ve(n.type),typeArgumentCount:n.typeArgumentCount,providedIn:Zf(n.providedIn),useClass:li(n,"useClass"),useFactory:il(n,"useFactory"),useValue:li(n,"useValue"),useExisting:li(n,"useExisting"),deps:n.deps?.map(gv)},!0);return this.jitExpression(r,e,t,s)}compileInjectableDeclaration(e,t,n){let{expression:r,statements:s}=iu({name:n.type.name,type:Ve(n.type),typeArgumentCount:0,providedIn:Zf(n.providedIn),useClass:li(n,"useClass"),useFactory:il(n,"useFactory"),useValue:li(n,"useValue"),useExisting:li(n,"useExisting"),deps:n.deps?.map(em)},!0);return this.jitExpression(r,e,t,s)}compileInjector(e,t,n){let r={type:Ve(n.type),providers:n.providers&&n.providers.length>0?new se(n.providers):null,imports:n.imports.map(i=>new se(i))},s=au(r);return this.jitExpression(s.expression,e,t,[])}compileInjectorDeclaration(e,t,n){let r=zI(n),s=au(r);return this.jitExpression(s.expression,e,t,[])}compileNgModule(e,t,n){let r={kind:Tt.Global,type:Ve(n.type),bootstrap:n.bootstrap.map(Ve),declarations:n.declarations.map(Ve),publicDeclarationTypes:null,imports:n.imports.map(Ve),includeImportTypes:!0,exports:n.exports.map(Ve),selectorScopeMode:qa.Inline,containsForwardDecls:!1,schemas:n.schemas?n.schemas.map(Ve):null,id:n.id?new se(n.id):null},s=Zm(r);return this.jitExpression(s.expression,e,t,[])}compileNgModuleDeclaration(e,t,n){let r=UT(n);return this.jitExpression(r,e,t,[])}compileDirective(e,t,n){let r=Qf(n);return this.compileDirectiveFromMeta(e,t,r)}compileDirectiveDeclaration(e,t,n){let r=this.createParseSourceSpan("Directive",n.type.name,t),s=fv(n,r);return this.compileDirectiveFromMeta(e,t,s)}compileService(e,t,n){let{expression:r,statements:s}=Su({type:Ve(n.type),autoProvided:n.autoProvided,factory:n.factory?il(n,"factory"):void 0},!0);return this.jitExpression(r,e,t,s)}compileServiceDeclaration(e,t,n){let{expression:r,statements:s}=Su({type:Ve(n.type),autoProvided:n.autoProvided,factory:n.factory?il(n,"factory"):void 0},!0);return this.jitExpression(r,e,t,s)}compileDirectiveFromMeta(e,t,n){let r=new ud,s=ss(),i=sv(n,r,s);return this.jitExpression(i.expression,e,t,r.statements)}compileComponent(e,t,n){let{template:r,defer:s}=mv(n.template,n.name,t,n.preserveWhitespaces,void 0),i={...n,...Qf(n),selector:n.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:r,declarations:n.declarations.map(PI),declarationListEmitMode:0,defer:s,styles:[...n.styles,...r.styles],encapsulation:n.encapsulation,changeDetection:n.changeDetection??null,animations:n.animations!=null?new se(n.animations):null,viewProviders:n.viewProviders!=null?new se(n.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null,foreignImports:null,enableTemplateSourceLocations:!1},a=`ng:///${n.name}.js`;return this.compileComponentFromMeta(e,a,i)}compileComponentDeclaration(e,t,n){let r=this.createParseSourceSpan("Component",n.type.name,t),s=kI(n,r,t);return this.compileComponentFromMeta(e,t,s)}compileComponentFromMeta(e,t,n){let r=new ud,s=ss(),i=iv(n,r,s);return this.jitExpression(i.expression,e,t,r.statements)}compileFactory(e,t,n){let r=Sr({name:n.name,type:Ve(n.type),typeArgumentCount:n.typeArgumentCount,deps:RI(n.deps),target:n.target});return this.jitExpression(r.expression,e,t,r.statements)}compileFactoryDeclaration(e,t,n){let r=Sr({name:n.type.name,type:Ve(n.type),typeArgumentCount:0,deps:Array.isArray(n.deps)?n.deps.map(em):n.deps,target:n.target});return this.jitExpression(r.expression,e,t,r.statements)}createParseSourceSpan(e,t,n){return Im(e,t,n)}jitExpression(e,t,n,r){let s=[...r,new Ke("$def",e,void 0,ke.Exported)];return this.jitEvaluator.evaluateStatements(n,s,new nR(t),!0).$def}};function Yf(e){return{...e,isSignal:e.isSignal,predicate:dv(e.predicate),read:e.read?new se(e.read):null,static:e.static,emitDistinctChangesOnly:e.emitDistinctChangesOnly}}l(Yf,"convertToR3QueryMetadata");function Kf(e){return{propertyName:e.propertyName,first:e.first??!1,predicate:dv(e.predicate),descendants:e.descendants??!1,read:e.read?new se(e.read):null,static:e.static??!1,emitDistinctChangesOnly:e.emitDistinctChangesOnly??!0,isSignal:!!e.isSignal}}l(Kf,"convertQueryDeclarationToMetadata");function dv(e){return Array.isArray(e)?e:Gl(new se(e),1)}l(dv,"convertQueryPredicate");function Qf(e){let t=jI(e.inputs||[]),n=Vc(e.outputs||[]),r=e.propMetadata,s={},i={};for(let o in r)Object.hasOwn(r,o)&&r[o].forEach(c=>{UI(c)?s[o]={bindingPropertyName:c.alias||o,classPropertyName:o,required:c.required||!1,isSignal:!!c.isSignal,transformFunction:c.transform!=null?new se(c.transform):null}:VI(c)&&(i[o]=c.alias||o)});let a=e.hostDirectives?.length?e.hostDirectives.map(o=>typeof o=="function"?{directive:Ve(o),inputs:null,outputs:null,isForwardReference:!1}:{directive:Ve(o.directive),isForwardReference:!1,inputs:o.inputs?Vc(o.inputs):null,outputs:o.outputs?Vc(o.outputs):null}):null;return{...e,typeArgumentCount:0,typeSourceSpan:e.typeSourceSpan,type:Ve(e.type),deps:null,host:{...MI(e.propMetadata,e.typeSourceSpan,e.host)},inputs:{...t,...s},outputs:{...n,...i},queries:e.queries.map(Yf),providers:e.providers!=null?new se(e.providers):null,viewQueries:e.viewQueries.map(Yf),hostDirectives:a}}l(Qf,"convertDirectiveFacadeToMetadata");function fv(e,t){let n=e.hostDirectives?.length?e.hostDirectives.map(r=>({directive:Ve(r.directive),isForwardReference:!1,inputs:r.inputs?Jf(r.inputs):null,outputs:r.outputs?Jf(r.outputs):null})):null;return{name:e.type.name,type:Ve(e.type),typeSourceSpan:t,selector:e.selector??null,inputs:e.inputs?qI(e.inputs):{},outputs:e.outputs??{},host:NI(e.host),queries:(e.queries??[]).map(Kf),viewQueries:(e.viewQueries??[]).map(Kf),providers:e.providers!==void 0?new se(e.providers):null,exportAs:e.exportAs??null,usesInheritance:e.usesInheritance??!1,controlCreate:e.controlCreate??null,lifecycle:{usesOnChanges:e.usesOnChanges??!1},deps:null,typeArgumentCount:0,isStandalone:e.isStandalone??bm(e.version),isSignal:e.isSignal??!1,hostDirectives:n,legacyOptionalChaining:e.legacyOptionalChaining??Qm}}l(fv,"convertDeclareDirectiveFacadeToMetadata");function NI(e={}){return{attributes:II(e.attributes??{}),listeners:e.listeners??{},properties:e.properties??{},specialAttributes:{classAttr:e.classAttribute,styleAttr:e.styleAttribute}}}l(NI,"convertHostDeclarationToMetadata");function Jf(e){let t=null;for(let n=1;n<e.length;n+=2)t=t||{},t[e[n-1]]=e[n];return t}l(Jf,"getHostDirectiveBindingMapping");function II(e){let t={};for(let n of Object.keys(e))t[n]=new se(e[n]);return t}l(II,"convertOpaqueValuesToExpressions");function kI(e,t,n){let{template:r,defer:s}=mv(e.template,e.type.name,n,e.preserveWhitespaces??!1,e.deferBlockDependencies),i=[];if(e.dependencies)for(let o of e.dependencies)switch(o.kind){case"directive":case"component":i.push(Uc(o));break;case"pipe":i.push(DI(o));break;case"ngmodule":i.push(OI(o));break}else(e.components||e.directives||e.pipes)&&(e.components&&i.push(...e.components.map(o=>Uc(o,!0))),e.directives&&i.push(...e.directives.map(o=>Uc(o))),e.pipes&&i.push(...LI(e.pipes)));let a=i.some(({kind:o})=>o===bn.Directive||o===bn.NgModule);return{...fv(e,t),template:r,styles:e.styles??[],declarations:i,viewProviders:e.viewProviders!==void 0?new se(e.viewProviders):null,animations:e.animations!==void 0?new se(e.animations):null,defer:s,changeDetection:e.changeDetection??Ai.OnPush,encapsulation:e.encapsulation??rn.Emulated,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null,hasDirectiveDependencies:a,legacyOptionalChaining:e.legacyOptionalChaining??Qm,foreignImports:null,enableTemplateSourceLocations:!1}}l(kI,"convertDeclareComponentFacadeToMetadata");function PI(e){return{...e,type:new se(e.type)}}l(PI,"convertDeclarationFacadeToMetadata");function Uc(e,t=null){return{kind:bn.Directive,isComponent:t||e.kind==="component",selector:e.selector,type:new se(e.type),inputs:e.inputs??[],outputs:e.outputs??[],exportAs:e.exportAs??null}}l(Uc,"convertDirectiveDeclarationToMetadata");function LI(e){return e?Object.keys(e).map(t=>({kind:bn.Pipe,name:t,type:new se(e[t])})):[]}l(LI,"convertPipeMapToMetadata");function DI(e){return{kind:bn.Pipe,name:e.name,type:new se(e.type)}}l(DI,"convertPipeDeclarationToMetadata");function OI(e){return{kind:bn.NgModule,type:new se(e.type)}}l(OI,"convertNgModuleDeclarationToMetadata");function mv(e,t,n,r,s){let i=pp(e,n,{preserveWhitespaces:r});if(i.errors!==null){let c=i.errors.map(u=>u.toString()).join(", ");throw new Error(`Errors during JIT compilation of template for ${t}: ${c}`)}let o=new hv(null).bind({template:i.nodes});return{template:i,defer:BI(o,s)}}l(mv,"parseJitTemplate");function li(e,t){if(Object.hasOwn(e,t))return Gl(new se(e[t]),0)}l(li,"convertToProviderExpression");function il(e,t){if(Object.hasOwn(e,t))return new se(e[t])}l(il,"wrapExpression");function Zf(e){let t=typeof e=="function"?new se(e):new ct(e??null);return Gl(t,0)}l(Zf,"computeProvidedIn");function RI(e){return e==null?null:e.map(gv)}l(RI,"convertR3DependencyMetadataArray");function gv(e){let t=e.attribute!=null,n=e.token===null?null:new se(e.token),r=t?new se(e.attribute):n;return vv(r,t,e.host,e.optional,e.self,e.skipSelf)}l(gv,"convertR3DependencyMetadata");function em(e){let t=e.attribute??!1,n=e.token===null?null:new se(e.token);return vv(n,t,e.host??!1,e.optional??!1,e.self??!1,e.skipSelf??!1)}l(em,"convertR3DeclareDependencyMetadata");function vv(e,t,n,r,s,i){let a=t?g("unknown"):null;return{token:e,attributeNameType:a,host:n,optional:r,self:s,skipSelf:i}}l(vv,"createR3DependencyMetadata");function BI(e,t){let n=e.getDeferBlocks(),r=new Map;for(let s=0;s<n.length;s++){let i=t?.[s];r.set(n[s],i?new se(i):null)}return{mode:0,blocks:r}}l(BI,"createR3ComponentDeferMetadata");function MI(e,t,n){let r=cv(n||{});for(let i in e)Object.hasOwn(e,i)&&e[i].forEach(a=>{FI(a)?r.properties[a.hostPropertyName||i]=Vm("this",i):$I(a)&&(r.listeners[a.eventName||i]=`${i}(${(a.args||[]).join(",")})`)});let s=uv(r,t);if(s.length)throw new Error(s.map(i=>i.msg).join(`
59
+ `));return r}l(MI,"extractHostBindings");function FI(e){return e.ngMetadataName==="HostBinding"}l(FI,"isHostBinding");function $I(e){return e.ngMetadataName==="HostListener"}l($I,"isHostListener");function UI(e){return e.ngMetadataName==="Input"}l(UI,"isInput");function VI(e){return e.ngMetadataName==="Output"}l(VI,"isOutput");function qI(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return typeof r=="string"||Array.isArray(r)?t[n]=HI(r):t[n]={bindingPropertyName:r.publicName,classPropertyName:n,transformFunction:r.transformFunction!==null?new se(r.transformFunction):null,required:r.isRequired,isSignal:r.isSignal},t},{})}l(qI,"inputsPartialMetadataToInputMetadata");function HI(e){return typeof e=="string"?{bindingPropertyName:e,classPropertyName:e,transformFunction:null,required:!1,isSignal:!1}:{bindingPropertyName:e[0],classPropertyName:e[1],transformFunction:e[2]?new se(e[2]):null,required:!1,isSignal:!1}}l(HI,"parseLegacyInputPartialOutput");function jI(e){return e.reduce((t,n)=>{if(typeof n=="string"){let[r,s]=Ev(n);t[s]={bindingPropertyName:r,classPropertyName:s,required:!1,isSignal:!1,transformFunction:null}}else t[n.name]={bindingPropertyName:n.alias||n.name,classPropertyName:n.name,required:n.required||!1,isSignal:!1,transformFunction:n.transform!=null?new se(n.transform):null};return t},{})}l(jI,"parseInputsArray");function Vc(e){return e.reduce((t,n)=>{let[r,s]=Ev(n);return t[s]=r,t},{})}l(Vc,"parseMappingStringArray");function Ev(e){let[t,n]=e.split(":",2).map(r=>r.trim());return[n??t,t]}l(Ev,"parseMappingString");function WI(e){return{name:e.type.name,type:Ve(e.type),typeArgumentCount:0,pipeName:e.name,deps:null,pure:e.pure??!0,isStandalone:e.isStandalone??bm(e.version)}}l(WI,"convertDeclarePipeFacadeToMetadata");function zI(e){return{name:e.type.name,type:Ve(e.type),providers:e.providers!==void 0&&e.providers.length>0?new se(e.providers):null,imports:e.imports!==void 0?e.imports.map(t=>new se(t)):[]}}l(zI,"convertDeclareInjectorFacadeToMetadata");function Sv(e){let t=e.ng||(e.ng={});t.\u0275compilerFacade=new _I}l(Sv,"publishFacade");var qM=class{static{l(this,"CompilerConfig")}defaultEncapsulation;preserveWhitespaces;strictInjectionParameters;constructor({defaultEncapsulation:e=rn.Emulated,preserveWhitespaces:t,strictInjectionParameters:n}={}){this.defaultEncapsulation=e,this.preserveWhitespaces=yv(Hw(t)),this.strictInjectionParameters=n===!0}};function yv(e,t=!1){return e===null?t:e}l(yv,"preserveWhitespacesDefault");var GI="i18n",Ho="i18n-",HM=/^i18n:?/,jM="|",WM="@@",Gy=!1;function XI(e,t,n,r){return new KI(t,n,r).extract(e)}l(XI,"extractMessages");function YI(e,t,n,r){return new KI(n,r).merge(e,t)}l(YI,"mergeTranslations");var zM=class{static{l(this,"ExtractionResult")}messages;errors;constructor(e,t){this.messages=e,this.errors=t}},On;(function(e){e[e.Extract=0]="Extract",e[e.Merge=1]="Merge"})(On||(On={}));var KI=class{static{l(this,"_Visitor")}_implicitTags;_implicitAttrs;_preserveSignificantWhitespace;_depth;_inI18nNode;_inImplicitNode;_inI18nBlock;_blockMeaningAndDesc;_blockChildren;_blockStartDepth;_inIcu;_msgCountAtSectionStart;_errors;_mode;_messages;_translations;_createI18nMessage;constructor(e,t,n=!0){this._implicitTags=e,this._implicitAttrs=t,this._preserveSignificantWhitespace=n}extract(e){return this._init(On.Extract),e.forEach(t=>t.visit(this,null)),this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new zM(this._messages,this._errors)}merge(e,t){this._init(On.Merge),this._translations=t;let r=new jt("wrapper",[],[],e,!1,void 0,void 0,void 0,!1).visit(this,null);return this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new ec(r.children,this._errors)}visitExpansionCase(e,t){let n=M(this,e.expression,t);if(this._mode===On.Merge)return new rp(e.value,n,e.sourceSpan,e.valueSourceSpan,e.expSourceSpan)}visitExpansion(e,t){this._mayBeAddBlockChildren(e);let n=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([e]),this._inIcu=!0);let r=M(this,e.cases,t);return this._mode===On.Merge&&(e=new wi(e.switchValue,e.type,r,e.sourceSpan,e.switchValueSourceSpan)),this._inIcu=n,e}visitComment(e,t){let n=QI(e);if(n&&this._isInTranslatableSection){this._reportError(e,"Could not start a block inside a translatable section");return}let r=JI(e);if(r&&!this._inI18nBlock){this._reportError(e,"Trying to close an unopened block");return}if(!this._inI18nNode&&!this._inIcu){if(this._inI18nBlock){if(r)if(this._depth==this._blockStartDepth){this._closeTranslatableSection(e,this._blockChildren),this._inI18nBlock=!1;let s=this._addMessage(this._blockChildren,this._blockMeaningAndDesc),i=this._translateMessage(e,s);return M(this,i)}else{this._reportError(e,"I18N blocks should not cross element boundaries");return}}else if(n){if(!Gy&&typeof console?.warn=="function"){Gy=!0;let s=e.sourceSpan.details?`, ${e.sourceSpan.details}`:"";console.warn(`I18n comments are deprecated, use an <ng-container> element instead (${e.sourceSpan.start}${s})`)}this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=e.value.replace(HM,"").trim(),this._openTranslatableSection(e)}}}visitText(e,t){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(e),e}visitElement(e,t){return this._visitElementLike(e,t)}visitAttribute(e,t){throw new Error("unreachable code")}visitBlock(e,t){M(this,e.children,t)}visitBlockParameter(e,t){}visitLetDeclaration(e,t){}visitComponent(e,t){return this._visitElementLike(e,t)}visitDirective(e,t){throw new Error("unreachable code")}_init(e){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=Bg(!this._preserveSignificantWhitespace,this._preserveSignificantWhitespace)}_visitElementLike(e,t){this._mayBeAddBlockChildren(e),this._depth++;let n=this._inI18nNode,r=this._inImplicitNode,s=[],i,a=e instanceof vt?e.tagName:e.name,o=ZI(e),c=o?o.value:"",u=this._implicitTags.some(h=>a===h)&&!this._inIcu&&!this._isInTranslatableSection,p=!r&&u;if(this._inImplicitNode=r||u,!this._isInTranslatableSection&&!this._inIcu){if(o||p){this._inI18nNode=!0;let h=this._addMessage(e.children,c);i=this._translateMessage(e,h)}if(this._mode==On.Extract){let h=o||p;h&&this._openTranslatableSection(e),M(this,e.children),h&&this._closeTranslatableSection(e,e.children)}}else(o||p)&&this._reportError(e,"Could not mark an element as translatable inside a translatable section"),this._mode==On.Extract&&M(this,e.children);return this._mode===On.Merge&&(i||e.children).forEach(f=>{let v=f.visit(this,t);v&&!this._isInTranslatableSection&&(s=s.concat(v))}),this._visitAttributesOf(e),this._depth--,this._inI18nNode=n,this._inImplicitNode=r,this._mode===On.Merge?e instanceof jt?new jt(e.name,this._translateAttributes(e),this._translateDirectives(e),s,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid):new vt(e.componentName,e.tagName,e.fullName,this._translateAttributes(e),this._translateDirectives(e),s,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan):null}_visitAttributesOf(e){let t={},n=this._implicitAttrs[e instanceof vt?e.tagName||"":e.name]||[];e.attrs.filter(r=>r instanceof Ti&&r.name.startsWith(Ho)).forEach(r=>{t[r.name.slice(Ho.length)]=r.value}),e.attrs.forEach(r=>{r.name in t?this._addMessage([r],t[r.name]):n.some(s=>r.name===s)&&this._addMessage([r])})}_addMessage(e,t){if(e.length==0||this._isEmptyAttributeValue(e)||this._isPlaceholderOnlyAttributeValue(e)||this._isPlaceholderOnlyMessage(e))return null;let{meaning:n,description:r,id:s}=tm(t),i=this._createI18nMessage(e,n,r,s);return this._messages.push(i),i}_isEmptyAttributeValue(e){return nm(e)?e[0].value.trim()==="":!1}_isPlaceholderOnlyAttributeValue(e){if(!nm(e))return!1;let t=e[0].valueTokens??[],n=t.filter(s=>s.type===18),r=t.filter(s=>s.type===17).map(s=>s.parts[0].trim()).join("");return n.length===1&&r===""}_isPlaceholderOnlyMessage(e){if(!ek(e))return!1;let t=e[0].tokens,n=t.filter(s=>s.type===8),r=t.filter(s=>s.type===5).map(s=>s.parts[0].trim()).join("");return n.length===1&&r===""}_translateMessage(e,t){if(t&&this._mode===On.Merge){let n=this._translations.get(t);if(n)return n;this._reportError(e,`Translation unavailable for message id="${this._translations.digest(t)}"`)}return[]}_translateAttributes(e){let t={},n=[];return e.attrs.forEach(r=>{r.name.startsWith(Ho)&&(t[r.name.slice(Ho.length)]=tm(r.value))}),e.attrs.forEach(r=>{if(!(r.name===GI||r.name.startsWith(Ho)))if(r.value&&r.value!=""&&Object.hasOwn(t,r.name)){let{meaning:s,description:i,id:a}=t[r.name],o=this._createI18nMessage([r],s,i,a),c=this._translations.get(o);if(c)if(c.length==0)n.push(new Ti(r.name,"",r.sourceSpan,void 0,void 0,void 0,void 0));else if(c[0]instanceof cs){let u=c[0].value;n.push(new Ti(r.name,u,r.sourceSpan,void 0,void 0,void 0,void 0))}else this._reportError(e,`Unexpected translation for attribute "${r.name}" (id="${a||this._translations.digest(o)}")`);else this._reportError(e,`Translation unavailable for attribute "${r.name}" (id="${a||this._translations.digest(o)}")`)}else n.push(r)}),n}_translateDirectives(e){return e.directives.map(t=>new Ng(t.name,this._translateAttributes(t),t.sourceSpan,t.startSourceSpan,t.endSourceSpan))}_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 this._msgCountAtSectionStart!==void 0}_closeTranslatableSection(e,t){if(!this._isInTranslatableSection){this._reportError(e,"Unexpected section end");return}let n=this._msgCountAtSectionStart;if(t.reduce((s,i)=>s+(i instanceof Yi?0:1),0)==1)for(let s=this._messages.length-1;s>=n;s--){let i=this._messages[s].nodes;if(!(i.length==1&&i[0]instanceof Gn)){this._messages.splice(s,1);break}}this._msgCountAtSectionStart=void 0}_reportError(e,t){this._errors.push(new k(e.sourceSpan,t))}};function QI(e){return!!(e instanceof Yi&&e.value&&e.value.startsWith("i18n"))}l(QI,"_isOpeningComment");function JI(e){return!!(e instanceof Yi&&e.value&&e.value==="/i18n")}l(JI,"_isClosingComment");function ZI(e){return e.attrs.find(t=>t instanceof Ti&&t.name===GI)||null}l(ZI,"_getI18nAttr");function tm(e){if(!e)return{meaning:"",description:"",id:""};let t=e.indexOf(WM),n=e.indexOf(jM),[r,s]=t>-1?[e.slice(0,t),e.slice(t+2)]:[e,""],[i,a]=n>-1?[r.slice(0,n),r.slice(n+1)]:["",r];return{meaning:i,description:a,id:s.trim()}}l(tm,"_parseMessageMeta");function ek(e){return e.length===1&&e[0]instanceof cs}l(ek,"isTextNode");function nm(e){return e.length===1&&e[0]instanceof Ti}l(nm,"isAttrNode");var GM=class{static{l(this,"XmlTagDefinition")}closedByParent=!1;implicitNamespacePrefix=null;isVoid=!1;ignoreFirstLf=!1;canSelfClose=!0;preventNamespaceInheritance=!1;requireExtraParent(e){return!1}isClosedByChild(e){return!1}getContentType(){return wn.PARSABLE_DATA}},XM=new GM;function tk(e){return XM}l(tk,"getXmlTagDefinition");var Qi=class extends FC{static{l(this,"XmlParser")}constructor(){super(tk)}parse(e,t,n={}){return super.parse(e,t,{...n,tokenizeBlocks:!1,tokenizeLet:!1,selectorlessEnabled:!1})}},YM="1.2",KM="urn:oasis:names:tc:xliff:document:1.2",QM="en",gr="x",JM="mrk",ZM="file",nk="source",eF="seg-source",tF="alt-trans",nF="target",rm="trans-unit",rF="context-group",Xy="context",rk=class extends Xl{static{l(this,"Xliff")}write(e,t){let n=new sF,r=[];e.forEach(o=>{let c=[];o.sources.forEach(p=>{let h=new Y(rF,{purpose:"location"});h.children.push(new pe(10),new Y(Xy,{"context-type":"sourcefile"},[new me(p.filePath)]),new pe(10),new Y(Xy,{"context-type":"linenumber"},[new me(`${p.startLine}`)]),new pe(8)),c.push(new pe(8),h)});let u=new Y(rm,{id:o.id,datatype:"html"});u.children.push(new pe(8),new Y(nk,{},n.serialize(o.nodes)),...c),o.description&&u.children.push(new pe(8),new Y("note",{priority:"1",from:"description"},[new me(o.description)])),o.meaning&&u.children.push(new pe(8),new Y("note",{priority:"1",from:"meaning"},[new me(o.meaning)])),u.children.push(new pe(6)),r.push(new pe(6),u)});let s=new Y("body",{},[...r,new pe(4)]),i=new Y("file",{"source-language":t||QM,datatype:"plaintext",original:"ng2.template"},[new pe(4),s,new pe(2)]),a=new Y("xliff",{version:YM,xmlns:KM},[new pe(2),i,new pe]);return Xu([new Wm({version:"1.0",encoding:"UTF-8"}),new pe,a,new pe])}load(e,t){let n=new iF,{locale:r,msgIdToHtml:s,errors:i}=n.parse(e,t),a={},o=new aF;if(Object.keys(s).forEach(c=>{let{i18nNodes:u,errors:p}=o.convert(s[c],t);i.push(...p),a[c]=u}),i.length)throw new Error(`xliff parse errors:
60
+ ${i.join(`
61
+ `)}`);return{locale:r,i18nNodesByMsgId:a}}digest(e){return pm(e)}},sF=class{static{l(this,"_WriteVisitor")}visitText(t,n){return[new me(t.value)]}visitContainer(t,n){let r=[];return t.children.forEach(s=>r.push(...s.visit(this))),r}visitIcu(t,n){let r=[new me(`{${t.expressionPlaceholder}, ${t.type}, `)];return Object.keys(t.cases).forEach(s=>{r.push(new me(`${s} {`),...t.cases[s].visit(this),new me("} "))}),r.push(new me("}")),r}visitTagPlaceholder(t,n){let r=sk(t.tag);if(t.isVoid)return[new Y(gr,{id:t.startName,ctype:r,"equiv-text":`<${t.tag}/>`})];let s=new Y(gr,{id:t.startName,ctype:r,"equiv-text":`<${t.tag}>`}),i=new Y(gr,{id:t.closeName,ctype:r,"equiv-text":`</${t.tag}>`});return[s,...this.serialize(t.children),i]}visitPlaceholder(t,n){return[new Y(gr,{id:t.name,"equiv-text":`{{${t.value}}}`})]}visitBlockPlaceholder(t,n){let r=`x-${t.name.toLowerCase().replace(/[^a-z0-9]/g,"-")}`,s=new Y(gr,{id:t.startName,ctype:r,"equiv-text":`@${t.name}`}),i=new Y(gr,{id:t.closeName,ctype:r,"equiv-text":"}"});return[s,...this.serialize(t.children),i]}visitIcuPlaceholder(t,n){let r=`{${t.value.expression}, ${t.value.type}, ${Object.keys(t.value.cases).map(s=>s+" {...}").join(" ")}}`;return[new Y(gr,{id:t.name,"equiv-text":r})]}serialize(t){return[].concat(...t.map(n=>n.visit(this)))}},iF=class{static{l(this,"XliffParser")}_unitMlString;_errors;_msgIdToHtml;_locale=null;parse(e,t){this._unitMlString=null,this._msgIdToHtml={};let n=new Qi().parse(e,t);return this._errors=n.errors,M(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}}visitElement(e,t){switch(e.name){case rm:this._unitMlString=null;let n=e.attrs.find(c=>c.name==="id");if(!n)this._addError(e,`<${rm}> misses the "id" attribute`);else{let c=n.value;Object.hasOwn(this._msgIdToHtml,c)?this._addError(e,`Duplicated translations for msg ${c}`):(M(this,e.children,null),typeof this._unitMlString=="string"?this._msgIdToHtml[c]=this._unitMlString:this._addError(e,`Message ${c} misses a translation`))}break;case nk:case eF:case tF:break;case nF:let r=e.startSourceSpan.end.offset,s=e.endSourceSpan.start.offset,a=e.startSourceSpan.start.file.content.slice(r,s);this._unitMlString=a;break;case ZM:let o=e.attrs.find(c=>c.name==="target-language");o&&(this._locale=o.value),M(this,e.children,null);break;default:M(this,e.children,null)}}visitAttribute(e,t){}visitText(e,t){}visitComment(e,t){}visitExpansion(e,t){}visitExpansionCase(e,t){}visitBlock(e,t){}visitBlockParameter(e,t){}visitLetDeclaration(e,t){}visitComponent(e,t){}visitDirective(e,t){}_addError(e,t){this._errors.push(new k(e.sourceSpan,t))}},aF=class{static{l(this,"XmlToI18n")}_errors;convert(t,n){let r=new Qi().parse(t,n,{tokenizeExpansionForms:!0});return this._errors=r.errors,{i18nNodes:this._errors.length>0||r.rootNodes.length==0?[]:[].concat(...M(this,r.rootNodes)),errors:this._errors}}visitText(t,n){return new Gn(t.value,t.sourceSpan)}visitElement(t,n){if(t.name===gr){let r=t.attrs.find(s=>s.name==="id");return r?new Zn("",r.value,t.sourceSpan):(this._addError(t,`<${gr}> misses the "id" attribute`),null)}return t.name===JM?[].concat(...M(this,t.children)):(this._addError(t,"Unexpected tag"),null)}visitExpansion(t,n){let r={};return M(this,t.cases).forEach(s=>{r[s.value]=new $n(s.nodes,t.sourceSpan)}),new lo(t.switchValue,t.type,r,t.sourceSpan)}visitExpansionCase(t,n){return{value:t.value,nodes:M(this,t.expression)}}visitComment(t,n){}visitAttribute(t,n){}visitBlock(t,n){}visitBlockParameter(t,n){}visitLetDeclaration(t,n){}visitComponent(t,n){this._addError(t,"Unexpected node")}visitDirective(t,n){this._addError(t,"Unexpected node")}_addError(t,n){this._errors.push(new k(t.sourceSpan,n))}};function sk(e){switch(e.toLowerCase()){case"br":return"lb";case"img":return"image";default:return`x-${e}`}}l(sk,"getCtypeForTag");var oF="2.0",lF="urn:oasis:names:tc:xliff:document:2.0",cF="en",gi="ph",sm="pc",uF="mrk",ik="xliff",ak="source",pF="target",im="unit",ok=class extends Xl{static{l(this,"Xliff2")}write(e,t){let n=new hF,r=[];e.forEach(a=>{let o=new Y(im,{id:a.id}),c=new Y("notes");(a.description||a.meaning)&&(a.description&&c.children.push(new pe(8),new Y("note",{category:"description"},[new me(a.description)])),a.meaning&&c.children.push(new pe(8),new Y("note",{category:"meaning"},[new me(a.meaning)]))),a.sources.forEach(p=>{c.children.push(new pe(8),new Y("note",{category:"location"},[new me(`${p.filePath}:${p.startLine}${p.endLine!==p.startLine?","+p.endLine:""}`)]))}),c.children.push(new pe(6)),o.children.push(new pe(6),c);let u=new Y("segment");u.children.push(new pe(8),new Y(ak,{},n.serialize(a.nodes)),new pe(6)),o.children.push(new pe(6),u,new pe(4)),r.push(new pe(4),o)});let s=new Y("file",{original:"ng.template",id:"ngi18n"},[...r,new pe(2)]),i=new Y(ik,{version:oF,xmlns:lF,srcLang:t||cF},[new pe(2),s,new pe]);return Xu([new Wm({version:"1.0",encoding:"UTF-8"}),new pe,i,new pe])}load(e,t){let n=new dF,{locale:r,msgIdToHtml:s,errors:i}=n.parse(e,t),a={},o=new fF;if(Object.keys(s).forEach(c=>{let{i18nNodes:u,errors:p}=o.convert(s[c],t);i.push(...p),a[c]=u}),i.length)throw new Error(`xliff2 parse errors:
62
+ ${i.join(`
63
+ `)}`);return{locale:r,i18nNodesByMsgId:a}}digest(e){return xu(e)}},hF=class{static{l(this,"_WriteVisitor")}_nextPlaceholderId=0;visitText(e,t){return[new me(e.value)]}visitContainer(e,t){let n=[];return e.children.forEach(r=>n.push(...r.visit(this))),n}visitIcu(e,t){let n=[new me(`{${e.expressionPlaceholder}, ${e.type}, `)];return Object.keys(e.cases).forEach(r=>{n.push(new me(`${r} {`),...e.cases[r].visit(this),new me("} "))}),n.push(new me("}")),n}visitTagPlaceholder(e,t){let n=lk(e.tag);if(e.isVoid)return[new Y(gi,{id:(this._nextPlaceholderId++).toString(),equiv:e.startName,type:n,disp:`<${e.tag}/>`})];let r=new Y(sm,{id:(this._nextPlaceholderId++).toString(),equivStart:e.startName,equivEnd:e.closeName,type:n,dispStart:`<${e.tag}>`,dispEnd:`</${e.tag}>`}),s=[].concat(...e.children.map(i=>i.visit(this)));return s.length?s.forEach(i=>r.children.push(i)):r.children.push(new me("")),[r]}visitPlaceholder(e,t){let n=(this._nextPlaceholderId++).toString();return[new Y(gi,{id:n,equiv:e.name,disp:`{{${e.value}}}`})]}visitBlockPlaceholder(e,t){let n=new Y(sm,{id:(this._nextPlaceholderId++).toString(),equivStart:e.startName,equivEnd:e.closeName,type:"other",dispStart:`@${e.name}`,dispEnd:"}"}),r=[].concat(...e.children.map(s=>s.visit(this)));return r.length?r.forEach(s=>n.children.push(s)):n.children.push(new me("")),[n]}visitIcuPlaceholder(e,t){let n=Object.keys(e.value.cases).map(s=>s+" {...}").join(" "),r=(this._nextPlaceholderId++).toString();return[new Y(gi,{id:r,equiv:e.name,disp:`{${e.value.expression}, ${e.value.type}, ${n}}`})]}serialize(e){return this._nextPlaceholderId=0,[].concat(...e.map(t=>t.visit(this)))}},dF=class{static{l(this,"Xliff2Parser")}_unitMlString;_errors;_msgIdToHtml;_locale=null;parse(e,t){this._unitMlString=null,this._msgIdToHtml={};let n=new Qi().parse(e,t);return this._errors=n.errors,M(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}}visitElement(e,t){switch(e.name){case im:this._unitMlString=null;let n=e.attrs.find(u=>u.name==="id");if(!n)this._addError(e,`<${im}> misses the "id" attribute`);else{let u=n.value;Object.hasOwn(this._msgIdToHtml,u)?this._addError(e,`Duplicated translations for msg ${u}`):(M(this,e.children,null),typeof this._unitMlString=="string"?this._msgIdToHtml[u]=this._unitMlString:this._addError(e,`Message ${u} misses a translation`))}break;case ak:break;case pF:let r=e.startSourceSpan.end.offset,s=e.endSourceSpan.start.offset,a=e.startSourceSpan.start.file.content.slice(r,s);this._unitMlString=a;break;case ik:let o=e.attrs.find(u=>u.name==="trgLang");o&&(this._locale=o.value);let c=e.attrs.find(u=>u.name==="version");if(c){let u=c.value;u!=="2.0"?this._addError(e,`The XLIFF file version ${u} is not compatible with XLIFF 2.0 serializer`):M(this,e.children,null)}break;default:M(this,e.children,null)}}visitAttribute(e,t){}visitText(e,t){}visitComment(e,t){}visitExpansion(e,t){}visitExpansionCase(e,t){}visitBlock(e,t){}visitBlockParameter(e,t){}visitLetDeclaration(e,t){}visitComponent(e,t){}visitDirective(e,t){}_addError(e,t){this._errors.push(new k(e.sourceSpan,t))}},fF=class{static{l(this,"XmlToI18n")}_errors;convert(t,n){let r=new Qi().parse(t,n,{tokenizeExpansionForms:!0});return this._errors=r.errors,{i18nNodes:this._errors.length>0||r.rootNodes.length==0?[]:[].concat(...M(this,r.rootNodes)),errors:this._errors}}visitText(t,n){return new Gn(t.value,t.sourceSpan)}visitElement(t,n){switch(t.name){case gi:let r=t.attrs.find(a=>a.name==="equiv");if(r)return[new Zn("",r.value,t.sourceSpan)];this._addError(t,`<${gi}> misses the "equiv" attribute`);break;case sm:let s=t.attrs.find(a=>a.name==="equivStart"),i=t.attrs.find(a=>a.name==="equivEnd");if(!s)this._addError(t,`<${gi}> misses the "equivStart" attribute`);else if(!i)this._addError(t,`<${gi}> misses the "equivEnd" attribute`);else{let a=s.value,o=i.value;return[].concat(new Zn("",a,t.sourceSpan),...t.children.map(u=>u.visit(this,null)),new Zn("",o,t.sourceSpan))}break;case uF:return[].concat(...M(this,t.children));default:this._addError(t,"Unexpected tag")}return null}visitExpansion(t,n){let r={};return M(this,t.cases).forEach(s=>{r[s.value]=new $n(s.nodes,t.sourceSpan)}),new lo(t.switchValue,t.type,r,t.sourceSpan)}visitExpansionCase(t,n){return{value:t.value,nodes:[].concat(...M(this,t.expression))}}visitComment(t,n){}visitAttribute(t,n){}visitBlock(t,n){}visitBlockParameter(t,n){}visitLetDeclaration(t,n){}visitComponent(t,n){this._addError(t,"Unexpected node")}visitDirective(t,n){this._addError(t,"Unexpected node")}_addError(t,n){this._errors.push(new k(t.sourceSpan,n))}};function lk(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"}}l(lk,"getTypeForTag");var Yy="translationbundle",Ky="translation",Qy="ph",ck=class extends Xl{static{l(this,"Xtb")}write(e,t){throw new Error("Unsupported")}load(e,t){let n=new mF,{locale:r,msgIdToHtml:s,errors:i}=n.parse(e,t),a={},o=new gF;if(Object.keys(s).forEach(c=>{uk(a,c,l(function(){let{i18nNodes:p,errors:h}=o.convert(s[c],t);if(h.length)throw new Error(`xtb parse errors:
64
+ ${h.join(`
65
+ `)}`);return p},"valueFn"))}),i.length)throw new Error(`xtb parse errors:
66
+ ${i.join(`
67
+ `)}`);return{locale:r,i18nNodesByMsgId:a}}digest(e){return zm(e)}createNameMapper(e){return new PT(e,Yu)}};function uk(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:l(function(){let r=n();return Object.defineProperty(e,t,{enumerable:!0,value:r}),r},"get"),set:l(r=>{throw new Error("Could not overwrite an XTB translation")},"set")})}l(uk,"createLazyProperty");var mF=class{static{l(this,"XtbParser")}_bundleDepth;_errors;_msgIdToHtml;_locale=null;parse(e,t){this._bundleDepth=0,this._msgIdToHtml={};let n=new Qi().parse(e,t);return this._errors=n.errors,M(this,n.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}}visitElement(e,t){switch(e.name){case Yy:this._bundleDepth++,this._bundleDepth>1&&this._addError(e,`<${Yy}> elements can not be nested`);let n=e.attrs.find(s=>s.name==="lang");n&&(this._locale=n.value),M(this,e.children,null),this._bundleDepth--;break;case Ky:let r=e.attrs.find(s=>s.name==="id");if(!r)this._addError(e,`<${Ky}> misses the "id" attribute`);else{let s=r.value;if(Object.hasOwn(this._msgIdToHtml,s))this._addError(e,`Duplicated translations for msg ${s}`);else{let i=e.startSourceSpan.end.offset,a=e.endSourceSpan.start.offset,c=e.startSourceSpan.start.file.content.slice(i,a);this._msgIdToHtml[s]=c}}break;default:this._addError(e,"Unexpected tag")}}visitAttribute(e,t){}visitText(e,t){}visitComment(e,t){}visitExpansion(e,t){}visitExpansionCase(e,t){}visitBlock(e,t){}visitBlockParameter(e,t){}visitLetDeclaration(e,t){}visitComponent(e,t){this._addError(e,"Unexpected node")}visitDirective(e,t){this._addError(e,"Unexpected node")}_addError(e,t){this._errors.push(new k(e.sourceSpan,t))}},gF=class{static{l(this,"XmlToI18n")}_errors;convert(e,t){let n=new Qi().parse(e,t,{tokenizeExpansionForms:!0});return this._errors=n.errors,{i18nNodes:this._errors.length>0||n.rootNodes.length==0?[]:M(this,n.rootNodes),errors:this._errors}}visitText(e,t){return new Gn(e.value,e.sourceSpan)}visitExpansion(e,t){let n={};return M(this,e.cases).forEach(r=>{n[r.value]=new $n(r.nodes,e.sourceSpan)}),new lo(e.switchValue,e.type,n,e.sourceSpan)}visitExpansionCase(e,t){return{value:e.value,nodes:M(this,e.expression)}}visitElement(e,t){if(e.name===Qy){let n=e.attrs.find(r=>r.name==="name");if(n)return new Zn("",n.value,e.sourceSpan);this._addError(e,`<${Qy}> misses the "name" attribute`)}else this._addError(e,"Unexpected tag");return null}visitComment(e,t){}visitAttribute(e,t){}visitBlock(e,t){}visitBlockParameter(e,t){}visitLetDeclaration(e,t){}visitComponent(e,t){this._addError(e,"Unexpected node")}visitDirective(e,t){this._addError(e,"Unexpected node")}_addError(e,t){this._errors.push(new k(e.sourceSpan,t))}},Jy=class pk{static{l(this,"TranslationBundle")}_i18nNodesByMsgId;digest;mapperFactory;_i18nToHtml;constructor(t={},n,r,s,i=Ci.Warning,a){this._i18nNodesByMsgId=t,this.digest=r,this.mapperFactory=s,this._i18nToHtml=new vF(t,n,r,s,i,a)}static load(t,n,r,s,i){let{locale:a,i18nNodesByMsgId:o}=r.load(t,n),c=l(p=>r.digest(p),"digestFn"),u=l(p=>r.createNameMapper(p),"mapperFactory");return new pk(o,a,c,u,s,i)}get(t){let n=this._i18nToHtml.convert(t);if(n.errors.length)throw new Error(n.errors.join(`
68
+ `));return n.nodes}has(t){return this.digest(t)in this._i18nNodesByMsgId}},vF=class{static{l(this,"I18nToHtmlVisitor")}_i18nNodesByMsgId;_locale;_digest;_mapperFactory;_missingTranslationStrategy;_console;_srcMsg;_errors=[];_contextStack=[];_mapper;constructor(e={},t,n,r,s,i){this._i18nNodesByMsgId=e,this._locale=t,this._digest=n,this._mapperFactory=r,this._missingTranslationStrategy=s,this._console=i}convert(e){this._contextStack.length=0,this._errors.length=0;let t=this._convertToText(e),n=e.nodes[0].sourceSpan.start.file.url,r=new ev().parse(t,n,{tokenizeExpansionForms:!0});return{nodes:r.rootNodes,errors:[...this._errors,...r.errors]}}visitText(e,t){return Yl(e.value)}visitContainer(e,t){return e.children.map(n=>n.visit(this)).join("")}visitIcu(e,t){let n=Object.keys(e.cases).map(s=>`${s} {${e.cases[s].visit(this)}}`);return`{${Object.hasOwn(this._srcMsg.placeholders,e.expression)?this._srcMsg.placeholders[e.expression].text:e.expression}, ${e.type}, ${n.join(" ")}}`}visitPlaceholder(e,t){let n=this._mapper(e.name);return Object.hasOwn(this._srcMsg.placeholders,n)?this._srcMsg.placeholders[n].text:Object.hasOwn(this._srcMsg.placeholderToMessage,n)?this._convertToText(this._srcMsg.placeholderToMessage[n]):(this._addError(e,`Unknown placeholder "${e.name}"`),"")}visitTagPlaceholder(e,t){let n=`${e.tag}`,r=Object.keys(e.attrs).map(i=>`${i}="${e.attrs[i]}"`).join(" ");if(e.isVoid)return`<${n} ${r}/>`;let s=e.children.map(i=>i.visit(this)).join("");return`<${n} ${r}>${s}</${n}>`}visitIcuPlaceholder(e,t){return this._convertToText(this._srcMsg.placeholderToMessage[e.name])}visitBlockPlaceholder(e,t){let n=e.parameters.length===0?"":` (${e.parameters.join("; ")})`,r=e.children.map(s=>s.visit(this)).join("");return`@${e.name}${n} {${r}}`}_convertToText(e){let t=this._digest(e),n=this._mapperFactory?this._mapperFactory(e):null,r;if(this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=e,Object.hasOwn(this._i18nNodesByMsgId,t))r=this._i18nNodesByMsgId[t],this._mapper=a=>n?n.toInternalName(a):a;else{if(this._missingTranslationStrategy===Ci.Error){let a=this._locale?` for locale "${this._locale}"`:"";this._addError(e.nodes[0],`Missing translation for message "${t}"${a}`)}else if(this._console&&this._missingTranslationStrategy===Ci.Warning){let a=this._locale?` for locale "${this._locale}"`:"";this._console.warn(`Missing translation for message "${t}"${a}`)}r=e.nodes,this._mapper=a=>a}let s=r.map(a=>a.visit(this)).join(""),i=this._contextStack.pop();return this._srcMsg=i.msg,this._mapper=i.mapper,s}_addError(e,t){this._errors.push(new k(e.sourceSpan,t))}},EF=class{static{l(this,"I18NHtmlParser")}_htmlParser;getTagDefinition;_translationBundle;constructor(e,t,n,r=Ci.Warning,s){if(this._htmlParser=e,t){let i=hk(n);this._translationBundle=Jy.load(t,"i18n",i,r,s)}else this._translationBundle=new Jy({},null,pm,void 0,r,s)}parse(e,t,n={}){let r=this._htmlParser.parse(e,t,{...n});return r.errors.length?new ec(r.rootNodes,r.errors):YI(r.rootNodes,this._translationBundle,[],{})}};function hk(e){switch(e=(e||"xlf").toLowerCase(),e){case"xmb":return new LT;case"xtb":return new ck;case"xliff2":case"xlf2":return new ok;default:return new rk}}l(hk,"createSerializer");var SF=class{static{l(this,"MessageBundle")}_htmlParser;_implicitTags;_implicitAttrs;_locale;_preserveWhitespace;_messages=[];constructor(e,t,n,r=null,s=!0){this._htmlParser=e,this._implicitTags=t,this._implicitAttrs=n,this._locale=r,this._preserveWhitespace=s}updateFromTemplate(e,t){let n=this._htmlParser.parse(e,t,{tokenizeExpansionForms:!0});if(n.errors.length)return n.errors;let r=this._preserveWhitespace?n.rootNodes:vn(new Pg(!1),n.rootNodes),s=XI(r,this._implicitTags,this._implicitAttrs,this._preserveWhitespace);return s.errors.length?s.errors:(this._messages.push(...s.messages),[])}getMessages(){return this._messages}write(e,t){let n={},r=new yF;this._messages.forEach(i=>{let a=e.digest(i);Object.hasOwn(n,a)?n[a].sources.push(...i.sources):n[a]=i});let s=Object.keys(n).map(i=>{let a=e.createNameMapper(n[i]),o=n[i],c=a?r.convert(o.nodes,a):o.nodes,u=new Yt(c,{},{},o.meaning,o.description,i);return u.sources=o.sources,t&&u.sources.forEach(p=>p.filePath=t(p.filePath)),u});return e.write(s,this._locale)}},yF=class extends UO{static{l(this,"MapPlaceholderNames")}convert(e,t){return t?e.map(n=>n.visit(this,t)):e}visitTagPlaceholder(e,t){let n=t.toPublicName(e.startName),r=e.closeName?t.toPublicName(e.closeName):e.closeName,s=e.children.map(i=>i.visit(this,t));return new es(e.tag,e.attrs,n,r,s,e.isVoid,e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}visitBlockPlaceholder(e,t){let n=t.toPublicName(e.startName),r=e.closeName?t.toPublicName(e.closeName):e.closeName,s=e.children.map(i=>i.visit(this,t));return new ts(e.name,e.parameters,n,r,s,e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}visitPlaceholder(e,t){return new Zn(e.value,t.toPublicName(e.name),e.sourceSpan)}visitIcuPlaceholder(e,t){return new Va(e.value,t.toPublicName(e.name),e.sourceSpan)}};function wv(e){let t=Tv(e);return Se([],[Oi(t).toStmt()],L).callFn([])}l(wv,"compileClassMetadata");function Tv(e){return _(m.setClassMetadata).callFn([e.type,e.decorators,hp(e.ctorParameters,!0),e.propDecorators??g(null)])}l(Tv,"internalCompileClassMetadata");function hp(e,t){if(e===null)return g(null);if(!Array.isArray(e))return e;let n=e.map(r=>{let s=new Jr("type",r.type??g(void 0),!1);t&&r.type!==null&&r.suppressTypeErrors&&(s.leadingComments=[nr()]);let i=[s];return r.decorators!==null&&i.push(new Jr("decorators",r.decorators,!1)),new Cn(i)});return Se([],K(n),L)}l(hp,"compileCtorParameters");function dk(e,t){if(t===null||t.length===0)return wv(e);let n=new Map;for(let s of t)n.set(s.symbolName,s);let r=Array.from(n.values());return xv(e,r.map(s=>new Te(s.symbolName,L)),bv(r))}l(dk,"compileComponentClassMetadata");function fk(e,t,n){return xv(e,n.map(r=>new Te(r,L)),t)}l(fk,"compileOpaqueAsyncClassMetadata");function xv(e,t,n){let r=Tv(e),s=Se(t,[r.toStmt()],L),i=_(m.setClassMetadataAsync).callFn([e.type,n,s]);return Se([],[Oi(i).toStmt()],L).callFn([])}l(xv,"internalCompileSetClassMetadataAsync");function bv(e){let t=e.map(({symbolName:n,importPath:r,isDefaultImport:s})=>{let i=Se([new Te("m",L)],B("m").prop(s?"default":n),L);return new Ma(r).prop("then").callFn([i],void 0,void 0,[nr()])});return Se([],K(t),L)}l(bv,"compileComponentMetadataAsyncResolver");var wF="12.0.0",TF="18.0.0";function Av(e){let t=new Fe;return t.set("minVersion",g(wF)),t.set("version",g("22.2.1")),t.set("ngImport",_(m.core)),t.set("type",e.type),t.set("decorators",e.decorators),t.set("ctorParameters",e.ctorParameters===null?null:hp(e.ctorParameters,!1)),t.set("propDecorators",e.propDecorators),_(m.declareClassMetadata).callFn([t.toLiteralMap()])}l(Av,"compileDeclareClassMetadata");function mk(e,t){if(t===null||t.length===0)return Av(e);let n=new Fe,r=new Fe;return r.set("decorators",e.decorators),r.set("ctorParameters",hp(e.ctorParameters,!1)),r.set("propDecorators",e.propDecorators??g(null)),n.set("minVersion",g(TF)),n.set("version",g("22.2.1")),n.set("ngImport",_(m.core)),n.set("type",e.type),n.set("resolveDeferredDeps",bv(t)),n.set("resolveMetadata",Se(t.map(s=>new Te(s.symbolName,L)),r.toLiteralMap(),L)),_(m.declareClassMetadataAsync).callFn([n.toLiteralMap()])}l(mk,"compileComponentDeclareClassMetadata");function ba(e,t){return e===null||e.length===0?null:K(e.map(n=>t(n)))}l(ba,"toOptionalLiteralArray");function qc(e,t){let n=Object.keys(e).map(r=>{let s=e[r];return{key:r,value:t(s),quoted:!0}});return n.length>0?je(n):null}l(qc,"toOptionalLiteralMap");function gk(e){return e==="invalid"?g("invalid"):e===null?g(null):K(e.map(Cv))}l(gk,"compileDependencies");function Cv(e){let t=new Fe;return t.set("token",e.token),e.attributeNameType!==null&&t.set("attribute",g(!0)),e.host&&t.set("host",g(!0)),e.optional&&t.set("optional",g(!0)),e.self&&t.set("self",g(!0)),e.skipSelf&&t.set("skipSelf",g(!0)),t.toLiteralMap()}l(Cv,"compileDependency");function vk(e){let t=_v(e),n=_(m.declareDirective).callFn([t.toLiteralMap()]),r=lv(e);return{expression:n,type:r,statements:[]}}l(vk,"compileDeclareDirectiveFromMetadata");function _v(e){let t=new Fe,n=Ek(e);return t.set("minVersion",g(n)),t.set("version",g("22.2.1")),t.set("type",e.type.value),e.isStandalone!==void 0&&t.set("isStandalone",g(e.isStandalone)),e.isSignal&&t.set("isSignal",g(e.isSignal)),e.selector!==null&&t.set("selector",g(e.selector)),t.set("inputs",Nv(e)?wk(e.inputs):Tk(e.inputs)),t.set("outputs",su(e.outputs)),t.set("host",Sk(e.host)),t.set("providers",e.providers),e.queries.length>0&&t.set("queries",K(e.queries.map(am))),e.viewQueries.length>0&&t.set("viewQueries",K(e.viewQueries.map(am))),e.exportAs!==null&&t.set("exportAs",bt(e.exportAs)),e.usesInheritance&&t.set("usesInheritance",g(!0)),e.lifecycle.usesOnChanges&&t.set("usesOnChanges",g(!0)),e.controlCreate&&t.set("controlCreate",je([{key:"passThroughInput",value:g(e.controlCreate.passThroughInput),quoted:!1}])),e.hostDirectives?.length&&t.set("hostDirectives",yk(e.hostDirectives)),t.set("ngImport",_(m.core)),t}l(_v,"createDirectiveDefinitionMap");function Ek(e){let t="14.0.0";return Object.values(e.inputs).some(r=>r.transformFunction!==null)&&(t="16.1.0"),Nv(e)&&(t="17.1.0"),(e.queries.some(r=>r.isSignal)||e.viewQueries.some(r=>r.isSignal))&&(t="17.2.0"),t}l(Ek,"getMinimumVersionForPartialOutput");function Nv(e){return Object.values(e.inputs).some(t=>t.isSignal)}l(Nv,"needsNewInputPartialOutput");function am(e){let t=new Fe;return t.set("propertyName",g(e.propertyName)),e.first&&t.set("first",g(!0)),t.set("predicate",Array.isArray(e.predicate)?bt(e.predicate):di(e.predicate)),e.emitDistinctChangesOnly||t.set("emitDistinctChangesOnly",g(!1)),e.descendants&&t.set("descendants",g(!0)),t.set("read",e.read),e.static&&t.set("static",g(!0)),e.isSignal&&t.set("isSignal",g(!0)),t.toLiteralMap()}l(am,"compileQuery");function Sk(e){let t=new Fe;return t.set("attributes",qc(e.attributes,n=>n)),t.set("listeners",qc(e.listeners,g)),t.set("properties",qc(e.properties,g)),e.specialAttributes.styleAttr&&t.set("styleAttribute",g(e.specialAttributes.styleAttr)),e.specialAttributes.classAttr&&t.set("classAttribute",g(e.specialAttributes.classAttr)),t.values.length>0?t.toLiteralMap():null}l(Sk,"compileHostMetadata");function yk(e){let t=e.map(n=>{let r=[{key:"directive",value:n.isForwardReference?Gu(n.directive.type):n.directive.type,quoted:!1}],s=n.inputs?kl(n.inputs):null,i=n.outputs?kl(n.outputs):null;return s&&r.push({key:"inputs",value:s,quoted:!1}),i&&r.push({key:"outputs",value:i,quoted:!1}),je(r)});return K(t)}l(yk,"createHostDirectives");function wk(e){let t=Object.getOwnPropertyNames(e);return t.length===0?null:je(t.map(n=>{let r=e[n];return{key:n,quoted:ji(n),value:je([{key:"classPropertyName",quoted:!1,value:bt(r.classPropertyName)},{key:"publicName",quoted:!1,value:bt(r.bindingPropertyName)},{key:"isSignal",quoted:!1,value:bt(r.isSignal)},{key:"isRequired",quoted:!1,value:bt(r.required)},{key:"transformFunction",quoted:!1,value:r.transformFunction??Ir}])}}))}l(wk,"createInputsPartialMetadata");function Tk(e){let t=Object.getOwnPropertyNames(e);return t.length===0?null:je(t.map(n=>{let r=e[n],s=r.bindingPropertyName,i=s!==n,a;if(i||r.transformFunction!==null){let o=[bt(s),bt(n)];r.transformFunction!==null&&o.push(r.transformFunction),a=K(o)}else a=bt(s);return{key:n,quoted:ji(n),value:a}}))}l(Tk,"legacyInputsPartialMetadata");function xk(e,t,n){let r=bk(e,t,n),s=_(m.declareComponent).callFn([r.toLiteralMap()]),i=av(e);return{expression:s,type:i,statements:[]}}l(xk,"compileDeclareComponentFromMetadata");function bk(e,t,n){let r=_v(e),s=new xF;if(te(s,t.nodes),r.set("template",Ak(t,n)),n.isInline&&r.set("isInline",g(!0)),s.hasBlocks&&r.set("minVersion",g("17.0.0")),r.set("styles",ba(e.styles,g)),r.set("dependencies",_k(e)),r.set("viewProviders",e.viewProviders),r.set("animations",e.animations),e.changeDetection!==null){if(typeof e.changeDetection=="object")throw new Error("Impossible state! Change detection flag is not resolved!");r.set("changeDetection",_(m.ChangeDetectionStrategy).prop(Ai[e.changeDetection]))}if(e.encapsulation!==rn.Emulated&&r.set("encapsulation",_(m.ViewEncapsulation).prop(rn[e.encapsulation])),t.preserveWhitespaces===!0&&r.set("preserveWhitespaces",g(!0)),e.defer.mode===0){let i=[],a=!1;for(let o of e.defer.blocks.values())o===null?i.push(g(null)):(i.push(o),a=!0);a&&r.set("deferBlockDependencies",K(i))}else throw new Error("Unsupported defer function emit mode in partial compilation");return r}l(bk,"createComponentDefinitionMap");function Ak(e,t){if(t.inlineTemplateLiteralExpression!==null)return t.inlineTemplateLiteralExpression;if(t.isInline)return g(t.content,null,null);let n=t.content,r=new Ou(n,t.sourceUrl),s=new $a(r,0,0,0),i=Ck(r,n),a=new F(s,i);return g(n,null,a)}l(Ak,"getTemplateExpression");function Ck(e,t){let n=t.length,r=0,s=0,i=0;do r=t.indexOf(`
69
+ `,s),r!==-1&&(s=r+1,i++);while(r!==-1);return new $a(e,n,i,n-s)}l(Ck,"computeEndLocation");function _k(e){let t=e.declarationListEmitMode!==0?Gu:n=>n;if(e.declarationListEmitMode===3)throw new Error("Unsupported emit mode");return ba(e.declarations,n=>{switch(n.kind){case bn.Directive:let r=new Fe;return r.set("kind",g(n.isComponent?"component":"directive")),r.set("type",t(n.type)),r.set("selector",g(n.selector)),r.set("inputs",ba(n.inputs,g)),r.set("outputs",ba(n.outputs,g)),r.set("exportAs",ba(n.exportAs,g)),r.toLiteralMap();case bn.Pipe:let s=new Fe;return s.set("kind",g("pipe")),s.set("type",t(n.type)),s.set("name",g(n.name)),s.toLiteralMap();case bn.NgModule:let i=new Fe;return i.set("kind",g("ngmodule")),i.set("type",t(n.type)),i.toLiteralMap()}})}l(_k,"compileUsedDependenciesMetadata");var xF=class extends xT{static{l(this,"BlockPresenceVisitor")}hasBlocks=!1;visitDeferredBlock(){this.hasBlocks=!0}visitDeferredBlockPlaceholder(){this.hasBlocks=!0}visitDeferredBlockLoading(){this.hasBlocks=!0}visitDeferredBlockError(){this.hasBlocks=!0}visitIfBlock(){this.hasBlocks=!0}visitIfBlockBranch(){this.hasBlocks=!0}visitForLoopBlock(){this.hasBlocks=!0}visitForLoopBlockEmpty(){this.hasBlocks=!0}visitSwitchBlock(){this.hasBlocks=!0}visitSwitchBlockCase(){this.hasBlocks=!0}visitSwitchBlockCaseGroup(){this.hasBlocks=!0}},bF="12.0.0";function Nk(e){let t=new Fe;return t.set("minVersion",g(bF)),t.set("version",g("22.2.1")),t.set("ngImport",_(m.core)),t.set("type",e.type.value),t.set("deps",gk(e.deps)),t.set("target",_(m.FactoryTarget).prop(Sn[e.target])),{expression:_(m.declareFactory).callFn([t.toLiteralMap()]),statements:[],type:Hm(e)}}l(Nk,"compileDeclareFactoryFunction");var AF="12.0.0";function Ik(e){let t=kk(e),n=_(m.declareInjectable).callFn([t.toLiteralMap()]),r=po();return{expression:n,type:r,statements:[]}}l(Ik,"compileDeclareInjectableFromMetadata");function kk(e){let t=new Fe;if(t.set("minVersion",g(AF)),t.set("version",g("22.2.1")),t.set("ngImport",_(m.core)),t.set("type",e.type.value),e.providedIn!==void 0){let n=di(e.providedIn);n.value!==null&&t.set("providedIn",n)}return e.useClass!==void 0&&t.set("useClass",di(e.useClass)),e.useExisting!==void 0&&t.set("useExisting",di(e.useExisting)),e.useValue!==void 0&&t.set("useValue",di(e.useValue)),e.useFactory!==void 0&&t.set("useFactory",e.useFactory),e.deps!==void 0&&t.set("deps",K(e.deps.map(Cv))),t}l(kk,"createInjectableDefinitionMap");var CF="22.0.0";function Pk(e){let t=Lk(e),n=_(m.declareService).callFn([t.toLiteralMap()]),r=po();return{expression:n,type:r,statements:[]}}l(Pk,"compileDeclareServiceFromMetadata");function Lk(e){let t=new Fe;return t.set("minVersion",g(CF)),t.set("version",g("22.2.1")),t.set("ngImport",_(m.core)),t.set("type",e.type.value),e.autoProvided===!1&&t.set("autoProvided",g(!1)),e.factory!==void 0&&t.set("factory",e.factory),t}l(Lk,"createServiceDefinitionMap");var _F="12.0.0";function Dk(e){let t=Ok(e),n=_(m.declareInjector).callFn([t.toLiteralMap()]),r=Jm(e);return{expression:n,type:r,statements:[]}}l(Dk,"compileDeclareInjectorFromMetadata");function Ok(e){let t=new Fe;return t.set("minVersion",g(_F)),t.set("version",g("22.2.1")),t.set("ngImport",_(m.core)),t.set("type",e.type.value),t.set("providers",e.providers),e.imports.length>0&&t.set("imports",K(e.imports)),t}l(Ok,"createInjectorDefinitionMap");var NF="14.0.0";function Rk(e){let t=Bk(e),n=_(m.declareNgModule).callFn([t.toLiteralMap()]),r=eg(e);return{expression:n,type:r,statements:[]}}l(Rk,"compileDeclareNgModuleFromMetadata");function Bk(e){let t=new Fe;if(e.kind===Tt.Local)throw new Error("Invalid path! Local compilation mode should not get into the partial compilation path");if(e.kind===Tt.Isolated)throw new Error("Invalid path! Isolated compilation mode should not get into the partial compilation path");return t.set("minVersion",g(NF)),t.set("version",g("22.2.1")),t.set("ngImport",_(m.core)),t.set("type",e.type.value),e.bootstrap.length>0&&t.set("bootstrap",Tn(e.bootstrap,e.containsForwardDecls)),e.declarations.length>0&&t.set("declarations",Tn(e.declarations,e.containsForwardDecls)),e.imports.length>0&&t.set("imports",Tn(e.imports,e.containsForwardDecls)),e.exports.length>0&&t.set("exports",Tn(e.exports,e.containsForwardDecls)),e.schemas!==null&&e.schemas.length>0&&t.set("schemas",K(e.schemas.map(n=>n.value))),e.id!==null&&t.set("id",e.id),t}l(Bk,"createNgModuleDefinitionMap");var IF="14.0.0";function Mk(e){let t=Fk(e),n=_(m.declarePipe).callFn([t.toLiteralMap()]),r=tg(e);return{expression:n,type:r,statements:[]}}l(Mk,"compileDeclarePipeFromMetadata");function Fk(e){let t=new Fe;return t.set("minVersion",g(IF)),t.set("version",g("22.2.1")),t.set("ngImport",_(m.core)),t.set("type",e.type.value),e.isStandalone!==void 0&&t.set("isStandalone",g(e.isStandalone)),t.set("name",g(e.pipeName??e.name)),e.pure===!1&&t.set("pure",g(e.pure)),t}l(Fk,"createPipeDefinitionMap");function $k(e){let t={className:e.className};e.filePath&&(t.filePath=e.filePath,t.lineNumber=e.lineNumber),e.forbidOrphanRendering&&(t.forbidOrphanRendering=g(!0));let n=_(m.setClassDebugInfo).callFn([e.type,bl(t)]);return Se([],[Oi(n).toStmt()],L).callFn([])}l($k,"compileClassDebugInfo");function Uk(e){let i=`${e.className}_HmrLoad`,a=e.namespaceDependencies.map(y=>new is({moduleName:y.moduleName,name:null})),o=B("m").prop("default"),c=_(m.replaceMetadata).callFn([e.type,o,K(a),K(e.localDependencies.map(y=>y.runtimeRepresentation)),B("import").prop("meta"),B("id")]),u=Se([new Te("m",L)],o.and(c),L),p=_(m.getReplaceMetadataURL).callFn([B("id"),B("t"),B("import").prop("meta").prop("url")]),h=new Ni(i,[new Te("t",L)],[new Ma(p,null,"@vite-ignore").prop("then").callFn([u]).toStmt()],L,ke.Final),f=Se([new Te("d",L)],B("d").prop("id").identical(B("id")).and(B(i).callFn([B("d").prop("timestamp")])),L),v=B(i).callFn([B("Date").prop("now").callFn([])]),E=B("import").prop("meta").prop("hot"),T=E.clone().prop("on").callFn([g("angular:component-update"),f]);return Se([],[new Ke("id",g(encodeURIComponent(`${e.filePath}@${e.className}`)),null,ke.Final),h,Oi(v).toStmt(),Oi(E.and(T)).toStmt()],L).callFn([])}l(Uk,"compileHmrInitializer");function Vk(e,t,n){let r="\u0275\u0275namespaces",s=[n.className,r].map(a=>new Te(a,L)),i=[];for(let a of n.localDependencies)s.push(new Te(a.name,L));for(let a=0;a<n.namespaceDependencies.length;a++)i.push(new Ke(n.namespaceDependencies[a].assignedName,B(r).key(g(a)),L,ke.Final));i.push(...t);for(let a of e)if(a.initializer!==null){i.push(B(n.className).prop(a.name).set(a.initializer).toStmt());for(let o of a.statements)i.push(o)}return new Ni(`${n.className}_UpdateMetadata`,s,i,L,ke.Final)}l(Vk,"compileHmrUpdateCallback");var kF=new zw("22.2.1"),qk="hostBindingsBlockGuard";function Hk(e,t,n,r,s,i){let a=[],o=[],c=null;for(let p of r)c??=ss(),jk(p,c,a,o);for(let p of s)Wk(p,a);for(let p of i)c??=ss(),zk(p,c,o);if(a.length===0&&o.length===0)return null;let u=[];if(t!==null){let p=Fi.parse(t);for(let h of p)h.element!==null&&u.push(h.element)}return u.length===0&&u.push(`ng-${e}`),new Bt(u,a,o,n)}l(Hk,"createHostElement");function Iv(){return`(true /*${qk}*/)`}l(Iv,"createHostBindingsBlockGuard");function jk(e,t,n,r){let{key:s,value:i,sourceSpan:a}=e;if(!(s.kind!=="string"||i.kind!=="string")){if(s.text.startsWith("[")&&s.text.endsWith("]")){let{attrName:o,type:c}=kv(s.text.slice(1,-1)),u=t.parseBinding(i.text,!0,i.sourceSpan,i.sourceSpan.start.offset);if(u.errors.length>0)return;yu(u,i),n.push(new Di(o,c,0,u,null,a,s.sourceSpan,i.sourceSpan,void 0))}else if(s.text.startsWith("(")&&s.text.endsWith(")")){let o=[];if(t.parseEvent(s.text.slice(1,-1),i.text,!1,a,i.sourceSpan,[],o,s.sourceSpan),o.length===0||o[0].handler.errors.length>0)return;yu(o[0].handler,i),r.push(Mu.fromParsedEvent(o[0]))}}}l(jk,"createNodeFromHostLiteralProperty");function Wk(e,t){let n=e.arguments,r;if(n.length===0)r=e.memberName;else if(n[0].kind==="string")r=n[0];else return;if(r.kind!=="string"&&r.kind!=="identifier")return;let s=new Pr(-1,-1),i=e.memberSpan.start.offset,a=new tr(s,new at(i,i)),o=new at(r.sourceSpan.start.offset,r.sourceSpan.end.offset),c=e.memberName.kind==="string"?new Lr(s,o,a,new Dt(s,o,e.memberName.text)):new Je(s,o,o,a,e.memberName.text),{attrName:u,type:p}=kv(r.text);t.push(new Di(u,p,0,c,null,e.decoratorSpan,r.sourceSpan,e.decoratorSpan,void 0))}l(Wk,"createNodeFromBindingDecorator");function zk(e,t,n){if(e.eventName===null||e.eventName.kind!=="string")return;let r=new Pr(-1,-1),s=[],i=e.memberSpan.start.offset,a=new tr(r,new at(i,i)),o=new at(e.memberName.sourceSpan.start.offset,e.memberName.sourceSpan.end.offset),c=e.memberName.kind==="string"?new Lr(r,o,a,new Dt(r,o,e.memberName.text)):new Je(r,o,o,a,e.memberName.text);for(let T of e.arguments)if(T.kind==="string"){let y=T.sourceSpan,N=t.parseBinding(T.text,!0,y,y.start.offset);yu(N,T),s.push(N)}else{let y=new at(T.sourceSpan.start.offset,T.sourceSpan.end.offset),N=new Je(r,y,y,new dt(r,y),"$any"),V=new ln(r,y,N,[new Dt(r,y,0)],y);s.push(V)}let u=new ln(r,o,c,s,r),p=e.eventName,h,f,v,E;if(p.text.startsWith("@")){let T=t.parseLegacyAnimationEventName(p.text);h=Re.LegacyAnimation,f=T.eventName,v=T.phase,E=null}else{let T=t.parseEventListenerName(p.text);h=T.eventName.startsWith("animate.")?Re.Animation:Re.Regular,f=T.eventName,E=T.target,v=null}n.push(new Mu(f,h,u,E,v,e.decoratorSpan,e.decoratorSpan,p.sourceSpan))}l(zk,"createNodeFromListenerDecorator");function kv(e){let t="attr.",n="class.",r="style.",s="animate.",a,o;return e.startsWith(t)?(a=e.slice(t.length),o=$.Attribute):e.startsWith(n)?(a=e.slice(n.length),o=$.Class):e.startsWith(r)?(a=e.slice(r.length),o=$.Style):e.startsWith(s)?(a=e,o=$.Animation):e.startsWith("@")?(a=e.slice(1),o=$.LegacyAnimation):(a=e,o=$.Property),{attrName:a,type:o}}l(kv,"inferBoundAttribute");function yu(e,t){let n=t.source.indexOf("\\",1);if(n>-1){let r=t.sourceSpan.start.offset,s=t.sourceSpan.end.offset,i=new Pr(0,s-r),a=new at(r,s);e.visit(new PF(n,i,a))}}l(yu,"fixupSpans");var PF=class extends io{static{l(this,"ReplaceSpanVisitor")}afterIndex;overrideSpan;overrideSourceSpan;constructor(e,t,n){super(),this.afterIndex=e,this.overrideSpan=t,this.overrideSourceSpan=n}visit(e){(e.span.start>=this.afterIndex||e.span.end>=this.afterIndex)&&(e.span=this.overrideSpan,e.sourceSpan=this.overrideSourceSpan,e instanceof $l&&(e.nameSpan=this.overrideSourceSpan),(e instanceof ln||e instanceof Hi)&&(e.argumentSpan=this.overrideSourceSpan)),super.visit(e)}},Pl;(function(e){e.DIAGNOSTIC="D",e.EXPRESSION_TYPE_IDENTIFIER="T"})(Pl||(Pl={}));var rr;(function(e){e.DIRECTIVE="DIR",e.HOST_DIRECTIVE="HOSTDIR",e.COMPONENT_COMPLETION="COMPCOMP",e.EVENT_PARAMETER="EP",e.VARIABLE_AS_EXPRESSION="VAE"})(rr||(rr={}));var Ll;(function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning"})(Ll||(Ll={}));var om;(function(e){e[e.UseEmitter=0]="UseEmitter",e[e.CopyClassNodes=1]="CopyClassNodes",e[e.FallbackToAny=2]="FallbackToAny"})(om||(om={}));var LF=class{static{l(this,"Context")}env;domSchemaChecker;oobRecorder;id;boundTarget;pipes;schemas;hostIsStandalone;hostPreserveWhitespaces;nextId=1;constructor(e,t,n,r,s,i,a,o,c){this.env=e,this.domSchemaChecker=t,this.oobRecorder=n,this.id=r,this.boundTarget=s,this.pipes=i,this.schemas=a,this.hostIsStandalone=o,this.hostPreserveWhitespaces=c}allocateId(){return`_t${this.nextId++}`}getPipeByName(e){return this.pipes===null||!this.pipes.has(e)?null:this.pipes.get(e)}},w=class{static{l(this,"TcbExpr")}source;spanComment=null;identifierComment=null;ignoreComment=null;constructor(e){this.source=e}static quoteAndEscape(e){return JSON.stringify(e)}print(e=!1){return e?this.source:this.source+this.formatComment(this.identifierComment)+this.formatComment(this.ignoreComment)+this.formatComment(this.spanComment)}addParseSpanInfo(e){let t,n;return e instanceof at?(t=e.start,n=e.end):(t=e.start.offset,n=e.end.offset),this.spanComment=`${t},${n}`,this}markIgnoreDiagnostics(){return this.ignoreComment=`${Pl.DIAGNOSTIC}:ignore`,this}wrapForTypeChecker(){return this.source=`(${this.print()})`,this.spanComment=this.identifierComment=this.ignoreComment=null,this}addExpressionIdentifier(e,t){return this.identifierComment=`${Pl.EXPRESSION_TYPE_IDENTIFIER}:${e}${t!==void 0?`:${t}`:""}`,this}toString(){throw new Error("Assertion error: TcbExpr should not be converted to a string through concatenation. Use the `print` method instead.")}formatComment(e){return e===null||e.length===0?"":` /*${e}*/`}};function Or(e,t){return t.addExpressionIdentifier(rr.VARIABLE_AS_EXPRESSION),new w(`var ${e.print()} = null! as ${t.print()}`)}l(Or,"declareVariable");function xn(e,t=!1){let n="";for(let r of e)n+=`${r.print()};${t?" ":`
70
+ `}`;return n}l(xn,"getStatementsBlock");var xe=class{static{l(this,"TcbOp")}circularFallback(){return new w("null!")}};function Pv(e,t,n){return new DF(t,n).translate(e)}l(Pv,"astToTcbExpr");var DF=class{static{l(this,"TcbExprTranslator")}maybeResolve;config;constructor(e,t){this.maybeResolve=e,this.config=t}translate(e){e instanceof Gt&&(e=e.ast);let t=this.maybeResolve(e);return t!==null?t:e.visit(this)}visitUnary(e){let t=this.translate(e.expr);return new w(`${e.operator}${t.print()}`).wrapForTypeChecker().addParseSpanInfo(e.sourceSpan)}visitBinary(e){let t=this.translate(e.left),n=this.translate(e.right);t.wrapForTypeChecker(),n.wrapForTypeChecker();let r=`${t.print()} ${e.operation} ${n.print()}`,s=new w(e.operation==="??"||e.operation==="**"?`(${r})`:r);return s.addParseSpanInfo(e.sourceSpan),s}visitChain(e){let t=e.expressions.map(r=>this.translate(r).print()),n=new w(t.join(", "));return n.wrapForTypeChecker(),n.addParseSpanInfo(e.sourceSpan),n}visitConditional(e){let t=this.translate(e.condition),n=this.translate(e.trueExp),r=this.translate(e.falseExp).wrapForTypeChecker();return new w(`(${t.print()} ? ${n.print()} : ${r.print()})`).addParseSpanInfo(e.sourceSpan)}visitImplicitReceiver(e){throw new Error("Method not implemented.")}visitThisReceiver(e){throw new Error("Method not implemented.")}visitRegularExpressionLiteral(e,t){let n=new w(`/${e.body}/${e.flags??""}`);return n.wrapForTypeChecker(),n}visitInterpolation(e){let t=e.expressions.map(n=>{let r=this.translate(n);return r.wrapForTypeChecker(),r.print()});return new w(`"" + ${t.join(" + ")}`)}visitKeyedRead(e){let t=this.translate(e.receiver);this.isStrictSafeNavigationChain(e.receiver)||t.wrapForTypeChecker();let n=this.translate(e.key);return new w(`${t.print()}[${n.print()}]`).addParseSpanInfo(e.sourceSpan)}visitLiteralArray(e){let n=`[${e.expressions.map(r=>this.translate(r)).map(r=>r.print()).join(", ")}]`;return this.config.strictLiteralTypes||(n=`(${n} as any)`),new w(n).addParseSpanInfo(e.sourceSpan)}visitLiteralMap(e){let n=`{ ${e.keys.map((s,i)=>{let a=this.translate(e.values[i]);if(s.kind==="property"){let o=new w(w.quoteAndEscape(s.key));return o.addParseSpanInfo(s.sourceSpan),`${o.print()}: ${a.print()}`}else return`...${a.print()}`}).join(", ")} }`;this.config.strictLiteralTypes||(n=`${n} as any`);let r=new w(n).addParseSpanInfo(e.sourceSpan);return r.wrapForTypeChecker(),r}visitLiteralPrimitive(e){let t;if(e.value===void 0)t=new w("undefined");else if(e.value===null)t=new w("null");else if(typeof e.value=="string")t=new w(w.quoteAndEscape(e.value));else if(typeof e.value=="number")Number.isNaN(e.value)?t=new w("NaN"):Number.isFinite(e.value)?t=new w(e.value.toString()):t=new w(e.value>0?"Infinity":"-Infinity");else if(typeof e.value=="boolean")t=new w(e.value+"");else throw Error(`Unsupported AST value of type ${typeof e.value}`);return t.addParseSpanInfo(e.sourceSpan),t}visitNonNullAssert(e){let t=this.translate(e.expression).wrapForTypeChecker();return new w(`${t.print()}!`).addParseSpanInfo(e.sourceSpan)}visitPipe(e){throw new Error("Method not implemented.")}visitPrefixNot(e){let t=this.translate(e.expression).wrapForTypeChecker();return new w(`!${t.print()}`).addParseSpanInfo(e.sourceSpan)}visitTypeofExpression(e){let t=this.translate(e.expression).wrapForTypeChecker();return new w(`typeof ${t.print()}`).addParseSpanInfo(e.sourceSpan)}visitVoidExpression(e){let t=this.translate(e.expression).wrapForTypeChecker();return new w(`void ${t.print()}`).addParseSpanInfo(e.sourceSpan)}visitPropertyRead(e){let t=this.translate(e.receiver),n=this.isStrictSafeNavigationChain(e.receiver);n||t.wrapForTypeChecker();let r=new w(`${t.print()}.${e.name}`).addParseSpanInfo(e.nameSpan),s;return n?s=new w(r.print()):s=r.wrapForTypeChecker(),s.addParseSpanInfo(e.sourceSpan)}visitSafePropertyRead(e){let t,n=this.translate(e.receiver).wrapForTypeChecker(),r=new w(e.name).addParseSpanInfo(e.nameSpan);return this.config.strictSafeNavigationTypes?t=new w(`${n.print()}?.${r.print()}`):xh.veWillInferAnyFor(e)?t=new w(`(${n.print()} as any).${r.print()}`):t=new w(`(${n.print()}!.${r.print()} as any)`),t.addParseSpanInfo(e.sourceSpan)}visitSafeKeyedRead(e){let t=this.translate(e.receiver).wrapForTypeChecker(),n=this.translate(e.key),r;if(this.config.strictSafeNavigationTypes)r=new w(`${t.print()}?.[${n.print()}]`);else if(xh.veWillInferAnyFor(e))r=new w(`(${t.print()} as any)[${n.print()}]`);else{let s=new w(`${t.print()}![${n.print()}]`).addParseSpanInfo(e.sourceSpan);r=new w(`(${s.print()} as any)`)}return r.addParseSpanInfo(e.sourceSpan)}visitCall(e){let t=e.args.map(i=>this.translate(i)),n=e.receiver,r;if(n instanceof Je){let i=this.maybeResolve(n);if(i!==null)r=i;else{let a=this.translate(n.receiver);this.isStrictSafeNavigationChain(n.receiver)||a.wrapForTypeChecker(),r=new w(`${a.print()}.${n.name}`).addParseSpanInfo(n.nameSpan)}}else r=this.translate(n);let s;return e.receiver instanceof ki||e.receiver instanceof Ua?s=this.convertToSafeCall(e,r,t):s=new w(`${r.print()}(${t.map(i=>i.print()).join(", ")})`),s.addParseSpanInfo(e.sourceSpan)}visitSafeCall(e){let t=e.args.map(r=>this.translate(r)),n=this.translate(e.receiver).wrapForTypeChecker();return this.convertToSafeCall(e,n,t).addParseSpanInfo(e.sourceSpan)}visitTemplateLiteral(e){let t=e.elements.length,n=e.elements[0],r;if(t===1)r=`\`${this.escapeTemplateLiteral(n.text)}\``;else{let s=[`\`${this.escapeTemplateLiteral(n.text)}`],i=t-1;for(let o=1;o<i;o++){let c=this.translate(e.expressions[o-1]);s.push(`\${${c.print()}}${this.escapeTemplateLiteral(e.elements[o].text)}`)}let a=this.translate(e.expressions[i-1]);s.push(`\${${a.print()}}${this.escapeTemplateLiteral(e.elements[i].text)}\``),r=s.join("")}return new w(r)}visitTemplateLiteralElement(){throw new Error("Method not implemented")}visitTaggedTemplateLiteral(e){let t=this.translate(e.tag),n=this.visitTemplateLiteral(e.template);return new w(`${t.print()}${n.print()}`)}visitParenthesizedExpression(e){let t=this.translate(e.expression);return new w(`(${t.print()})`)}visitSpreadElement(e){let t=this.translate(e.expression);t.wrapForTypeChecker();let n=new w(`...${t.print()}`);return n.addParseSpanInfo(e.sourceSpan),n}visitEmptyExpr(e){let t=new w("undefined");return t.addParseSpanInfo(e.sourceSpan),t}visitArrowFunction(e){let t=e.parameters.map(r=>new w(r.name).markIgnoreDiagnostics().print()).join(", "),n=Pv(e.body,r=>{if(!(r instanceof Je)||r.receiver instanceof tr||!(r.receiver instanceof dt))return this.maybeResolve(r);if(e.parameters.find(i=>i.name===r.name)){let i=new w(r.name);return i.addParseSpanInfo(r.sourceSpan),i}return this.maybeResolve(r)},this.config);return new w(`${e.parameters.length===1?t:`(${t})`} => ${n.print()}`)}convertToSafeCall(e,t,n){let r=t.print(),s=n.map(i=>i.print()).join(", ");return this.config.strictSafeNavigationTypes?new w(`${r}?.(${s})`):xh.veWillInferAnyFor(e)?new w(`(${r} as any)(${s})`):new w(`(${r}!(${s}) as any)`)}escapeTemplateLiteral(e){return e.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\${/g,"$\\{")}isStrictSafeNavigationChain(e){if(!this.config.strictSafeNavigationTypes)return!1;let t=e;for(;t;){if(t instanceof ki||t instanceof Ua||t instanceof Hi)return!0;if(t instanceof Je||t instanceof Lr||t instanceof ln)t=t.receiver;else if(t instanceof ql)t=t.expression;else break}return!1}},xh=class lm{static{l(this,"VeSafeLhsInferenceBugDetector")}static SINGLETON=new lm;static veWillInferAnyFor(t){let n=lm.SINGLETON;return t instanceof ln?t.visit(n):t.receiver.visit(n)}visitUnary(t){return t.expr.visit(this)}visitBinary(t){return t.left.visit(this)||t.right.visit(this)}visitChain(){return!1}visitConditional(t){return t.condition.visit(this)||t.trueExp.visit(this)||t.falseExp.visit(this)}visitCall(){return!0}visitSafeCall(){return!1}visitImplicitReceiver(){return!1}visitThisReceiver(){return!1}visitInterpolation(t){return t.expressions.some(n=>n.visit(this))}visitKeyedRead(){return!1}visitLiteralArray(){return!0}visitLiteralMap(){return!0}visitLiteralPrimitive(){return!1}visitPipe(){return!0}visitPrefixNot(t){return t.expression.visit(this)}visitTypeofExpression(t){return t.expression.visit(this)}visitVoidExpression(t){return t.expression.visit(this)}visitNonNullAssert(t){return t.expression.visit(this)}visitPropertyRead(){return!1}visitSafePropertyRead(){return!1}visitSafeKeyedRead(){return!1}visitTemplateLiteral(){return!1}visitTemplateLiteralElement(){return!1}visitTaggedTemplateLiteral(){return!1}visitParenthesizedExpression(t){return t.expression.visit(this)}visitRegularExpressionLiteral(){return!1}visitSpreadElement(t){return t.expression.visit(this)}visitArrowFunction(t,n){return!1}};function Xe(e,t,n){return new Dv(t,n).translate(e)}l(Xe,"tcbExpression");function Lv(e,t){let n=t.env.referenceExternalSymbol(m.unwrapWritableSignal.moduleName,m.unwrapWritableSignal.name);return new w(`${n.print()}(${e.print()})`)}l(Lv,"unwrapWritableSignal");var bh=class extends xe{static{l(this,"TcbExpressionOp")}tcb;scope;expression;constructor(e,t,n){super(),this.tcb=e,this.scope=t,this.expression=n}get optional(){return!1}execute(){let e=Xe(this.expression,this.tcb,this.scope);return this.scope.addStatement(e),null}},Zy=class extends xe{static{l(this,"TcbConditionOp")}tcb;scope;expression;constructor(e,t,n){super(),this.tcb=e,this.scope=t,this.expression=n}get optional(){return!1}execute(){let e=Xe(this.expression,this.tcb,this.scope);return this.scope.addStatement(new w(`if (${e.print()}) {}`)),null}},Dv=class{static{l(this,"TcbExpressionTranslator")}tcb;scope;constructor(e,t){this.tcb=e,this.scope=t}translate(e){return Pv(e,t=>this.resolve(t),this.tcb.env.config)}resolve(e){if(e instanceof Je&&e.receiver instanceof dt){let t=this.tcb.boundTarget.getExpressionTarget(e),n=t===null?null:this.getTargetNodeExpression(t,e);return t instanceof Tr&&!this.isValidLetDeclarationAccess(t,e)&&(this.tcb.oobRecorder.letUsedBeforeDefinition(this.tcb.id,e,t),n!==null)?new w(`${n.print()} as any`):n}else if(e instanceof wt&&wt.isAssignmentOperation(e.operation)&&e.left instanceof Je&&(e.left.receiver instanceof dt||e.left.receiver instanceof tr)){let t=e.left,n=this.tcb.boundTarget.getExpressionTarget(t);if(n===null)return null;let r=this.getTargetNodeExpression(n,t),s=this.translate(e.right),i=new w(`(${r.print()} = ${s.print()})`);return i.addParseSpanInfo(t.sourceSpan),n instanceof Tr&&(i.markIgnoreDiagnostics(),this.tcb.oobRecorder.illegalWriteToLetDeclaration(this.tcb.id,t,n)),i}else{if(e instanceof dt||e instanceof tr)return new w("this");if(e instanceof Ru){let t=this.translate(e.exp),n=this.tcb.getPipeByName(e.name),r;if(n===null)this.tcb.oobRecorder.missingPipe(this.tcb.id,e,this.tcb.hostIsStandalone),r=new w("(0 as any)");else if(n.isExplicitlyDeferred){let o=this.tcb.boundTarget.getDeferBlocksOfPipe(e);if(!(o.length>0))this.tcb.oobRecorder.deferredPipeUsedEagerly(this.tcb.id,e,null,null),r=new w("(0 as any)");else if(n.deferredBlocks!=null)if(o.some(p=>p.definedName!==null&&n.deferredBlocks.has(p.definedName)))r=this.tcb.env.pipeInst(n);else{let p=o[o.length-1].definedName??"unnamed",h=Array.from(n.deferredBlocks);this.tcb.oobRecorder.deferredPipeUsedEagerly(this.tcb.id,e,p,h),r=new w("(0 as any)")}else r=this.tcb.env.pipeInst(n)}else r=this.tcb.env.pipeInst(n);let s=e.args.map(o=>this.translate(o).print()),i=new w(`${r.print()}.transform`).addParseSpanInfo(e.nameSpan);return this.tcb.env.config.checkTypeOfPipes||(i=new w(`(${i.print()} as any)`)),new w(`${i.print()}(${[t.print(),...s].join(", ")})`).addParseSpanInfo(e.sourceSpan)}else if((e instanceof ln||e instanceof Hi)&&(e.receiver instanceof Je||e.receiver instanceof ki)){if(e.receiver.receiver instanceof dt&&e.receiver.name==="$safeNavigationMigration"&&e.args.length===1){let i=this.translate(e.args[0]),a=new w(`(${i.print()})`);return a.addParseSpanInfo(e.sourceSpan),a}if(e.receiver.receiver instanceof dt&&e.receiver.name==="$any"&&e.args.length===1){let i=this.translate(e.args[0]),a=new w(`(${i.print()} as any)`);return a.addParseSpanInfo(e.sourceSpan),a}let t=this.tcb.boundTarget.getExpressionTarget(e);if(t===null)return null;let n=this.getTargetNodeExpression(t,e);n.addParseSpanInfo(e.receiver.nameSpan).wrapForTypeChecker();let r=e.args.map(i=>this.translate(i).print()),s=new w(`${n.print()}(${r.join(", ")})`);return s.addParseSpanInfo(e.sourceSpan),s}else return null}}getTargetNodeExpression(e,t){let n=this.scope.resolve(e);return n.addParseSpanInfo(t.sourceSpan),n}isValidLetDeclarationAccess(e,t){let n=e.sourceSpan.start.offset,r=e.sourceSpan.end.offset,s=t.sourceSpan.start;return n<s&&s>r||!this.scope.isLocal(e)}},OF=class extends xe{static{l(this,"TcbBoundaryOp")}tcb;scope;block;constructor(e,t,n){super(),this.tcb=e,this.scope=t,this.block=n}get optional(){return!1}execute(){let e=this.tcb.env.config.checkControlFlowBodies,t=this.scope.createChildScope(this.scope,null,e?this.block.children:[],null),n=`{
71
+ ${xn(t.render())}}`;if(this.block.errorBlocks.length>0){let r=this.generateCatchBranch(0),s=`{
72
+ ${xn(r)}}`,i=new w(`try ${n} catch (err) ${s}`);this.scope.addStatement(i)}else this.scope.addStatement(new w(n));return null}generateCatchBranch(e){let t=this.block.errorBlocks[e];if(!t)return[];let n=this.tcb.env.config.checkControlFlowBodies,r=this.scope.createChildScope(this.scope,t,[],null),s=[];r.render().forEach(u=>s.push(u));let i=null;t.expression&&(i=Xe(t.expression,this.tcb,r));let a=this.scope.createChildScope(r,null,n?t.children:[],null),o=`{
73
+ ${xn(a.render())}}`,c=this.generateCatchBranch(e+1);if(i){let u=new w(`if (${i.print()}) ${o}${c.length>0?` else {
74
+ ${xn(c)}}`:""}`);s.push(u)}else s.push(new w(o));return s}},RF=class extends xe{static{l(this,"TcbComponentContextCompletionOp")}scope;constructor(e){super(),this.scope=e}optional=!1;execute(){let e=new w("this.");return e.markIgnoreDiagnostics(),e.addExpressionIdentifier(rr.COMPONENT_COMPLETION),this.scope.addStatement(e),null}},BF=class extends xe{static{l(this,"TcbControlFlowContentProjectionOp")}tcb;element;ngContentSelectors;componentName;category;constructor(e,t,n,r){super(),this.tcb=e,this.element=t,this.ngContentSelectors=n,this.componentName=r,this.category=e.env.config.controlFlowPreventingContentProjection==="error"?Ll.Error:Ll.Warning}optional=!1;execute(){let e=this.findPotentialControlFlowNodes();if(e.length>0){let t=new Dl;for(let n of this.ngContentSelectors)n!=="*"&&t.addSelectables(Fi.parse(n),n);for(let n of e)for(let r of n.children)(r instanceof de||r instanceof De)&&t.match(Qu(r),(s,i)=>{this.tcb.oobRecorder.controlFlowPreventingContentProjection(this.tcb.id,this.category,r,this.componentName,i,n,this.tcb.hostPreserveWhitespaces)})}return null}findPotentialControlFlowNodes(){let e=[];for(let t of this.element.children)if(t instanceof Zr)this.shouldCheck(t)&&e.push(t),t.empty!==null&&this.shouldCheck(t.empty)&&e.push(t.empty);else if(t instanceof zl)for(let n of t.branches)this.shouldCheck(n)&&e.push(n);else if(t instanceof Wl)for(let n of t.groups)this.shouldCheck(n)&&e.push(n);return e}shouldCheck(e){if(e.children.length<2)return!1;let t=!1;for(let n of e.children)if(!(n instanceof Yn)||this.tcb.hostPreserveWhitespaces||n.value.trim().length>0){if(t)return!0;t=!0}return!1}},Ov=["errors","dirty","disabled","disabledReasons","hidden","invalid","name","pending","readonly","touched","max","maxLength","min","minLength","pattern","required"],MF=new Set([...Ov,"value","checked"]),FF=new Set(["max","maxLength","min","minLength"]),Gk=class extends xe{static{l(this,"TcbNativeFieldOp")}tcb;scope;node;inputType;unsupportedBindingFields=new Set([...Ov,"value","checked","maxlength","minlength"]);hasDynamicType;get optional(){return!1}constructor(e,t,n,r){super(),this.tcb=e,this.scope=t,this.node=n,this.inputType=r,this.hasDynamicType=this.inputType===null&&this.node.inputs.some(i=>(i.type===$.Property||i.type===$.Attribute)&&i.name==="type"),(this.hasDynamicType||this.inputType==="date"||this.inputType==="time"||this.inputType==="month"||this.inputType==="week"||this.inputType==="datetime-local")&&(this.unsupportedBindingFields.delete("min"),this.unsupportedBindingFields.delete("max"))}execute(){let t=(this.node instanceof Bt?this.node.bindings:this.node.inputs).find(r=>r.type===$.Property&&r.name==="formField")??null;if(t===null)return null;Fv(this.node,this.unsupportedBindingFields,this.tcb);let n=this.getExpectedTypeFromDomNode(this.node);if(n===null){let r=Qk(t.value,this.tcb,this.scope),s=new w(this.tcb.allocateId()),i=new w("{ (): string; set: (v: string) => void; } | { (): number | null; set: (v: number | null) => void; }"),a=new w(`${s.print()} = ${r.print()}`);a.addParseSpanInfo(t.valueSpan??t.sourceSpan),this.scope.addStatement(Or(s,i)),this.scope.addStatement(a)}else{let r=new w(n),s=Kk(t.value,this.tcb,this.scope),i=new w(this.tcb.allocateId()),a=new w(`${i.print()} = ${s.print()}`);a.addParseSpanInfo(t.valueSpan??t.sourceSpan),this.scope.addStatement(Or(i,r)),this.scope.addStatement(a)}return null}getExpectedTypeFromDomNode(e){if(e.name==="textarea"||e.name==="select")return"string";if(e.name!=="input")return this.getUnsupportedType();switch(this.inputType){case"checkbox":return"boolean";case"radio":return"string";case"number":case"range":case"datetime-local":return"string | number | null";case"date":case"month":case"time":case"week":return"string | number | Date | null"}return this.hasDynamicType?"string | number | boolean | Date | null":this.inputType==="text"||this.inputType===null?null:"string"}getUnsupportedType(){return"never"}},$F=class extends Gk{static{l(this,"TcbNativeRadioButtonFieldOp")}constructor(e,t,n){super(e,t,n,"radio"),this.unsupportedBindingFields.delete("value")}execute(){super.execute();let e=this.node.inputs.find(t=>t.type===$.Property&&t.name==="value");if(e!==void 0){let t=new w(this.tcb.allocateId()),n=Xe(e.value,this.tcb,this.scope),r=new w(`${t.print()} = ${n.print()}`);r.addParseSpanInfo(e.sourceSpan),this.scope.addStatement(Or(t,new w("string"))),this.scope.addStatement(r)}return null}};function Rv(e,t,n){let r=t.inputs.find(a=>a.type===$.Property&&a.name==="formField");if(!r)return null;let s=null,i;n==="value"?i=Hc(e,"value","value",r,n):n==="checkbox"?i=Hc(e,"checked","value",r,n):i=null,i!==null&&(s??=[],s.push(i));for(let a of Ov){let o=Hc(e,a,a,r,n);o!==null&&(s??=[],s.push(o))}return s}l(Rv,"expandBoundAttributesForField");function Bv(e){return e.name!=="FormField"?!1:e.ref.moduleName==="@angular/forms/signals"?!0:e.hasNgFieldDirective}l(Bv,"isFieldDirective");function Hc(e,t,n,r,s){let i=e.inputs.getByBindingPropertyName(t);if(i===null||i.length===0)return null;let{span:a,sourceSpan:o}=r.value,c=new ln(a,o,r.value,[],o),u=new Je(a,o,o,c,n),p=s==="value"&&t==="value"||s==="checkbox"&&t==="checked",h;return p?h=u:FF.has(n)?h=new Hi(a,o,u,[],o):h=new ln(a,o,u,[],o),{value:h,sourceSpan:r.sourceSpan,keySpan:r.keySpan??null,inputs:i.map(f=>({fieldName:f.classPropertyName,required:f.required,transformType:f.transformType,isSignal:f.isSignal,isTwoWayBinding:p}))}}l(Hc,"getSyntheticFieldBoundInput");function Mv(e){return cm("value",e)?"value":cm("checked",e)?"checkbox":null}l(Mv,"getCustomFieldDirectiveType");function Xk(e,t,n){return!Bv(e)||!(t instanceof de)||t.name!=="input"&&t.name!=="select"&&t.name!=="textarea"?!1:n.every(r=>Mv(r)===null&&!Yk(r))}l(Xk,"isNativeField");function Yk(e){return e.publicMethods.has("writeValue")&&e.publicMethods.has("registerOnChange")&&e.publicMethods.has("registerOnTouched")}l(Yk,"isControlValueAccessorLike");function Fv(e,t,n){let r=e instanceof Bt?e.bindings:e.inputs;for(let s of r)(s.type===$.Property&&t.has(s.name)||s.type===$.Attribute&&t.has(s.name.toLowerCase())||s.type===$.TwoWay&&t.has(s.name))&&n.oobRecorder.formFieldUnsupportedBinding(n.id,s);if(!(e instanceof Bt))for(let s of e.attributes)t.has(s.name.toLowerCase())&&n.oobRecorder.formFieldUnsupportedBinding(n.id,s)}l(Fv,"checkUnsupportedFieldBindings");function Kk(e,t,n){let r=new w(Xe(e,t,n).print()+"()");return r.markIgnoreDiagnostics(),new w(`${r.print()}.value()`)}l(Kk,"extractFieldValue");function Qk(e,t,n){let r=new w(Xe(e,t,n).print()+"()");return r.markIgnoreDiagnostics(),new w(`${r.print()}.value`)}l(Qk,"extractFieldValueSignal");function cm(e,t){return t.inputs.hasBindingPropertyName(e)&&t.outputs.hasBindingPropertyName(e+"Change")}l(cm,"hasModelInput");function Jk(e){let t=!1;for(let n of e)if(n.inputs.hasBindingPropertyName("formField")){if(!Bv(n))return!1;t=!0}return t}l(Jk,"isFormControl");function $v(e,t){let n=[],r=l(s=>{if(s instanceof Di&&s.type!==$.Property&&s.type!==$.TwoWay)return;let i=e.inputs.getByBindingPropertyName(s.name);i!==null&&n.push({value:s.value,sourceSpan:s.sourceSpan,keySpan:s.keySpan??null,inputs:i.map(a=>({fieldName:a.classPropertyName,required:a.required,transformType:a.transformType,isSignal:a.isSignal,isTwoWayBinding:s instanceof Di&&s.type===$.TwoWay}))})},"processAttribute");return t instanceof De?(t.tagName==="ng-template"&&(t.inputs.forEach(r),t.attributes.forEach(r)),t.templateAttrs.forEach(r)):(t.inputs.forEach(r),t.attributes.forEach(r)),n}l($v,"getBoundAttributes");function Uv(e,t,n,r){let s=n.find(o=>o.name===e);if(s===void 0||s.sourceSpan!==t.sourceSpan)return!1;let i=r.boundTarget.getConsumerOfBinding(s),a=r.boundTarget.getConsumerOfBinding(t);return a===null||i.ref===void 0||a instanceof De?!1:a instanceof de||a.ref!==i.ref?(r.oobRecorder.splitTwoWayBinding(r.id,s,t,i,a),!0):!1}l(Uv,"checkSplitTwoWayBinding");function dp(e,t,n){return t.env.config.checkTypeOfInputBindings?t.env.config.strictNullInputBindings||n instanceof Pi||n instanceof Vl?e:new w(`(${e.print()})!`):new w(`((${e.print()}) as any)`)}l(dp,"widenBinding");var UF=new Ki;function Vv(e,t,n){return typeof e=="string"?new w(w.quoteAndEscape(e)):Xe(e,t,n)}l(Vv,"translateInput");var VF=class extends xe{static{l(this,"TcbDirectiveInputsOp")}tcb;scope;node;dir;isFormControl;customFormControlType;constructor(e,t,n,r,s=!1,i){super(),this.tcb=e,this.scope=t,this.node=n,this.dir=r,this.isFormControl=s,this.customFormControlType=i}get optional(){return!1}execute(){let e=null,t=new Set,n=$v(this.dir,this.node);if(this.customFormControlType!==null&&Fv(this.node,MF,this.tcb),this.customFormControlType!==null||this.isFormControl){let r=Rv(this.dir,this.node,this.customFormControlType);r!==null&&n.push(...r)}for(let r of n){let s=dp(Vv(r.value,this.tcb,this.scope),this.tcb,r.value);s.wrapForTypeChecker();for(let{fieldName:i,required:a,transformType:o,isSignal:c,isTwoWayBinding:u}of r.inputs){let p;if(a&&t.add(i),this.dir.coercedInputFields.has(i)){let h;if(o!==void 0)h=new w(o);else{let v=this.tcb.env.referenceTcbValue(this.dir.ref),E=`ngAcceptInputType_${i}`,T=ji(i)?`[${w.quoteAndEscape(E)}]`:`.${E}`;h=new w(`typeof ${v.print()}${T}`)}let f=new w(this.tcb.allocateId());this.scope.addStatement(Or(f,h)),p=f}else{if(this.dir.undeclaredInputFields.has(i))continue;if(!this.tcb.env.config.honorAccessModifiersForInputBindings&&this.dir.restrictedInputFields.has(i)){e===null&&(e=this.scope.resolve(this.node,this.dir));let h=new w(this.tcb.allocateId()),f=new w(`(typeof ${e.print()})[${w.quoteAndEscape(i)}]`),v=Or(h,f);this.scope.addStatement(v),p=h}else e===null&&(e=this.scope.resolve(this.node,this.dir)),p=this.dir.stringLiteralInputFields.has(i)?new w(`${e.print()}[${w.quoteAndEscape(i)}]`):new w(`${e.print()}.${i}`)}if(c){let h=this.tcb.env.referenceExternalSymbol(m.InputSignalBrandWriteType.moduleName,m.InputSignalBrandWriteType.name);p=new w(`${p.print()}[${h.print()}]`)}r.keySpan!==null&&p.addParseSpanInfo(r.keySpan),u&&this.tcb.env.config.allowSignalsInTwoWayBindings&&(s=Lv(s,this.tcb)),s=new w(`${p.print()} = ${s.print()}`)}s.addParseSpanInfo(r.sourceSpan),!this.tcb.env.config.checkTypeOfAttributes&&typeof r.value=="string"&&s.markIgnoreDiagnostics(),this.scope.addStatement(s)}return this.checkRequiredInputs(t),null}checkRequiredInputs(e){let t=[];for(let n of this.dir.inputs)n.required&&!e.has(n.classPropertyName)&&t.push(n.bindingPropertyName);t.length>0&&this.tcb.oobRecorder.missingRequiredInputs(this.tcb.id,this.node,this.dir.name,this.dir.isComponent,t)}},wc=class extends xe{static{l(this,"TcbUnclaimedInputsOp")}tcb;scope;inputs;target;claimedInputs;constructor(e,t,n,r,s){super(),this.tcb=e,this.scope=t,this.inputs=n,this.target=r,this.claimedInputs=s}get optional(){return!1}execute(){let e=null;for(let t of this.inputs){let n=t.type===$.Property||t.type===$.TwoWay;if(n&&this.claimedInputs?.has(t.name))continue;let r=dp(Xe(t.value,this.tcb,this.scope),this.tcb,t.value);if(this.tcb.env.config.checkTypeOfDomBindings&&n)if(t.name!=="style"&&t.name!=="class"){e===null&&(e=this.scope.resolve(this.target));let s=UF.getMappedPropName(t.name),i=new w(`${e.print()}[${w.quoteAndEscape(s)}] = ${r.wrapForTypeChecker().print()}`).addParseSpanInfo(t.sourceSpan);this.scope.addStatement(i)}else this.scope.addStatement(r);else this.scope.addStatement(r)}return null}},qF=class extends xe{static{l(this,"TcbDirectiveCtorOp")}tcb;scope;node;dir;customFormControlType;directiveIndex;constructor(e,t,n,r,s,i){super(),this.tcb=e,this.scope=t,this.node=n,this.dir=r,this.customFormControlType=s,this.directiveIndex=i}get optional(){return!0}execute(){let e=new Map,t=new w(this.tcb.allocateId()),n,r;if(this.node instanceof Bt)n=[],r=this.node.sourceSpan;else if(r=this.node.startSourceSpan||this.node.sourceSpan,n=$v(this.dir,this.node),this.customFormControlType!==null){let a=Rv(this.dir,this.node,this.customFormControlType);a!==null&&n.push(...a)}let s=this.dir.matchSource===Cr.HostDirective?rr.HOST_DIRECTIVE:rr.DIRECTIVE;t.addExpressionIdentifier(s,this.directiveIndex).addParseSpanInfo(r);for(let a of n)if(!(!this.tcb.env.config.checkTypeOfAttributes&&typeof a.value=="string"))for(let{fieldName:o,isTwoWayBinding:c}of a.inputs){if(e.has(o))continue;let u=Vv(a.value,this.tcb,this.scope);e.set(o,{type:"binding",field:o,expression:u,originalExpression:a.value,sourceSpan:a.sourceSpan,isTwoWayBinding:c})}for(let{classPropertyName:a}of this.dir.inputs)e.has(a)||e.set(a,{type:"unset",field:a});let i=Zk(this.dir,this.tcb,Array.from(e.values()));return i.markIgnoreDiagnostics(),this.scope.addStatement(new w(`var ${t.print()} = ${i.print()}`)),t}circularFallback(){return new HF(this.tcb,this.scope,this.dir)}},HF=class extends xe{static{l(this,"TcbDirectiveCtorCircularFallbackOp")}tcb;scope;dir;constructor(e,t,n){super(),this.tcb=e,this.scope=t,this.dir=n}get optional(){return!1}execute(){let e=this.tcb.allocateId(),t=this.tcb.env.typeCtorFor(this.dir);return this.scope.addStatement(new w(`var ${e} = ${t.print()}(null!)`)),new w(e)}};function Zk(e,t,n){let r=t.env.typeCtorFor(e),s="{ ";for(let i=0;i<n.length;i++){let a=n[i],o=w.quoteAndEscape(a.field),c=i===n.length-1;if(a.type==="binding"){let u=dp(a.expression,t,a.originalExpression);a.isTwoWayBinding&&t.env.config.allowSignalsInTwoWayBindings&&(u=Lv(u,t));let p=new w(`${o}: ${u.wrapForTypeChecker().print()}`);p.addParseSpanInfo(a.sourceSpan),s+=p.print()}else s+=`${o}: 0 as any`;s+=`${c?"":","} `}return s+="}",new w(`${r.print()}(${s})`)}l(Zk,"tcbCallTypeCtor");var e1=class extends xe{static{l(this,"TcbDirectiveTypeOpBase")}tcb;scope;node;dir;directiveIndex;constructor(e,t,n,r,s){super(),this.tcb=e,this.scope=t,this.node=n,this.dir=r,this.directiveIndex=s}get optional(){return!0}execute(){let e=this.tcb.env.referenceTcbValue(this.dir.ref),t,n;if(this.dir.isGeneric===!1||this.dir.typeParameters===null||this.dir.typeParameters.length===0)t=e;else{let i=Array(this.dir.typeParameters?.length??0).fill("any").join(", ");t=new w(`${e.print()}<${i}>`)}this.node instanceof Bt?n=this.node.sourceSpan:n=this.node.startSourceSpan||this.node.sourceSpan;let r=this.dir.matchSource===Cr.HostDirective?rr.HOST_DIRECTIVE:rr.DIRECTIVE,s=new w(this.tcb.allocateId()).addExpressionIdentifier(r,this.directiveIndex).addParseSpanInfo(n);return this.scope.addStatement(Or(s,t)),s}},jF=class extends e1{static{l(this,"TcbNonGenericDirectiveTypeOp")}execute(){if(this.dir.isGeneric)throw new Error(`Assertion Error: expected ${this.dir.ref.name} not to be generic.`);return super.execute()}},WF=class extends e1{static{l(this,"TcbGenericDirectiveTypeWithAnyParamsOp")}execute(){if(this.dir.typeParameters===null||this.dir.typeParameters.length===0)throw new Error(`Assertion Error: expected typeParameters when creating a declaration for ${this.dir.ref.name}`);return super.execute()}},zF=class extends xe{static{l(this,"TcbElementOp")}tcb;scope;element;constructor(e,t,n){super(),this.tcb=e,this.scope=t,this.element=n}get optional(){return!0}execute(){let e=this.tcb.allocateId(),t=new w(e);t.addParseSpanInfo(this.element.startSourceSpan||this.element.sourceSpan);let n=new w(`document.createElement("${this.element.name}")`);n.addParseSpanInfo(this.element.startSourceSpan||this.element.sourceSpan);let r=new w(`var ${t.print()} = ${n.print()}`);return r.addParseSpanInfo(this.element.startSourceSpan||this.element.sourceSpan),this.scope.addStatement(r),t}},wu="$event";function t1(e,t,n){return new GF(t,n).translate(e)}l(t1,"tcbEventHandlerExpression");var ew=class extends xe{static{l(this,"TcbDirectiveOutputsOp")}tcb;scope;node;inputs;outputs;dir;constructor(e,t,n,r,s,i){super(),this.tcb=e,this.scope=t,this.node=n,this.inputs=r,this.outputs=s,this.dir=i}get optional(){return!1}execute(){let e=null,t=this.dir.outputs;for(let n of this.outputs){if(n.type===Re.LegacyAnimation||!t.hasBindingPropertyName(n.name))continue;if(this.tcb.env.config.checkTypeOfOutputEvents&&this.inputs!==null&&n.name.endsWith("Change")){let i=n.name.slice(0,-6);Uv(i,n,this.inputs,this.tcb)}let r=t.getByBindingPropertyName(n.name)[0].classPropertyName;e===null&&(e=this.scope.resolve(this.node,this.dir));let s=new w(`${e.print()}[${w.quoteAndEscape(r)}]`);if(s.addParseSpanInfo(n.keySpan),this.tcb.env.config.checkTypeOfOutputEvents){let i=vi(n,this.tcb,this.scope,0),a=new w(`${s.print()}.subscribe(${i.print()})`);a.addParseSpanInfo(n.sourceSpan),this.scope.addStatement(a)}else{this.scope.addStatement(s);let i=vi(n,this.tcb,this.scope,1);this.scope.addStatement(i)}}return null}},Ah=class extends xe{static{l(this,"TcbUnclaimedOutputsOp")}tcb;scope;target;outputs;inputs;claimedOutputs;hasDirectives;hasComponent;constructor(e,t,n,r,s,i,a=!1,o=!1){super(),this.tcb=e,this.scope=t,this.target=n,this.outputs=r,this.inputs=s,this.claimedOutputs=i,this.hasDirectives=a,this.hasComponent=o}get optional(){return!1}execute(){let e=null;for(let t of this.outputs)if(!this.claimedOutputs?.has(t.name)){if(this.tcb.env.config.checkTypeOfOutputEvents&&this.inputs!==null&&t.name.endsWith("Change")){let n=t.name.slice(0,-6);if(Uv(n,t,this.inputs,this.tcb))continue}if(this.tcb.env.config.checkUnclaimedEventNames&&this.hasDirectives&&t.type===Re.Regular&&t.target===null&&this.target instanceof de&&this.tcb.domSchemaChecker.checkTemplateElementEvent(this.tcb.id,this.target.name,t.name,t.keySpan,this.tcb.schemas,this.hasComponent),t.type===Re.LegacyAnimation){let n=this.tcb.env.config.checkTypeOfAnimationEvents?this.tcb.env.referenceExternalSymbol("@angular/animations","AnimationEvent").print():1,r=vi(t,this.tcb,this.scope,n);this.scope.addStatement(r)}else if(t.type===Re.Animation){let n=this.tcb.env.referenceExternalSymbol("@angular/core","AnimationCallbackEvent"),r=vi(t,this.tcb,this.scope,n.print());this.scope.addStatement(r)}else if(this.tcb.env.config.checkTypeOfDomEvents){let n,r;if(t.target==="window"||t.target==="document"?n=new w(t.target):e===null?n=e=this.scope.resolve(this.target):n=e,this.target instanceof de&&this.target.isVoid&&this.tcb.env.config.allowDomEventAssertion){let o=this.tcb.env.referenceExternalSymbol("@angular/core","\u0275assertType");r=new w(`${o.print()}<typeof ${n.print()}>(${wu}.target)`)}let s=new w(`${n.print()}.addEventListener`).addParseSpanInfo(t.keySpan),i=vi(t,this.tcb,this.scope,0,r),a=new w(`${s.print()}(${w.quoteAndEscape(t.name)}, ${i.print()})`);a.addParseSpanInfo(t.sourceSpan),this.scope.addStatement(a)}else{let n=vi(t,this.tcb,this.scope,1);this.scope.addStatement(n)}}return null}},GF=class extends Dv{static{l(this,"TcbEventHandlerTranslator")}resolve(e){return e instanceof Je&&e.receiver instanceof dt&&e.name===wu?new w(wu).addParseSpanInfo(e.nameSpan):super.resolve(e)}isValidLetDeclarationAccess(){return!0}};function vi(e,t,n,r,s){let i=t1(e.handler,t,n),a=[];s!==void 0&&a.push(s),a.push(i);let o;r===0?o=void 0:r===1?o="any":o=r;let c=n.guards(),u=`{
75
+ ${xn(a)} }`;c!==null&&(u=`{ if (${c.print()}) ${u} }`);let p=new w(`${wu}${o===void 0?"":": "+o}`);return p.addExpressionIdentifier(rr.EVENT_PARAMETER),new w(`(${p.print()}): any => ${u}`)}l(vi,"tcbCreateEventHandler");var XF=class extends xe{static{l(this,"TcbForOfOp")}tcb;scope;block;constructor(e,t,n){super(),this.tcb=e,this.scope=t,this.block=n}get optional(){return!1}execute(){let e=this.scope.createChildScope(this.scope,this.block,this.tcb.env.config.checkControlFlowBodies?this.block.children:[],null),t=e.resolve(this.block.item),n=new w(`const ${t.print()}`);n.addParseSpanInfo(this.block.item.keySpan);let r=new w(`${Xe(this.block.expression,this.tcb,this.scope).print()}!`),s;if(this.block.trackBy===null)s=e.render();else{let a=new YF(this.tcb,e,this.block).translate(this.block.trackBy);s=[...e.render(),a]}return this.scope.addStatement(new w(`for (${n.print()} of ${r.print()}) {
76
+ ${xn(s)} }`)),null}},YF=class extends Dv{static{l(this,"TcbForLoopTrackTranslator")}block;allowedVariables;constructor(e,t,n){super(e,t),this.block=n,this.allowedVariables=new Set([n.item]);for(let r of n.contextVariables)r.value==="$index"&&this.allowedVariables.add(r)}resolve(e){if(e instanceof Je&&(e.receiver instanceof dt||e.receiver instanceof tr)){let t=this.tcb.boundTarget.getExpressionTarget(e);t!==null&&(!(t instanceof cn)||!this.allowedVariables.has(t))&&this.tcb.oobRecorder.illegalForLoopTrackAccess(this.tcb.id,this.block,e)}return super.resolve(e)}},KF=class extends xe{static{l(this,"TcbHostElementOp")}tcb;scope;element;optional=!0;constructor(e,t,n){super(),this.tcb=e,this.scope=t,this.element=n}execute(){let e=this.tcb.allocateId(),t;this.element.tagNames.length===1?t=`"${this.element.tagNames[0]}"`:t=`null! as ${this.element.tagNames.map(r=>`"${r}"`).join(" | ")}`;let n=new w(`document.createElement(${t})`);return n.addParseSpanInfo(this.element.sourceSpan),this.scope.addStatement(new w(`var ${e} = ${n.print()}`)),new w(e)}},QF=class extends xe{static{l(this,"TcbIfBlockOp")}tcb;scope;block;expressionScopes=new Map;constructor(e,t,n){super(),this.tcb=e,this.scope=t,this.block=n}get optional(){return!1}execute(){let e=this.generateBranch(0);return e&&this.scope.addStatement(e),null}generateBranch(e){let t=this.block.branches[e];if(!t)return;if(t.expression===null){let o=this.getBranchScope(this.scope,t,e);return new w(`{
77
+ ${xn(o.render())}}`)}let n=this.scope.createChildScope(this.scope,t,[],null);n.render().forEach(o=>this.scope.addStatement(o)),this.expressionScopes.set(t,n);let r=Xe(t.expression,this.tcb,this.scope);t.expressionAlias!==null&&(r=new w(`(${r.print()}) && ${n.resolve(t.expressionAlias).print()}`));let s=this.getBranchScope(n,t,e),i=`if (${r.print()}) {
78
+ ${xn(s.render())}}`,a=this.generateBranch(e+1);return new w(i+(a?" else "+a.print():""))}getBranchScope(e,t,n){let r=this.tcb.env.config.checkControlFlowBodies;return this.scope.createChildScope(e,null,r?t.children:[],r?this.generateBranchGuard(n):null)}generateBranchGuard(e){let t=null;for(let n=0;n<=e;n++){let r=this.block.branches[n];if(r.expression===null)continue;if(!this.expressionScopes.has(r))throw new Error(`Could not determine expression scope of branch at index ${n}`);let s=this.expressionScopes.get(r),i;i=Xe(r.expression,this.tcb,s),r.expressionAlias!==null&&(i=new w(`(${i.print()}) && ${s.resolve(r.expressionAlias).print()}`)),i.markIgnoreDiagnostics();let a=n===e?i:new w(`!(${i.print()})`);t=t===null?a:new w(`(${t.print()}) && (${a.print()})`)}return t}},JF=class extends xe{static{l(this,"TcbIntersectionObserverOp")}tcb;scope;options;constructor(e,t,n){super(),this.tcb=e,this.scope=t,this.options=n}optional=!1;execute(){let e=Xe(this.options,this.tcb,this.scope);return this.scope.addStatement(new w(`new IntersectionObserver(null!, ${e.print()})`)),null}},ZF=class extends xe{static{l(this,"TcbLetDeclarationOp")}tcb;scope;node;constructor(e,t,n){super(),this.tcb=e,this.scope=t,this.node=n}optional=!1;execute(){let e=new w(this.tcb.allocateId()).addParseSpanInfo(this.node.nameSpan),t=Xe(this.node.value,this.tcb,this.scope).wrapForTypeChecker(),n=new w(`const ${e.print()} = ${t.print()}`);return n.addParseSpanInfo(this.node.sourceSpan),this.scope.addStatement(n),e}},tw=class extends xe{static{l(this,"TcbReferenceOp")}tcb;scope;node;host;target;constructor(e,t,n,r,s){super(),this.tcb=e,this.scope=t,this.node=n,this.host=r,this.target=s}optional=!0;execute(){let e=new w(this.tcb.allocateId()),t=this.target instanceof De||this.target instanceof de?this.scope.resolve(this.target):this.scope.resolve(this.host,this.target);if(this.target instanceof de&&!this.tcb.env.config.checkTypeOfDomReferences||!this.tcb.env.config.checkTypeOfNonDomReferences)t=new w(`${t.print()} as any`);else if(this.target instanceof De){let n=this.tcb.env.referenceExternalSymbol("@angular/core","TemplateRef");t=new w(`(${t.print()} as any as ${n.print()}<any>)`)}return t.addParseSpanInfo(this.node.sourceSpan),e.addParseSpanInfo(this.node.keySpan),this.scope.addStatement(new w(`var ${e.print()} = ${t.print()}`)),e}},e$=class extends xe{static{l(this,"TcbInvalidReferenceOp")}tcb;scope;constructor(e,t){super(),this.tcb=e,this.scope=t}optional=!0;execute(){let e=new w(this.tcb.allocateId());return this.scope.addStatement(new w(`var ${e.print()} = null! as any`)),e}};function qv(e){return e.tagName||"ng-component"}l(qv,"getComponentTagName");var t$=class extends xe{static{l(this,"TcbComponentNodeOp")}tcb;scope;component;optional=!0;constructor(e,t,n){super(),this.tcb=e,this.scope=t,this.component=n}execute(){let e=this.tcb.allocateId(),t=new w(`document.createElement("${qv(this.component)}")`);return t.addParseSpanInfo(this.component.startSourceSpan||this.component.sourceSpan),this.scope.addStatement(new w(`var ${e} = ${t.print()}`)),new w(e)}},n$=new Ki,jo=class extends xe{static{l(this,"TcbDomSchemaCheckerOp")}tcb;element;checkElement;claimedInputs;constructor(e,t,n,r){super(),this.tcb=e,this.element=t,this.checkElement=n,this.claimedInputs=r}get optional(){return!1}execute(){let e=this.element,t=e instanceof de||e instanceof Jn,n=t?e.inputs:e.bindings;this.checkElement&&t&&this.tcb.domSchemaChecker.checkElement(this.tcb.id,this.getTagName(e),e.startSourceSpan,this.tcb.schemas,this.tcb.hostIsStandalone);for(let r of n){let s=r.type===$.Property||r.type===$.TwoWay;if(!(s&&this.claimedInputs?.has(r.name))&&s&&r.name!=="style"&&r.name!=="class"){let i=n$.getMappedPropName(r.name);t?this.tcb.domSchemaChecker.checkTemplateElementProperty(this.tcb.id,this.getTagName(e),i,r.sourceSpan,this.tcb.schemas,this.tcb.hostIsStandalone):this.tcb.domSchemaChecker.checkHostElementProperty(this.tcb.id,e,i,r.keySpan,this.tcb.schemas)}}return null}getTagName(e){return e instanceof de?e.name:qv(e)}},r$=class extends xe{static{l(this,"TcbSwitchOp")}tcb;scope;block;constructor(e,t,n){super(),this.tcb=e,this.scope=t,this.block=n}get optional(){return!1}execute(){let e=Xe(this.block.expression,this.tcb,this.scope),t=this.block.groups.flatMap(n=>{let r=this.tcb.env.config.checkControlFlowBodies,i=[...this.scope.createChildScope(this.scope,null,r?n.children:[],r?this.generateGuard(n,e):null).render(),new w("break")];return n.cases.map((a,o)=>{let c=xn(o===n.cases.length-1?i:[],!0),u=a.expression===null?`default: ${c}`:`case ${Xe(a.expression,this.tcb,this.scope).print()}: ${c}`;return new w(u)})});if(this.block.exhaustiveCheck){let n=this.block.expression;this.block.exhaustiveCheck.expression&&(n=this.block.exhaustiveCheck.expression);let r=Xe(n,this.tcb,this.scope),s=this.tcb.allocateId();t.push(new w(`default: const tcbExhaustive${s}: never = ${r.print()};`))}return this.scope.addStatement(new w(`switch (${e.print()}) { ${t.map(n=>n.print()).join(`
79
+ `)} }`)),null}generateGuard(e,t){if(!e.cases.some(s=>s.expression===null)){let s=null;for(let i of e.cases)if(i.expression!==null){let a=Xe(i.expression,this.tcb,this.scope);a.markIgnoreDiagnostics();let o=new w(`${t.print()} === ${a.print()}`);s===null?s=o:s=new w(`(${s.print()}) || (${o.print()})`)}return s}let r=null;for(let s of this.block.groups)if(s!==e)for(let i of s.cases){if(i.expression===null)continue;let a=Xe(i.expression,this.tcb,this.scope);a.markIgnoreDiagnostics();let o=new w(`${t.print()} !== ${a.print()}`);r===null?r=o:r=new w(`(${r.print()}) && (${o.print()})`)}return r}},s$=class extends xe{static{l(this,"TcbTemplateContextOp")}tcb;scope;constructor(e,t){super(),this.tcb=e,this.scope=t}optional=!0;execute(){let e=new w(this.tcb.allocateId());return this.scope.addStatement(Or(e,new w("any"))),e}},i$=class extends xe{static{l(this,"TcbTemplateBodyOp")}tcb;scope;template;constructor(e,t,n){super(),this.tcb=e,this.scope=t,this.template=n}get optional(){return!1}execute(){let e=null,t=[];this.addDirectiveGuards(t,this.template,this.tcb.boundTarget.getDirectivesOfNode(this.template));for(let i of this.template.directives)this.addDirectiveGuards(t,i,this.tcb.boundTarget.getDirectivesOfNode(i));t.length>0&&(e=t.reduce((i,a)=>new w(`${i.print()} && ${a.print()}`),t.pop()));let r=this.scope.createChildScope(this.scope,this.template,this.template.children,e).render();if(r.length===0)return null;let s=`{
80
+ ${xn(r)}}`;return e!==null&&(s=`if (${e.print()}) ${s}`),this.scope.addStatement(new w(s)),null}addDirectiveGuards(e,t,n){if(n===null||n.length===0)return;let r=t instanceof De;for(let s of n){let i=this.scope.resolve(t,s),a=this.tcb.env.referenceTcbValue(s.ref);if(s.ngTemplateGuards.forEach(o=>{let c=t.inputs.find(u=>u.name===o.inputName)||(r?t.templateAttrs.find(u=>u instanceof Di&&u.name===o.inputName):void 0);if(c!==void 0){let u=Xe(c.value,this.tcb,this.scope);if(u.markIgnoreDiagnostics(),o.type==="binding")e.push(u);else{let p=new w(`${a.print()}.ngTemplateGuard_${o.inputName}(${i.print()}, ${u.print()})`);p.addParseSpanInfo(c.value.sourceSpan),e.push(p)}}}),s.hasNgTemplateContextGuard&&this.tcb.env.config.applyTemplateContextGuards){let o=this.scope.resolve(t),c=new w(`${a.print()}.ngTemplateContextGuard(${i.print()}, ${o.print()})`);c.markIgnoreDiagnostics(),c.addParseSpanInfo(t.sourceSpan),e.push(c)}}}},a$=class extends xe{static{l(this,"TcbBlockImplicitVariableOp")}tcb;scope;type;variable;constructor(e,t,n,r){super(),this.tcb=e,this.scope=t,this.type=n,this.variable=r}optional=!0;execute(){let e=new w(this.tcb.allocateId());e.addParseSpanInfo(this.variable.keySpan);let t=Or(e,this.type);return t.addParseSpanInfo(this.variable.sourceSpan),this.scope.addStatement(t),e}},o$=class extends xe{static{l(this,"TcbTemplateVariableOp")}tcb;scope;template;variable;constructor(e,t,n,r){super(),this.tcb=e,this.scope=t,this.template=n,this.variable=r}get optional(){return!1}execute(){let e=this.scope.resolve(this.template),t=new w(this.tcb.allocateId()),n=new w(`${e.print()}.${this.variable.value||"$implicit"}`);t.addParseSpanInfo(this.variable.keySpan),this.variable.valueSpan!==void 0&&n.addParseSpanInfo(this.variable.valueSpan).wrapForTypeChecker();let r=new w(`var ${t.print()} = ${n.print()}`);return r.addParseSpanInfo(this.variable.sourceSpan),this.scope.addStatement(r),t}},nw=class extends xe{static{l(this,"TcbBlockVariableOp")}tcb;scope;initializer;variable;constructor(e,t,n,r){super(),this.tcb=e,this.scope=t,this.initializer=n,this.variable=r}get optional(){return!1}execute(){let e=new w(this.tcb.allocateId());e.addParseSpanInfo(this.variable.keySpan),this.initializer.wrapForTypeChecker();let t=new w(`var ${e.print()} = ${this.initializer.print()}`);return t.addParseSpanInfo(this.variable.sourceSpan),this.scope.addStatement(t),e}},rw=class Wn{static{l(this,"Scope")}tcb;parent;guard;opQueue=[];elementOpMap=new Map;hostElementOpMap=new Map;componentNodeOpMap=new Map;directiveOpMap=new Map;referenceOpMap=new Map;templateCtxOpMap=new Map;varMap=new Map;letDeclOpMap=new Map;statements=[];static getForLoopContextVariableTypes(){return new Map([["$first","boolean"],["$last","boolean"],["$even","boolean"],["$odd","boolean"],["$index","number"],["$count","number"]])}constructor(t,n=null,r=null){this.tcb=t,this.parent=n,this.guard=r}static forNodes(t,n,r,s,i){let a=new Wn(t,n,i);if(n===null&&t.env.config.enableTemplateTypeChecker&&a.opQueue.push(new RF(a)),r instanceof De){let o=new Map;for(let c of r.variables){if(!o.has(c.name))o.set(c.name,c);else{let u=o.get(c.name);t.oobRecorder.duplicateTemplateVar(t.id,c,u)}Wn.registerVariable(a,c,new o$(t,a,r,c))}}else if(r instanceof yi){let{expression:o,expressionAlias:c}=r;o!==null&&c!==null&&Wn.registerVariable(a,c,new nw(t,a,Xe(o,t,a),c))}else if(r instanceof jl)for(let o of r.contextVariables){let c;if(o.value==="$error")c=new w("(err as Error)");else if(o.value==="$reset")c=new w("(() => {})");else throw new Error(`Unrecognized context variable ${o.value}`);Wn.registerVariable(a,o,new nw(t,a,c,o))}else if(r instanceof Zr){let o=new w(t.allocateId());o.addParseSpanInfo(r.item.sourceSpan),a.varMap.set(r.item,o);let c=Wn.getForLoopContextVariableTypes();for(let u of r.contextVariables){if(!c.has(u.value))throw new Error(`Unrecognized for loop context variable ${u.name}`);let p=new w(c.get(u.value));Wn.registerVariable(a,u,new a$(t,a,p,u))}}else r instanceof Bt&&a.appendNode(r);if(s!==null)for(let o of s)a.appendNode(o);for(let o of a.varMap.keys())Wn.checkConflictingLet(a,o);for(let o of a.referenceOpMap.keys())Wn.checkConflictingLet(a,o);return a}static registerVariable(t,n,r){let s=t.opQueue.push(r)-1;t.varMap.set(n,s)}resolve(t,n){let r=this.resolveLocal(t,n);if(r!==null)return r;if(this.parent!==null)return this.parent.resolve(t,n);throw new Error(`Could not resolve ${t} / ${n}`)}addStatement(t){this.statements.push(t)}render(){for(let t=0;t<this.opQueue.length;t++){let n=!this.tcb.env.config.enableTemplateTypeChecker;this.executeOp(t,n)}return this.statements}guards(){let t=null;if(this.parent!==null&&(t=this.parent.guards()),this.guard===null)return t;if(t===null)return typeof this.guard=="string"?new w(this.guard):this.guard;{let n=typeof this.guard=="string"?this.guard:this.guard.print();return new w(`(${t.print()}) && (${n})`)}}isLocal(t){return t instanceof cn?this.varMap.has(t):t instanceof Tr?this.letDeclOpMap.has(t.name):this.referenceOpMap.has(t)}createChildScope(t,n,r,s){return Wn.forNodes(this.tcb,t,n,r,s)}resolveLocal(t,n){if(t instanceof El&&this.referenceOpMap.has(t))return this.resolveOp(this.referenceOpMap.get(t));if(t instanceof Tr&&this.letDeclOpMap.has(t.name))return this.resolveOp(this.letDeclOpMap.get(t.name).opIndex);if(t instanceof cn&&this.varMap.has(t)){let r=this.varMap.get(t);return typeof r=="number"?this.resolveOp(r):new w(r.print(!0))}else{if(t instanceof De&&n===void 0&&this.templateCtxOpMap.has(t))return this.resolveOp(this.templateCtxOpMap.get(t));if((t instanceof de||t instanceof De||t instanceof Jn||t instanceof ka||t instanceof Bt)&&n!==void 0&&this.directiveOpMap.has(t)){let r=this.directiveOpMap.get(t);return r.has(n)?this.resolveOp(r.get(n)):null}else return t instanceof de&&this.elementOpMap.has(t)?this.resolveOp(this.elementOpMap.get(t)):t instanceof Jn&&this.componentNodeOpMap.has(t)?this.resolveOp(this.componentNodeOpMap.get(t)):t instanceof Bt&&this.hostElementOpMap.has(t)?this.resolveOp(this.hostElementOpMap.get(t)):null}}resolveOp(t){let n=this.executeOp(t,!1);if(n===null)throw new Error("Error resolving operation, got null");return n}executeOp(t,n){let r=this.opQueue[t];if(!(r instanceof xe))return r===null?null:new w(r.print(!0));if(n&&r.optional)return null;this.opQueue[t]=r.circularFallback();let s=r.execute();return s!==null&&(s=new w(s.print(!0))),this.opQueue[t]=s,s}appendNode(t){if(t instanceof de){let n=this.opQueue.push(new zF(this.tcb,this,t))-1;this.elementOpMap.set(t,n),this.tcb.env.config.controlFlowPreventingContentProjection!=="suppress"&&this.appendContentProjectionCheckOp(t),this.appendDirectivesAndInputsOfElementLikeNode(t),this.appendOutputsOfElementLikeNode(t,t.inputs,t.outputs),this.appendSelectorlessDirectives(t),this.appendChildren(t),this.checkAndAppendReferencesOfNode(t)}else if(t instanceof De){this.appendDirectivesAndInputsOfElementLikeNode(t),this.appendOutputsOfElementLikeNode(t,t.inputs,t.outputs),this.appendSelectorlessDirectives(t);let n=this.opQueue.push(new s$(this.tcb,this))-1;this.templateCtxOpMap.set(t,n),this.tcb.env.config.checkTemplateBodies?this.opQueue.push(new i$(this.tcb,this,t)):this.tcb.env.config.alwaysCheckSchemaInTemplateBodies&&this.appendDeepSchemaChecks(t.children),this.checkAndAppendReferencesOfNode(t)}else if(t instanceof Jn)this.appendComponentNode(t);else if(t instanceof Xr)this.appendDeferredBlock(t);else if(t instanceof zl)this.opQueue.push(new QF(this.tcb,this,t));else if(t instanceof ao)this.opQueue.push(new OF(this.tcb,this,t));else if(t instanceof Wl)this.opQueue.push(new r$(this.tcb,this,t));else if(t instanceof Zr)this.opQueue.push(new XF(this.tcb,this,t)),t.empty&&this.tcb.env.config.checkControlFlowBodies&&this.appendChildren(t.empty);else if(t instanceof Li)this.opQueue.push(new bh(this.tcb,this,t.value));else if(t instanceof ju)this.appendIcuExpressions(t);else if(t instanceof oo)this.appendChildren(t);else if(t instanceof Tr){let n=this.opQueue.push(new ZF(this.tcb,this,t))-1;this.isLocal(t)?this.tcb.oobRecorder.conflictingDeclaration(this.tcb.id,t):this.letDeclOpMap.set(t.name,{opIndex:n,node:t})}else t instanceof Bt&&this.appendHostElement(t)}appendChildren(t){for(let n of t.children)this.appendNode(n)}checkAndAppendReferencesOfNode(t){for(let n of t.references){let r=this.tcb.boundTarget.getReferenceTarget(n),s;r===null?(this.tcb.oobRecorder.missingReferenceTarget(this.tcb.id,n),s=this.opQueue.push(new e$(this.tcb,this))-1):r instanceof De||r instanceof de?s=this.opQueue.push(new tw(this.tcb,this,n,t,r))-1:s=this.opQueue.push(new tw(this.tcb,this,n,t,r.directive))-1,this.referenceOpMap.set(n,s)}}appendDirectivesAndInputsOfElementLikeNode(t){let n=new Set,r=this.tcb.boundTarget.getDirectivesOfNode(t);if(r===null||r.length===0){t instanceof de&&(this.opQueue.push(new wc(this.tcb,this,t.inputs,t,n)),this.tcb.boundTarget.getForeignComponent(t)!==null||this.opQueue.push(new jo(this.tcb,t,!0,n)));return}if(this.reportConflictingBindings(t),t instanceof de||t instanceof De){let i=this.tcb.boundTarget.getDeferBlocksOfNode(t),a=i.length>0;for(let o of r)if(o.isExplicitlyDeferred){if(!a)this.tcb.oobRecorder.deferredComponentUsedEagerly(this.tcb.id,t,o,null,null);else if(o.deferredBlocks!=null&&!i.some(u=>u.definedName!==null&&o.deferredBlocks.has(u.definedName))){let u=i[i.length-1].definedName??"unnamed",p=Array.from(o.deferredBlocks);this.tcb.oobRecorder.deferredComponentUsedEagerly(this.tcb.id,t,o,u,p)}}}if(t instanceof de){let i=r.filter(a=>a.isComponent);i.length>1&&this.tcb.oobRecorder.multipleMatchingComponents(this.tcb.id,t,i.map(a=>a.name))}let s=new Map;for(let i=0;i<r.length;i++){let a=r[i];this.appendDirectiveInputs(a,t,s,r,i)}if(this.directiveOpMap.set(t,s),t instanceof de){for(let a of r)for(let o of a.inputs.propertyNames)n.add(o);this.opQueue.push(new wc(this.tcb,this,t.inputs,t,n));let i=r.length===0;this.opQueue.push(new jo(this.tcb,t,i,n))}}appendOutputsOfElementLikeNode(t,n,r){let s=new Set,i=this.tcb.boundTarget.getDirectivesOfNode(t);if(i===null||i.length===0){t instanceof de&&this.opQueue.push(new Ah(this.tcb,this,t,r,n,s));return}for(let a of i)this.opQueue.push(new ew(this.tcb,this,t,n,r,a));if(t instanceof de||t instanceof Bt){for(let a of i)for(let o of a.outputs.propertyNames)s.add(o);this.opQueue.push(new Ah(this.tcb,this,t,r,n,s,!0,i.some(a=>a.isComponent)))}}appendInputsOfSelectorlessNode(t){let n=this.tcb.boundTarget.getDirectivesOfNode(t),r=new Set;if(n!==null&&n.length>0){let s=new Map;for(let i=0;i<n.length;i++){let a=n[i];this.appendDirectiveInputs(a,t,s,n,i);for(let o of a.inputs.propertyNames)r.add(o)}this.directiveOpMap.set(t,s)}if(this.reportConflictingBindings(t),t instanceof ka){for(let s of t.inputs)r.has(s.name)||this.tcb.oobRecorder.unclaimedDirectiveBinding(this.tcb.id,t,s);for(let s of t.attributes)r.has(s.name)||this.tcb.oobRecorder.unclaimedDirectiveBinding(this.tcb.id,t,s)}else{let s=t.tagName!==null;this.opQueue.push(new wc(this.tcb,this,t.inputs,t,r),new jo(this.tcb,t,s,r))}}appendOutputsOfSelectorlessNode(t){let n=this.tcb.boundTarget.getDirectivesOfNode(t),r=new Set;if(n!==null&&n.length>0)for(let s of n){this.opQueue.push(new ew(this.tcb,this,t,t.inputs,t.outputs,s));for(let i of s.outputs.propertyNames)r.add(i)}if(t instanceof ka)for(let s of t.outputs)r.has(s.name)||this.tcb.oobRecorder.unclaimedDirectiveBinding(this.tcb.id,t,s);else this.opQueue.push(new Ah(this.tcb,this,t,t.outputs,t.inputs,r))}appendDirectiveInputs(t,n,r,s,i){let a=Jk(s),o=a?Mv(t):null,c=this.getDirectiveOp(t,n,o,i),u=this.opQueue.push(c)-1;if(r.set(t,u),Xk(t,n,s)){let p=n.name==="input"&&n.attributes.find(h=>h.name==="type")?.value||null;this.opQueue.push(p==="radio"?new $F(this.tcb,this,n):new Gk(this.tcb,this,n,p))}this.opQueue.push(new VF(this.tcb,this,n,t,a,o))}getDirectiveOp(t,n,r,s){if(t.isGeneric){if(!t.requiresInlineTypeCtor||this.tcb.env.config.useInlineTypeConstructors)return new qF(this.tcb,this,n,t,r,s)}else return new jF(this.tcb,this,n,t,s);return new WF(this.tcb,this,n,t,s)}appendSelectorlessDirectives(t){for(let n of t.directives){if(!this.tcb.boundTarget.referencedDirectiveExists(n.name)){this.tcb.oobRecorder.missingNamedTemplateDependency(this.tcb.id,n);continue}let r=this.tcb.boundTarget.getDirectivesOfNode(n);if(r===null||r.length===0||r.some(s=>s.isComponent||!s.isStandalone)){this.tcb.oobRecorder.incorrectTemplateDependencyType(this.tcb.id,n);continue}this.appendInputsOfSelectorlessNode(n),this.appendOutputsOfSelectorlessNode(n),this.checkAndAppendReferencesOfNode(n)}}appendDeepSchemaChecks(t){for(let n of t)if(n instanceof de||n instanceof De){if(n instanceof de){let r=new Set,s=this.tcb.boundTarget.getDirectivesOfNode(n);for(let o of n.directives){let c=this.tcb.boundTarget.getDirectivesOfNode(o);c!==null&&c.length>0&&(s??=[],s.push(...c))}let i;if(s===null||s.length===0)i=!1;else{i=!0;for(let o of s)for(let c of o.inputs.propertyNames)r.add(c)}this.tcb.boundTarget.getForeignComponent(n)!==null||this.opQueue.push(new jo(this.tcb,n,!i,r))}this.appendDeepSchemaChecks(n.children)}}appendIcuExpressions(t){for(let n of Object.values(t.vars))this.opQueue.push(new bh(this.tcb,this,n.value));for(let n of Object.values(t.placeholders))n instanceof Li&&this.opQueue.push(new bh(this.tcb,this,n.value))}appendContentProjectionCheckOp(t){let n=this.tcb.boundTarget.getDirectivesOfNode(t)?.find(r=>r.isComponent)||null;if(n!==null&&n.ngContentSelectors!==null&&n.ngContentSelectors.length>0){let r=n.ngContentSelectors;(r.length>1||r.length===1&&r[0]!=="*")&&this.opQueue.push(new BF(this.tcb,t,r,n.name))}}appendComponentNode(t){if(!this.tcb.boundTarget.referencedDirectiveExists(t.componentName)){this.tcb.oobRecorder.missingNamedTemplateDependency(this.tcb.id,t);return}let n=this.tcb.boundTarget.getDirectivesOfNode(t);if(n===null||n.length===0||n.every(s=>!s.isComponent||!s.isStandalone)){this.tcb.oobRecorder.incorrectTemplateDependencyType(this.tcb.id,t);return}let r=this.opQueue.push(new t$(this.tcb,this,t))-1;this.componentNodeOpMap.set(t,r),this.tcb.env.config.controlFlowPreventingContentProjection!=="suppress"&&this.appendContentProjectionCheckOp(t),this.appendInputsOfSelectorlessNode(t),this.appendOutputsOfSelectorlessNode(t),this.appendSelectorlessDirectives(t),this.appendChildren(t),this.checkAndAppendReferencesOfNode(t)}appendDeferredBlock(t){this.appendDeferredTriggers(t,t.triggers),this.appendDeferredTriggers(t,t.prefetchTriggers),t.hydrateTriggers.when&&this.opQueue.push(new Zy(this.tcb,this,t.hydrateTriggers.when.value)),this.appendChildren(t),t.placeholder!==null&&this.appendChildren(t.placeholder),t.loading!==null&&this.appendChildren(t.loading),t.error!==null&&this.appendChildren(t.error)}appendDeferredTriggers(t,n){n.when!==void 0&&this.opQueue.push(new Zy(this.tcb,this,n.when.value)),n.viewport!==void 0&&n.viewport.options!==null&&this.opQueue.push(new JF(this.tcb,this,n.viewport.options)),n.hover!==void 0&&this.validateReferenceBasedDeferredTrigger(t,n.hover),n.interaction!==void 0&&this.validateReferenceBasedDeferredTrigger(t,n.interaction),n.viewport!==void 0&&this.validateReferenceBasedDeferredTrigger(t,n.viewport)}appendHostElement(t){let n=this.opQueue.push(new KF(this.tcb,this,t))-1,r=this.tcb.boundTarget.getDirectivesOfNode(t);if(r!==null&&r.length>0){let s=new Map;for(let i of r){let a=this.getDirectiveOp(i,t,null);s.set(i,this.opQueue.push(a)-1)}this.directiveOpMap.set(t,s)}this.hostElementOpMap.set(t,n),this.opQueue.push(new wc(this.tcb,this,t.bindings,t,null),new jo(this.tcb,t,!1,null)),this.appendOutputsOfElementLikeNode(t,null,t.listeners)}validateReferenceBasedDeferredTrigger(t,n){if(n.reference===null){if(t.placeholder===null){this.tcb.oobRecorder.deferImplicitTriggerMissingPlaceholder(this.tcb.id,n);return}let r=null;for(let s of t.placeholder.children)if(!(!this.tcb.hostPreserveWhitespaces&&s instanceof Yn&&s.value.trim().length===0))if(r===null)r=s;else{r=null;break}(r===null||!(r instanceof de))&&this.tcb.oobRecorder.deferImplicitTriggerInvalidPlaceholder(this.tcb.id,n);return}this.tcb.boundTarget.getDeferredTriggerTarget(t,n)===null&&this.tcb.oobRecorder.inaccessibleDeferredTriggerElement(this.tcb.id,n)}static checkConflictingLet(t,n){t.letDeclOpMap.has(n.name)&&t.tcb.oobRecorder.conflictingDeclaration(t.tcb.id,t.letDeclOpMap.get(n.name).node)}reportConflictingBindings(t){let n=this.tcb.boundTarget.getConflictingHostDirectiveBindings(t);if(n!==null)for(let r of n)this.tcb.oobRecorder.conflictingHostDirectiveBinding(this.tcb.id,t,r.directive.name,r.kind,r.classPropertyName,Array.from(r.conflictingAliases))}};function n1(e,t,n,r,s,i){let a=new LF(e,s,i,r.id,r.boundTarget,r.pipes,r.schemas,r.isStandalone,r.preserveWhitespaces),o=e.referenceTcbValue(t.ref),{typeParameters:c,typeArguments:u}=t,p=!e.config.useContextGenericType||c===null||c.length===0?"":`<${c.map(y=>y.representation).join(", ")}>`,h=u===null||u.length===0?"":`<${u.join(", ")}>`,f=`this: ${o.print()}${h}`,v=[];if(a.boundTarget.target.template!==void 0){let y=rw.forNodes(a,null,null,a.boundTarget.target.template,null);v.push(um(e,y,"true"))}if(a.boundTarget.target.host!==void 0){let y=rw.forNodes(a,null,a.boundTarget.target.host.node,null,null);v.push(um(e,y,Iv()))}let E=`{
81
+ ${v.join(`
82
+ `)}
83
+ }`,T=`function ${n}${p}(${f}) ${E}`;return`/*${r.id}*/
84
+ ${T}`}l(n1,"generateTypeCheckBlock");function um(e,t,n){let r=t.render(),s=xn([...e.getPreludeStatements(),...r]);return`if (${n}) {
85
+ ${s}
86
+ }`}l(um,"renderBlockStatements");Sv(ol);});var i1=C(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.getApplicableConfig=z.normalizeOptionsToConfigs=z.isMultipleConfigOption=z.checkSelector=z.checkValidOptions=z.getActualSelectorType=z.parseSelectorNode=z.reportTypeError=z.reportStyleAndPrefixError=z.reportStyleError=z.reportSelectorAfterPrefixError=z.reportPrefixError=z.SelectorValidator=z.OPTION_TYPE_ELEMENT=z.OPTION_TYPE_ATTRS=z.OPTION_TYPE_ATTRIBUTE=void 0;var s1=fe(),Ji=vc(),ar=ko();z.OPTION_TYPE_ATTRIBUTE="attribute";z.OPTION_TYPE_ATTRS="attrs";z.OPTION_TYPE_ELEMENT="element";var l$={[z.OPTION_TYPE_ATTRIBUTE]:z.OPTION_TYPE_ATTRS,[z.OPTION_TYPE_ELEMENT]:z.OPTION_TYPE_ELEMENT};z.SelectorValidator={attribute(e){return e.length!==0},camelCase(e){return/^[a-zA-Z0-9[\]]+$/.test(e)},element(e){return e!==null},kebabCase(e){return/^[a-z0-9]+(-[a-z0-9]+)*$/.test(e)},prefixRegex(e){return new RegExp(`^\\[?(${e})`)},prefix(e,t){let n=this.prefixRegex(e);return r=>{if(!e)return!0;if(!n.test(r))return!1;let s=r.replace(n,"");if(t===Ji.OPTION_STYLE_CAMEL_CASE)return!s||s[0]===s[0].toUpperCase();if(t===Ji.OPTION_STYLE_KEBAB_CASE)return!s||s[0]==="-";throw Error("Invalid selector style!")}},selectorAfterPrefix(e){let t=this.prefixRegex(e);return n=>!!n.replace(t,"")}};var c$=(e,t)=>e.reduce((n,r)=>{let s=t.reduce((i,a)=>{let o=r[a];return o?i.concat(o):i},[]);return n.concat(s)},[]),u$=(e,t,n)=>{let r=t?(0,ar.arrayify)(t):[];n.report({node:e,messageId:"prefixFailure",data:{prefix:(0,ar.toHumanReadableText)(r)}})};z.reportPrefixError=u$;var p$=(e,t,n)=>{let r=t?(0,ar.arrayify)(t):[];n.report({node:e,messageId:"selectorAfterPrefixFailure",data:{prefix:(0,ar.toHumanReadableText)(r)}})};z.reportSelectorAfterPrefixError=p$;var h$=(e,t,n)=>{n.report({node:e,messageId:"styleFailure",data:{style:t}})};z.reportStyleError=h$;var d$=(e,t,n,r)=>{let s=n?(0,ar.arrayify)(n):[];r.report({node:e,messageId:"styleAndPrefixFailure",data:{style:t,prefix:(0,ar.toHumanReadableText)(s)}})};z.reportStyleAndPrefixError=d$;var f$=(e,t,n)=>{n.report({node:e,messageId:"typeFailure",data:{type:t}})};z.reportTypeError=f$;var m$=e=>(0,Ji.isLiteral)(e)?s1.CssSelector.parse(e.raw):(0,Ji.isTemplateLiteral)(e)&&e.quasis[0]?s1.CssSelector.parse(e.quasis[0].value.raw):null;z.parseSelectorNode=m$;var g$=e=>{let t=(0,z.parseSelectorNode)(e);if(!t||t.length===0)return null;let n=t[0];return Array.isArray(n.attrs)&&n.attrs.length>0?z.OPTION_TYPE_ATTRIBUTE:n.element!=null&&n.element!==""&&n.element!=="*"?z.OPTION_TYPE_ELEMENT:null};z.getActualSelectorType=g$;var v$=(e,t,n)=>{let r=(0,ar.arrayify)(e),s=n,i=r.length>0&&r.every(c=>[z.OPTION_TYPE_ELEMENT,z.OPTION_TYPE_ATTRIBUTE].indexOf(c)!==-1),a=t===void 0||t===""||Array.isArray(t)&&t.length===0||t.length>0,o=[Ji.OPTION_STYLE_CAMEL_CASE,Ji.OPTION_STYLE_KEBAB_CASE].indexOf(s)!==-1;return i&&a&&o};z.checkValidOptions=v$;var E$=(e,t,n,r,s)=>{let i=(0,ar.arrayify)(t||[z.OPTION_TYPE_ATTRS,z.OPTION_TYPE_ELEMENT]).reduce((E,T)=>E.concat(l$[T]),[]),a=r===Ji.OPTION_STYLE_KEBAB_CASE?z.SelectorValidator.kebabCase:z.SelectorValidator.camelCase,o=s??(0,z.parseSelectorNode)(e);if(!o)return null;let c=c$(o,i),u=n?(0,ar.arrayify)(n):[],p=!n||u.length===0||c.some(E=>u.some(T=>z.SelectorValidator.prefix(T,r)(E))),h=c.some(E=>a(E)),f=c.length>0,v=!n||u.length===0||c.some(E=>u.some(T=>z.SelectorValidator.selectorAfterPrefix(T)(E)));return{hasExpectedPrefix:p,hasExpectedType:f,hasExpectedStyle:h,hasSelectorAfterPrefix:v}};z.checkSelector=E$;var S$=e=>Array.isArray(e)&&e.length>=1&&e.length<=2&&e.every(t=>typeof t.type=="string");z.isMultipleConfigOption=S$;var y$=e=>{let t=new Map;if((0,z.isMultipleConfigOption)(e)){let n=e.map(r=>r.type);if(new Set(n).size!==n.length)throw new Error('Invalid rule config: Each config object in the options array must have a unique "type" property (either "element" or "attribute")');for(let r of e)t.set(r.type,r)}else{let n=(0,ar.arrayify)(e.type);for(let r of n)t.set(r,{type:r,prefix:e.prefix,style:e.style})}return t};z.normalizeOptionsToConfigs=y$;var w$=(e,t)=>{let n=null;if(t.size>1){let r=(0,z.getActualSelectorType)(e);if(!r)return null;let s=t.get(r);if(!s)return null;n=s}else{let r=t.entries().next();r.done||(n=r.value[1])}return n};z.getApplicableConfig=w$});var o1=C(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});fp.getTemplateParserServices=T$;fp.ensureTemplateParser=a1;function T$(e){return a1(e),e.sourceCode.parserServices}function a1(e){let t=e.sourceCode.parserServices;if(!t?.convertNodeSourceSpanToLoc||!t?.convertElementSourceSpanToLoc)throw new Error("You have used a rule which requires '@angular-eslint/template-parser' to be used as the 'parser' in your ESLint config.")}});var ie=C(ue=>{"use strict";var x$=ue&&ue.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),b$=ue&&ue.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),nc=ue&&ue.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(n){var r=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[r.length]=s);return r},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),s=0;s<r.length;s++)r[s]!=="default"&&x$(n,t,r[s]);return b$(n,t),n}})();Object.defineProperty(ue,"__esModule",{value:!0});ue.getTemplateParserServices=ue.ensureTemplateParser=ue.SelectorUtils=ue.Selectors=ue.RuleFixes=ue.CommentUtils=ue.ASTUtils=ue.getNativeEventNames=ue.getAriaAttributeKeys=ue.capitalize=ue.withoutBracketsAndWhitespaces=ue.kebabToCamelCase=ue.toPattern=ue.isNotNullOrUndefined=ue.arrayify=ue.toHumanReadableText=void 0;var Zi=ko();Object.defineProperty(ue,"toHumanReadableText",{enumerable:!0,get:function(){return Zi.toHumanReadableText}});Object.defineProperty(ue,"arrayify",{enumerable:!0,get:function(){return Zi.arrayify}});Object.defineProperty(ue,"isNotNullOrUndefined",{enumerable:!0,get:function(){return Zi.isNotNullOrUndefined}});Object.defineProperty(ue,"toPattern",{enumerable:!0,get:function(){return Zi.toPattern}});Object.defineProperty(ue,"kebabToCamelCase",{enumerable:!0,get:function(){return Zi.kebabToCamelCase}});Object.defineProperty(ue,"withoutBracketsAndWhitespaces",{enumerable:!0,get:function(){return Zi.withoutBracketsAndWhitespaces}});Object.defineProperty(ue,"capitalize",{enumerable:!0,get:function(){return Zi.capitalize}});var A$=hS();Object.defineProperty(ue,"getAriaAttributeKeys",{enumerable:!0,get:function(){return A$.getAriaAttributeKeys}});var C$=fS();Object.defineProperty(ue,"getNativeEventNames",{enumerable:!0,get:function(){return C$.getNativeEventNames}});ue.ASTUtils=nc(vc());ue.CommentUtils=nc(sy());ue.RuleFixes=nc(oy());ue.Selectors=nc(ly());ue.SelectorUtils=nc(i1());var l1=o1();Object.defineProperty(ue,"ensureTemplateParser",{enumerable:!0,get:function(){return l1.ensureTemplateParser}});Object.defineProperty(ue,"getTemplateParserServices",{enumerable:!0,get:function(){return l1.getTemplateParserServices}})});var ne=C(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});mp.createESLintRule=void 0;var _$=fc();mp.createESLintRule=_$.ESLintUtils.RuleCreator(e=>`https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin-template/docs/rules/${e}.md`)});var c1=C(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0});gp.PROPERTY_READ=void 0;gp.PROPERTY_READ=Symbol("PROPERTY_READ")});var rc=C(Hv=>{"use strict";Object.defineProperty(Hv,"__esModule",{value:!0});Hv.getOriginalAttributeName=I$;var N$=fe();function I$(e){let{details:t}=e.keySpan??{};return t?e instanceof N$.TmplAstBoundEvent?k$(e)?e.name:t:t.replace("attr.",""):e.name}function k$({keySpan:{details:e},name:t}){return t===`${e}Change`}});var Mr=C(jv=>{"use strict";Object.defineProperty(jv,"__esModule",{value:!0});jv.getAttributeValue=D$;var vp=fe(),P$=c1(),L$=rc();function D$({attributes:e,inputs:t},n){let r=[...e,...t].find(s=>(0,L$.getOriginalAttributeName)(s)===n);if(typeof r?.value=="string")return r.value;if(!(r?.value instanceof vp.ASTWithSource))return null;if(r.value.ast instanceof vp.LiteralArray)return r.value.ast.expressions;if(r.value.ast instanceof vp.LiteralMap){let{keys:s,values:i}=r.value.ast;return s.reduce((a,o,c)=>o.kind==="spread"?a:a.set(o.key,i[c]),new Map)}return r.value.ast instanceof vp.LiteralPrimitive?r.value.ast.value:P$.PROPERTY_READ}});var p1=C(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.RULE_DOCS_EXTENSION=us.RULE_NAME=void 0;var O$=ie(),R$=ne(),B$=Mr();us.RULE_NAME="alt-text";us.default=(0,R$.createESLintRule)({name:us.RULE_NAME,meta:{type:"suggestion",docs:{description:"[Accessibility] Enforces alternate text for elements which require the alt, aria-label, aria-labelledby attributes."},schema:[],messages:{altText:"<{{element}}/> element must have a text alternative."},defaultOptions:[]},create(e){let t=(0,O$.getTemplateParserServices)(e);return{"Element[name=/^(img|area|object|input)$/i]"(n){if(!M$(n)){let s=t.convertElementSourceSpanToLoc(e,n);e.report({loc:s,messageId:"altText",data:{element:n.name}})}}}}});function M$(e){let t=e.name.toLowerCase();return t==="img"?F$(e):t==="object"?$$(e):t==="area"?u1(e):U$(e)}function F$(e){return e.attributes.some(({name:t})=>Sp(t))||e.inputs.some(({name:t})=>Sp(t))}function $$(e){let t=!1,n=!1;for(let i of e.attributes)t=t||i.name==="title",n=n||Ep(i.name);if(t||n)return!0;let r=!1,s=!1;for(let i of e.inputs)r=r||i.name==="title",s=s||Ep(i.name);return r||s?!0:e.children.length>0&&!!e.children[0].value}function u1(e){let t=!1,n=!1;for(let i of e.attributes)t=t||Sp(i.name),n=n||Ep(i.name);if(t||n)return!0;let r=!1,s=!1;for(let i of e.inputs)r=r||Sp(i.name),s=s||Ep(i.name);return r||s}function U$(e){return(0,B$.getAttributeValue)(e,"type")!=="image"?!0:u1(e)}function Ep(e){return e==="aria-label"||e==="aria-labelledby"}function Sp(e){return e==="alt"}us.RULE_DOCS_EXTENSION={rationale:`Images, area elements, and input buttons must have alternative text for accessibility. Screen readers used by blind and visually impaired users rely on alt text to describe images. Without alt text, these users miss important content and context. Decorative images should have an empty alt attribute (alt="") to signal they can be safely ignored by screen readers. Meaningful images require descriptive alt text that conveys the image's content and purpose. This is a WCAG Level A requirement, meaning it's a basic accessibility standard.`}});var w1=C(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.RULE_DOCS_EXTENSION=or.RULE_NAME=or.OrderType=void 0;var ea=fe(),V$=ie(),q$=ne(),_e;(function(e){e.TemplateReferenceVariable="TEMPLATE_REFERENCE",e.StructuralDirective="STRUCTURAL_DIRECTIVE",e.AttributeBinding="ATTRIBUTE_BINDING",e.InputBinding="INPUT_BINDING",e.OutputBinding="OUTPUT_BINDING",e.TwoWayBinding="TWO_WAY_BINDING"})(_e||(or.OrderType=_e={}));or.RULE_NAME="attributes-order";var H$=[_e.StructuralDirective,_e.TemplateReferenceVariable,_e.AttributeBinding,_e.InputBinding,_e.TwoWayBinding,_e.OutputBinding],sc={alphabetical:!1,order:[...H$]};or.default=(0,q$.createESLintRule)({name:or.RULE_NAME,meta:{type:"layout",docs:{description:"Ensures that HTML attributes and Angular bindings are sorted based on an expected order"},fixable:"code",schema:[{type:"object",properties:{alphabetical:{type:"boolean",default:sc.alphabetical},order:{type:"array",items:{type:"string",enum:sc.order},default:sc.order,minItems:sc.order.length,uniqueItems:!0}},additionalProperties:!1}],messages:{attributesOrder:"The element's attributes/bindings did not match the expected order: expected {{expected}} instead of {{actual}}"},defaultOptions:[sc]},create(e,[{alphabetical:t,order:n}]){let r=(0,V$.getTemplateParserServices)(e);function s(i){return Yv(r.convertNodeSourceSpanToLoc(i.sourceSpan),"location",i)}return{"Element, Template"(i){if(S1(i))return;let a=z$(i,e.filename,e.sourceCode);if(a.length<2)return;let o=[...a].sort(j$),c=[...a].sort(W$(n,t)),u;for(let p=0;p<o.length;p++)o[p]!==c[p]&&(u=[u?.[0]??p,p]);if(u){let[p,h]=u,f=e.sourceCode,{start:v}=s(o[p]),{end:E}=s(o[h]),T={start:v,end:E},y=[Wv(o[p]),zv(o[h])],N="",V=y[0];for(let q=p;q<=h;q++){let le=o[q],Ht=Wv(le),ge=zv(le),Le=c[q],Q=Wv(Le),ut=zv(Le);N+=f.text.slice(V,Ht),N+=f.text.slice(Q,ut),V=ge}e.report({loc:T,messageId:"attributesOrder",data:{expected:c.slice(p,h+1).map(q=>`\`${m1(q)}\``).join(", "),actual:o.slice(p,h+1).map(q=>`\`${m1(q)}\``).join(", ")},fix:q=>q.replaceTextRange(y,N)})}}}}});function j$(e,t){return e.sourceSpan.start.line===t.sourceSpan.start.line?e.sourceSpan.start.col-t.sourceSpan.start.col:e.sourceSpan.start.line-t.sourceSpan.start.line}function W$(e,t){return function(n,r){let s=h1(n,e)-h1(r,e);if(t&&s===0){let i=n.keySpan?.details??n.name,a=i.replace(/^i18n-/,""),c=(r.keySpan?.details??r.name).replace(/^i18n-/,"");return a===c?/^i18n-/.test(i)?1:-1:a>c?1:-1}return s}}function h1(e,t){return t.indexOf(e.orderType)}function z$(e,t,n){if(e.i18n)return Gv(e,t,e.inputs);let{attributes:r,inputs:s,outputs:i,references:a}=e,o=[],c=[];for(let f of s){if(f.i18n)return Gv(e,t,e.inputs);n.text.at(f.sourceSpan.start.offset)==="["?o.push(v1(f)):c.push(Xv(f))}for(let f of r){if(f.i18n)return Gv(e,t,e.inputs);c.push(Xv(f))}let{extractedBananaBoxes:u,extractedInputs:p,extractedOutputs:h}=K$(o,i.map(E1));return[...Y$(e),...c,...a.map(X$),...u,...p,...h]}function Xv(e){return{...e,orderType:_e.AttributeBinding}}function v1(e){return{...e,orderType:_e.InputBinding}}function d1(e){return{...e,orderType:_e.StructuralDirective}}function E1(e){return{...e,orderType:_e.OutputBinding}}function G$(e){return{...e,orderType:_e.TwoWayBinding}}function X$(e){return{...e,orderType:_e.TemplateReferenceVariable}}function S1(e){return y1(e)&&(e.tagName===null||!/^(:svg:)?ng-template$/.test(e.tagName.toLowerCase()))}function Y$(e){if(y1(e))return e.templateAttrs.map(d1).concat(e.variables.map(r=>({...Xv(r),keySpan:new ea.ParseSourceSpan(r.keySpan.start.moveBy(-4),r.keySpan.end),name:"let-"+r.name})));if(!S1(e.parent))return[];let t=e.parent.templateAttrs.map(d1),n=t[0].keySpan?.end;if(n?.getContext(0,0)?.after==="="){n=n.moveBy(1);let r=n.getContext(0,0)?.after;if(r==="'"||r==='"')do n=n.moveBy(1);while(n.getContext(0,0)?.after!==r);else for(;!/[\s>]/.test(n.getContext(0,0)?.after??"");)n=n.moveBy(1);return[{...t[0],sourceSpan:new ea.ParseSourceSpan(t[0].sourceSpan.start,n)}]}return[t[0]]}function K$(e,t){let n=e.filter(i=>!t.some(a=>f1(i,a))).map(v1),{extractedBananaBoxes:r,extractedOutputs:s}=t.reduce(({extractedBananaBoxes:i,extractedOutputs:a},o)=>{let c=e.find(u=>f1(u,o));return{extractedBananaBoxes:i.concat(c?G$(c):[]),extractedOutputs:a.concat(c?[]:E1(o))}},{extractedBananaBoxes:[],extractedOutputs:[]});return{extractedBananaBoxes:r,extractedInputs:n,extractedOutputs:s}}function y1(e){return e instanceof ea.TmplAstTemplate}function f1(e,t){return e.sourceSpan.start===t.sourceSpan.start&&e.sourceSpan.end===t.sourceSpan.end}function m1(e){let t=e.keySpan?.details??e.name;switch(e.orderType){case _e.StructuralDirective:return`*${t}`;case _e.TemplateReferenceVariable:return`#${t}`;case _e.InputBinding:return e.isI18nForAttribute?t:`[${t}]`;case _e.OutputBinding:return`(${t})`;case _e.TwoWayBinding:return`[(${t})]`;default:return t}}function g1(e){if(e.orderType!==_e.StructuralDirective||!e.keySpan)return!1;let t=e.sourceSpan,n=e.keySpan;return t.start.offset===n.start.offset&&t.start.line===n.start.line&&t.start.col===n.start.col&&t.end.offset===n.end.offset&&t.end.line===n.end.line&&t.end.col===n.end.col}function Wv(e){return Yv(e.sourceSpan.start.offset,"start",e)}function zv(e){return Yv(e.sourceSpan.end.offset,"end",e)}function Yv(e,t,n){return!n.fromHtmlParser&&n.orderType===_e.StructuralDirective?typeof e=="number"?t==="start"?e-1:e+(g1(n)?0:1):{start:{line:e.start.line,column:e.start.column-1},end:{line:e.end.line,column:e.end.column+(g1(n)?0:1)}}:e}function Gv(e,t,n){let r=e.startSourceSpan.toString();e.endSourceSpan&&(r+=e.endSourceSpan.toString());let a=new ea.HtmlParser().parse(r,t,{preserveLineEndings:!0}).rootNodes.find(o=>o instanceof ea.Element);return a?a.attrs.map(o=>({...Q$(o,n),fromHtmlParser:!0,sourceSpan:new ea.ParseSourceSpan(e.startSourceSpan.start.moveBy(o.sourceSpan.start.offset),e.startSourceSpan.start.moveBy(o.sourceSpan.end.offset)),keySpan:o.keySpan?new ea.ParseSourceSpan(e.startSourceSpan.start.moveBy(o.keySpan.start.offset),e.startSourceSpan.start.moveBy(o.keySpan.end.offset)):void 0})):[]}function Q$(e,t){if(e.name.startsWith("#"))return{name:e.name.slice(1),orderType:_e.TemplateReferenceVariable};if(e.name.startsWith("*"))return{name:e.name.slice(1),orderType:_e.StructuralDirective};if(e.name.startsWith("[(")&&e.name.endsWith(")]"))return{name:e.name.slice(2,-2),orderType:_e.TwoWayBinding};if(e.name.startsWith("[")&&e.name.endsWith("]"))return{name:e.name.slice(1,-1),orderType:_e.InputBinding};if(e.name.startsWith("(")&&e.name.endsWith(")"))return{name:e.name.slice(1,-1),orderType:_e.OutputBinding};let n=e.name.startsWith("i18n-"),r=_e.AttributeBinding;if(t.length>0&&n){let s=e.name.slice(5);t.some(i=>i.name===s)&&(r=_e.InputBinding)}return{name:e.name,orderType:r,isI18nForAttribute:n}}or.RULE_DOCS_EXTENSION={rationale:"Consistent ordering of template attributes makes templates easier to read and scan visually. When attributes are always ordered the same way across a codebase (for example: structural directives first, then template references, then inputs, then outputs), developers can quickly locate specific attributes without having to scan randomly-ordered attribute lists. This is especially valuable for elements with many attributes. The rule supports both semantic ordering (grouping by attribute type) and alphabetical sorting within groups, allowing teams to choose the organizational pattern that works best for them."}});var T1=C(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.RULE_DOCS_EXTENSION=ps.RULE_NAME=void 0;var J$=ie(),Z$=ne();ps.RULE_NAME="banana-in-box";var e8=/\[(.*)\]/,t8=")]",n8="[(";ps.default=(0,Z$.createESLintRule)({name:ps.RULE_NAME,meta:{type:"suggestion",docs:{description:"Ensures that the two-way data binding syntax is correct",recommended:"recommended"},fixable:"code",schema:[],messages:{bananaInBox:"Invalid binding syntax. Use [(expr)] instead"},defaultOptions:[]},create(e){let t=(0,J$.getTemplateParserServices)(e),n=e.sourceCode;return{BoundEvent({name:r,sourceSpan:s}){let i=r.match(e8);if(!i)return;let a=t.convertNodeSourceSpanToLoc(s);e.report({messageId:"bananaInBox",loc:a,fix:o=>{let[,c]=i,u=`${n8}${c}${t8}`,p=n.getIndexFromLoc(a.start);return o.replaceTextRange([p,p+r.length+2],u)}})}}}});ps.RULE_DOCS_EXTENSION={rationale:`The Angular two-way binding syntax is [(ngModel)]="value", where the parentheses are INSIDE the brackets, resembling a banana in a box. A common typo is ([ngModel])="value" with the parentheses outside, which creates a one-way binding FROM the template TO the component (the opposite of what's intended). This will make the input update when the value changes but won't update the value when the user types. This syntax error is easy to make and can be hard to spot visually, but it breaks two-way data binding. The correct syntax is: [()] for two-way binding, [] for property binding (component to template), and () for event binding (template to component).`}});var Qv=C(Kv=>{"use strict";Object.defineProperty(Kv,"__esModule",{value:!0});Kv.createIgnoredDirectiveMatcher=s8;var r8=/^\/(.+)\/([a-z]*)$/;function s8(e){if(!e||e.length===0)return()=>!1;let t=e.map(r=>{let s=r8.exec(r);if(s){let i=new RegExp(s[1],s[2]);return a=>i.test(a)}return i=>i===r}),n=r=>t.some(s=>s(r));return({inputs:r,attributes:s})=>r.some(({name:i})=>n(i))||s.some(({name:i})=>n(i))}});var A1=C(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.RULE_DOCS_EXTENSION=Nn.INVALID_TYPE_DATA_KEY=Nn.RULE_NAME=void 0;var x1=fe(),i8=ie(),a8=ne(),o8=Qv();Nn.RULE_NAME="button-has-type";var l8={ignoreWithDirectives:[]};Nn.INVALID_TYPE_DATA_KEY="type";var b1=["button","submit","reset"],Jv="type";Nn.default=(0,a8.createESLintRule)({name:Nn.RULE_NAME,meta:{type:"suggestion",docs:{description:"Ensures that a button has a valid type specified"},schema:[{type:"object",properties:{ignoreWithDirectives:{type:"array",items:{type:"string"},uniqueItems:!0,description:"Directive names that, when present on the element, cause it to be ignored. Entries wrapped in slashes, e.g. `/^tui/`, are treated as regular expressions.",default:l8.ignoreWithDirectives}},additionalProperties:!1}],messages:{missingType:"Type for <button> is missing",invalidType:`"{{${Nn.INVALID_TYPE_DATA_KEY}}}" can not be used as a type for <button>`},defaultOptions:[{}]},create(e,[{ignoreWithDirectives:t}]){let n=(0,i8.getTemplateParserServices)(e),r=(0,o8.createIgnoredDirectiveMatcher)(t);return{"Element[name=/^(button)$/i]"(s){c8(s)||r(s)||e.report({loc:n.convertNodeSourceSpanToLoc(s.sourceSpan),messageId:"missingType"});let i=u8(s);i!=null&&e.report({loc:n.convertNodeSourceSpanToLoc(i.sourceSpan),messageId:"invalidType",data:{[Nn.INVALID_TYPE_DATA_KEY]:i.value}})}}}});Nn.RULE_DOCS_EXTENSION={rationale:'Buttons default to `type="submit"` when no type is specified. If placed inside a form, the button triggers a form submission on click. Enforcing the type attribute clarifies the code\'s intent and prevents unintended form submissions.'};function c8({inputs:e,attributes:t}){return[...e,...t].some(({name:n})=>n===Jv)}function u8(e){let t=e.attributes.find(({name:n,value:r})=>n===Jv&&!b1.includes(r));if(t)return{sourceSpan:t.sourceSpan,value:t.value};for(let{name:n,value:r,sourceSpan:s}of e.inputs)if(n===Jv&&r instanceof x1.ASTWithSource&&r.ast instanceof x1.LiteralPrimitive&&typeof r.ast.value=="string"&&!b1.includes(r.ast.value))return{value:r.ast.value,sourceSpan:s};return null}});var In=C(Zv=>{"use strict";Object.defineProperty(Zv,"__esModule",{value:!0});Zv.getDomElements=d8;var p8=Io(),h8=["slot","rb","template","selectedcontent",":svg:svg",":math:math"],C1=null;function d8(){return C1??(C1=new Set([...p8.dom.keys(),...h8]))}});var ho=C(eE=>{"use strict";Object.defineProperty(eE,"__esModule",{value:!0});eE.getNearestNodeFrom=g8;var f8=eS();function m8(e){return e.type===f8.AST_NODE_TYPES.Program}function g8({parent:e},t){for(;e&&!m8(e);){if(t(e))return e;e=e.parent}return null}});var yp=C(tE=>{"use strict";Object.defineProperty(tE,"__esModule",{value:!0});tE.isHiddenFromScreenReader=N1;var v8=fe(),hs=Mr(),E8=ho();function N1(e){if((0,E8.getNearestNodeFrom)(e,T8)||S8(e)||w8(e)||y8(e)||_1(e,"aria-hidden")||_1(e,"hidden"))return!0;if(e.name.toUpperCase()!=="INPUT")return!1;let t=(0,hs.getAttributeValue)(e,"type");return typeof t=="string"&&t.toUpperCase()==="HIDDEN"}function S8(e){let t=(0,hs.getAttributeValue)(e,"style");if(typeof t!="string")return!1;let n=t.replace(/[\s'"]/g,"");return n.includes("display:none")||n.includes("visibility:hidden")}function y8(e){return(0,hs.getAttributeValue)(e,"style.display")==="none"||String((0,hs.getAttributeValue)(e,"style.display.none"))==="true"||(0,hs.getAttributeValue)(e,"style.visibility")==="hidden"||String((0,hs.getAttributeValue)(e,"style.visibility.hidden"))==="true"}function w8(e){let t=(0,hs.getAttributeValue)(e,"ngStyle");return t instanceof Map&&(t.get("display")==="none"||t.get("visibility")==="hidden")}function _1(e,t){let n=(0,hs.getAttributeValue)(e,t);return n===""||String(n)==="true"}function T8(e){return e instanceof v8.TmplAstElement&&N1(e)}});var I1=C(nE=>{"use strict";Object.defineProperty(nE,"__esModule",{value:!0});nE.attributesComparator=b8;var x8=Mr();function b8(e,t){let n=[...t.attributes,...t.inputs];return e.every(r=>n.some(({name:s})=>t.name==="a"&&s==="routerLink"?!0:r.name!==s?!1:!r.value||r.value===(0,x8.getAttributeValue)(t,r.name)))}});var k1=C(sE=>{"use strict";Object.defineProperty(sE,"__esModule",{value:!0});sE.getInteractiveElementAXObjectSchemas=A8;var rE=null;function A8(){if(rE===null){let{AXObjects:e,elementAXObjects:t}=JE(),n=new Set(Array.from(e.keys()).filter(r=>e.get(r).type==="widget"));rE=[...t.entries()].reduce((r,[s,i])=>r.concat([...i].every(a=>n.has(a))?s.name==="summary"?{...s,attributes:[]}:s:[]),[])}return rE}});var P1=C(oE=>{"use strict";Object.defineProperty(oE,"__esModule",{value:!0});oE.getInteractiveElementRoleSchemas=C8;var iE=Io(),aE=null;function C8(){if(aE===null){let e=[...iE.roles.keys()],t=[...iE.elementRoles.entries()],n=new Set(e.filter(r=>{let s=iE.roles.get(r);return s&&!s.abstract&&r!=="progressbar"&&s.superClass.some(i=>i.includes("widget"))}).concat("toolbar"));aE=t.reduce((r,[s,i])=>r.concat([...i].every(a=>n.has(a))?s:[]),[])}return aE}});var D1=C(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});wp.getNonInteractiveElementRoleSchemas=_8;wp.getNonInteractiveRoles=L1;var uE=Io(),lE=null,cE=null;function _8(){return lE===null&&(lE=[...uE.elementRoles.entries()].reduce((t,[n,r])=>t.concat([...r].every(s=>L1().has(s))?n:[]),[])),lE}function L1(){if(cE===null){let e=[...uE.roles.keys()];cE=new Set(e.filter(t=>{let n=uE.roles.get(t);return n&&!n.abstract&&t!=="toolbar"&&!n.superClass.some(r=>r.includes("widget"))}).concat("progressbar"))}return cE}});var pE=C(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});Tp.isInherentlyInteractiveElement=R8;Tp.isNonInteractiveRole=B8;var N8=I1(),I8=Mr(),k8=In(),P8=k1(),L8=P1(),O1=D1();function D8(e){function t({attributes:s,name:i}){return e.name.toLowerCase()===i&&(0,N8.attributesComparator)(s??[],e)}return(0,L8.getInteractiveElementRoleSchemas)().some(t)?!0:(0,O1.getNonInteractiveElementRoleSchemas)().some(t)?!1:(0,P8.getInteractiveElementAXObjectSchemas)().some(t)}function O8(e){return(0,O1.getNonInteractiveRoles)().has((0,I8.getAttributeValue)(e,"role"))}function R8(e){return(0,k8.getDomElements)().has(e.name.toLowerCase())&&D8(e)}function B8(e){return O8(e)}});var dE=C(hE=>{"use strict";Object.defineProperty(hE,"__esModule",{value:!0});hE.isPresentationRole=$8;var M8=Mr(),F8=new Set(["none","presentation"]);function $8(e){let t=(0,M8.getAttributeValue)(e,"role");return typeof t=="string"&&F8.has(t)}});var R1=C(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.RULE_DOCS_EXTENSION=ds.RULE_NAME=void 0;var U8=ie(),V8=ne(),q8=Qv(),H8=In(),j8=yp(),W8=pE(),z8=dE(),G8=Mr();ds.RULE_NAME="click-events-have-key-events";var xp={ignoreWithDirectives:[],requireKeyCode:!1,allowedKeyCodes:[]},X8=["keyup","keydown","keypress"];ds.default=(0,V8.createESLintRule)({name:ds.RULE_NAME,meta:{type:"suggestion",docs:{description:"[Accessibility] Ensures that the click event is accompanied with at least one key event keyup, keydown or keypress."},schema:[{type:"object",properties:{ignoreWithDirectives:{type:"array",items:{type:"string"},uniqueItems:!0,description:"Directive names that, when present on the element, cause it to be ignored. Entries wrapped in slashes, e.g. `/^tui/`, are treated as regular expressions.",default:xp.ignoreWithDirectives},requireKeyCode:{type:"boolean",description:"Require key events to specify a key via a pseudo-event, e.g. `(keydown.enter)`. A bare `(keydown)` will not satisfy the rule.",default:xp.requireKeyCode},allowedKeyCodes:{type:"array",items:{type:"string"},uniqueItems:!0,description:"Only key events whose key (the last segment of the pseudo-event, e.g. `enter` in `(keydown.shift.enter)`) is in this list satisfy the rule. Implies `requireKeyCode`.",default:xp.allowedKeyCodes}},additionalProperties:!1}],messages:{clickEventsHaveKeyEvents:"click must be accompanied by either keyup, keydown or keypress event for accessibility.",clickEventsHaveKeyCode:"click must be accompanied by a keyup, keydown or keypress event that specifies a key (e.g. `(keydown.enter)`) for accessibility.",clickEventsHaveAllowedKeyCode:"click must be accompanied by a keyup, keydown or keypress event for one of the allowed keys ({{allowedKeyCodes}}) for accessibility."},defaultOptions:[xp]},create(e,[{ignoreWithDirectives:t,requireKeyCode:n,allowedKeyCodes:r}]){let s=(r??[]).map(a=>a.toLowerCase()),i=(0,q8.createIgnoredDirectiveMatcher)(t);return{Element(a){if(!(0,H8.getDomElements)().has(a.name.toLowerCase())||i(a)||(0,z8.isPresentationRole)(a)||(0,j8.isHiddenFromScreenReader)(a)||(0,W8.isInherentlyInteractiveElement)(a)||(0,G8.getAttributeValue)(a,"role")==="button")return;let c=!1,u=!1,p=!1;for(let v of a.outputs){if(c=c||v.name==="click",!Y8(v))continue;u=!0;let E=K8(v);s.length>0?p=p||E!==void 0&&s.includes(E):n?p=p||E!==void 0:p=!0}if(!c||p)return;let f=(0,U8.getTemplateParserServices)(e).convertNodeSourceSpanToLoc(a.sourceSpan);u?s.length>0?e.report({loc:f,messageId:"clickEventsHaveAllowedKeyCode",data:{allowedKeyCodes:s.join(", ")}}):e.report({loc:f,messageId:"clickEventsHaveKeyCode"}):e.report({loc:f,messageId:"clickEventsHaveKeyEvents"})}}}});function Y8({name:e}){return X8.some(t=>e===t||e.startsWith(`${t}.`))}function K8({name:e}){let t=e.split(".");if(t.length<2)return;let n=t[t.length-1].toLowerCase();return n.length>0?n:void 0}ds.RULE_DOCS_EXTENSION={rationale:"Elements with click handlers must also be operable via keyboard for users who cannot use a mouse. This includes users with motor disabilities, users of assistive technologies, and keyboard-only users. While native interactive elements like buttons and links are keyboard-accessible by default (activated by Enter or Space keys), non-interactive elements with click handlers (like divs or spans) are not. For such elements, you must add keyboard event handlers (keyup, keydown, or keypress) that perform the same action as the click handler. Alternatively, use a semantic button element which handles this automatically. This is a WCAG Level A requirement for keyboard accessibility."}});var bp=C(fE=>{"use strict";Object.defineProperty(fE,"__esModule",{value:!0});fE.unwrapParenthesizedExpression=J8;var Q8=fe();function J8(e){return e instanceof Q8.ParenthesizedExpression?e.expression:e}});var M1=C(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.RULE_DOCS_EXTENSION=ms.RULE_NAME=void 0;var pn=fe(),Z8=ie(),e5=ne(),mE=bp();ms.RULE_NAME="conditional-complexity";var t5=5;ms.default=(0,e5.createESLintRule)({name:ms.RULE_NAME,meta:{type:"suggestion",docs:{description:"The conditional complexity should not exceed a rational limit"},schema:[{type:"object",properties:{maxComplexity:{minimum:1,type:"number"}},additionalProperties:!1}],messages:{conditionalComplexity:"The conditional complexity {{totalComplexity}} exceeds the defined limit {{maxComplexity}}"},defaultOptions:[{maxComplexity:t5}]},create(e,[{maxComplexity:t}]){(0,Z8.ensureTemplateParser)(e);let n=e.sourceCode;function r(s){let i=s instanceof pn.ASTWithSource?s.ast:s,a=fs(gE(i));if(a<=t)return;let{sourceSpan:{start:o,end:c}}=i;e.report({loc:{start:n.getLocFromIndex(o),end:n.getLocFromIndex(c)},messageId:"conditionalComplexity",data:{maxComplexity:t,totalComplexity:a}})}return{BoundAttribute(s){if(!s.value.source||!s.valueSpan||s.value.ast instanceof pn.Interpolation)return;let i=gE(n5().parseBinding(s.value.source,s.valueSpan,0).ast),a=fs(i);if(a<=t)return;let{sourceSpan:{start:o,end:c}}=s.value;e.report({loc:{start:n.getLocFromIndex(o),end:n.getLocFromIndex(c)},messageId:"conditionalComplexity",data:{maxComplexity:t,totalComplexity:a}})},Interpolation({expressions:s}){for(let i of s){let a=fs(i);if(a<=t)continue;let{sourceSpan:{start:o,end:c}}=i;e.report({loc:{start:n.getLocFromIndex(o),end:n.getLocFromIndex(c)},messageId:"conditionalComplexity",data:{maxComplexity:t,totalComplexity:a}})}},IfBlockBranch({expression:s}){s&&r(s)},SwitchBlock({expression:s}){r(s)},LetDeclaration({value:s}){r(s)}}}});function gE(e){let t=(0,mE.unwrapParenthesizedExpression)(e);return t instanceof pn.BindingPipe?t.exp:t}var B1=null;function n5(){return B1||(B1=new pn.Parser(new pn.Lexer))}function fs(e){let t=gE(e);if(!(t instanceof pn.Binary||t instanceof pn.Conditional))return 0;let n=1;if(t instanceof pn.Binary){let r=(0,mE.unwrapParenthesizedExpression)(t.left),s=(0,mE.unwrapParenthesizedExpression)(t.right);(r instanceof pn.Binary||r instanceof pn.Conditional)&&(n+=fs(t.left)),(s instanceof pn.Binary||s instanceof pn.Conditional)&&(n+=fs(t.right))}return t instanceof pn.Conditional&&(n+=fs(t.condition)+fs(t.trueExp)+fs(t.falseExp)),n}ms.RULE_DOCS_EXTENSION={rationale:`Complex conditional expressions in templates (like multiple '&&' or '||' operators, nested ternaries, or long chains of conditions) make templates hard to read, test, and maintain. Template logic should be minimal and easy to understand at a glance. Complex conditionals are better moved to the component class as computed properties or methods, where they can be properly tested, documented, and reasoned about. For example, instead of '*ngIf="user && user.role === 'admin' && user.isActive && !user.isLocked"', create a component property like 'get canAccessAdmin() { return this.user?.role === 'admin' && this.user?.isActive && !this.user?.isLocked; }' and use '*ngIf="canAccessAdmin"'. This makes templates more declarative and components easier to unit test.`}});var F1=C(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.RULE_DOCS_EXTENSION=gs.RULE_NAME=void 0;var fo=fe(),r5=ie(),s5=ne();gs.RULE_NAME="cyclomatic-complexity";var Ap={maxComplexity:5,variant:"classic"};gs.default=(0,s5.createESLintRule)({name:gs.RULE_NAME,meta:{type:"suggestion",docs:{description:"Checks cyclomatic complexity against a specified limit. It is a quantitative measure of the number of linearly independent paths through a program's source code"},schema:[{type:"object",properties:{maxComplexity:{type:"number",minimum:1},variant:{type:"string",enum:["classic","modified"]}},additionalProperties:!1}],messages:{cyclomaticComplexity:"The cyclomatic complexity {{totalComplexity}} exceeds the defined limit {{maxComplexity}}"},defaultOptions:[{maxComplexity:Ap.maxComplexity,variant:Ap.variant}]},create(e,[{maxComplexity:t=Ap.maxComplexity,variant:n=Ap.variant}]){let r=0,s=(0,r5.getTemplateParserServices)(e);function i(h){if(r+=1,r<=t)return;let f=s.convertNodeSourceSpanToLoc(h.sourceSpan);e.report({messageId:"cyclomaticComplexity",loc:f,data:{maxComplexity:t,totalComplexity:r}})}let a=n==="modified";function o(h){let f=a?/^(ngForOf|ngIf|ngSwitch)$/:/^(ngForOf|ngIf|ngSwitchCase)$/;return h instanceof fo.TmplAstBoundAttribute&&f.test(h.name)}function c(h){return!a&&h instanceof fo.TmplAstTextAttribute&&h.name==="ngSwitchDefault"}function u(h){return h instanceof fo.TmplAstIfBlock||h instanceof fo.TmplAstForLoopBlock}function p(h){return a?h instanceof fo.TmplAstSwitchBlock:h instanceof fo.TmplAstSwitchBlockCase}return{"*":h=>{(o(h)||c(h)||u(h)||p(h))&&i(h)}}}});gs.RULE_DOCS_EXTENSION={rationale:"Cyclomatic complexity measures the number of independent paths through code by counting control flow statements (if, for, while, etc.). High complexity in templates indicates too much logic in the template, making it hard to read, test, and maintain. Templates with high complexity often contain nested *ngIf/*ngFor combinations, complex ternary expressions, or multiple structural directives. This logic should be moved to the component class or into separate components. Component classes can be unit tested, but template logic is harder to test and reason about. Breaking complex templates into smaller, focused components also improves reusability and follows the single responsibility principle."}});var U1=C(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.RULE_DOCS_EXTENSION=vs.RULE_NAME=void 0;var i5=ie(),a5=ne(),o5=yp();vs.RULE_NAME="elements-content";var $1=["aria-label","innerHtml","innerHTML","innerText","outerHTML","textContent","title"],l5={allowList:$1};vs.default=(0,a5.createESLintRule)({name:vs.RULE_NAME,meta:{type:"suggestion",docs:{description:"[Accessibility] Ensures that the heading, anchor and button elements have content in them"},schema:[{additionalProperties:!1,properties:{allowList:{items:{type:"string"},type:"array",uniqueItems:!0}},type:"object"}],messages:{elementsContent:"<{{element}}> should have content"},defaultOptions:[l5]},create(e,[{allowList:t}]){let n=(0,i5.getTemplateParserServices)(e);return{"Element[name=/^(a|button|h1|h2|h3|h4|h5|h6)$/i][children.length=0]"(r){if((0,o5.isHiddenFromScreenReader)(r))return;let{attributes:s,inputs:i,name:a,sourceSpan:o}=r,c=new Set([...$1,...t??[]]);if([...s,...i].map(({name:h})=>h).some(h=>c.has(h)))return;let p=n.convertNodeSourceSpanToLoc(o);e.report({loc:p,messageId:"elementsContent",data:{element:a}})}}}});vs.RULE_DOCS_EXTENSION={rationale:"Interactive elements like buttons, anchors (links), and headings must have accessible text content for screen readers. For example, '<button><mat-icon>delete</mat-icon></button>' is not accessible because screen readers will just announce 'button' without explaining what it does. Solutions include adding visible text, using aria-label, or including visually-hidden text with CSS. This ensures all users, including those using screen readers, know the purpose of each interactive element. This is a fundamental WCAG requirement for web accessibility."}});var vE=C(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.isLiteralPrimitive=V1;ic.isStringLiteralPrimitive=u5;ic.getLiteralPrimitiveStringValue=p5;var c5=fe();function V1(e){return!!e&&(e.type==="LiteralPrimitive"||e instanceof c5.LiteralPrimitive)}function u5(e){return V1(e)&&typeof e.value=="string"}function p5(e,t){return typeof e.value=="string"?`${e.value.replaceAll(t,`\\${t}`)}`:String(e.value)}});var X1=C(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.RULE_DOCS_EXTENSION=ta.RULE_NAME=void 0;var z1=fe(),h5=ie(),d5=ne(),f5=ho(),G1=vE();ta.RULE_NAME="eqeqeq";var q1={allowNullOrUndefined:!1};ta.default=(0,d5.createESLintRule)({name:"eqeqeq",meta:{type:"suggestion",docs:{description:"Requires `===` and `!==` in place of `==` and `!=`",recommended:"recommended"},hasSuggestions:!0,fixable:"code",schema:[{type:"object",properties:{allowNullOrUndefined:{type:"boolean",default:q1.allowNullOrUndefined}},additionalProperties:!1}],messages:{eqeqeq:"Expected `{{expectedOperation}}` but received `{{actualOperation}}`",suggestStrictEquality:"Replace `{{actualOperation}}` with `{{expectedOperation}}`"},defaultOptions:[q1]},create(e,[{allowNullOrUndefined:t}]){(0,h5.ensureTemplateParser)(e);let n=e.sourceCode;return{"Binary[operation=/^(==|!=)$/]"(r){let{left:s,operation:i,right:a,sourceSpan:{start:o,end:c}}=r;if(t&&(W1(s)||W1(a)))return;let u={actualOperation:i,expectedOperation:`${i}=`};e.report({loc:{start:n.getLocFromIndex(o),end:n.getLocFromIndex(c)},messageId:"eqeqeq",data:u,...j1(s)||j1(a)?{fix:p=>H1({node:r,right:a,end:c,sourceCode:n,fixer:p})}:{suggest:[{messageId:"suggestStrictEquality",fix:p=>H1({node:r,right:a,end:c,sourceCode:n,fixer:p}),data:u}]}})}}}});function m5({span:{start:e,end:t}}){return t-e}var H1=({node:e,right:t,end:n,sourceCode:r,fixer:s})=>{let i=(0,f5.getNearestNodeFrom)(e,v5);if(!i?.source)return null;let{source:a,ast:o}=i,c=0;for(;!E5(o)&&g5(a[c]);)c++;let u=n-c-m5(t)-1,p=0;for(;r.text[u-p]!=="=";)p++;return s.insertTextAfterRange([u-p,u-p],"=")};function g5(e){return e===`
87
+ `||e===" "}function v5(e){return e instanceof z1.ASTWithSource}function E5(e){return e instanceof z1.Interpolation}function S5(e){return!Number.isNaN(Number.parseFloat(String(e)))&&Number.isFinite(Number(e))}function j1(e){return(0,G1.isStringLiteralPrimitive)(e)&&!S5(e.value)}function W1(e){return(0,G1.isLiteralPrimitive)(e)&&(e.value===null||e.value===void 0)}ta.RULE_DOCS_EXTENSION={rationale:'The == and != operators perform type coercion before comparison, which can lead to unexpected and confusing results. For example, "0" == 0 is true, [] == false is true, and null == undefined is true. These implicit conversions make code harder to understand and can hide bugs. The strict equality operators === and !== compare both value and type without coercion, making comparisons predictable and explicit. This is a widely accepted JavaScript/TypeScript best practice that Angular templates should follow for consistency with TypeScript code. The rule can optionally allow == and != when comparing to null or undefined, as this is a common pattern for checking if a value exists.'}});var tP=C(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.RULE_DOCS_EXTENSION=Ss.RULE_NAME=void 0;var wE=fe(),y5=ie(),w5=ne(),T5=ho(),Cp=/[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7C6\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB67\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,x5=new RegExp(`[^${Cp}]`),EE=new Set(["autocomplete","charset","class","color","colspan","dir","fill","for","formArrayName","formControlName","formGroupName","height","href","id","lang","list","name","ngClass","ngProjectAs","role","routerLink","routerLinkActive","src","stroke","stroke-width","style","svgIcon","tabindex","target","type","value","viewBox","width","xmlns"]);Ss.RULE_NAME="i18n";var Es={allowMarkupInContent:!0,checkAttributes:!0,checkId:!0,checkDuplicateId:!0,checkText:!0,ignoreAttributes:[...EE]},Q1="https://angular.dev/guide/i18n",_p=`${Q1}-common-prepare`,b5=`${_p}#mark-element-attributes-for-translations`,A5=`${_p}#icu-expressions`,C5=`${_p}#mark-text-in-component-template`,Y1=`${_p}#i18n-metadata-for-translation`,SE=`${Q1}-optional-manage-marked-text`,_5=`${SE}#define-unique-custom-ids`;Ss.default=(0,w5.createESLintRule)({name:Ss.RULE_NAME,meta:{type:"suggestion",docs:{description:"Ensures following best practices for i18n. Checks for missing i18n attributes on elements and attributes containing texts. Can also check for texts without i18n attribute, elements that do not use custom ID (@@) feature and duplicate custom IDs"},fixable:"code",hasSuggestions:!0,schema:[{type:"object",properties:{allowMarkupInContent:{type:"boolean",default:Es.allowMarkupInContent},boundTextAllowedPattern:{type:"string"},checkAttributes:{type:"boolean",default:Es.checkAttributes},checkDuplicateId:{type:"boolean",default:Es.checkDuplicateId},checkId:{type:"boolean",default:Es.checkId},checkText:{type:"boolean",default:Es.checkText},ignoreAttributes:{type:"array",items:{type:"string"},default:[...EE]},ignoreTags:{type:"array",items:{type:"string"}},requireDescription:{type:"boolean",default:Es.requireDescription},requireMeaning:{type:"boolean",default:Es.requireMeaning}},additionalProperties:!1}],messages:{i18nAttribute:`Attribute "{{attributeName}}" has no corresponding i18n attribute. See more at ${b5}`,i18nAttributeOnIcuOrText:`Each element containing text node should have an i18n attribute. See more at ${A5} and ${C5}`,i18nCustomIdOnAttribute:`Missing custom ID on attribute "i18n-{{attributeName}}". See more at ${SE}`,i18nCustomIdOnElement:`Missing custom ID on element. See more at ${SE}`,i18nDuplicateCustomId:`Duplicate custom ID "@@{{customId}}". See more at ${_5}`,suggestAddI18nAttribute:"Add the `i18n` attribute",i18nMissingDescription:`Missing i18n description on element. See more at ${Y1}`,i18nMissingMeaning:`Missing i18n meaning on element. See more at ${Y1}`,i18nMarkupInContent:"Avoid HTML markup in an element with an i18n attribute."},defaultOptions:[Es]},create(e,[{allowMarkupInContent:t,boundTextAllowedPattern:n,checkAttributes:r,checkId:s,checkDuplicateId:i,checkText:a,ignoreAttributes:o,ignoreTags:c,requireDescription:u,requireMeaning:p}]){let h=(0,y5.getTemplateParserServices)(e),f=e.sourceCode,v=n?new RegExp(n):x5,E=new Set([...EE,...o??[]]),T=new Set(c),y=new Map;function N(ge){let Le=ge.parent;return Le&&!mo(Le)&&!go(Le)?N(Le):Le}function V(ge){let{i18n:Le,sourceSpan:Q}=ge,ut=N(ge);if(K1(T,ge))return;let Jt=h.convertNodeSourceSpanToLoc(Q);if(J1(ut)||Z1(ut)){if(t)return;e.report({messageId:"i18nMarkupInContent",loc:Jt});return}let dn=M5(Le);if(s)if(!dn)e.report({messageId:"i18nCustomIdOnElement",loc:Jt});else{let Co=y.get(dn)??[];y.set(dn,[...Co,Q])}u&&!Le.description&&e.report({messageId:"i18nMissingDescription",loc:Jt}),p&&!Le.meaning&&e.report({messageId:"i18nMissingMeaning",loc:Jt})}function q({i18n:ge,keySpan:Le,name:Q,parent:{name:ut},sourceSpan:Jt,value:dn}){if(T.has(ut))return;let Co=h.convertNodeSourceSpanToLoc(Le??Jt);if(ge){let{customId:_o,description:Vp}=ge;if(s)if(yE(_o))e.report({messageId:"i18nCustomIdOnAttribute",loc:Co,data:{attributeName:Q}});else{let cc=y.get(_o)??[];y.set(_o,[...cc,Jt])}u&&yE(Vp)&&e.report({messageId:"i18nMissingDescription",loc:Co,data:{attributeName:Q}})}ge||!r||O5(E,ut,Q,dn)||e.report({messageId:"i18nAttribute",loc:Co,data:{attributeName:Q},fix:_o=>{let{end:Vp}=h.convertNodeSourceSpanToLoc(Jt),cc=f.getIndexFromLoc(Vp);return _o.insertTextAfterRange([cc,cc],` i18n-${Q}`)}})}function le(ge){let{sourceSpan:Le}=ge,Q=N(ge);if(P5(ge)&&R5(v,ge)||(mo(Q)||go(Q))&&(Q.i18n||K1(T,Q)))return;let ut=h.convertNodeSourceSpanToLoc(Le),Jt=dn=>k5(f,h,dn,ut,Q);e.report({messageId:"i18nAttributeOnIcuOrText",loc:ut,...Q?.children?.filter(dn=>mo(dn)||go(dn)).length?{suggest:[{messageId:"suggestAddI18nAttribute",fix:Jt}]}:{fix:Jt}})}function Ht(){if(i)for(let[ge,Le]of y){if(Le.length<=1)break;for(let Q of Le){let ut=h.convertNodeSourceSpanToLoc(Q);e.report({messageId:"i18nDuplicateCustomId",loc:ut,data:{customId:ge}})}}y.clear()}return{...(!t||s||u||p)&&{[`:matches(Element, Template[tagName="ng-template"])${t?"[i18n]":""}`](ge){V(ge)}},...(r||s||u||p)&&{[`Element > TextAttribute[value=${Cp}]`](ge){q(ge)}},...a&&{[`BoundText, Icu, Text[value=${Cp}]`](ge){le(ge)}},"Program:exit"(){Ht()}}}});function N5(e,t,{start:n},r){let i=e.getIndexFromLoc(n)+r.length+1;return t.insertTextAfterRange([i,i]," i18n")}function I5(e,t,{start:n,end:r}){let s=e.getIndexFromLoc(n),i=e.getIndexFromLoc(r);return[t.insertTextBeforeRange([s,s],"<ng-container i18n>"),t.insertTextAfterRange([i,i],"</ng-container>")]}function k5(e,t,n,r,s){if(!mo(s)&&!go(s))return I5(e,n,r);if((0,T5.getNearestNodeFrom)(s,B5))return[];let i=eP(s);if(!i)return[];let a=t.convertNodeSourceSpanToLoc(s.sourceSpan);return N5(e,n,a,i)}function P5(e){return e instanceof wE.TmplAstBoundText}function mo(e){return e instanceof wE.TmplAstElement}function J1(e){return!!(mo(e)&&e.i18n)}function L5(e){return e==="false"||e==="true"}function yE(e){return e?e.trim().length===0:!0}function D5(e){let t=Number.parseFloat(e);return!Number.isNaN(t)&&Number.isFinite(t)}function O5(e,t,n,r){return e.has(n)||e.has(`${t}[${n}]`)||yE(r)||L5(r)||D5(r)}function R5(e,{value:{ast:{strings:t}}}){let n=t.join("").trim();return!Cp.test(n)||e.test(n)}function go(e){return e instanceof wE.TmplAstTemplate&&e.tagName==="ng-template"}function Z1(e){return!!(go(e)&&e.i18n)}function B5(e){return J1(e)||Z1(e)}function eP(e){return mo(e)?e.name:go(e)?e.tagName:null}function K1(e,t){let n=eP(t);return!!(n&&e.has(n))}function M5(e){return e?.customId}Ss.RULE_DOCS_EXTENSION={rationale:"Internationalization (i18n) attributes and directives mark text content for translation, making your application accessible to users who speak different languages. Angular's i18n system extracts marked strings into translation files that can be translated and then compiled back into the application for each locale. Forgetting to mark user-facing text for translation means those strings will remain in the original language even in translated builds, creating a poor user experience. This rule can enforce that certain elements or text content must have i18n markers, ensuring your application is properly prepared for internationalization. Even if you don't currently support multiple languages, adding i18n markers early makes future translation easier."}});var nP=C(TE=>{"use strict";Object.defineProperty(TE,"__esModule",{value:!0});TE.isContentEditable=U5;var F5=rc(),$5=Mr();function U5(e){let n=[...e.attributes,...e.inputs].find(s=>(0,F5.getOriginalAttributeName)(s)==="contenteditable"),r=(0,$5.getAttributeValue)(e,"contenteditable");return!!n&&(r===""||String(r).toLowerCase()==="true")}});var sP=C(xE=>{"use strict";Object.defineProperty(xE,"__esModule",{value:!0});xE.isDisabledElement=q5;var V5=rc(),rP=Mr();function q5(e){let n=[...e.attributes,...e.inputs].find(a=>(0,V5.getOriginalAttributeName)(a)==="disabled"),r=(0,rP.getAttributeValue)(e,"disabled");return!!(n&&r!==void 0||String((0,rP.getAttributeValue)(e,"aria-disabled")).toLowerCase()==="true")}});var aP=C(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.RULE_DOCS_EXTENSION=ys.RULE_NAME=void 0;var H5=ie(),j5=ne(),W5=In(),z5=yp(),iP=pE(),G5=nP(),X5=sP(),Y5=dE();ys.RULE_NAME="interactive-supports-focus";var K5=["form"];ys.default=(0,j5.createESLintRule)({name:ys.RULE_NAME,meta:{type:"suggestion",docs:{description:"[Accessibility] Ensures that elements with interactive handlers like `(click)` are focusable."},schema:[{additionalProperties:!1,properties:{allowList:{items:{type:"string"},type:"array",uniqueItems:!0}},type:"object"}],messages:{interactiveSupportsFocus:"Elements with interaction handlers must be focusable."},defaultOptions:[{allowList:K5}]},create(e,[{allowList:t}]){return{Element(n){let r=n.name.toLowerCase();if(!(0,W5.getDomElements)().has(r))return;let s=n.outputs.find(a=>a.name==="click"||a.name.startsWith("keyup")||a.name.startsWith("keydown")||a.name.startsWith("keypress"));if(Q5(r,t)||!s||(0,X5.isDisabledElement)(n)||(0,z5.isHiddenFromScreenReader)(n)||(0,Y5.isPresentationRole)(n))return;let i=[...n.attributes,...n.inputs].find(a=>a.name==="tabindex");if(s&&!i&&!(0,iP.isInherentlyInteractiveElement)(n)&&!(0,iP.isNonInteractiveRole)(n)&&!(0,G5.isContentEditable)(n)){let o=(0,H5.getTemplateParserServices)(e).convertNodeSourceSpanToLoc(n.sourceSpan);e.report({loc:o,messageId:"interactiveSupportsFocus"})}}}}});function Q5(e,t){return t&&t.length>0&&t.indexOf(e)>-1}ys.RULE_DOCS_EXTENSION={rationale:'Interactive elements with click handlers or other event listeners must be keyboard-accessible to users who cannot use a mouse. Elements that trigger actions must be focusable (either naturally like buttons and links, or via tabindex) so keyboard users can navigate to them and activate them with Enter or Space. Without this, keyboard-only users, screen reader users, and users with motor disabilities cannot interact with the application. Native interactive elements (button, a, input, select, textarea) are automatically focusable and keyboard-accessible. For custom interactive elements, you must add tabindex="0" to make them focusable and add appropriate keyboard event handlers. This is a WCAG Level A requirement for keyboard accessibility.'}});var oP=C(bE=>{"use strict";Object.defineProperty(bE,"__esModule",{value:!0});bE.isChildNodeOf=Z5;var J5=fe();function Z5(e,t){function n({children:r}){return r.some(s=>s instanceof J5.TmplAstElement&&(s.name===t||n(s)))}return n(e)}});var uP=C(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.RULE_DOCS_EXTENSION=ws.RULE_NAME=void 0;var eU=ie(),tU=ne(),nU=oP();ws.RULE_NAME="label-has-associated-control";var lP=["input","meter","output","progress","select","textarea"],cP=[{inputs:["for","htmlFor"],selector:"label"}],rU={controlComponents:lP,labelComponents:cP,checkIds:!1};ws.default=(0,tU.createESLintRule)({name:ws.RULE_NAME,meta:{type:"suggestion",docs:{description:"[Accessibility] Ensures that a label element/component is associated with a form element"},schema:[{additionalProperties:!1,properties:{checkIds:{type:"boolean"},controlComponents:{items:{type:"string"},type:"array",uniqueItems:!0},labelComponents:{items:{additionalProperties:!1,properties:{inputs:{items:{type:"string"},type:"array",uniqueItems:!0},selector:{type:"string"}},required:["selector"],type:"object"},type:"array",uniqueItems:!0}},type:"object"}],messages:{labelHasAssociatedControl:"A label component must be associated with a form element"},defaultOptions:[rU]},create(e,[{checkIds:t,controlComponents:n,labelComponents:r}]){let s=(0,eU.getTemplateParserServices)(e),i=new Set([...lP,...n??[]]),a=new Map(cP.map(p=>[p.selector,p]));r&&r.forEach(p=>a.set(p.selector,p));let o=Array.from(a.values()),c=[],u=[];return{Element(p){let h=p.name.toLowerCase();i.has(h)&&c.push(p),o.find(({selector:v})=>v===h)&&u.push(p)},onCodePathEnd(){for(let p of u){let h=o.find(({selector:y})=>y===p.name.toLowerCase());if(!h)continue;let f=new Map([...p.attributes,...p.inputs].map(({name:y,value:N})=>[y,N])),v=(h.inputs?.map(y=>f.get(y))??[]).filter(aU),E=v.length>0;if(E&&t){let y=v[0];E=iU(c,y)}if(E||sU(i,p))continue;let T=s.convertNodeSourceSpanToLoc(p.sourceSpan);e.report({loc:T,messageId:"labelHasAssociatedControl"})}c=[],u=[]}}}});function sU(e,t){return!![...e].some(n=>(0,nU.isChildNodeOf)(t,n))}function iU(e,t){return!![...e].some(n=>!![...n.attributes,...n.inputs].find(r=>r.name==="id"&&r.value===t))}function aU(e){return e!=null}ws.RULE_DOCS_EXTENSION={rationale:"Form labels must be associated with their form controls for accessibility and usability. This association can be achieved by: (1) wrapping the input inside the label, (2) using the 'for' attribute with a matching input 'id', or (3) for Angular Material, ensuring proper accessibility attributes are set. This association provides multiple benefits: screen readers can announce what each form field is for, clicking the label focuses the input (increasing the clickable area), and it creates a clear connection between labels and fields for all users. This is a WCAG Level A requirement."}});var Ts=C(AE=>{"use strict";Object.defineProperty(AE,"__esModule",{value:!0});AE.toPattern=oU;function oU(e){return RegExp(`^(${e.join("|")})$`)}});var hP=C(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.RULE_DOCS_EXTENSION=xs.RULE_NAME=void 0;var lU=ie(),cU=ne(),uU=In(),pU=Ts();xs.RULE_NAME="mouse-events-have-key-events";var pP="https://www.w3.org/WAI/WCAG21/Understanding/keyboard",vo;(function(e){e.Blur="blur",e.Focus="focus"})(vo||(vo={}));var Eo;(function(e){e.MouseOut="mouseout",e.MouseOver="mouseover"})(Eo||(Eo={}));xs.default=(0,cU.createESLintRule)({name:xs.RULE_NAME,meta:{type:"suggestion",docs:{description:`[Accessibility] Ensures that the mouse events \`${Eo.MouseOut}\` and \`${Eo.MouseOver}\` are accompanied by \`${vo.Focus}\` and \`${vo.Blur}\` events respectively. Coding for the keyboard is important for users with physical disabilities who cannot use a mouse, AT compatibility, and screenreader users. See more at ${pP}`},schema:[],messages:{mouseEventsHaveKeyEvents:`\`{{mouseEvent}}\` must be accompanied by \`{{keyEvent}}\` for accessibility (${pP})`},defaultOptions:[]},create(e){let t=(0,lU.getTemplateParserServices)(e),n=(0,pU.toPattern)([...(0,uU.getDomElements)()]);return[[vo.Blur,Eo.MouseOut],[vo.Focus,Eo.MouseOver]].reduce((s,[i,a])=>({...s,[`Element[name=${n}]:has(BoundEvent[name='${a}']):not(:has(BoundEvent[name='${i}']))`]({sourceSpan:o}){let c=t.convertNodeSourceSpanToLoc(o);e.report({loc:c,messageId:"mouseEventsHaveKeyEvents",data:{keyEvent:i,mouseEvent:a}})}}),{})}});xs.RULE_DOCS_EXTENSION={rationale:"Elements that show or hide content on mouse hover (using mouseover and mouseout events) must also be accessible to keyboard users. When mouseover is used, there must be an equivalent focus event; when mouseout is used, there must be an equivalent blur event. This ensures that tooltips, dropdown menus, and other hover-triggered content can be accessed by users who navigate with keyboards instead of mice. For example, a tooltip that appears on mouseover should also appear when the element receives keyboard focus. This is essential for users with motor disabilities who cannot use a mouse, as well as screen reader users. This is a WCAG Level A requirement for keyboard accessibility."}});var dP=C(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.RULE_DOCS_EXTENSION=bs.RULE_NAME=void 0;var ac=fe(),hU=ie(),dU=ne();bs.RULE_NAME="no-any";var oc="$any";bs.default=(0,dU.createESLintRule)({name:bs.RULE_NAME,meta:{type:"suggestion",docs:{description:`The use of "${oc}" nullifies the compile-time benefits of Angular's type system`},hasSuggestions:!0,schema:[],messages:{noAny:`Avoid using "${oc}" in templates`,suggestRemoveAny:`Remove ${oc}`},defaultOptions:[]},create(e){(0,hU.ensureTemplateParser)(e);let t=e.sourceCode,n=i=>!(!(i.receiver instanceof ac.PropertyRead)||i.receiver.name!==oc||!(i.receiver.receiver instanceof ac.ThisReceiver||i.receiver.receiver instanceof ac.ImplicitReceiver)),r=i=>{let{start:a,end:o}=i.sourceSpan,c=i.receiver.nameSpan;e.report({messageId:"noAny",loc:{start:t.getLocFromIndex(a),end:t.getLocFromIndex(o)},suggest:[{messageId:"suggestRemoveAny",fix:u=>[u.removeRange([c.start,c.end+1]),u.removeRange([o-1,o])]}]})},s=i=>{i instanceof ac.Call&&n(i)?r(i):i instanceof ac.KeyedRead&&s(i.receiver)};return{[`Call[receiver.name="${oc}"]`](i){n(i)&&r(i)}}}});bs.RULE_DOCS_EXTENSION={rationale:"The $any() type cast function in Angular templates disables TypeScript's type checking for an expression, removing all the benefits of static typing. This means typos, incorrect property access, and invalid method calls won't be caught until runtime. While $any() can be a quick fix for type errors, it's better to properly type your component properties or fix the underlying type issue. Overusing $any() makes templates less safe and can hide real bugs. If you're using $any() frequently, it often indicates that your component's types need improvement. Use $any() sparingly and only when you have a specific reason why TypeScript's type checking isn't applicable."}});var fP=C(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.RULE_DOCS_EXTENSION=As.RULE_NAME=void 0;var fU=ie(),mU=ne(),gU=In(),vU=Ts();As.RULE_NAME="no-autofocus";As.default=(0,mU.createESLintRule)({name:As.RULE_NAME,meta:{type:"suggestion",docs:{description:"[Accessibility] Ensures that the `autofocus` attribute is not used"},fixable:"code",schema:[],messages:{noAutofocus:"The `autofocus` attribute should not be used, as it reduces usability and accessibility for users"},defaultOptions:[]},create(e){let t=(0,fU.getTemplateParserServices)(e);return{[`Element[name=${(0,vU.toPattern)([...(0,gU.getDomElements)()])}] > :matches(BoundAttribute, TextAttribute)[name="autofocus"]`](r){if(EU(r))return;let s=t.convertNodeSourceSpanToLoc(r.sourceSpan);e.report({loc:s,messageId:"noAutofocus",fix:i=>i.removeRange([r.sourceSpan.start.offset-1,r.sourceSpan.end.offset])})}}}});function EU(e){let t=e.parent;for(;t;){if(t.name?.toLowerCase()==="dialog")return!0;t=t.parent}return!1}As.RULE_DOCS_EXTENSION={rationale:`The autofocus attribute automatically moves focus to an element when the page loads, which can be disorienting and problematic for accessibility. For screen reader users, autofocus disrupts their normal navigation flow and can cause them to miss important page content. For users with motor disabilities, unexpected focus changes can be confusing. For users with cognitive disabilities, the auto-focused element might grab attention before they've had a chance to understand the page structure. Additionally, autofocus can interfere with browser features like scroll restoration. If focus management is needed, implement it through Angular lifecycle hooks with proper context awareness rather than using the autofocus attribute.
88
+
89
+ However, there is an important exception: Using autofocus on elements within <dialog> elements (or on the dialog itself) is actually recommended for accessibility. According to MDN, the autofocus attribute should be added to the element the user is expected to interact with immediately upon opening a modal dialog. If no other element involves more immediate interaction, it is recommended to add autofocus to the close button inside the dialog, or the dialog itself. This rule automatically allows autofocus when used within dialog elements.`}});var _E=C(CE=>{"use strict";Object.defineProperty(CE,"__esModule",{value:!0});CE.isBoundEvent=yU;var SU=fe();function yU(e){return e instanceof SU.TmplAstBoundEvent}});var IE=C(NE=>{"use strict";Object.defineProperty(NE,"__esModule",{value:!0});NE.isASTWithName=wU;function wU(e){return!!e.name}});var mP=C(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.RULE_DOCS_EXTENSION=Cs.RULE_NAME=void 0;var TU=ie(),xU=ne(),bU=ho(),AU=_E(),kE=IE();Cs.RULE_NAME="no-call-expression";Cs.default=(0,xU.createESLintRule)({name:Cs.RULE_NAME,meta:{type:"suggestion",docs:{description:"Disallows calling expressions in templates, except for output handlers"},schema:[{additionalProperties:!1,properties:{allowList:{items:{type:"string"},type:"array",uniqueItems:!0},allowPrefix:{type:"string"},allowSuffix:{type:"string"}},type:"object"}],messages:{noCallExpression:"Avoid calling expressions in templates"},defaultOptions:[{allowList:[],allowPrefix:void 0,allowSuffix:void 0}]},create(e,[{allowList:t,allowPrefix:n,allowSuffix:r}]){(0,TU.ensureTemplateParser)(e);let s=e.sourceCode;return{'Call[receiver.name!="$any"]'(i){if(!!(0,bU.getNearestNodeFrom)(i,AU.isBoundEvent)||CU(i.receiver,t)||n&&(0,kE.isASTWithName)(i.receiver)&&i.receiver.name.startsWith(n)||r&&(0,kE.isASTWithName)(i.receiver)&&i.receiver.name.endsWith(r))return;let{sourceSpan:{start:o,end:c}}=i;e.report({loc:{start:s.getLocFromIndex(o),end:s.getLocFromIndex(c)},messageId:"noCallExpression"})}}}});function CU(e,t){return t&&t.length>0&&(0,kE.isASTWithName)(e)&&t.indexOf(e.name)>-1}Cs.RULE_DOCS_EXTENSION={rationale:'Calling functions or methods in Angular templates (like {{ formatDate(date) }} or *ngIf="isValid()") causes those functions to execute on every change detection cycle. In a typical application, change detection runs very frequently\u2014on every user interaction, HTTP request, or timer event. If a function is called in a template that renders a list of 100 items, it might execute 100 times per change detection cycle, potentially thousands of times per second. This can cause severe performance problems. Instead, use component properties, pipes (which cache results), or computed signals (in modern Angular). For example, instead of {{ formatDate(date) }}, use {{ date | date }} or create a computed signal or getter that calculates the value once per change detection cycle.'}});var EP=C(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.RULE_DOCS_EXTENSION=_s.RULE_NAME=void 0;var _U=fe(),NU=ie(),IU=ne(),kU=ho(),PU=_E(),vP=IE(),gP=["toLowerCase","toUpperCase","toLocaleLowerCase","toLocaleUpperCase"];_s.RULE_NAME="prefer-built-in-pipes";_s.default=(0,IU.createESLintRule)({name:_s.RULE_NAME,meta:{type:"suggestion",docs:{description:"Encourages the use of Angular built-in pipes (e.g. lowercase, uppercase, titlecase) instead of certain JavaScript methods in Angular templates."},schema:[{additionalProperties:!1,properties:{disallowList:{items:{type:"string"},type:"array",uniqueItems:!0,description:"Additional method names to disallow (defaults include common case/title casing helpers)"},allowInOutputHandlers:{type:"boolean",description:"Whether to allow these method calls inside output event handlers"}},type:"object"}],messages:{preferBuiltInPipes:'Avoid using method "{{ methodName }}" in templates. Prefer the Angular built-in pipes instead (e.g. lowercase, uppercase, titlecase).'},defaultOptions:[{disallowList:[...gP],allowInOutputHandlers:!0}]},create(e,[{disallowList:t,allowInOutputHandlers:n}]){(0,NU.ensureTemplateParser)(e);let r=e.sourceCode,s=t||[...gP];return{Call(i){if(!LU(i.receiver,s)||n&&!!(0,kU.getNearestNodeFrom)(i,PU.isBoundEvent))return;let a=DU(i.receiver),{sourceSpan:{start:o,end:c}}=i.receiver;e.report({loc:{start:r.getLocFromIndex(o),end:r.getLocFromIndex(c)},messageId:"preferBuiltInPipes",data:{methodName:a}})}}}});function LU(e,t){return(0,vP.isASTWithName)(e)&&e instanceof _U.PropertyRead&&t.includes(e.name)}function DU(e){return(0,vP.isASTWithName)(e)?e.name:"unknown"}_s.RULE_DOCS_EXTENSION={rationale:"Angular provides built-in pipes for common string transformations (lowercase, uppercase, titlecase) that are more efficient than calling JavaScript methods directly in templates. Pipes are pure by default, meaning Angular only recalculates them when inputs change, whereas method calls in templates run on every change detection cycle. For example, {{ name.toLowerCase() }} runs toLowerCase() repeatedly during change detection, while {{ name | lowercase }} only transforms the string when name changes. Using pipes also makes templates more declarative and idiomatic. The rule can be configured to allow method calls in event handlers like (click) where purity is not a concern. By default, the rule flags toLowerCase, toUpperCase, toLocaleLowerCase, and toLocaleUpperCase, but can be extended to other methods."}});var SP=C(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.RULE_DOCS_EXTENSION=Ns.RULE_NAME=void 0;var OU=ie(),RU=ne();Ns.RULE_NAME="no-distracting-elements";Ns.default=(0,RU.createESLintRule)({name:Ns.RULE_NAME,meta:{type:"suggestion",docs:{description:"[Accessibility] Enforces that no distracting elements are used"},fixable:"code",schema:[],messages:{noDistractingElements:"Do not use <{{element}}> elements as they can create visual accessibility issues and are deprecated"},defaultOptions:[]},create(e){let t=(0,OU.getTemplateParserServices)(e);return{"Element[name=/^(blink|marquee)$/i]"({name:n,sourceSpan:r}){let s=t.convertNodeSourceSpanToLoc(r);e.report({loc:s,messageId:"noDistractingElements",data:{element:n},fix:i=>i.removeRange([r.start.offset,r.end.offset])})}}}});Ns.RULE_DOCS_EXTENSION={rationale:"Elements like <marquee> and <blink> create distracting motion that can cause problems for users with attention disorders, vestibular disorders, or seizure disorders. Moving text is harder to read for everyone, including users with dyslexia or cognitive disabilities. These elements are also deprecated in HTML5 and not well-supported across browsers. WCAG guidelines require that moving, blinking, or scrolling content can be paused, stopped, or hidden by users. Instead of these elements, use modern CSS animations with appropriate controls, or simply use static content that doesn't distract from the main page content."}});var yP=C(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.RULE_DOCS_EXTENSION=Is.RULE_NAME=void 0;var BU=ie(),MU=ne(),yo=rc();Is.RULE_NAME="no-duplicate-attributes";var Np={allowTwoWayDataBinding:!0,allowStylePrecedenceDuplicates:!1,ignore:[]};Is.default=(0,MU.createESLintRule)({name:Is.RULE_NAME,meta:{type:"problem",docs:{description:"Ensures that there are no duplicate input properties or output event listeners"},hasSuggestions:!0,schema:[{type:"object",properties:{allowTwoWayDataBinding:{type:"boolean",default:Np.allowTwoWayDataBinding,description:"Whether or not two-way data binding is allowed as an exception to the rule."},allowStylePrecedenceDuplicates:{type:"boolean",default:Np.allowStylePrecedenceDuplicates,description:"Whether or not Angular style precedence is allowed as an exception to the rule. See https://angular.dev/guide/templates/class-binding#styling-precedence"},ignore:{type:"array",items:{type:"string"},uniqueItems:!0,default:Np.ignore,description:"Input or output properties for which duplicate presence is allowed as an exception to the rule."}},additionalProperties:!1}],messages:{noDuplicateAttributes:"Duplicate attribute `{{attributeName}}`",suggestRemoveAttribute:"Remove attribute `{{attributeName}}`"},defaultOptions:[Np]},create(e,[{allowTwoWayDataBinding:t,allowStylePrecedenceDuplicates:n,ignore:r}]){let s=(0,BU.getTemplateParserServices)(e);return{Element({inputs:i,outputs:a,attributes:o}){let c=["class","style"],u=So([...i,...o]);if(n){let E=i.filter(T=>c.includes((0,yo.getOriginalAttributeName)(T)));if(E?.length>0){let T=o.filter(le=>c.includes((0,yo.getOriginalAttributeName)(le))),y=i.filter(le=>!E.includes(le)),N=o.filter(le=>!T.includes(le)),V=[...So(E),...So(T)],q=[...So(y),...So(N)];u=[...V,...q]}}let p=t?a.filter(E=>!i.some(T=>T.sourceSpan.start===E.sourceSpan.start&&T.sourceSpan.end===E.sourceSpan.end)):a,h=So(p),f=[...u,...h];(r&&r.length>0?f.filter(E=>!r.includes((0,yo.getOriginalAttributeName)(E))):f).forEach(E=>{let T=s.convertNodeSourceSpanToLoc(E.sourceSpan),y={attributeName:(0,yo.getOriginalAttributeName)(E)};e.report({loc:T,messageId:"noDuplicateAttributes",data:y,suggest:[{messageId:"suggestRemoveAttribute",fix:N=>N.removeRange([T.start.column,T.end.column+1]),data:y}]})})}}}});function So(e){return e.filter(t=>e.some(n=>n!==t&&(0,yo.getOriginalAttributeName)(n)===(0,yo.getOriginalAttributeName)(t)))}Is.RULE_DOCS_EXTENSION={rationale:"Duplicate input properties or output event listeners on the same element create ambiguous behavior and are almost always a mistake. When the same input or output appears multiple times, Angular uses the last occurrence, silently ignoring earlier ones. This can lead to confusing bugs where it appears that a binding is set but it has no effect. Duplicate attributes can occur during refactoring or when combining multiple sources of bindings. The rule can be configured to allow certain patterns like two-way data binding (which creates both an input and output with related names) and Angular style precedence (where multiple style bindings are intentionally combined). Catching duplicates early prevents hard-to-debug issues where bindings mysteriously do not work."}});var wP=C(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.RULE_DOCS_EXTENSION=ks.RULE_NAME=void 0;var FU=ie(),$U=ne();ks.RULE_NAME="no-empty-control-flow";ks.default=(0,$U.createESLintRule)({name:ks.RULE_NAME,meta:{type:"suggestion",docs:{description:"Ensures that control flow blocks are not empty. Empty control flow blocks usually occur due to refactoring that wasn't completed. They can cause confusion when reading code."},schema:[],messages:{noEmptyControlFlow:"Unexpected empty control flow block."},defaultOptions:[]},create(e){let t=(0,FU.getTemplateParserServices)(e);return{"ForLoopBlockEmpty,IfBlockBranch"(i){(i.children.length===0||n(i.startSourceSpan.end,i.endSourceSpan?.start))&&r(i)},ForLoopBlock(i){(i.children.length===0||n(i.startSourceSpan.end,i.mainBlockSpan.end.moveBy(-1)))&&r(i)},SwitchBlock(i){if(i.groups.length===0){r(i);return}for(let a of i.groups)(a.children.length===0||n(a.startSourceSpan.end,a.endSourceSpan?.start))&&a.cases.length>0&&s(a.cases[0])}};function n(i,a){return!!a&&e.sourceCode.text.slice(i.offset,a.offset).trim()===""}function r(i){e.report({messageId:"noEmptyControlFlow",loc:t.convertNodeSourceSpanToLoc(i.nameSpan)})}function s(i){e.report({messageId:"noEmptyControlFlow",loc:t.convertNodeSourceSpanToLoc(i.nameSpan)})}}});ks.RULE_DOCS_EXTENSION={rationale:"Empty control flow blocks (@if, @else, @for, @switch, @case, @empty) usually indicate incomplete refactoring or code that was commented out or deleted but left the block structure behind. These empty blocks add no functionality but create visual noise and confusion when reading templates. Developers may wonder whether the empty block is intentional or a bug. Removing empty blocks keeps templates clean and makes it clear that there is no conditional logic or looping in that location. This rule helps maintain template quality and catches likely mistakes during development."}});var TP=C(PE=>{"use strict";Object.defineProperty(PE,"__esModule",{value:!0});PE.isConstantExpression=hn;var qt=fe();function hn(e){return e instanceof qt.ASTWithSource?hn(e.ast):e instanceof qt.LiteralPrimitive||e instanceof qt.EmptyExpr?!0:e instanceof qt.LiteralMap?e.values.every(hn):e instanceof qt.LiteralArray||e instanceof qt.Interpolation||e instanceof qt.TemplateLiteral?e.expressions.every(hn):e instanceof qt.ParenthesizedExpression?hn(e.expression):e instanceof qt.Unary?hn(e.expr):e instanceof qt.Binary?hn(e.left)&&hn(e.right):e instanceof qt.Conditional?hn(e.condition)&&hn(e.trueExp)&&hn(e.falseExp):e instanceof qt.PrefixNot||e instanceof qt.TypeofExpression||e instanceof qt.VoidExpression||e instanceof qt.NonNullAssert?hn(e.expression):!1}});var xP=C(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.RULE_DOCS_EXTENSION=Ps.RULE_NAME=void 0;var LE=fe(),UU=ie(),VU=ne(),qU=TP(),DE={allowNgStyle:!1,allowBindToStyle:!1};Ps.RULE_NAME="no-inline-styles";Ps.default=(0,VU.createESLintRule)({name:Ps.RULE_NAME,meta:{type:"suggestion",docs:{description:"Disallows the use of inline styles in HTML templates"},schema:[{type:"object",properties:{allowNgStyle:{oneOf:[{type:"boolean"},{type:"string",enum:["dynamic"]}],description:"Whether `[ngStyle]` bindings are allowed. `true` allows them unconditionally. `\"dynamic\"` allows them only when the bound value is not a constant (e.g. `{ color: textColor }` is allowed, but `{ color: 'red' }` is reported because it could be a class).",default:DE.allowNgStyle},allowBindToStyle:{oneOf:[{type:"boolean"},{type:"string",enum:["dynamic"]}],description:'Whether `[style]`, `[style.property]` and `style="{{ }}"` bindings are allowed. `true` allows them unconditionally. `"dynamic"` allows them only when the bound value is not a constant (e.g. `[style.width.px]="column.width"` is allowed, but `[style.color]="\'red\'"` is reported because it could be a class).',default:DE.allowBindToStyle}},additionalProperties:!1}],messages:{noInlineStyles:"<{{element}}/> element should not have inline styles via style attribute. Please use classes instead."},defaultOptions:[DE]},create(e,[{allowNgStyle:t,allowBindToStyle:n}]){let r=(0,UU.getTemplateParserServices)(e);return{Element(s){let i=s.inputs.some(o=>{let{__originalType:c,type:u}=o;switch(c??u){case LE.BindingType.Attribute:return o.name==="style";case LE.BindingType.Style:return!OE(n,o.value);case LE.BindingType.Property:return o.name==="style"?!OE(n,o.value):o.name==="ngStyle"?!OE(t,o.value):!1;default:return!1}});if(s.attributes.some(({name:o})=>o==="style")||i){let o=r.convertElementSourceSpanToLoc(e,s);e.report({loc:o,messageId:"noInlineStyles",data:{element:s.name}})}}}}});function OE(e,t){return e==="dynamic"?!(0,qU.isConstantExpression)(t):e===!0}Ps.RULE_DOCS_EXTENSION={rationale:'Inline styles in templates (style attribute, ngStyle directive, [style] bindings, or [style.property] bindings) make it difficult to maintain consistent styling across an application and can violate Content Security Policy (CSP) restrictions. Styles should be defined in component stylesheets or CSS classes where they can be managed centrally, reused, cached by browsers, and easily modified. Inline styles also mix presentation concerns with template structure, making templates harder to read. Using CSS classes with [class] or [ngClass] bindings provides the same dynamic styling capabilities while keeping styles organized and maintainable. This rule can be configured to allow ngStyle or style bindings if needed for specific use cases. Setting an option to "dynamic" allows a binding only when its value cannot be known ahead of time (for example `[style.width.px]="column.width"`), while still reporting bindings whose value is a constant (for example `[style.color]="\'red\'"`), since those could be expressed as a class instead.'}});var bP=C(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.RULE_DOCS_EXTENSION=Ls.RULE_NAME=void 0;var HU=ne();Ls.RULE_NAME="no-interpolation-in-attributes";var jU='When `true`, only attribute values that are entirely interpolations will fail, whereas values with interpolations that form part of larger strings will be allowed.\n\nFor example, when set to `true` the following code will not fail for the `alt` attribute but will still fail for the `src` attribute:\n\n```html\n<img alt="Poke user {{ username }}" src="{{ pokeSrc }}" />\n```\n';Ls.default=(0,HU.createESLintRule)({name:Ls.RULE_NAME,meta:{type:"suggestion",docs:{description:"Ensures that property-binding is used instead of interpolation in attributes."},schema:[{type:"object",properties:{allowSubstringInterpolation:{type:"boolean",description:jU}},additionalProperties:!1}],messages:{noInterpolationInAttributes:'Use property binding [attribute]="value" instead of interpolation {{ value }} for an attribute.'},fixable:"code",defaultOptions:[{allowSubstringInterpolation:!1}]},create(e,[{allowSubstringInterpolation:t}]){let n=e.sourceCode;return{"BoundAttribute Interpolation"(r){let s=!r.strings.some(c=>c!=="");if(t&&!s)return;let i=r.parent?.parent;if(!i)return;let{sourceSpan:{start:a,end:o}}=r;e.report({loc:{start:n.getLocFromIndex(a),end:n.getLocFromIndex(o)},messageId:"noInterpolationInAttributes",fix:s?c=>{let u=i.keySpan.start.offset,p=i.keySpan.end.offset,h=n.text.slice(u,p).trim(),f=i.valueSpan.start.offset+2,v=i.valueSpan.end.offset-2,E=n.text.slice(f,v).trim(),T=i.sourceSpan.start.offset,y=i.sourceSpan.end.offset,N=`[${h}]="${E}"`;return c.replaceTextRange([T,y],N)}:null})}}}});Ls.RULE_DOCS_EXTENSION={rationale:'Property binding syntax [attribute]="value" is more efficient and clearer than interpolation {{ value }} for setting attribute values in templates. Interpolation converts the expression to a string and then Angular parses it back, whereas property binding directly passes the value without string conversion. This makes property binding faster and avoids potential issues with type coercion. Property binding also makes it immediately obvious that the attribute value is dynamic rather than static. For substring interpolation (like alt="Image of {{ name }}"), the performance difference is minimal and interpolation may be more readable, so the rule can optionally allow these cases while still catching full interpolation patterns that should use property binding.'}});var AP=C(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.RULE_DOCS_EXTENSION=Ds.RULE_NAME=void 0;var WU=fe(),zU=ie(),GU=ne();Ds.RULE_NAME="no-negated-async";Ds.default=(0,GU.createESLintRule)({name:Ds.RULE_NAME,meta:{type:"suggestion",docs:{description:"Ensures that async pipe results, as well as values used with the async pipe, are not negated",recommended:"recommended"},hasSuggestions:!0,schema:[],messages:{noNegatedAsync:"Async pipe results should not be negated. Use `(observable | async) === false`, `(observable | async) === null`, or `(observable | async) === undefined` to check its value instead",noNegatedValueForAsync:"Values used with the async pipe should not be negated.",suggestFalseComparison:"Compare with `false`",suggestNullComparison:"Compare with `null`",suggestUndefinedComparison:"Compare with `undefined`",suggestUsingNonNegatedValue:"Use non-negated value"},defaultOptions:[]},create(e){(0,zU.ensureTemplateParser)(e);let t=e.sourceCode;function n(r){let{start:s,end:i}=r.sourceSpan;e.report({messageId:"noNegatedAsync",loc:{start:t.getLocFromIndex(s),end:t.getLocFromIndex(i)},suggest:XU().map(({messageId:a,textToInsert:o})=>({messageId:a,fix:c=>[c.removeRange([s,s+1]),c.insertTextAfterRange([i,i],o)]}))})}return{'BindingPipe[name="async"]'(r){if(r.exp instanceof WU.PrefixNot){let s=r.sourceSpan.start,i=r.sourceSpan.end;e.report({messageId:"noNegatedValueForAsync",loc:{start:t.getLocFromIndex(s),end:t.getLocFromIndex(i)},suggest:[{messageId:"suggestUsingNonNegatedValue",fix:a=>a.removeRange([s,s+1])}]})}},':not(PrefixNot) > PrefixNot > BindingPipe[name="async"]'({parent:r}){n(r)},':not(PrefixNot) > PrefixNot > ParenthesizedExpression > BindingPipe[name="async"]'({parent:{parent:r}}){n(r)}}}});Ds.RULE_DOCS_EXTENSION={rationale:`Angular's async pipes emit null initially, prior to the observable emitting any values, or the promise resolving. This can cause negations, like *ngIf="!(myConditional | async)" to thrash the layout and cause expensive side-effects like firing off XHR requests for a component which should not be shown.`};function XU(){return[{messageId:"suggestFalseComparison",textToInsert:" === false"},{messageId:"suggestNullComparison",textToInsert:" === null"},{messageId:"suggestUndefinedComparison",textToInsert:" === undefined"}]}});var _P=C(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.RULE_DOCS_EXTENSION=Os.RULE_NAME=void 0;var CP=fe(),YU=ie(),KU=ne();Os.RULE_NAME="no-nested-tags";Os.default=(0,KU.createESLintRule)({name:Os.RULE_NAME,meta:{type:"problem",docs:{description:"Denies nesting of `<p>` and `<a>` tags."},schema:[],messages:{noNestedTags:'<{{tag}}> elements must not be nested! This breaks angular incremental hydration as all browsers will convert "<{{tag}}>1<{{tag}}>2</{{tag}}>3</{{tag}}>" into "<{{tag}}>1</{{tag}}><{{tag}}>2</{{tag}}>3", creating a DOM mismatch between SSR and Angular'},defaultOptions:[]},create(e){let t=(0,YU.getTemplateParserServices)(e);return{"Element[name=/^(p|a)$/i]"(n){if(QU(n)){let s=t.convertElementSourceSpanToLoc(e,n);e.report({loc:s,messageId:"noNestedTags",data:{tag:n.name}})}}}}});function QU(e){let t=e.parent;for(;t;){if(JU(t))return!1;if(t instanceof CP.TmplAstElement&&t.name.toLowerCase()===e.name.toLowerCase())return!0;t=t.parent}return!1}function JU(e){return e instanceof CP.TmplAstTemplate&&typeof e.tagName=="string"&&/^(:svg:)?ng-template$/i.test(e.tagName)}Os.RULE_DOCS_EXTENSION={rationale:"Nesting `<p>` tags inside other `<p>` tags, or `<a>` tags inside other `<a>` tags, is invalid HTML and causes serious issues with Angular hydration. All browsers automatically close the outer tag when they encounter the inner tag, transforming `<p>1<p>2</p>3</p>` into `<p>1</p><p>2</p>3` in the DOM. This creates a mismatch between the server-rendered HTML and what Angular expects during hydration, breaking incremental hydration and potentially causing runtime errors. The browser's automatic correction of invalid HTML happens before Angular processes the template, so Angular cannot fix or work around it. Always use different elements (like `<p>` and `<span>`, or nested `<div>` tags) or restructure your template to avoid nesting these specific tags. Explicit `<ng-template>` elements are an exception because they are not rendered in-place; tags inside them are not nested in the parent element's DOM."}});var NP=C(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.RULE_DOCS_EXTENSION=Rs.RULE_NAME=void 0;var ZU=ie(),eV=ne();Rs.RULE_NAME="no-non-null-assertion";Rs.default=(0,eV.createESLintRule)({name:Rs.RULE_NAME,meta:{type:"suggestion",docs:{description:"Disallows the non-null assertion operator (!) in templates"},schema:[],messages:{noNonNullAssertion:"Avoid using the non-null assertion operator (!) in templates. This bypasses type safety and can lead to runtime errors."},defaultOptions:[]},create(e){(0,ZU.ensureTemplateParser)(e);let{sourceCode:t}=e;return{NonNullAssert(n){let{start:r,end:s}=n.sourceSpan;e.report({messageId:"noNonNullAssertion",loc:{start:t.getLocFromIndex(r),end:t.getLocFromIndex(s)}})}}}});Rs.RULE_DOCS_EXTENSION={rationale:"Equivalent of @typescript-eslint/no-non-null-assertion rule for Angular templates. TypeScript's `!` non-null assertion operator asserts to the type system that an expression is non-nullable, as in not `null` or `undefined`. Using assertions to tell the type system new information is often a sign that code is not fully type-safe. It's generally better to structure program logic so that TypeScript understands when values may be nullable."}});var IP=C(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.RULE_DOCS_EXTENSION=Bs.RULE_NAME=void 0;var tV=ie(),nV=ne(),rV=In(),sV=Ts();Bs.RULE_NAME="no-outerhtml";Bs.default=(0,nV.createESLintRule)({name:Bs.RULE_NAME,meta:{type:"problem",docs:{description:"Disallows using `outerHTML` on elements, which breaks change detection and detaches the element from the Angular view"},schema:[],messages:{noOuterHtml:'Do not use `outerHTML`. Binding to `[outerHTML]` throws on update because setting `outerHTML` replaces the host element itself, so Angular loses its reference to the node ("This element has no parent node"); a static `outerHTML` attribute is not a real DOM attribute and has no effect. Use `[innerHTML]` (being mindful of sanitization) or restructure the template instead.'},defaultOptions:[]},create(e){let t=(0,tV.getTemplateParserServices)(e);return{[`Element[name=${(0,sV.toPattern)([...(0,rV.getDomElements)()])}] > :matches(BoundAttribute, TextAttribute)`](r){r.name.toLowerCase()==="outerhtml"&&e.report({loc:t.convertNodeSourceSpanToLoc(r.keySpan??r.sourceSpan),messageId:"noOuterHtml"})}}}});Bs.RULE_DOCS_EXTENSION={rationale:"Setting an element's `outerHTML` replaces the element itself in the DOM, including the very node Angular is bound to. Angular keeps an internal reference to that node in order to apply future updates during change detection. Once the node has been swapped out, it no longer has a parent in the document, so the next attempt to write to `outerHTML` fails with `NoModificationAllowedError: Failed to set the 'outerHTML' property on 'Element': This element has no parent node`. The initial render appears to work, which makes the problem easy to miss until the bound value changes at runtime or in a test that calls `detectChanges()`.\n\nBecause this is inherent to how `outerHTML` works \u2014 not a fixable framework bug (see angular/angular#41131 and angular/angular#41576, both closed) \u2014 there is effectively no correct way to use `outerHTML` in an Angular template. A static `outerHTML=\"...\"` attribute is not a real DOM attribute either and simply has no effect, so this rule disallows every form of `outerHTML` on native elements (`[outerHTML]`, `bind-outerHTML`, `[attr.outerHTML]` and the static attribute). Bindings to `outerHTML` on components are left alone, since there they are ordinary inputs rather than the DOM property.\n\nIn almost all cases the intent is to render dynamic markup inside the element, which is exactly what `[innerHTML]` does safely (it only replaces the element's content and preserves the host node). Note that `[innerHTML]` runs Angular's built-in sanitization; when rendering untrusted content, sanitization concerns still apply. If the goal was actually to replace the element (tag, attributes and all), the component should be restructured \u2014 for example by conditionally rendering different elements with `@if`/`@switch` \u2014 rather than reaching for `outerHTML`."}});var kP=C(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.RULE_DOCS_EXTENSION=Ms.RULE_NAME=void 0;var iV=ie(),aV=ne(),oV=In(),lV=Ts();Ms.RULE_NAME="no-positive-tabindex";Ms.default=(0,aV.createESLintRule)({name:Ms.RULE_NAME,meta:{type:"suggestion",docs:{description:"Ensures that the `tabindex` attribute is not positive"},hasSuggestions:!0,schema:[],messages:{noPositiveTabindex:"The `tabindex` attribute should not be positive",suggestNonNegativeTabindex:'Use `tabindex="{{tabindex}}"`'},defaultOptions:[]},create(e){let t=(0,iV.getTemplateParserServices)(e),n=[...(0,oV.getDomElements)()],r=n.map(i=>i.toUpperCase());return{[`Element[name=${(0,lV.toPattern)([...n,...r])}] > BoundAttribute[name="tabindex"][value.ast.value>0], TextAttribute[name="tabindex"][value>0]`]({valueSpan:i}){let a=t.convertNodeSourceSpanToLoc(i);e.report({loc:a,messageId:"noPositiveTabindex",suggest:["-1","0"].map(o=>({messageId:"suggestNonNegativeTabindex",fix:c=>c.replaceTextRange([i.start.offset,i.end.offset],o),data:{tabindex:o}}))})}}}});Ms.RULE_DOCS_EXTENSION={rationale:'Using positive tabindex values (like tabindex="1" or tabindex="5") disrupts the natural tab order and creates a confusing navigation experience. The natural tab order follows the DOM structure, which users expect. Positive tabindex values create a complex focus order where lower numbers are focused first, then tabindex="0" elements, then remaining interactive elements. This makes the tab order unpredictable and hard to maintain. Users with motor disabilities who rely on keyboard navigation will struggle with illogical focus orders. Instead, use tabindex="0" to add elements to the natural tab order, tabindex="-1" to remove them, and structure your DOM in a logical order. This is a WCAG Level A requirement.'}});var LP=C(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.RULE_DOCS_EXTENSION=Fs.RULE_NAME=void 0;var lc=fe(),cV=ie(),uV=ne();Fs.RULE_NAME="prefer-ngsrc";Fs.default=(0,uV.createESLintRule)({name:Fs.RULE_NAME,meta:{type:"suggestion",docs:{description:"Ensures ngSrc is used instead of src for img elements"},hasSuggestions:!0,schema:[],messages:{missingAttribute:"The attribute [ngSrc] should be used for img elements instead of [src].",invalidDoubleSource:"Only [ngSrc] should exist on an img element. Delete the [src] attribute.",suggestReplaceWithNgSrc:"Replace [src] with [ngSrc]",suggestRemoveSrc:"Remove the [src] attribute"},defaultOptions:[]},create(e){let t=(0,cV.getTemplateParserServices)(e),n=e.sourceCode;function r(i){let a=t.convertNodeSourceSpanToLoc(i.sourceSpan);e.report({loc:a,messageId:"missingAttribute",suggest:[{messageId:"suggestReplaceWithNgSrc",fix:o=>{let c=n.getText().slice(i.sourceSpan.start.offset,i.sourceSpan.end.offset),u;return c.startsWith("[attr.src]")?u=c.replace(/^\[attr\.src]/,"[ngSrc]"):c.startsWith("[src]")?u=c.replace(/^\[src]/,"[ngSrc]"):u=c.replace(/^src/,"ngSrc"),o.replaceTextRange([i.sourceSpan.start.offset,i.sourceSpan.end.offset],u)}}]})}function s(i){let a=t.convertNodeSourceSpanToLoc(i.sourceSpan);e.report({loc:a,messageId:"invalidDoubleSource",suggest:[{messageId:"suggestRemoveSrc",fix:o=>{let c=n.getText(),u=i.sourceSpan.start.offset;for(;u>0&&/\s/.test(c[u-1]);)u--;return o.removeRange([u,i.sourceSpan.end.offset])}}]})}return{"Element[name=/^img$/i]"(i){let a=pV(i),o=hV(i);!o||!a&&dV(o)||(a?s(o):r(o))}}}});function pV({inputs:e,attributes:t}){return[...e,...t].find(({name:n})=>n==="ngSrc")}function hV({inputs:e,attributes:t}){return[...e,...t].find(({name:n})=>n==="src")}function dV(e){return e instanceof lc.TmplAstTextAttribute&&e.value.trim().startsWith("data:")||e.value instanceof lc.ASTWithSource&&PP(e.value.ast)?!0:e.value instanceof lc.ASTWithSource&&e.value.ast instanceof lc.Binary&&e.value.ast.operation==="+"&&PP(e.value.ast.left)}function PP(e){return e instanceof lc.LiteralPrimitive&&typeof e.value=="string"&&e.value.trim().startsWith("data:")}Fs.RULE_DOCS_EXTENSION={rationale:"The ngSrc directive (part of Angular's Image directive introduced in v15) provides significant performance and user experience benefits over the standard src attribute for images. Using ngSrc enables automatic lazy loading, responsive images with srcset generation, optimized loading priority hints, prevention of layout shift by enforcing width and height attributes, and automatic image optimization when using an image loader. These features dramatically improve Largest Contentful Paint (LCP) and other Core Web Vitals metrics. The directive also provides warnings for common mistakes like missing width/height. The rule allows data: URIs with src since those are inline base64 images that don't benefit from ngSrc optimizations. For best performance and user experience, all external images should use ngSrc."}});var Ip=C(RE=>{"use strict";Object.defineProperty(RE,"__esModule",{value:!0});RE.areEquivalentASTs=et;var ae=fe();function et(e,t){return e instanceof ae.ImplicitReceiver||e instanceof ae.ThisReceiver?t instanceof ae.ImplicitReceiver||t instanceof ae.ThisReceiver:e.constructor!==t.constructor?!1:e instanceof ae.PropertyRead&&t instanceof ae.PropertyRead||e instanceof ae.SafePropertyRead&&t instanceof ae.SafePropertyRead?e.name===t.name&&et(e.receiver,t.receiver):e instanceof ae.Call&&t instanceof ae.Call||e instanceof ae.SafeCall&&t instanceof ae.SafeCall?na(e.args,t.args)&&et(e.receiver,t.receiver):e instanceof ae.KeyedRead&&t instanceof ae.KeyedRead||e instanceof ae.SafeKeyedRead&&t instanceof ae.SafeKeyedRead?et(e.key,t.key)&&et(e.receiver,t.receiver):e instanceof ae.NonNullAssert&&t instanceof ae.NonNullAssert||e instanceof ae.PrefixNot&&t instanceof ae.PrefixNot?et(e.expression,t.expression):e instanceof ae.Unary&&t instanceof ae.Unary?e.operator===t.operator&&et(e.expr,t.expr):e instanceof ae.Binary&&t instanceof ae.Binary?e.operation===t.operation&&et(e.left,t.left)&&et(e.right,t.right):e instanceof ae.Conditional&&t instanceof ae.Conditional?et(e.condition,t.condition)&&et(e.trueExp,t.trueExp)&&et(e.falseExp,t.falseExp):e instanceof ae.LiteralPrimitive&&t instanceof ae.LiteralPrimitive?e.value===t.value:e instanceof ae.LiteralArray&&t instanceof ae.LiteralArray?na(e.expressions,t.expressions):e instanceof ae.LiteralMap&&t instanceof ae.LiteralMap?e.keys.length===t.keys.length&&e.keys.every((n,r)=>{let s=t.keys[r];return n.kind==="spread"&&s.kind==="spread"?!0:n.kind!==s.kind?!1:n.kind==="property"&&s.kind==="property"&&n.key===s.key})&&na(e.values,t.values):e instanceof ae.BindingPipe&&t instanceof ae.BindingPipe?e.name===t.name&&et(e.exp,t.exp)&&na(e.args,t.args):e instanceof ae.Interpolation&&t instanceof ae.Interpolation?e.strings.length===t.strings.length&&e.strings.every((n,r)=>n===t.strings[r])&&na(e.expressions,t.expressions):e instanceof ae.ASTWithSource&&t instanceof ae.ASTWithSource?et(e.ast,t.ast):e instanceof ae.Chain&&t instanceof ae.Chain?na(e.expressions,t.expressions):e instanceof ae.TypeofExpression&&t instanceof ae.TypeofExpression?et(e.expression,t.expression):!1}function na(e,t){return e.length===t.length&&e.every((n,r)=>et(n,t[r]))}});var BE=C(kp=>{"use strict";Object.defineProperty(kp,"__esModule",{value:!0});kp.isLengthRead=fV;kp.isZero=mV;var DP=fe();function fV(e){return e instanceof DP.PropertyRead&&e.name==="length"}function mV(e){return e instanceof DP.LiteralPrimitive&&e.value===0}});var ME=C(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});Pp.toRange=gV;Pp.toZeroLengthRange=vV;function gV(e){return[e.start.offset,e.end.offset]}function vV(e){return[e,e]}});var MP=C(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.RULE_DOCS_EXTENSION=Us.RULE_NAME=void 0;var ra=fe(),EV=ie(),SV=ne(),OP=Ip(),$s=BE(),FE=ME();Us.RULE_NAME="prefer-at-else";var yV=new Map([["","!"],["!",""],["<",">="],[">","<="],["<=",">"],[">=","<"],["==","!="],["!=","=="],["===","!=="],["!==","==="]]);Us.default=(0,SV.createESLintRule)({name:Us.RULE_NAME,meta:{type:"suggestion",fixable:"code",docs:{description:"Prefer using `@else` instead of a second `@if` with the opposite condition to reduce code and make it easier to read."},schema:[],messages:{preferAtElse:"Prefer using `@else` instead of a second `@if` clause."},defaultOptions:[]},create(e){let t=(0,EV.getTemplateParserServices)(e),n=[void 0];function r(i){let a=0,o=!1;for(let c of i)c instanceof ra.TmplAstText&&e.sourceCode.text.slice(c.sourceSpan.start.offset,c.sourceSpan.end.offset).trim()===""||(a++,o||=c instanceof ra.TmplAstElement||c instanceof ra.TmplAstTemplate);return a>1&&o}function s(i,a){let o=i.node.branches[0],c=a.node.branches[0],u=a.node.branches.at(1),p=i.node.branches.at(1);return c.expressionAlias||p&&r([...p.children,...c.children])||u&&r([...o.children,...u.children])?null:function*(f){if(!p)yield f.replaceTextRange([c.sourceSpan.start.offset,c.startSourceSpan.end.offset],"@else {");else{let v=e.sourceCode.text.slice(c.startSourceSpan.end.offset,c.sourceSpan.end.offset-1);yield f.insertTextAfterRange((0,FE.toZeroLengthRange)(p.sourceSpan.end.offset-1),v),yield f.removeRange((0,FE.toRange)(c.sourceSpan))}if(u&&c.endSourceSpan){let v=e.sourceCode.text.slice(u.startSourceSpan.end.offset,u.sourceSpan.end.offset-1);yield f.insertTextAfterRange((0,FE.toZeroLengthRange)(o.sourceSpan.end.offset-1),v),yield f.removeRange([c.endSourceSpan.end.offset,u.sourceSpan.end.offset])}}}return{"*"(i){let a=wV(i);if(a){let o=n.at(-1);o&&TV(o,a)&&e.report({loc:t.convertNodeSourceSpanToLoc(a.node.nameSpan),messageId:"preferAtElse",fix:s(o,a)})}n[n.length-1]=a,n.push(void 0)},"*:exit"(){n.pop()}}}});function wV(e){if(e instanceof ra.TmplAstIfBlock&&e.branches.length>=1&&e.branches[0].expression instanceof ra.ASTWithSource&&e.branches.length<=2&&(e.branches.length==1||!e.branches[1].expression)){let t=e.branches[0].expression.ast;return t instanceof ra.Binary?{node:e,lhs:t.left,rhs:t.right,operator:t.operation}:t instanceof ra.PrefixNot?{node:e,lhs:t.expression,rhs:void 0,operator:"!"}:{node:e,lhs:t,rhs:void 0,operator:""}}}function TV(e,t){return!!(yV.get(e.operator)===t.operator&&(0,OP.areEquivalentASTs)(e.lhs,t.lhs)&&(e.rhs===void 0&&t.rhs===void 0||e.rhs&&t.rhs&&(0,OP.areEquivalentASTs)(e.rhs,t.rhs))||RP(e)&&BP(t)||BP(e)&&RP(t))}function RP(e){return!!(e.rhs!==void 0&&(e.operator==="=="||e.operator==="===")&&((0,$s.isLengthRead)(e.lhs)&&(0,$s.isZero)(e.rhs)||(0,$s.isZero)(e.lhs)&&(0,$s.isLengthRead)(e.rhs)))}function BP(e){return!!(e.rhs!==void 0&&((0,$s.isLengthRead)(e.lhs)&&e.operator===">"&&(0,$s.isZero)(e.rhs)||(0,$s.isZero)(e.lhs)&&e.operator==="<"&&(0,$s.isLengthRead)(e.rhs)))}Us.RULE_DOCS_EXTENSION={rationale:"When two consecutive @if blocks test opposite conditions (like @if (isLoggedIn) and @if (!isLoggedIn)), the second should be replaced with @else for clarity and maintainability. Using @else makes it immediately obvious that exactly one of the two branches will execute, whereas two separate @if statements require readers to mentally verify that the conditions are opposites. The @else pattern is more concise, eliminates duplication, and prevents bugs that could occur if the conditions drift out of sync during maintenance. This rule automatically detects opposite conditions including negation (!), comparison operators (<, >, ==, !=, etc.), and special cases like array.length === 0 versus array.length > 0."}});var FP=C(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.RULE_DOCS_EXTENSION=qs.RULE_NAME=void 0;var Fr=fe(),xV=ie(),bV=ne(),Vs=Ip(),lr=BE(),_t=ME();qs.RULE_NAME="prefer-at-empty";qs.default=(0,bV.createESLintRule)({name:qs.RULE_NAME,meta:{type:"suggestion",fixable:"code",docs:{description:"Prefer using `@empty` with `@for` loops instead of a separate `@if` or `@else` block to reduce code and make it easier to read."},schema:[],messages:{preferAtEmpty:"Prefer using `@for (...) {...} @empty {...}`."},defaultOptions:[]},create(e){let t=(0,xV.getTemplateParserServices)(e),n=[void 0];function r(u){let p;for(let h of u.children)if(h instanceof Fr.TmplAstForLoopBlock){if(p)return;p=h}else if(h instanceof Fr.TmplAstText){if(e.sourceCode.text.slice(h.sourceSpan.start.offset,h.sourceSpan.end.offset).trim()!=="")return}else return;return p}function s(u,p){if(p?.kind==="if-empty"&&(0,Vs.areEquivalentASTs)(u.collection,p.collection)){let h=p.node.branches[0],f=h.endSourceSpan;e.report({loc:t.convertNodeSourceSpanToLoc(p.node.nameSpan),messageId:"preferAtEmpty",fix:f?function*(v){yield v.removeRange((0,_t.toRange)(p.node.sourceSpan)),u.node.empty?yield v.insertTextAfterRange([u.node.empty.nameSpan.end.offset,u.node.empty.startSourceSpan.end.offset],e.sourceCode.text.slice(h.startSourceSpan.end.offset,f.end.offset-1)):yield v.insertTextAfterRange((0,_t.toRange)(u.node.sourceSpan),` @empty {${e.sourceCode.text.slice(h.startSourceSpan.end.offset,f.end.offset)}`)}:void 0})}}function i(u,p){if(p)switch(p.kind){case"for":(0,Vs.areEquivalentASTs)(u.collection,p.collection)&&e.report({loc:t.convertNodeSourceSpanToLoc(u.node.nameSpan),messageId:"preferAtEmpty",fix:function*(h){p.node.empty?.endSourceSpan?(yield h.removeRange((0,_t.toRange)(p.node.empty.endSourceSpan)),yield h.removeRange((0,_t.toRange)(u.node.startSourceSpan))):yield h.replaceTextRange((0,_t.toRange)(u.node.startSourceSpan),"@empty {")}});break;case"if-not-empty":if((0,Vs.areEquivalentASTs)(u.collection,p.collection)){let h=r(p.node.branches[0]);if(h&&(0,Vs.areEquivalentASTs)(u.collection,h.expression.ast)){let f=p.node.endSourceSpan;e.report({loc:t.convertNodeSourceSpanToLoc(p.node.nameSpan),messageId:"preferAtEmpty",fix:f?v=>[v.removeRange((0,_t.toRange)(p.node.startSourceSpan)),v.removeRange((0,_t.toRange)(f)),v.insertTextAfterRange((0,_t.toRange)(h.sourceSpan),` @empty {${e.sourceCode.text.slice(u.node.startSourceSpan.end.offset,u.node.sourceSpan.end.offset)}`),v.removeRange((0,_t.toRange)(u.node.sourceSpan))]:void 0})}}}}function a(u){let p=r(u.node.branches[1]);if(p&&(0,Vs.areEquivalentASTs)(u.collection,p.expression.ast)){let h=u.node.branches[0].endSourceSpan;e.report({loc:t.convertNodeSourceSpanToLoc(u.node.nameSpan),messageId:"preferAtEmpty",fix:h?function*(f){yield f.removeRange([u.node.sourceSpan.start.offset,u.node.branches[1].startSourceSpan.end.offset]);let v=e.sourceCode.text.slice(u.node.startSourceSpan.end.offset,h.start.offset);p.empty?.endSourceSpan?(yield f.replaceTextRange([p.empty.startSourceSpan.end.offset,p.empty.endSourceSpan.start.offset],v),u.node.endSourceSpan&&(yield f.removeRange([u.node.endSourceSpan.start.offset,u.node.endSourceSpan.end.offset]))):yield f.insertTextAfterRange((0,_t.toRange)(p.sourceSpan),` @empty {${v}`)}:void 0})}}function o(u,p){if(p?.kind==="if-empty"&&(0,Vs.areEquivalentASTs)(u.collection,p.collection)){let h=r(u.node.branches[0]);h&&(0,Vs.areEquivalentASTs)(u.collection,h.expression.ast)&&e.report({loc:t.convertNodeSourceSpanToLoc(u.node.nameSpan),messageId:"preferAtEmpty",fix:f=>[f.removeRange((0,_t.toRange)(p.node.sourceSpan)),f.removeRange((0,_t.toRange)(u.node.startSourceSpan)),f.insertTextAfterRange((0,_t.toRange)(h.sourceSpan),` @empty {${e.sourceCode.text.slice(p.node.startSourceSpan.end.offset,p.node.sourceSpan.end.offset-1)}`)]})}}function c(u){let p=r(u.node.branches[0]);if(p&&(0,Vs.areEquivalentASTs)(u.collection,p.expression.ast)){let h=u.node.branches[0].endSourceSpan,f=u.node.endSourceSpan;e.report({loc:t.convertNodeSourceSpanToLoc(u.node.nameSpan),messageId:"preferAtEmpty",fix:h&&f?function*(v){p.empty&&(yield v.removeRange((0,_t.toRange)(p.empty.sourceSpan))),yield v.removeRange((0,_t.toRange)(u.node.startSourceSpan));let E=u.node.branches[1];E.expression?(yield v.replaceTextRange([h.end.offset-1,E.nameSpan.end.offset],"@empty { @if "),yield v.insertTextAfterRange((0,_t.toRange)(f),"}")):yield v.replaceTextRange([h.end.offset-1,E.startSourceSpan.end.offset],"@empty {")}:void 0})}}return{"*"(u){let p=AV(u);if(p!==void 0)switch(p.kind){case"for":s(p,n.at(-1));break;case"if-empty":i(p,n.at(-1));break;case"if-empty-else":a(p);break;case"if-not-empty":o(p,n.at(-1));break;case"if-not-empty-else":c(p);break}n[n.length-1]=p,n.push(void 0)},"*:exit"(){n.pop()}}}});function AV(e){if(e instanceof Fr.TmplAstForLoopBlock)return{node:e,kind:"for",collection:e.expression.ast};if(e instanceof Fr.TmplAstIfBlock){if(e.branches.length===0||!e.branches[0].expression)return;let t=CV(e.branches[0].expression);if(t)return{node:e,kind:e.branches.length===1?"if-not-empty":"if-not-empty-else",collection:t};if(t=_V(e.branches[0].expression),t){if(e.branches.length===1)return{node:e,kind:"if-empty",collection:t};if(e.branches.length===2&&!e.branches[1].expression)return{node:e,kind:"if-empty-else",collection:t}}}}function CV(e){if(e instanceof Fr.ASTWithSource&&(e=e.ast),(0,lr.isLengthRead)(e))return e.receiver;if(e instanceof Fr.Binary){if((0,lr.isLengthRead)(e.left)){if((e.operation==="!=="||e.operation===">"||e.operation==="!=")&&(0,lr.isZero)(e.right))return e.left.receiver}else if((0,lr.isZero)(e.left)&&(e.operation==="!=="||e.operation==="<"||e.operation==="!=")&&(0,lr.isLengthRead)(e.right))return e.right.receiver}}function _V(e){if(e instanceof Fr.ASTWithSource&&(e=e.ast),e instanceof Fr.PrefixNot){if((0,lr.isLengthRead)(e.expression))return e.expression.receiver}else if(e instanceof Fr.Binary){if((0,lr.isLengthRead)(e.left)){if((e.operation==="==="||e.operation==="==")&&(0,lr.isZero)(e.right))return e.left.receiver}else if((0,lr.isZero)(e.left)&&(e.operation==="==="||e.operation==="==")&&(0,lr.isLengthRead)(e.right))return e.right.receiver}}qs.RULE_DOCS_EXTENSION={rationale:"The @for loop has a built-in @empty block for displaying content when the collection is empty. Using this feature is clearer and more concise than separate @if blocks that check collection.length === 0 or collection.length > 0. When @if and @for blocks check the same collection, combining them with @empty eliminates duplication, reduces nesting, and makes the template intent immediately obvious. For example, @for (item of items) {...} @empty {No items} is more readable than @if (items.length > 0) { @for (item of items) {...} } @else {No items}. The @empty pattern is the idiomatic Angular way to handle empty collections and should be preferred wherever applicable."}});var UP=C(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.RULE_DOCS_EXTENSION=Hs.RULE_NAME=void 0;var $E=fe(),NV=ie(),IV=ne();Hs.RULE_NAME="prefer-class-binding";Hs.default=(0,IV.createESLintRule)({name:Hs.RULE_NAME,meta:{type:"suggestion",docs:{description:"Suggests using [class] bindings over ngClass where applicable"},schema:[],messages:{preferClassBinding:"Consider using [class] bindings instead of [ngClass] where applicable."},defaultOptions:[]},create(e){let t=(0,NV.getTemplateParserServices)(e);return{'BoundAttribute[name="ngClass"]'(n){if(LV(n))return;let r=t.convertNodeSourceSpanToLoc(n.sourceSpan);e.report({messageId:"preferClassBinding",loc:r})}}}});var $P=null;function kV(){return $P||($P=new $E.Parser(new $E.Lexer))}function PV(e){return/\s/.test(e.trim())}function LV(e){if(!e.value?.source||!e.valueSpan)return!1;let t=kV().parseBinding(e.value.source,e.valueSpan,0).ast;if(t instanceof $E.LiteralMap)for(let n of t.keys){if(n.kind==="spread")continue;let r=n.key;if(typeof r=="string"&&PV(r))return!0}return!1}Hs.RULE_DOCS_EXTENSION={rationale:"For simple cases, [class] bindings offer a more straightforward syntax with better performance than ngClass. However, ngClass should still be used when you need: (1) space-separated class names in a single key, or (2) mutations on objects, as class bindings do not support these use cases (the reference must change for class bindings to detect updates). See https://angular.dev/guide/templates/binding#css-class-and-style-property-bindings for more information. This rule helps identify potential simplification opportunities but should be applied judiciously based on your specific needs."}});var jP=C(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.RULE_DOCS_EXTENSION=js.RULE_NAME=void 0;var ia=fe(),DV=ie(),OV=Ip(),RV=ne(),qE=bp();js.RULE_NAME="prefer-contextual-for-variables";var BV={allowedAliases:{$count:[],$index:[],$first:[],$last:[],$even:[],$odd:[]}},cr=["===","=="],ur=["!==","!="],VP=["&&","||"];js.default=(0,RV.createESLintRule)({name:js.RULE_NAME,meta:{type:"suggestion",docs:{description:"Ensures that contextual variables are used in @for blocks where possible instead of aliasing them."},fixable:"code",schema:[{type:"object",properties:{allowedAliases:{type:"object",properties:{$count:{type:"array",items:{type:"string"},description:"Aliases for $count that are allowed to be used."},$index:{type:"array",items:{type:"string"},description:"Aliases for $index that are allowed to be used."},$first:{type:"array",items:{type:"string"},description:"Aliases for $first that are allowed to be used."},$last:{type:"array",items:{type:"string"},description:"Aliases for $last that are allowed to be used."},$even:{type:"array",items:{type:"string"},description:"Aliases for $even that are allowed to be used."},$odd:{type:"array",items:{type:"string"},description:"Aliases for $odd that are allowed to be used."}},additionalProperties:!1}},additionalProperties:!1}],messages:{preferContextualVariable:"Use the '{{name}}' contextual variable instead of aliasing it.",preferCount:"Use '$count' instead of '{{ expression }}'.",preferFirst:"Use '$first' instead of '{{ expression }}'.",preferLast:"Use '$last' instead of '{{ expression }}'.",preferEven:"Use '$even' instead of '{{ expression }}'.",preferOdd:"Use '$odd' instead of '{{ expression }}'."},defaultOptions:[BV]},create(e,[{allowedAliases:t}]){let n=(0,DV.getTemplateParserServices)(e),r=[];function s(i,a){let o=a.simplifications?.[i];if(!o)return;let c=e.sourceCode;for(let u of o)e.report({messageId:i,loc:{start:c.getLocFromIndex(u.range[0]),end:c.getLocFromIndex(u.range[1])},data:{expression:e.sourceCode.text.slice(u.range[0],u.range[1])},fix:p=>p.replaceTextRange(u.range,u.replacement)})}return{ForLoopBlock(i){let a=r.length>0;a&&(r[r.length-1].canAlias=!0);let o=i.contextVariables.filter(c=>c.valueSpan);r.push({canAlias:a,source:i.expression.ast,variables:o,references:o.length>0?new Map(o.map(c=>[c.name,[]])):void 0})},"ForLoopBlock:exit"(){let i=r.pop();if(i){if(!i.canAlias){let a=[];for(let[o,c]of i.variables.entries()){let u=MV(t,c.value);(u===void 0||!u.includes(c.name))&&a.push({index:o,variable:c,loc:n.convertNodeSourceSpanToLoc(c.sourceSpan)})}for(let o of a)e.report({messageId:"preferContextualVariable",loc:o.loc,data:{name:o.variable.value},fix:function*(c){yield c.removeRange(FV(o,e.sourceCode,i.variables.length));let u=i.references?.get(o.variable.name);if(u)for(let p of u)yield c.replaceTextRange(p,o.variable.value)}})}i.simplifications&&(s("preferCount",i),s("preferFirst",i),s("preferLast",i),s("preferEven",i),s("preferOdd",i))}},PropertyRead(i){let a=r.at(-1);a&&(a.references?.get(i.name)?.push([i.sourceSpan.start,i.sourceSpan.end]),i.name==="length"&&(0,OV.areEquivalentASTs)(i.receiver,a.source)&&Ie(i,a,"preferCount","$count"))},Binary(i){let a=r.at(-1);a&&(wo(i.left)?VE(i.right)?cr.includes(i.operation)?Ie(i,a,"preferFirst","$first"):(ur.includes(i.operation)||i.operation===">")&&Ie(i,a,"preferFirst","!$first"):HP(i.right)&&(cr.includes(i.operation)?Ie(i,a,"preferLast","$last"):(ur.includes(i.operation)||i.operation==="<")&&Ie(i,a,"preferLast","!$last")):VE(i.left)?wo(i.right)?cr.includes(i.operation)?Ie(i,a,"preferFirst","$first"):(ur.includes(i.operation)||i.operation==="<")&&Ie(i,a,"preferFirst","!$first"):sa(i.right)&&(cr.includes(i.operation)?Ie(i,a,"preferEven","$even"):(ur.includes(i.operation)||i.operation==="<")&&Ie(i,a,"preferOdd","$odd")):To(i.left)?sa(i.right)&&(cr.includes(i.operation)?Ie(i,a,"preferOdd","$odd"):(ur.includes(i.operation)||i.operation===">")&&Ie(i,a,"preferEven","$even")):Lp(i.left)?qP(i.right)&&(cr.includes(i.operation)?Ie(i,a,"preferLast","$last"):(ur.includes(i.operation)||i.operation===">")&&Ie(i,a,"preferLast","!$last")):qP(i.left)?Lp(i.right)&&(cr.includes(i.operation)?Ie(i,a,"preferLast","$last"):(ur.includes(i.operation)||i.operation==="<")&&Ie(i,a,"preferLast","!$last")):HP(i.left)?wo(i.right)&&(cr.includes(i.operation)?Ie(i,a,"preferLast","$last"):(ur.includes(i.operation)||i.operation===">")&&Ie(i,a,"preferLast","!$last")):sa(i.left)&&(VE(i.right)?cr.includes(i.operation)?Ie(i,a,"preferEven","$even"):(ur.includes(i.operation)||i.operation===">")&&Ie(i,a,"preferOdd","$odd"):To(i.right)?cr.includes(i.operation)?Ie(i,a,"preferOdd","$odd"):(ur.includes(i.operation)||i.operation==="<")&&Ie(i,a,"preferEven","$even"):VP.includes(i.operation)&&Ie(i.left,a,"preferOdd","$odd")),sa(i.right)&&VP.includes(i.operation)&&Ie(i.right,a,"preferOdd","$odd"))},PrefixNot(i){let a=r.at(-1);a&&(HV(i.expression)||sa(i.expression)?Ie(i,a,"preferEven","$even"):qV(i.expression)&&Ie(i,a,"preferOdd","$odd"))},Conditional(i){let a=r.at(-1);a&&sa(i.condition)&&Ie(i.condition,a,"preferOdd","$odd")},IfBlockBranch(i){let a=r.at(-1);if(a&&i.expression){let o=i.expression;o instanceof ia.ASTWithSource&&(o=o.ast),sa(o)&&Ie(o,a,"preferOdd","$odd")}}}}});function MV(e,t){if(e&&t in e)return e[t]}function FV(e,t,n){let r=e.variable.sourceSpan.start.offset,s=e.variable.sourceSpan.end.offset,i=UE("let",r,t),a=i!==void 0&&$V(i,r,s,t);if(n===1||a)i!==void 0&&(r=UE(";",i,t)??i);else if(e.index===0){let o=UV(",",s,t);o!==void 0&&(s=VV(o+1,t))}else r=UE(",",r,t)??r;return[r,s]}function $V(e,t,n,r){let s=r.text;if(s.slice(e+3,t).includes(","))return!1;let a=n;for(;a<s.length&&/\s/.test(s[a]);)a++;return s[a]!==","}function UE(e,t,n){let r=n.text;for(let s=t-e.length;s>=0;s--)if(r.slice(s,s+e.length)===e)return s}function UV(e,t,n){let r=n.text;for(let s=t;s<r.length;s++)if(r.slice(s,s+e.length)===e)return s}function VV(e,t){let n=t.text,r=e;for(;r<n.length;){if(!/\s/.test(n.at(r)))return r;r++}return n.length}function Ie(e,t,n,r){t.simplifications||(t.simplifications={});let s=t.simplifications[n];s||(s=[],t.simplifications[n]=s),s.push({range:[e.sourceSpan.start,e.sourceSpan.end],replacement:r})}function wo(e){return Dp(e,"$index")}function qP(e){let t=(0,qE.unwrapParenthesizedExpression)(e);return t instanceof ia.Binary&&t.operation==="+"?wo(t.left)?To(t.right):wo(t.right)&&To(t.left):!1}function sa(e){let t=(0,qE.unwrapParenthesizedExpression)(e);return t instanceof ia.Binary&&t.operation==="%"&&wo(t.left)&&jV(t.right)}function Lp(e){return Dp(e,"$count")}function HP(e){let t=(0,qE.unwrapParenthesizedExpression)(e);return t instanceof ia.Binary&&t.operation==="-"?Lp(t.left)?To(t.right):Lp(t.right)&&To(t.left):!1}function qV(e){return Dp(e,"$even")}function HV(e){return Dp(e,"$odd")}function Dp(e,t){return e instanceof ia.PropertyRead&&e.name===t&&e.receiver.constructor===ia.ImplicitReceiver}function VE(e){return HE(e,0)}function To(e){return HE(e,1)}function jV(e){return HE(e,2)}function HE(e,t){return e instanceof ia.LiteralPrimitive&&e.value===t}js.RULE_DOCS_EXTENSION={rationale:`Angular's @for loop provides built-in contextual variables ($index, $count, $first, $last, $even, $odd) that are more efficient and clearer than manual calculations. Using these variables eliminates redundant logic like @for (item of items; let i = $index) { @if (i === 0) } when $first would suffice. The built-in variables are optimized by Angular and make template intent explicit. For example, $first immediately communicates "first item in the loop" whereas i === 0 requires mental translation. Similarly, using $even/$odd is clearer than i % 2 === 0 for alternating row styling. The rule can be configured to allow specific custom alias names if your team has established naming conventions, but by default encourages using Angular's standard contextual variables for consistency across the ecosystem.`}});var WP=C(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.RULE_DOCS_EXTENSION=Ws.RULE_NAME=void 0;var WV=ie(),zV=ne();Ws.RULE_NAME="prefer-control-flow";Ws.default=(0,zV.createESLintRule)({name:Ws.RULE_NAME,meta:{type:"suggestion",docs:{description:"Ensures that the built-in control flow is used.",recommended:"recommended"},schema:[],messages:{preferControlFlow:"Use built-in control flow instead of directive {{name}}."},defaultOptions:[]},create(e){let t=(0,WV.getTemplateParserServices)(e);return{"BoundAttribute[name=/^(ngForOf|ngIf|ngSwitch)$/]"({sourceSpan:n,name:r}){let s=t.convertNodeSourceSpanToLoc(n);e.report({messageId:"preferControlFlow",loc:s,data:{name:r}})}}}});Ws.RULE_DOCS_EXTENSION={rationale:"Angular v17 introduced built-in control flow (@if, @for, @switch) as a replacement for the structural directives (*ngIf, *ngFor, *ngSwitch). The new syntax is more readable, performant, and type-safe. Built-in control flow has better syntax highlighting in editors, clearer nesting behavior, built-in features like @empty for loops and @else for conditionals, and improved tree-shaking. The new syntax also enables better compile-time optimizations and runtime performance. While the old structural directives remain supported for backward compatibility, new code should use the modern built-in control flow. Teams migrating to v17+ are encouraged to adopt this syntax for consistency and to benefit from ongoing performance improvements."}});var GP=C(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.RULE_DOCS_EXTENSION=zs.RULE_NAME=void 0;var GV=fe(),XV=ie(),YV=ne(),KV=In();zs.RULE_NAME="prefer-self-closing-tags";zs.default=(0,YV.createESLintRule)({name:zs.RULE_NAME,meta:{type:"layout",docs:{description:"Ensures that self-closing tags are used for elements with a closing tag but no content."},fixable:"code",schema:[],messages:{preferSelfClosingTags:"Use self-closing tags for elements with a closing tag but no content."},defaultOptions:[]},create(e){let t=(0,XV.getTemplateParserServices)(e);if(/(^|[\\/])index\.html$/.test(e.physicalFilename))return{};return{"Element, Template, Content"(s){if(JV(s))r(s);else{if("name"in s&&QV(s.name))return;n(s)}}};function n(s){let{children:i,startSourceSpan:a,endSourceSpan:o}=s;if(!o||a.start.offset===o.start.offset&&a.end.offset===o.end.offset)return;let c=i.some(f=>!(f instanceof GV.TmplAstText)||e.sourceCode.text.slice(f.sourceSpan.start.offset,f.sourceSpan.end.offset).trim()!=="");if(e.sourceCode.text.slice(a.end.offset,o.start.offset).trim()!==""||c)return;let p=a.toString().at(-2),h=zP(p);e.report({loc:t.convertNodeSourceSpanToLoc(o),messageId:"preferSelfClosingTags",fix:f=>f.replaceTextRange([a.end.offset-1,o.end.offset],h+"/>")})}function r(s){let{sourceSpan:i}=s,a="</ng-content>",o=i.toString();if(o.endsWith(a)){let c=ZV(o);if(c<o.length-a.length&&o.slice(c,-a.length).trim().length>0)return;let u=o.at(c-2),p=zP(u);e.report({loc:{start:{line:i.end.line+1,column:i.end.col-a.length},end:{line:i.end.line+1,column:i.end.col}},messageId:"preferSelfClosingTags",fix:h=>h.replaceTextRange([i.start.offset+c-1,i.end.offset],p+"/>")})}}}});function QV(e){let t=e.toLowerCase();return t.startsWith(":svg:")||t.startsWith(":math:")||(0,KV.getDomElements)().has(t)}function JV(e){return"name"in e&&e.name.toLowerCase()==="ng-content"}function ZV(e){let t;for(let n=11;n<e.length;n++){let r=e.at(n);if(t!==void 0)t===r&&(t=void 0);else switch(r){case">":return n+1;case'"':case"'":t=r;break}}return e.length}function zP(e){return e.trim()===""?"":" "}zs.RULE_DOCS_EXTENSION={rationale:"Self-closing tags like <app-component /> are more concise and eliminate visual clutter when elements have no content. This pattern is familiar from HTML void elements (like <img /> and <br />) and from JSX/React. Using self-closing syntax makes it immediately obvious that an element is empty, whereas <app-component></app-component> requires scanning to the closing tag to confirm there is no content. The shorter syntax also reduces the chance of accidentally nesting content where none was intended. Angular v15.1+ supports self-closing tags for components and structural elements. The rule automatically skips native HTML elements (div, span, etc.) and index.html files since browser support varies. For Angular components and directives, self-closing tags improve template readability."}});var YP=C(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.RULE_DOCS_EXTENSION=Gs.RULE_NAME=void 0;var XP=fe(),eq=ie(),tq=ne(),nq=["innerHTML","innerText","outerHTML","textContent"];Gs.RULE_NAME="prefer-static-string-properties";Gs.default=(0,tq.createESLintRule)({name:Gs.RULE_NAME,meta:{type:"layout",docs:{description:"Ensures that static string values use property assignment instead of property binding."},fixable:"code",schema:[{type:"object",properties:{ignore:{type:"array",items:{type:"string"},description:"An array of property names that should be ignored by this rule",uniqueItems:!0}},additionalProperties:!1}],messages:{preferStaticStringProperties:"Using a property is more efficient than binding a static string."},defaultOptions:[{}]},create(e,[{ignore:t=[]}]){let n=(0,eq.getTemplateParserServices)(e),r=new Set([...nq,...t]);return{"BoundAttribute.inputs"({name:s,sourceSpan:i,keySpan:a,value:o}){let c=a?.details&&!a.details.includes("@")&&!a.details.includes(".");if(!r.has(s)&&c&&o instanceof XP.ASTWithSource&&o.ast instanceof XP.LiteralPrimitive&&typeof o.ast.value=="string"){let u=o.source?.trimStart().at(0)==='"'?"'":'"',p=o.ast.value.replaceAll("&","&amp;").replaceAll(u,u==='"'?"&quot;":"&#39;");e.report({loc:n.convertNodeSourceSpanToLoc(i),messageId:"preferStaticStringProperties",fix:h=>h.replaceTextRange([i.start.offset,i.end.offset],`${s}=${u}${p}${u}`)})}}}}});Gs.RULE_DOCS_EXTENSION={rationale:`When binding a static string literal to a property, using attribute syntax (property="value") is more efficient and simpler than property binding syntax ([property]="'value'"). Property binding with a static string creates unnecessary overhead because Angular evaluates it as an expression during change detection, even though the value never changes. Attribute syntax makes it immediately clear that the value is static and will never be updated. For example, [alt]="'Profile image'" should be alt="Profile image". This rule helps identify performance opportunities and makes templates more readable by distinguishing truly dynamic bindings from static values. The rule excludes animation bindings (@xxx), style/class sub-properties (style.color), and structural directives (*ngIf) where property binding syntax is required.
90
+
91
+ The rule automatically excludes certain property-only DOM APIs (innerHTML, innerText, outerHTML, textContent) because these properties behave differently than their attribute counterparts. For example, textContent as a property does not HTML-encode its value, while textContent as an attribute does. Converting [textContent]="'<I>'" to textContent="<I>" would change the behavior and potentially break functionality. You can also configure additional properties to ignore using the ignore option.`}});var KP=C(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.RULE_DOCS_EXTENSION=Xs.RULE_NAME=void 0;var rq=ie(),sq=ne();Xs.RULE_NAME="prefer-style-binding";Xs.default=(0,sq.createESLintRule)({name:Xs.RULE_NAME,meta:{type:"suggestion",docs:{description:"Suggests using [style] bindings over ngStyle where applicable"},schema:[],messages:{preferStyleBinding:"Consider using [style] or [style.property] bindings instead of [ngStyle] where applicable."},defaultOptions:[]},create(e){let t=(0,rq.getTemplateParserServices)(e);return{'BoundAttribute[name="ngStyle"]'(n){let r=t.convertNodeSourceSpanToLoc(n.sourceSpan);e.report({messageId:"preferStyleBinding",loc:r})}}}});Xs.RULE_DOCS_EXTENSION={rationale:'For simple cases, [style] and [style.property] bindings offer a more straightforward syntax with better performance than ngStyle, and the Angular style guide recommends them over the NgStyle directive. However, ngStyle should still be used when you need mutations on objects, as style bindings compare the bound object by reference and only apply updates when a new object instance is provided. Note that ngStyle also accepts unit suffixes on object keys (for example `{ "max-width.px": width }`), which [style] object bindings do not support; express these as [style.max-width.px] bindings instead. See https://angular.dev/style-guide#prefer-class-and-style-over-ngclass-and-ngstyle and https://angular.dev/guide/templates/binding#css-class-and-style-property-bindings for more information. This rule helps identify potential simplification opportunities but should be applied judiciously based on your specific needs.'}});var ZP=C(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.RULE_DOCS_EXTENSION=Ys.RULE_NAME=void 0;var xo=fe(),iq=ie(),aq=ne(),QP=vE(),JP=bp(),oq="preferTemplateLiteral";Ys.RULE_NAME="prefer-template-literal";function lq(e){if(!("parent"in e))return!1;let t=e.parent;return t instanceof xo.Binary&&t.operation==="+"}function Op(e){let t=(0,JP.unwrapParenthesizedExpression)(e);return(0,QP.isStringLiteralPrimitive)(t)||t instanceof xo.TemplateLiteral?!0:t instanceof xo.Binary&&t.operation==="+"?Op(t.left)||Op(t.right):!1}function jE(e){let t=(0,JP.unwrapParenthesizedExpression)(e);if(t instanceof xo.Binary&&t.operation==="+"&&Op(t))return[...jE(t.left),...jE(t.right)];if(t instanceof xo.TemplateLiteral){let n=[];for(let r=0;r<t.elements.length;r++)t.elements[r].text&&n.push({type:"literal",value:t.elements[r].text}),r<t.expressions.length&&n.push({type:"expression",node:t.expressions[r]});return n}return(0,QP.isLiteralPrimitive)(t)?[{type:"literal",value:typeof t.value=="string"?t.value:String(t.value)}]:[{type:"expression",node:t}]}Ys.default=(0,aq.createESLintRule)({name:Ys.RULE_NAME,meta:{type:"suggestion",docs:{description:"Ensure that template literals are used instead of concatenating strings or expressions."},fixable:"code",schema:[],messages:{preferTemplateLiteral:"Prefer using template literal instead of concatenating strings or expressions"},defaultOptions:[]},create(e){if(/inline-template-[^/\\]+-\d+\.component\.html$/.test(e.filename))return{};(0,iq.ensureTemplateParser)(e);let{sourceCode:t}=e;return{'Binary[operation="+"]'(n){if(lq(n)||!Op(n))return;let{sourceSpan:{start:r,end:s}}=n,i="parent"in n&&n.parent instanceof xo.TemplateLiteral,a=jE(n),o=a.every(u=>u.type==="literal");function c(){if(i)return"";if(!o)return"`";let u=t.text.slice(r,s);for(let p of u){if(p==="'"||p==='"')return p;if(p==="`")return"`"}return"'"}e.report({loc:{start:t.getLocFromIndex(r),end:t.getLocFromIndex(s)},messageId:oq,fix:u=>{let p=c(),h=Array();if(i){let E=t.text.lastIndexOf("${",n.sourceSpan.start);h.push(u.removeRange([E,n.sourceSpan.start]))}let f=p===""?"`":p,v="";for(let E of a)if(E.type==="literal")v+=E.value.replaceAll(f,`\\${f}`);else{let T=t.text.slice(E.node.sourceSpan.start,E.node.sourceSpan.end);v+=`\${${T}}`}if(i||(v=`${p}${v}${p}`),h.push(u.replaceTextRange([r,s],v)),i){let E=t.text.indexOf("}",n.sourceSpan.end);h.push(u.removeRange([n.sourceSpan.end,E+1]))}return h}})}}}});Ys.RULE_DOCS_EXTENSION={rationale:'Template literals (backticks with ${} syntax) are more modern, readable, and maintainable than string concatenation with the + operator. String concatenation like "Hello " + name + "!" is harder to read and error-prone (easy to forget spaces or quotes) compared to the template literal `Hello ${name}!`. Template literals make string composition clearer, especially with multiple expressions. This is a widely accepted JavaScript/TypeScript best practice that should be followed in Angular templates for consistency. Angular templates have supported template literal syntax since v19.2. Using template literals throughout your codebase creates a consistent style and makes complex string building much more readable.\n\n\u2139 This rule is not checked in inline templates due to the common use of backticks to define the inline template.'}});var eL=C(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.RULE_DOCS_EXTENSION=Ks.RULE_NAME=void 0;var cq=ie(),uq=ne();Ks.RULE_NAME="require-switch-default";Ks.default=(0,uq.createESLintRule)({name:Ks.RULE_NAME,meta:{type:"suggestion",docs:{description:"Requires a `@default` block on every `@switch` to ensure all cases are handled. This is the template equivalent of the `@typescript-eslint/switch-exhaustiveness-check` rule."},schema:[],messages:{requireSwitchDefault:"Switch should have a default block. Add `@default { ... }`, or `@default never` to enforce a compile-time exhaustive switch."},defaultOptions:[]},create(e){let t=(0,cq.getTemplateParserServices)(e);return{SwitchBlock({exhaustiveCheck:n,groups:r,nameSpan:s}){n||r.some(({cases:a})=>a.some(({expression:o})=>o===null))||e.report({loc:t.convertNodeSourceSpanToLoc(s),messageId:"requireSwitchDefault"})}}}});Ks.RULE_DOCS_EXTENSION={rationale:"A `@switch` without a `@default` silently renders nothing when the value matches none of the `@case` branches, which is rarely intended and easy to miss. Because Angular templates are not type-checked the way TypeScript code is, the linter cannot determine whether the listed cases are exhaustive over a union or enum. Requiring an explicit `@default` block ensures unhandled values are always accounted for. For genuine compile-time exhaustiveness over a union or enum, use Angular's `@default never` form, which fails the template type-check if any case is missing."}});var tL=C(zE=>{"use strict";Object.defineProperty(zE,"__esModule",{value:!0});zE.isSemanticRoleElement=pq;var Rp=null,WE=null;function pq(e,t,n){if(Rp===null||WE===null){let{AXObjectRoles:r,elementAXObjects:s}=JE();Rp=s,WE=r}return Array.from(Rp?.keys()??[]).some(r=>r.name===e&&(r.attributes??[]).every(s=>n.find(i=>s.name===i.name&&s.value===i.value))&&Rp?.get(r)?.find(s=>WE?.get(s)?.find(i=>i.name===t)))}});var nL=C(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.RULE_DOCS_EXTENSION=Qs.RULE_NAME=void 0;var hq=ie(),dq=Io(),fq=ne(),mq=In(),gq=Ts(),vq=tL();Qs.RULE_NAME="role-has-required-aria";Qs.default=(0,fq.createESLintRule)({name:Qs.RULE_NAME,meta:{type:"suggestion",docs:{description:"[Accessibility] Ensures elements with ARIA roles have all required properties for that role."},hasSuggestions:!0,schema:[],messages:{roleHasRequiredAria:'The {{element}} with role="{{role}}" does not have required ARIA properties: {{missingProps}}',suggestRemoveRole:"Remove role `{{role}}`"},defaultOptions:[]},create(e){let t=(0,hq.getTemplateParserServices)(e),n=[...(0,mq.getDomElements)()],r=n.map(i=>i.toUpperCase());return{[`Element[name=${(0,gq.toPattern)([...n,...r])}] > TextAttribute[name='role']`](i){let{value:a,sourceSpan:o}=i,{attributes:c,inputs:u,name:p}=i.parent,h=[...c,...u],f=dq.roles.get(a),v=Object.keys(f?.requiredProps||{});if(!v.length||(0,vq.isSemanticRoleElement)(p,a,h))return;let E=v.filter(T=>!h.find(y=>y.name===T)).join(", ");if(E){let T=t.convertNodeSourceSpanToLoc(o);e.report({loc:T,messageId:"roleHasRequiredAria",data:{element:p,role:a,missingProps:E},suggest:[{messageId:"suggestRemoveRole",data:{element:p,role:a,missingProps:E},fix:y=>y.removeRange([o?.start.offset-1,o?.end.offset])}]})}}}}});Qs.RULE_DOCS_EXTENSION={rationale:'ARIA roles define what an element is and how it should behave for assistive technologies, but many roles require specific ARIA properties to be meaningful and functional. For example, a role="slider" must have aria-valuemin, aria-valuemax, and aria-valuenow to communicate its state to screen readers. Without these required properties, the role is incomplete and may confuse or mislead users of assistive technologies. The ARIA specification defines which properties are required for each role, and this rule enforces those requirements based on the official aria-query library. Ensuring required ARIA properties are present is critical for making interactive elements accessible. This is a WCAG Level A requirement for proper ARIA implementation.'}});var rL=C(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.RULE_DOCS_EXTENSION=Js.RULE_NAME=void 0;var Eq=ie(),Sq=ne(),yq=In(),wq=Ts();Js.RULE_NAME="table-scope";Js.default=(0,Sq.createESLintRule)({name:Js.RULE_NAME,meta:{type:"suggestion",docs:{description:"[Accessibility] Ensures that the `scope` attribute is only used on the `<th>` element"},fixable:"code",schema:[],messages:{tableScope:"The `scope` attribute should only be on the `<th>` element"},defaultOptions:[]},create(e){let t=(0,Eq.getTemplateParserServices)(e),n=[...(0,yq.getDomElements)()].filter(i=>i!=="th"),r=n.map(i=>i.toUpperCase());return{[`Element[name=${(0,wq.toPattern)([...n,...r])}] > :matches(BoundAttribute, TextAttribute)[name='scope']`]({sourceSpan:i}){let a=t.convertNodeSourceSpanToLoc(i);e.report({loc:a,messageId:"tableScope",fix:o=>o.removeRange([i.start.offset-1,i.end.offset])})}}}});Js.RULE_DOCS_EXTENSION={rationale:'The scope attribute on table headers (<th>) tells screen readers whether a header applies to a column or row, enabling more efficient table navigation. When screen reader users navigate table cells, the screen reader announces the associated headers. Without proper scope attributes, users must manually explore the table structure to understand what each cell represents. Use scope="col" for column headers and scope="row" for row headers. For simple tables, screen readers can often infer the scope, but explicit scope attributes ensure reliable accessibility across all screen readers.'}});var sL=C(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.RULE_DOCS_EXTENSION=Zs.RULE_NAME=void 0;var Tq=ie(),xq=ne();Zs.RULE_NAME="use-track-by-function";var bq=[];Zs.default=(0,xq.createESLintRule)({name:Zs.RULE_NAME,meta:{type:"suggestion",docs:{description:"Ensures trackBy function is used"},schema:[{type:"object",properties:{alias:{type:"array",items:{type:"string"}}},additionalProperties:!1}],messages:{useTrackByFunction:"Missing trackBy function in ngFor directive"},defaultOptions:[{alias:bq}]},create(e,[{alias:t}]){let n=Cq(t),r=(0,Tq.getTemplateParserServices)(e);return{'BoundAttribute.inputs[name="ngForOf"]'({parent:{inputs:s},sourceSpan:i}){if(s.some(n))return;let a=r.convertNodeSourceSpanToLoc(i);e.report({messageId:"useTrackByFunction",loc:a})},'BoundAttribute.templateAttrs[name="ngForOf"]'({parent:{templateAttrs:s}}){if(s.some(n))return;let{start:i}=r.convertNodeSourceSpanToLoc(s[0].sourceSpan),{end:a}=r.convertNodeSourceSpanToLoc(s[s.length-1].sourceSpan),o={start:{...i,column:i.column-1},end:{...a,column:a.column+1}};e.report({messageId:"useTrackByFunction",loc:o})}}}});var Aq="ngForTrackBy";function Cq(e){let t=[...e,Aq];return n=>t.includes(n.name)}Zs.RULE_DOCS_EXTENSION={rationale:"When using *ngFor to render lists, Angular needs to track which items are added, removed, or moved to efficiently update the DOM. Without a trackBy function, Angular tracks items by object identity, meaning any change to the array (like sorting, filtering, or fetching fresh data from an API) causes Angular to destroy and recreate all DOM elements, even for items that haven't changed. This is inefficient and causes problems like: (1) poor performance with large lists, (2) loss of component state (like form input values), and (3) loss of CSS animations or focus. A trackBy function tells Angular how to identify unique items (usually by an id property), allowing Angular to reuse DOM elements for unchanged items. Use trackBy for all lists, especially those that update frequently or contain components with state."}});var aL=C(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.RULE_DOCS_EXTENSION=ei.RULE_NAME=void 0;var bo=fe(),_q=ie(),Nq=Io(),Iq=ne(),kq=In(),Pq=Ts();ei.RULE_NAME="valid-aria";ei.default=(0,Iq.createESLintRule)({name:ei.RULE_NAME,meta:{type:"suggestion",docs:{description:"[Accessibility] Ensures that correct ARIA attributes and respective values are used"},hasSuggestions:!0,schema:[],messages:{validAria:"The `{{attribute}}` is an invalid ARIA attribute",validAriaValue:"The `{{attribute}}` has an invalid value. Check the valid values at https://raw.githack.com/w3c/aria/stable/#roles",suggestRemoveInvalidAria:"Remove attribute `{{attribute}}`"},defaultOptions:[]},create(e){let t=(0,_q.getTemplateParserServices)(e),n=[...(0,kq.getDomElements)()],r=n.map(i=>i.toUpperCase());return{[`Element[name=${(0,Pq.toPattern)([...n,...r])}] > :matches(BoundAttribute, TextAttribute)[name=/^aria-.+/]`](i){let{name:a,sourceSpan:o}=i,c=Nq.aria.get(a),u=t.convertNodeSourceSpanToLoc(o);if(!c){e.report({loc:u,messageId:"validAria",data:{attribute:a},suggest:[{messageId:"suggestRemoveInvalidAria",data:{attribute:a},fix:h=>h.removeRange([o.start.offset-1,o.end.offset])}]});return}let p=Rq(i);Oq(p)||Uq(c,p.value)||e.report({loc:u,messageId:"validAriaValue",data:{attribute:a}})}}}});function Lq(e){return e instanceof bo.LiteralArray||e instanceof bo.LiteralMap}function Dq(e){return e instanceof bo.LiteralPrimitive||e instanceof bo.TmplAstTextAttribute}function Oq(e){return!Lq(e)&&!Dq(e)}function Rq(e){return e instanceof bo.TmplAstBoundAttribute&&e.value instanceof bo.ASTWithSource?e.value.ast:e}function GE(e){return typeof e=="boolean"||e==="false"||e==="true"}function Bq(e){return!Number.isNaN(e)&&parseInt(Number(e))==e&&!Number.isNaN(parseInt(e,10))}function Mq(e){return!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e))}function iL(e){return e==null}function XE(e){return typeof e=="string"}function Fq(e){return XE(e)&&e==="mixed"}function $q(e){return Fq(e)||GE(e)||iL(e)}function Uq({allowundefined:e,type:t,values:n},r){if(e&&iL(r))return!0;switch(t){case"boolean":return GE(r);case"tristate":return $q(r);case"id":case"idlist":return!0;case"integer":return Bq(r);case"number":return Mq(r);case"string":return XE(r);case"token":{let s=GE(r)?JSON.parse(r):r;return!!n?.includes(s)}case"tokenlist":return XE(r)?r.trim().split(/\s+/).every(i=>!!n?.includes(i)):!1}}ei.RULE_DOCS_EXTENSION={rationale:"ARIA (Accessible Rich Internet Applications) attributes must be valid and used correctly for screen readers to interpret them. Using invalid or misspelled ARIA attributes (like 'aria-labeledby' instead of 'aria-labelledby', or using ARIA attributes that don't exist) causes screen readers to ignore them, breaking accessibility. Each HTML element only supports specific ARIA attributes based on its role. Invalid ARIA is worse than no ARIA because it gives developers false confidence that they've made something accessible when they haven't. Use a reference like the ARIA specification or MDN to verify attribute names and valid usage."}});var KL=C(($r,YL)=>{"use strict";var Vq=$r&&$r.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),qq=$r&&$r.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),oe=$r&&$r.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(n){var r=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[r.length]=s);return r},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),s=0;s<r.length;s++)r[s]!=="default"&&Vq(n,t,r[s]);return qq(n,t),n}})(),Hq=$r&&$r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},jq=Hq(uS()),oL=oe(p1()),lL=oe(w1()),cL=oe(T1()),uL=oe(A1()),pL=oe(R1()),hL=oe(M1()),dL=oe(F1()),fL=oe(U1()),mL=oe(X1()),gL=oe(tP()),vL=oe(aP()),EL=oe(uP()),SL=oe(hP()),yL=oe(dP()),wL=oe(fP()),TL=oe(mP()),xL=oe(EP()),bL=oe(SP()),AL=oe(yP()),CL=oe(wP()),_L=oe(xP()),NL=oe(bP()),IL=oe(AP()),kL=oe(_P()),PL=oe(NP()),LL=oe(IP()),DL=oe(kP()),OL=oe(LP()),RL=oe(MP()),BL=oe(FP()),ML=oe(UP()),FL=oe(jP()),$L=oe(WP()),UL=oe(GP()),VL=oe(YP()),qL=oe(KP()),HL=oe(ZP()),jL=oe(eL()),WL=oe(nL()),zL=oe(rL()),GL=oe(sL()),XL=oe(aL());YL.exports={processors:jq.default,rules:{[oL.RULE_NAME]:oL.default,[lL.RULE_NAME]:lL.default,[cL.RULE_NAME]:cL.default,[uL.RULE_NAME]:uL.default,[pL.RULE_NAME]:pL.default,[hL.RULE_NAME]:hL.default,[dL.RULE_NAME]:dL.default,[fL.RULE_NAME]:fL.default,[mL.RULE_NAME]:mL.default,[gL.RULE_NAME]:gL.default,[vL.RULE_NAME]:vL.default,[EL.RULE_NAME]:EL.default,[SL.RULE_NAME]:SL.default,[yL.RULE_NAME]:yL.default,[wL.RULE_NAME]:wL.default,[TL.RULE_NAME]:TL.default,[xL.RULE_NAME]:xL.default,[bL.RULE_NAME]:bL.default,[AL.RULE_NAME]:AL.default,[CL.RULE_NAME]:CL.default,[_L.RULE_NAME]:_L.default,[NL.RULE_NAME]:NL.default,[IL.RULE_NAME]:IL.default,[kL.RULE_NAME]:kL.default,[PL.RULE_NAME]:PL.default,[LL.RULE_NAME]:LL.default,[DL.RULE_NAME]:DL.default,[RL.RULE_NAME]:RL.default,[BL.RULE_NAME]:BL.default,[ML.RULE_NAME]:ML.default,[FL.RULE_NAME]:FL.default,[$L.RULE_NAME]:$L.default,[OL.RULE_NAME]:OL.default,[UL.RULE_NAME]:UL.default,[VL.RULE_NAME]:VL.default,[qL.RULE_NAME]:qL.default,[HL.RULE_NAME]:HL.default,[jL.RULE_NAME]:jL.default,[WL.RULE_NAME]:WL.default,[zL.RULE_NAME]:zL.default,[GL.RULE_NAME]:GL.default,[XL.RULE_NAME]:XL.default}}});var eD=C(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});Bp.convertNodeSourceSpanToLoc=JL;Bp.convertElementSourceSpanToLoc=Wq;var YE=fe();function JL(e){return{start:{line:e.start.line+1,column:e.start.col},end:{line:e.end.line+1,column:e.end.col}}}function Wq(e,t){if(t.type!=="Element")throw new Error("convertElementSourceSpanToLoc is intended to be used only with elements.");return(0,YE.getHtmlTagDefinition)(t.name).isVoid&&(t=zq(e,t)||t),JL(t.sourceSpan)}function zq(e,t){let{rootNodes:n}=Gq().parse(e.sourceCode.getText(),e.filename);return ZL(n,t.sourceSpan)}function ZL(e,t){for(let n of e){if(n.sourceSpan.start.line===t.start.line&&n.sourceSpan.start.offset===t.start.offset)return n;if(n instanceof YE.Element){let r=ZL(n.children,t);if(r!==null)return r}}return null}var QL=null;function Gq(){return QL||(QL=new YE.HtmlParser)}});var tD=C((d6,Xq)=>{Xq.exports={name:"@angular-eslint/template-parser",version:"22.6.0",description:"Angular Template parser for ESLint",license:"MIT",main:"dist/index.js",types:"dist/index.d.ts",repository:{type:"git",url:"https://github.com/angular-eslint/angular-eslint.git",directory:"packages/template-parser"},bugs:"https://github.com/angular-eslint/angular-eslint/issues",files:["dist","!**/*.tsbuildinfo","package.json","README.md","LICENSE"],dependencies:{"@angular-eslint/bundled-angular-compiler":"22.6.0","eslint-scope":"9.1.2"},peerDependencies:{eslint:"^9.0.0 || ^10.0.0",typescript:"*"},gitHead:"e2006e5e9c99e5a943d1a999e0efa5247d29ec24"}});var aD=C(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.meta=kn.version=kn.TemplateParseError=void 0;kn.createTemplateParseError=sD;kn.parseForESLint=iD;kn.parse=s3;var Yq=fe(),Kq=dD(),Ao=eD(),rD={ASTWithSource:["ast"],Binary:["left","right"],BoundAttribute:["value"],BoundEvent:["handler"],BoundText:["value"],Call:["receiver","args"],SafeCall:["receiver","args"],Conditional:["condition","trueExp","falseExp"],Element:["children","inputs","outputs","attributes"],Interpolation:["expressions"],KeyedRead:["receiver","key"],SafeKeyedRead:["receiver","key"],NonNullAssert:["expression"],PrefixNot:["expression"],Program:["templateNodes"],PropertyRead:["receiver"],SafePropertyRead:["receiver"],Template:["templateAttrs","children","inputs"],BindingPipe:["exp","args"],DeferredBlock:["children","placeholder","loading","error","triggers","prefetchTriggers","hydrateTriggers"],DeferredBlockLoading:["children"],DeferredBlockError:["children"],DeferredBlockPlaceholder:["children"],Object:["when"],BoundDeferredTrigger:["value"],IfBlock:["branches"],IfBlockBranch:["children","expression"],SwitchBlock:["groups","expression"],SwitchBlockCaseGroup:["cases","children"],SwitchBlockCase:["expression"],ForLoopBlock:["children","empty","expression","trackBy"],ForLoopBlockEmpty:["children"],Content:["children"],LetDeclaration:["value"],ParenthesizedExpression:["expression"],ArrowFunction:["body"],SpreadElement:["expression"],TaggedTemplateLiteral:["tag","template"]};function Qq(e){let t=null;return e!=="comments"&&e!=="leadingComments"&&e!=="loc"&&e!=="parent"&&e!=="range"&&e!=="tokens"&&e!=="trailingComments"&&(t=this[e])!==null&&typeof t=="object"&&(typeof t.type=="string"||Array.isArray(t))}function Jq(e){return Object.keys(e).filter(Qq,e)}function nD(e){return e!==null&&typeof e=="object"&&typeof e.type=="string"}var Mp=null;function Zq(e){Mp||(Mp=new Map);let t=Mp.get(e);if(!t){t=[0];for(let n=0;n<e.length;n++)e[n]===`
92
+ `&&t.push(n+1);Mp.set(e,t)}return t}function e3(e,t){let n=Zq(e),r=0,s=0,i=n.length-1;for(;s<=i;){let u=Math.floor((s+i)/2);n[u]<=t.start?(r=u,s=u+1):i=u-1}let a=t.start-n[r],o=r;for(s=r,i=n.length-1;s<=i;){let u=Math.floor((s+i)/2);n[u]<=t.end?(o=u,s=u+1):i=u-1}let c=t.end-n[o];return{start:{line:r+1,column:a},end:{line:o+1,column:c}}}function KE(e,t){let n=0,r=0,s=rD[e.type]||Jq(e);for(e.loc||(e.sourceSpan&&e.sourceSpan.start&&typeof e.sourceSpan.start.line=="number"?e.loc=(0,Ao.convertNodeSourceSpanToLoc)(e.sourceSpan):e.sourceSpan&&typeof e.sourceSpan.start=="number"&&t&&(e.loc=e3(t,e.sourceSpan))),n=0;n<s.length;++n){let i=e[s[n]];if(i==null)continue;let a=Array.isArray(i);if(i.type!==void 0&&(i.__originalType=i.type),!a&&!i.type&&(i.type=i.constructor.name),a)for(r=0;r<i.length;++r){let o=i[r];o.type!==void 0&&(o.__originalType=o.type),(!o.type||typeof o.type=="number")&&(o.type=o.constructor.name),nD(o)&&KE(o,t)}else nD(i)&&KE(i,t)}}function t3(e){let t=null;return e.templateNodes.forEach(n=>{let r=n.startSourceSpan||n.sourceSpan;if(!t){t=r;return}if(r&&r.start.offset<t.start.offset){t=r;return}}),t}function n3(e){let t=null;return e.templateNodes.forEach(n=>{let r=n.endSourceSpan||n.sourceSpan;if(!t){t=r;return}if(r&&r.end.offset>t.end.offset){t=r;return}}),t}function r3(e,t){return e.map(r=>({type:t.startsWith("//",r.sourceSpan.start.offset)?"Line":"Block",value:r.value,loc:(0,Ao.convertNodeSourceSpanToLoc)(r.sourceSpan),range:[r.sourceSpan.start.offset,r.sourceSpan.end.offset]})).sort((r,s)=>r.range[0]-s.range[0])}var Fp=class extends Error{fileName;index;lineNumber;column;constructor(t,n,r,s,i){super(t),this.fileName=n,this.index=r,this.lineNumber=s,this.column=i,Object.defineProperty(this,"name",{value:new.target.name,enumerable:!1,configurable:!0})}};kn.TemplateParseError=Fp;function sD(e){let t=e.msg,n=e.span.start.file.url,r=e.span.start.offset,s=e.span.start.line+1,i=e.span.start.col+1;return new Fp(t,n,r,s,i)}function iD(e,t){let n=(0,Yq.parseTemplate)(e,t.filePath,{preserveWhitespaces:!0,preserveLineEndings:!0,collectCommentNodes:!0}),r=[];Array.isArray(n.commentNodes)&&(r=n.commentNodes);let s={type:"Program",comments:r3(r,e),tokens:[],range:[0,0],loc:{start:{line:0,column:0},end:{line:0,column:0}},templateNodes:n.nodes,value:e},i=Object.defineProperties(s,{body:{value:[],enumerable:!1},sourceType:{value:"module",enumerable:!1}}),a=(0,Kq.analyze)(i);KE(s,e);let o=t3(s),c=n3(s);if(o&&c&&(s.range=[o.start.offset,c.end.offset],s.loc={start:(0,Ao.convertNodeSourceSpanToLoc)(o).start,end:(0,Ao.convertNodeSourceSpanToLoc)(c).end}),!t.suppressParseErrors&&n.errors?.length)throw sD(n.errors[0]);return{ast:s,scopeManager:a,visitorKeys:rD,services:{convertNodeSourceSpanToLoc:Ao.convertNodeSourceSpanToLoc,convertElementSourceSpanToLoc:Ao.convertElementSourceSpanToLoc}}}function s3(e,t){return iD(e,t).ast}kn.version=tD().version;kn.meta={name:"angular-eslint/template-parser",version:kn.version}});var lD=uc(fD()),QE=uc(KL()),$p=uc(aD()),Pn=uc(ZE());var cD={"alt-text":["1.1.1"],"click-events-have-key-events":["2.1.1"],"elements-content":["4.1.2"],"interactive-supports-focus":["2.1.1"],"label-has-associated-control":["1.3.1","4.1.2"],"mouse-events-have-key-events":["2.1.1"],"no-distracting-elements":["2.2.2"],"no-positive-tabindex":["2.4.3"],"role-has-required-aria":["4.1.2"],"table-scope":["1.3.1"],"valid-aria":["4.1.2"]},i3={a:["2.4.4","4.1.2"],button:["4.1.2"],h1:["2.4.6","1.3.1"],h2:["2.4.6","1.3.1"],h3:["2.4.6","1.3.1"],h4:["2.4.6","1.3.1"],h5:["2.4.6","1.3.1"],h6:["2.4.6","1.3.1"]};function a3(e,t){if(e!=="elements-content")return cD[e];let n=/^<([a-z0-9]+)>/i.exec(t)?.[1].toLowerCase();return n?i3[n]:void 0}var Up="@angular-eslint/template/",o3=QE.default;function l3(e){return e?{...$p,parseForESLint(t,n){let r=$p.parseForESLint(t,n),s=i=>{if(i.type==="Element"){let a=i.name,c=sS(a,u=>i.attributes.find(p=>p.name===u)?.value,e,!0);c&&(Hp.set(i,a),i.name=c)}pD(i,s)};return r.ast.templateNodes.forEach(s),r}}:$p}function c3(e,t){let n=Object.fromEntries(Object.keys(cD).filter(r=>!e.has(Up+r)).map(r=>[Up+r,"warn"]));return[{files:["**/*.html"],plugins:{"@angular-eslint/template":QE.default},languageOptions:{parser:l3(t)},rules:n}]}var oD=new lD.Linter({configType:"flat"});function T6(e,t){let{findings:n,content:r}=uD(e,0,t);return jp(n,r,{inputPurpose:!0})}function x6(e,t){let n=[],{templates:r,stylesheetColors:s}=p3(e),i={text:!1,elements:[],stylesheetColors:s};for(let a of r){let o=uD(a.text,a.start,t);n.push(...o.findings),i.text||=o.content.text,i.elements.push(...o.content.elements)}return jp(n,i,{inputPurpose:!0})}function uD(e,t,n){let r=nS(e),s=(c,u)=>t+r(c,u),i=[],a=tS(oD,e,"template.html",c=>c3(c,n)),o=a.some(c=>c.fatal)?void 0:d3(oD.getSourceCode().ast,t);for(let c of a){if(c.fatal){let E=s(c.line,c.column);throw new Wp(`offset ${E}`,c.message)}let u=c.ruleId?.startsWith(Up)?c.ruleId.slice(Up.length):void 0,p=u&&a3(u,c.message);if(!u||!p)continue;let h=s(c.line,c.column);if(u==="mouse-events-have-key-events"&&!o.boundEvents.get(h-t)?.has(/^`(\w+)`/.exec(c.message)?.[1]??"")||u==="label-has-associated-control"&&u3(e,h-t))continue;let f=c.endLine&&c.endColumn?s(c.endLine,c.endColumn):h,v=o3.rules[u]?.meta?.docs;i.push({range:{start:h,end:f},criteria:p,ruleId:c.ruleId,layer:"check",severity:"warning",message:c.message,explanation:v?.description?.replace(/^\[Accessibility\] /,"")??c.message,helpUrl:v?.url??`https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin-template/docs/rules/${u}.md`})}return{findings:i,content:o.content}}function u3(e,t){let n=/^<label\b[^>]*?\sid="([^"]+)"/.exec(e.slice(t))?.[1];return n!==void 0&&[...e.matchAll(/aria-labelledby="([^"]*)"/g)].some(r=>r[1].split(/\s+/).includes(n))}function p3(e){let t=Pn.default.createSourceFile("component.ts",e,Pn.default.ScriptTarget.Latest,!0),[n]=t.parseDiagnostics;if(n)throw new Wp(`offset ${n.start}`,Pn.default.flattenDiagnosticMessageText(n.messageText," "));let r=[],s=!1,i=a=>{if(Pn.default.isDecorator(a)&&Pn.default.isCallExpression(a.expression)&&Pn.default.isIdentifier(a.expression.expression)&&a.expression.expression.text==="Component"){let o=a.expression.arguments[0];if(o&&Pn.default.isObjectLiteralExpression(o)){let c=f=>o.properties.find(v=>Pn.default.isPropertyAssignment(v)&&v.name.getText(t)===f),u=c("styles")?.initializer;u&&rS(u.getText(t))&&(s=!0),(c("styleUrl")||c("styleUrls"))&&(s=!0);let h=c("template")?.initializer;if(h&&(Pn.default.isStringLiteral(h)||Pn.default.isNoSubstitutionTemplateLiteral(h))){let f=h.getStart(t)+1;r.push({text:e.slice(f,h.getEnd()-1),start:f})}}}Pn.default.forEachChild(a,i)};return i(t),{templates:r,stylesheetColors:s}}var h3=[2,3];function d3(e,t){let n={text:!1,elements:[]},r=new Map,s=(i,a)=>{if(i.type==="Text"&&typeof i.value=="string"&&i.value.trim()&&(n.text=!0,qp(a,i.value)),i.type==="BoundText"&&(n.text=!0,qp(a,!0)),i.type==="Element"){let o=i.sourceSpan.start.offset,c=i.startSourceSpan.end.offset,u={tag:i.name,attributes:f3(i),range:{start:t+o,end:t+c},parent:a},p=Hp.get(i);p&&(u.component=p),i.inputs.some(h=>h3.includes(h.__originalType??-1)||["class","style","ngclass","ngstyle"].includes(h.name.toLowerCase()))&&(u.boundStyle=!0),n.elements.push(u),r.set(o,new Set(i.outputs.map(h=>h.name))),a=u}pD(i,o=>s(o,a))};return e.templateNodes.forEach(i=>s(i)),{content:n,boundEvents:r}}function pD(e,t){for(let n of["children","branches","groups","cases","empty","placeholder","loading","error"])for(let r of[e[n]].flat())r&&typeof r=="object"&&t(r)}function f3(e){let t=new Map;for(let n of e.attributes)t.set(n.name.toLowerCase(),n.value);for(let n of e.inputs)t.set(n.name.replace(/^attr\./,"").toLowerCase(),!0);return t}export{i3 as ELEMENTS_CONTENT_CRITERIA,cD as RULE_CRITERIA,x6 as checkAngularComponents,T6 as checkAngularTemplate,a3 as criteriaOf};
93
+ /*! Bundled license information:
94
+
95
+ @angular-eslint/bundled-angular-compiler/dist/index.js:
96
+ (*! Bundled license information:
97
+
98
+ @angular/compiler/fesm2022/compiler.mjs:
99
+ (**
100
+ * @license Angular v22.2.1
101
+ * (c) 2010-2026 Google LLC. https://angular.dev/
102
+ * License: MIT
103
+ *)
104
+ (**
105
+ *
106
+ * @license
107
+ * Copyright Google LLC All Rights Reserved.
108
+ *
109
+ * Use of this source code is governed by an MIT-style license that can be
110
+ * found in the LICENSE file at https://angular.dev/license
111
+ *)
112
+ *)
113
+ */