@meetquinn/animactl 0.1.34-canary.697.1.5df155d → 0.1.34

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 (113) hide show
  1. package/dist/web/assets/{FileViewer-CUiNBbul.js → FileViewer-C6J_gZk6.js} +3 -3
  2. package/dist/web/assets/{OwnerPickerForm-DkUyhztw.js → OwnerPickerForm-DmTkovxi.js} +1 -1
  3. package/dist/web/assets/{SlackTimeline-Bm7K0Xw-.js → SlackTimeline-BVccX-sd.js} +1 -1
  4. package/dist/web/assets/UsageHeatmap-13yP3y4Z.js +5 -0
  5. package/dist/web/assets/{activity-CwUjl3tF.js → activity-DQWVyXOQ.js} +1 -1
  6. package/dist/web/assets/{arc-Da9VhqOv.js → arc-DKy-MuNG.js} +1 -1
  7. package/dist/web/assets/architecture-7EHR7CIX-6n-9QeZE.js +1 -0
  8. package/dist/web/assets/{architectureDiagram-3BPJPVTR-Cd0ZvTkp.js → architectureDiagram-3BPJPVTR-B-74UtH4.js} +1 -1
  9. package/dist/web/assets/arrow-right-elfsaGMD.js +1 -0
  10. package/dist/web/assets/{blockDiagram-GPEHLZMM-N6YEKtq4.js → blockDiagram-GPEHLZMM-49coIM2k.js} +1 -1
  11. package/dist/web/assets/{c4Diagram-AAUBKEIU-DpiZel1n.js → c4Diagram-AAUBKEIU-z4PujVtJ.js} +1 -1
  12. package/dist/web/assets/channel-BFh-g4cn.js +1 -0
  13. package/dist/web/assets/{channels-DrH8NH1b.js → channels-Ci8rp73B.js} +1 -1
  14. package/dist/web/assets/{chunk-2J33WTMH-Dn1H8d6B.js → chunk-2J33WTMH-PiOGQZ2D.js} +1 -1
  15. package/dist/web/assets/{chunk-3OPIFGDE-E7EDUmpv.js → chunk-3OPIFGDE-CW_tUV_k.js} +1 -1
  16. package/dist/web/assets/{chunk-4BX2VUAB-DO0v651W.js → chunk-4BX2VUAB-MSA7KT1z.js} +1 -1
  17. package/dist/web/assets/{chunk-55IACEB6-C1YLBpVr.js → chunk-55IACEB6-sr1MI0Gu.js} +1 -1
  18. package/dist/web/assets/{chunk-5ZQYHXKU-Dz7Mxiz5.js → chunk-5ZQYHXKU-D6j1zN4E.js} +1 -1
  19. package/dist/web/assets/{chunk-727SXJPM-CBqCQQfi.js → chunk-727SXJPM-CORH_vno.js} +1 -1
  20. package/dist/web/assets/{chunk-AQP2D5EJ-D-HHsmZh.js → chunk-AQP2D5EJ-DvMvjboO.js} +1 -1
  21. package/dist/web/assets/{chunk-BSJP7CBP-C5xVvSht.js → chunk-BSJP7CBP-BvvV1m-S.js} +1 -1
  22. package/dist/web/assets/{chunk-CSCIHK7Q-Bd0SZx7c.js → chunk-CSCIHK7Q-CTmctTkZ.js} +3 -3
  23. package/dist/web/assets/{chunk-FMBD7UC4-2KWdw2E_.js → chunk-FMBD7UC4-DH0mDgSe.js} +1 -1
  24. package/dist/web/assets/{chunk-KSCS5N6A-C6GxBcn-.js → chunk-KSCS5N6A-DbI5gtiH.js} +1 -1
  25. package/dist/web/assets/{chunk-L5ZTLDWV-8xDw4ugV.js → chunk-L5ZTLDWV-DQt0goAs.js} +1 -1
  26. package/dist/web/assets/{chunk-LZXEDZCA-CUqbiF9y.js → chunk-LZXEDZCA-BKJ0p9A7.js} +2 -2
  27. package/dist/web/assets/{chunk-ND2GUHAM-Cfrc29uh.js → chunk-ND2GUHAM-DIU8BqEX.js} +1 -1
  28. package/dist/web/assets/{chunk-NZK2D7GU-Dmu_9uq1.js → chunk-NZK2D7GU-DPEpLCDe.js} +1 -1
  29. package/dist/web/assets/{chunk-O5CBEL6O-D9fQgKec.js → chunk-O5CBEL6O-yu28pCAZ.js} +1 -1
  30. package/dist/web/assets/chunk-QZHKN3VN-B8j628mR.js +1 -0
  31. package/dist/web/assets/chunk-WU5MYG2G-DYnG7Cdn.js +1 -0
  32. package/dist/web/assets/{chunk-XPW4576I-BWBDxeGU.js → chunk-XPW4576I-6aAfUDaf.js} +1 -1
  33. package/dist/web/assets/classDiagram-4FO5ZUOK-DakJQUzn.js +1 -0
  34. package/dist/web/assets/classDiagram-v2-Q7XG4LA2-DakJQUzn.js +1 -0
  35. package/dist/web/assets/{copy-BmLmI7ld.js → copy-BV_Z264b.js} +1 -1
  36. package/dist/web/assets/{cose-bilkent-S5V4N54A-BpUOHcQi.js → cose-bilkent-S5V4N54A-Bpr8UgK1.js} +1 -1
  37. package/dist/web/assets/{dagre-BM42HDAG-UQv8aQTF.js → dagre-BM42HDAG-Bi2gIynG.js} +1 -1
  38. package/dist/web/assets/{diagram-2AECGRRQ-wqv44svG.js → diagram-2AECGRRQ-KgvfrXnf.js} +1 -1
  39. package/dist/web/assets/{diagram-5GNKFQAL-BFpzczcu.js → diagram-5GNKFQAL-1zQEL4hF.js} +1 -1
  40. package/dist/web/assets/{diagram-KO2AKTUF-DD44JuFs.js → diagram-KO2AKTUF-BeDa4V43.js} +1 -1
  41. package/dist/web/assets/{diagram-LMA3HP47-Dlf7mKek.js → diagram-LMA3HP47-BImecfxb.js} +1 -1
  42. package/dist/web/assets/{diagram-OG6HWLK6-mARNuebK.js → diagram-OG6HWLK6-DRRms6z1.js} +1 -1
  43. package/dist/web/assets/{dist-cRtOPWKR.js → dist-6yZk-EkX.js} +1 -1
  44. package/dist/web/assets/{erDiagram-TEJ5UH35-C9ajCoXw.js → erDiagram-TEJ5UH35-DA4Duknm.js} +1 -1
  45. package/dist/web/assets/eventmodeling-FCH6USID-CQKo1p24.js +1 -0
  46. package/dist/web/assets/{files-B5ByqX0K.js → files-BRwQqolM.js} +1 -1
  47. package/dist/web/assets/{flowDiagram-I6XJVG4X-ClwVsOZm.js → flowDiagram-I6XJVG4X-DhxhsLnB.js} +1 -1
  48. package/dist/web/assets/{ganttDiagram-6RSMTGT7-DHYZ_n60.js → ganttDiagram-6RSMTGT7-lUppTJbW.js} +1 -1
  49. package/dist/web/assets/gitGraph-WXDBUCRP-DsC5idJr.js +1 -0
  50. package/dist/web/assets/{gitGraphDiagram-PVQCEYII-BWT21U3A.js → gitGraphDiagram-PVQCEYII-BTFWWDpM.js} +1 -1
  51. package/dist/web/assets/{index-BT7eJFs7.css → index-BeNru8k9.css} +1 -1
  52. package/dist/web/assets/{index-B8V4t815.js → index-CSqBScd1.js} +2 -2
  53. package/dist/web/assets/info-J43DQDTF-Dsjwe6IB.js +1 -0
  54. package/dist/web/assets/{infoDiagram-5YYISTIA-BYKb1wGZ.js → infoDiagram-5YYISTIA-VfI6C4we.js} +1 -1
  55. package/dist/web/assets/{ishikawaDiagram-YF4QCWOH-CSUhZOLE.js → ishikawaDiagram-YF4QCWOH-DXDzWojz.js} +1 -1
  56. package/dist/web/assets/{journeyDiagram-JHISSGLW-BtwcFbsl.js → journeyDiagram-JHISSGLW-voSF-rlc.js} +1 -1
  57. package/dist/web/assets/{kanban-definition-UN3LZRKU-CXarc6I5.js → kanban-definition-UN3LZRKU-Co-N4tKw.js} +1 -1
  58. package/dist/web/assets/{kb-AAqldwX3.js → kb-B1tEANVT.js} +1 -1
  59. package/dist/web/assets/{lightbulb-C_FID22S.js → lightbulb-Ng0_mLBf.js} +1 -1
  60. package/dist/web/assets/{line-MGzm4JRg.js → line-HVp_VVrj.js} +1 -1
  61. package/dist/web/assets/{linear-DjM6PL9M.js → linear-BS1dGy-_.js} +1 -1
  62. package/dist/web/assets/{login-Bhw3S66g.js → login-bryIOLPn.js} +1 -1
  63. package/dist/web/assets/{mermaid-parser.core-BlyTSH3m.js → mermaid-parser.core-CmLR4qqN.js} +2 -2
  64. package/dist/web/assets/{mermaid.core-uFCIMOJN.js → mermaid.core-CaK1igvz.js} +3 -3
  65. package/dist/web/assets/{mindmap-definition-RKZ34NQL-DNkk8ps5.js → mindmap-definition-RKZ34NQL-BIlbgw3K.js} +1 -1
  66. package/dist/web/assets/{onboarding-BvRN9fu3.js → onboarding-C1EjhTNe.js} +1 -1
  67. package/dist/web/assets/packet-YPE3B663-CFvWt9F9.js +1 -0
  68. package/dist/web/assets/pie-LRSECV5Y-DUUhPLst.js +1 -0
  69. package/dist/web/assets/{pieDiagram-4H26LBE5-B8AwkvEX.js → pieDiagram-4H26LBE5-BXgr4BTP.js} +1 -1
  70. package/dist/web/assets/{profile-C8Q9bIl7.js → profile-Cv2-K2Yn.js} +1 -1
  71. package/dist/web/assets/{quadrantDiagram-W4KKPZXB-C5PWG-6P.js → quadrantDiagram-W4KKPZXB-DaD9fnDa.js} +1 -1
  72. package/dist/web/assets/radar-GUYGQ44K-BMUhPYpD.js +1 -0
  73. package/dist/web/assets/{reminders-CT8qxKo2.js → reminders-CfHSrlw7.js} +1 -1
  74. package/dist/web/assets/{requirementDiagram-4Y6WPE33-7ZMo2dHF.js → requirementDiagram-4Y6WPE33-CrGFeL32.js} +1 -1
  75. package/dist/web/assets/{sankeyDiagram-5OEKKPKP-CZFTS2Qe.js → sankeyDiagram-5OEKKPKP-CxPGpO7a.js} +1 -1
  76. package/dist/web/assets/search-Bvm5X2EW.js +1 -0
  77. package/dist/web/assets/{sequenceDiagram-3UESZ5HK-BLqC4FoE.js → sequenceDiagram-3UESZ5HK-DfEUsTVc.js} +1 -1
  78. package/dist/web/assets/settings-nO0qPihQ.js +1 -0
  79. package/dist/web/assets/{src-DuZ1qqd_.js → src-BHT7Z_mv.js} +1 -1
  80. package/dist/web/assets/{stateDiagram-AJRCARHV-CnaPeq8E.js → stateDiagram-AJRCARHV-Dbd2aDrB.js} +1 -1
  81. package/dist/web/assets/stateDiagram-v2-BHNVJYJU-CHJbISE1.js +1 -0
  82. package/dist/web/assets/{timeline-definition-PNZ67QCA-BoRX5zyP.js → timeline-definition-PNZ67QCA-BIotQoC9.js} +1 -1
  83. package/dist/web/assets/treeView-BLDUP644-DB_nIIgo.js +1 -0
  84. package/dist/web/assets/treemap-LRROVOQU-DpCN9Pk3.js +1 -0
  85. package/dist/web/assets/{useInfiniteQuery-kSg-HnSt.js → useInfiniteQuery--o1oGQMk.js} +1 -1
  86. package/dist/web/assets/{useNow-D-8djZ2u.js → useNow-CjZhDOeN.js} +1 -1
  87. package/dist/web/assets/{vennDiagram-CIIHVFJN-DD4ikClv.js → vennDiagram-CIIHVFJN-BAyy1x0U.js} +1 -1
  88. package/dist/web/assets/wardley-L42UT6IY-CPI-LuMU.js +1 -0
  89. package/dist/web/assets/{wardleyDiagram-YWT4CUSO-BYspR6NI.js → wardleyDiagram-YWT4CUSO-6RFXGozb.js} +1 -1
  90. package/dist/web/assets/{xychartDiagram-2RQKCTM6-Co0BehG8.js → xychartDiagram-2RQKCTM6-BROElDRv.js} +1 -1
  91. package/dist/web/index.html +2 -2
  92. package/docs/guide/providers.md +4 -1
  93. package/package.json +1 -1
  94. package/dist/web/assets/UsageHeatmap-C_gk_X8C.js +0 -5
  95. package/dist/web/assets/architecture-7EHR7CIX-Ccp9N1Mx.js +0 -1
  96. package/dist/web/assets/arrow-right-B8IEALGt.js +0 -1
  97. package/dist/web/assets/channel-fICC61EM.js +0 -1
  98. package/dist/web/assets/chunk-QZHKN3VN-C4G4ZwB3.js +0 -1
  99. package/dist/web/assets/chunk-WU5MYG2G-BYZZaP-D.js +0 -1
  100. package/dist/web/assets/classDiagram-4FO5ZUOK-Bqeizwpy.js +0 -1
  101. package/dist/web/assets/classDiagram-v2-Q7XG4LA2-Bqeizwpy.js +0 -1
  102. package/dist/web/assets/eventmodeling-FCH6USID-FqpwNUbI.js +0 -1
  103. package/dist/web/assets/gitGraph-WXDBUCRP-WkSG5GQW.js +0 -1
  104. package/dist/web/assets/info-J43DQDTF-Ue-uOtMl.js +0 -1
  105. package/dist/web/assets/packet-YPE3B663-De4wGXTD.js +0 -1
  106. package/dist/web/assets/pie-LRSECV5Y-D6HCDgsO.js +0 -1
  107. package/dist/web/assets/radar-GUYGQ44K-CPdt3B-z.js +0 -1
  108. package/dist/web/assets/search-gjxy53HO.js +0 -1
  109. package/dist/web/assets/settings-CLl8Te_V.js +0 -1
  110. package/dist/web/assets/stateDiagram-v2-BHNVJYJU-C4IEt-OY.js +0 -1
  111. package/dist/web/assets/treeView-BLDUP644-OO7zOAm3.js +0 -1
  112. package/dist/web/assets/treemap-LRROVOQU-Dp3Tkryn.js +0 -1
  113. package/dist/web/assets/wardley-L42UT6IY-D74bZLH-.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-uFCIMOJN.js","assets/index-B8V4t815.js","assets/index-BT7eJFs7.css","assets/chunk-O5CBEL6O-D9fQgKec.js","assets/src-DuZ1qqd_.js","assets/chunk-5ZQYHXKU-Dz7Mxiz5.js","assets/dist-cRtOPWKR.js","assets/chunk-CSCIHK7Q-Bd0SZx7c.js","assets/chunk-3OPIFGDE-E7EDUmpv.js","assets/chunk-L5ZTLDWV-8xDw4ugV.js","assets/chunk-NZK2D7GU-Dmu_9uq1.js","assets/rough.esm-CSKSodPl.js","assets/chunk-BSJP7CBP-C5xVvSht.js","assets/chunk-KSCS5N6A-C6GxBcn-.js","assets/line-MGzm4JRg.js","assets/path-BWPyau1x.js","assets/array-BifhSqXX.js","assets/chunk-LZXEDZCA-CUqbiF9y.js","assets/chunk-WU5MYG2G-BYZZaP-D.js","assets/chunk-XPW4576I-BWBDxeGU.js"])))=>i.map(i=>d[i]);
