@inkeep/agents-manage-ui 0.2.0 → 0.2.2

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 (184) hide show
  1. package/.next/standalone/agents-manage-ui/.next/BUILD_ID +1 -1
  2. package/.next/standalone/agents-manage-ui/.next/app-build-manifest.json +61 -61
  3. package/.next/standalone/agents-manage-ui/.next/app-path-routes-manifest.json +2 -2
  4. package/.next/standalone/agents-manage-ui/.next/build-manifest.json +2 -2
  5. package/.next/standalone/agents-manage-ui/.next/prerender-manifest.json +3 -27
  6. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/page.js +2 -2
  7. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/page.js.nft.json +1 -1
  8. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/page_client-reference-manifest.js +1 -1
  9. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/api-keys/page.js +3 -3
  10. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/api-keys/page.js.nft.json +1 -1
  11. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/api-keys/page_client-reference-manifest.js +1 -1
  12. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/artifact-components/[artifactComponentId]/page.js +2 -2
  13. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/artifact-components/[artifactComponentId]/page.js.nft.json +1 -1
  14. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/artifact-components/[artifactComponentId]/page_client-reference-manifest.js +1 -1
  15. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/artifact-components/new/page.js +1 -1
  16. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/artifact-components/new/page.js.nft.json +1 -1
  17. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/artifact-components/new/page_client-reference-manifest.js +1 -1
  18. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/artifact-components/page.js +2 -2
  19. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/artifact-components/page.js.nft.json +1 -1
  20. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/artifact-components/page_client-reference-manifest.js +1 -1
  21. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/[credentialId]/page.js +2 -2
  22. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/[credentialId]/page.js.nft.json +1 -1
  23. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/[credentialId]/page_client-reference-manifest.js +1 -1
  24. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/new/bearer/page.js +2 -2
  25. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/new/bearer/page.js.nft.json +1 -1
  26. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/new/bearer/page_client-reference-manifest.js +1 -1
  27. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/new/page.js +2 -2
  28. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/new/page.js.nft.json +1 -1
  29. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/new/page_client-reference-manifest.js +1 -1
  30. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/new/providers/[providerId]/page.js +2 -2
  31. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/new/providers/[providerId]/page.js.nft.json +1 -1
  32. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/new/providers/[providerId]/page_client-reference-manifest.js +1 -1
  33. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/new/providers/page.js +2 -2
  34. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/new/providers/page.js.nft.json +1 -1
  35. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/new/providers/page_client-reference-manifest.js +1 -1
  36. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/page.js +2 -2
  37. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/page.js.nft.json +1 -1
  38. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/page_client-reference-manifest.js +1 -1
  39. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/data-components/[dataComponentId]/page.js +2 -2
  40. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/data-components/[dataComponentId]/page.js.nft.json +1 -1
  41. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/data-components/[dataComponentId]/page_client-reference-manifest.js +1 -1
  42. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/data-components/new/page.js +2 -2
  43. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/data-components/new/page.js.nft.json +1 -1
  44. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/data-components/new/page_client-reference-manifest.js +1 -1
  45. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/data-components/page.js +1 -1
  46. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/data-components/page.js.nft.json +1 -1
  47. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/data-components/page_client-reference-manifest.js +1 -1
  48. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/graphs/[graphId]/page.js +2 -2
  49. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/graphs/[graphId]/page.js.nft.json +1 -1
  50. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/graphs/[graphId]/page_client-reference-manifest.js +1 -1
  51. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/graphs/new/page.js +2 -2
  52. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/graphs/new/page.js.nft.json +1 -1
  53. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/graphs/new/page_client-reference-manifest.js +1 -1
  54. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/graphs/page.js +2 -2
  55. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/graphs/page.js.nft.json +1 -1
  56. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/graphs/page_client-reference-manifest.js +1 -1
  57. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/mcp-servers/[mcpServerId]/edit/page.js +2 -2
  58. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/mcp-servers/[mcpServerId]/edit/page.js.nft.json +1 -1
  59. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/mcp-servers/[mcpServerId]/edit/page_client-reference-manifest.js +1 -1
  60. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/mcp-servers/[mcpServerId]/page.js +1 -1
  61. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/mcp-servers/[mcpServerId]/page.js.nft.json +1 -1
  62. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/mcp-servers/[mcpServerId]/page_client-reference-manifest.js +1 -1
  63. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/mcp-servers/new/page.js +2 -2
  64. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/mcp-servers/new/page.js.nft.json +1 -1
  65. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/mcp-servers/new/page_client-reference-manifest.js +1 -1
  66. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/mcp-servers/page.js +2 -2
  67. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/mcp-servers/page.js.nft.json +1 -1
  68. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/mcp-servers/page_client-reference-manifest.js +1 -1
  69. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/page.js +2 -2
  70. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/page.js.nft.json +1 -1
  71. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/page_client-reference-manifest.js +1 -1
  72. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/settings/page.js +1 -1
  73. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/settings/page.js.nft.json +1 -1
  74. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/settings/page_client-reference-manifest.js +1 -1
  75. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/traces/ai-calls/page.js +2 -2
  76. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/traces/ai-calls/page.js.nft.json +1 -1
  77. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/traces/ai-calls/page_client-reference-manifest.js +1 -1
  78. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/traces/conversations/[conversationId]/page.js +2 -2
  79. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/traces/conversations/[conversationId]/page.js.nft.json +1 -1
  80. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/traces/conversations/[conversationId]/page_client-reference-manifest.js +1 -1
  81. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/traces/page.js +2 -2
  82. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/traces/page.js.nft.json +1 -1
  83. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/traces/page_client-reference-manifest.js +1 -1
  84. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/page.js +3 -3
  85. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/page.js.nft.json +1 -1
  86. package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/page_client-reference-manifest.js +1 -1
  87. package/.next/standalone/agents-manage-ui/.next/server/app/_not-found/page.js +2 -2
  88. package/.next/standalone/agents-manage-ui/.next/server/app/_not-found/page.js.nft.json +1 -1
  89. package/.next/standalone/agents-manage-ui/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  90. package/.next/standalone/agents-manage-ui/.next/server/app/_not-found.html +1 -1
  91. package/.next/standalone/agents-manage-ui/.next/server/app/_not-found.rsc +21 -20
  92. package/.next/standalone/agents-manage-ui/.next/server/app/api/signoz/conversations/[conversationId]/route.js +2 -2
  93. package/.next/standalone/agents-manage-ui/.next/server/app/api/signoz/conversations/[conversationId]/route_client-reference-manifest.js +1 -1
  94. package/.next/standalone/agents-manage-ui/.next/server/app/api/signoz/route.js +1 -1
  95. package/.next/standalone/agents-manage-ui/.next/server/app/api/signoz/route_client-reference-manifest.js +1 -1
  96. package/.next/standalone/agents-manage-ui/.next/server/app/page.js +2 -2
  97. package/.next/standalone/agents-manage-ui/.next/server/app/page.js.nft.json +1 -1
  98. package/.next/standalone/agents-manage-ui/.next/server/app/page_client-reference-manifest.js +1 -1
  99. package/.next/standalone/agents-manage-ui/.next/server/app-paths-manifest.json +2 -2
  100. package/.next/standalone/agents-manage-ui/.next/server/chunks/1190.js +10 -0
  101. package/.next/standalone/agents-manage-ui/.next/server/chunks/1291.js +1 -0
  102. package/.next/standalone/agents-manage-ui/.next/server/chunks/4076.js +1 -0
  103. package/.next/standalone/agents-manage-ui/.next/server/chunks/4308.js +13 -13
  104. package/.next/standalone/agents-manage-ui/.next/server/chunks/{5403.js → 4868.js} +2 -2
  105. package/.next/standalone/agents-manage-ui/.next/server/chunks/5368.js +211 -0
  106. package/.next/standalone/agents-manage-ui/.next/server/chunks/5795.js +2 -2
  107. package/.next/standalone/agents-manage-ui/.next/server/chunks/6708.js +2 -2
  108. package/.next/standalone/agents-manage-ui/.next/server/chunks/6895.js +3 -3
  109. package/.next/standalone/agents-manage-ui/.next/server/chunks/7649.js +1 -0
  110. package/.next/standalone/agents-manage-ui/.next/server/chunks/7675.js +1 -0
  111. package/.next/standalone/agents-manage-ui/.next/server/chunks/7789.js +1 -1
  112. package/.next/standalone/agents-manage-ui/.next/server/chunks/9037.js +1 -1
  113. package/.next/standalone/agents-manage-ui/.next/server/chunks/9518.js +1 -0
  114. package/.next/standalone/agents-manage-ui/.next/server/chunks/9933.js +1 -0
  115. package/.next/standalone/agents-manage-ui/.next/server/pages/404.html +1 -1
  116. package/.next/standalone/agents-manage-ui/.next/server/pages/500.html +1 -1
  117. package/.next/standalone/agents-manage-ui/.next/server/server-reference-manifest.js +1 -1
  118. package/.next/standalone/agents-manage-ui/.next/server/server-reference-manifest.json +1 -1
  119. package/.next/standalone/agents-manage-ui/.next/static/chunks/2256-d13f4d03f6e666c6.js +1 -0
  120. package/.next/standalone/agents-manage-ui/.next/static/chunks/5068-5a350b3f40723cff.js +1 -0
  121. package/.next/standalone/agents-manage-ui/.next/static/chunks/5871-7109475b5f3202fd.js +1 -0
  122. package/.next/standalone/agents-manage-ui/.next/static/chunks/6159-9e6d36b3c3860bee.js +197 -0
  123. package/.next/standalone/agents-manage-ui/.next/static/chunks/7119-dd1d03084cc42928.js +1 -0
  124. package/.next/standalone/agents-manage-ui/.next/static/chunks/7896-5bd8e6ab2a72ea45.js +1 -0
  125. package/.next/standalone/agents-manage-ui/.next/static/chunks/{662-e74c6ccd2ce36d66.js → 8847-4bb303ebed228d8f.js} +2 -2
  126. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/api-keys/{page-ffe893d233e58c0d.js → page-3d06f3c84a44e7b5.js} +1 -1
  127. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/artifact-components/[artifactComponentId]/{page-710037c680a3f08a.js → page-946057870445b686.js} +1 -1
  128. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/artifact-components/new/{page-710037c680a3f08a.js → page-946057870445b686.js} +1 -1
  129. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/artifact-components/page-4826ed23b1655678.js +1 -0
  130. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/credentials/[credentialId]/page-4e42a263df37bea6.js +1 -0
  131. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/credentials/new/bearer/page-b43c1b83b5ce097b.js +1 -0
  132. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/credentials/new/providers/[providerId]/page-b1851fedb670dfd6.js +1 -0
  133. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/credentials/page-de805893070787ee.js +1 -0
  134. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/data-components/[dataComponentId]/{page-02cb33ec46525da1.js → page-0dd220fad943117d.js} +1 -1
  135. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/data-components/new/{page-02cb33ec46525da1.js → page-0dd220fad943117d.js} +1 -1
  136. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/data-components/page-0269e69fc7a586ec.js +1 -0
  137. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/graphs/[graphId]/{page-ea45ddc77bd96a37.js → page-ed702546246fa4e8.js} +1 -1
  138. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/graphs/new/{page-385daceeac764cfd.js → page-c068c0227ca82374.js} +1 -1
  139. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/graphs/page-fd8c96d772c15325.js +1 -0
  140. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/mcp-servers/[mcpServerId]/edit/{page-9feabe1ec3bcc1ea.js → page-7c33a52e1bd1e62d.js} +1 -1
  141. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/mcp-servers/[mcpServerId]/page-9dad1756953e30d2.js +1 -0
  142. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/mcp-servers/new/{page-2a9bf2c77465c3cd.js → page-6d67e2b4b203cd41.js} +1 -1
  143. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/mcp-servers/page-47f55b2fba61a7ac.js +1 -0
  144. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/settings/{page-1ce7b7b2c8652e4a.js → page-40c93b263477cc13.js} +1 -1
  145. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/traces/conversations/[conversationId]/{page-d47eee627daa36f0.js → page-b54a121418c60f45.js} +1 -1
  146. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/traces/page-ebeed5b63493e3f6.js +1 -0
  147. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/page-6d66d2cb1cf1dbfc.js +1 -0
  148. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/layout-4ff4ce648974b2f3.js +1 -0
  149. package/.next/standalone/agents-manage-ui/package.json +1 -1
  150. package/.next/standalone/package.json +2 -1
  151. package/.next/standalone/packages/agents-core/package.json +3 -1
  152. package/README.md +3 -4
  153. package/package.json +4 -4
  154. package/.next/standalone/agents-manage-ui/.next/server/app/index.html +0 -1
  155. package/.next/standalone/agents-manage-ui/.next/server/app/index.meta +0 -9
  156. package/.next/standalone/agents-manage-ui/.next/server/app/index.rsc +0 -26
  157. package/.next/standalone/agents-manage-ui/.next/server/chunks/246.js +0 -1
  158. package/.next/standalone/agents-manage-ui/.next/server/chunks/2675.js +0 -1
  159. package/.next/standalone/agents-manage-ui/.next/server/chunks/3055.js +0 -1
  160. package/.next/standalone/agents-manage-ui/.next/server/chunks/4.js +0 -1
  161. package/.next/standalone/agents-manage-ui/.next/server/chunks/5413.js +0 -1
  162. package/.next/standalone/agents-manage-ui/.next/server/chunks/6238.js +0 -211
  163. package/.next/standalone/agents-manage-ui/.next/server/chunks/748.js +0 -10
  164. package/.next/standalone/agents-manage-ui/.next/server/chunks/8806.js +0 -1
  165. package/.next/standalone/agents-manage-ui/.next/static/chunks/5068-739a71b561284e61.js +0 -1
  166. package/.next/standalone/agents-manage-ui/.next/static/chunks/5871-37ead25c9ad3dd20.js +0 -1
  167. package/.next/standalone/agents-manage-ui/.next/static/chunks/6814-100fddd845cea826.js +0 -1
  168. package/.next/standalone/agents-manage-ui/.next/static/chunks/7119-c610dfb79c356511.js +0 -1
  169. package/.next/standalone/agents-manage-ui/.next/static/chunks/8652-f8659e98f58c2622.js +0 -1
  170. package/.next/standalone/agents-manage-ui/.next/static/chunks/9851-d636b0f6b62c9dc5.js +0 -197
  171. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/artifact-components/page-cf1cec890457c334.js +0 -1
  172. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/credentials/[credentialId]/page-ee15a57d48ea2874.js +0 -1
  173. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/credentials/new/bearer/page-8ecefca59c44a7a2.js +0 -1
  174. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/credentials/new/providers/[providerId]/page-426ae87d126ab8e1.js +0 -1
  175. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/credentials/page-ae747858f5b4217c.js +0 -1
  176. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/data-components/page-c252ce185e920626.js +0 -1
  177. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/graphs/page-a51011d7943590c0.js +0 -1
  178. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/mcp-servers/[mcpServerId]/page-e741836764ed7b2d.js +0 -1
  179. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/mcp-servers/page-6f32c05cae7344d9.js +0 -1
  180. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/traces/page-f37c116e42f78665.js +0 -1
  181. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/page-b4fb10a56faa66b8.js +0 -1
  182. package/.next/standalone/agents-manage-ui/.next/static/chunks/app/layout-faea737bbf82cd72.js +0 -1
  183. /package/.next/standalone/agents-manage-ui/.next/static/{uH3m2L3b6zJJEoDZ9uE0K → KkORyfjOpWLevS06S7gXB}/_buildManifest.js +0 -0
  184. /package/.next/standalone/agents-manage-ui/.next/static/{uH3m2L3b6zJJEoDZ9uE0K → KkORyfjOpWLevS06S7gXB}/_ssgManifest.js +0 -0
@@ -0,0 +1,197 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6159],{1181:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});class r{constructor(e,t){this.attribute=t,this.property=e}}r.prototype.attribute="",r.prototype.booleanish=!1,r.prototype.boolean=!1,r.prototype.commaOrSpaceSeparated=!1,r.prototype.commaSeparated=!1,r.prototype.defined=!1,r.prototype.mustUseProperty=!1,r.prototype.number=!1,r.prototype.overloadedBoolean=!1,r.prototype.property="",r.prototype.spaceSeparated=!1,r.prototype.space=void 0},3187:(e,t,n)=>{"use strict";function r(e){return e.toLowerCase()}n.d(t,{S:()=>r})},7019:(e,t,n)=>{"use strict";function r(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}n.d(t,{D:()=>r})},8612:(e,t,n)=>{"use strict";n.d(t,{BM:()=>o,CW:()=>r,Ee:()=>d,HP:()=>c,JQ:()=>l,Ny:()=>f,On:()=>h,cx:()=>a,es:()=>p,lV:()=>i,ok:()=>s,ol:()=>u});let r=m(/[A-Za-z]/),i=m(/[\dA-Za-z]/),a=m(/[#-'*+\--9=?A-Z^-~]/);function l(e){return null!==e&&(e<32||127===e)}let o=m(/\d/),s=m(/[\dA-Fa-f]/),u=m(/[!-/:-@[-`{-~]/);function c(e){return null!==e&&e<-2}function d(e){return null!==e&&(e<0||32===e)}function h(e){return -2===e||-1===e||32===e}let p=m(/\p{P}|\p{S}/u),f=m(/\s/);function m(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}},9640:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(82471).A)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},11364:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});let r={}.hasOwnProperty;function i(e,t){let n=t||{};function i(t,...n){let a=i.invalid,l=i.handlers;if(t&&r.call(t,e)){let n=String(t[e]);a=r.call(l,n)?l[n]:i.unknown}if(a)return a.call(this,t,...n)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}},14637:(e,t,n)=>{"use strict";var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var n=t.defaultOrigin,o=void 0===n?"":n,s=t.allowedLinkPrefixes,u=void 0===s?[]:s,c=t.allowedImagePrefixes,d=void 0===c?[]:c,h=t.components,p=i(t,["defaultOrigin","allowedLinkPrefixes","allowedImagePrefixes","components"]),f=u.length&&!u.every(function(e){return"*"===e}),m=d.length&&!d.every(function(e){return"*"===e});if(!o&&(f||m))throw Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");var g=function(e){if("string"!=typeof e)return null;try{var t=new URL(e);return t}catch(n){if(o)try{var t=new URL(e,o);return t}catch(e){}return null}},y=function(e){return"string"==typeof e&&e.startsWith("/")},b=function(e,t){if(!e||!g(e))return null;if(t.includes("*")){var n=y(e),r=g(e);return r?n?r.pathname+r.search+r.hash:r.href:null}var i=y(e),a=g(e);return a&&t.some(function(e){var t=g(e);return!!t&&t.origin===a.origin&&a.href.startsWith(t.href)})?i?a.pathname+a.search+a.hash:a.href:null},k=r(r({},h),{a:function(e){var t=e.href,n=e.children,o=e.node,s=i(e,["href","children","node"]),c=b(t,u);return null!==c?(null==h?void 0:h.a)?(0,l.createElement)(h.a,r({href:c,children:n,node:o,target:"_blank",rel:"noopener noreferrer"},s)):(0,a.jsx)("a",r({href:c},s,{target:"_blank",rel:"noopener noreferrer",children:n})):(0,a.jsxs)("span",{className:"text-gray-500",title:"Blocked URL: ".concat(t),children:[n," [blocked]"]})},img:function(e){var t=e.src,n=e.alt,o=e.node,s=i(e,["src","alt","node"]),u=b(t,d);return null!==u?(null==h?void 0:h.img)?(0,l.createElement)(h.img,r({src:u,alt:n,node:o},s)):(0,a.jsx)("img",r({src:u,alt:n},s)):(0,a.jsxs)("span",{className:"inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",children:["[Image blocked: ",n||"No description","]"]})}}),x=r(r({},p),{components:k});return(0,l.createElement)(e,x)}};var a=n(85012),l=n(56632)},15427:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},l=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!a)return!1;for(r in e);return void 0===r||t.call(e,r)},o=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;else if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,d=arguments[0],h=1,p=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},h=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});h<p;++h)if(t=arguments[h],null!=t)for(n in t)r=s(d,n),d!==(i=s(t,n))&&(f&&i&&(l(i)||(u=a(i)))?(u?(u=!1,c=r&&a(r)?r:[]):c=r&&l(r)?r:{},o(d,{name:n,newValue:e(f,c,i)})):void 0!==i&&o(d,{name:n,newValue:i}));return d}},15711:(e,t,n)=>{"use strict";n.d(t,{dc:()=>a,_Z:()=>l,VG:()=>o});var r=n(58706);let i=[],a=!1,l="skip";function o(e,t,n,o){let s;"function"==typeof t&&"function"!=typeof n?(o=n,n=t):s=t;let u=(0,r.C)(s),c=o?-1:1;(function e(r,s,d){let h=r&&"object"==typeof r?r:{};if("string"==typeof h.type){let e="string"==typeof h.tagName?h.tagName:"string"==typeof h.name?h.name:void 0;Object.defineProperty(p,"name",{value:"node ("+r.type+(e?"<"+e+">":"")+")"})}return p;function p(){var h;let p,f,m,g=i;if((!t||u(r,s,d[d.length-1]||void 0))&&(g=Array.isArray(h=n(r,d))?h:"number"==typeof h?[!0,h]:null==h?i:[h])[0]===a)return g;if("children"in r&&r.children&&r.children&&g[0]!==l)for(f=(o?r.children.length:-1)+c,m=d.concat(r);f>-1&&f<r.children.length;){if((p=e(r.children[f],f,m)())[0]===a)return p;f="number"==typeof p[1]?p[1]:f+c}return g}})(e,void 0,[])()}},16995:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});let r={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},19083:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});var r=n(8612);function i(e){return null===e||(0,r.Ee)(e)||(0,r.Ny)(e)?1:(0,r.es)(e)?2:void 0}},19287:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(82471).A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},20153:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(82471).A)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]])},24061:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(82471).A)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},24129:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(82471).A)("hammer",[["path",{d:"m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9",key:"1hayfq"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"15ts47"}]])},26363:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});let r=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"]},27346:(e,t,n)=>{"use strict";n.d(t,{$:()=>r});let r={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"]}},28655:()=>{},29570:(e,t,n)=>{"use strict";function r(e){return e&&"object"==typeof e?"position"in e||"type"in e?a(e.position):"start"in e||"end"in e?a(e):"line"in e||"column"in e?i(e):"":""}function i(e){return l(e&&e.line)+":"+l(e&&e.column)}function a(e){return i(e&&e.start)+"-"+i(e&&e.end)}function l(e){return e&&"number"==typeof e?e:1}n.d(t,{L:()=>r})},30619:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,i.default)(e),a="function"==typeof t;return r.forEach(function(e){if("declaration"===e.type){var r=e.property,i=e.value;a?t(r,i,e):i&&((n=n||{})[r]=i)}}),n};var i=r(n(87940))},31810:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(82471).A)("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},31850:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>c});let r="object"==typeof self?self:globalThis,i=e=>((e,t)=>{let n=(t,n)=>(e.set(n,t),t),i=a=>{if(e.has(a))return e.get(a);let[l,o]=t[a];switch(l){case 0:case -1:return n(o,a);case 1:{let e=n([],a);for(let t of o)e.push(i(t));return e}case 2:{let e=n({},a);for(let[t,n]of o)e[i(t)]=i(n);return e}case 3:return n(new Date(o),a);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),a)}case 5:{let e=n(new Map,a);for(let[t,n]of o)e.set(i(t),i(n));return e}case 6:{let e=n(new Set,a);for(let t of o)e.add(i(t));return e}case 7:{let{name:e,message:t}=o;return n(new r[e](t),a)}case 8:return n(BigInt(o),a);case"BigInt":return n(Object(BigInt(o)),a);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new r[l](o),a)};return i})(new Map,e)(0),{toString:a}={},{keys:l}=Object,o=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=a.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]},s=([e,t])=>0===e&&("function"===t||"symbol"===t),u=(e,{json:t,lossy:n}={})=>{let r=[];return((e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[u,c]=o(r);switch(u){case 0:{let t=r;switch(c){case"bigint":u=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+c);t=null;break;case"undefined":return i([-1],r)}return i([u,t],r)}case 1:{if(c){let e=r;return"DataView"===c?e=new Uint8Array(r.buffer):"ArrayBuffer"===c&&(e=new Uint8Array(r)),i([c,[...e]],r)}let e=[],t=i([u,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(c)switch(c){case"BigInt":return i([c,r.toString()],r);case"Boolean":case"Number":case"String":return i([c,r.valueOf()],r)}if(t&&"toJSON"in r)return a(r.toJSON());let n=[],d=i([u,n],r);for(let t of l(r))(e||!s(o(r[t])))&&n.push([a(t),a(r[t])]);return d}case 3:return i([u,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([u,{source:e,flags:t}],r)}case 5:{let t=[],n=i([u,t],r);for(let[n,i]of r)(e||!(s(o(n))||s(o(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([u,t],r);for(let n of r)(e||!s(o(n)))&&t.push(a(n));return n}}let{message:d}=r;return i([u,{name:c,message:d}],r)};return a})(!(t||n),!!t,new Map,r)(e),r},c="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?i(u(e,t)):structuredClone(e):(e,t)=>i(u(e,t))},32746:(e,t,n)=>{"use strict";n.d(t,{qy:()=>y,JW:()=>b});class r{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function i(e,t){let n={},i={};for(let t of e)Object.assign(n,t.property),Object.assign(i,t.normal);return new r(n,i,t)}r.prototype.normal={},r.prototype.property={},r.prototype.space=void 0;var a=n(3187),l=n(42501);function o(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let o=new l.E(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[(0,a.S)(r)]=r,n[(0,a.S)(o.attribute)]=r}return new r(t,n,e.space)}var s=n(64510);let u=o({properties:{ariaActiveDescendant:null,ariaAtomic:s.booleanish,ariaAutoComplete:null,ariaBusy:s.booleanish,ariaChecked:s.booleanish,ariaColCount:s.number,ariaColIndex:s.number,ariaColSpan:s.number,ariaControls:s.spaceSeparated,ariaCurrent:null,ariaDescribedBy:s.spaceSeparated,ariaDetails:null,ariaDisabled:s.booleanish,ariaDropEffect:s.spaceSeparated,ariaErrorMessage:null,ariaExpanded:s.booleanish,ariaFlowTo:s.spaceSeparated,ariaGrabbed:s.booleanish,ariaHasPopup:null,ariaHidden:s.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s.spaceSeparated,ariaLevel:s.number,ariaLive:null,ariaModal:s.booleanish,ariaMultiLine:s.booleanish,ariaMultiSelectable:s.booleanish,ariaOrientation:null,ariaOwns:s.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:s.number,ariaPressed:s.booleanish,ariaReadOnly:s.booleanish,ariaRelevant:null,ariaRequired:s.booleanish,ariaRoleDescription:s.spaceSeparated,ariaRowCount:s.number,ariaRowIndex:s.number,ariaRowSpan:s.number,ariaSelected:s.booleanish,ariaSetSize:s.number,ariaSort:null,ariaValueMax:s.number,ariaValueMin:s.number,ariaValueNow:s.number,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function c(e,t){return t in e?e[t]:t}function d(e,t){return c(e,t.toLowerCase())}let h=o({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:s.commaSeparated,acceptCharset:s.spaceSeparated,accessKey:s.spaceSeparated,action:null,allow:null,allowFullScreen:s.boolean,allowPaymentRequest:s.boolean,allowUserMedia:s.boolean,alt:null,as:null,async:s.boolean,autoCapitalize:null,autoComplete:s.spaceSeparated,autoFocus:s.boolean,autoPlay:s.boolean,blocking:s.spaceSeparated,capture:null,charSet:null,checked:s.boolean,cite:null,className:s.spaceSeparated,cols:s.number,colSpan:null,content:null,contentEditable:s.booleanish,controls:s.boolean,controlsList:s.spaceSeparated,coords:s.number|s.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:s.boolean,defer:s.boolean,dir:null,dirName:null,disabled:s.boolean,download:s.overloadedBoolean,draggable:s.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:s.boolean,formTarget:null,headers:s.spaceSeparated,height:s.number,hidden:s.overloadedBoolean,high:s.number,href:null,hrefLang:null,htmlFor:s.spaceSeparated,httpEquiv:s.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:s.boolean,inputMode:null,integrity:null,is:null,isMap:s.boolean,itemId:null,itemProp:s.spaceSeparated,itemRef:s.spaceSeparated,itemScope:s.boolean,itemType:s.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:s.boolean,low:s.number,manifest:null,max:null,maxLength:s.number,media:null,method:null,min:null,minLength:s.number,multiple:s.boolean,muted:s.boolean,name:null,nonce:null,noModule:s.boolean,noValidate:s.boolean,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:s.boolean,optimum:s.number,pattern:null,ping:s.spaceSeparated,placeholder:null,playsInline:s.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:s.boolean,referrerPolicy:null,rel:s.spaceSeparated,required:s.boolean,reversed:s.boolean,rows:s.number,rowSpan:s.number,sandbox:s.spaceSeparated,scope:null,scoped:s.boolean,seamless:s.boolean,selected:s.boolean,shadowRootClonable:s.boolean,shadowRootDelegatesFocus:s.boolean,shadowRootMode:null,shape:null,size:s.number,sizes:null,slot:null,span:s.number,spellCheck:s.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:s.number,step:null,style:null,tabIndex:s.number,target:null,title:null,translate:null,type:null,typeMustMatch:s.boolean,useMap:null,value:s.booleanish,width:s.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:s.spaceSeparated,axis:null,background:null,bgColor:null,border:s.number,borderColor:null,bottomMargin:s.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:s.boolean,declare:s.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:s.number,leftMargin:s.number,link:null,longDesc:null,lowSrc:null,marginHeight:s.number,marginWidth:s.number,noResize:s.boolean,noHref:s.boolean,noShade:s.boolean,noWrap:s.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:s.number,rules:null,scheme:null,scrolling:s.booleanish,standby:null,summary:null,text:null,topMargin:s.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:s.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:s.boolean,disableRemotePlayback:s.boolean,prefix:null,property:null,results:s.number,security:null,unselectable:null},space:"html",transform:d}),p=o({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:s.commaOrSpaceSeparated,accentHeight:s.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:s.number,amplitude:s.number,arabicForm:null,ascent:s.number,attributeName:null,attributeType:null,azimuth:s.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:s.number,by:null,calcMode:null,capHeight:s.number,className:s.spaceSeparated,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:s.number,diffuseConstant:s.number,direction:null,display:null,dur:null,divisor:s.number,dominantBaseline:null,download:s.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:s.number,enableBackground:null,end:null,event:null,exponent:s.number,externalResourcesRequired:null,fill:null,fillOpacity:s.number,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:s.commaSeparated,g2:s.commaSeparated,glyphName:s.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:s.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:s.number,horizOriginX:s.number,horizOriginY:s.number,id:null,ideographic:s.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:s.number,k:s.number,k1:s.number,k2:s.number,k3:s.number,k4:s.number,kernelMatrix:s.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:s.number,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:s.number,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:s.number,overlineThickness:s.number,paintOrder:null,panose1:null,path:null,pathLength:s.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:s.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:s.number,pointsAtY:s.number,pointsAtZ:s.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:s.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:s.commaOrSpaceSeparated,rev:s.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:s.commaOrSpaceSeparated,requiredFeatures:s.commaOrSpaceSeparated,requiredFonts:s.commaOrSpaceSeparated,requiredFormats:s.commaOrSpaceSeparated,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:s.number,specularExponent:s.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:s.number,strikethroughThickness:s.number,string:null,stroke:null,strokeDashArray:s.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:s.number,strokeOpacity:s.number,strokeWidth:null,style:null,surfaceScale:s.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:s.commaOrSpaceSeparated,tabIndex:s.number,tableValues:null,target:null,targetX:s.number,targetY:s.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:s.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:s.number,underlineThickness:s.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:s.number,values:null,vAlphabetic:s.number,vMathematical:s.number,vectorEffect:null,vHanging:s.number,vIdeographic:s.number,version:null,vertAdvY:s.number,vertOriginX:s.number,vertOriginY:s.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:s.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:c}),f=o({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()}),m=o({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:d}),g=o({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),y=i([u,h,f,m,g],"html"),b=i([u,p,f,m,g],"svg")},33109:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(82471).A)("chrome",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["line",{x1:"21.17",x2:"12",y1:"8",y2:"8",key:"a0cw5f"}],["line",{x1:"3.95",x2:"8.54",y1:"6.06",y2:"14",key:"1kftof"}],["line",{x1:"10.88",x2:"15.46",y1:"21.94",y2:"14",key:"1ymyh8"}]])},40973:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(82471).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},41945:(e,t,n)=>{"use strict";function r(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}n.d(t,{B:()=>r})},42501:(e,t,n)=>{"use strict";n.d(t,{E:()=>l});var r=n(1181),i=n(64510);let a=Object.keys(i);class l extends r.R{constructor(e,t,n,r){let l=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++l<a.length;){let e=a[l];!function(e,t,n){n&&(e[t]=n)}(this,a[l],(n&i[e])===i[e])}}}l.prototype.defined=!0},43032:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(82471).A)("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]])},46645:(e,t,n)=>{"use strict";n.d(t,{YR:()=>i});var r=n(15711);function i(e,t,n,i){let a,l,o;"function"==typeof t&&"function"!=typeof n?(l=void 0,o=t,a=n):(l=t,o=n,a=i),(0,r.VG)(e,l,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)},a)}},47739:(e,t,n)=>{"use strict";let r,i;n.d(t,{TW:()=>ex,YZ:()=>ey,Zk:()=>m});var a,l=n(56632);let o=(0,l.createContext)(null);o.displayName="PanelGroupContext";let s={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},u=l.useLayoutEffect,c=(a||(a=n.t(l,2)))["useId".toString()],d="function"==typeof c?c:()=>null,h=0;function p(e=null){let t=d(),n=(0,l.useRef)(e||t||null);return null===n.current&&(n.current=""+h++),null!=e?e:n.current}function f({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:i,forwardedRef:a,id:c,maxSize:d,minSize:h,onCollapse:f,onExpand:m,onResize:g,order:y,style:b,tagName:k="div",...x}){let v=(0,l.useContext)(o);if(null===v)throw Error("Panel components must be rendered within a PanelGroup container");let{collapsePanel:w,expandPanel:S,getPanelSize:C,getPanelStyle:_,groupId:A,isPanelCollapsed:E,reevaluatePanelConstraints:N,registerPanel:P,resizePanel:T,unregisterPanel:I}=v,L=p(c),R=(0,l.useRef)({callbacks:{onCollapse:f,onExpand:m,onResize:g},constraints:{collapsedSize:n,collapsible:r,defaultSize:i,maxSize:d,minSize:h},id:L,idIsFromProps:void 0!==c,order:y});(0,l.useRef)({didLogMissingDefaultSizeWarning:!1}),u(()=>{let{callbacks:e,constraints:t}=R.current,a={...t};R.current.id=L,R.current.idIsFromProps=void 0!==c,R.current.order=y,e.onCollapse=f,e.onExpand=m,e.onResize=g,t.collapsedSize=n,t.collapsible=r,t.defaultSize=i,t.maxSize=d,t.minSize=h,(a.collapsedSize!==t.collapsedSize||a.collapsible!==t.collapsible||a.maxSize!==t.maxSize||a.minSize!==t.minSize)&&N(R.current,a)}),u(()=>{let e=R.current;return P(e),()=>{I(e)}},[y,L,P,I]),(0,l.useImperativeHandle)(a,()=>({collapse:()=>{w(R.current)},expand:e=>{S(R.current,e)},getId:()=>L,getSize:()=>C(R.current),isCollapsed:()=>E(R.current),isExpanded:()=>!E(R.current),resize:e=>{T(R.current,e)}}),[w,S,C,E,L,T]);let M=_(R.current,i);return(0,l.createElement)(k,{...x,children:e,className:t,id:L,style:{...M,...b},[s.groupId]:A,[s.panel]:"",[s.panelCollapsible]:r||void 0,[s.panelId]:L,[s.panelSize]:parseFloat(""+M.flexGrow).toFixed(1)})}let m=(0,l.forwardRef)((e,t)=>(0,l.createElement)(f,{...e,forwardedRef:t}));f.displayName="Panel",m.displayName="forwardRef(Panel)";let g=null,y=-1,b=null;function k(e,t,n){var i,a,l;let o=function(e,t,n){let r=(t&P)!=0,i=(t&T)!=0,a=(t&I)!=0,l=(t&L)!=0;if(t){if(r)if(a)return"se-resize";else if(l)return"ne-resize";else return"e-resize";else if(i)if(a)return"sw-resize";else if(l)return"nw-resize";else return"w-resize";else if(a)return"s-resize";else if(l)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}(e,t,0);g!==o&&(g=o,null===b&&(b=document.createElement("style"),r&&b.setAttribute("nonce",r),document.head.appendChild(b)),y>=0&&(null==(l=b.sheet)||l.removeRule(y)),y=null!=(i=null==(a=b.sheet)?void 0:a.insertRule(`*{cursor: ${o} !important;}`))?i:-1)}function x(e){return"keydown"===e.type}function v(e){return e.type.startsWith("pointer")}function w(e){return e.type.startsWith("mouse")}function S(e){if(v(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(w(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}let C=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function _(e){let t=e.length;for(;t--;){let n=e[t];if(V(n,"Missing node"),function(e){let t=getComputedStyle(e);return!!("fixed"===t.position||"auto"!==t.zIndex&&("static"!==t.position||function(e){var t;let n=getComputedStyle(null!=(t=N(e))?t:e).display;return"flex"===n||"inline-flex"===n}(e))||1>+t.opacity||"transform"in t&&"none"!==t.transform||"webkitTransform"in t&&"none"!==t.webkitTransform||"mixBlendMode"in t&&"normal"!==t.mixBlendMode||"filter"in t&&"none"!==t.filter||"webkitFilter"in t&&"none"!==t.webkitFilter||"isolation"in t&&"isolate"===t.isolation||C.test(t.willChange))||"touch"===t.webkitOverflowScrolling}(n))return n}return null}function A(e){return e&&Number(getComputedStyle(e).zIndex)||0}function E(e){let t=[];for(;e;)t.push(e),e=N(e);return t}function N(e){let{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}let P=1,T=2,I=4,L=8,R="coarse"===function(){if("function"==typeof matchMedia)return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}(),M=[],$=!1,O=new Map,D=new Map,j=new Set;function z(e){let{target:t}=e,{x:n,y:r}=S(e);$=!0,G({target:t,x:n,y:r}),q(),M.length>0&&(W("down",e),U(),e.preventDefault(),H(t)||e.stopImmediatePropagation())}function F(e){let{x:t,y:n}=S(e);if($&&"pointerleave"!==e.type&&0===e.buttons&&($=!1,W("up",e)),!$){let{target:r}=e;G({target:r,x:t,y:n})}W("move",e),U(),M.length>0&&e.preventDefault()}function B(e){let{target:t}=e,{x:n,y:r}=S(e);D.clear(),$=!1,M.length>0&&(e.preventDefault(),H(t)||e.stopImmediatePropagation()),W("up",e),G({target:t,x:n,y:r}),U(),q()}function H(e){let t=e;for(;t;){if(t.hasAttribute(s.resizeHandle))return!0;t=t.parentElement}return!1}function G({target:e,x:t,y:n}){M.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),j.forEach(e=>{let{element:i,hitAreaMargins:a}=e,l=i.getBoundingClientRect(),{bottom:o,left:s,right:u,top:c}=l,d=R?a.coarse:a.fine;if(t>=s-d&&t<=u+d&&n>=c-d&&n<=o+d){if(null!==r&&document.contains(r)&&i!==r&&!i.contains(r)&&!r.contains(i)&&function(e,t){let n;if(e===t)throw Error("Cannot compare node with itself");let r={a:E(e),b:E(t)};for(;r.a.at(-1)===r.b.at(-1);)e=r.a.pop(),t=r.b.pop(),n=e;V(n,"Stacking order can only be calculated for elements with a common ancestor");let i={a:A(_(r.a)),b:A(_(r.b))};if(i.a===i.b){let e=n.childNodes,t={a:r.a.at(-1),b:r.b.at(-1)},i=e.length;for(;i--;){let n=e[i];if(n===t.a)return 1;if(n===t.b)return -1}}return Math.sign(i.a-i.b)}(r,i)>0){let e=r,t=!1;for(;e;){var h;if(e.contains(i))break;if(h=e.getBoundingClientRect(),h.x<l.x+l.width&&h.x+h.width>l.x&&h.y<l.y+l.height&&h.y+h.height>l.y){t=!0;break}e=e.parentElement}if(t)return}M.push(e)}})}function U(){let e=!1,t=!1;M.forEach(n=>{let{direction:r}=n;"horizontal"===r?e=!0:t=!0});let n=0;D.forEach(e=>{n|=e}),e&&t?k("intersection",n,$):e?k("horizontal",n,$):t?k("vertical",n,$):null!==b&&(document.head.removeChild(b),g=null,b=null,y=-1)}function q(){var e;null==(e=i)||e.abort();let t={capture:!0,signal:(i=new AbortController).signal};j.size&&($?(M.length>0&&O.forEach((e,n)=>{let{body:r}=n;e>0&&(r.addEventListener("contextmenu",B,t),r.addEventListener("pointerleave",F,t),r.addEventListener("pointermove",F,t))}),O.forEach((e,n)=>{let{body:r}=n;r.addEventListener("pointerup",B,t),r.addEventListener("pointercancel",B,t)})):O.forEach((e,n)=>{let{body:r}=n;e>0&&(r.addEventListener("pointerdown",z,t),r.addEventListener("pointermove",F,t))}))}function W(e,t){j.forEach(n=>{let{setResizeHandlerState:r}=n;r(e,M.includes(n),t)})}function V(e,t){if(!e)throw console.error(t),Error(t)}function Q(e,t,n=10){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function Z(e,t,n=10){return 0===Q(e,t,n)}function X(e,t,n){return 0===Q(e,t,n)}function J({panelConstraints:e,panelIndex:t,size:n}){let r=e[t];V(null!=r,`Panel constraints not found for index ${t}`);let{collapsedSize:i=0,collapsible:a,maxSize:l=100,minSize:o=0}=r;return 0>Q(n,o)&&(n=a&&0>Q(n,(i+o)/2)?i:o),n=parseFloat((n=Math.min(l,n)).toFixed(10))}function K({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:a}){if(X(e,0))return t;let l=[...t],[o,s]=r;V(null!=o,"Invalid first pivot index"),V(null!=s,"Invalid second pivot index");let u=0;if("keyboard"===a){{let r=e<0?s:o,i=n[r];V(i,`Panel constraints not found for index ${r}`);let{collapsedSize:a=0,collapsible:l,minSize:u=0}=i;if(l){let n=t[r];if(V(null!=n,`Previous layout not found for panel index ${r}`),X(n,a)){let t=u-n;Q(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{let r=e<0?o:s,i=n[r];V(i,`No panel constraints found for index ${r}`);let{collapsedSize:a=0,collapsible:l,minSize:u=0}=i;if(l){let n=t[r];if(V(null!=n,`Previous layout not found for panel index ${r}`),X(n,u)){let t=n-a;Q(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}}{let r=e<0?1:-1,i=e<0?s:o,a=0;for(;;){let e=t[i];if(V(null!=e,`Previous layout not found for panel index ${i}`),a+=J({panelConstraints:n,panelIndex:i,size:100})-e,(i+=r)<0||i>=n.length)break}let l=Math.min(Math.abs(e),Math.abs(a));e=e<0?0-l:l}{let r=e<0?o:s;for(;r>=0&&r<n.length;){let i=Math.abs(e)-Math.abs(u),a=t[r];V(null!=a,`Previous layout not found for panel index ${r}`);let o=J({panelConstraints:n,panelIndex:r,size:a-i});if(!X(a,o)&&(u+=a-o,l[r]=o,u.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?r--:r++}}if(function(e,t,n){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!X(e[n],t[n],void 0))return!1;return!0}(i,l))return i;{let r=e<0?s:o,i=t[r];V(null!=i,`Previous layout not found for panel index ${r}`);let a=i+u,c=J({panelConstraints:n,panelIndex:r,size:a});if(l[r]=c,!X(c,a)){let t=a-c,r=e<0?s:o;for(;r>=0&&r<n.length;){let i=l[r];V(null!=i,`Previous layout not found for panel index ${r}`);let a=J({panelConstraints:n,panelIndex:r,size:i+t});if(X(i,a)||(t-=a-i,l[r]=a),X(t,0))break;e>0?r--:r++}}}return X(l.reduce((e,t)=>t+e,0),100)?l:i}function Y(e,t=document){return Array.from(t.querySelectorAll(`[${s.resizeHandleId}][data-panel-group-id="${e}"]`))}function ee(e,t,n=document){let r=Y(e,n).findIndex(e=>e.getAttribute(s.resizeHandleId)===t);return null!=r?r:null}function et(e,t,n){let r=ee(e,t,n);return null!=r?[r,r+1]:[-1,-1]}function en(e,t=document){if((t instanceof HTMLElement||"object"==typeof t&&null!==t&&"tagName"in t&&"getAttribute"in t)&&t.dataset.panelGroupId==e)return t;let n=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return n||null}function er(e,t=document){let n=t.querySelector(`[${s.resizeHandleId}="${e}"]`);return n||null}function ei(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function ea(e,t){let{x:n,y:r}=S(t);return"horizontal"===e?n:r}function el(e,t,n){t.forEach((t,r)=>{let i=e[r];V(i,`Panel data not found for index ${r}`);let{callbacks:a,constraints:l,id:o}=i,{collapsedSize:s=0,collapsible:u}=l,c=n[o];if(null==c||t!==c){n[o]=t;let{onCollapse:e,onExpand:r,onResize:i}=a;i&&i(t,c),u&&(e||r)&&(r&&(null==c||Z(c,s))&&!Z(t,s)&&r(),e&&(null==c||!Z(c,s))&&Z(t,s)&&e())}})}function eo(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function es(e){try{if("undefined"!=typeof localStorage)e.getItem=e=>localStorage.getItem(e),e.setItem=(e,t)=>{localStorage.setItem(e,t)};else throw Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function eu(e){return`react-resizable-panels:${e}`}function ec(e){return e.map(e=>{let{constraints:t,id:n,idIsFromProps:r,order:i}=e;return r?n:i?`${i}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function ed(e,t){try{let n=eu(e),r=t.getItem(n);if(r){let e=JSON.parse(r);if("object"==typeof e&&null!=e)return e}}catch(e){}return null}function eh(e,t,n,r,i){var a;let l=eu(e),o=ec(t),s=null!=(a=ed(e,i))?a:{};s[o]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{i.setItem(l,JSON.stringify(s))}catch(e){console.error(e)}}function ep({layout:e,panelConstraints:t}){let n=[...e],r=n.reduce((e,t)=>e+t,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(e=>`${e}%`).join(", ")}`);if(!X(r,100)&&n.length>0)for(let e=0;e<t.length;e++){let t=n[e];V(null!=t,`No layout data found for index ${e}`);let i=100/r*t;n[e]=i}let i=0;for(let e=0;e<t.length;e++){let r=n[e];V(null!=r,`No layout data found for index ${e}`);let a=J({panelConstraints:t,panelIndex:e,size:r});r!=a&&(i+=r-a,n[e]=a)}if(!X(i,0))for(let e=0;e<t.length;e++){let r=n[e];V(null!=r,`No layout data found for index ${e}`);let a=J({panelConstraints:t,panelIndex:e,size:r+i});if(r!==a&&(i-=a-r,n[e]=a,X(i,0)))break}return n}let ef={getItem:e=>(es(ef),ef.getItem(e)),setItem:(e,t)=>{es(ef),ef.setItem(e,t)}},em={};function eg({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:i,id:a=null,onLayout:c=null,keyboardResizeBy:d=null,storage:h=ef,style:f,tagName:m="div",...g}){let y=p(a),b=(0,l.useRef)(null),[k,S]=(0,l.useState)(null),[C,_]=(0,l.useState)([]),A=function(){let[e,t]=(0,l.useState)(0);return(0,l.useCallback)(()=>t(e=>e+1),[])}(),E=(0,l.useRef)({}),N=(0,l.useRef)(new Map),R=(0,l.useRef)(0),M=(0,l.useRef)({autoSaveId:e,direction:r,dragState:k,id:y,keyboardResizeBy:d,onLayout:c,storage:h}),$=(0,l.useRef)({layout:C,panelDataArray:[],panelDataArrayChanged:!1});(0,l.useRef)({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),(0,l.useImperativeHandle)(i,()=>({getId:()=>M.current.id,getLayout:()=>{let{layout:e}=$.current;return e},setLayout:e=>{let{onLayout:t}=M.current,{layout:n,panelDataArray:r}=$.current,i=ep({layout:e,panelConstraints:r.map(e=>e.constraints)});ei(n,i)||(_(i),$.current.layout=i,t&&t(i),el(r,i,E.current))}}),[]),u(()=>{M.current.autoSaveId=e,M.current.direction=r,M.current.dragState=k,M.current.id=y,M.current.onLayout=c,M.current.storage=h}),function({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:i,panelGroupElement:a,setLayout:o}){(0,l.useRef)({didWarnAboutMissingResizeHandle:!1}),u(()=>{if(!a)return;let e=Y(n,a);for(let t=0;t<i.length-1;t++){let{valueMax:n,valueMin:a,valueNow:l}=function({layout:e,panelsArray:t,pivotIndices:n}){let r=0,i=100,a=0,l=0,o=n[0];return V(null!=o,"No pivot index found"),t.forEach((e,t)=>{let{constraints:n}=e,{maxSize:s=100,minSize:u=0}=n;t===o?(r=u,i=s):(a+=u,l+=s)}),{valueMax:Math.min(i,100-a),valueMin:Math.max(r,100-l),valueNow:e[o]}}({layout:r,panelsArray:i,pivotIndices:[t,t+1]}),o=e[t];if(null==o);else{let e=i[t];V(e,`No panel data found for index "${t}"`),o.setAttribute("aria-controls",e.id),o.setAttribute("aria-valuemax",""+Math.round(n)),o.setAttribute("aria-valuemin",""+Math.round(a)),o.setAttribute("aria-valuenow",null!=l?""+Math.round(l):"")}}return()=>{e.forEach((e,t)=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-valuemax"),e.removeAttribute("aria-valuemin"),e.removeAttribute("aria-valuenow")})}},[n,r,i,a]),(0,l.useEffect)(()=>{if(!a)return;let e=t.current;V(e,"Eager values not found");let{panelDataArray:i}=e;V(null!=en(n,a),`No group found for id "${n}"`);let l=Y(n,a);V(l,`No resize handles found for group id "${n}"`);let u=l.map(e=>{let t=e.getAttribute(s.resizeHandleId);V(t,"Resize handle element has no handle id attribute");let[l,u]=function(e,t,n,r=document){var i,a,l,o;let s=er(t,r),u=Y(e,r),c=s?u.indexOf(s):-1;return[null!=(i=null==(a=n[c])?void 0:a.id)?i:null,null!=(l=null==(o=n[c+1])?void 0:o.id)?l:null]}(n,t,i,a);if(null==l||null==u)return()=>{};let c=e=>{if(!e.defaultPrevented&&"Enter"===e.key){e.preventDefault();let s=i.findIndex(e=>e.id===l);if(s>=0){let e=i[s];V(e,`No panel data found for index ${s}`);let l=r[s],{collapsedSize:u=0,collapsible:c,minSize:d=0}=e.constraints;if(null!=l&&c){let e=K({delta:X(l,u)?d-u:u-l,initialLayout:r,panelConstraints:i.map(e=>e.constraints),pivotIndices:et(n,t,a),prevLayout:r,trigger:"keyboard"});r!==e&&o(e)}}}};return e.addEventListener("keydown",c),()=>{e.removeEventListener("keydown",c)}});return()=>{u.forEach(e=>e())}},[a,e,t,n,r,i,o])}({committedValuesRef:M,eagerValuesRef:$,groupId:y,layout:C,panelDataArray:$.current.panelDataArray,setLayout:_,panelGroupElement:b.current}),(0,l.useEffect)(()=>{let{panelDataArray:t}=$.current;if(e){if(0===C.length||C.length!==t.length)return;let n=em[e];null==n&&(n=function(e,t=10){let n=null;return(...r)=>{null!==n&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}}(eh,100),em[e]=n),n(e,[...t],new Map(N.current),C,h)}},[e,C,h]),(0,l.useEffect)(()=>{});let O=(0,l.useCallback)(e=>{let{onLayout:t}=M.current,{layout:n,panelDataArray:r}=$.current;if(e.constraints.collapsible){let i=r.map(e=>e.constraints),{collapsedSize:a=0,panelSize:l,pivotIndices:o}=ek(r,e,n);if(V(null!=l,`Panel size not found for panel "${e.id}"`),!Z(l,a)){N.current.set(e.id,l);let s=K({delta:eb(r,e)===r.length-1?l-a:a-l,initialLayout:n,panelConstraints:i,pivotIndices:o,prevLayout:n,trigger:"imperative-api"});eo(n,s)||(_(s),$.current.layout=s,t&&t(s),el(r,s,E.current))}}},[]),j=(0,l.useCallback)((e,t)=>{let{onLayout:n}=M.current,{layout:r,panelDataArray:i}=$.current;if(e.constraints.collapsible){let a=i.map(e=>e.constraints),{collapsedSize:l=0,panelSize:o=0,minSize:s=0,pivotIndices:u}=ek(i,e,r),c=null!=t?t:s;if(Z(o,l)){let t=N.current.get(e.id),l=null!=t&&t>=c?t:c,s=K({delta:eb(i,e)===i.length-1?o-l:l-o,initialLayout:r,panelConstraints:a,pivotIndices:u,prevLayout:r,trigger:"imperative-api"});eo(r,s)||(_(s),$.current.layout=s,n&&n(s),el(i,s,E.current))}}},[]),z=(0,l.useCallback)(e=>{let{layout:t,panelDataArray:n}=$.current,{panelSize:r}=ek(n,e,t);return V(null!=r,`Panel size not found for panel "${e.id}"`),r},[]),F=(0,l.useCallback)((e,t)=>{let{panelDataArray:n}=$.current,r=eb(n,e);return function({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:i,precision:a=3}){let l=n[i];return{flexBasis:0,flexGrow:null==l?void 0!=e?e.toFixed(a):"1":1===r.length?"1":l.toFixed(a),flexShrink:1,overflow:"hidden",pointerEvents:null!==t?"none":void 0}}({defaultSize:t,dragState:k,layout:C,panelData:n,panelIndex:r})},[k,C]),B=(0,l.useCallback)(e=>{let{layout:t,panelDataArray:n}=$.current,{collapsedSize:r=0,collapsible:i,panelSize:a}=ek(n,e,t);return V(null!=a,`Panel size not found for panel "${e.id}"`),!0===i&&Z(a,r)},[]),H=(0,l.useCallback)(e=>{let{layout:t,panelDataArray:n}=$.current,{collapsedSize:r=0,collapsible:i,panelSize:a}=ek(n,e,t);return V(null!=a,`Panel size not found for panel "${e.id}"`),!i||Q(a,r)>0},[]),G=(0,l.useCallback)(e=>{let{panelDataArray:t}=$.current;t.push(e),t.sort((e,t)=>{let n=e.order,r=t.order;return null==n&&null==r?0:null==n?-1:null==r?1:n-r}),$.current.panelDataArrayChanged=!0,A()},[A]);u(()=>{if($.current.panelDataArrayChanged){$.current.panelDataArrayChanged=!1;let{autoSaveId:i,onLayout:a,storage:l}=M.current,{layout:o,panelDataArray:s}=$.current,u=null;if(i){var e,t,n,r;let a=(e=i,t=s,null!=(r=(null!=(n=ed(e,l))?n:{})[ec(t)])?r:null);a&&(N.current=new Map(Object.entries(a.expandToSizes)),u=a.layout)}null==u&&(u=function({panelDataArray:e}){let t=Array(e.length),n=e.map(e=>e.constraints),r=0,i=100;for(let a=0;a<e.length;a++){let e=n[a];V(e,`Panel constraints not found for index ${a}`);let{defaultSize:l}=e;null!=l&&(r++,t[a]=l,i-=l)}for(let a=0;a<e.length;a++){let l=n[a];V(l,`Panel constraints not found for index ${a}`);let{defaultSize:o}=l;if(null!=o)continue;let s=i/(e.length-r);r++,t[a]=s,i-=s}return t}({panelDataArray:s}));let c=ep({layout:u,panelConstraints:s.map(e=>e.constraints)});ei(o,c)||(_(c),$.current.layout=c,a&&a(c),el(s,c,E.current))}}),u(()=>{let e=$.current;return()=>{e.layout=[]}},[]);let U=(0,l.useCallback)(e=>{let t=!1,n=b.current;return n&&"rtl"===window.getComputedStyle(n,null).getPropertyValue("direction")&&(t=!0),function(n){var r,i;n.preventDefault();let a=b.current;if(!a)return()=>null;let{direction:l,dragState:o,id:u,keyboardResizeBy:c,onLayout:d}=M.current,{layout:h,panelDataArray:p}=$.current,{initialLayout:f}=null!=o?o:{},m=et(u,e,a),g=function(e,t,n,r,i,a){if(!x(e))return null==r?0:function(e,t,n,r,i){let a="horizontal"===n,l=er(t,i);V(l,`No resize handle element found for id "${t}"`);let o=l.getAttribute(s.groupId);V(o,"Resize handle element has no group id attribute");let{initialCursorPosition:u}=r,c=ea(n,e),d=en(o,i);V(d,`No group element found for id "${o}"`);let h=d.getBoundingClientRect();return(c-u)/(a?h.width:h.height)*100}(e,t,n,r,a);{let t="horizontal"===n,r=0;r=e.shiftKey?100:null!=i?i:10;let a=0;switch(e.key){case"ArrowDown":a=t?0:r;break;case"ArrowLeft":a=t?-r:0;break;case"ArrowRight":a=t?r:0;break;case"ArrowUp":a=t?0:-r;break;case"End":a=100;break;case"Home":a=-100}return a}}(n,e,l,o,c,a),y="horizontal"===l;y&&t&&(g=-g);let k=K({delta:g,initialLayout:null!=f?f:h,panelConstraints:p.map(e=>e.constraints),pivotIndices:m,prevLayout:h,trigger:x(n)?"keyboard":"mouse-or-touch"}),S=!eo(h,k);(v(n)||w(n))&&R.current!=g&&((R.current=g,S||0===g)?D.set(e,0):y?(r=g<0?P:T,D.set(e,r)):(i=g<0?I:L,D.set(e,i))),S&&(_(k),$.current.layout=k,d&&d(k),el(p,k,E.current))}},[]),q=(0,l.useCallback)((e,t)=>{let{onLayout:n}=M.current,{layout:r,panelDataArray:i}=$.current,a=i.map(e=>e.constraints),{panelSize:l,pivotIndices:o}=ek(i,e,r);V(null!=l,`Panel size not found for panel "${e.id}"`);let s=K({delta:eb(i,e)===i.length-1?l-t:t-l,initialLayout:r,panelConstraints:a,pivotIndices:o,prevLayout:r,trigger:"imperative-api"});eo(r,s)||(_(s),$.current.layout=s,n&&n(s),el(i,s,E.current))},[]),W=(0,l.useCallback)((e,t)=>{let{layout:n,panelDataArray:r}=$.current,{collapsedSize:i=0,collapsible:a}=t,{collapsedSize:l=0,collapsible:o,maxSize:s=100,minSize:u=0}=e.constraints,{panelSize:c}=ek(r,e,n);null!=c&&(a&&o&&Z(c,i)?Z(i,l)||q(e,l):c<u?q(e,u):c>s&&q(e,s))},[q]),J=(0,l.useCallback)((e,t)=>{let{direction:n}=M.current,{layout:r}=$.current;if(!b.current)return;let i=er(e,b.current);V(i,`Drag handle element not found for id "${e}"`);let a=ea(n,t);S({dragHandleId:e,dragHandleRect:i.getBoundingClientRect(),initialCursorPosition:a,initialLayout:r})},[]),ee=(0,l.useCallback)(()=>{S(null)},[]),es=(0,l.useCallback)(e=>{let{panelDataArray:t}=$.current,n=eb(t,e);n>=0&&(t.splice(n,1),delete E.current[e.id],$.current.panelDataArrayChanged=!0,A())},[A]),eu=(0,l.useMemo)(()=>({collapsePanel:O,direction:r,dragState:k,expandPanel:j,getPanelSize:z,getPanelStyle:F,groupId:y,isPanelCollapsed:B,isPanelExpanded:H,reevaluatePanelConstraints:W,registerPanel:G,registerResizeHandle:U,resizePanel:q,startDragging:J,stopDragging:ee,unregisterPanel:es,panelGroupElement:b.current}),[O,k,r,j,z,F,y,B,H,W,G,U,q,J,ee,es]);return(0,l.createElement)(o.Provider,{value:eu},(0,l.createElement)(m,{...g,children:t,className:n,id:a,ref:b,style:{display:"flex",flexDirection:"horizontal"===r?"row":"column",height:"100%",overflow:"hidden",width:"100%",...f},[s.group]:"",[s.groupDirection]:r,[s.groupId]:y}))}let ey=(0,l.forwardRef)((e,t)=>(0,l.createElement)(eg,{...e,forwardedRef:t}));function eb(e,t){return e.findIndex(e=>e===t||e.id===t.id)}function ek(e,t,n){let r=eb(e,t),i=r===e.length-1,a=n[r];return{...t.constraints,panelSize:a,pivotIndices:i?[r-1,r]:[r,r+1]}}function ex({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:r,id:i,onBlur:a,onClick:c,onDragging:d,onFocus:h,onPointerDown:f,onPointerUp:m,style:g={},tabIndex:y=0,tagName:b="div",...k}){var x,v;let w=(0,l.useRef)(null),S=(0,l.useRef)({onClick:c,onDragging:d,onPointerDown:f,onPointerUp:m});(0,l.useEffect)(()=>{S.current.onClick=c,S.current.onDragging=d,S.current.onPointerDown=f,S.current.onPointerUp=m});let C=(0,l.useContext)(o);if(null===C)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");let{direction:_,groupId:A,registerResizeHandle:E,startDragging:N,stopDragging:P,panelGroupElement:T}=C,I=p(i),[L,R]=(0,l.useState)("inactive"),[$,z]=(0,l.useState)(!1),[F,B]=(0,l.useState)(null),H=(0,l.useRef)({state:L});u(()=>{H.current.state=L}),(0,l.useEffect)(()=>{if(n)B(null);else{let e=E(I);B(()=>e)}},[n,I,E]);let G=null!=(x=null==r?void 0:r.coarse)?x:15,W=null!=(v=null==r?void 0:r.fine)?v:5;return(0,l.useEffect)(()=>{if(n||null==F)return;let e=w.current;V(e,"Element ref not attached");let t=!1;return function(e,t,n,r,i){var a;let{ownerDocument:l}=t,o={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:i},s=null!=(a=O.get(l))?a:0;return O.set(l,s+1),j.add(o),q(),function(){var t;D.delete(e),j.delete(o);let n=null!=(t=O.get(l))?t:1;if(O.set(l,n-1),q(),1===n&&O.delete(l),M.includes(o)){let e=M.indexOf(o);e>=0&&M.splice(e,1),U(),i("up",!0,null)}}}(I,e,_,{coarse:G,fine:W},(e,n,r)=>{if(!n)return void R("inactive");switch(e){case"down":{R("drag"),t=!1,V(r,'Expected event to be defined for "down" action'),N(I,r);let{onDragging:e,onPointerDown:n}=S.current;null==e||e(!0),null==n||n();break}case"move":{let{state:e}=H.current;t=!0,"drag"!==e&&R("hover"),V(r,'Expected event to be defined for "move" action'),F(r);break}case"up":{R("hover"),P();let{onClick:e,onDragging:n,onPointerUp:r}=S.current;null==n||n(!1),null==r||r(),t||null==e||e()}}})},[G,_,n,W,E,I,F,N,P]),!function({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){(0,l.useEffect)(()=>{if(e||null==n||null==r)return;let i=er(t,r);if(null==i)return;let a=e=>{if(!e.defaultPrevented)switch(e.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":e.preventDefault(),n(e);break;case"F6":{e.preventDefault();let n=i.getAttribute(s.groupId);V(n,`No group element found for id "${n}"`);let a=Y(n,r),l=ee(n,t,r);V(null!==l,`No resize element found for id "${t}"`);let o=e.shiftKey?l>0?l-1:a.length-1:l+1<a.length?l+1:0;a[o].focus()}}};return i.addEventListener("keydown",a),()=>{i.removeEventListener("keydown",a)}},[r,e,t,n])}({disabled:n,handleId:I,resizeHandler:F,panelGroupElement:T}),(0,l.createElement)(b,{...k,children:e,className:t,id:i,onBlur:()=>{z(!1),null==a||a()},onFocus:()=>{z(!0),null==h||h()},ref:w,role:"separator",style:{touchAction:"none",userSelect:"none",...g},tabIndex:y,[s.groupDirection]:_,[s.groupId]:A,[s.resizeHandle]:"",[s.resizeHandleActive]:"drag"===L?"pointer":$?"keyboard":void 0,[s.resizeHandleEnabled]:!n,[s.resizeHandleId]:I,[s.resizeHandleState]:L})}eg.displayName="PanelGroup",ey.displayName="forwardRef(PanelGroup)",ex.displayName="PanelResizeHandle"},48572:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(82471).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},51856:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(82471).A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},52263:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(8612);function i(e,t,n,i){let a=i?i-1:1/0,l=0;return function(i){return(0,r.On)(i)?(e.enter(n),function i(o){return(0,r.On)(o)&&l++<a?(e.consume(o),i):(e.exit(n),t(o))}(i)):t(i)}}},52405:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(82471).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},55007:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,o=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var u;return(void 0===t&&(t={}),!(u=e)||i.test(u)||n.test(u))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(l,s):e.replace(a,s)).replace(r,o))}},57944:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(82471).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},58706:(e,t,n)=>{"use strict";n.d(t,{C:()=>r});let r=function(e){var t,n;if(null==e)return a;if("function"==typeof e)return i(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=r(e[n]);return i(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,i(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,i(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function i(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 a(){return!0}},59374:(e,t,n)=>{"use strict";function r(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function i(e){return e.join(" ").trim()}n.d(t,{A:()=>i,q:()=>r})},64103:(e,t,n)=>{"use strict";n.d(t,{h:()=>d,s:()=>h});var r=n(32746),i=n(94241);let a=/[#.]/g;var l=n(94711),o=n(3187),s=n(59374);function u(e,t,n){let r=n?function(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,o,...u){let d;if(null==n)d={type:"root",children:[]},u.unshift(o);else{let h=(d=function(e,t){let n,r,i=e||"",l={},o=0;for(;o<i.length;){a.lastIndex=o;let e=a.exec(i),t=i.slice(o,e?e.index:i.length);t&&(n?"#"===n?l.id=t:Array.isArray(l.className)?l.className.push(t):l.className=[t]:r=t,o+=t.length),e&&(n=e[0],o++)}return{type:"element",tagName:r||t||"div",properties:l,children:[]}}(n,t)).tagName.toLowerCase(),p=r?r.get(h):void 0;if(d.tagName=p||h,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;for(let t of Object.keys(e)){let n=e[t];if(n&&"object"==typeof n){if(!Array.isArray(n))return!0;for(let e of n)if("number"!=typeof e&&"string"!=typeof e)return!0}}return!!("children"in e&&Array.isArray(e.children))}(o))u.unshift(o);else for(let[t,n]of Object.entries(o))!function(e,t,n,r){let a,o=(0,l.I)(e,n);if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;a=r}else a="boolean"==typeof r?r:"string"==typeof r?o.spaceSeparated?(0,s.q)(r):o.commaSeparated?(0,i.q)(r):o.commaOrSpaceSeparated?(0,s.q)((0,i.q)(r).join(" ")):c(o,o.property,r):Array.isArray(r)?[...r]:"style"===o.property?function(e){let t=[];for(let[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(a)){let e=[];for(let t of a)e.push(c(o,o.property,t));a=e}"className"===o.property&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[o.property]=a}}(e,d.properties,t,n)}for(let e of u)!function e(t,n){if(null==n);else if("number"==typeof n||"string"==typeof n)t.push({type:"text",value:String(n)});else if(Array.isArray(n))for(let r of n)e(t,r);else if("object"==typeof n&&"type"in n)"root"===n.type?e(t,n.children):t.push(n);else throw Error("Expected node, nodes, or string, got `"+n+"`")}(d.children,e);return"element"===d.type&&"template"===d.tagName&&(d.content={type:"root",children:d.children},d.children=[]),d}}function c(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||(0,o.S)(n)===(0,o.S)(t)))return!0}return n}let d=u(r.qy,"div"),h=u(r.JW,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"])},64510:(e,t,n)=>{"use strict";n.r(t),n.d(t,{boolean:()=>i,booleanish:()=>a,commaOrSpaceSeparated:()=>c,commaSeparated:()=>u,number:()=>o,overloadedBoolean:()=>l,spaceSeparated:()=>s});let r=0,i=d(),a=d(),l=d(),o=d(),s=d(),u=d(),c=d();function d(){return 2**++r}},65571:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});let r=/[ \t\n\f\r]/g;function i(e){return"object"==typeof e?"text"===e.type&&a(e.value):a(e)}function a(e){return""===e.replace(r,"")}},65670:(e,t,n)=>{"use strict";n.d(t,{B:()=>a});var r=n(52263),i=n(8612);let a={partial:!0,tokenize:function(e,t,n){return function(t){return(0,i.On)(t)?(0,r.N)(e,a,"linePrefix")(t):a(t)};function a(e){return null===e||(0,i.HP)(e)?t(e):n(e)}}}},66483:(e,t,n)=>{"use strict";n.d(t,{y:()=>a});var r=n(95723);let i={}.hasOwnProperty;function a(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let a,l=(i.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];if(o)for(a in o){i.call(l,a)||(l[a]=[]);let e=o[a];!function(e,t){let n=-1,i=[];for(;++n<t.length;)("after"===t[n].add?e:i).push(t[n]);(0,r.m)(e,0,0,i)}(l[a],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}},67458:(e,t,n)=>{"use strict";function r(e){if(e)throw e}n.d(t,{l:()=>d});var i=n(15427),a=n(75207);function l(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)}var o=n(82575);let s=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},u={}.hasOwnProperty;class c extends s{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(a,...l){let o=e[++n],s=-1;if(a)return void r(a);for(;++s<t.length;)(null===l[s]||void 0===l[s])&&(l[s]=t[s]);t=l,o?(function(e,t){let n;return function(...t){let a,l=e.length>t.length;l&&t.push(r);try{a=e.apply(this,t)}catch(e){if(l&&n)throw e;return r(e)}l||(a&&a.then&&"function"==typeof a.then?a.then(i,r):a instanceof Error?r(a):i(a))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(o,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 c,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data(i(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(f("data",this.frozen),this.namespace[e]=t,this):u.call(this.namespace,e)&&this.namespace[e]||void 0:e?(f("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=y(e),n=this.parser||this.Parser;return h("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),h("process",this.parser||this.Parser),p("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let l=y(e),o=n.parse(l);function s(e,n){e||!n?i(e):r?r(n):((0,a.ok)(t,"`done` is defined if `resolve` is not"),t(void 0,n))}n.run(o,l,function(e,t,r){var i,a;if(e||!t||!r)return s(e);let l=n.stringify(t,r);"string"==typeof(i=l)||(a=i)&&"object"==typeof a&&"byteLength"in a&&"byteOffset"in a?r.value=l:r.result=l,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),h("processSync",this.parser||this.Parser),p("processSync",this.compiler||this.Compiler),this.process(e,function(e,i){n=!0,r(e),t=i}),g("processSync","process",n),(0,a.ok)(t,"we either bailed on an error or have a tree"),t}run(e,t,n){m(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,l){(0,a.ok)("function"!=typeof t,"`file` can’t be a `done` anymore, we checked");let o=y(t);r.run(e,o,function(t,r,o){let s=r||e;t?l(t):i?i(s):((0,a.ok)(n,"`done` is defined if `resolve` is not"),n(void 0,s,o))})}}runSync(e,t){let n,i=!1;return this.run(e,t,function(e,t){r(e),n=t,i=!0}),g("runSync","run",i),(0,a.ok)(n,"we either bailed on an error or have a tree"),n}stringify(e,t){this.freeze();let n=y(t),r=this.compiler||this.Compiler;return p("stringify",r),m(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(f("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else if("object"==typeof e)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function a(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=i(!0,r.settings,e.settings))}function o(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;){var n=e[t];if("function"==typeof n)s(n,[]);else if("object"==typeof n)if(Array.isArray(n)){let[e,...t]=n;s(e,t)}else a(n);else throw TypeError("Expected usable value, not `"+n+"`")}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function s(e,t){let r=-1,a=-1;for(;++r<n.length;)if(n[r][0]===e){a=r;break}if(-1===a)n.push([e,...t]);else if(t.length>0){let[r,...o]=t,s=n[a][1];l(s)&&l(r)&&(r=i(!0,s,r)),n[a]=[e,r,...o]}}}}let d=new c().freeze();function h(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function p(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function f(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 m(e){if(!l(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function g(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function y(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new o.T(e)}},68811:(e,t,n)=>{"use strict";n.d(t,{G1:()=>l,PW:()=>i,Y:()=>r});let r=a("end"),i=a("start");function a(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 l(e){let t=i(e),n=r(e);if(t&&n)return{start:t,end:n}}},69456:(e,t,n)=>{"use strict";n.d(t,{H:()=>S});var r=n(94241),i=n(75207);let a=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,l=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,o={};function s(e,t){return((t||o).jsx?l:a).test(e)}var u=n(65571),c=n(32746),d=n(94711);let h={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"};var p=n(59374),f=n(79275),m=n(68811),g=n(96293);let y={}.hasOwnProperty,b=new Map,k=/[A-Z]/g,x=new Set(["table","tbody","thead","tfoot","tr"]),v=new Set(["td","th"]),w="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function S(e,t){var n,r,i,a;let l;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let o=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=o,r=t.jsxDEV,l=function(e,t,i,a){let l=Array.isArray(i.children),o=(0,m.PW)(e);return r(t,i,a,l,{columnNumber:o?o.column-1:void 0,fileName:n,lineNumber:o?o.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,a=t.jsxs,l=function(e,t,n,r){let l=Array.isArray(n.children)?a: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:o,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?c.JW:c.qy,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},u=C(s,e,void 0);return u&&"string"!=typeof u?u:s.create(e,s.Fragment,{children:u||void 0},void 0)}function C(e,t,n){return"element"===t.type?function(e,t,n){let i=e.schema;"svg"===t.tagName.toLowerCase()&&"html"===i.space&&(e.schema=c.JW),e.ancestors.push(t);let a=N(e,t.tagName,!1),l=function(e,t){let n,i,a={};for(i in t.properties)if("children"!==i&&y.call(t.properties,i)){let l=function(e,t,n){let i=(0,d.I)(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?(0,r.A)(n):(0,p.A)(n)),"style"===i.property){let t="object"==typeof n?n:function(e,t){try{return f(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new g.o("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=w+"#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(k,T);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&i.space?h[i.property]||i.property:i.attribute,n]}}(e,i,t.properties[i]);if(l){let[r,i]=l;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof i&&v.has(t.tagName)?n=i:a[r]=i}}return n&&((a.style||(a.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),a}(e,t),o=E(e,t);return x.has(t.tagName)&&(o=o.filter(function(e){return"string"!=typeof e||!(0,u.m)(e)})),_(e,l,a,t),A(l,o),e.ancestors.pop(),e.schema=i,e.create(t,a,l,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return(0,i.ok)("ExpressionStatement"===n.type),e.evaluater.evaluateExpression(n.expression)}P(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){let r=e.schema;"svg"===t.name&&"html"===r.space&&(e.schema=c.JW),e.ancestors.push(t);let a=null===t.name?e.Fragment:N(e,t.name,!0),l=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];(0,i.ok)("ExpressionStatement"===t.type);let a=t.expression;(0,i.ok)("ObjectExpression"===a.type);let l=a.properties[0];(0,i.ok)("SpreadElement"===l.type),Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else P(e,t.position);else{let a,l=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];(0,i.ok)("ExpressionStatement"===t.type),a=e.evaluater.evaluateExpression(t.expression)}else P(e,t.position);else a=null===r.value||r.value;n[l]=a}return n}(e,t),o=E(e,t);return _(e,l,a,t),A(l,o),e.ancestors.pop(),e.schema=r,e.create(t,a,l,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);P(e,t.position)}(e,t):"root"===t.type?function(e,t,n){let r={};return A(r,E(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?t.value:void 0}function _(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function A(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function E(e,t){let n=[],r=-1,i=e.passKeys?new Map:b;for(;++r<t.children.length;){let a,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;a=e+"-"+t,i.set(e,t+1)}}let o=C(e,l,a);void 0!==o&&n.push(o)}return n}function N(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),a=-1;for(;++a<n.length;){let t=s(n[a])?{type:"Identifier",name:n[a]}:{type:"Literal",value:n[a]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(a&&"Literal"===t.type),optional:!1}:t}(0,i.ok)(e,"always a result"),r=e}else r=s(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return y.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);P(e)}function P(e,t){let n=new g.o("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=w+"#cannot-handle-mdx-estrees-without-createevaluater",n}function T(e){return"-"+e.toLowerCase()}},70731:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(82471).A)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},72105:(e,t,n)=>{"use strict";n.d(t,{A:()=>eS});var r={};n.r(r),n.d(r,{attentionMarkers:()=>ep,contentInitial:()=>eo,disable:()=>ef,document:()=>el,flow:()=>eu,flowInitial:()=>es,insideSpan:()=>eh,string:()=>ec,text:()=>ed});var i=n(83034),a=n(95723);class l{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&&o(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),o(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),o(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);o(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);o(this.left,t.reverse())}}}function o(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 s(e){let t,n,r,i,o,s,u,c={},d=-1,h=new l(e);for(;++d<h.length;){for(;d in c;)d=c[d];if(t=h.get(d),d&&"chunkFlow"===t[1].type&&"listItemPrefix"===h.get(d-1)[1].type&&((r=0)<(s=t[1]._tokenizer.events).length&&"lineEndingBlank"===s[r][1].type&&(r+=2),r<s.length&&"content"===s[r][1].type))for(;++r<s.length&&"content"!==s[r][1].type;)"chunkText"===s[r][1].type&&(s[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(c,function(e,t){let n,r,i=e.get(t)[1],a=e.get(t)[2],l=t-1,o=[],s=i._tokenizer;!s&&(s=a.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));let u=s.events,c=[],d={},h=-1,p=i,f=0,m=0,g=[0];for(;p;){for(;e.get(++l)[1]!==p;);o.push(l),!p._tokenizer&&(n=a.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;++h<u.length;)"exit"===u[h][0]&&"enter"===u[h-1][0]&&u[h][1].type===u[h-1][1].type&&u[h][1].start.line!==u[h][1].end.line&&(m=h+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(),h=g.length;h--;){let t=u.slice(g[h],g[h+1]),n=o.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),h=-1;++h<c.length;)d[f+c[h][0]]=f+c[h][1],f+=c[h][1]-c[h][0]-1;return d}(h,d)),d=c[d],u=!0);else if(t[1]._container){for(r=d,n=void 0;r--;)if("lineEnding"===(i=h.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(h.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={...h.get(n)[1].start},(o=h.slice(n,d)).unshift(t),h.splice(n,d-n+1,o))}}return(0,a.m)(e,0,1/0,h.slice(0)),!u}var u=n(66483),c=n(52263),d=n(8612);let h={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"),(0,c.N)(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(0,d.HP)(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},p={tokenize:function(e){let t,n,r,i=this,l=[],o=0;return s;function s(t){if(o<l.length){let n=l[o];return i.containerState=n[1],e.attempt(n[0].continuation,u,c)(t)}return c(t)}function u(e){if(o++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&x();let r=i.events.length,l=r;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){n=i.events[l][1].end;break}k(o);let s=r;for(;s<i.events.length;)i.events[s][1].end={...n},s++;return(0,a.m)(i.events,l+1,0,i.events.slice(r)),i.events.length=s,c(e)}return s(e)}function c(n){if(o===l.length){if(!t)return m(n);if(t.currentConstruct&&t.currentConstruct.concrete)return y(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(f,h,p)(n)}function h(e){return t&&x(),k(o),m(e)}function p(e){return i.parser.lazy[i.now().line]=o!==l.length,r=i.now().offset,y(e)}function m(t){return i.containerState={},e.attempt(f,g,y)(t)}function g(e){return o++,l.push([i.currentConstruct,i.containerState]),m(e)}function y(r){if(null===r){t&&x(),k(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){b(e.exit("chunkFlow"),!0),k(0),e.consume(n);return}return(0,d.HP)(n)?(e.consume(n),b(e.exit("chunkFlow")),o=0,i.interrupt=void 0,s):(e.consume(n),t)}(r)}function b(e,l){let s=i.sliceStream(e);if(l&&s.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(s),i.parser.lazy[e.start.line]){let e,n,l=t.events.length;for(;l--;)if(t.events[l][1].start.offset<r&&(!t.events[l][1].end||t.events[l][1].end.offset>r))return;let s=i.events.length,u=s;for(;u--;)if("exit"===i.events[u][0]&&"chunkFlow"===i.events[u][1].type){if(e){n=i.events[u][1].end;break}e=!0}for(k(o),l=s;l<i.events.length;)i.events[l][1].end={...n},l++;(0,a.m)(i.events,u+1,0,i.events.slice(s)),i.events.length=l}}function k(t){let n=l.length;for(;n-- >t;){let t=l[n];i.containerState=t[1],t[0].exit.call(i,e)}l.length=t}function x(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},f={tokenize:function(e,t,n){return(0,c.N)(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var m=n(65670);let g={resolve:function(e){return s(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):(0,d.HP)(t)?e.check(y,a,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},y={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"),(0,c.N)(e,i,"linePrefix")};function i(i){if(null===i||(0,d.HP)(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},b={tokenize:function(e){let t=this,n=e.attempt(m.B,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,(0,c.N)(e,e.attempt(this.parser.constructs.flow,r,e.attempt(g,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)}}},k={resolveAll:S()},x=w("string"),v=w("text");function w(e){return{resolveAll:S("text"===e?C:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,l);return a;function a(e){return s(e)?i(e):l(e)}function l(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),o)}function o(e){return s(e)?(t.exit("data"),i(e)):(t.consume(e),o)}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 S(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 C(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],a=t.sliceStream(i),l=a.length,o=-1,s=0;for(;l--;){let e=a[l];if("string"==typeof e){for(o=e.length;32===e.charCodeAt(o-1);)s++,o--;if(o)break;o=-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 a={type:n===e.length||r||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:i.start._bufferIndex+o,_index:i.start._index+l,line:i.end.line,column:i.end.column-s,offset:i.end.offset-s},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):(e.splice(n,0,["enter",a,t],["exit",a,t]),n+=2)}n++}return e}let _={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(a){var l;return e.enter("thematicBreak"),r=l=a,function a(l){return l===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),(0,d.On)(n)?(0,c.N)(e,a,"whitespace")(n):a(n))}(l)):i>=3&&(null===l||(0,d.HP)(l))?(e.exit("thematicBreak"),t(l)):n(l)}(l)}}},A={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(m.B,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,(0,c.N)(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!(0,d.On)(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(N,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,(0,c.N)(e,e.attempt(A,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],a=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:(0,d.BM)(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(_,n,o)(t):o(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return(0,d.BM)(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"),o(i)):n(i)}(t)}return n(t)};function o(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(m.B,r.interrupt?n:s,e.attempt(E,c,u))}function s(e){return r.containerState.initialBlankLine=!0,a++,c(e)}function u(t){return(0,d.On)(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},E={partial:!0,tokenize:function(e,t,n){let r=this;return(0,c.N)(e,function(e){let i=r.events[r.events.length-1];return!(0,d.On)(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},N={partial:!0,tokenize:function(e,t,n){let r=this;return(0,c.N)(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)}},P={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return(0,d.On)(t)?(0,c.N)(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(P,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(0,d.On)(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function T(e,t,n,r,i,a,l,o,s){let u=s||1/0,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),h):null===t||32===t||41===t||(0,d.JQ)(t)?n(t):(e.enter(r),e.enter(l),e.enter(o),e.enter("chunkString",{contentType:"string"}),m(t))};function h(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(o),h(t)):null===t||60===t||(0,d.HP)(t)?n(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function m(i){return!c&&(null===i||41===i||(0,d.Ee)(i))?(e.exit("chunkString"),e.exit(o),e.exit(l),e.exit(r),t(i)):c<u&&40===i?(e.consume(i),c++,m):41===i?(e.consume(i),c--,m):null===i||32===i||40===i||(0,d.JQ)(i)?n(i):(e.consume(i),92===i?g:m)}function g(t){return 40===t||41===t||92===t?(e.consume(t),m):m(t)}}function I(e,t,n,r,i,a){let l,o=this,s=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u};function u(h){return s>999||null===h||91===h||93===h&&!l||94===h&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):93===h?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(0,d.HP)(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(t){return null===t||91===t||93===t||(0,d.HP)(t)||s++>999?(e.exit("chunkString"),u(t)):(e.consume(t),l||(l=!(0,d.On)(t)),92===t?h:c)}function h(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function L(e,t,n,r,i,a){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,o):n(t)};function o(n){return n===l?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),s(n))}function s(t){return t===l?(e.exit(a),o(l)):null===t?n(t):(0,d.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,c.N)(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===l||null===t||(0,d.HP)(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?h:u)}function h(t){return t===l||92===t?(e.consume(t),u):u(t)}}function R(e,t){let n;return function r(i){return(0,d.HP)(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):(0,d.On)(i)?(0,c.N)(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}var M=n(41945);let $={partial:!0,tokenize:function(e,t,n){return function(t){return(0,d.Ee)(t)?R(e,r)(t):n(t)};function r(t){return L(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return(0,d.On)(t)?(0,c.N)(e,a,"whitespace")(t):a(t)}function a(e){return null===e||(0,d.HP)(e)?t(e):n(e)}}},O={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),(0,c.N)(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?a(n):(0,d.HP)(n)?e.attempt(D,t,a)(n):(e.enter("codeFlowValue"),function n(r){return null===r||(0,d.HP)(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function a(n){return e.exit("codeIndented"),t(n)}}},D={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):(0,d.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):(0,c.N)(e,a,"linePrefix",5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):(0,d.HP)(e)?i(e):n(e)}}},j={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),i||"definition"!==e[a][1].type||(i=a);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 o,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){o="paragraph"===i.events[s][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||o)?(e.enter("setextHeadingLine"),r=t,l=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),(0,d.On)(n)?(0,c.N)(e,a,"lineSuffix")(n):a(n))}(l)):n(t)};function a(r){return null===r||(0,d.HP)(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},z=["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"],F=["pre","script","style","textarea"],B={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(m.B,t,n)}}},H={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return(0,d.HP)(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)}}},G={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)}}},U={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,a={partial:!0,tokenize:function(e,t,n){let a=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l};function l(t){return e.enter("codeFencedFence"),(0,d.On)(t)?(0,c.N)(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?(a++,e.consume(i),t):a>=o?(e.exit("codeFencedFenceSequence"),(0,d.On)(i)?(0,c.N)(e,u,"whitespace")(i):u(i)):n(i)}(t)):n(t)}function u(r){return null===r||(0,d.HP)(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},l=0,o=0;return function(t){var a=t;let u=i.events[i.events.length-1];return l=u&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0,r=a,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(o++,e.consume(i),t):o<3?n(i):(e.exit("codeFencedFenceSequence"),(0,d.On)(i)?(0,c.N)(e,s,"whitespace")(i):s(i))}(a)};function s(a){return null===a||(0,d.HP)(a)?(e.exit("codeFencedFence"),i.interrupt?t(a):e.check(G,h,g)(a)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,d.HP)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(i)):(0,d.On)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,c.N)(e,u,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(a))}function u(t){return null===t||(0,d.HP)(t)?s(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,d.HP)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function h(t){return e.attempt(a,g,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f}function f(t){return l>0&&(0,d.On)(t)?(0,c.N)(e,m,"linePrefix",l+1)(t):m(t)}function m(t){return null===t||(0,d.HP)(t)?e.check(G,h,g)(t):(e.enter("codeFlowValue"),function t(n){return null===n||(0,d.HP)(n)?(e.exit("codeFlowValue"),m(n)):(e.consume(n),t)}(t))}function g(n){return e.exit("codeFenced"),t(n)}}},q=document.createElement("i");function W(e){let t="&"+e+";";q.innerHTML=t;let n=q.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let V={name:"characterReference",tokenize:function(e,t,n){let r,i,a=this,l=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),o};function o(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),r=31,i=d.lV,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=d.ok,u):(e.enter("characterReferenceValue"),r=7,i=d.BM,u(t))}function u(o){if(59===o&&l){let r=e.exit("characterReferenceValue");return i!==d.lV||W(a.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(o),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(o)}return i(o)&&l++<r?(e.consume(o),u):n(o)}}},Q={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(0,d.ol)(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},Z={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),(0,c.N)(e,t,"linePrefix")}}};var X=n(84227);let J={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&&(0,a.m)(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,l,o=e.length,s=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=o);let u={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},d={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[i-2][1].start}};return l=[["enter",u,t],["enter",c,t]],l=(0,a.V)(l,e.slice(r+1,r+s+3)),l=(0,a.V)(l,[["enter",d,t]]),l=(0,a.V)(l,(0,X.W)(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),l=(0,a.V)(l,[["exit",d,t],e[i-2],e[i-1],["exit",c,t]]),l=(0,a.V)(l,e.slice(i+1)),l=(0,a.V)(l,[["exit",u,t]]),(0,a.m)(e,r,e.length,l),e},tokenize:function(e,t,n){let r,i,a=this,l=a.events.length;for(;l--;)if(("labelImage"===a.events[l][1].type||"labelLink"===a.events[l][1].type)&&!a.events[l][1]._balanced){r=a.events[l][1];break}return function(t){return r?r._inactive?c(t):(i=a.parser.defined.includes((0,M.B)(a.sliceSerialize({start:r.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),o):n(t)};function o(t){return 40===t?e.attempt(K,u,i?u:c)(t):91===t?e.attempt(Y,u,i?s:c)(t):i?u(t):c(t)}function s(t){return e.attempt(ee,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}}},K={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(0,d.Ee)(t)?R(e,i)(t):i(t)}function i(t){return 41===t?u(t):T(e,a,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function a(t){return(0,d.Ee)(t)?R(e,o)(t):u(t)}function l(e){return n(e)}function o(t){return 34===t||39===t||40===t?L(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function s(t){return(0,d.Ee)(t)?R(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)}}},Y={tokenize:function(e,t,n){let r=this;return function(t){return I.call(r,e,i,a,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes((0,M.B)(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function a(e){return n(e)}}},ee={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)}}},et={name:"labelStartImage",resolveAll:J.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"),a):n(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};var en=n(19083);let er={name:"attention",resolveAll:function(e,t){let n,r,i,l,o,s,u,c,d=-1;for(;++d<e.length;)if("enter"===e[d][0]&&"attentionSequence"===e[d][1].type&&e[d][1]._close){for(n=d;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[d][1]).charCodeAt(0)){if((e[n][1]._close||e[d][1]._open)&&(e[d][1].end.offset-e[d][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[d][1].end.offset-e[d][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[d][1].end.offset-e[d][1].start.offset>1?2:1;let h={...e[n][1].end},p={...e[d][1].start};ei(h,-s),ei(p,s),l={type:s>1?"strongSequence":"emphasisSequence",start:h,end:{...e[n][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[d][1].start},end:p},i={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[d][1].start}},r={type:s>1?"strong":"emphasis",start:{...l.start},end:{...o.end}},e[n][1].end={...l.start},e[d][1].start={...o.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=(0,a.V)(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=(0,a.V)(u,[["enter",r,t],["enter",l,t],["exit",l,t],["enter",i,t]]),u=(0,a.V)(u,(0,X.W)(t.parser.constructs.insideSpan.null,e.slice(n+1,d),t)),u=(0,a.V)(u,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[d][1].end.offset-e[d][1].start.offset?(c=2,u=(0,a.V)(u,[["enter",e[d][1],t],["exit",e[d][1],t]])):c=0,(0,a.m)(e,n-1,d-n+3,u),d=n+u.length-c-2;break}}for(d=-1;++d<e.length;)"attentionSequence"===e[d][1].type&&(e[d][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,i=this.previous,a=(0,en.S)(i);return function(l){return n=l,e.enter("attentionSequence"),function l(o){if(o===n)return e.consume(o),l;let s=e.exit("attentionSequence"),u=(0,en.S)(o),c=!u||2===u&&a||r.includes(o),d=!a||2===a&&u||r.includes(i);return s._open=!!(42===n?c:c&&(a||!d)),s._close=!!(42===n?d:d&&(u||!c)),t(o)}(l)}}};function ei(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let ea={name:"labelStartLink",resolveAll:J.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)}}},el={42:A,43:A,45:A,48:A,49:A,50:A,51:A,52:A,53:A,54:A,55:A,56:A,57:A,62:P},eo={91:{name:"definition",tokenize:function(e,t,n){let r,i=this;return function(t){var r;return e.enter("definition"),r=t,I.call(i,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function a(t){return(r=(0,M.B)(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(0,d.Ee)(t)?R(e,o)(t):o(t)}function o(t){return T(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt($,u,u)(t)}function u(t){return(0,d.On)(t)?(0,c.N)(e,h,"whitespace")(t):h(t)}function h(a){return null===a||(0,d.HP)(a)?(e.exit("definition"),i.parser.defined.push(r),t(a)):n(a)}}}},es={[-2]:O,[-1]:O,32:O},eu={35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,l=3;return"whitespace"===e[3][1].type&&(l+=2),i-2>l&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(l===i-1||i-4>l&&"whitespace"===e[i-2][1].type)&&(i-=l+1===i?2:4),i>l&&(n={type:"atxHeadingText",start:e[l][1].start,end:e[i][1].end},r={type:"chunkText",start:e[l][1].start,end:e[i][1].end,contentType:"text"},(0,a.m)(e,l,i-l+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 a;return e.enter("atxHeading"),a=i,e.enter("atxHeadingSequence"),function i(a){return 35===a&&r++<6?(e.consume(a),i):null===a||(0,d.Ee)(a)?(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||(0,d.HP)(r)?(e.exit("atxHeading"),t(r)):(0,d.On)(r)?(0,c.N)(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||(0,d.Ee)(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(a)):n(a)}(a)}}},42:_,45:[j,_],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,a,l,o,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,f):63===l?(e.consume(l),r=3,s.interrupt?t:R):(0,d.CW)(l)?(e.consume(l),a=String.fromCharCode(l),m):n(l)}function c(i){return 45===i?(e.consume(i),r=2,h):91===i?(e.consume(i),r=5,l=0,p):(0,d.CW)(i)?(e.consume(i),r=4,s.interrupt?t:R):n(i)}function h(r){return 45===r?(e.consume(r),s.interrupt?t:R):n(r)}function p(r){let i="CDATA[";return r===i.charCodeAt(l++)?(e.consume(r),l===i.length)?s.interrupt?t:_:p:n(r)}function f(t){return(0,d.CW)(t)?(e.consume(t),a=String.fromCharCode(t),m):n(t)}function m(l){if(null===l||47===l||62===l||(0,d.Ee)(l)){let o=47===l,u=a.toLowerCase();return!o&&!i&&F.includes(u)?(r=1,s.interrupt?t(l):_(l)):z.includes(a.toLowerCase())?(r=6,o)?(e.consume(l),g):s.interrupt?t(l):_(l):(r=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(l):i?function t(n){return(0,d.On)(n)?(e.consume(n),t):S(n)}(l):y(l))}return 45===l||(0,d.lV)(l)?(e.consume(l),a+=String.fromCharCode(l),m):n(l)}function g(r){return 62===r?(e.consume(r),s.interrupt?t:_):n(r)}function y(t){return 47===t?(e.consume(t),S):58===t||95===t||(0,d.CW)(t)?(e.consume(t),b):(0,d.On)(t)?(e.consume(t),y):S(t)}function b(t){return 45===t||46===t||58===t||95===t||(0,d.lV)(t)?(e.consume(t),b):k(t)}function k(t){return 61===t?(e.consume(t),x):(0,d.On)(t)?(e.consume(t),k):y(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,v):(0,d.On)(t)?(e.consume(t),x):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||(0,d.Ee)(n)?k(n):(e.consume(n),t)}(t)}function v(t){return t===o?(e.consume(t),o=null,w):null===t||(0,d.HP)(t)?n(t):(e.consume(t),v)}function w(e){return 47===e||62===e||(0,d.On)(e)?y(e):n(e)}function S(t){return 62===t?(e.consume(t),C):n(t)}function C(t){return null===t||(0,d.HP)(t)?_(t):(0,d.On)(t)?(e.consume(t),C):n(t)}function _(t){return 45===t&&2===r?(e.consume(t),P):60===t&&1===r?(e.consume(t),T):62===t&&4===r?(e.consume(t),M):63===t&&3===r?(e.consume(t),R):93===t&&5===r?(e.consume(t),L):(0,d.HP)(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(B,$,A)(t)):null===t||(0,d.HP)(t)?(e.exit("htmlFlowData"),A(t)):(e.consume(t),_)}function A(t){return e.check(H,E,$)(t)}function E(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return null===t||(0,d.HP)(t)?A(t):(e.enter("htmlFlowData"),_(t))}function P(t){return 45===t?(e.consume(t),R):_(t)}function T(t){return 47===t?(e.consume(t),a="",I):_(t)}function I(t){if(62===t){let n=a.toLowerCase();return F.includes(n)?(e.consume(t),M):_(t)}return(0,d.CW)(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),I):_(t)}function L(t){return 93===t?(e.consume(t),R):_(t)}function R(t){return 62===t?(e.consume(t),M):45===t&&2===r?(e.consume(t),R):_(t)}function M(t){return null===t||(0,d.HP)(t)?(e.exit("htmlFlowData"),$(t)):(e.consume(t),M)}function $(n){return e.exit("htmlFlow"),t(n)}}},61:j,95:_,96:U,126:U},ec={38:V,92:Q},ed={[-5]:Z,[-4]:Z,[-3]:Z,33:et,38:V,42:er,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(0,d.CW)(t)?(e.consume(t),a):64===t?n(t):o(t)}function a(t){return 43===t||45===t||46===t||(0,d.lV)(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,l):(43===n||45===n||46===n||(0,d.lV)(n))&&r++<32?(e.consume(n),t):(r=0,o(n))}(t)):o(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||(0,d.JQ)(r)?n(r):(e.consume(r),l)}function o(t){return 64===t?(e.consume(t),s):(0,d.cx)(t)?(e.consume(t),o):n(t)}function s(i){return(0,d.lV)(i)?function i(a){return 46===a?(e.consume(a),r=0,s):62===a?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(a),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(a){if((45===a||(0,d.lV)(a))&&r++<63){let n=45===a?t:i;return e.consume(a),n}return n(a)}(a)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,a,l=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),o};function o(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),w):63===t?(e.consume(t),x):(0,d.CW)(t)?(e.consume(t),C):n(t)}function s(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,m):(0,d.CW)(t)?(e.consume(t),k):n(t)}function u(t){return 45===t?(e.consume(t),f):n(t)}function h(t){return null===t?n(t):45===t?(e.consume(t),p):(0,d.HP)(t)?(a=h,L(t)):(e.consume(t),h)}function p(t){return 45===t?(e.consume(t),f):h(t)}function f(e){return 62===e?I(e):45===e?p(e):h(e)}function m(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?g:m):n(t)}function g(t){return null===t?n(t):93===t?(e.consume(t),y):(0,d.HP)(t)?(a=g,L(t)):(e.consume(t),g)}function y(t){return 93===t?(e.consume(t),b):g(t)}function b(t){return 62===t?I(t):93===t?(e.consume(t),b):g(t)}function k(t){return null===t||62===t?I(t):(0,d.HP)(t)?(a=k,L(t)):(e.consume(t),k)}function x(t){return null===t?n(t):63===t?(e.consume(t),v):(0,d.HP)(t)?(a=x,L(t)):(e.consume(t),x)}function v(e){return 62===e?I(e):x(e)}function w(t){return(0,d.CW)(t)?(e.consume(t),S):n(t)}function S(t){return 45===t||(0,d.lV)(t)?(e.consume(t),S):function t(n){return(0,d.HP)(n)?(a=t,L(n)):(0,d.On)(n)?(e.consume(n),t):I(n)}(t)}function C(t){return 45===t||(0,d.lV)(t)?(e.consume(t),C):47===t||62===t||(0,d.Ee)(t)?_(t):n(t)}function _(t){return 47===t?(e.consume(t),I):58===t||95===t||(0,d.CW)(t)?(e.consume(t),A):(0,d.HP)(t)?(a=_,L(t)):(0,d.On)(t)?(e.consume(t),_):I(t)}function A(t){return 45===t||46===t||58===t||95===t||(0,d.lV)(t)?(e.consume(t),A):function t(n){return 61===n?(e.consume(n),E):(0,d.HP)(n)?(a=t,L(n)):(0,d.On)(n)?(e.consume(n),t):_(n)}(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,N):(0,d.HP)(t)?(a=E,L(t)):(0,d.On)(t)?(e.consume(t),E):(e.consume(t),P)}function N(t){return t===r?(e.consume(t),r=void 0,T):null===t?n(t):(0,d.HP)(t)?(a=N,L(t)):(e.consume(t),N)}function P(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||(0,d.Ee)(t)?_(t):(e.consume(t),P)}function T(e){return 47===e||62===e||(0,d.Ee)(e)?_(e):n(e)}function I(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"),R}function R(t){return(0,d.On)(t)?(0,c.N)(e,M,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):M(t)}function M(t){return e.enter("htmlTextData"),a(t)}}}],91:ea,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return(0,d.HP)(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},Q],93:J,95:er,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,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),a++,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===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(l)):(i.type="codeTextData",o(l))}(s)):(0,d.HP)(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),l):(e.enter("codeTextData"),o(s))}function o(t){return null===t||32===t||96===t||(0,d.HP)(t)?(e.exit("codeTextData"),l(t)):(e.consume(t),o)}}}},eh={null:[er,k]},ep={null:[42,95]},ef={null:[]},em=/[\0\t\n\r]/g;function eg(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 ey=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function eb(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return eg(n.slice(t?2:1),t?16:10)}return W(n)||e}var ek=n(29570);let ex={}.hasOwnProperty;function ev(e){return{line:e.line,column:e.column,offset:e.offset}}function ew(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+(0,ek.L)({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+(0,ek.L)({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+(0,ek.L)({start:t.start,end:t.end})+") is still open")}function eS(e){let t=this;t.parser=function(n){var l,o;let c,f,m,g;return"string"!=typeof(l={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(o=l,l=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(b),autolinkProtocol:c,autolinkEmail:c,atxHeading:r(m),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:c,characterReference:c,codeFenced:r(f),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:r(f,a),codeText:r(function(){return{type:"inlineCode",value:""}},a),codeTextData:c,data:c,codeFlowValue:c,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(g),hardBreakTrailing:r(g),htmlFlow:r(y,a),htmlFlowData:c,htmlText:r(y,a),htmlTextData:c,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:a,link:r(b),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(k,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(k),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:r(m),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:o(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:o(),autolinkEmail:function(e){d.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){d.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:o(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=eg(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=W(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=ev(e.end)},codeFenced:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:d,codeIndented:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:d,data:d,definition:o(),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=(0,M.B)(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:o(),hardBreakEscape:o(h),hardBreakTrailing:o(h),htmlFlow:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:d,htmlText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:d,image:o(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(ey,eb),n.identifier=(0,M.B)(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=ev(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(c.call(this,e),d.call(this,e))},link:o(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:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,M.B)(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:o(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:o(),thematicBreak:o()}};!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(ex.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:[]},i={stack:[r],tokenStack:[],config:t,enter:l,exit:s,buffer:a,resume:u,data:n},o=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?o.push(c):c=function(e,t,n){let r,i,a,l,o=t-1,s=-1,u=!1;for(;++o<=n;){let t=e[o];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||a||(a=o),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=o;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}a&&(!i||a<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||o,0,["exit",r,t[2]]),o++,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(o,0,["enter",i,t[2]]),o++,n++,a=void 0,l=!0}}}return e[t][1]._spread=u,n}(e,o.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];ex.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},i),e[c][1])}if(i.tokenStack.length>0){let e=i.tokenStack[i.tokenStack.length-1];(e[1]||ew).call(i,void 0,e[0])}for(r.position={start:ev(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:ev(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){l.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function l(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:ev(t.start),end:void 0}}function o(e){return function(t){e&&e.call(this,t),s.call(this,t)}}function s(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||ew).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+(0,ek.L)({start:e.start,end:e.end})+"): it’s not open");n.position.end=ev(e.end)}function u(){return(0,i.d)(this.stack.pop())}function c(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:ev(e.start),end:void 0},t.push(n)),this.stack.push(n)}function d(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=ev(e.end)}function h(){this.data.atHardBreak=!0}function p(e){this.data.characterReferenceType=e.type}function f(){return{type:"code",lang:null,meta:null,value:""}}function m(){return{type:"heading",depth:0,children:[]}}function g(){return{type:"break"}}function y(){return{type:"html",value:""}}function b(){return{type:"link",title:null,url:"",children:[]}}function k(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(o)(function(e){for(;!s(e););return e}((function(e){let t={constructs:(0,u.y)([r,...(e||{}).extensions||[]]),content:n(h),defined:[],document:n(p),flow:n(b),lazy:{},string:n(x),text:n(v)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},l=[],o=[],s=[],u={attempt:g(function(e,t){y(e,t.from)}),check:g(m),consume:function(e){(0,d.HP)(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,b()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=f(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){let t=s.pop();return t.end=f(),c.events.push(["exit",t,c]),t},interrupt:g(m,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,b()},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 a,l=e[r];if("string"==typeof l)a=l;else switch(l){case -5:a="\r";break;case -4:a="\n";break;case -3:a="\r\n";break;case -2:a=t?" ":" ";break;case -1:if(!t&&n)continue;a=" ";break;default:a=String.fromCharCode(l)}n=-2===l,i.push(a)}return i.join("")}(p(e),t)},sliceStream:p,write:function(e){return(o=(0,a.V)(o,e),function(){let e;for(;r._index<o.length;){let n=o[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),h=h(t)}else h=h(n)}}(),null!==o[o.length-1])?[]:(y(t,0),c.events=(0,X.W)(l,c.events,c),c.events)}},h=t.tokenize.call(c,u);return t.resolveAll&&l.push(t),c;function p(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,a=t.end._index,l=t.end._bufferIndex;if(r===a)n=[e[r].slice(i,l)];else{if(n=e.slice(r,a),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}l>0&&n.push(e[a].slice(0,l))}return n}(o,e)}function f(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function m(e,t){t.restore()}function g(e,t){return function(n,i,a){var l;let o,d,h,p;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(o=e,d=0,0===e.length)?a:g(e[d])}function g(e){return function(n){return(p=function(){let e=f(),t=c.previous,n=c.currentConstruct,i=c.events.length,a=Array.from(s);return{from:i,restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,s=a,b()}}}(),h=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name))?k(n):e.tokenize.call(t?Object.assign(Object.create(c),t):c,u,y,k)(n)}}function y(t){return e(h,p),i}function k(e){return(p.restore(),++d<o.length)?g(o[d]):a}}}function y(e,t){e.resolveAll&&!l.includes(e)&&l.push(e),e.resolve&&(0,a.m)(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function b(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(o).document().write((f=1,m="",g=!0,function(e,t,n){let r,i,a,l,o,s=[];for(e=m+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),a=0,m="",g&&(65279===e.charCodeAt(0)&&a++,g=void 0);a<e.length;){if(em.lastIndex=a,l=(r=em.exec(e))&&void 0!==r.index?r.index:e.length,o=e.charCodeAt(l),!r){m=e.slice(a);break}if(10===o&&a===l&&c)s.push(-3),c=void 0;else switch(c&&(s.push(-5),c=void 0),a<l&&(s.push(e.slice(a,l)),f+=l-a),o){case 0:s.push(65533),f++;break;case 9:for(i=4*Math.ceil(f/4),s.push(-2);f++<i;)s.push(-1);break;case 10:s.push(-4),f=1;break;default:c=!0,f=1}a=l+1}return n&&(c&&s.push(-5),m&&s.push(m),s.push(null)),s})(n,l,!0))))}}},75207:(e,t,n)=>{"use strict";function r(){}function i(){}n.d(t,{HB:()=>i,ok:()=>r})},79275:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(30619)),i=n(55007);function a(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}a.default=a,e.exports=a},81934:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(82471).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},82479:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(82471).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},82575:(e,t,n)=>{"use strict";n.d(t,{T:()=>u});var r=n(96293);let i={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');a(e);let r=0,i=-1,l=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;l--;)if(47===e.codePointAt(l)){if(n){r=l+1;break}}else i<0&&(n=!0,i=l+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let o=-1,s=t.length-1;for(;l--;)if(47===e.codePointAt(l)){if(n){r=l+1;break}}else o<0&&(n=!0,o=l+1),s>-1&&(e.codePointAt(l)===t.codePointAt(s--)?s<0&&(i=l):(s=-1,i=o));return r===i?i=o:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){let t;if(a(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)},extname:function(e){let t;a(e);let n=e.length,r=-1,i=0,l=-1,o=0;for(;n--;){let a=e.codePointAt(n);if(47===a){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===a?l<0?l=n:1!==o&&(o=1):l>-1&&(o=-1)}return l<0||r<0||0===o||1===o&&l===r-1&&l===i+1?"":e.slice(l,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)a(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){a(e);let t=47===e.codePointAt(0),n=function(e,t){let n,r,i="",a=0,l=-1,o=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===o);else if(l!==s-1&&2===o){if(i.length<2||2!==a||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="",a=0):a=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),l=s,o=0;continue}}else if(i.length>0){i="",a=0,l=s,o=0;continue}}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(l+1,s):i=e.slice(l+1,s),a=s-l-1;l=s,o=0}else 46===n&&o>-1?o++:o=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function a(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let l={cwd:function(){return"/"}};function o(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let s=["history","path","basename","stem","extname","dirname"];class u{constructor(e){let t,n;t=e?o(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?"":l.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<s.length;){let e=s[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)s.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?i.basename(this.path):void 0}set basename(e){d(e,"basename"),c(e,"basename"),this.path=i.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?i.dirname(this.path):void 0}set dirname(e){h(this.basename,"dirname"),this.path=i.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?i.extname(this.path):void 0}set extname(e){if(c(e,"extname"),h(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=i.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){o(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!o(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)),d(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?i.basename(this.path,this.extname):void 0}set stem(e){d(e,"stem"),c(e,"stem"),this.path=i.join(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 i=new r.o(e,t,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function c(e,t){if(e&&e.includes(i.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+i.sep+"`")}function d(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function h(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}},83034:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});let r={};function i(e,t){let n=t||r;return a(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function a(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 l(e.children,t,n)}return Array.isArray(e)?l(e,t,n):""}function l(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=a(e[i],t,n);return r.join("")}},83404:(e,t,n)=>{"use strict";let r,i;n.d(t,{j:()=>lf});var a=n(56632),l=n(75207),o=n(69456),s=n(27346),u=n(85012),c=n(72105),d=n(85510),h=n(67458),p=n(46645),f=n(82575);let m=[],g={allowDangerousHtml:!0},y=/^(https?|ircs?|mailto|xmpp)$/i,b=[{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 k(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||y.test(e.slice(0,t))?e:""}var x=n(64103),v=n(16995);function w(e,t){let n=function(e,t){switch(e.nodeType){case 1:return function(e,t){let n=e.namespaceURI,r=n===v.t.svg?x.s:x.h,i=n===v.t.html?e.tagName.toLowerCase():e.tagName,a=n===v.t.html&&"template"===i?e.content:e,l=e.getAttributeNames(),o={},s=-1;for(;++s<l.length;)o[l[s]]=e.getAttribute(l[s])||"";return r(i,o,S(a,t))}(e,t);case 3:return{type:"text",value:e.nodeValue||""};case 8:return{type:"comment",value:e.nodeValue||""};case 9:case 11:return function(e,t){return{type:"root",children:S(e,t)}}(e,t);case 10:return{type:"doctype"};default:return}}(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function S(e,t){let n=e.childNodes,r=[],i=-1;for(;++i<n.length;){let e=w(n[i],t);void 0!==e&&r.push(e)}return r}let C=new DOMParser;var _=n(58706);let A=function(e,t,n){let r=(0,_.C)(n);if(!e||!e.type||!e.children)throw Error("Expected parent node");if("number"==typeof t){if(t<0||t===1/0)throw Error("Expected positive finite number as index")}else if((t=e.children.indexOf(t))<0)throw Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]},E=function(e){if(null==e)return P;if("string"==typeof e){var t;return t=e,N(function(e){return e.tagName===t})}if("object"==typeof e){var n=e;let t=[],r=-1;for(;++r<n.length;)t[r]=E(n[r]);return N(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}if("function"==typeof e)return N(e);throw Error("Expected function, string, or array as `test`")};function N(e){return function(t,n,r){var i;return!!(null!==(i=t)&&"object"==typeof i&&"type"in i&&"tagName"in i&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function P(e){return!!(e&&"object"==typeof e&&"type"in e&&"element"===e.type&&"tagName"in e&&"string"==typeof e.tagName)}let T=/\n/g,I=/[\t ]+/g,L=E("br"),R=E(function(e){return"td"===e.tagName||"th"===e.tagName}),M=E("p"),$=E("tr"),O=E(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return!!(e.properties||{}).hidden},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),D=E(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function j(e,t){let n,r=String(e.value),i=[],a=[],l=0;for(;l<=r.length;){T.lastIndex=l;let e=T.exec(r),n=e&&"index"in e?e.index:r.length;i.push(function(e,t,n){let r,i=[],a=0;for(;a<e.length;){I.lastIndex=a;let n=I.exec(e);r=n?n.index:e.length,a||r||!n||t||i.push(""),a!==r&&i.push(e.slice(a,r)),a=n?r+n[0].length:r}return a===r||n||i.push(""),i.join(" ")}(r.slice(l,n).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==l||t.breakBefore,n!==r.length||t.breakAfter)),l=n+1}let o=-1;for(;++o<i.length;)8203===i[o].charCodeAt(i[o].length-1)||o<i.length-1&&8203===i[o+1].charCodeAt(0)?(a.push(i[o]),n=void 0):i[o]?("number"==typeof n&&a.push(n),a.push(i[o]),n=0):(0===o||o===i.length-1)&&a.push(0);return a}function z(e,t){if("element"===e.type){let n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}var F=n(84376),B=n(15711);let H={},G=[];var U=n(85739),q=n(97564),W=n(52263),V=n(8612);let Q={tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,l=0;return function(t){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),function t(r){return 36===r?(e.consume(r),l++,t):l<2?n(r):(e.exit("mathFlowFenceSequence"),(0,W.N)(e,o,"whitespace")(r))}(t)};function o(t){return null===t||(0,V.HP)(t)?s(t):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(r){return null===r||(0,V.HP)(r)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),s(r)):36===r?n(r):(e.consume(r),t)}(t))}function s(n){return(e.exit("mathFlowFence"),r.interrupt)?t(n):e.attempt(Z,u,h)(n)}function u(t){return e.attempt({tokenize:p,partial:!0},h,c)(t)}function c(t){return(a?(0,W.N)(e,d,"linePrefix",a+1):d)(t)}function d(t){return null===t?h(t):(0,V.HP)(t)?e.attempt(Z,u,h)(t):(e.enter("mathFlowValue"),function t(n){return null===n||(0,V.HP)(n)?(e.exit("mathFlowValue"),d(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("mathFlow"),t(n)}function p(e,t,n){let i=0;return(0,W.N)(e,function(t){return e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),function t(r){return 36===r?(i++,e.consume(r),t):i<l?n(r):(e.exit("mathFlowFenceSequence"),(0,W.N)(e,a,"whitespace")(r))}(t)},"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function a(r){return null===r||(0,V.HP)(r)?(e.exit("mathFlowFence"),t(r)):n(r)}}},concrete:!0,name:"mathFlow"},Z={tokenize:function(e,t,n){let r=this;return function(n){return null===n?t(n):(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};function X(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("mathTextData"===e[t][1].type){e[r][1].type="mathTextPadding",e[i][1].type="mathTextPadding",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="mathTextData",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}function J(e){return 36!==e||"characterEscape"===this.events[this.events.length-1][1].type}let K={};function Y(e){let t,n=e||K,r=this.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push({flow:{36:Q},text:{36:(null==(t=(n||{}).singleDollarTextMath)&&(t=!0),{tokenize:function(e,n,r){let i,a,l=0;return function(n){return e.enter("mathText"),e.enter("mathTextSequence"),function n(i){return 36===i?(e.consume(i),l++,n):l<2&&!t?r(i):(e.exit("mathTextSequence"),o(i))}(n)};function o(t){return null===t?r(t):36===t?(a=e.enter("mathTextSequence"),i=0,function t(r){return 36===r?(e.consume(r),i++,t):i===l?(e.exit("mathTextSequence"),e.exit("mathText"),n(r)):(a.type="mathTextData",s(r))}(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),o):(0,V.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):(e.enter("mathTextData"),s(t))}function s(t){return null===t||32===t||36===t||(0,V.HP)(t)?(e.exit("mathTextData"),o(t)):(e.consume(t),s)}},resolve:X,previous:J,name:"mathText"})}}),a.push(function(){return{enter:{mathFlow:function(e){this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[{type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]}]}},e)},mathFlowFenceMeta:function(){this.buffer()},mathText:function(e){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},e),this.buffer()}},exit:{mathFlow:function(e){let t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),n=this.stack[this.stack.length-1];(0,l.ok)("math"===n.type),this.exit(e),n.value=t;let r=n.data.hChildren[0];(0,l.ok)("element"===r.type),(0,l.ok)("code"===r.tagName),r.children.push({type:"text",value:t}),this.data.mathFlowInside=void 0},mathFlowFence:function(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)},mathFlowFenceMeta:function(){let e=this.resume(),t=this.stack[this.stack.length-1];(0,l.ok)("math"===t.type),t.meta=e},mathFlowValue:e,mathText:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,l.ok)("inlineMath"===n.type),this.exit(e),n.value=t,n.data.hChildren.push({type:"text",value:t})},mathTextData:e}};function e(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}}()),o.push(function(e){let t=(e||{}).singleDollarTextMath;return null==t&&(t=!0),n.peek=function(){return"$"},{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:"\n",inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:function(e,t,n,r){let i=e.value||"",a=n.createTracker(r),l="$".repeat(Math.max((0,q.D)(i,"$")+1,2)),o=n.enter("mathFlow"),s=a.move(l);if(e.meta){let t=n.enter("mathFlowMeta");s+=a.move(n.safe(e.meta,{after:"\n",before:s,encode:["$"],...a.current()})),t()}return s+=a.move("\n"),i&&(s+=a.move(i+"\n")),s+=a.move(l),o(),s},inlineMath:n}};function n(e,n,r){let i=e.value||"",a=1;for(!t&&a++;RegExp("(^|[^$])"+"\\$".repeat(a)+"([^$]|$)").test(i);)a++;let l="$".repeat(a);/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^\$|\$$/.test(i))&&(i=" "+i+" ");let o=-1;for(;++o<r.unsafe.length;){let e,t=r.unsafe[o];if(!t.atBreak)continue;let n=r.compilePattern(t);for(;e=n.exec(i);){let t=e.index;10===i.codePointAt(t)&&13===i.codePointAt(t-1)&&t--,i=i.slice(0,t)+" "+i.slice(e.index+1)}}return l+i+l}}(n))}n(28655);var ee=n(14637);let et=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},en=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim()};var er={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let ei=(0,a.forwardRef)((e,t)=>{let{color:n="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:o="",children:s,iconNode:u,...c}=e;return(0,a.createElement)("svg",{ref:t,...er,width:r,height:r,stroke:n,strokeWidth:l?24*Number(i)/Number(r):i,className:en("lucide",o),...!s&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(c)&&{"aria-hidden":"true"},...c},[...u.map(e=>{let[t,n]=e;return(0,a.createElement)(t,n)}),...Array.isArray(s)?s:[s]])}),ea=(e,t)=>{let n=(0,a.forwardRef)((n,r)=>{let{className:i,...l}=n;return(0,a.createElement)(ei,{ref:r,iconNode:t,className:en("lucide-".concat(et(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),i),...l})});return n.displayName=et(e),n},el=ea("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),eo=ea("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),es=ea("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);class eu extends Error{constructor(e){super(e),this.name="ShikiError"}}var ec=n(40074);function ed(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}var eh=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,ep=class{static hasCaptures(e){return null!==e&&(eh.lastIndex=0,eh.test(e))}static replaceCaptures(e,t,n){return e.replace(eh,(e,r,i,a)=>{let l=n[parseInt(r||i,10)];if(!l)return e;{let e=t.substring(l.start,l.end);for(;"."===e[0];)e=e.substring(1);switch(a){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function ef(e,t){if(null===e&&null===t)return 0;if(!e)return -1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){var i,a;let n=(i=e[r],i<(a=t[r])?-1:+(i>a));if(0!==n)return n}return 0}return n-r}function em(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function eg(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var ey=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},eb=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i,a=t[e];if(!a.settings)continue;if("string"==typeof a.scope){let e=a.scope;i=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else i=Array.isArray(a.scope)?a.scope:[""];let l=-1;if("string"==typeof a.settings.fontStyle){l=0;let e=a.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":l|=1;break;case"bold":l|=2;break;case"underline":l|=4;break;case"strikethrough":l|=8}}let o=null;"string"==typeof a.settings.foreground&&em(a.settings.foreground)&&(o=a.settings.foreground);let s=null;"string"==typeof a.settings.background&&em(a.settings.background)&&(s=a.settings.background);for(let t=0,a=i.length;t<a;t++){let a=i[t].trim().split(" "),u=a[a.length-1],c=null;a.length>1&&(c=a.slice(0,a.length-1)).reverse(),n[r++]=new ev(u,c,e,l,o,s)}}return n}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var n,r;let i=(n=e.scope,n<(r=t.scope)?-1:+(n>r));return 0!==i||0!==(i=ef(e.parentScopes,t.parentScopes))?i:e.index-t.index});let n=0,r="#000000",i="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(i=t.background)}let a=new eS(t),l=new ex(n,a.getId(r),a.getId(i)),o=new eA(new e_(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];o.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new eb(a,l,o)}(e,t)}_cachedMatchRoot=new ey(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(0===t.length)return!0;for(let i=0;i<t.length;i++){var n,r;let a=t[i],l=!1;if(">"===a){if(i===t.length-1)return!1;a=t[++i],l=!0}for(;e&&(n=e.scopeName,!((r=a)===n||n.startsWith(r)&&"."===n[r.length]));){if(l)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return n?new ex(n.fontStyle,n.foreground,n.background):null}},ek=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}},ex=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}},ev=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},ew=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(ew||{}),eS=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},eC=Object.freeze([]),e_=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||eC,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}},eA=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;">"===e.parentScopes[n]&&n++,">"===t.parentScopes[r]&&r++,!(n>=e.parentScopes.length)&&!(r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(0!==i)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,n,r=t.indexOf(".");if(-1===r?(e=t,n=""):(e=t.substring(0,r),n=t.substring(r+1)),this._children.hasOwnProperty(e))return this._children[e].match(n)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,l){let o,s,u;if(""===n)return void this._doInsertHere(t,r,i,a,l);let c=n.indexOf(".");-1===c?(o=n,s=""):(o=n.substring(0,c),s=n.substring(c+1)),this._children.hasOwnProperty(o)?u=this._children[o]:(u=new e(this._mainRule.clone(),e_.cloneArr(this._rulesWithParentScopes)),this._children[o]=u),u.insert(t+1,s,r,i,a,l)}_doInsertHere(e,t,n,r,i){if(null===t)return void this._mainRule.acceptOverwrite(e,n,r,i);for(let a=0,l=this._rulesWithParentScopes.length;a<l;a++){let l=this._rulesWithParentScopes[a];if(0===ef(l.parentScopes,t))return void l.acceptOverwrite(e,n,r,i)}-1===n&&(n=this._mainRule.fontStyle),0===r&&(r=this._mainRule.foreground),0===i&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new e_(e,t,n,r,i))}},eE=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:e.getForeground(t),background:e.getBackground(t)})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(0xff8000&e)>>>15}static getBackground(e){return(0xff000000&e)>>>24}static set(t,n,r,i,a,l,o){let s=e.getLanguageId(t),u=e.getTokenType(t),c=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),h=e.getForeground(t),p=e.getBackground(t);return 0!==n&&(s=n),8!==r&&(u=r),null!==i&&(c=+!!i),-1!==a&&(d=a),0!==l&&(h=l),0!==o&&(p=o),(0|s|u<<8|c<<10|d<<11|h<<15|p<<24)>>>0}};function eN(e,t){var n;let r,i,a=[],l=(n=e,i=(r=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(n),{next:()=>{if(!i)return null;let e=i[0];return i=r.exec(n),e}}),o=l.next();for(;null!==o;){let e=0;if(2===o.length&&":"===o.charAt(1)){switch(o.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=l.next()}let t=u();if(a.push({matcher:t,priority:e}),","!==o)break;o=l.next()}return a;function s(){if("-"===o){o=l.next();let e=s();return t=>!!e&&!e(t)}if("("===o){o=l.next();let e=function(){let e=[],t=u();for(;t&&(e.push(t),"|"===o||","===o);){do o=l.next();while("|"===o||","===o);t=u()}return t=>e.some(e=>e(t))}();return")"===o&&(o=l.next()),e}if(eP(o)){let e=[];do e.push(o),o=l.next();while(eP(o));return n=>t(e,n)}return null}function u(){let e=[],t=s();for(;t;)e.push(t),t=s();return t=>e.every(e=>e(t))}}function eP(e){return!!e&&!!e.match(/[\w\.:]+/)}var eT=(e=>(e[e.None=0]="None",e[e.NotBeginString=1]="NotBeginString",e[e.NotEndString=2]="NotEndString",e[e.NotBeginPosition=4]="NotBeginPosition",e[e.DebugCall=8]="DebugCall",e))(eT||{});function eI(e){"function"==typeof e.dispose&&e.dispose()}var eL=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},eR=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},eM=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},e$=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new eL(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new eM;for(let n of e)!function(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof eL?eD({baseGrammar:a,selfGrammar:i},r):eO(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let l=n.injections(e.scopeName);if(l)for(let e of l)r.add(new eL(e))}(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof eL){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function eO(e,t,n){t.repository&&t.repository[e]&&ej([t.repository[e]],t,n)}function eD(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&ej(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&ej(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function ej(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?ed({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&ej(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=eU(i);switch(a.kind){case 0:eD({...t,selfGrammar:t.baseGrammar},n);break;case 1:eD(t,n);break;case 2:eO(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let l=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(l){let r={baseGrammar:t.baseGrammar,selfGrammar:l,repository:e};4===a.kind?eO(a.ruleName,r,n):eD(r,n)}else 4===a.kind?n.add(new eR(a.scopeName,a.ruleName)):n.add(new eL(a.scopeName))}}}var ez=class{kind=0},eF=class{kind=1},eB=class{constructor(e){this.ruleName=e}kind=2},eH=class{constructor(e){this.scopeName=e}kind=3},eG=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function eU(e){if("$base"===e)return new ez;if("$self"===e)return new eF;let t=e.indexOf("#");return -1===t?new eH(e):0===t?new eB(e.substring(1)):new eG(e.substring(0,t),e.substring(t+1))}var eq=/\\(\d+)/,eW=/\\(\d+)/g;Symbol("RuleId");var eV=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=ep.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=ep.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${function e(t){let n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(~n+1)}(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?ep.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?ep.replaceCaptures(this._contentName,e,t):this._contentName}},eQ=class extends eV{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,n,r){throw Error("Not supported!")}},eZ=class extends eV{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new e0(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new e1,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},eX=class extends eV{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new e1,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},eJ=class extends eV{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,l,o,s,u){super(e,t,n,r),this._begin=new e0(i,this.id),this.beginCaptures=a,this._end=new e0(l||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,this.applyEndPatternLast=s||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){for(let t of(this._cachedCompiledPatterns=new e1,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},eK=class extends eV{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,l,o,s){super(e,t,n,r),this._begin=new e0(i,this.id),this.beginCaptures=a,this.whileCaptures=o,this._while=new e0(l,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new e1,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new e1,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}},eY=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new eQ(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new eZ(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(void 0===t.begin){t.repository&&(r=ed({},r,t.repository));let i=t.patterns;return void 0===i&&t.include&&(i=[{include:t.include}]),new eX(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new eK(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new eJ(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if("$vscodeTextmateLocation"===a)continue;let l=parseInt(a,10),o=0;t[a].patterns&&(o=e.getCompiledRuleId(t[a],n,r)),i[l]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,o)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,l=t.length;a<l;a++){let l=t[a],o=-1;if(l.include){let t=eU(l.include);switch(t.kind){case 0:case 1:o=e.getCompiledRuleId(r[l.include],n,r);break;case 2:let i=r[t.ruleName];i&&(o=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,s=4===t.kind?t.ruleName:null,u=n.getExternalGrammar(a,r);if(u)if(s){let t=u.repository[s];t&&(o=e.getCompiledRuleId(t,n,u.repository))}else o=e.getCompiledRuleId(u.repository.$self,n,u.repository)}}else o=e.getCompiledRuleId(l,n,r);if(-1!==o){let e=n.getRule(o),t=!1;if((e instanceof eX||e instanceof eJ||e instanceof eK)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;i.push(o)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},e0=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&"string"==typeof e){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if("\\"===e.charAt(a)&&a+1<t){let t=e.charAt(a+1);"z"===t?(r.push(e.substring(n,a)),r.push("$(?!\\n)(?<!\\n)"),n=a+2):("A"===t||"G"===t)&&(i=!0),a++}this.hasAnchor=i,0===n?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,"string"==typeof this.source?this.hasBackReferences=eq.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let n=t.map(t=>e.substring(t.start,t.end));return eW.lastIndex=0,this.source.replace(eW,(e,t)=>eg(n[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,n,r;if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let i=[],a=[],l=[],o=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),i[e]=n,a[e]=n,l[e]=n,o[e]=n,"\\"===n&&e+1<t&&("A"===(r=this.source.charAt(e+1))?(i[e+1]="￿",a[e+1]="￿",l[e+1]="A",o[e+1]="A"):"G"===r?(i[e+1]="￿",a[e+1]="G",l[e+1]="￿",o[e+1]="G"):(i[e+1]=r,a[e+1]=r,l[e+1]=r,o[e+1]=r),e++);return{A0_G0:i.join(""),A0_G1:a.join(""),A1_G0:l.join(""),A1_G1:o.join("")}}resolveAnchors(e,t){if(!this.hasAnchor||!this._anchorCache||"string"!=typeof this.source)return this.source;if(e)if(t)return this._anchorCache.A1_G1;else return this._anchorCache.A1_G0;return t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},e1=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new e2(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){if(!this._hasAnchors)return this.compile(e);if(t)if(n)return this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1;else return this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0;return n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0)}_resolveAnchors(e,t,n){return new e2(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},e2=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},e4=class{constructor(e,t){this.languageId=e,this.tokenType=t}},e3=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new e4(e,8),this._embeddedLanguagesMatcher=new e5(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new e4(0,0);_getBasicScopeAttributes=new ey(e=>new e4(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},e5=class{values;scopesRegExp;constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>eg(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};void 0!==ec&&ec.env.VSCODE_TEXTMATE_DEBUG;var e9=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function e8(e,t,n,r,i,a,l,o){let s=t.content.length,u=!1,c=-1;if(l){let l=function(e,t,n,r,i,a){let l=i.beginRuleCapturedEOL?0:-1,o=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof eK&&o.push({rule:n,stack:t})}for(let p=o.pop();p;p=o.pop()){var s,u,c,d,h;let{ruleScanner:o,findOptions:f}=(s=p.rule,u=e,c=p.stack.endRule,d=n,h=r===l,{ruleScanner:s.compileWhileAG(u,c,d,h),findOptions:0}),m=o.findNextMatchSync(t,r,f);if(m){if(-2!==m.ruleId){i=p.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(a.produce(p.stack,m.captureIndices[0].start),e7(e,t,n,p.stack,a,p.rule.whileCaptures,m.captureIndices),a.produce(p.stack,m.captureIndices[0].end),l=m.captureIndices[0].end,m.captureIndices[0].end>r&&(r=m.captureIndices[0].end,n=!1))}else{i=p.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:l,isFirstLine:n}}(e,t,n,r,i,a);i=l.stack,r=l.linePos,n=l.isFirstLine,c=l.anchorPosition}let d=Date.now();for(;!u;){if(0!==o&&Date.now()-d>o)return new e9(i,!0);!function(){let l=function(e,t,n,r,i,a){let l=function(e,t,n,r,i,a){let{ruleScanner:l,findOptions:o}=e6(i.getRule(e),e,i.endRule,n,r===a),s=l.findNextMatchSync(t,r,o);return s?{captureIndices:s.captureIndices,matchedRuleId:s.ruleId}:null}(e,t,n,r,i,a),o=e.getInjections();if(0===o.length)return l;let s=function(e,t,n,r,i,a,l){let o,s=Number.MAX_VALUE,u=null,c=0,d=a.contentNameScopesList.getScopeNames();for(let a=0,h=e.length;a<h;a++){let h=e[a];if(!h.matcher(d))continue;let{ruleScanner:p,findOptions:f}=e6(t.getRule(h.ruleId),t,null,r,i===l),m=p.findNextMatchSync(n,i,f);if(!m)continue;let g=m.captureIndices[0].start;if(!(g>=s)&&(s=g,u=m.captureIndices,o=m.ruleId,c=h.priority,s===i))break}return u?{priorityMatch:-1===c,captureIndices:u,matchedRuleId:o}:null}(o,e,t,n,r,i,a);if(!s)return l;if(!l)return s;let u=l.captureIndices[0].start,c=s.captureIndices[0].start;return c<u||s.priorityMatch&&c===u?s:l}(e,t,n,r,i,c);if(!l){a.produce(i,s),u=!0;return}let o=l.captureIndices,d=l.matchedRuleId,h=!!o&&o.length>0&&o[0].end>r;if(-1===d){let l=i.getRule(e);a.produce(i,o[0].start),i=i.withContentNameScopesList(i.nameScopesList),e7(e,t,n,i,a,l.endCaptures,o),a.produce(i,o[0].end);let d=i;if(i=i.parent,c=d.getAnchorPos(),!h&&d.getEnterPos()===r){i=d,a.produce(i,s),u=!0;return}}else{let l=e.getRule(d);a.produce(i,o[0].start);let p=i,f=l.getName(t.content,o),m=i.contentNameScopesList.pushAttributed(f,e);if(i=i.push(d,r,c,o[0].end===s,null,m,m),l instanceof eJ){e7(e,t,n,i,a,l.beginCaptures,o),a.produce(i,o[0].end),c=o[0].end;let r=l.getContentName(t.content,o),d=m.pushAttributed(r,e);if(i=i.withContentNameScopesList(d),l.endHasBackReferences&&(i=i.withEndRule(l.getEndWithResolvedBackReferences(t.content,o))),!h&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,s),u=!0;return}}else if(l instanceof eK){e7(e,t,n,i,a,l.beginCaptures,o),a.produce(i,o[0].end),c=o[0].end;let r=l.getContentName(t.content,o),d=m.pushAttributed(r,e);if(i=i.withContentNameScopesList(d),l.whileHasBackReferences&&(i=i.withEndRule(l.getWhileWithResolvedBackReferences(t.content,o))),!h&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,s),u=!0;return}}else if(e7(e,t,n,i,a,l.captures,o),a.produce(i,o[0].end),i=i.pop(),!h){i=i.safePop(),a.produce(i,s),u=!0;return}}o[0].end>r&&(r=o[0].end,n=!1)}()}return new e9(i,!1)}function e6(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function e7(e,t,n,r,i,a,l){if(0===a.length)return;let o=t.content,s=Math.min(a.length,l.length),u=[],c=l[0].end;for(let t=0;t<s;t++){let s=a[t];if(null===s)continue;let d=l[t];if(0===d.length)continue;if(d.start>c)break;for(;u.length>0&&u[u.length-1].endPos<=d.start;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?i.produceFromScopes(u[u.length-1].scopes,d.start):i.produce(r,d.start),s.retokenizeCapturedWithRuleId){let t=s.getName(o,l),a=r.contentNameScopesList.pushAttributed(t,e),u=s.getContentName(o,l),c=a.pushAttributed(u,e),h=r.push(s.retokenizeCapturedWithRuleId,d.start,-1,!1,null,a,c),p=e.createOnigString(o.substring(0,d.end));e8(e,p,n&&0===d.start,d.start,h,i,!1,0),eI(p);continue}let h=s.getName(o,l);if(null!==h){let t=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(h,e);u.push(new te(t,d.end))}}for(;u.length>0;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var te=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function tt(e,t,n,r,i){let a=eN(t,tn),l=eY.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:l,grammar:i,priority:n.priority})}function tn(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(function(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}(t[r],e))return n=r+1,!0;return!1})}var tr=class{constructor(e,t,n,r,i,a,l,o){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=o,this._basicScopeAttributesProvider=new e3(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=ti(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i))for(let t of eN(e,tn))this._tokenTypeMatchers.push({matcher:t.matcher,type:i[e]})}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e=[],t=this._rootScopeName,n=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);if(n){let r=n.injections;if(r)for(let t in r)tt(e,t,r[t],this,n);let i=this._grammarRepository.injections(t);i&&i.forEach(t=>{let n=this.getExternalGrammar(t);if(n){let t=n.injectionSelector;t&&tt(e,t,n,this,n)}})}return e.sort((e,t)=>e.priority-t.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=ti(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){let i;if(-1===this._rootId&&(this._rootId=eY.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==tl.NULL)i=!1,t.reset();else{let e;i=!0;let n=this._basicScopeAttributesProvider.getDefaultAttributes(),r=this.themeProvider.getDefaults(),a=eE.set(0,n.languageId,n.tokenType,null,r.fontStyle,r.foregroundId,r.backgroundId),l=this.getRule(this._rootId).getName(null,null);e=l?ta.createRootAndLookUpScopeName(l,a,this):ta.createRoot("unknown",a),t=new tl(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let a=this.createOnigString(e),l=a.content.length,o=new ts(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),s=e8(this,a,i,0,t,o,!0,r);return eI(a),{lineLength:l,lineTokens:o,ruleStack:s.stack,stoppedEarly:s.stoppedEarly}}};function ti(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let n=[];for(let r=0,i=t.length;r<i;r++)n[r]=e(t[r]);return n}(t):t instanceof RegExp?t:"object"==typeof t?function(t){let n={};for(let r in t)n[r]=e(t[r]);return n}(t):t}(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var ta=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)r=new e(r,i=ek.push(i,t.scopeNames),t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new ek(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new ek(null,t),l=r.themeProvider.themeMatch(a),o=e.mergeAttributes(n,i,l);return new e(null,a,o)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return null!==n&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),eE.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),l=r.themeProvider.themeMatch(a),o=e.mergeAttributes(t.tokenAttributes,i,l);return new e(t,a,o)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},tl=class e{constructor(e,t,n,r,i,a,l,o){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=l,this.contentNameScopesList=o,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&ta.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,l,o){return new e(this,t,n,r,i,a,l,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=ta.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,ta.fromExtension(r,n.contentNameScopesList))}},to=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):eN(e,tn).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>eN(e,tn).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},ts=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=eE.set(n,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=eE.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},tu=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,new tr(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},tc=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new tu(eb.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(eb.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new to(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new e$(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},td=tl.NULL,th=n(26363),tp=n(32746),tf=n(11364);let tm=/["&'<>`]/g,tg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ty=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,tb=/[|\\{}()[\]^$+*?.]/g,tk=new WeakMap,tx=/[\dA-Fa-f]/,tv=/\d/,tw=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],tS={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},tC=["cent","copy","divide","gt","lt","not","para","times"],t_={}.hasOwnProperty,tA={};for(r in tS)t_.call(tS,r)&&(tA[tS[r]]=r);let tE=/[^\dA-Za-z]/;function tN(e,t,n){let r,i=function(e,t,n){let r="&#x"+e.toString(16).toUpperCase();return n&&t&&!tx.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(r=function(e,t,n,r){let i=String.fromCharCode(e);if(t_.call(tA,i)){let e=tA[i],a="&"+e;return n&&tw.includes(e)&&!tC.includes(e)&&(!r||t&&61!==t&&tE.test(String.fromCharCode(t)))?a:a+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){let r=function(e,t,n){let r="&#"+String(e);return n&&t&&!tv.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);r.length<i.length&&(i=r)}return r&&(!n.useShortestReferences||r.length<i.length)?r:i}function tP(e,t){let n;var r,i=e,a=Object.assign({format:tN},t);if(i=i.replace(a.subset?(r=a.subset,(n=tk.get(r))||(n=function(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(tb,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(r),tk.set(r,n)),n):tm,l),a.subset||a.escapeOnly)return i;return i.replace(tg,function(e,t,n){return a.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,n.charCodeAt(t+2),a)}).replace(ty,l);function l(e,t,n){return a.format(e.charCodeAt(0),n.charCodeAt(t+1),a)}}let tT=/^>|^->|<!--|-->|--!>|<!-$/g,tI=[">"],tL=["<",">"];var tR=n(7019),tM=n(94241),t$=n(94711),tO=n(59374),tD=n(65571);let tj=tB(1),tz=tB(-1),tF=[];function tB(e){return function(t,n,r){let i=t?t.children:tF,a=(n||0)+e,l=i[a];if(!r)for(;l&&(0,tD.m)(l);)a+=e,l=i[a];return l}}let tH={}.hasOwnProperty;function tG(e){return function(t,n,r){return tH.call(e,t.tagName)&&e[t.tagName](t,n,r)}}let tU=tG({body:function(e,t,n){let r=tj(n,t);return!r||"comment"!==r.type},caption:tq,colgroup:tq,dd:function(e,t,n){let r=tj(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){let r=tj(n,t);return!!(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:tq,html:function(e,t,n){let r=tj(n,t);return!r||"comment"!==r.type},li:function(e,t,n){let r=tj(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){let r=tj(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){let r=tj(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){let r=tj(n,t);return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||"element"!==n.type||"a"!==n.tagName&&"audio"!==n.tagName&&"del"!==n.tagName&&"ins"!==n.tagName&&"map"!==n.tagName&&"noscript"!==n.tagName&&"video"!==n.tagName},rp:tW,rt:tW,tbody:function(e,t,n){let r=tj(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:tV,tfoot:function(e,t,n){return!tj(n,t)},th:tV,thead:function(e,t,n){let r=tj(n,t);return!!(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){let r=tj(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function tq(e,t,n){let r=tj(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&(0,tD.m)(r.value.charAt(0)))}function tW(e,t,n){let r=tj(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function tV(e,t,n){let r=tj(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}let tQ=tG({body:function(e){let t=tj(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&(0,tD.m)(t.value.charAt(0)))&&("element"!==t.type||"meta"!==t.tagName&&"link"!==t.tagName&&"script"!==t.tagName&&"style"!==t.tagName&&"template"!==t.tagName)},colgroup:function(e,t,n){let r=tz(n,t),i=tj(e,-1,!0);return!(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&tU(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"col"===i.tagName)},head:function(e){let t=new Set;for(let n of e.children)if("element"===n.type&&("base"===n.tagName||"title"===n.tagName)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||"element"===n.type},html:function(e){let t=tj(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){let r=tz(n,t),i=tj(e,-1);return!(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&tU(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"tr"===i.tagName)}}),tZ={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>`".split("")],["\0 \n\f\r \"&'/<=>".split(""),"\0 \n\f\r \"&'/<=>`".split("")]],unquoted:[[" \n\f\r &>".split(""),"\0 \n\f\r \"&'<=>`".split("")],["\0 \n\f\r \"&'<=>`".split(""),"\0 \n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},tX=["<","&"];function tJ(e,t,n,r){return n&&"element"===n.type&&("script"===n.tagName||"style"===n.tagName)?e.value:tP(e.value,Object.assign({},r.settings.characterReferences,{subset:tX}))}let tK=(0,tf.A)("type",{invalid:function(e){throw Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"<?"+tP(e.value,Object.assign({},r.settings.characterReferences,{subset:tI}))+">":"\x3c!--"+e.value.replace(tT,function(e){return tP(e,Object.assign({},r.settings.characterReferences,{subset:tL}))})+"--\x3e"},doctype:function(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,r){let i,a=r.schema,l="svg"!==a.space&&r.settings.omitOptionalTags,o="svg"===a.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),s=[];"html"===a.space&&"svg"===e.tagName&&(r.schema=tp.JW);let u=function(e,t){let n,r=[],i=-1;if(t){for(n in t)if(null!==t[n]&&void 0!==t[n]){let i=function(e,t,n){let r,i=(0,t$.I)(e.schema,t),a=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,l=+!e.settings.allowDangerousCharacters,o=e.quote;if(i.overloadedBoolean&&(n===i.attribute||""===n)?n=!0:(i.boolean||i.overloadedBoolean)&&("string"!=typeof n||n===i.attribute||""===n)&&(n=!!n),null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";let s=tP(i.attribute,Object.assign({},e.settings.characterReferences,{subset:tZ.name[a][l]}));return!0===n||(n=Array.isArray(n)?(i.commaSeparated?tM.A:tO.A)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?s:(e.settings.preferUnquoted&&(r=tP(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:tZ.unquoted[a][l]}))),r!==n&&(e.settings.quoteSmart&&(0,tR.D)(n,o)>(0,tR.D)(n,e.alternative)&&(o=e.alternative),r=o+tP(n,Object.assign({},e.settings.characterReferences,{subset:("'"===o?tZ.single:tZ.double)[a][l],attribute:!0}))+o),s+(r?"="+r:r))}(e,n,t[n]);i&&r.push(i)}}for(;++i<r.length;){let t=e.settings.tightAttributes?r[i].charAt(r[i].length-1):void 0;i!==r.length-1&&'"'!==t&&"'"!==t&&(r[i]+=" ")}return r.join("")}(r,e.properties),c=r.all("html"===a.space&&"template"===e.tagName?e.content:e);return r.schema=a,c&&(o=!1),!u&&l&&tQ(e,t,n)||(s.push("<",e.tagName,u?" "+u:""),o&&("svg"===a.space||r.settings.closeSelfClosing)&&(i=u.charAt(u.length-1),(!r.settings.tightSelfClosing||"/"===i||i&&'"'!==i&&"'"!==i)&&s.push(" "),s.push("/")),s.push(">")),s.push(c),o||l&&tU(e,t,n)||s.push("</"+e.tagName+">"),s.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:tJ(e,t,n,r)},root:function(e,t,n,r){return r.all(e)},text:tJ}}),tY={},t0={},t1=[];function t2(e,t,n){return tK(e,t,n,this)}function t4(e){let t=[],n=e&&e.children||t1,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function t3(e,t){let n="string"==typeof e?{}:{...e.colorReplacements},r="string"==typeof e?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))"string"==typeof i?n[e]=i:e===r&&Object.assign(n,i);return n}function t5(e,t){return e&&t?.[e?.toLowerCase()]||e}async function t9(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function t8(e){return!e||["plaintext","txt","text","plain"].includes(e)}function t6(e){return"ansi"===e||t8(e)}function t7(e){return"none"===e}function ne(e,t){if(!t)return e;for(let n of(e.properties||={},e.properties.class||=[],"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]),Array.isArray(t)?t:t.split(/\s+/g)))n&&!e.properties.class.includes(n)&&e.properties.class.push(n);return e}function nt(e,t=!1){let n=e.split(/(\r?\n)/g),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||""):n[e];i.push([a,r]),r+=n[e].length,r+=n[e+1]?.length||0}return i}let nn="light-dark()",nr=["color","background-color"];function ni(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&ew.Italic&&(t["font-style"]="italic"),e.fontStyle&ew.Bold&&(t["font-weight"]="bold");let n=[];e.fontStyle&ew.Underline&&n.push("underline"),e.fontStyle&ew.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function na(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}let nl=new WeakMap;function no(e,t){nl.set(e,t)}function ns(e){return nl.get(e)}class nu{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new nu(Object.fromEntries((Array.isArray(t)?t:[t]).map(e=>[e,td])),e)}constructor(...e){if(2===e.length){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){var t=this._stacks[e];let n=[],r=new Set;return!function e(t){if(r.has(t))return;r.add(t);let i=t?.nameScopesList?.scopeName;i&&n.push(i),t.parent&&e(t.parent)}(t),n}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}let nc=[function(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=function(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new eu(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...r.indexToPos(e),offset:e}}{let t=r.lines[e.line];if(void 0===t)throw new eu(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${r.lines.length}`);let n=e.character;if(n<0&&(n=t.length+n),n<0||n>t.length)throw new eu(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:n,offset:r.posToIndex(e.line,n)}}},r=function(e){let t=nt(e,!0).map(([e])=>e);return{lines:t,indexToPos:function(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let r=n,i=0;for(let e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}},posToIndex:function(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+n}}}(t.source),i=(t.options.decorations||[]).map(e=>({...e,start:n(e.start),end:n(e.end)}));(function(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new eu(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,l=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,o=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(i||a||l||o){if(i&&a||l&&o||l&&n.start.offset===n.end.offset||a&&t.start.offset===t.end.offset)continue;throw new eu(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}})(i),e.set(t.meta,{decorations:i,converter:r,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){if(this.options.decorations?.length){var n=e,r=t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]);let i=Array.from(r instanceof Set?r:new Set(r)).sort((e,t)=>e-t);return i.length?n.map(e=>e.flatMap(e=>{let t=i.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);if(!t.length)return e;let n=0,r=[];for(let i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r})):n}},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(r.length!==n.converter.lines.length)throw new eu(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let l=r[e],o="",s=-1,u=-1;if(0===t&&(s=0),0===n&&(u=0),n===1/0&&(u=l.children.length),-1===s||-1===u)for(let e=0;e<l.children.length;e++)o+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(l.children[e]),-1===s&&o.length===t&&(s=e+1),-1===u&&o.length===n&&(u=e+1);if(-1===s)throw new eu(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(-1===u)throw new eu(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let c=l.children.slice(s,u);if(i.alwaysWrap||c.length!==l.children.length)if(i.alwaysWrap||1!==c.length||"element"!==c[0].type){let e={type:"element",tagName:"span",properties:{},children:c};a(e,i,"wrapper"),l.children.splice(s,c.length,e)}else a(c[0],i,"token");else a(l,i,"line")}function a(e,t,n){let r=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&ne(e,t.properties.class),e=i(e,n)||e}let l=[];for(let e of n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset)){let{start:t,end:n}=e;if(t.line===n.line)i(t.line,t.character,n.character,e);else if(t.line<n.line){i(t.line,t.character,1/0,e);for(let i=t.line+1;i<n.line;i++)l.unshift(()=>{var t;r[t=i]=a(r[t],e,"line")});i(n.line,0,n.character,e)}}l.forEach(e=>e())}}}()];function nd(e){let t=function(e){let t=[],n=[],r=[];for(let i of e)switch(i.enforce){case"pre":t.push(i);break;case"post":n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...nc]}var nh=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],np={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function nf(e){let t=e.shift();if("2"===t){let t=e.splice(0,3).map(e=>Number.parseInt(e));if(3!==t.length||t.some(e=>Number.isNaN(e)))return;return{type:"rgb",rgb:t}}if("5"===t){let t=e.shift();if(t)return{type:"table",index:Number(t)}}}var nm={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function ng(e,t,n={}){let{lang:r="text",theme:i=e.getLoadedThemes()[0]}=n;if(t8(r)||t7(i))return nt(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:a,colorMap:l}=e.setTheme(i);if("ansi"===r)return function(e,t,n){let r,i,a,l=t3(e,n),o=nt(t),s=function(e=nm){let t;function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}return{value:function(r){switch(r.type){case"named":return e[r.name];case"rgb":return n(r.rgb);case"table":var i;return i=r.index,function(){if(t)return t;t=[];for(let n=0;n<nh.length;n++)t.push(e[nh[n]]);let r=[0,95,135,175,215,255];for(let e=0;e<6;e++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)t.push(n([r[e],r[i],r[a]]));let i=8;for(let e=0;e<24;e++,i+=10)t.push(n([i,i,i]));return t}()[i]}}}}(Object.fromEntries(nh.map(t=>[t,e.colors?.[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]]))),u=(r=null,i=null,a=new Set,{parse(e){let t=[],n=0;do{let l=function(e,t){let n=e.indexOf("\x1b",t);if(-1!==n&&"["===e[n+1]){let t=e.indexOf("m",n);if(-1!==t)return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}(e,n),o=l.sequence?e.substring(n,l.startPosition):e.substring(n);if(o.length>0&&t.push({value:o,foreground:r,background:i,decorations:new Set(a)}),l.sequence){let e=function(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r))if(0===r)t.push({type:"resetAll"});else if(r<=9)np[r]&&t.push({type:"setDecoration",value:np[r]});else if(r<=29){let e=np[r-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:nh[r-30]}});else if(38===r){let n=nf(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===r)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:nh[r-40]}});else if(48===r){let n=nf(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===r?t.push({type:"resetBackgroundColor"}):53===r?t.push({type:"setDecoration",value:"overline"}):55===r?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:nh[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:nh[r-100+8]}})}return t}(l.sequence);for(let t of e)"resetAll"===t.type?(r=null,i=null,a.clear()):"resetForegroundColor"===t.type?r=null:"resetBackgroundColor"===t.type?i=null:"resetDecoration"===t.type&&a.delete(t.value);for(let t of e)"setForegroundColor"===t.type?r=t.value:"setBackgroundColor"===t.type?i=t.value:"setDecoration"===t.type&&a.add(t.value)}n=l.position}while(n<e.length);return t}});return o.map(t=>u.parse(t[0]).map(n=>{let r,i;n.decorations.has("reverse")?(r=n.background?s.value(n.background):e.bg,i=n.foreground?s.value(n.foreground):e.fg):(r=n.foreground?s.value(n.foreground):e.fg,i=n.background?s.value(n.background):void 0),r=t5(r,l),i=t5(i,l),n.decorations.has("dim")&&(r=function(e){let t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){let e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}else if(t[2])return`#${t[1]}${t[2]}80`;else return`#${Array.from(t[1]).map(e=>`${e}${e}`).join("")}80`;let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(r));let a=ew.None;return n.decorations.has("bold")&&(a|=ew.Bold),n.decorations.has("italic")&&(a|=ew.Italic),n.decorations.has("underline")&&(a|=ew.Underline),n.decorations.has("strikethrough")&&(a|=ew.Strikethrough),{content:n.value,offset:t[1],color:r,bgColor:i,fontStyle:a}}))}(a,t,n);let o=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==o.name)throw new eu(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);if(!n.grammarState.themes.includes(a.name))throw new eu(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${a.name}"`)}var s=t,u=o,c=a,d=l,h=n;let p=ny(s,u,c,d,h),f=new nu(ny(s,u,c,d,h).stateStack,u.name,c.name);return no(p.tokens,f),p.tokens}function ny(e,t,n,r,i){let a=t3(n,i),{tokenizeMaxLineLength:l=0,tokenizeTimeLimit:o=500}=i,s=nt(e),u=i.grammarState?function(e,t){if(!(e instanceof nu))throw new eu("Invalid grammar state");return e.getInternalStack(t)}(i.grammarState,n.name)??td:null!=i.grammarContextCode?ny(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:td,c=[],d=[];for(let e=0,h=s.length;e<h;e++){let h,p,[f,m]=s[e];if(""===f){c=[],d.push([]);continue}if(l>0&&f.length>=l){c=[],d.push([{content:f,offset:m,color:"",fontStyle:0}]);continue}i.includeExplanation&&(h=t.tokenizeLine(f,u,o).tokens,p=0);let g=t.tokenizeLine2(f,u,o),y=g.tokens.length/2;for(let e=0;e<y;e++){let t=g.tokens[2*e],l=e+1<y?g.tokens[2*e+2]:f.length;if(t===l)continue;let o=g.tokens[2*e+1],s=t5(r[eE.getForeground(o)],a),u=eE.getFontStyle(o),d={content:f.substring(t,l),offset:m+t,color:s,fontStyle:u};if(i.includeExplanation){let e=[];if("scopeName"!==i.includeExplanation)for(let t of n.settings){let n;switch(typeof t.scope){case"string":n=t.scope.split(/,/).map(e=>e.trim());break;case"object":n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}d.explanation=[];let r=0;for(;t+r<l;){let t=h[p],n=f.substring(t.startIndex,t.endIndex);r+=n.length,d.explanation.push({content:n,scopes:"scopeName"===i.includeExplanation?t.scopes.map(e=>({scopeName:e})):function(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:function(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(function(e,t,n){if(!nb(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)nb(e[r],n[i])&&(r-=1),i-=1;return -1===r}(e,t,n)){r.push(a);break}return r}(e,i,t.slice(0,r))}}return n}(e,t.scopes)}),p+=1}}c.push(d)}d.push(c),c=[],u=g.ruleStack}return{tokens:d,stateStack:u}}function nb(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function nk(e,t,n){let r=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),i=r.map(r=>{let i=ng(e,t,{...n,theme:r.theme}),a=ns(i);return{tokens:i,state:a,theme:"string"==typeof r.theme?r.theme:r.theme.name}}),a=function(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let l=i.map(()=>0),o=i.map(e=>e[0]);for(;o.every(e=>e);){let e=Math.min(...o.map(e=>e.content.length));for(let t=0;t<n;t++){let n=o[t];n.content.length===e?(a[t].push(n),l[t]+=1,o[t]=i[t][l[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),o[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}(...i.map(e=>e.tokens)),l=a[0].map((e,t)=>e.map((e,i)=>{let l={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in n&&n.includeExplanation&&(l.explanation=e.explanation),a.forEach((e,n)=>{let{content:a,explanation:o,offset:s,...u}=e[t][i];l.variants[r[n].color]=u}),l})),o=i[0].state?new nu(Object.fromEntries(i.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),i[0].state.lang):void 0;return o&&no(l,o),l}function nx(e,t,n){let r,i,a,l,o,s;if("themes"in n){let{defaultColor:u="light",cssVariablePrefix:c="--shiki-",colorsRendering:d="css-vars"}=n,h=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===u?-1:+(t.color===u));if(0===h.length)throw new eu("`themes` option must not be empty");let p=nk(e,t,n);if(s=ns(p),u&&nn!==u&&!h.find(e=>e.color===u))throw new eu(`\`themes\` option must contain the defaultColor key \`${u}\``);let f=h.map(t=>e.getTheme(t.theme)),m=h.map(e=>e.color);a=p.map(e=>e.map(e=>(function(e,t,n,r,i="css-vars"){let a={content:e.content,explanation:e.explanation,offset:e.offset},l=t.map(t=>ni(e.variants[t])),o=new Set(l.flatMap(e=>Object.keys(e))),s={},u=(e,r)=>{let i="color"===r?"":"background-color"===r?"-bg":`-${r}`;return n+t[e]+("color"===r?"":i)};return l.forEach((e,n)=>{for(let a of o){let o=e[a]||"inherit";if(0===n&&r&&nr.includes(a))if(r===nn&&l.length>1){let e=t.findIndex(e=>"light"===e),r=t.findIndex(e=>"dark"===e);if(-1===e||-1===r)throw new eu('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let c=l[e][a]||"inherit",d=l[r][a]||"inherit";s[a]=`light-dark(${c}, ${d})`,"css-vars"===i&&(s[u(n,a)]=o)}else s[a]=o;else"css-vars"===i&&(s[u(n,a)]=o)}}),a.htmlStyle=s,a})(e,m,c,u,d))),s&&no(a,s);let g=h.map(e=>t3(e.theme,n));i=nv(h,f,g,c,u,"fg",d),r=nv(h,f,g,c,u,"bg",d),l=`shiki-themes ${f.map(e=>e.name).join(" ")}`,o=u?void 0:[i,r].join(";")}else if("theme"in n){let o=t3(n.theme,n);a=ng(e,t,n);let u=e.getTheme(n.theme);r=t5(u.bg,o),i=t5(u.fg,o),l=u.name,s=ns(a)}else throw new eu("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:l,rootStyle:o,grammarState:s}}function nv(e,t,n,r,i,a,l){return e.map((o,s)=>{let u=t5(t[s][a],n[s])||"inherit",c=`${r+o.color}${"bg"===a?"-bg":""}:${u}`;if(0===s&&i){if(i===nn&&e.length>1){let r=e.findIndex(e=>"light"===e.color),i=e.findIndex(e=>"dark"===e.color);if(-1===r||-1===i)throw new eu('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let l=t5(t[r][a],n[r])||"inherit",o=t5(t[i][a],n[i])||"inherit";return`light-dark(${l}, ${o});${c}`}return u}return"css-vars"===l?c:null}).filter(e=>!!e).join(";")}function nw(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>nw(e,t,n),codeToTokens:(t,n)=>nx(e,t,n)}){let i=t;for(let e of nd(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:l,bg:o,themeName:s,rootStyle:u,grammarState:c}=nx(e,i,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:h=!1}=n;!0===d?a=a.map(e=>{let t=[],n="",r=0;return e.forEach((i,a)=>{let l=!(i.fontStyle&&(i.fontStyle&ew.Underline||i.fontStyle&ew.Strikethrough));l&&i.content.match(/^\s+$/)&&e[a+1]?(r||(r=i.offset),n+=i.content):n?(l?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r},i),r=0,n=""):t.push(i)}),t}):"never"===d&&(a=a.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))),h&&(a=a.map(e=>{let t=[];for(let n of e){if(0===t.length){t.push({...n});continue}let e=t[t.length-1],r=na(e.htmlStyle||ni(e)),i=na(n.htmlStyle||ni(n)),a=e.fontStyle&&(e.fontStyle&ew.Underline||e.fontStyle&ew.Strikethrough),l=n.fontStyle&&(n.fontStyle&ew.Underline||n.fontStyle&ew.Strikethrough);a||l||r!==i?t.push({...n}):e.content+=n.content}return t}));let p={...r,get source(){return i}};for(let e of nd(n))a=e.tokens?.call(p,a)||a;return function(e,t,n,r=ns(e)){let i=nd(t),a=[],l={type:"root",children:[]},{structure:o="classic",tabindex:s="0"}=t,u={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...!1!==s&&null!=s?{tabindex:s.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([e])=>!e.startsWith("_")))},children:[]},c={type:"element",tagName:"code",properties:{},children:a},d=[],h={...n,structure:o,addClassToHast:ne,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return l},get pre(){return u},get code(){return c},get lines(){return d}};if(e.forEach((e,t)=>{t&&("inline"===o?l.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===o&&a.push({type:"text",value:"\n"}));let n={type:"element",tagName:"span",properties:{class:"line"},children:[]},r=0;for(let a of e){let e={type:"element",tagName:"span",properties:{...a.htmlAttrs},children:[{type:"text",value:a.content}]},s=na(a.htmlStyle||ni(a));for(let l of(s&&(e.properties.style=s),i))e=l?.span?.call(h,e,t+1,r,n,a)||e;"inline"===o?l.children.push(e):"classic"===o&&n.children.push(e),r+=a.content.length}if("classic"===o){for(let e of i)n=e?.line?.call(h,n,t+1)||n;d.push(n),a.push(n)}}),"classic"===o){for(let e of i)c=e?.code?.call(h,c)||c;for(let e of(u.children.push(c),i))u=e?.pre?.call(h,u)||u;l.children.push(u)}let p=l;for(let e of i)p=e?.root?.call(h,p)||p;return r&&no(p,r),p}(a,{...n,fg:l,bg:o,themeName:s,rootStyle:u},p,c)}let nS=function(e,t){let n=t||tY,r=n.quote||'"';if('"'!==r&&"'"!==r)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return({one:t2,all:t4,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||th.b,characterReferences:n.characterReferences||t0,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?tp.JW:tp.qy,quote:r,alternative:'"'===r?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)},nC={light:"#333333",dark:"#bbbbbb"},n_={light:"#fffffe",dark:"#1e1e1e"},nA="__shiki_resolved";function nE(e){if(e?.[nA])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r="light"===t.type?nC.light:nC.dark),n||(n="light"===t.type?n_.light:n_.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function l(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?l(e):(a.set(e,n),n)}for(let e of(t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),r=e.settings?.background&&!e.settings.background.startsWith("#");if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=l(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=l(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let n=l(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,nA,{enumerable:!1,writable:!1,value:!0}),t}async function nN(e){return Array.from(new Set((await Promise.all(e.filter(e=>!t6(e)).map(async e=>await t9(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function nP(e){return(await Promise.all(e.map(async e=>t7(e)?null:nE(await t9(e))))).filter(e=>!!e)}class nT extends Error{constructor(e){super(e),this.name="ShikiError"}}class nI extends tc{constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=nE(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=eb.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){if(this._alias[e]){let t=new Set([e]);for(;this._alias[e];){if(e=this._alias[e],t.has(e))throw new nT(`Circular alias \`${Array.from(t).join(" -> ")} -> ${e}\``);t.add(e)}}return this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>t&&t.embeddedLangs?.some(e=>n.map(([e])=>e).includes(e))).filter(e=>!n.includes(e));throw new nT(`Missing languages ${n.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){if(this._langMap.set(e.name,e),this._langGraph.set(e.name,e),e.embeddedLangs)for(let t of e.embeddedLangs)this._langGraph.set(t,this._langMap.get(t))}}class nL{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(".");n=[...n,...this._injections.get(r)||[]]}return n}}let nR=0;async function nM(e){e.engine||function(e,t=3){if(!(t>3))if(1)console.trace(`[SHIKI DEPRECATE]: ${e}`);else throw Error(`[SHIKI DEPRECATE]: ${e}`)}("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([nP(e.themes||[]),nN(e.langs||[]),e.engine]);return function(e){let t;nR+=1,!1!==e.warnings&&nR>=10&&nR%10==0&&console.warn(`[Shiki] ${nR} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let n=!1;if(!e.engine)throw new nT("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(nE),a=new nI(new nL(e.engine,r),i,r,e.langAlias);function l(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};u();let t=a.getTheme(e);if(!t)throw new nT(`Theme \`${e}\` not found, you may need to load it first`);return t}function o(...e){u(),a.loadLanguages(e.flat(1))}function s(...e){for(let t of(u(),e.flat(1)))a.loadTheme(t)}function u(){if(n)throw new nT("Shiki instance has been disposed")}function c(){n||(n=!0,a.dispose(),nR-=1)}return{setTheme:function(e){u();let n=l(e);return t!==e&&(a.setTheme(n),t=e),{theme:n,colorMap:a.getColorMap()}},getTheme:l,getLanguage:function(e){u();let t=a.getGrammar("string"==typeof e?e:e.name);if(!t)throw new nT(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return u(),a.getLoadedThemes()},getLoadedLanguages:function(){return u(),a.getLoadedLanguages()},loadLanguage:async function(...e){return o(await nN(e))},loadLanguageSync:o,loadTheme:async function(...e){return u(),s(await nP(e))},loadThemeSync:s,dispose:c,[Symbol.dispose]:c}}({...e,themes:t,langs:n,engine:r})}async function n$(e){let t=await nM(e);return{getLastGrammarState:(...e)=>(function(...e){if(2===e.length)return ns(e[1]);let[t,n,r={}]=e,{lang:i="text",theme:a=t.getLoadedThemes()[0]}=r;if(t8(i)||t7(a))throw new eu("Plain language does not have grammar state");if("ansi"===i)throw new eu("ANSI language does not have grammar state");let{theme:l,colorMap:o}=t.setTheme(a),s=t.getLanguage(i);return new nu(ny(n,s,l,o,r).stateStack,s.name,l.name)})(t,...e),codeToTokensBase:(e,n)=>ng(t,e,n),codeToTokensWithThemes:(e,n)=>nk(t,e,n),codeToTokens:(e,n)=>nx(t,e,n),codeToHast:(e,n)=>nw(t,e,n),codeToHtml:(e,n)=>(function(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>nw(e,t,n),codeToTokens:(t,n)=>nx(e,t,n)},i=nS(nw(e,t,n,r));for(let e of nd(n))i=e.postprocess?.call(r,i,n)||i;return i})(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}let nO=[{id:"abap",name:"ABAP",import:()=>n.e(2776).then(n.bind(n,22776))},{id:"actionscript-3",name:"ActionScript",import:()=>n.e(1269).then(n.bind(n,21269))},{id:"ada",name:"Ada",import:()=>n.e(9640).then(n.bind(n,19640))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.all([n.e(3098),n.e(7925),n.e(8149),n.e(9574)]).then(n.bind(n,19574))},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.all([n.e(3098),n.e(7165),n.e(7925),n.e(8149),n.e(3434),n.e(1422)]).then(n.bind(n,19586))},{id:"apache",name:"Apache Conf",import:()=>n.e(6384).then(n.bind(n,66384))},{id:"apex",name:"Apex",import:()=>n.e(3810).then(n.bind(n,73810))},{id:"apl",name:"APL",import:()=>Promise.all([n.e(3098),n.e(7925),n.e(8149),n.e(1534),n.e(7585)]).then(n.bind(n,77585))},{id:"applescript",name:"AppleScript",import:()=>n.e(1965).then(n.bind(n,1965))},{id:"ara",name:"Ara",import:()=>n.e(82).then(n.bind(n,40082))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>n.e(7443).then(n.bind(n,59824))},{id:"asm",name:"Assembly",import:()=>n.e(8213).then(n.bind(n,98213))},{id:"astro",name:"Astro",import:()=>Promise.all([n.e(3098),n.e(7117),n.e(5280),n.e(7925),n.e(7649)]).then(n.bind(n,27649))},{id:"awk",name:"AWK",import:()=>n.e(8367).then(n.bind(n,18367))},{id:"ballerina",name:"Ballerina",import:()=>n.e(1292).then(n.bind(n,31292))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>n.e(3029).then(n.bind(n,33029))},{id:"beancount",name:"Beancount",import:()=>n.e(7835).then(n.bind(n,47835))},{id:"berry",name:"Berry",aliases:["be"],import:()=>n.e(672).then(n.bind(n,672))},{id:"bibtex",name:"BibTeX",import:()=>n.e(6728).then(n.bind(n,46728))},{id:"bicep",name:"Bicep",import:()=>n.e(1417).then(n.bind(n,81417))},{id:"blade",name:"Blade",import:()=>Promise.all([n.e(3098),n.e(7925),n.e(8149),n.e(1534),n.e(4608),n.e(5042)]).then(n.bind(n,5042))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>n.e(9955).then(n.bind(n,9955))},{id:"c",name:"C",import:()=>n.e(8255).then(n.bind(n,28255))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>n.e(9801).then(n.bind(n,79801))},{id:"cairo",name:"Cairo",import:()=>Promise.all([n.e(5424),n.e(3548)]).then(n.bind(n,83548))},{id:"clarity",name:"Clarity",import:()=>n.e(3932).then(n.bind(n,53932))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>n.e(1208).then(n.bind(n,41208))},{id:"cmake",name:"CMake",import:()=>n.e(3641).then(n.bind(n,53641))},{id:"cobol",name:"COBOL",import:()=>Promise.all([n.e(3098),n.e(7925),n.e(8149),n.e(1534),n.e(1677)]).then(n.bind(n,51677))},{id:"codeowners",name:"CODEOWNERS",import:()=>n.e(449).then(n.bind(n,40449))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>n.e(5690).then(n.bind(n,75690))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.all([n.e(3098),n.e(8858)]).then(n.bind(n,86477))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>n.e(6552).then(n.bind(n,96552))},{id:"coq",name:"Coq",import:()=>n.e(339).then(n.bind(n,10339))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.all([n.e(4488),n.e(1700),n.e(4608),n.e(8255),n.e(4462)]).then(n.bind(n,56831))},{id:"crystal",name:"Crystal",import:()=>Promise.all([n.e(3098),n.e(7925),n.e(8149),n.e(4608),n.e(8255),n.e(5055),n.e(1906)]).then(n.bind(n,41906))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>n.e(4691).then(n.bind(n,84691))},{id:"css",name:"CSS",import:()=>n.e(7925).then(n.bind(n,47925))},{id:"csv",name:"CSV",import:()=>n.e(7632).then(n.bind(n,37632))},{id:"cue",name:"CUE",import:()=>n.e(8597).then(n.bind(n,88597))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>n.e(9655).then(n.bind(n,69655))},{id:"d",name:"D",import:()=>n.e(3560).then(n.bind(n,33560))},{id:"dart",name:"Dart",import:()=>n.e(6609).then(n.bind(n,76609))},{id:"dax",name:"DAX",import:()=>n.e(7579).then(n.bind(n,47579))},{id:"desktop",name:"Desktop",import:()=>n.e(5140).then(n.bind(n,25140))},{id:"diff",name:"Diff",import:()=>n.e(703).then(n.bind(n,60703))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>n.e(4534).then(n.bind(n,84534))},{id:"dotenv",name:"dotEnv",import:()=>n.e(6924).then(n.bind(n,96924))},{id:"dream-maker",name:"Dream Maker",import:()=>n.e(3730).then(n.bind(n,33730))},{id:"edge",name:"Edge",import:()=>Promise.all([n.e(3098),n.e(7117),n.e(7925),n.e(8149),n.e(9293)]).then(n.bind(n,9293))},{id:"elixir",name:"Elixir",import:()=>Promise.all([n.e(3098),n.e(7925),n.e(8149),n.e(9155)]).then(n.bind(n,9155))},{id:"elm",name:"Elm",import:()=>Promise.all([n.e(8255),n.e(9400)]).then(n.bind(n,99400))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>n.e(6451).then(n.bind(n,72328))},{id:"erb",name:"ERB",import:()=>Promise.all([n.e(3098),n.e(7117),n.e(5280),n.e(4280),n.e(4488),n.e(1700),n.e(7925),n.e(8149),n.e(1534),n.e(4608),n.e(8255),n.e(5055),n.e(4907),n.e(3545),n.e(549)]).then(n.bind(n,70549))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>Promise.all([n.e(2069),n.e(2203)]).then(n.bind(n,2203))},{id:"fennel",name:"Fennel",import:()=>n.e(3774).then(n.bind(n,23774))},{id:"fish",name:"Fish",import:()=>n.e(7508).then(n.bind(n,67508))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>n.e(7540).then(n.bind(n,5159))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.all([n.e(8368),n.e(2559)]).then(n.bind(n,74940))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>n.e(8368).then(n.bind(n,8368))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.all([n.e(2069),n.e(8e3)]).then(n.bind(n,48e3))},{id:"gdresource",name:"GDResource",import:()=>n.e(3035).then(n.bind(n,73035))},{id:"gdscript",name:"GDScript",import:()=>n.e(798).then(n.bind(n,58417))},{id:"gdshader",name:"GDShader",import:()=>n.e(8468).then(n.bind(n,28468))},{id:"genie",name:"Genie",import:()=>n.e(2064).then(n.bind(n,52064))},{id:"gherkin",name:"Gherkin",import:()=>n.e(9154).then(n.bind(n,9154))},{id:"git-commit",name:"Git Commit Message",import:()=>n.e(1508).then(n.bind(n,11508))},{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.all([n.e(5055),n.e(4967)]).then(n.bind(n,14967))},{id:"gleam",name:"Gleam",import:()=>n.e(2272).then(n.bind(n,22272))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.all([n.e(3098),n.e(7117),n.e(7925),n.e(8149),n.e(8797)]).then(n.bind(n,78797))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.all([n.e(3098),n.e(7117),n.e(7925),n.e(8149),n.e(1123)]).then(n.bind(n,11123))},{id:"glsl",name:"GLSL",import:()=>Promise.all([n.e(8255),n.e(7674)]).then(n.bind(n,17674))},{id:"gnuplot",name:"Gnuplot",import:()=>n.e(85).then(n.bind(n,20085))},{id:"go",name:"Go",import:()=>n.e(5572).then(n.bind(n,45572))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.all([n.e(3098),n.e(7117),n.e(5280),n.e(4280),n.e(4907)]).then(n.bind(n,74907))},{id:"groovy",name:"Groovy",import:()=>n.e(4940).then(n.bind(n,4940))},{id:"hack",name:"Hack",import:()=>Promise.all([n.e(3098),n.e(7925),n.e(8149),n.e(4608),n.e(8981)]).then(n.bind(n,38981))},{id:"haml",name:"Ruby Haml",import:()=>Promise.all([n.e(3098),n.e(7925),n.e(6748)]).then(n.bind(n,4367))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.all([n.e(3098),n.e(7925),n.e(8149),n.e(2822)]).then(n.bind(n,92822))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>n.e(3588).then(n.bind(n,83588))},{id:"haxe",name:"Haxe",import:()=>n.e(8194).then(n.bind(n,68194))},{id:"hcl",name:"HashiCorp HCL",import:()=>n.e(5133).then(n.bind(n,95133))},{id:"hjson",name:"Hjson",import:()=>n.e(2010).then(n.bind(n,92010))},{id:"hlsl",name:"HLSL",import:()=>n.e(6916).then(n.bind(n,54535))},{id:"html",name:"HTML",import:()=>Promise.all([n.e(3098),n.e(7925),n.e(8149)]).then(n.bind(n,8149))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.all([n.e(3098),n.e(7925),n.e(8149),n.e(2715)]).then(n.bind(n,92715))},{id:"http",name:"HTTP",import:()=>Promise.all([n.e(3098),n.e(7117),n.e(5280),n.e(4280),n.e(1534),n.e(5055),n.e(4907),n.e(3694)]).then(n.bind(n,43694))},{id:"hxml",name:"HXML",import:()=>n.e(7377).then(n.bind(n,97377))},{id:"hy",name:"Hy",import:()=>n.e(895).then(n.bind(n,10895))},{id:"imba",name:"Imba",import:()=>n.e(5423).then(n.bind(n,85423))},{id:"ini",name:"INI",aliases:["properties"],import:()=>n.e(5766).then(n.bind(n,35766))},{id:"java",name:"Java",import:()=>n.e(1534).then(n.bind(n,51534))},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>n.e(3098).then(n.bind(n,79403))},{id:"jinja",name:"Jinja",import:()=>Promise.all([n.e(3098),n.e(7925),n.e(8149),n.e(5589)]).then(n.bind(n,35589))},{id:"jison",name:"Jison",import:()=>Promise.all([n.e(3098),n.e(809)]).then(n.bind(n,60809))},{id:"json",name:"JSON",import:()=>n.e(7612).then(n.bind(n,7612))},{id:"json5",name:"JSON5",import:()=>n.e(7819).then(n.bind(n,67819))},{id:"jsonc",name:"JSON with Comments",import:()=>n.e(3965).then(n.bind(n,33965))},{id:"jsonl",name:"JSON Lines",import:()=>n.e(6218).then(n.bind(n,16218))},{id:"jsonnet",name:"Jsonnet",import:()=>n.e(5283).then(n.bind(n,45283))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>n.e(1867).then(n.bind(n,81867))},{id:"jsx",name:"JSX",import:()=>n.e(4280).then(n.bind(n,35567))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.all([n.e(3098),n.e(4488),n.e(1700),n.e(4608),n.e(8255),n.e(5424),n.e(1750),n.e(206)]).then(n.bind(n,32095))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>n.e(1397).then(n.bind(n,11397))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>n.e(7384).then(n.bind(n,67384))},{id:"latex",name:"LaTeX",import:()=>Promise.all([n.e(1750),n.e(5432)]).then(n.bind(n,95432))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>n.e(6234).then(n.bind(n,46234))},{id:"less",name:"Less",import:()=>n.e(6133).then(n.bind(n,36133))},{id:"liquid",name:"Liquid",import:()=>Promise.all([n.e(3098),n.e(7925),n.e(8149),n.e(6542)]).then(n.bind(n,6542))},{id:"llvm",name:"LLVM IR",import:()=>n.e(9717).then(n.bind(n,79717))},{id:"log",name:"Log file",import:()=>n.e(7678).then(n.bind(n,57678))},{id:"logo",name:"Logo",import:()=>n.e(4115).then(n.bind(n,44115))},{id:"lua",name:"Lua",import:()=>Promise.all([n.e(8255),n.e(8062)]).then(n.bind(n,78062))},{id:"luau",name:"Luau",import:()=>n.e(5929).then(n.bind(n,5929))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>n.e(9660).then(n.bind(n,79660))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>n.e(2069).then(n.bind(n,2069))},{id:"marko",name:"Marko",import:()=>Promise.all([n.e(7117),n.e(7925),n.e(3434),n.e(6133),n.e(8606)]).then(n.bind(n,88606))},{id:"matlab",name:"MATLAB",import:()=>n.e(5221).then(n.bind(n,45221))},{id:"mdc",name:"MDC",import:()=>Promise.all([n.e(3098),n.e(7925),n.e(8149),n.e(2069),n.e(9198)]).then(n.bind(n,89198))},{id:"mdx",name:"MDX",import:()=>n.e(8109).then(n.bind(n,58109))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>n.e(2149).then(n.bind(n,62149))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>n.e(4986).then(n.bind(n,24986))},{id:"mojo",name:"Mojo",import:()=>n.e(4207).then(n.bind(n,44207))},{id:"move",name:"Move",import:()=>n.e(1681).then(n.bind(n,21681))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>n.e(5262).then(n.bind(n,15262))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>n.e(2141).then(n.bind(n,22141))},{id:"nginx",name:"Nginx",import:()=>Promise.all([n.e(8255),n.e(1240)]).then(n.bind(n,81240))},{id:"nim",name:"Nim",import:()=>Promise.all([n.e(3098),n.e(7925),n.e(8149),n.e(1534),n.e(8255),n.e(2069),n.e(9504)]).then(n.bind(n,9504))},{id:"nix",name:"Nix",import:()=>n.e(8661).then(n.bind(n,58661))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>n.e(5231).then(n.bind(n,75231))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>n.e(6453).then(n.bind(n,6453))},{id:"objective-cpp",name:"Objective-C++",import:()=>n.e(505).then(n.bind(n,92453))},{id:"ocaml",name:"OCaml",import:()=>n.e(864).then(n.bind(n,70864))},{id:"pascal",name:"Pascal",import:()=>n.e(4398).then(n.bind(n,74398))},{id:"perl",name:"Perl",import:()=>Promise.all([n.e(3098),n.e(7925),n.e(8149),n.e(1534),n.e(4608),n.e(8193)]).then(n.bind(n,48193))},{id:"php",name:"PHP",import:()=>Promise.all([n.e(3098),n.e(7925),n.e(8149),n.e(1534),n.e(4608),n.e(6364),n.e(6423)]).then(n.bind(n,16364))},{id:"plsql",name:"PL/SQL",import:()=>n.e(4844).then(n.bind(n,84844))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>n.e(7297).then(n.bind(n,57297))},{id:"polar",name:"Polar",import:()=>n.e(9916).then(n.bind(n,29916))},{id:"postcss",name:"PostCSS",import:()=>n.e(7023).then(n.bind(n,47023))},{id:"powerquery",name:"PowerQuery",import:()=>n.e(5759).then(n.bind(n,65759))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>n.e(2517).then(n.bind(n,2517))},{id:"prisma",name:"Prisma",import:()=>n.e(8010).then(n.bind(n,38010))},{id:"prolog",name:"Prolog",import:()=>n.e(8919).then(n.bind(n,38919))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>n.e(578).then(n.bind(n,80578))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.all([n.e(3098),n.e(7925),n.e(8149),n.e(6764)]).then(n.bind(n,46764))},{id:"puppet",name:"Puppet",import:()=>n.e(3056).then(n.bind(n,93056))},{id:"purescript",name:"PureScript",import:()=>n.e(2313).then(n.bind(n,42313))},{id:"python",name:"Python",aliases:["py"],import:()=>n.e(5424).then(n.bind(n,55424))},{id:"qml",name:"QML",import:()=>Promise.all([n.e(3098),n.e(8050)]).then(n.bind(n,58050))},{id:"qmldir",name:"QML Directory",import:()=>n.e(1997).then(n.bind(n,31997))},{id:"qss",name:"Qt Style Sheets",import:()=>n.e(2667).then(n.bind(n,2667))},{id:"r",name:"R",import:()=>n.e(1750).then(n.bind(n,21750))},{id:"racket",name:"Racket",import:()=>n.e(4720).then(n.bind(n,24720))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>n.e(7261).then(n.bind(n,17261))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.all([n.e(3098),n.e(7925),n.e(8149),n.e(4691),n.e(1588)]).then(n.bind(n,21588))},{id:"reg",name:"Windows Registry Script",import:()=>n.e(362).then(n.bind(n,70362))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>n.e(2173).then(n.bind(n,2173))},{id:"rel",name:"Rel",import:()=>n.e(7401).then(n.bind(n,47401))},{id:"riscv",name:"RISC-V",import:()=>n.e(989).then(n.bind(n,989))},{id:"rst",name:"reStructuredText",import:()=>Promise.all([n.e(3098),n.e(7117),n.e(5280),n.e(4280),n.e(4488),n.e(1700),n.e(7925),n.e(8149),n.e(1534),n.e(4608),n.e(8255),n.e(5055),n.e(4907),n.e(5424),n.e(3545),n.e(8555)]).then(n.bind(n,98555))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.all([n.e(3098),n.e(7117),n.e(5280),n.e(4280),n.e(4488),n.e(1700),n.e(7925),n.e(8149),n.e(1534),n.e(4608),n.e(8255),n.e(5055),n.e(4907),n.e(3545)]).then(n.bind(n,29262))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>n.e(7368).then(n.bind(n,17368))},{id:"sas",name:"SAS",import:()=>Promise.all([n.e(4608),n.e(8879)]).then(n.bind(n,28879))},{id:"sass",name:"Sass",import:()=>n.e(9844).then(n.bind(n,69844))},{id:"scala",name:"Scala",import:()=>n.e(3802).then(n.bind(n,53802))},{id:"scheme",name:"Scheme",import:()=>n.e(4071).then(n.bind(n,54071))},{id:"scss",name:"SCSS",import:()=>Promise.all([n.e(7925),n.e(3434)]).then(n.bind(n,13434))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>n.e(1001).then(n.bind(n,91001))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>n.e(3704).then(n.bind(n,63704))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>n.e(5055).then(n.bind(n,45055))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.all([n.e(5055),n.e(9852)]).then(n.bind(n,49852))},{id:"smalltalk",name:"Smalltalk",import:()=>n.e(2491).then(n.bind(n,52491))},{id:"solidity",name:"Solidity",import:()=>n.e(173).then(n.bind(n,30173))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.all([n.e(3098),n.e(7925),n.e(8149),n.e(5499)]).then(n.bind(n,55499))},{id:"sparql",name:"SPARQL",import:()=>n.e(7541).then(n.bind(n,87541))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>n.e(6715).then(n.bind(n,36715))},{id:"sql",name:"SQL",import:()=>n.e(4608).then(n.bind(n,54608))},{id:"ssh-config",name:"SSH Config",import:()=>n.e(1531).then(n.bind(n,21531))},{id:"stata",name:"Stata",import:()=>Promise.all([n.e(4608),n.e(8103)]).then(n.bind(n,88103))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>n.e(2448).then(n.bind(n,2448))},{id:"svelte",name:"Svelte",import:()=>Promise.all([n.e(3098),n.e(7117),n.e(7925),n.e(3063)]).then(n.bind(n,93063))},{id:"swift",name:"Swift",import:()=>n.e(1061).then(n.bind(n,1061))},{id:"system-verilog",name:"SystemVerilog",import:()=>n.e(376).then(n.bind(n,60376))},{id:"systemd",name:"Systemd Units",import:()=>n.e(5545).then(n.bind(n,25545))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>n.e(7685).then(n.bind(n,27685))},{id:"tasl",name:"Tasl",import:()=>n.e(8782).then(n.bind(n,8782))},{id:"tcl",name:"Tcl",import:()=>n.e(1385).then(n.bind(n,21385))},{id:"templ",name:"Templ",import:()=>Promise.all([n.e(3098),n.e(7925),n.e(5572),n.e(2446)]).then(n.bind(n,52446))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>n.e(5619).then(n.bind(n,75619))},{id:"tex",name:"TeX",import:()=>Promise.all([n.e(1750),n.e(2807)]).then(n.bind(n,22807))},{id:"toml",name:"TOML",import:()=>n.e(8290).then(n.bind(n,38290))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.all([n.e(3098),n.e(7117),n.e(7925),n.e(8149),n.e(1534),n.e(4608),n.e(8255),n.e(9971)]).then(n.bind(n,9971))},{id:"tsv",name:"TSV",import:()=>n.e(4371).then(n.bind(n,94371))},{id:"tsx",name:"TSX",import:()=>n.e(5280).then(n.bind(n,40205))},{id:"turtle",name:"Turtle",import:()=>n.e(9412).then(n.bind(n,19412))},{id:"twig",name:"Twig",import:()=>Promise.all([n.e(3098),n.e(7117),n.e(5280),n.e(4280),n.e(4488),n.e(1700),n.e(7925),n.e(8149),n.e(1534),n.e(4608),n.e(8255),n.e(5055),n.e(4907),n.e(5424),n.e(3434),n.e(3545),n.e(6364),n.e(5733)]).then(n.bind(n,25733))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>n.e(7117).then(n.bind(n,37331))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>n.e(1251).then(n.bind(n,41251))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>n.e(3662).then(n.bind(n,13662))},{id:"v",name:"V",import:()=>n.e(5890).then(n.bind(n,65890))},{id:"vala",name:"Vala",import:()=>n.e(8532).then(n.bind(n,68532))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>n.e(9362).then(n.bind(n,59362))},{id:"verilog",name:"Verilog",import:()=>n.e(2778).then(n.bind(n,92778))},{id:"vhdl",name:"VHDL",import:()=>n.e(5144).then(n.bind(n,75144))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>n.e(3766).then(n.bind(n,73766))},{id:"vue",name:"Vue",import:()=>Promise.all([n.e(3098),n.e(7117),n.e(7925),n.e(8149),n.e(2864)]).then(n.bind(n,2864))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.all([n.e(3098),n.e(7117),n.e(7925),n.e(8149),n.e(2864),n.e(9524)]).then(n.bind(n,99524))},{id:"vue-vine",name:"Vue Vine",import:()=>Promise.all([n.e(3098),n.e(7117),n.e(5429),n.e(7925),n.e(8149),n.e(3434),n.e(6133),n.e(2864),n.e(9742)]).then(n.bind(n,64107))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>n.e(3844).then(n.bind(n,21463))},{id:"wasm",name:"WebAssembly",import:()=>n.e(2686).then(n.bind(n,72686))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>n.e(8232).then(n.bind(n,98232))},{id:"wgsl",name:"WGSL",import:()=>n.e(4805).then(n.bind(n,14805))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>n.e(8076).then(n.bind(n,75695))},{id:"wit",name:"WebAssembly Interface Types",import:()=>n.e(996).then(n.bind(n,90996))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>n.e(3230).then(n.bind(n,67076))},{id:"xml",name:"XML",import:()=>Promise.all([n.e(1534),n.e(1661)]).then(n.bind(n,96423))},{id:"xsl",name:"XSL",import:()=>Promise.all([n.e(1534),n.e(1981)]).then(n.bind(n,61981))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>n.e(3347).then(n.bind(n,3347))},{id:"zenscript",name:"ZenScript",import:()=>n.e(458).then(n.bind(n,90458))},{id:"zig",name:"Zig",import:()=>n.e(1198).then(n.bind(n,91198))}],nD=Object.fromEntries(nO.map(e=>[e.id,e.import])),nj=Object.fromEntries(nO.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),nz={...nD,...nj},nF=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>n.e(5024).then(n.bind(n,55024))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>n.e(5943).then(n.bind(n,95943))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>n.e(6800).then(n.bind(n,86800))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xe9",type:"dark",import:()=>n.e(5695).then(n.bind(n,55695))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>n.e(4535).then(n.bind(n,34535))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>n.e(6228).then(n.bind(n,26228))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>n.e(4551).then(n.bind(n,94551))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>n.e(2211).then(n.bind(n,92211))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>n.e(9340).then(n.bind(n,69340))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>n.e(5195).then(n.bind(n,35195))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>n.e(5446).then(n.bind(n,95446))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>n.e(4880).then(n.bind(n,54880))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>n.e(8820).then(n.bind(n,78820))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>n.e(7908).then(n.bind(n,17908))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>n.e(7139).then(n.bind(n,77139))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>n.e(7460).then(n.bind(n,97460))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>n.e(7262).then(n.bind(n,97262))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>n.e(5234).then(n.bind(n,15234))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>n.e(1313).then(n.bind(n,23694))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>n.e(8934).then(n.bind(n,48934))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>n.e(9468).then(n.bind(n,99468))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>n.e(1493).then(n.bind(n,31493))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>n.e(9680).then(n.bind(n,89680))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>n.e(5298).then(n.bind(n,45298))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>n.e(1007).then(n.bind(n,51007))},{id:"houston",displayName:"Houston",type:"dark",import:()=>n.e(8288).then(n.bind(n,88288))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>n.e(5447).then(n.bind(n,35447))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>n.e(8377).then(n.bind(n,98377))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>n.e(7909).then(n.bind(n,87909))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>n.e(2380).then(n.bind(n,32380))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>n.e(7621).then(n.bind(n,17621))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>n.e(563).then(n.bind(n,30563))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>n.e(4831).then(n.bind(n,84831))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>n.e(6269).then(n.bind(n,76269))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>n.e(9746).then(n.bind(n,69746))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>n.e(3334).then(n.bind(n,73334))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>n.e(5085).then(n.bind(n,55085))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>n.e(7181).then(n.bind(n,97181))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>n.e(5892).then(n.bind(n,75892))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>n.e(4853).then(n.bind(n,4853))},{id:"nord",displayName:"Nord",type:"dark",import:()=>n.e(4935).then(n.bind(n,14935))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>n.e(19).then(n.bind(n,40019))},{id:"one-light",displayName:"One Light",type:"light",import:()=>n.e(4981).then(n.bind(n,74981))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>n.e(690).then(n.bind(n,70690))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>n.e(3266).then(n.bind(n,53266))},{id:"red",displayName:"Red",type:"dark",import:()=>n.e(6911).then(n.bind(n,76911))},{id:"rose-pine",displayName:"Ros\xe9 Pine",type:"dark",import:()=>n.e(6598).then(n.bind(n,6598))},{id:"rose-pine-dawn",displayName:"Ros\xe9 Pine Dawn",type:"light",import:()=>n.e(5315).then(n.bind(n,45315))},{id:"rose-pine-moon",displayName:"Ros\xe9 Pine Moon",type:"dark",import:()=>n.e(8482).then(n.bind(n,8482))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>n.e(7965).then(n.bind(n,97965))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>n.e(878).then(n.bind(n,878))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>n.e(3438).then(n.bind(n,43438))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>n.e(6978).then(n.bind(n,76978))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>n.e(8420).then(n.bind(n,58420))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>n.e(1370).then(n.bind(n,31370))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>n.e(9645).then(n.bind(n,59645))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>n.e(391).then(n.bind(n,30391))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>n.e(7333).then(n.bind(n,67333))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>n.e(5362).then(n.bind(n,55362))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>n.e(6740).then(n.bind(n,56740))}].map(e=>[e.id,e.import]));var nB=n(31369).hp;class nH extends Error{constructor(e){super(e),this.name="ShikiError"}}function nG(){return"undefined"!=typeof performance?performance.now():Date.now()}let nU=(e,t)=>e+(t-e%t)%t;async function nq(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}let a="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function l(e,t){return e?function(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&a)return a.decode(e.subarray(t,i));let l="";for(;t<i;){let n=e[t++];if(!(128&n)){l+=String.fromCharCode(n);continue}let r=63&e[t++];if((224&n)==192){l+=String.fromCharCode((31&n)<<6|r);continue}let i=63&e[t++];if((n=(240&n)==224?(15&n)<<12|r<<6|i:(7&n)<<18|r<<12|i<<6|63&e[t++])<65536)l+=String.fromCharCode(n);else{let e=n-65536;l+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return l}(r.HEAPU8,e,t):""}let o={emscripten_get_now:nG,emscripten_memcpy_big:function(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){let a=r.HEAPU8.length;if((e>>>=0)>0x80000000)return!1;for(let r=1;r<=4;r*=2){let l=a*(1+.2/r);if(l=Math.min(l,e+0x6000000),function(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}(Math.min(0x80000000,nU(Math.max(e,l),65536))))return!0}return!1},fd_write:()=>0};async function s(){let n=await e({env:o,wasi_snapshot_preview1:o});i((t=n.memory).buffer),Object.assign(r,n),r.UTF8ToString=l}return await s(),r}var nW=Object.defineProperty,nV=(e,t,n)=>((e,t,n)=>t in e?nW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);let nQ=null;class nZ{constructor(e){nV(this,"utf16Length"),nV(this,"utf8Length"),nV(this,"utf16Value"),nV(this,"utf8Value"),nV(this,"utf16OffsetToUtf8"),nV(this,"utf8OffsetToUtf16");let t=e.length,n=nZ._utf8ByteLength(e),r=n!==t,i=r?new Uint32Array(t+1):null;r&&(i[t]=n);let a=r?new Uint32Array(n+1):null;r&&(a[n]=t);let l=new Uint8Array(n),o=0;for(let n=0;n<t;n++){let s=e.charCodeAt(n),u=s,c=!1;if(s>=55296&&s<=56319&&n+1<t){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(u=(s-55296<<10)+65536|t-56320,c=!0)}r&&(i[n]=o,c&&(i[n+1]=o),u<=127?a[o+0]=n:u<=2047?(a[o+0]=n,a[o+1]=n):u<=65535?(a[o+0]=n,a[o+1]=n,a[o+2]=n):(a[o+0]=n,a[o+1]=n,a[o+2]=n,a[o+3]=n)),u<=127?l[o++]=u:(u<=2047?l[o++]=192|(1984&u)>>>6:(u<=65535?l[o++]=224|(61440&u)>>>12:(l[o++]=240|(1835008&u)>>>18,l[o++]=128|(258048&u)>>>12),l[o++]=128|(4032&u)>>>6),l[o++]=128|(63&u)>>>0),c&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=l,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,l=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,l=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,l&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}let nX=class e{constructor(t){if(nV(this,"id",++e.LAST_ID),nV(this,"_onigBinding"),nV(this,"content"),nV(this,"utf16Length"),nV(this,"utf8Length"),nV(this,"utf16OffsetToUtf8"),nV(this,"utf8OffsetToUtf16"),nV(this,"ptr"),!nQ)throw new nH("Must invoke loadWasm first.");this._onigBinding=nQ,this.content=t;let n=new nZ(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=nQ.omalloc(1e4)),e._sharedPtrInUse=!0,nQ.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(nQ)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};nV(nX,"LAST_ID",0),nV(nX,"_sharedPtr",0),nV(nX,"_sharedPtrInUse",!1);class nJ{constructor(e){if(nV(this,"_onigBinding"),nV(this,"_ptr"),!nQ)throw new nH("Must invoke loadWasm first.");let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new nZ(e[r]);t[r]=i.createString(nQ),n[r]=i.utf8Length}let r=nQ.omalloc(4*e.length);nQ.HEAPU32.set(t,r/4);let i=nQ.omalloc(4*e.length);nQ.HEAPU32.set(n,i/4);let a=nQ.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)nQ.ofree(t[n]);nQ.ofree(i),nQ.ofree(r),0===a&&function(e){throw new nH(e.UTF8ToString(e.getLastOnigError()))}(nQ),this._onigBinding=nQ,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if("number"==typeof n&&(r=n),"string"==typeof e){e=new nX(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(0===a)return null;let l=i.HEAPU32,o=a/4,s=l[o++],u=l[o++],c=[];for(let t=0;t<u;t++){let n=e.convertUtf8OffsetToUtf16(l[o++]),r=e.convertUtf8OffsetToUtf16(l[o++]);c[t]={start:n,end:r,length:r-n}}return{index:s,captureIndices:c}}}function nK(e){return t=>WebAssembly.instantiate(e,t)}async function nY(e){return e&&await (i||(i=async function(){nQ=await nq(async t=>{let n=e;if("function"==typeof(n=await n)&&(n=await n(t)),"function"==typeof n&&(n=await n(t)),"function"==typeof n.instantiator)n=await n.instantiator(t);else if("function"==typeof n.default)n=await n.default(t);else{var r,i,a,l;if(void 0!==n.data&&(n=n.data),r=n,"undefined"!=typeof Response&&r instanceof Response){n="function"==typeof WebAssembly.instantiateStreaming?await (a=n,e=>WebAssembly.instantiateStreaming(a,e))(t):await (l=n,async e=>{let t=await l.arrayBuffer();return WebAssembly.instantiate(t,e)})(t)}else(i=n,"undefined"!=typeof ArrayBuffer&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||void 0!==nB&&nB.isBuffer?.(i)||"undefined"!=typeof SharedArrayBuffer&&i instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&i instanceof Uint32Array||n instanceof WebAssembly.Module)?n=await nK(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await nK(n.default)(t))}return"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}())),{createScanner:e=>new nJ(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new nX(e)}}let n0=function(e){let t=e.langs,n=e.themes,r=e.engine;return async function(e){function i(n){if("string"==typeof n){if(t6(n))return[];let r=t[n=e.langAlias?.[n]||n];if(!r)throw new eu(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);return r}return n}function a(e){if(t7(e))return"none";if("string"==typeof e){let t=n[e];if(!t)throw new eu(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let l=(e.themes??[]).map(e=>a(e)),o=(e.langs??[]).map(e=>i(e)),s=await n$({engine:e.engine??r(),...e,themes:l,langs:o});return{...s,loadLanguage:(...e)=>s.loadLanguage(...e.map(i)),loadTheme:(...e)=>s.loadTheme(...e.map(a)),getBundledLanguages:()=>t,getBundledThemes:()=>n}}}({langs:nz,themes:nF,engine:()=>nY(Promise.all([n.e(8880),n.e(9204)]).then(n.bind(n,9204)))});function n1(e){if(1!=[...e].length)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}let n2=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),n4=String.raw;function n3(e,t){if(null==e)throw Error(t??"Value expected");return e}let n5=n4`\[\^?`,n9=`c.? | C(?:-.?)?|${n4`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${n4`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${n4`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${n4`o\{[^\}]*\}?`}|${n4`\d{1,3}`}`,n8=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,n6=RegExp(n4`
2
+ \\ (?:
3
+ ${n9}
4
+ | [gk]<[^>]*>?
5
+ | [gk]'[^']*'?
6
+ | .
7
+ )
8
+ | \( (?:
9
+ \? (?:
10
+ [:=!>({]
11
+ | <[=!]
12
+ | <[^>]*>
13
+ | '[^']*'
14
+ | ~\|?
15
+ | #(?:[^)\\]|\\.?)*
16
+ | [^:)]*[:)]
17
+ )?
18
+ | \*[^\)]*\)?
19
+ )?
20
+ | (?:${n8.source})+
21
+ | ${n5}
22
+ | .
23
+ `.replace(/\s+/g,""),"gsu"),n7=RegExp(n4`
24
+ \\ (?:
25
+ ${n9}
26
+ | .
27
+ )
28
+ | \[:(?:\^?\p{Alpha}+|\^):\]
29
+ | ${n5}
30
+ | &&
31
+ | .
32
+ `.replace(/\s+/g,""),"gsu");function re(e,{inCharClass:t}){let n=e[1];if("c"===n||"C"===n){var r=e;let t="c"===r[1]?r[2]:r[3];if(!t||!/[A-Za-z]/.test(t))throw Error(`Unsupported control character "${r}"`);return rr(n1(t.toUpperCase())-64,r)}if("dDhHsSwW".includes(n)){var i=e;let t=i[1].toLowerCase();return ra({d:"digit",h:"hex",s:"space",w:"word"}[t],i,{negate:i[1]!==t})}if(e.startsWith(n4`\o{`))throw Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(3===e.length)throw Error(`Incomplete or invalid Unicode property "${e}"`);var a=e;let{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(a).groups;return ra("property",a,{value:r,negate:"P"===t&&!n||"p"===t&&!!n})}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(e))try{let t=e.split(/\\x/).slice(1).map(e=>parseInt(e,16)),n=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(t)),r=new TextEncoder;return[...n].map(e=>{let t=[...r.encode(e)].map(e=>`\\x${e.toString(16)}`).join("");return rr(n1(e),t)})}catch{throw Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if("u"===n||"x"===n)return rr(function(e){if(/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(e))throw Error(`Incomplete or invalid escape "${e}"`);return parseInt("{"===e[2]?/^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(e).groups.hex:e.slice(2),16)}(e),e);if(ru.has(n))return rr(ru.get(n),e);if(/\d/.test(n))return{type:"EscapedNumber",inCharClass:t,raw:e};if("\\"===e)throw Error(n4`Incomplete escape "\"`);if("M"===n)throw Error(`Unsupported meta "${e}"`);if(2==[...e].length)return rr(e.codePointAt(1),e);throw Error(`Unexpected escape "${e}"`)}function rt(e,t){return{type:"Assertion",kind:e,raw:t}}function rn(e){return{type:"Backreference",raw:e}}function rr(e,t){return{type:"Character",value:e,raw:t}}function ri(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function ra(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function rl(e,t,n={}){return"keep"===e?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:n3(n.flags),raw:t}}function ro(e,t,n={}){return{type:"GroupOpen",kind:e,...n,raw:t}}let rs=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),ru=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function rc(e){let t=null,n,r;if("{"===e[0]){let{minStr:i,maxStr:a}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups;if(+i>1e5||a&&+a>1e5)throw Error("Quantifier value unsupported in Oniguruma");if((n=+i)>(r=void 0===a?+i:""===a?1/0:+a)&&(t="possessive",[n,r]=[r,n]),e.endsWith("?")){if("possessive"===t)throw Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else n=+("+"===e[0]),r="?"===e[0]?1:1/0,t="+"===e[1]?"possessive":"?"===e[1]?"lazy":"greedy";return{type:"Quantifier",kind:t,min:n,max:r,raw:e}}function rd(e){let t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function rh(e,t){if(!Array.isArray(e.body))throw Error("Expected node with body array");if(1!==e.body.length)return!1;let n=e.body[0];return!t||Object.keys(t).every(e=>t[e]===n[e])}let rp=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function rf(e,t={}){var n;let r={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},i=function(e,t={}){let n={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if("string"!=typeof e)throw Error("String expected as pattern");let r=function(e){let t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<e.length;n++){let r=e[n];if(!"imxDPSWy".includes(r))throw Error(`Invalid flag "${r}"`);if("y"===r){if(!/^y{[gw]}/.test(e.slice(n)))throw Error('Invalid or unspecified flag "y" mode');t.textSegmentMode="g"===e[n+2]?"grapheme":"word",n+=3;continue}t[({i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"})[r]]=!0}return t}(n.flags),i=[r.extended],a={captureGroup:n.rules.captureGroup,getCurrentModX:()=>i.at(-1),numOpenGroups:0,popModX(){i.pop()},pushModX(e){i.push(e)},replaceCurrentModX(e){i[i.length-1]=e},singleline:n.rules.singleline},l=[],o;for(n6.lastIndex=0;o=n6.exec(e);){let t=function(e,t,n,r){let[i,a]=n;if("["===n||"[^"===n){let e=function(e,t,n){let r=[ri("^"===t[1],t)],i=1,a;for(n7.lastIndex=n;a=n7.exec(e);){let e=a[0];if("["===e[0]&&":"!==e[1])i++,r.push(ri("^"===e[1],e));else if("]"===e){if("CharacterClassOpen"===r.at(-1).type)r.push(rr(93,e));else if(i--,r.push({type:"CharacterClassClose",raw:e}),!i)break}else{let t=function(e){if("\\"===e[0])return re(e,{inCharClass:!0});if("["===e[0]){let t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!n2.has(t.groups.name))throw Error(`Invalid POSIX class "${e}"`);return ra("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return"-"===e?{type:"CharacterClassHyphen",raw:e}:"&&"===e?{type:"CharacterClassIntersector",raw:e}:rr(n1(e),e)}(e);Array.isArray(t)?r.push(...t):r.push(t)}}return{tokens:r,lastIndex:n7.lastIndex||e.length}}(t,n,r);return{tokens:e.tokens,lastIndex:e.lastIndex}}if("\\"===i){if("AbBGyYzZ".includes(a))return{token:rt(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw Error(`Invalid group name "${n}"`);return{token:{type:"Subroutine",raw:n}}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw Error(`Invalid group name "${n}"`);return{token:rn(n)}}if("K"===a)return{token:rl("keep",n)};if("N"===a||"R"===a)return{token:ra("newline",n,{negate:"N"===a})};if("O"===a)return{token:ra("any",n)};if("X"===a)return{token:ra("text_segment",n)};let e=re(n,{inCharClass:!1});return Array.isArray(e)?{tokens:e}:{token:e}}if("("===i){if("*"===a)return{token:function(e){let t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw Error(`Incomplete or invalid named callout "${e}"`);let{name:n,tag:r,args:i}=t.groups;if(!n)throw Error(`Invalid named callout "${e}"`);if(""===r)throw Error(`Named callout tag with empty value not allowed "${e}"`);let a=i?i.split(",").filter(e=>""!==e).map(e=>/^[+-]?\d+$/.test(e)?+e:e):[],[l,o,s]=a,u=rs.has(n)?n.toLowerCase():"custom";switch(u){case"fail":case"mismatch":case"skip":if(a.length>0)throw Error(`Named callout arguments not allowed "${a}"`);break;case"error":if(a.length>1)throw Error(`Named callout allows only one argument "${a}"`);if("string"==typeof l)throw Error(`Named callout argument must be a number "${l}"`);break;case"max":if(!a.length||a.length>2)throw Error(`Named callout must have one or two arguments "${a}"`);if("string"==typeof l&&!/^[A-Za-z_]\w*$/.test(l))throw Error(`Named callout argument one must be a tag or number "${l}"`);if(2===a.length&&("number"==typeof o||!/^[<>X]$/.test(o)))throw Error(`Named callout optional argument two must be '<', '>', or 'X' "${o}"`);break;case"count":case"total_count":if(a.length>1)throw Error(`Named callout allows only one argument "${a}"`);if(1===a.length&&("number"==typeof l||!/^[<>X]$/.test(l)))throw Error(`Named callout optional argument must be '<', '>', or 'X' "${l}"`);break;case"cmp":if(3!==a.length)throw Error(`Named callout must have three arguments "${a}"`);if("string"==typeof l&&!/^[A-Za-z_]\w*$/.test(l))throw Error(`Named callout argument one must be a tag or number "${l}"`);if("number"==typeof o||!/^(?:[<>!=]=|[<>])$/.test(o))throw Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${o}"`);if("string"==typeof s&&!/^[A-Za-z_]\w*$/.test(s))throw Error(`Named callout argument three must be a tag or number "${s}"`);break;case"custom":throw Error(`Undefined callout name "${n}"`);default:throw Error(`Unexpected named callout kind "${u}"`)}return{type:"NamedCallout",kind:u,tag:r??null,arguments:i?.split(",")??null,raw:e}}(n)};if("(?{"===n)throw Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(")"!==t[r])throw Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:function(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??="";let i=(t.getCurrentModX()||n.includes("x"))&&!r.includes("x"),a=rd(n),l=rd(r),o={};if(a&&(o.enable=a),l&&(o.disable=l),e.endsWith(")"))return t.replaceCurrentModX(i),rl("flags",e,{flags:o});if(e.endsWith(":"))return t.pushModX(i),t.numOpenGroups++,ro("group",e,{...(a||l)&&{flags:o}});throw Error(`Unexpected flag modifier "${e}"`)}(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,"("===n&&!e.captureGroup||"(?:"===n)return{token:ro("group",n)};if("(?>"===n)return{token:ro("atomic",n)};if("(?="===n||"(?!"===n||"(?<="===n||"(?<!"===n)return{token:ro("<"===n[2]?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if("("===n&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:ro("capturing",n,{..."("!==n&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if("(?~|"===n)throw Error(`Unsupported absence function kind "${n}"`);return{token:ro("absence_repeater",n)}}throw"(?("===n?Error(`Unsupported conditional "${n}"`):Error(`Invalid or unsupported group option "${n}"`)}if(")"===n){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw Error('Unmatched ")"');return{token:{type:"GroupClose",raw:n}}}if(e.getCurrentModX()){if("#"===n){let e=t.indexOf(`
33
+ `,r);return{lastIndex:-1===e?t.length:e}}if(/^\s$/.test(n)){let e=/\s+/y;return e.lastIndex=r,{lastIndex:e.exec(t)?e.lastIndex:r}}}return"."===n?{token:ra("dot",n)}:"^"===n||"$"===n?{token:rt(e.singleline?({"^":n4`\A`,$:n4`\Z`})[n]:n,n)}:"|"===n?{token:{type:"Alternator",raw:n}}:n8.test(n)?{tokens:function(e){let t,n=[],r=RegExp(n8,"gy");for(;t=r.exec(e);){let e=t[0];if("{"===e[0]){let t=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(e);if(t){let{min:i,max:a}=t.groups;if(+i>+a&&e.endsWith("?")){r.lastIndex--,n.push(rc(e.slice(0,-1)));continue}}}n.push(rc(e))}return n}(n)}:{token:rr(n1(n),n)}}(a,e,o[0],n6.lastIndex);t.tokens?l.push(...t.tokens):t.token&&l.push(t.token),void 0!==t.lastIndex&&(n6.lastIndex=t.lastIndex)}let s=[],u=0;l.filter(e=>"GroupOpen"===e.type).forEach(e=>{"capturing"===e.kind?e.number=++u:"("===e.raw&&s.push(e)}),u||s.forEach((e,t)=>{e.kind="capturing",e.number=t+1});let c=u||s.length;return{tokens:l.map(e=>"EscapedNumber"===e.type?function(e,t){let{raw:n,inCharClass:r}=e,i=n.slice(1);if(!r&&("0"!==i&&1===i.length||"0"!==i[0]&&+i<=t))return[rn(n)];let a=[],l=i.match(/^[0-7]+|\d/g);for(let e=0;e<l.length;e++){let t,r=l[e];if(0===e&&"8"!==r&&"9"!==r){if((t=parseInt(r,8))>127)throw Error(n4`Octal encoded byte above 177 unsupported "${n}"`)}else t=n1(r);a.push(rr(t,(0===e?"\\":"")+r))}return a}(e,c):e).flat(),flags:r}}(e,{flags:r.flags,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline}}),a=(e,t)=>{let n=i.tokens[l.nextIndex];switch(l.parent=e,l.nextIndex++,n.type){case"Alternator":return rm();case"Assertion":return function({kind:e}){return rg(n3({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===n4`\B`||e===n4`\Y`})}(n);case"Backreference":return function({raw:e},t){let n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),i=(n,r=!1)=>{let i=t.capturingGroups.length,a=!1;if(n>i)if(t.skipBackrefValidation)a=!0;else throw Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,ry(r?i+1-n:n,{orphan:a})};if(n){let n=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(n)return i(+n.groups.num,!!n.groups.sign);if(/[-+]/.test(r))throw Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(r))throw Error(`Group name not defined to the left "${e}"`);return ry(r)}return i(+r)}(n,l);case"Character":return rk(n.value,{useLastValid:!!t.isCheckingRangeEnd});case"CharacterClassHyphen":return function(e,t,n){let{tokens:r,walk:i}=t,a=t.parent,l=a.body.at(-1),o=r[t.nextIndex];if(!n.isCheckingRangeEnd&&l&&"CharacterClass"!==l.type&&"CharacterClassRange"!==l.type&&o&&"CharacterClassOpen"!==o.type&&"CharacterClassClose"!==o.type&&"CharacterClassIntersector"!==o.type){let e=i(a,{...n,isCheckingRangeEnd:!0});if("Character"===l.type&&"Character"===e.type)return a.body.pop(),function(e,t){if(t.value<e.value)throw Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}(l,e);throw Error("Invalid character class range")}return rk(n1("-"))}(0,l,t);case"CharacterClassOpen":return function({negate:e},t,n){let{tokens:r,walk:i}=t,a=r[t.nextIndex],l=[rx()],o=rL(a);for(;"CharacterClassClose"!==o.type;){if("CharacterClassIntersector"===o.type)l.push(rx()),t.nextIndex++;else{let e=l.at(-1);e.body.push(i(e,n))}o=rL(r[t.nextIndex],a)}let s=rx({negate:e});return 1===l.length?s.body=l[0].body:(s.kind="intersection",s.body=l.map(e=>1===e.body.length?e.body[0]:e)),t.nextIndex++,s}(n,l,t);case"CharacterSet":return function({kind:e,negate:t,value:n},r){let{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:l}=r;if("property"===e){let r=rI(n);if(!n2.has(r)||l?.has(r))return rA(n,{negate:t,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:l});e="posix",n=r}return"posix"===e?function(e,t){let n=!!t?.negate;if(!n2.has(e))throw Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:n}}(n,{negate:t}):rv(e,{negate:t})}(n,l);case"Directive":return function(e,t={}){if("keep"===e)return{type:"Directive",kind:e};if("flags"===e)return{type:"Directive",kind:e,flags:n3(t.flags)};throw Error(`Unexpected directive kind "${e}"`)}(n.kind,{flags:n.flags});case"GroupOpen":return function(e,t,n){var r,i;let{tokens:a,capturingGroups:l,namedGroupsByName:o,skipLookbehindValidation:s,walk:u}=t,c=function({flags:e,kind:t,name:n,negate:r,number:i}){switch(t){case"absence_repeater":var a="repeater";!1;return{type:"AbsenceFunction",kind:a,body:rE(void 0)};case"atomic":return rw({atomic:!0});case"capturing":return rb(i,{name:n});case"group":return rw({flags:e});case"lookahead":case"lookbehind":return rS({behind:"lookbehind"===t,negate:r});default:throw Error(`Unexpected group kind "${t}"`)}}(e),d="AbsenceFunction"===c.type,h=rT(c),p=h&&c.negate;if("CapturingGroup"===c.type&&(l.push(c),c.name&&(r=c.name,i=[],o.has(r)||o.set(r,i),o.get(r)).push(c)),d&&n.isInAbsenceFunction)throw Error("Nested absence function not supported by Oniguruma");let f=rR(a[t.nextIndex]);for(;"GroupClose"!==f.type;){if("Alternator"===f.type)c.body.push(rm()),t.nextIndex++;else{let e=c.body.at(-1),t=u(e,{...n,isInAbsenceFunction:n.isInAbsenceFunction||d,isInLookbehind:n.isInLookbehind||h,isInNegLookbehind:n.isInNegLookbehind||p});if(e.body.push(t),(h||n.isInLookbehind)&&!s){let e="Lookbehind includes a pattern not allowed by Oniguruma";if(p||n.isInNegLookbehind){if(rP(t)||"CapturingGroup"===t.type)throw Error(e)}else if(rP(t)||rT(t)&&t.negate)throw Error(e)}}f=rR(a[t.nextIndex])}return t.nextIndex++,c}(n,l,t);case"NamedCallout":var r,a;return r=n.kind,a=n.tag,{type:"NamedCallout",kind:r,tag:a,arguments:n.arguments};case"Quantifier":return function({kind:e,min:t,max:n},r){let i=r.parent,a=i.body.at(-1);if(!a||!rp.has(a.type))throw Error("Quantifier requires a repeatable token");let l=rC(e,t,n,a);return i.body.pop(),l}(n,l);case"Subroutine":return function({raw:e},t){let{capturingGroups:n,subroutines:r}=t,i=e.slice(3,-1),a=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(a){let e=+a.groups.num,r=n.length;if(t.hasNumberedRef=!0,(i=({"":e,"+":r+e,"-":r+1-e})[a.groups.sign])<1)throw Error("Invalid subroutine number")}else"0"===i&&(i=0);let l=r_(i);return r.push(l),l}(n,l);default:throw Error(`Unexpected token type "${n.type}"`)}},l={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:r.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:r.skipBackrefValidation,skipLookbehindValidation:r.skipLookbehindValidation,skipPropertyNameValidation:r.skipPropertyNameValidation,subroutines:[],tokens:i.tokens,unicodePropertyMap:r.unicodePropertyMap,walk:a},o=(n={type:"Flags",...i.flags},{type:"Regex",body:rE(void 0),flags:n}),s=o.body[0];for(;l.nextIndex<i.tokens.length;){let e=a(s,{});"Alternative"===e.type?(o.body.push(e),s=e):s.body.push(e)}let{capturingGroups:u,hasNumberedRef:c,namedGroupsByName:d,subroutines:h}=l;if(c&&d.size&&!r.rules.captureGroup)throw Error("Numbered backref/subroutine not allowed when using named capture");for(let{ref:e}of h)if("number"==typeof e){if(e>u.length)throw Error("Subroutine uses a group number that's not defined");e&&(u[e-1].isSubroutined=!0)}else if(d.has(e)){if(d.get(e).length>1)throw Error(n4`Subroutine uses a duplicate group name "\g<${e}>"`);d.get(e)[0].isSubroutined=!0}else throw Error(n4`Subroutine uses a group name that's not defined "\g<${e}>"`);return o}function rm(e){return{type:"Alternative",body:rN(e?.body)}}function rg(e,t){let n={type:"Assertion",kind:e};return("word_boundary"===e||"text_segment_boundary"===e)&&(n.negate=!!t?.negate),n}function ry(e,t){let n=!!t?.orphan;return{type:"Backreference",ref:e,...n&&{orphan:n}}}function rb(e,t){var n;let r={name:void 0,isSubroutined:!1,...t};if(void 0!==r.name&&(n=r.name,!/^[\p{Alpha}\p{Pc}][^)]*$/u.test(n)))throw Error(`Group name "${r.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...r.name&&{name:r.name},...r.isSubroutined&&{isSubroutined:r.isSubroutined},body:rE(t?.body)}}function rk(e,t){let n={useLastValid:!1,...t};if(e>1114111){let t=e.toString(16);if(n.useLastValid)e=1114111;else throw e>1310719?Error(`Invalid code point out of range "\\x{${t}}"`):Error(`Invalid code point out of range in JS "\\x{${t}}"`)}return{type:"Character",value:e}}function rx(e){let t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:rN(e?.body)}}function rv(e,t){let n=!!t?.negate,r={type:"CharacterSet",kind:e};return("digit"===e||"hex"===e||"newline"===e||"space"===e||"word"===e)&&(r.negate=n),"text_segment"!==e&&("newline"!==e||n)||(r.variableLength=!0),r}function rw(e){let t=e?.atomic,n=e?.flags;if(t&&n)throw Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...n&&{flags:n},body:rE(e?.body)}}function rS(e){let t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:rE(e?.body)}}function rC(e,t,n,r){if(t>n)throw Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:n,body:r}}function r_(e){return{type:"Subroutine",ref:e}}function rA(e,t){let n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},r=n.unicodePropertyMap?.get(rI(e));if(!r){if(n.normalizeUnknownPropertyNames)r=e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,e=>e[0].toUpperCase()+e.slice(1).toLowerCase());else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw Error(n4`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:r??e,negate:n.negate}}function rE(e){if(void 0===e)e=[rm()];else if(!Array.isArray(e)||!e.length||!e.every(e=>"Alternative"===e.type))throw Error("Invalid body; expected array of one or more Alternative nodes");return e}function rN(e){if(void 0===e)e=[];else if(!Array.isArray(e)||!e.every(e=>!!e.type))throw Error("Invalid body; expected array of nodes");return e}function rP(e){return"LookaroundAssertion"===e.type&&"lookahead"===e.kind}function rT(e){return"LookaroundAssertion"===e.type&&"lookbehind"===e.kind}function rI(e){return e.replace(/[- _]+/g,"").toLowerCase()}function rL(e,t){return n3(e,`${t?.type==="Character"&&93===t.value?"Empty":"Unclosed"} character class`)}function rR(e){return n3(e,"Unclosed group")}function rM(e,t,n=null){function r(e,t){for(let n=0;n<e.length;n++){let r=i(e[n],t,n,e);n=Math.max(-1,n+r)}}function i(a,l=null,o=null,s=null){let u=0,c=!1,d={node:a,parent:l,key:o,container:s,root:e,remove(){r$(s).splice(Math.max(0,rO(o)+u),1),u--,c=!0},removeAllNextSiblings:()=>r$(s).splice(rO(o)+1),removeAllPrevSiblings(){let e=rO(o)+u;return u-=e,r$(s).splice(0,Math.max(0,e))},replaceWith(e,t={}){let n=!!t.traverse;s?s[Math.max(0,rO(o)+u)]=e:n3(l,"Can't replace root node")[o]=e,n&&i(e,l,o,s),c=!0},replaceWithMultiple(e,t={}){let n=!!t.traverse;if(r$(s).splice(Math.max(0,rO(o)+u),1,...e),u+=e.length-1,n){let t=0;for(let n=0;n<e.length;n++)t+=i(e[n],l,rO(o)+n+t,s)}c=!0},skip(){c=!0}},{type:h}=a,p=t["*"],f=t[h],m="function"==typeof p?p:p?.enter,g="function"==typeof f?f:f?.enter;if(m?.(d,n),g?.(d,n),!c)switch(h){case"AbsenceFunction":case"CapturingGroup":case"Group":case"Alternative":case"CharacterClass":case"LookaroundAssertion":r(a.body,a);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":i(a.min,a,"min"),i(a.max,a,"max");break;case"Quantifier":i(a.body,a,"body");break;case"Regex":r(a.body,a),i(a.flags,a,"flags");break;default:throw Error(`Unexpected node type "${h}"`)}return f?.exit?.(d,n),p?.exit?.(d,n),u}return i(e),e}function r$(e){if(!Array.isArray(e))throw Error("Container expected");return e}function rO(e){if("number"!=typeof e)throw Error("Numeric key expected");return e}let rD=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`,rj=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function rz(e,t,n,r){let i=RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),a=[!1],l=0,o="";for(let t of e.matchAll(i)){let{0:e,groups:{$skip:i}}=t;if(!i&&(!r||r===rj.DEFAULT==!l)){n instanceof Function?o+=n(t,{context:l?rj.CHAR_CLASS:rj.DEFAULT,negated:a[a.length-1]}):o+=n;continue}"["===e[0]?(l++,a.push("^"===e[1])):"]"===e&&l&&(l--,a.pop()),o+=e}return o}function rF(e,t,n){return!!function(e,t,n=0,r){let i;if(!RegExp(t,"su").test(e))return null;let a=RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");a.lastIndex=n;let l=0;for(;i=a.exec(e);){let{0:e,groups:{$skip:t}}=i;if(!t&&(!r||r===rj.DEFAULT==!l))return i;"["===e?l++:"]"===e&&l&&l--,a.lastIndex==i.index&&a.lastIndex++}return null}(e,t,0,n)}let rB=RegExp(String.raw`(?<noncapturingStart>${rD})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu"),rH=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,rG=RegExp(String.raw`
34
+ \\(?: \d+
35
+ | c[A-Za-z]
36
+ | [gk]<[^>]+>
37
+ | [pPu]\{[^\}]+\}
38
+ | u[A-Fa-f\d]{4}
39
+ | x[A-Fa-f\d]{2}
40
+ )
41
+ | \((?: \? (?: [:=!>]
42
+ | <(?:[=!]|[^>]+>)
43
+ | [A-Za-z\-]+:
44
+ | \(DEFINE\)
45
+ ))?
46
+ | (?<qBase>${rH})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
47
+ | \\?.
48
+ `.replace(/\s+/g,""),"gsu"),rU=String.raw,rq=rU`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,rW=rU`\(\?R=(?<rDepth>[^\)]+)\)|${rq}`,rV=rU`\(\?<(?![=!])(?<captureName>[^>]+)>`,rQ=rU`${rV}|(?<unnamed>\()(?!\?)`,rZ=RegExp(rU`${rV}|${rW}|\(\?|\\?.`,"gsu"),rX="Cannot use multiple overlapping recursions";function rJ(e){let t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e)||(e*=1)<2||e>100)throw Error(t)}function rK(e,t,n,r,i,a,l){let o=new Set;r&&rz(e+t,rV,({groups:{captureName:e}})=>{o.add(e)},rj.DEFAULT);let s=[n,r?o:null,i,a,l];return`${e}${rY(`(?:${e}`,"forward",...s)}(?:)${rY(`${t})`,"backward",...s)}${t}`}function rY(e,t,n,r,i,a,l){let o=e=>"forward"===t?e+2:n-e+2-1,s="";for(let t=0;t<n;t++){let n=o(t);s+=rz(e,rU`${rQ}|\\k<(?<backref>[^>]+)>`,({0:e,groups:{captureName:t,unnamed:o,backref:s}})=>{if(s&&r&&!r.has(s))return e;let u=`_$${n}`;if(o||t){let n=l+a.length+1;return a.push(n),function(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}(i,n),o?e:`(?<${t}${u}>`}return rU`\k<${s}${u}>`},rj.DEFAULT)}return s}function r0(e,t,n,r,i,a){if(e.size&&r){let l=0;rz(t,rQ,()=>l++,rj.DEFAULT);let o=a-l+i,s=new Map;return e.forEach((e,t)=>{let i=(r-l*n)/n,a=l*n,u=t>o+l?t+r:t,c=[];for(let t of e)if(t<=o)c.push(t);else if(t>o+l+i)c.push(t+r);else if(t<=o+l)for(let e=0;e<=n;e++)c.push(t+l*e);else for(let e=0;e<=n;e++)c.push(t+a+i*e);s.set(u,c)}),s}return e}var r1=String.fromCodePoint,r2=String.raw,r4={flagGroups:(()=>{try{RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{RegExp("","v")}catch{return!1}return!0})()};function r3(e,{enable:t,disable:n}){return{dotAll:!n?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!n?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function r5(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}r4.bugFlagVLiteralHyphenIsRange=!!r4.unicodeSets&&(()=>{try{RegExp(r2`[\d\-a]`,"v")}catch{return!0}return!1})(),r4.bugNestedClassIgnoresNegation=r4.unicodeSets&&RegExp("[[^a]]","v").test("a");var r9={ES2025:2025,ES2024:2024,ES2018:2018},r8={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function r6(e={}){if("[object Object]"!==({}).toString.call(e))throw Error("Unexpected options");if(void 0!==e.target&&!r8[e.target])throw Error(`Unexpected target "${e.target}"`);let t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return"auto"===t.target&&(t.target=r4.flagGroups?"ES2025":r4.unicodeSets?"ES2024":"ES2018"),t}var r7=new Set([r1(304),r1(305)]),ie=r2`[\p{L}\p{M}\p{N}\p{Pc}]`;function it(e){if(r7.has(e))return[e];let t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),i=il.get(n),a=ii.get(n),l=ia.get(n);return 1==[...r].length&&t.add(r),l&&t.add(l),i&&t.add(i),t.add(n),a&&t.add(a),[...t]}var ir=new Map(`C Other
49
+ Cc Control cntrl
50
+ Cf Format
51
+ Cn Unassigned
52
+ Co Private_Use
53
+ Cs Surrogate
54
+ L Letter
55
+ LC Cased_Letter
56
+ Ll Lowercase_Letter
57
+ Lm Modifier_Letter
58
+ Lo Other_Letter
59
+ Lt Titlecase_Letter
60
+ Lu Uppercase_Letter
61
+ M Mark Combining_Mark
62
+ Mc Spacing_Mark
63
+ Me Enclosing_Mark
64
+ Mn Nonspacing_Mark
65
+ N Number
66
+ Nd Decimal_Number digit
67
+ Nl Letter_Number
68
+ No Other_Number
69
+ P Punctuation punct
70
+ Pc Connector_Punctuation
71
+ Pd Dash_Punctuation
72
+ Pe Close_Punctuation
73
+ Pf Final_Punctuation
74
+ Pi Initial_Punctuation
75
+ Po Other_Punctuation
76
+ Ps Open_Punctuation
77
+ S Symbol
78
+ Sc Currency_Symbol
79
+ Sk Modifier_Symbol
80
+ Sm Math_Symbol
81
+ So Other_Symbol
82
+ Z Separator
83
+ Zl Line_Separator
84
+ Zp Paragraph_Separator
85
+ Zs Space_Separator
86
+ ASCII
87
+ ASCII_Hex_Digit AHex
88
+ Alphabetic Alpha
89
+ Any
90
+ Assigned
91
+ Bidi_Control Bidi_C
92
+ Bidi_Mirrored Bidi_M
93
+ Case_Ignorable CI
94
+ Cased
95
+ Changes_When_Casefolded CWCF
96
+ Changes_When_Casemapped CWCM
97
+ Changes_When_Lowercased CWL
98
+ Changes_When_NFKC_Casefolded CWKCF
99
+ Changes_When_Titlecased CWT
100
+ Changes_When_Uppercased CWU
101
+ Dash
102
+ Default_Ignorable_Code_Point DI
103
+ Deprecated Dep
104
+ Diacritic Dia
105
+ Emoji
106
+ Emoji_Component EComp
107
+ Emoji_Modifier EMod
108
+ Emoji_Modifier_Base EBase
109
+ Emoji_Presentation EPres
110
+ Extended_Pictographic ExtPict
111
+ Extender Ext
112
+ Grapheme_Base Gr_Base
113
+ Grapheme_Extend Gr_Ext
114
+ Hex_Digit Hex
115
+ IDS_Binary_Operator IDSB
116
+ IDS_Trinary_Operator IDST
117
+ ID_Continue IDC
118
+ ID_Start IDS
119
+ Ideographic Ideo
120
+ Join_Control Join_C
121
+ Logical_Order_Exception LOE
122
+ Lowercase Lower
123
+ Math
124
+ Noncharacter_Code_Point NChar
125
+ Pattern_Syntax Pat_Syn
126
+ Pattern_White_Space Pat_WS
127
+ Quotation_Mark QMark
128
+ Radical
129
+ Regional_Indicator RI
130
+ Sentence_Terminal STerm
131
+ Soft_Dotted SD
132
+ Terminal_Punctuation Term
133
+ Unified_Ideograph UIdeo
134
+ Uppercase Upper
135
+ Variation_Selector VS
136
+ White_Space space
137
+ XID_Continue XIDC
138
+ XID_Start XIDS`.split(/\s/).map(e=>[rI(e),e])),ii=new Map([["s",r1(383)],[r1(383),"s"]]),ia=new Map([[r1(223),r1(7838)],[r1(107),r1(8490)],[r1(229),r1(8491)],[r1(969),r1(8486)]]),il=new Map([is(453),is(456),is(459),is(498),...iu(8072,8079),...iu(8088,8095),...iu(8104,8111),is(8124),is(8140),is(8188)]),io=new Map([["alnum",r2`[\p{Alpha}\p{Nd}]`],["alpha",r2`\p{Alpha}`],["ascii",r2`\p{ASCII}`],["blank",r2`[\p{Zs}\t]`],["cntrl",r2`\p{Cc}`],["digit",r2`\p{Nd}`],["graph",r2`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",r2`\p{Lower}`],["print",r2`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",r2`[\p{P}\p{S}]`],["space",r2`\p{space}`],["upper",r2`\p{Upper}`],["word",r2`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",r2`\p{AHex}`]]);function is(e){let t=r1(e);return[t.toLowerCase(),t]}function iu(e,t){return(function(e,t){let n=[];for(let r=e;r<=t;r++)n.push(r);return n})(e,t).map(e=>is(e))}var ic=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]),id={AbsenceFunction({node:e,parent:t,replaceWith:n}){let{body:r,kind:i}=e;if("repeater"===i){let e=rw();e.body[0].body.push(rS({negate:!0,body:r}),rA("Any"));let i=rw();i.body[0].body.push(rC("greedy",0,1/0,e)),n(iC(i,t),{traverse:!0})}else throw Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){let i=e.body.filter(e=>"flags"===e.kind);for(let e=n+1;e<t.body.length;e++)r5(r,t.body[e],[]).push(...i)},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){let n=ib(t.get(e));if(n){let t=rw({flags:n});t.body[0].body=e.body,e.body=[iC(t,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:i,remove:a,replaceWith:l},o){let{kind:s,negate:u}=e,{asciiWordBoundaries:c,avoidSubclass:d,supportedGNodes:h,wordIsAscii:p}=o;if("text_segment_boundary"===s)throw Error(`Unsupported text segment boundary "\\${u?"Y":"y"}"`);if("line_end"===s)l(iC(rS({body:[rm({body:[rg("string_end")]}),rm({body:[rk(10)]})]}),t));else if("line_start"===s)l(iC(iv(r2`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if("search_start"===s)if(h.has(e))i.flags.sticky=!0,a();else{let e=r[n-1];if(e&&function(e){let t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||"Quantifier"===e.type&&e.min&&t.includes(e.body.type)}(e))l(iC(rS({negate:!0}),t));else if(d)throw Error(r2`Uses "\G" in a way that requires a subclass`);else l(iS(rg("string_start"),t)),o.strategy="clip_search"}else if("string_end"===s||"string_start"===s);else if("string_end_newline"===s)l(iC(iv(r2`(?=\n?\z)`),t));else if("word_boundary"===s){if(!p&&!c){let e=`(?:(?<=${ie})(?!${ie})|(?<!${ie})(?=${ie}))`,n=`(?:(?<=${ie})(?=${ie})|(?<!${ie})(?!${ie}))`;l(iC(iv(u?n:e),t))}}else throw Error(`Unexpected assertion kind "${s}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;"string"!=typeof n||ix(n)||(e.ref=n=iy(n,t))},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!ix(r)&&(e.name=r=iy(r,t)),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){"intersection"===t.kind&&n(iC(rx({body:[e]}),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:i,digitIsAscii:a,spaceIsAscii:l,wordIsAscii:o}){let{kind:s,negate:u,value:c}=e;if(a&&("digit"===s||"digit"===c))return void n(iS(rv("digit",{negate:u}),t));if(l&&("space"===s||"space"===c))return void n(iC(iw(iv("[ -\r ]"),u),t));if(o&&("word"===s||"word"===c))return void n(iS(rv("word",{negate:u}),t));if("any"===s)n(iS(rA("Any"),t));else if("digit"===s)n(iS(rA("Nd",{negate:u}),t));else if("dot"===s);else if("text_segment"===s){if("strict"===r)throw Error(r2`Use of "\X" requires non-strict accuracy`);let e="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",a=r2`\p{RI}{2}|${e}(?:\u200D${e})*`;n(iC(iv(r2`(?>\r\n|${i?r2`\p{RGI_Emoji}`:a}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if("hex"===s)n(iS(rA("AHex",{negate:u}),t));else if("newline"===s)n(iC(iv(u?"[^\n]":"(?>\r\n?|[\n\v\f\x85\u2028\u2029])"),t));else if("posix"===s)if(i||"graph"!==c&&"print"!==c)n(iC(iw(iv(io.get(c)),u),t));else{if("strict"===r)throw Error(`POSIX class "${c}" requires min target ES2024 or non-strict accuracy`);let e={graph:"!-~",print:" -~"}[c];u&&(e=`\0-${r1(e.codePointAt(0)-1)}${r1(e.codePointAt(2)+1)}-\u{10FFFF}`),n(iC(iv(`[${e}]`),t))}else if("property"===s)ir.has(rI(c))||(e.key="sc");else if("space"===s)n(iS(rA("space",{negate:u}),t));else if("word"===s)n(iC(iw(iv(ie),u),t));else throw Error(`Unexpected character set kind "${s}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:i,removeAllPrevSiblings:a,removeAllNextSiblings:l}){let{kind:o,flags:s}=e;if("flags"===o)if(s.enable||s.disable){let e=rw({flags:s});e.body[0].body=l(),i(iC(e,t),{traverse:!0})}else r();else if("keep"===o){let e=n.body[0],r=1===n.body.length&&rh(e,{type:"Group"})&&1===e.body[0].body.length?e.body[0]:n;if(t.parent!==r||r.body.length>1)throw Error(r2`Uses "\K" in a way that's unsupported`);let l=rS({behind:!0});l.body[0].body=a(),i(iC(l,t))}else throw Error(`Unexpected directive kind "${o}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw Error('Unsupported flag "P"');if("word"===e.textSegmentMode)throw Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(t=>delete e[t]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;let{enable:t,disable:n}=e.flags;t?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&n?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,e.flags.enable||e.flags.disable||delete e.flags},LookaroundAssertion({node:e},t){let{kind:n}=e;"lookbehind"===n&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){let{kind:r}=e;if("fail"===r)n(iC(rS({negate:!0}),t));else throw Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if("Quantifier"===e.body.type){let t=rw();t.body[0].body.push(e.body),e.body=iC(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let n=[],r=!1,i=!1;for(let t of e.body)if(1===t.body.length&&"search_start"===t.body[0].kind)t.body.pop();else{let e=function e(t){let n=t.find(e=>"search_start"===e.kind||function(e,t){let n={negate:null,...t};return"LookaroundAssertion"===e.type&&(null===n.negate||e.negate===n.negate)&&1===e.body.length&&rh(e.body[0],{type:"Assertion",kind:"search_start"})}(e,{negate:!1})||!function({type:e}){return"Assertion"===e||"Directive"===e||"LookaroundAssertion"===e}(e));if(!n)return null;if("search_start"===n.kind)return n;if("LookaroundAssertion"===n.type)return n.body[0].body[0];if("CapturingGroup"===n.type||"Group"===n.type){let t=[];for(let r of n.body){let n=e(r.body);if(!n)return null;Array.isArray(n)?t.push(...n):t.push(n)}return t}return null}(t.body);e?(r=!0,Array.isArray(e)?n.push(...e):n.push(e)):i=!0}r&&!i&&n.forEach(e=>t.add(e))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if("strict"===t&&n&&r)throw Error(r2`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;"string"!=typeof n||ix(n)||(e.ref=n=iy(n,t))}},ih={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){let{orphan:r,ref:i}=e;r||n.set(e,[...t.get(i).map(({node:e})=>e)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:i,groupsByName:a,multiplexCapturesToLeftByRef:l,openRefs:o,reffedNodesByReferencer:s}){let u=i.get(e);if(u&&o.has(e.number)){let r=iS(ig(e.number),t);s.set(r,o.get(e.number)),n(r);return}o.set(e.number,e),l.set(e.number,[]),e.name&&r5(l,e.name,[]);let c=l.get(e.name??e.number);for(let t=0;t<c.length;t++){let n=c[t];if(u===n.node||u&&u===n.origin||e===n.origin){c.splice(t,1);break}}if(l.get(e.number).push({node:e,origin:u}),e.name&&l.get(e.name).push({node:e,origin:u}),e.name){let t=r5(a,e.name,new Map),n=!1;if(u)n=!0;else for(let e of t.values())if(!e.hasDuplicateNameToRemove){n=!0;break}a.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:n})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=r3(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){let{isRecursive:i,ref:a}=e;if(i){let n=t;for(;(n=n.parent)&&("CapturingGroup"!==n.type||n.name!==a&&n.number!==a););r.reffedNodesByReferencer.set(e,n);return}let l=r.subroutineRefMap.get(a),o=0===a,s=o?ig(0):function e(t,n,r,i){let a=Array.isArray(t)?[]:{};for(let[l,o]of Object.entries(t))"parent"===l?a.parent=Array.isArray(r)?i:r:o&&"object"==typeof o?a[l]=e(o,n,a,r):("type"===l&&"CapturingGroup"===o&&n.set(a,n.get(t)??t),a[l]=o);return a}(l,r.groupOriginByCopy,null),u=s;if(!o){var c,d;let e=ib(function(e,t){let n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}(l,e=>"Group"===e.type&&!!e.flags)),t=e?r3(r.globalFlags,e):r.globalFlags;c=t,d=r.currentFlags,(c.dotAll!==d.dotAll||c.ignoreCase!==d.ignoreCase)&&(u=rw({flags:function({dotAll:e,ignoreCase:t}){let n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),e&&t||(n.disable={},e||(n.disable.dotAll=!0),t||(n.disable.ignoreCase=!0)),n}(t)})).body[0].body.push(s)}n(iC(u,t),{traverse:!o})}},ip={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}let i=r.reffedNodesByReferencer.get(e).filter(t=>(function(e,t){let n=t;do{if("Regex"===n.type)return!1;if("Alternative"===n.type)continue;if(n===e)return!1;for(let t of ik(n.parent)){if(t===n)break;if(t===e||function e(t,n){for(let r of ik(t)??[])if(r===n||e(r,n))return!0;return!1}(t,e))return!0}}while(n=n.parent);throw Error("Unexpected path")})(t,e));i.length?i.length>1?n(iC(rw({atomic:!0,body:i.reverse().map(e=>rm({body:[ry(e.number)]}))}),t)):e.ref=i[0].number:n(iC(rS({negate:!0}),t))},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){let n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let t=0;t<n;t++){let t=rb();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){e.isRecursive&&0!==e.ref&&(e.ref=t.reffedNodesByReferencer.get(e).number)}};function im(e){rM(e,{"*"({node:e,parent:t}){e.parent=t}})}function ig(e){let t=r_(e);return t.isRecursive=!0,t}function iy(e,t){if(t.has(e))return t.get(e);let n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,n),n}function ib(e){let t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return(e.forEach(({flags:e})=>{t.forEach(t=>{e.enable?.[t]&&(delete n.disable[t],n.enable[t]=!0),e.disable?.[t]&&(n.disable[t]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable)?n:null}function ik(e){if(!e)throw Error("Node expected");let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function ix(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function iv(e,t){let n=rf(e,{...t,unicodePropertyMap:ir}).body;return n.length>1||n[0].body.length>1?rw({body:n}):n[0].body[0]}function iw(e,t){return e.negate=t,e}function iS(e,t){return e.parent=t,e}function iC(e,t){return im(e),e.parent=t,e}var i_={"*":{enter({node:e},t){if(i$(e)){let n=t.getCurrentModI();t.pushModI(e.flags?r3({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){i$(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){iL(r1(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),iR(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){"property"===e.kind&&ic.has(e.value)&&t.setHasCasedChar()}},iA={Alternative:({body:e},t,n)=>e.map(n).join(""),Assertion({kind:e,negate:t}){if("string_end"===e)return"$";if("string_start"===e)return"^";if("word_boundary"===e)return t?r2`\B`:r2`\b`;throw Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if("number"!=typeof e)throw Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&"strict"===t.accuracy&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,n){let{body:r,name:i,number:a}=e,l={ignoreCase:t.currentFlags.ignoreCase},o=t.originMap.get(e);return o&&(l.hidden=!0,a>o.number&&(l.transferTo=o.number)),t.captureMap.set(a,l),`(${i?`?<${i}>`:""}${r.map(n).join("|")})`},Character({value:e},t){let n=r1(e),r=iM(e,{escDigit:"Backreference"===t.lastNode.type,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&iL(n)){let e=it(n);return t.inCharClass?e.join(""):e.length>1?`[${e.join("")}]`:e[0]}return n},CharacterClass(e,t,n){let{kind:r,negate:i,parent:a}=e,{body:l}=e;if("intersection"===r&&!t.useFlagV)throw Error("Use of class intersection requires min target ES2024");r4.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&l.some(iO)&&(l=[rk(45),...l.filter(e=>!iO(e))]);let o=()=>`[${i?"^":""}${l.map(n).join("intersection"===r?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||r4.bugNestedClassIgnoresNegation)&&!i){let t=l.filter(e=>"CharacterClass"===e.type&&"union"===e.kind&&e.negate);if(t.length){let r=rw(),i=r.body[0];return r.parent=a,i.parent=r,e.body=l=l.filter(e=>!t.includes(e)),l.length?(e.parent=i,i.body.push(e)):r.body.pop(),t.forEach(e=>{let t=rm({body:[e]});e.parent=t,t.parent=r,r.body.push(t)}),n(r)}}t.inCharClass=!0;let r=o();return t.inCharClass=!1,r}let s=l[0];if("union"===r&&!i&&s&&((!t.useFlagV||!t.verbose)&&"union"===a.kind&&!(r4.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&"intersection"===a.kind&&1===l.length&&"CharacterClassRange"!==s.type))return l.map(n).join("");if(!t.useFlagV&&"CharacterClass"===a.type)throw Error("Use of nested character class requires min target ES2024");return o()},CharacterClassRange(e,t){let n=e.min.value,r=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},a=iM(n,i),l=iM(r,i),o=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&(function(e){let t=e.map(e=>e.codePointAt(0)).sort((e,t)=>e-t),n=[],r=null;for(let e=0;e<t.length;e++)t[e+1]===t[e]+1?r??=t[e]:null===r?n.push(t[e]):(n.push([r,t[e]]),r=null);return n})(iR(e)).forEach(e=>{o.add(Array.isArray(e)?`${iM(e[0],i)}-${iM(e[1],i)}`:iM(e,i))}),`${a}-${l}${[...o].join("")}`},CharacterSet({kind:e,negate:t,value:n,key:r},i){if("dot"===e)return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?".":"[^]":r2`[^\n]`;if("digit"===e)return t?r2`\D`:r2`\d`;if("property"===e){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&ic.has(n))throw Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?r2`\P`:r2`\p`}{${r?`${r}=`:""}${n}}`}if("word"===e)return t?r2`\W`:r2`\w`;throw Error(`Unexpected character set kind "${e}"`)},Flags:(e,t)=>(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":""),Group({atomic:e,body:t,flags:n,parent:r},i,a){let l=i.currentFlags;n&&(i.currentFlags=r3(l,n));let o=t.map(a).join("|"),s=i.verbose||1!==t.length||"Quantifier"===r.type||e||i.useFlagMods&&n?`(?${function(e,t,n){if(e)return">";let r="";if(t&&n){let{enable:e,disable:n}=t;r=(e?.ignoreCase?"i":"")+(e?.dotAll?"s":"")+(n?"-":"")+(n?.ignoreCase?"i":"")+(n?.dotAll?"s":"")}return`${r}:`}(e,n,i.useFlagMods)}${o})`:o;return i.currentFlags=l,s},LookaroundAssertion({body:e,kind:t,negate:n},r,i){let a=`${"lookahead"===t?"":"<"}${n?"!":"="}`;return`(?${a}${e.map(i).join("|")})`},Quantifier:(e,t,n)=>n(e.body)+function({kind:e,max:t,min:n}){return(n||1!==t?n||t!==1/0?1===n&&t===1/0?"+":n===t?`{${n}}`:`{${n},${t===1/0?"":t}}`:"*":"?")+({greedy:"",lazy:"?",possessive:"+"})[e]}(e),Subroutine({isRecursive:e,ref:t},n){if(!e)throw Error("Unexpected non-recursive subroutine in transformed AST");let r=n.recursionLimit;return 0===t?`(?R=${r})`:r2`\g<${t}&R=${r}>`}},iE=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),iN=new Set(["-","\\","]","^","["]),iP=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),iT=new Map([[9,r2`\t`],[10,r2`\n`],[11,r2`\v`],[12,r2`\f`],[13,r2`\r`],[8232,r2`\u2028`],[8233,r2`\u2029`],[65279,r2`\uFEFF`]]),iI=/^\p{Cased}$/u;function iL(e){return iI.test(e)}function iR(e,t){let n=!!t?.firstOnly,r=e.min.value,i=e.max.value,a=[];if(r<65&&(65535===i||i>=131071)||65536===r&&i>=131071)return a;for(let e=r;e<=i;e++){let t=r1(e);if(!iL(t))continue;let l=it(t).filter(e=>{let t=e.codePointAt(0);return t<r||t>i});if(l.length&&(a.push(...l),n))break}return a}function iM(e,{escDigit:t,inCharClass:n,useFlagV:r}){var i;if(iT.has(e))return iT.get(e);if(e<32||e>126&&e<160||e>262143||t&&(i=e)>47&&i<58)return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;let a=r1(e);return((n?r?iP:iN:iE).has(a)?"\\":"")+a}function i$({type:e}){return"CapturingGroup"===e||"Group"===e||"LookaroundAssertion"===e}function iO({type:e,value:t}){return"Character"===e&&45===t}var iD=class e extends RegExp{#e=new Map;#t=null;#n;#r=null;#i=null;rawOptions={};get source(){return this.#n||"(?:)"}constructor(t,n,r){let i=!!r?.lazyCompile;if(t instanceof RegExp){if(r)throw Error("Cannot provide options when copying a regexp");super(t,n),this.#n=t.source,t instanceof e&&(this.#e=t.#e,this.#r=t.#r,this.#i=t.#i,this.rawOptions=t.rawOptions)}else{let e={hiddenCaptures:[],strategy:null,transfers:[],...r};super(i?"":t,n),this.#n=t,this.#e=function(e,t){let n=new Map;for(let t of e)n.set(t,{hidden:!0});for(let[e,r]of t)for(let t of r)r5(n,t,{}).transferTo=e;return n}(e.hiddenCaptures,e.transfers),this.#i=e.strategy,this.rawOptions=r??{}}i||(this.#t=this)}exec(t){if(!this.#t){let{lazyCompile:t,...n}=this.rawOptions;this.#t=new e(this.#n,this.flags,n)}let n=this.global||this.sticky,r=this.lastIndex;if("clip_search"===this.#i&&n&&r){this.lastIndex=0;let e=this.#a(t.slice(r));return e&&(function(e,t,n,r){if(e.index+=t,e.input=n,r){let n=e.indices;for(let e=0;e<n.length;e++){let r=n[e];r&&(n[e]=[r[0]+t,r[1]+t])}let r=n.groups;r&&Object.keys(r).forEach(e=>{let n=r[e];n&&(r[e]=[n[0]+t,n[1]+t])})}}(e,r,t,this.hasIndices),this.lastIndex+=r),e}return this.#a(t)}#a(e){let t;this.#t.lastIndex=this.lastIndex;let n=super.exec.call(this.#t,e);if(this.lastIndex=this.#t.lastIndex,!n||!this.#e.size)return n;let r=[...n];n.length=1,this.hasIndices&&(t=[...n.indices],n.indices.length=1);let i=[0];for(let e=1;e<r.length;e++){let{hidden:a,transferTo:l}=this.#e.get(e)??{};if(a?i.push(null):(i.push(n.length),n.push(r[e]),this.hasIndices&&n.indices.push(t[e])),l&&void 0!==r[e]){let a=i[l];if(!a)throw Error(`Invalid capture transfer to "${a}"`);if(n[a]=r[e],this.hasIndices&&(n.indices[a]=t[e]),n.groups){this.#r||(this.#r=function(e){let t,n=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,r=new Map,i=0,a=0;for(;t=n.exec(e);){let{0:e,groups:{capture:n,name:l}}=t;"["===e?i++:i?"]"===e&&i--:n&&(a++,l&&r.set(a,l))}return r}(this.source));let i=this.#r.get(l);i&&(n.groups[i]=r[e],this.hasIndices&&(n.indices.groups[i]=t[e]))}}}return n}};class ij{constructor(e,t={}){this.patterns=e,this.options=t;let{forgiving:n=!1,cache:r,regexConstructor:i}=t;if(!i)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if("string"!=typeof e)return e;let t=r?.get(e);if(t){if(t instanceof RegExp)return t;if(n)return null;throw t}try{let t=i(e);return r?.set(e,t),t}catch(t){if(r?.set(e,t),n)return null;throw t}})}regexps;findNextMatchSync(e,t,n){let r="string"==typeof e?e:e.content,i=[];function a(e,t,n=0){return{index:e,captureIndices:t.indices.map(e=>null==e?{start:0xffffffff,end:0xffffffff,length:0}:{start:e[0]+n,end:e[1]+n,length:e[1]-e[0]})}}for(let e=0;e<this.regexps.length;e++){let n=this.regexps[e];if(n)try{n.lastIndex=t;let l=n.exec(r);if(!l)continue;if(l.index===t)return a(e,l,0);i.push([e,l,0])}catch(e){if(this.options.forgiving)continue;throw e}}if(i.length){let e=Math.min(...i.map(e=>e[1].index));for(let[t,n,r]of i)if(n.index===e)return a(t,n,r)}return null}}var iz=n(66966),iF=n(52154);function iB(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var iH=iB(),iG={exec:()=>null};function iU(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(iq.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var iq={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},iW=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,iV=/(?:[*+-]|\d{1,9}[.)])/,iQ=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,iZ=iU(iQ).replace(/bull/g,iV).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),iX=iU(iQ).replace(/bull/g,iV).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),iJ=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,iK=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,iY=iU(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",iK).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),i0=iU(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,iV).getRegex(),i1="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",i2=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,i4=iU("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",i2).replace("tag",i1).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),i3=iU(iJ).replace("hr",iW).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",i1).getRegex(),i5={blockquote:iU(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",i3).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:iY,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:iW,html:i4,lheading:iZ,list:i0,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:i3,table:iG,text:/^[^\n]+/},i9=iU("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",iW).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",i1).getRegex(),i8={...i5,lheading:iX,table:i9,paragraph:iU(iJ).replace("hr",iW).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",i9).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",i1).getRegex()},i6={...i5,html:iU(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",i2).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:iG,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:iU(iJ).replace("hr",iW).replace("heading",` *#{1,6} *[^
139
+ ]`).replace("lheading",iZ).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},i7=/^( {2,}|\\)\n(?!\s*$)/,ae=/[\p{P}\p{S}]/u,at=/[\s\p{P}\p{S}]/u,an=/[^\s\p{P}\p{S}]/u,ar=iU(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,at).getRegex(),ai=/(?!~)[\p{P}\p{S}]/u,aa=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,al=iU(aa,"u").replace(/punct/g,ae).getRegex(),ao=iU(aa,"u").replace(/punct/g,ai).getRegex(),as="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",au=iU(as,"gu").replace(/notPunctSpace/g,an).replace(/punctSpace/g,at).replace(/punct/g,ae).getRegex(),ac=iU(as,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,ai).getRegex(),ad=iU("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,an).replace(/punctSpace/g,at).replace(/punct/g,ae).getRegex(),ah=iU(/\\(punct)/,"gu").replace(/punct/g,ae).getRegex(),ap=iU(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),af=iU(i2).replace("(?:--\x3e|$)","--\x3e").getRegex(),am=iU("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",af).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ag=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/,ay=iU(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",ag).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ab=iU(/^!?\[(label)\]\[(ref)\]/).replace("label",ag).replace("ref",iK).getRegex(),ak=iU(/^!?\[(ref)\](?:\[\])?/).replace("ref",iK).getRegex(),ax=iU("reflink|nolink(?!\\()","g").replace("reflink",ab).replace("nolink",ak).getRegex(),av={_backpedal:iG,anyPunctuation:ah,autolink:ap,blockSkip:/\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,br:i7,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:iG,emStrongLDelim:al,emStrongRDelimAst:au,emStrongRDelimUnd:ad,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:ay,nolink:ak,punctuation:ar,reflink:ab,reflinkSearch:ax,tag:am,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:iG},aw={...av,link:iU(/^!?\[(label)\]\((.*?)\)/).replace("label",ag).getRegex(),reflink:iU(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ag).getRegex()},aS={...av,emStrongRDelimAst:ac,emStrongLDelim:ao,url:iU(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},aC={...aS,br:iU(i7).replace("{2,}","*").getRegex(),text:iU(aS.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},a_={normal:i5,gfm:i8,pedantic:i6},aA={normal:av,gfm:aS,breaks:aC,pedantic:aw},aE={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},aN=e=>aE[e];function aP(e,t){if(t){if(iq.escapeTest.test(e))return e.replace(iq.escapeReplace,aN)}else if(iq.escapeTestNoEncode.test(e))return e.replace(iq.escapeReplaceNoEncode,aN);return e}function aT(e){try{e=encodeURI(e).replace(iq.percentDecode,"%")}catch{return null}return e}function aI(e,t){let n=e.replace(iq.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(iq.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(iq.slashPipe,"|");return n}function aL(e,t,n){let r=e.length;if(0===r)return"";let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a!==t||n)if(a!==t&&n)i++;else break;else i++}return e.slice(0,r-i)}function aR(e,t,n,r,i){let a=t.href,l=t.title||null,o=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let s={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:a,title:l,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,s}var aM=class{options;rules;lexer;constructor(e){this.options=e||iH}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:aL(e,`
140
+ `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let i=r[1];return t.split(`
141
+ `).map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
142
+ `)}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=aL(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:aL(t[0],`
143
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=aL(t[0],`
144
+ `).split(`
145
+ `),n="",r="",i=[];for(;e.length>0;){let t=!1,a=[],l;for(l=0;l<e.length;l++)if(this.rules.other.blockquoteStart.test(e[l]))a.push(e[l]),t=!0;else if(t)break;else a.push(e[l]);e=e.slice(l);let o=a.join(`
146
+ `),s=o.replace(this.rules.other.blockquoteSetextReplace,`
147
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
148
+ ${o}`:o,r=r?`${r}
149
+ ${s}`:s;let u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(s,i,!0),this.lexer.state.top=u,0===e.length)break;let c=i.at(-1);if(c?.type==="code")break;if(c?.type==="blockquote"){let t=c.raw+`
150
+ `+e.join(`
151
+ `),a=this.blockquote(t);i[i.length-1]=a,n=n.substring(0,n.length-c.raw.length)+a.raw,r=r.substring(0,r.length-c.text.length)+a.text;break}if(c?.type==="list"){let t=c.raw+`
152
+ `+e.join(`
153
+ `),a=this.list(t);i[i.length-1]=a,n=n.substring(0,n.length-c.raw.length)+a.raw,r=r.substring(0,r.length-c.raw.length)+a.raw,e=t.substring(i.at(-1).raw.length).split(`
154
+ `);continue}}return{type:"blockquote",raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),l=!1;for(;e;){let n=!1,r="",o="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let s=t[2].split(`
155
+ `,1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),u=e.split(`
156
+ `,1)[0],c=!s.trim(),d=0;if(this.options.pedantic?(d=2,o=s.trimStart()):c?d=t[1].length+1:(d=(d=t[2].search(this.rules.other.nonSpaceChar))>4?1:d,o=s.slice(d),d+=t[1].length),c&&this.rules.other.blankLine.test(u)&&(r+=u+`
157
+ `,e=e.substring(u.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),l=this.rules.other.htmlBeginRegex(d);for(;e;){let h=e.split(`
158
+ `,1)[0],p;if(u=h,p=this.options.pedantic?u=u.replace(this.rules.other.listReplaceNesting," "):u.replace(this.rules.other.tabCharGlobal," "),i.test(u)||a.test(u)||l.test(u)||t.test(u)||n.test(u))break;if(p.search(this.rules.other.nonSpaceChar)>=d||!u.trim())o+=`
159
+ `+p.slice(d);else{if(c||s.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(s)||a.test(s)||n.test(s))break;o+=`
160
+ `+u}c||u.trim()||(c=!0),r+=h+`
161
+ `,e=e.substring(h.length+1),s=p.slice(d)}}i.loose||(l?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(l=!0));let h=null,p;this.options.gfm&&(h=this.rules.other.listIsTask.exec(o))&&(p="[ ] "!==h[0],o=o.replace(this.rules.other.listReplaceTask,"")),i.items.push({type:"list_item",raw:r,task:!!h,checked:p,loose:!1,text:o,tokens:[]}),i.raw+=r}let o=i.items.at(-1);if(!o)return;o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd(),i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[e].tokens.filter(e=>"space"===e.type);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=aI(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
162
+ `):[],a={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push("right"):this.rules.other.tableAlignCenter.test(e)?a.align.push("center"):this.rules.other.tableAlignLeft.test(e)?a.align.push("left"):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(aI(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
163
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=aL(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(")"))return -1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if("("===e[r])n++;else if(e[r]===t[1]&&--n<0)return r;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),aR(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return aR(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,l=n,o=0,s="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(s.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=s.exec(t));){if(!(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6]))continue;if(a=[...i].length,r[3]||r[4]){l+=a;continue}if((r[5]||r[6])&&n%3&&!((n+a)%3)){o+=a;continue}if((l-=a)>0)continue;a=Math.min(a,a+l+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=s.slice(1,-1);return{type:"em",raw:s,text:e,tokens:this.lexer.inlineTokens(e)}}let u=s.slice(2,-2);return{type:"strong",raw:s,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return n="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])n="mailto:"+(e=t[0]);else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(r!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},a$=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||iH,this.options.tokenizer=this.options.tokenizer||new aM,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:iq,block:a_.normal,inline:aA.normal};this.options.pedantic?(t.block=a_.pedantic,t.inline=aA.pedantic):this.options.gfm&&(t.block=a_.gfm,this.options.breaks?t.inline=aA.breaks:t.inline=aA.gfm),this.tokenizer.rules=t}static get rules(){return{block:a_,inline:aA}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(iq.carriageReturn,`
164
+ `),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(iq.tabCharGlobal," ").replace(iq.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);1===r.raw.length&&void 0!==n?n.raw+=`
165
+ `:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(`
166
+ `)?"":`
167
+ `)+r.raw,n.text+=`
168
+ `+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if((r=this.tokenizer.fences(e))||(r=this.tokenizer.heading(e))||(r=this.tokenizer.hr(e))||(r=this.tokenizer.blockquote(e))||(r=this.tokenizer.list(e))||(r=this.tokenizer.html(e))){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(`
169
+ `)?"":`
170
+ `)+r.raw,n.text+=`
171
+ `+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if((r=this.tokenizer.table(e))||(r=this.tokenizer.lheading(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let a=t.at(-1);n&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(`
172
+ `)?"":`
173
+ `)+r.raw,a.text+=`
174
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="text"?(n.raw+=(n.raw.endsWith(`
175
+ `)?"":`
176
+ `)+r.raw,n.text+=`
177
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(n));)e.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,r.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(n));)n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let i=!1,a="";for(;e;){let r;if(i||(a=""),i=!1,this.options.extensions?.inline?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if((r=this.tokenizer.escape(e))||(r=this.tokenizer.tag(e))||(r=this.tokenizer.link(e))){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);"text"===r.type&&n?.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if((r=this.tokenizer.emStrong(e,n,a))||(r=this.tokenizer.codespan(e))||(r=this.tokenizer.br(e))||(r=this.tokenizer.del(e))||(r=this.tokenizer.autolink(e))||!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let l=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(l=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(l)){e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(a=r.raw.slice(-1)),i=!0;let n=t.at(-1);n?.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},aO=class{options;parser;constructor(e){this.options=e||iH}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(iq.notSpaceStart)?.[0],i=e.replace(iq.endingNewline,"")+`
178
+ `;return r?'<pre><code class="language-'+aP(r)+'">'+(n?i:aP(i,!0))+`</code></pre>
179
+ `:"<pre><code>"+(n?i:aP(i,!0))+`</code></pre>
180
+ `}blockquote({tokens:e}){return`<blockquote>
181
+ ${this.parser.parse(e)}</blockquote>
182
+ `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
183
+ `}hr(e){return`<hr>
184
+ `}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+`>
185
+ `+r+"</"+i+`>
186
+ `}listitem(e){let t="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+aP(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
187
+ `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
188
+ `}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n="";for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
189
+ <thead>
190
+ `+t+`</thead>
191
+ `+r+`</table>
192
+ `}tablerow({text:e}){return`<tr>
193
+ ${e}</tr>
194
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
195
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${aP(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=aT(e);if(null===i)return r;let a='<a href="'+(e=i)+'"';return t&&(a+=' title="'+aP(t)+'"'),a+=">"+r+"</a>"}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=aT(e);if(null===i)return aP(n);e=i;let a=`<img src="${e}" alt="${n}"`;return t&&(a+=` title="${aP(t)}"`),a+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:aP(e.text)}},aD=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},aj=class e{options;renderer;textRenderer;constructor(e){this.options=e||iH,this.options.renderer=this.options.renderer||new aO,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new aD}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(i.type)){n+=e||"";continue}}switch(i.type){case"space":n+=this.renderer.space(i);continue;case"hr":n+=this.renderer.hr(i);continue;case"heading":n+=this.renderer.heading(i);continue;case"code":n+=this.renderer.code(i);continue;case"table":n+=this.renderer.table(i);continue;case"blockquote":n+=this.renderer.blockquote(i);continue;case"list":n+=this.renderer.list(i);continue;case"html":n+=this.renderer.html(i);continue;case"def":n+=this.renderer.def(i);continue;case"paragraph":n+=this.renderer.paragraph(i);continue;case"text":{let a=i,l=this.renderer.text(a);for(;r+1<e.length&&"text"===e[r+1].type;)a=e[++r],l+=`
196
+ `+this.renderer.text(a);t?n+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l,escaped:!0}]}):n+=l;continue}default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}parseInline(e,t=this.renderer){let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=e||"";continue}}switch(i.type){case"escape":case"text":n+=t.text(i);break;case"html":n+=t.html(i);break;case"link":n+=t.link(i);break;case"image":n+=t.image(i);break;case"strong":n+=t.strong(i);break;case"em":n+=t.em(i);break;case"codespan":n+=t.codespan(i);break;case"br":n+=t.br(i);break;case"del":n+=t.del(i);break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}},az=class{options;block;constructor(e){this.options=e||iH}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?a$.lex:a$.lexInline}provideParser(){return this.block?aj.parse:aj.parseInline}},aF=new class{defaults=iB();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=aj;Renderer=aO;TextRenderer=aD;Lexer=a$;Tokenizer=aM;Hooks=az;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":for(let e of r.header)n=n.concat(this.walkTokens(e.tokens,t));for(let e of r.rows)for(let r of e)n=n.concat(this.walkTokens(r.tokens,t));break;case"list":n=n.concat(this.walkTokens(r.items,t));break;default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new aO(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=e.renderer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new aM(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=e.tokenizer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new az;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=e.hooks[n],i=t[n];az.passThroughHooks.has(n)?t[n]=e=>{if(this.defaults.async)return Promise.resolve(r.call(t,e)).then(e=>i.call(t,e));let n=r.call(t,e);return i.call(t,n)}:t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return a$.lex(e,t??this.defaults)}parser(e,t){return aj.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return a(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return a(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return a(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));i.hooks&&(i.hooks.options=i,i.hooks.block=e);let l=i.hooks?i.hooks.provideLexer():e?a$.lex:a$.lexInline,o=i.hooks?i.hooks.provideParser():e?aj.parse:aj.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(t):t).then(e=>l(e,i)).then(e=>i.hooks?i.hooks.processAllTokens(e):e).then(e=>i.walkTokens?Promise.all(this.walkTokens(e,i.walkTokens)).then(()=>e):e).then(e=>o(e,i)).then(e=>i.hooks?i.hooks.postprocess(e):e).catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let e=l(t,i);i.hooks&&(e=i.hooks.processAllTokens(e)),i.walkTokens&&this.walkTokens(e,i.walkTokens);let n=o(e,i);return i.hooks&&(n=i.hooks.postprocess(n)),n}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
197
+ Please report this to https://github.com/markedjs/marked.`,e){let e="<p>An error occurred:</p><pre>"+aP(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function aB(e,t){return aF.parse(e,t)}aB.options=aB.setOptions=function(e){return aF.setOptions(e),aB.defaults=aF.defaults,iH=aB.defaults,aB},aB.getDefaults=iB,aB.defaults=iH,aB.use=function(...e){return aF.use(...e),aB.defaults=aF.defaults,iH=aB.defaults,aB},aB.walkTokens=function(e,t){return aF.walkTokens(e,t)},aB.parseInline=aF.parseInline,aB.Parser=aj,aB.parser=aj.parse,aB.Renderer=aO,aB.TextRenderer=aD,aB.Lexer=a$,aB.lexer=a$.lex,aB.Tokenizer=aM,aB.Hooks=az,aB.parse=aB,aB.options,aB.setOptions,aB.use,aB.walkTokens,aB.parseInline,aj.parse,a$.lex;var aH=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,iF.QP)((0,iz.$)(t))},aG=(e,t,n)=>{let r="string"==typeof t?new Blob([t],{type:n}):t,i=URL.createObjectURL(r),a=document.createElement("a");a.href=i,a.download=e,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(i)},aU=/<pre(\s|>)/,aq=(0,a.createContext)({code:""}),aW=new class{async ensureHighlightersInitialized(e,t){var n,r;let[i,a]=e,l=function(e={}){let t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=e=>(function(e,t){let n=function(e,t){let n=r6(t),r=function(e,t){let n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};im(e);let r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:r9[n.bestEffortTarget]>=r9.ES2024,passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};rM(e,id,r);let i={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},a={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};return rM(e,ih,a),rM(e,ip,{groupsByName:a.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:a.reffedNodesByReferencer}),e._originMap=a.groupOriginByCopy,e._strategy=r.strategy,e}(rf(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:ir}),{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),i=function(e,t){let n=r6(t),r=r9[n.target]>=r9.ES2024,i=r9[n.target]>=r9.ES2025,a=n.rules.recursionLimit;if(!Number.isInteger(a)||a<2||a>20)throw Error("Invalid recursionLimit; use 2-20");let l=null,o=null;if(!i){let t=[e.flags.ignoreCase];rM(e,i_,{getCurrentModI:()=>t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)},setHasCasedChar(){t.at(-1)?l=!0:o=!0}})}let s={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||l)&&!o)},u=e,c={accuracy:n.accuracy,appliedGlobalFlags:s,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:u,originMap:e._originMap,recursionLimit:a,useAppliedIgnoreCase:!!(!i&&l&&o),useFlagMods:i,useFlagV:r,verbose:n.verbose};function d(e){return c.lastNode=u,u=e,(function(e,t){if(null==e)throw Error(t??"Value expected");return e})(iA[e.type],`Unexpected node type "${e.type}"`)(e,c,d)}let h={pattern:e.body.map(d).join("|"),flags:d(e.flags),options:{...e.options}};return r||(delete h.options.force.v,h.options.disable.v=!0,h.options.unicodeSetsPlugin=null),h._captureTransfers=new Map,h._hiddenCaptures=[],c.captureMap.forEach((e,t)=>{e.hidden&&h._hiddenCaptures.push(t),e.transferTo&&r5(h._captureTransfers,e.transferTo,[]).push(t)}),h}(r,n),a=function(e,t){let n,{hiddenCaptures:r,mode:i}={hiddenCaptures:[],mode:"plugin",...t},a=t?.captureTransfers??new Map;if(!RegExp(rW,"su").test(e))return{pattern:e,captureTransfers:a,hiddenCaptures:r};if("plugin"===i&&rF(e,rU`\(\?\(DEFINE\)`,rj.DEFAULT))throw Error("DEFINE groups cannot be used with recursion");let l=[],o=rF(e,rU`\\[1-9]`,rj.DEFAULT),s=new Map,u=[],c=!1,d=0,h=0;for(rZ.lastIndex=0;n=rZ.exec(e);){let{0:t,groups:{captureName:p,rDepth:f,gRNameOrNum:m,gRDepth:g}}=n;if("["===t)d++;else if(d)"]"===t&&d--;else if(f){if(rJ(f),c)throw Error(rX);if(o)throw Error(`${"external"===i?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);let t=e.slice(0,n.index),s=e.slice(rZ.lastIndex);if(rF(s,rW,rj.DEFAULT))throw Error(rX);let u=f-1;e=rK(t,s,u,!1,r,l,h),a=r0(a,t,u,l.length,0,h);break}else if(m){rJ(g);let d=!1;for(let e of u)if(e.name===m||e.num===+m){if(d=!0,e.hasRecursedWithin)throw Error(rX);break}if(!d)throw Error(rU`Recursive \g cannot be used outside the referenced group "${"external"===i?m:rU`\g<${m}&R=${g}>`}"`);let p=s.get(m),f=function(e,t){let n,r=/\\?./gsu;r.lastIndex=t;let i=e.length,a=0,l=1;for(;n=r.exec(e);){let[e]=n;if("["===e)a++;else if(a)"]"===e&&a--;else if("("===e)l++;else if(")"===e&&!--l){i=n.index;break}}return e.slice(t,i)}(e,p);if(o&&rF(f,rU`${rV}|\((?!\?)`,rj.DEFAULT))throw Error(`${"external"===i?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);let y=e.slice(p,n.index),b=f.slice(y.length+t.length),k=l.length,x=g-1,v=rK(y,b,x,!0,r,l,h);a=r0(a,y,x,l.length-k,k,h);let w=e.slice(0,p),S=e.slice(p+f.length);e=`${w}${v}${S}`,rZ.lastIndex+=v.length-t.length-y.length-b.length,u.forEach(e=>e.hasRecursedWithin=!0),c=!0}else if(p)h++,s.set(String(h),rZ.lastIndex),s.set(p,rZ.lastIndex),u.push({num:h,name:p});else if("("===t[0]){let e="("===t;e&&(h++,s.set(String(h),rZ.lastIndex)),u.push(e?{num:h}:{})}else")"===t&&u.pop()}return r.push(...l),{pattern:e,captureTransfers:a,hiddenCaptures:r}}(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:"external"}),l=function(e,t){let n,r=t?.hiddenCaptures??[],i=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:i,hiddenCaptures:r};let a="(?:(?=(",l=[0],o=[],s=0,u=0,c=NaN;do{let t;n=!1;let d=0,h=0,p=!1;for(rB.lastIndex=Number.isNaN(c)?0:c+a.length;t=rB.exec(e);){let{0:f,index:m,groups:{capturingStart:g,noncapturingStart:y}}=t;if("["===f)d++;else if(d)"]"===f&&d--;else if("(?>"!==f||p){if(p&&y)h++;else if(g)p?h++:(s++,l.push(s+u));else if(")"===f&&p){if(!h){let t=s+ ++u;e=`${e.slice(0,c)}${a}${e.slice(c+3,m)}))<$$${t}>)${e.slice(m+1)}`,n=!0,o.push(t);for(let e=0;e<r.length;e++)r[e]>=t&&r[e]++;if(i.size){let e=new Map;i.forEach((n,r)=>{e.set(r>=t?r+1:r,n.map(e=>e>=t?e+1:e))}),i=e}break}h--}}else c=m,p=!0}}while(n);return r.push(...o),{pattern:e=rz(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:e,groups:{backrefNum:t,wrappedBackrefNum:n}})=>{if(t){let n=+t;if(n>l.length-1)throw Error(`Backref "${e}" greater than number of captures`);return`\\${l[n]}`}return`\\${n}`},rj.DEFAULT),captureTransfers:i,hiddenCaptures:r}}(function(e){let t;if(!RegExp(`${rH}\\+`).test(e))return{pattern:e};let n=[],r=null,i=null,a="",l=0;for(rG.lastIndex=0;t=rG.exec(e);){let{0:u,index:c,groups:{qBase:d,qMod:h,invalidQ:p}}=t;if("["===u)l||(i=c),l++;else if("]"===u)l?l--:i=null;else if(!l)if("+"===h&&a&&!a.startsWith("(")){if(p)throw Error(`Invalid quantifier "${u}"`);let t=-1;if(/^\{\d+\}$/.test(d)){var o,s;o=e,s=c+d.length,e=o.slice(0,s)+""+o.slice(s+h.length)}else{if(")"===a||"]"===a){let t=")"===a?r:i;if(null===t)throw Error(`Invalid unmatched "${a}"`);e=`${e.slice(0,t)}(?>${e.slice(t,c)}${d})${e.slice(c+u.length)}`}else e=`${e.slice(0,c-a.length)}(?>${a}${d})${e.slice(c+u.length)}`;t+=4}rG.lastIndex+=t}else"("===u[0]?n.push(c):")"===u&&(r=n.length?n.pop():null);a=u}return{pattern:e}}(a.pattern).pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),o={pattern:l.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${i.flags}${i.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw Error("Lazy compilation requires subclass")}else{let e=l.hiddenCaptures.sort((e,t)=>e-t),t=Array.from(l.captureTransfers),i=r._strategy,a=o.pattern.length>=n.lazyCompileLength;(e.length||t.length||i||a)&&(o.options={...e.length&&{hiddenCaptures:e},...t.length&&{transfers:t},...i&&{strategy:i},...a&&{lazyCompile:a}})}return o}(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t});return n.options?new iD(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)})(e,{target:t.target}),{createScanner:e=>new ij(e,t),createString:e=>({content:e})}}({forgiving:!0}),o=!this.lightHighlighter||this.lightTheme!==i,s=!this.darkHighlighter||this.darkTheme!==a;(o||s)&&this.loadedLanguages.clear();let u=!this.loadedLanguages.has(t);if(o?(this.lightHighlighter=await n0({themes:[i],langs:[t],engine:l}),this.lightTheme=i,this.loadedLanguages.add(t)):u&&await (null==(n=this.lightHighlighter)?void 0:n.loadLanguage(t)),s){let e=u?[...this.loadedLanguages,t]:Array.from(this.loadedLanguages);this.darkHighlighter=await n0({themes:[a],langs:e.length>0?e:[t],engine:l}),this.darkTheme=a}else u&&await (null==(r=this.darkHighlighter)?void 0:r.loadLanguage(t));u&&this.loadedLanguages.add(t)}async highlightCode(e,t,n,r){var i,a;this.initializationPromise&&await this.initializationPromise,this.initializationPromise=this.ensureHighlightersInitialized(n,t),await this.initializationPromise,this.initializationPromise=null;let l=e=>r?e.replace(aU,'<pre class="'.concat(r,'"$1')):e,[o,s]=n,u=null==(i=this.lightHighlighter)?void 0:i.codeToHtml(e,{lang:t,theme:o}),c=null==(a=this.darkHighlighter)?void 0:a.codeToHtml(e,{lang:t,theme:s});return[aV(l(u)),aV(l(c))]}constructor(){this.lightHighlighter=null,this.darkHighlighter=null,this.lightTheme=null,this.darkTheme=null,this.loadedLanguages=new Set,this.initializationPromise=null}},aV=e=>e.replace(/(<pre[^>]*)(style="[^"]*background[^";]*;?[^"]*")([^>]*>)/g,"$1$3"),aQ=e=>{let{code:t,language:n,className:r,children:i,preClassName:l,...o}=e,[s,c]=(0,a.useState)(""),[d,h]=(0,a.useState)(""),p=(0,a.useRef)(!1),[f,m]=(0,a.useContext)(lc);return(0,a.useEffect)(()=>(p.current=!0,aW.highlightCode(t,n,[f,m],l).then(e=>{let[t,n]=e;p.current&&(c(t),h(n))}),()=>{p.current=!1}),[t,n,f,m,l]),(0,u.jsx)(aq.Provider,{value:{code:t},children:(0,u.jsxs)("div",{className:"my-4 w-full overflow-hidden rounded-xl border","data-code-block-container":!0,"data-language":n,children:[(0,u.jsxs)("div",{className:"flex items-center justify-between bg-muted/80 p-3 text-muted-foreground text-xs","data-code-block-header":!0,"data-language":n,children:[(0,u.jsx)("span",{className:"ml-1 font-mono lowercase",children:n}),(0,u.jsx)("div",{className:"flex items-center gap-2",children:i})]}),(0,u.jsx)("div",{className:"w-full",children:(0,u.jsxs)("div",{className:"min-w-full",children:[(0,u.jsx)("div",{className:aH("overflow-x-auto dark:hidden",r),dangerouslySetInnerHTML:{__html:s},"data-code-block":!0,"data-language":n,...o}),(0,u.jsx)("div",{className:aH("hidden overflow-x-auto dark:block",r),dangerouslySetInnerHTML:{__html:d},"data-code-block":!0,"data-language":n,...o})]})})]})})},aZ={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},aX=e=>{let{onDownload:t,onError:n,language:r,children:i,className:l,code:o,...s}=e,c=(0,a.useContext)(aq).code,d=null!=o?o:c,h="file.".concat(r&&r in aZ?aZ[r]:"txt");return(0,u.jsx)("button",{className:aH("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground",l),onClick:()=>{try{aG(h,d,"text/plain"),null==t||t()}catch(e){null==n||n(e)}},title:"Download file",type:"button",...s,children:null!=i?i:(0,u.jsx)(el,{size:14})})},aJ=e=>{let{onCopy:t,onError:n,timeout:r=2e3,children:i,className:l,code:o,...s}=e,[c,d]=(0,a.useState)(!1),h=(0,a.useRef)(0),p=(0,a.useContext)(aq).code,f=null!=o?o:p,m=async()=>{var e;if("undefined"==typeof window||!(null!=(e=null==navigator?void 0:navigator.clipboard)&&e.writeText)){null==n||n(Error("Clipboard API not available"));return}try{c||(await navigator.clipboard.writeText(f),d(!0),null==t||t(),h.current=window.setTimeout(()=>d(!1),r))}catch(e){null==n||n(e)}};return(0,a.useEffect)(()=>()=>{window.clearTimeout(h.current)},[]),(0,u.jsx)("button",{className:aH("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground",l),onClick:m,type:"button",...s,children:null!=i?i:(0,u.jsx)(c?eo:es,{size:14})})},aK=!1,aY=async()=>{if(!aK){let e=(await Promise.all([n.e(7983),n.e(573),n.e(7100),n.e(6073)]).then(n.bind(n,86073))).default;return e.initialize({startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0}),aK=!0,e}return(await Promise.all([n.e(7983),n.e(573),n.e(7100),n.e(6073)]).then(n.bind(n,86073))).default},a0=e=>{let{chart:t,className:n}=e,[r,i]=(0,a.useState)(null),[l,o]=(0,a.useState)(!0),[s,c]=(0,a.useState)(""),[d,h]=(0,a.useState)("");return((0,a.useEffect)(()=>{(async()=>{try{i(null),o(!0);let e=await aY(),n=t.split("").reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0),r="mermaid-".concat(Math.abs(n),"-").concat(Date.now(),"-").concat(Math.random().toString(36).substring(2,9)),{svg:a}=await e.render(r,t);c(a),h(a)}catch(e){d||s||i(e instanceof Error?e.message:"Failed to render Mermaid chart")}finally{o(!1)}})()},[t]),!l||s||d)?!r||s||d?(0,u.jsx)("div",{"aria-label":"Mermaid chart",className:aH("my-4 flex justify-center",n),dangerouslySetInnerHTML:{__html:s||d},role:"img"}):(0,u.jsxs)("div",{className:aH("rounded-lg border border-red-200 bg-red-50 p-4",n),children:[(0,u.jsxs)("p",{className:"font-mono text-red-700 text-sm",children:["Mermaid Error: ",r]}),(0,u.jsxs)("details",{className:"mt-2",children:[(0,u.jsx)("summary",{className:"cursor-pointer text-red-600 text-xs",children:"Show Code"}),(0,u.jsx)("pre",{className:"mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs",children:t})]})]}):(0,u.jsx)("div",{className:aH("my-4 flex justify-center p-4",n),children:(0,u.jsxs)("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[(0,u.jsx)("div",{className:"h-4 w-4 animate-spin rounded-full border-current border-b-2"}),(0,u.jsx)("span",{className:"text-sm",children:"Loading diagram..."})]})})};function a1(e){var t,n;let r=[],i=[];for(let n of e.querySelectorAll("thead th"))r.push((null==(t=n.textContent)?void 0:t.trim())||"");for(let t of e.querySelectorAll("tbody tr")){let e=[];for(let r of t.querySelectorAll("td"))e.push((null==(n=r.textContent)?void 0:n.trim())||"");i.push(e)}return{headers:r,rows:i}}function a2(e){let{headers:t,rows:n}=e,r=e=>e.includes(",")||e.includes('"')||e.includes("\n")?'"'.concat(e.replace(/"/g,'""'),'"'):e,i=[];for(let e of(t.length>0&&i.push(t.map(r).join(",")),n))i.push(e.map(r).join(","));return i.join("\n")}function a4(e){let{headers:t,rows:n}=e;if(0===t.length)return"";let r=[],i=t.map(e=>e.replace(/\|/g,"\\|"));for(let e of(r.push("| ".concat(i.join(" | ")," |")),r.push("| ".concat(t.map(()=>"---").join(" | ")," |")),n)){let n=[...e];for(;n.length<t.length;)n.push("");let i=n.map(e=>e.replace(/\|/g,"\\|"));r.push("| ".concat(i.join(" | ")," |"))}return r.join("\n")}var a3=e=>{let{children:t,className:n,onCopy:r,onError:i,timeout:l=2e3,format:o="markdown"}=e,[s,c]=(0,a.useState)(!1),d=(0,a.useRef)(0),h=async e=>{var t;if("undefined"==typeof window||!(null!=(t=null==navigator?void 0:navigator.clipboard)&&t.writeText)){null==i||i(Error("Clipboard API not available"));return}try{if(!s){let t=e.currentTarget.closest('[data-streamdown="table-wrapper"]'),n=null==t?void 0:t.querySelector("table");if(!n){null==i||i(Error("Table not found"));return}let a=a1(n),s="";switch(o){case"csv":default:s=a2(a);break;case"markdown":s=a4(a);break;case"text":s=a2(a).replace(/,/g," ")}await navigator.clipboard.writeText(s),c(!0),null==r||r(),d.current=window.setTimeout(()=>c(!1),l)}}catch(e){null==i||i(e)}};return(0,a.useEffect)(()=>()=>{window.clearTimeout(d.current)},[]),(0,u.jsx)("button",{className:aH("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground",n),onClick:h,title:"Copy table as ".concat(o),type:"button",children:null!=t?t:(0,u.jsx)(s?eo:es,{size:14})})},a5=e=>{let{children:t,className:n,onDownload:r,onError:i}=e,[l,o]=(0,a.useState)(!1),s=(0,a.useRef)(null),c=e=>{var t;try{let n=null==(t=s.current)?void 0:t.closest('[data-streamdown="table-wrapper"]'),a=null==n?void 0:n.querySelector("table");if(!a){null==i||i(Error("Table not found"));return}let l=a1(a),u="csv"===e?a2(l):a4(l);aG("table.".concat("csv"===e?"csv":"md"),u,"csv"===e?"text/csv":"text/markdown"),o(!1),null==r||r(e)}catch(e){null==i||i(e)}};return(0,a.useEffect)(()=>{let e=e=>{s.current&&!s.current.contains(e.target)&&o(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,u.jsxs)("div",{className:"relative",ref:s,children:[(0,u.jsx)("button",{className:aH("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground",n),onClick:()=>o(!l),title:"Download table",type:"button",children:null!=t?t:(0,u.jsx)(el,{size:14})}),l&&(0,u.jsxs)("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] rounded-md border border-border bg-white shadow-lg",children:[(0,u.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>c("csv"),type:"button",children:"CSV"}),(0,u.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>c("markdown"),type:"button",children:"Markdown"})]})]})},a9=/language-([^\s]+)/,a8={ol:e=>{let{node:t,children:n,className:r,...i}=e;return(0,u.jsx)("ol",{className:aH("ml-4 list-outside list-decimal whitespace-normal",r),"data-streamdown":"ordered-list",...i,children:n})},li:e=>{let{node:t,children:n,className:r,...i}=e;return(0,u.jsx)("li",{className:aH("py-1",r),"data-streamdown":"list-item",...i,children:n})},ul:e=>{let{node:t,children:n,className:r,...i}=e;return(0,u.jsx)("ul",{className:aH("ml-4 list-outside list-disc whitespace-normal",r),"data-streamdown":"unordered-list",...i,children:n})},hr:e=>{let{node:t,className:n,...r}=e;return(0,u.jsx)("hr",{className:aH("my-6 border-border",n),"data-streamdown":"horizontal-rule",...r})},strong:e=>{let{node:t,children:n,className:r,...i}=e;return(0,u.jsx)("span",{className:aH("font-semibold",r),"data-streamdown":"strong",...i,children:n})},a:e=>{let{node:t,children:n,className:r,href:i,...a}=e;return(0,u.jsx)("a",{className:aH("font-medium text-primary underline",r),"data-incomplete":"streamdown:incomplete-link"===i,"data-streamdown":"link",href:i,rel:"noreferrer",target:"_blank",...a,children:n})},h1:e=>{let{node:t,children:n,className:r,...i}=e;return(0,u.jsx)("h1",{className:aH("mt-6 mb-2 font-semibold text-3xl",r),"data-streamdown":"heading-1",...i,children:n})},h2:e=>{let{node:t,children:n,className:r,...i}=e;return(0,u.jsx)("h2",{className:aH("mt-6 mb-2 font-semibold text-2xl",r),"data-streamdown":"heading-2",...i,children:n})},h3:e=>{let{node:t,children:n,className:r,...i}=e;return(0,u.jsx)("h3",{className:aH("mt-6 mb-2 font-semibold text-xl",r),"data-streamdown":"heading-3",...i,children:n})},h4:e=>{let{node:t,children:n,className:r,...i}=e;return(0,u.jsx)("h4",{className:aH("mt-6 mb-2 font-semibold text-lg",r),"data-streamdown":"heading-4",...i,children:n})},h5:e=>{let{node:t,children:n,className:r,...i}=e;return(0,u.jsx)("h5",{className:aH("mt-6 mb-2 font-semibold text-base",r),"data-streamdown":"heading-5",...i,children:n})},h6:e=>{let{node:t,children:n,className:r,...i}=e;return(0,u.jsx)("h6",{className:aH("mt-6 mb-2 font-semibold text-sm",r),"data-streamdown":"heading-6",...i,children:n})},table:e=>{let{node:t,children:n,className:r,...i}=e;return(0,u.jsxs)("div",{className:"my-4 flex flex-col space-y-2","data-streamdown":"table-wrapper",children:[(0,u.jsxs)("div",{className:"flex items-center justify-end gap-1",children:[(0,u.jsx)(a3,{}),(0,u.jsx)(a5,{})]}),(0,u.jsx)("div",{className:"overflow-x-auto",children:(0,u.jsx)("table",{className:aH("w-full border-collapse border border-border",r),"data-streamdown":"table",...i,children:n})})]})},thead:e=>{let{node:t,children:n,className:r,...i}=e;return(0,u.jsx)("thead",{className:aH("bg-muted/80",r),"data-streamdown":"table-header",...i,children:n})},tbody:e=>{let{node:t,children:n,className:r,...i}=e;return(0,u.jsx)("tbody",{className:aH("divide-y divide-border bg-muted/40",r),"data-streamdown":"table-body",...i,children:n})},tr:e=>{let{node:t,children:n,className:r,...i}=e;return(0,u.jsx)("tr",{className:aH("border-border border-b",r),"data-streamdown":"table-row",...i,children:n})},th:e=>{let{node:t,children:n,className:r,...i}=e;return(0,u.jsx)("th",{className:aH("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",r),"data-streamdown":"table-header-cell",...i,children:n})},td:e=>{let{node:t,children:n,className:r,...i}=e;return(0,u.jsx)("td",{className:aH("px-4 py-2 text-sm",r),"data-streamdown":"table-cell",...i,children:n})},blockquote:e=>{let{node:t,children:n,className:r,...i}=e;return(0,u.jsx)("blockquote",{className:aH("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",r),"data-streamdown":"blockquote",...i,children:n})},code:e=>{var t,n,r;let{node:i,className:l,children:o,...s}=e;if((null==(t=null==i?void 0:i.position)?void 0:t.start.line)===(null==(n=null==i?void 0:i.position)?void 0:n.end.line))return(0,u.jsx)("code",{className:aH("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",l),"data-streamdown":"inline-code",...s,children:o});let c=null==l?void 0:l.match(a9),d=null!=(r=null==c?void 0:c.at(1))?r:"",h="";return(0,a.isValidElement)(o)&&o.props&&"object"==typeof o.props&&"children"in o.props&&"string"==typeof o.props.children?h=o.props.children:"string"==typeof o&&(h=o),"mermaid"===d?(0,u.jsxs)("div",{className:aH("group relative my-4 h-auto rounded-xl border p-4",l),"data-streamdown":"mermaid-block",children:[(0,u.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,u.jsx)(aX,{code:h,language:d}),(0,u.jsx)(aJ,{code:h})]}),(0,u.jsx)(a0,{chart:h})]}):(0,u.jsxs)(aQ,{className:aH("overflow-x-auto border-t",l),code:h,"data-language":d,"data-streamdown":"code-block",language:d,preClassName:"overflow-x-auto font-mono text-xs p-4 bg-muted/40",children:[(0,u.jsx)(aX,{code:h,language:d}),(0,u.jsx)(aJ,{})]})},img:e=>{let{node:t,className:n,src:r,alt:i,...a}=e,l=async()=>{var e;if(r)try{let t=await (await fetch(r)).blob(),n=new URL(r,window.location.origin).pathname.split("/").pop()||"",a=n.includes(".")&&(null==(e=n.split(".").pop())?void 0:e.length)<=4,l="";if(a)l=n;else{let e=t.type,r="png";e.includes("jpeg")||e.includes("jpg")?r="jpg":e.includes("png")?r="png":e.includes("svg")?r="svg":e.includes("gif")?r="gif":e.includes("webp")&&(r="webp"),l="".concat((i||n||"image").replace(/\.[^/.]+$/,""),".").concat(r)}aG(l,t,t.type)}catch(e){console.error("Failed to download image:",e)}};return r?(0,u.jsxs)("div",{className:"group relative my-4 inline-block","data-streamdown":"image-wrapper",children:[(0,u.jsx)("img",{alt:i,className:aH("max-w-full rounded-lg",n),"data-streamdown":"image",src:r,...a}),(0,u.jsx)("div",{className:"pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"}),(0,u.jsx)("button",{className:aH("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:l,title:"Download image",type:"button",children:(0,u.jsx)(el,{size:14})})]}):null},pre:e=>{let{children:t}=e;return t},sup:e=>{let{node:t,children:n,className:r,...i}=e;return(0,u.jsx)("sup",{className:aH("text-sm",r),"data-streamdown":"superscript",...i,children:n})},sub:e=>{let{node:t,children:n,className:r,...i}=e;return(0,u.jsx)("sub",{className:aH("text-sm",r),"data-streamdown":"subscript",...i,children:n})}},a6=/(!?\[)([^\]]*?)$/,a7=/(\*\*)([^*]*?)$/,le=/(__)([^_]*?)$/,lt=/(\*\*\*)([^*]*?)$/,ln=/(\*)([^*]*?)$/,lr=/(_)([^_]*?)$/,li=/(`)([^`]*?)$/,la=/(~~)([^~]*?)$/,ll=e=>{let t=(e.match(/```/g)||[]).length;return t>0&&t%2==0&&e.includes("\n")},lo=(e,t)=>{let n=!1,r=!1;for(let i=0;i<e.length&&i<t;i++){if("\\"===e[i]&&"$"===e[i+1]){i++;continue}"$"===e[i]&&("$"===e[i+1]?(r=!r,i++,n=!1):r||(n=!n))}return n||r},ls=(e,t)=>{let n="```"===e.substring(t,t+3),r=t>0&&"```"===e.substring(t-1,t+2),i=t>1&&"```"===e.substring(t-2,t+1);return n||r||i},lu=(ee.default||ee)(function(e){let t=function(e){let t=e.rehypePlugins||m,n=e.remarkPlugins||m,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...g}:g;return(0,h.l)().use(c.A).use(n).use(d.A,r).use(t)}(e),n=function(e){let t=e.children||"",n=new f.T;return"string"==typeof t?n.value=t:(0,l.HB)("Unexpected value `"+t+"` for `children` prop, expected `string`"),n}(e);return function(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,c=t.skipHtml,d=t.unwrapDisallowed,h=t.urlTransform||k;for(let e of b)Object.hasOwn(t,e.from)&&(0,l.HB)("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 n&&a&&(0,l.HB)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),(0,p.YR)(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return c?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in s.$)if(Object.hasOwn(s.$,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=s.$[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=h(String(n||""),t,e))}}if("element"===e.type){let l=n?!n.includes(e.tagName):!!a&&a.includes(e.tagName);if(!l&&r&&"number"==typeof t&&(l=!r(e,t,i)),l&&i&&"number"==typeof t)return d&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),(0,o.H)(e,{Fragment:u.Fragment,components:i,ignoreInvalidStyle:!0,jsx:u.jsx,jsxs:u.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}),lc=(0,a.createContext)(["github-light","github-dark"]),ld={singleDollarTextMath:!1},lh={},lp=(0,a.memo)(e=>{let{content:t,shouldParseIncompleteMarkdown:n,...r}=e,i=(0,a.useMemo)(()=>"string"==typeof t&&n?(e=>{if(!e||"string"!=typeof e)return e;let t=e,n=(e=>{let t=e.match(a6);if(t){if(t[1].startsWith("!")){let n=e.lastIndexOf(t[1]);return e.substring(0,n)}return"".concat(e,"](streamdown:incomplete-link)")}return e})(t);return n.endsWith("](streamdown:incomplete-link)")?n:t=(e=>{if((e.match(/\$\$/g)||[]).length%2==0)return e;let t=e.indexOf("$$");return -1===t||-1===e.indexOf("\n",t)||e.endsWith("\n")?"".concat(e,"$$"):"".concat(e,"\n$$")})(t=(e=>{let t=e.match(la);if(t){let n=t[2];if(!n||/^[\s_~*`]*$/.test(n))return e;if((e.match(/~~/g)||[]).length%2==1)return"".concat(e,"~~")}return e})(t=(e=>{if(e.match(/^```[^`\n]*```?$/)&&!e.includes("\n"))return e.endsWith("``")&&!e.endsWith("```")?"".concat(e,"`"):e;let t=(e.match(/```/g)||[]).length;if(t>0&&t%2==0&&e.includes("\n")||(e.endsWith("```\n")||e.endsWith("```"))&&t%2==0)return e;let n=e.match(li);if(n&&t%2!=1){let t=n[2];if(!t||/^[\s_~*`]*$/.test(t))return e;if((e=>{let t=0;for(let n=0;n<e.length;n++)"`"===e[n]&&!ls(e,n)&&t++;return t})(e)%2==1)return"".concat(e,"`")}return e})(t=(e=>{if(ll(e))return e;if(e.match(lr)){let t=-1;for(let n=0;n<e.length;n++)if("_"===e[n]&&"_"!==e[n-1]&&"_"!==e[n+1]&&!lo(e,n)){t=n;break}if(-1===t)return e;let n=e.substring(t+1);if(!n||/^[\s_~*`]*$/.test(n))return e;if((e=>e.split("").reduce((t,n,r)=>{if("_"===n){let n=e[r-1],i=e[r+1];if("\\"===n||lo(e,r))return t;if("_"!==n&&"_"!==i)return t+1}return t},0))(e)%2==1)return"".concat(e,"_")}return e})(t=(e=>{if(ll(e))return e;if(e.match(ln)){let t=-1;for(let n=0;n<e.length;n++)if("*"===e[n]&&"*"!==e[n-1]&&"*"!==e[n+1]){t=n;break}if(-1===t)return e;let n=e.substring(t+1);if(!n||/^[\s_~*`]*$/.test(n))return e;if((e=>e.split("").reduce((t,n,r)=>{if("*"===n){let n=e[r-1],i=e[r+1];if("\\"===n)return t;let a=r;for(let t=r-1;t>=0;t--){if("\n"===e[t]){a=t+1;break}if(0===t){a=0;break}}if(""===e.substring(a,r).trim()&&(" "===i||" "===i))return t;if("*"!==n&&"*"!==i)return t+1}return t},0))(e)%2==1)return"".concat(e,"*")}return e})(t=(e=>{let t=e.match(le);if(t){let n=t[2];if(!n||/^[\s_~*`]*$/.test(n))return e;let r=e.lastIndexOf(t[1]),i=e.substring(0,r).lastIndexOf("\n"),a=e.substring(-1===i?0:i+1,r);if(/^[\s]*[-*+][\s]+$/.test(a)&&n.includes("\n"))return e;if((e.match(/__/g)||[]).length%2==1)return"".concat(e,"__")}return e})(t=(e=>{if(ll(e))return e;let t=e.match(a7);if(t){let n=t[2];if(!n||/^[\s_~*`]*$/.test(n))return e;let r=e.lastIndexOf(t[1]),i=e.substring(0,r).lastIndexOf("\n"),a=e.substring(-1===i?0:i+1,r);if(/^[\s]*[-*+][\s]+$/.test(a)&&n.includes("\n"))return e;if((e.match(/\*\*/g)||[]).length%2==1)return"".concat(e,"**")}return e})(t=(e=>{if(ll(e)||/^\*{4,}$/.test(e))return e;let t=e.match(lt);if(t){let n=t[2];if(!n||/^[\s_~*`]*$/.test(n))return e;if((e=>{let t=0;for(let n of e.match(/\*+/g)||[]){let e=n.length;e>=3&&(t+=Math.floor(e/3))}return t})(e)%2==1)return"".concat(e,"***")}return e})(t=n))))))))})(t.trim()):t,[t,n]);return(0,u.jsx)(lu,{...r,children:i})},(e,t)=>e.content===t.content);lp.displayName="Block";var lf=(0,a.memo)(e=>{let{children:t,allowedImagePrefixes:n=["*"],allowedLinkPrefixes:r=["*"],defaultOrigin:i,parseIncompleteMarkdown:l=!0,components:o,rehypePlugins:s,remarkPlugins:c,className:d,shikiTheme:h=["github-light","github-dark"],...p}=e,f=(0,a.useId)(),m=(0,a.useMemo)(()=>(e=>{let t=aB.use({gfm:!0}).lexer(e).map(e=>e.raw),n=[];for(let e=0;e<t.length;e++){let r=t[e];if("$$"===r.trim()&&n.length>0){let e=n.at(-1),t=e.trimStart().startsWith("$$"),i=(e.match(/\$\$/g)||[]).length;if(t&&i%2==1){n[n.length-1]=e+r;continue}}if(n.length>0&&r.trimEnd().endsWith("$$")){let e=n.at(-1),t=e.trimStart().startsWith("$$"),i=(e.match(/\$\$/g)||[]).length,a=(r.match(/\$\$/g)||[]).length;if(t&&i%2==1&&!r.trimStart().startsWith("$$")&&1===a){n[n.length-1]=e+r;continue}}n.push(r)}return n})("string"==typeof t?t:""),[t]),g=(0,a.useMemo)(()=>()=>(function(e){let t=e||H;return function(e,n){(0,B.VG)(e,"element",function(e,r){let i,a=Array.isArray(e.properties.className)?e.properties.className:G,l=a.includes("language-math"),o=a.includes("math-display"),s=a.includes("math-inline"),u=o;if(!l&&!o&&!s)return;let c=r[r.length-1],d=e;if("code"===e.tagName&&l&&c&&"element"===c.type&&"pre"===c.tagName&&(d=c,c=r[r.length-2],u=!0),!c)return;let h=function(e,t){let n,r="children"in e?e.children:[],i=D(e),a=z(e,{whitespace:(t||{}).whitespace||"normal",breakBefore:!1,breakAfter:!1}),l=[];("text"===e.type||"comment"===e.type)&&l.push(...j(e,{whitespace:a,breakBefore:!0,breakAfter:!0}));let o=-1;for(;++o<r.length;)l.push(...function e(t,n,r){return"element"===t.type?function(t,n,r){let i,a,l=z(t,r),o=t.children||[],s=-1,u=[];if(O(t))return u;for(L(t)||$(t)&&A(n,t,$)?a="\n":M(t)?(i=2,a=2):D(t)&&(i=1,a=1);++s<o.length;)u=u.concat(e(o[s],t,{whitespace:l,breakBefore:s?void 0:i,breakAfter:s<o.length-1?L(o[s+1]):a}));return R(t)&&A(n,t,R)&&u.push(" "),i&&u.unshift(i),a&&u.push(a),u}(t,n,r):"text"===t.type?"normal"===r.whitespace?j(t,r):[String(t.value)]:[]}(r[o],e,{whitespace:a,breakBefore:o?void 0:i,breakAfter:o<r.length-1?L(r[o+1]):i}));let s=[];for(o=-1;++o<l.length;){let e=l[o];"number"==typeof e?void 0!==n&&e>n&&(n=e):e&&(void 0!==n&&n>-1&&s.push("\n".repeat(n)||" "),n=-1,s.push(e))}return s.join("")}(d,{whitespace:"pre"});try{i=F.default.renderToString(h,{...t,displayMode:u,throwOnError:!0})}catch(l){let a=l.name.toLowerCase();n.message("Could not render math with KaTeX",{ancestors:[...r,e],cause:l,place:e.position,ruleId:a,source:"rehype-katex"});try{i=F.default.renderToString(h,{...t,displayMode:u,strict:"ignore",throwOnError:!1})}catch{i=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(l)},children:[{type:"text",value:h}]}]}}if("string"==typeof i){var p,f;i=(p=i,f={fragment:!0},w(f?.fragment?function(e){let t=document.createElement("template");return t.innerHTML=e,t.content}(p):C.parseFromString(p,"text/html"),{})||{type:"root",children:[]}).children}let m=c.children.indexOf(d);return c.children.splice(m,1,...i),B._Z})}})({errorColor:"var(--color-muted-foreground)"}),[]);return(0,u.jsx)(lc.Provider,{value:h,children:(0,u.jsx)("div",{className:aH("space-y-4",d),...p,children:m.map((e,t)=>(0,u.jsx)(lp,{allowedImagePrefixes:n,allowedLinkPrefixes:r,components:{...a8,...o},content:e,defaultOrigin:i,rehypePlugins:[g,...null!=s?s:[]],remarkPlugins:[[U.A,lh],[Y,ld],...null!=c?c:[]],shouldParseIncompleteMarkdown:l},"".concat(f,"-block_").concat(t)))})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme);lf.displayName="Streamdown"},84227:(e,t,n)=>{"use strict";function r(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}n.d(t,{W:()=>r})},85510:(e,t,n)=>{"use strict";n.d(t,{A:()=>S});var r=n(75207),i=n(31850),a=n(8612);function l(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let l=e.charCodeAt(n),o="";if(37===l&&(0,a.lV)(e.charCodeAt(n+1))&&(0,a.lV)(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){let t=e.charCodeAt(n+1);l<56320&&t>56319&&t<57344?(o=String.fromCharCode(l,t),i=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function o(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 s(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}var u=n(46645),c=n(68811);function d(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),a=i[0];a&&"text"===a.type?a.value="["+a.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 h(e){let t=e.spread;return null==t?e.children.length>1:t}function p(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 f={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={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i={type:"element",tagName:"pre",properties:{},children:[i=e.applyData(t,i)]},e.patch(t,i),i},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(),a=l(i.toLowerCase()),o=e.footnoteOrder.indexOf(i),s=e.footnoteCounts.get(i);void 0===s?(s=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=o+1,s+=1,e.footnoteCounts.set(i,s);let u={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,u);let c={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,c),e.applyData(t,c)},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 d(e,t);let i={src:l(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)},image:function(e,t){let n={src:l(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 d(e,t);let i={href:l(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},link:function(e,t){let n={href:l(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=h(n[r])}return t}(n):h(t),a={},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:[]}),a.className=["task-list-item"]}let o=-1;for(;++o<r.length;){let e=r[o];(i||0!==o||"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:a,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 a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)},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)},a=(0,c.PW)(t.children[1]),l=(0,c.Y)(t.children[t.children.length-1]);a&&l&&(r.position={start:a,end:l}),i.push(r)}let a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)},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",a=n&&"table"===n.type?n.align:void 0,l=a?a.length:t.children.length,o=-1,s=[];for(;++o<l;){let n=t.children[o],r={},l=a?a[o]: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,a=[];for(;r;)a.push(p(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(p(t.slice(i),i>0,!1)),a.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:m,yaml:m,definition:m,footnoteDefinition:m};function m(){}let g={}.hasOwnProperty,y={};function b(e,t){e.position&&(t.position=(0,c.G1)(e))}function k(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,a=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&&a&&Object.assign(n.properties,(0,i.Ay)(a)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function x(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 v(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function w(e,t){let n=function(e,t){let n=t||y,r=new Map,a=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=v(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=v(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:k,definitionById:r,footnoteById:a,footnoteCounts:new Map,footnoteOrder:[],handlers:{...f,...n.handlers},one:function(e,t){let n=e.type,r=l.handlers[n];if(g.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=(0,i.Ay)(n);return r.children=l.all(e),r}return(0,i.Ay)(e)}return(l.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(g.call(n,"hProperties")||g.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(l,e,t)},options:n,patch:b,wrap:x};return(0,u.YR)(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:a,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),l}(e,t),a=n.one(e,void 0),c=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||o,r=e.options.footnoteBackLabel||s,a=e.options.footnoteLabel||"Footnotes",u=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[],h=-1;for(;++h<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[h]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),s=l(o.toLowerCase()),u=0,c=[],p=e.footnoteCounts.get(o);for(;void 0!==p&&++u<=p;){c.length>0&&c.push({type:"text",value:" "});let e="string"==typeof n?n:n(h,u);"string"==typeof e&&(e={type:"text",value:e}),c.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+s+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(h,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let f=a[a.length-1];if(f&&"element"===f.type&&"p"===f.tagName){let e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...c)}else a.push(...c);let m={type:"element",tagName:"li",properties:{id:t+"fn-"+s},children:e.wrap(a,!0)};e.patch(i,m),d.push(m)}if(0!==d.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...(0,i.Ay)(c),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:"\n"}]}}(n),d=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return c&&((0,r.ok)("children"in d),d.children.push({type:"text",value:"\n"},c)),d}function S(e,t){return e&&"run"in e?async function(n,r){let i=w(n,{file:r,...t});await e.run(i,r)}:function(n,r){return w(n,{file:r,...e||t})}}},85739:(e,t,n)=>{"use strict";n.d(t,{A:()=>eR});var r=n(7019),i=n(75207),a=n(8612),l=n(15711),o=n(58706);let s="phrasing",u=["autolink","link","image","label"];function c(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function d(e){this.config.enter.autolinkProtocol.call(this,e)}function h(e){this.config.exit.autolinkProtocol.call(this,e)}function p(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];(0,i.ok)("link"===t.type),t.url="http://"+this.sliceSerialize(e)}function f(e){this.config.exit.autolinkEmail.call(this,e)}function m(e){this.exit(e)}function g(e){!function(e,t,n){let r=(0,o.C)((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),a=-1;for(;++a<i.length;)(0,l.VG)(e,"text",s);function s(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[a][0],l=i[a][1],o=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]},a=l(...d,i);if("string"==typeof a&&(a=a.length>0?{type:"text",value:a}:void 0),!1===a?r.lastIndex=n+1:(o!==n&&c.push({type:"text",value:e.value.slice(o,n)}),Array.isArray(a)?c.push(...a):a&&c.push(a),o=n+d[0].length,u=!0),!r.global)break;d=r.exec(e.value)}return u?(o<e.value.length&&c.push({type:"text",value:e.value.slice(o)}),n.children.splice(s,1,...c)):c=[e],s+c.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,y],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,b]],{ignore:["link","linkReference"]})}function y(e,t,n,i,a){let l="";if(!k(a)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!function(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n)))return!1;let o=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")"),a=(0,r.D)(e,"("),l=(0,r.D)(e,")");for(;-1!==i&&a>l;)e+=n.slice(0,i+1),i=(n=n.slice(i+1)).indexOf(")"),l++;return[e,n]}(n+i);if(!o[0])return!1;let s={type:"link",title:null,url:l+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function b(e,t,n,r){return!(!k(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function k(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||(0,a.Ny)(n)||(0,a.es)(n))&&(!t||47!==n)}var x=n(41945);function v(){this.buffer()}function w(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function S(){this.buffer()}function C(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function _(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,i.ok)("footnoteReference"===n.type),n.identifier=(0,x.B)(this.sliceSerialize(e)).toLowerCase(),n.label=t}function A(e){this.exit(e)}function E(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,i.ok)("footnoteDefinition"===n.type),n.identifier=(0,x.B)(this.sliceSerialize(e)).toLowerCase(),n.label=t}function N(e){this.exit(e)}function P(e,t,n,r){let i=n.createTracker(r),a=i.move("[^"),l=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),o(),l(),a+=i.move("]")}function T(e,t,n){return 0===t?e:I(e,t,n)}function I(e,t,n){return(n?"":" ")+e}P.peek=function(){return"["};let L=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function R(e){this.enter({type:"delete",children:[]},e)}function M(e){this.exit(e)}function $(e,t,n,r){let i=n.createTracker(r),a=n.enter("strikethrough"),l=i.move("~~");return l+=n.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),a(),l}function O(e){return e.length}function D(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)}$.peek=function(){return"~"};n(97564);var j=n(19083);n(46645);n(83034);function z(e,t,n){let r=e.value||"",i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){let e,t=n.unsafe[a],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}z.peek=function(){return"`"};(0,o.C)(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let F={inlineCode:z,listItem: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),a=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&&(a=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+a);let l=a.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(l=4*Math.ceil(l/4));let o=n.createTracker(r);o.move(a+" ".repeat(l-a.length)),o.shift(l);let s=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,o.current()),function(e,t,n){return t?(n?"":" ".repeat(l))+e:(n?a:a+" ".repeat(l-a.length))+e});return s(),u}};function B(e){let t=e._align;(0,i.ok)(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 H(e){this.exit(e),this.data.inTable=void 0}function G(e){this.enter({type:"tableRow",children:[]},e)}function U(e){this.exit(e)}function q(e){this.enter({type:"tableCell",children:[]},e)}function W(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,V));let n=this.stack[this.stack.length-1];(0,i.ok)("inlineCode"===n.type),n.value=t,this.exit(e)}function V(e,t){return"|"===t?t:e}function Q(e){let t=this.stack[this.stack.length-2];(0,i.ok)("listItem"===t.type),t.checked="taskListCheckValueChecked"===e.type}function Z(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];(0,i.ok)("paragraph"===e.type);let n=e.children[0];if(n&&"text"===n.type){let r,i=t.children,a=-1;for(;++a<i.length;){let e=i[a];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function X(e,t,n,r){let i=e.children[0],a="boolean"==typeof e.checked&&i&&"paragraph"===i.type,l="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);a&&o.move(l);let s=F.listItem(e,t,n,{...r,...o.current()});return a&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+l})),s}var J=n(66483);let K={tokenize:function(e,t,n){let r=0;return function t(a){return(87===a||119===a)&&r<3?(r++,e.consume(a),t):46===a&&3===r?(e.consume(a),i):n(a)};function i(e){return null===e?n(e):t(e)}},partial:!0},Y={tokenize:function(e,t,n){let r,i,l;return o;function o(t){return 46===t||95===t?e.check(et,u,s)(t):null===t||(0,a.Ee)(t)||(0,a.Ny)(t)||45!==t&&(0,a.es)(t)?u(t):(l=!0,e.consume(t),o)}function s(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),o}function u(e){return i||r||!l?n(e):t(e)}},partial:!0},ee={tokenize:function(e,t){let n=0,r=0;return i;function i(o){return 40===o?(n++,e.consume(o),i):41===o&&r<n?l(o):33===o||34===o||38===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||60===o||63===o||93===o||95===o||126===o?e.check(et,t,l)(o):null===o||(0,a.Ee)(o)||(0,a.Ny)(o)?t(o):(e.consume(o),i)}function l(t){return 41===t&&r++,e.consume(t),i}},partial:!0},et={tokenize:function(e,t,n){return r;function r(o){return 33===o||34===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||63===o||95===o||126===o?(e.consume(o),r):38===o?(e.consume(o),l):93===o?(e.consume(o),i):60===o||null===o||(0,a.Ee)(o)||(0,a.Ny)(o)?t(o):n(o)}function i(e){return null===e||40===e||91===e||(0,a.Ee)(e)||(0,a.Ny)(e)?t(e):r(e)}function l(t){return(0,a.CW)(t)?function t(i){return 59===i?(e.consume(i),r):(0,a.CW)(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},en={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return(0,a.lV)(e)?n(e):t(e)}},partial:!0},er={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!es.call(r,r.previous)||eh(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(K,e.attempt(Y,e.attempt(ee,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:es},ei={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",l=!1;return function(t){return(72===t||104===t)&&eu.call(r,r.previous)&&!eh(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),o):n(t)};function o(t){if((0,a.CW)(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),o;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),l)?u:(l=!0,s):n(t)}function u(t){return null===t||(0,a.JQ)(t)||(0,a.Ee)(t)||(0,a.Ny)(t)||(0,a.es)(t)?n(t):e.attempt(Y,e.attempt(ee,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:eu},ea={name:"emailAutolink",tokenize:function(e,t,n){let r,i,l=this;return function(t){return!ed(t)||!ec.call(l,l.previous)||eh(l.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return ed(r)?(e.consume(r),t):64===r?(e.consume(r),o):n(r)}(t))};function o(t){return 46===t?e.check(en,u,s)(t):45===t||95===t||(0,a.lV)(t)?(i=!0,e.consume(t),o):u(t)}function s(t){return e.consume(t),r=!0,o}function u(o){return i&&r&&(0,a.CW)(l.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):n(o)}},previous:ec},el={},eo=48;for(;eo<123;)el[eo]=ea,58==++eo?eo=65:91===eo&&(eo=97);function es(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||(0,a.Ee)(e)}function eu(e){return!(0,a.CW)(e)}function ec(e){return!(47===e||ed(e))}function ed(e){return 43===e||45===e||46===e||95===e||(0,a.lV)(e)}function eh(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}el[43]=ea,el[45]=ea,el[46]=ea,el[95]=ea,el[72]=[ea,ei],el[104]=[ea,ei],el[87]=[ea,er],el[119]=[ea,er];var ep=n(65670),ef=n(52263);let em={tokenize:function(e,t,n){let r=this;return(0,ef.N)(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 eg(e,t,n){let r,i=this,a=i.events.length,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;a--;){let e=i.events[a][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(a){if(!r||!r._balanced)return n(a);let o=(0,x.B)(i.sliceSerialize({start:r.end,end:i.now()}));return 94===o.codePointAt(0)&&l.includes(o.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a)):n(a)}}function ey(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 a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",l,t],["exit",l,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function eb(e,t,n){let r,i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),o=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(s){if(o>999||93===s&&!r||null===s||91===s||(0,a.Ee)(s))return n(s);if(93===s){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return l.includes((0,x.B)(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return(0,a.Ee)(s)||(r=!0),o++,e.consume(s),92===s?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),o++,u):u(t)}}function ek(e,t,n){let r,i,l=this,o=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),u};function u(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!i||null===t||91===t||(0,a.Ee)(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=(0,x.B)(l.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return(0,a.Ee)(t)||(i=!0),s++,e.consume(t),92===t?d:c}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function h(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(r)||o.push(r),(0,ef.N)(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function ex(e,t,n){return e.check(ep.B,t,e.attempt(em,t,n))}function ev(e){e.exit("gfmFootnoteDefinition")}var ew=n(95723),eS=n(84227);class eC{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 e_(e,t,n){let r,i=this,l=0,o=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,a="tableHead"===r||"tableRow"===r?k:s;return a===k&&i.parser.lazy[i.now().line]?n(e):a(e)};function s(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(r=!0,o+=1),u(n)}function u(t){return null===t?n(t):(0,a.HP)(t)?o>1?(o=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h):n(t):(0,a.On)(t)?(0,ef.N)(e,u,"whitespace")(t):(o+=1,r&&(r=!1,l+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,u):(e.enter("data"),c(t))}function c(t){return null===t||124===t||(0,a.Ee)(t)?(e.exit("data"),u(t)):(e.consume(t),92===t?d:c)}function d(t){return 92===t||124===t?(e.consume(t),c):c(t)}function h(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,(0,a.On)(t))?(0,ef.N)(e,p,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t)}function p(t){return 45===t||58===t?m(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):n(t)}function f(t){return(0,a.On)(t)?(0,ef.N)(e,m,"whitespace")(t):m(t)}function m(t){return 58===t?(o+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),g):45===t?(o+=1,g(t)):null===t||(0,a.HP)(t)?b(t):n(t)}function g(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"),y):(e.exit("tableDelimiterFiller"),y(n))}(t)):n(t)}function y(t){return(0,a.On)(t)?(0,ef.N)(e,b,"whitespace")(t):b(t)}function b(i){if(124===i)return p(i);if(null===i||(0,a.HP)(i))return r&&l===o?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i);return n(i)}function k(t){return e.enter("tableRow"),x(t)}function x(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),x):null===n||(0,a.HP)(n)?(e.exit("tableRow"),t(n)):(0,a.On)(n)?(0,ef.N)(e,x,"whitespace")(n):(e.enter("data"),v(n))}function v(t){return null===t||124===t||(0,a.Ee)(t)?(e.exit("data"),x(t)):(e.consume(t),92===t?w:v)}function w(t){return 92===t||124===t?(e.consume(t),v):v(t)}}function eA(e,t){let n,r,i,a=-1,l=!0,o=0,s=[0,0,0,0],u=[0,0,0,0],c=!1,d=0,h=new eC;for(;++a<e.length;){let p=e[a],f=p[1];"enter"===p[0]?"tableHead"===f.type?(c=!1,0!==d&&(eN(h,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},h.add(a,0,[["enter",n,t]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(l=!0,i=void 0,s=[0,0,0,0],u=[0,a+1,0,0],c&&(c=!1,r={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},h.add(a,0,[["enter",r,t]])),o="tableDelimiterRow"===f.type?2:r?3:1):o&&("data"===f.type||"tableDelimiterMarker"===f.type||"tableDelimiterFiller"===f.type)?(l=!1,0===u[2]&&(0!==s[1]&&(u[0]=u[1],i=eE(h,t,s,o,void 0,i),s=[0,0,0,0]),u[2]=a)):"tableCellDivider"===f.type&&(l?l=!1:(0!==s[1]&&(u[0]=u[1],i=eE(h,t,s,o,void 0,i)),u=[(s=u)[1],a,0,0])):"tableHead"===f.type?(c=!0,d=a):"tableRow"===f.type||"tableDelimiterRow"===f.type?(d=a,0!==s[1]?(u[0]=u[1],i=eE(h,t,s,o,a,i)):0!==u[1]&&(i=eE(h,t,u,o,a,i)),o=0):o&&("data"===f.type||"tableDelimiterMarker"===f.type||"tableDelimiterFiller"===f.type)&&(u[3]=a)}for(0!==d&&eN(h,t,d,n,r),h.consume(t.events),a=-1;++a<t.events.length;){let e=t.events[a];"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,a))}return e}function eE(e,t,n,r,i,a){0!==n[0]&&(a.end=Object.assign({},eP(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));let l=eP(t.events,n[1]);if(a={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",a,t]]),0!==n[2]){let i=eP(t.events,n[2]),a=eP(t.events,n[3]),l={type:"tableContent",start:Object.assign({},i),end:Object.assign({},a)};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&&(a.end=Object.assign({},eP(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function eN(e,t,n,r,i){let a=[],l=eP(t.events,n);i&&(i.end=Object.assign({},l),a.push(["exit",i,t])),r.end=Object.assign({},l),a.push(["exit",r,t]),e.add(n+1,0,a)}function eP(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let eT={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(0,a.Ee)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),l):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),l):n(t)}function l(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(t)}function o(r){return(0,a.HP)(r)?t(r):(0,a.On)(r)?e.check({tokenize:eI},t,n)(r):n(r)}}};function eI(e,t,n){return(0,ef.N)(e,function(e){return null===e?n(e):t(e)},"whitespace")}let eL={};function eR(e){let t,n=e||eL,r=this.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push((0,J.y)([{text:el},{document:{91:{name:"gfmFootnoteDefinition",tokenize:ek,continuation:{tokenize:ex},exit:ev}},text:{91:{name:"gfmFootnoteCall",tokenize:eb},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:eg,resolveTo:ey}}},function(e){let t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,a=this.events,l=0;return function(o){return 126===i&&"characterEscape"!==a[a.length-1][1].type?r(o):(e.enter("strikethroughSequenceTemporary"),function a(o){let s=(0,j.S)(i);if(126===o)return l>1?r(o):(e.consume(o),l++,a);if(l<2&&!t)return r(o);let u=e.exit("strikethroughSequenceTemporary"),c=(0,j.S)(o);return u._open=!c||2===c&&!!s,u._close=!s||2===s&&!!c,n(o)}(o))}},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)},a={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",a,t]],o=t.parser.constructs.insideSpan.null;o&&(0,ew.m)(l,l.length,0,(0,eS.W)(o,e.slice(r+1,n),t)),(0,ew.m)(l,l.length,0,[["exit",a,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),(0,ew.m)(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}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}(n),{flow:{null:{name:"table",tokenize:e_,resolveAll:eA}}},{text:{91:eT}}])),a.push([{transforms:[g],enter:{literalAutolink:c,literalAutolinkEmail:d,literalAutolinkHttp:d,literalAutolinkWww:d},exit:{literalAutolink:m,literalAutolinkEmail:f,literalAutolinkHttp:h,literalAutolinkWww:p}},{enter:{gfmFootnoteCallString:v,gfmFootnoteCall:w,gfmFootnoteDefinitionLabelString:S,gfmFootnoteDefinition:C},exit:{gfmFootnoteCallString:_,gfmFootnoteCall:A,gfmFootnoteDefinitionLabelString:E,gfmFootnoteDefinition:N}},{canContainEols:["delete"],enter:{strikethrough:R},exit:{strikethrough:M}},{enter:{table:B,tableData:q,tableHeader:q,tableRow:G},exit:{codeText:W,table:H,tableData:U,tableHeader:U,tableRow:U}},{exit:{taskListCheckValueChecked:Q,taskListCheckValueUnchecked:Q,paragraph:Z}}]),l.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:s,notInConstruct:u},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:s,notInConstruct:u},{character:":",before:"[ps]",after:"\\/",inConstruct:s,notInConstruct:u}]},(t=!1,n&&n.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,i){let a=r.createTracker(i),l=a.move("[^"),o=r.enter("footnoteDefinition"),s=r.enter("label");return l+=a.move(r.safe(r.associationId(e),{before:l,after:"]"})),s(),l+=a.move("]:"),e.children&&e.children.length>0&&(a.shift(4),l+=a.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,a.current()),t?I:T))),o(),l},footnoteReference:P},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:L}],handlers:{delete:$}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=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=F.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return o(function(e,t,n){let r=e.children,i=-1,a=[],l=t.enter("table");for(;++i<r.length;)a[i]=s(r[i],t,n);return l(),a}(e,n,r),e.align)},tableCell:l,tableRow:function(e,t,n,r){let i=o([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"),o=n.containerPhrasing(e,{...r,before:a,after:a});return l(),i(),o}function o(e,t){return function(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||O,a=[],l=[],o=[],s=[],u=0,c=-1;for(;++c<e.length;){let t=[],r=[],a=-1;for(e[c].length>u&&(u=e[c].length);++a<e[c].length;){var d;let l=null==(d=e[c][a])?"":String(d);if(!1!==n.alignDelimiters){let e=i(l);r[a]=e,(void 0===s[a]||e>s[a])&&(s[a]=e)}t.push(l)}l[c]=t,o[c]=r}let h=-1;if("object"==typeof r&&"length"in r)for(;++h<u;)a[h]=D(r[h]);else{let e=D(r);for(;++h<u;)a[h]=e}h=-1;let p=[],f=[];for(;++h<u;){let e=a[h],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,s[h]-t.length-r.length),l=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&((i=t.length+i+r.length)>s[h]&&(s[h]=i),f[h]=i),p[h]=l}l.splice(1,0,p),o.splice(1,0,f),c=-1;let m=[];for(;++c<l.length;){let e=l[c],t=o[c];h=-1;let r=[];for(;++h<u;){let i=e[h]||"",l="",o="";if(!1!==n.alignDelimiters){let e=s[h]-(t[h]||0),n=a[h];114===n?l=" ".repeat(e):99===n?e%2?(l=" ".repeat(e/2+.5),o=" ".repeat(e/2-.5)):o=l=" ".repeat(e/2):o=" ".repeat(e)}!1===n.delimiterStart||h||r.push("|"),!1!==n.padding&&(!1!==n.alignDelimiters||""!==i)&&(!1!==n.delimiterStart||h)&&r.push(" "),!1!==n.alignDelimiters&&r.push(l),r.push(i),!1!==n.alignDelimiters&&r.push(o),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||h!==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,a=[],o=t.enter("tableRow");for(;++i<r.length;)a[i]=l(r[i],e,t,n);return o(),a}}(n),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:X}}]})}},87940:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,s=/^\s+|\s+$/g;function u(e){return e?e.replace(s,""):""}e.exports=function(e,s){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];s=s||{};var c=1,d=1;function h(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function p(){var e={line:c,column:d};return function(t){return t.position=new f(e),y(r),t}}function f(e){this.start=e,this.end={line:c,column:d},this.source=s.source}f.prototype.content=e;var m=[];function g(t){var n=Error(s.source+":"+c+":"+d+": "+t);if(n.reason=t,n.filename=s.source,n.line=c,n.column=d,n.source=e,s.silent)m.push(n);else throw n}function y(t){var n=t.exec(e);if(n){var r=n[0];return h(r),e=e.slice(r.length),n}}function b(e){var t;for(e=e||[];t=k();)!1!==t&&e.push(t);return e}function k(){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 g("End of comment missing");var r=e.slice(2,n-2);return d+=2,h(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}y(r);var x,v=[];for(b(v);x=function(){var e=p(),n=y(i);if(n){if(k(),!y(a))return g("property missing ':'");var r=y(l),s=e({type:"declaration",property:u(n[0].replace(t,"")),value:r?u(r[0].replace(t,"")):""});return y(o),s}}();)!1!==x&&(v.push(x),b(v));return v}},94127:(e,t,n)=>{"use strict";n.d(t,{z:()=>p});var r=n(85012),i=n(56632);let a={damping:.7,stiffness:.05,mass:1.25},l=1e3/60,o=!1;function s(e,t){let n=(0,i.useCallback)(t=>(n.current=t,e(t)),t);return n}globalThis.document?.addEventListener("mousedown",()=>{o=!0}),globalThis.document?.addEventListener("mouseup",()=>{o=!1}),globalThis.document?.addEventListener("click",()=>{o=!1});let u=new Map;function c(...e){let t={...a},n=!1;for(let r of e){if("instant"===r){n=!0;continue}"object"==typeof r&&(n=!1,t.damping=r.damping??t.damping,t.stiffness=r.stiffness??t.stiffness,t.mass=r.mass??t.mass)}let r=JSON.stringify(t);return u.has(r)||u.set(r,Object.freeze(t)),n?"instant":u.get(r)}let d=(0,i.createContext)(null),h="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function p({instance:e,children:t,resize:n,initial:a,mass:u,damping:p,stiffness:f,targetScrollTop:m,contextRef:g,...y}){let b=(0,i.useRef)(null),k=((e={})=>{let[t,n]=(0,i.useState)(!1),[r,a]=(0,i.useState)(!1!==e.initial),[u,d]=(0,i.useState)(!1),h=(0,i.useRef)(null);h.current=e;let p=(0,i.useCallback)(()=>{if(!o)return!1;let e=window.getSelection();if(!e||!e.rangeCount)return!1;let t=e.getRangeAt(0);return t.commonAncestorContainer.contains(v.current)||v.current?.contains(t.commonAncestorContainer)},[]),f=(0,i.useCallback)(e=>{g.isAtBottom=e,a(e)},[]),m=(0,i.useCallback)(e=>{g.escapedFromLock=e,n(e)},[]),g=(0,i.useMemo)(()=>{let n;return{escapedFromLock:t,isAtBottom:r,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return v.current?.scrollTop??0},set scrollTop(scrollTop){v.current&&(v.current.scrollTop=scrollTop,g.ignoreScrollToTop=v.current.scrollTop)},get targetScrollTop(){if(!v.current||!w.current)return 0;return v.current.scrollHeight-1-v.current.clientHeight},get calculatedTargetScrollTop(){if(!v.current||!w.current)return 0;let{targetScrollTop:t}=this;if(!e.targetScrollTop)return t;if(n?.targetScrollTop===t)return n.calculatedScrollTop;let r=Math.max(Math.min(e.targetScrollTop(t,{scrollElement:v.current,contentElement:w.current}),t),0);return n={targetScrollTop:t,calculatedScrollTop:r},requestAnimationFrame(()=>{n=void 0}),r},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=70}}},[]),y=(0,i.useCallback)((e={})=>{let t;"string"==typeof e&&(e={animation:e}),e.preserveScrollPosition||f(!0);let n=Date.now()+(Number(e.wait)||0),r=c(h.current,e.animation),{ignoreEscapes:i=!1}=e,a=g.calculatedTargetScrollTop;e.duration instanceof Promise?e.duration.finally(()=>{t=Date.now()}):t=n+(e.duration??0);let o=async()=>{let e=new Promise(requestAnimationFrame).then(()=>{if(!g.isAtBottom)return g.animation=void 0,!1;let{scrollTop:s}=g,u=performance.now(),d=(u-(g.lastTick??u))/l;if(g.animation||(g.animation={behavior:r,promise:e,ignoreEscapes:i}),g.animation.behavior===r&&(g.lastTick=u),p()||n>Date.now())return o();if(s<Math.min(a,g.calculatedTargetScrollTop)){if(g.animation?.behavior===r){if("instant"===r)return g.scrollTop=g.calculatedTargetScrollTop,o();g.velocity=(r.damping*g.velocity+r.stiffness*g.scrollDifference)/r.mass,g.accumulated+=g.velocity*d,g.scrollTop+=g.accumulated,g.scrollTop!==s&&(g.accumulated=0)}return o()}return t>Date.now()?(a=g.calculatedTargetScrollTop,o()):(g.animation=void 0,g.scrollTop<g.calculatedTargetScrollTop)?y({animation:c(h.current,h.current.resize),ignoreEscapes:i,duration:Math.max(0,t-Date.now())||void 0}):g.isAtBottom});return e.then(e=>(requestAnimationFrame(()=>{g.animation||(g.lastTick=void 0,g.velocity=0)}),e))};return(!0!==e.wait&&(g.animation=void 0),g.animation?.behavior===r)?g.animation.promise:o()},[f,p,g]),b=(0,i.useCallback)(()=>{m(!0),f(!1)},[m,f]),k=(0,i.useCallback)(({target:e})=>{if(e!==v.current)return;let{scrollTop:t,ignoreScrollToTop:n}=g,{lastScrollTop:r=t}=g;g.lastScrollTop=t,g.ignoreScrollToTop=void 0,n&&n>t&&(r=n),d(g.isNearBottom),setTimeout(()=>{if(g.resizeDifference||t===n)return;if(p()){m(!0),f(!1);return}let e=t>r,i=t<r;if(g.animation?.ignoreEscapes){g.scrollTop=r;return}i&&(m(!0),f(!1)),e&&m(!1),!g.escapedFromLock&&g.isNearBottom&&f(!0)},1)},[m,f,p,g]),x=(0,i.useCallback)(({target:e,deltaY:t})=>{let n=e;for(;!["scroll","auto"].includes(getComputedStyle(n).overflow);){if(!n.parentElement)return;n=n.parentElement}n===v.current&&t<0&&v.current.scrollHeight>v.current.clientHeight&&!g.animation?.ignoreEscapes&&(m(!0),f(!1))},[m,f,g]),v=s(e=>{v.current?.removeEventListener("scroll",k),v.current?.removeEventListener("wheel",x),e?.addEventListener("scroll",k,{passive:!0}),e?.addEventListener("wheel",x,{passive:!0})},[]),w=s(e=>{let t;g.resizeObserver?.disconnect(),e&&(g.resizeObserver=new ResizeObserver(([e])=>{let{height:n}=e.contentRect,r=n-(t??n);if(g.resizeDifference=r,g.scrollTop>g.targetScrollTop&&(g.scrollTop=g.targetScrollTop),d(g.isNearBottom),r>=0){let e=c(h.current,t?h.current.resize:h.current.initial);y({animation:e,wait:!0,preserveScrollPosition:!0,duration:"instant"===e?void 0:350})}else g.isNearBottom&&(m(!1),f(!0));t=n,requestAnimationFrame(()=>{setTimeout(()=>{g.resizeDifference===r&&(g.resizeDifference=0)},1)})}),g.resizeObserver?.observe(e))},[]);return{contentRef:w,scrollRef:v,scrollToBottom:y,stopScroll:b,isAtBottom:r||u,isNearBottom:u,escapedFromLock:t,state:g}})({mass:u,damping:p,stiffness:f,resize:n,initial:a,targetScrollTop:i.useCallback((e,t)=>{let n=E?.targetScrollTop??m;return n?.(e,t)??e},[m])}),{scrollRef:x,contentRef:v,scrollToBottom:w,stopScroll:S,isAtBottom:C,escapedFromLock:_,state:A}=e??k,E=(0,i.useMemo)(()=>({scrollToBottom:w,stopScroll:S,scrollRef:x,isAtBottom:C,escapedFromLock:_,contentRef:v,state:A,get targetScrollTop(){return b.current},set targetScrollTop(targetScrollTop){b.current=targetScrollTop}}),[w,C,v,x,S,_,A]);return(0,i.useImperativeHandle)(g,()=>E,[E]),h(()=>{x.current&&"visible"===getComputedStyle(x.current).overflow&&(x.current.style.overflow="auto")},[]),(0,r.jsx)(d.Provider,{value:E,children:(0,r.jsx)("div",{...y,children:"function"==typeof t?t(E):t})})}(p||(p={})).Content=function({children:e,...t}){let n=function(){let e=(0,i.useContext)(d);if(!e)throw Error("use-stick-to-bottom component context must be used within a StickToBottom component");return e}();return(0,r.jsx)("div",{ref:n.scrollRef,style:{height:"100%",width:"100%"},children:(0,r.jsx)("div",{...t,ref:n.contentRef,children:"function"==typeof e?e(n):e})})}},94241:(e,t,n)=>{"use strict";function r(e){let t=[],n=String(e||""),r=n.indexOf(","),i=0,a=!1;for(;!a;){-1===r&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(",",i)}return t}function i(e,t){let n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}n.d(t,{A:()=>i,q:()=>r})},94711:(e,t,n)=>{"use strict";n.d(t,{I:()=>u});var r=n(42501),i=n(1181),a=n(3187);let l=/[A-Z]/g,o=/-[a-z]/g,s=/^data[-\w.:]+$/i;function u(e,t){let n=(0,a.S)(t),u=t,h=i.R;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&s.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(o,d);u="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!o.test(e)){let n=e.replace(l,c);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}h=r.E}return new h(u,t)}function c(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},95723:(e,t,n)=>{"use strict";function r(e,t,n,r){let i,a=e.length,l=0;if(t=t<0?-t>a?0:a+t:t>a?a: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 i(e,t){return e.length>0?(r(e,e.length,0,t),e):t}n.d(t,{V:()=>i,m:()=>r})},96293:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var r=n(29570);class i extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let i="",a={},l=!1;if(t&&(a="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?i=e:!a.cause&&e&&(l=!0,i=e.message,a.cause=e),!a.ruleId&&!a.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?a.ruleId=n:(a.source=n.slice(0,e),a.ruleId=n.slice(e+1))}if(!a.place&&a.ancestors&&a.ancestors){let e=a.ancestors[a.ancestors.length-1];e&&(a.place=e.position)}let o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=(0,r.L)(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=l&&a.cause&&"string"==typeof a.cause.stack?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}i.prototype.file="",i.prototype.name="",i.prototype.reason="",i.prototype.message="",i.prototype.stack="",i.prototype.column=void 0,i.prototype.line=void 0,i.prototype.ancestors=void 0,i.prototype.cause=void 0,i.prototype.fatal=void 0,i.prototype.place=void 0,i.prototype.ruleId=void 0,i.prototype.source=void 0},97564:(e,t,n)=>{"use strict";function r(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,l=0;if("string"!=typeof t)throw TypeError("Expected substring");for(;-1!==r;)r===i?++a>l&&(l=a):a=1,i=r+t.length,r=n.indexOf(t,i);return l}n.d(t,{D:()=>r})},97768:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(82471).A)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]])},98098:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(82471).A)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])}}]);