PageSourceSearch

https://cloudsmith.com/_next/static/chunks/d92860f03c806da8.js?dpl=dpl_8wrvDyRzyBAiZGQFkf1k4nigEn3g

js cloudsmith.com collected 2026-10-02 02:46:59 UTC 200,644 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,455103,e=>{"use strict";e.s(["default",()=>o,"useMarketingConsentAction",()=>a]);var t=e.i(191788),n=e.i(691567);e.i(160382);var r=e.i(969042),i=e.i(989667);let a=e=>{let n=(0,r.useCookieConsent)(),{marketing:a,renew:s}=n,o=(0,t.useRef)(e),l=(0,t.useRef)(!1),c=(0,t.useRef)(n);return(0,t.useEffect)(()=>{o.current=e},[e]),(0,t.useEffect)(()=>{let e=c.current;if(c.current=n,!l.current||!(0,i.isConsentReported)(n))return;l.current=!1;let t=(0,i.withdrewOptionalConsent)(e,n);n.marketing&&!t&&o.current()},[n]),(0,t.useCallback)(()=>{if(a)return void o.current();l.current=!0,s()},[a,s])},s=e=>{let{children:t,fallback:n}=e,{marketing:i,renew:a}=(0,r.useCookieConsent)();return i?t:"function"==typeof n?n({renew:a}):n};s.propTypes={children:n.default.node,fallback:n.default.oneOfType([n.default.func,n.default.node]).isRequired};let o=s},110161,e=>{"use strict";e.s([]),e.i(455103)},702838,e=>{e.v({playButton:"WistiaVideoPlayer-module__hg-0pa__playButton",root:"WistiaVideoPlayer-module__hg-0pa__root",thumbnail:"WistiaVideoPlayer-module__hg-0pa__thumbnail",thumbnailContainer:"WistiaVideoPlayer-module__hg-0pa__thumbnailContainer",videoWrapper:"WistiaVideoPlayer-module__hg-0pa__videoWrapper"})},71157,e=>{"use strict";e.s(["default",()=>p]);var t=e.i(391398),n=e.i(191788),r=e.i(272043),i=e.i(168489),a=e.i(691567),s=e.i(953761);e.i(110161);var o=e.i(455103),l=e.i(98959),c=e.i(257210),u=e.i(702838);let d=(0,i.default)(()=>e.A(612587).then(e=>e.WistiaPlayer),{loadableGenerated:{modules:[394861]},ssr:!1}),h=e=>{let{className:i,title:a,thumbnail:h,thumbnailClassName:p,id:f="r5d3j2nz4m"}=e,[m,g]=(0,n.useState)(!1),_=(0,o.useMarketingConsentAction)(()=>g(!0));return(0,t.jsx)("div",{className:(0,r.default)(u.default.root,i),children:m?(0,t.jsx)("div",{className:(0,r.default)(u.default.videoWrapper,{[u.default.videoWrapperPlaying]:m}),children:(0,t.jsx)(d,{mediaId:f,aspect:16/9,autoPlay:!0,swatch:!1})}):(0,t.jsxs)("button",{className:(0,r.default)(u.default.thumbnailContainer,p),"aria-label":"Play Video",onClick:_,children:[h&&("string"==typeof h?(0,t.jsx)(s.default,{src:h,alt:a,fill:!0,className:u.default.thumbnail}):(0,t.jsx)(l.default,{asset:h,alt:a,fill:!0,className:u.default.thumbnail,sizes:"1280px"})),(0,t.jsx)("span",{className:u.default.playButton,children:(0,t.jsx)(c.default,{})})]})})};h.propTypes={className:a.default.string,title:a.default.string.isRequired,thumbnail:a.default.oneOfType([a.default.string,a.default.object]).isRequired,thumbnailClassName:a.default.string,id:a.default.string.isRequired};let p=h},774779,e=>{"use strict";e.s(["default",()=>t]);let t=e.i(71157).default},690840,e=>{e.v({root:"Callout-module__1J1nfW__root"})},432650,e=>{"use strict";e.s(["default",()=>s]);var t=e.i(391398);e.i(191788);var n=e.i(272043),r=e.i(691567),i=e.i(690840);let a=e=>{let{className:r,children:a,variant:s="info"}=e;return(0,t.jsx)("div",{className:(0,n.default)(i.default.root,r),"data-variant":s,children:a})};a.propTypes={children:r.default.node.isRequired,variant:r.default.oneOf(["danger","info","success","warning"])};let s=a},391054,e=>{"use strict";e.s(["default",()=>t]);let t=e.i(432650).default},421472,e=>{e.v({content:"ImageLightbox-module__MRQwfG__content",frame:"ImageLightbox-module__MRQwfG__frame",image:"ImageLightbox-module__MRQwfG__image",overlay:"ImageLightbox-module__MRQwfG__overlay",root:"ImageLightbox-module__MRQwfG__root",toolbar:"ImageLightbox-module__MRQwfG__toolbar",toolbarButton:"ImageLightbox-module__MRQwfG__toolbarButton",toolbarIcon:"ImageLightbox-module__MRQwfG__toolbarIcon",trigger:"ImageLightbox-module__MRQwfG__trigger"})},197300,e=>{"use strict";e.s(["default",()=>u]);var t=e.i(391398),n=e.i(191788),r=e.i(272043),i=e.i(199805),a=e.i(741515),s=e.i(135598),o=e.i(349577),l=e.i(363056),c=e.i(421472);function u(e){let{src:u,alt:d="",children:h}=e,[p,f]=(0,n.useState)(!1),m=d?"View image: ".concat(d):"View image";return(0,t.jsxs)(s.Root,{open:p,onOpenChange:f,children:[(0,t.jsx)(s.Trigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button",className:(0,r.default)(c.default.trigger,l.default.focu
1sable),"aria-label":m,children:h})}),(0,t.jsx)(s.Portal,{children:(0,t.jsxs)("div",{className:c.default.root,children:[(0,t.jsx)(s.Overlay,{className:c.default.overlay}),(0,t.jsxs)(s.Content,{className:c.default.content,onClick:e=>{e.target===e.currentTarget&&f(!1)},children:[(0,t.jsx)(o.VisuallyHidden,{children:(0,t.jsx)(s.Title,{children:m})}),(0,t.jsxs)("div",{className:c.default.frame,children:[(0,t.jsxs)("div",{className:c.default.toolbar,children:[(0,t.jsx)("a",{href:u,target:"_blank",rel:"noopener noreferrer",className:c.default.toolbarButton,"aria-label":"Open original image in a new tab",children:(0,t.jsx)(a.default,{className:c.default.toolbarIcon,"aria-hidden":!0})}),(0,t.jsx)(s.Close,{asChild:!0,children:(0,t.jsx)("button",{type:"button",className:c.default.toolbarButton,"aria-label":"Close image",children:(0,t.jsx)(i.default,{className:c.default.toolbarIcon,"aria-hidden":!0})})})]}),(0,t.jsx)("img",{className:c.default.image,src:u,alt:d})]})]})]})})]})}},728184,e=>{"use strict";e.s(["default",()=>t]);let t=e.i(197300).default},145032,e=>{e.v({playButton:"VideoPlayer-module__a2ZpKa__playButton",root:"VideoPlayer-module__a2ZpKa__root",thumbnail:"VideoPlayer-module__a2ZpKa__thumbnail",thumbnailContainer:"VideoPlayer-module__a2ZpKa__thumbnailContainer",videoWrapper:"VideoPlayer-module__a2ZpKa__videoWrapper"})},721298,e=>{"use strict";e.s(["default",()=>d]);var t=e.i(391398),n=e.i(191788),r=e.i(272043),i=e.i(691567),a=e.i(953761);e.i(110161);var s=e.i(455103),o=e.i(98959),l=e.i(257210),c=e.i(145032);let u=e=>{let{className:i,title:u,thumbnail:d,thumbnailClassName:h,id:p}=e,[f,m]=(0,n.useState)(!1),g=(0,s.useMarketingConsentAction)(()=>m(!0));return(0,t.jsx)("div",{className:(0,r.default)(c.default.root,i),children:f?(0,t.jsx)("div",{className:(0,r.default)(c.default.videoWrapper,{[c.default.videoWrapperPlaying]:f}),children:(0,t.jsx)("iframe",{width:"853",height:"480",src:"https://www.youtube-nocookie.com/embed/".concat(p,"?autoplay=1"),title:u,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}):(0,t.jsxs)("button",{className:(0,r.default)(c.default.thumbnailContainer,h),"aria-label":"Play Video",onClick:g,children:[d&&("string"==typeof d?(0,t.jsx)(a.default,{src:d,alt:u,fill:!0,className:(0,r.default)(c.default.thumbnail)}):(0,t.jsx)(o.default,{asset:d,alt:u,fill:!0,className:(0,r.default)(c.default.thumbnail)})),(0,t.jsx)("span",{className:(0,r.default)(c.default.playButton),children:(0,t.jsx)(l.default,{})})]})})};u.propTypes={className:i.default.string,title:i.default.string.isRequired,thumbnail:i.default.oneOfType([i.default.string,i.default.object]).isRequired,thumbnailClassName:i.default.string,id:i.default.string.isRequired};let d=u},322778,e=>{"use strict";e.s(["default",()=>t]);let t=e.i(721298).default},310572,e=>{"use strict";function t(e){return e?"mailto"===e.linkType?e.mailto?"mailto:".concat(e.mailto):null:"string"==typeof e.href&&e.href.length>0?e.href:null:null}e.s(["getResolvedLinkHref",()=>t])},799739,e=>{"use strict";e.s(["textToSlug",()=>t]);let t=e=>e?e.trim().toLowerCase().replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").replace(/--+/g,"-").replace(/^-+|-+$/g,""):""},321347,e=>{"use strict";e.s(["bundledLanguages",()=>i]);let t=[{id:"abap",name:"ABAP",import:()=>e.A(86433)},{id:"actionscript-3",name:"ActionScript",import:()=>e.A(767804)},{id:"ada",name:"Ada",import:()=>e.A(616727)},{id:"angular-html",name:"Angular HTML",import:()=>e.A(579438)},{id:"angular-ts",name:"Angular TypeScript",import:()=>e.A(940556)},{id:"apache",name:"Apache Conf",import:()=>e.A(612926)},{id:"apex",name:"Apex",import:()=>e.A(243476)},{id:"apl",name:"APL",import:()=>e.A(224574)},{id:"applescript",name:"AppleScript",import:()=>e.A(720651)},{id:"ara",name:"Ara",import:()=>e.A(773862)},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>e.A(326701)},{id:"asm",name:"Assembly",import:()=>e.A(25868)},{id:"astro",name:"Astro",import:()=>e.A(874400)},{id:"awk",name:"AWK",import:()=>e.A(176944)},{id:"ballerina",name:"Ballerina",import:()=>e.A(448166)},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>e.A(882798)},{id:"beancount",name:"Beancount",import:()=>e.A(334987)},{id:"berry",name:"Berry",aliases:["be"],import:()=>e.A(697174)},{id:"bibtex",name:"BibTeX",import:()=>e.A(971688)},{id:"bicep",name:"Bicep",import:()=>e.A(943897)},{id:"blade",name:"Blade",import:()=>e.A(510008)},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>e.A(530370)},{id:"c",name:"C",import:()=>e.A(245697)},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>e.A(753295)},{id:"cairo",name:"Cairo",import:()=>e.A(462701)},{id:"clarity",name:"Clarity",import:()=>e.A(50731)},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>e.A(593641)},{id:"cmake",name:"CMake",import:()=>e.A(354763)},{id:"cobol",name:"COBOL",import:()=>e.A(92650)},{id:"codeowners",name:"CODEOWNERS",import:()=>e.A(747877)},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>e.A(632822)},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>e.A(33094)},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>e.A(495035)},{id:"coq",name:"Coq",import:()=>e.A(258411)},{id:"cpp",name:"C++",aliases:["c++"],import:()=>e.A(430713)},{id:"crystal",name:"Crystal",import:()=>e.A(518972)}
1,{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>e.A(85582)},{id:"css",name:"CSS",import:()=>e.A(579274)},{id:"csv",name:"CSV",import:()=>e.A(296068)},{id:"cue",name:"CUE",import:()=>e.A(382742)},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>e.A(61210)},{id:"d",name:"D",import:()=>e.A(466159)},{id:"dart",name:"Dart",import:()=>e.A(6152)},{id:"dax",name:"DAX",import:()=>e.A(35998)},{id:"desktop",name:"Desktop",import:()=>e.A(547910)},{id:"diff",name:"Diff",import:()=>e.A(219221)},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>e.A(863925)},{id:"dotenv",name:"dotEnv",import:()=>e.A(414733)},{id:"dream-maker",name:"Dream Maker",import:()=>e.A(638810)},{id:"edge",name:"Edge",import:()=>e.A(478033)},{id:"elixir",name:"Elixir",import:()=>e.A(400717)},{id:"elm",name:"Elm",import:()=>e.A(921962)},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>e.A(963111)},{id:"erb",name:"ERB",import:()=>e.A(722538)},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>e.A(540999)},{id:"fennel",name:"Fennel",import:()=>e.A(822355)},{id:"fish",name:"Fish",import:()=>e.A(932967)},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>e.A(172396)},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>e.A(560153)},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>e.A(281887)},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>e.A(82816)},{id:"gdresource",name:"GDResource",import:()=>e.A(666904)},{id:"gdscript",name:"GDScript",import:()=>e.A(433358)},{id:"gdshader",name:"GDShader",import:()=>e.A(810421)},{id:"genie",name:"Genie",import:()=>e.A(67011)},{id:"gherkin",name:"Gherkin",import:()=>e.A(356993)},{id:"git-commit",name:"Git Commit Message",import:()=>e.A(537355)},{id:"git-rebase",name:"Git Rebase Message",import:()=>e.A(559119)},{id:"gleam",name:"Gleam",import:()=>e.A(59205)},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>e.A(934843)},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>e.A(198870)},{id:"glsl",name:"GLSL",import:()=>e.A(752447)},{id:"gnuplot",name:"Gnuplot",import:()=>e.A(475924)},{id:"go",name:"Go",import:()=>e.A(477842)},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>e.A(998649)},{id:"groovy",name:"Groovy",import:()=>e.A(525979)},{id:"hack",name:"Hack",import:()=>e.A(28952)},{id:"haml",name:"Ruby Haml",import:()=>e.A(482881)},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>e.A(599027)},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>e.A(282379)},{id:"haxe",name:"Haxe",import:()=>e.A(620692)},{id:"hcl",name:"HashiCorp HCL",import:()=>e.A(543968)},{id:"hjson",name:"Hjson",import:()=>e.A(338666)},{id:"hlsl",name:"HLSL",import:()=>e.A(310847)},{id:"html",name:"HTML",import:()=>e.A(278669)},{id:"html-derivative",name:"HTML (Derivative)",import:()=>e.A(929689)},{id:"http",name:"HTTP",import:()=>e.A(621884)},{id:"hxml",name:"HXML",import:()=>e.A(204626)},{id:"hy",name:"Hy",import:()=>e.A(950492)},{id:"imba",name:"Imba",import:()=>e.A(452634)},{id:"ini",name:"INI",aliases:["properties"],import:()=>e.A(573748)},{id:"java",name:"Java",import:()=>e.A(346813)},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>e.A(585793)},{id:"jinja",name:"Jinja",import:()=>e.A(821050)},{id:"jison",name:"Jison",import:()=>e.A(587254)},{id:"json",name:"JSON",import:()=>e.A(8178)},{id:"json5",name:"JSON5",import:()=>e.A(273938)},{id:"jsonc",name:"JSON with Comments",import:()=>e.A(352923)},{id:"jsonl",name:"JSON Lines",import:()=>e.A(951389)},{id:"jsonnet",name:"Jsonnet",import:()=>e.A(427856)},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>e.A(411821)},{id:"jsx",name:"JSX",import:()=>e.A(9817)},{id:"julia",name:"Julia",aliases:["jl"],import:()=>e.A(132637)},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>e.A(178515)},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>e.A(32861)},{id:"latex",name:"LaTeX",import:()=>e.A(793626)},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>e.A(682375)},{id:"less",name:"Less",import:()=>e.A(843947)},{id:"liquid",name:"Liquid",import:()=>e.A(490321)},{id:"log",name:"Log file",import:()=>e.A(302044)},{id:"logo",name:"Logo",import:()=>e.A(878229)},{id:"lua",name:"Lua",import:()=>e.A(972108)}
1,{id:"luau",name:"Luau",import:()=>e.A(341326)},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>e.A(351558)},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>e.A(326957)},{id:"marko",name:"Marko",import:()=>e.A(335332)},{id:"matlab",name:"MATLAB",import:()=>e.A(54878)},{id:"mdc",name:"MDC",import:()=>e.A(699764)},{id:"mdx",name:"MDX",import:()=>e.A(667454)},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>e.A(26466)},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>e.A(180655)},{id:"mojo",name:"Mojo",import:()=>e.A(917901)},{id:"move",name:"Move",import:()=>e.A(216672)},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>e.A(369690)},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>e.A(190669)},{id:"nginx",name:"Nginx",import:()=>e.A(760315)},{id:"nim",name:"Nim",import:()=>e.A(410687)},{id:"nix",name:"Nix",import:()=>e.A(988502)},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>e.A(36838)},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>e.A(148221)},{id:"objective-cpp",name:"Objective-C++",import:()=>e.A(416890)},{id:"ocaml",name:"OCaml",import:()=>e.A(134618)},{id:"pascal",name:"Pascal",import:()=>e.A(550057)},{id:"perl",name:"Perl",import:()=>e.A(650476)},{id:"php",name:"PHP",import:()=>e.A(82875)},{id:"plsql",name:"PL/SQL",import:()=>e.A(856957)},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>e.A(568921)},{id:"polar",name:"Polar",import:()=>e.A(410727)},{id:"postcss",name:"PostCSS",import:()=>e.A(493006)},{id:"powerquery",name:"PowerQuery",import:()=>e.A(293016)},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>e.A(11659)},{id:"prisma",name:"Prisma",import:()=>e.A(915707)},{id:"prolog",name:"Prolog",import:()=>e.A(412243)},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>e.A(855986)},{id:"pug",name:"Pug",aliases:["jade"],import:()=>e.A(914475)},{id:"puppet",name:"Puppet",import:()=>e.A(480896)},{id:"purescript",name:"PureScript",import:()=>e.A(283646)},{id:"python",name:"Python",aliases:["py"],import:()=>e.A(994616)},{id:"qml",name:"QML",import:()=>e.A(824667)},{id:"qmldir",name:"QML Directory",import:()=>e.A(626434)},{id:"qss",name:"Qt Style Sheets",import:()=>e.A(743970)},{id:"r",name:"R",import:()=>e.A(731254)},{id:"racket",name:"Racket",import:()=>e.A(52833)},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>e.A(965275)},{id:"razor",name:"ASP.NET Razor",import:()=>e.A(55640)},{id:"reg",name:"Windows Registry Script",import:()=>e.A(454585)},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>e.A(206342)},{id:"rel",name:"Rel",import:()=>e.A(443181)},{id:"riscv",name:"RISC-V",import:()=>e.A(28962)},{id:"rst",name:"reStructuredText",import:()=>e.A(784120)},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>e.A(675833)},{id:"rust",name:"Rust",aliases:["rs"],import:()=>e.A(710344)},{id:"sas",name:"SAS",import:()=>e.A(149349)},{id:"sass",name:"Sass",import:()=>e.A(14759)},{id:"scala",name:"Scala",import:()=>e.A(952780)},{id:"scheme",name:"Scheme",import:()=>e.A(238430)},{id:"scss",name:"SCSS",import:()=>e.A(740454)},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>e.A(270111)},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>e.A(604128)},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>e.A(893971)},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>e.A(735991)},{id:"smalltalk",name:"Smalltalk",import:()=>e.A(681366)},{id:"solidity",name:"Solidity",import:()=>e.A(803565)},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>e.A(335050)},{id:"sparql",name:"SPARQL",import:()=>e.A(63752)},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>e.A(357880)},{id:"sql",name:"SQL",import:()=>e.A(495435)},{id:"ssh-config",name:"SSH Config",import:()=>e.A(977846)},{id:"stata",name:"Stata",import:()=>e.A(288225)},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>e.A(358717)},{id:"svelte",name:"Svelte",import:()=>e.A(549111)},{id:"swift",name:"Swift",import:()=>e.A(517054)},{id:"system-verilog",name:"SystemVerilog",import:()=>e.A(18253)},{id:"systemd",name:"Systemd Units",import:()=>e.A(515761)},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>e.A(539345)},{id:"tasl",name:"Tasl",import:()=>e.A(100102)},{id:"tcl",name:"Tcl",import:()=>e.A(588626)}
1,{id:"templ",name:"Templ",import:()=>e.A(689031)},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>e.A(354461)},{id:"tex",name:"TeX",import:()=>e.A(871764)},{id:"toml",name:"TOML",import:()=>e.A(148908)},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>e.A(321080)},{id:"tsv",name:"TSV",import:()=>e.A(323337)},{id:"tsx",name:"TSX",import:()=>e.A(637660)},{id:"turtle",name:"Turtle",import:()=>e.A(342128)},{id:"twig",name:"Twig",import:()=>e.A(364420)},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>e.A(261718)},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>e.A(344153)},{id:"typst",name:"Typst",aliases:["typ"],import:()=>e.A(408532)},{id:"v",name:"V",import:()=>e.A(378951)},{id:"vala",name:"Vala",import:()=>e.A(107078)},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>e.A(816750)},{id:"verilog",name:"Verilog",import:()=>e.A(252441)},{id:"vhdl",name:"VHDL",import:()=>e.A(456594)},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>e.A(945441)},{id:"vue",name:"Vue",import:()=>e.A(738356)},{id:"vue-html",name:"Vue HTML",import:()=>e.A(311224)},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>e.A(445879)},{id:"wasm",name:"WebAssembly",import:()=>e.A(807431)},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>e.A(534365)},{id:"wgsl",name:"WGSL",import:()=>e.A(359770)},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>e.A(363732)},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>e.A(615651)},{id:"xml",name:"XML",import:()=>e.A(757885)},{id:"xsl",name:"XSL",import:()=>e.A(351301)},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>e.A(225298)},{id:"zenscript",name:"ZenScript",import:()=>e.A(459644)},{id:"zig",name:"Zig",import:()=>e.A(180495)}],n=Object.fromEntries(t.map(e=>[e.id,e.import])),r=Object.fromEntries(t.flatMap(e=>{var t;return(null==(t=e.aliases)?void 0:t.map(t=>[t,e.import]))||[]})),i={...n,...r}},668960,e=>{"use strict";e.s(["ShikiError",()=>t]);class t extends Error{constructor(e){super(e),this.name="ShikiError"}}},145509,e=>{"use strict";let t,n;e.s(["createOnigurumaEngine",()=>_,"getDefaultWasmLoader",()=>g,"loadWasm",()=>f]);var r=e.i(221168);class i extends Error{constructor(e){super(e),this.name="ShikiError"}}function a(){return"undefined"!=typeof performance?performance.now():Date.now()}let s=(e,t)=>e+(t-e%t)%t;async function o(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}let o="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function l(e,t){return e?function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1024,r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&o)return o.decode(e.subarray(t,i));let a="";for(;t<i;){let n=e[t++];if(!(128&n)){a+=String.fromCharCode(n);continue}let r=63&e[t++];if((224&n)==192){a+=String.fromCharCode((31&n)<<6|r);continue}let i=63&e[t++];if((n=(240&n)==224?(15&n)<<12|r<<6|i:(7&n)<<18|r<<12|i<<6|63&e[t++])<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return a}(r.HEAPU8,e,t):""}let c={emscripten_get_now:a,emscripten_memcpy_big:function(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){let a=r.HEAPU8.length;if((e>>>=0)>0x80000000)return!1;for(let r=1;r<=4;r*=2){let o=a*(1+.2/r);if(o=Math.min(o,e+0x6000000),function(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch(e){}}(Math.min(0x80000000,s(Math.max(e,o),65536))))return!0}return!1},fd_write:()=>0};async function u(){let n=await e({env:c,wasi_snapshot_preview1:c});i((t=n.memory).buffer),Object.assign(r,n),r.UTF8ToString=l}return await u(),r}var l=Object.defineProperty,c=(e,t,n)=>(((e,t,n)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),n);let u=null;class d{static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,s=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+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&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}
1constructor(e){c(this,"utf16Length"),c(this,"utf8Length"),c(this,"utf16Value"),c(this,"utf8Value"),c(this,"utf16OffsetToUtf8"),c(this,"utf8OffsetToUtf16");let t=e.length,n=d._utf8ByteLength(e),r=n!==t,i=r?new Uint32Array(t+1):null;r&&(i[t]=n);let a=r?new Uint32Array(n+1):null;r&&(a[n]=t);let s=new Uint8Array(n),o=0;for(let n=0;n<t;n++){let l=e.charCodeAt(n),c=l,u=!1;if(l>=55296&&l<=56319&&n+1<t){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(c=(l-55296<<10)+65536|t-56320,u=!0)}r&&(i[n]=o,u&&(i[n+1]=o),c<=127?a[o+0]=n:c<=2047?(a[o+0]=n,a[o+1]=n):c<=65535?(a[o+0]=n,a[o+1]=n,a[o+2]=n):(a[o+0]=n,a[o+1]=n,a[o+2]=n,a[o+3]=n)),c<=127?s[o++]=c:(c<=2047?s[o++]=192|(1984&c)>>>6:(c<=65535?s[o++]=224|(61440&c)>>>12:(s[o++]=240|(1835008&c)>>>18,s[o++]=128|(258048&c)>>>12),s[o++]=128|(4032&c)>>>6),s[o++]=128|(63&c)>>>0),u&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=s,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=a}}let h=class{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===h._sharedPtr?h._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}constructor(e){if(c(this,"id",++h.LAST_ID),c(this,"_onigBinding"),c(this,"content"),c(this,"utf16Length"),c(this,"utf8Length"),
1c(this,"utf16OffsetToUtf8"),c(this,"utf8OffsetToUtf16"),c(this,"ptr"),!u)throw new i("Must invoke loadWasm first.");this._onigBinding=u,this.content=e;let t=new d(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!h._sharedPtrInUse?(h._sharedPtr||(h._sharedPtr=u.omalloc(1e4)),h._sharedPtrInUse=!0,u.HEAPU8.set(t.utf8Value,h._sharedPtr),this.ptr=h._sharedPtr):this.ptr=t.createString(u)}};c(h,"LAST_ID",0),c(h,"_sharedPtr",0),c(h,"_sharedPtrInUse",!1);class p{dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if("number"==typeof n&&(r=n),"string"==typeof e){e=new h(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(0===a)return null;let s=i.HEAPU32,o=a/4,l=s[o++],c=s[o++],u=[];for(let t=0;t<c;t++){let n=e.convertUtf8OffsetToUtf16(s[o++]),r=e.convertUtf8OffsetToUtf16(s[o++]);u[t]={start:n,end:r,length:r-n}}return{index:l,captureIndices:u}}constructor(e){if(c(this,"_onigBinding"),c(this,"_ptr"),!u)throw new i("Must invoke loadWasm first.");let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new d(e[r]);t[r]=i.createString(u),n[r]=i.utf8Length}let r=u.omalloc(4*e.length);u.HEAPU32.set(t,r/4);let a=u.omalloc(4*e.length);u.HEAPU32.set(n,a/4);let s=u.createOnigScanner(r,a,e.length);for(let n=0,r=e.length;n<r;n++)u.ofree(t[n]);u.ofree(a),u.ofree(r),0===s&&function(e){throw new i(e.UTF8ToString(e.getLastO
1nigError()))}(u),this._onigBinding=u,this._ptr=s}}function f(e){return t||(t=async function(){u=await o(async t=>{let n=e;if("function"==typeof(n=await n)&&(n=await n(t)),"function"==typeof n&&(n=await n(t)),"function"==typeof n.instantiator)n=await n.instantiator(t);else if("function"==typeof n.default)n=await n.default(t);else{var i,a,s,o,l,c;if(void 0!==n.data&&(n=n.data),i=n,"undefined"!=typeof Response&&i instanceof Response){n="function"==typeof WebAssembly.instantiateStreaming?await (l=n,e=>WebAssembly.instantiateStreaming(l,e))(t):await (c=n,async e=>{let t=await c.arrayBuffer();return WebAssembly.instantiate(t,e)})(t)}else(a=n,"undefined"!=typeof ArrayBuffer&&(a instanceof ArrayBuffer||ArrayBuffer.isView(a))||void 0!==r.Buffer&&(null==(s=(o=r.Buffer).isBuffer)?void 0:s.call(o,a))||"undefined"!=typeof SharedArrayBuffer&&a instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&a instanceof Uint32Array||n instanceof WebAssembly.Module)?n=await m(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await m(n.default)(t))}return"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}())}function m(e){return t=>WebAssembly.instantiate(e,t)}function g(){return n}async function _(e){return e&&await f(e),{createScanner:e=>new p(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new h(e)}}},238326,e=>{"use strict";function t(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;if(!(t>3))if(1)console.trace("[SHIKI DEPRECATE]: ".concat(e));else throw Error("[SHIKI DEPRECATE]: ".concat(e))}e.s(["w",()=>t])},553788,e=>{"use strict";e.s(["EncodedTokenMetadata",()=>A,"FontStyle",()=>g,"INITIAL",()=>em,"Registry",()=>ef,"Theme",()=>h]);var t,n,r=e.i(350461),i=e.i(746349);function a(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.forEach(t=>{for(let n in t)e[n]=t[n]}),e}var s=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,o=class{static hasCaptures(e){return null!==e&&(s.lastIndex=0,s.test(e))}static replaceCaptures(e,t,n){return e.replace(s,(e,r,i,a)=>{let s=n[parseInt(r||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 l(e,t){if(null===e&&null===t)return 0;if(!e)return -1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){var i,a;let n=(i=e[r],i<(a=t[r])?-1:+(i>a));if(0!==n)return n}return 0}return n-r}function c(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 u(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var d=class{get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}constructor(e){(0,i._)(this,"cache",new Map),this.fn=e}},h=class{static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=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,n=e.length;t<n;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&&c(a.settings.foreground)&&(o=a.settings.foreground);let l=null;"string"==typeof a.settings.background&&c(a.settings.background)&&(l=a.settings.background);for(let t=0,a=i.length;t<a;t++){let a=i[t].trim().split(" "),c=a[a.length-1],u=null;a.length>1&&(u=a.slice(0,a.length-1)).reverse(),n[r++]=new m(c,u,e,s,o,l)}}return n}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var n,r;let i=(n=e.scope,n<(r=t.scope)?-1:+(n>r));return 0!==i||0!==(i=l(e.parentScopes,t.parentScopes))?i:e.index-t.index});let n=0,r="#000000",i="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();
1-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(i=t.background)}let a=new _(t),s=new f(n,a.getId(r),a.getId(i)),o=new v(new b(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];o.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new h(a,s,o)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(0===t.length)return!0;for(let i=0;i<t.length;i++){var n,r;let a=t[i],s=!1;if(">"===a){if(i===t.length-1)return!1;a=t[++i],s=!0}for(;e&&(n=e.scopeName,!((r=a)===n||n.startsWith(r)&&"."===n[r.length]));){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return n?new f(n.fontStyle,n.foreground,n.background):null}constructor(e,t,n){(0,i._)(this,"_cachedMatchRoot",new d(e=>this._root.match(e))),this._colorMap=e,this._defaults=t,this._root=n}},p=class e{static push(t,n){for(let r of n)t=new e(t,r);return t}static from(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=null;for(let t=0;t<n.length;t++)i=new e(i,n[t]);return i}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=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}constructor(e,t){this.parent=e,this.scopeName=t}},f=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}},m=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},g=(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))(g||{}),_=class{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 - ".concat(e));return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}constructor(e){if((0,i._)(this,"_isFrozen",void 0),(0,i._)(this,"_lastColorId",void 0),(0,i._)(this,"_id2color",void 0),(0,i._)(this,"_color2id",void 0),this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}},y=Object.freeze([]),b=class e{clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}constructor(e,t,n,r,a){(0,i._)(this,"scopeDepth",void 0),(0,i._)(this,"parentScopes",void 0),(0,i._)(this,"fontStyle",void 0),(0,i._)(this,"foreground",void 0),(0,i._)(this,"background",void 0),this.scopeDepth=e,this.parentScopes=t||y,this.fontStyle=n,this.foreground=r,this.background=a}},v=class e{static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;">"===e.parentScopes[n]&&n++,">"===t.parentScopes[r]&&r++,!(n>=e.parentScopes.length)&&!(r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(0!==i)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,n,r=t.indexOf(".");if(-1===r?(e=t,n=""):(e=t.substring(0,r),n=t.substring(r+1)),this._children.hasOwnProperty(e))return this._children[e].match(n)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,s){let o,l,c;if(""===n)return void this._doInsertHere(t,r,i,a,s);let u=n.indexOf(".");-1===u?(o=n,l=""):(o=n.substring(0,u),l=n.substring(u+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new e(this._mainRule.clone(),b.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(t+1,l,r,i,a,s)}_doInsertHere(e,t,n,r,i){if(null===t)return void this._mainRule.acceptOverwrite(e,n,r,i);for(let a=0,s=this._rulesWithParentScopes.length;a<s;a++){let s=this._rulesWithParentScopes[a];if(0===l(s.parentScopes,t))return void s.acceptOverwrite(e,n,r,i)}-1===n&&(n=this._mainRule.fontStyle),0===r&&(r=this._mainRule.foreground),0===i&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new b(e,t,n,r,i))}constructor(e,t=[],n={}){(0,i._)(this,"_rulesWithParentScopes",void 0),this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}},A=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}
1static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t);console.log({languageId:n,tokenType:r,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,n,r,i,a,s,o){let l=e.getLanguageId(t),c=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),h=e.getForeground(t),p=e.getBackground(t);return 0!==n&&(l=n),8!==r&&(c=r),null!==i&&(u=+!!i),-1!==a&&(d=a),0!==s&&(h=s),0!==o&&(p=o),(0|l|c<<8|u<<10|d<<11|h<<15|p<<24)>>>0}};function C(e,t){var n;let r,i,a=[],s=(n=e,i=(r=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(n),{next:()=>{if(!i)return null;let e=i[0];return i=r.exec(n),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 ".concat(o," in scope selector"))}o=s.next()}let t=c();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=c();for(;t&&(e.push(t),"|"===o||","===o);){do o=s.next();while("|"===o||","===o)t=c()}return t=>e.some(e=>e(t))}();return")"===o&&(o=s.next()),e}if(k(o)){let e=[];do e.push(o),o=s.next();while(k(o))return n=>t(e,n)}return null}function c(){let e=[],t=l();for(;t;)e.push(t),t=l();return t=>e.every(e=>e(t))}}function k(e){return!!e&&!!e.match(/[\w\.:]+/)}var w=(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))(w||{});function S(e){"function"==typeof e.dispose&&e.dispose()}var x=class{toKey(){return this.scopeName}constructor(e){this.scopeName=e}},N=class{toKey(){return"".concat(this.scopeName,"#").concat(this.ruleName)}constructor(e,t){this.scopeName=e,this.ruleName=t}},E=class{get references(){return this._references}add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}constructor(){(0,i._)(this,"_references",[]),(0,i._)(this,"_seenReferenceKeys",new Set),(0,i._)(this,"visitedRule",new Set)}},I=class{processQueue(){let e=this.Q;this.Q=[];let t=new E;for(let n of e)!function(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error("No grammar provided for <".concat(t,">"));return}let a=n.lookup(t);e instanceof x?T({baseGrammar:a,selfGrammar:i},r):L(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let s=n.injections(e.scopeName);if(s)for(let e of s)r.add(new x(e))}(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof x){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)}}constructor(e,t){(0,i._)(this,"seenFullScopeRequests",new Set),(0,i._)(this,"seenPartialScopeRequests",new Set),(0,i._)(this,"Q",void 0),this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new x(this.initialScopeName)]}};function L(e,t,n){t.repository&&t.repository[e]&&P([t.repository[e]],t,n)}function T(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&P(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&P(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function P(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?a({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&P(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let s=B(i);switch(s.kind){case 0:T({...t,selfGrammar:t.baseGrammar},n);break;case 1:T(t,n);break;case 2:L(s.ruleName,{...t,repository:e},n);break;case 3:case 4:let o=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(o){let r={baseGrammar:t.baseGrammar,selfGrammar:o,repository:e};4===s.kind?L(s.ruleName,r,n):T(r,n)}else 4===s.kind?n.add(new N(s.scopeName,s.ruleName)):n.add(new x(s.scopeName))}}}var R=class{constructor(){(0,i._)(this,"kind",0)}},M=class{constructor(){(0,i._)(this,"kind",1)}},j=class{constructor(e){(0,i._)(this,"kind",2),this.ruleName=e}},G=class{constructor(e){(0,i._)(this,"kind",3),this.scopeName=e}},O=class{constructor(e,t){(0,i._)(this,"kind",4),this.scopeName=e,this.ruleName=t}};
1function B(e){if("$base"===e)return new R;if("$self"===e)return new M;let t=e.indexOf("#");return -1===t?new G(e):0===t?new j(e.substring(1)):new O(e.substring(0,t),e.substring(t+1))}var F=/\\(\d+)/,D=/\\(\d+)/g;Symbol("RuleId");var U=class{get debugName(){let e=this.$location?"".concat(function e(t){let n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(~n+1)}(this.$location.filename),":").concat(this.$location.line):"unknown";return"".concat(this.constructor.name,"#").concat(this.id," @ ").concat(e)}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?o.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?o.replaceCaptures(this._contentName,e,t):this._contentName}constructor(e,t,n,r){(0,i._)(this,"$location",void 0),(0,i._)(this,"id",void 0),(0,i._)(this,"_nameIsCapturing",void 0),(0,i._)(this,"_name",void 0),(0,i._)(this,"_contentNameIsCapturing",void 0),(0,i._)(this,"_contentName",void 0),this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=o.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=o.hasCaptures(this._contentName)}},W=class extends U{dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,n,r){throw Error("Not supported!")}constructor(e,t,n,r,a){super(e,t,n,r),(0,i._)(this,"retokenizeCapturedWithRuleId",void 0),this.retokenizeCapturedWithRuleId=a}},q=class extends U{dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return"".concat(this._match.source)}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new J,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}constructor(e,t,n,r,a){super(e,t,n,null),(0,i._)(this,"_match",void 0),(0,i._)(this,"captures",void 0),(0,i._)(this,"_cachedCompiledPatterns",void 0),this._match=new Q(r,this.id),this.captures=a,this._cachedCompiledPatterns=null}},H=class extends U{dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new J,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}constructor(e,t,n,r,a){super(e,t,n,r),(0,i._)(this,"hasMissingPatterns",void 0),(0,i._)(this,"patterns",void 0),(0,i._)(this,"_cachedCompiledPatterns",void 0),this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}},V=class extends U{dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return"".concat(this._begin.source)}get debugEndRegExp(){return"".concat(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,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){for(let t of(this._cachedCompiledPatterns=new J,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}constructor(e,t,n,r,a,s,o,l,c,u){super(e,t,n,r),(0,i._)(this,"_begin",void 0),(0,i._)(this,"beginCaptures",void 0),(0,i._)(this,"_end",void 0),(0,i._)(this,"endHasBackReferences",void 0),(0,i._)(this,"endCaptures",void 0),(0,i._)(this,"applyEndPatternLast",void 0),(0,i._)(this,"hasMissingPatterns",void 0),(0,i._)(this,"patterns",void 0),(0,i._)(this,"_cachedCompiledPatterns",void 0),this._begin=new Q(a,this.id),this.beginCaptures=s,this._end=new Q(o||"ï¿¿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=c||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}},z=class extends U{dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return"".concat(this._begin.source)}get debugWhileRegExp(){return"".concat(this._while.source)}
1getWhileWithResolvedBackReferences(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,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new J,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,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new J,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"ï¿¿"),this._cachedCompiledWhilePatterns}constructor(e,t,n,r,a,s,o,l,c){super(e,t,n,r),(0,i._)(this,"_begin",void 0),(0,i._)(this,"beginCaptures",void 0),(0,i._)(this,"whileCaptures",void 0),(0,i._)(this,"_while",void 0),(0,i._)(this,"whileHasBackReferences",void 0),(0,i._)(this,"hasMissingPatterns",void 0),(0,i._)(this,"patterns",void 0),(0,i._)(this,"_cachedCompiledPatterns",void 0),(0,i._)(this,"_cachedCompiledWhilePatterns",void 0),this._begin=new Q(a,this.id),this.beginCaptures=s,this.whileCaptures=l,this._while=new Q(o,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}},$=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new W(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new q(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(void 0===t.begin){t.repository&&(r=a({},r,t.repository));let i=t.patterns;return void 0===i&&t.include&&(i=[{include:t.include}]),new H(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new z(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new V(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){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],n,r)),i[s]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,o)}}return i}static _compilePatterns(t,n,r){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=B(s.include);switch(t.kind){case 0:case 1:o=e.getCompiledRuleId(r[s.include],n,r);break;case 2:let i=r[t.ruleName];i&&(o=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,l=4===t.kind?t.ruleName:null,c=n.getExternalGrammar(a,r);if(c)if(l){let t=c.repository[l];t&&(o=e.getCompiledRuleId(t,n,c.repository))}else o=e.getCompiledRuleId(c.repository.$self,n,c.repository)}}else o=e.getCompiledRuleId(s,n,r);if(-1!==o){let e=n.getRule(o),t=!1;if((e instanceof H||e instanceof V||e instanceof z)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;i.push(o)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},Q=class e{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 n=t.map(t=>e.substring(t.start,t.end));return D.lastIndex=0,this.source.replace(D,(e,t)=>u(n[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,n,r;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++)n=this.source.charAt(e),i[e]=n,a[e]=n,s[e]=n,o[e]=n,"\\"===n&&e+1<t&&("A"===(r=this.source.charAt(e+1))?(i[e+1]="ï¿¿",a[e+1]="ï¿¿",s[e+1]="A",o[e+1]="A"):"G"===r?(i[e+1]="ï¿¿",a[e+1]="G",s[e+1]="ï¿¿",o[e+1]="G"):(i[e+1]=r,a[e+1]=r,s[e+1]=r,o[e+1]=r),e++);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}constructor(e,t){if((0,i._)(this,"source",void 0),(0,i._)(this,"ruleId",void 0),(0,i._)(this,"hasAnchor",void 0),(0,i._)(this,"hasBackReferences",void 0),(0,i._)(this,"_anchorCache",void 0),e&&"string"==typeof e){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if("\\"===e.charAt(a)&&a+1<t){let t=e.charAt(a+1);"z"===t?(r.push(e.substring(n,a)),r.push("$(?!\\n)(?<!\\n)"),n=a+2):("A"===t||"G"===t)&&(i=!0),a++}this.hasAnchor=i,0===n?this.source=e:(r.push(e.substring(n,t)),this.source=r.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=F.test(this.source):this.hasBackReferences=!1}},J=class{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)}
1push(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 X(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){if(!this._hasAnchors)return this.compile(e);if(t)if(n)return this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1;else return this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0;return n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0)}_resolveAnchors(e,t,n){return new X(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}constructor(){(0,i._)(this,"_items",void 0),(0,i._)(this,"_hasAnchors",void 0),(0,i._)(this,"_cached",void 0),(0,i._)(this,"_anchorCache",void 0),this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}},X=class{dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}constructor(e,t,n){(0,i._)(this,"scanner",void 0),this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}},Z=class{constructor(e,t){this.languageId=e,this.tokenType=t}},K=(t=class e{getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[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!")}constructor(e,t){(0,i._)(this,"_defaultAttributes",void 0),(0,i._)(this,"_embeddedLanguagesMatcher",void 0),(0,i._)(this,"_getBasicScopeAttributes",new d(e=>new Z(this._scopeToLanguage(e),this._toStandardTokenType(e)))),this._defaultAttributes=new Z(e,8),this._embeddedLanguagesMatcher=new Y(Object.entries(t||{}))}},(0,i._)(t,"_NULL_SCOPE_METADATA",new Z(0,0)),(0,i._)(t,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),t),Y=class{match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}constructor(e){if((0,i._)(this,"values",void 0),(0,i._)(this,"scopesRegExp",void 0),0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(e=>{let[t,n]=e;return u(t)});t.sort(),t.reverse(),this.scopesRegExp=RegExp("^((".concat(t.join(")|("),"))($|\\.)"),"")}}};void 0!==r.default&&r.default.env.VSCODE_TEXTMATE_DEBUG;var ee=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function et(e,t,n,r,i,a,s,o){let l=t.content.length,c=!1,u=-1;if(s){let s=function(e,t,n,r,i,a){let s=i.beginRuleCapturedEOL?0:-1,o=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof z&&o.push({rule:n,stack:t})}for(let p=o.pop();p;p=o.pop()){var l,c,u,d,h;let{ruleScanner:o,findOptions:f}=(l=p.rule,c=e,u=p.stack.endRule,d=n,h=r===s,{ruleScanner:l.compileWhileAG(c,u,d,h),findOptions:0}),m=o.findNextMatchSync(t,r,f);if(m){if(-2!==m.ruleId){i=p.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(a.produce(p.stack,m.captureIndices[0].start),er(e,t,n,p.stack,a,p.rule.whileCaptures,m.captureIndices),a.produce(p.stack,m.captureIndices[0].end),s=m.captureIndices[0].end,m.captureIndices[0].end>r&&(r=m.captureIndices[0].end,n=!1))}else{i=p.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:s,isFirstLine:n}}(e,t,n,r,i,a);
1i=s.stack,r=s.linePos,n=s.isFirstLine,u=s.anchorPosition}let d=Date.now();for(;!c;){if(0!==o&&Date.now()-d>o)return new ee(i,!0);!function(){let s=function(e,t,n,r,i,a){let s=function(e,t,n,r,i,a){let{ruleScanner:s,findOptions:o}=en(i.getRule(e),e,i.endRule,n,r===a),l=s.findNextMatchSync(t,r,o);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,t,n,r,i,a),o=e.getInjections();if(0===o.length)return s;let l=function(e,t,n,r,i,a,s){let o,l=Number.MAX_VALUE,c=null,u=0,d=a.contentNameScopesList.getScopeNames();for(let a=0,h=e.length;a<h;a++){let h=e[a];if(!h.matcher(d))continue;let{ruleScanner:p,findOptions:f}=en(t.getRule(h.ruleId),t,null,r,i===s),m=p.findNextMatchSync(n,i,f);if(!m)continue;let g=m.captureIndices[0].start;if(!(g>=l)&&(l=g,c=m.captureIndices,o=m.ruleId,u=h.priority,l===i))break}return c?{priorityMatch:-1===u,captureIndices:c,matchedRuleId:o}:null}(o,e,t,n,r,i,a);if(!l)return s;if(!s)return l;let c=s.captureIndices[0].start,u=l.captureIndices[0].start;return u<c||l.priorityMatch&&u===c?l:s}(e,t,n,r,i,u);if(!s){a.produce(i,l),c=!0;return}let o=s.captureIndices,d=s.matchedRuleId,h=!!o&&o.length>0&&o[0].end>r;if(-1===d){let s=i.getRule(e);a.produce(i,o[0].start),i=i.withContentNameScopesList(i.nameScopesList),er(e,t,n,i,a,s.endCaptures,o),a.produce(i,o[0].end);let d=i;if(i=i.parent,u=d.getAnchorPos(),!h&&d.getEnterPos()===r){i=d,a.produce(i,l),c=!0;return}}else{let s=e.getRule(d);a.produce(i,o[0].start);let p=i,f=s.getName(t.content,o),m=i.contentNameScopesList.pushAttributed(f,e);if(i=i.push(d,r,u,o[0].end===l,null,m,m),s instanceof V){er(e,t,n,i,a,s.beginCaptures,o),a.produce(i,o[0].end),u=o[0].end;let r=s.getContentName(t.content,o),d=m.pushAttributed(r,e);if(i=i.withContentNameScopesList(d),s.endHasBackReferences&&(i=i.withEndRule(s.getEndWithResolvedBackReferences(t.content,o))),!h&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),c=!0;return}}else if(s instanceof z){er(e,t,n,i,a,s.beginCaptures,o),a.produce(i,o[0].end),u=o[0].end;let r=s.getContentName(t.content,o),d=m.pushAttributed(r,e);if(i=i.withContentNameScopesList(d),s.whileHasBackReferences&&(i=i.withEndRule(s.getWhileWithResolvedBackReferences(t.content,o))),!h&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),c=!0;return}}else if(er(e,t,n,i,a,s.captures,o),a.produce(i,o[0].end),i=i.pop(),!h){i=i.safePop(),a.produce(i,l),c=!0;return}}o[0].end>r&&(r=o[0].end,n=!1)}()}return new ee(i,!1)}function en(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function er(e,t,n,r,i,a,s){if(0===a.length)return;let o=t.content,l=Math.min(a.length,s.length),c=[],u=s[0].end;for(let t=0;t<l;t++){let l=a[t];if(null===l)continue;let d=s[t];if(0===d.length)continue;if(d.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=d.start;
1)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?i.produceFromScopes(c[c.length-1].scopes,d.start):i.produce(r,d.start),l.retokenizeCapturedWithRuleId){let t=l.getName(o,s),a=r.contentNameScopesList.pushAttributed(t,e),c=l.getContentName(o,s),u=a.pushAttributed(c,e),h=r.push(l.retokenizeCapturedWithRuleId,d.start,-1,!1,null,a,u),p=e.createOnigString(o.substring(0,d.end));et(e,p,n&&0===d.start,d.start,h,i,!1,0),S(p);continue}let h=l.getName(o,s);if(null!==h){let t=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(h,e);c.push(new ei(t,d.end))}}for(;c.length>0;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var ei=class{constructor(e,t){(0,i._)(this,"scopes",void 0),(0,i._)(this,"endPos",void 0),this.scopes=e,this.endPos=t}};function ea(e,t,n,r,i){let a=C(t,es),s=$.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:s,grammar:i,priority:n.priority})}function es(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(function(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}(t[r],e))return n=r+1,!0;return!1})}var eo=class{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,n=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);if(n){let r=n.injections;if(r)for(let t in r)ea(e,t,r[t],this,n);let i=this._grammarRepository.injections(t);i&&i.forEach(t=>{let n=this.getExternalGrammar(t);if(n){let t=n.injectionSelector;t&&ea(e,t,n,this,n)}})}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,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=el(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){let i;if(-1===this._rootId&&(this._rootId=$.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==eu.NULL)i=!1,t.reset();else{let e;i=!0;let n=this._basicScopeAttributesProvider.getDefaultAttributes(),r=this.themeProvider.getDefaults(),a=A.set(0,n.languageId,n.tokenType,null,r.fontStyle,r.foregroundId,r.backgroundId),s=this.getRule(this._rootId).getName(null,null);e=s?ec.createRootAndLookUpScopeName(s,a,this):ec.createRoot("unknown",a),t=new eu(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let a=this.createOnigString(e),s=a.content.length,o=new eh(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=et(this,a,i,0,t,o,!0,r);return S(a),{lineLength:s,lineTokens:o,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}constructor(e,t,n,r,a,s,o,l){if((0,i._)(this,"_rootId",void 0),(0,i._)(this,"_lastRuleId",void 0),(0,i._)(this,"_ruleId2desc",void 0),(0,i._)(this,"_includedGrammars",void 0),(0,i._)(this,"_grammarRepository",void 0),(0,i._)(this,"_grammar",void 0),(0,i._)(this,"_injections",void 0),(0,i._)(this,"_basicScopeAttributesProvider",void 0),(0,i._)(this,"_tokenTypeMatchers",void 0),this._rootScopeName=e,this.balancedBracketSelectors=s,this._onigLib=l,this._basicScopeAttributesProvider=new K(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=el(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(let e of Object.keys(a))for(let t of C(e,es))this._tokenTypeMatchers.push({matcher:t.matcher,type:a[e]})}};function el(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let n=[];for(let r=0,i=t.length;r<i;r++)n[r]=e(t[r]);return n}(t):t instanceof RegExp?t:"object"==typeof t?function(t){let n={};for(let r in t)n[r]=e(t[r]);return n}(t):t}(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName}
1,e.repository.$base=t||e.repository.$self,e}var ec=class e{static fromExtension(t,n){var r;let i=t,a=null!=(r=null==t?void 0:t.scopePath)?r:null;for(let t of n)i=new e(i,a=p.push(a,t.scopeNames),t.encodedTokenAttributes);return i}static createRoot(t,n){return new e(null,new p(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new p(null,t),s=r.themeProvider.themeMatch(a),o=e.mergeAttributes(n,i,s);return new e(null,a,o)}get scopeName(){return this.scopePath.scopeName}toString(){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,n){let r=-1,i=0,a=0;return null!==n&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),A.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),s=r.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=[],n=this;for(;n&&n!==e;){var r,i;t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(null!=(i=null==(r=n.parent)?void 0:r.scopePath)?i:null)}),n=n.parent}return n===e?t.reverse():void 0}constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}},eu=(n=class e{equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&ec.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,n,r,i,a,s,o){return new e(this,t,n,r,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){var n,r;return this.parent&&(t=this.parent._writeString(e,t)),e[t++]="(".concat(this.ruleId,", ").concat(null==(n=this.nameScopesList)?void 0:n.toString(),", ").concat(null==(r=this.contentNameScopesList)?void 0:r.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(){var e,t,n,r,i,a;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:null!=(i=null==(t=this.nameScopesList)?void 0:t.getExtensionIfDefined(null!=(r=null==(e=this.parent)?void 0:e.nameScopesList)?r:null))?i:[],contentNameScopesList:null!=(a=null==(n=this.contentNameScopesList)?void 0:n.getExtensionIfDefined(this.nameScopesList))?a:[]}}static pushFrame(t,n){var r,i,a;let s=ec.fromExtension(null!=(r=null==t?void 0:t.nameScopesList)?r:null,n.nameScopesList);return new e(t,n.ruleId,null!=(i=n.enterPos)?i:-1,null!=(a=n.anchorPos)?a:-1,n.beginRuleCapturedEOL,n.endRule,s,ec.fromExtension(s,n.contentNameScopesList))}constructor(e,t,n,r,a,s,o,l){(0,i._)(this,"_stackElementBrand",void 0),(0,i._)(this,"_enterPos",void 0),(0,i._)(this,"_anchorPos",void 0),(0,i._)(this,"depth",void 0),this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=a,this.endRule=s,this.nameScopesList=o,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}},(0,i._)(n,"NULL",new n(null,0,0,0,!1,null,null,null)),n),ed=class{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}constructor(e,t){(0,i._)(this,"balancedBracketScopes",void 0),(0,i._)(this,"unbalancedBracketScopes",void 0),(0,i._)(this,"allowAny",!1),this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):C(e,es).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>C(e,es).map(e=>e.matcher))}},eh=class{produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var n,r,i,a;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let a=null!=(r=null==e?void 0:e.tokenAttributes)?r:0,s=!1;if((null==(n=this.balancedBracketSelectors)?void 0:n.matchesAlways)&&(s=!0),this._tokenTypeOverrides.length>
10||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=null!=(i=null==e?void 0:e.getScopeNames())?i:[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(a=A.set(a,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(s=this.balancedBracketSelectors.match(t))}if(s&&(a=A.set(a,0,8,s,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),this._lastTokenEndIndex=t;return}let s=null!=(a=null==e?void 0:e.getScopeNames())?a:[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:s}),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 n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}constructor(e,t,n,r){(0,i._)(this,"_emitBinaryTokens",void 0),(0,i._)(this,"_lineText",void 0),(0,i._)(this,"_tokens",void 0),(0,i._)(this,"_binaryTokens",void 0),(0,i._)(this,"_lastTokenEndIndex",void 0),(0,i._)(this,"_tokenTypeOverrides",void 0),this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}},ep=class{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,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,new eo(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}constructor(e,t){(0,i._)(this,"_grammars",new Map),(0,i._)(this,"_rawGrammars",new Map),(0,i._)(this,"_injectionGrammars",new Map),(0,i._)(this,"_theme",void 0),this._onigLib=t,this._theme=e}},ef=class{dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(h.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new ed(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new I(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,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 n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}constructor(e){(0,i._)(this,"_options",void 0),(0,i._)(this,"_syncRegistry",void 0),(0,i._)(this,"_ensureGrammarCache",void 0),this._options=e,this._syncRegistry=new ep(h.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}},em=eu.NULL},582933,e=>{"use strict";e.s(["htmlVoidElements",()=>t]);let t=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","
1image","img","input","keygen","link","meta","param","source","track","wbr"]},792455,e=>{"use strict";e.s(["zwitch",()=>n]);let t={}.hasOwnProperty;function n(e,n){let r=n||{};function i(n){for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];let o=i.invalid,l=i.handlers;if(n&&t.call(n,e)){let r=String(n[e]);o=t.call(l,r)?l[r]:i.unknown}if(o)return o.call(this,n,...a)}return i.handlers=r.handlers||{},i.invalid=r.invalid,i.unknown=r.unknown,i}},255507,e=>{"use strict";e.s(["core",()=>s]);let t=/["&'<>`]/g,n=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,r=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,i=/[|\\{}()[\]^$+*?.]/g,a=new WeakMap;function s(e,s){var o;let l;if(e=e.replace(s.subset?(o=s.subset,(l=a.get(o))||(l=function(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(i,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(o),a.set(o,l)),l):t,c),s.subset||s.escapeOnly)return e;return e.replace(n,function(e,t,n){return s.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,n.charCodeAt(t+2),s)}).replace(r,c);function c(e,t,n){return s.format(e.charCodeAt(0),n.charCodeAt(t+1),s)}}},426274,e=>{"use strict";e.s(["toHexadecimal",()=>n]);let t=/[\dA-Fa-f]/;function n(e,n,r){let i="&#x"+e.toString(16).toUpperCase();return r&&n&&!t.test(String.fromCharCode(n))?i:i+";"}},520041,e=>{"use strict";e.s(["toDecimal",()=>n]);let t=/\d/;function n(e,n,r){let i="&#"+String(e);return r&&n&&!t.test(String.fromCharCode(n))?i:i+";"}},314058,e=>{"use strict";e.s(["characterEntitiesHtml4",()=>t]);let t={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",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:"€"}},277312,e=>{"use strict";e.s(["dangerous",()=>t]);let t=["cent","copy","divide","gt","lt","not","para","times"]},603002,e=>{"use strict";let t;e.s(["toNamed",()=>l]);var n=e.i(652855),r=e.i(314058),i=e.i(277312);let a={}.hasOwnProperty,s={};for(t in r.characterEntitiesHtml4)a.call(r.characterEntitiesHtml4,t)&&(s[r.characterEntitiesHtml4[t]]=t);let o=/[^\dA-Za-z]/;function l(e,t,r,l){let c=String.fromCharCode(e);if(a.call(s,c)){let e=s[c],a="&"+e;return r&&n.characterEntitiesLegacy.includes(e)&&!i.dangerous.includes(e)&&(!l||t&&61!==t&&o.test(String.fromCharCode(t)))?a:a+";"}return""}},665478,e=>{"use strict";e.s(["formatSmart",()=>i]);var t=e.i(426274),n=e.i(520041),r=e.i(603002);function i(e,i,a){let s,o=(0,t.toHexadecimal)(e,i,a.omitOptionalSemicolons);if((a.useNamedReferences||a.useShortestReferences)&&(s=(0,r.toNamed)(e,i,a.omitOptionalSemicolons,a.attribute)),(a.useShortestReferences||!s)&&a.useShortestReferences){let t=(0,n.toDecimal)(e,i,a.omitOptionalSemicolons);t.length<o.length&&(o=t)}return s&&(!a.useShortestReferences||s.length<o.length)?s:o}},916939,e=>{"use strict";function t(e){return"&#x"+e.toString(16).toUpperCase()+";"}e.s(["formatBasic",()=>t])},924814,e=>{"use strict";e.s(["stringifyEntities",()=>r]);var t=e.i(255507),n=e.i(665478);function r(e,r){return(0,t.core)(e,Object.assign({format:n.formatSmart},r))}e.i(916939)},924378,e=>{"use strict";e.s(["comment",()=>a]);var t=e.i(924814);let n=/^>|^->|<!--|-->|--!>|<!-$/g,r=[">"],i=["<",">"];function a(e,a,s,o){return o.settings.bogusComments?"<?"+(0,t.stringifyEntities)(e.value,Object.assign({},o.settings.characterReferences,{subset:r}))+">":"<!--"+e.value.replace(n,function(e){return(0,t.stringifyEntities)(e,Object.assign({},o.settings.characterReferences,{subset:i}))})+"-->"}},509266,e=>{"use strict";function t(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}e.s(["doctype",()=>t])},669462,e=>{"use strict";function t(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}e.s(["ccount",()=>t])},302663,e=>{"use strict";e.s(["siblingAfter",()=>n,"siblingBefore",()=>r]);var t=e.i(253528);let n=a(1),r=a(-1),i=[];function a(e){return function(n,r,a){let s=n?n.children:i,o=(r||0)+e,l=s[o];if(!a)for(;l&&(0,t.whitespace)(l);)o+=e,l=s[o];return l}}},233285,e=>{"use strict";e.s(["omission",()=>n]);let t={}.hasOwnProperty;function n(e){return function(n,r,i){return t.call(e,n.tagName)&&e[n.tagName](n,r,i)}}},864637,e=>{"use strict";e.s(["closing",()=>r]);var t=e.i(253528),n=e.i(302663);let r=(0,e.i(233285).omission)({body:function(e,t,r){let i=(0,n.siblingAfter)(r,t);return!i||"comment"!==i.type},caption:i,colgroup:i,dd:function(e,t,r){let i=(0,n.siblingAfter)(r,t);return!i||"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName)},dt:function(e,t,r){let i=(0,n.siblingAfter)(r,t);return!!(i&&"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName))},head:i,html:function(e,t,r){let i=(0,n.siblingAfter)(r,t);return!i||"comment"!==i.type},li:function(e,t,r){let i=(0,n.siblingAfter)(r,t);return!i||"element"===i.type&&"li"===i.tagName},optgroup:function(e,t,r){let i=(0,n.siblingAfter)(r,t);return!i||"element"===i.type&&"optgroup"===i.tagName},option:function(e,t,r){let i=(0,n.siblingAfter)(r,t);return!i||"element"===i.type&&("option"===i.tagName||"optgroup"===i.tagName)},p:function(e,t,r){let i=(0,n.siblingAfter)(r,t);return i?"element"===i.type&&("address"===i.tagName||"article"===i.tagName||"aside"===i.tagName||"blockquote"===i.tagName||"details"===i.tagName||"div"===i.tagName||"dl"===i.tagName||"fieldset"===i.tagName||"figcaption"===i.tagName||"figure"===i.tagName||"footer"===i.tagName||"form"===i.tagName||"h1"===i.tagName||"h2"===i.tagName||"h3"===i.tagName||"h4"===i.tagName||"h5"===i.tagName||"h6"===i.tagName||"header"===i.tagName||"hgroup"===i.tagName||"hr"===i.tagName||"main"===i.tagName||"menu"===i.tagName||"nav"===i.tagName||"ol"===i.tagName||"p"===i.tagName||"pre"===i.tagName||"section"===i.tagName||"table"===i.tagName||"ul"===i.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:a,rt:a,tbody:function(e,t,r){let i=(0,n.siblingAfter)(r,t);return!i||"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName)},td:s,tfoot:function(e,t,r){return!(0,n.siblingAfter)(r,t)},th:s,thead:function(e,t,r){let i=(0,n.siblingAfter)(r,t);return!!(i&&"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName))},tr:function(e,t,r){let i=(0,n.siblingAfter)(r,t);return!i||"element"===i.type&&"tr"===i.tagName}});
1function i(e,r,i){let a=(0,n.siblingAfter)(i,r,!0);return!a||"comment"!==a.type&&!("text"===a.type&&(0,t.whitespace)(a.value.charAt(0)))}function a(e,t,r){let i=(0,n.siblingAfter)(r,t);return!i||"element"===i.type&&("rp"===i.tagName||"rt"===i.tagName)}function s(e,t,r){let i=(0,n.siblingAfter)(r,t);return!i||"element"===i.type&&("td"===i.tagName||"th"===i.tagName)}},61114,e=>{"use strict";e.s(["opening",()=>i]);var t=e.i(253528),n=e.i(302663),r=e.i(864637);let i=(0,e.i(233285).omission)({body:function(e){let r=(0,n.siblingAfter)(e,-1,!0);return!r||"comment"!==r.type&&!("text"===r.type&&(0,t.whitespace)(r.value.charAt(0)))&&("element"!==r.type||"meta"!==r.tagName&&"link"!==r.tagName&&"script"!==r.tagName&&"style"!==r.tagName&&"template"!==r.tagName)},colgroup:function(e,t,i){let a=(0,n.siblingBefore)(i,t),s=(0,n.siblingAfter)(e,-1,!0);return!(i&&a&&"element"===a.type&&"colgroup"===a.tagName&&(0,r.closing)(a,i.children.indexOf(a),i))&&!!(s&&"element"===s.type&&"col"===s.tagName)},head:function(e){let t=new Set;for(let n of e.children)if("element"===n.type&&("base"===n.tagName||"title"===n.tagName)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||"element"===n.type},html:function(e){let t=(0,n.siblingAfter)(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,i){let a=(0,n.siblingBefore)(i,t),s=(0,n.siblingAfter)(e,-1);return!(i&&a&&"element"===a.type&&("thead"===a.tagName||"tbody"===a.tagName)&&(0,r.closing)(a,i.children.indexOf(a),i))&&!!(s&&"element"===s.type&&"tr"===s.tagName)}})},188167,e=>{"use strict";e.s(["element",()=>u]);var t=e.i(669462),n=e.i(243351),r=e.i(124359),i=e.i(783892),a=e.i(852373),s=e.i(924814),o=e.i(864637),l=e.i(61114);let c={name:[["	\n\f\r &/=>".split(""),"	\n\f\r \"&'/=>`".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("")]]};function u(e,u,d,h){let p,f=h.schema,m="svg"!==f.space&&h.settings.omitOptionalTags,g="svg"===f.space?h.settings.closeEmptyElements:h.settings.voids.includes(e.tagName.toLowerCase()),_=[];"html"===f.space&&"svg"===e.tagName&&(h.schema=i.svg);let y=function(e,i){let o,l=[],u=-1;if(i){for(o in i)if(null!==i[o]&&void 0!==i[o]){let u=function(e,i,o){let l,u=(0,r.find)(e.schema,i),d=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,h=+!e.settings.allowDangerousCharacters,p=e.quote;if(u.overloadedBoolean&&(o===u.attribute||""===o)?o=!0:(u.boolean||u.overloadedBoolean)&&("string"!=typeof o||o===u.attribute||""===o)&&(o=!!o),null==o||!1===o||"number"==typeof o&&Number.isNaN(o))return"";let f=(0,s.stringifyEntities)(u.attribute,Object.assign({},e.settings.characterReferences,{subset:c.name[d][h]}));return!0===o||(o=Array.isArray(o)?(u.commaSeparated?n.stringify:a.stringify)(o,{padLeft:!e.settings.tightCommaSeparatedLists}):String(o),e.settings.collapseEmptyAttributes&&!o)?f:(e.settings.preferUnquoted&&(l=(0,s.stringifyEntities)(o,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:c.unquoted[d][h]}))),l!==o&&(e.settings.quoteSmart&&(0,t.ccount)(o,p)>(0,t.ccount)(o,e.alternative)&&(p=e.alternative),l=p+(0,s.stringifyEntities)(o,Object.assign({},e.settings.characterReferences,{subset:("'"===p?c.single:c.double)[d][h],attribute:!0}))+p),f+(l?"="+l:l))}(e,o,i[o]);u&&l.push(u)}}for(;++u<l.length;){let t=e.settings.tightAttributes?l[u].charAt(l[u].length-1):void 0;u!==l.length-1&&'"'!==t&&"'"!==t&&(l[u]+=" ")}return l.join("")}(h,e.properties),b=h.all("html"===f.space&&"template"===e.tagName?e.content:e);return h.schema=f,b&&(g=!1),!y&&m&&(0,l.opening)(e,u,d)||(_.push("<",e.tagName,y?" "+y:""),g&&("svg"===f.space||h.settings.closeSelfClosing)&&(p=y.charAt(y.length-1),(!h.settings.tightSelfClosing||"/"===p||p&&'"'!==p&&"'"!==p)&&_.push(" "),_.push("/")),_.push(">")),_.push(b),g||m&&(0,o.closing)(e,u,d)||_.push("</"+e.tagName+">"),_.join("")}},812639,e=>{"use strict";e.s(["text",()=>r]);var t=e.i(924814);let n=["<","&"];function r(e,r,i,a){return i&&"element"===i.type&&("script"===i.tagName||"style"===i.tagName)?e.value:(0,t.stringifyEntities)(e.value,Object.assign({},a.settings.characterReferences,{subset:n}))}},314792,e=>{"use strict";e.s(["raw",()=>n]);var t=e.i(812639);function n(e,n,r,i){return i.settings.allowDangerousHtml?e.value:(0,t.text)(e,n,r,i)}},148183,e=>{"use strict";function t(e,t,n,r){return r.all(e)}e.s(["root",()=>t])},652237,e=>{"use strict";e.s(["handle",()=>l]);var t=e.i(792455),n=e.i(924378),r=e.i(509266),i=e.i(188167),a=e.i(314792),s=e.i(148183),o=e.i(812639);let l=(0,t.zwitch)("type",{invalid:function(e){throw Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:n.comment,doctype:r.doctype,element:i.element,raw:a.raw,root:s.root,text:o.text}})},552831,e=>{"use strict";e.s(["toHtml",()=>o]);var t=e.i(582933),n=e.i(783892),r=e.i(652237);let i={},a={},s=[];function o(e,r){let s=r||i,o=s.quote||'"';if('"'!==o&&"'"!==o)throw Error("Invalid quote `"+o+"`, expected `'` or `\"`");return({one:l,all:c,settings:{omitOptionalTags:s.omitOptionalTags||!1,allowParseErrors:s.allowParseErrors||!1,allowDangerousCharacters:s.allowDangerousCharacters||!1,quoteSmart:s.quoteSmart||!1,preferUnquoted:s.preferUnquoted||!1,tightAttributes:s.tightAttributes||!1,upperDoctype:s.upperDoctype||!1,tightDoctype:s.tightDoctype||!1,bogusComments:s.bogusComments||!1,tightCommaSeparatedLists:s.tightCommaSeparatedLists||!1,tightSelfClosing:s.tightSelfClosing||!1,collapseEmptyAttributes:s.collapseEmptyAttributes||!1,allowDangerousHtml:s.allowDangerousHtml||!1,voids:s.voids||t.htmlVoidElements,characterReferences:s.characterReferences||a,closeSelfClosing:s.closeSelfClosing||!1,closeEmptyElements:s.closeEmptyElements||!1},schema:"svg"===s.space?n.svg:n.html,quote:o,alternative:'"'===o?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function l(e,t,n){return(0,r.handle)(e,t,n,this)}function c(e){let t=[],n=e&&e.children||s,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}},795843,e=>{"use strict";e.s(["default",()=>l]);var t=e.i(86112);function n(){let e=(0,t._)(["(?:p{Emoji}️⃣?|p{Emoji_Modifier_Base}p{Emoji_Modifier}?|p{Emoji_Presentation})"],["(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})"]);return n=function(){return e},e}function r(){let e=(0,t._)(["󠁡-󠁺"],["\\u{E0061}-\\u{E007A}"]);return r=function(){return e},e}function i(){let e=(0,t._)(["[🇦-🇿]{2}|🏴[","]{2}[󠀰-󠀹","]{1,3}󠁿|","(?:‍",")*"],["[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[","]{2}[\\u{E0030}-\\u{E0039}","]{1,3}\\u{E007F}|","(?:\\u200D",")*"]);return i=function(){return e},e}let a=String.raw,s=a(n()),o=a(r()),l=()=>
1RegExp(a(i(),o,o,s,s),"gu")},562363,e=>{"use strict";e.s(["incrementIfAtLeast",()=>i,"noncapturingDelim",()=>r,"spliceStr",()=>a]);var t=e.i(86112);function n(){let e=(0,t._)(["(?(?:[:=!>A-Za-z-]|<[=!]|(DEFINE))"],["\\(\\?(?:[:=!>A-Za-z\\-]|<[=!]|\\(DEFINE\\))"]);return n=function(){return e},e}let r=String.raw(n());function i(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function a(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}},100242,e=>{"use strict";e.s(["Context",()=>r,"forEachUnescaped",()=>a,"getGroupContents",()=>o,"hasUnescaped",()=>s,"replaceUnescaped",()=>i]);var t=e.i(86112);function n(){let e=(0,t._)(["","|(?<$skip>[^?|\\?.)"],["","|(?<$skip>\\[\\^?|\\\\?.)"]);return n=function(){return e},e}let r=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function i(e,t,i,a){let s=RegExp(String.raw(n(),t),"gsu"),o=[!1],l=0,c="";for(let t of e.matchAll(s)){let{0:e,groups:{$skip:n}}=t;if(!n&&(!a||a===r.DEFAULT==!l)){i instanceof Function?c+=i(t,{context:l?r.CHAR_CLASS:r.DEFAULT,negated:o[o.length-1]}):c+=i;continue}"["===e[0]?(l++,o.push("^"===e[1])):"]"===e&&l&&(l--,o.pop()),c+=e}return c}function a(e,t,n,r){i(e,t,n,r)}function s(e,t,n){return!!function(e,t){let n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3?arguments[3]:void 0;if(!RegExp(t,"su").test(e))return null;let s=RegExp("".concat(t,"|(?<$skip>\\\\?.)"),"gsu");s.lastIndex=i;let o=0;for(;n=s.exec(e);){let{0:e,groups:{$skip:t}}=n;if(!t&&(!a||a===r.DEFAULT==!o))return n;"["===e?o++:"]"===e&&o&&o--,s.lastIndex==n.index&&s.lastIndex++}return null}(e,t,0,n)}function o(e,t){let n,r=RegExp("\\\\?.","gsu");r.lastIndex=t;let i=e.length,a=0,s=1;for(;n=r.exec(e);){let[e]=n;if("["===e)a++;else if(a)"]"===e&&a--;else if("("===e)s++;else if(")"===e&&!--s){i=n.index;break}}return e.slice(t,i)}},322697,e=>{"use strict";e.s(["atomic",()=>c,"possessive",()=>h]);var t=e.i(86112),n=e.i(562363),r=e.i(100242);function i(){let e=(0,t._)(["(?<noncapturingStart>",")|(?<capturingStart>((?:?<[^>]+>)?)|\\?."],["(?<noncapturingStart>",")|(?<capturingStart>\\((?:\\?<[^>]+>)?)|\\\\?."]);return i=function(){return e},e}function a(){let e=(0,t._)(["\\(?<backrefNum>[1-9]d*)|<$$(?<wrappedBackrefNum>d+)>"],["\\\\(?<backrefNum>[1-9]\\d*)|<\\$\\$(?<wrappedBackrefNum>\\d+)>"]);return a=function(){return e},e}function s(){let e=(0,t._)(["(?:[?*+]|{d+(?:,d*)?})"],["(?:[?*+]|\\{\\d+(?:,\\d*)?\\})"]);return s=function(){return e},e}function o(){let e=(0,t._)(["\n\\(?: d+\n  | c[A-Za-z]\n  | [gk]<[^>]+>\n  | [pPu]{[^}]+}\n  | u[A-Fa-fd]{4}\n  | x[A-Fa-fd]{2}\n  )\n| ((?: ? (?: [:=!>]\n  | <(?:[=!]|[^>]+>)\n  | [A-Za-z-]+:\n  | (DEFINE)\n  ))?\n| (?<qBase>",")(?<qMod>[?+]?)(?<invalidQ>[?*+{]?)\n| \\?.\n"],["\n\\\\(?: \\d+\n  | c[A-Za-z]\n  | [gk]<[^>]+>\n  | [pPu]\\{[^\\}]+\\}\n  | u[A-Fa-f\\d]{4}\n  | x[A-Fa-f\\d]{2}\n  )\n| \\((?: \\? (?: [:=!>]\n  | <(?:[=!]|[^>]+>)\n  | [A-Za-z\\-]+:\n  | \\(DEFINE\\)\n  ))?\n| (?<qBase>",")(?<qMod>[?+]?)(?<invalidQ>[?*+\\{]?)\n| \\\\?.\n"]);return o=function(){return e},e}let l=RegExp(String.raw(i(),n.noncapturingDelim),"gsu");function c(e,t){var i,s;let o,c=null!=(i=null==t?void 0:t.hiddenCaptures)?i:[],u=null!=(s=null==t?void 0:t.captureTransfers)?s:new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:u,hiddenCaptures:c};let d="(?:(?=(",h=[0],p=[],f=0,m=0,g=NaN;do{let t;o=!1;let r=0,i=0,a=!1;for(l.lastIndex=Number.isNaN(g)?0:g+d.length;t=l.exec(e);){let{0:s,index:l,groups:{capturingStart:_,noncapturingStart:y}}=t;if("["===s)r++;else if(r)"]"===s&&r--;else if("(?>"!==s||a){if(a&&y)i++;else if(_)a?i++:(f++,h.push(f+m));else if(")"===s&&a){if(!i){let t=f+ ++m;if(e="".concat(e.slice(0,g)).concat(d).concat(e.slice(g+3,l),"))<$$").concat(t,">)").concat(e.slice(l+1)),o=!0,p.push(t),(0,n.incrementIfAtLeast)(c,t),u.size){let e=new Map;u.forEach((n,r)=>{e.set(r>=t?r+1:r,n.map(e=>e>=t?e+1:e))}),u=e}break}i--}}else g=l,a=!0}}while(o)return c.push(...p),{pattern:e=(0,r.replaceUnescaped)(e,String.raw(a()),e=>{let{0:t,groups:{backrefNum:n,wrappedBackrefNum:r}}=e;if(n){let e=+n;if(e>h.length-1)throw Error('Backref "'.concat(t,'" greater than number of captures'));return"\\".concat(h[e])}return"\\".concat(r)},r.Context.DEFAULT),captureTransfers:u,hiddenCaptures:c}}let u=String.raw(s()),d=RegExp(String.raw(o(),u).replace(/\s+/g,""),"gsu");function h(e){let t;if(!new RegExp("".concat(u,"\\+")).test(e))return{pattern:e};let r=[],i=null,a=null,s="",o=0;for(d.lastIndex=0;t=d.exec(e);){let{0:l,index:c,groups:{qBase:u,qMod:h,invalidQ:p}}=t;if("["===l)o||(a=c),o++;else if("]"===l)o?o--:a=null;else if(!o)if("+"===h&&s&&!s.startsWith("(")){if(p)throw Error('Invalid quantifier "'.concat(l,'"'));let t=-1;
1if(/^\{\d+\}$/.test(u))e=(0,n.spliceStr)(e,c+u.length,h,"");else{if(")"===s||"]"===s){let t=")"===s?i:a;if(null===t)throw Error('Invalid unmatched "'.concat(s,'"'));e="".concat(e.slice(0,t),"(?>").concat(e.slice(t,c)).concat(u,")").concat(e.slice(c+l.length))}else e="".concat(e.slice(0,c-s.length),"(?>").concat(s).concat(u,")").concat(e.slice(c+l.length));t+=4}d.lastIndex+=t}else"("===l[0]?r.push(c):")"===l&&(i=r.length?r.pop():null);s=l}return{pattern:e}}},865378,e=>{"use strict";e.s([]),e.i(746349)},625504,e=>{"use strict";e.s([]),e.i(322697),e.i(865378)},225506,e=>{"use strict";e.s(["recursion",()=>C]);var t=e.i(86112),n=e.i(100242);function r(){let e=(0,t._)(["\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>"],["\\\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>"]);return r=function(){return e},e}function i(){let e=(0,t._)(["(?R=(?<rDepth>[^)]+))|",""],["\\(\\?R=(?<rDepth>[^\\)]+)\\)|",""]);return i=function(){return e},e}function a(){let e=(0,t._)(["(?<(?![=!])(?<captureName>[^>]+)>"],["\\(\\?<(?![=!])(?<captureName>[^>]+)>"]);return a=function(){return e},e}function s(){let e=(0,t._)(["","|(?<unnamed>()(?!?)"],["","|(?<unnamed>\\()(?!\\?)"]);return s=function(){return e},e}function o(){let e=(0,t._)(["","|","|(?|\\?."],["","|","|\\(\\?|\\\\?."]);return o=function(){return e},e}function l(){let e=(0,t._)(["(?(DEFINE)"],["\\(\\?\\(DEFINE\\)"]);return l=function(){return e},e}function c(){let e=(0,t._)(["\\[1-9]"],["\\\\[1-9]"]);return c=function(){return e},e}function u(){let e=(0,t._)(["g<","&R=",">"],["\\g<","&R=",">"]);return u=function(){return e},e}function d(){let e=(0,t._)(['Recursive g cannot be used outside the referenced group "','"'],['Recursive \\g cannot be used outside the referenced group "','"']);return d=function(){return e},e}function h(){let e=(0,t._)(["","|((?!?)"],["","|\\((?!\\?)"]);return h=function(){return e},e}function p(){let e=(0,t._)(["","|\\k<(?<backref>[^>]+)>"],["","|\\\\k<(?<backref>[^>]+)>"]);return p=function(){return e},e}function f(){let e=(0,t._)(["k<","",">"],["\\k<","",">"]);return f=function(){return e},e}let m=String.raw,g=m(r()),_=m(i(),g),y=m(a()),b=m(s(),y),v=RegExp(m(o(),y,_),"gsu"),A="Cannot use multiple overlapping recursions";function C(e,t){var r;let i,{hiddenCaptures:a,mode:s}={hiddenCaptures:[],mode:"plugin",...t},o=null!=(r=null==t?void 0:t.captureTransfers)?r:new Map;if(!RegExp(_,"su").test(e))return{pattern:e,captureTransfers:o,hiddenCaptures:a};if("plugin"===s&&(0,n.hasUnescaped)(e,m(l()),n.Context.DEFAULT))throw Error("DEFINE groups cannot be used with recursion");let p=[],f=(0,n.hasUnescaped)(e,m(c()),n.Context.DEFAULT),g=new Map,b=[],C=!1,S=0,N=0;for(v.lastIndex=0;i=v.exec(e);){let{0:t,groups:{captureName:r,rDepth:l,gRNameOrNum:c,gRDepth:E}}=i;if("["===t)S++;else if(S)"]"===t&&S--;else if(l){if(k(l),C)throw Error(A);if(f)throw Error("".concat("external"===s?"Backrefs":"Numbered backrefs"," cannot be used with global recursion"));let t=e.slice(0,i.index),r=e.slice(v.lastIndex);if((0,n.hasUnescaped)(r,_,n.Context.DEFAULT))throw Error(A);let c=l-1;e=w(t,r,c,!1,a,p,N),o=x(o,t,c,p.length,0,N);break}else if(c){k(E);let r=!1;for(let e of b)if(e.name===c||e.num===+c){if(r=!0,e.hasRecursedWithin)throw Error(A);break}if(!r)throw Error(m(d(),"external"===s?c:m(u(),c,E)));let l=g.get(c),_=(0,n.getGroupContents)(e,l);if(f&&(0,n.hasUnescaped)(_,m(h(),y),n.Context.DEFAULT))throw Error("".concat("external"===s?"Backrefs":"Numbered backrefs"," cannot be used with recursion of capturing groups"));let S=e.slice(l,i.index),I=_.slice(S.length+t.length),L=p.length,T=E-1,P=w(S,I,T,!0,a,p,N);o=x(o,S,T,p.length-L,L,N);let R=e.slice(0,l),M=e.slice(l+_.length);e="".concat(R).concat(P).concat(M),v.lastIndex+=P.length-t.length-S.length-I.length,b.forEach(e=>e.hasRecursedWithin=!0),C=!0}else if(r)N++,g.set(String(N),v.lastIndex),g.set(r,v.lastIndex),b.push({num:N,name:r});else if("("===t[0]){let e="("===t;e&&(N++,g.set(String(N),v.lastIndex)),b.push(e?{num:N}:{})}else")"===t&&b.pop()}return a.push(...p),{pattern:e,captureTransfers:o,hiddenCaptures:a}}function k(e){let t="Max depth must be integer between 2 and 100; used ".concat(e);
1if(!/^[1-9]\d*$/.test(e)||(e*=1)<2||e>100)throw Error(t)}function w(e,t,r,i,a,s,o){let l=new Set;i&&(0,n.forEachUnescaped)(e+t,y,e=>{let{groups:{captureName:t}}=e;l.add(t)},n.Context.DEFAULT);let c=[r,i?l:null,a,s,o];return"".concat(e).concat(S("(?:".concat(e),"forward",...c),"(?:)").concat(S("".concat(t,")"),"backward",...c)).concat(t)}function S(e,t,r,i,a,s,o){let l=e=>"forward"===t?e+2:r-e+2-1,c="";for(let t=0;t<r;t++){let r=l(t);c+=(0,n.replaceUnescaped)(e,m(p(),b),e=>{let{0:t,groups:{captureName:n,unnamed:l,backref:c}}=e;if(c&&i&&!i.has(c))return t;let u="_$".concat(r);if(l||n){let e=o+s.length+1;return s.push(e),function(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}(a,e),l?t:"(?<".concat(n).concat(u,">")}return m(f(),c,u)},n.Context.DEFAULT)}return c}function x(e,t,r,i,a,s){if(e.size&&i){let o=0;(0,n.forEachUnescaped)(t,b,()=>o++,n.Context.DEFAULT);let l=s-o+a,c=new Map;return e.forEach((e,t)=>{let n=(i-o*r)/r,a=o*r,s=t>l+o?t+i:t,u=[];for(let t of e)if(t<=l)u.push(t);else if(t>l+o+n)u.push(t+i);else if(t<=l+o)for(let e=0;e<=r;e++)u.push(t+o*e);else for(let e=0;e<=r;e++)u.push(t+a+n*e);c.set(s,u)}),c}return e}},877522,e=>{"use strict";e.s(["toRegExp",()=>tK]);var t,n,r,i,a,s,o,l=e.i(982936),c=e.i(814981),u=e.i(109488),d=e.i(728356),h=e.i(696803),p=e.i(746349),f=e.i(498977),m=e.i(424298),g=e.i(86112),_=e.i(795843);e.i(625504);var y=e.i(322697),b=e.i(225506);function v(){let e=(0,g._)(["[d-a]"],["[\\d\\-a]"]);return v=function(){return e},e}function A(){let e=(0,g._)(["[p{Alpha}p{Nd}]"],["[\\p{Alpha}\\p{Nd}]"]);return A=function(){return e},e}function C(){let e=(0,g._)(["p{Alpha}"],["\\p{Alpha}"]);return C=function(){return e},e}function k(){let e=(0,g._)(["p{ASCII}"],["\\p{ASCII}"]);return k=function(){return e},e}function w(){let e=(0,g._)(["[p{Zs}	]"],["[\\p{Zs}\\t]"]);return w=function(){return e},e}function S(){let e=(0,g._)(["p{cntrl}"],["\\p{cntrl}"]);return S=function(){return e},e}function x(){let e=(0,g._)(["p{Nd}"],["\\p{Nd}"]);return x=function(){return e},e}function N(){let e=(0,g._)(["[P{space}&&P{cntrl}&&P{Cn}&&P{Cs}]"],["[\\P{space}&&\\P{cntrl}&&\\P{Cn}&&\\P{Cs}]"]);return N=function(){return e},e}function E(){let e=(0,g._)(["p{Lower}"],["\\p{Lower}"]);return E=function(){return e},e}function I(){let e=(0,g._)(["[[P{space}&&P{cntrl}&&P{Cn}&&P{Cs}]p{Zs}]"],["[[\\P{space}&&\\P{cntrl}&&\\P{Cn}&&\\P{Cs}]\\p{Zs}]"]);return I=function(){return e},e}function L(){let e=(0,g._)(["[p{P}p{S}]"],["[\\p{P}\\p{S}]"]);return L=function(){return e},e}function T(){let e=(0,g._)(["p{space}"],["\\p{space}"]);return T=function(){return e},e}function P(){let e=(0,g._)(["p{Upper}"],["\\p{Upper}"]);return P=function(){return e},e}function R(){let e=(0,g._)(["[p{Alpha}p{M}p{Nd}p{Pc}]"],["[\\p{Alpha}\\p{M}\\p{Nd}\\p{Pc}]"]);return R=function(){return e},e}function M(){let e=(0,g._)(["p{AHex}"],["\\p{AHex}"]);return M=function(){return e},e}function j(){let e=(0,g._)(["[^?"],["\\[\\^?"]);return j=function(){return e},e}function G(){let e=(0,g._)(["[pP]{(?:^?[- _]*[A-Za-z][- w]*})?"],["[pP]\\{(?:\\^?[-\\x20_]*[A-Za-z][-\\x20\\w]*\\})?"]);return G=function(){return e},e}function O(){let e=(0,g._)(["x[89A-Fa-f]p{AHex}(?:\\x[89A-Fa-f]p{AHex})*"],["x[89A-Fa-f]\\p{AHex}(?:\\\\x[89A-Fa-f]\\p{AHex})*"]);return O=function(){return e},e}function B(){let e=(0,g._)(["u(?:p{AHex}{4})? | x{[^}]*}? | xp{AHex}{0,2}"],["u(?:\\p{AHex}{4})? | x\\{[^\\}]*\\}? | x\\p{AHex}{0,2}"]);return B=function(){return e},e}function F(){let e=(0,g._)(["o{[^}]*}?"],["o\\{[^\\}]*\\}?"]);return F=function(){return e},e}function D(){let e=(0,g._)(["d{1,3}"],["\\d{1,3}"]);return D=function(){return e},e}function U(){let e=(0,g._)(["\n  \\ (?:\n    ","\n    | [gk]<[^>]*>?\n    | [gk]'[^']*'?\n    | .\n  )\n  | ( (?:\n    ? (?:\n      [:=!>({]\n      | <[=!]\n      | <[^>]*>\n      | '[^']*'\n      | ~|?\n      | #(?:[^)\\]|\\.?)*\n      | [^:)]*[:)]\n    )?\n    | *\n  )?\n  | ","\n  | ","\n  | .\n"],["\n  \\\\ (?:\n    ","\n    | [gk]<[^>]*>?\n    | [gk]'[^']*'?\n    | .\n  )\n  | \\( (?:\n    \\? (?:\n      [:=!>({]\n      | <[=!]\n      | <[^>]*>\n      | '[^']*'\n      | ~\\|?\n      | #(?:[^)\\\\]|\\\\.?)*\n      | [^:)]*[:)]\n    )?\n    | \\*\n  )?\n  | ","\n  | ","\n  | .\n"]);return U=function(){return e},e}function W(){let e=(0,g._)(["\n  \\ (?:\n    ","\n    | .\n  )\n  | [:(?:^?p{Alpha}+|^):]\n  | ","\n  | &&\n  | .\n"],["\n  \\\\ (?:\n    ","\n    | .\n  )\n  | \\[:(?
1:\\^?\\p{Alpha}+|\\^):\\]\n  | ","\n  | &&\n  | .\n"]);return W=function(){return e},e}function q(){let e=(0,g._)(["A"],["\\A"]);return q=function(){return e},e}function H(){let e=(0,g._)(["Z"],["\\Z"]);return H=function(){return e},e}function V(){let e=(0,g._)(["o{"],["\\o{"]);return V=function(){return e},e}function z(){let e=(0,g._)(['Incomplete escape ""'],['Incomplete escape "\\"']);return z=function(){return e},e}function $(){let e=(0,g._)(['Octal encoded byte above 177 unsupported "','"']);return $=function(){return e},e}function Q(){let e=(0,g._)(["Subroutine uses a group name that's not defined \"g<",'>"'],["Subroutine uses a group name that's not defined \"\\g<",'>"']);return Q=function(){return e},e}function J(){let e=(0,g._)(['Subroutine uses a duplicate group name "g<','>"'],['Subroutine uses a duplicate group name "\\g<','>"']);return J=function(){return e},e}function X(){let e=(0,g._)(["B"],["\\B"]);return X=function(){return e},e}function Z(){let e=(0,g._)(['Unicode property "p{','}" unsupported in Oniguruma'],['Unicode property "\\p{','}" unsupported in Oniguruma']);return Z=function(){return e},e}function K(){let e=(0,g._)(["(?=z|\n)"],["(?=\\z|\\n)"]);return K=function(){return e},e}function Y(){let e=(0,g._)(["(?<=A|\n(?!z))"],["(?<=\\A|\\n(?!\\z))"]);return Y=function(){return e},e}function ee(){let e=(0,g._)(['Uses "G" in a way that requires a subclass'],['Uses "\\G" in a way that requires a subclass']);return ee=function(){return e},e}function et(){let e=(0,g._)(["(?=\n?z)"],["(?=\\n?\\z)"]);return et=function(){return e},e}function en(){let e=(0,g._)(["[^\n]"],["[^\\n]"]);return en=function(){return e},e}function er(){let e=(0,g._)(['Uses "K" in a way that\'s unsupported'],['Uses "\\K" in a way that\'s unsupported']);return er=function(){return e},e}function ei(){let e=(0,g._)(['Uses "G" in a way that requires non-strict accuracy'],['Uses "\\G" in a way that requires non-strict accuracy']);return ei=function(){return e},e}function ea(){let e=(0,g._)(['Use of "X" requires non-strict accuracy'],['Use of "\\X" requires non-strict accuracy']);return ea=function(){return e},e}function es(){let e=(0,g._)(["p{RGI_Emoji}"],["\\p{RGI_Emoji}"]);return es=function(){return e},e}function eo(){let e=(0,g._)(["(?>\r\n|","|P{M}p{M}*)"],["(?>\\r\\n|","|\\P{M}\\p{M}*)"]);return eo=function(){return e},e}function el(){let e=(0,g._)(["[p{L}p{M}p{N}p{Pc}]"],["[\\p{L}\\p{M}\\p{N}\\p{Pc}]"]);return el=function(){return e},e}function ec(){let e=(0,g._)(["	"],["\\t"]);return ec=function(){return e},e}function eu(){let e=(0,g._)(["\n"],["\\n"]);return eu=function(){return e},e}function ed(){let e=(0,g._)(["\v"],["\\v"]);return ed=function(){return e},e}function eh(){let e=(0,g._)(["\f"],["\\f"]);return eh=function(){return e},e}function ep(){let e=(0,g._)(["\r"],["\\r"]);return ep=function(){return e},e}function ef(){let e=(0,g._)(["\u2028"],["\\u2028"]);return ef=function(){return e},e}function em(){let e=(0,g._)(["\u2029"],["\\u2029"]);return em=function(){return e},e}function eg(){let e=(0,g._)(["\uFEFF"],["\\uFEFF"]);return eg=function(){return e},e}function e_(){let e=(0,g._)(["B"],["\\B"]);return e_=function(){return e},e}function ey(){let e=(0,g._)(["\b"],["\\b"]);return ey=function(){return e},e}function eb(){let e=(0,g._)(["[^\n]"],["[^\\n]"]);return eb=function(){return e},e}function ev(){let e=(0,g._)(["D"],["\\D"]);return ev=function(){return e},e}function eA(){let e=(0,g._)(["d"],["\\d"]);return eA=function(){return e},e}function eC(){let e=(0,g._)(["P"],["\\P"]);return eC=function(){return e},e}function ek(){let e=(0,g._)(["p"],["\\p"]);return ek=function(){return e},e}function ew(){let e=(0,g._)(["W"],["\\W"]);return ew=function(){return e},e}function eS(){let e=(0,g._)(["w"],["\\w"]);return eS=function(){return e},e}function ex(){let e=(0,g._)(["g<","&R=",">"],["\\g<","&R=",">"]);return ex=function(){return e},e}var eN=String.fromCodePoint,eE=String.raw,eI={flagGroups:(()=>{try{RegExp("(?i:)")}catch(e){return!1}return!0})(),unicodeSets:(()=>{try{RegExp("","v")}catch(e){return!1}return!0})()};function eL(e,t){let{enable:n,disable:r}=t;return{dotAll:!(null==r?void 0:r.dotAll)&&!!((null==n?void 0:n.dotAll)||e.dotAll),ignoreCase:!(null==r?void 0:r.ignoreCase)&&!!((null==n?void 0:n.ignoreCase)||e.ignoreCase)}}function eT(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function eP(e,t){if(!e)throw Error(null!=t?t:"Value expected");return e}eI.literalHyphenIncorrectlyCreatesRange=(()=>
1{if(!eI.unicodeSets)return!1;try{RegExp(eE(v()),"v")}catch(e){return!0}return!1})();var eR={ES2025:2025,ES2024:2024,ES2018:2018},eM={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function ej(e){if((null==e?void 0:e.target)!==void 0&&!eM[e.target])throw Error('Unexpected target "'.concat(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,...null==e?void 0:e.rules}};return"auto"===t.target&&(t.target=eI.flagGroups?"ES2025":eI.unicodeSets?"ES2024":"ES2018"),t}var eG=new Set([eN(304),eN(305)]);function eO(e){if(eG.has(e))return[e];let t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),i=eH.get(n),a=eW.get(n),s=eq.get(n);return 1==[...r].length&&t.add(r),s&&t.add(s),i&&t.add(i),t.add(n),a&&t.add(a),[...t]}var eB=new Set("C Other\nCc Control cntrl\nCf Format\nCn Unassigned\nCo Private_Use\nCs Surrogate\nL Letter\nLC Cased_Letter\nLl Lowercase_Letter\nLm Modifier_Letter\nLo Other_Letter\nLt Titlecase_Letter\nLu Uppercase_Letter\nM Mark Combining_Mark\nMc Spacing_Mark\nMe Enclosing_Mark\nMn Nonspacing_Mark\nN Number\nNd Decimal_Number digit\nNl Letter_Number\nNo Other_Number\nP Punctuation punct\nPc Connector_Punctuation\nPd Dash_Punctuation\nPe Close_Punctuation\nPf Final_Punctuation\nPi Initial_Punctuation\nPo Other_Punctuation\nPs Open_Punctuation\nS Symbol\nSc Currency_Symbol\nSk Modifier_Symbol\nSm Math_Symbol\nSo Other_Symbol\nZ Separator\nZl Line_Separator\nZp Paragraph_Separator\nZs Space_Separator\nASCII\nASCII_Hex_Digit AHex\nAlphabetic Alpha\nAny\nAssigned\nBidi_Control Bidi_C\nBidi_Mirrored Bidi_M\nCase_Ignorable CI\nCased\nChanges_When_Casefolded CWCF\nChanges_When_Casemapped CWCM\nChanges_When_Lowercased CWL\nChanges_When_NFKC_Casefolded CWKCF\nChanges_When_Titlecased CWT\nChanges_When_Uppercased CWU\nDash\nDefault_Ignorable_Code_Point DI\nDeprecated Dep\nDiacritic Dia\nEmoji\nEmoji_Component EComp\nEmoji_Modifier EMod\nEmoji_Modifier_Base EBase\nEmoji_Presentation EPres\nExtended_Pictographic ExtPict\nExtender Ext\nGrapheme_Base Gr_Base\nGrapheme_Extend Gr_Ext\nHex_Digit Hex\nIDS_Binary_Operator IDSB\nIDS_Trinary_Operator IDST\nID_Continue IDC\nID_Start IDS\nIdeographic Ideo\nJoin_Control Join_C\nLogical_Order_Exception LOE\nLowercase Lower\nMath\nNoncharacter_Code_Point NChar\nPattern_Syntax Pat_Syn\nPattern_White_Space Pat_WS\nQuotation_Mark QMark\nRadical\nRegional_Indicator RI\nSentence_Terminal STerm\nSoft_Dotted SD\nTerminal_Punctuation Term\nUnified_Ideograph UIdeo\nUppercase Upper\nVariation_Selector VS\nWhite_Space space\nXID_Continue XIDC\nXID_Start XIDS".split(/\s/)),eF=new Map;for(let e of eB)eF.set(e$(e),e);var eD=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji","RGI_Emoji_Flag_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence"]),eU=new Map;for(let e of eD)eU.set(e$(e),e);var eW=new Map([["s",eN(383)],[eN(383),"s"]]),eq=new Map([[eN(223),eN(7838)],[eN(107),eN(8490)],[eN(229),eN(8491)],[eN(969),eN(8486)]]),eH=new Map([eQ(453),eQ(456),eQ(459),eQ(498),...eJ(8072,8079),...eJ(8088,8095),...eJ(8104,8111),eQ(8124),eQ(8140),eQ(8188)]),eV=new Map([["alnum",eE(A())],["alpha",eE(C())],["ascii",eE(k())],["blank",eE(w())],["cntrl",eE(S())],["digit",eE(x())],["graph",eE(N())],["lower",eE(E())],["print",eE(I())],["punct",eE(L())],["space",eE(T())],["upper",eE(P())],["word",eE(R())],["xdigit",eE(M())]]),ez=new Set(["alnum","blank","graph","print","word","xdigit"]);function e$(e){return e.replace(/[- _]+/g,"").toLowerCase()}function eQ(e){let t=eN(e);return[t.toLowerCase(),t]}function eJ(e,t){return(function(e,t){let n=[];for(let r=e;r<=t;r++)n.push(r);return n})(e,t).map(e=>eQ(e))}var eX=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]),eZ={Alternator:"Alternator",Assertion:"Assertion",Backreference:"Backreference",Character:"Character",CharacterClassClose:"CharacterClassClose",CharacterClassHyphen:"CharacterClassHyphen",CharacterClassIntersector:"CharacterClassIntersector",CharacterClassOpen:"CharacterClassOpen",CharacterSet:"CharacterSet",Directive:"Directive",GroupClose:"GroupClose",GroupOpen:"GroupOpen",Subrout
1ine:"Subroutine",Quantifier:"Quantifier",VariableLengthCharacterSet:"VariableLengthCharacterSet",EscapedNumber:"EscapedNumber"},eK={any:"any",digit:"digit",dot:"dot",hex:"hex",non_newline:"non_newline",posix:"posix",property:"property",space:"space",word:"word"},eY={flags:"flags",keep:"keep"},e0={absent_repeater:"absent_repeater",atomic:"atomic",capturing:"capturing",group:"group",lookahead:"lookahead",lookbehind:"lookbehind"},e1=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]),e2=eE(j()),e3="c.? | C(?:-.?)?|".concat(eE(G()),"|").concat(eE(O()),"|").concat(eE(B()),"|").concat(eE(F()),"|").concat(eE(D())),e8=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,e5=RegExp(eE(U(),e3,e8.source,e2).replace(/\s+/g,""),"gsu"),e6=RegExp(eE(W(),e3,e2).replace(/\s+/g,""),"gsu");function e4(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0;if(r={captureGroup:!1,singleline:!1,...r},"string"!=typeof e)throw Error("String expected as pattern");if(!/^[imxDSW]*$/.test(n))throw Error('Flags "'.concat(n,'" includes unsupported value'));let i=n.includes("x"),a=[i],s={captureGroup:r.captureGroup,getCurrentModX:()=>a.at(-1),numOpenGroups:0,popModX(){a.pop()},pushModX(e){a.push(e)},replaceCurrentModX(e){a[a.length-1]=e},singleline:r.singleline},o=[];for(e5.lastIndex=0;t=e5.exec(e);){let n=function(e,t,n,r){let[i,a]=n;if("["===i){let e=function(e,t,n){let r,i=[e7(eZ.CharacterClassOpen,t,{negate:"^"===t[1]})],a=1;for(e6.lastIndex=n;r=e6.exec(e);){let e=r[0];if("["===e[0]&&":"!==e[1])a++,i.push(e7(eZ.CharacterClassOpen,e,{negate:"^"===e[1]}));else if("]"===e){if(i.at(-1).type===eZ.CharacterClassOpen)i.push(e7(eZ.Character,e,{value:93}));else if(a--,i.push(e7(eZ.CharacterClassClose,e)),!a)break}else{let t=function(e){if("\\"===e[0])return e9(e,{inCharClass:!0});if("["===e[0]){let t=RegExp("\\[:(?<negate>\\^?)(?<name>[a-z]+):\\]").exec(e);if(!t||!eV.get(t.groups.name))throw Error('Invalid POSIX class "'.concat(e,'"'));return e7(eZ.CharacterSet,e,{kind:eK.posix,negate:!!t.groups.negate,value:t.groups.name})}return"-"===e?e7(eZ.CharacterClassHyphen,e):"&&"===e?e7(eZ.CharacterClassIntersector,e):(tt(e),e7(eZ.Character,e,{value:e.codePointAt(0)}))}(e);Array.isArray(t)?i.push(...t):i.push(t)}}return{tokens:i,lastIndex:e6.lastIndex||e.length}}(t,n,r);return{tokens:e.tokens,lastIndex:e.lastIndex}}if("\\"===i){if("AbBGzZ".includes(a))return{token:e7(eZ.Assertion,n,{kind:n})};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw Error('Invalid group name "'.concat(n,'"'));return{token:e7(eZ.Subroutine,n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw Error('Invalid group name "'.concat(n,'"'));return{token:e7(eZ.Backreference,n)}}if("K"===a)return{token:e7(eZ.Directive,n,{kind:eY.keep})};if("N"===a)return{token:e7(eZ.CharacterSet,n,{kind:eK.non_newline})};if("O"===a)return{token:e7(eZ.CharacterSet,n,{kind:eK.any})};if("RX".includes(a))return{token:e7(eZ.VariableLengthCharacterSet,n,{kind:n})};if("yY".includes(a))throw Error('Unsupported grapheme boundary "'.concat(n,'"'));let e=e9(n,{inCharClass:!1});return Array.isArray(e)?{tokens:e}:{token:e}}if("("===i){if("(*"===n)throw Error('Unsupported named callout "'.concat(n,'"'));if("(?{"===n)throw Error('Unsupported callout "'.concat(n,'"'));if("(?#"===n){if(")"!==t[r])throw Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:function(e,t){let{on:n,off:r}=RegExp("^\\(\\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?").exec(e).groups;null!=r||(r="");let i=(t.getCurrentModX()||n.includes("x"))&&!r.includes("x"),a=te(n),s=te(r),o={};if(a&&(o.enable=a),s&&(o.disable=s),e.endsWith(")"))return t.replaceCurrentModX(i),e7(eZ.Directive,e,{kind:eY.flags,flags:o});if(e.endsWith(":")){t.pushModX(i),t.numOpenGroups++;let n=e7(eZ.GroupOpen,e,{kind:e0.group});return(a||s)&&(n.flags=o),n}throw Error('Unexpected flag modifier "'.concat(e,'"'))}(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,"("===n&&!e.captureGroup||"(?:"===n)return{token:e7(eZ.GroupOpen,n,{kind:e0.group})};if("(?>"===n)return{token:e7(eZ.GroupOpen,n,{kind:e0.atomic})};if("(?="===n||"(?!"===n||"(?<="===n||"(?<!"===n)return{token:e7(eZ.GroupOpen,n,{kind:"<"===n[2]?e0.lookbehind:e0.lookahead,negate:n.endsWith("!")})};if("("===n&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'")){let e=e7(eZ.GroupOpen,n,{kind:e0.capturing});return"("!==n&&(e.name=n.slice(3,-1)),{token:e}}if(n.startsWith("(?~")){if("(?~|"===n)throw Error('Unsupported absent function kind "'.concat(n,'"'));return{token:e7(eZ.GroupOpen,n,{kind:e0.absent_repeater})}}if("(?("===n)throw Error('Unsupported conditional "'.concat(n,'"'));throw Error('Invalid or unsupported group option "'.concat(n,'"'))}if(")"===n){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw Error('Unmatched ")"');return{token:e7(eZ.GroupClose,n)}}if("#"===n&&e.getCurrentModX()){let e=t.indexOf("\n",r);return{lastIndex:-1===e?t.length:e}}if(/^\s$/.test(n)&&e.getCurrentModX()){let e=/\s+/y;return e.lastIndex=r,{lastIndex:e.exec(t)?e.lastIndex:r}}if("."===n)return{token:e7(eZ.CharacterSet,n,{kind:eK.dot})};if("^"===n||"$"===n){let t=e.singleline?({"^":eE(q()),$:eE(H())})[n]:n;return{token:e7(eZ.Assertion,n,{kind:t})}}return"|"===n?{token:e7(eZ.Alternator,n)}:e8.test(n)?{token:function(e){let t={};if("{"===e[0]){let{min:n,max:r}=RegExp("^\\{(?<min>\\d*)(?:,(?<max>\\d*))?").exec(e).groups;if(+n>1e5||+r>1e5)throw Error("Quantifier value unsupported in Oniguruma");t.min=+n,t.max=void 0===r?+n:""===r?1/0:+r,t.greedy=!e.endsWith("?"),t.possessive=!1}else t.min=+("+"===e[0]),t.max="?"===e[0]?1:1/0,t.greedy="?"!==e[1],t.possessive="+"===e[1];return e7(eZ.Quantifier,e,t)}(n)}:(tt(n),{token:e7(eZ.Character,n,{value:n.codePointAt(0)})})}(s,e,t[0],e5.lastIndex);n.tokens?o.push(...n.tokens):n.token&&o.push(n.token),void 0!==n.lastIndex&&(e5.lastIndex=n.lastIndex)}let l=[],c=0;
1o.forEach(e=>{e.type===eZ.GroupOpen&&(e.kind===e0.capturing?e.number=++c:"("===e.raw&&l.push(e))}),c||l.forEach((e,t)=>{e.kind=e0.capturing,e.number=t+1});let u=c||l.length;return{tokens:o=o.map(e=>e.type===eZ.EscapedNumber?function(e,t){let{raw:n,inCharClass:r}=e,i=n.slice(1);if(!r&&("0"!==i&&1===i.length||"0"!==i[0]&&+i<=t))return[e7(eZ.Backreference,n)];let a=[],s=i.match(/^[0-7]+|\d/g);for(let e=0;e<s.length;e++){let t,r=s[e];if(0===e&&"8"!==r&&"9"!==r){if((t=parseInt(r,8))>127)throw Error(eE($(),n))}else t=r.codePointAt(0);a.push(e7(eZ.Character,(0===e?"\\":"")+r,{value:t}))}return a}(e,u):e).flat(),flags:{ignoreCase:n.includes("i"),dotAll:n.includes("m"),extended:i,digitIsAscii:n.includes("D"),spaceIsAscii:n.includes("S"),wordIsAscii:n.includes("W")},rules:r}}function e9(e,t){let{inCharClass:n}=t,r=e[1];if("c"===r||"C"===r){var i=e;let t="c"===i[1]?i[2]:i[3];if(!t||!/[A-Za-z]/.test(t))throw Error('Unsupported control character "'.concat(i,'"'));return e7(eZ.Character,i,{value:t.toUpperCase().codePointAt(0)-64})}if("dDhHsSwW".includes(r)){var a=e;let t=a[1].toLowerCase();return e7(eZ.CharacterSet,a,{kind:{d:eK.digit,h:eK.hex,s:eK.space,w:eK.word}[t],negate:a[1]!==t})}if(e.startsWith(eE(V())))throw Error('Incomplete, invalid, or unsupported octal code point "'.concat(e,'"'));if(/^\\[pP]\{/.test(e)){if(3===e.length)throw Error('Incomplete or invalid Unicode property "'.concat(e,'"'));var s=e;let{p:t,neg:n,value:r}=RegExp("^\\\\(?<p>[pP])\\{(?<neg>\\^?)(?<value>[^}]+)").exec(s).groups;return e7(eZ.CharacterSet,s,{kind:eK.property,negate:"P"===t&&!n||"p"===t&&!!n,value:r})}if(RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(e))try{let t=e.split(/\\x/).slice(1).map(e=>parseInt(e,16)),n=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(t)),r=new TextEncoder;return[...n].map(e=>{let t=[...r.encode(e)].map(e=>"\\x".concat(e.toString(16))).join("");return e7(eZ.Character,t,{value:e.codePointAt(0)})})}catch(t){throw Error('Multibyte code "'.concat(e,'" incomplete or invalid in Oniguruma'))}if("u"===r||"x"===r)return e7(eZ.Character,e,{value:function(e){if(RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(e))throw Error('Incomplete or invalid escape "'.concat(e,'"'));return parseInt("{"===e[2]?RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(e).groups.hex:e.slice(2),16)}(e)});if(e1.has(r))return e7(eZ.Character,e,{value:e1.get(r)});if(/\d/.test(r))return e7(eZ.EscapedNumber,e,{inCharClass:n});if("\\"===e)throw Error(eE(z()));if("M"===r)throw Error('Unsupported meta "'.concat(e,'"'));if(2==[...e].length)return e7(eZ.Character,e,{value:e.codePointAt(1)});throw Error('Unexpected escape "'.concat(e,'"'))}function e7(e,t,n){return{type:e,raw:t,...n}}function te(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 tt(e){if(1!=[...e].length)throw Error('Expected "'.concat(e,'" to be a single code point'))}function tn(e,t){let{alternatives:n}=e;return 1===n.length&&1===n[0].elements.length&&(!t||t(n[0].elements[0]))}function tr(e){let{type:t}=e;return t===to.CapturingGroup||t===to.Group}function ti(e){let{type:t,kind:n}=e;return t===to.Assertion&&(n===tc.lookahead||n===tc.lookbehind)}function ta(e,t,n){let r=e.node;for(;r.parent;)r=r.parent;function i(e,t){for(let n=0;n<e.length;n++){let r=a(e[n],t,n,e);n=Math.max(-1,n+r)}}function a(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,c=0,u=!1,d={node:e,parent:s,key:o,container:l,ast:r,remove(){eP(l,"Container expected").splice(Math.max(0,o+c),1),c-=1},removeAllNextSiblings:()=>eP(l,"Container expected").splice(o+1),removeAllPrevSiblings(){let e=o+c;return c-=e,eP(l,"Container expected").splice(0,Math.max(0,e))},replaceWith(e){var t,n;t=e,"parent"in(n=s)&&(t.parent=n),l?l[Math.max(0,o+c)]=e:s[o]=e},skip(){u=!0}},h=(function(e){let t=[ts.AnyNode];return(tr(e)||ti(e))&&t.push(ts.AnyGroup),t.push(e.type),t})(e).find(e=>!!n[e]),p=h&&n[h],f="function"==typeof p?p:null==p?void 0:p.enter,m=null==p?void 0:p.exit;if(null==f||f(d,t),!u)switch(e.type){case to.Regex:a(e.pattern,e,"pattern"),a(e.flags,e,"flags");break;case to.Alternative:case to.CharacterClass:i(e.elements,e);break;case to.Assertion:ti(e)&&i(e.alternatives,e);break;case to.Backreference:case to.Character:case to.CharacterSet:case to.Directive:case to.Flags:case to.Recursion:case to.Subroutine:case to.VariableLengthCharacterSet:break;case to.AbsentFunction:case to.CapturingGroup:case to.Group:case to.Pattern:i(e.alternatives,e);break;case to.CharacterClassIntersection:i(e.classes,e);break;case to.CharacterClassRange:a(e.min,e,"min"),a(e.max,e,"max");break;case to.Quantifier:a(e.element,e,"element");break;default:throw Error('Unexpected node type "'.concat(e.type,'"'))}return null==m||m(d,t),c}a(e.node,e.parent,e.key,e.container)}var ts={AnyGroup:"AnyGroup",AnyNode:"AnyNode"},to={AbsentFunction:"AbsentFunction",Alternative:"Alternative",Assertion:"Assertion",Backreference:"Backreference",CapturingGroup:"CapturingGroup",Character:"Character",CharacterClass:"CharacterClass",CharacterClassIntersection:"CharacterClassIntersection",CharacterClassRange:"CharacterClassRange",CharacterSet:"CharacterSet",Directive:"Directive",Flags:"Flags",Group:"Group",Pattern:"Pattern",Quantifier:"Quantifier",Regex:"Regex",Subrout
1ine:"Subroutine",VariableLengthCharacterSet:"VariableLengthCharacterSet",Recursion:"Recursion"},tl={repeater:"repeater"},tc={line_end:"line_end",line_start:"line_start",lookahead:"lookahead",lookbehind:"lookbehind",search_start:"search_start",string_end:"string_end",string_end_newline:"string_end_newline",string_start:"string_start",word_boundary:"word_boundary"},tu={grapheme:"grapheme",newline:"newline"};function td(e,t){var n,r;let{tokens:i,flags:a,rules:s}=e,o={skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,verbose:!1,...t},l={capturingGroups:[],current:0,hasNumberedRef:!1,namedGroupsByName:new Map,parent:null,skipBackrefValidation:o.skipBackrefValidation,skipLookbehindValidation:o.skipLookbehindValidation,skipPropertyNameValidation:o.skipPropertyNameValidation,subroutines:[],token:null,tokens:i,verbose:o.verbose,walk:c};function c(e,t){let n=i[l.current];switch(l.parent=e,l.token=n,l.current++,n.type){case eZ.Alternator:return th();case eZ.Assertion:return function(e){let{kind:t}=e;return tp(eP({"^":tc.line_start,$:tc.line_end,"\\A":tc.string_start,"\\b":tc.word_boundary,"\\B":tc.word_boundary,"\\G":tc.search_start,"\\z":tc.string_end,"\\Z":tc.string_end_newline}[t],'Unexpected assertion kind "'.concat(t,'"')),{negate:t===eE(X())})}(n);case eZ.Backreference:return function(e){let{raw:t}=e.token,n=/^\\k[<']/.test(t),r=n?t.slice(3,-1):t.slice(1),i=function(n){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e.capturingGroups.length,a=!1;if(n>i)if(e.skipBackrefValidation)a=!0;else throw Error('Not enough capturing groups defined to the left "'.concat(t,'"'));return e.hasNumberedRef=!0,tf(r?i+1-n:n,{orphan:a})};if(n){let n=RegExp("^(?<sign>-?)0*(?<num>[1-9]\\d*)$").exec(r);if(n)return i(+n.groups.num,!!n.groups.sign);if(/[-+]/.test(r))throw Error('Invalid backref name "'.concat(t,'"'));if(!e.namedGroupsByName.has(r))throw Error('Group name not defined to the left "'.concat(t,'"'));return tf(r)}return i(+r)}(l);case eZ.Character:return tg(n.value,{useLastValid:!!t.isCheckingRangeEnd});case eZ.CharacterClassHyphen:var r,a=l,s=t;let{parent:o,tokens:c,walk:u}=a,d=o.elements.at(-1),h=c[a.current];if(!s.isCheckingRangeEnd&&d&&d.type!==to.CharacterClass&&d.type!==to.CharacterClassRange&&h&&h.type!==eZ.CharacterClassOpen&&h.type!==eZ.CharacterClassClose&&h.type!==eZ.CharacterClassIntersector){let e=u(o,{...s,isCheckingRangeEnd:!0});if(d.type===to.Character&&e.type===to.Character)return o.elements.pop(),function(e,t){if(t.value<e.value)throw Error("Character class range out of order");return{type:to.CharacterClassRange,min:e,max:t}}(d,e);throw Error("Invalid character class range")}return tg(45);case eZ.CharacterClassOpen:return function(e,t){let{token:n,tokens:r,verbose:i,walk:a}=e,s=r[e.current],o=t_({negate:n.negate}),l=o.elements[0],c=tk(s);for(;c.type!==eZ.CharacterClassClose;){if(c.type===eZ.CharacterClassIntersector)l.classes.push(t_({negate:!1,baseOnly:!0})),e.current++;else{let e=l.classes.at(-1);e.elements.push(a(e,t))}c=tk(r[e.current],s)}if(i||function(e){for(let t=0;t<e.classes.length;t++){let n=e.classes[t],r=n.elements[0];1===n.elements.length&&r.type===to.CharacterClass&&(e.classes[t]=r,r.negate=n.negate!==r.negate)}}(l),1===l.classes.length){let e=l.classes[0];e.negate=o.negate!==e.negate,o=e}return e.current++,o}(l,t);case eZ.CharacterSet:return function(e){let{token:t,skipPropertyNameValidation:n}=e,{kind:r,negate:i,value:a}=t;if(r===eK.property){let e=e$(a);if(!ez.has(e))return tC(a,{negate:i,skipPropertyNameValidation:n});
1r=eK.posix,a=e}return r===eK.posix?{type:to.CharacterSet,kind:eK.posix,negate:i,value:a}:ty(r,{negate:i})}(l);case eZ.Directive:return function(e){let{kind:t,flags:n}=e,r={type:to.Directive,kind:eP(eY[t],'Unexpected directive kind "'.concat(t,'"'))};return t===eY.flags&&(r.flags=n),r}(n);case eZ.GroupOpen:return function(e,t){let{token:n,tokens:r,capturingGroups:i,namedGroupsByName:a,skipLookbehindValidation:s,verbose:o,walk:l}=e,c=function(e){let{flags:t,kind:n,name:r,negate:i,number:a}=e;switch(n){case e0.absent_repeater:var s=tl.repeater;if(s!==tl.repeater)throw Error('Unexpected absent function kind "'.concat(s,'"'));return{type:to.AbsentFunction,kind:s,alternatives:[th()]};case e0.atomic:return tb({atomic:!0});case e0.capturing:return tm(a,r);case e0.group:return tb({flags:t});case e0.lookahead:case e0.lookbehind:return tv({behind:n===e0.lookbehind,negate:i});default:throw Error('Unexpected group kind "'.concat(n,'"'))}}(n),u=c.type===to.AbsentFunction,d=c.kind===tc.lookbehind,h=d&&c.negate;if(c.type===to.CapturingGroup&&(i.push(c),c.name&&eT(a,c.name,[]).push(c)),u&&t.isInAbsentFunction)throw Error("Nested absent function not supported by Oniguruma");let p=tw(r[e.current]);for(;p.type!==eZ.GroupClose;){if(p.type===eZ.Alternator)c.alternatives.push(th()),e.current++;else{let e=c.alternatives.at(-1),n=l(e,{...t,isInAbsentFunction:t.isInAbsentFunction||u,isInLookbehind:t.isInLookbehind||d,isInNegLookbehind:t.isInNegLookbehind||h});if(e.elements.push(n),(d||t.isInLookbehind)&&!s){let e="Lookbehind includes a pattern not allowed by Oniguruma";if(h||t.isInNegLookbehind){if(n.kind===tc.lookahead||n.type===to.CapturingGroup)throw Error(e)}else if(n.kind===tc.lookahead||n.kind===tc.lookbehind&&n.negate)throw Error(e)}}p=tw(r[e.current])}return o||(c=function(e){let t=e.alternatives[0].elements[0];return e.type===to.Group&&tn(e,e=>e.type===to.Group)&&!(e.atomic&&t.flags)&&!(e.flags&&(t.atomic||t.flags))?(e.atomic?t.atomic=!0:e.flags&&(t.flags=e.flags),t):e}(c)),e.current++,c}(l,t);case eZ.Quantifier:return function(e){let{token:t,parent:n}=e,{min:r,max:i,greedy:a,possessive:s}=t,o=n.elements.at(-1);if(!o||o.type===to.Assertion||o.type===to.Directive)throw Error("Quantifier requires a repeatable token");let l=tA(o,r,i,a,s);return n.elements.pop(),l}(l);case eZ.Subroutine:return function(e){var t;let{token:n,capturingGroups:r,subroutines:i}=e,a=n.raw.slice(3,-1),s=RegExp("^(?<sign>[-+]?)0*(?<num>[1-9]\\d*)$").exec(a);if(s){let t=+s.groups.num,n=r.length;if(e.hasNumberedRef=!0,(a=({"":t,"+":n+t,"-":n+1-t})[s.groups.sign])<1)throw Error("Invalid subroutine number")}else"0"===a&&(a=0);let o=(t=a,{type:to.Subroutine,ref:t});return i.push(o),o}(l);case eZ.VariableLengthCharacterSet:return r=n.kind,{type:to.VariableLengthCharacterSet,kind:eP({"\\R":tu.newline,"\\X":tu.grapheme}[r],'Unexpected varcharset kind "'.concat(r,'"'))};default:throw Error('Unexpected token type "'.concat(n.type,'"'))}}let u=(n={type:to.Pattern,alternatives:[th()]},r=function(e){let{ignoreCase:t,dotAll:n,extended:r,digitIsAscii:i,spaceIsAscii:a,wordIsAscii:s}=e;return{type:to.Flags,ignoreCase:t,dotAll:n,extended:r,digitIsAscii:i,spaceIsAscii:a,wordIsAscii:s}}(a),{type:to.Regex,pattern:n,flags:r}),d=u.pattern.alternatives[0];for(;l.current<i.length;){let e=c(d,{});e.type===to.Alternative?(u.pattern.alternatives.push(e),d=e):d.elements.push(e)}let{capturingGroups:h,hasNumberedRef:p,namedGroupsByName:f,subroutines:m}=l;if(p&&f.size&&!s.captureGroup)throw Error("Numbered backref/subroutine not allowed when using named capture");for(let{ref:e}of m)if("number"==typeof e){if(e>h.length)throw Error("Subroutine uses a group number that's not defined")}else if(f.has(e)){if(f.get(e).length>1)throw Error(eE(J(),e))}else throw Error(eE(Q(),e));return ta({node:u},null,{AnyNode(e){let{node:t,parent:n}=e;t.parent=n}}),u}function th(){return{type:to.Alternative,elements:[]}}function tp(e,t){let n=!!(null==t?void 0:t.negate);return{type:to.Assertion,kind:e,...e===tc.word_boundary&&{negate:n}}}function tf(e,t){let n=!!(null==t?void 0:t.orphan);return{type:to.Backreference,...n&&{orphan:n},ref:e}}function tm(e,t){var n;let r=void 0!==t;if(r&&(n=t,!RegExp("^[\\p{Alpha}\\p{Pc}][^)]*$","u").test(n)))throw Error('Group name "'.concat(t,'" invalid in Oniguruma'));return{type:to.CapturingGroup,number:e,...r&&{name:t},alternatives:[th()]}}function tg(e,t){let n={useLastValid:!1,...t};if(e>1114111){let t=e.toString(16);if(n.useLastValid)e=1114111;else if(e>1310719)throw Error('Invalid code point out of range "\\x{'.concat(t,'}"'));else throw Error('Invalid code point out of range in JS "\\x{'.concat(t,'}"'))}return{type:to.Character,value:e}}function t_(e){let t={baseOnly:!1,negate:!1,...e};return{type:to.CharacterClass,negate:t.negate,elements:t.baseOnly?[]:[{type:to.CharacterClassIntersection,classes:[t_({negate:!1,baseOnly:!0})]}]}}function ty(e,t){let{negate:n}=t,r={type:to.CharacterSet,kind:eP(eK[e],'Unexpected character set kind "'.concat(e,'"'))};return(e===eK.digit||e===eK.hex||e===eK.space||e===eK.word)&&(r.negate=n),r}function tb(e){let t=null==e?void 0:e.atomic,n=null==e?void 0:e.flags;return{type:to.Group,...t&&{atomic:t},...n&&{flags:n},alternatives:[th()]}}function tv(e){let t={behind:!1,negate:!1,...e};return{type:to.Assertion,kind:t.behind?tc.lookbehind:tc.lookahead,negate:t.negate,alternatives:[th()]}}function tA(e,t,n){let r=!(arguments.length>3)||void 0===arguments[3]||arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a={type:to.Quantifier,min:t,max:n,greedy:r,possessive:i,element:e};return n<t?{...a,min:n,max:t,possessive:!0}:a}function tC(e,t){let n={negate:!1,skipPropertyNameValidation:!1,...t};return{type:to.CharacterSet,kind:eK.property,value:n.skipPropertyNameValidation?e:function(e){let t=e$(e);if(eU.has(t))throw Error(eE(Z(),e));let n=eF.get(t);return 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())}(e),negate:n.negate}}function tk(e,t){return eP(e,"".concat((null==t?void 0:t.value)===93?"Empty":"Unclosed"," character class"))}function tw(e){return eP(e,"Unclosed group")}var tS={AbsentFunction(e){let{node:t,replaceWith:n}=e,r=tB(tb(),[tL(tv({negate:!0}),t.alternatives),tC("Any")]),i=tA(r,0,1/0);r.parent=i,n(tB(tb(),[i]))},Alternative:{enter(e,t){let{node:n,parent:r,key:i}=e,{flagDirectivesByAlt:a}=t,s=n.elements.filter(e=>e.kind===eY.flags);for(let e=i+1;e<r.alternatives.length;e++)eT(a,r.alternatives[e],[]).push(...s)},exit(e,t){var n;let{node:r}=e,{flagDirectivesByAlt:i}=t;if(null==(n=i.get(r))?void 0:n.length){let e=tM(i.get(r));if(e){let t=tB(tb({flags:e}),r.elements);t.parent=r,r.elements=[t]}}}},Assertion(e,t){let{node:n,key:r,container:i,ast:a,remove:s,replaceWith:o}=e,{kind:l,negate:c}=n,{asciiWordBoundaries:u,avoidSubclass:d,supportedGNodes:h,wordIsAscii:p}=t;if(l===tc.line_end)o(tO(eE(K())));else if(l===tc.line_start)o(tO(eE(Y()),{skipLookbehindValidation:!0}
1));else if(l===tc.lookbehind)t.passedLookbehind=!0;else if(l===tc.search_start)if(h.has(n))a.flags.sticky=!0,s();else{let e=i[r-1];if(e&&function(e){let t=[to.Character,to.CharacterClass,to.CharacterSet];return t.includes(e.type)||e.type===to.Quantifier&&e.min&&t.includes(e.element.type)}(e))o(tB(tv({negate:!0})));else if(d)throw Error(eE(ee()));else o(tp(tc.string_start)),t.strategy="clip_search"}else if(l===tc.string_end_newline)o(tO(eE(et())));else if(l===tc.word_boundary&&!p&&!u){let e="(?:(?<=".concat(tI,")(?!").concat(tI,")|(?<!").concat(tI,")(?=").concat(tI,"))"),t="(?:(?<=".concat(tI,")(?=").concat(tI,")|(?<!").concat(tI,")(?!").concat(tI,"))");o(tO(c?t:e))}},Backreference(e,t){let{node:n}=e,{jsGroupNameMap:r}=t,{ref:i}=n;"string"!=typeof i||tG(i)||(n.ref=i=tP(i,r))},CapturingGroup(e,t){let{node:n}=e,{jsGroupNameMap:r,subroutineRefMap:i}=t,{name:a}=n;a&&!tG(a)&&(n.name=a=tP(a,r)),i.set(n.number,n),a&&i.set(a,n)},CharacterSet(e,t){let{node:n,replaceWith:r}=e,{accuracy:i,minTargetEs2024:a,digitIsAscii:s,spaceIsAscii:o,wordIsAscii:l}=t,{kind:c,negate:u,value:d}=n;if(s&&(c===eK.digit||"digit"===d))return void r(ty(eK.digit,{negate:u}));if(o&&(c===eK.space||"space"===d))return void r(tF(tO(tE),u));if(l&&(c===eK.word||"word"===d))return void r(ty(eK.word,{negate:u}));if(c===eK.any)r(tC("Any"));else if(c===eK.digit)r(tC("Nd",{negate:u}));else if(c===eK.hex)r(tC("AHex",{negate:u}));else if(c===eK.non_newline)r(tO(eE(en())));else if(c===eK.space)r(tC("space",{negate:u}));else if(c===eK.word)r(tF(tO(tI),u));else if(c===eK.property)eB.has(d)||(n.key="sc");else if(c===eK.posix)if(a||"graph"!==d&&"print"!==d)r(tF(tO(eV.get(d)),u));else{if("strict"===i)throw Error('POSIX class "'.concat(d,'" requires min target ES2024 or non-strict accuracy'));let e={graph:"!-~",print:" -~"}[d];u&&(e="\0-".concat(eN(e.codePointAt(0)-1)).concat(eN(e.codePointAt(2)+1),"-􏿿")),r(tO("[".concat(e,"]")))}},Directive(e,t){let{node:n,parent:r,ast:i,remove:a,replaceWith:s,removeAllPrevSiblings:o,removeAllNextSiblings:l}=e,{kind:c,flags:u}=n;if(c===eY.flags)if(u.enable||u.disable){let n=tB(tb({flags:u}),l());s(n),tD(n,e,t,tS)}else a();else if(c===eY.keep){let e=i.pattern.alternatives[0].elements[0],t=tn(i.pattern,e=>e.type===to.Group)&&1===e.alternatives.length?e:i.pattern;if(r.parent!==t||t.alternatives.length>1)throw Error(eE(er()));s(tB(tv({behind:!0}),o()))}},Flags(e){var t;let{node:n,parent:r}=e;["digitIsAscii","extended","spaceIsAscii","wordIsAscii"].forEach(e=>delete n[e]),Object.assign(n,{global:!1,hasIndices:!1,multiline:!1,sticky:null!=(t=n.sticky)&&t}),r.options={disable:{x:!0,n:!0},force:{v:!0}}},Group(e){let{node:t}=e;if(!t.flags)return;let{enable:n,disable:r}=t.flags;(null==n?void 0:n.extended)&&delete n.extended,(null==r?void 0:r.extended)&&delete r.extended,(null==n?void 0:n.dotAll)&&(null==r?void 0:r.dotAll)&&delete n.dotAll,(null==n?void 0:n.ignoreCase)&&(null==r?void 0:r.ignoreCase)&&delete n.ignoreCase,n&&!Object.keys(n).length&&delete t.flags.enable,r&&!Object.keys(r).length&&delete t.flags.disable,t.flags.enable||t.flags.disable||delete t.flags},Pattern:{enter(e,t){let{node:n}=e,{supportedGNodes:r}=t,i=[],a=!1,s=!1;for(let e of n.alternatives)if(1===e.elements.length&&e.elements[0].kind===tc.search_start)e.elements.pop();else{let t=function e(t){let n=t.find(e=>e.kind===tc.search_start||function(e,t){let n={negate:null,...t};return ti(e)&&(null===n.negate||e.negate===n.negate)&&tn(e,e=>e.kind===tc.search_start)}(e,{negate:!1})||!function(e){let{type:t}=e;return t===to.Assertion||t===to.Directive}(e));if(!n)return null;if(n.kind===tc.search_start)return n;if(ti(n))return n.alternatives[0].elements[0];if(tr(n)){let t=[];for(let r of n.alternatives){let n=e(r.elements);if(!n)return null;Array.isArray(n)?t.push(...n):t.push(n)}return t}return null}(e.elements);t?(a=!0,Array.isArray(t)?i.push(...t):i.push(t)):s=!0}a&&!s&&i.forEach(e=>r.add(e))},exit(e,t){let{accuracy:n,passedLookbehind:r,strategy:i}=t;if("strict"===n&&r&&i)throw Error(eE(ei()))}},Quantifier(e){let{node:t}=e;if(t.element.type===to.Quantifier){let e=tB(tb(),[t.element]);e.parent=t,t.element=e}},Subroutine(e,t){let{node:n}=e,{jsGroupNameMap:r}=t,{ref:i}=n;"string"!=typeof i||tG(i)||(n.ref=i=tP(i,r))},VariableLengthCharacterSet(e,t){let{node:n,replaceWith:r}=e,{accuracy:i,minTargetEs2024:a}=t,{kind:s}=n;if(s===tu.newline)r(tO("(?>\r\n?|[\n\v\f…\u2028\u2029])"));else if(s===tu.grapheme){if("strict"===i)throw Error(eE(ea()));let e=a?eE(es()):(0,_.default)().source.replace(/\\u\{/g,"\\x{");r(tO(eE(eo(),e),{skipPropertyNameValidation:!0}
1))}else throw Error('Unexpected varcharset kind "'.concat(s,'"'))}},tx={Backreference(e,t){let{node:n}=e,{multiplexCapturesToLeftByRef:r,reffedNodesByReferencer:i}=t,{orphan:a,ref:s}=n;a||i.set(n,[...r.get(s).map(e=>{let{node:t}=e;return t})])},CapturingGroup:{enter(e,t){var n;let{node:r,replaceWith:i,skip:a}=e,{groupOriginByCopy:s,groupsByName:o,multiplexCapturesToLeftByRef:l,openRefs:c,reffedNodesByReferencer:u}=t,d=s.get(r);if(d&&c.has(r.number)){let e=tT(r.number);u.set(e,c.get(r.number)),i(e),a();return}c.set(r.number,r),l.set(r.number,[]),r.name&&eT(l,r.name,[]);let h=l.get(null!=(n=r.name)?n:r.number);for(let e=0;e<h.length;e++){let t=h[e];if(d===t.node||d&&d===t.origin||r===t.origin){h.splice(e,1);break}}if(l.get(r.number).push({node:r,origin:d}),r.name&&l.get(r.name).push({node:r,origin:d}),r.name){let e=eT(o,r.name,new Map),t=!1;if(d)t=!0;else for(let n of e.values())if(!n.hasDuplicateNameToRemove){t=!0;break}o.get(r.name).set(r,{node:r,hasDuplicateNameToRemove:t})}},exit(e,t){let{node:n}=e,{openRefs:r}=t;r.delete(n.number)}},Group:{enter(e,t){let{node:n}=e;t.prevFlags=t.currentFlags,n.flags&&(t.currentFlags=eL(t.currentFlags,n.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Recursion(e,t){let{node:n,parent:r}=e,{reffedNodesByReferencer:i}=t,{ref:a}=n,s=r;for(;(s=s.parent)&&(s.type!==to.CapturingGroup||s.name!==a&&s.number!==a););i.set(n,s)},Subroutine(e,t){let{node:n,replaceWith:r}=e,{ref:i}=n,a=t.subroutineRefMap.get(i),s=0===i,o=s?tT(0):function e(t,n,r,i){let a=Array.isArray(t)?[]:{};for(let[o,l]of Object.entries(t))if("parent"===o)a.parent=Array.isArray(r)?i:r;else if(l&&"object"==typeof l)a[o]=e(l,n,a,r);else{if("type"===o&&l===to.CapturingGroup){var s;n.set(a,null!=(s=n.get(t))?s:t)}a[o]=l}return a}(a,t.groupOriginByCopy,null),l=o;if(!s){var c,u;let e=tM(function(e,t){let n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}(a,e=>e.type===to.Group&&!!e.flags)),n=e?eL(t.globalFlags,e):t.globalFlags;c=n,u=t.currentFlags,(c.dotAll!==u.dotAll||c.ignoreCase!==u.ignoreCase)&&(l=tB(tb({flags:function(e){let{dotAll:t,ignoreCase:n}=e,r={};return(t||n)&&(r.enable={},t&&(r.enable.dotAll=!0),n&&(r.enable.ignoreCase=!0)),t&&n||(r.disable={},t||(r.disable.dotAll=!0),n||(r.disable.ignoreCase=!0)),r}(n)}),[o]))}r(l),s||tD(l,e,t,tx)}},tN={Backreference(e,t){let{node:n,replaceWith:r}=e;if(n.orphan){t.highestOrphanBackref=Math.max(t.highestOrphanBackref,n.ref);return}let i=t.reffedNodesByReferencer.get(n).filter(e=>(function(e,t){let n=t;do{if(n.type===to.Pattern)return!1;if(n.type===to.Alternative)continue;if(n===e)return!1;for(let t of tj(n.parent)){if(t===n)break;if(t===e||function e(t,n){var r;for(let i of null!=(r=tj(t))?r:[])if(i===n||e(i,n))return!0;return!1}(t,e))return!0}}while(n=n.parent)throw Error("Unexpected path")})(e,n));if(i.length)if(i.length>1){let e=i.map(e=>tL(th(),[tf(e.number)]));r(tL(tb(),e))}else n.ref=i[0].number;else r(tB(tv({negate:!0})))},CapturingGroup(e,t){let{node:n}=e;n.number=++t.numCapturesToLeft,n.name&&t.groupsByName.get(n.name).get(n).hasDuplicateNameToRemove&&delete n.name},Recursion(e,t){let{node:n}=e;0!==n.ref&&(n.ref=t.reffedNodesByReferencer.get(n).number)},Regex:{exit(e,t){let{node:n}=e,r=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let e=0;e<r;e++){let e=tm();n.pattern.alternatives.at(-1).elements.push(e)}}}},tE="[	-\r ]",tI=eE(el());function tL(e,t){return t.forEach(t=>t.parent=e),e[tR(e)]=t,e}function tT(e){return{type:to.Recursion,ref:e}}function tP(e,t){if(t.has(e))return t.get(e);let n="$".concat(t.size,"_").concat(e.replace(RegExp("^[^$_\\p{IDS}]|[^$\\u200C\\u200D\\p{IDC}]","ug"),"_"));return t.set(e,n),n}function tR(e){for(let t of["alternatives","classes","elements"])if(e[t])return t;return null}function tM(e){let t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return(e.forEach(e=>{let{flags:r}=e;t.forEach(e=>{var t,i;(null==(t=r.enable)?void 0:t[e])&&(delete n.disable[e],n.enable[e]=!0),(null==(i=r.disable)?void 0:i[e])&&(n.disable[e]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable)?n:null}function tj(e){if(!e)throw Error("Node expected");if(e.type===to.Quantifier)return[e.element];let t=tR(e);return t&&e[t]}function tG(e){return RegExp("^[$_\\p{IDS}][$\\u200C\\u200D\\p{IDC}]*$","u").test(e)}function tO(e,t){let n=td(e4(e),t).pattern.alternatives;return n.length>1||n[0].elements.length>1?tL(tb(),n):n[0].elements[0]}function tB(e,t){let n=tR(e);return e[n][0].parent=e,t&&tL(e[n][0],t),e}function tF(e,t){return e.negate=t,e}function tD(e,t,n,r){let{parent:i,key:a,container:s}=t;ta({node:e,parent:i,key:a,container:s},n,r)}var tU={AnyGroup:{enter(e,t){let{node:n}=e,r=t.getCurrentModI();t.pushModI(n.flags?eL({ignoreCase:r},n.flags).ignoreCase:r)},exit(e,t){t.popModI()}}
1,Backreference(e,t){t.setHasCasedChar()},Character(e,t){let{node:n}=e;t$(eN(n.value))&&t.setHasCasedChar()},CharacterClassRange(e,t){let{node:n,skip:r}=e;r(),tQ(n,{firstOnly:!0}).length&&t.setHasCasedChar()},CharacterSet(e,t){let{node:n}=e;n.kind===eK.property&&eX.has(n.value)&&t.setHasCasedChar()}},tW=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),tq=new Set(["-","\\","]","^","["]),tH=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),tV=new Map([[9,eE(ec())],[10,eE(eu())],[11,eE(ed())],[12,eE(eh())],[13,eE(ep())],[8232,eE(ef())],[8233,eE(em())],[65279,eE(eg())]]),tz=RegExp("^\\p{Cased}$","u");function t$(e){return tz.test(e)}function tQ(e,t){let n=!!(null==t?void 0:t.firstOnly),r=e.min.value,i=e.max.value,a=[];if(r<65&&(65535===i||i>=131071)||65536===r&&i>=131071)return a;for(let e=r;e<=i;e++){let t=eN(e);if(!t$(t))continue;let s=eO(t).filter(e=>{let t=e.codePointAt(0);return t<r||t>i});if(s.length&&(a.push(...s),n))break}return a}function tJ(e,t){var n;let{isAfterBackref:r,inCharClass:i,useFlagV:a}=t;if(tV.has(e))return tV.get(e);if(e<32||e>126&&e<160||e>262143||r&&(n=e)>47&&n<58)return e>255?"\\u{".concat(e.toString(16).toUpperCase(),"}"):"\\x".concat(e.toString(16).toUpperCase().padStart(2,"0"));let s=eN(e);return((i?a?tH:tq:tW).has(s)?"\\":"")+s}function tX(e){let{type:t,value:n}=e;return t===to.Character&&45===n}var tZ=(t=new WeakMap,n=new WeakMap,r=new WeakMap,i=new WeakMap,a=new WeakMap,s=new WeakSet,o=class e extends RegExp{get source(){return(0,l._)(this,r)||"(?:)"}exec(t){if(!(0,l._)(this,n)){let{lazyCompile:t,...i}=this.rawOptions;(0,u._)(this,n,new e((0,l._)(this,r),this.flags,i))}let i=this.global||this.sticky,o=this.lastIndex;if("clip_search"===(0,l._)(this,a)&&i&&o){this.lastIndex=0;let e=(0,d._)(this,s,tY).call(this,t.slice(o));return e&&(function(e,t,n,r){if(e.index+=t,e.input=n,r){let n=e.indices;for(let e=0;e<n.length;e++){let r=n[e];r&&(n[e]=[r[0]+t,r[1]+t])}let r=n.groups;
1r&&Object.keys(r).forEach(e=>{let n=r[e];n&&(r[e]=[n[0]+t,n[1]+t])})}}(e,o,t,this.hasIndices),this.lastIndex+=o),e}return(0,d._)(this,s,tY).call(this,t)}constructor(o,d,f){let m=!!(null==f?void 0:f.lazyCompile);if(o instanceof RegExp){if(f)throw Error("Cannot provide options when copying a regexp");super(o,d),(0,h._)(this,s),(0,c._)(this,t,{writable:!0,value:new Map}),(0,c._)(this,n,{writable:!0,value:null}),(0,c._)(this,r,{writable:!0,value:void 0}),(0,c._)(this,i,{writable:!0,value:null}),(0,c._)(this,a,{writable:!0,value:null}),(0,p._)(this,"rawOptions",{}),(0,u._)(this,r,o.source),o instanceof e&&((0,u._)(this,t,(0,l._)(o,t)),(0,u._)(this,i,(0,l._)(o,i)),(0,u._)(this,a,(0,l._)(o,a)),this.rawOptions=o.rawOptions)}else{let e={hiddenCaptures:[],strategy:null,transfers:[],...f};super(m?"":o,d),(0,h._)(this,s),(0,c._)(this,t,{writable:!0,value:new Map}),(0,c._)(this,n,{writable:!0,value:null}),(0,c._)(this,r,{writable:!0,value:void 0}),(0,c._)(this,i,{writable:!0,value:null}),(0,c._)(this,a,{writable:!0,value:null}),(0,p._)(this,"rawOptions",{}),(0,u._)(this,r,o),(0,u._)(this,t,function(e,t){let n=new Map;for(let t of e)n.set(t,{hidden:!0});for(let[e,r]of t)for(let t of r)eT(n,t,{}).transferTo=e;return n}(e.hiddenCaptures,e.transfers)),(0,u._)(this,a,e.strategy),this.rawOptions=null!=f?f:{}}m||(0,u._)(this,n,this)}});function tK(e,t){let n=function(e,t){let n=ej(t),r=function(e,t){let n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t},r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:eR[n.bestEffortTarget]>=eR.ES2024,passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};ta({node:e},r,tS);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:r.subroutineRefMap};return ta({node:e},a,tx),ta({node:e},{groupsByName:a.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:a.reffedNodesByReferencer},tN),e._originMap=a.groupOriginByCopy,e._strategy=r.strategy,e}(td(e4(e,n.flags,{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}),{skipBackrefValidation:n.rules.allowOrphanBackrefs,verbose:n.verbose}),{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),i=function(e,t){let n=ej(t),r=eR[n.target]>=eR.ES2024,i=eR[n.target]>=eR.ES2025,a=n.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];ta({node:e},{getCurrentModI:()=>t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)}
1,setHasCasedChar(){t.at(-1)?s=!0:o=!0}},tU)}let l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||s)&&!o)},c=null,u={accuracy:n.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:c,originMap:e._originMap,recursionLimit:a,useAppliedIgnoreCase:!!(!i&&s&&o),useFlagMods:i,useFlagV:r,verbose:n.verbose},d=function e(t){switch(u.lastNode=c,c=t,t.type){case to.Regex:return{pattern:e(t.pattern),flags:e(t.flags),options:{...t.options}};case to.Alternative:return t.elements.map(e).join("");case to.Assertion:var n,r=t,i=e;let{kind:a,negate:s,alternatives:o}=r;if(ti(r)){let e="".concat(a===tc.lookahead?"":"<").concat(s?"!":"=");return"(?".concat(e).concat(o.map(i).join("|"),")")}if(a===tc.string_end)return"$";if(a===tc.string_start)return"^";if(a===tc.word_boundary)return s?eE(e_()):eE(ey());throw Error('Unexpected assertion kind "'.concat(a,'"'));case to.Backreference:return function(e,t){let{ref:n}=e;if("number"!=typeof n)throw Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&"strict"===t.accuracy&&t.currentFlags.ignoreCase&&!t.captureMap.get(n).ignoreCase)throw Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+n}(t,u);case to.CapturingGroup:var l=t,d=u,h=e;let{name:p,number:f,alternatives:m}=l,g={ignoreCase:d.currentFlags.ignoreCase},_=d.originMap.get(l);return _&&(g.hidden=!0,f>_.number&&(g.transferTo=_.number)),d.captureMap.set(f,g),"(".concat(p?"?<".concat(p,">"):"").concat(m.map(h).join("|"),")");case to.Character:return function(e,t){let{value:n}=e,r=eN(n),i=tJ(n,{isAfterBackref:t.lastNode.type===to.Backreference,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(i!==r)return i;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&t$(r)){let e=eO(r);return t.inCharClass?e.join(""):e.length>1?"[".concat(e.join(""),"]"):e[0]}return r}(t,u);case to.CharacterClass:return function(e,t,n){var r;let{negate:i,parent:a,elements:s}=e;eI.literalHyphenIncorrectlyCreatesRange&&t.useFlagV&&s.some(tX)&&(s=s.filter(e=>!tX(e))).push(tg(45));let o=()=>"[".concat(i?"^":"").concat(s.map(n).join(""),"]");if(!t.inCharClass){t.inCharClass=!0;let e=o();return t.inCharClass=!1,e}let l=null==(r=s[0])?void 0:r.type;if(!i&&l&&((!t.useFlagV||!t.verbose)&&a.type===to.CharacterClass&&l!==to.CharacterClassIntersection&&!(eI.literalHyphenIncorrectlyCreatesRange&&t.useFlagV)||!t.verbose&&a.type===to.CharacterClassIntersection&&1===s.length&&l!==to.CharacterClass&&l!==to.CharacterClassRange))return s.map(n).join("");if(!t.useFlagV&&a.type===to.CharacterClass)throw Error("Use of nested character class requires min target ES2024");return o()}(t,u,e);case to.CharacterClassIntersection:if(!u.useFlagV)throw Error("Use of class intersection requires min target ES2024");return t.classes.map(e).join("&&");case to.CharacterClassRange:return function(e,t){let n=e.min.value,r=e.max.value,i={isAfterBackref:!1,inCharClass:!0,useFlagV:t.useFlagV},a=tJ(n,i),s=tJ(r,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),n=[],r=null;for(let e=0;e<t.length;e++)t[e+1]===t[e]+1?null!=r||(r=t[e]):null===r?n.push(t[e]):(n.push([r,t[e]]),r=null);return n})(tQ(e)).forEach(e=>{o.add(Array.isArray(e)?"".concat(tJ(e[0],i),"-").concat(tJ(e[1],i)):tJ(e,i))}),"".concat(a,"-").concat(s).concat([...o].join(""))}(t,u);case to.CharacterSet:return function(e,t){let{kind:n,negate:r,value:i,key:a}=e;if(n===eK.dot)return t.currentFlags.dotAll?t.appliedGlobalFlags.dotAll||t.useFlagMods?".":"[^]":eE(eb());if(n===eK.digit)return r?eE(ev()):eE(eA());if(n===eK.property){if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&eX.has(i))throw Error('Unicode property "'.concat(i,"\" can't be case-insensitive when other chars have specific case"));return"".concat(r?eE(eC()):eE(ek()),"{").concat(a?"".concat(a,"="):"").concat(i,"}")}if(n===eK.word)return r?eE(ew()):eE(eS());throw Error('Unexpected character set kind "'.concat(n,'"'))}(t,u);case to.Flags:return n=t,(u.appliedGlobalFlags.ignoreCase?"i":"")+(n.dotAll?"s":"")+(n.sticky?"y":"");case to.Group:return function(e,t,n){let{atomic:r,flags:i,parent:a,alternatives:s}=e,o=t.currentFlags;i&&(t.currentFlags=eL(o,i));let l=s.map(n).join("|"),c=t.verbose||1!==s.length||a.type===to.Quantifier||r||t.useFlagMods&&i?"(?".concat(function(e,t,n){if(e)return">";let r="";if(t&&n){let{enable:e,disable:n}=t;r=((null==e?void 0:e.ignoreCase)?"i":"")+((null==e?void 0:e.dotAll)?"s":"")+(n?"-":"")+((null==n?void 0:n.ignoreCase)?"i":"")+((null==n?void 0:n.dotAll)?"s":"")}return"".concat(r,":")}(r,i,t.useFlagMods)).concat(l,")"):l;return t.currentFlags=o,c}(t,u,e);case to.Pattern:return t.alternatives.map(e).join("|");case to.Quantifier:return e(t.element)+function(e){let{min:t,max:n,greedy:r,possessive:i}=e;return(t||1!==n?t||n!==1/0?1===t&&n===1/0?"+":t===n?"{".concat(t,"}"):"{".concat(t,",").concat(n===1/0?"":n,"}"):"*":"?")+(i?"+":r?"":"?")}(t);case to.Recursion:return function(e,t){let{ref:n}=e,r=t.recursionLimit;return 0===n?"(?R=".concat(r,")"):eE(ex(),n,r)}(t,u);default:throw Error('Unexpected node type "'.concat(t.type,'"'))}}(e);return r||(delete d.options.force.v,d.options.disable.v=!0,d.options.unicodeSetsPlugin=null),d._captureTransfers=new Map,d._hiddenCaptures=[],u.captureMap.forEac
1h((e,t)=>{e.hidden&&d._hiddenCaptures.push(t),e.transferTo&&eT(d._captureTransfers,e.transferTo,[]).push(t)}),d}(r,n),a=(0,b.recursion)(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:"external"}),s=(0,y.possessive)(a.pattern),o=(0,y.atomic)(s.pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),l={pattern:o.pattern,flags:"".concat(n.hasIndices?"d":"").concat(n.global?"g":"").concat(i.flags).concat(i.options.disable.v?"u":"v")};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw Error("Lazy compilation requires subclass")}else{let e=o.hiddenCaptures.sort((e,t)=>e-t),t=Array.from(o.captureTransfers),i=r._strategy,a=l.pattern.length>=n.lazyCompileLength;(e.length||t.length||i||a)&&(l.options={...e.length&&{hiddenCaptures:e},...t.length&&{transfers:t},...i&&{strategy:i},...a&&{lazyCompile:a}})}return l}(e,t);return n.options?new tZ(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function tY(e){let r;(0,l._)(this,n).lastIndex=this.lastIndex;let a=(0,f._)((0,m._)(o.prototype),"exec",this).call((0,l._)(this,n),e);if(this.lastIndex=(0,l._)(this,n).lastIndex,!a||!(0,l._)(this,t).size)return a;let s=[...a];a.length=1,this.hasIndices&&(r=[...a.indices],a.indices.length=1);let c=[0];for(let e=1;e<s.length;e++){var d;let{hidden:n,transferTo:o}=null!=(d=(0,l._)(this,t).get(e))?d:{};if(n?c.push(null):(c.push(a.length),a.push(s[e]),this.hasIndices&&a.indices.push(r[e])),o&&void 0!==s[e]){let t=eP(c[o]);if(a[t]=s[e],this.hasIndices&&(a.indices[t]=r[e]),a.groups){(0,l._)(this,i)||
1(0,u._)(this,i,function(e){let t,n=RegExp("(?<capture>\\((?:\\?<(?![=!])(?<name>[^>]+)>|(?!\\?)))|\\\\?.","gsu"),r=new Map,i=0,a=0;for(;t=n.exec(e);){let{0:e,groups:{capture:n,name:s}}=t;"["===e?i++:i?"]"===e&&i--:n&&(a++,s&&r.set(a,s))}return r}(this.source));let t=(0,l._)(this,i).get(o);t&&(a.groups[t]=s[e],this.hasIndices&&(a.indices.groups[t]=r[e]))}}}return a}},355959,e=>{"use strict";e.s(["J",()=>n]);var t=e.i(746349);class n{findNextMatchSync(e,t,n){let r="string"==typeof e?e:e.content,i=[];function a(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return{index:e,captureIndices:t.indices.map(e=>null==e?{start:0xffffffff,end:0xffffffff,length:0}:{start:e[0]+n,end:e[1]+n,length:e[1]-e[0]})}}for(let e=0;e<this.regexps.length;e++){let n=this.regexps[e];if(n)try{n.lastIndex=t;let s=n.exec(r);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,n,r]of i)if(n.index===e)return a(t,n,r)}return null}constructor(e,n={}){(0,t._)(this,"regexps",void 0),this.patterns=e,this.options=n;let{forgiving:r=!1,cache:i,regexConstructor:a}=n;if(!a)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if("string"!=typeof e)return e;let t=null==i?void 0:i.get(e);if(t){if(t instanceof RegExp)return t;if(r)return null;throw t}try{let t=a(e);return null==i||i.set(e,t),t}catch(t){if(null==i||i.set(e,t),r)return null;throw t}})}}},113030,e=>{"use strict";e.s(["createJavaScriptRegexEngine",()=>i,"defaultJavaScriptRegexConstructor",()=>r]);var t=e.i(877522),n=e.i(355959);function r(e,n){return(0,t.toRegExp)(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...n})}function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||(t.regexConstructor=e=>r(e,{target:t.target})),{createScanner:e=>new n.J(e,t),createString:e=>({content:e})}}},772659,e=>{"use strict";e.s(["createSingletonShorthands",()=>$,"createdBundledHighlighter",()=>z,"guessEmbeddedLanguages",()=>m]);var t=e.i(746349),n=e.i(668960),r=e.i(145509),i=e.i(238326),a=e.i(553788),s=e.i(552831);function o(e,t){let n="string"==typeof e?{}:{...e.colorReplacements},r="string"==typeof e?e:e.name;for(let[e,i]of Object.entries((null==t?void 0:t.colorReplacements)||{}))"string"==typeof i?n[e]=i:e===r&&Object.assign(n,i);return n}function l(e,t){return e&&(null==t?void 0:t[null==e?void 0:e.toLowerCase()])||e}async function c(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function u(e){return!e||["plaintext","txt","text","plain"].includes(e)}function d(e){return"ansi"===e||u(e)}function h(e){return"none"===e}e.i(113030);function p(e,t){var n;if(!t)return e;for(let r of(e.properties||(e.properties={}),(n=e.properties).class||(n.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 f(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.split(/(\r?\n)/g),r=0,i=[];for(let e=0;e<n.length;e+=2){var a;let s=t?n[e]+(n[e+1]||""):n[e];i.push([s,r]),r+=n[e].length,r+=(null==(a=n[e+1])?void 0:a.length)||0}return i}function m(e,t,n){let r=new Set;for(let t of e.matchAll(/lang=["']([\w-]+)["']/g))r.add(t[1]);for(let t of e.matchAll(/(?:```|~~~)([\w-]+)/g))r.add(t[1]);for(let t of e.matchAll(/\\begin\{([\w-]+)\}/g))r.add(t[1]);if(!n)return Array.from(r);let i=n.getBundledLanguages();return Array.from(r).filter(e=>e&&i[e])}function g(e){let t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&a.FontStyle.Italic&&(t["font-style"]="italic"),e.fontStyle&a.FontStyle.Bold&&(t["font-weight"]="bold"),e.fontStyle&a.FontStyle.Underline&&(t["text-decoration"]="underline")),t}let _=new WeakMap;function y(e,t){_.set(e,t)}function b(e){return _.get(e)}class v{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 v(Object.fromEntries((Array.isArray(t)?t:[t]).map(e=>[e,a.INITIAL])),e)}getInternalStack(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.theme;return this._stacks[e]}get scopes(){return(0,i.w)("GrammarState.scopes is deprecated, use GrammarState.getScopes() instead"),A(this._stacks[this.theme])}getScopes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.theme;return A(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}constructor(...e){if((0,t._)(this,"_stacks",{}),(0,t._)(this,"lang",void 0),2===e.length){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}}function A(e){let t=[],n=new Set;return!function e(r){var i;if(n.has(r))return;n.add(r);let a=null==r||null==(i=r.nameScopesList)?void 0:i.scopeName;a&&t.push(a),r.parent&&e(r.parent)}(e),t}let C=[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 n.ShikiError("Invalid decoration offset: ".concat(e,". Code length: ").concat(t.source.length));return{...i.indexToPos(e),offset:e}}{let t=i.lines[e.line];if(void 0===t)throw new n.ShikiError("Invalid decoration position ".concat(JSON.stringify(e),". Lines length: ").concat(i.lines.length));if(e.character<0||e.character>t.length)throw new n.ShikiError("Invalid decoration position ".concat(JSON.stringify(e),". Line ").concat(e.line," length: ").concat(t.length));return{...e,offset:i.posToIndex(e.line,e.character)}}},i=function(e){let t=f(e,!0).map(e=>{let[t]=e;return t});return{lines:t,indexToPos:function(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let r=n,i=0;for(let e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}},posToIndex:function(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+n}}}(t.source),a=(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 n.ShikiError("Invalid decoration range: ".concat(JSON.stringify(r.start)," - ").concat(JSON.stringify(r.end
1)));for(let i=t+1;i<e.length;i++){let t=e[i],a=r.start.offset<=t.start.offset&&t.start.offset<r.end.offset,s=r.start.offset<t.end.offset&&t.end.offset<=r.end.offset,o=t.start.offset<=r.start.offset&&r.start.offset<t.end.offset,l=t.start.offset<r.end.offset&&r.end.offset<=t.end.offset;if(a||s||o||l){if(a&&s||o&&l)continue;throw new n.ShikiError("Decorations ".concat(JSON.stringify(r.start)," and ").concat(JSON.stringify(t.start)," intersect."))}}}})(a),e.set(t.meta,{decorations:a,converter:i,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){var n;if(null==(n=this.options.decorations)?void 0:n.length){var r=e,i=t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]);let n=Array.from(i instanceof Set?i:new Set(i)).sort((e,t)=>e-t);return n.length?r.map(e=>e.flatMap(e=>{let t=n.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,i=[];for(let n of t)n>r&&i.push({...e,content:e.content.slice(r,n),offset:e.offset+r}),r=n;return r<e.content.length&&i.push({...e,content:e.content.slice(r),offset:e.offset+r}),i})):r}},code(e){var r;if(!(null==(r=this.options.decorations)?void 0:r.length))return;let i=t(this),a=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(a.length!==i.converter.lines.length)throw new n.ShikiError("Number of lines in code element (".concat(a.length,") does not match the number of lines in the source (").concat(i.converter.lines.length,"). Failed to apply decorations."));function s(e,t,r,i){let s=a[e],l="",c=-1,u=-1;if(0===t&&(c=0),0===r&&(u=0),r===1/0&&(u=s.children.length),-1===c||-1===u)for(let e=0;e<s.children.length;e++)l+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(s.children[e]),-1===c&&l.length===t&&(c=e+1),-1===u&&l.length===r&&(u=e+1);if(-1===c)throw new n.ShikiError("Failed to find start index for decoration ".concat(JSON.stringify(i.start)));if(-1===u)throw new n.ShikiError("Failed to find end index for decoration ".concat(JSON.stringify(i.end)));let d=s.children.slice(c,u);if(i.alwaysWrap||d.length!==s.children.length)if(i.alwaysWrap||1!==d.length||"element"!==d[0].type){let e={type:"element",tagName:"span",properties:{},children:d};o(e,i,"wrapper"),s.children.splice(c,d.length,e)}else o(d[0],i,"token");else o(s,i,"line")}function o(e,t,n){var r;let i=t.properties||{},a=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...i,class:e.properties.class},(null==(r=t.properties)?void 0:r.class)&&p(e,t.properties.class),e=a(e,n)||e}let l=[];for(let e of i.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset)){let{start:t,end:n}=e;if(t.line===n.line)s(t.line,t.character,n.character,e);else if(t.line<n.line){s(t.line,t.character,1/0,e);for(let r=t.line+1;r<n.line;r++)l.unshift(()=>{var t;a[t=r]=o(a[t],e,"line")});s(n.line,0,n.character,e)}}l.forEach(e=>e())}}}()];function k(e){return[...e.transformers||[],...C]}var w=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],S={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function x(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 N={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"};function E(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{lang:i="text",theme:s=e.getLoadedThemes()[0]}=r;if(u(i)||h(s))return f(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:c,colorMap:d}=e.setTheme(s);if("ansi"===i)return function(e,t,n){let r,i,s,c=o(e,n),u=f(t),d=function(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:N;function n(e){return"#".concat(e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join(""))}return{value:function(r){switch(r.type){case"named":return t[r.name];case"rgb":return n(r.rgb);case"table":var i;return i=r.index,function(){if(e)return e;e=[];for(let n=0;n<w.length;n++)e.push(t[w[n]]);
1let r=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)e.push(n([r[t],r[i],r[a]]));let i=8;for(let t=0;t<24;t++,i+=10)e.push(n([i,i,i]));return e}()[i]}}}}(Object.fromEntries(w.map(t=>{var n;return[t,null==(n=e.colors)?void 0:n["terminal.ansi".concat(t[0].toUpperCase()).concat(t.substring(1))]]}))),h=(r=null,i=null,s=new Set,{parse(e){let t=[],n=0;do{let a=function(e,t){let n=e.indexOf("\x1b",t);if(-1!==n&&"["===e[n+1]){let t=e.indexOf("m",n);if(-1!==t)return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}(e,n),o=a.sequence?e.substring(n,a.startPosition):e.substring(n);if(o.length>0&&t.push({value:o,foreground:r,background:i,decorations:new Set(s)}),a.sequence){let e=function(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r))if(0===r)t.push({type:"resetAll"});else if(r<=9)S[r]&&t.push({type:"setDecoration",value:S[r]});else if(r<=29){let e=S[r-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:w[r-30]}});else if(38===r){let n=x(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===r)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:w[r-40]}});else if(48===r){let n=x(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===r?t.push({type:"resetBackgroundColor"}):53===r?t.push({type:"setDecoration",value:"overline"}):55===r?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:w[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:w[r-100+8]}})}return t}(a.sequence);for(let t of e)"resetAll"===t.type?(r=null,i=null,s.clear()):"resetForegroundColor"===t.type?r=null:"resetBackgroundColor"===t.type?i=null:"resetDecoration"===t.type&&s.delete(t.value);for(let t of e)"setForegroundColor"===t.type?r=t.value:"setBackgroundColor"===t.type?i=t.value:"setDecoration"===t.type&&s.add(t.value)}n=a.position}while(n<e.length)return t}});return u.map(t=>h.parse(t[0]).map(n=>{let r,i;n.decorations.has("reverse")?(r=n.background?d.value(n.background):e.bg,i=n.foreground?d.value(n.foreground):e.fg):(r=n.foreground?d.value(n.foreground):e.fg,i=n.background?d.value(n.background):void 0),r=l(r,c),i=l(i,c),n.decorations.has("dim")&&(r=function(e){let t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){let e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return"#".concat(t[1]).concat(t[2]).concat(e)}else if(t[2])return"#".concat(t[1]).concat(t[2],"80");else return"#".concat(Array.from(t[1]).map(e=>"".concat(e).concat(e)).join(""),"80");let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?"var(".concat(n[1],"-dim)"):e}(r));let s=a.FontStyle.None;return n.decorations.has("bold")&&(s|=a.FontStyle.Bold),n.decorations.has("italic")&&(s|=a.FontStyle.Italic),n.decorations.has("underline")&&(s|=a.FontStyle.Underline),{content:n.value,offset:t[1],color:r,bgColor:i,fontStyle:s}}))}(c,t,r);let p=e.getLanguage(i);if(r.grammarState){if(r.grammarState.lang!==p.name)throw new n.ShikiError('Grammar state language "'.concat(r.grammarState.lang,'" does not match highlight language "').concat(p.name,'"'));if(!r.grammarState.themes.includes(c.name))throw new n.ShikiError('Grammar state themes "'.concat(r.grammarState.themes,'" do not contain highlight theme "').concat(c.name,'"'))}var m=t,g=p,_=c,b=d,A=r;let C=I(m,g,_,b,A),k=new v(I(m,g,_,b,A).stateStack,g.name,_.name);return y(C.tokens,k),C.tokens}function I(e,t,r,i,s){var c;let u=o(r,s),{tokenizeMaxLineLength:d=0,tokenizeTimeLimit:h=500}=s,p=f(e),m=s.grammarState?null!=(c=function(e,t){if(!(e instanceof v))throw new n.ShikiError("Invalid grammar state");return e.getInternalStack(t)}(s.grammarState,r.name))?c:a.INITIAL:null!=s.grammarContextCode?I(s.grammarContextCode,t,r,i,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:a.INITIAL,g=[],_=[];for(let e=0,n=p.length;e<n;e++){let n,o,[c,f]=p[e];if(""===c){g=[],_.push([]);continue}if(d>0&&c.length>=d){g=[],_.push([{content:c,offset:f,color:"",fontStyle:0}]);continue}s.includeExplanation&&(n=t.tokenizeLine(c,m,h).tokens,o=0);let y=t.tokenizeLine2(c,m,h),b=y.tokens.length/2;for(let e=0;e<b;e++){let t=y.tokens[2*e],d=e+1<b?y.tokens[2*e+2]:c.length;if(t===d)continue;let h=y.tokens[2*e+1],p=l(i[a.EncodedTokenMetadata.getForeground(h)],u),m=a.EncodedTokenMetadata.getFontStyle(h),_={content:c.substring(t,d),offset:f+t,color:p,fontStyle:m};if(s.includeExplanation){let e=[];
1if("scopeName"!==s.includeExplanation)for(let t of r.settings){let n;switch(typeof t.scope){case"string":n=t.scope.split(/,/).map(e=>e.trim());break;case"object":n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}_.explanation=[];let i=0;for(;t+i<d;){let t=n[o],r=c.substring(t.startIndex,t.endIndex);i+=r.length,_.explanation.push({content:r,scopes:"scopeName"===s.includeExplanation?t.scopes.map(e=>({scopeName:e})):function(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:function(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(function(e,t,n){if(!L(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)L(e[r],n[i])&&(r-=1),i-=1;return -1===r}(e,t,n)){r.push(a);break}return r}(e,i,t.slice(0,r))}}return n}(e,t.scopes)}),o+=1}}g.push(_)}_.push(g),g=[],m=y.ruleStack}return{tokens:_,stateStack:m}}function L(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function T(e,t,n){let r=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),i=r.map(r=>{let i=E(e,t,{...n,theme:r.theme}),a=b(i);return{tokens:i,state:a,theme:"string"==typeof r.theme?r.theme:r.theme.name}}),a=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=t.map(()=>[]),i=t.length;for(let e=0;e<t[0].length;e++){let n=t.map(t=>t[e]),a=r.map(()=>[]);r.forEach((e,t)=>e.push(a[t]));let s=n.map(()=>0),o=n.map(e=>e[0]);for(;o.every(e=>e);){let e=Math.min(...o.map(e=>e.content.length));for(let t=0;t<i;t++){let r=o[t];r.content.length===e?(a[t].push(r),s[t]+=1,o[t]=n[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 r}(...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 n&&n.includeExplanation&&(s.explanation=e.explanation),a.forEach((e,n)=>{let{content:a,explanation:o,offset:l,...c}=e[t][i];s.variants[r[n].color]=c}),s})),o=i[0].state?new v(Object.fromEntries(i.map(e=>{var t;return[e.theme,null==(t=e.state)?void 0:t.getInternalStack(e.theme)]})),i[0].state.lang):void 0;return o&&y(s,o),s}function P(e,t,r){let i,a,s,c,u,d;if("themes"in r){let{defaultColor:h="light",cssVariablePrefix:p="--shiki-"}=r,f=Object.entries(r.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===h?-1:+(t.color===h));if(0===f.length)throw new n.ShikiError("`themes` option must not be empty");let m=T(e,t,r);if(d=b(m),h&&!f.find(e=>e.color===h))throw new n.ShikiError("`themes` option must contain the defaultColor key `".concat(h,"`"));let _=f.map(t=>e.getTheme(t.theme)),v=f.map(e=>e.color);s=m.map(e=>e.map(e=>(function(e,t,n,r){let i={content:e.content,explanation:e.explanation,offset:e.offset},a=t.map(t=>g(e.variants[t])),s=new Set(a.flatMap(e=>Object.keys(e))),o={};return a.forEach((e,i)=>{for(let a of s){let s=e[a]||"inherit";if(0===i&&r)o[a]=s;else{let e="color"===a?"":"background-color"===a?"-bg":"-".concat(a);o[n+t[i]+("color"===a?"":e)]=s}}}),i.htmlStyle=o,i})(e,v,p,h))),d&&y(s,d);let A=f.map(e=>o(e.theme,r));a=f.map((e,t)=>(0===t&&h?"":"".concat(p+e.color,":"))+(l(_[t].fg,A[t])||"inherit")).join(";"),i=f.map((e,t)=>(0===t&&h?"":"".concat(p+e.color,"-bg:"))+(l(_[t].bg,A[t])||"inherit")).join(";"),c="shiki-themes ".concat(_.map(e=>e.name).join(" ")),u=h?void 0:[a,i].join(";")}else if("theme"in r){let n=o(r.theme,r);s=E(e,t,r);let u=e.getTheme(r.theme);i=l(u.bg,n),a=l(u.fg,n),c=u.name,d=b(s)}else throw new n.ShikiError("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:a,bg:i,themeName:c,rootStyle:u,grammarState:d}}function R(e,t,n){var r,s;let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{meta:{},options:n,codeToHast:(t,n)=>R(e,t,n),codeToTokens:(t,n)=>P(e,t,n)},l=t;for(let e of k(n))l=(null==(r=e.preprocess)?void 0:r.call(o,l,n))||l;let{tokens:c,fg:u,bg:d,themeName:h,rootStyle:f,grammarState:m}=P(e,l,n),{mergeWhitespaces:_=!0}=n;!0===_?c=c.map(e=>{let t=[],n="",r=0;return e.forEach((i,s)=>{let o=!(i.fontStyle&&i.fontStyle&a.FontStyle.Underline);o&&i.content.match(/^\s+$/)&&e[s+1]?(r||(r=i.offset),n+=i.content):n?(o?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r}
1,i),r=0,n=""):t.push(i)}),t}):"never"===_&&(c=c.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a})));let v={...o,get source(){return l}};for(let e of k(n))c=(null==(s=e.tokens)?void 0:s.call(v,c))||c;return function(e,t,n){var r,a,s;let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:b(e),l=k(t),c=[],u={type:"root",children:[]},{structure:d="classic",tabindex:h="0"}=t,f={type:"element",tagName:"pre",properties:{class:"shiki ".concat(t.themeName||""),style:t.rootStyle||"background-color:".concat(t.bg,";color:").concat(t.fg),...!1!==h&&null!=h?{tabindex:h.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(e=>{let[t]=e;return!t.startsWith("_")}))},children:[]},m={type:"element",tagName:"code",properties:{},children:c},_=[],v={...n,structure:d,addClassToHast:p,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return u},get pre(){return f},get code(){return m},get lines(){return _}};if(e.forEach((e,t)=>{var n,r,a;t&&("inline"===d?u.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===d&&c.push({type:"text",value:"\n"}));let s={type:"element",tagName:"span",properties:{class:"line"},children:[]},o=0;for(let r of e){let e={type:"element",tagName:"span",properties:{...r.htmlAttrs},children:[{type:"text",value:r.content}]};"string"==typeof r.htmlStyle&&(0,i.w)("`htmlStyle` as a string is deprecated. Use an object instead.");let c="string"==typeof(a=r.htmlStyle||g(r))?a:Object.entries(a).map(e=>{let[t,n]=e;return"".concat(t,":").concat(n)}).join(";");for(let i of(c&&(e.properties.style=c),l))e=(null==i||null==(n=i.span)?void 0:n.call(v,e,t+1,o,s,r))||e;"inline"===d?u.children.push(e):"classic"===d&&s.children.push(e),o+=r.content.length}if("classic"===d){for(let e of l)s=(null==e||null==(r=e.line)?void 0:r.call(v,s,t+1))||s;_.push(s),c.push(s)}}),"classic"===d){for(let e of l)m=(null==e||null==(a=e.code)?void 0:a.call(v,m))||m;for(let e of(f.children.push(m),l))f=(null==e||null==(s=e.pre)?void 0:s.call(v,f))||f;u.children.push(f)}let A=u;for(let e of l)A=(null==e||null==(r=e.root)?void 0:r.call(v,A))||A;return o&&y(A,o),A}(c,{...n,fg:u,bg:d,themeName:h,rootStyle:f},v,m)}let M={light:"#333333",dark:"#bbbbbb"},j={light:"#fffffe",dark:"#1e1e1e"},G="__shiki_resolved";function O(e){var t,n,r,i,a;if(null==e?void 0:e[G])return e;let s={...e};s.tokenColors&&!s.settings&&(s.settings=s.tokenColors,delete s.tokenColors),s.type||(s.type="dark"),s.colorReplacements={...s.colorReplacements},s.settings||(s.settings=[]);let{bg:o,fg:l}=s;if(!o||!l){let e=s.settings?s.settings.find(e=>!e.name&&!e.scope):void 0;(null==e||null==(t=e.settings)?void 0:t.foreground)&&(l=e.settings.foreground),(null==e||null==(n=e.settings)?void 0:n.background)&&(o=e.settings.background),!l&&(null==s||null==(r=s.colors)?void 0:r["editor.foreground"])&&(l=s.colors["editor.foreground"]),!o&&(null==s||null==(i=s.colors)?void 0:i["editor.background"])&&(o=s.colors["editor.background"]),l||(l="light"===s.type?M.light:M.dark),o||(o="light"===s.type?j.light:j.dark),s.fg=l,s.bg=o}s.settings[0]&&s.settings[0].settings&&!s.settings[0].scope||s.settings.unshift({settings:{foreground:s.fg,background:s.bg}});let c=0,u=new Map;function d(e){var t;if(u.has(e))return u.get(e);c+=1;let n="#".concat(c.toString(16).padStart(8,"0").toLowerCase());return(null==(t=s.colorReplacements)?void 0:t["#".concat(n)])?d(e):(u.set(e,n),n)}for(let e of(s.settings=s.settings.map(e=>{var t,n;let r=(null==(t=e.settings)?void 0:t.foreground)&&!e.settings.foreground.startsWith("#"),i=(null==(n=e.settings)?void 0:n.background)&&!e.settings.background.startsWith("#");if(!r&&!i)return e;let a={...e,settings:{...e.settings}};if(r){let t=d(e.settings.foreground);s.colorReplacements[t]=e.settings.foreground,a.settings.foreground=t}if(i){let t=d(e.settings.background);s.colorReplacements[t]=e.settings.background,a.settings.background=t}return a}
1),Object.keys(s.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!(null==(a=s.colors[e])?void 0:a.startsWith("#"))){let t=d(s.colors[e]);s.colorReplacements[t]=s.colors[e],s.colors[e]=t}return Object.defineProperty(s,G,{enumerable:!1,writable:!1,value:!0}),s}async function B(e){return Array.from(new Set((await Promise.all(e.filter(e=>!d(e)).map(async e=>await c(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function F(e){return(await Promise.all(e.map(async e=>h(e)?null:O(await c(e))))).filter(e=>!!e)}class D extends Error{constructor(e){super(e),this.name="ShikiError"}}class U extends a.Registry{getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=O(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=a.Theme.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){if(this._alias[e]){let t=new Set([e]);for(;this._alias[e];){if(e=this._alias[e],t.has(e))throw new D("Circular alias `".concat(Array.from(t).join(" -> ")," -> ").concat(e,"`"));t.add(e)}}return this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>{var n;return null==(n=t.embeddedLangsLazy)?void 0:n.includes(e.name)}));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t){var i,a,s,o;this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,null==(a=this._syncRegistry)||null==(i=a._injectionGrammars)||i.delete(e.scopeName),null==(o=this._syncRegistry)||null==(s=o._grammars)||s.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()),n=t.filter(e=>{let[t,n]=e;return!n});if(n.length){let e=t.filter(e=>{var t;let[r,i]=e;return i&&(null==(t=i.embeddedLangs)?void 0:t.some(e=>n.map(e=>{let[t]=e;return t}).includes(e)))}).filter(e=>!n.includes(e));throw new D("Missing languages ".concat(n.map(e=>{let[t]=e;return"`".concat(t,"`")}).join(", "),", required by ").concat(e.map(e=>{let[t]=e;return"`".concat(t,"`")}).join(", ")))}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){if(this._langMap.set(e.name,e),this._langGraph.set(e.name,e),e.embeddedLangs)for(let t of e.embeddedLangs)this._langGraph.set(t,this._langMap.get(t))}constructor(e,n,r,i={}){super(e),(0,t._)(this,"_resolvedThemes",new Map),(0,t._)(this,"_resolvedGrammars",new Map),(0,t._)(this,"_langMap",new Map),(0,t._)(this,"_langGraph",new Map),(0,t._)(this,"_textmateThemeCache",new WeakMap),(0,t._)(this,"_loadedThemesCache",null),(0,t._)(this,"_loadedLanguagesCache",null),this._resolver=e,this._themes=n,this._langs=r,this._alias=i,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}}class W{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("."),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(".");n=[...n,...this._injections.get(r)||[]]}return n}constructor(e,n){(0,t._)(this,"_langs",new Map),(0,t._)(this,"_scopeToLang",new Map),(0,t._)(this,"_injections",new Map),(0,t._)(this,"_onigLib",void 0),this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)}
1,n.forEach(e=>this.addLanguage(e))}}let q=0;async function H(e){e.loadWasm&&(0,i.w)("`loadWasm` option is deprecated. Use `engine: createOnigurumaEngine(loadWasm)` instead."),e.engine||(0,i.w)("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,a]=await Promise.all([F(e.themes||[]),B(e.langs||[]),e.engine||(0,r.createOnigurumaEngine)(e.loadWasm||(0,r.getDefaultWasmLoader)())]);return function(e){let t;q+=1,!1!==e.warnings&&q>=10&&q%10==0&&console.warn("[Shiki] ".concat(q," instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call `highlighter.dispose()` to release unused instances."));let n=!1;if(!e.engine)throw new D("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(O),a=new U(new W(e.engine,r),i,r,e.langAlias);function s(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};c();let t=a.getTheme(e);if(!t)throw new D("Theme `".concat(e,"` not found, you may need to load it first"));return t}function o(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];c(),a.loadLanguages(t.flat(1))}function l(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];for(let e of(c(),t.flat(1)))a.loadTheme(e)}function c(){if(n)throw new D("Shiki instance has been disposed")}function u(){n||(n=!0,a.dispose(),q-=1)}return{setTheme:function(e){c();let n=s(e);return t!==e&&(a.setTheme(n),t=e),{theme:n,colorMap:a.getColorMap()}},getTheme:s,getLanguage:function(e){c();let t=a.getGrammar("string"==typeof e?e:e.name);if(!t)throw new D("Language `".concat(e,"` not found, you may need to load it first"));return t},getLoadedThemes:function(){return c(),a.getLoadedThemes()},getLoadedLanguages:function(){return c(),a.getLoadedLanguages()},loadLanguage:async function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return o(await B(t))},loadLanguageSync:o,loadTheme:async function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return c(),l(await F(t))},loadThemeSync:l,dispose:u,[Symbol.dispose]:u}}({...e,themes:t,langs:n,engine:a})}async function V(e){let t=await H(e);return{getLastGrammarState:function(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(2===t.length)return b(t[1]);let[i,a,s={}]=t,{lang:o="text",theme:l=i.getLoadedThemes()[0]}=s;if(u(o)||h(l))throw new n.ShikiError("Plain language does not have grammar state");if("ansi"===o)throw new n.ShikiError("ANSI language does not have grammar state");let{theme:c,colorMap:d}=i.setTheme(l),p=i.getLanguage(o);return new v(I(a,p,c,d,s).stateStack,p.name,c.name)}(t,...r)},codeToTokensBase:(e,n)=>E(t,e,n),codeToTokensWithThemes:(e,n)=>T(t,e,n),codeToTokens:(e,n)=>P(t,e,n),codeToHast:(e,n)=>R(t,e,n),codeToHtml:(e,n)=>(function(e,t,n){var r;let i={meta:{},options:n,codeToHast:(t,n)=>R(e,t,n),codeToTokens:(t,n)=>P(e,t,n)},a=(0,s.toHtml)(R(e,t,n,i));for(let e of k(n))a=(null==(r=e.postprocess)?void 0:r.call(i,a,n))||a;return a})(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function z(e,t,a){let s,o,l;return t?((0,i.w)("`createdBundledHighlighter` signature with `bundledLanguages` and `bundledThemes` is deprecated. Use the options object signature instead."),s=e,o=t,l=()=>((0,i.w)("import `createOnigurumaEngine` from `@shikijs/engine-oniguruma` or `shiki/engine/oniguruma` instead"),(0,r.createOnigurumaEngine)(a))):(s=e.langs,o=e.themes,l=e.engine),async function(e){var t,r,i;function a(e){if("string"==typeof e){if(d(e))return[];let t=s[e];if(!t)throw new n.ShikiError("Language `".concat(e,"` is not included in this bundle. You may want to load it from external source."));return t}return e}function c(e){if(h(e))return"none";if("string"==typeof e){let t=o[e];if(!t)throw new n.ShikiError("Theme `".concat(e,"` is not included in this bundle. You may want to load it from external source."));return t}return e}let u=(null!=(t=e.themes)?t:[]).map(e=>c(e)),p=(null!=(r=e.langs)?r:[]).map(e=>a(e)),f=await V({engine:null!=(i=e.engine)?i:l(),...e,themes:u,langs:p});return{...f,loadLanguage(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.loadLanguage(...t.map(a))},loadTheme(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.loadTheme(...t.map(c))},getBundledLanguages:()=>s,getBundledThemes:()=>o}}}function $(e,t){let n,r=async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!n)return n=e({...t,themes:t.themes||[],langs:t.langs||[]});{let e=await n;return await Promise.all([e.loadTheme(...t.themes||[]),e.loadLanguage(...t.langs||[])]),e}};async function i(e,n){var i;let a=await r({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)}),s=await (null==t||null==(i=t.guessEmbeddedLanguages)?void 0:i.call(t,e,n.lang,a));return s&&await a.loadLanguage(...s),a}return{getSingletonHighlighter:e=>r(e),codeToHtml:async(e,t)=>(await i(e,t)).codeToHtml(e,t),codeToHast:async(e,t)=>(await i(e,t)).codeToHast(e,t),codeToTokens:async(e,t)=>(await i(e,t)).codeToTokens(e,t),codeToTokensBase:async(e,t)=>(await i(e,t)).codeToTokensBase(e,t),codeToTokensWithThemes:async(e,t)=>(await i(e,t)).codeToTokensWithThemes(e,t),getLastGrammarState:async(e,t)=>(await r({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}},253362,e=>{"use strict";e.s(["warnDeprecated",()=>t.w]);var t=e.i(238326)},409825,e=>{"use strict";e.s(["bundledThemes",()=>t]);let t=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>e.A(294818)},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>e.A(508462)},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>e.A(816354)}
1,{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>e.A(688597)},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>e.A(634622)},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>e.A(258058)},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>e.A(71719)},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>e.A(280388)},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>e.A(220472)},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>e.A(853248)},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>e.A(546292)},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>e.A(325134)},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>e.A(256025)},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>e.A(524750)},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>e.A(192591)},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>e.A(416212)},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>e.A(582849)},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>e.A(221730)},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>e.A(100186)},{id:"houston",displayName:"Houston",type:"dark",import:()=>e.A(566138)},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>e.A(715687)},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>e.A(293475)},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>e.A(925670)},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>e.A(151812)},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>e.A(20054)},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>e.A(850431)},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>e.A(142786)},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>e.A(691343)},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>e.A(566718)},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>e.A(611549)},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>e.A(660721)},{id:"min-light",displayName:"Min Light",type:"light",import:()=>e.A(438428)},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>e.A(387885)},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>e.A(400104)},{id:"nord",displayName:"Nord",type:"dark",import:()=>e.A(375059)},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>e.A(576184)},{id:"one-light",displayName:"One Light",type:"light",import:()=>e.A(724673)},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>e.A(410892)},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>e.A(615900)},{id:"red",displayName:"Red",type:"dark",import:()=>e.A(689654)},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>e.A(602348)},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>e.A(531990)},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>e.A(449175)},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>e.A(55348)},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>e.A(704566)},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>e.A(409865)},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>e.A(194470)},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>e.A(844886)},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>e.A(988294)},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>e.A(160168)},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>e.A(289515)},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>e.A(156021)},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>e.A(468881)},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>e.A(108315)}].map(e=>[e.id,e.import]))},812337,e=>{"use strict";e.s(["createHighlighter",()=>a]);var t=e.i(772659);e.i(253362);var n=e.i(321347),r=e.i(409825),i=e.i(145509);let a=(0,t.createdBundledHighlighter)({langs:n.bundledLanguages,themes:r.bundledThemes,engine:()=>(0,i.createOnigurumaEngine)(e.A(421617))});t.guessEmbeddedLanguages},821875,e=>{"use strict";e.s(["highlightCode",()=>u]);var t=e.i(321347),n=e.i(812337),r=e.i(31860);let i="github-dark-default",a={golang:"go",groq:"graphql",mysql:"sql",rego:"javascript",slack:"shell",url:"text"}
1,s=new Set(Object.keys(t.bundledLanguages));s.add("text");let o=Array.from(new Set(r.supportedLanguages.map(e=>{var t;let{value:n}=e;return null!=(t=a[n])?t:n}).filter(e=>s.has(e)))),l=null;async function c(){return l||(l=await (0,n.createHighlighter)({themes:[i],langs:o})),l}async function u(e,t){var n;let r=await c(),s=r.getLoadedLanguages(),o=null!=(n=a[t])?n:t,l=s.includes(o)?o:"text";return r.codeToHtml(e,{lang:l,theme:i})}},16352,e=>{e.v({button:"ClipboardCopy-module__btFrjW__button",icon:"ClipboardCopy-module__btFrjW__icon"})},748657,e=>{"use strict";e.s(["ClipboardCopy",()=>o]);var t=e.i(391398),n=e.i(191788),r=e.i(578481),i=e.i(108058),a=e.i(16352);let s={copied:"tick",error:"close",waiting:"copy"};function o(e){let{textToCopy:o}=e,[l,c]=(0,n.useState)("waiting");async function u(){try{await navigator.clipboard.writeText(o),c("copied")}catch(e){c("error")}setTimeout(()=>{c("waiting")},1500)}return(0,t.jsx)(r.default,{variant:"link",colorScheme:"light",disabled:"waiting"!==l,onClick:u,className:a.default.button,"aria-label":"error"===l?"Copy failed":"copied"===l?"Copied":"",children:(0,t.jsx)(i.default,{className:a.default.icon,icon:s[l]})})}},26086,e=>{e.v({code:"CodeBlock-module__CjrATq__code",hideHeader:"CodeBlock-module__CjrATq__hideHeader",lang:"CodeBlock-module__CjrATq__lang",langText:"CodeBlock-module__CjrATq__langText",root:"CodeBlock-module__CjrATq__root",withLineNumbers:"CodeBlock-module__CjrATq__withLineNumbers"})},361227,e=>{"use strict";e.s(["default",()=>u]);var t=e.i(391398),n=e.i(191788),r=e.i(648684),i=e.i(821875),a=e.i(748657),s=e.i(26086);let o=["batch","sh","bash","slack","url"],l=["text","url","slack"],c=(0,r.cva)(s.default.root,{variants:{hideLineNumbers:{false:s.default.withLineNumbers},hideHeader:{true:s.default.hideHeader}}}),u=e=>{let{value:r}=e,{code:u,language:d}=r,h=!d,p=o.includes(d),f=l.includes(d),[m,g]=(0,n.useState)("");return((0,n.useEffect)(()=>{let e=!0;return(0,i.highlightCode)(u,d).then(t=>{e&&g(t)}),()=>{e=!1}},[u,d]),m)?(0,t.jsxs)("div",{className:c({hideHeader:h,hideLineNumbers:p}),children:[!h&&(0,t.jsxs)("div",{className:s.default.lang,children:[(0,t.jsx)("span",{className:s.default.langText,children:f?"":d}),(0,t.jsx)(a.ClipboardCopy,{textToCopy:u})]}),(0,t.jsx)("div",{className:s.default.code,dangerouslySetInnerHTML:{__html:m}})]}):(0,t.jsx)("pre",{className:s.default.root,children:(0,t.jsx)("code",{children:u})})}},732833,e=>{"use strict";e.s(["default",()=>i]);var t=e.i(391398),n=e.i(3346),r=e.i(310572);function i(e){let{link:i,children:a,className:s}=e,o=(0,r.getResolvedLinkHref)(i);if(!o)return(0,t.jsx)(t.Fragment,{children:a});let l="href"===i.linkType||"mailto"===i.linkType||"string"==typeof o&&/^https?:\/\//.test(o),c=i.openInNewTab?"_blank":void 0,u=i.openInNewTab?"noopener noreferrer":void 0;return l?(0,t.jsx)("a",{href:o,target:c,rel:u,className:s,children:a}):(0,t.jsx)(n.default,{href:o,className:s,...c||u?{target:c,rel:u}:{},children:a})}},773668,e=>{e.v({root:"TableBlock-module__nAfj-q__root"})},787408,e=>{"use strict";e.s(["default",()=>i]);var t=e.i(391398),n=e.i(477855),r=e.i(773668);function i(e){let{value:i}=e,{table:a,firstRowIsHeader:s}=i;if(!(null==a?void 0:a.rows))return null;let o=a.rows,l=s?o[0]:null,c=s?o.slice(1):o;return(0,t.jsx)("div",{className:r.default.root,children:(0,t.jsxs)(n.default,{variant:"bordered",responsiveWrapper:!1,children:[l&&(0,t.jsx)("thead",{children:(0,t.jsx)("tr",{children:l.cells.map((e,n)=>(0,t.jsx)("th",{children:e},n))},l._key)}),(0,t.jsx)("tbody",{children:c.map(e=>(0,t.jsx)("tr",{children:e.cells.map((e,n)=>(0,t.jsx)("td",{children:e},n))},e._key))})]})})}},430794,e=>{e.v({blockquoteAuthor:"PortableText-module__JOuTBq__blockquoteAuthor",blockquoteAuthorRole:"PortableText-module__JOuTBq__blockquoteAuthorRole",callout:"PortableText-module__JOuTBq__callout",highlight:"PortableText-module__JOuTBq__highlight",root:"PortableText-module__JOuTBq__root",videoBlock:"PortableText-module__JOuTBq__videoBlock",videoThumbnail:"PortableText-module__JOuTBq__videoThumbnail"})},241852,e=>{"use strict";e.s(["default",()=>k]);var t=e.i(391398),n=e.i(648684),r=e.i(391054),i=e.i(728184),a=e.i(98959),s=e.i(322778),o=e.i(774779),l=e.i(443343),c=e.i(310572),u=e.i(799739),d=e.i(753335),h=e.i(361227),p=e.i(732833),f=e.i(787408),m=e.i(430794);let g=e=>{var n;let{value:r}=e;return(0,t.jsx)(s.default,{className:m.default.videoBlock,thumbnailClassName:m.default.videoThumbnail,title:r.title,thumbnail:r.thumbnail,id:null!=(n=r.youtubeId)?n:r.id})},_=e=>{let{value:n}=e;return(0,t.jsx)(o.default,{className:m.default.videoBlock,thumbnailClassName:m.default.videoThumbnail,title:n.title,thumbnail:n.thumbnail,id:n.id})},y=e=>{let{value:n}=e,{variant:i,content:a}=n;return(0,t.jsx)(r.default,{className:m.default.callout,variant:i,children:(0,t.jsx)(l.PortableText,{value:a})})},b=e=>{let{value:n}=e,{author:r,authorRole:i,content:a}=n;return(0,t.jsxs)("blockquote",{className:m.default.blockquote,children:[(0,t.jsx)(l.PortableText,{value:a}),r&&(0,t.jsx)("p",{className:m.default.blockquoteAuthor,children:r}),i&&(0,t.jsx)("p",{className:m.default.blockquoteAuthorRole,children:i})]})},v=e=>{let{value:n}=e,{caption:r}=n;return(0,t.jsxs)("figure",{"data-variant":"table",children:[(0,t.jsx)(f.default,{value:n}),r&&(0,t.jsx)("figcaption",{children:r})]})},A=e=>{let{value:n}=e,{asset:r,alt:s,caption:o,link:l}=n,u=null==r?void 0:r.url,h=(0,c.getResolvedLinkHref)(l),f=(0,d.isSanityCdnImageUrl)(h),m=u&&(!h||f),g=(0,t.jsx)(a.default,{asset:r,alt:null!=s?s:"",sizes:"(min-width: 960px) 33vw, 100vw",quality:100}),_=g;return m?_=(0,t.jsx)(i.default,{src:f?h:u,alt:null!=s?s:"",children:g}):h&&(_=(0,t.jsx)(p.default,{link:l,children:g})),(0,t.jsxs)("figure",{"data-variant":"image",children:[_,o&&(0,t.jsx)("figcaption",{children:o})]})},C=(e,t)=>{let n=e.map(e=>{var t;return"string"==typeof e?e:(null==e||null==(t=e.props)?void 0:t.children)||""}),r=(0,u.textToSlug)(n.join(""));return t?"".concat(r,"-").concat(t):r};function k(e){let{className:r,value:i}=e,a={types:{callout:y,code:h.default,image:A,tableBlock:v,video:g,youtube:g,wistiaVideo:_,quote:b},block:{h2:e=>{let{children:n,value:r}=e,i=C(n,r._key);return(0,t.jsx)("h2",{id:i,children:n})},h3:e=>{let{children:n,value:r}=e,i=C(n,r._key);return(0,t.jsx)("h3",{id:i,children:n})}},marks:{small:e=>{let{children:n}=e;return(0,t.jsx)("small",{children:n})},link:e=>{var n;let{children:r,value:i}=e,a=null!=(n=i.link)?n:i;return(0,t.jsx)(p.default,{link:a,children:r})},sup:e=>{let{children:n}=e;return(0,t.jsx)("sup",{children:n})},highlight:e=>{let{children:n}=e;return(0,t.jsx)("span",{className:m.default.highlight,children:n})}}};return(0,t.jsx)("div",{className:(0,n.cx)(m.default.root,r),children:(0,t.jsx)(l.PortableText,{components:a,value:i})})}}]);

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.