@rizom/ops 0.2.0-alpha.224 → 0.2.0-alpha.225

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/index.js CHANGED
@@ -3,7 +3,7 @@ var dv=Object.create;var{getPrototypeOf:av,defineProperty:i8,getOwnPropertyNames
3
3
  `).join(`
4
4
  `+I),$.push(J+"m+"+EN.exports.humanize(this.diff)+"\x1B[0m")}else $[0]=RL()+U+" "+$[0]}function RL(){if(hz.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function zL(...$){return process.stderr.write(SN.formatWithOptions(hz.inspectOpts,...$)+`
5
5
  `)}function ML($){if($)process.env.DEBUG=$;else delete process.env.DEBUG}function jL(){return process.env.DEBUG}function vL($){$.inspectOpts={};let U=Object.keys(hz.inspectOpts);for(let g=0;g<U.length;g++)$.inspectOpts[U[g]]=hz.inspectOpts[U[g]]}EN.exports=h9()(hz);var{formatters:fz}=EN.exports;fz.o=function($){return this.inspectOpts.colors=this.useColors,SN.inspect($,this.inspectOpts).split(`
6
- `).map((U)=>U.trim()).join(" ")};fz.O=function($){return this.inspectOpts.colors=this.useColors,SN.inspect($,this.inspectOpts)}});var nz=s0((sf,n9)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)n9.exports=Fz();else n9.exports=lz()});var iM=s0((An,hM)=>{var kN=Object.prototype.hasOwnProperty,fM=Object.prototype.toString,FM=Object.defineProperty,rM=Object.getOwnPropertyDescriptor,kM=function(U){if(typeof Array.isArray==="function")return Array.isArray(U);return fM.call(U)==="[object Array]"},mM=function(U){if(!U||fM.call(U)!=="[object Object]")return!1;var g=kN.call(U,"constructor"),G=U.constructor&&U.constructor.prototype&&kN.call(U.constructor.prototype,"isPrototypeOf");if(U.constructor&&!g&&!G)return!1;var J;for(J in U);return typeof J>"u"||kN.call(U,J)},xM=function(U,g){if(FM&&g.name==="__proto__")FM(U,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0});else U[g.name]=g.newValue},yM=function(U,g){if(g==="__proto__"){if(!kN.call(U,g))return;else if(rM)return rM(U,g).value}return U[g]};hM.exports=function $(){var U,g,G,J,I,q,D=arguments[0],N=1,Q=arguments.length,X=!1;if(typeof D==="boolean")X=D,D=arguments[1]||{},N=2;if(D==null||typeof D!=="object"&&typeof D!=="function")D={};for(;N<Q;++N)if(U=arguments[N],U!=null){for(g in U)if(G=yM(D,g),J=yM(U,g),D!==J){if(X&&J&&(mM(J)||(I=kM(J)))){if(I)I=!1,q=G&&kM(G)?G:[];else q=G&&mM(G)?G:{};xM(D,{name:g,newValue:$(X,q,J)})}else if(typeof J<"u")xM(D,{name:g,newValue:J})}}return D}});import{access as kA,chmod as M9,mkdir as x7,readFile as f7,writeFile as y7}from"fs/promises";import{dirname as mA,join as v9}from"path";import{fileURLToPath as xA}from"url";var Pq={name:"@rizom/ops",version:"0.2.0-alpha.224",description:"Operator CLI for managing private brain fleet registry repos",keywords:["brains","ops","cli","deploy","fleet","operator"],license:"Apache-2.0",author:"Yeehaa <yeehaa@rizom.ai> (https://rizom.ai)",bin:{"brains-ops":"./dist/brains-ops.js"},bugs:"https://github.com/rizom-ai/brains/issues",dependencies:{"age-encryption":"^0.3.0"},devDependencies:{"@brains/deploy-support":"workspace:*","@brains/eslint-config":"workspace:*","@brains/site-composition":"workspace:*","@brains/typescript-config":"workspace:*","@brains/utils":"workspace:*","@types/bun":"^1.3.14",typescript:"^7.0.2"},engines:{bun:">=1.3.3"},exports:{".":{types:"./dist/index.d.ts",import:"./dist/index.js"},"./deploy":{types:"./dist/deploy.d.ts",import:"./dist/deploy.js",bun:"./dist/deploy.js"}},files:["dist","templates"],homepage:"https://github.com/rizom-ai/brains/tree/main/packages/brains-ops#readme",main:"./dist/index.js",publishConfig:{access:"public"},repository:{type:"git",url:"https://github.com/rizom-ai/brains.git",directory:"packages/brains-ops"},scripts:{build:"bun scripts/build.ts",lint:"eslint . --max-warnings 0","lint:fix":"eslint . --max-warnings 0 --fix",prepublishOnly:"bun scripts/build.ts",test:"bun run build && bun test --timeout 20000","test:smoke":"bun run build && RUN_SMOKE_TESTS=1 bun test --timeout 60000",typecheck:"tsc --noEmit"},type:"module",types:"./dist/index.d.ts"};var _w=`ARG BUN_VERSION=1.3.10
6
+ `).map((U)=>U.trim()).join(" ")};fz.O=function($){return this.inspectOpts.colors=this.useColors,SN.inspect($,this.inspectOpts)}});var nz=s0((sf,n9)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)n9.exports=Fz();else n9.exports=lz()});var iM=s0((An,hM)=>{var kN=Object.prototype.hasOwnProperty,fM=Object.prototype.toString,FM=Object.defineProperty,rM=Object.getOwnPropertyDescriptor,kM=function(U){if(typeof Array.isArray==="function")return Array.isArray(U);return fM.call(U)==="[object Array]"},mM=function(U){if(!U||fM.call(U)!=="[object Object]")return!1;var g=kN.call(U,"constructor"),G=U.constructor&&U.constructor.prototype&&kN.call(U.constructor.prototype,"isPrototypeOf");if(U.constructor&&!g&&!G)return!1;var J;for(J in U);return typeof J>"u"||kN.call(U,J)},xM=function(U,g){if(FM&&g.name==="__proto__")FM(U,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0});else U[g.name]=g.newValue},yM=function(U,g){if(g==="__proto__"){if(!kN.call(U,g))return;else if(rM)return rM(U,g).value}return U[g]};hM.exports=function $(){var U,g,G,J,I,q,D=arguments[0],N=1,Q=arguments.length,X=!1;if(typeof D==="boolean")X=D,D=arguments[1]||{},N=2;if(D==null||typeof D!=="object"&&typeof D!=="function")D={};for(;N<Q;++N)if(U=arguments[N],U!=null){for(g in U)if(G=yM(D,g),J=yM(U,g),D!==J){if(X&&J&&(mM(J)||(I=kM(J)))){if(I)I=!1,q=G&&kM(G)?G:[];else q=G&&mM(G)?G:{};xM(D,{name:g,newValue:$(X,q,J)})}else if(typeof J<"u")xM(D,{name:g,newValue:J})}}return D}});import{access as kA,chmod as M9,mkdir as x7,readFile as f7,writeFile as y7}from"fs/promises";import{dirname as mA,join as v9}from"path";import{fileURLToPath as xA}from"url";var Pq={name:"@rizom/ops",version:"0.2.0-alpha.225",description:"Operator CLI for managing private brain fleet registry repos",keywords:["brains","ops","cli","deploy","fleet","operator"],license:"Apache-2.0",author:"Yeehaa <yeehaa@rizom.ai> (https://rizom.ai)",bin:{"brains-ops":"./dist/brains-ops.js"},bugs:"https://github.com/rizom-ai/brains/issues",dependencies:{"age-encryption":"^0.3.0"},devDependencies:{"@brains/deploy-support":"workspace:*","@brains/eslint-config":"workspace:*","@brains/site-composition":"workspace:*","@brains/typescript-config":"workspace:*","@brains/utils":"workspace:*","@types/bun":"^1.3.14",typescript:"^7.0.2"},engines:{bun:">=1.3.3"},exports:{".":{types:"./dist/index.d.ts",import:"./dist/index.js"},"./deploy":{types:"./dist/deploy.d.ts",import:"./dist/deploy.js",bun:"./dist/deploy.js"}},files:["dist","templates"],homepage:"https://github.com/rizom-ai/brains/tree/main/packages/brains-ops#readme",main:"./dist/index.js",publishConfig:{access:"public"},repository:{type:"git",url:"https://github.com/rizom-ai/brains.git",directory:"packages/brains-ops"},scripts:{build:"bun scripts/build.ts",lint:"eslint . --max-warnings 0","lint:fix":"eslint . --max-warnings 0 --fix",prepublishOnly:"bun scripts/build.ts",test:"bun run build && bun test --timeout 20000","test:smoke":"bun run build && RUN_SMOKE_TESTS=1 bun test --timeout 60000",typecheck:"tsc --noEmit"},type:"module",types:"./dist/index.d.ts"};var _w=`ARG BUN_VERSION=1.3.10
7
7
  FROM oven/bun:\${BUN_VERSION}-slim AS runtime
8
8
 
9
9
  WORKDIR /app
@@ -256,7 +256,7 @@ volumes:
256
256
  .brains-ops/
257
257
  users/*.secrets.yaml
258
258
  `;if($==="deploy/Dockerfile")return rw();if($==="deploy/kamal/deploy.yml")return Bq({serviceName:"rover"});if($===".kamal/hooks/pre-deploy")return l8({deployConfigPath:"deploy/kamal/deploy.yml",brainYamlPath:"${BRAIN_YAML_PATH:-brain.yaml}"});let U=v9(fA,$),g=await f7(U,"utf8");return tA(g)}function tA($){return $.replaceAll("__BRAINS_OPS_VERSION__",Pq.version).replaceAll("__BUN_VERSION__",Bun.version)}function sA($,U){return typeof $==="object"&&$!==null&&"code"in $&&$.code===U}import{createHash as $S}from"crypto";import{spawn as eA}from"child_process";var LU=async($,U,g={})=>new Promise((G,J)=>{let I=eA($,U,{stdio:["pipe","inherit","inherit"],env:g.env?{...process.env,...g.env}:process.env,cwd:g.cwd});if(I.on("error",J),I.on("close",(q)=>{if(q===0){G();return}J(Error(`${$} ${U.join(" ")} exited with code ${q??1}`))}),g.stdin)I.stdin.end(g.stdin);else I.stdin.end()});function T9($,U){let g=[...new Set(U.map((J)=>J.trim()).filter(Boolean))].sort();if(g.length===0)return`brain-${$}`;let G=$S("sha256").update(g.join(`
259
- `)).digest("hex").slice(0,12);return`brain-${$}-sites-${G}`}function h7($){if(!$)return[];return[`${$.package}@${$.version}`,...$.theme?.startsWith("@rizom/")?[`${$.theme}@${$.version}`]:[]]}function i7($){let U=new Map;for(let g of $){let G=[...new Set(h7(g.siteOverride))].sort(),J=T9(g.brainVersion,G);U.set(J,{tag:J,brainVersion:g.brainVersion,sitePackages:G})}return[...U.values()].sort((g,G)=>g.tag.localeCompare(G.tag))}async function l7($){let U=$.brainVersionInput?.trim()??"";if(U){let G=($.sitePackagesInput??"").split(/\s+/).filter(Boolean);return[{tag:T9(U,G),brainVersion:U,sitePackages:G}]}let g=[];for(let G of i7($.users))if(!await $.imageExists(G.tag))g.push(G);return g}async function US($){let U=$.env??process.env,g=$.runCommand??LU,G=$.log??console.log,J=U.BRAIN_VERSION_INPUT?.trim()??"",I=U.SITE_PACKAGES_INPUT?.trim()??"",q=J?[]:(await lU($.rootDir)).users,D=await l7({users:q,brainVersionInput:J,sitePackagesInput:I,imageExists:async(N)=>{try{return await g("docker",["manifest","inspect",`${$.imageRepository}:${N}`]),!0}catch{return!1}}});for(let N of D)G(`build needed: ${N.tag} (brain ${N.brainVersion}${N.sitePackages.length>0?`, sites ${N.sitePackages.join(" ")}`:""})`);if(D.length===0)G("All declared images already exist; nothing to build.");return $.writeOutput("images_json",JSON.stringify(D.map((N)=>({tag:N.tag,brain_version:N.brainVersion,site_packages:N.sitePackages.join(" ")})))),D}var n7=w.object({id:w.string(),template:w.string(),content:w.unknown().optional(),dataQuery:w.looseObject({entityType:w.string().optional(),template:w.string().optional(),query:w.looseObject({id:w.string().optional(),limit:w.number().optional(),offset:w.number().optional()}).optional()}).optional(),order:w.number().optional()}),p7=["primary","secondary"],c7=w.object({show:w.boolean().default(!1),label:w.string().optional(),slot:w.enum(p7).default("primary"),priority:w.number().min(0).max(100).default(50)}).optional(),o7=w.object({id:w.string(),path:w.string(),title:w.string().default(""),pageLabel:w.string().optional(),description:w.string().default(""),sections:w.array(n7).default([]),layout:w.string().default("default"),fullscreen:w.boolean().optional(),pluginId:w.string().optional(),sourceEntityType:w.string().optional(),external:w.boolean().optional(),navigation:c7}),JS=w.object({routes:w.array(o7),pluginId:w.string()}),gS=w.object({paths:w.array(w.string()).optional(),pluginId:w.string().optional()}),GS=w.object({pluginId:w.string().optional()}),IS=w.object({path:w.string()}),WN=w.object({label:w.string(),href:w.string(),priority:w.number()});var A9=w.object({heading:w.string().describe("Main CTA heading text"),buttonText:w.string().describe("Call-to-action button text"),buttonLink:w.string().describe("URL or anchor for the CTA button")}),S9=w.object({blurb:w.string().optional().describe("Short italic subtitle under the section title")}),qS=w.object({title:w.string().describe("The site's title"),description:w.string().describe("The site's description"),url:w.string().optional().describe("Canonical site URL"),copyright:w.string().optional().describe("Copyright notice text"),logo:w.boolean().optional().describe("Whether to display logo instead of title text in header"),themeMode:w.enum(["light","dark"]).optional().describe("Default theme mode"),analyticsScript:w.string().optional().describe("Analytics script HTML"),cta:A9.optional().describe("Call-to-action configuration"),sections:w.record(w.string(),S9).optional().describe("Optional per-section blurbs, keyed by section id (e.g. 'essays', 'presentations', 'about'). Used by homepage templates that render editorial section headers.")});var DS=w.object({platform:w.enum(["github","instagram","linkedin","email","website"]).describe("Social media platform"),url:w.string().describe("Profile or contact URL"),label:w.string().optional().describe("Optional display label")}),NS=w.object({title:w.string().describe("The site's title"),description:w.string().describe("The site's description"),url:w.string().optional().describe("Canonical site URL"),copyright:w.string(),logo:w.boolean().optional().describe("Whether to display logo instead of title text in header"),themeMode:w.enum(["light","dark"]).optional().describe("Default theme mode"),analyticsScript:w.string().optional().describe("Analytics script HTML"),cta:A9.optional().describe("Call-to-action configuration"),sections:w.record(w.string(),S9).optional().describe("Optional per-section blurbs, keyed by section id (e.g. 'essays', 'presentations', 'about'). Used by homepage templates that render editorial section headers."),navigation:w.object({primary:w.array(WN),secondary:w.array(WN)}),socialLinks:w.array(DS).optional().describe("Social media links from profile metadata")});var Qr=w.record(w.string(),w.unknown());var Rr=w.object({message:w.string()});var d7=w.object({type:w.literal("event"),event:w.string().min(1),fromState:w.string().min(1).optional()}),QS=w.object({conversationId:w.string().min(1),interfaceType:w.string().min(1),channelId:w.string().min(1).optional(),channelName:w.string().min(1),userPermissionLevel:w.enum(["anchor","trusted","public"]),action:d7});var a7=w.object({id:w.string(),toolCallId:w.string().optional(),toolName:w.string(),summary:w.string(),completionSummary:w.string().optional(),preview:w.string().optional(),args:w.unknown()}),t7=w.enum(["approval-requested","approval-responded","output-available","output-denied","output-error"]),XS=w.object({kind:w.literal("tool-approval"),id:w.string(),toolCallId:w.string().optional(),toolName:w.string(),input:w.record(w.string(),w.unknown()).optional(),summary:w.string(),completionSummary:w.string().optional(),preview:w.string().optional(),state:t7,output:w.unknown().optional(),error:w.string().optional()});var s7=w.object({entityType:w.string().optional(),entityId:w.string().optional(),attachmentType:w.string().optional()}),e7=w.object({mediaType:w.string().min(1),url:w.string().min(1),downloadUrl:w.string().min(1).optional(),previewUrl:w.string().min(1).optional(),filename:w.string().min(1).optional(),sizeBytes:w.number().nonnegative().optional(),source:s7.optional()}),OS=w.object({kind:w.literal("attachment"),id:w.string(),jobId:w.string().optional(),title:w.string(),description:w.string().optional(),attachment:e7});var $z=w.object({id:w.string().min(1),title:w.string().min(1).optional(),source:w.string().min(1),url:w.string().min(1).optional(),entityType:w.string().min(1).optional(),entityId:w.string().min(1).optional(),excerpt:w.string().min(1).optional(),provenance:w.record(w.string(),w.unknown()).optional()}),YS=w.object({kind:w.literal("sources"),id:w.string().min(1),title:w.string().min(1).optional(),sources:w.array($z).min(1)});var WS=w.object({type:w.literal("prompt"),id:w.string().min(1),label:w.string().min(1),prompt:w.string().min(1),description:w.string().min(1).optional()});var ZS=w.object({type:w.literal("event"),id:w.string().min(1),label:w.string().min(1),event:w.string().min(1),fromState:w.string().min(1).optional(),description:w.string().min(1).optional()});var Uz=w.discriminatedUnion("type",[WS,ZS]),wS=w.object({kind:w.literal("actions"),id:w.string().min(1),title:w.string().min(1).optional(),defaultOpen:w.boolean().optional(),actions:w.array(Uz).min(1)});var Jz=w.discriminatedUnion("kind",[XS,OS,YS,wS]),gz=w.object({toolName:w.string(),args:w.record(w.string(),w.unknown()).optional(),jobId:w.string().optional(),data:w.unknown().optional(),error:w.object({message:w.string(),code:w.string().optional()}).optional()}),VS=w.object({text:w.string(),toolResults:w.array(gz).optional(),cards:w.array(Jz).optional(),pendingConfirmations:w.array(a7).optional(),usage:w.object({promptTokens:w.number(),completionTokens:w.number(),totalTokens:w.number()})});var Gz=w.enum(["anchor","trusted","public"]),RS=w.object({conversationId:w.string().min(1),message:w.string(),interfaceType:w.string().min(1),channelId:w.string().optional(),channelName:w.string().optional(),userPermissionLevel:Gz}),Iz=w.object({id:w.string().min(1),source:w.string().min(1),title:w.string().optional(),content:w.string().min(1),provenance:w.record(w.string(),w.unknown()).optional()}),zS=w.object({items:w.array(Iz).default([])});var MS=w.object({url:w.string(),authToken:w.string().optional()});var jS=w.object({success:w.boolean(),entityId:w.string().optional(),error:w.string().optional()});var vS=w.enum(["user","assistant"]);var KS=w.object({id:w.string().min(1),trigger:w.string().min(1),playbookId:w.string().min(1),once:w.boolean().default(!0),starterText:w.string().min(1),description:w.string().min(1).optional(),starterPrompt:w.string().min(1)}).strict();var HS=w.object({message:w.string().describe("Natural language response to the query"),summary:w.string().optional().describe("Brief summary if applicable"),topics:w.array(w.string()).optional().describe("Related topics mentioned"),sources:w.array(w.object({id:w.string(),type:w.string(),excerpt:w.string().optional(),relevance:w.number().min(0).max(1).optional()})).optional().describe("Source entities used to answer the query"),metadata:w.record(w.string(),w.unknown()).optional()}).describe("defaultQueryResponse"),TS=w.object({message:w.string()}).describe("simpleTextResponse"),qz=w.object({success:w.boolean(),entityId:w.string().optional(),message:w.string()}).describe("createEntityResponse"),Dz=w.object({success:w.boolean(),entityId:w.string(),changes:w.array(w.string()).optional(),message:w.string()}).describe("updateEntityResponse");class Nz extends Error{name="Assertion";code="ERR_ASSERTION";constructor($,U,g,G,J){super($);if(Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);this.actual=U,this.expected=g,this.generated=J,this.operator=G}}function _($,U){AS(Boolean($),!1,!0,"ok","Expected value to be truthy",U)}function AS($,U,g,G,J,I){if(!$)throw I instanceof Error?I:new Nz(I||J,U,g,G,!I)}var SS={};function cJ($,U){let g=U||SS,G=typeof g.includeImageAlt==="boolean"?g.includeImageAlt:!0,J=typeof g.includeHtml==="boolean"?g.includeHtml:!0;return Xz($,G,J)}function Xz($,U,g){if(ES($)){if("value"in $)return $.type==="html"&&!g?"":$.value;if(U&&"alt"in $&&$.alt)return $.alt;if("children"in $)return Qz($.children,U,g)}if(Array.isArray($))return Qz($,U,g);return""}function Qz($,U,g){let G=[],J=-1;while(++J<$.length)G[J]=Xz($[J],U,g);return G.join("")}function ES($){return Boolean($&&typeof $==="object")}var L9={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\uD835\uDD04",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\uD835\uDD38",ApplyFunction:"\u2061",Aring:"\xC5",Ascr:"\uD835\uDC9C",Assign:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\uD835\uDD05",Bopf:"\uD835\uDD39",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\uD835\uDC9E",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\uD835\uDD07",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\uD835\uDD3B",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\uD835\uDC9F",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\uD835\uDD08",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\uD835\uDD3C",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\uD835\uDD09",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\uD835\uDD3D",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\uD835\uDD0A",Gg:"\u22D9",Gopf:"\uD835\uDD3E",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\uD835\uDCA2",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\uD835\uDD40",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\uD835\uDD0D",Jopf:"\uD835\uDD41",Jscr:"\uD835\uDCA5",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\uD835\uDD0E",Kopf:"\uD835\uDD42",Kscr:"\uD835\uDCA6",LJcy:"\u0409",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\uD835\uDD0F",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\uD835\uDD43",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\uD835\uDD10",MinusPlus:"\u2213",Mopf:"\uD835\uDD44",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
259
+ `)).digest("hex").slice(0,12);return`brain-${$}-sites-${G}`}function h7($){if(!$)return[];return[`${$.package}@${$.version}`,...$.theme?.startsWith("@rizom/")?[`${$.theme}@${$.version}`]:[]]}function i7($){let U=new Map;for(let g of $){let G=[...new Set(h7(g.siteOverride))].sort(),J=T9(g.brainVersion,G);U.set(J,{tag:J,brainVersion:g.brainVersion,sitePackages:G})}return[...U.values()].sort((g,G)=>g.tag.localeCompare(G.tag))}async function l7($){let U=$.brainVersionInput?.trim()??"";if(U){let G=($.sitePackagesInput??"").split(/\s+/).filter(Boolean);return[{tag:T9(U,G),brainVersion:U,sitePackages:G}]}let g=[];for(let G of i7($.users))if(!await $.imageExists(G.tag))g.push(G);return g}async function US($){let U=$.env??process.env,g=$.runCommand??LU,G=$.log??console.log,J=U.BRAIN_VERSION_INPUT?.trim()??"",I=U.SITE_PACKAGES_INPUT?.trim()??"",q=J?[]:(await lU($.rootDir)).users,D=await l7({users:q,brainVersionInput:J,sitePackagesInput:I,imageExists:async(N)=>{try{return await g("docker",["manifest","inspect",`${$.imageRepository}:${N}`]),!0}catch{return!1}}});for(let N of D)G(`build needed: ${N.tag} (brain ${N.brainVersion}${N.sitePackages.length>0?`, sites ${N.sitePackages.join(" ")}`:""})`);if(D.length===0)G("All declared images already exist; nothing to build.");return $.writeOutput("images_json",JSON.stringify(D.map((N)=>({tag:N.tag,brain_version:N.brainVersion,site_packages:N.sitePackages.join(" ")})))),D}var n7=w.object({id:w.string(),template:w.string(),content:w.unknown().optional(),dataQuery:w.looseObject({entityType:w.string().optional(),template:w.string().optional(),query:w.looseObject({id:w.string().optional(),limit:w.number().optional(),offset:w.number().optional()}).optional()}).optional(),order:w.number().optional()}),p7=["primary","secondary"],c7=w.object({show:w.boolean().default(!1),label:w.string().optional(),slot:w.enum(p7).default("primary"),priority:w.number().min(0).max(100).default(50)}).optional(),o7=w.object({id:w.string(),path:w.string(),title:w.string().default(""),pageLabel:w.string().optional(),description:w.string().default(""),sections:w.array(n7).default([]),layout:w.string().default("default"),fullscreen:w.boolean().optional(),pluginId:w.string().optional(),sourceEntityType:w.string().optional(),external:w.boolean().optional(),navigation:c7}),JS=w.object({routes:w.array(o7),pluginId:w.string()}),gS=w.object({paths:w.array(w.string()).optional(),pluginId:w.string().optional()}),GS=w.object({pluginId:w.string().optional()}),IS=w.object({path:w.string()}),WN=w.object({label:w.string(),href:w.string(),priority:w.number()});var A9=w.object({heading:w.string().describe("Main CTA heading text"),buttonText:w.string().describe("Call-to-action button text"),buttonLink:w.string().describe("URL or anchor for the CTA button")}),S9=w.object({blurb:w.string().optional().describe("Short italic subtitle under the section title")}),qS=w.object({represents:w.enum(["brain","anchor"]).default("anchor").describe("Identity represented by the site"),title:w.string().describe("The site's title"),description:w.string().describe("The site's description"),url:w.string().optional().describe("Canonical site URL"),copyright:w.string().optional().describe("Copyright notice text"),logo:w.boolean().optional().describe("Whether to display logo instead of title text in header"),themeMode:w.enum(["light","dark"]).optional().describe("Default theme mode"),analyticsScript:w.string().optional().describe("Analytics script HTML"),cta:A9.optional().describe("Call-to-action configuration"),sections:w.record(w.string(),S9).optional().describe("Optional per-section blurbs, keyed by section id (e.g. 'essays', 'presentations', 'about'). Used by homepage templates that render editorial section headers.")});var DS=w.object({platform:w.enum(["github","instagram","linkedin","email","website"]).describe("Social media platform"),url:w.string().describe("Profile or contact URL"),label:w.string().optional().describe("Optional display label")}),NS=w.object({represents:w.enum(["brain","anchor"]).default("anchor").describe("Identity represented by the site"),title:w.string().describe("The site's title"),description:w.string().describe("The site's description"),url:w.string().optional().describe("Canonical site URL"),copyright:w.string(),logo:w.boolean().optional().describe("Whether to display logo instead of title text in header"),themeMode:w.enum(["light","dark"]).optional().describe("Default theme mode"),analyticsScript:w.string().optional().describe("Analytics script HTML"),cta:A9.optional().describe("Call-to-action configuration"),sections:w.record(w.string(),S9).optional().describe("Optional per-section blurbs, keyed by section id (e.g. 'essays', 'presentations', 'about'). Used by homepage templates that render editorial section headers."),navigation:w.object({primary:w.array(WN),secondary:w.array(WN)}),socialLinks:w.array(DS).optional().describe("Social media links from profile metadata")});var Qr=w.record(w.string(),w.unknown());var Rr=w.object({message:w.string()});var d7=w.object({type:w.literal("event"),event:w.string().min(1),fromState:w.string().min(1).optional()}),QS=w.object({conversationId:w.string().min(1),interfaceType:w.string().min(1),channelId:w.string().min(1).optional(),channelName:w.string().min(1),userPermissionLevel:w.enum(["anchor","trusted","public"]),action:d7});var a7=w.object({id:w.string(),toolCallId:w.string().optional(),toolName:w.string(),summary:w.string(),completionSummary:w.string().optional(),preview:w.string().optional(),args:w.unknown()}),t7=w.enum(["approval-requested","approval-responded","output-available","output-denied","output-error"]),XS=w.object({kind:w.literal("tool-approval"),id:w.string(),toolCallId:w.string().optional(),toolName:w.string(),input:w.record(w.string(),w.unknown()).optional(),summary:w.string(),completionSummary:w.string().optional(),preview:w.string().optional(),state:t7,output:w.unknown().optional(),error:w.string().optional()});var s7=w.object({entityType:w.string().optional(),entityId:w.string().optional(),attachmentType:w.string().optional()}),e7=w.object({mediaType:w.string().min(1),url:w.string().min(1),downloadUrl:w.string().min(1).optional(),previewUrl:w.string().min(1).optional(),filename:w.string().min(1).optional(),sizeBytes:w.number().nonnegative().optional(),source:s7.optional()}),OS=w.object({kind:w.literal("attachment"),id:w.string(),jobId:w.string().optional(),title:w.string(),description:w.string().optional(),attachment:e7});var $z=w.object({id:w.string().min(1),title:w.string().min(1).optional(),source:w.string().min(1),url:w.string().min(1).optional(),entityType:w.string().min(1).optional(),entityId:w.string().min(1).optional(),excerpt:w.string().min(1).optional(),provenance:w.record(w.string(),w.unknown()).optional()}),YS=w.object({kind:w.literal("sources"),id:w.string().min(1),title:w.string().min(1).optional(),sources:w.array($z).min(1)});var WS=w.object({type:w.literal("prompt"),id:w.string().min(1),label:w.string().min(1),prompt:w.string().min(1),description:w.string().min(1).optional()});var ZS=w.object({type:w.literal("event"),id:w.string().min(1),label:w.string().min(1),event:w.string().min(1),fromState:w.string().min(1).optional(),description:w.string().min(1).optional()});var Uz=w.discriminatedUnion("type",[WS,ZS]),wS=w.object({kind:w.literal("actions"),id:w.string().min(1),title:w.string().min(1).optional(),defaultOpen:w.boolean().optional(),actions:w.array(Uz).min(1)});var Jz=w.discriminatedUnion("kind",[XS,OS,YS,wS]),gz=w.object({toolName:w.string(),args:w.record(w.string(),w.unknown()).optional(),jobId:w.string().optional(),data:w.unknown().optional(),error:w.object({message:w.string(),code:w.string().optional()}).optional()}),VS=w.object({text:w.string(),toolResults:w.array(gz).optional(),cards:w.array(Jz).optional(),pendingConfirmations:w.array(a7).optional(),usage:w.object({promptTokens:w.number(),completionTokens:w.number(),totalTokens:w.number()})});var Gz=w.enum(["anchor","trusted","public"]),RS=w.object({conversationId:w.string().min(1),message:w.string(),interfaceType:w.string().min(1),channelId:w.string().optional(),channelName:w.string().optional(),userPermissionLevel:Gz}),Iz=w.object({id:w.string().min(1),source:w.string().min(1),title:w.string().optional(),content:w.string().min(1),provenance:w.record(w.string(),w.unknown()).optional()}),zS=w.object({items:w.array(Iz).default([])});var MS=w.object({url:w.string(),authToken:w.string().optional()});var jS=w.object({success:w.boolean(),entityId:w.string().optional(),error:w.string().optional()});var vS=w.enum(["user","assistant"]);var KS=w.object({id:w.string().min(1),trigger:w.string().min(1),playbookId:w.string().min(1),once:w.boolean().default(!0),starterText:w.string().min(1),description:w.string().min(1).optional(),starterPrompt:w.string().min(1)}).strict();var HS=w.object({message:w.string().describe("Natural language response to the query"),summary:w.string().optional().describe("Brief summary if applicable"),topics:w.array(w.string()).optional().describe("Related topics mentioned"),sources:w.array(w.object({id:w.string(),type:w.string(),excerpt:w.string().optional(),relevance:w.number().min(0).max(1).optional()})).optional().describe("Source entities used to answer the query"),metadata:w.record(w.string(),w.unknown()).optional()}).describe("defaultQueryResponse"),TS=w.object({message:w.string()}).describe("simpleTextResponse"),qz=w.object({success:w.boolean(),entityId:w.string().optional(),message:w.string()}).describe("createEntityResponse"),Dz=w.object({success:w.boolean(),entityId:w.string(),changes:w.array(w.string()).optional(),message:w.string()}).describe("updateEntityResponse");class Nz extends Error{name="Assertion";code="ERR_ASSERTION";constructor($,U,g,G,J){super($);if(Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);this.actual=U,this.expected=g,this.generated=J,this.operator=G}}function _($,U){AS(Boolean($),!1,!0,"ok","Expected value to be truthy",U)}function AS($,U,g,G,J,I){if(!$)throw I instanceof Error?I:new Nz(I||J,U,g,G,!I)}var SS={};function cJ($,U){let g=U||SS,G=typeof g.includeImageAlt==="boolean"?g.includeImageAlt:!0,J=typeof g.includeHtml==="boolean"?g.includeHtml:!0;return Xz($,G,J)}function Xz($,U,g){if(ES($)){if("value"in $)return $.type==="html"&&!g?"":$.value;if(U&&"alt"in $&&$.alt)return $.alt;if("children"in $)return Qz($.children,U,g)}if(Array.isArray($))return Qz($,U,g);return""}function Qz($,U,g){let G=[],J=-1;while(++J<$.length)G[J]=Xz($[J],U,g);return G.join("")}function ES($){return Boolean($&&typeof $==="object")}var L9={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\uD835\uDD04",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\uD835\uDD38",ApplyFunction:"\u2061",Aring:"\xC5",Ascr:"\uD835\uDC9C",Assign:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\uD835\uDD05",Bopf:"\uD835\uDD39",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\uD835\uDC9E",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\uD835\uDD07",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\uD835\uDD3B",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\uD835\uDC9F",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\uD835\uDD08",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\uD835\uDD3C",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\uD835\uDD09",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\uD835\uDD3D",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\uD835\uDD0A",Gg:"\u22D9",Gopf:"\uD835\uDD3E",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\uD835\uDCA2",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\uD835\uDD40",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\uD835\uDD0D",Jopf:"\uD835\uDD41",Jscr:"\uD835\uDCA5",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\uD835\uDD0E",Kopf:"\uD835\uDD42",Kscr:"\uD835\uDCA6",LJcy:"\u0409",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\uD835\uDD0F",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\uD835\uDD43",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\uD835\uDD10",MinusPlus:"\u2213",Mopf:"\uD835\uDD44",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
260
260
  `,Nfr:"\uD835\uDD11",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\uD835\uDCA9",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\uD835\uDD12",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\uD835\uDD46",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\uD835\uDCAA",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\uD835\uDD13",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\uD835\uDCAB",Psi:"\u03A8",QUOT:'"',Qfr:"\uD835\uDD14",Qopf:"\u211A",Qscr:"\uD835\uDCAC",RBarr:"\u2910",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\uD835\uDD16",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\uD835\uDD4A",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\uD835\uDCAE",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:"\t",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\uD835\uDD17",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\uD835\uDD4B",TripleDot:"\u20DB",Tscr:"\uD835\uDCAF",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\uD835\uDD18",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\uD835\uDD4C",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\uD835\uDCB0",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\uD835\uDD19",Vopf:"\uD835\uDD4D",Vscr:"\uD835\uDCB1",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\uD835\uDD1A",Wopf:"\uD835\uDD4E",Wscr:"\uD835\uDCB2",Xfr:"\uD835\uDD1B",Xi:"\u039E",Xopf:"\uD835\uDD4F",Xscr:"\uD835\uDCB3",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\uD835\uDD1C",Yopf:"\uD835\uDD50",Yscr:"\uD835\uDCB4",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\uD835\uDCB5",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acute:"\xB4",acy:"\u0430",aelig:"\xE6",af:"\u2061",afr:"\uD835\uDD1E",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\uD835\uDD52",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",ascr:"\uD835\uDCB6",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\uD835\uDD1F",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\uD835\uDD53",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvbar:"\xA6",bscr:"\uD835\uDCB7",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedil:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",cfr:"\uD835\uDD20",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\uD835\uDD54",coprod:"\u2210",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\uD835\uDCB8",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\uD835\uDD21",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\uD835\uDD55",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\uD835\uDCB9",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\uD835\uDD22",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\uD835\uDD56",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\uD835\uDD23",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\uD835\uDD57",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\uD835\uDCBB",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\uD835\uDD24",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\uD835\uDD58",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\uD835\uDD25",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\uD835\uDD59",horbar:"\u2015",hscr:"\uD835\uDCBD",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",ic:"\u2063",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\uD835\uDD26",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\uD835\uDD5A",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\uD835\uDCBE",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\uD835\uDD27",jmath:"\u0237",jopf:"\uD835\uDD5B",jscr:"\uD835\uDCBF",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\uD835\uDD28",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\uD835\uDD5C",kscr:"\uD835\uDCC0",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\uD835\uDD29",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\uD835\uDD5D",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\uD835\uDCC1",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\uD835\uDD2A",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\uD835\uDD5E",mp:"\u2213",mscr:"\uD835\uDCC2",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\uD835\uDD2B",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\uD835\uDD5F",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\uD835\uDCC3",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\uD835\uDD2C",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\uD835\uDD60",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\uD835\uDD2D",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\uD835\uDD61",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\uD835\uDCC5",psi:"\u03C8",puncsp:"\u2008",qfr:"\uD835\uDD2E",qint:"\u2A0C",qopf:"\uD835\uDD62",qprime:"\u2057",qscr:"\uD835\uDCC6",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\uD835\uDD2F",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\uD835\uDD63",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\uD835\uDCC7",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\uD835\uDD30",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\uD835\uDD64",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\uD835\uDCC8",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\uD835\uDD31",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",tilde:"\u02DC",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\uD835\uDD65",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\uD835\uDCC9",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\uD835\uDD32",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uml:"\xA8",uogon:"\u0173",uopf:"\uD835\uDD66",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\uD835\uDCCA",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\uD835\uDD33",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\uD835\uDD67",vprop:"\u221D",vrtri:"\u22B3",vscr:"\uD835\uDCCB",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\uD835\uDD34",wopf:"\uD835\uDD68",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\uD835\uDCCC",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\uD835\uDD35",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\uD835\uDD69",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\uD835\uDCCD",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\uD835\uDD36",yicy:"\u0457",yopf:"\uD835\uDD6A",yscr:"\uD835\uDCCE",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\uD835\uDD37",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\uD835\uDD6B",zscr:"\uD835\uDCCF",zwj:"\u200D",zwnj:"\u200C"};var LS={}.hasOwnProperty;function qG($){return LS.call(L9,$)?L9[$]:!1}var R={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533};var X$={attentionSideAfter:2,attentionSideBefore:1,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:"content",contentTypeDocument:"document",contentTypeFlow:"flow",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlBasic:6,htmlCdata:5,htmlComment:2,htmlComplete:7,htmlDeclaration:4,htmlInstruction:3,htmlRawSizeMax:8,htmlRaw:1,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4};var V={data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkDocument:"chunkDocument",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"};var nU={ht:"\t",lf:`
261
261
  `,cr:"\r",space:" ",exclamationMark:"!",quotationMark:'"',numberSign:"#",dollarSign:"$",percentSign:"%",ampersand:"&",apostrophe:"'",leftParenthesis:"(",rightParenthesis:")",asterisk:"*",plusSign:"+",comma:",",dash:"-",dot:".",slash:"/",digit0:"0",digit1:"1",digit2:"2",digit3:"3",digit4:"4",digit5:"5",digit6:"6",digit7:"7",digit8:"8",digit9:"9",colon:":",semicolon:";",lessThan:"<",equalsTo:"=",greaterThan:">",questionMark:"?",atSign:"@",uppercaseA:"A",uppercaseB:"B",uppercaseC:"C",uppercaseD:"D",uppercaseE:"E",uppercaseF:"F",uppercaseG:"G",uppercaseH:"H",uppercaseI:"I",uppercaseJ:"J",uppercaseK:"K",uppercaseL:"L",uppercaseM:"M",uppercaseN:"N",uppercaseO:"O",uppercaseP:"P",uppercaseQ:"Q",uppercaseR:"R",uppercaseS:"S",uppercaseT:"T",uppercaseU:"U",uppercaseV:"V",uppercaseW:"W",uppercaseX:"X",uppercaseY:"Y",uppercaseZ:"Z",leftSquareBracket:"[",backslash:"\\",rightSquareBracket:"]",caret:"^",underscore:"_",graveAccent:"`",lowercaseA:"a",lowercaseB:"b",lowercaseC:"c",lowercaseD:"d",lowercaseE:"e",lowercaseF:"f",lowercaseG:"g",lowercaseH:"h",lowercaseI:"i",lowercaseJ:"j",lowercaseK:"k",lowercaseL:"l",lowercaseM:"m",lowercaseN:"n",lowercaseO:"o",lowercaseP:"p",lowercaseQ:"q",lowercaseR:"r",lowercaseS:"s",lowercaseT:"t",lowercaseU:"u",lowercaseV:"v",lowercaseW:"w",lowercaseX:"x",lowercaseY:"y",lowercaseZ:"z",leftCurlyBrace:"{",verticalBar:"|",rightCurlyBrace:"}",tilde:"~",replacementCharacter:"\uFFFD"};function JU($,U,g,G){let J=$.length,I=0,q;if(U<0)U=-U>J?0:J+U;else U=U>J?J:U;if(g=g>0?g:0,G.length<X$.v8MaxSafeChunkSize)q=Array.from(G),q.unshift(U,g),$.splice(...q);else{if(g)$.splice(U,g);while(I<G.length)q=G.slice(I,I+X$.v8MaxSafeChunkSize),q.unshift(U,0),$.splice(...q),I+=X$.v8MaxSafeChunkSize,U+=X$.v8MaxSafeChunkSize}}function PU($,U){if($.length>0)return JU($,$.length,0,U),$;return U}var Oz={}.hasOwnProperty;function Yz($){let U={},g=-1;while(++g<$.length)PS(U,$[g]);return U}function PS($,U){let g;for(g in U){let J=(Oz.call($,g)?$[g]:void 0)||($[g]={}),I=U[g],q;if(I)for(q in I){if(!Oz.call(J,q))J[q]=[];let D=I[q];BS(J[q],Array.isArray(D)?D:D?[D]:[])}}}function BS($,U){let g=-1,G=[];while(++g<U.length)(U[g].add==="after"?$:G).push(U[g]);JU($,0,0,G)}function ZN($,U){let g=Number.parseInt($,U);if(g<R.ht||g===R.vt||g>R.cr&&g<R.space||g>R.tilde&&g<160||g>55295&&g<57344||g>64975&&g<65008||(g&65535)===65535||(g&65535)===65534||g>1114111)return nU.replacementCharacter;return String.fromCodePoint(g)}function u0($){return $.replace(/[\t\n\r ]+/g,nU.space).replace(/^ | $/g,"").toLowerCase().toUpperCase()}var pU=XJ(/[A-Za-z]/),BU=XJ(/[\dA-Za-z]/),Wz=XJ(/[#-'*+\--9=?A-Z^-~]/);function uI($){return $!==null&&($<R.space||$===R.del)}var FI=XJ(/\d/),Zz=XJ(/[\dA-Fa-f]/),wz=XJ(/[!-/:-@[-`{-~]/);function W$($){return $!==null&&$<R.horizontalTab}function n$($){return $!==null&&($<R.nul||$===R.space)}function S$($){return $===R.horizontalTab||$===R.virtualSpace||$===R.space}var Vz=XJ(/\p{P}|\p{S}/u),Rz=XJ(/\s/);function XJ($){return U;function U(g){return g!==null&&g>-1&&$.test(String.fromCharCode(g))}}function E$($,U,g,G){let J=G?G-1:Number.POSITIVE_INFINITY,I=0;return q;function q(N){if(S$(N))return $.enter(g),D(N);return U(N)}function D(N){if(S$(N)&&I++<J)return $.consume(N),D;return $.exit(g),U(N)}}var zz={tokenize:CS};function CS($){let U=$.attempt(this.parser.constructs.contentInitial,G,J),g;return U;function G(D){if(_(D===R.eof||W$(D),"expected eol or eof"),D===R.eof){$.consume(D);return}return $.enter(V.lineEnding),$.consume(D),$.exit(V.lineEnding),E$($,U,V.linePrefix)}function J(D){return _(D!==R.eof&&!W$(D),"expected anything other than a line ending or EOF"),$.enter(V.paragraph),I(D)}function I(D){let N=$.enter(V.chunkText,{contentType:X$.contentTypeText,previous:g});if(g)g.next=N;return g=N,q(D)}function q(D){if(D===R.eof){$.exit(V.chunkText),$.exit(V.paragraph),$.consume(D);return}if(W$(D))return $.consume(D),$.exit(V.chunkText),I;return $.consume(D),q}}var jz={tokenize:_S},Mz={tokenize:bS};function _S($){let U=this,g=[],G=0,J,I,q;return D;function D(F){if(G<g.length){let k=g[G];return U.containerState=k[1],_(k[0].continuation,"expected `continuation` to be defined on container construct"),$.attempt(k[0].continuation,N,Q)(F)}return Q(F)}function N(F){if(_(U.containerState,"expected `containerState` to be defined after continuation"),G++,U.containerState._closeFlow){if(U.containerState._closeFlow=void 0,J)L();let k=U.events.length,p=k,b;while(p--)if(U.events[p][0]==="exit"&&U.events[p][1].type===V.chunkFlow){b=U.events[p][1].end;break}_(b,"could not find previous flow chunk"),A(G);let o=k;while(o<U.events.length)U.events[o][1].end={...b},o++;return JU(U.events,p+1,0,U.events.slice(k)),U.events.length=o,Q(F)}return D(F)}function Q(F){if(G===g.length){if(!J)return Z(F);if(J.currentConstruct&&J.currentConstruct.concrete)return j(F);U.interrupt=Boolean(J.currentConstruct&&!J._gfmTableDynamicInterruptHack)}return U.containerState={},$.check(Mz,X,Y)(F)}function X(F){if(J)L();return A(G),Z(F)}function Y(F){return U.parser.lazy[U.now().line]=G!==g.length,q=U.now().offset,j(F)}function Z(F){return U.containerState={},$.attempt(Mz,W,j)(F)}function W(F){return _(U.currentConstruct,"expected `currentConstruct` to be defined on tokenizer"),_(U.containerState,"expected `containerState` to be defined on tokenizer"),G++,g.push([U.currentConstruct,U.containerState]),Z(F)}function j(F){if(F===R.eof){if(J)L();A(0),$.consume(F);return}return J=J||U.parser.flow(U.now()),$.enter(V.chunkFlow,{_tokenizer:J,contentType:X$.contentTypeFlow,previous:I}),v(F)}function v(F){if(F===R.eof){H($.exit(V.chunkFlow),!0),A(0),$.consume(F);return}if(W$(F))return $.consume(F),H($.exit(V.chunkFlow)),G=0,U.interrupt=void 0,D;return $.consume(F),v}function H(F,k){_(J,"expected `childFlow` to be defined when continuing");let p=U.sliceStream(F);if(k)p.push(null);if(F.previous=I,I)I.next=F;if(I=F,J.defineSkip(F.start),J.write(p),U.parser.lazy[F.start.line]){let b=J.events.length;while(b--)if(J.events[b][1].start.offset<q&&(!J.events[b][1].end||J.events[b][1].end.offset>q))return;let o=U.events.length,i=o,f,U$;while(i--)if(U.events[i][0]==="exit"&&U.events[i][1].type===V.chunkFlow){if(f){U$=U.events[i][1].end;break}f=!0}_(U$,"could not find previous flow chunk"),A(G),b=o;while(b<U.events.length)U.events[b][1].end={...U$},b++;JU(U.events,i+1,0,U.events.slice(o)),U.events.length=b}}function A(F){let k=g.length;while(k-- >F){let p=g[k];U.containerState=p[1],_(p[0].exit,"expected `exit` to be defined on container construct"),p[0].exit.call(U,$)}g.length=F}function L(){_(U.containerState,"expected `containerState` to be defined when closing flow"),_(J,"expected `childFlow` to be defined when closing it"),J.write([R.eof]),I=void 0,J=void 0,U.containerState._closeFlow=void 0}}function bS($,U,g){return _(this.parser.constructs.disable.null,"expected `disable.null` to be populated"),E$($,$.attempt(this.parser.constructs.document,U,g),V.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:X$.tabSize)}function DG($){if($===R.eof||n$($)||Rz($))return X$.characterGroupWhitespace;if(Vz($))return X$.characterGroupPunctuation}function NG($,U,g){let G=[],J=-1;while(++J<$.length){let I=$[J].resolveAll;if(I&&!G.includes(I))U=I(U,g),G.push(I)}return U}var rI={name:"attention",resolveAll:uS,tokenize:FS};function uS($,U){let g=-1,G,J,I,q,D,N,Q,X;while(++g<$.length)if($[g][0]==="enter"&&$[g][1].type==="attentionSequence"&&$[g][1]._close){G=g;while(G--)if($[G][0]==="exit"&&$[G][1].type==="attentionSequence"&&$[G][1]._open&&U.sliceSerialize($[G][1]).charCodeAt(0)===U.sliceSerialize($[g][1]).charCodeAt(0)){if(($[G][1]._close||$[g][1]._open)&&($[g][1].end.offset-$[g][1].start.offset)%3&&!(($[G][1].end.offset-$[G][1].start.offset+$[g][1].end.offset-$[g][1].start.offset)%3))continue;N=$[G][1].end.offset-$[G][1].start.offset>1&&$[g][1].end.offset-$[g][1].start.offset>1?2:1;let Y={...$[G][1].end},Z={...$[g][1].start};if(vz(Y,-N),vz(Z,N),q={type:N>1?V.strongSequence:V.emphasisSequence,start:Y,end:{...$[G][1].end}},D={type:N>1?V.strongSequence:V.emphasisSequence,start:{...$[g][1].start},end:Z},I={type:N>1?V.strongText:V.emphasisText,start:{...$[G][1].end},end:{...$[g][1].start}},J={type:N>1?V.strong:V.emphasis,start:{...q.start},end:{...D.end}},$[G][1].end={...q.start},$[g][1].start={...D.end},Q=[],$[G][1].end.offset-$[G][1].start.offset)Q=PU(Q,[["enter",$[G][1],U],["exit",$[G][1],U]]);if(Q=PU(Q,[["enter",J,U],["enter",q,U],["exit",q,U],["enter",I,U]]),_(U.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),Q=PU(Q,NG(U.parser.constructs.insideSpan.null,$.slice(G+1,g),U)),Q=PU(Q,[["exit",I,U],["enter",D,U],["exit",D,U],["exit",J,U]]),$[g][1].end.offset-$[g][1].start.offset)X=2,Q=PU(Q,[["enter",$[g][1],U],["exit",$[g][1],U]]);else X=0;JU($,G-1,g-G+3,Q),g=G+Q.length-X-2;break}}g=-1;while(++g<$.length)if($[g][1].type==="attentionSequence")$[g][1].type="data";return $}function FS($,U){let g=this.parser.constructs.attentionMarkers.null,G=this.previous,J=DG(G),I;return q;function q(N){return _(N===R.asterisk||N===R.underscore,"expected asterisk or underscore"),I=N,$.enter("attentionSequence"),D(N)}function D(N){if(N===I)return $.consume(N),D;let Q=$.exit("attentionSequence"),X=DG(N);_(g,"expected `attentionMarkers` to be populated");let Y=!X||X===X$.characterGroupPunctuation&&J||g.includes(N),Z=!J||J===X$.characterGroupPunctuation&&X||g.includes(G);return Q._open=Boolean(I===R.asterisk?Y:Y&&(J||!Z)),Q._close=Boolean(I===R.asterisk?Z:Z&&(X||!Y)),U(N)}}function vz($,U){$.column+=U,$.offset+=U,$._bufferIndex+=U}var P9={name:"autolink",tokenize:rS};function rS($,U,g){let G=0;return J;function J(W){return _(W===R.lessThan,"expected `<`"),$.enter(V.autolink),$.enter(V.autolinkMarker),$.consume(W),$.exit(V.autolinkMarker),$.enter(V.autolinkProtocol),I}function I(W){if(pU(W))return $.consume(W),q;if(W===R.atSign)return g(W);return Q(W)}function q(W){if(W===R.plusSign||W===R.dash||W===R.dot||BU(W))return G=1,D(W);return Q(W)}function D(W){if(W===R.colon)return $.consume(W),G=0,N;if((W===R.plusSign||W===R.dash||W===R.dot||BU(W))&&G++<X$.autolinkSchemeSizeMax)return $.consume(W),D;return G=0,Q(W)}function N(W){if(W===R.greaterThan)return $.exit(V.autolinkProtocol),$.enter(V.autolinkMarker),$.consume(W),$.exit(V.autolinkMarker),$.exit(V.autolink),U;if(W===R.eof||W===R.space||W===R.lessThan||uI(W))return g(W);return $.consume(W),N}function Q(W){if(W===R.atSign)return $.consume(W),X;if(Wz(W))return $.consume(W),Q;return g(W)}function X(W){return BU(W)?Y(W):g(W)}function Y(W){if(W===R.dot)return $.consume(W),G=0,X;if(W===R.greaterThan)return $.exit(V.autolinkProtocol).type=V.autolinkEmail,$.enter(V.autolinkMarker),$.consume(W),$.exit(V.autolinkMarker),$.exit(V.autolink),U;return Z(W)}function Z(W){if((W===R.dash||BU(W))&&G++<X$.autolinkDomainSizeMax){let j=W===R.dash?Z:Y;return $.consume(W),j}return g(W)}}var OJ={partial:!0,tokenize:kS};function kS($,U,g){return G;function G(I){return S$(I)?E$($,J,V.linePrefix)(I):J(I)}function J(I){return I===R.eof||W$(I)?U(I):g(I)}}var wN={continuation:{tokenize:xS},exit:yS,name:"blockQuote",tokenize:mS};function mS($,U,g){let G=this;return J;function J(q){if(q===R.greaterThan){let D=G.containerState;if(_(D,"expected `containerState` to be defined in container"),!D.open)$.enter(V.blockQuote,{_container:!0}),D.open=!0;return $.enter(V.blockQuotePrefix),$.enter(V.blockQuoteMarker),$.consume(q),$.exit(V.blockQuoteMarker),I}return g(q)}function I(q){if(S$(q))return $.enter(V.blockQuotePrefixWhitespace),$.consume(q),$.exit(V.blockQuotePrefixWhitespace),$.exit(V.blockQuotePrefix),U;return $.exit(V.blockQuotePrefix),U(q)}}function xS($,U,g){let G=this;return J;function J(q){if(S$(q))return _(G.parser.constructs.disable.null,"expected `disable.null` to be populated"),E$($,I,V.linePrefix,G.parser.constructs.disable.null.includes("codeIndented")?void 0:X$.tabSize)(q);return I(q)}function I(q){return $.attempt(wN,U,g)(q)}}function yS($){$.exit(V.blockQuote)}var VN={name:"characterEscape",tokenize:fS};function fS($,U,g){return G;function G(I){return _(I===R.backslash,"expected `\\`"),$.enter(V.characterEscape),$.enter(V.escapeMarker),$.consume(I),$.exit(V.escapeMarker),J}function J(I){if(wz(I))return $.enter(V.characterEscapeValue),$.consume(I),$.exit(V.characterEscapeValue),$.exit(V.characterEscape),U;return g(I)}}var RN={name:"characterReference",tokenize:hS};function hS($,U,g){let G=this,J=0,I,q;return D;function D(Y){return _(Y===R.ampersand,"expected `&`"),$.enter(V.characterReference),$.enter(V.characterReferenceMarker),$.consume(Y),$.exit(V.characterReferenceMarker),N}function N(Y){if(Y===R.numberSign)return $.enter(V.characterReferenceMarkerNumeric),$.consume(Y),$.exit(V.characterReferenceMarkerNumeric),Q;return $.enter(V.characterReferenceValue),I=X$.characterReferenceNamedSizeMax,q=BU,X(Y)}function Q(Y){if(Y===R.uppercaseX||Y===R.lowercaseX)return $.enter(V.characterReferenceMarkerHexadecimal),$.consume(Y),$.exit(V.characterReferenceMarkerHexadecimal),$.enter(V.characterReferenceValue),I=X$.characterReferenceHexadecimalSizeMax,q=Zz,X;return $.enter(V.characterReferenceValue),I=X$.characterReferenceDecimalSizeMax,q=FI,X(Y)}function X(Y){if(Y===R.semicolon&&J){let Z=$.exit(V.characterReferenceValue);if(q===BU&&!qG(G.sliceSerialize(Z)))return g(Y);return $.enter(V.characterReferenceMarker),$.consume(Y),$.exit(V.characterReferenceMarker),$.exit(V.characterReference),U}if(q(Y)&&J++<I)return $.consume(Y),X;return g(Y)}}var Kz={partial:!0,tokenize:lS},zN={concrete:!0,name:"codeFenced",tokenize:iS};function iS($,U,g){let G=this,J={partial:!0,tokenize:p},I=0,q=0,D;return N;function N(b){return Q(b)}function Q(b){_(b===R.graveAccent||b===R.tilde,"expected `` ` `` or `~`");let o=G.events[G.events.length-1];return I=o&&o[1].type===V.linePrefix?o[2].sliceSerialize(o[1],!0).length:0,D=b,$.enter(V.codeFenced),$.enter(V.codeFencedFence),$.enter(V.codeFencedFenceSequence),X(b)}function X(b){if(b===D)return q++,$.consume(b),X;if(q<X$.codeFencedSequenceSizeMin)return g(b);return $.exit(V.codeFencedFenceSequence),S$(b)?E$($,Y,V.whitespace)(b):Y(b)}function Y(b){if(b===R.eof||W$(b))return $.exit(V.codeFencedFence),G.interrupt?U(b):$.check(Kz,v,k)(b);return $.enter(V.codeFencedFenceInfo),$.enter(V.chunkString,{contentType:X$.contentTypeString}),Z(b)}function Z(b){if(b===R.eof||W$(b))return $.exit(V.chunkString),$.exit(V.codeFencedFenceInfo),Y(b);if(S$(b))return $.exit(V.chunkString),$.exit(V.codeFencedFenceInfo),E$($,W,V.whitespace)(b);if(b===R.graveAccent&&b===D)return g(b);return $.consume(b),Z}function W(b){if(b===R.eof||W$(b))return Y(b);return $.enter(V.codeFencedFenceMeta),$.enter(V.chunkString,{contentType:X$.contentTypeString}),j(b)}function j(b){if(b===R.eof||W$(b))return $.exit(V.chunkString),$.exit(V.codeFencedFenceMeta),Y(b);if(b===R.graveAccent&&b===D)return g(b);return $.consume(b),j}function v(b){return _(W$(b),"expected eol"),$.attempt(J,k,H)(b)}function H(b){return _(W$(b),"expected eol"),$.enter(V.lineEnding),$.consume(b),$.exit(V.lineEnding),A}function A(b){return I>0&&S$(b)?E$($,L,V.linePrefix,I+1)(b):L(b)}function L(b){if(b===R.eof||W$(b))return $.check(Kz,v,k)(b);return $.enter(V.codeFlowValue),F(b)}function F(b){if(b===R.eof||W$(b))return $.exit(V.codeFlowValue),L(b);return $.consume(b),F}function k(b){return $.exit(V.codeFenced),U(b)}function p(b,o,i){let f=0;return U$;function U$(E){return _(W$(E),"expected eol"),b.enter(V.lineEnding),b.consume(E),b.exit(V.lineEnding),m}function m(E){return _(G.parser.constructs.disable.null,"expected `disable.null` to be populated"),b.enter(V.codeFencedFence),S$(E)?E$(b,B,V.linePrefix,G.parser.constructs.disable.null.includes("codeIndented")?void 0:X$.tabSize)(E):B(E)}function B(E){if(E===D)return b.enter(V.codeFencedFenceSequence),P(E);return i(E)}function P(E){if(E===D)return f++,b.consume(E),P;if(f>=q)return b.exit(V.codeFencedFenceSequence),S$(E)?E$(b,K,V.whitespace)(E):K(E);return i(E)}function K(E){if(E===R.eof||W$(E))return b.exit(V.codeFencedFence),o(E);return i(E)}}}function lS($,U,g){let G=this;return J;function J(q){if(q===R.eof)return g(q);return _(W$(q),"expected eol"),$.enter(V.lineEnding),$.consume(q),$.exit(V.lineEnding),I}function I(q){return G.parser.lazy[G.now().line]?g(q):U(q)}}var kI={name:"codeIndented",tokenize:pS},nS={partial:!0,tokenize:cS};function pS($,U,g){let G=this;return J;function J(Q){return _(S$(Q)),$.enter(V.codeIndented),E$($,I,V.linePrefix,X$.tabSize+1)(Q)}function I(Q){let X=G.events[G.events.length-1];return X&&X[1].type===V.linePrefix&&X[2].sliceSerialize(X[1],!0).length>=X$.tabSize?q(Q):g(Q)}function q(Q){if(Q===R.eof)return N(Q);if(W$(Q))return $.attempt(nS,q,N)(Q);return $.enter(V.codeFlowValue),D(Q)}function D(Q){if(Q===R.eof||W$(Q))return $.exit(V.codeFlowValue),q(Q);return $.consume(Q),D}function N(Q){return $.exit(V.codeIndented),U(Q)}}function cS($,U,g){let G=this;return J;function J(q){if(G.parser.lazy[G.now().line])return g(q);if(W$(q))return $.enter(V.lineEnding),$.consume(q),$.exit(V.lineEnding),J;return E$($,I,V.linePrefix,X$.tabSize+1)(q)}function I(q){let D=G.events[G.events.length-1];return D&&D[1].type===V.linePrefix&&D[2].sliceSerialize(D[1],!0).length>=X$.tabSize?U(q):W$(q)?J(q):g(q)}}var B9={name:"codeText",previous:Hz,resolve:oS,tokenize:dS};function oS($){let U=$.length-4,g=3,G,J;if(($[g][1].type===V.lineEnding||$[g][1].type==="space")&&($[U][1].type===V.lineEnding||$[U][1].type==="space")){G=g;while(++G<U)if($[G][1].type===V.codeTextData){$[g][1].type=V.codeTextPadding,$[U][1].type=V.codeTextPadding,g+=2,U-=2;break}}G=g-1,U++;while(++G<=U)if(J===void 0){if(G!==U&&$[G][1].type!==V.lineEnding)J=G}else if(G===U||$[G][1].type===V.lineEnding){if($[J][1].type=V.codeTextData,G!==J+2)$[J][1].end=$[G-1][1].end,$.splice(J+2,G-J-2),U-=G-J-2,G=J+2;J=void 0}return $}function Hz($){return $!==R.graveAccent||this.events[this.events.length-1][1].type===V.characterEscape}function dS($,U,g){let G=this,J=0,I,q;return D;function D(Z){return _(Z===R.graveAccent,"expected `` ` ``"),_(Hz.call(G,G.previous),"expected correct previous"),$.enter(V.codeText),$.enter(V.codeTextSequence),N(Z)}function N(Z){if(Z===R.graveAccent)return $.consume(Z),J++,N;return $.exit(V.codeTextSequence),Q(Z)}function Q(Z){if(Z===R.eof)return g(Z);if(Z===R.space)return $.enter("space"),$.consume(Z),$.exit("space"),Q;if(Z===R.graveAccent)return q=$.enter(V.codeTextSequence),I=0,Y(Z);if(W$(Z))return $.enter(V.lineEnding),$.consume(Z),$.exit(V.lineEnding),Q;return $.enter(V.codeTextData),X(Z)}function X(Z){if(Z===R.eof||Z===R.space||Z===R.graveAccent||W$(Z))return $.exit(V.codeTextData),Q(Z);return $.consume(Z),X}function Y(Z){if(Z===R.graveAccent)return $.consume(Z),I++,Y;if(I===J)return $.exit(V.codeTextSequence),$.exit(V.codeText),U(Z);return q.type=V.codeTextData,X(Z)}}class C9{constructor($){this.left=$?[...$]:[],this.right=[]}get($){if($<0||$>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+$+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");if($<this.left.length)return this.left[$];return this.right[this.right.length-$+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice($,U){let g=U===null||U===void 0?Number.POSITIVE_INFINITY:U;if(g<this.left.length)return this.left.slice($,g);if($>this.left.length)return this.right.slice(this.right.length-g+this.left.length,this.right.length-$+this.left.length).reverse();return this.left.slice($).concat(this.right.slice(this.right.length-g+this.left.length).reverse())}splice($,U,g){let G=U||0;this.setCursor(Math.trunc($));let J=this.right.splice(this.right.length-G,Number.POSITIVE_INFINITY);if(g)mI(this.left,g);return J.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push($){this.setCursor(Number.POSITIVE_INFINITY),this.left.push($)}pushMany($){this.setCursor(Number.POSITIVE_INFINITY),mI(this.left,$)}unshift($){this.setCursor(0),this.right.push($)}unshiftMany($){this.setCursor(0),mI(this.right,$.reverse())}setCursor($){if($===this.left.length||$>this.left.length&&this.right.length===0||$<0&&this.left.length===0)return;if($<this.left.length){let U=this.left.splice($,Number.POSITIVE_INFINITY);mI(this.right,U.reverse())}else{let U=this.right.splice(this.left.length+this.right.length-$,Number.POSITIVE_INFINITY);mI(this.left,U.reverse())}}}function mI($,U){let g=0;if(U.length<X$.v8MaxSafeChunkSize)$.push(...U);else while(g<U.length)$.push(...U.slice(g,g+X$.v8MaxSafeChunkSize)),g+=X$.v8MaxSafeChunkSize}function MN($){let U={},g=-1,G,J,I,q,D,N,Q,X=new C9($);while(++g<X.length){while(g in U)g=U[g];if(G=X.get(g),g&&G[1].type===V.chunkFlow&&X.get(g-1)[1].type===V.listItemPrefix){if(_(G[1]._tokenizer,"expected `_tokenizer` on subtokens"),N=G[1]._tokenizer.events,I=0,I<N.length&&N[I][1].type===V.lineEndingBlank)I+=2;if(I<N.length&&N[I][1].type===V.content)while(++I<N.length){if(N[I][1].type===V.content)break;if(N[I][1].type===V.chunkText)N[I][1]._isInFirstContentOfListItem=!0,I++}}if(G[0]==="enter"){if(G[1].contentType)Object.assign(U,aS(X,g)),g=U[g],Q=!0}else if(G[1]._container){I=g,J=void 0;while(I--)if(q=X.get(I),q[1].type===V.lineEnding||q[1].type===V.lineEndingBlank){if(q[0]==="enter"){if(J)X.get(J)[1].type=V.lineEndingBlank;q[1].type=V.lineEnding,J=I}}else if(q[1].type===V.linePrefix||q[1].type===V.listItemIndent);else break;if(J)G[1].end={...X.get(J)[1].start},D=X.slice(J,g),D.unshift(G),X.splice(J,g-J+1,D)}}return JU($,0,Number.POSITIVE_INFINITY,X.slice(0)),!Q}function aS($,U){let g=$.get(U)[1],G=$.get(U)[2],J=U-1,I=[];_(g.contentType,"expected `contentType` on subtokens");let q=g._tokenizer;if(!q){if(q=G.parser[g.contentType](g.start),g._contentTypeTextTrailing)q._contentTypeTextTrailing=!0}let D=q.events,N=[],Q={},X,Y,Z=-1,W=g,j=0,v=0,H=[v];while(W){while($.get(++J)[1]!==W);if(_(!Y||W.previous===Y,"expected previous to match"),_(!Y||Y.next===W,"expected next to match"),I.push(J),!W._tokenizer){if(X=G.sliceStream(W),!W.next)X.push(R.eof);if(Y)q.defineSkip(W.start);if(W._isInFirstContentOfListItem)q._gfmTasklistFirstContentOfListItem=!0;if(q.write(X),W._isInFirstContentOfListItem)q._gfmTasklistFirstContentOfListItem=void 0}Y=W,W=W.next}W=g;while(++Z<D.length)if(D[Z][0]==="exit"&&D[Z-1][0]==="enter"&&D[Z][1].type===D[Z-1][1].type&&D[Z][1].start.line!==D[Z][1].end.line)_(W,"expected a current token"),v=Z+1,H.push(v),W._tokenizer=void 0,W.previous=void 0,W=W.next;if(q.events=[],W)W._tokenizer=void 0,W.previous=void 0,_(!W.next,"expected no next token");else H.pop();Z=H.length;while(Z--){let A=D.slice(H[Z],H[Z+1]),L=I.pop();_(L!==void 0,"expected a start position when splicing"),N.push([L,L+A.length-1]),$.splice(L,2,A)}N.reverse(),Z=-1;while(++Z<N.length)Q[j+N[Z][0]]=j+N[Z][1],j+=N[Z][1]-N[Z][0]-1;return Q}var _9={resolve:sS,tokenize:eS},tS={partial:!0,tokenize:$E};function sS($){return MN($),$}function eS($,U){let g;return G;function G(D){return _(D!==R.eof&&!W$(D),"expected no eof or eol"),$.enter(V.content),g=$.enter(V.chunkContent,{contentType:X$.contentTypeContent}),J(D)}function J(D){if(D===R.eof)return I(D);if(W$(D))return $.check(tS,q,I)(D);return $.consume(D),J}function I(D){return $.exit(V.chunkContent),$.exit(V.content),U(D)}function q(D){return _(W$(D),"expected eol"),$.consume(D),$.exit(V.chunkContent),_(g,"expected previous token"),g.next=$.enter(V.chunkContent,{contentType:X$.contentTypeContent,previous:g}),g=g.next,J}}function $E($,U,g){let G=this;return J;function J(q){return _(W$(q),"expected a line ending"),$.exit(V.chunkContent),$.enter(V.lineEnding),$.consume(q),$.exit(V.lineEnding),E$($,I,V.linePrefix)}function I(q){if(q===R.eof||W$(q))return g(q);_(G.parser.constructs.disable.null,"expected `disable.null` to be populated");let D=G.events[G.events.length-1];if(!G.parser.constructs.disable.null.includes("codeIndented")&&D&&D[1].type===V.linePrefix&&D[2].sliceSerialize(D[1],!0).length>=X$.tabSize)return U(q);return $.interrupt(G.parser.constructs.flow,g,U)(q)}}function jN($,U,g,G,J,I,q,D,N){let Q=N||Number.POSITIVE_INFINITY,X=0;return Y;function Y(A){if(A===R.lessThan)return $.enter(G),$.enter(J),$.enter(I),$.consume(A),$.exit(I),Z;if(A===R.eof||A===R.space||A===R.rightParenthesis||uI(A))return g(A);return $.enter(G),$.enter(q),$.enter(D),$.enter(V.chunkString,{contentType:X$.contentTypeString}),v(A)}function Z(A){if(A===R.greaterThan)return $.enter(I),$.consume(A),$.exit(I),$.exit(J),$.exit(G),U;return $.enter(D),$.enter(V.chunkString,{contentType:X$.contentTypeString}),W(A)}function W(A){if(A===R.greaterThan)return $.exit(V.chunkString),$.exit(D),Z(A);if(A===R.eof||A===R.lessThan||W$(A))return g(A);return $.consume(A),A===R.backslash?j:W}function j(A){if(A===R.lessThan||A===R.greaterThan||A===R.backslash)return $.consume(A),W;return W(A)}function v(A){if(!X&&(A===R.eof||A===R.rightParenthesis||n$(A)))return $.exit(V.chunkString),$.exit(D),$.exit(q),$.exit(G),U(A);if(X<Q&&A===R.leftParenthesis)return $.consume(A),X++,v;if(A===R.rightParenthesis)return $.consume(A),X--,v;if(A===R.eof||A===R.space||A===R.leftParenthesis||uI(A))return g(A);return $.consume(A),A===R.backslash?H:v}function H(A){if(A===R.leftParenthesis||A===R.rightParenthesis||A===R.backslash)return $.consume(A),v;return v(A)}}function vN($,U,g,G,J,I){let q=this,D=0,N;return Q;function Q(W){return _(W===R.leftSquareBracket,"expected `[`"),$.enter(G),$.enter(J),$.consume(W),$.exit(J),$.enter(I),X}function X(W){if(D>X$.linkReferenceSizeMax||W===R.eof||W===R.leftSquareBracket||W===R.rightSquareBracket&&!N||W===R.caret&&!D&&"_hiddenFootnoteSupport"in q.parser.constructs)return g(W);if(W===R.rightSquareBracket)return $.exit(I),$.enter(J),$.consume(W),$.exit(J),$.exit(G),U;if(W$(W))return $.enter(V.lineEnding),$.consume(W),$.exit(V.lineEnding),X;return $.enter(V.chunkString,{contentType:X$.contentTypeString}),Y(W)}function Y(W){if(W===R.eof||W===R.leftSquareBracket||W===R.rightSquareBracket||W$(W)||D++>X$.linkReferenceSizeMax)return $.exit(V.chunkString),X(W);if($.consume(W),!N)N=!S$(W);return W===R.backslash?Z:Y}function Z(W){if(W===R.leftSquareBracket||W===R.backslash||W===R.rightSquareBracket)return $.consume(W),D++,Y;return Y(W)}}function KN($,U,g,G,J,I){let q;return D;function D(Z){if(Z===R.quotationMark||Z===R.apostrophe||Z===R.leftParenthesis)return $.enter(G),$.enter(J),$.consume(Z),$.exit(J),q=Z===R.leftParenthesis?R.rightParenthesis:Z,N;return g(Z)}function N(Z){if(Z===q)return $.enter(J),$.consume(Z),$.exit(J),$.exit(G),U;return $.enter(I),Q(Z)}function Q(Z){if(Z===q)return $.exit(I),N(q);if(Z===R.eof)return g(Z);if(W$(Z))return $.enter(V.lineEnding),$.consume(Z),$.exit(V.lineEnding),E$($,Q,V.linePrefix);return $.enter(V.chunkString,{contentType:X$.contentTypeString}),X(Z)}function X(Z){if(Z===q||Z===R.eof||W$(Z))return $.exit(V.chunkString),Q(Z);return $.consume(Z),Z===R.backslash?Y:X}function Y(Z){if(Z===q||Z===R.backslash)return $.consume(Z),X;return X(Z)}}function oJ($,U){let g;return G;function G(J){if(W$(J))return $.enter(V.lineEnding),$.consume(J),$.exit(V.lineEnding),g=!0,G;if(S$(J))return E$($,G,g?V.linePrefix:V.lineSuffix)(J);return U(J)}}var b9={name:"definition",tokenize:JE},UE={partial:!0,tokenize:gE};function JE($,U,g){let G=this,J;return I;function I(W){return $.enter(V.definition),q(W)}function q(W){return _(W===R.leftSquareBracket,"expected `[`"),vN.call(G,$,D,g,V.definitionLabel,V.definitionLabelMarker,V.definitionLabelString)(W)}function D(W){if(J=u0(G.sliceSerialize(G.events[G.events.length-1][1]).slice(1,-1)),W===R.colon)return $.enter(V.definitionMarker),$.consume(W),$.exit(V.definitionMarker),N;return g(W)}function N(W){return n$(W)?oJ($,Q)(W):Q(W)}function Q(W){return jN($,X,g,V.definitionDestination,V.definitionDestinationLiteral,V.definitionDestinationLiteralMarker,V.definitionDestinationRaw,V.definitionDestinationString)(W)}function X(W){return $.attempt(UE,Y,Y)(W)}function Y(W){return S$(W)?E$($,Z,V.whitespace)(W):Z(W)}function Z(W){if(W===R.eof||W$(W))return $.exit(V.definition),G.parser.defined.push(J),U(W);return g(W)}}function gE($,U,g){return G;function G(D){return n$(D)?oJ($,J)(D):g(D)}function J(D){return KN($,I,g,V.definitionTitle,V.definitionTitleMarker,V.definitionTitleString)(D)}function I(D){return S$(D)?E$($,q,V.whitespace)(D):q(D)}function q(D){return D===R.eof||W$(D)?U(D):g(D)}}var u9={name:"hardBreakEscape",tokenize:GE};function GE($,U,g){return G;function G(I){return _(I===R.backslash,"expected `\\`"),$.enter(V.hardBreakEscape),$.consume(I),J}function J(I){if(W$(I))return $.exit(V.hardBreakEscape),U(I);return g(I)}}var F9={name:"headingAtx",resolve:IE,tokenize:qE};function IE($,U){let g=$.length-2,G=3,J,I;if($[G][1].type===V.whitespace)G+=2;if(g-2>G&&$[g][1].type===V.whitespace)g-=2;if($[g][1].type===V.atxHeadingSequence&&(G===g-1||g-4>G&&$[g-2][1].type===V.whitespace))g-=G+1===g?2:4;if(g>G)J={type:V.atxHeadingText,start:$[G][1].start,end:$[g][1].end},I={type:V.chunkText,start:$[G][1].start,end:$[g][1].end,contentType:X$.contentTypeText},JU($,G,g-G+1,[["enter",J,U],["enter",I,U],["exit",I,U],["exit",J,U]]);return $}function qE($,U,g){let G=0;return J;function J(X){return $.enter(V.atxHeading),I(X)}function I(X){return _(X===R.numberSign,"expected `#`"),$.enter(V.atxHeadingSequence),q(X)}function q(X){if(X===R.numberSign&&G++<X$.atxHeadingOpeningFenceSizeMax)return $.consume(X),q;if(X===R.eof||n$(X))return $.exit(V.atxHeadingSequence),D(X);return g(X)}function D(X){if(X===R.numberSign)return $.enter(V.atxHeadingSequence),N(X);if(X===R.eof||W$(X))return $.exit(V.atxHeading),U(X);if(S$(X))return E$($,D,V.whitespace)(X);return $.enter(V.atxHeadingText),Q(X)}function N(X){if(X===R.numberSign)return $.consume(X),N;return $.exit(V.atxHeadingSequence),D(X)}function Q(X){if(X===R.eof||X===R.numberSign||n$(X))return $.exit(V.atxHeadingText),D(X);return $.consume(X),Q}}var Tz=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],r9=["pre","script","style","textarea"];var k9={concrete:!0,name:"htmlFlow",resolveTo:QE,tokenize:XE},DE={partial:!0,tokenize:YE},NE={partial:!0,tokenize:OE};function QE($){let U=$.length;while(U--)if($[U][0]==="enter"&&$[U][1].type===V.htmlFlow)break;if(U>1&&$[U-2][1].type===V.linePrefix)$[U][1].start=$[U-2][1].start,$[U+1][1].start=$[U-2][1].start,$.splice(U-2,2);return $}function XE($,U,g){let G=this,J,I,q,D,N;return Q;function Q(T){return X(T)}function X(T){return _(T===R.lessThan,"expected `<`"),$.enter(V.htmlFlow),$.enter(V.htmlFlowData),$.consume(T),Y}function Y(T){if(T===R.exclamationMark)return $.consume(T),Z;if(T===R.slash)return $.consume(T),I=!0,v;if(T===R.questionMark)return $.consume(T),J=X$.htmlInstruction,G.interrupt?U:z;if(pU(T))return _(T!==null),$.consume(T),q=String.fromCharCode(T),H;return g(T)}function Z(T){if(T===R.dash)return $.consume(T),J=X$.htmlComment,W;if(T===R.leftSquareBracket)return $.consume(T),J=X$.htmlCdata,D=0,j;if(pU(T))return $.consume(T),J=X$.htmlDeclaration,G.interrupt?U:z;return g(T)}function W(T){if(T===R.dash)return $.consume(T),G.interrupt?U:z;return g(T)}function j(T){let Y$=X$.cdataOpeningString;if(T===Y$.charCodeAt(D++)){if($.consume(T),D===Y$.length)return G.interrupt?U:B;return j}return g(T)}function v(T){if(pU(T))return _(T!==null),$.consume(T),q=String.fromCharCode(T),H;return g(T)}function H(T){if(T===R.eof||T===R.slash||T===R.greaterThan||n$(T)){let Y$=T===R.slash,V$=q.toLowerCase();if(!Y$&&!I&&r9.includes(V$))return J=X$.htmlRaw,G.interrupt?U(T):B(T);if(Tz.includes(q.toLowerCase())){if(J=X$.htmlBasic,Y$)return $.consume(T),A;return G.interrupt?U(T):B(T)}return J=X$.htmlComplete,G.interrupt&&!G.parser.lazy[G.now().line]?g(T):I?L(T):F(T)}if(T===R.dash||BU(T))return $.consume(T),q+=String.fromCharCode(T),H;return g(T)}function A(T){if(T===R.greaterThan)return $.consume(T),G.interrupt?U:B;return g(T)}function L(T){if(S$(T))return $.consume(T),L;return U$(T)}function F(T){if(T===R.slash)return $.consume(T),U$;if(T===R.colon||T===R.underscore||pU(T))return $.consume(T),k;if(S$(T))return $.consume(T),F;return U$(T)}function k(T){if(T===R.dash||T===R.dot||T===R.colon||T===R.underscore||BU(T))return $.consume(T),k;return p(T)}function p(T){if(T===R.equalsTo)return $.consume(T),b;if(S$(T))return $.consume(T),p;return F(T)}function b(T){if(T===R.eof||T===R.lessThan||T===R.equalsTo||T===R.greaterThan||T===R.graveAccent)return g(T);if(T===R.quotationMark||T===R.apostrophe)return $.consume(T),N=T,o;if(S$(T))return $.consume(T),b;return i(T)}function o(T){if(T===N)return $.consume(T),N=null,f;if(T===R.eof||W$(T))return g(T);return $.consume(T),o}function i(T){if(T===R.eof||T===R.quotationMark||T===R.apostrophe||T===R.slash||T===R.lessThan||T===R.equalsTo||T===R.greaterThan||T===R.graveAccent||n$(T))return p(T);return $.consume(T),i}function f(T){if(T===R.slash||T===R.greaterThan||S$(T))return F(T);return g(T)}function U$(T){if(T===R.greaterThan)return $.consume(T),m;return g(T)}function m(T){if(T===R.eof||W$(T))return B(T);if(S$(T))return $.consume(T),m;return g(T)}function B(T){if(T===R.dash&&J===X$.htmlComment)return $.consume(T),S;if(T===R.lessThan&&J===X$.htmlRaw)return $.consume(T),r;if(T===R.greaterThan&&J===X$.htmlDeclaration)return $.consume(T),d;if(T===R.questionMark&&J===X$.htmlInstruction)return $.consume(T),z;if(T===R.rightSquareBracket&&J===X$.htmlCdata)return $.consume(T),y;if(W$(T)&&(J===X$.htmlBasic||J===X$.htmlComplete))return $.exit(V.htmlFlowData),$.check(DE,g$,P)(T);if(T===R.eof||W$(T))return $.exit(V.htmlFlowData),P(T);return $.consume(T),B}function P(T){return $.check(NE,K,g$)(T)}function K(T){return _(W$(T)),$.enter(V.lineEnding),$.consume(T),$.exit(V.lineEnding),E}function E(T){if(T===R.eof||W$(T))return P(T);return $.enter(V.htmlFlowData),B(T)}function S(T){if(T===R.dash)return $.consume(T),z;return B(T)}function r(T){if(T===R.slash)return $.consume(T),q="",C;return B(T)}function C(T){if(T===R.greaterThan){let Y$=q.toLowerCase();if(r9.includes(Y$))return $.consume(T),d;return B(T)}if(pU(T)&&q.length<X$.htmlRawSizeMax)return _(T!==null),$.consume(T),q+=String.fromCharCode(T),C;return B(T)}function y(T){if(T===R.rightSquareBracket)return $.consume(T),z;return B(T)}function z(T){if(T===R.greaterThan)return $.consume(T),d;if(T===R.dash&&J===X$.htmlComment)return $.consume(T),z;return B(T)}function d(T){if(T===R.eof||W$(T))return $.exit(V.htmlFlowData),g$(T);return $.consume(T),d}function g$(T){return $.exit(V.htmlFlow),U(T)}}function OE($,U,g){let G=this;return J;function J(q){if(W$(q))return $.enter(V.lineEnding),$.consume(q),$.exit(V.lineEnding),I;return g(q)}function I(q){return G.parser.lazy[G.now().line]?g(q):U(q)}}function YE($,U,g){return G;function G(J){return _(W$(J),"expected a line ending"),$.enter(V.lineEnding),$.consume(J),$.exit(V.lineEnding),$.attempt(OJ,U,g)}}var m9={name:"htmlText",tokenize:WE};function WE($,U,g){let G=this,J,I,q;return D;function D(z){return _(z===R.lessThan,"expected `<`"),$.enter(V.htmlText),$.enter(V.htmlTextData),$.consume(z),N}function N(z){if(z===R.exclamationMark)return $.consume(z),Q;if(z===R.slash)return $.consume(z),p;if(z===R.questionMark)return $.consume(z),F;if(pU(z))return $.consume(z),i;return g(z)}function Q(z){if(z===R.dash)return $.consume(z),X;if(z===R.leftSquareBracket)return $.consume(z),I=0,j;if(pU(z))return $.consume(z),L;return g(z)}function X(z){if(z===R.dash)return $.consume(z),W;return g(z)}function Y(z){if(z===R.eof)return g(z);if(z===R.dash)return $.consume(z),Z;if(W$(z))return q=Y,r(z);return $.consume(z),Y}function Z(z){if(z===R.dash)return $.consume(z),W;return Y(z)}function W(z){return z===R.greaterThan?S(z):z===R.dash?Z(z):Y(z)}function j(z){let d=X$.cdataOpeningString;if(z===d.charCodeAt(I++))return $.consume(z),I===d.length?v:j;return g(z)}function v(z){if(z===R.eof)return g(z);if(z===R.rightSquareBracket)return $.consume(z),H;if(W$(z))return q=v,r(z);return $.consume(z),v}function H(z){if(z===R.rightSquareBracket)return $.consume(z),A;return v(z)}function A(z){if(z===R.greaterThan)return S(z);if(z===R.rightSquareBracket)return $.consume(z),A;return v(z)}function L(z){if(z===R.eof||z===R.greaterThan)return S(z);if(W$(z))return q=L,r(z);return $.consume(z),L}function F(z){if(z===R.eof)return g(z);if(z===R.questionMark)return $.consume(z),k;if(W$(z))return q=F,r(z);return $.consume(z),F}function k(z){return z===R.greaterThan?S(z):F(z)}function p(z){if(pU(z))return $.consume(z),b;return g(z)}function b(z){if(z===R.dash||BU(z))return $.consume(z),b;return o(z)}function o(z){if(W$(z))return q=o,r(z);if(S$(z))return $.consume(z),o;return S(z)}function i(z){if(z===R.dash||BU(z))return $.consume(z),i;if(z===R.slash||z===R.greaterThan||n$(z))return f(z);return g(z)}function f(z){if(z===R.slash)return $.consume(z),S;if(z===R.colon||z===R.underscore||pU(z))return $.consume(z),U$;if(W$(z))return q=f,r(z);if(S$(z))return $.consume(z),f;return S(z)}function U$(z){if(z===R.dash||z===R.dot||z===R.colon||z===R.underscore||BU(z))return $.consume(z),U$;return m(z)}function m(z){if(z===R.equalsTo)return $.consume(z),B;if(W$(z))return q=m,r(z);if(S$(z))return $.consume(z),m;return f(z)}function B(z){if(z===R.eof||z===R.lessThan||z===R.equalsTo||z===R.greaterThan||z===R.graveAccent)return g(z);if(z===R.quotationMark||z===R.apostrophe)return $.consume(z),J=z,P;if(W$(z))return q=B,r(z);if(S$(z))return $.consume(z),B;return $.consume(z),K}function P(z){if(z===J)return $.consume(z),J=void 0,E;if(z===R.eof)return g(z);if(W$(z))return q=P,r(z);return $.consume(z),P}function K(z){if(z===R.eof||z===R.quotationMark||z===R.apostrophe||z===R.lessThan||z===R.equalsTo||z===R.graveAccent)return g(z);if(z===R.slash||z===R.greaterThan||n$(z))return f(z);return $.consume(z),K}function E(z){if(z===R.slash||z===R.greaterThan||n$(z))return f(z);return g(z)}function S(z){if(z===R.greaterThan)return $.consume(z),$.exit(V.htmlTextData),$.exit(V.htmlText),U;return g(z)}function r(z){return _(q,"expected return state"),_(W$(z),"expected eol"),$.exit(V.htmlTextData),$.enter(V.lineEnding),$.consume(z),$.exit(V.lineEnding),C}function C(z){return _(G.parser.constructs.disable.null,"expected `disable.null` to be populated"),S$(z)?E$($,y,V.linePrefix,G.parser.constructs.disable.null.includes("codeIndented")?void 0:X$.tabSize)(z):y(z)}function y(z){return $.enter(V.htmlTextData),q(z)}}var dJ={name:"labelEnd",resolveAll:RE,resolveTo:zE,tokenize:ME},ZE={tokenize:jE},wE={tokenize:vE},VE={tokenize:KE};function RE($){let U=-1,g=[];while(++U<$.length){let G=$[U][1];if(g.push($[U]),G.type===V.labelImage||G.type===V.labelLink||G.type===V.labelEnd){let J=G.type===V.labelImage?4:2;G.type=V.data,U+=J}}if($.length!==g.length)JU($,0,$.length,g);return $}function zE($,U){let g=$.length,G=0,J,I,q,D;while(g--)if(J=$[g][1],I){if(J.type===V.link||J.type===V.labelLink&&J._inactive)break;if($[g][0]==="enter"&&J.type===V.labelLink)J._inactive=!0}else if(q){if($[g][0]==="enter"&&(J.type===V.labelImage||J.type===V.labelLink)&&!J._balanced){if(I=g,J.type!==V.labelLink){G=2;break}}}else if(J.type===V.labelEnd)q=g;_(I!==void 0,"`open` is supposed to be found"),_(q!==void 0,"`close` is supposed to be found");let N={type:$[I][1].type===V.labelLink?V.link:V.image,start:{...$[I][1].start},end:{...$[$.length-1][1].end}},Q={type:V.label,start:{...$[I][1].start},end:{...$[q][1].end}},X={type:V.labelText,start:{...$[I+G+2][1].end},end:{...$[q-2][1].start}};return D=[["enter",N,U],["enter",Q,U]],D=PU(D,$.slice(I+1,I+G+3)),D=PU(D,[["enter",X,U]]),_(U.parser.constructs.insideSpan.null,"expected `insideSpan.null` to be populated"),D=PU(D,NG(U.parser.constructs.insideSpan.null,$.slice(I+G+4,q-3),U)),D=PU(D,[["exit",X,U],$[q-2],$[q-1],["exit",Q,U]]),D=PU(D,$.slice(q+1)),D=PU(D,[["exit",N,U]]),JU($,I,$.length,D),$}function ME($,U,g){let G=this,J=G.events.length,I,q;while(J--)if((G.events[J][1].type===V.labelImage||G.events[J][1].type===V.labelLink)&&!G.events[J][1]._balanced){I=G.events[J][1];break}return D;function D(Z){if(_(Z===R.rightSquareBracket,"expected `]`"),!I)return g(Z);if(I._inactive)return Y(Z);return q=G.parser.defined.includes(u0(G.sliceSerialize({start:I.end,end:G.now()}))),$.enter(V.labelEnd),$.enter(V.labelMarker),$.consume(Z),$.exit(V.labelMarker),$.exit(V.labelEnd),N}function N(Z){if(Z===R.leftParenthesis)return $.attempt(ZE,X,q?X:Y)(Z);if(Z===R.leftSquareBracket)return $.attempt(wE,X,q?Q:Y)(Z);return q?X(Z):Y(Z)}function Q(Z){return $.attempt(VE,X,Y)(Z)}function X(Z){return U(Z)}function Y(Z){return I._balanced=!0,g(Z)}}function jE($,U,g){return G;function G(Y){return _(Y===R.leftParenthesis,"expected left paren"),$.enter(V.resource),$.enter(V.resourceMarker),$.consume(Y),$.exit(V.resourceMarker),J}function J(Y){return n$(Y)?oJ($,I)(Y):I(Y)}function I(Y){if(Y===R.rightParenthesis)return X(Y);return jN($,q,D,V.resourceDestination,V.resourceDestinationLiteral,V.resourceDestinationLiteralMarker,V.resourceDestinationRaw,V.resourceDestinationString,X$.linkResourceDestinationBalanceMax)(Y)}function q(Y){return n$(Y)?oJ($,N)(Y):X(Y)}function D(Y){return g(Y)}function N(Y){if(Y===R.quotationMark||Y===R.apostrophe||Y===R.leftParenthesis)return KN($,Q,g,V.resourceTitle,V.resourceTitleMarker,V.resourceTitleString)(Y);return X(Y)}function Q(Y){return n$(Y)?oJ($,X)(Y):X(Y)}function X(Y){if(Y===R.rightParenthesis)return $.enter(V.resourceMarker),$.consume(Y),$.exit(V.resourceMarker),$.exit(V.resource),U;return g(Y)}}function vE($,U,g){let G=this;return J;function J(D){return _(D===R.leftSquareBracket,"expected left bracket"),vN.call(G,$,I,q,V.reference,V.referenceMarker,V.referenceString)(D)}function I(D){return G.parser.defined.includes(u0(G.sliceSerialize(G.events[G.events.length-1][1]).slice(1,-1)))?U(D):g(D)}function q(D){return g(D)}}function KE($,U,g){return G;function G(I){return _(I===R.leftSquareBracket,"expected left bracket"),$.enter(V.reference),$.enter(V.referenceMarker),$.consume(I),$.exit(V.referenceMarker),J}function J(I){if(I===R.rightSquareBracket)return $.enter(V.referenceMarker),$.consume(I),$.exit(V.referenceMarker),$.exit(V.reference),U;return g(I)}}var x9={name:"labelStartImage",resolveAll:dJ.resolveAll,tokenize:HE};function HE($,U,g){let G=this;return J;function J(D){return _(D===R.exclamationMark,"expected `!`"),$.enter(V.labelImage),$.enter(V.labelImageMarker),$.consume(D),$.exit(V.labelImageMarker),I}function I(D){if(D===R.leftSquareBracket)return $.enter(V.labelMarker),$.consume(D),$.exit(V.labelMarker),$.exit(V.labelImage),q;return g(D)}function q(D){return D===R.caret&&"_hiddenFootnoteSupport"in G.parser.constructs?g(D):U(D)}}var y9={name:"labelStartLink",resolveAll:dJ.resolveAll,tokenize:TE};function TE($,U,g){let G=this;return J;function J(q){return _(q===R.leftSquareBracket,"expected `[`"),$.enter(V.labelLink),$.enter(V.labelMarker),$.consume(q),$.exit(V.labelMarker),$.exit(V.labelLink),I}function I(q){return q===R.caret&&"_hiddenFootnoteSupport"in G.parser.constructs?g(q):U(q)}}var xI={name:"lineEnding",tokenize:AE};function AE($,U){return g;function g(G){return _(W$(G),"expected eol"),$.enter(V.lineEnding),$.consume(G),$.exit(V.lineEnding),E$($,U,V.linePrefix)}}var aJ={name:"thematicBreak",tokenize:SE};function SE($,U,g){let G=0,J;return I;function I(Q){return $.enter(V.thematicBreak),q(Q)}function q(Q){return _(Q===R.asterisk||Q===R.dash||Q===R.underscore,"expected `*`, `-`, or `_`"),J=Q,D(Q)}function D(Q){if(Q===J)return $.enter(V.thematicBreakSequence),N(Q);if(G>=X$.thematicBreakMarkerCountMin&&(Q===R.eof||W$(Q)))return $.exit(V.thematicBreak),U(Q);return g(Q)}function N(Q){if(Q===J)return $.consume(Q),G++,N;return $.exit(V.thematicBreakSequence),S$(Q)?E$($,D,V.whitespace)(Q):D(Q)}}var wU={continuation:{tokenize:BE},exit:_E,name:"list",tokenize:PE},EE={partial:!0,tokenize:bE},LE={partial:!0,tokenize:CE};function PE($,U,g){let G=this,J=G.events[G.events.length-1],I=J&&J[1].type===V.linePrefix?J[2].sliceSerialize(J[1],!0).length:0,q=0;return D;function D(W){_(G.containerState,"expected state");let j=G.containerState.type||(W===R.asterisk||W===R.plusSign||W===R.dash?V.listUnordered:V.listOrdered);if(j===V.listUnordered?!G.containerState.marker||W===G.containerState.marker:FI(W)){if(!G.containerState.type)G.containerState.type=j,$.enter(j,{_container:!0});if(j===V.listUnordered)return $.enter(V.listItemPrefix),W===R.asterisk||W===R.dash?$.check(aJ,g,Q)(W):Q(W);if(!G.interrupt||W===R.digit1)return $.enter(V.listItemPrefix),$.enter(V.listItemValue),N(W)}return g(W)}function N(W){if(_(G.containerState,"expected state"),FI(W)&&++q<X$.listItemValueSizeMax)return $.consume(W),N;if((!G.interrupt||q<2)&&(G.containerState.marker?W===G.containerState.marker:W===R.rightParenthesis||W===R.dot))return $.exit(V.listItemValue),Q(W);return g(W)}function Q(W){return _(G.containerState,"expected state"),_(W!==R.eof,"eof (`null`) is not a marker"),$.enter(V.listItemMarker),$.consume(W),$.exit(V.listItemMarker),G.containerState.marker=G.containerState.marker||W,$.check(OJ,G.interrupt?g:X,$.attempt(EE,Z,Y))}function X(W){return _(G.containerState,"expected state"),G.containerState.initialBlankLine=!0,I++,Z(W)}function Y(W){if(S$(W))return $.enter(V.listItemPrefixWhitespace),$.consume(W),$.exit(V.listItemPrefixWhitespace),Z;return g(W)}function Z(W){return _(G.containerState,"expected state"),G.containerState.size=I+G.sliceSerialize($.exit(V.listItemPrefix),!0).length,U(W)}}function BE($,U,g){let G=this;return _(G.containerState,"expected state"),G.containerState._closeFlow=void 0,$.check(OJ,J,I);function J(D){return _(G.containerState,"expected state"),_(typeof G.containerState.size==="number","expected size"),G.containerState.furtherBlankLines=G.containerState.furtherBlankLines||G.containerState.initialBlankLine,E$($,U,V.listItemIndent,G.containerState.size+1)(D)}function I(D){if(_(G.containerState,"expected state"),G.containerState.furtherBlankLines||!S$(D))return G.containerState.furtherBlankLines=void 0,G.containerState.initialBlankLine=void 0,q(D);return G.containerState.furtherBlankLines=void 0,G.containerState.initialBlankLine=void 0,$.attempt(LE,U,q)(D)}function q(D){return _(G.containerState,"expected state"),G.containerState._closeFlow=!0,G.interrupt=void 0,_(G.parser.constructs.disable.null,"expected `disable.null` to be populated"),E$($,$.attempt(wU,U,g),V.linePrefix,G.parser.constructs.disable.null.includes("codeIndented")?void 0:X$.tabSize)(D)}}function CE($,U,g){let G=this;return _(G.containerState,"expected state"),_(typeof G.containerState.size==="number","expected size"),E$($,J,V.listItemIndent,G.containerState.size+1);function J(I){_(G.containerState,"expected state");let q=G.events[G.events.length-1];return q&&q[1].type===V.listItemIndent&&q[2].sliceSerialize(q[1],!0).length===G.containerState.size?U(I):g(I)}}function _E($){_(this.containerState,"expected state"),_(typeof this.containerState.type==="string","expected type"),$.exit(this.containerState.type)}function bE($,U,g){let G=this;return _(G.parser.constructs.disable.null,"expected `disable.null` to be populated"),E$($,J,V.listItemPrefixWhitespace,G.parser.constructs.disable.null.includes("codeIndented")?void 0:X$.tabSize+1);function J(I){let q=G.events[G.events.length-1];return!S$(I)&&q&&q[1].type===V.listItemPrefixWhitespace?U(I):g(I)}}var HN={name:"setextUnderline",resolveTo:uE,tokenize:FE};function uE($,U){let g=$.length,G,J,I;while(g--)if($[g][0]==="enter"){if($[g][1].type===V.content){G=g;break}if($[g][1].type===V.paragraph)J=g}else{if($[g][1].type===V.content)$.splice(g,1);if(!I&&$[g][1].type===V.definition)I=g}_(J!==void 0,"expected a `text` index to be found"),_(G!==void 0,"expected a `text` index to be found"),_($[G][2]===U,"enter context should be same"),_($[$.length-1][2]===U,"enter context should be same");let q={type:V.setextHeading,start:{...$[G][1].start},end:{...$[$.length-1][1].end}};if($[J][1].type=V.setextHeadingText,I)$.splice(J,0,["enter",q,U]),$.splice(I+1,0,["exit",$[G][1],U]),$[G][1].end={...$[I][1].end};else $[G][1]=q;return $.push(["exit",q,U]),$}function FE($,U,g){let G=this,J;return I;function I(Q){let X=G.events.length,Y;_(Q===R.dash||Q===R.equalsTo,"expected `=` or `-`");while(X--)if(G.events[X][1].type!==V.lineEnding&&G.events[X][1].type!==V.linePrefix&&G.events[X][1].type!==V.content){Y=G.events[X][1].type===V.paragraph;break}if(!G.parser.lazy[G.now().line]&&(G.interrupt||Y))return $.enter(V.setextHeadingLine),J=Q,q(Q);return g(Q)}function q(Q){return $.enter(V.setextHeadingLineSequence),D(Q)}function D(Q){if(Q===J)return $.consume(Q),D;return $.exit(V.setextHeadingLineSequence),S$(Q)?E$($,N,V.lineSuffix)(Q):N(Q)}function N(Q){if(Q===R.eof||W$(Q))return $.exit(V.setextHeadingLine),U(Q);return g(Q)}}var Az={tokenize:rE};function rE($){let U=this,g=$.attempt(OJ,G,$.attempt(this.parser.constructs.flowInitial,J,E$($,$.attempt(this.parser.constructs.flow,J,$.attempt(_9,J)),V.linePrefix)));return g;function G(I){if(_(I===R.eof||W$(I),"expected eol or eof"),I===R.eof){$.consume(I);return}return $.enter(V.lineEndingBlank),$.consume(I),$.exit(V.lineEndingBlank),U.currentConstruct=void 0,g}function J(I){if(_(I===R.eof||W$(I),"expected eol or eof"),I===R.eof){$.consume(I);return}return $.enter(V.lineEnding),$.consume(I),$.exit(V.lineEnding),U.currentConstruct=void 0,g}}var Sz={resolveAll:Bz()},Ez=Pz("string"),Lz=Pz("text");function Pz($){return{resolveAll:Bz($==="text"?kE:void 0),tokenize:U};function U(g){let G=this,J=this.parser.constructs[$],I=g.attempt(J,q,D);return q;function q(X){return Q(X)?I(X):D(X)}function D(X){if(X===R.eof){g.consume(X);return}return g.enter(V.data),g.consume(X),N}function N(X){if(Q(X))return g.exit(V.data),I(X);return g.consume(X),N}function Q(X){if(X===R.eof)return!0;let Y=J[X],Z=-1;if(Y){_(Array.isArray(Y),"expected `disable.null` to be populated");while(++Z<Y.length){let W=Y[Z];if(!W.previous||W.previous.call(G,G.previous))return!0}}return!1}}}function Bz($){return U;function U(g,G){let J=-1,I;while(++J<=g.length)if(I===void 0){if(g[J]&&g[J][1].type===V.data)I=J,J++}else if(!g[J]||g[J][1].type!==V.data){if(J!==I+2)g[I][1].end=g[J-1][1].end,g.splice(I+2,J-I-2),J=I+2;I=void 0}return $?$(g,G):g}}function kE($,U){let g=0;while(++g<=$.length)if((g===$.length||$[g][1].type===V.lineEnding)&&$[g-1][1].type===V.data){let G=$[g-1][1],J=U.sliceStream(G),I=J.length,q=-1,D=0,N;while(I--){let Q=J[I];if(typeof Q==="string"){q=Q.length;while(Q.charCodeAt(q-1)===R.space)D++,q--;if(q)break;q=-1}else if(Q===R.horizontalTab)N=!0,D++;else if(Q===R.virtualSpace);else{I++;break}}if(U._contentTypeTextTrailing&&g===$.length)D=0;if(D){let Q={type:g===$.length||N||D<X$.hardBreakPrefixSizeMin?V.lineSuffix:V.hardBreakTrailing,start:{_bufferIndex:I?q:G.start._bufferIndex+q,_index:G.start._index+I,line:G.end.line,column:G.end.column-D,offset:G.end.offset-D},end:{...G.end}};if(G.end={...Q.start},G.start.offset===G.end.offset)Object.assign(G,Q);else $.splice(g,0,["enter",Q,U],["exit",Q,U]),g+=2}g++}return $}var f9={};N0(f9,{text:()=>iE,string:()=>hE,insideSpan:()=>lE,flowInitial:()=>yE,flow:()=>fE,document:()=>mE,disable:()=>pE,contentInitial:()=>xE,attentionMarkers:()=>nE});var mE={[R.asterisk]:wU,[R.plusSign]:wU,[R.dash]:wU,[R.digit0]:wU,[R.digit1]:wU,[R.digit2]:wU,[R.digit3]:wU,[R.digit4]:wU,[R.digit5]:wU,[R.digit6]:wU,[R.digit7]:wU,[R.digit8]:wU,[R.digit9]:wU,[R.greaterThan]:wN},xE={[R.leftSquareBracket]:b9},yE={[R.horizontalTab]:kI,[R.virtualSpace]:kI,[R.space]:kI},fE={[R.numberSign]:F9,[R.asterisk]:aJ,[R.dash]:[HN,aJ],[R.lessThan]:k9,[R.equalsTo]:HN,[R.underscore]:aJ,[R.graveAccent]:zN,[R.tilde]:zN},hE={[R.ampersand]:RN,[R.backslash]:VN},iE={[R.carriageReturn]:xI,[R.lineFeed]:xI,[R.carriageReturnLineFeed]:xI,[R.exclamationMark]:x9,[R.ampersand]:RN,[R.asterisk]:rI,[R.lessThan]:[P9,m9],[R.leftSquareBracket]:y9,[R.backslash]:[u9,VN],[R.rightSquareBracket]:dJ,[R.underscore]:rI,[R.graveAccent]:B9},lE={null:[rI,Sz]},nE={null:[R.asterisk,R.underscore]},pE={null:[]};var pz=Cw(nz(),1);var eJ=pz.default("micromark");function cz($,U,g){let G={_bufferIndex:-1,_index:0,line:g&&g.line||1,column:g&&g.column||1,offset:g&&g.offset||0},J={},I=[],q=[],D=[],N=!0,Q={attempt:f(o),check:f(i),consume:k,enter:p,exit:b,interrupt:f(i,{interrupt:!0})},X={code:R.eof,containerState:{},defineSkip:A,events:[],now:H,parser:$,previous:R.eof,sliceSerialize:j,sliceStream:v,write:W},Y=U.tokenize.call(X,Q),Z;if(U.resolveAll)I.push(U);return X;function W(P){if(q=PU(q,P),L(),q[q.length-1]!==R.eof)return[];return U$(U,0),X.events=NG(I,X.events,X),X.events}function j(P,K){return BL(v(P),K)}function v(P){return PL(q,P)}function H(){let{_bufferIndex:P,_index:K,line:E,column:S,offset:r}=G;return{_bufferIndex:P,_index:K,line:E,column:S,offset:r}}function A(P){J[P.line]=P.column,B(),eJ("position: define skip: `%j`",G)}function L(){let P;while(G._index<q.length){let K=q[G._index];if(typeof K==="string"){if(P=G._index,G._bufferIndex<0)G._bufferIndex=0;while(G._index===P&&G._bufferIndex<K.length)F(K.charCodeAt(G._bufferIndex))}else F(K)}}function F(P){_(N===!0,"expected character to be consumed"),N=void 0,eJ("main: passing `%s` to %s",P,Y&&Y.name),Z=P,_(typeof Y==="function","expected state"),Y=Y(P)}function k(P){if(_(P===Z,"expected given code to equal expected code"),eJ("consume: `%s`",P),_(N===void 0,"expected code to not have been consumed: this might be because `return x(code)` instead of `return x` was used"),_(P===null?X.events.length===0||X.events[X.events.length-1][0]==="exit":X.events[X.events.length-1][0]==="enter","expected last token to be open"),W$(P))G.line++,G.column=1,G.offset+=P===R.carriageReturnLineFeed?2:1,B(),eJ("position: after eol: `%j`",G);else if(P!==R.virtualSpace)G.column++,G.offset++;if(G._bufferIndex<0)G._index++;else if(G._bufferIndex++,G._bufferIndex===q[G._index].length)G._bufferIndex=-1,G._index++;X.previous=P,N=!0}function p(P,K){let E=K||{};return E.type=P,E.start=H(),_(typeof P==="string","expected string type"),_(P.length>0,"expected non-empty string"),eJ("enter: `%s`",P),X.events.push(["enter",E,X]),D.push(E),E}function b(P){_(typeof P==="string","expected string type"),_(P.length>0,"expected non-empty string");let K=D.pop();return _(K,"cannot close w/o open tokens"),K.end=H(),_(P===K.type,"expected exit token to match current token"),_(!(K.start._index===K.end._index&&K.start._bufferIndex===K.end._bufferIndex),"expected non-empty token (`"+P+"`)"),eJ("exit: `%s`",K.type),X.events.push(["exit",K,X]),K}function o(P,K){U$(P,K.from)}function i(P,K){K.restore()}function f(P,K){return E;function E(S,r,C){let y,z,d,g$;return Array.isArray(S)?Y$(S):("tokenize"in S)?Y$([S]):T(S);function T(Z$){return K$;function K$(B$){let u$=B$!==null&&Z$[B$],h$=B$!==null&&Z$.null,o$=[...Array.isArray(u$)?u$:u$?[u$]:[],...Array.isArray(h$)?h$:h$?[h$]:[]];return Y$(o$)(B$)}}function Y$(Z$){if(y=Z$,z=0,Z$.length===0)return _(C,"expected `bogusState` to be given"),C;return V$(Z$[z])}function V$(Z$){return K$;function K$(B$){if(g$=m(),d=Z$,!Z$.partial)X.currentConstruct=Z$;if(_(X.parser.constructs.disable.null,"expected `disable.null` to be populated"),Z$.name&&X.parser.constructs.disable.null.includes(Z$.name))return M$(B$);return Z$.tokenize.call(K?Object.assign(Object.create(X),K):X,Q,j$,M$)(B$)}}function j$(Z$){return _(Z$===Z,"expected code"),N=!0,P(d,g$),r}function M$(Z$){if(_(Z$===Z,"expected code"),N=!0,g$.restore(),++z<y.length)return V$(y[z]);return C}}}function U$(P,K){if(P.resolveAll&&!I.includes(P))I.push(P);if(P.resolve)JU(X.events,K,X.events.length-K,P.resolve(X.events.slice(K),X));if(P.resolveTo)X.events=P.resolveTo(X.events,X);_(P.partial||X.events.length===0||X.events[X.events.length-1][0]==="exit","expected last token to end")}function m(){let P=H(),K=X.previous,E=X.currentConstruct,S=X.events.length,r=Array.from(D);return{from:S,restore:C};function C(){G=P,X.previous=K,X.currentConstruct=E,X.events.length=S,D=r,B(),eJ("position: restore: `%j`",G)}}function B(){if(G.line in J&&G.column<2)G.column=J[G.line],G.offset+=J[G.line]-1}}function PL($,U){let g=U.start._index,G=U.start._bufferIndex,J=U.end._index,I=U.end._bufferIndex,q;if(g===J)_(I>-1,"expected non-negative end buffer index"),_(G>-1,"expected non-negative start buffer index"),q=[$[g].slice(G,I)];else{if(q=$.slice(g,J),G>-1){let D=q[0];if(typeof D==="string")q[0]=D.slice(G);else _(G===0,"expected `startBufferIndex` to be `0`"),q.shift()}if(I>0)q.push($[J].slice(0,I))}return q}function BL($,U){let g=-1,G=[],J;while(++g<$.length){let I=$[g],q;if(typeof I==="string")q=I;else switch(I){case R.carriageReturn:{q=nU.cr;break}case R.lineFeed:{q=nU.lf;break}case R.carriageReturnLineFeed:{q=nU.cr+nU.lf;break}case R.horizontalTab:{q=U?nU.space:nU.ht;break}case R.virtualSpace:{if(!U&&J)continue;q=nU.space;break}default:_(typeof I==="number","expected number"),q=String.fromCharCode(I)}J=I===R.horizontalTab,G.push(q)}return G.join("")}function p9($){let G={constructs:Yz([f9,...($||{}).extensions||[]]),content:J(zz),defined:[],document:J(jz),flow:J(Az),lazy:{},string:J(Ez),text:J(Lz)};return G;function J(I){return q;function q(D){return cz(G,I,D)}}}function c9($){while(!MN($));return $}var oz=/[\0\t\n\r]/g;function o9(){let $=1,U="",g=!0,G;return J;function J(I,q,D){let N=[],Q,X,Y,Z,W;if(I=U+(typeof I==="string"?I.toString():new TextDecoder(q||void 0).decode(I)),Y=0,U="",g){if(I.charCodeAt(0)===R.byteOrderMarker)Y++;g=void 0}while(Y<I.length){if(oz.lastIndex=Y,Q=oz.exec(I),Z=Q&&Q.index!==void 0?Q.index:I.length,W=I.charCodeAt(Z),!Q){U=I.slice(Y);break}if(W===R.lf&&Y===Z&&G)N.push(R.carriageReturnLineFeed),G=void 0;else{if(G)N.push(R.carriageReturn),G=void 0;if(Y<Z)N.push(I.slice(Y,Z)),$+=Z-Y;switch(W){case R.nul:{N.push(R.replacementCharacter),$++;break}case R.ht:{X=Math.ceil($/X$.tabSize)*X$.tabSize,N.push(R.horizontalTab);while($++<X)N.push(R.virtualSpace);break}case R.lf:{N.push(R.lineFeed),$=1;break}default:G=!0,$=1}}Y=Z+1}if(D){if(G)N.push(R.carriageReturn);if(U)N.push(U);N.push(R.eof)}return N}}var CL=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function LN($){return $.replace(CL,_L)}function _L($,U,g){if(U)return U;if(g.charCodeAt(0)===R.numberSign){let J=g.charCodeAt(1),I=J===R.lowercaseX||J===R.uppercaseX;return ZN(g.slice(I?2:1),I?X$.numericBaseHexadecimal:X$.numericBaseDecimal)}return qG(g)||$}function WJ($){if(!$||typeof $!=="object")return"";if("position"in $||"type"in $)return dz($.position);if("start"in $||"end"in $)return dz($);if("line"in $||"column"in $)return d9($);return""}function d9($){return az($&&$.line)+":"+az($&&$.column)}function dz($){return d9($&&$.start)+"-"+d9($&&$.end)}function az($){return $&&typeof $==="number"?$:1}var sz={}.hasOwnProperty;function a9($,U,g){if(U&&typeof U==="object")g=U,U=void 0;return bL(g)(c9(p9(g).document().write(o9()($,U,!0))))}function bL($){let U={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:I(Sg),autolinkProtocol:f,autolinkEmail:f,atxHeading:I(yU),blockQuote:I(B$),characterEscape:f,characterReference:f,codeFenced:I(u$),codeFencedFenceInfo:q,codeFencedFenceMeta:q,codeIndented:I(u$,q),codeText:I(h$,q),codeTextData:f,data:f,codeFlowValue:f,definition:I(o$),definitionDestinationString:q,definitionLabelString:q,definitionTitleString:q,emphasis:I(YU),hardBreakEscape:I(fU),hardBreakTrailing:I(fU),htmlFlow:I(sU,q),htmlFlowData:f,htmlText:I(sU,q),htmlTextData:f,image:I(Ag),label:q,link:I(Sg),listItem:I(Eg),listItemValue:Z,listOrdered:I(bJ,Y),listUnordered:I(bJ),paragraph:I(hG),reference:T,referenceString:q,resourceDestinationString:q,resourceTitleString:q,setextHeading:I(yU),strong:I(D0),thematicBreak:I(Lg)},exit:{atxHeading:N(),atxHeadingSequence:p,autolink:N(),autolinkEmail:K$,autolinkProtocol:Z$,blockQuote:N(),characterEscapeValue:U$,characterReferenceMarkerHexadecimal:V$,characterReferenceMarkerNumeric:V$,characterReferenceValue:j$,characterReference:M$,codeFenced:N(H),codeFencedFence:v,codeFencedFenceInfo:W,codeFencedFenceMeta:j,codeFlowValue:U$,codeIndented:N(A),codeText:N(E),codeTextData:U$,data:U$,definition:N(),definitionDestinationString:k,definitionLabelString:L,definitionTitleString:F,emphasis:N(),hardBreakEscape:N(B),hardBreakTrailing:N(B),htmlFlow:N(P),htmlFlowData:U$,htmlText:N(K),htmlTextData:U$,image:N(r),label:y,labelText:C,lineEnding:m,link:N(S),listItem:N(),listOrdered:N(),listUnordered:N(),paragraph:N(),referenceString:Y$,resourceDestinationString:z,resourceTitleString:d,resource:g$,setextHeading:N(i),setextHeadingLineSequence:o,setextHeadingText:b,strong:N(),thematicBreak:N()}};ez(U,($||{}).mdastExtensions||[]);let g={};return G;function G(a){let t={type:"root",children:[]},O={stack:[t],tokenStack:[],config:U,enter:D,exit:Q,buffer:q,resume:X,data:g},u=[],l=-1;while(++l<a.length)if(a[l][1].type===V.listOrdered||a[l][1].type===V.listUnordered)if(a[l][0]==="enter")u.push(l);else{let s=u.pop();_(typeof s==="number","expected list to be open"),l=J(a,s,l)}l=-1;while(++l<a.length){let s=U[a[l][0]];if(sz.call(s,a[l][1].type))s[a[l][1].type].call(Object.assign({sliceSerialize:a[l][2].sliceSerialize},O),a[l][1])}if(O.tokenStack.length>0){let s=O.tokenStack[O.tokenStack.length-1];(s[1]||tz).call(O,void 0,s[0])}t.position={start:ZJ(a.length>0?a[0][1].start:{line:1,column:1,offset:0}),end:ZJ(a.length>0?a[a.length-2][1].end:{line:1,column:1,offset:0})},l=-1;while(++l<U.transforms.length)t=U.transforms[l](t)||t;return t}function J(a,t,O){let u=t-1,l=-1,s=!1,c,G$,M,h;while(++u<=O){let J$=a[u];switch(J$[1].type){case V.listUnordered:case V.listOrdered:case V.blockQuote:{if(J$[0]==="enter")l++;else l--;h=void 0;break}case V.lineEndingBlank:{if(J$[0]==="enter"){if(c&&!h&&!l&&!M)M=u;h=void 0}break}case V.linePrefix:case V.listItemValue:case V.listItemMarker:case V.listItemPrefix:case V.listItemPrefixWhitespace:break;default:h=void 0}if(!l&&J$[0]==="enter"&&J$[1].type===V.listItemPrefix||l===-1&&J$[0]==="exit"&&(J$[1].type===V.listUnordered||J$[1].type===V.listOrdered)){if(c){let e=u;G$=void 0;while(e--){let $$=a[e];if($$[1].type===V.lineEnding||$$[1].type===V.lineEndingBlank){if($$[0]==="exit")continue;if(G$)a[G$][1].type=V.lineEndingBlank,s=!0;$$[1].type=V.lineEnding,G$=e}else if($$[1].type===V.linePrefix||$$[1].type===V.blockQuotePrefix||$$[1].type===V.blockQuotePrefixWhitespace||$$[1].type===V.blockQuoteMarker||$$[1].type===V.listItemIndent);else break}if(M&&(!G$||M<G$))c._spread=!0;c.end=Object.assign({},G$?a[G$][1].start:J$[1].end),a.splice(G$||u,0,["exit",c,J$[2]]),u++,O++}if(J$[1].type===V.listItemPrefix){let e={type:"listItem",_spread:!1,start:Object.assign({},J$[1].start),end:void 0};c=e,a.splice(u,0,["enter",e,J$[2]]),u++,O++,M=void 0,h=!0}}}return a[t][1]._spread=s,O}function I(a,t){return O;function O(u){if(D.call(this,a(u),u),t)t.call(this,u)}}function q(){this.stack.push({type:"fragment",children:[]})}function D(a,t,O){let u=this.stack[this.stack.length-1];_(u,"expected `parent`"),_("children"in u,"expected `parent`"),u.children.push(a),this.stack.push(a),this.tokenStack.push([t,O||void 0]),a.position={start:ZJ(t.start),end:void 0}}function N(a){return t;function t(O){if(a)a.call(this,O);Q.call(this,O)}}function Q(a,t){let O=this.stack.pop();_(O,"expected `node`");let u=this.tokenStack.pop();if(!u)throw Error("Cannot close `"+a.type+"` ("+WJ({start:a.start,end:a.end})+"): it\u2019s not open");else if(u[0].type!==a.type)if(t)t.call(this,a,u[0]);else(u[1]||tz).call(this,a,u[0]);_(O.type!=="fragment","unexpected fragment `exit`ed"),_(O.position,"expected `position` to be defined"),O.position.end=ZJ(a.end)}function X(){return cJ(this.stack.pop())}function Y(){this.data.expectingFirstListItemValue=!0}function Z(a){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];_(t,"expected nodes on stack"),_(t.type==="list","expected list on stack"),t.start=Number.parseInt(this.sliceSerialize(a),X$.numericBaseDecimal),this.data.expectingFirstListItemValue=void 0}}function W(){let a=this.resume(),t=this.stack[this.stack.length-1];_(t,"expected node on stack"),_(t.type==="code","expected code on stack"),t.lang=a}function j(){let a=this.resume(),t=this.stack[this.stack.length-1];_(t,"expected node on stack"),_(t.type==="code","expected code on stack"),t.meta=a}function v(){if(this.data.flowCodeInside)return;this.buffer(),this.data.flowCodeInside=!0}function H(){let a=this.resume(),t=this.stack[this.stack.length-1];_(t,"expected node on stack"),_(t.type==="code","expected code on stack"),t.value=a.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){let a=this.resume(),t=this.stack[this.stack.length-1];_(t,"expected node on stack"),_(t.type==="code","expected code on stack"),t.value=a.replace(/(\r?\n|\r)$/g,"")}function L(a){let t=this.resume(),O=this.stack[this.stack.length-1];_(O,"expected node on stack"),_(O.type==="definition","expected definition on stack"),O.label=t,O.identifier=u0(this.sliceSerialize(a)).toLowerCase()}function F(){let a=this.resume(),t=this.stack[this.stack.length-1];_(t,"expected node on stack"),_(t.type==="definition","expected definition on stack"),t.title=a}function k(){let a=this.resume(),t=this.stack[this.stack.length-1];_(t,"expected node on stack"),_(t.type==="definition","expected definition on stack"),t.url=a}function p(a){let t=this.stack[this.stack.length-1];if(_(t,"expected node on stack"),_(t.type==="heading","expected heading on stack"),!t.depth){let O=this.sliceSerialize(a).length;_(O===1||O===2||O===3||O===4||O===5||O===6,"expected `depth` between `1` and `6`"),t.depth=O}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function o(a){let t=this.stack[this.stack.length-1];_(t,"expected node on stack"),_(t.type==="heading","expected heading on stack"),t.depth=this.sliceSerialize(a).codePointAt(0)===R.equalsTo?1:2}function i(){this.data.setextHeadingSlurpLineEnding=void 0}function f(a){let t=this.stack[this.stack.length-1];_(t,"expected node on stack"),_("children"in t,"expected parent on stack");let O=t.children,u=O[O.length-1];if(!u||u.type!=="text")u=iG(),u.position={start:ZJ(a.start),end:void 0},O.push(u);this.stack.push(u)}function U$(a){let t=this.stack.pop();_(t,"expected a `node` to be on the stack"),_("value"in t,"expected a `literal` to be on the stack"),_(t.position,"expected `node` to have an open position"),t.value+=this.sliceSerialize(a),t.position.end=ZJ(a.end)}function m(a){let t=this.stack[this.stack.length-1];if(_(t,"expected `node`"),this.data.atHardBreak){_("children"in t,"expected `parent`");let O=t.children[t.children.length-1];_(O.position,"expected tail to have a starting position"),O.position.end=ZJ(a.end),this.data.atHardBreak=void 0;return}if(!this.data.setextHeadingSlurpLineEnding&&U.canContainEols.includes(t.type))f.call(this,a),U$.call(this,a)}function B(){this.data.atHardBreak=!0}function P(){let a=this.resume(),t=this.stack[this.stack.length-1];_(t,"expected node on stack"),_(t.type==="html","expected html on stack"),t.value=a}function K(){let a=this.resume(),t=this.stack[this.stack.length-1];_(t,"expected node on stack"),_(t.type==="html","expected html on stack"),t.value=a}function E(){let a=this.resume(),t=this.stack[this.stack.length-1];_(t,"expected node on stack"),_(t.type==="inlineCode","expected inline code on stack"),t.value=a}function S(){let a=this.stack[this.stack.length-1];if(_(a,"expected node on stack"),_(a.type==="link","expected link on stack"),this.data.inReference){let t=this.data.referenceType||"shortcut";a.type+="Reference",a.referenceType=t,delete a.url,delete a.title}else delete a.identifier,delete a.label;this.data.referenceType=void 0}function r(){let a=this.stack[this.stack.length-1];if(_(a,"expected node on stack"),_(a.type==="image","expected image on stack"),this.data.inReference){let t=this.data.referenceType||"shortcut";a.type+="Reference",a.referenceType=t,delete a.url,delete a.title}else delete a.identifier,delete a.label;this.data.referenceType=void 0}function C(a){let t=this.sliceSerialize(a),O=this.stack[this.stack.length-2];_(O,"expected ancestor on stack"),_(O.type==="image"||O.type==="link","expected image or link on stack"),O.label=LN(t),O.identifier=u0(t).toLowerCase()}function y(){let a=this.stack[this.stack.length-1];_(a,"expected node on stack"),_(a.type==="fragment","expected fragment on stack");let t=this.resume(),O=this.stack[this.stack.length-1];if(_(O,"expected node on stack"),_(O.type==="image"||O.type==="link","expected image or link on stack"),this.data.inReference=!0,O.type==="link"){let u=a.children;O.children=u}else O.alt=t}function z(){let a=this.resume(),t=this.stack[this.stack.length-1];_(t,"expected node on stack"),_(t.type==="image"||t.type==="link","expected image or link on stack"),t.url=a}function d(){let a=this.resume(),t=this.stack[this.stack.length-1];_(t,"expected node on stack"),_(t.type==="image"||t.type==="link","expected image or link on stack"),t.title=a}function g$(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function Y$(a){let t=this.resume(),O=this.stack[this.stack.length-1];_(O,"expected node on stack"),_(O.type==="image"||O.type==="link","expected image reference or link reference on stack"),O.label=t,O.identifier=u0(this.sliceSerialize(a)).toLowerCase(),this.data.referenceType="full"}function V$(a){_(a.type==="characterReferenceMarkerNumeric"||a.type==="characterReferenceMarkerHexadecimal"),this.data.characterReferenceType=a.type}function j$(a){let t=this.sliceSerialize(a),O=this.data.characterReferenceType,u;if(O)u=ZN(t,O===V.characterReferenceMarkerNumeric?X$.numericBaseDecimal:X$.numericBaseHexadecimal),this.data.characterReferenceType=void 0;else{let s=qG(t);_(s!==!1,"expected reference to decode"),u=s}let l=this.stack[this.stack.length-1];_(l,"expected `node`"),_("value"in l,"expected `node.value`"),l.value+=u}function M$(a){let t=this.stack.pop();_(t,"expected `node`"),_(t.position,"expected `node.position`"),t.position.end=ZJ(a.end)}function Z$(a){U$.call(this,a);let t=this.stack[this.stack.length-1];_(t,"expected node on stack"),_(t.type==="link","expected link on stack"),t.url=this.sliceSerialize(a)}function K$(a){U$.call(this,a);let t=this.stack[this.stack.length-1];_(t,"expected node on stack"),_(t.type==="link","expected link on stack"),t.url="mailto:"+this.sliceSerialize(a)}function B$(){return{type:"blockquote",children:[]}}function u$(){return{type:"code",lang:null,meta:null,value:""}}function h$(){return{type:"inlineCode",value:""}}function o$(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function YU(){return{type:"emphasis",children:[]}}function yU(){return{type:"heading",depth:0,children:[]}}function fU(){return{type:"break"}}function sU(){return{type:"html",value:""}}function Ag(){return{type:"image",title:null,url:"",alt:null}}function Sg(){return{type:"link",title:null,url:"",children:[]}}function bJ(a){return{type:"list",ordered:a.type==="listOrdered",start:null,spread:a._spread,children:[]}}function Eg(a){return{type:"listItem",spread:a._spread,checked:null,children:[]}}function hG(){return{type:"paragraph",children:[]}}function D0(){return{type:"strong",children:[]}}function iG(){return{type:"text",value:""}}function Lg(){return{type:"thematicBreak"}}}function ZJ($){return{line:$.line,column:$.column,offset:$.offset}}function ez($,U){let g=-1;while(++g<U.length){let G=U[g];if(Array.isArray(G))ez($,G);else uL($,G)}}function uL($,U){let g;for(g in U)if(sz.call(U,g))switch(g){case"canContainEols":{let G=U[g];if(G)$[g].push(...G);break}case"transforms":{let G=U[g];if(G)$[g].push(...G);break}case"enter":case"exit":{let G=U[g];if(G)Object.assign($[g],G);break}}}function tz($,U){if($)throw Error("Cannot close `"+$.type+"` ("+WJ({start:$.start,end:$.end})+"): a different token (`"+U.type+"`, "+WJ({start:U.start,end:U.end})+") is open");else throw Error("Cannot close document, a token (`"+U.type+"`, "+WJ({start:U.start,end:U.end})+") is still open")}function PN($){let U=this;U.parser=g;function g(G){return a9(G,{...U.data("settings"),...$,extensions:U.data("micromarkExtensions")||[],mdastExtensions:U.data("fromMarkdownExtensions")||[]})}}var $M={}.hasOwnProperty;function UM($,U){let g=U||{};function G(J,...I){let{invalid:q,handlers:D}=G;if(J&&$M.call(J,$)){let N=String(J[$]);q=$M.call(D,N)?D[N]:G.unknown}if(q)return q.call(this,J,...I)}return G.handlers=g.handlers||{},G.invalid=g.invalid,G.unknown=g.unknown,G}var FL={}.hasOwnProperty;function t9($,U){let g=-1,G;if(U.extensions)while(++g<U.extensions.length)t9($,U.extensions[g]);for(G in U)if(FL.call(U,G))switch(G){case"extensions":break;case"unsafe":{JM($[G],U[G]);break}case"join":{JM($[G],U[G]);break}case"handlers":{rL($[G],U[G]);break}default:$.options[G]=U[G]}return $}function JM($,U){if(U)$.push(...U)}function rL($,U){if(U)Object.assign($,U)}function gM($,U,g,G){let J=g.enter("blockquote"),I=g.createTracker(G);I.move("> "),I.shift(2);let q=g.indentLines(g.containerFlow($,I.current()),kL);return J(),q}function kL($,U,g){return">"+(g?"":" ")+$}function BN($,U){return GM($,U.inConstruct,!0)&&!GM($,U.notInConstruct,!1)}function GM($,U,g){if(typeof U==="string")U=[U];if(!U||U.length===0)return g;let G=-1;while(++G<U.length)if($.includes(U[G]))return!0;return!1}function s9($,U,g,G){let J=-1;while(++J<g.unsafe.length)if(g.unsafe[J].character===`
262
262
  `&&BN(g.stack,g.unsafe[J]))return/[ \t]/.test(G.before)?"":" ";return"\\\n"}function IM($,U){let g=String($),G=g.indexOf(U),J=G,I=0,q=0;if(typeof U!=="string")throw TypeError("Expected substring");while(G!==-1){if(G===J){if(++I>q)q=I}else I=1;J=G+U.length,G=g.indexOf(U,J)}return q}function fI($,U){return Boolean(U.options.fences===!1&&$.value&&!$.lang&&/[^ \r\n]/.test($.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test($.value))}function qM($){let U=$.options.fence||"`";if(U!=="`"&&U!=="~")throw Error("Cannot serialize code with `"+U+"` for `options.fence`, expected `` ` `` or `~`");return U}function DM($,U,g,G){let J=qM(g),I=$.value||"",q=J==="`"?"GraveAccent":"Tilde";if(fI($,g)){let Y=g.enter("codeIndented"),Z=g.indentLines(I,mL);return Y(),Z}let D=g.createTracker(G),N=J.repeat(Math.max(IM(I,J)+1,3)),Q=g.enter("codeFenced"),X=D.move(N);if($.lang){let Y=g.enter(`codeFencedLang${q}`);X+=D.move(g.safe($.lang,{before:X,after:" ",encode:["`"],...D.current()})),Y()}if($.lang&&$.meta){let Y=g.enter(`codeFencedMeta${q}`);X+=D.move(" "),X+=D.move(g.safe($.meta,{before:X,after:`
@@ -292,9 +292,9 @@ users/*.secrets.yaml
292
292
  `}format($){try{let U=[`# ${this.config.title}`,""];for(let g of this.config.mappings)this.formatField($,g,U,2);return U.join(`
293
293
  `)}catch(U){throw Error(`Failed to format structured content: ${this.describeError(U)}`,{cause:U})}}parse($){try{let U=this.processor.parse($),g=this.extractSections(U,2),G=this.buildDataFromSections(g,this.config.mappings);return this.schema.parse(G)}catch(U){throw Error(`Failed to parse structured content: ${this.describeError(U)}`,{cause:U})}}describeError($){if($ instanceof w.ZodError)return $.issues.map((U)=>`${U.path.join(".")||"(root)"}: ${U.message}`).join("; ");return $ instanceof Error?$.message:String($)}escapeBlockMarkup($){return $.replace(/^(\s*)#/gm,"$1\\#")}formatField($,U,g,G){let J="#".repeat(G)+" "+U.label,I=this.getValueByPath($,U.key);if(U.type==="custom"&&U.formatter){if(I!==void 0&&I!==null){g.push(J,"");let q=U.formatter(I);if(q)g.push(q,"")}return}switch(U.type){case"string":case"number":if(I===void 0||I===null)break;g.push(J,this.escapeBlockMarkup(String(I)),"");break;case"object":if(g.push(J),U.children&&I)for(let q of U.children)this.formatField(I,q,g,G+1);break;case"array":if(g.push(J,""),Array.isArray(I))if(U.itemType==="object"&&U.itemMappings)I.forEach((q,D)=>{if(g.push(`${"#".repeat(G+1)} ${U.label.slice(0,-1)} ${D+1}`),g.push(""),U.itemMappings)for(let N of U.itemMappings)this.formatField(q,N,g,G+2)});else{for(let q of I){let D=this.defaultArrayItemFormat(q);g.push(`- ${D}`)}g.push("")}break}}getValueByPath($,U){let g=U.split("."),G=$;for(let J of g){let I=sM.safeParse(G);if(!I.success)return;G=I.data[J]}return G}defaultArrayItemFormat($){if(typeof $==="string"||typeof $==="number")return String($);return JSON.stringify($)}extractSections($,U){let g=new Map,G=null,J=[];for(let I of $.children)if(I.type==="heading"&&I.depth===U){if(G)g.set(G.toLowerCase(),J);G=this.getHeadingText(I),J=[]}else if(G)J.push(I);if(G)g.set(G.toLowerCase(),J);return g}extractSubsections($,U){let g=new Map,G=null,J=[];for(let I of $)if(I.type==="heading"&&I.depth===U){if(G)g.set(G.toLowerCase(),J);G=this.getHeadingText(I),J=[]}else if(G)J.push(I);if(G)g.set(G.toLowerCase(),J);return g}textNodeSchema=w.object({type:w.literal("text"),value:w.string()});extractTextValue($){let U=this.textNodeSchema.safeParse($);return U.success?U.data.value:""}getHeadingText($){return $.children.filter((g)=>g.type==="text").map((g)=>this.extractTextValue(g)).join("")}buildDataFromSections($,U,g=2){let G={};for(let J of U){let I=$.get(J.label.toLowerCase());if(J.type==="custom"&&J.parser&&I){let q=this.getTextFromSection(I),D=J.parser(q);this.setValueByPath(G,J.key,D)}else if(J.type==="object"&&J.children&&I){let q=this.extractSubsections(I,g+1),D=this.buildDataFromSections(q,J.children,g+1);this.setValueByPath(G,J.key,D)}else if(J.type==="array"&&I)if(J.itemType==="object"&&J.itemMappings){let q=this.extractObjectArrayItems(I,g+1,J.itemMappings);this.setValueByPath(G,J.key,q)}else{let q=this.extractSimpleArrayItems(I);this.setValueByPath(G,J.key,q)}else if(I){let q=this.getTextFromSection(I),D=J.type==="number"?Number(q):q;this.setValueByPath(G,J.key,D)}}return G}setValueByPath($,U,g){let G=U.split("."),J=$;for(let q=0;q<G.length-1;q++){let D=G[q];if(!D)continue;let N=sM.safeParse(J[D]);if(N.success){J[D]=N.data,J=N.data;continue}let Q={};J[D]=Q,J=Q}let I=G[G.length-1];if(I)J[I]=g}getTextFromSection($){let U=[];for(let g of $)if(g.type==="paragraph"){let G=this.extractTextFromParagraph(g);if(G)U.push(G)}else if(g.type==="list"){let G=g;for(let J of G.children){let I=this.extractTextFromListItem(J);if(I)U.push(`- ${I}`)}}return U.join(`
294
294
  `)}extractTextFromParagraph($){return this.extractInlineText($.children).trim()}extractInlineText($){let U=[];for(let g of $)if(g.type==="text")U.push(this.extractTextValue(g));else if(g.type==="emphasis"){let G=this.extractInlineText(g.children);if(G)U.push(`*${G}*`)}else if(g.type==="strong"){let G=this.extractInlineText(g.children);if(G)U.push(`**${G}**`)}return U.join("")}extractSimpleArrayItems($){let U=[];for(let g of $)if(g.type==="list"){let G=g;for(let J of G.children){let I=this.extractTextFromListItem(J);if(I)U.push(I)}}return U}extractObjectArrayItems($,U,g){let G=[],J=[],I=!1;for(let q of $)if(q.type==="heading"&&q.depth===U){if(I&&J.length>0){let D=this.extractSubsections(J,U+1),N=this.buildDataFromSections(D,g,U+1);G.push(N)}J=[],I=!0}else if(I)J.push(q);if(I&&J.length>0){let q=this.extractSubsections(J,U+1),D=this.buildDataFromSections(q,g,U+1);G.push(D)}return G}extractTextFromListItem($){let U=[];for(let g of $.children)if(g.type==="paragraph"){let G=this.extractTextFromParagraph(g);if(G)U.push(G)}return U.join(`
295
- `)}}var Zp=w.record(w.string(),w.unknown());var mp=w.object({slug:w.string(),title:w.string(),type:w.string(),entityId:w.string(),contentHash:w.string()});function KW($,U={}){let g=eM($),G=eM(U.sharedDomain??"rizom.ai").replace(/^\./,""),J=`.${G}`;if(g.endsWith(J)){let I=g.slice(0,-J.length);if(I.length>0&&!I.includes("."))return`${I}-preview.${G}`}return`preview.${g}`}function eM($){return $.trim().replace(/^https?:\/\//i,"").replace(/\/$/,"").toLowerCase()}var ZP=w.string(),wP=w.looseObject({id:w.string().min(1)}),VP=w.looseObject({label:w.string().min(1)}),RP=w.looseObject({layouts:w.record(w.string(),w.unknown()),plugin:w.custom(($)=>typeof $==="function").optional(),routes:w.array(wP),entityDisplay:w.record(w.string(),VP),content:w.unknown().optional(),themeOverride:w.string().optional(),headScripts:w.array(w.string()).optional(),staticAssets:w.record(w.string(),w.string()).optional()}),zP=w.custom(($)=>RP.safeParse($).success);function MP($,U={}){return KW($,U)}import{mkdir as hP,writeFile as iP}from"fs/promises";import{dirname as lP,join as N5}from"path";import{mkdtemp as jP,mkdir as vP,readFile as KP,rm as HP,writeFile as TP}from"fs/promises";import{tmpdir as AP}from"os";import{dirname as SP,join as g5}from"path";function HW($,U){let g=$.indexOf("/");if(g===-1)return{org:U,name:$};return{org:$.slice(0,g),name:$.slice(g+1)}}function $5($,U){let{org:g,name:G}=HW($,U);return`${g}/${G}`}var EP=["name: Your Name Here","Delete this and write your own"];async function G5($,U,g,G,J={}){if(G.length===0)return;let I=J.env??process.env,q=Q0($),D=U5(I,q,g.effectiveGitSyncToken),N=J.contentRepoAdminTokenSelector?U5(I,q,J.contentRepoAdminTokenSelector):void 0,Q=HW(g.contentRepo,U),X=J.contentRepoRemoteResolver?.(g,U,D)??BP(Q,D);if(!X)return;let Y=await jP(g5(AP(),`brains-ops-content-sync-${g.handle}-`)),Z=J.runCommand??LU,W=J.fetchImpl??fetch;try{if(!J.contentRepoRemoteResolver){if(!N)throw Error(`${J.contentRepoAdminTokenSelector??"CONTENT_REPO_ADMIN_TOKEN"} is required to check or create content repos`);await CP(Q,N,W)}await Z("git",["clone",X,Y]),await _P(Y,Z),await Z("git",["config","user.name","brains-ops[bot]"],{cwd:Y}),await Z("git",["config","user.email","41898282+github-actions[bot]@users.noreply.github.com"],{cwd:Y});let j=!1;for(let v of G)if(await LP(Y,v))j=!0;if(!j)return;await Z("git",["add","."],{cwd:Y}),await Z("git",["commit","-m",`chore(content): seed ${g.handle} anchor profile`],{cwd:Y}),await Z("git",["push","origin","HEAD:main"],{cwd:Y})}finally{await HP(Y,{recursive:!0,force:!0})}}async function LP($,U){let g=g5($,U.path),G=await KP(g,"utf8").catch(()=>{return});if(G===U.content)return!1;if(G!==void 0&&!PP(G))return!1;return await vP(SP(g),{recursive:!0}),await TP(g,U.content),!0}function PP($){return EP.some((U)=>$.includes(U))}function U5($,U,g){return s$(g,$,U)}function BP($,U){if(!U)return;return`https://x-access-token:${encodeURIComponent(U)}@github.com/${$.org}/${$.name}.git`}async function CP($,U,g){let{org:G,name:J}=$,q=`https://api.github.com/repos/${`${encodeURIComponent(G)}/${encodeURIComponent(J)}`}`,D={Accept:"application/vnd.github+json",Authorization:`Bearer ${U}`,"User-Agent":"brains-ops","X-GitHub-Api-Version":"2022-11-28"},N=await g(q,{headers:D});if(N.ok)return;if(N.status!==404)throw Error(`Failed to check GitHub repo ${G}/${J}: ${N.status} ${await J5(N)}`);let Q=await g(`https://api.github.com/orgs/${encodeURIComponent(G)}/repos`,{method:"POST",headers:D,body:JSON.stringify({name:J,private:!0,auto_init:!1})});if(Q.ok){console.log(`Created missing content repo ${G}/${J}`);return}if(Q.status===422){if((await g(q,{headers:D})).ok)return}throw Error(`Failed to create GitHub repo ${G}/${J}: ${Q.status} ${await J5(Q)}`)}async function J5($){let U=await $.text();return U.trim().length===0?$.statusText:U}async function _P($,U){try{await U("git",["checkout","-B","main","origin/main"],{cwd:$})}catch{await U("git",["checkout","-B","main"],{cwd:$})}}function q5($){return async(U)=>({brainYaml:bP(U,$),envFile:fP(U,$),contentRepoFiles:xP(U)})}function bP($,U){let g=[`brain: ${$.model}`,`domain: ${$.domain}`,`preset: ${$.preset}`,...FP($),...rP($),"",mP($),"","plugins:",...$.setup?.delivery==="email"?[" auth-service:",...kP($.setup.email)," notifications:"," defaultRecipient:"," type: email",` address: ${$.setup.email}`]:[],...$.playbooks?.onboarding?[" rover-onboarding:"," enabled: true"]:[]," directory-sync:"," git:",` repo: ${D5($,U)}`," authToken: ${GIT_SYNC_TOKEN}",...$.atproto?[" atproto:",` identifier: ${$.atproto.identifier}`,...$.atproto.accountDid?[` accountDid: ${$.atproto.accountDid}`]:[],...$.atproto.lexiconAuthority!==void 0?[` lexiconAuthority: ${String($.atproto.lexiconAuthority)}`]:[],...uP($.atproto.jetstream)," appPassword: ${ATPROTO_APP_PASSWORD}"]:[]];if($.discordEnabled)g.push(" discord:"),g.push(" botToken: ${DISCORD_BOT_TOKEN}");if($.setup?.delivery==="email")g.push(" email-resend:"),g.push(" apiKey: ${SETUP_EMAIL_API_KEY}"),g.push(" from: ${SETUP_EMAIL_FROM}");return g.push(""),g.join(`
295
+ `)}}var Zp=w.record(w.string(),w.unknown());var mp=w.object({slug:w.string(),title:w.string(),type:w.string(),entityId:w.string(),contentHash:w.string()});function KW($,U={}){let g=eM($),G=eM(U.sharedDomain??"rizom.ai").replace(/^\./,""),J=`.${G}`;if(g.endsWith(J)){let I=g.slice(0,-J.length);if(I.length>0&&!I.includes("."))return`${I}-preview.${G}`}return`preview.${g}`}function eM($){return $.trim().replace(/^https?:\/\//i,"").replace(/\/$/,"").toLowerCase()}var ZP=w.string(),wP=w.looseObject({id:w.string().min(1)}),VP=w.looseObject({label:w.string().min(1)}),RP=w.looseObject({layouts:w.record(w.string(),w.unknown()),plugin:w.custom(($)=>typeof $==="function").optional(),routes:w.array(wP),entityDisplay:w.record(w.string(),VP),content:w.unknown().optional(),themeOverride:w.string().optional(),headScripts:w.array(w.string()).optional(),staticAssets:w.record(w.string(),w.string()).optional()}),zP=w.custom(($)=>RP.safeParse($).success);function MP($,U={}){return KW($,U)}import{mkdir as hP,writeFile as iP}from"fs/promises";import{dirname as lP,join as N5}from"path";import{mkdtemp as jP,mkdir as vP,readFile as KP,rm as HP,writeFile as TP}from"fs/promises";import{tmpdir as AP}from"os";import{dirname as SP,join as g5}from"path";function HW($,U){let g=$.indexOf("/");if(g===-1)return{org:U,name:$};return{org:$.slice(0,g),name:$.slice(g+1)}}function $5($,U){let{org:g,name:G}=HW($,U);return`${g}/${G}`}var EP=["name: Your Name Here","Delete this and write your own"];async function G5($,U,g,G,J={}){if(G.length===0)return;let I=J.env??process.env,q=Q0($),D=U5(I,q,g.effectiveGitSyncToken),N=J.contentRepoAdminTokenSelector?U5(I,q,J.contentRepoAdminTokenSelector):void 0,Q=HW(g.contentRepo,U),X=J.contentRepoRemoteResolver?.(g,U,D)??BP(Q,D);if(!X)return;let Y=await jP(g5(AP(),`brains-ops-content-sync-${g.handle}-`)),Z=J.runCommand??LU,W=J.fetchImpl??fetch;try{if(!J.contentRepoRemoteResolver){if(!N)throw Error(`${J.contentRepoAdminTokenSelector??"CONTENT_REPO_ADMIN_TOKEN"} is required to check or create content repos`);await CP(Q,N,W)}await Z("git",["clone",X,Y]),await _P(Y,Z),await Z("git",["config","user.name","brains-ops[bot]"],{cwd:Y}),await Z("git",["config","user.email","41898282+github-actions[bot]@users.noreply.github.com"],{cwd:Y});let j=!1;for(let v of G)if(await LP(Y,v))j=!0;if(!j)return;await Z("git",["add","."],{cwd:Y}),await Z("git",["commit","-m",`chore(content): seed ${g.handle} anchor profile`],{cwd:Y}),await Z("git",["push","origin","HEAD:main"],{cwd:Y})}finally{await HP(Y,{recursive:!0,force:!0})}}async function LP($,U){let g=g5($,U.path),G=await KP(g,"utf8").catch(()=>{return});if(G===U.content)return!1;if(G!==void 0&&!PP(G))return!1;return await vP(SP(g),{recursive:!0}),await TP(g,U.content),!0}function PP($){return EP.some((U)=>$.includes(U))}function U5($,U,g){return s$(g,$,U)}function BP($,U){if(!U)return;return`https://x-access-token:${encodeURIComponent(U)}@github.com/${$.org}/${$.name}.git`}async function CP($,U,g){let{org:G,name:J}=$,q=`https://api.github.com/repos/${`${encodeURIComponent(G)}/${encodeURIComponent(J)}`}`,D={Accept:"application/vnd.github+json",Authorization:`Bearer ${U}`,"User-Agent":"brains-ops","X-GitHub-Api-Version":"2022-11-28"},N=await g(q,{headers:D});if(N.ok)return;if(N.status!==404)throw Error(`Failed to check GitHub repo ${G}/${J}: ${N.status} ${await J5(N)}`);let Q=await g(`https://api.github.com/orgs/${encodeURIComponent(G)}/repos`,{method:"POST",headers:D,body:JSON.stringify({name:J,private:!0,auto_init:!1})});if(Q.ok){console.log(`Created missing content repo ${G}/${J}`);return}if(Q.status===422){if((await g(q,{headers:D})).ok)return}throw Error(`Failed to create GitHub repo ${G}/${J}: ${Q.status} ${await J5(Q)}`)}async function J5($){let U=await $.text();return U.trim().length===0?$.statusText:U}async function _P($,U){try{await U("git",["checkout","-B","main","origin/main"],{cwd:$})}catch{await U("git",["checkout","-B","main"],{cwd:$})}}function q5($){return async(U)=>({brainYaml:bP(U,$),envFile:fP(U,$),contentRepoFiles:xP(U)})}function bP($,U){let g=[`brain: ${$.model}`,"kind: professional",`domain: ${$.domain}`,`preset: ${$.preset}`,...FP($),...rP($),"",mP($),"","plugins:",...$.setup?.delivery==="email"?[" auth-service:",...kP($.setup.email)," notifications:"," defaultRecipient:"," type: email",` address: ${$.setup.email}`]:[],...$.playbooks?.onboarding?[" rover-onboarding:"," enabled: true"]:[]," directory-sync:"," git:",` repo: ${D5($,U)}`," authToken: ${GIT_SYNC_TOKEN}",...$.atproto?[" atproto:",` identifier: ${$.atproto.identifier}`,...$.atproto.accountDid?[` accountDid: ${$.atproto.accountDid}`]:[],...$.atproto.lexiconAuthority!==void 0?[` lexiconAuthority: ${String($.atproto.lexiconAuthority)}`]:[],...uP($.atproto.jetstream)," appPassword: ${ATPROTO_APP_PASSWORD}"]:[]];if($.discordEnabled)g.push(" discord:"),g.push(" botToken: ${DISCORD_BOT_TOKEN}");if($.setup?.delivery==="email")g.push(" email-resend:"),g.push(" apiKey: ${SETUP_EMAIL_API_KEY}"),g.push(" from: ${SETUP_EMAIL_FROM}");return g.push(""),g.join(`
296
296
  `)}function uP($){if(!$)return[];return[" jetstream:",...dG($).trimEnd().split(`
297
- `).map((g)=>` ${g}`)]}function FP($){if(!$.addOverride||$.addOverride.length===0)return[];return["","add:",...$.addOverride.map((U)=>` - ${U}`)]}function rP($){if(!$.siteOverride)return[];return["","site:",` package: ${I5($.siteOverride.package)}`,...$.siteOverride.theme?[` theme: ${I5($.siteOverride.theme)}`]:[]]}function I5($){return JSON.stringify($)}function D5($,U){return $5($.contentRepo,U)}function kP($){return[" setupEmail:",` to: ${$}`," subject: Welcome to Rover \u2014 set up your passkey"," body: |"," Hi,",""," Your Rover is ready.",""," Rover is your own AI \u2014 a private assistant deployed just for you, that holds your notes, links, and ideas, and gets more useful the more you put into it.",""," Set up your passkey:"," {{setupUrl}}",""," This link is single-use. Do not forward it."," It expires at {{expiresAt}}.",""," After setup, open your chat and say hello:"," {{origin}}/chat",""," Sign in with the passkey you just registered. The chat in your browser is where you and Rover will spend most of your time.",""," The onboarding guide shows the way of working \u2014 capture, ask back, shape:"," https://github.com/rizom-ai/brains/blob/main/packages/brains-ops/templates/rover-pilot/docs/user-onboarding.md",""," If this link is expired, does not work, or you did not expect this email, reply to your Rover operator and we will help."]}function mP($){if($.discordEnabled&&$.discordAnchorUserId)return`anchors: ["discord:${$.discordAnchorUserId}"]`;return"anchors: []"}function xP($){return[{path:"anchor-profile/anchor-profile.md",content:yP($)}]}function yP($){let U={kind:"professional",name:$.anchorProfile.name,...$.anchorProfile.description?{description:$.anchorProfile.description}:{},...$.anchorProfile.website?{website:$.anchorProfile.website}:{},...$.anchorProfile.email?{email:$.anchorProfile.email}:{},...$.anchorProfile.socialLinks?{socialLinks:$.anchorProfile.socialLinks}:{}},g=$.anchorProfile.story??"This profile was initialized by brains-ops. Edit it in your content repo.";return`---
297
+ `).map((g)=>` ${g}`)]}function FP($){if(!$.addOverride||$.addOverride.length===0)return[];return["","add:",...$.addOverride.map((U)=>` - ${U}`)]}function rP($){if(!$.siteOverride)return[];return["","site:",` package: ${I5($.siteOverride.package)}`,...$.siteOverride.theme?[` theme: ${I5($.siteOverride.theme)}`]:[]]}function I5($){return JSON.stringify($)}function D5($,U){return $5($.contentRepo,U)}function kP($){return[" setupEmail:",` to: ${$}`," subject: Welcome to Rover \u2014 set up your passkey"," body: |"," Hi,",""," Your Rover is ready.",""," Rover is your own AI \u2014 a private assistant deployed just for you, that holds your notes, links, and ideas, and gets more useful the more you put into it.",""," Set up your passkey:"," {{setupUrl}}",""," This link is single-use. Do not forward it."," It expires at {{expiresAt}}.",""," After setup, open your chat and say hello:"," {{origin}}/chat",""," Sign in with the passkey you just registered. The chat in your browser is where you and Rover will spend most of your time.",""," The onboarding guide shows the way of working \u2014 capture, ask back, shape:"," https://github.com/rizom-ai/brains/blob/main/packages/brains-ops/templates/rover-pilot/docs/user-onboarding.md",""," If this link is expired, does not work, or you did not expect this email, reply to your Rover operator and we will help."]}function mP($){if($.discordEnabled&&$.discordAnchorUserId)return`anchors: ["discord:${$.discordAnchorUserId}"]`;return"anchors: []"}function xP($){return[{path:"anchor-profile/anchor-profile.md",content:yP($)}]}function yP($){let U={name:$.anchorProfile.name,...$.anchorProfile.description?{description:$.anchorProfile.description}:{},...$.anchorProfile.website?{website:$.anchorProfile.website}:{},...$.anchorProfile.email?{email:$.anchorProfile.email}:{},...$.anchorProfile.socialLinks?{socialLinks:$.anchorProfile.socialLinks}:{}},g=$.anchorProfile.story??"This profile was initialized by brains-ops. Edit it in your content repo.";return`---
298
298
  ${dG(U).trimEnd()}
299
299
  ---
300
300
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rizom/ops",
3
- "version": "0.2.0-alpha.224",
3
+ "version": "0.2.0-alpha.225",
4
4
  "description": "Operator CLI for managing private brain fleet registry repos",
5
5
  "keywords": [
6
6
  "brains",