docmedown 0.9.4 → 0.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var Rl=Object.create;var oa=Object.defineProperty;var zl=Object.getOwnPropertyDescriptor;var Fl=Object.getOwnPropertyNames;var Ol=Object.getPrototypeOf,Il=Object.prototype.hasOwnProperty;var Ze=(r,e,t)=>()=>{if(t)throw t[0];try{return r&&(e=r(r=0)),e}catch(n){throw t=[n],n}};var _l=(r,e)=>()=>{try{return e||r((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}},la=(r,e)=>{for(var t in e)oa(r,t,{get:e[t],enumerable:!0})},Nl=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Fl(e))!Il.call(r,a)&&a!==t&&oa(r,a,{get:()=>e[a],enumerable:!(n=zl(e,a))||n.enumerable});return r};var J=(r,e,t)=>(t=r!=null?Rl(Ol(r)):{},Nl(e||!r||!r.__esModule?oa(t,"default",{value:r,enumerable:!0}):t,r));var mr,ln=Ze(()=>{mr={name:"docmedown",version:"0.9.4",description:"The simplest MarkDown documenter yet. CLI, web script, and static-site compiler with AI-native distribution.",author:"Gabriel M. P. da Silva",license:"Apache-2.0",homepage:"https://github.com/gabrielmsilva00/docmedown#readme",repository:{type:"git",url:"git+https://github.com/gabrielmsilva00/docmedown.git"},bugs:{url:"https://github.com/gabrielmsilva00/docmedown/issues"},keywords:["markdown","documentation","docs","docusaurus","docsify","svelte","spa","cli","offline-docs","github-docs","mcp","model-context-protocol"],engines:{node:">=20.19.0"},packageManager:"npm@11.16.0",main:"./dist/docmedown.cjs",module:"./dist/docmedown.mjs",types:"./dist/types/ui/index.d.ts",exports:{".":{types:"./dist/types/ui/index.d.ts",import:"./dist/docmedown.mjs",require:"./dist/docmedown.cjs"},"./motion":{types:"./dist/types/runtime/motion.d.ts",import:"./dist/docmedown.mjs",require:"./dist/docmedown.cjs"},"./iife":"./dist/docmedown.iife.js"},unpkg:"./dist/docmedown.iife.js",jsdelivr:"./dist/docmedown.iife.js",bin:{docmedown:"bin/docmedown.js",dmd:"bin/docmedown.js"},files:["dist","bin","templates","schemas","README.md","LICENSE"],scripts:{build:"node ./scripts/build.mjs","build:fast":"node ./scripts/build.mjs --fast","build:docs":"node ./bin/docmedown.js build ./docs","build:docs:watch":"node ./bin/docmedown.js build ./docs --watch",dev:"node ./bin/docmedown.js serve ./docs","dev:runtime":"vite build --watch","dev:mcp":"node ./bin/docmedown.js mcp ./docs",serve:"node ./bin/docmedown.js serve ./docs",check:"npm run typecheck && npm run lint",typecheck:"tsc --noEmit",lint:"biome check .","lint:fix":"biome check --write .",format:"biome format --write .",test:"node ./scripts/test-unit.mjs","test:mcp":"npx tsx --test tests/mcp.test.ts","test:mcp:client":"node ./scripts/test-mcp-client.mjs","test:artifacts":"npx tsx --test tests/offline-artifact.test.ts","test:bundle":"npx tsx --test tests/bundle-size.test.ts","test:release":"npm run typecheck && npm run lint && npm run test && npm run build && npm run test:mcp && npm run build:docs && npm run test:artifacts && npm run test:bundle && npm pack --dry-run",doctor:"node ./bin/docmedown.js doctor ./docs","doctor:project":"node ./scripts/doctor-project.mjs",validate:"node ./bin/docmedown.js validate ./docs","config:docs":"node ./bin/docmedown.js config ./docs/docs.json",clean:`node -e "fs.rmSync('dist', { recursive: true, force: true }); fs.rmSync('docs/.dist', { recursive: true, force: true })"`,deploy:"node ./scripts/deploy.mjs","deploy:dry-run":"npm run deploy -- --dry-run",prepublishOnly:"npm run test:release"},overrides:{tsup:{esbuild:"0.28.2"}},dependencies:{"@modelcontextprotocol/sdk":"^1.30.0",chalk:"^4.1.2",chokidar:"^3.6.0",commander:"^12.1.0",esbuild:"^0.28.2","gray-matter":"^4.0.3","mime-types":"^2.1.35",open:"^10.1.0",prompts:"^2.4.2",svelte:"^5.57.0",ws:"^8.18.0",zod:"^4.4.3"},devDependencies:{"@biomejs/biome":"^2.5.10","@sveltejs/vite-plugin-svelte":"^7.3.0","@types/node":"^22.5.0","@types/prismjs":"^1.26.6","@types/prompts":"^2.4.9","@types/react":"^18.3.31","@types/react-dom":"^18.3.7","@types/ws":"^8.5.12",katex:"^0.16.11",marked:"^14.1.1",mermaid:"^11.17.2",minisearch:"^7.1.0",motion:"^13.4.4",prismjs:"^1.29.0",react:"^18.3.1","react-dom":"^18.3.1",tsup:"^8.2.4",tsx:"^4.19.0",typescript:"^5.5.4",vite:"^8.2.2","vite-plugin-css-injected-by-js":"^5.0.2"}}});function Yl(r){return r.issues.map(e=>`${e.path.length>0?e.path.join("."):"config"}: ${e.message}`).join(`
2
+ "use strict";var El=Object.create;var oa=Object.defineProperty;var Rl=Object.getOwnPropertyDescriptor;var zl=Object.getOwnPropertyNames;var Fl=Object.getPrototypeOf,Ol=Object.prototype.hasOwnProperty;var Ze=(r,e,t)=>()=>{if(t)throw t[0];try{return r&&(e=r(r=0)),e}catch(n){throw t=[n],n}};var Il=(r,e)=>()=>{try{return e||r((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}},la=(r,e)=>{for(var t in e)oa(r,t,{get:e[t],enumerable:!0})},_l=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of zl(e))!Ol.call(r,a)&&a!==t&&oa(r,a,{get:()=>e[a],enumerable:!(n=Rl(e,a))||n.enumerable});return r};var J=(r,e,t)=>(t=r!=null?El(Fl(r)):{},_l(e||!r||!r.__esModule?oa(t,"default",{value:r,enumerable:!0}):t,r));var mr,ln=Ze(()=>{mr={name:"docmedown",version:"0.9.6",description:"The simplest MarkDown documenter yet. CLI, web script, and static-site compiler with AI-native distribution.",author:"Gabriel M. P. da Silva",license:"Apache-2.0",homepage:"https://github.com/gabrielmsilva00/docmedown#readme",repository:{type:"git",url:"git+https://github.com/gabrielmsilva00/docmedown.git"},bugs:{url:"https://github.com/gabrielmsilva00/docmedown/issues"},keywords:["markdown","documentation","docs","docusaurus","docsify","svelte","spa","cli","offline-docs","github-docs","mcp","model-context-protocol"],engines:{node:">=20.19.0"},packageManager:"npm@11.16.0",main:"./dist/docmedown.cjs",module:"./dist/docmedown.mjs",types:"./dist/types/ui/index.d.ts",exports:{".":{types:"./dist/types/ui/index.d.ts",import:"./dist/docmedown.mjs",require:"./dist/docmedown.cjs"},"./motion":{types:"./dist/types/runtime/motion.d.ts",import:"./dist/docmedown.mjs",require:"./dist/docmedown.cjs"},"./iife":"./dist/docmedown.iife.js"},unpkg:"./dist/docmedown.iife.js",jsdelivr:"./dist/docmedown.iife.js",bin:{docmedown:"bin/docmedown.js",dmd:"bin/docmedown.js"},files:["dist","bin","templates","schemas","README.md","LICENSE"],scripts:{build:"node ./scripts/build.mjs","build:fast":"node ./scripts/build.mjs --fast","build:docs":"node ./bin/docmedown.js build ./docs","build:docs:watch":"node ./bin/docmedown.js build ./docs --watch",dev:"node ./bin/docmedown.js serve ./docs","dev:runtime":"vite build --watch","dev:mcp":"node ./bin/docmedown.js mcp ./docs",serve:"node ./bin/docmedown.js serve ./docs",check:"npm run typecheck && npm run lint",typecheck:"tsc --noEmit",lint:"biome check .","lint:fix":"biome check --write .",format:"biome format --write .",test:"node ./scripts/test-unit.mjs","test:mcp":"npx tsx --test tests/mcp.test.ts","test:mcp:client":"node ./scripts/test-mcp-client.mjs","test:artifacts":"npx tsx --test tests/offline-artifact.test.ts","test:bundle":"npx tsx --test tests/bundle-size.test.ts","test:release":"npm run typecheck && npm run lint && npm run test && npm run build && npm run test:mcp && npm run build:docs && npm run test:artifacts && npm run test:bundle && npm pack --dry-run",doctor:"node ./bin/docmedown.js doctor ./docs","doctor:project":"node ./scripts/doctor-project.mjs",validate:"node ./bin/docmedown.js validate ./docs","config:docs":"node ./bin/docmedown.js config ./docs/docs.json",clean:`node -e "fs.rmSync('dist', { recursive: true, force: true }); fs.rmSync('docs/.dist', { recursive: true, force: true })"`,deploy:"node ./scripts/deploy.mjs","deploy:dry-run":"npm run deploy -- --dry-run",prepublishOnly:"npm run test:release"},overrides:{tsup:{esbuild:"0.28.2"}},dependencies:{"@modelcontextprotocol/sdk":"^1.30.0",chalk:"^4.1.2",chokidar:"^3.6.0",commander:"^12.1.0",esbuild:"^0.28.2","gray-matter":"^4.0.3","mime-types":"^2.1.35",open:"^10.1.0",prompts:"^2.4.2",svelte:"^5.57.0",ws:"^8.18.0",zod:"^4.4.3"},devDependencies:{"@biomejs/biome":"^2.5.10","@sveltejs/vite-plugin-svelte":"^7.3.0","@types/node":"^22.5.0","@types/prismjs":"^1.26.6","@types/prompts":"^2.4.9","@types/react":"^18.3.31","@types/react-dom":"^18.3.7","@types/ws":"^8.5.12",katex:"^0.16.11",marked:"^14.1.1",mermaid:"^11.17.2",minisearch:"^7.1.0",motion:"^13.4.4",prismjs:"^1.29.0",react:"^18.3.1","react-dom":"^18.3.1",tsup:"^8.2.4",tsx:"^4.19.0",typescript:"^5.5.4",vite:"^8.2.2","vite-plugin-css-injected-by-js":"^5.0.2"}}});function Xl(r){return r.issues.map(e=>`${e.path.length>0?e.path.join("."):"config"}: ${e.message}`).join(`
3
3
  `)}function ca(r){let e=cn.safeParse(r);if(e.success)return e.data;throw new Error(`Invalid DocMeDown configuration:
4
- ${Yl(e.error)}`)}var B,Qe,Ll,Bl,Pl,Hl,ql,Ul,Ys,Gl,Wl,Js,Vl,Zl,Xl,cn,Ks,da=Ze(()=>{"use strict";B=require("zod"),Qe=B.z.string().trim().min(1,"Must not be empty."),Ll=B.z.enum(["indigo","emerald","sunset","violet","rose","slate","cyberpunk"]),Bl=B.z.enum(["atlas","blueprint","terminal","editorial"]),Pl=B.z.enum(["comfortable","compact"]),Hl=B.z.enum(["light","dark","auto"]),ql=B.z.enum(["github","gitlab","twitter","x","discord","custom"]),Ul=B.z.enum(["info","success","warning","new"]),Ys=B.z.object({label:Qe,href:Qe,external:B.z.boolean().optional(),icon:B.z.string().optional()}).strict(),Gl=B.z.object({type:ql,url:B.z.string().url("Must be an absolute URL."),label:B.z.string().optional(),icon:B.z.string().optional()}).strict(),Wl=B.z.discriminatedUnion("type",[B.z.object({type:B.z.literal("github"),repo:Qe.regex(/^[^/\s]+\/[^/\s]+$/,"Use the owner/repository format."),branch:Qe.optional(),docsDir:B.z.string().optional(),token:B.z.string().optional(),baseUrl:B.z.string().url("Must be an absolute URL.").optional()}).strict(),B.z.object({type:B.z.literal("gitlab"),repo:Qe.regex(/^[^/\s]+\/[^/\s]+$/,"Use the namespace/repository format."),branch:Qe.optional(),docsDir:B.z.string().optional(),token:B.z.string().optional(),baseUrl:B.z.string().url("Must be an absolute URL.").optional()}).strict(),B.z.object({type:B.z.literal("raw"),baseUrl:B.z.string().url("Must be an absolute URL."),branch:Qe.optional(),docsDir:B.z.string().optional(),token:B.z.string().optional()}).strict()]),Js=B.z.lazy(()=>B.z.object({title:B.z.string().optional(),path:B.z.string().optional(),slug:B.z.string().optional(),icon:B.z.string().optional(),badge:B.z.string().optional(),badgeType:Ul.optional(),collapsed:B.z.boolean().optional(),children:B.z.array(Js).optional()}).strict()),Vl=B.z.object({family:Bl.optional(),density:Pl.optional(),preset:Ll.optional(),defaultMode:Hl.optional(),accentColor:B.z.string().optional(),accentColorDark:B.z.string().optional(),fontFamily:B.z.string().optional(),codeTheme:B.z.enum(["github","dracula","one-dark","synthwave"]).optional(),logo:B.z.object({light:B.z.string().optional(),dark:B.z.string().optional(),alt:B.z.string().optional(),text:B.z.string().optional()}).strict().optional(),favicon:B.z.string().optional()}).strict(),Zl=B.z.object({enabled:B.z.boolean().optional(),placeholder:B.z.string().optional(),maxResults:B.z.number().int().positive().max(100).optional()}).strict(),Xl=B.z.object({embedNestedDocs:B.z.boolean().optional()}).strict(),cn=B.z.object({$schema:B.z.string().url("Must be an absolute URL.").optional(),name:Qe.optional(),tagline:B.z.string().optional(),description:B.z.string().optional(),url:B.z.string().url("Must be an absolute URL.").optional(),version:B.z.string().optional(),rootDoc:Qe.optional(),home:Qe.optional(),source:Wl.optional(),theme:Vl.optional(),nav:B.z.array(Ys).optional(),socials:B.z.array(Gl).optional(),sidebar:B.z.array(Js).optional(),autoIndex:B.z.object({enabled:B.z.boolean().optional(),exclude:B.z.array(Qe).optional(),sort:B.z.enum(["alphabetical","frontmatter","natural"]).optional(),defaultCollapsed:B.z.boolean().optional()}).strict().optional(),search:Zl.optional(),offline:Xl.optional(),footer:B.z.object({copyright:B.z.string().optional(),links:B.z.array(Ys).optional(),showBuiltWith:B.z.boolean().optional()}).strict().optional(),componentsUrl:B.z.string().optional(),editUrl:B.z.string().optional()}).strict(),Ks=cn.extend({name:Qe})});function Ue(r={}){let e=ca(r),t=e.theme?.preset,n=e.theme?.family||(t?Jl[t]:jt.theme?.family),{preset:a,...s}=e.theme??{},i={...jt,...e,theme:{...jt.theme,...s,family:n,logo:{...jt.theme?.logo,...e.theme?.logo}},autoIndex:{...jt.autoIndex,...e.autoIndex},search:{...jt.search,...e.search},offline:{...jt.offline,...e.offline},footer:{...jt.footer,...e.footer}};return Ks.parse(i)}function Lt(r,e){try{return ca(JSON.parse(r))}catch(t){throw new Error(`${e}: ${t instanceof Error?t.message:String(t)}`)}}var Jl,jt,dn=Ze(()=>{"use strict";da();Jl={indigo:"atlas",emerald:"atlas",sunset:"editorial",violet:"atlas",rose:"editorial",slate:"blueprint",cyberpunk:"terminal"},jt={name:"DocMeDown",tagline:"The simplest Markdown documenter yet",description:"Instant documentation site powered by DocMeDown",version:"1.0.0",rootDoc:"README.md",theme:{family:"atlas",density:"comfortable",defaultMode:"auto",codeTheme:"github"},autoIndex:{enabled:!0,sort:"natural",defaultCollapsed:!1,exclude:["node_modules",".git",".dmd","dist","bin","package.json","tsconfig.json"]},search:{enabled:!0,placeholder:"Search documentation...",maxResults:10},offline:{embedNestedDocs:!0},footer:{copyright:`\xA9 ${new Date().getFullYear()} DocMeDown. All rights reserved.`,showBuiltWith:!0}}});function Mr(r){let e=r.replace(/\s+/g," ").trim();return typeof Buffer<"u"?`data:image/svg+xml;base64,${Buffer.from(e,"utf-8").toString("base64")}`:typeof btoa<"u"?`data:image/svg+xml;base64,${btoa(e)}`:`data:image/svg+xml;utf8,${encodeURIComponent(e)}`}function $r(r){return typeof r=="string"&&Kl.includes(r)}function Bt(r){if(!r||r==="data:,")return Ql;let e=r.trim();return $r(e)?Qs[e]:e}var Kl,Cr,Qs,Ql,Er=Ze(()=>{"use strict";Kl=["default","markdown","terminal","book","minimal"],Cr={default:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="dmd-fav-bg" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#4f46e5"/><stop offset="100%" stop-color="#7c3aed"/></linearGradient></defs><rect width="32" height="32" rx="7" fill="url(#dmd-fav-bg)"/><path d="M9 5h8.5l6.5 6.5V25a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Z" fill="#ffffff" fill-opacity="0.16" stroke="#ffffff" stroke-width="1.8" stroke-linejoin="round"/><path d="M17.5 5v5a1.5 1.5 0 0 0 1.5 1.5h5" stroke="#ffffff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" fill="none"/><path d="M16 12.5v9.5m-3.5-3.5 3.5 3.5 3.5-3.5" stroke="#ffffff" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>',markdown:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="dmd-fav-md" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#1e293b"/><stop offset="100%" stop-color="#0f172a"/></linearGradient></defs><rect width="32" height="32" rx="7" fill="url(#dmd-fav-md)" stroke="#38bdf8" stroke-width="1.2" stroke-opacity="0.35"/><path d="M6.5 21V11h3l3 4.5 3-4.5h3v10" fill="none" stroke="#f8fafc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M22.5 11v10m-3-3 3 3 3-3" fill="none" stroke="#38bdf8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',terminal:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="dmd-fav-term" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#0f172a"/><stop offset="100%" stop-color="#020617"/></linearGradient></defs><rect width="32" height="32" rx="7" fill="url(#dmd-fav-term)" stroke="#10b981" stroke-width="1.2" stroke-opacity="0.4"/><circle cx="8" cy="8" r="1.5" fill="#ef4444" opacity="0.85"/><circle cx="12.5" cy="8" r="1.5" fill="#f59e0b" opacity="0.85"/><circle cx="17" cy="8" r="1.5" fill="#10b981" opacity="0.85"/><path d="M8.5 15.5l5 4-5 4" fill="none" stroke="#10b981" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/><line x1="16.5" y1="23.5" x2="23.5" y2="23.5" stroke="#38bdf8" stroke-width="2.2" stroke-linecap="round"/></svg>',book:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="dmd-fav-book" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#2563eb"/><stop offset="100%" stop-color="#1d4ed8"/></linearGradient></defs><rect width="32" height="32" rx="7" fill="url(#dmd-fav-book)"/><path d="M16 11.5c-2.8-1.8-6.5-1.8-9.5 0v11c3-1.4 6.7-1.4 9.5 0m0-11c2.8-1.8 6.5-1.8 9.5 0v11c-3-1.4-6.7-1.4-9.5 0M16 11.5v11" fill="none" stroke="#ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 7.5v2.5" stroke="#93c5fd" stroke-width="2" stroke-linecap="round"/></svg>',minimal:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="dmd-fav-min-bg" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#18181b"/><stop offset="100%" stop-color="#09090b"/></linearGradient><linearGradient id="dmd-fav-min-accent" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#38bdf8"/><stop offset="100%" stop-color="#818cf8"/></linearGradient></defs><rect width="32" height="32" rx="7" fill="url(#dmd-fav-min-bg)" stroke="#27272a" stroke-width="1.2"/><polygon points="16,6 25,11.2 25,20.8 16,26 7,20.8 7,11.2" fill="none" stroke="url(#dmd-fav-min-accent)" stroke-width="2" stroke-linejoin="round"/><circle cx="16" cy="16" r="3.5" fill="url(#dmd-fav-min-accent)"/></svg>'};Qs={default:Mr(Cr.default),markdown:Mr(Cr.markdown),terminal:Mr(Cr.terminal),book:Mr(Cr.book),minimal:Mr(Cr.minimal)},Ql=Qs.default});function oc(r){return r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}function Dt(r){return r.startsWith("dmd-")?r:`dmd-${oc(r)}`}function pn(r,e){return/<svelte:options\b[^>]*customElement/i.test(r)?r:`<svelte:options customElement={{ tag: "${e}" }} />
5
- ${r}`}var hn=Ze(()=>{"use strict"});var Ai=_l((T1,bn)=>{"use strict";var Vc=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};var W=(function(r){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},a={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function g(y){return y instanceof s?new s(y.type,g(y.content),y.alias):Array.isArray(y)?y.map(g):y.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(g){return Object.prototype.toString.call(g).slice(8,-1)},objId:function(g){return g.__id||Object.defineProperty(g,"__id",{value:++t}),g.__id},clone:function g(y,x){x=x||{};var A,M;switch(a.util.type(y)){case"Object":if(M=a.util.objId(y),x[M])return x[M];A={},x[M]=A;for(var E in y)y.hasOwnProperty(E)&&(A[E]=g(y[E],x));return A;case"Array":return M=a.util.objId(y),x[M]?x[M]:(A=[],x[M]=A,y.forEach(function(T,D){A[D]=g(T,x)}),A);default:return y}},getLanguage:function(g){for(;g;){var y=e.exec(g.className);if(y)return y[1].toLowerCase();g=g.parentElement}return"none"},setLanguage:function(g,y){g.className=g.className.replace(RegExp(e,"gi"),""),g.classList.add("language-"+y)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(A){var g=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(A.stack)||[])[1];if(g){var y=document.getElementsByTagName("script");for(var x in y)if(y[x].src==g)return y[x]}return null}},isActive:function(g,y,x){for(var A="no-"+y;g;){var M=g.classList;if(M.contains(y))return!0;if(M.contains(A))return!1;g=g.parentElement}return!!x}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(g,y){var x=a.util.clone(a.languages[g]);for(var A in y)x[A]=y[A];return x},insertBefore:function(g,y,x,A){A=A||a.languages;var M=A[g],E={};for(var T in M)if(M.hasOwnProperty(T)){if(T==y)for(var D in x)x.hasOwnProperty(D)&&(E[D]=x[D]);x.hasOwnProperty(T)||(E[T]=M[T])}var $=A[g];return A[g]=E,a.languages.DFS(a.languages,function(z,O){O===$&&z!=g&&(this[z]=E)}),E},DFS:function g(y,x,A,M){M=M||{};var E=a.util.objId;for(var T in y)if(y.hasOwnProperty(T)){x.call(y,T,y[T],A||T);var D=y[T],$=a.util.type(D);$==="Object"&&!M[E(D)]?(M[E(D)]=!0,g(D,x,null,M)):$==="Array"&&!M[E(D)]&&(M[E(D)]=!0,g(D,x,T,M))}}},plugins:{},highlightAll:function(g,y){a.highlightAllUnder(document,g,y)},highlightAllUnder:function(g,y,x){var A={callback:x,container:g,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",A),A.elements=Array.prototype.slice.apply(A.container.querySelectorAll(A.selector)),a.hooks.run("before-all-elements-highlight",A);for(var M=0,E;E=A.elements[M++];)a.highlightElement(E,y===!0,A.callback)},highlightElement:function(g,y,x){var A=a.util.getLanguage(g),M=a.languages[A];a.util.setLanguage(g,A);var E=g.parentElement;E&&E.nodeName.toLowerCase()==="pre"&&a.util.setLanguage(E,A);var T=g.textContent,D={element:g,language:A,grammar:M,code:T};function $(O){D.highlightedCode=O,a.hooks.run("before-insert",D),D.element.innerHTML=D.highlightedCode,a.hooks.run("after-highlight",D),a.hooks.run("complete",D),x&&x.call(D.element)}if(a.hooks.run("before-sanity-check",D),E=D.element.parentElement,E&&E.nodeName.toLowerCase()==="pre"&&!E.hasAttribute("tabindex")&&E.setAttribute("tabindex","0"),!D.code){a.hooks.run("complete",D),x&&x.call(D.element);return}if(a.hooks.run("before-highlight",D),!D.grammar){$(a.util.encode(D.code));return}if(y&&r.Worker){var z=new Worker(a.filename);z.onmessage=function(O){$(O.data)},z.postMessage(JSON.stringify({language:D.language,code:D.code,immediateClose:!0}))}else $(a.highlight(D.code,D.grammar,D.language))},highlight:function(g,y,x){var A={code:g,grammar:y,language:x};if(a.hooks.run("before-tokenize",A),!A.grammar)throw new Error('The language "'+A.language+'" has no grammar.');return A.tokens=a.tokenize(A.code,A.grammar),a.hooks.run("after-tokenize",A),s.stringify(a.util.encode(A.tokens),A.language)},tokenize:function(g,y){var x=y.rest;if(x){for(var A in x)y[A]=x[A];delete y.rest}var M=new c;return m(M,M.head,g),o(g,M,y,M.head,0),h(M)},hooks:{all:{},add:function(g,y){var x=a.hooks.all;x[g]=x[g]||[],x[g].push(y)},run:function(g,y){var x=a.hooks.all[g];if(!(!x||!x.length))for(var A=0,M;M=x[A++];)M(y)}},Token:s};r.Prism=a;function s(g,y,x,A){this.type=g,this.content=y,this.alias=x,this.length=(A||"").length|0}s.stringify=function g(y,x){if(typeof y=="string")return y;if(Array.isArray(y)){var A="";return y.forEach(function($){A+=g($,x)}),A}var M={type:y.type,content:g(y.content,x),tag:"span",classes:["token",y.type],attributes:{},language:x},E=y.alias;E&&(Array.isArray(E)?Array.prototype.push.apply(M.classes,E):M.classes.push(E)),a.hooks.run("wrap",M);var T="";for(var D in M.attributes)T+=" "+D+'="'+(M.attributes[D]||"").replace(/"/g,"&quot;")+'"';return"<"+M.tag+' class="'+M.classes.join(" ")+'"'+T+">"+M.content+"</"+M.tag+">"};function i(g,y,x,A){g.lastIndex=y;var M=g.exec(x);if(M&&A&&M[1]){var E=M[1].length;M.index+=E,M[0]=M[0].slice(E)}return M}function o(g,y,x,A,M,E){for(var T in x)if(!(!x.hasOwnProperty(T)||!x[T])){var D=x[T];D=Array.isArray(D)?D:[D];for(var $=0;$<D.length;++$){if(E&&E.cause==T+","+$)return;var z=D[$],O=z.inside,U=!!z.lookbehind,L=!!z.greedy,X=z.alias;if(L&&!z.pattern.global){var V=z.pattern.toString().match(/[imsuy]*$/)[0];z.pattern=RegExp(z.pattern.source,V+"g")}for(var Z=z.pattern||z,G=A.next,te=M;G!==y.tail&&!(E&&te>=E.reach);te+=G.value.length,G=G.next){var oe=G.value;if(y.length>g.length)return;if(!(oe instanceof s)){var he=1,fe;if(L){if(fe=i(Z,te,g,U),!fe||fe.index>=g.length)break;var ge=fe.index,De=fe.index+fe[0].length,Te=te;for(Te+=G.value.length;ge>=Te;)G=G.next,Te+=G.value.length;if(Te-=G.value.length,te=Te,G.value instanceof s)continue;for(var ze=G;ze!==y.tail&&(Te<De||typeof ze.value=="string");ze=ze.next)he++,Te+=ze.value.length;he--,oe=g.slice(te,Te),fe.index-=te}else if(fe=i(Z,0,oe,U),!fe)continue;var ge=fe.index,Ie=fe[0],at=oe.slice(0,ge),At=oe.slice(ge+Ie.length),Ve=te+oe.length;E&&Ve>E.reach&&(E.reach=Ve);var st=G.prev;at&&(st=m(y,st,at),te+=at.length),u(y,st,he);var Nt=new s(T,O?a.tokenize(Ie,O):Ie,X,Ie);if(G=m(y,st,Nt),At&&m(y,G,At),he>1){var ur={cause:T+","+$,reach:Ve};o(g,y,x,G.prev,te,ur),E&&ur.reach>E.reach&&(E.reach=ur.reach)}}}}}}function c(){var g={value:null,prev:null,next:null},y={value:null,prev:g,next:null};g.next=y,this.head=g,this.tail=y,this.length=0}function m(g,y,x){var A=y.next,M={value:x,prev:y,next:A};return y.next=M,A.prev=M,g.length++,M}function u(g,y,x){for(var A=y.next,M=0;M<x&&A!==g.tail;M++)A=A.next;y.next=A,A.prev=y,g.length-=M}function h(g){for(var y=[],x=g.head.next;x!==g.tail;)y.push(x.value),x=x.next;return y}if(!r.document)return r.addEventListener&&(a.disableWorkerMessageHandler||r.addEventListener("message",function(g){var y=JSON.parse(g.data),x=y.language,A=y.code,M=y.immediateClose;r.postMessage(a.highlight(A,a.languages[x],x)),M&&r.close()},!1)),a;var f=a.util.currentScript();f&&(a.filename=f.src,f.hasAttribute("data-manual")&&(a.manual=!0));function b(){a.manual||a.highlightAll()}if(!a.manual){var w=document.readyState;w==="loading"||w==="interactive"&&f&&f.defer?document.addEventListener("DOMContentLoaded",b):window.requestAnimationFrame?window.requestAnimationFrame(b):window.setTimeout(b,16)}return a})(Vc);typeof bn<"u"&&bn.exports&&(bn.exports=W);typeof global<"u"&&(global.Prism=W);W.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};W.languages.markup.tag.inside["attr-value"].inside.entity=W.languages.markup.entity;W.languages.markup.doctype.inside["internal-subset"].inside=W.languages.markup;W.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&amp;/,"&"))});Object.defineProperty(W.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:W.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};a["language-"+t]={pattern:/[\s\S]+/,inside:W.languages[t]};var s={};s[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:a},W.languages.insertBefore("markup","cdata",s)}});Object.defineProperty(W.languages.markup.tag,"addAttribute",{value:function(r,e){W.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:W.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});W.languages.html=W.languages.markup;W.languages.mathml=W.languages.markup;W.languages.svg=W.languages.markup;W.languages.xml=W.languages.extend("markup",{});W.languages.ssml=W.languages.xml;W.languages.atom=W.languages.xml;W.languages.rss=W.languages.xml;(function(r){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var t=r.languages.markup;t&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))})(W);W.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};W.languages.javascript=W.languages.extend("clike",{"class-name":[W.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});W.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;W.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:W.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:W.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:W.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:W.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:W.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});W.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:W.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});W.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});W.languages.markup&&(W.languages.markup.tag.addInlined("script","javascript"),W.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));W.languages.js=W.languages.javascript;(function(){if(typeof W>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading\u2026",e=function(f,b){return"\u2716 Error "+f+" while fetching file: "+b},t="\u2716 Error: File does not exist or is empty",n={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},a="data-src-status",s="loading",i="loaded",o="failed",c="pre[data-src]:not(["+a+'="'+i+'"]):not(['+a+'="'+s+'"])';function m(f,b,w){var g=new XMLHttpRequest;g.open("GET",f,!0),g.onreadystatechange=function(){g.readyState==4&&(g.status<400&&g.responseText?b(g.responseText):g.status>=400?w(e(g.status,g.statusText)):w(t))},g.send(null)}function u(f){var b=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(f||"");if(b){var w=Number(b[1]),g=b[2],y=b[3];return g?y?[w,Number(y)]:[w,void 0]:[w,w]}}W.hooks.add("before-highlightall",function(f){f.selector+=", "+c}),W.hooks.add("before-sanity-check",function(f){var b=f.element;if(b.matches(c)){f.code="",b.setAttribute(a,s);var w=b.appendChild(document.createElement("CODE"));w.textContent=r;var g=b.getAttribute("data-src"),y=f.language;if(y==="none"){var x=(/\.(\w+)$/.exec(g)||[,"none"])[1];y=n[x]||x}W.util.setLanguage(w,y),W.util.setLanguage(b,y);var A=W.plugins.autoloader;A&&A.loadLanguages(y),m(g,function(M){b.setAttribute(a,i);var E=u(b.getAttribute("data-range"));if(E){var T=M.split(/\r\n?|\n/g),D=E[0],$=E[1]==null?T.length:E[1];D<0&&(D+=T.length),D=Math.max(0,Math.min(D-1,T.length)),$<0&&($+=T.length),$=Math.max(0,Math.min($,T.length)),M=T.slice(D,$).join(`
6
- `),b.hasAttribute("data-start")||b.setAttribute("data-start",String(D+1))}w.textContent=M,W.highlightElement(w)},function(M){b.setAttribute(a,o),w.textContent=M})}}),W.plugins.fileHighlight={highlight:function(b){for(var w=(b||document).querySelectorAll(c),g=0,y;y=w[g++];)W.highlightElement(y)}};var h=!1;W.fileHighlight=function(){h||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),h=!0),W.plugins.fileHighlight.highlight.apply(this,arguments)}})()});function qi(r){return Number.isInteger(r)&&r>0&&r<=1114111?String.fromCodePoint(r):""}function xd(r){return r.replace(/&#x([0-9a-f]+);/gi,(e,t)=>qi(parseInt(t,16))).replace(/&#([0-9]+);/g,(e,t)=>qi(Number(t))).replace(/&([a-z][a-z0-9]*);/gi,(e,t)=>wd[t.toLowerCase()]??e)}function An(r){return xd(r.replace(kd,"$1").replace(Sd,"$1").replace(Ad,"$1").replace(Dd,"$1").replace(Td,"$1").replace(Cd,"$1").replace(Md,"$1")).replace(/\s+/g," ").trim()}var wd,kd,Sd,Ad,Dd,Td,Cd,Md,$a=Ze(()=>{"use strict";wd={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ",copy:"\xA9",reg:"\xAE",trade:"\u2122",middot:"\xB7",hellip:"\u2026",mdash:"\u2014",ndash:"\u2013",bull:"\u2022",deg:"\xB0",times:"\xD7",plusmn:"\xB1",laquo:"\xAB",raquo:"\xBB",sect:"\xA7",para:"\xB6"};kd=/!\[([^\]]*)\]\([^)]*\)/g,Sd=/\[([^\]]+)\]\([^)]*\)/g,Ad=/`([^`]+)`/g,Dd=/\*\*([^*\n]+)\*\*/g,Td=/__([^_\n]+)__/g,Cd=/\*([^*\n]+)\*/g,Md=/~~([^~\n]+)~~/g});function Id(r){if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}function _d(r){if(r.default!==void 0)return r.default;var e=Array.isArray(r.type)?r.type[0]:r.type;return Id(e)}function Nd(r,e,t,n){var a=t[e];r[e]=a!==void 0?n.processor?n.processor(a):a:_d(n)}function Ud(r){for(var e=0;e<Ga.length;e++)for(var t=Ga[e],n=0;n<t.blocks.length;n++){var a=t.blocks[n];if(r>=a[0]&&r<=a[1])return t.name}return null}function D0(r){for(var e=0;e<_n.length;e+=2)if(r>=_n[e]&&r<=_n[e+1])return!0;return!1}function tu(r){return"toText"in r}function su(r){if(r instanceof Pe)return r;throw new Error("Expected symbolNode but got "+String(r)+".")}function iu(r){if(r instanceof Wt)return r;throw new Error("Expected span<HtmlDomNode> but got "+String(r)+".")}function lu(r,e){ft[r]=e}function ps(r,e,t){if(!ft[e])throw new Error("Font metrics not found for font: "+e+".");var n=r.charCodeAt(0),a=ft[e][n];if(!a&&r[0]in Gi&&(n=Gi[r[0]].charCodeAt(0),a=ft[e][n]),!a&&t==="text"&&D0(n)&&(a=ft[e][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}function cu(r){var e;if(r>=5?e=0:r>=3?e=1:e=2,!Ea[e]){var t=Ea[e]={cssEmPerMu:Dn.quad[e]/18};for(var n in Dn)Dn.hasOwnProperty(n)&&(t[n]=Dn[n][e])}return Ea[e]}function l(r,e,t,n,a,s){ve[r][a]={font:e,group:t,replace:n},s&&n&&(ve[r][n]=ve[r][a])}function P(r){for(var{type:e,names:t,props:n,handler:a,htmlBuilder:s,mathmlBuilder:i}=r,o={type:e,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:a},c=0;c<t.length;++c)I0[t[c]]=o;e&&(s&&(Ln[e]=s),i&&(Bn[e]=i))}function or(r){var{type:e,htmlBuilder:t,mathmlBuilder:n}=r;P({type:e,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:t,mathmlBuilder:n})}function Rn(r,e){var t=I(["base"],r,e),n=I(["strut"]);return n.style.height=j(t.height+t.depth),t.depth&&(n.style.verticalAlign=j(-t.depth)),t.children.unshift(n),t}function ns(r,e){var t=null;r.length===1&&r[0].type==="tag"&&(t=r[0].tag,r=r[0].body);var n=Ee(r,e,"root"),a;n.length===2&&n[1].hasClass("tag")&&(a=n.pop());for(var s=[],i=[],o=0;o<n.length;o++)if(i.push(n[o]),n[o].hasClass("mbin")||n[o].hasClass("mrel")||n[o].hasClass("allowbreak")){for(var c=!1;o<n.length-1&&n[o+1].hasClass("mspace")&&!n[o+1].hasClass("newline");)o++,i.push(n[o]),n[o].hasClass("nobreak")&&(c=!0);c||(s.push(Rn(i,e)),i=[])}else n[o].hasClass("newline")&&(i.pop(),i.length>0&&(s.push(Rn(i,e)),i=[]),s.push(n[o]));i.length>0&&s.push(Rn(i,e));var m;t?(m=Rn(Ee(t,e,!0),e),m.classes=["tag"],s.push(m)):a&&s.push(a);var u=I(["katex-html"],s);if(u.setAttribute("aria-hidden","true"),m){var h=m.children[0];h.style.height=j(u.height+u.depth),u.depth&&(h.style.verticalAlign=j(-u.depth))}return u}function N0(r){return new Ut(r)}function Fa(r){if(!r)return!1;if(r.type==="mi"&&r.children.length===1){var e=r.children[0];return e instanceof Se&&e.text==="."}else if(r.type==="mo"&&r.children.length===1&&r.getAttribute("separator")==="true"&&r.getAttribute("lspace")==="0em"&&r.getAttribute("rspace")==="0em"){var t=r.children[0];return t instanceof Se&&t.text===","}else return!1}function t0(r,e,t,n,a){var s=Ke(r,t),i;s.length===1&&s[0]instanceof _&&Au.has(s[0].type)?i=s[0]:i=new _("mrow",s);var o=new _("annotation",[new Se(e)]);o.setAttribute("encoding","application/x-tex");var c=new _("semantics",[i,o]),m=new _("math",[c]);m.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&m.setAttribute("display","block");var u=a?"katex":"katex-mathml";return I([u],[m])}function Iu(r){return r in Fu}function re(r,e){if(!r||r.type!==e)throw new Error("Expected node of type "+e+", but got "+(r?"node of type "+r.type:String(r)));return r}function Yn(r){var e=Jn(r);if(!e)throw new Error("Expected node of symbol group type, but got "+(r?"node of type "+r.type:String(r)));return e}function Jn(r){return r&&(r.type==="atom"||Ou.hasOwnProperty(r.type))?r:null}function H0(r,e){var t=Ee(r.body,e,!0);return I([r.mclass],t,e)}function q0(r,e){var t,n=Ke(r.body,e);return r.mclass==="minner"?t=new _("mpadded",n):r.mclass==="mord"?r.isCharacterBox?(t=n[0],t.type="mi"):t=new _("mi",n):(r.isCharacterBox?(t=n[0],t.type="mo"):t=new _("mo",n),r.mclass==="mbin"?(t.attributes.lspace="0.22em",t.attributes.rspace="0.22em"):r.mclass==="mpunct"?(t.attributes.lspace="0em",t.attributes.rspace="0.17em"):r.mclass==="mopen"||r.mclass==="mclose"?(t.attributes.lspace="0em",t.attributes.rspace="0em"):r.mclass==="minner"&&(t.attributes.lspace="0.0556em",t.attributes.width="+0.1111em")),t}function Lu(r,e,t){var n=Nu[r];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return t.callFunction(n,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var a=t.callFunction("\\\\cdleft",[e[0]],[]),s={type:"atom",text:n,mode:"math",family:"rel"},i=t.callFunction("\\Big",[s],[]),o=t.callFunction("\\\\cdright",[e[1]],[]),c={type:"ordgroup",mode:"math",body:[a,i,o]};return t.callFunction("\\\\cdparent",[c],[])}case"\\\\cdlongequal":return t.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var m={type:"textord",text:"\\Vert",mode:"math"};return t.callFunction("\\Big",[m],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Bu(r){var e=[];for(r.gullet.beginGroup(),r.gullet.macros.set("\\cr","\\\\\\relax"),r.gullet.beginGroup();;){e.push(r.parseExpression(!1,"\\\\")),r.gullet.endGroup(),r.gullet.beginGroup();var t=r.fetch().text;if(t==="&"||t==="\\\\")r.consume();else if(t==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new N("Expected \\\\ or \\cr or \\end",r.nextToken)}for(var n=[],a=[n],s=0;s<e.length;s++){for(var i=e[s],o=a0(),c=0;c<i.length;c++)if(!s0(i[c]))o.body.push(i[c]);else{n.push(o),c+=1;var m=Yn(i[c]).text,u=new Array(2);if(u[0]={type:"ordgroup",mode:"math",body:[]},u[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(m))if("<>AV".includes(m))for(var h=0;h<2;h++){for(var f=!0,b=c+1;b<i.length;b++){if(ju(i[b],m)){f=!1,c=b;break}if(s0(i[b]))throw new N("Missing a "+m+" character to complete a CD arrow.",i[b]);u[h].body.push(i[b])}if(f)throw new N("Missing a "+m+" character to complete a CD arrow.",i[c])}else throw new N('Expected one of "<>AV=|." after @',i[c]);var w=Lu(m,u,r),g={type:"styling",body:[w],mode:"math",style:"display",resetFont:!0};n.push(g),o=a0()}s%2===0?n.push(o):n.shift(),n=[],a.push(n)}r.gullet.endGroup(),r.gullet.endGroup();var y=new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:y,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}function o0(r){return"isMiddle"in r}function Qn(r,e){var t=Jn(r);if(t&&Ju.has(t.text))return t;throw t?new N("Invalid delimiter '"+t.text+"' after '"+e.funcName+"'",r):new N("Invalid delimiter type '"+r.type+"'",r)}function l0(r){if(!r.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}function vt(r){for(var{type:e,names:t,props:n,handler:a,htmlBuilder:s,mathmlBuilder:i}=r,o={type:e,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},c=0;c<t.length;++c)ro[t[c]]=o;s&&(Ln[e]=s),i&&(Bn[e]=i)}function v(r,e){no[r]=e}function c0(r){var e=[];r.consumeSpaces();var t=r.fetch().text;for(t==="\\relax"&&(r.consume(),r.consumeSpaces(),t=r.fetch().text);t==="\\hline"||t==="\\hdashline";)r.consume(),e.push(t==="\\hdashline"),r.consumeSpaces(),t=r.fetch().text;return e}function ws(r){if(!r.includes("ed"))return!r.includes("*")}function Xt(r,e,t){var{hskipBeforeAndAfter:n,addJot:a,cols:s,arraystretch:i,colSeparationType:o,autoTag:c,singleRow:m,emptySingleRow:u,maxNumCols:h,leqno:f}=e;if(r.gullet.beginGroup(),m||r.gullet.macros.set("\\cr","\\\\\\relax"),!i){var b=r.gullet.expandMacroAsText("\\arraystretch");if(b==null)i=1;else if(i=parseFloat(b),!i||i<0)throw new N("Invalid \\arraystretch: "+b)}r.gullet.beginGroup();var w=[],g=[w],y=[],x=[],A=c!=null?[]:void 0;function M(){c&&r.gullet.macros.set("\\@eqnsw","1",!0)}function E(){A&&(r.gullet.macros.get("\\df@tag")?(A.push(r.subparse([new Ye("\\df@tag")])),r.gullet.macros.set("\\df@tag",void 0,!0)):A.push(!!c&&r.gullet.macros.get("\\@eqnsw")==="1"))}for(M(),x.push(c0(r));;){var T=r.parseExpression(!1,m?"\\end":"\\\\");r.gullet.endGroup(),r.gullet.beginGroup();var D={type:"ordgroup",mode:r.mode,body:T};t&&(D={type:"styling",mode:r.mode,style:t,resetFont:!0,body:[D]}),w.push(D);var $=r.fetch().text;if($==="&"){if(h&&w.length===h){if(m||o)throw new N("Too many tab characters: &",r.nextToken);r.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}r.consume()}else if($==="\\end"){E(),w.length===1&&D.type==="styling"&&D.body.length===1&&D.body[0].type==="ordgroup"&&D.body[0].body.length===0&&(g.length>1||!u)&&g.pop(),x.length<g.length+1&&x.push([]);break}else if($==="\\\\"){r.consume();var z=void 0;r.gullet.future().text!==" "&&(z=r.parseSizeGroup(!0)),y.push(z?z.value:null),E(),x.push(c0(r)),w=[],g.push(w),M()}else throw new N("Expected & or \\\\ or \\cr or \\end",r.nextToken)}return r.gullet.endGroup(),r.gullet.endGroup(),{type:"array",mode:r.mode,addJot:a,arraystretch:i,body:g,cols:s,rowGaps:y,hskipBeforeAndAfter:n,hLinesBeforeRow:x,colSeparationType:o,tags:A,leqno:f}}function xs(r){return r.slice(0,1)==="d"?"display":"text"}function po(r,e,t){for(var n=Ee(r,e,!1),a=e.sizeMultiplier/t.sizeMultiplier,s=0;s<n.length;s++){var i=n[s].classes.indexOf("sizing");i<0?Array.prototype.push.apply(n[s].classes,e.sizingClasses(t)):n[s].classes[i+1]==="reset-size"+e.size&&(n[s].classes[i+1]="reset-size"+t.size),n[s].height*=a,n[s].depth*=a}return zt(n)}function om(r){return r in os}var N,$d,Ed,Rd,zd,Ne,In,Fd,Et,Od,Ua,Hr,pt,us,Nn,br,$t,qr,et,yr,Be,ht,jd,Ld,Bd,Pd,Hd,qd,Q,Ga,_n,$e,vr,Gd,Wd,Vd,Zd,Xd,Yd,Jd,Kd,Qd,Ui,eu,Ut,Wa,ru,T0,ke,j,Gt,ms,C0,M0,nu,$0,Wt,wr,Va,au,Pe,lt,gt,Ur,ou,ft,Dn,Gi,Ea,ve,d,R,p,k,be,q,He,Sr,Y,Me,Je,Wr,S,Rt,C,E0,Wi,Ra,Tn,Vi,za,Cn,jn,jr,Mn,K,we,_e,Ct,Ht,Za,Lr,$n,Xa,Zi,Xi,du,ir,Yi,Ji,Ki,Ya,Ja,Qi,Ka,e0,uu,mu,Wn,Le,hs,pu,Vn,hu,R0,fs,I,Vt,xr,fu,zt,kr,gu,le,z0,En,Qa,F0,O0,xe,sr,Mt,vu,bu,I0,Ln,Bn,Pn,Ce,yu,wu,xu,ku,Ee,es,_0,ts,rs,Gr,ce,_,Se,Hn,Su,Au,tt,gs,Du,vs,Ke,Zt,me,Tu,r0,n0,qn,j0,L0,Cu,Mu,$u,Zn,Eu,Ru,Xn,zu,Fu,Ou,B0,bs,P0,_u,zn,Kn,Nu,a0,s0,ju,U0,G0,as,W0,Pu,V0,Br,ys,Z0,Hu,qu,X0,Oa,Ia,ss,Fn,Uu,Gu,Y0,_a,Na,ja,Wu,J0,Vu,K0,Pr,Q0,Zu,Xu,eo,Yu,to,is,La,i0,Ju,ea,ta,ro,no,Ge,Ye,ra,Ku,bt,Qu,yt,ao,d0,so,io,u0,em,tm,oo,m0,p0,lo,rm,Ba,h0,co,uo,Ar,Vr,nm,am,mo,sm,f0,im,os,lm,ho,Pa,Ha,g0,v0,b0,cm,y0,w0,qt,fo,dm,um,mm,pm,ls,hm,fm,Un,cs,gm,x0,ks,k0,vm,Ss,go,vo,bo,ds,S0,On,qa,A0,Gn,As,yo,bm,ym,wo,Ds,wm,xm,km,Ts,xo=Ze(()=>{"use strict";N=class r extends Error{constructor(e,t){var n="KaTeX parse error: "+e,a,s,i=t&&t.loc;if(i&&i.start<=i.end){var o=i.lexer.input;a=i.start,s=i.end,a===o.length?n+=" at end of input: ":n+=" at position "+(a+1)+": ";var c=o.slice(a,s).replace(/[^]/g,"$&\u0332"),m;a>15?m="\u2026"+o.slice(a-15,a):m=o.slice(0,a);var u;s+15<o.length?u=o.slice(s,s+15)+"\u2026":u=o.slice(s),n+=m+c+u}super(n),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,r.prototype),this.position=a,a!=null&&s!=null&&(this.length=s-a),this.rawMessage=e}},$d=/([A-Z])/g,Ed=r=>r.replace($d,"-$1").toLowerCase(),Rd={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},zd=/[&><"']/g,Ne=r=>String(r).replace(zd,e=>Rd[e]),In=r=>r.type==="ordgroup"||r.type==="color"?r.body.length===1?In(r.body[0]):r:r.type==="font"?In(r.body):r,Fd=new Set(["mathord","textord","atom"]),Et=r=>Fd.has(In(r).type),Od=r=>{var e=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(r);return e?e[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?null:e[1].toLowerCase():"_relative"},Ua={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:r=>"#"+r},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(r,e)=>(e.push(r),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:r=>Math.max(0,r),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:r=>Math.max(0,r),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:r=>Math.max(0,r),cli:"-e, --max-expand <n>",cliProcessor:r=>r==="Infinity"?1/0:parseInt(r)},globalGroup:{type:"boolean",cli:!1}};Hr=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var t of Object.keys(Ua)){var n=Ua[t];n&&Nd(this,t,e,n)}}reportNonstrict(e,t,n){var a=this.strict;if(typeof a=="function"&&(a=a(e,t,n)),!(!a||a==="ignore")){if(a===!0||a==="error")throw new N("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" ["+e+"]"),n);a==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+t+" ["+e+"]"))}}useStrictBehavior(e,t,n){var a=this.strict;if(typeof a=="function")try{a=a(e,t,n)}catch{a="error"}return!a||a==="ignore"?!1:a===!0||a==="error"?!0:a==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+t+" ["+e+"]")),!1)}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var t=Od(e.url);if(t==null)return!1;e.protocol=t}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}},pt=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return ht[jd[this.id]]}sub(){return ht[Ld[this.id]]}fracNum(){return ht[Bd[this.id]]}fracDen(){return ht[Pd[this.id]]}cramp(){return ht[Hd[this.id]]}text(){return ht[qd[this.id]]}isTight(){return this.size>=2}},us=0,Nn=1,br=2,$t=3,qr=4,et=5,yr=6,Be=7,ht=[new pt(us,0,!1),new pt(Nn,0,!0),new pt(br,1,!1),new pt($t,1,!0),new pt(qr,2,!1),new pt(et,2,!0),new pt(yr,3,!1),new pt(Be,3,!0)],jd=[qr,et,qr,et,yr,Be,yr,Be],Ld=[et,et,et,et,Be,Be,Be,Be],Bd=[br,$t,qr,et,yr,Be,yr,Be],Pd=[$t,$t,et,et,Be,Be,Be,Be],Hd=[Nn,Nn,$t,$t,et,et,Be,Be],qd=[us,Nn,br,$t,br,$t,br,$t],Q={DISPLAY:ht[us],TEXT:ht[br],SCRIPT:ht[qr],SCRIPTSCRIPT:ht[yr]},Ga=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];_n=[];Ga.forEach(r=>r.blocks.forEach(e=>_n.push(...e)));$e=r=>r+" "+r,vr=80,Gd=function(e,t){return"M95,"+(622+e+t)+`
4
+ ${Xl(e.error)}`)}var B,Qe,jl,Ll,Bl,Pl,Hl,ql,Ys,Ul,Gl,Js,Wl,Vl,Zl,cn,Ks,da=Ze(()=>{"use strict";B=require("zod"),Qe=B.z.string().trim().min(1,"Must not be empty."),jl=B.z.enum(["indigo","emerald","sunset","violet","rose","slate","cyberpunk"]),Ll=B.z.enum(["atlas","blueprint","terminal","editorial"]),Bl=B.z.enum(["comfortable","compact"]),Pl=B.z.enum(["light","dark","auto"]),Hl=B.z.enum(["github","gitlab","twitter","x","discord","custom"]),ql=B.z.enum(["info","success","warning","new"]),Ys=B.z.object({label:Qe,href:Qe,external:B.z.boolean().optional(),icon:B.z.string().optional()}).strict(),Ul=B.z.object({type:Hl,url:B.z.string().url("Must be an absolute URL."),label:B.z.string().optional(),icon:B.z.string().optional()}).strict(),Gl=B.z.discriminatedUnion("type",[B.z.object({type:B.z.literal("github"),repo:Qe.regex(/^[^/\s]+\/[^/\s]+$/,"Use the owner/repository format."),branch:Qe.optional(),docsDir:B.z.string().optional(),token:B.z.string().optional(),baseUrl:B.z.string().url("Must be an absolute URL.").optional()}).strict(),B.z.object({type:B.z.literal("gitlab"),repo:Qe.regex(/^[^/\s]+\/[^/\s]+$/,"Use the namespace/repository format."),branch:Qe.optional(),docsDir:B.z.string().optional(),token:B.z.string().optional(),baseUrl:B.z.string().url("Must be an absolute URL.").optional()}).strict(),B.z.object({type:B.z.literal("raw"),baseUrl:B.z.string().url("Must be an absolute URL."),branch:Qe.optional(),docsDir:B.z.string().optional(),token:B.z.string().optional()}).strict()]),Js=B.z.lazy(()=>B.z.object({title:B.z.string().optional(),path:B.z.string().optional(),slug:B.z.string().optional(),icon:B.z.string().optional(),badge:B.z.string().optional(),badgeType:ql.optional(),collapsed:B.z.boolean().optional(),children:B.z.array(Js).optional()}).strict()),Wl=B.z.object({family:Ll.optional(),density:Bl.optional(),preset:jl.optional(),defaultMode:Pl.optional(),accentColor:B.z.string().optional(),accentColorDark:B.z.string().optional(),fontFamily:B.z.string().optional(),codeTheme:B.z.enum(["github","dracula","one-dark","synthwave"]).optional(),logo:B.z.object({light:B.z.string().optional(),dark:B.z.string().optional(),alt:B.z.string().optional(),text:B.z.string().optional()}).strict().optional(),favicon:B.z.string().optional()}).strict(),Vl=B.z.object({enabled:B.z.boolean().optional(),placeholder:B.z.string().optional(),maxResults:B.z.number().int().positive().max(100).optional()}).strict(),Zl=B.z.object({embedNestedDocs:B.z.boolean().optional()}).strict(),cn=B.z.object({$schema:B.z.string().url("Must be an absolute URL.").optional(),name:Qe.optional(),tagline:B.z.string().optional(),description:B.z.string().optional(),url:B.z.string().url("Must be an absolute URL.").optional(),version:B.z.string().optional(),rootDoc:Qe.optional(),home:Qe.optional(),source:Gl.optional(),theme:Wl.optional(),nav:B.z.array(Ys).optional(),socials:B.z.array(Ul).optional(),sidebar:B.z.array(Js).optional(),autoIndex:B.z.object({enabled:B.z.boolean().optional(),exclude:B.z.array(Qe).optional(),sort:B.z.enum(["alphabetical","frontmatter","natural"]).optional(),defaultCollapsed:B.z.boolean().optional()}).strict().optional(),search:Vl.optional(),offline:Zl.optional(),footer:B.z.object({copyright:B.z.string().optional(),links:B.z.array(Ys).optional(),showBuiltWith:B.z.boolean().optional()}).strict().optional(),componentsUrl:B.z.string().optional(),editUrl:B.z.string().optional()}).strict(),Ks=cn.extend({name:Qe})});function Ue(r={}){let e=ca(r),t=e.theme?.preset,n=e.theme?.family||(t?Yl[t]:jt.theme?.family),{preset:a,...s}=e.theme??{},i={...jt,...e,theme:{...jt.theme,...s,family:n,logo:{...jt.theme?.logo,...e.theme?.logo}},autoIndex:{...jt.autoIndex,...e.autoIndex},search:{...jt.search,...e.search},offline:{...jt.offline,...e.offline},footer:{...jt.footer,...e.footer}};return Ks.parse(i)}function Lt(r,e){try{return ca(JSON.parse(r))}catch(t){throw new Error(`${e}: ${t instanceof Error?t.message:String(t)}`)}}var Yl,jt,dn=Ze(()=>{"use strict";da();Yl={indigo:"atlas",emerald:"atlas",sunset:"editorial",violet:"atlas",rose:"editorial",slate:"blueprint",cyberpunk:"terminal"},jt={name:"DocMeDown",tagline:"The simplest Markdown documenter yet",description:"Instant documentation site powered by DocMeDown",version:"1.0.0",rootDoc:"README.md",theme:{family:"atlas",density:"comfortable",defaultMode:"auto",codeTheme:"github"},autoIndex:{enabled:!0,sort:"natural",defaultCollapsed:!1,exclude:["node_modules",".git",".dmd","dist","bin","package.json","tsconfig.json"]},search:{enabled:!0,placeholder:"Search documentation...",maxResults:10},offline:{embedNestedDocs:!0},footer:{copyright:`\xA9 ${new Date().getFullYear()} DocMeDown. All rights reserved.`,showBuiltWith:!0}}});function Mr(r){let e=r.replace(/\s+/g," ").trim();return typeof Buffer<"u"?`data:image/svg+xml;base64,${Buffer.from(e,"utf-8").toString("base64")}`:typeof btoa<"u"?`data:image/svg+xml;base64,${btoa(e)}`:`data:image/svg+xml;utf8,${encodeURIComponent(e)}`}function $r(r){return typeof r=="string"&&Jl.includes(r)}function Bt(r){if(!r||r==="data:,")return Kl;let e=r.trim();return $r(e)?Qs[e]:e}var Jl,Cr,Qs,Kl,Er=Ze(()=>{"use strict";Jl=["default","markdown","terminal","book","minimal"],Cr={default:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="dmd-fav-bg" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#4f46e5"/><stop offset="100%" stop-color="#7c3aed"/></linearGradient></defs><rect width="32" height="32" rx="7" fill="url(#dmd-fav-bg)"/><path d="M9 5h8.5l6.5 6.5V25a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Z" fill="#ffffff" fill-opacity="0.16" stroke="#ffffff" stroke-width="1.8" stroke-linejoin="round"/><path d="M17.5 5v5a1.5 1.5 0 0 0 1.5 1.5h5" stroke="#ffffff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" fill="none"/><path d="M16 12.5v9.5m-3.5-3.5 3.5 3.5 3.5-3.5" stroke="#ffffff" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>',markdown:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="dmd-fav-md" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#1e293b"/><stop offset="100%" stop-color="#0f172a"/></linearGradient></defs><rect width="32" height="32" rx="7" fill="url(#dmd-fav-md)" stroke="#38bdf8" stroke-width="1.2" stroke-opacity="0.35"/><path d="M6.5 21V11h3l3 4.5 3-4.5h3v10" fill="none" stroke="#f8fafc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M22.5 11v10m-3-3 3 3 3-3" fill="none" stroke="#38bdf8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',terminal:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="dmd-fav-term" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#0f172a"/><stop offset="100%" stop-color="#020617"/></linearGradient></defs><rect width="32" height="32" rx="7" fill="url(#dmd-fav-term)" stroke="#10b981" stroke-width="1.2" stroke-opacity="0.4"/><circle cx="8" cy="8" r="1.5" fill="#ef4444" opacity="0.85"/><circle cx="12.5" cy="8" r="1.5" fill="#f59e0b" opacity="0.85"/><circle cx="17" cy="8" r="1.5" fill="#10b981" opacity="0.85"/><path d="M8.5 15.5l5 4-5 4" fill="none" stroke="#10b981" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/><line x1="16.5" y1="23.5" x2="23.5" y2="23.5" stroke="#38bdf8" stroke-width="2.2" stroke-linecap="round"/></svg>',book:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="dmd-fav-book" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#2563eb"/><stop offset="100%" stop-color="#1d4ed8"/></linearGradient></defs><rect width="32" height="32" rx="7" fill="url(#dmd-fav-book)"/><path d="M16 11.5c-2.8-1.8-6.5-1.8-9.5 0v11c3-1.4 6.7-1.4 9.5 0m0-11c2.8-1.8 6.5-1.8 9.5 0v11c-3-1.4-6.7-1.4-9.5 0M16 11.5v11" fill="none" stroke="#ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 7.5v2.5" stroke="#93c5fd" stroke-width="2" stroke-linecap="round"/></svg>',minimal:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="dmd-fav-min-bg" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#18181b"/><stop offset="100%" stop-color="#09090b"/></linearGradient><linearGradient id="dmd-fav-min-accent" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#38bdf8"/><stop offset="100%" stop-color="#818cf8"/></linearGradient></defs><rect width="32" height="32" rx="7" fill="url(#dmd-fav-min-bg)" stroke="#27272a" stroke-width="1.2"/><polygon points="16,6 25,11.2 25,20.8 16,26 7,20.8 7,11.2" fill="none" stroke="url(#dmd-fav-min-accent)" stroke-width="2" stroke-linejoin="round"/><circle cx="16" cy="16" r="3.5" fill="url(#dmd-fav-min-accent)"/></svg>'};Qs={default:Mr(Cr.default),markdown:Mr(Cr.markdown),terminal:Mr(Cr.terminal),book:Mr(Cr.book),minimal:Mr(Cr.minimal)},Kl=Qs.default});function ic(r){return r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}function Dt(r){return r.startsWith("dmd-")?r:`dmd-${ic(r)}`}function pn(r,e){return/<svelte:options\b[^>]*customElement/i.test(r)?r:`<svelte:options customElement={{ tag: "${e}" }} />
5
+ ${r}`}var hn=Ze(()=>{"use strict"});var Ai=Il((T1,bn)=>{"use strict";var Wc=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};var W=(function(r){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},a={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function g(y){return y instanceof s?new s(y.type,g(y.content),y.alias):Array.isArray(y)?y.map(g):y.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(g){return Object.prototype.toString.call(g).slice(8,-1)},objId:function(g){return g.__id||Object.defineProperty(g,"__id",{value:++t}),g.__id},clone:function g(y,x){x=x||{};var A,M;switch(a.util.type(y)){case"Object":if(M=a.util.objId(y),x[M])return x[M];A={},x[M]=A;for(var E in y)y.hasOwnProperty(E)&&(A[E]=g(y[E],x));return A;case"Array":return M=a.util.objId(y),x[M]?x[M]:(A=[],x[M]=A,y.forEach(function(T,D){A[D]=g(T,x)}),A);default:return y}},getLanguage:function(g){for(;g;){var y=e.exec(g.className);if(y)return y[1].toLowerCase();g=g.parentElement}return"none"},setLanguage:function(g,y){g.className=g.className.replace(RegExp(e,"gi"),""),g.classList.add("language-"+y)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(A){var g=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(A.stack)||[])[1];if(g){var y=document.getElementsByTagName("script");for(var x in y)if(y[x].src==g)return y[x]}return null}},isActive:function(g,y,x){for(var A="no-"+y;g;){var M=g.classList;if(M.contains(y))return!0;if(M.contains(A))return!1;g=g.parentElement}return!!x}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(g,y){var x=a.util.clone(a.languages[g]);for(var A in y)x[A]=y[A];return x},insertBefore:function(g,y,x,A){A=A||a.languages;var M=A[g],E={};for(var T in M)if(M.hasOwnProperty(T)){if(T==y)for(var D in x)x.hasOwnProperty(D)&&(E[D]=x[D]);x.hasOwnProperty(T)||(E[T]=M[T])}var $=A[g];return A[g]=E,a.languages.DFS(a.languages,function(z,O){O===$&&z!=g&&(this[z]=E)}),E},DFS:function g(y,x,A,M){M=M||{};var E=a.util.objId;for(var T in y)if(y.hasOwnProperty(T)){x.call(y,T,y[T],A||T);var D=y[T],$=a.util.type(D);$==="Object"&&!M[E(D)]?(M[E(D)]=!0,g(D,x,null,M)):$==="Array"&&!M[E(D)]&&(M[E(D)]=!0,g(D,x,T,M))}}},plugins:{},highlightAll:function(g,y){a.highlightAllUnder(document,g,y)},highlightAllUnder:function(g,y,x){var A={callback:x,container:g,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",A),A.elements=Array.prototype.slice.apply(A.container.querySelectorAll(A.selector)),a.hooks.run("before-all-elements-highlight",A);for(var M=0,E;E=A.elements[M++];)a.highlightElement(E,y===!0,A.callback)},highlightElement:function(g,y,x){var A=a.util.getLanguage(g),M=a.languages[A];a.util.setLanguage(g,A);var E=g.parentElement;E&&E.nodeName.toLowerCase()==="pre"&&a.util.setLanguage(E,A);var T=g.textContent,D={element:g,language:A,grammar:M,code:T};function $(O){D.highlightedCode=O,a.hooks.run("before-insert",D),D.element.innerHTML=D.highlightedCode,a.hooks.run("after-highlight",D),a.hooks.run("complete",D),x&&x.call(D.element)}if(a.hooks.run("before-sanity-check",D),E=D.element.parentElement,E&&E.nodeName.toLowerCase()==="pre"&&!E.hasAttribute("tabindex")&&E.setAttribute("tabindex","0"),!D.code){a.hooks.run("complete",D),x&&x.call(D.element);return}if(a.hooks.run("before-highlight",D),!D.grammar){$(a.util.encode(D.code));return}if(y&&r.Worker){var z=new Worker(a.filename);z.onmessage=function(O){$(O.data)},z.postMessage(JSON.stringify({language:D.language,code:D.code,immediateClose:!0}))}else $(a.highlight(D.code,D.grammar,D.language))},highlight:function(g,y,x){var A={code:g,grammar:y,language:x};if(a.hooks.run("before-tokenize",A),!A.grammar)throw new Error('The language "'+A.language+'" has no grammar.');return A.tokens=a.tokenize(A.code,A.grammar),a.hooks.run("after-tokenize",A),s.stringify(a.util.encode(A.tokens),A.language)},tokenize:function(g,y){var x=y.rest;if(x){for(var A in x)y[A]=x[A];delete y.rest}var M=new c;return m(M,M.head,g),o(g,M,y,M.head,0),h(M)},hooks:{all:{},add:function(g,y){var x=a.hooks.all;x[g]=x[g]||[],x[g].push(y)},run:function(g,y){var x=a.hooks.all[g];if(!(!x||!x.length))for(var A=0,M;M=x[A++];)M(y)}},Token:s};r.Prism=a;function s(g,y,x,A){this.type=g,this.content=y,this.alias=x,this.length=(A||"").length|0}s.stringify=function g(y,x){if(typeof y=="string")return y;if(Array.isArray(y)){var A="";return y.forEach(function($){A+=g($,x)}),A}var M={type:y.type,content:g(y.content,x),tag:"span",classes:["token",y.type],attributes:{},language:x},E=y.alias;E&&(Array.isArray(E)?Array.prototype.push.apply(M.classes,E):M.classes.push(E)),a.hooks.run("wrap",M);var T="";for(var D in M.attributes)T+=" "+D+'="'+(M.attributes[D]||"").replace(/"/g,"&quot;")+'"';return"<"+M.tag+' class="'+M.classes.join(" ")+'"'+T+">"+M.content+"</"+M.tag+">"};function i(g,y,x,A){g.lastIndex=y;var M=g.exec(x);if(M&&A&&M[1]){var E=M[1].length;M.index+=E,M[0]=M[0].slice(E)}return M}function o(g,y,x,A,M,E){for(var T in x)if(!(!x.hasOwnProperty(T)||!x[T])){var D=x[T];D=Array.isArray(D)?D:[D];for(var $=0;$<D.length;++$){if(E&&E.cause==T+","+$)return;var z=D[$],O=z.inside,U=!!z.lookbehind,L=!!z.greedy,X=z.alias;if(L&&!z.pattern.global){var V=z.pattern.toString().match(/[imsuy]*$/)[0];z.pattern=RegExp(z.pattern.source,V+"g")}for(var Z=z.pattern||z,G=A.next,te=M;G!==y.tail&&!(E&&te>=E.reach);te+=G.value.length,G=G.next){var oe=G.value;if(y.length>g.length)return;if(!(oe instanceof s)){var he=1,fe;if(L){if(fe=i(Z,te,g,U),!fe||fe.index>=g.length)break;var ge=fe.index,De=fe.index+fe[0].length,Te=te;for(Te+=G.value.length;ge>=Te;)G=G.next,Te+=G.value.length;if(Te-=G.value.length,te=Te,G.value instanceof s)continue;for(var ze=G;ze!==y.tail&&(Te<De||typeof ze.value=="string");ze=ze.next)he++,Te+=ze.value.length;he--,oe=g.slice(te,Te),fe.index-=te}else if(fe=i(Z,0,oe,U),!fe)continue;var ge=fe.index,Ie=fe[0],at=oe.slice(0,ge),At=oe.slice(ge+Ie.length),Ve=te+oe.length;E&&Ve>E.reach&&(E.reach=Ve);var st=G.prev;at&&(st=m(y,st,at),te+=at.length),u(y,st,he);var Nt=new s(T,O?a.tokenize(Ie,O):Ie,X,Ie);if(G=m(y,st,Nt),At&&m(y,G,At),he>1){var ur={cause:T+","+$,reach:Ve};o(g,y,x,G.prev,te,ur),E&&ur.reach>E.reach&&(E.reach=ur.reach)}}}}}}function c(){var g={value:null,prev:null,next:null},y={value:null,prev:g,next:null};g.next=y,this.head=g,this.tail=y,this.length=0}function m(g,y,x){var A=y.next,M={value:x,prev:y,next:A};return y.next=M,A.prev=M,g.length++,M}function u(g,y,x){for(var A=y.next,M=0;M<x&&A!==g.tail;M++)A=A.next;y.next=A,A.prev=y,g.length-=M}function h(g){for(var y=[],x=g.head.next;x!==g.tail;)y.push(x.value),x=x.next;return y}if(!r.document)return r.addEventListener&&(a.disableWorkerMessageHandler||r.addEventListener("message",function(g){var y=JSON.parse(g.data),x=y.language,A=y.code,M=y.immediateClose;r.postMessage(a.highlight(A,a.languages[x],x)),M&&r.close()},!1)),a;var f=a.util.currentScript();f&&(a.filename=f.src,f.hasAttribute("data-manual")&&(a.manual=!0));function b(){a.manual||a.highlightAll()}if(!a.manual){var w=document.readyState;w==="loading"||w==="interactive"&&f&&f.defer?document.addEventListener("DOMContentLoaded",b):window.requestAnimationFrame?window.requestAnimationFrame(b):window.setTimeout(b,16)}return a})(Wc);typeof bn<"u"&&bn.exports&&(bn.exports=W);typeof global<"u"&&(global.Prism=W);W.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};W.languages.markup.tag.inside["attr-value"].inside.entity=W.languages.markup.entity;W.languages.markup.doctype.inside["internal-subset"].inside=W.languages.markup;W.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&amp;/,"&"))});Object.defineProperty(W.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:W.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};a["language-"+t]={pattern:/[\s\S]+/,inside:W.languages[t]};var s={};s[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:a},W.languages.insertBefore("markup","cdata",s)}});Object.defineProperty(W.languages.markup.tag,"addAttribute",{value:function(r,e){W.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:W.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});W.languages.html=W.languages.markup;W.languages.mathml=W.languages.markup;W.languages.svg=W.languages.markup;W.languages.xml=W.languages.extend("markup",{});W.languages.ssml=W.languages.xml;W.languages.atom=W.languages.xml;W.languages.rss=W.languages.xml;(function(r){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var t=r.languages.markup;t&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))})(W);W.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};W.languages.javascript=W.languages.extend("clike",{"class-name":[W.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});W.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;W.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:W.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:W.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:W.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:W.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:W.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});W.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:W.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});W.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});W.languages.markup&&(W.languages.markup.tag.addInlined("script","javascript"),W.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));W.languages.js=W.languages.javascript;(function(){if(typeof W>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading\u2026",e=function(f,b){return"\u2716 Error "+f+" while fetching file: "+b},t="\u2716 Error: File does not exist or is empty",n={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},a="data-src-status",s="loading",i="loaded",o="failed",c="pre[data-src]:not(["+a+'="'+i+'"]):not(['+a+'="'+s+'"])';function m(f,b,w){var g=new XMLHttpRequest;g.open("GET",f,!0),g.onreadystatechange=function(){g.readyState==4&&(g.status<400&&g.responseText?b(g.responseText):g.status>=400?w(e(g.status,g.statusText)):w(t))},g.send(null)}function u(f){var b=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(f||"");if(b){var w=Number(b[1]),g=b[2],y=b[3];return g?y?[w,Number(y)]:[w,void 0]:[w,w]}}W.hooks.add("before-highlightall",function(f){f.selector+=", "+c}),W.hooks.add("before-sanity-check",function(f){var b=f.element;if(b.matches(c)){f.code="",b.setAttribute(a,s);var w=b.appendChild(document.createElement("CODE"));w.textContent=r;var g=b.getAttribute("data-src"),y=f.language;if(y==="none"){var x=(/\.(\w+)$/.exec(g)||[,"none"])[1];y=n[x]||x}W.util.setLanguage(w,y),W.util.setLanguage(b,y);var A=W.plugins.autoloader;A&&A.loadLanguages(y),m(g,function(M){b.setAttribute(a,i);var E=u(b.getAttribute("data-range"));if(E){var T=M.split(/\r\n?|\n/g),D=E[0],$=E[1]==null?T.length:E[1];D<0&&(D+=T.length),D=Math.max(0,Math.min(D-1,T.length)),$<0&&($+=T.length),$=Math.max(0,Math.min($,T.length)),M=T.slice(D,$).join(`
6
+ `),b.hasAttribute("data-start")||b.setAttribute("data-start",String(D+1))}w.textContent=M,W.highlightElement(w)},function(M){b.setAttribute(a,o),w.textContent=M})}}),W.plugins.fileHighlight={highlight:function(b){for(var w=(b||document).querySelectorAll(c),g=0,y;y=w[g++];)W.highlightElement(y)}};var h=!1;W.fileHighlight=function(){h||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),h=!0),W.plugins.fileHighlight.highlight.apply(this,arguments)}})()});function qi(r){return Number.isInteger(r)&&r>0&&r<=1114111?String.fromCodePoint(r):""}function wd(r){return r.replace(/&#x([0-9a-f]+);/gi,(e,t)=>qi(parseInt(t,16))).replace(/&#([0-9]+);/g,(e,t)=>qi(Number(t))).replace(/&([a-z][a-z0-9]*);/gi,(e,t)=>yd[t.toLowerCase()]??e)}function An(r){return wd(r.replace(xd,"$1").replace(kd,"$1").replace(Sd,"$1").replace(Ad,"$1").replace(Dd,"$1").replace(Td,"$1").replace(Cd,"$1")).replace(/\s+/g," ").trim()}var yd,xd,kd,Sd,Ad,Dd,Td,Cd,$a=Ze(()=>{"use strict";yd={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ",copy:"\xA9",reg:"\xAE",trade:"\u2122",middot:"\xB7",hellip:"\u2026",mdash:"\u2014",ndash:"\u2013",bull:"\u2022",deg:"\xB0",times:"\xD7",plusmn:"\xB1",laquo:"\xAB",raquo:"\xBB",sect:"\xA7",para:"\xB6"};xd=/!\[([^\]]*)\]\([^)]*\)/g,kd=/\[([^\]]+)\]\([^)]*\)/g,Sd=/`([^`]+)`/g,Ad=/\*\*([^*\n]+)\*\*/g,Dd=/__([^_\n]+)__/g,Td=/\*([^*\n]+)\*/g,Cd=/~~([^~\n]+)~~/g});function Od(r){if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}function Id(r){if(r.default!==void 0)return r.default;var e=Array.isArray(r.type)?r.type[0]:r.type;return Od(e)}function _d(r,e,t,n){var a=t[e];r[e]=a!==void 0?n.processor?n.processor(a):a:Id(n)}function qd(r){for(var e=0;e<Ga.length;e++)for(var t=Ga[e],n=0;n<t.blocks.length;n++){var a=t.blocks[n];if(r>=a[0]&&r<=a[1])return t.name}return null}function D0(r){for(var e=0;e<_n.length;e+=2)if(r>=_n[e]&&r<=_n[e+1])return!0;return!1}function eu(r){return"toText"in r}function au(r){if(r instanceof Pe)return r;throw new Error("Expected symbolNode but got "+String(r)+".")}function su(r){if(r instanceof Wt)return r;throw new Error("Expected span<HtmlDomNode> but got "+String(r)+".")}function ou(r,e){ft[r]=e}function ps(r,e,t){if(!ft[e])throw new Error("Font metrics not found for font: "+e+".");var n=r.charCodeAt(0),a=ft[e][n];if(!a&&r[0]in Gi&&(n=Gi[r[0]].charCodeAt(0),a=ft[e][n]),!a&&t==="text"&&D0(n)&&(a=ft[e][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}function lu(r){var e;if(r>=5?e=0:r>=3?e=1:e=2,!Ea[e]){var t=Ea[e]={cssEmPerMu:Dn.quad[e]/18};for(var n in Dn)Dn.hasOwnProperty(n)&&(t[n]=Dn[n][e])}return Ea[e]}function l(r,e,t,n,a,s){ve[r][a]={font:e,group:t,replace:n},s&&n&&(ve[r][n]=ve[r][a])}function P(r){for(var{type:e,names:t,props:n,handler:a,htmlBuilder:s,mathmlBuilder:i}=r,o={type:e,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:a},c=0;c<t.length;++c)I0[t[c]]=o;e&&(s&&(Ln[e]=s),i&&(Bn[e]=i))}function or(r){var{type:e,htmlBuilder:t,mathmlBuilder:n}=r;P({type:e,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:t,mathmlBuilder:n})}function Rn(r,e){var t=I(["base"],r,e),n=I(["strut"]);return n.style.height=j(t.height+t.depth),t.depth&&(n.style.verticalAlign=j(-t.depth)),t.children.unshift(n),t}function ns(r,e){var t=null;r.length===1&&r[0].type==="tag"&&(t=r[0].tag,r=r[0].body);var n=Ee(r,e,"root"),a;n.length===2&&n[1].hasClass("tag")&&(a=n.pop());for(var s=[],i=[],o=0;o<n.length;o++)if(i.push(n[o]),n[o].hasClass("mbin")||n[o].hasClass("mrel")||n[o].hasClass("allowbreak")){for(var c=!1;o<n.length-1&&n[o+1].hasClass("mspace")&&!n[o+1].hasClass("newline");)o++,i.push(n[o]),n[o].hasClass("nobreak")&&(c=!0);c||(s.push(Rn(i,e)),i=[])}else n[o].hasClass("newline")&&(i.pop(),i.length>0&&(s.push(Rn(i,e)),i=[]),s.push(n[o]));i.length>0&&s.push(Rn(i,e));var m;t?(m=Rn(Ee(t,e,!0),e),m.classes=["tag"],s.push(m)):a&&s.push(a);var u=I(["katex-html"],s);if(u.setAttribute("aria-hidden","true"),m){var h=m.children[0];h.style.height=j(u.height+u.depth),u.depth&&(h.style.verticalAlign=j(-u.depth))}return u}function N0(r){return new Ut(r)}function Fa(r){if(!r)return!1;if(r.type==="mi"&&r.children.length===1){var e=r.children[0];return e instanceof Se&&e.text==="."}else if(r.type==="mo"&&r.children.length===1&&r.getAttribute("separator")==="true"&&r.getAttribute("lspace")==="0em"&&r.getAttribute("rspace")==="0em"){var t=r.children[0];return t instanceof Se&&t.text===","}else return!1}function t0(r,e,t,n,a){var s=Ke(r,t),i;s.length===1&&s[0]instanceof _&&Su.has(s[0].type)?i=s[0]:i=new _("mrow",s);var o=new _("annotation",[new Se(e)]);o.setAttribute("encoding","application/x-tex");var c=new _("semantics",[i,o]),m=new _("math",[c]);m.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&m.setAttribute("display","block");var u=a?"katex":"katex-mathml";return I([u],[m])}function Ou(r){return r in zu}function re(r,e){if(!r||r.type!==e)throw new Error("Expected node of type "+e+", but got "+(r?"node of type "+r.type:String(r)));return r}function Yn(r){var e=Jn(r);if(!e)throw new Error("Expected node of symbol group type, but got "+(r?"node of type "+r.type:String(r)));return e}function Jn(r){return r&&(r.type==="atom"||Fu.hasOwnProperty(r.type))?r:null}function H0(r,e){var t=Ee(r.body,e,!0);return I([r.mclass],t,e)}function q0(r,e){var t,n=Ke(r.body,e);return r.mclass==="minner"?t=new _("mpadded",n):r.mclass==="mord"?r.isCharacterBox?(t=n[0],t.type="mi"):t=new _("mi",n):(r.isCharacterBox?(t=n[0],t.type="mo"):t=new _("mo",n),r.mclass==="mbin"?(t.attributes.lspace="0.22em",t.attributes.rspace="0.22em"):r.mclass==="mpunct"?(t.attributes.lspace="0em",t.attributes.rspace="0.17em"):r.mclass==="mopen"||r.mclass==="mclose"?(t.attributes.lspace="0em",t.attributes.rspace="0em"):r.mclass==="minner"&&(t.attributes.lspace="0.0556em",t.attributes.width="+0.1111em")),t}function ju(r,e,t){var n=_u[r];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return t.callFunction(n,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var a=t.callFunction("\\\\cdleft",[e[0]],[]),s={type:"atom",text:n,mode:"math",family:"rel"},i=t.callFunction("\\Big",[s],[]),o=t.callFunction("\\\\cdright",[e[1]],[]),c={type:"ordgroup",mode:"math",body:[a,i,o]};return t.callFunction("\\\\cdparent",[c],[])}case"\\\\cdlongequal":return t.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var m={type:"textord",text:"\\Vert",mode:"math"};return t.callFunction("\\Big",[m],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Lu(r){var e=[];for(r.gullet.beginGroup(),r.gullet.macros.set("\\cr","\\\\\\relax"),r.gullet.beginGroup();;){e.push(r.parseExpression(!1,"\\\\")),r.gullet.endGroup(),r.gullet.beginGroup();var t=r.fetch().text;if(t==="&"||t==="\\\\")r.consume();else if(t==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new N("Expected \\\\ or \\cr or \\end",r.nextToken)}for(var n=[],a=[n],s=0;s<e.length;s++){for(var i=e[s],o=a0(),c=0;c<i.length;c++)if(!s0(i[c]))o.body.push(i[c]);else{n.push(o),c+=1;var m=Yn(i[c]).text,u=new Array(2);if(u[0]={type:"ordgroup",mode:"math",body:[]},u[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(m))if("<>AV".includes(m))for(var h=0;h<2;h++){for(var f=!0,b=c+1;b<i.length;b++){if(Nu(i[b],m)){f=!1,c=b;break}if(s0(i[b]))throw new N("Missing a "+m+" character to complete a CD arrow.",i[b]);u[h].body.push(i[b])}if(f)throw new N("Missing a "+m+" character to complete a CD arrow.",i[c])}else throw new N('Expected one of "<>AV=|." after @',i[c]);var w=ju(m,u,r),g={type:"styling",body:[w],mode:"math",style:"display",resetFont:!0};n.push(g),o=a0()}s%2===0?n.push(o):n.shift(),n=[],a.push(n)}r.gullet.endGroup(),r.gullet.endGroup();var y=new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:y,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}function o0(r){return"isMiddle"in r}function Qn(r,e){var t=Jn(r);if(t&&Yu.has(t.text))return t;throw t?new N("Invalid delimiter '"+t.text+"' after '"+e.funcName+"'",r):new N("Invalid delimiter type '"+r.type+"'",r)}function l0(r){if(!r.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}function vt(r){for(var{type:e,names:t,props:n,handler:a,htmlBuilder:s,mathmlBuilder:i}=r,o={type:e,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},c=0;c<t.length;++c)ro[t[c]]=o;s&&(Ln[e]=s),i&&(Bn[e]=i)}function v(r,e){no[r]=e}function c0(r){var e=[];r.consumeSpaces();var t=r.fetch().text;for(t==="\\relax"&&(r.consume(),r.consumeSpaces(),t=r.fetch().text);t==="\\hline"||t==="\\hdashline";)r.consume(),e.push(t==="\\hdashline"),r.consumeSpaces(),t=r.fetch().text;return e}function ws(r){if(!r.includes("ed"))return!r.includes("*")}function Xt(r,e,t){var{hskipBeforeAndAfter:n,addJot:a,cols:s,arraystretch:i,colSeparationType:o,autoTag:c,singleRow:m,emptySingleRow:u,maxNumCols:h,leqno:f}=e;if(r.gullet.beginGroup(),m||r.gullet.macros.set("\\cr","\\\\\\relax"),!i){var b=r.gullet.expandMacroAsText("\\arraystretch");if(b==null)i=1;else if(i=parseFloat(b),!i||i<0)throw new N("Invalid \\arraystretch: "+b)}r.gullet.beginGroup();var w=[],g=[w],y=[],x=[],A=c!=null?[]:void 0;function M(){c&&r.gullet.macros.set("\\@eqnsw","1",!0)}function E(){A&&(r.gullet.macros.get("\\df@tag")?(A.push(r.subparse([new Ye("\\df@tag")])),r.gullet.macros.set("\\df@tag",void 0,!0)):A.push(!!c&&r.gullet.macros.get("\\@eqnsw")==="1"))}for(M(),x.push(c0(r));;){var T=r.parseExpression(!1,m?"\\end":"\\\\");r.gullet.endGroup(),r.gullet.beginGroup();var D={type:"ordgroup",mode:r.mode,body:T};t&&(D={type:"styling",mode:r.mode,style:t,resetFont:!0,body:[D]}),w.push(D);var $=r.fetch().text;if($==="&"){if(h&&w.length===h){if(m||o)throw new N("Too many tab characters: &",r.nextToken);r.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}r.consume()}else if($==="\\end"){E(),w.length===1&&D.type==="styling"&&D.body.length===1&&D.body[0].type==="ordgroup"&&D.body[0].body.length===0&&(g.length>1||!u)&&g.pop(),x.length<g.length+1&&x.push([]);break}else if($==="\\\\"){r.consume();var z=void 0;r.gullet.future().text!==" "&&(z=r.parseSizeGroup(!0)),y.push(z?z.value:null),E(),x.push(c0(r)),w=[],g.push(w),M()}else throw new N("Expected & or \\\\ or \\cr or \\end",r.nextToken)}return r.gullet.endGroup(),r.gullet.endGroup(),{type:"array",mode:r.mode,addJot:a,arraystretch:i,body:g,cols:s,rowGaps:y,hskipBeforeAndAfter:n,hLinesBeforeRow:x,colSeparationType:o,tags:A,leqno:f}}function xs(r){return r.slice(0,1)==="d"?"display":"text"}function po(r,e,t){for(var n=Ee(r,e,!1),a=e.sizeMultiplier/t.sizeMultiplier,s=0;s<n.length;s++){var i=n[s].classes.indexOf("sizing");i<0?Array.prototype.push.apply(n[s].classes,e.sizingClasses(t)):n[s].classes[i+1]==="reset-size"+e.size&&(n[s].classes[i+1]="reset-size"+t.size),n[s].height*=a,n[s].depth*=a}return zt(n)}function im(r){return r in os}var N,Md,$d,Ed,Rd,Ne,In,zd,Et,Fd,Ua,Hr,pt,us,Nn,br,$t,qr,et,yr,Be,ht,Nd,jd,Ld,Bd,Pd,Hd,Q,Ga,_n,$e,vr,Ud,Gd,Wd,Vd,Zd,Xd,Yd,Jd,Kd,Ui,Qd,Ut,Wa,tu,T0,ke,j,Gt,ms,C0,M0,ru,$0,Wt,wr,Va,nu,Pe,lt,gt,Ur,iu,ft,Dn,Gi,Ea,ve,d,R,p,k,be,q,He,Sr,Y,Me,Je,Wr,S,Rt,C,E0,Wi,Ra,Tn,Vi,za,Cn,jn,jr,Mn,K,we,_e,Ct,Ht,Za,Lr,$n,Xa,Zi,Xi,cu,ir,Yi,Ji,Ki,Ya,Ja,Qi,Ka,e0,du,uu,Wn,Le,hs,mu,Vn,pu,R0,fs,I,Vt,xr,hu,zt,kr,fu,le,z0,En,Qa,F0,O0,xe,sr,Mt,gu,vu,I0,Ln,Bn,Pn,Ce,bu,yu,wu,xu,Ee,es,_0,ts,rs,Gr,ce,_,Se,Hn,ku,Su,tt,gs,Au,vs,Ke,Zt,me,Du,r0,n0,qn,j0,L0,Tu,Cu,Mu,Zn,$u,Eu,Xn,Ru,zu,Fu,B0,bs,P0,Iu,zn,Kn,_u,a0,s0,Nu,U0,G0,as,W0,Bu,V0,Br,ys,Z0,Pu,Hu,X0,Oa,Ia,ss,Fn,qu,Uu,Y0,_a,Na,ja,Gu,J0,Wu,K0,Pr,Q0,Vu,Zu,eo,Xu,to,is,La,i0,Yu,ea,ta,ro,no,Ge,Ye,ra,Ju,bt,Ku,yt,ao,d0,so,io,u0,Qu,em,oo,m0,p0,lo,tm,Ba,h0,co,uo,Ar,Vr,rm,nm,mo,am,f0,sm,os,om,ho,Pa,Ha,g0,v0,b0,lm,y0,w0,qt,fo,cm,dm,um,mm,ls,pm,hm,Un,cs,fm,x0,ks,k0,gm,Ss,go,vo,bo,ds,S0,On,qa,A0,Gn,As,yo,vm,bm,wo,Ds,ym,wm,xm,Ts,xo=Ze(()=>{"use strict";N=class r extends Error{constructor(e,t){var n="KaTeX parse error: "+e,a,s,i=t&&t.loc;if(i&&i.start<=i.end){var o=i.lexer.input;a=i.start,s=i.end,a===o.length?n+=" at end of input: ":n+=" at position "+(a+1)+": ";var c=o.slice(a,s).replace(/[^]/g,"$&\u0332"),m;a>15?m="\u2026"+o.slice(a-15,a):m=o.slice(0,a);var u;s+15<o.length?u=o.slice(s,s+15)+"\u2026":u=o.slice(s),n+=m+c+u}super(n),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,r.prototype),this.position=a,a!=null&&s!=null&&(this.length=s-a),this.rawMessage=e}},Md=/([A-Z])/g,$d=r=>r.replace(Md,"-$1").toLowerCase(),Ed={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},Rd=/[&><"']/g,Ne=r=>String(r).replace(Rd,e=>Ed[e]),In=r=>r.type==="ordgroup"||r.type==="color"?r.body.length===1?In(r.body[0]):r:r.type==="font"?In(r.body):r,zd=new Set(["mathord","textord","atom"]),Et=r=>zd.has(In(r).type),Fd=r=>{var e=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(r);return e?e[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?null:e[1].toLowerCase():"_relative"},Ua={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:r=>"#"+r},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(r,e)=>(e.push(r),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:r=>Math.max(0,r),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:r=>Math.max(0,r),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:r=>Math.max(0,r),cli:"-e, --max-expand <n>",cliProcessor:r=>r==="Infinity"?1/0:parseInt(r)},globalGroup:{type:"boolean",cli:!1}};Hr=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var t of Object.keys(Ua)){var n=Ua[t];n&&_d(this,t,e,n)}}reportNonstrict(e,t,n){var a=this.strict;if(typeof a=="function"&&(a=a(e,t,n)),!(!a||a==="ignore")){if(a===!0||a==="error")throw new N("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" ["+e+"]"),n);a==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+t+" ["+e+"]"))}}useStrictBehavior(e,t,n){var a=this.strict;if(typeof a=="function")try{a=a(e,t,n)}catch{a="error"}return!a||a==="ignore"?!1:a===!0||a==="error"?!0:a==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+t+" ["+e+"]")),!1)}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var t=Fd(e.url);if(t==null)return!1;e.protocol=t}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}},pt=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return ht[Nd[this.id]]}sub(){return ht[jd[this.id]]}fracNum(){return ht[Ld[this.id]]}fracDen(){return ht[Bd[this.id]]}cramp(){return ht[Pd[this.id]]}text(){return ht[Hd[this.id]]}isTight(){return this.size>=2}},us=0,Nn=1,br=2,$t=3,qr=4,et=5,yr=6,Be=7,ht=[new pt(us,0,!1),new pt(Nn,0,!0),new pt(br,1,!1),new pt($t,1,!0),new pt(qr,2,!1),new pt(et,2,!0),new pt(yr,3,!1),new pt(Be,3,!0)],Nd=[qr,et,qr,et,yr,Be,yr,Be],jd=[et,et,et,et,Be,Be,Be,Be],Ld=[br,$t,qr,et,yr,Be,yr,Be],Bd=[$t,$t,et,et,Be,Be,Be,Be],Pd=[Nn,Nn,$t,$t,et,et,Be,Be],Hd=[us,Nn,br,$t,br,$t,br,$t],Q={DISPLAY:ht[us],TEXT:ht[br],SCRIPT:ht[qr],SCRIPTSCRIPT:ht[yr]},Ga=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];_n=[];Ga.forEach(r=>r.blocks.forEach(e=>_n.push(...e)));$e=r=>r+" "+r,vr=80,Ud=function(e,t){return"M95,"+(622+e+t)+`
7
7
  c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
8
8
  c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
9
9
  c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
@@ -14,7 +14,7 @@ c5.3,-9.3,12,-14,20,-14
14
14
  H400000v`+(40+e)+`H845.2724
15
15
  s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
16
16
  c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
17
- M`+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},Wd=function(e,t){return"M263,"+(601+e+t)+`c0.7,0,18,39.7,52,119
17
+ M`+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},Gd=function(e,t){return"M263,"+(601+e+t)+`c0.7,0,18,39.7,52,119
18
18
  c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
19
19
  c340,-704.7,510.7,-1060.3,512,-1067
20
20
  l`+e/2.084+" -"+e+`
@@ -24,7 +24,7 @@ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,
24
24
  c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
25
25
  s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
26
26
  c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
27
- M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},Vd=function(e,t){return"M983 "+(10+e+t)+`
27
+ M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},Wd=function(e,t){return"M983 "+(10+e+t)+`
28
28
  l`+e/3.13+" -"+e+`
29
29
  c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
30
30
  H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
@@ -33,7 +33,7 @@ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
33
33
  c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
34
34
  c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
35
35
  c53.7,-170.3,84.5,-266.8,92.5,-289.5z
36
- M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},Zd=function(e,t){return"M424,"+(2398+e+t)+`
36
+ M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},Vd=function(e,t){return"M424,"+(2398+e+t)+`
37
37
  c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
38
38
  c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
39
39
  s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
@@ -43,18 +43,18 @@ v`+(40+e)+`H1014.6
43
43
  s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
44
44
  c-2,6,-10,9,-24,9
45
45
  c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+t+`
46
- h400000v`+(40+e)+"h-400000z"},Xd=function(e,t){return"M473,"+(2713+e+t)+`
46
+ h400000v`+(40+e)+"h-400000z"},Zd=function(e,t){return"M473,"+(2713+e+t)+`
47
47
  c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+`
48
48
  c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7
49
49
  s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
50
50
  c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
51
51
  c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
52
52
  s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
53
- 606zM`+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"},Yd=function(e){var t=e/2;return"M400000 "+e+" H0 L"+t+" 0 l65 45 L145 "+(e-80)+" H400000z"},Jd=function(e,t,n){var a=n-54-t-e;return"M702 "+(e+t)+"H400000"+(40+e)+`
53
+ 606zM`+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"},Xd=function(e){var t=e/2;return"M400000 "+e+" H0 L"+t+" 0 l65 45 L145 "+(e-80)+" H400000z"},Yd=function(e,t,n){var a=n-54-t-e;return"M702 "+(e+t)+"H400000"+(40+e)+`
54
54
  H742v`+a+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
55
55
  h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
56
56
  c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
57
- 219 661 l218 661zM702 `+t+"H400000v"+(40+e)+"H742z"},Kd=function(e,t,n){t=1e3*t;var a="";switch(e){case"sqrtMain":a=Gd(t,vr);break;case"sqrtSize1":a=Wd(t,vr);break;case"sqrtSize2":a=Vd(t,vr);break;case"sqrtSize3":a=Zd(t,vr);break;case"sqrtSize4":a=Xd(t,vr);break;case"sqrtTall":a=Jd(t,vr,n)}return a},Qd=function(e,t){switch(e){case"\u239C":return $e("M291 0 H417 V"+t+" H291z");case"\u2223":return $e("M145 0 H188 V"+t+" H145z");case"\u2225":return $e("M145 0 H188 V"+t+" H145z")+$e("M367 0 H410 V"+t+" H367z");case"\u239F":return $e("M457 0 H583 V"+t+" H457z");case"\u23A2":return $e("M319 0 H403 V"+t+" H319z");case"\u23A5":return $e("M263 0 H347 V"+t+" H263z");case"\u23AA":return $e("M384 0 H504 V"+t+" H384z");case"\u23D0":return $e("M312 0 H355 V"+t+" H312z");case"\u2016":return $e("M257 0 H300 V"+t+" H257z")+$e("M478 0 H521 V"+t+" H478z");default:return""}},Ui={doubleleftarrow:`M262 157
57
+ 219 661 l218 661zM702 `+t+"H400000v"+(40+e)+"H742z"},Jd=function(e,t,n){t=1e3*t;var a="";switch(e){case"sqrtMain":a=Ud(t,vr);break;case"sqrtSize1":a=Gd(t,vr);break;case"sqrtSize2":a=Wd(t,vr);break;case"sqrtSize3":a=Vd(t,vr);break;case"sqrtSize4":a=Zd(t,vr);break;case"sqrtTall":a=Yd(t,vr,n)}return a},Kd=function(e,t){switch(e){case"\u239C":return $e("M291 0 H417 V"+t+" H291z");case"\u2223":return $e("M145 0 H188 V"+t+" H145z");case"\u2225":return $e("M145 0 H188 V"+t+" H145z")+$e("M367 0 H410 V"+t+" H367z");case"\u239F":return $e("M457 0 H583 V"+t+" H457z");case"\u23A2":return $e("M319 0 H403 V"+t+" H319z");case"\u23A5":return $e("M263 0 H347 V"+t+" H263z");case"\u23AA":return $e("M384 0 H504 V"+t+" H384z");case"\u23D0":return $e("M312 0 H355 V"+t+" H312z");case"\u2016":return $e("M257 0 H300 V"+t+" H257z")+$e("M478 0 H521 V"+t+" H478z");default:return""}},Ui={doubleleftarrow:`M262 157
58
58
  l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
59
59
  0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
60
60
  14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
@@ -225,7 +225,7 @@ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`
225
225
  c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
226
226
  -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
227
227
  c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
228
- M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},eu=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v1759 v84 h347 v-84
228
+ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Qd=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v1759 v84 h347 v-84
229
229
  H403z M403 1759 V0 H319 V1759 v`+t+" v1759 v84 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v1759 H0 v84 H347z
230
230
  M347 1759 V0 H263 V1759 v`+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15
231
231
  c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
@@ -253,15 +253,15 @@ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6
253
253
  c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
254
254
  c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
255
255
  l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
256
- -470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};Ut=class{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>{if(tu(e))return e.toText();throw new Error("Expected MathDomNode with toText, got "+e.constructor.name)}).join("")}},Wa={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},ru={ex:!0,em:!0,mu:!0},T0=function(e){return typeof e!="string"&&(e=e.unit),e in Wa||e in ru||e==="ex"},ke=function(e,t){var n;if(e.unit in Wa)n=Wa[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit==="mu")n=t.fontMetrics().cssEmPerMu;else{var a;if(t.style.isTight()?a=t.havingStyle(t.style.text()):a=t,e.unit==="ex")n=a.fontMetrics().xHeight;else if(e.unit==="em")n=a.fontMetrics().quad;else throw new N("Invalid unit: '"+e.unit+"'");a!==t&&(n*=a.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},j=function(e){return+e.toFixed(4)+"em"},Gt=function(e){return e.filter(t=>t).join(" ")},ms=function(e){var t="";for(var n of Object.keys(e)){var a=e[n];a!==void 0&&(t+=Ed(n)+":"+a+";")}return t},C0=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push("mtight");var a=t.getColor();a&&(this.style.color=a)}},M0=function(e){var t=document.createElement(e);t.className=Gt(this.classes),Object.assign(t.style,this.style);for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);for(var a=0;a<this.children.length;a++)t.appendChild(this.children[a].toNode());return t},nu=/[\s"'>/=\x00-\x1f]/,$0=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+Ne(Gt(this.classes))+'"');var n=ms(this.style);n&&(t+=' style="'+Ne(n)+'"');for(var a of Object.keys(this.attributes)){if(nu.test(a))throw new N("Invalid attribute name '"+a+"'");t+=" "+a+'="'+Ne(this.attributes[a])+'"'}t+=">";for(var s=0;s<this.children.length;s++)t+=this.children[s].toMarkup();return t+="</"+e+">",t},Wt=class{constructor(e,t,n,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,C0.call(this,e,n,a),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return M0.call(this,"span")}toMarkup(){return $0.call(this,"span")}},wr=class{constructor(e,t,n,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,C0.call(this,t,a),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return M0.call(this,"a")}toMarkup(){return $0.call(this,"a")}},Va=class{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");return e.src=this.src,e.alt=this.alt,e.className="mord",Object.assign(e.style,this.style),e}toMarkup(){var e='<img src="'+Ne(this.src)+'"'+(' alt="'+Ne(this.alt)+'"'),t=ms(this.style);return t&&(e+=' style="'+Ne(t)+'"'),e+="'/>",e}},au={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},Pe=class{constructor(e,t,n,a,s,i,o,c){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=a||0,this.skew=s||0,this.width=i||0,this.classes=o||[],this.style=c||{},this.maxFontSize=0;var m=Ud(this.text.charCodeAt(0));m&&this.classes.push(m+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=au[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;return this.italic>0&&(t=document.createElement("span"),t.style.marginRight=j(this.italic)),this.classes.length>0&&(t=t||document.createElement("span"),t.className=Gt(this.classes)),Object.keys(this.style).length>0&&(t=t||document.createElement("span"),Object.assign(t.style,this.style)),t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=Ne(Gt(this.classes)),t+='"');var n="";this.italic>0&&(n+="margin-right:"+j(this.italic)+";"),n+=ms(this.style),n&&(e=!0,t+=' style="'+Ne(n)+'"');var a=Ne(this.text);return e?(t+=">",t+=a,t+="</span>",t):a}},lt=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);for(var a=0;a<this.children.length;a++)t.appendChild(this.children[a].toNode());return t}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var t of Object.keys(this.attributes))e+=" "+t+'="'+Ne(this.attributes[t])+'"';e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</svg>",e}},gt=class{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"path");return this.alternate?t.setAttribute("d",this.alternate):t.setAttribute("d",Ui[this.pathName]),t}toMarkup(){return this.alternate?'<path d="'+Ne(this.alternate)+'"/>':'<path d="'+Ne(Ui[this.pathName])+'"/>'}},Ur=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"line");for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);return t}toMarkup(){var e="<line";for(var t of Object.keys(this.attributes))e+=" "+t+'="'+Ne(this.attributes[t])+'"';return e+="/>",e}};ou=r=>r instanceof Wt||r instanceof wr||r instanceof Ut,ft={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Dn={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Gi={\u00C5:"A",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};Ea={};ve={math:{},text:{}};d="math",R="text",p="main",k="ams",be="accent-token",q="bin",He="close",Sr="inner",Y="mathord",Me="op-token",Je="open",Wr="punct",S="rel",Rt="spacing",C="textord";l(d,p,S,"\u2261","\\equiv",!0);l(d,p,S,"\u227A","\\prec",!0);l(d,p,S,"\u227B","\\succ",!0);l(d,p,S,"\u223C","\\sim",!0);l(d,p,S,"\u22A5","\\perp");l(d,p,S,"\u2AAF","\\preceq",!0);l(d,p,S,"\u2AB0","\\succeq",!0);l(d,p,S,"\u2243","\\simeq",!0);l(d,p,S,"\u2223","\\mid",!0);l(d,p,S,"\u226A","\\ll",!0);l(d,p,S,"\u226B","\\gg",!0);l(d,p,S,"\u224D","\\asymp",!0);l(d,p,S,"\u2225","\\parallel");l(d,p,S,"\u22C8","\\bowtie",!0);l(d,p,S,"\u2323","\\smile",!0);l(d,p,S,"\u2291","\\sqsubseteq",!0);l(d,p,S,"\u2292","\\sqsupseteq",!0);l(d,p,S,"\u2250","\\doteq",!0);l(d,p,S,"\u2322","\\frown",!0);l(d,p,S,"\u220B","\\ni",!0);l(d,p,S,"\u221D","\\propto",!0);l(d,p,S,"\u22A2","\\vdash",!0);l(d,p,S,"\u22A3","\\dashv",!0);l(d,p,S,"\u220B","\\owns");l(d,p,Wr,".","\\ldotp");l(d,p,Wr,"\u22C5","\\cdotp");l(d,p,Wr,"\u22C5","\xB7");l(R,p,C,"\u22C5","\xB7");l(d,p,C,"#","\\#");l(R,p,C,"#","\\#");l(d,p,C,"&","\\&");l(R,p,C,"&","\\&");l(d,p,C,"\u2135","\\aleph",!0);l(d,p,C,"\u2200","\\forall",!0);l(d,p,C,"\u210F","\\hbar",!0);l(d,p,C,"\u2203","\\exists",!0);l(d,p,C,"\u2207","\\nabla",!0);l(d,p,C,"\u266D","\\flat",!0);l(d,p,C,"\u2113","\\ell",!0);l(d,p,C,"\u266E","\\natural",!0);l(d,p,C,"\u2663","\\clubsuit",!0);l(d,p,C,"\u2118","\\wp",!0);l(d,p,C,"\u266F","\\sharp",!0);l(d,p,C,"\u2662","\\diamondsuit",!0);l(d,p,C,"\u211C","\\Re",!0);l(d,p,C,"\u2661","\\heartsuit",!0);l(d,p,C,"\u2111","\\Im",!0);l(d,p,C,"\u2660","\\spadesuit",!0);l(d,p,C,"\xA7","\\S",!0);l(R,p,C,"\xA7","\\S");l(d,p,C,"\xB6","\\P",!0);l(R,p,C,"\xB6","\\P");l(d,p,C,"\u2020","\\dag");l(R,p,C,"\u2020","\\dag");l(R,p,C,"\u2020","\\textdagger");l(d,p,C,"\u2021","\\ddag");l(R,p,C,"\u2021","\\ddag");l(R,p,C,"\u2021","\\textdaggerdbl");l(d,p,He,"\u23B1","\\rmoustache",!0);l(d,p,Je,"\u23B0","\\lmoustache",!0);l(d,p,He,"\u27EF","\\rgroup",!0);l(d,p,Je,"\u27EE","\\lgroup",!0);l(d,p,q,"\u2213","\\mp",!0);l(d,p,q,"\u2296","\\ominus",!0);l(d,p,q,"\u228E","\\uplus",!0);l(d,p,q,"\u2293","\\sqcap",!0);l(d,p,q,"\u2217","\\ast");l(d,p,q,"\u2294","\\sqcup",!0);l(d,p,q,"\u25EF","\\bigcirc",!0);l(d,p,q,"\u2219","\\bullet",!0);l(d,p,q,"\u2021","\\ddagger");l(d,p,q,"\u2240","\\wr",!0);l(d,p,q,"\u2A3F","\\amalg");l(d,p,q,"&","\\And");l(d,p,S,"\u27F5","\\longleftarrow",!0);l(d,p,S,"\u21D0","\\Leftarrow",!0);l(d,p,S,"\u27F8","\\Longleftarrow",!0);l(d,p,S,"\u27F6","\\longrightarrow",!0);l(d,p,S,"\u21D2","\\Rightarrow",!0);l(d,p,S,"\u27F9","\\Longrightarrow",!0);l(d,p,S,"\u2194","\\leftrightarrow",!0);l(d,p,S,"\u27F7","\\longleftrightarrow",!0);l(d,p,S,"\u21D4","\\Leftrightarrow",!0);l(d,p,S,"\u27FA","\\Longleftrightarrow",!0);l(d,p,S,"\u21A6","\\mapsto",!0);l(d,p,S,"\u27FC","\\longmapsto",!0);l(d,p,S,"\u2197","\\nearrow",!0);l(d,p,S,"\u21A9","\\hookleftarrow",!0);l(d,p,S,"\u21AA","\\hookrightarrow",!0);l(d,p,S,"\u2198","\\searrow",!0);l(d,p,S,"\u21BC","\\leftharpoonup",!0);l(d,p,S,"\u21C0","\\rightharpoonup",!0);l(d,p,S,"\u2199","\\swarrow",!0);l(d,p,S,"\u21BD","\\leftharpoondown",!0);l(d,p,S,"\u21C1","\\rightharpoondown",!0);l(d,p,S,"\u2196","\\nwarrow",!0);l(d,p,S,"\u21CC","\\rightleftharpoons",!0);l(d,k,S,"\u226E","\\nless",!0);l(d,k,S,"\uE010","\\@nleqslant");l(d,k,S,"\uE011","\\@nleqq");l(d,k,S,"\u2A87","\\lneq",!0);l(d,k,S,"\u2268","\\lneqq",!0);l(d,k,S,"\uE00C","\\@lvertneqq");l(d,k,S,"\u22E6","\\lnsim",!0);l(d,k,S,"\u2A89","\\lnapprox",!0);l(d,k,S,"\u2280","\\nprec",!0);l(d,k,S,"\u22E0","\\npreceq",!0);l(d,k,S,"\u22E8","\\precnsim",!0);l(d,k,S,"\u2AB9","\\precnapprox",!0);l(d,k,S,"\u2241","\\nsim",!0);l(d,k,S,"\uE006","\\@nshortmid");l(d,k,S,"\u2224","\\nmid",!0);l(d,k,S,"\u22AC","\\nvdash",!0);l(d,k,S,"\u22AD","\\nvDash",!0);l(d,k,S,"\u22EA","\\ntriangleleft");l(d,k,S,"\u22EC","\\ntrianglelefteq",!0);l(d,k,S,"\u228A","\\subsetneq",!0);l(d,k,S,"\uE01A","\\@varsubsetneq");l(d,k,S,"\u2ACB","\\subsetneqq",!0);l(d,k,S,"\uE017","\\@varsubsetneqq");l(d,k,S,"\u226F","\\ngtr",!0);l(d,k,S,"\uE00F","\\@ngeqslant");l(d,k,S,"\uE00E","\\@ngeqq");l(d,k,S,"\u2A88","\\gneq",!0);l(d,k,S,"\u2269","\\gneqq",!0);l(d,k,S,"\uE00D","\\@gvertneqq");l(d,k,S,"\u22E7","\\gnsim",!0);l(d,k,S,"\u2A8A","\\gnapprox",!0);l(d,k,S,"\u2281","\\nsucc",!0);l(d,k,S,"\u22E1","\\nsucceq",!0);l(d,k,S,"\u22E9","\\succnsim",!0);l(d,k,S,"\u2ABA","\\succnapprox",!0);l(d,k,S,"\u2246","\\ncong",!0);l(d,k,S,"\uE007","\\@nshortparallel");l(d,k,S,"\u2226","\\nparallel",!0);l(d,k,S,"\u22AF","\\nVDash",!0);l(d,k,S,"\u22EB","\\ntriangleright");l(d,k,S,"\u22ED","\\ntrianglerighteq",!0);l(d,k,S,"\uE018","\\@nsupseteqq");l(d,k,S,"\u228B","\\supsetneq",!0);l(d,k,S,"\uE01B","\\@varsupsetneq");l(d,k,S,"\u2ACC","\\supsetneqq",!0);l(d,k,S,"\uE019","\\@varsupsetneqq");l(d,k,S,"\u22AE","\\nVdash",!0);l(d,k,S,"\u2AB5","\\precneqq",!0);l(d,k,S,"\u2AB6","\\succneqq",!0);l(d,k,S,"\uE016","\\@nsubseteqq");l(d,k,q,"\u22B4","\\unlhd");l(d,k,q,"\u22B5","\\unrhd");l(d,k,S,"\u219A","\\nleftarrow",!0);l(d,k,S,"\u219B","\\nrightarrow",!0);l(d,k,S,"\u21CD","\\nLeftarrow",!0);l(d,k,S,"\u21CF","\\nRightarrow",!0);l(d,k,S,"\u21AE","\\nleftrightarrow",!0);l(d,k,S,"\u21CE","\\nLeftrightarrow",!0);l(d,k,S,"\u25B3","\\vartriangle");l(d,k,C,"\u210F","\\hslash");l(d,k,C,"\u25BD","\\triangledown");l(d,k,C,"\u25CA","\\lozenge");l(d,k,C,"\u24C8","\\circledS");l(d,k,C,"\xAE","\\circledR");l(R,k,C,"\xAE","\\circledR");l(d,k,C,"\u2221","\\measuredangle",!0);l(d,k,C,"\u2204","\\nexists");l(d,k,C,"\u2127","\\mho");l(d,k,C,"\u2132","\\Finv",!0);l(d,k,C,"\u2141","\\Game",!0);l(d,k,C,"\u2035","\\backprime");l(d,k,C,"\u25B2","\\blacktriangle");l(d,k,C,"\u25BC","\\blacktriangledown");l(d,k,C,"\u25A0","\\blacksquare");l(d,k,C,"\u29EB","\\blacklozenge");l(d,k,C,"\u2605","\\bigstar");l(d,k,C,"\u2222","\\sphericalangle",!0);l(d,k,C,"\u2201","\\complement",!0);l(d,k,C,"\xF0","\\eth",!0);l(R,p,C,"\xF0","\xF0");l(d,k,C,"\u2571","\\diagup");l(d,k,C,"\u2572","\\diagdown");l(d,k,C,"\u25A1","\\square");l(d,k,C,"\u25A1","\\Box");l(d,k,C,"\u25CA","\\Diamond");l(d,k,C,"\xA5","\\yen",!0);l(R,k,C,"\xA5","\\yen",!0);l(d,k,C,"\u2713","\\checkmark",!0);l(R,k,C,"\u2713","\\checkmark");l(d,k,C,"\u2136","\\beth",!0);l(d,k,C,"\u2138","\\daleth",!0);l(d,k,C,"\u2137","\\gimel",!0);l(d,k,C,"\u03DD","\\digamma",!0);l(d,k,C,"\u03F0","\\varkappa");l(d,k,Je,"\u250C","\\@ulcorner",!0);l(d,k,He,"\u2510","\\@urcorner",!0);l(d,k,Je,"\u2514","\\@llcorner",!0);l(d,k,He,"\u2518","\\@lrcorner",!0);l(d,k,S,"\u2266","\\leqq",!0);l(d,k,S,"\u2A7D","\\leqslant",!0);l(d,k,S,"\u2A95","\\eqslantless",!0);l(d,k,S,"\u2272","\\lesssim",!0);l(d,k,S,"\u2A85","\\lessapprox",!0);l(d,k,S,"\u224A","\\approxeq",!0);l(d,k,q,"\u22D6","\\lessdot");l(d,k,S,"\u22D8","\\lll",!0);l(d,k,S,"\u2276","\\lessgtr",!0);l(d,k,S,"\u22DA","\\lesseqgtr",!0);l(d,k,S,"\u2A8B","\\lesseqqgtr",!0);l(d,k,S,"\u2251","\\doteqdot");l(d,k,S,"\u2253","\\risingdotseq",!0);l(d,k,S,"\u2252","\\fallingdotseq",!0);l(d,k,S,"\u223D","\\backsim",!0);l(d,k,S,"\u22CD","\\backsimeq",!0);l(d,k,S,"\u2AC5","\\subseteqq",!0);l(d,k,S,"\u22D0","\\Subset",!0);l(d,k,S,"\u228F","\\sqsubset",!0);l(d,k,S,"\u227C","\\preccurlyeq",!0);l(d,k,S,"\u22DE","\\curlyeqprec",!0);l(d,k,S,"\u227E","\\precsim",!0);l(d,k,S,"\u2AB7","\\precapprox",!0);l(d,k,S,"\u22B2","\\vartriangleleft");l(d,k,S,"\u22B4","\\trianglelefteq");l(d,k,S,"\u22A8","\\vDash",!0);l(d,k,S,"\u22AA","\\Vvdash",!0);l(d,k,S,"\u2323","\\smallsmile");l(d,k,S,"\u2322","\\smallfrown");l(d,k,S,"\u224F","\\bumpeq",!0);l(d,k,S,"\u224E","\\Bumpeq",!0);l(d,k,S,"\u2267","\\geqq",!0);l(d,k,S,"\u2A7E","\\geqslant",!0);l(d,k,S,"\u2A96","\\eqslantgtr",!0);l(d,k,S,"\u2273","\\gtrsim",!0);l(d,k,S,"\u2A86","\\gtrapprox",!0);l(d,k,q,"\u22D7","\\gtrdot");l(d,k,S,"\u22D9","\\ggg",!0);l(d,k,S,"\u2277","\\gtrless",!0);l(d,k,S,"\u22DB","\\gtreqless",!0);l(d,k,S,"\u2A8C","\\gtreqqless",!0);l(d,k,S,"\u2256","\\eqcirc",!0);l(d,k,S,"\u2257","\\circeq",!0);l(d,k,S,"\u225C","\\triangleq",!0);l(d,k,S,"\u223C","\\thicksim");l(d,k,S,"\u2248","\\thickapprox");l(d,k,S,"\u2AC6","\\supseteqq",!0);l(d,k,S,"\u22D1","\\Supset",!0);l(d,k,S,"\u2290","\\sqsupset",!0);l(d,k,S,"\u227D","\\succcurlyeq",!0);l(d,k,S,"\u22DF","\\curlyeqsucc",!0);l(d,k,S,"\u227F","\\succsim",!0);l(d,k,S,"\u2AB8","\\succapprox",!0);l(d,k,S,"\u22B3","\\vartriangleright");l(d,k,S,"\u22B5","\\trianglerighteq");l(d,k,S,"\u22A9","\\Vdash",!0);l(d,k,S,"\u2223","\\shortmid");l(d,k,S,"\u2225","\\shortparallel");l(d,k,S,"\u226C","\\between",!0);l(d,k,S,"\u22D4","\\pitchfork",!0);l(d,k,S,"\u221D","\\varpropto");l(d,k,S,"\u25C0","\\blacktriangleleft");l(d,k,S,"\u2234","\\therefore",!0);l(d,k,S,"\u220D","\\backepsilon");l(d,k,S,"\u25B6","\\blacktriangleright");l(d,k,S,"\u2235","\\because",!0);l(d,k,S,"\u22D8","\\llless");l(d,k,S,"\u22D9","\\gggtr");l(d,k,q,"\u22B2","\\lhd");l(d,k,q,"\u22B3","\\rhd");l(d,k,S,"\u2242","\\eqsim",!0);l(d,p,S,"\u22C8","\\Join");l(d,k,S,"\u2251","\\Doteq",!0);l(d,k,q,"\u2214","\\dotplus",!0);l(d,k,q,"\u2216","\\smallsetminus");l(d,k,q,"\u22D2","\\Cap",!0);l(d,k,q,"\u22D3","\\Cup",!0);l(d,k,q,"\u2A5E","\\doublebarwedge",!0);l(d,k,q,"\u229F","\\boxminus",!0);l(d,k,q,"\u229E","\\boxplus",!0);l(d,k,q,"\u22C7","\\divideontimes",!0);l(d,k,q,"\u22C9","\\ltimes",!0);l(d,k,q,"\u22CA","\\rtimes",!0);l(d,k,q,"\u22CB","\\leftthreetimes",!0);l(d,k,q,"\u22CC","\\rightthreetimes",!0);l(d,k,q,"\u22CF","\\curlywedge",!0);l(d,k,q,"\u22CE","\\curlyvee",!0);l(d,k,q,"\u229D","\\circleddash",!0);l(d,k,q,"\u229B","\\circledast",!0);l(d,k,q,"\u22C5","\\centerdot");l(d,k,q,"\u22BA","\\intercal",!0);l(d,k,q,"\u22D2","\\doublecap");l(d,k,q,"\u22D3","\\doublecup");l(d,k,q,"\u22A0","\\boxtimes",!0);l(d,k,S,"\u21E2","\\dashrightarrow",!0);l(d,k,S,"\u21E0","\\dashleftarrow",!0);l(d,k,S,"\u21C7","\\leftleftarrows",!0);l(d,k,S,"\u21C6","\\leftrightarrows",!0);l(d,k,S,"\u21DA","\\Lleftarrow",!0);l(d,k,S,"\u219E","\\twoheadleftarrow",!0);l(d,k,S,"\u21A2","\\leftarrowtail",!0);l(d,k,S,"\u21AB","\\looparrowleft",!0);l(d,k,S,"\u21CB","\\leftrightharpoons",!0);l(d,k,S,"\u21B6","\\curvearrowleft",!0);l(d,k,S,"\u21BA","\\circlearrowleft",!0);l(d,k,S,"\u21B0","\\Lsh",!0);l(d,k,S,"\u21C8","\\upuparrows",!0);l(d,k,S,"\u21BF","\\upharpoonleft",!0);l(d,k,S,"\u21C3","\\downharpoonleft",!0);l(d,p,S,"\u22B6","\\origof",!0);l(d,p,S,"\u22B7","\\imageof",!0);l(d,k,S,"\u22B8","\\multimap",!0);l(d,k,S,"\u21AD","\\leftrightsquigarrow",!0);l(d,k,S,"\u21C9","\\rightrightarrows",!0);l(d,k,S,"\u21C4","\\rightleftarrows",!0);l(d,k,S,"\u21A0","\\twoheadrightarrow",!0);l(d,k,S,"\u21A3","\\rightarrowtail",!0);l(d,k,S,"\u21AC","\\looparrowright",!0);l(d,k,S,"\u21B7","\\curvearrowright",!0);l(d,k,S,"\u21BB","\\circlearrowright",!0);l(d,k,S,"\u21B1","\\Rsh",!0);l(d,k,S,"\u21CA","\\downdownarrows",!0);l(d,k,S,"\u21BE","\\upharpoonright",!0);l(d,k,S,"\u21C2","\\downharpoonright",!0);l(d,k,S,"\u21DD","\\rightsquigarrow",!0);l(d,k,S,"\u21DD","\\leadsto");l(d,k,S,"\u21DB","\\Rrightarrow",!0);l(d,k,S,"\u21BE","\\restriction");l(d,p,C,"\u2018","`");l(d,p,C,"$","\\$");l(R,p,C,"$","\\$");l(R,p,C,"$","\\textdollar");l(d,p,C,"%","\\%");l(R,p,C,"%","\\%");l(d,p,C,"_","\\_");l(R,p,C,"_","\\_");l(R,p,C,"_","\\textunderscore");l(d,p,C,"\u2220","\\angle",!0);l(d,p,C,"\u221E","\\infty",!0);l(d,p,C,"\u2032","\\prime");l(d,p,C,"\u25B3","\\triangle");l(d,p,C,"\u0393","\\Gamma",!0);l(d,p,C,"\u0394","\\Delta",!0);l(d,p,C,"\u0398","\\Theta",!0);l(d,p,C,"\u039B","\\Lambda",!0);l(d,p,C,"\u039E","\\Xi",!0);l(d,p,C,"\u03A0","\\Pi",!0);l(d,p,C,"\u03A3","\\Sigma",!0);l(d,p,C,"\u03A5","\\Upsilon",!0);l(d,p,C,"\u03A6","\\Phi",!0);l(d,p,C,"\u03A8","\\Psi",!0);l(d,p,C,"\u03A9","\\Omega",!0);l(d,p,C,"A","\u0391");l(d,p,C,"B","\u0392");l(d,p,C,"E","\u0395");l(d,p,C,"Z","\u0396");l(d,p,C,"H","\u0397");l(d,p,C,"I","\u0399");l(d,p,C,"K","\u039A");l(d,p,C,"M","\u039C");l(d,p,C,"N","\u039D");l(d,p,C,"O","\u039F");l(d,p,C,"P","\u03A1");l(d,p,C,"T","\u03A4");l(d,p,C,"X","\u03A7");l(d,p,C,"\xAC","\\neg",!0);l(d,p,C,"\xAC","\\lnot");l(d,p,C,"\u22A4","\\top");l(d,p,C,"\u22A5","\\bot");l(d,p,C,"\u2205","\\emptyset");l(d,k,C,"\u2205","\\varnothing");l(d,p,Y,"\u03B1","\\alpha",!0);l(d,p,Y,"\u03B2","\\beta",!0);l(d,p,Y,"\u03B3","\\gamma",!0);l(d,p,Y,"\u03B4","\\delta",!0);l(d,p,Y,"\u03F5","\\epsilon",!0);l(d,p,Y,"\u03B6","\\zeta",!0);l(d,p,Y,"\u03B7","\\eta",!0);l(d,p,Y,"\u03B8","\\theta",!0);l(d,p,Y,"\u03B9","\\iota",!0);l(d,p,Y,"\u03BA","\\kappa",!0);l(d,p,Y,"\u03BB","\\lambda",!0);l(d,p,Y,"\u03BC","\\mu",!0);l(d,p,Y,"\u03BD","\\nu",!0);l(d,p,Y,"\u03BE","\\xi",!0);l(d,p,Y,"\u03BF","\\omicron",!0);l(d,p,Y,"\u03C0","\\pi",!0);l(d,p,Y,"\u03C1","\\rho",!0);l(d,p,Y,"\u03C3","\\sigma",!0);l(d,p,Y,"\u03C4","\\tau",!0);l(d,p,Y,"\u03C5","\\upsilon",!0);l(d,p,Y,"\u03D5","\\phi",!0);l(d,p,Y,"\u03C7","\\chi",!0);l(d,p,Y,"\u03C8","\\psi",!0);l(d,p,Y,"\u03C9","\\omega",!0);l(d,p,Y,"\u03B5","\\varepsilon",!0);l(d,p,Y,"\u03D1","\\vartheta",!0);l(d,p,Y,"\u03D6","\\varpi",!0);l(d,p,Y,"\u03F1","\\varrho",!0);l(d,p,Y,"\u03C2","\\varsigma",!0);l(d,p,Y,"\u03C6","\\varphi",!0);l(d,p,q,"\u2217","*",!0);l(d,p,q,"+","+");l(d,p,q,"\u2212","-",!0);l(d,p,q,"\u22C5","\\cdot",!0);l(d,p,q,"\u2218","\\circ",!0);l(d,p,q,"\xF7","\\div",!0);l(d,p,q,"\xB1","\\pm",!0);l(d,p,q,"\xD7","\\times",!0);l(d,p,q,"\u2229","\\cap",!0);l(d,p,q,"\u222A","\\cup",!0);l(d,p,q,"\u2216","\\setminus",!0);l(d,p,q,"\u2227","\\land");l(d,p,q,"\u2228","\\lor");l(d,p,q,"\u2227","\\wedge",!0);l(d,p,q,"\u2228","\\vee",!0);l(d,p,C,"\u221A","\\surd");l(d,p,Je,"\u27E8","\\langle",!0);l(d,p,Je,"\u2223","\\lvert");l(d,p,Je,"\u2225","\\lVert");l(d,p,He,"?","?");l(d,p,He,"!","!");l(d,p,He,"\u27E9","\\rangle",!0);l(d,p,He,"\u2223","\\rvert");l(d,p,He,"\u2225","\\rVert");l(d,p,S,"=","=");l(d,p,S,":",":");l(d,p,S,"\u2248","\\approx",!0);l(d,p,S,"\u2245","\\cong",!0);l(d,p,S,"\u2265","\\ge");l(d,p,S,"\u2265","\\geq",!0);l(d,p,S,"\u2190","\\gets");l(d,p,S,">","\\gt",!0);l(d,p,S,"\u2208","\\in",!0);l(d,p,S,"\uE020","\\@not");l(d,p,S,"\u2282","\\subset",!0);l(d,p,S,"\u2283","\\supset",!0);l(d,p,S,"\u2286","\\subseteq",!0);l(d,p,S,"\u2287","\\supseteq",!0);l(d,k,S,"\u2288","\\nsubseteq",!0);l(d,k,S,"\u2289","\\nsupseteq",!0);l(d,p,S,"\u22A8","\\models");l(d,p,S,"\u2190","\\leftarrow",!0);l(d,p,S,"\u2264","\\le");l(d,p,S,"\u2264","\\leq",!0);l(d,p,S,"<","\\lt",!0);l(d,p,S,"\u2192","\\rightarrow",!0);l(d,p,S,"\u2192","\\to");l(d,k,S,"\u2271","\\ngeq",!0);l(d,k,S,"\u2270","\\nleq",!0);l(d,p,Rt,"\xA0","\\ ");l(d,p,Rt,"\xA0","\\space");l(d,p,Rt,"\xA0","\\nobreakspace");l(R,p,Rt,"\xA0","\\ ");l(R,p,Rt,"\xA0"," ");l(R,p,Rt,"\xA0","\\space");l(R,p,Rt,"\xA0","\\nobreakspace");l(d,p,Rt,"","\\nobreak");l(d,p,Rt,"","\\allowbreak");l(d,p,Wr,",",",");l(d,p,Wr,";",";");l(d,k,q,"\u22BC","\\barwedge",!0);l(d,k,q,"\u22BB","\\veebar",!0);l(d,p,q,"\u2299","\\odot",!0);l(d,p,q,"\u2295","\\oplus",!0);l(d,p,q,"\u2297","\\otimes",!0);l(d,p,C,"\u2202","\\partial",!0);l(d,p,q,"\u2298","\\oslash",!0);l(d,k,q,"\u229A","\\circledcirc",!0);l(d,k,q,"\u22A1","\\boxdot",!0);l(d,p,q,"\u25B3","\\bigtriangleup");l(d,p,q,"\u25BD","\\bigtriangledown");l(d,p,q,"\u2020","\\dagger");l(d,p,q,"\u22C4","\\diamond");l(d,p,q,"\u22C6","\\star");l(d,p,q,"\u25C3","\\triangleleft");l(d,p,q,"\u25B9","\\triangleright");l(d,p,Je,"{","\\{");l(R,p,C,"{","\\{");l(R,p,C,"{","\\textbraceleft");l(d,p,He,"}","\\}");l(R,p,C,"}","\\}");l(R,p,C,"}","\\textbraceright");l(d,p,Je,"{","\\lbrace");l(d,p,He,"}","\\rbrace");l(d,p,Je,"[","\\lbrack",!0);l(R,p,C,"[","\\lbrack",!0);l(d,p,He,"]","\\rbrack",!0);l(R,p,C,"]","\\rbrack",!0);l(d,p,Je,"(","\\lparen",!0);l(d,p,He,")","\\rparen",!0);l(R,p,C,"<","\\textless",!0);l(R,p,C,">","\\textgreater",!0);l(d,p,Je,"\u230A","\\lfloor",!0);l(d,p,He,"\u230B","\\rfloor",!0);l(d,p,Je,"\u2308","\\lceil",!0);l(d,p,He,"\u2309","\\rceil",!0);l(d,p,C,"\\","\\backslash");l(d,p,C,"\u2223","|");l(d,p,C,"\u2223","\\vert");l(R,p,C,"|","\\textbar",!0);l(d,p,C,"\u2225","\\|");l(d,p,C,"\u2225","\\Vert");l(R,p,C,"\u2225","\\textbardbl");l(R,p,C,"~","\\textasciitilde");l(R,p,C,"\\","\\textbackslash");l(R,p,C,"^","\\textasciicircum");l(d,p,S,"\u2191","\\uparrow",!0);l(d,p,S,"\u21D1","\\Uparrow",!0);l(d,p,S,"\u2193","\\downarrow",!0);l(d,p,S,"\u21D3","\\Downarrow",!0);l(d,p,S,"\u2195","\\updownarrow",!0);l(d,p,S,"\u21D5","\\Updownarrow",!0);l(d,p,Me,"\u2210","\\coprod");l(d,p,Me,"\u22C1","\\bigvee");l(d,p,Me,"\u22C0","\\bigwedge");l(d,p,Me,"\u2A04","\\biguplus");l(d,p,Me,"\u22C2","\\bigcap");l(d,p,Me,"\u22C3","\\bigcup");l(d,p,Me,"\u222B","\\int");l(d,p,Me,"\u222B","\\intop");l(d,p,Me,"\u222C","\\iint");l(d,p,Me,"\u222D","\\iiint");l(d,p,Me,"\u220F","\\prod");l(d,p,Me,"\u2211","\\sum");l(d,p,Me,"\u2A02","\\bigotimes");l(d,p,Me,"\u2A01","\\bigoplus");l(d,p,Me,"\u2A00","\\bigodot");l(d,p,Me,"\u222E","\\oint");l(d,p,Me,"\u222F","\\oiint");l(d,p,Me,"\u2230","\\oiiint");l(d,p,Me,"\u2A06","\\bigsqcup");l(d,p,Me,"\u222B","\\smallint");l(R,p,Sr,"\u2026","\\textellipsis");l(d,p,Sr,"\u2026","\\mathellipsis");l(R,p,Sr,"\u2026","\\ldots",!0);l(d,p,Sr,"\u2026","\\ldots",!0);l(d,p,Sr,"\u22EF","\\@cdots",!0);l(d,p,Sr,"\u22F1","\\ddots",!0);l(d,p,C,"\u22EE","\\varvdots");l(R,p,C,"\u22EE","\\varvdots");l(d,p,be,"\u02CA","\\acute");l(d,p,be,"\u02CB","\\grave");l(d,p,be,"\xA8","\\ddot");l(d,p,be,"~","\\tilde");l(d,p,be,"\u02C9","\\bar");l(d,p,be,"\u02D8","\\breve");l(d,p,be,"\u02C7","\\check");l(d,p,be,"^","\\hat");l(d,p,be,"\u20D7","\\vec");l(d,p,be,"\u02D9","\\dot");l(d,p,be,"\u02DA","\\mathring");l(d,p,Y,"\uE131","\\@imath");l(d,p,Y,"\uE237","\\@jmath");l(d,p,C,"\u0131","\u0131");l(d,p,C,"\u0237","\u0237");l(R,p,C,"\u0131","\\i",!0);l(R,p,C,"\u0237","\\j",!0);l(R,p,C,"\xDF","\\ss",!0);l(R,p,C,"\xE6","\\ae",!0);l(R,p,C,"\u0153","\\oe",!0);l(R,p,C,"\xF8","\\o",!0);l(R,p,C,"\xC6","\\AE",!0);l(R,p,C,"\u0152","\\OE",!0);l(R,p,C,"\xD8","\\O",!0);l(R,p,be,"\u02CA","\\'");l(R,p,be,"\u02CB","\\`");l(R,p,be,"\u02C6","\\^");l(R,p,be,"\u02DC","\\~");l(R,p,be,"\u02C9","\\=");l(R,p,be,"\u02D8","\\u");l(R,p,be,"\u02D9","\\.");l(R,p,be,"\xB8","\\c");l(R,p,be,"\u02DA","\\r");l(R,p,be,"\u02C7","\\v");l(R,p,be,"\xA8",'\\"');l(R,p,be,"\u02DD","\\H");l(R,p,be,"\u25EF","\\textcircled");E0={"--":!0,"---":!0,"``":!0,"''":!0};l(R,p,C,"\u2013","--",!0);l(R,p,C,"\u2013","\\textendash");l(R,p,C,"\u2014","---",!0);l(R,p,C,"\u2014","\\textemdash");l(R,p,C,"\u2018","`",!0);l(R,p,C,"\u2018","\\textquoteleft");l(R,p,C,"\u2019","'",!0);l(R,p,C,"\u2019","\\textquoteright");l(R,p,C,"\u201C","``",!0);l(R,p,C,"\u201C","\\textquotedblleft");l(R,p,C,"\u201D","''",!0);l(R,p,C,"\u201D","\\textquotedblright");l(d,p,C,"\xB0","\\degree",!0);l(R,p,C,"\xB0","\\degree");l(R,p,C,"\xB0","\\textdegree",!0);l(d,p,C,"\xA3","\\pounds");l(d,p,C,"\xA3","\\mathsterling",!0);l(R,p,C,"\xA3","\\pounds");l(R,p,C,"\xA3","\\textsterling",!0);l(d,k,C,"\u2720","\\maltese");l(R,k,C,"\u2720","\\maltese");Wi='0123456789/@."';for(Tn=0;Tn<Wi.length;Tn++)Ra=Wi.charAt(Tn),l(d,p,C,Ra,Ra);Vi='0123456789!@*()-=+";:?/.,';for(Cn=0;Cn<Vi.length;Cn++)za=Vi.charAt(Cn),l(R,p,C,za,za);jn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(Mn=0;Mn<jn.length;Mn++)jr=jn.charAt(Mn),l(d,p,Y,jr,jr),l(R,p,C,jr,jr);l(d,k,C,"C","\u2102");l(R,k,C,"C","\u2102");l(d,k,C,"H","\u210D");l(R,k,C,"H","\u210D");l(d,k,C,"N","\u2115");l(R,k,C,"N","\u2115");l(d,k,C,"P","\u2119");l(R,k,C,"P","\u2119");l(d,k,C,"Q","\u211A");l(R,k,C,"Q","\u211A");l(d,k,C,"R","\u211D");l(R,k,C,"R","\u211D");l(d,k,C,"Z","\u2124");l(R,k,C,"Z","\u2124");l(d,p,Y,"h","\u210E");l(R,p,Y,"h","\u210E");for(_e=0;_e<jn.length;_e++)we=jn.charAt(_e),K=String.fromCharCode(55349,56320+_e),l(d,p,Y,we,K),l(R,p,C,we,K),K=String.fromCharCode(55349,56372+_e),l(d,p,Y,we,K),l(R,p,C,we,K),K=String.fromCharCode(55349,56424+_e),l(d,p,Y,we,K),l(R,p,C,we,K),K=String.fromCharCode(55349,56580+_e),l(d,p,Y,we,K),l(R,p,C,we,K),K=String.fromCharCode(55349,56684+_e),l(d,p,Y,we,K),l(R,p,C,we,K),K=String.fromCharCode(55349,56736+_e),l(d,p,Y,we,K),l(R,p,C,we,K),K=String.fromCharCode(55349,56788+_e),l(d,p,Y,we,K),l(R,p,C,we,K),K=String.fromCharCode(55349,56840+_e),l(d,p,Y,we,K),l(R,p,C,we,K),K=String.fromCharCode(55349,56944+_e),l(d,p,Y,we,K),l(R,p,C,we,K),_e<26&&(K=String.fromCharCode(55349,56632+_e),l(d,p,Y,we,K),l(R,p,C,we,K),K=String.fromCharCode(55349,56476+_e),l(d,p,Y,we,K),l(R,p,C,we,K));K="\u{1D55C}";l(d,p,Y,"k",K);l(R,p,C,"k",K);for(Ht=0;Ht<10;Ht++)Ct=Ht.toString(),K=String.fromCharCode(55349,57294+Ht),l(d,p,Y,Ct,K),l(R,p,C,Ct,K),K=String.fromCharCode(55349,57314+Ht),l(d,p,Y,Ct,K),l(R,p,C,Ct,K),K=String.fromCharCode(55349,57324+Ht),l(d,p,Y,Ct,K),l(R,p,C,Ct,K),K=String.fromCharCode(55349,57334+Ht),l(d,p,Y,Ct,K),l(R,p,C,Ct,K);Za="\xD0\xDE\xFE";for($n=0;$n<Za.length;$n++)Lr=Za.charAt($n),l(d,p,Y,Lr,Lr),l(R,p,C,Lr,Lr);Xa={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},Zi={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},Xi={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},du={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},ir={mathClass:"",textClass:"",font:""},Yi={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},Ji={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},Ki={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},Ya={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},Ja={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},Qi={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},Ka={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},e0=[Xa,Xa,Zi,Zi,Xi,Xi,du,ir,ir,ir,Yi,Yi,Ji,Ji,Ki,Ki,Ya,Ya,Ja,Ja,Qi,Qi,ir,ir,Ka,Ka],uu=[Xa,ir,Ya,Ja,Ka],mu=r=>{var e=r.charCodeAt(0),t=r.charCodeAt(1),n=(e-55296)*1024+(t-56320)+65536;if(119808<=n&&n<120484){var a=Math.floor((n-119808)/26);return e0[a]}else if(120782<=n&&n<=120831){var s=Math.floor((n-120782)/10);return uu[s]}else{if(n===120485||n===120486)return e0[0];if(120486<n&&n<120782)return ir;throw new N("Unsupported character: "+r)}},Wn=function(e,t,n){if(ve[n][e]){var a=ve[n][e].replace;a&&(e=a)}return{value:e,metrics:ps(e,t,n)}},Le=function(e,t,n,a,s){var i=Wn(e,t,n),o=i.metrics;e=i.value;var c;if(o){var m=o.italic;(n==="text"||a&&a.font==="mathit")&&(m=0),c=new Pe(e,o.height,o.depth,m,o.skew,o.width,s)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+e+"' in style '"+t+"' and mode '"+n+"'")),c=new Pe(e,0,0,0,0,0,s);if(a){c.maxFontSize=a.sizeMultiplier,a.style.isTight()&&c.classes.push("mtight");var u=a.getColor();u&&(c.style.color=u)}return c},hs=function(e,t,n,a){return a===void 0&&(a=[]),n.font==="boldsymbol"&&Wn(e,"Main-Bold",t).metrics?Le(e,"Main-Bold",t,n,a.concat(["mathbf"])):e==="\\"||ve[t][e].font==="main"?Le(e,"Main-Regular",t,n,a):Le(e,"AMS-Regular",t,n,a.concat(["amsrm"]))},pu=function(e,t,n){return n!=="textord"&&Wn(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Vn=function(e,t,n){var a=e.mode,s=e.text,i=["mord"],{font:o,fontFamily:c,fontWeight:m,fontShape:u}=t,h=a==="math"||a==="text"&&!!o,f=h?o:c,b="",w="";if(s.charCodeAt(0)===55349){var g=mu(s);b=g.font,w=g[a+"Class"]}if(b)return Le(s,b,a,t,i.concat(w));if(f){var y,x;if(f==="boldsymbol"){var A=pu(s,a,n);y=A.fontName,x=[A.fontClass]}else h?(y=Qa[o].fontName,x=[o]):(y=En(c,m,u),x=[c,m,u]);if(Wn(s,y,a).metrics)return Le(s,y,a,t,i.concat(x));if(E0.hasOwnProperty(s)&&y.slice(0,10)==="Typewriter"){for(var M=[],E=0;E<s.length;E++)M.push(Le(s[E],y,a,t,i.concat(x)));return zt(M)}}if(n==="mathord")return Le(s,"Math-Italic",a,t,i.concat(["mathnormal"]));if(n==="textord"){var T=ve[a][s]&&ve[a][s].font;if(T==="ams"){var D=En("amsrm",m,u);return Le(s,D,a,t,i.concat("amsrm",m,u))}else if(T==="main"||!T){var $=En("textrm",m,u);return Le(s,$,a,t,i.concat(m,u))}else{var z=En(T,m,u);return Le(s,z,a,t,i.concat(z,m,u))}}else throw new Error("unexpected type: "+n+" in makeOrd")},hu=(r,e)=>{if(Gt(r.classes)!==Gt(e.classes)||r.skew!==e.skew||r.maxFontSize!==e.maxFontSize||r.italic!==0&&r.hasClass("mathnormal"))return!1;if(r.classes.length===1){var t=r.classes[0];if(t==="mbin"||t==="mord")return!1}for(var n of Object.keys(r.style))if(r.style[n]!==e.style[n])return!1;for(var a of Object.keys(e.style))if(r.style[a]!==e.style[a])return!1;return!0},R0=r=>{for(var e=0;e<r.length-1;e++){var t=r[e],n=r[e+1];t instanceof Pe&&n instanceof Pe&&hu(t,n)&&(t.text+=n.text,t.height=Math.max(t.height,n.height),t.depth=Math.max(t.depth,n.depth),t.italic=n.italic,r.splice(e+1,1),e--)}return r},fs=function(e){for(var t=0,n=0,a=0,s=0;s<e.children.length;s++){var i=e.children[s];i.height>t&&(t=i.height),i.depth>n&&(n=i.depth),i.maxFontSize>a&&(a=i.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=a},I=function(e,t,n,a){var s=new Wt(e,t,n,a);return fs(s),s},Vt=(r,e,t,n)=>new Wt(r,e,t,n),xr=function(e,t,n){var a=I([e],[],t);return a.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),a.style.borderBottomWidth=j(a.height),a.maxFontSize=1,a},fu=function(e,t,n,a){var s=new wr(e,t,n,a);return fs(s),s},zt=function(e){var t=new Ut(e);return fs(t),t},kr=function(e,t){return e instanceof Ut?I([],[e],t):e},gu=function(e){if(e.positionType==="individualShift"){for(var t=e.children,n=[t[0]],a=-t[0].shift-t[0].elem.depth,s=a,i=1;i<t.length;i++){var o=-t[i].shift-s-t[i].elem.depth,c=o-(t[i-1].elem.height+t[i-1].elem.depth);s=s+o,n.push({type:"kern",size:c}),n.push(t[i])}return{children:n,depth:a}}var m;if(e.positionType==="top"){for(var u=e.positionData,h=0;h<e.children.length;h++){var f=e.children[h];u-=f.type==="kern"?f.size:f.elem.height+f.elem.depth}m=u}else if(e.positionType==="bottom")m=-e.positionData;else{var b=e.children[0];if(b.type!=="elem")throw new Error('First child must have type "elem".');if(e.positionType==="shift")m=-b.elem.depth-e.positionData;else if(e.positionType==="firstBaseline")m=-b.elem.depth;else throw new Error("Invalid positionType "+e.positionType+".")}return{children:e.children,depth:m}},le=function(e,t){for(var{children:n,depth:a}=gu(e),s=0,i=0;i<n.length;i++){var o=n[i];if(o.type==="elem"){var c=o.elem;s=Math.max(s,c.maxFontSize,c.height)}}s+=2;var m=I(["pstrut"],[]);m.style.height=j(s);for(var u=[],h=a,f=a,b=a,w=0;w<n.length;w++){var g=n[w];if(g.type==="kern")b+=g.size;else{var y=g.elem,x=g.wrapperClasses||[],A=g.wrapperStyle||{},M=I(x,[m,y],void 0,A);M.style.top=j(-s-b-y.depth),g.marginLeft&&(M.style.marginLeft=g.marginLeft),g.marginRight&&(M.style.marginRight=g.marginRight),u.push(M),b+=y.height+y.depth}h=Math.min(h,b),f=Math.max(f,b)}var E=I(["vlist"],u);E.style.height=j(f);var T;if(h<0){var D=I([],[]),$=I(["vlist"],[D]);$.style.height=j(-h);var z=I(["vlist-s"],[new Pe("\u200B")]);T=[I(["vlist-r"],[E,z]),I(["vlist-r"],[$])]}else T=[I(["vlist-r"],[E])];var O=I(["vlist-t"],T);return T.length===2&&O.classes.push("vlist-t2"),O.height=f,O.depth=-h,O},z0=(r,e)=>{var t=I(["mspace"],[],e),n=ke(r,e);return t.style.marginRight=j(n),t},En=(r,e,t)=>{var n,a;switch(r){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=r}return e==="textbf"&&t==="textit"?a="BoldItalic":e==="textbf"?a="Bold":t==="textit"?a="Italic":a="Regular",n+"-"+a},Qa={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},F0={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},O0=function(e,t){var[n,a,s]=F0[e],i=new gt(n),o=new lt([i],{width:j(a),height:j(s),style:"width:"+j(a),viewBox:"0 0 "+1e3*a+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),c=Vt(["overlay"],[o],t);return c.height=s,c.style.height=j(s),c.style.width=j(a),c},xe={number:3,unit:"mu"},sr={number:4,unit:"mu"},Mt={number:5,unit:"mu"},vu={mord:{mop:xe,mbin:sr,mrel:Mt,minner:xe},mop:{mord:xe,mop:xe,mrel:Mt,minner:xe},mbin:{mord:sr,mop:sr,mopen:sr,minner:sr},mrel:{mord:Mt,mop:Mt,mopen:Mt,minner:Mt},mopen:{},mclose:{mop:xe,mbin:sr,mrel:Mt,minner:xe},mpunct:{mord:xe,mop:xe,mrel:Mt,mopen:xe,mclose:xe,mpunct:xe,minner:xe},minner:{mord:xe,mop:xe,mbin:sr,mrel:Mt,mopen:xe,mpunct:xe,minner:xe}},bu={mord:{mop:xe},mop:{mord:xe,mop:xe},mbin:{},mrel:{},mopen:{},mclose:{mop:xe},mpunct:{},minner:{mop:xe}},I0={},Ln={},Bn={};Pn=function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},Ce=function(e){return e.type==="ordgroup"?e.body:[e]},yu=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),wu=new Set(["rightmost","mrel","mclose","mpunct"]),xu={display:Q.DISPLAY,text:Q.TEXT,script:Q.SCRIPT,scriptscript:Q.SCRIPTSCRIPT},ku={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Ee=function(e,t,n,a){a===void 0&&(a=[null,null]);for(var s=[],i=0;i<e.length;i++){var o=ce(e[i],t);if(o instanceof Ut){var c=o.children;s.push(...c)}else s.push(o)}if(R0(s),!n)return s;var m=t;if(e.length===1){var u=e[0];u.type==="sizing"?m=t.havingSize(u.size):u.type==="styling"&&(m=t.havingStyle(xu[u.style]))}var h=I([a[0]||"leftmost"],[],t),f=I([a[1]||"rightmost"],[],t),b=n==="root";return es(s,(w,g)=>{var y=g.classes[0],x=w.classes[0];y==="mbin"&&wu.has(x)?g.classes[0]="mord":x==="mbin"&&yu.has(y)&&(w.classes[0]="mord")},{node:h},f,b),es(s,(w,g)=>{var y,x,A=rs(g),M=rs(w),E=A&&M?w.hasClass("mtight")?(y=bu[A])==null?void 0:y[M]:(x=vu[A])==null?void 0:x[M]:null;if(E)return z0(E,m)},{node:h},f,b),s},es=function(e,t,n,a,s){a&&e.push(a);for(var i=0;i<e.length;i++){var o=e[i],c=_0(o);if(c){es(c.children,t,n,null,s);continue}var m=!o.hasClass("mspace");if(m){var u=t(o,n.node);u&&(n.insertAfter?n.insertAfter(u):(e.unshift(u),i++))}m?n.node=o:s&&o.hasClass("newline")&&(n.node=I(["leftmost"])),n.insertAfter=(h=>f=>{e.splice(h+1,0,f),i++})(i)}a&&e.pop()},_0=function(e){return e instanceof Ut||e instanceof wr||e instanceof Wt&&e.hasClass("enclosing")?e:null},ts=function(e,t){var n=_0(e);if(n){var a=n.children;if(a.length){if(t==="right")return ts(a[a.length-1],"right");if(t==="left")return ts(a[0],"left")}}return e},rs=function(e,t){if(!e)return null;t&&(e=ts(e,t));var n=e.classes[0];return ku[n]||null},Gr=function(e,t){var n=["nulldelimiter"].concat(e.baseSizingClasses());return I(t.concat(n))},ce=function(e,t,n){if(!e)return I();if(Ln[e.type]){var a=Ln[e.type](e,t);if(n&&t.size!==n.size){a=I(t.sizingClasses(n),[a],t);var s=t.sizeMultiplier/n.sizeMultiplier;a.height*=s,a.depth*=s}return a}else throw new N("Got group of unknown type: '"+e.type+"'")};_=class{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=Gt(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof Se&&this.children[n+1]instanceof Se){for(var a=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof Se;)a+=this.children[++n].toText();e.appendChild(new Se(a).toNode())}else e.appendChild(this.children[n].toNode());return e}toMarkup(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=Ne(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+Ne(Gt(this.classes))+'"'),e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</"+this.type+">",e}toText(){return this.children.map(e=>e.toText()).join("")}},Se=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return Ne(this.toText())}toText(){return this.text}},Hn=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character="\u200A":e>=.1666&&e<=.1667?this.character="\u2009":e>=.2222&&e<=.2223?this.character="\u2005":e>=.2777&&e<=.2778?this.character="\u2005\u200A":e>=-.05556&&e<=-.05555?this.character="\u200A\u2063":e>=-.1667&&e<=-.1666?this.character="\u2009\u2063":e>=-.2223&&e<=-.2222?this.character="\u205F\u2063":e>=-.2778&&e<=-.2777?this.character="\u2005\u2063":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",j(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+j(this.width)+'"/>'}toText(){return this.character?this.character:" "}},Su=new Set(["\\imath","\\jmath"]),Au=new Set(["mrow","mtable"]),tt=function(e,t,n){return ve[t][e]&&ve[t][e].replace&&e.charCodeAt(0)!==55349&&!(E0.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(e=ve[t][e].replace),new Se(e)},gs=function(e){return e.length===1?e[0]:new _("mrow",e)},Du={mathit:"italic",boldsymbol:r=>r.type==="textord"?"bold":"bold-italic",mathbf:"bold",mathbb:"double-struck",mathsfit:"sans-serif-italic",mathfrak:"fraktur",mathscr:"script",mathcal:"script",mathsf:"sans-serif",mathtt:"monospace"},vs=(r,e)=>{if(r.mode==="text"){if(e.fontFamily==="texttt")return"monospace";if(e.fontFamily==="textsf")return e.fontShape==="textit"&&e.fontWeight==="textbf"?"sans-serif-bold-italic":e.fontShape==="textit"?"sans-serif-italic":e.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(e.fontShape==="textit"&&e.fontWeight==="textbf")return"bold-italic";if(e.fontShape==="textit")return"italic";if(e.fontWeight==="textbf")return"bold"}var t=e.font;if(!t||t==="mathnormal")return null;var n=r.mode,a=Du[t];if(a)return typeof a=="function"?a(r):a;var s=r.text;if(Su.has(s))return null;if(ve[n][s]){var i=ve[n][s].replace;i&&(s=i)}var o=Qa[t].fontName;return ps(s,o,n)?Qa[t].variant:null};Ke=function(e,t,n){if(e.length===1){var a=me(e[0],t);return n&&a instanceof _&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var s=[],i,o=0;o<e.length;o++){var c=me(e[o],t);if(c instanceof _&&i instanceof _){if(c.type==="mtext"&&i.type==="mtext"&&c.getAttribute("mathvariant")===i.getAttribute("mathvariant")){i.children.push(...c.children);continue}else if(c.type==="mn"&&i.type==="mn"){i.children.push(...c.children);continue}else if(Fa(c)&&i.type==="mn"){i.children.push(...c.children);continue}else if(c.type==="mn"&&Fa(i))c.children=[...i.children,...c.children],s.pop();else if((c.type==="msup"||c.type==="msub")&&c.children.length>=1&&(i.type==="mn"||Fa(i))){var m=c.children[0];m instanceof _&&m.type==="mn"&&(m.children=[...i.children,...m.children],s.pop())}else if(i.type==="mi"&&i.children.length===1){var u=i.children[0];if(u instanceof Se&&u.text==="\u0338"&&(c.type==="mo"||c.type==="mi"||c.type==="mn")){var h=c.children[0];h instanceof Se&&h.text.length>0&&(h.text=h.text.slice(0,1)+"\u0338"+h.text.slice(1),s.pop())}}}s.push(c),i=c}return s},Zt=function(e,t,n){return gs(Ke(e,t,n))},me=function(e,t){if(!e)return new _("mrow");if(Bn[e.type])return Bn[e.type](e,t);throw new N("Got group of unknown type: '"+e.type+"'")};Tu=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],r0=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],n0=function(e,t){return t.size<2?e:Tu[e-1][t.size-1]},qn=class r{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||r.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=r0[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(t,e),new r(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:n0(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:r0[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=n0(r.BASESIZE,e);return this.size===t&&this.textSize===r.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==r.BASESIZE?["sizing","reset-size"+this.size,"size"+r.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=cu(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};qn.BASESIZE=6;j0=function(e){return new qn({style:e.displayMode?Q.DISPLAY:Q.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},L0=function(e,t){if(t.displayMode){var n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=I(n,[e])}return e},Cu=function(e,t,n){var a=j0(n),s;if(n.output==="mathml")return t0(e,t,a,n.displayMode,!0);if(n.output==="html"){var i=ns(e,a);s=I(["katex"],[i])}else{var o=t0(e,t,a,n.displayMode,!1),c=ns(e,a);s=I(["katex"],[o,c])}return L0(s,n)},Mu=function(e,t,n){var a=j0(n),s=ns(e,a),i=I(["katex"],[s]);return L0(i,n)},$u={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",underbracket:"\u23B5",overbracket:"\u23B4",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},Zn=function(e){var t=new _("mo",[new Se($u[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},Eu={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Ru=new Set(["widehat","widecheck","widetilde","utilde"]),Xn=function(e,t){function n(){var o=4e5,c=e.label.slice(1);if(Ru.has(c)&&"base"in e){var m=e.base.type==="ordgroup"?e.base.body.length:1,u,h,f;if(m>5)c==="widehat"||c==="widecheck"?(u=420,o=2364,f=.42,h=c+"4"):(u=312,o=2340,f=.34,h="tilde4");else{var b=[1,1,2,2,3,3][m];c==="widehat"||c==="widecheck"?(o=[0,1062,2364,2364,2364][b],u=[0,239,300,360,420][b],f=[0,.24,.3,.3,.36,.42][b],h=c+b):(o=[0,600,1033,2339,2340][b],u=[0,260,286,306,312][b],f=[0,.26,.286,.3,.306,.34][b],h="tilde"+b)}var w=new gt(h),g=new lt([w],{width:"100%",height:j(f),viewBox:"0 0 "+o+" "+u,preserveAspectRatio:"none"});return{span:Vt([],[g],t),minWidth:0,height:f}}else{var y=[],x=Eu[c];if(!x)throw new Error('No SVG data for "'+c+'".');var[A,M,E]=x,T=E/1e3,D=A.length,$,z;if(D===1){if(x.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+c+'".');$=["hide-tail"],z=[x[3]]}else if(D===2)$=["halfarrow-left","halfarrow-right"],z=["xMinYMin","xMaxYMin"];else if(D===3)$=["brace-left","brace-center","brace-right"],z=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
257
- `+D+" children.");for(var O=0;O<D;O++){var U=new gt(A[O]),L=new lt([U],{width:"400em",height:j(T),viewBox:"0 0 "+o+" "+E,preserveAspectRatio:z[O]+" slice"}),X=Vt([$[O]],[L],t);if(D===1)return{span:X,minWidth:M,height:T};X.style.height=j(T),y.push(X)}return{span:I(["stretchy"],y,t),minWidth:M,height:T}}}var{span:a,minWidth:s,height:i}=n();return a.height=i,a.style.height=j(i),s>0&&(a.style.minWidth=j(s)),a},zu=function(e,t,n,a,s){var i,o=e.height+e.depth+n+a;if(/fbox|color|angl/.test(t)){if(i=I(["stretchy",t],[],s),t==="fbox"){var c=s.color&&s.getColor();c&&(i.style.borderColor=c)}}else{var m=[];/^[bx]cancel$/.test(t)&&m.push(new Ur({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&m.push(new Ur({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var u=new lt(m,{width:"100%",height:j(o)});i=Vt([],[u],s)}return i.height=o,i.style.height=j(o),i},Fu={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Ou={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};B0=r=>{if(r instanceof Pe)return r;if(ou(r)&&r.children.length===1)return B0(r.children[0])},bs=(r,e)=>{var t,n,a;r&&r.type==="supsub"?(n=re(r.base,"accent"),t=n.base,r.base=t,a=iu(ce(r,e)),r.base=n):(n=re(r,"accent"),t=n.base);var s=ce(t,e.havingCrampedStyle()),i=n.isShifty&&Et(t),o=0;if(i){var c,m;o=(c=(m=B0(s))==null?void 0:m.skew)!=null?c:0}var u=n.label==="\\c",h=u?s.height+s.depth:Math.min(s.height,e.fontMetrics().xHeight),f;if(n.isStretchy)f=Xn(n,e),f=le({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+j(2*o)+")",marginLeft:j(2*o)}:void 0}]});else{var b,w;n.label==="\\vec"?(b=O0("vec",e),w=F0.vec[1]):(b=Vn({type:"textord",mode:n.mode,text:n.label},e,"textord"),b=su(b),b.italic=0,w=b.width,u&&(h+=b.depth)),f=I(["accent-body"],[b]);var g=n.label==="\\textcircled";g&&(f.classes.push("accent-full"),h=s.height);var y=o;g||(y-=w/2),f.style.left=j(y),n.label==="\\textcircled"&&(f.style.top=".2em"),f=le({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-h},{type:"elem",elem:f}]})}var x=I(["mord","accent"],[f],e);return a?(a.children[0]=x,a.height=Math.max(x.height,a.height),a.classes[0]="mord",a):x},P0=(r,e)=>{var t=r.isStretchy?Zn(r.label):new _("mo",[tt(r.label,r.mode)]),n=new _("mover",[me(r.base,e),t]);return n.setAttribute("accent","true"),n},_u=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(r=>"\\"+r).join("|"));P({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(r,e)=>{var t=Pn(e[0]),n=!_u.test(r.funcName),a=!n||r.funcName==="\\widehat"||r.funcName==="\\widetilde"||r.funcName==="\\widecheck";return{type:"accent",mode:r.parser.mode,label:r.funcName,isStretchy:n,isShifty:a,base:t}},htmlBuilder:bs,mathmlBuilder:P0});P({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(r,e)=>{var t=e[0],n=r.parser.mode;return n==="math"&&(r.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+r.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:r.funcName,isStretchy:!1,isShifty:!0,base:t}},htmlBuilder:bs,mathmlBuilder:P0});P({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(r,e)=>{var{parser:t,funcName:n}=r,a=e[0];return{type:"accentUnder",mode:t.mode,label:n,base:a}},htmlBuilder:(r,e)=>{var t=ce(r.base,e),n=Xn(r,e),a=r.label==="\\utilde"?.12:0,s=le({positionType:"top",positionData:t.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:t}]});return I(["mord","accentunder"],[s],e)},mathmlBuilder:(r,e)=>{var t=Zn(r.label),n=new _("munder",[me(r.base,e),t]);return n.setAttribute("accentunder","true"),n}});zn=r=>{var e=new _("mpadded",r?[r]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};P({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(r,e,t){var{parser:n,funcName:a}=r;return{type:"xArrow",mode:n.mode,label:a,body:e[0],below:t[0]}},htmlBuilder(r,e){var t=e.style,n=e.havingStyle(t.sup()),a=kr(ce(r.body,n,e),e),s=r.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(s+"-arrow-pad");var i;r.below&&(n=e.havingStyle(t.sub()),i=kr(ce(r.below,n,e),e),i.classes.push(s+"-arrow-pad"));var o=Xn(r,e),c=-e.fontMetrics().axisHeight+.5*o.height,m=-e.fontMetrics().axisHeight-.5*o.height-.111;(a.depth>.25||r.label==="\\xleftequilibrium")&&(m-=a.depth);var u;if(i){var h=-e.fontMetrics().axisHeight+i.height+.5*o.height+.111;u=le({positionType:"individualShift",children:[{type:"elem",elem:a,shift:m},{type:"elem",elem:o,shift:c,wrapperClasses:["svg-align"]},{type:"elem",elem:i,shift:h}]})}else u=le({positionType:"individualShift",children:[{type:"elem",elem:a,shift:m},{type:"elem",elem:o,shift:c,wrapperClasses:["svg-align"]}]});return I(["mrel","x-arrow"],[u],e)},mathmlBuilder(r,e){var t=Zn(r.label);t.setAttribute("minsize",r.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(r.body){var a=zn(me(r.body,e));if(r.below){var s=zn(me(r.below,e));n=new _("munderover",[t,s,a])}else n=new _("mover",[t,a])}else if(r.below){var i=zn(me(r.below,e));n=new _("munder",[t,i])}else n=zn(),n=new _("mover",[t,n]);return n}});P({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(r,e){var{parser:t,funcName:n}=r,a=e[0];return{type:"mclass",mode:t.mode,mclass:"m"+n.slice(5),body:Ce(a),isCharacterBox:Et(a)}},htmlBuilder:H0,mathmlBuilder:q0});Kn=r=>{var e=r.type==="ordgroup"&&r.body.length?r.body[0]:r;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};P({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(r,e){var{parser:t}=r;return{type:"mclass",mode:t.mode,mclass:Kn(e[0]),body:Ce(e[1]),isCharacterBox:Et(e[1])}}});P({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(r,e){var{parser:t,funcName:n}=r,a=e[1],s=e[0],i;n!=="\\stackrel"?i=Kn(a):i="mrel";var o={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:Ce(a)},c={type:"supsub",mode:s.mode,base:o,sup:n==="\\underset"?null:s,sub:n==="\\underset"?s:null};return{type:"mclass",mode:t.mode,mclass:i,body:[c],isCharacterBox:Et(c)}},htmlBuilder:H0,mathmlBuilder:q0});P({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"pmb",mode:t.mode,mclass:Kn(e[0]),body:Ce(e[0])}},htmlBuilder(r,e){var t=Ee(r.body,e,!0),n=I([r.mclass],t,e);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(r,e){var t=Ke(r.body,e),n=new _("mstyle",t);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});Nu={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},a0=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),s0=r=>r.type==="textord"&&r.text==="@",ju=(r,e)=>(r.type==="mathord"||r.type==="atom")&&r.text===e;P({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:n}=r;return{type:"cdlabel",mode:t.mode,side:n.slice(4),label:e[0]}},htmlBuilder(r,e){var t=e.havingStyle(e.style.sup()),n=kr(ce(r.label,t,e),e);return n.classes.push("cd-label-"+r.side),n.style.bottom=j(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(r,e){var t=new _("mrow",[me(r.label,e)]);return t=new _("mpadded",[t]),t.setAttribute("width","0"),r.side==="left"&&t.setAttribute("lspace","-1width"),t.setAttribute("voffset","0.7em"),t=new _("mstyle",[t]),t.setAttribute("displaystyle","false"),t.setAttribute("scriptlevel","1"),t}});P({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(r,e){var{parser:t}=r;return{type:"cdlabelparent",mode:t.mode,fragment:e[0]}},htmlBuilder(r,e){var t=kr(ce(r.fragment,e),e);return t.classes.push("cd-vert-arrow"),t},mathmlBuilder(r,e){return new _("mrow",[me(r.fragment,e)])}});P({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(r,e){for(var{parser:t}=r,n=re(e[0],"ordgroup"),a=n.body,s="",i=0;i<a.length;i++){var o=re(a[i],"textord");s+=o.text}var c=parseInt(s),m;if(isNaN(c))throw new N("\\@char has non-numeric argument "+s);if(c<0||c>=1114111)throw new N("\\@char with invalid code point "+s);return c<=65535?m=String.fromCharCode(c):(c-=65536,m=String.fromCharCode((c>>10)+55296,(c&1023)+56320)),{type:"textord",mode:t.mode,text:m}}});U0=(r,e)=>{var t=Ee(r.body,e.withColor(r.color),!1);return zt(t)},G0=(r,e)=>{var t=Ke(r.body,e.withColor(r.color)),n=new _("mstyle",t);return n.setAttribute("mathcolor",r.color),n};P({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(r,e){var{parser:t}=r,n=re(e[0],"color-token").color,a=e[1];return{type:"color",mode:t.mode,color:n,body:Ce(a)}},htmlBuilder:U0,mathmlBuilder:G0});P({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(r,e){var{parser:t,breakOnTokenText:n}=r,a=re(e[0],"color-token").color;t.gullet.macros.set("\\current@color",a);var s=t.parseExpression(!0,n);return{type:"color",mode:t.mode,color:a,body:s}},htmlBuilder:U0,mathmlBuilder:G0});P({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(r,e,t){var{parser:n}=r,a=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,s=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:s,size:a&&re(a,"size").value}},htmlBuilder(r,e){var t=I(["mspace"],[],e);return r.newLine&&(t.classes.push("newline"),r.size&&(t.style.marginTop=j(ke(r.size,e)))),t},mathmlBuilder(r,e){var t=new _("mspace");return r.newLine&&(t.setAttribute("linebreak","newline"),r.size&&t.setAttribute("height",j(ke(r.size,e)))),t}});as={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},W0=r=>{var e=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new N("Expected a control sequence",r);return e},Pu=r=>{var e=r.gullet.popToken();return e.text==="="&&(e=r.gullet.popToken(),e.text===" "&&(e=r.gullet.popToken())),e},V0=(r,e,t,n)=>{var a=r.gullet.macros.get(t.text);a==null&&(t.noexpand=!0,a={tokens:[t],numArgs:0,unexpandable:!r.gullet.isExpandable(t.text)}),r.gullet.macros.set(e,a,n)};P({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(r){var{parser:e,funcName:t}=r;e.consumeSpaces();var n=e.fetch();if(as[n.text])return(t==="\\global"||t==="\\\\globallong")&&(n.text=as[n.text]),re(e.parseFunction(),"internal");throw new N("Invalid token after macro prefix",n)}});P({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,n=e.gullet.popToken(),a=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new N("Expected a control sequence",n);for(var s=0,i,o=[[]];e.gullet.future().text!=="{";)if(n=e.gullet.popToken(),n.text==="#"){if(e.gullet.future().text==="{"){i=e.gullet.future(),o[s].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new N('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==s+1)throw new N('Argument number "'+n.text+'" out of order');s++,o.push([])}else{if(n.text==="EOF")throw new N("Expected a macro definition");o[s].push(n.text)}var{tokens:c}=e.gullet.consumeArg();return i&&c.unshift(i),(t==="\\edef"||t==="\\xdef")&&(c=e.gullet.expandTokens(c),c.reverse()),e.gullet.macros.set(a,{tokens:c,numArgs:s,delimiters:o},t===as[t]),{type:"internal",mode:e.mode}}});P({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,n=W0(e.gullet.popToken());e.gullet.consumeSpaces();var a=Pu(e);return V0(e,n,a,t==="\\\\globallet"),{type:"internal",mode:e.mode}}});P({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,n=W0(e.gullet.popToken()),a=e.gullet.popToken(),s=e.gullet.popToken();return V0(e,n,s,t==="\\\\globalfuture"),e.gullet.pushToken(s),e.gullet.pushToken(a),{type:"internal",mode:e.mode}}});Br=function(e,t,n){var a=ve.math[e]&&ve.math[e].replace,s=ps(a||e,t,n);if(!s)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return s},ys=function(e,t,n,a){var s=n.havingBaseStyle(t),i=I(a.concat(s.sizingClasses(n)),[e],n),o=s.sizeMultiplier/n.sizeMultiplier;return i.height*=o,i.depth*=o,i.maxFontSize=s.sizeMultiplier,i},Z0=function(e,t,n){var a=t.havingBaseStyle(n),s=(1-t.sizeMultiplier/a.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=j(s),e.height-=s,e.depth+=s},Hu=function(e,t,n,a,s,i){var o=Le(e,"Main-Regular",s,a),c=ys(o,t,a,i);return n&&Z0(c,a,t),c},qu=function(e,t,n,a){return Le(e,"Size"+t+"-Regular",n,a)},X0=function(e,t,n,a,s,i){var o=qu(e,t,s,a),c=ys(I(["delimsizing","size"+t],[o],a),Q.TEXT,a,i);return n&&Z0(c,a,Q.TEXT),c},Oa=function(e,t,n){var a;t==="Size1-Regular"?a="delim-size1":a="delim-size4";var s=I(["delimsizinginner",a],[I([],[Le(e,t,n)])]);return{type:"elem",elem:s}},Ia=function(e,t,n){var a=ft["Size4-Regular"][e.charCodeAt(0)]?ft["Size4-Regular"][e.charCodeAt(0)][4]:ft["Size1-Regular"][e.charCodeAt(0)][4],s=new gt("inner",Qd(e,Math.round(1e3*t))),i=new lt([s],{width:j(a),height:j(t),style:"width:"+j(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),o=Vt([],[i],n);return o.height=t,o.style.height=j(t),o.style.width=j(a),{type:"elem",elem:o}},ss=.008,Fn={type:"kern",size:-1*ss},Uu=new Set(["|","\\lvert","\\rvert","\\vert"]),Gu=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),Y0=function(e,t,n,a,s,i){var o,c,m,u,h="",f=0;o=m=u=e,c=null;var b="Size1-Regular";e==="\\uparrow"?m=u="\u23D0":e==="\\Uparrow"?m=u="\u2016":e==="\\downarrow"?o=m="\u23D0":e==="\\Downarrow"?o=m="\u2016":e==="\\updownarrow"?(o="\\uparrow",m="\u23D0",u="\\downarrow"):e==="\\Updownarrow"?(o="\\Uparrow",m="\u2016",u="\\Downarrow"):Uu.has(e)?(m="\u2223",h="vert",f=333):Gu.has(e)?(m="\u2225",h="doublevert",f=556):e==="["||e==="\\lbrack"?(o="\u23A1",m="\u23A2",u="\u23A3",b="Size4-Regular",h="lbrack",f=667):e==="]"||e==="\\rbrack"?(o="\u23A4",m="\u23A5",u="\u23A6",b="Size4-Regular",h="rbrack",f=667):e==="\\lfloor"||e==="\u230A"?(m=o="\u23A2",u="\u23A3",b="Size4-Regular",h="lfloor",f=667):e==="\\lceil"||e==="\u2308"?(o="\u23A1",m=u="\u23A2",b="Size4-Regular",h="lceil",f=667):e==="\\rfloor"||e==="\u230B"?(m=o="\u23A5",u="\u23A6",b="Size4-Regular",h="rfloor",f=667):e==="\\rceil"||e==="\u2309"?(o="\u23A4",m=u="\u23A5",b="Size4-Regular",h="rceil",f=667):e==="("||e==="\\lparen"?(o="\u239B",m="\u239C",u="\u239D",b="Size4-Regular",h="lparen",f=875):e===")"||e==="\\rparen"?(o="\u239E",m="\u239F",u="\u23A0",b="Size4-Regular",h="rparen",f=875):e==="\\{"||e==="\\lbrace"?(o="\u23A7",c="\u23A8",u="\u23A9",m="\u23AA",b="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(o="\u23AB",c="\u23AC",u="\u23AD",m="\u23AA",b="Size4-Regular"):e==="\\lgroup"||e==="\u27EE"?(o="\u23A7",u="\u23A9",m="\u23AA",b="Size4-Regular"):e==="\\rgroup"||e==="\u27EF"?(o="\u23AB",u="\u23AD",m="\u23AA",b="Size4-Regular"):e==="\\lmoustache"||e==="\u23B0"?(o="\u23A7",u="\u23AD",m="\u23AA",b="Size4-Regular"):(e==="\\rmoustache"||e==="\u23B1")&&(o="\u23AB",u="\u23A9",m="\u23AA",b="Size4-Regular");var w=Br(o,b,s),g=w.height+w.depth,y=Br(m,b,s),x=y.height+y.depth,A=Br(u,b,s),M=A.height+A.depth,E=0,T=1;if(c!==null){var D=Br(c,b,s);E=D.height+D.depth,T=2}var $=g+M+E,z=Math.max(0,Math.ceil((t-$)/(T*x))),O=$+z*T*x,U=a.fontMetrics().axisHeight;n&&(U*=a.sizeMultiplier);var L=O/2-U,X=[];if(h.length>0){var V=O-g-M,Z=Math.round(O*1e3),G=eu(h,Math.round(V*1e3)),te=new gt(h,G),oe=j(f/1e3),he=j(Z/1e3),fe=new lt([te],{width:oe,height:he,viewBox:"0 0 "+f+" "+Z}),De=Vt([],[fe],a);De.height=Z/1e3,De.style.width=oe,De.style.height=he,X.push({type:"elem",elem:De})}else{if(X.push(Oa(u,b,s)),X.push(Fn),c===null){var Te=O-g-M+2*ss;X.push(Ia(m,Te,a))}else{var ze=(O-g-M-E)/2+2*ss;X.push(Ia(m,ze,a)),X.push(Fn),X.push(Oa(c,b,s)),X.push(Fn),X.push(Ia(m,ze,a))}X.push(Fn),X.push(Oa(o,b,s))}var ge=a.havingBaseStyle(Q.TEXT),Ie=le({positionType:"bottom",positionData:L,children:X});return ys(I(["delimsizing","mult"],[Ie],ge),Q.TEXT,a,i)},_a=80,Na=.08,ja=function(e,t,n,a,s){var i=Kd(e,a,n),o=new gt(e,i),c=new lt([o],{width:"400em",height:j(t),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return Vt(["hide-tail"],[c],s)},Wu=function(e,t){var n=t.havingBaseSizing(),a=to("\\surd",e*n.sizeMultiplier,eo,n),s=n.sizeMultiplier,i=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,c,m,u,h;return a.type==="small"?(u=1e3+1e3*i+_a,e<1?s=1:e<1.4&&(s=.7),c=(1+i+Na)/s,m=(1+i)/s,o=ja("sqrtMain",c,u,i,t),o.style.minWidth="0.853em",h=.833/s):a.type==="large"?(u=(1e3+_a)*Pr[a.size],m=(Pr[a.size]+i)/s,c=(Pr[a.size]+i+Na)/s,o=ja("sqrtSize"+a.size,c,u,i,t),o.style.minWidth="1.02em",h=1/s):(c=e+i+Na,m=e+i,u=Math.floor(1e3*e+i)+_a,o=ja("sqrtTall",c,u,i,t),o.style.minWidth="0.742em",h=1.056),o.height=m,o.style.height=j(c),{span:o,advanceWidth:h,ruleWidth:(t.fontMetrics().sqrtRuleThickness+i)*s}},J0=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"]),Vu=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"]),K0=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Pr=[0,1.2,1.8,2.4,3],Q0=function(e,t,n,a,s){if(e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle"),J0.has(e)||K0.has(e))return X0(e,t,!1,n,a,s);if(Vu.has(e))return Y0(e,Pr[t],!1,n,a,s);throw new N("Illegal delimiter: '"+e+"'")},Zu=[{type:"small",style:Q.SCRIPTSCRIPT},{type:"small",style:Q.SCRIPT},{type:"small",style:Q.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Xu=[{type:"small",style:Q.SCRIPTSCRIPT},{type:"small",style:Q.SCRIPT},{type:"small",style:Q.TEXT},{type:"stack"}],eo=[{type:"small",style:Q.SCRIPTSCRIPT},{type:"small",style:Q.SCRIPT},{type:"small",style:Q.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Yu=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";var t=e.type;throw new Error("Add support for delim type '"+t+"' here.")},to=function(e,t,n,a){for(var s=Math.min(2,3-a.style.size),i=s;i<n.length;i++){var o=n[i];if(o.type==="stack")break;var c=Br(e,Yu(o),"math"),m=c.height+c.depth;if(o.type==="small"){var u=a.havingBaseStyle(o.style);m*=u.sizeMultiplier}if(m>t)return o}return n[n.length-1]},is=function(e,t,n,a,s,i){e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle");var o;K0.has(e)?o=Zu:J0.has(e)?o=eo:o=Xu;var c=to(e,t,o,a);return c.type==="small"?Hu(e,c.style,n,a,s,i):c.type==="large"?X0(e,c.size,n,a,s,i):Y0(e,t,n,a,s,i)},La=function(e,t,n,a,s,i){var o=a.fontMetrics().axisHeight*a.sizeMultiplier,c=901,m=5/a.fontMetrics().ptPerEm,u=Math.max(t-o,n+o),h=Math.max(u/500*c,2*u-m);return is(e,h,!0,a,s,i)},i0={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Ju=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);P({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(r,e)=>{var t=Qn(e[0],r);return{type:"delimsizing",mode:r.parser.mode,size:i0[r.funcName].size,mclass:i0[r.funcName].mclass,delim:t.text}},htmlBuilder:(r,e)=>r.delim==="."?I([r.mclass]):Q0(r.delim,r.size,e,r.mode,[r.mclass]),mathmlBuilder:r=>{var e=[];r.delim!=="."&&e.push(tt(r.delim,r.mode));var t=new _("mo",e);r.mclass==="mopen"||r.mclass==="mclose"?t.setAttribute("fence","true"):t.setAttribute("fence","false"),t.setAttribute("stretchy","true");var n=j(Pr[r.size]);return t.setAttribute("minsize",n),t.setAttribute("maxsize",n),t}});P({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=r.parser.gullet.macros.get("\\current@color");if(t&&typeof t!="string")throw new N("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:r.parser.mode,delim:Qn(e[0],r).text,color:t}}});P({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=Qn(e[0],r),n=r.parser;++n.leftrightDepth;var a=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var s=re(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:a,left:t.text,right:s.delim,rightColor:s.color}},htmlBuilder:(r,e)=>{l0(r);for(var t=Ee(r.body,e,!0,["mopen","mclose"]),n=0,a=0,s=!1,i=0;i<t.length;i++){var o=t[i];o0(o)?s=!0:(n=Math.max(t[i].height,n),a=Math.max(t[i].depth,a))}n*=e.sizeMultiplier,a*=e.sizeMultiplier;var c;if(r.left==="."?c=Gr(e,["mopen"]):c=La(r.left,n,a,e,r.mode,["mopen"]),t.unshift(c),s)for(var m=1;m<t.length;m++){var u=t[m];if(o0(u)){var h=u.isMiddle;t[m]=La(h.delim,n,a,h.options,r.mode,[])}}var f;if(r.right===".")f=Gr(e,["mclose"]);else{var b=r.rightColor?e.withColor(r.rightColor):e;f=La(r.right,n,a,b,r.mode,["mclose"])}return t.push(f),I(["minner"],t,e)},mathmlBuilder:(r,e)=>{l0(r);var t=Ke(r.body,e);if(r.left!=="."){var n=new _("mo",[tt(r.left,r.mode)]);n.setAttribute("fence","true"),t.unshift(n)}if(r.right!=="."){var a=new _("mo",[tt(r.right,r.mode)]);a.setAttribute("fence","true"),r.rightColor&&a.setAttribute("mathcolor",r.rightColor),t.push(a)}return gs(t)}});P({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=Qn(e[0],r);if(!r.parser.leftrightDepth)throw new N("\\middle without preceding \\left",t);return{type:"middle",mode:r.parser.mode,delim:t.text}},htmlBuilder:(r,e)=>{var t;return r.delim==="."?t=Gr(e,[]):(t=Q0(r.delim,1,e,r.mode,[]),t.isMiddle={delim:r.delim,options:e}),t},mathmlBuilder:(r,e)=>{var t=r.delim==="\\vert"||r.delim==="|"?tt("|","text"):tt(r.delim,r.mode),n=new _("mo",[t]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});ea=(r,e)=>{var t=kr(ce(r.body,e),e),n=r.label.slice(1),a=e.sizeMultiplier,s,i,o=Et(r.body);if(n==="sout")s=I(["stretchy","sout"]),s.height=e.fontMetrics().defaultRuleThickness/a,i=-.5*e.fontMetrics().xHeight;else if(n==="phase"){var c=ke({number:.6,unit:"pt"},e),m=ke({number:.35,unit:"ex"},e),u=e.havingBaseSizing();a=a/u.sizeMultiplier;var h=t.height+t.depth+c+m;t.style.paddingLeft=j(h/2+c);var f=Math.floor(1e3*h*a),b=Yd(f),w=new lt([new gt("phase",b)],{width:"400em",height:j(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});s=Vt(["hide-tail"],[w],e),s.style.height=j(h),i=t.depth+c+m}else{/cancel/.test(n)?o||t.classes.push("cancel-pad"):n==="angl"?t.classes.push("anglpad"):t.classes.push("boxpad");var g,y,x=0;/box/.test(n)?(x=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),g=e.fontMetrics().fboxsep+(n==="colorbox"?0:x),y=g):n==="angl"?(x=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),g=4*x,y=Math.max(0,.25-t.depth)):(g=o?.2:0,y=g),s=zu(t,n,g,y,e),/fbox|boxed|fcolorbox/.test(n)?(s.style.borderStyle="solid",s.style.borderWidth=j(x)):n==="angl"&&x!==.049&&(s.style.borderTopWidth=j(x),s.style.borderRightWidth=j(x)),i=t.depth+y,r.backgroundColor&&(s.style.backgroundColor=r.backgroundColor,r.borderColor&&(s.style.borderColor=r.borderColor))}var A;if(r.backgroundColor)A=le({positionType:"individualShift",children:[{type:"elem",elem:s,shift:i},{type:"elem",elem:t,shift:0}]});else{var M=/cancel|phase/.test(n)?["svg-align"]:[];A=le({positionType:"individualShift",children:[{type:"elem",elem:t,shift:0},{type:"elem",elem:s,shift:i,wrapperClasses:M}]})}return/cancel/.test(n)&&(A.height=t.height,A.depth=t.depth),/cancel/.test(n)&&!o?I(["mord","cancel-lap"],[A],e):I(["mord"],[A],e)},ta=(r,e)=>{var t,n=new _(r.label.includes("colorbox")?"mpadded":"menclose",[me(r.body,e)]);switch(r.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(t=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*t+"pt"),n.setAttribute("height","+"+2*t+"pt"),n.setAttribute("lspace",t+"pt"),n.setAttribute("voffset",t+"pt"),r.label==="\\fcolorbox"){var a=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+j(a)+" solid "+r.borderColor)}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return r.backgroundColor&&n.setAttribute("mathbackground",r.backgroundColor),n};P({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","hbox"]},handler(r,e,t){var{parser:n,funcName:a}=r,s=re(e[0],"color-token").color,i=e[1];return{type:"enclose",mode:n.mode,label:a,backgroundColor:s,body:i}},htmlBuilder:ea,mathmlBuilder:ta});P({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"]},handler(r,e,t){var{parser:n,funcName:a}=r,s=re(e[0],"color-token").color,i=re(e[1],"color-token").color,o=e[2];return{type:"enclose",mode:n.mode,label:a,backgroundColor:i,borderColor:s,body:o}},htmlBuilder:ea,mathmlBuilder:ta});P({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"enclose",mode:t.mode,label:"\\fbox",body:e[0]}}});P({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:n}=r,a=e[0];return{type:"enclose",mode:t.mode,label:n,body:a}},htmlBuilder:ea,mathmlBuilder:ta});P({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(r,e){var{parser:t,funcName:n}=r;t.mode==="math"&&t.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var a=e[0];return{type:"enclose",mode:t.mode,label:n,body:a}},htmlBuilder:ea,mathmlBuilder:ta});P({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(r,e){var{parser:t}=r;return{type:"enclose",mode:t.mode,label:"\\angl",body:e[0]}}});ro={};no={};Ge=class r{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(e,t){return t?!e||!e.loc||!t.loc||e.loc.lexer!==t.loc.lexer?null:new r(e.loc.lexer,e.loc.start,t.loc.end):e&&e.loc}},Ye=class r{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new r(t,Ge.range(this,e))}};ra=r=>{var e=r.parser.settings;if(!e.displayMode)throw new N("{"+r.envName+"} can be used only in display mode.")},Ku=new Set(["gather","gather*"]);bt=function(e,t){var n,a,s=e.body.length,i=e.hLinesBeforeRow,o=0,c=new Array(s),m=[],u=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),h=1/t.fontMetrics().ptPerEm,f=5*h;if(e.colSeparationType&&e.colSeparationType==="small"){var b=t.havingStyle(Q.SCRIPT).sizeMultiplier;f=.2778*(b/t.sizeMultiplier)}var w=e.colSeparationType==="CD"?ke({number:3,unit:"ex"},t):12*h,g=3*h,y=e.arraystretch*w,x=.7*y,A=.3*y,M=0;function E(sn){for(var on=0;on<sn.length;++on)on>0&&(M+=.25),m.push({pos:M,isDashed:sn[on]})}for(E(i[0]),n=0;n<e.body.length;++n){var T=e.body[n],D=x,$=A;o<T.length&&(o=T.length);var z={cells:new Array(T.length),height:0,depth:0,pos:0};for(a=0;a<T.length;++a){var O=ce(T[a],t);$<O.depth&&($=O.depth),D<O.height&&(D=O.height),z.cells[a]=O}var U=e.rowGaps[n],L=0;U&&(L=ke(U,t),L>0&&(L+=A,$<L&&($=L),L=0)),e.addJot&&n<e.body.length-1&&($+=g),z.height=D,z.depth=$,M+=D,z.pos=M,M+=$+L,c[n]=z,E(i[n+1])}var X=M/2+t.fontMetrics().axisHeight,V=e.cols||[],Z=[],G,te,oe=[];if(e.tags&&e.tags.some(sn=>sn))for(n=0;n<s;++n){var he=c[n],fe=he.pos-X,De=e.tags[n],Te=void 0;De===!0?Te=I(["eqn-num"],[],t):De===!1?Te=I([],[],t):Te=I([],Ee(De,t,!0),t),Te.depth=he.depth,Te.height=he.height,oe.push({type:"elem",elem:Te,shift:fe})}for(a=0,te=0;a<o||te<V.length;++a,++te){for(var ze,ge=V[te],Ie=!0;((at=ge)==null?void 0:at.type)==="separator";){var at;if(Ie||(G=I(["arraycolsep"],[]),G.style.width=j(t.fontMetrics().doubleRuleSep),Z.push(G)),ge.separator==="|"||ge.separator===":"){var At=ge.separator==="|"?"solid":"dashed",Ve=I(["vertical-separator"],[],t);Ve.style.height=j(M),Ve.style.borderRightWidth=j(u),Ve.style.borderRightStyle=At,Ve.style.margin="0 "+j(-u/2);var st=M-X;st&&(Ve.style.verticalAlign=j(-st)),Z.push(Ve)}else throw new N("Invalid separator type: "+ge.separator);te++,ge=V[te],Ie=!1}if(!(a>=o)){var Nt=void 0;if(a>0||e.hskipBeforeAndAfter){var ur,Us;Nt=(ur=(Us=ge)==null?void 0:Us.pregap)!=null?ur:f,Nt!==0&&(G=I(["arraycolsep"],[]),G.style.width=j(Nt),Z.push(G))}var Gs=[];for(n=0;n<s;++n){var rn=c[n],nn=rn.cells[a];if(nn){var Al=rn.pos-X;nn.depth=rn.depth,nn.height=rn.height,Gs.push({type:"elem",elem:nn,shift:Al})}}var Dl=le({positionType:"individualShift",children:Gs}),Tl=I(["col-align-"+(((ze=ge)==null?void 0:ze.align)||"c")],[Dl]);if(Z.push(Tl),a<o-1||e.hskipBeforeAndAfter){var Ws,Vs;Nt=(Ws=(Vs=ge)==null?void 0:Vs.postgap)!=null?Ws:f,Nt!==0&&(G=I(["arraycolsep"],[]),G.style.width=j(Nt),Z.push(G))}}}var an=I(["mtable"],Z);if(m.length>0){for(var Cl=xr("hline",t,u),Ml=xr("hdashline",t,u),ia=[{type:"elem",elem:an,shift:0}];m.length>0;){var Zs=m.pop(),Xs=Zs.pos-X;Zs.isDashed?ia.push({type:"elem",elem:Ml,shift:Xs}):ia.push({type:"elem",elem:Cl,shift:Xs})}an=le({positionType:"individualShift",children:ia})}if(oe.length===0)return I(["mord"],[an],t);var $l=le({positionType:"individualShift",children:oe}),El=I(["tag"],[$l],t);return zt([an,El])},Qu={c:"center ",l:"left ",r:"right "},yt=function(e,t){for(var n=[],a=new _("mtd",[],["mtr-glue"]),s=new _("mtd",[],["mml-eqn-num"]),i=0;i<e.body.length;i++){for(var o=e.body[i],c=[],m=0;m<o.length;m++)c.push(new _("mtd",[me(o[m],t)]));e.tags&&e.tags[i]&&(c.unshift(a),c.push(a),e.leqno?c.unshift(s):c.push(s)),n.push(new _("mtr",c))}var u=new _("mtable",n),h=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);u.setAttribute("rowspacing",j(h));var f="",b="";if(e.cols&&e.cols.length>0){var w=e.cols,g="",y=!1,x=0,A=w.length;w[0].type==="separator"&&(f+="top ",x=1),w[w.length-1].type==="separator"&&(f+="bottom ",A-=1);for(var M=x;M<A;M++){var E=w[M];E.type==="align"?(b+=Qu[E.align],y&&(g+="none "),y=!0):E.type==="separator"&&y&&(g+=E.separator==="|"?"solid ":"dashed ",y=!1)}u.setAttribute("columnalign",b.trim()),/[sd]/.test(g)&&u.setAttribute("columnlines",g.trim())}if(e.colSeparationType==="align"){for(var T=e.cols||[],D="",$=1;$<T.length;$++)D+=$%2?"0em ":"1em ";u.setAttribute("columnspacing",D.trim())}else e.colSeparationType==="alignat"||e.colSeparationType==="gather"?u.setAttribute("columnspacing","0em"):e.colSeparationType==="small"?u.setAttribute("columnspacing","0.2778em"):e.colSeparationType==="CD"?u.setAttribute("columnspacing","0.5em"):u.setAttribute("columnspacing","1em");var z="",O=e.hLinesBeforeRow;f+=O[0].length>0?"left ":"",f+=O[O.length-1].length>0?"right ":"";for(var U=1;U<O.length-1;U++)z+=O[U].length===0?"none ":O[U][0]?"dashed ":"solid ";return/[sd]/.test(z)&&u.setAttribute("rowlines",z.trim()),f!==""&&(u=new _("menclose",[u]),u.setAttribute("notation",f.trim())),e.arraystretch&&e.arraystretch<1&&(u=new _("mstyle",[u]),u.setAttribute("scriptlevel","1")),u},ao=function(e,t){e.envName.includes("ed")||ra(e);var n=[],a=e.envName.includes("at")?"alignat":"align",s=e.envName==="split",i=Xt(e.parser,{cols:n,addJot:!0,autoTag:s?void 0:ws(e.envName),emptySingleRow:!0,colSeparationType:a,maxNumCols:s?2:void 0,leqno:e.parser.settings.leqno},"display"),o=0,c=0,m={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&t[0].type==="ordgroup"){for(var u="",h=0;h<t[0].body.length;h++){var f=re(t[0].body[h],"textord");u+=f.text}o=Number(u),c=o*2}var b=!c;i.body.forEach(function(x){for(var A=1;A<x.length;A+=2){var M=re(x[A],"styling"),E=re(M.body[0],"ordgroup");E.body.unshift(m)}if(b)c<x.length&&(c=x.length);else{var T=x.length/2;if(o<T)throw new N("Too many math in a row: "+("expected "+o+", but got "+T),x[0])}});for(var w=0;w<c;++w){var g="r",y=0;w%2===1?g="l":w>0&&b&&(y=1),n[w]={type:"align",align:g,pregap:y,postgap:0}}return i.colSeparationType=b?"align":"alignat",i};vt({type:"array",names:["array","darray"],props:{numArgs:1},handler(r,e){var t=Jn(e[0]),n=t?[e[0]]:re(e[0],"ordgroup").body,a=n.map(function(i){var o=Yn(i),c=o.text;if("lcr".includes(c))return{type:"align",align:c};if(c==="|")return{type:"separator",separator:"|"};if(c===":")return{type:"separator",separator:":"};throw new N("Unknown column alignment: "+c,i)}),s={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return Xt(r.parser,s,xs(r.envName))},htmlBuilder:bt,mathmlBuilder:yt});vt({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(r){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[r.envName.replace("*","")],t="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:t}]};if(r.envName.charAt(r.envName.length-1)==="*"){var a=r.parser;if(a.consumeSpaces(),a.fetch().text==="["){if(a.consume(),a.consumeSpaces(),t=a.fetch().text,!"lcr".includes(t))throw new N("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),n.cols=[{type:"align",align:t}]}}var s=Xt(r.parser,n,xs(r.envName)),i=Math.max(0,...s.body.map(o=>o.length));return s.cols=new Array(i).fill({type:"align",align:t}),e?{type:"leftright",mode:r.mode,body:[s],left:e[0],right:e[1],rightColor:void 0}:s},htmlBuilder:bt,mathmlBuilder:yt});vt({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(r){var e={arraystretch:.5},t=Xt(r.parser,e,"script");return t.colSeparationType="small",t},htmlBuilder:bt,mathmlBuilder:yt});vt({type:"array",names:["subarray"],props:{numArgs:1},handler(r,e){var t=Jn(e[0]),n=t?[e[0]]:re(e[0],"ordgroup").body,a=n.map(function(o){var c=Yn(o),m=c.text;if("lc".includes(m))return{type:"align",align:m};throw new N("Unknown column alignment: "+m,o)});if(a.length>1)throw new N("{subarray} can contain only one column");var s={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5},i=Xt(r.parser,s,"script");if(i.body.length>0&&i.body[0].length>1)throw new N("{subarray} can contain only one column");return i},htmlBuilder:bt,mathmlBuilder:yt});vt({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(r){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},t=Xt(r.parser,e,xs(r.envName));return{type:"leftright",mode:r.mode,body:[t],left:r.envName.includes("r")?".":"\\{",right:r.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:bt,mathmlBuilder:yt});vt({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:ao,htmlBuilder:bt,mathmlBuilder:yt});vt({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(r){Ku.has(r.envName)&&ra(r);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:ws(r.envName),emptySingleRow:!0,leqno:r.parser.settings.leqno};return Xt(r.parser,e,"display")},htmlBuilder:bt,mathmlBuilder:yt});vt({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:ao,htmlBuilder:bt,mathmlBuilder:yt});vt({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(r){ra(r);var e={autoTag:ws(r.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:r.parser.settings.leqno};return Xt(r.parser,e,"display")},htmlBuilder:bt,mathmlBuilder:yt});vt({type:"array",names:["CD"],props:{numArgs:0},handler(r){return ra(r),Bu(r.parser)},htmlBuilder:bt,mathmlBuilder:yt});v("\\nonumber","\\gdef\\@eqnsw{0}");v("\\notag","\\nonumber");P({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(r,e){throw new N(r.funcName+" valid only within array environment")}});d0=ro;P({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(r,e){var{parser:t,funcName:n}=r,a=e[0];if(a.type!=="ordgroup")throw new N("Invalid environment name",a);for(var s="",i=0;i<a.body.length;++i)s+=re(a.body[i],"textord").text;if(n==="\\begin"){if(!d0.hasOwnProperty(s))throw new N("No such environment: "+s,a);var o=d0[s],{args:c,optArgs:m}=t.parseArguments("\\begin{"+s+"}",o),u={mode:t.mode,envName:s,parser:t},h=o.handler(u,c,m);t.expect("\\end",!1);var f=t.nextToken,b=re(t.parseFunction(),"environment");if(b.name!==s)throw new N("Mismatch: \\begin{"+s+"} matched by \\end{"+b.name+"}",f);return h}return{type:"environment",mode:t.mode,name:s,nameGroup:a}}});so=(r,e)=>{var t=r.font,n=e.withFont(t);return ce(r.body,n)},io=(r,e)=>{var t=r.font,n=e.withFont(t);return me(r.body,n)},u0={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};P({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(r,e)=>{var{parser:t,funcName:n}=r,a=Pn(e[0]),s=n;return s in u0&&(s=u0[s]),{type:"font",mode:t.mode,font:s.slice(1),body:a}},htmlBuilder:so,mathmlBuilder:io});P({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(r,e)=>{var{parser:t}=r,n=e[0];return{type:"mclass",mode:t.mode,mclass:Kn(n),body:[{type:"font",mode:t.mode,font:"boldsymbol",body:n}],isCharacterBox:Et(n)}}});P({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:n,breakOnTokenText:a}=r,{mode:s}=t,i=t.parseExpression(!0,a);return{type:"font",mode:s,font:"math"+n.slice(1),body:{type:"ordgroup",mode:t.mode,body:i}}},htmlBuilder:so,mathmlBuilder:io});em=(r,e)=>{var t=e.style,n=t.fracNum(),a=t.fracDen(),s;s=e.havingStyle(n);var i=ce(r.numer,s,e);if(r.continued){var o=8.5/e.fontMetrics().ptPerEm,c=3.5/e.fontMetrics().ptPerEm;i.height=i.height<o?o:i.height,i.depth=i.depth<c?c:i.depth}s=e.havingStyle(a);var m=ce(r.denom,s,e),u,h,f;r.hasBarLine?(r.barSize?(h=ke(r.barSize,e),u=xr("frac-line",e,h)):u=xr("frac-line",e),h=u.height,f=u.height):(u=null,h=0,f=e.fontMetrics().defaultRuleThickness);var b,w,g;t.size===Q.DISPLAY.size?(b=e.fontMetrics().num1,h>0?w=3*f:w=7*f,g=e.fontMetrics().denom1):(h>0?(b=e.fontMetrics().num2,w=f):(b=e.fontMetrics().num3,w=3*f),g=e.fontMetrics().denom2);var y;if(u){var A=e.fontMetrics().axisHeight;b-i.depth-(A+.5*h)<w&&(b+=w-(b-i.depth-(A+.5*h))),A-.5*h-(m.height-g)<w&&(g+=w-(A-.5*h-(m.height-g)));var M=-(A-.5*h);y=le({positionType:"individualShift",children:[{type:"elem",elem:m,shift:g},{type:"elem",elem:u,shift:M},{type:"elem",elem:i,shift:-b}]})}else{var x=b-i.depth-(m.height-g);x<w&&(b+=.5*(w-x),g+=.5*(w-x)),y=le({positionType:"individualShift",children:[{type:"elem",elem:m,shift:g},{type:"elem",elem:i,shift:-b}]})}s=e.havingStyle(t),y.height*=s.sizeMultiplier/e.sizeMultiplier,y.depth*=s.sizeMultiplier/e.sizeMultiplier;var E;t.size===Q.DISPLAY.size?E=e.fontMetrics().delim1:t.size===Q.SCRIPTSCRIPT.size?E=e.havingStyle(Q.SCRIPT).fontMetrics().delim2:E=e.fontMetrics().delim2;var T,D;return r.leftDelim==null?T=Gr(e,["mopen"]):T=is(r.leftDelim,E,!0,e.havingStyle(t),r.mode,["mopen"]),r.continued?D=I([]):r.rightDelim==null?D=Gr(e,["mclose"]):D=is(r.rightDelim,E,!0,e.havingStyle(t),r.mode,["mclose"]),I(["mord"].concat(s.sizingClasses(e)),[T,I(["mfrac"],[y]),D],e)},tm=(r,e)=>{var t=new _("mfrac",[me(r.numer,e),me(r.denom,e)]);if(!r.hasBarLine)t.setAttribute("linethickness","0px");else if(r.barSize){var n=ke(r.barSize,e);t.setAttribute("linethickness",j(n))}if(r.leftDelim!=null||r.rightDelim!=null){var a=[];if(r.leftDelim!=null){var s=new _("mo",[new Se(r.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}if(a.push(t),r.rightDelim!=null){var i=new _("mo",[new Se(r.rightDelim.replace("\\",""))]);i.setAttribute("fence","true"),a.push(i)}return gs(a)}return t},oo=(r,e)=>{if(!e)return r;var t={type:"styling",mode:r.mode,style:e,body:[r]};return t};P({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(r,e)=>{var{parser:t,funcName:n}=r,a=e[0],s=e[1],i,o=null,c=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":i=!0;break;case"\\\\atopfrac":i=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":i=!1,o="(",c=")";break;case"\\\\bracefrac":i=!1,o="\\{",c="\\}";break;case"\\\\brackfrac":i=!1,o="[",c="]";break;default:throw new Error("Unrecognized genfrac command")}var m=n==="\\cfrac",u=null;return m||n.startsWith("\\d")?u="display":n.startsWith("\\t")&&(u="text"),oo({type:"genfrac",mode:t.mode,numer:a,denom:s,continued:m,hasBarLine:i,leftDelim:o,rightDelim:c,barSize:null},u)},htmlBuilder:em,mathmlBuilder:tm});P({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(r){var{parser:e,funcName:t,token:n}=r,a;switch(t){case"\\over":a="\\frac";break;case"\\choose":a="\\binom";break;case"\\atop":a="\\\\atopfrac";break;case"\\brace":a="\\\\bracefrac";break;case"\\brack":a="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:a,token:n}}});m0=["display","text","script","scriptscript"],p0=function(e){var t=null;return e.length>0&&(t=e,t=t==="."?null:t),t};P({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(r,e){var{parser:t}=r,n=e[4],a=e[5],s=Pn(e[0]),i=s.type==="atom"&&s.family==="open"?p0(s.text):null,o=Pn(e[1]),c=o.type==="atom"&&o.family==="close"?p0(o.text):null,m=re(e[2],"size"),u,h=null;m.isBlank?u=!0:(h=m.value,u=h.number>0);var f=null,b=e[3];if(b.type==="ordgroup"){if(b.body.length>0){var w=re(b.body[0],"textord");f=m0[Number(w.text)]}}else b=re(b,"textord"),f=m0[Number(b.text)];return oo({type:"genfrac",mode:t.mode,numer:n,denom:a,continued:!1,hasBarLine:u,barSize:h,leftDelim:i,rightDelim:c},f)}});P({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(r,e){var{parser:t,funcName:n,token:a}=r;return{type:"infix",mode:t.mode,replaceWith:"\\\\abovefrac",size:re(e[0],"size").value,token:a}}});P({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(r,e)=>{var{parser:t,funcName:n}=r,a=e[0],s=re(e[1],"infix").size;if(!s)throw new Error("\\\\abovefrac expected size, but got "+String(s));var i=e[2],o=s.number>0;return{type:"genfrac",mode:t.mode,numer:a,denom:i,continued:!1,hasBarLine:o,barSize:s,leftDelim:null,rightDelim:null}}});lo=(r,e)=>{var t=e.style,n,a;r.type==="supsub"?(n=r.sup?ce(r.sup,e.havingStyle(t.sup()),e):ce(r.sub,e.havingStyle(t.sub()),e),a=re(r.base,"horizBrace")):a=re(r,"horizBrace");var s=ce(a.base,e.havingBaseStyle(Q.DISPLAY)),i=Xn(a,e),o;if(a.isOver?o=le({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:i,wrapperClasses:["svg-align"]}]}):o=le({positionType:"bottom",positionData:s.depth+.1+i.height,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:s}]}),n){var c=I(["minner",a.isOver?"mover":"munder"],[o],e);a.isOver?o=le({positionType:"firstBaseline",children:[{type:"elem",elem:c},{type:"kern",size:.2},{type:"elem",elem:n}]}):o=le({positionType:"bottom",positionData:c.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:c}]})}return I(["minner",a.isOver?"mover":"munder"],[o],e)},rm=(r,e)=>{var t=Zn(r.label);return new _(r.isOver?"mover":"munder",[me(r.base,e),t])};P({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:n}=r;return{type:"horizBrace",mode:t.mode,label:n,isOver:n.includes("\\over"),base:e[0]}},htmlBuilder:lo,mathmlBuilder:rm});P({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,n=e[1],a=re(e[0],"url").url;return t.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:t.mode,href:a,body:Ce(n)}:t.formatUnsupportedCmd("\\href")},htmlBuilder:(r,e)=>{var t=Ee(r.body,e,!1);return fu(r.href,[],t,e)},mathmlBuilder:(r,e)=>{var t=Zt(r.body,e);return t instanceof _||(t=new _("mrow",[t])),t.setAttribute("href",r.href),t}});P({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,n=re(e[0],"url").url;if(!t.settings.isTrusted({command:"\\url",url:n}))return t.formatUnsupportedCmd("\\url");for(var a=[],s=0;s<n.length;s++){var i=n[s];i==="~"&&(i="\\textasciitilde"),a.push({type:"textord",mode:"text",text:i})}var o={type:"text",mode:t.mode,font:"\\texttt",body:a};return{type:"href",mode:t.mode,href:n,body:Ce(o)}}});P({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(r,e){var{parser:t}=r;return{type:"hbox",mode:t.mode,body:Ce(e[0])}},htmlBuilder(r,e){var t=Ee(r.body,e.withFont(""),!1);return zt(t)},mathmlBuilder(r,e){return new _("mrow",Ke(r.body,e.withFont("")))}});P({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:n,token:a}=r,s=re(e[0],"raw").string,i=e[1];t.settings.strict&&t.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,c={};switch(n){case"\\htmlClass":c.class=s,o={command:"\\htmlClass",class:s};break;case"\\htmlId":c.id=s,o={command:"\\htmlId",id:s};break;case"\\htmlStyle":c.style=s,o={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var m=s.split(","),u=0;u<m.length;u++){var h=m[u],f=h.indexOf("=");if(f<0)throw new N("\\htmlData key/value '"+h+"' missing equals sign");var b=h.slice(0,f),w=h.slice(f+1);c["data-"+b.trim()]=w}o={command:"\\htmlData",attributes:c};break}default:throw new Error("Unrecognized html command")}return t.settings.isTrusted(o)?{type:"html",mode:t.mode,attributes:c,body:Ce(i)}:t.formatUnsupportedCmd(n)},htmlBuilder:(r,e)=>{var t=Ee(r.body,e,!1),n=["enclosing"];r.attributes.class&&n.push(...r.attributes.class.trim().split(/\s+/));var a=I(n,t,e);for(var s in r.attributes)s!=="class"&&r.attributes.hasOwnProperty(s)&&a.setAttribute(s,r.attributes[s]);return a},mathmlBuilder:(r,e)=>Zt(r.body,e)});P({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r;return{type:"htmlmathml",mode:t.mode,html:Ce(e[0]),mathml:Ce(e[1])}},htmlBuilder:(r,e)=>{var t=Ee(r.html,e,!1);return zt(t)},mathmlBuilder:(r,e)=>Zt(r.mathml,e)});Ba=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new N("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(t[1]+t[2]),unit:t[3]};if(!T0(n))throw new N("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};P({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(r,e,t)=>{var{parser:n}=r,a={number:0,unit:"em"},s={number:.9,unit:"em"},i={number:0,unit:"em"},o="";if(t[0])for(var c=re(t[0],"raw").string,m=c.split(","),u=0;u<m.length;u++){var h=m[u].split("=");if(h.length===2){var f=h[1].trim();switch(h[0].trim()){case"alt":o=f;break;case"width":a=Ba(f);break;case"height":s=Ba(f);break;case"totalheight":i=Ba(f);break;default:throw new N("Invalid key: '"+h[0]+"' in \\includegraphics.")}}}var b=re(e[0],"url").url;return o===""&&(o=b,o=o.replace(/^.*[\\/]/,""),o=o.substring(0,o.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:b})?{type:"includegraphics",mode:n.mode,alt:o,width:a,height:s,totalheight:i,src:b}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(r,e)=>{var t=ke(r.height,e),n=0;r.totalheight.number>0&&(n=ke(r.totalheight,e)-t);var a=0;r.width.number>0&&(a=ke(r.width,e));var s={height:j(t+n)};a>0&&(s.width=j(a)),n>0&&(s.verticalAlign=j(-n));var i=new Va(r.src,r.alt,s);return i.height=t,i.depth=n,i},mathmlBuilder:(r,e)=>{var t=new _("mglyph",[]);t.setAttribute("alt",r.alt);var n=ke(r.height,e),a=0;if(r.totalheight.number>0&&(a=ke(r.totalheight,e)-n,t.setAttribute("valign",j(-a))),t.setAttribute("height",j(n+a)),r.width.number>0){var s=ke(r.width,e);t.setAttribute("width",j(s))}return t.setAttribute("src",r.src),t}});P({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(r,e){var{parser:t,funcName:n}=r,a=re(e[0],"size");if(t.settings.strict){var s=n[1]==="m",i=a.value.unit==="mu";s?(i||t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+a.value.unit+" units")),t.mode!=="math"&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):i&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:t.mode,dimension:a.value}},htmlBuilder(r,e){return z0(r.dimension,e)},mathmlBuilder(r,e){var t=ke(r.dimension,e);return new Hn(t)}});P({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:n}=r,a=e[0];return{type:"lap",mode:t.mode,alignment:n.slice(5),body:a}},htmlBuilder:(r,e)=>{var t;r.alignment==="clap"?(t=I([],[ce(r.body,e)]),t=I(["inner"],[t],e)):t=I(["inner"],[ce(r.body,e)]);var n=I(["fix"],[]),a=I([r.alignment],[t,n],e),s=I(["strut"]);return s.style.height=j(a.height+a.depth),a.depth&&(s.style.verticalAlign=j(-a.depth)),a.children.unshift(s),a=I(["thinbox"],[a],e),I(["mord","vbox"],[a],e)},mathmlBuilder:(r,e)=>{var t=new _("mpadded",[me(r.body,e)]);if(r.alignment!=="rlap"){var n=r.alignment==="llap"?"-1":"-0.5";t.setAttribute("lspace",n+"width")}return t.setAttribute("width","0px"),t}});P({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(r,e){var{funcName:t,parser:n}=r,a=n.mode;n.switchMode("math");var s=t==="\\("?"\\)":"$",i=n.parseExpression(!1,s);return n.expect(s),n.switchMode(a),{type:"styling",mode:n.mode,style:"text",resetFont:!0,body:i}}});P({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(r,e){throw new N("Mismatched "+r.funcName)}});h0=(r,e)=>{switch(e.style.size){case Q.DISPLAY.size:return r.display;case Q.TEXT.size:return r.text;case Q.SCRIPT.size:return r.script;case Q.SCRIPTSCRIPT.size:return r.scriptscript;default:return r.text}};P({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(r,e)=>{var{parser:t}=r;return{type:"mathchoice",mode:t.mode,display:Ce(e[0]),text:Ce(e[1]),script:Ce(e[2]),scriptscript:Ce(e[3])}},htmlBuilder:(r,e)=>{var t=h0(r,e),n=Ee(t,e,!1);return zt(n)},mathmlBuilder:(r,e)=>{var t=h0(r,e);return Zt(t,e)}});co=(r,e,t,n,a,s,i)=>{r=I([],[r]);var o=t&&Et(t),c,m;if(e){var u=ce(e,n.havingStyle(a.sup()),n);m={elem:u,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-u.depth)}}if(t){var h=ce(t,n.havingStyle(a.sub()),n);c={elem:h,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-h.height)}}var f;if(m&&c){var b=n.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+r.depth+i;f=le({positionType:"bottom",positionData:b,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:j(-s)},{type:"kern",size:c.kern},{type:"elem",elem:r},{type:"kern",size:m.kern},{type:"elem",elem:m.elem,marginLeft:j(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(c){var w=r.height-i;f=le({positionType:"top",positionData:w,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:j(-s)},{type:"kern",size:c.kern},{type:"elem",elem:r}]})}else if(m){var g=r.depth+i;f=le({positionType:"bottom",positionData:g,children:[{type:"elem",elem:r},{type:"kern",size:m.kern},{type:"elem",elem:m.elem,marginLeft:j(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return r;var y=[f];if(c&&s!==0&&!o){var x=I(["mspace"],[],n);x.style.marginRight=j(s),y.unshift(x)}return I(["mop","op-limits"],y,n)},uo=new Set(["\\smallint"]),Ar=(r,e)=>{var t,n,a=!1,s;r.type==="supsub"?(t=r.sup,n=r.sub,s=re(r.base,"op"),a=!0):s=re(r,"op");var i=e.style,o=!1;i.size===Q.DISPLAY.size&&s.symbol&&!uo.has(s.name)&&(o=!0);var c,m;if(s.symbol){var u=o?"Size2-Regular":"Size1-Regular",h="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(h=s.name.slice(1),s.name=h==="oiint"?"\\iint":"\\iiint"),c=Le(s.name,u,"math",e,["mop","op-symbol",o?"large-op":"small-op"]),m=c.italic,h.length>0){var f=O0(h+"Size"+(o?"2":"1"),e);c=le({positionType:"individualShift",children:[{type:"elem",elem:c,shift:0},{type:"elem",elem:f,shift:o?.08:0}]}),s.name="\\"+h,c.classes.unshift("mop"),c.italic=m}}else if(s.body){var b=Ee(s.body,e,!0);b.length===1&&b[0]instanceof Pe?(c=b[0],c.classes[0]="mop"):c=I(["mop"],b,e)}else{for(var w=[],g=1;g<s.name.length;g++)w.push(hs(s.name[g],s.mode,e));c=I(["mop"],w,e)}var y=0,x=0;if((c instanceof Pe||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift){var A;y=(c.height-c.depth)/2-e.fontMetrics().axisHeight,x=(A=c.italic)!=null?A:0}return a?co(c,t,n,e,i,x,y):(y&&(c.style.position="relative",c.style.top=j(y)),c)},Vr=(r,e)=>{var t;if(r.symbol)t=new _("mo",[tt(r.name,r.mode)]),uo.has(r.name)&&t.setAttribute("largeop","false");else if(r.body)t=new _("mo",Ke(r.body,e));else{t=new _("mi",[new Se(r.name.slice(1))]);var n=new _("mo",[tt("\u2061","text")]);r.parentIsSupSub?t=new _("mrow",[t,n]):t=N0([t,n])}return t},nm={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};P({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:(r,e)=>{var{parser:t,funcName:n}=r,a=n;return a.length===1&&(a=nm[a]),{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:Ar,mathmlBuilder:Vr});P({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var{parser:t}=r,n=e[0];return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Ce(n)}},htmlBuilder:Ar,mathmlBuilder:Vr});am={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};P({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(r){var{parser:e,funcName:t}=r;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:Ar,mathmlBuilder:Vr});P({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(r){var{parser:e,funcName:t}=r;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:Ar,mathmlBuilder:Vr});P({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0,allowedInArgument:!0},handler(r){var{parser:e,funcName:t}=r,n=t;return n.length===1&&(n=am[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Ar,mathmlBuilder:Vr});mo=(r,e)=>{var t,n,a=!1,s;r.type==="supsub"?(t=r.sup,n=r.sub,s=re(r.base,"operatorname"),a=!0):s=re(r,"operatorname");var i;if(s.body.length>0){for(var o=s.body.map(h=>{var f="text"in h?h.text:void 0;return typeof f=="string"?{type:"textord",mode:h.mode,text:f}:h}),c=Ee(o,e.withFont("mathrm"),!0),m=0;m<c.length;m++){var u=c[m];u instanceof Pe&&(u.text=u.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}i=I(["mop"],c,e)}else i=I(["mop"],[],e);return a?co(i,t,n,e,e.style,0,0):i},sm=(r,e)=>{for(var t=Ke(r.body,e.withFont("mathrm")),n=!0,a=0;a<t.length;a++){var s=t[a];if(!(s instanceof Hn))if(s instanceof _)switch(s.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var i=s.children[0];s.children.length===1&&i instanceof Se?i.text=i.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var o=t.map(u=>u.toText()).join("");t=[new Se(o)]}var c=new _("mi",t);c.setAttribute("mathvariant","normal");var m=new _("mo",[tt("\u2061","text")]);return r.parentIsSupSub?new _("mrow",[c,m]):N0([c,m])};P({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(r,e)=>{var{parser:t,funcName:n}=r,a=e[0];return{type:"operatorname",mode:t.mode,body:Ce(a),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:mo,mathmlBuilder:sm});v("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");or({type:"ordgroup",htmlBuilder(r,e){return r.semisimple?zt(Ee(r.body,e,!1)):I(["mord"],Ee(r.body,e,!0),e)},mathmlBuilder(r,e){return Zt(r.body,e,!0)}});P({type:"overline",names:["\\overline"],props:{numArgs:1},handler(r,e){var{parser:t}=r,n=e[0];return{type:"overline",mode:t.mode,body:n}},htmlBuilder(r,e){var t=ce(r.body,e.havingCrampedStyle()),n=xr("overline-line",e),a=e.fontMetrics().defaultRuleThickness,s=le({positionType:"firstBaseline",children:[{type:"elem",elem:t},{type:"kern",size:3*a},{type:"elem",elem:n},{type:"kern",size:a}]});return I(["mord","overline"],[s],e)},mathmlBuilder(r,e){var t=new _("mo",[new Se("\u203E")]);t.setAttribute("stretchy","true");var n=new _("mover",[me(r.body,e),t]);return n.setAttribute("accent","true"),n}});P({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,n=e[0];return{type:"phantom",mode:t.mode,body:Ce(n)}},htmlBuilder:(r,e)=>{var t=Ee(r.body,e.withPhantom(),!1);return zt(t)},mathmlBuilder:(r,e)=>{var t=Ke(r.body,e);return new _("mphantom",t)}});v("\\hphantom","\\smash{\\phantom{#1}}");P({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,n=e[0];return{type:"vphantom",mode:t.mode,body:n}},htmlBuilder:(r,e)=>{var t=I(["inner"],[ce(r.body,e.withPhantom())]),n=I(["fix"],[]);return I(["mord","rlap"],[t,n],e)},mathmlBuilder:(r,e)=>{var t=Ke(Ce(r.body),e),n=new _("mphantom",t),a=new _("mpadded",[n]);return a.setAttribute("width","0px"),a}});P({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(r,e){var{parser:t}=r,n=re(e[0],"size").value,a=e[1];return{type:"raisebox",mode:t.mode,dy:n,body:a}},htmlBuilder(r,e){var t=ce(r.body,e),n=ke(r.dy,e);return le({positionType:"shift",positionData:-n,children:[{type:"elem",elem:t}]})},mathmlBuilder(r,e){var t=new _("mpadded",[me(r.body,e)]),n=r.dy.number+r.dy.unit;return t.setAttribute("voffset",n),t}});P({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(r){var{parser:e}=r;return{type:"internal",mode:e.mode}}});P({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(r,e,t){var{parser:n}=r,a=t[0],s=re(e[0],"size"),i=re(e[1],"size");return{type:"rule",mode:n.mode,shift:a&&re(a,"size").value,width:s.value,height:i.value}},htmlBuilder(r,e){var t=I(["mord","rule"],[],e),n=ke(r.width,e),a=ke(r.height,e),s=r.shift?ke(r.shift,e):0;return t.style.borderRightWidth=j(n),t.style.borderTopWidth=j(a),t.style.bottom=j(s),t.width=n,t.height=a+s,t.depth=-s,t.maxFontSize=a*1.125*e.sizeMultiplier,t},mathmlBuilder(r,e){var t=ke(r.width,e),n=ke(r.height,e),a=r.shift?ke(r.shift,e):0,s=e.color&&e.getColor()||"black",i=new _("mspace");i.setAttribute("mathbackground",s),i.setAttribute("width",j(t)),i.setAttribute("height",j(n));var o=new _("mpadded",[i]);return a>=0?o.setAttribute("height",j(a)):(o.setAttribute("height",j(a)),o.setAttribute("depth",j(-a))),o.setAttribute("voffset",j(a)),o}});f0=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],im=(r,e)=>{var t=e.havingSize(r.size);return po(r.body,t,e)};P({type:"sizing",names:f0,props:{numArgs:0,allowedInText:!0},handler:(r,e)=>{var{breakOnTokenText:t,funcName:n,parser:a}=r,s=a.parseExpression(!1,t);return{type:"sizing",mode:a.mode,size:f0.indexOf(n)+1,body:s}},htmlBuilder:im,mathmlBuilder:(r,e)=>{var t=e.havingSize(r.size),n=Ke(r.body,t),a=new _("mstyle",n);return a.setAttribute("mathsize",j(t.sizeMultiplier)),a}});P({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(r,e,t)=>{var{parser:n}=r,a=!1,s=!1,i=t[0]&&re(t[0],"ordgroup");if(i)for(var o,c=0;c<i.body.length;++c){var m=i.body[c];if(o=Yn(m).text,o==="t")a=!0;else if(o==="b")s=!0;else{a=!1,s=!1;break}}else a=!0,s=!0;var u=e[0];return{type:"smash",mode:n.mode,body:u,smashHeight:a,smashDepth:s}},htmlBuilder:(r,e)=>{var t=I([],[ce(r.body,e)]);if(!r.smashHeight&&!r.smashDepth)return t;if(r.smashHeight&&(t.height=0),r.smashDepth&&(t.depth=0),r.smashHeight&&r.smashDepth)return I(["mord","smash"],[t],e);if(t.children)for(var n=0;n<t.children.length;n++)r.smashHeight&&(t.children[n].height=0),r.smashDepth&&(t.children[n].depth=0);var a=le({positionType:"firstBaseline",children:[{type:"elem",elem:t}]});return I(["mord"],[a],e)},mathmlBuilder:(r,e)=>{var t=new _("mpadded",[me(r.body,e)]);return r.smashHeight&&t.setAttribute("height","0px"),r.smashDepth&&t.setAttribute("depth","0px"),t}});P({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(r,e,t){var{parser:n}=r,a=t[0],s=e[0];return{type:"sqrt",mode:n.mode,body:s,index:a}},htmlBuilder(r,e){var t=ce(r.body,e.havingCrampedStyle());t.height===0&&(t.height=e.fontMetrics().xHeight),t=kr(t,e);var n=e.fontMetrics(),a=n.defaultRuleThickness,s=a;e.style.id<Q.TEXT.id&&(s=e.fontMetrics().xHeight);var i=a+s/4,o=t.height+t.depth+i+a,{span:c,ruleWidth:m,advanceWidth:u}=Wu(o,e),h=c.height-m;h>t.height+t.depth+i&&(i=(i+h-t.height-t.depth)/2);var f=c.height-t.height-i-m;t.style.paddingLeft=j(u);var b=le({positionType:"firstBaseline",children:[{type:"elem",elem:t,wrapperClasses:["svg-align"]},{type:"kern",size:-(t.height+f)},{type:"elem",elem:c},{type:"kern",size:m}]});if(r.index){var w=e.havingStyle(Q.SCRIPTSCRIPT),g=ce(r.index,w,e),y=.6*(b.height-b.depth),x=le({positionType:"shift",positionData:-y,children:[{type:"elem",elem:g}]}),A=I(["root"],[x]);return I(["mord","sqrt"],[A,b],e)}else return I(["mord","sqrt"],[b],e)},mathmlBuilder(r,e){var{body:t,index:n}=r;return n?new _("mroot",[me(t,e),me(n,e)]):new _("msqrt",[me(t,e)])}});os={display:Q.DISPLAY,text:Q.TEXT,script:Q.SCRIPT,scriptscript:Q.SCRIPTSCRIPT};P({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r,e){var{breakOnTokenText:t,funcName:n,parser:a}=r,s=a.parseExpression(!0,t),i=n.slice(1,n.length-5);if(!om(i))throw new Error("Unknown style: "+i);return{type:"styling",mode:a.mode,style:i,body:s}},htmlBuilder(r,e){var t=os[r.style],n=e.havingStyle(t);return r.resetFont&&(n=n.withFont("")),po(r.body,n,e)},mathmlBuilder(r,e){var t=os[r.style],n=e.havingStyle(t);r.resetFont&&(n=n.withFont(""));var a=Ke(r.body,n),s=new _("mstyle",a),i={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=i[r.style];return s.setAttribute("scriptlevel",o[0]),s.setAttribute("displaystyle",o[1]),s}});lm=function(e,t){var n=e.base;if(n)if(n.type==="op"){var a=n.limits&&(t.style.size===Q.DISPLAY.size||n.alwaysHandleSupSub);return a?Ar:null}else if(n.type==="operatorname"){var s=n.alwaysHandleSupSub&&(t.style.size===Q.DISPLAY.size||n.limits);return s?mo:null}else{if(n.type==="accent")return Et(n.base)?bs:null;if(n.type==="horizBrace"){var i=!e.sub;return i===n.isOver?lo:null}else return null}else return null};or({type:"supsub",htmlBuilder(r,e){var t=lm(r,e);if(t)return t(r,e);var{base:n,sup:a,sub:s}=r,i=ce(n,e),o,c,m=e.fontMetrics(),u=0,h=0,f=n&&Et(n);if(a){var b=e.havingStyle(e.style.sup());o=ce(a,b,e),f||(u=i.height-b.fontMetrics().supDrop*b.sizeMultiplier/e.sizeMultiplier)}if(s){var w=e.havingStyle(e.style.sub());c=ce(s,w,e),f||(h=i.depth+w.fontMetrics().subDrop*w.sizeMultiplier/e.sizeMultiplier)}var g;e.style===Q.DISPLAY?g=m.sup1:e.style.cramped?g=m.sup3:g=m.sup2;var y=e.sizeMultiplier,x=j(.5/m.ptPerEm/y),A=null;if(c){var M=r.base&&r.base.type==="op"&&r.base.name&&(r.base.name==="\\oiint"||r.base.name==="\\oiiint");if(i instanceof Pe||M){var E;A=j(-((E=i.italic)!=null?E:0))}}var T;if(o&&c){u=Math.max(u,g,o.depth+.25*m.xHeight),h=Math.max(h,m.sub2);var D=m.defaultRuleThickness,$=4*D;if(u-o.depth-(c.height-h)<$){h=$-(u-o.depth)+c.height;var z=.8*m.xHeight-(u-o.depth);z>0&&(u+=z,h-=z)}var O=[{type:"elem",elem:c,shift:h,marginRight:x,marginLeft:A},{type:"elem",elem:o,shift:-u,marginRight:x}];T=le({positionType:"individualShift",children:O})}else if(c){h=Math.max(h,m.sub1,c.height-.8*m.xHeight);var U=[{type:"elem",elem:c,marginLeft:A,marginRight:x}];T=le({positionType:"shift",positionData:h,children:U})}else if(o)u=Math.max(u,g,o.depth+.25*m.xHeight),T=le({positionType:"shift",positionData:-u,children:[{type:"elem",elem:o,marginRight:x}]});else throw new Error("supsub must have either sup or sub.");var L=rs(i,"right")||"mord";return I([L],[i,I(["msupsub"],[T])],e)},mathmlBuilder(r,e){var t=!1,n,a;r.base&&r.base.type==="horizBrace"&&(a=!!r.sup,a===r.base.isOver&&(t=!0,n=r.base.isOver)),r.base&&(r.base.type==="op"||r.base.type==="operatorname")&&(r.base.parentIsSupSub=!0);var s=[me(r.base,e)];r.sub&&s.push(me(r.sub,e)),r.sup&&s.push(me(r.sup,e));var i;if(t)i=n?"mover":"munder";else if(r.sub)if(r.sup){var m=r.base;m&&m.type==="op"&&m.limits&&e.style===Q.DISPLAY||m&&m.type==="operatorname"&&m.alwaysHandleSupSub&&(e.style===Q.DISPLAY||m.limits)?i="munderover":i="msubsup"}else{var c=r.base;c&&c.type==="op"&&c.limits&&(e.style===Q.DISPLAY||c.alwaysHandleSupSub)||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(c.limits||e.style===Q.DISPLAY)?i="munder":i="msub"}else{var o=r.base;o&&o.type==="op"&&o.limits&&(e.style===Q.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||e.style===Q.DISPLAY)?i="mover":i="msup"}return new _(i,s)}});or({type:"atom",htmlBuilder(r,e){return hs(r.text,r.mode,e,["m"+r.family])},mathmlBuilder(r,e){var t=new _("mo",[tt(r.text,r.mode)]);if(r.family==="bin"){var n=vs(r,e);n==="bold-italic"&&t.setAttribute("mathvariant",n)}else r.family==="punct"?t.setAttribute("separator","true"):(r.family==="open"||r.family==="close")&&t.setAttribute("stretchy","false");return t}});ho={mi:"italic",mn:"normal",mtext:"normal"};or({type:"mathord",htmlBuilder(r,e){return Vn(r,e,"mathord")},mathmlBuilder(r,e){var t=new _("mi",[tt(r.text,r.mode,e)]),n=vs(r,e)||"italic";return n!==ho[t.type]&&t.setAttribute("mathvariant",n),t}});or({type:"textord",htmlBuilder(r,e){return Vn(r,e,"textord")},mathmlBuilder(r,e){var t=tt(r.text,r.mode,e),n=vs(r,e)||"normal",a;return r.mode==="text"?a=new _("mtext",[t]):/[0-9]/.test(r.text)?a=new _("mn",[t]):r.text==="\\prime"?a=new _("mo",[t]):a=new _("mi",[t]),n!==ho[a.type]&&a.setAttribute("mathvariant",n),a}});Pa={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Ha={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};or({type:"spacing",htmlBuilder(r,e){if(Ha.hasOwnProperty(r.text)){var t=Ha[r.text].className||"";if(r.mode==="text"){var n=Vn(r,e,"textord");return n.classes.push(t),n}else return I(["mspace",t],[hs(r.text,r.mode,e)],e)}else{if(Pa.hasOwnProperty(r.text))return I(["mspace",Pa[r.text]],[],e);throw new N('Unknown type of space "'+r.text+'"')}},mathmlBuilder(r,e){var t;if(Ha.hasOwnProperty(r.text))t=new _("mtext",[new Se("\xA0")]);else{if(Pa.hasOwnProperty(r.text))return new _("mspace");throw new N('Unknown type of space "'+r.text+'"')}return t}});g0=()=>{var r=new _("mtd",[]);return r.setAttribute("width","50%"),r};or({type:"tag",mathmlBuilder(r,e){var t=new _("mtable",[new _("mtr",[g0(),new _("mtd",[Zt(r.body,e)]),g0(),new _("mtd",[Zt(r.tag,e)])])]);return t.setAttribute("width","100%"),t}});v0={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},b0={"\\textbf":"textbf","\\textmd":"textmd"},cm={"\\textit":"textit","\\textup":"textup"},y0=(r,e)=>{var t=r.font;if(t){if(v0[t])return e.withTextFontFamily(v0[t]);if(b0[t])return e.withTextFontWeight(b0[t]);if(t==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(cm[t])};P({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(r,e){var{parser:t,funcName:n}=r,a=e[0];return{type:"text",mode:t.mode,body:Ce(a),font:n}},htmlBuilder(r,e){var t=y0(r,e),n=Ee(r.body,t,!0);return I(["mord","text"],n,t)},mathmlBuilder(r,e){var t=y0(r,e);return Zt(r.body,t)}});P({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"underline",mode:t.mode,body:e[0]}},htmlBuilder(r,e){var t=ce(r.body,e),n=xr("underline-line",e),a=e.fontMetrics().defaultRuleThickness,s=le({positionType:"top",positionData:t.height,children:[{type:"kern",size:a},{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:t}]});return I(["mord","underline"],[s],e)},mathmlBuilder(r,e){var t=new _("mo",[new Se("\u203E")]);t.setAttribute("stretchy","true");var n=new _("munder",[me(r.body,e),t]);return n.setAttribute("accentunder","true"),n}});P({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(r,e){var{parser:t}=r;return{type:"vcenter",mode:t.mode,body:e[0]}},htmlBuilder(r,e){var t=ce(r.body,e),n=e.fontMetrics().axisHeight,a=.5*(t.height-n-(t.depth+n));return le({positionType:"shift",positionData:a,children:[{type:"elem",elem:t}]})},mathmlBuilder(r,e){var t=new _("mpadded",[me(r.body,e)],["vcenter"]);return new _("mrow",[t])}});P({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(r,e,t){throw new N("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(r,e){for(var t=w0(r),n=[],a=e.havingStyle(e.style.text()),s=0;s<t.length;s++){var i=t[s];i==="~"&&(i="\\textasciitilde"),n.push(Le(i,"Typewriter-Regular",r.mode,a,["mord","texttt"]))}return I(["mord","text"].concat(a.sizingClasses(e)),R0(n),a)},mathmlBuilder(r,e){var t=new Se(w0(r)),n=new _("mtext",[t]);return n.setAttribute("mathvariant","monospace"),n}});w0=r=>r.body.replace(/ /g,r.star?"\u2423":"\xA0"),qt=I0,fo=`[ \r
258
- ]`,dm="\\\\[a-zA-Z@]+",um="\\\\[^\uD800-\uDFFF]",mm="("+dm+")"+fo+"*",pm=`\\\\(
256
+ -470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};Ut=class{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>{if(eu(e))return e.toText();throw new Error("Expected MathDomNode with toText, got "+e.constructor.name)}).join("")}},Wa={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},tu={ex:!0,em:!0,mu:!0},T0=function(e){return typeof e!="string"&&(e=e.unit),e in Wa||e in tu||e==="ex"},ke=function(e,t){var n;if(e.unit in Wa)n=Wa[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit==="mu")n=t.fontMetrics().cssEmPerMu;else{var a;if(t.style.isTight()?a=t.havingStyle(t.style.text()):a=t,e.unit==="ex")n=a.fontMetrics().xHeight;else if(e.unit==="em")n=a.fontMetrics().quad;else throw new N("Invalid unit: '"+e.unit+"'");a!==t&&(n*=a.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},j=function(e){return+e.toFixed(4)+"em"},Gt=function(e){return e.filter(t=>t).join(" ")},ms=function(e){var t="";for(var n of Object.keys(e)){var a=e[n];a!==void 0&&(t+=$d(n)+":"+a+";")}return t},C0=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push("mtight");var a=t.getColor();a&&(this.style.color=a)}},M0=function(e){var t=document.createElement(e);t.className=Gt(this.classes),Object.assign(t.style,this.style);for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);for(var a=0;a<this.children.length;a++)t.appendChild(this.children[a].toNode());return t},ru=/[\s"'>/=\x00-\x1f]/,$0=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+Ne(Gt(this.classes))+'"');var n=ms(this.style);n&&(t+=' style="'+Ne(n)+'"');for(var a of Object.keys(this.attributes)){if(ru.test(a))throw new N("Invalid attribute name '"+a+"'");t+=" "+a+'="'+Ne(this.attributes[a])+'"'}t+=">";for(var s=0;s<this.children.length;s++)t+=this.children[s].toMarkup();return t+="</"+e+">",t},Wt=class{constructor(e,t,n,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,C0.call(this,e,n,a),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return M0.call(this,"span")}toMarkup(){return $0.call(this,"span")}},wr=class{constructor(e,t,n,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,C0.call(this,t,a),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return M0.call(this,"a")}toMarkup(){return $0.call(this,"a")}},Va=class{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");return e.src=this.src,e.alt=this.alt,e.className="mord",Object.assign(e.style,this.style),e}toMarkup(){var e='<img src="'+Ne(this.src)+'"'+(' alt="'+Ne(this.alt)+'"'),t=ms(this.style);return t&&(e+=' style="'+Ne(t)+'"'),e+="'/>",e}},nu={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},Pe=class{constructor(e,t,n,a,s,i,o,c){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=a||0,this.skew=s||0,this.width=i||0,this.classes=o||[],this.style=c||{},this.maxFontSize=0;var m=qd(this.text.charCodeAt(0));m&&this.classes.push(m+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=nu[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;return this.italic>0&&(t=document.createElement("span"),t.style.marginRight=j(this.italic)),this.classes.length>0&&(t=t||document.createElement("span"),t.className=Gt(this.classes)),Object.keys(this.style).length>0&&(t=t||document.createElement("span"),Object.assign(t.style,this.style)),t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=Ne(Gt(this.classes)),t+='"');var n="";this.italic>0&&(n+="margin-right:"+j(this.italic)+";"),n+=ms(this.style),n&&(e=!0,t+=' style="'+Ne(n)+'"');var a=Ne(this.text);return e?(t+=">",t+=a,t+="</span>",t):a}},lt=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);for(var a=0;a<this.children.length;a++)t.appendChild(this.children[a].toNode());return t}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var t of Object.keys(this.attributes))e+=" "+t+'="'+Ne(this.attributes[t])+'"';e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</svg>",e}},gt=class{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"path");return this.alternate?t.setAttribute("d",this.alternate):t.setAttribute("d",Ui[this.pathName]),t}toMarkup(){return this.alternate?'<path d="'+Ne(this.alternate)+'"/>':'<path d="'+Ne(Ui[this.pathName])+'"/>'}},Ur=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"line");for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);return t}toMarkup(){var e="<line";for(var t of Object.keys(this.attributes))e+=" "+t+'="'+Ne(this.attributes[t])+'"';return e+="/>",e}};iu=r=>r instanceof Wt||r instanceof wr||r instanceof Ut,ft={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Dn={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Gi={\u00C5:"A",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};Ea={};ve={math:{},text:{}};d="math",R="text",p="main",k="ams",be="accent-token",q="bin",He="close",Sr="inner",Y="mathord",Me="op-token",Je="open",Wr="punct",S="rel",Rt="spacing",C="textord";l(d,p,S,"\u2261","\\equiv",!0);l(d,p,S,"\u227A","\\prec",!0);l(d,p,S,"\u227B","\\succ",!0);l(d,p,S,"\u223C","\\sim",!0);l(d,p,S,"\u22A5","\\perp");l(d,p,S,"\u2AAF","\\preceq",!0);l(d,p,S,"\u2AB0","\\succeq",!0);l(d,p,S,"\u2243","\\simeq",!0);l(d,p,S,"\u2223","\\mid",!0);l(d,p,S,"\u226A","\\ll",!0);l(d,p,S,"\u226B","\\gg",!0);l(d,p,S,"\u224D","\\asymp",!0);l(d,p,S,"\u2225","\\parallel");l(d,p,S,"\u22C8","\\bowtie",!0);l(d,p,S,"\u2323","\\smile",!0);l(d,p,S,"\u2291","\\sqsubseteq",!0);l(d,p,S,"\u2292","\\sqsupseteq",!0);l(d,p,S,"\u2250","\\doteq",!0);l(d,p,S,"\u2322","\\frown",!0);l(d,p,S,"\u220B","\\ni",!0);l(d,p,S,"\u221D","\\propto",!0);l(d,p,S,"\u22A2","\\vdash",!0);l(d,p,S,"\u22A3","\\dashv",!0);l(d,p,S,"\u220B","\\owns");l(d,p,Wr,".","\\ldotp");l(d,p,Wr,"\u22C5","\\cdotp");l(d,p,Wr,"\u22C5","\xB7");l(R,p,C,"\u22C5","\xB7");l(d,p,C,"#","\\#");l(R,p,C,"#","\\#");l(d,p,C,"&","\\&");l(R,p,C,"&","\\&");l(d,p,C,"\u2135","\\aleph",!0);l(d,p,C,"\u2200","\\forall",!0);l(d,p,C,"\u210F","\\hbar",!0);l(d,p,C,"\u2203","\\exists",!0);l(d,p,C,"\u2207","\\nabla",!0);l(d,p,C,"\u266D","\\flat",!0);l(d,p,C,"\u2113","\\ell",!0);l(d,p,C,"\u266E","\\natural",!0);l(d,p,C,"\u2663","\\clubsuit",!0);l(d,p,C,"\u2118","\\wp",!0);l(d,p,C,"\u266F","\\sharp",!0);l(d,p,C,"\u2662","\\diamondsuit",!0);l(d,p,C,"\u211C","\\Re",!0);l(d,p,C,"\u2661","\\heartsuit",!0);l(d,p,C,"\u2111","\\Im",!0);l(d,p,C,"\u2660","\\spadesuit",!0);l(d,p,C,"\xA7","\\S",!0);l(R,p,C,"\xA7","\\S");l(d,p,C,"\xB6","\\P",!0);l(R,p,C,"\xB6","\\P");l(d,p,C,"\u2020","\\dag");l(R,p,C,"\u2020","\\dag");l(R,p,C,"\u2020","\\textdagger");l(d,p,C,"\u2021","\\ddag");l(R,p,C,"\u2021","\\ddag");l(R,p,C,"\u2021","\\textdaggerdbl");l(d,p,He,"\u23B1","\\rmoustache",!0);l(d,p,Je,"\u23B0","\\lmoustache",!0);l(d,p,He,"\u27EF","\\rgroup",!0);l(d,p,Je,"\u27EE","\\lgroup",!0);l(d,p,q,"\u2213","\\mp",!0);l(d,p,q,"\u2296","\\ominus",!0);l(d,p,q,"\u228E","\\uplus",!0);l(d,p,q,"\u2293","\\sqcap",!0);l(d,p,q,"\u2217","\\ast");l(d,p,q,"\u2294","\\sqcup",!0);l(d,p,q,"\u25EF","\\bigcirc",!0);l(d,p,q,"\u2219","\\bullet",!0);l(d,p,q,"\u2021","\\ddagger");l(d,p,q,"\u2240","\\wr",!0);l(d,p,q,"\u2A3F","\\amalg");l(d,p,q,"&","\\And");l(d,p,S,"\u27F5","\\longleftarrow",!0);l(d,p,S,"\u21D0","\\Leftarrow",!0);l(d,p,S,"\u27F8","\\Longleftarrow",!0);l(d,p,S,"\u27F6","\\longrightarrow",!0);l(d,p,S,"\u21D2","\\Rightarrow",!0);l(d,p,S,"\u27F9","\\Longrightarrow",!0);l(d,p,S,"\u2194","\\leftrightarrow",!0);l(d,p,S,"\u27F7","\\longleftrightarrow",!0);l(d,p,S,"\u21D4","\\Leftrightarrow",!0);l(d,p,S,"\u27FA","\\Longleftrightarrow",!0);l(d,p,S,"\u21A6","\\mapsto",!0);l(d,p,S,"\u27FC","\\longmapsto",!0);l(d,p,S,"\u2197","\\nearrow",!0);l(d,p,S,"\u21A9","\\hookleftarrow",!0);l(d,p,S,"\u21AA","\\hookrightarrow",!0);l(d,p,S,"\u2198","\\searrow",!0);l(d,p,S,"\u21BC","\\leftharpoonup",!0);l(d,p,S,"\u21C0","\\rightharpoonup",!0);l(d,p,S,"\u2199","\\swarrow",!0);l(d,p,S,"\u21BD","\\leftharpoondown",!0);l(d,p,S,"\u21C1","\\rightharpoondown",!0);l(d,p,S,"\u2196","\\nwarrow",!0);l(d,p,S,"\u21CC","\\rightleftharpoons",!0);l(d,k,S,"\u226E","\\nless",!0);l(d,k,S,"\uE010","\\@nleqslant");l(d,k,S,"\uE011","\\@nleqq");l(d,k,S,"\u2A87","\\lneq",!0);l(d,k,S,"\u2268","\\lneqq",!0);l(d,k,S,"\uE00C","\\@lvertneqq");l(d,k,S,"\u22E6","\\lnsim",!0);l(d,k,S,"\u2A89","\\lnapprox",!0);l(d,k,S,"\u2280","\\nprec",!0);l(d,k,S,"\u22E0","\\npreceq",!0);l(d,k,S,"\u22E8","\\precnsim",!0);l(d,k,S,"\u2AB9","\\precnapprox",!0);l(d,k,S,"\u2241","\\nsim",!0);l(d,k,S,"\uE006","\\@nshortmid");l(d,k,S,"\u2224","\\nmid",!0);l(d,k,S,"\u22AC","\\nvdash",!0);l(d,k,S,"\u22AD","\\nvDash",!0);l(d,k,S,"\u22EA","\\ntriangleleft");l(d,k,S,"\u22EC","\\ntrianglelefteq",!0);l(d,k,S,"\u228A","\\subsetneq",!0);l(d,k,S,"\uE01A","\\@varsubsetneq");l(d,k,S,"\u2ACB","\\subsetneqq",!0);l(d,k,S,"\uE017","\\@varsubsetneqq");l(d,k,S,"\u226F","\\ngtr",!0);l(d,k,S,"\uE00F","\\@ngeqslant");l(d,k,S,"\uE00E","\\@ngeqq");l(d,k,S,"\u2A88","\\gneq",!0);l(d,k,S,"\u2269","\\gneqq",!0);l(d,k,S,"\uE00D","\\@gvertneqq");l(d,k,S,"\u22E7","\\gnsim",!0);l(d,k,S,"\u2A8A","\\gnapprox",!0);l(d,k,S,"\u2281","\\nsucc",!0);l(d,k,S,"\u22E1","\\nsucceq",!0);l(d,k,S,"\u22E9","\\succnsim",!0);l(d,k,S,"\u2ABA","\\succnapprox",!0);l(d,k,S,"\u2246","\\ncong",!0);l(d,k,S,"\uE007","\\@nshortparallel");l(d,k,S,"\u2226","\\nparallel",!0);l(d,k,S,"\u22AF","\\nVDash",!0);l(d,k,S,"\u22EB","\\ntriangleright");l(d,k,S,"\u22ED","\\ntrianglerighteq",!0);l(d,k,S,"\uE018","\\@nsupseteqq");l(d,k,S,"\u228B","\\supsetneq",!0);l(d,k,S,"\uE01B","\\@varsupsetneq");l(d,k,S,"\u2ACC","\\supsetneqq",!0);l(d,k,S,"\uE019","\\@varsupsetneqq");l(d,k,S,"\u22AE","\\nVdash",!0);l(d,k,S,"\u2AB5","\\precneqq",!0);l(d,k,S,"\u2AB6","\\succneqq",!0);l(d,k,S,"\uE016","\\@nsubseteqq");l(d,k,q,"\u22B4","\\unlhd");l(d,k,q,"\u22B5","\\unrhd");l(d,k,S,"\u219A","\\nleftarrow",!0);l(d,k,S,"\u219B","\\nrightarrow",!0);l(d,k,S,"\u21CD","\\nLeftarrow",!0);l(d,k,S,"\u21CF","\\nRightarrow",!0);l(d,k,S,"\u21AE","\\nleftrightarrow",!0);l(d,k,S,"\u21CE","\\nLeftrightarrow",!0);l(d,k,S,"\u25B3","\\vartriangle");l(d,k,C,"\u210F","\\hslash");l(d,k,C,"\u25BD","\\triangledown");l(d,k,C,"\u25CA","\\lozenge");l(d,k,C,"\u24C8","\\circledS");l(d,k,C,"\xAE","\\circledR");l(R,k,C,"\xAE","\\circledR");l(d,k,C,"\u2221","\\measuredangle",!0);l(d,k,C,"\u2204","\\nexists");l(d,k,C,"\u2127","\\mho");l(d,k,C,"\u2132","\\Finv",!0);l(d,k,C,"\u2141","\\Game",!0);l(d,k,C,"\u2035","\\backprime");l(d,k,C,"\u25B2","\\blacktriangle");l(d,k,C,"\u25BC","\\blacktriangledown");l(d,k,C,"\u25A0","\\blacksquare");l(d,k,C,"\u29EB","\\blacklozenge");l(d,k,C,"\u2605","\\bigstar");l(d,k,C,"\u2222","\\sphericalangle",!0);l(d,k,C,"\u2201","\\complement",!0);l(d,k,C,"\xF0","\\eth",!0);l(R,p,C,"\xF0","\xF0");l(d,k,C,"\u2571","\\diagup");l(d,k,C,"\u2572","\\diagdown");l(d,k,C,"\u25A1","\\square");l(d,k,C,"\u25A1","\\Box");l(d,k,C,"\u25CA","\\Diamond");l(d,k,C,"\xA5","\\yen",!0);l(R,k,C,"\xA5","\\yen",!0);l(d,k,C,"\u2713","\\checkmark",!0);l(R,k,C,"\u2713","\\checkmark");l(d,k,C,"\u2136","\\beth",!0);l(d,k,C,"\u2138","\\daleth",!0);l(d,k,C,"\u2137","\\gimel",!0);l(d,k,C,"\u03DD","\\digamma",!0);l(d,k,C,"\u03F0","\\varkappa");l(d,k,Je,"\u250C","\\@ulcorner",!0);l(d,k,He,"\u2510","\\@urcorner",!0);l(d,k,Je,"\u2514","\\@llcorner",!0);l(d,k,He,"\u2518","\\@lrcorner",!0);l(d,k,S,"\u2266","\\leqq",!0);l(d,k,S,"\u2A7D","\\leqslant",!0);l(d,k,S,"\u2A95","\\eqslantless",!0);l(d,k,S,"\u2272","\\lesssim",!0);l(d,k,S,"\u2A85","\\lessapprox",!0);l(d,k,S,"\u224A","\\approxeq",!0);l(d,k,q,"\u22D6","\\lessdot");l(d,k,S,"\u22D8","\\lll",!0);l(d,k,S,"\u2276","\\lessgtr",!0);l(d,k,S,"\u22DA","\\lesseqgtr",!0);l(d,k,S,"\u2A8B","\\lesseqqgtr",!0);l(d,k,S,"\u2251","\\doteqdot");l(d,k,S,"\u2253","\\risingdotseq",!0);l(d,k,S,"\u2252","\\fallingdotseq",!0);l(d,k,S,"\u223D","\\backsim",!0);l(d,k,S,"\u22CD","\\backsimeq",!0);l(d,k,S,"\u2AC5","\\subseteqq",!0);l(d,k,S,"\u22D0","\\Subset",!0);l(d,k,S,"\u228F","\\sqsubset",!0);l(d,k,S,"\u227C","\\preccurlyeq",!0);l(d,k,S,"\u22DE","\\curlyeqprec",!0);l(d,k,S,"\u227E","\\precsim",!0);l(d,k,S,"\u2AB7","\\precapprox",!0);l(d,k,S,"\u22B2","\\vartriangleleft");l(d,k,S,"\u22B4","\\trianglelefteq");l(d,k,S,"\u22A8","\\vDash",!0);l(d,k,S,"\u22AA","\\Vvdash",!0);l(d,k,S,"\u2323","\\smallsmile");l(d,k,S,"\u2322","\\smallfrown");l(d,k,S,"\u224F","\\bumpeq",!0);l(d,k,S,"\u224E","\\Bumpeq",!0);l(d,k,S,"\u2267","\\geqq",!0);l(d,k,S,"\u2A7E","\\geqslant",!0);l(d,k,S,"\u2A96","\\eqslantgtr",!0);l(d,k,S,"\u2273","\\gtrsim",!0);l(d,k,S,"\u2A86","\\gtrapprox",!0);l(d,k,q,"\u22D7","\\gtrdot");l(d,k,S,"\u22D9","\\ggg",!0);l(d,k,S,"\u2277","\\gtrless",!0);l(d,k,S,"\u22DB","\\gtreqless",!0);l(d,k,S,"\u2A8C","\\gtreqqless",!0);l(d,k,S,"\u2256","\\eqcirc",!0);l(d,k,S,"\u2257","\\circeq",!0);l(d,k,S,"\u225C","\\triangleq",!0);l(d,k,S,"\u223C","\\thicksim");l(d,k,S,"\u2248","\\thickapprox");l(d,k,S,"\u2AC6","\\supseteqq",!0);l(d,k,S,"\u22D1","\\Supset",!0);l(d,k,S,"\u2290","\\sqsupset",!0);l(d,k,S,"\u227D","\\succcurlyeq",!0);l(d,k,S,"\u22DF","\\curlyeqsucc",!0);l(d,k,S,"\u227F","\\succsim",!0);l(d,k,S,"\u2AB8","\\succapprox",!0);l(d,k,S,"\u22B3","\\vartriangleright");l(d,k,S,"\u22B5","\\trianglerighteq");l(d,k,S,"\u22A9","\\Vdash",!0);l(d,k,S,"\u2223","\\shortmid");l(d,k,S,"\u2225","\\shortparallel");l(d,k,S,"\u226C","\\between",!0);l(d,k,S,"\u22D4","\\pitchfork",!0);l(d,k,S,"\u221D","\\varpropto");l(d,k,S,"\u25C0","\\blacktriangleleft");l(d,k,S,"\u2234","\\therefore",!0);l(d,k,S,"\u220D","\\backepsilon");l(d,k,S,"\u25B6","\\blacktriangleright");l(d,k,S,"\u2235","\\because",!0);l(d,k,S,"\u22D8","\\llless");l(d,k,S,"\u22D9","\\gggtr");l(d,k,q,"\u22B2","\\lhd");l(d,k,q,"\u22B3","\\rhd");l(d,k,S,"\u2242","\\eqsim",!0);l(d,p,S,"\u22C8","\\Join");l(d,k,S,"\u2251","\\Doteq",!0);l(d,k,q,"\u2214","\\dotplus",!0);l(d,k,q,"\u2216","\\smallsetminus");l(d,k,q,"\u22D2","\\Cap",!0);l(d,k,q,"\u22D3","\\Cup",!0);l(d,k,q,"\u2A5E","\\doublebarwedge",!0);l(d,k,q,"\u229F","\\boxminus",!0);l(d,k,q,"\u229E","\\boxplus",!0);l(d,k,q,"\u22C7","\\divideontimes",!0);l(d,k,q,"\u22C9","\\ltimes",!0);l(d,k,q,"\u22CA","\\rtimes",!0);l(d,k,q,"\u22CB","\\leftthreetimes",!0);l(d,k,q,"\u22CC","\\rightthreetimes",!0);l(d,k,q,"\u22CF","\\curlywedge",!0);l(d,k,q,"\u22CE","\\curlyvee",!0);l(d,k,q,"\u229D","\\circleddash",!0);l(d,k,q,"\u229B","\\circledast",!0);l(d,k,q,"\u22C5","\\centerdot");l(d,k,q,"\u22BA","\\intercal",!0);l(d,k,q,"\u22D2","\\doublecap");l(d,k,q,"\u22D3","\\doublecup");l(d,k,q,"\u22A0","\\boxtimes",!0);l(d,k,S,"\u21E2","\\dashrightarrow",!0);l(d,k,S,"\u21E0","\\dashleftarrow",!0);l(d,k,S,"\u21C7","\\leftleftarrows",!0);l(d,k,S,"\u21C6","\\leftrightarrows",!0);l(d,k,S,"\u21DA","\\Lleftarrow",!0);l(d,k,S,"\u219E","\\twoheadleftarrow",!0);l(d,k,S,"\u21A2","\\leftarrowtail",!0);l(d,k,S,"\u21AB","\\looparrowleft",!0);l(d,k,S,"\u21CB","\\leftrightharpoons",!0);l(d,k,S,"\u21B6","\\curvearrowleft",!0);l(d,k,S,"\u21BA","\\circlearrowleft",!0);l(d,k,S,"\u21B0","\\Lsh",!0);l(d,k,S,"\u21C8","\\upuparrows",!0);l(d,k,S,"\u21BF","\\upharpoonleft",!0);l(d,k,S,"\u21C3","\\downharpoonleft",!0);l(d,p,S,"\u22B6","\\origof",!0);l(d,p,S,"\u22B7","\\imageof",!0);l(d,k,S,"\u22B8","\\multimap",!0);l(d,k,S,"\u21AD","\\leftrightsquigarrow",!0);l(d,k,S,"\u21C9","\\rightrightarrows",!0);l(d,k,S,"\u21C4","\\rightleftarrows",!0);l(d,k,S,"\u21A0","\\twoheadrightarrow",!0);l(d,k,S,"\u21A3","\\rightarrowtail",!0);l(d,k,S,"\u21AC","\\looparrowright",!0);l(d,k,S,"\u21B7","\\curvearrowright",!0);l(d,k,S,"\u21BB","\\circlearrowright",!0);l(d,k,S,"\u21B1","\\Rsh",!0);l(d,k,S,"\u21CA","\\downdownarrows",!0);l(d,k,S,"\u21BE","\\upharpoonright",!0);l(d,k,S,"\u21C2","\\downharpoonright",!0);l(d,k,S,"\u21DD","\\rightsquigarrow",!0);l(d,k,S,"\u21DD","\\leadsto");l(d,k,S,"\u21DB","\\Rrightarrow",!0);l(d,k,S,"\u21BE","\\restriction");l(d,p,C,"\u2018","`");l(d,p,C,"$","\\$");l(R,p,C,"$","\\$");l(R,p,C,"$","\\textdollar");l(d,p,C,"%","\\%");l(R,p,C,"%","\\%");l(d,p,C,"_","\\_");l(R,p,C,"_","\\_");l(R,p,C,"_","\\textunderscore");l(d,p,C,"\u2220","\\angle",!0);l(d,p,C,"\u221E","\\infty",!0);l(d,p,C,"\u2032","\\prime");l(d,p,C,"\u25B3","\\triangle");l(d,p,C,"\u0393","\\Gamma",!0);l(d,p,C,"\u0394","\\Delta",!0);l(d,p,C,"\u0398","\\Theta",!0);l(d,p,C,"\u039B","\\Lambda",!0);l(d,p,C,"\u039E","\\Xi",!0);l(d,p,C,"\u03A0","\\Pi",!0);l(d,p,C,"\u03A3","\\Sigma",!0);l(d,p,C,"\u03A5","\\Upsilon",!0);l(d,p,C,"\u03A6","\\Phi",!0);l(d,p,C,"\u03A8","\\Psi",!0);l(d,p,C,"\u03A9","\\Omega",!0);l(d,p,C,"A","\u0391");l(d,p,C,"B","\u0392");l(d,p,C,"E","\u0395");l(d,p,C,"Z","\u0396");l(d,p,C,"H","\u0397");l(d,p,C,"I","\u0399");l(d,p,C,"K","\u039A");l(d,p,C,"M","\u039C");l(d,p,C,"N","\u039D");l(d,p,C,"O","\u039F");l(d,p,C,"P","\u03A1");l(d,p,C,"T","\u03A4");l(d,p,C,"X","\u03A7");l(d,p,C,"\xAC","\\neg",!0);l(d,p,C,"\xAC","\\lnot");l(d,p,C,"\u22A4","\\top");l(d,p,C,"\u22A5","\\bot");l(d,p,C,"\u2205","\\emptyset");l(d,k,C,"\u2205","\\varnothing");l(d,p,Y,"\u03B1","\\alpha",!0);l(d,p,Y,"\u03B2","\\beta",!0);l(d,p,Y,"\u03B3","\\gamma",!0);l(d,p,Y,"\u03B4","\\delta",!0);l(d,p,Y,"\u03F5","\\epsilon",!0);l(d,p,Y,"\u03B6","\\zeta",!0);l(d,p,Y,"\u03B7","\\eta",!0);l(d,p,Y,"\u03B8","\\theta",!0);l(d,p,Y,"\u03B9","\\iota",!0);l(d,p,Y,"\u03BA","\\kappa",!0);l(d,p,Y,"\u03BB","\\lambda",!0);l(d,p,Y,"\u03BC","\\mu",!0);l(d,p,Y,"\u03BD","\\nu",!0);l(d,p,Y,"\u03BE","\\xi",!0);l(d,p,Y,"\u03BF","\\omicron",!0);l(d,p,Y,"\u03C0","\\pi",!0);l(d,p,Y,"\u03C1","\\rho",!0);l(d,p,Y,"\u03C3","\\sigma",!0);l(d,p,Y,"\u03C4","\\tau",!0);l(d,p,Y,"\u03C5","\\upsilon",!0);l(d,p,Y,"\u03D5","\\phi",!0);l(d,p,Y,"\u03C7","\\chi",!0);l(d,p,Y,"\u03C8","\\psi",!0);l(d,p,Y,"\u03C9","\\omega",!0);l(d,p,Y,"\u03B5","\\varepsilon",!0);l(d,p,Y,"\u03D1","\\vartheta",!0);l(d,p,Y,"\u03D6","\\varpi",!0);l(d,p,Y,"\u03F1","\\varrho",!0);l(d,p,Y,"\u03C2","\\varsigma",!0);l(d,p,Y,"\u03C6","\\varphi",!0);l(d,p,q,"\u2217","*",!0);l(d,p,q,"+","+");l(d,p,q,"\u2212","-",!0);l(d,p,q,"\u22C5","\\cdot",!0);l(d,p,q,"\u2218","\\circ",!0);l(d,p,q,"\xF7","\\div",!0);l(d,p,q,"\xB1","\\pm",!0);l(d,p,q,"\xD7","\\times",!0);l(d,p,q,"\u2229","\\cap",!0);l(d,p,q,"\u222A","\\cup",!0);l(d,p,q,"\u2216","\\setminus",!0);l(d,p,q,"\u2227","\\land");l(d,p,q,"\u2228","\\lor");l(d,p,q,"\u2227","\\wedge",!0);l(d,p,q,"\u2228","\\vee",!0);l(d,p,C,"\u221A","\\surd");l(d,p,Je,"\u27E8","\\langle",!0);l(d,p,Je,"\u2223","\\lvert");l(d,p,Je,"\u2225","\\lVert");l(d,p,He,"?","?");l(d,p,He,"!","!");l(d,p,He,"\u27E9","\\rangle",!0);l(d,p,He,"\u2223","\\rvert");l(d,p,He,"\u2225","\\rVert");l(d,p,S,"=","=");l(d,p,S,":",":");l(d,p,S,"\u2248","\\approx",!0);l(d,p,S,"\u2245","\\cong",!0);l(d,p,S,"\u2265","\\ge");l(d,p,S,"\u2265","\\geq",!0);l(d,p,S,"\u2190","\\gets");l(d,p,S,">","\\gt",!0);l(d,p,S,"\u2208","\\in",!0);l(d,p,S,"\uE020","\\@not");l(d,p,S,"\u2282","\\subset",!0);l(d,p,S,"\u2283","\\supset",!0);l(d,p,S,"\u2286","\\subseteq",!0);l(d,p,S,"\u2287","\\supseteq",!0);l(d,k,S,"\u2288","\\nsubseteq",!0);l(d,k,S,"\u2289","\\nsupseteq",!0);l(d,p,S,"\u22A8","\\models");l(d,p,S,"\u2190","\\leftarrow",!0);l(d,p,S,"\u2264","\\le");l(d,p,S,"\u2264","\\leq",!0);l(d,p,S,"<","\\lt",!0);l(d,p,S,"\u2192","\\rightarrow",!0);l(d,p,S,"\u2192","\\to");l(d,k,S,"\u2271","\\ngeq",!0);l(d,k,S,"\u2270","\\nleq",!0);l(d,p,Rt,"\xA0","\\ ");l(d,p,Rt,"\xA0","\\space");l(d,p,Rt,"\xA0","\\nobreakspace");l(R,p,Rt,"\xA0","\\ ");l(R,p,Rt,"\xA0"," ");l(R,p,Rt,"\xA0","\\space");l(R,p,Rt,"\xA0","\\nobreakspace");l(d,p,Rt,"","\\nobreak");l(d,p,Rt,"","\\allowbreak");l(d,p,Wr,",",",");l(d,p,Wr,";",";");l(d,k,q,"\u22BC","\\barwedge",!0);l(d,k,q,"\u22BB","\\veebar",!0);l(d,p,q,"\u2299","\\odot",!0);l(d,p,q,"\u2295","\\oplus",!0);l(d,p,q,"\u2297","\\otimes",!0);l(d,p,C,"\u2202","\\partial",!0);l(d,p,q,"\u2298","\\oslash",!0);l(d,k,q,"\u229A","\\circledcirc",!0);l(d,k,q,"\u22A1","\\boxdot",!0);l(d,p,q,"\u25B3","\\bigtriangleup");l(d,p,q,"\u25BD","\\bigtriangledown");l(d,p,q,"\u2020","\\dagger");l(d,p,q,"\u22C4","\\diamond");l(d,p,q,"\u22C6","\\star");l(d,p,q,"\u25C3","\\triangleleft");l(d,p,q,"\u25B9","\\triangleright");l(d,p,Je,"{","\\{");l(R,p,C,"{","\\{");l(R,p,C,"{","\\textbraceleft");l(d,p,He,"}","\\}");l(R,p,C,"}","\\}");l(R,p,C,"}","\\textbraceright");l(d,p,Je,"{","\\lbrace");l(d,p,He,"}","\\rbrace");l(d,p,Je,"[","\\lbrack",!0);l(R,p,C,"[","\\lbrack",!0);l(d,p,He,"]","\\rbrack",!0);l(R,p,C,"]","\\rbrack",!0);l(d,p,Je,"(","\\lparen",!0);l(d,p,He,")","\\rparen",!0);l(R,p,C,"<","\\textless",!0);l(R,p,C,">","\\textgreater",!0);l(d,p,Je,"\u230A","\\lfloor",!0);l(d,p,He,"\u230B","\\rfloor",!0);l(d,p,Je,"\u2308","\\lceil",!0);l(d,p,He,"\u2309","\\rceil",!0);l(d,p,C,"\\","\\backslash");l(d,p,C,"\u2223","|");l(d,p,C,"\u2223","\\vert");l(R,p,C,"|","\\textbar",!0);l(d,p,C,"\u2225","\\|");l(d,p,C,"\u2225","\\Vert");l(R,p,C,"\u2225","\\textbardbl");l(R,p,C,"~","\\textasciitilde");l(R,p,C,"\\","\\textbackslash");l(R,p,C,"^","\\textasciicircum");l(d,p,S,"\u2191","\\uparrow",!0);l(d,p,S,"\u21D1","\\Uparrow",!0);l(d,p,S,"\u2193","\\downarrow",!0);l(d,p,S,"\u21D3","\\Downarrow",!0);l(d,p,S,"\u2195","\\updownarrow",!0);l(d,p,S,"\u21D5","\\Updownarrow",!0);l(d,p,Me,"\u2210","\\coprod");l(d,p,Me,"\u22C1","\\bigvee");l(d,p,Me,"\u22C0","\\bigwedge");l(d,p,Me,"\u2A04","\\biguplus");l(d,p,Me,"\u22C2","\\bigcap");l(d,p,Me,"\u22C3","\\bigcup");l(d,p,Me,"\u222B","\\int");l(d,p,Me,"\u222B","\\intop");l(d,p,Me,"\u222C","\\iint");l(d,p,Me,"\u222D","\\iiint");l(d,p,Me,"\u220F","\\prod");l(d,p,Me,"\u2211","\\sum");l(d,p,Me,"\u2A02","\\bigotimes");l(d,p,Me,"\u2A01","\\bigoplus");l(d,p,Me,"\u2A00","\\bigodot");l(d,p,Me,"\u222E","\\oint");l(d,p,Me,"\u222F","\\oiint");l(d,p,Me,"\u2230","\\oiiint");l(d,p,Me,"\u2A06","\\bigsqcup");l(d,p,Me,"\u222B","\\smallint");l(R,p,Sr,"\u2026","\\textellipsis");l(d,p,Sr,"\u2026","\\mathellipsis");l(R,p,Sr,"\u2026","\\ldots",!0);l(d,p,Sr,"\u2026","\\ldots",!0);l(d,p,Sr,"\u22EF","\\@cdots",!0);l(d,p,Sr,"\u22F1","\\ddots",!0);l(d,p,C,"\u22EE","\\varvdots");l(R,p,C,"\u22EE","\\varvdots");l(d,p,be,"\u02CA","\\acute");l(d,p,be,"\u02CB","\\grave");l(d,p,be,"\xA8","\\ddot");l(d,p,be,"~","\\tilde");l(d,p,be,"\u02C9","\\bar");l(d,p,be,"\u02D8","\\breve");l(d,p,be,"\u02C7","\\check");l(d,p,be,"^","\\hat");l(d,p,be,"\u20D7","\\vec");l(d,p,be,"\u02D9","\\dot");l(d,p,be,"\u02DA","\\mathring");l(d,p,Y,"\uE131","\\@imath");l(d,p,Y,"\uE237","\\@jmath");l(d,p,C,"\u0131","\u0131");l(d,p,C,"\u0237","\u0237");l(R,p,C,"\u0131","\\i",!0);l(R,p,C,"\u0237","\\j",!0);l(R,p,C,"\xDF","\\ss",!0);l(R,p,C,"\xE6","\\ae",!0);l(R,p,C,"\u0153","\\oe",!0);l(R,p,C,"\xF8","\\o",!0);l(R,p,C,"\xC6","\\AE",!0);l(R,p,C,"\u0152","\\OE",!0);l(R,p,C,"\xD8","\\O",!0);l(R,p,be,"\u02CA","\\'");l(R,p,be,"\u02CB","\\`");l(R,p,be,"\u02C6","\\^");l(R,p,be,"\u02DC","\\~");l(R,p,be,"\u02C9","\\=");l(R,p,be,"\u02D8","\\u");l(R,p,be,"\u02D9","\\.");l(R,p,be,"\xB8","\\c");l(R,p,be,"\u02DA","\\r");l(R,p,be,"\u02C7","\\v");l(R,p,be,"\xA8",'\\"');l(R,p,be,"\u02DD","\\H");l(R,p,be,"\u25EF","\\textcircled");E0={"--":!0,"---":!0,"``":!0,"''":!0};l(R,p,C,"\u2013","--",!0);l(R,p,C,"\u2013","\\textendash");l(R,p,C,"\u2014","---",!0);l(R,p,C,"\u2014","\\textemdash");l(R,p,C,"\u2018","`",!0);l(R,p,C,"\u2018","\\textquoteleft");l(R,p,C,"\u2019","'",!0);l(R,p,C,"\u2019","\\textquoteright");l(R,p,C,"\u201C","``",!0);l(R,p,C,"\u201C","\\textquotedblleft");l(R,p,C,"\u201D","''",!0);l(R,p,C,"\u201D","\\textquotedblright");l(d,p,C,"\xB0","\\degree",!0);l(R,p,C,"\xB0","\\degree");l(R,p,C,"\xB0","\\textdegree",!0);l(d,p,C,"\xA3","\\pounds");l(d,p,C,"\xA3","\\mathsterling",!0);l(R,p,C,"\xA3","\\pounds");l(R,p,C,"\xA3","\\textsterling",!0);l(d,k,C,"\u2720","\\maltese");l(R,k,C,"\u2720","\\maltese");Wi='0123456789/@."';for(Tn=0;Tn<Wi.length;Tn++)Ra=Wi.charAt(Tn),l(d,p,C,Ra,Ra);Vi='0123456789!@*()-=+";:?/.,';for(Cn=0;Cn<Vi.length;Cn++)za=Vi.charAt(Cn),l(R,p,C,za,za);jn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(Mn=0;Mn<jn.length;Mn++)jr=jn.charAt(Mn),l(d,p,Y,jr,jr),l(R,p,C,jr,jr);l(d,k,C,"C","\u2102");l(R,k,C,"C","\u2102");l(d,k,C,"H","\u210D");l(R,k,C,"H","\u210D");l(d,k,C,"N","\u2115");l(R,k,C,"N","\u2115");l(d,k,C,"P","\u2119");l(R,k,C,"P","\u2119");l(d,k,C,"Q","\u211A");l(R,k,C,"Q","\u211A");l(d,k,C,"R","\u211D");l(R,k,C,"R","\u211D");l(d,k,C,"Z","\u2124");l(R,k,C,"Z","\u2124");l(d,p,Y,"h","\u210E");l(R,p,Y,"h","\u210E");for(_e=0;_e<jn.length;_e++)we=jn.charAt(_e),K=String.fromCharCode(55349,56320+_e),l(d,p,Y,we,K),l(R,p,C,we,K),K=String.fromCharCode(55349,56372+_e),l(d,p,Y,we,K),l(R,p,C,we,K),K=String.fromCharCode(55349,56424+_e),l(d,p,Y,we,K),l(R,p,C,we,K),K=String.fromCharCode(55349,56580+_e),l(d,p,Y,we,K),l(R,p,C,we,K),K=String.fromCharCode(55349,56684+_e),l(d,p,Y,we,K),l(R,p,C,we,K),K=String.fromCharCode(55349,56736+_e),l(d,p,Y,we,K),l(R,p,C,we,K),K=String.fromCharCode(55349,56788+_e),l(d,p,Y,we,K),l(R,p,C,we,K),K=String.fromCharCode(55349,56840+_e),l(d,p,Y,we,K),l(R,p,C,we,K),K=String.fromCharCode(55349,56944+_e),l(d,p,Y,we,K),l(R,p,C,we,K),_e<26&&(K=String.fromCharCode(55349,56632+_e),l(d,p,Y,we,K),l(R,p,C,we,K),K=String.fromCharCode(55349,56476+_e),l(d,p,Y,we,K),l(R,p,C,we,K));K="\u{1D55C}";l(d,p,Y,"k",K);l(R,p,C,"k",K);for(Ht=0;Ht<10;Ht++)Ct=Ht.toString(),K=String.fromCharCode(55349,57294+Ht),l(d,p,Y,Ct,K),l(R,p,C,Ct,K),K=String.fromCharCode(55349,57314+Ht),l(d,p,Y,Ct,K),l(R,p,C,Ct,K),K=String.fromCharCode(55349,57324+Ht),l(d,p,Y,Ct,K),l(R,p,C,Ct,K),K=String.fromCharCode(55349,57334+Ht),l(d,p,Y,Ct,K),l(R,p,C,Ct,K);Za="\xD0\xDE\xFE";for($n=0;$n<Za.length;$n++)Lr=Za.charAt($n),l(d,p,Y,Lr,Lr),l(R,p,C,Lr,Lr);Xa={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},Zi={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},Xi={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},cu={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},ir={mathClass:"",textClass:"",font:""},Yi={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},Ji={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},Ki={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},Ya={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},Ja={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},Qi={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},Ka={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},e0=[Xa,Xa,Zi,Zi,Xi,Xi,cu,ir,ir,ir,Yi,Yi,Ji,Ji,Ki,Ki,Ya,Ya,Ja,Ja,Qi,Qi,ir,ir,Ka,Ka],du=[Xa,ir,Ya,Ja,Ka],uu=r=>{var e=r.charCodeAt(0),t=r.charCodeAt(1),n=(e-55296)*1024+(t-56320)+65536;if(119808<=n&&n<120484){var a=Math.floor((n-119808)/26);return e0[a]}else if(120782<=n&&n<=120831){var s=Math.floor((n-120782)/10);return du[s]}else{if(n===120485||n===120486)return e0[0];if(120486<n&&n<120782)return ir;throw new N("Unsupported character: "+r)}},Wn=function(e,t,n){if(ve[n][e]){var a=ve[n][e].replace;a&&(e=a)}return{value:e,metrics:ps(e,t,n)}},Le=function(e,t,n,a,s){var i=Wn(e,t,n),o=i.metrics;e=i.value;var c;if(o){var m=o.italic;(n==="text"||a&&a.font==="mathit")&&(m=0),c=new Pe(e,o.height,o.depth,m,o.skew,o.width,s)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+e+"' in style '"+t+"' and mode '"+n+"'")),c=new Pe(e,0,0,0,0,0,s);if(a){c.maxFontSize=a.sizeMultiplier,a.style.isTight()&&c.classes.push("mtight");var u=a.getColor();u&&(c.style.color=u)}return c},hs=function(e,t,n,a){return a===void 0&&(a=[]),n.font==="boldsymbol"&&Wn(e,"Main-Bold",t).metrics?Le(e,"Main-Bold",t,n,a.concat(["mathbf"])):e==="\\"||ve[t][e].font==="main"?Le(e,"Main-Regular",t,n,a):Le(e,"AMS-Regular",t,n,a.concat(["amsrm"]))},mu=function(e,t,n){return n!=="textord"&&Wn(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Vn=function(e,t,n){var a=e.mode,s=e.text,i=["mord"],{font:o,fontFamily:c,fontWeight:m,fontShape:u}=t,h=a==="math"||a==="text"&&!!o,f=h?o:c,b="",w="";if(s.charCodeAt(0)===55349){var g=uu(s);b=g.font,w=g[a+"Class"]}if(b)return Le(s,b,a,t,i.concat(w));if(f){var y,x;if(f==="boldsymbol"){var A=mu(s,a,n);y=A.fontName,x=[A.fontClass]}else h?(y=Qa[o].fontName,x=[o]):(y=En(c,m,u),x=[c,m,u]);if(Wn(s,y,a).metrics)return Le(s,y,a,t,i.concat(x));if(E0.hasOwnProperty(s)&&y.slice(0,10)==="Typewriter"){for(var M=[],E=0;E<s.length;E++)M.push(Le(s[E],y,a,t,i.concat(x)));return zt(M)}}if(n==="mathord")return Le(s,"Math-Italic",a,t,i.concat(["mathnormal"]));if(n==="textord"){var T=ve[a][s]&&ve[a][s].font;if(T==="ams"){var D=En("amsrm",m,u);return Le(s,D,a,t,i.concat("amsrm",m,u))}else if(T==="main"||!T){var $=En("textrm",m,u);return Le(s,$,a,t,i.concat(m,u))}else{var z=En(T,m,u);return Le(s,z,a,t,i.concat(z,m,u))}}else throw new Error("unexpected type: "+n+" in makeOrd")},pu=(r,e)=>{if(Gt(r.classes)!==Gt(e.classes)||r.skew!==e.skew||r.maxFontSize!==e.maxFontSize||r.italic!==0&&r.hasClass("mathnormal"))return!1;if(r.classes.length===1){var t=r.classes[0];if(t==="mbin"||t==="mord")return!1}for(var n of Object.keys(r.style))if(r.style[n]!==e.style[n])return!1;for(var a of Object.keys(e.style))if(r.style[a]!==e.style[a])return!1;return!0},R0=r=>{for(var e=0;e<r.length-1;e++){var t=r[e],n=r[e+1];t instanceof Pe&&n instanceof Pe&&pu(t,n)&&(t.text+=n.text,t.height=Math.max(t.height,n.height),t.depth=Math.max(t.depth,n.depth),t.italic=n.italic,r.splice(e+1,1),e--)}return r},fs=function(e){for(var t=0,n=0,a=0,s=0;s<e.children.length;s++){var i=e.children[s];i.height>t&&(t=i.height),i.depth>n&&(n=i.depth),i.maxFontSize>a&&(a=i.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=a},I=function(e,t,n,a){var s=new Wt(e,t,n,a);return fs(s),s},Vt=(r,e,t,n)=>new Wt(r,e,t,n),xr=function(e,t,n){var a=I([e],[],t);return a.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),a.style.borderBottomWidth=j(a.height),a.maxFontSize=1,a},hu=function(e,t,n,a){var s=new wr(e,t,n,a);return fs(s),s},zt=function(e){var t=new Ut(e);return fs(t),t},kr=function(e,t){return e instanceof Ut?I([],[e],t):e},fu=function(e){if(e.positionType==="individualShift"){for(var t=e.children,n=[t[0]],a=-t[0].shift-t[0].elem.depth,s=a,i=1;i<t.length;i++){var o=-t[i].shift-s-t[i].elem.depth,c=o-(t[i-1].elem.height+t[i-1].elem.depth);s=s+o,n.push({type:"kern",size:c}),n.push(t[i])}return{children:n,depth:a}}var m;if(e.positionType==="top"){for(var u=e.positionData,h=0;h<e.children.length;h++){var f=e.children[h];u-=f.type==="kern"?f.size:f.elem.height+f.elem.depth}m=u}else if(e.positionType==="bottom")m=-e.positionData;else{var b=e.children[0];if(b.type!=="elem")throw new Error('First child must have type "elem".');if(e.positionType==="shift")m=-b.elem.depth-e.positionData;else if(e.positionType==="firstBaseline")m=-b.elem.depth;else throw new Error("Invalid positionType "+e.positionType+".")}return{children:e.children,depth:m}},le=function(e,t){for(var{children:n,depth:a}=fu(e),s=0,i=0;i<n.length;i++){var o=n[i];if(o.type==="elem"){var c=o.elem;s=Math.max(s,c.maxFontSize,c.height)}}s+=2;var m=I(["pstrut"],[]);m.style.height=j(s);for(var u=[],h=a,f=a,b=a,w=0;w<n.length;w++){var g=n[w];if(g.type==="kern")b+=g.size;else{var y=g.elem,x=g.wrapperClasses||[],A=g.wrapperStyle||{},M=I(x,[m,y],void 0,A);M.style.top=j(-s-b-y.depth),g.marginLeft&&(M.style.marginLeft=g.marginLeft),g.marginRight&&(M.style.marginRight=g.marginRight),u.push(M),b+=y.height+y.depth}h=Math.min(h,b),f=Math.max(f,b)}var E=I(["vlist"],u);E.style.height=j(f);var T;if(h<0){var D=I([],[]),$=I(["vlist"],[D]);$.style.height=j(-h);var z=I(["vlist-s"],[new Pe("\u200B")]);T=[I(["vlist-r"],[E,z]),I(["vlist-r"],[$])]}else T=[I(["vlist-r"],[E])];var O=I(["vlist-t"],T);return T.length===2&&O.classes.push("vlist-t2"),O.height=f,O.depth=-h,O},z0=(r,e)=>{var t=I(["mspace"],[],e),n=ke(r,e);return t.style.marginRight=j(n),t},En=(r,e,t)=>{var n,a;switch(r){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=r}return e==="textbf"&&t==="textit"?a="BoldItalic":e==="textbf"?a="Bold":t==="textit"?a="Italic":a="Regular",n+"-"+a},Qa={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},F0={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},O0=function(e,t){var[n,a,s]=F0[e],i=new gt(n),o=new lt([i],{width:j(a),height:j(s),style:"width:"+j(a),viewBox:"0 0 "+1e3*a+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),c=Vt(["overlay"],[o],t);return c.height=s,c.style.height=j(s),c.style.width=j(a),c},xe={number:3,unit:"mu"},sr={number:4,unit:"mu"},Mt={number:5,unit:"mu"},gu={mord:{mop:xe,mbin:sr,mrel:Mt,minner:xe},mop:{mord:xe,mop:xe,mrel:Mt,minner:xe},mbin:{mord:sr,mop:sr,mopen:sr,minner:sr},mrel:{mord:Mt,mop:Mt,mopen:Mt,minner:Mt},mopen:{},mclose:{mop:xe,mbin:sr,mrel:Mt,minner:xe},mpunct:{mord:xe,mop:xe,mrel:Mt,mopen:xe,mclose:xe,mpunct:xe,minner:xe},minner:{mord:xe,mop:xe,mbin:sr,mrel:Mt,mopen:xe,mpunct:xe,minner:xe}},vu={mord:{mop:xe},mop:{mord:xe,mop:xe},mbin:{},mrel:{},mopen:{},mclose:{mop:xe},mpunct:{},minner:{mop:xe}},I0={},Ln={},Bn={};Pn=function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},Ce=function(e){return e.type==="ordgroup"?e.body:[e]},bu=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),yu=new Set(["rightmost","mrel","mclose","mpunct"]),wu={display:Q.DISPLAY,text:Q.TEXT,script:Q.SCRIPT,scriptscript:Q.SCRIPTSCRIPT},xu={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Ee=function(e,t,n,a){a===void 0&&(a=[null,null]);for(var s=[],i=0;i<e.length;i++){var o=ce(e[i],t);if(o instanceof Ut){var c=o.children;s.push(...c)}else s.push(o)}if(R0(s),!n)return s;var m=t;if(e.length===1){var u=e[0];u.type==="sizing"?m=t.havingSize(u.size):u.type==="styling"&&(m=t.havingStyle(wu[u.style]))}var h=I([a[0]||"leftmost"],[],t),f=I([a[1]||"rightmost"],[],t),b=n==="root";return es(s,(w,g)=>{var y=g.classes[0],x=w.classes[0];y==="mbin"&&yu.has(x)?g.classes[0]="mord":x==="mbin"&&bu.has(y)&&(w.classes[0]="mord")},{node:h},f,b),es(s,(w,g)=>{var y,x,A=rs(g),M=rs(w),E=A&&M?w.hasClass("mtight")?(y=vu[A])==null?void 0:y[M]:(x=gu[A])==null?void 0:x[M]:null;if(E)return z0(E,m)},{node:h},f,b),s},es=function(e,t,n,a,s){a&&e.push(a);for(var i=0;i<e.length;i++){var o=e[i],c=_0(o);if(c){es(c.children,t,n,null,s);continue}var m=!o.hasClass("mspace");if(m){var u=t(o,n.node);u&&(n.insertAfter?n.insertAfter(u):(e.unshift(u),i++))}m?n.node=o:s&&o.hasClass("newline")&&(n.node=I(["leftmost"])),n.insertAfter=(h=>f=>{e.splice(h+1,0,f),i++})(i)}a&&e.pop()},_0=function(e){return e instanceof Ut||e instanceof wr||e instanceof Wt&&e.hasClass("enclosing")?e:null},ts=function(e,t){var n=_0(e);if(n){var a=n.children;if(a.length){if(t==="right")return ts(a[a.length-1],"right");if(t==="left")return ts(a[0],"left")}}return e},rs=function(e,t){if(!e)return null;t&&(e=ts(e,t));var n=e.classes[0];return xu[n]||null},Gr=function(e,t){var n=["nulldelimiter"].concat(e.baseSizingClasses());return I(t.concat(n))},ce=function(e,t,n){if(!e)return I();if(Ln[e.type]){var a=Ln[e.type](e,t);if(n&&t.size!==n.size){a=I(t.sizingClasses(n),[a],t);var s=t.sizeMultiplier/n.sizeMultiplier;a.height*=s,a.depth*=s}return a}else throw new N("Got group of unknown type: '"+e.type+"'")};_=class{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=Gt(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof Se&&this.children[n+1]instanceof Se){for(var a=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof Se;)a+=this.children[++n].toText();e.appendChild(new Se(a).toNode())}else e.appendChild(this.children[n].toNode());return e}toMarkup(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=Ne(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+Ne(Gt(this.classes))+'"'),e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</"+this.type+">",e}toText(){return this.children.map(e=>e.toText()).join("")}},Se=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return Ne(this.toText())}toText(){return this.text}},Hn=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character="\u200A":e>=.1666&&e<=.1667?this.character="\u2009":e>=.2222&&e<=.2223?this.character="\u2005":e>=.2777&&e<=.2778?this.character="\u2005\u200A":e>=-.05556&&e<=-.05555?this.character="\u200A\u2063":e>=-.1667&&e<=-.1666?this.character="\u2009\u2063":e>=-.2223&&e<=-.2222?this.character="\u205F\u2063":e>=-.2778&&e<=-.2777?this.character="\u2005\u2063":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",j(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+j(this.width)+'"/>'}toText(){return this.character?this.character:" "}},ku=new Set(["\\imath","\\jmath"]),Su=new Set(["mrow","mtable"]),tt=function(e,t,n){return ve[t][e]&&ve[t][e].replace&&e.charCodeAt(0)!==55349&&!(E0.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(e=ve[t][e].replace),new Se(e)},gs=function(e){return e.length===1?e[0]:new _("mrow",e)},Au={mathit:"italic",boldsymbol:r=>r.type==="textord"?"bold":"bold-italic",mathbf:"bold",mathbb:"double-struck",mathsfit:"sans-serif-italic",mathfrak:"fraktur",mathscr:"script",mathcal:"script",mathsf:"sans-serif",mathtt:"monospace"},vs=(r,e)=>{if(r.mode==="text"){if(e.fontFamily==="texttt")return"monospace";if(e.fontFamily==="textsf")return e.fontShape==="textit"&&e.fontWeight==="textbf"?"sans-serif-bold-italic":e.fontShape==="textit"?"sans-serif-italic":e.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(e.fontShape==="textit"&&e.fontWeight==="textbf")return"bold-italic";if(e.fontShape==="textit")return"italic";if(e.fontWeight==="textbf")return"bold"}var t=e.font;if(!t||t==="mathnormal")return null;var n=r.mode,a=Au[t];if(a)return typeof a=="function"?a(r):a;var s=r.text;if(ku.has(s))return null;if(ve[n][s]){var i=ve[n][s].replace;i&&(s=i)}var o=Qa[t].fontName;return ps(s,o,n)?Qa[t].variant:null};Ke=function(e,t,n){if(e.length===1){var a=me(e[0],t);return n&&a instanceof _&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var s=[],i,o=0;o<e.length;o++){var c=me(e[o],t);if(c instanceof _&&i instanceof _){if(c.type==="mtext"&&i.type==="mtext"&&c.getAttribute("mathvariant")===i.getAttribute("mathvariant")){i.children.push(...c.children);continue}else if(c.type==="mn"&&i.type==="mn"){i.children.push(...c.children);continue}else if(Fa(c)&&i.type==="mn"){i.children.push(...c.children);continue}else if(c.type==="mn"&&Fa(i))c.children=[...i.children,...c.children],s.pop();else if((c.type==="msup"||c.type==="msub")&&c.children.length>=1&&(i.type==="mn"||Fa(i))){var m=c.children[0];m instanceof _&&m.type==="mn"&&(m.children=[...i.children,...m.children],s.pop())}else if(i.type==="mi"&&i.children.length===1){var u=i.children[0];if(u instanceof Se&&u.text==="\u0338"&&(c.type==="mo"||c.type==="mi"||c.type==="mn")){var h=c.children[0];h instanceof Se&&h.text.length>0&&(h.text=h.text.slice(0,1)+"\u0338"+h.text.slice(1),s.pop())}}}s.push(c),i=c}return s},Zt=function(e,t,n){return gs(Ke(e,t,n))},me=function(e,t){if(!e)return new _("mrow");if(Bn[e.type])return Bn[e.type](e,t);throw new N("Got group of unknown type: '"+e.type+"'")};Du=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],r0=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],n0=function(e,t){return t.size<2?e:Du[e-1][t.size-1]},qn=class r{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||r.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=r0[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(t,e),new r(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:n0(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:r0[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=n0(r.BASESIZE,e);return this.size===t&&this.textSize===r.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==r.BASESIZE?["sizing","reset-size"+this.size,"size"+r.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=lu(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};qn.BASESIZE=6;j0=function(e){return new qn({style:e.displayMode?Q.DISPLAY:Q.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},L0=function(e,t){if(t.displayMode){var n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=I(n,[e])}return e},Tu=function(e,t,n){var a=j0(n),s;if(n.output==="mathml")return t0(e,t,a,n.displayMode,!0);if(n.output==="html"){var i=ns(e,a);s=I(["katex"],[i])}else{var o=t0(e,t,a,n.displayMode,!1),c=ns(e,a);s=I(["katex"],[o,c])}return L0(s,n)},Cu=function(e,t,n){var a=j0(n),s=ns(e,a),i=I(["katex"],[s]);return L0(i,n)},Mu={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",underbracket:"\u23B5",overbracket:"\u23B4",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},Zn=function(e){var t=new _("mo",[new Se(Mu[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},$u={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Eu=new Set(["widehat","widecheck","widetilde","utilde"]),Xn=function(e,t){function n(){var o=4e5,c=e.label.slice(1);if(Eu.has(c)&&"base"in e){var m=e.base.type==="ordgroup"?e.base.body.length:1,u,h,f;if(m>5)c==="widehat"||c==="widecheck"?(u=420,o=2364,f=.42,h=c+"4"):(u=312,o=2340,f=.34,h="tilde4");else{var b=[1,1,2,2,3,3][m];c==="widehat"||c==="widecheck"?(o=[0,1062,2364,2364,2364][b],u=[0,239,300,360,420][b],f=[0,.24,.3,.3,.36,.42][b],h=c+b):(o=[0,600,1033,2339,2340][b],u=[0,260,286,306,312][b],f=[0,.26,.286,.3,.306,.34][b],h="tilde"+b)}var w=new gt(h),g=new lt([w],{width:"100%",height:j(f),viewBox:"0 0 "+o+" "+u,preserveAspectRatio:"none"});return{span:Vt([],[g],t),minWidth:0,height:f}}else{var y=[],x=$u[c];if(!x)throw new Error('No SVG data for "'+c+'".');var[A,M,E]=x,T=E/1e3,D=A.length,$,z;if(D===1){if(x.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+c+'".');$=["hide-tail"],z=[x[3]]}else if(D===2)$=["halfarrow-left","halfarrow-right"],z=["xMinYMin","xMaxYMin"];else if(D===3)$=["brace-left","brace-center","brace-right"],z=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
257
+ `+D+" children.");for(var O=0;O<D;O++){var U=new gt(A[O]),L=new lt([U],{width:"400em",height:j(T),viewBox:"0 0 "+o+" "+E,preserveAspectRatio:z[O]+" slice"}),X=Vt([$[O]],[L],t);if(D===1)return{span:X,minWidth:M,height:T};X.style.height=j(T),y.push(X)}return{span:I(["stretchy"],y,t),minWidth:M,height:T}}}var{span:a,minWidth:s,height:i}=n();return a.height=i,a.style.height=j(i),s>0&&(a.style.minWidth=j(s)),a},Ru=function(e,t,n,a,s){var i,o=e.height+e.depth+n+a;if(/fbox|color|angl/.test(t)){if(i=I(["stretchy",t],[],s),t==="fbox"){var c=s.color&&s.getColor();c&&(i.style.borderColor=c)}}else{var m=[];/^[bx]cancel$/.test(t)&&m.push(new Ur({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&m.push(new Ur({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var u=new lt(m,{width:"100%",height:j(o)});i=Vt([],[u],s)}return i.height=o,i.style.height=j(o),i},zu={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Fu={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};B0=r=>{if(r instanceof Pe)return r;if(iu(r)&&r.children.length===1)return B0(r.children[0])},bs=(r,e)=>{var t,n,a;r&&r.type==="supsub"?(n=re(r.base,"accent"),t=n.base,r.base=t,a=su(ce(r,e)),r.base=n):(n=re(r,"accent"),t=n.base);var s=ce(t,e.havingCrampedStyle()),i=n.isShifty&&Et(t),o=0;if(i){var c,m;o=(c=(m=B0(s))==null?void 0:m.skew)!=null?c:0}var u=n.label==="\\c",h=u?s.height+s.depth:Math.min(s.height,e.fontMetrics().xHeight),f;if(n.isStretchy)f=Xn(n,e),f=le({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+j(2*o)+")",marginLeft:j(2*o)}:void 0}]});else{var b,w;n.label==="\\vec"?(b=O0("vec",e),w=F0.vec[1]):(b=Vn({type:"textord",mode:n.mode,text:n.label},e,"textord"),b=au(b),b.italic=0,w=b.width,u&&(h+=b.depth)),f=I(["accent-body"],[b]);var g=n.label==="\\textcircled";g&&(f.classes.push("accent-full"),h=s.height);var y=o;g||(y-=w/2),f.style.left=j(y),n.label==="\\textcircled"&&(f.style.top=".2em"),f=le({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-h},{type:"elem",elem:f}]})}var x=I(["mord","accent"],[f],e);return a?(a.children[0]=x,a.height=Math.max(x.height,a.height),a.classes[0]="mord",a):x},P0=(r,e)=>{var t=r.isStretchy?Zn(r.label):new _("mo",[tt(r.label,r.mode)]),n=new _("mover",[me(r.base,e),t]);return n.setAttribute("accent","true"),n},Iu=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(r=>"\\"+r).join("|"));P({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(r,e)=>{var t=Pn(e[0]),n=!Iu.test(r.funcName),a=!n||r.funcName==="\\widehat"||r.funcName==="\\widetilde"||r.funcName==="\\widecheck";return{type:"accent",mode:r.parser.mode,label:r.funcName,isStretchy:n,isShifty:a,base:t}},htmlBuilder:bs,mathmlBuilder:P0});P({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(r,e)=>{var t=e[0],n=r.parser.mode;return n==="math"&&(r.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+r.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:r.funcName,isStretchy:!1,isShifty:!0,base:t}},htmlBuilder:bs,mathmlBuilder:P0});P({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(r,e)=>{var{parser:t,funcName:n}=r,a=e[0];return{type:"accentUnder",mode:t.mode,label:n,base:a}},htmlBuilder:(r,e)=>{var t=ce(r.base,e),n=Xn(r,e),a=r.label==="\\utilde"?.12:0,s=le({positionType:"top",positionData:t.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:t}]});return I(["mord","accentunder"],[s],e)},mathmlBuilder:(r,e)=>{var t=Zn(r.label),n=new _("munder",[me(r.base,e),t]);return n.setAttribute("accentunder","true"),n}});zn=r=>{var e=new _("mpadded",r?[r]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};P({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(r,e,t){var{parser:n,funcName:a}=r;return{type:"xArrow",mode:n.mode,label:a,body:e[0],below:t[0]}},htmlBuilder(r,e){var t=e.style,n=e.havingStyle(t.sup()),a=kr(ce(r.body,n,e),e),s=r.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(s+"-arrow-pad");var i;r.below&&(n=e.havingStyle(t.sub()),i=kr(ce(r.below,n,e),e),i.classes.push(s+"-arrow-pad"));var o=Xn(r,e),c=-e.fontMetrics().axisHeight+.5*o.height,m=-e.fontMetrics().axisHeight-.5*o.height-.111;(a.depth>.25||r.label==="\\xleftequilibrium")&&(m-=a.depth);var u;if(i){var h=-e.fontMetrics().axisHeight+i.height+.5*o.height+.111;u=le({positionType:"individualShift",children:[{type:"elem",elem:a,shift:m},{type:"elem",elem:o,shift:c,wrapperClasses:["svg-align"]},{type:"elem",elem:i,shift:h}]})}else u=le({positionType:"individualShift",children:[{type:"elem",elem:a,shift:m},{type:"elem",elem:o,shift:c,wrapperClasses:["svg-align"]}]});return I(["mrel","x-arrow"],[u],e)},mathmlBuilder(r,e){var t=Zn(r.label);t.setAttribute("minsize",r.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(r.body){var a=zn(me(r.body,e));if(r.below){var s=zn(me(r.below,e));n=new _("munderover",[t,s,a])}else n=new _("mover",[t,a])}else if(r.below){var i=zn(me(r.below,e));n=new _("munder",[t,i])}else n=zn(),n=new _("mover",[t,n]);return n}});P({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(r,e){var{parser:t,funcName:n}=r,a=e[0];return{type:"mclass",mode:t.mode,mclass:"m"+n.slice(5),body:Ce(a),isCharacterBox:Et(a)}},htmlBuilder:H0,mathmlBuilder:q0});Kn=r=>{var e=r.type==="ordgroup"&&r.body.length?r.body[0]:r;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};P({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(r,e){var{parser:t}=r;return{type:"mclass",mode:t.mode,mclass:Kn(e[0]),body:Ce(e[1]),isCharacterBox:Et(e[1])}}});P({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(r,e){var{parser:t,funcName:n}=r,a=e[1],s=e[0],i;n!=="\\stackrel"?i=Kn(a):i="mrel";var o={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:Ce(a)},c={type:"supsub",mode:s.mode,base:o,sup:n==="\\underset"?null:s,sub:n==="\\underset"?s:null};return{type:"mclass",mode:t.mode,mclass:i,body:[c],isCharacterBox:Et(c)}},htmlBuilder:H0,mathmlBuilder:q0});P({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"pmb",mode:t.mode,mclass:Kn(e[0]),body:Ce(e[0])}},htmlBuilder(r,e){var t=Ee(r.body,e,!0),n=I([r.mclass],t,e);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(r,e){var t=Ke(r.body,e),n=new _("mstyle",t);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});_u={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},a0=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),s0=r=>r.type==="textord"&&r.text==="@",Nu=(r,e)=>(r.type==="mathord"||r.type==="atom")&&r.text===e;P({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:n}=r;return{type:"cdlabel",mode:t.mode,side:n.slice(4),label:e[0]}},htmlBuilder(r,e){var t=e.havingStyle(e.style.sup()),n=kr(ce(r.label,t,e),e);return n.classes.push("cd-label-"+r.side),n.style.bottom=j(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(r,e){var t=new _("mrow",[me(r.label,e)]);return t=new _("mpadded",[t]),t.setAttribute("width","0"),r.side==="left"&&t.setAttribute("lspace","-1width"),t.setAttribute("voffset","0.7em"),t=new _("mstyle",[t]),t.setAttribute("displaystyle","false"),t.setAttribute("scriptlevel","1"),t}});P({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(r,e){var{parser:t}=r;return{type:"cdlabelparent",mode:t.mode,fragment:e[0]}},htmlBuilder(r,e){var t=kr(ce(r.fragment,e),e);return t.classes.push("cd-vert-arrow"),t},mathmlBuilder(r,e){return new _("mrow",[me(r.fragment,e)])}});P({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(r,e){for(var{parser:t}=r,n=re(e[0],"ordgroup"),a=n.body,s="",i=0;i<a.length;i++){var o=re(a[i],"textord");s+=o.text}var c=parseInt(s),m;if(isNaN(c))throw new N("\\@char has non-numeric argument "+s);if(c<0||c>=1114111)throw new N("\\@char with invalid code point "+s);return c<=65535?m=String.fromCharCode(c):(c-=65536,m=String.fromCharCode((c>>10)+55296,(c&1023)+56320)),{type:"textord",mode:t.mode,text:m}}});U0=(r,e)=>{var t=Ee(r.body,e.withColor(r.color),!1);return zt(t)},G0=(r,e)=>{var t=Ke(r.body,e.withColor(r.color)),n=new _("mstyle",t);return n.setAttribute("mathcolor",r.color),n};P({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(r,e){var{parser:t}=r,n=re(e[0],"color-token").color,a=e[1];return{type:"color",mode:t.mode,color:n,body:Ce(a)}},htmlBuilder:U0,mathmlBuilder:G0});P({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(r,e){var{parser:t,breakOnTokenText:n}=r,a=re(e[0],"color-token").color;t.gullet.macros.set("\\current@color",a);var s=t.parseExpression(!0,n);return{type:"color",mode:t.mode,color:a,body:s}},htmlBuilder:U0,mathmlBuilder:G0});P({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(r,e,t){var{parser:n}=r,a=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,s=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:s,size:a&&re(a,"size").value}},htmlBuilder(r,e){var t=I(["mspace"],[],e);return r.newLine&&(t.classes.push("newline"),r.size&&(t.style.marginTop=j(ke(r.size,e)))),t},mathmlBuilder(r,e){var t=new _("mspace");return r.newLine&&(t.setAttribute("linebreak","newline"),r.size&&t.setAttribute("height",j(ke(r.size,e)))),t}});as={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},W0=r=>{var e=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new N("Expected a control sequence",r);return e},Bu=r=>{var e=r.gullet.popToken();return e.text==="="&&(e=r.gullet.popToken(),e.text===" "&&(e=r.gullet.popToken())),e},V0=(r,e,t,n)=>{var a=r.gullet.macros.get(t.text);a==null&&(t.noexpand=!0,a={tokens:[t],numArgs:0,unexpandable:!r.gullet.isExpandable(t.text)}),r.gullet.macros.set(e,a,n)};P({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(r){var{parser:e,funcName:t}=r;e.consumeSpaces();var n=e.fetch();if(as[n.text])return(t==="\\global"||t==="\\\\globallong")&&(n.text=as[n.text]),re(e.parseFunction(),"internal");throw new N("Invalid token after macro prefix",n)}});P({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,n=e.gullet.popToken(),a=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new N("Expected a control sequence",n);for(var s=0,i,o=[[]];e.gullet.future().text!=="{";)if(n=e.gullet.popToken(),n.text==="#"){if(e.gullet.future().text==="{"){i=e.gullet.future(),o[s].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new N('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==s+1)throw new N('Argument number "'+n.text+'" out of order');s++,o.push([])}else{if(n.text==="EOF")throw new N("Expected a macro definition");o[s].push(n.text)}var{tokens:c}=e.gullet.consumeArg();return i&&c.unshift(i),(t==="\\edef"||t==="\\xdef")&&(c=e.gullet.expandTokens(c),c.reverse()),e.gullet.macros.set(a,{tokens:c,numArgs:s,delimiters:o},t===as[t]),{type:"internal",mode:e.mode}}});P({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,n=W0(e.gullet.popToken());e.gullet.consumeSpaces();var a=Bu(e);return V0(e,n,a,t==="\\\\globallet"),{type:"internal",mode:e.mode}}});P({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,n=W0(e.gullet.popToken()),a=e.gullet.popToken(),s=e.gullet.popToken();return V0(e,n,s,t==="\\\\globalfuture"),e.gullet.pushToken(s),e.gullet.pushToken(a),{type:"internal",mode:e.mode}}});Br=function(e,t,n){var a=ve.math[e]&&ve.math[e].replace,s=ps(a||e,t,n);if(!s)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return s},ys=function(e,t,n,a){var s=n.havingBaseStyle(t),i=I(a.concat(s.sizingClasses(n)),[e],n),o=s.sizeMultiplier/n.sizeMultiplier;return i.height*=o,i.depth*=o,i.maxFontSize=s.sizeMultiplier,i},Z0=function(e,t,n){var a=t.havingBaseStyle(n),s=(1-t.sizeMultiplier/a.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=j(s),e.height-=s,e.depth+=s},Pu=function(e,t,n,a,s,i){var o=Le(e,"Main-Regular",s,a),c=ys(o,t,a,i);return n&&Z0(c,a,t),c},Hu=function(e,t,n,a){return Le(e,"Size"+t+"-Regular",n,a)},X0=function(e,t,n,a,s,i){var o=Hu(e,t,s,a),c=ys(I(["delimsizing","size"+t],[o],a),Q.TEXT,a,i);return n&&Z0(c,a,Q.TEXT),c},Oa=function(e,t,n){var a;t==="Size1-Regular"?a="delim-size1":a="delim-size4";var s=I(["delimsizinginner",a],[I([],[Le(e,t,n)])]);return{type:"elem",elem:s}},Ia=function(e,t,n){var a=ft["Size4-Regular"][e.charCodeAt(0)]?ft["Size4-Regular"][e.charCodeAt(0)][4]:ft["Size1-Regular"][e.charCodeAt(0)][4],s=new gt("inner",Kd(e,Math.round(1e3*t))),i=new lt([s],{width:j(a),height:j(t),style:"width:"+j(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),o=Vt([],[i],n);return o.height=t,o.style.height=j(t),o.style.width=j(a),{type:"elem",elem:o}},ss=.008,Fn={type:"kern",size:-1*ss},qu=new Set(["|","\\lvert","\\rvert","\\vert"]),Uu=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),Y0=function(e,t,n,a,s,i){var o,c,m,u,h="",f=0;o=m=u=e,c=null;var b="Size1-Regular";e==="\\uparrow"?m=u="\u23D0":e==="\\Uparrow"?m=u="\u2016":e==="\\downarrow"?o=m="\u23D0":e==="\\Downarrow"?o=m="\u2016":e==="\\updownarrow"?(o="\\uparrow",m="\u23D0",u="\\downarrow"):e==="\\Updownarrow"?(o="\\Uparrow",m="\u2016",u="\\Downarrow"):qu.has(e)?(m="\u2223",h="vert",f=333):Uu.has(e)?(m="\u2225",h="doublevert",f=556):e==="["||e==="\\lbrack"?(o="\u23A1",m="\u23A2",u="\u23A3",b="Size4-Regular",h="lbrack",f=667):e==="]"||e==="\\rbrack"?(o="\u23A4",m="\u23A5",u="\u23A6",b="Size4-Regular",h="rbrack",f=667):e==="\\lfloor"||e==="\u230A"?(m=o="\u23A2",u="\u23A3",b="Size4-Regular",h="lfloor",f=667):e==="\\lceil"||e==="\u2308"?(o="\u23A1",m=u="\u23A2",b="Size4-Regular",h="lceil",f=667):e==="\\rfloor"||e==="\u230B"?(m=o="\u23A5",u="\u23A6",b="Size4-Regular",h="rfloor",f=667):e==="\\rceil"||e==="\u2309"?(o="\u23A4",m=u="\u23A5",b="Size4-Regular",h="rceil",f=667):e==="("||e==="\\lparen"?(o="\u239B",m="\u239C",u="\u239D",b="Size4-Regular",h="lparen",f=875):e===")"||e==="\\rparen"?(o="\u239E",m="\u239F",u="\u23A0",b="Size4-Regular",h="rparen",f=875):e==="\\{"||e==="\\lbrace"?(o="\u23A7",c="\u23A8",u="\u23A9",m="\u23AA",b="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(o="\u23AB",c="\u23AC",u="\u23AD",m="\u23AA",b="Size4-Regular"):e==="\\lgroup"||e==="\u27EE"?(o="\u23A7",u="\u23A9",m="\u23AA",b="Size4-Regular"):e==="\\rgroup"||e==="\u27EF"?(o="\u23AB",u="\u23AD",m="\u23AA",b="Size4-Regular"):e==="\\lmoustache"||e==="\u23B0"?(o="\u23A7",u="\u23AD",m="\u23AA",b="Size4-Regular"):(e==="\\rmoustache"||e==="\u23B1")&&(o="\u23AB",u="\u23A9",m="\u23AA",b="Size4-Regular");var w=Br(o,b,s),g=w.height+w.depth,y=Br(m,b,s),x=y.height+y.depth,A=Br(u,b,s),M=A.height+A.depth,E=0,T=1;if(c!==null){var D=Br(c,b,s);E=D.height+D.depth,T=2}var $=g+M+E,z=Math.max(0,Math.ceil((t-$)/(T*x))),O=$+z*T*x,U=a.fontMetrics().axisHeight;n&&(U*=a.sizeMultiplier);var L=O/2-U,X=[];if(h.length>0){var V=O-g-M,Z=Math.round(O*1e3),G=Qd(h,Math.round(V*1e3)),te=new gt(h,G),oe=j(f/1e3),he=j(Z/1e3),fe=new lt([te],{width:oe,height:he,viewBox:"0 0 "+f+" "+Z}),De=Vt([],[fe],a);De.height=Z/1e3,De.style.width=oe,De.style.height=he,X.push({type:"elem",elem:De})}else{if(X.push(Oa(u,b,s)),X.push(Fn),c===null){var Te=O-g-M+2*ss;X.push(Ia(m,Te,a))}else{var ze=(O-g-M-E)/2+2*ss;X.push(Ia(m,ze,a)),X.push(Fn),X.push(Oa(c,b,s)),X.push(Fn),X.push(Ia(m,ze,a))}X.push(Fn),X.push(Oa(o,b,s))}var ge=a.havingBaseStyle(Q.TEXT),Ie=le({positionType:"bottom",positionData:L,children:X});return ys(I(["delimsizing","mult"],[Ie],ge),Q.TEXT,a,i)},_a=80,Na=.08,ja=function(e,t,n,a,s){var i=Jd(e,a,n),o=new gt(e,i),c=new lt([o],{width:"400em",height:j(t),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return Vt(["hide-tail"],[c],s)},Gu=function(e,t){var n=t.havingBaseSizing(),a=to("\\surd",e*n.sizeMultiplier,eo,n),s=n.sizeMultiplier,i=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,c,m,u,h;return a.type==="small"?(u=1e3+1e3*i+_a,e<1?s=1:e<1.4&&(s=.7),c=(1+i+Na)/s,m=(1+i)/s,o=ja("sqrtMain",c,u,i,t),o.style.minWidth="0.853em",h=.833/s):a.type==="large"?(u=(1e3+_a)*Pr[a.size],m=(Pr[a.size]+i)/s,c=(Pr[a.size]+i+Na)/s,o=ja("sqrtSize"+a.size,c,u,i,t),o.style.minWidth="1.02em",h=1/s):(c=e+i+Na,m=e+i,u=Math.floor(1e3*e+i)+_a,o=ja("sqrtTall",c,u,i,t),o.style.minWidth="0.742em",h=1.056),o.height=m,o.style.height=j(c),{span:o,advanceWidth:h,ruleWidth:(t.fontMetrics().sqrtRuleThickness+i)*s}},J0=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"]),Wu=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"]),K0=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Pr=[0,1.2,1.8,2.4,3],Q0=function(e,t,n,a,s){if(e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle"),J0.has(e)||K0.has(e))return X0(e,t,!1,n,a,s);if(Wu.has(e))return Y0(e,Pr[t],!1,n,a,s);throw new N("Illegal delimiter: '"+e+"'")},Vu=[{type:"small",style:Q.SCRIPTSCRIPT},{type:"small",style:Q.SCRIPT},{type:"small",style:Q.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Zu=[{type:"small",style:Q.SCRIPTSCRIPT},{type:"small",style:Q.SCRIPT},{type:"small",style:Q.TEXT},{type:"stack"}],eo=[{type:"small",style:Q.SCRIPTSCRIPT},{type:"small",style:Q.SCRIPT},{type:"small",style:Q.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Xu=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";var t=e.type;throw new Error("Add support for delim type '"+t+"' here.")},to=function(e,t,n,a){for(var s=Math.min(2,3-a.style.size),i=s;i<n.length;i++){var o=n[i];if(o.type==="stack")break;var c=Br(e,Xu(o),"math"),m=c.height+c.depth;if(o.type==="small"){var u=a.havingBaseStyle(o.style);m*=u.sizeMultiplier}if(m>t)return o}return n[n.length-1]},is=function(e,t,n,a,s,i){e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle");var o;K0.has(e)?o=Vu:J0.has(e)?o=eo:o=Zu;var c=to(e,t,o,a);return c.type==="small"?Pu(e,c.style,n,a,s,i):c.type==="large"?X0(e,c.size,n,a,s,i):Y0(e,t,n,a,s,i)},La=function(e,t,n,a,s,i){var o=a.fontMetrics().axisHeight*a.sizeMultiplier,c=901,m=5/a.fontMetrics().ptPerEm,u=Math.max(t-o,n+o),h=Math.max(u/500*c,2*u-m);return is(e,h,!0,a,s,i)},i0={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Yu=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);P({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(r,e)=>{var t=Qn(e[0],r);return{type:"delimsizing",mode:r.parser.mode,size:i0[r.funcName].size,mclass:i0[r.funcName].mclass,delim:t.text}},htmlBuilder:(r,e)=>r.delim==="."?I([r.mclass]):Q0(r.delim,r.size,e,r.mode,[r.mclass]),mathmlBuilder:r=>{var e=[];r.delim!=="."&&e.push(tt(r.delim,r.mode));var t=new _("mo",e);r.mclass==="mopen"||r.mclass==="mclose"?t.setAttribute("fence","true"):t.setAttribute("fence","false"),t.setAttribute("stretchy","true");var n=j(Pr[r.size]);return t.setAttribute("minsize",n),t.setAttribute("maxsize",n),t}});P({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=r.parser.gullet.macros.get("\\current@color");if(t&&typeof t!="string")throw new N("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:r.parser.mode,delim:Qn(e[0],r).text,color:t}}});P({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=Qn(e[0],r),n=r.parser;++n.leftrightDepth;var a=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var s=re(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:a,left:t.text,right:s.delim,rightColor:s.color}},htmlBuilder:(r,e)=>{l0(r);for(var t=Ee(r.body,e,!0,["mopen","mclose"]),n=0,a=0,s=!1,i=0;i<t.length;i++){var o=t[i];o0(o)?s=!0:(n=Math.max(t[i].height,n),a=Math.max(t[i].depth,a))}n*=e.sizeMultiplier,a*=e.sizeMultiplier;var c;if(r.left==="."?c=Gr(e,["mopen"]):c=La(r.left,n,a,e,r.mode,["mopen"]),t.unshift(c),s)for(var m=1;m<t.length;m++){var u=t[m];if(o0(u)){var h=u.isMiddle;t[m]=La(h.delim,n,a,h.options,r.mode,[])}}var f;if(r.right===".")f=Gr(e,["mclose"]);else{var b=r.rightColor?e.withColor(r.rightColor):e;f=La(r.right,n,a,b,r.mode,["mclose"])}return t.push(f),I(["minner"],t,e)},mathmlBuilder:(r,e)=>{l0(r);var t=Ke(r.body,e);if(r.left!=="."){var n=new _("mo",[tt(r.left,r.mode)]);n.setAttribute("fence","true"),t.unshift(n)}if(r.right!=="."){var a=new _("mo",[tt(r.right,r.mode)]);a.setAttribute("fence","true"),r.rightColor&&a.setAttribute("mathcolor",r.rightColor),t.push(a)}return gs(t)}});P({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=Qn(e[0],r);if(!r.parser.leftrightDepth)throw new N("\\middle without preceding \\left",t);return{type:"middle",mode:r.parser.mode,delim:t.text}},htmlBuilder:(r,e)=>{var t;return r.delim==="."?t=Gr(e,[]):(t=Q0(r.delim,1,e,r.mode,[]),t.isMiddle={delim:r.delim,options:e}),t},mathmlBuilder:(r,e)=>{var t=r.delim==="\\vert"||r.delim==="|"?tt("|","text"):tt(r.delim,r.mode),n=new _("mo",[t]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});ea=(r,e)=>{var t=kr(ce(r.body,e),e),n=r.label.slice(1),a=e.sizeMultiplier,s,i,o=Et(r.body);if(n==="sout")s=I(["stretchy","sout"]),s.height=e.fontMetrics().defaultRuleThickness/a,i=-.5*e.fontMetrics().xHeight;else if(n==="phase"){var c=ke({number:.6,unit:"pt"},e),m=ke({number:.35,unit:"ex"},e),u=e.havingBaseSizing();a=a/u.sizeMultiplier;var h=t.height+t.depth+c+m;t.style.paddingLeft=j(h/2+c);var f=Math.floor(1e3*h*a),b=Xd(f),w=new lt([new gt("phase",b)],{width:"400em",height:j(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});s=Vt(["hide-tail"],[w],e),s.style.height=j(h),i=t.depth+c+m}else{/cancel/.test(n)?o||t.classes.push("cancel-pad"):n==="angl"?t.classes.push("anglpad"):t.classes.push("boxpad");var g,y,x=0;/box/.test(n)?(x=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),g=e.fontMetrics().fboxsep+(n==="colorbox"?0:x),y=g):n==="angl"?(x=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),g=4*x,y=Math.max(0,.25-t.depth)):(g=o?.2:0,y=g),s=Ru(t,n,g,y,e),/fbox|boxed|fcolorbox/.test(n)?(s.style.borderStyle="solid",s.style.borderWidth=j(x)):n==="angl"&&x!==.049&&(s.style.borderTopWidth=j(x),s.style.borderRightWidth=j(x)),i=t.depth+y,r.backgroundColor&&(s.style.backgroundColor=r.backgroundColor,r.borderColor&&(s.style.borderColor=r.borderColor))}var A;if(r.backgroundColor)A=le({positionType:"individualShift",children:[{type:"elem",elem:s,shift:i},{type:"elem",elem:t,shift:0}]});else{var M=/cancel|phase/.test(n)?["svg-align"]:[];A=le({positionType:"individualShift",children:[{type:"elem",elem:t,shift:0},{type:"elem",elem:s,shift:i,wrapperClasses:M}]})}return/cancel/.test(n)&&(A.height=t.height,A.depth=t.depth),/cancel/.test(n)&&!o?I(["mord","cancel-lap"],[A],e):I(["mord"],[A],e)},ta=(r,e)=>{var t,n=new _(r.label.includes("colorbox")?"mpadded":"menclose",[me(r.body,e)]);switch(r.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(t=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*t+"pt"),n.setAttribute("height","+"+2*t+"pt"),n.setAttribute("lspace",t+"pt"),n.setAttribute("voffset",t+"pt"),r.label==="\\fcolorbox"){var a=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+j(a)+" solid "+r.borderColor)}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return r.backgroundColor&&n.setAttribute("mathbackground",r.backgroundColor),n};P({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","hbox"]},handler(r,e,t){var{parser:n,funcName:a}=r,s=re(e[0],"color-token").color,i=e[1];return{type:"enclose",mode:n.mode,label:a,backgroundColor:s,body:i}},htmlBuilder:ea,mathmlBuilder:ta});P({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"]},handler(r,e,t){var{parser:n,funcName:a}=r,s=re(e[0],"color-token").color,i=re(e[1],"color-token").color,o=e[2];return{type:"enclose",mode:n.mode,label:a,backgroundColor:i,borderColor:s,body:o}},htmlBuilder:ea,mathmlBuilder:ta});P({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"enclose",mode:t.mode,label:"\\fbox",body:e[0]}}});P({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:n}=r,a=e[0];return{type:"enclose",mode:t.mode,label:n,body:a}},htmlBuilder:ea,mathmlBuilder:ta});P({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(r,e){var{parser:t,funcName:n}=r;t.mode==="math"&&t.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var a=e[0];return{type:"enclose",mode:t.mode,label:n,body:a}},htmlBuilder:ea,mathmlBuilder:ta});P({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(r,e){var{parser:t}=r;return{type:"enclose",mode:t.mode,label:"\\angl",body:e[0]}}});ro={};no={};Ge=class r{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(e,t){return t?!e||!e.loc||!t.loc||e.loc.lexer!==t.loc.lexer?null:new r(e.loc.lexer,e.loc.start,t.loc.end):e&&e.loc}},Ye=class r{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new r(t,Ge.range(this,e))}};ra=r=>{var e=r.parser.settings;if(!e.displayMode)throw new N("{"+r.envName+"} can be used only in display mode.")},Ju=new Set(["gather","gather*"]);bt=function(e,t){var n,a,s=e.body.length,i=e.hLinesBeforeRow,o=0,c=new Array(s),m=[],u=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),h=1/t.fontMetrics().ptPerEm,f=5*h;if(e.colSeparationType&&e.colSeparationType==="small"){var b=t.havingStyle(Q.SCRIPT).sizeMultiplier;f=.2778*(b/t.sizeMultiplier)}var w=e.colSeparationType==="CD"?ke({number:3,unit:"ex"},t):12*h,g=3*h,y=e.arraystretch*w,x=.7*y,A=.3*y,M=0;function E(sn){for(var on=0;on<sn.length;++on)on>0&&(M+=.25),m.push({pos:M,isDashed:sn[on]})}for(E(i[0]),n=0;n<e.body.length;++n){var T=e.body[n],D=x,$=A;o<T.length&&(o=T.length);var z={cells:new Array(T.length),height:0,depth:0,pos:0};for(a=0;a<T.length;++a){var O=ce(T[a],t);$<O.depth&&($=O.depth),D<O.height&&(D=O.height),z.cells[a]=O}var U=e.rowGaps[n],L=0;U&&(L=ke(U,t),L>0&&(L+=A,$<L&&($=L),L=0)),e.addJot&&n<e.body.length-1&&($+=g),z.height=D,z.depth=$,M+=D,z.pos=M,M+=$+L,c[n]=z,E(i[n+1])}var X=M/2+t.fontMetrics().axisHeight,V=e.cols||[],Z=[],G,te,oe=[];if(e.tags&&e.tags.some(sn=>sn))for(n=0;n<s;++n){var he=c[n],fe=he.pos-X,De=e.tags[n],Te=void 0;De===!0?Te=I(["eqn-num"],[],t):De===!1?Te=I([],[],t):Te=I([],Ee(De,t,!0),t),Te.depth=he.depth,Te.height=he.height,oe.push({type:"elem",elem:Te,shift:fe})}for(a=0,te=0;a<o||te<V.length;++a,++te){for(var ze,ge=V[te],Ie=!0;((at=ge)==null?void 0:at.type)==="separator";){var at;if(Ie||(G=I(["arraycolsep"],[]),G.style.width=j(t.fontMetrics().doubleRuleSep),Z.push(G)),ge.separator==="|"||ge.separator===":"){var At=ge.separator==="|"?"solid":"dashed",Ve=I(["vertical-separator"],[],t);Ve.style.height=j(M),Ve.style.borderRightWidth=j(u),Ve.style.borderRightStyle=At,Ve.style.margin="0 "+j(-u/2);var st=M-X;st&&(Ve.style.verticalAlign=j(-st)),Z.push(Ve)}else throw new N("Invalid separator type: "+ge.separator);te++,ge=V[te],Ie=!1}if(!(a>=o)){var Nt=void 0;if(a>0||e.hskipBeforeAndAfter){var ur,Us;Nt=(ur=(Us=ge)==null?void 0:Us.pregap)!=null?ur:f,Nt!==0&&(G=I(["arraycolsep"],[]),G.style.width=j(Nt),Z.push(G))}var Gs=[];for(n=0;n<s;++n){var rn=c[n],nn=rn.cells[a];if(nn){var Sl=rn.pos-X;nn.depth=rn.depth,nn.height=rn.height,Gs.push({type:"elem",elem:nn,shift:Sl})}}var Al=le({positionType:"individualShift",children:Gs}),Dl=I(["col-align-"+(((ze=ge)==null?void 0:ze.align)||"c")],[Al]);if(Z.push(Dl),a<o-1||e.hskipBeforeAndAfter){var Ws,Vs;Nt=(Ws=(Vs=ge)==null?void 0:Vs.postgap)!=null?Ws:f,Nt!==0&&(G=I(["arraycolsep"],[]),G.style.width=j(Nt),Z.push(G))}}}var an=I(["mtable"],Z);if(m.length>0){for(var Tl=xr("hline",t,u),Cl=xr("hdashline",t,u),ia=[{type:"elem",elem:an,shift:0}];m.length>0;){var Zs=m.pop(),Xs=Zs.pos-X;Zs.isDashed?ia.push({type:"elem",elem:Cl,shift:Xs}):ia.push({type:"elem",elem:Tl,shift:Xs})}an=le({positionType:"individualShift",children:ia})}if(oe.length===0)return I(["mord"],[an],t);var Ml=le({positionType:"individualShift",children:oe}),$l=I(["tag"],[Ml],t);return zt([an,$l])},Ku={c:"center ",l:"left ",r:"right "},yt=function(e,t){for(var n=[],a=new _("mtd",[],["mtr-glue"]),s=new _("mtd",[],["mml-eqn-num"]),i=0;i<e.body.length;i++){for(var o=e.body[i],c=[],m=0;m<o.length;m++)c.push(new _("mtd",[me(o[m],t)]));e.tags&&e.tags[i]&&(c.unshift(a),c.push(a),e.leqno?c.unshift(s):c.push(s)),n.push(new _("mtr",c))}var u=new _("mtable",n),h=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);u.setAttribute("rowspacing",j(h));var f="",b="";if(e.cols&&e.cols.length>0){var w=e.cols,g="",y=!1,x=0,A=w.length;w[0].type==="separator"&&(f+="top ",x=1),w[w.length-1].type==="separator"&&(f+="bottom ",A-=1);for(var M=x;M<A;M++){var E=w[M];E.type==="align"?(b+=Ku[E.align],y&&(g+="none "),y=!0):E.type==="separator"&&y&&(g+=E.separator==="|"?"solid ":"dashed ",y=!1)}u.setAttribute("columnalign",b.trim()),/[sd]/.test(g)&&u.setAttribute("columnlines",g.trim())}if(e.colSeparationType==="align"){for(var T=e.cols||[],D="",$=1;$<T.length;$++)D+=$%2?"0em ":"1em ";u.setAttribute("columnspacing",D.trim())}else e.colSeparationType==="alignat"||e.colSeparationType==="gather"?u.setAttribute("columnspacing","0em"):e.colSeparationType==="small"?u.setAttribute("columnspacing","0.2778em"):e.colSeparationType==="CD"?u.setAttribute("columnspacing","0.5em"):u.setAttribute("columnspacing","1em");var z="",O=e.hLinesBeforeRow;f+=O[0].length>0?"left ":"",f+=O[O.length-1].length>0?"right ":"";for(var U=1;U<O.length-1;U++)z+=O[U].length===0?"none ":O[U][0]?"dashed ":"solid ";return/[sd]/.test(z)&&u.setAttribute("rowlines",z.trim()),f!==""&&(u=new _("menclose",[u]),u.setAttribute("notation",f.trim())),e.arraystretch&&e.arraystretch<1&&(u=new _("mstyle",[u]),u.setAttribute("scriptlevel","1")),u},ao=function(e,t){e.envName.includes("ed")||ra(e);var n=[],a=e.envName.includes("at")?"alignat":"align",s=e.envName==="split",i=Xt(e.parser,{cols:n,addJot:!0,autoTag:s?void 0:ws(e.envName),emptySingleRow:!0,colSeparationType:a,maxNumCols:s?2:void 0,leqno:e.parser.settings.leqno},"display"),o=0,c=0,m={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&t[0].type==="ordgroup"){for(var u="",h=0;h<t[0].body.length;h++){var f=re(t[0].body[h],"textord");u+=f.text}o=Number(u),c=o*2}var b=!c;i.body.forEach(function(x){for(var A=1;A<x.length;A+=2){var M=re(x[A],"styling"),E=re(M.body[0],"ordgroup");E.body.unshift(m)}if(b)c<x.length&&(c=x.length);else{var T=x.length/2;if(o<T)throw new N("Too many math in a row: "+("expected "+o+", but got "+T),x[0])}});for(var w=0;w<c;++w){var g="r",y=0;w%2===1?g="l":w>0&&b&&(y=1),n[w]={type:"align",align:g,pregap:y,postgap:0}}return i.colSeparationType=b?"align":"alignat",i};vt({type:"array",names:["array","darray"],props:{numArgs:1},handler(r,e){var t=Jn(e[0]),n=t?[e[0]]:re(e[0],"ordgroup").body,a=n.map(function(i){var o=Yn(i),c=o.text;if("lcr".includes(c))return{type:"align",align:c};if(c==="|")return{type:"separator",separator:"|"};if(c===":")return{type:"separator",separator:":"};throw new N("Unknown column alignment: "+c,i)}),s={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return Xt(r.parser,s,xs(r.envName))},htmlBuilder:bt,mathmlBuilder:yt});vt({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(r){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[r.envName.replace("*","")],t="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:t}]};if(r.envName.charAt(r.envName.length-1)==="*"){var a=r.parser;if(a.consumeSpaces(),a.fetch().text==="["){if(a.consume(),a.consumeSpaces(),t=a.fetch().text,!"lcr".includes(t))throw new N("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),n.cols=[{type:"align",align:t}]}}var s=Xt(r.parser,n,xs(r.envName)),i=Math.max(0,...s.body.map(o=>o.length));return s.cols=new Array(i).fill({type:"align",align:t}),e?{type:"leftright",mode:r.mode,body:[s],left:e[0],right:e[1],rightColor:void 0}:s},htmlBuilder:bt,mathmlBuilder:yt});vt({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(r){var e={arraystretch:.5},t=Xt(r.parser,e,"script");return t.colSeparationType="small",t},htmlBuilder:bt,mathmlBuilder:yt});vt({type:"array",names:["subarray"],props:{numArgs:1},handler(r,e){var t=Jn(e[0]),n=t?[e[0]]:re(e[0],"ordgroup").body,a=n.map(function(o){var c=Yn(o),m=c.text;if("lc".includes(m))return{type:"align",align:m};throw new N("Unknown column alignment: "+m,o)});if(a.length>1)throw new N("{subarray} can contain only one column");var s={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5},i=Xt(r.parser,s,"script");if(i.body.length>0&&i.body[0].length>1)throw new N("{subarray} can contain only one column");return i},htmlBuilder:bt,mathmlBuilder:yt});vt({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(r){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},t=Xt(r.parser,e,xs(r.envName));return{type:"leftright",mode:r.mode,body:[t],left:r.envName.includes("r")?".":"\\{",right:r.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:bt,mathmlBuilder:yt});vt({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:ao,htmlBuilder:bt,mathmlBuilder:yt});vt({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(r){Ju.has(r.envName)&&ra(r);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:ws(r.envName),emptySingleRow:!0,leqno:r.parser.settings.leqno};return Xt(r.parser,e,"display")},htmlBuilder:bt,mathmlBuilder:yt});vt({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:ao,htmlBuilder:bt,mathmlBuilder:yt});vt({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(r){ra(r);var e={autoTag:ws(r.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:r.parser.settings.leqno};return Xt(r.parser,e,"display")},htmlBuilder:bt,mathmlBuilder:yt});vt({type:"array",names:["CD"],props:{numArgs:0},handler(r){return ra(r),Lu(r.parser)},htmlBuilder:bt,mathmlBuilder:yt});v("\\nonumber","\\gdef\\@eqnsw{0}");v("\\notag","\\nonumber");P({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(r,e){throw new N(r.funcName+" valid only within array environment")}});d0=ro;P({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(r,e){var{parser:t,funcName:n}=r,a=e[0];if(a.type!=="ordgroup")throw new N("Invalid environment name",a);for(var s="",i=0;i<a.body.length;++i)s+=re(a.body[i],"textord").text;if(n==="\\begin"){if(!d0.hasOwnProperty(s))throw new N("No such environment: "+s,a);var o=d0[s],{args:c,optArgs:m}=t.parseArguments("\\begin{"+s+"}",o),u={mode:t.mode,envName:s,parser:t},h=o.handler(u,c,m);t.expect("\\end",!1);var f=t.nextToken,b=re(t.parseFunction(),"environment");if(b.name!==s)throw new N("Mismatch: \\begin{"+s+"} matched by \\end{"+b.name+"}",f);return h}return{type:"environment",mode:t.mode,name:s,nameGroup:a}}});so=(r,e)=>{var t=r.font,n=e.withFont(t);return ce(r.body,n)},io=(r,e)=>{var t=r.font,n=e.withFont(t);return me(r.body,n)},u0={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};P({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(r,e)=>{var{parser:t,funcName:n}=r,a=Pn(e[0]),s=n;return s in u0&&(s=u0[s]),{type:"font",mode:t.mode,font:s.slice(1),body:a}},htmlBuilder:so,mathmlBuilder:io});P({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(r,e)=>{var{parser:t}=r,n=e[0];return{type:"mclass",mode:t.mode,mclass:Kn(n),body:[{type:"font",mode:t.mode,font:"boldsymbol",body:n}],isCharacterBox:Et(n)}}});P({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:n,breakOnTokenText:a}=r,{mode:s}=t,i=t.parseExpression(!0,a);return{type:"font",mode:s,font:"math"+n.slice(1),body:{type:"ordgroup",mode:t.mode,body:i}}},htmlBuilder:so,mathmlBuilder:io});Qu=(r,e)=>{var t=e.style,n=t.fracNum(),a=t.fracDen(),s;s=e.havingStyle(n);var i=ce(r.numer,s,e);if(r.continued){var o=8.5/e.fontMetrics().ptPerEm,c=3.5/e.fontMetrics().ptPerEm;i.height=i.height<o?o:i.height,i.depth=i.depth<c?c:i.depth}s=e.havingStyle(a);var m=ce(r.denom,s,e),u,h,f;r.hasBarLine?(r.barSize?(h=ke(r.barSize,e),u=xr("frac-line",e,h)):u=xr("frac-line",e),h=u.height,f=u.height):(u=null,h=0,f=e.fontMetrics().defaultRuleThickness);var b,w,g;t.size===Q.DISPLAY.size?(b=e.fontMetrics().num1,h>0?w=3*f:w=7*f,g=e.fontMetrics().denom1):(h>0?(b=e.fontMetrics().num2,w=f):(b=e.fontMetrics().num3,w=3*f),g=e.fontMetrics().denom2);var y;if(u){var A=e.fontMetrics().axisHeight;b-i.depth-(A+.5*h)<w&&(b+=w-(b-i.depth-(A+.5*h))),A-.5*h-(m.height-g)<w&&(g+=w-(A-.5*h-(m.height-g)));var M=-(A-.5*h);y=le({positionType:"individualShift",children:[{type:"elem",elem:m,shift:g},{type:"elem",elem:u,shift:M},{type:"elem",elem:i,shift:-b}]})}else{var x=b-i.depth-(m.height-g);x<w&&(b+=.5*(w-x),g+=.5*(w-x)),y=le({positionType:"individualShift",children:[{type:"elem",elem:m,shift:g},{type:"elem",elem:i,shift:-b}]})}s=e.havingStyle(t),y.height*=s.sizeMultiplier/e.sizeMultiplier,y.depth*=s.sizeMultiplier/e.sizeMultiplier;var E;t.size===Q.DISPLAY.size?E=e.fontMetrics().delim1:t.size===Q.SCRIPTSCRIPT.size?E=e.havingStyle(Q.SCRIPT).fontMetrics().delim2:E=e.fontMetrics().delim2;var T,D;return r.leftDelim==null?T=Gr(e,["mopen"]):T=is(r.leftDelim,E,!0,e.havingStyle(t),r.mode,["mopen"]),r.continued?D=I([]):r.rightDelim==null?D=Gr(e,["mclose"]):D=is(r.rightDelim,E,!0,e.havingStyle(t),r.mode,["mclose"]),I(["mord"].concat(s.sizingClasses(e)),[T,I(["mfrac"],[y]),D],e)},em=(r,e)=>{var t=new _("mfrac",[me(r.numer,e),me(r.denom,e)]);if(!r.hasBarLine)t.setAttribute("linethickness","0px");else if(r.barSize){var n=ke(r.barSize,e);t.setAttribute("linethickness",j(n))}if(r.leftDelim!=null||r.rightDelim!=null){var a=[];if(r.leftDelim!=null){var s=new _("mo",[new Se(r.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}if(a.push(t),r.rightDelim!=null){var i=new _("mo",[new Se(r.rightDelim.replace("\\",""))]);i.setAttribute("fence","true"),a.push(i)}return gs(a)}return t},oo=(r,e)=>{if(!e)return r;var t={type:"styling",mode:r.mode,style:e,body:[r]};return t};P({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(r,e)=>{var{parser:t,funcName:n}=r,a=e[0],s=e[1],i,o=null,c=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":i=!0;break;case"\\\\atopfrac":i=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":i=!1,o="(",c=")";break;case"\\\\bracefrac":i=!1,o="\\{",c="\\}";break;case"\\\\brackfrac":i=!1,o="[",c="]";break;default:throw new Error("Unrecognized genfrac command")}var m=n==="\\cfrac",u=null;return m||n.startsWith("\\d")?u="display":n.startsWith("\\t")&&(u="text"),oo({type:"genfrac",mode:t.mode,numer:a,denom:s,continued:m,hasBarLine:i,leftDelim:o,rightDelim:c,barSize:null},u)},htmlBuilder:Qu,mathmlBuilder:em});P({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(r){var{parser:e,funcName:t,token:n}=r,a;switch(t){case"\\over":a="\\frac";break;case"\\choose":a="\\binom";break;case"\\atop":a="\\\\atopfrac";break;case"\\brace":a="\\\\bracefrac";break;case"\\brack":a="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:a,token:n}}});m0=["display","text","script","scriptscript"],p0=function(e){var t=null;return e.length>0&&(t=e,t=t==="."?null:t),t};P({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(r,e){var{parser:t}=r,n=e[4],a=e[5],s=Pn(e[0]),i=s.type==="atom"&&s.family==="open"?p0(s.text):null,o=Pn(e[1]),c=o.type==="atom"&&o.family==="close"?p0(o.text):null,m=re(e[2],"size"),u,h=null;m.isBlank?u=!0:(h=m.value,u=h.number>0);var f=null,b=e[3];if(b.type==="ordgroup"){if(b.body.length>0){var w=re(b.body[0],"textord");f=m0[Number(w.text)]}}else b=re(b,"textord"),f=m0[Number(b.text)];return oo({type:"genfrac",mode:t.mode,numer:n,denom:a,continued:!1,hasBarLine:u,barSize:h,leftDelim:i,rightDelim:c},f)}});P({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(r,e){var{parser:t,funcName:n,token:a}=r;return{type:"infix",mode:t.mode,replaceWith:"\\\\abovefrac",size:re(e[0],"size").value,token:a}}});P({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(r,e)=>{var{parser:t,funcName:n}=r,a=e[0],s=re(e[1],"infix").size;if(!s)throw new Error("\\\\abovefrac expected size, but got "+String(s));var i=e[2],o=s.number>0;return{type:"genfrac",mode:t.mode,numer:a,denom:i,continued:!1,hasBarLine:o,barSize:s,leftDelim:null,rightDelim:null}}});lo=(r,e)=>{var t=e.style,n,a;r.type==="supsub"?(n=r.sup?ce(r.sup,e.havingStyle(t.sup()),e):ce(r.sub,e.havingStyle(t.sub()),e),a=re(r.base,"horizBrace")):a=re(r,"horizBrace");var s=ce(a.base,e.havingBaseStyle(Q.DISPLAY)),i=Xn(a,e),o;if(a.isOver?o=le({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:i,wrapperClasses:["svg-align"]}]}):o=le({positionType:"bottom",positionData:s.depth+.1+i.height,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:s}]}),n){var c=I(["minner",a.isOver?"mover":"munder"],[o],e);a.isOver?o=le({positionType:"firstBaseline",children:[{type:"elem",elem:c},{type:"kern",size:.2},{type:"elem",elem:n}]}):o=le({positionType:"bottom",positionData:c.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:c}]})}return I(["minner",a.isOver?"mover":"munder"],[o],e)},tm=(r,e)=>{var t=Zn(r.label);return new _(r.isOver?"mover":"munder",[me(r.base,e),t])};P({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:n}=r;return{type:"horizBrace",mode:t.mode,label:n,isOver:n.includes("\\over"),base:e[0]}},htmlBuilder:lo,mathmlBuilder:tm});P({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,n=e[1],a=re(e[0],"url").url;return t.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:t.mode,href:a,body:Ce(n)}:t.formatUnsupportedCmd("\\href")},htmlBuilder:(r,e)=>{var t=Ee(r.body,e,!1);return hu(r.href,[],t,e)},mathmlBuilder:(r,e)=>{var t=Zt(r.body,e);return t instanceof _||(t=new _("mrow",[t])),t.setAttribute("href",r.href),t}});P({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,n=re(e[0],"url").url;if(!t.settings.isTrusted({command:"\\url",url:n}))return t.formatUnsupportedCmd("\\url");for(var a=[],s=0;s<n.length;s++){var i=n[s];i==="~"&&(i="\\textasciitilde"),a.push({type:"textord",mode:"text",text:i})}var o={type:"text",mode:t.mode,font:"\\texttt",body:a};return{type:"href",mode:t.mode,href:n,body:Ce(o)}}});P({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(r,e){var{parser:t}=r;return{type:"hbox",mode:t.mode,body:Ce(e[0])}},htmlBuilder(r,e){var t=Ee(r.body,e.withFont(""),!1);return zt(t)},mathmlBuilder(r,e){return new _("mrow",Ke(r.body,e.withFont("")))}});P({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:n,token:a}=r,s=re(e[0],"raw").string,i=e[1];t.settings.strict&&t.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,c={};switch(n){case"\\htmlClass":c.class=s,o={command:"\\htmlClass",class:s};break;case"\\htmlId":c.id=s,o={command:"\\htmlId",id:s};break;case"\\htmlStyle":c.style=s,o={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var m=s.split(","),u=0;u<m.length;u++){var h=m[u],f=h.indexOf("=");if(f<0)throw new N("\\htmlData key/value '"+h+"' missing equals sign");var b=h.slice(0,f),w=h.slice(f+1);c["data-"+b.trim()]=w}o={command:"\\htmlData",attributes:c};break}default:throw new Error("Unrecognized html command")}return t.settings.isTrusted(o)?{type:"html",mode:t.mode,attributes:c,body:Ce(i)}:t.formatUnsupportedCmd(n)},htmlBuilder:(r,e)=>{var t=Ee(r.body,e,!1),n=["enclosing"];r.attributes.class&&n.push(...r.attributes.class.trim().split(/\s+/));var a=I(n,t,e);for(var s in r.attributes)s!=="class"&&r.attributes.hasOwnProperty(s)&&a.setAttribute(s,r.attributes[s]);return a},mathmlBuilder:(r,e)=>Zt(r.body,e)});P({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r;return{type:"htmlmathml",mode:t.mode,html:Ce(e[0]),mathml:Ce(e[1])}},htmlBuilder:(r,e)=>{var t=Ee(r.html,e,!1);return zt(t)},mathmlBuilder:(r,e)=>Zt(r.mathml,e)});Ba=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new N("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(t[1]+t[2]),unit:t[3]};if(!T0(n))throw new N("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};P({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(r,e,t)=>{var{parser:n}=r,a={number:0,unit:"em"},s={number:.9,unit:"em"},i={number:0,unit:"em"},o="";if(t[0])for(var c=re(t[0],"raw").string,m=c.split(","),u=0;u<m.length;u++){var h=m[u].split("=");if(h.length===2){var f=h[1].trim();switch(h[0].trim()){case"alt":o=f;break;case"width":a=Ba(f);break;case"height":s=Ba(f);break;case"totalheight":i=Ba(f);break;default:throw new N("Invalid key: '"+h[0]+"' in \\includegraphics.")}}}var b=re(e[0],"url").url;return o===""&&(o=b,o=o.replace(/^.*[\\/]/,""),o=o.substring(0,o.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:b})?{type:"includegraphics",mode:n.mode,alt:o,width:a,height:s,totalheight:i,src:b}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(r,e)=>{var t=ke(r.height,e),n=0;r.totalheight.number>0&&(n=ke(r.totalheight,e)-t);var a=0;r.width.number>0&&(a=ke(r.width,e));var s={height:j(t+n)};a>0&&(s.width=j(a)),n>0&&(s.verticalAlign=j(-n));var i=new Va(r.src,r.alt,s);return i.height=t,i.depth=n,i},mathmlBuilder:(r,e)=>{var t=new _("mglyph",[]);t.setAttribute("alt",r.alt);var n=ke(r.height,e),a=0;if(r.totalheight.number>0&&(a=ke(r.totalheight,e)-n,t.setAttribute("valign",j(-a))),t.setAttribute("height",j(n+a)),r.width.number>0){var s=ke(r.width,e);t.setAttribute("width",j(s))}return t.setAttribute("src",r.src),t}});P({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(r,e){var{parser:t,funcName:n}=r,a=re(e[0],"size");if(t.settings.strict){var s=n[1]==="m",i=a.value.unit==="mu";s?(i||t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+a.value.unit+" units")),t.mode!=="math"&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):i&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:t.mode,dimension:a.value}},htmlBuilder(r,e){return z0(r.dimension,e)},mathmlBuilder(r,e){var t=ke(r.dimension,e);return new Hn(t)}});P({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:n}=r,a=e[0];return{type:"lap",mode:t.mode,alignment:n.slice(5),body:a}},htmlBuilder:(r,e)=>{var t;r.alignment==="clap"?(t=I([],[ce(r.body,e)]),t=I(["inner"],[t],e)):t=I(["inner"],[ce(r.body,e)]);var n=I(["fix"],[]),a=I([r.alignment],[t,n],e),s=I(["strut"]);return s.style.height=j(a.height+a.depth),a.depth&&(s.style.verticalAlign=j(-a.depth)),a.children.unshift(s),a=I(["thinbox"],[a],e),I(["mord","vbox"],[a],e)},mathmlBuilder:(r,e)=>{var t=new _("mpadded",[me(r.body,e)]);if(r.alignment!=="rlap"){var n=r.alignment==="llap"?"-1":"-0.5";t.setAttribute("lspace",n+"width")}return t.setAttribute("width","0px"),t}});P({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(r,e){var{funcName:t,parser:n}=r,a=n.mode;n.switchMode("math");var s=t==="\\("?"\\)":"$",i=n.parseExpression(!1,s);return n.expect(s),n.switchMode(a),{type:"styling",mode:n.mode,style:"text",resetFont:!0,body:i}}});P({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(r,e){throw new N("Mismatched "+r.funcName)}});h0=(r,e)=>{switch(e.style.size){case Q.DISPLAY.size:return r.display;case Q.TEXT.size:return r.text;case Q.SCRIPT.size:return r.script;case Q.SCRIPTSCRIPT.size:return r.scriptscript;default:return r.text}};P({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(r,e)=>{var{parser:t}=r;return{type:"mathchoice",mode:t.mode,display:Ce(e[0]),text:Ce(e[1]),script:Ce(e[2]),scriptscript:Ce(e[3])}},htmlBuilder:(r,e)=>{var t=h0(r,e),n=Ee(t,e,!1);return zt(n)},mathmlBuilder:(r,e)=>{var t=h0(r,e);return Zt(t,e)}});co=(r,e,t,n,a,s,i)=>{r=I([],[r]);var o=t&&Et(t),c,m;if(e){var u=ce(e,n.havingStyle(a.sup()),n);m={elem:u,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-u.depth)}}if(t){var h=ce(t,n.havingStyle(a.sub()),n);c={elem:h,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-h.height)}}var f;if(m&&c){var b=n.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+r.depth+i;f=le({positionType:"bottom",positionData:b,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:j(-s)},{type:"kern",size:c.kern},{type:"elem",elem:r},{type:"kern",size:m.kern},{type:"elem",elem:m.elem,marginLeft:j(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(c){var w=r.height-i;f=le({positionType:"top",positionData:w,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:j(-s)},{type:"kern",size:c.kern},{type:"elem",elem:r}]})}else if(m){var g=r.depth+i;f=le({positionType:"bottom",positionData:g,children:[{type:"elem",elem:r},{type:"kern",size:m.kern},{type:"elem",elem:m.elem,marginLeft:j(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return r;var y=[f];if(c&&s!==0&&!o){var x=I(["mspace"],[],n);x.style.marginRight=j(s),y.unshift(x)}return I(["mop","op-limits"],y,n)},uo=new Set(["\\smallint"]),Ar=(r,e)=>{var t,n,a=!1,s;r.type==="supsub"?(t=r.sup,n=r.sub,s=re(r.base,"op"),a=!0):s=re(r,"op");var i=e.style,o=!1;i.size===Q.DISPLAY.size&&s.symbol&&!uo.has(s.name)&&(o=!0);var c,m;if(s.symbol){var u=o?"Size2-Regular":"Size1-Regular",h="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(h=s.name.slice(1),s.name=h==="oiint"?"\\iint":"\\iiint"),c=Le(s.name,u,"math",e,["mop","op-symbol",o?"large-op":"small-op"]),m=c.italic,h.length>0){var f=O0(h+"Size"+(o?"2":"1"),e);c=le({positionType:"individualShift",children:[{type:"elem",elem:c,shift:0},{type:"elem",elem:f,shift:o?.08:0}]}),s.name="\\"+h,c.classes.unshift("mop"),c.italic=m}}else if(s.body){var b=Ee(s.body,e,!0);b.length===1&&b[0]instanceof Pe?(c=b[0],c.classes[0]="mop"):c=I(["mop"],b,e)}else{for(var w=[],g=1;g<s.name.length;g++)w.push(hs(s.name[g],s.mode,e));c=I(["mop"],w,e)}var y=0,x=0;if((c instanceof Pe||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift){var A;y=(c.height-c.depth)/2-e.fontMetrics().axisHeight,x=(A=c.italic)!=null?A:0}return a?co(c,t,n,e,i,x,y):(y&&(c.style.position="relative",c.style.top=j(y)),c)},Vr=(r,e)=>{var t;if(r.symbol)t=new _("mo",[tt(r.name,r.mode)]),uo.has(r.name)&&t.setAttribute("largeop","false");else if(r.body)t=new _("mo",Ke(r.body,e));else{t=new _("mi",[new Se(r.name.slice(1))]);var n=new _("mo",[tt("\u2061","text")]);r.parentIsSupSub?t=new _("mrow",[t,n]):t=N0([t,n])}return t},rm={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};P({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:(r,e)=>{var{parser:t,funcName:n}=r,a=n;return a.length===1&&(a=rm[a]),{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:Ar,mathmlBuilder:Vr});P({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var{parser:t}=r,n=e[0];return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Ce(n)}},htmlBuilder:Ar,mathmlBuilder:Vr});nm={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};P({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(r){var{parser:e,funcName:t}=r;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:Ar,mathmlBuilder:Vr});P({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(r){var{parser:e,funcName:t}=r;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:Ar,mathmlBuilder:Vr});P({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0,allowedInArgument:!0},handler(r){var{parser:e,funcName:t}=r,n=t;return n.length===1&&(n=nm[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Ar,mathmlBuilder:Vr});mo=(r,e)=>{var t,n,a=!1,s;r.type==="supsub"?(t=r.sup,n=r.sub,s=re(r.base,"operatorname"),a=!0):s=re(r,"operatorname");var i;if(s.body.length>0){for(var o=s.body.map(h=>{var f="text"in h?h.text:void 0;return typeof f=="string"?{type:"textord",mode:h.mode,text:f}:h}),c=Ee(o,e.withFont("mathrm"),!0),m=0;m<c.length;m++){var u=c[m];u instanceof Pe&&(u.text=u.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}i=I(["mop"],c,e)}else i=I(["mop"],[],e);return a?co(i,t,n,e,e.style,0,0):i},am=(r,e)=>{for(var t=Ke(r.body,e.withFont("mathrm")),n=!0,a=0;a<t.length;a++){var s=t[a];if(!(s instanceof Hn))if(s instanceof _)switch(s.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var i=s.children[0];s.children.length===1&&i instanceof Se?i.text=i.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var o=t.map(u=>u.toText()).join("");t=[new Se(o)]}var c=new _("mi",t);c.setAttribute("mathvariant","normal");var m=new _("mo",[tt("\u2061","text")]);return r.parentIsSupSub?new _("mrow",[c,m]):N0([c,m])};P({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(r,e)=>{var{parser:t,funcName:n}=r,a=e[0];return{type:"operatorname",mode:t.mode,body:Ce(a),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:mo,mathmlBuilder:am});v("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");or({type:"ordgroup",htmlBuilder(r,e){return r.semisimple?zt(Ee(r.body,e,!1)):I(["mord"],Ee(r.body,e,!0),e)},mathmlBuilder(r,e){return Zt(r.body,e,!0)}});P({type:"overline",names:["\\overline"],props:{numArgs:1},handler(r,e){var{parser:t}=r,n=e[0];return{type:"overline",mode:t.mode,body:n}},htmlBuilder(r,e){var t=ce(r.body,e.havingCrampedStyle()),n=xr("overline-line",e),a=e.fontMetrics().defaultRuleThickness,s=le({positionType:"firstBaseline",children:[{type:"elem",elem:t},{type:"kern",size:3*a},{type:"elem",elem:n},{type:"kern",size:a}]});return I(["mord","overline"],[s],e)},mathmlBuilder(r,e){var t=new _("mo",[new Se("\u203E")]);t.setAttribute("stretchy","true");var n=new _("mover",[me(r.body,e),t]);return n.setAttribute("accent","true"),n}});P({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,n=e[0];return{type:"phantom",mode:t.mode,body:Ce(n)}},htmlBuilder:(r,e)=>{var t=Ee(r.body,e.withPhantom(),!1);return zt(t)},mathmlBuilder:(r,e)=>{var t=Ke(r.body,e);return new _("mphantom",t)}});v("\\hphantom","\\smash{\\phantom{#1}}");P({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,n=e[0];return{type:"vphantom",mode:t.mode,body:n}},htmlBuilder:(r,e)=>{var t=I(["inner"],[ce(r.body,e.withPhantom())]),n=I(["fix"],[]);return I(["mord","rlap"],[t,n],e)},mathmlBuilder:(r,e)=>{var t=Ke(Ce(r.body),e),n=new _("mphantom",t),a=new _("mpadded",[n]);return a.setAttribute("width","0px"),a}});P({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(r,e){var{parser:t}=r,n=re(e[0],"size").value,a=e[1];return{type:"raisebox",mode:t.mode,dy:n,body:a}},htmlBuilder(r,e){var t=ce(r.body,e),n=ke(r.dy,e);return le({positionType:"shift",positionData:-n,children:[{type:"elem",elem:t}]})},mathmlBuilder(r,e){var t=new _("mpadded",[me(r.body,e)]),n=r.dy.number+r.dy.unit;return t.setAttribute("voffset",n),t}});P({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(r){var{parser:e}=r;return{type:"internal",mode:e.mode}}});P({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(r,e,t){var{parser:n}=r,a=t[0],s=re(e[0],"size"),i=re(e[1],"size");return{type:"rule",mode:n.mode,shift:a&&re(a,"size").value,width:s.value,height:i.value}},htmlBuilder(r,e){var t=I(["mord","rule"],[],e),n=ke(r.width,e),a=ke(r.height,e),s=r.shift?ke(r.shift,e):0;return t.style.borderRightWidth=j(n),t.style.borderTopWidth=j(a),t.style.bottom=j(s),t.width=n,t.height=a+s,t.depth=-s,t.maxFontSize=a*1.125*e.sizeMultiplier,t},mathmlBuilder(r,e){var t=ke(r.width,e),n=ke(r.height,e),a=r.shift?ke(r.shift,e):0,s=e.color&&e.getColor()||"black",i=new _("mspace");i.setAttribute("mathbackground",s),i.setAttribute("width",j(t)),i.setAttribute("height",j(n));var o=new _("mpadded",[i]);return a>=0?o.setAttribute("height",j(a)):(o.setAttribute("height",j(a)),o.setAttribute("depth",j(-a))),o.setAttribute("voffset",j(a)),o}});f0=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],sm=(r,e)=>{var t=e.havingSize(r.size);return po(r.body,t,e)};P({type:"sizing",names:f0,props:{numArgs:0,allowedInText:!0},handler:(r,e)=>{var{breakOnTokenText:t,funcName:n,parser:a}=r,s=a.parseExpression(!1,t);return{type:"sizing",mode:a.mode,size:f0.indexOf(n)+1,body:s}},htmlBuilder:sm,mathmlBuilder:(r,e)=>{var t=e.havingSize(r.size),n=Ke(r.body,t),a=new _("mstyle",n);return a.setAttribute("mathsize",j(t.sizeMultiplier)),a}});P({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(r,e,t)=>{var{parser:n}=r,a=!1,s=!1,i=t[0]&&re(t[0],"ordgroup");if(i)for(var o,c=0;c<i.body.length;++c){var m=i.body[c];if(o=Yn(m).text,o==="t")a=!0;else if(o==="b")s=!0;else{a=!1,s=!1;break}}else a=!0,s=!0;var u=e[0];return{type:"smash",mode:n.mode,body:u,smashHeight:a,smashDepth:s}},htmlBuilder:(r,e)=>{var t=I([],[ce(r.body,e)]);if(!r.smashHeight&&!r.smashDepth)return t;if(r.smashHeight&&(t.height=0),r.smashDepth&&(t.depth=0),r.smashHeight&&r.smashDepth)return I(["mord","smash"],[t],e);if(t.children)for(var n=0;n<t.children.length;n++)r.smashHeight&&(t.children[n].height=0),r.smashDepth&&(t.children[n].depth=0);var a=le({positionType:"firstBaseline",children:[{type:"elem",elem:t}]});return I(["mord"],[a],e)},mathmlBuilder:(r,e)=>{var t=new _("mpadded",[me(r.body,e)]);return r.smashHeight&&t.setAttribute("height","0px"),r.smashDepth&&t.setAttribute("depth","0px"),t}});P({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(r,e,t){var{parser:n}=r,a=t[0],s=e[0];return{type:"sqrt",mode:n.mode,body:s,index:a}},htmlBuilder(r,e){var t=ce(r.body,e.havingCrampedStyle());t.height===0&&(t.height=e.fontMetrics().xHeight),t=kr(t,e);var n=e.fontMetrics(),a=n.defaultRuleThickness,s=a;e.style.id<Q.TEXT.id&&(s=e.fontMetrics().xHeight);var i=a+s/4,o=t.height+t.depth+i+a,{span:c,ruleWidth:m,advanceWidth:u}=Gu(o,e),h=c.height-m;h>t.height+t.depth+i&&(i=(i+h-t.height-t.depth)/2);var f=c.height-t.height-i-m;t.style.paddingLeft=j(u);var b=le({positionType:"firstBaseline",children:[{type:"elem",elem:t,wrapperClasses:["svg-align"]},{type:"kern",size:-(t.height+f)},{type:"elem",elem:c},{type:"kern",size:m}]});if(r.index){var w=e.havingStyle(Q.SCRIPTSCRIPT),g=ce(r.index,w,e),y=.6*(b.height-b.depth),x=le({positionType:"shift",positionData:-y,children:[{type:"elem",elem:g}]}),A=I(["root"],[x]);return I(["mord","sqrt"],[A,b],e)}else return I(["mord","sqrt"],[b],e)},mathmlBuilder(r,e){var{body:t,index:n}=r;return n?new _("mroot",[me(t,e),me(n,e)]):new _("msqrt",[me(t,e)])}});os={display:Q.DISPLAY,text:Q.TEXT,script:Q.SCRIPT,scriptscript:Q.SCRIPTSCRIPT};P({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r,e){var{breakOnTokenText:t,funcName:n,parser:a}=r,s=a.parseExpression(!0,t),i=n.slice(1,n.length-5);if(!im(i))throw new Error("Unknown style: "+i);return{type:"styling",mode:a.mode,style:i,body:s}},htmlBuilder(r,e){var t=os[r.style],n=e.havingStyle(t);return r.resetFont&&(n=n.withFont("")),po(r.body,n,e)},mathmlBuilder(r,e){var t=os[r.style],n=e.havingStyle(t);r.resetFont&&(n=n.withFont(""));var a=Ke(r.body,n),s=new _("mstyle",a),i={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=i[r.style];return s.setAttribute("scriptlevel",o[0]),s.setAttribute("displaystyle",o[1]),s}});om=function(e,t){var n=e.base;if(n)if(n.type==="op"){var a=n.limits&&(t.style.size===Q.DISPLAY.size||n.alwaysHandleSupSub);return a?Ar:null}else if(n.type==="operatorname"){var s=n.alwaysHandleSupSub&&(t.style.size===Q.DISPLAY.size||n.limits);return s?mo:null}else{if(n.type==="accent")return Et(n.base)?bs:null;if(n.type==="horizBrace"){var i=!e.sub;return i===n.isOver?lo:null}else return null}else return null};or({type:"supsub",htmlBuilder(r,e){var t=om(r,e);if(t)return t(r,e);var{base:n,sup:a,sub:s}=r,i=ce(n,e),o,c,m=e.fontMetrics(),u=0,h=0,f=n&&Et(n);if(a){var b=e.havingStyle(e.style.sup());o=ce(a,b,e),f||(u=i.height-b.fontMetrics().supDrop*b.sizeMultiplier/e.sizeMultiplier)}if(s){var w=e.havingStyle(e.style.sub());c=ce(s,w,e),f||(h=i.depth+w.fontMetrics().subDrop*w.sizeMultiplier/e.sizeMultiplier)}var g;e.style===Q.DISPLAY?g=m.sup1:e.style.cramped?g=m.sup3:g=m.sup2;var y=e.sizeMultiplier,x=j(.5/m.ptPerEm/y),A=null;if(c){var M=r.base&&r.base.type==="op"&&r.base.name&&(r.base.name==="\\oiint"||r.base.name==="\\oiiint");if(i instanceof Pe||M){var E;A=j(-((E=i.italic)!=null?E:0))}}var T;if(o&&c){u=Math.max(u,g,o.depth+.25*m.xHeight),h=Math.max(h,m.sub2);var D=m.defaultRuleThickness,$=4*D;if(u-o.depth-(c.height-h)<$){h=$-(u-o.depth)+c.height;var z=.8*m.xHeight-(u-o.depth);z>0&&(u+=z,h-=z)}var O=[{type:"elem",elem:c,shift:h,marginRight:x,marginLeft:A},{type:"elem",elem:o,shift:-u,marginRight:x}];T=le({positionType:"individualShift",children:O})}else if(c){h=Math.max(h,m.sub1,c.height-.8*m.xHeight);var U=[{type:"elem",elem:c,marginLeft:A,marginRight:x}];T=le({positionType:"shift",positionData:h,children:U})}else if(o)u=Math.max(u,g,o.depth+.25*m.xHeight),T=le({positionType:"shift",positionData:-u,children:[{type:"elem",elem:o,marginRight:x}]});else throw new Error("supsub must have either sup or sub.");var L=rs(i,"right")||"mord";return I([L],[i,I(["msupsub"],[T])],e)},mathmlBuilder(r,e){var t=!1,n,a;r.base&&r.base.type==="horizBrace"&&(a=!!r.sup,a===r.base.isOver&&(t=!0,n=r.base.isOver)),r.base&&(r.base.type==="op"||r.base.type==="operatorname")&&(r.base.parentIsSupSub=!0);var s=[me(r.base,e)];r.sub&&s.push(me(r.sub,e)),r.sup&&s.push(me(r.sup,e));var i;if(t)i=n?"mover":"munder";else if(r.sub)if(r.sup){var m=r.base;m&&m.type==="op"&&m.limits&&e.style===Q.DISPLAY||m&&m.type==="operatorname"&&m.alwaysHandleSupSub&&(e.style===Q.DISPLAY||m.limits)?i="munderover":i="msubsup"}else{var c=r.base;c&&c.type==="op"&&c.limits&&(e.style===Q.DISPLAY||c.alwaysHandleSupSub)||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(c.limits||e.style===Q.DISPLAY)?i="munder":i="msub"}else{var o=r.base;o&&o.type==="op"&&o.limits&&(e.style===Q.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||e.style===Q.DISPLAY)?i="mover":i="msup"}return new _(i,s)}});or({type:"atom",htmlBuilder(r,e){return hs(r.text,r.mode,e,["m"+r.family])},mathmlBuilder(r,e){var t=new _("mo",[tt(r.text,r.mode)]);if(r.family==="bin"){var n=vs(r,e);n==="bold-italic"&&t.setAttribute("mathvariant",n)}else r.family==="punct"?t.setAttribute("separator","true"):(r.family==="open"||r.family==="close")&&t.setAttribute("stretchy","false");return t}});ho={mi:"italic",mn:"normal",mtext:"normal"};or({type:"mathord",htmlBuilder(r,e){return Vn(r,e,"mathord")},mathmlBuilder(r,e){var t=new _("mi",[tt(r.text,r.mode,e)]),n=vs(r,e)||"italic";return n!==ho[t.type]&&t.setAttribute("mathvariant",n),t}});or({type:"textord",htmlBuilder(r,e){return Vn(r,e,"textord")},mathmlBuilder(r,e){var t=tt(r.text,r.mode,e),n=vs(r,e)||"normal",a;return r.mode==="text"?a=new _("mtext",[t]):/[0-9]/.test(r.text)?a=new _("mn",[t]):r.text==="\\prime"?a=new _("mo",[t]):a=new _("mi",[t]),n!==ho[a.type]&&a.setAttribute("mathvariant",n),a}});Pa={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Ha={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};or({type:"spacing",htmlBuilder(r,e){if(Ha.hasOwnProperty(r.text)){var t=Ha[r.text].className||"";if(r.mode==="text"){var n=Vn(r,e,"textord");return n.classes.push(t),n}else return I(["mspace",t],[hs(r.text,r.mode,e)],e)}else{if(Pa.hasOwnProperty(r.text))return I(["mspace",Pa[r.text]],[],e);throw new N('Unknown type of space "'+r.text+'"')}},mathmlBuilder(r,e){var t;if(Ha.hasOwnProperty(r.text))t=new _("mtext",[new Se("\xA0")]);else{if(Pa.hasOwnProperty(r.text))return new _("mspace");throw new N('Unknown type of space "'+r.text+'"')}return t}});g0=()=>{var r=new _("mtd",[]);return r.setAttribute("width","50%"),r};or({type:"tag",mathmlBuilder(r,e){var t=new _("mtable",[new _("mtr",[g0(),new _("mtd",[Zt(r.body,e)]),g0(),new _("mtd",[Zt(r.tag,e)])])]);return t.setAttribute("width","100%"),t}});v0={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},b0={"\\textbf":"textbf","\\textmd":"textmd"},lm={"\\textit":"textit","\\textup":"textup"},y0=(r,e)=>{var t=r.font;if(t){if(v0[t])return e.withTextFontFamily(v0[t]);if(b0[t])return e.withTextFontWeight(b0[t]);if(t==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(lm[t])};P({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(r,e){var{parser:t,funcName:n}=r,a=e[0];return{type:"text",mode:t.mode,body:Ce(a),font:n}},htmlBuilder(r,e){var t=y0(r,e),n=Ee(r.body,t,!0);return I(["mord","text"],n,t)},mathmlBuilder(r,e){var t=y0(r,e);return Zt(r.body,t)}});P({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"underline",mode:t.mode,body:e[0]}},htmlBuilder(r,e){var t=ce(r.body,e),n=xr("underline-line",e),a=e.fontMetrics().defaultRuleThickness,s=le({positionType:"top",positionData:t.height,children:[{type:"kern",size:a},{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:t}]});return I(["mord","underline"],[s],e)},mathmlBuilder(r,e){var t=new _("mo",[new Se("\u203E")]);t.setAttribute("stretchy","true");var n=new _("munder",[me(r.body,e),t]);return n.setAttribute("accentunder","true"),n}});P({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(r,e){var{parser:t}=r;return{type:"vcenter",mode:t.mode,body:e[0]}},htmlBuilder(r,e){var t=ce(r.body,e),n=e.fontMetrics().axisHeight,a=.5*(t.height-n-(t.depth+n));return le({positionType:"shift",positionData:a,children:[{type:"elem",elem:t}]})},mathmlBuilder(r,e){var t=new _("mpadded",[me(r.body,e)],["vcenter"]);return new _("mrow",[t])}});P({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(r,e,t){throw new N("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(r,e){for(var t=w0(r),n=[],a=e.havingStyle(e.style.text()),s=0;s<t.length;s++){var i=t[s];i==="~"&&(i="\\textasciitilde"),n.push(Le(i,"Typewriter-Regular",r.mode,a,["mord","texttt"]))}return I(["mord","text"].concat(a.sizingClasses(e)),R0(n),a)},mathmlBuilder(r,e){var t=new Se(w0(r)),n=new _("mtext",[t]);return n.setAttribute("mathvariant","monospace"),n}});w0=r=>r.body.replace(/ /g,r.star?"\u2423":"\xA0"),qt=I0,fo=`[ \r
258
+ ]`,cm="\\\\[a-zA-Z@]+",dm="\\\\[^\uD800-\uDFFF]",um="("+cm+")"+fo+"*",mm=`\\\\(
259
259
  |[ \r ]+
260
- ?)[ \r ]*`,ls="[\u0300-\u036F]",hm=new RegExp(ls+"+$"),fm="("+fo+"+)|"+(pm+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(ls+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(ls+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+mm)+("|"+um+")"),Un=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(fm,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new Ye("EOF",new Ge(this,t,t));var n=this.tokenRegex.exec(e);if(n===null||n.index!==t)throw new N("Unexpected character: '"+e[t]+"'",new Ye(e[t],new Ge(this,t,t+1)));var a=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[a]===14){var s=e.indexOf(`
261
- `,this.tokenRegex.lastIndex);return s===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=s+1,this.lex()}return new Ye(a,new Ge(this,t,this.tokenRegex.lastIndex))}},cs=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new N("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(e[t]==null?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,n){if(n===void 0&&(n=!1),n){for(var a=0;a<this.undefStack.length;a++)delete this.undefStack[a][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(e)&&(s[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}},gm=no;v("\\noexpand",function(r){var e=r.popToken();return r.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});v("\\expandafter",function(r){var e=r.popToken();return r.expandOnce(!0),{tokens:[e],numArgs:0}});v("\\@firstoftwo",function(r){var e=r.consumeArgs(2);return{tokens:e[0],numArgs:0}});v("\\@secondoftwo",function(r){var e=r.consumeArgs(2);return{tokens:e[1],numArgs:0}});v("\\@ifnextchar",function(r){var e=r.consumeArgs(3);r.consumeSpaces();var t=r.future();return e[0].length===1&&e[0][0].text===t.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});v("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");v("\\TextOrMath",function(r){var e=r.consumeArgs(2);return r.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});x0={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};v("\\char",function(r){var e=r.popToken(),t,n=0;if(e.text==="'")t=8,e=r.popToken();else if(e.text==='"')t=16,e=r.popToken();else if(e.text==="`")if(e=r.popToken(),e.text[0]==="\\")n=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new N("\\char` missing argument");n=e.text.charCodeAt(0)}else t=10;if(t){if(n=x0[e.text],n==null||n>=t)throw new N("Invalid base-"+t+" digit "+e.text);for(var a;(a=x0[r.future().text])!=null&&a<t;)n*=t,n+=a,r.popToken()}return"\\@char{"+n+"}"});ks=(r,e,t,n)=>{var a=r.consumeArg().tokens;if(a.length!==1)throw new N("\\newcommand's first argument must be a macro name");var s=a[0].text,i=r.isDefined(s);if(i&&!e)throw new N("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!i&&!t)throw new N("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");var o=0;if(a=r.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var c="",m=r.expandNextToken();m.text!=="]"&&m.text!=="EOF";)c+=m.text,m=r.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new N("Invalid number of arguments: "+c);o=parseInt(c),a=r.consumeArg().tokens}return i&&n||r.macros.set(s,{tokens:a,numArgs:o}),""};v("\\newcommand",r=>ks(r,!1,!0,!1));v("\\renewcommand",r=>ks(r,!0,!1,!1));v("\\providecommand",r=>ks(r,!0,!0,!0));v("\\message",r=>{var e=r.consumeArgs(1)[0];return console.log(e.reverse().map(t=>t.text).join("")),""});v("\\errmessage",r=>{var e=r.consumeArgs(1)[0];return console.error(e.reverse().map(t=>t.text).join("")),""});v("\\show",r=>{var e=r.popToken(),t=e.text;return console.log(e,r.macros.get(t),qt[t],ve.math[t],ve.text[t]),""});v("\\bgroup","{");v("\\egroup","}");v("~","\\nobreakspace");v("\\lq","`");v("\\rq","'");v("\\aa","\\r a");v("\\AA","\\r A");v("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}");v("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");v("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}");v("\u212C","\\mathscr{B}");v("\u2130","\\mathscr{E}");v("\u2131","\\mathscr{F}");v("\u210B","\\mathscr{H}");v("\u2110","\\mathscr{I}");v("\u2112","\\mathscr{L}");v("\u2133","\\mathscr{M}");v("\u211B","\\mathscr{R}");v("\u212D","\\mathfrak{C}");v("\u210C","\\mathfrak{H}");v("\u2128","\\mathfrak{Z}");v("\\Bbbk","\\Bbb{k}");v("\\llap","\\mathllap{\\textrm{#1}}");v("\\rlap","\\mathrlap{\\textrm{#1}}");v("\\clap","\\mathclap{\\textrm{#1}}");v("\\mathstrut","\\vphantom{(}");v("\\underbar","\\underline{\\text{#1}}");v("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');v("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}");v("\\ne","\\neq");v("\u2260","\\neq");v("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}");v("\u2209","\\notin");v("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}");v("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}");v("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}");v("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}");v("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}");v("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}");v("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}");v("\u27C2","\\perp");v("\u203C","\\mathclose{!\\mkern-0.8mu!}");v("\u220C","\\notni");v("\u231C","\\ulcorner");v("\u231D","\\urcorner");v("\u231E","\\llcorner");v("\u231F","\\lrcorner");v("\xA9","\\copyright");v("\xAE","\\textregistered");v("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');v("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');v("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');v("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');v("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");v("\u22EE","\\vdots");v("\\varGamma","\\mathit{\\Gamma}");v("\\varDelta","\\mathit{\\Delta}");v("\\varTheta","\\mathit{\\Theta}");v("\\varLambda","\\mathit{\\Lambda}");v("\\varXi","\\mathit{\\Xi}");v("\\varPi","\\mathit{\\Pi}");v("\\varSigma","\\mathit{\\Sigma}");v("\\varUpsilon","\\mathit{\\Upsilon}");v("\\varPhi","\\mathit{\\Phi}");v("\\varPsi","\\mathit{\\Psi}");v("\\varOmega","\\mathit{\\Omega}");v("\\substack","\\begin{subarray}{c}#1\\end{subarray}");v("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");v("\\boxed","\\fbox{$\\displaystyle{#1}$}");v("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");v("\\implies","\\DOTSB\\;\\Longrightarrow\\;");v("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");v("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");v("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");k0={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},vm=new Set(["bin","rel"]);v("\\dots",function(r){var e="\\dotso",t=r.expandAfterFuture().text;return t in k0?e=k0[t]:(t.slice(0,4)==="\\not"||t in ve.math&&vm.has(ve.math[t].group))&&(e="\\dotsb"),e});Ss={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};v("\\dotso",function(r){var e=r.future().text;return e in Ss?"\\ldots\\,":"\\ldots"});v("\\dotsc",function(r){var e=r.future().text;return e in Ss&&e!==","?"\\ldots\\,":"\\ldots"});v("\\cdots",function(r){var e=r.future().text;return e in Ss?"\\@cdots\\,":"\\@cdots"});v("\\dotsb","\\cdots");v("\\dotsm","\\cdots");v("\\dotsi","\\!\\cdots");v("\\dotsx","\\ldots\\,");v("\\DOTSI","\\relax");v("\\DOTSB","\\relax");v("\\DOTSX","\\relax");v("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");v("\\,","\\tmspace+{3mu}{.1667em}");v("\\thinspace","\\,");v("\\>","\\mskip{4mu}");v("\\:","\\tmspace+{4mu}{.2222em}");v("\\medspace","\\:");v("\\;","\\tmspace+{5mu}{.2777em}");v("\\thickspace","\\;");v("\\!","\\tmspace-{3mu}{.1667em}");v("\\negthinspace","\\!");v("\\negmedspace","\\tmspace-{4mu}{.2222em}");v("\\negthickspace","\\tmspace-{5mu}{.277em}");v("\\enspace","\\kern.5em ");v("\\enskip","\\hskip.5em\\relax");v("\\quad","\\hskip1em\\relax");v("\\qquad","\\hskip2em\\relax");v("\\tag","\\@ifstar\\tag@literal\\tag@paren");v("\\tag@paren","\\tag@literal{({#1})}");v("\\tag@literal",r=>{if(r.macros.get("\\df@tag"))throw new N("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});v("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");v("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");v("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");v("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");v("\\newline","\\\\\\relax");v("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");go=j(ft["Main-Regular"][84][1]-.7*ft["Main-Regular"][65][1]);v("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+go+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");v("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+go+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");v("\\hspace","\\@ifstar\\@hspacer\\@hspace");v("\\@hspace","\\hskip #1\\relax");v("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");v("\\ordinarycolon",":");v("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");v("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');v("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');v("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');v("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');v("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');v("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');v("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');v("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');v("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');v("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');v("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');v("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');v("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');v("\u2237","\\dblcolon");v("\u2239","\\eqcolon");v("\u2254","\\coloneqq");v("\u2255","\\eqqcolon");v("\u2A74","\\Coloneqq");v("\\ratio","\\vcentcolon");v("\\coloncolon","\\dblcolon");v("\\colonequals","\\coloneqq");v("\\coloncolonequals","\\Coloneqq");v("\\equalscolon","\\eqqcolon");v("\\equalscoloncolon","\\Eqqcolon");v("\\colonminus","\\coloneq");v("\\coloncolonminus","\\Coloneq");v("\\minuscolon","\\eqcolon");v("\\minuscoloncolon","\\Eqcolon");v("\\coloncolonapprox","\\Colonapprox");v("\\coloncolonsim","\\Colonsim");v("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");v("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");v("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");v("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");v("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}");v("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");v("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");v("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");v("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");v("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");v("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");v("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");v("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");v("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}");v("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}");v("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}");v("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}");v("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}");v("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}");v("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}");v("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}");v("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}");v("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}");v("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}");v("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}");v("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}");v("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}");v("\\imath","\\html@mathml{\\@imath}{\u0131}");v("\\jmath","\\html@mathml{\\@jmath}{\u0237}");v("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}");v("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}");v("\u27E6","\\llbracket");v("\u27E7","\\rrbracket");v("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}");v("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}");v("\u2983","\\lBrace");v("\u2984","\\rBrace");v("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}");v("\u29B5","\\minuso");v("\\darr","\\downarrow");v("\\dArr","\\Downarrow");v("\\Darr","\\Downarrow");v("\\lang","\\langle");v("\\rang","\\rangle");v("\\uarr","\\uparrow");v("\\uArr","\\Uparrow");v("\\Uarr","\\Uparrow");v("\\N","\\mathbb{N}");v("\\R","\\mathbb{R}");v("\\Z","\\mathbb{Z}");v("\\alef","\\aleph");v("\\alefsym","\\aleph");v("\\Alpha","\\mathrm{A}");v("\\Beta","\\mathrm{B}");v("\\bull","\\bullet");v("\\Chi","\\mathrm{X}");v("\\clubs","\\clubsuit");v("\\cnums","\\mathbb{C}");v("\\Complex","\\mathbb{C}");v("\\Dagger","\\ddagger");v("\\diamonds","\\diamondsuit");v("\\empty","\\emptyset");v("\\Epsilon","\\mathrm{E}");v("\\Eta","\\mathrm{H}");v("\\exist","\\exists");v("\\harr","\\leftrightarrow");v("\\hArr","\\Leftrightarrow");v("\\Harr","\\Leftrightarrow");v("\\hearts","\\heartsuit");v("\\image","\\Im");v("\\infin","\\infty");v("\\Iota","\\mathrm{I}");v("\\isin","\\in");v("\\Kappa","\\mathrm{K}");v("\\larr","\\leftarrow");v("\\lArr","\\Leftarrow");v("\\Larr","\\Leftarrow");v("\\lrarr","\\leftrightarrow");v("\\lrArr","\\Leftrightarrow");v("\\Lrarr","\\Leftrightarrow");v("\\Mu","\\mathrm{M}");v("\\natnums","\\mathbb{N}");v("\\Nu","\\mathrm{N}");v("\\Omicron","\\mathrm{O}");v("\\plusmn","\\pm");v("\\rarr","\\rightarrow");v("\\rArr","\\Rightarrow");v("\\Rarr","\\Rightarrow");v("\\real","\\Re");v("\\reals","\\mathbb{R}");v("\\Reals","\\mathbb{R}");v("\\Rho","\\mathrm{P}");v("\\sdot","\\cdot");v("\\sect","\\S");v("\\spades","\\spadesuit");v("\\sub","\\subset");v("\\sube","\\subseteq");v("\\supe","\\supseteq");v("\\Tau","\\mathrm{T}");v("\\thetasym","\\vartheta");v("\\weierp","\\wp");v("\\Zeta","\\mathrm{Z}");v("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");v("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");v("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");v("\\bra","\\mathinner{\\langle{#1}|}");v("\\ket","\\mathinner{|{#1}\\rangle}");v("\\braket","\\mathinner{\\langle{#1}\\rangle}");v("\\Bra","\\left\\langle#1\\right|");v("\\Ket","\\left|#1\\right\\rangle");vo=r=>e=>{var t=e.consumeArg().tokens,n=e.consumeArg().tokens,a=e.consumeArg().tokens,s=e.consumeArg().tokens,i=e.macros.get("|"),o=e.macros.get("\\|");e.macros.beginGroup();var c=h=>f=>{r&&(f.macros.set("|",i),a.length&&f.macros.set("\\|",o));var b=h;if(!h&&a.length){var w=f.future();w.text==="|"&&(f.popToken(),b=!0)}return{tokens:b?a:n,numArgs:0}};e.macros.set("|",c(!1)),a.length&&e.macros.set("\\|",c(!0));var m=e.consumeArg().tokens,u=e.expandTokens([...s,...m,...t]);return e.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};v("\\bra@ket",vo(!1));v("\\bra@set",vo(!0));v("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");v("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");v("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");v("\\angln","{\\angl n}");v("\\blue","\\textcolor{##6495ed}{#1}");v("\\orange","\\textcolor{##ffa500}{#1}");v("\\pink","\\textcolor{##ff00af}{#1}");v("\\red","\\textcolor{##df0030}{#1}");v("\\green","\\textcolor{##28ae7b}{#1}");v("\\gray","\\textcolor{gray}{#1}");v("\\purple","\\textcolor{##9d38bd}{#1}");v("\\blueA","\\textcolor{##ccfaff}{#1}");v("\\blueB","\\textcolor{##80f6ff}{#1}");v("\\blueC","\\textcolor{##63d9ea}{#1}");v("\\blueD","\\textcolor{##11accd}{#1}");v("\\blueE","\\textcolor{##0c7f99}{#1}");v("\\tealA","\\textcolor{##94fff5}{#1}");v("\\tealB","\\textcolor{##26edd5}{#1}");v("\\tealC","\\textcolor{##01d1c1}{#1}");v("\\tealD","\\textcolor{##01a995}{#1}");v("\\tealE","\\textcolor{##208170}{#1}");v("\\greenA","\\textcolor{##b6ffb0}{#1}");v("\\greenB","\\textcolor{##8af281}{#1}");v("\\greenC","\\textcolor{##74cf70}{#1}");v("\\greenD","\\textcolor{##1fab54}{#1}");v("\\greenE","\\textcolor{##0d923f}{#1}");v("\\goldA","\\textcolor{##ffd0a9}{#1}");v("\\goldB","\\textcolor{##ffbb71}{#1}");v("\\goldC","\\textcolor{##ff9c39}{#1}");v("\\goldD","\\textcolor{##e07d10}{#1}");v("\\goldE","\\textcolor{##a75a05}{#1}");v("\\redA","\\textcolor{##fca9a9}{#1}");v("\\redB","\\textcolor{##ff8482}{#1}");v("\\redC","\\textcolor{##f9685d}{#1}");v("\\redD","\\textcolor{##e84d39}{#1}");v("\\redE","\\textcolor{##bc2612}{#1}");v("\\maroonA","\\textcolor{##ffbde0}{#1}");v("\\maroonB","\\textcolor{##ff92c6}{#1}");v("\\maroonC","\\textcolor{##ed5fa6}{#1}");v("\\maroonD","\\textcolor{##ca337c}{#1}");v("\\maroonE","\\textcolor{##9e034e}{#1}");v("\\purpleA","\\textcolor{##ddd7ff}{#1}");v("\\purpleB","\\textcolor{##c6b9fc}{#1}");v("\\purpleC","\\textcolor{##aa87ff}{#1}");v("\\purpleD","\\textcolor{##7854ab}{#1}");v("\\purpleE","\\textcolor{##543b78}{#1}");v("\\mintA","\\textcolor{##f5f9e8}{#1}");v("\\mintB","\\textcolor{##edf2df}{#1}");v("\\mintC","\\textcolor{##e0e5cc}{#1}");v("\\grayA","\\textcolor{##f6f7f7}{#1}");v("\\grayB","\\textcolor{##f0f1f2}{#1}");v("\\grayC","\\textcolor{##e3e5e6}{#1}");v("\\grayD","\\textcolor{##d6d8da}{#1}");v("\\grayE","\\textcolor{##babec2}{#1}");v("\\grayF","\\textcolor{##888d93}{#1}");v("\\grayG","\\textcolor{##626569}{#1}");v("\\grayH","\\textcolor{##3b3e40}{#1}");v("\\grayI","\\textcolor{##21242c}{#1}");v("\\kaBlue","\\textcolor{##314453}{#1}");v("\\kaGreen","\\textcolor{##71B307}{#1}");bo={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},ds=class{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new cs(gm,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new Un(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,a;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;t=this.popToken(),{tokens:a,end:n}=this.consumeArg(["]"])}else({tokens:a,start:t,end:n}=this.consumeArg());return this.pushToken(new Ye("EOF",n.loc)),this.pushTokens(a),new Ye("",Ge.range(t,n))}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var a=this.future(),s,i=0,o=0;do{if(s=this.popToken(),t.push(s),s.text==="{")++i;else if(s.text==="}"){if(--i,i===-1)throw new N("Extra }",s)}else if(s.text==="EOF")throw new N("Unexpected end of input in a macro argument, expected '"+(e&&n?e[o]:"}")+"'",s);if(e&&n)if((i===0||i===1&&e[o]==="{")&&s.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}while(i!==0||n);return a.text==="{"&&t[t.length-1].text==="}"&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:a,end:s}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new N("The length of delimiters doesn't match the number of args!");for(var n=t[0],a=0;a<n.length;a++){var s=this.popToken();if(n[a]!==s.text)throw new N("Use of the macro doesn't match its definition",s)}}for(var i=[],o=0;o<e;o++)i.push(this.consumeArg(t&&t[o+1]).tokens);return i}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new N("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),n=t.text,a=t.noexpand?null:this._getExpansion(n);if(a==null||e&&a.unexpandable){if(e&&a==null&&n[0]==="\\"&&!this.isDefined(n))throw new N("Undefined control sequence: "+n);return this.pushToken(t),!1}this.countExpansion(1);var s=a.tokens,i=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){s=s.slice();for(var o=s.length-1;o>=0;--o){var c=s[o];if(c.text==="#"){if(o===0)throw new N("Incomplete placeholder at end of macro body",c);if(c=s[--o],c.text==="#")s.splice(o+1,1);else if(/^[1-9]$/.test(c.text))s.splice(o,2,...i[+c.text-1]);else throw new N("Not a valid argument number",c)}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new Ye(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),t.push(a)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(n=>n.text).join("")}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var a=typeof t=="function"?t(this):t;if(typeof a=="string"){var s=0;if(a.includes("#"))for(var i=a.replace(/##/g,"");i.includes("#"+(s+1));)++s;for(var o=new Un(a,this.settings),c=[],m=o.lex();m.text!=="EOF";)c.push(m),m=o.lex();c.reverse();var u={tokens:c,numArgs:s};return u}return a}isDefined(e){return this.macros.has(e)||qt.hasOwnProperty(e)||ve.math.hasOwnProperty(e)||ve.text.hasOwnProperty(e)||bo.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t!=null?typeof t=="string"||typeof t=="function"||!t.unexpandable:qt.hasOwnProperty(e)&&!qt[e].primitive}},S0=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,On=Object.freeze({"\u208A":"+","\u208B":"-","\u208C":"=","\u208D":"(","\u208E":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1D62":"i","\u2C7C":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209A":"p","\u1D63":"r","\u209B":"s","\u209C":"t","\u1D64":"u","\u1D65":"v","\u2093":"x","\u1D66":"\u03B2","\u1D67":"\u03B3","\u1D68":"\u03C1","\u1D69":"\u03D5","\u1D6A":"\u03C7","\u207A":"+","\u207B":"-","\u207C":"=","\u207D":"(","\u207E":")","\u2070":"0","\xB9":"1","\xB2":"2","\xB3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1D2C":"A","\u1D2E":"B","\u1D30":"D","\u1D31":"E","\u1D33":"G","\u1D34":"H","\u1D35":"I","\u1D36":"J","\u1D37":"K","\u1D38":"L","\u1D39":"M","\u1D3A":"N","\u1D3C":"O","\u1D3E":"P","\u1D3F":"R","\u1D40":"T","\u1D41":"U","\u2C7D":"V","\u1D42":"W","\u1D43":"a","\u1D47":"b","\u1D9C":"c","\u1D48":"d","\u1D49":"e","\u1DA0":"f","\u1D4D":"g",\u02B0:"h","\u2071":"i",\u02B2:"j","\u1D4F":"k",\u02E1:"l","\u1D50":"m",\u207F:"n","\u1D52":"o","\u1D56":"p",\u02B3:"r",\u02E2:"s","\u1D57":"t","\u1D58":"u","\u1D5B":"v",\u02B7:"w",\u02E3:"x",\u02B8:"y","\u1DBB":"z","\u1D5D":"\u03B2","\u1D5E":"\u03B3","\u1D5F":"\u03B4","\u1D60":"\u03D5","\u1D61":"\u03C7","\u1DBF":"\u03B8"}),qa={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"},"\u0327":{text:"\\c"}},A0={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u1E09:"c\u0327\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u00E7:"c\u0327",\u010F:"d\u030C",\u1E0B:"d\u0307",\u1E11:"d\u0327",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u1E1D:"e\u0327\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u0229:"e\u0327",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u0123:"g\u0327",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u1E29:"h\u0327",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u0137:"k\u0327",\u013A:"l\u0301",\u013E:"l\u030C",\u013C:"l\u0327",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u0146:"n\u0327",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u0157:"r\u0327",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u015F:"s\u0327",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u0163:"t\u0327",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u1E08:"C\u0327\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u00C7:"C\u0327",\u010E:"D\u030C",\u1E0A:"D\u0307",\u1E10:"D\u0327",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u1E1C:"E\u0327\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u0228:"E\u0327",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u0122:"G\u0327",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u1E28:"H\u0327",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0136:"K\u0327",\u0139:"L\u0301",\u013D:"L\u030C",\u013B:"L\u0327",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u0145:"N\u0327",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u0156:"R\u0327",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u015E:"S\u0327",\u0164:"T\u030C",\u1E6A:"T\u0307",\u0162:"T\u0327",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},Gn=class r{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new ds(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new N("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new Ye("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,n}parseExpression(e,t){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var a=this.fetch();if(r.endOfExpression.has(a.text)||t&&a.text===t||e&&qt[a.text]&&qt[a.text].infix)break;var s=this.parseAtom(t);if(s){if(s.type==="internal")continue}else break;n.push(s)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var t=-1,n,a=0;a<e.length;a++){var s=e[a];if(s.type==="infix"){if(t!==-1)throw new N("only one infix operator per group",s.token);t=a,n=s.replaceWith}}if(t!==-1&&n){var i,o,c=e.slice(0,t),m=e.slice(t+1);c.length===1&&c[0].type==="ordgroup"?i=c[0]:i={type:"ordgroup",mode:this.mode,body:c},m.length===1&&m[0].type==="ordgroup"?o=m[0]:o={type:"ordgroup",mode:this.mode,body:m};var u;return n==="\\\\abovefrac"?u=this.callFunction(n,[i,e[t],o],[]):u=this.callFunction(n,[i,o],[]),[u]}else return e}handleSupSubscript(e){var t=this.fetch(),n=t.text;this.consume(),this.consumeSpaces();var a;do{var s;a=this.parseGroup(e)}while(((s=a)==null?void 0:s.type)==="internal");if(!a)throw new N("Expected group after '"+n+"'",t);return a}formatUnsupportedCmd(e){for(var t=[],n=0;n<e.length;n++)t.push({type:"textord",mode:"text",text:e[n]});var a={type:"text",mode:this.mode,body:t},s={type:"color",mode:this.mode,color:this.settings.errorColor,body:[a]};return s}parseAtom(e){var t=this.parseGroup("atom",e);if(t?.type==="internal"||this.mode==="text")return t;for(var n,a;;){this.consumeSpaces();var s=this.fetch();if(s.text==="\\limits"||s.text==="\\nolimits"){if(t&&t.type==="op"){var i=s.text==="\\limits";t.limits=i,t.alwaysHandleSupSub=!0}else if(t&&t.type==="operatorname")t.alwaysHandleSupSub&&(t.limits=s.text==="\\limits");else throw new N("Limit controls must follow a math operator",s);this.consume()}else if(s.text==="^"){if(n)throw new N("Double superscript",s);n=this.handleSupSubscript("superscript")}else if(s.text==="_"){if(a)throw new N("Double subscript",s);a=this.handleSupSubscript("subscript")}else if(s.text==="'"){if(n)throw new N("Double superscript",s);var o={type:"textord",mode:this.mode,text:"\\prime"},c=[o];for(this.consume();this.fetch().text==="'";)c.push(o),this.consume();this.fetch().text==="^"&&c.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:c}}else if(On[s.text]){var m=S0.test(s.text),u=[];for(u.push(new Ye(On[s.text])),this.consume();;){var h=this.fetch().text;if(!On[h]||S0.test(h)!==m)break;u.unshift(new Ye(On[h])),this.consume()}var f=this.subparse(u);m?a={type:"ordgroup",mode:"math",body:f}:n={type:"ordgroup",mode:"math",body:f}}else break}return n||a?{type:"supsub",mode:this.mode,base:t,sup:n,sub:a}:t}parseFunction(e,t){var n=this.fetch(),a=n.text,s=qt[a];if(!s)return null;if(this.consume(),t&&t!=="atom"&&!s.allowedInArgument)throw new N("Got function '"+a+"' with no arguments"+(t?" as "+t:""),n);if(this.mode==="text"&&!s.allowedInText)throw new N("Can't use function '"+a+"' in text mode",n);if(this.mode==="math"&&s.allowedInMath===!1)throw new N("Can't use function '"+a+"' in math mode",n);var{args:i,optArgs:o}=this.parseArguments(a,s);return this.callFunction(a,i,o,n,e)}callFunction(e,t,n,a,s){var i={funcName:e,parser:this,token:a,breakOnTokenText:s},o=qt[e];if(o&&o.handler)return o.handler(i,t,n);throw new N("No function handler for "+e)}parseArguments(e,t){var n=t.numArgs+t.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var a=[],s=[],i=0;i<n;i++){var o=t.argTypes&&t.argTypes[i],c=i<t.numOptionalArgs;("primitive"in t&&t.primitive&&o==null||t.type==="sqrt"&&i===1&&s[0]==null)&&(o="primitive");var m=this.parseGroupOfType("argument to '"+e+"'",o,c);if(c)s.push(m);else if(m!=null)a.push(m);else throw new N("Null argument, please report this as a bug")}return{args:a,optArgs:s}}parseGroupOfType(e,t,n){switch(t){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,t);case"hbox":{var a=this.parseArgumentGroup(n,"text");return a!=null?{type:"styling",mode:a.mode,body:[a],style:"text",resetFont:!0}:null}case"raw":{var s=this.parseStringGroup("raw",n);return s!=null?{type:"raw",mode:"text",string:s.text}:null}case"primitive":{if(n)throw new N("A primitive argument cannot be optional");var i=this.parseGroup(e);if(i==null)throw new N("Expected group as "+e,this.fetch());return i}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new N("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(e,t){var n=this.gullet.scanArgument(t);if(n==null)return null;for(var a="",s;(s=this.fetch()).text!=="EOF";)a+=s.text,this.consume();return this.consume(),n.text=a,n}parseRegexGroup(e,t){for(var n=this.fetch(),a=n,s="",i;(i=this.fetch()).text!=="EOF"&&e.test(s+i.text);)a=i,s+=a.text,this.consume();if(s==="")throw new N("Invalid "+t+": '"+n.text+"'",n);return n.range(a,s)}parseColorGroup(e){var t=this.parseStringGroup("color",e);if(t==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new N("Invalid color: '"+t.text+"'",t);var a=n[0];return/^[0-9a-f]{6}$/i.test(a)&&(a="#"+a),{type:"color-token",mode:this.mode,color:a}}parseSizeGroup(e){var t,n=!1;if(this.gullet.consumeSpaces(),!e&&this.gullet.future().text!=="{"?t=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):t=this.parseStringGroup("size",e),!t)return null;!e&&t.text.length===0&&(t.text="0pt",n=!0);var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!a)throw new N("Invalid size: '"+t.text+"'",t);var s={number:+(a[1]+a[2]),unit:a[3]};if(!T0(s))throw new N("Invalid unit: '"+s.unit+"'",t);return{type:"size",mode:this.mode,value:s,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),t==null)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(e,t){var n=this.gullet.scanArgument(e);if(n==null)return null;var a=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var s=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var i={type:"ordgroup",mode:this.mode,loc:n.loc,body:s};return t&&this.switchMode(a),i}parseGroup(e,t){var n=this.fetch(),a=n.text,s;if(a==="{"||a==="\\begingroup"){this.consume();var i=a==="{"?"}":"\\endgroup";this.gullet.beginGroup();var o=this.parseExpression(!1,i),c=this.fetch();this.expect(i),this.gullet.endGroup(),s={type:"ordgroup",mode:this.mode,loc:Ge.range(n,c),body:o,semisimple:a==="\\begingroup"||void 0}}else if(s=this.parseFunction(t,e)||this.parseSymbol(),s==null&&a[0]==="\\"&&!bo.hasOwnProperty(a)){if(this.settings.throwOnError)throw new N("Undefined control sequence: "+a,n);s=this.formatUnsupportedCmd(a),this.consume()}return s}formLigatures(e){for(var t=e.length-1,n=0;n<t;++n){var a=e[n];if(a.type==="textord"){var s=a.text,i=e[n+1];if(!(!i||i.type!=="textord")){if(s==="-"&&i.text==="-"){var o=e[n+2];n+1<t&&o&&o.type==="textord"&&o.text==="-"?(e.splice(n,3,{type:"textord",mode:"text",loc:Ge.range(a,o),text:"---"}),t-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:Ge.range(a,i),text:"--"}),t-=1)}(s==="'"||s==="`")&&i.text===s&&(e.splice(n,2,{type:"textord",mode:"text",loc:Ge.range(a,i),text:s+s}),t-=1)}}}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),a=n.charAt(0)==="*";if(a&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new N(`\\verb assertion failed --
262
- please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:a}}A0.hasOwnProperty(t[0])&&!ve[this.mode][t[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=A0[t[0]]+t.slice(1));var s=hm.exec(t);s&&(t=t.substring(0,s.index),t==="i"?t="\u0131":t==="j"&&(t="\u0237"));var i;if(ve[this.mode][t]){this.settings.strict&&this.mode==="math"&&Za.includes(t)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var o=ve[this.mode][t].group,c=Ge.range(e),m;Iu(o)?m={type:"atom",mode:this.mode,family:o,loc:c,text:t}:m={type:o,mode:this.mode,loc:c,text:t},i=m}else if(t.charCodeAt(0)>=128)this.settings.strict&&(D0(t.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'"'+(" ("+t.charCodeAt(0)+")"),e)),i={type:"textord",mode:"text",loc:Ge.range(e),text:t};else return null;if(this.consume(),s)for(var u=0;u<s[0].length;u++){var h=s[0][u];if(!qa[h])throw new N("Unknown accent ' "+h+"'",e);var f=qa[h][this.mode]||qa[h].text;if(!f)throw new N("Accent "+h+" unsupported in "+this.mode+" mode",e);i={type:"accent",mode:this.mode,loc:Ge.range(e),label:f,isStretchy:!1,isShifty:!0,base:i}}return i}};Gn.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);As=function(e,t){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new Gn(e,t);delete n.gullet.macros.current["\\df@tag"];var a=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new N("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:n.subparse([new Ye("\\df@tag")])}]}return a},yo=function(e,t,n){t.textContent="";var a=Ds(e,n).toNode();t.appendChild(a)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),yo=function(){throw new N("KaTeX doesn't work in quirks mode.")});bm=function(e,t){var n=Ds(e,t).toMarkup();return n},ym=function(e,t){var n=new Hr(t);return As(e,n)},wo=function(e,t,n){if(n.throwOnError||!(e instanceof N))throw e;var a=I(["katex-error"],[new Pe(t)]);return a.setAttribute("title",e.toString()),a.setAttribute("style","color:"+n.errorColor),a},Ds=function(e,t){var n=new Hr(t);try{var a=As(e,n);return Cu(a,e,n)}catch(s){return wo(s,e,n)}},wm=function(e,t){var n=new Hr(t);try{var a=As(e,n);return Mu(a,e,n)}catch(s){return wo(s,e,n)}},xm="0.16.47",km={Span:Wt,Anchor:wr,SymbolNode:Pe,SvgNode:lt,PathNode:gt,LineNode:Ur},Ts={version:xm,render:yo,renderToString:bm,ParseError:N,SETTINGS_SCHEMA:Ua,__parse:ym,__renderToDomTree:Ds,__renderToHTMLTree:wm,__setFontMetrics:lu,__defineSymbol:l,__defineFunction:P,__defineMacro:v,__domTree:km}});function jm(r){return/\buseContext\b/.test(r)?"Component uses React useContext":/\buseReducer\b/.test(r)?"Component uses React useReducer":/\bcreatePortal\b/.test(r)?"Component uses React createPortal":/\buseImperativeHandle\b/.test(r)?"Component uses useImperativeHandle":/from\s+['"]@reduxjs|from\s+['"]zustand|from\s+['"]@tanstack\/react-query/i.test(r)?"Component imports external React state manager":null}function Lm(r){return r.replace(/style=\{\{([^}]+)\}\}/g,(e,t)=>{let n=t.split(","),a=[];for(let s of n){let i=s.indexOf(":");if(i===-1)continue;let o=s.slice(0,i).trim(),c=s.slice(i+1).trim();o=o.replace(/([A-Z])/g,"-$1").toLowerCase(),c=c.replace(/^['"]|['"]$/g,""),o&&c&&a.push(`${o}:${c}`)}return`style="${a.join(";")}"`})}function Mo(r){let e=r;return e=Lm(e),e=e.replace(/\bclassName=/g,"class="),e=e.replace(/\bon([A-Z][a-zA-Z0-9_]*)=/g,(t,n)=>`on${n.toLowerCase()}=`),e=e.replace(/<>\s*/g,"<div>"),e=e.replace(/\s*<\/>/g,"</div>"),e}function Bm(r,e,t){let n="",a=0,s=`${e}(`,i=r.indexOf(s,a);for(;i!==-1;){let o=i>0?r[i-1]:"";if(/[a-zA-Z0-9_$]/.test(o)){n+=r.slice(a,i+s.length),a=i+s.length,i=r.indexOf(s,a);continue}let c=1,m=i+s.length;for(;m<r.length&&c>0;)r[m]==="("?c++:r[m]===")"&&c--,m++;if(c===0){let u=r.slice(i+s.length,m-1).trim();n+=r.slice(a,i);let h=u.match(/^\(?([a-zA-Z0-9_$]+)\)?\s*=>\s*([\s\S]+)$/);if(h){let f=h[1],b=h[2].replace(new RegExp(`\\b${f}\\b`,"g"),t);n+=`${t} = ${b}`}else n+=`${t} = ${u}`;a=m,i=r.indexOf(s,a)}else break}return n+=r.slice(a),n}function Pm(r){let e=r.match(/return\s*\(\s*(<[\s\S]+?>[\s\S]*?<\/[A-Za-z0-9_]+>|<[A-Za-z0-9_]+[^>]*\/>)\s*\);?/);if(e)return Mo(e[1].trim());let t=r.match(/return\s+(<[A-Za-z0-9_]+[\s\S]*?>[\s\S]*?<\/[A-Za-z0-9_]+>|<[A-Za-z0-9_]+[^>]*\/>);?/);return t?Mo(t[1].trim()):null}function na(r,e){let t=jm(r);if(t)return{success:!1,reason:t};let n=e.tag||Dt(e.name),a=Pm(r);if(!a)return{success:!1,reason:"Could not locate JSX return statement in React component."};let s="let { ...props } = $props();",i=r.match(/(?:function\s+[A-Za-z0-9_$]+\s*|\s*=\s*)\(\s*\{([^}]+)\}\s*(?::\s*[^)]+)?\)/);i&&(s=`let { ${i[1].split(",").map(A=>A.trim()).filter(Boolean).join(", ")} } = $props();`);let o=[],c=new Map,m=/const\s+\[([A-Za-z0-9_$]+),\s*([A-Za-z0-9_$]+)\]\s*=\s*useState\(/g,u=m.exec(r);for(;u!==null;){let x=u[1],A=u[2],M=u.index+u[0].length,E=1,T=M;for(;T<r.length&&E>0;)r[T]==="("?E++:r[T]===")"&&E--,T++;let D=E===0?r.slice(M,T-1).trim():"undefined";o.push(`let ${x} = $state(${D||"undefined"});`),c.set(A,x),u=m.exec(r)}let h=[],f=/useEffect\(\s*\(\)\s*=>\s*\{([\s\S]*?)\}\s*(?:,\s*\[[^\]]*\])?\);?/g,b=f.exec(r);for(;b!==null;){let x=b[1].trim();h.push(`$effect(() => {
260
+ ?)[ \r ]*`,ls="[\u0300-\u036F]",pm=new RegExp(ls+"+$"),hm="("+fo+"+)|"+(mm+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(ls+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(ls+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+um)+("|"+dm+")"),Un=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(hm,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new Ye("EOF",new Ge(this,t,t));var n=this.tokenRegex.exec(e);if(n===null||n.index!==t)throw new N("Unexpected character: '"+e[t]+"'",new Ye(e[t],new Ge(this,t,t+1)));var a=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[a]===14){var s=e.indexOf(`
261
+ `,this.tokenRegex.lastIndex);return s===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=s+1,this.lex()}return new Ye(a,new Ge(this,t,this.tokenRegex.lastIndex))}},cs=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new N("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(e[t]==null?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,n){if(n===void 0&&(n=!1),n){for(var a=0;a<this.undefStack.length;a++)delete this.undefStack[a][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(e)&&(s[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}},fm=no;v("\\noexpand",function(r){var e=r.popToken();return r.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});v("\\expandafter",function(r){var e=r.popToken();return r.expandOnce(!0),{tokens:[e],numArgs:0}});v("\\@firstoftwo",function(r){var e=r.consumeArgs(2);return{tokens:e[0],numArgs:0}});v("\\@secondoftwo",function(r){var e=r.consumeArgs(2);return{tokens:e[1],numArgs:0}});v("\\@ifnextchar",function(r){var e=r.consumeArgs(3);r.consumeSpaces();var t=r.future();return e[0].length===1&&e[0][0].text===t.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});v("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");v("\\TextOrMath",function(r){var e=r.consumeArgs(2);return r.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});x0={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};v("\\char",function(r){var e=r.popToken(),t,n=0;if(e.text==="'")t=8,e=r.popToken();else if(e.text==='"')t=16,e=r.popToken();else if(e.text==="`")if(e=r.popToken(),e.text[0]==="\\")n=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new N("\\char` missing argument");n=e.text.charCodeAt(0)}else t=10;if(t){if(n=x0[e.text],n==null||n>=t)throw new N("Invalid base-"+t+" digit "+e.text);for(var a;(a=x0[r.future().text])!=null&&a<t;)n*=t,n+=a,r.popToken()}return"\\@char{"+n+"}"});ks=(r,e,t,n)=>{var a=r.consumeArg().tokens;if(a.length!==1)throw new N("\\newcommand's first argument must be a macro name");var s=a[0].text,i=r.isDefined(s);if(i&&!e)throw new N("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!i&&!t)throw new N("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");var o=0;if(a=r.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var c="",m=r.expandNextToken();m.text!=="]"&&m.text!=="EOF";)c+=m.text,m=r.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new N("Invalid number of arguments: "+c);o=parseInt(c),a=r.consumeArg().tokens}return i&&n||r.macros.set(s,{tokens:a,numArgs:o}),""};v("\\newcommand",r=>ks(r,!1,!0,!1));v("\\renewcommand",r=>ks(r,!0,!1,!1));v("\\providecommand",r=>ks(r,!0,!0,!0));v("\\message",r=>{var e=r.consumeArgs(1)[0];return console.log(e.reverse().map(t=>t.text).join("")),""});v("\\errmessage",r=>{var e=r.consumeArgs(1)[0];return console.error(e.reverse().map(t=>t.text).join("")),""});v("\\show",r=>{var e=r.popToken(),t=e.text;return console.log(e,r.macros.get(t),qt[t],ve.math[t],ve.text[t]),""});v("\\bgroup","{");v("\\egroup","}");v("~","\\nobreakspace");v("\\lq","`");v("\\rq","'");v("\\aa","\\r a");v("\\AA","\\r A");v("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}");v("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");v("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}");v("\u212C","\\mathscr{B}");v("\u2130","\\mathscr{E}");v("\u2131","\\mathscr{F}");v("\u210B","\\mathscr{H}");v("\u2110","\\mathscr{I}");v("\u2112","\\mathscr{L}");v("\u2133","\\mathscr{M}");v("\u211B","\\mathscr{R}");v("\u212D","\\mathfrak{C}");v("\u210C","\\mathfrak{H}");v("\u2128","\\mathfrak{Z}");v("\\Bbbk","\\Bbb{k}");v("\\llap","\\mathllap{\\textrm{#1}}");v("\\rlap","\\mathrlap{\\textrm{#1}}");v("\\clap","\\mathclap{\\textrm{#1}}");v("\\mathstrut","\\vphantom{(}");v("\\underbar","\\underline{\\text{#1}}");v("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');v("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}");v("\\ne","\\neq");v("\u2260","\\neq");v("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}");v("\u2209","\\notin");v("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}");v("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}");v("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}");v("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}");v("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}");v("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}");v("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}");v("\u27C2","\\perp");v("\u203C","\\mathclose{!\\mkern-0.8mu!}");v("\u220C","\\notni");v("\u231C","\\ulcorner");v("\u231D","\\urcorner");v("\u231E","\\llcorner");v("\u231F","\\lrcorner");v("\xA9","\\copyright");v("\xAE","\\textregistered");v("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');v("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');v("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');v("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');v("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");v("\u22EE","\\vdots");v("\\varGamma","\\mathit{\\Gamma}");v("\\varDelta","\\mathit{\\Delta}");v("\\varTheta","\\mathit{\\Theta}");v("\\varLambda","\\mathit{\\Lambda}");v("\\varXi","\\mathit{\\Xi}");v("\\varPi","\\mathit{\\Pi}");v("\\varSigma","\\mathit{\\Sigma}");v("\\varUpsilon","\\mathit{\\Upsilon}");v("\\varPhi","\\mathit{\\Phi}");v("\\varPsi","\\mathit{\\Psi}");v("\\varOmega","\\mathit{\\Omega}");v("\\substack","\\begin{subarray}{c}#1\\end{subarray}");v("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");v("\\boxed","\\fbox{$\\displaystyle{#1}$}");v("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");v("\\implies","\\DOTSB\\;\\Longrightarrow\\;");v("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");v("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");v("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");k0={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},gm=new Set(["bin","rel"]);v("\\dots",function(r){var e="\\dotso",t=r.expandAfterFuture().text;return t in k0?e=k0[t]:(t.slice(0,4)==="\\not"||t in ve.math&&gm.has(ve.math[t].group))&&(e="\\dotsb"),e});Ss={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};v("\\dotso",function(r){var e=r.future().text;return e in Ss?"\\ldots\\,":"\\ldots"});v("\\dotsc",function(r){var e=r.future().text;return e in Ss&&e!==","?"\\ldots\\,":"\\ldots"});v("\\cdots",function(r){var e=r.future().text;return e in Ss?"\\@cdots\\,":"\\@cdots"});v("\\dotsb","\\cdots");v("\\dotsm","\\cdots");v("\\dotsi","\\!\\cdots");v("\\dotsx","\\ldots\\,");v("\\DOTSI","\\relax");v("\\DOTSB","\\relax");v("\\DOTSX","\\relax");v("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");v("\\,","\\tmspace+{3mu}{.1667em}");v("\\thinspace","\\,");v("\\>","\\mskip{4mu}");v("\\:","\\tmspace+{4mu}{.2222em}");v("\\medspace","\\:");v("\\;","\\tmspace+{5mu}{.2777em}");v("\\thickspace","\\;");v("\\!","\\tmspace-{3mu}{.1667em}");v("\\negthinspace","\\!");v("\\negmedspace","\\tmspace-{4mu}{.2222em}");v("\\negthickspace","\\tmspace-{5mu}{.277em}");v("\\enspace","\\kern.5em ");v("\\enskip","\\hskip.5em\\relax");v("\\quad","\\hskip1em\\relax");v("\\qquad","\\hskip2em\\relax");v("\\tag","\\@ifstar\\tag@literal\\tag@paren");v("\\tag@paren","\\tag@literal{({#1})}");v("\\tag@literal",r=>{if(r.macros.get("\\df@tag"))throw new N("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});v("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");v("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");v("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");v("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");v("\\newline","\\\\\\relax");v("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");go=j(ft["Main-Regular"][84][1]-.7*ft["Main-Regular"][65][1]);v("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+go+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");v("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+go+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");v("\\hspace","\\@ifstar\\@hspacer\\@hspace");v("\\@hspace","\\hskip #1\\relax");v("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");v("\\ordinarycolon",":");v("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");v("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');v("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');v("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');v("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');v("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');v("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');v("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');v("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');v("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');v("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');v("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');v("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');v("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');v("\u2237","\\dblcolon");v("\u2239","\\eqcolon");v("\u2254","\\coloneqq");v("\u2255","\\eqqcolon");v("\u2A74","\\Coloneqq");v("\\ratio","\\vcentcolon");v("\\coloncolon","\\dblcolon");v("\\colonequals","\\coloneqq");v("\\coloncolonequals","\\Coloneqq");v("\\equalscolon","\\eqqcolon");v("\\equalscoloncolon","\\Eqqcolon");v("\\colonminus","\\coloneq");v("\\coloncolonminus","\\Coloneq");v("\\minuscolon","\\eqcolon");v("\\minuscoloncolon","\\Eqcolon");v("\\coloncolonapprox","\\Colonapprox");v("\\coloncolonsim","\\Colonsim");v("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");v("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");v("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");v("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");v("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}");v("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");v("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");v("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");v("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");v("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");v("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");v("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");v("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");v("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}");v("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}");v("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}");v("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}");v("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}");v("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}");v("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}");v("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}");v("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}");v("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}");v("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}");v("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}");v("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}");v("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}");v("\\imath","\\html@mathml{\\@imath}{\u0131}");v("\\jmath","\\html@mathml{\\@jmath}{\u0237}");v("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}");v("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}");v("\u27E6","\\llbracket");v("\u27E7","\\rrbracket");v("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}");v("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}");v("\u2983","\\lBrace");v("\u2984","\\rBrace");v("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}");v("\u29B5","\\minuso");v("\\darr","\\downarrow");v("\\dArr","\\Downarrow");v("\\Darr","\\Downarrow");v("\\lang","\\langle");v("\\rang","\\rangle");v("\\uarr","\\uparrow");v("\\uArr","\\Uparrow");v("\\Uarr","\\Uparrow");v("\\N","\\mathbb{N}");v("\\R","\\mathbb{R}");v("\\Z","\\mathbb{Z}");v("\\alef","\\aleph");v("\\alefsym","\\aleph");v("\\Alpha","\\mathrm{A}");v("\\Beta","\\mathrm{B}");v("\\bull","\\bullet");v("\\Chi","\\mathrm{X}");v("\\clubs","\\clubsuit");v("\\cnums","\\mathbb{C}");v("\\Complex","\\mathbb{C}");v("\\Dagger","\\ddagger");v("\\diamonds","\\diamondsuit");v("\\empty","\\emptyset");v("\\Epsilon","\\mathrm{E}");v("\\Eta","\\mathrm{H}");v("\\exist","\\exists");v("\\harr","\\leftrightarrow");v("\\hArr","\\Leftrightarrow");v("\\Harr","\\Leftrightarrow");v("\\hearts","\\heartsuit");v("\\image","\\Im");v("\\infin","\\infty");v("\\Iota","\\mathrm{I}");v("\\isin","\\in");v("\\Kappa","\\mathrm{K}");v("\\larr","\\leftarrow");v("\\lArr","\\Leftarrow");v("\\Larr","\\Leftarrow");v("\\lrarr","\\leftrightarrow");v("\\lrArr","\\Leftrightarrow");v("\\Lrarr","\\Leftrightarrow");v("\\Mu","\\mathrm{M}");v("\\natnums","\\mathbb{N}");v("\\Nu","\\mathrm{N}");v("\\Omicron","\\mathrm{O}");v("\\plusmn","\\pm");v("\\rarr","\\rightarrow");v("\\rArr","\\Rightarrow");v("\\Rarr","\\Rightarrow");v("\\real","\\Re");v("\\reals","\\mathbb{R}");v("\\Reals","\\mathbb{R}");v("\\Rho","\\mathrm{P}");v("\\sdot","\\cdot");v("\\sect","\\S");v("\\spades","\\spadesuit");v("\\sub","\\subset");v("\\sube","\\subseteq");v("\\supe","\\supseteq");v("\\Tau","\\mathrm{T}");v("\\thetasym","\\vartheta");v("\\weierp","\\wp");v("\\Zeta","\\mathrm{Z}");v("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");v("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");v("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");v("\\bra","\\mathinner{\\langle{#1}|}");v("\\ket","\\mathinner{|{#1}\\rangle}");v("\\braket","\\mathinner{\\langle{#1}\\rangle}");v("\\Bra","\\left\\langle#1\\right|");v("\\Ket","\\left|#1\\right\\rangle");vo=r=>e=>{var t=e.consumeArg().tokens,n=e.consumeArg().tokens,a=e.consumeArg().tokens,s=e.consumeArg().tokens,i=e.macros.get("|"),o=e.macros.get("\\|");e.macros.beginGroup();var c=h=>f=>{r&&(f.macros.set("|",i),a.length&&f.macros.set("\\|",o));var b=h;if(!h&&a.length){var w=f.future();w.text==="|"&&(f.popToken(),b=!0)}return{tokens:b?a:n,numArgs:0}};e.macros.set("|",c(!1)),a.length&&e.macros.set("\\|",c(!0));var m=e.consumeArg().tokens,u=e.expandTokens([...s,...m,...t]);return e.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};v("\\bra@ket",vo(!1));v("\\bra@set",vo(!0));v("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");v("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");v("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");v("\\angln","{\\angl n}");v("\\blue","\\textcolor{##6495ed}{#1}");v("\\orange","\\textcolor{##ffa500}{#1}");v("\\pink","\\textcolor{##ff00af}{#1}");v("\\red","\\textcolor{##df0030}{#1}");v("\\green","\\textcolor{##28ae7b}{#1}");v("\\gray","\\textcolor{gray}{#1}");v("\\purple","\\textcolor{##9d38bd}{#1}");v("\\blueA","\\textcolor{##ccfaff}{#1}");v("\\blueB","\\textcolor{##80f6ff}{#1}");v("\\blueC","\\textcolor{##63d9ea}{#1}");v("\\blueD","\\textcolor{##11accd}{#1}");v("\\blueE","\\textcolor{##0c7f99}{#1}");v("\\tealA","\\textcolor{##94fff5}{#1}");v("\\tealB","\\textcolor{##26edd5}{#1}");v("\\tealC","\\textcolor{##01d1c1}{#1}");v("\\tealD","\\textcolor{##01a995}{#1}");v("\\tealE","\\textcolor{##208170}{#1}");v("\\greenA","\\textcolor{##b6ffb0}{#1}");v("\\greenB","\\textcolor{##8af281}{#1}");v("\\greenC","\\textcolor{##74cf70}{#1}");v("\\greenD","\\textcolor{##1fab54}{#1}");v("\\greenE","\\textcolor{##0d923f}{#1}");v("\\goldA","\\textcolor{##ffd0a9}{#1}");v("\\goldB","\\textcolor{##ffbb71}{#1}");v("\\goldC","\\textcolor{##ff9c39}{#1}");v("\\goldD","\\textcolor{##e07d10}{#1}");v("\\goldE","\\textcolor{##a75a05}{#1}");v("\\redA","\\textcolor{##fca9a9}{#1}");v("\\redB","\\textcolor{##ff8482}{#1}");v("\\redC","\\textcolor{##f9685d}{#1}");v("\\redD","\\textcolor{##e84d39}{#1}");v("\\redE","\\textcolor{##bc2612}{#1}");v("\\maroonA","\\textcolor{##ffbde0}{#1}");v("\\maroonB","\\textcolor{##ff92c6}{#1}");v("\\maroonC","\\textcolor{##ed5fa6}{#1}");v("\\maroonD","\\textcolor{##ca337c}{#1}");v("\\maroonE","\\textcolor{##9e034e}{#1}");v("\\purpleA","\\textcolor{##ddd7ff}{#1}");v("\\purpleB","\\textcolor{##c6b9fc}{#1}");v("\\purpleC","\\textcolor{##aa87ff}{#1}");v("\\purpleD","\\textcolor{##7854ab}{#1}");v("\\purpleE","\\textcolor{##543b78}{#1}");v("\\mintA","\\textcolor{##f5f9e8}{#1}");v("\\mintB","\\textcolor{##edf2df}{#1}");v("\\mintC","\\textcolor{##e0e5cc}{#1}");v("\\grayA","\\textcolor{##f6f7f7}{#1}");v("\\grayB","\\textcolor{##f0f1f2}{#1}");v("\\grayC","\\textcolor{##e3e5e6}{#1}");v("\\grayD","\\textcolor{##d6d8da}{#1}");v("\\grayE","\\textcolor{##babec2}{#1}");v("\\grayF","\\textcolor{##888d93}{#1}");v("\\grayG","\\textcolor{##626569}{#1}");v("\\grayH","\\textcolor{##3b3e40}{#1}");v("\\grayI","\\textcolor{##21242c}{#1}");v("\\kaBlue","\\textcolor{##314453}{#1}");v("\\kaGreen","\\textcolor{##71B307}{#1}");bo={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},ds=class{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new cs(fm,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new Un(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,a;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;t=this.popToken(),{tokens:a,end:n}=this.consumeArg(["]"])}else({tokens:a,start:t,end:n}=this.consumeArg());return this.pushToken(new Ye("EOF",n.loc)),this.pushTokens(a),new Ye("",Ge.range(t,n))}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var a=this.future(),s,i=0,o=0;do{if(s=this.popToken(),t.push(s),s.text==="{")++i;else if(s.text==="}"){if(--i,i===-1)throw new N("Extra }",s)}else if(s.text==="EOF")throw new N("Unexpected end of input in a macro argument, expected '"+(e&&n?e[o]:"}")+"'",s);if(e&&n)if((i===0||i===1&&e[o]==="{")&&s.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}while(i!==0||n);return a.text==="{"&&t[t.length-1].text==="}"&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:a,end:s}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new N("The length of delimiters doesn't match the number of args!");for(var n=t[0],a=0;a<n.length;a++){var s=this.popToken();if(n[a]!==s.text)throw new N("Use of the macro doesn't match its definition",s)}}for(var i=[],o=0;o<e;o++)i.push(this.consumeArg(t&&t[o+1]).tokens);return i}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new N("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),n=t.text,a=t.noexpand?null:this._getExpansion(n);if(a==null||e&&a.unexpandable){if(e&&a==null&&n[0]==="\\"&&!this.isDefined(n))throw new N("Undefined control sequence: "+n);return this.pushToken(t),!1}this.countExpansion(1);var s=a.tokens,i=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){s=s.slice();for(var o=s.length-1;o>=0;--o){var c=s[o];if(c.text==="#"){if(o===0)throw new N("Incomplete placeholder at end of macro body",c);if(c=s[--o],c.text==="#")s.splice(o+1,1);else if(/^[1-9]$/.test(c.text))s.splice(o,2,...i[+c.text-1]);else throw new N("Not a valid argument number",c)}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new Ye(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),t.push(a)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(n=>n.text).join("")}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var a=typeof t=="function"?t(this):t;if(typeof a=="string"){var s=0;if(a.includes("#"))for(var i=a.replace(/##/g,"");i.includes("#"+(s+1));)++s;for(var o=new Un(a,this.settings),c=[],m=o.lex();m.text!=="EOF";)c.push(m),m=o.lex();c.reverse();var u={tokens:c,numArgs:s};return u}return a}isDefined(e){return this.macros.has(e)||qt.hasOwnProperty(e)||ve.math.hasOwnProperty(e)||ve.text.hasOwnProperty(e)||bo.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t!=null?typeof t=="string"||typeof t=="function"||!t.unexpandable:qt.hasOwnProperty(e)&&!qt[e].primitive}},S0=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,On=Object.freeze({"\u208A":"+","\u208B":"-","\u208C":"=","\u208D":"(","\u208E":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1D62":"i","\u2C7C":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209A":"p","\u1D63":"r","\u209B":"s","\u209C":"t","\u1D64":"u","\u1D65":"v","\u2093":"x","\u1D66":"\u03B2","\u1D67":"\u03B3","\u1D68":"\u03C1","\u1D69":"\u03D5","\u1D6A":"\u03C7","\u207A":"+","\u207B":"-","\u207C":"=","\u207D":"(","\u207E":")","\u2070":"0","\xB9":"1","\xB2":"2","\xB3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1D2C":"A","\u1D2E":"B","\u1D30":"D","\u1D31":"E","\u1D33":"G","\u1D34":"H","\u1D35":"I","\u1D36":"J","\u1D37":"K","\u1D38":"L","\u1D39":"M","\u1D3A":"N","\u1D3C":"O","\u1D3E":"P","\u1D3F":"R","\u1D40":"T","\u1D41":"U","\u2C7D":"V","\u1D42":"W","\u1D43":"a","\u1D47":"b","\u1D9C":"c","\u1D48":"d","\u1D49":"e","\u1DA0":"f","\u1D4D":"g",\u02B0:"h","\u2071":"i",\u02B2:"j","\u1D4F":"k",\u02E1:"l","\u1D50":"m",\u207F:"n","\u1D52":"o","\u1D56":"p",\u02B3:"r",\u02E2:"s","\u1D57":"t","\u1D58":"u","\u1D5B":"v",\u02B7:"w",\u02E3:"x",\u02B8:"y","\u1DBB":"z","\u1D5D":"\u03B2","\u1D5E":"\u03B3","\u1D5F":"\u03B4","\u1D60":"\u03D5","\u1D61":"\u03C7","\u1DBF":"\u03B8"}),qa={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"},"\u0327":{text:"\\c"}},A0={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u1E09:"c\u0327\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u00E7:"c\u0327",\u010F:"d\u030C",\u1E0B:"d\u0307",\u1E11:"d\u0327",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u1E1D:"e\u0327\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u0229:"e\u0327",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u0123:"g\u0327",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u1E29:"h\u0327",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u0137:"k\u0327",\u013A:"l\u0301",\u013E:"l\u030C",\u013C:"l\u0327",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u0146:"n\u0327",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u0157:"r\u0327",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u015F:"s\u0327",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u0163:"t\u0327",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u1E08:"C\u0327\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u00C7:"C\u0327",\u010E:"D\u030C",\u1E0A:"D\u0307",\u1E10:"D\u0327",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u1E1C:"E\u0327\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u0228:"E\u0327",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u0122:"G\u0327",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u1E28:"H\u0327",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0136:"K\u0327",\u0139:"L\u0301",\u013D:"L\u030C",\u013B:"L\u0327",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u0145:"N\u0327",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u0156:"R\u0327",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u015E:"S\u0327",\u0164:"T\u030C",\u1E6A:"T\u0307",\u0162:"T\u0327",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},Gn=class r{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new ds(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new N("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new Ye("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,n}parseExpression(e,t){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var a=this.fetch();if(r.endOfExpression.has(a.text)||t&&a.text===t||e&&qt[a.text]&&qt[a.text].infix)break;var s=this.parseAtom(t);if(s){if(s.type==="internal")continue}else break;n.push(s)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var t=-1,n,a=0;a<e.length;a++){var s=e[a];if(s.type==="infix"){if(t!==-1)throw new N("only one infix operator per group",s.token);t=a,n=s.replaceWith}}if(t!==-1&&n){var i,o,c=e.slice(0,t),m=e.slice(t+1);c.length===1&&c[0].type==="ordgroup"?i=c[0]:i={type:"ordgroup",mode:this.mode,body:c},m.length===1&&m[0].type==="ordgroup"?o=m[0]:o={type:"ordgroup",mode:this.mode,body:m};var u;return n==="\\\\abovefrac"?u=this.callFunction(n,[i,e[t],o],[]):u=this.callFunction(n,[i,o],[]),[u]}else return e}handleSupSubscript(e){var t=this.fetch(),n=t.text;this.consume(),this.consumeSpaces();var a;do{var s;a=this.parseGroup(e)}while(((s=a)==null?void 0:s.type)==="internal");if(!a)throw new N("Expected group after '"+n+"'",t);return a}formatUnsupportedCmd(e){for(var t=[],n=0;n<e.length;n++)t.push({type:"textord",mode:"text",text:e[n]});var a={type:"text",mode:this.mode,body:t},s={type:"color",mode:this.mode,color:this.settings.errorColor,body:[a]};return s}parseAtom(e){var t=this.parseGroup("atom",e);if(t?.type==="internal"||this.mode==="text")return t;for(var n,a;;){this.consumeSpaces();var s=this.fetch();if(s.text==="\\limits"||s.text==="\\nolimits"){if(t&&t.type==="op"){var i=s.text==="\\limits";t.limits=i,t.alwaysHandleSupSub=!0}else if(t&&t.type==="operatorname")t.alwaysHandleSupSub&&(t.limits=s.text==="\\limits");else throw new N("Limit controls must follow a math operator",s);this.consume()}else if(s.text==="^"){if(n)throw new N("Double superscript",s);n=this.handleSupSubscript("superscript")}else if(s.text==="_"){if(a)throw new N("Double subscript",s);a=this.handleSupSubscript("subscript")}else if(s.text==="'"){if(n)throw new N("Double superscript",s);var o={type:"textord",mode:this.mode,text:"\\prime"},c=[o];for(this.consume();this.fetch().text==="'";)c.push(o),this.consume();this.fetch().text==="^"&&c.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:c}}else if(On[s.text]){var m=S0.test(s.text),u=[];for(u.push(new Ye(On[s.text])),this.consume();;){var h=this.fetch().text;if(!On[h]||S0.test(h)!==m)break;u.unshift(new Ye(On[h])),this.consume()}var f=this.subparse(u);m?a={type:"ordgroup",mode:"math",body:f}:n={type:"ordgroup",mode:"math",body:f}}else break}return n||a?{type:"supsub",mode:this.mode,base:t,sup:n,sub:a}:t}parseFunction(e,t){var n=this.fetch(),a=n.text,s=qt[a];if(!s)return null;if(this.consume(),t&&t!=="atom"&&!s.allowedInArgument)throw new N("Got function '"+a+"' with no arguments"+(t?" as "+t:""),n);if(this.mode==="text"&&!s.allowedInText)throw new N("Can't use function '"+a+"' in text mode",n);if(this.mode==="math"&&s.allowedInMath===!1)throw new N("Can't use function '"+a+"' in math mode",n);var{args:i,optArgs:o}=this.parseArguments(a,s);return this.callFunction(a,i,o,n,e)}callFunction(e,t,n,a,s){var i={funcName:e,parser:this,token:a,breakOnTokenText:s},o=qt[e];if(o&&o.handler)return o.handler(i,t,n);throw new N("No function handler for "+e)}parseArguments(e,t){var n=t.numArgs+t.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var a=[],s=[],i=0;i<n;i++){var o=t.argTypes&&t.argTypes[i],c=i<t.numOptionalArgs;("primitive"in t&&t.primitive&&o==null||t.type==="sqrt"&&i===1&&s[0]==null)&&(o="primitive");var m=this.parseGroupOfType("argument to '"+e+"'",o,c);if(c)s.push(m);else if(m!=null)a.push(m);else throw new N("Null argument, please report this as a bug")}return{args:a,optArgs:s}}parseGroupOfType(e,t,n){switch(t){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,t);case"hbox":{var a=this.parseArgumentGroup(n,"text");return a!=null?{type:"styling",mode:a.mode,body:[a],style:"text",resetFont:!0}:null}case"raw":{var s=this.parseStringGroup("raw",n);return s!=null?{type:"raw",mode:"text",string:s.text}:null}case"primitive":{if(n)throw new N("A primitive argument cannot be optional");var i=this.parseGroup(e);if(i==null)throw new N("Expected group as "+e,this.fetch());return i}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new N("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(e,t){var n=this.gullet.scanArgument(t);if(n==null)return null;for(var a="",s;(s=this.fetch()).text!=="EOF";)a+=s.text,this.consume();return this.consume(),n.text=a,n}parseRegexGroup(e,t){for(var n=this.fetch(),a=n,s="",i;(i=this.fetch()).text!=="EOF"&&e.test(s+i.text);)a=i,s+=a.text,this.consume();if(s==="")throw new N("Invalid "+t+": '"+n.text+"'",n);return n.range(a,s)}parseColorGroup(e){var t=this.parseStringGroup("color",e);if(t==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new N("Invalid color: '"+t.text+"'",t);var a=n[0];return/^[0-9a-f]{6}$/i.test(a)&&(a="#"+a),{type:"color-token",mode:this.mode,color:a}}parseSizeGroup(e){var t,n=!1;if(this.gullet.consumeSpaces(),!e&&this.gullet.future().text!=="{"?t=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):t=this.parseStringGroup("size",e),!t)return null;!e&&t.text.length===0&&(t.text="0pt",n=!0);var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!a)throw new N("Invalid size: '"+t.text+"'",t);var s={number:+(a[1]+a[2]),unit:a[3]};if(!T0(s))throw new N("Invalid unit: '"+s.unit+"'",t);return{type:"size",mode:this.mode,value:s,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),t==null)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(e,t){var n=this.gullet.scanArgument(e);if(n==null)return null;var a=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var s=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var i={type:"ordgroup",mode:this.mode,loc:n.loc,body:s};return t&&this.switchMode(a),i}parseGroup(e,t){var n=this.fetch(),a=n.text,s;if(a==="{"||a==="\\begingroup"){this.consume();var i=a==="{"?"}":"\\endgroup";this.gullet.beginGroup();var o=this.parseExpression(!1,i),c=this.fetch();this.expect(i),this.gullet.endGroup(),s={type:"ordgroup",mode:this.mode,loc:Ge.range(n,c),body:o,semisimple:a==="\\begingroup"||void 0}}else if(s=this.parseFunction(t,e)||this.parseSymbol(),s==null&&a[0]==="\\"&&!bo.hasOwnProperty(a)){if(this.settings.throwOnError)throw new N("Undefined control sequence: "+a,n);s=this.formatUnsupportedCmd(a),this.consume()}return s}formLigatures(e){for(var t=e.length-1,n=0;n<t;++n){var a=e[n];if(a.type==="textord"){var s=a.text,i=e[n+1];if(!(!i||i.type!=="textord")){if(s==="-"&&i.text==="-"){var o=e[n+2];n+1<t&&o&&o.type==="textord"&&o.text==="-"?(e.splice(n,3,{type:"textord",mode:"text",loc:Ge.range(a,o),text:"---"}),t-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:Ge.range(a,i),text:"--"}),t-=1)}(s==="'"||s==="`")&&i.text===s&&(e.splice(n,2,{type:"textord",mode:"text",loc:Ge.range(a,i),text:s+s}),t-=1)}}}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),a=n.charAt(0)==="*";if(a&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new N(`\\verb assertion failed --
262
+ please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:a}}A0.hasOwnProperty(t[0])&&!ve[this.mode][t[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=A0[t[0]]+t.slice(1));var s=pm.exec(t);s&&(t=t.substring(0,s.index),t==="i"?t="\u0131":t==="j"&&(t="\u0237"));var i;if(ve[this.mode][t]){this.settings.strict&&this.mode==="math"&&Za.includes(t)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var o=ve[this.mode][t].group,c=Ge.range(e),m;Ou(o)?m={type:"atom",mode:this.mode,family:o,loc:c,text:t}:m={type:o,mode:this.mode,loc:c,text:t},i=m}else if(t.charCodeAt(0)>=128)this.settings.strict&&(D0(t.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'"'+(" ("+t.charCodeAt(0)+")"),e)),i={type:"textord",mode:"text",loc:Ge.range(e),text:t};else return null;if(this.consume(),s)for(var u=0;u<s[0].length;u++){var h=s[0][u];if(!qa[h])throw new N("Unknown accent ' "+h+"'",e);var f=qa[h][this.mode]||qa[h].text;if(!f)throw new N("Accent "+h+" unsupported in "+this.mode+" mode",e);i={type:"accent",mode:this.mode,loc:Ge.range(e),label:f,isStretchy:!1,isShifty:!0,base:i}}return i}};Gn.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);As=function(e,t){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new Gn(e,t);delete n.gullet.macros.current["\\df@tag"];var a=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new N("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:n.subparse([new Ye("\\df@tag")])}]}return a},yo=function(e,t,n){t.textContent="";var a=Ds(e,n).toNode();t.appendChild(a)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),yo=function(){throw new N("KaTeX doesn't work in quirks mode.")});vm=function(e,t){var n=Ds(e,t).toMarkup();return n},bm=function(e,t){var n=new Hr(t);return As(e,n)},wo=function(e,t,n){if(n.throwOnError||!(e instanceof N))throw e;var a=I(["katex-error"],[new Pe(t)]);return a.setAttribute("title",e.toString()),a.setAttribute("style","color:"+n.errorColor),a},Ds=function(e,t){var n=new Hr(t);try{var a=As(e,n);return Tu(a,e,n)}catch(s){return wo(s,e,n)}},ym=function(e,t){var n=new Hr(t);try{var a=As(e,n);return Cu(a,e,n)}catch(s){return wo(s,e,n)}},wm="0.16.47",xm={Span:Wt,Anchor:wr,SymbolNode:Pe,SvgNode:lt,PathNode:gt,LineNode:Ur},Ts={version:wm,render:yo,renderToString:vm,ParseError:N,SETTINGS_SCHEMA:Ua,__parse:bm,__renderToDomTree:Ds,__renderToHTMLTree:ym,__setFontMetrics:ou,__defineSymbol:l,__defineFunction:P,__defineMacro:v,__domTree:xm}});function Nm(r){return/\buseContext\b/.test(r)?"Component uses React useContext":/\buseReducer\b/.test(r)?"Component uses React useReducer":/\bcreatePortal\b/.test(r)?"Component uses React createPortal":/\buseImperativeHandle\b/.test(r)?"Component uses useImperativeHandle":/from\s+['"]@reduxjs|from\s+['"]zustand|from\s+['"]@tanstack\/react-query/i.test(r)?"Component imports external React state manager":null}function jm(r){return r.replace(/style=\{\{([^}]+)\}\}/g,(e,t)=>{let n=t.split(","),a=[];for(let s of n){let i=s.indexOf(":");if(i===-1)continue;let o=s.slice(0,i).trim(),c=s.slice(i+1).trim();o=o.replace(/([A-Z])/g,"-$1").toLowerCase(),c=c.replace(/^['"]|['"]$/g,""),o&&c&&a.push(`${o}:${c}`)}return`style="${a.join(";")}"`})}function Mo(r){let e=r;return e=jm(e),e=e.replace(/\bclassName=/g,"class="),e=e.replace(/\bon([A-Z][a-zA-Z0-9_]*)=/g,(t,n)=>`on${n.toLowerCase()}=`),e=e.replace(/<>\s*/g,"<div>"),e=e.replace(/\s*<\/>/g,"</div>"),e}function Lm(r,e,t){let n="",a=0,s=`${e}(`,i=r.indexOf(s,a);for(;i!==-1;){let o=i>0?r[i-1]:"";if(/[a-zA-Z0-9_$]/.test(o)){n+=r.slice(a,i+s.length),a=i+s.length,i=r.indexOf(s,a);continue}let c=1,m=i+s.length;for(;m<r.length&&c>0;)r[m]==="("?c++:r[m]===")"&&c--,m++;if(c===0){let u=r.slice(i+s.length,m-1).trim();n+=r.slice(a,i);let h=u.match(/^\(?([a-zA-Z0-9_$]+)\)?\s*=>\s*([\s\S]+)$/);if(h){let f=h[1],b=h[2].replace(new RegExp(`\\b${f}\\b`,"g"),t);n+=`${t} = ${b}`}else n+=`${t} = ${u}`;a=m,i=r.indexOf(s,a)}else break}return n+=r.slice(a),n}function Bm(r){let e=r.match(/return\s*\(\s*(<[\s\S]+?>[\s\S]*?<\/[A-Za-z0-9_]+>|<[A-Za-z0-9_]+[^>]*\/>)\s*\);?/);if(e)return Mo(e[1].trim());let t=r.match(/return\s+(<[A-Za-z0-9_]+[\s\S]*?>[\s\S]*?<\/[A-Za-z0-9_]+>|<[A-Za-z0-9_]+[^>]*\/>);?/);return t?Mo(t[1].trim()):null}function na(r,e){let t=Nm(r);if(t)return{success:!1,reason:t};let n=e.tag||Dt(e.name),a=Bm(r);if(!a)return{success:!1,reason:"Could not locate JSX return statement in React component."};let s="let { ...props } = $props();",i=r.match(/(?:function\s+[A-Za-z0-9_$]+\s*|\s*=\s*)\(\s*\{([^}]+)\}\s*(?::\s*[^)]+)?\)/);i&&(s=`let { ${i[1].split(",").map(A=>A.trim()).filter(Boolean).join(", ")} } = $props();`);let o=[],c=new Map,m=/const\s+\[([A-Za-z0-9_$]+),\s*([A-Za-z0-9_$]+)\]\s*=\s*useState\(/g,u=m.exec(r);for(;u!==null;){let x=u[1],A=u[2],M=u.index+u[0].length,E=1,T=M;for(;T<r.length&&E>0;)r[T]==="("?E++:r[T]===")"&&E--,T++;let D=E===0?r.slice(M,T-1).trim():"undefined";o.push(`let ${x} = $state(${D||"undefined"});`),c.set(A,x),u=m.exec(r)}let h=[],f=/useEffect\(\s*\(\)\s*=>\s*\{([\s\S]*?)\}\s*(?:,\s*\[[^\]]*\])?\);?/g,b=f.exec(r);for(;b!==null;){let x=b[1].trim();h.push(`$effect(() => {
263
263
  ${x}
264
- });`),b=f.exec(r)}let w=a;for(let[x,A]of c.entries())w=Bm(w,x,A);let g=[s,...o,...h].filter(Boolean).join(`
264
+ });`),b=f.exec(r)}let w=a;for(let[x,A]of c.entries())w=Lm(w,x,A);let g=[s,...o,...h].filter(Boolean).join(`
265
265
  `);return{success:!0,svelteSource:`<svelte:options customElement={{ tag: "${n}" }} />
266
266
 
267
267
  <script>
@@ -276,17 +276,17 @@ ${w}
276
276
  }
277
277
  </style>
278
278
  `}}var Cs=Ze(()=>{"use strict";hn()});function Tr(r){let e=r.replace(/\.(md|mdx|html)$/i,"");return e=e.replace(/^\d+[-_.]/,""),e.toLowerCase()==="readme"||e.toLowerCase()==="index"?"Overview":e.split(/[-_]+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ")}function $o(r,e={},t){if(t&&t.length>0)return Ro(t);let n=[],a=new Map;for(let s of r){let i=s.replace(/^\.?\//,""),o=i.split("/"),c=e[i]||{};if(!c.hidden)if(o.length===1){let m=o[0],u=m.replace(/\.(md|mdx)$/i,""),h=u.toLowerCase()==="readme"||u.toLowerCase()==="index";n.push({id:u,title:c.title||c.sidebar_label||(h?"Overview":Tr(m)),slug:h?"README":u,path:i,icon:c.icon,badge:c.badge,badgeType:c.badge_type,order:c.order??c.sidebar_position??(h?-999:0),isCategory:!1})}else{let m="",u=n;for(let w=0;w<o.length-1;w++){let g=o[w];m=m?`${m}/${g}`:g;let y=a.get(m);y||(y={id:m,title:Tr(g),order:10,isCategory:!0,collapsed:!1,children:[]},a.set(m,y),u.push(y)),u=y.children}let h=o[o.length-1],f=i.replace(/\.(md|mdx)$/i,""),b=h.replace(/\.(md|mdx)$/i,"").toLowerCase()==="readme"||h.replace(/\.(md|mdx)$/i,"").toLowerCase()==="index";u.push({id:f,title:c.title||c.sidebar_label||(b?"Overview":Tr(h)),slug:f,path:i,icon:c.icon,badge:c.badge,badgeType:c.badge_type,order:c.order??c.sidebar_position??(b?-100:0),isCategory:!1})}}return Eo(n),n}function Eo(r){r.sort((e,t)=>e.order!==t.order?e.order-t.order:e.slug==="README"?-1:t.slug==="README"?1:e.title.localeCompare(t.title));for(let e of r)e.children&&e.children.length>0&&Eo(e.children)}function Ro(r){return r.map((e,t)=>{let n=!!(e.children&&e.children.length>0),a=e.slug||(e.path?e.path.replace(/\.(md|mdx)$/i,""):`item-${t}`);return{id:a,title:e.title||Tr(a),slug:n?void 0:a,path:e.path,icon:e.icon,badge:e.badge,badgeType:e.badgeType,order:t,isCategory:n,collapsed:e.collapsed??!1,children:e.children?Ro(e.children):void 0}})}var zo=Ze(()=>{"use strict"});function Ms(r){let e=[],t=r.split(`
279
- `);for(let n of t){let a=n.match(/^(#{1,4})\s+(.+)$/);if(a){let s=a[1].length,i=a[2].trim(),o=An(i),c=i.replace(/[#*`_]/g,"").toLowerCase().replace(/[^\w\s-]/g,"").trim().replace(/[\s_-]+/g,"-");e.push({level:s,text:o,id:c})}}return e}function ct(r,e=r,t=["node_modules",".git",".dmd","dist","bin","SKILL.md"],n=!0,a=new Set){let s=[];if(!wt.default.existsSync(r))return s;try{let o=wt.default.realpathSync(r);if(a.has(o))return s;a.add(o)}catch{}let i=wt.default.readdirSync(r,{withFileTypes:!0});for(let o of i){if(t.includes(o.name)||o.name.startsWith("."))continue;let c=Ft.default.join(r,o.name),m=Ft.default.relative(e,c).replace(/\\/g,"/"),u=o.isDirectory(),h=o.isFile();if(o.isSymbolicLink())try{let f=wt.default.statSync(c);u=f.isDirectory(),h=f.isFile()}catch{continue}u?n&&c!==e&&wt.default.existsSync(Ft.default.join(c,"docs.json"))||s.push(...ct(c,e,t,n,a)):h&&/\.(md|mdx)$/i.test(o.name)&&s.push(m)}return s}function Jr(r,e){let t=ct(r),n=[],a={};for(let u of t){let h=Ft.default.join(r,u),f=wt.default.readFileSync(h,"utf-8"),{data:b,content:w}=(0,Fo.default)(f),g=u.replace(/\.(md|mdx)$/i,""),x=g.toLowerCase()==="readme"||g.toLowerCase()==="index"?"README":g,A=b.title||b.sidebar_label||Tr(Ft.default.basename(u));a[u]=b;let M=Ms(w),E=w.trim().split(/\s+/).length,T=Math.max(1,Math.ceil(E/200));n.push({slug:x,path:u,title:A,category:u.includes("/")?u.substring(0,u.lastIndexOf("/")):void 0,frontmatter:b,headings:M,content:w,readingTimeMinutes:T,lastModified:wt.default.statSync(h).mtime.toISOString()})}let s=$o(t,a,e.sidebar),i=Ft.default.join(r,".dmd"),o=[".svelte",".tsx",".jsx",".ts",".js"],c=["setup.js","setup.mjs","setup.ts","languages.js","languages.ts","components.js","index.js"],m=wt.default.existsSync(i)?wt.default.readdirSync(i).filter(u=>u.startsWith(".")||c.includes(u)||u.endsWith(".d.ts")?!1:o.some(h=>u.endsWith(h))).map(u=>{let h=Ft.default.extname(u);return Ft.default.basename(u,h)}):[];return{version:mr.version,generatedAt:new Date().toISOString(),config:e,docs:n,tree:s,customComponents:m.length>0?m:void 0}}var wt,Ft,Fo,Kr=Ze(()=>{"use strict";wt=J(require("fs")),Ft=J(require("path")),Fo=J(require("gray-matter"));ln();zo();$a()});var pl={};la(pl,{createMcpServer:()=>Bs,loadBuiltSite:()=>ll,loadOrCreateToolkit:()=>cl,mcpCommand:()=>e1,registerDocTools:()=>ul,searchDocs:()=>dl,startMcpSseServer:()=>ml});function Xm(r){let e=r.match(/window\.__DOCMEDOWN_DATA__\s*=\s*([\s\S]*?);\s*$/m);if(!e)return null;try{let t=JSON.parse(e[1]);return t.docs&&typeof t.docs=="object"?t.docs:null}catch{return null}}function ll(r){let e=dr.default.join(r,"_manifest.json"),t=dr.default.join(r,"_docs.js");if(!ut.default.existsSync(e))return null;try{let n=JSON.parse(ut.default.readFileSync(e,"utf-8")),a={};return ut.default.existsSync(t)&&(a=Xm(ut.default.readFileSync(t,"utf-8"))??{}),{manifest:n,docs:a}}catch{return null}}function cl(r){let e=ll(r);if(e)return e;if(!ut.default.existsSync(r))return null;try{let t=Ue(),n=dr.default.join(r,"docs.json"),a=dr.default.join(r,"dmd.json");ut.default.existsSync(n)?t=Ue(Lt(ut.default.readFileSync(n,"utf-8"),n)):ut.default.existsSync(a)&&(t=Ue(Lt(ut.default.readFileSync(a,"utf-8"),a)));let s=ct(r);if(s.length===0)return null;let i=Jr(r,t),o={};for(let c of s){let m=dr.default.join(r,c),u=ut.default.readFileSync(m,"utf-8"),h=c.replace(/\.(md|mdx)$/i,""),f=h.toLowerCase()==="readme"||h.toLowerCase()==="index"?"README":h;o[f]=u,o[c]=u}return{manifest:i,docs:o}}catch{return null}}function Ym(r){return r.toLowerCase().split(/\s+/).filter(e=>e.length>1)}function Ls(r,e){if(!r)return 0;let t=0,n=r.indexOf(e);for(;n!==-1&&t<50;)t++,n=r.indexOf(e,n+e.length);return t}function Jm(r,e){let n=(r.content||"").replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n?/,"").split(`
280
- `);for(let s of e)for(let i of n)if(i.toLowerCase().includes(s)){let o=i.replace(/^[#>\-*\s`]+/,"").trim();if(o)return o.length>200?`${o.slice(0,200)}\u2026`:o}return(n.find(s=>s.trim()&&!s.startsWith("#"))||"").trim().slice(0,200)}function dl(r,e,t=10){let n=Ym(e);return n.length===0?[]:r.manifest.docs.filter(s=>s.frontmatter?.hidden!==!0).map(s=>{let i=s.title.toLowerCase(),o=s.headings.map(u=>`${u.text} ${u.id}`).join(" ").toLowerCase(),c=(s.content||"").toLowerCase(),m=0;for(let u of n)m+=Ls(i,u)*5,m+=Ls(o,u)*3,m+=Math.min(Ls(c,u),20);return{slug:s.slug,title:s.title,snippet:Jm(s,n),score:m}}).filter(s=>s.score>0).sort((s,i)=>i.score-s.score).slice(0,Math.max(1,Math.min(t,25)))}function nl(r,e){let t=e.replace(/^\.?\//,"").replace(/\.(md|mdx)$/i,"");return r.manifest.docs.find(n=>n.slug.toLowerCase()===t.toLowerCase()||n.path.replace(/\.(md|mdx)$/i,"").toLowerCase()===t.toLowerCase())}function Bs(r){let e=new sl.McpServer({name:"docmedown",version:mr.version});return ul(e,r),e}function Km(r){return r?Array.isArray(r)?r:r.split(",").map(e=>e.trim()).filter(Boolean):["*"]}function Qm(r,e,t){let n=r.headers.origin,a="*";t.length>0&&(t.includes("*")?a="*":n&&t.includes(n)?a=n:a=t[0]),e.setHeader("Access-Control-Allow-Origin",a),e.setHeader("Access-Control-Allow-Methods","GET, POST, OPTIONS"),e.setHeader("Access-Control-Allow-Headers","Content-Type, Authorization, x-session-id"),e.setHeader("Access-Control-Expose-Headers","*")}async function ml(r,e={}){let t=e.host||"localhost",n=e.port!==void 0?Number(e.port):3001,a=Km(e.allowOrigins),s=new Map,i=al.default.createServer(async(h,f)=>{if(Qm(h,f,a),h.method==="OPTIONS"){f.writeHead(204).end();return}let b=h.headers.host||`${t}:${n}`,w=new URL(h.url||"",`http://${b}`);if(h.method==="GET"&&(w.pathname==="/sse"||w.pathname==="/events")){let g=new il.SSEServerTransport("/message",f,{allowedOrigins:a.length>0&&!a.includes("*")?a:void 0,enableDnsRebindingProtection:a.length>0&&!a.includes("*")});s.set(g.sessionId,g),g.onclose=()=>{s.delete(g.sessionId)},await Bs(r).connect(g);return}if(h.method==="POST"&&w.pathname==="/message"){let g=w.searchParams.get("sessionId");if(!g||!s.has(g)){f.writeHead(404,{"Content-Type":"text/plain"}).end("Session not found");return}await s.get(g).handlePostMessage(h,f);return}f.writeHead(404,{"Content-Type":"text/plain"}).end("Not Found. Connect to /sse for MCP SSE transport.")});await new Promise((h,f)=>{i.listen(n,t,()=>h()),i.once("error",f)});let o=i.address(),c=typeof o=="object"&&o?o.port:n,m=`http://${t}:${c}/sse`;return{server:i,port:c,host:t,url:m,close:async()=>{for(let h of s.values())try{await h.close()}catch{}s.clear(),await new Promise((h,f)=>{i.close(b=>b?f(b):h())})}}}async function e1(r="./docs",e={}){let t=dr.default.resolve(process.cwd(),r),n=cl(t);if(!n)throw new Error(`No documentation found at ${t}. Run "docmedown build ${r}" or create Markdown files in that directory first.`);if(e.transport==="sse"||e.port!==void 0){let s=await ml(n,{port:e.port,host:e.host,allowOrigins:e.allowOrigins});console.error(`[DocMeDown] MCP server ready over SSE at ${s.url} \u2014 serving ${n.manifest.docs.length} documents from ${t}`);let i=async()=>{await s.close(),process.exit(0)};return process.once("SIGINT",i),process.once("SIGTERM",i),new Promise(()=>{})}return await Bs(n).connect(new ol.StdioServerTransport),console.error(`[DocMeDown] MCP server ready over stdio \u2014 serving ${n.manifest.docs.length} documents from ${t}`),new Promise(()=>{})}var ut,al,dr,sl,il,ol,en,ul,hl=Ze(()=>{"use strict";ut=J(require("fs")),al=J(require("http")),dr=J(require("path")),sl=require("@modelcontextprotocol/sdk/server/mcp.js"),il=require("@modelcontextprotocol/sdk/server/sse.js"),ol=require("@modelcontextprotocol/sdk/server/stdio.js"),en=require("zod");ln();dn();Kr();ul=(r,e)=>{let t=e.manifest.config?.name||"Documentation";r.registerTool("list_docs",{description:`List every document in the ${t} documentation corpus with titles, categories, and reading times.`,inputSchema:{}},async()=>({content:[{type:"text",text:JSON.stringify({site:t,count:e.manifest.docs.length,docs:e.manifest.docs.map(n=>({slug:n.slug,path:n.path,title:n.title,category:n.category??null,readingTimeMinutes:n.readingTimeMinutes??null,lastModified:n.lastModified??null}))},null,2)}]})),r.registerTool("read_doc",{description:"Read the full markdown content of one documentation page, including its headings and last-modified date.",inputSchema:{slug:en.z.string().describe('Document slug (e.g. "README" or "guides/custom-components").')}},async({slug:n})=>{let a=nl(e,n);if(!a)return{isError:!0,content:[{type:"text",text:`Document not found: ${n}. Use list_docs to see available slugs.`}]};let s=e.docs[a.slug]??e.docs[a.path]??a.content??"";return{content:[{type:"text",text:JSON.stringify({slug:a.slug,path:a.path,title:a.title,headings:a.headings.map(i=>({level:i.level,text:i.text,id:i.id})),lastModified:a.lastModified??null,content:s.replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n?/,"").trim()},null,2)}]}}),r.registerTool("search_docs",{description:`Search the ${t} documentation by keyword. Returns matching documents with a content snippet.`,inputSchema:{query:en.z.string().describe("Search query, one or more keywords."),limit:en.z.number().int().positive().max(25).optional().describe("Maximum results (default 10).")}},async({query:n,limit:a})=>{let s=dl(e,n,a??10);return{content:[{type:"text",text:JSON.stringify({query:n,count:s.length,results:s},null,2)}]}}),r.registerTool("resolve_url",{description:"Resolve a documentation slug to its public URL on the deployed documentation site.",inputSchema:{slug:en.z.string().describe('Document slug (e.g. "README" or "guides/custom-components").')}},async({slug:n})=>{let a=nl(e,n);if(!a)return{isError:!0,content:[{type:"text",text:`Document not found: ${n}. Use list_docs to see available slugs.`}]};let s=e.manifest.config?.url,i=s?s.replace(/\/+$/,""):null,o=i?a.slug==="README"?`${i}/`:`${i}/${a.slug}/`:`/${a.slug==="README"?"":`${a.slug}/`}`;return{content:[{type:"text",text:JSON.stringify({slug:a.slug,url:o,siteUrl:i},null,2)}]}})}});var gl={};la(gl,{validateCommand:()=>r1});function t1(r){let e=[],t=r.split(`
281
- `),n=!1;for(let a=0;a<t.length;a++){let s=t[a],i=s.trim();if(i.startsWith("```")||i.startsWith("~~~")){n=!n;continue}if(n)continue;let o=s.replace(/`[^`]*`/g,""),c=/(!?)\[([^\]]*)\]\(([^)\s]+)(?:\s+["'][^"']*["'])?\)/g;for(let f of o.matchAll(c))e.push({isImage:f[1]==="!",text:f[2],url:f[3],line:a+1});let m=/<a\s+[^>]*href=["']([^"']+)["'][^>]*>(.*?)<\/a>/gi;for(let f of o.matchAll(m))e.push({isImage:!1,text:f[2],url:f[1],line:a+1});let u=/<img\s+[^>]*src=["']([^"']+)["'][^>]*>/gi;for(let f of o.matchAll(u))e.push({isImage:!0,text:"",url:f[1],line:a+1});let h=/<(?:Media|dmd-media)\s+[^>]*src=["']([^"']+)["'][^>]*>/gi;for(let f of o.matchAll(h))e.push({isImage:!0,text:"",url:f[1],line:a+1})}return e}function fl(r){let e=new Set,t=Ms(r);for(let s of t)e.add(s.id.toLowerCase());let n=/^(?:#{1,6})\s+.*?\{#([\w-]+)\}\s*$/gm;for(let s of r.matchAll(n))e.add(s[1].toLowerCase());let a=/<a\s+[^>]*(?:id|name)=["']([^"']+)["']/gi;for(let s of r.matchAll(a))e.add(s[1].toLowerCase());return e}async function r1(r="./docs",e={}){let t=Oe.default.resolve(process.cwd(),r),n=[],a=[],s=0,i=0;if(!_t.default.existsSync(t)){let w={file:r,message:`Documentation directory does not exist: ${t}`,type:"config"};return n.push(w),e.silent||(e.json?console.log(JSON.stringify({valid:!1,errors:n,warnings:a,stats:{docs:0,links:0,headings:0}},null,2)):console.error(nt.default.red(`\u2716 ${w.message}`))),e.exitOnError&&typeof process<"u"&&(process.exitCode=1),{valid:!1,errors:n,warnings:a,stats:{docs:0,links:0,headings:0}}}let o=Oe.default.join(t,"docs.json"),c=Oe.default.join(t,"dmd.json"),m=null;if(_t.default.existsSync(o)?m=o:_t.default.existsSync(c)&&(m=c),m){let w=Oe.default.relative(process.cwd(),m);try{let g=_t.default.readFileSync(m,"utf-8"),y=JSON.parse(g);y?.theme?.preset&&n.push({file:w,message:'Deprecated "theme.preset" detected. Use "theme.family" instead (atlas, blueprint, terminal, editorial).',type:"config"});let x=cn.safeParse(y);if(!x.success)for(let A of x.error.issues){let M=A.path.join(".")||"(root)";n.push({file:w,message:`Invalid configuration at "${M}": ${A.message}`,type:"config"})}}catch(g){n.push({file:w,message:`Failed to parse JSON: ${g instanceof Error?g.message:String(g)}`,type:"config"})}}else a.push({file:r,message:"No docs.json or dmd.json configuration file found. Using default DocMeDown settings."});let u=ct(t),h=new Map;for(let w of u){let g=Oe.default.join(t,w),y="";try{y=_t.default.readFileSync(g,"utf-8")}catch(T){n.push({file:w,message:`Failed to read file: ${T instanceof Error?T.message:String(T)}`,type:"frontmatter"});continue}let x;try{x=(0,Ps.default)(y)}catch(T){n.push({file:w,message:`Malformed frontmatter YAML syntax: ${T instanceof Error?T.message:String(T)}`,type:"frontmatter"}),x={data:{},content:y}}let A=x.data||{};A.title!==void 0&&typeof A.title!="string"&&n.push({file:w,message:`Frontmatter "title" must be a string, got ${typeof A.title}`,type:"frontmatter"}),A.sidebar_label!==void 0&&typeof A.sidebar_label!="string"&&n.push({file:w,message:`Frontmatter "sidebar_label" must be a string, got ${typeof A.sidebar_label}`,type:"frontmatter"}),A.description!==void 0&&typeof A.description!="string"&&n.push({file:w,message:`Frontmatter "description" must be a string, got ${typeof A.description}`,type:"frontmatter"}),A.category!==void 0&&typeof A.category!="string"&&n.push({file:w,message:`Frontmatter "category" must be a string, got ${typeof A.category}`,type:"frontmatter"}),A.order!==void 0&&typeof A.order!="number"&&n.push({file:w,message:`Frontmatter "order" must be a number, got ${typeof A.order}`,type:"frontmatter"}),A.hidden!==void 0&&typeof A.hidden!="boolean"&&n.push({file:w,message:`Frontmatter "hidden" must be a boolean, got ${typeof A.hidden}`,type:"frontmatter"}),A.noindex!==void 0&&typeof A.noindex!="boolean"&&n.push({file:w,message:`Frontmatter "noindex" must be a boolean, got ${typeof A.noindex}`,type:"frontmatter"}),A.tags!==void 0&&!Array.isArray(A.tags)&&n.push({file:w,message:`Frontmatter "tags" must be an array of strings, got ${typeof A.tags}`,type:"frontmatter"});let M=fl(x.content);i+=M.size;let E=w.replace(/\.(md|mdx)$/i,"");h.set(w.toLowerCase(),{fullPath:g,content:x.content,anchors:M}),h.set(E.toLowerCase(),{fullPath:g,content:x.content,anchors:M}),(E.toLowerCase()==="readme"||E.toLowerCase()==="index")&&h.set("",{fullPath:g,content:x.content,anchors:M})}for(let w of u){let g=Oe.default.join(t,w),y=h.get(w.toLowerCase());if(!y)continue;let x=t1(y.content),A=Oe.default.dirname(g);for(let M of x){s++;let E=M.url.trim();if(/^(?:https?:|mailto:|tel:|ftp:|javascript:|data:)/i.test(E))continue;let T=E.indexOf("#"),D=T===-1?E:E.substring(0,T),$=T===-1?null:E.substring(T+1),z=D.indexOf("?");if(z!==-1&&(D=D.substring(0,z)),!D&&$){let O=$.toLowerCase();y.anchors.has(O)||n.push({file:w,line:M.line,message:`Broken local anchor: "#${$}" does not exist in this document`,type:"anchor"});continue}if(D){let O=null,U=Oe.default.resolve(A,D),L=Oe.default.resolve(t,D.replace(/^\//,"")),X=[U,L,`${U}.md`,`${U}.mdx`,Oe.default.join(U,"README.md"),Oe.default.join(U,"index.md"),`${L}.md`,`${L}.mdx`,Oe.default.join(L,"README.md"),Oe.default.join(L,"index.md")];if(D.endsWith(".html")){let V=D.replace(/\.html$/,"");X.push(Oe.default.resolve(A,`${V}.md`),Oe.default.resolve(t,`${V.replace(/^\//,"")}.md`))}for(let V of X)if(_t.default.existsSync(V)&&_t.default.statSync(V).isFile()){O=V;break}if(!O){n.push({file:w,line:M.line,message:`Broken link: "${E}" (target file does not exist on disk)`,type:"link"});continue}if($&&/\.(md|mdx)$/i.test(O)){let V=Oe.default.relative(t,O).replace(/\\/g,"/").toLowerCase(),Z=h.get(V);if(!Z)try{let G=_t.default.readFileSync(O,"utf-8"),te=(0,Ps.default)(G);Z={fullPath:O,content:te.content,anchors:fl(te.content)}}catch{Z=void 0}Z&&!Z.anchors.has($.toLowerCase())&&n.push({file:w,line:M.line,message:`Broken anchor link: "${E}" (anchor "#${$}" does not exist in target document)`,type:"anchor"})}}}}let f=n.length===0,b={valid:f,errors:n,warnings:a,stats:{docs:u.length,links:s,headings:i}};if(!e.silent)if(e.json)console.log(JSON.stringify(b,null,2));else{if(console.log(nt.default.bold(`
279
+ `);for(let n of t){let a=n.match(/^(#{1,4})\s+(.+)$/);if(a){let s=a[1].length,i=a[2].trim(),o=An(i),c=i.replace(/[#*`_]/g,"").toLowerCase().replace(/[^\w\s-]/g,"").trim().replace(/[\s_-]+/g,"-");e.push({level:s,text:o,id:c})}}return e}function ct(r,e=r,t=["node_modules",".git",".dmd","dist","bin","SKILL.md"],n=!0,a=new Set){let s=[];if(!wt.default.existsSync(r))return s;try{let o=wt.default.realpathSync(r);if(a.has(o))return s;a.add(o)}catch{}let i=wt.default.readdirSync(r,{withFileTypes:!0});for(let o of i){if(t.includes(o.name)||o.name.startsWith("."))continue;let c=Ft.default.join(r,o.name),m=Ft.default.relative(e,c).replace(/\\/g,"/"),u=o.isDirectory(),h=o.isFile();if(o.isSymbolicLink())try{let f=wt.default.statSync(c);u=f.isDirectory(),h=f.isFile()}catch{continue}u?n&&c!==e&&wt.default.existsSync(Ft.default.join(c,"docs.json"))||s.push(...ct(c,e,t,n,a)):h&&/\.(md|mdx)$/i.test(o.name)&&s.push(m)}return s}function Jr(r,e){let t=ct(r),n=[],a={};for(let u of t){let h=Ft.default.join(r,u),f=wt.default.readFileSync(h,"utf-8"),{data:b,content:w}=(0,Fo.default)(f),g=u.replace(/\.(md|mdx)$/i,""),x=g.toLowerCase()==="readme"||g.toLowerCase()==="index"?"README":g,A=b.title||b.sidebar_label||Tr(Ft.default.basename(u));a[u]=b;let M=Ms(w),E=w.trim().split(/\s+/).length,T=Math.max(1,Math.ceil(E/200));n.push({slug:x,path:u,title:A,category:u.includes("/")?u.substring(0,u.lastIndexOf("/")):void 0,frontmatter:b,headings:M,content:w,readingTimeMinutes:T,lastModified:wt.default.statSync(h).mtime.toISOString()})}let s=$o(t,a,e.sidebar),i=Ft.default.join(r,".dmd"),o=[".svelte",".tsx",".jsx",".ts",".js"],c=["setup.js","setup.mjs","setup.ts","languages.js","languages.ts","components.js","index.js"],m=wt.default.existsSync(i)?wt.default.readdirSync(i).filter(u=>u.startsWith(".")||c.includes(u)||u.endsWith(".d.ts")?!1:o.some(h=>u.endsWith(h))).map(u=>{let h=Ft.default.extname(u);return Ft.default.basename(u,h)}):[];return{version:mr.version,generatedAt:new Date().toISOString(),config:e,docs:n,tree:s,customComponents:m.length>0?m:void 0}}var wt,Ft,Fo,Kr=Ze(()=>{"use strict";wt=J(require("fs")),Ft=J(require("path")),Fo=J(require("gray-matter"));ln();zo();$a()});var ml={};la(ml,{createMcpServer:()=>Bs,loadBuiltSite:()=>ll,loadOrCreateToolkit:()=>cl,mcpCommand:()=>e1,searchDocs:()=>dl,startMcpSseServer:()=>ul});function Zm(r){let e=r.match(/window\.__DOCMEDOWN_DATA__\s*=\s*([\s\S]*?);\s*$/m);if(!e)return null;try{let t=JSON.parse(e[1]);return t.docs&&typeof t.docs=="object"?t.docs:null}catch{return null}}function ll(r){let e=dr.default.join(r,"_manifest.json"),t=dr.default.join(r,"_docs.js");if(!ut.default.existsSync(e))return null;try{let n=JSON.parse(ut.default.readFileSync(e,"utf-8")),a={};return ut.default.existsSync(t)&&(a=Zm(ut.default.readFileSync(t,"utf-8"))??{}),{manifest:n,docs:a}}catch{return null}}function cl(r){let e=ll(r);if(e)return e;if(!ut.default.existsSync(r))return null;try{let t=Ue(),n=dr.default.join(r,"docs.json"),a=dr.default.join(r,"dmd.json");ut.default.existsSync(n)?t=Ue(Lt(ut.default.readFileSync(n,"utf-8"),n)):ut.default.existsSync(a)&&(t=Ue(Lt(ut.default.readFileSync(a,"utf-8"),a)));let s=ct(r);if(s.length===0)return null;let i=Jr(r,t),o={};for(let c of s){let m=dr.default.join(r,c),u=ut.default.readFileSync(m,"utf-8"),h=c.replace(/\.(md|mdx)$/i,""),f=h.toLowerCase()==="readme"||h.toLowerCase()==="index"?"README":h;o[f]=u,o[c]=u}return{manifest:i,docs:o}}catch{return null}}function Xm(r){return r.toLowerCase().split(/\s+/).filter(e=>e.length>1)}function Ls(r,e){if(!r)return 0;let t=0,n=r.indexOf(e);for(;n!==-1&&t<50;)t++,n=r.indexOf(e,n+e.length);return t}function Ym(r,e){let n=(r.content||"").replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n?/,"").split(`
280
+ `);for(let s of e)for(let i of n)if(i.toLowerCase().includes(s)){let o=i.replace(/^[#>\-*\s`]+/,"").trim();if(o)return o.length>200?`${o.slice(0,200)}\u2026`:o}return(n.find(s=>s.trim()&&!s.startsWith("#"))||"").trim().slice(0,200)}function dl(r,e,t=10){let n=Xm(e);return n.length===0?[]:r.manifest.docs.filter(s=>s.frontmatter?.hidden!==!0).map(s=>{let i=s.title.toLowerCase(),o=s.headings.map(u=>`${u.text} ${u.id}`).join(" ").toLowerCase(),c=(s.content||"").toLowerCase(),m=0;for(let u of n)m+=Ls(i,u)*5,m+=Ls(o,u)*3,m+=Math.min(Ls(c,u),20);return{slug:s.slug,title:s.title,snippet:Ym(s,n),score:m}}).filter(s=>s.score>0).sort((s,i)=>i.score-s.score).slice(0,Math.max(1,Math.min(t,25)))}function nl(r,e){let t=e.replace(/^\.?\//,"").replace(/\.(md|mdx)$/i,"");return r.manifest.docs.find(n=>n.slug.toLowerCase()===t.toLowerCase()||n.path.replace(/\.(md|mdx)$/i,"").toLowerCase()===t.toLowerCase())}function Bs(r){let e=new sl.McpServer({name:"docmedown",version:mr.version});return Jm(e,r),e}function Km(r){return r?Array.isArray(r)?r:r.split(",").map(e=>e.trim()).filter(Boolean):["*"]}function Qm(r,e,t){let n=r.headers.origin,a="*";t.length>0&&(t.includes("*")?a="*":n&&t.includes(n)?a=n:a=t[0]),e.setHeader("Access-Control-Allow-Origin",a),e.setHeader("Access-Control-Allow-Methods","GET, POST, OPTIONS"),e.setHeader("Access-Control-Allow-Headers","Content-Type, Authorization, x-session-id"),e.setHeader("Access-Control-Expose-Headers","*")}async function ul(r,e={}){let t=e.host||"localhost",n=e.port!==void 0?Number(e.port):3001,a=Km(e.allowOrigins),s=new Map,i=al.default.createServer(async(h,f)=>{if(Qm(h,f,a),h.method==="OPTIONS"){f.writeHead(204).end();return}let b=h.headers.host||`${t}:${n}`,w=new URL(h.url||"",`http://${b}`);if(h.method==="GET"&&(w.pathname==="/sse"||w.pathname==="/events")){let g=new il.SSEServerTransport("/message",f,{allowedOrigins:a.length>0&&!a.includes("*")?a:void 0,enableDnsRebindingProtection:a.length>0&&!a.includes("*")});s.set(g.sessionId,g),g.onclose=()=>{s.delete(g.sessionId)},await Bs(r).connect(g);return}if(h.method==="POST"&&w.pathname==="/message"){let g=w.searchParams.get("sessionId");if(!g||!s.has(g)){f.writeHead(404,{"Content-Type":"text/plain"}).end("Session not found");return}await s.get(g).handlePostMessage(h,f);return}f.writeHead(404,{"Content-Type":"text/plain"}).end("Not Found. Connect to /sse for MCP SSE transport.")});await new Promise((h,f)=>{i.listen(n,t,()=>h()),i.once("error",f)});let o=i.address(),c=typeof o=="object"&&o?o.port:n,m=`http://${t}:${c}/sse`;return{server:i,port:c,host:t,url:m,close:async()=>{for(let h of s.values())try{await h.close()}catch{}s.clear(),await new Promise((h,f)=>{i.close(b=>b?f(b):h())})}}}async function e1(r="./docs",e={}){let t=dr.default.resolve(process.cwd(),r),n=cl(t);if(!n)throw new Error(`No documentation found at ${t}. Run "docmedown build ${r}" or create Markdown files in that directory first.`);if(e.transport==="sse"||e.port!==void 0){let s=await ul(n,{port:e.port,host:e.host,allowOrigins:e.allowOrigins});console.error(`[DocMeDown] MCP server ready over SSE at ${s.url} \u2014 serving ${n.manifest.docs.length} documents from ${t}`);let i=async()=>{await s.close(),process.exit(0)};return process.once("SIGINT",i),process.once("SIGTERM",i),new Promise(()=>{})}return await Bs(n).connect(new ol.StdioServerTransport),console.error(`[DocMeDown] MCP server ready over stdio \u2014 serving ${n.manifest.docs.length} documents from ${t}`),new Promise(()=>{})}var ut,al,dr,sl,il,ol,en,Jm,pl=Ze(()=>{"use strict";ut=J(require("fs")),al=J(require("http")),dr=J(require("path")),sl=require("@modelcontextprotocol/sdk/server/mcp.js"),il=require("@modelcontextprotocol/sdk/server/sse.js"),ol=require("@modelcontextprotocol/sdk/server/stdio.js"),en=require("zod");ln();dn();Kr();Jm=(r,e)=>{let t=e.manifest.config?.name||"Documentation";r.registerTool("list_docs",{description:`List every document in the ${t} documentation corpus with titles, categories, and reading times.`,inputSchema:{}},async()=>({content:[{type:"text",text:JSON.stringify({site:t,count:e.manifest.docs.length,docs:e.manifest.docs.map(n=>({slug:n.slug,path:n.path,title:n.title,category:n.category??null,readingTimeMinutes:n.readingTimeMinutes??null,lastModified:n.lastModified??null}))},null,2)}]})),r.registerTool("read_doc",{description:"Read the full markdown content of one documentation page, including its headings and last-modified date.",inputSchema:{slug:en.z.string().describe('Document slug (e.g. "README" or "guides/custom-components").')}},async({slug:n})=>{let a=nl(e,n);if(!a)return{isError:!0,content:[{type:"text",text:`Document not found: ${n}. Use list_docs to see available slugs.`}]};let s=e.docs[a.slug]??e.docs[a.path]??a.content??"";return{content:[{type:"text",text:JSON.stringify({slug:a.slug,path:a.path,title:a.title,headings:a.headings.map(i=>({level:i.level,text:i.text,id:i.id})),lastModified:a.lastModified??null,content:s.replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n?/,"").trim()},null,2)}]}}),r.registerTool("search_docs",{description:`Search the ${t} documentation by keyword. Returns matching documents with a content snippet.`,inputSchema:{query:en.z.string().describe("Search query, one or more keywords."),limit:en.z.number().int().positive().max(25).optional().describe("Maximum results (default 10).")}},async({query:n,limit:a})=>{let s=dl(e,n,a??10);return{content:[{type:"text",text:JSON.stringify({query:n,count:s.length,results:s},null,2)}]}}),r.registerTool("resolve_url",{description:"Resolve a documentation slug to its public URL on the deployed documentation site.",inputSchema:{slug:en.z.string().describe('Document slug (e.g. "README" or "guides/custom-components").')}},async({slug:n})=>{let a=nl(e,n);if(!a)return{isError:!0,content:[{type:"text",text:`Document not found: ${n}. Use list_docs to see available slugs.`}]};let s=e.manifest.config?.url,i=s?s.replace(/\/+$/,""):null,o=i?a.slug==="README"?`${i}/`:`${i}/${a.slug}/`:`/${a.slug==="README"?"":`${a.slug}/`}`;return{content:[{type:"text",text:JSON.stringify({slug:a.slug,url:o,siteUrl:i},null,2)}]}})}});var fl={};la(fl,{validateCommand:()=>r1});function t1(r){let e=[],t=r.split(`
281
+ `),n=!1;for(let a=0;a<t.length;a++){let s=t[a],i=s.trim();if(i.startsWith("```")||i.startsWith("~~~")){n=!n;continue}if(n)continue;let o=s.replace(/`[^`]*`/g,""),c=/(!?)\[([^\]]*)\]\(([^)\s]+)(?:\s+["'][^"']*["'])?\)/g;for(let f of o.matchAll(c))e.push({isImage:f[1]==="!",text:f[2],url:f[3],line:a+1});let m=/<a\s+[^>]*href=["']([^"']+)["'][^>]*>(.*?)<\/a>/gi;for(let f of o.matchAll(m))e.push({isImage:!1,text:f[2],url:f[1],line:a+1});let u=/<img\s+[^>]*src=["']([^"']+)["'][^>]*>/gi;for(let f of o.matchAll(u))e.push({isImage:!0,text:"",url:f[1],line:a+1});let h=/<(?:Media|dmd-media)\s+[^>]*src=["']([^"']+)["'][^>]*>/gi;for(let f of o.matchAll(h))e.push({isImage:!0,text:"",url:f[1],line:a+1})}return e}function hl(r){let e=new Set,t=Ms(r);for(let s of t)e.add(s.id.toLowerCase());let n=/^(?:#{1,6})\s+.*?\{#([\w-]+)\}\s*$/gm;for(let s of r.matchAll(n))e.add(s[1].toLowerCase());let a=/<a\s+[^>]*(?:id|name)=["']([^"']+)["']/gi;for(let s of r.matchAll(a))e.add(s[1].toLowerCase());return e}async function r1(r="./docs",e={}){let t=Oe.default.resolve(process.cwd(),r),n=[],a=[],s=0,i=0;if(!_t.default.existsSync(t)){let w={file:r,message:`Documentation directory does not exist: ${t}`,type:"config"};return n.push(w),e.silent||(e.json?console.log(JSON.stringify({valid:!1,errors:n,warnings:a,stats:{docs:0,links:0,headings:0}},null,2)):console.error(nt.default.red(`\u2716 ${w.message}`))),e.exitOnError&&typeof process<"u"&&(process.exitCode=1),{valid:!1,errors:n,warnings:a,stats:{docs:0,links:0,headings:0}}}let o=Oe.default.join(t,"docs.json"),c=Oe.default.join(t,"dmd.json"),m=null;if(_t.default.existsSync(o)?m=o:_t.default.existsSync(c)&&(m=c),m){let w=Oe.default.relative(process.cwd(),m);try{let g=_t.default.readFileSync(m,"utf-8"),y=JSON.parse(g);y?.theme?.preset&&n.push({file:w,message:'Deprecated "theme.preset" detected. Use "theme.family" instead (atlas, blueprint, terminal, editorial).',type:"config"});let x=cn.safeParse(y);if(!x.success)for(let A of x.error.issues){let M=A.path.join(".")||"(root)";n.push({file:w,message:`Invalid configuration at "${M}": ${A.message}`,type:"config"})}}catch(g){n.push({file:w,message:`Failed to parse JSON: ${g instanceof Error?g.message:String(g)}`,type:"config"})}}else a.push({file:r,message:"No docs.json or dmd.json configuration file found. Using default DocMeDown settings."});let u=ct(t),h=new Map;for(let w of u){let g=Oe.default.join(t,w),y="";try{y=_t.default.readFileSync(g,"utf-8")}catch(T){n.push({file:w,message:`Failed to read file: ${T instanceof Error?T.message:String(T)}`,type:"frontmatter"});continue}let x;try{x=(0,Ps.default)(y)}catch(T){n.push({file:w,message:`Malformed frontmatter YAML syntax: ${T instanceof Error?T.message:String(T)}`,type:"frontmatter"}),x={data:{},content:y}}let A=x.data||{};A.title!==void 0&&typeof A.title!="string"&&n.push({file:w,message:`Frontmatter "title" must be a string, got ${typeof A.title}`,type:"frontmatter"}),A.sidebar_label!==void 0&&typeof A.sidebar_label!="string"&&n.push({file:w,message:`Frontmatter "sidebar_label" must be a string, got ${typeof A.sidebar_label}`,type:"frontmatter"}),A.description!==void 0&&typeof A.description!="string"&&n.push({file:w,message:`Frontmatter "description" must be a string, got ${typeof A.description}`,type:"frontmatter"}),A.category!==void 0&&typeof A.category!="string"&&n.push({file:w,message:`Frontmatter "category" must be a string, got ${typeof A.category}`,type:"frontmatter"}),A.order!==void 0&&typeof A.order!="number"&&n.push({file:w,message:`Frontmatter "order" must be a number, got ${typeof A.order}`,type:"frontmatter"}),A.hidden!==void 0&&typeof A.hidden!="boolean"&&n.push({file:w,message:`Frontmatter "hidden" must be a boolean, got ${typeof A.hidden}`,type:"frontmatter"}),A.noindex!==void 0&&typeof A.noindex!="boolean"&&n.push({file:w,message:`Frontmatter "noindex" must be a boolean, got ${typeof A.noindex}`,type:"frontmatter"}),A.tags!==void 0&&!Array.isArray(A.tags)&&n.push({file:w,message:`Frontmatter "tags" must be an array of strings, got ${typeof A.tags}`,type:"frontmatter"});let M=hl(x.content);i+=M.size;let E=w.replace(/\.(md|mdx)$/i,"");h.set(w.toLowerCase(),{fullPath:g,content:x.content,anchors:M}),h.set(E.toLowerCase(),{fullPath:g,content:x.content,anchors:M}),(E.toLowerCase()==="readme"||E.toLowerCase()==="index")&&h.set("",{fullPath:g,content:x.content,anchors:M})}for(let w of u){let g=Oe.default.join(t,w),y=h.get(w.toLowerCase());if(!y)continue;let x=t1(y.content),A=Oe.default.dirname(g);for(let M of x){s++;let E=M.url.trim();if(/^(?:https?:|mailto:|tel:|ftp:|javascript:|data:)/i.test(E))continue;let T=E.indexOf("#"),D=T===-1?E:E.substring(0,T),$=T===-1?null:E.substring(T+1),z=D.indexOf("?");if(z!==-1&&(D=D.substring(0,z)),!D&&$){let O=$.toLowerCase();y.anchors.has(O)||n.push({file:w,line:M.line,message:`Broken local anchor: "#${$}" does not exist in this document`,type:"anchor"});continue}if(D){let O=null,U=Oe.default.resolve(A,D),L=Oe.default.resolve(t,D.replace(/^\//,"")),X=[U,L,`${U}.md`,`${U}.mdx`,Oe.default.join(U,"README.md"),Oe.default.join(U,"index.md"),`${L}.md`,`${L}.mdx`,Oe.default.join(L,"README.md"),Oe.default.join(L,"index.md")];if(D.endsWith(".html")){let V=D.replace(/\.html$/,"");X.push(Oe.default.resolve(A,`${V}.md`),Oe.default.resolve(t,`${V.replace(/^\//,"")}.md`))}for(let V of X)if(_t.default.existsSync(V)&&_t.default.statSync(V).isFile()){O=V;break}if(!O){n.push({file:w,line:M.line,message:`Broken link: "${E}" (target file does not exist on disk)`,type:"link"});continue}if($&&/\.(md|mdx)$/i.test(O)){let V=Oe.default.relative(t,O).replace(/\\/g,"/").toLowerCase(),Z=h.get(V);if(!Z)try{let G=_t.default.readFileSync(O,"utf-8"),te=(0,Ps.default)(G);Z={fullPath:O,content:te.content,anchors:hl(te.content)}}catch{Z=void 0}Z&&!Z.anchors.has($.toLowerCase())&&n.push({file:w,line:M.line,message:`Broken anchor link: "${E}" (anchor "#${$}" does not exist in target document)`,type:"anchor"})}}}}let f=n.length===0,b={valid:f,errors:n,warnings:a,stats:{docs:u.length,links:s,headings:i}};if(!e.silent)if(e.json)console.log(JSON.stringify(b,null,2));else{if(console.log(nt.default.bold(`
282
282
  \u{1F50D} Validating documentation in ${nt.default.cyan(r)}...`)),console.log(` \u{1F4C4} Documents scanned: ${nt.default.bold(b.stats.docs)}`),console.log(` \u{1F517} Links verified: ${nt.default.bold(b.stats.links)}`),console.log(` \u{1F4D1} Headings indexed: ${nt.default.bold(b.stats.headings)}`),a.length>0){console.log(nt.default.yellow(`
283
283
  \u26A0 ${a.length} warning(s):`));for(let w of a)console.log(nt.default.yellow(` - ${w.file}: ${w.message}`))}if(f)console.log(nt.default.green(`
284
284
  \u2714 Validation passed! All documents, links, and schemas are valid.
285
285
  `));else{console.log(nt.default.red(`
286
- \u2716 Validation failed with ${n.length} error(s):`));for(let w of n){let g=w.line?`:${w.line}`:"";console.log(nt.default.red(` - [${w.type}] ${w.file}${g}: ${w.message}`))}console.log()}}return e.exitOnError&&!f&&typeof process<"u"&&(process.exitCode=1),b}var _t,Oe,nt,Ps,vl=Ze(()=>{"use strict";_t=J(require("fs")),Oe=J(require("path")),nt=J(require("chalk")),Ps=J(require("gray-matter"));da();Kr()});var xl={};la(xl,{checkNodeVersion:()=>wl,doctorCommand:()=>n1});function wl(r=process.version){let e="20.19.0",t=r.replace(/^v/,""),[n,a,s]=t.split(".").map(o=>Number.parseInt(o,10)||0);return{supported:n>20||n===20&&(a>19||a===19&&s>=0),version:r,minRequired:`>=${e}`}}async function n1(r="./docs",e={}){let t=Ae.default.resolve(process.cwd(),r),n=[],a=wl();if(a.supported?n.push({id:"node-env",name:"Node.js Environment",status:"pass",message:`${a.version} (satisfies requirement ${a.minRequired})`}):n.push({id:"node-env",name:"Node.js Environment",status:"fail",message:`${a.version} is not officially supported. DocMeDown requires Node.js ${a.minRequired}`}),!Re.default.existsSync(t))return n.push({id:"structure",name:"Documentation Structure",status:"fail",message:`Documentation directory does not exist: ${t}`}),bl(n,e,r);let s=Ae.default.join(t,"docs.json"),i=Ae.default.join(t,"dmd.json"),o=null,c=null;if(Re.default.existsSync(s)?o="docs.json":Re.default.existsSync(i)&&(o="dmd.json"),o)try{c=JSON.parse(Re.default.readFileSync(Ae.default.join(t,o),"utf-8")),n.push({id:"config",name:"Configuration File",status:"pass",message:`Found valid configuration file: ${o}`})}catch(w){n.push({id:"config",name:"Configuration File",status:"fail",message:`Syntax error in ${o}: ${w instanceof Error?w.message:String(w)}`})}else n.push({id:"config",name:"Configuration File",status:"warn",message:"No docs.json or dmd.json found (using default configuration)"});let m=ct(t),u=m.some(w=>{let g=Ae.default.basename(w,Ae.default.extname(w)).toLowerCase();return g==="readme"||g==="index"});m.length===0?n.push({id:"docs-content",name:"Documentation Documents",status:"warn",message:`No markdown documents (.md, .mdx) found in ${r}`}):u?n.push({id:"docs-content",name:"Documentation Documents",status:"pass",message:`Found ${m.length} markdown document(s) with valid home page`}):n.push({id:"docs-content",name:"Documentation Documents",status:"warn",message:`Found ${m.length} document(s), but missing a home page (README.md or index.md)`});let h=[],f=0;if(c){let w=[c.logo,c.favicon,c.theme?.logo?.light,c.theme?.logo?.dark,c.theme?.favicon,c.customCss].filter(Boolean);for(let g of w)if(typeof g=="string"&&!/^(https?:|data:|\/\/)/i.test(g)){if($r(g))continue;f++;let y=Ae.default.resolve(t,g.replace(/^\//,""));Re.default.existsSync(y)||h.push({ref:g,file:o||"docs.json"})}}for(let w of m){let g=Ae.default.join(t,w),y=Ae.default.dirname(g),x="";try{let D=Re.default.readFileSync(g,"utf-8");x=(0,yl.default)(D).content}catch{continue}let A=x.replace(/(```[\s\S]*?```|~~~[\s\S]*?~~~)/g,"").replace(/`[^`\n]*`/g,""),M=/!\[([^\]]*)\]\(([^)\s]+)(?:\s+["'][^"']*["'])?\)/g;for(let D of A.matchAll(M)){let $=D[2].trim();if(!/^(https?:|data:|\/\/|#)/i.test($)){f++;let z=$.split("?")[0].split("#")[0],O=Ae.default.resolve(y,z),U=Ae.default.resolve(t,z.replace(/^\//,""));!Re.default.existsSync(O)&&!Re.default.existsSync(U)&&h.push({ref:$,file:w})}}let E=/<img\s+[^>]*src=["']([^"']+)["']/gi;for(let D of A.matchAll(E)){let $=D[1].trim();if(!/^(https?:|data:|\/\/|#)/i.test($)){f++;let z=$.split("?")[0].split("#")[0],O=Ae.default.resolve(y,z),U=Ae.default.resolve(t,z.replace(/^\//,""));!Re.default.existsSync(O)&&!Re.default.existsSync(U)&&h.push({ref:$,file:w})}}let T=/<(?:Media|dmd-media)\s+[^>]*src=["']([^"']+)["']/gi;for(let D of A.matchAll(T)){let $=D[1].trim();if(!/^(https?:|data:|\/\/|#)/i.test($)){f++;let z=$.split("?")[0].split("#")[0],O=Ae.default.resolve(y,z),U=Ae.default.resolve(t,z.replace(/^\//,""));!Re.default.existsSync(O)&&!Re.default.existsSync(U)&&h.push({ref:$,file:w})}}}h.length>0?n.push({id:"assets",name:"Asset References",status:"fail",message:`Found ${h.length} missing local asset file(s)`,details:h.map(w=>`Missing "${w.ref}" referenced in ${w.file}`)}):n.push({id:"assets",name:"Asset References",status:"pass",message:f>0?`All ${f} local asset references verified`:"No local asset references found"});let b=Ae.default.join(t,".dmd");if(!Re.default.existsSync(b))n.push({id:"dmd-components",name:"Custom Components (.dmd)",status:"pass",message:"No custom components directory (.dmd) found (standard built-ins only)"});else{let w=Re.default.readdirSync(b),g=["setup.js","setup.mjs","setup.ts","languages.js","languages.ts","components.js","index.js"],y=w.filter(T=>T.endsWith(".svelte")),x=w.filter(T=>(T.endsWith(".tsx")||T.endsWith(".jsx"))&&!T.startsWith(".")),A=w.filter(T=>(T.endsWith(".ts")||T.endsWith(".js"))&&!g.includes(T)&&!T.endsWith(".d.ts")),M=[],E=0;for(let T of y){E++;let D=Ae.default.join(b,T);try{let $=Re.default.readFileSync(D,"utf-8"),z=T.replace(/\.svelte$/,""),O=Dt(z),U=pn($,O);(0,qs.compile)(U,{filename:T,customElement:!0,generate:"client"})}catch($){M.push(`${T}: ${$ instanceof Error?$.message:String($)}`)}}for(let T of x){E++;let D=Ae.default.join(b,T);try{let $=Re.default.readFileSync(D,"utf-8"),z=Ae.default.basename(T,Ae.default.extname(T)),O=Dt(z),U=na($,{name:z,tag:O,filename:T});U.success&&U.svelteSource?(0,qs.compile)(U.svelteSource,{filename:`${z}.svelte`,customElement:!0,generate:"client"}):(0,Hs.transformSync)($,{loader:T.endsWith(".tsx")?"tsx":"jsx",target:"es2022"})}catch($){M.push(`${T}: ${$ instanceof Error?$.message:String($)}`)}}for(let T of A){E++;let D=Ae.default.join(b,T);try{let $=Re.default.readFileSync(D,"utf-8");(0,Hs.transformSync)($,{loader:T.endsWith(".ts")?"ts":"js",target:"es2022"})}catch($){M.push(`${T}: ${$ instanceof Error?$.message:String($)}`)}}M.length>0?n.push({id:"dmd-components",name:"Custom Components (.dmd)",status:"fail",message:`Compilation failed for ${M.length} custom component(s)`,details:M}):n.push({id:"dmd-components",name:"Custom Components (.dmd)",status:"pass",message:E>0?`All ${E} custom component(s) compiled cleanly`:"No custom components in .dmd/ directory"})}return bl(n,e,r)}function bl(r,e,t){let n={pass:r.filter(i=>i.status==="pass").length,warn:r.filter(i=>i.status==="warn").length,fail:r.filter(i=>i.status==="fail").length},a=n.fail===0,s={ok:a,checks:r,summary:n};if(!e.silent)if(e.json)console.log(JSON.stringify(s,null,2));else{console.log(kt.default.bold(`
286
+ \u2716 Validation failed with ${n.length} error(s):`));for(let w of n){let g=w.line?`:${w.line}`:"";console.log(nt.default.red(` - [${w.type}] ${w.file}${g}: ${w.message}`))}console.log()}}return e.exitOnError&&!f&&typeof process<"u"&&(process.exitCode=1),b}var _t,Oe,nt,Ps,gl=Ze(()=>{"use strict";_t=J(require("fs")),Oe=J(require("path")),nt=J(require("chalk")),Ps=J(require("gray-matter"));da();Kr()});var wl={};la(wl,{checkNodeVersion:()=>yl,doctorCommand:()=>n1});function yl(r=process.version){let e="20.19.0",t=r.replace(/^v/,""),[n,a,s]=t.split(".").map(o=>Number.parseInt(o,10)||0);return{supported:n>20||n===20&&(a>19||a===19&&s>=0),version:r,minRequired:`>=${e}`}}async function n1(r="./docs",e={}){let t=Ae.default.resolve(process.cwd(),r),n=[],a=yl();if(a.supported?n.push({id:"node-env",name:"Node.js Environment",status:"pass",message:`${a.version} (satisfies requirement ${a.minRequired})`}):n.push({id:"node-env",name:"Node.js Environment",status:"fail",message:`${a.version} is not officially supported. DocMeDown requires Node.js ${a.minRequired}`}),!Re.default.existsSync(t))return n.push({id:"structure",name:"Documentation Structure",status:"fail",message:`Documentation directory does not exist: ${t}`}),vl(n,e,r);let s=Ae.default.join(t,"docs.json"),i=Ae.default.join(t,"dmd.json"),o=null,c=null;if(Re.default.existsSync(s)?o="docs.json":Re.default.existsSync(i)&&(o="dmd.json"),o)try{c=JSON.parse(Re.default.readFileSync(Ae.default.join(t,o),"utf-8")),n.push({id:"config",name:"Configuration File",status:"pass",message:`Found valid configuration file: ${o}`})}catch(w){n.push({id:"config",name:"Configuration File",status:"fail",message:`Syntax error in ${o}: ${w instanceof Error?w.message:String(w)}`})}else n.push({id:"config",name:"Configuration File",status:"warn",message:"No docs.json or dmd.json found (using default configuration)"});let m=ct(t),u=m.some(w=>{let g=Ae.default.basename(w,Ae.default.extname(w)).toLowerCase();return g==="readme"||g==="index"});m.length===0?n.push({id:"docs-content",name:"Documentation Documents",status:"warn",message:`No markdown documents (.md, .mdx) found in ${r}`}):u?n.push({id:"docs-content",name:"Documentation Documents",status:"pass",message:`Found ${m.length} markdown document(s) with valid home page`}):n.push({id:"docs-content",name:"Documentation Documents",status:"warn",message:`Found ${m.length} document(s), but missing a home page (README.md or index.md)`});let h=[],f=0;if(c){let w=[c.logo,c.favicon,c.theme?.logo?.light,c.theme?.logo?.dark,c.theme?.favicon,c.customCss].filter(Boolean);for(let g of w)if(typeof g=="string"&&!/^(https?:|data:|\/\/)/i.test(g)){if($r(g))continue;f++;let y=Ae.default.resolve(t,g.replace(/^\//,""));Re.default.existsSync(y)||h.push({ref:g,file:o||"docs.json"})}}for(let w of m){let g=Ae.default.join(t,w),y=Ae.default.dirname(g),x="";try{let D=Re.default.readFileSync(g,"utf-8");x=(0,bl.default)(D).content}catch{continue}let A=x.replace(/(```[\s\S]*?```|~~~[\s\S]*?~~~)/g,"").replace(/`[^`\n]*`/g,""),M=/!\[([^\]]*)\]\(([^)\s]+)(?:\s+["'][^"']*["'])?\)/g;for(let D of A.matchAll(M)){let $=D[2].trim();if(!/^(https?:|data:|\/\/|#)/i.test($)){f++;let z=$.split("?")[0].split("#")[0],O=Ae.default.resolve(y,z),U=Ae.default.resolve(t,z.replace(/^\//,""));!Re.default.existsSync(O)&&!Re.default.existsSync(U)&&h.push({ref:$,file:w})}}let E=/<img\s+[^>]*src=["']([^"']+)["']/gi;for(let D of A.matchAll(E)){let $=D[1].trim();if(!/^(https?:|data:|\/\/|#)/i.test($)){f++;let z=$.split("?")[0].split("#")[0],O=Ae.default.resolve(y,z),U=Ae.default.resolve(t,z.replace(/^\//,""));!Re.default.existsSync(O)&&!Re.default.existsSync(U)&&h.push({ref:$,file:w})}}let T=/<(?:Media|dmd-media)\s+[^>]*src=["']([^"']+)["']/gi;for(let D of A.matchAll(T)){let $=D[1].trim();if(!/^(https?:|data:|\/\/|#)/i.test($)){f++;let z=$.split("?")[0].split("#")[0],O=Ae.default.resolve(y,z),U=Ae.default.resolve(t,z.replace(/^\//,""));!Re.default.existsSync(O)&&!Re.default.existsSync(U)&&h.push({ref:$,file:w})}}}h.length>0?n.push({id:"assets",name:"Asset References",status:"fail",message:`Found ${h.length} missing local asset file(s)`,details:h.map(w=>`Missing "${w.ref}" referenced in ${w.file}`)}):n.push({id:"assets",name:"Asset References",status:"pass",message:f>0?`All ${f} local asset references verified`:"No local asset references found"});let b=Ae.default.join(t,".dmd");if(!Re.default.existsSync(b))n.push({id:"dmd-components",name:"Custom Components (.dmd)",status:"pass",message:"No custom components directory (.dmd) found (standard built-ins only)"});else{let w=Re.default.readdirSync(b),g=["setup.js","setup.mjs","setup.ts","languages.js","languages.ts","components.js","index.js"],y=w.filter(T=>T.endsWith(".svelte")),x=w.filter(T=>(T.endsWith(".tsx")||T.endsWith(".jsx"))&&!T.startsWith(".")),A=w.filter(T=>(T.endsWith(".ts")||T.endsWith(".js"))&&!g.includes(T)&&!T.endsWith(".d.ts")),M=[],E=0;for(let T of y){E++;let D=Ae.default.join(b,T);try{let $=Re.default.readFileSync(D,"utf-8"),z=T.replace(/\.svelte$/,""),O=Dt(z),U=pn($,O);(0,qs.compile)(U,{filename:T,customElement:!0,generate:"client"})}catch($){M.push(`${T}: ${$ instanceof Error?$.message:String($)}`)}}for(let T of x){E++;let D=Ae.default.join(b,T);try{let $=Re.default.readFileSync(D,"utf-8"),z=Ae.default.basename(T,Ae.default.extname(T)),O=Dt(z),U=na($,{name:z,tag:O,filename:T});U.success&&U.svelteSource?(0,qs.compile)(U.svelteSource,{filename:`${z}.svelte`,customElement:!0,generate:"client"}):(0,Hs.transformSync)($,{loader:T.endsWith(".tsx")?"tsx":"jsx",target:"es2022"})}catch($){M.push(`${T}: ${$ instanceof Error?$.message:String($)}`)}}for(let T of A){E++;let D=Ae.default.join(b,T);try{let $=Re.default.readFileSync(D,"utf-8");(0,Hs.transformSync)($,{loader:T.endsWith(".ts")?"ts":"js",target:"es2022"})}catch($){M.push(`${T}: ${$ instanceof Error?$.message:String($)}`)}}M.length>0?n.push({id:"dmd-components",name:"Custom Components (.dmd)",status:"fail",message:`Compilation failed for ${M.length} custom component(s)`,details:M}):n.push({id:"dmd-components",name:"Custom Components (.dmd)",status:"pass",message:E>0?`All ${E} custom component(s) compiled cleanly`:"No custom components in .dmd/ directory"})}return vl(n,e,r)}function vl(r,e,t){let n={pass:r.filter(i=>i.status==="pass").length,warn:r.filter(i=>i.status==="warn").length,fail:r.filter(i=>i.status==="fail").length},a=n.fail===0,s={ok:a,checks:r,summary:n};if(!e.silent)if(e.json)console.log(JSON.stringify(s,null,2));else{console.log(kt.default.bold(`
287
287
  \u{1FA7A} DocMeDown Doctor \u2014 System & Documentation Diagnostics (${kt.default.cyan(t)})`)),console.log("\u2500".repeat(70));for(let i of r){let o;if(i.status==="pass"?o=kt.default.green("\u2714 [PASS]"):i.status==="warn"?o=kt.default.yellow("\u26A0 [WARN]"):o=kt.default.red("\u2716 [FAIL]"),console.log(`${o} ${kt.default.bold(i.name)}: ${i.message}`),i.details&&i.details.length>0)for(let c of i.details)console.log(kt.default.red(` \u2514\u2500 ${c}`))}console.log("\u2500".repeat(70)),console.log(a?kt.default.green(`\u2728 Doctor found 0 critical issues (${n.pass} passed, ${n.warn} warning(s)). Ready to build/serve!
288
288
  `):kt.default.red(`\u2716 Doctor found ${n.fail} critical issue(s). Please resolve them before deployment.
289
- `))}return e.exitOnError&&!a&&typeof process<"u"&&(process.exitCode=1),s}var Re,Ae,kt,Hs,yl,qs,kl=Ze(()=>{"use strict";Re=J(require("fs")),Ae=J(require("path")),kt=J(require("chalk")),Hs=require("esbuild"),yl=J(require("gray-matter")),qs=require("svelte/compiler");Er();hn();Cs();Kr()});var sa=J(require("fs")),tn=J(require("path")),Sl=require("commander");ln();var H=J(require("fs")),Io=J(require("os")),F=J(require("path")),_o=require("zlib"),pe=J(require("chalk")),No=J(require("chokidar")),$s=require("esbuild"),Es=require("svelte/compiler");dn();Er();var un={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",webp:"image/webp",gif:"image/gif",avif:"image/avif",bmp:"image/bmp",ico:"image/x-icon",cur:"image/x-icon",tif:"image/tiff",tiff:"image/tiff",apng:"image/apng",svg:"image/svg+xml",svgz:"image/svg+xml",mp4:"video/mp4",m4v:"video/mp4",webm:"video/webm",ogv:"video/ogg",mov:"video/quicktime",avi:"video/x-msvideo",mkv:"video/x-matroska",wmv:"video/x-ms-wmv",flv:"video/x-flv",mp3:"audio/mpeg",wav:"audio/wav",wave:"audio/wav",ogg:"audio/ogg",oga:"audio/ogg",opus:"audio/opus",aac:"audio/aac",m4a:"audio/mp4",flac:"audio/flac",weba:"audio/webm",wma:"audio/x-ms-wma",mid:"audio/midi",midi:"audio/midi"};function ec(r){if(!r)return"";let e=r.trim().split("#")[0].split("?")[0],t=e.lastIndexOf(".");return t===-1||t===e.length-1?"":e.slice(t+1).toLowerCase()}function ua(r,e){if(e?.trim()){let n=e.trim().toLowerCase();if(n.includes("/"))return n;if(un[n])return un[n]}if(pr(r)){let n=tc(r);if(n)return n.mimeType}let t=ec(r);return t&&un[t]?un[t]:"application/octet-stream"}function pr(r){return r?/^data:([a-zA-Z0-9!#$&^_.+-]+\/[a-zA-Z0-9!#$&^_.+-]+)?(?:;charset=[a-zA-Z0-9-]+)?(?:;base64)?,/i.test(r.trim()):!1}function tc(r){if(!r)return null;let e=/^data:([^;,]+)?(?:;charset=[^;,]+)?(;base64)?,(.*)$/is.exec(r.trim());return e?{mimeType:e[1]||"text/plain",isBase64:!!e[2],data:e[3]}:null}function ma(r,e){let t;if(typeof r=="string")typeof Buffer<"u"?t=Buffer.from(r,"utf-8").toString("base64"):t=btoa(unescape(encodeURIComponent(r)));else{let n=r instanceof Uint8Array?r:new Uint8Array(r);if(typeof Buffer<"u")t=Buffer.from(n).toString("base64");else{let a="";for(let i=0;i<n.length;i+=32768)a+=String.fromCharCode(...n.subarray(i,i+32768));t=btoa(a)}}return`data:${e};base64,${t}`}Er();var Rr="dmd-splash",pa="dmd-splash-hidden",mn="dmd-splash-active",rc="__DOCMEDOWN_SPLASH_START__";function Pt(r){return r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}var nc=/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i;function ei(r){let e=r?.trim();return e&&nc.test(e)?e:void 0}function ti(r){let e=r?.trim();if(!e||e.length>512||/[<>"'`]/.test(e))return;let t=e.toLowerCase();if(!(t.startsWith("javascript:")||t.startsWith("data:text/html")||t.startsWith("vbscript:"))&&(/^(https?:\/\/|data:image\/|\.\.?\/|#|\/[^/]|[^:/?#]+\/)/i.test(e)||/^[^:/?#\s]+\.[a-z0-9]+/i.test(e)||/^[\w\-.]+$/i.test(e)))return e}function ac(r,e){let t=ei(r),n=ei(e),a=[];return t&&a.push(`:root{--dmd-splash-accent:${t}}`),(t||n)&&a.push(`:root[data-theme=dark]{--dmd-splash-accent:${n??t}}`),a.length>0?`<style>${a.join("")}</style>`:""}var sc=`<style>
289
+ `))}return e.exitOnError&&!a&&typeof process<"u"&&(process.exitCode=1),s}var Re,Ae,kt,Hs,bl,qs,xl=Ze(()=>{"use strict";Re=J(require("fs")),Ae=J(require("path")),kt=J(require("chalk")),Hs=require("esbuild"),bl=J(require("gray-matter")),qs=require("svelte/compiler");Er();hn();Cs();Kr()});var sa=J(require("fs")),tn=J(require("path")),kl=require("commander");ln();var H=J(require("fs")),Io=J(require("os")),F=J(require("path")),_o=require("zlib"),pe=J(require("chalk")),No=J(require("chokidar")),$s=require("esbuild"),Es=require("svelte/compiler");dn();Er();var un={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",webp:"image/webp",gif:"image/gif",avif:"image/avif",bmp:"image/bmp",ico:"image/x-icon",cur:"image/x-icon",tif:"image/tiff",tiff:"image/tiff",apng:"image/apng",svg:"image/svg+xml",svgz:"image/svg+xml",mp4:"video/mp4",m4v:"video/mp4",webm:"video/webm",ogv:"video/ogg",mov:"video/quicktime",avi:"video/x-msvideo",mkv:"video/x-matroska",wmv:"video/x-ms-wmv",flv:"video/x-flv",mp3:"audio/mpeg",wav:"audio/wav",wave:"audio/wav",ogg:"audio/ogg",oga:"audio/ogg",opus:"audio/opus",aac:"audio/aac",m4a:"audio/mp4",flac:"audio/flac",weba:"audio/webm",wma:"audio/x-ms-wma",mid:"audio/midi",midi:"audio/midi"};function Ql(r){if(!r)return"";let e=r.trim().split("#")[0].split("?")[0],t=e.lastIndexOf(".");return t===-1||t===e.length-1?"":e.slice(t+1).toLowerCase()}function ua(r,e){if(e?.trim()){let n=e.trim().toLowerCase();if(n.includes("/"))return n;if(un[n])return un[n]}if(pr(r)){let n=ec(r);if(n)return n.mimeType}let t=Ql(r);return t&&un[t]?un[t]:"application/octet-stream"}function pr(r){return r?/^data:([a-zA-Z0-9!#$&^_.+-]+\/[a-zA-Z0-9!#$&^_.+-]+)?(?:;charset=[a-zA-Z0-9-]+)?(?:;base64)?,/i.test(r.trim()):!1}function ec(r){if(!r)return null;let e=/^data:([^;,]+)?(?:;charset=[^;,]+)?(;base64)?,(.*)$/is.exec(r.trim());return e?{mimeType:e[1]||"text/plain",isBase64:!!e[2],data:e[3]}:null}function ma(r,e){let t;if(typeof r=="string")typeof Buffer<"u"?t=Buffer.from(r,"utf-8").toString("base64"):t=btoa(unescape(encodeURIComponent(r)));else{let n=r instanceof Uint8Array?r:new Uint8Array(r);if(typeof Buffer<"u")t=Buffer.from(n).toString("base64");else{let a="";for(let i=0;i<n.length;i+=32768)a+=String.fromCharCode(...n.subarray(i,i+32768));t=btoa(a)}}return`data:${e};base64,${t}`}Er();var Rr="dmd-splash",pa="dmd-splash-hidden",mn="dmd-splash-active",tc="__DOCMEDOWN_SPLASH_START__";function Pt(r){return r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}var rc=/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i;function ei(r){let e=r?.trim();return e&&rc.test(e)?e:void 0}function ti(r){let e=r?.trim();if(!e||e.length>512||/[<>"'`]/.test(e))return;let t=e.toLowerCase();if(!(t.startsWith("javascript:")||t.startsWith("data:text/html")||t.startsWith("vbscript:"))&&(/^(https?:\/\/|data:image\/|\.\.?\/|#|\/[^/]|[^:/?#]+\/)/i.test(e)||/^[^:/?#\s]+\.[a-z0-9]+/i.test(e)||/^[\w\-.]+$/i.test(e)))return e}function nc(r,e){let t=ei(r),n=ei(e),a=[];return t&&a.push(`:root{--dmd-splash-accent:${t}}`),(t||n)&&a.push(`:root[data-theme=dark]{--dmd-splash-accent:${n??t}}`),a.length>0?`<style>${a.join("")}</style>`:""}var ac=`<style>
290
290
  html.dmd-splash-active{overflow:hidden}
291
291
  html,body{margin:0}
292
292
  :root{--dmd-splash-bg:#f7f7f5;--dmd-splash-surface:#ffffff;--dmd-splash-line:#ddded8;--dmd-splash-ink:#1a1d21;--dmd-splash-muted:#788089;--dmd-splash-bone:#e4e6e3;--dmd-splash-shine:#ffffff;--dmd-splash-accent:#315cf5;--dmd-splash-code:#16181d;--dmd-splash-code-head:#101216;--dmd-splash-code-line:#262b33;--dmd-splash-navh:68px;--dmd-splash-radius:10px;--dmd-splash-radius-sm:6px}
@@ -402,13 +402,13 @@ html,body{margin:0}
402
402
  :root[data-dmd-motion=reduced] #dmd-splash,:root[data-dmd-motion=off] #dmd-splash{transition:none}
403
403
  :root[data-dmd-motion=reduced] .dmd-splash-bone::after,:root[data-dmd-motion=off] .dmd-splash-bone::after{display:none}
404
404
  :root[data-dmd-motion=reduced] .dmd-splash-progress::after,:root[data-dmd-motion=off] .dmd-splash-progress::after{animation:none}
405
- </style>`,ic=`<script>(function(){try{var h=document.documentElement,l=window.localStorage,m=l&&l.getItem("dmd-color-mode"),f=l&&l.getItem("dmd-theme-family"),n=l&&l.getItem("dmd-theme-density"),mot=l&&l.getItem("dmd-motion");if(m!=="light"&&m!=="dark"&&m!=="auto")m="auto";if(["atlas","blueprint","terminal","editorial"].indexOf(f)<0)f="atlas";if(n!=="comfortable"&&n!=="compact")n="comfortable";if(mot!=="reduced"&&mot!=="off")mot="full";var d=m==="dark"||(m==="auto"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches),v=d?"dark":"light";h.setAttribute("data-theme",v);h.setAttribute("data-dmd-mode",v);h.setAttribute("data-dmd-theme",f);h.setAttribute("data-dmd-density",n);h.setAttribute("data-dmd-motion",mot);h.style.colorScheme=v;var isMac=/^mac/i.test((navigator.userAgentData&&navigator.userAgentData.platform)||navigator.platform||navigator.userAgent||"");h.setAttribute("data-dmd-os",isMac?"mac":"other");h.className+=" ${mn}";window.${rc}=Date.now();window.setTimeout(function(){var s=document.getElementById("${Rr}");if(!s)return;s.className+=" ${pa}";s.setAttribute("aria-hidden","true");h.className=h.className.replace(" ${mn}","");window.setTimeout(function(){s.parentNode&&s.parentNode.removeChild(s)},450)},9000)}catch(e){}})();</script>`;function tr(r={}){return`${sc}${ac(r.accent,r.accentDark)}${ic}<noscript><style>#${Rr}{display:none!important}html.dmd-splash-active{overflow:auto!important}</style></noscript>`}function rr({name:r="Documentation",tagline:e,version:t,logo:n,logoDark:a,logoAlt:s,searchPlaceholder:i}={}){let o=r.trim()||"Documentation",c=Pt(o),m=ti(n),u=ti(a),h=Pt((s??o).trim()||o),f=m?`<img class="dmd-splash-logo dmd-splash-logo-light" src="${Pt(m)}" alt="${h}" decoding="async" />`+(u?`<img class="dmd-splash-logo dmd-splash-logo-dark" src="${Pt(u)}" alt="${h}" decoding="async" />`:""):'<span class="dmd-splash-mark" aria-hidden="true"><svg viewBox="0 0 32 32" fill="none"><path d="M10 4.5h8.6c.4 0 .8.2 1.1.5l4.3 4.3c.3.3.5.7.5 1.1V25.5a2 2 0 0 1-2 2H10a2 2 0 0 1-2-2V6.5a2 2 0 0 1 2-2Z"/><path d="M18.7 4.7v3.6a2 2 0 0 0 2 2h3.6"/><path d="M12 15h8"/><path d="M12 19.5h8"/><path d="M12 24h5"/></svg></span>',b=t?.trim().replace(/^v/i,"").slice(0,24)??"",w=b?`<span class="dmd-splash-version">v${Pt(b)}</span>`:"",g=e?.trim().slice(0,220)??"",y=g?`<p class="dmd-splash-desc">${Pt(g)}</p>`:'<span class="dmd-splash-bone w70"></span>',x=i?.trim()||"Search docs\u2026",A=Pt(x.replace(/Ctrl\+?K/gi,"\u2318K")),M=Pt(x.replace(/⌘K/g,"Ctrl K").replace(/⌘/g,"Ctrl"));return`<div id="${Rr}" role="status" aria-live="polite" aria-busy="true" aria-label="Loading ${c}"><div class="dmd-splash-bar"><div class="dmd-splash-brand">${f}<span class="dmd-splash-name">${c}</span>${w}</div><div class="dmd-splash-search" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg><span class="dmd-splash-search-mac">${A}</span><span class="dmd-splash-search-win">${M}</span><kbd></kbd></div><div class="dmd-splash-actions" aria-hidden="true"><i></i><i></i><i class="dmd-splash-action-pill"></i><i class="dmd-splash-action-pill"></i><i></i></div><span class="dmd-splash-progress" aria-hidden="true"></span></div><div class="dmd-splash-body" aria-hidden="true"><div class="dmd-splash-nav"><span class="dmd-splash-nav-label">Documentation</span><span class="dmd-splash-nav-group"><span class="dmd-splash-nav-item dmd-splash-nav-active"><span class="dmd-splash-bone w70"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w80"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w60"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w80"></span></span></span><span class="dmd-splash-nav-group"><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w50"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w80"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w70"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w60"></span></span></span><span class="dmd-splash-nav-group"><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w40"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w70"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w60"></span></span></span></div><div class="dmd-splash-main-wrapper"><div class="dmd-splash-article"><div class="dmd-splash-crumb-row"><span class="dmd-splash-crumb" style="width:44px"></span><span class="dmd-splash-crumb-sep"></span><span class="dmd-splash-crumb current"></span></div><h1 class="dmd-splash-doc-title">${c}</h1>${y}<div class="dmd-splash-meta"><span class="dmd-splash-bone" style="width:72px"></span><span class="dmd-splash-bone" style="width:54px"></span></div><span class="dmd-splash-bone w90"></span><span class="dmd-splash-bone w80"></span><span class="dmd-splash-bone w70"></span><div class="dmd-splash-callout"><span class="dmd-splash-bone w30"></span><span class="dmd-splash-bone w70"></span></div><span class="dmd-splash-h2" style="width:38%"></span><span class="dmd-splash-bone w90"></span><span class="dmd-splash-bone w70"></span><div class="dmd-splash-code"><div class="dmd-splash-code-head"><i></i><i></i><i></i></div><div class="dmd-splash-code-body"><span class="dmd-splash-bone" style="width:45%"></span><span class="dmd-splash-bone" style="width:70%"></span><span class="dmd-splash-bone" style="width:55%"></span><span class="dmd-splash-bone" style="width:62%"></span></div></div></div><div class="dmd-splash-toc"><div class="dmd-splash-toc-header"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="8" x2="21" y1="6" y2="6"/><line x1="8" x2="21" y1="12" y2="12"/><line x1="8" x2="21" y1="18" y2="18"/><line x1="3" x2="3.01" y1="6" y2="6"/><line x1="3" x2="3.01" y1="12" y2="12"/><line x1="3" x2="3.01" y1="18" y2="18"/></svg><span class="dmd-splash-toc-label">On this page</span></div><div class="dmd-splash-toc-list"><span class="dmd-splash-bone dmd-splash-toc-active" style="width:72%"></span><span class="dmd-splash-bone w90"></span><span class="dmd-splash-bone w70"></span><span class="dmd-splash-bone w80"></span><span class="dmd-splash-bone w60"></span></div></div></div></div><span class="dmd-splash-sr">Loading documentation\u2026</span></div>`}var ha=2;function ri(r){return r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function ni(r,e,t={},n){let a=`(async()=>{try{const b=Uint8Array.from(atob(document.getElementById("d").textContent.trim()),c=>c.charCodeAt(0)),s=await new Response(new Blob([b]).stream().pipeThrough(new DecompressionStream("gzip"))).text(),e=JSON.parse(s);if(e.version!==${ha})throw new Error("Unsupported offline format");window.__DOCMEDOWN_OFFLINE__=true;window.__DOCMEDOWN_DATA__=e.data;window.__DOCMEDOWN_CONFIG__=e.data.manifest.config;const u=URL.createObjectURL(new Blob([e.runtime],{type:"text/javascript"}));window.__DOCMEDOWN_RUNTIME_URL__=u;const j=document.createElement("script");j.src=u;j.onerror=()=>{URL.revokeObjectURL(u);throw new Error("Runtime bootstrap failed")};document.head.appendChild(j)}catch(e){var p=document.getElementById("${Rr}");if(p){p.className+=" ${pa}";p.setAttribute("aria-hidden","true");setTimeout(function(){p.parentNode&&p.parentNode.removeChild(p)},600)}var h=document.documentElement;h.className=h.className.replace(" ${mn}","");document.getElementById("dmd-app").textContent="Could not open this offline documentation copy: "+e.message}})();`,s=ri(Bt(n)),i=' type="image/svg+xml"';return s.startsWith("data:image/png")||/\.png($|\?)/i.test(s)?i=' type="image/png"':(s.startsWith("data:image/x-icon")||/\.ico($|\?)/i.test(s))&&(i=' type="image/x-icon"'),`<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon"${i} href="${s}"><title>${ri(e)}</title>${tr(t)}</head><body>${rr({name:e,...t})}<div id="dmd-app"></div><script id="d" type="application/octet-stream">${r}</script><script>${a}</script></body></html>`}hn();var ai=J(require("fs")),si=J(require("path"));function ii(r){return r.replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n?/,"").replace(/```[\s\S]*?```/g,e=>e.replace(/^```.*$/gm,"").split(`
405
+ </style>`,sc=`<script>(function(){try{var h=document.documentElement,l=window.localStorage,m=l&&l.getItem("dmd-color-mode"),f=l&&l.getItem("dmd-theme-family"),n=l&&l.getItem("dmd-theme-density"),mot=l&&l.getItem("dmd-motion");if(m!=="light"&&m!=="dark"&&m!=="auto")m="auto";if(["atlas","blueprint","terminal","editorial"].indexOf(f)<0)f="atlas";if(n!=="comfortable"&&n!=="compact")n="comfortable";if(mot!=="reduced"&&mot!=="off")mot="full";var d=m==="dark"||(m==="auto"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches),v=d?"dark":"light";h.setAttribute("data-theme",v);h.setAttribute("data-dmd-mode",v);h.setAttribute("data-dmd-theme",f);h.setAttribute("data-dmd-density",n);h.setAttribute("data-dmd-motion",mot);h.style.colorScheme=v;var isMac=/^mac/i.test((navigator.userAgentData&&navigator.userAgentData.platform)||navigator.platform||navigator.userAgent||"");h.setAttribute("data-dmd-os",isMac?"mac":"other");h.className+=" ${mn}";window.${tc}=Date.now();window.setTimeout(function(){var s=document.getElementById("${Rr}");if(!s)return;s.className+=" ${pa}";s.setAttribute("aria-hidden","true");h.className=h.className.replace(" ${mn}","");window.setTimeout(function(){s.parentNode&&s.parentNode.removeChild(s)},450)},9000)}catch(e){}})();</script>`;function tr(r={}){return`${ac}${nc(r.accent,r.accentDark)}${sc}<noscript><style>#${Rr}{display:none!important}html.dmd-splash-active{overflow:auto!important}</style></noscript>`}function rr({name:r="Documentation",tagline:e,version:t,logo:n,logoDark:a,logoAlt:s,searchPlaceholder:i}={}){let o=r.trim()||"Documentation",c=Pt(o),m=ti(n),u=ti(a),h=Pt((s??o).trim()||o),f=m?`<img class="dmd-splash-logo dmd-splash-logo-light" src="${Pt(m)}" alt="${h}" decoding="async" />`+(u?`<img class="dmd-splash-logo dmd-splash-logo-dark" src="${Pt(u)}" alt="${h}" decoding="async" />`:""):'<span class="dmd-splash-mark" aria-hidden="true"><svg viewBox="0 0 32 32" fill="none"><path d="M10 4.5h8.6c.4 0 .8.2 1.1.5l4.3 4.3c.3.3.5.7.5 1.1V25.5a2 2 0 0 1-2 2H10a2 2 0 0 1-2-2V6.5a2 2 0 0 1 2-2Z"/><path d="M18.7 4.7v3.6a2 2 0 0 0 2 2h3.6"/><path d="M12 15h8"/><path d="M12 19.5h8"/><path d="M12 24h5"/></svg></span>',b=t?.trim().replace(/^v/i,"").slice(0,24)??"",w=b?`<span class="dmd-splash-version">v${Pt(b)}</span>`:"",g=e?.trim().slice(0,220)??"",y=g?`<p class="dmd-splash-desc">${Pt(g)}</p>`:'<span class="dmd-splash-bone w70"></span>',x=i?.trim()||"Search docs\u2026",A=Pt(x.replace(/Ctrl\+?K/gi,"\u2318K")),M=Pt(x.replace(/⌘K/g,"Ctrl K").replace(/⌘/g,"Ctrl"));return`<div id="${Rr}" role="status" aria-live="polite" aria-busy="true" aria-label="Loading ${c}"><div class="dmd-splash-bar"><div class="dmd-splash-brand">${f}<span class="dmd-splash-name">${c}</span>${w}</div><div class="dmd-splash-search" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg><span class="dmd-splash-search-mac">${A}</span><span class="dmd-splash-search-win">${M}</span><kbd></kbd></div><div class="dmd-splash-actions" aria-hidden="true"><i></i><i></i><i class="dmd-splash-action-pill"></i><i class="dmd-splash-action-pill"></i><i></i></div><span class="dmd-splash-progress" aria-hidden="true"></span></div><div class="dmd-splash-body" aria-hidden="true"><div class="dmd-splash-nav"><span class="dmd-splash-nav-label">Documentation</span><span class="dmd-splash-nav-group"><span class="dmd-splash-nav-item dmd-splash-nav-active"><span class="dmd-splash-bone w70"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w80"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w60"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w80"></span></span></span><span class="dmd-splash-nav-group"><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w50"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w80"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w70"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w60"></span></span></span><span class="dmd-splash-nav-group"><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w40"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w70"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w60"></span></span></span></div><div class="dmd-splash-main-wrapper"><div class="dmd-splash-article"><div class="dmd-splash-crumb-row"><span class="dmd-splash-crumb" style="width:44px"></span><span class="dmd-splash-crumb-sep"></span><span class="dmd-splash-crumb current"></span></div><h1 class="dmd-splash-doc-title">${c}</h1>${y}<div class="dmd-splash-meta"><span class="dmd-splash-bone" style="width:72px"></span><span class="dmd-splash-bone" style="width:54px"></span></div><span class="dmd-splash-bone w90"></span><span class="dmd-splash-bone w80"></span><span class="dmd-splash-bone w70"></span><div class="dmd-splash-callout"><span class="dmd-splash-bone w30"></span><span class="dmd-splash-bone w70"></span></div><span class="dmd-splash-h2" style="width:38%"></span><span class="dmd-splash-bone w90"></span><span class="dmd-splash-bone w70"></span><div class="dmd-splash-code"><div class="dmd-splash-code-head"><i></i><i></i><i></i></div><div class="dmd-splash-code-body"><span class="dmd-splash-bone" style="width:45%"></span><span class="dmd-splash-bone" style="width:70%"></span><span class="dmd-splash-bone" style="width:55%"></span><span class="dmd-splash-bone" style="width:62%"></span></div></div></div><div class="dmd-splash-toc"><div class="dmd-splash-toc-header"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="8" x2="21" y1="6" y2="6"/><line x1="8" x2="21" y1="12" y2="12"/><line x1="8" x2="21" y1="18" y2="18"/><line x1="3" x2="3.01" y1="6" y2="6"/><line x1="3" x2="3.01" y1="12" y2="12"/><line x1="3" x2="3.01" y1="18" y2="18"/></svg><span class="dmd-splash-toc-label">On this page</span></div><div class="dmd-splash-toc-list"><span class="dmd-splash-bone dmd-splash-toc-active" style="width:72%"></span><span class="dmd-splash-bone w90"></span><span class="dmd-splash-bone w70"></span><span class="dmd-splash-bone w80"></span><span class="dmd-splash-bone w60"></span></div></div></div></div><span class="dmd-splash-sr">Loading documentation\u2026</span></div>`}var ha=2;function ri(r){return r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function ni(r,e,t={},n){let a=`(async()=>{try{const b=Uint8Array.from(atob(document.getElementById("d").textContent.trim()),c=>c.charCodeAt(0)),s=await new Response(new Blob([b]).stream().pipeThrough(new DecompressionStream("gzip"))).text(),e=JSON.parse(s);if(e.version!==${ha})throw new Error("Unsupported offline format");window.__DOCMEDOWN_OFFLINE__=true;window.__DOCMEDOWN_DATA__=e.data;window.__DOCMEDOWN_CONFIG__=e.data.manifest.config;const u=URL.createObjectURL(new Blob([e.runtime],{type:"text/javascript"}));window.__DOCMEDOWN_RUNTIME_URL__=u;const j=document.createElement("script");j.src=u;j.onerror=()=>{URL.revokeObjectURL(u);throw new Error("Runtime bootstrap failed")};document.head.appendChild(j)}catch(e){var p=document.getElementById("${Rr}");if(p){p.className+=" ${pa}";p.setAttribute("aria-hidden","true");setTimeout(function(){p.parentNode&&p.parentNode.removeChild(p)},600)}var h=document.documentElement;h.className=h.className.replace(" ${mn}","");document.getElementById("dmd-app").textContent="Could not open this offline documentation copy: "+e.message}})();`,s=ri(Bt(n)),i=' type="image/svg+xml"';return s.startsWith("data:image/png")||/\.png($|\?)/i.test(s)?i=' type="image/png"':(s.startsWith("data:image/x-icon")||/\.ico($|\?)/i.test(s))&&(i=' type="image/x-icon"'),`<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon"${i} href="${s}"><title>${ri(e)}</title>${tr(t)}</head><body>${rr({name:e,...t})}<div id="dmd-app"></div><script id="d" type="application/octet-stream">${r}</script><script>${a}</script></body></html>`}hn();var ai=J(require("fs")),si=J(require("path"));function ii(r){return r.replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n?/,"").replace(/```[\s\S]*?```/g,e=>e.replace(/^```.*$/gm,"").split(`
406
406
  `).map(t=>t.trim()?` ${t}`:t).join(`
407
407
  `)).replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/^#{1,6}\s+/gm,"").replace(/[*_>|]/g,"").replace(/<[^>]+>/g," ").replace(/\n{3,}/g,`
408
408
 
409
- `).trim()}function lc(r){return r.url?r.url.replace(/\/+$/,""):null}function fa(r,e){let t=e==="README"?"":`${e}/`,n=lc(r);return n?`${n}/${t}`:`/${t}`}function ga(r){if(!r)return"";let e=r.replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n?/,"");for(let t of e.split(/\n{2,}/)){let n=t.trim();if(!n||n.startsWith("#")||n.startsWith("---")||n.startsWith("<"))continue;let a=ii(n).replace(/\s+/g," ");return a.length>200?`${a.slice(0,200).trimEnd()}\u2026`:a}return""}function cc(r,e){let t=[`# ${e.name||"Documentation"}`];(e.description||e.tagline)&&t.push("",`> ${e.description||e.tagline}`),t.push("","## Docs","");for(let n of r.docs){if(n.frontmatter?.hidden===!0)continue;let a=n.frontmatter?.description||ga(n.content);t.push(`- [${n.title}](${fa(e,n.slug)})${a?`: ${a}`:""}`)}return`${t.join(`
409
+ `).trim()}function oc(r){return r.url?r.url.replace(/\/+$/,""):null}function fa(r,e){let t=e==="README"?"":`${e}/`,n=oc(r);return n?`${n}/${t}`:`/${t}`}function ga(r){if(!r)return"";let e=r.replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n?/,"");for(let t of e.split(/\n{2,}/)){let n=t.trim();if(!n||n.startsWith("#")||n.startsWith("---")||n.startsWith("<"))continue;let a=ii(n).replace(/\s+/g," ");return a.length>200?`${a.slice(0,200).trimEnd()}\u2026`:a}return""}function lc(r,e){let t=[`# ${e.name||"Documentation"}`];(e.description||e.tagline)&&t.push("",`> ${e.description||e.tagline}`),t.push("","## Docs","");for(let n of r.docs){if(n.frontmatter?.hidden===!0)continue;let a=n.frontmatter?.description||ga(n.content);t.push(`- [${n.title}](${fa(e,n.slug)})${a?`: ${a}`:""}`)}return`${t.join(`
410
410
  `)}
411
- `}function dc(r,e){let t=[`# ${e.name||"Documentation"}`];(e.description||e.tagline)&&t.push(`> ${e.description||e.tagline}`);for(let n of r.docs){if(n.frontmatter?.hidden===!0)continue;let a=(n.content||"").replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n?/,"").trim();t.push(`## ${n.title}
411
+ `}function cc(r,e){let t=[`# ${e.name||"Documentation"}`];(e.description||e.tagline)&&t.push(`> ${e.description||e.tagline}`);for(let n of r.docs){if(n.frontmatter?.hidden===!0)continue;let a=(n.content||"").replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n?/,"").trim();t.push(`## ${n.title}
412
412
 
413
413
  URL: ${fa(e,n.slug)}
414
414
 
@@ -417,13 +417,13 @@ ${a}`)}return`${t.join(`
417
417
  ---
418
418
 
419
419
  `)}
420
- `}function uc(r,e){let t=(e.name||"documentation").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,48)||"documentation",n=e.description||e.tagline||`Reference documentation for ${e.name}.`,a=["---",`name: ${t}`,`description: ${n.replace(/\n/g," ")}`,"---","",`# ${e.name||"Documentation"}`,"","This is a DocMeDown-generated documentation corpus. Use it to answer questions about the documented project.","","## How to use this skill","","1. Consult the document list below and read the most relevant documents in full.","2. Prefer quoting the document's own headings when citing.","3. If information is missing, say so instead of guessing.","","## Documents",""];for(let s of r.docs){if(s.frontmatter?.hidden===!0)continue;let i=s.frontmatter?.description||ga(s.content);a.push(`- [${s.title}](${fa(e,s.slug)})${i?`: ${i}`:""}`)}return`${a.join(`
420
+ `}function dc(r,e){let t=(e.name||"documentation").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,48)||"documentation",n=e.description||e.tagline||`Reference documentation for ${e.name}.`,a=["---",`name: ${t}`,`description: ${n.replace(/\n/g," ")}`,"---","",`# ${e.name||"Documentation"}`,"","This is a DocMeDown-generated documentation corpus. Use it to answer questions about the documented project.","","## How to use this skill","","1. Consult the document list below and read the most relevant documents in full.","2. Prefer quoting the document's own headings when citing.","3. If information is missing, say so instead of guessing.","","## Documents",""];for(let s of r.docs){if(s.frontmatter?.hidden===!0)continue;let i=s.frontmatter?.description||ga(s.content);a.push(`- [${s.title}](${fa(e,s.slug)})${i?`: ${i}`:""}`)}return`${a.join(`
421
421
  `)}
422
- `}function mc(r,e){let t={format:"docmedown-okf",version:1,generatedAt:r.generatedAt,site:{name:e.name,description:e.description||e.tagline||"",url:e.url??null,generator:"docmedown"},documents:r.docs.filter(n=>n.frontmatter?.hidden!==!0).map(n=>({slug:n.slug,path:n.path,title:n.title,category:n.category??null,description:n.frontmatter?.description??ga(n.content)??"",headings:n.headings.map(a=>({level:a.level,text:a.text,id:a.id})),readingTimeMinutes:n.readingTimeMinutes??null,lastModified:n.lastModified??null,plainText:ii(n.content||"")}))};return`${JSON.stringify(t,null,2)}
423
- `}function oi(r,e,t){let n=[["llms.txt",cc(e,t)],["llms-full.txt",dc(e,t)],["SKILL.md",uc(e,t)],["okf.json",mc(e,t)]],a=[];for(let[s,i]of n){let o=si.default.join(r,s);ai.default.writeFileSync(o,i,"utf-8"),a.push(o)}return a}var Yt=J(require("fs")),Jt=J(require("path")),Xr=J(require("chalk"));Er();function ya(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ar=ya();function pi(r){ar=r}var hi=/[&<>"']/,pc=new RegExp(hi.source,"g"),fi=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,hc=new RegExp(fi.source,"g"),fc={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},li=r=>fc[r];function Xe(r,e){if(e){if(hi.test(r))return r.replace(pc,li)}else if(fi.test(r))return r.replace(hc,li);return r}var gc=/(^|[^\[])\^/g;function ue(r,e){let t=typeof r=="string"?r:r.source;e=e||"";let n={replace:(a,s)=>{let i=typeof s=="string"?s:s.source;return i=i.replace(gc,"$1"),t=t.replace(a,i),n},getRegex:()=>new RegExp(t,e)};return n}function ci(r){try{r=encodeURI(r).replace(/%25/g,"%")}catch{return null}return r}var Or={exec:()=>null};function di(r,e){let t=r.replace(/\|/g,(s,i,o)=>{let c=!1,m=i;for(;--m>=0&&o[m]==="\\";)c=!c;return c?"|":" |"}),n=t.split(/ \|/),a=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;a<n.length;a++)n[a]=n[a].trim().replace(/\\\|/g,"|");return n}function zr(r,e,t){let n=r.length;if(n===0)return"";let a=0;for(;a<n;){let s=r.charAt(n-a-1);if(s===e&&!t)a++;else if(s!==e&&t)a++;else break}return r.slice(0,n-a)}function vc(r,e){if(r.indexOf(e[1])===-1)return-1;let t=0;for(let n=0;n<r.length;n++)if(r[n]==="\\")n++;else if(r[n]===e[0])t++;else if(r[n]===e[1]&&(t--,t<0))return n;return-1}function ui(r,e,t,n){let a=e.href,s=e.title?Xe(e.title):null,i=r[1].replace(/\\([\[\]])/g,"$1");if(r[0].charAt(0)!=="!"){n.state.inLink=!0;let o={type:"link",raw:t,href:a,title:s,text:i,tokens:n.inlineTokens(i)};return n.state.inLink=!1,o}return{type:"image",raw:t,href:a,title:s,text:Xe(i)}}function bc(r,e){let t=r.match(/^(\s+)(?:```)/);if(t===null)return e;let n=t[1];return e.split(`
422
+ `}function uc(r,e){let t={format:"docmedown-okf",version:1,generatedAt:r.generatedAt,site:{name:e.name,description:e.description||e.tagline||"",url:e.url??null,generator:"docmedown"},documents:r.docs.filter(n=>n.frontmatter?.hidden!==!0).map(n=>({slug:n.slug,path:n.path,title:n.title,category:n.category??null,description:n.frontmatter?.description??ga(n.content)??"",headings:n.headings.map(a=>({level:a.level,text:a.text,id:a.id})),readingTimeMinutes:n.readingTimeMinutes??null,lastModified:n.lastModified??null,plainText:ii(n.content||"")}))};return`${JSON.stringify(t,null,2)}
423
+ `}function oi(r,e,t){let n=[["llms.txt",lc(e,t)],["llms-full.txt",cc(e,t)],["SKILL.md",dc(e,t)],["okf.json",uc(e,t)]],a=[];for(let[s,i]of n){let o=si.default.join(r,s);ai.default.writeFileSync(o,i,"utf-8"),a.push(o)}return a}var Yt=J(require("fs")),Jt=J(require("path")),Xr=J(require("chalk"));Er();function ya(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ar=ya();function pi(r){ar=r}var hi=/[&<>"']/,mc=new RegExp(hi.source,"g"),fi=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,pc=new RegExp(fi.source,"g"),hc={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},li=r=>hc[r];function Xe(r,e){if(e){if(hi.test(r))return r.replace(mc,li)}else if(fi.test(r))return r.replace(pc,li);return r}var fc=/(^|[^\[])\^/g;function ue(r,e){let t=typeof r=="string"?r:r.source;e=e||"";let n={replace:(a,s)=>{let i=typeof s=="string"?s:s.source;return i=i.replace(fc,"$1"),t=t.replace(a,i),n},getRegex:()=>new RegExp(t,e)};return n}function ci(r){try{r=encodeURI(r).replace(/%25/g,"%")}catch{return null}return r}var Or={exec:()=>null};function di(r,e){let t=r.replace(/\|/g,(s,i,o)=>{let c=!1,m=i;for(;--m>=0&&o[m]==="\\";)c=!c;return c?"|":" |"}),n=t.split(/ \|/),a=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;a<n.length;a++)n[a]=n[a].trim().replace(/\\\|/g,"|");return n}function zr(r,e,t){let n=r.length;if(n===0)return"";let a=0;for(;a<n;){let s=r.charAt(n-a-1);if(s===e&&!t)a++;else if(s!==e&&t)a++;else break}return r.slice(0,n-a)}function gc(r,e){if(r.indexOf(e[1])===-1)return-1;let t=0;for(let n=0;n<r.length;n++)if(r[n]==="\\")n++;else if(r[n]===e[0])t++;else if(r[n]===e[1]&&(t--,t<0))return n;return-1}function ui(r,e,t,n){let a=e.href,s=e.title?Xe(e.title):null,i=r[1].replace(/\\([\[\]])/g,"$1");if(r[0].charAt(0)!=="!"){n.state.inLink=!0;let o={type:"link",raw:t,href:a,title:s,text:i,tokens:n.inlineTokens(i)};return n.state.inLink=!1,o}return{type:"image",raw:t,href:a,title:s,text:Xe(i)}}function vc(r,e){let t=r.match(/^(\s+)(?:```)/);if(t===null)return e;let n=t[1];return e.split(`
424
424
  `).map(a=>{let s=a.match(/^\s+/);if(s===null)return a;let[i]=s;return i.length>=n.length?a.slice(n.length):a}).join(`
425
425
  `)}var fr=class{options;rules;lexer;constructor(e){this.options=e||ar}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:zr(n,`
426
- `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],a=bc(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:a}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(/#$/.test(n)){let a=zr(n,"#");(this.options.pedantic||!a||/ $/.test(a))&&(n=a.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:zr(t[0],`
426
+ `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],a=vc(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:a}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(/#$/.test(n)){let a=zr(n,"#");(this.options.pedantic||!a||/ $/.test(a))&&(n=a.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:zr(t[0],`
427
427
  `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=zr(t[0],`
428
428
  `).split(`
429
429
  `),a="",s="",i=[];for(;n.length>0;){let o=!1,c=[],m;for(m=0;m<n.length;m++)if(/^ {0,3}>/.test(n[m]))c.push(n[m]),o=!0;else if(!o)c.push(n[m]);else break;n=n.slice(m);let u=c.join(`
@@ -444,8 +444,8 @@ ${h}`:h;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
444
444
  `+f}!b&&!f.trim()&&(b=!0),m+=D+`
445
445
  `,e=e.substring(D.length+1),h=$.slice(w)}}s.loose||(o?s.loose=!0:/\n[ \t]*\n[ \t]*$/.test(m)&&(o=!0));let g=null,y;this.options.gfm&&(g=/^\[[ xX]\] /.exec(u),g&&(y=g[0]!=="[ ] ",u=u.replace(/^\[[ xX]\] +/,""))),s.items.push({type:"list_item",raw:m,task:!!g,checked:y,loose:!1,text:u,tokens:[]}),s.raw+=m}s.items[s.items.length-1].raw=s.items[s.items.length-1].raw.trimEnd(),s.items[s.items.length-1].text=s.items[s.items.length-1].text.trimEnd(),s.raw=s.raw.trimEnd();for(let c=0;c<s.items.length;c++)if(this.lexer.state.top=!1,s.items[c].tokens=this.lexer.blockTokens(s.items[c].text,[]),!s.loose){let m=s.items[c].tokens.filter(h=>h.type==="space"),u=m.length>0&&m.some(h=>/\n.*\n/.test(h.raw));s.loose=u}if(s.loose)for(let c=0;c<s.items.length;c++)s.items[c].loose=!0;return s}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(/\s+/g," "),a=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:a,title:s}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!/[:|]/.test(t[2]))return;let n=di(t[1]),a=t[2].replace(/^\||\| *$/g,"").split("|"),s=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(`
446
446
  `):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===a.length){for(let o of a)/^ *-+: *$/.test(o)?i.align.push("right"):/^ *:-+: *$/.test(o)?i.align.push("center"):/^ *:-+ *$/.test(o)?i.align.push("left"):i.align.push(null);for(let o=0;o<n.length;o++)i.header.push({text:n[o],tokens:this.lexer.inline(n[o]),header:!0,align:i.align[o]});for(let o of s)i.rows.push(di(o,i.header.length).map((c,m)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:i.align[m]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
447
- `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:Xe(t[1])}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;let i=zr(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{let i=vc(t[2],"()");if(i>-1){let c=(t[0].indexOf("!")===0?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,c).trim(),t[3]=""}}let a=t[2],s="";if(this.options.pedantic){let i=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a);i&&(a=i[1],s=i[3])}else s=t[3]?t[3].slice(1,-1):"";return a=a.trim(),/^</.test(a)&&(this.options.pedantic&&!/>$/.test(n)?a=a.slice(1):a=a.slice(1,-1)),ui(t,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let a=(n[2]||n[1]).replace(/\s+/g," "),s=t[a.toLowerCase()];if(!s){let i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return ui(n,s,n[0],this.lexer)}}emStrong(e,t,n=""){let a=this.rules.inline.emStrongLDelim.exec(e);if(!a||a[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(a[1]||a[2]||"")||!n||this.rules.inline.punctuation.exec(n)){let i=[...a[0]].length-1,o,c,m=i,u=0,h=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,t=t.slice(-1*e.length+i);(a=h.exec(t))!=null;){if(o=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!o)continue;if(c=[...o].length,a[3]||a[4]){m+=c;continue}else if((a[5]||a[6])&&i%3&&!((i+c)%3)){u+=c;continue}if(m-=c,m>0)continue;c=Math.min(c,c+m+u);let f=[...a[0]][0].length,b=e.slice(0,i+a.index+f+c);if(Math.min(i,c)%2){let g=b.slice(1,-1);return{type:"em",raw:b,text:g,tokens:this.lexer.inlineTokens(g)}}let w=b.slice(2,-2);return{type:"strong",raw:b,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(/\n/g," "),a=/[^ ]/.test(n),s=/^ /.test(n)&&/ $/.test(n);return a&&s&&(n=n.substring(1,n.length-1)),n=Xe(n,!0),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,a;return t[2]==="@"?(n=Xe(t[1]),a="mailto:"+n):(n=Xe(t[1]),a=n),{type:"link",raw:t[0],text:n,href:a,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,a;if(t[2]==="@")n=Xe(t[0]),a="mailto:"+n;else{let s;do s=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(s!==t[0]);n=Xe(t[0]),t[1]==="www."?a="http://"+t[0]:a=t[0]}return{type:"link",raw:t[0],text:n,href:a,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n;return this.lexer.state.inRawBlock?n=t[0]:n=Xe(t[0]),{type:"text",raw:t[0],text:n}}}},yc=/^(?:[ \t]*(?:\n|$))+/,wc=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,xc=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,_r=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,kc=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,gi=/(?:[*+-]|\d{1,9}[.)])/,vi=ue(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,gi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),wa=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Sc=/^[^\n]+/,xa=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Ac=ue(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",xa).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Dc=ue(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,gi).getRegex(),vn="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ka=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Tc=ue("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ka).replace("tag",vn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),bi=ue(wa).replace("hr",_r).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",vn).getRegex(),Cc=ue(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",bi).getRegex(),Sa={blockquote:Cc,code:wc,def:Ac,fences:xc,heading:kc,hr:_r,html:Tc,lheading:vi,list:Dc,newline:yc,paragraph:bi,table:Or,text:Sc},mi=ue("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",_r).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",vn).getRegex(),Mc={...Sa,table:mi,paragraph:ue(wa).replace("hr",_r).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",mi).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",vn).getRegex()},$c={...Sa,html:ue(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ka).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Or,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ue(wa).replace("hr",_r).replace("heading",` *#{1,6} *[^
448
- ]`).replace("lheading",vi).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},yi=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ec=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,wi=/^( {2,}|\\)\n(?!\s*$)/,Rc=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Nr="\\p{P}\\p{S}",zc=ue(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Nr).getRegex(),Fc=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Oc=ue(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Nr).getRegex(),Ic=ue("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Nr).getRegex(),_c=ue("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Nr).getRegex(),Nc=ue(/\\([punct])/,"gu").replace(/punct/g,Nr).getRegex(),jc=ue(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Lc=ue(ka).replace("(?:-->|$)","-->").getRegex(),Bc=ue("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Lc).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),gn=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Pc=ue(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",gn).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),xi=ue(/^!?\[(label)\]\[(ref)\]/).replace("label",gn).replace("ref",xa).getRegex(),ki=ue(/^!?\[(ref)\](?:\[\])?/).replace("ref",xa).getRegex(),Hc=ue("reflink|nolink(?!\\()","g").replace("reflink",xi).replace("nolink",ki).getRegex(),Aa={_backpedal:Or,anyPunctuation:Nc,autolink:jc,blockSkip:Fc,br:wi,code:Ec,del:Or,emStrongLDelim:Oc,emStrongRDelimAst:Ic,emStrongRDelimUnd:_c,escape:yi,link:Pc,nolink:ki,punctuation:zc,reflink:xi,reflinkSearch:Hc,tag:Bc,text:Rc,url:Or},qc={...Aa,link:ue(/^!?\[(label)\]\((.*?)\)/).replace("label",gn).getRegex(),reflink:ue(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",gn).getRegex()},va={...Aa,escape:ue(yi).replace("])","~|])").getRegex(),url:ue(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Uc={...va,br:ue(wi).replace("{2,}","*").getRegex(),text:ue(va.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},fn={normal:Sa,gfm:Mc,pedantic:$c},Fr={normal:Aa,gfm:va,breaks:Uc,pedantic:qc},it=class r{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ar,this.options.tokenizer=this.options.tokenizer||new fr,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={block:fn.normal,inline:Fr.normal};this.options.pedantic?(t.block=fn.pedantic,t.inline=Fr.pedantic):this.options.gfm&&(t.block=fn.gfm,this.options.breaks?t.inline=Fr.breaks:t.inline=Fr.gfm),this.tokenizer.rules=t}static get rules(){return{block:fn,inline:Fr}}static lex(e,t){return new r(t).lex(e)}static lexInline(e,t){return new r(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
447
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:Xe(t[1])}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;let i=zr(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{let i=gc(t[2],"()");if(i>-1){let c=(t[0].indexOf("!")===0?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,c).trim(),t[3]=""}}let a=t[2],s="";if(this.options.pedantic){let i=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a);i&&(a=i[1],s=i[3])}else s=t[3]?t[3].slice(1,-1):"";return a=a.trim(),/^</.test(a)&&(this.options.pedantic&&!/>$/.test(n)?a=a.slice(1):a=a.slice(1,-1)),ui(t,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let a=(n[2]||n[1]).replace(/\s+/g," "),s=t[a.toLowerCase()];if(!s){let i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return ui(n,s,n[0],this.lexer)}}emStrong(e,t,n=""){let a=this.rules.inline.emStrongLDelim.exec(e);if(!a||a[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(a[1]||a[2]||"")||!n||this.rules.inline.punctuation.exec(n)){let i=[...a[0]].length-1,o,c,m=i,u=0,h=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,t=t.slice(-1*e.length+i);(a=h.exec(t))!=null;){if(o=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!o)continue;if(c=[...o].length,a[3]||a[4]){m+=c;continue}else if((a[5]||a[6])&&i%3&&!((i+c)%3)){u+=c;continue}if(m-=c,m>0)continue;c=Math.min(c,c+m+u);let f=[...a[0]][0].length,b=e.slice(0,i+a.index+f+c);if(Math.min(i,c)%2){let g=b.slice(1,-1);return{type:"em",raw:b,text:g,tokens:this.lexer.inlineTokens(g)}}let w=b.slice(2,-2);return{type:"strong",raw:b,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(/\n/g," "),a=/[^ ]/.test(n),s=/^ /.test(n)&&/ $/.test(n);return a&&s&&(n=n.substring(1,n.length-1)),n=Xe(n,!0),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,a;return t[2]==="@"?(n=Xe(t[1]),a="mailto:"+n):(n=Xe(t[1]),a=n),{type:"link",raw:t[0],text:n,href:a,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,a;if(t[2]==="@")n=Xe(t[0]),a="mailto:"+n;else{let s;do s=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(s!==t[0]);n=Xe(t[0]),t[1]==="www."?a="http://"+t[0]:a=t[0]}return{type:"link",raw:t[0],text:n,href:a,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n;return this.lexer.state.inRawBlock?n=t[0]:n=Xe(t[0]),{type:"text",raw:t[0],text:n}}}},bc=/^(?:[ \t]*(?:\n|$))+/,yc=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,wc=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,_r=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,xc=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,gi=/(?:[*+-]|\d{1,9}[.)])/,vi=ue(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,gi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),wa=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,kc=/^[^\n]+/,xa=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Sc=ue(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",xa).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ac=ue(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,gi).getRegex(),vn="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ka=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Dc=ue("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ka).replace("tag",vn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),bi=ue(wa).replace("hr",_r).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",vn).getRegex(),Tc=ue(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",bi).getRegex(),Sa={blockquote:Tc,code:yc,def:Sc,fences:wc,heading:xc,hr:_r,html:Dc,lheading:vi,list:Ac,newline:bc,paragraph:bi,table:Or,text:kc},mi=ue("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",_r).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",vn).getRegex(),Cc={...Sa,table:mi,paragraph:ue(wa).replace("hr",_r).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",mi).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",vn).getRegex()},Mc={...Sa,html:ue(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ka).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Or,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ue(wa).replace("hr",_r).replace("heading",` *#{1,6} *[^
448
+ ]`).replace("lheading",vi).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},yi=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,$c=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,wi=/^( {2,}|\\)\n(?!\s*$)/,Ec=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Nr="\\p{P}\\p{S}",Rc=ue(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Nr).getRegex(),zc=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Fc=ue(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Nr).getRegex(),Oc=ue("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Nr).getRegex(),Ic=ue("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Nr).getRegex(),_c=ue(/\\([punct])/,"gu").replace(/punct/g,Nr).getRegex(),Nc=ue(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),jc=ue(ka).replace("(?:-->|$)","-->").getRegex(),Lc=ue("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",jc).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),gn=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Bc=ue(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",gn).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),xi=ue(/^!?\[(label)\]\[(ref)\]/).replace("label",gn).replace("ref",xa).getRegex(),ki=ue(/^!?\[(ref)\](?:\[\])?/).replace("ref",xa).getRegex(),Pc=ue("reflink|nolink(?!\\()","g").replace("reflink",xi).replace("nolink",ki).getRegex(),Aa={_backpedal:Or,anyPunctuation:_c,autolink:Nc,blockSkip:zc,br:wi,code:$c,del:Or,emStrongLDelim:Fc,emStrongRDelimAst:Oc,emStrongRDelimUnd:Ic,escape:yi,link:Bc,nolink:ki,punctuation:Rc,reflink:xi,reflinkSearch:Pc,tag:Lc,text:Ec,url:Or},Hc={...Aa,link:ue(/^!?\[(label)\]\((.*?)\)/).replace("label",gn).getRegex(),reflink:ue(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",gn).getRegex()},va={...Aa,escape:ue(yi).replace("])","~|])").getRegex(),url:ue(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},qc={...va,br:ue(wi).replace("{2,}","*").getRegex(),text:ue(va.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},fn={normal:Sa,gfm:Cc,pedantic:Mc},Fr={normal:Aa,gfm:va,breaks:qc,pedantic:Hc},it=class r{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ar,this.options.tokenizer=this.options.tokenizer||new fr,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={block:fn.normal,inline:Fr.normal};this.options.pedantic?(t.block=fn.pedantic,t.inline=Fr.pedantic):this.options.gfm&&(t.block=fn.gfm,this.options.breaks?t.inline=Fr.breaks:t.inline=Fr.gfm),this.tokenizer.rules=t}static get rules(){return{block:fn,inline:Fr}}static lex(e,t){return new r(t).lex(e)}static lexInline(e,t){return new r(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
449
449
  `),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let n=this.inlineQueue[t];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){this.options.pedantic&&(e=e.replace(/\t/g," ").replace(/^ +$/gm,""));let a,s,i;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(o=>(a=o.call({lexer:this},e,t))?(e=e.substring(a.raw.length),t.push(a),!0):!1))){if(a=this.tokenizer.space(e)){e=e.substring(a.raw.length),a.raw.length===1&&t.length>0?t[t.length-1].raw+=`
450
450
  `:t.push(a);continue}if(a=this.tokenizer.code(e)){e=e.substring(a.raw.length),s=t[t.length-1],s&&(s.type==="paragraph"||s.type==="text")?(s.raw+=`
451
451
  `+a.raw,s.text+=`
@@ -475,15 +475,15 @@ ${e}</tr>
475
475
  `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
476
476
  `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${e}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let a=this.parser.parseInline(n),s=ci(e);if(s===null)return a;e=s;let i='<a href="'+e+'"';return t&&(i+=' title="'+t+'"'),i+=">"+a+"</a>",i}image({href:e,title:t,text:n}){let a=ci(e);if(a===null)return n;e=a;let s=`<img src="${e}" alt="${n}"`;return t&&(s+=` title="${t}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):e.text}},Ir=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},ot=class r{options;renderer;textRenderer;constructor(e){this.options=e||ar,this.options.renderer=this.options.renderer||new gr,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ir}static parse(e,t){return new r(t).parse(e)}static parseInline(e,t){return new r(t).parseInline(e)}parse(e,t=!0){let n="";for(let a=0;a<e.length;a++){let s=e[a];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){let o=s,c=this.options.extensions.renderers[o.type].call({parser:this},o);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(o.type)){n+=c||"";continue}}let i=s;switch(i.type){case"space":{n+=this.renderer.space(i);continue}case"hr":{n+=this.renderer.hr(i);continue}case"heading":{n+=this.renderer.heading(i);continue}case"code":{n+=this.renderer.code(i);continue}case"table":{n+=this.renderer.table(i);continue}case"blockquote":{n+=this.renderer.blockquote(i);continue}case"list":{n+=this.renderer.list(i);continue}case"html":{n+=this.renderer.html(i);continue}case"paragraph":{n+=this.renderer.paragraph(i);continue}case"text":{let o=i,c=this.renderer.text(o);for(;a+1<e.length&&e[a+1].type==="text";)o=e[++a],c+=`
477
477
  `+this.renderer.text(o);t?n+=this.renderer.paragraph({type:"paragraph",raw:c,text:c,tokens:[{type:"text",raw:c,text:c}]}):n+=c;continue}default:{let o='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return n}parseInline(e,t){t=t||this.renderer;let n="";for(let a=0;a<e.length;a++){let s=e[a];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){let o=this.options.extensions.renderers[s.type].call({parser:this},s);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){n+=o||"";continue}}let i=s;switch(i.type){case"escape":{n+=t.text(i);break}case"html":{n+=t.html(i);break}case"link":{n+=t.link(i);break}case"image":{n+=t.image(i);break}case"strong":{n+=t.strong(i);break}case"em":{n+=t.em(i);break}case"codespan":{n+=t.codespan(i);break}case"br":{n+=t.br(i);break}case"del":{n+=t.del(i);break}case"text":{n+=t.text(i);break}default:{let o='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return n}},hr=class{options;block;constructor(e){this.options=e||ar}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?it.lex:it.lexInline}provideParser(){return this.block?ot.parse:ot.parseInline}},ba=class{defaults=ya();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ot;Renderer=gr;TextRenderer=Ir;Lexer=it;Tokenizer=fr;Hooks=hr;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let a of e)switch(n=n.concat(t.call(this,a)),a.type){case"table":{let s=a;for(let i of s.header)n=n.concat(this.walkTokens(i.tokens,t));for(let i of s.rows)for(let o of i)n=n.concat(this.walkTokens(o.tokens,t));break}case"list":{let s=a;n=n.concat(this.walkTokens(s.items,t));break}default:{let s=a;this.defaults.extensions?.childTokens?.[s.type]?this.defaults.extensions.childTokens[s.type].forEach(i=>{let o=s[i].flat(1/0);n=n.concat(this.walkTokens(o,t))}):s.tokens&&(n=n.concat(this.walkTokens(s.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let a={...n};if(a.async=this.defaults.async||a.async||!1,n.extensions&&(n.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let i=t.renderers[s.name];i?t.renderers[s.name]=function(...o){let c=s.renderer.apply(this,o);return c===!1&&(c=i.apply(this,o)),c}:t.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=t[s.level];i?i.unshift(s.tokenizer):t[s.level]=[s.tokenizer],s.start&&(s.level==="block"?t.startBlock?t.startBlock.push(s.start):t.startBlock=[s.start]:s.level==="inline"&&(t.startInline?t.startInline.push(s.start):t.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(t.childTokens[s.name]=s.childTokens)}),a.extensions=t),n.renderer){let s=this.defaults.renderer||new gr(this.defaults);for(let i in n.renderer){if(!(i in s))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let o=i,c=n.renderer[o],m=s[o];s[o]=(...u)=>{let h=c.apply(s,u);return h===!1&&(h=m.apply(s,u)),h||""}}a.renderer=s}if(n.tokenizer){let s=this.defaults.tokenizer||new fr(this.defaults);for(let i in n.tokenizer){if(!(i in s))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let o=i,c=n.tokenizer[o],m=s[o];s[o]=(...u)=>{let h=c.apply(s,u);return h===!1&&(h=m.apply(s,u)),h}}a.tokenizer=s}if(n.hooks){let s=this.defaults.hooks||new hr;for(let i in n.hooks){if(!(i in s))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let o=i,c=n.hooks[o],m=s[o];hr.passThroughHooks.has(i)?s[o]=u=>{if(this.defaults.async)return Promise.resolve(c.call(s,u)).then(f=>m.call(s,f));let h=c.call(s,u);return m.call(s,h)}:s[o]=(...u)=>{let h=c.apply(s,u);return h===!1&&(h=m.apply(s,u)),h}}a.hooks=s}if(n.walkTokens){let s=this.defaults.walkTokens,i=n.walkTokens;a.walkTokens=function(o){let c=[];return c.push(i.call(this,o)),s&&(c=c.concat(s.call(this,o))),c}}this.defaults={...this.defaults,...a}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return it.lex(e,t??this.defaults)}parser(e,t){return ot.parse(e,t??this.defaults)}parseMarkdown(e){return(n,a)=>{let s={...a},i={...this.defaults,...s},o=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&s.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));i.hooks&&(i.hooks.options=i,i.hooks.block=e);let c=i.hooks?i.hooks.provideLexer():e?it.lex:it.lexInline,m=i.hooks?i.hooks.provideParser():e?ot.parse:ot.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(n):n).then(u=>c(u,i)).then(u=>i.hooks?i.hooks.processAllTokens(u):u).then(u=>i.walkTokens?Promise.all(this.walkTokens(u,i.walkTokens)).then(()=>u):u).then(u=>m(u,i)).then(u=>i.hooks?i.hooks.postprocess(u):u).catch(o);try{i.hooks&&(n=i.hooks.preprocess(n));let u=c(n,i);i.hooks&&(u=i.hooks.processAllTokens(u)),i.walkTokens&&this.walkTokens(u,i.walkTokens);let h=m(u,i);return i.hooks&&(h=i.hooks.postprocess(h)),h}catch(u){return o(u)}}}onError(e,t){return n=>{if(n.message+=`
478
- Please report this to https://github.com/markedjs/marked.`,e){let a="<p>An error occurred:</p><pre>"+Xe(n.message+"",!0)+"</pre>";return t?Promise.resolve(a):a}if(t)return Promise.reject(n);throw n}}},nr=new ba;function ne(r,e){return nr.parse(r,e)}ne.options=ne.setOptions=function(r){return nr.setOptions(r),ne.defaults=nr.defaults,pi(ne.defaults),ne};ne.getDefaults=ya;ne.defaults=ar;ne.use=function(...r){return nr.use(...r),ne.defaults=nr.defaults,pi(ne.defaults),ne};ne.walkTokens=function(r,e){return nr.walkTokens(r,e)};ne.parseInline=nr.parseInline;ne.Parser=ot;ne.parser=ot.parse;ne.Renderer=gr;ne.TextRenderer=Ir;ne.Lexer=it;ne.lexer=it.lex;ne.Tokenizer=fr;ne.Hooks=hr;ne.parse=ne;var v1=ne.options,b1=ne.setOptions,y1=ne.use,w1=ne.walkTokens,x1=ne.parseInline;var k1=ot.parse,S1=it.lex;var Gc={note:'<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>',tip:'<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z"/></svg>',important:'<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>',warning:'<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>',caution:'<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>'};function Si(r){let e=r.split(`
479
- `),t=[],n=[],a=null,s=()=>{n.length&&t.push(Wc(n.join(`
478
+ Please report this to https://github.com/markedjs/marked.`,e){let a="<p>An error occurred:</p><pre>"+Xe(n.message+"",!0)+"</pre>";return t?Promise.resolve(a):a}if(t)return Promise.reject(n);throw n}}},nr=new ba;function ne(r,e){return nr.parse(r,e)}ne.options=ne.setOptions=function(r){return nr.setOptions(r),ne.defaults=nr.defaults,pi(ne.defaults),ne};ne.getDefaults=ya;ne.defaults=ar;ne.use=function(...r){return nr.use(...r),ne.defaults=nr.defaults,pi(ne.defaults),ne};ne.walkTokens=function(r,e){return nr.walkTokens(r,e)};ne.parseInline=nr.parseInline;ne.Parser=ot;ne.parser=ot.parse;ne.Renderer=gr;ne.TextRenderer=Ir;ne.Lexer=it;ne.lexer=it.lex;ne.Tokenizer=fr;ne.Hooks=hr;ne.parse=ne;var v1=ne.options,b1=ne.setOptions,y1=ne.use,w1=ne.walkTokens,x1=ne.parseInline;var k1=ot.parse,S1=it.lex;var Uc={note:'<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>',tip:'<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z"/></svg>',important:'<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>',warning:'<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>',caution:'<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>'};function Si(r){let e=r.split(`
479
+ `),t=[],n=[],a=null,s=()=>{n.length&&t.push(Gc(n.join(`
480
480
  `))),n=[]};for(let i of e){let o=/^ {0,3}(`{3,}|~{3,})/.exec(i);a?(t.push(i),o&&o[1][0]===a.char&&o[1].length>=a.len&&/^ {0,3}[`~]+\s*$/.test(i)&&(a=null)):o?(s(),a={char:o[1][0],len:o[1].length},t.push(i)):n.push(i)}return s(),t.join(`
481
- `)}function Wc(r){return r.replace(/^((?:>[^\n]*\n?)+)/gm,e=>{let t=e.split(`
481
+ `)}function Gc(r){return r.replace(/^((?:>[^\n]*\n?)+)/gm,e=>{let t=e.split(`
482
482
  `),n=t[0],a=/^>\s*\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\](?:\s+(.*))?$/i.exec(n.trim());if(!a)return e;let s=a[1].toLowerCase(),o=a[2]?.trim()||s.toUpperCase(),m=t.slice(1).map(u=>u.replace(/^>\s?/,"")).join(`
483
483
  `).trim();return`
484
484
  <div class="dmd-callout dmd-callout-${s}">
485
485
  <div class="dmd-callout-header">
486
- <span class="dmd-callout-icon">${Gc[s]}</span>
486
+ <span class="dmd-callout-icon">${Uc[s]}</span>
487
487
  <span class="dmd-callout-title">${o}</span>
488
488
  </div>
489
489
  <div class="dmd-callout-body">
@@ -492,12 +492,12 @@ ${m}
492
492
 
493
493
  </div>
494
494
  </div>
495
- `})}var mt=J(Ai());Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));Prism.languages.js=Prism.languages.javascript;(function(r){r.languages.typescript=r.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),r.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete r.languages.typescript.parameter,delete r.languages.typescript["literal-property"];var e=r.languages.extend("typescript",{});delete e["class-name"],r.languages.typescript["class-name"].inside=e,r.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),r.languages.ts=r.languages.typescript})(Prism);(function(r){var e=r.util.clone(r.languages.javascript),t=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,n=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,a=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function s(c,m){return c=c.replace(/<S>/g,function(){return t}).replace(/<BRACES>/g,function(){return n}).replace(/<SPREAD>/g,function(){return a}),RegExp(c,m)}a=s(a).source,r.languages.jsx=r.languages.extend("markup",e),r.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),r.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,r.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,r.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,r.languages.jsx.tag.inside.comment=e.comment,r.languages.insertBefore("inside","attr-name",{spread:{pattern:s(/<SPREAD>/.source),inside:r.languages.jsx}},r.languages.jsx.tag),r.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:r.languages.jsx}}},r.languages.jsx.tag);var i=function(c){return c?typeof c=="string"?c:typeof c.content=="string"?c.content:c.content.map(i).join(""):""},o=function(c){for(var m=[],u=0;u<c.length;u++){var h=c[u],f=!1;if(typeof h!="string"&&(h.type==="tag"&&h.content[0]&&h.content[0].type==="tag"?h.content[0].content[0].content==="</"?m.length>0&&m[m.length-1].tagName===i(h.content[0].content[1])&&m.pop():h.content[h.content.length-1].content==="/>"||m.push({tagName:i(h.content[0].content[1]),openedBraces:0}):m.length>0&&h.type==="punctuation"&&h.content==="{"?m[m.length-1].openedBraces++:m.length>0&&m[m.length-1].openedBraces>0&&h.type==="punctuation"&&h.content==="}"?m[m.length-1].openedBraces--:f=!0),(f||typeof h=="string")&&m.length>0&&m[m.length-1].openedBraces===0){var b=i(h);u<c.length-1&&(typeof c[u+1]=="string"||c[u+1].type==="plain-text")&&(b+=i(c[u+1]),c.splice(u+1,1)),u>0&&(typeof c[u-1]=="string"||c[u-1].type==="plain-text")&&(b=i(c[u-1])+b,c.splice(u-1,1),u--),c[u]=new r.Token("plain-text",b,null,b)}h.content&&typeof h.content!="string"&&o(h.content)}};r.hooks.add("after-tokenize",function(c){c.language!=="jsx"&&c.language!=="tsx"||o(c.tokens)})})(Prism);(function(r){var e=r.util.clone(r.languages.typescript);r.languages.tsx=r.languages.extend("jsx",e),delete r.languages.tsx.parameter,delete r.languages.tsx["literal-property"];var t=r.languages.tsx.tag;t.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0})(Prism);(function(r){var e="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",t={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},n={bash:t,environment:{pattern:RegExp("\\$"+e),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+e),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};r.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+e),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:t}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:n.entity}}],environment:{pattern:RegExp("\\$?"+e),alias:"constant"},variable:n.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},t.inside=r.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=n.variable[1].inside,i=0;i<a.length;i++)s[a[i]]=r.languages.bash[a[i]];r.languages.sh=r.languages.bash,r.languages.shell=r.languages.bash})(Prism);Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};Prism.languages.webmanifest=Prism.languages.json;(function(r){var e=/[*&][^\s[\]{},]+/,t=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,n="(?:"+t.source+"(?:[ ]+"+e.source+")?|"+e.source+"(?:[ ]+"+t.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(o,c){c=(c||"").replace(/m/g,"")+"m";var m=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return n}).replace(/<<value>>/g,function(){return o});return RegExp(m,c)}r.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return n})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return n}).replace(/<<key>>/g,function(){return"(?:"+a+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(s),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:t,important:e,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},r.languages.yml=r.languages.yaml})(Prism);(function(r){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var t=r.languages.markup;t&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))})(Prism);(function(r){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function t(u){return u=u.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+u+")")}var n=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return n}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;r.languages.markdown=r.languages.extend("markup",{}),r.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:r.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+s+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+s+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(n),inside:r.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(n),alias:"important",inside:r.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:t(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:t(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:t(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:t(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(u){["url","bold","italic","strike","code-snippet"].forEach(function(h){u!==h&&(r.languages.markdown[u].inside.content.inside[h]=r.languages.markdown[h])})}),r.hooks.add("after-tokenize",function(u){if(u.language!=="markdown"&&u.language!=="md")return;function h(f){if(!(!f||typeof f=="string"))for(var b=0,w=f.length;b<w;b++){var g=f[b];if(g.type!=="code"){h(g.content);continue}var y=g.content[1],x=g.content[3];if(y&&x&&y.type==="code-language"&&x.type==="code-block"&&typeof y.content=="string"){var A=y.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");A=(/[a-z][\w-]*/i.exec(A)||[""])[0].toLowerCase();var M="language-"+A;x.alias?typeof x.alias=="string"?x.alias=[x.alias,M]:x.alias.push(M):x.alias=[M]}}}h(u.tokens)}),r.hooks.add("wrap",function(u){if(u.type==="code-block"){for(var h="",f=0,b=u.classes.length;f<b;f++){var w=u.classes[f],g=/language-(.+)/.exec(w);if(g){h=g[1];break}}var y=r.languages[h];if(y)u.content=r.highlight(m(u.content),y,h);else if(h&&h!=="none"&&r.plugins.autoloader){var x="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);u.attributes.id=x,r.plugins.autoloader.loadLanguages(h,function(){var A=document.getElementById(x);A&&(A.innerHTML=r.highlight(A.textContent,r.languages[h],h))})}}});var i=RegExp(r.languages.markup.tag.pattern.source,"gi"),o={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;function m(u){var h=u.replace(i,"");return h=h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(f,b){if(b=b.toLowerCase(),b[0]==="#"){var w;return b[1]==="x"?w=parseInt(b.slice(2),16):w=Number(b.slice(1)),c(w)}else{var g=o[b];return g||f}}),h}r.languages.md=r.languages.markdown})(Prism);Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity;Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup;Prism.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&amp;/,"&"))});Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};a["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var s={};s[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:a},Prism.languages.insertBefore("markup","cdata",s)}});Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(r,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});Prism.languages.html=Prism.languages.markup;Prism.languages.mathml=Prism.languages.markup;Prism.languages.svg=Prism.languages.markup;Prism.languages.xml=Prism.languages.extend("markup",{});Prism.languages.ssml=Prism.languages.xml;Prism.languages.atom=Prism.languages.xml;Prism.languages.rss=Prism.languages.xml;Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;function Tt(r){return r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function Di(r){let e=new TextEncoder().encode(r),t="";return e.forEach(n=>{t+=String.fromCharCode(n)}),btoa(t)}var R1=Promise.resolve();var Zc='<svg class="dmd-table-caption-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><path d="M3 9h18"/><path d="M3 15h18"/><path d="M9 3v18"/><path d="M15 3v18"/></svg>',Xc='<svg class="copy-icon" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>',Yc='<svg class="check-icon" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"/></svg>',Jc='<svg class="dmd-table-copy-chevron" width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>',Kc=[{id:"markdown",label:"Markdown",badge:"MD",description:"For documents"},{id:"html",label:"HTML",badge:"&lt;&gt;",description:"For web pages"},{id:"csv",label:"CSV",badge:"CSV",description:"For spreadsheets"}];function Ti(r){return r?` data-align="${r}"`:""}function wn(r){let{header:e,rows:t,caption:n}=r,a=e?.length?`<thead><tr>${e.map(m=>`<th${Ti(m.align)}>${m.html}</th>`).join("")}</tr></thead>`:"",s=`<tbody>${t.map(m=>`<tr>${m.map(u=>`<td${Ti(u.align)}>${u.html}</td>`).join("")}</tr>`).join("")}</tbody>`,i=Kc.map(m=>`<button type="button" class="dmd-table-copy-item" role="menuitem" tabindex="-1" data-dmd-table-copy="${m.id}" title="Copy as ${m.label} (${m.description.toLowerCase()})"><span class="dmd-table-copy-format">${m.badge}</span><span class="dmd-table-copy-text"><span class="dmd-table-copy-name">${m.label}</span><span class="dmd-table-copy-description">${m.description}</span></span></button>`).join(""),o=Math.max(e?.length??0,...t.map(m=>m.length),0),c=`${t.length} ${t.length===1?"row":"rows"} \xB7 ${o} ${o===1?"column":"columns"}`;return`
495
+ `})}var mt=J(Ai());Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));Prism.languages.js=Prism.languages.javascript;(function(r){r.languages.typescript=r.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),r.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete r.languages.typescript.parameter,delete r.languages.typescript["literal-property"];var e=r.languages.extend("typescript",{});delete e["class-name"],r.languages.typescript["class-name"].inside=e,r.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),r.languages.ts=r.languages.typescript})(Prism);(function(r){var e=r.util.clone(r.languages.javascript),t=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,n=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,a=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function s(c,m){return c=c.replace(/<S>/g,function(){return t}).replace(/<BRACES>/g,function(){return n}).replace(/<SPREAD>/g,function(){return a}),RegExp(c,m)}a=s(a).source,r.languages.jsx=r.languages.extend("markup",e),r.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),r.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,r.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,r.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,r.languages.jsx.tag.inside.comment=e.comment,r.languages.insertBefore("inside","attr-name",{spread:{pattern:s(/<SPREAD>/.source),inside:r.languages.jsx}},r.languages.jsx.tag),r.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:r.languages.jsx}}},r.languages.jsx.tag);var i=function(c){return c?typeof c=="string"?c:typeof c.content=="string"?c.content:c.content.map(i).join(""):""},o=function(c){for(var m=[],u=0;u<c.length;u++){var h=c[u],f=!1;if(typeof h!="string"&&(h.type==="tag"&&h.content[0]&&h.content[0].type==="tag"?h.content[0].content[0].content==="</"?m.length>0&&m[m.length-1].tagName===i(h.content[0].content[1])&&m.pop():h.content[h.content.length-1].content==="/>"||m.push({tagName:i(h.content[0].content[1]),openedBraces:0}):m.length>0&&h.type==="punctuation"&&h.content==="{"?m[m.length-1].openedBraces++:m.length>0&&m[m.length-1].openedBraces>0&&h.type==="punctuation"&&h.content==="}"?m[m.length-1].openedBraces--:f=!0),(f||typeof h=="string")&&m.length>0&&m[m.length-1].openedBraces===0){var b=i(h);u<c.length-1&&(typeof c[u+1]=="string"||c[u+1].type==="plain-text")&&(b+=i(c[u+1]),c.splice(u+1,1)),u>0&&(typeof c[u-1]=="string"||c[u-1].type==="plain-text")&&(b=i(c[u-1])+b,c.splice(u-1,1),u--),c[u]=new r.Token("plain-text",b,null,b)}h.content&&typeof h.content!="string"&&o(h.content)}};r.hooks.add("after-tokenize",function(c){c.language!=="jsx"&&c.language!=="tsx"||o(c.tokens)})})(Prism);(function(r){var e=r.util.clone(r.languages.typescript);r.languages.tsx=r.languages.extend("jsx",e),delete r.languages.tsx.parameter,delete r.languages.tsx["literal-property"];var t=r.languages.tsx.tag;t.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0})(Prism);(function(r){var e="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",t={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},n={bash:t,environment:{pattern:RegExp("\\$"+e),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+e),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};r.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+e),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:t}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:n.entity}}],environment:{pattern:RegExp("\\$?"+e),alias:"constant"},variable:n.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},t.inside=r.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=n.variable[1].inside,i=0;i<a.length;i++)s[a[i]]=r.languages.bash[a[i]];r.languages.sh=r.languages.bash,r.languages.shell=r.languages.bash})(Prism);Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};Prism.languages.webmanifest=Prism.languages.json;(function(r){var e=/[*&][^\s[\]{},]+/,t=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,n="(?:"+t.source+"(?:[ ]+"+e.source+")?|"+e.source+"(?:[ ]+"+t.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(o,c){c=(c||"").replace(/m/g,"")+"m";var m=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return n}).replace(/<<value>>/g,function(){return o});return RegExp(m,c)}r.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return n})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return n}).replace(/<<key>>/g,function(){return"(?:"+a+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(s),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:t,important:e,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},r.languages.yml=r.languages.yaml})(Prism);(function(r){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var t=r.languages.markup;t&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))})(Prism);(function(r){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function t(u){return u=u.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+u+")")}var n=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return n}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;r.languages.markdown=r.languages.extend("markup",{}),r.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:r.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+s+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+s+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(n),inside:r.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(n),alias:"important",inside:r.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:t(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:t(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:t(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:t(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(u){["url","bold","italic","strike","code-snippet"].forEach(function(h){u!==h&&(r.languages.markdown[u].inside.content.inside[h]=r.languages.markdown[h])})}),r.hooks.add("after-tokenize",function(u){if(u.language!=="markdown"&&u.language!=="md")return;function h(f){if(!(!f||typeof f=="string"))for(var b=0,w=f.length;b<w;b++){var g=f[b];if(g.type!=="code"){h(g.content);continue}var y=g.content[1],x=g.content[3];if(y&&x&&y.type==="code-language"&&x.type==="code-block"&&typeof y.content=="string"){var A=y.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");A=(/[a-z][\w-]*/i.exec(A)||[""])[0].toLowerCase();var M="language-"+A;x.alias?typeof x.alias=="string"?x.alias=[x.alias,M]:x.alias.push(M):x.alias=[M]}}}h(u.tokens)}),r.hooks.add("wrap",function(u){if(u.type==="code-block"){for(var h="",f=0,b=u.classes.length;f<b;f++){var w=u.classes[f],g=/language-(.+)/.exec(w);if(g){h=g[1];break}}var y=r.languages[h];if(y)u.content=r.highlight(m(u.content),y,h);else if(h&&h!=="none"&&r.plugins.autoloader){var x="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);u.attributes.id=x,r.plugins.autoloader.loadLanguages(h,function(){var A=document.getElementById(x);A&&(A.innerHTML=r.highlight(A.textContent,r.languages[h],h))})}}});var i=RegExp(r.languages.markup.tag.pattern.source,"gi"),o={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;function m(u){var h=u.replace(i,"");return h=h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(f,b){if(b=b.toLowerCase(),b[0]==="#"){var w;return b[1]==="x"?w=parseInt(b.slice(2),16):w=Number(b.slice(1)),c(w)}else{var g=o[b];return g||f}}),h}r.languages.md=r.languages.markdown})(Prism);Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity;Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup;Prism.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&amp;/,"&"))});Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};a["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var s={};s[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:a},Prism.languages.insertBefore("markup","cdata",s)}});Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(r,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});Prism.languages.html=Prism.languages.markup;Prism.languages.mathml=Prism.languages.markup;Prism.languages.svg=Prism.languages.markup;Prism.languages.xml=Prism.languages.extend("markup",{});Prism.languages.ssml=Prism.languages.xml;Prism.languages.atom=Prism.languages.xml;Prism.languages.rss=Prism.languages.xml;Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;function Tt(r){return r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function Di(r){let e=new TextEncoder().encode(r),t="";return e.forEach(n=>{t+=String.fromCharCode(n)}),btoa(t)}var R1=Promise.resolve();var Vc='<svg class="dmd-table-caption-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><path d="M3 9h18"/><path d="M3 15h18"/><path d="M9 3v18"/><path d="M15 3v18"/></svg>',Zc='<svg class="copy-icon" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>',Xc='<svg class="check-icon" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"/></svg>',Yc='<svg class="dmd-table-copy-chevron" width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>',Jc=[{id:"markdown",label:"Markdown",badge:"MD",description:"For documents"},{id:"html",label:"HTML",badge:"&lt;&gt;",description:"For web pages"},{id:"csv",label:"CSV",badge:"CSV",description:"For spreadsheets"}];function Ti(r){return r?` data-align="${r}"`:""}function wn(r){let{header:e,rows:t,caption:n}=r,a=e?.length?`<thead><tr>${e.map(m=>`<th${Ti(m.align)}>${m.html}</th>`).join("")}</tr></thead>`:"",s=`<tbody>${t.map(m=>`<tr>${m.map(u=>`<td${Ti(u.align)}>${u.html}</td>`).join("")}</tr>`).join("")}</tbody>`,i=Jc.map(m=>`<button type="button" class="dmd-table-copy-item" role="menuitem" tabindex="-1" data-dmd-table-copy="${m.id}" title="Copy as ${m.label} (${m.description.toLowerCase()})"><span class="dmd-table-copy-format">${m.badge}</span><span class="dmd-table-copy-text"><span class="dmd-table-copy-name">${m.label}</span><span class="dmd-table-copy-description">${m.description}</span></span></button>`).join(""),o=Math.max(e?.length??0,...t.map(m=>m.length),0),c=`${t.length} ${t.length===1?"row":"rows"} \xB7 ${o} ${o===1?"column":"columns"}`;return`
496
496
  <div class="dmd-table-block" data-dmd-table>
497
497
  <div class="dmd-table-toolbar">
498
- <span class="dmd-table-caption">${Zc}${n?`<span class="dmd-table-caption-text">${Tt(n)}</span>`:""}<span class="dmd-table-dimensions">${c}</span></span>
498
+ <span class="dmd-table-caption">${Vc}${n?`<span class="dmd-table-caption-text">${Tt(n)}</span>`:""}<span class="dmd-table-dimensions">${c}</span></span>
499
499
  <div class="dmd-table-copy">
500
- <button type="button" class="dmd-table-copy-btn" data-dmd-table-toggle aria-haspopup="menu" aria-expanded="false" title="Copy table (Markdown, HTML, CSV)">${Xc}${Yc}<span class="dmd-table-copy-btn-text">Copy</span><span class="dmd-table-copy-label dmd-sr-only">Copy table</span>${Jc}</button>
500
+ <button type="button" class="dmd-table-copy-btn" data-dmd-table-toggle aria-haspopup="menu" aria-expanded="false" title="Copy table (Markdown, HTML, CSV)">${Zc}${Xc}<span class="dmd-table-copy-btn-text">Copy</span><span class="dmd-table-copy-label dmd-sr-only">Copy table</span>${Yc}</button>
501
501
  <div class="dmd-table-copy-menu" role="menu" aria-label="Copy table as" hidden>${i}</div>
502
502
  <span class="dmd-sr-only" data-dmd-table-status role="status" aria-live="polite"></span>
503
503
  </div>
@@ -509,32 +509,32 @@ ${m}
509
509
  </table>
510
510
  </div>
511
511
  </div>
512
- `}var Qc={comma:",",semicolon:";",tab:" ",pipe:"|"};function Ci(r,e){if(!r)return e;let t=Qc[r.toLowerCase()];return t||(r==="\\t"?" ":r.length===1?r:e)}function ed(r){let e=r.split(/\r?\n/).find(a=>a.trim()!=="")??"",t=",",n=0;for(let a of[",",";"," ","|"]){let s=e.split(a).length-1;s>n&&(t=a,n=s)}return t}function td(r,e=","){let t=[],n=[],a="",s=!1,i=!1,o=()=>{n.push(a),a=""},c=()=>{o(),(n.some(m=>m.trim()!=="")||n.length>1)&&t.push(n),n=[],i=!1};for(let m=0;m<r.length;m++){let u=r[m];if(s){u==='"'?r[m+1]==='"'?(a+='"',m++):s=!1:a+=u;continue}u==='"'&&a===""?(s=!0,i=!0):u===e?(o(),i=!0):u===`
512
+ `}var Kc={comma:",",semicolon:";",tab:" ",pipe:"|"};function Ci(r,e){if(!r)return e;let t=Kc[r.toLowerCase()];return t||(r==="\\t"?" ":r.length===1?r:e)}function Qc(r){let e=r.split(/\r?\n/).find(a=>a.trim()!=="")??"",t=",",n=0;for(let a of[",",";"," ","|"]){let s=e.split(a).length-1;s>n&&(t=a,n=s)}return t}function ed(r,e=","){let t=[],n=[],a="",s=!1,i=!1,o=()=>{n.push(a),a=""},c=()=>{o(),(n.some(m=>m.trim()!=="")||n.length>1)&&t.push(n),n=[],i=!1};for(let m=0;m<r.length;m++){let u=r[m];if(s){u==='"'?r[m+1]==='"'?(a+='"',m++):s=!1:a+=u;continue}u==='"'&&a===""?(s=!0,i=!0):u===e?(o(),i=!0):u===`
513
513
  `||u==="\r"?(u==="\r"&&r[m+1]===`
514
- `&&m++,c()):(a+=u,i=!0)}return(i||a!==""||n.length>0)&&c(),t}function yn(r,e){let t=new RegExp(`\\b${e}=(?:"([^"]*)"|'([^']*)')`).exec(r);return t?t[1]??t[2]:new RegExp(`\\b${e}=([^\\s"']+)`).exec(r)?.[1]}var rd=/^[-+]?(?:\d{1,3}(?:[,_]\d{3})+|\d+)?(?:\.\d+)?%?$/;function nd(r){let e=r.map(t=>t.trim()).filter(t=>t!=="");return e.length>0&&e.every(t=>rd.test(t)&&/\d/.test(t))}function Mi(r,e,t,n){let a=yn(e,"delimiter"),s=t==="tsv"?Ci(a," "):a?Ci(a,","):ed(r),i=td(r,s),o=yn(e,"header")?.toLowerCase()!=="false",c=yn(e,"markdown")?.toLowerCase()==="true",m=yn(e,"title");if(i.length===0)return wn({header:null,rows:[],caption:m});let u=Math.max(...i.map(y=>y.length)),h=i.map(y=>[...y,...Array(u-y.length).fill("")]),f=o?h[0]??null:null,b=o?h.slice(1):h,w=Array.from({length:u},(y,x)=>nd(b.map(A=>A[x]))?"right":null),g=y=>c?n(y):Tt(y);return wn({header:f?f.map((y,x)=>({html:g(y),align:w[x]})):null,rows:b.map(y=>y.map((x,A)=>({html:g(x),align:w[A]}))),caption:m})}mt.default.languages.svelte={script:{pattern:/(<script\b[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,greedy:!0,inside:mt.default.languages.javascript},style:{pattern:/(<style\b[^>]*>)[\s\S]*?(?=<\/style>)/i,lookbehind:!0,greedy:!0,inside:mt.default.languages.css},comment:/<!--[\s\S]*?-->/,"svelte-directive":{pattern:/<\/?svelte:[\w-]+(?:\s+(?:[^>"']|"[^"]*"|'[^']*')*)?\/?>(?=\s|$)/i,greedy:!0,inside:mt.default.languages.markup},tag:{pattern:/<\/?(?!\d)[^\s>/=$<%]+(?:\s+(?:[^\s>/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?))*\s*\/?>/,greedy:!0,inside:mt.default.languages.markup},interpolation:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,greedy:!0,inside:mt.default.languages.javascript}};function Ri(r){return`<div class="dmd-diagram-host" data-dmd-diagram="${Di(r)}"></div>`}var ad={js:"javascript",ts:"typescript",py:"python",sh:"bash",shell:"bash",zsh:"bash",yml:"yaml",md:"markdown",rs:"rust",golang:"go",kt:"kotlin",rb:"ruby",cs:"csharp","c++":"cpp","c#":"csharp",gql:"graphql"},ye={ts:"#3178c6",tsx:"#3178c6",js:"#f7df1e",jsx:"#f7df1e",mjs:"#f7df1e",cjs:"#f7df1e",css:"#a855f7",scss:"#a855f7",less:"#a855f7",html:"#f97316",htm:"#f97316",json:"#eab308",jsonc:"#eab308",yaml:"#ef4444",yml:"#ef4444",md:"#94a3b8",markdown:"#94a3b8",py:"#3b82f6",sh:"#22c55e",bash:"#22c55e",zsh:"#22c55e",rs:"#f97316",go:"#38bdf8",svelte:"#ff3e00",vue:"#42b883",svg:"#a855f7",xml:"#f97316",sql:"#a78bfa",graphql:"#a855f7",gql:"#a855f7",dockerfile:"#38bdf8",txt:"#64748b",toml:"#94a3b8",ini:"#94a3b8"},zi={typescript:ye.ts,javascript:ye.js,jsx:ye.jsx,tsx:ye.tsx,python:ye.py,bash:ye.sh,css:ye.css,scss:ye.scss,json:ye.json,jsonc:ye.json,yaml:ye.yaml,markdown:ye.md,html:ye.html,sql:ye.sql,svelte:ye.svelte,go:ye.go,rust:ye.rs,graphql:ye.graphql,xml:ye.xml,toml:ye.toml};function Da(r){let e=r.trim().toLowerCase();return ad[e]||e}function Fi(r,e,t){let n=Da(r);mt.default.languages[n]=e,t&&(zi[n]=t,ye[n]=t)}function sd(r,e=""){let t=Da(e);if(t==="mermaid")return Ri(r);if(!t||t==="text"||t==="plain"||t==="txt")return Tt(r);let n=mt.default.languages[t];return n?mt.default.highlight(r,n,t):Tt(r)}var $i='<svg class="dmd-code-file-icon" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/></svg>';function id(r){let e=r.replace(/\\/g,"/"),t=e.lastIndexOf("/");if(t===-1){let o=e.includes(".")?e.split(".").pop().toLowerCase():"";return`<span class="dmd-code-filename" style="color:${ye[o]||"#94a3b8"}">${$i}${Tt(e)}</span>`}let n=e.slice(0,t+1),a=e.slice(t+1),s=a.includes(".")?a.split(".").pop().toLowerCase():"",i=ye[s]||"#94a3b8";return`<span class="dmd-code-path">${Tt(n)}</span><span class="dmd-code-filename" style="color:${i}">${$i}${Tt(a)}</span>`}var od='<svg class="copy-icon" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>',ld='<svg class="copy-icon" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/><line x1="12" y1="12" x2="18" y2="12" stroke-width="2"/><line x1="12" y1="16" x2="16" y2="16" stroke-width="2"/></svg>',Ei='<svg class="check-icon" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"/></svg>';function xn(r,e=""){let n=e.trim().split(/\s+/)[0]||"text",a=Da(n)||"text",s="",i=e.match(/title=["']([^"']+)["']/);if(i&&(s=i[1]),a.toLowerCase()==="mermaid")return Ri(r);if(a==="csv"||a==="tsv")return Mi(r,e,a,w=>ne.parseInline(w));function o(w,g,y){let x=5381,A=`${g}:${y}:${w}`;for(let M=0;M<A.length;M++)x=(x<<5)+x^A.charCodeAt(M);return`code-${(x>>>0).toString(36)}`}let c=sd(r,a),m=o(r,a,e),u=cd(e),h=u.size>0,f=zi[a],b=s?`<span class="dmd-code-title">${id(s)}</span>`:`<span class="dmd-code-lang"${f?` style="--dmd-lang-color:${f}"`:""}>${a.toUpperCase()}</span>`;return`
514
+ `&&m++,c()):(a+=u,i=!0)}return(i||a!==""||n.length>0)&&c(),t}function yn(r,e){let t=new RegExp(`\\b${e}=(?:"([^"]*)"|'([^']*)')`).exec(r);return t?t[1]??t[2]:new RegExp(`\\b${e}=([^\\s"']+)`).exec(r)?.[1]}var td=/^[-+]?(?:\d{1,3}(?:[,_]\d{3})+|\d+)?(?:\.\d+)?%?$/;function rd(r){let e=r.map(t=>t.trim()).filter(t=>t!=="");return e.length>0&&e.every(t=>td.test(t)&&/\d/.test(t))}function Mi(r,e,t,n){let a=yn(e,"delimiter"),s=t==="tsv"?Ci(a," "):a?Ci(a,","):Qc(r),i=ed(r,s),o=yn(e,"header")?.toLowerCase()!=="false",c=yn(e,"markdown")?.toLowerCase()==="true",m=yn(e,"title");if(i.length===0)return wn({header:null,rows:[],caption:m});let u=Math.max(...i.map(y=>y.length)),h=i.map(y=>[...y,...Array(u-y.length).fill("")]),f=o?h[0]??null:null,b=o?h.slice(1):h,w=Array.from({length:u},(y,x)=>rd(b.map(A=>A[x]))?"right":null),g=y=>c?n(y):Tt(y);return wn({header:f?f.map((y,x)=>({html:g(y),align:w[x]})):null,rows:b.map(y=>y.map((x,A)=>({html:g(x),align:w[A]}))),caption:m})}mt.default.languages.svelte={script:{pattern:/(<script\b[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,greedy:!0,inside:mt.default.languages.javascript},style:{pattern:/(<style\b[^>]*>)[\s\S]*?(?=<\/style>)/i,lookbehind:!0,greedy:!0,inside:mt.default.languages.css},comment:/<!--[\s\S]*?-->/,"svelte-directive":{pattern:/<\/?svelte:[\w-]+(?:\s+(?:[^>"']|"[^"]*"|'[^']*')*)?\/?>(?=\s|$)/i,greedy:!0,inside:mt.default.languages.markup},tag:{pattern:/<\/?(?!\d)[^\s>/=$<%]+(?:\s+(?:[^\s>/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?))*\s*\/?>/,greedy:!0,inside:mt.default.languages.markup},interpolation:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,greedy:!0,inside:mt.default.languages.javascript}};function Ri(r){return`<div class="dmd-diagram-host" data-dmd-diagram="${Di(r)}"></div>`}var nd={js:"javascript",ts:"typescript",py:"python",sh:"bash",shell:"bash",zsh:"bash",yml:"yaml",md:"markdown",rs:"rust",golang:"go",kt:"kotlin",rb:"ruby",cs:"csharp","c++":"cpp","c#":"csharp",gql:"graphql"},ye={ts:"#3178c6",tsx:"#3178c6",js:"#f7df1e",jsx:"#f7df1e",mjs:"#f7df1e",cjs:"#f7df1e",css:"#a855f7",scss:"#a855f7",less:"#a855f7",html:"#f97316",htm:"#f97316",json:"#eab308",jsonc:"#eab308",yaml:"#ef4444",yml:"#ef4444",md:"#94a3b8",markdown:"#94a3b8",py:"#3b82f6",sh:"#22c55e",bash:"#22c55e",zsh:"#22c55e",rs:"#f97316",go:"#38bdf8",svelte:"#ff3e00",vue:"#42b883",svg:"#a855f7",xml:"#f97316",sql:"#a78bfa",graphql:"#a855f7",gql:"#a855f7",dockerfile:"#38bdf8",txt:"#64748b",toml:"#94a3b8",ini:"#94a3b8"},zi={typescript:ye.ts,javascript:ye.js,jsx:ye.jsx,tsx:ye.tsx,python:ye.py,bash:ye.sh,css:ye.css,scss:ye.scss,json:ye.json,jsonc:ye.json,yaml:ye.yaml,markdown:ye.md,html:ye.html,sql:ye.sql,svelte:ye.svelte,go:ye.go,rust:ye.rs,graphql:ye.graphql,xml:ye.xml,toml:ye.toml};function Da(r){let e=r.trim().toLowerCase();return nd[e]||e}function Fi(r,e,t){let n=Da(r);mt.default.languages[n]=e,t&&(zi[n]=t,ye[n]=t)}function ad(r,e=""){let t=Da(e);if(t==="mermaid")return Ri(r);if(!t||t==="text"||t==="plain"||t==="txt")return Tt(r);let n=mt.default.languages[t];return n?mt.default.highlight(r,n,t):Tt(r)}var $i='<svg class="dmd-code-file-icon" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/></svg>';function sd(r){let e=r.replace(/\\/g,"/"),t=e.lastIndexOf("/");if(t===-1){let o=e.includes(".")?e.split(".").pop().toLowerCase():"";return`<span class="dmd-code-filename" style="color:${ye[o]||"#94a3b8"}">${$i}${Tt(e)}</span>`}let n=e.slice(0,t+1),a=e.slice(t+1),s=a.includes(".")?a.split(".").pop().toLowerCase():"",i=ye[s]||"#94a3b8";return`<span class="dmd-code-path">${Tt(n)}</span><span class="dmd-code-filename" style="color:${i}">${$i}${Tt(a)}</span>`}var id='<svg class="copy-icon" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>',od='<svg class="copy-icon" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/><line x1="12" y1="12" x2="18" y2="12" stroke-width="2"/><line x1="12" y1="16" x2="16" y2="16" stroke-width="2"/></svg>',Ei='<svg class="check-icon" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"/></svg>';function xn(r,e=""){let n=e.trim().split(/\s+/)[0]||"text",a=Da(n)||"text",s="",i=e.match(/title=["']([^"']+)["']/);if(i&&(s=i[1]),a.toLowerCase()==="mermaid")return Ri(r);if(a==="csv"||a==="tsv")return Mi(r,e,a,w=>ne.parseInline(w));function o(w,g,y){let x=5381,A=`${g}:${y}:${w}`;for(let M=0;M<A.length;M++)x=(x<<5)+x^A.charCodeAt(M);return`code-${(x>>>0).toString(36)}`}let c=ad(r,a),m=o(r,a,e),u=ld(e),h=u.size>0,f=zi[a],b=s?`<span class="dmd-code-title">${sd(s)}</span>`:`<span class="dmd-code-lang"${f?` style="--dmd-lang-color:${f}"`:""}>${a.toUpperCase()}</span>`;return`
515
515
  <div class="dmd-code-block-wrapper" data-lang="${a}">
516
516
  <div class="dmd-code-header">
517
517
  <div class="dmd-code-header-left">${b}</div>
518
518
  <div class="dmd-code-header-right">
519
- ${h?`<button type="button" class="dmd-copy-btn dmd-copy-selected-btn" data-dmd-copy-selected aria-label="Copy highlighted lines" title="Copy highlighted lines">${ld}${Ei}</button>`:""}
520
- <button type="button" class="dmd-copy-btn" data-dmd-copy aria-label="Copy code" title="Copy code">${od}${Ei}</button>
519
+ ${h?`<button type="button" class="dmd-copy-btn dmd-copy-selected-btn" data-dmd-copy-selected aria-label="Copy highlighted lines" title="Copy highlighted lines">${od}${Ei}</button>`:""}
520
+ <button type="button" class="dmd-copy-btn" data-dmd-copy aria-label="Copy code" title="Copy code">${id}${Ei}</button>
521
521
  </div>
522
522
  </div>
523
- <pre class="language-${a}" tabindex="0"><code id="${m}" class="language-${a}">${dd(c,u)}</code></pre>
523
+ <pre class="language-${a}" tabindex="0"><code id="${m}" class="language-${a}">${cd(c,u)}</code></pre>
524
524
  </div>
525
- `}function cd(r){let e=new Set,t=/\{([\d\s,-]+)\}/.exec(r);if(!t)return e;for(let n of t[1].split(",")){let[a,s]=n.split("-").map(o=>Number.parseInt(o.trim(),10));if(Number.isNaN(a))continue;let i=s===void 0||Number.isNaN(s)?a:s;for(let o=Math.max(1,a);o<=i;o++)e.add(o)}return e}function dd(r,e=new Set){let t=[],n="",a=!1,s=1,i=0,o=!1,c=[],m=()=>{i=t.length,a=!1,n="",o=c.length>0,t.push(`<span class="dmd-code-line${e.has(s)?" dmd-code-line-active":""}">`);for(let f of c)t.push(f)},u=()=>{o||(n=ud(n));for(let f=0;f<c.length;f++)n+="</span>";t.push(n,"</span>"),s++};m();let h=0;for(;h<r.length;)if(r[h]==="<"){let f=r.indexOf(">",h);if(f===-1){n+=r.slice(h),a=!0;break}let b=r.slice(h,f+1);h=f+1,n+=b,b.startsWith("</")?c.pop():c.push(b)}else{let f=r.indexOf("<",h);f===-1&&(f=r.length);let b=r.slice(h,f).split(`
526
- `);h=f;for(let w=0;w<b.length;w++)w>0&&(u(),m()),b[w]!==""&&(n+=b[w],a=!0)}return a||c.length>0?u():t.length=i,t.join("")}function ud(r){let e=0,t="";for(;e<r.length;)if(r[e]===" ")t+='<span class="dmd-ws-space"> </span>',e++;else if(r[e]===" ")t+='<span class="dmd-ws-tab"> </span>',e++;else break;return e>0?t+r.slice(e):r}var Sn=new Set(["badge","button","kbd"]),md=Sn,Oi=/<([A-Z][A-Za-z0-9]*)\b((?:[^>"']|"[^"]*"|'[^']*')*)(\/?)>/g,Ii=/<(\/?)([A-Z][A-Za-z0-9]*)\b((?:[^>"']|"[^"]*"|'[^']*')*)(\/?)>/g,_i=/<\/([A-Z][A-Za-z0-9]*)\s*>/g;function Ta(r,e){let t=e.flags.includes("g")?e.flags:`${e.flags}g`,n=new RegExp(e.source,t),a=[],s=n.exec(r);for(;s!==null;)a.push([s.index,s.index+s[0].length]),s=n.exec(r);return a}function Ma(r,e){for(let t=0;t<e.length;t++)if(r>=e[t][0]&&r<e[t][1])return!0;return!1}function pd(r){return[...Ta(r,/(`{3,})[\s\S]*?\1/g),...Ta(r,/(~{3,})[\s\S]*?\1/g),...Ta(r,/(`+)[\s\S]*?\1/g)]}function hd(r,e,t){Oi.lastIndex=e;let n;for(;;){if(n=Oi.exec(r),n===null)return null;if(!Ma(n.index,t)&&!Sn.has(n[1].toLowerCase()))return{tag:n[1],full:n[0],start:n.index,end:n.index+n[0].length,selfClosing:n[3]==="/"}}}function fd(r,e,t){let n=1;Ii.lastIndex=e.end;let a;for(;a=Ii.exec(r),a!==null;)if(!Ma(a.index,t)&&!(a[2]!==e.tag||a[4]==="/"))if(a[1]==="/"){if(n-=1,n===0)return{full:a[0],start:a.index,end:a.index+a[0].length}}else n+=1;for(_i.lastIndex=e.end;;){if(a=_i.exec(r),a===null)return null;if(!Ma(a.index,t)&&a[1].toLowerCase()===e.tag.toLowerCase())return{full:a[0],start:a.index,end:a.index+a[0].length}}}function gd(r){let e=r.split(`
525
+ `}function ld(r){let e=new Set,t=/\{([\d\s,-]+)\}/.exec(r);if(!t)return e;for(let n of t[1].split(",")){let[a,s]=n.split("-").map(o=>Number.parseInt(o.trim(),10));if(Number.isNaN(a))continue;let i=s===void 0||Number.isNaN(s)?a:s;for(let o=Math.max(1,a);o<=i;o++)e.add(o)}return e}function cd(r,e=new Set){let t=[],n="",a=!1,s=1,i=0,o=!1,c=[],m=()=>{i=t.length,a=!1,n="",o=c.length>0,t.push(`<span class="dmd-code-line${e.has(s)?" dmd-code-line-active":""}">`);for(let f of c)t.push(f)},u=()=>{o||(n=dd(n));for(let f=0;f<c.length;f++)n+="</span>";t.push(n,"</span>"),s++};m();let h=0;for(;h<r.length;)if(r[h]==="<"){let f=r.indexOf(">",h);if(f===-1){n+=r.slice(h),a=!0;break}let b=r.slice(h,f+1);h=f+1,n+=b,b.startsWith("</")?c.pop():c.push(b)}else{let f=r.indexOf("<",h);f===-1&&(f=r.length);let b=r.slice(h,f).split(`
526
+ `);h=f;for(let w=0;w<b.length;w++)w>0&&(u(),m()),b[w]!==""&&(n+=b[w],a=!0)}return a||c.length>0?u():t.length=i,t.join("")}function dd(r){let e=0,t="";for(;e<r.length;)if(r[e]===" ")t+='<span class="dmd-ws-space"> </span>',e++;else if(r[e]===" ")t+='<span class="dmd-ws-tab"> </span>',e++;else break;return e>0?t+r.slice(e):r}var Sn=new Set(["badge","button","kbd"]),ud=Sn,Oi=/<([A-Z][A-Za-z0-9]*)\b((?:[^>"']|"[^"]*"|'[^']*')*)(\/?)>/g,Ii=/<(\/?)([A-Z][A-Za-z0-9]*)\b((?:[^>"']|"[^"]*"|'[^']*')*)(\/?)>/g,_i=/<\/([A-Z][A-Za-z0-9]*)\s*>/g;function Ta(r,e){let t=e.flags.includes("g")?e.flags:`${e.flags}g`,n=new RegExp(e.source,t),a=[],s=n.exec(r);for(;s!==null;)a.push([s.index,s.index+s[0].length]),s=n.exec(r);return a}function Ma(r,e){for(let t=0;t<e.length;t++)if(r>=e[t][0]&&r<e[t][1])return!0;return!1}function md(r){return[...Ta(r,/(`{3,})[\s\S]*?\1/g),...Ta(r,/(~{3,})[\s\S]*?\1/g),...Ta(r,/(`+)[\s\S]*?\1/g)]}function pd(r,e,t){Oi.lastIndex=e;let n;for(;;){if(n=Oi.exec(r),n===null)return null;if(!Ma(n.index,t)&&!Sn.has(n[1].toLowerCase()))return{tag:n[1],full:n[0],start:n.index,end:n.index+n[0].length,selfClosing:n[3]==="/"}}}function hd(r,e,t){let n=1;Ii.lastIndex=e.end;let a;for(;a=Ii.exec(r),a!==null;)if(!Ma(a.index,t)&&!(a[2]!==e.tag||a[4]==="/"))if(a[1]==="/"){if(n-=1,n===0)return{full:a[0],start:a.index,end:a.index+a[0].length}}else n+=1;for(_i.lastIndex=e.end;;){if(a=_i.exec(r),a===null)return null;if(!Ma(a.index,t)&&a[1].toLowerCase()===e.tag.toLowerCase())return{full:a[0],start:a.index,end:a.index+a[0].length}}}function fd(r){let e=r.split(`
527
527
  `),t=null;for(let a of e){if(a.trim()==="")continue;let s=/^( +)/.exec(a);if(!s){t=0;break}let i=s[1].length;t=t===null?i:Math.min(t,i)}if(!t)return r;let n=" ".repeat(t);return e.map(a=>a.startsWith(n)?a.slice(t):a).join(`
528
- `)}function Ni(r,e,t,n){if(!r?.trim())return r;let a=gd(r).trim(),s=md.has(e.toLowerCase()),i=f=>(s?ne.parseInline(f,{renderer:t,gfm:!0,breaks:!1}):ne.parse(f,{renderer:t,gfm:!0,breaks:!1})).replace(/\n{2,}/g,`
528
+ `)}function Ni(r,e,t,n){if(!r?.trim())return r;let a=fd(r).trim(),s=ud.has(e.toLowerCase()),i=f=>(s?ne.parseInline(f,{renderer:t,gfm:!0,breaks:!1}):ne.parse(f,{renderer:t,gfm:!0,breaks:!1})).replace(/\n{2,}/g,`
529
529
  `).replace(/\n+$/,""),o=/(`{3,})[^\n]*\n[\s\S]*?\1|(~{3,})[^\n]*\n[\s\S]*?\2/g;if(!o.test(a))return i(a);let c=f=>{let b=/^(`{3,}|~{3,})([^\n]*)\n([\s\S]*?)\1\s*$/.exec(f);return b?xn(b[3].replace(/\n$/,""),b[2].trim()):f},m="",u=0;o.lastIndex=0;let h=o.exec(a);for(;h!==null;)m+=i(a.slice(u,h.index)),m+=`
530
530
  @@DMD-FENCE-${n.length}@@
531
- `,n.push(c(h[0])),u=h.index+h[0].length,h=o.exec(a);return m+=i(a.slice(u)),m}var vd=/(?:<p>)?\s*@@DMD-FENCE-(\d+)@@\s*(?:<\/p>)?/g;function ji(r,e){return e.length===0||!r?.includes("@@DMD-FENCE-")?r:r.replace(vd,(t,n)=>e[Number(n)]??"")}function Li(r,e,t,n){let a=pd(r),s="",i=0;for(;;){let o=hd(r,i,a);if(o===null){let h=r.slice(i);s+=e===null?h:Ni(h,e,t,n);break}let c=r.slice(i,o.start);if(s+=e===null?c:Ni(c,e,t,n),o.selfClosing){s+=o.full,i=o.end;continue}let m=fd(r,o,a);if(m===null){s+=o.full,i=o.end;continue}let u=Li(r.slice(o.end,m.start),o.tag,t,n);s+=o.full+u+m.full,i=m.end}return s}function Bi(r){if(!r?.includes("<")||!/<[A-Z][A-Za-z0-9]*\b/.test(r))return{html:r,fences:[]};let e=new ne.Renderer,t=[];return{html:Li(r,null,e,t),fences:t}}function Pi(r){return r?.includes("/>")?r.replace(/<([A-Z][A-Za-z0-9]*)\b((?:[^>"']|"[^"]*"|'[^']*')*)\/>/g,(e,t,n)=>`<${t}${n}></${t}>`):r}var kn=/<p>\s*<([A-Z][A-Za-z0-9]*)\b/g,Ca=/<p\b|<\/p>/g;function bd(r,e){Ca.lastIndex=e;let t=1,n=Ca.exec(r);for(;n;){if(t+=n[0]==="</p>"?-1:1,t===0)return n.index;n=Ca.exec(r)}return-1}function yd(r){let e="",t=0;kn.lastIndex=0;let n=kn.exec(r);for(;n;){if(Sn.has(n[1].toLowerCase())){n=kn.exec(r);continue}let a=n.index+n[0].length,s=bd(r,a),i=s;for(;i>a&&/\s/.test(r[i-1]);)i--;if(e+=r.slice(t,n.index)+n[0].slice(n[0].length-n[1].length-1),s===-1)return e+=r.slice(a),e;e+=r.slice(a,i),t=s+4,n=kn.exec(r)}return e+r.slice(t)}function Hi(r){if(!r?.includes("<"))return r;let e=yd(r);return e=e.replace(/(<\/([A-Z][A-Za-z0-9]*)\s*>)\s*<\/p>/g,(t,n,a)=>Sn.has(a.toLowerCase())?t:n),e}$a();xo();function ko(r){let e=[],t="@@__DMD_KATEX_CODE_",n="__@@",a=o=>{let c=e.length;return e.push(o),`${t}${c}${n}`},s=r.replace(/(`{3,})[\s\S]*?\1/g,o=>a(o));s=s.replace(/(~{3,})[\s\S]*?\1/g,o=>a(o)),s=s.replace(/(`+)[\s\S]*?\1/g,o=>a(o));let i=s.replace(/\$\$([\s\S]+?)\$\$/g,(o,c)=>{try{return Ts.renderToString(c.trim(),{displayMode:!0,throwOnError:!1})}catch{return`$$${c}$$`}});return i=i.replace(/(^|[^\\])\$([^$\n]+?)\$/g,(o,c,m)=>{if(!m.trim())return`${c}$${m}$`;try{let u=Ts.renderToString(m.trim(),{displayMode:!1,throwOnError:!1});return`${c}${u}`}catch{return`${c}$${m}$`}}),e.forEach((o,c)=>{i=i.split(`${t}${c}${n}`).join(o)}),i}function Sm(r){let e=/^---\r?\n([\s\S]*?)\r?\n---\r?\n?/,t=r.match(e);if(!t)return{frontmatter:{},content:r};let n=t[1],a=r.substring(t[0].length),s={},i=n.split(`
532
- `);for(let o of i){let c=o.indexOf(":");if(c===-1)continue;let m=o.substring(0,c).trim(),u=o.substring(c+1).trim();u.startsWith('"')&&u.endsWith('"')||u.startsWith("'")&&u.endsWith("'")?u=u.substring(1,u.length-1):u==="true"?u=!0:u==="false"?u=!1:!Number.isNaN(Number(u))&&u!==""?u=Number(u):u.startsWith("[")&&u.endsWith("]")&&(u=u.substring(1,u.length-1).split(",").map(h=>h.trim().replace(/^['"]|['"]$/g,"")).filter(Boolean)),s[m]=u}return{frontmatter:s,content:a}}function Am(r){return r.toLowerCase().replace(/<[^>]*>/g,"").replace(/[^\w\s-]/g,"").trim().replace(/[\s_-]+/g,"-")}function Dm(r){let e=r.trim().split(/\s+/).length;return Math.max(1,Math.ceil(e/200))}function So(r,e=""){let{frontmatter:t,content:n}=Sm(r),a=Dm(n),s=ko(n);s=Si(s);let i=Bi(s);s=i.html;let o=[],c={},m=new ne.Renderer;m.heading=({tokens:w,depth:g})=>{let y=ne.parseInline(w.map(M=>M.raw).join("")),x=w.map(M=>M.text||M.raw).join(""),A=Am(x);return c[A]?(c[A]++,A=`${A}-${c[A]}`):c[A]=1,g<=3&&o.push({level:g,text:An(x),html:y,id:A}),`
531
+ `,n.push(c(h[0])),u=h.index+h[0].length,h=o.exec(a);return m+=i(a.slice(u)),m}var gd=/(?:<p>)?\s*@@DMD-FENCE-(\d+)@@\s*(?:<\/p>)?/g;function ji(r,e){return e.length===0||!r?.includes("@@DMD-FENCE-")?r:r.replace(gd,(t,n)=>e[Number(n)]??"")}function Li(r,e,t,n){let a=md(r),s="",i=0;for(;;){let o=pd(r,i,a);if(o===null){let h=r.slice(i);s+=e===null?h:Ni(h,e,t,n);break}let c=r.slice(i,o.start);if(s+=e===null?c:Ni(c,e,t,n),o.selfClosing){s+=o.full,i=o.end;continue}let m=hd(r,o,a);if(m===null){s+=o.full,i=o.end;continue}let u=Li(r.slice(o.end,m.start),o.tag,t,n);s+=o.full+u+m.full,i=m.end}return s}function Bi(r){if(!r?.includes("<")||!/<[A-Z][A-Za-z0-9]*\b/.test(r))return{html:r,fences:[]};let e=new ne.Renderer,t=[];return{html:Li(r,null,e,t),fences:t}}function Pi(r){return r?.includes("/>")?r.replace(/<([A-Z][A-Za-z0-9]*)\b((?:[^>"']|"[^"]*"|'[^']*')*)\/>/g,(e,t,n)=>`<${t}${n}></${t}>`):r}var kn=/<p>\s*<([A-Z][A-Za-z0-9]*)\b/g,Ca=/<p\b|<\/p>/g;function vd(r,e){Ca.lastIndex=e;let t=1,n=Ca.exec(r);for(;n;){if(t+=n[0]==="</p>"?-1:1,t===0)return n.index;n=Ca.exec(r)}return-1}function bd(r){let e="",t=0;kn.lastIndex=0;let n=kn.exec(r);for(;n;){if(Sn.has(n[1].toLowerCase())){n=kn.exec(r);continue}let a=n.index+n[0].length,s=vd(r,a),i=s;for(;i>a&&/\s/.test(r[i-1]);)i--;if(e+=r.slice(t,n.index)+n[0].slice(n[0].length-n[1].length-1),s===-1)return e+=r.slice(a),e;e+=r.slice(a,i),t=s+4,n=kn.exec(r)}return e+r.slice(t)}function Hi(r){if(!r?.includes("<"))return r;let e=bd(r);return e=e.replace(/(<\/([A-Z][A-Za-z0-9]*)\s*>)\s*<\/p>/g,(t,n,a)=>Sn.has(a.toLowerCase())?t:n),e}$a();xo();function ko(r){let e=[],t="@@__DMD_KATEX_CODE_",n="__@@",a=o=>{let c=e.length;return e.push(o),`${t}${c}${n}`},s=r.replace(/(`{3,})[\s\S]*?\1/g,o=>a(o));s=s.replace(/(~{3,})[\s\S]*?\1/g,o=>a(o)),s=s.replace(/(`+)[\s\S]*?\1/g,o=>a(o));let i=s.replace(/\$\$([\s\S]+?)\$\$/g,(o,c)=>{try{return Ts.renderToString(c.trim(),{displayMode:!0,throwOnError:!1})}catch{return`$$${c}$$`}});return i=i.replace(/(^|[^\\])\$([^$\n]+?)\$/g,(o,c,m)=>{if(!m.trim())return`${c}$${m}$`;try{let u=Ts.renderToString(m.trim(),{displayMode:!1,throwOnError:!1});return`${c}${u}`}catch{return`${c}$${m}$`}}),e.forEach((o,c)=>{i=i.split(`${t}${c}${n}`).join(o)}),i}function km(r){let e=/^---\r?\n([\s\S]*?)\r?\n---\r?\n?/,t=r.match(e);if(!t)return{frontmatter:{},content:r};let n=t[1],a=r.substring(t[0].length),s={},i=n.split(`
532
+ `);for(let o of i){let c=o.indexOf(":");if(c===-1)continue;let m=o.substring(0,c).trim(),u=o.substring(c+1).trim();u.startsWith('"')&&u.endsWith('"')||u.startsWith("'")&&u.endsWith("'")?u=u.substring(1,u.length-1):u==="true"?u=!0:u==="false"?u=!1:!Number.isNaN(Number(u))&&u!==""?u=Number(u):u.startsWith("[")&&u.endsWith("]")&&(u=u.substring(1,u.length-1).split(",").map(h=>h.trim().replace(/^['"]|['"]$/g,"")).filter(Boolean)),s[m]=u}return{frontmatter:s,content:a}}function Sm(r){return r.toLowerCase().replace(/<[^>]*>/g,"").replace(/[^\w\s-]/g,"").trim().replace(/[\s_-]+/g,"-")}function Am(r){let e=r.trim().split(/\s+/).length;return Math.max(1,Math.ceil(e/200))}function So(r,e=""){let{frontmatter:t,content:n}=km(r),a=Am(n),s=ko(n);s=Si(s);let i=Bi(s);s=i.html;let o=[],c={},m=new ne.Renderer;m.heading=({tokens:w,depth:g})=>{let y=ne.parseInline(w.map(M=>M.raw).join("")),x=w.map(M=>M.text||M.raw).join(""),A=Sm(x);return c[A]?(c[A]++,A=`${A}-${c[A]}`):c[A]=1,g<=3&&o.push({level:g,text:An(x),html:y,id:A}),`
533
533
  <h${g} id="${A}" class="dmd-heading dmd-h${g}">
534
534
  <a href="#/${e}#${A}" class="dmd-heading-anchor" aria-hidden="true">#</a>
535
535
  <span>${y}</span>
536
536
  </h${g}>
537
- `},m.code=({text:w,lang:g})=>xn(w,g||""),m.table=w=>wn({header:w.header.map((g,y)=>({html:ne.parseInline(g.text||""),align:g.align||w.align?.[y]||null})),rows:w.rows.map(g=>g.map((y,x)=>({html:ne.parseInline(y.text||""),align:y.align||w.align?.[x]||null})))}),m.link=({href:w,title:g,text:y})=>{let x=w.startsWith("http://")||w.startsWith("https://")||w.startsWith("mailto:"),A=w;if(!x){if(/\.html(?:#.*)?$/i.test(w)){let D=g?` title="${g}"`:"";return`<a href="${w}"${D} class="dmd-link">${y}</a>`}if(w.startsWith("#"))A=`#/${e}${w}`;else{let D=w.replace(/\.(md|mdx)$/i,"");if(D.startsWith("./")){let $=e.includes("/")?e.substring(0,e.lastIndexOf("/")):"";D=$?`${$}/${D.replace(/^\.\//,"")}`:D.replace(/^\.\//,"")}else if(!D.startsWith("/")){let $=e.includes("/")?e.substring(0,e.lastIndexOf("/")):"";D=$?`${$}/${D}`:D}A=`#/${D.replace(/^\//,"")}`}}let M=g?` title="${g}"`:"";return`<a href="${A}"${M}${x?' target="_blank" rel="noopener noreferrer"':""} class="dmd-link">${y}${x?'<svg class="dmd-ext-icon" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/><polyline points="15 3 21 3 21 9"/><line x1="10" y1="14" x2="21" y2="3"/></svg>':""}</a>`};let u=ne.parse(s,{renderer:m,gfm:!0,breaks:!1}),h=ji(u,i.fences),f=Pi(h),b=Hi(f);return{frontmatter:t,html:b,headings:o,readingTimeMinutes:a}}var lr=J(require("fs")),Dr=J(require("path")),Ao=require("esbuild");function Zr(r){let e;if(lr.default.existsSync(r)&&(lr.default.statSync(r).isDirectory()?lr.default.existsSync(Dr.default.join(r,".dmd"))?e=Dr.default.join(r,".dmd"):e=r:e=Dr.default.dirname(r)),!e||!lr.default.existsSync(e))return;let t=["setup.js","setup.mjs","setup.cjs","setup.ts","languages.js","languages.ts","components.js","index.js"];for(let n of t){let a=Dr.default.join(e,n);if(lr.default.existsSync(a)&&lr.default.statSync(a).isFile())try{typeof globalThis.window>"u"&&(globalThis.window=globalThis),globalThis.DocMeDown={...globalThis.DocMeDown||{},registerLanguage:Fi};let i=(0,Ao.buildSync)({entryPoints:[a],bundle:!1,format:"cjs",platform:"node",target:"node18",write:!1,logLevel:"silent"}).outputFiles[0]?.text;if(i){let o=new Function("exports","require","module","__filename","__dirname",i),c={exports:{}};o(c.exports,require,c,a,Dr.default.dirname(a))}}catch{}}}var Tm=160;function Do(r){return{name:r.name,tagline:r.tagline,version:r.version,logo:r.theme?.logo?.light,logoDark:r.theme?.logo?.dark,logoAlt:r.theme?.logo?.alt,accent:r.theme?.accentColor,accentDark:r.theme?.accentColorDark,searchPlaceholder:r.search?.placeholder}}function qe(r){return r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function Cm(r){return r.replace(/<script[\s\S]*?<\/script>/gi,"").replace(/<style[\s\S]*?<\/style>/gi,"").replace(/<[^>]+>/g," ").replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/\s+/g," ").trim()}function Mm(r,e=Tm){if(r.length<=e)return r;let t=r.slice(0,e),n=t.lastIndexOf(" ");return`${(n>40?t.slice(0,n):t).trimEnd()}\u2026`}function $m(r){let e=r.replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n?/,"");for(let t of e.split(/\n{2,}/)){let n=t.trim();if(!(!n||n.startsWith("#")||n.startsWith("---")||n.startsWith("<")))return Mm(Cm(n.replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/[*_`>]/g,"")))}return""}function Em(r,e){return e.frontmatter?.description||(e.content?$m(e.content):"")||r.description||r.tagline||""}function To(r,e){if(!r.url)return null;let t=r.url.replace(/\/+$/,"");return e==="README"?`${t}/`:`${t}/${e}/`}function Rm(r){return r==="README"?"":"../".repeat(r.split("/").length)}function zm(r){return r==="README"?"index.html":`${r}/index.html`}function Fm({config:r,doc:e,contentHtml:t}){let n=e.slug,a=Rm(n),s=r.name||"Documentation",i=n==="README"?s:`${e.title} | ${s}`,o=Em(r,e),c=To(r,n),m=e.frontmatter?.noindex===!0||e.frontmatter?.hidden===!0,u=typeof e.frontmatter?.ogImage=="string"?e.frontmatter.ogImage:void 0,h=u?/^https?:\/\//i.test(u)?u:c?`${r.url?.replace(/\/+$/,"")}/${u.replace(/^\/+/,"")}`:u:void 0,f=['<meta charset="UTF-8" />','<meta name="viewport" content="width=device-width, initial-scale=1.0" />',`<title>${qe(i)}</title>`];o&&f.push(`<meta name="description" content="${qe(o)}" />`),m?f.push('<meta name="robots" content="noindex, nofollow" />'):c&&f.push(`<link rel="canonical" href="${qe(c)}" />`),f.push('<meta name="generator" content="DocMeDown" />');let b=Bt(r.theme?.favicon),w=' type="image/svg+xml"';if(b.startsWith("data:image/png")||/\.png($|\?)/i.test(b)?w=' type="image/png"':(b.startsWith("data:image/x-icon")||/\.ico($|\?)/i.test(b))&&(w=' type="image/x-icon"'),f.push(`<link rel="icon"${w} href="${qe(b)}" />`),r.theme?.accentColor&&f.push(`<meta name="theme-color" content="${qe(r.theme.accentColor)}" />`),f.push('<meta property="og:type" content="website" />'),f.push(`<meta property="og:site_name" content="${qe(s)}" />`),f.push(`<meta property="og:title" content="${qe(i)}" />`),o&&f.push(`<meta property="og:description" content="${qe(o)}" />`),c&&f.push(`<meta property="og:url" content="${qe(c)}" />`),h&&f.push(`<meta property="og:image" content="${qe(h)}" />`),f.push('<meta name="twitter:card" content="summary" />'),f.push(`<meta name="twitter:title" content="${qe(i)}" />`),o&&f.push(`<meta name="twitter:description" content="${qe(o)}" />`),h&&f.push(`<meta name="twitter:image" content="${qe(h)}" />`),c&&!m){let A={"@context":"https://schema.org","@graph":[{"@type":"WebSite",name:s,url:`${r.url?.replace(/\/+$/,"")}/`},{"@type":"TechArticle",headline:e.title,...o?{description:o}:{},url:c,...e.lastModified?{dateModified:e.lastModified}:{},...e.readingTimeMinutes?{timeRequired:`PT${e.readingTimeMinutes}M`}:{}}]};f.push(`<script type="application/ld+json">${JSON.stringify(A).replace(/</g,"\\u003c")}</script>`)}let g=`<script>window.__DOCMEDOWN_STATIC_SLUG__=${JSON.stringify(n)};window.__DOCMEDOWN_STATIC_BASE__=${JSON.stringify(a)};</script>`,y=a||"./",x=Do({...r,name:s});return`<!DOCTYPE html>
537
+ `},m.code=({text:w,lang:g})=>xn(w,g||""),m.table=w=>wn({header:w.header.map((g,y)=>({html:ne.parseInline(g.text||""),align:g.align||w.align?.[y]||null})),rows:w.rows.map(g=>g.map((y,x)=>({html:ne.parseInline(y.text||""),align:y.align||w.align?.[x]||null})))}),m.link=({href:w,title:g,text:y})=>{let x=w.startsWith("http://")||w.startsWith("https://")||w.startsWith("mailto:"),A=w;if(!x){if(/\.html(?:#.*)?$/i.test(w)){let D=g?` title="${g}"`:"";return`<a href="${w}"${D} class="dmd-link">${y}</a>`}if(w.startsWith("#"))A=`#/${e}${w}`;else{let D=w.replace(/\.(md|mdx)$/i,"");if(D.startsWith("./")){let $=e.includes("/")?e.substring(0,e.lastIndexOf("/")):"";D=$?`${$}/${D.replace(/^\.\//,"")}`:D.replace(/^\.\//,"")}else if(!D.startsWith("/")){let $=e.includes("/")?e.substring(0,e.lastIndexOf("/")):"";D=$?`${$}/${D}`:D}A=`#/${D.replace(/^\//,"")}`}}let M=g?` title="${g}"`:"";return`<a href="${A}"${M}${x?' target="_blank" rel="noopener noreferrer"':""} class="dmd-link">${y}${x?'<svg class="dmd-ext-icon" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/><polyline points="15 3 21 3 21 9"/><line x1="10" y1="14" x2="21" y2="3"/></svg>':""}</a>`};let u=ne.parse(s,{renderer:m,gfm:!0,breaks:!1}),h=ji(u,i.fences),f=Pi(h),b=Hi(f);return{frontmatter:t,html:b,headings:o,readingTimeMinutes:a}}var lr=J(require("fs")),Dr=J(require("path")),Ao=require("esbuild");function Zr(r){let e;if(lr.default.existsSync(r)&&(lr.default.statSync(r).isDirectory()?lr.default.existsSync(Dr.default.join(r,".dmd"))?e=Dr.default.join(r,".dmd"):e=r:e=Dr.default.dirname(r)),!e||!lr.default.existsSync(e))return;let t=["setup.js","setup.mjs","setup.cjs","setup.ts","languages.js","languages.ts","components.js","index.js"];for(let n of t){let a=Dr.default.join(e,n);if(lr.default.existsSync(a)&&lr.default.statSync(a).isFile())try{typeof globalThis.window>"u"&&(globalThis.window=globalThis),globalThis.DocMeDown={...globalThis.DocMeDown||{},registerLanguage:Fi};let i=(0,Ao.buildSync)({entryPoints:[a],bundle:!1,format:"cjs",platform:"node",target:"node18",write:!1,logLevel:"silent"}).outputFiles[0]?.text;if(i){let o=new Function("exports","require","module","__filename","__dirname",i),c={exports:{}};o(c.exports,require,c,a,Dr.default.dirname(a))}}catch{}}}var Dm=160;function Do(r){return{name:r.name,tagline:r.tagline,version:r.version,logo:r.theme?.logo?.light,logoDark:r.theme?.logo?.dark,logoAlt:r.theme?.logo?.alt,accent:r.theme?.accentColor,accentDark:r.theme?.accentColorDark,searchPlaceholder:r.search?.placeholder}}function qe(r){return r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function Tm(r){return r.replace(/<script[\s\S]*?<\/script>/gi,"").replace(/<style[\s\S]*?<\/style>/gi,"").replace(/<[^>]+>/g," ").replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/\s+/g," ").trim()}function Cm(r,e=Dm){if(r.length<=e)return r;let t=r.slice(0,e),n=t.lastIndexOf(" ");return`${(n>40?t.slice(0,n):t).trimEnd()}\u2026`}function Mm(r){let e=r.replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n?/,"");for(let t of e.split(/\n{2,}/)){let n=t.trim();if(!(!n||n.startsWith("#")||n.startsWith("---")||n.startsWith("<")))return Cm(Tm(n.replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/[*_`>]/g,"")))}return""}function $m(r,e){return e.frontmatter?.description||(e.content?Mm(e.content):"")||r.description||r.tagline||""}function To(r,e){if(!r.url)return null;let t=r.url.replace(/\/+$/,"");return e==="README"?`${t}/`:`${t}/${e}/`}function Em(r){return r==="README"?"":"../".repeat(r.split("/").length)}function Rm(r){return r==="README"?"index.html":`${r}/index.html`}function zm({config:r,doc:e,contentHtml:t}){let n=e.slug,a=Em(n),s=r.name||"Documentation",i=n==="README"?s:`${e.title} | ${s}`,o=$m(r,e),c=To(r,n),m=e.frontmatter?.noindex===!0||e.frontmatter?.hidden===!0,u=typeof e.frontmatter?.ogImage=="string"?e.frontmatter.ogImage:void 0,h=u?/^https?:\/\//i.test(u)?u:c?`${r.url?.replace(/\/+$/,"")}/${u.replace(/^\/+/,"")}`:u:void 0,f=['<meta charset="UTF-8" />','<meta name="viewport" content="width=device-width, initial-scale=1.0" />',`<title>${qe(i)}</title>`];o&&f.push(`<meta name="description" content="${qe(o)}" />`),m?f.push('<meta name="robots" content="noindex, nofollow" />'):c&&f.push(`<link rel="canonical" href="${qe(c)}" />`),f.push('<meta name="generator" content="DocMeDown" />');let b=Bt(r.theme?.favicon),w=' type="image/svg+xml"';if(b.startsWith("data:image/png")||/\.png($|\?)/i.test(b)?w=' type="image/png"':(b.startsWith("data:image/x-icon")||/\.ico($|\?)/i.test(b))&&(w=' type="image/x-icon"'),f.push(`<link rel="icon"${w} href="${qe(b)}" />`),r.theme?.accentColor&&f.push(`<meta name="theme-color" content="${qe(r.theme.accentColor)}" />`),f.push('<meta property="og:type" content="website" />'),f.push(`<meta property="og:site_name" content="${qe(s)}" />`),f.push(`<meta property="og:title" content="${qe(i)}" />`),o&&f.push(`<meta property="og:description" content="${qe(o)}" />`),c&&f.push(`<meta property="og:url" content="${qe(c)}" />`),h&&f.push(`<meta property="og:image" content="${qe(h)}" />`),f.push('<meta name="twitter:card" content="summary" />'),f.push(`<meta name="twitter:title" content="${qe(i)}" />`),o&&f.push(`<meta name="twitter:description" content="${qe(o)}" />`),h&&f.push(`<meta name="twitter:image" content="${qe(h)}" />`),c&&!m){let A={"@context":"https://schema.org","@graph":[{"@type":"WebSite",name:s,url:`${r.url?.replace(/\/+$/,"")}/`},{"@type":"TechArticle",headline:e.title,...o?{description:o}:{},url:c,...e.lastModified?{dateModified:e.lastModified}:{},...e.readingTimeMinutes?{timeRequired:`PT${e.readingTimeMinutes}M`}:{}}]};f.push(`<script type="application/ld+json">${JSON.stringify(A).replace(/</g,"\\u003c")}</script>`)}let g=`<script>window.__DOCMEDOWN_STATIC_SLUG__=${JSON.stringify(n)};window.__DOCMEDOWN_STATIC_BASE__=${JSON.stringify(a)};</script>`,y=a||"./",x=Do({...r,name:s});return`<!DOCTYPE html>
538
538
  <html lang="en">
539
539
  <head>
540
540
  ${f.join(`
@@ -549,7 +549,7 @@ ${m}
549
549
  <script src="${y}docmedown.web.js" data-docmedown-runtime></script>
550
550
  </body>
551
551
  </html>
552
- `}function Om(r){let e=r.name||"Documentation",t=Do({...r,name:e});return`<!DOCTYPE html>
552
+ `}function Fm(r){let e=r.name||"Documentation",t=Do({...r,name:e});return`<!DOCTYPE html>
553
553
  <html lang="en">
554
554
  <head>
555
555
  <meta charset="UTF-8" />
@@ -568,17 +568,17 @@ ${m}
568
568
  <script src="./docmedown.web.js" data-docmedown-runtime></script>
569
569
  </body>
570
570
  </html>
571
- `}function Im(r,e){if(!e.url)return null;let t=[];for(let n of r.docs){if(n.frontmatter?.hidden||n.frontmatter?.noindex)continue;let a=To(e,n.slug);a&&t.push([" <url>",` <loc>${qe(a)}</loc>`,...n.lastModified?[` <lastmod>${n.lastModified}</lastmod>`]:[]," </url>"].join(`
571
+ `}function Om(r,e){if(!e.url)return null;let t=[];for(let n of r.docs){if(n.frontmatter?.hidden||n.frontmatter?.noindex)continue;let a=To(e,n.slug);a&&t.push([" <url>",` <loc>${qe(a)}</loc>`,...n.lastModified?[` <lastmod>${n.lastModified}</lastmod>`]:[]," </url>"].join(`
572
572
  `))}return`<?xml version="1.0" encoding="UTF-8"?>
573
573
  <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
574
574
  ${t.join(`
575
575
  `)}
576
576
  </urlset>
577
- `}function _m(r){return r.url?`User-agent: *
577
+ `}function Im(r){return r.url?`User-agent: *
578
578
  Allow: /
579
579
 
580
580
  Sitemap: ${r.url.replace(/\/+$/,"")}/sitemap.xml
581
- `:null}function Co(r,e,t,n){let a=[],s=!1;Zr(Jt.default.join(r,".dmd"));for(let c of e.docs){if(c.frontmatter?.hidden===!0)continue;let m=t[c.slug]??t[c.path]??c.content??"",u=So(m,c.slug),h=zm(c.slug);if(c.slug==="README"){let w=Jt.default.join(r,"index.html");if(Yt.default.existsSync(w)&&!Yt.default.readFileSync(w,"utf-8").includes("data-docmedown-runtime")){s=!0;continue}}let f=Fm({config:n,doc:c,contentHtml:u.html}),b=Jt.default.join(r,h);Yt.default.mkdirSync(Jt.default.dirname(b),{recursive:!0}),Yt.default.writeFileSync(b,f,"utf-8"),a.push(h)}Yt.default.writeFileSync(Jt.default.join(r,"404.html"),Om(n),"utf-8");let i=Im(e,n);i&&Yt.default.writeFileSync(Jt.default.join(r,"sitemap.xml"),i,"utf-8");let o=_m(n);return o&&Yt.default.writeFileSync(Jt.default.join(r,"robots.txt"),o,"utf-8"),console.log(Xr.default.green(` \u2714 Prerendered ${a.length} static page${a.length===1?"":"s"}`)),n.url?console.log(Xr.default.green(` \u2714 Generated sitemap.xml and robots.txt for ${n.url}`)):console.log(Xr.default.dim(' Set "url" in docs.json to also generate sitemap.xml, robots.txt, and canonical URLs.')),s&&console.log(Xr.default.yellow(" \u26A0 Skipped prerendering the home page: index.html is a custom shell without the standard DocMeDown runtime tag.")),{written:a,homeSkipped:s}}var Fe=J(require("fs")),rt=J(require("path")),Nm=new Set(["SKILL.md"]);function Yr(r=process.cwd()){if(!Fe.default.existsSync(r))return[];let e=["node_modules",".git",".dmd","dist","bin",".dist"];try{let t=Fe.default.readdirSync(r,{withFileTypes:!0}),n=[];for(let a of t){if(a.name.startsWith(".")||e.includes(a.name)||Nm.has(a.name))continue;let s=rt.default.join(r,a.name),i=a.isFile();if(a.isSymbolicLink())try{i=Fe.default.statSync(s).isFile()}catch{i=!1}i&&/\.(md|mdx)$/i.test(a.name)&&n.push(a.name)}return n}catch{return[]}}function Kt(r=process.cwd(),e=rt.default.resolve(r,"./docs")){let t=rt.default.resolve(r),n=rt.default.resolve(e),a={linked:[],skipped:[],cleaned:[]};if(t.toLowerCase()===n.toLowerCase())return a;Fe.default.existsSync(n)||Fe.default.mkdirSync(n,{recursive:!0});try{let i=Fe.default.readdirSync(n,{withFileTypes:!0});for(let o of i)if(o.isSymbolicLink()){let c=rt.default.join(n,o.name);try{let m=Fe.default.readlinkSync(c),u=rt.default.resolve(n,m);rt.default.dirname(u).toLowerCase()===t.toLowerCase()&&(!Fe.default.existsSync(u)||!/\.(md|mdx)$/i.test(o.name))&&(Fe.default.unlinkSync(c),a.cleaned.push(o.name))}catch{try{Fe.default.unlinkSync(c),a.cleaned.push(o.name)}catch{}}}}catch{}let s=Yr(t);for(let i of s){let o=rt.default.join(t,i),c=rt.default.join(n,i),m=!1,u=!1;try{let b=Fe.default.lstatSync(c);m=!0,u=b.isSymbolicLink()}catch{m=!1,u=!1}if(m)if(u)try{let b=Fe.default.readlinkSync(c);if(rt.default.resolve(n,b).toLowerCase()===o.toLowerCase()){a.skipped.push(i);continue}}catch{try{Fe.default.unlinkSync(c)}catch{a.skipped.push(i);continue}}else{a.skipped.push(i);continue}let h=rt.default.relative(n,o),f=!1;try{Fe.default.symlinkSync(h,c,"file"),f=!0}catch{try{Fe.default.linkSync(o,c),f=!0}catch{try{Fe.default.copyFileSync(o,c),f=!0}catch{f=!1}}}f&&a.linked.push(i)}return a}Cs();Kr();var Hm=".dist";function qm(r,e){return{onlineDir:r,offlineDir:e?F.default.resolve(process.cwd(),e):F.default.join(r,Hm)}}function Um(r){return(0,_o.gzipSync)(Buffer.from(JSON.stringify(r),"utf-8"),{level:9}).toString("base64")}function jo(r){let e,t;if(H.default.existsSync(r))H.default.statSync(r).isDirectory()?H.default.existsSync(F.default.join(r,".dmd"))?e=F.default.join(r,".dmd"):e=r:(t=r,e=F.default.dirname(r));else{let u=F.default.dirname(r);if(H.default.existsSync(u)&&H.default.statSync(u).isDirectory())e=u;else return}let n=e&&H.default.existsSync(e)?H.default.readdirSync(e):[],a=n.filter(u=>u.endsWith(".svelte")),s=n.filter(u=>(u.endsWith(".tsx")||u.endsWith(".jsx"))&&!u.startsWith(".")),i=["setup.js","setup.mjs","setup.ts","languages.js","languages.ts","components.js","index.js"],o=n.filter(u=>(u.endsWith(".ts")||u.endsWith(".js"))&&!i.includes(u)&&!u.endsWith(".d.ts"));if((a.length>0||s.length>0||o.length>0)&&e)try{let u=H.default.mkdtempSync(F.default.join(Io.default.tmpdir(),"docmedown-components-bundle-"));try{for(let T of n){let D=F.default.join(e,T);H.default.statSync(D).isFile()&&H.default.copyFileSync(D,F.default.join(u,T))}let f=[F.default.resolve(__dirname,"../../runtime/bridges/react-bridge.ts"),F.default.resolve(__dirname,"../src/runtime/bridges/react-bridge.ts"),F.default.resolve(__dirname,"src/runtime/bridges/react-bridge.ts")].find(T=>H.default.existsSync(T));f&&H.default.copyFileSync(f,F.default.join(u,"react-bridge-runtime.ts"));let b=[],w=[];for(let T of a){let D=H.default.readFileSync(F.default.join(e,T),"utf-8"),$=T.replace(/\.svelte$/,""),z=Dt($),O=pn(D,z),U=(0,Es.compile)(O,{filename:T,customElement:!0}),L=`${$}.compiled.js`;H.default.writeFileSync(F.default.join(u,L),U.js.code,"utf-8"),b.push(`import "./${L}";`),w.push(`${JSON.stringify($)}: ${JSON.stringify(z)}`)}for(let T of s){let D=H.default.readFileSync(F.default.join(e,T),"utf-8"),$=F.default.basename(T,F.default.extname(T)),z=Dt($),O=na(D,{name:$,tag:z,filename:T});if(O.success&&O.svelteSource){let U=(0,Es.compile)(O.svelteSource,{filename:`${$}.svelte`,customElement:!0}),L=`${$}.compiled.js`;H.default.writeFileSync(F.default.join(u,L),U.js.code,"utf-8"),b.push(`import "./${L}";`),w.push(`${JSON.stringify($)}: ${JSON.stringify(z)}`)}else{let U=`${$}.bridge.js`,L=`
581
+ `:null}function Co(r,e,t,n){let a=[],s=!1;Zr(Jt.default.join(r,".dmd"));for(let c of e.docs){if(c.frontmatter?.hidden===!0)continue;let m=t[c.slug]??t[c.path]??c.content??"",u=So(m,c.slug),h=Rm(c.slug);if(c.slug==="README"){let w=Jt.default.join(r,"index.html");if(Yt.default.existsSync(w)&&!Yt.default.readFileSync(w,"utf-8").includes("data-docmedown-runtime")){s=!0;continue}}let f=zm({config:n,doc:c,contentHtml:u.html}),b=Jt.default.join(r,h);Yt.default.mkdirSync(Jt.default.dirname(b),{recursive:!0}),Yt.default.writeFileSync(b,f,"utf-8"),a.push(h)}Yt.default.writeFileSync(Jt.default.join(r,"404.html"),Fm(n),"utf-8");let i=Om(e,n);i&&Yt.default.writeFileSync(Jt.default.join(r,"sitemap.xml"),i,"utf-8");let o=Im(n);return o&&Yt.default.writeFileSync(Jt.default.join(r,"robots.txt"),o,"utf-8"),console.log(Xr.default.green(` \u2714 Prerendered ${a.length} static page${a.length===1?"":"s"}`)),n.url?console.log(Xr.default.green(` \u2714 Generated sitemap.xml and robots.txt for ${n.url}`)):console.log(Xr.default.dim(' Set "url" in docs.json to also generate sitemap.xml, robots.txt, and canonical URLs.')),s&&console.log(Xr.default.yellow(" \u26A0 Skipped prerendering the home page: index.html is a custom shell without the standard DocMeDown runtime tag.")),{written:a,homeSkipped:s}}var Fe=J(require("fs")),rt=J(require("path")),_m=new Set(["SKILL.md"]);function Yr(r=process.cwd()){if(!Fe.default.existsSync(r))return[];let e=["node_modules",".git",".dmd","dist","bin",".dist"];try{let t=Fe.default.readdirSync(r,{withFileTypes:!0}),n=[];for(let a of t){if(a.name.startsWith(".")||e.includes(a.name)||_m.has(a.name))continue;let s=rt.default.join(r,a.name),i=a.isFile();if(a.isSymbolicLink())try{i=Fe.default.statSync(s).isFile()}catch{i=!1}i&&/\.(md|mdx)$/i.test(a.name)&&n.push(a.name)}return n}catch{return[]}}function Kt(r=process.cwd(),e=rt.default.resolve(r,"./docs")){let t=rt.default.resolve(r),n=rt.default.resolve(e),a={linked:[],skipped:[],cleaned:[]};if(t.toLowerCase()===n.toLowerCase())return a;Fe.default.existsSync(n)||Fe.default.mkdirSync(n,{recursive:!0});try{let i=Fe.default.readdirSync(n,{withFileTypes:!0});for(let o of i)if(o.isSymbolicLink()){let c=rt.default.join(n,o.name);try{let m=Fe.default.readlinkSync(c),u=rt.default.resolve(n,m);rt.default.dirname(u).toLowerCase()===t.toLowerCase()&&(!Fe.default.existsSync(u)||!/\.(md|mdx)$/i.test(o.name))&&(Fe.default.unlinkSync(c),a.cleaned.push(o.name))}catch{try{Fe.default.unlinkSync(c),a.cleaned.push(o.name)}catch{}}}}catch{}let s=Yr(t);for(let i of s){let o=rt.default.join(t,i),c=rt.default.join(n,i),m=!1,u=!1;try{let b=Fe.default.lstatSync(c);m=!0,u=b.isSymbolicLink()}catch{m=!1,u=!1}if(m)if(u)try{let b=Fe.default.readlinkSync(c);if(rt.default.resolve(n,b).toLowerCase()===o.toLowerCase()){a.skipped.push(i);continue}}catch{try{Fe.default.unlinkSync(c)}catch{a.skipped.push(i);continue}}else{a.skipped.push(i);continue}let h=rt.default.relative(n,o),f=!1;try{Fe.default.symlinkSync(h,c,"file"),f=!0}catch{try{Fe.default.linkSync(o,c),f=!0}catch{try{Fe.default.copyFileSync(o,c),f=!0}catch{f=!1}}}f&&a.linked.push(i)}return a}Cs();Kr();var Pm=".dist";function Hm(r,e){return{onlineDir:r,offlineDir:e?F.default.resolve(process.cwd(),e):F.default.join(r,Pm)}}function qm(r){return(0,_o.gzipSync)(Buffer.from(JSON.stringify(r),"utf-8"),{level:9}).toString("base64")}function jo(r){let e,t;if(H.default.existsSync(r))H.default.statSync(r).isDirectory()?H.default.existsSync(F.default.join(r,".dmd"))?e=F.default.join(r,".dmd"):e=r:(t=r,e=F.default.dirname(r));else{let u=F.default.dirname(r);if(H.default.existsSync(u)&&H.default.statSync(u).isDirectory())e=u;else return}let n=e&&H.default.existsSync(e)?H.default.readdirSync(e):[],a=n.filter(u=>u.endsWith(".svelte")),s=n.filter(u=>(u.endsWith(".tsx")||u.endsWith(".jsx"))&&!u.startsWith(".")),i=["setup.js","setup.mjs","setup.ts","languages.js","languages.ts","components.js","index.js"],o=n.filter(u=>(u.endsWith(".ts")||u.endsWith(".js"))&&!i.includes(u)&&!u.endsWith(".d.ts"));if((a.length>0||s.length>0||o.length>0)&&e)try{let u=H.default.mkdtempSync(F.default.join(Io.default.tmpdir(),"docmedown-components-bundle-"));try{for(let T of n){let D=F.default.join(e,T);H.default.statSync(D).isFile()&&H.default.copyFileSync(D,F.default.join(u,T))}let f=[F.default.resolve(__dirname,"../../runtime/bridges/react-bridge.ts"),F.default.resolve(__dirname,"../src/runtime/bridges/react-bridge.ts"),F.default.resolve(__dirname,"src/runtime/bridges/react-bridge.ts")].find(T=>H.default.existsSync(T));f&&H.default.copyFileSync(f,F.default.join(u,"react-bridge-runtime.ts"));let b=[],w=[];for(let T of a){let D=H.default.readFileSync(F.default.join(e,T),"utf-8"),$=T.replace(/\.svelte$/,""),z=Dt($),O=pn(D,z),U=(0,Es.compile)(O,{filename:T,customElement:!0}),L=`${$}.compiled.js`;H.default.writeFileSync(F.default.join(u,L),U.js.code,"utf-8"),b.push(`import "./${L}";`),w.push(`${JSON.stringify($)}: ${JSON.stringify(z)}`)}for(let T of s){let D=H.default.readFileSync(F.default.join(e,T),"utf-8"),$=F.default.basename(T,F.default.extname(T)),z=Dt($),O=na(D,{name:$,tag:z,filename:T});if(O.success&&O.svelteSource){let U=(0,Es.compile)(O.svelteSource,{filename:`${$}.svelte`,customElement:!0}),L=`${$}.compiled.js`;H.default.writeFileSync(F.default.join(u,L),U.js.code,"utf-8"),b.push(`import "./${L}";`),w.push(`${JSON.stringify($)}: ${JSON.stringify(z)}`)}else{let U=`${$}.bridge.js`,L=`
582
582
  import React from "react";
583
583
  import ReactDOM from "react-dom/client";
584
584
  import ComponentModule from "./${T}";
@@ -598,12 +598,12 @@ if (typeof customElements !== "undefined" && !customElements.get(${JSON.stringif
598
598
  `;H.default.writeFileSync(F.default.join(u,U),L,"utf-8"),b.push(`import "./${U}";`),w.push(`${JSON.stringify($)}: ${JSON.stringify(z)}`)}}for(let T of o){let D=F.default.basename(T,F.default.extname(T)),$=Dt(D);b.push(`import "./${T}";`),w.push(`${JSON.stringify(D)}: ${JSON.stringify($)}`)}for(let T of["setup.js","setup.mjs","setup.ts","languages.js","languages.ts"])H.default.existsSync(F.default.join(u,T))&&b.push(`import "./${T}";`);let g=`{ ${w.join(", ")} }`;H.default.existsSync(F.default.join(u,"components.js"))?(b.push('import legacyComponents from "./components.js";'),g=`{ ...(legacyComponents || {}), ${w.join(", ")} }`):H.default.existsSync(F.default.join(u,"index.js"))&&(b.push('import legacyComponents from "./index.js";'),g=`{ ...(legacyComponents || {}), ${w.join(", ")} }`);let y=F.default.join(u,"entry.js");H.default.writeFileSync(y,`${b.join(`
599
599
  `)}
600
600
  export default ${g};
601
- `,"utf-8");let x=[...require.resolve.paths?require.resolve.paths("react")||[]:[],F.default.resolve(__dirname,"../../node_modules"),F.default.resolve(__dirname,"../node_modules"),F.default.resolve(__dirname,"node_modules"),F.default.resolve(process.cwd(),"node_modules"),F.default.resolve(r,"node_modules"),F.default.resolve(e,"node_modules")].filter(T=>H.default.existsSync(T)),A=[...new Set(x)],E=(0,$s.buildSync)({entryPoints:[y],bundle:!0,format:"esm",platform:"browser",target:"es2022",nodePaths:A,write:!1,minify:!0,external:["svelte","svelte/*","docmedown/motion","motion","docmedown"],legalComments:"none"}).outputFiles[0]?.text;if(!E)throw new Error("esbuild did not produce an output module for custom components.");return E}finally{H.default.rmSync(u,{recursive:!0,force:!0})}}catch(u){throw new Error(`Could not bundle custom components from ${e}: ${u instanceof Error?u.message:String(u)}`)}let m=(t&&H.default.existsSync(t)&&!H.default.statSync(t).isDirectory()?t:void 0)||e&&[F.default.join(e,"setup.js"),F.default.join(e,"languages.js"),F.default.join(e,"components.js"),F.default.join(e,"index.js")].find(u=>H.default.existsSync(u));if(!(!m||!H.default.existsSync(m)))try{let u=[F.default.resolve(__dirname,"../../node_modules"),F.default.resolve(__dirname,"../node_modules"),F.default.resolve(__dirname,"node_modules"),F.default.resolve(process.cwd(),"node_modules"),F.default.resolve(r,"node_modules"),e?F.default.resolve(e,"node_modules"):""].filter(b=>b&&H.default.existsSync(b)),f=(0,$s.buildSync)({entryPoints:[m],bundle:!0,format:"esm",platform:"browser",target:"es2022",nodePaths:[...new Set(u)],write:!1,minify:!0,legalComments:"none"}).outputFiles[0]?.text;if(!f)throw new Error("esbuild did not produce an output module.");return f}catch(u){throw new Error(`Could not bundle custom components from ${m}: ${u instanceof Error?u.message:String(u)}`)}}function Gm(r,e){if(!r||r==="data:,")return Bt();let t=r.trim();if($r(t)||t.startsWith("data:"))return Bt(t);if(e&&!/^(https?:|\/\/)/i.test(t)){let n=t.replace(/^\.?\/+/,""),a=[F.default.resolve(e,n),F.default.resolve(process.cwd(),n)];for(let s of a)if(H.default.existsSync(s)&&H.default.statSync(s).isFile())try{let i=F.default.extname(s).toLowerCase(),c={".svg":"image/svg+xml",".png":"image/png",".ico":"image/x-icon",".jpg":"image/jpeg",".jpeg":"image/jpeg",".webp":"image/webp",".gif":"image/gif"}[i]||"image/x-icon",m=H.default.readFileSync(s);return`data:${c};base64,${m.toString("base64")}`}catch{}}return Bt(t)}var Oo=["_manifest.json","_docs.js","docmedown.web.js","docmedown-mermaid.js","docmedown.iife.js","index.html","404.html","sitemap.xml","robots.txt","llms.txt","llms-full.txt","SKILL.md","okf.json"];function Lo(r){let e=[];function t(n){if(H.default.existsSync(n))for(let a of H.default.readdirSync(n,{withFileTypes:!0})){if(!a.isDirectory()||a.name.startsWith(".")||["node_modules",".git","dist","bin"].includes(a.name))continue;let s=F.default.join(n,a.name);H.default.existsSync(F.default.join(s,"docs.json"))&&e.push(s),t(s)}}return t(r),e}async function Bo(r,e){let t=[],n=new Set,a=/<(?:Card|dmd-card)\b((?:[^>"']|"[^"]*"|'[^']*')*)\/?>/gi,s=/\bcontent\s*=\s*(?:"([^"]*)"|'([^']*)'|\{["']([^"']*)["']\})/i,i=!0;for(;i;){i=!1;let o=Object.entries(r);for(let[,c]of o)if(!(!c||typeof c!="string"))for(a.lastIndex=0;;){let m=a.exec(c);if(m===null)break;let u=m[1];if(!u)continue;let h=s.exec(u);if(!h)continue;let f=(h[1]??h[2]??h[3]??"").trim();if(!(!f||n.has(f))){if(n.add(f),/^https?:\/\//i.test(f))try{console.log(pe.default.cyan(` \u2B07 Fetching Card online source: ${f}`));let b=await fetch(f);if(!b.ok){console.warn(pe.default.yellow(` \u26A0 HTTP ${b.status} fetching Card online source "${f}"`));continue}let w=await b.text();r[f]=w,t.push(f);let g=f.replace(/\.(md|mdx)$/i,"");g!==f&&(r[g]=w),i=!0}catch(b){console.warn(pe.default.yellow(` \u26A0 Could not fetch Card online source "${f}": ${b?.message||String(b)}`))}else if(e&&/\.(md|mdx)$/i.test(f)){let b=f.replace(/^\.?\//,""),w=[F.default.resolve(e,b),F.default.resolve(e,f)];for(let g of w)if(H.default.existsSync(g)&&H.default.statSync(g).isFile()){let y=H.default.readFileSync(g,"utf-8");r[f]=y,r[b]=y;let x=b.replace(/\.(md|mdx)$/i,"");r[x]=y;break}}}}}return t}async function Po(r,e,t){let n={},a=new Map,s=new Set,i=/<(?:Media|dmd-media)\b((?:[^>"']|"[^"]*"|'[^']*')*)\/?>/gi,o=g=>new RegExp(`\\b${g}\\s*=\\s*(?:"([^"]*)"|'([^']*)'|\\{["']([^"']*)["']\\})`,"i"),c=/\bembed\s*=\s*(?:"([^"]*)"|'([^']*)'|\\{([^}]+)\\})/i,m=/\b(?:type|format)\s*=\s*(?:"([^"]*)"|'([^']*)'|\\{["']([^"']*)["']\\})/i,u=/!\[([^\]]*)\]\(([^)\s]+)(?:\s+"([^"]*)")?\)/g,h=/<img\b((?:[^>"']|"[^"]*"|'[^']*')*)\/?>/gi,f=/\bsrc\s*=\s*(?:"([^"]*)"|'([^']*)'|\\{["']([^"']*)["']\\})/i;async function b(g,y){let x=g.trim();if(!x)return null;if(pr(x))return x;if(a.has(x))return a.get(x);if(/^https?:\/\//i.test(x)){if(t?.fetchRemote!==!0)return null;try{let A=await fetch(x);if(A.ok){let M=await A.arrayBuffer(),E=Buffer.from(M),T=A.headers.get("content-type")?.split(";")[0]?.trim()||ua(x,y),D=ma(E,T);return a.set(x,D),D}}catch{return null}}if(e){let A=x.replace(/^\.?\//,""),M=[F.default.resolve(e,A),F.default.resolve(e,x),F.default.resolve(process.cwd(),A),F.default.resolve(process.cwd(),x)];for(let E of M)if(H.default.existsSync(E)&&H.default.statSync(E).isFile())try{let T=H.default.readFileSync(E),D=ua(E,y),$=ma(T,D);return a.set(x,$),$}catch{return null}}return null}let w=Object.entries(r);for(let[g,y]of w){if(!y||typeof y!="string")continue;let x=y;i.lastIndex=0;let A=[];for(;;){let T=i.exec(y);if(T===null)break;A.push({fullTag:T[0],attrs:T[1]||""})}for(let{fullTag:T,attrs:D}of A){let $=c.exec(D),z=($?$[1]??$[2]??$[3]??"":"").trim().toLowerCase();if(z==="none"||z==="false")continue;let O=m.exec(D),U=(O?O[1]??O[2]??O[3]??"":"").trim(),L=T;for(let X of["src","fallback","poster"]){let Z=o(X).exec(D);if(Z){let G=(Z[1]??Z[2]??Z[3]??"").trim();if(G&&!pr(G)){let oe=await b(G,X==="src"?U:void 0);if(oe){n[G]=oe;let he=G.replace(/^\.?\//,"");n[he]=oe,n[`./${he}`]=oe,s.add(G),oe.length<=512*1024&&(L=L.replace(Z[0],`${X}="${oe}"`))}}}}L!==T&&(x=x.replace(T,L))}u.lastIndex=0;let M=[];for(;;){let T=u.exec(x);if(T===null)break;M.push({full:T[0],alt:T[1]||"",url:T[2],title:T[3]})}for(let{full:T,alt:D,url:$,title:z}of M)if(!pr($)){let O=await b($);if(O){n[$]=O;let U=$.replace(/^\.?\//,"");n[U]=O,s.add($);let L=z?` "${z}"`:"";x=x.replace(T,`![${D}](${O}${L})`)}}h.lastIndex=0;let E=[];for(;;){let T=h.exec(x);if(T===null)break;E.push({full:T[0],attrs:T[1]||""})}for(let{full:T,attrs:D}of E){let $=f.exec(D);if($){let z=($[1]??$[2]??$[3]??"").trim();if(z&&!pr(z)){let O=await b(z);if(O){n[z]=O;let U=z.replace(/^\.?\//,"");n[U]=O,s.add(z);let L=T.replace($[0],`src="${O}"`);x=x.replace(T,L)}}}}r[g]=x}return{inlinedCount:s.size,mediaMap:n}}async function Wm(r){let e={};for(let t of Lo(r)){let n=F.default.relative(r,t).replace(/\\/g,"/"),a=F.default.join(t,"docs.json"),s=Ue();H.default.existsSync(a)&&(s=Ue(Lt(H.default.readFileSync(a,"utf-8"),a)));let i={};for(let m of ct(t)){let u=H.default.readFileSync(F.default.join(t,m),"utf-8"),h=m.replace(/\.(md|mdx)$/i,""),f=h.toLowerCase()==="readme"||h.toLowerCase()==="index"?"README":h;i[f]=u,i[m]=u}await Bo(i,t);let{mediaMap:o}=await Po(i,t),c=F.default.join(t,".dmd");Zr(c),e[n]={name:s.name||n,manifest:Jr(t,s),docs:i,componentsSource:jo(c),...Object.keys(o).length>0?{media:o}:{}}}return e}function Rs(r,e){let t=F.default.relative(r,e).replace(/\\/g,"/"),n=t.split("/"),a=n[0],s=n[n.length-1],i=/(^|\/)\.dmd\/[^/]+\.(svelte|js|ts|tsx)$/i.test(t),o=s===".nojekyll"||Oo.includes(s)||n.includes(".dist"),c=F.default.dirname(r);return F.default.dirname(F.default.resolve(e)).toLowerCase()===c.toLowerCase()&&/\.(md|mdx)$/i.test(e)&&!s.startsWith(".")&&s!=="SKILL.md"?!0:!!t&&!t.startsWith("..")&&(!t.startsWith(".")||i)&&!o&&!Oo.includes(t)&&a!=="node_modules"&&a!=="dist"}async function xt(r="./docs",e={}){let t=F.default.resolve(process.cwd(),r),n=process.cwd(),a=F.default.resolve(n).toLowerCase()!==F.default.resolve(t).toLowerCase()&&F.default.dirname(t).toLowerCase()===F.default.resolve(n).toLowerCase(),s=[];a&&(s=Kt(n,t).linked);let{onlineDir:i,offlineDir:o}=qm(t,e.outDir),c=e.singleFile!==!1;console.log(pe.default.bold.magenta(`
601
+ `,"utf-8");let x=[...require.resolve.paths?require.resolve.paths("react")||[]:[],F.default.resolve(__dirname,"../../node_modules"),F.default.resolve(__dirname,"../node_modules"),F.default.resolve(__dirname,"node_modules"),F.default.resolve(process.cwd(),"node_modules"),F.default.resolve(r,"node_modules"),F.default.resolve(e,"node_modules")].filter(T=>H.default.existsSync(T)),A=[...new Set(x)],E=(0,$s.buildSync)({entryPoints:[y],bundle:!0,format:"esm",platform:"browser",target:"es2022",nodePaths:A,write:!1,minify:!0,external:["svelte","svelte/*","docmedown/motion","motion","docmedown"],legalComments:"none"}).outputFiles[0]?.text;if(!E)throw new Error("esbuild did not produce an output module for custom components.");return E}finally{H.default.rmSync(u,{recursive:!0,force:!0})}}catch(u){throw new Error(`Could not bundle custom components from ${e}: ${u instanceof Error?u.message:String(u)}`)}let m=(t&&H.default.existsSync(t)&&!H.default.statSync(t).isDirectory()?t:void 0)||e&&[F.default.join(e,"setup.js"),F.default.join(e,"languages.js"),F.default.join(e,"components.js"),F.default.join(e,"index.js")].find(u=>H.default.existsSync(u));if(!(!m||!H.default.existsSync(m)))try{let u=[F.default.resolve(__dirname,"../../node_modules"),F.default.resolve(__dirname,"../node_modules"),F.default.resolve(__dirname,"node_modules"),F.default.resolve(process.cwd(),"node_modules"),F.default.resolve(r,"node_modules"),e?F.default.resolve(e,"node_modules"):""].filter(b=>b&&H.default.existsSync(b)),f=(0,$s.buildSync)({entryPoints:[m],bundle:!0,format:"esm",platform:"browser",target:"es2022",nodePaths:[...new Set(u)],write:!1,minify:!0,legalComments:"none"}).outputFiles[0]?.text;if(!f)throw new Error("esbuild did not produce an output module.");return f}catch(u){throw new Error(`Could not bundle custom components from ${m}: ${u instanceof Error?u.message:String(u)}`)}}function Um(r,e){if(!r||r==="data:,")return Bt();let t=r.trim();if($r(t)||t.startsWith("data:"))return Bt(t);if(e&&!/^(https?:|\/\/)/i.test(t)){let n=t.replace(/^\.?\/+/,""),a=[F.default.resolve(e,n),F.default.resolve(process.cwd(),n)];for(let s of a)if(H.default.existsSync(s)&&H.default.statSync(s).isFile())try{let i=F.default.extname(s).toLowerCase(),c={".svg":"image/svg+xml",".png":"image/png",".ico":"image/x-icon",".jpg":"image/jpeg",".jpeg":"image/jpeg",".webp":"image/webp",".gif":"image/gif"}[i]||"image/x-icon",m=H.default.readFileSync(s);return`data:${c};base64,${m.toString("base64")}`}catch{}}return Bt(t)}var Oo=["_manifest.json","_docs.js","docmedown.web.js","docmedown-mermaid.js","docmedown.iife.js","index.html","404.html","sitemap.xml","robots.txt","llms.txt","llms-full.txt","SKILL.md","okf.json"];function Lo(r){let e=[];function t(n){if(H.default.existsSync(n))for(let a of H.default.readdirSync(n,{withFileTypes:!0})){if(!a.isDirectory()||a.name.startsWith(".")||["node_modules",".git","dist","bin"].includes(a.name))continue;let s=F.default.join(n,a.name);H.default.existsSync(F.default.join(s,"docs.json"))&&e.push(s),t(s)}}return t(r),e}async function Bo(r,e){let t=[],n=new Set,a=/<(?:Card|dmd-card)\b((?:[^>"']|"[^"]*"|'[^']*')*)\/?>/gi,s=/\bcontent\s*=\s*(?:"([^"]*)"|'([^']*)'|\{["']([^"']*)["']\})/i,i=!0;for(;i;){i=!1;let o=Object.entries(r);for(let[,c]of o)if(!(!c||typeof c!="string"))for(a.lastIndex=0;;){let m=a.exec(c);if(m===null)break;let u=m[1];if(!u)continue;let h=s.exec(u);if(!h)continue;let f=(h[1]??h[2]??h[3]??"").trim();if(!(!f||n.has(f))){if(n.add(f),/^https?:\/\//i.test(f))try{console.log(pe.default.cyan(` \u2B07 Fetching Card online source: ${f}`));let b=await fetch(f);if(!b.ok){console.warn(pe.default.yellow(` \u26A0 HTTP ${b.status} fetching Card online source "${f}"`));continue}let w=await b.text();r[f]=w,t.push(f);let g=f.replace(/\.(md|mdx)$/i,"");g!==f&&(r[g]=w),i=!0}catch(b){console.warn(pe.default.yellow(` \u26A0 Could not fetch Card online source "${f}": ${b?.message||String(b)}`))}else if(e&&/\.(md|mdx)$/i.test(f)){let b=f.replace(/^\.?\//,""),w=[F.default.resolve(e,b),F.default.resolve(e,f)];for(let g of w)if(H.default.existsSync(g)&&H.default.statSync(g).isFile()){let y=H.default.readFileSync(g,"utf-8");r[f]=y,r[b]=y;let x=b.replace(/\.(md|mdx)$/i,"");r[x]=y;break}}}}}return t}async function Po(r,e,t){let n={},a=new Map,s=new Set,i=/<(?:Media|dmd-media)\b((?:[^>"']|"[^"]*"|'[^']*')*)\/?>/gi,o=g=>new RegExp(`\\b${g}\\s*=\\s*(?:"([^"]*)"|'([^']*)'|\\{["']([^"']*)["']\\})`,"i"),c=/\bembed\s*=\s*(?:"([^"]*)"|'([^']*)'|\\{([^}]+)\\})/i,m=/\b(?:type|format)\s*=\s*(?:"([^"]*)"|'([^']*)'|\\{["']([^"']*)["']\\})/i,u=/!\[([^\]]*)\]\(([^)\s]+)(?:\s+"([^"]*)")?\)/g,h=/<img\b((?:[^>"']|"[^"]*"|'[^']*')*)\/?>/gi,f=/\bsrc\s*=\s*(?:"([^"]*)"|'([^']*)'|\\{["']([^"']*)["']\\})/i;async function b(g,y){let x=g.trim();if(!x)return null;if(pr(x))return x;if(a.has(x))return a.get(x);if(/^https?:\/\//i.test(x)){if(t?.fetchRemote!==!0)return null;try{let A=await fetch(x);if(A.ok){let M=await A.arrayBuffer(),E=Buffer.from(M),T=A.headers.get("content-type")?.split(";")[0]?.trim()||ua(x,y),D=ma(E,T);return a.set(x,D),D}}catch{return null}}if(e){let A=x.replace(/^\.?\//,""),M=[F.default.resolve(e,A),F.default.resolve(e,x),F.default.resolve(process.cwd(),A),F.default.resolve(process.cwd(),x)];for(let E of M)if(H.default.existsSync(E)&&H.default.statSync(E).isFile())try{let T=H.default.readFileSync(E),D=ua(E,y),$=ma(T,D);return a.set(x,$),$}catch{return null}}return null}let w=Object.entries(r);for(let[g,y]of w){if(!y||typeof y!="string")continue;let x=y;i.lastIndex=0;let A=[];for(;;){let T=i.exec(y);if(T===null)break;A.push({fullTag:T[0],attrs:T[1]||""})}for(let{fullTag:T,attrs:D}of A){let $=c.exec(D),z=($?$[1]??$[2]??$[3]??"":"").trim().toLowerCase();if(z==="none"||z==="false")continue;let O=m.exec(D),U=(O?O[1]??O[2]??O[3]??"":"").trim(),L=T;for(let X of["src","fallback","poster"]){let Z=o(X).exec(D);if(Z){let G=(Z[1]??Z[2]??Z[3]??"").trim();if(G&&!pr(G)){let oe=await b(G,X==="src"?U:void 0);if(oe){n[G]=oe;let he=G.replace(/^\.?\//,"");n[he]=oe,n[`./${he}`]=oe,s.add(G),oe.length<=512*1024&&(L=L.replace(Z[0],`${X}="${oe}"`))}}}}L!==T&&(x=x.replace(T,L))}u.lastIndex=0;let M=[];for(;;){let T=u.exec(x);if(T===null)break;M.push({full:T[0],alt:T[1]||"",url:T[2],title:T[3]})}for(let{full:T,alt:D,url:$,title:z}of M)if(!pr($)){let O=await b($);if(O){n[$]=O;let U=$.replace(/^\.?\//,"");n[U]=O,s.add($);let L=z?` "${z}"`:"";x=x.replace(T,`![${D}](${O}${L})`)}}h.lastIndex=0;let E=[];for(;;){let T=h.exec(x);if(T===null)break;E.push({full:T[0],attrs:T[1]||""})}for(let{full:T,attrs:D}of E){let $=f.exec(D);if($){let z=($[1]??$[2]??$[3]??"").trim();if(z&&!pr(z)){let O=await b(z);if(O){n[z]=O;let U=z.replace(/^\.?\//,"");n[U]=O,s.add(z);let L=T.replace($[0],`src="${O}"`);x=x.replace(T,L)}}}}r[g]=x}return{inlinedCount:s.size,mediaMap:n}}async function Gm(r){let e={};for(let t of Lo(r)){let n=F.default.relative(r,t).replace(/\\/g,"/"),a=F.default.join(t,"docs.json"),s=Ue();H.default.existsSync(a)&&(s=Ue(Lt(H.default.readFileSync(a,"utf-8"),a)));let i={};for(let m of ct(t)){let u=H.default.readFileSync(F.default.join(t,m),"utf-8"),h=m.replace(/\.(md|mdx)$/i,""),f=h.toLowerCase()==="readme"||h.toLowerCase()==="index"?"README":h;i[f]=u,i[m]=u}await Bo(i,t);let{mediaMap:o}=await Po(i,t),c=F.default.join(t,".dmd");Zr(c),e[n]={name:s.name||n,manifest:Jr(t,s),docs:i,componentsSource:jo(c),...Object.keys(o).length>0?{media:o}:{}}}return e}function Rs(r,e){let t=F.default.relative(r,e).replace(/\\/g,"/"),n=t.split("/"),a=n[0],s=n[n.length-1],i=/(^|\/)\.dmd\/[^/]+\.(svelte|js|ts|tsx)$/i.test(t),o=s===".nojekyll"||Oo.includes(s)||n.includes(".dist"),c=F.default.dirname(r);return F.default.dirname(F.default.resolve(e)).toLowerCase()===c.toLowerCase()&&/\.(md|mdx)$/i.test(e)&&!s.startsWith(".")&&s!=="SKILL.md"?!0:!!t&&!t.startsWith("..")&&(!t.startsWith(".")||i)&&!o&&!Oo.includes(t)&&a!=="node_modules"&&a!=="dist"}async function xt(r="./docs",e={}){let t=F.default.resolve(process.cwd(),r),n=process.cwd(),a=F.default.resolve(n).toLowerCase()!==F.default.resolve(t).toLowerCase()&&F.default.dirname(t).toLowerCase()===F.default.resolve(n).toLowerCase(),s=[];a&&(s=Kt(n,t).linked);let{onlineDir:i,offlineDir:o}=Hm(t,e.outDir),c=e.singleFile!==!1;console.log(pe.default.bold.magenta(`
602
602
  \u26A1 DocMeDown Build
603
603
  `)),a&&(console.log(pe.default.dim(` Unified documents: Root (*.md) + ${F.default.relative(n,t)||r} (linked by default without ./docs/ subdivision)`)),s.length>0&&console.log(pe.default.green(` \u2714 Linked root markdown file${s.length===1?"":"s"}: ${s.join(", ")}`))),H.default.existsSync(t)||(console.error(pe.default.red(`\u2716 Directory not found: ${t}`)),process.exit(1)),H.default.existsSync(i)||H.default.mkdirSync(i,{recursive:!0}),H.default.writeFileSync(F.default.join(i,".nojekyll"),"","utf-8"),c&&!H.default.existsSync(o)&&H.default.mkdirSync(o,{recursive:!0});let m=Ue(),u=F.default.join(t,"docs.json");if(H.default.existsSync(u))try{m=Ue(Lt(H.default.readFileSync(u,"utf-8"),u))}catch(L){throw new Error(`Could not validate ${u}: ${L instanceof Error?L.message:String(L)}`)}console.log(pe.default.cyan(" Indexing documentation pages..."));let h=Jr(t,m),f=F.default.join(i,"_manifest.json");H.default.writeFileSync(f,JSON.stringify(h,null,2),"utf-8"),console.log(pe.default.green(` \u2714 Generated _manifest.json (${h.docs.length} pages indexed)`));let b={},w=ct(t);for(let L of w){let X=F.default.join(t,L),V=H.default.readFileSync(X,"utf-8"),Z=L.replace(/\.(md|mdx)$/i,""),G=Z.toLowerCase()==="readme"||Z.toLowerCase()==="index"?"README":Z;b[G]=V,b[L]=V}let g=await Bo(b,t);g.length>0&&console.log(pe.default.green(` \u2714 Inlined ${g.length} Card online source${g.length===1?"":"s"} into offline bundle`));let{inlinedCount:y,mediaMap:x}=await Po(b,t);y>0&&console.log(pe.default.green(` \u2714 Embedded ${y} media asset${y===1?"":"s"} into offline bundle (lossless data URIs)`));let A=F.default.join(t,".dmd");Zr(A);let M=jo(A),E=`window.__DOCMEDOWN_DATA__ = ${JSON.stringify({manifest:h,docs:b,componentsSource:M,...Object.keys(x).length>0?{media:x}:{}},null,2)};
604
604
  `,T=F.default.join(i,"_docs.js");H.default.writeFileSync(T,E,"utf-8"),console.log(pe.default.green(" \u2714 Generated _docs.js for offline file:/// double-click usage"));let D=oi(i,h,m);if(console.log(pe.default.green(` \u2714 Generated AI context files: ${D.map(L=>F.default.basename(L)).join(", ")}`)),e.static!==!1&&Co(t,h,b,m),c){console.log(pe.default.cyan(`
605
- Compiling standalone single-file offline index.html...`));let X=m.offline?.embedNestedDocs!==!1&&e.buildNested!==!1?await Wm(t):void 0,V=X?Object.keys(X).length:0;V>0&&console.log(pe.default.green(` \u2714 Embedded ${V} nested documentation site${V===1?"":"s"} into the offline bundle`));let G=Object.values(b).some(ze=>/(?:^|\n)[ \t]*(?:`{3,}|~{3,})[ \t]*mermaid\b/i.test(ze))||!!(X&&Object.values(X).some(ze=>Object.values(ze.docs).some(ge=>/(?:^|\n)[ \t]*(?:`{3,}|~{3,})[ \t]*mermaid\b/i.test(ge)))),te="";if(G){let ge=[F.default.resolve(__dirname,"docmedown.iife.js"),F.default.resolve(__dirname,"../dist/docmedown.iife.js"),F.default.resolve(__dirname,"../docmedown.iife.js")].find(Ie=>H.default.existsSync(Ie));if(ge)te=H.default.readFileSync(ge,"utf-8");else{let Ie=[F.default.resolve(__dirname,"docmedown.web.js"),F.default.resolve(__dirname,"../dist/docmedown.web.js"),F.default.resolve(__dirname,"../docmedown.web.js")],at=[F.default.resolve(__dirname,"docmedown-mermaid.js"),F.default.resolve(__dirname,"../dist/docmedown-mermaid.js"),F.default.resolve(__dirname,"../docmedown-mermaid.js")],At=Ie.find(st=>H.default.existsSync(st)),Ve=at.find(st=>H.default.existsSync(st));At&&Ve&&(te=`${H.default.readFileSync(At,"utf-8")}
606
- ;${H.default.readFileSync(Ve,"utf-8")}`)}}else{let ge=[F.default.resolve(__dirname,"docmedown.web.js"),F.default.resolve(__dirname,"../dist/docmedown.web.js"),F.default.resolve(__dirname,"../docmedown.web.js")].find(Ie=>H.default.existsSync(Ie));if(ge)te=H.default.readFileSync(ge,"utf-8");else{let at=[F.default.resolve(__dirname,"docmedown.iife.js"),F.default.resolve(__dirname,"../dist/docmedown.iife.js"),F.default.resolve(__dirname,"../docmedown.iife.js")].find(At=>H.default.existsSync(At));at&&(te=H.default.readFileSync(at,"utf-8"))}}te||console.warn(pe.default.yellow(" \u26A0 Local runtime bundle not found, linking CDN script."));let oe={version:ha,data:{manifest:h,docs:b,componentsSource:M,...Object.keys(x).length>0?{media:x}:{},...X&&V>0?{nestedSites:X}:{}},runtime:te},he=Um(oe),fe=Gm(m.theme?.favicon,t),De=ni(he,m.name||"Documentation",{tagline:m.tagline,version:m.version,logo:m.theme?.logo?.light,logoDark:m.theme?.logo?.dark,logoAlt:m.theme?.logo?.alt,accent:m.theme?.accentColor,accentDark:m.theme?.accentColorDark},fe),Te=F.default.join(o,"index.html");H.default.writeFileSync(Te,De,"utf-8"),console.log(pe.default.bold.green(` \u2714 Built self-contained offline bundle: ${Te}`)),console.log(pe.default.dim(` Compressed ${Buffer.byteLength(JSON.stringify(oe),"utf-8").toLocaleString()} bytes to ${Buffer.byteLength(De,"utf-8").toLocaleString()} bytes.`)),console.log(pe.default.dim(` You can now double-click index.html to view offline without any server!
605
+ Compiling standalone single-file offline index.html...`));let X=m.offline?.embedNestedDocs!==!1&&e.buildNested!==!1?await Gm(t):void 0,V=X?Object.keys(X).length:0;V>0&&console.log(pe.default.green(` \u2714 Embedded ${V} nested documentation site${V===1?"":"s"} into the offline bundle`));let G=Object.values(b).some(ze=>/(?:^|\n)[ \t]*(?:`{3,}|~{3,})[ \t]*mermaid\b/i.test(ze))||!!(X&&Object.values(X).some(ze=>Object.values(ze.docs).some(ge=>/(?:^|\n)[ \t]*(?:`{3,}|~{3,})[ \t]*mermaid\b/i.test(ge)))),te="";if(G){let ge=[F.default.resolve(__dirname,"docmedown.iife.js"),F.default.resolve(__dirname,"../dist/docmedown.iife.js"),F.default.resolve(__dirname,"../docmedown.iife.js")].find(Ie=>H.default.existsSync(Ie));if(ge)te=H.default.readFileSync(ge,"utf-8");else{let Ie=[F.default.resolve(__dirname,"docmedown.web.js"),F.default.resolve(__dirname,"../dist/docmedown.web.js"),F.default.resolve(__dirname,"../docmedown.web.js")],at=[F.default.resolve(__dirname,"docmedown-mermaid.js"),F.default.resolve(__dirname,"../dist/docmedown-mermaid.js"),F.default.resolve(__dirname,"../docmedown-mermaid.js")],At=Ie.find(st=>H.default.existsSync(st)),Ve=at.find(st=>H.default.existsSync(st));At&&Ve&&(te=`${H.default.readFileSync(At,"utf-8")}
606
+ ;${H.default.readFileSync(Ve,"utf-8")}`)}}else{let ge=[F.default.resolve(__dirname,"docmedown.web.js"),F.default.resolve(__dirname,"../dist/docmedown.web.js"),F.default.resolve(__dirname,"../docmedown.web.js")].find(Ie=>H.default.existsSync(Ie));if(ge)te=H.default.readFileSync(ge,"utf-8");else{let at=[F.default.resolve(__dirname,"docmedown.iife.js"),F.default.resolve(__dirname,"../dist/docmedown.iife.js"),F.default.resolve(__dirname,"../docmedown.iife.js")].find(At=>H.default.existsSync(At));at&&(te=H.default.readFileSync(at,"utf-8"))}}te||console.warn(pe.default.yellow(" \u26A0 Local runtime bundle not found, linking CDN script."));let oe={version:ha,data:{manifest:h,docs:b,componentsSource:M,...Object.keys(x).length>0?{media:x}:{},...X&&V>0?{nestedSites:X}:{}},runtime:te},he=qm(oe),fe=Um(m.theme?.favicon,t),De=ni(he,m.name||"Documentation",{tagline:m.tagline,version:m.version,logo:m.theme?.logo?.light,logoDark:m.theme?.logo?.dark,logoAlt:m.theme?.logo?.alt,accent:m.theme?.accentColor,accentDark:m.theme?.accentColorDark},fe),Te=F.default.join(o,"index.html");H.default.writeFileSync(Te,De,"utf-8"),console.log(pe.default.bold.green(` \u2714 Built self-contained offline bundle: ${Te}`)),console.log(pe.default.dim(` Compressed ${Buffer.byteLength(JSON.stringify(oe),"utf-8").toLocaleString()} bytes to ${Buffer.byteLength(De,"utf-8").toLocaleString()} bytes.`)),console.log(pe.default.dim(` You can now double-click index.html to view offline without any server!
607
607
  `))}let $=F.default.resolve(__dirname,"../dist");if(H.default.existsSync(i))for(let L of H.default.readdirSync(i)){let X=/^(mermaid|katex|prism)-.+\.(mjs|js)$/.test(L)||/^chunk-.+\.(mjs|js)$/.test(L);(L==="docmedown.iife.js"||X)&&H.default.rmSync(F.default.join(i,L),{force:!0})}let O=Object.values(b).some(L=>/(?:^|\n)[ \t]*(?:`{3,}|~{3,})[ \t]*mermaid\b/i.test(L))?["docmedown.web.js","docmedown-mermaid.js"]:["docmedown.web.js"],U=[];for(let L of O){let X=[F.default.resolve(__dirname,L),F.default.resolve($,L)].find(Z=>H.default.existsSync(Z));if(!X)continue;let V=F.default.join(i,L);F.default.resolve(X)!==F.default.resolve(V)&&(H.default.copyFileSync(X,V),U.push(L))}if(U.length>0&&console.log(pe.default.green(` \u2714 Updated serveable runtime: ${U.join(", ")}`)),O.includes("docmedown-mermaid.js")||H.default.rmSync(F.default.join(i,"docmedown-mermaid.js"),{force:!0}),e.buildNested!==!1){let L=Lo(t);for(let X of L)console.log(pe.default.cyan(`
608
608
  Building nested documentation site: ${F.default.relative(t,X)}...`)),await xt(X,{buildNested:!1})}console.log(pe.default.bold.green(`\u2728 Build completed successfully!
609
609
  `))}async function Ho(r="./docs",e={}){let t=F.default.resolve(process.cwd(),r);await xt(t,{...e,watch:!1}),console.log(pe.default.dim(` Watching source files in: ${t}`)),console.log(pe.default.dim(` Source changes rebuild serveable files and .dist/index.html. Press Ctrl+C to stop.
@@ -615,8 +615,8 @@ export default ${g};
615
615
  `));let n=await(0,qo.default)([{type:"text",name:"name",message:"Project Name:",initial:t.name||"My Project Docs"},{type:"text",name:"tagline",message:"Tagline / Short description:",initial:t.tagline||"The simplest Markdown documenter yet"},{type:"select",name:"family",message:"Select Documentation Theme Family:",choices:[{title:"Atlas (Editorial technical reference)",value:"atlas"},{title:"Blueprint (Structured and schematic)",value:"blueprint"},{title:"Terminal (Compact operational console)",value:"terminal"},{title:"Editorial (Spacious publication reading)",value:"editorial"}],initial:["atlas","blueprint","terminal","editorial"].indexOf(t.theme?.family||"atlas")},{type:"select",name:"defaultMode",message:"Default Color Mode:",choices:[{title:"Auto (Follows OS system preference)",value:"auto"},{title:"Dark (Default dark theme)",value:"dark"},{title:"Light (Default light theme)",value:"light"}],initial:["auto","dark","light"].indexOf(t.theme?.defaultMode||"auto")},{type:"select",name:"sourceType",message:"Documentation Source Mode:",choices:[{title:"Local Markdown Files (hosted together in folder)",value:"local"},{title:"Remote GitHub Repository (live dynamic fetch)",value:"github"},{title:"Remote GitLab Repository (live dynamic fetch)",value:"gitlab"}],initial:t.source?.type?t.source.type==="github"?1:2:0},{type:o=>o==="github"?"text":null,name:"githubRepo",message:"GitHub Repository (owner/repo):",initial:t.source?.type==="raw"?"facebook/react":t.source?.repo||"facebook/react"},{type:(o,c)=>c.sourceType==="github"?"text":null,name:"githubBranch",message:"GitHub Branch:",initial:t.source?.branch||"main"},{type:(o,c)=>c.sourceType==="github"?"text":null,name:"githubDocsDir",message:"GitHub Docs Subfolder (leave empty for root):",initial:t.source?.docsDir||"docs"},{type:"text",name:"githubSocial",message:"GitHub Repository URL for Navbar link (optional):",initial:t.socials?.find(o=>o.type==="github")?.url||""}]);if(!n.name){console.log(cr.default.yellow(`
616
616
  Configuration cancelled.`));return}let a=Ue({...t,name:n.name,tagline:n.tagline,theme:{...t.theme,family:n.family,defaultMode:n.defaultMode},socials:n.githubSocial?[{type:"github",url:n.githubSocial}]:t.socials});n.sourceType==="github"?a.source={type:"github",repo:n.githubRepo,branch:n.githubBranch,docsDir:n.githubDocsDir}:n.sourceType==="local"&&delete a.source;let s=Qt.default.dirname(e);Ot.default.existsSync(s)||Ot.default.mkdirSync(s,{recursive:!0});let i=Ue(a);Ot.default.writeFileSync(e,JSON.stringify(i,null,2),"utf-8"),console.log(cr.default.bold.green(`
617
617
  \u2714 Configuration successfully saved to: ${e}
618
- `))}var se=J(require("chalk")),_s=J(require("open")),er=J(require("prompts"));var ae=J(require("fs")),ee=J(require("path")),We=J(require("chalk"));var Go=["index.html","favicon.svg","docs.json","README.md","getting-started.md"];function Wo(){return[ee.default.resolve(__dirname,"../../../templates"),ee.default.resolve(__dirname,"../../templates"),ee.default.resolve(__dirname,"../templates"),ee.default.resolve(process.cwd(),"templates")].find(e=>ae.default.existsSync(e))||ee.default.resolve(__dirname,"../../../templates")}function zs(r=process.cwd()){let e=ee.default.basename(r)||"My Project Docs",t="The simplest Markdown documentation yet";try{let n=ee.default.join(r,"package.json");if(ae.default.existsSync(n)){let a=JSON.parse(ae.default.readFileSync(n,"utf-8"));a.name&&typeof a.name=="string"&&(e=a.name),a.description&&typeof a.description=="string"&&(t=a.description)}}catch{}return{name:e,description:t}}function Fs(r){let e=ee.default.resolve(r.rootDir||process.cwd()),t=ee.default.resolve(e,r.targetDirArg),n=r.includeSamples!==!1,a=r.targetDirArg;!a.startsWith(".")&&!ee.default.isAbsolute(a)&&(a=`./${a}`);let i=ee.default.resolve(e).toLowerCase()!==ee.default.resolve(t).toLowerCase()&&ee.default.dirname(t).toLowerCase()===ee.default.resolve(e).toLowerCase()?Yr(e):[],o=i.some(g=>g.toLowerCase()==="readme.md"),c=[],m=ae.default.existsSync(ee.default.join(t,"index.html"));c.push({relPath:"index.html",type:"file",action:m?"skip":"create",annotation:m?"(already exists, will keep)":void 0});let u=Wo(),h=ee.default.join(u,"favicon.svg");if(ae.default.existsSync(h)){let g=ae.default.existsSync(ee.default.join(t,"favicon.svg"));c.push({relPath:"favicon.svg",type:"file",action:g?"skip":"create",annotation:g?"(already exists, will keep)":void 0})}let f=ae.default.existsSync(ee.default.join(t,"docs.json"));c.push({relPath:"docs.json",type:"file",action:f?"skip":"create",annotation:f?"(already exists, will keep)":void 0});let b=ae.default.existsSync(ee.default.join(t,"README.md"));o?c.push({relPath:"README.md",type:"symlink",action:b?"skip":"link",target:ee.default.relative(t,ee.default.join(e,"README.md")),annotation:b?"(already exists, will keep)":"(linked from root)"}):c.push({relPath:"README.md",type:"file",action:b?"skip":"create",annotation:b?"(already exists, will keep)":void 0});let w=ae.default.existsSync(ee.default.join(t,"getting-started.md"));c.push({relPath:"getting-started.md",type:"file",action:w?"skip":"create",annotation:w?"(already exists, will keep)":void 0});for(let g of i){if(g.toLowerCase()==="readme.md")continue;let y=ae.default.existsSync(ee.default.join(t,g));c.push({relPath:g,type:"symlink",action:y?"skip":"link",target:ee.default.relative(t,ee.default.join(e,g)),annotation:y?"(already exists, will keep)":"(linked from root)"})}if(n){let g=ae.default.existsSync(ee.default.join(t,"guides/custom-components.md"));c.push({relPath:"guides/custom-components.md",type:"file",action:g?"skip":"create",annotation:g?"(already exists, will keep)":void 0});let y=ae.default.existsSync(ee.default.join(t,".dmd/CounterWidget.svelte"));c.push({relPath:".dmd/CounterWidget.svelte",type:"file",action:y?"skip":"create",annotation:y?"(already exists, will keep)":void 0})}return{targetDir:t,displayDir:a,rootDir:e,items:c,includeSamples:n,linkedRootFiles:i}}function Vm(r,e){if(r.isDir!==e.isDir)return r.isDir?1:-1;if(!r.isDir&&!e.isDir){let t=Go.indexOf(r.name),n=Go.indexOf(e.name);if(t!==-1&&n!==-1)return t-n;if(t!==-1)return-1;if(n!==-1)return 1}return r.name.localeCompare(e.name)}function Vo(r,e,t,n){let a=[];if(n){let o=r.name.endsWith("/")?r.name:`${r.name}/`;a.push(We.default.cyan.bold(o))}else{let o=t?"\u2514\u2500\u2500 ":"\u251C\u2500\u2500 ",c=r.isDir?We.default.cyan.bold(`${r.name}/`):We.default.white(r.name),m=r.annotation?` ${We.default.dim(r.annotation)}`:"";a.push(`${We.default.gray(e+o)}${c}${m}`)}let s=n?"":e+(t?" ":"\u2502 "),i=Array.from(r.children.values()).sort(Vm);for(let o=0;o<i.length;o++){let c=o===i.length-1;a.push(...Vo(i[o],s,c,!1))}return a}function Os(r){let e=ee.default.basename(r.targetDir);(!e||e==="."||e==="/")&&(e=r.displayDir);let t={name:e,isDir:!0,children:new Map};for(let n of r.items){let a=n.relPath.split(/[/\\]+/).filter(Boolean),s=t;for(let i=0;i<a.length;i++){let o=a[i];i===a.length-1?s.children.set(o,{name:o,isDir:n.type==="directory",annotation:n.annotation,children:s.children.get(o)?.children||new Map}):(s.children.has(o)||s.children.set(o,{name:o,isDir:!0,children:new Map}),s=s.children.get(o))}}return Vo(t,"",!0,!0).join(`
619
- `)}async function Is(r,e={}){let t={created:[],linked:[],skipped:[]};if(ae.default.existsSync(r.targetDir)||ae.default.mkdirSync(r.targetDir,{recursive:!0}),r.linkedRootFiles.length>0){let u=Kt(r.rootDir,r.targetDir);t.linked.push(...u.linked),t.skipped.push(...u.skipped);for(let h of u.linked)console.log(We.default.green(` \u2714 Linked root markdown file: ${h}`))}let n=Wo(),a=ee.default.join(r.targetDir,"index.html");if(ae.default.existsSync(a))t.skipped.push("index.html");else{let u=ae.default.readFileSync(ee.default.join(n,"index.html"),"utf-8");ae.default.writeFileSync(a,u,"utf-8"),t.created.push("index.html"),console.log(We.default.green(" \u2714 Created index.html"))}let s=ee.default.join(r.targetDir,"favicon.svg"),i=ee.default.join(n,"favicon.svg");!ae.default.existsSync(s)&&ae.default.existsSync(i)&&(ae.default.copyFileSync(i,s),t.created.push("favicon.svg"),console.log(We.default.green(" \u2714 Created favicon.svg")));let o=ee.default.join(r.targetDir,"docs.json");if(ae.default.existsSync(o))t.skipped.push("docs.json");else{let u=ae.default.readFileSync(ee.default.join(n,"docs.json"),"utf-8"),h={};try{h=JSON.parse(u)}catch{h={}}e.projectName&&(h.name=e.projectName),e.tagline&&(h.tagline=e.tagline),e.themeFamily&&(h.theme=h.theme||{},h.theme.family=e.themeFamily),e.colorMode&&(h.theme=h.theme||{},h.theme.defaultMode=e.colorMode),r.includeSamples||Array.isArray(h.nav)&&(h.nav=h.nav.filter(f=>!f.href?.includes("custom-components"))),ae.default.writeFileSync(o,JSON.stringify(h,null,2),"utf-8"),t.created.push("docs.json"),console.log(We.default.green(" \u2714 Created docs.json"))}let c=ee.default.join(r.targetDir,"README.md");if(!ae.default.existsSync(c)){let u=ae.default.readFileSync(ee.default.join(n,"README.md"),"utf-8");e.projectName&&e.projectName!=="My Project Docs"&&(u=u.replace(/^# Welcome to DocMeDown/m,`# Welcome to ${e.projectName}`).replace(/title: Welcome to DocMeDown/,`title: Welcome to ${e.projectName}`)),ae.default.writeFileSync(c,u,"utf-8"),t.created.push("README.md"),console.log(We.default.green(" \u2714 Created README.md"))}let m=ee.default.join(r.targetDir,"getting-started.md");if(ae.default.existsSync(m))t.skipped.push("getting-started.md");else{let u=ae.default.readFileSync(ee.default.join(n,"getting-started.md"),"utf-8");ae.default.writeFileSync(m,u,"utf-8"),t.created.push("getting-started.md"),console.log(We.default.green(" \u2714 Created getting-started.md"))}if(r.includeSamples){let u=ee.default.join(r.targetDir,"guides");ae.default.existsSync(u)||ae.default.mkdirSync(u,{recursive:!0});let h=ee.default.join(u,"custom-components.md");if(ae.default.existsSync(h))t.skipped.push("guides/custom-components.md");else{let w=ae.default.readFileSync(ee.default.join(n,"guides/custom-components.md"),"utf-8");ae.default.writeFileSync(h,w,"utf-8"),t.created.push("guides/custom-components.md"),console.log(We.default.green(" \u2714 Created guides/custom-components.md"))}let f=ee.default.join(r.targetDir,".dmd");ae.default.existsSync(f)||ae.default.mkdirSync(f,{recursive:!0});let b=ee.default.join(f,"CounterWidget.svelte");if(ae.default.existsSync(b))t.skipped.push(".dmd/CounterWidget.svelte");else{let w=ae.default.readFileSync(ee.default.join(n,".dmd/CounterWidget.svelte"),"utf-8");ae.default.writeFileSync(b,w,"utf-8"),t.created.push(".dmd/CounterWidget.svelte"),console.log(We.default.green(" \u2714 Created .dmd/CounterWidget.svelte"))}}return await xt(r.targetDir),t}var ie=J(require("fs")),Yo=J(require("http")),de=J(require("path")),dt=J(require("chalk")),Jo=J(require("chokidar")),Ko=J(require("mime-types")),aa=require("ws");function Zm(r,e){return Rs(r,e)}function Zo(r){return new Promise((e,t)=>{let n="";r.on("data",a=>{n+=a}),r.on("end",()=>{try{e(n?JSON.parse(n):{})}catch(a){t(a)}}),r.on("error",t)})}function Xo(r){let e=r.replace(/\\/g,"/").replace(/\.(md|mdx)$/i,""),t=de.default.basename(e).toLowerCase();return t==="readme"||t==="index"?"README":e}function Qo(r,e){if(!ie.default.existsSync(r))return;if(ie.default.statSync(r).isDirectory()){ie.default.existsSync(e)||ie.default.mkdirSync(e,{recursive:!0});for(let n of ie.default.readdirSync(r))Qo(de.default.join(r,n),de.default.join(e,n))}else{let n=de.default.dirname(e);ie.default.existsSync(n)||ie.default.mkdirSync(n,{recursive:!0}),ie.default.copyFileSync(r,e)}}function Qr(r){let{rootDir:e,host:t="localhost",port:n=3e3,onSourceChange:a}=r;return new Promise((s,i)=>{let o=n,c=r.mode||"production",m=de.default.join(e,".preview"),u=new Set;function h(T){let D=typeof T=="string"?T:JSON.stringify(T);for(let $ of u)$.readyState===aa.WebSocket.OPEN&&$.send(D)}let f=`
618
+ `))}var se=J(require("chalk")),_s=J(require("open")),er=J(require("prompts"));var ae=J(require("fs")),ee=J(require("path")),We=J(require("chalk"));var Go=["index.html","favicon.svg","docs.json","README.md","getting-started.md"];function Wo(){return[ee.default.resolve(__dirname,"../../../templates"),ee.default.resolve(__dirname,"../../templates"),ee.default.resolve(__dirname,"../templates"),ee.default.resolve(process.cwd(),"templates")].find(e=>ae.default.existsSync(e))||ee.default.resolve(__dirname,"../../../templates")}function zs(r=process.cwd()){let e=ee.default.basename(r)||"My Project Docs",t="The simplest Markdown documentation yet";try{let n=ee.default.join(r,"package.json");if(ae.default.existsSync(n)){let a=JSON.parse(ae.default.readFileSync(n,"utf-8"));a.name&&typeof a.name=="string"&&(e=a.name),a.description&&typeof a.description=="string"&&(t=a.description)}}catch{}return{name:e,description:t}}function Fs(r){let e=ee.default.resolve(r.rootDir||process.cwd()),t=ee.default.resolve(e,r.targetDirArg),n=r.includeSamples!==!1,a=r.targetDirArg;!a.startsWith(".")&&!ee.default.isAbsolute(a)&&(a=`./${a}`);let i=ee.default.resolve(e).toLowerCase()!==ee.default.resolve(t).toLowerCase()&&ee.default.dirname(t).toLowerCase()===ee.default.resolve(e).toLowerCase()?Yr(e):[],o=i.some(g=>g.toLowerCase()==="readme.md"),c=[],m=ae.default.existsSync(ee.default.join(t,"index.html"));c.push({relPath:"index.html",type:"file",action:m?"skip":"create",annotation:m?"(already exists, will keep)":void 0});let u=Wo(),h=ee.default.join(u,"favicon.svg");if(ae.default.existsSync(h)){let g=ae.default.existsSync(ee.default.join(t,"favicon.svg"));c.push({relPath:"favicon.svg",type:"file",action:g?"skip":"create",annotation:g?"(already exists, will keep)":void 0})}let f=ae.default.existsSync(ee.default.join(t,"docs.json"));c.push({relPath:"docs.json",type:"file",action:f?"skip":"create",annotation:f?"(already exists, will keep)":void 0});let b=ae.default.existsSync(ee.default.join(t,"README.md"));o?c.push({relPath:"README.md",type:"symlink",action:b?"skip":"link",target:ee.default.relative(t,ee.default.join(e,"README.md")),annotation:b?"(already exists, will keep)":"(linked from root)"}):c.push({relPath:"README.md",type:"file",action:b?"skip":"create",annotation:b?"(already exists, will keep)":void 0});let w=ae.default.existsSync(ee.default.join(t,"getting-started.md"));c.push({relPath:"getting-started.md",type:"file",action:w?"skip":"create",annotation:w?"(already exists, will keep)":void 0});for(let g of i){if(g.toLowerCase()==="readme.md")continue;let y=ae.default.existsSync(ee.default.join(t,g));c.push({relPath:g,type:"symlink",action:y?"skip":"link",target:ee.default.relative(t,ee.default.join(e,g)),annotation:y?"(already exists, will keep)":"(linked from root)"})}if(n){let g=ae.default.existsSync(ee.default.join(t,"guides/custom-components.md"));c.push({relPath:"guides/custom-components.md",type:"file",action:g?"skip":"create",annotation:g?"(already exists, will keep)":void 0});let y=ae.default.existsSync(ee.default.join(t,".dmd/CounterWidget.svelte"));c.push({relPath:".dmd/CounterWidget.svelte",type:"file",action:y?"skip":"create",annotation:y?"(already exists, will keep)":void 0})}return{targetDir:t,displayDir:a,rootDir:e,items:c,includeSamples:n,linkedRootFiles:i}}function Wm(r,e){if(r.isDir!==e.isDir)return r.isDir?1:-1;if(!r.isDir&&!e.isDir){let t=Go.indexOf(r.name),n=Go.indexOf(e.name);if(t!==-1&&n!==-1)return t-n;if(t!==-1)return-1;if(n!==-1)return 1}return r.name.localeCompare(e.name)}function Vo(r,e,t,n){let a=[];if(n){let o=r.name.endsWith("/")?r.name:`${r.name}/`;a.push(We.default.cyan.bold(o))}else{let o=t?"\u2514\u2500\u2500 ":"\u251C\u2500\u2500 ",c=r.isDir?We.default.cyan.bold(`${r.name}/`):We.default.white(r.name),m=r.annotation?` ${We.default.dim(r.annotation)}`:"";a.push(`${We.default.gray(e+o)}${c}${m}`)}let s=n?"":e+(t?" ":"\u2502 "),i=Array.from(r.children.values()).sort(Wm);for(let o=0;o<i.length;o++){let c=o===i.length-1;a.push(...Vo(i[o],s,c,!1))}return a}function Os(r){let e=ee.default.basename(r.targetDir);(!e||e==="."||e==="/")&&(e=r.displayDir);let t={name:e,isDir:!0,children:new Map};for(let n of r.items){let a=n.relPath.split(/[/\\]+/).filter(Boolean),s=t;for(let i=0;i<a.length;i++){let o=a[i];i===a.length-1?s.children.set(o,{name:o,isDir:n.type==="directory",annotation:n.annotation,children:s.children.get(o)?.children||new Map}):(s.children.has(o)||s.children.set(o,{name:o,isDir:!0,children:new Map}),s=s.children.get(o))}}return Vo(t,"",!0,!0).join(`
619
+ `)}async function Is(r,e={}){let t={created:[],linked:[],skipped:[]};if(ae.default.existsSync(r.targetDir)||ae.default.mkdirSync(r.targetDir,{recursive:!0}),r.linkedRootFiles.length>0){let u=Kt(r.rootDir,r.targetDir);t.linked.push(...u.linked),t.skipped.push(...u.skipped);for(let h of u.linked)console.log(We.default.green(` \u2714 Linked root markdown file: ${h}`))}let n=Wo(),a=ee.default.join(r.targetDir,"index.html");if(ae.default.existsSync(a))t.skipped.push("index.html");else{let u=ae.default.readFileSync(ee.default.join(n,"index.html"),"utf-8");ae.default.writeFileSync(a,u,"utf-8"),t.created.push("index.html"),console.log(We.default.green(" \u2714 Created index.html"))}let s=ee.default.join(r.targetDir,"favicon.svg"),i=ee.default.join(n,"favicon.svg");!ae.default.existsSync(s)&&ae.default.existsSync(i)&&(ae.default.copyFileSync(i,s),t.created.push("favicon.svg"),console.log(We.default.green(" \u2714 Created favicon.svg")));let o=ee.default.join(r.targetDir,"docs.json");if(ae.default.existsSync(o))t.skipped.push("docs.json");else{let u=ae.default.readFileSync(ee.default.join(n,"docs.json"),"utf-8"),h={};try{h=JSON.parse(u)}catch{h={}}e.projectName&&(h.name=e.projectName),e.tagline&&(h.tagline=e.tagline),e.themeFamily&&(h.theme=h.theme||{},h.theme.family=e.themeFamily),e.colorMode&&(h.theme=h.theme||{},h.theme.defaultMode=e.colorMode),r.includeSamples||Array.isArray(h.nav)&&(h.nav=h.nav.filter(f=>!f.href?.includes("custom-components"))),ae.default.writeFileSync(o,JSON.stringify(h,null,2),"utf-8"),t.created.push("docs.json"),console.log(We.default.green(" \u2714 Created docs.json"))}let c=ee.default.join(r.targetDir,"README.md");if(!ae.default.existsSync(c)){let u=ae.default.readFileSync(ee.default.join(n,"README.md"),"utf-8");e.projectName&&e.projectName!=="My Project Docs"&&(u=u.replace(/^# Welcome to DocMeDown/m,`# Welcome to ${e.projectName}`).replace(/title: Welcome to DocMeDown/,`title: Welcome to ${e.projectName}`)),ae.default.writeFileSync(c,u,"utf-8"),t.created.push("README.md"),console.log(We.default.green(" \u2714 Created README.md"))}let m=ee.default.join(r.targetDir,"getting-started.md");if(ae.default.existsSync(m))t.skipped.push("getting-started.md");else{let u=ae.default.readFileSync(ee.default.join(n,"getting-started.md"),"utf-8");ae.default.writeFileSync(m,u,"utf-8"),t.created.push("getting-started.md"),console.log(We.default.green(" \u2714 Created getting-started.md"))}if(r.includeSamples){let u=ee.default.join(r.targetDir,"guides");ae.default.existsSync(u)||ae.default.mkdirSync(u,{recursive:!0});let h=ee.default.join(u,"custom-components.md");if(ae.default.existsSync(h))t.skipped.push("guides/custom-components.md");else{let w=ae.default.readFileSync(ee.default.join(n,"guides/custom-components.md"),"utf-8");ae.default.writeFileSync(h,w,"utf-8"),t.created.push("guides/custom-components.md"),console.log(We.default.green(" \u2714 Created guides/custom-components.md"))}let f=ee.default.join(r.targetDir,".dmd");ae.default.existsSync(f)||ae.default.mkdirSync(f,{recursive:!0});let b=ee.default.join(f,"CounterWidget.svelte");if(ae.default.existsSync(b))t.skipped.push(".dmd/CounterWidget.svelte");else{let w=ae.default.readFileSync(ee.default.join(n,".dmd/CounterWidget.svelte"),"utf-8");ae.default.writeFileSync(b,w,"utf-8"),t.created.push(".dmd/CounterWidget.svelte"),console.log(We.default.green(" \u2714 Created .dmd/CounterWidget.svelte"))}}return await xt(r.targetDir),t}var ie=J(require("fs")),Yo=J(require("http")),de=J(require("path")),dt=J(require("chalk")),Jo=J(require("chokidar")),Ko=J(require("mime-types")),aa=require("ws");function Vm(r,e){return Rs(r,e)}function Zo(r){return new Promise((e,t)=>{let n="";r.on("data",a=>{n+=a}),r.on("end",()=>{try{e(n?JSON.parse(n):{})}catch(a){t(a)}}),r.on("error",t)})}function Xo(r){let e=r.replace(/\\/g,"/").replace(/\.(md|mdx)$/i,""),t=de.default.basename(e).toLowerCase();return t==="readme"||t==="index"?"README":e}function Qo(r,e){if(!ie.default.existsSync(r))return;if(ie.default.statSync(r).isDirectory()){ie.default.existsSync(e)||ie.default.mkdirSync(e,{recursive:!0});for(let n of ie.default.readdirSync(r))Qo(de.default.join(r,n),de.default.join(e,n))}else{let n=de.default.dirname(e);ie.default.existsSync(n)||ie.default.mkdirSync(n,{recursive:!0}),ie.default.copyFileSync(r,e)}}function Qr(r){let{rootDir:e,host:t="localhost",port:n=3e3,onSourceChange:a}=r;return new Promise((s,i)=>{let o=n,c=r.mode||"production",m=de.default.join(e,".preview"),u=new Set;function h(T){let D=typeof T=="string"?T:JSON.stringify(T);for(let $ of u)$.readyState===aa.WebSocket.OPEN&&$.send(D)}let f=`
620
620
  <script>
621
621
  (function() {
622
622
  const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
@@ -683,7 +683,7 @@ Configuration cancelled.`));return}let a=Ue({...t,name:n.name,tagline:n.tagline,
683
683
  ${f}
684
684
  </body>
685
685
  </html>
686
- `);return}}let X=de.default.basename(O);if(["docmedown.web.js","docmedown-mermaid.js","docmedown-compiler.js"].includes(X)&&!ie.default.existsSync(L)){let Z=[de.default.resolve(__dirname,X),de.default.resolve(__dirname,"../dist",X),de.default.resolve(__dirname,"..",X)].find(G=>ie.default.existsSync(G));Z&&(L=Z)}try{ie.default.statSync(L).isDirectory()&&(L=de.default.join(L,"index.html"));let Z=L.endsWith(".svelte")?"text/plain; charset=utf-8":Ko.default.lookup(L)||"application/octet-stream";if(D.setHeader("Content-Type",Z),D.setHeader("Cache-Control","no-cache, no-store, must-revalidate"),Z.includes("html")){let G=ie.default.readFileSync(L,"utf-8");G.includes("/__dmd_reload")||(G=G.replace("</body>",`${f}</body>`)),D.writeHead(200),D.end(G)}else{let G=ie.default.createReadStream(L);D.writeHead(200),G.pipe(D)}}catch{D.writeHead(404,{"Content-Type":"text/plain"}),D.end("404 Not Found")}}),w=new aa.WebSocketServer({noServer:!0});b.on("upgrade",(T,D,$)=>{T.url==="/__dmd_reload"?w.handleUpgrade(T,D,$,z=>{u.add(z),z.on("close",()=>u.delete(z))}):D.destroy()});let g=de.default.dirname(e),y=Yr(g),x=[e,...y.map(T=>de.default.join(g,T))],A=Jo.default.watch(x,{ignored:["**/node_modules/**","**/.git/**","**/dist/**","**/.dist/**","**/.nojekyll","**/_manifest.json","**/_docs.js","**/docmedown.web.js","**/docmedown-mermaid.js"],ignoreInitial:!0,followSymlinks:!0}),M=null;A.on("all",(T,D)=>{if(!Zm(e,D))return;let $=de.default.dirname(de.default.resolve(D)).toLowerCase()===g.toLowerCase()&&/\.(md|mdx)$/i.test(D);$&&(T==="add"||T==="unlink")&&Kt(g,e),M&&clearTimeout(M),M=setTimeout(async()=>{let z=D.includes(".preview"),O=$?de.default.basename(D):de.default.relative(z?m:e,D).replace(/\\/g,"/");if(/\.(md|mdx)$/i.test(D)&&ie.default.existsSync(D))try{let U=ie.default.readFileSync(D,"utf-8"),L=Xo(O);console.log(dt.default.cyan(`[DocMeDown HMR] Document changed: ${O} -> Emitting in-place update for ${L}...`)),h({type:"hmr:update",file:O,slug:L,content:U,preview:z}),a&&await a(T,D);return}catch(U){console.error(dt.default.red(`[DocMeDown HMR] Error reading changed markdown: ${U.message}`))}if((O==="docs.json"||O==="dmd.json")&&ie.default.existsSync(D))try{let U=ie.default.readFileSync(D,"utf-8"),L=JSON.parse(U);console.log(dt.default.cyan(`[DocMeDown HMR] Configuration changed: ${O} -> Emitting in-place config update...`)),h({type:"hmr:config",config:L}),a&&await a(T,D);return}catch(U){console.error(dt.default.red(`[DocMeDown HMR] Error reading changed config: ${U.message}`))}try{a?(console.log(dt.default.cyan(`[DocMeDown] Changed: ${O} -> Rebuilding documentation...`)),await a(T,D)):console.log(dt.default.cyan(`[DocMeDown] Changed: ${O} -> Reloading preview...`))}catch(U){console.error(dt.default.red(`[DocMeDown] Rebuild failed: ${U.message}`))}h("reload")},100)});function E(){b.listen(o,t,()=>{s({server:b,port:o,close:()=>{A.close(),w.close(),b.close()},getMode:()=>c,setMode:T=>{c=T,h({type:"hmr:mode",mode:T})}})}),b.on("error",T=>{T.code==="EADDRINUSE"?(o++,E()):i(T)})}E()})}async function el(r="./docs",e={}){console.log(se.default.bold.magenta(`
686
+ `);return}}let X=de.default.basename(O);if(["docmedown.web.js","docmedown-mermaid.js","docmedown-compiler.js"].includes(X)&&!ie.default.existsSync(L)){let Z=[de.default.resolve(__dirname,X),de.default.resolve(__dirname,"../dist",X),de.default.resolve(__dirname,"..",X)].find(G=>ie.default.existsSync(G));Z&&(L=Z)}try{ie.default.statSync(L).isDirectory()&&(L=de.default.join(L,"index.html"));let Z=L.endsWith(".svelte")?"text/plain; charset=utf-8":Ko.default.lookup(L)||"application/octet-stream";if(D.setHeader("Content-Type",Z),D.setHeader("Cache-Control","no-cache, no-store, must-revalidate"),Z.includes("html")){let G=ie.default.readFileSync(L,"utf-8");G.includes("/__dmd_reload")||(G=G.replace("</body>",`${f}</body>`)),D.writeHead(200),D.end(G)}else{let G=ie.default.createReadStream(L);D.writeHead(200),G.pipe(D)}}catch{D.writeHead(404,{"Content-Type":"text/plain"}),D.end("404 Not Found")}}),w=new aa.WebSocketServer({noServer:!0});b.on("upgrade",(T,D,$)=>{T.url==="/__dmd_reload"?w.handleUpgrade(T,D,$,z=>{u.add(z),z.on("close",()=>u.delete(z))}):D.destroy()});let g=de.default.dirname(e),y=Yr(g),x=[e,...y.map(T=>de.default.join(g,T))],A=Jo.default.watch(x,{ignored:["**/node_modules/**","**/.git/**","**/dist/**","**/.dist/**","**/.nojekyll","**/_manifest.json","**/_docs.js","**/docmedown.web.js","**/docmedown-mermaid.js"],ignoreInitial:!0,followSymlinks:!0}),M=null;A.on("all",(T,D)=>{if(!Vm(e,D))return;let $=de.default.dirname(de.default.resolve(D)).toLowerCase()===g.toLowerCase()&&/\.(md|mdx)$/i.test(D);$&&(T==="add"||T==="unlink")&&Kt(g,e),M&&clearTimeout(M),M=setTimeout(async()=>{let z=D.includes(".preview"),O=$?de.default.basename(D):de.default.relative(z?m:e,D).replace(/\\/g,"/");if(/\.(md|mdx)$/i.test(D)&&ie.default.existsSync(D))try{let U=ie.default.readFileSync(D,"utf-8"),L=Xo(O);console.log(dt.default.cyan(`[DocMeDown HMR] Document changed: ${O} -> Emitting in-place update for ${L}...`)),h({type:"hmr:update",file:O,slug:L,content:U,preview:z}),a&&await a(T,D);return}catch(U){console.error(dt.default.red(`[DocMeDown HMR] Error reading changed markdown: ${U.message}`))}if((O==="docs.json"||O==="dmd.json")&&ie.default.existsSync(D))try{let U=ie.default.readFileSync(D,"utf-8"),L=JSON.parse(U);console.log(dt.default.cyan(`[DocMeDown HMR] Configuration changed: ${O} -> Emitting in-place config update...`)),h({type:"hmr:config",config:L}),a&&await a(T,D);return}catch(U){console.error(dt.default.red(`[DocMeDown HMR] Error reading changed config: ${U.message}`))}try{a?(console.log(dt.default.cyan(`[DocMeDown] Changed: ${O} -> Rebuilding documentation...`)),await a(T,D)):console.log(dt.default.cyan(`[DocMeDown] Changed: ${O} -> Reloading preview...`))}catch(U){console.error(dt.default.red(`[DocMeDown] Rebuild failed: ${U.message}`))}h("reload")},100)});function E(){b.listen(o,t,()=>{s({server:b,port:o,close:()=>{A.close(),w.close(),b.close()},getMode:()=>c,setMode:T=>{c=T,h({type:"hmr:mode",mode:T})}})}),b.on("error",T=>{T.code==="EADDRINUSE"?(o++,E()):i(T)})}E()})}async function el(r="./docs",e={}){console.log(se.default.bold.magenta(`
687
687
  \u26A1 DocMeDown - Quickstart Documentation Setup
688
688
  `));let t=process.cwd(),n=zs(t),a=Fs({targetDirArg:r,rootDir:t,includeSamples:!0});console.log(se.default.bold(`\u{1F4C1} Documentation Scaffold Preview for ${se.default.cyan(a.displayDir)}:
689
689
  `)),console.log(Os(a)),console.log("");let s=!!e.yes;if(!s)if(process.stdout.isTTY||process.stdin.isTTY||er.default._injected?.length)s=!!(await(0,er.default)({type:"confirm",name:"proceed",message:`Proceed with scaffolding documentation in ${se.default.cyan(a.displayDir)}?`,initial:!0})).proceed;else return console.log(se.default.yellow(`Confirmation required. Re-run with --yes to scaffold in non-interactive environments.
@@ -726,7 +726,7 @@ Scaffolding documentation in ${f.targetDir}...`)),await Is(f,{projectName:s,tagl
726
726
  Press Ctrl+C to stop.
727
727
  `)),e.open!==!1&&await(0,rl.default)(c)}catch(o){console.error(je.default.red(`
728
728
  \u2716 Error starting server: ${o.message}
729
- `)),process.exit(1)}}var St=new Sl.Command;St.name("docmedown").description("DocMeDown - The simplest MarkDown documenter yet. CLI, web runtime, and static-site compiler with AI-native distribution.").version(mr.version);St.argument("[dir]","Documentation directory to quickstart or serve (automatically links root *.md and ./docs/ together by default)","./docs").option("-p, --port <number>","Port for local dev server","3000").option("--no-open","Do not automatically open the browser").option("-y, --yes","Skip confirmation prompt in quickstart mode").action(async(r,e)=>{let t=tn.default.resolve(process.cwd(),r),n=sa.default.existsSync(tn.default.join(t,"index.html")),a=sa.default.existsSync(tn.default.join(t,"README.md"))||sa.default.existsSync(tn.default.join(t,"docs.json"));!n&&!a?await el(r,{start:e.open,yes:e.yes,port:Number(e.port)||3e3}):await js(r,{port:e.port,open:e.open})});St.command("init [dir]").description("Launch the interactive setup wizard to scaffold a new DocMeDown documentation site").option("-y, --yes","Skip interactive prompts and confirmation, using defaults").option("-n, --name <name>","Project name for documentation").option("-t, --theme <family>","Documentation theme family (atlas, blueprint, terminal, editorial)").option("--no-start","Do not start the local preview server after initialization").action(async(r,e)=>{await tl(r,{projectName:e.name,themeFamily:e.theme,start:e.start,yes:e.yes,interactive:!e.yes})});St.command("serve [dir]").alias("dev").description("Start local live-reload development server (serves both root *.md and ./docs/ documents seamlessly)").option("-p, --port <number>","Port to listen on","3000").option("-H, --host <string>","Host to bind server to","localhost").option("--preview","Serve .preview staging directory with fallback to production source").option("--mode <mode>","Serving mode: preview or production","production").option("--no-open","Do not automatically open browser").action(async(r="./docs",e)=>{await js(r,e)});St.command("build [dir]").description("Build serveable documentation, a static site, and an offline bundle (merging root *.md and ./docs/ documents)").option("-w, --watch","Watch source files and rebuild both outputs after changes").option("--no-single-file","Skip the default standalone offline index.html bundle").option("--no-static","Skip static page prerendering and SEO/AI context files").option("-o, --out-dir <path>","Offline bundle output directory (default: <dir>/.dist)").action(async(r="./docs",e)=>{e.watch?await Ho(r,e):await xt(r,e)});St.command("mcp [dir]").description("Serve documentation as an MCP (Model Context Protocol) server").option("-t, --transport <type>","Transport type: stdio or sse","stdio").option("-p, --port <number>","Port for SSE transport (default: 3001)").option("-H, --host <string>","Host to bind SSE server to","localhost").option("--allow-origins <origins>","Allowed origins for SSE transport (comma-separated or '*')").action(async(r="./docs",e)=>{let{mcpCommand:t}=await Promise.resolve().then(()=>(hl(),pl));await t(r,e)});St.command("validate [dir]").description("Validate Markdown links, frontmatter, and docs.json schema").option("--json","Output validation report as JSON").action(async(r="./docs",e)=>{let{validateCommand:t}=await Promise.resolve().then(()=>(vl(),gl));await t(r,{...e,exitOnError:!0})});St.command("doctor [dir]").description("Diagnose Node environment, missing assets, and .dmd custom component compilation").option("--json","Output diagnostic report as JSON").action(async(r="./docs",e)=>{let{doctorCommand:t}=await Promise.resolve().then(()=>(kl(),xl));await t(r,{...e,exitOnError:!0})});St.command("config [path]").description("Launch the interactive TUI configuration wizard for docs.json").action(async r=>{await Uo(r)});St.parse(process.argv);
729
+ `)),process.exit(1)}}var St=new kl.Command;St.name("docmedown").description("DocMeDown - The simplest MarkDown documenter yet. CLI, web runtime, and static-site compiler with AI-native distribution.").version(mr.version);St.argument("[dir]","Documentation directory to quickstart or serve (automatically links root *.md and ./docs/ together by default)","./docs").option("-p, --port <number>","Port for local dev server","3000").option("--no-open","Do not automatically open the browser").option("-y, --yes","Skip confirmation prompt in quickstart mode").action(async(r,e)=>{let t=tn.default.resolve(process.cwd(),r),n=sa.default.existsSync(tn.default.join(t,"index.html")),a=sa.default.existsSync(tn.default.join(t,"README.md"))||sa.default.existsSync(tn.default.join(t,"docs.json"));!n&&!a?await el(r,{start:e.open,yes:e.yes,port:Number(e.port)||3e3}):await js(r,{port:e.port,open:e.open})});St.command("init [dir]").description("Launch the interactive setup wizard to scaffold a new DocMeDown documentation site").option("-y, --yes","Skip interactive prompts and confirmation, using defaults").option("-n, --name <name>","Project name for documentation").option("-t, --theme <family>","Documentation theme family (atlas, blueprint, terminal, editorial)").option("--no-start","Do not start the local preview server after initialization").action(async(r,e)=>{await tl(r,{projectName:e.name,themeFamily:e.theme,start:e.start,yes:e.yes,interactive:!e.yes})});St.command("serve [dir]").alias("dev").description("Start local live-reload development server (serves both root *.md and ./docs/ documents seamlessly)").option("-p, --port <number>","Port to listen on","3000").option("-H, --host <string>","Host to bind server to","localhost").option("--preview","Serve .preview staging directory with fallback to production source").option("--mode <mode>","Serving mode: preview or production","production").option("--no-open","Do not automatically open browser").action(async(r="./docs",e)=>{await js(r,e)});St.command("build [dir]").description("Build serveable documentation, a static site, and an offline bundle (merging root *.md and ./docs/ documents)").option("-w, --watch","Watch source files and rebuild both outputs after changes").option("--no-single-file","Skip the default standalone offline index.html bundle").option("--no-static","Skip static page prerendering and SEO/AI context files").option("-o, --out-dir <path>","Offline bundle output directory (default: <dir>/.dist)").action(async(r="./docs",e)=>{e.watch?await Ho(r,e):await xt(r,e)});St.command("mcp [dir]").description("Serve documentation as an MCP (Model Context Protocol) server").option("-t, --transport <type>","Transport type: stdio or sse","stdio").option("-p, --port <number>","Port for SSE transport (default: 3001)").option("-H, --host <string>","Host to bind SSE server to","localhost").option("--allow-origins <origins>","Allowed origins for SSE transport (comma-separated or '*')").action(async(r="./docs",e)=>{let{mcpCommand:t}=await Promise.resolve().then(()=>(pl(),ml));await t(r,e)});St.command("validate [dir]").description("Validate Markdown links, frontmatter, and docs.json schema").option("--json","Output validation report as JSON").action(async(r="./docs",e)=>{let{validateCommand:t}=await Promise.resolve().then(()=>(gl(),fl));await t(r,{...e,exitOnError:!0})});St.command("doctor [dir]").description("Diagnose Node environment, missing assets, and .dmd custom component compilation").option("--json","Output diagnostic report as JSON").action(async(r="./docs",e)=>{let{doctorCommand:t}=await Promise.resolve().then(()=>(xl(),wl));await t(r,{...e,exitOnError:!0})});St.command("config [path]").description("Launch the interactive TUI configuration wizard for docs.json").action(async r=>{await Uo(r)});St.parse(process.argv);
730
730
  /*! Bundled license information:
731
731
 
732
732
  prismjs/prism.js: