@cloudhal/cli 0.6.1 → 0.6.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 (507) hide show
  1. package/README.md +13 -0
  2. package/dist/assets/starters/blog/README.md +2 -0
  3. package/dist/assets/starters/blog/package.json +4 -4
  4. package/dist/assets/studio/assets/AccountPage-NTvVQ9j4.js +2 -0
  5. package/dist/assets/studio/assets/{ActivityPage-BfSooizo.js → ActivityPage-DQSyrOOA.js} +2 -2
  6. package/dist/assets/studio/assets/AgentModes-KSlPlZBo.js +2 -0
  7. package/dist/assets/studio/assets/AgentsPage-5NPtJdv3.js +2 -0
  8. package/dist/assets/studio/assets/AnalyticsPage-CeeJ1CyW.js +3 -0
  9. package/dist/assets/studio/assets/{ApprovalDialog-CsGLUoiG.js → ApprovalDialog-CSB0ewQo.js} +2 -2
  10. package/dist/assets/studio/assets/ApprovalsPage-BAb_T-Yg.js +3 -0
  11. package/dist/assets/studio/assets/{Archive.es-BXDvdjhh.js → Archive.es-D8Bl_t0F.js} +2 -2
  12. package/dist/assets/studio/assets/{ArrowClockwise.es-Cj09cAsd.js → ArrowClockwise.es-CBDiTqBo.js} +2 -2
  13. package/dist/assets/studio/assets/{ArrowCounterClockwise.es-CdhtUY_8.js → ArrowCounterClockwise.es-DTfZr_jW.js} +2 -2
  14. package/dist/assets/studio/assets/{ArrowUp.es-XQ9OylS2.js → ArrowUp.es-PTLJggiP.js} +2 -2
  15. package/dist/assets/studio/assets/{ArrowsMerge.es-D5hM5AVS.js → ArrowsMerge.es-DvvBxeUr.js} +2 -2
  16. package/dist/assets/studio/assets/{Article.es-GZzVNhDz.js → Article.es-B1mhw0Yg.js} +2 -2
  17. package/dist/assets/studio/assets/ArticleEditorPage-Ggx_BDgH.js +3 -0
  18. package/dist/assets/studio/assets/ArticlesPage-B7pYvOqZ.js +3 -0
  19. package/dist/assets/studio/assets/{AssetPage-557YLF5x.js → AssetPage-CoLQ7g6-.js} +2 -2
  20. package/dist/assets/studio/assets/Audit-DzVhy7HF.js +2 -0
  21. package/dist/assets/studio/assets/{AuditBadges-DSDQQMox.js → AuditBadges-fg0FKAHS.js} +2 -2
  22. package/dist/assets/studio/assets/{AuthLayout-TZmA5tuQ.js → AuthLayout-BWUactWV.js} +2 -2
  23. package/dist/assets/studio/assets/{AutocompleteItem-drxau0wm3735nihq-DZezfUcW.js → AutocompleteItem-drxau0wm3735nihq-CSomwNGo.js} +2 -2
  24. package/dist/assets/studio/assets/AutomationsPage-ClhZd5Ds.js +2 -0
  25. package/dist/assets/studio/assets/{BlockPropsForm-CQS-il8n.js → BlockPropsForm-BeRE-Yon.js} +2 -2
  26. package/dist/assets/studio/assets/{BlockSection-BLFcWysr.js → BlockSection-Cy4Qt5cS.js} +2 -2
  27. package/dist/assets/studio/assets/{BodyChanges-CHGTrrFt.js → BodyChanges-BV19ywfj.js} +2 -2
  28. package/dist/assets/studio/assets/BodyEditor-nuTuUMKM.js +3 -0
  29. package/dist/assets/studio/assets/{BookOpenText.es-DQTJX038.js → BookOpenText.es-CpOl9V_c.js} +2 -2
  30. package/dist/assets/studio/assets/BuildPage-CP6uMSA_.js +2 -0
  31. package/dist/assets/studio/assets/CSPContext-ctyrgg64girv38ls-CFLKuzrY.js +2 -0
  32. package/dist/assets/studio/assets/{CalendarBlank.es-CrlLLBR2.js → CalendarBlank.es-VpMruUO0.js} +2 -2
  33. package/dist/assets/studio/assets/{CalendarCheck.es-BLDq8hx4.js → CalendarCheck.es-B721IRvA.js} +2 -2
  34. package/dist/assets/studio/assets/{CalendarPlus.es-MzN9gM_Q.js → CalendarPlus.es-LVUym72A.js} +2 -2
  35. package/dist/assets/studio/assets/CalendarX.es-Dog7ncNo.js +2 -0
  36. package/dist/assets/studio/assets/{CaretLeft.es-BiAN1FFU.js → CaretLeft.es-Xx2_Cq9g.js} +2 -2
  37. package/dist/assets/studio/assets/{CaretRight.es-Cb35ouk8.js → CaretRight.es-BMaNDJ5e.js} +2 -2
  38. package/dist/assets/studio/assets/{CaretUp.es-C7S0XQPp.js → CaretUp.es-CkQ436Qy.js} +2 -2
  39. package/dist/assets/studio/assets/{CheckCircle.es-Bm8c2tEP.js → CheckCircle.es-B-KQQvPf.js} +2 -2
  40. package/dist/assets/studio/assets/{ClockClockwise.es-B-MZng7b.js → ClockClockwise.es-CVI0mOoA.js} +2 -2
  41. package/dist/assets/studio/assets/{ClockCountdown.es-dAjCY6fZ.js → ClockCountdown.es-CVi6XWmD.js} +2 -2
  42. package/dist/assets/studio/assets/{CodeHighlighted-C0TGsb8v.js → CodeHighlighted-uUDbvdKY.js} +3 -3
  43. package/dist/assets/studio/assets/CollectionSettingsPage-B5s4v1Iz.js +3 -0
  44. package/dist/assets/studio/assets/CollectionsPage-BzY00I6q.js +2 -0
  45. package/dist/assets/studio/assets/{Columns-BAB_FHGY.js → Columns-CwWLxZux.js} +2 -2
  46. package/dist/assets/studio/assets/ComboboxEmpty-o0q20j2l2syar9kx-Br8JgcPC.js +2 -0
  47. package/dist/assets/studio/assets/CommandMenu-CO5U3JH5.js +2 -0
  48. package/dist/assets/studio/assets/{CommentThreadControls-bUZRA-h5.js → CommentThreadControls-Cmh1R66Y.js} +2 -2
  49. package/dist/assets/studio/assets/{CommentThreadPage-D_wUVJiY.js → CommentThreadPage-UiAi6-KV.js} +2 -2
  50. package/dist/assets/studio/assets/{CommenterPage-CcE1GZhq.js → CommenterPage-5j673AfC.js} +2 -2
  51. package/dist/assets/studio/assets/Comments-DvqfPRIm.js +2 -0
  52. package/dist/assets/studio/assets/{CommentsPage-Rb7IZNjc.js → CommentsPage-Dq6ZPgBd.js} +2 -2
  53. package/dist/assets/studio/assets/CompositeItem-hzuk5x3e5zsfgnyj-DaKnXsNK.js +2 -0
  54. package/dist/assets/studio/assets/CompositeRoot-g72lchaerolf5dc9-BMCp-sQO.js +2 -0
  55. package/dist/assets/studio/assets/{ConfirmDialog-CGnWEaHt.js → ConfirmDialog-OVRiEm85.js} +2 -2
  56. package/dist/assets/studio/assets/{ContentListQuery-Cv6WQlCU.js → ContentListQuery-BuxxdIsz.js} +2 -2
  57. package/dist/assets/studio/assets/{Copy.es-By3CkBk8.js → Copy.es-DUeQTRuS.js} +2 -2
  58. package/dist/assets/studio/assets/{Crumbs-c3E8BtT4.js → Crumbs-DcQ6-fG2.js} +2 -2
  59. package/dist/assets/studio/assets/{Cube.es-CLfKIZlQ.js → Cube.es-DJRc8J3h.js} +2 -2
  60. package/dist/assets/studio/assets/DateTimeField-COCBK21M.js +3 -0
  61. package/dist/assets/studio/assets/{DeviceMobile.es-Dj4nRR-G.js → DeviceMobile.es-prjdJoHR.js} +2 -2
  62. package/dist/assets/studio/assets/{DeviceTablet.es-CWQu_fi8.js → DeviceTablet.es-BHaK_TWH.js} +2 -2
  63. package/dist/assets/studio/assets/{DialogRoot-hl3genvzl9h8ridm-BuXbJxoK.js → DialogRoot-hl3genvzl9h8ridm-BGNgsVHc.js} +2 -2
  64. package/dist/assets/studio/assets/DialogTrigger-g44cuem7n4wez533-EhxANqX5.js +2 -0
  65. package/dist/assets/studio/assets/{DirectionalIcon-DEFwnJvi.js → DirectionalIcon-BitUORGN.js} +2 -2
  66. package/dist/assets/studio/assets/{DotsThree.es-DNhReQZT.js → DotsThree.es-D0trk56j.js} +2 -2
  67. package/dist/assets/studio/assets/{DownloadSimple.es-5bJh64As.js → DownloadSimple.es-DqABLE5v.js} +2 -2
  68. package/dist/assets/studio/assets/EditorLayout-Dp_3DB2G.js +2 -0
  69. package/dist/assets/studio/assets/EditorPreview-CkyWXFtR.js +2 -0
  70. package/dist/assets/studio/assets/Elevation-DkpPCdiH.js +2 -0
  71. package/dist/assets/studio/assets/ElevationRequest-CmgLclFL.js +2 -0
  72. package/dist/assets/studio/assets/EndedBadge-BDwG33LH.js +2 -0
  73. package/dist/assets/studio/assets/{EntryFieldsCard-BxXOFE9y.js → EntryFieldsCard-D5y1dpXL.js} +2 -2
  74. package/dist/assets/studio/assets/EntryPath-DBK2nqWS.js +2 -0
  75. package/dist/assets/studio/assets/{EnvelopeSimple.es-EeOelenM.js → EnvelopeSimple.es-DN98o0aM.js} +2 -2
  76. package/dist/assets/studio/assets/{Eye.es-BqzFrrWY.js → Eye.es-D_s6AHKD.js} +2 -2
  77. package/dist/assets/studio/assets/{EyeSlash.es-D_qu-prK.js → EyeSlash.es-C4_clqud.js} +2 -2
  78. package/dist/assets/studio/assets/FieldsSection-B_CkinDZ.js +2 -0
  79. package/dist/assets/studio/assets/{File.es-BjyWSnBW.js → File.es-7rkjM_ge.js} +2 -2
  80. package/dist/assets/studio/assets/{Files.es-C-nA_HHj.js → Files.es-BwAHmY88.js} +2 -2
  81. package/dist/assets/studio/assets/{Flag.es-DmQnwi6F.js → Flag.es-JBpXrgwA.js} +2 -2
  82. package/dist/assets/studio/assets/{FolderSimple.es-iBvb358e.js → FolderSimple.es-4lPVR2-0.js} +2 -2
  83. package/dist/assets/studio/assets/{FolderSimplePlus.es-CEDRZQYE.js → FolderSimplePlus.es-DkhijKDr.js} +2 -2
  84. package/dist/assets/studio/assets/{ForgotPasswordPage-DovWBjeu.js → ForgotPasswordPage-WCD-LFli.js} +2 -2
  85. package/dist/assets/studio/assets/{Funnel.es-DZl1IfUy.js → Funnel.es-D9Fm-7zi.js} +2 -2
  86. package/dist/assets/studio/assets/{Gating-DJf4uRlG.js → Gating-Dh2NroLN.js} +2 -2
  87. package/dist/assets/studio/assets/{Gauge.es-DuZzTA2r.js → Gauge.es-CKxSD-ha.js} +2 -2
  88. package/dist/assets/studio/assets/{GitDiff.es-CA8Us_5l.js → GitDiff.es-DuMS1_Po.js} +2 -2
  89. package/dist/assets/studio/assets/{GlobeHemisphereWest.es-BzDIaRRb.js → GlobeHemisphereWest.es-BvwDtHCs.js} +2 -2
  90. package/dist/assets/studio/assets/{GovernanceDialog-DfSyaWUC.js → GovernanceDialog-ZGDW8GHB.js} +2 -2
  91. package/dist/assets/studio/assets/{Heartbeat.es-DoVLpaNV.js → Heartbeat.es-CI1hyl1d.js} +2 -2
  92. package/dist/assets/studio/assets/{Hourglass.es-uvCn7I3a.js → Hourglass.es-Cq2_RgX0.js} +2 -2
  93. package/dist/assets/studio/assets/{IconBase.es-BkkQnApg.js → IconBase.es-BXBadb8L.js} +2 -2
  94. package/dist/assets/studio/assets/{Image.es-BBE_um1H.js → Image.es-hbodihZN.js} +2 -2
  95. package/dist/assets/studio/assets/{InsetPanel-BIpYNUj-.js → InsetPanel-BCDyegfj.js} +2 -2
  96. package/dist/assets/studio/assets/{InvitePage-CUwybH5u.js → InvitePage-nDt4YwRU.js} +2 -2
  97. package/dist/assets/studio/assets/{Key.es-C3cXV_g4.js → Key.es-7JaWxcaF.js} +2 -2
  98. package/dist/assets/studio/assets/{Lightning.es-B0aCQYgN.js → Lightning.es-Bgp9MYVi.js} +2 -2
  99. package/dist/assets/studio/assets/{LinkBreak.es-IKiASA1L.js → LinkBreak.es-DJPTzmWT.js} +2 -2
  100. package/dist/assets/studio/assets/{LinkSimple.es-DsT8oyql.js → LinkSimple.es-Bmke3KUE.js} +2 -2
  101. package/dist/assets/studio/assets/{ListBullets.es-m4uKew94.js → ListBullets.es-BRt_pQYZ.js} +2 -2
  102. package/dist/assets/studio/assets/{ListFieldColumns-Cp-LG4e_.js → ListFieldColumns-JgalLO4N.js} +2 -2
  103. package/dist/assets/studio/assets/{ListToolbar-DyA-xs7m.js → ListToolbar-BJEEg5eE.js} +2 -2
  104. package/dist/assets/studio/assets/ListingSections-oP_0yN1S.js +2 -0
  105. package/dist/assets/studio/assets/LoginPage-L984KqI8.js +2 -0
  106. package/dist/assets/studio/assets/{MapPin.es-oHLRbHJ3.js → MapPin.es-CtoNnkl7.js} +2 -2
  107. package/dist/assets/studio/assets/{MediaPage-DXVsZotW.js → MediaPage-YcmyGDWC.js} +2 -2
  108. package/dist/assets/studio/assets/{MediaPicker-Quut5MkE.js → MediaPicker-D0dErr8k.js} +2 -2
  109. package/dist/assets/studio/assets/MediaUpload-Dz_c75sO.js +2 -0
  110. package/dist/assets/studio/assets/MembersPage-loaFEpdr.js +2 -0
  111. package/dist/assets/studio/assets/Menus-BLkbHiMI.js +2 -0
  112. package/dist/assets/studio/assets/{Monitor.es-CiAXIkNe.js → Monitor.es-Bjx-aBZN.js} +2 -2
  113. package/dist/assets/studio/assets/NavigationPage-Da7rjZRB.js +2 -0
  114. package/dist/assets/studio/assets/{NewSiteDialog-BT5_FG9r.js → NewSiteDialog-BHHd21ht.js} +2 -2
  115. package/dist/assets/studio/assets/{NotificationItems-DRbM81v3.js → NotificationItems-CZg5_NHZ.js} +3 -3
  116. package/dist/assets/studio/assets/{Package.es-8Kzld-L5.js → Package.es--NqoouWd.js} +2 -2
  117. package/dist/assets/studio/assets/PageEditorPage-Dj-U2pjK.js +3 -0
  118. package/dist/assets/studio/assets/PagesPage-nsroU5tN.js +2 -0
  119. package/dist/assets/studio/assets/{PasswordField-Dm6GeW-r.js → PasswordField-1kzPgqLo.js} +2 -2
  120. package/dist/assets/studio/assets/{PauseCircle.es-DL70zbXk.js → PauseCircle.es-DqE1hsRF.js} +2 -2
  121. package/dist/assets/studio/assets/{PencilSimple.es-CN3ip8Ju.js → PencilSimple.es-Op-nnaqy.js} +2 -2
  122. package/dist/assets/studio/assets/{Plus.es-DJRjBqvc.js → Plus.es-2_hsc1B3.js} +2 -2
  123. package/dist/assets/studio/assets/{PreviewPanel-DZTQbtub.js → PreviewPanel-Cji7Fp5q.js} +2 -2
  124. package/dist/assets/studio/assets/{Prohibit.es-CWkoXr5w.js → Prohibit.es-D_dPTZZy.js} +2 -2
  125. package/dist/assets/studio/assets/{ProhibitInset.es-BgantO60.js → ProhibitInset.es-CcjznQ17.js} +2 -2
  126. package/dist/assets/studio/assets/{ProjectPage-4d_YI36b.js → ProjectPage-BQxm4g99.js} +2 -2
  127. package/dist/assets/studio/assets/{Question.es-BEdDAbLA.js → Question.es-trc8MUtE.js} +2 -2
  128. package/dist/assets/studio/assets/{Quotes.es-DQPep8iE.js → Quotes.es-DyaHmUO_.js} +2 -2
  129. package/dist/assets/studio/assets/Readers-CcVVgmpi.js +3 -0
  130. package/dist/assets/studio/assets/RedirectDialog-B5yl4oD-.js +2 -0
  131. package/dist/assets/studio/assets/RedirectsPage-B1pa4mQJ.js +2 -0
  132. package/dist/assets/studio/assets/RelativeTime-C_SQCdsk.js +2 -0
  133. package/dist/assets/studio/assets/{ReleaseApproval-B59euTn5.js → ReleaseApproval-DT1ecFLG.js} +2 -2
  134. package/dist/assets/studio/assets/{ReleasePage-ldIHkM1L.js → ReleasePage-DVSL_YM-.js} +2 -2
  135. package/dist/assets/studio/assets/ReleaseParts-D8k7e2qx.js +2 -0
  136. package/dist/assets/studio/assets/{ResetPasswordPage-RMgksX0x.js → ResetPasswordPage-p1BeXN56.js} +2 -2
  137. package/dist/assets/studio/assets/{RocketLaunch.es-CR3uVhw_.js → RocketLaunch.es-BbmkW8GS.js} +2 -2
  138. package/dist/assets/studio/assets/RowMenu-D0g1yTqW.js +2 -0
  139. package/dist/assets/studio/assets/{ScheduleCard-CdziIrtz.js → ScheduleCard-DsR36_fP.js} +2 -2
  140. package/dist/assets/studio/assets/{ScheduleDialog-CsNUpCPU.js → ScheduleDialog-C_bduc0o.js} +2 -2
  141. package/dist/assets/studio/assets/ScheduleHistoryPage-BzmQSThY.js +2 -0
  142. package/dist/assets/studio/assets/ScheduleStatusBadge-t8qrRkdh.js +2 -0
  143. package/dist/assets/studio/assets/{SchedulerStalled-CWDoimHc.js → SchedulerStalled-mEbvw7Q_.js} +2 -2
  144. package/dist/assets/studio/assets/Schedules-6cMSrwUb.js +2 -0
  145. package/dist/assets/studio/assets/SchedulesPage-LN1rNJ_S.js +2 -0
  146. package/dist/assets/studio/assets/ScopeBadge-J87LKFHA.js +2 -0
  147. package/dist/assets/studio/assets/{SectionCard-BaMzCdoB.js → SectionCard-el9ioYAa.js} +2 -2
  148. package/dist/assets/studio/assets/{Seo-DrRJsavt.js → Seo-DffNYWOM.js} +2 -2
  149. package/dist/assets/studio/assets/SeoPreview-VTTiQ0Ig.js +2 -0
  150. package/dist/assets/studio/assets/{Settings-BKF-tDcG.js → Settings-Bgn96K2D.js} +2 -2
  151. package/dist/assets/studio/assets/{ShieldCheck.es-Bv8hnLvd.js → ShieldCheck.es-BuroL7xK.js} +2 -2
  152. package/dist/assets/studio/assets/{ShieldWarning.es-tBNqa4Gy.js → ShieldWarning.es-DxHvM6gR.js} +2 -2
  153. package/dist/assets/studio/assets/{SignIn.es-CYR5gjp1.js → SignIn.es-DR9QZRQ6.js} +2 -2
  154. package/dist/assets/studio/assets/{SiteAccessField-DFsFphc3.js → SiteAccessField-DQaQg5ez.js} +2 -2
  155. package/dist/assets/studio/assets/SiteOverviewPage-Dz8vVdMJ.js +4 -0
  156. package/dist/assets/studio/assets/SiteSettingsPage-vve5XcFj.js +19 -0
  157. package/dist/assets/studio/assets/{SitesPage-Ch3wI9eD.js → SitesPage-CYccS5X4.js} +2 -2
  158. package/dist/assets/studio/assets/SkillsPage-DIeleLju.js +3 -0
  159. package/dist/assets/studio/assets/{SlidersHorizontal.es-BunTWsru.js → SlidersHorizontal.es-DU9pP_oN.js} +2 -2
  160. package/dist/assets/studio/assets/{SnapshotsPage-BKNIX4_R.js → SnapshotsPage-FUNSFjvW.js} +2 -2
  161. package/dist/assets/studio/assets/{SourceEditor-UA14mu6Q.js → SourceEditor-W-oKqiEa.js} +11 -11
  162. package/dist/assets/studio/assets/{Sparkle.es-DCUl2ClV.js → Sparkle.es-CFKD1Frb.js} +2 -2
  163. package/dist/assets/studio/assets/{Star.es-TkUJHaz_.js → Star.es-CtMOP0Bt.js} +2 -2
  164. package/dist/assets/studio/assets/StatTile-CN_o8uLc.js +2 -0
  165. package/dist/assets/studio/assets/{Status-CvA7NZOE.js → Status-W9nLsw86.js} +2 -2
  166. package/dist/assets/studio/assets/StatusActions-UX4cJWR0.js +3 -0
  167. package/dist/assets/studio/assets/{StopCircle.es-BLOvBRZ0.js → StopCircle.es-Ee8cClpc.js} +2 -2
  168. package/dist/assets/studio/assets/{Table.es-DaFFHvUv.js → Table.es-CPWQPhl7.js} +2 -2
  169. package/dist/assets/studio/assets/TableSkeleton-BDGXoCWS.js +2 -0
  170. package/dist/assets/studio/assets/{TagsMigration-PT2x2FFx.js → TagsMigration-CDN47duJ.js} +2 -2
  171. package/dist/assets/studio/assets/Taxonomy-CZjclj3o.js +2 -0
  172. package/dist/assets/studio/assets/TaxonomyPage-DsTl6LUJ.js +2 -0
  173. package/dist/assets/studio/assets/TaxonomySettingsDialog-BdXSJnYn.js +2 -0
  174. package/dist/assets/studio/assets/TermEditorPage-CpY3StQ8.js +2 -0
  175. package/dist/assets/studio/assets/TermPickers-De-2BW8j.js +2 -0
  176. package/dist/assets/studio/assets/{TerminalWindow.es-CMYwOwtS.js → TerminalWindow.es-BhmVQkxb.js} +2 -2
  177. package/dist/assets/studio/assets/{TextAa.es-BvHRrl8e.js → TextAa.es-DadodqoM.js} +2 -2
  178. package/dist/assets/studio/assets/Toast-B-YQLwgT.js +2 -0
  179. package/dist/assets/studio/assets/{ToolbarRootContext-eqk40r8uh4h6r211-DMiee-JZ.js → ToolbarRootContext-eqk40r8uh4h6r211-BkyB9D6c.js} +2 -2
  180. package/dist/assets/studio/assets/TranslationList-0QP6cnHn.js +2 -0
  181. package/dist/assets/studio/assets/{TranslationsPage-BMwYi70p.js → TranslationsPage-vhO1MEXc.js} +2 -2
  182. package/dist/assets/studio/assets/{Trash.es-DeP4O_OO.js → Trash.es-2JYykXsH.js} +2 -2
  183. package/dist/assets/studio/assets/{User.es-DQ28kCCN.js → User.es-qItRdQDl.js} +2 -2
  184. package/dist/assets/studio/assets/{UserCircle.es-B3ucdxgu.js → UserCircle.es-CRDG7dJK.js} +2 -2
  185. package/dist/assets/studio/assets/{UserPlus.es-Bvwy8dnl.js → UserPlus.es-Dh-6Qn_c.js} +2 -2
  186. package/dist/assets/studio/assets/{Warning.es-BxSUvFpP.js → Warning.es-BiL19mbZ.js} +2 -2
  187. package/dist/assets/studio/assets/{XCircle.es-CkK-PtCi.js → XCircle.es-85KvulLu.js} +2 -2
  188. package/dist/assets/studio/assets/{analytics-settings-1vjKX3ic.js → analytics-settings-DzxkQswL.js} +2 -2
  189. package/dist/assets/studio/assets/{api-errors-BqgiTrY-.js → api-errors-tZYwLeo6.js} +2 -2
  190. package/dist/assets/studio/assets/{approvals-BG3S3Lmb.js → approvals-NA7tFTjw.js} +2 -2
  191. package/dist/assets/studio/assets/{ar-7BNSMFJG.js → ar-DosgfIej.js} +2 -2
  192. package/dist/assets/studio/assets/auth-BsoY4NJQ.js +4 -0
  193. package/dist/assets/studio/assets/{badge-dq8bx752b9dp7dst-CaiSb00a.js → badge-dq8bx752b9dp7dst-BSe3ItaV.js} +2 -2
  194. package/dist/assets/studio/assets/{banner-msnmqm7of2lck01x-LPHRuEVu.js → banner-msnmqm7of2lck01x-BG4Z0Wo2.js} +2 -2
  195. package/dist/assets/studio/assets/bash-jpzh6zbf5237424t-Sd52I7bZ.js +1 -0
  196. package/dist/assets/studio/assets/{blockIcon-BMJA6Nhj.js → blockIcon-fWcx8Dfl.js} +2 -2
  197. package/dist/assets/studio/assets/blocks-CGhmSv2M.js +3 -0
  198. package/dist/assets/studio/assets/body-blocks-DCP3w1pD.js +6 -0
  199. package/dist/assets/studio/assets/button-pa1bq9b85hawg41a-CTLAwRb5.js +2 -0
  200. package/dist/assets/studio/assets/charts-C_1bsD44.js +39 -0
  201. package/dist/assets/studio/assets/{checkbox-lbo436duy7krxcsk-wm7AjkDD.js → checkbox-lbo436duy7krxcsk-U7-T3UJ5.js} +2 -2
  202. package/dist/assets/studio/assets/clipboard-text-gd6s3n1bqse9zgt8-CwYfjV1R.js +2 -0
  203. package/dist/assets/studio/assets/{code-eu8kzwqnlhoyin24-CsATaTMW.js → code-eu8kzwqnlhoyin24-BlzpiHD7.js} +2 -2
  204. package/dist/assets/studio/assets/collapsible-l8g94on4w7qfosmn-CcuxOZc3.js +2 -0
  205. package/dist/assets/studio/assets/{collection-icons-DEzSdFdW.js → collection-icons-vQBNxoLg.js} +2 -2
  206. package/dist/assets/studio/assets/combobox-hdxtsm2gqcxxgfju-DZri6Aur.js +2 -0
  207. package/dist/assets/studio/assets/{comment-settings-BhDcXf18.js → comment-settings-QV6Pl-DK.js} +2 -2
  208. package/dist/assets/studio/assets/{composite-ab8dmdfoj6tmhcn1-TEW1OGYY.js → composite-ab8dmdfoj6tmhcn1-BnZxF-Cq.js} +2 -2
  209. package/dist/assets/studio/assets/{core-n0de50o00ej2ecfe-gtt67pEc.js → core-n0de50o00ej2ecfe-DHGY8swS.js} +3 -3
  210. package/dist/assets/studio/assets/createToastManager-onmoqrmr8zo02rif-BKvFbhid.js +2 -0
  211. package/dist/assets/studio/assets/{date-picker-cotkexrpqu5tjikv-CHMsbt_a.js → date-picker-cotkexrpqu5tjikv-C4eu_Fjq.js} +2 -2
  212. package/dist/assets/studio/assets/date-picker-xpWVhP2g.js +1 -0
  213. package/dist/assets/studio/assets/{de-DRGJAtRR.js → de-07MmlvEH.js} +2 -2
  214. package/dist/assets/studio/assets/{deleteLabels-BZsRaJ0n.js → deleteLabels-DFkO1iOx.js} +2 -2
  215. package/dist/assets/studio/assets/{dialog-glpnivujociqs9lh-BtrG1W0p.js → dialog-glpnivujociqs9lh-RRpeKfY_.js} +2 -2
  216. package/dist/assets/studio/assets/dropdown-m53ji1d66mws89wh-Dz3jCHEA.js +2 -0
  217. package/dist/assets/studio/assets/{editor-CKzj8rtq.js → editor-a2ZIJiuW.js} +23 -23
  218. package/dist/assets/studio/assets/{elevation-DorMcI2T.js → elevation-DYfiRNLi.js} +2 -2
  219. package/dist/assets/studio/assets/{empty-hkvg3is3uc6dj1at-TAstS706.js → empty-hkvg3is3uc6dj1at-i0Hdi_nk.js} +2 -2
  220. package/dist/assets/studio/assets/{engine-javascript-e9xj8hhz9xfqhpnu-CaOb2Rd2.js → engine-javascript-e9xj8hhz9xfqhpnu-C99cuIw8.js} +4 -4
  221. package/dist/assets/studio/assets/{es-CsqXCBuS.js → es-m6OrHslq.js} +2 -2
  222. package/dist/assets/studio/assets/{fa-BEoRnW2s.js → fa-DpD4IL7R.js} +2 -2
  223. package/dist/assets/studio/assets/fields-3PygkO_o.js +3 -0
  224. package/dist/assets/studio/assets/{fields-COuUBXjJ.js → fields-BnrW0cTr.js} +2 -2
  225. package/dist/assets/studio/assets/filter-B_r-t96-.js +2 -0
  226. package/dist/assets/studio/assets/format-BOWG2Mwk.js +2 -0
  227. package/dist/assets/studio/assets/{fr-BY-68edN.js → fr-B8WgcgoC.js} +2 -2
  228. package/dist/assets/studio/assets/{getElementTransform-cuiqmjglkrz4db6c-xvJxAmf3.js → getElementTransform-cuiqmjglkrz4db6c-1fD5DQn4.js} +2 -2
  229. package/dist/assets/studio/assets/{he-BjuAfYO2.js → he-C5z2P_zY.js} +2 -2
  230. package/dist/assets/studio/assets/{hi-aztRBjs2.js → hi-y3FFQ_IL.js} +2 -2
  231. package/dist/assets/studio/assets/{i18n-CO7klvok.js → i18n-BsaF_Usk.js} +4 -4
  232. package/dist/assets/studio/assets/{id-aod1AFv7.js → id-DZw1UOWZ.js} +2 -2
  233. package/dist/assets/studio/assets/index-CZfdz1iP.js +3 -0
  234. package/dist/assets/studio/assets/{inertValue-e0o6qvuef83v78fk-DH-hw2Zh.js → inertValue-e0o6qvuef83v78fk-D0BI_tKj.js} +2 -2
  235. package/dist/assets/studio/assets/{inline-copy-text-gbd7jhwpor27l4rq-DVTadm16.js → inline-copy-text-gbd7jhwpor27l4rq-Bk-oNowb.js} +2 -2
  236. package/dist/assets/studio/assets/{input-c8lv9ulv0kortliq-DdDBVrym.js → input-c8lv9ulv0kortliq-eB01WT1D.js} +2 -2
  237. package/dist/assets/studio/assets/input-group-fjr4r5ax0x78ppax-DfGLBoQm.js +2 -0
  238. package/dist/assets/studio/assets/{input-h5ox92gf13ge04hp-B_dQ6kse.js → input-h5ox92gf13ge04hp-agw7chIZ.js} +2 -2
  239. package/dist/assets/studio/assets/{it-DCqB5QM8.js → it-jdMGjhE_.js} +2 -2
  240. package/dist/assets/studio/assets/{ja-DEPvg7K7.js → ja-B7iE7bcv.js} +2 -2
  241. package/dist/assets/studio/assets/{ko-BPLDoF5X.js → ko-DXgm1rmG.js} +2 -2
  242. package/dist/assets/studio/assets/{layer-card-idh3863vdgprgqai-Bk_0X0Ho.js → layer-card-idh3863vdgprgqai-ByBfeMqc.js} +2 -2
  243. package/dist/assets/studio/assets/layer-dialog-j5ywmzs46ccg6oqy-DkKZqCVk.js +2 -0
  244. package/dist/assets/studio/assets/{link-cqyfjezntvr53rh7-hTM4H-hH.js → link-cqyfjezntvr53rh7-hX7iswfD.js} +3 -3
  245. package/dist/assets/studio/assets/{listings-BMPqJYOd.js → listings-BBpJYnXK.js} +2 -2
  246. package/dist/assets/studio/assets/listings.ar-M7PHTSIQ.js +2 -0
  247. package/dist/assets/studio/assets/listings.de-CH5aaCOm.js +2 -0
  248. package/dist/assets/studio/assets/listings.en-BokvFDHp.js +2 -0
  249. package/dist/assets/studio/assets/listings.es-BjuKqdzh.js +2 -0
  250. package/dist/assets/studio/assets/listings.fa-BnnJbvsw.js +2 -0
  251. package/dist/assets/studio/assets/listings.fr-BmVtA8RY.js +2 -0
  252. package/dist/assets/studio/assets/listings.he-ChZA73x4.js +2 -0
  253. package/dist/assets/studio/assets/listings.hi-DvnctLXs.js +2 -0
  254. package/dist/assets/studio/assets/listings.id-CSijb9ma.js +2 -0
  255. package/dist/assets/studio/assets/listings.it-C2u3X02R.js +2 -0
  256. package/dist/assets/studio/assets/listings.ja-PobWk81a.js +2 -0
  257. package/dist/assets/studio/assets/listings.ko-Dhag6t4a.js +2 -0
  258. package/dist/assets/studio/assets/listings.nl-CxdrzNqn.js +2 -0
  259. package/dist/assets/studio/assets/listings.pl-RKav_ar8.js +2 -0
  260. package/dist/assets/studio/assets/listings.pt-BR-Tw2u72DP.js +2 -0
  261. package/dist/assets/studio/assets/listings.ru-CfB8nrXj.js +2 -0
  262. package/dist/assets/studio/assets/listings.tr-CEX7fIpw.js +2 -0
  263. package/dist/assets/studio/assets/listings.uk-D_5gi8P6.js +2 -0
  264. package/dist/assets/studio/assets/listings.zh-Hans-B5HM6I_k.js +2 -0
  265. package/dist/assets/studio/assets/loader-j2v6fab8iucuxz1z-Cc_2xU85.js +2 -0
  266. package/dist/assets/studio/assets/marked.esm-CO-4B_gx.js +66 -0
  267. package/dist/assets/studio/assets/{media-B4OgdUJn.js → media-f6By4NWo.js} +3 -3
  268. package/dist/assets/studio/assets/{meter-majprsslwmpbmkzg-6rVickao.js → meter-majprsslwmpbmkzg-JOIbFPND.js} +2 -2
  269. package/dist/assets/studio/assets/{nl-BQx_AlT7.js → nl-DfCaMXgY.js} +2 -2
  270. package/dist/assets/studio/assets/{pagination-oaenm9t7ou3lmcgw-CFAXeyOP.js → pagination-oaenm9t7ou3lmcgw-BFIKDtRV.js} +2 -2
  271. package/dist/assets/studio/assets/{pl-UC_YuvS2.js → pl-CCnVZ0Ex.js} +2 -2
  272. package/dist/assets/studio/assets/preload-helper-BLdHbfdN.js +1 -0
  273. package/dist/assets/studio/assets/props-mn0mAlcP.js +2 -0
  274. package/dist/assets/studio/assets/{pt-BR-BuQmoNvw.js → pt-BR-DBSU1__X.js} +2 -2
  275. package/dist/assets/studio/assets/radio-35dx7y6rjrezbjsp-Bmnhxybu.js +2 -0
  276. package/dist/assets/studio/assets/react-iRJfyluG.js +10 -0
  277. package/dist/assets/studio/assets/{resolveAriaLabelledBy-nc8mdie5shy87nsb-ElkMlSS0.js → resolveAriaLabelledBy-nc8mdie5shy87nsb-BodbanlU.js} +2 -2
  278. package/dist/assets/studio/assets/{resolveValueLabel-hpmsash3ektitvnb-X_gYut6U.js → resolveValueLabel-hpmsash3ektitvnb-CCmVsV0t.js} +2 -2
  279. package/dist/assets/studio/assets/roles-UXx4Dl3q.js +2 -0
  280. package/dist/assets/studio/assets/rolldown-runtime-XKyaHtl9.js +1 -0
  281. package/dist/assets/studio/assets/{ru-aHNYHkvf.js → ru-BU5ZcgzZ.js} +2 -2
  282. package/dist/assets/studio/assets/{schedule-notices-DSgNUP07.js → schedule-notices-CUIcpbXB.js} +2 -2
  283. package/dist/assets/studio/assets/{scrollable-b6m9ze1u7ps0q1qn-CgUEkapN.js → scrollable-b6m9ze1u7ps0q1qn-CsARZWmE.js} +2 -2
  284. package/dist/assets/studio/assets/{sections-CzIY1j27.js → sections-HkG_1tgk.js} +2 -2
  285. package/dist/assets/studio/assets/select-futox5zqr3r80y9a-4PRIJl2s.js +2 -0
  286. package/dist/assets/studio/assets/skeleton-line-m9dyh126t9k07jvg-C0LAvXNf.js +4 -0
  287. package/dist/assets/studio/assets/{styles-kl02oyrlnld7arja-BX5Ypy0Y.js → styles-kl02oyrlnld7arja-BOYSmemT.js} +2 -2
  288. package/dist/assets/studio/assets/surfaces-JLobTTzl.js +5 -0
  289. package/dist/assets/studio/assets/{switch-cqsvolm7h69z7vgg-BpEnm_Pd.js → switch-cqsvolm7h69z7vgg-g_pP5Vuc.js} +2 -2
  290. package/dist/assets/studio/assets/tabs-gf57qqf1wcclaejq-DZt0FNBy.js +2 -0
  291. package/dist/assets/studio/assets/{tag-input-ohfybx5dbxy3houy-b1nh4y9A.js → tag-input-ohfybx5dbxy3houy-tsg1b-Oa.js} +2 -2
  292. package/dist/assets/studio/assets/tanstack-8GMTaj0M.js +3 -0
  293. package/dist/assets/studio/assets/{taxonomy-keys-DcfYTwBz.js → taxonomy-keys-CBK_h9-x.js} +2 -2
  294. package/dist/assets/studio/assets/{toolbar-h213d8e22yjh5cwq-C2QkNZy6.js → toolbar-h213d8e22yjh5cwq-e1jEOiyl.js} +2 -2
  295. package/dist/assets/studio/assets/tooltip-o4natsv01lpq8oq2-BXAIiJ4Y.js +2 -0
  296. package/dist/assets/studio/assets/{tr-Dg1uTbLZ.js → tr-DqqvIVpV.js} +2 -2
  297. package/dist/assets/studio/assets/{uk-B2V2rWPq.js → uk-BF-n4w69.js} +2 -2
  298. package/dist/assets/studio/assets/{useAnalyticsCard-CWUyZPnL.js → useAnalyticsCard-DkpiYb5T.js} +2 -2
  299. package/dist/assets/studio/assets/{useAriaLabelledBy-ox8dum59shmgypq1-DiMCXaoD.js → useAriaLabelledBy-ox8dum59shmgypq1-q9R7Klb2.js} +2 -2
  300. package/dist/assets/studio/assets/useBaseUiId-lg1teubxudgin0w2-DE9psqVX.js +2 -0
  301. package/dist/assets/studio/assets/useButton-h7s9aq1sfw6arawe-CDg3MSn7.js +4 -0
  302. package/dist/assets/studio/assets/useChartPalette-DS7_qG1C.js +2 -0
  303. package/dist/assets/studio/assets/useClick-l0p0endoxrlp0ae5-dDySeZPV.js +2 -0
  304. package/dist/assets/studio/assets/useCollectionView-DX7hhan1.js +3 -0
  305. package/dist/assets/studio/assets/useCompositeItem-p7090ga00dpqcg5j-DtFwg5rU.js +2 -0
  306. package/dist/assets/studio/assets/useDebounced-BCEnaK6H.js +2 -0
  307. package/dist/assets/studio/assets/useListNavigation-3nyjs362qcau34in-BDg8RPai.js +2 -0
  308. package/dist/assets/studio/assets/{useLiveSite-qsIt_3G6.js → useLiveSite-BCjxnCp4.js} +2 -2
  309. package/dist/assets/studio/assets/{useMe-C2KUqHRE.js → useMe-CxI04z9a.js} +2 -2
  310. package/dist/assets/studio/assets/{usePaging-DpskYY21.js → usePaging-4q9qSaT2.js} +2 -2
  311. package/dist/assets/studio/assets/{usePendingApprovals-Jb9tecJT.js → usePendingApprovals-DegVt90y.js} +2 -2
  312. package/dist/assets/studio/assets/useRender-onwjigxa00uch2ip-BMxnvLE_.js +2 -0
  313. package/dist/assets/studio/assets/{useRenderDialogRoot-lddunc01twftravv-DaCowiKC.js → useRenderDialogRoot-lddunc01twftravv-YHj8p0Db.js} +2 -2
  314. package/dist/assets/studio/assets/useSettled-BYoV3Xxs.js +2 -0
  315. package/dist/assets/studio/assets/{useSwipeDismiss-m1s13x9t9ey9ax3p-YXhW1D1Z.js → useSwipeDismiss-m1s13x9t9ey9ax3p-D7CLht-d.js} +2 -2
  316. package/dist/assets/studio/assets/{useTriggerFocusGuards-lz7wt484xltizro4-fvX0XHjT.js → useTriggerFocusGuards-lz7wt484xltizro4-5lIVnRXF.js} +2 -2
  317. package/dist/assets/studio/assets/vendor-styling-da1xibnxfkjmtglr-f72JA6U4.js +2 -0
  318. package/dist/assets/studio/assets/{zh-Hans-hGcdatjM.js → zh-Hans-CGHUBf9G.js} +2 -2
  319. package/dist/assets/studio/index.html +67 -65
  320. package/dist/src/archive/byte-source.d.ts +22 -0
  321. package/dist/src/archive/byte-source.js +97 -0
  322. package/dist/src/archive/errors.d.ts +32 -0
  323. package/dist/src/archive/errors.js +60 -0
  324. package/dist/src/archive/gzip.d.ts +17 -0
  325. package/dist/src/archive/gzip.js +143 -0
  326. package/dist/src/archive/index.d.ts +12 -0
  327. package/dist/src/archive/index.js +22 -0
  328. package/dist/src/archive/layout.d.ts +35 -0
  329. package/dist/src/archive/layout.js +81 -0
  330. package/dist/src/archive/limits.d.ts +19 -0
  331. package/dist/src/archive/limits.js +52 -0
  332. package/dist/src/archive/manifest-files.d.ts +21 -0
  333. package/dist/src/archive/manifest-files.js +121 -0
  334. package/dist/src/archive/manifest.d.ts +41 -0
  335. package/dist/src/archive/manifest.js +216 -0
  336. package/dist/src/archive/parts.d.ts +25 -0
  337. package/dist/src/archive/parts.js +98 -0
  338. package/dist/src/archive/plan.d.ts +42 -0
  339. package/dist/src/archive/plan.js +164 -0
  340. package/dist/src/archive/read.d.ts +32 -0
  341. package/dist/src/archive/read.js +257 -0
  342. package/dist/src/archive/tar-read.d.ts +19 -0
  343. package/dist/src/archive/tar-read.js +121 -0
  344. package/dist/src/archive/tar.d.ts +23 -0
  345. package/dist/src/archive/tar.js +176 -0
  346. package/dist/src/archive/write.d.ts +28 -0
  347. package/dist/src/archive/write.js +137 -0
  348. package/dist/src/assets.d.ts +2 -0
  349. package/dist/src/assets.js +8 -0
  350. package/dist/src/cli/commands-content.d.ts +2 -0
  351. package/dist/src/cli/commands-content.js +83 -2
  352. package/dist/src/cli/help.d.ts +1 -1
  353. package/dist/src/cli/help.js +26 -0
  354. package/dist/src/cli/types.d.ts +11 -0
  355. package/dist/src/cli/types.js +30 -0
  356. package/dist/src/cli.d.ts +9 -0
  357. package/dist/src/cli.js +25 -0
  358. package/dist/src/commands/archive-bundle.d.ts +115 -0
  359. package/dist/src/commands/archive-bundle.js +302 -0
  360. package/dist/src/commands/archive-reassemble.d.ts +49 -0
  361. package/dist/src/commands/archive-reassemble.js +353 -0
  362. package/dist/src/commands/export.d.ts +47 -0
  363. package/dist/src/commands/export.js +340 -0
  364. package/dist/src/commands/import-apply.d.ts +50 -0
  365. package/dist/src/commands/import-apply.js +145 -0
  366. package/dist/src/commands/import-checks.d.ts +69 -0
  367. package/dist/src/commands/import-checks.js +197 -0
  368. package/dist/src/commands/import-describe-replace.d.ts +17 -0
  369. package/dist/src/commands/import-describe-replace.js +105 -0
  370. package/dist/src/commands/import-describe.d.ts +26 -0
  371. package/dist/src/commands/import-describe.js +329 -0
  372. package/dist/src/commands/import-media.d.ts +10 -0
  373. package/dist/src/commands/import-media.js +43 -0
  374. package/dist/src/commands/import-read.d.ts +34 -0
  375. package/dist/src/commands/import-read.js +93 -0
  376. package/dist/src/commands/import-replace.d.ts +80 -0
  377. package/dist/src/commands/import-replace.js +226 -0
  378. package/dist/src/commands/import-revert.d.ts +25 -0
  379. package/dist/src/commands/import-revert.js +196 -0
  380. package/dist/src/commands/import.d.ts +65 -0
  381. package/dist/src/commands/import.js +389 -0
  382. package/dist/src/config-site.d.ts +29 -0
  383. package/dist/src/config-site.js +129 -0
  384. package/dist/src/config.d.ts +2 -0
  385. package/dist/src/config.js +5 -0
  386. package/dist/src/seed-site.d.ts +13 -0
  387. package/dist/src/seed-site.js +38 -15
  388. package/package.json +12 -12
  389. package/dist/assets/studio/assets/AccountPage-CQrMULMU.js +0 -2
  390. package/dist/assets/studio/assets/AgentModes-JH5AV1Kp.js +0 -2
  391. package/dist/assets/studio/assets/AgentsPage-DYqrqPpK.js +0 -2
  392. package/dist/assets/studio/assets/AnalyticsPage-BT-N5r9S.js +0 -3
  393. package/dist/assets/studio/assets/ApprovalsPage-BlBR2bJe.js +0 -3
  394. package/dist/assets/studio/assets/ArticleEditorPage-DID0kij7.js +0 -3
  395. package/dist/assets/studio/assets/ArticlesPage-BNnaPt3P.js +0 -3
  396. package/dist/assets/studio/assets/Audit-BBc59zCZ.js +0 -2
  397. package/dist/assets/studio/assets/AutomationsPage-f0Royr8c.js +0 -2
  398. package/dist/assets/studio/assets/BodyEditor-CPhgDYDf.js +0 -3
  399. package/dist/assets/studio/assets/BuildPage-uTlTcjYU.js +0 -2
  400. package/dist/assets/studio/assets/CSPContext-ctyrgg64girv38ls-D-cnHPW_.js +0 -2
  401. package/dist/assets/studio/assets/CollectionSettingsPage-DEDaeZuE.js +0 -3
  402. package/dist/assets/studio/assets/CollectionsPage-CkhGPrzQ.js +0 -2
  403. package/dist/assets/studio/assets/ComboboxEmpty-o0q20j2l2syar9kx-BaXMATsn.js +0 -2
  404. package/dist/assets/studio/assets/CommandMenu-B-tO289v.js +0 -2
  405. package/dist/assets/studio/assets/Comments-eyDZIqcr.js +0 -2
  406. package/dist/assets/studio/assets/CompositeItem-hzuk5x3e5zsfgnyj-DWzMQJpB.js +0 -2
  407. package/dist/assets/studio/assets/CompositeRoot-g72lchaerolf5dc9-B3z9Y2aa.js +0 -2
  408. package/dist/assets/studio/assets/DateTimeField-DDfzOTS7.js +0 -3
  409. package/dist/assets/studio/assets/DialogTrigger-g44cuem7n4wez533-XYapK_dR.js +0 -2
  410. package/dist/assets/studio/assets/EditorLayout-D-7SGMFq.js +0 -2
  411. package/dist/assets/studio/assets/EditorPreview-Xw8oj9FH.js +0 -2
  412. package/dist/assets/studio/assets/Elevation-BMSEfJEc.js +0 -2
  413. package/dist/assets/studio/assets/ElevationRequest-DMNP9k8d.js +0 -2
  414. package/dist/assets/studio/assets/EntryPath-oyiMLA_N.js +0 -2
  415. package/dist/assets/studio/assets/FieldsSection-DSQ_6WyW.js +0 -2
  416. package/dist/assets/studio/assets/ListingSections-54FZY0_c.js +0 -2
  417. package/dist/assets/studio/assets/LoginPage-CfK_bUzG.js +0 -2
  418. package/dist/assets/studio/assets/MediaUpload-BsfEW54J.js +0 -2
  419. package/dist/assets/studio/assets/MembersPage-CQfZHUyZ.js +0 -2
  420. package/dist/assets/studio/assets/Menus-CMycEXL9.js +0 -2
  421. package/dist/assets/studio/assets/NavigationPage-ibrj0vIQ.js +0 -2
  422. package/dist/assets/studio/assets/PageEditorPage-DSkEL4Kd.js +0 -3
  423. package/dist/assets/studio/assets/PagesPage-CcYIGeFV.js +0 -2
  424. package/dist/assets/studio/assets/Readers-7sSyRz2_.js +0 -3
  425. package/dist/assets/studio/assets/RedirectDialog-CYumkh2m.js +0 -2
  426. package/dist/assets/studio/assets/RedirectsPage-C5tXHDYj.js +0 -2
  427. package/dist/assets/studio/assets/RelativeTime-DEpS_xvJ.js +0 -2
  428. package/dist/assets/studio/assets/ReleaseParts-CxkuObjz.js +0 -2
  429. package/dist/assets/studio/assets/RowMenu-AP-NpHjZ.js +0 -2
  430. package/dist/assets/studio/assets/ScheduleHistoryPage-C3oolniC.js +0 -2
  431. package/dist/assets/studio/assets/ScheduleStatusBadge-DoEIdFG0.js +0 -2
  432. package/dist/assets/studio/assets/Schedules-BJZ9oWRm.js +0 -2
  433. package/dist/assets/studio/assets/SchedulesPage-DLazBBUq.js +0 -2
  434. package/dist/assets/studio/assets/ScopeBadge-CcX4axiK.js +0 -2
  435. package/dist/assets/studio/assets/SeoPreview-BiO1olkt.js +0 -2
  436. package/dist/assets/studio/assets/SiteOverviewPage-DakxTV0Y.js +0 -4
  437. package/dist/assets/studio/assets/SiteSettingsPage-z37YgQ5L.js +0 -3
  438. package/dist/assets/studio/assets/SkillsPage-B_3NbnIf.js +0 -3
  439. package/dist/assets/studio/assets/StatTile-Cr4GICBy.js +0 -2
  440. package/dist/assets/studio/assets/StatusActions-TtnjZcFq.js +0 -3
  441. package/dist/assets/studio/assets/TableSkeleton-BKNgoUo8.js +0 -2
  442. package/dist/assets/studio/assets/Taxonomy-ByShHsjU.js +0 -2
  443. package/dist/assets/studio/assets/TaxonomyPage-CCtJdqGI.js +0 -2
  444. package/dist/assets/studio/assets/TaxonomySettingsDialog-CgfVOZ_Z.js +0 -2
  445. package/dist/assets/studio/assets/TermEditorPage-Nu-ffOBS.js +0 -2
  446. package/dist/assets/studio/assets/TermPickers-BEiFHktI.js +0 -2
  447. package/dist/assets/studio/assets/Toast-CE5qUVug.js +0 -2
  448. package/dist/assets/studio/assets/TranslationList-Belho9_O.js +0 -2
  449. package/dist/assets/studio/assets/auth-BXDbnIpO.js +0 -4
  450. package/dist/assets/studio/assets/bash-jpzh6zbf5237424t-bmc95DGl.js +0 -1
  451. package/dist/assets/studio/assets/blocks-DsUN3PVg.js +0 -3
  452. package/dist/assets/studio/assets/body-blocks-BdThcQp1.js +0 -6
  453. package/dist/assets/studio/assets/button-pa1bq9b85hawg41a-CZ7DAyL6.js +0 -2
  454. package/dist/assets/studio/assets/charts-XI-9_kn1.js +0 -39
  455. package/dist/assets/studio/assets/clipboard-text-gd6s3n1bqse9zgt8-C4A0eQjP.js +0 -2
  456. package/dist/assets/studio/assets/collapsible-l8g94on4w7qfosmn-CW2g0wiH.js +0 -2
  457. package/dist/assets/studio/assets/combobox-hdxtsm2gqcxxgfju-dmoeYUzn.js +0 -2
  458. package/dist/assets/studio/assets/createToastManager-onmoqrmr8zo02rif-B3ZwAVFm.js +0 -2
  459. package/dist/assets/studio/assets/date-picker-DOjocNTh.js +0 -1
  460. package/dist/assets/studio/assets/dropdown-m53ji1d66mws89wh-ka-0zaon.js +0 -2
  461. package/dist/assets/studio/assets/fields-BBhUYvOg.js +0 -3
  462. package/dist/assets/studio/assets/format-DGE2c-4V.js +0 -2
  463. package/dist/assets/studio/assets/index-RYojDzwB.js +0 -3
  464. package/dist/assets/studio/assets/input-group-fjr4r5ax0x78ppax-CT-8YIOd.js +0 -2
  465. package/dist/assets/studio/assets/layer-dialog-j5ywmzs46ccg6oqy-DkoWR_eM.js +0 -2
  466. package/dist/assets/studio/assets/listings.ar-DXRWqc62.js +0 -2
  467. package/dist/assets/studio/assets/listings.de-Csa1cEQa.js +0 -2
  468. package/dist/assets/studio/assets/listings.en-B2ag95BI.js +0 -2
  469. package/dist/assets/studio/assets/listings.es-Bdru9SG0.js +0 -2
  470. package/dist/assets/studio/assets/listings.fa-Cn3Imeel.js +0 -2
  471. package/dist/assets/studio/assets/listings.fr-C2TbjfwC.js +0 -2
  472. package/dist/assets/studio/assets/listings.he-BWrcYBRD.js +0 -2
  473. package/dist/assets/studio/assets/listings.hi-B7KLPBJO.js +0 -2
  474. package/dist/assets/studio/assets/listings.id-DhPXX4dJ.js +0 -2
  475. package/dist/assets/studio/assets/listings.it-BHk6eXUN.js +0 -2
  476. package/dist/assets/studio/assets/listings.ja-C2Mn-f-T.js +0 -2
  477. package/dist/assets/studio/assets/listings.ko-CFGLKLVf.js +0 -2
  478. package/dist/assets/studio/assets/listings.nl-oe_9KQ_G.js +0 -2
  479. package/dist/assets/studio/assets/listings.pl-92ogXX8H.js +0 -2
  480. package/dist/assets/studio/assets/listings.pt-BR-CWGj3QUy.js +0 -2
  481. package/dist/assets/studio/assets/listings.ru-BxBl3MJe.js +0 -2
  482. package/dist/assets/studio/assets/listings.tr-dufxGupd.js +0 -2
  483. package/dist/assets/studio/assets/listings.uk-IBYfI5se.js +0 -2
  484. package/dist/assets/studio/assets/listings.zh-Hans-Cr2i3Okj.js +0 -2
  485. package/dist/assets/studio/assets/marked.esm-DCShygCS.js +0 -68
  486. package/dist/assets/studio/assets/preload-helper-DjzSQ1t3.js +0 -1
  487. package/dist/assets/studio/assets/props-DVStdwxc.js +0 -2
  488. package/dist/assets/studio/assets/radio-35dx7y6rjrezbjsp-CA8bk1jm.js +0 -2
  489. package/dist/assets/studio/assets/react-CDCuUAOg.js +0 -10
  490. package/dist/assets/studio/assets/roles-B7USahqW.js +0 -2
  491. package/dist/assets/studio/assets/rolldown-runtime-hePW80VL.js +0 -1
  492. package/dist/assets/studio/assets/select-futox5zqr3r80y9a-DwUjYDoe.js +0 -2
  493. package/dist/assets/studio/assets/skeleton-line-m9dyh126t9k07jvg-xeLBEDtm.js +0 -4
  494. package/dist/assets/studio/assets/surfaces-ZG_PzA7x.js +0 -5
  495. package/dist/assets/studio/assets/tabs-gf57qqf1wcclaejq-DdSoO2Vr.js +0 -2
  496. package/dist/assets/studio/assets/tanstack-BRxyYm4G.js +0 -3
  497. package/dist/assets/studio/assets/useBaseUiId-lg1teubxudgin0w2-CURnJ4xq.js +0 -3
  498. package/dist/assets/studio/assets/useButton-h7s9aq1sfw6arawe-BKHpRbOo.js +0 -4
  499. package/dist/assets/studio/assets/useChartPalette-C180NiLH.js +0 -2
  500. package/dist/assets/studio/assets/useClick-l0p0endoxrlp0ae5-26sNFa8T.js +0 -2
  501. package/dist/assets/studio/assets/useCollectionView-Dovz6ReB.js +0 -2
  502. package/dist/assets/studio/assets/useCompositeItem-p7090ga00dpqcg5j-C06idhCr.js +0 -2
  503. package/dist/assets/studio/assets/useDebounced-DmPVYKCM.js +0 -2
  504. package/dist/assets/studio/assets/useListNavigation-3nyjs362qcau34in-_RhmHbc1.js +0 -2
  505. package/dist/assets/studio/assets/useRender-onwjigxa00uch2ip-FZFmikvk.js +0 -2
  506. package/dist/assets/studio/assets/useSettled-C0sKy_Gd.js +0 -2
  507. package/dist/assets/studio/assets/vendor-styling-da1xibnxfkjmtglr-BYdxZxc9.js +0 -2
