!function(e,t){"object"==typeofexports&&"undefined"!=typeofmodule?t(exports):"function"==typeofdefine&&define.amd?define(["exports"],t):t(((e=e||self).prettierPlugins=e.prettierPlugins||{},e.prettierPlugins.html={}))}(this,(function(e){"use strict";constt=/[|\\{}()[\]^$+*?.-]/g;varr=e=>{if("string"!=typeofe)thrownewTypeError("Expected a string");returne.replace(t,"\\$&")};constn={"---":"yaml","+++":"toml"};vars=function(e){constt=Object.keys(n).map(r).join("|"),s=e.match(newRegExp("^(".concat(t,")[^\\n\\S]*\\n(?:([\\s\\S]*?)\\n)?\\1[^\\n\\S]*(\\n|$)")));if(null===s)return{frontMatter:null,content:e};const[i,o,a]=s;return{frontMatter:{type:n[o],value:a,raw:i.replace(/\n$/,"")},content:i.replace(/[^\n]/g," ")+e.slice(i.length)}},i=Object.freeze({__proto__:null,default:["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]}),o=["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","tabindex","target","type"],a=["title"],c=["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"],l=["accesskey","alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","tabindex","target","type"],p=["autoplay","controls","crossorigin","loop","muted","preload","src"],u=["href","target"],h=["color","face","size"],d=["dir"],m=["cite"],f=["alink","background","bgcolor","link","text","vlink"],g=["clear"],_=["accesskey","autofocus","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","tabindex","type","value"],T=["height","width"],S=["align"],y=["align","char","charoff","span","valign","width"],b=["align","char","charoff","span","valign","width"],C=["value"],E=["cite","datetime"],v=["open"],A=["title"],w=["open"],k=["compact"],N=["align"],x=["compact"],P=["height","src","type","width"],D=["disabled","form","name"],R=["color","face","size"],O=["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"],q=["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"],L=["cols","rows"],$=["align"],I=["align"],M=["align"],U=["align"],B=["align"],F=["align"],V=["profile"],H=["align","noshade","size","width"],G=["manifest","version"],j=["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"],X=["align","alt","border","crossorigin","decoding","height","hspace","ismap","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"],z=["accept","accesskey","align","alt","autocomplete","autofocus","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","tabindex","title","type","usemap","value",
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}}}));qe(St);St.StaticSymbol,St.StaticSymbolCache;varyt=Le((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(c(e))thrownewError("Illegal state: value cannot be a promise");returne},then:(e,t)=>c(e)?e.then(t):t(e),all:e=>e.some(c)?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({});functionc(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=c;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(".")}};constl="undefined"!=typeofwindow&&window,p="undefined"!=typeofself&&"undefined"!=typeofWorkerGlobalScope&&selfinstanceofWorkerGlobalScope&&self,u=void0!==Oe&&Oe||l||p;t.global=u}));qe(yt);yt.dashCaseToCamelCase,yt.splitAtColon,yt.splitAtPeriod,yt.visitValue,yt.isDefined,yt.noUndefined,yt.ValueTransformer,yt.SyncAsync,yt.error,yt.syntaxError,yt.isSyntaxError,yt.getParseErrors,yt.escapeRegExp,yt.utf8Encode,yt.stringify,yt.resolveForwardRef,yt.isPromise,yt.Version,yt.global;varbt=Le((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(tinstanceofSt.StaticSymbol)returnt.name;if(t.__anonymousType)returnt.__anonymousType;letr=yt.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;returntinstanceofSt.StaticSymbol?t.filePath:"./".concat(yt.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=c(t),this.styleUrls=c(r)}};t.CompileTemplateMetadata=class{constructor({encapsulation:e,template:t,templateUrl:r,htmlAst:n,styles:s,styleUrls:i,externalStylesheets:o,animations:a,ngContentSelectors:p,interpolation:u,isInline:h,preserveWhitespaces:d}){if(this.encapsulation=e,this.template=t,this.templateUrl=r,this.htmlAst=n,this.styles=c(s),this.styleUrls=c(i),this.externalStylesheets=c(o),this.animations=a?l(a):[],this.ngContentSelectors=p||[],u&&2!=u.length)thrownewError("'interpolation' should have a start and an end symbol.");this.interpolation=u,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:c,outputs:l,host:p,providers:u,viewProviders:h,queries:d,guards:m,viewQueries:f,entryComponents:g,template:_,componentViewType:T,rendererType:S,componentFactory:y}){constb={},C={},E={};null!=p&&Object.keys(p).forEach(e=>{constt=p[e],n=e.match(r);null===n?E[e]=t:null!=n[1]?C[n[1]]=t:null!=n[2]&&(b[n[2]]=t)});constv={};null!=c&&c.forEach(e=>{constt=yt.splitAtColon(e,[e,e]);v[t[0]]=t[1]});constA={};returnnull!=l&&l.forEach(e=>{constt=yt.splitAtColon(e,[e,e]);A[t[0]]=t[1]}),newa({isHost:e,type:t,isComponent:!!n,selector:s,exportAs:i,changeDetection:o,inputs:v,outputs:A,hostListeners:b,hostProperties:C,hostAttributes:E,providers:u,viewProviders:h,queries:d,guards:m,viewQueries:f,entryComponents:g,template:_,componentViewType:T,rendererType:S,componentFactory:y})}constructor({isHost:e,type:t,isComponent:r,selector:n,exportAs:s,changeDetection:i,inputs:o,outputs:a,hostListeners:l,hostProperties:p,hostAttributes:u,providers:h,viewProviders:d,queries:m,guards:f,viewQueries:g,entryComponents:_,template:T,componentViewType:S,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=l,this.hostProperties=p,this.hostAttributes=u,this.providers=c(h),this.viewProviders=c(d),this.queries=c(m),this.guards=f,this.viewQueries=c(g),this.entryComponents=c(_),this.template=T,this.componentViewType=S,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."))})}}}));qe(At);At.assertArrayOfStrings,At.assertInterpolationSymbols;varwt=Le((function(e,t){
Object.defineProperty(t,"__esModule",{value:!0});constr=Tt;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;classiextendsCt.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={}){returnnewu(newCt.ParseSourceFile(e,t),r,n).tokenize()};consta=/\r\n?/g;functionc(e){constt=e===r.$EOF?"EOF":String.fromCharCode(e);return'Unexpected character "'.concat(t,'"')}functionl(e){return'Unknown entity "'.concat(e,'" - use the "&#<decimal>;" or "&#x<hex>;" syntax')}classp{constructor(e){this.error=e}}classu{constructor(e,t,r){this._getTagDefinition=t,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._tokenizeIcu=r.tokenizeExpansionForms||!1,this._interpolationConfig=r.interpolationConfig||wt.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?newT(e,n):new_(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("Programming error - attempted to end a token which has no token type",null,this.