2
- import{t as e}from"./copy-BmLmI7ld.js";import{t}from"./lightbulb-C_FID22S.js";import{$t as n,Ar as r,Dr as i,F as a,Ht as o,Mr as s,Qt as c,Tn as l,Ut as u,Zt as d,an as f,en as p,hr as m,jr as h,kr as g,r as _,sn as v,tn as y,un as b,wn as x,wr as S,zt as C}from"./index-B8V4t815.js";import{c as ee,o as te}from"./useNow-D-8djZ2u.js";var ne=b(`code-xml`,[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]]),re=b(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),ie=b(`file-braces`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1`,key:`1oajmo`}],[`path`,{d:`M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1`,key:`mpwhp6`}]]),w=b(`file-code`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 12.5 8 15l2 2.5`,key:`1tg20x`}],[`path`,{d:`m14 12.5 2 2.5-2 2.5`,key:`yinavb`}]]),ae=b(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),oe=b(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),se=b(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),ce=b(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),le=b(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),ue=b(`list`,[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]),de=b(`megaphone`,[[`path`,{d:`M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z`,key:`q8bfy3`}],[`path`,{d:`M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14`,key:`1853fq`}],[`path`,{d:`M8 6v8`,key:`15ugcq`}]]),fe=b(`octagon-alert`,[[`path`,{d:`M12 16h.01`,key:`1drbdi`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z`,key:`1fd625`}]]),pe=b(`text-wrap`,[[`path`,{d:`m16 16-3 3 3 3`,key:`117b85`}],[`path`,{d:`M3 12h14.5a1 1 0 0 1 0 7H13`,key:`18xa6z`}],[`path`,{d:`M3 19h6`,key:`1ygdsz`}],[`path`,{d:`M3 5h18`,key:`1u36vt`}]]),T=s(g(),1),E=m(),me=h({ParseError:()=>D,SETTINGS_SCHEMA:()=>we,__defineFunction:()=>B,__defineMacro:()=>H,__defineSymbol:()=>A,__domTree:()=>Do,__parse:()=>So,__renderToDomTree:()=>wo,__renderToHTMLTree:()=>To,__setFontMetrics:()=>Pt,default:()=>Oo,render:()=>bo,renderToString:()=>xo,version:()=>Eo}),D=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`…`+s.slice(i-15,i):s.slice(0,i),u=a+15<s.length?s.slice(a,a+15)+`…`:s.slice(a);r+=l+c+u}super(r),this.name=`ParseError`,this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,e.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}},he=/([A-Z])/g,ge=e=>e.replace(he,`-$1`).toLowerCase(),_e={"&":`&amp;`,">":`&gt;`,"<":`&lt;`,'"':`&quot;`,"'":`&#x27;`},ve=/[&><"']/g,ye=e=>String(e).replace(ve,e=>_e[e]),be=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?be(e.body[0]):e:e.type===`font`?be(e.body):e,xe=new Set([`mathord`,`textord`,`atom`]),Se=e=>xe.has(be(e).type),Ce=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},we={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format <type>`},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color <color>`,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro <def>`,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness <size>`,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size <n>`,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand <n>`,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}};function Te(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function Ee(e){return e.default===void 0?Te(Array.isArray(e.type)?e.type[0]:e.type):e.default}function De(e,t,n,r){var i=n[t];e[t]=i===void 0?Ee(r):r.processor?r.processor(i):i}var Oe=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={};for(var t of Object.keys(we)){var n=we[t];n&&De(this,t,e,n)}}reportNonstrict(e,t,n){var r=this.strict;if(typeof r==`function`&&(r=r(e,t,n)),!(!r||r===`ignore`)){if(r===!0||r===`error`)throw new D(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),n);r===`warn`?typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)):typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){var r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`warn`?(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)),!1):(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=Ce(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},ke=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return Re[ze[this.id]]}sub(){return Re[Be[this.id]]}fracNum(){return Re[Ve[this.id]]}fracDen(){return Re[He[this.id]]}cramp(){return Re[Ue[this.id]]}text(){return Re[We[this.id]]}isTight(){return this.size>=2}},Ae=0,je=1,Me=2,Ne=3,Pe=4,Fe=5,Ie=6,Le=7,Re=[new ke(Ae,0,!1),new ke(je,0,!0),new ke(Me,1,!1),new ke(Ne,1,!0),new ke(Pe,2,!1),new ke(Fe,2,!0),new ke(Ie,3,!1),new ke(Le,3,!0)],ze=[Pe,Fe,Pe,Fe,Ie,Le,Ie,Le],Be=[Fe,Fe,Fe,Fe,Le,Le,Le,Le],Ve=[Me,Ne,Pe,Fe,Ie,Le,Ie,Le],He=[Ne,Ne,Fe,Fe,Le,Le,Le,Le],Ue=[je,je,Ne,Ne,Fe,Fe,Le,Le],We=[Ae,je,Me,Ne,Me,Ne,Me,Ne],O={DISPLAY:Re[Ae],TEXT:Re[Me],SCRIPT:Re[Pe],SCRIPTSCRIPT:Re[Ie]},Ge=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}];function Ke(e){for(var t=0;t<Ge.length;t++)for(var n=Ge[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var qe=[];Ge.forEach(e=>e.blocks.forEach(e=>qe.push(...e)));function Je(e){for(var t=0;t<qe.length;t+=2)if(e>=qe[t]&&e<=qe[t+1])return!0;return!1}var Ye=e=>e+` `+e,Xe=80,Ze=function(e,t){return`M95,`+(622+e+t)+`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-CaK1igvz.js","assets/index-CSqBScd1.js","assets/index-BeNru8k9.css","assets/chunk-O5CBEL6O-yu28pCAZ.js","assets/src-BHT7Z_mv.js","assets/chunk-5ZQYHXKU-D6j1zN4E.js","assets/dist-6yZk-EkX.js","assets/chunk-CSCIHK7Q-CTmctTkZ.js","assets/chunk-3OPIFGDE-CW_tUV_k.js","assets/chunk-L5ZTLDWV-DQt0goAs.js","assets/chunk-NZK2D7GU-DPEpLCDe.js","assets/rough.esm-CSKSodPl.js","assets/chunk-BSJP7CBP-BvvV1m-S.js","assets/chunk-KSCS5N6A-DbI5gtiH.js","assets/line-HVp_VVrj.js","assets/path-BWPyau1x.js","assets/array-BifhSqXX.js","assets/chunk-LZXEDZCA-BKJ0p9A7.js","assets/chunk-WU5MYG2G-DYnG7Cdn.js","assets/chunk-XPW4576I-6aAfUDaf.js"])))=>i.map(i=>d[i]);
2
+ import{t as e}from"./copy-BV_Z264b.js";import{t}from"./lightbulb-Ng0_mLBf.js";import{$t as n,Ar as r,Dr as i,F as a,Ht as o,Mr as s,Qt as c,Tn as l,Ut as u,Zt as d,an as f,en as p,hr as m,jr as h,kr as g,r as _,sn as v,tn as y,un as b,wn as x,wr as S,zt as C}from"./index-CSqBScd1.js";import{c as ee,o as te}from"./useNow-CjZhDOeN.js";var ne=b(`code-xml`,[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]]),re=b(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),ie=b(`file-braces`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1`,key:`1oajmo`}],[`path`,{d:`M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1`,key:`mpwhp6`}]]),w=b(`file-code`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 12.5 8 15l2 2.5`,key:`1tg20x`}],[`path`,{d:`m14 12.5 2 2.5-2 2.5`,key:`yinavb`}]]),ae=b(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),oe=b(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),se=b(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),ce=b(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),le=b(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),ue=b(`list`,[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]),de=b(`megaphone`,[[`path`,{d:`M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z`,key:`q8bfy3`}],[`path`,{d:`M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14`,key:`1853fq`}],[`path`,{d:`M8 6v8`,key:`15ugcq`}]]),fe=b(`octagon-alert`,[[`path`,{d:`M12 16h.01`,key:`1drbdi`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z`,key:`1fd625`}]]),pe=b(`text-wrap`,[[`path`,{d:`m16 16-3 3 3 3`,key:`117b85`}],[`path`,{d:`M3 12h14.5a1 1 0 0 1 0 7H13`,key:`18xa6z`}],[`path`,{d:`M3 19h6`,key:`1ygdsz`}],[`path`,{d:`M3 5h18`,key:`1u36vt`}]]),T=s(g(),1),E=m(),me=h({ParseError:()=>D,SETTINGS_SCHEMA:()=>we,__defineFunction:()=>B,__defineMacro:()=>H,__defineSymbol:()=>A,__domTree:()=>Do,__parse:()=>So,__renderToDomTree:()=>wo,__renderToHTMLTree:()=>To,__setFontMetrics:()=>Pt,default:()=>Oo,render:()=>bo,renderToString:()=>xo,version:()=>Eo}),D=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`…`+s.slice(i-15,i):s.slice(0,i),u=a+15<s.length?s.slice(a,a+15)+`…`:s.slice(a);r+=l+c+u}super(r),this.name=`ParseError`,this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,e.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}},he=/([A-Z])/g,ge=e=>e.replace(he,`-$1`).toLowerCase(),_e={"&":`&amp;`,">":`&gt;`,"<":`&lt;`,'"':`&quot;`,"'":`&#x27;`},ve=/[&><"']/g,ye=e=>String(e).replace(ve,e=>_e[e]),be=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?be(e.body[0]):e:e.type===`font`?be(e.body):e,xe=new Set([`mathord`,`textord`,`atom`]),Se=e=>xe.has(be(e).type),Ce=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},we={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format <type>`},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color <color>`,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro <def>`,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness <size>`,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size <n>`,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand <n>`,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}};function Te(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function Ee(e){return e.default===void 0?Te(Array.isArray(e.type)?e.type[0]:e.type):e.default}function De(e,t,n,r){var i=n[t];e[t]=i===void 0?Ee(r):r.processor?r.processor(i):i}var Oe=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={};for(var t of Object.keys(we)){var n=we[t];n&&De(this,t,e,n)}}reportNonstrict(e,t,n){var r=this.strict;if(typeof r==`function`&&(r=r(e,t,n)),!(!r||r===`ignore`)){if(r===!0||r===`error`)throw new D(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),n);r===`warn`?typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)):typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){var r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`warn`?(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)),!1):(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=Ce(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},ke=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return Re[ze[this.id]]}sub(){return Re[Be[this.id]]}fracNum(){return Re[Ve[this.id]]}fracDen(){return Re[He[this.id]]}cramp(){return Re[Ue[this.id]]}text(){return Re[We[this.id]]}isTight(){return this.size>=2}},Ae=0,je=1,Me=2,Ne=3,Pe=4,Fe=5,Ie=6,Le=7,Re=[new ke(Ae,0,!1),new ke(je,0,!0),new ke(Me,1,!1),new ke(Ne,1,!0),new ke(Pe,2,!1),new ke(Fe,2,!0),new ke(Ie,3,!1),new ke(Le,3,!0)],ze=[Pe,Fe,Pe,Fe,Ie,Le,Ie,Le],Be=[Fe,Fe,Fe,Fe,Le,Le,Le,Le],Ve=[Me,Ne,Pe,Fe,Ie,Le,Ie,Le],He=[Ne,Ne,Fe,Fe,Le,Le,Le,Le],Ue=[je,je,Ne,Ne,Fe,Fe,Le,Le],We=[Ae,je,Me,Ne,Me,Ne,Me,Ne],O={DISPLAY:Re[Ae],TEXT:Re[Me],SCRIPT:Re[Pe],SCRIPTSCRIPT:Re[Ie]},Ge=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}];function Ke(e){for(var t=0;t<Ge.length;t++)for(var n=Ge[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var qe=[];Ge.forEach(e=>e.blocks.forEach(e=>qe.push(...e)));function Je(e){for(var t=0;t<qe.length;t+=2)if(e>=qe[t]&&e<=qe[t+1])return!0;return!1}var Ye=e=>e+` `+e,Xe=80,Ze=function(e,t){return`M95,`+(622+e+t)+`
3
3
  c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
4
4
  c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
5
5
  c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
@@ -302,4 +302,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
302
302
  `);for(let[e,i]of r.entries()){let r=i.match(/^(#{1,6})\s+(.+)/);if(r){let i=r[1].length,{text:a,explicitId:o}=PT(r[2]),s=o??FT(a,n);if(o){let e=n.get(o)??0;n.set(o,e+1)}t.push({depth:i,text:a,id:s,line:e+1})}}return t}function BT(e){let t=e.split(`
303
303
  `),n=!1;return t.map(e=>{if(/^(`{3,}|~{3,})/.test(e))return n=!n,e;if(n)return e;let t=e.match(/^(#{1,6}\s+)(.+)$/);if(!t)return e;let{text:r,explicitId:i}=PT(t[2]);return i?`${t[1]}${r}`:e}).join(`
304
304
  `)}function VT(e){let{origin:t,pathname:n,search:r}=window.location;return`${t}${n}${r}#${e}`}function HT(e){let t=/^#L(\d+)$/.exec(e);if(!t)return null;let n=Number(t[1]);return Number.isInteger(n)&&n>0?n:null}function UT({text:t,variant:n=`floating`}){let[r,i]=(0,T.useState)(!1),a=(0,T.useRef)(null),o=(0,T.useCallback)(()=>{_(t).then(()=>{i(!0),a.current&&clearTimeout(a.current),a.current=setTimeout(()=>i(!1),2e3)}).catch(()=>{})},[t]);return(0,T.useEffect)(()=>()=>{a.current&&clearTimeout(a.current)},[]),(0,E.jsxs)(`button`,{onClick:o,title:r?`Copied!`:`Copy`,"aria-label":r?`Copied`:`Copy code`,className:n===`floating`?`chrome absolute right-2 top-2 flex h-7 items-center gap-1 rounded-sm bg-surface-elevated/80 px-2 text-[11px] text-text-subtle opacity-0 transition-opacity hover:bg-surface-elevated hover:text-text focus-visible:opacity-100 group-hover:opacity-100 group-focus-within:opacity-100 [@media(hover:none)]:opacity-100`:`chrome flex h-7 items-center gap-1 rounded-sm px-2 text-[11px] text-text-subtle transition-colors hover:bg-surface-hover hover:text-text focus-visible:bg-surface-hover focus-visible:text-text`,children:[(0,E.jsx)(e,{className:`h-3 w-3`}),r&&(0,E.jsx)(`span`,{children:`Copied!`})]})}function WT({id:e}){let[t,n]=(0,T.useState)(!1),r=(0,T.useRef)(null),i=(0,T.useCallback)(t=>{t.stopPropagation(),t.preventDefault(),RT(e),_(VT(e)).then(()=>{n(!0),r.current&&clearTimeout(r.current),r.current=setTimeout(()=>n(!1),1500)}).catch(()=>{})},[e]);return(0,T.useEffect)(()=>()=>{r.current&&clearTimeout(r.current)},[]),(0,E.jsx)(`a`,{href:`#${e}`,onClick:i,"aria-label":t?`Link copied`:`Copy link to this section`,title:t?`Link copied!`:`Copy link to this section`,contentEditable:!1,className:`absolute right-full top-[0.1em] mr-1 inline-flex items-center px-1 text-text-subtle no-underline opacity-0 transition-opacity duration-100 hover:text-accent focus-visible:opacity-100 group-hover:opacity-100 [@media(hover:none)]:static [@media(hover:none)]:ml-1 [@media(hover:none)]:mr-0 [@media(hover:none)]:px-1.5 [@media(hover:none)]:opacity-60`,children:(0,E.jsx)(le,{className:`h-[0.7em] w-[0.7em]`,strokeWidth:2.5,"aria-hidden":`true`})})}function GT({filePath:e}){let t=e.split(`/`).filter(Boolean),n=t[t.length-1]??e,r=t.slice(0,-1),i=r[r.length-1],a=r.length>1;return(0,E.jsxs)(`div`,{title:e,className:`flex min-w-0 items-center gap-1 font-sans text-[12px] text-text-subtle`,children:[i&&(0,E.jsxs)(E.Fragment,{children:[a&&(0,E.jsx)(`span`,{className:`shrink-0 text-text-subtle/70`,children:`…`}),a&&(0,E.jsx)(f,{className:`h-3 w-3 shrink-0 text-text-subtle/50`}),(0,E.jsx)(`span`,{className:`max-w-[12rem] shrink truncate`,children:i}),(0,E.jsx)(f,{className:`h-3 w-3 shrink-0 text-text-subtle/50`})]}),(0,E.jsx)(`span`,{className:`min-w-0 shrink truncate font-medium text-text-muted`,children:n})]})}function KT({id:t,filePath:r,size:i,rawUrl:a,downloadUrl:o}){let[s,c]=(0,T.useState)(!1),[u,d]=(0,T.useState)(!1),f=(0,T.useRef)(null),m=(0,T.useRef)(null);(0,T.useEffect)(()=>{if(!s)return;function e(e){f.current&&!f.current.contains(e.target)&&c(!1)}return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[s]),(0,T.useEffect)(()=>()=>{m.current&&clearTimeout(m.current)},[]);let h=a??l(t,r),g=o===void 0?C(t,r):o,v=(0,T.useCallback)(()=>{_(r).then(()=>{d(!0),m.current&&clearTimeout(m.current),m.current=setTimeout(()=>d(!1),2e3)}).catch(()=>{})},[r]),b=`flex w-full items-center gap-2 px-3 py-2 text-left font-sans text-[12px] text-text-muted transition-colors hover:bg-surface-elevated`;return(0,E.jsxs)(`div`,{ref:f,className:`relative`,children:[(0,E.jsx)(`button`,{onClick:()=>c(e=>!e),title:`More actions`,"aria-label":`More actions`,"aria-haspopup":`menu`,"aria-expanded":s,className:[`chrome flex min-h-[44px] shrink-0 items-center justify-center rounded-sm px-2 transition-colors`,s?`text-text`:`text-text-subtle hover:bg-surface-elevated hover:text-text-muted`].join(` `),children:(0,E.jsx)(p,{className:`h-3.5 w-3.5`})}),s&&(0,E.jsxs)(`div`,{role:`menu`,className:`absolute right-0 top-full z-20 mt-1 w-44 overflow-hidden rounded-sm border border-border-soft bg-surface shadow-deep`,children:[i!==void 0&&(0,E.jsx)(`div`,{className:`border-b border-border-soft px-3 py-1.5 font-sans text-[11px] text-text-subtle`,children:te(i)}),(0,E.jsxs)(`button`,{role:`menuitem`,onClick:v,className:b,children:[(0,E.jsx)(e,{className:`h-3.5 w-3.5 shrink-0`}),u?`Path copied`:`Copy path`]}),(0,E.jsxs)(`a`,{role:`menuitem`,href:h,target:`_blank`,rel:`noreferrer`,onClick:()=>c(!1),className:b,children:[(0,E.jsx)(n,{className:`h-3.5 w-3.5 shrink-0`}),`Open raw`]}),g&&(0,E.jsxs)(`a`,{role:`menuitem`,href:g,download:!0,onClick:()=>c(!1),className:b,children:[(0,E.jsx)(y,{className:`h-3.5 w-3.5 shrink-0`}),`Download`]})]})]})}function qT({entries:e}){let[t,n]=(0,T.useState)(!1),r=(0,T.useRef)(null);return(0,T.useEffect)(()=>{if(!t)return;function e(e){r.current&&!r.current.contains(e.target)&&n(!1)}return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[t]),e.length===0?null:(0,E.jsxs)(`div`,{ref:r,className:`relative`,children:[(0,E.jsx)(`button`,{onClick:()=>n(e=>!e),title:`Table of contents`,className:[`chrome flex min-h-[44px] shrink-0 items-center justify-center rounded-sm px-2 transition-colors`,t?`text-text`:`text-text-subtle hover:bg-surface-elevated hover:text-text-muted`].join(` `),children:(0,E.jsx)(ue,{className:`h-3.5 w-3.5`})}),t&&(0,E.jsx)(`div`,{className:`absolute right-0 top-full z-20 mt-1 w-72 max-h-[480px] overflow-y-auto rounded-sm border border-border-soft bg-surface shadow-deep`,children:(0,E.jsx)(`nav`,{className:`py-1`,children:e.map((e,t)=>(0,E.jsx)(`a`,{href:`#${e.id}`,onClick:t=>{t.preventDefault(),n(!1),window.history.replaceState(null,``,`#${e.id}`),document.getElementById(e.id)?.scrollIntoView({behavior:`smooth`})},className:`flex min-h-[44px] md:min-h-[40px] items-center font-sans text-[13px] text-text-muted transition-colors hover:bg-surface-elevated/60 hover:text-text`,style:{paddingLeft:`${.75+(e.depth-1)*.75}rem`,paddingRight:`0.75rem`},children:e.text},t))})})]})}var JT=[{value:`preview`,label:`Preview`,Icon:re},{value:`code`,label:`Code`,Icon:ne}];function YT({mode:e,onChange:t}){return(0,E.jsx)(`div`,{role:`tablist`,"aria-label":`File view mode`,className:`chrome inline-flex shrink-0 items-center gap-0.5 rounded-md border border-border-soft bg-surface-raised/40 p-0.5`,children:JT.map(({value:n,label:r,Icon:i})=>{let a=e===n;return(0,E.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":a,title:r,onClick:()=>t(n),className:[`flex min-h-[44px] md:min-h-[28px] items-center gap-1.5 rounded-[5px] px-2 text-[11px] font-medium transition-colors`,a?`bg-surface text-text shadow-sm`:`text-text-subtle hover:text-text-muted`].join(` `),children:[(0,E.jsx)(i,{className:`h-3.5 w-3.5`,strokeWidth:2}),r]},n)})})}var XT=`kb-file-view-mode`;function ZT(){try{return window.sessionStorage.getItem(`kb-file-view-mode`)===`code`?`code`:`preview`}catch{return`preview`}}function QT(e){try{window.sessionStorage.setItem(XT,e)}catch{}}var $T=`kb-code-wrap`;function eE(){try{return window.sessionStorage.getItem($T)!==`off`}catch{return!0}}function tE(e){try{window.sessionStorage.setItem($T,e?`on`:`off`)}catch{}}function nE({body:e,language:t}){let n=(0,T.useRef)(null),[r,i]=(0,T.useState)(()=>HT(window.location.hash)),[a,o]=(0,T.useState)(eE),s=(0,T.useCallback)(()=>{o(e=>{let t=!e;return tE(t),t})},[]);(0,T.useEffect)(()=>{function e(){i(HT(window.location.hash))}return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)},[]),(0,T.useEffect)(()=>{let e=HT(window.location.hash);if(e===null)return;let t=n.current?.querySelector(`#L${e}`);if(!t)return;let r=setTimeout(()=>t.scrollIntoView({behavior:`smooth`,block:`center`}),80);return()=>clearTimeout(r)},[]);function c(e){let t=r===e?null:e;i(t);let n=t===null?window.location.pathname+window.location.search:`#L${t}`;window.history.replaceState(null,``,n)}return(0,E.jsx)(`div`,{ref:n,className:`min-h-0 flex-1 overflow-auto`,children:(0,E.jsxs)(`div`,{className:`relative group min-h-0 flex-1 overflow-auto`,children:[(0,E.jsx)(`button`,{type:`button`,onClick:s,"aria-pressed":a,title:a?`Disable soft wrap`:`Enable soft wrap`,className:[`chrome absolute right-12 top-2 z-10 flex h-7 items-center gap-1 rounded-sm px-2 text-[11px] transition-opacity`,`opacity-0 focus-visible:opacity-100 group-hover:opacity-100 group-focus-within:opacity-100 [@media(hover:none)]:opacity-100`,a?`bg-accent/10 text-accent hover:bg-accent/15`:`bg-surface-elevated/80 text-text-subtle hover:bg-surface-elevated hover:text-text`].join(` `),children:(0,E.jsx)(pe,{className:`h-3 w-3`})}),(0,E.jsx)(UT,{text:e}),(0,E.jsx)(bT,{code:e.replace(/\n$/,``),language:t,theme:Uw.github,children:({className:e,style:t,tokens:n,getLineProps:i,getTokenProps:o})=>(0,E.jsx)(`pre`,{className:`${e} min-h-full font-mono text-[12.5px] leading-relaxed ${a?``:`w-max`}`,style:{...t,background:`transparent`,padding:0,whiteSpace:a?`pre-wrap`:`pre`,wordBreak:a?`break-word`:`normal`},children:(0,E.jsx)(`div`,{className:`py-4`,children:n.map((e,t)=>{let n=t+1,{className:s,...l}=i({line:e}),u=r===n;return(0,E.jsxs)(`div`,{...l,id:`L${n}`,className:[s??``,`flex px-5`,a?``:`min-w-full`,u?`bg-accent/10`:``].join(` `).trim(),children:[(0,E.jsx)(`a`,{href:`#L${n}`,onClick:e=>{e.preventDefault(),c(n)},title:`Link to line ${n}`,className:[`mr-4 inline-block w-8 shrink-0 select-none text-right tabular-nums transition-colors`,u?`text-accent`:`text-text-subtle/50 hover:text-text-muted`].join(` `),children:n}),(0,E.jsx)(`span`,{className:a?`min-w-0 flex-1`:`shrink-0`,children:e.map((e,t)=>(0,E.jsx)(`span`,{...o({token:e})},t))})]},t)})})})})]})})}function rE({block:e}){let t=jT(e),n=t.filter(e=>e.trim()!==``);return n.length>0&&n.every(e=>/^-[ \t]+/.test(e))?(0,E.jsx)(`ul`,{className:`m-0 list-disc space-y-0.5 pl-4`,children:n.map((e,t)=>(0,E.jsx)(`li`,{className:`font-mono text-[12px] text-text`,children:xT(e.replace(/^-[ \t]+/,``).trim())},t))}):(0,E.jsx)(`pre`,{className:`m-0 whitespace-pre-wrap break-words font-mono text-[12px] leading-relaxed text-text`,children:t.join(`
305
- `).trimEnd()})}function iE({entries:e}){return(0,E.jsx)(`div`,{className:`mb-5 overflow-hidden rounded-sm border border-border-soft bg-surface-raised/30`,children:(0,E.jsx)(`table`,{className:`m-0 w-full border-collapse text-left align-top`,children:(0,E.jsx)(`tbody`,{children:e.map((e,t)=>(0,E.jsxs)(`tr`,{className:t>0?`border-t border-border-soft/70`:void 0,children:[(0,E.jsx)(`th`,{scope:`row`,className:`w-px whitespace-nowrap border-r border-border-soft/70 bg-surface-raised/40 px-3 py-2 align-top font-sans text-[11px] font-semibold uppercase tracking-wide text-text-subtle`,children:e.key}),(0,E.jsx)(`td`,{className:`px-3 py-2 align-top font-mono text-[12px] text-text`,children:e.block?(0,E.jsx)(rE,{block:e.block}):(0,E.jsx)(`span`,{className:`whitespace-pre-wrap break-words`,children:e.value})})]},e.key+t))})})})}function aE({src:e,alt:t}){let[n,r]=(0,T.useState)(!1),i=(0,T.useRef)(null),a=(0,T.useRef)(null),s=(0,T.useCallback)(()=>{a.current=document.activeElement instanceof HTMLElement?document.activeElement:null,r(!0)},[]),c=(0,T.useCallback)(()=>{r(!1)},[]);return(0,T.useEffect)(()=>{if(!n)return;function e(e){e.key===`Escape`?c():e.key===`Tab`&&(e.preventDefault(),i.current?.focus())}return i.current?.focus(),document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e),a.current?.focus()}},[c,n]),(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`img`,{src:e,alt:t,onClick:s,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),s())},role:`button`,tabIndex:0,"aria-label":t?`Open image: ${t}`:`Open image`,className:`max-w-full cursor-zoom-in rounded`}),n&&(0,E.jsxs)(`div`,{role:`dialog`,"aria-modal":`true`,"aria-label":t?`Image preview: ${t}`:`Image preview`,className:`fixed inset-0 z-50 flex items-center justify-center bg-black/80 p-4`,onClick:c,children:[(0,E.jsx)(`button`,{ref:i,onClick:e=>{e.stopPropagation(),c()},"aria-label":`Close image preview`,title:`Close`,className:`chrome absolute right-4 top-4 flex min-h-[44px] min-w-[44px] items-center justify-center rounded-sm bg-black/40 text-white transition-colors hover:bg-black/60 focus-visible:bg-black/60`,children:(0,E.jsx)(o,{className:`h-4 w-4`})}),(0,E.jsx)(`img`,{src:e,alt:t,className:`max-h-full max-w-full object-contain`,onClick:e=>e.stopPropagation()}),t&&(0,E.jsx)(`div`,{className:`chrome absolute bottom-4 left-4 right-4 rounded-sm bg-black/45 px-3 py-2 text-center text-[12px] text-white/85`,children:t})]})]})}var oE=null;function sE(){return oE||=i(async()=>{let{default:e}=await import(`./mermaid.core-uFCIMOJN.js`);return{default:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19])).then(({default:e})=>(e.initialize({startOnLoad:!1,securityLevel:`strict`,theme:`neutral`,htmlLabels:!1,flowchart:{htmlLabels:!1}}),e)),oE}function cE(e){return Ks.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:[`foreignObject`,`img`,`image`,`script`,`iframe`,`object`,`embed`,`a`,`audio`,`video`,`source`,`link`,`base`],FORBID_ATTR:[`href`,`xlink:href`,`src`,`onerror`,`onload`,`onclick`]})}function lE({code:e}){let t=(0,T.useId)(),[n,r]=(0,T.useState)({svg:null,failed:!1});(0,T.useEffect)(()=>{let n=!1,i=`mermaid-${t.replace(/[^a-zA-Z0-9_-]/g,``)}`;return sE().then(t=>t.render(i,e)).then(({svg:e})=>{n||r({svg:e,failed:!1})}).catch(()=>{n||r({svg:null,failed:!0})}),()=>{n=!0}},[e,t]);let{svg:i,failed:a}=n;return a?(0,E.jsx)(`pre`,{className:`font-mono text-[0.82em] leading-[1.55] text-text-muted`,style:{background:`transparent`,margin:0},children:e}):i===null?(0,E.jsx)(`div`,{className:`px-3 py-4 text-[0.82em] text-text-subtle`,children:`Rendering diagram…`}):(0,E.jsx)(`div`,{className:`flex justify-center overflow-x-auto px-3 py-3 [&_svg]:max-w-full [&_svg]:h-auto`,dangerouslySetInnerHTML:{__html:cE(i)}})}var uE={note:{label:`Note`,Icon:ce},tip:{label:`Tip`,Icon:t},important:{label:`Important`,Icon:de},warning:{label:`Warning`,Icon:u},caution:{label:`Caution`,Icon:fe}},dE=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i;function fE(e){let t=Array.isArray(e)?e:typeof e==`string`?e.split(/\s+/):[];if(!t.includes(`markdown-alert`))return null;for(let e of Object.keys(uE))if(t.includes(`markdown-alert-${e}`))return e;return null}function pE(){function e(e){let t=e.children?.find(e=>e.type===`element`&&e.tagName===`p`),n=t?.children?.[0];if(!t||!n||n.type!==`text`||typeof n.value!=`string`)return;let r=dE.exec(n.value);if(!r)return;let i=r[1].toLowerCase(),a=n.value.slice(r[0].length).replace(/^[^\S\n]*\n?/,``);if(a)n.value=a;else{t.children.shift();let n=t.children[0];(n&&n.type===`text`&&typeof n.value==`string`&&/^\s+$/.test(n.value)||n&&n.type===`element`&&n.tagName===`br`)&&t.children.shift(),t.children.length===0&&(e.children=e.children.filter(e=>e!==t))}e.properties=e.properties??{},e.properties.className=[`markdown-alert`,`markdown-alert-${i}`]}function t(n){if(n.children)for(let r of n.children)r.type===`element`&&r.tagName===`blockquote`&&e(r),t(r)}return e=>t(e)}function mE(e,t){if(!e||e.startsWith(`#`)||/^[a-z][a-z\d+\-.]*:/i.test(e))return null;try{let n=new URL(e,`http://x/${t}`);if(n.host!==`x`)return null;let r=n.pathname.slice(1);return r?{path:r,hash:n.hash}:null}catch{return null}}function hE(e,t,n){if(!e||/^[a-z][a-z\d+\-.]*:/i.test(e)||e.startsWith(`#`)||e.startsWith(`/`))return e;let r=mE(e,n);return r?t(r.path):e}function gE(e){if(typeof e!=`string`||e.trim()===``)return!0;if(/prefers-color-scheme:\s*dark/i.test(e))return!1;if(/prefers-color-scheme:\s*light/i.test(e))return!0;if(typeof window<`u`&&typeof window.matchMedia==`function`)try{return window.matchMedia(e).matches}catch{return!0}return!0}function _E(e,t,n){let r=Array.isArray(e)?e.join(`, `):typeof e==`string`?e:``;if(r)return r.split(`,`).map(e=>e.trim()).filter(Boolean).map(e=>{let[r,...i]=e.split(/\s+/);return[hE(r,t,n),...i].join(` `).trim()}).join(`, `)}function vE(e){return T.Children.toArray(e).map(e=>typeof e==`string`?e:(0,T.isValidElement)(e)?vE(e.props.children):``).join(``)}function yE(e,t){return function({children:n,node:r,className:i,...a}){let o=r?.position?.start?.line,s=(typeof o==`number`?t.get(o):void 0)??MT(vE(n));return(0,E.jsxs)(e,{...a,id:s,onClick:()=>{RT(s)},className:[`group relative cursor-pointer`,i].filter(Boolean).join(` `),children:[(0,E.jsx)(WT,{id:s}),n]})}}function bE(e){return{h1:yE(`h1`,e),h2:yE(`h2`,e),h3:yE(`h3`,e),h4:yE(`h4`,e),h5:yE(`h5`,e),h6:yE(`h6`,e)}}var xE=[`div`,`p`,`span`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`td`,`th`],SE={...cw,tagNames:[...cw.tagNames??[],`picture`,`source`,`details`,`summary`],attributes:{...cw.attributes,source:[`srcSet`,`srcset`,`media`,`type`,`sizes`,`width`,`height`],img:[...cw.attributes?.img??[],`align`,`width`,`height`,`loading`],details:[...cw.attributes?.details??[],`open`],blockquote:[...cw.attributes?.blockquote??[],[`className`,`markdown-alert`,`markdown-alert-note`,`markdown-alert-tip`,`markdown-alert-important`,`markdown-alert-warning`,`markdown-alert-caution`]],...Object.fromEntries(xE.map(e=>[e,[...cw.attributes?.[e]??[],`align`]]))}};function CE(e,t,n){return function({href:r,children:i,...a}){let o=S();if(!r||r.startsWith(`#`))return(0,E.jsx)(`a`,{href:r,...a,onClick:e=>{!r||r===`#`||(e.preventDefault(),n.current?.scrollToHash(r.slice(1)))},children:i});if(/^[a-z][a-z\d+\-.]*:/i.test(r))return(0,E.jsx)(`a`,{href:r,target:`_blank`,rel:`noreferrer`,...a,children:i});let s=mE(r,t);if(!s)return(0,E.jsx)(`a`,{href:r,target:`_blank`,rel:`noreferrer`,...a,children:i});let c=e.browsePath(s.path)+s.hash;return(0,E.jsx)(`a`,{href:c,onClick:e=>{e.preventDefault(),o(c)},...a,children:i})}}function wE({id:e,filePath:t,file:r,loading:i,error:a,links:o,mode:s,onModeChange:c}){let u=(0,T.useMemo)(()=>o??{rawPath:t=>l(e,t),browsePath:t=>x({id:e,filePath:t})},[o,e]),d=u.rawPath(t),f=(0,T.useRef)(null),p=(0,T.useRef)(null),{entries:m,body:h}=(0,T.useMemo)(()=>r?.kind!==`markdown`||!r.content?{entries:null,body:``}:AT(r.content),[r]),g=(0,T.useMemo)(()=>r?.kind!==`markdown`||!h?[]:zT(h),[r,h]),_=(0,T.useMemo)(()=>h?BT(h):``,[h]),v=(0,T.useMemo)(()=>new Map(g.map(e=>[e.line,e.id])),[g]),y=(0,T.useMemo)(()=>g.map(e=>e.id),[g]),[b,S]=(0,T.useState)(null),C=g.length>=3,ee=g.length?Math.min(...g.map(e=>e.depth)):1,[ne,re]=(0,T.useState)(()=>HT(window.location.hash)?`code`:ZT()),ie=s!==void 0&&c!==void 0,w=ie?s:ne,ae=(0,T.useCallback)(e=>{ie&&c?c(e):(re(e),QT(e))},[ie,c]),oe=r?.kind===`markdown`&&w===`code`,se=(0,T.useRef)(null),ce=(0,T.useCallback)(e=>{se.current={id:e,until:Date.now()+2e3}},[]),le=(0,T.useCallback)(e=>{let t=LT(e,y)??e,n=document.getElementById(t);return n?.id?(ce(n.id),n.scrollIntoView({behavior:`smooth`}),RT(n.id),S(n.id),!0):!1},[ce,y]);(0,T.useEffect)(()=>{p.current={scrollToHash:le}},[le]),(0,T.useEffect)(()=>{if(r?.kind!==`markdown`||w!==`preview`)return;let e=window.location.hash.slice(1);if(!e)return;let t=LT(e,y)??e,n=document.getElementById(t);if(n){ce(n.id);let e=setTimeout(()=>{g.some(e=>e.id===n.id)&&S(n.id),n.scrollIntoView({behavior:`smooth`}),RT(n.id)},100);return()=>clearTimeout(e)}},[r,w,g,y,ce]),(0,T.useEffect)(()=>{if(r?.kind!==`markdown`||w!==`preview`)return;let e=f.current;if(!e)return;let t=e,n=()=>Array.from(t.querySelectorAll(`h1[id], h2[id], h3[id], h4[id], h5[id], h6[id]`)),i=0;function a(e){i=0;let r=n();if(r.length===0)return;let a=t.getBoundingClientRect().top+24,o=r[0];for(let e of r)if(e.getBoundingClientRect().top<=a)o=e;else break;if(!o?.id)return;let s=se.current;if(s&&Date.now()<s.until){if(o.id!==s.id)return;se.current=null}else se.current=null;e&&RT(o.id),S(o.id)}function o(){i||=window.requestAnimationFrame(()=>a(!0))}let s=window.location.hash.slice(1);return s&&(LT(s,y)??(n().some(e=>e.id===s)?s:null))||(i=window.requestAnimationFrame(()=>a(!1))),t.addEventListener(`scroll`,o,{passive:!0}),()=>{t.removeEventListener(`scroll`,o),i&&window.cancelAnimationFrame(i)}},[r,w,y]);let ue=(0,T.useMemo)(()=>({a:CE(u,t,p),...bE(v),img:({src:e,alt:n})=>{let r=e??``;if(r&&!/^[a-z][a-z\d+\-.]*:/i.test(r)&&!r.startsWith(`#`)){let e=mE(r,t);e&&(r=u.rawPath(e.path))}return(0,E.jsx)(aE,{src:r,alt:n??``})},picture:({node:e})=>{let n=null,r=null;for(let i of e?.children??[]){if(i.type!==`element`)continue;let e=i.properties??{};if(i.tagName===`source`&&!n&&gE(e.media)){let r=_E(e.srcSet??e.srcset,u.rawPath,t),i=r?r.split(`,`)[0]?.trim().split(/\s+/)[0]:``;i&&(n=i)}else i.tagName===`img`&&!r&&(r={src:hE(typeof e.src==`string`?e.src:``,u.rawPath,t),alt:typeof e.alt==`string`?e.alt:``,width:e.width==null?void 0:String(e.width)})}let i=n??r?.src;return i?(0,E.jsx)(`img`,{src:i,alt:r?.alt??``,width:r?.width,className:`inline-block h-auto max-w-full`}):null},blockquote:({node:e,children:t,...n})=>{let r=fE(e?.properties?.className);if(!r)return(0,E.jsx)(`blockquote`,{...n,children:t});let{label:i,Icon:a}=uE[r];return(0,E.jsxs)(`blockquote`,{className:`markdown-alert markdown-alert-${r}`,children:[(0,E.jsxs)(`p`,{className:`markdown-alert-title`,children:[(0,E.jsx)(a,{className:`h-4 w-4 shrink-0`,strokeWidth:2,"aria-hidden":`true`}),i]}),t]})},table:({children:e,...t})=>(0,E.jsx)(`div`,{className:`overflow-x-auto`,children:(0,E.jsx)(`table`,{...t,children:e})}),pre:({children:e})=>{let t=vE(e),n=``,r=T.Children.toArray(e)[0];if((0,T.isValidElement)(r)){let e=(r.props.className??``).match(/language-(\S+)/);e&&(n=e[1])}return n===`mermaid`?(0,E.jsxs)(`div`,{className:`kb-markdown-code-block group`,children:[(0,E.jsxs)(`div`,{className:`chrome flex min-h-9 items-center justify-between gap-2 border-b border-border-soft/70 bg-surface-raised/45 px-2 py-1`,children:[(0,E.jsx)(`span`,{className:`rounded-sm px-1.5 py-0.5 text-[10px] uppercase tracking-wider text-text-subtle`,children:`mermaid`}),(0,E.jsx)(UT,{text:t,variant:`inline`})]}),(0,E.jsx)(lE,{code:t.replace(/\n$/,``)})]}):(0,E.jsxs)(`div`,{className:`kb-markdown-code-block group`,children:[(0,E.jsxs)(`div`,{className:`chrome flex min-h-9 items-center justify-between gap-2 border-b border-border-soft/70 bg-surface-raised/45 px-2 py-1`,children:[n?(0,E.jsx)(`span`,{className:`rounded-sm px-1.5 py-0.5 text-[10px] uppercase tracking-wider text-text-subtle`,children:n}):(0,E.jsx)(`span`,{"aria-hidden":`true`}),(0,E.jsx)(UT,{text:t,variant:`inline`})]}),(0,E.jsx)(bT,{code:t.replace(/\n$/,``),language:n||`text`,theme:Uw.github,children:({className:e,style:t,tokens:n,getLineProps:r,getTokenProps:i})=>(0,E.jsx)(`pre`,{className:`${e} font-mono text-[0.82em] leading-[1.55]`,style:{...t,background:`transparent`,margin:0},children:n.map((e,t)=>(0,E.jsx)(`div`,{...r({line:e}),children:e.map((e,t)=>(0,E.jsx)(`span`,{...i({token:e})},t))},t))})})]})}}),[v,u,t]);if(a)return(0,E.jsxs)(`div`,{className:`p-6 font-sans text-[13px] text-health-error`,children:[`Could not open `,(0,E.jsx)(`span`,{className:`font-mono`,children:t}),`: `,a.message]});if(i||!r)return(0,E.jsx)(`div`,{className:`p-6 font-sans text-[13px] text-text-subtle`,children:`Loading…`});if(r.kind===`html`)return(0,E.jsxs)(`div`,{className:`flex h-full flex-col`,children:[(0,E.jsx)(`div`,{className:`flex h-8 shrink-0 items-center justify-end border-b border-border-soft px-3`,children:(0,E.jsxs)(`a`,{href:d,target:`_blank`,rel:`noreferrer`,title:`Open the full-width report in a new tab`,className:`chrome flex items-center gap-1 rounded-sm px-2 py-0.5 text-[10px] uppercase tracking-[0.08em] text-text-subtle transition-colors hover:bg-surface-elevated hover:text-text-muted`,children:[(0,E.jsx)(n,{className:`h-3 w-3`}),`Open full page`]})}),(0,E.jsx)(`iframe`,{title:r.name,src:d,sandbox:`allow-scripts`,className:`min-h-0 w-full flex-1 border-0 bg-white`})]});if(r.kind===`image`)return(0,E.jsx)(`div`,{className:`flex h-full flex-col`,children:(0,E.jsx)(`div`,{className:`flex flex-1 items-center justify-center overflow-auto bg-surface-elevated/30 p-6`,children:(0,E.jsx)(aE,{src:d,alt:r.name})})});if(r.kind===`pdf`)return(0,E.jsxs)(`div`,{className:`flex h-full flex-col`,children:[(0,E.jsx)(`div`,{className:`flex h-8 shrink-0 items-center justify-end border-b border-border-soft px-3`,children:(0,E.jsxs)(`a`,{href:d,target:`_blank`,rel:`noreferrer`,title:`Open the PDF in a new tab`,className:`chrome flex items-center gap-1 rounded-sm px-2 py-0.5 text-[10px] uppercase tracking-[0.08em] text-text-subtle transition-colors hover:bg-surface-elevated hover:text-text-muted`,children:[(0,E.jsx)(n,{className:`h-3 w-3`}),`Open full page`]})}),(0,E.jsx)(`iframe`,{title:r.name,src:d,className:`min-h-0 w-full flex-1 border-0 bg-surface-elevated/30`})]});if(r.truncated)return(0,E.jsxs)(`div`,{className:`p-6 font-sans text-[13px] text-text-muted`,children:[`This file is too large to inline (`,te(r.size),`).`,` `,(0,E.jsx)(`a`,{href:d,target:`_blank`,rel:`noreferrer`,className:`text-accent underline underline-offset-2`,children:`Open raw`})]});if(r.kind===`binary`||r.content===void 0)return(0,E.jsxs)(`div`,{className:`p-6 font-sans text-[13px] text-text-muted`,children:[`Binary file (`,te(r.size),`).`,` `,(0,E.jsx)(`a`,{href:d,target:`_blank`,rel:`noreferrer`,className:`text-accent underline underline-offset-2`,children:`Open raw`})]});if(r.kind===`markdown`)return(0,E.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col`,children:[!ie&&(0,E.jsx)(`div`,{className:`flex h-9 shrink-0 items-center justify-end border-b border-border-soft px-3`,children:(0,E.jsx)(YT,{mode:w,onChange:ae})}),oe?(0,E.jsx)(nE,{body:r.content,language:`markdown`}):(0,E.jsx)(`div`,{ref:f,className:`@container min-h-0 flex-1 overflow-y-auto px-6 py-6 md:px-10 md:py-10`,children:(0,E.jsxs)(`div`,{className:[`mx-auto flex w-full max-w-[1024px] gap-12`,C?`@min-[1372px]:max-w-[1292px]`:``].join(` `),children:[(0,E.jsxs)(`div`,{className:`w-full min-w-0 max-w-[1024px] flex-1`,children:[m&&(0,E.jsx)(iE,{entries:m}),(0,E.jsx)(`div`,{className:`md-prose`,children:(0,E.jsx)(Hm,{remarkPlugins:[J_,ov,lv],rehypePlugins:[bC,pE,[Tw,SE],ow],components:ue,children:_})})]}),C&&(0,E.jsxs)(`nav`,{"aria-label":`On this page`,className:`sticky top-2 hidden w-[220px] shrink-0 self-start @min-[1372px]:block`,children:[(0,E.jsx)(`div`,{className:`chrome mb-3 text-[11px] uppercase tracking-[0.14em] text-text-muted`,children:`On this page`}),(0,E.jsx)(`ul`,{className:`space-y-2 border-l border-border-soft pl-3`,children:g.map(e=>(0,E.jsx)(`li`,{children:(0,E.jsx)(`a`,{href:`#${e.id}`,onClick:t=>{t.preventDefault(),ce(e.id),document.getElementById(e.id)?.scrollIntoView({behavior:`smooth`}),RT(e.id),S(e.id)},className:[`block truncate font-sans text-[14px] leading-snug transition-colors`,b===e.id?`text-accent`:`text-text-muted hover:text-text`].join(` `),style:{paddingLeft:`${(e.depth-ee)*12}px`},children:e.text})},`${e.id}-${e.line}`))})]})]})})]});let de=r.kind===`json`?`json`:r.language??`text`,fe=r.content;if(r.kind===`json`)try{fe=JSON.stringify(JSON.parse(r.content),null,2)}catch{}return(0,E.jsx)(nE,{body:fe,language:de})}export{KT as a,zT as c,ic as d,Qs as f,GT as i,HT as l,me as m,ZT as n,qT as o,Ks as p,QT as r,YT as s,wE as t,rc as u};
305
+ `).trimEnd()})}function iE({entries:e}){return(0,E.jsx)(`div`,{className:`mb-5 overflow-hidden rounded-sm border border-border-soft bg-surface-raised/30`,children:(0,E.jsx)(`table`,{className:`m-0 w-full border-collapse text-left align-top`,children:(0,E.jsx)(`tbody`,{children:e.map((e,t)=>(0,E.jsxs)(`tr`,{className:t>0?`border-t border-border-soft/70`:void 0,children:[(0,E.jsx)(`th`,{scope:`row`,className:`w-px whitespace-nowrap border-r border-border-soft/70 bg-surface-raised/40 px-3 py-2 align-top font-sans text-[11px] font-semibold uppercase tracking-wide text-text-subtle`,children:e.key}),(0,E.jsx)(`td`,{className:`px-3 py-2 align-top font-mono text-[12px] text-text`,children:e.block?(0,E.jsx)(rE,{block:e.block}):(0,E.jsx)(`span`,{className:`whitespace-pre-wrap break-words`,children:e.value})})]},e.key+t))})})})}function aE({src:e,alt:t}){let[n,r]=(0,T.useState)(!1),i=(0,T.useRef)(null),a=(0,T.useRef)(null),s=(0,T.useCallback)(()=>{a.current=document.activeElement instanceof HTMLElement?document.activeElement:null,r(!0)},[]),c=(0,T.useCallback)(()=>{r(!1)},[]);return(0,T.useEffect)(()=>{if(!n)return;function e(e){e.key===`Escape`?c():e.key===`Tab`&&(e.preventDefault(),i.current?.focus())}return i.current?.focus(),document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e),a.current?.focus()}},[c,n]),(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`img`,{src:e,alt:t,onClick:s,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),s())},role:`button`,tabIndex:0,"aria-label":t?`Open image: ${t}`:`Open image`,className:`max-w-full cursor-zoom-in rounded`}),n&&(0,E.jsxs)(`div`,{role:`dialog`,"aria-modal":`true`,"aria-label":t?`Image preview: ${t}`:`Image preview`,className:`fixed inset-0 z-50 flex items-center justify-center bg-black/80 p-4`,onClick:c,children:[(0,E.jsx)(`button`,{ref:i,onClick:e=>{e.stopPropagation(),c()},"aria-label":`Close image preview`,title:`Close`,className:`chrome absolute right-4 top-4 flex min-h-[44px] min-w-[44px] items-center justify-center rounded-sm bg-black/40 text-white transition-colors hover:bg-black/60 focus-visible:bg-black/60`,children:(0,E.jsx)(o,{className:`h-4 w-4`})}),(0,E.jsx)(`img`,{src:e,alt:t,className:`max-h-full max-w-full object-contain`,onClick:e=>e.stopPropagation()}),t&&(0,E.jsx)(`div`,{className:`chrome absolute bottom-4 left-4 right-4 rounded-sm bg-black/45 px-3 py-2 text-center text-[12px] text-white/85`,children:t})]})]})}var oE=null;function sE(){return oE||=i(async()=>{let{default:e}=await import(`./mermaid.core-CaK1igvz.js`);return{default:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19])).then(({default:e})=>(e.initialize({startOnLoad:!1,securityLevel:`strict`,theme:`neutral`,htmlLabels:!1,flowchart:{htmlLabels:!1}}),e)),oE}function cE(e){return Ks.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:[`foreignObject`,`img`,`image`,`script`,`iframe`,`object`,`embed`,`a`,`audio`,`video`,`source`,`link`,`base`],FORBID_ATTR:[`href`,`xlink:href`,`src`,`onerror`,`onload`,`onclick`]})}function lE({code:e}){let t=(0,T.useId)(),[n,r]=(0,T.useState)({svg:null,failed:!1});(0,T.useEffect)(()=>{let n=!1,i=`mermaid-${t.replace(/[^a-zA-Z0-9_-]/g,``)}`;return sE().then(t=>t.render(i,e)).then(({svg:e})=>{n||r({svg:e,failed:!1})}).catch(()=>{n||r({svg:null,failed:!0})}),()=>{n=!0}},[e,t]);let{svg:i,failed:a}=n;return a?(0,E.jsx)(`pre`,{className:`font-mono text-[0.82em] leading-[1.55] text-text-muted`,style:{background:`transparent`,margin:0},children:e}):i===null?(0,E.jsx)(`div`,{className:`px-3 py-4 text-[0.82em] text-text-subtle`,children:`Rendering diagram…`}):(0,E.jsx)(`div`,{className:`flex justify-center overflow-x-auto px-3 py-3 [&_svg]:max-w-full [&_svg]:h-auto`,dangerouslySetInnerHTML:{__html:cE(i)}})}var uE={note:{label:`Note`,Icon:ce},tip:{label:`Tip`,Icon:t},important:{label:`Important`,Icon:de},warning:{label:`Warning`,Icon:u},caution:{label:`Caution`,Icon:fe}},dE=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i;function fE(e){let t=Array.isArray(e)?e:typeof e==`string`?e.split(/\s+/):[];if(!t.includes(`markdown-alert`))return null;for(let e of Object.keys(uE))if(t.includes(`markdown-alert-${e}`))return e;return null}function pE(){function e(e){let t=e.children?.find(e=>e.type===`element`&&e.tagName===`p`),n=t?.children?.[0];if(!t||!n||n.type!==`text`||typeof n.value!=`string`)return;let r=dE.exec(n.value);if(!r)return;let i=r[1].toLowerCase(),a=n.value.slice(r[0].length).replace(/^[^\S\n]*\n?/,``);if(a)n.value=a;else{t.children.shift();let n=t.children[0];(n&&n.type===`text`&&typeof n.value==`string`&&/^\s+$/.test(n.value)||n&&n.type===`element`&&n.tagName===`br`)&&t.children.shift(),t.children.length===0&&(e.children=e.children.filter(e=>e!==t))}e.properties=e.properties??{},e.properties.className=[`markdown-alert`,`markdown-alert-${i}`]}function t(n){if(n.children)for(let r of n.children)r.type===`element`&&r.tagName===`blockquote`&&e(r),t(r)}return e=>t(e)}function mE(e,t){if(!e||e.startsWith(`#`)||/^[a-z][a-z\d+\-.]*:/i.test(e))return null;try{let n=new URL(e,`http://x/${t}`);if(n.host!==`x`)return null;let r=n.pathname.slice(1);return r?{path:r,hash:n.hash}:null}catch{return null}}function hE(e,t,n){if(!e||/^[a-z][a-z\d+\-.]*:/i.test(e)||e.startsWith(`#`)||e.startsWith(`/`))return e;let r=mE(e,n);return r?t(r.path):e}function gE(e){if(typeof e!=`string`||e.trim()===``)return!0;if(/prefers-color-scheme:\s*dark/i.test(e))return!1;if(/prefers-color-scheme:\s*light/i.test(e))return!0;if(typeof window<`u`&&typeof window.matchMedia==`function`)try{return window.matchMedia(e).matches}catch{return!0}return!0}function _E(e,t,n){let r=Array.isArray(e)?e.join(`, `):typeof e==`string`?e:``;if(r)return r.split(`,`).map(e=>e.trim()).filter(Boolean).map(e=>{let[r,...i]=e.split(/\s+/);return[hE(r,t,n),...i].join(` `).trim()}).join(`, `)}function vE(e){return T.Children.toArray(e).map(e=>typeof e==`string`?e:(0,T.isValidElement)(e)?vE(e.props.children):``).join(``)}function yE(e,t){return function({children:n,node:r,className:i,...a}){let o=r?.position?.start?.line,s=(typeof o==`number`?t.get(o):void 0)??MT(vE(n));return(0,E.jsxs)(e,{...a,id:s,onClick:()=>{RT(s)},className:[`group relative cursor-pointer`,i].filter(Boolean).join(` `),children:[(0,E.jsx)(WT,{id:s}),n]})}}function bE(e){return{h1:yE(`h1`,e),h2:yE(`h2`,e),h3:yE(`h3`,e),h4:yE(`h4`,e),h5:yE(`h5`,e),h6:yE(`h6`,e)}}var xE=[`div`,`p`,`span`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`td`,`th`],SE={...cw,tagNames:[...cw.tagNames??[],`picture`,`source`,`details`,`summary`],attributes:{...cw.attributes,source:[`srcSet`,`srcset`,`media`,`type`,`sizes`,`width`,`height`],img:[...cw.attributes?.img??[],`align`,`width`,`height`,`loading`],details:[...cw.attributes?.details??[],`open`],blockquote:[...cw.attributes?.blockquote??[],[`className`,`markdown-alert`,`markdown-alert-note`,`markdown-alert-tip`,`markdown-alert-important`,`markdown-alert-warning`,`markdown-alert-caution`]],...Object.fromEntries(xE.map(e=>[e,[...cw.attributes?.[e]??[],`align`]]))}};function CE(e,t,n){return function({href:r,children:i,...a}){let o=S();if(!r||r.startsWith(`#`))return(0,E.jsx)(`a`,{href:r,...a,onClick:e=>{!r||r===`#`||(e.preventDefault(),n.current?.scrollToHash(r.slice(1)))},children:i});if(/^[a-z][a-z\d+\-.]*:/i.test(r))return(0,E.jsx)(`a`,{href:r,target:`_blank`,rel:`noreferrer`,...a,children:i});let s=mE(r,t);if(!s)return(0,E.jsx)(`a`,{href:r,target:`_blank`,rel:`noreferrer`,...a,children:i});let c=e.browsePath(s.path)+s.hash;return(0,E.jsx)(`a`,{href:c,onClick:e=>{e.preventDefault(),o(c)},...a,children:i})}}function wE({id:e,filePath:t,file:r,loading:i,error:a,links:o,mode:s,onModeChange:c}){let u=(0,T.useMemo)(()=>o??{rawPath:t=>l(e,t),browsePath:t=>x({id:e,filePath:t})},[o,e]),d=u.rawPath(t),f=(0,T.useRef)(null),p=(0,T.useRef)(null),{entries:m,body:h}=(0,T.useMemo)(()=>r?.kind!==`markdown`||!r.content?{entries:null,body:``}:AT(r.content),[r]),g=(0,T.useMemo)(()=>r?.kind!==`markdown`||!h?[]:zT(h),[r,h]),_=(0,T.useMemo)(()=>h?BT(h):``,[h]),v=(0,T.useMemo)(()=>new Map(g.map(e=>[e.line,e.id])),[g]),y=(0,T.useMemo)(()=>g.map(e=>e.id),[g]),[b,S]=(0,T.useState)(null),C=g.length>=3,ee=g.length?Math.min(...g.map(e=>e.depth)):1,[ne,re]=(0,T.useState)(()=>HT(window.location.hash)?`code`:ZT()),ie=s!==void 0&&c!==void 0,w=ie?s:ne,ae=(0,T.useCallback)(e=>{ie&&c?c(e):(re(e),QT(e))},[ie,c]),oe=r?.kind===`markdown`&&w===`code`,se=(0,T.useRef)(null),ce=(0,T.useCallback)(e=>{se.current={id:e,until:Date.now()+2e3}},[]),le=(0,T.useCallback)(e=>{let t=LT(e,y)??e,n=document.getElementById(t);return n?.id?(ce(n.id),n.scrollIntoView({behavior:`smooth`}),RT(n.id),S(n.id),!0):!1},[ce,y]);(0,T.useEffect)(()=>{p.current={scrollToHash:le}},[le]),(0,T.useEffect)(()=>{if(r?.kind!==`markdown`||w!==`preview`)return;let e=window.location.hash.slice(1);if(!e)return;let t=LT(e,y)??e,n=document.getElementById(t);if(n){ce(n.id);let e=setTimeout(()=>{g.some(e=>e.id===n.id)&&S(n.id),n.scrollIntoView({behavior:`smooth`}),RT(n.id)},100);return()=>clearTimeout(e)}},[r,w,g,y,ce]),(0,T.useEffect)(()=>{if(r?.kind!==`markdown`||w!==`preview`)return;let e=f.current;if(!e)return;let t=e,n=()=>Array.from(t.querySelectorAll(`h1[id], h2[id], h3[id], h4[id], h5[id], h6[id]`)),i=0;function a(e){i=0;let r=n();if(r.length===0)return;let a=t.getBoundingClientRect().top+24,o=r[0];for(let e of r)if(e.getBoundingClientRect().top<=a)o=e;else break;if(!o?.id)return;let s=se.current;if(s&&Date.now()<s.until){if(o.id!==s.id)return;se.current=null}else se.current=null;e&&RT(o.id),S(o.id)}function o(){i||=window.requestAnimationFrame(()=>a(!0))}let s=window.location.hash.slice(1);return s&&(LT(s,y)??(n().some(e=>e.id===s)?s:null))||(i=window.requestAnimationFrame(()=>a(!1))),t.addEventListener(`scroll`,o,{passive:!0}),()=>{t.removeEventListener(`scroll`,o),i&&window.cancelAnimationFrame(i)}},[r,w,y]);let ue=(0,T.useMemo)(()=>({a:CE(u,t,p),...bE(v),img:({src:e,alt:n})=>{let r=e??``;if(r&&!/^[a-z][a-z\d+\-.]*:/i.test(r)&&!r.startsWith(`#`)){let e=mE(r,t);e&&(r=u.rawPath(e.path))}return(0,E.jsx)(aE,{src:r,alt:n??``})},picture:({node:e})=>{let n=null,r=null;for(let i of e?.children??[]){if(i.type!==`element`)continue;let e=i.properties??{};if(i.tagName===`source`&&!n&&gE(e.media)){let r=_E(e.srcSet??e.srcset,u.rawPath,t),i=r?r.split(`,`)[0]?.trim().split(/\s+/)[0]:``;i&&(n=i)}else i.tagName===`img`&&!r&&(r={src:hE(typeof e.src==`string`?e.src:``,u.rawPath,t),alt:typeof e.alt==`string`?e.alt:``,width:e.width==null?void 0:String(e.width)})}let i=n??r?.src;return i?(0,E.jsx)(`img`,{src:i,alt:r?.alt??``,width:r?.width,className:`inline-block h-auto max-w-full`}):null},blockquote:({node:e,children:t,...n})=>{let r=fE(e?.properties?.className);if(!r)return(0,E.jsx)(`blockquote`,{...n,children:t});let{label:i,Icon:a}=uE[r];return(0,E.jsxs)(`blockquote`,{className:`markdown-alert markdown-alert-${r}`,children:[(0,E.jsxs)(`p`,{className:`markdown-alert-title`,children:[(0,E.jsx)(a,{className:`h-4 w-4 shrink-0`,strokeWidth:2,"aria-hidden":`true`}),i]}),t]})},table:({children:e,...t})=>(0,E.jsx)(`div`,{className:`overflow-x-auto`,children:(0,E.jsx)(`table`,{...t,children:e})}),pre:({children:e})=>{let t=vE(e),n=``,r=T.Children.toArray(e)[0];if((0,T.isValidElement)(r)){let e=(r.props.className??``).match(/language-(\S+)/);e&&(n=e[1])}return n===`mermaid`?(0,E.jsxs)(`div`,{className:`kb-markdown-code-block group`,children:[(0,E.jsxs)(`div`,{className:`chrome flex min-h-9 items-center justify-between gap-2 border-b border-border-soft/70 bg-surface-raised/45 px-2 py-1`,children:[(0,E.jsx)(`span`,{className:`rounded-sm px-1.5 py-0.5 text-[10px] uppercase tracking-wider text-text-subtle`,children:`mermaid`}),(0,E.jsx)(UT,{text:t,variant:`inline`})]}),(0,E.jsx)(lE,{code:t.replace(/\n$/,``)})]}):(0,E.jsxs)(`div`,{className:`kb-markdown-code-block group`,children:[(0,E.jsxs)(`div`,{className:`chrome flex min-h-9 items-center justify-between gap-2 border-b border-border-soft/70 bg-surface-raised/45 px-2 py-1`,children:[n?(0,E.jsx)(`span`,{className:`rounded-sm px-1.5 py-0.5 text-[10px] uppercase tracking-wider text-text-subtle`,children:n}):(0,E.jsx)(`span`,{"aria-hidden":`true`}),(0,E.jsx)(UT,{text:t,variant:`inline`})]}),(0,E.jsx)(bT,{code:t.replace(/\n$/,``),language:n||`text`,theme:Uw.github,children:({className:e,style:t,tokens:n,getLineProps:r,getTokenProps:i})=>(0,E.jsx)(`pre`,{className:`${e} font-mono text-[0.82em] leading-[1.55]`,style:{...t,background:`transparent`,margin:0},children:n.map((e,t)=>(0,E.jsx)(`div`,{...r({line:e}),children:e.map((e,t)=>(0,E.jsx)(`span`,{...i({token:e})},t))},t))})})]})}}),[v,u,t]);if(a)return(0,E.jsxs)(`div`,{className:`p-6 font-sans text-[13px] text-health-error`,children:[`Could not open `,(0,E.jsx)(`span`,{className:`font-mono`,children:t}),`: `,a.message]});if(i||!r)return(0,E.jsx)(`div`,{className:`p-6 font-sans text-[13px] text-text-subtle`,children:`Loading…`});if(r.kind===`html`)return(0,E.jsxs)(`div`,{className:`flex h-full flex-col`,children:[(0,E.jsx)(`div`,{className:`flex h-8 shrink-0 items-center justify-end border-b border-border-soft px-3`,children:(0,E.jsxs)(`a`,{href:d,target:`_blank`,rel:`noreferrer`,title:`Open the full-width report in a new tab`,className:`chrome flex items-center gap-1 rounded-sm px-2 py-0.5 text-[10px] uppercase tracking-[0.08em] text-text-subtle transition-colors hover:bg-surface-elevated hover:text-text-muted`,children:[(0,E.jsx)(n,{className:`h-3 w-3`}),`Open full page`]})}),(0,E.jsx)(`iframe`,{title:r.name,src:d,sandbox:`allow-scripts`,className:`min-h-0 w-full flex-1 border-0 bg-white`})]});if(r.kind===`image`)return(0,E.jsx)(`div`,{className:`flex h-full flex-col`,children:(0,E.jsx)(`div`,{className:`flex flex-1 items-center justify-center overflow-auto bg-surface-elevated/30 p-6`,children:(0,E.jsx)(aE,{src:d,alt:r.name})})});if(r.kind===`pdf`)return(0,E.jsxs)(`div`,{className:`flex h-full flex-col`,children:[(0,E.jsx)(`div`,{className:`flex h-8 shrink-0 items-center justify-end border-b border-border-soft px-3`,children:(0,E.jsxs)(`a`,{href:d,target:`_blank`,rel:`noreferrer`,title:`Open the PDF in a new tab`,className:`chrome flex items-center gap-1 rounded-sm px-2 py-0.5 text-[10px] uppercase tracking-[0.08em] text-text-subtle transition-colors hover:bg-surface-elevated hover:text-text-muted`,children:[(0,E.jsx)(n,{className:`h-3 w-3`}),`Open full page`]})}),(0,E.jsx)(`iframe`,{title:r.name,src:d,className:`min-h-0 w-full flex-1 border-0 bg-surface-elevated/30`})]});if(r.truncated)return(0,E.jsxs)(`div`,{className:`p-6 font-sans text-[13px] text-text-muted`,children:[`This file is too large to inline (`,te(r.size),`).`,` `,(0,E.jsx)(`a`,{href:d,target:`_blank`,rel:`noreferrer`,className:`text-accent underline underline-offset-2`,children:`Open raw`})]});if(r.kind===`binary`||r.content===void 0)return(0,E.jsxs)(`div`,{className:`p-6 font-sans text-[13px] text-text-muted`,children:[`Binary file (`,te(r.size),`).`,` `,(0,E.jsx)(`a`,{href:d,target:`_blank`,rel:`noreferrer`,className:`text-accent underline underline-offset-2`,children:`Open raw`})]});if(r.kind===`markdown`)return(0,E.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col`,children:[!ie&&(0,E.jsx)(`div`,{className:`flex h-9 shrink-0 items-center justify-end border-b border-border-soft px-3`,children:(0,E.jsx)(YT,{mode:w,onChange:ae})}),oe?(0,E.jsx)(nE,{body:r.content,language:`markdown`}):(0,E.jsx)(`div`,{ref:f,className:`@container min-h-0 flex-1 overflow-y-auto px-6 py-6 md:px-10 md:py-10`,children:(0,E.jsxs)(`div`,{className:[`mx-auto flex w-full max-w-[1024px] gap-12`,C?`@min-[1372px]:max-w-[1292px]`:``].join(` `),children:[(0,E.jsxs)(`div`,{className:`w-full min-w-0 max-w-[1024px] flex-1`,children:[m&&(0,E.jsx)(iE,{entries:m}),(0,E.jsx)(`div`,{className:`md-prose`,children:(0,E.jsx)(Hm,{remarkPlugins:[J_,ov,lv],rehypePlugins:[bC,pE,[Tw,SE],ow],components:ue,children:_})})]}),C&&(0,E.jsxs)(`nav`,{"aria-label":`On this page`,className:`sticky top-2 hidden w-[220px] shrink-0 self-start @min-[1372px]:block`,children:[(0,E.jsx)(`div`,{className:`chrome mb-3 text-[11px] uppercase tracking-[0.14em] text-text-muted`,children:`On this page`}),(0,E.jsx)(`ul`,{className:`space-y-2 border-l border-border-soft pl-3`,children:g.map(e=>(0,E.jsx)(`li`,{children:(0,E.jsx)(`a`,{href:`#${e.id}`,onClick:t=>{t.preventDefault(),ce(e.id),document.getElementById(e.id)?.scrollIntoView({behavior:`smooth`}),RT(e.id),S(e.id)},className:[`block truncate font-sans text-[14px] leading-snug transition-colors`,b===e.id?`text-accent`:`text-text-muted hover:text-text`].join(` `),style:{paddingLeft:`${(e.depth-ee)*12}px`},children:e.text})},`${e.id}-${e.line}`))})]})]})})]});let de=r.kind===`json`?`json`:r.language??`text`,fe=r.content;if(r.kind===`json`)try{fe=JSON.stringify(JSON.parse(r.content),null,2)}catch{}return(0,E.jsx)(nE,{body:fe,language:de})}export{KT as a,zT as c,ic as d,Qs as f,GT as i,HT as l,me as m,ZT as n,qT as o,Ks as p,QT as r,YT as s,wE as t,rc as u};