@@ -1,4 +1,4 @@
1
- import{t as e}from"./rolldown-runtime-hi7ti5xiuxsegr96-DK3Fl9T5.js";var t=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function n(e){return r(e)}function r(e){return Array.isArray(e)?i(e):e instanceof RegExp?e:typeof e==`object`?a(e):e}function i(e){let t=[];for(let n=0,i=e.length;n<i;n++)t[n]=r(e[n]);return t}function a(e){let t={};for(let n in e)t[n]=r(e[n]);return t}function o(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function s(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?s(e.substring(0,e.length-1)):e.substr(~t+1)}var c=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,l=class{static hasCaptures(e){return e!==null&&(c.lastIndex=0,c.test(e))}static replaceCaptures(e,t,n){return e.replace(c,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function u(e,t){return e<t?-1:+(e>t)}function d(e,t){if(e===null&&t===null)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++){let n=u(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function f(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 p(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var m=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}},h=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(te(e),t)}static createFromParsedTheme(e,t){return re(e,t)}_cachedMatchRoot=new m(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>_(e.parent,t.parentScopes));return n?new ee(n.fontStyle,n.foreground,n.background):null}},g=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||this.parent!==null&&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}};function _(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!v(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function v(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var ee=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function te(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=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8}}let s=null;typeof i.settings.foreground==`string`&&f(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&f(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new ne(l,u,e,o,s,c)}}return n}var ne=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}},y=(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))(y||{});function re(e,t){e.sort((e,t)=>{let n=u(e.scope,t.scope);return n!==0||(n=d(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new ie(t),o=new ee(n,a.getId(r),a.getId(i)),s=new se(new oe(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new h(a,o,s)}var ie=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(e===null)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)}},ae=Object.freeze([]),oe=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||ae,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,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},se=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(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),oe.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(d(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new oe(e,t,n,r,i))}},b=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),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return!!(e&1024)}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=le(r)),i!==null&&(u=+!!i),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function ce(e){return e}function le(e){return e}function x(e,t){let n=[],r=de(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(ue(i)){let e=[];do e.push(i),i=r.next();while(ue(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function ue(e){return!!e&&!!e.match(/[\w\.:]+/)}function de(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function fe(e){typeof e.dispose==`function`&&e.dispose()}var S=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},pe=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},me=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))}},he=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new S(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new me;for(let n of e)ge(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof S){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 ge(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 S?C({baseGrammar:a,selfGrammar:i},r):_e(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new S(e))}function _e(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];w([r],t,n)}}function C(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&w(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&w(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function w(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?o({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&w(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=Ce(i);switch(a.kind){case 0:C({...t,selfGrammar:t.baseGrammar},n);break;case 1:C(t,n);break;case 2:_e(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?_e(a.ruleName,i,n):C(i,n)}else a.kind===4?n.add(new pe(a.scopeName,a.ruleName)):n.add(new S(a.scopeName))}}}var ve=class{kind=0},ye=class{kind=1},be=class{constructor(e){this.ruleName=e}kind=2},xe=class{constructor(e){this.scopeName=e}kind=3},Se=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function Ce(e){if(e===`$base`)return new ve;if(e===`$self`)return new ye;let t=e.indexOf(`#`);return t===-1?new xe(e):t===0?new be(e.substring(1)):new Se(e.substring(0,t),e.substring(t+1))}var we=/\\(\d+)/,Te=/\\(\d+)/g,Ee=-1,De=-2;function Oe(e){return e}function ke(e){return e}var T=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=l.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=l.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${s(this.$location.filename)}:${this.$location.line}`:`unknown`;return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:l.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:l.replaceCaptures(this._contentName,e,t)}},Ae=class extends T{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!`)}},je=class extends T{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new E(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),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 D,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Me=class extends T{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(),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 D,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ne=class extends T{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new E(i,this.id),this.beginCaptures=a,this._end=new E(o||`￿`,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),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){this._cachedCompiledPatterns=new D;for(let t of 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}},Pe=class extends T{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new E(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new E(o,De),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),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){this._cachedCompiledPatterns=new D;for(let t of 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 D,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||`￿`),this._cachedCompiledWhilePatterns}},Fe=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new Ae(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new je(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=o({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new Me(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new Pe(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 Ne(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(e===`$vscodeTextmateLocation`)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(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=Ce(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l){if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository)}}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof Me||e instanceof Ne||e instanceof Pe)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},E=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){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);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this._anchorCache=this.hasAnchor?this._buildAnchorCache():null,this.ruleId=t,this.hasBackReferences=typeof this.source==`string`&&we.test(this.source)}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(typeof this.source!=`string`)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 Te.lastIndex=0,this.source.replace(Te,(e,t)=>p(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=`￿`,t[i+1]=`￿`,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=`￿`,t[i+1]=`G`,n[i+1]=`￿`,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},D=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(),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 Ie(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):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):this.compile(e)}_resolveAnchors(e,t,n){return new Ie(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},Ie=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&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(`
1
+ import{t as e}from"./rolldown-runtime-hi7ti5xiuxsegr96-DK3Fl9T5.js";var t=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function n(e){return r(e)}function r(e){return Array.isArray(e)?i(e):e instanceof RegExp?e:typeof e==`object`?a(e):e}function i(e){let t=[];for(let n=0,i=e.length;n<i;n++)t[n]=r(e[n]);return t}function a(e){let t={};for(let n in e)t[n]=r(e[n]);return t}function o(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function s(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?s(e.substring(0,e.length-1)):e.substr(~t+1)}var c=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,l=class{static hasCaptures(e){return e!==null&&(c.lastIndex=0,c.test(e))}static replaceCaptures(e,t,n){return e.replace(c,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function u(e,t){return e<t?-1:+(e>t)}function d(e,t){if(e===null&&t===null)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++){let n=u(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function f(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 p(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var m=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}},h=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(te(e),t)}static createFromParsedTheme(e,t){return re(e,t)}_cachedMatchRoot=new m(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>_(e.parent,t.parentScopes));return n?new ee(n.fontStyle,n.foreground,n.background):null}},g=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||this.parent!==null&&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}};function _(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!v(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function v(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var ee=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function te(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=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8}}let s=null;typeof i.settings.foreground==`string`&&f(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&f(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new ne(l,u,e,o,s,c)}}return n}var ne=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}},y=(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))(y||{});function re(e,t){e.sort((e,t)=>{let n=u(e.scope,t.scope);return n!==0||(n=d(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new ie(t),o=new ee(n,a.getId(r),a.getId(i)),s=new se(new oe(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new h(a,o,s)}var ie=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(e===null)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)}},ae=Object.freeze([]),oe=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||ae,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,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},se=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(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),oe.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null)this._mainRule.acceptOverwrite(e,n,r,i);else{for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(d(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new oe(e,t,n,r,i))}}},b=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),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return!!(e&1024)}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=le(r)),i!==null&&(u=+!!i),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c|0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function ce(e){return e}function le(e){return e}function x(e,t){let n=[],r=de(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(ue(i)){let e=[];do e.push(i),i=r.next();while(ue(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function ue(e){return!!e&&!!e.match(/[\w\.:]+/)}function de(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function fe(e){typeof e.dispose==`function`&&e.dispose()}var S=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},pe=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},me=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))}},he=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new S(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new me;for(let n of e)ge(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof S){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 ge(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 S?C({baseGrammar:a,selfGrammar:i},r):_e(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new S(e))}function _e(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];w([r],t,n)}}function C(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&w(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&w(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function w(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?o({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&w(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=Ce(i);switch(a.kind){case 0:C({...t,selfGrammar:t.baseGrammar},n);break;case 1:C(t,n);break;case 2:_e(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?_e(a.ruleName,i,n):C(i,n)}else a.kind===4?n.add(new pe(a.scopeName,a.ruleName)):n.add(new S(a.scopeName))}}}var ve=class{kind=0},ye=class{kind=1},be=class{constructor(e){this.ruleName=e}kind=2},xe=class{constructor(e){this.scopeName=e}kind=3},Se=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function Ce(e){if(e===`$base`)return new ve;if(e===`$self`)return new ye;let t=e.indexOf(`#`);return t===-1?new xe(e):t===0?new be(e.substring(1)):new Se(e.substring(0,t),e.substring(t+1))}var we=/\\(\d+)/,Te=/\\(\d+)/g,Ee=-1,De=-2;function Oe(e){return e}function ke(e){return e}var T=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=l.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=l.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${s(this.$location.filename)}:${this.$location.line}`:`unknown`;return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:l.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:l.replaceCaptures(this._contentName,e,t)}},Ae=class extends T{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!`)}},je=class extends T{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new E(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),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 D,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Me=class extends T{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(),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 D,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ne=class extends T{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new E(i,this.id),this.beginCaptures=a,this._end=new E(o||`￿`,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),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){this._cachedCompiledPatterns=new D;for(let t of 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}},Pe=class extends T{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new E(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new E(o,De),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),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){this._cachedCompiledPatterns=new D;for(let t of 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 D,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||`￿`),this._cachedCompiledWhilePatterns}},Fe=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new Ae(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new je(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=o({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new Me(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new Pe(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 Ne(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(e===`$vscodeTextmateLocation`)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(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=Ce(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l){if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository)}}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof Me||e instanceof Ne||e instanceof Pe)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},E=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){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);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this._anchorCache=this.hasAnchor?this._buildAnchorCache():null,this.ruleId=t,this.hasBackReferences=typeof this.source==`string`&&we.test(this.source)}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(typeof this.source!=`string`)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 Te.lastIndex=0,this.source.replace(Te,(e,t)=>p(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=`￿`,t[i+1]=`￿`,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=`￿`,t[i+1]=`G`,n[i+1]=`￿`,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},D=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(),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 Ie(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):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):this.compile(e)}_resolveAnchors(e,t,n){return new Ie(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},Ie=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&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(`
2
2
  `)}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},Le=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Re=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new Le(e,8),this._embeddedLanguagesMatcher=new ze(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new Le(0,0);_getBasicScopeAttributes=new m(e=>new Le(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/},ze=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>p(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])}};typeof process<`u`&&{}.VSCODE_TEXTMATE_DEBUG;var Be=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Ve(e,t,n,r,i,a,o,s){let c=t.content.length,l=!1,u=-1;if(o){let o=He(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,u=o.anchorPosition}let d=Date.now();for(;!l;){if(s!==0&&Date.now()-d>s)return new Be(i,!0);f()}return new Be(i,!1);function f(){let o=Ue(e,t,n,r,i,u);if(!o){a.produce(i,c),l=!0;return}let s=o.captureIndices,d=o.matchedRuleId,f=s&&s.length>0?s[0].end>r:!1;if(d===Ee){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),O(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);let d=i;if(i=i.parent,u=d.getAnchorPos(),!f&&d.getEnterPos()===r){i=d,a.produce(i,c),l=!0;return}}else{let o=e.getRule(d);a.produce(i,s[0].start);let p=i,m=o.getName(t.content,s),h=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(d,r,u,s[0].end===c,null,h,h),o instanceof Ne){let r=o;O(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.endHasBackReferences&&(i=i.withEndRule(r.getEndWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(o instanceof Pe){let r=o;O(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.whileHasBackReferences&&(i=i.withEndRule(r.getWhileWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(O(e,t,n,i,a,o.captures,s),a.produce(i,s[0].end),i=i.pop(),!f){i=i.safePop(),a.produce(i,c),l=!0;return}}s[0].end>r&&(r=s[0].end,n=!1)}}function He(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof Pe&&s.push({rule:n,stack:t})}for(let c=s.pop();c;c=s.pop()){let{ruleScanner:s,findOptions:l}=qe(c.rule,e,c.stack.endRule,n,r===o),u=s.findNextMatchSync(t,r,l);if(u){if(u.ruleId!==De){i=c.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(a.produce(c.stack,u.captureIndices[0].start),O(e,t,n,c.stack,a,c.rule.whileCaptures,u.captureIndices),a.produce(c.stack,u.captureIndices[0].end),o=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,n=!1))}else{i=c.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}function Ue(e,t,n,r,i,a){let o=We(e,t,n,r,i,a),s=e.getInjections();if(s.length===0)return o;let c=Ge(s,e,t,n,r,i,a);if(!c)return o;if(!o)return c;let l=o.captureIndices[0].start,u=c.captureIndices[0].start;return u<l||c.priorityMatch&&u===l?c:o}function We(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=Ke(i.getRule(e),e,i.endRule,n,r===a),c=o.findNextMatchSync(t,r,s);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function Ge(e,t,n,r,i,a,o){let s=Number.MAX_VALUE,c=null,l,u=0,d=a.contentNameScopesList.getScopeNames();for(let a=0,f=e.length;a<f;a++){let f=e[a];if(!f.matcher(d))continue;let{ruleScanner:p,findOptions:m}=Ke(t.getRule(f.ruleId),t,null,r,i===o),h=p.findNextMatchSync(n,i,m);if(!h)continue;let g=h.captureIndices[0].start;if(!(g>=s)&&(s=g,c=h.captureIndices,l=h.ruleId,u=f.priority,s===i))break}return c?{priorityMatch:u===-1,captureIndices:c,matchedRuleId:l}:null}function Ke(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function qe(e,t,n,r,i){return{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function O(e,t,n,r,i,a,o){if(a.length===0)return;let s=t.content,c=Math.min(a.length,o.length),l=[],u=o[0].end;for(let t=0;t<c;t++){let c=a[t];if(c===null)continue;let d=o[t];if(d.length===0)continue;if(d.start>u)break;for(;l.length>0&&l[l.length-1].endPos<=d.start;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?i.produceFromScopes(l[l.length-1].scopes,d.start):i.produce(r,d.start),c.retokenizeCapturedWithRuleId){let t=c.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),l=c.getContentName(s,o),u=a.pushAttributed(l,e),f=r.push(c.retokenizeCapturedWithRuleId,d.start,-1,!1,null,a,u),p=e.createOnigString(s.substring(0,d.end));Ve(e,p,n&&d.start===0,d.start,f,i,!1,0),fe(p);continue}let f=c.getName(s,o);if(f!==null){let t=(l.length>0?l[l.length-1].scopes:r.contentNameScopesList).pushAttributed(f,e);l.push(new Je(t,d.end))}}for(;l.length>0;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var Je=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function Ye(e,t,n,r,i,a,o,s){return new Qe(e,t,n,r,i,a,o,s)}function Xe(e,t,n,r,i){let a=x(t,k),o=Fe.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function k(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(Ze(t[r],e))return n=r+1,!0;return!1})}function Ze(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]===`.`}var Qe=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new Re(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=$e(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i)){let t=x(e,k);for(let n of t)this._tokenTypeMatchers.push({matcher:n.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={lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){let e=r.injections;if(e)for(let n in e)Xe(t,n,e[n],this,r);let i=this._grammarRepository.injections(n);i&&i.forEach(e=>{let n=this.getExternalGrammar(e);if(n){let e=n.injectionSelector;e&&Xe(t,e,n,this,n)}})}return t.sort((e,t)=>e.priority-t.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(Oe(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[ke(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]=$e(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){this._rootId===-1&&(this._rootId=Fe.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===et.NULL){i=!0;let e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=b.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),a=this.getRule(this._rootId).getName(null,null),o;o=a?A.createRootAndLookUpScopeName(a,r,this):A.createRoot(`unknown`,r),t=new et(null,this._rootId,-1,-1,!1,null,o,o)}else i=!1,t.reset();e+=`
3
3
  `;let a=this.createOnigString(e),o=a.content.length,s=new nt(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=Ve(this,a,i,0,t,s,!0,r);return fe(a),{lineLength:o,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function $e(e,t){return e=n(e),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 A=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)i=g.push(i,t.scopeNames),r=new e(r,i,t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new g(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new g(null,t),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(n,i,o);return new e(null,a,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(` `)}equals(t){return e.equals(this,t)}static equals(e,t){do{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}while(1)}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return n!==null&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),b.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(` `)===-1)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),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(t.tokenAttributes,i,o);return new e(t,a,s)}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}},et=class e{constructor(e,t,n,r,i,a,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,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 t!==null&&e._equals(this,t)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?A.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{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}while(1)}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,o,s){return new e(this,t,n,r,i,a,o,s)}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:ke(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=A.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,Oe(n.ruleId),n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,A.fromExtension(r,n.contentNameScopesList))}},tt=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>e===`*`?(this.allowAny=!0,[]):x(e,k).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>x(e,k).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!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}},nt=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=b.set(n,0,ce(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=b.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(),this._tokens.length===0&&(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()),this._binaryTokens.length===0&&(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}},rt=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,Ye(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},it=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new rt(h.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(h.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 tt(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new he(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=typeof this._options.getInjections==`function`?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)}},at=et.NULL;function j(e,t){let n=typeof e==`string`?{}:{...e.colorReplacements},r=typeof e==`string`?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))typeof i==`string`?n[e]=i:e===r&&Object.assign(n,i);return n}function M(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function ot(e){return Array.isArray(e)?e:[e]}async function st(e){return Promise.resolve(typeof e==`function`?e():e).then(e=>e.default||e)}function N(e){return!e||[`plaintext`,`txt`,`text`,`plain`].includes(e)}function ct(e){return e===`ansi`||N(e)}function P(e){return e===`none`}function lt(e){return P(e)}var ut=/(\r?\n)/g;function F(e,t=!1){if(e.length===0)return[[``,0]];let n=e.split(ut),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}var dt={light:`#333333`,dark:`#bbbbbb`},ft={light:`#fffffe`,dark:`#1e1e1e`},pt=`__shiki_resolved`;function mt(e){if(e?.[pt])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||=t.type===`light`?dt.light:dt.dark,n||=t.type===`light`?ft.light:ft.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 o(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,`0`).toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(a.set(e,n),n)}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=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i});for(let e of Object.keys(t.colors||{}))if((e===`editor.foreground`||e===`editor.background`||e.startsWith(`terminal.ansi`))&&!t.colors[e]?.startsWith(`#`)){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,pt,{enumerable:!1,writable:!1,value:!0}),t}async function ht(e){return[...new Set((await Promise.all(e.filter(e=>!ct(e)).map(async e=>await st(e).then(e=>Array.isArray(e)?e:[e])))).flat())]}async function gt(e){return(await Promise.all(e.map(async e=>lt(e)?null:mt(await st(e))))).filter(e=>!!e)}function _t(e,n){if(!n)return e;if(n[e]){let r=new Set([e]);for(;n[e];){if(e=n[e],r.has(e))throw new t(`Circular alias \`${[...r].join(` -> `)} -> ${e}\``);r.add(e)}}return e}var vt=class extends it{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;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)}getTheme(e){return typeof e==`string`?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=mt(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||=[...this._resolvedThemes.keys()],this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=h.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=_t(e,this._alias),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 n=[...this._langGraph.entries()],r=n.filter(([e,t])=>!t);if(r.length){let e=n.filter(([e,t])=>t?(t.embeddedLanguages||t.embeddedLangs)?.some(e=>r.map(([e])=>e).includes(e)):!1).filter(e=>!r.includes(e));throw new t(`Missing languages ${r.map(([e])=>`\`${e}\``).join(`, `)}, required by ${e.map(([e])=>`\`${e}\``).join(`, `)}`)}for(let[e,t]of n)this._resolver.addLanguage(t);for(let[e,t]of n)this.loadLanguage(t)}getLoadedLanguages(){return this._loadedLanguagesCache||=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])],this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}},yt=class{_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}},I=0;function bt(e){I+=1,e.warnings!==!1&&I>=10&&I%10==0&&console.warn(`[Shiki] ${I} 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 t("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(mt),a=new vt(new yt(e.engine,r),i,r,e.langAlias),o;function s(t){return _t(t,e.langAlias)}function c(e){_();let n=a.getGrammar(typeof e==`string`?e:e.name);if(!n)throw new t(`Language \`${e}\` not found, you may need to load it first`);return n}function l(e){if(e===`none`)return{bg:``,fg:``,name:`none`,settings:[],type:`dark`};_();let n=a.getTheme(e);if(!n)throw new t(`Theme \`${e}\` not found, you may need to load it first`);return n}function u(e){_();let t=l(e);return o!==e&&(a.setTheme(t),o=e),{theme:t,colorMap:a.getColorMap()}}function d(){return _(),a.getLoadedThemes()}function f(){return _(),a.getLoadedLanguages()}function p(...e){_(),a.loadLanguages(e.flat(1))}async function m(...e){return p(await ht(e))}function h(...e){_();for(let t of e.flat(1))a.loadTheme(t)}async function g(...e){return _(),h(await gt(e))}function _(){if(n)throw new t(`Shiki instance has been disposed`)}function v(){n||(n=!0,a.dispose(),--I)}return{setTheme:u,getTheme:l,getLanguage:c,getLoadedThemes:d,getLoadedLanguages:f,resolveLangAlias:s,loadLanguage:m,loadLanguageSync:p,loadTheme:g,loadThemeSync:h,dispose:v,[Symbol.dispose]:v}}async function xt(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([gt(e.themes||[]),ht(e.langs||[]),e.engine]);return bt({...e,themes:t,langs:n,engine:r})}var St=new WeakMap;function Ct(e,t){St.set(e,t)}function L(e){return St.get(e)}var R=class e{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new e(Object.fromEntries(ot(n).map(e=>[e,at])),t)}constructor(...e){if(e.length===2){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){return wt(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function wt(e){let t=[],n=new Set;function r(e){if(n.has(e))return;n.add(e);let i=e?.nameScopesList?.scopeName;i&&t.push(i),e.parent&&r(e.parent)}return r(e),t}function Tt(e,n){if(!(e instanceof R))throw new t(`Invalid grammar state`);return e.getInternalStack(n)}var Et=/,/,Dt=/ /;function Ot(e,n,r={}){let{theme:i=e.getLoadedThemes()[0]}=r;if(N(e.resolveLangAlias(r.lang||`text`))||P(i))return F(n).map(e=>[{content:e[0],offset:e[1]}]);let{theme:a,colorMap:o}=e.setTheme(i),s=e.getLanguage(r.lang||`text`);if(r.grammarState){if(r.grammarState.lang!==s.name)throw new t(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${s.name}"`);if(!r.grammarState.themes.includes(a.name))throw new t(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return At(n,s,a,o,r)}function kt(...e){if(e.length===2)return L(e[1]);let[n,r,i={}]=e,{lang:a=`text`,theme:o=n.getLoadedThemes()[0]}=i;if(N(a)||P(o))throw new t(`Plain language does not have grammar state`);if(a===`ansi`)throw new t(`ANSI language does not have grammar state`);let{theme:s,colorMap:c}=n.setTheme(o),l=n.getLanguage(a);return new R(jt(r,l,s,c,i).stateStack,l.name,s.name)}function At(e,t,n,r,i){let a=jt(e,t,n,r,i),o=new R(a.stateStack,t.name,n.name);return Ct(a.tokens,o),a.tokens}function jt(e,t,n,r,i){let a=j(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500,includeExplanation:c=!1}=i,l=F(e),u=i.grammarState?Tt(i.grammarState,n.name)??at:i.grammarContextCode==null?at:jt(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack,d=[],f=[];for(let e=0,i=l.length;e<i;e++){let[i,p]=l[e];if(i===``){d=[],f.push([]);continue}if(o>0&&i.length>=o){d=[],f.push([{content:i,offset:p,color:``,fontStyle:0}]);continue}let m,h,g;c&&c!==`tokenType`&&(m=t.tokenizeLine(i,u,s),h=m.tokens,g=0);let _=t.tokenizeLine2(i,u,s),v=_.tokens.length/2;for(let e=0;e<v;e++){let t=_.tokens[2*e],o=e+1<v?_.tokens[2*e+2]:i.length;if(t===o)continue;let s=_.tokens[2*e+1],l=M(r[b.getForeground(s)],a),u=b.getFontStyle(s),f={content:i.substring(t,o),offset:p+t,color:l,fontStyle:u};if(c===`tokenType`)f.type=b.getTokenType(s);else if(c){let e=[];if(c!==`scopeName`)for(let t of n.settings){let n;switch(typeof t.scope){case`string`:n=t.scope.split(Et).map(e=>e.trim());break;case`object`:n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(Dt))})}f.explanation=[];let r=0;for(;t+r<o;){let t=h[g],n=i.substring(t.startIndex,t.endIndex);r+=n.length,f.explanation.push({content:n,scopes:c===`scopeName`?Mt(t.scopes):Nt(e,t.scopes)}),g+=1}}d.push(f)}f.push(d),d=[],u=_.ruleStack}return{tokens:f,stateStack:u}}function Mt(e){return e.map(e=>({scopeName:e}))}function Nt(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:It(e,i,t.slice(0,r))}}return n}function Pt(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]===`.`}function Ft(e,t,n){if(!Pt(e.at(-1),t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)Pt(e[r],n[i])&&--r,--i;return r===-1}function It(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(Ft(e,t,n)){r.push(a);break}return r}function Lt(e,t,n,r=Ot){let i=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),a=i.map(i=>{let a=r(e,t,{...n,theme:i.theme});return{tokens:a,state:L(a),theme:typeof i.theme==`string`?i.theme:i.theme.name}}),o=Rt(...a.map(e=>e.tokens)),s=o[0].map((e,t)=>e.map((e,r)=>{let a={content:e.content,variants:{},offset:e.offset};return`includeExplanation`in n&&n.includeExplanation&&(a.explanation=e.explanation),o.forEach((e,n)=>{let{content:o,explanation:s,offset:c,...l}=e[t][r];a.variants[i[n].color]=l}),a})),c=a[0].state?new R(Object.fromEntries(a.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),a[0].state.lang):void 0;return c&&Ct(s,c),s}function Rt(...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 o=i.map(()=>0),s=i.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<n;t++){let n=s[t];n.content.length===e?(a[t].push(n),o[t]+=1,s[t]=i[t][o[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),s[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}var zt=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`],z=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};z.prototype.normal={},z.prototype.property={},z.prototype.space=void 0;function Bt(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new z(n,r,t)}function Vt(e){return e.toLowerCase()}var B=class{constructor(e,t){this.attribute=t,this.property=e}};B.prototype.attribute=``,B.prototype.booleanish=!1,B.prototype.boolean=!1,B.prototype.commaOrSpaceSeparated=!1,B.prototype.commaSeparated=!1,B.prototype.defined=!1,B.prototype.mustUseProperty=!1,B.prototype.number=!1,B.prototype.overloadedBoolean=!1,B.prototype.property=``,B.prototype.spaceSeparated=!1,B.prototype.space=void 0;var Ht=e({boolean:()=>V,booleanish:()=>H,commaOrSpaceSeparated:()=>K,commaSeparated:()=>G,number:()=>U,overloadedBoolean:()=>Wt,spaceSeparated:()=>W}),Ut=0,V=q(),H=q(),Wt=q(),U=q(),W=q(),G=q(),K=q();function q(){return 2**++Ut}var Gt=Object.keys(Ht),Kt=class extends B{constructor(e,t,n,r){let i=-1;if(super(e,t),qt(this,`space`,r),typeof n==`number`)for(;++i<Gt.length;){let e=Gt[i];qt(this,Gt[i],(n&Ht[e])===Ht[e])}}};Kt.prototype.defined=!0;function qt(e,t,n){n&&(e[t]=n)}function J(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new Kt(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Vt(r)]=r,n[Vt(a.attribute)]=r}return new z(t,n,e.space)}var Jt=J({properties:{ariaActiveDescendant:null,ariaAtomic:H,ariaAutoComplete:null,ariaBusy:H,ariaChecked:H,ariaColCount:U,ariaColIndex:U,ariaColSpan:U,ariaControls:W,ariaCurrent:null,ariaDescribedBy:W,ariaDetails:null,ariaDisabled:H,ariaDropEffect:W,ariaErrorMessage:null,ariaExpanded:H,ariaFlowTo:W,ariaGrabbed:H,ariaHasPopup:null,ariaHidden:H,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:W,ariaLevel:U,ariaLive:null,ariaModal:H,ariaMultiLine:H,ariaMultiSelectable:H,ariaOrientation:null,ariaOwns:W,ariaPlaceholder:null,ariaPosInSet:U,ariaPressed:H,ariaReadOnly:H,ariaRelevant:null,ariaRequired:H,ariaRoleDescription:W,ariaRowCount:U,ariaRowIndex:U,ariaRowSpan:U,ariaSelected:H,ariaSetSize:U,ariaSort:null,ariaValueMax:U,ariaValueMin:U,ariaValueNow:U,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Yt(e,t){return t in e?e[t]:t}function Xt(e,t){return Yt(e,t.toLowerCase())}var Zt=J({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:G,acceptCharset:W,accessKey:W,action:null,allow:null,allowFullScreen:V,allowPaymentRequest:V,allowUserMedia:V,alt:null,as:null,async:V,autoCapitalize:null,autoComplete:W,autoFocus:V,autoPlay:V,blocking:W,capture:null,charSet:null,checked:V,cite:null,className:W,cols:U,colSpan:null,content:null,contentEditable:H,controls:V,controlsList:W,coords:U|G,crossOrigin:null,data:null,dateTime:null,decoding:null,default:V,defer:V,dir:null,dirName:null,disabled:V,download:Wt,draggable:H,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:V,formTarget:null,headers:W,height:U,hidden:Wt,high:U,href:null,hrefLang:null,htmlFor:W,httpEquiv:W,id:null,imageSizes:null,imageSrcSet:null,inert:V,inputMode:null,integrity:null,is:null,isMap:V,itemId:null,itemProp:W,itemRef:W,itemScope:V,itemType:W,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:V,low:U,manifest:null,max:null,maxLength:U,media:null,method:null,min:null,minLength:U,multiple:V,muted:V,name:null,nonce:null,noModule:V,noValidate:V,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:V,optimum:U,pattern:null,ping:W,placeholder:null,playsInline:V,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:V,referrerPolicy:null,rel:W,required:V,reversed:V,rows:U,rowSpan:U,sandbox:W,scope:null,scoped:V,seamless:V,selected:V,shadowRootClonable:V,shadowRootDelegatesFocus:V,shadowRootMode:null,shape:null,size:U,sizes:null,slot:null,span:U,spellCheck:H,src:null,srcDoc:null,srcLang:null,srcSet:null,start:U,step:null,style:null,tabIndex:U,target:null,title:null,translate:null,type:null,typeMustMatch:V,useMap:null,value:H,width:U,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:W,axis:null,background:null,bgColor:null,border:U,borderColor:null,bottomMargin:U,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:V,declare:V,event:null,face:null,frame:null,frameBorder:null,hSpace:U,leftMargin:U,link:null,longDesc:null,lowSrc:null,marginHeight:U,marginWidth:U,noResize:V,noHref:V,noShade:V,noWrap:V,object:null,profile:null,prompt:null,rev:null,rightMargin:U,rules:null,scheme:null,scrolling:H,standby:null,summary:null,text:null,topMargin:U,valueType:null,version:null,vAlign:null,vLink:null,vSpace:U,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:V,disableRemotePlayback:V,prefix:null,property:null,results:U,security:null,unselectable:null},space:`html`,transform:Xt}),Qt=J({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:K,accentHeight:U,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:U,amplitude:U,arabicForm:null,ascent:U,attributeName:null,attributeType:null,azimuth:U,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:U,by:null,calcMode:null,capHeight:U,className:W,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:U,diffuseConstant:U,direction:null,display:null,dur:null,divisor:U,dominantBaseline:null,download:V,dx:null,dy:null,edgeMode:null,editable:null,elevation:U,enableBackground:null,end:null,event:null,exponent:U,externalResourcesRequired:null,fill:null,fillOpacity:U,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:G,g2:G,glyphName:G,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:U,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:U,horizOriginX:U,horizOriginY:U,id:null,ideographic:U,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:U,k:U,k1:U,k2:U,k3:U,k4:U,kernelMatrix:K,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:U,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:U,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:U,overlineThickness:U,paintOrder:null,panose1:null,path:null,pathLength:U,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:W,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:U,pointsAtY:U,pointsAtZ:U,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:K,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:K,rev:K,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:K,requiredFeatures:K,requiredFonts:K,requiredFormats:K,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:U,specularExponent:U,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:U,strikethroughThickness:U,string:null,stroke:null,strokeDashArray:K,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:U,strokeOpacity:U,strokeWidth:null,style:null,surfaceScale:U,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:K,tabIndex:U,tableValues:null,target:null,targetX:U,targetY:U,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:K,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:U,underlineThickness:U,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:U,values:null,vAlphabetic:U,vMathematical:U,vectorEffect:null,vHanging:U,vIdeographic:U,version:null,vertAdvY:U,vertOriginX:U,vertOriginY:U,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:U,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Yt}),$t=J({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),en=J({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Xt}),tn=J({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),nn=/[A-Z]/g,rn=/-[a-z]/g,an=/^data[-\w.:]+$/i;function on(e,t){let n=Vt(t),r=t,i=B;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&an.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(rn,cn);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!rn.test(e)){let n=e.replace(nn,sn);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=Kt}return new i(r,t)}function sn(e){return`-`+e.toLowerCase()}function cn(e){return e.charAt(1).toUpperCase()}var ln=Bt([Jt,Zt,$t,en,tn],`html`),un=Bt([Jt,Qt,$t,en,tn],`svg`),dn={}.hasOwnProperty;function fn(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&dn.call(t,e)){let n=String(t[e]);i=dn.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var pn=/["&'<>`]/g,mn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,hn=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,gn=/[|\\{}()[\]^$+*?.]/g,_n=new WeakMap;function vn(e,t){return e=e.replace(t.subset?yn(t.subset):pn,r),t.subset||t.escapeOnly?e:e.replace(mn,n).replace(hn,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function yn(e){let t=_n.get(e);return t||(t=bn(e),_n.set(e,t)),t}function bn(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(gn,`\\$&`));return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}var xn=/[\dA-Fa-f]/;function Sn(e,t,n){let r=`&#x`+e.toString(16).toUpperCase();return n&&t&&!xn.test(String.fromCharCode(t))?r:r+`;`}var Cn=/\d/;function wn(e,t,n){let r=`&#`+String(e);return n&&t&&!Cn.test(String.fromCharCode(t))?r:r+`;`}var Tn=`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`.split(`.`),En={nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,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:`€`},Dn=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],On={}.hasOwnProperty,kn={},Y;for(Y in En)On.call(En,Y)&&(kn[En[Y]]=Y);var An=/[^\dA-Za-z]/;function jn(e,t,n,r){let i=String.fromCharCode(e);if(On.call(kn,i)){let e=kn[i],a=`&`+e;return n&&Tn.includes(e)&&!Dn.includes(e)&&(!r||t&&t!==61&&An.test(String.fromCharCode(t)))?a:a+`;`}return``}function Mn(e,t,n){let r=Sn(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=jn(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let i=wn(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function X(e,t){return vn(e,Object.assign({format:Mn},t))}var Nn=/^>|^->|<!--|-->|--!>|<!-$/g,Pn=[`>`],Fn=[`<`,`>`];function In(e,t,n,r){return r.settings.bogusComments?`<?`+X(e.value,Object.assign({},r.settings.characterReferences,{subset:Pn}))+`>`:`<!--`+e.value.replace(Nn,i)+`-->`;function i(e){return X(e,Object.assign({},r.settings.characterReferences,{subset:Fn}))}}function Ln(e,t,n,r){return`<!`+(r.settings.upperDoctype?`DOCTYPE`:`doctype`)+(r.settings.tightDoctype?``:` `)+`html>`}function Rn(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function zn(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}function Bn(e){return e.join(` `).trim()}var Vn=/[ \t\n\f\r]/g;function Hn(e){return typeof e==`object`?e.type===`text`&&Un(e.value):Un(e)}function Un(e){return e.replace(Vn,``)===``}var Z=Kn(1),Wn=Kn(-1),Gn=[];function Kn(e){return t;function t(t,n,r){let i=t?t.children:Gn,a=(n||0)+e,o=i[a];if(!r)for(;o&&Hn(o);)a+=e,o=i[a];return o}}var qn={}.hasOwnProperty;function Jn(e){return t;function t(t,n,r){return qn.call(e,t.tagName)&&e[t.tagName](t,n,r)}}var Yn=Jn({body:Qn,caption:Xn,colgroup:Xn,dd:nr,dt:tr,head:Xn,html:Zn,li:er,optgroup:ir,option:ar,p:$n,rp:rr,rt:rr,tbody:sr,td:ur,tfoot:cr,th:ur,thead:or,tr:lr});function Xn(e,t,n){let r=Z(n,t,!0);return!r||r.type!==`comment`&&!(r.type===`text`&&Hn(r.value.charAt(0)))}function Zn(e,t,n){let r=Z(n,t);return!r||r.type!==`comment`}function Qn(e,t,n){let r=Z(n,t);return!r||r.type!==`comment`}function $n(e,t,n){let r=Z(n,t);return r?r.type===`element`&&(r.tagName===`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`):!n||n.type!==`element`||n.tagName!==`a`&&n.tagName!==`audio`&&n.tagName!==`del`&&n.tagName!==`ins`&&n.tagName!==`map`&&n.tagName!==`noscript`&&n.tagName!==`video`}function er(e,t,n){let r=Z(n,t);return!r||r.type===`element`&&r.tagName===`li`}function tr(e,t,n){let r=Z(n,t);return!(!r||r.type!==`element`||r.tagName!==`dt`&&r.tagName!==`dd`)}function nr(e,t,n){let r=Z(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function rr(e,t,n){let r=Z(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function ir(e,t,n){let r=Z(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function ar(e,t,n){let r=Z(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function or(e,t,n){let r=Z(n,t);return!(!r||r.type!==`element`||r.tagName!==`tbody`&&r.tagName!==`tfoot`)}function sr(e,t,n){let r=Z(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function cr(e,t,n){return!Z(n,t)}function lr(e,t,n){let r=Z(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function ur(e,t,n){let r=Z(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}var dr=Jn({body:mr,colgroup:hr,head:pr,html:fr,tbody:gr});function fr(e){let t=Z(e,-1);return!t||t.type!==`comment`}function pr(e){let t=new Set;for(let n of e.children)if(n.type===`element`&&(n.tagName===`base`||n.tagName===`title`)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||n.type===`element`}function mr(e){let t=Z(e,-1,!0);return!t||t.type!==`comment`&&!(t.type===`text`&&Hn(t.value.charAt(0)))&&(t.type!==`element`||t.tagName!==`meta`&&t.tagName!==`link`&&t.tagName!==`script`&&t.tagName!==`style`&&t.tagName!==`template`)}function hr(e,t,n){let r=Wn(n,t),i=Z(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&Yn(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function gr(e,t,n){let r=Wn(n,t),i=Z(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&Yn(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}var _r={name:[[`
4
4
  \f\r &/=>`.split(``),`
@@ -8,6 +8,6 @@ import{t as e}from"./rolldown-runtime-hi7ti5xiuxsegr96-DK3Fl9T5.js";var t=class
8
8
  \f\r &>`.split(``),`\0
9
9
  \f\r "&'<=>\``.split(``)],[`\0
10
10
  \f\r "&'<=>\``.split(``),`\0
11
- \f\r "&'<=>\``.split(``)]],single:[[`&'`.split(``),`"&'\``.split(``)],[`\0&'`.split(``),`\0"&'\``.split(``)]],double:[[`"&`.split(``),`"&'\``.split(``)],[`\0"&`.split(``),`\0"&'\``.split(``)]]};function vr(e,t,n,r){let i=r.schema,a=i.space!==`svg`&&r.settings.omitOptionalTags,o=i.space===`svg`?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),s=[],c;i.space===`html`&&e.tagName===`svg`&&(r.schema=un);let l=yr(r,e.properties),u=r.all(i.space===`html`&&e.tagName===`template`?e.content:e);return r.schema=i,u&&(o=!1),(l||!a||!dr(e,t,n))&&(s.push(`<`,e.tagName,l?` `+l:``),o&&(i.space===`svg`||r.settings.closeSelfClosing)&&(c=l.charAt(l.length-1),(!r.settings.tightSelfClosing||c===`/`||c&&c!==`"`&&c!==`'`)&&s.push(` `),s.push(`/`)),s.push(`>`)),s.push(u),!o&&(!a||!Yn(e,t,n))&&s.push(`</`+e.tagName+`>`),s.join(``)}function yr(e,t){let n=[],r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){let r=br(e,i,t[i]);r&&n.push(r)}}for(;++r<n.length;){let t=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&t!==`"`&&t!==`'`&&(n[r]+=` `)}return n.join(``)}function br(e,t,n){let r=on(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space===`html`?0:1,a=+!e.settings.allowDangerousCharacters,o=e.quote,s;if(r.overloadedBoolean&&(n===r.attribute||n===``)?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!=`string`||n===r.attribute||n===``)&&(n=!!n),n==null||n===!1||typeof n==`number`&&Number.isNaN(n))return``;let c=X(r.attribute,Object.assign({},e.settings.characterReferences,{subset:_r.name[i][a]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?zn:Bn)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(s=X(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:_r.unquoted[i][a]}))),s!==n&&(e.settings.quoteSmart&&Rn(n,o)>Rn(n,e.alternative)&&(o=e.alternative),s=o+X(n,Object.assign({},e.settings.characterReferences,{subset:(o===`'`?_r.single:_r.double)[i][a],attribute:!0}))+o),c+(s&&`=`+s))}var xr=[`<`,`&`];function Sr(e,t,n,r){return n&&n.type===`element`&&(n.tagName===`script`||n.tagName===`style`)?e.value:X(e.value,Object.assign({},r.settings.characterReferences,{subset:xr}))}function Cr(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Sr(e,t,n,r)}function wr(e,t,n,r){return r.all(e)}var Tr=fn(`type`,{invalid:Er,unknown:Dr,handlers:{comment:In,doctype:Ln,element:vr,raw:Cr,root:wr,text:Sr}});function Er(e){throw Error("Expected node, not `"+e+"`")}function Dr(e){throw Error("Cannot compile unknown node `"+e.type+"`")}var Or={},kr={},Ar=[];function jr(e,t){let n=t||Or,r=n.quote||`"`,i=r===`"`?`'`:`"`;if(r!==`"`&&r!==`'`)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Mr,all:Nr,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||zt,characterReferences:n.characterReferences||kr,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space===`svg`?un:ln,quote:r,alternative:i}.one(Array.isArray(e)?{type:`root`,children:e}:e,void 0,void 0)}function Mr(e,t,n){return Tr(e,t,n,this)}function Nr(e){let t=[],n=e&&e.children||Ar,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join(``)}var Pr=/\s+/g;function Fr(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class==`string`&&(e.properties.class=e.properties.class.split(Pr)),Array.isArray(e.properties.class)||(e.properties.class=[]);let n=Array.isArray(t)?t:t.split(Pr);for(let t of n)t&&!e.properties.class.includes(t)&&e.properties.class.push(t);return e}function Ir(e){let t=F(e,!0).map(([e])=>e);function n(n){if(n===e.length)return{line:t.length-1,character:t.at(-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}}function r(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+=n,r}return{lines:t,indexToPos:n,posToIndex:r}}var Lr=[`color`,`background-color`];function Rr(e,t){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}function zr(e,t){let n=[...t instanceof Set?t:new Set(t)].sort((e,t)=>e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);return t.length?Rr(e,t):e})):e}function Br(e,n,r,i,a=`css-vars`){let o={content:e.content,explanation:e.explanation,offset:e.offset},s=n.map(t=>Vr(e.variants[t])),c=new Set(s.flatMap(e=>Object.keys(e))),l={},u=(e,t)=>{let i=t===`color`?``:t===`background-color`?`-bg`:`-${t}`;return r+n[e]+(t===`color`?``:i)};return s.forEach((e,r)=>{for(let o of c){let c=e[o]||`inherit`;if(r===0&&i&&Lr.includes(o)){if(i===`light-dark()`&&s.length>1){let e=n.findIndex(e=>e===`light`),i=n.findIndex(e=>e===`dark`);if(e===-1||i===-1)throw new t('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');l[o]=`light-dark(${s[e][o]||`inherit`}, ${s[i][o]||`inherit`})`,a===`css-vars`&&(l[u(r,o)]=c)}else l[o]=c}else a===`css-vars`&&(l[u(r,o)]=c)}}),o.htmlStyle=l,o}function Vr(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t[`background-color`]=e.bgColor),e.fontStyle){e.fontStyle&y.Italic&&(t[`font-style`]=`italic`),e.fontStyle&y.Bold&&(t[`font-weight`]=`bold`);let n=[];e.fontStyle&y.Underline&&n.push(`underline`),e.fontStyle&y.Strikethrough&&n.push(`line-through`),n.length&&(t[`text-decoration`]=n.join(` `))}return t}function Hr(e){return typeof e==`string`?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(`;`)}function Ur(){let e=new WeakMap;function n(n){if(!e.has(n.meta)){let r=Ir(n.source);function i(e){if(typeof e==`number`){if(e<0||e>n.source.length)throw new t(`Invalid decoration offset: ${e}. Code length: ${n.source.length}`);return{...r.indexToPos(e),offset:e}}{let n=r.lines[e.line];if(n===void 0)throw new t(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${r.lines.length}`);let i=e.character;if(i<0&&(i=n.length+i),i<0||i>n.length)throw new t(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${n.length}`);return{...e,character:i,offset:r.posToIndex(e.line,i)}}}let a=(n.options.decorations||[]).map(e=>({...e,start:i(e.start),end:i(e.end)}));Wr(a),e.set(n.meta,{decorations:a,converter:r,source:n.source})}return e.get(n.meta)}return{name:`shiki:decorations`,tokens(e){if(this.options.decorations?.length)return zr(e,n(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let r=n(this),i=[...e.children].filter(e=>e.type===`element`&&e.tagName===`span`);if(i.length!==r.converter.lines.length)throw new t(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function a(e,n,r,a){let o=i[e],c=``,l=-1,u=-1;if(n===0&&(l=0),r===0&&(u=0),r===1/0&&(u=o.children.length),l===-1||u===-1)for(let e=0;e<o.children.length;e++)c+=Gr(o.children[e]),l===-1&&c.length===n&&(l=e+1),u===-1&&c.length===r&&(u=e+1);if(l===-1)throw new t(`Failed to find start index for decoration ${JSON.stringify(a.start)}`);if(u===-1)throw new t(`Failed to find end index for decoration ${JSON.stringify(a.end)}`);let d=o.children.slice(l,u);if(!a.alwaysWrap&&d.length===o.children.length)s(o,a,`line`);else if(!a.alwaysWrap&&d.length===1&&d[0].type===`element`)s(d[0],a,`token`);else{let e={type:`element`,tagName:`span`,properties:{},children:d};s(e,a,`wrapper`),o.children.splice(l,d.length,e)}}function o(e,t){i[e]=s(i[e],t,`line`)}function s(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&&Fr(e,t.properties.class),e=i(e,n)||e,e}let c=[],l=r.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset);for(let e of l){let{start:t,end:n}=e;if(t.line===n.line)a(t.line,t.character,n.character,e);else if(t.line<n.line){a(t.line,t.character,1/0,e);for(let r=t.line+1;r<n.line;r++)c.unshift(()=>o(r,e));a(n.line,0,n.character,e)}}c.forEach(e=>e())}}}function Wr(e){for(let n=0;n<e.length;n++){let r=e[n];if(r.start.offset>r.end.offset)throw new t(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let i=n+1;i<e.length;i++){let n=e[i],a=r.start.offset<=n.start.offset&&n.start.offset<r.end.offset,o=r.start.offset<n.end.offset&&n.end.offset<=r.end.offset,s=n.start.offset<=r.start.offset&&r.start.offset<n.end.offset,c=n.start.offset<r.end.offset&&r.end.offset<=n.end.offset;if(a||o||s||c){if(a&&o||s&&c||s&&r.start.offset===r.end.offset||o&&n.start.offset===n.end.offset)continue;throw new t(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(n.start)} intersect.`)}}}}function Gr(e){return e.type===`text`?e.value:e.type===`element`?e.children.map(Gr).join(``):``}var Kr=[Ur()];function qr(e){let t=Jr(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...Kr]}function Jr(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}}var Q=[`black`,`red`,`green`,`yellow`,`blue`,`magenta`,`cyan`,`white`,`brightBlack`,`brightRed`,`brightGreen`,`brightYellow`,`brightBlue`,`brightMagenta`,`brightCyan`,`brightWhite`],Yr={1:`bold`,2:`dim`,3:`italic`,4:`underline`,7:`reverse`,8:`hidden`,9:`strikethrough`};function Xr(e,t){let n=e.indexOf(`\x1B`,t);if(n!==-1&&e[n+1]===`[`){let t=e.indexOf(`m`,n);if(t!==-1)return{sequence:e.substring(n+2,t).split(`;`),startPosition:n,position:t+1}}return{position:e.length}}function Zr(e){let t=e.shift();if(t===`2`){let t=e.splice(0,3).map(e=>Number.parseInt(e));return t.length!==3||t.some(e=>Number.isNaN(e))?void 0:{type:`rgb`,rgb:t}}if(t===`5`){let t=e.shift();if(t)return{type:`table`,index:Number(t)}}}function Qr(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r)){if(r===0)t.push({type:`resetAll`});else if(r<=9)Yr[r]&&t.push({type:`setDecoration`,value:Yr[r]});else if(r<=29){let e=Yr[r-20];e&&(t.push({type:`resetDecoration`,value:e}),e===`dim`&&t.push({type:`resetDecoration`,value:`bold`}))}else if(r<=37)t.push({type:`setForegroundColor`,value:{type:`named`,name:Q[r-30]}});else if(r===38){let n=Zr(e);n&&t.push({type:`setForegroundColor`,value:n})}else if(r===39)t.push({type:`resetForegroundColor`});else if(r<=47)t.push({type:`setBackgroundColor`,value:{type:`named`,name:Q[r-40]}});else if(r===48){let n=Zr(e);n&&t.push({type:`setBackgroundColor`,value:n})}else r===49?t.push({type:`resetBackgroundColor`}):r===53?t.push({type:`setDecoration`,value:`overline`}):r===55?t.push({type:`resetDecoration`,value:`overline`}):r>=90&&r<=97?t.push({type:`setForegroundColor`,value:{type:`named`,name:Q[r-90+8]}}):r>=100&&r<=107&&t.push({type:`setBackgroundColor`,value:{type:`named`,name:Q[r-100+8]}})}}return t}function $r(){let e=null,t=null,n=new Set;return{parse(r){let i=[],a=0;do{let o=Xr(r,a),s=o.sequence?r.substring(a,o.startPosition):r.substring(a);if(s.length>0&&i.push({value:s,foreground:e,background:t,decorations:new Set(n)}),o.sequence){let r=Qr(o.sequence);for(let i of r)i.type===`resetAll`?(e=null,t=null,n.clear()):i.type===`resetForegroundColor`?e=null:i.type===`resetBackgroundColor`?t=null:i.type===`resetDecoration`&&n.delete(i.value);for(let i of r)i.type===`setForegroundColor`?e=i.value:i.type===`setBackgroundColor`?t=i.value:i.type===`setDecoration`&&n.add(i.value)}a=o.position}while(a<r.length);return i}}}var ei={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 ti(e=ei){function t(t){return e[t]}function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,`0`)).join(``)}`}let r;function i(){if(r)return r;r=[];for(let e=0;e<Q.length;e++)r.push(t(Q[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)r.push(n([e[t],e[i],e[a]]));let i=8;for(let e=0;e<24;e++,i+=10)r.push(n([i,i,i]));return r}function a(e){return i()[e]}function o(e){switch(e.type){case`named`:return t(e.name);case`rgb`:return n(e.rgb);case`table`:return a(e.index)}}return{value:o}}var ni=/#([0-9a-f]{3,8})/i,ri=/var\((--[\w-]+-ansi-[\w-]+)\)/,ii={black:`#000000`,red:`#cd3131`,green:`#0DBC79`,yellow:`#E5E510`,blue:`#2472C8`,magenta:`#BC3FBC`,cyan:`#11A8CD`,white:`#E5E5E5`,brightBlack:`#666666`,brightRed:`#F14C4C`,brightGreen:`#23D18B`,brightYellow:`#F5F543`,brightBlue:`#3B8EEA`,brightMagenta:`#D670D6`,brightCyan:`#29B8DB`,brightWhite:`#FFFFFF`};function ai(e,t,n){let r=j(e,n),i=F(t),a=ti(Object.fromEntries(Q.map(t=>{let n=`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;return[t,e.colors?.[n]||ii[t]]}))),o=$r();return i.map(t=>o.parse(t[0]).map(n=>{let i,o;n.decorations.has(`reverse`)?(i=n.background?a.value(n.background):e.bg,o=n.foreground?a.value(n.foreground):e.fg):(i=n.foreground?a.value(n.foreground):e.fg,o=n.background?a.value(n.background):void 0),i=M(i,r),o=M(o,r),n.decorations.has(`dim`)&&(i=oi(i));let s=y.None;return n.decorations.has(`bold`)&&(s|=y.Bold),n.decorations.has(`italic`)&&(s|=y.Italic),n.decorations.has(`underline`)&&(s|=y.Underline),n.decorations.has(`strikethrough`)&&(s|=y.Strikethrough),{content:n.value,offset:t[1],color:i,bgColor:o,fontStyle:s}}))}function oi(e){let t=e.match(ni);if(t){let e=t[1];if(e.length===8){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,`0`);return`#${e.slice(0,6)}${t}`}if(e.length===6)return`#${e}80`;if(e.length===4){let t=e[0],n=e[1],r=e[2],i=e[3];return`#${t}${t}${n}${n}${r}${r}${Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,`0`)}`}if(e.length===3){let t=e[0],n=e[1],r=e[2];return`#${t}${t}${n}${n}${r}${r}80`}}let n=e.match(ri);return n?`var(${n[1]}-dim)`:e}function si(e,t,n={}){let r=e.resolveLangAlias(n.lang||`text`),{theme:i=e.getLoadedThemes()[0]}=n;if(!N(r)&&!P(i)&&r===`ansi`){let{theme:r}=e.setTheme(i);return ai(r,t,n)}return Ot(e,t,n)}function ci(e,n,r){let i,a,o,s,c,l;if(`themes`in r){let{defaultColor:u=`light`,cssVariablePrefix:d=`--shiki-`,colorsRendering:f=`css-vars`}=r,p=Object.entries(r.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===u?-1:+(t.color===u));if(p.length===0)throw new t("`themes` option must not be empty");let m=Lt(e,n,r,si);if(l=L(m),u&&u!==`light-dark()`&&!p.some(e=>e.color===u))throw new t(`\`themes\` option must contain the defaultColor key \`${u}\``);let h=p.map(t=>e.getTheme(t.theme)),g=p.map(e=>e.color);o=m.map(e=>e.map(e=>Br(e,g,d,u,f))),l&&Ct(o,l);let _=p.map(e=>j(e.theme,r));a=li(p,h,_,d,u,`fg`,f),i=li(p,h,_,d,u,`bg`,f),s=`shiki-themes ${h.map(e=>e.name).join(` `)}`,c=u?void 0:[a,i].join(`;`)}else if(`theme`in r){let t=j(r.theme,r);o=si(e,n,r);let c=e.getTheme(r.theme);i=M(c.bg,t),a=M(c.fg,t),s=c.name,l=L(o)}else throw new t("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:a,bg:i,themeName:s,rootStyle:c,grammarState:l}}function li(e,n,r,i,a,o,s){return e.map((c,l)=>{let u=M(n[l][o],r[l])||`inherit`,d=`${i+c.color}${o===`bg`?`-bg`:``}:${u}`;if(l===0&&a){if(a===`light-dark()`&&e.length>1){let i=e.findIndex(e=>e.color===`light`),a=e.findIndex(e=>e.color===`dark`);if(i===-1||a===-1)throw new t('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${M(n[i][o],r[i])||`inherit`}, ${M(n[a][o],r[a])||`inherit`});${d}`}return u}return s===`css-vars`?d:null}).filter(e=>!!e).join(`;`)}var ui=/^\s+$/,di=/^(\s*)(.*?)(\s*)$/;function $(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>$(e,t,n),codeToTokens:(t,n)=>ci(e,t,n)}){let i=t;for(let e of qr(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:o,bg:s,themeName:c,rootStyle:l,grammarState:u}=ci(e,i,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:f=!1}=n;d===!0?a=pi(a):d===`never`&&(a=mi(a)),f&&(a=hi(a));let p={...r,get source(){return i}};for(let e of qr(n))a=e.tokens?.call(p,a)||a;return fi(a,{...n,fg:o,bg:s,themeName:c,rootStyle:n.rootStyle===!1?!1:n.rootStyle??l},p,u)}function fi(e,t,n,r=L(e)){let i=qr(t),a=[],o={type:`root`,children:[]},{structure:s=`classic`,tabindex:c=`0`}=t,l={class:`shiki ${t.themeName||``}`};t.rootStyle!==!1&&(l.style=t.rootStyle==null?`background-color:${t.bg};color:${t.fg}`:t.rootStyle),c!==!1&&c!=null&&(l.tabindex=c.toString());for(let[e,n]of Object.entries(t.meta||{}))e.startsWith(`_`)||(l[e]=n);let u={type:`element`,tagName:`pre`,properties:l,children:[],data:t.data},d={type:`element`,tagName:`code`,properties:{},children:a},f=[],p={...n,structure:s,addClassToHast:Fr,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return u},get code(){return d},get lines(){return f}};if(e.forEach((e,t)=>{t&&(s===`inline`?o.children.push({type:`element`,tagName:`br`,properties:{},children:[]}):s===`classic`&&a.push({type:`text`,value:`
11
+ \f\r "&'<=>\``.split(``)]],single:[[`&'`.split(``),`"&'\``.split(``)],[`\0&'`.split(``),`\0"&'\``.split(``)]],double:[[`"&`.split(``),`"&'\``.split(``)],[`\0"&`.split(``),`\0"&'\``.split(``)]]};function vr(e,t,n,r){let i=r.schema,a=i.space!==`svg`&&r.settings.omitOptionalTags,o=i.space===`svg`?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),s=[],c;i.space===`html`&&e.tagName===`svg`&&(r.schema=un);let l=yr(r,e.properties),u=r.all(i.space===`html`&&e.tagName===`template`?e.content:e);return r.schema=i,u&&(o=!1),!l&&a&&dr(e,t,n)||(s.push(`<`,e.tagName,l?` `+l:``),o&&(i.space===`svg`||r.settings.closeSelfClosing)&&(c=l.charAt(l.length-1),(!r.settings.tightSelfClosing||c===`/`||c&&c!==`"`&&c!==`'`)&&s.push(` `),s.push(`/`)),s.push(`>`)),s.push(u),o||a&&Yn(e,t,n)||s.push(`</`+e.tagName+`>`),s.join(``)}function yr(e,t){let n=[],r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){let r=br(e,i,t[i]);r&&n.push(r)}}for(;++r<n.length;){let t=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&t!==`"`&&t!==`'`&&(n[r]+=` `)}return n.join(``)}function br(e,t,n){let r=on(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space===`html`?0:1,a=+!e.settings.allowDangerousCharacters,o=e.quote,s;if(r.overloadedBoolean&&(n===r.attribute||n===``)?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!=`string`||n===r.attribute||n===``)&&(n=!!n),n==null||n===!1||typeof n==`number`&&Number.isNaN(n))return``;let c=X(r.attribute,Object.assign({},e.settings.characterReferences,{subset:_r.name[i][a]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?zn:Bn)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(s=X(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:_r.unquoted[i][a]}))),s!==n&&(e.settings.quoteSmart&&Rn(n,o)>Rn(n,e.alternative)&&(o=e.alternative),s=o+X(n,Object.assign({},e.settings.characterReferences,{subset:(o===`'`?_r.single:_r.double)[i][a],attribute:!0}))+o),c+(s&&`=`+s))}var xr=[`<`,`&`];function Sr(e,t,n,r){return n&&n.type===`element`&&(n.tagName===`script`||n.tagName===`style`)?e.value:X(e.value,Object.assign({},r.settings.characterReferences,{subset:xr}))}function Cr(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Sr(e,t,n,r)}function wr(e,t,n,r){return r.all(e)}var Tr=fn(`type`,{invalid:Er,unknown:Dr,handlers:{comment:In,doctype:Ln,element:vr,raw:Cr,root:wr,text:Sr}});function Er(e){throw Error("Expected node, not `"+e+"`")}function Dr(e){throw Error("Cannot compile unknown node `"+e.type+"`")}var Or={},kr={},Ar=[];function jr(e,t){let n=t||Or,r=n.quote||`"`,i=r===`"`?`'`:`"`;if(r!==`"`&&r!==`'`)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Mr,all:Nr,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||zt,characterReferences:n.characterReferences||kr,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space===`svg`?un:ln,quote:r,alternative:i}.one(Array.isArray(e)?{type:`root`,children:e}:e,void 0,void 0)}function Mr(e,t,n){return Tr(e,t,n,this)}function Nr(e){let t=[],n=e&&e.children||Ar,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join(``)}var Pr=/\s+/g;function Fr(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class==`string`&&(e.properties.class=e.properties.class.split(Pr)),Array.isArray(e.properties.class)||(e.properties.class=[]);let n=Array.isArray(t)?t:t.split(Pr);for(let t of n)t&&!e.properties.class.includes(t)&&e.properties.class.push(t);return e}function Ir(e){let t=F(e,!0).map(([e])=>e);function n(n){if(n===e.length)return{line:t.length-1,character:t.at(-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}}function r(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+=n,r}return{lines:t,indexToPos:n,posToIndex:r}}var Lr=[`color`,`background-color`];function Rr(e,t){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}function zr(e,t){let n=[...t instanceof Set?t:new Set(t)].sort((e,t)=>e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);return t.length?Rr(e,t):e})):e}function Br(e,n,r,i,a=`css-vars`){let o={content:e.content,explanation:e.explanation,offset:e.offset},s=n.map(t=>Vr(e.variants[t])),c=new Set(s.flatMap(e=>Object.keys(e))),l={},u=(e,t)=>{let i=t===`color`?``:t===`background-color`?`-bg`:`-${t}`;return r+n[e]+(t===`color`?``:i)};return s.forEach((e,r)=>{for(let o of c){let c=e[o]||`inherit`;if(r===0&&i&&Lr.includes(o)){if(i===`light-dark()`&&s.length>1){let e=n.findIndex(e=>e===`light`),i=n.findIndex(e=>e===`dark`);if(e===-1||i===-1)throw new t('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');l[o]=`light-dark(${s[e][o]||`inherit`}, ${s[i][o]||`inherit`})`,a===`css-vars`&&(l[u(r,o)]=c)}else l[o]=c}else a===`css-vars`&&(l[u(r,o)]=c)}}),o.htmlStyle=l,o}function Vr(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t[`background-color`]=e.bgColor),e.fontStyle){e.fontStyle&y.Italic&&(t[`font-style`]=`italic`),e.fontStyle&y.Bold&&(t[`font-weight`]=`bold`);let n=[];e.fontStyle&y.Underline&&n.push(`underline`),e.fontStyle&y.Strikethrough&&n.push(`line-through`),n.length&&(t[`text-decoration`]=n.join(` `))}return t}function Hr(e){return typeof e==`string`?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(`;`)}function Ur(){let e=new WeakMap;function n(n){if(!e.has(n.meta)){let r=Ir(n.source);function i(e){if(typeof e==`number`){if(e<0||e>n.source.length)throw new t(`Invalid decoration offset: ${e}. Code length: ${n.source.length}`);return{...r.indexToPos(e),offset:e}}{let n=r.lines[e.line];if(n===void 0)throw new t(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${r.lines.length}`);let i=e.character;if(i<0&&(i=n.length+i),i<0||i>n.length)throw new t(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${n.length}`);return{...e,character:i,offset:r.posToIndex(e.line,i)}}}let a=(n.options.decorations||[]).map(e=>({...e,start:i(e.start),end:i(e.end)}));Wr(a),e.set(n.meta,{decorations:a,converter:r,source:n.source})}return e.get(n.meta)}return{name:`shiki:decorations`,tokens(e){if(this.options.decorations?.length)return zr(e,n(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let r=n(this),i=[...e.children].filter(e=>e.type===`element`&&e.tagName===`span`);if(i.length!==r.converter.lines.length)throw new t(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function a(e,n,r,a){let o=i[e],c=``,l=-1,u=-1;if(n===0&&(l=0),r===0&&(u=0),r===1/0&&(u=o.children.length),l===-1||u===-1)for(let e=0;e<o.children.length;e++)c+=Gr(o.children[e]),l===-1&&c.length===n&&(l=e+1),u===-1&&c.length===r&&(u=e+1);if(l===-1)throw new t(`Failed to find start index for decoration ${JSON.stringify(a.start)}`);if(u===-1)throw new t(`Failed to find end index for decoration ${JSON.stringify(a.end)}`);let d=o.children.slice(l,u);if(!a.alwaysWrap&&d.length===o.children.length)s(o,a,`line`);else if(!a.alwaysWrap&&d.length===1&&d[0].type===`element`)s(d[0],a,`token`);else{let e={type:`element`,tagName:`span`,properties:{},children:d};s(e,a,`wrapper`),o.children.splice(l,d.length,e)}}function o(e,t){i[e]=s(i[e],t,`line`)}function s(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&&Fr(e,t.properties.class),e=i(e,n)||e,e}let c=[],l=r.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset);for(let e of l){let{start:t,end:n}=e;if(t.line===n.line)a(t.line,t.character,n.character,e);else if(t.line<n.line){a(t.line,t.character,1/0,e);for(let r=t.line+1;r<n.line;r++)c.unshift(()=>o(r,e));a(n.line,0,n.character,e)}}c.forEach(e=>e())}}}function Wr(e){for(let n=0;n<e.length;n++){let r=e[n];if(r.start.offset>r.end.offset)throw new t(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let i=n+1;i<e.length;i++){let n=e[i],a=r.start.offset<=n.start.offset&&n.start.offset<r.end.offset,o=r.start.offset<n.end.offset&&n.end.offset<=r.end.offset,s=n.start.offset<=r.start.offset&&r.start.offset<n.end.offset,c=n.start.offset<r.end.offset&&r.end.offset<=n.end.offset;if(a||o||s||c){if(a&&o||s&&c||s&&r.start.offset===r.end.offset||o&&n.start.offset===n.end.offset)continue;throw new t(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(n.start)} intersect.`)}}}}function Gr(e){return e.type===`text`?e.value:e.type===`element`?e.children.map(Gr).join(``):``}var Kr=[Ur()];function qr(e){let t=Jr(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...Kr]}function Jr(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}}var Q=[`black`,`red`,`green`,`yellow`,`blue`,`magenta`,`cyan`,`white`,`brightBlack`,`brightRed`,`brightGreen`,`brightYellow`,`brightBlue`,`brightMagenta`,`brightCyan`,`brightWhite`],Yr={1:`bold`,2:`dim`,3:`italic`,4:`underline`,7:`reverse`,8:`hidden`,9:`strikethrough`};function Xr(e,t){let n=e.indexOf(`\x1B`,t);if(n!==-1&&e[n+1]===`[`){let t=e.indexOf(`m`,n);if(t!==-1)return{sequence:e.substring(n+2,t).split(`;`),startPosition:n,position:t+1}}return{position:e.length}}function Zr(e){let t=e.shift();if(t===`2`){let t=e.splice(0,3).map(e=>Number.parseInt(e));return t.length!==3||t.some(e=>Number.isNaN(e))?void 0:{type:`rgb`,rgb:t}}if(t===`5`){let t=e.shift();if(t)return{type:`table`,index:Number(t)}}}function Qr(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r)){if(r===0)t.push({type:`resetAll`});else if(r<=9)Yr[r]&&t.push({type:`setDecoration`,value:Yr[r]});else if(r<=29){let e=Yr[r-20];e&&(t.push({type:`resetDecoration`,value:e}),e===`dim`&&t.push({type:`resetDecoration`,value:`bold`}))}else if(r<=37)t.push({type:`setForegroundColor`,value:{type:`named`,name:Q[r-30]}});else if(r===38){let n=Zr(e);n&&t.push({type:`setForegroundColor`,value:n})}else if(r===39)t.push({type:`resetForegroundColor`});else if(r<=47)t.push({type:`setBackgroundColor`,value:{type:`named`,name:Q[r-40]}});else if(r===48){let n=Zr(e);n&&t.push({type:`setBackgroundColor`,value:n})}else r===49?t.push({type:`resetBackgroundColor`}):r===53?t.push({type:`setDecoration`,value:`overline`}):r===55?t.push({type:`resetDecoration`,value:`overline`}):r>=90&&r<=97?t.push({type:`setForegroundColor`,value:{type:`named`,name:Q[r-90+8]}}):r>=100&&r<=107&&t.push({type:`setBackgroundColor`,value:{type:`named`,name:Q[r-100+8]}})}}return t}function $r(){let e=null,t=null,n=new Set;return{parse(r){let i=[],a=0;do{let o=Xr(r,a),s=o.sequence?r.substring(a,o.startPosition):r.substring(a);if(s.length>0&&i.push({value:s,foreground:e,background:t,decorations:new Set(n)}),o.sequence){let r=Qr(o.sequence);for(let i of r)i.type===`resetAll`?(e=null,t=null,n.clear()):i.type===`resetForegroundColor`?e=null:i.type===`resetBackgroundColor`?t=null:i.type===`resetDecoration`&&n.delete(i.value);for(let i of r)i.type===`setForegroundColor`?e=i.value:i.type===`setBackgroundColor`?t=i.value:i.type===`setDecoration`&&n.add(i.value)}a=o.position}while(a<r.length);return i}}}var ei={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 ti(e=ei){function t(t){return e[t]}function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,`0`)).join(``)}`}let r;function i(){if(r)return r;r=[];for(let e=0;e<Q.length;e++)r.push(t(Q[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)r.push(n([e[t],e[i],e[a]]));let i=8;for(let e=0;e<24;e++,i+=10)r.push(n([i,i,i]));return r}function a(e){return i()[e]}function o(e){switch(e.type){case`named`:return t(e.name);case`rgb`:return n(e.rgb);case`table`:return a(e.index)}}return{value:o}}var ni=/#([0-9a-f]{3,8})/i,ri=/var\((--[\w-]+-ansi-[\w-]+)\)/,ii={black:`#000000`,red:`#cd3131`,green:`#0DBC79`,yellow:`#E5E510`,blue:`#2472C8`,magenta:`#BC3FBC`,cyan:`#11A8CD`,white:`#E5E5E5`,brightBlack:`#666666`,brightRed:`#F14C4C`,brightGreen:`#23D18B`,brightYellow:`#F5F543`,brightBlue:`#3B8EEA`,brightMagenta:`#D670D6`,brightCyan:`#29B8DB`,brightWhite:`#FFFFFF`};function ai(e,t,n){let r=j(e,n),i=F(t),a=ti(Object.fromEntries(Q.map(t=>{let n=`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;return[t,e.colors?.[n]||ii[t]]}))),o=$r();return i.map(t=>o.parse(t[0]).map(n=>{let i,o;n.decorations.has(`reverse`)?(i=n.background?a.value(n.background):e.bg,o=n.foreground?a.value(n.foreground):e.fg):(i=n.foreground?a.value(n.foreground):e.fg,o=n.background?a.value(n.background):void 0),i=M(i,r),o=M(o,r),n.decorations.has(`dim`)&&(i=oi(i));let s=y.None;return n.decorations.has(`bold`)&&(s|=y.Bold),n.decorations.has(`italic`)&&(s|=y.Italic),n.decorations.has(`underline`)&&(s|=y.Underline),n.decorations.has(`strikethrough`)&&(s|=y.Strikethrough),{content:n.value,offset:t[1],color:i,bgColor:o,fontStyle:s}}))}function oi(e){let t=e.match(ni);if(t){let e=t[1];if(e.length===8){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,`0`);return`#${e.slice(0,6)}${t}`}if(e.length===6)return`#${e}80`;if(e.length===4){let t=e[0],n=e[1],r=e[2],i=e[3];return`#${t}${t}${n}${n}${r}${r}${Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,`0`)}`}if(e.length===3){let t=e[0],n=e[1],r=e[2];return`#${t}${t}${n}${n}${r}${r}80`}}let n=e.match(ri);return n?`var(${n[1]}-dim)`:e}function si(e,t,n={}){let r=e.resolveLangAlias(n.lang||`text`),{theme:i=e.getLoadedThemes()[0]}=n;if(!N(r)&&!P(i)&&r===`ansi`){let{theme:r}=e.setTheme(i);return ai(r,t,n)}return Ot(e,t,n)}function ci(e,n,r){let i,a,o,s,c,l;if(`themes`in r){let{defaultColor:u=`light`,cssVariablePrefix:d=`--shiki-`,colorsRendering:f=`css-vars`}=r,p=Object.entries(r.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===u?-1:+(t.color===u));if(p.length===0)throw new t("`themes` option must not be empty");let m=Lt(e,n,r,si);if(l=L(m),u&&u!==`light-dark()`&&!p.some(e=>e.color===u))throw new t(`\`themes\` option must contain the defaultColor key \`${u}\``);let h=p.map(t=>e.getTheme(t.theme)),g=p.map(e=>e.color);o=m.map(e=>e.map(e=>Br(e,g,d,u,f))),l&&Ct(o,l);let _=p.map(e=>j(e.theme,r));a=li(p,h,_,d,u,`fg`,f),i=li(p,h,_,d,u,`bg`,f),s=`shiki-themes ${h.map(e=>e.name).join(` `)}`,c=u?void 0:[a,i].join(`;`)}else if(`theme`in r){let t=j(r.theme,r);o=si(e,n,r);let c=e.getTheme(r.theme);i=M(c.bg,t),a=M(c.fg,t),s=c.name,l=L(o)}else throw new t("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:a,bg:i,themeName:s,rootStyle:c,grammarState:l}}function li(e,n,r,i,a,o,s){return e.map((c,l)=>{let u=M(n[l][o],r[l])||`inherit`,d=`${i+c.color}${o===`bg`?`-bg`:``}:${u}`;if(l===0&&a){if(a===`light-dark()`&&e.length>1){let i=e.findIndex(e=>e.color===`light`),a=e.findIndex(e=>e.color===`dark`);if(i===-1||a===-1)throw new t('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${M(n[i][o],r[i])||`inherit`}, ${M(n[a][o],r[a])||`inherit`});${d}`}return u}return s===`css-vars`?d:null}).filter(e=>!!e).join(`;`)}var ui=/^\s+$/,di=/^(\s*)(.*?)(\s*)$/;function $(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>$(e,t,n),codeToTokens:(t,n)=>ci(e,t,n)}){let i=t;for(let e of qr(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:o,bg:s,themeName:c,rootStyle:l,grammarState:u}=ci(e,i,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:f=!1}=n;d===!0?a=pi(a):d===`never`&&(a=mi(a)),f&&(a=hi(a));let p={...r,get source(){return i}};for(let e of qr(n))a=e.tokens?.call(p,a)||a;return fi(a,{...n,fg:o,bg:s,themeName:c,rootStyle:n.rootStyle===!1?!1:n.rootStyle??l},p,u)}function fi(e,t,n,r=L(e)){let i=qr(t),a=[],o={type:`root`,children:[]},{structure:s=`classic`,tabindex:c=`0`}=t,l={class:`shiki ${t.themeName||``}`};t.rootStyle!==!1&&(l.style=t.rootStyle==null?`background-color:${t.bg};color:${t.fg}`:t.rootStyle),c!==!1&&c!=null&&(l.tabindex=c.toString());for(let[e,n]of Object.entries(t.meta||{}))e.startsWith(`_`)||(l[e]=n);let u={type:`element`,tagName:`pre`,properties:l,children:[],data:t.data},d={type:`element`,tagName:`code`,properties:{},children:a},f=[],p={...n,structure:s,addClassToHast:Fr,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return u},get code(){return d},get lines(){return f}};if(e.forEach((e,t)=>{t&&(s===`inline`?o.children.push({type:`element`,tagName:`br`,properties:{},children:[]}):s===`classic`&&a.push({type:`text`,value:`
12
12
  `}));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}]},c=Hr(a.htmlStyle||Vr(a));c&&(e.properties.style=c);for(let o of i)e=o?.span?.call(p,e,t+1,r,n,a)||e;s===`inline`?o.children.push(e):s===`classic`&&n.children.push(e),r+=a.content.length}if(s===`classic`){for(let e of i)n=e?.line?.call(p,n,t+1)||n;f.push(n),a.push(n)}else s===`inline`&&f.push(n)}),s===`classic`){for(let e of i)d=e?.code?.call(p,d)||d;u.children.push(d);for(let e of i)u=e?.pre?.call(p,u)||u;o.children.push(u)}else if(s===`inline`){let e=[],t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]};for(let n of o.children)n.type===`element`&&n.tagName===`br`?(e.push(t),t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]}):(n.type===`element`||n.type===`text`)&&t.children.push(n);e.push(t);let n={type:`element`,tagName:`code`,properties:{},children:e};for(let e of i)n=e?.code?.call(p,n)||n;o.children=[];for(let e=0;e<n.children.length;e++){e>0&&o.children.push({type:`element`,tagName:`br`,properties:{},children:[]});let t=n.children[e];t.type===`element`&&o.children.push(...t.children)}}let m=o;for(let e of i)m=e?.root?.call(p,m)||m;return r&&Ct(m,r),m}function pi(e){return e.map(e=>{let t=[],n=``,r;return e.forEach((i,a)=>{let o=!(i.fontStyle&&(i.fontStyle&y.Underline||i.fontStyle&y.Strikethrough));o&&ui.test(i.content)&&e[a+1]?(r===void 0&&(r=i.offset),n+=i.content):n?(o?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r},i),r=void 0,n=``):t.push(i)}),t})}function mi(e){return e.map(e=>e.flatMap(e=>{if(ui.test(e.content))return e;let t=e.content.match(di);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}))}function hi(e){return e.map(e=>{let t=[];for(let n of e){if(t.length===0){t.push({...n});continue}let e=t.at(-1),r=Hr(e.htmlStyle||Vr(e)),i=Hr(n.htmlStyle||Vr(n)),a=e.fontStyle&&(e.fontStyle&y.Underline||e.fontStyle&y.Strikethrough),o=n.fontStyle&&(n.fontStyle&y.Underline||n.fontStyle&y.Strikethrough);!a&&!o&&r===i?e.content+=n.content:t.push({...n})}return t})}var gi=jr;function _i(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>$(e,t,n),codeToTokens:(t,n)=>ci(e,t,n)},i=gi($(e,t,n,r));for(let e of qr(n))i=e.postprocess?.call(r,i,n)||i;return i}async function vi(e){let t=await xt(e);return{getLastGrammarState:(...e)=>kt(t,...e),codeToTokensBase:(e,n)=>si(t,e,n),codeToTokensWithThemes:(e,n)=>Lt(t,e,n),codeToTokens:(e,n)=>ci(t,e,n),codeToHast:(e,n)=>$(t,e,n),codeToHtml:(e,n)=>_i(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}export{vi as createHighlighterCore};
13
- //# sourceMappingURL=core-n0de50o00ej2ecfe-gtt67pEc.js.map
13
+ //# sourceMappingURL=core-n0de50o00ej2ecfe-DHGY8swS.js.map
@@ -0,0 +1,2 @@
1
+ import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{A as t,B as n,C as r,Hn as i,M as a,N as o,Tn as s,U as c,Un as l,Ut as u,V as d,Vt as f,_n as p,at as m,hr as h,j as g,mr as _,nt as v,or as y,ot as ee,rr as b,rt as te,sr as x,st as S,tn as C,vn as w,z as T}from"./useBaseUiId-lg1teubxudgin0w2-DE9psqVX.js";import{i as ne,n as E,r as D}from"./react-iRJfyluG.js";import{f as re,p as O}from"./tooltip-o4natsv01lpq8oq2-BXAIiJ4Y.js";import{n as ie,t as k}from"./inertValue-e0o6qvuef83v78fk-D0BI_tKj.js";import{t as A}from"./getElementTransform-cuiqmjglkrz4db6c-1fD5DQn4.js";import{t as j}from"./useSwipeDismiss-m1s13x9t9ey9ax3p-D7CLht-d.js";var M=e(ne(),1),N=D(),ae=e(E(),1),P=M.createContext(void 0);P.displayName=`ToastContext`;function F(){let e=M.useContext(P);if(!e)throw Error(`Base UI: useToastManager must be used within <Toast.Provider>.`);return e}var I=0;function L(e){return I+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${I}`}function R(e,t){if(typeof e==`string`)return{description:e};if(typeof e==`function`){let n=e(t);return typeof n==`string`?{description:n}:n}return e}function z(e){let t=new Map,n=0,r=0;return e.forEach((e,i)=>{let a=e.transitionStatus===`ending`;t.set(e.id,{value:e,domIndex:i,visibleIndex:a?-1:n,offsetY:r}),r+=e.height||0,a||(n+=1)}),t}function B(e,t){let n=0;return e.map(e=>{if(e.transitionStatus===`ending`)return e;let r=n>=t;return n+=1,e.limited===r?e:{...e,limited:r}})}var V={toasts:e=>e.toasts,isEmpty:e=>e.toasts.length===0,toast:(e,t)=>e.toastMetadata.get(t)?.value,toastIndex:(e,t)=>e.toastMetadata.get(t)?.domIndex??-1,toastOffsetY:(e,t)=>e.toastMetadata.get(t)?.offsetY??0,toastVisibleIndex:(e,t)=>e.toastMetadata.get(t)?.visibleIndex??-1,focused:e=>e.focused,expanded:e=>e.hovering||e.focused,expandedOrOutOfFocus:e=>e.hovering||e.focused||!e.isWindowFocused,prevFocusElement:e=>e.prevFocusElement},H=class extends c{timers=new Map;areTimersPaused=!1;constructor(e){super({...e,toastMetadata:z(e.toasts)},{},V)}setViewport=e=>{this.set(`viewport`,e)};syncProviderProps(e,t){let n=this.state.limit!==t;if(this.state.timeout===e&&!n)return;let r={timeout:e,limit:t};if(n){let e=B(this.state.toasts,t);r.toasts=e,r.toastMetadata=z(e)}this.update(r)}disposeEffect=()=>()=>{this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear()};removeToast(e,t=!1){let n=V.toastIndex(this.state,e);if(n===-1)return;let r=this.state.toasts[n];t||r?.onRemove?.();let i=[...this.state.toasts];i.splice(n,1),this.setToasts(i)}addToast=e=>{let{timeout:t,limit:n}=this.state,r=e.id||L(`toast`);if(e.id){let t=V.toast(this.state,e.id);if(t){if(t.transitionStatus===`ending`)this.removeToast(e.id,!0);else{let{id:t,transitionStatus:n,...r}=e;return this.updateToastInternal(e.id,r,!0,!0),e.id}}}let i={...e,id:r,updateKey:0,transitionStatus:`starting`},a=[i,...this.state.toasts];this.setToasts(B(a,n));let o=i.timeout??t;return i.type!==`loading`&&o>0&&this.scheduleTimer(r,o,()=>this.closeToast(r)),V.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),r};updateToast=(e,t)=>{let n=V.toast(this.state,e);n&&n.transitionStatus!==`ending`&&this.updateToastInternal(e,typeof t==`function`?t(n):t,!1,!0)};updateToastInternal=(e,t,n=!1,r=!1)=>{let{timeout:i,toasts:a}=this.state,o=V.toast(this.state,e);if(!o||o.transitionStatus===`ending`)return;let s={...o,...t,...r&&{updateKey:o.updateKey+1}};this.setToasts(a.map(t=>t.id===e?s:t));let c=s.timeout??i,l=o.timeout??i,u=Object.hasOwn(t,`timeout`),d=s.transitionStatus!==`ending`&&s.type!==`loading`&&c>0,f=this.timers.has(e),p=l!==c,m=o.type===`loading`;!d&&f?this.clearTimer(e):d&&(!f||p||u||m||n)&&(this.clearTimer(e),this.scheduleTimer(e,c,()=>this.closeToast(e)),V.expandedOrOutOfFocus(this.state)&&this.pauseTimers())};closeToast=e=>{let t=e===void 0,{limit:n,toasts:r}=this.state,i;if(t)i=r,this.clearTimers();else{let t=V.toast(this.state,e);if(!t)return;i=[t],this.clearTimer(e)}let a=B(r.map(n=>t||n.id===e?{...n,transitionStatus:`ending`,height:0}:n),n);this.setToasts(a,!a.some(e=>e.transitionStatus!==`ending`)),i.forEach(e=>{e.transitionStatus!==`ending`&&e.onClose?.()}),this.handleFocusManagement(e)};promiseToast=(e,t)=>{let n=R(t.loading),r=this.addToast({...n,type:`loading`}),i=e.then(e=>{let n=R(t.success,e);return this.updateToast(r,{...n,type:`success`,timeout:n.timeout}),e}).catch(e=>{let n=R(t.error,e);return this.updateToast(r,{...n,type:`error`,timeout:n.timeout}),Promise.reject(e)});return{}.hasOwnProperty.call(t,`setPromise`)&&t.setPromise(i),i};pauseTimers(){this.areTimersPaused||(this.areTimersPaused=!0,this.timers.forEach(e=>{e.timeout&&(e.timeout.clear(),e.remaining=Math.max(e.remaining-(Date.now()-e.start),0))}))}resumeTimers(){this.areTimersPaused&&(this.areTimersPaused=!1,this.timers.forEach((e,n)=>{e.remaining=e.remaining>0?e.remaining:e.delay,e.timeout??=t.create(),e.timeout.start(e.remaining,()=>{this.handleTimerFired(n),e.callback()}),e.start=Date.now()}))}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=e=>{if(e.pointerType!==`touch`)return;let t=C(e);u(this.state.viewport,t)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(e,n,r){let i=Date.now(),a=V.expandedOrOutOfFocus(this.state)?void 0:t.create();a?.start(n,()=>{this.handleTimerFired(e),r()}),this.timers.set(e,{timeout:a,start:i,delay:n,remaining:n,callback:r})}clearTimers(){this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear(),this.areTimersPaused=!1}clearTimer(e){this.timers.get(e)?.timeout?.clear(),this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}handleTimerFired(e){this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}resetPausedStateIfNoTimersRemain(){this.timers.size===0&&(this.areTimersPaused=!1)}setToasts(e,t=e.length===0){let n={toasts:e,toastMetadata:z(e)};t&&(n.hovering=!1,n.focused=!1),this.update(n)}handleFocusManagement(e){let t=f(w(this.state.viewport));if(!this.state.viewport||!u(this.state.viewport,t)||!p(t))return;if(e===void 0){this.restoreFocusToPrevElement();return}let n=V.toasts(this.state),r=V.toastIndex(this.state,e),i=(e,t)=>{for(let r=e;r>=0&&r<n.length;r+=t)if(n[r].transitionStatus!==`ending`)return n[r];return null},a=i(r+1,1)??i(r-1,-1);a?a.ref?.current?.focus():this.restoreFocusToPrevElement()}},U=function(e){let{children:t,timeout:n=5e3,limit:r=3,toastManager:i}=e,o=_(()=>new H({timeout:n,limit:r,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return a(o.disposeEffect),M.useEffect(function(){if(i)return i[` subscribe`](({action:e,options:t})=>{let n=t.id;e===`promise`&&t.promise?o.promiseToast(t.promise,t):e===`update`&&n?o.updateToast(n,t.updates):e===`close`?o.closeToast(n):o.addToast(t)})},[o,i]),(0,N.jsxs)(P.Provider,{value:o,children:[(0,N.jsx)(W,{store:o,timeout:n,limit:r}),t]})};U.displayName=`ToastProvider`;function W(e){let{store:t,timeout:n,limit:r}=e;return b(()=>{t.syncProviderProps(n,r)},[t,n,r]),null}var G=`--toast-frontmost-height`,oe=M.forwardRef(function(e,t){let{render:n,className:r,style:a,children:o,...s}=e,c=F(),l=g(),d=M.useRef(!1),m=M.useRef(!1),_=M.useRef(!1),v=c.useState(`isEmpty`),y=c.useState(`toasts`),b=c.useState(`focused`),x=c.useState(`expanded`),ne=c.useState(`prevFocusElement`),E=y[0]?.height,D=y.some(e=>e.transitionStatus===`ending`),re=y.filter(e=>e.priority===`high`);M.useEffect(()=>{let e=c.state.viewport;if(!e||v)return;let t=i(e),n=w(e);function r(t){t.key===`F6`&&C(t)!==e&&(t.preventDefault(),c.set(`prevFocusElement`,f(n)),e?.focus({preventScroll:!0}),c.pauseTimers(),c.set(`focused`,!0))}function a(e){C(e)===t&&(c.set(`isWindowFocused`,!1),c.pauseTimers())}function o(n){if(n.relatedTarget)return;let r=C(n),i=f(w(e));r!==t&&u(e,r)&&p(i)||c.resumeTimers(),l.start(0,()=>c.set(`isWindowFocused`,!0))}return ee(S(t,`keydown`,r),S(t,`blur`,a,!0),S(t,`focus`,o,!0),S(n,`pointerdown`,c.handleDocumentPointerDown,!0))},[c,l,v]);function O(e){d.current=!0;let t=e.relatedTarget===c.state.viewport?y.find(e=>e.transitionStatus!==`ending`&&!e.limited):void 0;t?t.ref?.current?.focus():c.restoreFocusToPrevElement()}function ie(e){e.key===`Tab`&&e.shiftKey&&C(e.nativeEvent)===c.state.viewport&&(e.preventDefault(),c.restoreFocusToPrevElement())}function k(){c.state.toasts.some(e=>e.transitionStatus===`ending`)||_.current||!m.current||(c.state.isWindowFocused&&c.resumeTimers(),c.set(`hovering`,!1),m.current=!1)}M.useEffect(k,[D,c]);function A(){c.pauseTimers(),c.set(`hovering`,!0),m.current=!1}function j(){c.state.isWindowFocused&&c.resumeTimers()}function ae(){m.current=!0,k()}function P(e){e.pointerType===`touch`&&(_.current=!0)}function I(e){e.pointerType===`touch`&&(_.current=!1,k())}function L(){d.current?d.current=!1:b||p(f(w(c.state.viewport)))&&(c.set(`focused`,!0),c.pauseTimers())}function R(e){b&&!u(c.state.viewport,e.relatedTarget)&&(c.set(`focused`,!1),j())}let z={tabIndex:-1,role:`region`,"aria-live":`polite`,"aria-atomic":!1,"aria-relevant":`additions text`,"aria-label":`Notifications`,onMouseEnter:A,onMouseMove:A,onMouseLeave:ae,onFocus:L,onBlur:R,onKeyDown:ie,onClick:L,onPointerDown:P,onPointerUp:I,onPointerCancel:I,style:{[G]:E?`${E}px`:void 0}},B={expanded:x},V=!v&&ne&&(0,N.jsx)(T,{onFocus:O}),H=h(`div`,e,{ref:[t,c.setViewport],state:B,props:[z,s,{children:(0,N.jsxs)(M.Fragment,{children:[V,o,V]})}]});return(0,N.jsxs)(M.Fragment,{children:[V,H,!b&&re.length>0&&(0,N.jsx)(`div`,{style:te,children:re.map(e=>(0,N.jsxs)(`div`,{role:`alert`,"aria-atomic":!0,children:[(0,N.jsx)(`div`,{children:e.title}),(0,N.jsx)(`div`,{children:e.description})]},e.id))})]})});oe.displayName=`ToastViewport`;var se=M.createContext(void 0);se.displayName=`ToastRootContext`;function K(){let e=M.useContext(se);if(!e)throw Error(`Base UI: ToastRootContext is missing. Toast parts must be used within <Toast.Root>.`);return e}var ce=`--toast-index`,le=`--toast-offset-y`,ue=`--toast-height`,de=`--toast-swipe-movement-x`,fe=`--toast-swipe-movement-y`,q=`data-swipe-direction`,pe={...s,swipeDirection(e){return e?{[q]:e}:null}},me=40,he=10,ge=.5,_e=1,ve=`${o},${n}`,J=M.forwardRef(function(e,t){let{toast:n,render:i,className:a,swipeDirection:o=[`down`,`right`],style:s,...c}=e,l=n.positionerProps?.anchor!==void 0,d=[];l||(d=Array.isArray(o)?o:[o]);let p=d.length>0,g=F(),[_,v]=M.useState(void 0),[y,ee]=M.useState(!1),[te,x]=M.useState(!1),[T,ne]=M.useState({x:0,y:0}),[E,D]=M.useState({x:0,y:0,scale:1}),[re,O]=M.useState(),[ie,P]=M.useState(),[I,L]=M.useState(null),R=M.useRef(null),z=M.useRef(void 0),B=M.useRef({x:0,y:0}),V=M.useRef({x:0,y:0,scale:1}),H=M.useRef(void 0),U=M.useRef(0),W=M.useRef(!1),G=M.useRef({x:0,y:0}),oe=M.useRef(!1),K=M.useRef({x:0,y:0}),q=M.useRef(null),J=M.useRef(null),ye=g.useState(`toastIndex`,n.id),Y=g.useState(`toastVisibleIndex`,n.id),be=g.useState(`toastOffsetY`,n.id),xe=g.useState(`focused`),X=g.useState(`expanded`);r({open:n.transitionStatus!==`ending`,ref:R,onComplete(){n.transitionStatus===`ending`&&g.removeToast(n.id)}});let Z=m((e=!1)=>{let t=R.current;if(!t)return;let r=t.style.height;t.style.height=`auto`;let i=t.offsetHeight;t.style.height=r;function a(){g.updateToastInternal(n.id,{ref:R,height:i,transitionStatus:void 0})}e?ae.flushSync(a):a()});b(()=>{let e=z.current;(n.transitionStatus===`starting`||e!==n.id)&&(e!==void 0&&(v(void 0),D({x:0,y:0,scale:1}),Q({x:0,y:0})),z.current=n.id,Z())},[Z,n.id,n.transitionStatus]);function Q(e){K.current=e,ne(e)}b(()=>()=>{J.current?.abort()},[]);function Se(e,t){let n=e=>e>0?e**ge:-(Math.abs(e)**ge),r=e>0&&!d.includes(`right`)||e<0&&!d.includes(`left`),i=t>0&&!d.includes(`down`)||t<0&&!d.includes(`up`);return{x:r?n(e):e,y:i?n(t):t}}let $=m(e=>{if(e.pointerId!==q.current)return;q.current=null,J.current?.abort(),J.current=null,ee(!1),x(!1),L(null);let t=V.current;if(e.type===`pointercancel`||W.current){Q({x:t.x,y:t.y}),v(void 0);return}let r=K.current,i=r.x-t.x,a=r.y-t.y,o;for(let e of d)if(j(e,i,a)>me){o=e;break}o?(v(o),g.closeToast(n.id)):(Q({x:t.x,y:t.y}),v(void 0))});function Ce(e){if(e.button!==0||(e.pointerType===`touch`&&g.pauseTimers(),C(e.nativeEvent)?.closest(`button,a,input,textarea,[role="button"],${ve}`)))return;W.current=!1,H.current=void 0,U.current=0,q.current=e.pointerId,B.current={x:e.clientX,y:e.clientY},G.current=B.current;let t=e.currentTarget,n=A(t);V.current=n,D(n),Q({x:n.x,y:n.y}),g.set(`hovering`,!0),ee(!0),x(!1),L(null),oe.current=!0,J.current?.abort();let r=new AbortController;J.current=r;let i=w(t);i.addEventListener(`pointerup`,$,{signal:r.signal}),i.addEventListener(`pointercancel`,$,{signal:r.signal}),t.setPointerCapture?.(e.pointerId)}function we(e){if(e.pointerId!==q.current)return;e.preventDefault(),oe.current&&=(B.current={x:e.clientX,y:e.clientY},!1);let{clientY:t,clientX:n,movementX:r,movementY:i}=e;(i<0&&t>G.current.y||i>0&&t<G.current.y)&&(G.current={x:G.current.x,y:t}),(r<0&&n>G.current.x||r>0&&n<G.current.x)&&(G.current={x:n,y:G.current.y});let a=n-B.current.x,o=t-B.current.y,s=t-G.current.y,c=n-G.current.x,l=I;if(!te&&Math.sqrt(a*a+o*o)>=_e){x(!0);let e=d.includes(`left`)||d.includes(`right`),t=d.includes(`up`)||d.includes(`down`);e&&t&&(l=Math.abs(a)>Math.abs(o)?`horizontal`:`vertical`,L(l))}let u;if(!H.current)l===`vertical`?o>0?u=`down`:o<0&&(u=`up`):l===`horizontal`?a>0?u=`right`:a<0&&(u=`left`):u=Math.abs(a)>=Math.abs(o)?a>0?`right`:`left`:o>0?`down`:`up`,u&&d.includes(u)&&(H.current=u,U.current=j(u,a,o),v(u));else{let e=H.current,t=j(e,c,s);t>me?(W.current=!1,v(e)):!(d.includes(`left`)&&d.includes(`right`))&&!(d.includes(`up`)&&d.includes(`down`))&&U.current-t>=he&&(W.current=!0)}let f=Se(a,o),p=V.current.x,m=V.current.y,h=d.includes(`left`)||d.includes(`right`),g=d.includes(`up`)||d.includes(`down`);l!==`vertical`&&h&&(p+=f.x),l!==`horizontal`&&g&&(m+=f.y),Q({x:p,y:m})}function Te(e){if(e.key===`Escape`){if(!R.current||!u(R.current,f(w(R.current))))return;g.closeToast(n.id)}}M.useEffect(()=>{let e=R.current;if(!p||!e)return;function t(t){q.current!==null&&u(e,C(t))&&t.preventDefault()}return S(e,`touchmove`,t,{passive:!1})},[p]);function Ee(){let e=T.x-E.x,t=T.y-E.y;return{transition:y?`none`:void 0,transform:y?`translateX(${T.x}px) translateY(${T.y}px) scale(${E.scale})`:void 0,[de]:`${e}px`,[fe]:`${t}px`}}let De=n.priority===`high`,Oe={role:De?`alertdialog`:`dialog`,tabIndex:0,"aria-modal":!1,"aria-labelledby":re,"aria-describedby":ie,"aria-hidden":De&&!xe?!0:void 0,onPointerDown:p?Ce:void 0,onPointerMove:p?we:void 0,onPointerUp:p?$:void 0,onPointerCancel:p?$:void 0,onKeyDown:Te,inert:k(n.limited),style:{...Ee(),[ce]:n.transitionStatus===`ending`?ye:Y,[le]:`${be}px`,[ue]:n.height?`${n.height}px`:void 0}},ke=M.useMemo(()=>({toast:n,setTitleId:O,setDescriptionId:P,recalculateHeight:Z,visibleIndex:Y,expanded:X}),[n,O,P,Z,Y,X]),Ae={transitionStatus:n.transitionStatus,expanded:X,limited:n.limited||!1,type:n.type,swiping:y,swipeDirection:_},je=h(`div`,e,{ref:[t,R],state:Ae,stateAttributesMapping:pe,props:[Oe,c]});return(0,N.jsx)(se.Provider,{value:ke,children:je})});J.displayName=`ToastRoot`;function ye(e){return e==null||typeof e==`boolean`||e===``?!1:!Array.isArray(e)||e.some(ye)}function Y(e){return M.isValidElement(e)&&ye(e.props.children)}function be(e,t,n){let{toast:r,setTitleId:i,setDescriptionId:a}=K(),o=n===`title`?i:a,s=t??(n===`title`?r.title:r.description);return{id:v(e),children:s,type:r.type,setId:o}}function xe(e,t,n){let r=Y(e);return b(()=>{if(r)return n(t),()=>{n(e=>e===t?void 0:e)}},[r,t,n]),r?e:null}var X=M.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:o,...s}=e,{id:c,children:l,type:u,setId:d}=be(a,o,`description`);return xe(h(`p`,e,{ref:t,state:{type:u},props:{...s,id:c,children:l}}),c,d)});X.displayName=`ToastDescription`;var Z=M.createContext(void 0);Z.displayName=`ToastPositionerContext`;function Q(){let e=M.useContext(Z);if(e===void 0)throw Error(`Base UI: ToastPositionerContext is missing. ToastPositioner parts must be placed within <Toast.Positioner>.`);return e}var Se=M.forwardRef(function(e,t){let{toast:n,...r}=e,i=F(),a=n.positionerProps??y,{render:o,className:s,anchor:c=a.anchor,positionMethod:u=a.positionMethod??`absolute`,side:f=a.side??`top`,align:p=a.align??`center`,sideOffset:m=a.sideOffset??0,alignOffset:h=a.alignOffset??0,collisionBoundary:g=a.collisionBoundary??`clipping-ancestors`,collisionPadding:_=a.collisionPadding??5,arrowPadding:v=a.arrowPadding??5,sticky:ee=a.sticky??!1,disableAnchorTracking:b=a.disableAnchorTracking??!1,collisionAvoidance:te=a.collisionAvoidance??d,style:S,...C}=r,[w,T]=M.useState(null),ne=i.useState(`toastIndex`,n.id),E=i.useState(`toastVisibleIndex`,n.id),D=l(c)?c:null,k=ie({open:!0,onOpenChange:x,elements:{floating:w,reference:D}}),A=re({anchor:D,positionMethod:u,floatingRootContext:k,mounted:!0,side:f,sideOffset:m,align:p,alignOffset:h,collisionBoundary:g,collisionPadding:_,sticky:ee,arrowPadding:v,disableAnchorTracking:b,keepMounted:!0,collisionAvoidance:te}),j={side:A.side,align:A.align,anchorHidden:A.anchorHidden},ae=O(e,j,{styles:{...A.positionerStyles,[ce]:n.transitionStatus===`ending`?ne:E},transitionStatus:n.transitionStatus,props:C,refs:[t,T]});return(0,N.jsx)(Z.Provider,{value:A,children:ae})});Se.displayName=`ToastPositioner`;function $(){let e=F(),t=e.useState(`toasts`);return M.useMemo(()=>({toasts:t,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[t,e])}function Ce(){let e=new Set;function t(t){e.forEach(e=>e(t))}return{" subscribe":function(t){return e.add(t),()=>{e.delete(t)}},add(e){let n=e.id||L(`toast`);return t({action:`add`,options:{...e,id:n,transitionStatus:`starting`}}),n},close(e){t({action:`close`,options:{id:e}})},update(e,n){t({action:`update`,options:{id:e,updates:n}})},promise(e,n){let r=e;return t({action:`promise`,options:{...n,promise:e,setPromise(e){r=e}}}),r}}}export{oe as a,xe as c,Q as d,F as f,J as i,be as l,Se as n,Ce as o,K as p,U as r,Y as s,X as t,$ as u};
2
+ //# sourceMappingURL=createToastManager-onmoqrmr8zo02rif-BKvFbhid.js.map