juneau 0.1.0
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/README.md +320 -0
- package/dist/adapters/dashboardAdapter.d.ts +10 -0
- package/dist/adapters/dashboardAdapter.d.ts.map +1 -0
- package/dist/adapters/mockAdapter.d.ts +8 -0
- package/dist/adapters/mockAdapter.d.ts.map +1 -0
- package/dist/components/AiChat/AiChat.d.ts +39 -0
- package/dist/components/AiChat/AiChat.d.ts.map +1 -0
- package/dist/components/AiChatHeader/AiChatHeader.d.ts +10 -0
- package/dist/components/AiChatHeader/AiChatHeader.d.ts.map +1 -0
- package/dist/components/AiError/AiError.d.ts +7 -0
- package/dist/components/AiError/AiError.d.ts.map +1 -0
- package/dist/components/AiInput/AiInput.d.ts +29 -0
- package/dist/components/AiInput/AiInput.d.ts.map +1 -0
- package/dist/components/AiMessageBubble/AiMessageBubble.d.ts +12 -0
- package/dist/components/AiMessageBubble/AiMessageBubble.d.ts.map +1 -0
- package/dist/components/AiMessageList/AiMessageList.d.ts +13 -0
- package/dist/components/AiMessageList/AiMessageList.d.ts.map +1 -0
- package/dist/components/AiSidebar/AiSidebar.d.ts +26 -0
- package/dist/components/AiSidebar/AiSidebar.d.ts.map +1 -0
- package/dist/components/AiTypingIndicator/AiTypingIndicator.d.ts +2 -0
- package/dist/components/AiTypingIndicator/AiTypingIndicator.d.ts.map +1 -0
- package/dist/components/JuneauProvider/JuneauProvider.d.ts +43 -0
- package/dist/components/JuneauProvider/JuneauProvider.d.ts.map +1 -0
- package/dist/components/icons.d.ts +17 -0
- package/dist/components/icons.d.ts.map +1 -0
- package/dist/components/parts/AiMessagePartRenderer.d.ts +9 -0
- package/dist/components/parts/AiMessagePartRenderer.d.ts.map +1 -0
- package/dist/components/parts/AiProposalCard.d.ts +9 -0
- package/dist/components/parts/AiProposalCard.d.ts.map +1 -0
- package/dist/components/parts/AiTablePart.d.ts +7 -0
- package/dist/components/parts/AiTablePart.d.ts.map +1 -0
- package/dist/core/stream.d.ts +8 -0
- package/dist/core/stream.d.ts.map +1 -0
- package/dist/core/types.d.ts +59 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/hooks/useAiChat.d.ts +33 -0
- package/dist/hooks/useAiChat.d.ts.map +1 -0
- package/dist/i18n/context.d.ts +8 -0
- package/dist/i18n/context.d.ts.map +1 -0
- package/dist/i18n/index.d.ts +4 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/locales/cs.d.ts +3 -0
- package/dist/i18n/locales/cs.d.ts.map +1 -0
- package/dist/i18n/locales/en.d.ts +3 -0
- package/dist/i18n/locales/en.d.ts.map +1 -0
- package/dist/i18n/types.d.ts +24 -0
- package/dist/i18n/types.d.ts.map +1 -0
- package/dist/index.cjs +49 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9513 -0
- package/dist/index.js.map +1 -0
- package/dist/style.css +1 -0
- package/package.json +80 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("react"),C=require("react/jsx-runtime"),ne=e=>new Promise(t=>setTimeout(t,e));async function Un(e,t,n){for await(const r of e)if(n?.aborted||(t(r),r.type==="done"||r.type==="error"))break}const Hi={async*sendMessage(e){const n=[...e.messages].reverse().find(i=>i.role==="user")?.parts.find(i=>i.type==="text"),r=n?.type==="text"?n.text.toLowerCase():"";r.includes("table")||r.includes("data")||r.includes("list")||r.includes("show")?yield*qi():r.includes("proposal")||r.includes("suggest")||r.includes("recommend")?yield*$i():r.includes("help")||r.includes("what can")||r.includes("how do")?yield*Vi():r.includes("error")||r.includes("fail")||r.includes("break")?yield*Ui():yield*Wi(r)}};async function*qi(){yield*ee(`Here is a summary of the data you requested:
|
|
2
|
+
|
|
3
|
+
`,30),await ne(400),yield{type:"part",part:{type:"table",columns:["Name","Category","Value","Status"],rows:[{Name:"Item Alpha",Category:"Type A",Value:"1,200",Status:"Active"},{Name:"Item Beta",Category:"Type B",Value:"840",Status:"Active"},{Name:"Item Gamma",Category:"Type A",Value:"3,050",Status:"Pending"},{Name:"Item Delta",Category:"Type C",Value:"610",Status:"Inactive"},{Name:"Item Epsilon",Category:"Type B",Value:"2,200",Status:"Active"}]}},await ne(300),yield*ee(`
|
|
4
|
+
Total across all entries: **7,900** — Type A accounts for the largest share at 53%.`,25),yield{type:"done"}}async function*$i(){yield*ee(`Based on the current data, I have a suggestion for you:
|
|
5
|
+
|
|
6
|
+
`,30),await ne(500),yield{type:"part",part:{type:"proposal",proposal:{id:"mock-proposal-1",title:"Save this as a recurring report",description:"This summary can be automatically generated on a schedule so you always have up-to-date insights.",confirmLabel:"Save report",cancelLabel:"Dismiss",payload:{reportType:"summary",schedule:"weekly"}}}},yield{type:"done"}}async function*Vi(){yield*ee(`I'm a general-purpose AI assistant. Here's what I can help with:
|
|
7
|
+
|
|
8
|
+
`,30),await ne(200),yield*ee(`- **Summarise data** — ask me to show, list, or summarise information
|
|
9
|
+
`,22),await ne(150),yield*ee(`- **Make suggestions** — ask me to recommend or propose something
|
|
10
|
+
`,22),await ne(150),yield*ee(`- **Answer questions** — ask me anything and I'll do my best
|
|
11
|
+
`,22),await ne(200),yield*ee(`
|
|
12
|
+
Try asking: *"Show me the data"* or *"Can you suggest something?"*`,25),yield{type:"done"}}async function*Ui(){yield*ee("Attempting to process your request…",30),await ne(800),yield{type:"error",message:"Simulated error: the upstream service returned an unexpected response."}}async function*Wi(e){yield*ee(`Got it — you asked about *"${e||"your request"}"*.
|
|
13
|
+
|
|
14
|
+
`,30),await ne(400),yield*ee(`I'm a **mock adapter** used for development. I respond to a few trigger words:
|
|
15
|
+
|
|
16
|
+
`,25),await ne(200),yield*ee(`- Say **"show"**, **"list"**, **"data"**, or **"table"** → renders a data table
|
|
17
|
+
`,22),await ne(150),yield*ee(`- Say **"suggest"**, **"recommend"**, or **"proposal"** → renders a proposal card
|
|
18
|
+
`,22),await ne(150),yield*ee(`- Say **"help"** or **"what can you do"** → shows capabilities
|
|
19
|
+
`,22),await ne(150),yield*ee(`- Say **"error"** or **"fail"** → simulates an error response
|
|
20
|
+
`,22),yield{type:"done"}}async function*ee(e,t){for(let r=0;r<e.length;r+=3)yield{type:"text",text:e.slice(r,r+3)},await ne(t)}let Qi=0;const sn=()=>`msg-${++Qi}-${Date.now()}`;function dr({adapter:e,context:t,onProposalConfirm:n,onProposalCancel:r}){const[i,o]=G.useState([]),[l,a]=G.useState(""),[s,u]=G.useState(!1),[f,c]=G.useState(null),p=G.useRef(null),h=G.useCallback(z=>{o(F=>{const j=F[F.length-1];return!j||j.role!=="assistant"?F:[...F.slice(0,-1),{...j,parts:[...j.parts,z]}]})},[]),g=G.useCallback(z=>{o(F=>{const j=F[F.length-1];if(!j||j.role!=="assistant")return F;const y=[...j.parts],T=y[y.length-1];return T?.type==="text"?y[y.length-1]={type:"text",text:T.text+z}:y.push({type:"text",text:z}),[...F.slice(0,-1),{...j,parts:y}]})},[]),w=G.useCallback(async(z,F)=>{c(null);const j={id:sn(),role:"user",parts:[{type:"text",text:z}],createdAt:new Date},y={id:sn(),role:"assistant",parts:[],createdAt:new Date};o(_=>[..._,j,y]),u(!0),p.current?.abort();const T=new AbortController;p.current=T;try{const _=e.sendMessage({messages:[...F,j],context:t});await Un(_,B=>{switch(B.type){case"text":g(B.text);break;case"part":h(B.part);break;case"error":h({type:"error",message:B.message}),c(B.message);break;case"done":break}},T.signal)}catch(_){const B=_ instanceof Error?_.message:"Unknown error occurred";c(B),h({type:"error",message:B})}finally{u(!1)}},[e,t,g,h]),S=G.useCallback(async()=>{const z=l.trim();!z||s||(a(""),await w(z,i))},[l,s,i,w]),x=G.useCallback(async z=>{!z.trim()||s||await w(z,i)},[s,i,w]),I=G.useCallback(async z=>{if(s)return;c(null),u(!0);const F={id:sn(),role:"assistant",parts:[],createdAt:new Date};o(T=>[...T,F]),p.current?.abort();const j=new AbortController;p.current=j;const y={id:sn(),role:"system",parts:[{type:"text",text:z}],createdAt:new Date};try{const T=e.sendMessage({messages:[y],context:t});await Un(T,_=>{switch(_.type){case"text":g(_.text);break;case"part":h(_.part);break;case"error":h({type:"error",message:_.message}),c(_.message);break;case"done":break}},j.signal)}catch(T){const _=T instanceof Error?T.message:"Unknown error occurred";c(_),h({type:"error",message:_})}finally{u(!1)}},[s,e,t,g,h]),E=G.useCallback(()=>{p.current?.abort(),u(!1)},[]),M=G.useCallback(()=>{p.current?.abort(),o([]),a(""),c(null),u(!1)},[]),R=G.useCallback((z,F)=>{n?.(z,F)},[n]),k=G.useCallback(z=>{r?.(z)},[r]);return{messages:i,input:l,setInput:a,sendMessage:S,sendMessageWithText:x,sendGreeting:I,stop:E,isLoading:s,error:f,reset:M,confirmProposal:R,cancelProposal:k}}const yn={sidebarTitle:"AI Assistant",clearConversation:"Clear conversation",inputPlaceholder:"Ask a question… (Enter to send)",sendMessage:"Send message",stopMessage:"Stop",emptyStateText:"How can I help you today?",emptyStateHint:'Try: "Show me the data" or "Can you suggest something?"',proposalConfirm:"Confirm",proposalCancel:"Cancel",errorDismiss:"Dismiss",actionAddFile:"Add file",actionQuickActions:"Quick actions",actionNew:"New",actionHistory:"History",actionRules:"Rules"},gr=G.createContext(yn);function tn(){return G.useContext(gr)}const Yi="_root_14q8g_1",Xi={root:Yi};function Gi({children:e,theme:t,labels:n,className:r,style:i}){const o=n?{...yn,...n}:yn,l=t?Ji(t):void 0;return C.jsx(gr.Provider,{value:o,children:C.jsx("div",{className:[Xi.root,r].filter(Boolean).join(" "),style:{...l,...i},children:e})})}function Ji(e){const t={"--juneau-color-primary":e.colorPrimary,"--juneau-color-primary-dark":e.colorPrimaryDark,"--juneau-color-primary-light":e.colorPrimaryLight,"--juneau-color-primary-border":e.colorPrimaryBorder,"--juneau-color-accent":e.colorAccent,"--juneau-color-accent-dark":e.colorAccentDark,"--juneau-color-accent-light":e.colorAccentLight,"--juneau-color-accent-border":e.colorAccentBorder,"--juneau-color-surface":e.colorSurface,"--juneau-color-surface-raised":e.colorSurfaceRaised,"--juneau-color-surface-hover":e.colorSurfaceHover,"--juneau-color-border":e.colorBorder,"--juneau-color-border-subtle":e.colorBorderSubtle,"--juneau-color-text-primary":e.colorTextPrimary,"--juneau-color-text-secondary":e.colorTextSecondary,"--juneau-color-text-muted":e.colorTextMuted,"--juneau-color-text-faint":e.colorTextFaint,"--juneau-color-text-inverse":e.colorTextInverse,"--juneau-color-assistant-avatar":e.colorAssistantAvatar,"--juneau-radius-sm":e.radiusSm,"--juneau-radius-md":e.radiusMd,"--juneau-radius-lg":e.radiusLg,"--juneau-font-family":e.fontFamily};return Object.fromEntries(Object.entries(t).filter(([,n])=>n!==void 0))}const Ki={sidebarTitle:"AI Asistent",clearConversation:"Vymazat konverzaci",inputPlaceholder:"Zeptejte se na cokoliv… (Enter pro odeslání)",sendMessage:"Odeslat zprávu",stopMessage:"Zastavit",emptyStateText:"Jak vám mohu dnes pomoci?",emptyStateHint:'Zkuste: „Ukáž mi data" nebo „Máš nějaký návrh?"',proposalConfirm:"Potvrdit",proposalCancel:"Zrušit",errorDismiss:"Zavřít",actionAddFile:"Přidat soubor",actionQuickActions:"Rychlé akce",actionNew:"Nový",actionHistory:"Historie",actionRules:"Pravidla"};function yr({className:e,style:t,"aria-hidden":n=!0}){return C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",className:e,style:t,"aria-hidden":n,children:C.jsx("path",{d:"M248 0C181.4 0 128 53.4 128 120c0 23.3 6.6 45 18 63.4C122.4 205 112 231.3 112 260c0 49.5 27.7 92.7 68.6 114.7C173.2 386.3 168 398.6 168 412c0 38.7 27.5 70.9 64 78.3V496c0 8.8 7.2 16 16 16h80c8.8 0 16-7.2 16-16v-5.7c36.5-7.4 64-39.6 64-78.3 0-13.4-5.2-25.7-12.6-37.3C435.3 352.7 463 309.5 463 260c0-28.7-10.4-55-27-76.6 11.4-18.4 18-40.1 18-63.4C454 53.4 400.6 0 334 0c-21.4 0-41.4 5.9-58.5 16.2A119.7 119.7 0 0 0 248 0zm-8 168a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm96 0a24 24 0 1 1 0 48 24 24 0 1 1 0-48zM200 272a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zm128 24a24 24 0 1 1 0-48 24 24 0 1 1 0 48z"})})}function Zi({className:e,style:t,"aria-hidden":n=!0}){return C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",className:e,style:t,"aria-hidden":n,children:C.jsx("path",{d:"M498.1 5.6c10.1 7 15.4 19.1 13.5 31.2l-64 416c-1.5 9.7-7.4 18.2-16 23s-18.9 5.4-28 1.6L284 427.7l-68.5 74.1c-8.9 9.7-22.9 12.9-35.2 8.1S160 493.2 160 480V396.4c0-4 1.5-7.8 4.2-10.8L331.8 202.8c5.8-6.3 5.6-16-.4-22s-15.7-6.4-22-.7L106 360.8 17.7 316.6C7.1 311.3 .3 300.7 0 288.9s6.2-22.8 16.4-28.7l448-256c10.7-6.1 23.9-5.5 34 1.4z"})})}function el({className:e,style:t,"aria-hidden":n=!0}){return C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor",className:e,style:t,"aria-hidden":n,children:C.jsx("path",{d:"M364.2 83.8c-24.4-24.4-64-24.4-88.4 0l-184 184c-42.1 42.1-42.1 110.3 0 152.4s110.3 42.1 152.4 0l152-152c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-152 152c-64 64-167.6 64-231.6 0s-64-167.6 0-231.6l184-184c46.3-46.3 121.3-46.3 167.6 0s46.3 121.3 0 167.6l-176 176c-28.6 28.6-75 28.6-103.6 0s-28.6-75 0-103.6l144-144c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-144 144c-6.7 6.7-6.7 17.7 0 24.4s17.7 6.7 24.4 0l176-176c24.4-24.4 24.4-64 0-88.4z"})})}function nl({className:e,style:t,"aria-hidden":n=!0}){return C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor",className:e,style:t,"aria-hidden":n,children:C.jsx("path",{d:"M349.4 44.6c5.9-13.7 1.5-29.7-10.6-38.5s-28.6-8-39.9 1.8l-256 224c-10 8.8-13.6 22.9-8.9 35.3S50.7 288 64 288l111.5 0L98.6 467.4c-5.9 13.7-1.5 29.7 10.6 38.5s28.6 8 39.9-1.8l256-224c10-8.8 13.6-22.9 8.9-35.3s-16.6-20.7-30-20.7l-111.5 0L349.4 44.6z"})})}function tl({className:e,style:t,"aria-hidden":n=!0}){return C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor",className:e,style:t,"aria-hidden":n,children:C.jsx("path",{d:"M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"})})}function rl({className:e,style:t,"aria-hidden":n=!0}){return C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",className:e,style:t,"aria-hidden":n,children:C.jsx("path",{d:"M75 75L41 41C25.9 25.9 0 36.6 0 57.9L0 168c0 13.3 10.7 24 24 24l110.1 0c21.4 0 32.1-25.9 17-41l-31.8-31.8C143.9 83.5 196.2 64 252.6 64C370.8 64 464 157.8 464 276c0 77.5-40.8 145.4-102 182.9c-15.1 9.2-19.9 29-10.7 44.1s29 19.9 44.1 10.7C471 467.5 528 378.4 528 276C528 124.1 404.5 0 252.6 0C186 0 125.3 26.4 80 70.2L75 75zM256 152c-13.3 0-24 10.7-24 24l0 104c0 6.4 2.5 12.5 7 17l72 72c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-65-65 0-94.1c0-13.3-10.7-24-24-24z"})})}function il({className:e,style:t,"aria-hidden":n=!0}){return C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",className:e,style:t,"aria-hidden":n,children:C.jsx("path",{d:"M0 80C0 53.5 21.5 32 48 32l96 0c26.5 0 48 21.5 48 48l0 16 192 0 0-16c0-26.5 21.5-48 48-48l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-26.6 0c-25.8 50.9-72.7 88.5-129.4 99.8L384 416l32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l32 0 0-72.2C135.3 332.5 88.4 294.9 62.6 244L48 244c-26.5 0-48-21.5-48-48L0 80zM128 240c0 70.7 57.3 128 128 128s128-57.3 128-128l0-128L128 112l0 128zM512 176l0-64-64 0 0 64-48 0 0 16c0 8.8-.7 17.4-2 25.8c3.3 .1 6.6 .2 9.9 .2l56 0c26.5 0 48-21.5 48-48l0-64zM48 176c0 26.5 21.5 48 48 48l56 0c3.4 0 6.7-.1 9.9-.2c-1.3-8.4-2-17-2-25.8l0-16-48 0 0-64-64 0 0 58z"})})}function ll({className:e,style:t,"aria-hidden":n=!0}){return C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",className:e,style:t,"aria-hidden":n,children:C.jsx("path",{d:"M125.7 160H176c17.7 0 32 14.3 32 32s-14.3 32-32 32H48c-17.7 0-32-14.3-32-32V64c0-17.7 14.3-32 32-32s32 14.3 32 32v51.2L97.6 97.6c87.5-87.5 229.3-87.5 316.8 0s87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3s-163.8-62.5-226.3 0L125.7 160z"})})}function ol({className:e,style:t,"aria-hidden":n=!0}){return C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:e,style:t,"aria-hidden":n,children:C.jsx("path",{fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})})}function al(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const sl=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ul=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,cl={};function It(e,t){return(cl.jsx?ul:sl).test(e)}const fl=/[ \t\n\f\r]/g;function hl(e){return typeof e=="object"?e.type==="text"?At(e.value):!1:At(e)}function At(e){return e.replace(fl,"")===""}class rn{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}rn.prototype.normal={};rn.prototype.property={};rn.prototype.space=void 0;function xr(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new rn(n,r,t)}function Wn(e){return e.toLowerCase()}class ie{constructor(t,n){this.attribute=n,this.property=t}}ie.prototype.attribute="";ie.prototype.booleanish=!1;ie.prototype.boolean=!1;ie.prototype.commaOrSpaceSeparated=!1;ie.prototype.commaSeparated=!1;ie.prototype.defined=!1;ie.prototype.mustUseProperty=!1;ie.prototype.number=!1;ie.prototype.overloadedBoolean=!1;ie.prototype.property="";ie.prototype.spaceSeparated=!1;ie.prototype.space=void 0;let pl=0;const N=De(),Y=De(),Qn=De(),v=De(),W=De(),ze=De(),oe=De();function De(){return 2**++pl}const Yn=Object.freeze(Object.defineProperty({__proto__:null,boolean:N,booleanish:Y,commaOrSpaceSeparated:oe,commaSeparated:ze,number:v,overloadedBoolean:Qn,spaceSeparated:W},Symbol.toStringTag,{value:"Module"})),An=Object.keys(Yn);class rt extends ie{constructor(t,n,r,i){let o=-1;if(super(t,n),_t(this,"space",i),typeof r=="number")for(;++o<An.length;){const l=An[o];_t(this,An[o],(r&Yn[l])===Yn[l])}}}rt.prototype.defined=!0;function _t(e,t,n){n&&(e[t]=n)}function Be(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new rt(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Wn(r)]=r,n[Wn(o.attribute)]=r}return new rn(t,n,e.space)}const kr=Be({properties:{ariaActiveDescendant:null,ariaAtomic:Y,ariaAutoComplete:null,ariaBusy:Y,ariaChecked:Y,ariaColCount:v,ariaColIndex:v,ariaColSpan:v,ariaControls:W,ariaCurrent:null,ariaDescribedBy:W,ariaDetails:null,ariaDisabled:Y,ariaDropEffect:W,ariaErrorMessage:null,ariaExpanded:Y,ariaFlowTo:W,ariaGrabbed:Y,ariaHasPopup:null,ariaHidden:Y,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:W,ariaLevel:v,ariaLive:null,ariaModal:Y,ariaMultiLine:Y,ariaMultiSelectable:Y,ariaOrientation:null,ariaOwns:W,ariaPlaceholder:null,ariaPosInSet:v,ariaPressed:Y,ariaReadOnly:Y,ariaRelevant:null,ariaRequired:Y,ariaRoleDescription:W,ariaRowCount:v,ariaRowIndex:v,ariaRowSpan:v,ariaSelected:Y,ariaSetSize:v,ariaSort:null,ariaValueMax:v,ariaValueMin:v,ariaValueNow:v,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function br(e,t){return t in e?e[t]:t}function wr(e,t){return br(e,t.toLowerCase())}const ml=Be({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ze,acceptCharset:W,accessKey:W,action:null,allow:null,allowFullScreen:N,allowPaymentRequest:N,allowUserMedia:N,alpha:N,alt:null,as:null,async:N,autoCapitalize:null,autoComplete:W,autoFocus:N,autoPlay:N,blocking:W,capture:null,charSet:null,checked:N,cite:null,className:W,closedBy:null,colorSpace:null,cols:v,colSpan:v,command:null,commandFor:null,content:null,contentEditable:Y,controls:N,controlsList:W,coords:v|ze,crossOrigin:null,data:null,dateTime:null,decoding:null,default:N,defer:N,dir:null,dirName:null,disabled:N,download:Qn,draggable:Y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:N,formTarget:null,headers:W,height:v,hidden:Qn,high:v,href:null,hrefLang:null,htmlFor:W,httpEquiv:W,id:null,imageSizes:null,imageSrcSet:null,inert:N,inputMode:null,integrity:null,is:null,isMap:N,itemId:null,itemProp:W,itemRef:W,itemScope:N,itemType:W,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:N,low:v,manifest:null,max:null,maxLength:v,media:null,method:null,min:null,minLength:v,multiple:N,muted:N,name:null,nonce:null,noModule:N,noValidate:N,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:N,optimum:v,pattern:null,ping:W,placeholder:null,playsInline:N,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:N,referrerPolicy:null,rel:W,required:N,reversed:N,rows:v,rowSpan:v,sandbox:W,scope:null,scoped:N,seamless:N,selected:N,shadowRootClonable:N,shadowRootCustomElementRegistry:N,shadowRootDelegatesFocus:N,shadowRootMode:null,shadowRootSerializable:N,shape:null,size:v,sizes:null,slot:null,span:v,spellCheck:Y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:v,step:null,style:null,tabIndex:v,target:null,title:null,translate:null,type:null,typeMustMatch:N,useMap:null,value:Y,width:v,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:W,axis:null,background:null,bgColor:null,border:v,borderColor:null,bottomMargin:v,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:N,declare:N,event:null,face:null,frame:null,frameBorder:null,hSpace:v,leftMargin:v,link:null,longDesc:null,lowSrc:null,marginHeight:v,marginWidth:v,noResize:N,noHref:N,noShade:N,noWrap:N,object:null,profile:null,prompt:null,rev:null,rightMargin:v,rules:null,scheme:null,scrolling:Y,standby:null,summary:null,text:null,topMargin:v,valueType:null,version:null,vAlign:null,vLink:null,vSpace:v,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:N,disablePictureInPicture:N,disableRemotePlayback:N,exportParts:ze,part:W,prefix:null,property:null,results:v,security:null,unselectable:null},space:"html",transform:wr}),dl=Be({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:oe,accentHeight:v,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:v,amplitude:v,arabicForm:null,ascent:v,attributeName:null,attributeType:null,azimuth:v,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:v,by:null,calcMode:null,capHeight:v,className:W,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:v,diffuseConstant:v,direction:null,display:null,dur:null,divisor:v,dominantBaseline:null,download:N,dx:null,dy:null,edgeMode:null,editable:null,elevation:v,enableBackground:null,end:null,event:null,exponent:v,externalResourcesRequired:null,fill:null,fillOpacity:v,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ze,g2:ze,glyphName:ze,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:v,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:v,horizOriginX:v,horizOriginY:v,id:null,ideographic:v,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:v,k:v,k1:v,k2:v,k3:v,k4:v,kernelMatrix:oe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:v,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:v,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:v,overlineThickness:v,paintOrder:null,panose1:null,path:null,pathLength:v,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:W,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:v,pointsAtY:v,pointsAtZ:v,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:oe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:oe,rev:oe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:oe,requiredFeatures:oe,requiredFonts:oe,requiredFormats:oe,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:v,specularExponent:v,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:v,strikethroughThickness:v,string:null,stroke:null,strokeDashArray:oe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:v,strokeOpacity:v,strokeWidth:null,style:null,surfaceScale:v,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:oe,tabIndex:v,tableValues:null,target:null,targetX:v,targetY:v,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:oe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:v,underlineThickness:v,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:v,values:null,vAlphabetic:v,vMathematical:v,vectorEffect:null,vHanging:v,vIdeographic:v,version:null,vertAdvY:v,vertOriginX:v,vertOriginY:v,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:v,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:br}),Cr=Be({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Sr=Be({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:wr}),Er=Be({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),gl={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},yl=/[A-Z]/g,Tt=/-[a-z]/g,xl=/^data[-\w.:]+$/i;function kl(e,t){const n=Wn(t);let r=t,i=ie;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&xl.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Tt,wl);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Tt.test(o)){let l=o.replace(yl,bl);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=rt}return new i(r,t)}function bl(e){return"-"+e.toLowerCase()}function wl(e){return e.charAt(1).toUpperCase()}const Cl=xr([kr,ml,Cr,Sr,Er],"html"),it=xr([kr,dl,Cr,Sr,Er],"svg");function Sl(e){return e.join(" ").trim()}function vr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Re={},_n,Pt;function El(){if(Pt)return _n;Pt=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g,s=`
|
|
21
|
+
`,u="/",f="*",c="",p="comment",h="declaration";function g(S,x){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];x=x||{};var I=1,E=1;function M(D){var P=D.match(t);P&&(I+=P.length);var V=D.lastIndexOf(s);E=~V?D.length-V:E+D.length}function R(){var D={line:I,column:E};return function(P){return P.position=new k(D),j(),P}}function k(D){this.start=D,this.end={line:I,column:E},this.source=x.source}k.prototype.content=S;function z(D){var P=new Error(x.source+":"+I+":"+E+": "+D);if(P.reason=D,P.filename=x.source,P.line=I,P.column=E,P.source=S,!x.silent)throw P}function F(D){var P=D.exec(S);if(P){var V=P[0];return M(V),S=S.slice(V.length),P}}function j(){F(n)}function y(D){var P;for(D=D||[];P=T();)P!==!1&&D.push(P);return D}function T(){var D=R();if(!(u!=S.charAt(0)||f!=S.charAt(1))){for(var P=2;c!=S.charAt(P)&&(f!=S.charAt(P)||u!=S.charAt(P+1));)++P;if(P+=2,c===S.charAt(P-1))return z("End of comment missing");var V=S.slice(2,P-2);return E+=2,M(V),S=S.slice(P),E+=2,D({type:p,comment:V})}}function _(){var D=R(),P=F(r);if(P){if(T(),!F(i))return z("property missing ':'");var V=F(o),X=D({type:h,property:w(P[0].replace(e,c)),value:V?w(V[0].replace(e,c)):c});return F(l),X}}function B(){var D=[];y(D);for(var P;P=_();)P!==!1&&(D.push(P),y(D));return D}return j(),B()}function w(S){return S?S.replace(a,c):c}return _n=g,_n}var zt;function vl(){if(zt)return Re;zt=1;var e=Re&&Re.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Re,"__esModule",{value:!0}),Re.default=n;const t=e(El());function n(r,i){let o=null;if(!r||typeof r!="string")return o;const l=(0,t.default)(r),a=typeof i=="function";return l.forEach(s=>{if(s.type!=="declaration")return;const{property:u,value:f}=s;a?i(u,f,s):f&&(o=o||{},o[u]=f)}),o}return Re}var Ue={},Lt;function Il(){if(Lt)return Ue;Lt=1,Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(u){return!u||n.test(u)||e.test(u)},l=function(u,f){return f.toUpperCase()},a=function(u,f){return"".concat(f,"-")},s=function(u,f){return f===void 0&&(f={}),o(u)?u:(u=u.toLowerCase(),f.reactCompat?u=u.replace(i,a):u=u.replace(r,a),u.replace(t,l))};return Ue.camelCase=s,Ue}var We,Dt;function Al(){if(Dt)return We;Dt=1;var e=We&&We.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(vl()),n=Il();function r(i,o){var l={};return!i||typeof i!="string"||(0,t.default)(i,function(a,s){a&&s&&(l[(0,n.camelCase)(a,o)]=s)}),l}return r.default=r,We=r,We}var _l=Al();const Tl=vr(_l),Ir=Ar("end"),lt=Ar("start");function Ar(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Pl(e){const t=lt(e),n=Ir(e);if(t&&n)return{start:t,end:n}}function Je(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?jt(e.position):"start"in e||"end"in e?jt(e):"line"in e||"column"in e?Xn(e):""}function Xn(e){return Ft(e&&e.line)+":"+Ft(e&&e.column)}function jt(e){return Xn(e&&e.start)+"-"+Xn(e&&e.end)}function Ft(e){return e&&typeof e=="number"?e:1}class Z extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(l=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?o.ruleId=r:(o.source=r.slice(0,s),o.ruleId=r.slice(s+1))}if(!o.place&&o.ancestors&&o.ancestors){const s=o.ancestors[o.ancestors.length-1];s&&(o.place=s.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Je(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Z.prototype.file="";Z.prototype.name="";Z.prototype.reason="";Z.prototype.message="";Z.prototype.stack="";Z.prototype.column=void 0;Z.prototype.line=void 0;Z.prototype.ancestors=void 0;Z.prototype.cause=void 0;Z.prototype.fatal=void 0;Z.prototype.place=void 0;Z.prototype.ruleId=void 0;Z.prototype.source=void 0;const ot={}.hasOwnProperty,zl=new Map,Ll=/[A-Z]/g,Dl=new Set(["table","tbody","thead","tfoot","tr"]),jl=new Set(["td","th"]),_r="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Fl(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=$l(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=ql(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?it:Cl,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Tr(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Tr(e,t,n){if(t.type==="element")return Ml(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Rl(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Ol(e,t,n);if(t.type==="mdxjsEsm")return Nl(e,t);if(t.type==="root")return Bl(e,t,n);if(t.type==="text")return Hl(e,t)}function Ml(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=it,e.schema=i),e.ancestors.push(t);const o=zr(e,t.tagName,!1),l=Vl(e,t);let a=st(e,t);return Dl.has(t.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!hl(s):!0})),Pr(e,l,o,t),at(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function Rl(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}en(e,t.position)}function Nl(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);en(e,t.position)}function Ol(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=it,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:zr(e,t.name,!0),l=Ul(e,t),a=st(e,t);return Pr(e,l,o,t),at(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function Bl(e,t,n){const r={};return at(r,st(e,t)),e.create(t,e.Fragment,r,n)}function Hl(e,t){return t.value}function Pr(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function at(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function ql(e,t,n){return r;function r(i,o,l,a){const u=Array.isArray(l.children)?n:t;return a?u(o,l,a):u(o,l)}}function $l(e,t){return n;function n(r,i,o,l){const a=Array.isArray(o.children),s=lt(r);return t(i,o,l,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Vl(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&ot.call(t.properties,i)){const o=Wl(e,i,t.properties[i]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&jl.has(t.tagName)?r=a:n[l]=a}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Ul(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const a=l.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else en(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else en(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function st(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:zl;for(;++r<t.children.length;){const o=t.children[r];let l;if(e.passKeys){const s=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(s){const u=i.get(s)||0;l=s+"-"+u,i.set(s,u+1)}}const a=Tr(e,o,l);a!==void 0&&n.push(a)}return n}function Wl(e,t,n){const r=kl(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?al(n):Sl(n)),r.property==="style"){let i=typeof n=="object"?n:Ql(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Yl(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?gl[r.property]||r.property:r.attribute,n]}}function Ql(e,t){try{return Tl(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Z("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=_r+"#cannot-parse-style-attribute",i}}function zr(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,l;for(;++o<i.length;){const a=It(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=l}else r=It(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return ot.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);en(e)}function en(e,t){const n=new Z("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=_r+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Yl(e){const t={};let n;for(n in e)ot.call(e,n)&&(t[Xl(n)]=e[n]);return t}function Xl(e){let t=e.replace(Ll,Gl);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Gl(e){return"-"+e.toLowerCase()}const Tn={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Jl={};function ut(e,t){const n=Jl,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Lr(e,r,i)}function Lr(e,t,n){if(Kl(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Mt(e.children,t,n)}return Array.isArray(e)?Mt(e,t,n):""}function Mt(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Lr(e[i],t,n);return r.join("")}function Kl(e){return!!(e&&typeof e=="object")}const Rt=document.createElement("i");function ct(e){const t="&"+e+";";Rt.innerHTML=t;const n=Rt.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ae(e,t,n,r){const i=e.length;let o=0,l;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)l=r.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function se(e,t){return e.length>0?(ae(e,e.length,0,t),e):t}const Nt={}.hasOwnProperty;function Dr(e){const t={};let n=-1;for(;++n<e.length;)Zl(t,e[n]);return t}function Zl(e,t){let n;for(n in t){const i=(Nt.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let l;if(o)for(l in o){Nt.call(i,l)||(i[l]=[]);const a=o[l];eo(i[l],Array.isArray(a)?a:a?[a]:[])}}}function eo(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ae(e,0,0,r)}function jr(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function pe(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const te=ve(/[A-Za-z]/),K=ve(/[\dA-Za-z]/),no=ve(/[#-'*+\--9=?A-Z^-~]/);function xn(e){return e!==null&&(e<32||e===127)}const Gn=ve(/\d/),to=ve(/[\dA-Fa-f]/),ro=ve(/[!-/:-@[-`{-~]/);function L(e){return e!==null&&e<-2}function Q(e){return e!==null&&(e<0||e===32)}function H(e){return e===-2||e===-1||e===32}const Cn=ve(/\p{P}|\p{S}/u),Le=ve(/\s/);function ve(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function He(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&K(e.charCodeAt(n+1))&&K(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function $(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(s){return H(s)?(e.enter(n),a(s)):t(s)}function a(s){return H(s)&&o++<i?(e.consume(s),a):(e.exit(n),t(s))}}const io={tokenize:lo};function lo(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),$(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return L(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}const oo={tokenize:ao},Ot={tokenize:so};function ao(e){const t=this,n=[];let r=0,i,o,l;return a;function a(E){if(r<n.length){const M=n[r];return t.containerState=M[1],e.attempt(M[0].continuation,s,u)(E)}return u(E)}function s(E){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&I();const M=t.events.length;let R=M,k;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){k=t.events[R][1].end;break}x(r);let z=M;for(;z<t.events.length;)t.events[z][1].end={...k},z++;return ae(t.events,R+1,0,t.events.slice(M)),t.events.length=z,u(E)}return a(E)}function u(E){if(r===n.length){if(!i)return p(E);if(i.currentConstruct&&i.currentConstruct.concrete)return g(E);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Ot,f,c)(E)}function f(E){return i&&I(),x(r),p(E)}function c(E){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,g(E)}function p(E){return t.containerState={},e.attempt(Ot,h,g)(E)}function h(E){return r++,n.push([t.currentConstruct,t.containerState]),p(E)}function g(E){if(E===null){i&&I(),x(0),e.consume(E);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),w(E)}function w(E){if(E===null){S(e.exit("chunkFlow"),!0),x(0),e.consume(E);return}return L(E)?(e.consume(E),S(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(E),w)}function S(E,M){const R=t.sliceStream(E);if(M&&R.push(null),E.previous=o,o&&(o.next=E),o=E,i.defineSkip(E.start),i.write(R),t.parser.lazy[E.start.line]){let k=i.events.length;for(;k--;)if(i.events[k][1].start.offset<l&&(!i.events[k][1].end||i.events[k][1].end.offset>l))return;const z=t.events.length;let F=z,j,y;for(;F--;)if(t.events[F][0]==="exit"&&t.events[F][1].type==="chunkFlow"){if(j){y=t.events[F][1].end;break}j=!0}for(x(r),k=z;k<t.events.length;)t.events[k][1].end={...y},k++;ae(t.events,F+1,0,t.events.slice(z)),t.events.length=k}}function x(E){let M=n.length;for(;M-- >E;){const R=n[M];t.containerState=R[1],R[0].exit.call(t,e)}n.length=E}function I(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function so(e,t,n){return $(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Oe(e){if(e===null||Q(e)||Le(e))return 1;if(Cn(e))return 2}function Sn(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const Jn={name:"attention",resolveAll:uo,tokenize:co};function uo(e,t){let n=-1,r,i,o,l,a,s,u,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[n][1].start};Bt(c,-s),Bt(p,s),l={type:s>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},o={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:s>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[r][1].end={...l.start},e[n][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=se(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=se(u,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",o,t]]),u=se(u,Sn(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=se(u,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,u=se(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,ae(e,r-1,n-r+3,u),n=r+u.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function co(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Oe(r);let o;return l;function l(s){return o=s,e.enter("attentionSequence"),a(s)}function a(s){if(s===o)return e.consume(s),a;const u=e.exit("attentionSequence"),f=Oe(s),c=!f||f===2&&i||n.includes(s),p=!i||i===2&&f||n.includes(r);return u._open=!!(o===42?c:c&&(i||!p)),u._close=!!(o===42?p:p&&(f||!c)),t(s)}}function Bt(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const fo={name:"autolink",tokenize:ho};function ho(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return te(h)?(e.consume(h),l):h===64?n(h):u(h)}function l(h){return h===43||h===45||h===46||K(h)?(r=1,a(h)):u(h)}function a(h){return h===58?(e.consume(h),r=0,s):(h===43||h===45||h===46||K(h))&&r++<32?(e.consume(h),a):(r=0,u(h))}function s(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||xn(h)?n(h):(e.consume(h),s)}function u(h){return h===64?(e.consume(h),f):no(h)?(e.consume(h),u):n(h)}function f(h){return K(h)?c(h):n(h)}function c(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):p(h)}function p(h){if((h===45||K(h))&&r++<63){const g=h===45?p:c;return e.consume(h),g}return n(h)}}const ln={partial:!0,tokenize:po};function po(e,t,n){return r;function r(o){return H(o)?$(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||L(o)?t(o):n(o)}}const Fr={continuation:{tokenize:go},exit:yo,name:"blockQuote",tokenize:mo};function mo(e,t,n){const r=this;return i;function i(l){if(l===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return n(l)}function o(l){return H(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function go(e,t,n){const r=this;return i;function i(l){return H(l)?$(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Fr,t,n)(l)}}function yo(e){e.exit("blockQuote")}const Mr={name:"characterEscape",tokenize:xo};function xo(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return ro(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const Rr={name:"characterReference",tokenize:ko};function ko(e,t,n){const r=this;let i=0,o,l;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),s}function s(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,l=K,f(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=to,f):(e.enter("characterReferenceValue"),o=7,l=Gn,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return l===K&&!ct(r.sliceSerialize(p))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(c)&&i++<o?(e.consume(c),f):n(c)}}const Ht={partial:!0,tokenize:wo},qt={concrete:!0,name:"codeFenced",tokenize:bo};function bo(e,t,n){const r=this,i={partial:!0,tokenize:R};let o=0,l=0,a;return s;function s(k){return u(k)}function u(k){const z=r.events[r.events.length-1];return o=z&&z[1].type==="linePrefix"?z[2].sliceSerialize(z[1],!0).length:0,a=k,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(k)}function f(k){return k===a?(l++,e.consume(k),f):l<3?n(k):(e.exit("codeFencedFenceSequence"),H(k)?$(e,c,"whitespace")(k):c(k))}function c(k){return k===null||L(k)?(e.exit("codeFencedFence"),r.interrupt?t(k):e.check(Ht,w,M)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(k))}function p(k){return k===null||L(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(k)):H(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),$(e,h,"whitespace")(k)):k===96&&k===a?n(k):(e.consume(k),p)}function h(k){return k===null||L(k)?c(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(k))}function g(k){return k===null||L(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(k)):k===96&&k===a?n(k):(e.consume(k),g)}function w(k){return e.attempt(i,M,S)(k)}function S(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),x}function x(k){return o>0&&H(k)?$(e,I,"linePrefix",o+1)(k):I(k)}function I(k){return k===null||L(k)?e.check(Ht,w,M)(k):(e.enter("codeFlowValue"),E(k))}function E(k){return k===null||L(k)?(e.exit("codeFlowValue"),I(k)):(e.consume(k),E)}function M(k){return e.exit("codeFenced"),t(k)}function R(k,z,F){let j=0;return y;function y(P){return k.enter("lineEnding"),k.consume(P),k.exit("lineEnding"),T}function T(P){return k.enter("codeFencedFence"),H(P)?$(k,_,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):_(P)}function _(P){return P===a?(k.enter("codeFencedFenceSequence"),B(P)):F(P)}function B(P){return P===a?(j++,k.consume(P),B):j>=l?(k.exit("codeFencedFenceSequence"),H(P)?$(k,D,"whitespace")(P):D(P)):F(P)}function D(P){return P===null||L(P)?(k.exit("codeFencedFence"),z(P)):F(P)}}}function wo(e,t,n){const r=this;return i;function i(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const Pn={name:"codeIndented",tokenize:So},Co={partial:!0,tokenize:Eo};function So(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),$(e,o,"linePrefix",5)(u)}function o(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(u):n(u)}function l(u){return u===null?s(u):L(u)?e.attempt(Co,l,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||L(u)?(e.exit("codeFlowValue"),l(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),t(u)}}function Eo(e,t,n){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?n(l):L(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):$(e,o,"linePrefix",5)(l)}function o(l){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):L(l)?i(l):n(l)}}const vo={name:"codeText",previous:Ao,resolve:Io,tokenize:_o};function Io(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Ao(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function _o(e,t,n){let r=0,i,o;return l;function l(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),r++,a):(e.exit("codeTextSequence"),s(c))}function s(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),s):c===96?(o=e.enter("codeTextSequence"),i=0,f(c)):L(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||L(c)?(e.exit("codeTextData"),s(c)):(e.consume(c),u)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(o.type="codeTextData",u(c))}}class To{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Qe(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Qe(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Qe(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Qe(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Qe(this.left,n.reverse())}}}function Qe(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Nr(e){const t={};let n=-1,r,i,o,l,a,s,u;const f=new To(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,o=0,o<s.length&&s[o][1].type==="lineEndingBlank"&&(o+=2),o<s.length&&s[o][1].type==="content"))for(;++o<s.length&&s[o][1].type!=="content";)s[o][1].type==="chunkText"&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Po(f,n)),n=t[n],u=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(l=f.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},a=f.slice(i,n),a.unshift(r),f.splice(i,n-i+1,a))}}return ae(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function Po(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,s=[],u={};let f,c,p=-1,h=n,g=0,w=0;const S=[w];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=n;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(w=p+1,S.push(w),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):S.pop(),p=S.length;p--;){const x=a.slice(S[p],S[p+1]),I=o.pop();s.push([I,I+x.length-1]),e.splice(I,2,x)}for(s.reverse(),p=-1;++p<s.length;)u[g+s[p][0]]=g+s[p][1],g+=s[p][1]-s[p][0]-1;return u}const zo={resolve:Do,tokenize:jo},Lo={partial:!0,tokenize:Fo};function Do(e){return Nr(e),e}function jo(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):L(a)?e.check(Lo,l,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function l(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function Fo(e,t,n){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),$(e,o,"linePrefix")}function o(l){if(l===null||L(l))return n(l);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function Or(e,t,n,r,i,o,l,a,s){const u=s||Number.POSITIVE_INFINITY;let f=0;return c;function c(x){return x===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(x),e.exit(o),p):x===null||x===32||x===41||xn(x)?n(x):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),w(x))}function p(x){return x===62?(e.enter(o),e.consume(x),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(x))}function h(x){return x===62?(e.exit("chunkString"),e.exit(a),p(x)):x===null||x===60||L(x)?n(x):(e.consume(x),x===92?g:h)}function g(x){return x===60||x===62||x===92?(e.consume(x),h):h(x)}function w(x){return!f&&(x===null||x===41||Q(x))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),t(x)):f<u&&x===40?(e.consume(x),f++,w):x===41?(e.consume(x),f--,w):x===null||x===32||x===40||xn(x)?n(x):(e.consume(x),x===92?S:w)}function S(x){return x===40||x===41||x===92?(e.consume(x),w):w(x)}}function Br(e,t,n,r,i,o){const l=this;let a=0,s;return u;function u(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),f}function f(h){return a>999||h===null||h===91||h===93&&!s||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?n(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):L(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||L(h)||a++>999?(e.exit("chunkString"),f(h)):(e.consume(h),s||(s=!H(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}}function Hr(e,t,n,r,i,o){let l;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),l=p===40?41:p,s):n(p)}function s(p){return p===l?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(o),u(p))}function u(p){return p===l?(e.exit(o),s(l)):p===null?n(p):L(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),$(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===l||p===null||L(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?c:f)}function c(p){return p===l||p===92?(e.consume(p),f):f(p)}}function Ke(e,t){let n;return r;function r(i){return L(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):H(i)?$(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Mo={name:"definition",tokenize:No},Ro={partial:!0,tokenize:Oo};function No(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),l(h)}function l(h){return Br.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=pe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),s):n(h)}function s(h){return Q(h)?Ke(e,u)(h):u(h)}function u(h){return Or(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(Ro,c,c)(h)}function c(h){return H(h)?$(e,p,"whitespace")(h):p(h)}function p(h){return h===null||L(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function Oo(e,t,n){return r;function r(a){return Q(a)?Ke(e,i)(a):n(a)}function i(a){return Hr(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return H(a)?$(e,l,"whitespace")(a):l(a)}function l(a){return a===null||L(a)?t(a):n(a)}}const Bo={name:"hardBreakEscape",tokenize:Ho};function Ho(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return L(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const qo={name:"headingAtx",resolve:$o,tokenize:Vo};function $o(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ae(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function Vo(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),l(f)}function l(f){return f===35&&r++<6?(e.consume(f),l):f===null||Q(f)?(e.exit("atxHeadingSequence"),a(f)):n(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),s(f)):f===null||L(f)?(e.exit("atxHeading"),t(f)):H(f)?$(e,a,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function s(f){return f===35?(e.consume(f),s):(e.exit("atxHeadingSequence"),a(f))}function u(f){return f===null||f===35||Q(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),u)}}const Uo=["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"],$t=["pre","script","style","textarea"],Wo={concrete:!0,name:"htmlFlow",resolveTo:Xo,tokenize:Go},Qo={partial:!0,tokenize:Ko},Yo={partial:!0,tokenize:Jo};function Xo(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Go(e,t,n){const r=this;let i,o,l,a,s;return u;function u(d){return f(d)}function f(d){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(d),c}function c(d){return d===33?(e.consume(d),p):d===47?(e.consume(d),o=!0,w):d===63?(e.consume(d),i=3,r.interrupt?t:m):te(d)?(e.consume(d),l=String.fromCharCode(d),S):n(d)}function p(d){return d===45?(e.consume(d),i=2,h):d===91?(e.consume(d),i=5,a=0,g):te(d)?(e.consume(d),i=4,r.interrupt?t:m):n(d)}function h(d){return d===45?(e.consume(d),r.interrupt?t:m):n(d)}function g(d){const fe="CDATA[";return d===fe.charCodeAt(a++)?(e.consume(d),a===fe.length?r.interrupt?t:_:g):n(d)}function w(d){return te(d)?(e.consume(d),l=String.fromCharCode(d),S):n(d)}function S(d){if(d===null||d===47||d===62||Q(d)){const fe=d===47,Ie=l.toLowerCase();return!fe&&!o&&$t.includes(Ie)?(i=1,r.interrupt?t(d):_(d)):Uo.includes(l.toLowerCase())?(i=6,fe?(e.consume(d),x):r.interrupt?t(d):_(d)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(d):o?I(d):E(d))}return d===45||K(d)?(e.consume(d),l+=String.fromCharCode(d),S):n(d)}function x(d){return d===62?(e.consume(d),r.interrupt?t:_):n(d)}function I(d){return H(d)?(e.consume(d),I):y(d)}function E(d){return d===47?(e.consume(d),y):d===58||d===95||te(d)?(e.consume(d),M):H(d)?(e.consume(d),E):y(d)}function M(d){return d===45||d===46||d===58||d===95||K(d)?(e.consume(d),M):R(d)}function R(d){return d===61?(e.consume(d),k):H(d)?(e.consume(d),R):E(d)}function k(d){return d===null||d===60||d===61||d===62||d===96?n(d):d===34||d===39?(e.consume(d),s=d,z):H(d)?(e.consume(d),k):F(d)}function z(d){return d===s?(e.consume(d),s=null,j):d===null||L(d)?n(d):(e.consume(d),z)}function F(d){return d===null||d===34||d===39||d===47||d===60||d===61||d===62||d===96||Q(d)?R(d):(e.consume(d),F)}function j(d){return d===47||d===62||H(d)?E(d):n(d)}function y(d){return d===62?(e.consume(d),T):n(d)}function T(d){return d===null||L(d)?_(d):H(d)?(e.consume(d),T):n(d)}function _(d){return d===45&&i===2?(e.consume(d),V):d===60&&i===1?(e.consume(d),X):d===62&&i===4?(e.consume(d),ce):d===63&&i===3?(e.consume(d),m):d===93&&i===5?(e.consume(d),ge):L(d)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Qo,ye,B)(d)):d===null||L(d)?(e.exit("htmlFlowData"),B(d)):(e.consume(d),_)}function B(d){return e.check(Yo,D,ye)(d)}function D(d){return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),P}function P(d){return d===null||L(d)?B(d):(e.enter("htmlFlowData"),_(d))}function V(d){return d===45?(e.consume(d),m):_(d)}function X(d){return d===47?(e.consume(d),l="",ue):_(d)}function ue(d){if(d===62){const fe=l.toLowerCase();return $t.includes(fe)?(e.consume(d),ce):_(d)}return te(d)&&l.length<8?(e.consume(d),l+=String.fromCharCode(d),ue):_(d)}function ge(d){return d===93?(e.consume(d),m):_(d)}function m(d){return d===62?(e.consume(d),ce):d===45&&i===2?(e.consume(d),m):_(d)}function ce(d){return d===null||L(d)?(e.exit("htmlFlowData"),ye(d)):(e.consume(d),ce)}function ye(d){return e.exit("htmlFlow"),t(d)}}function Jo(e,t,n){const r=this;return i;function i(l){return L(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function Ko(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(ln,t,n)}}const Zo={name:"htmlText",tokenize:ea};function ea(e,t,n){const r=this;let i,o,l;return a;function a(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),s}function s(m){return m===33?(e.consume(m),u):m===47?(e.consume(m),R):m===63?(e.consume(m),E):te(m)?(e.consume(m),F):n(m)}function u(m){return m===45?(e.consume(m),f):m===91?(e.consume(m),o=0,g):te(m)?(e.consume(m),I):n(m)}function f(m){return m===45?(e.consume(m),h):n(m)}function c(m){return m===null?n(m):m===45?(e.consume(m),p):L(m)?(l=c,X(m)):(e.consume(m),c)}function p(m){return m===45?(e.consume(m),h):c(m)}function h(m){return m===62?V(m):m===45?p(m):c(m)}function g(m){const ce="CDATA[";return m===ce.charCodeAt(o++)?(e.consume(m),o===ce.length?w:g):n(m)}function w(m){return m===null?n(m):m===93?(e.consume(m),S):L(m)?(l=w,X(m)):(e.consume(m),w)}function S(m){return m===93?(e.consume(m),x):w(m)}function x(m){return m===62?V(m):m===93?(e.consume(m),x):w(m)}function I(m){return m===null||m===62?V(m):L(m)?(l=I,X(m)):(e.consume(m),I)}function E(m){return m===null?n(m):m===63?(e.consume(m),M):L(m)?(l=E,X(m)):(e.consume(m),E)}function M(m){return m===62?V(m):E(m)}function R(m){return te(m)?(e.consume(m),k):n(m)}function k(m){return m===45||K(m)?(e.consume(m),k):z(m)}function z(m){return L(m)?(l=z,X(m)):H(m)?(e.consume(m),z):V(m)}function F(m){return m===45||K(m)?(e.consume(m),F):m===47||m===62||Q(m)?j(m):n(m)}function j(m){return m===47?(e.consume(m),V):m===58||m===95||te(m)?(e.consume(m),y):L(m)?(l=j,X(m)):H(m)?(e.consume(m),j):V(m)}function y(m){return m===45||m===46||m===58||m===95||K(m)?(e.consume(m),y):T(m)}function T(m){return m===61?(e.consume(m),_):L(m)?(l=T,X(m)):H(m)?(e.consume(m),T):j(m)}function _(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),i=m,B):L(m)?(l=_,X(m)):H(m)?(e.consume(m),_):(e.consume(m),D)}function B(m){return m===i?(e.consume(m),i=void 0,P):m===null?n(m):L(m)?(l=B,X(m)):(e.consume(m),B)}function D(m){return m===null||m===34||m===39||m===60||m===61||m===96?n(m):m===47||m===62||Q(m)?j(m):(e.consume(m),D)}function P(m){return m===47||m===62||Q(m)?j(m):n(m)}function V(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),t):n(m)}function X(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),ue}function ue(m){return H(m)?$(e,ge,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):ge(m)}function ge(m){return e.enter("htmlTextData"),l(m)}}const ft={name:"labelEnd",resolveAll:ia,resolveTo:la,tokenize:oa},na={tokenize:aa},ta={tokenize:sa},ra={tokenize:ua};function ia(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&ae(e,0,e.length,n),e}function la(e,t){let n=e.length,r=0,i,o,l,a;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=n);const s={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return a=[["enter",s,t],["enter",u,t]],a=se(a,e.slice(o+1,o+r+3)),a=se(a,[["enter",f,t]]),a=se(a,Sn(t.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),t)),a=se(a,[["exit",f,t],e[l-2],e[l-1],["exit",u,t]]),a=se(a,e.slice(l+1)),a=se(a,[["exit",s,t]]),ae(e,o,e.length,a),e}function oa(e,t,n){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(p){return o?o._inactive?c(p):(l=r.parser.defined.includes(pe(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),s):n(p)}function s(p){return p===40?e.attempt(na,f,l?f:c)(p):p===91?e.attempt(ta,f,l?u:c)(p):l?f(p):c(p)}function u(p){return e.attempt(ra,f,c)(p)}function f(p){return t(p)}function c(p){return o._balanced=!0,n(p)}}function aa(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return Q(c)?Ke(e,o)(c):o(c)}function o(c){return c===41?f(c):Or(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return Q(c)?Ke(e,s)(c):f(c)}function a(c){return n(c)}function s(c){return c===34||c===39||c===40?Hr(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function u(c){return Q(c)?Ke(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function sa(e,t,n){const r=this;return i;function i(a){return Br.call(r,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(pe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function l(a){return n(a)}}function ua(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const ca={name:"labelStartImage",resolveAll:ft.resolveAll,tokenize:fa};function fa(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),l):n(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const ha={name:"labelStartLink",resolveAll:ft.resolveAll,tokenize:pa};function pa(e,t,n){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const zn={name:"lineEnding",tokenize:ma};function ma(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),$(e,t,"linePrefix")}}const gn={name:"thematicBreak",tokenize:da};function da(e,t,n){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),l(u)}function l(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),s(u)):r>=3&&(u===null||L(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===i?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),H(u)?$(e,a,"whitespace")(u):a(u))}}const re={continuation:{tokenize:ka},exit:wa,name:"list",tokenize:xa},ga={partial:!0,tokenize:Ca},ya={partial:!0,tokenize:ba};function xa(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return a;function a(h){const g=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Gn(h)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(gn,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(h)}return n(h)}function s(h){return Gn(h)&&++l<10?(e.consume(h),s):(!r.interrupt||l<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(ln,r.interrupt?n:f,e.attempt(ga,p,c))}function f(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function c(h){return H(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function ka(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(ln,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,$(e,t,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!H(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ya,t,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,$(e,e.attempt(re,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function ba(e,t,n){const r=this;return $(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(o):n(o)}}function wa(e){e.exit(this.containerState.type)}function Ca(e,t,n){const r=this;return $(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!H(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const Vt={name:"setextUnderline",resolveTo:Sa,tokenize:Ea};function Sa(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function Ea(e,t,n){const r=this;let i;return o;function o(u){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=u,l(u)):n(u)}function l(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),H(u)?$(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||L(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const va={tokenize:Ia};function Ia(e){const t=this,n=e.attempt(ln,r,e.attempt(this.parser.constructs.flowInitial,i,$(e,e.attempt(this.parser.constructs.flow,i,e.attempt(zo,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Aa={resolveAll:$r()},_a=qr("string"),Ta=qr("text");function qr(e){return{resolveAll:$r(e==="text"?Pa:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,l,a);return l;function l(f){return u(f)?o(f):a(f)}function a(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),s}function s(f){return u(f)?(n.exit("data"),o(f)):(n.consume(f),s)}function u(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p<c.length;){const h=c[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function $r(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function Pa(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,l=-1,a=0,s;for(;o--;){const u=i[o];if(typeof u=="string"){for(l=u.length;u.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(u===-2)s=!0,a++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const u={type:n===e.length||s||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const za={42:re,43:re,45:re,48:re,49:re,50:re,51:re,52:re,53:re,54:re,55:re,56:re,57:re,62:Fr},La={91:Mo},Da={[-2]:Pn,[-1]:Pn,32:Pn},ja={35:qo,42:gn,45:[Vt,gn],60:Wo,61:Vt,95:gn,96:qt,126:qt},Fa={38:Rr,92:Mr},Ma={[-5]:zn,[-4]:zn,[-3]:zn,33:ca,38:Rr,42:Jn,60:[fo,Zo],91:ha,92:[Bo,Mr],93:ft,95:Jn,96:vo},Ra={null:[Jn,Aa]},Na={null:[42,95]},Oa={null:[]},Ba=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Na,contentInitial:La,disable:Oa,document:za,flow:ja,flowInitial:Da,insideSpan:Ra,string:Fa,text:Ma},Symbol.toStringTag,{value:"Module"}));function Ha(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let l=[],a=[];const s={attempt:z(R),check:z(k),consume:I,enter:E,exit:M,interrupt:z(k,{interrupt:!0})},u={code:null,containerState:{},defineSkip:w,events:[],now:g,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:c};let f=t.tokenize.call(u,s);return t.resolveAll&&o.push(t),u;function c(T){return l=se(l,T),S(),l[l.length-1]!==null?[]:(F(t,0),u.events=Sn(o,u.events,u),u.events)}function p(T,_){return $a(h(T),_)}function h(T){return qa(l,T)}function g(){const{_bufferIndex:T,_index:_,line:B,column:D,offset:P}=r;return{_bufferIndex:T,_index:_,line:B,column:D,offset:P}}function w(T){i[T.line]=T.column,y()}function S(){let T;for(;r._index<l.length;){const _=l[r._index];if(typeof _=="string")for(T=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===T&&r._bufferIndex<_.length;)x(_.charCodeAt(r._bufferIndex));else x(_)}}function x(T){f=f(T)}function I(T){L(T)?(r.line++,r.column=1,r.offset+=T===-3?2:1,y()):T!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=T}function E(T,_){const B=_||{};return B.type=T,B.start=g(),u.events.push(["enter",B,u]),a.push(B),B}function M(T){const _=a.pop();return _.end=g(),u.events.push(["exit",_,u]),_}function R(T,_){F(T,_.from)}function k(T,_){_.restore()}function z(T,_){return B;function B(D,P,V){let X,ue,ge,m;return Array.isArray(D)?ye(D):"tokenize"in D?ye([D]):ce(D);function ce(J){return qe;function qe(Ce){const je=Ce!==null&&J[Ce],Fe=Ce!==null&&J.null,an=[...Array.isArray(je)?je:je?[je]:[],...Array.isArray(Fe)?Fe:Fe?[Fe]:[]];return ye(an)(Ce)}}function ye(J){return X=J,ue=0,J.length===0?V:d(J[ue])}function d(J){return qe;function qe(Ce){return m=j(),ge=J,J.partial||(u.currentConstruct=J),J.name&&u.parser.constructs.disable.null.includes(J.name)?Ie():J.tokenize.call(_?Object.assign(Object.create(u),_):u,s,fe,Ie)(Ce)}}function fe(J){return T(ge,m),P}function Ie(J){return m.restore(),++ue<X.length?d(X[ue]):V}}}function F(T,_){T.resolveAll&&!o.includes(T)&&o.push(T),T.resolve&&ae(u.events,_,u.events.length-_,T.resolve(u.events.slice(_),u)),T.resolveTo&&(u.events=T.resolveTo(u.events,u))}function j(){const T=g(),_=u.previous,B=u.currentConstruct,D=u.events.length,P=Array.from(a);return{from:D,restore:V};function V(){r=T,u.previous=_,u.currentConstruct=B,u.events.length=D,a=P,y()}}function y(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function qa(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let l;if(n===i)l=[e[n].slice(r,o)];else{if(l=e.slice(n,i),r>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function $a(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
|
|
22
|
+
`;break}case-3:{l=`\r
|
|
23
|
+
`;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function Va(e){const r={constructs:Dr([Ba,...(e||{}).extensions||[]]),content:i(io),defined:[],document:i(oo),flow:i(va),lazy:{},string:i(_a),text:i(Ta)};return r;function i(o){return l;function l(a){return Ha(r,o,a)}}}function Ua(e){for(;!Nr(e););return e}const Ut=/[\0\t\n\r]/g;function Wa(){let e=1,t="",n=!0,r;return i;function i(o,l,a){const s=[];let u,f,c,p,h;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),c=0,t="",n&&(o.charCodeAt(0)===65279&&c++,n=void 0);c<o.length;){if(Ut.lastIndex=c,u=Ut.exec(o),p=u&&u.index!==void 0?u.index:o.length,h=o.charCodeAt(p),!u){t=o.slice(c);break}if(h===10&&c===p&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),c<p&&(s.push(o.slice(c,p)),e+=p-c),h){case 0:{s.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,s.push(-2);e++<f;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}c=p+1}return a&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}const Qa=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ya(e){return e.replace(Qa,Xa)}function Xa(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return jr(n.slice(o?2:1),o?16:10)}return ct(n)||e}const Vr={}.hasOwnProperty;function Ga(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),Ja(n)(Ua(Va(n).document().write(Wa()(e,t,!0))))}function Ja(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Et),autolinkProtocol:j,autolinkEmail:j,atxHeading:o(wt),blockQuote:o(Fe),characterEscape:j,characterReference:j,codeFenced:o(an),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(an,l),codeText:o(Li,l),codeTextData:j,data:j,codeFlowValue:j,definition:o(Di),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(ji),hardBreakEscape:o(Ct),hardBreakTrailing:o(Ct),htmlFlow:o(St,l),htmlFlowData:j,htmlText:o(St,l),htmlTextData:j,image:o(Fi),label:l,link:o(Et),listItem:o(Mi),listItemValue:p,listOrdered:o(vt,c),listUnordered:o(vt),paragraph:o(Ri),reference:d,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(wt),strong:o(Ni),thematicBreak:o(Bi)},exit:{atxHeading:s(),atxHeadingSequence:R,autolink:s(),autolinkEmail:je,autolinkProtocol:Ce,blockQuote:s(),characterEscapeValue:y,characterReferenceMarkerHexadecimal:Ie,characterReferenceMarkerNumeric:Ie,characterReferenceValue:J,characterReference:qe,codeFenced:s(S),codeFencedFence:w,codeFencedFenceInfo:h,codeFencedFenceMeta:g,codeFlowValue:y,codeIndented:s(x),codeText:s(P),codeTextData:y,data:y,definition:s(),definitionDestinationString:M,definitionLabelString:I,definitionTitleString:E,emphasis:s(),hardBreakEscape:s(_),hardBreakTrailing:s(_),htmlFlow:s(B),htmlFlowData:y,htmlText:s(D),htmlTextData:y,image:s(X),label:ge,labelText:ue,lineEnding:T,link:s(V),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:fe,resourceDestinationString:m,resourceTitleString:ce,resource:ye,setextHeading:s(F),setextHeadingLineSequence:z,setextHeadingText:k,strong:s(),thematicBreak:s()}};Ur(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(b){let A={type:"root",children:[]};const O={stack:[A],tokenStack:[],config:t,enter:a,exit:u,buffer:l,resume:f,data:n},q=[];let U=-1;for(;++U<b.length;)if(b[U][1].type==="listOrdered"||b[U][1].type==="listUnordered")if(b[U][0]==="enter")q.push(U);else{const he=q.pop();U=i(b,he,U)}for(U=-1;++U<b.length;){const he=t[b[U][0]];Vr.call(he,b[U][1].type)&&he[b[U][1].type].call(Object.assign({sliceSerialize:b[U][2].sliceSerialize},O),b[U][1])}if(O.tokenStack.length>0){const he=O.tokenStack[O.tokenStack.length-1];(he[1]||Wt).call(O,void 0,he[0])}for(A.position={start:Se(b.length>0?b[0][1].start:{line:1,column:1,offset:0}),end:Se(b.length>0?b[b.length-2][1].end:{line:1,column:1,offset:0})},U=-1;++U<t.transforms.length;)A=t.transforms[U](A)||A;return A}function i(b,A,O){let q=A-1,U=-1,he=!1,Ae,xe,$e,Ve;for(;++q<=O;){const le=b[q];switch(le[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{le[0]==="enter"?U++:U--,Ve=void 0;break}case"lineEndingBlank":{le[0]==="enter"&&(Ae&&!Ve&&!U&&!$e&&($e=q),Ve=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ve=void 0}if(!U&&le[0]==="enter"&&le[1].type==="listItemPrefix"||U===-1&&le[0]==="exit"&&(le[1].type==="listUnordered"||le[1].type==="listOrdered")){if(Ae){let Me=q;for(xe=void 0;Me--;){const ke=b[Me];if(ke[1].type==="lineEnding"||ke[1].type==="lineEndingBlank"){if(ke[0]==="exit")continue;xe&&(b[xe][1].type="lineEndingBlank",he=!0),ke[1].type="lineEnding",xe=Me}else if(!(ke[1].type==="linePrefix"||ke[1].type==="blockQuotePrefix"||ke[1].type==="blockQuotePrefixWhitespace"||ke[1].type==="blockQuoteMarker"||ke[1].type==="listItemIndent"))break}$e&&(!xe||$e<xe)&&(Ae._spread=!0),Ae.end=Object.assign({},xe?b[xe][1].start:le[1].end),b.splice(xe||q,0,["exit",Ae,le[2]]),q++,O++}if(le[1].type==="listItemPrefix"){const Me={type:"listItem",_spread:!1,start:Object.assign({},le[1].start),end:void 0};Ae=Me,b.splice(q,0,["enter",Me,le[2]]),q++,O++,$e=void 0,Ve=!0}}}return b[A][1]._spread=he,O}function o(b,A){return O;function O(q){a.call(this,b(q),q),A&&A.call(this,q)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(b,A,O){this.stack[this.stack.length-1].children.push(b),this.stack.push(b),this.tokenStack.push([A,O||void 0]),b.position={start:Se(A.start),end:void 0}}function s(b){return A;function A(O){b&&b.call(this,O),u.call(this,O)}}function u(b,A){const O=this.stack.pop(),q=this.tokenStack.pop();if(q)q[0].type!==b.type&&(A?A.call(this,b,q[0]):(q[1]||Wt).call(this,b,q[0]));else throw new Error("Cannot close `"+b.type+"` ("+Je({start:b.start,end:b.end})+"): it’s not open");O.position.end=Se(b.end)}function f(){return ut(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(b){if(this.data.expectingFirstListItemValue){const A=this.stack[this.stack.length-2];A.start=Number.parseInt(this.sliceSerialize(b),10),this.data.expectingFirstListItemValue=void 0}}function h(){const b=this.resume(),A=this.stack[this.stack.length-1];A.lang=b}function g(){const b=this.resume(),A=this.stack[this.stack.length-1];A.meta=b}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const b=this.resume(),A=this.stack[this.stack.length-1];A.value=b.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const b=this.resume(),A=this.stack[this.stack.length-1];A.value=b.replace(/(\r?\n|\r)$/g,"")}function I(b){const A=this.resume(),O=this.stack[this.stack.length-1];O.label=A,O.identifier=pe(this.sliceSerialize(b)).toLowerCase()}function E(){const b=this.resume(),A=this.stack[this.stack.length-1];A.title=b}function M(){const b=this.resume(),A=this.stack[this.stack.length-1];A.url=b}function R(b){const A=this.stack[this.stack.length-1];if(!A.depth){const O=this.sliceSerialize(b).length;A.depth=O}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function z(b){const A=this.stack[this.stack.length-1];A.depth=this.sliceSerialize(b).codePointAt(0)===61?1:2}function F(){this.data.setextHeadingSlurpLineEnding=void 0}function j(b){const O=this.stack[this.stack.length-1].children;let q=O[O.length-1];(!q||q.type!=="text")&&(q=Oi(),q.position={start:Se(b.start),end:void 0},O.push(q)),this.stack.push(q)}function y(b){const A=this.stack.pop();A.value+=this.sliceSerialize(b),A.position.end=Se(b.end)}function T(b){const A=this.stack[this.stack.length-1];if(this.data.atHardBreak){const O=A.children[A.children.length-1];O.position.end=Se(b.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(A.type)&&(j.call(this,b),y.call(this,b))}function _(){this.data.atHardBreak=!0}function B(){const b=this.resume(),A=this.stack[this.stack.length-1];A.value=b}function D(){const b=this.resume(),A=this.stack[this.stack.length-1];A.value=b}function P(){const b=this.resume(),A=this.stack[this.stack.length-1];A.value=b}function V(){const b=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=A,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function X(){const b=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=A,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function ue(b){const A=this.sliceSerialize(b),O=this.stack[this.stack.length-2];O.label=Ya(A),O.identifier=pe(A).toLowerCase()}function ge(){const b=this.stack[this.stack.length-1],A=this.resume(),O=this.stack[this.stack.length-1];if(this.data.inReference=!0,O.type==="link"){const q=b.children;O.children=q}else O.alt=A}function m(){const b=this.resume(),A=this.stack[this.stack.length-1];A.url=b}function ce(){const b=this.resume(),A=this.stack[this.stack.length-1];A.title=b}function ye(){this.data.inReference=void 0}function d(){this.data.referenceType="collapsed"}function fe(b){const A=this.resume(),O=this.stack[this.stack.length-1];O.label=A,O.identifier=pe(this.sliceSerialize(b)).toLowerCase(),this.data.referenceType="full"}function Ie(b){this.data.characterReferenceType=b.type}function J(b){const A=this.sliceSerialize(b),O=this.data.characterReferenceType;let q;O?(q=jr(A,O==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):q=ct(A);const U=this.stack[this.stack.length-1];U.value+=q}function qe(b){const A=this.stack.pop();A.position.end=Se(b.end)}function Ce(b){y.call(this,b);const A=this.stack[this.stack.length-1];A.url=this.sliceSerialize(b)}function je(b){y.call(this,b);const A=this.stack[this.stack.length-1];A.url="mailto:"+this.sliceSerialize(b)}function Fe(){return{type:"blockquote",children:[]}}function an(){return{type:"code",lang:null,meta:null,value:""}}function Li(){return{type:"inlineCode",value:""}}function Di(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ji(){return{type:"emphasis",children:[]}}function wt(){return{type:"heading",depth:0,children:[]}}function Ct(){return{type:"break"}}function St(){return{type:"html",value:""}}function Fi(){return{type:"image",title:null,url:"",alt:null}}function Et(){return{type:"link",title:null,url:"",children:[]}}function vt(b){return{type:"list",ordered:b.type==="listOrdered",start:null,spread:b._spread,children:[]}}function Mi(b){return{type:"listItem",spread:b._spread,checked:null,children:[]}}function Ri(){return{type:"paragraph",children:[]}}function Ni(){return{type:"strong",children:[]}}function Oi(){return{type:"text",value:""}}function Bi(){return{type:"thematicBreak"}}}function Se(e){return{line:e.line,column:e.column,offset:e.offset}}function Ur(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Ur(e,r):Ka(e,r)}}function Ka(e,t){let n;for(n in t)if(Vr.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Wt(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Je({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Je({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Je({start:t.start,end:t.end})+") is still open")}function Za(e){const t=this;t.parser=n;function n(r){return Ga(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function es(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function ns(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
24
|
+
`}]}function ts(e,t){const n=t.value?t.value+`
|
|
25
|
+
`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function rs(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function is(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ls(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=He(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,a+=1,e.footnoteCounts.set(r,a);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function os(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function as(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Wr(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function ss(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Wr(e,t);const i={src:He(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function us(e,t){const n={src:He(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function cs(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function fs(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Wr(e,t);const i={href:He(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function hs(e,t){const n={href:He(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ps(e,t,n){const r=e.all(t),i=n?ms(n):Qr(t),o={},l=[];if(typeof t.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const f=r[a];(i||a!==0||f.type!=="element"||f.tagName!=="p")&&l.push({type:"text",value:`
|
|
26
|
+
`}),f.type==="element"&&f.tagName==="p"&&!i?l.push(...f.children):l.push(f)}const s=r[r.length-1];s&&(i||s.type!=="element"||s.tagName!=="p")&&l.push({type:"text",value:`
|
|
27
|
+
`});const u={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,u),e.applyData(t,u)}function ms(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Qr(n[r])}return t}function Qr(e){const t=e.spread;return t??e.children.length>1}function ds(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function gs(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ys(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function xs(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ks(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),i.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=lt(t.children[1]),s=Ir(t.children[t.children.length-1]);a&&s&&(l.position={start:a,end:s}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function bs(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,a=l?l.length:t.children.length;let s=-1;const u=[];for(;++s<a;){const c=t.children[s],p={},h=l?l[s]:void 0;h&&(p.align=h);let g={type:"element",tagName:o,properties:p,children:[]};c&&(g.children=e.all(c),e.patch(c,g),g=e.applyData(c,g)),u.push(g)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,f),e.applyData(t,f)}function ws(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Qt=9,Yt=32;function Cs(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(Xt(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Xt(t.slice(i),i>0,!1)),o.join("")}function Xt(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===Qt||o===Yt;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===Qt||o===Yt;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Ss(e,t){const n={type:"text",value:Cs(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Es(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const vs={blockquote:es,break:ns,code:ts,delete:rs,emphasis:is,footnoteReference:ls,heading:os,html:as,imageReference:ss,image:us,inlineCode:cs,linkReference:fs,link:hs,listItem:ps,list:ds,paragraph:gs,root:ys,strong:xs,table:ks,tableCell:ws,tableRow:bs,text:Ss,thematicBreak:Es,toml:un,yaml:un,definition:un,footnoteDefinition:un};function un(){}const Yr=-1,En=0,Ze=1,kn=2,ht=3,pt=4,mt=5,dt=6,Xr=7,Gr=8,Jr=typeof self=="object"?self:globalThis,Gt=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new Jr[e](t)},Is=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,l]=t[i];switch(o){case En:case Yr:return n(l,i);case Ze:{const a=n([],i);for(const s of l)a.push(r(s));return a}case kn:{const a=n({},i);for(const[s,u]of l)a[r(s)]=r(u);return a}case ht:return n(new Date(l),i);case pt:{const{source:a,flags:s}=l;return n(new RegExp(a,s),i)}case mt:{const a=n(new Map,i);for(const[s,u]of l)a.set(r(s),r(u));return a}case dt:{const a=n(new Set,i);for(const s of l)a.add(r(s));return a}case Xr:{const{name:a,message:s}=l;return n(typeof Jr[a]=="function"?Gt(a,s):new Error(s),i)}case Gr:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:a}=new Uint8Array(l);return n(new DataView(a),l)}}return n(Gt(o,l),i)};return r},Jt=e=>Is(new Map,e)(0),Pe="",{toString:As}={},{keys:_s}=Object,Ye=e=>{const t=typeof e;if(t!=="object"||!e)return[En,t];const n=As.call(e).slice(8,-1);switch(n){case"Array":return[Ze,Pe];case"Object":return[kn,Pe];case"Date":return[ht,Pe];case"RegExp":return[pt,Pe];case"Map":return[mt,Pe];case"Set":return[dt,Pe];case"DataView":return[Ze,n]}return n.includes("Array")?[Ze,n]:e instanceof Error?[Xr,e.name||"Error"]:[kn,n]},cn=([e,t])=>e===En&&(t==="function"||t==="symbol"),Ts=(e,t,n,r)=>{const i=(l,a)=>{const s=r.push(l)-1;return n.set(a,s),s},o=l=>{if(n.has(l))return n.get(l);let[a,s]=Ye(l);switch(a){case En:{let f=l;switch(s){case"bigint":a=Gr,f=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);f=null;break;case"undefined":return i([Yr],l)}return i([a,f],l)}case Ze:{if(s){let p=l;return s==="DataView"?p=new Uint8Array(l.buffer):s==="ArrayBuffer"&&(p=new Uint8Array(l)),i([s,[...p]],l)}const f=[],c=i([a,f],l);for(const p of l)f.push(o(p));return c}case kn:{if(s)switch(s){case"BigInt":return i([s,l.toString()],l);case"Boolean":case"Number":case"String":return i([s,l.valueOf()],l)}if(t&&"toJSON"in l)return o(l.toJSON());const f=[],c=i([a,f],l);for(const p of _s(l))(e||!cn(Ye(l[p])))&&f.push([o(p),o(l[p])]);return c}case ht:return i([a,isNaN(l.getTime())?Pe:l.toISOString()],l);case pt:{const{source:f,flags:c}=l;return i([a,{source:f,flags:c}],l)}case mt:{const f=[],c=i([a,f],l);for(const[p,h]of l)(e||!(cn(Ye(p))||cn(Ye(h))))&&f.push([o(p),o(h)]);return c}case dt:{const f=[],c=i([a,f],l);for(const p of l)(e||!cn(Ye(p)))&&f.push(o(p));return c}}const{message:u}=l;return i([a,{name:s,message:u}],l)};return o},Kt=(e,{json:t,lossy:n}={})=>{const r=[];return Ts(!(t||n),!!t,new Map,r)(e),r},bn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Jt(Kt(e,t)):structuredClone(e):(e,t)=>Jt(Kt(e,t));function Ps(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function zs(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Ls(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Ps,r=e.options.footnoteBackLabel||zs,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[s]);if(!u)continue;const f=e.all(u),c=String(u.identifier).toUpperCase(),p=He(c.toLowerCase());let h=0;const g=[],w=e.footnoteCounts.get(c);for(;w!==void 0&&++h<=w;){g.length>0&&g.push({type:"text",value:" "});let I=typeof n=="string"?n:n(s,h);typeof I=="string"&&(I={type:"text",value:I}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,h),className:["data-footnote-backref"]},children:Array.isArray(I)?I:[I]})}const S=f[f.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const I=S.children[S.children.length-1];I&&I.type==="text"?I.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(...g)}else f.push(...g);const x={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(f,!0)};e.patch(u,x),a.push(x)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...bn(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
28
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
|
|
29
|
+
`}]}}const vn=(function(e){if(e==null)return Ms;if(typeof e=="function")return In(e);if(typeof e=="object")return Array.isArray(e)?Ds(e):js(e);if(typeof e=="string")return Fs(e);throw new Error("Expected function, string, or object as test")});function Ds(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=vn(e[n]);return In(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function js(e){const t=e;return In(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function Fs(e){return In(t);function t(n){return n&&n.type===e}}function In(e){return t;function t(n,r,i){return!!(Rs(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function Ms(){return!0}function Rs(e){return e!==null&&typeof e=="object"&&"type"in e}const Kr=[],Ns=!0,Kn=!1,Os="skip";function Zr(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=vn(i),l=r?-1:1;a(e,void 0,[])();function a(s,u,f){const c=s&&typeof s=="object"?s:{};if(typeof c.type=="string"){const h=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(s.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=Kr,g,w,S;if((!t||o(s,u,f[f.length-1]||void 0))&&(h=Bs(n(s,f)),h[0]===Kn))return h;if("children"in s&&s.children){const x=s;if(x.children&&h[0]!==Os)for(w=(r?x.children.length:-1)+l,S=f.concat(x);w>-1&&w<x.children.length;){const I=x.children[w];if(g=a(I,w,S)(),g[0]===Kn)return g;w=typeof g[1]=="number"?g[1]:w+l}}return h}}}function Bs(e){return Array.isArray(e)?e:typeof e=="number"?[Ns,e]:e==null?Kr:[e]}function gt(e,t,n,r){let i,o,l;typeof t=="function"&&typeof n!="function"?(o=void 0,l=t,i=n):(o=t,l=n,i=r),Zr(e,o,a,i);function a(s,u){const f=u[u.length-1],c=f?f.children.indexOf(s):void 0;return l(s,c,f)}}const Zn={}.hasOwnProperty,Hs={};function qs(e,t){const n=t||Hs,r=new Map,i=new Map,o=new Map,l={...vs,...n.handlers},a={all:u,applyData:Vs,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:s,options:n,patch:$s,wrap:Ws};return gt(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,p=String(f.identifier).toUpperCase();c.has(p)||c.set(p,f)}}),a;function s(f,c){const p=f.type,h=a.handlers[p];if(Zn.call(a.handlers,p)&&h)return h(a,f,c);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in f){const{children:w,...S}=f,x=bn(S);return x.children=a.all(f),x}return bn(f)}return(a.options.unknownHandler||Us)(a,f,c)}function u(f){const c=[];if("children"in f){const p=f.children;let h=-1;for(;++h<p.length;){const g=a.one(p[h],f);if(g){if(h&&p[h-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=Zt(g.value)),!Array.isArray(g)&&g.type==="element")){const w=g.children[0];w&&w.type==="text"&&(w.value=Zt(w.value))}Array.isArray(g)?c.push(...g):c.push(g)}}}return c}}function $s(e,t){e.position&&(t.position=Pl(e))}function Vs(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&o&&Object.assign(n.properties,bn(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Us(e,t){const n=t.data||{},r="value"in t&&!(Zn.call(n,"hProperties")||Zn.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ws(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
30
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
31
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
32
|
+
`}),n}function Zt(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function er(e,t){const n=qs(e,t),r=n.one(e,void 0),i=Ls(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
|
|
33
|
+
`},i),o}function Qs(e,t){return e&&"run"in e?async function(n,r){const i=er(n,{file:r,...t});await e.run(i,r)}:function(n,r){return er(n,{file:r,...e||t})}}function nr(e){if(e)throw e}var Ln,tr;function Ys(){if(tr)return Ln;tr=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},o=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var f=e.call(u,"constructor"),c=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!f&&!c)return!1;var p;for(p in u);return typeof p>"u"||e.call(u,p)},l=function(u,f){n&&f.name==="__proto__"?n(u,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):u[f.name]=f.newValue},a=function(u,f){if(f==="__proto__")if(e.call(u,f)){if(r)return r(u,f).value}else return;return u[f]};return Ln=function s(){var u,f,c,p,h,g,w=arguments[0],S=1,x=arguments.length,I=!1;for(typeof w=="boolean"&&(I=w,w=arguments[1]||{},S=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});S<x;++S)if(u=arguments[S],u!=null)for(f in u)c=a(w,f),p=a(u,f),w!==p&&(I&&p&&(o(p)||(h=i(p)))?(h?(h=!1,g=c&&i(c)?c:[]):g=c&&o(c)?c:{},l(w,{name:f,newValue:s(I,g,p)})):typeof p<"u"&&l(w,{name:f,newValue:p}));return w},Ln}var Xs=Ys();const Dn=vr(Xs);function et(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Gs(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);a(null,...i);function a(s,...u){const f=e[++o];let c=-1;if(s){l(s);return}for(;++c<i.length;)(u[c]===null||u[c]===void 0)&&(u[c]=i[c]);i=u,f?Js(f,a)(...u):l(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Js(e,t){let n;return r;function r(...l){const a=e.length>l.length;let s;a&&l.push(i);try{s=e.apply(this,l)}catch(u){const f=u;if(a&&n)throw f;return i(f)}a||(s&&s.then&&typeof s.then=="function"?s.then(o,i):s instanceof Error?i(s):o(s))}function i(l,...a){n||(n=!0,t(l,...a))}function o(l){i(null,l)}}const me={basename:Ks,dirname:Zs,extname:eu,join:nu,sep:"/"};function Ks(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');on(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else l<0&&(o=!0,l=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function Zs(e){if(on(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function eu(e){on(e);let t=e.length,n=-1,r=0,i=-1,o=0,l;for(;t--;){const a=e.codePointAt(t);if(a===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),a===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function nu(...e){let t=-1,n;for(;++t<e.length;)on(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":tu(n)}function tu(e){on(e);const t=e.codePointAt(0)===47;let n=ru(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function ru(e,t){let n="",r=0,i=-1,o=0,l=-1,a,s;for(;++l<=e.length;){if(l<e.length)a=e.codePointAt(l);else{if(a===47)break;a=47}if(a===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),i=l,o=0;continue}}else if(n.length>0){n="",r=0,i=l,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,l):n=e.slice(i+1,l),r=l-i-1;i=l,o=0}else a===46&&o>-1?o++:o=-1}return n}function on(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const iu={cwd:lu};function lu(){return"/"}function nt(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function ou(e){if(typeof e=="string")e=new URL(e);else if(!nt(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return au(e)}function au(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const jn=["history","path","basename","stem","extname","dirname"];class ei{constructor(t){let n;t?nt(t)?n={path:t}:typeof t=="string"||su(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":iu.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<jn.length;){const o=jn[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)jn.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?me.basename(this.path):void 0}set basename(t){Mn(t,"basename"),Fn(t,"basename"),this.path=me.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?me.dirname(this.path):void 0}set dirname(t){rr(this.basename,"dirname"),this.path=me.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?me.extname(this.path):void 0}set extname(t){if(Fn(t,"extname"),rr(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=me.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){nt(t)&&(t=ou(t)),Mn(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?me.basename(this.path,this.extname):void 0}set stem(t){Mn(t,"stem"),Fn(t,"stem"),this.path=me.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Z(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Fn(e,t){if(e&&e.includes(me.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+me.sep+"`")}function Mn(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function rr(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function su(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const uu=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),cu={}.hasOwnProperty;class yt extends uu{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Gs()}copy(){const t=new yt;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Dn(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(On("data",this.frozen),this.namespace[t]=n,this):cu.call(this.namespace,t)&&this.namespace[t]||void 0:t?(On("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=fn(t),r=this.parser||this.Parser;return Rn("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Rn("process",this.parser||this.Parser),Nn("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,l){const a=fn(t),s=r.parse(a);r.run(s,a,function(f,c,p){if(f||!c||!p)return u(f);const h=c,g=r.stringify(h,p);pu(g)?p.value=g:p.result=g,u(f,p)});function u(f,c){f||!c?l(f):o?o(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),Rn("processSync",this.parser||this.Parser),Nn("processSync",this.compiler||this.Compiler),this.process(t,i),lr("processSync","process",n),r;function i(o,l){n=!0,nr(o),r=l}}run(t,n,r){ir(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(l,a){const s=fn(n);i.run(t,s,u);function u(f,c,p){const h=c||t;f?a(f):l?l(h):r(void 0,h,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),lr("runSync","run",r),i;function o(l,a){nr(l),i=a,r=!0}}stringify(t,n){this.freeze();const r=fn(n),i=this.compiler||this.Compiler;return Nn("stringify",i),ir(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(On("use",this.frozen),t!=null)if(typeof t=="function")s(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[f,...c]=u;s(f,c)}else l(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function l(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(i.settings=Dn(!0,i.settings,u.settings))}function a(u){let f=-1;if(u!=null)if(Array.isArray(u))for(;++f<u.length;){const c=u[f];o(c)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,f){let c=-1,p=-1;for(;++c<r.length;)if(r[c][0]===u){p=c;break}if(p===-1)r.push([u,...f]);else if(f.length>0){let[h,...g]=f;const w=r[p][1];et(w)&&et(h)&&(h=Dn(!0,w,h)),r[p]=[u,h,...g]}}}}const fu=new yt().freeze();function Rn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Nn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function On(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ir(e){if(!et(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function lr(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function fn(e){return hu(e)?e:new ei(e)}function hu(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function pu(e){return typeof e=="string"||mu(e)}function mu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const du="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",or=[],ar={allowDangerousHtml:!0},gu=/^(https?|ircs?|mailto|xmpp)$/i,yu=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function xu(e){const t=ku(e),n=bu(e);return wu(t.runSync(t.parse(n),n),e)}function ku(e){const t=e.rehypePlugins||or,n=e.remarkPlugins||or,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...ar}:ar;return fu().use(Za).use(n).use(Qs,r).use(t)}function bu(e){const t=e.children||"",n=new ei;return typeof t=="string"&&(n.value=t),n}function wu(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,l=t.skipHtml,a=t.unwrapDisallowed,s=t.urlTransform||Cu;for(const f of yu)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+du+f.id,void 0);return gt(e,u),Fl(e,{Fragment:C.Fragment,components:i,ignoreInvalidStyle:!0,jsx:C.jsx,jsxs:C.jsxs,passKeys:!0,passNode:!0});function u(f,c,p){if(f.type==="raw"&&p&&typeof c=="number")return l?p.children.splice(c,1):p.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let h;for(h in Tn)if(Object.hasOwn(Tn,h)&&Object.hasOwn(f.properties,h)){const g=f.properties[h],w=Tn[h];(w===null||w.includes(f.tagName))&&(f.properties[h]=s(String(g||""),h,f))}}if(f.type==="element"){let h=n?!n.includes(f.tagName):o?o.includes(f.tagName):!1;if(!h&&r&&typeof c=="number"&&(h=!r(f,c,p)),h&&p&&typeof c=="number")return a&&f.children?p.children.splice(c,1,...f.children):p.children.splice(c,1),c}}}function Cu(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||gu.test(e.slice(0,t))?e:""}function sr(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Su(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Eu(e,t,n){const i=vn((n||{}).ignore||[]),o=vu(t);let l=-1;for(;++l<o.length;)Zr(e,"text",a);function a(u,f){let c=-1,p;for(;++c<f.length;){const h=f[c],g=p?p.children:void 0;if(i(h,g?g.indexOf(h):void 0,p))return;p=h}if(p)return s(u,f)}function s(u,f){const c=f[f.length-1],p=o[l][0],h=o[l][1];let g=0;const S=c.children.indexOf(u);let x=!1,I=[];p.lastIndex=0;let E=p.exec(u.value);for(;E;){const M=E.index,R={index:E.index,input:E.input,stack:[...f,u]};let k=h(...E,R);if(typeof k=="string"&&(k=k.length>0?{type:"text",value:k}:void 0),k===!1?p.lastIndex=M+1:(g!==M&&I.push({type:"text",value:u.value.slice(g,M)}),Array.isArray(k)?I.push(...k):k&&I.push(k),g=M+E[0].length,x=!0),!p.global)break;E=p.exec(u.value)}return x?(g<u.value.length&&I.push({type:"text",value:u.value.slice(g)}),c.children.splice(S,1,...I)):I=[u],S+I.length}}function vu(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([Iu(i[0]),Au(i[1])])}return t}function Iu(e){return typeof e=="string"?new RegExp(Su(e),"g"):e}function Au(e){return typeof e=="function"?e:function(){return e}}const Bn="phrasing",Hn=["autolink","link","image","label"];function _u(){return{transforms:[Fu],enter:{literalAutolink:Pu,literalAutolinkEmail:qn,literalAutolinkHttp:qn,literalAutolinkWww:qn},exit:{literalAutolink:ju,literalAutolinkEmail:Du,literalAutolinkHttp:zu,literalAutolinkWww:Lu}}}function Tu(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Bn,notInConstruct:Hn},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Bn,notInConstruct:Hn},{character:":",before:"[ps]",after:"\\/",inConstruct:Bn,notInConstruct:Hn}]}}function Pu(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function qn(e){this.config.enter.autolinkProtocol.call(this,e)}function zu(e){this.config.exit.autolinkProtocol.call(this,e)}function Lu(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Du(e){this.config.exit.autolinkEmail.call(this,e)}function ju(e){this.exit(e)}function Fu(e){Eu(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Mu],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,Ru]],{ignore:["link","linkReference"]})}function Mu(e,t,n,r,i){let o="";if(!ni(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!Nu(n)))return!1;const l=Ou(n+r);if(!l[0])return!1;const a={type:"link",title:null,url:o+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[a,{type:"text",value:l[1]}]:a}function Ru(e,t,n,r){return!ni(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Nu(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Ou(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=sr(e,"(");let o=sr(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function ni(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Le(n)||Cn(n))&&(!t||n!==47)}ti.peek=Yu;function Bu(){this.buffer()}function Hu(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function qu(){this.buffer()}function $u(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Vu(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=pe(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Uu(e){this.exit(e)}function Wu(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=pe(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Qu(e){this.exit(e)}function Yu(){return"["}function ti(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const l=n.enter("footnoteReference"),a=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),a(),l(),o+=i.move("]"),o}function Xu(){return{enter:{gfmFootnoteCallString:Bu,gfmFootnoteCall:Hu,gfmFootnoteDefinitionLabelString:qu,gfmFootnoteDefinition:$u},exit:{gfmFootnoteCallString:Vu,gfmFootnoteCall:Uu,gfmFootnoteDefinitionLabelString:Wu,gfmFootnoteDefinition:Qu}}}function Gu(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:ti},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,o,l){const a=o.createTracker(l);let s=a.move("[^");const u=o.enter("footnoteDefinition"),f=o.enter("label");return s+=a.move(o.safe(o.associationId(r),{before:s,after:"]"})),f(),s+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),s+=a.move((t?`
|
|
34
|
+
`:" ")+o.indentLines(o.containerFlow(r,a.current()),t?ri:Ju))),u(),s}}function Ju(e,t,n){return t===0?e:ri(e,t,n)}function ri(e,t,n){return(n?"":" ")+e}const Ku=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];ii.peek=rc;function Zu(){return{canContainEols:["delete"],enter:{strikethrough:nc},exit:{strikethrough:tc}}}function ec(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Ku}],handlers:{delete:ii}}}function nc(e){this.enter({type:"delete",children:[]},e)}function tc(e){this.exit(e)}function ii(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let l=i.move("~~");return l+=n.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),o(),l}function rc(){return"~"}function ic(e){return e.length}function lc(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||ic,o=[],l=[],a=[],s=[];let u=0,f=-1;for(;++f<e.length;){const w=[],S=[];let x=-1;for(e[f].length>u&&(u=e[f].length);++x<e[f].length;){const I=oc(e[f][x]);if(n.alignDelimiters!==!1){const E=i(I);S[x]=E,(s[x]===void 0||E>s[x])&&(s[x]=E)}w.push(I)}l[f]=w,a[f]=S}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<u;)o[c]=ur(r[c]);else{const w=ur(r);for(;++c<u;)o[c]=w}c=-1;const p=[],h=[];for(;++c<u;){const w=o[c];let S="",x="";w===99?(S=":",x=":"):w===108?S=":":w===114&&(x=":");let I=n.alignDelimiters===!1?1:Math.max(1,s[c]-S.length-x.length);const E=S+"-".repeat(I)+x;n.alignDelimiters!==!1&&(I=S.length+I+x.length,I>s[c]&&(s[c]=I),h[c]=I),p[c]=E}l.splice(1,0,p),a.splice(1,0,h),f=-1;const g=[];for(;++f<l.length;){const w=l[f],S=a[f];c=-1;const x=[];for(;++c<u;){const I=w[c]||"";let E="",M="";if(n.alignDelimiters!==!1){const R=s[c]-(S[c]||0),k=o[c];k===114?E=" ".repeat(R):k===99?R%2?(E=" ".repeat(R/2+.5),M=" ".repeat(R/2-.5)):(E=" ".repeat(R/2),M=E):M=" ".repeat(R)}n.delimiterStart!==!1&&!c&&x.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&I==="")&&(n.delimiterStart!==!1||c)&&x.push(" "),n.alignDelimiters!==!1&&x.push(E),x.push(I),n.alignDelimiters!==!1&&x.push(M),n.padding!==!1&&x.push(" "),(n.delimiterEnd!==!1||c!==u-1)&&x.push("|")}g.push(n.delimiterEnd===!1?x.join("").replace(/ +$/,""):x.join(""))}return g.join(`
|
|
35
|
+
`)}function oc(e){return e==null?"":String(e)}function ur(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function ac(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const l=n.indentLines(n.containerFlow(e,o.current()),sc);return i(),l}function sc(e,t,n){return">"+(n?"":" ")+e}function uc(e,t){return cr(e,t.inConstruct,!0)&&!cr(e,t.notInConstruct,!1)}function cr(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function fr(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
36
|
+
`&&uc(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
37
|
+
`}function cc(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>l&&(l=o):o=1,i=r+t.length,r=n.indexOf(t,i);return l}function fc(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function hc(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function pc(e,t,n,r){const i=hc(n),o=e.value||"",l=i==="`"?"GraveAccent":"Tilde";if(fc(e,n)){const c=n.enter("codeIndented"),p=n.indentLines(o,mc);return c(),p}const a=n.createTracker(r),s=i.repeat(Math.max(cc(o,i)+1,3)),u=n.enter("codeFenced");let f=a.move(s);if(e.lang){const c=n.enter(`codeFencedLang${l}`);f+=a.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...a.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${l}`);f+=a.move(" "),f+=a.move(n.safe(e.meta,{before:f,after:`
|
|
38
|
+
`,encode:["`"],...a.current()})),c()}return f+=a.move(`
|
|
39
|
+
`),o&&(f+=a.move(o+`
|
|
40
|
+
`)),f+=a.move(s),u(),f}function mc(e,t,n){return(n?"":" ")+e}function xt(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function dc(e,t,n,r){const i=xt(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("definition");let a=n.enter("label");const s=n.createTracker(r);let u=s.move("[");return u+=s.move(n.safe(n.associationId(e),{before:u,after:"]",...s.current()})),u+=s.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":`
|
|
41
|
+
`,...s.current()}))),a(),e.title&&(a=n.enter(`title${o}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),a()),l(),u}function gc(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function nn(e){return"&#x"+e.toString(16).toUpperCase()+";"}function wn(e,t,n){const r=Oe(e),i=Oe(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}li.peek=yc;function li(e,t,n,r){const i=gc(n),o=n.enter("emphasis"),l=n.createTracker(r),a=l.move(i);let s=l.move(n.containerPhrasing(e,{after:i,before:a,...l.current()}));const u=s.charCodeAt(0),f=wn(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(s=nn(u)+s.slice(1));const c=s.charCodeAt(s.length-1),p=wn(r.after.charCodeAt(0),c,i);p.inside&&(s=s.slice(0,-1)+nn(c));const h=l.move(i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+s+h}function yc(e,t,n){return n.options.emphasis||"*"}function xc(e,t){let n=!1;return gt(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Kn}),!!((!e.depth||e.depth<3)&&ut(e)&&(t.options.setext||n))}function kc(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(xc(e,n)){const f=n.enter("headingSetext"),c=n.enter("phrasing"),p=n.containerPhrasing(e,{...o.current(),before:`
|
|
42
|
+
`,after:`
|
|
43
|
+
`});return c(),f(),p+`
|
|
44
|
+
`+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
|
|
45
|
+
`))+1))}const l="#".repeat(i),a=n.enter("headingAtx"),s=n.enter("phrasing");o.move(l+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
|
|
46
|
+
`,...o.current()});return/^[\t ]/.test(u)&&(u=nn(u.charCodeAt(0))+u.slice(1)),u=u?l+" "+u:l,n.options.closeAtx&&(u+=" "+l),s(),a(),u}oi.peek=bc;function oi(e){return e.value||""}function bc(){return"<"}ai.peek=wc;function ai(e,t,n,r){const i=xt(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("image");let a=n.enter("label");const s=n.createTracker(r);let u=s.move("![");return u+=s.move(n.safe(e.alt,{before:u,after:"]",...s.current()})),u+=s.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),a(),e.title&&(a=n.enter(`title${o}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),a()),u+=s.move(")"),l(),u}function wc(){return"!"}si.peek=Cc;function si(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let l=n.enter("label");const a=n.createTracker(r);let s=a.move("![");const u=n.safe(e.alt,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),l();const f=n.stack;n.stack=[],l=n.enter("reference");const c=n.safe(n.associationId(e),{before:s,after:"]",...a.current()});return l(),n.stack=f,o(),i==="full"||!u||u!==c?s+=a.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function Cc(){return"!"}ui.peek=Sc;function ui(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const l=n.unsafe[o],a=n.compilePattern(l);let s;if(l.atBreak)for(;s=a.exec(r);){let u=s.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(s.index+1)}}return i+r+i}function Sc(){return"`"}function ci(e,t){const n=ut(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}fi.peek=Ec;function fi(e,t,n,r){const i=xt(n),o=i==='"'?"Quote":"Apostrophe",l=n.createTracker(r);let a,s;if(ci(e,n)){const f=n.stack;n.stack=[],a=n.enter("autolink");let c=l.move("<");return c+=l.move(n.containerPhrasing(e,{before:c,after:">",...l.current()})),c+=l.move(">"),a(),n.stack=f,c}a=n.enter("link"),s=n.enter("label");let u=l.move("[");return u+=l.move(n.containerPhrasing(e,{before:u,after:"](",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),u+=l.move(")"),a(),u}function Ec(e,t,n){return ci(e,n)?"<":"["}hi.peek=vc;function hi(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let l=n.enter("label");const a=n.createTracker(r);let s=a.move("[");const u=n.containerPhrasing(e,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),l();const f=n.stack;n.stack=[],l=n.enter("reference");const c=n.safe(n.associationId(e),{before:s,after:"]",...a.current()});return l(),n.stack=f,o(),i==="full"||!u||u!==c?s+=a.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function vc(){return"["}function kt(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Ic(e){const t=kt(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Ac(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function pi(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function _c(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let l=e.ordered?Ac(n):kt(n);const a=e.ordered?l==="."?")":".":Ic(n);let s=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(s=!0),pi(n)===l&&f){let c=-1;for(;++c<e.children.length;){const p=e.children[c];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(l=a),n.bulletCurrent=l;const u=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=o,i(),u}function Tc(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Pc(e,t,n,r){const i=Tc(n);let o=n.bulletCurrent||kt(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let l=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const a=n.createTracker(r);a.move(o+" ".repeat(l-o.length)),a.shift(l);const s=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,a.current()),f);return s(),u;function f(c,p,h){return p?(h?"":" ".repeat(l))+c:(h?o:o+" ".repeat(l-o.length))+c}}function zc(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),l=n.containerPhrasing(e,r);return o(),i(),l}const Lc=vn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Dc(e,t,n,r){return(e.children.some(function(l){return Lc(l)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function jc(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}mi.peek=Fc;function mi(e,t,n,r){const i=jc(n),o=n.enter("strong"),l=n.createTracker(r),a=l.move(i+i);let s=l.move(n.containerPhrasing(e,{after:i,before:a,...l.current()}));const u=s.charCodeAt(0),f=wn(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(s=nn(u)+s.slice(1));const c=s.charCodeAt(s.length-1),p=wn(r.after.charCodeAt(0),c,i);p.inside&&(s=s.slice(0,-1)+nn(c));const h=l.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+s+h}function Fc(e,t,n){return n.options.strong||"*"}function Mc(e,t,n,r){return n.safe(e.value,r)}function Rc(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Nc(e,t,n){const r=(pi(n)+(n.options.ruleSpaces?" ":"")).repeat(Rc(n));return n.options.ruleSpaces?r.slice(0,-1):r}const di={blockquote:ac,break:fr,code:pc,definition:dc,emphasis:li,hardBreak:fr,heading:kc,html:oi,image:ai,imageReference:si,inlineCode:ui,link:fi,linkReference:hi,list:_c,listItem:Pc,paragraph:zc,root:Dc,strong:mi,text:Mc,thematicBreak:Nc};function Oc(){return{enter:{table:Bc,tableData:hr,tableHeader:hr,tableRow:qc},exit:{codeText:$c,table:Hc,tableData:$n,tableHeader:$n,tableRow:$n}}}function Bc(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Hc(e){this.exit(e),this.data.inTable=void 0}function qc(e){this.enter({type:"tableRow",children:[]},e)}function $n(e){this.exit(e)}function hr(e){this.enter({type:"tableCell",children:[]},e)}function $c(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Vc));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Vc(e,t){return t==="|"?t:e}function Uc(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
47
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:l,tableCell:s,tableRow:a}};function l(h,g,w,S){return u(f(h,w,S),h.align)}function a(h,g,w,S){const x=c(h,w,S),I=u([x]);return I.slice(0,I.indexOf(`
|
|
48
|
+
`))}function s(h,g,w,S){const x=w.enter("tableCell"),I=w.enter("phrasing"),E=w.containerPhrasing(h,{...S,before:o,after:o});return I(),x(),E}function u(h,g){return lc(h,{align:g,alignDelimiters:r,padding:n,stringLength:i})}function f(h,g,w){const S=h.children;let x=-1;const I=[],E=g.enter("table");for(;++x<S.length;)I[x]=c(S[x],g,w);return E(),I}function c(h,g,w){const S=h.children;let x=-1;const I=[],E=g.enter("tableRow");for(;++x<S.length;)I[x]=s(S[x],h,g,w);return E(),I}function p(h,g,w){let S=di.inlineCode(h,g,w);return w.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function Wc(){return{exit:{taskListCheckValueChecked:pr,taskListCheckValueUnchecked:pr,paragraph:Yc}}}function Qc(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Xc}}}function pr(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Yc(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,l;for(;++o<i.length;){const a=i[o];if(a.type==="paragraph"){l=a;break}}l===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Xc(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);o&&a.move(l);let s=di.listItem(e,t,n,{...r,...a.current()});return o&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(f){return f+l}}function Gc(){return[_u(),Xu(),Zu(),Oc(),Wc()]}function Jc(e){return{extensions:[Tu(),Gu(e),ec(),Uc(e),Qc()]}}const Kc={tokenize:lf,partial:!0},gi={tokenize:of,partial:!0},yi={tokenize:af,partial:!0},xi={tokenize:sf,partial:!0},Zc={tokenize:uf,partial:!0},ki={name:"wwwAutolink",tokenize:tf,previous:wi},bi={name:"protocolAutolink",tokenize:rf,previous:Ci},we={name:"emailAutolink",tokenize:nf,previous:Si},de={};function ef(){return{text:de}}let _e=48;for(;_e<123;)de[_e]=we,_e++,_e===58?_e=65:_e===91&&(_e=97);de[43]=we;de[45]=we;de[46]=we;de[95]=we;de[72]=[we,bi];de[104]=[we,bi];de[87]=[we,ki];de[119]=[we,ki];function nf(e,t,n){const r=this;let i,o;return l;function l(c){return!tt(c)||!Si.call(r,r.previous)||bt(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return tt(c)?(e.consume(c),a):c===64?(e.consume(c),s):n(c)}function s(c){return c===46?e.check(Zc,f,u)(c):c===45||c===95||K(c)?(o=!0,e.consume(c),s):f(c)}function u(c){return e.consume(c),i=!0,s}function f(c){return o&&i&&te(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function tf(e,t,n){const r=this;return i;function i(l){return l!==87&&l!==119||!wi.call(r,r.previous)||bt(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Kc,e.attempt(gi,e.attempt(yi,o),n),n)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function rf(e,t,n){const r=this;let i="",o=!1;return l;function l(c){return(c===72||c===104)&&Ci.call(r,r.previous)&&!bt(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),a):n(c)}function a(c){if(te(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(c),s}return n(c)}function s(c){return c===47?(e.consume(c),o?u:(o=!0,s)):n(c)}function u(c){return c===null||xn(c)||Q(c)||Le(c)||Cn(c)?n(c):e.attempt(gi,e.attempt(yi,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function lf(e,t,n){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),o):n(l)}function o(l){return l===null?n(l):t(l)}}function of(e,t,n){let r,i,o;return l;function l(u){return u===46||u===95?e.check(xi,s,a)(u):u===null||Q(u)||Le(u)||u!==45&&Cn(u)?s(u):(o=!0,e.consume(u),l)}function a(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),l}function s(u){return i||r||!o?n(u):t(u)}}function af(e,t){let n=0,r=0;return i;function i(l){return l===40?(n++,e.consume(l),i):l===41&&r<n?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(xi,t,o)(l):l===null||Q(l)||Le(l)?t(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function sf(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),o):a===93?(e.consume(a),i):a===60||a===null||Q(a)||Le(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||Q(a)||Le(a)?t(a):r(a)}function o(a){return te(a)?l(a):n(a)}function l(a){return a===59?(e.consume(a),r):te(a)?(e.consume(a),l):n(a)}}function uf(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return K(o)?n(o):t(o)}}function wi(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Q(e)}function Ci(e){return!te(e)}function Si(e){return!(e===47||tt(e))}function tt(e){return e===43||e===45||e===46||e===95||K(e)}function bt(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const cf={tokenize:xf,partial:!0};function ff(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:df,continuation:{tokenize:gf},exit:yf}},text:{91:{name:"gfmFootnoteCall",tokenize:mf},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:hf,resolveTo:pf}}}}function hf(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const s=r.events[i][1];if(s.type==="labelImage"){l=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return a;function a(s){if(!l||!l._balanced)return n(s);const u=pe(r.sliceSerialize({start:l.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s))}}function pf(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function mf(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),s}function s(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(o>999||c===93&&!l||c===null||c===91||Q(c))return n(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(pe(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return Q(c)||(l=!0),o++,e.consume(c),c===92?f:u}function f(c){return c===91||c===92||c===93?(e.consume(c),o++,u):u(c)}}function df(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,a;return s;function s(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(g)}function f(g){if(l>999||g===93&&!a||g===null||g===91||Q(g))return n(g);if(g===93){e.exit("chunkString");const w=e.exit("gfmFootnoteDefinitionLabelString");return o=pe(r.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return Q(g)||(a=!0),l++,e.consume(g),g===92?c:f}function c(g){return g===91||g===92||g===93?(e.consume(g),l++,f):f(g)}function p(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(o)||i.push(o),$(e,h,"gfmFootnoteDefinitionWhitespace")):n(g)}function h(g){return t(g)}}function gf(e,t,n){return e.check(ln,t,e.attempt(cf,t,n))}function yf(e){e.exit("gfmFootnoteDefinition")}function xf(e,t,n){const r=this;return $(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(o):n(o)}}function kf(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,a){let s=-1;for(;++s<l.length;)if(l[s][0]==="enter"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._close){let u=s;for(;u--;)if(l[u][0]==="exit"&&l[u][1].type==="strikethroughSequenceTemporary"&&l[u][1]._open&&l[s][1].end.offset-l[s][1].start.offset===l[u][1].end.offset-l[u][1].start.offset){l[s][1].type="strikethroughSequence",l[u][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},l[u][1].start),end:Object.assign({},l[s][1].end)},c={type:"strikethroughText",start:Object.assign({},l[u][1].end),end:Object.assign({},l[s][1].start)},p=[["enter",f,a],["enter",l[u][1],a],["exit",l[u][1],a],["enter",c,a]],h=a.parser.constructs.insideSpan.null;h&&ae(p,p.length,0,Sn(h,l.slice(u+1,s),a)),ae(p,p.length,0,[["exit",c,a],["enter",l[s][1],a],["exit",l[s][1],a],["exit",f,a]]),ae(l,u-1,s-u+3,p),s=u+p.length-2;break}}for(s=-1;++s<l.length;)l[s][1].type==="strikethroughSequenceTemporary"&&(l[s][1].type="data");return l}function o(l,a,s){const u=this.previous,f=this.events;let c=0;return p;function p(g){return u===126&&f[f.length-1][1].type!=="characterEscape"?s(g):(l.enter("strikethroughSequenceTemporary"),h(g))}function h(g){const w=Oe(u);if(g===126)return c>1?s(g):(l.consume(g),c++,h);if(c<2&&!n)return s(g);const S=l.exit("strikethroughSequenceTemporary"),x=Oe(g);return S._open=!x||x===2&&!!w,S._close=!w||w===2&&!!x,a(g)}}}class bf{constructor(){this.map=[]}add(t,n,r){wf(this,t,n,r)}consume(t){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0}}function wf(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Cf(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function Sf(){return{flow:{null:{name:"table",tokenize:Ef,resolveAll:vf}}}}function Ef(e,t,n){const r=this;let i=0,o=0,l;return a;function a(y){let T=r.events.length-1;for(;T>-1;){const D=r.events[T][1].type;if(D==="lineEnding"||D==="linePrefix")T--;else break}const _=T>-1?r.events[T][1].type:null,B=_==="tableHead"||_==="tableRow"?k:s;return B===k&&r.parser.lazy[r.now().line]?n(y):B(y)}function s(y){return e.enter("tableHead"),e.enter("tableRow"),u(y)}function u(y){return y===124||(l=!0,o+=1),f(y)}function f(y){return y===null?n(y):L(y)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),h):n(y):H(y)?$(e,f,"whitespace")(y):(o+=1,l&&(l=!1,i+=1),y===124?(e.enter("tableCellDivider"),e.consume(y),e.exit("tableCellDivider"),l=!0,f):(e.enter("data"),c(y)))}function c(y){return y===null||y===124||Q(y)?(e.exit("data"),f(y)):(e.consume(y),y===92?p:c)}function p(y){return y===92||y===124?(e.consume(y),c):c(y)}function h(y){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(y):(e.enter("tableDelimiterRow"),l=!1,H(y)?$(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(y):g(y))}function g(y){return y===45||y===58?S(y):y===124?(l=!0,e.enter("tableCellDivider"),e.consume(y),e.exit("tableCellDivider"),w):R(y)}function w(y){return H(y)?$(e,S,"whitespace")(y):S(y)}function S(y){return y===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(y),e.exit("tableDelimiterMarker"),x):y===45?(o+=1,x(y)):y===null||L(y)?M(y):R(y)}function x(y){return y===45?(e.enter("tableDelimiterFiller"),I(y)):R(y)}function I(y){return y===45?(e.consume(y),I):y===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(y),e.exit("tableDelimiterMarker"),E):(e.exit("tableDelimiterFiller"),E(y))}function E(y){return H(y)?$(e,M,"whitespace")(y):M(y)}function M(y){return y===124?g(y):y===null||L(y)?!l||i!==o?R(y):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(y)):R(y)}function R(y){return n(y)}function k(y){return e.enter("tableRow"),z(y)}function z(y){return y===124?(e.enter("tableCellDivider"),e.consume(y),e.exit("tableCellDivider"),z):y===null||L(y)?(e.exit("tableRow"),t(y)):H(y)?$(e,z,"whitespace")(y):(e.enter("data"),F(y))}function F(y){return y===null||y===124||Q(y)?(e.exit("data"),z(y)):(e.consume(y),y===92?j:F)}function j(y){return y===92||y===124?(e.consume(y),F):F(y)}}function vf(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],a=!1,s=0,u,f,c;const p=new bf;for(;++n<e.length;){const h=e[n],g=h[1];h[0]==="enter"?g.type==="tableHead"?(a=!1,s!==0&&(mr(p,t,s,u,f),f=void 0,s=0),u={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",u,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,c=void 0,o=[0,0,0,0],l=[0,n+1,0,0],a&&(a=!1,f={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",f,t]])),i=g.type==="tableDelimiterRow"?2:f?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],c=hn(p,t,o,i,void 0,c),o=[0,0,0,0]),l[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],c=hn(p,t,o,i,void 0,c)),o=l,l=[o[1],n,0,0])):g.type==="tableHead"?(a=!0,s=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(s=n,o[1]!==0?(l[0]=l[1],c=hn(p,t,o,i,n,c)):l[1]!==0&&(c=hn(p,t,l,i,n,c)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(l[3]=n)}for(s!==0&&mr(p,t,s,u,f),p.consume(t.events),n=-1;++n<t.events.length;){const h=t.events[n];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=Cf(t.events,n))}return e}function hn(e,t,n,r,i,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(o.end=Object.assign({},Ne(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const s=Ne(t.events,n[1]);if(o={type:l,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const u=Ne(t.events,n[2]),f=Ne(t.events,n[3]),c={type:a,start:Object.assign({},u),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const p=t.events[n[2]],h=t.events[n[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,w=n[3]-n[2]-1;e.add(g,w,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(o.end=Object.assign({},Ne(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function mr(e,t,n,r,i){const o=[],l=Ne(t.events,n);i&&(i.end=Object.assign({},l),o.push(["exit",i,t])),r.end=Object.assign({},l),o.push(["exit",r,t]),e.add(n+1,0,o)}function Ne(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const If={name:"tasklistCheck",tokenize:_f};function Af(){return{text:{91:If}}}function _f(e,t,n){const r=this;return i;function i(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),o)}function o(s){return Q(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),l):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),l):n(s)}function l(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(s)}function a(s){return L(s)?t(s):H(s)?e.check({tokenize:Tf},t,n)(s):n(s)}}function Tf(e,t,n){return $(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Pf(e){return Dr([ef(),ff(),kf(e),Sf(),Af()])}const zf={};function Lf(e){const t=this,n=e||zf,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Pf(n)),o.push(Gc()),l.push(Jc(n))}const Df="_wrapper_v5oy7_1",jf="_table_v5oy7_8",Ff="_th_v5oy7_14",Mf="_tr_v5oy7_24",Rf="_td_v5oy7_32",Xe={wrapper:Df,table:jf,th:Ff,tr:Mf,td:Rf};function Ei({part:e}){return C.jsx("div",{className:Xe.wrapper,children:C.jsxs("table",{className:Xe.table,children:[C.jsx("thead",{children:C.jsx("tr",{children:e.columns.map(t=>C.jsx("th",{className:Xe.th,children:t},t))})}),C.jsx("tbody",{children:e.rows.map((t,n)=>C.jsx("tr",{className:Xe.tr,children:e.columns.map(r=>C.jsx("td",{className:Xe.td,children:String(t[r]??"")},r))},n))})]})})}const Nf="_card_q8nsq_1",Of="_header_q8nsq_9",Bf="_icon_q8nsq_16",Hf="_title_q8nsq_23",qf="_description_q8nsq_29",$f="_actions_q8nsq_36",Vf="_confirm_q8nsq_41",Uf="_cancel_q8nsq_57",Ee={card:Nf,header:Of,icon:Bf,title:Hf,description:qf,actions:$f,confirm:Vf,cancel:Uf};function vi({part:e,onConfirm:t,onCancel:n}){const r=tn(),{proposal:i}=e;return C.jsxs("div",{className:Ee.card,children:[C.jsxs("div",{className:Ee.header,children:[C.jsx("svg",{className:Ee.icon,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:C.jsx("path",{d:"M10 1a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5A.75.75 0 0110 1zM5.05 3.05a.75.75 0 011.06 1.06l-1.06 1.06a.75.75 0 11-1.06-1.06l1.06-1.06zm9.9 0a.75.75 0 010 1.06l-1.06 1.06a.75.75 0 11-1.06-1.06l1.06-1.06a.75.75 0 011.06 0zM10 6a4 4 0 100 8 4 4 0 000-8zm-9 4a.75.75 0 01.75-.75h1.5a.75.75 0 010 1.5h-1.5A.75.75 0 011 10zm15.75-.75a.75.75 0 000 1.5h1.5a.75.75 0 000-1.5h-1.5zM4.11 14.89a.75.75 0 010 1.06l-1.06 1.06a.75.75 0 11-1.06-1.06l1.06-1.06a.75.75 0 011.06 0zm11.84 1.06a.75.75 0 10-1.06-1.06l-1.06 1.06a.75.75 0 101.06 1.06l1.06-1.06zM10 17.25a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5a.75.75 0 01.75-.75z"})}),C.jsx("span",{className:Ee.title,children:i.title})]}),i.description&&C.jsx("p",{className:Ee.description,children:i.description}),C.jsxs("div",{className:Ee.actions,children:[C.jsx("button",{className:Ee.confirm,onClick:()=>t(i.id,i.payload),children:i.confirmLabel??r.proposalConfirm}),C.jsx("button",{className:Ee.cancel,onClick:()=>n(i.id),children:i.cancelLabel??r.proposalCancel})]})]})}const Wf="_markdown_187bn_1",Qf="_errorText_187bn_83",Yf="_errorIcon_187bn_91",Vn={markdown:Wf,errorText:Qf,errorIcon:Yf};function Ii({part:e,onProposalConfirm:t,onProposalCancel:n}){switch(e.type){case"text":return C.jsx("div",{className:Vn.markdown,children:C.jsx(xu,{remarkPlugins:[Lf],children:e.text})});case"table":return C.jsx(Ei,{part:e});case"proposal":return C.jsx(vi,{part:e,onConfirm:t,onCancel:n});case"error":return C.jsxs("span",{className:Vn.errorText,children:[C.jsx(ol,{className:Vn.errorIcon}),e.message]})}}const Xf="_wrapper_13l1e_1",Gf="_user_13l1e_8",Jf="_assistant_13l1e_12",Kf="_avatar_13l1e_16",Zf="_bubble_13l1e_39",eh="_empty_13l1e_61",Te={wrapper:Xf,user:Gf,assistant:Jf,avatar:Kf,bubble:Zf,empty:eh};function Ai({message:e,onProposalConfirm:t,onProposalCancel:n,assistantIcon:r}){const i=e.role==="user";return C.jsxs("div",{className:`${Te.wrapper} ${i?Te.user:Te.assistant}`,children:[!i&&C.jsx("div",{className:Te.avatar,"aria-hidden":"true",children:r??C.jsx(yr,{})}),C.jsxs("div",{className:Te.bubble,children:[e.parts.map((o,l)=>C.jsx(Ii,{part:o,onProposalConfirm:t,onProposalCancel:n},l)),e.parts.length===0&&C.jsx("span",{className:Te.empty})]}),i&&C.jsx("div",{className:Te.avatar,children:"You"})]})}const nh="_wrapper_c5015_1",th="_dot_c5015_8",pn={wrapper:nh,dot:th};function _i(){return C.jsxs("div",{className:pn.wrapper,"aria-label":"Assistant is typing",children:[C.jsx("span",{className:pn.dot}),C.jsx("span",{className:pn.dot}),C.jsx("span",{className:pn.dot})]})}const rh="_list_1f8gn_1",ih="_empty_1f8gn_11",lh="_hint_1f8gn_24",oh="_typing_1f8gn_31",mn={list:rh,empty:ih,hint:lh,typing:oh};function Ti({messages:e,isLoading:t,onProposalConfirm:n,onProposalCancel:r,assistantIcon:i}){const o=tn(),l=G.useRef(null);return G.useEffect(()=>{l.current?.scrollIntoView({behavior:"smooth"})},[e,t]),C.jsxs("div",{className:mn.list,children:[e.length===0&&C.jsxs("div",{className:mn.empty,children:[C.jsx("p",{children:o.emptyStateText}),C.jsx("p",{className:mn.hint,children:C.jsx("em",{children:o.emptyStateHint})})]}),e.map(a=>C.jsx(Ai,{message:a,onProposalConfirm:n,onProposalCancel:r,assistantIcon:i},a.id)),t&&C.jsx("div",{className:mn.typing,children:C.jsx(_i,{})}),C.jsx("div",{ref:l})]})}const ah="_wrapper_v8iyr_1",sh="_textarea_v8iyr_11",uh="_toolbar_v8iyr_35",ch="_actions_v8iyr_45",fh="_actionBtn_v8iyr_52",hh="_sendBtn_v8iyr_85",ph="_spinnerIcon_v8iyr_116",mh="_stopBtn_v8iyr_126",dh="_stopIcon_v8iyr_149",be={wrapper:ah,textarea:sh,toolbar:uh,actions:ch,actionBtn:fh,sendBtn:hh,spinnerIcon:ph,stopBtn:mh,stopIcon:dh};function Pi({value:e,onChange:t,onSend:n,onStop:r,isLoading:i,placeholder:o,actions:l,sendIcon:a}){const s=tn(),u=[{icon:C.jsx(el,{}),label:s.actionAddFile},{icon:C.jsx(nl,{}),label:s.actionQuickActions},{icon:C.jsx(tl,{}),label:s.actionNew},{icon:C.jsx(rl,{}),label:s.actionHistory},{icon:C.jsx(il,{}),label:s.actionRules}],f=l??u,c=p=>{p.key==="Enter"&&!p.shiftKey&&(p.preventDefault(),n())};return C.jsxs("div",{className:be.wrapper,children:[C.jsx("textarea",{className:be.textarea,value:e,onChange:p=>t(p.target.value),onKeyDown:c,placeholder:o??s.inputPlaceholder,rows:3,disabled:i,"aria-label":s.sendMessage}),C.jsxs("div",{className:be.toolbar,children:[f.length>0&&C.jsx("div",{className:be.actions,children:f.map((p,h)=>C.jsxs("button",{className:be.actionBtn,type:"button",disabled:i,"aria-label":p.label,onClick:p.onClick,children:[p.icon,C.jsx("span",{children:p.label})]},h))}),i&&r?C.jsxs("button",{className:be.stopBtn,onClick:r,"aria-label":s.stopMessage,type:"button",children:[C.jsx("svg",{className:be.stopIcon,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:C.jsx("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2"})}),C.jsx("span",{children:s.stopMessage})]}):C.jsxs("button",{className:be.sendBtn,onClick:n,disabled:i||!e.trim(),"aria-label":s.sendMessage,type:"button",children:[i?C.jsx("svg",{className:be.spinnerIcon,viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:C.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeDasharray:"32",strokeDashoffset:"12"})}):a??C.jsx(Zi,{}),C.jsx("span",{children:s.sendMessage})]})]})]})}const gh="_wrapper_1kefv_1",yh="_icon_1kefv_14",xh="_message_1kefv_20",kh="_dismiss_1kefv_24",dn={wrapper:gh,icon:yh,message:xh,dismiss:kh};function zi({message:e,onDismiss:t}){const n=tn();return C.jsxs("div",{className:dn.wrapper,role:"alert",children:[C.jsx("svg",{className:dn.icon,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:C.jsx("path",{fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})}),C.jsx("span",{className:dn.message,children:e}),t&&C.jsx("button",{className:dn.dismiss,onClick:t,"aria-label":n.errorDismiss,children:C.jsx("svg",{viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:C.jsx("path",{d:"M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"})})})]})}const bh="_chat_1acbe_1",wh={chat:bh};function Ch({messages:e,input:t,isLoading:n,error:r,onInputChange:i,onSend:o,onStop:l,onProposalConfirm:a,onProposalCancel:s,placeholder:u,assistantIcon:f,actions:c,sendIcon:p,className:h,style:g}){return C.jsxs("div",{className:[wh.chat,h].filter(Boolean).join(" "),style:g,children:[C.jsx(Ti,{messages:e,isLoading:n,onProposalConfirm:a,onProposalCancel:s,assistantIcon:f}),r&&C.jsx(zi,{message:r}),C.jsx(Pi,{value:t,onChange:i,onSend:o,onStop:l,isLoading:n,placeholder:u,actions:c,sendIcon:p})]})}const Sh="_header_3rkjl_1",Eh="_left_3rkjl_12",vh="_icon_3rkjl_18",Ih="_title_3rkjl_23",Ah="_resetBtn_3rkjl_29",Ge={header:Sh,left:Eh,icon:vh,title:Ih,resetBtn:Ah};function _h({title:e,onReset:t,icon:n}){const r=tn();return C.jsxs("div",{className:Ge.header,children:[C.jsxs("div",{className:Ge.left,children:[C.jsx("span",{className:Ge.icon,"aria-hidden":"true",children:n??C.jsx(yr,{})}),C.jsx("span",{className:Ge.title,children:e??r.sidebarTitle})]}),t&&C.jsx("button",{className:Ge.resetBtn,onClick:t,title:r.clearConversation,"aria-label":r.clearConversation,children:C.jsx(ll,{})})]})}const Th="_sidebar_1ukfc_1",Ph={sidebar:Th};function zh({adapter:e,title:t,context:n,onProposalConfirm:r,onProposalCancel:i,icon:o,actions:l,sendIcon:a,className:s,style:u}){const{messages:f,input:c,setInput:p,sendMessage:h,stop:g,isLoading:w,error:S,reset:x,confirmProposal:I,cancelProposal:E}=dr({adapter:e,context:n,onProposalConfirm:r,onProposalCancel:i}),M=(k,z)=>{I(k,z)},R=k=>{E(k)};return C.jsxs("aside",{className:[Ph.sidebar,s].filter(Boolean).join(" "),style:u,children:[C.jsx(_h,{title:t,onReset:x,icon:o}),C.jsx(Ch,{messages:f,input:c,isLoading:w,error:S,onInputChange:p,onSend:h,onStop:g,onProposalConfirm:M,onProposalCancel:R,assistantIcon:o,actions:l,sendIcon:a})]})}exports.AiError=zi;exports.AiInput=Pi;exports.AiMessageBubble=Ai;exports.AiMessageList=Ti;exports.AiMessagePartRenderer=Ii;exports.AiProposalCard=vi;exports.AiSidebar=zh;exports.AiTablePart=Ei;exports.AiTypingIndicator=_i;exports.JuneauProvider=Gi;exports.consumeStream=Un;exports.delay=ne;exports.juneauCs=Ki;exports.juneauEn=yn;exports.mockAdapter=Hi;exports.useAiChat=dr;
|
|
49
|
+
//# sourceMappingURL=index.cjs.map
|