1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[29306],{14442:(e,t)=>{t.read=function(e,t,r,n,i){var a,s,o=8*i-n-1,l=(1<<o)-1,u=l>>1,c=-7,h=r?i-1:0,p=r?-1:1,d=e[t+h];for(h+=p,a=d&(1<<-c)-1,d>>=-c,c+=o;c>0;a=256*a+e[t+h],h+=p,c-=8);for(s=a&(1<<-c)-1,a>>=-c,c+=n;c>0;s=256*s+e[t+h],h+=p,c-=8);if(0===a)a=1-u;else{if(a===l)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n),a-=u}return(d?-1:1)*s*Math.pow(2,a-n)},t.write=function(e,t,r,n,i,a){var s,o,l,u=8*a-i-1,c=(1<<u)-1,h=c>>1,p=5960464477539062e-23*(23===i),d=n?0:a-1,f=n?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(o=+!!isNaN(t),s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+h>=1?t+=p/l:t+=p*Math.pow(2,1-h),t*l>=2&&(s++,l/=2),s+h>=c?(o=0,s=c):s+h>=1?(o=(t*l-1)*Math.pow(2,i),s+=h):(o=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[r+d]=255&o,d+=f,o/=256,i-=8);for(s=s<<i|o,u+=i;u>0;e[r+d]=255&s,d+=f,s/=256,u-=8);e[r+d-f]|=128*m}},29306:(e,t,r)=>{"use strict";let n,i;r.r(t),r.d(t,{CodeBlock:()=>n5});var a=r(76750),s=r(71500),o=r(47808);let l=[{id:"abap",name:"ABAP",import:()=>r.e(41789).then(r.bind(r,41789))},{id:"actionscript-3",name:"ActionScript",import:()=>r.e(48540).then(r.bind(r,48540))},{id:"ada",name:"Ada",import:()=>r.e(223).then(r.bind(r,223))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.all([r.e(10858),r.e(56238),r.e(73916),r.e(10335)]).then(r.bind(r,10335))},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.all([r.e(10858),r.e(19694),r.e(56238),r.e(73916),r.e(85471),r.e(66970)]).then(r.bind(r,84847))},{id:"apache",name:"Apache Conf",import:()=>r.e(16357).then(r.bind(r,16357))},{id:"apex",name:"Apex",import:()=>r.e(28519).then(r.bind(r,28519))},{id:"apl",name:"APL",import:()=>Promise.all([r.e(10858),r.e(56238),r.e(73916),r.e(56747),r.e(16886)]).then(r.bind(r,16886))},{id:"applescript",name:"AppleScript",import:()=>r.e(58386).then(r.bind(r,58386))},{id:"ara",name:"Ara",import:()=>r.e(32873).then(r.bind(r,32873))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>r.e(66998).then(r.bind(r,66998))},{id:"asm",name:"Assembly",import:()=>r.e(75998).then(r.bind(r,53617))},{id:"astro",name:"Astro",import:()=>Promise.all([r.e(10858),r.e(4788),r.e(58982),r.e(56238),r.e(61414)]).then(r.bind(r,61414))},{id:"awk",name:"AWK",import:()=>r.e(70220).then(r.bind(r,70220))},{id:"ballerina",name:"Ballerina",import:()=>r.e(39571).then(r.bind(r,39571))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>r.e(56306).then(r.bind(r,56306))},{id:"beancount",name:"Beancount",import:()=>r.e(8568).then(r.bind(r,8568))},{id:"berry",name:"Berry",aliases:["be"],import:()=>r.e(77467).then(r.bind(r,77467))},{id:"bibtex",name:"BibTeX",import:()=>r.e(76681).then(r.bind(r,76681))},{id:"bicep",name:"Bicep",import:()=>r.e(75182).then(r.bind(r,75182))},{id:"blade",name:"Blade",import:()=>Promise.all([r.e(10858),r.e(56238),r.e(73916),r.e(56747),r.e(38879),r.e(24133)]).then(r.bind(r,24133))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>r.e(14264).then(r.bind(r,14264))},{id:"c",name:"C",import:()=>r.e(74024).then(r.bind(r,74024))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>r.e(79370).then(r.bind(r,79370))},{id:"cairo",name:"Cairo",import:()=>Promise.all([r.e(20821),r.e(7383)]).then(r.bind(r,7383))},{id:"clarity",name:"Clarity",import:()=>r.e(42215).then(r.bind(r,42215))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>r.e(15175).then(r.bind(r,15175))},{id:"cmake",name:"CMake",import:()=>r.e(14498).then(r.bind(r,14498))},{id:"cobol",name:"COBOL",import:()=>Promise.all([r.e(10858),r.e(56238),r.e(73916),r.e(56747),r.e(5922)]).then(r.bind(r,5922))},{id:"codeowners",name:"CODEOWNERS",import:()=>r.e(24748).then(r.bind(r,24748))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>r.e(45915).then(r.bind(r,45915))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.all([r.e(10858),r.e(47631)]).then(r.bind(r,47631))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>r.e(30275).then(r.bind(r,30275))},{id:"coq",name:"Coq",import:()=>r.e(75848).then(r.bind(r,75848))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.all([r.e(78071),r.e(68172),r.e(38879),r.e(74024),r.e(41870)]).then(r.bind(r,13520))},{id:"crystal",name:"Crystal",import:()=>Promise.all([r.e(10858),r.e(56238),r.e(73916),r.e(38879),r.e(74024),r.e(33576),r.e(82093)]).then(r.bind(r,82093))}
1,{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>r.e(93634).then(r.bind(r,93634))},{id:"css",name:"CSS",import:()=>r.e(56238).then(r.bind(r,56238))},{id:"csv",name:"CSV",import:()=>r.e(4643).then(r.bind(r,4643))},{id:"cue",name:"CUE",import:()=>r.e(36386).then(r.bind(r,36386))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>r.e(53894).then(r.bind(r,53894))},{id:"d",name:"D",import:()=>r.e(25391).then(r.bind(r,25391))},{id:"dart",name:"Dart",import:()=>r.e(75184).then(r.bind(r,75184))},{id:"dax",name:"DAX",import:()=>r.e(11940).then(r.bind(r,11940))},{id:"desktop",name:"Desktop",import:()=>r.e(24275).then(r.bind(r,24275))},{id:"diff",name:"Diff",import:()=>r.e(40894).then(r.bind(r,40894))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>r.e(45159).then(r.bind(r,45159))},{id:"dotenv",name:"dotEnv",import:()=>r.e(20021).then(r.bind(r,20021))},{id:"dream-maker",name:"Dream Maker",import:()=>r.e(70113).then(r.bind(r,70113))},{id:"edge",name:"Edge",import:()=>Promise.all([r.e(10858),r.e(4788),r.e(56238),r.e(73916),r.e(84540)]).then(r.bind(r,84540))},{id:"elixir",name:"Elixir",import:()=>Promise.all([r.e(10858),r.e(56238),r.e(73916),r.e(31666)]).then(r.bind(r,31666))},{id:"elm",name:"Elm",import:()=>Promise.all([r.e(74024),r.e(71727)]).then(r.bind(r,71727))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>r.e(70260).then(r.bind(r,54861))},{id:"erb",name:"ERB",import:()=>Promise.all([r.e(10858),r.e(4788),r.e(58982),r.e(78314),r.e(78071),r.e(68172),r.e(56238),r.e(73916),r.e(56747),r.e(38879),r.e(74024),r.e(33576),r.e(37160),r.e(73760),r.e(40870)]).then(r.bind(r,40870))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>Promise.all([r.e(63088),r.e(93950)]).then(r.bind(r,93950))},{id:"fennel",name:"Fennel",import:()=>r.e(79247).then(r.bind(r,79247))},{id:"fish",name:"Fish",import:()=>r.e(40949).then(r.bind(r,40949))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>r.e(7085).then(r.bind(r,7085))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.all([r.e(39215),r.e(1885)]).then(r.bind(r,1885))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>r.e(39215).then(r.bind(r,39215))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.all([r.e(63088),r.e(80029)]).then(r.bind(r,80029))},{id:"gdresource",name:"GDResource",import:()=>r.e(18998).then(r.bind(r,18998))},{id:"gdscript",name:"GDScript",import:()=>r.e(40279).then(r.bind(r,40279))},{id:"gdshader",name:"GDShader",import:()=>r.e(77809).then(r.bind(r,77809))},{id:"genie",name:"Genie",import:()=>r.e(41015).then(r.bind(r,41015))},{id:"gherkin",name:"Gherkin",import:()=>r.e(61617).then(r.bind(r,61617))},{id:"git-commit",name:"Git Commit Message",import:()=>r.e(75009).then(r.bind(r,75009))},{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.all([r.e(33576),r.e(13986)]).then(r.bind(r,13986))},{id:"gleam",name:"Gleam",import:()=>r.e(31831).then(r.bind(r,31831))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.all([r.e(10858),r.e(4788),r.e(56238),r.e(73916),r.e(40968)]).then(r.bind(r,40968))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.all([r.e(10858),r.e(4788),r.e(56238),r.e(73916),r.e(92410)]).then(r.bind(r,92410))},{id:"glsl",name:"GLSL",import:()=>Promise.all([r.e(74024),r.e(29516)]).then(r.bind(r,7135))},{id:"gnuplot",name:"Gnuplot",import:()=>r.e(27554).then(r.bind(r,27554))},{id:"go",name:"Go",import:()=>r.e(7473).then(r.bind(r,52235))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.all([r.e(10858),r.e(4788),r.e(58982),r.e(78314),r.e(37160)]).then(r.bind(r,37160))},{id:"groovy",name:"Groovy",import:()=>r.e(53053).then(r.bind(r,53053))},{id:"hack",name:"Hack",import:()=>Promise.all([r.e(10858),r.e(56238),r.e(73916),r.e(38879),r.e(89592)]).then(r.bind(r,89592))},{id:"haml",name:"Ruby Haml",import:()=>Promise.all([r.e(10858),r.e(56238),r.e(55829)]).then(r.bind(r,55829))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.all([r.e(10858),r.e(56238),r.e(73916),r.e(57575)]).then(r.bind(r,57575))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>r.e(79039).then(r.bind(r,79039))},{id:"haxe",name:"Haxe",import:()=>r.e(10375).then(r.bind(r,10375))},{id:"hcl",name:"HashiCorp HCL",import:()=>r.e(75310).then(r.bind(r,75310))}
1,{id:"hjson",name:"Hjson",import:()=>r.e(78821).then(r.bind(r,78821))},{id:"hlsl",name:"HLSL",import:()=>r.e(74066).then(r.bind(r,74066))},{id:"html",name:"HTML",import:()=>Promise.all([r.e(10858),r.e(56238),r.e(73916)]).then(r.bind(r,73916))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.all([r.e(10858),r.e(56238),r.e(73916),r.e(4144)]).then(r.bind(r,4144))},{id:"http",name:"HTTP",import:()=>Promise.all([r.e(10858),r.e(4788),r.e(58982),r.e(78314),r.e(56747),r.e(33576),r.e(37160),r.e(95499)]).then(r.bind(r,95499))},{id:"hurl",name:"Hurl",import:()=>Promise.all([r.e(10858),r.e(4788),r.e(58982),r.e(78314),r.e(56747),r.e(37160),r.e(45512)]).then(r.bind(r,45512))},{id:"hxml",name:"HXML",import:()=>r.e(70528).then(r.bind(r,70528))},{id:"hy",name:"Hy",import:()=>r.e(4338).then(r.bind(r,4338))},{id:"imba",name:"Imba",import:()=>r.e(37506).then(r.bind(r,37506))},{id:"ini",name:"INI",aliases:["properties"],import:()=>r.e(91581).then(r.bind(r,91581))},{id:"java",name:"Java",import:()=>r.e(56747).then(r.bind(r,56747))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>r.e(10858).then(r.bind(r,35426))},{id:"jinja",name:"Jinja",import:()=>Promise.all([r.e(10858),r.e(56238),r.e(73916),r.e(37105)]).then(r.bind(r,37105))},{id:"jison",name:"Jison",import:()=>Promise.all([r.e(10858),r.e(63738)]).then(r.bind(r,63738))},{id:"json",name:"JSON",import:()=>r.e(65245).then(r.bind(r,65245))},{id:"json5",name:"JSON5",import:()=>r.e(32396).then(r.bind(r,32396))},{id:"jsonc",name:"JSON with Comments",import:()=>r.e(81890).then(r.bind(r,81890))},{id:"jsonl",name:"JSON Lines",import:()=>r.e(62533).then(r.bind(r,62533))},{id:"jsonnet",name:"Jsonnet",import:()=>r.e(70412).then(r.bind(r,70412))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>r.e(89906).then(r.bind(r,89906))},{id:"jsx",name:"JSX",import:()=>r.e(78314).then(r.bind(r,20404))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.all([r.e(10858),r.e(78071),r.e(68172),r.e(38879),r.e(74024),r.e(20821),r.e(45033),r.e(66027)]).then(r.bind(r,34992))},{id:"kdl",name:"KDL",import:()=>r.e(70248).then(r.bind(r,70248))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>r.e(3988).then(r.bind(r,3988))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>r.e(96191).then(r.bind(r,96191))},{id:"latex",name:"LaTeX",import:()=>Promise.all([r.e(45033),r.e(57135)]).then(r.bind(r,57135))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>r.e(15555).then(r.bind(r,15555))},{id:"less",name:"Less",import:()=>r.e(55672).then(r.bind(r,55672))},{id:"liquid",name:"Liquid",import:()=>Promise.all([r.e(10858),r.e(56238),r.e(73916),r.e(3915)]).then(r.bind(r,3915))},{id:"llvm",name:"LLVM IR",import:()=>r.e(65756).then(r.bind(r,65756))},{id:"log",name:"Log file",import:()=>r.e(2061).then(r.bind(r,2061))},{id:"logo",name:"Logo",import:()=>r.e(58990).then(r.bind(r,58990))},{id:"lua",name:"Lua",import:()=>Promise.all([r.e(74024),r.e(42569)]).then(r.bind(r,42569))},{id:"luau",name:"Luau",import:()=>r.e(59288).then(r.bind(r,59288))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>r.e(74085).then(r.bind(r,74085))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>r.e(63088).then(r.bind(r,63088))},{id:"marko",name:"Marko",import:()=>Promise.all([r.e(4788),r.e(56238),r.e(85471),r.e(55672),r.e(18757)]).then(r.bind(r,18757))},{id:"matlab",name:"MATLAB",import:()=>r.e(66696).then(r.bind(r,66696))},{id:"mdc",name:"MDC",import:()=>Promise.all([r.e(10858),r.e(56238),r.e(73916),r.e(63088),r.e(83457)]).then(r.bind(r,83457))},{id:"mdx",name:"MDX",import:()=>r.e(9650).then(r.bind(r,9650))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>r.e(52522).then(r.bind(r,52522))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>r.e(8997).then(r.bind(r,8997))},{id:"mojo",name:"Mojo",import:()=>r.e(46794).then(r.bind(r,46794))},{id:"move",name:"Move",import:()=>r.e(19668).then(r.bind(r,19668))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>r.e(96207).then(r.bind(r,96207))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>r.e(15536).then(r.bind(r,15536))},{id:"nginx",name:"Nginx",import:()=>Promise.all([r.e(74024),r.e(48879)]).then(r.bind(r,48879))},{id:"nim",name:"Nim",import:()=>Promise.all([r.e(10858),r.e(56238),r.e(73916),r.e(56747),r.e(74024),r.e(63088),r.e(72367)]).then(r.bind(r,72367))},{id:"nix",name:"Nix",import:()=>r.e(57800).then(r.bind(r,57800))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>r.e(81368).then(r.bind(r,81368))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>r.e(27018).then(r.bind(r,27018))},{id:"objective-cpp",name:"Objective-C++",import:()=>r.e(95486).then(r.bind(r,96962))},{id:"ocaml",name:"OCaml",import:()=>r.e(3251).then(r.bind(r,3251))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>r.e(93490).then(r.bind(r,93490))},{id:"pascal",name:"Pascal",import:()=>r.e(21311).then(r.bind(r,21311))},{id:"perl",name:"Perl",import:()=>Promise.all([r.e(10858),r.e(56238),r.e(73916),r.e(56747),r.e(38879),r.e(76544)]).then(r.bind(r,76544))},{id:"php",name:"PHP",import:()=>Promise.all([r.e(10858),r.e(56238),r.e(73916),r.e(56747),r.e(38879),r.e(48963),r.e(60552)]).then(r.bind(r,48963))},{id:"pkl",name:"Pkl",import:()=>r.e(97486).then(r.bind(r,97486))},{id:"plsql",name:"PL/SQL",import:()=>r.e(49339).then(r.bind(r,49339))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>r.e(79396).then(r.bind(r,79396))},{id:"polar",name:"Polar",import:()=>r.e(20911).then(r.bind(r,20911))},{id:"postcss",name:"PostCSS",import:()=>r.e(37792).then(r.bind(r,37792))},{id:"powerquery",name:"PowerQuery",import:()=>r.e(86678).then(r.bind(r,86678))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>r.e(54188).then(r.bind(r,54188))},{id:"prisma",name:"Prisma",import:()=>r.e(34623).then(r.bind(r,34623))},{id:"prolog",name:"Prolog",import:()=>r.e(23946).then(r.bind(r,23946))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>
1r.e(43417).then(r.bind(r,43417))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.all([r.e(10858),r.e(56238),r.e(73916),r.e(49427)]).then(r.bind(r,49427))},{id:"puppet",name:"Puppet",import:()=>r.e(52969).then(r.bind(r,75350))},{id:"purescript",name:"PureScript",import:()=>r.e(63660).then(r.bind(r,63660))},{id:"python",name:"Python",aliases:["py"],import:()=>r.e(20821).then(r.bind(r,20821))},{id:"qml",name:"QML",import:()=>Promise.all([r.e(10858),r.e(70493)]).then(r.bind(r,70493))},{id:"qmldir",name:"QML Directory",import:()=>r.e(8904).then(r.bind(r,8904))},{id:"qss",name:"Qt Style Sheets",import:()=>r.e(47400).then(r.bind(r,47400))},{id:"r",name:"R",import:()=>r.e(45033).then(r.bind(r,45033))},{id:"racket",name:"Racket",import:()=>r.e(96453).then(r.bind(r,96453))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>r.e(22580).then(r.bind(r,22580))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.all([r.e(10858),r.e(56238),r.e(73916),r.e(93634),r.e(1679)]).then(r.bind(r,1679))},{id:"reg",name:"Windows Registry Script",import:()=>r.e(15157).then(r.bind(r,15157))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>r.e(81012).then(r.bind(r,81012))},{id:"rel",name:"Rel",import:()=>r.e(6854).then(r.bind(r,6854))},{id:"riscv",name:"RISC-V",import:()=>r.e(2846).then(r.bind(r,2846))},{id:"rosmsg",name:"ROS Interface",import:()=>r.e(65512).then(r.bind(r,65512))},{id:"rst",name:"reStructuredText",import:()=>Promise.all([r.e(10858),r.e(4788),r.e(58982),r.e(78314),r.e(78071),r.e(68172),r.e(56238),r.e(73916),r.e(56747),r.e(38879),r.e(74024),r.e(33576),r.e(37160),r.e(20821),r.e(73760),r.e(14112)]).then(r.bind(r,14112))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.all([r.e(10858),r.e(4788),r.e(58982),r.e(78314),r.e(78071),r.e(68172),r.e(56238),r.e(73916),r.e(56747),r.e(38879),r.e(74024),r.e(33576),r.e(37160),r.e(73760)]).then(r.bind(r,24883))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>r.e(40385).then(r.bind(r,40385))},{id:"sas",name:"SAS",import:()=>Promise.all([r.e(38879),r.e(29216)]).then(r.bind(r,29216))},{id:"sass",name:"Sass",import:()=>r.e(49801).then(r.bind(r,49801))},{id:"scala",name:"Scala",import:()=>r.e(11833).then(r.bind(r,11833))},{id:"scheme",name:"Scheme",import:()=>r.e(19662).then(r.bind(r,19662))},{id:"scss",name:"SCSS",import:()=>Promise.all([r.e(56238),r.e(85471)]).then(r.bind(r,85471))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>r.e(87080).then(r.bind(r,87080))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>r.e(95563).then(r.bind(r,95563))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>r.e(33576).then(r.bind(r,33576))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.all([r.e(33576),r.e(40697)]).then(r.bind(r,40697))},{id:"smalltalk",name:"Smalltalk",import:()=>r.e(99788).then(r.bind(r,99788))},{id:"solidity",name:"Solidity",import:()=>r.e(9048).then(r.bind(r,9048))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.all([r.e(10858),r.e(56238),r.e(73916),r.e(49760)]).then(r.bind(r,49760))},{id:"sparql",name:"SPARQL",import:()=>r.e(22360).then(r.bind(r,22360))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>r.e(56322).then(r.bind(r,56322))},{id:"sql",name:"SQL",import:()=>r.e(38879).then(r.bind(r,38879))},{id:"ssh-config",name:"SSH Config",import:()=>r.e(82870).then(r.bind(r,82870))},{id:"stata",name:"Stata",import:()=>Promise.all([r.e(38879),r.e(94520)]).then(r.bind(r,94520))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>r.e(37005).then(r.bind(r,37005))},{id:"svelte",name:"Svelte",import:()=>Promise.all([r.e(10858),r.e(4788),r.e(56238),r.e(46078)]).then(r.bind(r,46078))},{id:"swift",name:"Swift",import:()=>r.e(12138).then(r.bind(r,12138))},{id:"system-verilog",name:"SystemVerilog",import:()=>r.e(49477).then(r.bind(r,49477))},{id:"systemd",name:"Systemd Units",import:()=>r.e(23030).then(r.bind(r,23030))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>r.e(94814).then(r.bind(r,94814))},{id:"tasl",name:"Tasl",import:()=>r.e(77019).then(r.bind(r,77019))},{id:"tcl",name:"Tcl",import:()=>r.e(3538).then(r.bind(r,3538))}
1,{id:"templ",name:"Templ",import:()=>Promise.all([r.e(10858),r.e(56238),r.e(7473),r.e(69377)]).then(r.bind(r,69377))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>r.e(20099).then(r.bind(r,20099))},{id:"tex",name:"TeX",import:()=>Promise.all([r.e(45033),r.e(58360)]).then(r.bind(r,58360))},{id:"toml",name:"TOML",import:()=>r.e(74251).then(r.bind(r,74251))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.all([r.e(10858),r.e(4788),r.e(56238),r.e(73916),r.e(56747),r.e(38879),r.e(74024),r.e(5298)]).then(r.bind(r,5298))},{id:"tsv",name:"TSV",import:()=>r.e(47904).then(r.bind(r,47904))},{id:"tsx",name:"TSX",import:()=>r.e(58982).then(r.bind(r,94694))},{id:"turtle",name:"Turtle",import:()=>r.e(83453).then(r.bind(r,83453))},{id:"twig",name:"Twig",import:()=>Promise.all([r.e(10858),r.e(4788),r.e(58982),r.e(78314),r.e(78071),r.e(68172),r.e(56238),r.e(73916),r.e(56747),r.e(38879),r.e(74024),r.e(33576),r.e(37160),r.e(20821),r.e(85471),r.e(73760),r.e(48963),r.e(49780)]).then(r.bind(r,49780))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>r.e(4788).then(r.bind(r,95610))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>r.e(4114).then(r.bind(r,4114))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>r.e(65717).then(r.bind(r,65717))}
1,{id:"v",name:"V",import:()=>r.e(30861).then(r.bind(r,30861))},{id:"vala",name:"Vala",import:()=>r.e(58229).then(r.bind(r,58229))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>r.e(17147).then(r.bind(r,17147))},{id:"verilog",name:"Verilog",import:()=>r.e(41481).then(r.bind(r,41481))},{id:"vhdl",name:"VHDL",import:()=>r.e(29801).then(r.bind(r,29801))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>r.e(11411).then(r.bind(r,11411))},{id:"vue",name:"Vue",import:()=>Promise.all([r.e(10858),r.e(4788),r.e(56238),r.e(73916),r.e(26513)]).then(r.bind(r,26513))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.all([r.e(10858),r.e(4788),r.e(56238),r.e(73916),r.e(26513),r.e(21301)]).then(r.bind(r,21301))},{id:"vue-vine",name:"Vue Vine",import:()=>Promise.all([r.e(10858),r.e(4788),r.e(91757),r.e(56238),r.e(73916),r.e(85471),r.e(55672),r.e(26513),r.e(17392)]).then(r.bind(r,34182))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>r.e(58779).then(r.bind(r,58779))},{id:"wasm",name:"WebAssembly",import:()=>r.e(4667).then(r.bind(r,4667))},{id:"wenyan",name:"Wenyan",aliases:["æè¨"],import:()=>r.e(16797).then(r.bind(r,16797))},{id:"wgsl",name:"WGSL",import:()=>r.e(39960).then(r.bind(r,39960))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>r.e(90218).then(r.bind(r,90218))},{id:"wit",name:"WebAssembly Interface Types",import:()=>r.e(35547).then(r.bind(r,35547))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>r.e(45651).then(r.bind(r,63331))},{id:"xml",name:"XML",import:()=>Promise.all([r.e(56747),r.e(38171)]).then(r.bind(r,60552))},{id:"xsl",name:"XSL",import:()=>Promise.all([r.e(56747),r.e(33262)]).then(r.bind(r,33262))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>r.e(70).then(r.bind(r,70))},{id:"zenscript",name:"ZenScript",import:()=>r.e(56765).then(r.bind(r,56765))},{id:"zig",name:"Zig",import:()=>r.e(64345).then(r.bind(r,64345))}],u=Object.fromEntries(l.map(e=>[e.id,e.import])),c=Object.fromEntries(l.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),h={...u,...c};
1class p extends Error{constructor(e){super(e),this.name="ShikiError"}}var d=r(55036);function f(e,...t){return t.forEach(t=>{for(let r in t)e[r]=t[r]}),e}var m=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,g=class{static hasCaptures(e){return null!==e&&(m.lastIndex=0,m.test(e))}static replaceCaptures(e,t,r){return e.replace(m,(e,n,i,a)=>{let s=r[parseInt(n||i,10)];if(!s)return e;{let e=t.substring(s.start,s.end);for(;"."===e[0];)e=e.substring(1);switch(a){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function y(e,t){if(null===e&&null===t)return 0;if(!e)return -1;if(!t)return 1;let r=e.length,n=t.length;if(r===n){for(let n=0;n<r;n++){var i,a;let r=(i=e[n],i<(a=t[n])?-1:+(i>a));if(0!==r)return r}return 0}return r-n}function b(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function w(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var _=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},k=class{constructor(e,t,r){this._colorMap=e,this._defaults=t,this._root=r}static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,r=[],n=0;for(let e=0,i=t.length;e<i;e++){let i,a=t[e];if(!a.settings)continue;if("string"==typeof a.scope){let e=a.scope;i=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else i=Array.isArray(a.scope)?a.scope:[""];let s=-1;if("string"==typeof a.settings.fontStyle){s=0;let e=a.settings.fontStyle.split(" ");for(let t=0,r=e.length;t<r;t++)switch(e[t]){case"italic":s|=1;break;case"bold":s|=2;break;case"underline":s|=4;break;case"strikethrough":s|=8}}let o=null;"string"==typeof a.settings.foreground&&b(a.settings.foreground)&&(o=a.settings.foreground);let l=null;"string"==typeof a.settings.background&&b(a.settings.background)&&(l=a.settings.background);for(let t=0,a=i.length;t<a;t++){let a=i[t].trim().split(" "),u=a[a.length-1],c=null;a.length>1&&(c=a.slice(0,a.length-1)).reverse(),r[n++]=new x(u,c,e,s,o,l)}}return r}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var r,n;let i=(r=e.scope,r<(n=t.scope)?-1:+(r>n));return 0!==i||0!==(i=y(e.parentScopes,t.parentScopes))?i:e.index-t.index});let r=0,n="#000000",i="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(r=t.fontStyle),null!==t.foreground&&(n=t.foreground),null!==t.background&&(i=t.background)}let a=new v(t),s=new S(r,a.getId(n),a.getId(i)),o=new I(new N(0,null,-1,0,0),[]);for(let t=0,r=e.length;t<r;t++){let r=e[t];o.insert(0,r.scope,r.parentScopes,r.fontStyle,a.getId(r.foreground),a.getId(r.background))}return new k(a,s,o)}(e,t)}_cachedMatchRoot=new _(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,r=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(0===t.length)return!0;for(let i=0;i<t.length;i++){var r,n;let a=t[i],s=!1;if(">"===a){if(i===t.length-1)return!1;a=t[++i],s=!0}for(;e&&(r=e.scopeName,!((n=a)===r||r.startsWith(n)&&"."===r[n.length]));){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return r?new S(r.fontStyle,r.foreground,r.background):null}},C=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,r){for(let n of r)t=new e(t,n);return t}static from(...t){let r=null;for(let n=0;n<t.length;n++)r=new e(r,t[n]);return r}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],r=this;for(;r&&r!==e;)t.push(r.scopeName),r=r.parent;return r===e?t.reverse():void 0}},S=class{constructor(e,t,r){this.fontStyle=e,this.foregroundId=t,this.backgroundId=r}},x=class{constructor(e,t,r,n,i,a){this.scope=e,this.parentScopes=t,this.index=r,this.fontStyle=n,this.foreground=i,this.background=a}},A=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(A||{}),v=class{_isFrozen;_lastColorId;
1_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,r=e.length;t<r;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},E=Object.freeze([]),N=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,r,n,i){this.scopeDepth=e,this.parentScopes=t||E,this.fontStyle=r,this.foreground=n,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let r=0,n=e.length;r<n;r++)t[r]=e[r].clone();return t}acceptOverwrite(e,t,r,n){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==r&&(this.foreground=r),0!==n&&(this.background=n)}},I=class e{constructor(e,t=[],r={}){this._mainRule=e,this._children=r,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let r=0,n=0;for(;">"===e.parentScopes[r]&&r++,">"===t.parentScopes[n]&&n++,!(r>=e.parentScopes.length)&&!(n>=t.parentScopes.length);){let i=t.parentScopes[n].length-e.parentScopes[r].length;if(0!==i)return i;r++,n++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,r,n=t.indexOf(".");if(-1===n?(e=t,r=""):(e=t.substring(0,n),r=t.substring(n+1)),this._children.hasOwnProperty(e))return this._children[e].match(r)}let r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(e._cmpBySpecificity),r}insert(t,r,n,i,a,s){let o,l,u;if(""===r)return void this._doInsertHere(t,n,i,a,s);let c=r.indexOf(".");-1===c?(o=r,l=""):(o=r.substring(0,c),l=r.substring(c+1)),this._children.hasOwnProperty(o)?u=this._children[o]:(u=new e(this._mainRule.clone(),N.cloneArr(this._rulesWithParentScopes)),this._children[o]=u),u.insert(t+1,l,n,i,a,s)}_doInsertHere(e,t,r,n,i){if(null===t)return void this._mainRule.acceptOverwrite(e,r,n,i);for(let a=0,s=this._rulesWithParentScopes.length;a<s;a++){let s=this._rulesWithParentScopes[a];if(0===y(s.parentScopes,t))return void s.acceptOverwrite(e,r,n,i)}-1===r&&(r=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===i&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new N(e,t,r,n,i))}},P=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(t){let r=e.getLanguageId(t),n=e.getTokenType(t),i=e.getFontStyle(t);console.log({languageId:r,tokenType:n,fontStyle:i,foreground:e.getForeground(t),background:e.getBackground(t)})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(0xff8000&e)>>>15}static getBackground(e){return(0xff000000&e)>>>24}static set(t,r,n,i,a,s,o){let l=e.getLanguageId(t),u=e.getTokenType(t),c=+!!e.containsBalancedBrackets(t),h=e.getFontStyle(t),p=e.getForeground(t),d=e.getBackground(t);return 0!==r&&(l=r),8!==n&&(u=n),null!==i&&(c=+!!i),-1!==a&&(h=a),0!==s&&(p=s),0!==o&&(d=o),(0|l|u<<8|c<<10|h<<11|p<<15|d<<24)>>>0}};function L(e,t){var r;let n,i,a=[],s=(r=e,i=(n=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(r),{next:()=>{if(!i)return null;let e=i[0];return i=n.exec(r),e}}),o=s.next();for(;null!==o;){let e=0;if(2===o.length&&":"===o.charAt(1)){switch(o.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=s.next()}let t=u();if(a.push({matcher:t,priority:e}),","!==o)break;o=s.next()}return a;function l(){if("-"===o){o=s.next();let e=l();return t=>!!e&&!e(t)}if("("===o){o=s.next();let e=function(){let e=[],t=u();for(;t&&(e.push(t),"|"===o||","===o);){do o=s.next();while("|"===o||","===o);t=u()}return t=>e.some(e=>e(t))}();return")"===o&&(o=s.next()),e}if($(o)){let e=[];do e.push(o),o=s.next();while($(o));return r=>t(e,r)}return null}function u(){let e=[],t=l();for(;t;)e.push(t),t=l();return t=>e.every(e=>e(t))}}function $(e){return!!e&&!!e.match(/[\w\.:]+/)}var R=(e=>(e[e.None=0]="None",e[e.NotBeginString=1]="NotBeginString",e[e.NotEndString=2]="NotEndString",e[e.NotBeginPosition=4]="NotBeginPosition",e[e.DebugCall=8]="DebugCall",e))(R||{});function T(e){"function"==typeof e.dispose&&e.dispose()}var B=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},M=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},O=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},U=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new B(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new O;for(let r of e)!function(e,t,r,n){let i=r.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=r.lookup(t);e instanceof B?D({baseGrammar:a,selfGrammar:i},n):G(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},n);let s=r.injections(e.scopeName);if(s)for(let e of s)n.add(new B(e))}(r,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof B){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function G(e,t,r){t.repository&&t.repository[e]&&F([t.repository[e]],t,r)}function D(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&F(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&F(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function F(e,t,r){for(let n of e){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);let e=n.repository?f({},t.repository,n.repository):t.repository;Array.isArray(n.patterns)&&F(n.patterns,{...t,repository:e},r);let i=n.include;if(!i)continue;let a=V(i);switch(a.kind){case 0:D({...t,selfGrammar:t.baseGrammar},r);break;case 1:D(t,r);break;case 2:G(a.ruleName,{...t,repository:e},r);break;case 3:case 4:let s=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){let n={baseGrammar:t.baseGrammar,selfGrammar:s,repository:e};4===a.kind?G(a.ruleName,n,r):D(n,r)}else 4===a.kind?r.add(new M(a.scopeName,a.ruleName)):r.add(new B(a.scopeName))}}}var j=class{kind=0},W=class{kind=1},H=class{constructor(e){this.ruleName=e}kind=2},z=class{constructor(e){this.scopeName=e}kind=3},q=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};
1function V(e){if("$base"===e)return new j;if("$self"===e)return new W;let t=e.indexOf("#");return -1===t?new z(e):0===t?new H(e.substring(1)):new q(e.substring(0,t),e.substring(t+1))}var X=/\\(\d+)/,Q=/\\(\d+)/g;Symbol("RuleId");var J=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,r,n){this.$location=e,this.id=t,this._name=r||null,this._nameIsCapturing=g.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=g.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${function e(t){let r=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===r?t:~r==t.length-1?e(t.substring(0,t.length-1)):t.substr(~r+1)}(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?g.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?g.replaceCaptures(this._contentName,e,t):this._contentName}},Z=class extends J{retokenizeCapturedWithRuleId;constructor(e,t,r,n,i){super(e,t,r,n),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,r,n){throw Error("Not supported!")}},K=class extends J{_match;captures;_cachedCompiledPatterns;constructor(e,t,r,n,i){super(e,t,r,null),this._match=new en(n,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ei,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Y=class extends J{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,n,i){super(e,t,r,n),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let r of this.patterns)e.getRule(r).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ei,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ee=class extends J{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,n,i,a,s,o,l,u){super(e,t,r,n),this._begin=new en(i,this.id),this.beginCaptures=a,this._end=new en(s||"ï¿¿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,this.applyEndPatternLast=l||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e,t).compileAG(e,r,n)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){for(let t of(this._cachedCompiledPatterns=new ei,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},et=class extends J{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,r,n,i,a,s,o,l){super(e,t,r,n),this._begin=new en(i,this.id),this.beginCaptures=a,this.whileCaptures=o,this._while=ne
1w en(s,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new ei,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,r,n){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,r,n)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ei,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"ï¿¿"),this._cachedCompiledWhilePatterns}
1},er=class e{static createCaptureRule(e,t,r,n,i){return e.registerRule(e=>new Z(t,e,r,n,i))}static getCompiledRuleId(t,r,n){return t.id||r.registerRule(i=>{if(t.id=i,t.match)return new K(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,r,n));if(void 0===t.begin){t.repository&&(n=f({},n,t.repository));let i=t.patterns;return void 0===i&&t.include&&(i=[{include:t.include}]),new Y(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,r,n))}return t.while?new et(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,r,n),t.while,e._compileCaptures(t.whileCaptures||t.captures,r,n),e._compilePatterns(t.patterns,r,n)):new ee(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,r,n),t.end,e._compileCaptures(t.endCaptures||t.captures,r,n),t.applyEndPatternLast,e._compilePatterns(t.patterns,r,n))}),t.id}static _compileCaptures(t,r,n){let i=[];if(t){let a=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if("$vscodeTextmateLocation"===a)continue;let s=parseInt(a,10),o=0;t[a].patterns&&(o=e.getCompiledRuleId(t[a],r,n)),i[s]=e.createCaptureRule(r,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,o)}}return i}static _compilePatterns(t,r,n){let i=[];if(t)for(let a=0,s=t.length;a<s;a++){let s=t[a],o=-1;if(s.include){let t=V(s.include);switch(t.kind){case 0:case 1:o=e.getCompiledRuleId(n[s.include],r,n);break;case 2:let i=n[t.ruleName];i&&(o=e.getCompiledRuleId(i,r,n));break;case 3:case 4:let a=t.scopeName,l=4===t.kind?t.ruleName:null,u=r.getExternalGrammar(a,n);if(u)if(l){let t=u.repository[l];t&&(o=e.getCompiledRuleId(t,r,u.repository))}else o=e.getCompiledRuleId(u.repository.$self,r,u.repository)}}else o=e.getCompiledRuleId(s,r,n);if(-1!==o){let e=r.getRule(o),t=!1;if((e instanceof Y||e instanceof ee||e instanceof et)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;i.push(o)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},en=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&"string"==typeof e){let t=e.length,r=0,n=[],i=!1;for(let a=0;a<t;a++)if("\\"===e.charAt(a)&&a+1<t){let t=e.charAt(a+1);"z"===t?(n.push(e.substring(r,a)),n.push("$(?!\\n)(?<!\\n)"),r=a+2):("A"===t||"G"===t)&&(i=!0),a++}this.hasAnchor=i,0===r?this.source=e:(n.push(e.substring(r,t)),this.source=n.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,"string"==typeof this.source?this.hasBackReferences=X.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let r=t.map(t=>e.substring(t.start,t.end));return Q.lastIndex=0,this.source.replace(Q,(e,t)=>w(r[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,r,n;if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let i=[],a=[],s=[],o=[];for(e=0,t=this.source.length;e<t;e++)r=this.source.charAt(e),i[e]=r,a[e]=r,s[e]=r,o[e]=r,"\\"===r&&e+1<t&&("A"===(n=this.source.charAt(e+1))?(i[e+1]="ï¿¿",a[e+1]="ï¿¿",s[e+1]="A",o[e+1]="A"):"G"===n?(i[e+1]="ï¿¿",a[e+1]="G",s[e+1]="ï¿¿",o[e+1]="G"):(i[e+1]=n,a[e+1]=n,s[e+1]=n,o[e+1]=n),e
1++);return{A0_G0:i.join(""),A0_G1:a.join(""),A1_G0:s.join(""),A1_G1:o.join("")}}resolveAnchors(e,t){if(!this.hasAnchor||!this._anchorCache||"string"!=typeof this.source)return this.source;if(e)if(t)return this._anchorCache.A1_G1;else return this._anchorCache.A1_G0;return t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},ei=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new ea(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,r){if(!this._hasAnchors)return this.compile(e);if(t)if(r)return this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G1;else return this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G0;return r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G0)}_resolveAnchors(e,t,r){return new ea(e,this._items.map(e=>e.resolveAnchors(t,r)),this._items.map(e=>e.ruleId))}},ea=class{constructor(e,t,r){this.regExps=t,this.rules=r,this.scanner=e.createOnigScanner(t)}scanner;dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,r=this.rules.length;t<r;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,r){let n=this.scanner.findNextMatchSync(e,t,r);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}},es=class{constructor(e,t){this.languageId=e,this.tokenType=t}},eo=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new es(e,8),this._embeddedLanguagesMatcher=new el(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new es(0,0);_getBasicScopeAttributes=new _(e=>new es(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let r=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},el=class{values;scopesRegExp;constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>w(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};void 0!==d&&d.env.VSCODE_TEXTMATE_DEBUG;var eu=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function ec(e,t,r,n,i,a,s,o){let l=t.content.length,u=!1,c=-1;if(s){let s=function(e,t,r,n,i,a){let s=i.beginRuleCapturedEOL?0:-1,o=[];for(let t=i;t;t=t.pop()){let r=t.getRule(e);r instanceof et&&o.push({rule:r,stack:t})}for(let d=o.pop();d;d=o.pop()){var l,u,c,h,p;let{ruleScanner:o,findOptions:f}=(l=d.rule,u=e,c=d.stack.endRule,h=r,p=n===s,{ruleScanner:l.compileWhileAG(u,c,h,p),findOptions:0}),m=o.findNextMatchSync(t,n,f);if(m){if(-2!==m.ruleId){i=d.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(a.produce(d.stack,m.captureIndices[0].start),ep(e,t,r,d.stack,a,d.rule.whileCaptures,m.captureIndices),a.produce(d.stack,m.captureIndices[0].end),s=m.captureIndices[0].end,m.captureIndices[0].end>n&&(n=m.captureIndices[0].end,r=!1))}else{i=d.stack.pop();break}}
1return{stack:i,linePos:n,anchorPosition:s,isFirstLine:r}}(e,t,r,n,i,a);i=s.stack,n=s.linePos,r=s.isFirstLine,c=s.anchorPosition}let h=Date.now();for(;!u;){if(0!==o&&Date.now()-h>o)return new eu(i,!0);!function(){let s=function(e,t,r,n,i,a){let s=function(e,t,r,n,i,a){let{ruleScanner:s,findOptions:o}=eh(i.getRule(e),e,i.endRule,r,n===a),l=s.findNextMatchSync(t,n,o);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,t,r,n,i,a),o=e.getInjections();if(0===o.length)return s;let l=function(e,t,r,n,i,a,s){let o,l=Number.MAX_VALUE,u=null,c=0,h=a.contentNameScopesList.getScopeNames();for(let a=0,p=e.length;a<p;a++){let p=e[a];if(!p.matcher(h))continue;let{ruleScanner:d,findOptions:f}=eh(t.getRule(p.ruleId),t,null,n,i===s),m=d.findNextMatchSync(r,i,f);if(!m)continue;let g=m.captureIndices[0].start;if(!(g>=l)&&(l=g,u=m.captureIndices,o=m.ruleId,c=p.priority,l===i))break}return u?{priorityMatch:-1===c,captureIndices:u,matchedRuleId:o}:null}(o,e,t,r,n,i,a);if(!l)return s;if(!s)return l;let u=s.captureIndices[0].start,c=l.captureIndices[0].start;return c<u||l.priorityMatch&&c===u?l:s}(e,t,r,n,i,c);if(!s){a.produce(i,l),u=!0;return}let o=s.captureIndices,h=s.matchedRuleId,p=!!o&&o.length>0&&o[0].end>n;if(-1===h){let s=i.getRule(e);a.produce(i,o[0].start),i=i.withContentNameScopesList(i.nameScopesList),ep(e,t,r,i,a,s.endCaptures,o),a.produce(i,o[0].end);let h=i;if(i=i.parent,c=h.getAnchorPos(),!p&&h.getEnterPos()===n){i=h,a.produce(i,l),u=!0;return}}else{let s=e.getRule(h);a.produce(i,o[0].start);let d=i,f=s.getName(t.content,o),m=i.contentNameScopesList.pushAttributed(f,e);if(i=i.push(h,n,c,o[0].end===l,null,m,m),s instanceof ee){ep(e,t,r,i,a,s.beginCaptures,o),a.produce(i,o[0].end),c=o[0].end;let n=s.getContentName(t.content,o),h=m.pushAttributed(n,e);if(i=i.withContentNameScopesList(h),s.endHasBackReferences&&(i=i.withEndRule(s.getEndWithResolvedBackReferences(t.content,o))),!p&&d.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),u=!0;return}}else if(s instanceof et){ep(e,t,r,i,a,s.beginCaptures,o),a.produce(i,o[0].end),c=o[0].end;let n=s.getContentName(t.content,o),h=m.pushAttributed(n,e);if(i=i.withContentNameScopesList(h),s.whileHasBackReferences&&(i=i.withEndRule(s.getWhileWithResolvedBackReferences(t.content,o))),!p&&d.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),u=!0;return}}else if(ep(e,t,r,i,a,s.captures,o),a.produce(i,o[0].end),i=i.pop(),!p){i=i.safePop(),a.produce(i,l),u=!0;return}}o[0].end>n&&(n=o[0].end,r=!1)}()}return new eu(i,!1)}function eh(e,t,r,n,i){return{ruleScanner:e.compileAG(t,r,n,i),findOptions:0}}function ep(e,t,r,n,i,a,s){if(0===a.length)return;let o=t.content,l=Math.min(a.length,s.length),u=[],c=s[0].end;for(let t=0;t<l;t++){let l=a[t];if(null===l)continue;let h=s[t];if(0===h.length)continue;if(h.start>c)break;for(;u.length>0&&u[u.length-1].endPos<=h.start;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?i.produceFromScopes(u[u.length-1].scopes,h.start):i.produce(n,h.start),l.retokenizeCapturedWithRuleId){let t=l.getName(o,s),a=n.contentNameScopesList.pushAttributed(t,e),u=l.getContentName(o,s),c=a.pushAttributed(u,e),p=n.push(l.retokenizeCapturedWithRuleId,h.start,-1,!1,null,a,c),d=e.createOnigString(o.substring(0,h.end));ec(e,d,r&&0===h.start,h.start,p,i,!1,0),T(d);continue}let p=l.getName(o,s);if(null!==p){let t=(u.length>0?u[u.length-1].scopes:n.contentNameScopesList).pushAttributed(p,e);u.push(new ed(t,h.end))}}for(;u.length>0;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var ed=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function ef(e,t,r,n,i){let a=L(t,em),s=er.getCompiledRuleId(r,n,i.repository);
1for(let r of a)e.push({debugSelector:t,matcher:r.matcher,ruleId:s,grammar:i,priority:r.priority})}function em(e,t){if(t.length<e.length)return!1;let r=0;return e.every(e=>{for(let n=r;n<t.length;n++)if(function(e,t){if(!e)return!1;if(e===t)return!0;let r=t.length;return e.length>r&&e.substr(0,r)===t&&"."===e[r]}(t[n],e))return r=n+1,!0;return!1})}var eg=class{constructor(e,t,r,n,i,a,s,o){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=o,this._basicScopeAttributesProvider=new eo(r,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=ey(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i))for(let t of L(e,em))this._tokenTypeMatchers.push({matcher:t.matcher,type:i[e]})}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e=[],t=this._rootScopeName,r=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);if(r){let n=r.injections;if(n)for(let t in n)ef(e,t,n[t],this,r);let i=this._grammarRepository.injections(t);i&&i.forEach(t=>{let r=this.getExternalGrammar(t);if(r){let t=r.injectionSelector;t&&ef(e,t,r,this,r)}})}return e.sort((e,t)=>e.priority-t.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,r=e(t);return this._ruleId2desc[t]=r,r}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let r=this._grammarRepository.lookup(e);if(r)return this._includedGrammars[e]=ey(r,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,r=0){let n=this._tokenize(e,t,!1,r);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(e,t,r=0){let n=this._tokenize(e,t,!0,r);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(e,t,r,n){let i;if(-1===this._rootId&&(this._rootId=er.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==ew.NULL)i=!1,t.reset();else{let e;i=!0;let r=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),a=P.set(0,r.languageId,r.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),s=this.getRule(this._rootId).getName(null,null);e=s?eb.createRootAndLookUpScopeName(s,a,this):eb.createRoot("unknown",a),t=new ew(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let a=this.createOnigString(e),s=a.content.length,o=new ek(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=ec(this,a,i,0,t,o,!0,n);return T(a),{lineLength:s,lineTokens:o,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function ey(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let r=[];for(let n=0,i=t.length;n<i;n++)r[n]=e(t[n]);return r}(t):t instanceof RegExp?t:"object"==typeof t?function(t){let r={};for(let n in t)r[n]=e(t[n]);return r}(t):t}(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var eb=class e{constructor(e,t,r){this.parent=e,this.scopePath=t,this.tokenAttributes=r}static fromExtension(t,r){let n=t,i=t?.scopePath??null;for(let t of r)n=new e(n,i=C.push(i,t.scopeNames),t.encodedTokenAttributes);return n}static createRoot(t,r){return new e(null,new C(null,t),r)}static createRootAndLookUpScopeName(t,r,n){let i=n.getMetadataForScope(t),a=new C(null,t),s=n.themeProvider.themeMatch(a),o=e.mergeAttributes(r,i,s);return new e(null,a,o)}get scopeName(){return this.scopePath.scopeName}
1toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,r){let n=-1,i=0,a=0;return null!==r&&(n=r.fontStyle,i=r.foregroundId,a=r.backgroundId),P.set(e,t.languageId,t.tokenType,null,n,i,a)}pushAttributed(t,r){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,r);let n=t.split(/ /g),i=this;for(let t of n)i=e._pushAttributed(i,t,r);return i}static _pushAttributed(t,r,n){let i=n.getMetadataForScope(r),a=t.scopePath.push(r),s=n.themeProvider.themeMatch(a),o=e.mergeAttributes(t.tokenAttributes,i,s);return new e(t,a,o)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],r=this;for(;r&&r!==e;)t.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===e?t.reverse():void 0}},ew=class e{constructor(e,t,r,n,i,a,s,o){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=s,this.contentNameScopesList=o,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=n}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&eb.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,r,n,i,a,s,o){return new e(this,t,r,n,i,a,s,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,r){let n=eb.fromExtension(t?.nameScopesList??null,r.nameScopesList);return new e(t,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,n,eb.fromExtension(n,r.contentNameScopesList))}},e_=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):L(e,em).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>L(e,em).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},ek=class{constructor(e,t,r,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let r=e?.tokenAttributes??0,n=!1;if(this.balancedBracketSelectors?.matchesAlways&&(n=!0),this._tokenTypeOverrides.length>
10||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(r=P.set(r,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(n=this.balancedBracketSelectors.match(t))}if(n&&(r=P.set(r,0,8,n,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=t;return}let r=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:r}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let r=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)r[e]=this._binaryTokens[e];return r}},eC=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,r,n,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,new eg(e,a,t,r,n,i,this,this._onigLib))}return this._grammars.get(e)}},eS=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new eC(k.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(k.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,r){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:r})}loadGrammarWithConfiguration(e,t,r){return this._loadGrammar(e,t,r.embeddedLanguages,r.tokenTypes,new e_(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,r,n,i){let a=new U(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,r,n,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let r="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,r)}}addGrammar(e,t=[],r=0,n=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,r,n)}_grammarForScopeName(e,t=0,r=null,n=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,r,n,i)}},ex=ew.NULL,eA=r(29247),ev=r(62034),eE=r(61488);let eN=/["&'<>`]/g,eI=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,eP=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,eL=/[|\\{}()[\]^$+*?.]/g,e$=new WeakMap,eR=/[\dA-Fa-f]/,eT=/\d/,eB=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslas
1h","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],eM={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",fnof:"Æ",Alpha:"Î",Beta:"Î",Gamma:"Î",Delta:"Î",Epsilon:"Î",Zeta:"Î",Eta:"Î",Theta:"Î",Iota:"Î",Kappa:"Î",Lambda:"Î",Mu:"Î",Nu:"Î",Xi:"Î",Omicron:"Î",Pi:"Î ",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Î¥",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"Ï",rho:"Ï",sigmaf:"Ï",sigma:"Ï",tau:"Ï",upsilon:"Ï
",phi:"Ï",chi:"Ï",psi:"Ï",omega:"Ï",thetasym:"Ï",upsih:"Ï",piv:"Ï",bull:"â¢",hellip:"â¦",prime:"â²",Prime:"â³",oline:"â¾",frasl:"â",weierp:"â",image:"â",real:"â",trade:"â¢",alefsym:"âµ",larr:"â",uarr:"â",rarr:"â",darr:"â",harr:"â",crarr:"âµ",lArr:"â",uArr:"â",rArr:"â",dArr:"â",hArr:"â",forall:"â",part:"â",exist:"â",empty:"â
",nabla:"â",isin:"â",notin:"â",ni:"â",prod:"â",sum:"â",minus:"â",lowast:"â",radic:"â",prop:"â",infin:"â",ang:"â ",and:"â§",or:"â¨",cap:"â©",cup:"âª",int:"â«",there4:"â´",sim:"â¼",cong:"â
",asymp:"â",ne:"â ",equiv:"â¡",le:"â¤",ge:"â¥",sub:"â",sup:"â",nsub
1:"â",sube:"â",supe:"â",oplus:"â",otimes:"â",perp:"â¥",sdot:"â
",lceil:"â",rceil:"â",lfloor:"â",rfloor:"â",lang:"â©",rang:"âª",loz:"â",spades:"â ",clubs:"â£",hearts:"â¥",diams:"â¦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Å",oelig:"Å",Scaron:"Å ",scaron:"Å¡",Yuml:"Ÿ",circ:"Ë",tilde:"Ë",ensp:"â",emsp:"â",thinsp:"â",zwnj:"â",zwj:"â",lrm:"â",rlm:"â",ndash:"â",mdash:"â",lsquo:"â",rsquo:"â",sbquo:"â",ldquo:"â",rdquo:"â",bdquo:"â",dagger:"â ",Dagger:"â¡",permil:"â°",lsaquo:"â¹",rsaquo:"âº",euro:"â¬"},eO=["cent","copy","divide","gt","lt","not","para","times"],eU={}.hasOwnProperty,eG={};for(n in eM)eU.call(eM,n)&&(eG[eM[n]]=n);let eD=/[^\dA-Za-z]/;function eF(e,t,r){let n,i=function(e,t,r){let n="&#x"+e.toString(16).toUpperCase();return r&&t&&!eR.test(String.fromCharCode(t))?n:n+";"}(e,t,r.omitOptionalSemicolons);if((r.useNamedReferences||r.useShortestReferences)&&(n=function(e,t,r,n){let i=String.fromCharCode(e);if(eU.call(eG,i)){let e=eG[i],a="&"+e;return r&&eB.includes(e)&&!eO.includes(e)&&(!n||t&&61!==t&&eD.test(String.fromCharCode(t)))?a:a+";"}return""}(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!n)&&r.useShortestReferences){let n=function(e,t,r){let n="&#"+String(e);return r&&t&&!eT.test(String.fromCharCode(t))?n:n+";"}(e,t,r.omitOptionalSemicolons);n.length<i.length&&(i=n)}return n&&(!r.useShortestReferences||n.length<i.length)?n:i}function ej(e,t){let r;var n,i=e,a=Object.assign({format:eF},t);if(i=i.replace(a.subset?(n=a.subset,(r=e$.get(n))||(r=function(e){let t=[],r=-1;for(;++r<e.length;)t.push(e[r].replace(eL,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(n),e$.set(n,r)),r):eN,s),a.subset||a.escapeOnly)return i;return i.replace(eI,function(e,t,r){return a.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(t+2),a)}).replace(eP,s);function s(e,t,r){return a.format(e.charCodeAt(0),r.charCodeAt(t+1),a)}}let eW=/^>|^->|<!--|-->|--!>|<!-$/g,eH=[">"],ez=["<",">"];var eq=r(83551),eV=r(97413),eX=r(99275),eQ=r(2882),eJ=r(96599);let eZ=e0(1),eK=e0(-1),eY=[];function e0(e){return function(t,r,n){let i=t?t.children:eY,a=(r||0)+e,s=i[a];if(!n)for(;s&&(0,eJ.m)(s);)a+=e,s=i[a];return s}}let e1={}.hasOwnProperty;function e2(e){return function(t,r,n){return e1.call(e,t.tagName)&&e[t.tagName](t,r,n)}}let e8=e2({body:function(e,t,r){let n=eZ(r,t);return!n||"comment"!==n.type},caption:e5,colgroup:e5,dd:function(e,t,r){let n=eZ(r,t);return!n||"element"===n.type&&("dt"===n.tagName||"dd"===n.tagName)},dt:function(e,t,r){let n=eZ(r,t);return!!(n&&"element"===n.type&&("dt"===n.tagName||"dd"===n.tagName))},head:e5,html:function(e,t,r){let n=eZ(r,t);return!n||"comment"!==n.type},li:function(e,t,r){let n=eZ(r,t);return!n||"element"===n.type&&"li"===n.tagName},optgroup:function(e,t,r){let n=eZ(r,t);return!n||"element"===n.type&&"optgroup"===n.tagName},option:function(e,t,r){let n=eZ(r,t);return!n||"element"===n.type&&("option"===n.tagName||"optgroup"===n.tagName)},p:function(e,t,r){let n=eZ(r,t);return n?"element"===n.type&&("address"===n.tagName||"article"===n.tagName||"aside"===n.tagName||"blockquote"===n.tagName||"details"===n.tagName||"div"===n.tagName||"dl"===n.tagName||"fieldset"===n.tagName||"figcaption"===n.tagName||"figure"===n.tagName||"footer"===n.tagName||"form"===n.tagName||"h1"===n.tagName||"h2"===n.tagName||"h3"===n.tagName||"h4"===n.tagName||"h5"===n.tagName||"h6"===n.tagName||"header"===n.tagName||"hgroup"===n.tagName||"hr"===n.tagName||"main"===n.tagName||"menu"===n.tagName||"nav"===n.tagName||"ol"===n.tagName||"p"===n.tagName||"pre"===n.tagName||"section"===n.tagName||"table"===n.tagName||"ul"===n.tagName):!r||"element"!==r.type||"a"!==r.tagName&&"audio"!==r.tagName&&"del"!==r.tagName&&"ins"!==r.tagName&&"map"!==r.tagName&&"noscript"!==r.tagName&&"video"!==r.tagName},rp:e6,rt:e6,tbody:function(e,t,r){let n=eZ(r,t);return!n||"element"===n.type&&("tbody"===n.tagName||"tfoot"===n.tagName)},td:e3,tfoot:function(e,t,r){return!eZ(r,t)},th:e3,thead:function(e,t,r){let n=eZ(r,t);return!!(n&&"element"===n.type&&("tbody"===n.tagName||"tfoot"===n.tagName))},tr:function(e,t,r){let n=eZ(r,t);return!n||"element"===n.type&&"tr"===n.tagName}});function e5(e,t,r){let n=eZ(r,t,!0);return!n||"comment"!==n.type&&!("text"===n.type&&(0,eJ.m)(n.value.charAt(0)))}function e6(e,t,r){let n=eZ(r,t);return!n||"element"===n.type&&("rp"===n.tagName||"rt"===n.tagName)}function e3(e,t,r){let n=eZ(r,t);return!n||"element"===n.type&&("td"===n.tagName||"th"===n.tagName)}let e4=e2({body:function(e){let t=eZ(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&(0,eJ.m)(t.value.charAt(0)))&&("element"!==t.type||"meta"!==t.tagName&&"link"!==t.tagName&&"script"!==t.tagName&&"style"!==t.tagName&&"template"!==t.tagName)},colgroup:function(e,t,r){let n=eK(r,t),i=eZ(e,-1,!0);return!(r&&n&&"element"===n.type&&"colgroup"===n.tagName&&e8(n,r.children.indexOf(n),r))&&!!(i&&"element"===i.type&&"col"===i.tagName)},head:function(e){let t=new Set;for(let r of e.children)if("element"===r.type&&("base"===r.tagName||"title"===r.tagName)){if(t.has(r.tagName))return!1;t.add(r.tagName)}let r=e.children[0];return!r||"element"===r.type},html:function(e){let t=eZ(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,r){let n=eK(r,t),i=eZ(e,-1);return!(r&&n&&"element"===n.type&&("thead"===n.tagName||"tbody"===n.tagName)&&e8(n,r.children.indexOf(n),r))&&!!(i&&"element"===i.type&&"tr"===i.tagName)}}),e7={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>
1`".split("")],["\0 \n\f\r \"&'/<=>".split(""),"\0 \n\f\r \"&'/<=>`".split("")]],unquoted:[[" \n\f\r &>".split(""),"\0 \n\f\r \"&'<=>`".split("")],["\0 \n\f\r \"&'<=>`".split(""),"\0 \n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},e9=["<","&"];function te(e,t,r,n){return r&&"element"===r.type&&("script"===r.tagName||"style"===r.tagName)?e.value:ej(e.value,Object.assign({},n.settings.characterReferences,{subset:e9}))}let tt=(0,eE.A)("type",{invalid:function(e){throw Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,r,n){return n.settings.bogusComments?"<?"+ej(e.value,Object.assign({},n.settings.characterReferences,{subset:eH}))+">":"\x3c!--"+e.value.replace(eW,function(e){return ej(e,Object.assign({},n.settings.characterReferences,{subset:ez}))})+"--\x3e"},doctype:function(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,r,n){let i,a=n.schema,s="svg"!==a.space&&n.settings.omitOptionalTags,o="svg"===a.space?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase()),l=[];"html"===a.space&&"svg"===e.tagName&&(n.schema=ev.JW);let u=function(e,t){let r,n=[],i=-1;if(t){for(r in t)if(null!==t[r]&&void 0!==t[r]){let i=function(e,t,r){let n,i=(0,eX.I)(e.schema,t),a=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,s=+!e.settings.allowDangerousCharacters,o=e.quote;if(i.overloadedBoolean&&(r===i.attribute||""===r)?r=!0:(i.boolean||i.overloadedBoolean)&&("string"!=typeof r||r===i.attribute||""===r)&&(r=!!r),null==r||!1===r||"number"==typeof r&&Number.isNaN(r))return"";let l=ej(i.attribute,Object.assign({},e.settings.characterReferences,{subset:e7.name[a][s]}));return!0===r||(r=Array.isArray(r)?(i.commaSeparated?eV.A:eQ.A)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?l:(e.settings.preferUnquoted&&(n=ej(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:e7.unquoted[a][s]}))),n!==r&&(e.settings.quoteSmart&&(0,eq.D)(r,o)>(0,eq.D)(r,e.alternative)&&(o=e.alternative),n=o+ej(r,Object.assign({},e.settings.characterReferences,{subset:("'"===o?e7.single:e7.double)[a][s],attribute:!0}))+o),l+(n?"="+n:n))}(e,r,t[r]);i&&n.push(i)}}for(;++i<n.length;){let t=e.settings.tightAttributes?n[i].charAt(n[i].length-1):void 0;i!==n.length-1&&'"'!==t&&"'"!==t&&(n[i]+=" ")}return n.join("")}(n,e.properties),c=n.all("html"===a.space&&"template"===e.tagName?e.content:e);return n.schema=a,c&&(o=!1),!u&&s&&e4(e,t,r)||(l.push("<",e.tagName,u?" "+u:""),o&&("svg"===a.space||n.settings.closeSelfClosing)&&(i=u.charAt(u.length-1),(!n.settings.tightSelfClosing||"/"===i||i&&'"'!==i&&"'"!==i)&&l.push(" "),l.push("/")),l.push(">")),l.push(c),o||s&&e8(e,t,r)||l.push("</"+e.tagName+">"),l.join("")},raw:function(e,t,r,n){return n.settings.allowDangerousHtml?e.value:te(e,t,r,n)},root:function(e,t,r,n){return n.all(e)},text:te}}),tr={},tn={},ti=[];function ta(e,t,r){return tt(e,t,r,this)}function ts(e){let t=[],r=e&&e.children||ti,n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}function to(e,t){let r="string"==typeof e?{}:{...e.colorReplacements},n="string"==typeof e?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))"string"==typeof i?r[e]=i:e===n&&Object.assign(r,i);return r}function tl(e,t){return e&&t?.[e?.toLowerCase()]||e}async function tu(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function tc(e){return!e||["plaintext","txt","text","plain"].includes(e)}function th(e){return"ansi"===e||tc(e)}function tp(e){return"none"===e}function td(e,t){if(!t)return e;for(let r of(e.properties||={},e.properties.class||=[],"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]),Array.isArray(t)?t:t.split(/\s+/g)))r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function tf(e,t=!1){if(0===e.length)return[["",0]];let r=e.split(/(\r?\n)/g),n=0,i=[];for(let e=0;e<r.length;e+=2){let a=t?r[e]+(r[e+1]||""):r[e];i.push([a,n]),n+=r[e].length,n+=r[e+1]?.length||0}return i}let tm="light-dark()",tg=["color","background-color"];function ty(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&A.Italic&&(t["font-style"]="italic"),e.fontStyle&A.Bold&&(t["font-weight"]="bold");let r=[];e.fontStyle&A.Underline&&r.push("underline"),e.fontStyle&A.Strikethrough&&r.push("line-through"),r.length&&(t["text-decoration"]=r.join(" "))}return t}function tb(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}let tw=new WeakMap;function t_(e,t){tw.set(e,t)}function tk(e){return tw.get(e)}class tC{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new tC(Object.fromEntries((Array.isArray(t)?t:[t]).map(e=>[e,ex])),e)}constructor(...e){if(2===e.length){let[t,r]=e;this.lang=r,this._stacks=t}else{let[t,r,n]=e;this.lang=r,this._stacks={[n]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){var t=this._stacks[e];let r=[],n=new Set;return!function e(t){if(n.has(t))return;n.add(t);let i=t?.nameScopesList?.scopeName;i&&r.push(i),t.parent&&e(t.parent)}(t),r}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}let tS=[function(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let r=function(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new p(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...n.indexToPos(e),offset:e}}{let t=n.lines[e.line];if(void 0===t)throw new p(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${n.lines.length}`);let r=e.character;if(r<0&&(r=t.length+r),r<0||r>t.length)throw new p(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:r,offset:n.posToIndex(e.line,r)}}},n=function(e){let t=tf(e,!0).map(([e])=>e);return{lines:t,indexToPos:function(r){if(r===e.length)return{line:t.length-1,character:t[t.length-1].length};let n=r,i=0;for(let e of t){if(n<e.length)break;n-=e.length,i++}return{line:i,character:n}},posToIndex:function(e,r){let n=0;for(let r=0;r<e;r++)n+=t[r].length;return n+r}}}(t.source),i=(t.options.decorations||[]).map(e=>({...e,start:r(e.start),end:r(e.end)}));(function(e){for(let t=0;t<e.length;t++){let r=e[t];if(r.start.offset>r.end.offset)throw new p(`Invalid decoration range: ${JSON.stringify(r.start)}
1 - ${JSON.stringify(r.end)}`);for(let n=t+1;n<e.length;n++){let t=e[n],i=r.start.offset<=t.start.offset&&t.start.offset<r.end.offset,a=r.start.offset<t.end.offset&&t.end.offset<=r.end.offset,s=t.start.offset<=r.start.offset&&r.start.offset<t.end.offset,o=t.start.offset<r.end.offset&&r.end.offset<=t.end.offset;if(i||a||s||o){if(i&&a||s&&o||s&&r.start.offset===r.end.offset||a&&t.start.offset===t.end.offset)continue;throw new p(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(t.start)} intersect.`)}}}})(i),e.set(t.meta,{decorations:i,converter:n,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){if(this.options.decorations?.length){var r=e,n=t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]);let i=Array.from(n instanceof Set?n:new Set(n)).sort((e,t)=>e-t);return i.length?r.map(e=>e.flatMap(e=>{let t=i.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);if(!t.length)return e;let r=0,n=[];for(let i of t)i>r&&n.push({...e,content:e.content.slice(r,i),offset:e.offset+r}),r=i;return r<e.content.length&&n.push({...e,content:e.content.slice(r),offset:e.offset+r}),n})):r}},code(e){if(!this.options.decorations?.length)return;let r=t(this),n=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(n.length!==r.converter.lines.length)throw new p(`Number of lines in code element (${n.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function i(e,t,r,i){let s=n[e],o="",l=-1,u=-1;if(0===t&&(l=0),0===r&&(u=0),r===1/0&&(u=s.children.length),-1===l||-1===u)for(let e=0;e<s.children.length;e++)o+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(s.children[e]),-1===l&&o.length===t&&(l=e+1),-1===u&&o.length===r&&(u=e+1);if(-1===l)throw new p(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(-1===u)throw new p(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let c=s.children.slice(l,u);if(i.alwaysWrap||c.length!==s.children.length)if(i.alwaysWrap||1!==c.length||"element"!==c[0].type){let e={type:"element",tagName:"span",properties:{},children:c};a(e,i,"wrapper"),s.children.splice(l,c.length,e)}else a(c[0],i,"token");else a(s,i,"line")}function a(e,t,r){let n=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...n,class:e.properties.class},t.properties?.class&&td(e,t.properties.class),e=i(e,r)||e}let s=[];for(let e of r.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset)){let{start:t,end:r}=e;if(t.line===r.line)i(t.line,t.character,r.character,e);else if(t.line<r.line){i(t.line,t.character,1/0,e);for(let i=t.line+1;i<r.line;i++)s.unshift(()=>{var t;n[t=i]=a(n[t],e,"line")});i(r.line,0,r.character,e)}}s.forEach(e=>e())}}}()];function tx(e){let t=function(e){let t=[],r=[],n=[];for(let i of e)switch(i.enforce){case"pre":t.push(i);break;case"post":r.push(i);break;default:n.push(i)}return{pre:t,post:r,normal:n}}(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...tS]}var tA=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],tv={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function tE(e){let t=e.shift();if("2"===t){let t=e.splice(0,3).map(e=>Number.parseInt(e));if(3!==t.length||t.some(e=>Number.isNaN(e)))return;return{type:"rgb",rgb:t}}if("5"===t){let t=e.shift();if(t)return{type:"table",index:Number(t)}}}var tN={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};let tI={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function tP(e,t,r={}){let{theme:n=e.getLoadedThemes()[0]}=r,i=e.resolveLangAlias(r.lang||"text");if(tc(i)||tp(n))return tf(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:a,colorMap:s}=e.setTheme(n);if("ansi"===i)return function(e,t,r){let n,i,a,s=to(e,r),o=tf(t),l=function(e=tN){let t;function r(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}return{value:function(n){switch(n.type){case"named":return e[n.name];case"rgb":return r(n.rgb);case"table":var i;return i=n.index,function(){if(t)return t;t=[];for(let r=0;r<tA.length;
1r++)t.push(e[tA[r]]);let n=[0,95,135,175,215,255];for(let e=0;e<6;e++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)t.push(r([n[e],n[i],n[a]]));let i=8;for(let e=0;e<24;e++,i+=10)t.push(r([i,i,i]));return t}()[i]}}}}(Object.fromEntries(tA.map(t=>{let r=`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;return[t,e.colors?.[r]||tI[t]]}))),u=(n=null,i=null,a=new Set,{parse(e){let t=[],r=0;do{let s=function(e,t){let r=e.indexOf("\x1b",t);if(-1!==r&&"["===e[r+1]){let t=e.indexOf("m",r);if(-1!==t)return{sequence:e.substring(r+2,t).split(";"),startPosition:r,position:t+1}}return{position:e.length}}(e,r),o=s.sequence?e.substring(r,s.startPosition):e.substring(r);if(o.length>0&&t.push({value:o,foreground:n,background:i,decorations:new Set(a)}),s.sequence){let e=function(e){let t=[];for(;e.length>0;){let r=e.shift();if(!r)continue;let n=Number.parseInt(r);if(!Number.isNaN(n))if(0===n)t.push({type:"resetAll"});else if(n<=9)tv[n]&&t.push({type:"setDecoration",value:tv[n]});else if(n<=29){let e=tv[n-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(n<=37)t.push({type:"setForegroundColor",value:{type:"named",name:tA[n-30]}});else if(38===n){let r=tE(e);r&&t.push({type:"setForegroundColor",value:r})}else if(39===n)t.push({type:"resetForegroundColor"});else if(n<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:tA[n-40]}});else if(48===n){let r=tE(e);r&&t.push({type:"setBackgroundColor",value:r})}else 49===n?t.push({type:"resetBackgroundColor"}):53===n?t.push({type:"setDecoration",value:"overline"}):55===n?t.push({type:"resetDecoration",value:"overline"}):n>=90&&n<=97?t.push({type:"setForegroundColor",value:{type:"named",name:tA[n-90+8]}}):n>=100&&n<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:tA[n-100+8]}})}return t}(s.sequence);for(let t of e)"resetAll"===t.type?(n=null,i=null,a.clear()):"resetForegroundColor"===t.type?n=null:"resetBackgroundColor"===t.type?i=null:"resetDecoration"===t.type&&a.delete(t.value);for(let t of e)"setForegroundColor"===t.type?n=t.value:"setBackgroundColor"===t.type?i=t.value:"setDecoration"===t.type&&a.add(t.value)}r=s.position}while(r<e.length);return t}});return o.map(t=>u.parse(t[0]).map(r=>{let n,i;r.decorations.has("reverse")?(n=r.background?l.value(r.background):e.bg,i=r.foreground?l.value(r.foreground):e.fg):(n=r.foreground?l.value(r.foreground):e.fg,i=r.background?l.value(r.background):void 0),n=tl(n,s),i=tl(i,s),r.decorations.has("dim")&&(n=function(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let e=t[1];if(8===e.length){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${e.slice(0,6)}${t}`}if(6===e.length)return`#${e}80`;if(4===e.length){let t=e[0],r=e[1],n=e[2],i=e[3],a=Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,"0");return`#${t}${t}${r}${r}${n}${n}${a}`}else if(3===e.length){let t=e[0],r=e[1],n=e[2];return`#${t}${t}${r}${r}${n}${n}80`}}let r=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:e}(n));let a=A.None;return r.decorations.has("bold")&&(a|=A.Bold),r.decorations.has("italic")&&(a|=A.Italic),r.decorations.has("underline")&&(a|=A.Underline),r.decorations.has("strikethrough")&&(a|=A.Strikethrough),{content:r.value,offset:t[1],color:n,bgColor:i,fontStyle:a}}))}(a,t,r);let o=e.getLanguage(r.lang||"text");if(r.grammarState){if(r.grammarState.lang!==o.name)throw new p(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${o.name}"`);if(!r.grammarState.themes.includes(a.name))throw new p(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${a.name}"`)}var l=t,u=o,c=a,h=s,d=r;let f=tL(l,u,c,h,d),m=new tC(f.stateStack,u.name,c.name);return t_(f.tokens,m),f.tokens}
1function tL(e,t,r,n,i){let a=to(r,i),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:o=500}=i,l=tf(e),u=i.grammarState?function(e,t){if(!(e instanceof tC))throw new p("Invalid grammar state");return e.getInternalStack(t)}(i.grammarState,r.name)??ex:null!=i.grammarContextCode?tL(i.grammarContextCode,t,r,n,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:ex,c=[],h=[];for(let e=0,p=l.length;e<p;e++){let p,d,[f,m]=l[e];if(""===f){c=[],h.push([]);continue}if(s>0&&f.length>=s){c=[],h.push([{content:f,offset:m,color:"",fontStyle:0}]);continue}i.includeExplanation&&(p=t.tokenizeLine(f,u,o).tokens,d=0);let g=t.tokenizeLine2(f,u,o),y=g.tokens.length/2;for(let e=0;e<y;e++){let t=g.tokens[2*e],s=e+1<y?g.tokens[2*e+2]:f.length;if(t===s)continue;let o=g.tokens[2*e+1],l=tl(n[P.getForeground(o)],a),u=P.getFontStyle(o),h={content:f.substring(t,s),offset:m+t,color:l,fontStyle:u};if(i.includeExplanation){let e=[];if("scopeName"!==i.includeExplanation)for(let t of r.settings){let r;switch(typeof t.scope){case"string":r=t.scope.split(/,/).map(e=>e.trim());break;case"object":r=t.scope;break;default:continue}e.push({settings:t,selectors:r.map(e=>e.split(/ /))})}h.explanation=[];let n=0;for(;t+n<s;){let t=p[d],r=f.substring(t.startIndex,t.endIndex);n+=r.length,h.explanation.push({content:r,scopes:"scopeName"===i.includeExplanation?t.scopes.map(e=>({scopeName:e})):function(e,t){let r=[];for(let n=0,i=t.length;n<i;n++){let i=t[n];r[n]={scopeName:i,themeMatches:function(e,t,r){let n=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(function(e,t,r){if(!t$(e[e.length-1],t))return!1;let n=e.length-2,i=r.length-1;for(;n>=0&&i>=0;)t$(e[n],r[i])&&(n-=1),i-=1;return -1===n}(e,t,r)){n.push(a);break}return n}(e,i,t.slice(0,n))}}return r}(e,t.scopes)}),d+=1}}c.push(h)}h.push(c),c=[],u=g.ruleStack}return{tokens:h,stateStack:u}}function t$(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function tR(e,t,r){let n=Object.entries(r.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),i=n.map(n=>{let i=tP(e,t,{...r,theme:n.theme}),a=tk(i);return{tokens:i,state:a,theme:"string"==typeof n.theme?n.theme:n.theme.name}}),a=function(...e){let t=e.map(()=>[]),r=e.length;for(let n=0;n<e[0].length;n++){let i=e.map(e=>e[n]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let s=i.map(()=>0),o=i.map(e=>e[0]);for(;o.every(e=>e);){let e=Math.min(...o.map(e=>e.content.length));for(let t=0;t<r;t++){let r=o[t];r.content.length===e?(a[t].push(r),s[t]+=1,o[t]=i[t][s[t]]):(a[t].push({...r,content:r.content.slice(0,e)}),o[t]={...r,content:r.content.slice(e),offset:r.offset+e})}}}return t}(...i.map(e=>e.tokens)),s=a[0].map((e,t)=>e.map((e,i)=>{let s={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in r&&r.includeExplanation&&(s.explanation=e.explanation),a.forEach((e,r)=>{let{content:a,explanation:o,offset:l,...u}=e[t][i];s.variants[n[r].color]=u}),s})),o=i[0].state?new tC(Object.fromEntries(i.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),i[0].state.lang):void 0;return o&&t_(s,o),s}function tT(e,t,r){let n,i,a,s,o,l;if("themes"in r){let{defaultColor:u="light",cssVariablePrefix:c="--shiki-",colorsRendering:h="css-vars"}=r,d=Object.entries(r.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===u?-1:+(t.color===u));if(0===d.length)throw new p("`themes` option must not be empty");let f=tR(e,t,r);if(l=tk(f),u&&tm!==u&&!d.find(e=>e.color===u))throw new p(`\`themes\` option must contain the defaultColor key \`${u}\``);let m=d.map(t=>e.getTheme(t.theme)),g=d.map(e=>e.color);a=f.map(e=>e.map(e=>(function(e,t,r,n,i="css-vars"){let a={content:e.content,explanation:e.explanation,offset:e.offset},s=t.map(t=>ty(e.variants[t])),o=new Set(s.flatMap(e=>Object.keys(e))),l={},u=(e,n)=>{let i="color"===n?"":"background-color"===n?"-bg":`-${n}`;return r+t[e]+("color"===n?"":i)};return s.forEach((e,r)=>{for(let a of o){let o=e[a]||"inherit";if(0===r&&n&&tg.includes(a))if(n===tm&&s.length>1){let e=t.findIndex(e=>"light"===e),n=t.findIndex(e=>"dark"===e);if(-1===e||-1===n)throw new p('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let c=s[e][a]||"inherit",h=s[n][a]||"inherit";l[a]=`light-dark(${c}, ${h})`,"css-vars"===i&&(l[u(r,a)]=o)}else l[a]=o;else"css-vars"===i&&(l[u(r,a)]=o)}}),a.htmlStyle=l,a})(e,g,c,u,h))),l&&t_(a,l);let y=d.map(e=>to(e.theme,r));i=tB(d,m,y,c,u,"fg",h),n=tB(d,m,y,c,u,"bg",h),s=`shiki-themes ${m.map(e=>e.name).join(" ")}`,o=u?void 0:[i,n].join(";")}else if("theme"in r){let o=to(r.theme,r);a=tP(e,t,r);let u=e.getTheme(r.theme);n=tl(u.bg,o),i=tl(u.fg,o),s=u.name,l=tk(a)}else throw new p("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:n,themeName:s,rootStyle:o,grammarState:l}}function tB(e,t,r,n,i,a,s){return e.map((o,l)=>{let u=tl(t[l][a],r[l])||"inherit",c=`${n+o.color}${"bg"===a?"-bg":""}:${u}`;if(0===l&&i){if(i===tm&&e.length>1){let n=e.findIndex(e=>"light"===e.color),i=e.findIndex(e=>"dark"===e.color);if(-1===n||-1===i)throw new p('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let s=tl(t[n][a],r[n])||"inherit",o=tl(t[i][a],r[i])||"inherit";return`light-dark(${s}, ${o});${c}`}return u}return"css-vars"===s?c:null}).filter(e=>!!e).join(";")}function tM(e,t,r,n={meta:{},options:r,codeToHast:(t,r)=>tM(e,t,r),codeToTokens:(t,r)=>tT(e,t,r)}){let i=t;for(let e of tx(r))i=e.preprocess?.call(n,i,r)||i;let{tokens:a,fg:s,bg:o,themeName:l,rootStyle:u,grammarState:c}
1=tT(e,i,r),{mergeWhitespaces:h=!0,mergeSameStyleTokens:p=!1}=r;!0===h?a=a.map(e=>{let t,r=[],n="";return e.forEach((i,a)=>{let s=!(i.fontStyle&&(i.fontStyle&A.Underline||i.fontStyle&A.Strikethrough));s&&i.content.match(/^\s+$/)&&e[a+1]?(void 0===t&&(t=i.offset),n+=i.content):n?(s?r.push({...i,offset:t,content:n+i.content}):r.push({content:n,offset:t},i),t=void 0,n=""):r.push(i)}),r}):"never"===h&&(a=a.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,r,n,i]=t;if(!r&&!i)return e;let a=[{...e,offset:e.offset+r.length,content:n}];return r&&a.unshift({content:r,offset:e.offset}),i&&a.push({content:i,offset:e.offset+r.length+n.length}),a}))),p&&(a=a.map(e=>{let t=[];for(let r of e){if(0===t.length){t.push({...r});continue}let e=t[t.length-1],n=tb(e.htmlStyle||ty(e)),i=tb(r.htmlStyle||ty(r)),a=e.fontStyle&&(e.fontStyle&A.Underline||e.fontStyle&A.Strikethrough),s=r.fontStyle&&(r.fontStyle&A.Underline||r.fontStyle&A.Strikethrough);a||s||n!==i?t.push({...r}):e.content+=r.content}return t}));let d={...n,get source(){return i}};for(let e of tx(r))a=e.tokens?.call(d,a)||a;return function(e,t,r,n=tk(e)){let i=tx(t),a=[],s={type:"root",children:[]},{structure:o="classic",tabindex:l="0"}=t,u={class:`shiki ${t.themeName||""}`};for(let[e,r]of(!1!==t.rootStyle&&(null!=t.rootStyle?u.style=t.rootStyle:u.style=`background-color:${t.bg};color:${t.fg}`),!1!==l&&null!=l&&(u.tabindex=l.toString()),Object.entries(t.meta||{})))e.startsWith("_")||(u[e]=r);let c={type:"element",tagName:"pre",properties:u,children:[]},h={type:"element",tagName:"code",properties:{},children:a},p=[],d={...r,structure:o,addClassToHast:td,get source(){return r.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return c},get code(){return h},get lines(){return p}};if(e.forEach((e,t)=>{t&&("inline"===o?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===o&&a.push({type:"text",value:"\n"}));let r={type:"element",tagName:"span",properties:{class:"line"},children:[]},n=0;for(let a of e){let e={type:"element",tagName:"span",properties:{...a.htmlAttrs},children:[{type:"text",value:a.content}]},l=tb(a.htmlStyle||ty(a));for(let s of(l&&(e.properties.style=l),i))e=s?.span?.call(d,e,t+1,n,r,a)||e;"inline"===o?s.children.push(e):"classic"===o&&r.children.push(e),n+=a.content.length}if("classic"===o){for(let e of i)r=e?.line?.call(d,r,t+1)||r;p.push(r),a.push(r)}else"inline"===o&&p.push(r)}),"classic"===o){for(let e of i)h=e?.code?.call(d,h)||h;for(let e of(c.children.push(h),i))c=e?.pre?.call(d,c)||c;s.children.push(c)}else if("inline"===o){let e=[],t={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let r of s.children)"element"===r.type&&"br"===r.tagName?(e.push(t),t={type:"element",tagName:"span",properties:{class:"line"},children:[]}):("element"===r.type||"text"===r.type)&&t.children.push(r);e.push(t);let r={type:"element",tagName:"code",properties:{},children:e};for(let e of i)r=e?.code?.call(d,r)||r;s.children=[];for(let e=0;e<r.children.length;e++){e>0&&s.children.push({type:"element",tagName:"br",properties:{},children:[]});let t=r.children[e];"element"===t.type&&s.children.push(...t.children)}}let f=s;for(let e of i)f=e?.root?.call(d,f)||f;return n&&t_(f,n),f}(a,{...r,fg:s,bg:o,themeName:l,rootStyle:!1!==r.rootStyle&&(r.rootStyle??u)},d,c)}let tO=function(e,t){let r=t||tr,n=r.quote||'"';if('"'!==n&&"'"!==n)throw Error("Invalid quote `"+n+"`, expected `'` or `\"`");return({one:ta,all:ts,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||eA.b,characterReferences:r.characterReferences||tn,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:"svg"===r.space?ev.JW:ev.qy,quote:n,alternative:'"'===n?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)},tU={light:"#333333",dark:"#bbbbbb"},tG={light:"#fffffe",dark:"#1e1e1e"},tD="__shiki_resolved";function tF(e){if(e?.[tD])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:r,fg:n}=t;if(!r||!n){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(n=e.settings.foreground),e?.settings?.background&&(r=e.settings.background),!n&&t?.colors?.["editor.foreground"]&&(n=t.colors["editor.foreground"]),!r&&t?.colors?.["editor.background"]&&(r=t.colors["editor.background"]),n||(n="light"===t.type?tU.light:tU.dark),r||(r="light"===t.type?tG.light:tG.dark),t.fg=n,t.bg=r}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function s(e){if(a.has(e))return a.get(e);i+=1;let r=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${r}`]?s(e):(a.set(e,r),r)}for(let e of(t.settings=t.settings.map(e=>{let r=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),n=e.settings?.background&&!e.settings.background.startsWith("#");if(!r&&!n)return e;let i={...e,settings:{...e.settings}};if(r){let r=s(e.settings.foreground);t.colorReplacements[r]=e.settings.foreground,i.settings.foreground=r}if(n){let r=s(e.settings.background);t.colorReplacements[r]=e.settings.background,i.settings.background=r}return i}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let r=s(t.colors[e]);t.colorReplacements[r]=t.colors[e],t.colors[e]=r}return Object.defineProperty(t,tD,{enumerable:!1,writable:!1,value:!0}),t}async function tj(e){return Array.from(new Set((await Promise.all(e.filter(e=>!th(e)).map(async e=>await tu(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function tW(e){return(await Promise.all(e.map(async e=>tp(e)?null:tF(await tu(e))))).filter(e=>!!e)}
1class tH extends Error{constructor(e){super(e),this.name="ShikiError"}}function tz(e,t){if(!t)return e;if(t[e]){let r=new Set([e]);for(;t[e];){if(e=t[e],r.has(e))throw new tH(`Circular alias \`${Array.from(r).join(" -> ")} -> ${e}\``);r.add(e)}}return e}class tq extends eS{constructor(e,t,r,n={}){super(e),this._resolver=e,this._themes=t,this._langs=r,this._alias=n,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=tF(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=k.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=tz(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let r={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let n=this.loadGrammarWithConfiguration(e.scopeName,1,r);if(n.name=e.name,this._resolvedGrammars.set(e.name,n),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),r=t.filter(([e,t])=>!t);if(r.length){let e=t.filter(([e,t])=>{if(!t)return!1;let n=t.embeddedLanguages||t.embeddedLangs;return n?.some(e=>r.map(([e])=>e).includes(e))}).filter(e=>!r.includes(e));throw new tH(`Missing languages ${r.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(let[e,r]of t)this._resolver.addLanguage(r);for(let[e,r]of t)this.loadLanguage(r)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}}class tV{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),r=[];for(let e=1;e<=t.length;e++){let n=t.slice(0,e).join(".");r=[...r,...this._injections.get(n)||[]]}return r}}let tX=0;async function tQ(e){e.engine||function(e,t=3){if(!(t>3))if(1)console.trace(`[SHIKI DEPRECATE]: ${e}`);else throw Error(`[SHIKI DEPRECATE]: ${e}`)}("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,r,n]=await Promise.all([tW(e.themes||[]),tj(e.langs||[]),e.engine]);return function(e){let t;tX+=1,!1!==e.warnings&&tX>=10&&tX%10==0&&console.warn(`[Shiki] ${tX} instances have been created. Shiki is supposed to be used as a singleton, c
1onsider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let r=!1;if(!e.engine)throw new tH("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(tF),a=new tq(new tV(e.engine,n),i,n,e.langAlias);function s(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};u();let t=a.getTheme(e);if(!t)throw new tH(`Theme \`${e}\` not found, you may need to load it first`);return t}function o(...e){u(),a.loadLanguages(e.flat(1))}function l(...e){for(let t of(u(),e.flat(1)))a.loadTheme(t)}function u(){if(r)throw new tH("Shiki instance has been disposed")}function c(){r||(r=!0,a.dispose(),tX-=1)}return{setTheme:function(e){u();let r=s(e);return t!==e&&(a.setTheme(r),t=e),{theme:r,colorMap:a.getColorMap()}},getTheme:s,getLanguage:function(e){u();let t=a.getGrammar("string"==typeof e?e:e.name);if(!t)throw new tH(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return u(),a.getLoadedThemes()},getLoadedLanguages:function(){return u(),a.getLoadedLanguages()},resolveLangAlias:function(t){return tz(t,e.langAlias)},loadLanguage:async function(...e){return o(await tj(e))},loadLanguageSync:o,loadTheme:async function(...e){return u(),l(await tW(e))},loadThemeSync:l,dispose:c,[Symbol.dispose]:c}}({...e,themes:t,langs:r,engine:n})}async function tJ(e){let t=await tQ(e);return{getLastGrammarState:(...e)=>(function(...e){if(2===e.length)return tk(e[1]);let[t,r,n={}]=e,{lang:i="text",theme:a=t.getLoadedThemes()[0]}=n;if(tc(i)||tp(a))throw new p("Plain language does not have grammar state");if("ansi"===i)throw new p("ANSI language does not have grammar state");let{theme:s,colorMap:o}=t.setTheme(a),l=t.getLanguage(i);return new tC(tL(r,l,s,o,n).stateStack,l.name,s.name)})(t,...e),codeToTokensBase:(e,r)=>tP(t,e,r),codeToTokensWithThemes:(e,r)=>tR(t,e,r),codeToTokens:(e,r)=>tT(t,e,r),codeToHast:(e,r)=>tM(t,e,r),codeToHtml:(e,r)=>(function(e,t,r){let n={meta:{},options:r,codeToHast:(t,r)=>tM(e,t,r),codeToTokens:(t,r)=>tT(e,t,r)},i=tO(tM(e,t,r,n));for(let e of tx(r))i=e.postprocess?.call(n,i,r)||i;return i})(t,e,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}let tZ=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>r.e(61439).then(r.bind(r,61439))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>r.e(39948).then(r.bind(r,39948))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>r.e(65783).then(r.bind(r,65783))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xe9",type:"dark",import:()=>r.e(25354).then(r.bind(r,25354))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>r.e(62652).then(r.bind(r,62652))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>r.e(94923).then(r.bind(r,94923))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>r.e(57840).then(r.bind(r,57840))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>r.e(99346).then(r.bind(r,99346))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>r.e(193).then(r.bind(r,193))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>r.e(30288).then(r.bind(r,30288))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>r.e(36271).then(r.bind(r,36271))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>r.e(32695).then(r.bind(r,32695))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>r.e(11073).then(r.bind(r,11073))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>r.e(81525).then(r.bind(r,81525))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>r.e(984).then(r.bind(r,984))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>r.e(61329).then(r.bind(r,83710))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>r.e(27001).then(r.bind(r,27001))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>r.e(56173).then(r.bind(r,56173))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>r.e(28665).then(r.bind(r,28665))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>r.e(16099).then(r.bind(r,16099))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>r.e(90237).then(r.bind(r,90237))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>r.e(85008).then(r.bind(r,85008))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>r.e(30955).then(r.bind(r,30955))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>r.e(44517).then(r.bind(r,44517))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>r.e(81080).then(r.bind(r,81080))},{id:"houston",displayName:"Houston",type:"dark",import:()=>
1r.e(16409).then(r.bind(r,16409))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>r.e(48986).then(r.bind(r,48986))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>r.e(84766).then(r.bind(r,84766))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>r.e(81040).then(r.bind(r,58659))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>r.e(77209).then(r.bind(r,77209))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>r.e(6082).then(r.bind(r,6082))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>r.e(49692).then(r.bind(r,49692))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>r.e(34514).then(r.bind(r,34514))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>r.e(54410).then(r.bind(r,54410))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>r.e(32009).then(r.bind(r,32009))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>r.e(14585).then(r.bind(r,14585))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>r.e(61022).then(r.bind(r,61022))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>r.e(66872).then(r.bind(r,66872))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>r.e(26257).then(r.bind(r,26257))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>r.e(4044).then(r.bind(r,4044))},{id:"nord",displayName:"Nord",type:"dark",import:()=>r.e(93596).then(r.bind(r,93596))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>r.e(40140).then(r.bind(r,40140))},{id:"one-light",displayName:"One Light",type:"light",import:()=>r.e(20264).then(r.bind(r,20264))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>r.e(20839).then(r.bind(r,20839))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>r.e(50337).then(r.bind(r,50337))},{id:"red",displayName:"Red",type:"dark",import:()=>r.e(31826).then(r.bind(r,31826))},{id:"rose-pine",displayName:"Ros\xe9 Pine",type:"dark",import:()=>r.e(12151).then(r.bind(r,12151))},{id:"rose-pine-dawn",displayName:"Ros\xe9 Pine Dawn",type:"light",import:()=>r.e(11532).then(r.bind(r,11532))},{id:"rose-pine-moon",displayName:"Ros\xe9 Pine Moon",type:"dark",import:()=>r.e(11453).then(r.bind(r,11453))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>r.e(18874).then(r.bind(r,18874))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>r.e(44039).then(r.bind(r,44039))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>r.e(46917).then(r.bind(r,46917))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>r.e(69649).then(r.bind(r,69649))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>r.e(81353).then(r.bind(r,81353))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>r.e(27209).then(r.bind(r,27209))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>r.e(23056).then(r.bind(r,23056))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>r.e(55716).then(r.bind(r,55716))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>r.e(84792).then(r.bind(r,84792))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>r.e(99661).then(r.bind(r,99661))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>r.e(36349).then(r.bind(r,36349))}].map(e=>[e.id,e.import]));var tK=r(62647).hp;class tY extends Error{constructor(e){super(e),this.name="ShikiError"}}function t0(){return"undefined"!=typeof performance?performance.now():Date.now()}let t1=(e,t)=>e+(t-e%t)%t;async function t2(e){let t,r,n={};function i(e){r=e,n.HEAPU8=new Uint8Array(e),n.HEAPU32=new Uint32Array(e)}let a="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function s(e,t){return e?function(e,t,r=1024){let n=t+r,i=t;for(;e[i]&&!(i>=n);)++i;if(i-t>16&&e.buffer&&a)return a.decode(e.subarray(t,i));let s="";for(;t<i;){let r=e[t++];if(!(128&r)){s+=String.fromCharCode(r);continue}let n=63&e[t++];if((224&r)==192){s+=String.fromCharCode((31&r)<<6|n);continue}let i=63&e[t++];if((r=(240&r)==224?(15&r)<<12|n<<6|i:(7&r)<<18|n<<12|i<<6|63&e[t++])<65536)s+=String.fromCharCode(r);else{let e=r-65536;s+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return s}(n.HEAPU8,e,t):""}let o={emscripten_get_now:t0,emscripten_memcpy_big:function(e,t,r){n.HEAPU8.copyWithin(e,t,t+r)},emscripten_resize_heap:function(e){let a=n.HEAPU8.length;if((e>>>=0)>0x80000000)return!1;for(let n=1;n<=4;n*=2){let s=a*(1+.2/n);if(s=Math.min(s,e+0x6000000),function(e){try{return t.grow(e-r.byteLength+65535>>>16),i(t.buffer),1}catch{}}(Math.min(0x80000000,t1(Math.max(e,s),65536))))return!0}return!1},fd_write:()=>0};async function l(){let r=await e({env:o,wasi_snapshot_preview1:o});i((t=r.memory).buffer),Object.assign(n,r),n.UTF8ToString=s}return await l(),n}var t8=Object.defineProperty,t5=(e,t,r)=>((e,t,r)=>t in e?t8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);let t6=null;class t3{constructor(e){t5(this,"utf16Length"),t5(this,"utf8Length"),t5(this,"utf16Value"),t5(this,"utf8Value"),t5(this,"utf16OffsetToUtf8"),t5(this,"utf8Off
1setToUtf16");let t=e.length,r=t3._utf8ByteLength(e),n=r!==t,i=n?new Uint32Array(t+1):null;n&&(i[t]=r);let a=n?new Uint32Array(r+1):null;n&&(a[r]=t);let s=new Uint8Array(r),o=0;for(let r=0;r<t;r++){let l=e.charCodeAt(r),u=l,c=!1;if(l>=55296&&l<=56319&&r+1<t){let t=e.charCodeAt(r+1);t>=56320&&t<=57343&&(u=(l-55296<<10)+65536|t-56320,c=!0)}n&&(i[r]=o,c&&(i[r+1]=o),u<=127?a[o+0]=r:u<=2047?(a[o+0]=r,a[o+1]=r):u<=65535?(a[o+0]=r,a[o+1]=r,a[o+2]=r):(a[o+0]=r,a[o+1]=r,a[o+2]=r,a[o+3]=r)),u<=127?s[o++]=u:(u<=2047?s[o++]=192|(1984&u)>>>6:(u<=65535?s[o++]=224|(61440&u)>>>12:(s[o++]=240|(1835008&u)>>>18,s[o++]=128|(258048&u)>>>12),s[o++]=128|(4032&u)>>>6),s[o++]=128|(63&u)>>>0),c&&r++}this.utf16Length=t,this.utf8Length=r,this.utf16Value=e,this.utf8Value=s,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let t=0;for(let r=0,n=e.length;r<n;r++){let i=e.charCodeAt(r),a=i,s=!1;if(i>=55296&&i<=56319&&r+1<n){let t=e.charCodeAt(r+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,s=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,s&&r++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}let t4=class e{constructor(t){if(t5(this,"id",++e.LAST_ID),t5(this,"_onigBinding"),t5(this,"content"),t5(this,"utf16Length"),t5(this,"utf8Length"),t5(this,"utf16OffsetToUtf8"),t5(this,"utf8OffsetToUtf16"),t5(this,"ptr"),!t6)throw new tY("Must invoke loadWasm first.");this._onigBinding=t6,this.content=t;let r=new t3(t);this.utf16Length=r.utf16Length,this.utf8Length=r.utf8Length,this.utf16OffsetToUtf8=r.utf16OffsetToUtf8,this.utf8OffsetToUtf16=r.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=t6.omalloc(1e4)),e._sharedPtrInUse=!0,t6.HEAPU8.set(r.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=r.createString(t6)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};t5(t4,"LAST_ID",0),t5(t4,"_sharedPtr",0),t5(t4,"_sharedPtrInUse",!1);class t7{constructor(e){if(t5(this,"_onigBinding"),t5(this,"_ptr"),!t6)throw new tY("Must invoke loadWasm first.");let t=[],r=[];for(let n=0,i=e.length;n<i;n++){let i=new t3(e[n]);t[n]=i.createString(t6),r[n]=i.utf8Length}let n=t6.omalloc(4*e.length);t6.HEAPU32.set(t,n/4);let i=t6.omalloc(4*e.length);t6.HEAPU32.set(r,i/4);let a=t6.createOnigScanner(n,i,e.length);for(let r=0,n=e.length;r<n;r++)t6.ofree(t[r]);t6.ofree(i),t6.ofree(n),0===a&&function(e){throw new tY(e.UTF8ToString(e.getLastO
1nigError()))}(t6),this._onigBinding=t6,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,r){let n=0;if("number"==typeof r&&(n=r),"string"==typeof e){e=new t4(e);let r=this._findNextMatchSync(e,t,!1,n);return e.dispose(),r}return this._findNextMatchSync(e,t,!1,n)}_findNextMatchSync(e,t,r,n){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),n);if(0===a)return null;let s=i.HEAPU32,o=a/4,l=s[o++],u=s[o++],c=[];for(let t=0;t<u;t++){let r=e.convertUtf8OffsetToUtf16(s[o++]),n=e.convertUtf8OffsetToUtf16(s[o++]);c[t]={start:r,end:n,length:n-r}}return{index:l,captureIndices:c}}}function t9(e){return t=>WebAssembly.instantiate(e,t)}async function re(e){return e&&await (i||(i=async function(){t6=await t2(async t=>{let r=e;if("function"==typeof(r=await r)&&(r=await r(t)),"function"==typeof r&&(r=await r(t)),"function"==typeof r.instantiator)r=await r.instantiator(t);else if("function"==typeof r.default)r=await r.default(t);else{var n,i,a,s;if(void 0!==r.data&&(r=r.data),n=r,"undefined"!=typeof Response&&n instanceof Response){r="function"==typeof WebAssembly.instantiateStreaming?await (a=r,e=>WebAssembly.instantiateStreaming(a,e))(t):await (s=r,async e=>{let t=await s.arrayBuffer();return WebAssembly.instantiate(t,e)})(t)}else(i=r,"undefined"!=typeof ArrayBuffer&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||void 0!==tK&&tK.isBuffer?.(i)||"undefined"!=typeof SharedArrayBuffer&&i instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&i instanceof Uint32Array||r instanceof WebAssembly.Module)?r=await t9(r)(t):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await t9(r.default)(t))}return"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}())),{createScanner:e=>new t7(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new t4(e)}}let rt=function(e){let t=e.langs,r=e.themes,n=e.engine;return async function(e){function i(r){if("string"==typeof r){if(th(r=e.langAlias?.[r]||r))return[];let n=t[r];if(!n)throw new p(`Language \`${r}\` is not included in this bundle. You may want to load it from external source.`);return n}return r}function a(e){if(tp(e))return"none";if("string"==typeof e){let t=r[e];if(!t)throw new p(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let s=(e.themes??[]).map(e=>a(e)),o=(e.langs??[]).map(e=>i(e)),l=await tJ({engine:e.engine??n(),...e,themes:s,langs:o});return{...l,loadLanguage:(...e)=>l.loadLanguage(...e.map(i)),loadTheme:(...e)=>l.loadTheme(...e.map(a)),getBundledLanguages:()=>t,getBundledThemes:()=>r}}}({langs:h,themes:tZ,engine:()=>re(Promise.all([r.e(7753),r.e(26435)]).then(r.bind(r,26435)))});function rr(e){if(1!=[...e].length)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}let rn=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),ri=String.raw;function ra(e,t){if(null==e)throw Error(t??"Value expected");return e}let rs=ri`\[\^?`,ro=`c.? | C(?:-.?)?|${ri`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${ri`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${ri`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${ri`o\{[^\}]*\}?`}|${ri`\d{1,3}`}`,rl=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,ru=RegExp(ri` 2 \\ (?: 3 ${ro} 4 | [gk]<[^>]*>? 5 | [gk]'[^']*'? 6 | . 7 ) 8 | \( (?: 9 \? (?: 10 [:=!>({] 11 | <[=!] 12 | <[^>]*> 13 | '[^']*' 14 | ~\|? 15 | #(?:[^)\\]|\\.?)* 16 | [^:)]*[:)] 17 )? 18 | \*[^\)]*\)? 19 )? 20 | (?:${rl.source})+ 21 | ${rs} 22 | . 23`.replace(/\s+/g,""),"gsu"),rc=RegExp(ri` 24 \\ (?: 25 ${ro} 26 | . 27 ) 28 | \[:(?:\^?\p{Alpha}+|\^):\] 29 | ${rs} 30 | && 31 | . 32`.replace(/\s+/g,""),"gsu");function rh(e,{inCharClass:t}){let r=e[1];if("c"===r||"C"===r){var n=e;let t="c"===n[1]?n[2]:n[3];if(!t||!/[A-Za-z]/.test(t))throw Error(`Unsupported control character "${n}"`);return rf(rr(t.toUpperCase())-64,n)}if("dDhHsSwW".includes(r)){var i=e;let t=i[1].toLowerCase();return rg({d:"digit",h:"hex",s:"space",w:"word"}[t],i,{negate:i[1]!==t})}if(e.startsWith(ri`\o{`))throw Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);
32if(/^\\[pP]\{/.test(e)){if(3===e.length)throw Error(`Incomplete or invalid Unicode property "${e}"`);var a=e;let{p:t,neg:r,value:n}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(a).groups;return rg("property",a,{value:n,negate:"P"===t&&!r||"p"===t&&!!r})}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(e))try{let t=e.split(/\\x/).slice(1).map(e=>parseInt(e,16)),r=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(t)),n=new TextEncoder;return[...r].map(e=>{let t=[...n.encode(e)].map(e=>`\\x${e.toString(16)}`).join("");return rf(rr(e),t)})}catch{throw Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if("u"===r||"x"===r)return rf(function(e){if(/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(e))throw Error(`Incomplete or invalid escape "${e}"`);return parseInt("{"===e[2]?/^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(e).groups.hex:e.slice(2),16)}(e),e);if(r_.has(r))return rf(r_.get(r),e);if(/\d/.test(r))return{type:"EscapedNumber",inCharClass:t,raw:e};if("\\"===e)throw Error(ri`Incomplete escape "\"`);if("M"===r)throw Error(`Unsupported meta "${e}"`);if(2==[...e].length)return rf(e.codePointAt(1),e);throw Error(`Unexpected escape "${e}"`)}function rp(e,t){return{type:"Assertion",kind:e,raw:t}}function rd(e){return{type:"Backreference",raw:e}}function rf(e,t){return{type:"Character",value:e,raw:t}}function rm(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function rg(e,t,r={}){return{type:"CharacterSet",kind:e,...r,raw:t}}function ry(e,t,r={}){return"keep"===e?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:ra(r.flags),raw:t}}function rb(e,t,r={}){return{type:"GroupOpen",kind:e,...r,raw:t}}let rw=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),r_=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function rk(e){let t=null,r,n;if("{"===e[0]){let{minStr:i,maxStr:a}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups;if(+i>1e5||a&&+a>1e5)throw Error("Quantifier value unsupported in Oniguruma");if((r=+i)>(n=void 0===a?+i:""===a?1/0:+a)&&(t="possessive",[r,n]=[n,r]),e.endsWith("?")){if("possessive"===t)throw Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else r=+("+"===e[0]),n="?"===e[0]?1:1/0,t="+"===e[1]?"possessive":"?"===e[1]?"lazy":"greedy";return{type:"Quantifier",kind:t,min:r,max:n,raw:e}}function rC(e){let t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function rS(e,t){if(!Array.isArray(e.body))throw Error("Expected node with body array");if(1!==e.body.length)return!1;let r=e.body[0];return!t||Object.keys(t).every(e=>t[e]===r[e])}let rx=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function rA(e,t={}){var r;let n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},i=function(e,t={}){let r={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if("string"!=typeof e)throw Error("String expected as pattern");let n=function(e){let t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let r=0;r<e.length;r++){let n=e[r];if(!"imxDPSWy".includes(n))throw Error(`Invalid flag "${n}"`);if("y"===n){if(!/^y{[gw]}/.test(e.slice(r)))throw Error('Invalid or unspecified flag "y" mode');t.textSegmentMode="g"===e[r+2]?"grapheme":"word",r+=3;continue}t[({i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"})[n]]=!0}return t}(r.flags),i=[n.extended],a={captureGroup:r.rules.captureGroup,getCurrentModX:()=>i.at(-1),numOpenGroups:0,popModX(){i.pop()},pushModX(e){i.push(e)},replaceCurrentModX(e){i[i.length-1]=e},singleline:r.rules.singleline},s=[],o;for(ru.lastIndex=0;o=ru.exec(e);){let t=function(e,t,r,n){let[i,a]=r;if("["===r||"[^"===r){let e=function(e,t,r){let n=[rm("^"===t[1],t)],i=1,a;for(rc.lastIndex=r;a=rc.exec(e);){let e=a[0];if("["===e[0]&&":"!==e[1])i++,n.push(rm("^"===e[1],e));else if("]"===e){if("CharacterClassOpen"===n.at(-1).type)n.push(rf(93,e));else if(i--,n.push({type:"CharacterClassClose",raw:e}),!i)break}else{let t=function(e){if("\\"===e[0])return rh(e,{inCharClass:!0});if("["===e[0]){let t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!rn.has(t.groups.name))throw Error(`Invalid POSIX class "${e}"`);return rg("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return"-"===e?{type:"CharacterClassHyphen",raw:e}:"&&"===e?{type:"CharacterClassIntersector",raw:e}:rf(rr(e),e)}(e);Array.isArray(t)?n.push(...t):n.push(t)}}return{tokens:n,lastIndex:rc.lastIndex||e.length}}(t,r,n);return{tokens:e.tokens,lastIndex:e.lastIndex}}if("\\"===i){if("AbBGyYzZ".includes(a))return{token:rp(r,r)};if(/^\\g[<']/.test(r)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(r))throw Error(`Invalid group name "${r}"`);return{token:{type:"Subroutine",raw:r}}}if(/^\\k[<']/.test(r)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(r))throw Error(`Invalid group name "${r}"`);return{token:rd(r)}}if("K"===a)return{token:ry("keep",r)};if("N"===a||"R"===a)return{token:rg("newline",r,{negate:"N"===a})};if("O"===a)return{token:rg("any",r)};if("X"===a)return{token:rg("text_segment",r)};let e=rh(r,{inCharClass:!1}
32);return Array.isArray(e)?{tokens:e}:{token:e}}if("("===i){if("*"===a)return{token:function(e){let t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw Error(`Incomplete or invalid named callout "${e}"`);let{name:r,tag:n,args:i}=t.groups;if(!r)throw Error(`Invalid named callout "${e}"`);if(""===n)throw Error(`Named callout tag with empty value not allowed "${e}"`);let a=i?i.split(",").filter(e=>""!==e).map(e=>/^[+-]?\d+$/.test(e)?+e:e):[],[s,o,l]=a,u=rw.has(r)?r.toLowerCase():"custom";switch(u){case"fail":case"mismatch":case"skip":if(a.length>0)throw Error(`Named callout arguments not allowed "${a}"`);break;case"error":if(a.length>1)throw Error(`Named callout allows only one argument "${a}"`);if("string"==typeof s)throw Error(`Named callout argument must be a number "${s}"`);break;case"max":if(!a.length||a.length>2)throw Error(`Named callout must have one or two arguments "${a}"`);if("string"==typeof s&&!/^[A-Za-z_]\w*$/.test(s))throw Error(`Named callout argument one must be a tag or number "${s}"`);if(2===a.length&&("number"==typeof o||!/^[<>X]$/.test(o)))throw Error(`Named callout optional argument two must be '<', '>', or 'X' "${o}"`);break;case"count":case"total_count":if(a.length>1)throw Error(`Named callout allows only one argument "${a}"`);if(1===a.length&&("number"==typeof s||!/^[<>X]$/.test(s)))throw Error(`Named callout optional argument must be '<', '>', or 'X' "${s}"`);break;case"cmp":if(3!==a.length)throw Error(`Named callout must have three arguments "${a}"`);if("string"==typeof s&&!/^[A-Za-z_]\w*$/.test(s))throw Error(`Named callout argument one must be a tag or number "${s}"`);if("number"==typeof o||!/^(?:[<>!=]=|[<>])$/.test(o))throw Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${o}"`);if("string"==typeof l&&!/^[A-Za-z_]\w*$/.test(l))throw Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw Error(`Undefined callout name "${r}"`);default:throw Error(`Unexpected named callout kind "${u}"`)}return{type:"NamedCallout",kind:u,tag:n??null,arguments:i?.split(",")??null,raw:e}}(r)};if("(?{"===r)throw Error(`Unsupported callout "${r}"`);if(r.startsWith("(?#")){if(")"!==t[n])throw Error('Unclosed comment group "(?#"');return{lastIndex:n+1}}if(/^\(\?[-imx]+[:)]$/.test(r))return{token:function(e,t){let{on:r,off:n}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;n??="";let i=(t.getCurrentModX()||r.includes("x"))&&!n.includes("x"),a=rC(r),s=rC(n),o={};if(a&&(o.enable=a),s&&(o.disable=s),e.endsWith(")"))return t.replaceCurrentModX(i),ry("flags",e,{flags:o});if(e.endsWith(":"))return t.pushModX(i),t.numOpenGroups++,rb("group",e,{...(a||s)&&{flags:o}});throw Error(`Unexpected flag modifier "${e}"`)}(r,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,"("===r&&!e.captureGroup||"(?:"===r)return{token:rb("group",r)};if("(?>"===r)return{token:rb("atomic",r)};if("(?="===r||"(?!"===r||"(?<="===r||"(?<!"===r)return{token:rb("<"===r[2]?"lookbehind":"lookahead",r,{negate:r.endsWith("!")})};if("("===r&&e.captureGroup||r.startsWith("(?<")&&r.endsWith(">")||r.startsWith("(?'")&&r.endsWith("'"))return{token:rb("capturing",r,{..."("!==r&&{name:r.slice(3,-1)}})};if(r.startsWith("(?~")){if("(?~|"===r)throw Error(`Unsupported absence function kind "${r}"`);return{token:rb("absence_repeater",r)}}throw"(?("===r?Error(`Unsupported conditional "${r}"`):Error(`Invalid or unsupported group option "${r}"`)}if(")"===r){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw Error('Unmatched ")"');return{token:{type:"GroupClose",raw:r}}}if(e.getCurrentModX()){if("#"===r){let e=t.indexOf(` 33`,n);return{lastIndex:-1===e?t.length:e}}if(/^\s$/.test(r)){let e=/\s+/y;return e.lastIndex=n,{lastIndex:e.exec(t)?e.lastIndex:n}}}return"."===r?{token:rg("dot",r)}:"^"===r||"$"===r?{token:rp(e.singleline?({"^":ri`\A`,$:ri`\Z`})[r]:r,r)}:"|"===r?{token:{type:"Alternator",raw:r}}:rl.test(r)?{tokens:function(e){let t,r=[],n=RegExp(rl,"gy");for(;t=n.exec(e);){let e=t[0];if("{"===e[0]){let t=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(e);if(t){let{min:i,max:a}=t.groups;if(+i>
33+a&&e.endsWith("?")){n.lastIndex--,r.push(rk(e.slice(0,-1)));continue}}}r.push(rk(e))}return r}(r)}:{token:rf(rr(r),r)}}(a,e,o[0],ru.lastIndex);t.tokens?s.push(...t.tokens):t.token&&s.push(t.token),void 0!==t.lastIndex&&(ru.lastIndex=t.lastIndex)}let l=[],u=0;s.filter(e=>"GroupOpen"===e.type).forEach(e=>{"capturing"===e.kind?e.number=++u:"("===e.raw&&l.push(e)}),u||l.forEach((e,t)=>{e.kind="capturing",e.number=t+1});let c=u||l.length;return{tokens:s.map(e=>"EscapedNumber"===e.type?function(e,t){let{raw:r,inCharClass:n}=e,i=r.slice(1);if(!n&&("0"!==i&&1===i.length||"0"!==i[0]&&+i<=t))return[rd(r)];let a=[],s=i.match(/^[0-7]+|\d/g);for(let e=0;e<s.length;e++){let t,n=s[e];if(0===e&&"8"!==n&&"9"!==n){if((t=parseInt(n,8))>127)throw Error(ri`Octal encoded byte above 177 unsupported "${r}"`)}else t=rr(n);a.push(rf(t,(0===e?"\\":"")+n))}return a}(e,c):e).flat(),flags:n}}(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),a=(e,t)=>{let r=i.tokens[s.nextIndex];switch(s.parent=e,s.nextIndex++,r.type){case"Alternator":return rv();case"Assertion":return function({kind:e}){return rE(ra({"^":"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===ri`\B`||e===ri`\Y`})}(r);case"Backreference":return function({raw:e},t){let r=/^\\k[<']/.test(e),n=r?e.slice(3,-1):e.slice(1),i=(r,n=!1)=>{let i=t.capturingGroups.length,a=!1;if(r>i)if(t.skipBackrefValidation)a=!0;else throw Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,rN(n?i+1-r:r,{orphan:a})};if(r){let r=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(n);if(r)return i(+r.groups.num,!!r.groups.sign);if(/[-+]/.test(n))throw Error(`Invalid backref name "${e}"`);
33if(!t.namedGroupsByName.has(n))throw Error(`Group name not defined to the left "${e}"`);return rN(n)}return i(+n)}(r,s);case"Character":return rP(r.value,{useLastValid:!!t.isCheckingRangeEnd});case"CharacterClassHyphen":return function(e,t,r){let{tokens:n,walk:i}=t,a=t.parent,s=a.body.at(-1),o=n[t.nextIndex];if(!r.isCheckingRangeEnd&&s&&"CharacterClass"!==s.type&&"CharacterClassRange"!==s.type&&o&&"CharacterClassOpen"!==o.type&&"CharacterClassClose"!==o.type&&"CharacterClassIntersector"!==o.type){let e=i(a,{...r,isCheckingRangeEnd:!0});if("Character"===s.type&&"Character"===e.type)return a.body.pop(),function(e,t){if(t.value<e.value)throw Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}(s,e);throw Error("Invalid character class range")}return rP(rr("-"))}(0,s,t);case"CharacterClassOpen":return function({negate:e},t,r){let{tokens:n,walk:i}=t,a=n[t.nextIndex],s=[rL()],o=rW(a);for(;"CharacterClassClose"!==o.type;){if("CharacterClassIntersector"===o.type)s.push(rL()),t.nextIndex++;else{let e=s.at(-1);e.body.push(i(e,r))}o=rW(n[t.nextIndex],a)}let l=rL({negate:e});return 1===s.length?l.body=s[0].body:(l.kind="intersection",l.body=s.map(e=>1===e.body.length?e.body[0]:e)),t.nextIndex++,l}(r,s,t);case"CharacterSet":return function({kind:e,negate:t,value:r},n){let{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:s}=n;if("property"===e){let n=rj(r);if(!rn.has(n)||s?.has(n))return rO(r,{negate:t,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:s});e="posix",r=n}return"posix"===e?function(e,t){let r=!!t?.negate;if(!rn.has(e))throw Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:r}}(r,{negate:t}):r$(e,{negate:t})}(r,s);case"Directive":return function(e,t={}){if("keep"===e)return{type:"Directive",kind:e};if("flags"===e)return{type:"Directive",kind:e,flags:ra(t.flags)};throw Error(`Unexpected directive kind "${e}"`)}(r.kind,{flags:r.flags});case"GroupOpen":return function(e,t,r){var n,i;let{tokens:a,capturingGroups:s,namedGroupsByName:o,skipLookbehindValidation:l,walk:u}=t,c=function({flags:e,kind:t,name:r,negate:n,number:i}){switch(t){case"absence_repeater":var a="repeater";!1;return{type:"AbsenceFunction",kind:a,body:rU(void 0)};case"atomic":return rR({atomic:!0});case"capturing":return rI(i,{name:r});case"group":return rR({flags:e});case"lookahead":case"lookbehind":return rT({behind:"lookbehind"===t,negate:n});default:throw Error(`Unexpected group kind "${t}"`)}}(e),h="AbsenceFunction"===c.type,p=rF(c),d=p&&c.negate;if("CapturingGroup"===c.type&&(s.push(c),c.name&&(n=c.name,i=[],o.has(n)||o.set(n,i),o.get(n)).push(c)),h&&r.isInAbsenceFunction)throw Error("Nested absence function not supported by Oniguruma");let f=rH(a[t.nextIndex]);for(;"GroupClose"!==f.type;){if("Alternator"===f.type)c.body.push(rv()),t.nextIndex++;else{let e=c.body.at(-1),t=u(e,{...r,isInAbsenceFunction:r.isInAbsenceFunction||h,isInLookbehind:r.isInLookbehind||p,isInNegLookbehind:r.isInNegLookbehind||d});if(e.body.push(t),(p||r.isInLookbehind)&&!l){let e="Lookbehind includes a pattern not allowed by Oniguruma";if(d||r.isInNegLookbehind){if(rD(t)||"CapturingGroup"===t.type)throw Error(e)}else if(rD(t)||rF(t)&&t.negate)throw Error(e)}}f=rH(a[t.nextIndex])}return t.nextIndex++,c}(r,s,t);case"NamedCallout":var n,a;return n=r.kind,a=r.tag,{type:"NamedCallout",kind:n,tag:a,arguments:r.arguments};case"Quantifier":return function({kind:e,min:t,max:r},n){let i=n.parent,a=i.body.at(-1);if(!a||!rx.has(a.type))throw Error("Quantifier requires a repeatable token");let s=rB(e,t,r,a);return i.body.pop(),s}(r,s);
33case"Subroutine":return function({raw:e},t){let{capturingGroups:r,subroutines:n}=t,i=e.slice(3,-1),a=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(a){let e=+a.groups.num,n=r.length;if(t.hasNumberedRef=!0,(i=({"":e,"+":n+e,"-":n+1-e})[a.groups.sign])<1)throw Error("Invalid subroutine number")}else"0"===i&&(i=0);let s=rM(i);return n.push(s),s}(r,s);default:throw Error(`Unexpected token type "${r.type}"`)}},s={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:i.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:a},o=(r={type:"Flags",...i.flags},{type:"Regex",body:rU(void 0),flags:r}),l=o.body[0];for(;s.nextIndex<i.tokens.length;){let e=a(l,{});"Alternative"===e.type?(o.body.push(e),l=e):l.body.push(e)}let{capturingGroups:u,hasNumberedRef:c,namedGroupsByName:h,subroutines:p}=s;if(c&&h.size&&!n.rules.captureGroup)throw Error("Numbered backref/subroutine not allowed when using named capture");for(let{ref:e}of p)if("number"==typeof e){if(e>u.length)throw Error("Subroutine uses a group number that's not defined");e&&(u[e-1].isSubroutined=!0)}else if(h.has(e)){if(h.get(e).length>1)throw Error(ri`Subroutine uses a duplicate group name "\g<${e}>"`);h.get(e)[0].isSubroutined=!0}else throw Error(ri`Subroutine uses a group name that's not defined "\g<${e}>"`);return o}function rv(e){return{type:"Alternative",body:rG(e?.body)}}function rE(e,t){let r={type:"Assertion",kind:e};return("word_boundary"===e||"text_segment_boundary"===e)&&(r.negate=!!t?.negate),r}function rN(e,t){let r=!!t?.orphan;return{type:"Backreference",ref:e,...r&&{orphan:r}}}function rI(e,t){var r;let n={name:void 0,isSubroutined:!1,...t};if(void 0!==n.name&&(r=n.name,!/^[\p{Alpha}\p{Pc}][^)]*$/u.test(r)))throw Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:rU(t?.body)}}function rP(e,t){let r={useLastValid:!1,...t};if(e>1114111){let t=e.toString(16);if(r.useLastValid)e=1114111;else throw e>1310719?Error(`Invalid code point out of range "\\x{${t}}"`):Error(`Invalid code point out of range in JS "\\x{${t}}"`)}return{type:"Character",value:e}}function rL(e){let t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:rG(e?.body)}}function r$(e,t){let r=!!t?.negate,n={type:"CharacterSet",kind:e};return("digit"===e||"hex"===e||"newline"===e||"space"===e||"word"===e)&&(n.negate=r),"text_segment"!==e&&("newline"!==e||r)||(n.variableLength=!0),n}function rR(e){let t=e?.atomic,r=e?.flags;if(t&&r)throw Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...r&&{flags:r},body:rU(e?.body)}}function rT(e){let t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:rU(e?.body)}}function rB(e,t,r,n){if(t>r)throw Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:r,body:n}}function rM(e){return{type:"Subroutine",ref:e}}function rO(e,t){let r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},n=r.unicodePropertyMap?.get(rj(e));if(!n){if(r.normalizeUnknownPropertyNames)n=e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,e=>e[0].toUpperCase()+e.slice(1).toLowerCase());else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw Error(ri`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:n??e,negate:r.negate}}function rU(e){if(void 0===e)e=[rv()];else if(!Array.isArray(e)||!e.length||!e.every(e=>"Alternative"===e.type))throw Error("Invalid body; expected array of one or more Alternative nodes");return e}function rG(e){if(void 0===e)e=[];else if(!Array.isArray(e)||!e.every(e=>!!e.type))throw Error("Invalid body; expected array of nodes");return e}function rD(e){return"LookaroundAssertion"===e.type&&"lookahead"===e.kind}function rF(e){return"LookaroundAssertion"===e.type&&"lookbehind"===e.kind}function rj(e){return e.replace(/[- _]+/g,"").toLowerCase()}function rW(e,t){return ra(e,`${t?.type==="Character"&&93===t.value?"Empty":"Unclosed"} character class`)}function rH(e){return ra(e,"Unclosed group")}function rz(e,t,r=null){function n(e,t){for(let r=0;r<e.length;r++){let n=i(e[r],t,r,e);r=Math.max(-1,r+n)}}function i(a,s=null,o=null,l=null){let u=0,c=!1,h={node:a,parent:s,key:o,container:l,root:e,remove(){rq(l).splice(Math.max(0,rV(o)+u),1),u--,c=!0},removeAllNextSiblings:()=>rq(l).splice(rV(o)+1),removeAllPrevSiblings(){let e=rV(o)+u;return u-=e,rq(l).splice(0,Math.max(0,e))},replaceWith(e,t={}){let r=!!t.traverse;l?l[Math.max(0,rV(o)+u)]=e:ra(s,"Can't replace root node")[o]=e,r&&i(e,s,o,l),c=!0},replaceWithMultiple(e,t={}){let r=!!t.traverse;if(rq(l).splice(Math.max(0,rV(o)+u),1,...e),u+=e.length-1,r){let t=0;for(let r=0;r<e.length;r++)t+=i(e[r],s,rV(o)+r+t,l)}c=!0},skip(){c=!0}},{type:p}=a,d=t["*"],f=t[p],m="function"==typeof d?d:d?.enter,g="function"==typeof f?f:f?.enter;if(m?.(h,r),g?.(h,r),!c)switch(p){case"AbsenceFunction":case"CapturingGroup":case"Group":case"Alternative":case"CharacterClass":case"LookaroundAssertion":n(a.body,a);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subrout
33ine":break;case"CharacterClassRange":i(a.min,a,"min"),i(a.max,a,"max");break;case"Quantifier":i(a.body,a,"body");break;case"Regex":n(a.body,a),i(a.flags,a,"flags");break;default:throw Error(`Unexpected node type "${p}"`)}return f?.exit?.(h,r),d?.exit?.(h,r),u}return i(e),e}function rq(e){if(!Array.isArray(e))throw Error("Container expected");return e}function rV(e){if("number"!=typeof e)throw Error("Numeric key expected");return e}let rX=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`,rQ=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function rJ(e,t,r,n){let i=RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),a=[!1],s=0,o="";for(let t of e.matchAll(i)){let{0:e,groups:{$skip:i}}=t;if(!i&&(!n||n===rQ.DEFAULT==!s)){r instanceof Function?o+=r(t,{context:s?rQ.CHAR_CLASS:rQ.DEFAULT,negated:a[a.length-1]}):o+=r;continue}"["===e[0]?(s++,a.push("^"===e[1])):"]"===e&&s&&(s--,a.pop()),o+=e}return o}function rZ(e,t,r){return!!function(e,t,r=0,n){let i;if(!RegExp(t,"su").test(e))return null;let a=RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");a.lastIndex=r;let s=0;for(;i=a.exec(e);){let{0:e,groups:{$skip:t}}=i;if(!t&&(!n||n===rQ.DEFAULT==!s))return i;"["===e?s++:"]"===e&&s&&s--,a.lastIndex==i.index&&a.lastIndex++}return null}(e,t,0,r)}let rK=RegExp(String.raw`(?<noncapturingStart>${rX})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu"),rY=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,r0=RegExp(String.raw` 34\\(?: \d+ 35 | c[A-Za-z] 36 | [gk]<[^>]+> 37 | [pPu]\{[^\}]+\} 38 | u[A-Fa-f\d]{4} 39 | x[A-Fa-f\d]{2} 40 ) 41| \((?: \? (?: [:=!>] 42 | <(?:[=!]|[^>]+>) 43 | [A-Za-z\-]+: 44 | \(DEFINE\) 45 ))? 46| (?<qBase>${rY})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?) 47| \\?. 48`.replace(/\s+/g,""),"gsu"),r1=String.raw,r2=r1`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,r8=r1`\(\?R=(?<rDepth>[^\)]+)\)|${r2}`,r5=r1`\(\?<(?![=!])(?<captureName>[^>]+)>`,r6=r1`${r5}|(?<unnamed>\()(?!\?)`,r3=RegExp(r1`${r5}|${r8}|\(\?|\\?.`,"gsu"),r4="Cannot use multiple overlapping recursions";function r7(e){let t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e)||(e*=1)<2||e>100)throw Error(t)}function r9(e,t,r,n,i,a,s){let o=new Set;n&&rJ(e+t,r5,({groups:{captureName:e}})=>{o.add(e)},rQ.DEFAULT);let l=[r,n?o:null,i,a,s];return`${e}${ne(`(?:${e}`,"forward",...l)}(?:)${ne(`${t})`,"backward",...l)}${t}`}function ne(e,t,r,n,i,a,s){let o=e=>"forward"===t?e+2:r-e+2-1,l="";for(let t=0;t<r;t++){let r=o(t);l+=rJ(e,r1`${r6}|\\k<(?<backref>[^>]+)>`,({0:e,groups:{captureName:t,unnamed:o,backref:l}})=>{if(l&&n&&!n.has(l))return e;let u=`_$${r}`;if(o||t){let r=s+a.length+1;return a.push(r),function(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}(i,r),o?e:`(?<${t}${u}>`}return r1`\k<${l}${u}>`},rQ.DEFAULT)}return l}function nt(e,t,r,n,i,a){if(e.size&&n){let s=0;rJ(t,r6,()=>s++,rQ.DEFAULT);let o=a-s+i,l=new Map;return e.forEach((e,t)=>{let i=(n-s*r)/r,a=s*r,u=t>o+s?t+n:t,c=[];for(let t of e)if(t<=o)c.push(t);else if(t>o+s+i)c.push(t+n);else if(t<=o+s)for(let e=0;e<=r;e++)c.push(t+s*e);else for(let e=0;e<=r;e++)c.push(t+a+i*e);l.set(u,c)}),l}return e}var nr=String.fromCodePoint,nn=String.raw,ni={flagGroups:(()=>{try{RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{RegExp("[[]]","v")}catch{return!1}return!0})()};function na(e,{enable:t,disable:r}){return{dotAll:!r?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!r?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function ns(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}ni.bugFlagVLiteralHyphenIsRange=!!ni.unicodeSets&&(()=>{try{RegExp(nn`[\d\-a]`,"v")}catch{return!0}return!1})(),ni.bugNestedClassIgnoresNegation=ni.unicodeSets&&RegExp("[[^a]]","v").test("a");var no={ES2025:2025,ES2024:2024,ES2018:2018},nl={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function nu(e={}){if("[object Object]"!==({}).toString.call(e))throw Error("Unexpected options");
48if(void 0!==e.target&&!nl[e.target])throw Error(`Unexpected target "${e.target}"`);let t={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"auto"===t.target&&(t.target=ni.flagGroups?"ES2025":ni.unicodeSets?"ES2024":"ES2018"),t}var nc=new Set([nr(304),nr(305)]),nh=nn`[\p{L}\p{M}\p{N}\p{Pc}]`;function np(e){if(nc.has(e))return[e];let t=new Set,r=e.toLowerCase(),n=r.toUpperCase(),i=ng.get(r),a=nf.get(r),s=nm.get(r);return 1==[...n].length&&t.add(n),s&&t.add(s),i&&t.add(i),t.add(r),a&&t.add(a),[...t]}var nd=new Map(`C Other 49Cc Control cntrl 50Cf Format 51Cn Unassigned 52Co Private_Use 53Cs Surrogate 54L Letter 55LC Cased_Letter 56Ll Lowercase_Letter 57Lm Modifier_Letter 58Lo Other_Letter 59Lt Titlecase_Letter 60Lu Uppercase_Letter 61M Mark Combining_Mark 62Mc Spacing_Mark 63Me Enclosing_Mark 64Mn Nonspacing_Mark 65N Number 66Nd Decimal_Number digit 67Nl Letter_Number 68No Other_Number 69P Punctuation punct 70Pc Connector_Punctuation 71Pd Dash_Punctuation 72Pe Close_Punctuation 73Pf Final_Punctuation 74Pi Initial_Punctuation 75Po Other_Punctuation 76Ps Open_Punctuation 77S Symbol 78Sc Currency_Symbol 79Sk Modifier_Symbol 80Sm Math_Symbol 81So Other_Symbol 82Z Separator 83Zl Line_Separator 84Zp Paragraph_Separator 85Zs Space_Separator 86ASCII 87ASCII_Hex_Digit AHex 88Alphabetic Alpha 89Any 90Assigned 91Bidi_Control Bidi_C 92Bidi_Mirrored Bidi_M 93Case_Ignorable CI 94Cased 95Changes_When_Casefolded CWCF 96Changes_When_Casemapped CWCM 97Changes_When_Lowercased CWL 98Changes_When_NFKC_Casefolded CWKCF 99Changes_When_Titlecased CWT 100Changes_When_Uppercased CWU 101Dash 102Default_Ignorable_Code_Point DI 103Deprecated Dep 104Diacritic Dia 105Emoji 106Emoji_Component EComp 107Emoji_Modifier EMod 108Emoji_Modifier_Base EBase 109Emoji_Presentation EPres 110Extended_Pictographic ExtPict 111Extender Ext 112Grapheme_Base Gr_Base 113Grapheme_Extend Gr_Ext 114Hex_Digit Hex 115IDS_Binary_Operator IDSB 116IDS_Trinary_Operator IDST 117ID_Continue IDC 118ID_Start IDS 119Ideographic Ideo 120Join_Control Join_C 121Logical_Order_Exception LOE 122Lowercase Lower 123Math 124Noncharacter_Code_Point NChar 125Pattern_Syntax Pat_Syn 126Pattern_White_Space Pat_WS 127Quotation_Mark QMark 128Radical 129Regional_Indicator RI 130Sentence_Terminal STerm
131Soft_Dotted SD 132Terminal_Punctuation Term 133Unified_Ideograph UIdeo 134Uppercase Upper 135Variation_Selector VS 136White_Space space 137XID_Continue XIDC 138XID_Start XIDS`.split(/\s/).map(e=>[rj(e),e])),nf=new Map([["s",nr(383)],[nr(383),"s"]]),nm=new Map([[nr(223),nr(7838)],[nr(107),nr(8490)],[nr(229),nr(8491)],[nr(969),nr(8486)]]),ng=new Map([nb(453),nb(456),nb(459),nb(498),...nw(8072,8079),...nw(8088,8095),...nw(8104,8111),nb(8124),nb(8140),nb(8188)]),ny=new Map([["alnum",nn`[\p{Alpha}\p{Nd}]`],["alpha",nn`\p{Alpha}`],["ascii",nn`\p{ASCII}`],["blank",nn`[\p{Zs}\t]`],["cntrl",nn`\p{Cc}`],["digit",nn`\p{Nd}`],["graph",nn`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",nn`\p{Lower}`],["print",nn`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",nn`[\p{P}\p{S}]`],["space",nn`\p{space}`],["upper",nn`\p{Upper}`],["word",nn`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",nn`\p{AHex}`]]);function nb(e){let t=nr(e);return[t.toLowerCase(),t]}function nw(e,t){return(function(e,t){let r=[];for(let n=e;n<=t;n++)r.push(n);return r})(e,t).map(e=>nb(e))}var n_=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]),nk={AbsenceFunction({node:e,parent:t,replaceWith:r}){let{body:n,kind:i}=e;if("repeater"===i){let e=rR();e.body[0].body.push(rT({negate:!0,body:n}),rO("Any"));let i=rR();i.body[0].body.push(rB("greedy",0,1/0,e)),r(nR(i,t),{traverse:!0})}else throw Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:r},{flagDirectivesByAlt:n}){let i=e.body.filter(e=>"flags"===e.kind);for(let e=r+1;e<t.body.length;e++)ns(n,t.body[e],[]).push(...i)},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){let r=nE(t.get(e));if(r){let t=rR({flags:r});t.body[0].body=e.body,e.body=[nR(t,e)]}}}},Assertion({node:e,parent:t,key:r,container:n,root:i,remove:a,replaceWith:s},o){let{kind:l,negate:u}=e,{asciiWordBoundaries:c,avoidSubclass:h,supportedGNodes:p,wordIsAscii:d}=o;if("text_segment_boundary"===l)throw Error(`Unsupported text segment boundary "\\${u?"Y":"y"}"`);if("line_end"===l)s(nR(rT({body:[rv({body:[rE("string_end")]}),rv({body:[rP(10)]})]}),t));else if("line_start"===l)s(nR(nP(nn`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if("search_start"===l)if(p.has(e))i.flags.sticky=!0,a();else{let e=n[r-1];if(e&&function(e){let t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||"Quantifier"===e.type&&e.min&&t.includes(e.body.type)}(e))s(nR(rT({negate:!0}),t));else if(h)throw Error(nn`Uses "\G" in a way that requires a subclass`);else s(n$(rE("string_start"),t)),o.strategy="clip_search"}else if("string_end"===l||"string_start"===l);else if("string_end_newline"===l)s(nR(nP(nn`(?=\n?\z)`),t));else if("word_boundary"===l){if(!d&&!c){let e=`(?:(?<=${nh})(?!${nh})|(?<!${nh})(?=${nh}))`,r=`(?:(?<=${nh})(?=${nh})|(?<!${nh})(?!${nh}))`;s(nR(nP(u?r:e),t))}}else throw Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:r}=e;"string"!=typeof r||nI(r)||(e.ref=r=nv(r,t))},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:r}){let{name:n}=e;n&&!nI(n)&&(e.name=n=nv(n,t)),r.set(e.number,e),n&&r.set(n,e)},CharacterClassRange({node:e,parent:t,replaceWith:r}){"intersection"===t.kind&&r(nR(rL({body:[e]}),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:r},{accuracy:n,minTargetEs2024:i,digitIsAscii:a,spaceIsAscii:s,wordIsAscii:o}){let{kind:l,negate:u,value:c}=e;if(a&&("digit"===l||"digit"===c))return void r(n$(r$("digit",{negate:u}),t));if(s&&("space"===l||"space"===c))return void r(nR(nL(nP("[ -\r ]"),u),t));if(o&&("word"===l||"word"===c))return void r(n$(r$("word",{negate:u}),t));if("any"===l)r(n$(rO("Any"),t));else if("digit"===l)r(n$(rO("Nd",{negate:u}),t));else if("dot"===l);else if("text_segment"===l){if("strict"===n)throw Error(nn`Use of "\X" requires non-strict accuracy`);let e="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",a=nn`\p{RI}{2}|${e}(?:\u200D${e})*`;r(nR(nP(nn`(?>\r\n|${i?nn`\p{RGI_Emoji}`:a}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if("hex"===l)r(n$(rO("AHex",{negate:u}),t));else if("newline"===l)r(nR(nP(u?"[^\n]":"(?>\r\n?|[\n\v\f\x85\u2028\u2029])"),t));else if("posix"===l)if(i||"graph"!==c&&"print"!==c)r(nR(nL(nP(ny.get(c)),u),t));else{if("strict"===n)throw Error(`POSIX class "${c}" requires min target ES2024 or non-strict accuracy`);let e={graph:"!-~",print:" -~"}[c];u&&(e=`\0-${nr(e.codePointAt(0)-1)}${nr(e.codePointAt(2)+1)}-\u{10FFFF}`),r(nR(nP(`[${e}]`),t))}else if("property"===l)nd.has(rj(c))||(e.key="sc");
138else if("space"===l)r(n$(rO("space",{negate:u}),t));else if("word"===l)r(nR(nL(nP(nh),u),t));else throw Error(`Unexpected character set kind "${l}"`)},Directive({node:e,parent:t,root:r,remove:n,replaceWith:i,removeAllPrevSiblings:a,removeAllNextSiblings:s}){let{kind:o,flags:l}=e;if("flags"===o)if(l.enable||l.disable){let e=rR({flags:l});e.body[0].body=s(),i(nR(e,t),{traverse:!0})}else n();else if("keep"===o){let e=r.body[0],n=1===r.body.length&&rS(e,{type:"Group"})&&1===e.body[0].body.length?e.body[0]:r;if(t.parent!==n||n.body.length>1)throw Error(nn`Uses "\K" in a way that's unsupported`);let s=rT({behind:!0});s.body[0].body=a(),i(nR(s,t))}else throw Error(`Unexpected directive kind "${o}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw Error('Unsupported flag "P"');if("word"===e.textSegmentMode)throw 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}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;let{enable:t,disable:r}=e.flags;t?.extended&&delete t.extended,r?.extended&&delete r.extended,t?.dotAll&&r?.dotAll&&delete t.dotAll,t?.ignoreCase&&r?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,r&&!Object.keys(r).length&&delete e.flags.disable,e.flags.enable||e.flags.disable||delete e.flags},LookaroundAssertion({node:e},t){let{kind:r}=e;"lookbehind"===r&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:r}){let{kind:n}=e;if("fail"===n)r(nR(rT({negate:!0}),t));else throw Error(`Unsupported named callout "(*${n.toUpperCase()}"`)},Quantifier({node:e}){if("Quantifier"===e.body.type){let t=rR();t.body[0].body.push(e.body),e.body=nR(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let r=[],n=!1,i=!1;for(let t of e.body)if(1===t.body.length&&"search_start"===t.body[0].kind)t.body.pop();else{let e=function e(t){let r=t.find(e=>"search_start"===e.kind||function(e,t){let r={negate:null,...t};return"LookaroundAssertion"===e.type&&(null===r.negate||e.negate===r.negate)&&1===e.body.length&&rS(e.body[0],{type:"Assertion",kind:"search_start"})}(e,{negate:!1})||!function({type:e}){return"Assertion"===e||"Directive"===e||"LookaroundAssertion"===e}(e));if(!r)return null;if("search_start"===r.kind)return r;if("LookaroundAssertion"===r.type)return r.body[0].body[0];if("CapturingGroup"===r.type||"Group"===r.type){let t=[];for(let n of r.body){let r=e(n.body);if(!r)return null;Array.isArray(r)?t.push(...r):t.push(r)}return t}return null}(t.body);e?(n=!0,Array.isArray(e)?r.push(...e):r.push(e)):i=!0}n&&!i&&r.forEach(e=>t.add(e))},exit(e,{accuracy:t,passedLookbehind:r,strategy:n}){if("strict"===t&&r&&n)throw Error(nn`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:r}=e;"string"!=typeof r||nI(r)||(e.ref=r=nv(r,t))}},nC={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:r}){let{orphan:n,ref:i}=e;n||r.set(e,[...t.get(i).map(({node:e})=>e)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:r,skip:n},{groupOriginByCopy:i,groupsByName:a,multiplexCapturesToLeftByRef:s,openRefs:o,reffedNodesByReferencer:l}){let u=i.get(e);if(u&&o.has(e.number)){let n=n$(nA(e.number),t);l.set(n,o.get(e.number)),r(n);return}o.set(e.number,e),s.set(e.number,[]),e.name&&ns(s,e.name,[]);let c=s.get(e.name??e.number);for(let t=0;t<c.length;t++){let r=c[t];if(u===r.node||u&&u===r.origin||e===r.origin){c.splice(t,1);break}}if(s.get(e.number).push({node:e,origin:u}),e.name&&s.get(e.name).push({node:e,origin:u}),e.name){let t=ns(a,e.name,new Map),r=!1;if(u)r=!0;else for(let e of t.values())if(!e.hasDuplicateNameToRemove){r=!0;break}a.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:r})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=na(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:r},n){let{isRecursive:i,ref:a}=e;if(i){let r=t;for(;(r=r.parent)&&("CapturingGroup"!==r.type||r.name!==a&&r.number!==a););n.reffedNodesByReferencer.set(e,r);return}let s=n.subroutineRefMap.get(a),o=0===a,l=o?nA(0):function e(t,r,n,i){let a=Array.isArray(t)?[]:{};for(let[s,o]of Object.entries(t))"parent"===s?a.parent=Array.isArray(n)?i:n:o&&"object"==typeof o?a[s]=e(o,r,a,n):("type"===s&&"CapturingGroup"===o&&r.set(a,r.get(t)??t),a[s]=o);return a}(s,n.groupOriginByCopy,null),u=l;if(!o){var c,h;let e=nE(function(e,t){let r=[];for(;e=e.parent;)(!t||t(e))&&r.push(e);return r}(s,e=>"Group"===e.type&&!!e.flags)),t=e?na(n.globalFlags,e):n.globalFlags;c=t,h=n.currentFlags,(c.dotAll!==h.dotAll||c.ignoreCase!==h.ignoreCase)&&(u=rR({flags:function({dotAll:e,ignoreCase:t}){let r={};return(e||t)&&(r.enable={}
138,e&&(r.enable.dotAll=!0),t&&(r.enable.ignoreCase=!0)),e&&t||(r.disable={},e||(r.disable.dotAll=!0),t||(r.disable.ignoreCase=!0)),r}(t)})).body[0].body.push(l)}r(nR(u,t),{traverse:!o})}},nS={Backreference({node:e,parent:t,replaceWith:r},n){if(e.orphan){n.highestOrphanBackref=Math.max(n.highestOrphanBackref,e.ref);return}let i=n.reffedNodesByReferencer.get(e).filter(t=>(function(e,t){let r=t;do{if("Regex"===r.type)return!1;if("Alternative"===r.type)continue;if(r===e)return!1;for(let t of nN(r.parent)){if(t===r)break;if(t===e||function e(t,r){for(let n of nN(t)??[])if(n===r||e(n,r))return!0;return!1}(t,e))return!0}}while(r=r.parent);throw Error("Unexpected path")})(t,e));i.length?i.length>1?r(nR(rR({atomic:!0,body:i.reverse().map(e=>rv({body:[rN(e.number)]}))}),t)):e.ref=i[0].number:r(nR(rT({negate:!0}),t))},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){let r=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let t=0;t<r;t++){let t=rI();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){e.isRecursive&&0!==e.ref&&(e.ref=t.reffedNodesByReferencer.get(e).number)}};function nx(e){rz(e,{"*"({node:e,parent:t}){e.parent=t}})}function nA(e){let t=rM(e);return t.isRecursive=!0,t}function nv(e,t){if(t.has(e))return t.get(e);let r=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,r),r}function nE(e){let t=["dotAll","ignoreCase"],r={enable:{},disable:{}};return(e.forEach(({flags:e})=>{t.forEach(t=>{e.enable?.[t]&&(delete r.disable[t],r.enable[t]=!0),e.disable?.[t]&&(r.disable[t]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable)?r:null}function nN(e){if(!e)throw Error("Node expected");let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function nI(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function nP(e,t){let r=rA(e,{...t,unicodePropertyMap:nd}).body;return r.length>1||r[0].body.length>1?rR({body:r}):r[0].body[0]}function nL(e,t){return e.negate=t,e}function n$(e,t){return e.parent=t,e}function nR(e,t){return nx(e),e.parent=t,e}var nT={"*":{enter({node:e},t){if(nH(e)){let r=t.getCurrentModI();t.pushModI(e.flags?na({ignoreCase:r},e.flags).ignoreCase:r)}},exit({node:e},t){nH(e)&&t.popModI()}}
138,Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){nF(nr(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},r){t(),nj(e,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:e},t){"property"===e.kind&&n_.has(e.value)&&t.setHasCasedChar()}},nB={Alternative:({body:e},t,r)=>e.map(r).join(""),Assertion({kind:e,negate:t}){if("string_end"===e)return"$";if("string_start"===e)return"^";if("word_boundary"===e)return t?nn`\B`:nn`\b`;throw Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if("number"!=typeof e)throw Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&"strict"===t.accuracy&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,r){let{body:n,name:i,number:a}=e,s={ignoreCase:t.currentFlags.ignoreCase},o=t.originMap.get(e);return o&&(s.hidden=!0,a>o.number&&(s.transferTo=o.number)),t.captureMap.set(a,s),`(${i?`?<${i}>`:""}${n.map(r).join("|")})`},Character({value:e},t){let r=nr(e),n=nW(e,{escDigit:"Backreference"===t.lastNode.type,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(n!==r)return n;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&nF(r)){let e=np(r);return t.inCharClass?e.join(""):e.length>1?`[${e.join("")}]`:e[0]}return r},CharacterClass(e,t,r){let{kind:n,negate:i,parent:a}=e,{body:s}=e;if("intersection"===n&&!t.useFlagV)throw Error("Use of character class intersection requires min target ES2024");ni.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&s.some(nz)&&(s=[rP(45),...s.filter(e=>!nz(e))]);let o=()=>`[${i?"^":""}${s.map(r).join("intersection"===n?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||ni.bugNestedClassIgnoresNegation)&&!i){let t=s.filter(e=>"CharacterClass"===e.type&&"union"===e.kind&&e.negate);if(t.length){let n=rR(),i=n.body[0];return n.parent=a,i.parent=n,e.body=s=s.filter(e=>!t.includes(e)),s.length?(e.parent=i,i.body.push(e)):n.body.pop(),t.forEach(e=>{let t=rv({body:[e]});e.parent=t,t.parent=n,n.body.push(t)}),r(n)}}t.inCharClass=!0;let n=o();return t.inCharClass=!1,n}let l=s[0];if("union"===n&&!i&&l&&((!t.useFlagV||!t.verbose)&&"union"===a.kind&&!(ni.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&"intersection"===a.kind&&1===s.length&&"CharacterClassRange"!==l.type))return s.map(r).join("");if(!t.useFlagV&&"CharacterClass"===a.type)throw Error("Uses nested character class in a way that requires min target ES2024");return o()},CharacterClassRange(e,t){let r=e.min.value,n=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},a=nW(r,i),s=nW(n,i),o=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&(function(e){let t=e.map(e=>e.codePointAt(0)).sort((e,t)=>e-t),r=[],n=null;for(let e=0;e<t.length;e++)t[e+1]===t[e]+1?n??=t[e]:null===n?r.push(t[e]):(r.push([n,t[e]]),n=null);return r})(nj(e)).forEach(e=>{o.add(Array.isArray(e)?`${nW(e[0],i)}-${nW(e[1],i)}`:nW(e,i))}),`${a}-${s}${[...o].join("")}`},CharacterSet({kind:e,negate:t,value:r,key:n},i){if("dot"===e)return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?".":"[^]":nn`[^\n]`;if("digit"===e)return t?nn`\D`:nn`\d`;if("property"===e){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&n_.has(r))throw Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${t?nn`\P`:nn`\p`}{${n?`${n}=`:""}${r}}`}if("word"===e)return t?nn`\W`:nn`\w`;throw Error(`Unexpected character set kind "${e}"`)},Flags:(e,t)=>(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":""),Group({atomic:e,body:t,flags:r,parent:n},i,a){let s=i.currentFlags;r&&(i.currentFlags=na(s,r));let o=t.map(a).join("|"),l=i.verbose||1!==t.length||"Quantifier"===n.type||e||i.useFlagMods&&r?`(?${function(e,t,r){if(e)return">";let n="";if(t&&r){let{enable:e,disable:r}=t;n=(e?.ignoreCase?"i":"")+(e?.dotAll?"s":"")+(r?"-":"")+(r?.ignoreCase?"i":"")+(r?.dotAll?"s":"")}return`${n}:`}(e,r,i.useFlagMods)}${o})`:o;return i.currentFlags=s,l},LookaroundAssertion({body:e,kind:t,negate:r},n,i){let a=`${"lookahead"===t?"":"<"}${r?"!":"="}`;return`(?${a}${e.map(i).join("|")})`},Quantifier:(e,t,r)=>r(e.body)+function({kind:e,max:t,min:r}){return(r||1!==t?r||t!==1/0?1===r&&t===1/0?"+":r===t?`{${r}}`:`{${r},${t===1/0?"":t}}`:"*":"?")+({greedy:"",lazy:"?",possessive:"+"})[e]}(e),Subroutine({isRecursive:e,ref:t},r){if(!e)throw Error("Unexpected non-recursive subroutine in transformed AST");let n=r.recursionLimit;return 0===t?`(?R=${n})`:nn`\g<${t}&R=${n}>`}},nM=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),nO=new Set(["-","\\","]","^","["]),nU=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),nG=new Map([[9,nn`\t`],[10,nn`\n`],[11,nn`\v`],[12,nn`\f`],[13,nn`\r`],[8232,nn`\u2028`],[8233,nn`\u2029`],[65279,nn`\uFEFF`]]),nD=/^\p{Cased}$/u;function nF(e){return nD.test(e)}function nj(e,t){let r=!!t?.firstOnly,n=e.min.value,i=e.max.value,a=[];if(n<65&&(65535===i||i>=131071)||65536===n&&i>=131071)return a;for(let e=n;e<=i;e++){let t=nr(e);
138if(!nF(t))continue;let s=np(t).filter(e=>{let t=e.codePointAt(0);return t<n||t>i});if(s.length&&(a.push(...s),r))break}return a}function nW(e,{escDigit:t,inCharClass:r,useFlagV:n}){var i;if(nG.has(e))return nG.get(e);if(e<32||e>126&&e<160||e>262143||t&&(i=e)>47&&i<58)return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;let a=nr(e);return((r?n?nU:nO:nM).has(a)?"\\":"")+a}function nH({type:e}){return"CapturingGroup"===e||"Group"===e||"LookaroundAssertion"===e}function nz({type:e,value:t}){return"Character"===e&&45===t}var nq=class e extends RegExp{#e=new Map;#t=null;#r;#n=null;#i=null;rawOptions={};get source(){return this.#r||"(?:)"}constructor(t,r,n){let i=!!n?.lazyCompile;if(t instanceof RegExp){if(n)throw Error("Cannot provide options when copying a regexp");super(t,r),this.#r=t.source,t instanceof e&&(this.#e=t.#e,this.#n=t.#n,this.#i=t.#i,this.rawOptions=t.rawOptions)}else{let e={hiddenCaptures:[],strategy:null,transfers:[],...n};super(i?"":t,r),this.#r=t,this.#e=function(e,t){let r=new Map;for(let t of e)r.set(t,{hidden:!0});for(let[e,n]of t)for(let t of n)ns(r,t,{}).transferTo=e;return r}(e.hiddenCaptures,e.transfers),this.#i=e.strategy,this.rawOptions=n??{}}i||(this.#t=this)}exec(t){if(!this.#t){let{lazyCompile:t,...r}=this.rawOptions;this.#t=new e(this.#r,this.flags,r)}let r=this.global||this.sticky,n=this.lastIndex;if("clip_search"===this.#i&&r&&n){this.lastIndex=0;let e=this.#a(t.slice(n));return e&&(function(e,t,r,n){if(e.index+=t,e.input=r,n){let r=e.indices;for(let e=0;e<r.length;e++){let n=r[e];n&&(r[e]=[n[0]+t,n[1]+t])}let n=r.groups;n&&Object.keys(n).forEach(e=>{let r=n[e];r&&(n[e]=[r[0]+t,r[1]+t])})}}(e,n,t,this.hasIndices),this.lastIndex+=n),e}return this.#a(t)}#a(e){let t;this.#t.lastIndex=this.lastIndex;let r=super.exec.call(this.#t,e);if(this.lastIndex=this.#t.lastIndex,!r||!this.#e.size)return r;let n=[...r];r.length=1,this.hasIndices&&(t=[...r.indices],r.indices.length=1);let i=[0];for(let e=1;e<n.length;e++){let{hidden:a,transferTo:s}=this.#e.get(e)??{};if(a?i.push(null):(i.push(r.length),r.push(n[e]),this.hasIndices&&r.indices.push(t[e])),s&&void 0!==n[e]){let a=i[s];if(!a)throw Error(`Invalid capture transfer to "${a}"`);if(r[a]=n[e],this.hasIndices&&(r.indices[a]=t[e]),r.groups){this.#n||(this.#n=function(e){let t,r=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map,i=0,a=0;for(;t=r.exec(e);){let{0:e,groups:{capture:r,name:s}}=t;"["===e?i++:i?"]"===e&&i--:r&&(a++,s&&n.set(a,s))}return n}(this.source));let i=this.#n.get(s);i&&(r.groups[i]=n[e],this.hasIndices&&(r.indices.groups[i]=t[e]))}}}return r}};class nV{constructor(e,t={}){this.patterns=e,this.options=t;let{forgiving:r=!1,cache:n,regexConstructor:i}=t;if(!i)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if("string"!=typeof e)return e;let t=n?.get(e);if(t){if(t instanceof RegExp)return t;if(r)return null;throw t}try{let t=i(e);return n?.set(e,t),t}catch(t){if(n?.set(e,t),r)return null;throw t}})}regexps;findNextMatchSync(e,t,r){let n="string"==typeof e?e:e.content,i=[];function a(e,t,r=0){return{index:e,captureIndices:t.indices.map(e=>null==e?{start:0xffffffff,end:0xffffffff,length:0}:{start:e[0]+r,end:e[1]+r,length:e[1]-e[0]})}}for(let e=0;e<this.regexps.length;e++){let r=this.regexps[e];if(r)try{r.lastIndex=t;let s=r.exec(n);if(!s)continue;if(s.index===t)return a(e,s,0);i.push([e,s,0])}catch(e){if(this.options.forgiving)continue;throw e}}if(i.length){let e=Math.min(...i.map(e=>e[1].index));for(let[t,r,n]of i)if(r.index===e)return a(t,r,n)}return null}}var nX=(0,a.a)("block","before:content-[counter(line)]","before:inline-block","before:[counter-increment:line]","before:w-4","before:mr-4","before:text-[13px]","before:text-right","before:text-muted-foreground/50","before:font-mono","before:select-none"),nQ=(0,s.memo)(e=>{let{children:t,result:r,language:n,className:i,...l}=e,u=(0,s.useMemo)(()=>({backgroundColor:r.bg,color:r.fg}),[r.bg,r.fg]);return(0,o.jsx)("pre",{className:(0,a.a)(i,"p-4 text-sm dark:bg-(--shiki-dark-bg)!"),"data-language":n,"data-streamdown":"code-block-body",style:u,...l,children:(0,o.jsx)("code",{className:"[counter-increment:line_0] [counter-reset:line]",children:r.tokens.map((e,t)=>(0,o.jsx)("span",{className:nX,children:e.map((e,t)=>(0,o.jsx)("span",{className:"dark:bg-(--shiki-dark-bg)! dark:text-(--shiki-dark)!",style:{color:e.color,backgroundColor:e.bgColor,...e.htmlStyle},...e.htmlAttrs,children:e.content},t))},t))})})},(e,t)=>e.result===t.result&&e.language===t.language&&e.className===t.className),nJ=e=>{let{className:t,language:r,style:n,...i}=e;return(0,o.jsx)("div",{className:(0,a.a)("my-4 w-full overflow-hidden rounded-xl border border-border",t),"data-language":r,"data-streamdown":"code-block",style:{contentVisibility:"auto",containIntrinsicSize:"auto 200px",...n},...i})},nZ=e=>{let{language:t,children:r}=e;return(0,o.jsxs)("div",{className:"flex items-center justify-between bg-muted/80 p-3 text-muted-foreground text-xs","data-language":t,"data-streamdown":"code-block-header",children:[(0,o.jsx)("span",{className:"ml-1 font-mono lowercase",children:t}),(0,o.jsx)("div",{className:"flex items-center gap-2",children:r})]})},nK=function(e={}){let t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=e=>(function(e,t){let r=function(e,t){let r=nu(t),n=function(e,t){let r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};nx(e);let n={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:no[r.bestEffortTarget]>
138=no.ES2024,passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};rz(e,nk,n);let i={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},a={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:n.subroutineRefMap};return rz(e,nC,a),rz(e,nS,{groupsByName:a.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:a.reffedNodesByReferencer}),e._originMap=a.groupOriginByCopy,e._strategy=n.strategy,e}(rA(e,{flags:r.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline},skipBackrefValidation:r.rules.allowOrphanBackrefs,unicodePropertyMap:nd}),{accuracy:r.accuracy,asciiWordBoundaries:r.rules.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,bestEffortTarget:r.target}),i=function(e,t){let r=nu(t),n=no[r.target]>=no.ES2024,i=no[r.target]>=no.ES2025,a=r.rules.recursionLimit;if(!Number.isInteger(a)||a<2||a>20)throw Error("Invalid recursionLimit; use 2-20");let s=null,o=null;if(!i){let t=[e.flags.ignoreCase];rz(e,nT,{getCurrentModI:()=>t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)}
138,setHasCasedChar(){t.at(-1)?s=!0:o=!0}})}let l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||s)&&!o)},u=e,c={accuracy:r.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:u,originMap:e._originMap,recursionLimit:a,useAppliedIgnoreCase:!!(!i&&s&&o),useFlagMods:i,useFlagV:n,verbose:r.verbose};function h(e){return c.lastNode=u,u=e,(function(e,t){if(null==e)throw Error(t??"Value expected");return e})(nB[e.type],`Unexpected node type "${e.type}"`)(e,c,h)}let p={pattern:e.body.map(h).join("|"),flags:h(e.flags),options:{...e.options}};return n||(delete p.options.force.v,p.options.disable.v=!0,p.options.unicodeSetsPlugin=null),p._captureTransfers=new Map,p._hiddenCaptures=[],c.captureMap.forEach((e,t)=>{e.hidden&&p._hiddenCaptures.push(t),e.transferTo&&ns(p._captureTransfers,e.transferTo,[]).push(t)}),p}(n,r),a=function(e,t){let r,{hiddenCaptures:n,mode:i}={hiddenCaptures:[],mode:"plugin",...t},a=t?.captureTransfers??new Map;if(!RegExp(r8,"su").test(e))return{pattern:e,captureTransfers:a,hiddenCaptures:n};if("plugin"===i&&rZ(e,r1`\(\?\(DEFINE\)`,rQ.DEFAULT))throw Error("DEFINE groups cannot be used with recursion");let s=[],o=rZ(e,r1`\\[1-9]`,rQ.DEFAULT),l=new Map,u=[],c=!1,h=0,p=0;for(r3.lastIndex=0;r=r3.exec(e);){let{0:t,groups:{captureName:d,rDepth:f,gRNameOrNum:m,gRDepth:g}}=r;if("["===t)h++;else if(h)"]"===t&&h--;else if(f){if(r7(f),c)throw Error(r4);if(o)throw Error(`${"external"===i?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);let t=e.slice(0,r.index),l=e.slice(r3.lastIndex);if(rZ(l,r8,rQ.DEFAULT))throw Error(r4);let u=f-1;e=r9(t,l,u,!1,n,s,p),a=nt(a,t,u,s.length,0,p);break}else if(m){r7(g);let h=!1;for(let e of u)if(e.name===m||e.num===+m){if(h=!0,e.hasRecursedWithin)throw Error(r4);break}if(!h)throw Error(r1`Recursive \g cannot be used outside the referenced group "${"external"===i?m:r1`\g<${m}&R=${g}>`}"`);let d=l.get(m),f=function(e,t){let r,n=/\\?./gsu;n.lastIndex=t;let i=e.length,a=0,s=1;for(;r=n.exec(e);){let[e]=r;if("["===e)a++;else if(a)"]"===e&&a--;else if("("===e)s++;else if(")"===e&&!--s){i=r.index;break}}return e.slice(t,i)}(e,d);if(o&&rZ(f,r1`${r5}|\((?!\?)`,rQ.DEFAULT))throw Error(`${"external"===i?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);let y=e.slice(d,r.index),b=f.slice(y.length+t.length),w=s.length,_=g-1,k=r9(y,b,_,!0,n,s,p);a=nt(a,y,_,s.length-w,w,p);let C=e.slice(0,d),S=e.slice(d+f.length);e=`${C}${k}${S}`,r3.lastIndex+=k.length-t.length-y.length-b.length,u.forEach(e=>e.hasRecursedWithin=!0),c=!0}else if(d)p++,l.set(String(p),r3.lastIndex),l.set(d,r3.lastIndex),u.push({num:p,name:d});else if("("===t[0]){let e="("===t;e&&(p++,l.set(String(p),r3.lastIndex)),u.push(e?{num:p}:{})}else")"===t&&u.pop()}return n.push(...s),{pattern:e,captureTransfers:a,hiddenCaptures:n}}(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:"external"}),s=function(e,t){let r,n=t?.hiddenCaptures??[],i=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:i,hiddenCaptures:n};let a="(?:(?=(",s=[0],o=[],l=0,u=0,c=NaN;do{let t;r=!1;let h=0,p=0,d=!1;for(rK.lastIndex=Number.isNaN(c)?0:c+a.length;t=rK.exec(e);){let{0:f,index:m,groups:{capturingStart:g,noncapturingStart:y}}=t;if("["===f)h++;else if(h)"]"===f&&h--;else if("(?>"!==f||d){if(d&&y)p++;else if(g)d?p++:(l++,s.push(l+u));else if(")"===f&&d){if(!p){let t=l+ ++u;e=`${e.slice(0,c)}${a}${e.slice(c+3,m)}))<$$${t}>)${e.slice(m+1)}`,r=!0,o.push(t);for(let e=0;e<n.length;e++)n[e]>=t&&n[e]++;if(i.size){let e=new Map;i.forEach((r,n)=>{e.set(n>=t?n+1:n,r.map(e=>e>=t?e+1:e))}),i=e}break}p--}}else c=m,d=!0}}while(r);return n.push(...o),{pattern:e=rJ(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:e,groups:{backrefNum:t,wrappedBackrefNum:r}})=>{if(t){let r=+t;if(r>s.length-1)throw Error(`Backref "${e}" greater than number of captures`);return`\\${s[r]}`}return`\\${r}`},rQ.DEFAULT),captureTransfers:i,hiddenCaptures:n}}(function(e){let t;if(!RegExp(`${rY}\\+`).test(e))return{pattern:e};let r=[],n=null,i=null,a="",s=0;for(r0.lastIndex=0;t=r0.exec(e);){let{0:u,index:c,groups:{qBase:h,qMod:p,invalidQ:d}}=t;if("["===u)s||(i=c),s++;else if("]"===u)s?s--:i=null;else if(!s)if("+"===p&&a&&!a.startsWith("(")){if(d)throw Error(`Invalid quantifier "${u}"`);let t=-1;
138if(/^\{\d+\}$/.test(h)){var o,l;o=e,l=c+h.length,e=o.slice(0,l)+""+o.slice(l+p.length)}else{if(")"===a||"]"===a){let t=")"===a?n:i;if(null===t)throw Error(`Invalid unmatched "${a}"`);e=`${e.slice(0,t)}(?>${e.slice(t,c)}${h})${e.slice(c+u.length)}`}else e=`${e.slice(0,c-a.length)}(?>${a}${h})${e.slice(c+u.length)}`;t+=4}r0.lastIndex+=t}else"("===u[0]?r.push(c):")"===u&&(n=r.length?r.pop():null);a=u}return{pattern:e}}(a.pattern).pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),o={pattern:s.pattern,flags:`${r.hasIndices?"d":""}${r.global?"g":""}${i.flags}${i.options.disable.v?"u":"v"}`};if(r.avoidSubclass){if(r.lazyCompileLength!==1/0)throw Error("Lazy compilation requires subclass")}else{let e=s.hiddenCaptures.sort((e,t)=>e-t),t=Array.from(s.captureTransfers),i=n._strategy,a=o.pattern.length>=r.lazyCompileLength;(e.length||t.length||i||a)&&(o.options={...e.length&&{hiddenCaptures:e},...t.length&&{transfers:t},...i&&{strategy:i},...a&&{lazyCompile:a}})}return o}(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t});return r.options?new nq(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)})(e,{target:t.target}),{createScanner:e=>new nV(e,t),createString:e=>({content:e})}}({forgiving:!0}),nY=new Map,n0=new Map,n1=new Map,n2=e=>Object.hasOwn(h,e),n8=(e,t,r,n)=>{let i=n2(t)?t:"text",a=((e,t,r)=>{let n=e.slice(0,100),i=e.length>100?e.slice(-100):"";return"".concat(t,":").concat(r[0],":").concat(r[1],":").concat(e.length,":").concat(n,":").concat(i)})(e,i,r);return n0.has(a)?n0.get(a):(n&&(n1.has(a)||n1.set(a,new Set),n1.get(a).add(n)),((e,t)=>{let r=n2(e)?e:"text",n=((e,t)=>"".concat(e,"-").concat(t[0],"-").concat(t[1]))(r,t);if(nY.has(n))return nY.get(n);let i=rt({themes:t,langs:[r],engine:nK});return nY.set(n,i),i})(i,r).then(t=>{let n=t.codeToTokens(e,{lang:i,themes:{light:r[0],dark:r[1]}});n0.set(a,n);let s=n1.get(a);if(s){for(let e of s)e(n);n1.delete(a)}}).catch(e=>{console.error("Failed to highlight code:",e),n1.delete(a)}),null)},n5=e=>{let{code:t,language:r,className:n,children:i,...l}=e,{shikiTheme:u}=(0,s.useContext)(a.g),c=(0,s.useMemo)(()=>({bg:"transparent",fg:"inherit",tokens:t.split("\n").map(e=>[{content:e,color:"inherit",bgColor:"transparent",htmlStyle:{},offset:0}])}
vendor: 21,559 bytes, line 138
138),[t]),[h,p]=(0,s.useState)(c);return(0,s.useEffect)(()=>{let e=n8(t,r,u);if(e)return void p(e);n8(t,r,u,e=>{p(e)})},[t,r,u]),(0,o.jsx)(a.b.Provider,{value:{code:t},children:(0,o.jsxs)(nJ,{language:r,children:[(0,o.jsx)(nZ,{language:r,children:i}),(0,o.jsx)(nQ,{className:n,language:r,result:h,...l})]})})}},62647:(e,t,r)=>{"use strict";let n=r(73135),i=r(14442),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,o.prototype),t}function o(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e){var n=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!o.isEncoding(i))throw TypeError("Unknown encoding: "+i);let r=0|f(n,i),a=s(r),l=a.write(n,i);return l!==r&&(a=a.slice(0,l)),a}if(ArrayBuffer.isView(e)){var a=e;if(O(a,Uint8Array)){let e=new Uint8Array(a);return p(e.buffer,e.byteOffset,e.byteLength)}return h(a)}if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(O(e,ArrayBuffer)||e&&O(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(O(e,SharedArrayBuffer)||e&&O(e.buffer,SharedArrayBuffer)))return p(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let l=e.valueOf&&e.valueOf();if(null!=l&&l!==e)return o.from(l,t,r);let u=function(e){if(o.isBuffer(e)){let t=0|d(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?s(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(u)return u;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return o.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),s(e<0?0:0|d(e))}function h(e){let t=e.length<0?0:0|d(e.length),r=s(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function p(e,t,r){let n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),o.prototype),n}function d(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function f(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||O(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return T(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return B(e).length;default:if(i)return n?-1:T(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,r){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n<r;++n)i+=U[e[n]];return i}(this,t,r);case"utf8":case"utf-8":return w(this,t,r);case"ascii":return function(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":var a,s,o;return a=this,s=t,o=r,0===s&&o===a.length?n.fromByteArray(a):n.fromByteArray(a.slice(s,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){let n=e.slice(t,r),i="";for(let e=0;e<n.length-1;e+=2)i+=String.fromCharCode(n[e]+256*n[e+1]);return i}(this,t,r);default:if(i)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function g(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}function y(e,t,r,n,i){var a;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(a=r*=1)!=a&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=o.from(t,n)),o.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return b(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function b(e,t,r,n,i){let a,s=1,o=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;s=2,o/=2,l/=2,r/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let n=-1;for(a=r;a<o;a++)if(u(e,a)===u(t,-1===n?0:a-n)){if(-1===n&&(n=a),a-n+1===l)return n*s}else -1!==n&&(a-=a-n),n=-1}else for(r+l>o&&(r=o-l),a=r;a>=0;a--){let r=!0;for(let n=0;n<l;n++)if(u(e,a+n)!==u(t,n)){r=!1;break}if(r)return a}return -1}function w(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i<r;){let t=e[i],a=null,s=t>239?4:t>223?3:t>191?2:1;if(i+s<=r){let r,n,o,l;switch(s){case 1:t<128&&(a=t);break;case 2:(192&(r=e[i+1]))==128&&(l=(31&t)<<6|63&r)>127&&(a=l);break;case 3:r=e[i+1],n=e[i+2],(192&r)==128&&(192&n)==128&&(l=(15&t)<<12|(63&r)<<6|63&n)>2047&&(l<55296||l>57343)&&(a=l);break;case 4:r=e[i+1],n=e[i+2],o=e[i+3],(192&r)==128&&(192&n)==128&&(192&o)==128&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&o)>65535&&l<1114112&&(a=l)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=s}var a=n;let s=a.length;if(s<=4096)return String.fromCharCode.apply(String,a);let o="",l=0;for(;l<s;)o+=String.fromCharCode.apply(String,a.slice(l,l+=4096));return o}function _(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function k(e,t,r,n,i,a){if(!o.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function C(e,t,r,n,i){P(t,n,i,e,r,7);let a=Number(t&BigInt(0xffffffff));e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a;let s=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function S(e,t,r,n,i){P(t,n,i,e,r,7);let a=Number(t&BigInt(0xffffffff));e[r+7]=a,a>>=8,e[r+6]=a,a>>=8,e[r+5]=a,a>>=8,e[r+4]=a;let s=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[r+3]=s,s>>=8,e[r+2]=s,s>>=8,e[r+1]=s,s>>=8,e[r]=s,r+8}function x(e,t,r,n,i,a){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function A(e,t,r,n,a){return t*=1,r>>>=0,a||x(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function v(e,t,r,n,a){return t*=1,r>>>=0,a||x(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.hp=o,t.IS=50,o.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),o.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),o.poolSize=8192,o.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(e,t,r){return(u(e),e<=0)?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)},o.allocUnsafe=function(e){return c(e)},o.allocUnsafeSlow=function(e){return c(e)},o.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==o.prototype},o.compare=function(e,t){if(O(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),O(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)},o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(e,t){let r;if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;let n=o.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){let t=e[r];if(O(t,Uint8Array))i+t.length>n.length?(o.isBuffer(t)||(t=o.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else if(o.isBuffer(t))t.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return n},o.byteLength=f,o.prototype._isBuffer=!0,o.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)g(this,t,t+1);return this},o.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},o.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},o.prototype.toString=function(){let e=this.length;return 0===e?"":0==arguments.length?w(this,0,e):m.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(e){if(!o.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function(){let e="",r=t.IS;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},a&&(o.prototype[a]=o.prototype.inspect),o.prototype.compare=function(e,t,r,n,i){if(O(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let a=i-n,s=r-t,l=Math.min(a,s),u=this.slice(n,i),c=e.slice(t,r);for(let e=0;e<l;++e)if(u[e]!==c[e]){a=u[e],s=c[e];break}return a<s?-1:+(s<a)},o.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},o.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},o.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)},o.prototype.write=function(e,t,r,n){var i,a,s,o,l,u,c,h;if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let p=this.length-t;if((void 0===r||r>p)&&(r=p),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let d=!1;for(;;)switch(n){case"hex":return function(e,t,r,n){let i;r=Number(r)||0;let a=e.length-r;n?(n=Number(n))>a&&(n=a):n=a;let s=t.length;for(n>s/2&&(n=s/2),i=0;i<n;++i){var o;let n=parseInt(t.substr(2*i,2),16);if((o=n)!=o)break;e[r+i]=n}return i}(this,e,t,r);case"utf8":case"utf-8":return i=t,a=r,M(T(e,this.length-i),this,i,a);case"ascii":case"latin1":case"binary":return s=t,o=r,M(function(e){let t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(e),this,s,o);case"base64":return l=t,u=r,M(B(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,h=r,M(function(e,t){let r,n,i=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,h);default:if(d)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),d=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);let n=this.subarray(e,t);return Object.setPrototypeOf(n,o.prototype),n},o.prototype.readUintLE=o.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||_(e,t,this.length);let n=this[e],i=1,a=0;for(;++a<t&&(i*=256);)n+=this[e+a]*i;return n},o.prototype.readUintBE=o.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||_(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},o.prototype.readUint8=o.prototype.readUInt8=function(e,t){return e>>>=0,t||_(e,1,this.length),this[e]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||_(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||_(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||_(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||_(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readBigUInt64LE=G(function(e){L(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&$(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+0x1000000*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+0x1000000*r;return BigInt(n)+(BigInt(i)<<BigInt(32))}),o.prototype.readBigUInt64BE=G(function(e){L(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&$(e,this.length-8);let n=0x1000000*t+65536*this[++e]+256*this[++e]+this[++e],i=0x1000000*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)}),o.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||_(e,t,this.length);let n=this[e],i=1,a=0;for(;++a<t&&(i*=256);)n+=this[e+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||_(e,t,this.length);let n=t,i=1,a=this[e+--n];for(;n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},o.prototype.readInt8=function(e,t){return(e>>>=0,t||_(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||_(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},o.prototype.readInt16BE=function(e,t){e>>>=0,t||_(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||_(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||_(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readBigInt64LE=G(function(e){L(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&$(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24))<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+0x1000000*this[++e])}),o.prototype.readBigInt64BE=G(function(e){L(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&$(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<<BigInt(32))+BigInt(0x1000000*this[++e]+65536*this[++e]+256*this[++e]+r)}),o.prototype.readFloatLE=function(e,t){return e>>>=0,t||_(e,4,this.length),i.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||_(e,4,this.length),i.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||_(e,8,this.length),i.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||_(e,8,this.length),i.read(this,e,!1,52,8)},o.prototype.writeUintLE=o.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;k(this,e,t,r,n,0)}let i=1,a=0;for(this[t]=255&e;++a<r&&(i*=256);)this[t+a]=e/i&255;return t+r},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;k(this,e,t,r,n,0)}let i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},o.prototype.writeUint8=o.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||k(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||k(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||k(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||k(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||k(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeBigUInt64LE=G(function(e,t=0){return C(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=G(function(e,t=0){return S(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){let n=Math.pow(2,8*r-1);k(this,e,t,r,n-1,-n)}let i=0,a=1,s=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+r},o.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){let n=Math.pow(2,8*r-1);k(this,e,t,r,n-1,-n)}let i=r-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||k(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||k(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||k(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||k(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||k(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeBigInt64LE=G(function(e,t=0){return C(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=G(function(e,t=0){return S(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeFloatLE=function(e,t,r){return A(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return A(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return v(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return v(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,n){if(!o.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);let i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},o.prototype.fill=function(e,t,r,n){let i;if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!o.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){let t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{let a=o.isBuffer(e)?e:o.from(e,n),s=a.length;
138if(0===s)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=a[i%s]}return this};let E={};function N(e,t,r){E[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function I(e){let t="",r=e.length,n=+("-"===e[0]);for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function P(e,t,r,n,i,a){if(e>r||e<t){let n,i="bigint"==typeof t?"n":"";throw n=a>3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(a+1)*8}${i}`:`>= -(2${i} ** ${(a+1)*8-1}${i}) and < 2 ** ${(a+1)*8-1}${i}`:`>= ${t}${i} and <= ${r}${i}`,new E.ERR_OUT_OF_RANGE("value",n,e)}L(i,"offset"),(void 0===n[i]||void 0===n[i+a])&&$(i,n.length-(a+1))}function L(e,t){if("number"!=typeof e)throw new E.ERR_INVALID_ARG_TYPE(t,"number",e)}function $(e,t,r){if(Math.floor(e)!==e)throw L(e,r),new E.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new E.ERR_BUFFER_OUT_OF_BOUNDS;throw new E.ERR_OUT_OF_RANGE(r||"offset",`>= ${+!!r} and <= ${t}`,e)}N("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),N("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),N("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>0x100000000?i=I(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=I(i)),i+="n"),n+=` It must be ${t}. Received ${i}`},RangeError);let R=/[^+/0-9A-Za-z-_]/g;function T(e,t){let r;t=t||1/0;let n=e.length,i=null,a=[];for(let s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319||s+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return a}function B(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(R,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function M(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function O(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let U=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function G(e){return"undefined"==typeof BigInt?D:e}function D(){throw Error("BigInt not supported")}},73135:(e,t)=>{"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,a=l(e),s=a[0],o=a[1],u=new i((s+o)*3/4-o),c=0,h=o>0?s-4:s;for(r=0;r<h;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===o&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===o&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],s=0,o=n-i;s<o;s+=16383)a.push(function(e,t,n){for(var i,a=[],s=t;s<n;s+=3)i=(e[s]<<16&0xff0000)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}(e,s,s+16383>o?o:s+16383));return 1===i?a.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&a.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),a.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
138+/",s=0,o=a.length;s<o;++s)r[s]=a[s],n[a.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.