markshelf 0.7.0 → 0.8.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.
Files changed (72) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/build-manifest.json +3 -3
  3. package/.next/standalone/.next/prerender-manifest.json +3 -3
  4. package/.next/standalone/.next/server/app/_global-error.html +1 -1
  5. package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
  6. package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  7. package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  8. package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  9. package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
  10. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  11. package/.next/standalone/.next/server/app/_not-found.html +1 -1
  12. package/.next/standalone/.next/server/app/_not-found.rsc +2 -2
  13. package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  14. package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  15. package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  16. package/.next/standalone/.next/server/app/api/asset/route.js.nft.json +1 -1
  17. package/.next/standalone/.next/server/app/api/diff/route.js.nft.json +1 -1
  18. package/.next/standalone/.next/server/app/api/file/route.js.nft.json +1 -1
  19. package/.next/standalone/.next/server/app/api/graph/route.js.nft.json +1 -1
  20. package/.next/standalone/.next/server/app/api/history/route.js.nft.json +1 -1
  21. package/.next/standalone/.next/server/app/api/raw/[...path]/route.js.nft.json +1 -1
  22. package/.next/standalone/.next/server/app/api/search/route.js.nft.json +1 -1
  23. package/.next/standalone/.next/server/app/api/timeline/route.js.nft.json +1 -1
  24. package/.next/standalone/.next/server/app/api/tree/route.js.nft.json +1 -1
  25. package/.next/standalone/.next/server/app/api/watch/route.js.nft.json +1 -1
  26. package/.next/standalone/.next/server/app/index.html +1 -1
  27. package/.next/standalone/.next/server/app/index.rsc +4 -4
  28. package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +4 -4
  29. package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +4 -4
  30. package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  31. package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
  32. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  33. package/.next/standalone/.next/server/chunks/ssr/{1q96_modules_mermaid_dist_chunks_mermaid_core_sizeCapture-INFHLROL_mjs_1ogo6n9k2rgi4._.js → 1q96_modules_mermaid_dist_chunks_mermaid_core_sizeCapture-INFHLROL_mjs_1bbj7sttzxwb7._.js} +1 -1
  34. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0e4ml2_62oajv._.js +1 -1
  35. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0eg7wjh-6h9jf._.js +10 -0
  36. package/.next/standalone/.next/server/chunks/ssr/{node_modules_1-ydhedb1fxsp._.js → node_modules_08_3-rklxy4s5._.js} +2 -2
  37. package/.next/standalone/.next/server/chunks/ssr/{node_modules_18giqcyh1vd1y._.js → node_modules_0f73nqjg-_u-b._.js} +1 -1
  38. package/.next/standalone/.next/server/chunks/ssr/{node_modules_04qg5bar2ldzl._.js → node_modules_11w3e0v3n4x4f._.js} +1 -1
  39. package/.next/standalone/.next/server/chunks/ssr/{node_modules_0jlp8j5ogj6ku._.js → node_modules_1egvzjfpi6bpk._.js} +1 -1
  40. package/.next/standalone/.next/server/chunks/ssr/{node_modules_1512e5-8q8157._.js → node_modules_1p62xz6zues5c._.js} +1 -1
  41. package/.next/standalone/.next/server/chunks/ssr/{node_modules_15yi5hitci_xg._.js → node_modules_1x25aie8c1qp4._.js} +1 -1
  42. package/.next/standalone/.next/server/middleware-build-manifest.js +3 -3
  43. package/.next/standalone/.next/server/pages/404.html +1 -1
  44. package/.next/standalone/.next/server/pages/500.html +1 -1
  45. package/.next/standalone/.next/server/preview-props.json +3 -3
  46. package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
  47. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  48. package/.next/standalone/.next/static/chunks/1e6sbswbpvi7u.css +2 -0
  49. package/.next/standalone/.next/static/chunks/3i795q8ryovtx.js +8 -0
  50. package/.next/standalone/docs//344/273/225/346/247/230/SPEC3-UI/343/202/263/343/203/263/343/203/235/343/203/274/343/203/215/343/203/263/343/203/210/SPEC3.5-Markdown/343/203/254/343/203/263/343/203/200/343/203/252/343/203/263/343/202/260.md +11 -5
  51. package/.next/standalone/package-lock.json +57 -2
  52. package/.next/standalone/package.json +2 -1
  53. package/.next/standalone/src/app/layout.tsx +1 -0
  54. package/.next/standalone/src/app/markdown.css +361 -0
  55. package/.next/standalone/src/components/DetailPanel.tsx +2 -1
  56. package/.next/standalone/src/components/Markdown.tsx +132 -54
  57. package/.next/standalone/src/lib/remarkAlerts.test.ts +40 -0
  58. package/.next/standalone/src/lib/remarkAlerts.ts +59 -0
  59. package/.next/static/chunks/1e6sbswbpvi7u.css +2 -0
  60. package/.next/static/chunks/3i795q8ryovtx.js +8 -0
  61. package/package.json +2 -1
  62. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__113dl-108b6lu._.js +0 -10
  63. package/.next/standalone/.next/static/chunks/1_r_ieqrdfmfe.css +0 -1
  64. package/.next/standalone/.next/static/chunks/3s3m8ud2li2il.js +0 -8
  65. package/.next/static/chunks/1_r_ieqrdfmfe.css +0 -1
  66. package/.next/static/chunks/3s3m8ud2li2il.js +0 -8
  67. /package/.next/standalone/.next/static/{d5WTefQHvkibk8_NfsU7s → 9ImbnQb2uptsGLqUBu2co}/_buildManifest.js +0 -0
  68. /package/.next/standalone/.next/static/{d5WTefQHvkibk8_NfsU7s → 9ImbnQb2uptsGLqUBu2co}/_clientMiddlewareManifest.js +0 -0
  69. /package/.next/standalone/.next/static/{d5WTefQHvkibk8_NfsU7s → 9ImbnQb2uptsGLqUBu2co}/_ssgManifest.js +0 -0
  70. /package/.next/static/{d5WTefQHvkibk8_NfsU7s → 9ImbnQb2uptsGLqUBu2co}/_buildManifest.js +0 -0
  71. /package/.next/static/{d5WTefQHvkibk8_NfsU7s → 9ImbnQb2uptsGLqUBu2co}/_clientMiddlewareManifest.js +0 -0
  72. /package/.next/static/{d5WTefQHvkibk8_NfsU7s → 9ImbnQb2uptsGLqUBu2co}/_ssgManifest.js +0 -0
