@slycode/slycode 0.2.20 → 0.2.22

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 (197) hide show
  1. package/dist/bridge/provider-utils.d.ts +10 -0
  2. package/dist/bridge/provider-utils.js +5 -1
  3. package/dist/bridge/provider-utils.js.map +1 -1
  4. package/dist/bridge/pty-handler.js +58 -12
  5. package/dist/bridge/pty-handler.js.map +1 -1
  6. package/dist/bridge/session-manager.js +6 -0
  7. package/dist/bridge/session-manager.js.map +1 -1
  8. package/dist/bridge/types.d.ts +4 -0
  9. package/dist/messaging/bridge-client.d.ts +3 -3
  10. package/dist/messaging/bridge-client.js +6 -4
  11. package/dist/messaging/bridge-client.js.map +1 -1
  12. package/dist/messaging/index.js +117 -26
  13. package/dist/messaging/index.js.map +1 -1
  14. package/dist/messaging/state.d.ts +3 -0
  15. package/dist/messaging/state.js +13 -0
  16. package/dist/messaging/state.js.map +1 -1
  17. package/dist/messaging/stt.d.ts +1 -1
  18. package/dist/messaging/stt.js +41 -9
  19. package/dist/messaging/stt.js.map +1 -1
  20. package/dist/messaging/types.d.ts +3 -0
  21. package/dist/web/.next/BUILD_ID +1 -1
  22. package/dist/web/.next/build-manifest.json +2 -2
  23. package/dist/web/.next/server/app/_global-error.html +2 -2
  24. package/dist/web/.next/server/app/_global-error.rsc +1 -1
  25. package/dist/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  26. package/dist/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  27. package/dist/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  28. package/dist/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  29. package/dist/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  30. package/dist/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  31. package/dist/web/.next/server/app/_not-found.html +1 -1
  32. package/dist/web/.next/server/app/_not-found.rsc +2 -2
  33. package/dist/web/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  34. package/dist/web/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  35. package/dist/web/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
  36. package/dist/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  37. package/dist/web/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  38. package/dist/web/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  39. package/dist/web/.next/server/app/api/areas/route.js +1 -1
  40. package/dist/web/.next/server/app/api/areas/route.js.nft.json +1 -1
  41. package/dist/web/.next/server/app/api/bridge/[...path]/route.js +1 -1
  42. package/dist/web/.next/server/app/api/bridge/[...path]/route.js.nft.json +1 -1
  43. package/dist/web/.next/server/app/api/cli-assets/assistant/route.js +1 -1
  44. package/dist/web/.next/server/app/api/cli-assets/assistant/route.js.nft.json +1 -1
  45. package/dist/web/.next/server/app/api/cli-assets/fix/route.js +1 -1
  46. package/dist/web/.next/server/app/api/cli-assets/fix/route.js.nft.json +1 -1
  47. package/dist/web/.next/server/app/api/cli-assets/import/route.js +1 -1
  48. package/dist/web/.next/server/app/api/cli-assets/import/route.js.nft.json +1 -1
  49. package/dist/web/.next/server/app/api/cli-assets/route.js +2 -2
  50. package/dist/web/.next/server/app/api/cli-assets/route.js.nft.json +1 -1
  51. package/dist/web/.next/server/app/api/cli-assets/store/preview/route.js +1 -1
  52. package/dist/web/.next/server/app/api/cli-assets/store/preview/route.js.nft.json +1 -1
  53. package/dist/web/.next/server/app/api/cli-assets/store/route.js +2 -2
  54. package/dist/web/.next/server/app/api/cli-assets/store/route.js.nft.json +1 -1
  55. package/dist/web/.next/server/app/api/cli-assets/sync/route.js +1 -1
  56. package/dist/web/.next/server/app/api/cli-assets/sync/route.js.nft.json +1 -1
  57. package/dist/web/.next/server/app/api/cli-assets/updates/route.js +2 -2
  58. package/dist/web/.next/server/app/api/cli-assets/updates/route.js.nft.json +1 -1
  59. package/dist/web/.next/server/app/api/dashboard/route.js +2 -2
  60. package/dist/web/.next/server/app/api/dashboard/route.js.nft.json +1 -1
  61. package/dist/web/.next/server/app/api/events/route.js +1 -1
  62. package/dist/web/.next/server/app/api/events/route.js.nft.json +1 -1
  63. package/dist/web/.next/server/app/api/file/route.js +1 -1
  64. package/dist/web/.next/server/app/api/file/route.js.nft.json +1 -1
  65. package/dist/web/.next/server/app/api/git-status/route.js +1 -1
  66. package/dist/web/.next/server/app/api/git-status/route.js.nft.json +1 -1
  67. package/dist/web/.next/server/app/api/kanban/route.js +1 -1
  68. package/dist/web/.next/server/app/api/kanban/route.js.nft.json +1 -1
  69. package/dist/web/.next/server/app/api/kanban/stream/route.js +1 -1
  70. package/dist/web/.next/server/app/api/kanban/stream/route.js.nft.json +1 -1
  71. package/dist/web/.next/server/app/api/projects/[id]/route.js +2 -2
  72. package/dist/web/.next/server/app/api/projects/[id]/route.js.nft.json +1 -1
  73. package/dist/web/.next/server/app/api/projects/analyze/route.js +1 -1
  74. package/dist/web/.next/server/app/api/projects/analyze/route.js.nft.json +1 -1
  75. package/dist/web/.next/server/app/api/projects/reorder/route.js +2 -2
  76. package/dist/web/.next/server/app/api/projects/reorder/route.js.nft.json +1 -1
  77. package/dist/web/.next/server/app/api/projects/route.js +2 -2
  78. package/dist/web/.next/server/app/api/projects/route.js.nft.json +1 -1
  79. package/dist/web/.next/server/app/api/providers/route.js +1 -1
  80. package/dist/web/.next/server/app/api/providers/route.js.nft.json +1 -1
  81. package/dist/web/.next/server/app/api/scheduler/route.js +1 -1
  82. package/dist/web/.next/server/app/api/scheduler/route.js.nft.json +1 -1
  83. package/dist/web/.next/server/app/api/search/route.js +1 -1
  84. package/dist/web/.next/server/app/api/search/route.js.nft.json +1 -1
  85. package/dist/web/.next/server/app/api/settings/route.js +1 -1
  86. package/dist/web/.next/server/app/api/settings/route.js.nft.json +1 -1
  87. package/dist/web/.next/server/app/api/sly-actions/invalidate/route.js +1 -1
  88. package/dist/web/.next/server/app/api/sly-actions/invalidate/route.js.nft.json +1 -1
  89. package/dist/web/.next/server/app/api/sly-actions/route.js +1 -1
  90. package/dist/web/.next/server/app/api/sly-actions/route.js.nft.json +1 -1
  91. package/dist/web/.next/server/app/api/sly-actions/stream/route.js +1 -1
  92. package/dist/web/.next/server/app/api/sly-actions/stream/route.js.nft.json +1 -1
  93. package/dist/web/.next/server/app/api/system-stats/route.js +1 -1
  94. package/dist/web/.next/server/app/api/system-stats/route.js.nft.json +1 -1
  95. package/dist/web/.next/server/app/api/terminal-classes/route.js +1 -1
  96. package/dist/web/.next/server/app/api/terminal-classes/route.js.nft.json +1 -1
  97. package/dist/web/.next/server/app/api/transcribe/route.js +5 -5
  98. package/dist/web/.next/server/app/api/transcribe/route.js.nft.json +1 -1
  99. package/dist/web/.next/server/app/api/version-check/route.js +1 -1
  100. package/dist/web/.next/server/app/api/version-check/route.js.nft.json +1 -1
  101. package/dist/web/.next/server/app/page.js +1 -1
  102. package/dist/web/.next/server/app/page.js.nft.json +1 -1
  103. package/dist/web/.next/server/app/page_client-reference-manifest.js +1 -1
  104. package/dist/web/.next/server/app/project/[id]/page.js +2 -2
  105. package/dist/web/.next/server/app/project/[id]/page.js.nft.json +1 -1
  106. package/dist/web/.next/server/app/project/[id]/page_client-reference-manifest.js +1 -1
  107. package/dist/web/.next/server/chunks/{[externals]__c6831f39._.js → [externals]__78e522ea._.js} +2 -2
  108. package/dist/web/.next/server/chunks/{[root-of-the-server]__1ec21ccc._.js → [root-of-the-server]__029203cd._.js} +3 -3
  109. package/dist/web/.next/server/chunks/{[root-of-the-server]__4297cb97._.js → [root-of-the-server]__0d6d4443._.js} +1 -1
  110. package/dist/web/.next/server/chunks/[root-of-the-server]__172ad0b1._.js +18 -0
  111. package/dist/web/.next/server/chunks/[root-of-the-server]__1c5f4ef9._.js +3 -0
  112. package/dist/web/.next/server/chunks/[root-of-the-server]__1cab11f0._.js +3 -0
  113. package/dist/web/.next/server/chunks/{[root-of-the-server]__0f69c28a._.js → [root-of-the-server]__1eb3f172._.js} +2 -2
  114. package/dist/web/.next/server/chunks/[root-of-the-server]__22cba275._.js +3 -0
  115. package/dist/web/.next/server/chunks/[root-of-the-server]__2543e413._.js +3 -0
  116. package/dist/web/.next/server/chunks/[root-of-the-server]__2c42a835._.js +3 -0
  117. package/dist/web/.next/server/chunks/[root-of-the-server]__2ed0ff47._.js +3 -0
  118. package/dist/web/.next/server/chunks/[root-of-the-server]__35454eea._.js +27 -0
  119. package/dist/web/.next/server/chunks/[root-of-the-server]__35768b56._.js +3 -0
  120. package/dist/web/.next/server/chunks/[root-of-the-server]__3880228a._.js +3 -0
  121. package/dist/web/.next/server/chunks/[root-of-the-server]__42322d88._.js +3 -0
  122. package/dist/web/.next/server/chunks/{[root-of-the-server]__d0f4efec._.js → [root-of-the-server]__5152eeff._.js} +3 -3
  123. package/dist/web/.next/server/chunks/[root-of-the-server]__527c7f57._.js +3 -0
  124. package/dist/web/.next/server/chunks/[root-of-the-server]__5c5dac4b._.js +3 -0
  125. package/dist/web/.next/server/chunks/[root-of-the-server]__5cb130f2._.js +3 -0
  126. package/dist/web/.next/server/chunks/[root-of-the-server]__68927e75._.js +3 -0
  127. package/dist/web/.next/server/chunks/[root-of-the-server]__719517c7._.js +3 -0
  128. package/dist/web/.next/server/chunks/[root-of-the-server]__73cf49c2._.js +3 -0
  129. package/dist/web/.next/server/chunks/{[root-of-the-server]__f5dae2ad._.js → [root-of-the-server]__7af4ab09._.js} +1 -1
  130. package/dist/web/.next/server/chunks/{[root-of-the-server]__4244617a._.js → [root-of-the-server]__7e6860e0._.js} +3 -3
  131. package/dist/web/.next/server/chunks/[root-of-the-server]__88bf5e22._.js +3 -0
  132. package/dist/web/.next/server/chunks/{[root-of-the-server]__f97e93fa._.js → [root-of-the-server]__8b4259cb._.js} +3 -3
  133. package/dist/web/.next/server/chunks/[root-of-the-server]__92f81907._.js +3 -0
  134. package/dist/web/.next/server/chunks/[root-of-the-server]__967603e9._.js +3 -0
  135. package/dist/web/.next/server/chunks/[root-of-the-server]__9e4bd28f._.js +3 -0
  136. package/dist/web/.next/server/chunks/[root-of-the-server]__ba1d2e56._.js +3 -0
  137. package/dist/web/.next/server/chunks/[root-of-the-server]__c942d872._.js +3 -0
  138. package/dist/web/.next/server/chunks/[root-of-the-server]__d7893622._.js +3 -0
  139. package/dist/web/.next/server/chunks/{[root-of-the-server]__3b9d3e43._.js → [root-of-the-server]__d843611b._.js} +6 -6
  140. package/dist/web/.next/server/chunks/[root-of-the-server]__f4d2627f._.js +3 -0
  141. package/dist/web/.next/server/chunks/[root-of-the-server]__f597835d._.js +3 -0
  142. package/dist/web/.next/server/chunks/{[root-of-the-server]__cf14e306._.js → [root-of-the-server]__fe8b9abd._.js} +1 -1
  143. package/dist/web/.next/server/chunks/src_677020aa._.js +1 -1
  144. package/dist/web/.next/server/chunks/ssr/[root-of-the-server]__1f5fc489._.js +1 -1
  145. package/dist/web/.next/server/chunks/ssr/[root-of-the-server]__43d93717._.js +3 -0
  146. package/dist/web/.next/server/chunks/ssr/[root-of-the-server]__90f82e6d._.js +3 -0
  147. package/dist/web/.next/server/chunks/ssr/[root-of-the-server]__bcbe4bf2._.js +1 -1
  148. package/dist/web/.next/server/chunks/ssr/src_components_c4135402._.js +1 -1
  149. package/dist/web/.next/server/chunks/ssr/src_lib_registry_ts_2fc87c9c._.js +1 -1
  150. package/dist/web/.next/server/pages/404.html +1 -1
  151. package/dist/web/.next/server/pages/500.html +2 -2
  152. package/dist/web/.next/static/chunks/18cfbdd7e977bb01.css +1 -0
  153. package/dist/web/.next/static/chunks/{8cb404d087e9f3c7.js → 4049cceee6a49323.js} +1 -1
  154. package/dist/web/.next/static/chunks/8415039c5941cf5c.js +4 -0
  155. package/dist/web/.next/static/chunks/{3d5195b57fc05540.js → a0f5f9cdee8a22c1.js} +2 -2
  156. package/dist/web/src/app/api/projects/analyze/route.ts +12 -2
  157. package/dist/web/src/app/api/projects/route.ts +10 -11
  158. package/dist/web/src/app/api/providers/route.ts +4 -0
  159. package/dist/web/src/components/CardModal.tsx +31 -24
  160. package/dist/web/src/components/ClaudeTerminalPanel.tsx +124 -70
  161. package/dist/web/src/lib/paths.ts +14 -0
  162. package/dist/web/tsconfig.tsbuildinfo +1 -1
  163. package/package.json +2 -2
  164. package/templates/kanban-seed.json +1 -1
  165. package/dist/web/.next/server/chunks/[root-of-the-server]__09aec55a._.js +0 -3
  166. package/dist/web/.next/server/chunks/[root-of-the-server]__12f6cd6f._.js +0 -3
  167. package/dist/web/.next/server/chunks/[root-of-the-server]__15fc9266._.js +0 -18
  168. package/dist/web/.next/server/chunks/[root-of-the-server]__198f01e0._.js +0 -3
  169. package/dist/web/.next/server/chunks/[root-of-the-server]__279e9bf3._.js +0 -3
  170. package/dist/web/.next/server/chunks/[root-of-the-server]__2b639eab._.js +0 -3
  171. package/dist/web/.next/server/chunks/[root-of-the-server]__2d1f0ed9._.js +0 -3
  172. package/dist/web/.next/server/chunks/[root-of-the-server]__3f239285._.js +0 -3
  173. package/dist/web/.next/server/chunks/[root-of-the-server]__47dd878e._.js +0 -3
  174. package/dist/web/.next/server/chunks/[root-of-the-server]__5b8c9374._.js +0 -3
  175. package/dist/web/.next/server/chunks/[root-of-the-server]__5e08b942._.js +0 -3
  176. package/dist/web/.next/server/chunks/[root-of-the-server]__6ffce934._.js +0 -3
  177. package/dist/web/.next/server/chunks/[root-of-the-server]__71bb3374._.js +0 -3
  178. package/dist/web/.next/server/chunks/[root-of-the-server]__7603305e._.js +0 -3
  179. package/dist/web/.next/server/chunks/[root-of-the-server]__7c476ad6._.js +0 -3
  180. package/dist/web/.next/server/chunks/[root-of-the-server]__846ca56f._.js +0 -3
  181. package/dist/web/.next/server/chunks/[root-of-the-server]__98d88050._.js +0 -3
  182. package/dist/web/.next/server/chunks/[root-of-the-server]__b273cc05._.js +0 -3
  183. package/dist/web/.next/server/chunks/[root-of-the-server]__b90bbd70._.js +0 -3
  184. package/dist/web/.next/server/chunks/[root-of-the-server]__d5272169._.js +0 -3
  185. package/dist/web/.next/server/chunks/[root-of-the-server]__d56e68cb._.js +0 -3
  186. package/dist/web/.next/server/chunks/[root-of-the-server]__d6362272._.js +0 -3
  187. package/dist/web/.next/server/chunks/[root-of-the-server]__de1277ee._.js +0 -27
  188. package/dist/web/.next/server/chunks/[root-of-the-server]__e88a19d2._.js +0 -3
  189. package/dist/web/.next/server/chunks/[root-of-the-server]__f3e501b6._.js +0 -3
  190. package/dist/web/.next/server/chunks/[root-of-the-server]__f59af2bc._.js +0 -3
  191. package/dist/web/.next/server/chunks/ssr/[root-of-the-server]__9ac6ea25._.js +0 -3
  192. package/dist/web/.next/server/chunks/ssr/[root-of-the-server]__dfe2728c._.js +0 -3
  193. package/dist/web/.next/static/chunks/59fb302a5bfd2dc0.js +0 -4
  194. package/dist/web/.next/static/chunks/747f5e5f9dcf2621.css +0 -1
  195. /package/dist/web/.next/static/{tQdF18XbrwPnmXEMVlcfU → b2V8jC3HBMi4vgm7Kie3H}/_buildManifest.js +0 -0
  196. /package/dist/web/.next/static/{tQdF18XbrwPnmXEMVlcfU → b2V8jC3HBMi4vgm7Kie3H}/_clientMiddlewareManifest.json +0 -0
  197. /package/dist/web/.next/static/{tQdF18XbrwPnmXEMVlcfU → b2V8jC3HBMi4vgm7Kie3H}/_ssgManifest.js +0 -0
