const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./angular-html-DA-rfuFy.js","./html-pp8916En.js","./javascript-wDzz0qaB.js","./css-CLj8gQPS.js","./angular-ts-BrjP3tb8.js","./scss-D5BDwBP9.js","./apl-CORt7UWP.js","./xml-sdJ4AIDG.js","./java-CylS5w8V.js","./json-Cp-IABpG.js","./astro-HNnZUWAn.js","./typescript-BPQ3VLAy.js","./postcss-CXtECtnM.js","./tsx-COt5Ahok.js","./blade-BjGOyj-B.js","./html-derivative-DlHx6ybY.js","./sql-BLtJtn59.js","./bsl-BO_Y6i37.js","./sdbl-DVxCFoDh.js","./cairo-KRGpt6FW.js","./python-B6aJPvgy.js","./cobol-nBiQ_Alo.js","./coffee-Ch7k5sss.js","./cpp-CofmeUqb.js","./regexp-CDVJQ6XC.js","./glsl-DplSGwfg.js","./c-BIGW1oBm.js","./crystal-DNxU26gB.js","./shellscript-Yzrsuije.js","./edge-FbVlp4U3.js","./elixir-CkH2-t6x.js","./elm-DbKCFpqz.js","./erb-BYCe7drp.js","./ruby-Wjq7vjNf.js","./haml-D5jkg6IW.js","./graphql-ChdNCCLP.js","./jsx-g9-lgVsj.js","./lua-BaeVxFsk.js","./yaml-Buea-lGh.js","./erlang-DsQrWhSR.js","./markdown-Cvjx9yec.js","./fortran-fixed-form-CkoXwp7k.js","./fortran-free-form-BxgE0vQu.js","./fsharp-CXgrBDvD.js","./gdresource-BOOCDP_w.js","./gdshader-DkwncUOv.js","./gdscript-C5YyOfLZ.js","./git-commit-F4YmCXRG.js","./diff-D97Zzqfu.js","./git-rebase-r7XF79zn.js","./glimmer-js-ByusRIyA.js","./glimmer-ts-BfAWNZQY.js","./hack-i7_Ulhet.js","./handlebars-BpdQsYii.js","./http-jrhK8wxY.js","./hurl-irOxFIW8.js","./csv-fuZLfV_i.js","./hxml-Bvhsp5Yf.js","./haxe-CzTSHFRz.js","./jinja-f2NsQr07.js","./jison-wvAkD_A8.js","./julia-CxzCAyBv.js","./r-Dspwwk_N.js","./just-VxiPbLrw.js","./perl-NvoQZIq0.js","./latex-CWtU0Tv5.js","./tex-idrVyKtj.js","./liquid-C0sCDyMI.js","./marko-DjSrsDqO.js","./less-B1dDrJ26.js","./mdc-DTYItulj.js","./nextflow-C-mBbutL.js","./nextflow-groovy-vE_lwT2v.js","./nginx-BpAMiNFr.js","./nim-BIad80T-.js","./php-R6g_5hLQ.js","./pug-DKIMFp6K.js","./qml-3beO22l8.js","./razor-BDqjjVU7.js","./csharp-COcwbKMJ.js","./rst-CRjBmOyv.js","./cmake-D1j8_8rp.js","./sas-cz2c8ADy.js","./shaderlab-Dg9Lc6iA.js","./hlsl-D3lLCCz7.js","./shellsession-BADoaaVG.js","./soy-8wufbnw4.js","./sparql-rVzFXLq3.js","./turtle-BsS91CYL.js","./stata-BH5u7GGu.js","./surrealql-Bq5Q-fJD.js","./svelte-Cy7k_4gC.js","./templ-DhtptRzy.js","./go-C27-OAKa.js","./ts-tags-DQrlYJgV.js","./twig-xg9kU7Mw.js","./vue-D2xRrEX4.js","./vue-html-AaS7Mt5G.js","./vue-vine-BoDAl6tE.js","./stylus-BEDo0Tqx.js","./xsl-CtQFsRM5.js"])))=>i.map(i=>d[i]);
var Qr=Object.defineProperty;var Zr=Object.getPrototypeOf;var Jr=Reflect.get;var We=e=>{throw TypeError(e)};var Kr=(e,r,t)=>r in e?Qr(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t;var Ee=(e,r,t)=>Kr(e,typeof r!="symbol"?r+"":r,t),ye=(e,r,t)=>r.has(e)||We("Cannot "+t);var I=(e,r,t)=>(ye(e,r,"read from private field"),t?t.call(e):r.get(e)),j=(e,r,t)=>r.has(e)?We("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,t),D=(e,r,t,i)=>(ye(e,r,"write to private field"),i?i.call(e,t):r.set(e,t),t),Ae=(e,r,t)=>(ye(e,r,"access private method"),t);var ze=(e,r,t)=>Jr(Zr(e),t,r);import{aV as s,aW as Yr,aX as et,aY as Ve,aZ as rt,a_ as tt,a$ as dr,b0 as _r,b1 as it,b2 as ot,b3 as nt}from"./index-BluT-jSL.js";import{b4 as Ji,b5 as Ki,b6 as Yi,b7 as eo,b8 as ro,b9 as to,ba as io,bb as oo,bc as no,bd as ao,be as so,bf as uo,bg as lo,bh as po,bi as mo,bj as co,bk as _o,bl as fo,bm as go,bn as ho,bo as Eo,bp as yo,bq as Ao,br as wo,bs as vo,bt as bo,bu as Io,bv as Co,bw as Lo,bx as To,by as Po,bz as Ro,bA as Oo}from"./index-BluT-jSL.js";function te(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function at(e,r,t){return e.has(r)||e.set(r,t),e.get(r)}const Se=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),v=String.raw;function ie(e,r){if(e==null)throw new Error(r??"Value expected");return e}const fr=v`\[\^?`,gr=`c.? | C(?:-.?)?|${v`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${v`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${v`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${v`o\{[^\}]*\}?`}|${v`\d{1,3}`}`,$e=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,le=new RegExp(v`
  \\ (?:
    ${gr}
    | [gk]<[^>]*>?
    | [gk]'[^']*'?
    | .
  )
  | \( (?:
    \? (?:
      [:=!>({]
      | <[=!]
      | <[^>]*>
      | '[^']*'
      | ~\|?
      | #(?:[^)\\]|\\.?)*
      | [^:)]*[:)]
    )?
    | \*[^\)]*\)?
  )?
  | (?:${$e.source})+
  | ${fr}
  | .
`.replace(/\s+/g,""),"gsu"),we=new RegExp(v`
  \\ (?:
    ${gr}
    | .
  )
  | \[:(?:\^?\p{Alpha}+|\^):\]
  | ${fr}
  | &&
  | .
