@shopify/cli
Version:
A CLI tool to build for the Shopify platform
45 lines • 322 kB
JavaScript
import{b as Ur,d as Za,g as Vt}from"./chunk-VPRTJUIN.js";var Tu={};Za(Tu,{builders:()=>Ne,default:()=>Vr,printer:()=>Jt,utils:()=>Qt});function rs(e){return this[e<0?this.length+e:e]}function as(e){let t=e.length;for(;t>0&&(e[t-1]==="\r"||e[t-1]===`
`);)t--;return t<e.length?e.slice(0,t):e}function ss(e){if(typeof e=="string")return st;if(Array.isArray(e))return $e;if(!e)return;let{type:t}=e;if(Kr.has(t))return t}function Ds(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
Expected it to be 'string' or 'object'.`;if(Dt(e))throw new Error("doc is valid.");let u=Object.prototype.toString.call(e);if(u!=="[object Object]")return`Unexpected doc '${u}'.`;let r=os([...Kr].map(n=>`'${n}'`));return`Unexpected doc.type '${e.type}'.
Expected it to be ${r}.`}function ls(e,t,u,r){let n=[e];for(;n.length>0;){let i=n.pop();if(i===Gr){u(n.pop());continue}u&&n.push(i,Gr);let a=Dt(i);if(!a)throw new Ct(i);if(t?.(i)!==!1)switch(a){case $e:case Xe:{let s=a===$e?i:i.parts;for(let o=s.length,D=o-1;D>=0;--D)n.push(s[D]);break}case we:n.push(i.flatContents,i.breakContents);break;case be:if(r&&i.expandedStates)for(let s=i.expandedStates.length,o=s-1;o>=0;--o)n.push(i.expandedStates[o]);else n.push(i.contents);break;case We:case qe:case Ke:case Je:case Ye:n.push(i.contents);break;case st:case ot:case Ve:case ze:case ve:case Ie:break;default:throw new Ct(i)}}}function zt(e,t){if(typeof e=="string")return t(e);let u=new Map;return r(e);function r(i){if(u.has(i))return u.get(i);let a=n(i);return u.set(i,a),a}function n(i){switch(Dt(i)){case $e:return t(i.map(r));case Xe:return t({...i,parts:i.parts.map(r)});case we:return t({...i,breakContents:r(i.breakContents),flatContents:r(i.flatContents)});case be:{let{expandedStates:a,contents:s}=i;return a?(a=a.map(r),s=a[0]):s=r(s),t({...i,contents:s,expandedStates:a})}case We:case qe:case Ke:case Je:case Ye:return t({...i,contents:r(i.contents)});case st:case ot:case Ve:case ze:case ve:case Ie:return t(i);default:throw new Ct(i)}}}function wu(e,t,u){let r=u,n=!1;function i(a){if(n)return!1;let s=t(a);s!==void 0&&(n=!0,r=s)}return Su(e,i),r}function fs(e){if(e.type===be&&e.break||e.type===ve&&e.hard||e.type===Ie)return!0}function ds(e){return wu(e,fs,!1)}function qr(e){if(e.length>0){let t=je(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function hs(e){let t=new Set,u=[];function r(i){if(i.type===Ie&&qr(u),i.type===be){if(u.push(i),t.has(i))return!1;t.add(i)}}function n(i){i.type===be&&u.pop().break&&qr(u)}Su(e,r,n,!0)}function Fs(e){return e.type===ve&&!e.hard?e.soft?"":" ":e.type===we?e.flatContents:e}function ps(e){return zt(e,Fs)}function Wr(e){for(e=[...e];e.length>=2&&je(0,e,-2).type===ve&&je(0,e,-1).type===Ie;)e.length-=2;if(e.length>0){let t=Tt(je(0,e,-1));e[e.length-1]=t}return e}function Tt(e){switch(Dt(e)){case qe:case Ke:case be:case Ye:case Je:{let t=Tt(e.contents);return{...e,contents:t}}case we:return{...e,breakContents:Tt(e.breakContents),flatContents:Tt(e.flatContents)};case Xe:return{...e,parts:Wr(e.parts)};case $e:return Wr(e);case st:return as(e);case We:case ot:case Ve:case ze:case ve:case Ie:break;default:throw new Ct(e)}return e}function Es(e){return Tt(Cs(e))}function ms(e){switch(Dt(e)){case Xe:if(e.parts.every(t=>t===""))return"";break;case be:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===be&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case We:case qe:case Ke:case Ye:if(!e.contents)return"";break;case we:if(!e.flatContents&&!e.breakContents)return"";break;case $e:{let t=[];for(let u of e){if(!u)continue;let[r,...n]=Array.isArray(u)?u:[u];typeof r=="string"&&typeof je(0,t,-1)=="string"?t[t.length-1]+=r:t.push(r),t.push(...n)}return t.length===0?"":t.length===1?t[0]:t}case st:case ot:case Ve:case ze:case ve:case Je:case Ie:break;default:throw new Ct(e)}return e}function Cs(e){return zt(e,t=>ms(t))}function gs(e,t=Zr){return zt(e,u=>typeof u=="string"?Jr(t,u.split(`
`)):u)}function As(e){if(e.type===ve)return!0}function vs(e){return wu(e,As,!1)}function Kt(e){return Oe(e),{type:qe,contents:e}}function gt(e,t){return ys(e),Oe(t),{type:We,contents:t,n:e}}function Bs(e){return gt(Number.NEGATIVE_INFINITY,e)}function bs(e){return gt({type:"root"},e)}function Ss(e){return gt(-1,e)}function ws(e,t,u){Oe(e);let r=e;if(t>0){for(let n=0;n<Math.floor(t/u);++n)r=Kt(r);r=gt(t%u,r),r=gt(Number.NEGATIVE_INFINITY,r)}return r}function Ps(e){return _s(e),{type:Xe,parts:e}}function zr(e,t={}){return Oe(e),Yr(t.expandedStates,!0),{type:be,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Ts(e,t){return zr(e[0],{...t,expandedStates:e})}function Os(e,t="",u={}){return Oe(e),t!==""&&Oe(t),{type:we,breakContents:e,flatContents:t,groupId:u.groupId}}function Is(e,t){return Oe(e),{type:Ke,contents:e,groupId:t.groupId,negate:t.negate}}function Jr(e,t){Oe(e),Yr(t);let u=[];for(let r=0;r<t.length;r++)r!==0&&u.push(e),u.push(t[r]);return u}function Ns(e,t){return Oe(t),e?{type:Je,label:e,contents:t}:t}function $s(e){return Oe(e),{type:Ye,contents:e}}function zs(e){return e===qs?Vs:e===Ws?Xs:Ys}function Qs(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Zs(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function ro(e){if(!e)return 0;if(!to.test(e))return e.length;e=e.replace(Js(),u=>uo.has(u)?" ":" ");let t=0;for(let u of e){let r=u.codePointAt(0);r<=31||r>=127&&r<=159||r>=768&&r<=879||r>=65024&&r<=65039||(t+=Qs(r)||Zs(r)?2:1)}return t}function sn(e,t,u){let r=t.type===un?e.queue.slice(0,-1):[...e.queue,t],n="",i=0,a=0,s=0;for(let h of r)switch(h.type){case tn:c(),u.useTabs?o(1):D(u.tabWidth);break;case nn:{let{string:F}=h;c(),n+=F,i+=F.length;break}case rn:{let{width:F}=h;a+=1,s+=F;break}default:throw new Error(`Unexpected indent comment '${h.type}'.`)}return f(),{...e,value:n,length:i,queue:r};function o(h){n+=" ".repeat(h),i+=u.tabWidth*h}function D(h){n+=" ".repeat(h),i+=h}function c(){u.useTabs?l():f()}function l(){a>0&&o(a),d()}function f(){s>0&&D(s),d()}function d(){a=0,s=0}}function ao(e,t,u){if(!t)return e;if(t.type==="root")return{...e,root:e};if(t===Number.NEGATIVE_INFINITY)return e.root;let r;return typeof t=="number"?t<0?r=io:r={type:rn,width:t}:r={type:nn,string:t},sn(e,r,u)}function so(e,t){return sn(e,no,t)}function oo(e){let t=0;for(let u=e.length-1;u>=0;u--){let r=e[u];if(r===" "||r===" ")t++;else break}return t}function on(e){let t=oo(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}function Xt(e,t,u,r,n,i){if(u===Number.POSITIVE_INFINITY)return!0;let a=t.length,s=!1,o=[e],D="";for(;u>=0;){if(o.length===0){if(a===0)return!0;o.push(t[--a]);continue}let{mode:c,doc:l}=o.pop(),f=Dt(l);switch(f){case st:l&&(s&&(D+=" ",u-=1,s=!1),D+=l,u-=en(l));break;case $e:case Xe:{let d=f===$e?l:l.parts,h=l[bu]??0;for(let F=d.length-1;F>=h;F--)o.push({mode:c,doc:d[F]});break}case qe:case We:case Ke:case Je:o.push({mode:c,doc:l.contents});break;case Ve:{let{text:d,count:h}=on(D);D=d,u+=h;break}case be:{if(i&&l.break)return!1;let d=l.break?ye:c,h=l.expandedStates&&d===ye?je(0,l.expandedStates,-1):l.contents;o.push({mode:d,doc:h});break}case we:{let h=(l.groupId?n[l.groupId]||Te:c)===ye?l.breakContents:l.flatContents;h&&o.push({mode:c,doc:h});break}case ve:if(c===ye||l.hard)return!0;l.soft||(s=!0);break;case Ye:r=!0;break;case ze:if(r)return!1;break}}return!1}function Do(e,t){let u=Object.create(null),r=t.printWidth,n=zs(t.endOfLine),i=0,a=[{indent:an,mode:ye,doc:e}],s="",o=!1,D=[],c=[],l=[],f=[],d=0;for(hs(e);a.length>0;){let{indent:p,mode:g,doc:y}=a.pop();switch(Dt(y)){case st:{let C=n!==`
`?Gs(0,y,`
`,n):y;C&&(s+=C,a.length>0&&(i+=en(C)));break}case $e:for(let C=y.length-1;C>=0;C--)a.push({indent:p,mode:g,doc:y[C]});break;case ot:if(c.length>=2)throw new Error("There are too many 'cursor' in doc.");c.push(d+s.length);break;case qe:a.push({indent:so(p,t),mode:g,doc:y.contents});break;case We:a.push({indent:ao(p,y.n,t),mode:g,doc:y.contents});break;case Ve:B();break;case be:switch(g){case Te:if(!o){a.push({indent:p,mode:y.break?ye:Te,doc:y.contents});break}case ye:{o=!1;let C={indent:p,mode:Te,doc:y.contents},R=r-i,I=D.length>0;if(!y.break&&Xt(C,a,R,I,u))a.push(C);else if(y.expandedStates){let A=je(0,y.expandedStates,-1);if(y.break){a.push({indent:p,mode:ye,doc:A});break}else for(let T=1;T<y.expandedStates.length+1;T++)if(T>=y.expandedStates.length){a.push({indent:p,mode:ye,doc:A});break}else{let k=y.expandedStates[T],v={indent:p,mode:Te,doc:k};if(Xt(v,a,R,I,u)){a.push(v);break}}}else a.push({indent:p,mode:ye,doc:y.contents});break}}y.id&&(u[y.id]=je(0,a,-1).mode);break;case Xe:{let C=r-i,R=y[bu]??0,{parts:I}=y,A=I.length-R;if(A===0)break;let T=I[R+0],k=I[R+1],v={indent:p,mode:Te,doc:T},S={indent:p,mode:ye,doc:T},m=Xt(v,[],C,D.length>0,u,!0);if(A===1){m?a.push(v):a.push(S);break}let E={indent:p,mode:Te,doc:k},_={indent:p,mode:ye,doc:k};if(A===2){m?a.push(E,v):a.push(_,S);break}let w=I[R+2],j={indent:p,mode:g,doc:{...y,[bu]:R+2}},M=Xt({indent:p,mode:Te,doc:[T,k,w]},[],C,D.length>0,u,!0);a.push(j),M?a.push(E,v):m?a.push(_,v):a.push(_,S);break}case we:case Ke:{let C=y.groupId?u[y.groupId]:g;if(C===ye){let R=y.type===we?y.breakContents:y.negate?y.contents:Kt(y.contents);R&&a.push({indent:p,mode:g,doc:R})}if(C===Te){let R=y.type===we?y.flatContents:y.negate?Kt(y.contents):y.contents;R&&a.push({indent:p,mode:g,doc:R})}break}case Ye:D.push({indent:p,mode:g,doc:y.contents});break;case ze:D.length>0&&a.push({indent:p,mode:g,doc:Pu});break;case ve:switch(g){case Te:if(y.hard)o=!0;else{y.soft||(s+=" ",i+=1);break}case ye:if(D.length>0){a.push({indent:p,mode:g,doc:y},...D.reverse()),D.length=0;break}y.literal?(s+=n,i=0,p.root&&(p.root.value&&(s+=p.root.value),i=p.root.length)):(B(),s+=n+p.value,i=p.length);break}break;case Je:a.push({indent:p,mode:g,doc:y.contents});break;case Ie:break;default:throw new Ct(y)}a.length===0&&D.length>0&&(a.push(...D.reverse()),D.length=0)}let h=l.join("")+s,F=[...f,...c];if(F.length!==2)return{formatted:h};let P=F[0];return{formatted:h,cursorNodeStart:P,cursorNodeText:h.slice(P,je(0,F,-1))};function B(){let{text:p,count:g}=on(s);p&&(l.push(p),d+=p.length),s="",i-=g,c.length>0&&(f.push(...c.map(y=>Math.min(y,d))),c.length=0)}}var es,ts,Vr,us,Xr,ns,je,is,Yt,st,$e,ot,qe,We,Ve,be,Xe,we,Ke,Ye,ze,ve,Je,Ie,Kr,Dt,os,cs,Ct,Gr,Su,Oe,Yr,_s,ys,Ru,Rs,Ls,ks,Pu,js,Qr,Zr,Ms,xs,Hs,Us,Gs,qs,Ws,Vs,Xs,Ks,Ys,Js,eo,to,uo,en,tn,un,rn,nn,no,io,an,ye,Te,bu,Ne,Jt,Qt,ct=Ur(()=>{Vt();es=Object.defineProperty,ts=(e,t)=>{for(var u in t)es(e,u,{get:t[u],enumerable:!0})},Vr={};ts(Vr,{builders:()=>Ne,printer:()=>Jt,utils:()=>Qt});us=1,Xr=(e,t)=>(u,r,...n)=>u|us&&r==null?void 0:(t.call(r)??r[e]).apply(r,n);ns=Xr("at",function(){if(Array.isArray(this)||typeof this=="string")return rs}),je=ns,is=()=>{},Yt=is,st="string",$e="array",ot="cursor",qe="indent",We="align",Ve="trim",be="group",Xe="fill",we="if-break",Ke="indent-if-break",Ye="line-suffix",ze="line-suffix-boundary",ve="line",Je="label",Ie="break-parent",Kr=new Set([ot,qe,We,Ve,be,Xe,we,Ke,Ye,ze,ve,Je,Ie]);Dt=ss,os=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);cs=class extends Error{name="InvalidDocError";constructor(e){super(Ds(e)),this.doc=e}},Ct=cs,Gr={};Su=ls;Oe=Yt,Yr=Yt,_s=Yt,ys=Yt;Ru={type:Ie},Rs={type:ot};Ls={type:ve},ks={type:ve,soft:!0},Pu={type:ve,hard:!0},js=[Pu,Ru],Qr={type:ve,hard:!0,literal:!0},Zr=[Qr,Ru];Ms={type:ze},xs={type:Ve},Hs=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},Us=Xr("replaceAll",function(){if(typeof this=="string")return Hs}),Gs=Us,qs="cr",Ws="crlf",Vs="\r",Xs=`\r
`,Ks=`
`,Ys=Ks;Js=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;eo="\xA9\xAE\u203C\u2049\u2122\u2139\u2194\u2195\u2196\u2197\u2198\u2199\u21A9\u21AA\u2328\u23CF\u23F1\u23F2\u23F8\u23F9\u23FA\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600\u2601\u2602\u2603\u2604\u260E\u2611\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638\u2639\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694\u2695\u2696\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F1\u26F7\u26F8\u26F9\u2702\u2708\u2709\u270C\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05\u2B06\u2B07",to=/[^\x20-\x7F]/u,uo=new Set(eo);en=ro,tn=0,un=1,rn=2,nn=3,no={type:tn},io={type:un},an={value:"",length:0,queue:[],get root(){return an}};ye=Symbol("MODE_BREAK"),Te=Symbol("MODE_FLAT"),bu=Symbol("DOC_FILL_PRINTED_LENGTH");Ne={join:Jr,line:Ls,softline:ks,hardline:js,literalline:Zr,group:zr,conditionalGroup:Ts,fill:Ps,lineSuffix:$s,lineSuffixBoundary:Ms,cursor:Rs,breakParent:Ru,ifBreak:Os,trim:xs,indent:Kt,indentIfBreak:Is,align:gt,addAlignmentToDoc:ws,markAsRoot:bs,dedentToRoot:Bs,dedent:Ss,hardlineWithoutBreakParent:Pu,literallineWithoutBreakParent:Qr,label:Ns,concat:e=>e},Jt={printDocToString:Do},Qt={willBreak:ds,traverseDoc:Su,findInDoc:wu,mapDoc:zt,removeLines:ps,stripTrailingHardline:Es,replaceEndOfLine:gs,canBreak:vs}});import{createRequire as co}from"module";import{fileURLToPath as lo}from"url";import{dirname as fo}from"path";import tt from"path";import*as Si from"path";import*as Fr from"url";import Ri from"path";import*as Pi from"path";import*as mu from"fs/promises";import*as Ti from"path";import Sc from"process";import*as Rt from"path";import Ic from"process";import pr from"path";import{pathToFileURL as Vc}from"url";import xl from"fs/promises";import Jl from"path";import{pathToFileURL as Ql}from"url";import Vi from"assert";import{statSync as Xi,realpathSync as Zl}from"fs";import pt from"process";import{fileURLToPath as se,pathToFileURL as yr}from"url";import Ki from"path";import{builtinModules as Br}from"module";import{fileURLToPath as ef}from"url";import tf from"fs";import uf from"path";import{fileURLToPath as tr}from"url";import rf from"v8";import Et from"assert";import{format as nf,inspect as ur}from"util";import{createRequire as Qf}from"module";import{ok as m0,strictEqual as xn}from"assert";import gd from"path";import{fileURLToPath as yd}from"url";import ri from"path";import{pathToFileURL as ni}from"url";import sF from"path";import lu from"path";import pF from"url";function Dn(e,t,u){return xD.diff(e,t,u)}function HD(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
`));let u=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let n=0;n<r.length;n++){let i=r[n];n%2&&!t.newlineIsToken?u[u.length-1]+=i:u.push(i)}return u}function qD(e,t,u){return GD.diff(e,t,u)}function cn(e,t,u,r,n,i,a){let s;a?typeof a=="function"?s={callback:a}:s=a:s={},typeof s.context>"u"&&(s.context=4);let o=s.context;if(s.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(s.callback){let{callback:c}=s;Dn(u,r,Object.assign(Object.assign({},s),{callback:l=>{let f=D(l);c(f)}}))}else return D(Dn(u,r,s));function D(c){if(!c)return;c.push({value:"",lines:[]});function l(p){return p.map(function(g){return" "+g})}let f=[],d=0,h=0,F=[],P=1,B=1;for(let p=0;p<c.length;p++){let g=c[p],y=g.lines||VD(g.value);if(g.lines=y,g.added||g.removed){if(!d){let C=c[p-1];d=P,h=B,C&&(F=o>0?l(C.lines.slice(-o)):[],d-=F.length,h-=F.length)}for(let C of y)F.push((g.added?"+":"-")+C);g.added?B+=y.length:P+=y.length}else{if(d)if(y.length<=o*2&&p<c.length-2)for(let C of l(y))F.push(C);else{let C=Math.min(y.length,o);for(let I of l(y.slice(0,C)))F.push(I);let R={oldStart:d,oldLines:P-d+C,newStart:h,newLines:B-h+C,lines:F};f.push(R),d=0,h=0,F=[]}P+=y.length,B+=y.length}}for(let p of f)for(let g=0;g<p.lines.length;g++)p.lines[g].endsWith(`
`)?p.lines[g]=p.lines[g].slice(0,-1):(p.lines.splice(g+1,0,"\\ No newline at end of file"),g++);return{oldFileName:e,newFileName:t,oldHeader:n,newHeader:i,hunks:f}}}function Xu(e){if(Array.isArray(e))return e.map(Xu).join(`
`);let t=[];e.oldFileName==e.newFileName&&t.push("Index: "+e.oldFileName),t.push("==================================================================="),t.push("--- "+e.oldFileName+(typeof e.oldHeader>"u"?"":" "+e.oldHeader)),t.push("+++ "+e.newFileName+(typeof e.newHeader>"u"?"":" "+e.newHeader));for(let u=0;u<e.hunks.length;u++){let r=e.hunks[u];r.oldLines===0&&(r.oldStart-=1),r.newLines===0&&(r.newStart-=1),t.push("@@ -"+r.oldStart+","+r.oldLines+" +"+r.newStart+","+r.newLines+" @@");for(let n of r.lines)t.push(n)}return t.join(`
`)+`
`}function WD(e,t,u,r,n,i,a){if(typeof a=="function"&&(a={callback:a}),a?.callback){let{callback:s}=a;cn(e,t,u,r,n,i,Object.assign(Object.assign({},a),{callback:o=>{s(o?Xu(o):void 0)}}))}else{let s=cn(e,t,u,r,n,i,a);return s?Xu(s):void 0}}function VD(e){let t=e.endsWith(`
`),u=e.split(`
`).map(r=>r+`
`);return t?u.pop():u.push(u.pop().slice(0,-1)),u}function Iu(e,t,u){if(e===t)return 0;let r=u?.maxDistance,n=e;e.length>t.length&&(e=t,t=n);let i=e.length,a=t.length;for(;i>0&&e.charCodeAt(~-i)===t.charCodeAt(~-a);)i--,a--;let s=0;for(;s<i&&e.charCodeAt(s)===t.charCodeAt(s);)s++;if(i-=s,a-=s,r!==void 0&&a-i>r)return r;if(i===0)return r!==void 0&&a>r?r:a;let o,D,c,l,f=0,d=0;for(;f<i;)Ou[f]=e.charCodeAt(s+f),vt[f]=++f;for(;d<a;){for(o=t.charCodeAt(s+d),c=d++,D=d,f=0;f<i;f++)l=o===Ou[f]?c:c+1,c=vt[f],D=vt[f]=c>D?l>D?D+1:l:l>c?c+1:l;if(r!==void 0){let h=D;for(f=0;f<i;f++)vt[f]<h&&(h=vt[f]);if(h>r)return r}}return vt.length=i,Ou.length=i,r!==void 0&&D>r?r:D}function Ei(e,t,u){if(!Array.isArray(t)||t.length===0)return;let r=u?.maxDistance,n=e.length;for(let o of t)if(o===e)return o;if(r===0)return;let i,a=Number.POSITIVE_INFINITY,s=new Set;for(let o of t){if(s.has(o))continue;s.add(o);let D=Math.abs(o.length-n);if(D>=a||r!==void 0&&D>r)continue;let c=Number.isFinite(a)?r===void 0?a:Math.min(a,r):r,l=c===void 0?Iu(e,o):Iu(e,o,{maxDistance:c});if(r!==void 0&&l>r)continue;let f=l;if(c!==void 0&&l===c&&c===r&&(f=Iu(e,o)),f<a&&(a=f,i=o,a===0))break}if(!(r!==void 0&&a>r))return i}function dn(e,t,u,r){return[`Invalid ${_t.default.red(r.key(e))} value.`,`Expected ${_t.default.blue(u)},`,`but received ${t===mi?_t.default.gray("nothing"):_t.default.red(r.value(t))}.`].join(" ")}function Ci({text:e,list:t},u){let r=[];return e&&r.push(`- ${_t.default.blue(e)}`),t&&r.push([`- ${_t.default.blue(t.title)}:`].concat(t.values.map(n=>Ci(n,u-fn.length).replace(/^|\n/g,`$&${fn}`))).join(`
`)),gi(r,u)}function gi(e,t){if(e.length===1)return e[0];let[u,r]=e,[n,i]=e.map(a=>a.split(`
`,1)[0].length);return n>t&&n>i?r:u}function QD(e,t){let u=new e(t),r=Object.create(u);for(let n of JD)n in t&&(r[n]=ZD(t[n],u,it.prototype[n].length));return r}function ZD(e,t,u){return typeof e=="function"?(...r)=>e(...r.slice(0,u-1),t,...r.slice(u-1)):()=>e}function Fn({from:e,to:t}){return{from:[e],to:t}}function nc(e,t){let u=Object.create(null);for(let r of e){let n=r[t];if(u[n])throw new Error(`Duplicate ${t} ${JSON.stringify(n)}`);u[n]=r}return u}function ic(e,t){let u=new Map;for(let r of e){let n=r[t];if(u.has(n))throw new Error(`Duplicate ${t} ${JSON.stringify(n)}`);u.set(n,r)}return u}function ac(){let e=Object.create(null);return t=>{let u=JSON.stringify(t);return e[u]?!0:(e[u]=!0,!1)}}function sc(e,t){let u=[],r=[];for(let n of e)t(n)?u.push(n):r.push(n);return[u,r]}function oc(e){return e===Math.floor(e)}function Dc(e,t){if(e===t)return 0;let u=typeof e,r=typeof t,n=["undefined","object","boolean","number","string"];return u!==r?n.indexOf(u)-n.indexOf(r):u!=="string"?Number(e)-Number(t):e.localeCompare(t)}function cc(e){return(...t)=>{let u=e(...t);return typeof u=="string"?new Error(u):u}}function pn(e){return e===void 0?{}:e}function vi(e){if(typeof e=="string")return{text:e};let{text:t,list:u}=e;return lc((t||u)!==void 0,"Unexpected `expected` result, there should be at least one field."),u?{text:t,list:{title:u.title,values:u.values.map(vi)}}:{text:t}}function En(e,t){return e===!0?!0:e===!1?{value:t}:e}function mn(e,t,u=!1){return e===!1?!1:e===!0?u?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function Cn(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function Ku(e,t){return e===void 0?[]:Array.isArray(e)?e.map(u=>Cn(u,t)):[Cn(e,t)]}function gn(e,t){let u=Ku(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return u.length===0?{remain:t,redirect:u}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:u}:{redirect:u}}function lc(e,t){if(!e)throw new Error(t)}function gc(e){let t={...e},u=(i,a)=>{if(!Object.prototype.hasOwnProperty.call(e,i))throw new Error(`Unexpected mock '${i}'.`);t[i]=a};return{mocked:t,implementations:e,mockImplementation:u,mockImplementations:i=>{for(let[a,s]of Object.entries(i))u(a,s)},mockRestore:()=>{Object.assign(t,e)}}}function yc(e,t){let u=[[],[]];for(let r of e)u[t(r)?0:1].push(r);return u}async function Oi(e,{typeCheck:t,cwd:u,allowSymlinks:r=!0,filter:n}){let i=zu(u)??Sc.cwd(),a=Array.isArray(e)?e:[e];for(let s of a){let o=Ti.join(i,s),D=await Pc(o,r);if(await t(D)&&(!n||await n({name:s,path:o,stats:D})))return o}}async function Pc(e,t=!0){try{return await(t?mu.stat:mu.lstat)(e)}catch{}}function Tc(e,t){return Oi(e,{...t,typeCheck:wc})}function Oc(e,t){return Oi(e,{...t,typeCheck:Rc})}function*Nc(e,t){let u=zu(e)??Ic.cwd(),r=zu(t);if(r){let n=Rt.relative(r,u);if(n[0]==="."||n===u)return}for(r=r?u.slice(0,r.length):Rt.parse(u).root;u!==r;)yield u,u=Rt.dirname(u);yield r}async function Mc(e,t){nu??(nu=new jc($c,{allowSymlinks:!1}));let u=await nu.search(e,{cache:t.shouldCache});return u?Pi.dirname(u):void 0}function xc(){nu?.clearCache()}function Hc(e){if(!e)return;let t={},{indent_style:u,indent_size:r,tab_width:n,max_line_length:i,quote_type:a,end_of_line:s}=e;if(u==="space"?t.useTabs=!1:(u==="tab"||r==="tab")&&(t.useTabs=!0),t.useTabs===!1&&Nu(r)?t.tabWidth=r:Nu(n)&&(t.tabWidth=n),i==="off"?t.printWidth=Number.POSITIVE_INFINITY:Nu(i)&&(t.printWidth=i),a==="single"?t.singleQuote=!0:a==="double"&&(t.singleQuote=!1),(s==="lf"||s==="crlf"||s==="cr")&&(t.endOfLine=s),Object.keys(t).length!==0)return t}function Gc(){xc(),iu.clear()}async function qc(e,{shouldCache:t}){let u=Ri.dirname(e),r=await Mc(u,{shouldCache:t}),n=await bc.default.parse(e,{root:r});return Uc(n)}function Wc(e,{shouldCache:t}){return e=Ri.resolve(e),(!t||!iu.has(e))&&iu.set(e,qc(e,{shouldCache:t})),iu.get(e)}function Qu(e,t,u){let r=e[t];if(r!=null&&typeof r=="object")if(Array.isArray(r))for(let n=0;n<r.length;n++){let i=String(n),a=Qu(r,i,u);a===void 0?delete r[i]:Object.defineProperty(r,i,{value:a,writable:!0,enumerable:!0,configurable:!0})}else for(let n in r){let i=Qu(r,n,u);i===void 0?delete r[n]:Object.defineProperty(r,n,{value:i,writable:!0,enumerable:!0,configurable:!0})}return u.call(e,t,r)}function Jc(){for(Q="default",J="",It=!1,Me=1;;){ue=Ue();let e=Ni[Q]();if(e)return e}}function Ue(){if(Ju[fu])return String.fromCodePoint(Ju.codePointAt(fu))}function x(){let e=Ue();return e===`
`?(ut++,Re=0):e?Re+=e.length:Re++,e&&(fu+=e.length),e}function ce(e,t){return{type:e,value:t,line:ut,column:Re}}function lt(e){for(let t of e){if(Ue()!==t)throw le(x());x()}}function Qc(){switch(Ue()){case"b":return x(),"\b";case"f":return x(),"\f";case"n":return x(),`
`;case"r":return x(),"\r";case"t":return x()," ";case"v":return x(),"\v";case"0":if(x(),pe.isDigit(Ue()))throw le(x());return"\0";case"x":return x(),Zc();case"u":return x(),Zu();case`
`:case"\u2028":case"\u2029":return x(),"";case"\r":return x(),Ue()===`
`&&x(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw le(x());case void 0:throw le(x())}return x()}function Zc(){let e="",t=Ue();if(!pe.isHexDigit(t)||(e+=x(),t=Ue(),!pe.isHexDigit(t)))throw le(x());return e+=x(),String.fromCodePoint(parseInt(e,16))}function Zu(){let e="",t=4;for(;t-- >0;){let u=Ue();if(!pe.isHexDigit(u))throw le(x());e+=x()}return String.fromCodePoint(parseInt(e,16))}function ku(){let e;switch(Ee.type){case"punctuator":switch(Ee.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=Ee.value;break}if(kt===void 0)kt=e;else{let t=He[He.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,Er,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")He.push(e),Array.isArray(e)?_e="beforeArrayValue":_e="beforePropertyName";else{let t=He[He.length-1];t==null?_e="end":Array.isArray(t)?_e="afterArrayValue":_e="afterPropertyValue"}}function Zt(){He.pop();let e=He[He.length-1];e==null?_e="end":Array.isArray(e)?_e="afterArrayValue":_e="afterPropertyValue"}function le(e){return du(e===void 0?`JSON5: invalid end of input at ${ut}:${Re}`:`JSON5: invalid character '${Li(e)}' at ${ut}:${Re}`)}function ft(){return du(`JSON5: invalid end of input at ${ut}:${Re}`)}function _n(){return Re-=5,du(`JSON5: invalid identifier character at ${ut}:${Re}`)}function tl(e){console.warn(`JSON5: '${Li(e)}' in strings is not valid ECMAScript; consider escaping`)}function Li(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let u=e.charCodeAt(0).toString(16);return"\\x"+("00"+u).substring(u.length)}return e}function du(e){let t=new SyntaxError(e);return t.lineNumber=ut,t.columnNumber=Re,t}function al(e,t){return t&&e==="await"||e==="enum"}function sl(e,t){return al(e,t)||il.has(e)}function ol(e){return nl.has(e)}function Dl(){return typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?!1:mr.default.isColorSupported}function ji(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:eu(eu(e.white,e.bgRed),e.bold),gutter:e.gray,marker:eu(e.red,e.bold),message:eu(e.red,e.bold),reset:e.reset}}function $i(e){return e?cl:ll}function Fl(e){if(e==="")return"";let t=$i(!0),u="";for(let{type:r,value:n}of Mi(e))r in t?u+=n.split(dl).map(i=>t[r](i)).join(`
`):u+=n;return u}function pl(e,t,u){let r=Object.assign({column:0,line:-1},e.start),n=Object.assign({},r,e.end),{linesAbove:i=2,linesBelow:a=3}=u||{},s=r.line,o=r.column,D=n.line,c=n.column,l=Math.max(s-(i+1),0),f=Math.min(t.length,D+a);s===-1&&(l=0),D===-1&&(f=t.length);let d=D-s,h={};if(d)for(let F=0;F<=d;F++){let P=F+s;if(!o)h[P]=!0;else if(F===0){let B=t[P-1].length;h[P]=[o,B-o+1]}else if(F===d)h[P]=[0,c];else{let B=t[P-F].length;h[P]=[0,B]}}else o===c?o?h[s]=[o,0]:h[s]=!0:h[s]=[o,c-o];return{start:l,end:f,markerLines:h}}function xi(e,t,u={}){let r=u.forceColor||Dl()&&u.highlightCode,n=$i(r),i=e.split(yn),{start:a,end:s,markerLines:o}=pl(t,i,u),D=t.start&&typeof t.start.column=="number",c=String(s).length,f=(r?Fl(e):e).split(yn,s).slice(a,s).map((d,h)=>{let F=a+1+h,B=` ${` ${F}`.slice(-c)} |`,p=o[F],g=!o[F+1];if(p){let y="";if(Array.isArray(p)){let C=d.slice(0,Math.max(p[0]-1,0)).replace(/[^\t]/g," "),R=p[1]||1;y=[`
`,n.gutter(B.replace(/\d/g," "))," ",C,n.marker("^").repeat(R)].join(""),g&&u.message&&(y+=" "+n.message(u.message))}return[n.marker(">"),n.gutter(B),d.length>0?` ${d}`:"",y].join("")}else return` ${n.gutter(B)}${d.length>0?` ${d}`:""}`}).join(`
`);return u.message&&!D&&(f=`${" ".repeat(c+1)}${u.message}
${f}`),r?n.reset(f):f}function ml(e,t,u){let r=t===0?-1:e.lastIndexOf(`
`,t-1),[n,i]=El(u);return{line:r===-1?n:e.slice(0,r+1).match(/\n/g).length+n,column:t-r-1+i}}function Cl(e,t,u){if(typeof e!="string")throw new TypeError("Text parameter should be a string");if(!Number.isInteger(t))throw new TypeError("Index parameter should be an integer");if(t<0||t>e.length)throw new RangeError("Index out of bounds");return ml(e,t,u)}function yl(e,t,u){typeof t=="string"&&(u=t,t=void 0);try{return JSON.parse(e,t)}catch(r){throw new Al({jsonParseError:r,fileName:u,input:e})}}function Bl(e,t){let u=e.slice(0,t).split(/\r\n|\n|\r/g);return[u.length,u.pop().length+1]}function bl(e,t,u){let r=e.split(/\r\n|\n|\r/g),n="",i=(Math.log10(t+1)|0)+1;for(let a=t-1;a<=t+1;a++){let s=r[a-1];s&&(n+=a.toString().padEnd(i," "),n+=": ",n+=s,n+=`
`,a===t&&(n+=" ".repeat(i+u+2),n+=`^
`))}return n}function Sl(e,t){let u=0;for(;e[t-++u]==="\\";);return--u&&u%2}function hu(e,t=0,u=e.length){let r=e.indexOf(`
`,t);return e[r-1]==="\r"&&r--,r<=u?r:-1}function Ar(e,t){for(let u=t;u<e.length;u++){let r=e[u];if(r===`
`)return u;if(r==="\r"&&e[u+1]===`
`)return u+1;if(r<" "&&r!==" "||r==="\x7F")throw new te("control characters are not allowed in comments",{toml:e,ptr:t})}return e.length}function Ge(e,t,u,r){let n;for(;(n=e[t])===" "||n===" "||!u&&(n===`
`||n==="\r"&&e[t+1]===`
`);)t++;return r||n!=="#"?t:Ge(e,Ar(e,t),u)}function Bn(e,t,u,r,n=!1){if(!r)return t=hu(e,t),t<0?e.length:t;for(let i=t;i<e.length;i++){let a=e[i];if(a==="#")i=hu(e,i);else{if(a===u)return i+1;if(a===r||n&&(a===`
`||a==="\r"&&e[i+1]===`
`))return i}}throw new te("cannot find end of structure",{toml:e,ptr:t})}function Ui(e,t){let u=e[t],r=u===e[t+1]&&e[t+1]===e[t+2]?e.slice(t,t+3):u;t+=r.length-1;do t=e.indexOf(r,++t);while(t>-1&&u!=="'"&&Sl(e,t));return t>-1&&(t+=r.length,r.length>1&&(e[t]===u&&t++,e[t]===u&&t++)),t}function Gi(e,t=0,u=e.length){let r=e[t]==="'",n=e[t++]===e[t]&&e[t]===e[t+1];n&&(u-=2,e[t+=2]==="\r"&&t++,e[t]===`
`&&t++);let i=0,a,s="",o=t;for(;t<u-1;){let D=e[t++];if(D===`
`||D==="\r"&&e[t]===`
`){if(!n)throw new te("newlines are not allowed in strings",{toml:e,ptr:t-1})}else if(D<" "&&D!==" "||D==="\x7F")throw new te("control characters are not allowed in strings",{toml:e,ptr:t-1});if(a){if(a=!1,D==="u"||D==="U"){let c=e.slice(t,t+=D==="u"?4:8);if(!Il.test(c))throw new te("invalid unicode escape",{toml:e,ptr:i});try{s+=String.fromCodePoint(parseInt(c,16))}catch{throw new te("invalid unicode escape",{toml:e,ptr:i})}}else if(n&&(D===`
`||D===" "||D===" "||D==="\r")){if(t=Ge(e,t-1,!0),e[t]!==`
`&&e[t]!=="\r")throw new te("invalid escape: only line-ending whitespace may be escaped",{toml:e,ptr:i});t=Ge(e,t)}else if(D in bn)s+=bn[D];else throw new te("unrecognized escape sequence",{toml:e,ptr:i});o=t}else!r&&D==="\\"&&(i=t-1,a=!0,s+=e.slice(o,i))}return s+e.slice(o,u-1)}function Nl(e,t,u,r){if(e==="true")return!0;if(e==="false")return!1;if(e==="-inf")return-1/0;if(e==="inf"||e==="+inf")return 1/0;if(e==="nan"||e==="+nan"||e==="-nan")return NaN;if(e==="-0")return r?0n:0;let n=Pl.test(e);if(n||Tl.test(e)){if(Ol.test(e))throw new te("leading zeroes are not allowed",{toml:t,ptr:u});e=e.replace(/_/g,"");let a=+e;if(isNaN(a))throw new te("invalid number",{toml:t,ptr:u});if(n){if((n=!Number.isSafeInteger(a))&&!r)throw new te("integer value cannot be represented losslessly",{toml:t,ptr:u});(n||r===!0)&&(a=BigInt(e))}return a}let i=new Rl(e);if(!i.isValid())throw new te("invalid value",{toml:t,ptr:u});return i}function Ll(e,t,u,r){let n=e.slice(t,u),i=n.indexOf("#");i>-1&&(Ar(e,i),n=n.slice(0,i));let a=n.trimEnd();if(!r){let s=n.indexOf(`
`,a.length);if(s>-1)throw new te("newlines are not allowed in inline tables",{toml:e,ptr:t+s})}return[a,i]}function vr(e,t,u,r,n){if(r===0)throw new te("document contains excessively nested structures. aborting.",{toml:e,ptr:t});let i=e[t];if(i==="["||i==="{"){let[o,D]=i==="["?$l(e,t,r,n):jl(e,t,r,n),c=u?Bn(e,D,",",u):D;if(D-c&&u==="}"){let l=hu(e,D,c);if(l>-1)throw new te("newlines are not allowed in inline tables",{toml:e,ptr:l})}return[o,c]}let a;if(i==='"'||i==="'"){a=Ui(e,t);let o=Gi(e,t,a);if(u){if(a=Ge(e,a,u!=="]"),e[a]&&e[a]!==","&&e[a]!==u&&e[a]!==`
`&&e[a]!=="\r")throw new te("unexpected character encountered",{toml:e,ptr:a});a+=+(e[a]===",")}return[o,a]}a=Bn(e,t,",",u);let s=Ll(e,t,a-+(e[a-1]===","),u==="]");if(!s[0])throw new te("incomplete key-value declaration: no value specified",{toml:e,ptr:t});return u&&s[1]>-1&&(a=Ge(e,t+s[1]),a+=+(e[a]===",")),[Nl(s[0],e,t,n),a]}function er(e,t,u="="){let r=t-1,n=[],i=e.indexOf(u,t);if(i<0)throw new te("incomplete key-value: cannot find end of key",{toml:e,ptr:t});do{let a=e[t=++r];if(a!==" "&&a!==" ")if(a==='"'||a==="'"){if(a===e[t+1]&&a===e[t+2])throw new te("multiline strings are not allowed in keys",{toml:e,ptr:t});let s=Ui(e,t);if(s<0)throw new te("unfinished string encountered",{toml:e,ptr:t});r=e.indexOf(".",s);let o=e.slice(s,r<0||r>i?i:r),D=hu(o);if(D>-1)throw new te("newlines are not allowed in keys",{toml:e,ptr:t+r+D});if(o.trimStart())throw new te("found extra tokens after the string part",{toml:e,ptr:s});if(i<s&&(i=e.indexOf(u,s),i<0))throw new te("incomplete key-value: cannot find end of key",{toml:e,ptr:t});n.push(Gi(e,t,s))}else{r=e.indexOf(".",t);let s=e.slice(t,r<0||r>i?i:r);if(!kl.test(s))throw new te("only letter, numbers, dashes and underscores are allowed in keys",{toml:e,ptr:t});n.push(s.trimEnd())}}while(r+1&&r<i);return[n,Ge(e,i+1,!0,!0)]}function jl(e,t,u,r){let n={},i=new Set,a,s=0;for(t++;(a=e[t++])!=="}"&&a;){let o={toml:e,ptr:t-1};if(a===`
`)throw new te("newlines are not allowed in inline tables",o);if(a==="#")throw new te("inline tables cannot contain comments",o);if(a===",")throw new te("expected key-value, found comma",o);if(a!==" "&&a!==" "){let D,c=n,l=!1,[f,d]=er(e,t-1);for(let P=0;P<f.length;P++){if(P&&(c=l?c[D]:c[D]={}),D=f[P],(l=Object.hasOwn(c,D))&&(typeof c[D]!="object"||i.has(c[D])))throw new te("trying to redefine an already defined value",{toml:e,ptr:t});!l&&D==="__proto__"&&Object.defineProperty(c,D,{enumerable:!0,configurable:!0,writable:!0})}if(l)throw new te("trying to redefine an already defined value",{toml:e,ptr:t});let[h,F]=vr(e,d,"}",u-1,r);i.add(h),c[D]=h,t=F,s=e[t-1]===","?t-1:0}}if(s)throw new te("trailing commas are not allowed in inline tables",{toml:e,ptr:s});if(!a)throw new te("unfinished table encountered",{toml:e,ptr:t});return[n,t]}function $l(e,t,u,r){let n=[],i;for(t++;(i=e[t++])!=="]"&&i;){