!function(e,t){"object"==typeofexports&&"undefined"!=typeofmodule?module.exports=t():"function"==typeofdefine&&define.amd?define(t):((e="undefined"!=typeofglobalThis?globalThis:e||self).prettierPlugins=e.prettierPlugins||{},e.prettierPlugins.html=t())}(this,(function(){"use strict";vare=e=>{if("string"!=typeofe)thrownewTypeError("Expected a string");returne.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};functiont(e){return{type:"concat",parts:e}}functionr(e){return{type:"indent",contents:e}}functionn(e,t){return{type:"align",contents:t,n:e}}functions(e,t){return{type:"group",id:(t=t||{}).id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}consti={type:"break-parent"},o=t([{type:"line",hard:!0},i]),a=t([{type:"line",hard:!0,literal:!0},i]);varu={concat:t,join:function(e,r){constn=[];for(lett=0;t<r.length;t++)0!==t&&n.push(e),n.push(r[t]);returnt(n)},line:{type:"line"},softline:{type:"line",soft:!0},hardline:o,literalline:a,group:s,conditionalGroup:function(e,t){returns(e[0],Object.assign({},t,{expandedStates:e}))},fill:function(e){return{type:"fill",parts:e}},lineSuffix:function(e){return{type:"line-suffix",contents:e}},lineSuffixBoundary:{type:"line-suffix-boundary"},cursor:{type:"cursor",placeholder:Symbol("cursor")},breakParent:i,ifBreak:function(e,t,r){return{type:"if-break",breakContents:e,flatContents:t,groupId:(r=r||{}).groupId}},trim:{type:"trim"},indent:r,align:n,addAlignmentToDoc:function(e,t,s){leti=e;if(t>0){for(lete=0;e<Math.floor(t/s);++e)i=r(i);i=n(t%s,i),i=n(-1/0,i)}returni},markAsRoot:function(e){returnn({type:"root"},e)},dedentToRoot:function(e){returnn(-1/0,e)},dedent:function(e){returnn(-1,e)}},c=e=>"string"==typeofe?e.replace((({onlyFirst:e=!1}={})=>{constt=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");returnnewRegExp(t,e?void0:"g")})(),""):e;constl=e=>!Number.isNaN(e)&&(e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141));varp=l,h=l;p.default=h;constD=e=>{if("string"!=typeof(e=e.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83
Object.defineProperty(t,"__esModule",{value:!0});classr{constructor(e,t,r){this.filePath=e,this.name=t,this.members=r}assertNoMembers(){if(this.members.length)thrownewError("Illegal state: symbol without members expected, but got ".concat(JSON.stringify(this),"."))}}t.StaticSymbol=r;t.StaticSymbolCache=class{constructor(){this.cache=newMap}get(e,t,n){consts=(n=n||[]).length?".".concat(n.join(".")):"",i='"'.concat(e,'".').concat(t).concat(s);leto=this.cache.get(i);returno||(o=newr(e,t,n),this.cache.set(i,o)),o}}})),Xn=H((function(e,t){
Object.defineProperty(t,"__esModule",{value:!0});constr=/-+([a-z0-9])/g;functionn(e,t,r){constn=e.indexOf(t);return-1==n?r:[e.slice(0,n).trim(),e.slice(n+1).trim()]}functions(e,t,r){returnArray.isArray(e)?t.visitArray(e,r):"object"==typeof(n=e)&&null!==n&&Object.getPrototypeOf(n)===a?t.visitStringMap(e,r):null==e||"string"==typeofe||"number"==typeofe||"boolean"==typeofe?t.visitPrimitive(e,r):t.visitOther(e,r);varn}t.dashCaseToCamelCase=function(e){returne.replace(r,(...e)=>e[1].toUpperCase())},t.splitAtColon=function(e,t){returnn(e,":",t)},t.splitAtPeriod=function(e,t){returnn(e,".",t)},t.visitValue=s,t.isDefined=function(e){returnnull!=e},t.noUndefined=function(e){returnvoid0===e?null:e};t.ValueTransformer=class{visitArray(e,t){returne.map(e=>s(e,this,t))}visitStringMap(e,t){constr={};returnObject.keys(e).forEach(n=>{r[n]=s(e[n],this,t)}),r}visitPrimitive(e,t){returne}visitOther(e,t){returne}},t.SyncAsync={assertSync:e=>{if(u(e))thrownewError("Illegal state: value cannot be a promise");returne},then:(e,t)=>u(e)?e.then(t):t(e),all:e=>e.some(u)?Promise.all(e):e},t.error=function(e){thrownewError("Internal Error: ".concat(e))},t.syntaxError=function(e,t){constr=Error(e);returnr[i]=!0,t&&(r[o]=t),r};consti="ngSyntaxError",o="ngParseErrors";t.isSyntaxError=function(e){returne[i]},t.getParseErrors=function(e){returne[o]||[]},t.escapeRegExp=function(e){returne.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")};consta=Object.getPrototypeOf({});functionu(e){return!!e&&"function"==typeofe.then}t.utf8Encode=function(e){lett="";for(letr=0;r<e.length;r++){letn=e.charCodeAt(r);if(n>=55296&&n<=56319&&e.length>r+1){constt=e.charCodeAt(r+1);t>=56320&&t<=57343&&(r++,n=(n-55296<<10)+t-56320+65536)}n<=127?t+=String.fromCharCode(n):n<=2047?t+=String.fromCharCode(n>>6&31|192,63&n|128):n<=65535?t+=String.fromCharCode(n>>12|224,n>>6&63|128,63&n|128):n<=2097151&&(t+=String.fromCharCode(n>>18&7|240,n>>12&63|128,n>>6&63|128,63&n|128))}returnt},t.stringify=functione(t){if("string"==typeoft)returnt;if(tinstanceofArray)return"["+t.map(e).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);if(!t.toString)return"object";constr=t.toString();if(null==r)return""+r;constn=r.indexOf("\n");return-1===n?r:r.substring(0,n)},t.resolveForwardRef=function(e){return"function"==typeofe&&e.hasOwnProperty("__forward_ref__")?e():e},t.isPromise=u;t.Version=class{constructor(e){this.full=e;constt=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}};constc="undefined"!=typeofwindow&&window,l="undefined"!=typeofself&&"undefined"!=typeofWorkerGlobalScope&&selfinstanceofWorkerGlobalScope&&self,p=void0!==V&&V||c||l;t.global=p})),zn=H((function(e,t){
Object.defineProperty(t,"__esModule",{value:!0});constr=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;functionn(e){returne.replace(/\W/g,"_")}t.sanitizeIdentifier=n;lets=0;functioni(e){if(!e||!e.reference)returnnull;constt=e.reference;if(tinstanceofHn.StaticSymbol)returnt.name;if(t.__anonymousType)returnt.__anonymousType;letr=Xn.stringify(t);returnr.indexOf("(")>=0?(r="anonymous_".concat(s++),t.__anonymousType=r):r=n(r),r}varo;t.identifierName=i,t.identifierModuleUrl=function(e){constt=e.reference;returntinstanceofHn.StaticSymbol?t.filePath:"./".concat(Xn.stringify(t))},t.viewClassName=function(e,t){return"View_".concat(i({reference:e}),"_").concat(t)},t.rendererTypeName=function(e){return"RenderType_".concat(i({reference:e}))},t.hostViewClassName=function(e){return"HostView_".concat(i({reference:e}))},t.componentFactoryName=function(e){return"".concat(i({reference:e}),"NgFactory")},function(e){e[e.Pipe=0]="Pipe",e[e.Directive=1]="Directive",e[e.NgModule=2]="NgModule",e[e.Injectable=3]="Injectable"}(o=t.CompileSummaryKind||(t.CompileSummaryKind={})),t.tokenName=function(e){returnnull!=e.value?n(e.value):i(e.identifier)},t.tokenReference=function(e){returnnull!=e.identifier?e.identifier.reference:e.value};t.CompileStylesheetMetadata=class{constructor({moduleUrl:e,styles:t,styleUrls:r}={}){this.moduleUrl=e||null,this.styles=u(t),this.styleUrls=u(r)}};t.CompileTemplateMetadata=class{constructor({encapsulation:e,template:t,templateUrl:r,htmlAst:n,styles:s,styleUrls:i,externalStylesheets:o,animations:a,ngContentSelectors:l,interpolation:p,isInline:h,preserveWhitespaces:D}){if(this.encapsulation=e,this.template=t,this.templateUrl=r,this.htmlAst=n,this.styles=u(s),this.styleUrls=u(i),this.externalStylesheets=u(o),this.animations=a?c(a):[],this.ngContentSelectors=l||[],p&&2!=p.length)thrownewError("'interpolation' should have a start and an end symbol.");this.interpolation=p,this.isInline=h,this.preserveWhitespaces=D}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};classa{staticcreate({isHost:e,type:t,isComponent:n,selector:s,exportAs:i,changeDetection:o,inputs:u,outputs:c,host:l,providers:p,viewProviders:h,queries:D,guards:d,viewQueries:f,entryComponents:m,template:g,componentViewType:E,rendererType:C,componentFactory:y}){constb={},T={},_={};null!=l&&Object.keys(l).forEach(e=>{constt=l[e],n=e.match(r);null===n?_[e]=t:null!=n[1]?T[n[1]]=t:null!=n[2]&&(b[n[2]]=t)});constS={};null!=u&&u.forEach(e=>{constt=Xn.splitAtColon(e,[e,e]);S[t[0]]=t[1]});constF={};returnnull!=c&&c.forEach(e=>{constt=Xn.splitAtColon(e,[e,e]);F[t[0]]=t[1]}),newa({isHost:e,type:t,isComponent:!!n,selector:s,exportAs:i,changeDetection:o,inputs:S,outputs:F,hostListeners:b,hostProperties:T,hostAttributes:_,providers:p,viewProviders:h,queries:D,guards:d,viewQueries:f,entryComponents:m,template:g,componentViewType:E,rendererType:C,componentFactory:y})}constructor({isHost:e,type:t,isComponent:r,selector:n,exportAs:s,changeDetection:i,inputs:o,outputs:a,hostListeners:c,hostProperties:l,hostAttributes:p,providers:h,viewProviders:D,queries:d,guards:f,viewQueries:m,entryComponents:g,template:E,componentViewType:C,rendererType:y,componentFactory:b}){this.isHost=!!e,this.type=t,this.isComponent=r,this.selector=n,this.exportAs=s,this.changeDetection=i,this.inputs=o,this.outputs=a,this.hostListeners=c,this.hostProperties=l,this.hostAttributes=p,this.providers=u(h),this.viewProviders=u(D),this.queries=u(d),this.guards=f,this.viewQueries=u(m),this.entryComponents=u(g),this.template=E,this.componentViewType=C,this.rendererType=y,this.componentFactory=b}toSummary(){return{summaryKind:o.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueri
Object.defineProperty(t,"__esModule",{value:!0}),t.assertArrayOfStrings=function(e,t){if(null!=t){if(!Array.isArray(t))thrownewError("Expected '".concat(e,"' to be an array of strings."));for(letr=0;r<t.length;r+=1)if("string"!=typeoft[r])thrownewError("Expected '".concat(e,"' to be an array of strings."))}};constr=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];t.assertInterpolationSymbols=function(e,t){if(!(null==t||Array.isArray(t)&&2==t.length))thrownewError("Expected '".concat(e,"' to be an array, [start, end]."));if(null!=t){conste=t[0],n=t[1];r.forEach(t=>{if(t.test(e)||t.test(n))thrownewError("['".concat(e,"', '").concat(n,"'] contains unusable interpolation symbol."))})}}})),Zn=H((function(e,t){
Object.defineProperty(t,"__esModule",{value:!0});constr=Vn;varn;!function(e){e[e.TAG_OPEN_START=0]="TAG_OPEN_START",e[e.TAG_OPEN_END=1]="TAG_OPEN_END",e[e.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",e[e.TAG_CLOSE=3]="TAG_CLOSE",e[e.TEXT=4]="TEXT",e[e.ESCAPABLE_RAW_TEXT=5]="ESCAPABLE_RAW_TEXT",e[e.RAW_TEXT=6]="RAW_TEXT",e[e.COMMENT_START=7]="COMMENT_START",e[e.COMMENT_END=8]="COMMENT_END",e[e.CDATA_START=9]="CDATA_START",e[e.CDATA_END=10]="CDATA_END",e[e.ATTR_NAME=11]="ATTR_NAME",e[e.ATTR_QUOTE=12]="ATTR_QUOTE",e[e.ATTR_VALUE=13]="ATTR_VALUE",e[e.DOC_TYPE_START=14]="DOC_TYPE_START",e[e.DOC_TYPE_END=15]="DOC_TYPE_END",e[e.EXPANSION_FORM_START=16]="EXPANSION_FORM_START",e[e.EXPANSION_CASE_VALUE=17]="EXPANSION_CASE_VALUE",e[e.EXPANSION_CASE_EXP_START=18]="EXPANSION_CASE_EXP_START",e[e.EXPANSION_CASE_EXP_END=19]="EXPANSION_CASE_EXP_END",e[e.EXPANSION_FORM_END=20]="EXPANSION_FORM_END",e[e.EOF=21]="EOF"}(n=t.TokenType||(t.TokenType={}));classs{constructor(e,t,r){this.type=e,this.parts=t,this.sourceSpan=r}}t.Token=s;classiextendsWn.ParseError{constructor(e,t,r){super(r,e),this.tokenType=t}}t.TokenError=i;classo{constructor(e,t){this.tokens=e,this.errors=t}}t.TokenizeResult=o,t.tokenize=function(e,t,r,n={}){returnnewp(newWn.ParseSourceFile(e,t),r,n).tokenize()};consta=/\r\n?/g;functionu(e){constt=e===r.$EOF?"EOF":String.fromCharCode(e);return'Unexpected character "'.concat(t,'"')}functionc(e){return'Unknown entity "'.concat(e,'" - use the "&#<decimal>;" or "&#x<hex>;" syntax')}classl{constructor(e){this.error=e}}classp{constructor(e,t,r){this._getTagContentType=t,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this._tokenizeIcu=r.tokenizeExpansionForms||!1,this._interpolationConfig=r.interpolationConfig||Zn.DEFAULT_INTERPOLATION_CONFIG,this._leadingTriviaCodePoints=r.leadingTriviaChars&&r.leadingTriviaChars.map(e=>e.codePointAt(0)||0),this._canSelfClose=r.canSelfClose||!1,this._allowHtmComponentClosingTags=r.allowHtmComponentClosingTags||!1;constn=r.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=r.escapedString?newE(e,n):newg(e,n);try{this._cursor.init()}catch(e){this.handleError(e)}}_processCarriageReturns(e){returne.replace(a,"\n")}tokenize(){for(;this._cursor.peek()!==r.$EOF;){conste=this._cursor.clone();try{if(this._attemptCharCode(r.$LT))if(this._attemptCharCode(r.$BANG))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);elseif(this._attemptCharCode(r.$SLASH))this._consumeTagClose(e);else{constt=this._cursor.clone();this._attemptCharCode(r.$QUESTION)?(this._cursor=t,this._consumeBogusComment(e)):this._consumeTagOpen(e)}elsethis._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(e){this.handleError(e)}}returnthis._beginToken(n.EOF),this._endToken([]),newo(function(e){constt=[];letr=void0;for(lets=0;s<e.length;s++){consti=e[s];r&&r.type==n.TEXT&&i.type==n.TEXT?(r.parts[0]+=i.parts[0],r.sourceSpan.end=i.sourceSpan.end):(r=i,t.push(r))}returnt}(this.tokens),this.errors)}_tokenizeExpansionForm(){if(this.isExpansionFormStart())returnthis._consumeExpansionFormStart(),!0;if(((e=this._cursor.peek())===r.$EQ||r.isAsciiLetter(e)||r.isDigit(e))&&this._isInExpansionForm())returnthis._consumeExpansionCaseStart(),!0;vare;if(this._cursor.peek()===r.$RBRACE){if(this._isInExpansionCase())returnthis._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())returnthis._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,t=this._cursor.clone()){this._currentTokenStart=t,this._currentTokenType=e}_endToken(e,t=this._cursor.clone()){if(null===this._currentTokenStart)thrownewi("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(t));if(null===this._currentTokenType)thrownewi("Programmingerror-attemptedtoendatokenwhichhasn