@@ -0,0 +1,4 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,98183,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={assign:function(){return s},searchParamsToUrlQuery:function(){return o},urlQueryToSearchParams:function(){return a}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});function o(e){let t={};for(let[n,r]of e.entries()){let e=t[n];void 0===e?t[n]=r:Array.isArray(e)?e.push(r):t[n]=[e,r]}return t}function l(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function a(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(n,l(e));else t.set(n,l(r));return t}function s(e,...t){for(let n of t){for(let t of n.keys())e.delete(t);for(let[t,r]of n.entries())e.append(t,r)}return e}},95057,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={formatUrl:function(){return a},formatWithValidation:function(){return u},urlObjectKeys:function(){return s}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let o=e.r(90809)._(e.r(98183)),l=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:n}=e,r=e.protocol||"",i=e.pathname||"",a=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:n&&(u=t+(~n.indexOf(":")?`[${n}]`:n),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(o.urlQueryToSearchParams(s)));let c=e.search||s&&`?${s}`||"";return r&&!r.endsWith(":")&&(r+=":"),e.slashes||(!r||l.test(r))&&!1!==u?(u="//"+(u||""),i&&"/"!==i[0]&&(i="/"+i)):u||(u=""),a&&"#"!==a[0]&&(a="#"+a),c&&"?"!==c[0]&&(c="?"+c),i=i.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${r}${u}${i}${c}${a}`}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return a(e)}},18581,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"useMergedRef",{enumerable:!0,get:function(){return i}});let r=e.r(71645);function i(e,t){let n=(0,r.useRef)(null),i=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=n.current;e&&(n.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(n.current=o(e,r)),t&&(i.current=o(t,r))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},18967,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={DecodeError:function(){return x},MiddlewareNotFoundError:function(){return k},MissingStaticPage:function(){return v},NormalizeError:function(){return y},PageNotFoundError:function(){return b},SP:function(){return m},ST:function(){return g},WEB_VITALS:function(){return o},execOnce:function(){return l},getDisplayName:function(){return d},getLocationOrigin:function(){return u},getURL:function(){return c},isAbsoluteUrl:function(){return s},isResSent:function(){return f},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return w}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let o=["CLS","FCP","FID","INP","LCP","TTFB"];function l(e){let t,n=!1;return(...r)=>(n||(n=!0,t=e(...r)),t)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=e=>a.test(e);function u(){let{protocol:e,hostname:t,port:n}=window.location;return`${e}//${t}${n?":"+n:""}`}function c(){let{href:e}=window.location,t=u();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function h(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&f(n))return r;if(!r)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${r}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return r}let m="u">typeof performance,g=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class x extends Error{}class y extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class v extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class k extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(e){return JSON.stringify({message:e.message,stack:e.stack})}},73668,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"isLocalURL",{enumerable:!0,get:function(){return o}});let r=e.r(18967),i=e.r(52817);function o(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,i.hasBasePath)(n.pathname)}catch(e){return!1}}},84508,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},22016,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return x},useLinkStatus:function(){return b}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let o=e.r(90809),l=e.r(18050),a=o._(e.r(71645)),s=e.r(95057),u=e.r(8372),c=e.r(18581),d=e.r(18967),f=e.r(5550);e.r(33525);let p=e.r(91949),h=e.r(73668),m=e.r(65793);function g(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}function x(t){var n;let r,i,o,[s,x]=(0,a.useOptimistic)(p.IDLE_LINK_STATUS),b=(0,a.useRef)(null),{href:v,as:k,children:w,prefetch:C=null,passHref:S,replace:j,shallow:E,scroll:T,onClick:P,onMouseEnter:N,onTouchStart:L,legacyBehavior:A=!1,onNavigate:I,ref:O,unstable_dynamicOnHover:D,...M}=t;r=w,A&&("string"==typeof r||"number"==typeof r)&&(r=(0,l.jsx)("a",{children:r}));let R=a.default.useContext(u.AppRouterContext),_=!1!==C,F=!1!==C?null===(n=C)||"auto"===n?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,{href:z,as:U}=a.default.useMemo(()=>{let e=g(v);return{href:e,as:k?g(k):e}},[v,k]);if(A){if(r?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});i=a.default.Children.only(r)}let B=A?i&&"object"==typeof i&&i.ref:O,$=a.default.useCallback(e=>(null!==R&&(b.current=(0,p.mountLinkInstance)(e,z,R,F,_,x)),()=>{b.current&&((0,p.unmountLinkForCurrentNavigation)(b.current),b.current=null),(0,p.unmountPrefetchableInstance)(e)}),[_,z,R,F,x]),H={ref:(0,c.useMergedRef)($,B),onClick(t){A||"function"!=typeof P||P(t),A&&i.props&&"function"==typeof i.props.onClick&&i.props.onClick(t),!R||t.defaultPrevented||function(t,n,r,i,o,l,s){if("u">typeof window){let u,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,h.isLocalURL)(n)){o&&(t.preventDefault(),location.replace(n));return}if(t.preventDefault(),s){let e=!1;if(s({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(99781);a.default.startTransition(()=>{d(r||n,o?"replace":"push",l??!0,i.current)})}}(t,z,U,b,j,T,I)},onMouseEnter(e){A||"function"!=typeof N||N(e),A&&i.props&&"function"==typeof i.props.onMouseEnter&&i.props.onMouseEnter(e),R&&_&&(0,p.onNavigationIntent)(e.currentTarget,!0===D)},onTouchStart:function(e){A||"function"!=typeof L||L(e),A&&i.props&&"function"==typeof i.props.onTouchStart&&i.props.onTouchStart(e),R&&_&&(0,p.onNavigationIntent)(e.currentTarget,!0===D)}};return(0,d.isAbsoluteUrl)(U)?H.href=U:A&&!S&&("a"!==i.type||"href"in i.props)||(H.href=(0,f.addBasePath)(U)),o=A?a.default.cloneElement(i,H):(0,l.jsx)("a",{...M,...H,children:r}),(0,l.jsx)(y.Provider,{value:s,children:o})}e.r(84508);let y=(0,a.createContext)(p.IDLE_LINK_STATUS),b=()=>(0,a.useContext)(y);("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},18566,(e,t,n)=>{t.exports=e.r(76562)},67585,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"BailoutToCSR",{enumerable:!0,get:function(){return i}});let r=e.r(32061);function i({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new r.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},9885,(e,t,n)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"encodeURIPath",{enumerable:!0,get:function(){return r}})},52157,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"PreloadChunks",{enumerable:!0,get:function(){return s}});let r=e.r(18050),i=e.r(74080),o=e.r(63599),l=e.r(9885),a=e.r(43369);function s({moduleIds:e}){if("u">typeof window)return null;let t=o.workAsyncStorage.getStore();if(void 0===t)return null;let n=[];if(t.reactLoadableManifest&&e){let r=t.reactLoadableManifest;for(let t of e){if(!r[t])continue;let e=r[t].files;n.push(...e)}}if(0===n.length)return null;let s=(0,a.getDeploymentIdQueryOrEmptyString)();return(0,r.jsx)(r.Fragment,{children:n.map(e=>{let n=`${t.assetPrefix}/_next/${(0,l.encodeURIPath)(e)}${s}`;return e.endsWith(".css")?(0,r.jsx)("link",{precedence:"dynamic",href:n,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,i.preload)(n,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},69093,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return u}});let r=e.r(18050),i=e.r(71645),o=e.r(67585),l=e.r(52157);function a(e){return{default:e&&"default"in e?e.default:e}}let s={loader:()=>Promise.resolve(a(()=>null)),loading:null,ssr:!0},u=function(e){let t={...s,...e},n=(0,i.lazy)(()=>t.loader().then(a)),u=t.loading;function c(e){let a=u?(0,r.jsx)(u,{isLoading:!0,pastDelay:!0,error:null}):null,s=!t.ssr||!!t.loading,c=s?i.Suspense:i.Fragment,d=t.ssr?(0,r.jsxs)(r.Fragment,{children:["u"<typeof window?(0,r.jsx)(l.PreloadChunks,{moduleIds:t.modules}):null,(0,r.jsx)(n,{...e})]}):(0,r.jsx)(o.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(n,{...e})});return(0,r.jsx)(c,{...s?{fallback:a}:{},children:d})}return c.displayName="LoadableComponent",c}},70703,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return i}});let r=e.r(55682)._(e.r(69093));function i(e,t){let n={};"function"==typeof e&&(n.loader=e);let i={...n,...t};return(0,r.default)({...i,modules:i.loadableGenerated?.modules})}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},64103,38307,7782,97480,e=>{"use strict";var t=e.i(71645),n=e.i(21146);function r(e,r,i){let o=i?.enabled??!0,l=(0,t.useRef)(e);(0,t.useEffect)(()=>{l.current=e},[e]);let a=(0,t.useRef)(null),s=(0,t.useRef)(null),u=(0,t.useCallback)(()=>{s.current?.abort();let e=new AbortController;s.current=e,l.current(e.signal).catch(()=>{})},[]),c=(0,t.useCallback)(()=>{a.current&&(clearInterval(a.current),a.current=null)},[]),d=(0,t.useCallback)(()=>{c(),a.current=setInterval(u,r)},[u,r,c]);(0,t.useEffect)(()=>{if(!o){c(),s.current?.abort();return}let e=!0,t="u"<typeof document||"visible"===document.visibilityState,r="connected"===n.connectionManager.status,i=()=>{t&&r&&e&&(u(),d())},l=()=>{c(),s.current?.abort()},a=n.connectionManager.subscribe(e=>{let t=r;(r="connected"===e)&&!t?i():!r&&t&&l()}),f=()=>{let e=t;(t="visible"===document.visibilityState)&&!e?i():!t&&e&&l()};return document.addEventListener("visibilitychange",f),t&&r&&e&&(u(),d()),()=>{e=!1,a(),document.removeEventListener("visibilitychange",f),c(),s.current?.abort()}},[o,r,u,d,c])}function i(e,t,n,r){return(t[n]||[]).map(t=>e[t]).filter(e=>!(!e||"specific"===e.scope&&e.projects.length>0&&r?.projectId&&!e.projects.includes(r.projectId)||r?.cardType&&e.cardTypes&&e.cardTypes.length>0&&!e.cardTypes.includes(r.cardType)))}function o(e,t){let n=e;return(n=(n=(n=n.replace(/\{\{#each\s+(\w+)\}\}([\s\S]*?)\{\{\/each\}\}/g,(e,n,r)=>{let i=l(t,n);return Array.isArray(i)&&i.length>0?i.map(e=>r.replace(/\{\{this\}\}/g,String(e))).join(""):""})).replace(/\{\{#if\s+(\w+(?:\.\w+)*)\}\}([\s\S]*?)\{\{\/if\}\}/g,(e,n,r)=>{let i=l(t,n);return i&&(!Array.isArray(i)||i.length>0)?r:""})).replace(/\{\{(\w+(?:\.\w+)*)\}\}/g,(e,n)=>{let r=l(t,n);return Array.isArray(r)?r.join(", "):null!=r?String(r):""})).trim()}function l(e,t){return t.split(".").reduce((e,t)=>{if(e&&"object"==typeof e&&t in e)return e[t]},e)}function a(e,t){return o(e,t)}function s(e){return({backlog:"backlog",design:"design",implementation:"implementation",testing:"testing",done:"done"})[e]||"backlog"}function u(e){let t=e.commands,n={};for(let[e,r]of Object.entries(t))n[e]={...r,id:e};return{version:e.version,commands:n,classAssignments:e.classAssignments||{}}}e.s(["usePolling",()=>r],64103),e.s(["buildPrompt",()=>a,"getActionsForClass",()=>i,"getTerminalClassFromStage",()=>s,"normalizeActionsConfig",()=>u,"renderTemplate",()=>o],38307);let c={version:"4.0",commands:{},classAssignments:{}};function d(){let[e,n]=(0,t.useState)(c);return(0,t.useEffect)(()=>{let e=!1;return fetch("/api/sly-actions").then(e=>e.ok?e.json():null).then(t=>{t&&!e&&n(u(t))}).catch(()=>{}),()=>{e=!0}},[]),r((0,t.useCallback)(async e=>{try{let t=await fetch("/api/sly-actions",{signal:e});if(t.ok){let e=await t.json();e&&n(u(e))}}catch{}},[]),3e4),e}e.s(["useSlyActionsConfig",()=>d],7782);var f=e.i(18050);let p=(0,e.i(70703).default)(()=>e.A(54423).then(e=>e.Terminal),{loadableGenerated:{modules:[81485]},ssr:!1,loading:()=>(0,f.jsx)("div",{className:"flex h-full items-center justify-center text-void-500",children:"Loading terminal..."})});function h({sessionName:e,cwd:n,actionsConfig:i,actions:l,context:a,bridgeUrl:s="/api/bridge",className:u="",cardId:c,cardAreas:d=[],stage:h,initialProvider:m,footerClassName:g,tintColor:x,voiceTerminalId:y,onSessionChange:b,onProviderChange:v,onTerminalReady:k}){let[w,C]=(0,t.useState)(null),[S,j]=(0,t.useState)(m||"claude"),[E,T]=(0,t.useState)(!0),[P,N]=(0,t.useState)(null),[L,A]=(0,t.useState)(!1),[I,O]=(0,t.useState)(!1),[D,M]=(0,t.useState)(0),[R,_]=(0,t.useState)(!1),[F,z]=(0,t.useState)(!1),[U,B]=(0,t.useState)(!1),[$,H]=(0,t.useState)(""),[V,q]=(0,t.useState)(!1),[W,K]=(0,t.useState)(!1),[J,Q]=(0,t.useState)(!1),X=(0,t.useRef)(null),Z=(0,t.useRef)(null),Y=(0,t.useRef)(null),[G,ee]=(0,t.useState)(null),et=(0,t.useRef)(null),en=(0,t.useRef)(!1),[er,ei]=(0,t.useState)(null),[eo,el]=(0,t.useState)(null),[ea,es]=(0,t.useState)(""),eu=(0,t.useRef)(S),ec=(0,t.useRef)(!1),ed=(0,t.useRef)(P);ed.current=P;let[ef,ep]=(0,t.useState)(null),[eh,em]=(0,t.useState)(!0),eg=e.includes(":card:")||e.endsWith(":global")?e.replace(/:card:/,`:${S}:card:`).replace(/:global$/,`:${S}:global`):e,ex=(0,t.useRef)(b);ex.current=b;let[ey,eb]=(0,t.useState)(!1);(0,t.useEffect)(()=>{fetch("/api/providers").then(e=>e.ok?e.json():null).then(e=>{if(e){C(e);let t=(h?e.defaults.stages[h]:null)||e.defaults.global;t&&(m||j(t.provider),T(t.skipPermissions),t.model&&es(t.model))}}).catch(()=>{})},[h]),(0,t.useEffect)(()=>{if(!w)return;let e=eu.current!==S;if(eu.current=S,!e&&ec.current)return;ec.current=!1;let t=ed.current;if(t?.model&&t.provider===S){let e=w.providers[S]?.model?.available;if(e?.some(e=>e.id===t.model))return void es(t.model)}let n=(h?w.defaults.stages[h]:null)||w.defaults.global;if(n?.model&&n.provider===S){let e=w.providers[S]?.model?.available;if(e?.some(e=>e.id===n.model))return void es(n.model)}es("")},[S,w,h]);let ev=(0,t.useCallback)((e,t)=>{let n=h?w?.defaults.stages[h]:w?.defaults.global,r={provider:e,skipPermissions:t};n?.model&&n.provider===e&&(r.model=n.model),fetch("/api/providers",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({defaults:h?{stages:{[h]:r}}:{global:r}})}).catch(()=>{})},[h,w]),ek=P?.status==="running"||P?.status==="detached",ew=P?.hasHistory;(0,t.useEffect)(()=>{n&&S&&(ep(null),em(!0),fetch(`${s}/check-instruction-file?provider=${S}&cwd=${encodeURIComponent(n)}`).then(e=>e.ok?e.json():null).then(e=>{e&&ep(e)}).catch(()=>{}))},[S,n,s,ek]);let eC=(0,t.useCallback)(async e=>{try{let t=await fetch(`${s}/sessions/${encodeURIComponent(eg)}`,{signal:e});if(t.ok){let e=await t.json();N(e),ex.current?.(e)}}catch{}},[eg,s]);r(eC,5e3),(0,t.useEffect)(()=>{eC()},[eC]),(0,t.useEffect)(()=>{!ek||I||L||ey||(O(!0),M(e=>e+1))},[ek,I,L,ey]),(0,t.useEffect)(()=>{ek||eb(!1)},[ek]),(0,t.useEffect)(()=>{if(!V)return;let e=e=>{X.current&&!X.current.contains(e.target)&&q(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[V]),(0,t.useEffect)(()=>{if(!W)return;let e=e=>{Z.current&&!Z.current.contains(e.target)&&K(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[W]);let eS=ef?.needed?(0,f.jsxs)("div",{className:"flex flex-col items-center gap-1",children:[(0,f.jsxs)("span",{className:"text-xs text-amber-400",children:["⚠ ",ef.targetFile," missing — will copy from ",ef.copySource]}),(0,f.jsxs)("label",{className:"flex items-center gap-1.5 text-xs text-amber-400/80 cursor-pointer",children:[(0,f.jsx)("input",{type:"checkbox",checked:eh,onChange:e=>em(e.target.checked),className:"rounded border-amber-500/50"}),"Create ",ef.targetFile]})]}):null,ej=e=>{if(!w||Object.keys(w.providers).length<=1)return null;let t=w.providers[S],n=t?.model?.available,r=e?.showModel!==!1;return(0,f.jsxs)("div",{className:"flex flex-col items-center gap-2 mt-3 pt-3 border-t border-void-700/50",children:[(0,f.jsx)("div",{className:"flex gap-1",children:Object.values(w.providers).map(e=>(0,f.jsx)("button",{onClick:()=>{j(e.id),ev(e.id,E),v?.(e.id)},className:`rounded-md px-3 py-1 text-xs font-medium transition-all ${S===e.id?"border border-neon-blue-400/60 bg-neon-blue-400/15 text-neon-blue-400 shadow-[0_0_8px_rgba(0,191,255,0.2)]":"border border-void-600 bg-void-800 text-void-400 hover:border-void-500 hover:text-void-300"}`,children:e.displayName},e.id))}),(0,f.jsxs)("div",{className:"flex items-center gap-3",children:[r&&n&&n.length>0&&(0,f.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,f.jsx)("span",{className:"text-xs text-void-500",children:"Model"}),(0,f.jsxs)("select",{value:ea,onChange:e=>{es(e.target.value),ec.current=!0},className:`max-w-[140px] truncate rounded border px-2 py-1 text-xs font-medium transition-all ${ea?"border-neon-blue-400/40 bg-neon-blue-400/10 text-neon-blue-400":"border-void-600 bg-void-800 text-void-400"}`,children:[(0,f.jsx)("option",{value:"",children:"Default"}),n.map(e=>(0,f.jsx)("option",{value:e.id,children:e.label},e.id))]})]}),(0,f.jsxs)("label",{className:"flex items-center gap-1.5 text-xs text-void-500 cursor-pointer",children:[(0,f.jsx)("input",{type:"checkbox",checked:E,onChange:e=>{T(e.target.checked),ev(S,e.target.checked)},className:"rounded border-void-600"}),w.providers[S]?.permissions.label||"Skip permissions"]})]}),eS]})},eE=l.filter(e=>"startup"===e.placement||"both"===e.placement),eT=l.filter(e=>"toolbar"===e.placement||"both"===e.placement),eP=async(e,t)=>{_(!0),B(!1),ei(null),el(null);try{var r;let i;t?i=o(t,a):e?.prompt&&(r=e.prompt,i=o(r,a));let l=await fetch(`${s}/sessions`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:eg,provider:S,skipPermissions:E,cwd:n,fresh:!ew,prompt:i,model:ea||void 0,createInstructionFile:ef?.needed?eh:void 0})});if(l.ok){let e=await l.json();N(e),b?.(e),O(!0),M(e=>e+1),ef?.needed&&eh&&ep(null)}else{let e=await l.json().catch(()=>({error:"Unknown error"}));el(e.error||`Failed to start session (HTTP ${l.status})`)}}catch(e){console.error("Failed to start session:",e),el("Could not reach the bridge server")}finally{_(!1),H("")}},eN=async()=>{z(!0);try{let e=await fetch(`${s}/sessions/${encodeURIComponent(eg)}?action=stop`,{method:"DELETE"});if(O(!1),A(!1),e.ok){let t=await e.json();t.session&&(N(t.session),b?.(t.session))}}catch(e){console.error("Failed to stop session:",e)}finally{z(!1)}},eL=async()=>{Q(!0);try{let e=await fetch(`${s}/sessions/${encodeURIComponent(eg)}/relink`,{method:"POST"});if(e.ok){let t=await e.json();eC(),console.log(`Relinked: ${t.previous?.slice(0,8)||"none"} -> ${t.sessionId?.slice(0,8)}`)}else{let t=await e.json();console.error("Relink failed:",t.error)}}catch(e){console.error("Failed to relink session:",e)}finally{Q(!1),K(!1)}},eA=(0,t.useCallback)(async e=>{if(en.current)return;en.current=!0;let t=URL.createObjectURL(e),n=Date.now();ee({filename:"",previewUrl:t,status:"uploading"});try{let r=new FormData;r.append("image",e);let i=await fetch(`${s}/sessions/${encodeURIComponent(eg)}/image`,{method:"POST",body:r});if(!i.ok){let e=await i.json().catch(()=>({error:"Upload failed"}));ee({filename:"",previewUrl:t,status:"error",message:e.error}),en.current=!1;return}let{filename:o}=await i.json();await fetch(`${s}/sessions/${encodeURIComponent(eg)}/input`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:`[Screenshot: screenshots/${o}]`})}),ee({filename:o,previewUrl:t,status:"done"}),Y.current?.focus();let l=Date.now()-n,a=Math.max(2e3-l,500);et.current&&clearTimeout(et.current),et.current=setTimeout(()=>{ee(null),URL.revokeObjectURL(t),en.current=!1},a)}catch{ee({filename:"",previewUrl:t,status:"error",message:"Network error"}),en.current=!1}},[s,eg]),eI=async(e,t=!0)=>{try{let n=e.command;"context"===e.id&&d.length>0&&(n=`${e.command} ${d.join(" ")}`),"show-card"===e.id&&c&&(n=`${e.command} ${c}`),q(!1),await fetch(`${s}/sessions/${encodeURIComponent(eg)}/input`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:n})}),t&&(await new Promise(e=>setTimeout(e,600)),await fetch(`${s}/sessions/${encodeURIComponent(eg)}/input`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:"\r"})})),Y.current?.focus()}catch(e){console.error("Failed to send command:",e)}},eO=eT.map(e=>({id:e.id,label:e.label,command:o(e.prompt,a),description:e.description}));return(0,f.jsxs)("div",{className:`relative flex h-full flex-col overflow-hidden ${u}`,children:[(0,f.jsx)("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden bg-[#222228] dark:bg-[#1a1a1a]",children:I&&ek?(0,f.jsx)("div",{className:"flex-1 overflow-hidden","data-terminal-id":y||eg,children:(0,f.jsx)(p,{sessionName:eg,bridgeUrl:s,tintColor:x,onConnectionChange:e=>{A(e),e&&eC()},onSessionExit:(e,t)=>{O(!1),A(!1),t&&0!==e&&ei({code:e,output:t}),eC()},onReady:e=>{Y.current=e,e.focus(),k?.(e)},onImagePaste:eA},D)}):(0,f.jsx)("div",{className:"flex flex-1 flex-col items-center justify-center gap-4 text-void-400",children:ek?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{className:"text-lg",children:"Session Running"}),P?.provider&&(0,f.jsx)("span",{className:"text-xs text-void-500",children:w?.providers[P.provider]?.displayName||P.provider}),(0,f.jsx)("button",{onClick:()=>{O(!0),M(e=>e+1)},className:"rounded-lg border border-neon-blue-400/40 bg-neon-blue-400/15 px-4 py-2 text-sm font-medium text-neon-blue-400 transition-all hover:bg-neon-blue-400/25 hover:shadow-[0_0_12px_rgba(0,191,255,0.3)]",children:"Connect"})]}):U?(0,f.jsxs)("div",{className:"w-full max-w-md px-4",children:[(0,f.jsx)("div",{className:"mb-2 text-sm",children:"Custom prompt:"}),(0,f.jsx)("textarea",{value:$,onChange:e=>H(e.target.value),placeholder:"Describe what you want to do...",rows:4,className:"mb-3 w-full rounded border border-void-600 bg-void-800 p-3 text-sm text-void-200 placeholder-void-500 focus:border-neon-blue-400 focus:outline-none",autoFocus:!0}),(0,f.jsxs)("div",{className:"flex justify-center gap-2",children:[(0,f.jsx)("button",{onClick:()=>B(!1),className:"rounded-lg border border-void-500/40 bg-void-700/50 px-4 py-2 text-sm font-medium text-void-300 transition-all hover:border-void-400/40 hover:bg-void-600/50",children:"Cancel"}),(0,f.jsx)("button",{onClick:()=>eP(null,$),disabled:R||!$.trim(),className:"rounded-lg border border-green-400/40 bg-green-400/15 px-4 py-2 text-sm font-medium text-green-400 transition-all hover:bg-green-400/25 hover:shadow-[0_0_12px_rgba(0,230,118,0.3)] disabled:opacity-50",children:R?"Starting...":"Start"})]})]}):ew?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{className:"text-lg",children:"Previous Session Available"}),(0,f.jsx)("div",{className:"text-xs text-void-600 font-mono",children:n}),(0,f.jsxs)("div",{className:"flex flex-wrap justify-center gap-2",children:[(0,f.jsx)("button",{onClick:()=>eP({id:"resume",label:"Resume",prompt:""}),disabled:R,className:"rounded-lg border border-green-400/40 bg-green-400/15 px-4 py-2 text-sm font-medium text-green-400 transition-all hover:bg-green-400/25 hover:shadow-[0_0_12px_rgba(0,230,118,0.3)] disabled:opacity-50",children:R?"Starting...":"Resume"}),(0,f.jsx)("button",{onClick:()=>{fetch(`${s}/sessions/${encodeURIComponent(eg)}?action=delete`,{method:"DELETE"}).then(()=>{N(null),b?.(null)}).catch(console.error)},disabled:R,className:"rounded-lg border border-red-400/30 bg-red-400/10 px-4 py-2 text-sm font-medium text-red-400 transition-all hover:bg-red-400/20 hover:shadow-[0_0_12px_rgba(255,59,92,0.3)] disabled:opacity-50",children:"Reset"})]}),(0,f.jsxs)("div",{className:"flex flex-wrap justify-center gap-2 mt-2",children:[eE.map(e=>(0,f.jsx)("button",{onClick:()=>eP(e),disabled:R,className:"rounded-lg border border-neon-blue-400/30 bg-neon-blue-400/10 px-3 py-1.5 text-xs font-medium text-neon-blue-400 transition-all hover:bg-neon-blue-400/20 hover:shadow-[0_0_8px_rgba(0,191,255,0.2)] disabled:opacity-50",children:e.label},e.id)),(0,f.jsx)("button",{onClick:()=>B(!0),disabled:R,className:"rounded-lg border border-void-500/30 bg-void-700/50 px-3 py-1.5 text-xs font-medium text-void-300 transition-all hover:border-neon-blue-400/30 hover:text-neon-blue-400 disabled:opacity-50",children:"Custom..."})]}),ej({showModel:!1})]}):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{className:"text-lg",children:"No Active Session"}),(0,f.jsx)("div",{className:"text-xs text-void-600 font-mono",children:n}),(0,f.jsxs)("div",{className:"flex flex-wrap justify-center gap-2",children:[eE.map(e=>(0,f.jsx)("button",{onClick:()=>eP(e),disabled:R,className:"rounded-lg border border-neon-blue-400/40 bg-neon-blue-400/15 px-4 py-2 text-sm font-medium text-neon-blue-400 transition-all hover:bg-neon-blue-400/25 hover:shadow-[0_0_12px_rgba(0,191,255,0.3)] disabled:opacity-50",children:R?"Starting...":e.label},e.id)),(0,f.jsx)("button",{onClick:()=>B(!0),disabled:R,className:"rounded-lg border border-void-500/40 bg-void-700/50 px-4 py-2 text-sm font-medium text-void-300 transition-all hover:border-neon-blue-400/30 hover:text-neon-blue-400 disabled:opacity-50",children:"Custom..."})]}),(0,f.jsx)("button",{onClick:()=>eP(),disabled:R,className:"text-sm text-void-500 hover:text-void-300",children:"Start without prompt"}),ej()]})})}),G&&(0,f.jsxs)("div",{className:"absolute top-3 right-3 z-50 flex items-center gap-2 rounded-lg border border-void-600 bg-void-800/95 px-3 py-2 shadow-(--shadow-overlay) backdrop-blur-sm",children:[(0,f.jsx)("img",{src:G.previewUrl,alt:"Screenshot preview",className:"h-10 w-10 rounded object-cover border border-void-600"}),(0,f.jsxs)("div",{className:"flex flex-col gap-0.5",children:["uploading"===G.status&&(0,f.jsxs)("div",{className:"flex items-center gap-1.5 text-xs text-neon-blue-400",children:[(0,f.jsxs)("svg",{className:"h-3 w-3 animate-spin",viewBox:"0 0 24 24",fill:"none",children:[(0,f.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,f.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Uploading..."]}),"done"===G.status&&(0,f.jsx)("span",{className:"text-xs text-green-400",children:G.filename}),"error"===G.status&&(0,f.jsx)("span",{className:"text-xs text-red-400",children:G.message||"Upload failed"})]}),(0,f.jsx)("button",{onClick:()=>{ee(null),URL.revokeObjectURL(G.previewUrl)},className:"ml-1 text-void-500 hover:text-void-300",children:(0,f.jsx)("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2",children:(0,f.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),er&&(0,f.jsxs)("div",{className:"absolute bottom-3 right-3 left-3 z-50 rounded-lg border border-red-500/30 bg-void-800/95 shadow-(--shadow-overlay) backdrop-blur-sm",children:[(0,f.jsxs)("div",{className:"flex items-start justify-between gap-2 px-3 py-2",children:[(0,f.jsxs)("div",{className:"flex items-center gap-1.5 text-xs font-medium text-red-400",children:[(0,f.jsx)("svg",{className:"h-3.5 w-3.5 flex-shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2",children:(0,f.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L4.082 16.5c-.77.833.192 2.5 1.732 2.5z"})}),"Session exited (code: ",er.code,")"]}),(0,f.jsx)("button",{onClick:()=>ei(null),className:"text-void-500 hover:text-void-300 flex-shrink-0",children:(0,f.jsx)("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2",children:(0,f.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,f.jsx)("pre",{className:"max-h-32 overflow-auto px-3 pb-2 text-xs text-void-300 font-mono whitespace-pre-wrap",children:er.output})]}),eo&&(0,f.jsxs)("div",{className:"absolute bottom-3 right-3 left-3 z-50 rounded-lg border border-red-500/30 bg-void-800/95 shadow-(--shadow-overlay) backdrop-blur-sm",children:[(0,f.jsxs)("div",{className:"flex items-start justify-between gap-2 px-3 py-2",children:[(0,f.jsxs)("div",{className:"flex items-center gap-1.5 text-xs font-medium text-red-400",children:[(0,f.jsx)("svg",{className:"h-3.5 w-3.5 flex-shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2",children:(0,f.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L4.082 16.5c-.77.833.192 2.5 1.732 2.5z"})}),"Failed to start session"]}),(0,f.jsx)("button",{onClick:()=>el(null),className:"text-void-500 hover:text-void-300 flex-shrink-0",children:(0,f.jsx)("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2",children:(0,f.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,f.jsx)("pre",{className:"max-h-32 overflow-auto px-3 pb-2 text-xs text-void-300 font-mono whitespace-pre-wrap",children:eo})]}),ek&&(0,f.jsxs)("div",{className:`flex flex-shrink-0 items-center gap-2 px-3 py-2 ${g||"border-t border-void-700 bg-void-800"}`,children:[eO.slice(0,6).map(e=>(0,f.jsx)("button",{onClick:t=>eI(e,!t.shiftKey),title:"context"===e.id&&d.length>0?`${e.description} (${d.join(", ")}) [Shift+click to insert without submitting]`:`${e.description} [Shift+click to insert without submitting]`,className:"rounded-md border border-neon-blue-400/25 bg-neon-blue-400/10 px-2 py-1 text-xs font-medium text-neon-blue-400 transition-all hover:bg-neon-blue-400/20 hover:border-neon-blue-400/40 hover:shadow-[0_0_8px_rgba(0,191,255,0.15)]",children:e.label},e.id)),eO.length>6&&(0,f.jsxs)("div",{className:"relative",ref:X,children:[(0,f.jsx)("button",{onClick:()=>q(!V),className:"rounded bg-void-700 px-2 py-1 text-xs font-medium text-void-300 hover:bg-void-600",children:"..."}),V&&(0,f.jsx)("div",{className:"absolute bottom-full right-0 mb-1 min-w-[120px] rounded-lg border border-void-600 bg-void-800 py-1 shadow-(--shadow-overlay)",children:eO.slice(6).map(e=>(0,f.jsx)("button",{onClick:t=>eI(e,!t.shiftKey),className:"block w-full px-3 py-1.5 text-left text-xs text-void-300 hover:bg-void-700",title:`${e.description} [Shift+click to insert without submitting]`,children:e.label},e.id))})]}),(0,f.jsx)("div",{className:"flex-1"}),P?.provider&&"claude"!==P.provider&&(0,f.jsx)("span",{className:"text-xs text-void-500",children:w?.providers[P.provider]?.displayName||P.provider}),(0,f.jsxs)("div",{className:"relative",ref:Z,children:[(0,f.jsx)("button",{onClick:()=>K(!0),disabled:J,className:"rounded-md border border-void-500/25 bg-void-700/50 px-2 py-1 text-xs font-medium text-void-400 transition-all hover:border-neon-blue-400/30 hover:text-neon-blue-400 hover:bg-neon-blue-400/10 disabled:opacity-50",title:"Re-detect and link the current session ID",children:J?"Relinking...":"Relink"}),W&&(0,f.jsxs)("div",{className:"absolute bottom-full right-0 mb-2 w-72 rounded-lg border border-void-600 bg-void-800 p-3 shadow-(--shadow-overlay) z-50",children:[(0,f.jsx)("div",{className:"text-xs text-void-300 mb-2",children:"This will link the most recently active session file to this card."}),(0,f.jsx)("div",{className:"text-xs text-amber-400/80 mb-3",children:"Make sure you have interacted with this session recently so it has the latest modification time."}),(0,f.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,f.jsx)("button",{onClick:()=>K(!1),className:"rounded border border-void-600 bg-void-700 px-2 py-1 text-xs text-void-400 hover:text-void-300",children:"Cancel"}),(0,f.jsx)("button",{onClick:eL,disabled:J,className:"rounded border border-neon-blue-400/40 bg-neon-blue-400/15 px-2 py-1 text-xs text-neon-blue-400 hover:bg-neon-blue-400/25 disabled:opacity-50",children:J?"Relinking...":"Confirm"})]})]})]}),(0,f.jsxs)("button",{onClick:eN,disabled:F,className:"flex items-center gap-1 rounded-md border border-red-400/25 bg-red-400/10 px-2 py-1 text-xs font-medium text-red-400 transition-all hover:bg-red-400/20 hover:border-red-400/40 hover:shadow-[0_0_8px_rgba(255,59,92,0.15)] disabled:opacity-50",children:[F&&(0,f.jsxs)("svg",{className:"h-3 w-3 animate-spin",viewBox:"0 0 24 24",fill:"none",children:[(0,f.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,f.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),F?"Stopping":"Stop"]})]})]})}e.s(["ClaudeTerminalPanel",()=>h],97480)},71174,e=>{"use strict";class t{diff(e,t,n={}){let r;"function"==typeof n?(r=n,n={}):"callback"in n&&(r=n.callback);let i=this.castInput(e,n),o=this.castInput(t,n),l=this.removeEmpty(this.tokenize(i,n)),a=this.removeEmpty(this.tokenize(o,n));return this.diffWithOptionsObj(l,a,n,r)}diffWithOptionsObj(e,t,n,r){var i;let o=e=>(e=this.postProcess(e,n),r)?void setTimeout(function(){r(e)},0):e,l=t.length,a=e.length,s=1,u=l+a;null!=n.maxEditLength&&(u=Math.min(u,n.maxEditLength));let c=null!=(i=n.timeout)?i:1/0,d=Date.now()+c,f=[{oldPos:-1,lastComponent:void 0}],p=this.extractCommon(f[0],t,e,0,n);if(f[0].oldPos+1>=a&&p+1>=l)return o(this.buildValues(f[0].lastComponent,t,e));let h=-1/0,m=1/0,g=()=>{for(let r=Math.max(h,-s);r<=Math.min(m,s);r+=2){let i,s=f[r-1],u=f[r+1];s&&(f[r-1]=void 0);let c=!1;if(u){let e=u.oldPos-r;c=u&&0<=e&&e<l}let d=s&&s.oldPos+1<a;if(!c&&!d){f[r]=void 0;continue}if(i=!d||c&&s.oldPos<u.oldPos?this.addToPath(u,!0,!1,0,n):this.addToPath(s,!1,!0,1,n),p=this.extractCommon(i,t,e,r,n),i.oldPos+1>=a&&p+1>=l)return o(this.buildValues(i.lastComponent,t,e))||!0;f[r]=i,i.oldPos+1>=a&&(m=Math.min(m,r-1)),p+1>=l&&(h=Math.max(h,r+1))}s++};if(r)!function e(){setTimeout(function(){if(s>u||Date.now()>d)return r(void 0);g()||e()},0)}();else for(;s<=u&&Date.now()<=d;){let e=g();if(e)return e}}addToPath(e,t,n,r,i){let o=e.lastComponent;return o&&!i.oneChangePerToken&&o.added===t&&o.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:o.count+1,added:t,removed:n,previousComponent:o.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:o}}}extractCommon(e,t,n,r,i){let o=t.length,l=n.length,a=e.oldPos,s=a-r,u=0;for(;s+1<o&&a+1<l&&this.equals(n[a+1],t[s+1],i);)s++,a++,u++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return u&&!i.oneChangePerToken&&(e.lastComponent={count:u,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=a,s}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){let r,i=[];for(;e;)i.push(e),r=e.previousComponent,delete e.previousComponent,e=r;i.reverse();let o=i.length,l=0,a=0,s=0;for(;l<o;l++){let e=i[l];if(e.removed)e.value=this.join(n.slice(s,s+e.count)),s+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(a,a+e.count);r=r.map(function(e,t){let r=n[s+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(a,a+e.count));a+=e.count,e.added||(s+=e.count)}}return i}}let n=new class extends t{constructor(){super(...arguments),this.tokenize=r}equals(e,t,n){return n.ignoreWhitespace?(n.newlineIsToken&&e.includes("\n")||(e=e.trim()),n.newlineIsToken&&t.includes("\n")||(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith("\n")&&(e=e.slice(0,-1)),t.endsWith("\n")&&(t=t.slice(0,-1))),super.equals(e,t,n)}};function r(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,"\n"));let n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let e=0;e<r.length;e++){let i=r[e];e%2&&!t.newlineIsToken?n[n.length-1]+=i:n.push(i)}return n}let i={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function o(e,t,r,i,o,l,a){var s;let u;void 0===(u=a?"function"==typeof a?{callback:a}:a:{}).context&&(u.context=4);let c=u.context;if(u.newlineIsToken)throw Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(!u.callback)return d(n.diff(r,i,u));{let{callback:e}=u;s=Object.assign(Object.assign({},u),{callback:t=>{e(d(t))}}),n.diff(r,i,s)}function d(n){if(!n)return;function r(e){return e.map(function(e){return" "+e})}n.push({value:"",lines:[]});let i=[],a=0,s=0,u=[],d=1,f=1;for(let e=0;e<n.length;e++){let t=n[e],o=t.lines||function(e){let t=e.endsWith("\n"),n=e.split("\n").map(e=>e+"\n");return t?n.pop():n.push(n.pop().slice(0,-1)),n}(t.value);if(t.lines=o,t.added||t.removed){if(!a){let t=n[e-1];a=d,s=f,t&&(a-=(u=c>0?r(t.lines.slice(-c)):[]).length,s-=u.length)}for(let e of o)u.push((t.added?"+":"-")+e);t.added?f+=o.length:d+=o.length}else{if(a)if(o.length<=2*c&&e<n.length-2)for(let e of r(o))u.push(e);else{let e=Math.min(o.length,c);for(let t of r(o.slice(0,e)))u.push(t);let t={oldStart:a,oldLines:d-a+e,newStart:s,newLines:f-s+e,lines:u};i.push(t),a=0,s=0,u=[]}d+=o.length,f+=o.length}}for(let e of i)for(let t=0;t<e.lines.length;t++)e.lines[t].endsWith("\n")?e.lines[t]=e.lines[t].slice(0,-1):(e.lines.splice(t+1,0,"\"),t++);return{oldFileName:e,newFileName:t,oldHeader:o,newHeader:l,hunks:i}}}function l(e,t){if(t||(t=i),Array.isArray(e)){if(e.length>1&&!t.includeFileHeaders)throw Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");return e.map(e=>l(e,t)).join("\n")}let n=[];t.includeIndex&&e.oldFileName==e.newFileName&&n.push("Index: "+e.oldFileName),t.includeUnderline&&n.push("==================================================================="),t.includeFileHeaders&&(n.push("--- "+e.oldFileName+(void 0===e.oldHeader?"":" "+e.oldHeader)),n.push("+++ "+e.newFileName+(void 0===e.newHeader?"":" "+e.newHeader)));for(let t=0;t<e.hunks.length;t++){let r=e.hunks[t];for(let e of(0===r.oldLines&&(r.oldStart-=1),0===r.newLines&&(r.newStart-=1),n.push("@@ -"+r.oldStart+","+r.oldLines+" +"+r.newStart+","+r.newLines+" @@"),r.lines))n.push(e)}return n.join("\n")+"\n"}function a(e,t,n,r,i,a,s){if("function"==typeof s&&(s={callback:s}),null==s?void 0:s.callback){let{callback:u}=s;o(e,t,n,r,i,a,Object.assign(Object.assign({},s),{callback:e=>{e?u(l(e,s.headerOptions)):u(void 0)}}))}else{let u=o(e,t,n,r,i,a,s);if(!u)return;return l(u,null==s?void 0:s.headerOptions)}}e.s(["createTwoFilesPatch",()=>a],71174)},5903,e=>{"use strict";var t=e.i(18050),n=e.i(71645);let r={backlog:"bg-void-200 text-void-500 dark:bg-void-700 dark:text-void-300",design:"bg-neon-blue-50 text-neon-blue-600 dark:bg-neon-blue-900/50 dark:text-neon-blue-300",implementation:"bg-neon-blue-100 text-neon-blue-700 dark:bg-neon-blue-900/50 dark:text-neon-blue-300",testing:"bg-neon-orange-50 text-neon-orange-600 dark:bg-neon-orange-900/50 dark:text-neon-orange-300",done:"bg-green-50 text-green-700 dark:bg-green-900/50 dark:text-green-300"};function i({contextProjectId:e,onResultClick:i}){let[o,l]=(0,n.useState)(""),[a,s]=(0,n.useState)([]),[u,c]=(0,n.useState)([]),[d,f]=(0,n.useState)(!1),[p,h]=(0,n.useState)(!1),m=(0,n.useRef)(null),g=(0,n.useRef)(void 0),x=(0,n.useCallback)(async()=>{try{let e=await fetch("/api/search?mode=active");if(e.ok){let t=(await e.json()).results||[];c(t),t.length>0&&f(!0)}}catch{}},[]),y=(0,n.useCallback)(async t=>{if(t.trim().length<2){s([]),0===t.trim().length&&u.length>0?f(!0):f(!1);return}h(!0);try{let n=new URLSearchParams({q:t.trim()});e&&n.set("projectId",e);let r=await fetch(`/api/search?${n}`);if(r.ok){let e=await r.json();s(e.results||[]),f(!0)}}catch{}h(!1)},[e,u.length]);(0,n.useEffect)(()=>(g.current&&clearTimeout(g.current),g.current=setTimeout(()=>y(o),300),()=>{g.current&&clearTimeout(g.current)}),[o,y]),(0,n.useEffect)(()=>{function e(e){m.current&&!m.current.contains(e.target)&&f(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);let b=0===o.trim().length&&u.length>0,v=b?u:a,k=new Set,w=v.filter(e=>!k.has(e.cardId)&&(k.add(e.cardId),!0)),C=w.filter(e=>!e.isArchived),S=w.filter(e=>e.isArchived),j=C.reduce((e,t)=>(e[t.projectId]||(e[t.projectId]=[]),e[t.projectId].push(t),e),{}),E=S.reduce((e,t)=>(e[t.projectId]||(e[t.projectId]=[]),e[t.projectId].push(t),e),{});return(0,t.jsxs)("div",{ref:m,className:"relative w-full max-w-md",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("svg",{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-void-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),(0,t.jsx)("input",{type:"text",value:o,onChange:e=>l(e.target.value),onFocus:()=>{a.length>0?f(!0):0===o.trim().length&&x()},onKeyDown:function(e){"Escape"===e.key&&(f(!1),l(""))},placeholder:e?"Search cards...":"Search cards across projects...",className:"w-full rounded-lg border border-void-200 bg-void-50 py-2 pl-10 pr-4 text-sm text-void-950 placeholder-void-400 focus:border-neon-blue-400/60 focus:bg-white focus:shadow-[0_0_12px_-2px_rgba(0,191,255,0.25)] focus:outline-none dark:border-void-700/50 dark:bg-void-800/50 dark:text-void-100 dark:placeholder-void-500 dark:focus:border-neon-blue-400/60 dark:focus:bg-void-800"}),p&&(0,t.jsx)("div",{className:"absolute right-3 top-1/2 -translate-y-1/2",children:(0,t.jsx)("div",{className:"h-4 w-4 animate-spin rounded-full border-2 border-void-300 border-t-neon-blue-400"})})]}),d&&(0,t.jsx)("div",{className:"absolute top-full z-50 mt-1 w-full overflow-hidden rounded-lg border border-void-200 bg-void-50 shadow-(--shadow-overlay) dark:border-void-700 dark:bg-void-900",children:0===w.length?(0,t.jsx)("div",{className:"px-4 py-3 text-sm text-void-500 dark:text-void-400",children:b?"No active sessions":"No results found"}):(0,t.jsxs)("div",{className:"max-h-80 overflow-y-auto",children:[b&&(0,t.jsx)("div",{className:"sticky top-0 z-10 border-b border-neon-blue-200 bg-neon-blue-50 px-3 py-1.5 text-xs font-medium text-neon-blue-600 dark:border-neon-blue-800 dark:bg-neon-blue-950/50 dark:text-neon-blue-400",children:(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,t.jsxs)("span",{className:"relative flex h-2 w-2",children:[(0,t.jsx)("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-neon-blue-400 opacity-75"}),(0,t.jsx)("span",{className:"relative inline-flex h-2 w-2 rounded-full bg-neon-blue-500"})]}),"Active Sessions"]})}),Object.entries(j).map(([e,n])=>(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:`sticky border-b px-3 py-1.5 text-xs font-medium ${b?"top-[29px] border-void-100/50 bg-void-50 text-void-400 dark:border-void-700/50 dark:bg-void-900 dark:text-void-500":"top-0 border-void-100 bg-void-100 text-void-500 dark:border-void-700 dark:bg-void-800 dark:text-void-400"}`,children:n[0].projectName}),n.map((e,n)=>(0,t.jsxs)("button",{onClick:()=>{f(!1),l(""),i?.(e)},className:`block w-full px-3 py-2 text-left hover:bg-void-100 dark:hover:bg-void-800 ${b?"border-l-2 border-l-neon-blue-400/50":""}`,children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[b&&(0,t.jsx)("span",{className:"flex h-2 w-2 shrink-0 rounded-full bg-neon-blue-400",style:{boxShadow:"0 0 6px rgba(0,191,255,0.5)"}}),(0,t.jsx)("span",{className:"text-sm font-medium text-void-900 dark:text-void-100",children:e.cardTitle}),(0,t.jsx)("span",{className:`rounded px-1.5 py-0.5 text-[10px] font-medium ${r[e.stage]}`,children:e.stage})]}),(0,t.jsx)("p",{className:`mt-0.5 truncate text-xs text-void-500 dark:text-void-400 ${b?"ml-4":""}`,children:e.snippet})]},`${e.cardId}-${e.matchField}-${n}`))]},e)),S.length>0&&!b&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"sticky top-0 border-b border-amber-200 bg-amber-50 px-3 py-1.5 text-xs font-medium text-amber-600 dark:border-amber-800 dark:bg-amber-950/50 dark:text-amber-400",children:"Archived"}),Object.entries(E).map(([e,n])=>(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"border-b border-void-100 bg-void-100/50 px-3 py-1 text-[10px] text-void-400 dark:border-void-700 dark:bg-void-800/50 dark:text-void-500",children:n[0].projectName}),n.map((e,n)=>(0,t.jsxs)("button",{onClick:()=>{f(!1),l(""),i?.(e)},className:"block w-full px-3 py-2 text-left opacity-70 hover:bg-void-100 dark:hover:bg-void-800",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-sm font-medium text-void-600 dark:text-void-400",children:e.cardTitle}),(0,t.jsx)("span",{className:"rounded bg-amber-100 px-1.5 py-0.5 text-[10px] font-medium text-amber-600 dark:bg-amber-900/40 dark:text-amber-400",children:"archived"})]}),(0,t.jsx)("p",{className:"mt-0.5 truncate text-xs text-void-500 dark:text-void-400",children:e.snippet})]},`archived-${e.cardId}-${e.matchField}-${n}`))]},`archived-${e}`))]})]})})]})}e.s(["SearchBar",()=>i])},22530,e=>{"use strict";var t=e.i(18050),n=e.i(71645);function r({className:e=""}){let[r,i]=(0,n.useState)("dark"),[o,l]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{let e;i((e=localStorage.getItem("slycode-theme"))||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")),l(!0)},[]),(0,n.useEffect)(()=>{if(!o)return;let e=document.documentElement;"dark"===r?e.classList.add("dark"):e.classList.remove("dark"),localStorage.setItem("slycode-theme",r)},[r,o]),o)?(0,t.jsx)("button",{onClick:function(){i(e=>"dark"===e?"light":"dark")},title:`Switch to ${"dark"===r?"light":"dark"} mode`,className:`rounded-lg border border-void-200/40 bg-transparent p-2 text-void-500 transition-all hover:border-neon-blue-400/40 hover:bg-neon-blue-400/5 hover:text-neon-blue-400 dark:border-void-700/40 dark:text-void-400 dark:hover:border-neon-blue-400/40 dark:hover:bg-neon-blue-400/5 dark:hover:text-neon-blue-400 ${e}`,children:"dark"===r?(0,t.jsxs)("svg",{className:"h-4 w-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"5"}),(0,t.jsx)("path",{strokeLinecap:"round",d:"M12 1v2m0 18v2M4.22 4.22l1.42 1.42m12.72 12.72l1.42 1.42M1 12h2m18 0h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"})]}):(0,t.jsx)("svg",{className:"h-4 w-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"})})}):(0,t.jsx)("div",{className:`h-8 w-8 ${e}`})}e.s(["ThemeToggle",()=>r])},84608,e=>{"use strict";var t=e.i(71645);function n({onEscape:e,onNumberKey:n,enabled:r=!0}){let i=(0,t.useRef)(e),o=(0,t.useRef)(n);(0,t.useEffect)(()=>{i.current=e,o.current=n}),(0,t.useEffect)(()=>{if(!r)return;let e=e=>{let t=e.target;if("INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&"SELECT"!==t.tagName&&!t.isContentEditable&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&!e.shiftKey){if("Escape"===e.key&&i.current)return void i.current();if(o.current&&e.key>="0"&&e.key<="9"){let t="0"===e.key?10:parseInt(e.key,10);e.preventDefault(),o.current(t)}}};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[r])}e.s(["useKeyboardShortcuts",()=>n])},26568,(e,t,n)=>{"use strict";var r=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,i=/\n/g,o=/^\s*/,l=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,c=/^\s+|\s+$/g;function d(e){return e?e.replace(c,""):""}t.exports=function(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,c=1;function f(e){var t=e.match(i);t&&(n+=t.length);var r=e.lastIndexOf("\n");c=~r?e.length-r:c+e.length}function p(){var e={line:n,column:c};return function(t){return t.position=new h(e),g(o),t}}function h(e){this.start=e,this.end={line:n,column:c},this.source=t.source}function m(r){var i=Error(t.source+":"+n+":"+c+": "+r);if(i.reason=r,i.filename=t.source,i.line=n,i.column=c,i.source=e,t.silent);else throw i}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function x(e){var t;for(e=e||[];t=y();)!1!==t&&e.push(t);return e}function y(){var t=p();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 m("End of comment missing");var r=e.slice(2,n-2);return c+=2,f(r),e=e.slice(n),c+=2,t({type:"comment",comment:r})}}h.prototype.content=e,g(o);var b,v=[];for(x(v);b=function(){var e=p(),t=g(l);if(t){if(y(),!g(a))return m("property missing ':'");var n=g(s),i=e({type:"declaration",property:d(t[0].replace(r,"")),value:n?d(n[0].replace(r,"")):""});return g(u),i}}();)!1!==b&&(v.push(b),x(v));return v}},70454,(e,t,n)=>{"use strict";var r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,i.default)(e),o="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:i}=e;o?t(r,i,e):i&&((n=n||{})[r]=i)}),n};let i=r(e.r(26568))},65185,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.camelCase=void 0;var r=/^--[a-zA-Z0-9_-]+$/,i=/-([a-z])/g,o=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},u=function(e,t){return"".concat(t,"-")};n.camelCase=function(e,t){var n;return(void 0===t&&(t={}),!(n=e)||o.test(n)||r.test(n))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,u):e.replace(l,u)).replace(i,s))}},15511,(e,t,n)=>{"use strict";var r=(e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(e.r(70454)),i=e.r(65185);function o(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}o.default=o,t.exports=o},4100,(e,t,n)=>{"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=Object.defineProperty,l=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"),o=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!o)return!1;for(t in e);return void 0===t||r.call(e,t)},u=function(e,t){o&&"__proto__"===t.name?o(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(l)return l(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,o,l,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)||(o=a(i)))?(o?(o=!1,l=r&&a(r)?r:[]):l=r&&s(r)?r:{},u(d,{name:n,newValue:e(h,l,i)})):void 0!==i&&u(d,{name:n,newValue:i}));return d}},9308,e=>{"use strict";var t=e.i(18050);function n(){}function r(){}let i=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,o=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,l={};function a(e,t){return((t||l).jsx?o:i).test(e)}let s=/[ \t\n\f\r]/g;function u(e){return""===e.replace(s,"")}class c{constructor(e,t){this.attribute=t,this.property=e}}c.prototype.attribute="",c.prototype.booleanish=!1,c.prototype.boolean=!1,c.prototype.commaOrSpaceSeparated=!1,c.prototype.commaSeparated=!1,c.prototype.defined=!1,c.prototype.mustUseProperty=!1,c.prototype.number=!1,c.prototype.overloadedBoolean=!1,c.prototype.property="",c.prototype.spaceSeparated=!1,c.prototype.space=void 0;let d=0,f=b(),p=b(),h=b(),m=b(),g=b(),x=b(),y=b();function b(){return 2**++d}e.s(["boolean",0,f,"booleanish",0,p,"commaOrSpaceSeparated",0,y,"commaSeparated",0,x,"number",0,m,"overloadedBoolean",0,h,"spaceSeparated",0,g],744);var v=e.i(744);let k=Object.keys(v);class w extends c{constructor(e,t,n,r){let i=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++i<k.length;){const e=k[i];!function(e,t,n){n&&(e[t]=n)}(this,k[i],(n&v[e])===v[e])}}}function C(e){return e.toLowerCase()}w.prototype.defined=!0;let S=/[A-Z]/g,j=/-[a-z]/g,E=/^data[-\w.:]+$/i;function T(e){return"-"+e.toLowerCase()}function P(e){return e.charAt(1).toUpperCase()}let N={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 L{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function A(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new L(n,r,t)}function I(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let o=new w(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[C(r)]=r,n[C(o.attribute)]=r}return new L(t,n,e.space)}L.prototype.normal={},L.prototype.property={},L.prototype.space=void 0;let O=I({properties:{ariaActiveDescendant:null,ariaAtomic:p,ariaAutoComplete:null,ariaBusy:p,ariaChecked:p,ariaColCount:m,ariaColIndex:m,ariaColSpan:m,ariaControls:g,ariaCurrent:null,ariaDescribedBy:g,ariaDetails:null,ariaDisabled:p,ariaDropEffect:g,ariaErrorMessage:null,ariaExpanded:p,ariaFlowTo:g,ariaGrabbed:p,ariaHasPopup:null,ariaHidden:p,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:g,ariaLevel:m,ariaLive:null,ariaModal:p,ariaMultiLine:p,ariaMultiSelectable:p,ariaOrientation:null,ariaOwns:g,ariaPlaceholder:null,ariaPosInSet:m,ariaPressed:p,ariaReadOnly:p,ariaRelevant:null,ariaRequired:p,ariaRoleDescription:g,ariaRowCount:m,ariaRowIndex:m,ariaRowSpan:m,ariaSelected:p,ariaSetSize:m,ariaSort:null,ariaValueMax:m,ariaValueMin:m,ariaValueNow:m,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function D(e,t){return t in e?e[t]:t}function M(e,t){return D(e,t.toLowerCase())}let R=I({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:x,acceptCharset:g,accessKey:g,action:null,allow:null,allowFullScreen:f,allowPaymentRequest:f,allowUserMedia:f,alt:null,as:null,async:f,autoCapitalize:null,autoComplete:g,autoFocus:f,autoPlay:f,blocking:g,capture:null,charSet:null,checked:f,cite:null,className:g,cols:m,colSpan:null,content:null,contentEditable:p,controls:f,controlsList:g,coords:m|x,crossOrigin:null,data:null,dateTime:null,decoding:null,default:f,defer:f,dir:null,dirName:null,disabled:f,download:h,draggable:p,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:f,formTarget:null,headers:g,height:m,hidden:h,high:m,href:null,hrefLang:null,htmlFor:g,httpEquiv:g,id:null,imageSizes:null,imageSrcSet:null,inert:f,inputMode:null,integrity:null,is:null,isMap:f,itemId:null,itemProp:g,itemRef:g,itemScope:f,itemType:g,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:f,low:m,manifest:null,max:null,maxLength:m,media:null,method:null,min:null,minLength:m,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:m,pattern:null,ping:g,placeholder:null,playsInline:f,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:f,referrerPolicy:null,rel:g,required:f,reversed:f,rows:m,rowSpan:m,sandbox:g,scope:null,scoped:f,seamless:f,selected:f,shadowRootClonable:f,shadowRootDelegatesFocus:f,shadowRootMode:null,shape:null,size:m,sizes:null,slot:null,span:m,spellCheck:p,src:null,srcDoc:null,srcLang:null,srcSet:null,start:m,step:null,style:null,tabIndex:m,target:null,title:null,translate:null,type:null,typeMustMatch:f,useMap:null,value:p,width:m,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:g,axis:null,background:null,bgColor:null,border:m,borderColor:null,bottomMargin:m,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:m,leftMargin:m,link:null,longDesc:null,lowSrc:null,marginHeight:m,marginWidth:m,noResize:f,noHref:f,noShade:f,noWrap:f,object:null,profile:null,prompt:null,rev:null,rightMargin:m,rules:null,scheme:null,scrolling:p,standby:null,summary:null,text:null,topMargin:m,valueType:null,version:null,vAlign:null,vLink:null,vSpace:m,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:f,disableRemotePlayback:f,prefix:null,property:null,results:m,security:null,unselectable:null},space:"html",transform:M}),_=I({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",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:y,accentHeight:m,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:m,amplitude:m,arabicForm:null,ascent:m,attributeName:null,attributeType:null,azimuth:m,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:m,by:null,calcMode:null,capHeight:m,className:g,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:m,diffuseConstant:m,direction:null,display:null,dur:null,divisor:m,dominantBaseline:null,download:f,dx:null,dy:null,edgeMode:null,editable:null,elevation:m,enableBackground:null,end:null,event:null,exponent:m,externalResourcesRequired:null,fill:null,fillOpacity:m,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:x,g2:x,glyphName:x,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:m,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:m,horizOriginX:m,horizOriginY:m,id:null,ideographic:m,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:m,k:m,k1:m,k2:m,k3:m,k4:m,kernelMatrix:y,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:m,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:m,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:m,overlineThickness:m,paintOrder:null,panose1:null,path:null,pathLength:m,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:g,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:m,pointsAtY:m,pointsAtZ:m,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:y,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:y,rev:y,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:y,requiredFeatures:y,requiredFonts:y,requiredFormats:y,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:m,specularExponent:m,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:m,strikethroughThickness:m,string:null,stroke:null,strokeDashArray:y,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:m,strokeOpacity:m,strokeWidth:null,style:null,surfaceScale:m,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:y,tabIndex:m,tableValues:null,target:null,targetX:m,targetY:m,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:y,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:m,underlineThickness:m,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:m,values:null,vAlphabetic:m,vMathematical:m,vectorEffect:null,vHanging:m,vIdeographic:m,version:null,vertAdvY:m,vertOriginX:m,vertOriginY:m,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:m,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:D}),F=I({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()}),z=I({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:M}),U=I({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),B=A([O,R,F,z,U],"html"),$=A([O,_,F,z,U],"svg");var H=e.i(15511);let V=W("end"),q=W("start");function W(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 K(e){return e&&"object"==typeof e?"position"in e||"type"in e?Q(e.position):"start"in e||"end"in e?Q(e):"line"in e||"column"in e?J(e):"":""}function J(e){return X(e&&e.line)+":"+X(e&&e.column)}function Q(e){return J(e&&e.start)+"-"+J(e&&e.end)}function X(e){return e&&"number"==typeof e?e:1}class Z extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},o=!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&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){const 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&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const l=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=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=l?l.line:void 0,this.name=K(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=o&&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}}Z.prototype.file="",Z.prototype.name="",Z.prototype.reason="",Z.prototype.message="",Z.prototype.stack="",Z.prototype.column=void 0,Z.prototype.line=void 0,Z.prototype.ancestors=void 0,Z.prototype.cause=void 0,Z.prototype.fatal=void 0,Z.prototype.place=void 0,Z.prototype.ruleId=void 0,Z.prototype.source=void 0;let Y={}.hasOwnProperty,G=new Map,ee=/[A-Z]/g,et=new Set(["table","tbody","thead","tfoot","tr"]),en=new Set(["td","th"]),er="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ei(e,t,r){var i,o,l,a,s,d,f,p,h;let m,g,x,y,b,v,k,L,A,I,O;return"element"===t.type?(i=e,o=t,l=r,g=m=i.schema,"svg"===o.tagName.toLowerCase()&&"html"===m.space&&(i.schema=$),i.ancestors.push(o),x=es(i,o.tagName,!1),y=function(e,t){let n,r,i={};for(r in t.properties)if("children"!==r&&Y.call(t.properties,r)){let o=function(e,t,n){let r=function(e,t){let n=C(t),r=t,i=c;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&E.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(j,P);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!j.test(e)){let n=e.replace(S,T);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=w}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){var i;let t;if(Array.isArray(n)&&(n=r.commaSeparated?(t={},(""===(i=n)[i.length-1]?[...i,""]:i).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return(0,H.default)(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new Z("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=er+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)Y.call(e,t)&&(n[function(e){let t=e.replace(ee,ec);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?N[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(o){let[r,l]=o;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof l&&en.has(t.tagName)?n=l:i[r]=l}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(i,o),b=ea(i,o),et.has(o.tagName)&&(b=b.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&u(e.value):u(e))})),eo(i,y,x,o),el(y,b),i.ancestors.pop(),i.schema=m,i.create(o,x,y,l)):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let r=t.data.estree.body[0];return n("ExpressionStatement"===r.type),e.evaluater.evaluateExpression(r.expression)}eu(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?(a=e,s=t,d=r,k=v=a.schema,"svg"===s.name&&"html"===v.space&&(a.schema=$),a.ancestors.push(s),L=null===s.name?a.Fragment:es(a,s.name,!0),A=function(e,t){let r={};for(let i of t.attributes)if("mdxJsxExpressionAttribute"===i.type)if(i.data&&i.data.estree&&e.evaluater){let t=i.data.estree.body[0];n("ExpressionStatement"===t.type);let o=t.expression;n("ObjectExpression"===o.type);let l=o.properties[0];n("SpreadElement"===l.type),Object.assign(r,e.evaluater.evaluateExpression(l.argument))}else eu(e,t.position);else{let o,l=i.name;if(i.value&&"object"==typeof i.value)if(i.value.data&&i.value.data.estree&&e.evaluater){let t=i.value.data.estree.body[0];n("ExpressionStatement"===t.type),o=e.evaluater.evaluateExpression(t.expression)}else eu(e,t.position);else o=null===i.value||i.value;r[l]=o}return r}(a,s),I=ea(a,s),eo(a,A,L,s),el(A,I),a.ancestors.pop(),a.schema=v,a.create(s,L,A,d)):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);eu(e,t.position)}(e,t):"root"===t.type?(f=e,p=t,h=r,el(O={},ea(f,p)),f.create(p,f.Fragment,O,h)):"text"===t.type?t.value:void 0}function eo(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function el(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function ea(e,t){let n=[],r=-1,i=e.passKeys?new Map:G;for(;++r<t.children.length;){let o,l=t.children[r];if(e.passKeys){let e="element"===l.type?l.tagName:"mdxJsxFlowElement"===l.type||"mdxJsxTextElement"===l.type?l.name:void 0;if(e){let t=i.get(e)||0;o=e+"-"+t,i.set(e,t+1)}}let a=ei(e,l,o);void 0!==a&&n.push(a)}return n}function es(e,t,r){let i;if(r)if(t.includes(".")){let e,r=t.split("."),o=-1;for(;++o<r.length;){let t=a(r[o])?{type:"Identifier",name:r[o]}:{type:"Literal",value:r[o]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(o&&"Literal"===t.type),optional:!1}:t}n(e,"always a result"),i=e}else i=a(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else i={type:"Literal",value:t};if("Literal"===i.type){let t=i.value;return Y.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(i);eu(e)}function eu(e,t){let n=new Z("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=er+"#cannot-handle-mdx-estrees-without-createevaluater",n}function ec(e){return"-"+e.toLowerCase()}let ed={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"]};e.i(71645);let ef={};function ep(e,t){let n=t||ef;return eh(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function eh(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 em(e.children,t,n)}return Array.isArray(e)?em(e,t,n):""}function em(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=eh(e[i],t,n);return r.join("")}function eg(e,t,n,r){let i,o=e.length,l=0;if(t=t<0?-t>o?0:o+t:t>o?o: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);l<r.length;)(i=r.slice(l,l+1e4)).unshift(t,0),e.splice(...i),l+=1e4,t+=1e4}function ex(e,t){return e.length>0?(eg(e,e.length,0,t),e):t}let ey={}.hasOwnProperty;function eb(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,i=(ey.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];if(o)for(r in o){ey.call(i,r)||(i[r]=[]);let e=o[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);eg(e,0,0,r)}(i[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}let ev=eI(/[A-Za-z]/),ek=eI(/[\dA-Za-z]/),ew=eI(/[#-'*+\--9=?A-Z^-~]/);function eC(e){return null!==e&&(e<32||127===e)}let eS=eI(/\d/),ej=eI(/[\dA-Fa-f]/),eE=eI(/[!-/:-@[-`{-~]/);function eT(e){return null!==e&&e<-2}function eP(e){return null!==e&&(e<0||32===e)}function eN(e){return -2===e||-1===e||32===e}let eL=eI(/\p{P}|\p{S}/u),eA=eI(/\s/);function eI(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function eO(e,t,n,r){let i=r?r-1:1/0,o=0;return function(r){return eN(r)?(e.enter(n),function r(l){return eN(l)&&o++<i?(e.consume(l),r):(e.exit(n),t(l))}(r)):t(r)}}let eD={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"),eO(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 eT(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},eM={tokenize:function(e){let t,n,r,i=this,o=[],l=0;return a;function a(t){if(l<o.length){let n=o[l];return i.containerState=n[1],e.attempt(n[0].continuation,s,u)(t)}return u(t)}function s(e){if(l++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&x();let r=i.events.length,o=r;for(;o--;)if("exit"===i.events[o][0]&&"chunkFlow"===i.events[o][1].type){n=i.events[o][1].end;break}g(l);let a=r;for(;a<i.events.length;)i.events[a][1].end={...n},a++;return eg(i.events,o+1,0,i.events.slice(r)),i.events.length=a,u(e)}return a(e)}function u(n){if(l===o.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(eR,c,d)(n)}function c(e){return t&&x(),g(l),f(e)}function d(e){return i.parser.lazy[i.now().line]=l!==o.length,r=i.now().offset,h(e)}function f(t){return i.containerState={},e.attempt(eR,p,h)(t)}function p(e){return l++,o.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 eT(n)?(e.consume(n),m(e.exit("chunkFlow")),l=0,i.interrupt=void 0,a):(e.consume(n),t)}(r)}function m(e,o){let a=i.sliceStream(e);if(o&&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,o=t.events.length;for(;o--;)if(t.events[o][1].start.offset<r&&(!t.events[o][1].end||t.events[o][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(l),o=a;o<i.events.length;)i.events[o][1].end={...n},o++;eg(i.events,s+1,0,i.events.slice(a)),i.events.length=o}}function g(t){let n=o.length;for(;n-- >t;){let t=o[n];i.containerState=t[1],t[0].exit.call(i,e)}o.length=t}function x(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},eR={tokenize:function(e,t,n){return eO(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},e_={partial:!0,tokenize:function(e,t,n){return function(t){return eN(t)?eO(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||eT(e)?t(e):n(e)}}};class eF{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&&ez(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),ez(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ez(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);ez(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);ez(this.left,t.reverse())}}}function ez(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 eU(e){let t,n,r,i,o,l,a,s={},u=-1,c=new eF(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)<(l=t[1]._tokenizer.events).length&&"lineEndingBlank"===l[r][1].type&&(r+=2),r<l.length&&"content"===l[r][1].type))for(;++r<l.length&&"content"!==l[r][1].type;)"chunkText"===l[r][1].type&&(l[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],o=e.get(t)[2],l=t-1,a=[],s=i._tokenizer;!s&&(s=o.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(++l)[1]!==p;);a.push(l),!p._tokenizer&&(n=o.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},(o=c.slice(n,u)).unshift(t),c.splice(n,u-n+1,o))}}return eg(e,0,1/0,c.slice(0)),!a}let eB={resolve:function(e){return eU(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):eT(t)?e.check(e$,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},e$={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"),eO(e,i,"linePrefix")};function i(i){if(null===i||eT(i))return n(i);let o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},eH={tokenize:function(e){let t=this,n=e.attempt(e_,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,eO(e,e.attempt(this.parser.constructs.flow,r,e.attempt(eB,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)}}},eV={resolveAll:eJ()},eq=eK("string"),eW=eK("text");function eK(e){return{resolveAll:eJ("text"===e?eQ:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,o,l);return o;function o(e){return s(e)?i(e):l(e)}function l(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 eJ(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 eQ(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,i=e[n-1][1],o=t.sliceStream(i),l=o.length,a=-1,s=0;for(;l--;){let e=o[l];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)s++,a--;if(a)break;a=-1}else if(-2===e)r=!0,s++;else if(-1===e);else{l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let o={type:n===e.length||r||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?a:i.start._bufferIndex+a,_index:i.start._index+l,line:i.end.line,column:i.end.column-s,offset:i.end.offset-s},end:{...i.end}};i.end={...o.start},i.start.offset===i.end.offset?Object.assign(i,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}function eX(e){return null===e||eP(e)||eA(e)?1:eL(e)?2:void 0}function eZ(e,t,n){let r=[],i=-1;for(;++i<e.length;){let o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}let eY={name:"attention",resolveAll:function(e,t){let n,r,i,o,l,a,s,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close){for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let d={...e[n][1].end},f={...e[c][1].start};eG(d,-a),eG(f,a),o={type:a>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},l={type:a>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:f},i={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:a>1?"strong":"emphasis",start:{...o.start},end:{...l.end}},e[n][1].end={...o.start},e[c][1].start={...l.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=ex(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=ex(s,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),s=ex(s,eZ(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),s=ex(s,[["exit",i,t],["enter",l,t],["exit",l,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,s=ex(s,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,eg(e,n-1,c-n+3,s),c=n+s.length-u-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,i=this.previous,o=eX(i);return function(l){return n=l,e.enter("attentionSequence"),function l(a){if(a===n)return e.consume(a),l;let s=e.exit("attentionSequence"),u=eX(a),c=!u||2===u&&o||r.includes(a),d=!o||2===o&&u||r.includes(i);return s._open=!!(42===n?c:c&&(o||!d)),s._close=!!(42===n?d:d&&(u||!c)),t(a)}(l)}}};function eG(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let e0={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return eN(t)?eO(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(e0,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 eN(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},e1={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 eE(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},e2=document.createElement("i");function e4(e){let t="&"+e+";";e2.innerHTML=t;let n=e2.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let e5={name:"characterReference",tokenize:function(e,t,n){let r,i,o=this,l=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=ek,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=ej,u):(e.enter("characterReferenceValue"),r=7,i=eS,u(t))}function u(a){if(59===a&&l){let r=e.exit("characterReferenceValue");return i!==ek||e4(o.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return i(a)&&l++<r?(e.consume(a),u):n(a)}}},e3={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)}}},e6={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l};function l(t){return e.enter("codeFencedFence"),eN(t)?eO(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?(o++,e.consume(i),t):o>=a?(e.exit("codeFencedFenceSequence"),eN(i)?eO(e,u,"whitespace")(i):u(i)):n(i)}(t)):n(t)}function u(r){return null===r||eT(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},l=0,a=0;return function(t){var o;let u;return o=t,l=(u=i.events[i.events.length-1])&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0,r=o,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"),eN(i)?eO(e,s,"whitespace")(i):s(i))}(o)};function s(o){return null===o||eT(o)?(e.exit("codeFencedFence"),i.interrupt?t(o):e.check(e3,c,h)(o)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eT(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(i)):eN(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),eO(e,u,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(o))}function u(t){return null===t||eT(t)?s(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eT(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(o,h,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f}function f(t){return l>0&&eN(t)?eO(e,p,"linePrefix",l+1)(t):p(t)}function p(t){return null===t||eT(t)?e.check(e3,c,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||eT(n)?(e.exit("codeFlowValue"),p(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}}},e9={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),eO(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?o(n):eT(n)?e.attempt(e8,t,o)(n):(e.enter("codeFlowValue"),function n(r){return null===r||eT(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function o(n){return e.exit("codeIndented"),t(n)}}},e8={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):eT(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):eO(e,o,"linePrefix",5)(t)}function o(e){let o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):eT(e)?i(e):n(e)}}};function e7(e,t,n,r,i,o,l,a,s){let u=s||1/0,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),d):null===t||32===t||41===t||eC(t)?n(t):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),h(t))};function d(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),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||eT(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||eP(i))?(e.exit("chunkString"),e.exit(a),e.exit(l),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||eC(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 te(e,t,n,r,i,o){let l,a=this,s=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),u};function u(d){return s>999||null===d||91===d||93===d&&!l||94===d&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(o),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):eT(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||eT(t)||s++>999?(e.exit("chunkString"),u(t)):(e.consume(t),l||(l=!eN(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function tt(e,t,n,r,i,o){let l;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),l=40===t?41:t,a):n(t)};function a(n){return n===l?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),s(n))}function s(t){return t===l?(e.exit(o),a(l)):null===t?n(t):eT(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eO(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===l||null===t||eT(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return t===l||92===t?(e.consume(t),u):u(t)}}function tn(e,t){let n;return function r(i){return eT(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):eN(i)?eO(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function tr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let ti={partial:!0,tokenize:function(e,t,n){return function(t){return eP(t)?tn(e,r)(t):n(t)};function r(t){return tt(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return eN(t)?eO(e,o,"whitespace")(t):o(t)}function o(e){return null===e||eT(e)?t(e):n(e)}}},to=["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"],tl=["pre","script","style","textarea"],ta={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(e_,t,n)}}},ts={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return eT(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},tu={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&&eg(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,o,l=e.length,a=0;for(;l--;)if(n=e[l][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[l][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[l][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=l,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(i=l);let s={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},c={type:"labelText",start:{...e[r+a+2][1].end},end:{...e[i-2][1].start}};return o=ex(o=[["enter",s,t],["enter",u,t]],e.slice(r+1,r+a+3)),o=ex(o,[["enter",c,t]]),o=ex(o,eZ(t.parser.constructs.insideSpan.null,e.slice(r+a+4,i-3),t)),o=ex(o,[["exit",c,t],e[i-2],e[i-1],["exit",u,t]]),o=ex(o,e.slice(i+1)),o=ex(o,[["exit",s,t]]),eg(e,r,e.length,o),e},tokenize:function(e,t,n){let r,i,o=this,l=o.events.length;for(;l--;)if(("labelImage"===o.events[l][1].type||"labelLink"===o.events[l][1].type)&&!o.events[l][1]._balanced){r=o.events[l][1];break}return function(t){return r?r._inactive?c(t):(i=o.parser.defined.includes(tr(o.sliceSerialize({start:r.end,end:o.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(tc,u,i?u:c)(t):91===t?e.attempt(td,u,i?s:c)(t):i?u(t):c(t)}function s(t){return e.attempt(tf,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}}},tc={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 eP(t)?tn(e,i)(t):i(t)}function i(t){return 41===t?u(t):e7(e,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return eP(t)?tn(e,a)(t):u(t)}function l(e){return n(e)}function a(t){return 34===t||39===t||40===t?tt(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function s(t){return eP(t)?tn(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)}}},td={tokenize:function(e,t,n){let r=this;return function(t){return te.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(tr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},tf={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)}}},tp={name:"labelStartImage",resolveAll:tu.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},th={name:"labelStartLink",resolveAll:tu.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},tm={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),eO(e,t,"linePrefix")}}},tg={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(o){var l;return e.enter("thematicBreak"),r=l=o,function o(l){return l===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),eN(n)?eO(e,o,"whitespace")(n):o(n))}(l)):i>=3&&(null===l||eT(l))?(e.exit("thematicBreak"),t(l)):n(l)}(l)}}},tx={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(e_,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,eO(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!eN(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(tb,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,eO(e,e.attempt(tx,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],o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,l=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:eS(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(tg,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return eS(i)&&++l<10?(e.consume(i),t):(!r.interrupt||l<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(e_,r.interrupt?n:s,e.attempt(ty,c,u))}function s(e){return r.containerState.initialBlankLine=!0,o++,c(e)}function u(t){return eN(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},ty={partial:!0,tokenize:function(e,t,n){let r=this;return eO(e,function(e){let i=r.events[r.events.length-1];return!eN(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},tb={partial:!0,tokenize:function(e,t,n){let r=this;return eO(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)}},tv={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,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&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);let l={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",l,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=l,e.push(["exit",l,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var l;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,l=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),eN(n)?eO(e,o,"lineSuffix")(n):o(n))}(l)):n(t)};function o(r){return null===r||eT(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,te.call(i,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function o(t){return(r=tr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),l):n(t)}function l(t){return eP(t)?tn(e,a)(t):a(t)}function a(t){return e7(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(ti,u,u)(t)}function u(t){return eN(t)?eO(e,c,"whitespace")(t):c(t)}function c(o){return null===o||eT(o)?(e.exit("definition"),i.parser.defined.push(r),t(o)):n(o)}}}},"disable",0,{null:[]},"document",0,{42:tx,43:tx,45:tx,48:tx,49:tx,50:tx,51:tx,52:tx,53:tx,54:tx,55:tx,56:tx,57:tx,62:e0},"flow",0,{35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,o=3;return"whitespace"===e[3][1].type&&(o+=2),i-2>o&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},eg(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var o;return e.enter("atxHeading"),o=i,e.enter("atxHeadingSequence"),function i(o){return 35===o&&r++<6?(e.consume(o),i):null===o||eP(o)?(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||eT(r)?(e.exit("atxHeading"),t(r)):eN(r)?eO(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||eP(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(o)):n(o)}(o)}}},42:tg,45:[tv,tg],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,o,l,a,s=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),u};function u(l){return 33===l?(e.consume(l),c):47===l?(e.consume(l),i=!0,p):63===l?(e.consume(l),r=3,s.interrupt?t:I):ev(l)?(e.consume(l),o=String.fromCharCode(l),h):n(l)}function c(i){return 45===i?(e.consume(i),r=2,d):91===i?(e.consume(i),r=5,l=0,f):ev(i)?(e.consume(i),r=4,s.interrupt?t:I):n(i)}function d(r){return 45===r?(e.consume(r),s.interrupt?t:I):n(r)}function f(r){let i="CDATA[";return r===i.charCodeAt(l++)?(e.consume(r),l===i.length)?s.interrupt?t:S:f:n(r)}function p(t){return ev(t)?(e.consume(t),o=String.fromCharCode(t),h):n(t)}function h(l){if(null===l||47===l||62===l||eP(l)){let a=47===l,u=o.toLowerCase();return!a&&!i&&tl.includes(u)?(r=1,s.interrupt?t(l):S(l)):to.includes(o.toLowerCase())?(r=6,a)?(e.consume(l),m):s.interrupt?t(l):S(l):(r=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(l):i?function t(n){return eN(n)?(e.consume(n),t):w(n)}(l):g(l))}return 45===l||ek(l)?(e.consume(l),o+=String.fromCharCode(l),h):n(l)}function m(r){return 62===r?(e.consume(r),s.interrupt?t:S):n(r)}function g(t){return 47===t?(e.consume(t),w):58===t||95===t||ev(t)?(e.consume(t),x):eN(t)?(e.consume(t),g):w(t)}function x(t){return 45===t||46===t||58===t||95===t||ek(t)?(e.consume(t),x):y(t)}function y(t){return 61===t?(e.consume(t),b):eN(t)?(e.consume(t),y):g(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,v):eN(t)?(e.consume(t),b):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||eP(n)?y(n):(e.consume(n),t)}(t)}function v(t){return t===a?(e.consume(t),a=null,k):null===t||eT(t)?n(t):(e.consume(t),v)}function k(e){return 47===e||62===e||eN(e)?g(e):n(e)}function w(t){return 62===t?(e.consume(t),C):n(t)}function C(t){return null===t||eT(t)?S(t):eN(t)?(e.consume(t),C):n(t)}function S(t){return 45===t&&2===r?(e.consume(t),P):60===t&&1===r?(e.consume(t),N):62===t&&4===r?(e.consume(t),O):63===t&&3===r?(e.consume(t),I):93===t&&5===r?(e.consume(t),A):eT(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(ta,D,j)(t)):null===t||eT(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),S)}function j(t){return e.check(ts,E,D)(t)}function E(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),T}function T(t){return null===t||eT(t)?j(t):(e.enter("htmlFlowData"),S(t))}function P(t){return 45===t?(e.consume(t),I):S(t)}function N(t){return 47===t?(e.consume(t),o="",L):S(t)}function L(t){if(62===t){let n=o.toLowerCase();return tl.includes(n)?(e.consume(t),O):S(t)}return ev(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),L):S(t)}function A(t){return 93===t?(e.consume(t),I):S(t)}function I(t){return 62===t?(e.consume(t),O):45===t&&2===r?(e.consume(t),I):S(t)}function O(t){return null===t||eT(t)?(e.exit("htmlFlowData"),D(t)):(e.consume(t),O)}function D(n){return e.exit("htmlFlow"),t(n)}}},61:tv,95:tg,96:e6,126:e6},"flowInitial",0,{[-2]:e9,[-1]:e9,32:e9},"insideSpan",0,{null:[eY,eV]},"string",0,{38:e5,92:e1},"text",0,{[-5]:tm,[-4]:tm,[-3]:tm,33:tp,38:e5,42:eY,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 ev(t)?(e.consume(t),o):64===t?n(t):a(t)}function o(t){return 43===t||45===t||46===t||ek(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,l):(43===n||45===n||46===n||ek(n))&&r++<32?(e.consume(n),t):(r=0,a(n))}(t)):a(t)}function l(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||eC(r)?n(r):(e.consume(r),l)}function a(t){return 64===t?(e.consume(t),s):ew(t)?(e.consume(t),a):n(t)}function s(i){return ek(i)?function i(o){return 46===o?(e.consume(o),r=0,s):62===o?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(o),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(o){if((45===o||ek(o))&&r++<63){let n=45===o?t:i;return e.consume(o),n}return n(o)}(o)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,o,l=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),v):63===t?(e.consume(t),y):ev(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):ev(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):eT(t)?(o=c,L(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):eT(t)?(o=h,L(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):eT(t)?(o=x,L(t)):(e.consume(t),x)}function y(t){return null===t?n(t):63===t?(e.consume(t),b):eT(t)?(o=y,L(t)):(e.consume(t),y)}function b(e){return 62===e?N(e):y(e)}function v(t){return ev(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||ek(t)?(e.consume(t),k):function t(n){return eT(n)?(o=t,L(n)):eN(n)?(e.consume(n),t):N(n)}(t)}function w(t){return 45===t||ek(t)?(e.consume(t),w):47===t||62===t||eP(t)?C(t):n(t)}function C(t){return 47===t?(e.consume(t),N):58===t||95===t||ev(t)?(e.consume(t),S):eT(t)?(o=C,L(t)):eN(t)?(e.consume(t),C):N(t)}function S(t){return 45===t||46===t||58===t||95===t||ek(t)?(e.consume(t),S):function t(n){return 61===n?(e.consume(n),j):eT(n)?(o=t,L(n)):eN(n)?(e.consume(n),t):C(n)}(t)}function j(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,E):eT(t)?(o=j,L(t)):eN(t)?(e.consume(t),j):(e.consume(t),T)}function E(t){return t===r?(e.consume(t),r=void 0,P):null===t?n(t):eT(t)?(o=E,L(t)):(e.consume(t),E)}function T(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||eP(t)?C(t):(e.consume(t),T)}function P(e){return 47===e||62===e||eP(e)?C(e):n(e)}function N(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function L(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),A}function A(t){return eN(t)?eO(e,I,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):I(t)}function I(t){return e.enter("htmlTextData"),o(t)}}}],91:th,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return eT(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},e1],93:tu,95:eY,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,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),o++,t):(e.exit("codeTextSequence"),l(n))}(t)};function l(s){return null===s?n(s):32===s?(e.enter("space"),e.consume(s),e.exit("space"),l):96===s?(i=e.enter("codeTextSequence"),r=0,function n(l){return 96===l?(e.consume(l),r++,n):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(l)):(i.type="codeTextData",a(l))}(s)):eT(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),l):(e.enter("codeTextData"),a(s))}function a(t){return null===t||32===t||96===t||eT(t)?(e.exit("codeTextData"),l(t)):(e.consume(t),a)}}}}],4127);var tk=e.i(4127);let tw=/[\0\t\n\r]/g;function tC(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 tS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tj(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return tC(n.slice(t?2:1),t?16:10)}return e4(n)||e}let tE={}.hasOwnProperty;function tT(e){return{line:e.line,column:e.column,offset:e.offset}}function tP(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+K({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+K({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+K({start:t.start,end:t.end})+") is still open")}function tN(e){let t=this;t.parser=function(n){var r,i;let o,l,a,s;return"string"!=typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(i=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(x),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(h),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:r(p),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(p,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:u,data:u,codeFlowValue:u,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,i),htmlFlowData:u,htmlText:r(g,i),htmlTextData:u,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(x),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),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:r(y,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(y),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(h),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:l(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:l(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:l(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:f,characterReferenceMarkerNumeric:f,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=tC(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=e4(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=tT(e.end)},codeFenced:l(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:c,codeIndented:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:l(),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=tr(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:l(),hardBreakEscape:l(d),hardBreakTrailing:l(d),htmlFlow:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:l(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(tS,tj),n.identifier=tr(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=tT(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),c.call(this,e))},link:l(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:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=tr(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:l(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:l(),thematicBreak:l()}};!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(tE.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"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},l={stack:[r],tokenStack:[],config:t,enter:o,exit:a,buffer:i,resume:s,data:n},u=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?u.push(c):c=function(e,t,n){let r,i,o,l,a=t-1,s=-1,u=!1;for(;++a<=n;){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]&&(!r||l||s||o||(o=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(r){let l=a;for(i=void 0;l--;){let t=e[l];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=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}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(a,0,["enter",i,t[2]]),a++,n++,o=void 0,l=!0}}}return e[t][1]._spread=u,n}(e,u.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];tE.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},l),e[c][1])}if(l.tokenStack.length>0){let e=l.tokenStack[l.tokenStack.length-1];(e[1]||tP).call(l,void 0,e[0])}for(r.position={start:tT(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:tT(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){o.call(this,e(n),n),t&&t.call(this,n)}}function i(){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:tT(t.start),end:void 0}}function l(e){return function(t){e&&e.call(this,t),a.call(this,t)}}function a(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||tP).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+K({start:e.start,end:e.end})+"): it’s not open");n.position.end=tT(e.end)}function s(){return ep(this.stack.pop())}function u(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:tT(e.start),end:void 0},t.push(n)),this.stack.push(n)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=tT(e.end)}function d(){this.data.atHardBreak=!0}function f(e){this.data.characterReferenceType=e.type}function p(){return{type:"code",lang:null,meta:null,value:""}}function h(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function g(){return{type:"html",value:""}}function x(){return{type:"link",title:null,url:"",children:[]}}function y(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(i)(function(e){for(;!eU(e););return e}((function(e){let t={constructs:eb([tk,...(e||{}).extensions||[]]),content:n(eD),defined:[],document:n(eM),flow:n(eH),lazy:{},string:n(eq),text:n(eW)};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={},o=[],l=[],a=[],s={attempt:h(function(e,t){m(e,t.from)}),check:h(p),consume:function(e){eT(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===l[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 o,l=e[r];if("string"==typeof l)o=l;else switch(l){case -5:o="\r";break;case -4:o="\n";break;case -3:o="\r\n";break;case -2:o=t?" ":" ";break;case -1:if(!t&&n)continue;o=" ";break;default:o=String.fromCharCode(l)}n=-2===l,i.push(o)}return i.join("")}(d(e),t)},sliceStream:d,write:function(e){return(l=ex(l,e),function(){let e;for(;r._index<l.length;){let n=l[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),c=c(t)}else c=c(n)}}(),null!==l[l.length-1])?[]:(m(t,0),u.events=eZ(o,u.events,u),u.events)}},c=t.tokenize.call(u,s);return t.resolveAll&&o.push(t),u;function d(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,o=t.end._index,l=t.end._bufferIndex;if(r===o)n=[e[r].slice(i,l)];else{if(n=e.slice(r,o),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}l>0&&n.push(e[o].slice(0,l))}return n}(l,e)}function f(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:o}}function p(e,t){t.restore()}function h(e,t){return function(n,i,o){var l;let c,d,p,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(l=n,function(e){let t=null!==e&&l[e],n=null!==e&&l.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)?o:x(e[d])}function x(e){return function(n){let i,o,l,c,d;return(i=f(),o=u.previous,l=u.currentConstruct,c=u.events.length,d=Array.from(a),h={from:c,restore:function(){r=i,u.previous=o,u.currentConstruct=l,u.events.length=c,a=d,g()}},p=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?b(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,s,y,b)(n)}}function y(t){return e(p,h),i}function b(e){return(h.restore(),++d<c.length)?x(c[d]):o}}}function m(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&eg(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((l=1,a="",s=!0,function(e,t,n){let r,i,u,c,d,f=[];for(e=a+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),u=0,a="",s&&(65279===e.charCodeAt(0)&&u++,s=void 0);u<e.length;){if(tw.lastIndex=u,c=(r=tw.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(c),!r){a=e.slice(u);break}if(10===d&&u===c&&o)f.push(-3),o=void 0;else switch(o&&(f.push(-5),o=void 0),u<c&&(f.push(e.slice(u,c)),l+=c-u),d){case 0:f.push(65533),l++;break;case 9:for(i=4*Math.ceil(l/4),f.push(-2);l++<i;)f.push(-1);break;case 10:f.push(-4),l=1;break;default:o=!0,l=1}u=c+1}return n&&(o&&f.push(-5),a&&f.push(a),f.push(null)),f})(n,r,!0))))}}let tL="object"==typeof self?self:globalThis,tA=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[o,l]=e[i];switch(o){case 0:case -1:return n(l,i);case 1:{let e=n([],i);for(let t of l)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of l)e[r(t)]=r(n);return e}case 3:return n(new Date(l),i);case 4:{let{source:e,flags:t}=l;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of l)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of l)e.add(r(t));return e}case 7:{let{name:e,message:t}=l;return n(new tL[e](t),i)}case 8:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{let{buffer:e}=new Uint8Array(l);return n(new DataView(e),l)}}return n(new tL[o](l),i)})(0)},{toString:tI}={},{keys:tO}=Object,tD=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=tI.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]:n.includes("Error")?[7,n]:[2,n]},tM=([e,t])=>0===e&&("function"===t||"symbol"===t),tR=(e,{json:t,lossy:n}={})=>{var r,i,o;let l,a,s=[];return(r=!(t||n),i=!!t,o=new Map,l=(e,t)=>{let n=s.push(e)-1;return o.set(t,n),n},a=e=>{if(o.has(e))return o.get(e);let[t,n]=tD(e);switch(t){case 0:{let i=e;switch(n){case"bigint":t=8,i=e.toString();break;case"function":case"symbol":if(r)throw TypeError("unable to serialize "+n);i=null;break;case"undefined":return l([-1],e)}return l([t,i],e)}case 1:{if(n){let t=e;return"DataView"===n?t=new Uint8Array(e.buffer):"ArrayBuffer"===n&&(t=new Uint8Array(e)),l([n,[...t]],e)}let r=[],i=l([t,r],e);for(let t of e)r.push(a(t));return i}case 2:{if(n)switch(n){case"BigInt":return l([n,e.toString()],e);case"Boolean":case"Number":case"String":return l([n,e.valueOf()],e)}if(i&&"toJSON"in e)return a(e.toJSON());let o=[],s=l([t,o],e);for(let t of tO(e))(r||!tM(tD(e[t])))&&o.push([a(t),a(e[t])]);return s}case 3:return l([t,e.toISOString()],e);case 4:{let{source:n,flags:r}=e;return l([t,{source:n,flags:r}],e)}case 5:{let n=[],i=l([t,n],e);for(let[t,i]of e)(r||!(tM(tD(t))||tM(tD(i))))&&n.push([a(t),a(i)]);return i}case 6:{let n=[],i=l([t,n],e);for(let t of e)(r||!tM(tD(t)))&&n.push(a(t));return i}}let{message:s}=e;return l([t,{name:n,message:s}],e)})(e),s},t_="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?tA(tR(e,t)):structuredClone(e):(e,t)=>tA(tR(e,t));function tF(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let o=e.charCodeAt(n),l="";if(37===o&&ek(e.charCodeAt(n+1))&&ek(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){let t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(l=String.fromCharCode(o,t),i=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function tz(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 tU(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let tB=function(e){var t,n;if(null==e)return tH;if("function"==typeof e)return t$(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=tB(e[n]);return t$(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,t$(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,t$(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function t$(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 tH(){return!0}let tV=[];function tq(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;let o=tB(i),l=r?-1:1;(function e(i,a,s){let u=i&&"object"==typeof i?i:{};if("string"==typeof u.type){let e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(c,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return c;function c(){var u;let c,d,f,p=tV;if((!t||o(i,a,s[s.length-1]||void 0))&&!1===(p=Array.isArray(u=n(i,s))?u:"number"==typeof u?[!0,u]:null==u?tV:[u])[0])return p;if("children"in i&&i.children&&i.children&&"skip"!==p[0])for(d=(r?i.children.length:-1)+l,f=s.concat(i);d>-1&&d<i.children.length;){if(!1===(c=e(i.children[d],d,f)())[0])return c;d="number"==typeof c[1]?c[1]:d+l}return p}})(e,void 0,[])()}function tW(e,t,n,r){let i,o,l;"function"==typeof t&&"function"!=typeof n?(o=void 0,l=t,i=n):(o=t,l=n,i=r),tq(e,o,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return l(e,r,n)},i)}function tK(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),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});let l=i[i.length-1];return l&&"text"===l.type?l.value+=r:i.push({type:"text",value:r}),i}function tJ(e){let t=e.spread;return null==t?e.children.length>1:t}function tQ(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 tX={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 o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o={type:"element",tagName:"pre",properties:{},children:[o=e.applyData(t,o)]},e.patch(t,o),o},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(),o=tF(i.toLowerCase()),l=e.footnoteOrder.indexOf(i),a=e.footnoteCounts.get(i);void 0===a?(a=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=l+1,a+=1,e.footnoteCounts.set(i,a);let s={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(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 tK(e,t);let i={src:tF(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){let n={src:tF(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 tK(e,t);let i={href:tF(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){let n={href:tF(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 n=e.children,r=-1;for(;!t&&++r<n.length;)t=tJ(n[r])}return t}(n):tJ(t),o={},l=[];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:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){let e=r[a];(i||0!==a||"element"!==e.type||"p"!==e.tagName)&&l.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?l.push(e):l.push(...e.children)}let s=r[r.length-1];s&&(i||"element"!==s.type||"p"!==s.tagName)&&l.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:o,children:l};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 o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},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)},o=q(t.children[1]),l=V(t.children[t.children.length-1]);o&&l&&(r.position={start:o,end:l}),i.push(r)}let o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},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",o=n&&"table"===n.type?n.align:void 0,l=o?o.length:t.children.length,a=-1,s=[];for(;++a<l;){let n=t.children[a],r={},l=o?o[a]:void 0;l&&(r.align=l);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,o=[];for(;r;)o.push(tQ(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(tQ(t.slice(i),i>0,!1)),o.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:tZ,yaml:tZ,definition:tZ,footnoteDefinition:tZ};function tZ(){}let tY={}.hasOwnProperty,tG={};function t0(e,t){e.position&&(t.position=function(e){let t=q(e),n=V(e);if(t&&n)return{start:t,end:n}}(e))}function t1(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,t_(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function t2(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 t4(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function t5(e,t){let r,i,o,l,a=(r=t||tG,i=new Map,o=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=t4(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=t4(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:t1,definitionById:i,footnoteById:o,footnoteCounts:new Map,footnoteOrder:[],handlers:{...tX,...r.handlers},one:function(e,t){let n=e.type,r=l.handlers[n];if(tY.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,r=t_(n);return r.children=l.all(e),r}return t_(e)}return(l.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(tY.call(n,"hProperties")||tY.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:r,patch:t0,wrap:t2},tW(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?i:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),l),s=a.one(e,void 0),u=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||tz,r=e.options.footnoteBackLabel||tU,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[],s=-1;for(;++s<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[s]);if(!i)continue;let o=e.all(i),l=String(i.identifier).toUpperCase(),u=tF(l.toLowerCase()),c=0,d=[],f=e.footnoteCounts.get(l);for(;void 0!==f&&++c<=f;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,c);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let p=o[o.length-1];if(p&&"element"===p.type&&"p"===p.tagName){let e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else o.push(...d);let h={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(o,!0)};e.patch(i,h),a.push(h)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...t_(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:"\n"}]}}(a),c=Array.isArray(s)?{type:"root",children:s}:s||{type:"root",children:[]};return u&&(n("children"in c),c.children.push({type:"text",value:"\n"},u)),c}function t3(e,t){return e&&"run"in e?async function(n,r){let i=t5(n,{file:r,...t});await e.run(i,r)}:function(n,r){return t5(n,{file:r,...e||t})}}function t6(e){if(e)throw e}var t9=e.i(4100);function t8(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 t7=function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');nr(e);let r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let l=-1,a=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else l<0&&(n=!0,l=o+1),a>-1&&(e.codePointAt(o)===t.codePointAt(a--)?a<0&&(i=o):(a=-1,i=l));return r===i?i=l:i<0&&(i=e.length),e.slice(r,i)},ne=function(e){let t;if(nr(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)},nt=function(e){let t;nr(e);let n=e.length,r=-1,i=0,o=-1,l=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?o<0?o=n:1!==l&&(l=1):o>-1&&(l=-1)}return o<0||r<0||0===l||1===l&&o===r-1&&o===i+1?"":e.slice(o,r)},nn=function(...e){var t;let n,r,i,o=-1;for(;++o<e.length;)nr(e[o]),e[o]&&(i=void 0===i?e[o]:i+"/"+e[o]);return void 0===i?".":(nr(t=i),n=47===t.codePointAt(0),0!==(r=function(e,t){let n,r,i="",o=0,l=-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(l===s-1||1===a);else if(l!==s-1&&2===a){if(i.length<2||2!==o||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="",o=0):o=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),l=s,a=0;continue}}else if(i.length>0){i="",o=0,l=s,a=0;continue}}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(l+1,s):i=e.slice(l+1,s),o=s-l-1;l=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 nr(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function ni(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let no=["history","path","basename","stem","extname","dirname"];class nl{constructor(e){let t,n;t=e?ni(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<no.length;){const e=no[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)no.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?t7(this.path):void 0}set basename(e){ns(e,"basename"),na(e,"basename"),this.path=nn(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?ne(this.path):void 0}set dirname(e){nu(this.basename,"dirname"),this.path=nn(e||"",this.basename)}get extname(){return"string"==typeof this.path?nt(this.path):void 0}set extname(e){if(na(e,"extname"),nu(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=nn(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){ni(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!ni(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)),ns(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?t7(this.path,this.extname):void 0}set stem(e){ns(e,"stem"),na(e,"stem"),this.path=nn(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 Z(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 na(e,t){if(e&&e.includes("/"))throw Error("`"+t+"` cannot be a path: did not expect `/`")}function ns(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function nu(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let nc=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},nd={}.hasOwnProperty;class nf extends nc{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let 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(o,...l){let a=e[++n],s=-1;if(o)return void r(o);for(;++s<t.length;)(null===l[s]||void 0===l[s])&&(l[s]=t[s]);t=l,a?(function(e,t){let n;return function(...t){let o,l=e.length>t.length;l&&t.push(r);try{o=e.apply(this,t)}catch(e){if(l&&n)throw e;return r(e)}l||(o&&o.then&&"function"==typeof o.then?o.then(i,r):o instanceof Error?r(o):i(o))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(a,i)(...l):r(null,...l)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new nf,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data((0,t9.default)(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(ng("data",this.frozen),this.namespace[e]=t,this):nd.call(this.namespace,e)&&this.namespace[e]||void 0:e?(ng("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=nb(e),n=this.parser||this.Parser;return nh("parse",n),n(String(t),t)}process(e,t){let r=this;return this.freeze(),nh("process",this.parser||this.Parser),nm("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(i,o){let l=nb(e),a=r.parse(l);function s(e,r){e||!r?o(e):i?i(r):(n(t,"`done` is defined if `resolve` is not"),t(void 0,r))}r.run(a,l,function(e,t,n){var i,o;if(e||!t||!n)return s(e);let l=r.stringify(t,n);"string"==typeof(i=l)||(o=i)&&"object"==typeof o&&"byteLength"in o&&"byteOffset"in o?n.value=l:n.result=l,s(e,n)})}}processSync(e){let t,r=!1;return this.freeze(),nh("processSync",this.parser||this.Parser),nm("processSync",this.compiler||this.Compiler),this.process(e,function(e,n){r=!0,t6(e),t=n}),ny("processSync","process",r),n(t,"we either bailed on an error or have a tree"),t}run(e,t,r){nx(e),this.freeze();let i=this.transformers;return r||"function"!=typeof t||(r=t,t=void 0),r?o(void 0,r):new Promise(o);function o(o,l){n("function"!=typeof t,"`file` can’t be a `done` anymore, we checked");let a=nb(t);i.run(e,a,function(t,i,a){let s=i||e;t?l(t):o?o(s):(n(r,"`done` is defined if `resolve` is not"),r(void 0,s,a))})}}runSync(e,t){let r,i=!1;return this.run(e,t,function(e,t){t6(e),r=t,i=!0}),ny("runSync","run",i),n(r,"we either bailed on an error or have a tree"),r}stringify(e,t){this.freeze();let n=nb(t),r=this.compiler||this.Compiler;return nm("stringify",r),nx(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(ng("use",this.frozen),null==e);else if("function"==typeof e)l(e,t);else if("object"==typeof e)Array.isArray(e)?o(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");o(e.plugins),e.settings&&(r.settings=(0,t9.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)l(e,[]);else if("object"==typeof e)if(Array.isArray(e)){let[t,...n]=e;l(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 l(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,...o]=t,l=n[i][1];t8(l)&&t8(r)&&(r=(0,t9.default)(!0,l,r)),n[i]=[e,r,...o]}}}}let np=new nf().freeze();function nh(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function nm(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function ng(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 nx(e){if(!t8(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function ny(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function nb(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new nl(e)}let nv=[],nk={allowDangerousHtml:!0},nw=/^(https?|ircs?|mailto|xmpp)$/i,nC=[{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 nS(e){var n;let i,o,l,a,s,u=(i=(n=e).rehypePlugins||nv,o=n.remarkPlugins||nv,l=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...nk}:nk,np().use(tN).use(o).use(t3,l).use(i)),c=(a=e.children||"",s=new nl,"string"==typeof a?s.value=a:r("Unexpected value `"+a+"` for `children` prop, expected `string`"),s);return function(e,n){let i=n.allowedElements,o=n.allowElement,l=n.components,a=n.disallowedElements,s=n.skipHtml,u=n.unwrapDisallowed,c=n.urlTransform||nj;for(let e of nC)Object.hasOwn(n,e.from)&&r("Unexpected `"+e.from+"` prop, "+(e.to?"use `"+e.to+"` instead":"remove it")+" (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#"+e.id+"> for more info)");return i&&a&&r("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),tW(e,function(e,t,n){if("raw"===e.type&&n&&"number"==typeof t)return s?n.children.splice(t,1):n.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in ed)if(Object.hasOwn(ed,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=ed[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=c(String(n||""),t,e))}}if("element"===e.type){let r=i?!i.includes(e.tagName):!!a&&a.includes(e.tagName);if(!r&&o&&"number"==typeof t&&(r=!o(e,t,n)),r&&n&&"number"==typeof t)return u&&e.children?n.children.splice(t,1,...e.children):n.children.splice(t,1),t}}),function(e,t){var n,r,i,o;let l;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,l=function(e,t,i,o){let l=Array.isArray(i.children),a=q(e);return r(t,i,o,l,{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,o=t.jsxs,l=function(e,t,n,r){let l=Array.isArray(n.children)?o:i;return r?l(t,n,r):l(t,n)}}let s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:l,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?$:B,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},u=ei(s,e,void 0);return u&&"string"!=typeof u?u:s.create(e,s.Fragment,{children:u||void 0},void 0)}(e,{Fragment:t.Fragment,components:l,ignoreInvalidStyle:!0,jsx:t.jsx,jsxs:t.jsxs,passKeys:!0,passNode:!0})}(u.runSync(u.parse(c),c),e)}function nj(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||nw.test(e.slice(0,t))?e:""}function nE(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 nT="phrasing",nP=["autolink","link","image","label"];function nN(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function nL(e){this.config.enter.autolinkProtocol.call(this,e)}function nA(e){this.config.exit.autolinkProtocol.call(this,e)}function nI(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];n("link"===t.type),t.url="http://"+this.sliceSerialize(e)}function nO(e){this.config.exit.autolinkEmail.call(this,e)}function nD(e){this.exit(e)}function nM(e){!function(e,t,n){let r=tB((n||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let 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),o=-1;for(;++o<i.length;)tq(e,"text",l);function l(e,t){let n,l=-1;for(;++l<t.length;){let e=t[l],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=i[o][0],l=i[o][1],a=0,s=n.children.indexOf(e),u=!1,c=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},o=l(...d,i);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(a!==n&&c.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(o)?c.push(...o):o&&c.push(o),a=n+d[0].length,u=!0),!r.global)break;d=r.exec(e.value)}return u?(a<e.value.length&&c.push({type:"text",value:e.value.slice(a)}),n.children.splice(s,1,...c)):c=[e],s+c.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,nR],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,n_]],{ignore:["link","linkReference"]})}function nR(e,t,n,r,i){let o,l="";if(!nF(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",l="http://"),(o=n.split(".")).length<2||o[o.length-1]&&(/_/.test(o[o.length-1])||!/[a-zA-Z\d]/.test(o[o.length-1]))||o[o.length-2]&&(/_/.test(o[o.length-2])||!/[a-zA-Z\d]/.test(o[o.length-2])))return!1;let a=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=nE(e,"("),o=nE(e,")");for(;-1!==r&&i>o;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),o++;return[e,n]}(n+r);if(!a[0])return!1;let s={type:"link",title:null,url:l+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function n_(e,t,n,r){return!(!nF(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function nF(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||eA(n)||eL(n))&&(!t||47!==n)}function nz(){this.buffer()}function nU(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function nB(){this.buffer()}function n$(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function nH(e){let t=this.resume(),r=this.stack[this.stack.length-1];n("footnoteReference"===r.type),r.identifier=tr(this.sliceSerialize(e)).toLowerCase(),r.label=t}function nV(e){this.exit(e)}function nq(e){let t=this.resume(),r=this.stack[this.stack.length-1];n("footnoteDefinition"===r.type),r.identifier=tr(this.sliceSerialize(e)).toLowerCase(),r.label=t}function nW(e){this.exit(e)}function nK(e,t,n,r){let i=n.createTracker(r),o=i.move("[^"),l=n.enter("footnoteReference"),a=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),a(),l(),o+=i.move("]")}function nJ(e,t,n){return 0===t?e:nQ(e,t,n)}function nQ(e,t,n){return(n?"":" ")+e}nK.peek=function(){return"["};let nX=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function nZ(e){this.enter({type:"delete",children:[]},e)}function nY(e){this.exit(e)}function nG(e,t,n,r){let i=n.createTracker(r),o=n.enter("strikethrough"),l=i.move("~~");return l+=n.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),o(),l}function n0(e){return e.length}function n1(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)}nG.peek=function(){return"~"};function n2(e,t,n){let r=e.value||"",i="`",o=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){let e,t=n.unsafe[o],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}n2.peek=function(){return"`"};tB(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let n4=function(e,t,n,r){let i=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),o=n.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let l=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(l=4*Math.ceil(l/4));let a=n.createTracker(r);a.move(o+" ".repeat(l-o.length)),a.shift(l);let s=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,a.current()),function(e,t,n){return t?(n?"":" ".repeat(l))+e:(n?o:o+" ".repeat(l-o.length))+e});return s(),u};function n5(e){let t=e._align;n(t,"expected `_align` on table"),this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function n3(e){this.exit(e),this.data.inTable=void 0}function n6(e){this.enter({type:"tableRow",children:[]},e)}function n9(e){this.exit(e)}function n8(e){this.enter({type:"tableCell",children:[]},e)}function n7(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,re));let r=this.stack[this.stack.length-1];n("inlineCode"===r.type),r.value=t,this.exit(e)}function re(e,t){return"|"===t?t:e}function rt(e){let t=this.stack[this.stack.length-2];n("listItem"===t.type),t.checked="taskListCheckValueChecked"===e.type}function rn(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];n("paragraph"===e.type);let r=e.children[0];if(r&&"text"===r.type){let n,i=t.children,o=-1;for(;++o<i.length;){let e=i[o];if("paragraph"===e.type){n=e;break}}n===e&&(r.value=r.value.slice(1),0===r.value.length?e.children.shift():e.position&&r.position&&"number"==typeof r.position.start.offset&&(r.position.start.column++,r.position.start.offset++,e.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function rr(e,t,n,r){let i=e.children[0],o="boolean"==typeof e.checked&&i&&"paragraph"===i.type,l="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);o&&a.move(l);let s=n4(e,t,n,{...r,...a.current()});return o&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+l})),s}let ri={tokenize:function(e,t,n){let r=0;return function t(o){return(87===o||119===o)&&r<3?(r++,e.consume(o),t):46===o&&3===r?(e.consume(o),i):n(o)};function i(e){return null===e?n(e):t(e)}},partial:!0},ro={tokenize:function(e,t,n){let r,i,o;return l;function l(t){return 46===t||95===t?e.check(ra,s,a)(t):null===t||eP(t)||eA(t)||45!==t&&eL(t)?s(t):(o=!0,e.consume(t),l)}function a(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),l}function s(e){return i||r||!o?n(e):t(e)}},partial:!0},rl={tokenize:function(e,t){let n=0,r=0;return i;function i(l){return 40===l?(n++,e.consume(l),i):41===l&&r<n?o(l):33===l||34===l||38===l||39===l||41===l||42===l||44===l||46===l||58===l||59===l||60===l||63===l||93===l||95===l||126===l?e.check(ra,t,o)(l):null===l||eP(l)||eA(l)?t(l):(e.consume(l),i)}function o(t){return 41===t&&r++,e.consume(t),i}},partial:!0},ra={tokenize:function(e,t,n){return r;function r(l){return 33===l||34===l||39===l||41===l||42===l||44===l||46===l||58===l||59===l||63===l||95===l||126===l?(e.consume(l),r):38===l?(e.consume(l),o):93===l?(e.consume(l),i):60===l||null===l||eP(l)||eA(l)?t(l):n(l)}function i(e){return null===e||40===e||91===e||eP(e)||eA(e)?t(e):r(e)}function o(t){return ev(t)?function t(i){return 59===i?(e.consume(i),r):ev(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},rs={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return ek(e)?n(e):t(e)}},partial:!0},ru={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!rh.call(r,r.previous)||ry(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ri,e.attempt(ro,e.attempt(rl,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:rh},rc={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",o=!1;return function(t){return(72===t||104===t)&&rm.call(r,r.previous)&&!ry(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),l):n(t)};function l(t){if(ev(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),l;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),o)?s:(o=!0,a):n(t)}function s(t){return null===t||eC(t)||eP(t)||eA(t)||eL(t)?n(t):e.attempt(ro,e.attempt(rl,u),n)(t)}function u(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:rm},rd={name:"emailAutolink",tokenize:function(e,t,n){let r,i,o=this;return function(t){return!rx(t)||!rg.call(o,o.previous)||ry(o.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return rx(r)?(e.consume(r),t):64===r?(e.consume(r),l):n(r)}(t))};function l(t){return 46===t?e.check(rs,s,a)(t):45===t||95===t||ek(t)?(i=!0,e.consume(t),l):s(t)}function a(t){return e.consume(t),r=!0,l}function s(l){return i&&r&&ev(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(l)):n(l)}},previous:rg},rf={},rp=48;for(;rp<123;)rf[rp]=rd,58==++rp?rp=65:91===rp&&(rp=97);function rh(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||eP(e)}function rm(e){return!ev(e)}function rg(e){return!(47===e||rx(e))}function rx(e){return 43===e||45===e||46===e||95===e||ek(e)}function ry(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}rf[43]=rd,rf[45]=rd,rf[46]=rd,rf[95]=rd,rf[72]=[rd,rc],rf[104]=[rd,rc],rf[87]=[rd,ru],rf[119]=[rd,ru];let rb={tokenize:function(e,t,n){let r=this;return eO(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 rv(e,t,n){let r,i=this,o=i.events.length,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;o--;){let e=i.events[o][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(o){if(!r||!r._balanced)return n(o);let a=tr(i.sliceSerialize({start:r.end,end:i.now()}));return 94===a.codePointAt(0)&&l.includes(a.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)):n(o)}}function rk(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 o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function rw(e,t,n){let r,i=this,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),l=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(l>999||93===a&&!r||null===a||91===a||eP(a))return n(a);if(93===a){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return o.includes(tr(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(a)}return eP(a)||(r=!0),l++,e.consume(a),92===a?u:s}function u(t){return 91===t||92===t||93===t?(e.consume(t),l++,s):s(t)}}function rC(e,t,n){let r,i,o=this,l=o.parser.gfmFootnotes||(o.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||eP(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=tr(o.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return eP(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"),l.includes(r)||l.push(r),eO(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function rS(e,t,n){return e.check(e_,t,e.attempt(rb,t,n))}function rj(e){e.exit("gfmFootnoteDefinition")}class rE{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}(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}}function rT(e,t,n){let r,i=this,o=0,l=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,o="tableHead"===r||"tableRow"===r?y:a;return o===y&&i.parser.lazy[i.now().line]?n(e):o(e)};function a(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(r=!0,l+=1),s(n)}function s(t){return null===t?n(t):eT(t)?l>1?(l=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):eN(t)?eO(e,s,"whitespace")(t):(l+=1,r&&(r=!1,o+=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||eP(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,eN(t))?eO(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 eN(t)?eO(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(l+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(l+=1,m(t)):null===t||eT(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 eN(t)?eO(e,x,"whitespace")(t):x(t)}function x(i){if(124===i)return f(i);if(null===i||eT(i))return r&&o===l?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i);return n(i)}function y(t){return e.enter("tableRow"),b(t)}function b(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),b):null===n||eT(n)?(e.exit("tableRow"),t(n)):eN(n)?eO(e,b,"whitespace")(n):(e.enter("data"),v(n))}function v(t){return null===t||124===t||eP(t)?(e.exit("data"),b(t)):(e.consume(t),92===t?k:v)}function k(t){return 92===t||124===t?(e.consume(t),v):v(t)}}function rP(e,t){let n,r,i,o=-1,l=!0,a=0,s=[0,0,0,0],u=[0,0,0,0],c=!1,d=0,f=new rE;for(;++o<e.length;){let p=e[o],h=p[1];"enter"===p[0]?"tableHead"===h.type?(c=!1,0!==d&&(rL(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(o,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(l=!0,i=void 0,s=[0,0,0,0],u=[0,o+1,0,0],c&&(c=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(o,0,[["enter",r,t]])),a="tableDelimiterRow"===h.type?2:r?3:1):a&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)?(l=!1,0===u[2]&&(0!==s[1]&&(u[0]=u[1],i=rN(f,t,s,a,void 0,i),s=[0,0,0,0]),u[2]=o)):"tableCellDivider"===h.type&&(l?l=!1:(0!==s[1]&&(u[0]=u[1],i=rN(f,t,s,a,void 0,i)),u=[(s=u)[1],o,0,0])):"tableHead"===h.type?(c=!0,d=o):"tableRow"===h.type||"tableDelimiterRow"===h.type?(d=o,0!==s[1]?(u[0]=u[1],i=rN(f,t,s,a,o,i)):0!==u[1]&&(i=rN(f,t,u,a,o,i)),a=0):a&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)&&(u[3]=o)}for(0!==d&&rL(f,t,d,n,r),f.consume(t.events),o=-1;++o<t.events.length;){let e=t.events[o];"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,o))}return e}function rN(e,t,n,r,i,o){0!==n[0]&&(o.end=Object.assign({},rA(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));let l=rA(t.events,n[1]);if(o={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){let i=rA(t.events,n[2]),o=rA(t.events,n[3]),l={type:"tableContent",start:Object.assign({},i),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",l,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",l,t]])}return void 0!==i&&(o.end=Object.assign({},rA(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function rL(e,t,n,r,i){let o=[],l=rA(t.events,n);i&&(i.end=Object.assign({},l),o.push(["exit",i,t])),r.end=Object.assign({},l),o.push(["exit",r,t]),e.add(n+1,0,o)}function rA(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let rI={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 eP(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(t)}function l(r){return eT(r)?t(r):eN(r)?e.check({tokenize:rO},t,n)(r):n(r)}}};function rO(e,t,n){return eO(e,function(e){return null===e?n(e):t(e)},"whitespace")}let rD={};function rM(e){let t,n,r,i=e||rD,o=this.data(),l=o.micromarkExtensions||(o.micromarkExtensions=[]),a=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),s=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);l.push(eb([{text:rf},{document:{91:{name:"gfmFootnoteDefinition",tokenize:rC,continuation:{tokenize:rS},exit:rj}},text:{91:{name:"gfmFootnoteCall",tokenize:rw},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:rv,resolveTo:rk}}},(t=(i||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,o=this.events,l=0;return function(a){return 126===i&&"characterEscape"!==o[o.length-1][1].type?r(a):(e.enter("strikethroughSequenceTemporary"),function o(a){let s=eX(i);if(126===a)return l>1?r(a):(e.consume(a),l++,o);if(l<2&&!t)return r(a);let u=e.exit("strikethroughSequenceTemporary"),c=eX(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)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},l=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",o,t]],a=t.parser.constructs.insideSpan.null;a&&eg(l,l.length,0,eZ(a,e.slice(r+1,n),t)),eg(l,l.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),eg(e,r-1,n-r+3,l),n=r+l.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:rT,resolveAll:rP}}},{text:{91:rI}}])),a.push([{transforms:[nM],enter:{literalAutolink:nN,literalAutolinkEmail:nL,literalAutolinkHttp:nL,literalAutolinkWww:nL},exit:{literalAutolink:nD,literalAutolinkEmail:nO,literalAutolinkHttp:nA,literalAutolinkWww:nI}},{enter:{gfmFootnoteCallString:nz,gfmFootnoteCall:nU,gfmFootnoteDefinitionLabelString:nB,gfmFootnoteDefinition:n$},exit:{gfmFootnoteCallString:nH,gfmFootnoteCall:nV,gfmFootnoteDefinitionLabelString:nq,gfmFootnoteDefinition:nW}},{canContainEols:["delete"],enter:{strikethrough:nZ},exit:{strikethrough:nY}},{enter:{table:n5,tableData:n8,tableHeader:n8,tableRow:n6},exit:{codeText:n7,table:n3,tableData:n9,tableHeader:n9,tableRow:n9}},{exit:{taskListCheckValueChecked:rt,taskListCheckValueUnchecked:rt,paragraph:rn}}]),s.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:nT,notInConstruct:nP},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:nT,notInConstruct:nP},{character:":",before:"[ps]",after:"\\/",inConstruct:nT,notInConstruct:nP}]},(r=!1,i&&i.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:function(e,t,n,i){let o=n.createTracker(i),l=o.move("[^"),a=n.enter("footnoteDefinition"),s=n.enter("label");return l+=o.move(n.safe(n.associationId(e),{before:l,after:"]"})),s(),l+=o.move("]:"),e.children&&e.children.length>0&&(o.shift(4),l+=o.move((r?"\n":" ")+n.indentLines(n.containerFlow(e,o.current()),r?nQ:nJ))),a(),l},footnoteReference:nK},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:nX}],handlers:{delete:nG}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=n2(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return a(function(e,t,n){let r=e.children,i=-1,o=[],l=t.enter("table");for(;++i<r.length;)o[i]=s(r[i],t,n);return l(),o}(e,n,r),e.align)},tableCell:l,tableRow:function(e,t,n,r){let i=a([s(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function l(e,t,n,r){let i=n.enter("tableCell"),l=n.enter("phrasing"),a=n.containerPhrasing(e,{...r,before:o,after:o});return l(),i(),a}function a(e,t){return function(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||n0,o=[],l=[],a=[],s=[],u=0,c=-1;for(;++c<e.length;){let t=[],r=[],o=-1;for(e[c].length>u&&(u=e[c].length);++o<e[c].length;){var d;let l=null==(d=e[c][o])?"":String(d);if(!1!==n.alignDelimiters){let e=i(l);r[o]=e,(void 0===s[o]||e>s[o])&&(s[o]=e)}t.push(l)}l[c]=t,a[c]=r}let f=-1;if("object"==typeof r&&"length"in r)for(;++f<u;)o[f]=n1(r[f]);else{let e=n1(r);for(;++f<u;)o[f]=e}f=-1;let p=[],h=[];for(;++f<u;){let e=o[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),l=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&((i=t.length+i+r.length)>s[f]&&(s[f]=i),h[f]=i),p[f]=l}l.splice(1,0,p),a.splice(1,0,h),c=-1;let m=[];for(;++c<l.length;){let e=l[c],t=a[c];f=-1;let r=[];for(;++f<u;){let i=e[f]||"",l="",a="";if(!1!==n.alignDelimiters){let e=s[f]-(t[f]||0),n=o[f];114===n?l=" ".repeat(e):99===n?e%2?(l=" ".repeat(e/2+.5),a=" ".repeat(e/2-.5)):a=l=" ".repeat(e/2):a=" ".repeat(e)}!1===n.delimiterStart||f||r.push("|"),!1!==n.padding&&(!1!==n.alignDelimiters||""!==i)&&(!1!==n.delimiterStart||f)&&r.push(" "),!1!==n.alignDelimiters&&r.push(l),r.push(i),!1!==n.alignDelimiters&&r.push(a),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||f!==u-1)&&r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function s(e,t,n){let r=e.children,i=-1,o=[],a=t.enter("tableRow");for(;++i<r.length;)o[i]=l(r[i],e,t,n);return a(),o}}(i),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:rr}}]})}function rR({children:e}){return(0,t.jsx)("div",{className:"prose prose-sm max-w-none dark:prose-invert prose-headings:text-void-900 dark:prose-headings:text-void-100 prose-code:rounded prose-code:bg-void-100 prose-code:px-1 prose-code:py-0.5 dark:prose-code:bg-void-800 prose-pre:bg-void-100 dark:prose-pre:bg-void-800 prose-table:border-collapse prose-th:border prose-th:border-void-300 prose-th:bg-void-100 prose-th:px-3 prose-th:py-1.5 dark:prose-th:border-void-700 dark:prose-th:bg-void-800 prose-td:border prose-td:border-void-300 prose-td:px-3 prose-td:py-1.5 dark:prose-td:border-void-700",children:(0,t.jsx)(nS,{remarkPlugins:[rM],children:e})})}e.s(["MarkdownContent",()=>rR],9308)},82721,e=>{"use strict";var t=e.i(18050),n=e.i(71645),r=e.i(21146);function i({position:e="top-right",minDisplayMs:i=1500}){let{status:o,reconnectAll:l}=function(){let[e,t]=(0,n.useState)(()=>r.connectionManager.status);return(0,n.useEffect)(()=>r.connectionManager.subscribe(t),[]),{status:e,isConnected:"connected"===e,isReconnecting:"reconnecting"===e,isDisconnected:"disconnected"===e,reconnectAll:(0,n.useCallback)((e=!1)=>{r.connectionManager.reconnectAll(e)},[])}}(),a="disconnected"===o||"reconnecting"===o,[s,u]=(0,n.useState)(!1),[c,d]=(0,n.useState)(!1),f=(0,n.useRef)(!1),p=(0,n.useRef)(null),h=(0,n.useRef)(null);if((0,n.useEffect)(()=>(a?p.current||(p.current=setTimeout(()=>{p.current=null,d(!0)},2e3)):(p.current&&(clearTimeout(p.current),p.current=null),d(!1)),()=>{p.current&&clearTimeout(p.current)}),[a]),(0,n.useEffect)(()=>{a?f.current=!0:"connected"===o&&f.current&&(f.current=!1,c&&(u(!0),h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{u(!1),h.current=null},i)))},[o,i,a,c]),(0,n.useEffect)(()=>()=>{h.current&&clearTimeout(h.current)},[]),!(a&&c||s))return null;let m={"top-right":"top-4 right-4","top-left":"top-4 left-4","bottom-right":"bottom-4 right-4","bottom-left":"bottom-4 left-4"};return s&&!a?(0,t.jsxs)("div",{className:`fixed ${m[e]} z-50 flex items-center gap-2 whitespace-nowrap rounded-lg border border-green-500/50 bg-void-50 px-3 py-2 text-sm text-green-700 shadow-(--shadow-card) dark:bg-void-900 dark:text-green-400`,children:[(0,t.jsx)("svg",{className:"h-4 w-4 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),(0,t.jsx)("span",{children:"Connected"})]}):"reconnecting"===o?(0,t.jsxs)("div",{className:`fixed ${m[e]} z-50 flex items-center gap-2 whitespace-nowrap rounded-lg border border-neon-blue-400/40 bg-void-50 px-3 py-2 text-sm text-neon-blue-600 shadow-(--shadow-card) dark:bg-void-900 dark:text-neon-blue-400`,children:[(0,t.jsxs)("svg",{className:"h-4 w-4 flex-shrink-0 animate-spin",fill:"none",viewBox:"0 0 24 24",children:[(0,t.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,t.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),(0,t.jsx)("span",{children:"Reconnecting..."}),(0,t.jsx)("button",{onClick:()=>l(!0),className:"ml-1 flex-shrink-0 rounded px-1.5 py-0.5 text-xs font-medium hover:bg-neon-blue-400/10 dark:hover:bg-neon-blue-400/10",children:"Retry"})]}):(0,t.jsxs)("div",{className:`fixed ${m[e]} z-50 flex items-center gap-2 whitespace-nowrap rounded-lg border border-red-500/50 bg-void-50 px-3 py-2 text-sm text-red-700 shadow-(--shadow-card) dark:bg-void-900 dark:text-red-400`,children:[(0,t.jsx)("svg",{className:"h-4 w-4 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),(0,t.jsx)("span",{children:"Connection Lost"}),(0,t.jsx)("button",{onClick:()=>l(!0),className:"ml-1 flex-shrink-0 rounded bg-red-500/10 px-2 py-0.5 text-xs font-medium hover:bg-red-500/20 dark:bg-red-500/15 dark:hover:bg-red-500/25",children:"Reconnect"})]})}e.s(["ConnectionStatusIndicator",()=>i],82721)},68498,e=>{"use strict";var t=e.i(18050),n=e.i(71645);let r="slycode-update-dismissed";function i(){return new Date().toISOString().slice(0,10)}function o(){let[e,o]=(0,n.useState)(null),[l,a]=(0,n.useState)(!1),s=(0,n.useCallback)(async()=>{try{let e=await fetch("/api/version-check");if(!e.ok)return;let t=await e.json();if(t.updateAvailable&&t.latest){o({current:t.current,latest:t.latest});let e=localStorage.getItem(r);a(e===i())}else o(null)}catch{}},[]);return((0,n.useEffect)(()=>{s();let e=setInterval(s,216e5);return()=>clearInterval(e)},[s]),!e||l)?null:(0,t.jsxs)("div",{className:"fixed bottom-4 left-4 z-50 flex items-center gap-3 rounded-lg border border-neon-blue-400/40 bg-void-50 px-4 py-2.5 shadow-(--shadow-card) dark:border-neon-blue-400/25 dark:bg-void-900",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"h-2 w-2 rounded-full bg-neon-blue-400",style:{boxShadow:"0 0 6px rgba(0,191,255,0.5)"}}),(0,t.jsxs)("span",{className:"text-sm text-void-700 dark:text-void-300",children:["SlyCode ",(0,t.jsxs)("span",{className:"font-medium text-neon-blue-500 dark:text-neon-blue-400",children:["v",e.latest]})," available",(0,t.jsxs)("span",{className:"text-void-500 dark:text-void-400",children:[" (current: v",e.current,")"]})]})]}),(0,t.jsx)("code",{className:"rounded bg-void-100 px-1.5 py-0.5 text-xs text-void-600 dark:bg-void-800 dark:text-void-400",children:"slycode update"}),(0,t.jsx)("button",{onClick:()=>{localStorage.setItem(r,i()),a(!0)},className:"ml-1 rounded p-0.5 text-void-400 transition-colors hover:bg-void-200 hover:text-void-600 dark:text-void-500 dark:hover:bg-void-800 dark:hover:text-void-300","aria-label":"Dismiss",children:(0,t.jsx)("svg",{className:"h-4 w-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})}e.s(["VersionUpdateToast",()=>o])},79951,e=>{"use strict";var t=e.i(18050),n=e.i(71645),r=e.i(38307),i=e.i(7782),o=e.i(87365),l=e.i(97480),a=e.i(1088);function s({projectId:e,projectName:s,projectDescription:u,projectPath:c,sessionNameOverride:d,cwdOverride:f,terminalClassOverride:p,isActive:h,label:m,voiceTerminalId:g,onTerminalReady:x}){let y,[b,v]=(0,n.useState)(!1),k=(0,n.useRef)(null),[w,C]=(0,n.useState)(null),S=(0,i.useSlyActionsConfig)(),j=(0,a.useVoice)(),[E,T]=(0,n.useState)("claude");(0,n.useEffect)(()=>{fetch("/api/providers").then(e=>e.ok?e.json():null).then(e=>{e?.defaults?.global?.provider&&T(e.defaults.global.provider)}).catch(()=>{})},[]);let P=d||`${e}:global`,N=f||c,L=w?.status==="running"||w?.status==="detached",A=p||"project-terminal",I=(0,r.getActionsForClass)(S.commands,S.classAssignments,A,{projectId:e}),O="global-terminal"===A,D=s||e||"Global";if(O)y=`SlyCode Management Terminal
2
+ Workspace: ${N}
3
+
4
+ This is the management terminal for your SlyCode environment. Use it for cross-project searches, questions, and general workspace operations.`;else{let e=[`Project: ${D} (${N})`];u&&e.push(`Description: ${u}`),e.push(""),e.push("This is a project-scoped terminal. Use it for:"),e.push("- Codebase exploration and analysis"),e.push("- Creating and triaging backlog cards"),e.push("- Organising and prioritising cards across stages"),e.push("- Updating context priming references"),e.push("- Project-level debugging and investigation"),y=e.join("\n")}let M={...O?{globalContext:y}:{projectContext:y},project:{name:D,description:u},projectPath:N},R=(0,n.useCallback)(async e=>{v(!0);let t=P.endsWith(":global")?P.replace(/:global$/,`:${E}:global`):P,n=L;if(!n)try{let e=await fetch(`/api/bridge/sessions/${encodeURIComponent(t)}`);if(e.ok){let t=await e.json();("running"===t.status||"detached"===t.status)&&(n=!0,C({status:t.status,hasHistory:t.hasHistory}))}}catch{}if(n)try{await fetch(`/api/bridge/sessions/${encodeURIComponent(t)}/input`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:e.prompt})}),!1!==e.autoSubmit&&(await new Promise(e=>setTimeout(e,300)),await fetch(`/api/bridge/sessions/${encodeURIComponent(t)}/input`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:"\r"})}))}catch(e){console.error("Failed to push prompt to terminal:",e)}else try{let n=await fetch("/api/bridge/sessions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:t,provider:E,skipPermissions:!0,cwd:N,fresh:!0,prompt:e.prompt})});if(n.ok){let e=await n.json();C({status:e.status,hasHistory:e.hasHistory})}}catch(e){console.error("Failed to start terminal session with prompt:",e)}},[L,P,N,E]);(0,n.useEffect)(()=>(0,o.onTerminalPrompt)(R),[R]);let _=j.voiceState;return(0,n.useEffect)(()=>{if(!b)return;let e=e=>{k.current&&!k.current.contains(e.target)&&("idle"===_||"disabled"===_)&&v(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[b,_]),(0,t.jsxs)("div",{ref:k,className:`fixed z-40 transition-all duration-300 ${b?"inset-0 h-svh w-screen sm:inset-auto sm:bottom-0 sm:right-4 sm:h-[500px] sm:w-[700px]":"bottom-0 right-4 h-12 w-64"}`,children:[(0,t.jsxs)("div",{className:`light-clean grain depth-glow flex h-12 cursor-pointer items-center justify-between px-4 transition-all border border-b-0 border-neon-blue-800/60 bg-[#2490b5] text-white/90 dark:border-transparent dark:from-neon-blue-600 dark:via-neon-blue-800/90 dark:to-neon-blue-950/85 dark:text-white ${b?"rounded-none sm:rounded-t-md":"rounded-t-md"} ${h&&!b?"active-glow-global":""} ${b?"shadow-[0_-4px_20px_-4px_rgba(0,136,179,0.25)] dark:shadow-[0_-4px_20px_-4px_rgba(0,191,255,0.4)]":"shadow-[0_-3px_12px_rgba(0,60,120,0.4),0_-1px_4px_rgba(0,60,120,0.25)] dark:shadow-[0_-3px_12px_rgba(0,0,0,0.7),0_-1px_4px_rgba(0,0,0,0.4)]"}`,onClick:()=>!b&&v(!0),children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,t.jsx)("div",{className:`h-2.5 w-2.5 flex-shrink-0 rounded-full ${L?"bg-green-400 shadow-[0_0_8px_rgba(74,222,128,0.6)]":"bg-neon-blue-300 dark:bg-void-400"}`}),(0,t.jsx)("span",{className:"truncate font-semibold text-black/80 dark:text-white",children:m||s||"Global Terminal"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[L&&(0,t.jsx)("span",{className:"rounded bg-black/10 px-1.5 py-0.5 text-xs text-neon-blue-950 dark:bg-white/20 dark:text-white",children:w?.status}),(0,t.jsx)("button",{onClick:e=>{e.stopPropagation(),v(!b)},className:"rounded p-1 hover:bg-black/10 dark:hover:bg-white/20",children:(0,t.jsx)("svg",{className:`h-5 w-5 transition-transform ${b?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 15l7-7 7 7"})})})]})]}),b&&(0,t.jsx)("div",{className:"flex h-[calc(100%-3rem)] flex-col rounded-none sm:rounded-b-md border border-t-0 border-void-700 bg-[#222228] dark:bg-[#1a1a1a] shadow-(--shadow-overlay) overflow-hidden",children:(0,t.jsx)(l.ClaudeTerminalPanel,{sessionName:P,cwd:N,actionsConfig:S,actions:I,context:M,initialProvider:E,tintColor:"rgba(0, 191, 255, 0.1)",voiceTerminalId:g,onSessionChange:e=>C(e?{status:e.status,hasHistory:e.hasHistory}:null),onProviderChange:e=>T(e),onTerminalReady:x})})]})}e.s(["GlobalClaudePanel",()=>s])}]);