@@ -1,8 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,4100,(e,t,n)=>{"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,l=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},s=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t,n=r.call(e,"constructor"),l=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!l)return!1;for(t in e);return void 0===t||r.call(e,t)},u=function(e,t){l&&"__proto__"===t.name?l(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!r.call(e,t))return;else if(o)return o(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,l,o,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(t=arguments[f],null!=t)for(n in t)r=c(d,n),d!==(i=c(t,n))&&(h&&i&&(s(i)||(l=a(i)))?(l?(l=!1,o=r&&a(r)?r:[]):o=r&&s(r)?r:{},u(d,{name:n,newValue:e(h,o,i)})):void 0!==i&&u(d,{name:n,newValue:i}));return d}},52683,e=>{"use strict";var t,n=e.i(18050),r=e.i(71645);let i=(...e)=>{let t=new Set;for(let n of e)if("string"==typeof n)for(let e of n.split(/\s+/))e&&t.add(e);return[...t].join(" ")},l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},o=(0,r.createContext)({}),a=(0,r.forwardRef)(({color:e,size:t,width:n,height:a,strokeWidth:s,absoluteStrokeWidth:u,nonScalingStroke:c,className:d="",children:f,iconNode:p=[],icon:h={node:p,aliases:[],size:24},...m},g)=>{let{size:x=24,strokeWidth:y=2,absoluteStrokeWidth:v=!1,nonScalingStroke:b=!1,color:k="currentColor",className:w=""}=(0,r.useContext)(o)??{},S=!!f||(e=>{if(null==e||"object"!=typeof e)return!1;for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&(t.startsWith("aria-")||"role"===t||"title"===t)&&null!=e[t])return!0;return!1})(m),[C,E,j=[]]=function(e,t={}){return function(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,o=e.size??e.width??l.width,a=e.size??e.height??l.height,s=e.aliases?.filter(e=>"string"==typeof e&&""!==e.trim()).map(e=>`lucide-${e}`)??[],u=[...e.name?[`lucide-${e.name}`]:[],...s],c=t.className?.split(" ").filter(Boolean)??[],d=!1===t.includeDefaultClasses?i(...c):i("lucide",...u,...c),f=t.absoluteStrokeWidth?Number(t.strokeWidth??l["stroke-width"])*Number(e.size??e.width??l.width)/Number(t.size??t.width??l.width):t.strokeWidth??l["stroke-width"];return["svg",{...Object.entries(l).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),..."color"in t&&t.color&&{[r("stroke")]:t.color},..."size"in t&&null!=t.size&&{[r("width")]:t.size,[r("height")]:t.size},..."width"in t&&null!=t.width&&{[r("width")]:t.width},..."height"in t&&null!=t.height&&{[r("height")]:t.height},[r("stroke-width")]:f,...d&&{[r("class")]:d},[r("viewBox")]:`0 0 ${o} ${a}`,...!1===t.hasA11yProp?{[r("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(e=>{let[n,i,l]=e,o=t.nonScalingStroke?{[r("vector-effect")]:"non-scaling-stroke",...i}:i;return l?[n,o,l]:[n,o]})]}(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(h,{color:e??k,width:n??t??x,height:a??t??x,strokeWidth:s??y,absoluteStrokeWidth:u??v,nonScalingStroke:c??b,className:i(w,d),hasA11yProp:S,attributes:m});return(0,r.createElement)(C,{ref:g,...E},[...j.map(([e,t])=>(0,r.createElement)(e,t)),...Array.isArray(f)?f:[f]])});function s(e,t=[],n=[]){let i,l="string"==typeof e?function(e,t,n=[]){if(null==t)throw Error("[lucide]: iconNode is required when icon name is used");return{name:e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),size:24,node:t,...n.length>0?{aliases:n}:{}}}(e,t,n):e,o=(0,r.forwardRef)(({className:e,...t},n)=>(0,r.createElement)(a,{ref:n,icon:l,className:e,...t}));return l.name&&(o.displayName=(i=(e=>{let t="",n=!1;for(let r of e){if("-"===r||"_"===r||r<=" "){n=t.length>0;continue}0===t.length?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1}return t})(l.name)).charAt(0).toUpperCase()+i.slice(1)),o}let u={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};u.node;let c=s(u),d={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};d.node;let f=s(d),p={name:"folder",size:24,node:[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]};p.node;let h=s(p),m={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};m.node;let g=s(m),x={name:"file-code",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]]};x.node;let y=s(x),v={name:"book-open",size:24,node:[["path",{d:"M12 5v16",key:"1f6ucr"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z",key:"1fyvmf"}]]};v.node;let b=s(v),k=/\.md$/i,w=/\.html?$/i,S=/\.pdf$/i,C="markshelf:treeExpanded";function E({entries:e,selectedPath:t,onSelect:i}){let[l,o]=(0,r.useState)(new Set),a=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(a.current)return;let t=localStorage.getItem(C);if(t)try{let e=JSON.parse(t);if(Array.isArray(e)){o(new Set(e.filter(e=>"string"==typeof e))),a.current=!0;return}}catch{}if(e.length>0){let t=new Set;for(let n of e)"folder"===n.type&&n.hasReadme&&t.add(n.path);o(t),a.current=!0}},[e]),(0,r.useEffect)(()=>{a.current&&localStorage.setItem(C,JSON.stringify([...l]))},[l]);let s=(0,r.useRef)(null),u=(0,r.useRef)(null);(0,r.useEffect)(()=>{let n;if(!t)return;let r=(n=new Set,!function e(r,i){for(let l of r){if("file"===l.type&&l.path===t){for(let e of i)n.add(e);return!0}if("folder"===l.type){if(l.hasReadme&&l.path+"/README.md"===t){for(let e of i)n.add(e);return!0}if(l.children&&e(l.children,[...i,l.path]))return!0}}return!1}(e,[]),n);r.size>0&&o(e=>{let t=new Set(e);for(let e of r)t.add(e);return t}),requestAnimationFrame(()=>{u.current?.scrollIntoView({block:"nearest",behavior:"smooth"})})},[t,e]);let c=(0,r.useCallback)(e=>{o(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[]);return(0,n.jsxs)("div",{ref:s,className:"h-full overflow-y-auto py-1 bg-[var(--bg-base)]",children:[e.map(e=>(0,n.jsx)(j,{entry:e,depth:0,selectedPath:t,selectedRef:u,expanded:l,onToggle:c,onSelect:i},e.path)),0===e.length&&(0,n.jsx)("div",{className:"text-[var(--text-muted)] text-[13px] p-4 text-center",children:"マークダウンファイルが見つかりません"})]})}function j({entry:e,depth:t,selectedPath:r,selectedRef:i,expanded:l,onToggle:o,onSelect:a}){var s,u;let d="folder"===e.type&&!e.hasReadme,p=l.has(e.path),m="folder"===e.type&&e.children&&e.children.length>0,x="file"===e.type?r===e.path:e.hasReadme&&r===e.path+"/README.md";return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{ref:x?i:void 0,onClick:()=>{"folder"===e.type&&e.hasReadme?(a(e.path+"/README.md"),m&&!p&&o(e.path)):d?o(e.path):a(e.path)},className:`
2
- flex items-center gap-1.5 cursor-pointer select-none
3
- h-7 pr-2 text-[12px] leading-none transition-colors
4
- ${x?"bg-[var(--brand-primary)]/10 text-[var(--text-primary)]":"text-[var(--text-secondary)] hover:bg-[var(--bg-hover)]"}
5
- `,style:{paddingLeft:16*t+8},children:[m?(0,n.jsx)("span",{onClick:t=>{t.stopPropagation(),o(e.path)},className:"shrink-0 text-[var(--text-muted)] w-4 flex items-center justify-center hover:text-[var(--text-primary)]",children:p?(0,n.jsx)(c,{size:14}):(0,n.jsx)(f,{size:14})}):(0,n.jsx)("span",{className:"shrink-0 w-4"}),d?(0,n.jsx)(h,{size:14,className:"shrink-0",style:{color:"var(--folder-border)"}}):"file"===e.type&&(s=e.path,w.test(s))?(0,n.jsx)(y,{size:14,className:"shrink-0",style:{color:"var(--file-border)"}}):"file"===e.type&&(u=e.path,S.test(u))?(0,n.jsx)(b,{size:14,className:"shrink-0",style:{color:"var(--file-border)"}}):(0,n.jsx)(g,{size:14,className:"shrink-0",style:{color:"var(--file-border)"}}),(0,n.jsx)("span",{className:`truncate leading-normal ${d?"font-medium text-[var(--folder-text)]":""} ${x?"font-medium":""}`,children:e.displayName})]}),"folder"===e.type&&p&&e.children&&e.children.length>0&&(0,n.jsx)(n.Fragment,{children:e.children.map(e=>(0,n.jsx)(j,{entry:e,depth:t+1,selectedPath:r,selectedRef:i,expanded:l,onToggle:o,onSelect:a},e.path))})]})}function A(){}function z(){}let N=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,T=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,L={};function M(e,t){return((t||L).jsx?T:N).test(e)}let D=/[ \t\n\f\r]/g;function P(e){return""===e.replace(D,"")}class I{constructor(e,t){this.attribute=t,this.property=e}}I.prototype.attribute="",I.prototype.booleanish=!1,I.prototype.boolean=!1,I.prototype.commaOrSpaceSeparated=!1,I.prototype.commaSeparated=!1,I.prototype.defined=!1,I.prototype.mustUseProperty=!1,I.prototype.number=!1,I.prototype.overloadedBoolean=!1,I.prototype.property="",I.prototype.spaceSeparated=!1,I.prototype.space=void 0;let R=0,F=q(),O=q(),_=q(),$=q(),B=q(),H=q(),U=q();function q(){return 2**++R}e.s(["boolean",0,F,"booleanish",0,O,"commaOrSpaceSeparated",0,U,"commaSeparated",0,H,"number",0,$,"overloadedBoolean",0,_,"spaceSeparated",0,B],744);var V=e.i(744);let W=Object.keys(V);class J extends I{constructor(e,t,n,r){var i,l,o,a,s;let u=-1;if(super(e,t),i=this,(l=r)&&(i.space=l),"number"==typeof n)for(;++u<W.length;){let e=W[u];o=this,a=W[u],(s=(n&V[e])===V[e])&&(o[a]=s)}}}function K(e){return e.toLowerCase()}J.prototype.defined=!0;let Q=/[A-Z]/g,X=/-[a-z]/g,Z=/^data[-\w.:]+$/i;function G(e){return"-"+e.toLowerCase()}function Y(e){return e.charAt(1).toUpperCase()}let ee={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"};class et{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function en(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new et(n,r,t)}function er(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let l=new J(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[K(r)]=r,n[K(l.attribute)]=r}return new et(t,n,e.space)}et.prototype.normal={},et.prototype.property={},et.prototype.space=void 0;let ei=er({properties:{ariaActiveDescendant:null,ariaAtomic:O,ariaAutoComplete:null,ariaBusy:O,ariaChecked:O,ariaColCount:$,ariaColIndex:$,ariaColSpan:$,ariaControls:B,ariaCurrent:null,ariaDescribedBy:B,ariaDetails:null,ariaDisabled:O,ariaDropEffect:B,ariaErrorMessage:null,ariaExpanded:O,ariaFlowTo:B,ariaGrabbed:O,ariaHasPopup:null,ariaHidden:O,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:B,ariaLevel:$,ariaLive:null,ariaModal:O,ariaMultiLine:O,ariaMultiSelectable:O,ariaOrientation:null,ariaOwns:B,ariaPlaceholder:null,ariaPosInSet:$,ariaPressed:O,ariaReadOnly:O,ariaRelevant:null,ariaRequired:O,ariaRoleDescription:B,ariaRowCount:$,ariaRowIndex:$,ariaRowSpan:$,ariaSelected:O,ariaSetSize:$,ariaSort:null,ariaValueMax:$,ariaValueMin:$,ariaValueNow:$,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function el(e,t){return t in e?e[t]:t}function eo(e,t){return el(e,t.toLowerCase())}let ea=er({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:H,acceptCharset:B,accessKey:B,action:null,allow:null,allowFullScreen:F,allowPaymentRequest:F,allowUserMedia:F,alpha:F,alt:null,as:null,async:F,autoCapitalize:null,autoComplete:B,autoFocus:F,autoPlay:F,blocking:B,capture:null,charSet:null,checked:F,cite:null,className:B,closedBy:null,colorSpace:null,cols:$,colSpan:$,command:null,commandFor:null,content:null,contentEditable:O,controls:F,controlsList:B,coords:$|H,crossOrigin:null,data:null,dateTime:null,decoding:null,default:F,defer:F,dir:null,dirName:null,disabled:F,download:_,draggable:O,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:F,formTarget:null,headers:B,height:$,hidden:_,high:$,href:null,hrefLang:null,htmlFor:B,httpEquiv:B,id:null,imageSizes:null,imageSrcSet:null,inert:F,inputMode:null,integrity:null,is:null,isMap:F,itemId:null,itemProp:B,itemRef:B,itemScope:F,itemType:B,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:F,low:$,manifest:null,max:null,maxLength:$,media:null,method:null,min:null,minLength:$,multiple:F,muted:F,name:null,nonce:null,noModule:F,noValidate:F,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:F,optimum:$,pattern:null,ping:B,placeholder:null,playsInline:F,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:F,referrerPolicy:null,rel:B,required:F,reversed:F,rows:$,rowSpan:$,sandbox:B,scope:null,scoped:F,seamless:F,selected:F,shadowRootClonable:F,shadowRootCustomElementRegistry:F,shadowRootDelegatesFocus:F,shadowRootMode:null,shadowRootSerializable:F,shape:null,size:$,sizes:null,slot:null,span:$,spellCheck:O,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$,step:null,style:null,tabIndex:$,target:null,title:null,translate:null,type:null,typeMustMatch:F,useMap:null,value:O,width:$,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:B,axis:null,background:null,bgColor:null,border:$,borderColor:null,bottomMargin:$,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:F,declare:F,event:null,face:null,frame:null,frameBorder:null,hSpace:$,leftMargin:$,link:null,longDesc:null,lowSrc:null,marginHeight:$,marginWidth:$,noResize:F,noHref:F,noShade:F,noWrap:F,object:null,profile:null,prompt:null,rev:null,rightMargin:$,rules:null,scheme:null,scrolling:O,standby:null,summary:null,text:null,topMargin:$,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:F,disablePictureInPicture:F,disableRemotePlayback:F,exportParts:H,part:B,prefix:null,property:null,results:$,security:null,unselectable:null},space:"html",transform:eo}),es=er({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:U,accentHeight:$,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$,amplitude:$,arabicForm:null,ascent:$,attributeName:null,attributeType:null,azimuth:$,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$,by:null,calcMode:null,capHeight:$,className:B,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:$,diffuseConstant:$,direction:null,display:null,dur:null,divisor:$,dominantBaseline:null,download:F,dx:null,dy:null,edgeMode:null,editable:null,elevation:$,enableBackground:null,end:null,event:null,exponent:$,externalResourcesRequired:null,fill:null,fillOpacity:$,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:H,g2:H,glyphName:H,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$,horizOriginX:$,horizOriginY:$,id:null,ideographic:$,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$,k:$,k1:$,k2:$,k3:$,k4:$,kernelMatrix:U,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$,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:$,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:$,overlineThickness:$,paintOrder:null,panose1:null,path:null,pathLength:$,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:B,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$,pointsAtY:$,pointsAtZ:$,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:U,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:U,rev:U,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:U,requiredFeatures:U,requiredFonts:U,requiredFormats:U,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:$,specularExponent:$,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$,strikethroughThickness:$,string:null,stroke:null,strokeDashArray:U,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$,strokeOpacity:$,strokeWidth:null,style:null,surfaceScale:$,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:U,tabIndex:$,tableValues:null,target:null,targetX:$,targetY:$,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:U,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$,underlineThickness:$,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$,values:null,vAlphabetic:$,vMathematical:$,vectorEffect:null,vHanging:$,vIdeographic:$,version:null,vertAdvY:$,vertOriginX:$,vertOriginY:$,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:el}),eu=er({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),ec=er({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:eo}),ed=er({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),ef=en([ei,ea,eu,ec,ed],"html"),ep=en([ei,es,eu,ec,ed],"svg");var eh=/\/\*(?:[^*]|\*(?!\/))*\*\//g,em=/\n/g,eg=/^\s*/,ex=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ey=/^:\s*/,ev=/^((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|url\((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|[^)]*)\)|[^};])+)/,eb=/^[;\s]*/;let ek=eS("end"),ew=eS("start");function eS(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function eC(e){return e&&"object"==typeof e?"position"in e||"type"in e?ej(e.position):"start"in e||"end"in e?ej(e):"line"in e||"column"in e?eE(e):"":""}function eE(e){return eA(e&&e.line)+":"+eA(e&&e.column)}function ej(e){return eE(e&&e.start)+"-"+eE(e&&e.end)}function eA(e){return e&&"number"==typeof e?e:1}class ez extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},l=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(l=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=o?o.line:void 0,this.name=eC(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=l&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Object.defineProperties(ez.prototype,{file:{configurable:!0,enumerable:!0,value:"",writable:!0},name:{configurable:!0,enumerable:!0,value:"",writable:!0},reason:{configurable:!0,enumerable:!0,value:"",writable:!0},message:{configurable:!0,enumerable:!0,value:"",writable:!0},stack:{configurable:!0,enumerable:!0,value:"",writable:!0},column:{configurable:!0,enumerable:!0,writable:!0},line:{configurable:!0,enumerable:!0,writable:!0},ancestors:{configurable:!0,enumerable:!0,writable:!0},cause:{configurable:!0,enumerable:!0,writable:!0},fatal:{configurable:!0,enumerable:!0,writable:!0},place:{configurable:!0,enumerable:!0,writable:!0},ruleId:{configurable:!0,enumerable:!0,writable:!0},source:{configurable:!0,enumerable:!0,writable:!0}});let eN={}.hasOwnProperty,eT=new Map,eL=/[A-Z]/g,eM=/-([a-z])/g,eD=new Set(["table","tbody","thead","tfoot","tr"]),eP=new Set(["td","th"]),eI="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function eR(e,t,n){var r,i,l,o,a,s,u,c,d;let f,p,h,m,g,x,y,v,b,k,w;return"element"===t.type?(r=e,i=t,l=n,p=f=r.schema,"svg"===i.tagName.toLowerCase()&&"html"===f.space&&(r.schema=ep),r.ancestors.push(i),h=e$(r,i.tagName,!1),m=function(e,t){let n,r,i={};for(r in t.properties)if("children"!==r&&eN.call(t.properties,r)){let l=function(e,t,n){var r;let i;if(null==n||"number"==typeof n&&Number.isNaN(n))return;let l=function(e,t){let n=K(t),r=t,i=I;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Z.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(X,Y);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!X.test(e)){let n=e.replace(Q,G);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=J}return new i(r,t)}(e.schema,t);return(Array.isArray(n)&&(n=l.commaSeparated?(i={},(""===(r=n)[r.length-1]?[...r,""]:r).join((i.padRight?" ":"")+","+(!1===i.padLeft?"":" ")).trim()):n.join(" ").trim()),"style"===l.property)?["style","object"==typeof n?"dom"===e.stylePropertyNameCase?n:function(e){let t,n={};for(t in e)eN.call(e,t)&&(n[function(e){if("--"===e.slice(0,2))return e;let t=e.replace(eL,eH);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(n):function(e,t){let n={};try{!function(e,t){let n=null;if(!e||"string"!=typeof e)return;let r=function(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(e){var t=e.match(em);t&&(n+=t.length);var i=e.lastIndexOf("\n");r=~i?e.length-i:r+e.length}function l(){var e={line:n,column:r};return function(t){return t.position=new o(e),s(eg),t}}function o(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function a(i){var l=Error(t.source+":"+n+":"+r+": "+i);if(l.reason=i,l.filename=t.source,l.line=n,l.column=r,l.source=e,t.silent);else throw l}function s(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function u(e){for(var t;t=c();)e.push(t);return e}function c(){var t=l();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return a("End of comment missing");var o=e.slice(2,n-2);return r+=2,i(o),e=e.slice(n),r+=2,t({type:"comment",comment:o})}}o.prototype.content=e,s(eg);var d,f=[];for(u(f);d=function(){var e=l(),t=s(ex);if(t){if(c(),!s(ey))return a("property missing ':'");var n=s(ev),r=e({type:"declaration",property:t[0].replace(eh,"").trim(),value:n?n[0].replace(eh,"").trim():""});return s(eb),r}}();)f.push(d),u(f);return f}(e),i="function"==typeof t;r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:l}=e;i?t(r,l,e):l&&((n=n??{})[r]=l)})}(t,function(t,r){if(t&&r){let i=t;"--"!==i.slice(0,2)&&(i=i.toLowerCase(),"dom"===e.stylePropertyNameCase&&("-ms-"===i.slice(0,4)&&(i=i.slice(1)),i=i.replace(eM,eU))),n[i]=r}})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new ez("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=eI+"#cannot-parse-style-attribute",t}return n}(e,String(n))]:["react"===e.elementAttributeNameCase&&l.space?ee[l.property]||l.property:l.attribute,n]}(e,r,t.properties[r]);if(l){let[r,o]=l;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof o&&eP.has(t.tagName)?n=o:i[r]=o}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(r,i),g=e_(r,i),eD.has(i.tagName)&&(g=g.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&P(e.value):P(e))})),eF(r,m,h,i),eO(m,g),r.ancestors.pop(),r.schema=f,r.create(i,h,m,l)):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return A(n.type),e.evaluater.evaluateExpression(n.expression)}eB(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?(o=e,a=t,s=n,y=x=o.schema,"svg"===a.name&&"html"===x.space&&(o.schema=ep),o.ancestors.push(a),v=null===a.name?o.Fragment:e$(o,a.name,!0),b=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];A(t.type);let i=t.expression;A(i.type);let l=i.properties[0];A(l.type),Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else eB(e,t.position);else{let i,{name:l}=r;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];A(t.type),i=e.evaluater.evaluateExpression(t.expression)}else eB(e,t.position);else i=null===r.value||r.value;n[l]=i}return n}(o,a),k=e_(o,a),eF(o,b,v,a),eO(b,k),o.ancestors.pop(),o.schema=x,o.create(a,v,b,s)):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);eB(e,t.position)}(e,t):"root"===t.type?(u=e,c=t,d=n,eO(w={},e_(u,c)),u.create(c,u.Fragment,w,d)):"text"===t.type?t.value:void 0}function eF(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function eO(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function e_(e,t){let n=[],r=-1,i=e.passKeys?new Map:eT;for(;++r<t.children.length;){let l,o=t.children[r];if(e.passKeys){let e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){let t=i.get(e)||0;l=e+"-"+t,i.set(e,t+1)}}let a=eR(e,o,l);void 0!==a&&n.push(a)}return n}function e$(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),i=-1;for(;++i<n.length;){let t=M(n[i])?{type:"Identifier",name:n[i]}:{type:"Literal",value:n[i]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(i&&"Literal"===t.type),optional:!1}:t}A(),r=e}else r=M(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return eN.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);eB(e)}function eB(e,t){let n=new ez("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=eI+"#cannot-handle-mdx-estrees-without-createevaluater",n}function eH(e){return"-"+e.toLowerCase()}function eU(e,t){return t.toUpperCase()}let eq={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"]},eV={};function eW(e,t){let n=t||eV;return eJ(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function eJ(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return eK(e.children,t,n)}return Array.isArray(e)?eK(e,t,n):""}function eK(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=eJ(e[i],t,n);return r.join("")}function eQ(e,t,n,r){let i,l=e.length,o=0;if(t=t<0?-t>l?0:l+t:t>l?l:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);o<r.length;)(i=r.slice(o,o+1e4)).unshift(t,0),e.splice(...i),o+=1e4,t+=1e4}function eX(e,t){return e.length>0?(eQ(e,e.length,0,t),e):t}let eZ={}.hasOwnProperty;function eG(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,i=(eZ.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];if(l)for(r in l){eZ.call(i,r)||(i[r]=[]);let e=l[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);eQ(e,0,0,r)}(i[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}let eY=tt(/[A-Za-z]/),e0=tt(/[\dA-Za-z]/),e1=tt(/[#-'*+\--9=?A-Z^-~]/);function e2(e){return null!==e&&(e<32||127===e)}let e4=tt(/\d/),e3=tt(/[\dA-Fa-f]/),e5=tt(/[!-/:-@[-`{-~]/);function e6(e){return null!==e&&e<-2}function e9(e){return null!==e&&(e<0||32===e)}function e8(e){return -2===e||-1===e||32===e}let e7=tt(/\p{P}|\p{S}/u),te=tt(/\s/);function tt(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function tn(e,t,n,r){let i=r?r-1:1/0,l=0;return function(r){return e8(r)?(e.enter(n),function r(o){return e8(o)&&l++<i?(e.consume(o),r):(e.exit(n),t(o))}(r)):t(r)}}function tr(e,t,n,r,i,l){let o=0;return function(t){return l>0&&e8(t)?(e.enter(r),function t(n){return e8(n)&&o<l?(e.consume(n),o++,t):(e.exit(r),a(n))}(t)):a(t)};function a(e){return o>=i?t(e):n(e)}}let ti={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),tn(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return e6(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}};class tl{constructor(){this.index=new Map,this.map=[]}add(e,t,n){to(this,e,t,n,!1)}addBefore(e,t,n){to(this,e,t,n,!0)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}}function to(e,t,n,r,i){if(0===n&&0===r.length)return;let l=e.index.get(t);if(l){l[1]+=n,i?(r.push(...l[2]),l[2]=r):l[2].push(...r);return}let o=[t,n,r];e.map.push(o),e.index.set(t,o)}let ta={tokenize:function(e){let t,n,r,i=this,l=[],o=0;return a;function a(t){if(o<l.length){let n=l[o];return i.containerState=n[1],e.attempt(n[0].continuation,s,u)(t)}return u(t)}function s(e){if(o++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&x();let r=i.events.length,l=r;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){n=i.events[l][1].end;break}g(o);let a=r;for(;a<i.events.length;)i.events[a][1].end={...n},a++;let s=new tl;return s.add(l+1,0,i.events.slice(r)),s.add(r,a-r,[]),s.consume(i.events),u(e)}return a(e)}function u(n){if(o===l.length){if(!t)return f(n);if(t.currentConstruct&&t.currentConstruct.concrete)return h(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(ts,c,d)(n)}function c(e){return t&&x(),g(o),f(e)}function d(e){return i.parser.lazy[i.now().line]=o!==l.length,r=i.now().offset,h(e)}function f(t){return i.containerState={},e.attempt(ts,p,h)(t)}function p(e){return o++,l.push([i.currentConstruct,i.containerState]),f(e)}function h(r){if(null===r){t&&x(),g(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return e6(n)?(e.consume(n),m(e.exit("chunkFlow")),o=0,i.interrupt=void 0,a):(e.consume(n),t)}(r)}function m(e,l){let a=i.sliceStream(e);if(l&&a.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(a),i.parser.lazy[e.start.line]){let e,n,l=t.events.length;for(;l--;)if(t.events[l][1].start.offset<r&&(!t.events[l][1].end||t.events[l][1].end.offset>r))return;let a=i.events.length,s=a;for(;s--;)if("exit"===i.events[s][0]&&"chunkFlow"===i.events[s][1].type){if(e){n=i.events[s][1].end;break}e=!0}for(g(o),l=a;l<i.events.length;)i.events[l][1].end={...n},l++;let u=new tl;u.add(s+1,0,i.events.slice(a)),u.add(a,l-a,[]),u.consume(i.events)}}function g(t){let n=l.length;for(;n-- >t;){let t=l[n];i.containerState=t[1],t[0].exit.call(i,e)}l.length=t}function x(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},ts={tokenize:function(e,t,n){return tn(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},tu={partial:!0,tokenize:function(e,t,n){return function(t){return e8(t)?tn(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||e6(e)?t(e):n(e)}}};class tc{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&td(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),td(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),td(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);td(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);td(this.left,t.reverse())}}}function td(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 tf(e){let t,n,r,i,l,o,a,s={},u=-1,c=new tc(e);for(;++u<c.length;){for(;u in s;)u=s[u];if(t=c.get(u),u&&"chunkFlow"===t[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&((r=0)<(o=t[1]._tokenizer.events).length&&"lineEndingBlank"===o[r][1].type&&(r+=2),r<o.length&&"content"===o[r][1].type))for(;++r<o.length&&"content"!==o[r][1].type;)"chunkText"===o[r][1].type&&(o[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(s,function(e,t){let n,r,i=e.get(t)[1],l=e.get(t)[2],o=t-1,a=[],s=i._tokenizer;!s&&(s=l.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));let u=s.events,c=[],d={},f=-1,p=i,h=0,m=0,g=[0];for(;p;){for(;e.get(++o)[1]!==p;);a.push(o),!p._tokenizer&&(n=l.sliceStream(p),p.next||n.push(null),r&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(n),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),r=p,p=p.next}for(p=i;++f<u.length;)"exit"===u[f][0]&&"enter"===u[f-1][0]&&u[f][1].type===u[f-1][1].type&&u[f][1].start.line!==u[f][1].end.line&&(m=f+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=u.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)d[h+c[f][0]]=h+c[f][1],h+=c[f][1]-c[f][0]-1;return d}(c,u)),u=s[u],a=!0);else if(t[1]._container){for(r=u,n=void 0;r--;)if("lineEnding"===(i=c.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(c.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...c.get(n)[1].start},(l=c.slice(n,u)).unshift(t),c.splice(n,u-n+1,l))}}return eQ(e,0,1/0,c.slice(0)),!a}let tp={resolve:function(e){return tf(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):e6(t)?e.check(th,l,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function l(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},th={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),tn(e,i,"linePrefix")};function i(i){if(null===i||e6(i))return n(i);let l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},tm={tokenize:function(e){let t=this,n=e.attempt(tu,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,tn(e,e.attempt(this.parser.constructs.flow,r,e.attempt(tp,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},tg={resolveAll:tb()},tx=tv("string"),ty=tv("text");function tv(e){return{resolveAll:tb("text"===e?tk:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,l,o);return l;function l(e){return s(e)?i(e):o(e)}function o(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),a)}function a(e){return s(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function s(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function tb(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function tk(e,t){let n=new tl,r=0;for(;++r<=e.length;)if((r===e.length||"lineEnding"===e[r][1].type)&&"data"===e[r-1][1].type){let i,l=e[r-1][1],o=t.sliceStream(l),a=o.length,s=-1,u=0;for(;a--;){let e=o[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)u++,s--;if(s)break;s=-1}else if(-2===e)i=!0,u++;else if(-1===e);else{a++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(u=0),u){let o={type:r===e.length||i||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:l.start._bufferIndex+s,_index:l.start._index+a,line:l.end.line,column:l.end.column-u,offset:l.end.offset-u},end:{...l.end}};l.end={...o.start},l.start.offset===l.end.offset?Object.assign(l,o):n.add(r,0,[["enter",o,t],["exit",o,t]])}r++}return n.consume(e),e}function tw(e){return null===e||e9(e)||te(e)?1:e7(e)?2:void 0}function tS(e,t,n){let r=[],i=-1;for(;++i<e.length;){let l=e[i].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}let tC={name:"attention",resolveAll:function(e,t){let n,r=-1;for(;++r<e.length;)if("enter"===e[r][0]&&"attentionSequence"===e[r][1].type&&e[r][1]._close){let i=r;for(;i--;)if("exit"===e[i][0]&&"attentionSequence"===e[i][1].type&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[i][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;let l=e[i][1].end.offset-e[i][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1,o={...e[i][1].end},a={...e[r][1].start};tE(o,-l),tE(a,l);let s={type:l>1?"strongSequence":"emphasisSequence",start:o,end:{...e[i][1].end}},u={type:l>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:a},c={type:l>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[r][1].start}},d={type:l>1?"strong":"emphasis",start:{...s.start},end:{...u.end}};e[i][1].end={...s.start},e[r][1].start={...u.end},n=[],e[i][1].end.offset-e[i][1].start.offset&&(n=eX(n,[["enter",e[i][1],t],["exit",e[i][1],t]])),n=eX(n,[["enter",d,t],["enter",s,t],["exit",s,t],["enter",c,t]]),n=eX(n,tS(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),n=eX(n,[["exit",c,t],["enter",u,t],["exit",u,t],["exit",d,t]]);let f=0;e[r][1].end.offset-e[r][1].start.offset&&(f=2,n=eX(n,[["enter",e[r][1],t],["exit",e[r][1],t]])),eQ(e,i-1,r-i+3,n),r=i+n.length-f-2;break}}for(r=-1;++r<e.length;)"attentionSequence"===e[r][1].type&&(e[r][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,i=this.previous,l=tw(i);return function(o){return n=o,e.enter("attentionSequence"),function o(a){if(a===n)return e.consume(a),o;let s=e.exit("attentionSequence"),u=tw(a),c=!u||2===u&&l||r.includes(a)&&42!==a&&95!==a,d=!l||2===l&&u||r.includes(i)&&42!==i&&95!==i;return s._open=!!(42===n?c:c&&(l||!d)),s._close=!!(42===n?d:d&&(u||!c)),t(a)}(o)}}};function tE(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let tj={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return e8(t)?tn(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(tj,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return e8(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},tA={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return e5(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},tz=document.createElement("i");function tN(e){let t="&"+e+";";tz.innerHTML=t;let n=tz.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let tT={name:"characterReference",tokenize:function(e,t,n){let r,i,l=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),r=31,i=e0,u(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=e3,u):(e.enter("characterReferenceValue"),r=7,i=e4,u(t))}function u(a){if(59===a&&o){let r=e.exit("characterReferenceValue");return i!==e0||tN(l.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return i(a)&&o++<r?(e.consume(a),u):n(a)}}},tL={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},tM={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,l={partial:!0,tokenize:function(e,t,n){let l=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),e8(t)?tn(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(l++,e.consume(i),t):l>=a?(e.exit("codeFencedFenceSequence"),e8(i)?tn(e,u,"whitespace")(i):u(i)):n(i)}(t)):n(t)}function u(r){return null===r||e6(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},o=0,a=0;return function(t){var l;let u;return l=t,o=(u=i.events[i.events.length-1])&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0,r=l,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a<3?n(i):(e.exit("codeFencedFenceSequence"),e8(i)?tn(e,s,"whitespace")(i):s(i))}(l)};function s(l){return null===l||e6(l)?(e.exit("codeFencedFence"),i.interrupt?t(l):e.check(tL,c,h)(l)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||e6(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(i)):e8(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),tn(e,u,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(l))}function u(t){return null===t||e6(t)?s(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||e6(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(l,h,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f}function f(t){return o>0&&e8(t)?tn(e,p,"linePrefix",o+1)(t):p(t)}function p(t){return null===t||e6(t)?e.check(tL,c,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||e6(n)?(e.exit("codeFlowValue"),p(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}}},tD={name:"codeIndented",tokenize:function(e,t,n){return function(t){return e.enter("codeIndented"),tr(e,function t(n){return null===n?r(n):e6(n)?e.attempt(tP,t,r)(n):(e.enter("codeFlowValue"),function n(r){return null===r||e6(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))},n,"linePrefix",4,4)(t)};function r(n){return e.exit("codeIndented"),t(n)}}},tP={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):e6(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):tr(e,t,l,"linePrefix",4,4)(o)}function l(e){return e6(e)?i(e):n(e)}}};function tI(e,t,n,r,i,l,o,a,s){let u=s||1/0,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(l),e.consume(t),e.exit(l),d):null===t||32===t||41===t||e2(t)?n(t):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),h(t))};function d(n){return 62===n?(e.enter(l),e.consume(n),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(a),d(t)):null===t||60===t||e6(t)?n(t):(e.consume(t),92===t?p:f)}function p(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function h(i){return!c&&(null===i||41===i||e9(i))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(i)):c<u&&40===i?(e.consume(i),c++,h):41===i?(e.consume(i),c--,h):null===i||32===i||40===i||e2(i)?n(i):(e.consume(i),92===i?m:h)}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function tR(e,t,n,r,i,l){let o,a=this,s=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(l),u};function u(d){return s>999||null===d||91===d||93===d&&!o||94===d&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(l),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):e6(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||e6(t)||s++>999?(e.exit("chunkString"),u(t)):(e.consume(t),o||(o=!e8(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function tF(e,t,n,r,i,l){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,a):n(t)};function a(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(l),s(n))}function s(t){return t===o?(e.exit(l),a(o)):null===t?n(t):e6(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),tn(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===o||null===t||e6(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return t===o||92===t?(e.consume(t),u):u(t)}}function tO(e,t){let n;return function r(i){return e6(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):e8(i)?tn(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function t_(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let t$={partial:!0,tokenize:function(e,t,n){return function(t){return e9(t)?tO(e,r)(t):n(t)};function r(t){return tF(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return e8(t)?tn(e,l,"whitespace")(t):l(t)}function l(e){return null===e||e6(e)?t(e):n(e)}}},tB=["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"],tH=["pre","script","style","textarea"],tU={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(tu,t,n)}}},tq={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&eQ(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,l=e.length,o=0;for(;l--;){let t=e[l][1];if(n){if("link"===t.type||"labelLink"===t.type&&t._inactive)break;"enter"===e[l][0]&&"labelLink"===t.type&&(t._inactive=!0)}else if(r){if("enter"===e[l][0]&&("labelImage"===t.type||"labelLink"===t.type)&&!t._balanced&&(n=l,"labelLink"!==t.type)){o=2;break}}else"labelEnd"===t.type&&(r=l)}let a={type:"labelLink"===e[n][1].type?"link":"image",start:{...e[n][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[n][1].start},end:{...e[r][1].end}},u={type:"labelText",start:{...e[n+o+2][1].end},end:{...e[r-2][1].start}};return i=eX(i=[["enter",a,t],["enter",s,t]],e.slice(n+1,n+o+3)),i=eX(i,[["enter",u,t]]),i=eX(i,tS(t.parser.constructs.insideSpan.null,e.slice(n+o+4,r-3),t)),i=eX(i,[["exit",u,t],e[r-2],e[r-1],["exit",s,t]]),i=eX(i,e.slice(r+1)),i=eX(i,[["exit",a,t]]),eQ(e,n,e.length,i),e},tokenize:function(e,t,n){let r,i,l=this,o=l._labelStarts;if(o){for(;o.length>0&&o[o.length-1]._balanced;)o.pop();r=o[o.length-1]}return function(t){return r?r._inactive?c(t):(i=l.parser.defined.includes(t_(l.sliceSerialize({start:r.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a):n(t)};function a(t){return 40===t?e.attempt(tV,u,i?u:c)(t):91===t?e.attempt(tW,u,i?s:c)(t):i?u(t):c(t)}function s(t){return e.attempt(tJ,u,c)(t)}function u(e){return o.pop(),t(e)}function c(e){return r._balanced=!0,n(e)}}},tV={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return e9(t)?tO(e,i)(t):i(t)}function i(t){return 41===t?u(t):tI(e,l,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function l(t){return e9(t)?tO(e,a)(t):u(t)}function o(e){return n(e)}function a(t){return 34===t||39===t||40===t?tF(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function s(t){return e9(t)?tO(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},tW={tokenize:function(e,t,n){let r=this;return function(t){return tR.call(r,e,i,l,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(t_(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function l(e){return n(e)}}},tJ={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},tK={name:"labelStartImage",resolveAll:tq.resolveAll,tokenize:function(e,t,n){let r,i=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),l};function l(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),r=e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in i.parser.constructs?n(e):(i._labelStarts=i._labelStarts||[],i._labelStarts.push(r),t(e))}}},tQ={name:"labelStartLink",resolveAll:tq.resolveAll,tokenize:function(e,t,n){let r,i=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),r=e.exit("labelLink"),l};function l(e){return 94===e&&"_hiddenFootnoteSupport"in i.parser.constructs?n(e):(i._labelStarts=i._labelStarts||[],i._labelStarts.push(r),t(e))}}},tX={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),tn(e,t,"linePrefix")}}},tZ={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(l){var o;return e.enter("thematicBreak"),r=o=l,function l(o){return o===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),e8(n)?tn(e,l,"whitespace")(n):l(n))}(o)):i>=3&&(null===o||e6(o))?(e.exit("thematicBreak"),t(o)):n(o)}(o)}}},tG={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(tu,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,tn(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!e8(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(t0,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,tn(e,e.attempt(tG,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],l=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:e4(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(tZ,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return e4(i)&&++o<10?(e.consume(i),t):(!r.interrupt||o<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),a(i)):n(i)}(t)}return n(t)};function a(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(tu,r.interrupt?n:s,e.attempt(tY,c,u))}function s(e){return r.containerState.initialBlankLine=!0,l++,c(e)}function u(t){return e8(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},tY={partial:!0,tokenize:function(e,t,n){let r=this;return tn(e,function(e){let i=r.events[r.events.length-1];return!e8(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},t0={partial:!0,tokenize:function(e,t,n){let r=this;return tn(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},t1={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,l=new tl,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&l.add(o,1,[]),i||"definition"!==e[o][1].type||(i=o);let a={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(l.add(r,0,[["enter",a,t]]),l.add(i+1,0,[["exit",e[n][1],t]]),e[n][1].end={...e[i][1].end}):e[n][1]=a,l.add(e.length,0,[["exit",a,t]]),l.consume(e),e},tokenize:function(e,t,n){let r,i=this;return function(t){var o;let a,s=i.events.length;for(;s--;)if("lineEnding"!==i.events[s][1].type&&"linePrefix"!==i.events[s][1].type&&"content"!==i.events[s][1].type){a="paragraph"===i.events[s][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||a)?(e.enter("setextHeadingLine"),r=t,o=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),e8(n)?tn(e,l,"lineSuffix")(n):l(n))}(o)):n(t)};function l(r){return null===r||e6(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};e.s(["attentionMarkers",0,{null:[42,95]},"contentInitial",0,{91:{name:"definition",tokenize:function(e,t,n){let r,i=this;return function(t){var r;return e.enter("definition"),r=t,tR.call(i,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function l(t){return(r=t_(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}function o(t){return e9(t)?tO(e,a)(t):a(t)}function a(t){return tI(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(t$,u,u)(t)}function u(t){return e8(t)?tn(e,c,"whitespace")(t):c(t)}function c(l){return null===l||e6(l)?(e.exit("definition"),i.parser.defined.push(r),t(l)):n(l)}}}},"disable",0,{null:[]},"document",0,{42:tG,43:tG,45:tG,48:tG,49:tG,50:tG,51:tG,52:tG,53:tG,54:tG,55:tG,56:tG,57:tG,62:tj},"flow",0,{35:{name:"headingAtx",resolve:function(e,t){let n=e.length-2,r=3;if("whitespace"===e[3][1].type&&(r+=2),n-2>r&&"whitespace"===e[n][1].type&&(n-=2),"atxHeadingSequence"===e[n][1].type&&(r===n-1||n-4>r&&"whitespace"===e[n-2][1].type)&&(n-=r+1===n?2:4),n>r){let i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},l={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"};eQ(e,r,n-r+1,[["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t]])}return e},tokenize:function(e,t,n){let r=0;return function(i){var l;return e.enter("atxHeading"),l=i,e.enter("atxHeadingSequence"),function i(l){return 35===l&&r++<6?(e.consume(l),i):null===l||e9(l)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||e6(r)?(e.exit("atxHeading"),t(r)):e8(r)?tn(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||e9(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(l)):n(l)}(l)}}},42:tZ,45:[t1,tZ],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(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},tokenize:function(e,t,n){let r,i,l,o,a,s=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),u};function u(o){return 33===o?(e.consume(o),c):47===o?(e.consume(o),i=!0,p):63===o?(e.consume(o),r=3,s.interrupt?t:M):eY(o)?(e.consume(o),l=String.fromCharCode(o),h):n(o)}function c(i){return 45===i?(e.consume(i),r=2,d):91===i?(e.consume(i),r=5,o=0,f):eY(i)?(e.consume(i),r=4,s.interrupt?t:M):n(i)}function d(r){return 45===r?(e.consume(r),s.interrupt?t:M):n(r)}function f(r){let i="CDATA[";return r===i.charCodeAt(o++)?(e.consume(r),o===i.length)?s.interrupt?t:C:f:n(r)}function p(t){return eY(t)?(e.consume(t),l=String.fromCharCode(t),h):n(t)}function h(o){if(null===o||47===o||62===o||e9(o)){let a=47===o,u=l.toLowerCase();return!a&&!i&&tH.includes(u)?(r=1,s.interrupt?t(o):C(o)):tB.includes(l.toLowerCase())?(r=6,a)?(e.consume(o),m):s.interrupt?t(o):C(o):(r=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(o):i?function t(n){return e8(n)?(e.consume(n),t):w(n)}(o):g(o))}return 45===o||e0(o)?(e.consume(o),l+=String.fromCharCode(o),h):n(o)}function m(r){return 62===r?(e.consume(r),s.interrupt?t:C):n(r)}function g(t){return 47===t?(e.consume(t),w):58===t||95===t||eY(t)?(e.consume(t),x):e8(t)?(e.consume(t),g):w(t)}function x(t){return 45===t||46===t||58===t||95===t||e0(t)?(e.consume(t),x):y(t)}function y(t){return 61===t?(e.consume(t),v):e8(t)?(e.consume(t),y):g(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,b):e8(t)?(e.consume(t),v):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||e9(n)?y(n):(e.consume(n),t)}(t)}function b(t){return t===a?(e.consume(t),a=null,k):null===t||e6(t)?n(t):(e.consume(t),b)}function k(e){return 47===e||62===e||e8(e)?g(e):n(e)}function w(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||e6(t)?C(t):e8(t)?(e.consume(t),S):n(t)}function C(t){return 45===t&&2===r?(e.consume(t),z):60===t&&1===r?(e.consume(t),N):62===t&&4===r?(e.consume(t),D):63===t&&3===r?(e.consume(t),M):93===t&&5===r?(e.consume(t),L):e6(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(tU,P,E)(t)):null===t||e6(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),C)}function E(t){return e.check(tL,j,P)(t)}function j(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),A}function A(t){return null===t||e6(t)?E(t):(e.enter("htmlFlowData"),C(t))}function z(t){return 45===t?(e.consume(t),M):C(t)}function N(t){return 47===t?(e.consume(t),l="",T):C(t)}function T(t){if(62===t){let n=l.toLowerCase();return tH.includes(n)?(e.consume(t),D):C(t)}return eY(t)&&l.length<8?(e.consume(t),l+=String.fromCharCode(t),T):C(t)}function L(t){return 93===t?(e.consume(t),M):C(t)}function M(t){return 62===t?(e.consume(t),D):45===t&&2===r?(e.consume(t),M):C(t)}function D(t){return null===t||e6(t)?(e.exit("htmlFlowData"),P(t)):(e.consume(t),D)}function P(n){return e.exit("htmlFlow"),t(n)}}},61:t1,95:tZ,96:tM,126:tM},"flowInitial",0,{[-2]:tD,[-1]:tD,32:tD},"insideSpan",0,{null:[tC,tg]},"string",0,{38:tT,92:tA},"text",0,{[-5]:tX,[-4]:tX,[-3]:tX,33:tK,38:tT,42:tC,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return eY(t)?(e.consume(t),l):64===t?n(t):a(t)}function l(t){return 43===t||45===t||46===t||e0(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||e0(n))&&r++<32?(e.consume(n),t):(r=0,a(n))}(t)):a(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||e2(r)?n(r):(e.consume(r),o)}function a(t){return 64===t?(e.consume(t),s):e1(t)?(e.consume(t),a):n(t)}function s(i){return e0(i)?function i(l){return 46===l?(e.consume(l),r=0,s):62===l?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(l),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(l){if((45===l||e0(l))&&r++<63){let n=45===l?t:i;return e.consume(l),n}return n(l)}(l)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,l,o=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),b):63===t?(e.consume(t),y):eY(t)?(e.consume(t),w):n(t)}function s(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,p):eY(t)?(e.consume(t),x):n(t)}function u(t){return 45===t?(e.consume(t),f):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),d):e6(t)?(l=c,T(t)):(e.consume(t),c)}function d(t){return 45===t?(e.consume(t),f):c(t)}function f(e){return 62===e?N(e):45===e?d(e):c(e)}function p(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?h:p):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):e6(t)?(l=h,T(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?N(t):93===t?(e.consume(t),g):h(t)}function x(t){return null===t||62===t?N(t):e6(t)?(l=x,T(t)):(e.consume(t),x)}function y(t){return null===t?n(t):63===t?(e.consume(t),v):e6(t)?(l=y,T(t)):(e.consume(t),y)}function v(e){return 62===e?N(e):y(e)}function b(t){return eY(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||e0(t)?(e.consume(t),k):function t(n){return e6(n)?(l=t,T(n)):e8(n)?(e.consume(n),t):N(n)}(t)}function w(t){return 45===t||e0(t)?(e.consume(t),w):47===t||62===t||e9(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),N):58===t||95===t||eY(t)?(e.consume(t),C):e6(t)?(l=S,T(t)):e8(t)?(e.consume(t),S):N(t)}function C(t){return 45===t||46===t||58===t||95===t||e0(t)?(e.consume(t),C):function t(n){return 61===n?(e.consume(n),E):e6(n)?(l=t,T(n)):e8(n)?(e.consume(n),t):S(n)}(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,j):e6(t)?(l=E,T(t)):e8(t)?(e.consume(t),E):(e.consume(t),A)}function j(t){return t===r?(e.consume(t),r=void 0,z):null===t?n(t):e6(t)?(l=j,T(t)):(e.consume(t),j)}function A(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||e9(t)?S(t):(e.consume(t),A)}function z(e){return 47===e||62===e||e9(e)?S(e):n(e)}function N(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function T(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),L}function L(t){return e8(t)?tn(e,M,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):M(t)}function M(t){return e.enter("htmlTextData"),l(t)}}}],91:tQ,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return e6(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},tA],93:tq,95:tC,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,l=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),l++,t):(e.exit("codeTextSequence"),o(n))}(t)};function o(s){return null===s?n(s):32===s?(e.enter("space"),e.consume(s),e.exit("space"),o):96===s?(i=e.enter("codeTextSequence"),r=0,function n(o){return 96===o?(e.consume(o),r++,n):r===l?(e.exit("codeTextSequence"),e.exit("codeText"),t(o)):(i.type="codeTextData",a(o))}(s)):e6(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):(e.enter("codeTextData"),a(s))}function a(t){return null===t||32===t||96===t||e6(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),a)}}}}],4127);var t2=e.i(4127);let t4=/[\0\t\n\r]/g;function t3(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let t5=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function t6(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return t3(n.slice(t?2:1),t?16:10)}return tN(n)||e}let t9={}.hasOwnProperty;function t8(e){return{line:e.line,column:e.column,offset:e.offset}}function t7(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+eC({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+eC({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+eC({start:t.start,end:t.end})+") is still open")}function ne(e){let t=this;t.parser=function(n){var r,i;let l,o,a,s;return"object"==typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(i=r,r=void 0),(function(e){let t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(y),autolinkProtocol:c,autolinkEmail:c,atxHeading:i(m),blockQuote:i(function(){return{type:"blockquote",children:[],position:void 0}}),characterEscape:c,characterReference:c,codeFenced:i(h),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:i(h,l),codeText:i(function(){return{type:"inlineCode",value:"",position:void 0}},l),codeTextData:c,data:c,codeFlowValue:c,definition:i(function(){return{type:"definition",identifier:"",label:null,title:null,url:"",position:void 0}}),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:i(function(){return{type:"emphasis",children:[],position:void 0}}),hardBreakEscape:i(g),hardBreakTrailing:i(g),htmlFlow:i(x,l),htmlFlowData:c,htmlText:i(x,l),htmlTextData:c,image:i(function(){return{type:"image",title:null,url:"",alt:null,position:void 0}}),label:l,link:i(y),listItem:i(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[],position:void 0}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:i(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:i(v),paragraph:i(function(){return{type:"paragraph",children:[],position:void 0}}),reference:function(){this.data.referenceType="collapsed"},referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:i(m),strong:i(function(){return{type:"strong",children:[],position:void 0}}),thematicBreak:i(function(){return{type:"thematicBreak",position:void 0}})},exit:{atxHeading:a(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:a(),autolinkEmail:function(e){d.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){d.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:a(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=t3(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=tN(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=t8(e.end)},codeFenced:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:d,codeIndented:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:d,data:d,definition:a(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=t_(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:a(),hardBreakEscape:a(f),hardBreakTrailing:a(f),htmlFlow:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:d,htmlText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:d,image:a(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(t5,t6),n.identifier=t_(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=t8(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(c.call(this,e),d.call(this,e))},link:a(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=t_(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:a(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:a(),thematicBreak:a()}};!function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(t9.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"afterExit":case"beforeEnter":{let r=t[n];r&&e[n].push(r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let i={type:"root",children:[],position:void 0},a={stack:[i],tokenStack:[],config:t,enter:o,exit:s,buffer:l,resume:u,data:n},c=[],d=[],f=-1;for(;++f<e.length;)d.push(e[f]),("listOrdered"===e[f][1].type||"listUnordered"===e[f][1].type)&&("enter"===e[f][0]?c.push(d.length-1):function(e,t){let n,r,i,l,o=e.length-1,a=t-1,s=-1,u=!1,c=[];for(;++a<=o;){let t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,l=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!n||l||s||i||(i=a),l=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:l=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(n){let l=a;for(r=void 0;l--;){let t=e[l];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;r&&(e[r][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",r=l}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}i&&(!r||i<r)&&(n._spread=!0),n.end=Object.assign({},r?e[r][1].start:t[1].end),c.push({at:r||a,event:["exit",n,t[2]]})}if("listItemPrefix"===t[1].type){let e={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};n=e,c.push({at:a,event:["enter",e,t[2]]}),i=void 0,l=!0}}}let d=e.splice(t),f=0;for(a=-1;++a<d.length;){for(;f<c.length&&c[f].at===t+a;)e.push(c[f++].event);e.push(d[a])}e[t][1]._spread=u}(d,c.pop()));for(e=d,f=-1;++f<e.length;){let n=t[e[f][0]];"enter"===e[f][0]&&t.beforeEnter.length>0&&r(t.beforeEnter,{...a,sliceSerialize:e[f][2].sliceSerialize},e[f][1]),t9.call(n,e[f][1].type)&&n[e[f][1].type].call({...a,sliceSerialize:e[f][2].sliceSerialize},e[f][1]),"exit"===e[f][0]&&t.afterExit.length>0&&r(t.afterExit,{...a,sliceSerialize:e[f][2].sliceSerialize},e[f][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||t7).call(a,void 0,e[0])}for(i.position={start:t8(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:t8(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},f=-1;++f<t.transforms.length;)i=t.transforms[f](i)||i;return i};function r(e,t,n){let r=-1;for(;++r<e.length;)e[r].call(t,n)}function i(e,t){return function(n){o.call(this,e(n),n),t&&t.call(this,n)}}function l(){this.stack.push({type:"fragment",children:[]})}function o(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:t8(t.start),end:void 0}}function a(e){return function(t){e&&e.call(this,t),s.call(this,t)}}function s(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw Error("Cannot close `"+e.type+"` ("+eC({start:e.start,end:e.end})+"): it’s not open");r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||t7).call(this,e,r[0])),n.position.end=t8(e.end)}function u(){return eW(this.stack.pop())}function c(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:"",position:void 0}).position={start:t8(e.start),end:void 0},t.push(n)),this.stack.push(n)}function d(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=t8(e.end)}function f(){this.data.atHardBreak=!0}function p(e){this.data.characterReferenceType=e.type}function h(){return{type:"code",lang:null,meta:null,value:"",position:void 0}}function m(){return{type:"heading",depth:0,children:[],position:void 0}}function g(){return{type:"break",position:void 0}}function x(){return{type:"html",value:"",position:void 0}}function y(){return{type:"link",title:null,url:"",children:[],position:void 0}}function v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[],position:void 0}}})(i)(function(e){for(;!tf(e););return e}((function(e){let t={constructs:eG([t2,...(e||{}).extensions||[]]),content:n(ti),defined:[],document:n(ta),flow:n(tm),lazy:{},string:n(tx),text:n(ty)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},l=[],o=[],a=[],s={attempt:h(function(e,t){m(e,t.from)}),check:h(p),consume:function(e){e6(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=f(),u.events.push(["enter",n,u]),a.push(n),n},exit:function(e){let t=a.pop();return t.end=f(),u.events.push(["exit",t,u]),t},interrupt:h(p,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,g()},events:[],now:f,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let l,o=e[r];if("string"==typeof o)l=o;else switch(o){case -5:l="\r";break;case -4:l="\n";break;case -3:l="\r\n";break;case -2:l=t?" ":" ";break;case -1:if(!t&&n)continue;l=" ";break;default:l=String.fromCharCode(o)}n=-2===o,i.push(l)}return i.join("")}(d(e),t)},sliceStream:d,write:function(e){return(o=eX(o,e),function(){for(;r._index<o.length;){let t=o[r._index];if("string"==typeof t){let n=r._index;for(r._bufferIndex<0&&(r._bufferIndex=0);r._index===n&&r._bufferIndex<t.length;){var e;e=t.charCodeAt(r._bufferIndex),c=c(e)}}else c=c(t)}}(),null!==o[o.length-1])?[]:(m(t,0),u.events=tS(l,u.events,u),u.events)}},c=t.tokenize.call(u,s);return t.resolveAll&&l.push(t),u;function d(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,l=t.end._index,o=t.end._bufferIndex;if(r===l)n=[e[r].slice(i,o)];else{if(n=e.slice(r,l),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}o>0&&n.push(e[l].slice(0,o))}return n}(o,e)}function f(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:l}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:l}}function p(e,t){t.restore()}function h(e,t){return function(n,i,l){var o;let c,d,p,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(o=n,function(e){let t=null!==e&&o[e],n=null!==e&&o.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(c=e,d=0,0===e.length)?l:x(e[d])}function x(e){return function(n){let i,l,o,c,d;return(i=f(),l=u.previous,o=u.currentConstruct,c=u.events.length,d=Array.from(a),h={from:c,restore:function(){r=i,u.previous=l,u.currentConstruct=o,u.events.length=c,a=d,g()}},p=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?v(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,s,y,v)(n)}}function y(t){return e(p,h),i}function v(e){return(h.restore(),++d<c.length)?x(c[d]):l}}}function m(e,t){e.resolveAll&&!l.includes(e)&&l.push(e),e.resolve&&eQ(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function g(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(i).document().write((o=1,a="",s=!0,function(e,t,n){e=a+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e));let r=[],i=0;for(a="",s&&(65279===e.charCodeAt(0)&&i++,s=void 0);i<e.length;){t4.lastIndex=i;let t=t4.exec(e),n=t&&void 0!==t.index?t.index:e.length,s=e.charCodeAt(n);if(!t){a=e.slice(i);break}if(10===s&&i===n&&l)r.push(-3),l=void 0;else switch(l&&(r.push(-5),l=void 0),i<n&&(r.push(e.slice(i,n)),o+=n-i),s){case 0:r.push(65533),o++;break;case 9:{let e=4*Math.ceil(o/4);for(r.push(-2);o++<e;)r.push(-1);break}case 10:r.push(-4),o=1;break;default:l=!0,o=1}i=n+1}return n&&(l&&r.push(-5),a&&r.push(a),r.push(null)),r})(n,r,!0))))}}let{defineProperty:nt}=Object,nn="object"==typeof self?self:globalThis,nr=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw TypeError("unable to deserialize "+e)}return new nn[e](t)},ni=e=>{var t;let n,r;return(t=new Map,n=(e,n)=>(t.set(n,e),e),r=i=>{if(t.has(i))return t.get(i);let[l,o]=e[i];switch(l){case 0:case -1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o){let i=r(t),l=r(n);"__proto__"===i?nt(e,i,{value:l,configurable:!0,enumerable:!0,writable:!0}):e[i]=l}return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n("function"==typeof nn[e]?nr(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}case"-0":return -0}return n(nr(l,o),i)})(0)},{toString:nl}={},{keys:no,is:na}=Object,ns=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=nl.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:e instanceof Error?[7,e.name||"Error"]:[2,n]},nu=([e,t])=>0===e&&("function"===t||"symbol"===t),nc=(e,{json:t,lossy:n}={})=>{var r,i,l;let o,a,s=[];return(r=!(t||n),i=!!t,l=new Map,o=(e,t)=>{let n=s.push(e)-1;return l.set(t,n),n},a=e=>{if(l.has(e))return l.get(e);let[t,n]=ns(e);switch(t){case 0:{let i=e;switch(n){case"bigint":t=8,i=e.toString();break;case"number":if(!e&&na(e,-0))return s.push(["-0"])-1;break;case"function":case"symbol":if(r)throw TypeError("unable to serialize "+n);i=null;break;case"undefined":return o([-1],e)}return o([t,i],e)}case 1:{if(n){let t=e;return"DataView"===n?t=new Uint8Array(e.buffer):"ArrayBuffer"===n&&(t=new Uint8Array(e)),o([n,[...t]],e)}let r=[],i=o([t,r],e);for(let t of e)r.push(a(t));return i}case 2:{if(n)switch(n){case"BigInt":return o([n,e.toString()],e);case"Boolean":case"Number":case"String":return o([n,e.valueOf()],e)}if(i&&"toJSON"in e)return a(e.toJSON());let l=[],s=o([t,l],e);for(let t of no(e))(r||!nu(ns(e[t])))&&l.push([a(t),a(e[t])]);return s}case 3:return o([t,isNaN(e.getTime())?"":e.toISOString()],e);case 4:{let{source:n,flags:r}=e;return o([t,{source:n,flags:r}],e)}case 5:{let n=[],i=o([t,n],e);for(let[t,i]of e)(r||!(nu(ns(t))||nu(ns(i))))&&n.push([a(t),a(i)]);return i}case 6:{let n=[],i=o([t,n],e);for(let t of e)(r||!nu(ns(t)))&&n.push(a(t));return i}}let{message:u}=e;return o([t,{name:n,message:u}],e)})(e),s},nd="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?ni(nc(e,t)):structuredClone(e):(e,t)=>ni(nc(e,t));function nf(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let l=e.charCodeAt(n),o="";if(37===l&&e0(e.charCodeAt(n+1))&&e0(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){let t=e.charCodeAt(n+1);l<56320&&t>56319&&t<57344?(o=String.fromCharCode(l,t),i=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function np(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function nh(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let nm=function(e){var t,n;if(null==e)return nx;if("function"==typeof e)return ng(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=nm(e[n]);return ng(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,ng(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,ng(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function ng(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function nx(){return!0}let ny=[],nv="skip";function nb(e,t,n,r){let i,l,o,a;if(!e||"object"!=typeof e)throw Error("Unexpected value `"+e+"` for `tree`, expected node");let s=!0;if("function"==typeof n||n&&"object"==typeof n?(i=t,l=n,r&&(s=!1)):(l=t,n&&(s=!1)),"function"==typeof l)o=l;else if(l&&"object"==typeof l){if(null===l.enter||void 0===l.enter);else if("function"==typeof l.enter)o=l.enter;else throw Error("Unexpected value `"+l.enter+"` for `visitors.enter`, expected optional visitor");if("function"==typeof l.exit)a=l.exit;else throw Error("Unexpected value `"+l.exit+"` for `visitors.exit`, expected visitor (pass a visitor directly if you only want an enter visitor)")}else throw Error("Unexpected value `"+l+"` for `enter` or `visitors`, expected visitor or object with visitors");let u=nm(i),c=s?1:-1;(function e(t,n,r){let l=t&&"object"==typeof t?t:{};if("string"==typeof l.type){let e="string"==typeof l.tagName?l.tagName:"string"==typeof l.name?l.name:void 0;Object.defineProperty(d,"name",{value:"node ("+t.type+(e?"<"+e+">":"")+")"})}return d;function d(){let l=!i||u(t,n,r[r.length-1]||void 0),d=ny;if(o&&l&&!1===(d=nk(o(t,r,n)))[0])return d;if("children"in t&&t.children&&t.children&&d[0]!==nv){let n=(s?-1:t.children.length)+c,i=[...r,t];for(;n>-1&&n<t.children.length;){let r=e(t.children[n],n,i)();if(!1===r[0])return r;n="number"==typeof r[1]?r[1]:n+c}}if(a&&l){let e=nk(a(t,r,n));if(e[0]===nv)throw Error("Unexpected value `"+e[0]+"` from `exit`, expected `CONTINUE`, `EXIT`, index, or nothing");if(!1===e[0]||"number"==typeof e[1])return e}return d}})(e,void 0,[])()}function nk(e){return Array.isArray(e)?e:"number"==typeof e?[!0,e]:null==e?ny:[e]}function nw(e,t,n,r){var i;let l,o,a;"function"==typeof n||n&&"object"==typeof n?(l=t,o=n,a=r):(o=t,a=n),"function"==typeof o?nb(e,l,nS(o),a):nb(e,l,(i=o)&&"object"==typeof i?{enter:"function"==typeof i.enter?nS(i.enter):i.enter,exit:"function"==typeof i.exit?nS(i.exit):i.exit}:i,a)}function nS(e){return function(t,n,r){return e(t,r,n[n.length-1])}}function nC(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),l=i[0];l&&"text"===l.type?l.value="["+l.value:i.unshift({type:"text",value:"["});let o=i[i.length-1];return o&&"text"===o.type?o.value+=r:i.push({type:"text",value:r}),i}function nE(e){let{spread:t}=e;return null==t?e.children.length>1:t}function nj(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let nA={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l={type:"element",tagName:"pre",properties:{},children:[l=e.applyData(t,l)]},e.patch(t,l),l},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),l=nf(i.toLowerCase()),o=e.footnoteOrder.indexOf(i),a=e.footnoteCounts.get(i);void 0===a?(a=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=o+1,a+=1,e.footnoteCounts.set(i,a);let s={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+l,id:r+"fnref-"+l+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,s);let u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return nC(e,t);let i={src:nf(r.url||"")};null!==t.alt&&void 0!==t.alt&&(i.alt=t.alt),null!==r.title&&void 0!==r.title&&(i.title=r.title);let l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)},image:function(e,t){let n={src:nf(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return nC(e,t);let i={href:nf(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)},link:function(e,t){let n={href:nf(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let{children:n}=e,r=-1;for(;!t&&++r<n.length;)t=nE(n[r])}return t}(n):nE(t),l={},o=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a<r.length;){let e=r[a];(i||0!==a||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?o.push(e):o.push(...e.children)}let s=r[r.length-1];s&&(i||"element"!==s.type||"p"!==s.tagName)&&o.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:l,children:o};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=ew(t.children[1]),o=ek(t.children[t.children.length-1]);l&&o&&(r.position={start:l,end:o}),i.push(r)}let l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",l=n&&"table"===n.type?n.align:void 0,o=l?l.length:t.children.length,a=-1,s=[];for(;++a<o;){let n=t.children[a],r={},o=l?l[a]:void 0;o&&(r.align=o);let u={type:"element",tagName:i,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),s.push(u)}let u={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,l=[];for(;r;)l.push(nj(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(nj(t.slice(i),i>0,!1)),l.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:nz,yaml:nz,definition:nz,footnoteDefinition:nz};function nz(){}let nN={}.hasOwnProperty,nT={};function nL(e,t){e.position&&(t.position=function(e){let t=ew(e),n=ek(e);if(t&&n)return{start:t,end:n}}(e))}function nM(e,t){let n=t;if(e&&e.data){let{hChildren:t,hName:r,hProperties:i}=e.data;"string"==typeof r&&("element"===n.type?n.tagName=r:n={type:"element",tagName:r,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,nd(i)),"children"in n&&n.children&&null!=t&&(n.children=t)}return n}function nD(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function nP(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function nI(e,t){let n,r,i,l,o=(n=t||nT,r=new Map,i=new Map,l={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=l.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=nP(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=nP(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:nM,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...nA,...n.handlers},one:function(e,t){let{type:n}=e,r=l.handlers[n];if(nN.call(l.handlers,n)&&r)return r(l,e,t);if(l.options.passThrough&&l.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e;return{...nd(n),children:l.all(e)}}return nd(e)}return(l.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(nN.call(n,"hProperties")||nN.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)})(l,e,t)},options:n,patch:nL,wrap:nD},nw(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t=String(e.identifier).toUpperCase();"definition"===e.type?r.has(t)||r.set(t,e):i.has(t)||i.set(t,e)}}),l),a=o.one(e,void 0),s=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||np,r=e.options.footnoteBackLabel||nh,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[],s=[],u=-1;for(;++u<e.footnoteOrder.length;){let t=e.footnoteById.get(e.footnoteOrder[u]);t&&(a[u]=e.all(t))}for(u=-1;++u<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[u]);if(!i)continue;let l=a[u],o=String(i.identifier).toUpperCase(),c=nf(o.toLowerCase()),d=0,f=[],p=e.footnoteCounts.get(o);for(;void 0!==p&&++d<=p;){f.length>0&&f.push({type:"text",value:" "});let e="string"==typeof n?n:n(u,d);"string"==typeof e&&(e={type:"text",value:e}),f.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(u,d),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let h=l[l.length-1];if(h&&"element"===h.type&&"p"===h.tagName){let e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...f)}else l.push(...f);let m={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(l,!0)};e.patch(i,m),s.push(m)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...nd(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(o),u=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return s&&(A(),u.children.push({type:"text",value:"\n"},s)),u}function nR(e,t){return e&&"run"in e?async function(n,r){let i=nI(n,{file:r,...t});await e.run(i,r)}:function(n,r){return nI(n,{file:r,...e||t})}}function nF(e){if(e)throw e}var nO=e.i(4100);function n_(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let n$=function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');nq(e);let r=0,i=-1,l=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;l--;)if(47===e.codePointAt(l)){if(n){r=l+1;break}}else i<0&&(n=!0,i=l+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let o=-1,a=t.length-1;for(;l--;)if(47===e.codePointAt(l)){if(n){r=l+1;break}}else o<0&&(n=!0,o=l+1),a>-1&&(e.codePointAt(l)===t.codePointAt(a--)?a<0&&(i=l):(a=-1,i=o));return r===i?i=o:i<0&&(i=e.length),e.slice(r,i)},nB=function(e){let t;if(nq(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},nH=function(e){let t;nq(e);let n=e.length,r=-1,i=0,l=-1,o=0;for(;n--;){let a=e.codePointAt(n);if(47===a){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===a?l<0?l=n:1!==o&&(o=1):l>-1&&(o=-1)}return l<0||r<0||0===o||1===o&&l===r-1&&l===i+1?"":e.slice(l,r)},nU=function(...e){var t;let n,r,i,l=-1;for(;++l<e.length;)nq(e[l]),e[l]&&(i=void 0===i?e[l]:i+"/"+e[l]);return void 0===i?".":(nq(t=i),n=47===t.codePointAt(0),0!==(r=function(e,t){let n,r,i="",l=0,o=-1,a=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else if(47===n)break;else n=47;if(47===n){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(i.length<2||2!==l||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",l=0):l=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),o=s,a=0;continue}}else if(i.length>0){i="",l=0,o=s,a=0;continue}}t&&(i=i.length>0?i+"/..":"..",l=2)}else i.length>0?i+="/"+e.slice(o+1,s):i=e.slice(o+1,s),l=s-o-1;o=s,a=0}else 46===n&&a>-1?a++:a=-1}return i}(t,!n)).length||n||(r="."),r.length>0&&47===t.codePointAt(t.length-1)&&(r+="/"),n?"/"+r:r)};function nq(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function nV(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let nW=["history","path","basename","stem","extname","dirname"];class nJ{constructor(e){var t;let n,r;n=e?nV(e)?{path:e}:"string"==typeof e||(t=e)&&"object"==typeof t&&"byteLength"in t&&"byteOffset"in t?{value:e}:e:{},this.cwd="cwd"in n?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<nW.length;){let e=nW[i];e in n&&void 0!==n[e]&&null!==n[e]&&(this[e]="history"===e?[...n[e]]:n[e])}for(r in n)nW.includes(r)||(this[r]=n[r])}get basename(){return"string"==typeof this.path?n$(this.path):void 0}set basename(e){nQ(e,"basename"),nK(e,"basename"),this.path=nU(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?nB(this.path):void 0}set dirname(e){nX(this.basename,"dirname"),this.path=nU(e||"",this.basename)}get extname(){return"string"==typeof this.path?nH(this.path):void 0}set extname(e){if(nK(e,"extname"),nX(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=nU(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){nV(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!nV(e)){let t=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("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),nQ(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?n$(this.path,this.extname):void 0}set stem(e){nQ(e,"stem"),nK(e,"stem"),this.path=nU(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new ez(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function nK(e,t){if(e&&e.includes("/"))throw Error("`"+t+"` cannot be a path: did not expect `/`")}function nQ(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function nX(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let nZ=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},nG={}.hasOwnProperty,nY=new class e extends nZ{constructor(){let e,t;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=(e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function i(l,...o){let a=e[++n],s=-1;if(l)return void r(l);for(;++s<t.length;)(null===o[s]||void 0===o[s])&&(o[s]=t[s]);t=o,a?(function(e,t){let n;return function(...t){let l,o=e.length>t.length;o&&t.push(r);try{l=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(l&&l.then&&"function"==typeof l.then?l.then(i,r):l instanceof Error?r(l):i(l))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(a,i)(...o):r(null,...o)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}})}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,nO.default)(!0,{},this.namespace)),t}data(e,t){return"string"==typeof e?2==arguments.length?(n2("data",this.frozen),this.namespace[e]=t,this):nG.call(this.namespace,e)&&this.namespace[e]||void 0:e?(n2("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=n5(e),n=this.parser||this.Parser;return n0("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),n0("process",this.parser||this.Parser),n1("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let l=n5(e),o=n.parse(l);function a(e,n){e||!n?i(e):r?r(n):(A(),t(void 0,n))}n.run(o,l,function(e,t,r){var i,l;if(e||!t||!r)return a(e);let o=n.stringify(t,r);"string"==typeof(i=o)||(l=i)&&"object"==typeof l&&"byteLength"in l&&"byteOffset"in l?r.value=o:r.result=o,a(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),n0("processSync",this.parser||this.Parser),n1("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,nF(e),t=r}),n3("processSync","process",n),A(),t}run(e,t,n){n4(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,l){A();let o=n5(t);r.run(e,o,function(t,r,o){let a=r||e;t?l(t):i?i(a):(A(),n(void 0,a,o))})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){nF(e),n=t,r=!0}),n3("runSync","run",r),A(),n}stringify(e,t){this.freeze();let n=n5(t),r=this.compiler||this.Compiler;return n1("stringify",r),n4(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(n2("use",this.frozen),null==e);else if("function"==typeof e)o(e,t);else if("object"==typeof e)Array.isArray(e)?l(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw 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");l(e.plugins),e.settings&&(r.settings=(0,nO.default)(!0,r.settings,e.settings))}function l(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)o(e,[]);else if("object"==typeof e)if(Array.isArray(e)){let[t,...n]=e;o(t,n)}else i(e);else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function o(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...l]=t,o=n[i][1];n_(o)&&n_(r)&&(r=(0,nO.default)(!0,o,r)),n[i]=[e,r,...l]}}}}().freeze();function n0(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function n1(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function n2(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function n4(e){if(!n_(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function n3(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function n5(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new nJ(e)}let n6=[],n9={allowDangerousHtml:!0},n8=/^(https?|ircs?|mailto|xmpp)$/i,n7=[{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 re(e){var t;let r,i,l,o,a,s=(r=(t=e).rehypePlugins||n6,i=t.remarkPlugins||n6,l=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...n9}:n9,nY().use(ne).use(i).use(nR,l).use(r)),u=(o=e.children||"",a=new nJ,"string"==typeof o?a.value=o:z(),a);return function(e,t){let r=t.allowedElements,i=t.allowElement,l=t.components,o=t.disallowedElements,a=t.skipHtml,s=t.unwrapDisallowed,u=t.urlTransform||rt;for(let e of n7)Object.hasOwn(t,e.from)&&z((e.from,e.to&&e.to,e.id));return r&&o&&z(),nw(e,function(e,t,n){if("raw"===e.type&&n&&"number"==typeof t)return a?n.children.splice(t,1):n.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in eq)if(Object.hasOwn(eq,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=eq[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=u(String(n||""),t,e))}}if("element"===e.type){let l=r?!r.includes(e.tagName):!!o&&o.includes(e.tagName);if(!l&&i&&"number"==typeof t&&(l=!i(e,t,n)),l&&n&&"number"==typeof t)return s&&e.children?n.children.splice(t,1,...e.children):n.children.splice(t,1),t}}),function(e,t){var n,r,i,l;let o;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let a=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=a,r=t.jsxDEV,o=function(e,t,i,l){let o=Array.isArray(i.children),a=ew(e);return r(t,i,l,o,{columnNumber:a?a.column-1:void 0,fileName:n,lineNumber:a?a.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=t.jsx,l=t.jsxs,o=function(e,t,n,r){let o=Array.isArray(n.children)?l:i;return r?o(t,n,r):o(t,n)}}let s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?ep:ef,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},u=eR(s,e,void 0);return u&&"string"!=typeof u?u:s.create(e,s.Fragment,{children:u||void 0},void 0)}(e,{Fragment:n.Fragment,components:l,ignoreInvalidStyle:!0,jsx:n.jsx,jsxs:n.jsxs,passKeys:!0,passNode:!0})}(s.runSync(s.parse(u),u),e)}function rt(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||n8.test(e.slice(0,t))?e:""}function rn(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}let rr="phrasing",ri=["autolink","link","image","label"];function rl(e){this.enter({type:"link",title:null,url:"",children:[],position:void 0},e)}function ro(e){this.config.enter.autolinkProtocol.call(this,e)}function ra(e){this.config.exit.autolinkProtocol.call(this,e)}function rs(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];A(t.type),t.url="http://"+this.sliceSerialize(e)}function ru(e){this.config.exit.autolinkEmail.call(this,e)}function rc(e){this.exit(e)}function rd(e){!function(e,t,n){let r=nm((n||{}).ignore||[]),i=function(e){if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let t=[],n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var i;let e=n[r];t.push(["string"==typeof(i=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),l=-1;for(;++l<i.length;)nb(e,o);function o(e,t,n){return"text"===e.type&&"number"==typeof n?function(e,t,n){let r=t[t.length-1],o=i[l][0],a=i[l][1],s=0,u=!1,c=[];o.lastIndex=0;let d=o.exec(e.value);for(;d;){let n=d.index,r={index:d.index,input:d.input,stack:[...t,e]},i=a(...d,r);if("string"==typeof i&&(i=i.length>0?{type:"text",value:i}:void 0),!1===i)o.lastIndex=n+1;else{if(s!==n&&f({type:"text",value:e.value.slice(s,n)}),Array.isArray(i))for(let e of i)f(e);else i&&f(i);s=n+d[0].length,u=!0}if(!o.global)break;d=o.exec(e.value)}return u?(s<e.value.length&&f({type:"text",value:e.value.slice(s)}),r.children.splice(n,1,...c)):c=[e],n+c.length;function f(e){let t=c[c.length-1];t&&"text"===t.type&&"text"===e.type?t.value+=e.value:c.push(e)}}(e,t,n):r(e,n,t[t.length-1])?nv:void 0}}(e,[[/(?<![\da-z])(https?:\/\/|www(?=\.))([\w-]*\.[\w\-.]*)([^\t\n\r ]*)/gi,rf],[/(?<![\w+\-.@])xmpp:([\w+\-.]+)@([\w-]+(?:\.[\w-]+)+)(\/(?:[\w\-/]|\.(?=[\dA-Za-z]))*)?/g,rm],[/(?<![\w+\-.@])mailto:([\w+\-.]+)@([\w-]+(?:\.[\w-]+)+)/g,rh],[/(?<![\w+\-.]|(?:^|[^\d@A-Za-z])(?:mailto|xmpp):)([\w+\-.]+)@([\w-]+(?:\.[\w-]+)+)/g,rp]],{ignore:["link","linkReference"]})}function rf(e,t,n,r,i){var l;let o,a;if(o=(l=i).input.charCodeAt(l.index-1),!(0===l.index||te(o)||e7(o)))return!1;let s="";if(/^w/i.test(t)&&(n=t+n,t="",s="http://"),e7(n.charCodeAt(0))||(a=n.split(".")).length<2||a[a.length-1]&&(/_/.test(a[a.length-1])||!/[\dA-Za-z]/.test(a[a.length-1]))||a[a.length-2]&&(/_/.test(a[a.length-2])||!/[\dA-Za-z]/.test(a[a.length-2])))return!1;let u=function(e){let t=e.length;for(;t>0;){let n=e.charCodeAt(t-1);if(33===n||34===n||38===n||39===n||41===n||44===n||46===n||58===n||59===n||60===n||62===n||63===n||93===n||125===n)t--;else break}if(t===e.length)return[e,void 0];let n=e.slice(t);e=e.slice(0,t);let r=n.indexOf(")"),i=rn(e,"("),l=rn(e,")");for(;-1!==r&&i>l;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),l++;return[e,n]}(n+r),c={type:"link",title:null,url:s+t+u[0],children:[{type:"text",value:t+u[0],position:void 0}],position:void 0};return u[1]?[c,{type:"text",value:u[1],position:void 0}]:c}function rp(e,t,n){return!/[\d\-_]$/.test(n)&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n,position:void 0}],position:void 0}}function rh(e,t,n){if(/[\d\-_]$/.test(n))return!1;let r="mailto:"+t+"@"+n;return{type:"link",title:null,url:r,children:[{type:"text",value:r,position:void 0}],position:void 0}}function rm(e,t,n,r,i){if(/[\d\-_]$/.test(n)||r&&(!/[A-Za-z]$/.test(r)||"@"===i.input.charAt(i.index+e.length)))return!1;let l="xmpp:"+t+"@"+n+(r||"");return{type:"link",title:null,url:l,children:[{type:"text",value:l,position:void 0}],position:void 0}}function rg(){this.buffer()}function rx(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ry(){this.buffer()}function rv(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function rb(e){let t=this.resume(),n=this.stack[this.stack.length-1];A(n.type),n.identifier=t_(this.sliceSerialize(e)).toLowerCase(),n.label=t}function rk(e){this.exit(e)}function rw(e){let t=this.resume(),n=this.stack[this.stack.length-1];A(n.type),n.identifier=t_(this.sliceSerialize(e)).toLowerCase(),n.label=t}function rS(e){this.exit(e)}function rC(e,t,n,r){let i=n.createTracker(r),l=i.move("[^"),o=n.enter("footnoteReference"),a=n.enter("reference");return l+=i.move(n.safe(n.associationId(e),{after:"]",before:l})),a(),o(),l+=i.move("]")}function rE(e,t,n){return 0===t?e:rj(e,t,n)}function rj(e,t,n){return(n?"":" ")+e}rC.peek=function(){return"["};let rA=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function rz(e){this.enter({type:"delete",children:[],position:void 0},e)}function rN(e){this.exit(e)}function rT(e,t,n,r){let i=n.createTracker(r),l=n.stack.includes("strikethrough")?"~":"~~",o=n.enter("strikethrough"),a=i.move(l);return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move(l),o(),a}function rL(e){return e.length}function rM(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:114*(82===t||114===t)}rT.attention=function(){return{construct:"strikethrough",markers:["~"],sizes:[2,1]}},rT.peek=function(){return"~"};function rD(e){let t=e.codePointAt(0);return void 0===t?"":String.fromCodePoint(t)}function rP(e){let t=e.codePointAt(e.length-2);return void 0!==t&&t>65535?e.slice(-2):e.slice(-1)}function rI(e,t,n){let r=tw(e),i=tw(t);return void 0===r?void 0===i?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!1}:{inside:!1,outside:!1}}let rR=new Map([["*",!1],["_",!0]]);function rF(e,t,n){let r=[],i=new Map,l=new Map,o=0;for(;o<e.length;){if(!e[o].attention){o++;continue}let a=e[o].value.charAt(0),s=rR.get(a),u=o+1;for(;u<e.length&&e[u].attention&&e[u].value.charAt(0)===a;)u++;let c=o?e[o-1].value:t,d=tw(c.charCodeAt(c.length-1)),f=tw((u<e.length?e[u].value:n).charCodeAt(0)),p=!f||2===f&&!!d,h=!d||2===d&&!!f,m={tokens:e.slice(o,u),markers:[],start:0,end:0,open:s?p&&(!!d||!h):p,close:s?h&&(!!f||!p):h,split:void 0!==s};for(let e of m.tokens){i.set(e,[...m.tokens]),l.set(e,m);let t=e.value.length;for(;t--;)m.markers.push(e)}m.end=m.markers.length,r.push(m),o=u}for(function(e,t){let n=new Map;for(let r of e){let e=r.tokens[0].value.charAt(0),i=n.get(e);i||(i=[],n.set(e,i));let l=r.close?i.length:0;for(;l--&&r.start<r.end;){let e=i[l],n=e.end-e.start,o=r.end-r.start;if(r.split?(e.close||r.open)&&o%3&&!((n+o)%3):n!==e.markers.length||n!==o)continue;let a=r.split?n>1&&o>1?2:1:o,s=e.markers.slice(e.end-a,e.end),u=r.markers.slice(r.start,r.start+a),c=s[0],d=u[0];if(c===s[a-1]&&c.value.length===a&&d===u[a-1]&&d.value.length===a&&c.attention===d.attention)t.delete(c),t.delete(d);else{let e=[...new Set([...s,...u])];for(let n of e){let r=t.get(n);r&&r.push(...e)}}e.end-=a,r.start+=a,e.start===e.end&&i.splice(l,1),l=i.length}r.open&&r.start<r.end&&i.push(r)}}(r,i),o=-1;++o<e.length;){let t=i.get(e[o]);if(t)return{attention:function(e,t,n){let r=new Set;for(let i of e){let e=n.get(i);if(e&&i.attention&&t.some(e=>e.attention===i.attention))for(let t of e.tokens)r.add(t.attention)}let i=[];for(let t of e)t.attention&&r.delete(t.attention)&&i.push(t.attention);return i.reverse(),i}(e,t,l),index:o}}}function rO(e,t){let n=e[t?0:e.length-1];if(!n||n.attention)return;let r=t?rD(n.value):rP(n.value),i="&#x"+r.codePointAt(0).toString(16).toUpperCase()+";";if(t)n.value=i+n.value.slice(r.length);else{let e=n.value.slice(0,n.value.length-r.length),t=0;for(;92===e.charCodeAt(e.length-1-t);)t++;t%2&&(e+="\\"),n.value=e+i}}function r_(e,t,n,r){let{construct:i,markers:l,sizes:o}=t(e,n),a=function(e,t,n){if(0===t.length)throw Error("Cannot serialize `"+e+"` as attention without markers, expected one or more markers");if(0===n.length)throw Error("Cannot serialize `"+e+"` as attention without sizes, expected one or more sizes");for(let t of n)if(!Number.isSafeInteger(t)||t<1)throw Error("Cannot serialize `"+e+"` as attention with `"+t+"` as size, expected positive integer");let r=[];for(let i of t){if(1!==i.length)throw Error("Cannot serialize `"+e+"` as attention with `"+i+"` as marker, expected a single ascii character");if(!e5(i.charCodeAt(0)))throw Error("Cannot serialize `"+e+"` as attention with `"+i+"` as marker, expected ascii punctuation");for(let e of n)r.push(i.repeat(e))}return r}(e.type,l,o),s=a[0],u=n.enter(i),c=n.createTracker(r.current());c.move(s);let d=function(e,t,n){let r=t.indexStack,i=e.children||[],l=[],o=-1,a=n.before;r.push(-1);let s=t.createTracker(n);for(;++o<i.length;){let u,c=i[o];if(r[r.length-1]=o,o+1<i.length){let n=t.handle.handlers[i[o+1].type];n&&n.peek&&(n=n.peek),u=n?rD(n(i[o+1],e,t,{before:"",after:"",...s.current()})):""}else u=n.after;let d=l[l.length-1];"string"==typeof d&&("\r"===a||"\n"===a)&&"html"===c.type&&7!==function(e){if(60!==e.charCodeAt(0))return;let t=e.charCodeAt(1);if(33===t){let t=e.charCodeAt(2);return 45===t?2:91===t?5:eY(t)?4:void 0}if(63===t)return 3;let n=47===t,r=n?2:1,i=r,l=e.charCodeAt(i);if(!eY(l))return;for(;45===l||e0(l);)l=e.charCodeAt(++i);let o=e.slice(r,i).toLowerCase();return!n&&47!==l&&tH.includes(o)?1:tB.includes(o)?6:7}(c.value)&&(l[l.length-1]=d.replace(/(\r?\n|\r)$/," "),a=" ",(s=t.createTracker(n)).move(rH(l,n.before,n.after)));let f=t.handle.handlers[c.type];if(f&&f.attention){let e=r_(c,f.attention,t,s);if(!e)continue;l.push(e),a=rP(e.sequences[0])}else{let n=t.handle(c,e,t,{...s.current(),after:u,before:a});if(!n)continue;s.move(n),l.push(n),a=rP(n)}}return r.pop(),l}(e,n,{...c.current(),before:s,after:s});if(u(),0!==d.length)return r.move(s),r.move(rH(d,s,s)),r.move(s),{children:d,sequences:a}}function r$(e,t,n,r){let i=rB(e,t,n,r),l=rF(i,n,r);for(;l;){let o=function(e,t,n,r,i){for(let l of n.attention){let o=t.get(l)||l.sequences[0];for(let a of l.sequences){if(a===o)continue;let s=new Map(t);s.set(l,a);let u=rB(e,s,r,i),c=rF(u,r,i);if(!c||c.index>n.index)return{chosen:s,mistake:c,tokens:u}}}}(e,t,l,n,r);if(!o)return;t=o.chosen,i=o.tokens,l=o.mistake}return i}function rB(e,t,n,r){let i,l=[],o=rP(n),a=-1;for(;++a<e.length;){let n=e[a];if("string"==typeof n){let e={value:n,attention:void 0};i&&i===rD(n)&&rO([e],!0),i=void 0,l.push(e),e.value&&(o=rP(e.value));continue}let s=t.get(n)||n.sequences[0],u=s.charAt(0),c=e[a+1],d=o,f=rD(void 0===c?r:"string"==typeof c?c:t.get(c)||c.sequences[0]),p=rB(n.children,t,s,s),h=p[0].value,m=rI(d.charCodeAt(d.length-1),h.charCodeAt(0),u);m.inside&&rO(p,!0);let g=rP(p[p.length-1].value),x=rI(f.charCodeAt(0),g.charCodeAt(g.length-1),u);x.inside&&rO(p,!1),m.outside&&"\n"!==d&&"\r"!==d&&rO(l,!1),x.outside&&(i=f),l.push({value:s,attention:n},...p,{value:s,attention:n}),o=s.charAt(s.length-1)}return l}function rH(e,t,n){let r=new Map;!function e(t,n,r,i){let l=r,o=-1;for(;++o<t.length;){let a=t[o];if("string"==typeof a){l="";continue}let s=o===t.length-1?i:"",u=a.sequences.find(function(e){let n=e.charAt(0);return n!==l.charAt(0)&&n!==s.charAt(0)||1===t.length&&rR.has(n)&&e.length>r.length})||a.sequences[0];u!==a.sequences[0]&&n.set(a,u),e(a.children,n,u,u),l=u}}(e,r,t,n);let i=(r.size>0?r$(e,r,t,n):void 0)||r$(e,new Map,t,n)||rB(e,new Map,t,n),l="";for(let e of i)l+=e.value;return l}function rU(e,t,n,r){let i=n.enter("phrasing"),l=r_(e,rq,n,n.createTracker(r)),o=l?rH([l],r.before,r.after):"";return i(),o}function rq(e,t){return{construct:"emphasis",markers:"*"===function(e){let t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(t)?["*","_"]:["_","*"],sizes:[1]}}rU.attention=rq,rU.peek=function(e,t,n){return n.options.emphasis||"*"};function rV(e,t,n){let r=e.value||"",i="`",l=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^\n\r ]/.test(r)&&(/^[\n\r ]/.test(r)&&/[\n\r ]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<n.unsafe.length;){let e,t=n.unsafe[l],i=n.compilePattern(t);if(t.atBreak)for(;e=i.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return i+r+i}rV.peek=function(){return"`"};function rW(e,t,n,r){let i=n.enter("phrasing"),l=r_(e,rJ,n,n.createTracker(r)),o=l?rH([l],r.before,r.after):"";return i(),o}function rJ(e,t){return{construct:"strong",markers:"*"===function(e){let t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(t)?["*","_"]:["_","*"],sizes:[2]}}nm(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]),rW.attention=rJ,rW.peek=function(e,t,n){return n.options.strong||"*"};let rK=function(e,t,n,r){let i=n.enter("paragraph"),l=n.enter("phrasing"),o=n.containerPhrasing(e,r);return l(),i(),o};function rQ(e){let t=e._align;A(),this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[],position:void 0},e),this.data.inTable=!0}function rX(e){this.exit(e),this.data.inTable=void 0}function rZ(e){this.enter({type:"tableRow",children:[],position:void 0},e)}function rG(e){this.exit(e)}function rY(e){this.enter({type:"tableCell",children:[],position:void 0},e)}function r0(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,r1));let n=this.stack[this.stack.length-1];A(n.type),n.value=t,this.exit(e)}function r1(e,t){return"|"===t?t:e}function r2(e,t,n,r){var i,l;let o;if("table"===e.type&&"listItem"===n.type&&!1===n.spread&&("definition"===t.type||"heading"===t.type&&(i=t,l=r,o=!1,nw(i,function(e){if("break"===e.type||"value"in e&&/\r?\n|\r/.test(e.value))return o=!0,!1}),(!i.depth||i.depth<3)&&eW(i)&&(l.options.setext||o))||"paragraph"===t.type||"table"===t.type))return 1}function r4(e){let t=this.stack[this.stack.length-2];A(t.type),t.checked="taskListCheckValueChecked"===e.type}function r3(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];A(e.type);let n=e.children[0];if(n&&"text"===n.type){let r,i=t.children,l=-1;for(;++l<i.length;){let e=i[l];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start={...n.position.start}))}}this.exit(e)}function r5(e,t,n,r){if(!t||"listItem"!==t.type||r9(t)!==e)return rK(e,t,n,r);let i="["+(t.checked?"x":" ")+"] ",l=n.createTracker(r);return l.move(i),i+rK(e.children.length>0?e:{type:"paragraph",children:[{type:"text",value:" "}]},t,n,{...r,...l.current()})}function r6(e,t,n){if("definition"!==e.type||"listItem"!==n.type)return;let r=r9(n);if(r&&n.children.indexOf(e)<n.children.indexOf(r))return 0}function r9(e){if("boolean"==typeof e.checked)for(let t of e.children){if("paragraph"===t.type)return t;if("definition"!==t.type)return}}let r8={tokenize:function(e,t,n){let r=0;return function t(l){return(87===l||119===l)&&r<3?(r++,e.consume(l),t):46===l&&3===r?(e.consume(l),i):n(l)};function i(e){return null===e?n(e):t(e)}},partial:!0},r7={tokenize:function(e,t,n){let r,i,l;return o;function o(t){return 46===t||95===t?e.check(it,s,a)(t):null===t||e9(t)||te(t)||45!==t&&e7(t)?s(t):(l=!0,e.consume(t),o)}function a(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),o}function s(e){return i||r||!l?n(e):t(e)}},partial:!0},ie={tokenize:function(e,t){let n=0,r=0;return i;function i(o){return 40===o?(n++,e.consume(o),i):41===o&&r<n?l(o):33===o||34===o||38===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||60===o||63===o||93===o||95===o||126===o?e.check(it,t,l)(o):null===o||e9(o)||te(o)?t(o):(e.consume(o),i)}function l(t){return 41===t&&r++,e.consume(t),i}},partial:!0},it={tokenize:function(e,t,n){return r;function r(o){return 33===o||34===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||63===o||95===o||126===o?(e.consume(o),r):38===o?(e.consume(o),l):93===o?(e.consume(o),i):60===o||null===o||e9(o)||te(o)?t(o):n(o)}function i(e){return null===e||40===e||91===e||e9(e)||te(e)?t(e):r(e)}function l(t){return eY(t)?function t(i){return 59===i?(e.consume(i),r):eY(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},ir={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return e0(e)?n(e):t(e)}},partial:!0},ii={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!iu.call(r,r.previous)||ih(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(r8,e.attempt(r7,e.attempt(ie,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:iu},il={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",l=!1;return function(t){return(72===t||104===t)&&ic.call(r,r.previous)&&!ih(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),o):n(t)};function o(t){if(eY(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),o;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),a}return n(t)}function a(t){return 47===t?(e.consume(t),l)?s:(l=!0,a):n(t)}function s(t){return null===t||e2(t)||e9(t)||te(t)||e7(t)?n(t):e.attempt(r7,e.attempt(ie,u),n)(t)}function u(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:ic},io={name:"emailAutolink",tokenize:function(e,t,n){let r,i,l=this;return function(t){return!ip(t)||!id.call(l,l.previous)||ih(l.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return ip(r)?(e.consume(r),t):64===r?(e.consume(r),o):n(r)}(t))};function o(t){return 46===t?e.check(ir,s,a)(t):45===t||95===t||e0(t)?(i=!0,e.consume(t),o):s(t)}function a(t){return e.consume(t),r=!0,o}function s(o){return i&&r&&eY(l.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):n(o)}},previous:id},ia={},is=48;for(;is<123;)ia[is]=io,58==++is?is=65:91===is&&(is=97);function iu(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||e9(e)}function ic(e){return!eY(e)}function id(e){return!(47===e||ip(e))}function ip(e){return 43===e||45===e||46===e||95===e||e0(e)}function ih(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}ia[43]=io,ia[45]=io,ia[46]=io,ia[95]=io,ia[72]=[io,il],ia[104]=[io,il],ia[87]=[io,ii],ia[119]=[io,ii];let im={tokenize:function(e,t,n){let r=this;return tn(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function ig(e,t,n){let r,i=this,l=i.events.length,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;l--;){let e=i.events[l][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(l){if(!r||!r._balanced)return n(l);let a=t_(i.sliceSerialize({start:r.end,end:i.now()}));return 94===a.codePointAt(0)&&o.includes(a.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l)):n(l)}}function ix(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let 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++;let l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",l,t],["enter",o,t],["exit",o,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function iy(e,t,n){let r,i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),o=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),a};function a(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(a){if(o>999||93===a&&!r||null===a||91===a||e9(a))return n(a);if(93===a){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return l.includes(t_(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(a)}return e9(a)||(r=!0),o++,e.consume(a),92===a?u:s}function u(t){return 91===t||92===t||93===t?(e.consume(t),o++,s):s(t)}}function iv(e,t,n){let r,i,l=this,o=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]),a=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),s};function s(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(a>999||93===t&&!i||null===t||91===t||e9(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=t_(l.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return e9(t)||(i=!0),a++,e.consume(t),92===t?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,u):u(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(r)||o.push(r),tn(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function ib(e,t,n){return e.check(tu,t,e.attempt(im,t,n))}function ik(e){e.exit("gfmFootnoteDefinition")}class iw{constructor(){this.map=[],this.index=new Map}add(e,t,n){!function(e,t,n,r){if(0===n&&0===r.length)return;let i=e.index.get(t);if(i){i[1]+=n,i[2].push(...r);return}let l=[t,n,r];e.map.push(l),e.index.set(t,l)}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}}function iS(e,t,n){let r,i=this,l=0,o=0;return function(e){let t=i.events.length-1;for(;t>-1;){let{type:e}=i.events[t][1];if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,l="tableHead"===r||"tableRow"===r?y:a;return l===y&&i.parser.lazy[i.now().line]?n(e):l(e)};function a(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(r=!0,o+=1),s(n)}function s(t){return null===t?n(t):e6(t)?o>1?(o=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):e8(t)?tn(e,s,"whitespace")(t):(o+=1,r&&(r=!1,l+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,s):(e.enter("data"),u(t))}function u(t){return null===t||124===t||e9(t)?(e.exit("data"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return 92===t||124===t?(e.consume(t),u):u(t)}function d(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,e8(t))?tn(e,f,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t)}function f(t){return 45===t||58===t?h(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):n(t)}function p(t){return e8(t)?tn(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(o+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(o+=1,m(t)):null===t||e6(t)?x(t):n(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(n))}(t)):n(t)}function g(t){return e8(t)?tn(e,x,"whitespace")(t):x(t)}function x(i){if(124===i)return f(i);if(null===i||e6(i))return r&&l===o?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i);return n(i)}function y(t){return e.enter("tableRow"),v(t)}function v(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),v):null===n||e6(n)?(e.exit("tableRow"),t(n)):e8(n)?tn(e,v,"whitespace")(n):(e.enter("data"),b(n))}function b(t){return null===t||124===t||e9(t)?(e.exit("data"),v(t)):(e.consume(t),92===t?k:b)}function k(t){return 92===t||124===t?(e.consume(t),b):b(t)}}function iC(e,t){let n,r,i,l=-1,o=!0,a=0,s=[0,0,0,0],u=[0,0,0,0],c=!1,d=0,f=new iw;for(;++l<e.length;){let p=e[l],h=p[1];"enter"===p[0]?"tableHead"===h.type?(c=!1,0!==d&&(ij(f,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(l,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(o=!0,i=void 0,s=[0,0,0,0],u=[0,l+1,0,0],c&&(c=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(l,0,[["enter",r,t]])),a="tableDelimiterRow"===h.type?2:r?3:1):a&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)?(o=!1,0===u[2]&&(0!==s[1]&&(u[0]=u[1],i=iE(f,t,s,a,void 0,i),s=[0,0,0,0]),u[2]=l)):"tableCellDivider"===h.type&&(o?o=!1:(0!==s[1]&&(u[0]=u[1],i=iE(f,t,s,a,void 0,i)),u=[(s=u)[1],l,0,0])):"tableHead"===h.type?(c=!0,d=l):"tableRow"===h.type||"tableDelimiterRow"===h.type?(d=l,0!==s[1]?(u[0]=u[1],i=iE(f,t,s,a,l,i)):0!==u[1]&&(i=iE(f,t,u,a,l,i)),a=0):a&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)&&(u[3]=l)}for(0!==d&&ij(f,t,d,n,r),f.consume(t.events),l=-1;++l<t.events.length;){let e=t.events[l];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}(t.events,l))}return e}function iE(e,t,n,r,i,l){0!==n[0]&&(l.end=Object.assign({},iA(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));let o=iA(t.events,n[1]);if(l={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},o),end:Object.assign({},o)},e.add(n[1],0,[["enter",l,t]]),0!==n[2]){let i=iA(t.events,n[2]),l=iA(t.events,n[3]),o={type:"tableContent",start:Object.assign({},i),end:Object.assign({},l)};if(e.add(n[2],0,[["enter",o,t]]),2!==r){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",o,t]])}return void 0!==i&&(l.end=Object.assign({},iA(t.events,i)),e.add(i,0,[["exit",l,t]]),l=void 0),l}function ij(e,t,n,r,i){let l=[],o=iA(t.events,n);i&&(i.end=Object.assign({},o),l.push(["exit",i,t])),r.end=Object.assign({},o),l.push(["exit",r,t]),e.add(n+1,0,l)}function iA(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let iz={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return e9(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),l):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),l):n(t)}function l(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(t)}function o(r){return e6(r)?t(r):e8(r)?e.check({tokenize:iN},t,n)(r):n(r)}}};function iN(e,t,n){return tn(e,function(e){return null===e?n(e):t(e)},"whitespace")}let iT={};function iL(e){let t,n,r,i=e||iT,l=this.data(),o=l.micromarkExtensions||(l.micromarkExtensions=[]),a=l.fromMarkdownExtensions||(l.fromMarkdownExtensions=[]),s=l.toMarkdownExtensions||(l.toMarkdownExtensions=[]);o.push(eG([{text:ia},{document:{91:{name:"gfmFootnoteDefinition",tokenize:iv,continuation:{tokenize:ib},exit:ik}},text:{91:{name:"gfmFootnoteCall",tokenize:iy},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:ig,resolveTo:ix}}},(t=(i||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,l=this.events,o=0;return function(a){return 126===i&&"characterEscape"!==l[l.length-1][1].type?r(a):(e.enter("strikethroughSequenceTemporary"),function l(a){let s=tw(i);if(126===a)return o>1?r(a):(e.consume(a),o++,l);if(o<2&&!t)return r(a);let u=e.exit("strikethroughSequenceTemporary"),c=tw(a);return u._open=!c||2===c&&!!s,u._close=!s||2===s&&!!c,n(a)}(a))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},l={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",l,t]],a=t.parser.constructs.insideSpan.null;a&&eQ(o,o.length,0,tS(a,e.slice(r+1,n),t)),eQ(o,o.length,0,[["exit",l,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),eQ(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}},null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}),{flow:{null:{name:"table",tokenize:iS,resolveAll:iC}}},{text:{91:iz}}])),a.push([{transforms:[rd],enter:{literalAutolink:rl,literalAutolinkEmail:ro,literalAutolinkHttp:ro,literalAutolinkWww:ro},exit:{literalAutolink:rc,literalAutolinkEmail:ru,literalAutolinkHttp:ra,literalAutolinkWww:rs}},{enter:{gfmFootnoteCallString:rg,gfmFootnoteCall:rx,gfmFootnoteDefinitionLabelString:ry,gfmFootnoteDefinition:rv},exit:{gfmFootnoteCallString:rb,gfmFootnoteCall:rk,gfmFootnoteDefinitionLabelString:rw,gfmFootnoteDefinition:rS}},{canContainEols:["delete"],enter:{strikethrough:rz},exit:{strikethrough:rN}},{enter:{table:rQ,tableData:rY,tableHeader:rY,tableRow:rZ},exit:{codeText:r0,table:rX,tableData:rG,tableHeader:rG,tableRow:rG}},{exit:{taskListCheckValueChecked:r4,taskListCheckValueUnchecked:r4,paragraph:r3}}]),s.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:rr,notInConstruct:ri},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:rr,notInConstruct:ri},{character:":",before:"[ps]",after:"\\/",inConstruct:rr,notInConstruct:ri}]},(r=!1,i&&i.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:function(e,t,n,i){let l=n.createTracker(i),o=l.move("[^"),a=n.enter("footnoteDefinition"),s=n.enter("label");return o+=l.move(n.safe(n.associationId(e),{before:o,after:"]"})),s(),o+=l.move("]:"),e.children&&e.children.length>0&&(l.shift(4),o+=l.move((r?"\n":" ")+n.indentLines(n.containerFlow(e,l.current()),r?rj:rE))),a(),o},footnoteReference:rC},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{handlers:{delete:rT},unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:rA}]},function(e){let{tableCellPadding:t,tablePipeAlign:n,stringLength:r}=e||{},i=t?" ":"|";return{handlers:{inlineCode:function(e,t,n){let r=rV(e,t,n);if(!n.stack.includes("tableCell"))return r;let i=[],l=0,o=r.indexOf("|");for(;-1!==o;){let e=o;for(;e>l&&92===r.charCodeAt(e-1);)e--;i.push(r.slice(l,o)),(o-e)%2==0&&i.push("\\"),l=o,o=r.indexOf("|",o+1)}return i.push(r.slice(l)),i.join("")},table:function(e,t,n,r){let i=function(e,t,n){let{children:r}=e,i=-1,l=[],o=t.enter("table");for(;++i<r.length;)l[i]=a(r[i],t,n);return o(),l}(e,n,r),l=i[0];if(l){let t=e.align?e.align.length:0,n=-1;if(!t)for(;++n<i.length;)i[n].length>t&&(t=i[n].length);for(;l.length<t;)l.push("")}return o(i,e.align)},tableCell:l,tableRow:function(e,t,n,r){let i=o([a(e,n,r)]);return i.slice(0,i.indexOf("\n"))}},join:[r2],unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}]};function l(e,t,n,r){let l=n.enter("tableCell"),o=n.enter("phrasing"),a=n.containerPhrasing(e,{...r,before:i,after:i});return o(),l(),a}function o(e,i){return function(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||rL,l=[],o=[],a=[],s=[],u=0,c=-1;for(;++c<e.length;){let t=[],r=[],l=-1;for(e[c].length>u&&(u=e[c].length);++l<e[c].length;){var d;let o=null==(d=e[c][l])?"":String(d);if(!1!==n.alignDelimiters){let e=i(o);r[l]=e,(void 0===s[l]||e>s[l])&&(s[l]=e)}t.push(o)}o[c]=t,a[c]=r}let f=-1;if("object"==typeof r&&"length"in r)for(;++f<u;)l[f]=rM(r[f]);else{let e=rM(r);for(;++f<u;)l[f]=e}f=-1;let p=[],h=[];for(;++f<u;){let e=l[f],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,s[f]-t.length-r.length),o=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&((i=t.length+i+r.length)>s[f]&&(s[f]=i),h[f]=i),p[f]=o}o.splice(1,0,p),a.splice(1,0,h),c=-1;let m=[];for(;++c<o.length;){let e=o[c],t=a[c],r=!1===n.fillRows?Math.max(1,o[1===c?0:c].length):u;f=-1;let i=[];for(;++f<r;){let o=e[f]||"",a="",u="";if(!1!==n.alignDelimiters){let e=s[f]-(t[f]||0),n=l[f];if(114===n)a=" ".repeat(e);else if(99===n){let t=e/2;e%2?(a=" ".repeat(t+.5),u=" ".repeat(t-.5)):u=a=" ".repeat(t)}else u=" ".repeat(e)}!1===n.delimiterStart||f||i.push("|"),!1!==n.padding&&(!1!==n.alignDelimiters||""!==o)&&(!1!==n.delimiterStart||f)&&i.push(" "),!1!==n.alignDelimiters&&i.push(a),i.push(o),!1!==n.alignDelimiters&&i.push(u),!1!==n.padding&&i.push(" "),(!1!==n.delimiterEnd||f!==r-1)&&i.push("|")}m.push(!1===n.delimiterEnd?i.join("").replace(/ +$/,""):i.join(""))}return m.join("\n")}(e,{align:i,alignDelimiters:n,fillRows:!1,padding:t,stringLength:r})}function a(e,t,n){let{children:r}=e,i=-1,o=[],a=t.enter("tableRow");for(;++i<r.length;)o[i]=l(r[i],e,t,n);return a(),o}}(i),{handlers:{paragraph:r5},join:[r6]}]})}let iM={name:"link-2",size:24,node:[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]};iM.node;let iD=s(iM),iP={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};iP.node;let iI=s(iP);var iR=e.i(60210),iF=e.i(10827);e.i(74346);var iO=e.i(59716);e.i(20022),e.i(41646),e.i(28903),e.i(42197),e.i(57518),e.i(40516);var i_=e.i(7559);e.i(44600);var i$=e.i(89739),iB=e.i(28557),iH=e.i(8324),iU=e.i(19524),iq=e.i(40524),iV=e.i(19882),iW="comm",iJ="rule",iK="decl",iQ="@keyframes",iX="@layer",iZ=Math.abs,iG=String.fromCharCode;function iY(e,t,n){return e.replace(t,n)}function i0(e,t){return 0|e.charCodeAt(t)}function i1(e,t,n){return e.slice(t,n)}function i2(e){return e.length}function i4(e,t){return t.push(e),e}var i3=1,i5=1,i6=0,i9=0,i8=0,i7="";function le(e,t,n,r,i,l,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:l,line:i3,column:i5,length:o,return:"",siblings:a}}function lt(){return i8=i9<i6?i0(i7,i9++):0,i5++,10===i8&&(i5=1,i3++),i8}function ln(){return i0(i7,i9)}function lr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function li(e){var t,n;return(t=i9-1,n=function e(t){for(;lt();)switch(i8){case t:return i9;case 34:case 39:34!==t&&39!==t&&e(i8);break;case 40:41===t&&e(t);break;case 92:lt()}return i9}(91===e?e+2:40===e?e+1:e),i1(i7,t,n)).trim()}function ll(e,t,n,r,i,l,o,a,s,u,c,d){for(var f=i-1,p=0===i?l:[""],h=p.length,m=0,g=0,x=0;m<r;++m)for(var y=0,v=i1(e,f+1,f=iZ(g=o[m])),b=e;y<h;++y)(b=(g>0?p[y]+" "+v:iY(v,/&\f/g,p[y])).trim())&&(s[x++]=b);return le(e,t,n,0===i?iJ:a,s,u,c,d)}function lo(e,t,n,r,i){return le(e,t,n,iK,i1(e,0,r),i1(e,r+1,-1),r,i)}function la(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function ls(e,t,n,r){switch(e.type){case iX:if(e.children.length)break;case"@import":case"@namespace":case iK:return e.return=e.return||e.value;case iW:return"";case iQ:return e.return=e.value+"{"+la(e.children,r)+"}";case iJ:if(!i2(e.value=e.props.join(",")))return""}return i2(n=la(e.children,r))?e.return=e.value+"{"+n+"}":""}var lu=e.i(24154),lc=e.i(47608),ld=e.i(32780),lf=e.i(38489),lp=e.i(68482);function lh(e){if(null==e)return!0;if((0,ld.f)(e))return("function"==typeof e.splice||"string"==typeof e||!!(0,lc.f)(e)||!!(0,lf.f)(e)||!!(0,lp.f)(e))&&0===e.length;if("object"==typeof e||"function"==typeof e){let t;if(e instanceof Map||e instanceof Set)return 0===e.size;let n=Object.keys(e);return(t=null==e?void 0:e.constructor,e===("function"==typeof t?t.prototype:Object.prototype))?0===n.filter(e=>"constructor"!==e).length:0===n.length}return!0}var lm={id:"c4",detector:(0,iU.p)(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),loader:(0,iU.p)(async()=>{let{diagram:t}=await e.A(48028);return{id:"c4",diagram:t}},"loader")},lg="flowchart-v2",lx=(0,iU.p)(e=>/^\s*(graph|flowchart)/.test(e),"detector"),ly=(0,iU.p)(async()=>{let{diagram:t}=await e.A(15831);return{id:lg,diagram:t}},"loader"),lv={id:lg,detector:lx,loader:ly},lb="agentflow",lk=(0,iU.p)(e=>/^\s*agentflow-beta\b/.test(e),"detector"),lw=(0,iU.p)(async()=>{let{diagram:t}=await e.A(45404);return{id:lb,diagram:t}},"loader"),lS={id:lb,detector:lk,loader:lw},lC="swimlane",lE=(0,iU.p)(e=>/^\s*swimlane-beta\b/.test(e),"detector"),lj=(0,iU.p)(async()=>{let{diagram:t}=await e.A(5617);return{id:lC,diagram:t}},"loader"),lA={id:lC,detector:lE,loader:lj},lz={id:"er",detector:(0,iU.p)(e=>/^\s*erDiagram/.test(e),"detector"),loader:(0,iU.p)(async()=>{let{diagram:t}=await e.A(34489);return{id:"er",diagram:t}},"loader")},lN="gitGraph",lT=(0,iU.p)(e=>/^\s*gitGraph/.test(e),"detector"),lL=(0,iU.p)(async()=>{let{diagram:t}=await e.A(61614);return{id:lN,diagram:t}},"loader"),lM={id:lN,detector:lT,loader:lL},lD="gantt",lP=(0,iU.p)(e=>/^\s*gantt/.test(e),"detector"),lI=(0,iU.p)(async()=>{let{diagram:t}=await e.A(81156);return{id:lD,diagram:t}},"loader"),lR={id:lD,detector:lP,loader:lI},lF="info",lO=(0,iU.p)(e=>/^\s*info/.test(e),"detector"),l_=(0,iU.p)(async()=>{let{diagram:t}=await e.A(79139);return{id:lF,diagram:t}},"loader"),l$={id:lF,detector:lO,loader:l_},lB={id:"pie",detector:(0,iU.p)(e=>/^\s*pie/.test(e),"detector"),loader:(0,iU.p)(async()=>{let{diagram:t}=await e.A(1539);return{id:"pie",diagram:t}},"loader")},lH="quadrantChart",lU=(0,iU.p)(e=>/^\s*quadrantChart/.test(e),"detector"),lq=(0,iU.p)(async()=>{let{diagram:t}=await e.A(73158);return{id:lH,diagram:t}},"loader"),lV={id:lH,detector:lU,loader:lq},lW="xychart",lJ=(0,iU.p)(e=>/^\s*xychart(-beta)?/.test(e),"detector"),lK=(0,iU.p)(async()=>{let{diagram:t}=await e.A(50440);return{id:lW,diagram:t}},"loader"),lQ={id:lW,detector:lJ,loader:lK},lX="requirement",lZ=(0,iU.p)(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),lG=(0,iU.p)(async()=>{let{diagram:t}=await e.A(93660);return{id:lX,diagram:t}},"loader"),lY={id:lX,detector:lZ,loader:lG},l0="sequence",l1=(0,iU.p)(e=>/^\s*sequenceDiagram/.test(e),"detector"),l2=(0,iU.p)(async()=>{let{diagram:t}=await e.A(66202);return{id:l0,diagram:t}},"loader"),l4={id:l0,detector:l1,loader:l2},l3="classDiagram",l5=(0,iU.p)(e=>/^\s*classDiagram/.test(e),"detector"),l6=(0,iU.p)(async()=>{let{diagram:t}=await e.A(17260);return{id:l3,diagram:t}},"loader"),l9={id:l3,detector:l5,loader:l6},l8="stateDiagram",l7=(0,iU.p)(e=>/^\s*stateDiagram/.test(e),"detector"),oe=(0,iU.p)(async()=>{let{diagram:t}=await e.A(33526);return{id:l8,diagram:t}},"loader"),ot={id:l8,detector:l7,loader:oe},on="journey",or=(0,iU.p)(e=>/^\s*journey/.test(e),"detector"),oi=(0,iU.p)(async()=>{let{diagram:t}=await e.A(4893);return{id:on,diagram:t}},"loader"),ol={id:on,detector:or,loader:oi},oo=(0,iU.p)(e=>{let t=[];for(let n of e.split(/\s+/)){let e=[...n];for(;e.length>75;)t.push(e.slice(0,75).join("")),e=e.slice(75);e.length>0&&t.push(e.join(""))}let n=[],r="";for(let e of t){let t=r?`${r} ${e}`:e;[...t].length>75?(n.push(r),r=e):r=t}if(r&&n.push(r),n.length>4){n.length=4;let e=n[3]??"";n[3]=`${[...e].slice(0,72).join("")}...`}return n},"wrapErrorMessage"),oa={draw:(0,iU.p)((e,t,n,r)=>{iH.d.debug("rendering svg for syntax error\n");let i=(0,iO.f)(t),l=i.append("g"),o=oo(r?.db.getErrorMessage?.()??""),a=o.length>0?500+56*o.length:512;i.attr("viewBox",`0 0 2412 ${a}`),(0,iB.m)(i,100,a,!0),l.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),l.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),l.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),l.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),l.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),l.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),l.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),l.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`),o.forEach((e,t)=>{l.append("text").attr("class","error-text").attr("x",1440).attr("y",510+56*t).attr("font-size","42px").style("text-anchor","middle").text(e)})},"draw")},os={db:{clear(){t=void 0},setErrorMessage(e){t=e},getErrorMessage:()=>t},renderer:oa,parser:{parse:(0,iU.p)(()=>{},"parse")}},ou="flowchart-elk",oc=(0,iU.p)((e,t={})=>!!/^\s*flowchart-elk/.test(e)&&(t.layout="elk",!0),"detector"),od=(0,iU.p)(async()=>{let{diagram:t}=await e.A(15831);return{id:ou,diagram:t}},"loader"),of={id:ou,detector:oc,loader:od},op="timeline",oh=(0,iU.p)(e=>/^\s*timeline/.test(e),"detector"),om=(0,iU.p)(async()=>{let{diagram:t}=await e.A(22427);return{id:op,diagram:t}},"loader"),og={id:op,detector:oh,loader:om},ox="mindmap",oy=(0,iU.p)(e=>/^\s*mindmap/.test(e),"detector"),ov=(0,iU.p)(async()=>{let{diagram:t}=await e.A(7471);return{id:ox,diagram:t}},"loader"),ob={id:ox,detector:oy,loader:ov},ok="kanban",ow=(0,iU.p)(e=>/^\s*kanban/.test(e),"detector"),oS=(0,iU.p)(async()=>{let{diagram:t}=await e.A(7219);return{id:ok,diagram:t}},"loader"),oC={id:ok,detector:ow,loader:oS},oE="sankey",oj=(0,iU.p)(e=>/^\s*sankey(-beta)?/.test(e),"detector"),oA=(0,iU.p)(async()=>{let{diagram:t}=await e.A(39204);return{id:oE,diagram:t}},"loader"),oz={id:oE,detector:oj,loader:oA},oN="packet",oT=(0,iU.p)(e=>/^\s*packet(-beta)?/.test(e),"detector"),oL=(0,iU.p)(async()=>{let{diagram:t}=await e.A(23822);return{id:oN,diagram:t}},"loader"),oM={id:oN,detector:oT,loader:oL},oD="radar",oP=(0,iU.p)(e=>/^\s*radar-beta/.test(e),"detector"),oI=(0,iU.p)(async()=>{let{diagram:t}=await e.A(33130);return{id:oD,diagram:t}},"loader"),oR={id:oD,detector:oP,loader:oI},oF="block",oO=(0,iU.p)(e=>/^\s*block(-beta)?/.test(e),"detector"),o_=(0,iU.p)(async()=>{let{diagram:t}=await e.A(64281);return{id:oF,diagram:t}},"loader"),o$={id:oF,detector:oO,loader:o_},oB="treeView",oH=(0,iU.p)(e=>/^\s*treeView-beta/.test(e),"detector"),oU=(0,iU.p)(async()=>{let{diagram:t}=await e.A(28007);return{id:oB,diagram:t}},"loader"),oq={id:oB,detector:oH,loader:oU},oV="architecture",oW=(0,iU.p)(e=>/^\s*architecture/.test(e),"detector"),oJ=(0,iU.p)(async()=>{let{diagram:t}=await e.A(72004);return{id:oV,diagram:t}},"loader"),oK={id:oV,detector:oW,loader:oJ},oQ="eventmodeling",oX=(0,iU.p)(e=>/^\s*eventmodeling/.test(e),"detector"),oZ=(0,iU.p)(async()=>{let{diagram:t}=await e.A(97579);return{id:oQ,diagram:t}},"loader"),oG={id:oQ,detector:oX,loader:oZ},oY="ishikawa",o0=(0,iU.p)(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),o1=(0,iU.p)(async()=>{let{diagram:t}=await e.A(48315);return{id:oY,diagram:t}},"loader"),o2={id:oY,detector:o0,loader:o1},o4="venn",o3=(0,iU.p)(e=>/^\s*venn-beta/.test(e),"detector"),o5=(0,iU.p)(async()=>{let{diagram:t}=await e.A(71679);return{id:o4,diagram:t}},"loader"),o6={id:o4,detector:o3,loader:o5},o9="treemap",o8=(0,iU.p)(e=>/^\s*treemap/.test(e),"detector"),o7=(0,iU.p)(async()=>{let{diagram:t}=await e.A(892);return{id:o9,diagram:t}},"loader"),ae={id:o9,detector:o8,loader:o7},at="usecase",an=(0,iU.p)(e=>/^\s*usecase-beta(?:\s|$)/.test(e),"detector"),ar=(0,iU.p)(async()=>{let{diagram:t}=await e.A(855);return{id:at,diagram:t}},"loader"),ai={id:at,detector:an,loader:ar},al="wardley",ao=(0,iU.p)(e=>/^\s*wardley-beta/i.test(e),"detector"),aa=(0,iU.p)(async()=>{let{diagram:t}=await e.A(3831);return{id:al,diagram:t}},"loader"),as={id:al,detector:ao,loader:aa},au="cynefin",ac=(0,iU.p)(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),ad=(0,iU.p)(async()=>{let{diagram:t}=await e.A(54398);return{id:au,diagram:t}},"loader"),af={id:au,detector:ac,loader:ad},ap="railroad",ah=(0,iU.p)(e=>/^\s*railroad-beta/i.test(e),"detector"),am=(0,iU.p)(async()=>{let{diagram:t}=await e.A(47619);return{id:ap,diagram:t}},"loader"),ag={id:ap,detector:ah,loader:am},ax="railroadEbnf",ay=(0,iU.p)(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),av=(0,iU.p)(async()=>{let{diagram:t}=await e.A(1408);return{id:ax,diagram:t}},"loader"),ab={id:ax,detector:ay,loader:av},ak="railroadAbnf",aw=(0,iU.p)(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),aS=(0,iU.p)(async()=>{let{diagram:t}=await e.A(76866);return{id:ak,diagram:t}},"loader"),aC={id:ak,detector:aw,loader:aS},aE="railroadPeg",aj=(0,iU.p)(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),aA=(0,iU.p)(async()=>{let{diagram:t}=await e.A(23291);return{id:aE,diagram:t}},"loader"),az={id:aE,detector:aj,loader:aA},aN=!1,aT=(0,iU.p)(()=>{aN||(aN=!0,(0,iB.U)("error",os,e=>"error"===e.toLowerCase().trim()),(0,iB.U)("---",{db:{clear:(0,iU.p)(()=>{},"clear")},styles:{},renderer:{draw:(0,iU.p)(()=>{},"draw")},parser:{parse:(0,iU.p)(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:(0,iU.p)(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),(0,iB.$)(of,ob,oK),(0,iB.$)(lS,lm,oC,l9,lz,lR,l$,lB,lY,l4,lA,lv,og,lM,ot,ol,lV,oz,oM,lQ,o$,oG,oq,oR,o2,ae,ag,ab,aC,az,o6,as,af,ai))},"addDiagrams"),aL=(0,iU.p)(async()=>{iH.d.debug("Loading registered diagrams");let e=(await Promise.allSettled(Object.entries(iB.k).map(async([e,{detector:t,loader:n}])=>{if(n)try{(0,iB.e)(e)}catch{try{let{diagram:e,id:r}=await n();(0,iB.U)(r,e,t)}catch(t){throw iH.d.error(`Failed to load external diagram with key ${e}. Removing from detectors.`),delete iB.k[e],t}}}))).filter(e=>"rejected"===e.status);if(e.length>0){for(let t of(iH.d.error(`Failed to load ${e.length} external diagrams`),e))iH.d.error(t);throw Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams");function aM(e,t){e.attr("role","graphics-document document"),""!==t&&e.attr("aria-roledescription",t)}function aD(e,t,n,r){if(void 0!==e.insert){if(n){let t=`chart-desc-${r}`;e.attr("aria-describedby",t),e.insert("desc",":first-child").attr("id",t).text(n)}if(t){let n=`chart-title-${r}`;e.attr("aria-labelledby",n),e.insert("title",":first-child").attr("id",n).text(t)}}}(0,iU.p)(aM,"setA11yDiagramInfo"),(0,iU.p)(aD,"addSVGa11yTitleDescription");var aP=class e{constructor(e,t,n,r,i){this.type=e,this.text=t,this.db=n,this.parser=r,this.renderer=i}static{(0,iU.p)(this,"Diagram")}static async fromText(t,n={}){let r="string"==typeof t?{raw:t,cleaned:t}:t,i=(0,iB.N)(),l=(0,iB.n)(r.cleaned,i);try{(0,iB.e)(l)}catch{let e=(0,iB.x)(l);if(!e)throw new iB.y(`Diagram ${l} not found.`);let{id:t,diagram:n}=await e();(0,iB.U)(t,n)}let{db:o,parser:a,renderer:s,init:u}=(0,iB.e)(l);a.parser&&(a.parser.yy=o),o.clear?.(),u?.(i),n.title&&o.setDiagramTitle?.(n.title);let c=r.cleaned;if(o.preserveCommentsWhenParsing&&r.withComments){let e=i.maxTextSize??iB.f.maxTextSize;r.withComments.length>e?iH.d.warn(`Comment-preserving source exceeds maxTextSize (${r.withComments.length} > ${e}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`):c=r.withComments}let d=(0,i$.S)(c)+"\n";return r.frontmatterLineOffset&&o.setFrontmatterLineOffset?.(r.frontmatterLineOffset),await a.parse(d),new e(l,d,o,a,s)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},aI=[],aR=(0,iU.p)(()=>{aI.forEach(e=>{e()}),aI=[]},"attachFunctions"),aF=(0,iU.p)(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function aO(e){let t=(0,iB.S)(e);if(!t)return{text:e,metadata:{}};let n=t.indent,r=n?t.body.split("\n").map(e=>e.startsWith(n)?e.slice(n.length):e).join("\n"):t.body,i=(0,iR.z)(r,{schema:iR.Q})??{};i="object"!=typeof i||Array.isArray(i)?{}:i;let l={};return i.displayMode&&(l.displayMode=i.displayMode.toString()),i.title&&(l.title=i.title.toString()),i.config&&(l.config=i.config),{text:e.slice(t.length),metadata:l}}(0,iU.p)(aO,"extractFrontMatter");var a_=(0,iU.p)(e=>e.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(e,t,n)=>"<"+t+n.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),a$=(0,iU.p)(e=>{let{text:t,metadata:n}=aO(e),{displayMode:r,title:i,config:l={}}=n;return r&&(l.gantt||(l.gantt={}),l.gantt.displayMode=r),{title:i,config:l,text:t}},"processFrontmatter"),aB=(0,iU.p)(e=>{let t=i$.u.detectInit(e)??{},n=i$.u.detectDirective(e,"wrap");return Array.isArray(n)?t.wrap=n.some(({type:e})=>"wrap"===e):n?.type==="wrap"&&(t.wrap=!0),{text:(0,i$.k)(e),directive:t}},"processDirectives");function aH(e){let t=a_(e),n=a$(t),r=aB(n.text),i=(0,i$.z)(n.config,r.directive),l=r.text;return{code:{raw:e,cleaned:aF(l),withComments:l,frontmatterLineOffset:t.length>n.text.length?(t.substring(0,t.length-n.text.length).match(/\n/g)??[]).length:0},title:n.title,config:i}}function aU(e){return btoa(Array.from(new TextEncoder().encode(e),e=>String.fromCodePoint(e)).join(""))}(0,iU.p)(aH,"preprocessDiagram"),(0,iU.p)(aU,"toBase64");var aq=["foreignobject"],aV=["dominant-baseline"];function aW(e){let t,n=aH(e);(0,iB.X)();try{t=(0,iB.n)(n.code.cleaned,(0,iB.N)())}catch{t=void 0}return(0,iB.Y)(t),(0,iB.h)(n.config??{}),n}async function aJ(e,t){aT();try{let{code:t,config:n}=aW(e);return{diagramType:(await aP.fromText(t)).type,config:n}}catch(e){if(t?.suppressErrors)return!1;throw e}finally{(0,iB.Y)(void 0)}}(0,iU.p)(aW,"processAndSetConfigs"),(0,iU.p)(aJ,"parse");var aK=(0,iU.p)((e,t,n=[])=>{let r=(0,iB.u)(`{ ${n.join(" !important; ")} !important; }`);return`.${e} ${t} ${r}`},"cssImportantStyles"),aQ=(0,iU.p)((e,t=new Map)=>{let n=new CSSStyleSheet;if(void 0!==e.fontFamily&&n.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,n.cssRules.length),void 0!==e.altFontFamily&&n.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,n.cssRules.length),t instanceof Map){let r=(0,iB.o)(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(e=>{lh(e.styles)||r.forEach(t=>{n.insertRule(aK(e.id,t,e.styles),n.cssRules.length)}),lh(e.textStyles)||n.insertRule(aK(e.id,"tspan",(e?.textStyles||[]).map(e=>e.replace("color","fill"))),n.cssRules.length)})}let r="";if(void 0!==e.themeCSS)if("function"==typeof n.replaceSync){let t=new CSSStyleSheet;t.replaceSync(e.themeCSS),r=(0,iB.I)(t)+"\n"}else r+=`${e.themeCSS}
6
- `;return r+(0,iB.I)(n)},"createCssStyles"),aX=(0,iU.p)((e,t)=>{var n,r,i,l,o;return la((i=function e(t,n,r,i,l,o,a,s,u){for(var c,d,f,p,h=0,m=0,g=a,x=0,y=0,v=0,b=1,k=1,w=1,S=0,C=0,E="",j=l,A=o,z=i,N=E;k;)switch(v=C,C=lt()){case 40:108!=v&&58==i0(N,g-1)?(S++,N+="("):N+=li(C);break;case 41:S--,N+=")";break;case 34:case 39:case 91:N+=li(C);break;case 9:case 10:case 13:case 32:if(S>0){N+=iG(C);break}N+=function(e){for(;i8=ln();)if(i8<33)lt();else break;return lr(e)>2||lr(i8)>3?"":" "}(v);break;case 92:N+=function(e,t){for(var n;--t&&lt()&&!(i8<48)&&!(i8>102)&&(!(i8>57)||!(i8<65))&&(!(i8>70)||!(i8<97)););return n=i9+(t<6&&32==ln()&&32==lt()),i1(i7,e,n)}(i9-1,7);continue;case 47:switch(ln()){case 42:case 47:i4((c=function(e,t){for(;lt();)if(e+i8===57)break;else if(e+i8===84&&47===ln())break;return"/*"+i1(i7,t,i9-1)+"*"+iG(47===e?e:lt())}(lt(),i9),d=n,f=r,p=u,le(c,d,f,iW,iG(i8),i1(c,2,-2),0,p)),u),(5==lr(v||1)||5==lr(ln()||1))&&i2(N)&&" "!==i1(N,-1,void 0)&&(N+=" ");break;default:N+="/"}break;case 123*b:s[h++]=i2(N)*w;case 125*b:case 59:case 0:if(S>0&&C){N+=iG(C);break}switch(C){case 0:case 125:k=0;case 59+m:-1==w&&(N=iY(N,/\f/g,"")),y>0&&(i2(N)-g||0===b)&&i4(y>32?lo(N+";",i,r,g-1,u):lo(iY(N," ","")+";",i,r,g-2,u),u);break;case 59:N+=";";default:if(i4(z=ll(N,n,r,h,m,l,s,E,j=[],A=[],g,o),o),123===C)if(0===m)e(N,n,z,z,j,o,g,s,A);else{switch(x){case 99:if(110===i0(N,3))break;case 108:if(97===i0(N,2))break;default:m=0;case 100:case 109:case 115:}m?e(t,z,z,i&&i4(ll(t,z,z,0,0,l,s,E,l,j=[],g,A),A),l,A,g,s,i?j:A):e(N,z,z,z,[""],A,0,s,A)}}h=m=y=0,b=w=1,E=N="",g=a;break;case 58:g=1+i2(N),y=v;default:if(b<1){if(123==C)--b;else if(125==C&&0==b++&&125==(i8=i9>0?i0(i7,--i9):0,i5--,10===i8&&(i5=1,i3--),i8))continue}switch(N+=iG(C),C*b){case 38:w=m>0?1:(N+="\f",-1);break;case 44:if(S>0)break;s[h++]=(i2(N)-1)*w,w=1;break;case 64:45===ln()&&(N+=li(lt())),x=ln(),m=g=i2(E=N+=function(e){for(;!lr(ln());)lt();return i1(i7,e,i9)}(i9)),C++;break;case 45:45===v&&2==i2(N)&&(b=0)}}return o}("",null,null,null,[""],(r=n=`${e}{${t}}`,i3=i5=1,i6=i2(i7=r),i9=0,n=[]),0,[0],n),i7="",i),(o=(l=[(0,iU.p)(function(t,n,r,i){"rule"===t.type&&Array.isArray(t.props)?t.parent&&t.parent.type===iQ||(t.props=t.props.map(n=>n===e&&Array.isArray(t.children)&&t.children.every(e=>"decl"===e.type&&(new Set(["font-family","font-size","fill"])).has(e.props))||(n.startsWith(`${e} `)||n.startsWith(`${e}>`))&&!n.startsWith(`${e} ||`)?n:`${e} ${n}`)):t.type.startsWith("@")&&(["@media","@supports",iX,"@scope","@container","@starting-style",iQ].includes(t.type)||(iH.d.warn(`Removing unsupported at-rule ${t.type} from CSS`),t.type=iW))},"addNamespace"),ls]).length,function(e,t,n,r){for(var i="",a=0;a<o;a++)i+=l[a](e,t,n,r)||"";return i}))},"compileCSS"),aZ=(0,iU.p)((e,t,n,r)=>{let i=aQ(e,n),l=(0,iB.G)(t,i,{...e.themeVariables,theme:e.theme,look:e.look},r);return aX(r,l)},"createUserStyles"),aG=(0,iU.p)((e="",t,n)=>{let r=e;return n||t||(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=(r=(0,i$.Q)(r)).replace(/<br>/g,"<br/>")},"cleanUpSvgCode"),aY=(0,iU.p)((e="",t)=>{let n=t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+"px":"100%",r=aU(`<body style="margin:0">${e}</body>`);return`<iframe style="width:100%;height:${n};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${r}" sandbox="allow-top-navigation-by-user-activation allow-popups">
7
- The "iframe" tag is not supported by your browser.
8
- </iframe>`},"putIntoIFrame"),a0=(0,iU.p)((e,t,n,r,i)=>{let l=e.append("div");l.attr("id",n),r&&l.attr("style",r);let o=l.append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return i&&o.attr("xmlns:xlink",i),o.append("g"),e},"appendDivSvgG");function a1(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,iU.p)(a1,"sandboxedIframe");var a2=(0,iU.p)((e,t,n,r)=>{e.getElementById(t)?.remove(),e.getElementById(n)?.remove(),e.getElementById(r)?.remove()},"removeExistingElements"),a4=(0,iU.p)(async function(e,t,n){let r,i;aT();let l=aW(t),o=l.code;t=o.cleaned;let a=(0,iB.N)();iH.d.debug(a),t.length>(a?.maxTextSize??5e4)&&(o={raw:t="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",cleaned:t});let s=`#${e}`,u="i"+e,c="#"+u,d="d"+e,f="#"+d,p=(0,iU.p)(()=>{let e=m?c:f,t=(0,iV.f)(e).node();t&&"remove"in t&&t.remove()},"removeTempElements"),h=(0,iV.f)(document.body),m="sandbox"===a.securityLevel,g="loose"===a.securityLevel,x=a.fontFamily;if(void 0!==n){if(n&&(n.innerHTML=""),m){let e=a1((0,iV.f)(n),u);(h=(0,iV.f)(e.nodes()[0].contentDocument.body)).node().style.margin="0"}else h=(0,iV.f)(n);a0(h,e,d,`font-family: ${x}`,"http://www.w3.org/1999/xlink")}else{if(a2(document,e,d,u),m){let e=a1((0,iV.f)(document.body),u);(h=(0,iV.f)(e.nodes()[0].contentDocument.body)).node().style.margin="0"}else h=(0,iV.f)("body");a0(h,e,d)}try{r=await aP.fromText(o,{title:l.title})}catch(e){if(a.suppressErrorRendering)throw p(),e;r=await aP.fromText("error"),i=e,r.db.setErrorMessage?.((0,i$.Z)(e))}let y=h.select(f).node(),v=r.type,b=y.firstChild,k=b.firstChild,w=aZ(a,v,r.renderer.getClasses?.(t,r),s),S=document.createElement("style");S.innerHTML=w,b.insertBefore(S,k);try{await r.renderer.draw(t,e,"12.3.0",r)}catch(n){throw a.suppressErrorRendering?p():oa.draw(t,e,"12.3.0"),n}a9(v,h.select(`${f} svg`),r.db.getAccTitle?.(),r.db.getAccDescription?.());let C=(0,iU.p)(()=>{h.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let t=h.select(f).node().innerHTML;return iH.d.debug("config.arrowMarkerAbsolute",a.arrowMarkerAbsolute),t=aG(t,m,(0,iB.i)(a.arrowMarkerAbsolute)),m?t=aY(t,h.select(f+" svg").node()):g||(t=lu.f.sanitize(t,{ADD_TAGS:aq,ADD_ATTR:aV,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),aR(),t},"serializeSvg")();if(i)throw i;return p(),{diagramType:v,svg:C,bindFunctions:r.db.bindFunctions}},"renderDiagram"),a3=(0,iU.p)(async function(e,t,n){try{return await a4(e,t,n)}finally{(0,iB.Y)(void 0)}},"render");function a5(e={}){let t=(0,iB.L)({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),(0,iB.w)(t);let n=iB.t.theme;t?.theme&&Object.hasOwn(iB.K,t.theme)?t.themeVariables=iB.K[t.theme].getThemeVariables(t.themeVariables):t&&(null!=t.theme&&"null"!==t.theme&&(t.theme=n),t.themeVariables=iB.K[n].getThemeVariables(t.themeVariables));let r="object"==typeof t?(0,iB.J)(t):(0,iB._)();(0,iH.O)(r.logLevel),aT()}(0,iU.p)(a5,"initialize");var a6=(0,iU.p)((e,t={})=>{let{code:n}=aH(e);return aP.fromText(n,t)},"getDiagramFromText");function a9(e,t,n,r){aM(t,e),aD(t,n,r,t.attr("id"))}(0,iU.p)(a9,"addA11yInfo");var a8=Object.freeze({render:a3,parse:aJ,getDiagramFromText:a6,initialize:a5,getConfig:iB.N,setConfig:iB.H,getSiteConfig:iB._,updateSiteConfig:iB.Q,reset:(0,iU.p)(()=>{(0,iB.X)()},"reset"),globalReset:(0,iU.p)(()=>{(0,iB.X)(iB.t)},"globalReset"),defaultConfig:iB.t});(0,iH.O)((0,iB.N)().logLevel),(0,iB.X)((0,iB.N)());var a7=(0,iU.p)((e,t,n)=>{iH.d.warn(e),(0,i$.b)(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),se=(0,iU.p)(async function(e={querySelector:".mermaid"}){try{await st(e)}catch(t){if((0,i$.b)(t)&&iH.d.error(t.str),sp.parseError&&sp.parseError(t),!e.suppressErrors)throw iH.d.error("Use the suppressErrors option to suppress these errors"),t}},"run"),st=(0,iU.p)(async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:".mermaid"}){let r,i,l=a8.getConfig();if(iH.d.debug(`${!e?"No ":""}Callback function found`),n)r=n;else if(t)r=document.querySelectorAll(t);else throw Error("Nodes and querySelector are both undefined");iH.d.debug(`Found ${r.length} diagrams`),l?.startOnLoad!==void 0&&(iH.d.debug("Start On Load: "+l?.startOnLoad),a8.updateSiteConfig({startOnLoad:l?.startOnLoad}));let o=new i$.u.InitIDGenerator(l.deterministicIds,l.deterministicIDSeed),a=[];for(let t of Array.from(r)){if(iH.d.info("Rendering diagram: "+t.id),t.getAttribute("data-processed"))continue;t.setAttribute("data-processed","true");let n=`mermaid-${o.next()}`;i=t.innerHTML,i=(0,iq.f)(i$.u.entityDecode(i)).trim().replace(/<br\s*\/?>/gi,"<br/>");let r=i$.u.detectInit(i);r&&iH.d.debug("Detected early reinit: ",r);try{let{svg:r,bindFunctions:l}=await sd(n,i,t);t.innerHTML=r,e&&await e(n),l&&l(t)}catch(e){a7(e,a,sp.parseError)}}if(a.length>0)throw a[0]},"runThrowsErrors"),sn=(0,iU.p)(function(e){a8.initialize(e)},"initialize"),sr=(0,iU.p)(async function(e,t,n){iH.d.warn("mermaid.init is deprecated. Please use run instead."),e&&sn(e);let r={postRenderCallback:n,querySelector:".mermaid"};"string"==typeof t?r.querySelector=t:t&&(t instanceof HTMLElement?r.nodes=[t]:r.nodes=t),await se(r)},"init"),si=(0,iU.p)(async(e,{lazyLoad:t=!0}={})=>{aT(),(0,iB.$)(...e),!1===t&&await aL()},"registerExternalDiagrams"),sl=(0,iU.p)(function(){if(sp.startOnLoad){let{startOnLoad:e}=a8.getConfig();e&&sp.run().catch(e=>iH.d.error("Mermaid failed to initialize",e))}},"contentLoaded");"u">typeof document&&window.addEventListener("load",sl,!1);var so=(0,iU.p)(function(e){sp.parseError=e},"setParseErrorHandler"),sa=[],ss=!1,su=(0,iU.p)(async()=>{if(!ss){for(ss=!0;sa.length>0;){let e=sa.shift();if(e)try{await e()}catch(e){iH.d.error("Error executing queue",e)}}ss=!1}},"executeQueue"),sc=(0,iU.p)(async(e,t)=>new Promise((n,r)=>{let i=(0,iU.p)(()=>new Promise((i,l)=>{a8.parse(e,t).then(e=>{i(e),n(e)},e=>{iH.d.error("Error parsing",e),sp.parseError?.(e),l(e),r(e)})}),"performCall");sa.push(i),su().catch(r)}),"parse"),sd=(0,iU.p)((e,t,n)=>new Promise((r,i)=>{let l=(0,iU.p)(()=>new Promise((l,o)=>{a8.render(e,t,n).then(e=>{l(e),r(e)},e=>{iH.d.error("Error parsing",e),sp.parseError?.(e),o(e),i(e)})}),"performCall");sa.push(l),su().catch(i)}),"render"),sf=(0,iU.p)(()=>Object.keys(iB.k).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),sp={startOnLoad:!0,mermaidAPI:a8,parse:sc,render:sd,init:sr,run:se,registerExternalDiagrams:si,registerLayoutLoaders:iF.F,initialize:sn,parseError:void 0,contentLoaded:sl,setParseErrorHandler:so,detectType:iB.n,registerIconPacks:i_.z,getRegisteredDiagramsMetadata:sf};let sh=!1,sm=0;function sg({code:e}){let t=(0,r.useRef)(null),[i,l]=(0,r.useState)(null),[o,a]=(0,r.useState)(null),s=(0,r.useRef)(`mermaid-${++sm}`);return((0,r.useEffect)(()=>{let t=!1;return sh||(sh=!0,sp.initialize({startOnLoad:!1,theme:"default",securityLevel:"loose",fontFamily:"system-ui, sans-serif"})),(async()=>{try{let{svg:n}=await sp.render(s.current,e);t||(l(n),a(null))}catch(n){t||(a(n instanceof Error?n.message:"Mermaid render error"),l(null));let e=document.getElementById("d"+s.current);e?.remove()}})(),()=>{t=!0}},[e]),o)?(0,n.jsxs)("div",{className:"border border-red-200 bg-red-50 rounded p-3 text-xs text-red-700",children:[(0,n.jsx)("div",{className:"font-medium mb-1",children:"Mermaid エラー"}),(0,n.jsx)("pre",{className:"whitespace-pre-wrap",children:e})]}):i?(0,n.jsx)("div",{ref:t,className:"my-2 overflow-x-auto",dangerouslySetInnerHTML:{__html:i}}):(0,n.jsx)("div",{className:"text-xs text-[var(--text-muted)] py-2",children:"図を描画中..."})}var sx=e.i(47167);let sy=sx.default.env.NEXT_PUBLIC_BASE_PATH?.trim(),sv=sy&&"/"!==sy&&""!==sy?sy.replace(/\/$/,""):"";function sb(e){return e.startsWith("/")?sv+e:e}let sk=/^[ \t]*(`{3,}|~{3,})(.*)$/;function sw(e){return e.toLowerCase().replace(/[^\p{L}\p{N}\s-]/gu,"").replace(/\s+/g,"-").replace(/-+/g,"-").trim()}function sS(e){let t,n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style.position="fixed",n.style.top="0",n.style.left="0",n.style.opacity="0",document.body.appendChild(n),n.select();try{t=document.execCommand("copy")}catch{t=!1}return document.body.removeChild(n),t}function sC({id:e}){let[t,i]=(0,r.useState)(!1);return(0,n.jsx)("a",{href:`#${e}`,onClick:t=>{t.preventDefault();let n=new URL(window.location.href);n.hash=e;let r=n.toString();window.history.replaceState(null,"",r);let l=()=>{i(!0),window.setTimeout(()=>i(!1),1500)};window.isSecureContext&&navigator.clipboard?.writeText?navigator.clipboard.writeText(r).then(l).catch(()=>{sS(r)&&l()}):sS(r)&&l()},className:"ml-2 inline-flex items-center align-middle text-[var(--text-muted)] no-underline opacity-0 group-hover:opacity-100 focus:opacity-100 hover:text-[var(--brand-primary)] transition-opacity",title:t?"リンクをコピーしました":"このヘッダーへのリンクをコピー","aria-label":"このヘッダーへのリンクをコピー",children:t?(0,n.jsx)(iI,{size:13}):(0,n.jsx)(iD,{size:13})})}function sE({children:e,onHeadingsExtracted:t,fileRefs:i,currentPath:l,onNavigate:o,onPreviewShow:a,onPreviewHide:s,enableHeadingLinks:u=!1}){let c=(0,r.useMemo)(()=>(function(e){let t=[],n=new Map,r=/^(#{1,4})\s+(.+)$/,i=e.split("\n"),l=function(e){let t=Array(e.length).fill(!1),n=null;for(let r=0;r<e.length;r++){let i=sk.exec(e[r]);if(!i){t[r]=null!==n;continue}let l=i[1],o=l[0],a=i[2];if(null===n){if("`"===o&&a.includes("`"))continue;n={char:o,length:l.length},t[r]=!0;continue}o===n.char&&l.length>=n.length&&""===a.trim()&&(n=null),t[r]=!0}return t}(i);for(let e=0;e<i.length;e++){if(l[e])continue;let o=r.exec(i[e]);if(!o)continue;let a=o[1].length,s=o[2].replace(/[#*_`[\]]/g,"").trim(),u=sw(s)||"heading",c=n.get(u)??0;n.set(u,c+1);let d=0===c?u:`${u}-${c}`;t.push({id:d,text:s,level:a})}return t})(e),[e]),d=(0,r.useMemo)(()=>{let e=new Map;for(let t of c){let n=e.get(t.text)??[];n.push(t.id),e.set(t.text,n)}return e},[c]),f=(0,r.useMemo)(()=>new Map,[c]);(0,r.useEffect)(()=>{t?.(c)},[c,t]);let p=(0,r.useMemo)(()=>new Set((i??[]).map(e=>e.path)),[i]);function h(e){return function({children:t,className:r,...i}){let l=function(e){let t=d.get(e);if(!t)return sw(e)||"heading";let n=f.get(e)??0;return f.set(e,n+1),t[n%t.length]}("string"==typeof t?t:function e(t){return"string"==typeof t?t:"number"==typeof t?String(t):Array.isArray(t)?t.map(e).join(""):t&&"object"==typeof t&&"props"in t?e(t.props.children):""}(t)),o=u?`group scroll-mt-4${r?` ${r}`:""}`:r,a={...i,id:l,className:o},s=(0,n.jsxs)(n.Fragment,{children:[t,u&&(0,n.jsx)(sC,{id:l})]});switch(e){case 1:return(0,n.jsx)("h1",{...a,children:s});case 2:return(0,n.jsx)("h2",{...a,children:s});case 3:return(0,n.jsx)("h3",{...a,children:s});default:return(0,n.jsx)("h4",{...a,children:s})}}}let m={h1:h(1),h2:h(2),h3:h(3),h4:h(4),code:({className:e,children:t,...r})=>{if(/language-mermaid/.exec(e||"")){let e=String(t).replace(/\n$/,"");return(0,n.jsx)(sg,{code:e})}return(0,n.jsx)("code",{className:e,...r,children:t})},pre:({children:e})=>e&&"object"==typeof e&&"type"in e&&e.type===sg?(0,n.jsx)(n.Fragment,{children:e}):(0,n.jsx)("pre",{children:e}),a:({href:e,children:t,...r})=>{let i=e?function(e){let t,n=e.split("#")[0].split("?")[0].trim();if(!n||/^[a-z][a-z0-9+.-]*:/i.test(n)||n.startsWith("//"))return null;try{t=decodeURI(n)}catch{t=n}let r=l&&l.includes("/")?l.slice(0,l.lastIndexOf("/")):"",i=(t.startsWith("/")?t.slice(1):r?r+"/"+t:t).split("/"),o=[];for(let e of i)if(""!==e&&"."!==e){if(".."===e){o.pop();continue}o.push(e)}let a=o.join("/");return a?p.has(a)?a:p.has(a+"/README.md")?a+"/README.md":!/\.md$/i.test(a)&&p.has(a+".md")?a+".md":null:null}(e):null;return i?(0,n.jsx)("span",{className:"text-[var(--brand-primary)] font-medium cursor-pointer hover:underline transition-colors",onClick:e=>{e.preventDefault(),s?.(),o?.(i)},onMouseEnter:e=>{let t=e.target.getBoundingClientRect();a?.(i,t)},onMouseLeave:()=>s?.(),children:t}):(0,n.jsx)("a",{href:e,...r,children:t})},img:({src:e,alt:t,...r})=>{if("string"!=typeof e)return(0,n.jsx)("img",{src:e,alt:t,...r});let i=function(e){let t,n=e.split("#")[0].split("?")[0].trim();if(!n||/^[a-z][a-z0-9+.-]*:/i.test(n)||n.startsWith("//"))return null;try{t=decodeURI(n)}catch{t=n}let r=l&&l.includes("/")?l.slice(0,l.lastIndexOf("/")):"",i=(t.startsWith("/")?t.slice(1):r?r+"/"+t:t).split("/"),o=[];for(let e of i)if(""!==e&&"."!==e){if(".."===e){o.pop();continue}o.push(e)}return o.join("/")||null}(e);if(!i)return(0,n.jsx)("img",{src:e,alt:t,...r});let o=sb(`/api/asset?path=${encodeURIComponent(i)}`);return(0,n.jsx)("img",{src:o,alt:t,...r})}};return(0,n.jsx)("div",{className:"prose prose-sm max-w-none\n prose-headings:font-semibold prose-headings:tracking-tight prose-headings:text-[var(--text-primary)]\n prose-h1:text-lg prose-h1:leading-snug prose-h1:mb-4\n prose-h2:text-[15px] prose-h2:leading-snug prose-h2:border-b prose-h2:border-[var(--border-default)] prose-h2:pb-2 prose-h2:mt-8 prose-h2:mb-3\n prose-h3:text-[13px] prose-h3:leading-snug prose-h3:mt-6 prose-h3:mb-2\n prose-p:text-[var(--text-secondary)] prose-p:text-[13px] prose-p:leading-[1.75]\n prose-li:text-[var(--text-secondary)] prose-li:text-[13px] prose-li:leading-[1.75]\n prose-strong:text-[var(--text-primary)] prose-strong:font-semibold\n prose-a:text-[var(--brand-primary)] prose-a:font-medium prose-a:no-underline hover:prose-a:underline\n prose-code:text-xs prose-code:text-[var(--text-primary)] prose-code:bg-[var(--bg-muted)] prose-code:px-1 prose-code:py-0.5 prose-code:rounded prose-code:before:content-none prose-code:after:content-none\n prose-pre:bg-[var(--bg-muted)] prose-pre:text-xs prose-pre:text-[var(--text-primary)]\n prose-table:text-[12px]\n prose-th:bg-[var(--bg-muted)] prose-th:text-[var(--text-primary)] prose-th:font-semibold prose-th:px-3 prose-th:py-1.5 prose-th:text-left\n prose-td:px-3 prose-td:py-1.5 prose-td:border-[var(--border-default)] prose-td:text-[var(--text-secondary)]\n prose-hr:border-[var(--border-default)]\n prose-blockquote:border-l-[var(--brand-primary)] prose-blockquote:text-[var(--text-muted)] prose-blockquote:not-italic\n prose-img:rounded-lg\n ",children:(0,n.jsx)(re,{remarkPlugins:[iL],components:m,children:e})})}let sj={name:"git-commit-horizontal",size:24,node:[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]],aliases:["git-commit"]};sj.node;let sA=s(sj);function sz({filePath:e,hash:t}){let[i,l]=(0,r.useState)(null);return((0,r.useEffect)(()=>{l(null),fetch(sb(`/api/diff?path=${encodeURIComponent(e)}&hash=${t}`)).then(e=>e.json()).then(e=>l(e.diff)).catch(()=>l("(差分を取得できませんでした)"))},[e,t]),null===i)?(0,n.jsx)("div",{className:"text-[12px] text-[var(--text-muted)] py-2",children:"差分を読み込み中..."}):(0,n.jsx)("pre",{className:"text-[11px] font-[var(--font-mono)] bg-[var(--bg-muted)] rounded-lg p-3 overflow-x-auto leading-[1.7] border border-[var(--border-default)]",children:i.split("\n").filter(e=>!e.startsWith("diff --git")&&!e.startsWith("index ")&&!e.startsWith("new file")&&!e.startsWith("deleted file")&&!e.startsWith("similarity")&&!e.startsWith("rename ")&&!e.startsWith("old mode")&&!e.startsWith("new mode")).map((e,t)=>{let r="var(--text-secondary)",i="transparent";return e.startsWith("+")&&!e.startsWith("+++")?(r="var(--add-color)",i="var(--add-bg)"):e.startsWith("-")&&!e.startsWith("---")?(r="var(--del-color)",i="var(--del-bg)"):e.startsWith("@@")&&(r="var(--brand-primary)"),(0,n.jsx)("div",{style:{color:r,backgroundColor:i},className:"px-1 -mx-1 rounded-sm",children:e},t)})})}let sN=0,sT=new Set,sL=null,sM=null;function sD(){for(let e of(sN++,sT))e(sN)}function sP(){let[e,t]=(0,r.useState)(sN);return(0,r.useEffect)(()=>{!function(){if(!sL){try{sL=new EventSource(sb("/api/watch"))}catch{return}sL.addEventListener("change",()=>{sM&&clearTimeout(sM),sM=setTimeout(sD,150)})}}();let e=e=>t(e);return sT.add(e),()=>{sT.delete(e)}},[]),e}function sI({filePath:e}){let[t,i]=(0,r.useState)([]),[l,o]=(0,r.useState)(!0),[a,s]=(0,r.useState)(null),u=sP();return((0,r.useEffect)(()=>{o(!0),s(null),fetch(sb(`/api/history?path=${encodeURIComponent(e)}`)).then(e=>e.json()).then(e=>{i(e),o(!1)}).catch(()=>o(!1))},[e,u]),l)?(0,n.jsx)("div",{className:"p-4 text-[var(--text-muted)] text-[13px]",children:"読み込み中..."}):0===t.length?(0,n.jsx)("div",{className:"p-4 text-[var(--text-muted)] text-[13px]",children:"変更履歴がありません(git 管理外の可能性)"}):(0,n.jsx)("div",{className:"divide-y divide-[var(--border-default)]",children:t.map(t=>{let r=a===t.hash;return(0,n.jsxs)("div",{children:[(0,n.jsx)("button",{onClick:()=>s(r?null:t.hash),className:"w-full text-left px-4 py-3 hover:bg-[var(--bg-hover)] transition-colors",children:(0,n.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,n.jsx)(sA,{size:13,className:"text-[var(--text-muted)] mt-0.5 shrink-0"}),(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"text-[11px] font-[var(--font-mono)] text-[var(--brand-primary)] leading-none",children:t.hashShort}),(0,n.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] leading-none",children:new Date(t.date).toLocaleString("ja-JP",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}),t.author&&(0,n.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] leading-none",children:t.author})]}),(0,n.jsx)("p",{className:"text-[12px] text-[var(--text-secondary)] mt-1 leading-snug line-clamp-2",children:t.message})]}),(0,n.jsx)("span",{className:"text-[var(--text-muted)] shrink-0 mt-0.5",children:r?(0,n.jsx)(c,{size:13}):(0,n.jsx)(f,{size:13})})]})}),r&&(0,n.jsx)("div",{className:"px-4 pb-3",children:(0,n.jsx)(sz,{filePath:e,hash:t.hash})})]},t.hash)})})}function sR({headings:e,scrollContainer:t}){let[i,l]=(0,r.useState)(null),o=(0,r.useRef)(null);(0,r.useEffect)(()=>{if(!t||0===e.length)return;o.current?.disconnect();let n=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&l(t.target.id)},{root:t,rootMargin:"0px 0px -70% 0px",threshold:.1});for(let t of(o.current=n,e)){let e=document.getElementById(t.id);e&&n.observe(e)}return()=>n.disconnect()},[e,t]);let a=(0,r.useCallback)(e=>{let t=document.getElementById(e);if(t){t.scrollIntoView({behavior:"smooth",block:"start"}),l(e);{let t=new URL(window.location.href);t.hash=e,window.history.replaceState(null,"",t.toString())}}},[]);return 0===e.length?null:(0,n.jsxs)("nav",{className:"py-3 px-2 space-y-px",children:[(0,n.jsx)("div",{className:"text-[10px] font-medium text-[var(--text-muted)] tracking-wider uppercase px-1.5 mb-1.5",children:"目次"}),e.map(e=>(0,n.jsx)("button",{onClick:()=>a(e.id),className:`block w-full text-left text-[11px] leading-relaxed py-0.5 truncate transition-colors rounded px-1.5 ${i===e.id?"text-[var(--brand-primary)] font-medium bg-blue-50":"text-[var(--text-muted)] hover:text-[var(--text-secondary)] hover:bg-[var(--bg-hover)]"}`,style:{paddingLeft:`${(e.level-1)*10+6}px`},title:e.text,children:e.text},e.id))]})}let sF={name:"external-link",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]};sF.node;let sO=s(sF);function s_({path:e,position:t,onNavigate:i,onMouseEnter:l,onMouseLeave:o,fileRefs:a,depth:s=0}){let[u,c]=(0,r.useState)(null),[d,f]=(0,r.useState)(!1),p=(0,r.useRef)(null),[h,m]=(0,r.useState)(null),[g,x]=(0,r.useState)(null),[y,v]=(0,r.useState)(null),b=(0,r.useRef)(null),k=(0,r.useRef)(null),w=sP();(0,r.useEffect)(()=>{if(b.current&&clearTimeout(b.current),k.current&&clearTimeout(k.current),!e){c(null),x(null),v(null);return}f(!0),c(null),x(null),v(null),fetch(sb(`/api/file?path=${encodeURIComponent(e)}`)).then(e=>e.json()).then(e=>c(e.content??null)).catch(()=>c(null)).finally(()=>f(!1))},[e,w]),(0,r.useEffect)(()=>{if(!t||!p.current)return void m(t);let e=p.current.getBoundingClientRect(),n=window.innerWidth,r=window.innerHeight,{x:i,y:l}=t;i+e.width>n-16&&(i=n-e.width-16),i<16&&(i=16),l+e.height>r-16&&(l=t.y-e.height-8),m({x:i,y:l})},[t,u]);let S=(0,r.useCallback)((e,t)=>{s>=3||(k.current&&clearTimeout(k.current),b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{x(e),v({x:t.right+8,y:t.top})},200))},[s]),C=(0,r.useCallback)(()=>{b.current&&clearTimeout(b.current),k.current&&clearTimeout(k.current),k.current=setTimeout(()=>{x(null),v(null)},300)},[]),E=(0,r.useCallback)(()=>{k.current&&clearTimeout(k.current),l()},[l]),j=(0,r.useCallback)(()=>{C(),o()},[C,o]);if(!e||!t)return null;let A=e.split("/").pop()?.replace(/\.md$/i,"")||e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{ref:p,onMouseEnter:l,onMouseLeave:()=>{o(),C()},className:"fixed bg-[var(--bg-surface)] border border-[var(--border-default)] rounded-lg shadow-xl w-[min(480px,30vw)] max-h-[min(420px,30vh)] overflow-y-auto",style:{left:h?.x??t.x,top:h?.y??t.y,zIndex:50+s},children:[(0,n.jsx)("div",{className:"sticky top-0 bg-[var(--bg-surface)] border-b border-[var(--border-default)] px-3 py-2 flex items-center gap-2",children:(0,n.jsxs)("button",{onClick:()=>i(e),className:"text-xs font-medium text-[var(--brand-primary)] hover:underline truncate flex items-center gap-1",children:[A,(0,n.jsx)(sO,{size:10})]})}),(0,n.jsx)("div",{className:"p-3",children:d?(0,n.jsx)("div",{className:"text-xs text-[var(--text-muted)]",children:"読み込み中..."}):u?(0,n.jsx)("div",{className:"text-[11px]",children:(0,n.jsx)(sE,{fileRefs:a,currentPath:e,onNavigate:i,onPreviewShow:S,onPreviewHide:C,children:u})}):(0,n.jsx)("div",{className:"text-xs text-[var(--text-muted)]",children:"プレビューを表示できません"})})]}),(0,n.jsx)(s_,{path:g,position:y,onNavigate:i,onMouseEnter:E,onMouseLeave:j,fileRefs:a,depth:s+1})]})}var s$=e.i(77871),sB=e.i(45108);let sH={name:"funnel",size:24,node:[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],aliases:["filter"]};sH.node;let sU=s(sH);s$.f.use(sB.default);let sq="markshelf:linkGraphDepth",sV="markshelf:linkGraphExclude",sW="markshelf:linkGraphZoom",sJ=[{value:1,label:"1階層"},{value:2,label:"2階層"},{value:3,label:"3階層"},{value:1/0,label:"全階層"}];function sK({currentPath:e,folders:t,onNavigate:i,onPreviewShow:l,onPreviewHide:o}){let a=(0,r.useRef)(null),s=(0,r.useRef)(null),u=(0,r.useRef)(null),[c,d]=(0,r.useState)(!0),[f,p]=(0,r.useState)(!1),[h,m]=(0,r.useState)(!1),[g,x]=(0,r.useState)(1),[y,v]=(0,r.useState)([]),[b,k]=(0,r.useState)(!1),w=sP();(0,r.useEffect)(()=>{let e=localStorage.getItem(sq);if(null===e)return;let t="all"===e?1/0:Number(e);(Number.isFinite(t)||1/0===t)&&x(t)},[]),(0,r.useEffect)(()=>{let e=localStorage.getItem(sV);if(e)try{let t=JSON.parse(e);Array.isArray(t)&&v(t.filter(e=>"string"==typeof e))}catch{}},[]),(0,r.useEffect)(()=>{if(0===t.length)return;let e=new Set(t.map(e=>e.path));v(t=>{let n=t.filter(t=>e.has(t));return n.length===t.length?t:(localStorage.setItem(sV,JSON.stringify(n)),n)})},[t]),(0,r.useEffect)(()=>{if(!b)return;let e=e=>{u.current&&!u.current.contains(e.target)&&k(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[b]);let S=(0,r.useMemo)(()=>{let t=y.map(e=>e+"/"),n=y.some(t=>e===t||e.startsWith(t+"/"));return r=>!n&&r!==e&&t.some(e=>r.startsWith(e))},[y,e]),C=(0,r.useRef)(i),E=(0,r.useRef)(l),j=(0,r.useRef)(o);return(0,r.useEffect)(()=>{C.current=i,E.current=l,j.current=o}),(0,r.useEffect)(()=>{let t=!1;return d(!0),p(!1),m(!1),fetch(sb("/api/graph")).then(e=>e.json()).then(n=>{let r;if(t||!a.current)return;let i=n.nodes.filter(e=>!S(e.id)),l=n.edges.filter(e=>!S(e.source)&&!S(e.target)),o=new Map;for(let e of l)(o.get(e.source)??o.set(e.source,[]).get(e.source)).push(e.target),(o.get(e.target)??o.set(e.target,[]).get(e.target)).push(e.source);let u=new Set([e]),c=[[e,0]];for(;c.length>0;){let[e,t]=c.shift();if(!(t>=g))for(let n of o.get(e)??[])u.has(n)||(u.add(n),c.push([n,t+1]))}let f=i.filter(e=>u.has(e.id)),h=l.filter(e=>u.has(e.source)&&u.has(e.target)),x=new Set(h.map(e=>`${e.source}\0${e.target}`)),y=new Set,v=[];for(let e of h){let t=e.source<e.target?`${e.source}\0${e.target}`:`${e.target}\0${e.source}`,n=x.has(`${e.target}\0${e.source}`),r=n?t:`${e.source}\0${e.target}`;y.has(r)||(y.add(r),v.push({source:e.source,target:e.target,mutual:n}))}if(0===f.length){p(!0),d(!1);return}s.current?.destroy();let b=Math.random;Math.random=function(e){let t=0x811c9dc5;for(let n=0;n<e.length;n++)t=Math.imul(t^e.charCodeAt(n),0x1000193);return()=>{let e=Math.imul((t=t+0x6d2b79f5|0)^t>>>15,1|t);return(((e=e+Math.imul(e^e>>>7,61|e)^e)^e>>>14)>>>0)/0x100000000}}(e);try{r=(0,s$.f)({container:a.current,elements:[...f.map(t=>({data:{id:t.id,label:t.label,isCurrent:t.id===e}})),...v.map((e,t)=>({data:{id:`e${t}`,source:e.source,target:e.target,mutual:e.mutual}}))],style:[{selector:"node",style:{label:"data(label)","text-valign":"bottom","text-halign":"center","font-size":"11px","font-family":"var(--font-sans)",color:"#4a5060","text-margin-y":6,"background-color":"#e8f0fe","border-width":2,"border-color":"#3b7ddb",width:28,height:28,"text-max-width":"180px","text-wrap":"ellipsis",cursor:"pointer"}},{selector:"node[?isCurrent]",style:{"background-color":"#2563eb","border-color":"#1d4ed8",color:"#1a1d23","font-weight":"bold",width:36,height:36}},{selector:"edge",style:{width:1.5,"line-color":"#c8ccd3","target-arrow-color":"#c8ccd3","target-arrow-shape":"triangle","curve-style":"bezier","arrow-scale":.8}},{selector:"edge[?mutual]",style:{width:2,"line-color":"#8fb0e8","target-arrow-color":"#8fb0e8","source-arrow-color":"#8fb0e8","source-arrow-shape":"triangle"}},{selector:"node:active",style:{"overlay-opacity":0}}],layout:{name:"fcose",animate:!1,randomize:!0,quality:"proof",padding:50,nodeDimensionsIncludeLabels:!0,idealEdgeLength:120,nodeRepulsion:12e3,nodeSeparation:100},userZoomingEnabled:!0,userPanningEnabled:!0,boxSelectionEnabled:!1,autoungrabify:!1})}finally{Math.random=b}requestAnimationFrame(()=>{r.resize();let e=Number(localStorage.getItem(sW));Number.isFinite(e)&&e>0?r.zoom({level:e,renderedPosition:{x:a.current.clientWidth/2,y:a.current.clientHeight/2}}):(r.fit(void 0,50),r.zoom()>.9&&r.zoom({level:.9,renderedPosition:{x:a.current.clientWidth/2,y:a.current.clientHeight/2}})),r.center(r.nodes("[?isCurrent]")),m(!0)});let k=null;r.on("zoom",()=>{k&&clearTimeout(k),k=setTimeout(()=>{localStorage.setItem(sW,String(r.zoom()))},200)}),r.on("mouseover","node",e=>{let t=e.target;t.data("isCurrent")||t.style({"background-color":"#dbeafe","border-color":"#2563eb",color:"#1a1d23"}),a.current.style.cursor="pointer";let n=t.id();if(E.current&&a.current){let e=t.renderedBoundingBox(),r=a.current.getBoundingClientRect(),i=r.left+e.x1,l=r.top+e.y1,o={left:i,top:l,right:r.left+e.x2,bottom:r.top+e.y2,width:e.w,height:e.h,x:i,y:l,toJSON:()=>({})};E.current(n,o)}}),r.on("mouseout","node",e=>{let t=e.target;t.data("isCurrent")||t.style({"background-color":"#e8f0fe","border-color":"#3b7ddb",color:"#4a5060"}),a.current.style.cursor="default",j.current?.()}),r.on("tap","node",t=>{let n=t.target.id();n!==e&&C.current(n)}),s.current=r,d(!1)}).catch(()=>{t||(p(!0),d(!1))}),()=>{t=!0,s.current?.destroy(),s.current=null}},[e,g,S,w]),(0,n.jsxs)("div",{className:"h-full flex flex-col relative",children:[(0,n.jsxs)("div",{className:"flex items-center gap-1.5 px-3 py-2 shrink-0",children:[(0,n.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] mr-1",children:"表示範囲"}),sJ.map(e=>{let t=g===e.value;return(0,n.jsx)("button",{onClick:()=>{var t;x(t=e.value),localStorage.setItem(sq,1/0===t?"all":String(t))},className:`px-2 py-0.5 rounded-md text-[11px] font-medium transition-colors ${t?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:e.label},e.label)}),(0,n.jsxs)("div",{className:"ml-auto relative",ref:u,children:[(0,n.jsxs)("button",{onClick:()=>k(e=>!e),className:`flex items-center gap-1 px-2 py-0.5 rounded-md text-[11px] font-medium transition-colors ${y.length>0?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,title:"フォルダを除外",children:[(0,n.jsx)(sU,{size:11}),"除外",y.length>0&&(0,n.jsxs)("span",{className:"ml-0.5",children:["(",y.length,")"]})]}),b&&(0,n.jsx)("div",{className:"absolute right-0 top-full mt-1 w-56 max-h-72 overflow-y-auto bg-[var(--bg-surface)] border border-[var(--border-default)] rounded-md shadow-lg z-20 py-1",children:0===t.length?(0,n.jsx)("div",{className:"px-3 py-2 text-[11px] text-[var(--text-muted)]",children:"フォルダがありません"}):t.map(e=>{let t=y.includes(e.path);return(0,n.jsxs)("label",{className:"flex items-center gap-2 px-3 py-1 text-[12px] cursor-pointer hover:bg-[var(--bg-muted)]",style:{paddingLeft:`${12+12*e.depth}px`},children:[(0,n.jsx)("input",{type:"checkbox",checked:t,onChange:()=>{var t;return t=e.path,void v(e=>{let n=e.includes(t)?e.filter(e=>e!==t):[...e,t];return localStorage.setItem(sV,JSON.stringify(n)),n})},className:"shrink-0"}),(0,n.jsx)("span",{className:"truncate text-[var(--text-secondary)]",children:e.displayName})]},e.path)})})]})]}),(c||f)&&(0,n.jsx)("div",{className:"absolute inset-0 flex items-center justify-center text-[13px] text-[var(--text-muted)] z-10 bg-[var(--bg-surface)]",children:c?"グラフを構築中...":"このドキュメントへのリンクはありません"}),(0,n.jsx)("div",{ref:a,className:"flex-1 min-h-0 transition-opacity duration-150",style:{opacity:+!!h}})]})}let sQ={name:"rotate-ccw-clock",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],aliases:["history"]};sQ.node;let sX=s(sQ),sZ={name:"network",size:24,node:[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]};sZ.node;let sG=s(sZ),sY={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};sY.node;let s0=s(sY),s1={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};s1.node;let s2=s(s1);function s4({filePath:e,fileRefs:t,folders:i,onNavigate:l,onGoBack:o,onGoForward:a,canGoBack:s,canGoForward:u}){let[c,d]=(0,r.useState)(null),[f,p]=(0,r.useState)("content"),[h,m]=(0,r.useState)([]),[x,y]=(0,r.useState)(()=>{{let e=localStorage.getItem("markshelf:tocWidth");return e&&Number(e)||176}}),v=(0,r.useRef)(null),b=(0,r.useRef)(null),[k,C]=(0,r.useState)(null),[E,j]=(0,r.useState)(null),A=(0,r.useRef)(null),z=(0,r.useRef)(null),N=sP(),T=w.test(e),L=S.test(e);(0,r.useEffect)(()=>{d(null),m([]),A.current&&clearTimeout(A.current),z.current&&clearTimeout(z.current),C(null),j(null)},[e]),(0,r.useEffect)(()=>{T||L||fetch(sb(`/api/file?path=${encodeURIComponent(e)}`)).then(e=>e.json()).then(e=>d(e.content??null)).catch(()=>d(null))},[e,T,L,N]);let M=(0,r.useRef)(null);(0,r.useEffect)(()=>{M.current=null},[e]),(0,r.useEffect)(()=>{if("content"!==f||null===c||0===h.length)return;let t=window.location.hash.replace(/^#/,"");if(!t)return;let n=t;try{n=decodeURIComponent(t)}catch{}let r=`${e}#${n}`;if(M.current===r||!h.some(e=>e.id===n))return;let i=requestAnimationFrame(()=>{let e=v.current,t=document.getElementById(n);if(!e||!t)return;let i=e.getBoundingClientRect(),l=t.getBoundingClientRect();e.scrollTop+=l.top-i.top-16,M.current=r});return()=>cancelAnimationFrame(i)},[f,c,h,e]);let D=(0,r.useCallback)((e,t)=>{z.current&&clearTimeout(z.current),A.current&&clearTimeout(A.current),A.current=setTimeout(()=>{C(e),j({x:t.left,y:t.bottom+4})},200)},[]),P=(0,r.useCallback)(()=>{A.current&&clearTimeout(A.current),z.current&&clearTimeout(z.current),z.current=setTimeout(()=>{C(null),j(null)},300)},[]),I=(0,r.useCallback)(()=>{z.current&&clearTimeout(z.current)},[]),R=(0,r.useCallback)(()=>{P()},[P]),F=(0,r.useCallback)(e=>{e.preventDefault(),document.body.style.userSelect="none",document.body.style.cursor="col-resize";let t=b.current?.parentElement,n=e=>{if(!t)return;let n=Math.max(120,Math.min(400,t.getBoundingClientRect().right-e.clientX));y(n),localStorage.setItem("markshelf:tocWidth",String(n))},r=()=>{document.body.style.userSelect="",document.body.style.cursor="",document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r)};document.addEventListener("mousemove",n),document.addEventListener("mouseup",r)},[]),O=e.split("/").pop()?.replace(/\.md$/i,"")||e,_=sb(`/api/raw/${e.split("/").map(encodeURIComponent).join("/")}`);return(0,n.jsxs)("div",{className:"flex flex-col h-full",children:[(0,n.jsxs)("div",{className:"border-b border-[var(--border-default)] px-4 py-2.5 shrink-0",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[s&&(0,n.jsx)("button",{onClick:o,className:"shrink-0 p-0.5 rounded hover:bg-[var(--bg-muted)] text-[var(--text-muted)] hover:text-[var(--text-secondary)] transition-colors",title:"戻る",children:(0,n.jsx)(s0,{size:14})}),u&&(0,n.jsx)("button",{onClick:a,className:"shrink-0 p-0.5 rounded hover:bg-[var(--bg-muted)] text-[var(--text-muted)] hover:text-[var(--text-secondary)] transition-colors",title:"進む",children:(0,n.jsx)(s2,{size:14})}),(0,n.jsx)("h2",{className:"font-semibold text-[14px] leading-snug truncate text-[var(--text-primary)]",children:O})]}),(0,n.jsxs)("div",{className:"flex gap-1",children:[(0,n.jsxs)("button",{onClick:()=>p("content"),className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[12px] font-medium transition-colors ${"content"===f?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:[(0,n.jsx)(g,{size:12}),"内容"]}),(0,n.jsxs)("button",{onClick:()=>p("history"),className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[12px] font-medium transition-colors ${"history"===f?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:[(0,n.jsx)(sX,{size:12}),"変更履歴"]}),(0,n.jsxs)("button",{onClick:()=>p("links"),className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[12px] font-medium transition-colors ${"links"===f?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:[(0,n.jsx)(sG,{size:12}),"リンク"]})]})]}),"content"===f&&T?(0,n.jsx)("div",{className:"flex-1 overflow-hidden bg-white",children:(0,n.jsx)("iframe",{src:_,title:O,sandbox:"allow-scripts allow-popups",className:"w-full h-full border-0"},N)}):"content"===f&&L?(0,n.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,n.jsx)("iframe",{src:_,title:O,className:"w-full h-full border-0"},N)}):"content"===f?null!==c?(0,n.jsxs)("div",{className:"flex-1 flex overflow-hidden",children:[(0,n.jsx)("div",{className:"flex-1 overflow-y-auto",ref:v,children:(0,n.jsx)("div",{className:"p-4",children:(0,n.jsx)(sE,{enableHeadingLinks:!0,onHeadingsExtracted:m,fileRefs:t,currentPath:e,onNavigate:e=>{p("content"),l?.(e)},onPreviewShow:D,onPreviewHide:P,children:c})})}),h.length>0&&(0,n.jsxs)("div",{className:"flex shrink-0",ref:b,children:[(0,n.jsx)("div",{className:"w-1 hover:bg-[var(--brand-primary)] bg-[var(--border-default)] cursor-col-resize shrink-0 transition-colors duration-150",onMouseDown:F}),(0,n.jsx)("div",{className:"overflow-y-auto border-l border-[var(--border-default)]",style:{width:x},children:(0,n.jsx)(sR,{headings:h,scrollContainer:v.current})})]})]}):(0,n.jsx)("div",{className:"flex-1 p-4 text-[var(--text-muted)] text-sm",children:"読み込み中..."}):"history"===f?(0,n.jsx)("div",{className:"flex-1 overflow-y-auto",ref:v,children:(0,n.jsx)(sI,{filePath:e})}):(0,n.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,n.jsx)(sK,{currentPath:e,folders:i??[],onNavigate:e=>l?.(e),onPreviewShow:D,onPreviewHide:P})}),(0,n.jsx)(s_,{path:k,position:E,onNavigate:e=>{C(null),j(null),p("content"),l?.(e)},onMouseEnter:I,onMouseLeave:R,fileRefs:t})]})}let s3={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};s3.node;let s5=s(s3),s6={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};s6.node;let s9=s(s6);function s8({onSelect:e}){let[t,i]=(0,r.useState)(""),[l,o]=(0,r.useState)([]),[a,s]=(0,r.useState)(!1),[u,c]=(0,r.useState)(!1),d=(0,r.useRef)(null),f=(0,r.useRef)(null),p=(0,r.useRef)(null),h=(0,r.useCallback)(e=>{if(!e.trim()){o([]),c(!1);return}s(!0),fetch(sb(`/api/search?q=${encodeURIComponent(e.trim())}`)).then(e=>e.json()).then(e=>{o(e.results??[]),c(!0)}).catch(()=>o([])).finally(()=>s(!1))},[]);return(0,r.useEffect)(()=>{let e=e=>{"Escape"===e.key&&(c(!1),f.current?.blur())},t=e=>{p.current&&!p.current.contains(e.target)&&c(!1)};return window.addEventListener("keydown",e),document.addEventListener("mousedown",t),()=>{window.removeEventListener("keydown",e),document.removeEventListener("mousedown",t)}},[]),(0,n.jsxs)("div",{ref:p,className:"relative px-4 pt-4 pb-2",children:[(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)(s5,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-[var(--text-muted)]"}),(0,n.jsx)("input",{ref:f,type:"text",value:t,onChange:e=>{var t;i(t=e.target.value),d.current&&clearTimeout(d.current),d.current=setTimeout(()=>h(t),300)},onFocus:()=>{l.length>0&&c(!0)},placeholder:"ドキュメントを検索...",className:"w-full pl-8 pr-8 py-1.5 text-[12px] leading-normal rounded-md border border-[var(--border-default)] bg-[var(--bg-surface)] text-[var(--text-primary)] placeholder:text-[var(--text-muted)] focus:outline-none focus:ring-1 focus:ring-[var(--brand-primary)] focus:border-[var(--brand-primary)] transition-shadow"}),t&&(0,n.jsx)("button",{onClick:()=>{i(""),o([]),c(!1),f.current?.focus()},className:"absolute right-2 top-1/2 -translate-y-1/2 text-[var(--text-muted)] hover:text-[var(--text-secondary)]",children:(0,n.jsx)(s9,{size:14})})]}),u&&(0,n.jsx)("div",{className:"absolute left-4 right-4 top-full mt-1 z-40 bg-[var(--bg-surface)] border border-[var(--border-default)] rounded-lg shadow-lg max-h-80 overflow-y-auto",children:a?(0,n.jsx)("div",{className:"p-3 text-xs text-[var(--text-muted)] text-center",children:"検索中..."}):0===l.length?(0,n.jsx)("div",{className:"p-3 text-xs text-[var(--text-muted)] text-center",children:"該当するドキュメントが見つかりません"}):l.map(r=>(0,n.jsxs)("button",{onClick:()=>{e(r.path),c(!1)},className:"w-full text-left px-3 py-2 hover:bg-[var(--bg-muted)] border-b border-[var(--border-default)] last:border-b-0 transition-colors",children:[(0,n.jsx)("div",{className:"text-[12px] font-medium text-[var(--text-primary)] truncate leading-snug",children:r.displayName}),(0,n.jsx)("div",{className:"text-[10px] text-[var(--text-muted)] font-[var(--font-mono)] truncate mb-1 leading-normal",children:r.path}),r.matches.slice(0,2).map(e=>(0,n.jsxs)("div",{className:"text-[10px] text-[var(--text-secondary)] truncate leading-relaxed",children:[(0,n.jsxs)("span",{className:"text-[var(--text-muted)] mr-1",children:["L",e.line]}),(0,n.jsx)(s7,{text:e.text,query:t})]},e.line))]},r.path))})]})}function s7({text:e,query:t}){if(!t.trim())return(0,n.jsx)(n.Fragment,{children:e});let r=e.toLowerCase().indexOf(t.toLowerCase());if(-1===r)return(0,n.jsx)(n.Fragment,{children:e});let i=e.slice(0,r),l=e.slice(r,r+t.length),o=e.slice(r+t.length);return(0,n.jsxs)(n.Fragment,{children:[i,(0,n.jsx)("span",{className:"bg-yellow-200 text-yellow-900 rounded px-0.5",children:l}),o]})}let ue={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};ue.node;let ut=s(ue);function un({onNavigate:e,onClose:t}){let[i,l]=(0,r.useState)([]),[o,a]=(0,r.useState)(!0),[s,u]=(0,r.useState)(null),[d,p]=(0,r.useState)(null),h=sP();(0,r.useEffect)(()=>{a(!0),fetch(sb("/api/timeline")).then(e=>e.json()).then(e=>{l(e.entries??[]),a(!1)}).catch(()=>a(!1))},[h]),(0,r.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[t]);let m=new Map;for(let e of i){let t=new Date(e.date).toLocaleDateString("ja-JP",{year:"numeric",month:"2-digit",day:"2-digit"}),n=m.get(t)??[];n.push(e),m.set(t,n)}return(0,n.jsx)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/40 backdrop-blur-sm",onClick:t,children:(0,n.jsxs)("div",{className:"bg-[var(--bg-surface)] rounded-lg shadow-2xl w-[90vw] max-w-4xl h-[85vh] flex flex-col overflow-hidden border border-[var(--border-default)]",onClick:e=>e.stopPropagation(),children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 px-5 py-3 border-b border-[var(--border-default)] shrink-0",children:[(0,n.jsx)(ut,{size:14,className:"text-[var(--brand-primary)]"}),(0,n.jsx)("h2",{className:"font-semibold text-[14px] text-[var(--text-primary)]",children:"変更タイムライン"}),(0,n.jsx)("span",{className:"text-[11px] text-[var(--text-muted)]",children:"リポジトリ全体の変更履歴"}),(0,n.jsx)("button",{onClick:t,className:"ml-auto p-1 rounded hover:bg-[var(--bg-muted)] text-[var(--text-muted)] hover:text-[var(--text-secondary)] transition-colors",title:"閉じる (Esc)",children:(0,n.jsx)(s9,{size:16})})]}),(0,n.jsx)("div",{className:"flex-1 overflow-y-auto",children:o?(0,n.jsx)("div",{className:"h-full flex items-center justify-center text-[13px] text-[var(--text-muted)]",children:"タイムラインを読み込み中..."}):0===i.length?(0,n.jsx)("div",{className:"h-full flex items-center justify-center text-[13px] text-[var(--text-muted)]",children:"変更履歴がありません"}):Array.from(m.entries()).map(([t,r])=>(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"sticky top-0 z-10 bg-[var(--bg-base)] border-b border-[var(--border-default)] px-4 py-1.5",children:(0,n.jsx)("span",{className:"text-[11px] font-medium text-[var(--text-muted)] tracking-wide",children:t})}),r.map(t=>{let r=s===t.hash;return(0,n.jsxs)("div",{className:"border-b border-[var(--border-default)]",children:[(0,n.jsx)("button",{onClick:()=>u(r?null:t.hash),className:"w-full text-left px-4 py-2.5 hover:bg-[var(--bg-hover)] transition-colors",children:(0,n.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,n.jsx)(sA,{size:13,className:"text-[var(--text-muted)] mt-0.5 shrink-0"}),(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"text-[11px] font-[var(--font-mono)] text-[var(--brand-primary)] leading-none",children:t.hashShort}),(0,n.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] leading-none",children:new Date(t.date).toLocaleTimeString("ja-JP",{hour:"2-digit",minute:"2-digit"})}),t.author&&(0,n.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] leading-none",children:t.author})]}),(0,n.jsx)("p",{className:"text-[12px] text-[var(--text-secondary)] mt-1 leading-snug line-clamp-2",children:t.message}),(0,n.jsx)("div",{className:"flex items-center gap-1 mt-1.5",children:(0,n.jsxs)("span",{className:"text-[10px] text-[var(--text-muted)]",children:[t.files.length,"件のドキュメント変更"]})})]}),(0,n.jsx)("span",{className:"text-[var(--text-muted)] shrink-0 mt-0.5",children:r?(0,n.jsx)(c,{size:13}):(0,n.jsx)(f,{size:13})})]})}),r&&(0,n.jsx)("div",{className:"px-4 pb-3",children:(0,n.jsx)("div",{className:"space-y-1",children:t.files.map(r=>{let i=(r.split("/").pop()||r).replace(/^\d+[_\-.\s]/,"").replace(/\.md$/i,""),l=d?.hash===t.hash&&d?.file===r;return(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"flex items-center gap-1.5 py-1 px-2 rounded hover:bg-[var(--bg-muted)] group",children:[(0,n.jsx)("button",{onClick:()=>p(l?null:{hash:t.hash,file:r}),className:"shrink-0 text-[var(--text-muted)] hover:text-[var(--text-primary)]",children:l?(0,n.jsx)(c,{size:12}):(0,n.jsx)(f,{size:12})}),(0,n.jsx)(g,{size:12,className:"shrink-0",style:{color:"var(--file-border)"}}),(0,n.jsx)("button",{onClick:()=>e(r),className:"text-[11px] text-[var(--text-secondary)] hover:text-[var(--brand-primary)] truncate text-left",title:r,children:i}),(0,n.jsx)("span",{className:"text-[10px] text-[var(--text-muted)] truncate ml-auto opacity-0 group-hover:opacity-100 transition-opacity",children:r})]}),l&&(0,n.jsx)("div",{className:"ml-6 mt-1 mb-2",children:(0,n.jsx)(sz,{filePath:r,hash:t.hash})})]},r)})})})]},t.hash)})]},t))})]})})}let ur="file";e.s(["default",0,function(){let[e,t]=(0,r.useState)([]),[i,l]=(0,r.useState)(""),[o,a]=(0,r.useState)(null),[s,u]=(0,r.useState)(260),[c,d]=(0,r.useState)(!1),[f,p]=(0,r.useState)([]),[h,m]=(0,r.useState)([]);(0,r.useEffect)(()=>{let e,t=(e=new URL(window.location.href).searchParams.get(ur))?decodeURIComponent(e):null;t&&a(t)},[]),(0,r.useEffect)(()=>{let e=new URL(window.location.href);o?e.searchParams.set(ur,o):e.searchParams.delete(ur);let t=e.pathname+(e.search?e.search:"")+e.hash;t!==window.location.pathname+window.location.search+window.location.hash&&window.history.replaceState(null,"",t)},[o]);let g=(0,r.useCallback)(e=>{o&&e!==o&&(p(e=>[...e,o]),m([])),e!==o&&window.location.hash&&window.history.replaceState(null,"",window.location.pathname+window.location.search),a(e)},[o]),x=(0,r.useCallback)(()=>{if(0===f.length)return;let e=f[f.length-1];o&&m(e=>[...e,o]),p(e=>e.slice(0,-1)),a(e)},[f,o]),y=(0,r.useCallback)(()=>{if(0===h.length)return;let e=h[h.length-1];o&&p(e=>[...e,o]),m(e=>e.slice(0,-1)),a(e)},[h,o]),v=f.length>0,b=h.length>0,w=sP();(0,r.useEffect)(()=>{fetch(sb("/api/tree")).then(e=>e.json()).then(e=>{t(e.tree??[]),l(e.root??"")})},[w]),(0,r.useEffect)(()=>{let e=localStorage.getItem("markshelf:treeWidth");e&&u(Number(e)||260)},[]);let S=(0,r.useMemo)(()=>(function e(t){let n=[];for(let i of t){var r;"file"===i.type&&(r=i.path,k.test(r))&&n.push({path:i.path,displayName:i.displayName}),"folder"===i.type&&(i.hasReadme&&n.push({path:i.path+"/README.md",displayName:i.displayName}),i.children&&n.push(...e(i.children)))}return n})(e),[e]),C=(0,r.useMemo)(()=>{let t=[];return!function e(n,r){for(let i of n)"folder"===i.type&&(t.push({path:i.path,displayName:i.displayName,depth:r}),i.children&&e(i.children,r+1))}(e,0),t},[e]),j=(0,r.useCallback)(e=>{e.preventDefault(),document.body.style.userSelect="none",document.body.style.cursor="col-resize";let t=e=>{let t=Math.max(180,Math.min(.4*window.innerWidth,e.clientX));u(t),localStorage.setItem("markshelf:treeWidth",String(t))},n=()=>{document.body.style.userSelect="",document.body.style.cursor="",document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",n)};document.addEventListener("mousemove",t),document.addEventListener("mouseup",n)},[]);return(0,n.jsxs)("div",{className:"h-screen flex flex-col",children:[(0,n.jsxs)("header",{className:"h-11 border-b border-[var(--border-default)] bg-[var(--bg-surface)] flex items-center px-5 shrink-0 gap-3",children:[(0,n.jsxs)("span",{className:"font-semibold text-[15px] tracking-tight leading-none",children:["Mark",(0,n.jsx)("span",{className:"text-[var(--brand-primary)]",children:"Shelf"})]}),i&&(0,n.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] font-[var(--font-mono)] truncate leading-none",children:i}),(0,n.jsx)("div",{className:"ml-auto",children:(0,n.jsxs)("button",{onClick:()=>d(!c),className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[12px] font-medium transition-colors ${c?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:[(0,n.jsx)(ut,{size:12}),"タイムライン"]})})]}),(0,n.jsxs)("div",{className:"flex flex-1 overflow-hidden",children:[(0,n.jsxs)("div",{className:"overflow-hidden flex flex-col shrink-0",style:{width:s},children:[(0,n.jsx)(s8,{onSelect:g}),(0,n.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,n.jsx)(E,{entries:e,selectedPath:o,onSelect:g})})]}),(0,n.jsx)("div",{className:"w-1.5 hover:bg-[var(--brand-primary)] bg-[var(--border-default)] cursor-col-resize shrink-0 transition-colors duration-150",onMouseDown:j}),(0,n.jsx)("div",{className:"flex-1 border-l border-[var(--border-default)] bg-[var(--bg-surface)] overflow-hidden flex flex-col",children:o?(0,n.jsx)(s4,{filePath:o,fileRefs:S,folders:C,onNavigate:g,onGoBack:x,onGoForward:y,canGoBack:v,canGoForward:b}):(0,n.jsx)("div",{className:"p-6 text-[var(--text-muted)] text-sm flex items-center justify-center h-full",children:"ファイルをクリックして内容を表示"})})]}),c&&(0,n.jsx)(un,{onNavigate:e=>{g(e),d(!1)},onClose:()=>d(!1)})]})}],52683)}]);