`.replace(/\s+/g,""),"gsu");function st(e,r={}){const t={flags:"",...r,rules:{captureGroup:!1,singleline:!1,...r.rules}};if(typeof e!="string")throw new Error("String expected as pattern");const i=Lt(t.flags),n=[i.extended],o={captureGroup:t.rules.captureGroup,getCurrentModX(){return n.at(-1)},numOpenGroups:0,popModX(){n.pop()},pushModX(m){n.push(m)},replaceCurrentModX(m){n[n.length-1]=m},singleline:t.rules.singleline};let a=[],u;for(le.lastIndex=0;u=le.exec(e);){const m=ut(o,e,u[0],le.lastIndex);m.tokens?a.push(...m.tokens):m.token&&a.push(m.token),m.lastIndex!==void 0&&(le.lastIndex=m.lastIndex)}const l=[];let p=0;a.filter(m=>m.type==="GroupOpen").forEach(m=>{m.kind==="capturing"?m.number=++p:m.raw==="("&&l.push(m)}),p||l.forEach((m,d)=>{m.kind="capturing",m.number=d+1});const c=p||l.length;return{tokens:a.map(m=>m.type==="EscapedNumber"?Pt(m,c):m).flat(),flags:i}}function ut(e,r,t,i){const[n,o]=t;if(t==="["||t==="[^"){const a=lt(r,t,i);return{tokens:a.tokens,lastIndex:a.lastIndex}}if(n==="\\"){if("AbBGyYzZ".includes(o))return{token:qe(t,t)};if(/^\\g[<']/.test(t)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(t))throw new Error(`Invalid group name "${t}"`);return{token:yt(t)}}if(/^\\k[<']/.test(t)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(t))throw new Error(`Invalid group name "${t}"`);return{token:Er(t)}}if(o==="K")return{token:yr("keep",t)};if(o==="N"||o==="R")return{token:q("newline",t,{negate:o==="N"})};if(o==="O")return{token:q("any",t)};if(o==="X")return{token:q("text_segment",t)};const a=hr(t,{inCharClass:!1});return Array.isArray(a)?{tokens:a}:{token:a}}if(n==="("){if(o==="*")return{token:bt(t)};if(t==="(?{")throw new Error(`Unsupported callout "${t}"`);if(t.startsWith("(?#")){if(r[i]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:i+1}}if(/^\(\?[-imx]+[:)]$/.test(t))return{token:vt(t,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,t==="("&&!e.captureGroup||t==="(?:")return{token:ee("group",t)};if(t==="(?>")return{token:ee("atomic",t)};if(t==="(?="||t==="(?!"||t==="(?<="||t==="(?<!")return{token:ee(t[2]==="<"?"lookbehind":"lookahead",t,{negate:t.endsWith("!")})};if(t==="("&&e.captureGroup||t.startsWith("(?<")&&t.endsWith(">")||t.startsWith("(?'")&&t.endsWith("'"))return{token:ee("capturing",t,{...t!=="("&&{name:t.slice(3,-1)}})};if(t.startsWith("(?~")){if(t==="(?~|")throw new Error(`Unsupported absence function kind "${t}"`);return{token:ee("absence_repeater",t)}}throw t==="(?("?new Error(`Unsupported conditional "${t}"`):new Error(`Invalid or unsupported group option "${t}"`)}if(t===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:gt(t)}}if(e.getCurrentModX()){if(t==="#"){const a=r.indexOf(`
`,i);return{lastIndex:a===-1?r.length:a}}if(/^\s$/.test(t)){const a=/\s+/y;return a.lastIndex=i,{lastIndex:a.exec(r)?a.lastIndex:i}}}if(t===".")return{token:q("dot",t)};if(t==="^"||t==="$"){const a=e.singleline?{"^":v`\A`,$:v`\Z`}[t]:t;return{token:qe(a,t)}}return t==="|"?{token:mt(t)}:$e.test(t)?{tokens:Rt(t)}:{token:$(te(t),t)}}function lt(e,r,t){const i=[Xe(r[1]==="^",r)];let n=1,o;for(we.lastIndex=t;o=we.exec(e);){const a=o[0];if(a[0]==="["&&a[1]!==":")n++,i.push(Xe(a[1]==="^",a));else if(a==="]"){if(i.at(-1).type==="CharacterClassOpen")i.push($(93,a));else if(n--,i.push(ct(a)),!n)break}else{const u=pt(a);Array.isArray(u)?i.push(...u):i.push(u)}}return{tokens:i,lastIndex:we.lastIndex||e.length}}function pt(e){if(e[0]==="\\")return hr(e,{inCharClass:!0});if(e[0]==="["){const r=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!r||!Se.has(r.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return q("posix",e,{value:r.groups.name,negate:!!r.groups.negate})}return e==="-"?dt(e):e==="&&"?_t(e):$(te(e),e)}function hr(e,{inCharClass:r}){const t=e[1];if(t==="c"||t==="C")return wt(e);if("dDhHsSwW".includes(t))return It(e);if(e.startsWith(v`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return Ct(e)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(e))try{const i=e.split(/\\x/).slice(1).map(a=>parseInt(a,16)),n=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(i)),o=new TextEncoder;return[...n].map(a=>{const u=[...o.encode(a)].map(l=>`\\x${l.toString(16)}`).join("");return $(te(a),u)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(t==="u"||t==="x")return $(Tt(e),e);if(Qe.has(t))return $(Qe.get(t),e);if(/\d/.test(t))return ft(r,e);if(e==="\\")throw new Error(v`Incomplete escape "\"`);if(t==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return $(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function mt(e){return{type:"Alternator",raw:e}}function qe(e,r){return{type:"Assertion",kind:e,raw:r}}function Er(e){return{type:"Backreference",raw:e}}function $(e,r){return{type:"Character",value:e,raw:r}}function ct(e){return{type:"CharacterClassClose",raw:e}}function dt(e){return{type:"CharacterClassHyphen",raw:e}}function _t(e){return{type:"CharacterClassIntersector",raw:e}}function Xe(e,r){return{type:"CharacterClassOpen",negate:e,raw:r}}function q(e,r,t={}){return{type:"CharacterSet",kind:e,...t,raw:r}}function yr(e,r,t={}){return e==="keep"?{type:"Directive",kind:e,raw:r}:{type:"Directive",kind:e,flags:ie(t.flags),raw:r}}function ft(e,r){return{type:"EscapedNumber",inCharClass:e,raw:r}}function gt(e){return{type:"GroupClose",raw:e}}function ee(e,r,t={}){return{type:"GroupOpen",kind:e,...t,raw:r}}function ht(e,r,t,i){return{type:"NamedCallout",kind:e,tag:r,arguments:t,raw:i}}function Et(e,r,t,i){return{type:"Quantifier",kind:e,min:r,max:t,raw:i}}function yt(e){return{type:"Subroutine",raw:e}}const At=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),Qe=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function wt(e){const r=e[1]==="c"?e[2]:e[3];if(!r||!/[A-Za-z]/.test(r))throw new Error(`Unsupported control character "${e}"`);return $(te(r.toUpperCase())-64,e)}function vt(e,r){let{on:t,off:i}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;i??(i="");const n=(r.getCurrentModX()||t.includes("x"))&&!i.includes("x"),o=Je(t),a=Je(i),u={};if(o&&(u.enable=o),a&&(u.disable=a),e.endsWith(")"))return r.replaceCurrentModX(n),yr("flags",e,{flags:u});if(e.endsWith(":"))return r.pushModX(n),r.numOpenGroups++,ee("group",e,{...(o||a)&&{flags:u}});throw new Error(`Unexpected flag modifier "${e}"`)}function bt(e){const r=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!r)throw new Error(`Incomplete or invalid named callout "${e}"`);const{name:t,tag:i,args:n}=r.groups;if(!t)throw new Error(`Invalid named callout "${e}"`);if(i==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);const o=n?n.split(",").filter(c=>c!=="").map(c=>/^[+-]?\d+$/.test(c)?+c:c):[],[a,u,l]=o,p=At.has(t)?t.toLowerCase():"custom";switch(p){case"fail":case"mismatch":case"skip":if(o.length>0)throw new Error(`Named callout arguments not allowed "${o}"`);break;case"error":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(typeof a=="string")throw new Error(`Named callout argument must be a number "${a}"`);break;case"max":if(!o.length||o.length>2)throw new Error(`Named callout must have one or two arguments "${o}"`);if(typeof a=="string"&&!/^[A-Za-z_]\w*$/.test(a))throw new Error(`Named callout argument one must be a tag or number "${a}"`);if(o.length===2&&(typeof u=="number"||!/^[<>X]$/.test(u)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${u}"`);break;case"count":case"total_count":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(o.length===1&&(typeof a=="number"||!/^[<>X]$/.test(a)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${a}"`);break;case"cmp":if(o.length!==3)throw new Error(`Named callout must have three arguments "${o}"`);if(typeof a=="string"&&!/^[A-Za-z_]\w*$/.test(a))throw new Error(`Named callout argument one must be a tag or number "${a}"`);if(typeof u=="number"||!/^(?:[<>!=]=|[<>])$/.test(u))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${u}"`);if(typeof l=="string"&&!/^[A-Za-z_]\w*$/.test(l))throw new Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw new Error(`Undefined callout name "${t}"`);default:throw new Error(`Unexpected named callout kind "${p}"`)}return ht(p,i??null,(n==null?void 0:n.split(","))??null,e)}function Ze(e){let r=null,t,i;if(e[0]==="{"){const{minStr:n,maxStr:o}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,a=1e5;if(+n>a||o&&+o>a)throw new Error("Quantifier value unsupported in Oniguruma");if(t=+n,i=o===void 0?+n:o===""?1/0:+o,t>i&&(r="possessive",[t,i]=[i,t]),e.endsWith("?")){if(r==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');r="lazy"}else r||(r="greedy")}else t=e[0]==="+"?1:0,i=e[0]==="?"?1:1/0,r=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return Et(r,t,i,e)}function It(e){const r=e[1].toLowerCase();return q({d:"digit",h:"hex",s:"space",w:"word"}[r],e,{negate:e[1]!==r})}function Ct(e){const{p:r,neg:t,value:i}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return q("property",e,{value:i,negate:r==="P"&&!t||r==="p"&&!!t})}function Je(e){const r={};return e.includes("i")&&(r.ignoreCase=!0),e.includes("m")&&(r.dotAll=!0),e.includes("x")&&(r.extended=!0),Object.keys(r).length?r:null}function Lt(e){const r={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let t=0;t<e.length;t++){const i=e[t];if(!"imxDPSWy".includes(i))throw new Error(`Invalid flag "${i}"`);if(i==="y"){if(!/^y{[gw]}/.test(e.slice(t)))throw new Error('Invalid or unspecified flag "y" mode');r.textSegmentMode=e[t+2]==="g"?"grapheme":"word",t+=3;continue}r[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[i]]=!0}return r}function Tt(e){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(e))throw new Error(`Incomplete or invalid escape "${e}"`);const r=e[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(e).groups.hex:e.slice(2);return parseInt(r,16)}function Pt(e,r){const{raw:t,inCharClass:i}=e,n=t.slice(1);if(!i&&(n!=="0"&&n.length===1||n[0]!=="0"&&+n<=r))return[Er(t)];const o=[],a=n.match(/^[0-7]+|\d/g);for(let u=0;u<a.length;u++){const l=a[u];let p;if(u===0&&l!=="8"&&l!=="9"){if(p=parseInt(l,8),p>127)throw new Error(v`Octal encoded byte above 177 unsupported "${t}"`)}else p=te(l);o.push($(p,(u===0?"\\":"")+l))}return o}function Rt(e){const r=[],t=new RegExp($e,"gy");let i;for(;i=t.exec(e);){const n=i[0];if(n[0]==="{"){const o=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(n);if(o){const{min:a,max:u}=o.groups;if(+a>+u&&n.endsWith("?")){t.lastIndex--,r.push(Ze(n.slice(0,-1)));continue}}}r.push(Ze(n))}return r}function Ar(e,r){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;const t=e.body[0];return!r||Object.keys(r).every(i=>r[i]===t[i])}function Ot(e){return Dt.has(e.type)}const Dt=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function wr(e,r={}){const t={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...r,rules:{captureGroup:!1,singleline:!1,...r.rules}},i=st(e,{flags:t.flags,rules:{captureGroup:t.rules.captureGroup,singleline:t.rules.singleline}}),n=(d,f)=>{const _=i.tokens[o.nextIndex];switch(o.parent=d,o.nextIndex++,_.type){case"Alternator":return Z();case"Assertion":return kt(_);case"Backreference":return xt(_,o);case"Character":return _e(_.value,{useLastValid:!!f.isCheckingRangeEnd});case"CharacterClassHyphen":return Vt(_,o,f);case"CharacterClassOpen":return St(_,o,f);case"CharacterSet":return $t(_,o);case"Directive":return Bt(_.kind,{flags:_.flags});case"GroupOpen":return Mt(_,o,f);case"NamedCallout":return jt(_.kind,_.tag,_.arguments);case"Quantifier":return Nt(_,o);case"Subroutine":return Gt(_,o);default:throw new Error(`Unexpected token type "${_.type}"`)}},o={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:t.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:t.skipBackrefValidation,skipLookbehindValidation:t.skipLookbehindValidation,skipPropertyNameValidation:t.skipPropertyNameValidation,subroutines:[],tokens:i.tokens,unicodePropertyMap:t.unicodePropertyMap,walk:n},a=zt(Ht(i.flags));let u=a.body[0];for(;o.nextIndex<i.tokens.length;){const d=n(u,{});d.type==="Alternative"?(a.body.push(d),u=d):u.body.push(d)}const{capturingGroups:l,hasNumberedRef:p,namedGroupsByName:c,subroutines:m}=o;if(p&&c.size&&!t.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:d}of m)if(typeof d=="number"){if(d>l.length)throw new Error("Subroutine uses a group number that's not defined");d&&(l[d-1].isSubroutined=!0)}else if(c.has(d)){if(c.get(d).length>1)throw new Error(v`Subroutine uses a duplicate group name "\g<${d}>"`);c.get(d)[0].isSubroutined=!0}else throw new Error(v`Subroutine uses a group name that's not defined "\g<${d}>"`);return a}function kt({kind:e}){return Pe(ie({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===v`\B`||e===v`\Y`})}function xt({raw:e},r){const t=/^\\k[<']/.test(e),i=t?e.slice(3,-1):e.slice(1),n=(o,a=!1)=>{const u=r.capturingGroups.length;let l=!1;if(o>u)if(r.skipBackrefValidation)l=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return r.hasNumberedRef=!0,Re(a?u+1-o:o,{orphan:l})};if(t){const o=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(i);if(o)return n(+o.groups.num,!!o.groups.sign);if(/[-+]/.test(i))throw new Error(`Invalid backref name "${e}"`);if(!r.namedGroupsByName.has(i))throw new Error(`Group name not defined to the left "${e}"`);return Re(i)}return n(+i)}function Vt(e,r,t){const{tokens:i,walk:n}=r,o=r.parent,a=o.body.at(-1),u=i[r.nextIndex];if(!t.isCheckingRangeEnd&&a&&a.type!=="CharacterClass"&&a.type!=="CharacterClassRange"&&u&&u.type!=="CharacterClassOpen"&&u.type!=="CharacterClassClose"&&u.type!=="CharacterClassIntersector"){const l=n(o,{...t,isCheckingRangeEnd:!0});if(a.type==="Character"&&l.type==="Character")return o.body.pop(),Ut(a,l);throw new Error("Invalid character class range")}return _e(te("-"))}function St({negate:e},r,t){const{tokens:i,walk:n}=r,o=i[r.nextIndex],a=[ce()];let u=er(o);for(;u.type!=="CharacterClassClose";){if(u.type==="CharacterClassIntersector")a.push(ce()),r.nextIndex++;else{const p=a.at(-1);p.body.push(n(p,t))}u=er(i[r.nextIndex],o)}const l=ce({negate:e});return a.length===1?l.body=a[0].body:(l.kind="intersection",l.body=a.map(p=>p.body.length===1?p.body[0]:p)),r.nextIndex++,l}function $t({kind:e,negate:r,value:t},i){const{normalizeUnknownPropertyNames:n,skipPropertyNameValidation:o,unicodePropertyMap:a}=i;if(e==="property"){const u=fe(t);if(Se.has(u)&&!(a!=null&&a.has(u)))e="posix",t=u;else return re(t,{negate:r,normalizeUnknownPropertyNames:n,skipPropertyNameValidation:o,unicodePropertyMap:a})}return e==="posix"?Wt(t,{negate:r}):Oe(e,{negate:r})}function Mt(e,r,t){const{tokens:i,capturingGroups:n,namedGroupsByName:o,skipLookbehindValidation:a,walk:u}=r,l=qt(e),p=l.type==="AbsenceFunction",c=Ye(l),m=c&&l.negate;if(l.type==="CapturingGroup"&&(n.push(l),l.name&&at(o,l.name,[]).push(l)),p&&t.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let d=rr(i[r.nextIndex]);for(;d.type!=="GroupClose";){if(d.type==="Alternator")l.body.push(Z()),r.nextIndex++;else{const f=l.body.at(-1),_=u(f,{...t,isInAbsenceFunction:t.isInAbsenceFunction||p,isInLookbehind:t.isInLookbehind||c,isInNegLookbehind:t.isInNegLookbehind||m});if(f.body.push(_),(c||t.isInLookbehind)&&!a){const h="Lookbehind includes a pattern not allowed by Oniguruma";if(m||t.isInNegLookbehind){if(Ke(_)||_.type==="CapturingGroup")throw new Error(h)}else if(Ke(_)||Ye(_)&&_.negate)throw new Error(h)}}d=rr(i[r.nextIndex])}return r.nextIndex++,l}function Nt({kind:e,min:r,max:t},i){const n=i.parent,o=n.body.at(-1);if(!o||!Ot(o))throw new Error("Quantifier requires a repeatable token");const a=br(e,r,t,o);return n.body.pop(),a}function Gt({raw:e},r){const{capturingGroups:t,subroutines:i}=r;let n=e.slice(3,-1);const o=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(n);if(o){const u=+o.groups.num,l=t.length;if(r.hasNumberedRef=!0,n={"":u,"+":l+u,"-":l+1-u}[o.groups.sign],n<1)throw new Error("Invalid subroutine number")}else n==="0"&&(n=0);const a=Ir(n);return i.push(a),a}function Ft(e,r){return{type:"AbsenceFunction",kind:e,body:ue(r==null?void 0:r.body)}}function Z(e){return{type:"Alternative",body:Cr(e==null?void 0:e.body)}}function Pe(e,r){const t={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(t.negate=!!(r!=null&&r.negate)),t}function Re(e,r){const t=!!(r!=null&&r.orphan);return{type:"Backreference",ref:e,...t&&{orphan:t}}}function vr(e,r){const t={name:void 0,isSubroutined:!1,...r};if(t.name!==void 0&&!Xt(t.name))throw new Error(`Group name "${t.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...t.name&&{name:t.name},...t.isSubroutined&&{isSubroutined:t.isSubroutined},body:ue(r==null?void 0:r.body)}}function _e(e,r){const t={useLastValid:!1,...r};if(e>1114111){const i=e.toString(16);if(t.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${i}}"`):new Error(`Invalid code point out of range in JS "\\x{${i}}"`)}return{type:"Character",value:e}}function ce(e){const r={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:r.kind,negate:r.negate,body:Cr(e==null?void 0:e.body)}}function Ut(e,r){if(r.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:r}}function Oe(e,r){const t=!!(r!=null&&r.negate),i={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(i.negate=t),(e==="text_segment"||e==="newline"&&!t)&&(i.variableLength=!0),i}function Bt(e,r={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:ie(r.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function Ht(e){return{type:"Flags",...e}}function k(e){const r=e==null?void 0:e.atomic,t=e==null?void 0:e.flags;if(r&&t)throw new Error("Atomic group cannot have flags");return{type:"Group",...r&&{atomic:r},...t&&{flags:t},body:ue(e==null?void 0:e.body)}}function z(e){const r={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:r.behind?"lookbehind":"lookahead",negate:r.negate,body:ue(e==null?void 0:e.body)}}function jt(e,r,t){return{type:"NamedCallout",kind:e,tag:r,arguments:t}}function Wt(e,r){const t=!!(r!=null&&r.negate);if(!Se.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:t}}function br(e,r,t,i){if(r>t)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:r,max:t,body:i}}function zt(e,r){return{type:"Regex",body:ue(r==null?void 0:r.body),flags:e}}function Ir(e){return{type:"Subroutine",ref:e}}function re(e,r){var n;const t={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...r};let i=(n=t.unicodePropertyMap)==null?void 0:n.get(fe(e));if(!i){if(t.normalizeUnknownPropertyNames)i=Qt(e);else if(t.unicodePropertyMap&&!t.skipPropertyNameValidation)throw new Error(v`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:i??e,negate:t.negate}}function qt({flags:e,kind:r,name:t,negate:i,number:n}){switch(r){case"absence_repeater":return Ft("repeater");case"atomic":return k({atomic:!0});case"capturing":return vr(n,{name:t});case"group":return k({flags:e});case"lookahead":case"lookbehind":return z({behind:r==="lookbehind",negate:i});default:throw new Error(`Unexpected group kind "${r}"`)}}function ue(e){if(e===void 0)e=[Z()];else if(!Array.isArray(e)||!e.length||!e.every(r=>r.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return e}function Cr(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(r=>!!r.type))throw new Error("Invalid body; expected array of nodes");return e}function Ke(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function Ye(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function Xt(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function Qt(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,r=>r[0].toUpperCase()+r.slice(1).toLowerCase())}function fe(e){return e.replace(/[- _]+/g,"").toLowerCase()}function er(e,r){return ie(e,`${(r==null?void 0:r.type)==="Character"&&r.value===93?"Empty":"Unclosed"} character class`)}function rr(e){return ie(e,"Unclosed group")}function ne(e,r,t=null){function i(o,a){for(let u=0;u<o.length;u++){const l=n(o[u],a,u,o);u=Math.max(-1,u+l)}}function n(o,a=null,u=null,l=null){var C,L;let p=0,c=!1;const m={node:o,parent:a,key:u,container:l,root:e,remove(){pe(l).splice(Math.max(0,K(u)+p),1),p--,c=!0},removeAllNextSiblings(){return pe(l).splice(K(u)+1)},removeAllPrevSiblings(){const y=K(u)+p;return p-=y,pe(l).splice(0,Math.max(0,y))},replaceWith(y,b={}){const R=!!b.traverse;l?l[Math.max(0,K(u)+p)]=y:ie(a,"Can't replace root node")[u]=y,R&&n(y,a,u,l),c=!0},replaceWithMultiple(y,b={}){const R=!!b.traverse;if(pe(l).splice(Math.max(0,K(u)+p),1,...y),p+=y.length-1,R){let H=0;for(let O=0;O<y.length;O++)H+=n(y[O],a,K(u)+O+H,l)}c=!0},skip(){c=!0}},{type:d}=o,f=r["*"],_=r[d],h=typeof f=="function"?f:f==null?void 0:f.enter,E=typeof _=="function"?_:_==null?void 0:_.enter;if(h==null||h(m,t),E==null||E(m,t),!c)switch(d){case"AbsenceFunction":case"CapturingGroup":case"Group":i(o.body,o);break;case"Alternative":case"CharacterClass":i(o.body,o);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":n(o.min,o,"min"),n(o.max,o,"max");break;case"LookaroundAssertion":i(o.body,o);break;case"Quantifier":n(o.body,o,"body");break;case"Regex":i(o.body,o),n(o.flags,o,"flags");break;default:throw new Error(`Unexpected node type "${d}"`)}return(C=_==null?void 0:_.exit)==null||C.call(_,m,t),(L=f==null?void 0:f.exit)==null||L.call(f,m,t),p}return n(e),e}function pe(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function K(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const Zt=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function Jt(e,r){for(let t=0;t<e.length;t++)e[t]>=r&&e[t]++}function Kt(e,r,t,i){return e.slice(0,r)+i+e.slice(r+t.length)}const P=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function Me(e,r,t,i){const n=new RegExp(String.raw`${r}|(?<$skip>\[\^?|\\?.)`,"gsu"),o=[!1];let a=0,u="";for(const l of e.matchAll(n)){const{0:p,groups:{$skip:c}}=l;if(!c&&(!i||i===P.DEFAULT==!a)){t instanceof Function?u+=t(l,{context:a?P.CHAR_CLASS:P.DEFAULT,negated:o[o.length-1]}):u+=t;continue}p[0]==="["?(a++,o.push(p[1]==="^")):p==="]"&&a&&(a--,o.pop()),u+=p}return u}function Lr(e,r,t,i){Me(e,r,t,i)}function Yt(e,r,t=0,i){if(!new RegExp(r,"su").test(e))return null;const n=new RegExp(`${r}|(?<$skip>\\\\?.)`,"gsu");n.lastIndex=t;let o=0,a;for(;a=n.exec(e);){const{0:u,groups:{$skip:l}}=a;if(!l&&(!i||i===P.DEFAULT==!o))return a;u==="["?o++:u==="]"&&o&&o--,n.lastIndex==a.index&&n.lastIndex++}return null}function me(e,r,t){return!!Yt(e,r,0,t)}function ei(e,r){const t=/\\?./gsu;t.lastIndex=r;let i=e.length,n=0,o=1,a;for(;a=t.exec(e);){const[u]=a;if(u==="[")n++;else if(n)u==="]"&&n--;else if(u==="(")o++;else if(u===")"&&(o--,!o)){i=a.index;break}}return e.slice(r,i)}const tr=new RegExp(String.raw`(?<noncapturingStart>${Zt})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function ri(e,r){const t=(r==null?void 0:r.hiddenCaptures)??[];let i=(r==null?void 0:r.captureTransfers)??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:i,hiddenCaptures:t};const n="(?>",o="(?:(?=(",a=[0],u=[];let l=0,p=0,c=NaN,m;do{m=!1;let d=0,f=0,_=!1,h;for(tr.lastIndex=Number.isNaN(c)?0:c+o.length;h=tr.exec(e);){const{0:E,index:C,groups:{capturingStart:L,noncapturingStart:y}}=h;if(E==="[")d++;else if(d)E==="]"&&d--;else if(E===n&&!_)c=C,_=!0;else if(_&&y)f++;else if(L)_?f++:(l++,a.push(l+p));else if(E===")"&&_){if(!f){p++;const b=l+p;if(e=`${e.slice(0,c)}${o}${e.slice(c+n.length,C)}))<$$${b}>)${e.slice(C+1)}`,m=!0,u.push(b),Jt(t,b),i.size){const R=new Map;i.forEach((H,O)=>{R.set(O>=b?O+1:O,H.map(J=>J>=b?J+1:J))}),i=R}break}f--}}}while(m);return t.push(...u),e=Me(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:d,groups:{backrefNum:f,wrappedBackrefNum:_}})=>{if(f){const h=+f;if(h>a.length-1)throw new Error(`Backref "${d}" greater than number of captures`);return`\\${a[h]}`}return`\\${_}`},P.DEFAULT),{pattern:e,captureTransfers:i,hiddenCaptures:t}}const Tr=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,ve=new RegExp(String.raw`
\\(?: \d+
  | c[A-Za-z]
  | [gk]<[^>]+>
  | [pPu]\{[^\}]+\}
  | u[A-Fa-f\d]{4}
  | x[A-Fa-f\d]{2}
  )
| \((?: \? (?: [:=!>]
  | <(?:[=!]|[^>]+>)
  | [A-Za-z\-]+:
  | \(DEFINE\)
  ))?
| (?<qBase>${Tr})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
| \\?.
`.replace(/\s+/g,""),"gsu");function ti(e){if(!new RegExp(`${Tr}\\+`).test(e))return{pattern:e};const r=[];let t=null,i=null,n="",o=0,a;for(ve.lastIndex=0;a=ve.exec(e);){const{0:u,index:l,groups:{qBase:p,qMod:c,invalidQ:m}}=a;if(u==="[")o||(i=l),o++;else if(u==="]")o?o--:i=null;else if(!o)if(c==="+"&&n&&!n.startsWith("(")){if(m)throw new Error(`Invalid quantifier "${u}"`);let d=-1;if(/^\{\d+\}$/.test(p))e=Kt(e,l+p.length,c,"");else{if(n===")"||n==="]"){const f=n===")"?t:i;if(f===null)throw new Error(`Invalid unmatched "${n}"`);e=`${e.slice(0,f)}(?>${e.slice(f,l)}${p})${e.slice(l+u.length)}`}else e=`${e.slice(0,l-n.length)}(?>${n}${p})${e.slice(l+u.length)}`;d+=4}ve.lastIndex+=d}else u[0]==="("?r.push(l):u===")"&&(t=r.length?r.pop():null);n=u}return{pattern:e}}const T=String.raw,ii=T`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,De=T`\(\?R=(?<rDepth>[^\)]+)\)|${ii}`,ge=T`\(\?<(?![=!])(?<captureName>[^>]+)>`,Pr=T`${ge}|(?<unnamed>\()(?!\?)`,W=new RegExp(T`${ge}|${De}|\(\?|\\?.`,"gsu"),be="Cannot use multiple overlapping recursions";function oi(e,r){const{hiddenCaptures:t,mode:i}={hiddenCaptures:[],mode:"plugin",...r};let n=(r==null?void 0:r.captureTransfers)??new Map;if(!new RegExp(De,"su").test(e))return{pattern:e,captureTransfers:n,hiddenCaptures:t};if(i==="plugin"&&me(e,T`\(\?\(DEFINE\)`,P.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const o=[],a=me(e,T`\\[1-9]`,P.DEFAULT),u=new Map,l=[];let p=!1,c=0,m=0,d;for(W.lastIndex=0;d=W.exec(e);){const{0:f,groups:{captureName:_,rDepth:h,gRNameOrNum:E,gRDepth:C}}=d;if(f==="[")c++;else if(c)f==="]"&&c--;else if(h){if(ir(h),p)throw new Error(be);if(a)throw new Error(`${i==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const L=e.slice(0,d.index),y=e.slice(W.lastIndex);if(me(y,De,P.DEFAULT))throw new Error(be);const b=+h-1;e=or(L,y,b,!1,t,o,m),n=ar(n,L,b,o.length,0,m);break}else if(E){ir(C);let L=!1;for(const oe of l)if(oe.name===E||oe.num===+E){if(L=!0,oe.hasRecursedWithin)throw new Error(be);break}if(!L)throw new Error(T`Recursive \g cannot be used outside the referenced group "${i==="external"?E:T`\g<${E}&R=${C}>`}"`);const y=u.get(E),b=ei(e,y);if(a&&me(b,T`${ge}|\((?!\?)`,P.DEFAULT))throw new Error(`${i==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const R=e.slice(y,d.index),H=b.slice(R.length+f.length),O=o.length,J=+C-1,je=or(R,H,J,!0,t,o,m);n=ar(n,R,J,o.length-O,O,m);const qr=e.slice(0,y),Xr=e.slice(y+b.length);e=`${qr}${je}${Xr}`,W.lastIndex+=je.length-f.length-R.length-H.length,l.forEach(oe=>oe.hasRecursedWithin=!0),p=!0}else if(_)m++,u.set(String(m),W.lastIndex),u.set(_,W.lastIndex),l.push({num:m,name:_});else if(f[0]==="("){const L=f==="(";L&&(m++,u.set(String(m),W.lastIndex)),l.push(L?{num:m}:{})}else f===")"&&l.pop()}return t.push(...o),{pattern:e,captureTransfers:n,hiddenCaptures:t}}function ir(e){const r=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(r);if(e=+e,e<2||e>100)throw new Error(r)}function or(e,r,t,i,n,o,a){const u=new Set;i&&Lr(e+r,ge,({groups:{captureName:p}})=>{u.add(p)},P.DEFAULT);const l=[t,i?u:null,n,o,a];return`${e}${nr(`(?:${e}`,"forward",...l)}(?:)${nr(`${r})`,"backward",...l)}${r}`}function nr(e,r,t,i,n,o,a){const l=c=>r==="forward"?c+2:t-c+2-1;let p="";for(let c=0;c<t;c++){const m=l(c);p+=Me(e,T`${Pr}|\\k<(?<backref>[^>]+)>`,({0:d,groups:{captureName:f,unnamed:_,backref:h}})=>{if(h&&i&&!i.has(h))return d;const E=`_$${m}`;if(_||f){const C=a+o.length+1;return o.push(C),ni(n,C),_?d:`(?<${f}${E}>`}return T`\k<${h}${E}>`},P.DEFAULT)}return p}function ni(e,r){for(let t=0;t<e.length;t++)e[t]>=r&&e[t]++}function ar(e,r,t,i,n,o){if(e.size&&i){let a=0;Lr(r,Pr,()=>a++,P.DEFAULT);const u=o-a+n,l=new Map;return e.forEach((p,c)=>{const m=(i-a*t)/t,d=a*t,f=c>u+a?c+i:c,_=[];for(const h of p)if(h<=u)_.push(h);else if(h>u+a+m)_.push(h+i);else if(h<=u+a)for(let E=0;E<=t;E++)_.push(h+a*E);else for(let E=0;E<=t;E++)_.push(h+d+m*E);l.set(f,_)}),l}return e}var w=String.fromCodePoint,g=String.raw,M={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("[[]]","v")}catch{return!1}return!0})()};M.bugFlagVLiteralHyphenIsRange=M.unicodeSets?(()=>{try{new RegExp(g`[\d\-a]`,"v")}catch{return!0}return!1})():!1;M.bugNestedClassIgnoresNegation=M.unicodeSets&&new RegExp("[[^a]]","v").test("a");function de(e,{enable:r,disable:t}){return{dotAll:!(t!=null&&t.dotAll)&&!!(r!=null&&r.dotAll||e.dotAll),ignoreCase:!(t!=null&&t.ignoreCase)&&!!(r!=null&&r.ignoreCase||e.ignoreCase)}}function ae(e,r,t){return e.has(r)||e.set(r,t),e.get(r)}function ke(e,r){return sr[e]>=sr[r]}function ai(e,r){if(e==null)throw new Error(r??"Value expected");return e}var sr={ES2025:2025,ES2024:2024,ES2018:2018},si={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function Rr(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!si[e.target])throw new Error(`Unexpected target "${e.target}"`);const r={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return r.target==="auto"&&(r.target=M.flagGroups?"ES2025":M.unicodeSets?"ES2024":"ES2018"),r}var ui="[	-\r ]",li=new Set([w(304),w(305)]),x=g`[\p{L}\p{M}\p{N}\p{Pc}]`;function Or(e){if(li.has(e))return[e];const r=new Set,t=e.toLowerCase(),i=t.toUpperCase(),n=ci.get(t),o=pi.get(t),a=mi.get(t);return[...i].length===1&&r.add(i),a&&r.add(a),n&&r.add(n),r.add(t),o&&r.add(o),[...r]}var Ne=new Map(`C Other
Cc Control cntrl
Cf Format
Cn Unassigned
Co Private_Use
Cs Surrogate
L Letter
LC Cased_Letter
Ll Lowercase_Letter
Lm Modifier_Letter
Lo Other_Letter
Lt Titlecase_Letter
Lu Uppercase_Letter
M Mark Combining_Mark
Mc Spacing_Mark
Me Enclosing_Mark
Mn Nonspacing_Mark
N Number
Nd Decimal_Number digit
Nl Letter_Number
No Other_Number
P Punctuation punct
Pc Connector_Punctuation
Pd Dash_Punctuation
Pe Close_Punctuation
Pf Final_Punctuation
Pi Initial_Punctuation
Po Other_Punctuation
Ps Open_Punctuation
S Symbol
Sc Currency_Symbol
Sk Modifier_Symbol
Sm Math_Symbol
So Other_Symbol
Z Separator
Zl Line_Separator
Zp Paragraph_Separator
Zs Space_Separator
ASCII
ASCII_Hex_Digit AHex
Alphabetic Alpha
Any
Assigned
Bidi_Control Bidi_C
Bidi_Mirrored Bidi_M
Case_Ignorable CI
Cased
Changes_When_Casefolded CWCF
Changes_When_Casemapped CWCM
Changes_When_Lowercased CWL
Changes_When_NFKC_Casefolded CWKCF
Changes_When_Titlecased CWT
Changes_When_Uppercased CWU
Dash
Default_Ignorable_Code_Point DI
Deprecated Dep
Diacritic Dia
Emoji
Emoji_Component EComp
Emoji_Modifier EMod
Emoji_Modifier_Base EBase
Emoji_Presentation EPres
Extended_Pictographic ExtPict
Extender Ext
Grapheme_Base Gr_Base
Grapheme_Extend Gr_Ext
Hex_Digit Hex
IDS_Binary_Operator IDSB
IDS_Trinary_Operator IDST
ID_Continue IDC
ID_Start IDS
Ideographic Ideo
Join_Control Join_C
Logical_Order_Exception LOE
Lowercase Lower
Math
Noncharacter_Code_Point NChar
Pattern_Syntax Pat_Syn
Pattern_White_Space Pat_WS
Quotation_Mark QMark
Radical
Regional_Indicator RI
Sentence_Terminal STerm
Soft_Dotted SD
Terminal_Punctuation Term
Unified_Ideograph UIdeo
Uppercase Upper
Variation_Selector VS
White_Space space
XID_Continue XIDC
XID_Start XIDS`.split(/\s/).map(e=>[fe(e),e])),pi=new Map([["s",w(383)],[w(383),"s"]]),mi=new Map([[w(223),w(7838)],[w(107),w(8490)],[w(229),w(8491)],[w(969),w(8486)]]),ci=new Map([N(453),N(456),N(459),N(498),...Ie(8072,8079),...Ie(8088,8095),...Ie(8104,8111),N(8124),N(8140),N(8188)]),di=new Map([["alnum",g`[\p{Alpha}\p{Nd}]`],["alpha",g`\p{Alpha}`],["ascii",g`\p{ASCII}`],["blank",g`[\p{Zs}\t]`],["cntrl",g`\p{Cc}`],["digit",g`\p{Nd}`],["graph",g`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",g`\p{Lower}`],["print",g`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",g`[\p{P}\p{S}]`],["space",g`\p{space}`],["upper",g`\p{Upper}`],["word",g`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",g`\p{AHex}`]]);function _i(e,r){const t=[];for(let i=e;i<=r;i++)t.push(i);return t}function N(e){const r=w(e);return[r.toLowerCase(),r]}function Ie(e,r){return _i(e,r).map(t=>N(t))}var Dr=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function fi(e,r){const t={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...r};kr(e);const i={accuracy:t.accuracy,asciiWordBoundaries:t.asciiWordBoundaries,avoidSubclass:t.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:ke(t.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};ne(e,gi,i);const n={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},o={currentFlags:n,prevFlags:null,globalFlags:n,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:i.subroutineRefMap};ne(e,hi,o);const a={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return ne(e,Ei,a),e._originMap=o.groupOriginByCopy,e._strategy=i.strategy,e}var gi={AbsenceFunction({node:e,parent:r,replaceWith:t}){const{body:i,kind:n}=e;if(n==="repeater"){const o=k();o.body[0].body.push(z({negate:!0,body:i}),re("Any"));const a=k();a.body[0].body.push(br("greedy",0,1/0,o)),t(A(a,r),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:r,key:t},{flagDirectivesByAlt:i}){const n=e.body.filter(o=>o.kind==="flags");for(let o=t+1;o<r.body.length;o++){const a=r.body[o];ae(i,a,[]).push(...n)}},exit({node:e},{flagDirectivesByAlt:r}){var t;if((t=r.get(e))!=null&&t.length){const i=Vr(r.get(e));if(i){const n=k({flags:i});n.body[0].body=e.body,e.body=[A(n,e)]}}}},Assertion({node:e,parent:r,key:t,container:i,root:n,remove:o,replaceWith:a},u){const{kind:l,negate:p}=e,{asciiWordBoundaries:c,avoidSubclass:m,supportedGNodes:d,wordIsAscii:f}=u;if(l==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${p?"Y":"y"}"`);if(l==="line_end")a(A(z({body:[Z({body:[Pe("string_end")]}),Z({body:[_e(10)]})]}),r));else if(l==="line_start")a(A(V(g`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),r));else if(l==="search_start")if(d.has(e))n.flags.sticky=!0,o();else{const _=i[t-1];if(_&&Ii(_))a(A(z({negate:!0}),r));else{if(m)throw new Error(g`Uses "\G" in a way that requires a subclass`);a(G(Pe("string_start"),r)),u.strategy="clip_search"}}else if(!(l==="string_end"||l==="string_start"))if(l==="string_end_newline")a(A(V(g`(?=\n?\z)`),r));else if(l==="word_boundary"){if(!f&&!c){const _=`(?:(?<=${x})(?!${x})|(?<!${x})(?=${x}))`,h=`(?:(?<=${x})(?=${x})|(?<!${x})(?!${x}))`;a(A(V(p?h:_),r))}}else throw new Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:r}){let{ref:t}=e;typeof t=="string"&&!Le(t)&&(t=Ce(t,r),e.ref=t)},CapturingGroup({node:e},{jsGroupNameMap:r,subroutineRefMap:t}){let{name:i}=e;i&&!Le(i)&&(i=Ce(i,r),e.name=i),t.set(e.number,e),i&&t.set(i,e)},CharacterClassRange({node:e,parent:r,replaceWith:t}){if(r.kind==="intersection"){const i=ce({body:[e]});t(A(i,r),{traverse:!0})}},CharacterSet({node:e,parent:r,replaceWith:t},{accuracy:i,minTargetEs2024:n,digitIsAscii:o,spaceIsAscii:a,wordIsAscii:u}){const{kind:l,negate:p,value:c}=e;if(o&&(l==="digit"||c==="digit")){t(G(Oe("digit",{negate:p}),r));return}if(a&&(l==="space"||c==="space")){t(A(Te(V(ui),p),r));return}if(u&&(l==="word"||c==="word")){t(G(Oe("word",{negate:p}),r));return}if(l==="any")t(G(re("Any"),r));else if(l==="digit")t(G(re("Nd",{negate:p}),r));else if(l!=="dot")if(l==="text_segment"){if(i==="strict")throw new Error(g`Use of "\X" requires non-strict accuracy`);const m="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",d=g`\p{RI}{2}|${m}(?:\u200D${m})*`;t(A(V(g`(?>\r\n|${n?g`\p{RGI_Emoji}`:d}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),r))}else if(l==="hex")t(G(re("AHex",{negate:p}),r));else if(l==="newline")t(A(V(p?`[^
]`:`(?>\r
?|[
\v\f\u2028\u2029])`),r));else if(l==="posix")if(!n&&(c==="graph"||c==="print")){if(i==="strict")throw new Error(`POSIX class "${c}" requires min target ES2024 or non-strict accuracy`);let m={graph:"!-~",print:" -~"}[c];p&&(m=`\0-${w(m.codePointAt(0)-1)}${w(m.codePointAt(2)+1)}-􏿿`),t(A(V(`[${m}]`),r))}else t(A(Te(V(di.get(c)),p),r));else if(l==="property")Ne.has(fe(c))||(e.key="sc");else if(l==="space")t(G(re("space",{negate:p}),r));else if(l==="word")t(A(Te(V(x),p),r));else throw new Error(`Unexpected character set kind "${l}"`)},Directive({node:e,parent:r,root:t,remove:i,replaceWith:n,removeAllPrevSiblings:o,removeAllNextSiblings:a}){const{kind:u,flags:l}=e;if(u==="flags")if(!l.enable&&!l.disable)i();else{const p=k({flags:l});p.body[0].body=a(),n(A(p,r),{traverse:!0})}else if(u==="keep"){const p=t.body[0],m=t.body.length===1&&Ar(p,{type:"Group"})&&p.body[0].body.length===1?p.body[0]:t;if(r.parent!==m||m.body.length>1)throw new Error(g`Uses "\K" in a way that's unsupported`);const d=z({behind:!0});d.body[0].body=o(),n(A(d,r))}else throw new Error(`Unexpected directive kind "${u}"`)},Flags({node:e,parent:r}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(t=>delete e[t]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),r.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;const{enable:r,disable:t}=e.flags;r!=null&&r.extended&&delete r.extended,t!=null&&t.extended&&delete t.extended,r!=null&&r.dotAll&&(t!=null&&t.dotAll)&&delete r.dotAll,r!=null&&r.ignoreCase&&(t!=null&&t.ignoreCase)&&delete r.ignoreCase,r&&!Object.keys(r).length&&delete e.flags.enable,t&&!Object.keys(t).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},r){const{kind:t}=e;t==="lookbehind"&&(r.passedLookbehind=!0)},NamedCallout({node:e,parent:r,replaceWith:t}){const{kind:i}=e;if(i==="fail")t(A(z({negate:!0}),r));else throw new Error(`Unsupported named callout "(*${i.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const r=k();r.body[0].body.push(e.body),e.body=A(r,e)}},Regex:{enter({node:e},{supportedGNodes:r}){const t=[];let i=!1,n=!1;for(const o of e.body)if(o.body.length===1&&o.body[0].kind==="search_start")o.body.pop();else{const a=$r(o.body);a?(i=!0,Array.isArray(a)?t.push(...a):t.push(a)):n=!0}i&&!n&&t.forEach(o=>r.add(o))},exit(e,{accuracy:r,passedLookbehind:t,strategy:i}){if(r==="strict"&&t&&i)throw new Error(g`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:r}){let{ref:t}=e;typeof t=="string"&&!Le(t)&&(t=Ce(t,r),e.ref=t)}},hi={Backreference({node:e},{multiplexCapturesToLeftByRef:r,reffedNodesByReferencer:t}){const{orphan:i,ref:n}=e;i||t.set(e,[...r.get(n).map(({node:o})=>o)])},CapturingGroup:{enter({node:e,parent:r,replaceWith:t,skip:i},{groupOriginByCopy:n,groupsByName:o,multiplexCapturesToLeftByRef:a,openRefs:u,reffedNodesByReferencer:l}){const p=n.get(e);if(p&&u.has(e.number)){const m=G(ur(e.number),r);l.set(m,u.get(e.number)),t(m);return}u.set(e.number,e),a.set(e.number,[]),e.name&&ae(a,e.name,[]);const c=a.get(e.name??e.number);for(let m=0;m<c.length;m++){const d=c[m];if(p===d.node||p&&p===d.origin||e===d.origin){c.splice(m,1);break}}if(a.get(e.number).push({node:e,origin:p}),e.name&&a.get(e.name).push({node:e,origin:p}),e.name){const m=ae(o,e.name,new Map);let d=!1;if(p)d=!0;else for(const f of m.values())if(!f.hasDuplicateNameToRemove){d=!0;break}o.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:d})}},exit({node:e},{openRefs:r}){r.delete(e.number)}},Group:{enter({node:e},r){r.prevFlags=r.currentFlags,e.flags&&(r.currentFlags=de(r.currentFlags,e.flags))},exit(e,r){r.currentFlags=r.prevFlags}},Subroutine({node:e,parent:r,replaceWith:t},i){const{isRecursive:n,ref:o}=e;if(n){let c=r;for(;(c=c.parent)&&!(c.type==="CapturingGroup"&&(c.name===o||c.number===o)););i.reffedNodesByReferencer.set(e,c);return}const a=i.subroutineRefMap.get(o),u=o===0,l=u?ur(0):xr(a,i.groupOriginByCopy,null);let p=l;if(!u){const c=Vr(wi(a,d=>d.type==="Group"&&!!d.flags)),m=c?de(i.globalFlags,c):i.globalFlags;yi(m,i.currentFlags)||(p=k({flags:vi(m)}),p.body[0].body.push(l))}t(A(p,r),{traverse:!u})}},Ei={Backreference({node:e,parent:r,replaceWith:t},i){if(e.orphan){i.highestOrphanBackref=Math.max(i.highestOrphanBackref,e.ref);return}const o=i.reffedNodesByReferencer.get(e).filter(a=>Ai(a,e));if(!o.length)t(A(z({negate:!0}),r));else if(o.length>1){const a=k({atomic:!0,body:o.reverse().map(u=>Z({body:[Re(u.number)]}))});t(A(a,r))}else e.ref=o[0].number},CapturingGroup({node:e},r){e.number=++r.numCapturesToLeft,e.name&&r.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},r){const t=Math.max(r.highestOrphanBackref-r.numCapturesToLeft,0);for(let i=0;i<t;i++){const n=vr();e.body.at(-1).body.push(n)}}},Subroutine({node:e},r){!e.isRecursive||e.ref===0||(e.ref=r.reffedNodesByReferencer.get(e).number)}};function kr(e){ne(e,{"*"({node:r,parent:t}){r.parent=t}})}function yi(e,r){return e.dotAll===r.dotAll&&e.ignoreCase===r.ignoreCase}function Ai(e,r){let t=r;do{if(t.type==="Regex")return!1;if(t.type==="Alternative")continue;if(t===e)return!1;const i=Sr(t.parent);for(const n of i){if(n===t)break;if(n===e||Mr(n,e))return!0}}while(t=t.parent);throw new Error("Unexpected path")}function xr(e,r,t,i){const n=Array.isArray(e)?[]:{};for(const[o,a]of Object.entries(e))o==="parent"?n.parent=Array.isArray(t)?i:t:a&&typeof a=="object"?n[o]=xr(a,r,n,t):(o==="type"&&a==="CapturingGroup"&&r.set(n,r.get(e)??e),n[o]=a);return n}function ur(e){const r=Ir(e);return r.isRecursive=!0,r}function wi(e,r){const t=[];for(;e=e.parent;)(!r||r(e))&&t.push(e);return t}function Ce(e,r){if(r.has(e))return r.get(e);const t=`$${r.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return r.set(e,t),t}function Vr(e){const r=["dotAll","ignoreCase"],t={enable:{},disable:{}};return e.forEach(({flags:i})=>{r.forEach(n=>{var o,a;(o=i.enable)!=null&&o[n]&&(delete t.disable[n],t.enable[n]=!0),(a=i.disable)!=null&&a[n]&&(t.disable[n]=!0)})}),Object.keys(t.enable).length||delete t.enable,Object.keys(t.disable).length||delete t.disable,t.enable||t.disable?t:null}function vi({dotAll:e,ignoreCase:r}){const t={};return(e||r)&&(t.enable={},e&&(t.enable.dotAll=!0),r&&(t.enable.ignoreCase=!0)),(!e||!r)&&(t.disable={},!e&&(t.disable.dotAll=!0),!r&&(t.disable.ignoreCase=!0)),t}function Sr(e){if(!e)throw new Error("Node expected");const{body:r}=e;return Array.isArray(r)?r:r?[r]:null}function $r(e){const r=e.find(t=>t.kind==="search_start"||Ci(t,{negate:!1})||!bi(t));if(!r)return null;if(r.kind==="search_start")return r;if(r.type==="LookaroundAssertion")return r.body[0].body[0];if(r.type==="CapturingGroup"||r.type==="Group"){const t=[];for(const i of r.body){const n=$r(i.body);if(!n)return null;Array.isArray(n)?t.push(...n):t.push(n)}return t}return null}function Mr(e,r){const t=Sr(e)??[];for(const i of t)if(i===r||Mr(i,r))return!0;return!1}function bi({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function Ii(e){const r=["Character","CharacterClass","CharacterSet"];return r.includes(e.type)||e.type==="Quantifier"&&e.min&&r.includes(e.body.type)}function Ci(e,r){const t={negate:null,...r};return e.type==="LookaroundAssertion"&&(t.negate===null||e.negate===t.negate)&&e.body.length===1&&Ar(e.body[0],{type:"Assertion",kind:"search_start"})}function Le(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function V(e,r){const i=wr(e,{...r,unicodePropertyMap:Ne}).body;return i.length>1||i[0].body.length>1?k({body:i}):i[0].body[0]}function Te(e,r){return e.negate=r,e}function G(e,r){return e.parent=r,e}function A(e,r){return kr(e),e.parent=r,e}function Li(e,r){const t=Rr(r),i=ke(t.target,"ES2024"),n=ke(t.target,"ES2025"),o=t.rules.recursionLimit;if(!Number.isInteger(o)||o<2||o>20)throw new Error("Invalid recursionLimit; use 2-20");let a=null,u=null;if(!n){const f=[e.flags.ignoreCase];ne(e,Ti,{getCurrentModI:()=>f.at(-1),popModI(){f.pop()},pushModI(_){f.push(_)},setHasCasedChar(){f.at(-1)?a=!0:u=!0}})}const l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||a)&&!u)};let p=e;const c={accuracy:t.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:p,originMap:e._originMap,recursionLimit:o,useAppliedIgnoreCase:!!(!n&&a&&u),useFlagMods:n,useFlagV:i,verbose:t.verbose};function m(f){return c.lastNode=p,p=f,ai(Pi[f.type],`Unexpected node type "${f.type}"`)(f,c,m)}const d={pattern:e.body.map(m).join("|"),flags:m(e.flags),options:{...e.options}};return i||(delete d.options.force.v,d.options.disable.v=!0,d.options.unicodeSetsPlugin=null),d._captureTransfers=new Map,d._hiddenCaptures=[],c.captureMap.forEach((f,_)=>{f.hidden&&d._hiddenCaptures.push(_),f.transferTo&&ae(d._captureTransfers,f.transferTo,[]).push(_)}),d}var Ti={"*":{enter({node:e},r){if(pr(e)){const t=r.getCurrentModI();r.pushModI(e.flags?de({ignoreCase:t},e.flags).ignoreCase:t)}},exit({node:e},r){pr(e)&&r.popModI()}},Backreference(e,r){r.setHasCasedChar()},Character({node:e},r){Ge(w(e.value))&&r.setHasCasedChar()},CharacterClassRange({node:e,skip:r},t){r(),Nr(e,{firstOnly:!0}).length&&t.setHasCasedChar()},CharacterSet({node:e},r){e.kind==="property"&&Dr.has(e.value)&&r.setHasCasedChar()}},Pi={Alternative({body:e},r,t){return e.map(t).join("")},Assertion({kind:e,negate:r}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return r?g`\B`:g`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},r){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!r.useFlagMods&&r.accuracy==="strict"&&r.currentFlags.ignoreCase&&!r.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,r,t){const{body:i,name:n,number:o}=e,a={ignoreCase:r.currentFlags.ignoreCase},u=r.originMap.get(e);return u&&(a.hidden=!0,o>u.number&&(a.transferTo=u.number)),r.captureMap.set(o,a),`(${n?`?<${n}>`:""}${i.map(t).join("|")})`},Character({value:e},r){const t=w(e),i=Y(e,{escDigit:r.lastNode.type==="Backreference",inCharClass:r.inCharClass,useFlagV:r.useFlagV});if(i!==t)return i;if(r.useAppliedIgnoreCase&&r.currentFlags.ignoreCase&&Ge(t)){const n=Or(t);return r.inCharClass?n.join(""):n.length>1?`[${n.join("")}]`:n[0]}return t},CharacterClass(e,r,t){const{kind:i,negate:n,parent:o}=e;let{body:a}=e;if(i==="intersection"&&!r.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");M.bugFlagVLiteralHyphenIsRange&&r.useFlagV&&a.some(mr)&&(a=[_e(45),...a.filter(p=>!mr(p))]);const u=()=>`[${n?"^":""}${a.map(t).join(i==="intersection"?"&&":"")}]`;if(!r.inCharClass){if((!r.useFlagV||M.bugNestedClassIgnoresNegation)&&!n){const c=a.filter(m=>m.type==="CharacterClass"&&m.kind==="union"&&m.negate);if(c.length){const m=k(),d=m.body[0];return m.parent=o,d.parent=m,a=a.filter(f=>!c.includes(f)),e.body=a,a.length?(e.parent=d,d.body.push(e)):m.body.pop(),c.forEach(f=>{const _=Z({body:[f]});f.parent=_,_.parent=m,m.body.push(_)}),t(m)}}r.inCharClass=!0;const p=u();return r.inCharClass=!1,p}const l=a[0];if(i==="union"&&!n&&l&&((!r.useFlagV||!r.verbose)&&o.kind==="union"&&!(M.bugFlagVLiteralHyphenIsRange&&r.useFlagV)||!r.verbose&&o.kind==="intersection"&&a.length===1&&l.type!=="CharacterClassRange"))return a.map(t).join("");if(!r.useFlagV&&o.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return u()},CharacterClassRange(e,r){const t=e.min.value,i=e.max.value,n={escDigit:!1,inCharClass:!0,useFlagV:r.useFlagV},o=Y(t,n),a=Y(i,n),u=new Set;if(r.useAppliedIgnoreCase&&r.currentFlags.ignoreCase){const l=Nr(e);xi(l).forEach(c=>{u.add(Array.isArray(c)?`${Y(c[0],n)}-${Y(c[1],n)}`:Y(c,n))})}return`${o}-${a}${[...u].join("")}`},CharacterSet({kind:e,negate:r,value:t,key:i},n){if(e==="dot")return n.currentFlags.dotAll?n.appliedGlobalFlags.dotAll||n.useFlagMods?".":"[^]":g`[^\n]`;if(e==="digit")return r?g`\D`:g`\d`;if(e==="property"){if(n.useAppliedIgnoreCase&&n.currentFlags.ignoreCase&&Dr.has(t))throw new Error(`Unicode property "${t}" can't be case-insensitive when other chars have specific case`);return`${r?g`\P`:g`\p`}{${i?`${i}=`:""}${t}}`}if(e==="word")return r?g`\W`:g`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags(e,r){return(r.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")},Group({atomic:e,body:r,flags:t,parent:i},n,o){const a=n.currentFlags;t&&(n.currentFlags=de(a,t));const u=r.map(o).join("|"),l=!n.verbose&&r.length===1&&i.type!=="Quantifier"&&!e&&(!n.useFlagMods||!t)?u:`(?${Vi(e,t,n.useFlagMods)}${u})`;return n.currentFlags=a,l},LookaroundAssertion({body:e,kind:r,negate:t},i,n){return`(?${`${r==="lookahead"?"":"<"}${t?"!":"="}`}${e.map(n).join("|")})`},Quantifier(e,r,t){return t(e.body)+Si(e)},Subroutine({isRecursive:e,ref:r},t){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");const i=t.recursionLimit;return r===0?`(?R=${i})`:g`\g<${r}&R=${i}>`}},Ri=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),Oi=new Set(["-","\\","]","^","["]),Di=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),lr=new Map([[9,g`\t`],[10,g`\n`],[11,g`\v`],[12,g`\f`],[13,g`\r`],[8232,g`\u2028`],[8233,g`\u2029`],[65279,g`\uFEFF`]]),ki=new RegExp("^\\p{Cased}$","u");function Ge(e){return ki.test(e)}function Nr(e,r){const t=!!(r!=null&&r.firstOnly),i=e.min.value,n=e.max.value,o=[];if(i<65&&(n===65535||n>=131071)||i===65536&&n>=131071)return o;for(let a=i;a<=n;a++){const u=w(a);if(!Ge(u))continue;const l=Or(u).filter(p=>{const c=p.codePointAt(0);return c<i||c>n});if(l.length&&(o.push(...l),t))break}return o}function Y(e,{escDigit:r,inCharClass:t,useFlagV:i}){if(lr.has(e))return lr.get(e);if(e<32||e>126&&e<160||e>262143||r&&$i(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const n=t?i?Di:Oi:Ri,o=w(e);return(n.has(o)?"\\":"")+o}function xi(e){const r=e.map(n=>n.codePointAt(0)).sort((n,o)=>n-o),t=[];let i=null;for(let n=0;n<r.length;n++)r[n+1]===r[n]+1?i??(i=r[n]):i===null?t.push(r[n]):(t.push([i,r[n]]),i=null);return t}function Vi(e,r,t){if(e)return">";let i="";if(r&&t){const{enable:n,disable:o}=r;i=(n!=null&&n.ignoreCase?"i":"")+(n!=null&&n.dotAll?"s":"")+(o?"-":"")+(o!=null&&o.ignoreCase?"i":"")+(o!=null&&o.dotAll?"s":"")}return`${i}:`}function Si({kind:e,max:r,min:t}){let i;return!t&&r===1?i="?":!t&&r===1/0?i="*":t===1&&r===1/0?i="+":t===r?i=`{${t}}`:i=`{${t},${r===1/0?"":r}}`,i+{greedy:"",lazy:"?",possessive:"+"}[e]}function pr({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function $i(e){return e>47&&e<58}function mr({type:e,value:r}){return e==="Character"&&r===45}var F,S,X,U,Q,se,xe,B,Mi=(B=class extends RegExp{constructor(t,i,n){var r=(...Do)=>(super(...Do),j(this,se),j(this,F,new Map),j(this,S,null),j(this,X),j(this,U,null),j(this,Q,null),Ee(this,"rawOptions",{}),this);const o=!!(n!=null&&n.lazyCompile);if(t instanceof RegExp){if(n)throw new Error("Cannot provide options when copying a regexp");const a=t;r(a,i),D(this,X,a.source),a instanceof B&&(D(this,F,I(a,F)),D(this,U,I(a,U)),D(this,Q,I(a,Q)),this.rawOptions=a.rawOptions)}else{const a={hiddenCaptures:[],strategy:null,transfers:[],...n};r(o?"":t,i),D(this,X,t),D(this,F,Gi(a.hiddenCaptures,a.transfers)),D(this,Q,a.strategy),this.rawOptions=n??{}}o||D(this,S,this)}get source(){return I(this,X)||"(?:)"}exec(t){if(!I(this,S)){const{lazyCompile:o,...a}=this.rawOptions;D(this,S,new B(I(this,X),this.flags,a))}const i=this.global||this.sticky,n=this.lastIndex;if(I(this,Q)==="clip_search"&&i&&n){this.lastIndex=0;const o=Ae(this,se,xe).call(this,t.slice(n));return o&&(Ni(o,n,t,this.hasIndices),this.lastIndex+=n),o}return Ae(this,se,xe).call(this,t)}},F=new WeakMap,S=new WeakMap,X=new WeakMap,U=new WeakMap,Q=new WeakMap,se=new WeakSet,xe=function(t){I(this,S).lastIndex=this.lastIndex;const i=ze(B.prototype,this,"exec").call(I(this,S),t);if(this.lastIndex=I(this,S).lastIndex,!i||!I(this,F).size)return i;const n=[...i];i.length=1;let o;this.hasIndices&&(o=[...i.indices],i.indices.length=1);const a=[0];for(let u=1;u<n.length;u++){const{hidden:l,transferTo:p}=I(this,F).get(u)??{};if(l?a.push(null):(a.push(i.length),i.push(n[u]),this.hasIndices&&i.indices.push(o[u])),p&&n[u]!==void 0){const c=a[p];if(!c)throw new Error(`Invalid capture transfer to "${c}"`);if(i[c]=n[u],this.hasIndices&&(i.indices[c]=o[u]),i.groups){I(this,U)||D(this,U,Fi(this.source));const m=I(this,U).get(p);m&&(i.groups[m]=n[u],this.hasIndices&&(i.indices.groups[m]=o[u]))}}}return i},B);function Ni(e,r,t,i){if(e.index+=r,e.input=t,i){const n=e.indices;for(let a=0;a<n.length;a++){const u=n[a];u&&(n[a]=[u[0]+r,u[1]+r])}const o=n.groups;o&&Object.keys(o).forEach(a=>{const u=o[a];u&&(o[a]=[u[0]+r,u[1]+r])})}}function Gi(e,r){const t=new Map;for(const i of e)t.set(i,{hidden:!0});for(const[i,n]of r)for(const o of n)ae(t,o,{}).transferTo=i;return t}function Fi(e){const r=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,t=new Map;let i=0,n=0,o;for(;o=r.exec(e);){const{0:a,groups:{capture:u,name:l}}=o;a==="["?i++:i?a==="]"&&i--:u&&(n++,l&&t.set(n,l))}return t}function Ui(e,r){const t=Bi(e,r);return t.options?new Mi(t.pattern,t.flags,t.options):new RegExp(t.pattern,t.flags)}function Bi(e,r){const t=Rr(r),i=wr(e,{flags:t.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:t.rules.captureGroup,singleline:t.rules.singleline},skipBackrefValidation:t.rules.allowOrphanBackrefs,unicodePropertyMap:Ne}),n=fi(i,{accuracy:t.accuracy,asciiWordBoundaries:t.rules.asciiWordBoundaries,avoidSubclass:t.avoidSubclass,bestEffortTarget:t.target}),o=Li(n,t),a=oi(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),u=ti(a.pattern),l=ri(u.pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),p={pattern:l.pattern,flags:`${t.hasIndices?"d":""}${t.global?"g":""}${o.flags}${o.options.disable.v?"u":"v"}`};if(t.avoidSubclass){if(t.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const c=l.hiddenCaptures.sort((_,h)=>_-h),m=Array.from(l.captureTransfers),d=n._strategy,f=p.pattern.length>=t.lazyCompileLength;(c.length||m.length||d||f)&&(p.options={...c.length&&{hiddenCaptures:c},...m.length&&{transfers:m},...d&&{strategy:d},...f&&{lazyCompile:f}})}return p}const he=[{id:"abap",name:"ABAP",import:(()=>s(()=>import("./abap-BdImnpbu.js"),[],import.meta.url))},{id:"actionscript-3",name:"ActionScript",import:(()=>s(()=>import("./actionscript-3-CoDkCxhg.js"),[],import.meta.url))},{id:"ada",name:"Ada",import:(()=>s(()=>import("./ada-bCR0ucgS.js"),[],import.meta.url))},{id:"angular-html",name:"Angular HTML",import:(()=>s(()=>import("./angular-html-DA-rfuFy.js").then(e=>e.f),__vite__mapDeps([0,1,2,3]),import.meta.url))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>s(()=>import("./angular-ts-BrjP3tb8.js"),__vite__mapDeps([4,0,1,2,3,5]),import.meta.url))},{id:"apache",name:"Apache Conf",import:(()=>s(()=>import("./apache-Pmp26Uib.js"),[],import.meta.url))},{id:"apex",name:"Apex",import:(()=>s(()=>import("./apex-D8_7TLub.js"),[],import.meta.url))},{id:"apl",name:"APL",import:(()=>s(()=>import("./apl-CORt7UWP.js"),__vite__mapDeps([6,1,2,3,7,8,9]),import.meta.url))},{id:"applescript",name:"AppleScript",import:(()=>s(()=>import("./applescript-Co6uUVPk.js"),[],import.meta.url))},{id:"ara",name:"Ara",import:(()=>s(()=>import("./ara-BRHolxvo.js"),[],import.meta.url))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>s(()=>import("./asciidoc-Ve4PFQV2.js"),[],import.meta.url))},{id:"asm",name:"Assembly",import:(()=>s(()=>import("./asm-D_Q5rh1f.js"),[],import.meta.url))},{id:"astro",name:"Astro",import:(()=>s(()=>import("./astro-HNnZUWAn.js"),__vite__mapDeps([10,9,2,11,3,12,13]),import.meta.url))},{id:"awk",name:"AWK",import:(()=>s(()=>import("./awk-DMzUqQB5.js"),[],import.meta.url))},{id:"ballerina",name:"Ballerina",import:(()=>s(()=>import("./ballerina-BFfxhgS-.js"),[],import.meta.url))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>s(()=>import("./bat-BkioyH1T.js"),[],import.meta.url))},{id:"beancount",name:"Beancount",import:(()=>s(()=>import("./beancount-k_qm7-4y.js"),[],import.meta.url))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>s(()=>import("./berry-uYugtg8r.js"),[],import.meta.url))},{id:"bibtex",name:"BibTeX",import:(()=>s(()=>import("./bibtex-CHM0blh-.js"),[],import.meta.url))},{id:"bicep",name:"Bicep",import:(()=>s(()=>import("./bicep-Bmn6On1c.js"),[],import.meta.url))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:(()=>s(()=>import("./bird2-BIv1doCn.js"),[],import.meta.url))},{id:"blade",name:"Blade",import:(()=>s(()=>import("./blade-BjGOyj-B.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9]),import.meta.url))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>s(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([17,18]),import.meta.url))},{id:"c",name:"C",import:(()=>s(()=>import("./c-BIGW1oBm.js"),[],import.meta.url))},{id:"c3",name:"C3",import:(()=>s(()=>import("./c3-eo99z4R2.js"),[],import.meta.url))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>s(()=>import("./cadence-Bv_4Rxtq.js"),[],import.meta.url))},{id:"cairo",name:"Cairo",import:(()=>s(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20]),import.meta.url))},{id:"clarity",name:"Clarity",import:(()=>s(()=>import("./clarity-D53aC0YG.js"),[],import.meta.url))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>s(()=>import("./clojure-P80f7IUj.js"),[],import.meta.url))},{id:"cmake",name:"CMake",import:(()=>s(()=>import("./cmake-D1j8_8rp.js"),[],import.meta.url))},{id:"cobol",name:"COBOL",import:(()=>s(()=>import("./cobol-nBiQ_Alo.js"),__vite__mapDeps([21,1,2,3,8]),import.meta.url))},{id:"codeowners",name:"CODEOWNERS",import:(()=>s(()=>import("./codeowners-Bp6g37R7.js"),[],import.meta.url))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>s(()=>import("./codeql-DsOJ9woJ.js"),[],import.meta.url))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>s(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([22,2]),import.meta.url))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>s(()=>import("./common-lisp-Cg-RD9OK.js"),[],import.meta.url))},{id:"coq",name:"Coq",import:(()=>s(()=>import("./coq-DkFqJrB1.js"),[],import.meta.url))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>s(()=>import("./cpp-CofmeUqb.js"),__vite__mapDeps([23,24,25,26,16]),import.meta.url))},{id:"crystal",name:"Crystal",import:(()=>s(()=>import("./crystal-DNxU26gB.js"),__vite__mapDeps([27,1,2,3,16,26,28]),import.meta.url))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>s(()=>import("./csharp-COcwbKMJ.js"),[],import.meta.url))},{id:"css",name:"CSS",import:(()=>s(()=>import("./css-CLj8gQPS.js"),[],import.meta.url))},{id:"csv",name:"CSV",import:(()=>s(()=>import("./csv-fuZLfV_i.js"),[],import.meta.url))},{id:"cue",name:"CUE",import:(()=>s(()=>import("./cue-D82EKSYY.js"),[],import.meta.url))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>s(()=>import("./cypher-COkxafJQ.js"),[],import.meta.url))},{id:"d",name:"D",import:(()=>s(()=>import("./d-85-TOEBH.js"),[],import.meta.url))},{id:"dart",name:"Dart",import:(()=>s(()=>import("./dart-bE4Kk8sk.js"),[],import.meta.url))},{id:"dax",name:"DAX",import:(()=>s(()=>import("./dax-CEL-wOlO.js"),[],import.meta.url))},{id:"desktop",name:"Desktop",import:(()=>s(()=>import("./desktop-BmXAJ9_W.js"),[],import.meta.url))},{id:"diff",name:"Diff",import:(()=>s(()=>import("./diff-D97Zzqfu.js"),[],import.meta.url))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>s(()=>import("./docker-BcOcwvcX.js"),[],import.meta.url))},{id:"dotenv",name:"dotEnv",import:(()=>s(()=>import("./dotenv-Da5cRb03.js"),[],import.meta.url))},{id:"dream-maker",name:"Dream Maker",import:(()=>s(()=>import("./dream-maker-BtqSS_iP.js"),[],import.meta.url))},{id:"edge",name:"Edge",import:(()=>s(()=>import("./edge-FbVlp4U3.js"),__vite__mapDeps([29,11,1,2,3,15]),import.meta.url))},{id:"elixir",name:"Elixir",import:(()=>s(()=>import("./elixir-CkH2-t6x.js"),__vite__mapDeps([30,1,2,3]),import.meta.url))},{id:"elm",name:"Elm",import:(()=>s(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([31,25,26]),import.meta.url))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>s(()=>import("./emacs-lisp-CXvaQtF9.js"),[],import.meta.url))},{id:"erb",name:"ERB",import:(()=>s(()=>import("./erb-BYCe7drp.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>s(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([39,40]),import.meta.url))},{id:"fennel",name:"Fennel",import:(()=>s(()=>import("./fennel-BYunw83y.js"),[],import.meta.url))},{id:"fish",name:"Fish",import:(()=>s(()=>import("./fish-BvzEVeQv.js"),[],import.meta.url))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>s(()=>import("./fluent-C4IJs8-o.js"),[],import.meta.url))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>s(()=>import("./fortran-fixed-form-CkoXwp7k.js"),__vite__mapDeps([41,42]),import.meta.url))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>s(()=>import("./fortran-free-form-BxgE0vQu.js"),[],import.meta.url))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>s(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([43,40]),import.meta.url))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>s(()=>import("./gdresource-BOOCDP_w.js"),__vite__mapDeps([44,45,46]),import.meta.url))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>s(()=>import("./gdscript-C5YyOfLZ.js"),[],import.meta.url))},{id:"gdshader",name:"GDShader",import:(()=>s(()=>import("./gdshader-DkwncUOv.js"),[],import.meta.url))},{id:"genie",name:"Genie",import:(()=>s(()=>import("./genie-D0YGMca9.js"),[],import.meta.url))},{id:"gherkin",name:"Gherkin",import:(()=>s(()=>import("./gherkin-DyxjwDmM.js"),[],import.meta.url))},{id:"git-commit",name:"Git Commit Message",import:(()=>s(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([47,48]),import.meta.url))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>s(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([49,28]),import.meta.url))},{id:"gleam",name:"Gleam",import:(()=>s(()=>import("./gleam-BspZqrRM.js"),[],import.meta.url))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>s(()=>import("./glimmer-js-ByusRIyA.js"),__vite__mapDeps([50,2,11,3,1]),import.meta.url))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>s(()=>import("./glimmer-ts-BfAWNZQY.js"),__vite__mapDeps([51,11,3,2,1]),import.meta.url))},{id:"glsl",name:"GLSL",import:(()=>s(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([25,26]),import.meta.url))},{id:"gn",name:"GN",import:(()=>s(()=>import("./gn-n2N0HUVH.js"),[],import.meta.url))},{id:"gnuplot",name:"Gnuplot",import:(()=>s(()=>import("./gnuplot-DdkO51Og.js"),[],import.meta.url))},{id:"go",name:"Go",import:(()=>s(()=>import("./go-C27-OAKa.js"),[],import.meta.url))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>s(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([35,2,11,36,13]),import.meta.url))},{id:"groovy",name:"Groovy",import:(()=>s(()=>import("./groovy-gcz8RCvz.js"),[],import.meta.url))},{id:"hack",name:"Hack",import:(()=>s(()=>import("./hack-i7_Ulhet.js"),__vite__mapDeps([52,1,2,3,16]),import.meta.url))},{id:"haml",name:"Ruby Haml",import:(()=>s(()=>import("./haml-D5jkg6IW.js"),__vite__mapDeps([34,2,3]),import.meta.url))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>s(()=>import("./handlebars-BpdQsYii.js"),__vite__mapDeps([53,1,2,3,38]),import.meta.url))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>s(()=>import("./haskell-Df6bDoY_.js"),[],import.meta.url))},{id:"haxe",name:"Haxe",import:(()=>s(()=>import("./haxe-CzTSHFRz.js"),[],import.meta.url))},{id:"hcl",name:"HashiCorp HCL",import:(()=>s(()=>import("./hcl-BWvSN4gD.js"),[],import.meta.url))},{id:"hjson",name:"Hjson",import:(()=>s(()=>import("./hjson-D5-asLiD.js"),[],import.meta.url))},{id:"hlsl",name:"HLSL",import:(()=>s(()=>import("./hlsl-D3lLCCz7.js"),[],import.meta.url))},{id:"html",name:"HTML",import:(()=>s(()=>import("./html-pp8916En.js"),__vite__mapDeps([1,2,3]),import.meta.url))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>s(()=>import("./html-derivative-DlHx6ybY.js"),__vite__mapDeps([15,1,2,3]),import.meta.url))},{id:"http",name:"HTTP",import:(()=>s(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13]),import.meta.url))},{id:"hurl",name:"Hurl",import:(()=>s(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56]),import.meta.url))},{id:"hxml",name:"HXML",import:(()=>s(()=>import("./hxml-Bvhsp5Yf.js"),__vite__mapDeps([57,58]),import.meta.url))},{id:"hy",name:"Hy",import:(()=>s(()=>import("./hy-DFXneXwc.js"),[],import.meta.url))},{id:"imba",name:"Imba",import:(()=>s(()=>import("./imba-DGztddWO.js"),[],import.meta.url))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>s(()=>import("./ini-BEwlwnbL.js"),[],import.meta.url))},{id:"java",name:"Java",import:(()=>s(()=>import("./java-CylS5w8V.js"),[],import.meta.url))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>s(()=>import("./javascript-wDzz0qaB.js"),[],import.meta.url))},{id:"jinja",name:"Jinja",import:(()=>s(()=>import("./jinja-f2NsQr07.js"),__vite__mapDeps([59,1,2,3]),import.meta.url))},{id:"jison",name:"Jison",import:(()=>s(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([60,2]),import.meta.url))},{id:"json",name:"JSON",import:(()=>s(()=>import("./json-Cp-IABpG.js"),[],import.meta.url))},{id:"json5",name:"JSON5",import:(()=>s(()=>import("./json5-C9tS-k6U.js"),[],import.meta.url))},{id:"jsonc",name:"JSON with Comments",import:(()=>s(()=>import("./jsonc-Des-eS-w.js"),[],import.meta.url))},{id:"jsonl",name:"JSON Lines",import:(()=>s(()=>import("./jsonl-DcaNXYhu.js"),[],import.meta.url))},{id:"jsonnet",name:"Jsonnet",import:(()=>s(()=>import("./jsonnet-DFQXde-d.js"),[],import.meta.url))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>s(()=>import("./jssm-C2t-YnRu.js"),[],import.meta.url))},{id:"jsx",name:"JSX",import:(()=>s(()=>import("./jsx-g9-lgVsj.js"),[],import.meta.url))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>s(()=>import("./julia-CxzCAyBv.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62]),import.meta.url))},{id:"just",name:"Just",import:(()=>s(()=>import("./just-VxiPbLrw.js"),__vite__mapDeps([63,28,2,11,64,1,3,7,8,16,20,33,34,35,36,13,23,24,25,26,37,38]),import.meta.url))},{id:"kdl",name:"KDL",import:(()=>s(()=>import("./kdl-DV7GczEv.js"),[],import.meta.url))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>s(()=>import("./kotlin-BdnUsdx6.js"),[],import.meta.url))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>s(()=>import("./kusto-wEQ09or8.js"),[],import.meta.url))},{id:"latex",name:"LaTeX",import:(()=>s(()=>import("./latex-CWtU0Tv5.js"),__vite__mapDeps([65,66,62]),import.meta.url))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>s(()=>import("./lean-BZvkOJ9d.js"),[],import.meta.url))},{id:"less",name:"Less",import:(()=>s(()=>import("./less-B1dDrJ26.js"),[],import.meta.url))},{id:"liquid",name:"Liquid",import:(()=>s(()=>import("./liquid-C0sCDyMI.js"),__vite__mapDeps([67,1,2,3,9]),import.meta.url))},{id:"llvm",name:"LLVM IR",import:(()=>s(()=>import("./llvm-DjAJT7YJ.js"),[],import.meta.url))},{id:"log",name:"Log file",import:(()=>s(()=>import("./log-2UxHyX5q.js"),[],import.meta.url))},{id:"logo",name:"Logo",import:(()=>s(()=>import("./logo-BtOb2qkB.js"),[],import.meta.url))},{id:"lua",name:"Lua",import:(()=>s(()=>import("./lua-BaeVxFsk.js"),__vite__mapDeps([37,26]),import.meta.url))},{id:"luau",name:"Luau",import:(()=>s(()=>import("./luau-C-HG3fhB.js"),[],import.meta.url))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>s(()=>import("./make-CHLpvVh8.js"),[],import.meta.url))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>s(()=>import("./markdown-Cvjx9yec.js"),[],import.meta.url))},{id:"marko",name:"Marko",import:(()=>s(()=>import("./marko-DjSrsDqO.js"),__vite__mapDeps([68,3,69,5,11]),import.meta.url))},{id:"matlab",name:"MATLAB",import:(()=>s(()=>import("./matlab-D7o27uSR.js"),[],import.meta.url))},{id:"mdc",name:"MDC",import:(()=>s(()=>import("./mdc-DTYItulj.js"),__vite__mapDeps([70,40,38,15,1,2,3]),import.meta.url))},{id:"mdx",name:"MDX",import:(()=>s(()=>import("./mdx-Cmh6b_Ma.js"),[],import.meta.url))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>s(()=>import("./mermaid-mWjccvbQ.js"),[],import.meta.url))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>s(()=>import("./mipsasm-CKIfxQSi.js"),[],import.meta.url))},{id:"mojo",name:"Mojo",import:(()=>s(()=>import("./mojo-rZm6bMo-.js"),[],import.meta.url))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>s(()=>import("./moonbit-_H4v1dQx.js"),[],import.meta.url))},{id:"move",name:"Move",import:(()=>s(()=>import("./move-IF9eRakj.js"),[],import.meta.url))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>s(()=>import("./narrat-DRg8JJMk.js"),[],import.meta.url))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>s(()=>import("./nextflow-C-mBbutL.js"),__vite__mapDeps([71,72]),import.meta.url))},{id:"nextflow-groovy",name:"Nextflow Groovy",import:(()=>s(()=>import("./nextflow-groovy-vE_lwT2v.js"),[],import.meta.url))},{id:"nginx",name:"Nginx",import:(()=>s(()=>import("./nginx-BpAMiNFr.js"),__vite__mapDeps([73,37,26]),import.meta.url))},{id:"nim",name:"Nim",import:(()=>s(()=>import("./nim-BIad80T-.js"),__vite__mapDeps([74,26,1,2,3,7,8,25,40]),import.meta.url))},{id:"nix",name:"Nix",import:(()=>s(()=>import("./nix-CwoSXNpI.js"),[],import.meta.url))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>s(()=>import("./nushell-Cz2AlsmD.js"),[],import.meta.url))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>s(()=>import("./objective-c-DXmwc3jG.js"),[],import.meta.url))},{id:"objective-cpp",name:"Objective-C++",import:(()=>s(()=>import("./objective-cpp-CLxacb5B.js"),[],import.meta.url))},{id:"ocaml",name:"OCaml",import:(()=>s(()=>import("./ocaml-C0hk2d4L.js"),[],import.meta.url))},{id:"odin",name:"Odin",import:(()=>s(()=>import("./odin-BBf5iR-q.js"),[],import.meta.url))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>s(()=>import("./openscad-C4EeE6gA.js"),[],import.meta.url))},{id:"pascal",name:"Pascal",import:(()=>s(()=>import("./pascal-D93ZcfNL.js"),[],import.meta.url))},{id:"perl",name:"Perl",import:(()=>s(()=>import("./perl-NvoQZIq0.js"),__vite__mapDeps([64,1,2,3,7,8,16]),import.meta.url))},{id:"php",name:"PHP",import:(()=>s(()=>import("./php-R6g_5hLQ.js"),__vite__mapDeps([75,1,2,3,7,8,16,9]),import.meta.url))},{id:"pkl",name:"Pkl",import:(()=>s(()=>import("./pkl-u5AG7uiY.js"),[],import.meta.url))},{id:"plsql",name:"PL/SQL",import:(()=>s(()=>import("./plsql-ChMvpjG-.js"),[],import.meta.url))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>s(()=>import("./po-BTJTHyun.js"),[],import.meta.url))},{id:"polar",name:"Polar",import:(()=>s(()=>import("./polar-C0HS_06l.js"),[],import.meta.url))},{id:"postcss",name:"PostCSS",import:(()=>s(()=>import("./postcss-CXtECtnM.js"),[],import.meta.url))},{id:"powerquery",name:"PowerQuery",import:(()=>s(()=>import("./powerquery-CEu0bR-o.js"),[],import.meta.url))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>s(()=>import("./powershell-Dpen1YoG.js"),[],import.meta.url))},{id:"prisma",name:"Prisma",import:(()=>s(()=>import("./prisma-Dd19v3D-.js"),[],import.meta.url))},{id:"prolog",name:"Prolog",import:(()=>s(()=>import("./prolog-CbFg5uaA.js"),[],import.meta.url))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>s(()=>import("./proto-C7zT0LnQ.js"),[],import.meta.url))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>s(()=>import("./pug-DKIMFp6K.js"),__vite__mapDeps([76,2,3,1]),import.meta.url))},{id:"puppet",name:"Puppet",import:(()=>s(()=>import("./puppet-BMWR74SV.js"),[],import.meta.url))},{id:"purescript",name:"PureScript",import:(()=>s(()=>import("./purescript-CklMAg4u.js"),[],import.meta.url))},{id:"python",name:"Python",aliases:["py"],import:(()=>s(()=>import("./python-B6aJPvgy.js"),[],import.meta.url))},{id:"qml",name:"QML",import:(()=>s(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([77,2]),import.meta.url))},{id:"qmldir",name:"QML Directory",import:(()=>s(()=>import("./qmldir-C8lEn-DE.js"),[],import.meta.url))},{id:"qss",name:"Qt Style Sheets",import:(()=>s(()=>import("./qss-IeuSbFQv.js"),[],import.meta.url))},{id:"r",name:"R",import:(()=>s(()=>import("./r-Dspwwk_N.js"),[],import.meta.url))},{id:"racket",name:"Racket",import:(()=>s(()=>import("./racket-BqYA7rlc.js"),[],import.meta.url))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>s(()=>import("./raku-DXvB9xmW.js"),[],import.meta.url))},{id:"razor",name:"ASP.NET Razor",import:(()=>s(()=>import("./razor-BDqjjVU7.js"),__vite__mapDeps([78,1,2,3,79]),import.meta.url))},{id:"reg",name:"Windows Registry Script",import:(()=>s(()=>import("./reg-C-SQnVFl.js"),[],import.meta.url))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>s(()=>import("./regexp-CDVJQ6XC.js"),[],import.meta.url))},{id:"rel",name:"Rel",import:(()=>s(()=>import("./rel-C3B-1QV4.js"),[],import.meta.url))},{id:"riscv",name:"RISC-V",import:(()=>s(()=>import("./riscv-BM1_JUlF.js"),[],import.meta.url))},{id:"ron",name:"RON",import:(()=>s(()=>import("./ron-D8l8udqQ.js"),[],import.meta.url))},{id:"rosmsg",name:"ROS Interface",import:(()=>s(()=>import("./rosmsg-BJDFO7_C.js"),[],import.meta.url))},{id:"rst",name:"reStructuredText",import:(()=>s(()=>import("./rst-CRjBmOyv.js"),__vite__mapDeps([80,15,1,2,3,23,24,25,26,16,20,28,38,81,33,34,7,8,35,11,36,13,37]),import.meta.url))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>s(()=>import("./ruby-Wjq7vjNf.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>s(()=>import("./rust-B1yitclQ.js"),[],import.meta.url))},{id:"sas",name:"SAS",import:(()=>s(()=>import("./sas-cz2c8ADy.js"),__vite__mapDeps([82,16]),import.meta.url))},{id:"sass",name:"Sass",import:(()=>s(()=>import("./sass-Cj5Yp3dK.js"),[],import.meta.url))},{id:"scala",name:"Scala",import:(()=>s(()=>import("./scala-C151Ov-r.js"),[],import.meta.url))},{id:"scheme",name:"Scheme",import:(()=>s(()=>import("./scheme-C98Dy4si.js"),[],import.meta.url))},{id:"scss",name:"SCSS",import:(()=>s(()=>import("./scss-D5BDwBP9.js"),__vite__mapDeps([5,3]),import.meta.url))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>s(()=>import("./sdbl-DVxCFoDh.js"),[],import.meta.url))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>s(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([83,84]),import.meta.url))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>s(()=>import("./shellscript-Yzrsuije.js"),[],import.meta.url))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>s(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([85,28]),import.meta.url))},{id:"smalltalk",name:"Smalltalk",import:(()=>s(()=>import("./smalltalk-BERRCDM3.js"),[],import.meta.url))},{id:"solidity",name:"Solidity",import:(()=>s(()=>import("./solidity-rGO070M0.js"),[],import.meta.url))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>s(()=>import("./soy-8wufbnw4.js"),__vite__mapDeps([86,1,2,3]),import.meta.url))},{id:"sparql",name:"SPARQL",import:(()=>s(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([87,88]),import.meta.url))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>s(()=>import("./splunk-BtCnVYZw.js"),[],import.meta.url))},{id:"sql",name:"SQL",import:(()=>s(()=>import("./sql-BLtJtn59.js"),[],import.meta.url))},{id:"ssh-config",name:"SSH Config",import:(()=>s(()=>import("./ssh-config-_ykCGR6B.js"),[],import.meta.url))},{id:"stata",name:"Stata",import:(()=>s(()=>import("./stata-BH5u7GGu.js"),__vite__mapDeps([89,16]),import.meta.url))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>s(()=>import("./stylus-BEDo0Tqx.js"),[],import.meta.url))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>s(()=>import("./surrealql-Bq5Q-fJD.js"),__vite__mapDeps([90,2]),import.meta.url))},{id:"svelte",name:"Svelte",import:(()=>s(()=>import("./svelte-Cy7k_4gC.js"),__vite__mapDeps([91,2,11,3,12]),import.meta.url))},{id:"swift",name:"Swift",import:(()=>s(()=>import("./swift-D82vCrfD.js"),[],import.meta.url))},{id:"system-verilog",name:"SystemVerilog",import:(()=>s(()=>import("./system-verilog-CnnmHF94.js"),[],import.meta.url))},{id:"systemd",name:"Systemd Units",import:(()=>s(()=>import("./systemd-4A_iFExJ.js"),[],import.meta.url))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>s(()=>import("./talonscript-CkByrt1z.js"),[],import.meta.url))},{id:"tasl",name:"Tasl",import:(()=>s(()=>import("./tasl-QIJgUcNo.js"),[],import.meta.url))},{id:"tcl",name:"Tcl",import:(()=>s(()=>import("./tcl-dwOrl1Do.js"),[],import.meta.url))},{id:"templ",name:"Templ",import:(()=>s(()=>import("./templ-DhtptRzy.js"),__vite__mapDeps([92,93,2,3]),import.meta.url))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>s(()=>import("./terraform-BETggiCN.js"),[],import.meta.url))},{id:"tex",name:"TeX",import:(()=>s(()=>import("./tex-idrVyKtj.js"),__vite__mapDeps([66,62]),import.meta.url))},{id:"toml",name:"TOML",import:(()=>s(()=>import("./toml-vGWfd6FD.js"),[],import.meta.url))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>s(()=>import("./ts-tags-DQrlYJgV.js"),__vite__mapDeps([94,11,3,2,25,26,1,16,7,8]),import.meta.url))},{id:"tsv",name:"TSV",import:(()=>s(()=>import("./tsv-B_m7g4N7.js"),[],import.meta.url))},{id:"tsx",name:"TSX",import:(()=>s(()=>import("./tsx-COt5Ahok.js"),[],import.meta.url))},{id:"turtle",name:"Turtle",import:(()=>s(()=>import("./turtle-BsS91CYL.js"),[],import.meta.url))},{id:"twig",name:"Twig",import:(()=>s(()=>import("./twig-xg9kU7Mw.js"),__vite__mapDeps([95,3,2,5,75,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>s(()=>import("./typescript-BPQ3VLAy.js"),[],import.meta.url))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>s(()=>import("./typespec-CAFt9gP4.js"),[],import.meta.url))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>s(()=>import("./typst-DHCkPAjA.js"),[],import.meta.url))},{id:"v",name:"V",import:(()=>s(()=>import("./v-BcVCzyr7.js"),[],import.meta.url))},{id:"vala",name:"Vala",import:(()=>s(()=>import("./vala-CsfeWuGM.js"),[],import.meta.url))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>s(()=>import("./vb-D17OF-Vu.js"),[],import.meta.url))},{id:"verilog",name:"Verilog",import:(()=>s(()=>import("./verilog-BQ8w6xss.js"),[],import.meta.url))},{id:"vhdl",name:"VHDL",import:(()=>s(()=>import("./vhdl-CeAyd5Ju.js"),[],import.meta.url))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>s(()=>import("./viml-CJc9bBzg.js"),[],import.meta.url))},{id:"vue",name:"Vue",import:(()=>s(()=>import("./vue-D2xRrEX4.js"),__vite__mapDeps([96,3,2,11,9,1,15]),import.meta.url))},{id:"vue-html",name:"Vue HTML",import:(()=>s(()=>import("./vue-html-AaS7Mt5G.js"),__vite__mapDeps([97,2]),import.meta.url))},{id:"vue-vine",name:"Vue Vine",import:(()=>s(()=>import("./vue-vine-BoDAl6tE.js"),__vite__mapDeps([98,3,5,69,99,12,2]),import.meta.url))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>s(()=>import("./vyper-CDx5xZoG.js"),[],import.meta.url))},{id:"wasm",name:"WebAssembly",import:(()=>s(()=>import("./wasm-MzD3tlZU.js"),[],import.meta.url))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>s(()=>import("./wenyan-BV7otONQ.js"),[],import.meta.url))},{id:"wgsl",name:"WGSL",import:(()=>s(()=>import("./wgsl-Dx-B1_4e.js"),[],import.meta.url))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>s(()=>import("./wikitext-BhOHFoWU.js"),[],import.meta.url))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>s(()=>import("./wit-5i3qLPDT.js"),[],import.meta.url))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>s(()=>import("./wolfram-lXgVvXCa.js"),[],import.meta.url))},{id:"xml",name:"XML",import:(()=>s(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8]),import.meta.url))},{id:"xsl",name:"XSL",import:(()=>s(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([100,7,8]),import.meta.url))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>s(()=>import("./yaml-Buea-lGh.js"),[],import.meta.url))},{id:"zenscript",name:"ZenScript",import:(()=>s(()=>import("./zenscript-DVFEvuxE.js"),[],import.meta.url))},{id:"zig",name:"Zig",import:(()=>s(()=>import("./zig-VOosw3JB.js"),[],import.meta.url))}],Fe=Object.fromEntries(he.map(e=>[e.id,e.import])),Ue=Object.fromEntries(he.flatMap(e=>{var r;return((r=e.aliases)==null?void 0:r.map(t=>[t,e.import]))||[]})),Be={...Fe,...Ue};var Hi=dr({bundledLanguages:()=>Be,bundledLanguagesAlias:()=>Ue,bundledLanguagesBase:()=>Fe,bundledLanguagesInfo:()=>he,bundledThemes:()=>Ve,bundledThemesInfo:()=>_r,codeToHast:()=>Fr,codeToHtml:()=>Gr,codeToTokens:()=>Ur,codeToTokensBase:()=>Br,codeToTokensWithThemes:()=>Hr,createHighlighter:()=>He,getLastGrammarState:()=>Wr,getSingletonHighlighter:()=>jr});const He=et({langs:Be,themes:Ve,engine:()=>(0,rt.createOnigurumaEngine)(s(()=>import("./wasm-CG6Dc4jp.js"),[],import.meta.url))}),{codeToHtml:Gr,codeToHast:Fr,codeToTokens:Ur,codeToTokensBase:Br,codeToTokensWithThemes:Hr,getSingletonHighlighter:jr,getLastGrammarState:Wr}=Yr(He,{guessEmbeddedLanguages:tt}),cr=4294967295;var ji=class{constructor(e,r={}){Ee(this,"regexps");this.patterns=e,this.options=r;const{forgiving:t=!1,cache:i,regexConstructor:n}=r;if(!n)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(o=>{if(typeof o!="string")return o;const a=i==null?void 0:i.get(o);if(a){if(a instanceof RegExp)return a;if(t)return null;throw a}try{const u=n(o);return i==null||i.set(o,u),u}catch(u){if(i==null||i.set(o,u),t)return null;throw u}})}findNextMatchSync(e,r,t){const i=typeof e=="string"?e:e.content,n=[];function o(a,u,l=0){return{index:a,captureIndices:u.indices.map(p=>p==null?{start:cr,end:cr,length:0}:{start:p[0]+l,end:p[1]+l,length:p[1]-p[0]})}}for(let a=0;a<this.regexps.length;a++){const u=this.regexps[a];if(u)try{u.lastIndex=r;const l=u.exec(i);if(!l)continue;if(l.index===r)return o(a,l,0);n.push([a,l,0])}catch(l){if(this.options.forgiving)continue;throw l}}if(n.length){const a=Math.min(...n.map(u=>u[1].index));for(const[u,l,p]of n)if(l.index===a)return o(u,l,p)}return null}};function zr(e,r){return Ui(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...r})}function Wi(e={}){const r=Object.assign({target:"auto",cache:new Map},e);return r.regexConstructor||(r.regexConstructor=t=>zr(t,{target:r.target})),{createScanner(t){return new ji(t,r)},createString(t){return{content:t}}}}var zi=dr({bundledLanguages:()=>Be,bundledLanguagesAlias:()=>Ue,bundledLanguagesBase:()=>Fe,bundledLanguagesInfo:()=>he,bundledThemes:()=>Ve,bundledThemesInfo:()=>_r,codeToHast:()=>Fr,codeToHtml:()=>Gr,codeToTokens:()=>Ur,codeToTokensBase:()=>Br,codeToTokensWithThemes:()=>Hr,createHighlighter:()=>He,createJavaScriptRegexEngine:()=>Wi,createOnigurumaEngine:()=>nt,defaultJavaScriptRegexConstructor:()=>zr,getLastGrammarState:()=>Wr,getSingletonHighlighter:()=>jr,loadWasm:()=>ot});it(zi,Hi);export{Ji as ShikiError,Ki as addClassToHast,Yi as applyColorReplacements,Be as bundledLanguages,Ue as bundledLanguagesAlias,Fe as bundledLanguagesBase,he as bundledLanguagesInfo,Ve as bundledThemes,_r as bundledThemesInfo,Fr as codeToHast,Gr as codeToHtml,Ur as codeToTokens,Br as codeToTokensBase,Hr as codeToTokensWithThemes,et as createBundledHighlighter,eo as createCssVariablesTheme,He as createHighlighter,ro as createHighlighterCore,to as createHighlighterCoreSync,Wi as createJavaScriptRegexEngine,nt as createOnigurumaEngine,io as createPositionConverter,oo as createShikiInternal,no as createShikiInternalSync,ao as createShikiPrimitive,so as createShikiPrimitiveAsync,Yr as createSingletonShorthands,zr as defaultJavaScriptRegexConstructor,uo as flatTokenVariants,Wr as getLastGrammarState,jr as getSingletonHighlighter,lo as getSingletonHighlighterCore,po as getTokenStyleObject,tt as guessEmbeddedLanguages,mo as hastToHtml,co as isNoneTheme,_o as isPlainLang,fo as isSpecialLang,go as isSpecialTheme,ot as loadWasm,ho as makeSingletonHighlighter,Eo as makeSingletonHighlighterCore,yo as normalizeGetter,Ao as normalizeTheme,wo as resolveColorReplacements,vo as splitLines,bo as splitToken,Io as splitTokens,Co as stringifyTokenStyle,Lo as toArray,To as tokenizeAnsiWithTheme,Po as tokenizeWithTheme,Ro as tokensToHast,Oo as transformerDecorations};
