@shopify/create-hydrogen 5.0.28 → 5.0.30
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.
- package/dist/acorn-CAM24XUM.js +17 -0
- package/dist/angular-DNP7YRKH.js +5 -0
- package/dist/assets/hydrogen/starter/CHANGELOG.md +47 -0
- package/dist/assets/hydrogen/starter/app/components/Aside.tsx +4 -2
- package/dist/assets/hydrogen/starter/app/components/CartMain.tsx +6 -3
- package/dist/assets/hydrogen/starter/app/components/CartSummary.tsx +117 -23
- package/dist/assets/hydrogen/starter/app/components/Header.tsx +3 -3
- package/dist/assets/hydrogen/starter/app/components/MockShopNotice.tsx +20 -0
- package/dist/assets/hydrogen/starter/app/entry.client.tsx +2 -3
- package/dist/assets/hydrogen/starter/app/routes/[robots.txt].tsx +14 -53
- package/dist/assets/hydrogen/starter/app/routes/_index.tsx +15 -9
- package/dist/assets/hydrogen/starter/app/routes/account.$.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/account.addresses.tsx +13 -13
- package/dist/assets/hydrogen/starter/app/routes/account.profile.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/account.tsx +4 -7
- package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle._index.tsx +2 -9
- package/dist/assets/hydrogen/starter/app/routes/blogs._index.tsx +1 -4
- package/dist/assets/hydrogen/starter/app/routes/cart.tsx +1 -5
- package/dist/assets/hydrogen/starter/app/routes/collections.all.tsx +1 -3
- package/dist/assets/hydrogen/starter/app/routes/pages.$handle.tsx +2 -8
- package/dist/assets/hydrogen/starter/app/routes/policies.$handle.tsx +1 -4
- package/dist/assets/hydrogen/starter/app/routes/policies._index.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/products.$handle.tsx +2 -9
- package/dist/assets/hydrogen/starter/app/routes/search.tsx +18 -12
- package/dist/assets/hydrogen/starter/app/styles/app.css +51 -0
- package/dist/assets/hydrogen/starter/guides/predictiveSearch/predictiveSearch.md +3 -3
- package/dist/assets/hydrogen/starter/guides/search/search.md +1 -1
- package/dist/assets/hydrogen/starter/package.json +10 -10
- package/dist/assets/hydrogen/starter/vite.config.ts +1 -1
- package/dist/assets/hydrogen/vite/vite.config.js +1 -1
- package/dist/babel-Q7WGFTYC.js +16 -0
- package/dist/chunk-6JMCCVMB.js +1178 -0
- package/dist/chunk-AMAQOLRU.js +51 -0
- package/dist/{chunk-RUCJI22O.js → chunk-FOFKID43.js} +1 -1
- package/dist/{chunk-6YUUFKYO.js → chunk-KP5HTXEK.js} +1 -1
- package/dist/{chunk-Y5VZE2FH.js → chunk-MLIZM3D3.js} +1 -1
- package/dist/{chunk-VXJIQGAB.js → chunk-SOYTF5NM.js} +1 -1
- package/dist/chunk-SSCFXJTG.js +2 -0
- package/dist/chunk-TDF32DPQ.js +5 -0
- package/dist/create-app.js +185 -934
- package/dist/{del-VDYQZFAQ.js → del-SDQ4S47S.js} +1 -1
- package/dist/devtools-RYOXA5H7.js +8 -0
- package/dist/error-handler-SA6VDSNI.js +2 -0
- package/dist/estree-V6MYQTSR.js +45 -0
- package/dist/flow-6QBD7VFZ.js +21 -0
- package/dist/glimmer-F25SYUSG.js +38 -0
- package/dist/graphql-DIAYZHIY.js +29 -0
- package/dist/html-AE7KHAJ7.js +26 -0
- package/dist/{is-wsl-52AELLDM.js → is-wsl-7NORHMI2.js} +1 -1
- package/dist/markdown-W7E2MOQ2.js +63 -0
- package/dist/meriyah-37WUJX22.js +6 -0
- package/dist/{morph-S2LU6PQ4.js → morph-IIMCOPW3.js} +114 -114
- package/dist/{multipart-parser-MX4R5XJM.js → multipart-parser-JT5WYXDW.js} +1 -1
- package/dist/open-VLBBYVPL.js +2 -0
- package/dist/{out-U7AI7XUQ.js → out-YA75DDJD.js} +1 -1
- package/dist/postcss-7X2D3S46.js +62 -0
- package/dist/typescript-AXPPFPUX.js +22 -0
- package/dist/yaml-U74YVCK4.js +160 -0
- package/package.json +10 -9
- package/dist/chunk-AUULK6IN.js +0 -5
- package/dist/chunk-CJKPLQJ7.js +0 -51
- package/dist/chunk-YKN6SEJT.js +0 -1189
- package/dist/chunk-ZLNTSIDN.js +0 -2
- package/dist/devtools-3BYEW2L2.js +0 -8
- package/dist/error-handler-2JZDGPAN.js +0 -2
- package/dist/open-PMJ32HTM.js +0 -2
- /package/dist/{chunk-LBUW5UHX.js → chunk-Y52UPHAG.js} +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'module';globalThis.require = __createRequire(import.meta.url);
|
|
2
|
+
import{i as Ke}from"./chunk-Y52UPHAG.js";Ke();var ln=Object.defineProperty,De=(t,e)=>{for(var r in e)ln(t,r,{get:e[r],enumerable:!0})},cn={};De(cn,{languages:()=>gi,parsers:()=>rn,printers:()=>Pi});var br=(t,e)=>(r,a,...n)=>r|1&&a==null?void 0:(e.call(a)??a[t]).apply(a,n),hn=String.prototype.replaceAll??function(t,e){return t.global?this.replace(t,e):this.split(t).join(e)},pn=br("replaceAll",function(){if(typeof this=="string")return hn}),Vt=pn;function dn(t){return this[t<0?this.length+t:t]}var mn=br("at",function(){if(Array.isArray(this)||typeof this=="string")return dn}),Y=mn,fn=()=>{},Ht=fn,Ar="string",Dr="array",Er="cursor",Ee="indent",ve="align",vr="trim",Ce="group",Se="fill",ke="if-break",Cr="indent-if-break",Sr="line-suffix",kr="line-suffix-boundary",gt="line",wr="label",we="break-parent",Br=new Set([Er,Ee,ve,vr,Ce,Se,ke,Cr,Sr,kr,gt,wr,we]);function gn(t){if(typeof t=="string")return Ar;if(Array.isArray(t))return Dr;if(!t)return;let{type:e}=t;if(Br.has(e))return e}var xr=gn,yn=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function bn(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}',
|
|
3
|
+
Expected it to be 'string' or 'object'.`;if(xr(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let a=yn([...Br].map(n=>`'${n}'`));return`Unexpected doc.type '${t.type}'.
|
|
4
|
+
Expected it to be ${a}.`}var An=class extends Error{name="InvalidDocError";constructor(t){super(bn(t)),this.doc=t}},Dn=An;function En(t,e){if(typeof t=="string")return e(t);let r=new Map;return a(t);function a(i){if(r.has(i))return r.get(i);let s=n(i);return r.set(i,s),s}function n(i){switch(xr(i)){case Dr:return e(i.map(a));case Se:return e({...i,parts:i.parts.map(a)});case ke:return e({...i,breakContents:a(i.breakContents),flatContents:a(i.flatContents)});case Ce:{let{expandedStates:s,contents:u}=i;return s?(s=s.map(a),u=s[0]):u=a(u),e({...i,contents:u,expandedStates:s})}case ve:case Ee:case Cr:case wr:case Sr:return e({...i,contents:a(i.contents)});case Ar:case Er:case vr:case kr:case gt:case we:return e(i);default:throw new Dn(i)}}}function ae(t,e=Bn){return En(t,r=>typeof r=="string"?Bt(e,r.split(`
|
|
5
|
+
`)):r)}var mt=Ht,Tr=Ht,vn=Ht,Cn=Ht;function R(t){return mt(t),{type:Ee,contents:t}}function Sn(t,e){return Cn(t),mt(e),{type:ve,contents:e,n:t}}function Je(t){return Sn(-1,t)}var Nr={type:we};function Qe(t){return vn(t),{type:Se,parts:t}}function L(t,e={}){return mt(t),Tr(e.expandedStates,!0),{type:Ce,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function Ye(t,e="",r={}){return mt(t),e!==""&&mt(e),{type:ke,breakContents:t,flatContents:e,groupId:r.groupId}}function Bt(t,e){mt(t),Tr(e);let r=[];for(let a=0;a<e.length;a++)a!==0&&r.push(t),r.push(e[a]);return r}var x={type:gt},V={type:gt,soft:!0},kn={type:gt,hard:!0},yt=[kn,Nr],wn={type:gt,hard:!0,literal:!0},Bn=[wn,Nr],Pr=Object.freeze({character:"'",codePoint:39}),Fr=Object.freeze({character:'"',codePoint:34}),xn=Object.freeze({preferred:Pr,alternate:Fr}),Tn=Object.freeze({preferred:Fr,alternate:Pr});function Nn(t,e){let{preferred:r,alternate:a}=e===!0||e==="'"?xn:Tn,{length:n}=t,i=0,s=0;for(let u=0;u<n;u++){let l=t.charCodeAt(u);l===r.codePoint?i++:l===a.codePoint&&s++}return(i>s?a:r).character}var he=Nn;function Pn(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Fn=class{#t;constructor(t){this.#t=new Set(t)}getLeadingWhitespaceCount(t){let e=this.#t,r=0;for(let a=0;a<t.length&&e.has(t.charAt(a));a++)r++;return r}getTrailingWhitespaceCount(t){let e=this.#t,r=0;for(let a=t.length-1;a>=0&&e.has(t.charAt(a));a--)r++;return r}getLeadingWhitespace(t){let e=this.getLeadingWhitespaceCount(t);return t.slice(0,e)}getTrailingWhitespace(t){let e=this.getTrailingWhitespaceCount(t);return t.slice(t.length-e)}hasLeadingWhitespace(t){return this.#t.has(t.charAt(0))}hasTrailingWhitespace(t){return this.#t.has(Y(0,t,-1))}trimStart(t){let e=this.getLeadingWhitespaceCount(t);return t.slice(e)}trimEnd(t){let e=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-e)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,e=!1){let r=`[${Pn([...this.#t].join(""))}]+`,a=new RegExp(e?`(${r})`:r,"u");return t.split(a)}hasWhitespaceCharacter(t){let e=this.#t;return Array.prototype.some.call(t,r=>e.has(r))}hasNonWhitespaceCharacter(t){let e=this.#t;return Array.prototype.some.call(t,r=>!e.has(r))}isWhitespaceOnly(t){let e=this.#t;return Array.prototype.every.call(t,r=>e.has(r))}#e(t){let e=Number.POSITIVE_INFINITY;for(let r of t.split(`
|
|
6
|
+
`)){if(r.length===0)continue;let a=this.getLeadingWhitespaceCount(r);if(a===0)return 0;r.length!==a&&a<e&&(e=a)}return e===Number.POSITIVE_INFINITY?0:e}dedentString(t){let e=this.#e(t);return e===0?t:t.split(`
|
|
7
|
+
`).map(r=>r.slice(e)).join(`
|
|
8
|
+
`)}},Ln=Fn,qn=[" ",`
|
|
9
|
+
`,"\f","\r"," "],_n=new Ln(qn),O=_n;function In(t){return Array.isArray(t)&&t.length>0}var Rt=In,On=class extends Error{name="UnexpectedNodeError";constructor(t,e,r="type"){super(`Unexpected ${e} node ${r}: ${JSON.stringify(t[r])}.`),this.node=t}},Vn=On;function Lr(t,e,r){if(t.type==="TextNode"){let a=t.chars.trim();if(!a)return null;r.tag==="style"&&r.children.length===1&&r.children[0]===t?e.chars="":e.chars=O.split(a).join(" ")}t.type==="ElementNode"&&(delete e.startTag,delete e.openTag,delete e.parts,delete e.endTag,delete e.closeTag,delete e.nameNode,delete e.body,delete e.blockParamNodes,delete e.params,delete e.path),t.type==="Block"&&(delete e.blockParamNodes,delete e.params),t.type==="AttrNode"&&t.name.toLowerCase()==="class"&&delete e.value,t.type==="PathExpression"&&(e.head=t.head.original)}Lr.ignoredProperties=new Set(["loc","selfClosing"]);var Rn=Lr;function $n(t){let{node:e}=t;if(e.type!=="TextNode")return;let{parent:r}=t;if(!(r.type==="ElementNode"&&r.tag==="style"&&r.children.length===1&&r.children[0]===e))return;let a=r.attributes.find(n=>n.type==="AttrNode"&&n.name==="lang");if(!(a&&!(a.value.type==="TextNode"&&(a.value.chars===""||a.value.chars==="css"))))return async n=>{let i=e.chars;return i.trim()?await n(i,{parser:"css"}):""}}var Hn=$n,At=null;function Ct(t){if(At!==null&&typeof At.property){let e=At;return At=Ct.prototype=null,e}return At=Ct.prototype=t??Object.create(null),new Ct}var Un=10;for(let t=0;t<=Un;t++)Ct();function zn(t){return Ct(t)}function Mn(t,e="type"){zn(t);function r(a){let n=a[e],i=t[n];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:a});return i}return r}var Gn=Mn,jn=Object.freeze([]);function qr(){return jn}var qi=qr(),_i=qr(),_r=Object.assign,Ze=console;function Wn(t,e="unexpected unreachable branch"){throw Ze.log("unreachable",t),Ze.log(`${e} :: ${JSON.stringify(t)} (${t})`),new Error("code reached unreachable")}var Kn=(function(){var t=function(U,m,b,d){for(b=b||{},d=U.length;d--;b[U[d]]=m);return b},e=[2,52],r=[1,20],a=[5,14,15,19,29,34,39,44,47,48,53,57,61],n=[1,44],i=[1,40],s=[1,43],u=[1,33],l=[1,34],h=[1,35],p=[1,36],f=[1,37],y=[1,42],D=[1,46],C=[14,15,19,29,34,39,44,47,48,53,57,61],F=[14,15,19,29,34,44,47,48,53,57,61],q=[15,18],$=[14,15,19,29,34,47,48,53,57,61],H=[33,67,73,75,84,85,86,87,88,89],k=[23,33,56,67,68,73,75,77,79,84,85,86,87,88,89],I=[1,62],w=[1,63],K=[23,33,56,68,73,79],j=[23,33,56,67,68,73,75,77,79,84,85,86,87,88,89,92,93],Oe=[2,51],Ve=[1,64],Re=[67,73,75,77,84,85,86,87,88,89],$e=[56,67,73,75,84,85,86,87,88,89],He=[1,75],Kt=[1,76],Jt=[1,83],st=[33,67,73,75,79,84,85,86,87,88,89],Ue=[23,67,73,75,84,85,86,87,88,89],ze=[67,68,73,75,84,85,86,87,88,89],ut=[33,79],Qt=[1,134],Me=[73,81],Yt={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,hash:49,expr:50,mustache_repetition0:51,mustache_option0:52,OPEN_UNESCAPED:53,mustache_repetition1:54,mustache_option1:55,CLOSE_UNESCAPED:56,OPEN_PARTIAL:57,partial_repetition0:58,partial_option0:59,openPartialBlock:60,OPEN_PARTIAL_BLOCK:61,openPartialBlock_repetition0:62,openPartialBlock_option0:63,exprHead:64,arrayLiteral:65,sexpr:66,OPEN_SEXPR:67,CLOSE_SEXPR:68,sexpr_repetition0:69,sexpr_option0:70,hash_repetition_plus0:71,hashSegment:72,ID:73,EQUALS:74,OPEN_ARRAY:75,arrayLiteral_repetition0:76,CLOSE_ARRAY:77,blockParams:78,OPEN_BLOCK_PARAMS:79,blockParams_repetition_plus0:80,CLOSE_BLOCK_PARAMS:81,path:82,dataName:83,STRING:84,NUMBER:85,BOOLEAN:86,UNDEFINED:87,NULL:88,DATA:89,pathSegments:90,sep:91,SEP:92,PRIVATE_SEP:93,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",53:"OPEN_UNESCAPED",56:"CLOSE_UNESCAPED",57:"OPEN_PARTIAL",61:"OPEN_PARTIAL_BLOCK",67:"OPEN_SEXPR",68:"CLOSE_SEXPR",73:"ID",74:"EQUALS",75:"OPEN_ARRAY",77:"CLOSE_ARRAY",79:"OPEN_BLOCK_PARAMS",81:"CLOSE_BLOCK_PARAMS",84:"STRING",85:"NUMBER",86:"BOOLEAN",87:"UNDEFINED",88:"NULL",89:"DATA",92:"SEP",93:"PRIVATE_SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,3],[8,5],[8,5],[11,5],[12,3],[60,5],[50,1],[50,1],[64,1],[64,1],[66,3],[66,5],[49,1],[72,3],[65,3],[78,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[83,2],[91,1],[91,1],[82,3],[82,1],[90,3],[90,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[51,0],[51,2],[52,0],[52,1],[54,0],[54,2],[55,0],[55,1],[58,0],[58,2],[59,0],[59,1],[62,0],[62,2],[63,0],[63,1],[69,0],[69,2],[70,0],[70,1],[71,1],[71,2],[76,0],[76,2],[80,1],[80,2]],performAction:function(U,m,b,d,E,o,T){var c=o.length-1;switch(E){case 1:return o[c-1];case 2:this.$=d.prepareProgram(o[c]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 28:case 29:case 30:case 31:case 38:case 39:case 46:case 47:this.$=o[c];break;case 9:this.$={type:"CommentStatement",value:d.stripComment(o[c]),strip:d.stripFlags(o[c],o[c]),loc:d.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:o[c],value:o[c],loc:d.locInfo(this._$)};break;case 11:this.$=d.prepareRawBlock(o[c-2],o[c-1],o[c],this._$);break;case 12:this.$={path:o[c-3],params:o[c-2],hash:o[c-1]};break;case 13:this.$=d.prepareBlock(o[c-3],o[c-2],o[c-1],o[c],!1,this._$);break;case 14:this.$=d.prepareBlock(o[c-3],o[c-2],o[c-1],o[c],!0,this._$);break;case 15:this.$={open:o[c-5],path:o[c-4],params:o[c-3],hash:o[c-2],blockParams:o[c-1],strip:d.stripFlags(o[c-5],o[c])};break;case 16:case 17:this.$={path:o[c-4],params:o[c-3],hash:o[c-2],blockParams:o[c-1],strip:d.stripFlags(o[c-5],o[c])};break;case 18:this.$={strip:d.stripFlags(o[c-1],o[c-1]),program:o[c]};break;case 19:var J=d.prepareBlock(o[c-2],o[c-1],o[c],o[c],!1,this._$),bt=d.prepareProgram([J],o[c-1].loc);bt.chained=!0,this.$={strip:o[c-2].strip,program:bt,chain:!0};break;case 21:this.$={path:o[c-1],strip:d.stripFlags(o[c-2],o[c])};break;case 22:this.$=d.prepareMustache(d.syntax.hash(o[c-1],d.locInfo(this._$),{yy:d,syntax:"expr"}),[],void 0,o[c-2],d.stripFlags(o[c-2],o[c]),this._$);break;case 23:case 24:this.$=d.prepareMustache(o[c-3],o[c-2],o[c-1],o[c-4],d.stripFlags(o[c-4],o[c]),this._$);break;case 25:this.$={type:"PartialStatement",name:o[c-3],params:o[c-2],hash:o[c-1],indent:"",strip:d.stripFlags(o[c-4],o[c]),loc:d.locInfo(this._$)};break;case 26:this.$=d.preparePartialBlock(o[c-2],o[c-1],o[c],this._$);break;case 27:this.$={path:o[c-3],params:o[c-2],hash:o[c-1],strip:d.stripFlags(o[c-4],o[c])};break;case 32:this.$=d.syntax.hash(o[c-1],d.locInfo(this._$),{yy:d,syntax:"expr"});break;case 33:this.$={type:"SubExpression",path:o[c-3],params:o[c-2],hash:o[c-1],loc:d.locInfo(this._$)};break;case 34:this.$={type:"Hash",pairs:o[c],loc:d.locInfo(this._$)};break;case 35:this.$={type:"HashPair",key:d.id(o[c-2]),value:o[c],loc:d.locInfo(this._$)};break;case 36:this.$=d.syntax.square(o[c-1],d.locInfo(this._$),{yy:d,syntax:"expr"});break;case 37:this.$=d.id(o[c-1]);break;case 40:this.$={type:"StringLiteral",value:o[c],original:o[c],loc:d.locInfo(this._$)};break;case 41:this.$={type:"NumberLiteral",value:Number(o[c]),original:Number(o[c]),loc:d.locInfo(this._$)};break;case 42:this.$={type:"BooleanLiteral",value:o[c]==="true",original:o[c]==="true",loc:d.locInfo(this._$)};break;case 43:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:d.locInfo(this._$)};break;case 44:this.$={type:"NullLiteral",original:null,value:null,loc:d.locInfo(this._$)};break;case 45:this.$=d.preparePath(!0,!1,o[c],this._$);break;case 48:this.$=d.preparePath(!1,o[c-2],o[c],this._$);break;case 49:this.$=d.preparePath(!1,!1,o[c],this._$);break;case 50:o[c-2].push({part:d.id(o[c]),original:o[c],separator:o[c-1]}),this.$=o[c-2];break;case 51:this.$=[{part:d.id(o[c]),original:o[c]}];break;case 52:case 54:case 56:case 64:case 70:case 76:case 84:case 88:case 92:case 96:case 100:case 106:this.$=[];break;case 53:case 55:case 57:case 65:case 71:case 77:case 85:case 89:case 93:case 97:case 101:case 105:case 107:case 109:o[c-1].push(o[c]);break;case 104:case 108:this.$=[o[c]];break}},table:[t([5,14,15,19,29,34,48,53,57,61],e,{3:1,4:2,6:3}),{1:[3]},{5:[1,4]},t([5,39,44,47],[2,2],{7:5,8:6,9:7,10:8,11:9,12:10,13:11,24:15,27:16,16:17,60:19,14:[1,12],15:r,19:[1,23],29:[1,21],34:[1,22],48:[1,13],53:[1,14],57:[1,18],61:[1,24]}),{1:[2,1]},t(a,[2,53]),t(a,[2,3]),t(a,[2,4]),t(a,[2,5]),t(a,[2,6]),t(a,[2,7]),t(a,[2,8]),t(a,[2,9]),{20:28,49:25,50:26,64:29,65:38,66:39,67:n,71:27,72:30,73:i,75:s,82:31,83:32,84:u,85:l,86:h,87:p,88:f,89:y,90:41},{20:28,50:45,64:29,65:38,66:39,67:n,73:D,75:s,82:31,83:32,84:u,85:l,86:h,87:p,88:f,89:y,90:41},t(C,e,{6:3,4:47}),t(F,e,{6:3,4:48}),t(q,[2,54],{17:49}),{20:28,50:50,64:29,65:38,66:39,67:n,73:D,75:s,82:31,83:32,84:u,85:l,86:h,87:p,88:f,89:y,90:41},t($,e,{6:3,4:51}),t([5,14,15,18,19,29,34,39,44,47,48,53,57,61],[2,10]),{20:52,64:53,65:38,66:39,67:n,73:D,75:s,82:31,83:32,84:u,85:l,86:h,87:p,88:f,89:y,90:41},{20:54,64:53,65:38,66:39,67:n,73:D,75:s,82:31,83:32,84:u,85:l,86:h,87:p,88:f,89:y,90:41},{20:55,64:53,65:38,66:39,67:n,73:D,75:s,82:31,83:32,84:u,85:l,86:h,87:p,88:f,89:y,90:41},{20:28,50:56,64:29,65:38,66:39,67:n,73:D,75:s,82:31,83:32,84:u,85:l,86:h,87:p,88:f,89:y,90:41},{33:[1,57]},t(H,[2,84],{51:58}),t([23,33,56,68,79],[2,34],{72:59,73:[1,60]}),t(k,[2,28]),t(k,[2,29],{91:61,92:I,93:w}),t(K,[2,104]),t(k,[2,38]),t(k,[2,39]),t(k,[2,40]),t(k,[2,41]),t(k,[2,42]),t(k,[2,43]),t(k,[2,44]),t(j,[2,30]),t(j,[2,31]),t([23,33,56,67,68,73,75,79,84,85,86,87,88,89,92,93],Oe,{74:Ve}),t(k,[2,49],{91:65,92:I,93:w}),{73:D,90:66},t(Re,[2,106],{76:67}),{20:28,49:68,50:69,64:29,65:38,66:39,67:n,71:27,72:30,73:i,75:s,82:31,83:32,84:u,85:l,86:h,87:p,88:f,89:y,90:41},t($e,[2,88],{54:70}),t(j,Oe),{25:71,38:73,39:He,43:74,44:Kt,45:72,47:[2,60]},{28:77,43:78,44:Kt,47:[2,62]},{13:80,15:r,18:[1,79]},t(H,[2,92],{58:81}),{26:82,47:Jt},t(st,[2,64],{30:84}),{91:61,92:I,93:w},t(st,[2,70],{35:85}),t(Ue,[2,56],{21:86}),t(H,[2,96],{62:87}),t(a,[2,22]),{20:28,33:[2,86],49:90,50:89,52:88,64:29,65:38,66:39,67:n,71:27,72:30,73:i,75:s,82:31,83:32,84:u,85:l,86:h,87:p,88:f,89:y,90:41},t(K,[2,105]),{74:Ve},{73:D,90:91},{73:[2,46]},{73:[2,47]},{20:28,50:92,64:29,65:38,66:39,67:n,73:D,75:s,82:31,83:32,84:u,85:l,86:h,87:p,88:f,89:y,90:41},{73:[1,93]},t(k,[2,45],{91:65,92:I,93:w}),{20:28,50:95,64:29,65:38,66:39,67:n,73:D,75:s,77:[1,94],82:31,83:32,84:u,85:l,86:h,87:p,88:f,89:y,90:41},{68:[1,96]},t(ze,[2,100],{69:97}),{20:28,49:100,50:99,55:98,56:[2,90],64:29,65:38,66:39,67:n,71:27,72:30,73:i,75:s,82:31,83:32,84:u,85:l,86:h,87:p,88:f,89:y,90:41},{26:101,47:Jt},{47:[2,61]},t(C,e,{6:3,4:102}),{47:[2,20]},{20:103,64:53,65:38,66:39,67:n,73:D,75:s,82:31,83:32,84:u,85:l,86:h,87:p,88:f,89:y,90:41},t($,e,{6:3,4:104}),{26:105,47:Jt},{47:[2,63]},t(a,[2,11]),t(q,[2,55]),{20:28,33:[2,94],49:108,50:107,59:106,64:29,65:38,66:39,67:n,71:27,72:30,73:i,75:s,82:31,83:32,84:u,85:l,86:h,87:p,88:f,89:y,90:41},t(a,[2,26]),{20:109,64:53,65:38,66:39,67:n,73:D,75:s,82:31,83:32,84:u,85:l,86:h,87:p,88:f,89:y,90:41},t(ut,[2,66],{71:27,20:28,64:29,72:30,82:31,83:32,65:38,66:39,90:41,31:110,50:111,49:112,67:n,73:i,75:s,84:u,85:l,86:h,87:p,88:f,89:y}),t(ut,[2,72],{71:27,20:28,64:29,72:30,82:31,83:32,65:38,66:39,90:41,36:113,50:114,49:115,67:n,73:i,75:s,84:u,85:l,86:h,87:p,88:f,89:y}),{20:28,22:116,23:[2,58],49:118,50:117,64:29,65:38,66:39,67:n,71:27,72:30,73:i,75:s,82:31,83:32,84:u,85:l,86:h,87:p,88:f,89:y,90:41},{20:28,33:[2,98],49:121,50:120,63:119,64:29,65:38,66:39,67:n,71:27,72:30,73:i,75:s,82:31,83:32,84:u,85:l,86:h,87:p,88:f,89:y,90:41},{33:[1,122]},t(H,[2,85]),{33:[2,87]},t(k,[2,48],{91:65,92:I,93:w}),t(K,[2,35]),t(j,[2,50]),t(j,[2,36]),t(Re,[2,107]),t(j,[2,32]),{20:28,49:125,50:124,64:29,65:38,66:39,67:n,68:[2,102],70:123,71:27,72:30,73:i,75:s,82:31,83:32,84:u,85:l,86:h,87:p,88:f,89:y,90:41},{56:[1,126]},t($e,[2,89]),{56:[2,91]},t(a,[2,13]),{38:73,39:He,43:74,44:Kt,45:128,46:127,47:[2,82]},t(st,[2,76],{40:129}),{47:[2,18]},t(a,[2,14]),{33:[1,130]},t(H,[2,93]),{33:[2,95]},{33:[1,131]},{32:132,33:[2,68],78:133,79:Qt},t(st,[2,65]),t(ut,[2,67]),{33:[2,74],37:135,78:136,79:Qt},t(st,[2,71]),t(ut,[2,73]),{23:[1,137]},t(Ue,[2,57]),{23:[2,59]},{33:[1,138]},t(H,[2,97]),{33:[2,99]},t(a,[2,23]),{68:[1,139]},t(ze,[2,101]),{68:[2,103]},t(a,[2,24]),{47:[2,19]},{47:[2,83]},t(ut,[2,78],{71:27,20:28,64:29,72:30,82:31,83:32,65:38,66:39,90:41,41:140,50:141,49:142,67:n,73:i,75:s,84:u,85:l,86:h,87:p,88:f,89:y}),t(a,[2,25]),t(a,[2,21]),{33:[1,143]},{33:[2,69]},{73:[1,145],80:144},{33:[1,146]},{33:[2,75]},t(q,[2,12]),t($,[2,27]),t(j,[2,33]),{33:[2,80],42:147,78:148,79:Qt},t(st,[2,77]),t(ut,[2,79]),t(C,[2,15]),{73:[1,150],81:[1,149]},t(Me,[2,108]),t(F,[2,16]),{33:[1,151]},{33:[2,81]},{33:[2,37]},t(Me,[2,109]),t(C,[2,17])],defaultActions:{4:[2,1],62:[2,46],63:[2,47],72:[2,61],74:[2,20],78:[2,63],90:[2,87],100:[2,91],104:[2,18],108:[2,95],118:[2,59],121:[2,99],125:[2,103],127:[2,19],128:[2,83],133:[2,69],136:[2,75],148:[2,81],149:[2,37]},parseError:function(U,m){if(m.recoverable)this.trace(U);else{var b=new Error(U);throw b.hash=m,b}},parse:function(U){var m=this,b=[0],d=[],E=[null],o=[],T=this.table,c="",J=0,bt=0,Ge=0,an=2,je=1,sn=o.slice.call(arguments,1),S=Object.create(this.lexer),rt={yy:{}};for(var Xt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Xt)&&(rt.yy[Xt]=this.yy[Xt]);S.setInput(U,rt.yy),rt.yy.lexer=S,rt.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var te=S.yylloc;o.push(te);var un=S.options&&S.options.ranges;typeof rt.yy.parseError=="function"?this.parseError=rt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Fi(z){b.length=b.length-2*z,E.length=E.length-z,o.length=o.length-z}for(var on=function(){var z;return z=S.lex()||je,typeof z!="number"&&(z=m.symbols_[z]||z),z},N,ee,nt,_,Li,re,ot={},Tt,W,We,Nt;;){if(nt=b[b.length-1],this.defaultActions[nt]?_=this.defaultActions[nt]:((N===null||typeof N>"u")&&(N=on()),_=T[nt]&&T[nt][N]),typeof _>"u"||!_.length||!_[0]){var ne="";Nt=[];for(Tt in T[nt])this.terminals_[Tt]&&Tt>an&&Nt.push("'"+this.terminals_[Tt]+"'");S.showPosition?ne="Parse error on line "+(J+1)+`:
|
|
10
|
+
`+S.showPosition()+`
|
|
11
|
+
Expecting `+Nt.join(", ")+", got '"+(this.terminals_[N]||N)+"'":ne="Parse error on line "+(J+1)+": Unexpected "+(N==je?"end of input":"'"+(this.terminals_[N]||N)+"'"),this.parseError(ne,{text:S.match,token:this.terminals_[N]||N,line:S.yylineno,loc:te,expected:Nt})}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+nt+", token: "+N);switch(_[0]){case 1:b.push(N),E.push(S.yytext),o.push(S.yylloc),b.push(_[1]),N=null,ee?(N=ee,ee=null):(bt=S.yyleng,c=S.yytext,J=S.yylineno,te=S.yylloc,Ge>0&&Ge--);break;case 2:if(W=this.productions_[_[1]][1],ot.$=E[E.length-W],ot._$={first_line:o[o.length-(W||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(W||1)].first_column,last_column:o[o.length-1].last_column},un&&(ot._$.range=[o[o.length-(W||1)].range[0],o[o.length-1].range[1]]),re=this.performAction.apply(ot,[c,bt,J,rt.yy,_[1],E,o].concat(sn)),typeof re<"u")return re;W&&(b=b.slice(0,-1*W*2),E=E.slice(0,-1*W),o=o.slice(0,-1*W)),b.push(this.productions_[_[1]][0]),E.push(ot.$),o.push(ot._$),We=T[b[b.length-2]][b[b.length-1]],b.push(We);break;case 3:return!0}}return!0}},nn=(function(){var U={EOF:1,parseError:function(m,b){if(this.yy.parser)this.yy.parser.parseError(m,b);else throw new Error(m)},setInput:function(m,b){return this.yy=b||this.yy||{},this._input=m,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var b=m.match(/(?:\r\n?|\n).*/g);return b?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},unput:function(m){var b=m.length,d=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var E=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var o=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===E.length?this.yylloc.first_column:0)+E[E.length-d.length].length-d[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[o[0],o[0]+this.yyleng-b]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
12
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(m){this.unput(this.match.slice(m))},pastInput:function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var m=this.pastInput(),b=new Array(m.length+1).join("-");return m+this.upcomingInput()+`
|
|
13
|
+
`+b+"^"},test_match:function(m,b){var d,E,o;if(this.options.backtrack_lexer&&(o={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(o.yylloc.range=this.yylloc.range.slice(0))),E=m[0].match(/(?:\r\n?|\n).*/g),E&&(this.yylineno+=E.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:E?E[E.length-1].length-E[E.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+m[0].length},this.yytext+=m[0],this.match+=m[0],this.matches=m,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(m[0].length),this.matched+=m[0],d=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),d)return d;if(this._backtrack){for(var T in o)this[T]=o[T];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var m,b,d,E;this._more||(this.yytext="",this.match="");for(var o=this._currentRules(),T=0;T<o.length;T++)if(d=this._input.match(this.rules[o[T]]),d&&(!b||d[0].length>b[0].length)){if(b=d,E=T,this.options.backtrack_lexer){if(m=this.test_match(d,o[T]),m!==!1)return m;if(this._backtrack){b=!1;continue}else return!1}else if(!this.options.flex)break}return b?(m=this.test_match(b,o[E]),m!==!1?m:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
14
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var m=this.next();return m||this.lex()},begin:function(m){this.conditionStack.push(m)},popState:function(){var m=this.conditionStack.length-1;return m>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(m){return m=this.conditionStack.length-1-Math.abs(m||0),m>=0?this.conditionStack[m]:"INITIAL"},pushState:function(m){this.begin(m)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(m,b,d,E){function o(c,J){return b.yytext=b.yytext.substring(c,b.yyleng-J+c)}var T=E;switch(d){case 0:if(b.yytext.slice(-2)==="\\\\"?(o(0,1),this.begin("mu")):b.yytext.slice(-1)==="\\"?(o(0,1),this.begin("emu")):this.begin("mu"),b.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(o(5,9),18);case 5:return 15;case 6:return this.popState(),14;case 7:return 67;case 8:return 68;case 9:if(m.syntax.square==="string")this.unput(b.yytext),this.begin("escl");else return 75;break;case 10:return 77;case 11:return 19;case 12:return this.popState(),this.begin("raw"),23;case 13:return 57;case 14:return 61;case 15:return 29;case 16:return 47;case 17:return this.popState(),44;case 18:return this.popState(),44;case 19:return 34;case 20:return 39;case 21:return 53;case 22:return 48;case 23:this.unput(b.yytext),this.popState(),this.begin("com");break;case 24:return this.popState(),14;case 25:return 48;case 26:return 74;case 27:return 73;case 28:return 73;case 29:return 93;case 30:return 92;case 31:break;case 32:return this.popState(),56;case 33:return this.popState(),33;case 34:return b.yytext=o(1,2).replace(/\\"/g,'"'),84;case 35:return b.yytext=o(1,2).replace(/\\'/g,"'"),84;case 36:return 89;case 37:return 86;case 38:return 86;case 39:return 87;case 40:return 88;case 41:return 85;case 42:return 79;case 43:return 81;case 44:return 73;case 45:return b.yytext=b.yytext.replace(/\\([\\\]])/g,"$1"),this.popState(),73;case 46:return"INVALID";case 47:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)\]|])))/,/^(?:\.#)/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)\]])))/,/^(?:false(?=([~}\s)\]])))/,/^(?:undefined(?=([~}\s)\]])))/,/^(?:null(?=([~}\s)\]])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)\]])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)\]|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,46,47],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},escl:{rules:[45],inclusive:!1},INITIAL:{rules:[0,1,47],inclusive:!0}}};return U})();Yt.lexer=nn;function Zt(){this.yy={}}return Zt.prototype=Yt,Yt.Parser=Zt,new Zt})(),Pt=Kn,ie=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Be(t,e){var r=e&&e.loc,a,n,i,s;r&&(a=r.start.line,n=r.end.line,i=r.start.column,s=r.end.column,t+=" - "+a+":"+i);for(var u=Error.prototype.constructor.call(this,t),l=0;l<ie.length;l++)this[ie[l]]=u[ie[l]];Error.captureStackTrace&&Error.captureStackTrace(this,Be);try{r&&(this.lineNumber=a,this.endLineNumber=n,Object.defineProperty?(Object.defineProperty(this,"column",{value:i,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:s,enumerable:!0})):(this.column=i,this.endColumn=s))}catch{}}Be.prototype=new Error;var pt=Be;function qt(){this.parents=[]}qt.prototype={constructor:qt,mutating:!1,acceptKey:function(t,e){var r=this.accept(t[e]);if(this.mutating){if(r&&!qt.prototype[r.type])throw new pt('Unexpected node type "'+r.type+'" found when accepting '+e+" on "+t.type);t[e]=r}},acceptRequired:function(t,e){if(this.acceptKey(t,e),!t[e])throw new pt(t.type+" requires "+e)},acceptArray:function(t){for(var e=0,r=t.length;e<r;e++)this.acceptKey(t,e),t[e]||(t.splice(e,1),e--,r--)},accept:function(t){if(t){if(!this[t.type])throw new pt("Unknown type: "+t.type,t);this.current&&this.parents.unshift(this.current),this.current=t;var e=this[t.type](t);if(this.current=this.parents.shift(),!this.mutating||e)return e;if(e!==!1)return t}},Program:function(t){this.acceptArray(t.body)},MustacheStatement:_t,Decorator:_t,BlockStatement:Xe,DecoratorBlock:Xe,PartialStatement:tr,PartialBlockStatement:function(t){tr.call(this,t),this.acceptKey(t,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:_t,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(t){this.acceptArray(t.pairs)},HashPair:function(t){this.acceptRequired(t,"value")}};function _t(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}function Xe(t){_t.call(this,t),this.acceptKey(t,"program"),this.acceptKey(t,"inverse")}function tr(t){this.acceptRequired(t,"name"),this.acceptArray(t.params),this.acceptKey(t,"hash")}var Jn=qt;function G(t){t===void 0&&(t={}),this.options=t}G.prototype=new Jn;G.prototype.Program=function(t){var e=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var a=t.body,n=0,i=a.length;n<i;n++){var s=a[n],u=this.accept(s);if(u){var l=pe(a,n,r),h=de(a,n,r),p=u.openStandalone&&l,f=u.closeStandalone&&h,y=u.inlineStandalone&&l&&h;u.close&&at(a,n,!0),u.open&&Z(a,n,!0),e&&y&&(at(a,n),Z(a,n)&&s.type==="PartialStatement"&&(s.indent=/([ \t]+$)/.exec(a[n-1].original)[1])),e&&p&&(at((s.program||s.inverse).body),Z(a,n)),e&&f&&(at(a,n),Z((s.inverse||s.program).body))}}return t};G.prototype.BlockStatement=G.prototype.DecoratorBlock=G.prototype.PartialBlockStatement=function(t){this.accept(t.program),this.accept(t.inverse);var e=t.program||t.inverse,r=t.program&&t.inverse,a=r,n=r;if(r&&r.chained)for(a=r.body[0].program;n.chained;)n=n.body[n.body.length-1].program;var i={open:t.openStrip.open,close:t.closeStrip.close,openStandalone:de(e.body),closeStandalone:pe((a||e).body)};if(t.openStrip.close&&at(e.body,null,!0),r){var s=t.inverseStrip;s.open&&Z(e.body,null,!0),s.close&&at(a.body,null,!0),t.closeStrip.open&&Z(n.body,null,!0),!this.options.ignoreStandalone&&pe(e.body)&&de(a.body)&&(Z(e.body),at(a.body))}else t.closeStrip.open&&Z(e.body,null,!0);return i};G.prototype.Decorator=G.prototype.MustacheStatement=function(t){return t.strip};G.prototype.PartialStatement=G.prototype.CommentStatement=function(t){var e=t.strip||{};return{inlineStandalone:!0,open:e.open,close:e.close}};function pe(t,e,r){e===void 0&&(e=t.length);var a=t[e-1],n=t[e-2];if(!a)return r;if(a.type==="ContentStatement")return(n||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(a.original)}function de(t,e,r){e===void 0&&(e=-1);var a=t[e+1],n=t[e+2];if(!a)return r;if(a.type==="ContentStatement")return(n||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(a.original)}function at(t,e,r){var a=t[e==null?0:e+1];if(!(!a||a.type!=="ContentStatement"||!r&&a.rightStripped)){var n=a.value;a.value=a.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),a.rightStripped=a.value!==n}}function Z(t,e,r){var a=t[e==null?t.length-1:e-1];if(!(!a||a.type!=="ContentStatement"||!r&&a.leftStripped)){var n=a.value;return a.value=a.value.replace(r?/\s+$/:/[ \t]+$/,""),a.leftStripped=a.value!==n,a.leftStripped}}var Qn=G,It={};De(It,{SourceLocation:()=>Ir,id:()=>Zn,prepareBlock:()=>aa,prepareMustache:()=>ra,preparePartialBlock:()=>sa,preparePath:()=>ea,prepareProgram:()=>ia,prepareRawBlock:()=>na,stripComment:()=>ta,stripFlags:()=>Xn});var Yn=function(t,e,r){if(r||arguments.length===2)for(var a=0,n=e.length,i;a<n;a++)(i||!(a in e))&&(i||(i=Array.prototype.slice.call(e,0,a)),i[a]=e[a]);return t.concat(i||Array.prototype.slice.call(e))};function xe(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var r={loc:t.path.loc};throw new pt(t.path.original+" doesn't match "+e,r)}}function Ir(t,e){this.source=t,this.start={line:e.first_line,column:e.first_column},this.end={line:e.last_line,column:e.last_column}}function Zn(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t}function Xn(t,e){return{open:t.charAt(2)==="~",close:e.charAt(e.length-3)==="~"}}function ta(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function ea(t,e,r,a){a=this.locInfo(a);var n;t?n="@":e?n=e.original+".":n="";for(var i=[],s=0,u=0,l=r.length;u<l;u++){var h=r[u].part,p=r[u].original!==h,f=r[u].separator,y=f===".#"?"#":"";if(n+=(f||"")+h,!p&&(h===".."||h==="."||h==="this")){if(i.length>0)throw new pt("Invalid path: "+n,{loc:a});h===".."&&s++}else i.push("".concat(y).concat(h))}var D=e||i.shift();return{type:"PathExpression",this:n.startsWith("this."),data:t,depth:s,head:D,tail:i,parts:D?Yn([D],i,!0):i,original:n,loc:a}}function ra(t,e,r,a,n,i){var s=a.charAt(3)||a.charAt(2),u=s!=="{"&&s!=="&",l=/\*/.test(a);return{type:l?"Decorator":"MustacheStatement",path:t,params:e,hash:r,escaped:u,strip:n,loc:this.locInfo(i)}}function na(t,e,r,a){xe(t,r),a=this.locInfo(a);var n={type:"Program",body:e,strip:{},loc:a};return{type:"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:n,openStrip:{},inverseStrip:{},closeStrip:{},loc:a}}function aa(t,e,r,a,n,i){a&&a.path&&xe(t,a);var s=/\*/.test(t.open);e.blockParams=t.blockParams;var u,l;if(r){if(s)throw new pt("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=a.strip),l=r.strip,u=r.program}return n&&(n=u,u=e,e=n),{type:s?"DecoratorBlock":"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:e,inverse:u,openStrip:t.strip,inverseStrip:l,closeStrip:a&&a.strip,loc:this.locInfo(i)}}function ia(t,e){if(!e&&t.length){var r=t[0].loc,a=t[t.length-1].loc;r&&a&&(e={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:a.end.line,column:a.end.column}})}return{type:"Program",body:t,strip:{},loc:e}}function sa(t,e,r,a){return xe(t,r),{type:"PartialBlockStatement",name:t.path,params:t.params,hash:t.hash,program:e,openStrip:t.strip,closeStrip:r&&r.strip,loc:this.locInfo(a)}}var Or={};for(Ft in It)Object.prototype.hasOwnProperty.call(It,Ft)&&(Or[Ft]=It[Ft]);var Ft;function me(t,e){var r,a,n;if(t.type==="Program")return t;Pt.yy=Or,Pt.yy.locInfo=function(u){return new Ir(e&&e.srcName,u)};var i;typeof((r=e?.syntax)===null||r===void 0?void 0:r.square)=="function"?i=e.syntax.square:((a=e?.syntax)===null||a===void 0?void 0:a.square)==="node"?i=ua:i="string";var s;return typeof((n=e?.syntax)===null||n===void 0?void 0:n.hash)=="function"?s=e.syntax.hash:s=oa,Pt.yy.syntax={square:i,hash:s},Pt.parse(t)}function ua(t,e){return{type:"ArrayLiteral",items:t,loc:e}}function oa(t,e){return{type:"HashLiteral",pairs:t.pairs,loc:e}}function er(t,e){var r=me(t,e),a=new Qn(e);return a.accept(r)}var la={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\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",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
|
|
15
|
+
`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},ca=/^#[xX]([A-Fa-f0-9]+)$/,ha=/^#([0-9]+)$/,pa=/^([A-Za-z0-9]+)$/,Vr=(function(){function t(e){this.named=e}return t.prototype.parse=function(e){if(e){var r=e.match(ca);if(r)return String.fromCharCode(parseInt(r[1],16));if(r=e.match(ha),r)return String.fromCharCode(parseInt(r[1],10));if(r=e.match(pa),r)return this.named[r[1]]}},t})(),da=/[\t\n\f ]/,ma=/[A-Za-z]/,fa=/\r\n?/g;function B(t){return da.test(t)}function rr(t){return ma.test(t)}function ga(t){return t.replace(fa,`
|
|
16
|
+
`)}var Rr=(function(){function t(e,r,a){a===void 0&&(a="precompile"),this.delegate=e,this.entityParser=r,this.mode=a,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var n=this.peek();if(n==="<"&&!this.isIgnoredEndTag())this.transitionTo("tagOpen"),this.markTagStart(),this.consume();else{if(this.mode==="precompile"&&n===`
|
|
17
|
+
`){var i=this.tagNameBuffer.toLowerCase();(i==="pre"||i==="textarea")&&this.consume()}this.transitionTo("data"),this.delegate.beginData()}},data:function(){var n=this.peek(),i=this.tagNameBuffer;n==="<"&&!this.isIgnoredEndTag()?(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume()):n==="&"&&i!=="script"&&i!=="style"?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(n))},tagOpen:function(){var n=this.consume();n==="!"?this.transitionTo("markupDeclarationOpen"):n==="/"?this.transitionTo("endTagOpen"):(n==="@"||n===":"||rr(n))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(n))},markupDeclarationOpen:function(){var n=this.consume();if(n==="-"&&this.peek()==="-")this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment();else{var i=n.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase();i==="DOCTYPE"&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())}},doctype:function(){var n=this.consume();B(n)&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var n=this.consume();B(n)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(n.toLowerCase()))},doctypeName:function(){var n=this.consume();B(n)?this.transitionTo("afterDoctypeName"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(n.toLowerCase())},afterDoctypeName:function(){var n=this.consume();if(!B(n))if(n===">")this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var i=n.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),s=i.toUpperCase()==="PUBLIC",u=i.toUpperCase()==="SYSTEM";(s||u)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),s?this.transitionTo("afterDoctypePublicKeyword"):u&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var n=this.peek();B(n)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):n==='"'?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):n==="'"?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):n===">"&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var n=this.consume();n==='"'?this.transitionTo("afterDoctypePublicIdentifier"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(n)},doctypePublicIdentifierSingleQuoted:function(){var n=this.consume();n==="'"?this.transitionTo("afterDoctypePublicIdentifier"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(n)},afterDoctypePublicIdentifier:function(){var n=this.consume();B(n)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):n==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):n==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var n=this.consume();B(n)||(n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):n==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):n==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var n=this.consume();n==='"'?this.transitionTo("afterDoctypeSystemIdentifier"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(n)},doctypeSystemIdentifierSingleQuoted:function(){var n=this.consume();n==="'"?this.transitionTo("afterDoctypeSystemIdentifier"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(n)},afterDoctypeSystemIdentifier:function(){var n=this.consume();B(n)||n===">"&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var n=this.consume();n==="-"?this.transitionTo("commentStartDash"):n===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(n),this.transitionTo("comment"))},commentStartDash:function(){var n=this.consume();n==="-"?this.transitionTo("commentEnd"):n===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var n=this.consume();n==="-"?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(n)},commentEndDash:function(){var n=this.consume();n==="-"?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+n),this.transitionTo("comment"))},commentEnd:function(){var n=this.consume();n===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+n),this.transitionTo("comment"))},tagName:function(){var n=this.consume();B(n)?this.transitionTo("beforeAttributeName"):n==="/"?this.transitionTo("selfClosingStartTag"):n===">"?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(n)},endTagName:function(){var n=this.consume();B(n)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):n==="/"?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):n===">"?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(n)},beforeAttributeName:function(){var n=this.peek();if(B(n)){this.consume();return}else n==="/"?(this.transitionTo("selfClosingStartTag"),this.consume()):n===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):n==="="?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(n)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var n=this.peek();B(n)?(this.transitionTo("afterAttributeName"),this.consume()):n==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):n==="="?(this.transitionTo("beforeAttributeValue"),this.consume()):n===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):n==='"'||n==="'"||n==="<"?(this.delegate.reportSyntaxError(n+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(n)):(this.consume(),this.delegate.appendToAttributeName(n))},afterAttributeName:function(){var n=this.peek();if(B(n)){this.consume();return}else n==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):n==="="?(this.consume(),this.transitionTo("beforeAttributeValue")):n===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(n))},beforeAttributeValue:function(){var n=this.peek();B(n)?this.consume():n==='"'?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):n==="'"?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):n===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(n))},attributeValueDoubleQuoted:function(){var n=this.consume();n==='"'?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):n==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(n)},attributeValueSingleQuoted:function(){var n=this.consume();n==="'"?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):n==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(n)},attributeValueUnquoted:function(){var n=this.peek();B(n)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):n==="/"?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):n==="&"?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):n===">"?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(n))},afterAttributeValueQuoted:function(){var n=this.peek();B(n)?(this.consume(),this.transitionTo("beforeAttributeName")):n==="/"?(this.consume(),this.transitionTo("selfClosingStartTag")):n===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){var n=this.peek();n===">"?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var n=this.consume();(n==="@"||n===":"||rr(n))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(n))}},this.reset()}return t.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},t.prototype.transitionTo=function(e){this.state=e},t.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},t.prototype.tokenizePart=function(e){for(this.input+=ga(e);this.index<this.input.length;){var r=this.states[this.state];if(r!==void 0)r.call(this);else throw new Error("unhandled state "+this.state)}},t.prototype.tokenizeEOF=function(){this.flushData()},t.prototype.flushData=function(){this.state==="data"&&(this.delegate.finishData(),this.transitionTo("beforeData"))},t.prototype.peek=function(){return this.input.charAt(this.index)},t.prototype.consume=function(){var e=this.peek();return this.index++,e===`
|
|
18
|
+
`?(this.line++,this.column=0):this.column++,e},t.prototype.consumeCharRef=function(){var e=this.input.indexOf(";",this.index);if(e!==-1){var r=this.input.slice(this.index,e),a=this.entityParser.parse(r);if(a){for(var n=r.length;n;)this.consume(),n--;return this.consume(),a}}},t.prototype.markTagStart=function(){this.delegate.tagOpen()},t.prototype.appendToTagName=function(e){this.tagNameBuffer+=e,this.delegate.appendToTagName(e)},t.prototype.isIgnoredEndTag=function(){var e=this.tagNameBuffer;return e==="title"&&this.input.substring(this.index,this.index+8)!=="</title>"||e==="style"&&this.input.substring(this.index,this.index+8)!=="</style>"||e==="script"&&this.input.substring(this.index,this.index+9)!=="</script>"},t})(),Ii=(function(){function t(e,r){r===void 0&&(r={}),this.options=r,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new Rr(this,e,r.mode),this._currentAttribute=void 0}return t.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},t.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},t.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},t.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},t.prototype.current=function(){var e=this.token;if(e===null)throw new Error("token was unexpectedly null");if(arguments.length===0)return e;for(var r=0;r<arguments.length;r++)if(e.type===arguments[r])return e;throw new Error("token type was unexpectedly "+e.type)},t.prototype.push=function(e){this.token=e,this.tokens.push(e)},t.prototype.currentAttribute=function(){return this._currentAttribute},t.prototype.addLocInfo=function(){this.options.loc&&(this.current().loc={start:{line:this.startLine,column:this.startColumn},end:{line:this.tokenizer.line,column:this.tokenizer.column}}),this.startLine=this.tokenizer.line,this.startColumn=this.tokenizer.column},t.prototype.beginDoctype=function(){this.push({type:"Doctype",name:""})},t.prototype.appendToDoctypeName=function(e){this.current("Doctype").name+=e},t.prototype.appendToDoctypePublicIdentifier=function(e){var r=this.current("Doctype");r.publicIdentifier===void 0?r.publicIdentifier=e:r.publicIdentifier+=e},t.prototype.appendToDoctypeSystemIdentifier=function(e){var r=this.current("Doctype");r.systemIdentifier===void 0?r.systemIdentifier=e:r.systemIdentifier+=e},t.prototype.endDoctype=function(){this.addLocInfo()},t.prototype.beginData=function(){this.push({type:"Chars",chars:""})},t.prototype.appendToData=function(e){this.current("Chars").chars+=e},t.prototype.finishData=function(){this.addLocInfo()},t.prototype.beginComment=function(){this.push({type:"Comment",chars:""})},t.prototype.appendToCommentData=function(e){this.current("Comment").chars+=e},t.prototype.finishComment=function(){this.addLocInfo()},t.prototype.tagOpen=function(){},t.prototype.beginStartTag=function(){this.push({type:"StartTag",tagName:"",attributes:[],selfClosing:!1})},t.prototype.beginEndTag=function(){this.push({type:"EndTag",tagName:""})},t.prototype.finishTag=function(){this.addLocInfo()},t.prototype.markTagAsSelfClosing=function(){this.current("StartTag").selfClosing=!0},t.prototype.appendToTagName=function(e){this.current("StartTag","EndTag").tagName+=e},t.prototype.beginAttribute=function(){this._currentAttribute=["","",!1]},t.prototype.appendToAttributeName=function(e){this.currentAttribute()[0]+=e},t.prototype.beginAttributeValue=function(e){this.currentAttribute()[2]=e},t.prototype.appendToAttributeValue=function(e){this.currentAttribute()[1]+=e},t.prototype.finishAttributeValue=function(){this.current("StartTag").attributes.push(this._currentAttribute)},t.prototype.reportSyntaxError=function(e){this.current().syntaxError=e},t})(),Te={Append:1,TrustingAppend:2,Comment:3,Modifier:4,StrictModifier:5,Block:6,StrictBlock:7,Component:8,OpenElement:10,OpenElementWithSplat:11,FlushElement:12,CloseElement:13,StaticAttr:14,DynamicAttr:15,ComponentAttr:16,AttrSplat:17,Yield:18,DynamicArg:20,StaticArg:21,TrustingDynamicAttr:22,TrustingComponentAttr:23,StaticComponentAttr:24,Debugger:26,Undefined:27,Call:28,Concat:29,GetSymbol:30,GetLexicalSymbol:32,GetStrictKeyword:31,GetFreeAsComponentOrHelperHead:35,GetFreeAsHelperHead:37,GetFreeAsModifierHead:38,GetFreeAsComponentHead:39,InElement:40,If:41,Each:42,Let:44,WithDynamicVars:45,InvokeComponent:46,HasBlock:48,HasBlockParams:49,Curry:50,Not:51,IfInline:52,GetDynamicVar:53,Log:54};function $r(t){return function(e){return Array.isArray(e)&&e[0]===t}}var Oi=$r(Te.FlushElement),Vi=$r(Te.GetSymbol),ya=!1,ba=/["\x26\xa0]/u,Ri=new RegExp(ba.source,"gu"),Aa=/[&<>\xa0]/u,$i=new RegExp(Aa.source,"gu"),$t=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function Da(){return[...$t]}function Ea(t){return $t.has(t.toLowerCase())&&t[0]?.toLowerCase()===t[0]}function xt(t){return!!t&&t.length>0}function Ne(t){return t.length===0?void 0:t[t.length-1]}function va(t){return t.length===0?void 0:t[0]}var tt=Object.freeze({line:1,column:0}),Ca=Object.freeze({source:"(synthetic)",start:tt,end:tt}),fe=Object.freeze({source:"(nonexistent)",start:tt,end:tt}),X=Object.freeze({source:"(broken)",start:tt,end:tt}),Sa=class{constructor(t){this._whens=t}first(t){for(let e of this._whens){let r=e.match(t);if(xt(r))return r[0]}return null}},nr=class{get(t,e){let r=this._map.get(t);return r||(r=e(),this._map.set(t,r),r)}add(t,e){this._map.set(t,e)}match(t){let e=(function(i){switch(i){case"Broken":case"InternalsSynthetic":case"NonExistent":return"IS_INVISIBLE";default:return i}})(t),r=[],a=this._map.get(e),n=this._map.get("MATCH_ANY");return a&&r.push(a),n&&r.push(n),r}constructor(){this._map=new Map}};function Hr(t){return t(new ka).validate()}var ka=class{validate(){return(t,e)=>this.matchFor(t.kind,e.kind)(t,e)}matchFor(t,e){let r=this._whens.match(t);return xt(r),new Sa(r).first(e)}when(t,e,r){return this._whens.get(t,(()=>new nr)).add(e,r),this}constructor(){this._whens=new nr}},wa=class ge{static synthetic(e){let r=P.synthetic(e);return new ge({loc:r,chars:e})}static load(e,r){return new ge({loc:P.load(e,r[1]),chars:r[0]})}constructor(e){this.loc=e.loc,this.chars=e.chars}getString(){return this.chars}serialize(){return[this.chars,this.loc.serialize()]}},P=class ct{static get NON_EXISTENT(){return new it("NonExistent",fe).wrap()}static load(e,r){return typeof r=="number"?ct.forCharPositions(e,r,r):typeof r=="string"?ct.synthetic(r):Array.isArray(r)?ct.forCharPositions(e,r[0],r[1]):r==="NonExistent"?ct.NON_EXISTENT:r==="Broken"?ct.broken(X):void Wn(r)}static forHbsLoc(e,r){let a=new ft(e,r.start),n=new ft(e,r.end);return new Fe(e,{start:a,end:n},r).wrap()}static forCharPositions(e,r,a){let n=new kt(e,r),i=new kt(e,a);return new Pe(e,{start:n,end:i}).wrap()}static synthetic(e){return new it("InternalsSynthetic",fe,e).wrap()}static broken(e=X){return new it("Broken",e).wrap()}constructor(e){var r;this.data=e,this.isInvisible=(r=e.kind)!=="CharPosition"&&r!=="HbsPosition"}getStart(){return this.data.getStart().wrap()}getEnd(){return this.data.getEnd().wrap()}get loc(){let e=this.data.toHbsSpan();return e===null?X:e.toHbsLoc()}get module(){return this.data.getModule()}get startPosition(){return this.loc.start}get endPosition(){return this.loc.end}toJSON(){return this.loc}withStart(e){return M(e.data,this.data.getEnd())}withEnd(e){return M(this.data.getStart(),e.data)}asString(){return this.data.asString()}toSlice(e){let r=this.data.asString();return JSON.stringify(r),JSON.stringify(e),new wa({loc:this,chars:e||r})}get start(){return this.loc.start}set start(e){this.data.locDidUpdate({start:e})}get end(){return this.loc.end}set end(e){this.data.locDidUpdate({end:e})}get source(){return this.module}collapse(e){switch(e){case"start":return this.getStart().collapsed();case"end":return this.getEnd().collapsed()}}extend(e){return M(this.data.getStart(),e.data.getEnd())}serialize(){return this.data.serialize()}slice({skipStart:e=0,skipEnd:r=0}){return M(this.getStart().move(e).data,this.getEnd().move(-r).data)}sliceStartChars({skipStart:e=0,chars:r}){return M(this.getStart().move(e).data,this.getStart().move(e+r).data)}sliceEndChars({skipEnd:e=0,chars:r}){return M(this.getEnd().move(e-r).data,this.getStart().move(-e).data)}},Pe=class{#t;constructor(t,e){this.source=t,this.charPositions=e,this.kind="CharPosition",this.#t=null}wrap(){return new P(this)}asString(){return this.source.slice(this.charPositions.start.charPos,this.charPositions.end.charPos)}getModule(){return this.source.module}getStart(){return this.charPositions.start}getEnd(){return this.charPositions.end}locDidUpdate(){}toHbsSpan(){let t=this.#t;if(t===null){let e=this.charPositions.start.toHbsPos(),r=this.charPositions.end.toHbsPos();t=this.#t=e===null||r===null?et:new Fe(this.source,{start:e,end:r})}return t===et?null:t}serialize(){let{start:{charPos:t},end:{charPos:e}}=this.charPositions;return t===e?t:[t,e]}toCharPosSpan(){return this}},Fe=class{#t;#e;constructor(t,e,r=null){this.source=t,this.hbsPositions=e,this.kind="HbsPosition",this.#t=null,this.#e=r}serialize(){let t=this.toCharPosSpan();return t===null?"Broken":t.wrap().serialize()}wrap(){return new P(this)}updateProvided(t,e){this.#e&&(this.#e[e]=t),this.#t=null,this.#e={start:t,end:t}}locDidUpdate({start:t,end:e}){t!==void 0&&(this.updateProvided(t,"start"),this.hbsPositions.start=new ft(this.source,t,null)),e!==void 0&&(this.updateProvided(e,"end"),this.hbsPositions.end=new ft(this.source,e,null))}asString(){let t=this.toCharPosSpan();return t===null?"":t.asString()}getModule(){return this.source.module}getStart(){return this.hbsPositions.start}getEnd(){return this.hbsPositions.end}toHbsLoc(){return{start:this.hbsPositions.start.hbsPos,end:this.hbsPositions.end.hbsPos}}toHbsSpan(){return this}toCharPosSpan(){let t=this.#t;if(t===null){let e=this.hbsPositions.start.toCharPos(),r=this.hbsPositions.end.toCharPos();if(!e||!r)return t=this.#t=et,null;t=this.#t=new Pe(this.source,{start:e,end:r})}return t===et?null:t}},it=class{constructor(t,e,r=null){this.kind=t,this.loc=e,this.string=r}serialize(){switch(this.kind){case"Broken":case"NonExistent":return this.kind;case"InternalsSynthetic":return this.string||""}}wrap(){return new P(this)}asString(){return this.string||""}locDidUpdate({start:t,end:e}){t!==void 0&&(this.loc.start=t),e!==void 0&&(this.loc.end=e)}getModule(){return"an unknown module"}getStart(){return new be(this.kind,this.loc.start)}getEnd(){return new be(this.kind,this.loc.end)}toCharPosSpan(){return this}toHbsSpan(){return null}toHbsLoc(){return X}},M=Hr((t=>t.when("HbsPosition","HbsPosition",((e,r)=>new Fe(e.source,{start:e,end:r}).wrap())).when("CharPosition","CharPosition",((e,r)=>new Pe(e.source,{start:e,end:r}).wrap())).when("CharPosition","HbsPosition",((e,r)=>{let a=r.toCharPos();return a===null?new it("Broken",X).wrap():M(e,a)})).when("HbsPosition","CharPosition",((e,r)=>{let a=e.toCharPos();return a===null?new it("Broken",X).wrap():M(a,r)})).when("IS_INVISIBLE","MATCH_ANY",(e=>new it(e.kind,X).wrap())).when("MATCH_ANY","IS_INVISIBLE",((e,r)=>new it(r.kind,X).wrap())))),et="BROKEN",Ut=class ye{static forHbsPos(e,r){return new ft(e,r,null).wrap()}static broken(e=tt){return new be("Broken",e).wrap()}constructor(e){this.data=e}get offset(){let e=this.data.toCharPos();return e===null?null:e.offset}eql(e){return Ba(this.data,e.data)}until(e){return M(this.data,e.data)}move(e){let r=this.data.toCharPos();if(r===null)return ye.broken();{let a=r.offset+e;return r.source.validate(a)?new kt(r.source,a).wrap():ye.broken()}}collapsed(){return M(this.data,this.data)}toJSON(){return this.data.toJSON()}},kt=class{constructor(t,e){this.source=t,this.charPos=e,this.kind="CharPosition",this._locPos=null}toCharPos(){return this}toJSON(){let t=this.toHbsPos();return t===null?tt:t.toJSON()}wrap(){return new Ut(this)}get offset(){return this.charPos}toHbsPos(){let t=this._locPos;if(t===null){let e=this.source.hbsPosFor(this.charPos);this._locPos=t=e===null?et:new ft(this.source,e,this.charPos)}return t===et?null:t}},ft=class{constructor(t,e,r=null){this.source=t,this.hbsPos=e,this.kind="HbsPosition",this._charPos=r===null?null:new kt(t,r)}toCharPos(){let t=this._charPos;if(t===null){let e=this.source.charPosFor(this.hbsPos);this._charPos=t=e===null?et:new kt(this.source,e)}return t===et?null:t}toJSON(){return this.hbsPos}wrap(){return new Ut(this)}toHbsPos(){return this}},be=class{constructor(t,e){this.kind=t,this.pos=e}toCharPos(){return null}toJSON(){return this.pos}wrap(){return new Ut(this)}get offset(){return null}},Ba=Hr((t=>t.when("HbsPosition","HbsPosition",(({hbsPos:e},{hbsPos:r})=>e.column===r.column&&e.line===r.line)).when("CharPosition","CharPosition",(({charPos:e},{charPos:r})=>e===r)).when("CharPosition","HbsPosition",(({offset:e},r)=>e===r.toCharPos()?.offset)).when("HbsPosition","CharPosition",((e,{offset:r})=>e.toCharPos()?.offset===r)).when("MATCH_ANY","MATCH_ANY",(()=>!1)))),St=class Ur{static from(e,r={}){return new Ur(e,r.meta?.moduleName)}constructor(e,r="an unknown module"){this.source=e,this.module=r}validate(e){return e>=0&&e<=this.source.length}slice(e,r){return this.source.slice(e,r)}offsetFor(e,r){return Ut.forHbsPos(this,{line:e,column:r})}spanFor({start:e,end:r}){return P.forHbsLoc(this,{start:{line:e.line,column:e.column},end:{line:r.line,column:r.column}})}hbsPosFor(e){let r=0,a=0;if(e>this.source.length)return null;for(;;){let n=this.source.indexOf(`
|
|
19
|
+
`,a);if(e<=n||n===-1)return{line:r+1,column:e-a};r+=1,a=n+1}}charPosFor(e){let{line:r,column:a}=e,n=this.source.length,i=0,s=0;for(;s<n;){let u=this.source.indexOf(`
|
|
20
|
+
`,s);if(u===-1&&(u=this.source.length),i===r-1){if(s+a>u)return u;if(ya){let l=this.hbsPosFor(s+a);l.line,l.column}return s+a}if(u===-1)return 0;i+=1,s=u+1}return n}};function A(t,e){let{module:r,loc:a}=e,{line:n,column:i}=a.start,s=e.asString(),u=s?`
|
|
21
|
+
|
|
22
|
+
|
|
|
23
|
+
| ${s.split(`
|
|
24
|
+
`).join(`
|
|
25
|
+
| `)}
|
|
26
|
+
|
|
|
27
|
+
|
|
28
|
+
`:"",l=new Error(`${t}: ${u}(error occurred in '${r}' @ line ${n} : column ${i})`);return l.name="SyntaxError",l.location=e,l.code=s,l}var zr={Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"]},Le=(function(){function t(e,r,a,n){let i=Error.call(this,e);this.key=n,this.message=e,this.node=r,this.parent=a,i.stack&&(this.stack=i.stack)}return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t})();function ar(t,e,r){return new Le("Cannot remove a node unless it is part of an array",t,e,r)}function xa(t,e,r){return new Le("Cannot replace a node with multiple nodes unless it is part of an array",t,e,r)}function ir(t,e){return new Le("Replacing and removing in key handlers is not yet supported.",t,null,e)}var zt=class{constructor(t,e=null,r=null){this.node=t,this.parent=e,this.parentKey=r}get parentNode(){return this.parent?this.parent.node:null}parents(){return{[Symbol.iterator]:()=>new Ta(this)}}},Ta=class{constructor(t){this.path=t}next(){return this.path.parent?(this.path=this.path.parent,{done:!1,value:this.path}):{done:!0,value:null}}};function Mr(t){return typeof t=="function"?t:t.enter}function Gr(t){return typeof t=="function"?void 0:t.exit}function Mt(t,e){let r,a,n,{node:i,parent:s,parentKey:u}=e,l=(function(h,p){if(h.Program&&(p==="Template"&&!h.Template||p==="Block"&&!h.Block))return h.Program;let f=h[p];return f!==void 0?f:h.All})(t,i.type);if(l!==void 0&&(r=Mr(l),a=Gr(l)),r!==void 0&&(n=r(i,e)),n!=null){if(JSON.stringify(i)!==JSON.stringify(n))return Array.isArray(n)?(jr(t,n,s,u),n):Mt(t,new zt(n,s,u))||n;n=void 0}if(n===void 0){let h=zr[i.type];for(let p=0;p<h.length;p++)Na(t,l,e,h[p]);a!==void 0&&(n=a(i,e))}return n}function sr(t,e,r){t[e]=r}function Na(t,e,r,a){let n,i,{node:s}=r,u=(function(l,h){return l[h]})(s,a);if(u){if(e!==void 0){let l=(function(h,p){let f=typeof h!="function"?h.keys:void 0;if(f===void 0)return;let y=f[p];return y!==void 0?y:f.All})(e,a);l!==void 0&&(n=Mr(l),i=Gr(l))}if(n!==void 0&&n(s,a)!==void 0)throw ir(s,a);if(Array.isArray(u))jr(t,u,r,a);else{let l=Mt(t,new zt(u,r,a));l!==void 0&&(function(h,p,f,y){if(y===null)throw ar(f,h,p);if(Array.isArray(y)){if(y.length!==1)throw y.length===0?ar(f,h,p):xa(f,h,p);sr(h,p,y[0])}else sr(h,p,y)})(s,a,u,l)}if(i!==void 0&&i(s,a)!==void 0)throw ir(s,a)}}function jr(t,e,r,a){for(let n=0;n<e.length;n++){let i=e[n],s=Mt(t,new zt(i,r,a));s!==void 0&&(n+=Pa(e,n,s)-1)}}function Pa(t,e,r){return r===null?(t.splice(e,1),0):Array.isArray(r)?(t.splice(e,1,...r),r.length):(t.splice(e,1,r),1)}function Fa(t,e){Mt(e,new zt(t))}function dt(t,e){(function(r){switch(r.type){case"Block":case"Template":return r.body;case"ElementNode":return r.children}})(t).push(e)}function Wr(t){return t.type==="StringLiteral"||t.type==="BooleanLiteral"||t.type==="NumberLiteral"||t.type==="NullLiteral"||t.type==="UndefinedLiteral"}var se;function ue(){return se||(se=new St("","(synthetic)")),se}function ur(t,e){return g.var({name:t,loc:v(e||null)})}function Q(t,e){let r=v(e||null);if(typeof t!="string"){if("type"in t)return t;{t.head.indexOf(".");let{head:i,tail:s}=t;return g.path({head:g.head({original:i,loc:r.sliceStartChars({chars:i.length})}),tail:s,loc:v(e||null)})}}let{head:a,tail:n}=(function(i,s){let[u,...l]=i.split("."),h=g.head({original:u,loc:v(s||null)});return g.path({head:h,tail:l,loc:v(s||null)})})(t,r);return g.path({head:a,tail:n,loc:r})}function Ot(t,e,r){return g.literal({type:t,value:e,loc:v(r||null)})}function Dt(t=[],e){return g.hash({pairs:t,loc:v(e||null)})}function Kr(t){return t.map((e=>typeof e=="string"?g.var({name:e,loc:P.synthetic(e)}):e))}function or(t=[],e=[],r=!1,a){return g.blockItself({body:t,params:Kr(e),chained:r,loc:v(a||null)})}function lr(t=[],e=[],r){return g.template({body:t,blockParams:e,loc:v(r||null)})}function v(...t){if(t.length===1){let e=t[0];return e&&typeof e=="object"?P.forHbsLoc(ue(),e):P.forHbsLoc(ue(),Ca)}{let[e,r,a,n,i]=t,s=i?new St("",i):ue();return P.forHbsLoc(s,{start:{line:e,column:r},end:{line:a||e,column:n||r}})}}var La={mustache:function(t,e=[],r=Dt([]),a=!1,n,i){return g.mustache({path:Q(t),params:e,hash:r,trusting:a,strip:i,loc:v(n||null)})},block:function(t,e,r,a,n=null,i,s,u,l){let h,p=null;return h=a.type==="Template"?g.blockItself({params:Kr(a.blockParams),body:a.body,loc:a.loc}):a,n?.type==="Template"?(n.blockParams.length,p=g.blockItself({params:[],body:n.body,loc:n.loc})):p=n,g.block({path:Q(t),params:e||[],hash:r||Dt([]),defaultBlock:h,elseBlock:p,loc:v(i||null),openStrip:s,inverseStrip:u,closeStrip:l})},comment:function(t,e){return g.comment({value:t,loc:v(e||null)})},mustacheComment:function(t,e){return g.mustacheComment({value:t,loc:v(e||null)})},element:function(t,e={}){let r,a,{attrs:n,blockParams:i,modifiers:s,comments:u,children:l,openTag:h,closeTag:p,loc:f}=e;typeof t=="string"?t.endsWith("/")?(r=Q(t.slice(0,-1)),a=!0):r=Q(t):"type"in t?(t.type,t.type,r=t):"path"in t?(t.path.type,t.path.type,r=t.path,a=t.selfClosing):(r=Q(t.name),a=t.selfClosing);let y=i?.map((C=>typeof C=="string"?ur(C):C)),D=null;return p?D=v(p):p===void 0&&(D=a||Ea(r.original)?null:v(null)),g.element({path:r,selfClosing:a||!1,attributes:n||[],params:y||[],modifiers:s||[],comments:u||[],children:l||[],openTag:v(h||null),closeTag:D,loc:v(f||null)})},elementModifier:function(t,e,r,a){return g.elementModifier({path:Q(t),params:e||[],hash:r||Dt([]),loc:v(a||null)})},attr:function(t,e,r){return g.attr({name:t,value:e,loc:v(r||null)})},text:function(t="",e){return g.text({chars:t,loc:v(e||null)})},sexpr:function(t,e=[],r=Dt([]),a){return g.sexpr({path:Q(t),params:e,hash:r,loc:v(a||null)})},concat:function(t,e){if(!xt(t))throw new Error("b.concat requires at least one part");return g.concat({parts:t,loc:v(e||null)})},hash:Dt,pair:function(t,e,r){return g.pair({key:t,value:e,loc:v(r||null)})},literal:Ot,program:function(t,e,r){return e&&e.length?or(t,e,!1,r):lr(t,[],r)},blockItself:or,template:lr,loc:v,pos:function(t,e){return g.pos({line:t,column:e})},path:Q,fullPath:function(t,e=[],r){return g.path({head:t,tail:e,loc:v(r||null)})},head:function(t,e){return g.head({original:t,loc:v(e||null)})},at:function(t,e){return g.atName({name:t,loc:v(e||null)})},var:ur,this:function(t){return g.this({loc:v(t||null)})},string:oe("StringLiteral"),boolean:oe("BooleanLiteral"),number:oe("NumberLiteral"),undefined:()=>Ot("UndefinedLiteral",void 0),null:()=>Ot("NullLiteral",null)};function oe(t){return function(e,r){return Ot(t,e,r)}}var Lt={close:!1,open:!1},g=new class{pos({line:t,column:e}){return{line:t,column:e}}blockItself({body:t,params:e,chained:r=!1,loc:a}){return{type:"Block",body:t,params:e,get blockParams(){return this.params.map((n=>n.name))},set blockParams(n){this.params=n.map((i=>g.var({name:i,loc:P.synthetic(i)})))},chained:r,loc:a}}template({body:t,blockParams:e,loc:r}){return{type:"Template",body:t,blockParams:e,loc:r}}mustache({path:t,params:e,hash:r,trusting:a,loc:n,strip:i=Lt}){return(function({path:s,params:u,hash:l,trusting:h,strip:p,loc:f}){let y={type:"MustacheStatement",path:s,params:u,hash:l,trusting:h,strip:p,loc:f};return Object.defineProperty(y,"escaped",{enumerable:!1,get(){return!this.trusting},set(D){this.trusting=!D}}),y})({path:t,params:e,hash:r,trusting:a,strip:i,loc:n})}block({path:t,params:e,hash:r,defaultBlock:a,elseBlock:n=null,loc:i,openStrip:s=Lt,inverseStrip:u=Lt,closeStrip:l=Lt}){return{type:"BlockStatement",path:t,params:e,hash:r,program:a,inverse:n,loc:i,openStrip:s,inverseStrip:u,closeStrip:l}}comment({value:t,loc:e}){return{type:"CommentStatement",value:t,loc:e}}mustacheComment({value:t,loc:e}){return{type:"MustacheCommentStatement",value:t,loc:e}}concat({parts:t,loc:e}){return{type:"ConcatStatement",parts:t,loc:e}}element({path:t,selfClosing:e,attributes:r,modifiers:a,params:n,comments:i,children:s,openTag:u,closeTag:l,loc:h}){let p=e;return{type:"ElementNode",path:t,attributes:r,modifiers:a,params:n,comments:i,children:s,openTag:u,closeTag:l,loc:h,get tag(){return this.path.original},set tag(f){this.path.original=f},get blockParams(){return this.params.map((f=>f.name))},set blockParams(f){this.params=f.map((y=>g.var({name:y,loc:P.synthetic(y)})))},get selfClosing(){return p},set selfClosing(f){p=f,this.closeTag=f?null:P.synthetic(`</${this.tag}>`)}}}elementModifier({path:t,params:e,hash:r,loc:a}){return{type:"ElementModifierStatement",path:t,params:e,hash:r,loc:a}}attr({name:t,value:e,loc:r}){return{type:"AttrNode",name:t,value:e,loc:r}}text({chars:t,loc:e}){return{type:"TextNode",chars:t,loc:e}}sexpr({path:t,params:e,hash:r,loc:a}){return{type:"SubExpression",path:t,params:e,hash:r,loc:a}}path({head:t,tail:e,loc:r}){return(function({head:a,tail:n,loc:i}){let s={type:"PathExpression",head:a,tail:n,get original(){return[this.head.original,...this.tail].join(".")},set original(u){let[l,...h]=u.split(".");this.head=La.head(l,this.head.loc),this.tail=h},loc:i};return Object.defineProperty(s,"parts",{enumerable:!1,get(){let u=this.original.split(".");return u[0]==="this"?u.shift():u[0].startsWith("@")&&(u[0]=u[0].slice(1)),Object.freeze(u)},set(u){let l=[...u];l[0]==="this"||l[0]?.startsWith("@")||(this.head.type==="ThisHead"?l.unshift("this"):this.head.type==="AtHead"&&(l[0]=`@${l[0]}`)),this.original=l.join(".")}}),Object.defineProperty(s,"this",{enumerable:!1,get(){return this.head.type==="ThisHead"}}),Object.defineProperty(s,"data",{enumerable:!1,get(){return this.head.type==="AtHead"}}),s})({head:t,tail:e,loc:r})}head({original:t,loc:e}){return t==="this"?this.this({loc:e}):t[0]==="@"?this.atName({name:t,loc:e}):this.var({name:t,loc:e})}this({loc:t}){return{type:"ThisHead",get original(){return"this"},loc:t}}atName({name:t,loc:e}){let r="",a={type:"AtHead",get name(){return r},set name(n){n[0],n.indexOf("."),r=n},get original(){return this.name},set original(n){this.name=n},loc:e};return a.name=t,a}var({name:t,loc:e}){let r="",a={type:"VarHead",get name(){return r},set name(n){n[0],n.indexOf("."),r=n},get original(){return this.name},set original(n){this.name=n},loc:e};return a.name=t,a}hash({pairs:t,loc:e}){return{type:"Hash",pairs:t,loc:e}}pair({key:t,value:e,loc:r}){return{type:"HashPair",key:t,value:e,loc:r}}literal({type:t,value:e,loc:r}){return(function({type:a,value:n,loc:i}){let s={type:a,value:n,loc:i};return Object.defineProperty(s,"original",{enumerable:!1,get(){return this.value},set(u){this.value=u}}),s})({type:t,value:e,loc:r})}},qa=class{constructor(t,e=new Vr(la),r="precompile"){this.elementStack=[],this.currentAttribute=null,this.currentNode=null,this.source=t,this.lines=t.source.split(/\r\n?|\n/u),this.tokenizer=new Rr(this,e,r)}offset(){let{line:t,column:e}=this.tokenizer;return this.source.offsetFor(t,e)}pos({line:t,column:e}){return this.source.offsetFor(t,e)}finish(t){return _r({},t,{loc:t.start.until(this.offset())})}get currentAttr(){return this.currentAttribute}get currentTag(){let t=this.currentNode;return t&&(t.type==="StartTag"||t.type),t}get currentStartTag(){let t=this.currentNode;return t&&t.type,t}get currentEndTag(){let t=this.currentNode;return t&&t.type,t}get currentComment(){let t=this.currentNode;return t&&t.type,t}get currentData(){let t=this.currentNode;return t&&t.type,t}acceptNode(t){return this[t.type](t)}currentElement(){return Ne(this.elementStack)}sourceForNode(t,e){let r,a,n,i=t.loc.start.line-1,s=i-1,u=t.loc.start.column,l=[];for(e?(a=e.loc.end.line-1,n=e.loc.end.column):(a=t.loc.end.line-1,n=t.loc.end.column);s<a;)s++,r=this.lines[s],s===i?i===a?l.push(r.slice(u,n)):l.push(r.slice(u)):s===a?l.push(r.slice(0,n)):l.push(r);return l.join(`
|
|
29
|
+
`)}},_a=class extends qa{parse(t,e){t.loc;let r=g.template({body:[],blockParams:e,loc:this.source.spanFor(t.loc)}),a=this.parseProgram(r,t);return this.pendingError?.eof(a.loc.getEnd()),a}Program(t,e){t.loc;let r=g.blockItself({body:[],params:e,chained:t.chained,loc:this.source.spanFor(t.loc)});return this.parseProgram(r,t)}parseProgram(t,e){if(e.body.length===0)return t;let r;try{this.elementStack.push(t);for(let a of e.body)this.acceptNode(a)}finally{r=this.elementStack.pop()}if(t!==r){if(r?.type==="ElementNode")throw A(`Unclosed element \`${r.tag}\``,r.loc);t.type}return t}BlockStatement(t){if(this.tokenizer.state==="comment")return t.loc,void this.appendToCommentData(this.sourceForNode(t));if(this.tokenizer.state!=="data"&&this.tokenizer.state!=="beforeData")throw A("A block may only be used inside an HTML element or another block.",this.source.spanFor(t.loc));let{path:e,params:r,hash:a}=le(this,t),n=this.source.spanFor(t.loc),i,s=[];if(t.program.blockParams?.length){let p=a.loc.collapse("end");p=t.program.loc?p.withEnd(this.source.spanFor(t.program.loc).getStart()):t.program.body[0]?p.withEnd(this.source.spanFor(t.program.body[0].loc).getStart()):p.withEnd(n.getEnd()),i=cr(this.source,t,p);let f=p.asString(),y=f.indexOf("|")+1,D=f.indexOf("|",y);for(let C of t.program.blockParams){let F,q;F=y>=D?-1:f.indexOf(C,y),F===-1||F+C.length>D?(y=D,q=this.source.spanFor(fe)):(y=F,q=p.sliceStartChars({skipStart:y,chars:C.length}),y+=C.length),s.push(g.var({name:C,loc:q}))}}else i=cr(this.source,t,n);let u=this.Program(i.program,s),l=i.inverse?this.Program(i.inverse,[]):null,h=g.block({path:e,params:r,hash:a,defaultBlock:u,elseBlock:l,loc:this.source.spanFor(t.loc),openStrip:t.openStrip,inverseStrip:t.inverseStrip,closeStrip:t.closeStrip});dt(this.currentElement(),h)}MustacheStatement(t){this.pendingError?.mustache(this.source.spanFor(t.loc));let{tokenizer:e}=this;if(e.state==="comment")return void this.appendToCommentData(this.sourceForNode(t));let r,{escaped:a,loc:n,strip:i}=t;if("original"in t.path&&t.path.original==="...attributes")throw A("Illegal use of ...attributes",this.source.spanFor(t.loc));if(Wr(t.path))r=g.mustache({path:this.acceptNode(t.path),params:[],hash:g.hash({pairs:[],loc:this.source.spanFor(t.path.loc).collapse("end")}),trusting:!a,loc:this.source.spanFor(n),strip:i});else{let{path:s,params:u,hash:l}=le(this,t);r=g.mustache({path:s,params:u,hash:l,trusting:!a,loc:this.source.spanFor(n),strip:i})}switch(e.state){case"tagOpen":case"tagName":throw A("Cannot use mustaches in an elements tagname",r.loc);case"beforeAttributeName":ce(this.currentStartTag,r);break;case"attributeName":case"afterAttributeName":this.beginAttributeValue(!1),this.finishAttributeValue(),ce(this.currentStartTag,r),e.transitionTo("beforeAttributeName");break;case"afterAttributeValueQuoted":ce(this.currentStartTag,r),e.transitionTo("beforeAttributeName");break;case"beforeAttributeValue":this.beginAttributeValue(!1),this.appendDynamicAttributeValuePart(r),e.transitionTo("attributeValueUnquoted");break;case"attributeValueDoubleQuoted":case"attributeValueSingleQuoted":case"attributeValueUnquoted":this.appendDynamicAttributeValuePart(r);break;default:dt(this.currentElement(),r)}return r}appendDynamicAttributeValuePart(t){this.finalizeTextPart();let e=this.currentAttr;e.isDynamic=!0,e.parts.push(t)}finalizeTextPart(){let t=this.currentAttr.currentPart;t!==null&&(this.currentAttr.parts.push(t),this.startTextPart())}startTextPart(){this.currentAttr.currentPart=null}ContentStatement(t){(function(e,r){let a=r.loc.start.line,n=r.loc.start.column,i=(function(s,u){if(u==="")return{lines:s.split(`
|
|
30
|
+
`).length-1,columns:0};let[l]=s.split(u),h=l.split(/\n/u),p=h.length-1;return{lines:p,columns:h[p].length}})(r.original,r.value);a+=i.lines,i.lines?n=i.columns:n+=i.columns,e.line=a,e.column=n})(this.tokenizer,t),this.tokenizer.tokenizePart(t.value),this.tokenizer.flushData()}CommentStatement(t){let{tokenizer:e}=this;if(e.state==="comment")return this.appendToCommentData(this.sourceForNode(t)),null;let{value:r,loc:a}=t,n=g.mustacheComment({value:r,loc:this.source.spanFor(a)});switch(e.state){case"beforeAttributeName":case"afterAttributeName":this.currentStartTag.comments.push(n);break;case"beforeData":case"data":dt(this.currentElement(),n);break;default:throw A(`Using a Handlebars comment when in the \`${e.state}\` state is not supported`,this.source.spanFor(t.loc))}return n}PartialStatement(t){throw A("Handlebars partials are not supported",this.source.spanFor(t.loc))}PartialBlockStatement(t){throw A("Handlebars partial blocks are not supported",this.source.spanFor(t.loc))}Decorator(t){throw A("Handlebars decorators are not supported",this.source.spanFor(t.loc))}DecoratorBlock(t){throw A("Handlebars decorator blocks are not supported",this.source.spanFor(t.loc))}SubExpression(t){let{path:e,params:r,hash:a}=le(this,t);return g.sexpr({path:e,params:r,hash:a,loc:this.source.spanFor(t.loc)})}PathExpression(t){let{original:e}=t,r;if(e.indexOf("/")!==-1){if(e.slice(0,2)==="./")throw A('Using "./" is not supported in Glimmer and unnecessary',this.source.spanFor(t.loc));if(e.slice(0,3)==="../")throw A('Changing context using "../" is not supported in Glimmer',this.source.spanFor(t.loc));if(e.indexOf(".")!==-1)throw A("Mixing '.' and '/' in paths is not supported in Glimmer; use only '.' to separate property paths",this.source.spanFor(t.loc));r=[t.parts.join("/")]}else{if(e===".")throw A("'.' is not a supported path in Glimmer; check for a path with a trailing '.'",this.source.spanFor(t.loc));r=t.parts}let a,n=!1;if(/^this(?:\..+)?$/u.test(e)&&(n=!0),n)a=g.this({loc:this.source.spanFor({start:t.loc.start,end:{line:t.loc.start.line,column:t.loc.start.column+4}})});else if(t.data){let i=r.shift();if(i===void 0)throw A("Attempted to parse a path expression, but it was not valid. Paths beginning with @ must start with a-z.",this.source.spanFor(t.loc));a=g.atName({name:`@${i}`,loc:this.source.spanFor({start:t.loc.start,end:{line:t.loc.start.line,column:t.loc.start.column+i.length+1}})})}else{let i=r.shift();if(i===void 0)throw A("Attempted to parse a path expression, but it was not valid. Paths must start with a-z or A-Z.",this.source.spanFor(t.loc));a=g.var({name:i,loc:this.source.spanFor({start:t.loc.start,end:{line:t.loc.start.line,column:t.loc.start.column+i.length}})})}return g.path({head:a,tail:r,loc:this.source.spanFor(t.loc)})}Hash(t){let e=t.pairs.map((r=>g.pair({key:r.key,value:this.acceptNode(r.value),loc:this.source.spanFor(r.loc)})));return g.hash({pairs:e,loc:this.source.spanFor(t.loc)})}StringLiteral(t){return g.literal({type:"StringLiteral",value:t.value,loc:this.source.spanFor(t.loc)})}BooleanLiteral(t){return g.literal({type:"BooleanLiteral",value:t.value,loc:this.source.spanFor(t.loc)})}NumberLiteral(t){return g.literal({type:"NumberLiteral",value:t.value,loc:this.source.spanFor(t.loc)})}UndefinedLiteral(t){return g.literal({type:"UndefinedLiteral",value:void 0,loc:this.source.spanFor(t.loc)})}NullLiteral(t){return g.literal({type:"NullLiteral",value:null,loc:this.source.spanFor(t.loc)})}constructor(...t){super(...t),this.pendingError=null}};function le(t,e){let r;switch(e.path.type){case"PathExpression":r=t.PathExpression(e.path);break;case"SubExpression":r=t.SubExpression(e.path);break;case"StringLiteral":case"UndefinedLiteral":case"NullLiteral":case"NumberLiteral":case"BooleanLiteral":{let i;throw i=e.path.type==="BooleanLiteral"?e.path.original.toString():e.path.type==="StringLiteral"?`"${e.path.original}"`:e.path.type==="NullLiteral"?"null":e.path.type==="NumberLiteral"?e.path.value.toString():"undefined",A(`${e.path.type} "${e.path.type==="StringLiteral"?e.path.original:i}" cannot be called as a sub-expression, replace (${i}) with ${i}`,t.source.spanFor(e.path.loc))}}let a=e.params.map((i=>t.acceptNode(i))),n=xt(a)?Ne(a).loc:r.loc;return{path:r,params:a,hash:e.hash?t.Hash(e.hash):g.hash({pairs:[],loc:t.source.spanFor(n).collapse("end")})}}function ce(t,e){let{path:r,params:a,hash:n,loc:i}=e;if(Wr(r)){let u=`{{${(function(l){return l.type==="UndefinedLiteral"?"undefined":JSON.stringify(l.value)})(r)}}}`;throw A(`In <${t.name} ... ${u} ..., ${u} is not a valid modifier`,e.loc)}let s=g.elementModifier({path:r,params:a,hash:n,loc:i});t.modifiers.push(s)}function cr(t,e,r){if(!e.program.loc){let n=Y(0,e.program.body,0),i=Y(0,e.program.body,-1);if(n&&i)e.program.loc={...n.loc,end:i.loc.end};else{let s=t.spanFor(e.loc);e.program.loc=r.withEnd(s.getEnd())}}let a=t.spanFor(e.program.loc).getEnd();return e.inverse&&!e.inverse.loc&&(e.inverse.loc=a.collapsed()),e}function lt(t){return/[\t\n\f ]/u.test(t)}var Ia=class extends _a{reset(){this.currentNode=null}beginComment(){this.currentNode={type:"CommentStatement",value:"",start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}appendToCommentData(t){this.currentComment.value+=t}finishComment(){dt(this.currentElement(),g.comment(this.finish(this.currentComment)))}beginData(){this.currentNode={type:"TextNode",chars:"",start:this.offset()}}appendToData(t){this.currentData.chars+=t}finishData(){dt(this.currentElement(),g.text(this.finish(this.currentData)))}tagOpen(){this.tagOpenLine=this.tokenizer.line,this.tagOpenColumn=this.tokenizer.column}beginStartTag(){this.currentNode={type:"StartTag",name:"",nameStart:null,nameEnd:null,attributes:[],modifiers:[],comments:[],params:[],selfClosing:!1,start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}beginEndTag(){this.currentNode={type:"EndTag",name:"",start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}finishTag(){let t=this.finish(this.currentTag);if(t.type==="StartTag"){if(this.finishStartTag(),t.name===":")throw A("Invalid named block named detected, you may have created a named block without a name, or you may have began your name with a number. Named blocks must have names that are at least one character long, and begin with a lower case letter",this.source.spanFor({start:this.currentTag.start.toJSON(),end:this.offset().toJSON()}));($t.has(t.name)||t.selfClosing)&&this.finishEndTag(!0)}else t.type,t.type,this.finishEndTag(!1)}finishStartTag(){let{name:t,nameStart:e,nameEnd:r}=this.currentStartTag,a=e.until(r),[n,...i]=t.split("."),s=g.path({head:g.head({original:n,loc:a.sliceStartChars({chars:n.length})}),tail:i,loc:a}),{attributes:u,modifiers:l,comments:h,params:p,selfClosing:f,loc:y}=this.finish(this.currentStartTag),D=g.element({path:s,selfClosing:f,attributes:u,modifiers:l,comments:h,params:p,children:[],openTag:y,closeTag:f?null:P.broken(),loc:y});this.elementStack.push(D)}finishEndTag(t){let{start:e}=this.currentTag,r=this.finish(this.currentTag),a=this.elementStack.pop();this.validateEndTag(r,a,t);let n=this.currentElement();t?a.closeTag=null:a.selfClosing?a.closeTag:a.closeTag=e.until(this.offset()),a.loc=a.loc.withEnd(this.offset()),dt(n,g.element(a))}markTagAsSelfClosing(){let t=this.currentTag;if(t.type!=="StartTag")throw A("Invalid end tag: closing tag must not be self-closing",this.source.spanFor({start:t.start.toJSON(),end:this.offset().toJSON()}));t.selfClosing=!0}appendToTagName(t){let e=this.currentTag;if(e.name+=t,e.type==="StartTag"){let r=this.offset();e.nameStart===null&&(e.nameEnd,e.nameStart=r.move(-1)),e.nameEnd=r}}beginAttribute(){let t=this.offset();this.currentAttribute={name:"",parts:[],currentPart:null,isQuoted:!1,isDynamic:!1,start:t,valueSpan:t.collapsed()}}appendToAttributeName(t){this.currentAttr.name+=t,this.currentAttr.name==="as"&&this.parsePossibleBlockParams()}beginAttributeValue(t){this.currentAttr.isQuoted=t,this.startTextPart(),this.currentAttr.valueSpan=this.offset().collapsed()}appendToAttributeValue(t){let e=this.currentAttr.parts,r=e[e.length-1],a=this.currentAttr.currentPart;if(a)a.chars+=t,a.loc=a.loc.withEnd(this.offset());else{let n=this.offset();n=t===`
|
|
31
|
+
`?r?r.loc.getEnd():this.currentAttr.valueSpan.getStart():n.move(-1),this.currentAttr.currentPart=g.text({chars:t,loc:n.collapsed()})}}finishAttributeValue(){this.finalizeTextPart();let t=this.currentTag,e=this.offset();if(t.type==="EndTag")throw A("Invalid end tag: closing tag must not have attributes",this.source.spanFor({start:t.start.toJSON(),end:e.toJSON()}));let{name:r,parts:a,start:n,isQuoted:i,isDynamic:s,valueSpan:u}=this.currentAttr;if(r.startsWith("|")&&a.length===0&&!i&&!s)throw A("Invalid block parameters syntax: block parameters must be preceded by the `as` keyword",n.until(n.move(r.length)));let l=this.assembleAttributeValue(a,i,s,n.until(e));l.loc=u.withEnd(e);let h=g.attr({name:r,value:l,loc:n.until(e)});this.currentStartTag.attributes.push(h)}parsePossibleBlockParams(){let t=/[!"#%&'()*+./;<=>@[\\\]^`{|}~]/u;this.tokenizer.state;let e=this.currentStartTag,r=this.currentAttr,a={state:"PossibleAs"},n={PossibleAs:s=>{if(a.state,lt(s))a={state:"BeforeStartPipe"},this.tokenizer.transitionTo("afterAttributeName"),this.tokenizer.consume();else{if(s==="|")throw A('Invalid block parameters syntax: expecting at least one space character between "as" and "|"',r.start.until(this.offset().move(1)));a={state:"Done"}}},BeforeStartPipe:s=>{a.state,lt(s)?this.tokenizer.consume():s==="|"?(a={state:"BeforeBlockParamName"},this.tokenizer.transitionTo("beforeAttributeName"),this.tokenizer.consume()):a={state:"Done"}},BeforeBlockParamName:s=>{if(a.state,lt(s))this.tokenizer.consume();else if(s==="")a={state:"Done"},this.pendingError={mustache(u){throw A("Invalid block parameters syntax: mustaches cannot be used inside parameters list",u)},eof(u){throw A('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',r.start.until(u))}};else if(s==="|"){if(e.params.length===0)throw A("Invalid block parameters syntax: empty parameters list, expecting at least one identifier",r.start.until(this.offset().move(1)));a={state:"AfterEndPipe"},this.tokenizer.consume()}else{if(s===">"||s==="/")throw A('Invalid block parameters syntax: incomplete parameters list, expecting "|" but the tag was closed prematurely',r.start.until(this.offset().move(1)));a={state:"BlockParamName",name:s,start:this.offset()},this.tokenizer.consume()}},BlockParamName:s=>{if(a.state,s==="")a={state:"Done"},this.pendingError={mustache(u){throw A("Invalid block parameters syntax: mustaches cannot be used inside parameters list",u)},eof(u){throw A('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',r.start.until(u))}};else if(s==="|"||lt(s)){let u=a.start.until(this.offset());if(a.name==="this"||t.test(a.name))throw A(`Invalid block parameters syntax: invalid identifier name \`${a.name}\``,u);e.params.push(g.var({name:a.name,loc:u})),a=s==="|"?{state:"AfterEndPipe"}:{state:"BeforeBlockParamName"},this.tokenizer.consume()}else{if(s===">"||s==="/")throw A('Invalid block parameters syntax: expecting "|" but the tag was closed prematurely',r.start.until(this.offset().move(1)));a.name+=s,this.tokenizer.consume()}},AfterEndPipe:s=>{a.state,lt(s)?this.tokenizer.consume():s===""?(a={state:"Done"},this.pendingError={mustache(u){throw A("Invalid block parameters syntax: modifiers cannot follow parameters list",u)},eof(u){throw A('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',r.start.until(u))}}):s===">"||s==="/"?a={state:"Done"}:(a={state:"Error",message:'Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',start:this.offset()},this.tokenizer.consume())},Error:s=>{if(a.state,s===""||s==="/"||s===">"||lt(s))throw A(a.message,a.start.until(this.offset()));this.tokenizer.consume()},Done:()=>{}},i;do i=this.tokenizer.peek(),n[a.state](i);while(a.state!=="Done"&&i!=="");a.state}reportSyntaxError(t){throw A(t,this.offset().collapsed())}assembleConcatenatedValue(t){let e=va(t),r=Ne(t);return g.concat({parts:t,loc:this.source.spanFor(e.loc).extend(this.source.spanFor(r.loc))})}validateEndTag(t,e,r){if($t.has(t.name)&&!r)throw A(`<${t.name}> elements do not need end tags. You should remove it`,t.loc);if(e.type!=="ElementNode")throw A(`Closing tag </${t.name}> without an open tag`,t.loc);if(e.tag!==t.name)throw A(`Closing tag </${t.name}> did not match last open tag <${e.tag}> (on line ${e.loc.startPosition.line})`,t.loc)}assembleAttributeValue(t,e,r,a){if(r){if(e)return this.assembleConcatenatedValue(t);{let[n,i]=t;if(i===void 0||i.type==="TextNode"&&i.chars==="/")return n;throw A("An unquoted attribute value must be a string or a mustache, preceded by whitespace or a '=' character, and followed by whitespace, a '>' character, or '/>'",a)}}return xt(t)?t[0]:g.text({chars:"",loc:a})}constructor(...t){super(...t),this.tagOpenLine=0,this.tagOpenColumn=0}},Oa={},Va=class extends Vr{constructor(){super({})}parse(){}};function Ra(t,e={}){let r,a,n,i=e.mode||"precompile";typeof t=="string"?(r=new St(t,e.meta?.moduleName),a=i==="codemod"?me(t,e.parseOptions):er(t,e.parseOptions)):t instanceof St?(r=t,a=i==="codemod"?me(t.source,e.parseOptions):er(t.source,e.parseOptions)):(r=new St("",e.meta?.moduleName),a=t),i==="codemod"&&(n=new Va);let s=P.forCharPositions(r,0,r.source.length);a.loc={source:"(program)",start:s.startPosition,end:s.endPosition};let u=new Ia(r,n,i).parse(a,e.locals??[]);if(e.plugins?.ast)for(let l of e.plugins.ast)Fa(u,l(_r({},e,{syntax:Oa},{plugins:void 0})).visitor);return u}var $a={resolution:()=>Te.GetStrictKeyword,serialize:()=>"Strict",isAngleBracket:!1},Hi={...$a,isAngleBracket:!0},Ha=Gn(zr),Ua=Ha,wt=t=>t.loc.start.offset,Ae=t=>t.loc.end.offset,za=new Set(Da());function Jr(t){return t.toUpperCase()===t}function Ma(t){return t.type==="ElementNode"&&typeof t.tag=="string"&&!t.tag.startsWith(":")&&(Jr(t.tag[0])||t.tag.includes("."))}function Ga(t){return za.has(t.toLowerCase())&&!Jr(t[0])}function Qr(t){return t.selfClosing===!0||Ga(t.tag)||Ma(t)&&t.children.every(e=>qe(e))}function qe(t){return t.type==="TextNode"&&!/\S/u.test(t.chars)}function hr(t){return t?.type==="MustacheCommentStatement"&&typeof t.value=="string"&&t.value.trim()==="prettier-ignore"}function ja(t){return hr(t.node)||t.isInArray&&(t.key==="children"||t.key==="body"||t.key==="parts")&&hr(t.siblings[t.index-2])}var Yr=2;function Wa(t,e,r){let{node:a}=t;switch(a.type){case"Block":case"Program":case"Template":return L(t.map(r,"body"));case"ElementNode":{let n=e.htmlWhitespaceSensitivity!=="ignore",i=[!n&&t.previous?.type==="ElementNode"?V:"",L([Ja(t,r)])];if(Qr(a))return[i];let s=["</",a.tag,">"],u=a.tag==="style";if(a.children.length===0||(!n||u)&&a.children.every(h=>qe(h)))return[i,s];let l=t.map(r,"children");return u||!n?[i,R([V,...l]),V,s]:[i,R(L(l)),s]}case"BlockStatement":return tn(t)?[ri(t,r),mr(t,e,r),fr(t,e,r)]:[Xa(t,r),L([mr(t,e,r),fr(t,e,r),ni(t,e,r)])];case"ElementModifierStatement":return L(["{{",yr(t,r),"}}"]);case"MustacheStatement":return L([Gt(a),yr(t,r),jt(a)]);case"SubExpression":return L(["(",li(t,r),V,")"]);case"AttrNode":{let{name:n,value:i}=a,s=i.type==="TextNode";if(s&&i.chars===""&&wt(i)===Ae(i))return n;let u=s?he(i.chars,e.singleQuote):i.type==="ConcatStatement"?he(i.parts.map(h=>h.type==="TextNode"?h.chars:"").join(""),e.singleQuote):"",l=r("value");return[n,"=",u,n==="class"&&u?L(R(l)):l,u]}case"ConcatStatement":return t.map(r,"parts");case"Hash":return Bt(x,t.map(r,"pairs"));case"HashPair":return[a.key,"=",r("value")];case"TextNode":{let n=a.chars,{parent:i}=t;if(i.type==="ElementNode"){if(i.tag==="pre")return ae(n);if(i.tag==="style")return n=Vt(0,n,/^\n+/gu,""),n=O.trimEnd(n),n=O.dedentString(n),ae(n,yt)}n=Vt(0,n,"{{","\\{{");let s=ai(t);if(s){if(s==="class"){let F=n.trim().split(/\s+/u).join(" "),q=!1,$=!1;return t.parent.type==="ConcatStatement"&&(t.previous?.type==="MustacheStatement"&&/^\s/u.test(n)&&(q=!0),t.next?.type==="MustacheStatement"&&/\s$/u.test(n)&&F!==""&&($=!0)),[q?x:"",F,$?x:""]}return ae(n)}let u=O.isWhitespaceOnly(n),{isFirst:l,isLast:h}=t;if(e.htmlWhitespaceSensitivity!=="ignore"){let F=h&&t.parent.type==="Template",q=l&&t.parent.type==="Template";if(u){if(q||F)return"";let w=[x],K=ht(n);return K&&(w=Et(K)),h&&(w=w.map(j=>Je(j))),w}let $=O.getLeadingWhitespace(n),H=[];if($){H=[x];let w=ht($);w&&(H=Et(w)),n=n.slice($.length)}let k=O.getTrailingWhitespace(n),I=[];if(k){if(!F){I=[x];let w=ht(k);w&&(I=Et(w)),h&&(I=I.map(K=>Je(K)))}n=n.slice(0,-k.length)}return[...H,Qe(gr(n)),...I]}let p=ht(n),f=ii(n),y=si(n);if((l||h)&&u&&(t.parent.type==="Block"||t.parent.type==="ElementNode"||t.parent.type==="Template"))return"";u&&p?(f=Math.min(p,Yr),y=0):((t.next?.type==="BlockStatement"||t.next?.type==="ElementNode")&&(y=Math.max(y,1)),(t.previous?.type==="BlockStatement"||t.previous?.type==="ElementNode")&&(f=Math.max(f,1)));let D="",C="";return y===0&&t.next?.type==="MustacheStatement"&&(C=" "),f===0&&t.previous?.type==="MustacheStatement"&&(D=" "),l&&(f=0,D=""),h&&(y=0,C=""),O.hasLeadingWhitespace(n)&&(n=D+O.trimStart(n)),O.hasTrailingWhitespace(n)&&(n=O.trimEnd(n)+C),[...Et(f),Qe(gr(n)),...Et(y)]}case"MustacheCommentStatement":{let n=wt(a),i=Ae(a),s=e.originalText.charAt(n+2)==="~",u=e.originalText.charAt(i-3)==="~",l=a.value.includes("}}")?"--":"";return["{{",s?"~":"","!",l,a.value,l,u?"~":"","}}"]}case"PathExpression":return di(a);case"BooleanLiteral":return String(a.value);case"CommentStatement":return["<!--",a.value,"-->"];case"StringLiteral":return ui(t,e);case"NumberLiteral":return String(a.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Vn(a,"Handlebars")}}function Ka(t,e){return wt(t)-wt(e)}function Ja(t,e){let{node:r}=t,a=["attributes","modifiers","comments"].filter(i=>Rt(r[i])),n=a.flatMap(i=>r[i]).sort(Ka);for(let i of a)t.each(({node:s})=>{let u=n.indexOf(s);n.splice(u,1,[x,e()])},i);return Rt(r.blockParams)&&n.push(x,Ie(r)),["<",r.tag,R(n),Qa(r)]}function Qa(t){return Qr(t)?Ye([V,"/>"],[" />",V]):Ye([V,">"],">")}function Gt(t){let e=t.trusting?"{{{":"{{",r=t.strip?.open?"~":"";return[e,r]}function jt(t){let e=t.trusting?"}}}":"}}";return[t.strip?.close?"~":"",e]}function Ya(t){let e=Gt(t),r=t.openStrip.open?"~":"";return[e,r,"#"]}function Za(t){let e=jt(t);return[t.openStrip.close?"~":"",e]}function pr(t){let e=Gt(t),r=t.closeStrip.open?"~":"";return[e,r,"/"]}function dr(t){let e=jt(t);return[t.closeStrip.close?"~":"",e]}function Zr(t){let e=Gt(t),r=t.inverseStrip.open?"~":"";return[e,r]}function Xr(t){let e=jt(t);return[t.inverseStrip.close?"~":"",e]}function Xa(t,e){let{node:r}=t,a=[],n=Wt(t,e);return n&&a.push(L(n)),Rt(r.program.blockParams)&&a.push(Ie(r.program)),L([Ya(r),_e(t,e),a.length>0?R([x,Bt(x,a)]):"",V,Za(r)])}function ti(t,e){return[e.htmlWhitespaceSensitivity==="ignore"?yt:"",Zr(t),"else",Xr(t)]}var ei=({path:t},{path:e})=>[t,e].every(r=>r.type==="PathExpression"&&r.head.type==="VarHead")&&t.head.name===e.head.name;function tn(t){if(!t.match(r=>r.type==="BlockStatement",(r,a)=>a==="body"&&r.type==="Block"&&r.body.length===1,(r,a)=>a==="inverse"&&r.type==="BlockStatement"))return!1;let{node:e}=t;return e.path.type==="PathExpression"&&e.path.head.type==="VarHead"&&e.path.head.name==="if"||ei(e,t.grandparent)}function ri(t,e){let{node:r,grandparent:a}=t;return L([Zr(a),["else"," ",a.inverse.body[0].path.head.name],R([x,L(Wt(t,e)),...Rt(r.program.blockParams)?[x,Ie(r.program)]:[]]),V,Xr(a)])}function ni(t,e,r){let{node:a}=t;return e.htmlWhitespaceSensitivity==="ignore"?[en(a)?V:yt,pr(a),r("path"),dr(a)]:[pr(a),r("path"),dr(a)]}function en(t){return t.type==="BlockStatement"&&t.program.body.every(e=>qe(e))}function mr(t,e,r){let{node:a}=t;if(en(a))return"";let n=r("program");return e.htmlWhitespaceSensitivity==="ignore"?R([yt,n]):R(n)}function fr(t,e,r){let{node:a}=t;if(!a.inverse)return"";let n=r("inverse"),i=e.htmlWhitespaceSensitivity==="ignore"?[yt,n]:n;return t.call(tn,"inverse","body",0)?i:[ti(a,e),R(i)]}function gr(t){return Bt(x,O.split(t))}function ai(t){for(let e=0;e<2;e++){let r=t.getParentNode(e);if(r?.type==="AttrNode")return r.name.toLowerCase()}}function ht(t){return t=typeof t=="string"?t:"",t.split(`
|
|
32
|
+
`).length-1}function ii(t){t=typeof t=="string"?t:"";let e=(t.match(/^([^\S\n\r]*[\n\r])+/gu)||[])[0]||"";return ht(e)}function si(t){t=typeof t=="string"?t:"";let e=(t.match(/([\n\r][^\S\n\r]*)+$/gu)||[])[0]||"";return ht(e)}function Et(t=0){return Array.from({length:Math.min(t,Yr)}).fill(yt)}function ui(t,e){let{node:{value:r}}=t,a=he(r,oi(t)?!e.singleQuote:e.singleQuote);return[a,Vt(0,r,a,`\\${a}`),a]}function oi(t){let{ancestors:e}=t,r=e.findIndex(a=>a.type!=="SubExpression");return r!==-1&&e[r+1].type==="ConcatStatement"&&e[r+2].type==="AttrNode"}function li(t,e){let r=_e(t,e),a=Wt(t,e);return a?R([r,x,L(a)]):r}function yr(t,e){let r=_e(t,e),a=Wt(t,e);return a?[R([r,x,a]),V]:r}function _e(t,e){return e("path")}function Wt(t,e){let{node:r}=t,a=[];return r.params.length>0&&a.push(...t.map(e,"params")),r.hash?.pairs.length>0&&a.push(e("hash")),a.length===0?"":Bt(x,a)}function Ie(t){return["as |",t.blockParams.join(" "),"|"]}var ci=new Set("!\"#%&'()*+,./;<=>@[\\]^`{|}~"),hi=new Set(["true","false","null","undefined"]),pi=(t,e)=>e===0&&t.startsWith("@")?!1:e!==0&&hi.has(t)||/\s/u.test(t)||/^\d/u.test(t)||Array.prototype.some.call(t,r=>ci.has(r));function di(t){return t.tail.length===0&&t.original.includes("/")?t.original:[t.head.original,...t.tail].map((e,r)=>pi(e,r)?`[${e}]`:e).join(".")}var mi={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},print:Wa,massageAstNode:Rn,hasPrettierIgnore:ja,getVisitorKeys:Ua,embed:Hn},fi=mi,gi=[{name:"Handlebars",type:"markup",aceMode:"handlebars",extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aliases:["hbs","htmlbars"],parsers:["glimmer"],vscodeLanguageIds:["handlebars"],linguistLanguageId:155}],rn={};De(rn,{glimmer:()=>Ni});function yi(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)}var bi=yi,Ai=Symbol.for("PRETTIER_IS_FRONT_MATTER"),vt=3;function Di(t){let e=t.slice(0,vt);if(e!=="---"&&e!=="+++")return;let r=t.indexOf(`
|
|
33
|
+
`,vt);if(r===-1)return;let a=t.slice(vt,r).trim(),n=t.indexOf(`
|
|
34
|
+
${e}`,r),i=a;if(i||(i=e==="+++"?"toml":"yaml"),n===-1&&e==="---"&&i==="yaml"&&(n=t.indexOf(`
|
|
35
|
+
...`,r)),n===-1)return;let s=n+1+vt,u=t.charAt(s+1);if(!/\s?/u.test(u))return;let l=t.slice(0,s),h;return{language:i,explicitLanguage:a||null,value:t.slice(r+1,n),startDelimiter:e,endDelimiter:l.slice(-vt),raw:l,start:{line:1,column:0,index:0},end:{index:l.length,get line(){return h??(h=l.split(`
|
|
36
|
+
`)),h.length},get column(){return h??(h=l.split(`
|
|
37
|
+
`)),Y(0,h,-1).length}},[Ai]:!0}}function Ei(t){let e=Di(t);return e?{frontMatter:e,get content(){let{raw:r}=e;return Vt(0,r,/[^\n]/gu," ")+t.slice(r.length)}}:{content:t}}var vi=Ei;function Ci(t){let e=t.children??t.body;if(e)for(let r=0;r<e.length-1;r++)e[r].type==="TextNode"&&e[r+1].type==="MustacheStatement"&&(e[r].chars=e[r].chars.replace(/\\$/u,"\\\\"))}var Si=t=>{let{start:e,end:r}=t.loc;e.offset=t.loc.getStart().offset,r.offset=t.loc.getEnd().offset},ki=()=>({name:"glimmerPrettierParsePlugin",visitor:{All(t){Si(t),Ci(t)}}}),wi={mode:"codemod",plugins:{ast:[ki]}};function Bi(t){let{frontMatter:e,content:r}=vi(t),a;try{a=Ra(r,wi)}catch(n){let i=Ti(n);if(i){let s=xi(n);throw bi(s,{loc:i,cause:n})}throw n}if(e){let n={...e,type:"FrontMatter",loc:{start:{...e.start,offset:e.start.index},end:{...e.end,offset:e.end.index}}};a.body.unshift(n)}return a}function xi(t){let{message:e}=t,r=e.split(`
|
|
38
|
+
`);return r.length>=4&&/^Parse error on line \d+:$/u.test(r[0])&&/^-*\^$/u.test(Y(0,r,-2))?Y(0,r,-1):r.length>=4&&/:\s?$/u.test(r[0])&&/^\(error occurred in '.*?' @ line \d+ : column \d+\)$/u.test(Y(0,r,-1))&&r[1]===""&&Y(0,r,-2)===""&&r.slice(2,-2).every(a=>a.startsWith("|"))?r[0].trim().slice(0,-1):e}function Ti(t){let{location:e,hash:r}=t;if(e){let{start:a,end:n}=e;return typeof n.line!="number"?{start:a}:e}if(r){let{loc:{last_line:a,last_column:n}}=r;return{start:{line:a,column:n+1}}}}var Ni={parse:Bi,astFormat:"glimmer",locStart:wt,locEnd:Ae},Pi={glimmer:fi};export{cn as default,gi as languages,rn as parsers,Pi as printers};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'module';globalThis.require = __createRequire(import.meta.url);
|
|
2
|
+
import{i as Q}from"./chunk-Y52UPHAG.js";Q();var Oe=Object.defineProperty,ee=(e,t)=>{for(var i in t)Oe(e,i,{get:t[i],enumerable:!0})},De={};ee(De,{languages:()=>mt,options:()=>It,parsers:()=>he,printers:()=>ri});var Ae=(e,t)=>(i,r,...n)=>i|1&&r==null?void 0:(t.call(r)??r[e]).apply(r,n),xe=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},_e=Ae("replaceAll",function(){if(typeof this=="string")return xe}),K=_e,ge=()=>{},te=ge,ke="indent",Ce="group",Se="if-break",J="line",be="break-parent",w=te,ie=te;function v(e){return w(e),{type:ke,contents:e}}var Re={type:be};function O(e,t={}){return w(e),ie(t.expandedStates,!0),{type:Ce,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function A(e,t="",i={}){return w(e),t!==""&&w(t),{type:Se,breakContents:e,flatContents:t,groupId:i.groupId}}function E(e,t){w(e),ie(t);let i=[];for(let r=0;r<t.length;r++)r!==0&&i.push(e),i.push(t[r]);return i}var S={type:J},p={type:J,soft:!0},Le={type:J,hard:!0},h=[Le,Re];function U(e){return(t,i,r)=>{let n=!!r?.backwards;if(i===!1)return!1;let{length:s}=t,o=i;for(;o>=0&&o<s;){let c=t.charAt(o);if(e instanceof RegExp){if(!e.test(c))return o}else if(!e.includes(c))return o;n?o--:o++}return o===-1||o===s?o:!1}}var si=U(/\s/u),ne=U(" "),Fe=U(",; "),we=U(/[^\n\r]/u),X=e=>e===`
|
|
3
|
+
`||e==="\r"||e==="\u2028"||e==="\u2029";function Pe(e,t,i){let r=!!i?.backwards;if(t===!1)return!1;let n=e.charAt(t);if(r){if(e.charAt(t-1)==="\r"&&n===`
|
|
4
|
+
`)return t-2;if(X(n))return t-1}else{if(n==="\r"&&e.charAt(t+1)===`
|
|
5
|
+
`)return t+2;if(X(n))return t+1}return t}var re=Pe;function Me(e,t,i={}){let r=ne(e,i.backwards?t-1:t,i),n=re(e,r,i);return r!==n}var Ue=Me;function Ve(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let i=t+2;i<e.length;++i)if(e.charAt(i)==="*"&&e.charAt(i+1)==="/")return i+2}return t}var Be=Ve;function je(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?we(e,t):t}var Ke=je;function $e(e,t){let i=null,r=t;for(;r!==i;)i=r,r=Fe(e,r),r=Be(e,r),r=ne(e,r);return r=Ke(e,r),r=re(e,r),r!==!1&&Ue(e,r)}var Ge=$e;function Ye(e){return Array.isArray(e)&&e.length>0}var se=Ye,qe=class extends Error{name="UnexpectedNodeError";constructor(e,t,i="type"){super(`Unexpected ${t} node ${i}: ${JSON.stringify(e[i])}.`),this.node=e}},Je=qe,R=null;function F(e){if(R!==null&&typeof R.property){let t=R;return R=F.prototype=null,t}return R=F.prototype=e??Object.create(null),new F}var Qe=10;for(let e=0;e<=Qe;e++)F();function Xe(e){return F(e)}function ze(e,t="type"){Xe(e);function i(r){let n=r[t],s=e[n];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:r});return s}return i}var He=ze,We=class{constructor(e,t,i){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=i}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},ae=class{constructor(e,t,i,r,n,s){this.kind=e,this.start=t,this.end=i,this.line=r,this.column=n,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},oe={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},ai=new Set(Object.keys(oe)),C;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(C||(C={}));var le={...oe};for(let e of["ArgumentCoordinate","DirectiveArgumentCoordinate","DirectiveCoordinate","MemberCoordinate","TypeCoordinate"])delete le[e];var Ze=le,et=He(Ze,"kind"),tt=et,ce=e=>e.loc.start,ue=e=>e.loc.end,it="format",nt=/^\s*#[^\S\n]*@(?:noformat|noprettier)\s*(?:\n|$)/u,rt=/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/u,st=e=>rt.test(e),at=e=>nt.test(e),ot=e=>`# @${it}
|
|
6
|
+
|
|
7
|
+
${e}`;function lt(e,t,i){let{node:r}=e;if(!r.description)return"";let n=[i("description")];return r.kind==="InputValueDefinition"&&!r.description.block?n.push(S):n.push(h),n}var y=lt;function ct(e,t,i){let{node:r}=e;switch(r.kind){case"Document":return[...E(h,D(e,t,i,"definitions")),h];case"OperationDefinition":{let n=t.originalText[ce(r)]!=="{",s=!!r.name;return[y(e,t,i),n?r.operation:"",n&&s?[" ",i("name")]:"",n&&!s&&se(r.variableDefinitions)?" ":"",z(e,i),T(e,i,r),!n&&!s?"":" ",i("selectionSet")]}case"FragmentDefinition":return[y(e,t,i),"fragment ",i("name"),z(e,i)," on ",i("typeCondition"),T(e,i,r)," ",i("selectionSet")];case"SelectionSet":return["{",v([h,E(h,D(e,t,i,"selections"))]),h,"}"];case"Field":return O([r.alias?[i("alias"),": "]:"",i("name"),r.arguments.length>0?O(["(",v([p,E([A("",", "),p],D(e,t,i,"arguments"))]),p,")"]):"",T(e,i,r),r.selectionSet?" ":"",i("selectionSet")]);case"Name":return r.value;case"StringValue":if(r.block){let n=K(0,r.value,'"""','\\"""').split(`
|
|
8
|
+
`);return n.length===1&&(n[0]=n[0].trim()),n.every(s=>s==="")&&(n.length=0),E(h,['"""',...n,'"""'])}return['"',K(0,K(0,r.value,/["\\]/gu,"\\$&"),`
|
|
9
|
+
`,"\\n"),'"'];case"IntValue":case"FloatValue":case"EnumValue":return r.value;case"BooleanValue":return r.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",i("name")];case"ListValue":return O(["[",v([p,E([A("",", "),p],e.map(i,"values"))]),p,"]"]);case"ObjectValue":{let n=t.bracketSpacing&&r.fields.length>0?" ":"";return O(["{",n,v([p,E([A("",", "),p],e.map(i,"fields"))]),p,A("",n),"}"])}case"ObjectField":case"Argument":return[i("name"),": ",i("value")];case"Directive":return["@",i("name"),r.arguments.length>0?O(["(",v([p,E([A("",", "),p],D(e,t,i,"arguments"))]),p,")"]):""];case"NamedType":return i("name");case"VariableDefinition":return[y(e,t,i),i("variable"),": ",i("type"),r.defaultValue?[" = ",i("defaultValue")]:"",T(e,i,r)];case"ObjectTypeExtension":case"ObjectTypeDefinition":case"InputObjectTypeExtension":case"InputObjectTypeDefinition":case"InterfaceTypeExtension":case"InterfaceTypeDefinition":{let{kind:n}=r,s=[];return n.endsWith("TypeDefinition")?s.push(y(e,t,i)):s.push("extend "),n.startsWith("ObjectType")?s.push("type"):n.startsWith("InputObjectType")?s.push("input"):s.push("interface"),s.push(" ",i("name")),!n.startsWith("InputObjectType")&&r.interfaces.length>0&&s.push(" implements ",...ht(e,t,i)),s.push(T(e,i,r)),r.fields.length>0&&s.push([" {",v([h,E(h,D(e,t,i,"fields"))]),h,"}"]),s}case"FieldDefinition":return[y(e,t,i),i("name"),r.arguments.length>0?O(["(",v([p,E([A("",", "),p],D(e,t,i,"arguments"))]),p,")"]):"",": ",i("type"),T(e,i,r)];case"DirectiveDefinition":return[y(e,t,i),"directive ","@",i("name"),r.arguments.length>0?O(["(",v([p,E([A("",", "),p],D(e,t,i,"arguments"))]),p,")"]):"",r.repeatable?" repeatable":""," on ",...E(" | ",e.map(i,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[y(e,t,i),r.kind==="EnumTypeExtension"?"extend ":"","enum ",i("name"),T(e,i,r),r.values.length>0?[" {",v([h,E(h,D(e,t,i,"values"))]),h,"}"]:""];case"EnumValueDefinition":return[y(e,t,i),i("name"),T(e,i,r)];case"InputValueDefinition":return[y(e,t,i),i("name"),": ",i("type"),r.defaultValue?[" = ",i("defaultValue")]:"",T(e,i,r)];case"SchemaExtension":return["extend schema",T(e,i,r),...r.operationTypes.length>0?[" {",v([h,E(h,D(e,t,i,"operationTypes"))]),h,"}"]:[]];case"SchemaDefinition":return[y(e,t,i),"schema",T(e,i,r)," {",r.operationTypes.length>0?v([h,E(h,D(e,t,i,"operationTypes"))]):"",h,"}"];case"OperationTypeDefinition":return[r.operation,": ",i("type")];case"FragmentSpread":return["...",i("name"),T(e,i,r)];case"InlineFragment":return["...",r.typeCondition?[" on ",i("typeCondition")]:"",T(e,i,r)," ",i("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return O([y(e,t,i),O([r.kind==="UnionTypeExtension"?"extend ":"","union ",i("name"),T(e,i,r),r.types.length>0?[" =",A(""," "),v([A([S,"| "]),E([S,"| "],e.map(i,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[y(e,t,i),r.kind==="ScalarTypeExtension"?"extend ":"","scalar ",i("name"),T(e,i,r)];case"NonNullType":return[i("type"),"!"];case"ListType":return["[",i("type"),"]"];default:throw new Je(r,"Graphql","kind")}}function T(e,t,i){if(i.directives.length===0)return"";let r=E(S,e.map(t,"directives"));return i.kind==="FragmentDefinition"||i.kind==="OperationDefinition"?O([S,r]):[" ",O(v([p,r]))]}function D(e,t,i,r){return e.map(({isLast:n,node:s})=>{let o=i();return!n&&Ge(t.originalText,ue(s))?[o,h]:o},r)}function ut(e){return e.kind!=="Comment"}function pt({node:e}){if(e.kind==="Comment")return"#"+e.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(e))}function ht(e,t,i){let{node:r}=e,n=[],{interfaces:s}=r,o=e.map(i,"interfaces");for(let c=0;c<s.length;c++){let u=s[c];n.push(o[c]);let N=s[c+1];if(N){let I=t.originalText.slice(u.loc.end,N.loc.start).includes("#");n.push(" &",I?S:" ")}}return n}function z(e,t){let{node:i}=e;return se(i.variableDefinitions)?O(["(",v([p,E([A("",", "),p],e.map(t,"variableDefinitions"))]),p,")"]):""}function pe(e,t){e.kind==="StringValue"&&e.block&&!e.value.includes(`
|
|
10
|
+
`)&&(t.value=e.value.trim())}pe.ignoredProperties=new Set(["loc","comments"]);function dt(e){let{node:t}=e;return t?.comments?.some(i=>i.value.trim()==="prettier-ignore")}var ft={print:ct,massageAstNode:pe,hasPrettierIgnore:dt,insertPragma:ot,printComment:pt,canAttachComment:ut,getVisitorKeys:tt},Et=ft,mt=[{name:"GraphQL",type:"data",aceMode:"graphqlschema",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",parsers:["graphql"],vscodeLanguageIds:["graphql"],linguistLanguageId:139}],Tt={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},Nt={bracketSpacing:Tt.bracketSpacing},It=Nt,he={};ee(he,{graphql:()=>ni});function vt(e){return typeof e=="object"&&e!==null}function yt(e,t){if(!e)throw new Error(t??"Unexpected invariant triggered.")}var Ot=/\r\n|[\n\r]/g;function Y(e,t){let i=0,r=1;for(let n of e.body.matchAll(Ot)){if(typeof n.index=="number"||yt(!1),n.index>=t)break;i=n.index+n[0].length,r+=1}return{line:r,column:t+1-i}}function Dt(e){return de(e.source,Y(e.source,e.start))}function de(e,t){let i=e.locationOffset.column-1,r="".padStart(i)+e.body,n=t.line-1,s=e.locationOffset.line-1,o=t.line+s,c=t.line===1?i:0,u=t.column+c,N=`${e.name}:${o}:${u}
|
|
11
|
+
`,I=r.split(/\r\n|[\n\r]/g),g=I[n];if(g.length>120){let x=Math.floor(u/80),j=u%80,m=[];for(let k=0;k<g.length;k+=80)m.push(g.slice(k,k+80));return N+H([[`${o} |`,m[0]],...m.slice(1,x+1).map(k=>["|",k]),["|","^".padStart(j)],["|",m[x+1]]])}return N+H([[`${o-1} |`,I[n-1]],[`${o} |`,g],["|","^".padStart(u)],[`${o+1} |`,I[n+1]]])}function H(e){let t=e.filter(([r,n])=>n!==void 0),i=Math.max(...t.map(([r])=>r.length));return t.map(([r,n])=>r.padStart(i)+(n?" "+n:"")).join(`
|
|
12
|
+
`)}function At(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var xt=class fe extends Error{constructor(t,...i){var r,n,s;let{nodes:o,source:c,positions:u,path:N,originalError:I,extensions:g}=At(i);super(t),this.name="GraphQLError",this.path=N??void 0,this.originalError=I??void 0,this.nodes=W(Array.isArray(o)?o:o?[o]:void 0);let x=W((r=this.nodes)===null||r===void 0?void 0:r.map(m=>m.loc).filter(m=>m!=null));this.source=c??(x==null||(n=x[0])===null||n===void 0?void 0:n.source),this.positions=u??x?.map(m=>m.start),this.locations=u&&c?u.map(m=>Y(c,m)):x?.map(m=>Y(m.source,m.start));let j=vt(I?.extensions)?I?.extensions:void 0;this.extensions=(s=g??j)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),I!=null&&I.stack?Object.defineProperty(this,"stack",{value:I.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,fe):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let i of this.nodes)i.loc&&(t+=`
|
|
13
|
+
|
|
14
|
+
`+Dt(i.loc));else if(this.source&&this.locations)for(let i of this.locations)t+=`
|
|
15
|
+
|
|
16
|
+
`+de(this.source,i);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};function W(e){return e===void 0||e.length===0?void 0:e}function f(e,t,i){return new xt(`Syntax Error: ${i}`,{source:e,positions:[t]})}var q;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(q||(q={}));var l;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(l||(l={}));function _t(e){return e===9||e===32}function P(e){return e>=48&&e<=57}function Ee(e){return e>=97&&e<=122||e>=65&&e<=90}function me(e){return Ee(e)||e===95}function gt(e){return Ee(e)||P(e)||e===95}function kt(e){var t;let i=Number.MAX_SAFE_INTEGER,r=null,n=-1;for(let o=0;o<e.length;++o){var s;let c=e[o],u=Ct(c);u!==c.length&&(r=(s=r)!==null&&s!==void 0?s:o,n=o,o!==0&&u<i&&(i=u))}return e.map((o,c)=>c===0?o:o.slice(i)).slice((t=r)!==null&&t!==void 0?t:0,n+1)}function Ct(e){let t=0;for(;t<e.length&&_t(e.charCodeAt(t));)++t;return t}var a;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(a||(a={}));var St=class{constructor(e){let t=new ae(a.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==a.EOF)do if(e.next)e=e.next;else{let t=Rt(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===a.COMMENT);return e}};function bt(e){return e===a.BANG||e===a.DOLLAR||e===a.AMP||e===a.PAREN_L||e===a.PAREN_R||e===a.DOT||e===a.SPREAD||e===a.COLON||e===a.EQUALS||e===a.AT||e===a.BRACKET_L||e===a.BRACKET_R||e===a.BRACE_L||e===a.PIPE||e===a.BRACE_R}function b(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function V(e,t){return Te(e.charCodeAt(t))&&Ne(e.charCodeAt(t+1))}function Te(e){return e>=55296&&e<=56319}function Ne(e){return e>=56320&&e<=57343}function _(e,t){let i=e.source.body.codePointAt(t);if(i===void 0)return a.EOF;if(i>=32&&i<=126){let r=String.fromCodePoint(i);return r==='"'?`'"'`:`"${r}"`}return"U+"+i.toString(16).toUpperCase().padStart(4,"0")}function d(e,t,i,r,n){let s=e.line,o=1+i-e.lineStart;return new ae(t,i,r,s,o,n)}function Rt(e,t){let i=e.source.body,r=i.length,n=t;for(;n<r;){let s=i.charCodeAt(n);switch(s){case 65279:case 9:case 32:case 44:++n;continue;case 10:++n,++e.line,e.lineStart=n;continue;case 13:i.charCodeAt(n+1)===10?n+=2:++n,++e.line,e.lineStart=n;continue;case 35:return Lt(e,n);case 33:return d(e,a.BANG,n,n+1);case 36:return d(e,a.DOLLAR,n,n+1);case 38:return d(e,a.AMP,n,n+1);case 40:return d(e,a.PAREN_L,n,n+1);case 41:return d(e,a.PAREN_R,n,n+1);case 46:if(i.charCodeAt(n+1)===46&&i.charCodeAt(n+2)===46)return d(e,a.SPREAD,n,n+3);break;case 58:return d(e,a.COLON,n,n+1);case 61:return d(e,a.EQUALS,n,n+1);case 64:return d(e,a.AT,n,n+1);case 91:return d(e,a.BRACKET_L,n,n+1);case 93:return d(e,a.BRACKET_R,n,n+1);case 123:return d(e,a.BRACE_L,n,n+1);case 124:return d(e,a.PIPE,n,n+1);case 125:return d(e,a.BRACE_R,n,n+1);case 34:return i.charCodeAt(n+1)===34&&i.charCodeAt(n+2)===34?Vt(e,n):wt(e,n)}if(P(s)||s===45)return Ft(e,n,s);if(me(s))return Bt(e,n);throw f(e.source,n,s===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:b(s)||V(i,n)?`Unexpected character: ${_(e,n)}.`:`Invalid character: ${_(e,n)}.`)}return d(e,a.EOF,r,r)}function Lt(e,t){let i=e.source.body,r=i.length,n=t+1;for(;n<r;){let s=i.charCodeAt(n);if(s===10||s===13)break;if(b(s))++n;else if(V(i,n))n+=2;else break}return d(e,a.COMMENT,t,n,i.slice(t+1,n))}function Ft(e,t,i){let r=e.source.body,n=t,s=i,o=!1;if(s===45&&(s=r.charCodeAt(++n)),s===48){if(s=r.charCodeAt(++n),P(s))throw f(e.source,n,`Invalid number, unexpected digit after 0: ${_(e,n)}.`)}else n=$(e,n,s),s=r.charCodeAt(n);if(s===46&&(o=!0,s=r.charCodeAt(++n),n=$(e,n,s),s=r.charCodeAt(n)),(s===69||s===101)&&(o=!0,s=r.charCodeAt(++n),(s===43||s===45)&&(s=r.charCodeAt(++n)),n=$(e,n,s),s=r.charCodeAt(n)),s===46||me(s))throw f(e.source,n,`Invalid number, expected digit but got: ${_(e,n)}.`);return d(e,o?a.FLOAT:a.INT,t,n,r.slice(t,n))}function $(e,t,i){if(!P(i))throw f(e.source,t,`Invalid number, expected digit but got: ${_(e,t)}.`);let r=e.source.body,n=t+1;for(;P(r.charCodeAt(n));)++n;return n}function wt(e,t){let i=e.source.body,r=i.length,n=t+1,s=n,o="";for(;n<r;){let c=i.charCodeAt(n);if(c===34)return o+=i.slice(s,n),d(e,a.STRING,t,n+1,o);if(c===92){o+=i.slice(s,n);let u=i.charCodeAt(n+1)===117?i.charCodeAt(n+2)===123?Pt(e,n):Mt(e,n):Ut(e,n);o+=u.value,n+=u.size,s=n;continue}if(c===10||c===13)break;if(b(c))++n;else if(V(i,n))n+=2;else throw f(e.source,n,`Invalid character within String: ${_(e,n)}.`)}throw f(e.source,n,"Unterminated string.")}function Pt(e,t){let i=e.source.body,r=0,n=3;for(;n<12;){let s=i.charCodeAt(t+n++);if(s===125){if(n<5||!b(r))break;return{value:String.fromCodePoint(r),size:n}}if(r=r<<4|L(s),r<0)break}throw f(e.source,t,`Invalid Unicode escape sequence: "${i.slice(t,t+n)}".`)}function Mt(e,t){let i=e.source.body,r=Z(i,t+2);if(b(r))return{value:String.fromCodePoint(r),size:6};if(Te(r)&&i.charCodeAt(t+6)===92&&i.charCodeAt(t+7)===117){let n=Z(i,t+8);if(Ne(n))return{value:String.fromCodePoint(r,n),size:12}}throw f(e.source,t,`Invalid Unicode escape sequence: "${i.slice(t,t+6)}".`)}function Z(e,t){return L(e.charCodeAt(t))<<12|L(e.charCodeAt(t+1))<<8|L(e.charCodeAt(t+2))<<4|L(e.charCodeAt(t+3))}function L(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Ut(e,t){let i=e.source.body;switch(i.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
|
|
17
|
+
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw f(e.source,t,`Invalid character escape sequence: "${i.slice(t,t+2)}".`)}function Vt(e,t){let i=e.source.body,r=i.length,n=e.lineStart,s=t+3,o=s,c="",u=[];for(;s<r;){let N=i.charCodeAt(s);if(N===34&&i.charCodeAt(s+1)===34&&i.charCodeAt(s+2)===34){c+=i.slice(o,s),u.push(c);let I=d(e,a.BLOCK_STRING,t,s+3,kt(u).join(`
|
|
18
|
+
`));return e.line+=u.length-1,e.lineStart=n,I}if(N===92&&i.charCodeAt(s+1)===34&&i.charCodeAt(s+2)===34&&i.charCodeAt(s+3)===34){c+=i.slice(o,s),o=s+1,s+=4;continue}if(N===10||N===13){c+=i.slice(o,s),u.push(c),N===13&&i.charCodeAt(s+1)===10?s+=2:++s,c="",o=s,n=s;continue}if(b(N))++s;else if(V(i,s))s+=2;else throw f(e.source,s,`Invalid character within String: ${_(e,s)}.`)}throw f(e.source,s,"Unterminated string.")}function Bt(e,t){let i=e.source.body,r=i.length,n=t+1;for(;n<r;){let s=i.charCodeAt(n);if(gt(s))++n;else break}return d(e,a.NAME,t,n,i.slice(t,n))}function G(e,t){if(!e)throw new Error(t)}function Ie(e){return B(e,[])}function B(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return jt(e,t);default:return String(e)}}function jt(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let i=[...t,e];if(Kt(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:B(r,i)}else if(Array.isArray(e))return Gt(e,i);return $t(e,i)}function Kt(e){return typeof e.toJSON=="function"}function $t(e,t){let i=Object.entries(e);return i.length===0?"{}":t.length>2?"["+Yt(e)+"]":"{ "+i.map(([r,n])=>r+": "+B(n,t)).join(", ")+" }"}function Gt(e,t){if(e.length===0)return"[]";if(t.length>2)return"[Array]";let i=Math.min(10,e.length),r=e.length-i,n=[];for(let s=0;s<i;++s)n.push(B(e[s],t));return r===1?n.push("... 1 more item"):r>1&&n.push(`... ${r} more items`),"["+n.join(", ")+"]"}function Yt(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let i=e.constructor.name;if(typeof i=="string"&&i!=="")return i}return t}var qt=globalThis.process&&!0,Jt=qt?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if(typeof e=="object"&&e!==null){var i;let r=t.prototype[Symbol.toStringTag],n=Symbol.toStringTag in e?e[Symbol.toStringTag]:(i=e.constructor)===null||i===void 0?void 0:i.name;if(r===n){let s=Ie(e);throw new Error(`Cannot use ${r} "${s}" from another module or realm.
|
|
19
|
+
|
|
20
|
+
Ensure that there is only one instance of "graphql" in the node_modules
|
|
21
|
+
directory. If different versions of "graphql" are the dependencies of other
|
|
22
|
+
relied on modules, use "resolutions" to ensure only one version is installed.
|
|
23
|
+
|
|
24
|
+
https://yarnpkg.com/en/docs/selective-version-resolutions
|
|
25
|
+
|
|
26
|
+
Duplicate "graphql" modules cannot be used at the same time since different
|
|
27
|
+
versions may have different capabilities and behavior. The data from one
|
|
28
|
+
version used in the function from another could produce confusing and
|
|
29
|
+
spurious results.`)}}return!1},ve=class{constructor(e,t="GraphQL request",i={line:1,column:1}){typeof e=="string"||G(!1,`Body must be a string. Received: ${Ie(e)}.`),this.body=e,this.name=t,this.locationOffset=i,this.locationOffset.line>0||G(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||G(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};function Qt(e){return Jt(e,ve)}function Xt(e,t){let i=new zt(e,t),r=i.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:i.tokenCount}),r}var zt=class{constructor(e,t={}){let{lexer:i,...r}=t;if(i)this._lexer=i;else{let n=Qt(e)?e:new ve(e);this._lexer=new St(n)}this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(a.NAME);return this.node(e,{kind:l.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:l.DOCUMENT,definitions:this.many(a.SOF,this.parseDefinition,a.EOF)})}parseDefinition(){if(this.peek(a.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===a.BRACE_L)throw f(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===a.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw f(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if(t.value==="extend")return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){let e=this._lexer.token;if(this.peek(a.BRACE_L))return this.node(e,{kind:l.OPERATION_DEFINITION,operation:C.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let t=this.parseDescription(),i=this.parseOperationType(),r;return this.peek(a.NAME)&&(r=this.parseName()),this.node(e,{kind:l.OPERATION_DEFINITION,operation:i,description:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(a.NAME);switch(e.value){case"query":return C.QUERY;case"mutation":return C.MUTATION;case"subscription":return C.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(a.PAREN_L,this.parseVariableDefinition,a.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:l.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(a.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(a.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(a.DOLLAR),this.node(e,{kind:l.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:l.SELECTION_SET,selections:this.many(a.BRACE_L,this.parseSelection,a.BRACE_R)})}parseSelection(){return this.peek(a.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e=this._lexer.token,t=this.parseName(),i,r;return this.expectOptionalToken(a.COLON)?(i=t,r=this.parseName()):r=t,this.node(e,{kind:l.FIELD,alias:i,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(a.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(a.PAREN_L,t,a.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,i=this.parseName();return this.expectToken(a.COLON),this.node(t,{kind:l.ARGUMENT,name:i,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(a.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(a.NAME)?this.node(e,{kind:l.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:l.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token,t=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(e,{kind:l.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:l.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case a.BRACKET_L:return this.parseList(e);case a.BRACE_L:return this.parseObject(e);case a.INT:return this.advanceLexer(),this.node(t,{kind:l.INT,value:t.value});case a.FLOAT:return this.advanceLexer(),this.node(t,{kind:l.FLOAT,value:t.value});case a.STRING:case a.BLOCK_STRING:return this.parseStringLiteral();case a.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:l.BOOLEAN,value:!0});case"false":return this.node(t,{kind:l.BOOLEAN,value:!1});case"null":return this.node(t,{kind:l.NULL});default:return this.node(t,{kind:l.ENUM,value:t.value})}case a.DOLLAR:if(e)if(this.expectToken(a.DOLLAR),this._lexer.token.kind===a.NAME){let i=this._lexer.token.value;throw f(this._lexer.source,t.start,`Unexpected variable "$${i}" in constant value.`)}else throw this.unexpected(t);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:l.STRING,value:e.value,block:e.kind===a.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:l.LIST,values:this.any(a.BRACKET_L,t,a.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:l.OBJECT,fields:this.any(a.BRACE_L,t,a.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,i=this.parseName();return this.expectToken(a.COLON),this.node(t,{kind:l.OBJECT_FIELD,name:i,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(a.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(a.AT),this.node(t,{kind:l.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e=this._lexer.token,t;if(this.expectOptionalToken(a.BRACKET_L)){let i=this.parseTypeReference();this.expectToken(a.BRACKET_R),t=this.node(e,{kind:l.LIST_TYPE,type:i})}else t=this.parseNamedType();return this.expectOptionalToken(a.BANG)?this.node(e,{kind:l.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:l.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(a.STRING)||this.peek(a.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let i=this.parseConstDirectives(),r=this.many(a.BRACE_L,this.parseOperationTypeDefinition,a.BRACE_R);return this.node(e,{kind:l.SCHEMA_DEFINITION,description:t,directives:i,operationTypes:r})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(a.COLON);let i=this.parseNamedType();return this.node(e,{kind:l.OPERATION_TYPE_DEFINITION,operation:t,type:i})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let i=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:l.SCALAR_TYPE_DEFINITION,description:t,name:i,directives:r})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let i=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:l.OBJECT_TYPE_DEFINITION,description:t,name:i,interfaces:r,directives:n,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(a.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(a.BRACE_L,this.parseFieldDefinition,a.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),i=this.parseName(),r=this.parseArgumentDefs();this.expectToken(a.COLON);let n=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:l.FIELD_DEFINITION,description:t,name:i,arguments:r,type:n,directives:s})}parseArgumentDefs(){return this.optionalMany(a.PAREN_L,this.parseInputValueDef,a.PAREN_R)}parseInputValueDef(){let e=this._lexer.token,t=this.parseDescription(),i=this.parseName();this.expectToken(a.COLON);let r=this.parseTypeReference(),n;this.expectOptionalToken(a.EQUALS)&&(n=this.parseConstValueLiteral());let s=this.parseConstDirectives();return this.node(e,{kind:l.INPUT_VALUE_DEFINITION,description:t,name:i,type:r,defaultValue:n,directives:s})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let i=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:l.INTERFACE_TYPE_DEFINITION,description:t,name:i,interfaces:r,directives:n,fields:s})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let i=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();return this.node(e,{kind:l.UNION_TYPE_DEFINITION,description:t,name:i,directives:r,types:n})}parseUnionMemberTypes(){return this.expectOptionalToken(a.EQUALS)?this.delimitedMany(a.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let i=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();return this.node(e,{kind:l.ENUM_TYPE_DEFINITION,description:t,name:i,directives:r,values:n})}parseEnumValuesDefinition(){return this.optionalMany(a.BRACE_L,this.parseEnumValueDefinition,a.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),i=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:l.ENUM_VALUE_DEFINITION,description:t,name:i,directives:r})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw f(this._lexer.source,this._lexer.token.start,`${M(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let i=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();return this.node(e,{kind:l.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:i,directives:r,fields:n})}parseInputFieldsDefinition(){return this.optionalMany(a.BRACE_L,this.parseInputValueDef,a.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===a.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),i=this.optionalMany(a.BRACE_L,this.parseOperationTypeDefinition,a.BRACE_R);if(t.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:l.SCHEMA_EXTENSION,directives:t,operationTypes:i})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),i=this.parseConstDirectives();if(i.length===0)throw this.unexpected();return this.node(e,{kind:l.SCALAR_TYPE_EXTENSION,name:t,directives:i})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),n=this.parseFieldsDefinition();if(i.length===0&&r.length===0&&n.length===0)throw this.unexpected();return this.node(e,{kind:l.OBJECT_TYPE_EXTENSION,name:t,interfaces:i,directives:r,fields:n})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),n=this.parseFieldsDefinition();if(i.length===0&&r.length===0&&n.length===0)throw this.unexpected();return this.node(e,{kind:l.INTERFACE_TYPE_EXTENSION,name:t,interfaces:i,directives:r,fields:n})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:l.UNION_TYPE_EXTENSION,name:t,directives:i,types:r})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:l.ENUM_TYPE_EXTENSION,name:t,directives:i,values:r})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),i=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:l.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:i,fields:r})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(a.AT);let i=this.parseName(),r=this.parseArgumentDefs(),n=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let s=this.parseDirectiveLocations();return this.node(e,{kind:l.DIRECTIVE_DEFINITION,description:t,name:i,arguments:r,repeatable:n,locations:s})}parseDirectiveLocations(){return this.delimitedMany(a.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(q,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){let e=this._lexer.token,t=this.expectOptionalToken(a.AT),i=this.parseName(),r;!t&&this.expectOptionalToken(a.DOT)&&(r=this.parseName());let n;return(t||r)&&this.expectOptionalToken(a.PAREN_L)&&(n=this.parseName(),this.expectToken(a.COLON),this.expectToken(a.PAREN_R)),t?n?this.node(e,{kind:l.DIRECTIVE_ARGUMENT_COORDINATE,name:i,argumentName:n}):this.node(e,{kind:l.DIRECTIVE_COORDINATE,name:i}):r?n?this.node(e,{kind:l.ARGUMENT_COORDINATE,name:i,fieldName:r,argumentName:n}):this.node(e,{kind:l.MEMBER_COORDINATE,name:i,memberName:r}):this.node(e,{kind:l.TYPE_COORDINATE,name:i})}node(e,t){return this._options.noLocation!==!0&&(t.loc=new We(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw f(this._lexer.source,t.start,`Expected ${ye(e)}, found ${M(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this.advanceLexer(),!0):!1}expectKeyword(e){let t=this._lexer.token;if(t.kind===a.NAME&&t.value===e)this.advanceLexer();else throw f(this._lexer.source,t.start,`Expected "${e}", found ${M(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===a.NAME&&t.value===e?(this.advanceLexer(),!0):!1}unexpected(e){let t=e??this._lexer.token;return f(this._lexer.source,t.start,`Unexpected ${M(t)}.`)}any(e,t,i){this.expectToken(e);let r=[];for(;!this.expectOptionalToken(i);)r.push(t.call(this));return r}optionalMany(e,t,i){if(this.expectOptionalToken(e)){let r=[];do r.push(t.call(this));while(!this.expectOptionalToken(i));return r}return[]}many(e,t,i){this.expectToken(e);let r=[];do r.push(t.call(this));while(!this.expectOptionalToken(i));return r}delimitedMany(e,t){this.expectOptionalToken(e);let i=[];do i.push(t.call(this));while(this.expectOptionalToken(e));return i}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==a.EOF&&(++this._tokenCounter,e!==void 0&&this._tokenCounter>e))throw f(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}};function M(e){let t=e.value;return ye(e.kind)+(t!=null?` "${t}"`:"")}function ye(e){return bt(e)?`"${e}"`:e}function Ht(e,t){let i=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(i,t)}var Wt=Ht;function Zt(e){let t=[],{startToken:i,endToken:r}=e.loc;for(let n=i;n!==r;n=n.next)n.kind==="Comment"&&t.push({...n,loc:{start:n.start,end:n.end}});return t}var ei={allowLegacyFragmentVariables:!0};function ti(e){if(e?.name==="GraphQLError"){let{message:t,locations:[i]}=e;return Wt(t,{loc:{start:i},cause:e})}return e}function ii(e){let t;try{t=Xt(e,ei)}catch(i){throw ti(i)}return t.comments=Zt(t),t}var ni={parse:ii,astFormat:"graphql",hasPragma:st,hasIgnorePragma:at,locStart:ce,locEnd:ue},ri={graphql:Et};export{De as default,mt as languages,It as options,he as parsers,ri as printers};
|