@vokril/ui-solid 0.29.0 → 0.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (253) hide show
  1. package/CHANGELOG.md +71 -0
  2. package/README.md +27 -0
  3. package/dist/{AttributeGrid-eND8YDby.cjs → AttributeGrid-Ch1k9v5j.cjs} +1 -1
  4. package/dist/{AttributeGrid-CASILa4u.js → AttributeGrid-DqFd4gBm.js} +3 -3
  5. package/dist/Button-4meERfnv.js +300 -0
  6. package/dist/Button-OyZHrl-t.cjs +1 -0
  7. package/dist/CommandPalette-CxYZUJtN.cjs +2 -0
  8. package/dist/{CommandPalette-Cj618AOz.js → CommandPalette-DwOp8y1-.js} +1467 -1466
  9. package/dist/{CopyButton-B5gS2ft3.cjs → CopyButton-16QNPgz6.cjs} +1 -1
  10. package/dist/{CopyButton-g-WSiBDZ.js → CopyButton-BVS49lMS.js} +1 -1
  11. package/dist/{DateRangePicker-CJD9ADgB.js → DateRangePicker-8QvydugY.js} +4 -4
  12. package/dist/{DateRangePicker-Frc0HVxp.cjs → DateRangePicker-DI-06xWY.cjs} +1 -1
  13. package/dist/{GuidedTour-B6q7lYhn.cjs → GuidedTour-DUQwdW8n.cjs} +1 -1
  14. package/dist/{GuidedTour-CFCvRJN4.js → GuidedTour-DXMmHn0o.js} +2 -2
  15. package/dist/{HostPortal-CXGUUhP8.js → HostPortal-Ba3MD9CG.js} +1 -1
  16. package/dist/HostPortal-CpWsArs6.cjs +1 -0
  17. package/dist/{IconPicker-DYqNi5ud.js → IconPicker-D1G8HK92.js} +3 -3
  18. package/dist/{IconPicker-CIbJb1ei.cjs → IconPicker-Q-ZDtNkd.cjs} +1 -1
  19. package/dist/Input-Brp5EDhg.cjs +1 -0
  20. package/dist/Input-CZi8KEfm.js +374 -0
  21. package/dist/Modal-CBi7Wd2V.cjs +1 -0
  22. package/dist/Modal-iyY1HUtr.js +588 -0
  23. package/dist/{PageSkeleton-BPbb28-H.cjs → PageSkeleton-B_-4fz1q.cjs} +1 -1
  24. package/dist/{PageSkeleton-CLnJO6uD.js → PageSkeleton-zNyjLPlk.js} +3 -3
  25. package/dist/{Popover-Cttb6NYT.js → Popover-DVi179wu.js} +4 -3
  26. package/dist/Popover-DXrczbt9.cjs +1 -0
  27. package/dist/{SearchableSelect-BvCm4enQ.js → SearchableSelect-DtHbWJhR.js} +34 -33
  28. package/dist/SearchableSelect-yLVqCGFo.cjs +1 -0
  29. package/dist/StatusBarNotificationBell-DQs5g1K6.cjs +50 -0
  30. package/dist/{StatusBarNotificationBell-7Izs_msz.js → StatusBarNotificationBell-ZTEhZFmJ.js} +4279 -4002
  31. package/dist/{Stepper-D9i1Xclm.js → Stepper-CyRgzWlR.js} +1 -1
  32. package/dist/{Stepper-Ci5JpLbS.cjs → Stepper-u2ZsE5oP.cjs} +1 -1
  33. package/dist/{Textarea-CeAGf08O.cjs → Textarea-DASNQNoi.cjs} +1 -1
  34. package/dist/{Textarea-B5QqqKnI.js → Textarea-szHXQahi.js} +1 -1
  35. package/dist/{TimeSeriesChart-DOwi2lJs.js → TimeSeriesChart-D7lIqolp.js} +1 -1
  36. package/dist/{TimeSeriesChart-huvheefm.cjs → TimeSeriesChart-DGzM9B--.cjs} +1 -1
  37. package/dist/{ToggleButton-CFM8P3JY.js → ToggleButton-B22PsCqo.js} +61 -60
  38. package/dist/ToggleButton-DWslrIBN.cjs +1 -0
  39. package/dist/_internal/contract/notification.d.cts +9 -0
  40. package/dist/_internal/contract/notification.d.ts +9 -0
  41. package/dist/_internal/contract/notificationCatalog.d.cts +2 -0
  42. package/dist/_internal/contract/notificationCatalog.d.ts +2 -0
  43. package/dist/_internal/platform/settings/settingsTypes.d.cts +0 -8
  44. package/dist/_internal/platform/settings/settingsTypes.d.ts +0 -8
  45. package/dist/anchoredLayout-CBjQ1etD.cjs +1 -0
  46. package/dist/anchoredLayout-E0mqCWxk.js +233 -0
  47. package/dist/appThemeDerivation-BylmT80v.cjs +1 -0
  48. package/dist/{appThemeDerivation-CKoSe4KP.js → appThemeDerivation-DBAOkGl7.js} +260 -231
  49. package/dist/base.css +2 -2
  50. package/dist/charts/index.cjs +1 -1
  51. package/dist/charts/index.js +1 -1
  52. package/dist/context/DesktopContextMenuContext.d.cts +8 -1
  53. package/dist/context/DesktopContextMenuContext.d.ts +8 -1
  54. package/dist/createDialogShellFocus-CQ0VNC2g.cjs +1 -0
  55. package/dist/{createDialogShellFocus-B4piXDU4.js → createDialogShellFocus-DbiQmLgb.js} +9 -9
  56. package/dist/createResizableSidebar-COlpGQ7H.cjs +1 -0
  57. package/dist/createResizableSidebar-cmCKTIg_.js +504 -0
  58. package/dist/desktop/index.cjs +1 -1
  59. package/dist/desktop/index.js +3 -3
  60. package/dist/dialogFocusRestore-BhxVTSiP.js +10 -0
  61. package/dist/dialogFocusRestore-DP5b1bDo.cjs +1 -0
  62. package/dist/feedback/index.cjs +1 -1
  63. package/dist/feedback/index.js +3 -3
  64. package/dist/forms/Input.d.cts +20 -0
  65. package/dist/forms/Input.d.ts +20 -0
  66. package/dist/forms/InputMessage.d.cts +19 -0
  67. package/dist/forms/InputMessage.d.ts +19 -0
  68. package/dist/forms/index.cjs +1 -1
  69. package/dist/forms/index.js +9 -9
  70. package/dist/grid/index.cjs +1 -1
  71. package/dist/grid/index.js +1 -1
  72. package/dist/index.cjs +1 -1
  73. package/dist/index.js +547 -541
  74. package/dist/layout/index.cjs +1 -1
  75. package/dist/layout/index.js +2 -2
  76. package/dist/layout/resizeCarry.d.cts +17 -0
  77. package/dist/layout/resizeCarry.d.ts +17 -0
  78. package/dist/mainRealmDom-B215swW-.js +166 -0
  79. package/dist/mainRealmDom-BYGSE-fo.cjs +1 -0
  80. package/dist/nativeTitleHold-A9jUISgQ.js +170 -0
  81. package/dist/nativeTitleHold-B7Ou-W9b.cjs +1 -0
  82. package/dist/navigation/index.cjs +1 -1
  83. package/dist/navigation/index.js +1 -1
  84. package/dist/notifications/NotificationItem.d.cts +9 -0
  85. package/dist/notifications/NotificationItem.d.ts +9 -0
  86. package/dist/notifications/NotificationsCenter.d.cts +18 -0
  87. package/dist/notifications/NotificationsCenter.d.ts +18 -0
  88. package/dist/notifications/RunningProgressCards.d.cts +3 -0
  89. package/dist/notifications/RunningProgressCards.d.ts +3 -0
  90. package/dist/notifications/fireNotification.d.cts +35 -16
  91. package/dist/notifications/fireNotification.d.ts +35 -16
  92. package/dist/notifications/index.cjs +1 -1
  93. package/dist/notifications/index.d.cts +1 -0
  94. package/dist/notifications/index.d.ts +1 -0
  95. package/dist/notifications/index.js +55 -52
  96. package/dist/notifications/nativeEngine.d.cts +4 -3
  97. package/dist/notifications/nativeEngine.d.ts +4 -3
  98. package/dist/notifications/notificationEntryList.d.cts +91 -0
  99. package/dist/notifications/notificationEntryList.d.ts +91 -0
  100. package/dist/notifications/notificationService.d.cts +23 -2
  101. package/dist/notifications/notificationService.d.ts +23 -2
  102. package/dist/notifications/toast.d.cts +3 -0
  103. package/dist/notifications/toast.d.ts +3 -0
  104. package/dist/notifications/toastCorner.d.cts +8 -0
  105. package/dist/notifications/toastCorner.d.ts +8 -0
  106. package/dist/notifications/toastFilterPolicy.d.cts +33 -1
  107. package/dist/notifications/toastFilterPolicy.d.ts +33 -1
  108. package/dist/overlay/Modal.d.cts +6 -0
  109. package/dist/overlay/Modal.d.ts +6 -0
  110. package/dist/overlay/backgroundInert.d.cts +6 -2
  111. package/dist/overlay/backgroundInert.d.ts +6 -2
  112. package/dist/overlay/command-palette/CommandPalette.d.cts +12 -0
  113. package/dist/overlay/command-palette/CommandPalette.d.ts +12 -0
  114. package/dist/overlay/index.cjs +1 -1
  115. package/dist/overlay/index.js +70 -68
  116. package/dist/overlay/nativeTitleHold.d.cts +24 -0
  117. package/dist/overlay/nativeTitleHold.d.ts +24 -0
  118. package/dist/ownerAnimationFrame-DzFcMSmn.js +19 -0
  119. package/dist/ownerAnimationFrame-T6jf6qYC.cjs +1 -0
  120. package/dist/server/{AttributeGrid-CMi-UtWb.js → AttributeGrid-Bpjlauuz.js} +2 -2
  121. package/dist/server/{AttributeGrid-B7sb3btp.cjs → AttributeGrid-DNYdKb8J.cjs} +1 -1
  122. package/dist/server/CommandPalette-BuVxnqBG.cjs +1 -0
  123. package/dist/server/{CommandPalette-CozogFlk.js → CommandPalette-Dn3NKXPM.js} +1095 -1069
  124. package/dist/server/{DateRangePicker-KLZzyuPJ.cjs → DateRangePicker-BFzNjaME.cjs} +1 -1
  125. package/dist/server/{DateRangePicker-C35q8BTw.js → DateRangePicker-CnYkTgXX.js} +3 -3
  126. package/dist/server/{GuidedTour-DmLbBttx.js → GuidedTour-BZardPYW.js} +1 -1
  127. package/dist/server/{GuidedTour-DfV0yzqh.cjs → GuidedTour-yhdZk2SU.cjs} +1 -1
  128. package/dist/server/{HostPortal-CXGUUhP8.js → HostPortal-C4IrAeWN.js} +1 -1
  129. package/dist/server/HostPortal-D5ECrJvn.cjs +1 -0
  130. package/dist/server/{IconPicker-B1soopAp.cjs → IconPicker-C5lAN9pX.cjs} +1 -1
  131. package/dist/server/{IconPicker-B4aXspLw.js → IconPicker-DDWgB7sm.js} +3 -3
  132. package/dist/server/Input-AdF-i0O8.js +245 -0
  133. package/dist/server/Input-XF9Jr0G9.cjs +1 -0
  134. package/dist/server/{Modal-BheFQLs1.js → Modal-C5dzgcRW.js} +102 -97
  135. package/dist/server/{Modal-BswxV8Pn.cjs → Modal-nAhBS1L9.cjs} +1 -1
  136. package/dist/server/Popover-C5avmGWz.cjs +1 -0
  137. package/dist/server/{Popover-Cg28aPUZ.js → Popover-H3AAYZI0.js} +57 -57
  138. package/dist/server/{SearchableSelect-09ECcDlB.cjs → SearchableSelect-CZrXDKfC.cjs} +1 -1
  139. package/dist/server/{SearchableSelect-vjhS4c-H.js → SearchableSelect-DMqed5Er.js} +1 -1
  140. package/dist/server/StatusBarNotificationBell-CGcMdT4h.cjs +49 -0
  141. package/dist/server/{StatusBarNotificationBell-D8Jt3PXI.js → StatusBarNotificationBell-DW2l5O9B.js} +4216 -3949
  142. package/dist/server/{Stepper-DxNrskdq.cjs → Stepper-CpapA_WH.cjs} +1 -1
  143. package/dist/server/{Stepper-n5f9r-ye.js → Stepper-gGA7JwjV.js} +1 -1
  144. package/dist/server/{Textarea-BQf2lL59.cjs → Textarea-Bh5LVrBn.cjs} +1 -1
  145. package/dist/server/{Textarea-BTH48NET.js → Textarea-DVkfGkP0.js} +1 -1
  146. package/dist/server/{ToggleButton-TE3Xf2yD.cjs → ToggleButton-CA9T-OsI.cjs} +1 -1
  147. package/dist/server/{ToggleButton-FywO2CCI.js → ToggleButton-CBNKajZa.js} +4 -4
  148. package/dist/server/{VpTrash-Dlq8o6Uv.js → VpTrash-CZMWCIpF.js} +84 -70
  149. package/dist/server/VpTrash-DiczWhwm.cjs +1 -0
  150. package/dist/server/appThemeDerivation-BylmT80v.cjs +1 -0
  151. package/dist/server/{appThemeDerivation-CKoSe4KP.js → appThemeDerivation-DBAOkGl7.js} +260 -231
  152. package/dist/server/{createDialogShellFocus-BiBAZOCI.cjs → createDialogShellFocus-CDaLuPg8.cjs} +1 -1
  153. package/dist/server/{createDialogShellFocus-BFo8awdj.js → createDialogShellFocus-LGDBOVnr.js} +6 -6
  154. package/dist/server/{createResizableSidebar-BImbKlLe.js → createResizableSidebar-Dvu7iEk1.js} +1 -1
  155. package/dist/server/{createResizableSidebar-GFgZIj-5.cjs → createResizableSidebar-v40ZOb-Q.cjs} +1 -1
  156. package/dist/server/desktop/index.cjs +1 -1
  157. package/dist/server/desktop/index.js +3 -3
  158. package/dist/server/dialogFocusRestore-BhxVTSiP.js +10 -0
  159. package/dist/server/dialogFocusRestore-DP5b1bDo.cjs +1 -0
  160. package/dist/server/forms/index.cjs +1 -1
  161. package/dist/server/forms/index.js +7 -7
  162. package/dist/server/grid/index.cjs +1 -1
  163. package/dist/server/grid/index.js +1 -1
  164. package/dist/server/{index-UIjsx3oJ.js → index-BEARfm54.js} +3604 -3617
  165. package/dist/server/index-C6rYfWCJ.cjs +1 -0
  166. package/dist/server/index.cjs +1 -1
  167. package/dist/server/index.js +502 -497
  168. package/dist/server/layout/index.cjs +1 -1
  169. package/dist/server/layout/index.js +2 -2
  170. package/dist/server/navigation/index.cjs +1 -1
  171. package/dist/server/navigation/index.js +1 -1
  172. package/dist/server/notifications/index.cjs +1 -1
  173. package/dist/server/notifications/index.js +55 -52
  174. package/dist/server/overlay/index.cjs +1 -1
  175. package/dist/server/overlay/index.js +54 -53
  176. package/dist/server/tokens/index.cjs +1 -1
  177. package/dist/server/tokens/index.js +30 -28
  178. package/dist/solid/feedback/Badge.jsx +3 -14
  179. package/dist/solid/forms/Button.jsx +3 -14
  180. package/dist/solid/forms/Input.jsx +31 -5
  181. package/dist/solid/forms/Input.module.css.js +1 -0
  182. package/dist/solid/forms/InputMessage.jsx +86 -0
  183. package/dist/solid/forms/PressableSurface.jsx +3 -14
  184. package/dist/solid/layout/ResizeHandle.jsx +11 -1
  185. package/dist/solid/layout/resizeCarry.js +31 -0
  186. package/dist/solid/notifications/NotificationHost.jsx +5 -18
  187. package/dist/solid/notifications/NotificationItem.jsx +5 -5
  188. package/dist/solid/notifications/NotificationPanel.jsx +14 -4
  189. package/dist/solid/notifications/NotificationsCenter.jsx +70 -12
  190. package/dist/solid/notifications/RunningProgressCards.jsx +1 -1
  191. package/dist/solid/notifications/StatusBarNotificationBell.jsx +8 -3
  192. package/dist/solid/notifications/catalogAdapter.js +1 -0
  193. package/dist/solid/notifications/fireNotification.js +21 -16
  194. package/dist/solid/notifications/index.js +1 -0
  195. package/dist/solid/notifications/notificationEntryList.js +168 -0
  196. package/dist/solid/notifications/notificationService.js +20 -4
  197. package/dist/solid/notifications/toast.js +54 -7
  198. package/dist/solid/notifications/toastCorner.js +3 -0
  199. package/dist/solid/notifications/toastFilterPolicy.js +12 -0
  200. package/dist/solid/overlay/Drawer.jsx +2 -1
  201. package/dist/solid/overlay/Modal.jsx +42 -4
  202. package/dist/solid/overlay/command-palette/CommandPalette.jsx +4 -4
  203. package/dist/solid/overlay/context-menu/DesktopContextMenu.jsx +8 -7
  204. package/dist/solid/overlay/nativeTitleHold.js +33 -0
  205. package/dist/solid/overlay/tooltipDirective.js +3 -11
  206. package/dist/solid/tokens/index.js +1 -0
  207. package/dist/solid/tokens/palette/paletteContract.js +27 -0
  208. package/dist/style.css +2 -2
  209. package/dist/theme.css +1 -1
  210. package/dist/tokens/index.cjs +1 -1
  211. package/dist/tokens/index.d.cts +1 -0
  212. package/dist/tokens/index.d.ts +1 -0
  213. package/dist/tokens/index.js +30 -28
  214. package/dist/tokens/palette/paletteContract.d.cts +17 -0
  215. package/dist/tokens/palette/paletteContract.d.ts +17 -0
  216. package/dist/tokens/tokens.css +1 -1
  217. package/dist/ui.css +1 -1
  218. package/package.json +1 -1
  219. package/dist/Button-Bb68ymNP.cjs +0 -1
  220. package/dist/Button-D-T0tyGF.js +0 -305
  221. package/dist/CommandPalette-5FQRgPG9.cjs +0 -2
  222. package/dist/HostPortal-CgJwxt-f.cjs +0 -1
  223. package/dist/Input-CZruORyy.cjs +0 -1
  224. package/dist/Input-DkPhsdfk.js +0 -227
  225. package/dist/Modal-CY6ePolt.cjs +0 -1
  226. package/dist/Modal-NzZzHSwb.js +0 -559
  227. package/dist/Popover-CWrR51eG.cjs +0 -1
  228. package/dist/SearchableSelect-CVqdVMOC.cjs +0 -1
  229. package/dist/StatusBarNotificationBell-BJiORN4s.cjs +0 -50
  230. package/dist/ToggleButton-BFWh1_o5.cjs +0 -1
  231. package/dist/anchoredLayout-Dstwa5OH.cjs +0 -1
  232. package/dist/anchoredLayout-FC-qv8xm.js +0 -250
  233. package/dist/appThemeDerivation-Be_oKljl.cjs +0 -1
  234. package/dist/createDialogShellFocus-CJaw9-B9.cjs +0 -1
  235. package/dist/createResizableSidebar-BDUlX9-G.js +0 -472
  236. package/dist/createResizableSidebar-BVJBU2kP.cjs +0 -1
  237. package/dist/dialogFocusRestore--dH59ER2.js +0 -35
  238. package/dist/dialogFocusRestore-CL-ExfAA.cjs +0 -1
  239. package/dist/mainRealmDom-C12lr9lm.js +0 -171
  240. package/dist/mainRealmDom-S6teqEr4.cjs +0 -1
  241. package/dist/server/CommandPalette-DQK6N98N.cjs +0 -1
  242. package/dist/server/HostPortal-CgJwxt-f.cjs +0 -1
  243. package/dist/server/Input-CjvD8w18.cjs +0 -1
  244. package/dist/server/Input-DaEN2JJd.js +0 -127
  245. package/dist/server/Popover-BsxIKBbl.cjs +0 -1
  246. package/dist/server/StatusBarNotificationBell-LJHLMT9F.cjs +0 -49
  247. package/dist/server/VpTrash-D49oUUJh.cjs +0 -1
  248. package/dist/server/appThemeDerivation-Be_oKljl.cjs +0 -1
  249. package/dist/server/dialogFocusRestore--dH59ER2.js +0 -35
  250. package/dist/server/dialogFocusRestore-CL-ExfAA.cjs +0 -1
  251. package/dist/server/index-2mQPVEDR.cjs +0 -1
  252. package/dist/tooltipCoordinator-BzxEyKhA.js +0 -144
  253. package/dist/tooltipCoordinator-DslqMlsI.cjs +0 -1
@@ -1,49 +0,0 @@
1
- "use strict";var Vs=Object.defineProperty;var Ws=(e,t,n)=>t in e?Vs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Te=(e,t,n)=>Ws(e,typeof t!="symbol"?t+"":t,n);const ft=require("./electronBridge-cT0xww92.cjs"),ho=require("./bugIndicatingError-D2X5Hfgg.cjs"),K=require("./useSettingsSubscription-DKjCwmRd.cjs"),S=require("./i18n-D3s-a2a0.cjs"),kt=require("./errorHandler-DoDAPpv2.cjs"),a=require("solid-js/web"),m=require("solid-js"),Bu=require("solid-js/store"),Vr=require("./createDialogShellFocus-BiBAZOCI.cjs"),Yu=require("./OverlayScrollArea-D4e9D9Nd.cjs"),di=require("./HostPortal-CgJwxt-f.cjs"),po=require("./HostWindowContext-_VZCt7xE.cjs"),Sn=require("./kitHost-BfJExE1G.cjs"),Ht=require("./builtins-DM7FDxEt.cjs"),qs=require("./window-_BfSgFGO.cjs"),go=require("./prefersReducedMotion-BQp-Q4UR.cjs"),xt=require("./keys-GMxY2wcl.cjs"),ot=require("./mainRealmDom-DwZVMPnO.cjs"),Wr=require("./Input-CjvD8w18.cjs"),vn=require("./GuidedTour-DfV0yzqh.cjs"),qr=require("./DesktopContextMenuContext-DMGNVjaR.cjs"),ve=require("./Button-0AXWRw9Q.cjs"),Bn=require("./DateRangePicker-KLZzyuPJ.cjs"),Se=require("./VpTrash-D49oUUJh.cjs"),Ys=require("./VpDots-ZiJ27JK9.cjs"),Ks=require("./VpCheck-CGTZXiSk.cjs"),Xs=require("./VpCopy-DsiWuj67.cjs"),js=require("./VpMinus-DUPk_dTT.cjs"),Tn=require("./Popover-BsxIKBbl.cjs"),Zs=require("./isOneOf-9EXOSYJu.cjs"),Qs=require("./windowRegistry-CxXtP-iY.cjs"),dr=require("./iconScale.module-CzmKG1rf.cjs"),Eo=require("./VpAlertTriangle-BqDp6ZRi.cjs"),kr=require("./VpClose-O8jHAcCB.cjs"),Js=require("./EmptyState-BnAHklc5.cjs"),ec="vk_bar_iSxMW",tc="vk_barCompact_SCRfr",nc="vk_search_P2Oii",uc="vk_dateBtn_v3RN1",Iu={bar:ec,barCompact:tc,search:nc,dateBtn:uc};var rc=['<div class="','">',"","","</div>"];function bo(e){return a.ssr(rc,`${a.escape(Iu.bar,!0)} ${e.compact?a.escape(Iu.barCompact,!0):""} ${a.escape(e.class??"",!0)}`,a.escape(a.createComponent(Wr.Input,{type:"text",get class(){return Iu.search},get placeholder(){return e.searchPlaceholder??S.t("Search…")},get value(){return e.searchValue},onInput:t=>e.onSearchInput(t.currentTarget.value)})),a.escape(a.createComponent(m.Show,{get when(){return e.onDateRangeChange},get children(){return a.createComponent(Bn.DateRangePicker,a.mergeProps({get value(){return e.dateRange??null},onChange:t=>{var n;return(n=e.onDateRangeChange)==null?void 0:n.call(e,t)},get triggerClass(){return Iu.dateBtn}},()=>e.dateRangeAlign?{align:e.dateRangeAlign}:{}))}})),a.escape(e.children))}const Yr=["general","vendor-error","sql-execution","connection","ssh","schema","users","tablespaces","locking","monitoring","source-control","file-system","settings","rss","plugins","workspace","dev"];function _o(e){return Zs.isOneOf(Yr,e)}const fi={dispose:()=>{}};function mo(e){return e.id===""}function fu(e,t){if(e.durationMs!==void 0)return e.durationMs;switch(e.severity){case"info":return t.infoDurationMs;case"success":return t.successDurationMs;case"warning":return t.warningDurationMs;case"error":return t.errorDurationMs}}function hu(e,t){if(e.sticky||e.priority==="urgent"||e.priority==="acknowledgment-required"||e.progress&&!e.progress.done||e.severity==="error"&&t.errorsAlwaysSticky||e.severity==="warning"&&t.warningsAlwaysSticky)return!0;const n=e.durationMs;return n!==void 0&&(!Number.isFinite(n)||n<=0)}function Bt(e){return e.progress!==void 0&&e.progress.done!==!0&&e.isolated!==!0}function Kr(e){return e.priority!=="acknowledgment-required"&&e.hidden!==!0}function Ao(e){return e.flatMap(t=>t.outOfSightSince!==void 0&&Bt(t)?[{item:t,since:t.outOfSightSince}]:[]).reverse().sort((t,n)=>n.since-t.since).map(({item:t})=>t)}function ic(e,t){if(t!==void 0)return{...e,outOfSightSince:t};const{outOfSightSince:n,...u}=e;return u}function Xr(e){const{getSettings:t,warn:n}=e,u=e.isSilenced??(()=>!1),r=e.isTurnedDown??(()=>!1),i=e.centerReachable??(()=>!0),o=e.now??(()=>Date.now()),s=e.setTimeout??((A,G)=>window.setTimeout(A,G)),c=e.clearTimeout??(A=>window.clearTimeout(A)),l=e.recordAutoFade,f=new Map,h=new Set,E=new Map,_=new Map,g=new Map;function N(){return[...f.values()].sort((A,G)=>A.createdAt-G.createdAt)}function I(){const A=N().filter(Kr),G=Math.max(1,t().maxVisibleNotifications);return new Set(A.slice(0,Math.max(0,A.length-G)).map(({id:z})=>z))}function D(A){return t().pauseTimerWhileHidden&&I().has(A)}function v(){const A=I();for(const z of g.keys())f.has(z)||g.delete(z);let G=!1;for(const[z,le]of f){le.hidden!==!0&&!A.has(z)?g.delete(z):g.has(z)||g.set(z,o());const ae=g.get(z);le.outOfSightSince!==ae&&(f.set(z,ic(le,ae)),G=!0)}return G}function R(){for(const A of f.keys()){if(E.has(A)){D(A)&&P(A);continue}j(A)}}function k(){v();const A=N();for(const G of Array.from(h))try{G(A)}catch(z){n("a notification engine listener threw:",z)}R()}function O(A){return!!(hu(A,t())||A.hovered||A.focused)}function L(A){return fu(A,t())}function P(A){const G=E.get(A);G!==void 0&&(c(G),E.delete(A))}function Y(A){const G=_.get(A);if(G)return G;const z={state:"open",changed:new ft.Emitter};return _.set(A,z),z}function Q(A,G){const z=_.get(A);return _.delete(A),z&&(z.state=G),z}function ce(A){A&&(A.changed.fire(A.state),A.changed.dispose())}function oe(A,G){if(P(A),!f.delete(A))return;const z=Q(A,G);k(),ce(z)}function Re(A){return{...A,hidden:!0,hovered:!1,focused:!1}}function H(A){return{...A,hidden:!1,createdAt:o()}}function X(A,G){const z=f.get(A);if(!z)return;const le={...z,...G},ae=Bt(z)&&!Bt(le);if(ae&&u(le)){oe(A,"suppressed");return}f.set(A,ae&&le.hidden?H(le):le),k(),j(A)}function j(A){P(A);const G=f.get(A);if(!G||O(G)||D(A))return;const z=L(G);if(!Number.isFinite(z)||z<=0)return;const le=s(()=>{E.delete(A);const ae=f.get(A);if(!ae||O(ae))return;l(ae.source??"general"),f.delete(A);const xe=Q(A,"closed");k(),ce(xe)},z);E.set(A,le)}let Ee=0;function Fe(){return Ee+=1,`n-${o().toString(36)}-${Ee.toString(36)}`}const J=800,pe=3,be=[];function Ae(){const A=o();for(;be.length>0&&(be[0]??0)<A-J;)be.shift();return be.length>=pe}function qe(){be.push(o())}function je(A){return!A||A.length===0?"":A.filter(G=>G.primary).map(G=>`${G.id??""}::${G.label}`).sort().join("|")}function st(A){const G=A.source??"",z=je(A.actions);for(const[le,ae]of f)if((ae.source??"")===G&&ae.title===A.title&&je(ae.actions)===z)return le;return null}function Xt(A){const G=A.id,z=G??st(A),le=z===null;if(le&&!G&&Ae())return{id:"",update:()=>{},setProgress:()=>{},close:()=>{},state:()=>"suppressed",onDidChangeState:()=>fi};const ae=z??Fe(),xe=f.get(ae),At={...A,id:ae,createdAt:(xe==null?void 0:xe.createdAt)??o(),expanded:(xe==null?void 0:xe.expanded)??!1,hovered:(xe==null?void 0:xe.hovered)??!1,focused:(xe==null?void 0:xe.focused)??!1},Ze=Bt(At)&&u(At)?Re(At):xe!=null&&xe.hidden?H(At):At;f.set(ae,Ze);const Rt=Y(ae);return le&&qe(),k(),j(ae),{id:ae,update(nt){X(ae,nt)},setProgress(nt){X(ae,{progress:nt})},close(){oe(ae,"closed")},state:()=>Rt.state,onDidChangeState:(nt,Tt)=>Rt.state==="open"?Rt.changed.event(nt,Tt):fi}}function _e(A){return h.add(A),A(N()),()=>{h.delete(A)}}function F(A,G){const z=f.get(A);!z||z.hovered===G||(f.set(A,{...z,hovered:G}),k(),G?P(A):j(A))}function ye(A,G){const z=f.get(A);!z||z.focused===G||(f.set(A,{...z,focused:G}),k(),G?P(A):j(A))}function Ge(A){const G=f.get(A);G&&(f.set(A,{...G,expanded:!G.expanded}),k(),j(A))}function ze(A){oe(A,"closed")}function Pe(A){const G=f.get(A);if(G){if(!Bt(G)||r(G)){oe(A,"dismissed");return}G.hidden||!i()||(f.set(A,Re(G)),k())}}function ct(A){const G=[...f.values()].filter(le=>le.hidden!==!0&&A(le));if(G.length===0)return;for(const le of G.filter(Bt))f.set(le.id,Re(le));const z=G.filter(le=>!Bt(le)).map(({id:le})=>(P(le),f.delete(le),Q(le,"suppressed")));k();for(const le of z)ce(le)}function wt(A){var G;((G=f.get(A))==null?void 0:G.priority)!=="acknowledgment-required"&&oe(A,"suppressed")}function ht(){v()&&k()}function Nt(){for(const G of E.keys())P(G);const A=[..._.keys()].map(G=>Q(G,"closed"));f.clear(),g.clear(),h.clear();for(const G of A)ce(G)}return{notify:Xt,subscribe:_e,setHover:F,setFocus:ye,toggleExpanded:Ge,close:ze,dismiss:Pe,suppress:ct,reject:wt,refresh:ht,dispose:Nt}}function Hu(e,t){return t.vendorError===void 0?null:ft.resolveVendorError(e,t.vendorError)}function eu(e){if(e)return[{label:e.label,onClick:e.onClick,primary:!0}]}const oc=200;class To{constructor(t){Te(this,"entries",[]);Te(this,"listeners",new Set);Te(this,"unreadSeq",0);Te(this,"seenSeq",0);Te(this,"unreadListeners",new Set);Te(this,"lastSyncedBadge",-1);this.deps=t}add(t,n,u="general",r="default",i,o){if(!t.trim())return;const s={id:`${Date.now()}-${Math.random().toString(36).slice(2,10)}`,message:kt.scrubSecrets(t),tone:n,createdAt:Date.now(),source:u,priority:r,...i&&i.length>0?{actions:i}:{},...o?{vendorError:o}:{}};this.write([s,...this.entries]),this.unreadSeq+=1,this.notifyUnread()}subscribe(t){return this.listeners.add(t),t([...this.entries]),()=>{this.listeners.delete(t)}}subscribeUnread(t){return this.unreadListeners.add(t),t(this.unreadCount()),()=>{this.unreadListeners.delete(t)}}find(t){return this.entries.find(n=>n.id===t)}markSeen(){this.seenSeq!==this.unreadSeq&&(this.seenSeq=this.unreadSeq,this.notifyUnread())}clear(){this.write([])}dismiss(t){this.write(this.entries.filter(n=>n.id!==t))}dismissMany(t){if(t.length===0)return;const n=new Set(t);this.write(this.entries.filter(u=>!n.has(u.id)))}dismissBySource(t){this.write(this.entries.filter(n=>n.source!==t))}togglePin(t){this.write(this.entries.map(n=>{if(n.id!==t)return n;const{pinnedAt:u,...r}=n;return n.pinned?{...r,pinned:!1}:{...r,pinned:!0,pinnedAt:Date.now()}}))}refreshBadge(){this.lastSyncedBadge=-1,this.syncBadge(this.unreadCount())}unreadCount(){return Math.max(0,this.unreadSeq-this.seenSeq)}write(t){const n=[...t].sort((s,c)=>c.createdAt-s.createdAt),u=n.filter(s=>s.pinned===!0),i=n.filter(s=>s.pinned!==!0).slice(0,Math.max(0,oc-u.length)),o=[...u].sort((s,c)=>(c.pinnedAt??c.createdAt)-(s.pinnedAt??s.createdAt));this.entries=[...o,...i];for(const s of Array.from(this.listeners))try{s(this.entries)}catch(c){this.deps.warn("a timeline listener threw:",c)}}notifyUnread(){const t=this.unreadCount();for(const n of Array.from(this.unreadListeners))try{n(t)}catch(u){this.deps.warn("an unread count listener threw:",u)}this.syncBadge(t)}syncBadge(t){const n=K.notificationSettings.get(),u=n.badgeCountEnabled?Math.min(t,n.badgeCountMax):0;u!==this.lastSyncedBadge&&(this.lastSyncedBadge=u,this.deps.setBadgeCount(u))}}class sc{constructor(){Te(this,"stats",new Map)}recordFire(t,n,u){const r=this.bucket(t);r.total+=1,n&&(r.shown+=1),u&&(r.muted+=1)}recordClick(t){this.bucket(t).clicked+=1}recordDismiss(t){this.bucket(t).dismissed+=1}recordAutoFade(t){this.bucket(t).autoFaded+=1}snapshot(){return[...this.stats.values()].map(t=>({...t})).sort((t,n)=>n.total-t.total)}reset(){this.stats.clear()}bucket(t){let n=this.stats.get(t);return n||(n={source:t,total:0,shown:0,clicked:0,dismissed:0,autoFaded:0,muted:0},this.stats.set(t,n)),n}}class cc{constructor(t){Te(this,"dataUrls",new Map);Te(this,"inFlight",new Map);this.readAudioAsDataUrl=t}async load(t){const n=this.dataUrls.get(t);if(n)return n;let u=this.inFlight.get(t);return u||(u=this.readAudioAsDataUrl(t).then(r=>(this.inFlight.delete(t),r&&this.dataUrls.set(t,r),r)),this.inFlight.set(t,u)),await u??void 0}invalidate(){this.dataUrls.clear(),this.inFlight.clear()}}const So={info:{freq:660,ms:140},success:{freq:880,ms:180},warning:{freq:520,ms:220},error:{freq:320,ms:260}},ac={info:"soundOnInfo",success:"soundOnSuccess",warning:"soundOnWarning",error:"soundOnError"},lc={info:"customSoundInfo",success:"customSoundSuccess",warning:"customSoundWarning",error:"customSoundError"};function Co(e,t,n){if(!t[ac[e]]||t.quietHoursMutesSounds&&n)return null;const u=t[lc[e]].trim();if(u)return{kind:"custom",path:u};const r=So[e];return{kind:"builtin",freq:r.freq,ms:r.ms}}class dc{constructor(t,n){Te(this,"context",null);Te(this,"contextFailed",!1);this.sounds=t,this.log=n}playQueryCompletedCue(){this.playTone(800,200)}playSeverityToneIfEnabled(t,n){const u=Co(t,K.notificationSettings.get(),n);if(u){if(u.kind==="custom"){this.playCustomSound(u.path);return}this.playTone(u.freq,u.ms)}}dispose(){const t=this.context;this.context=null,t&&t.close().catch(n=>{this.log.warn("AudioContext could not be closed:",n)})}audioContext(){if(this.contextFailed)return null;if(this.context)return this.context;try{const t=window.AudioContext??window.webkitAudioContext;return t?(this.context=new t,this.context):(this.contextFailed=!0,null)}catch(t){return this.contextFailed=!0,this.log.warn("AudioContext could not be created; notification sounds are off:",t),null}}async playCustomSound(t){const n=await this.sounds.load(t);if(n)try{const u=new Audio(n);u.volume=.6,await u.play()}catch(u){this.log.warn("Custom notification sound could not be played:",u)}}playTone(t,n){const u=this.audioContext();if(u)try{const r=u.currentTime,i=u.createOscillator(),o=u.createGain();i.connect(o),o.connect(u.destination),i.frequency.value=t,o.gain.setValueAtTime(.3,r),o.gain.exponentialRampToValueAtTime(.01,r+n/1e3),i.start(r),i.stop(r+n/1e3)}catch(r){this.log.warn("Notification tone could not be played:",r)}}}const Lr="notification.emailDigestSmtpPass",wr="notification.webhook.url.";function uu(e){return`${wr}${e}`}function No(e){return e.get(Lr)}async function fc(e,t){t?await e.set(Lr,t):await e.delete(Lr)}function Ro(e,t){return e.get(uu(t))}async function hc(e,t,n){n?await e.set(uu(t),n):await e.delete(uu(t))}function pc(e,t){return e.delete(uu(t))}async function gc(e,t){const n=new Set(t),u=(await e.keys()).filter(r=>r.startsWith(wr)).map(r=>r.slice(wr.length)).filter(r=>!n.has(r));await Promise.all(u.map(r=>e.delete(uu(r))))}const Ec={info:"#007AB0",success:"#108846",warning:"#D27908",error:"#BE2E34"},bc={info:1668818,success:3046706,warning:16088064,error:12986408};function _c(e,t){const{severities:n,priorities:u,sources:r}=e.filters;return!(n.length>0&&!n.includes(t.severity)||u.length>0&&!u.includes(t.priority)||r.length>0&&!r.includes(t.source))}function mc(e,t){switch(e.type){case"slack":return{text:t.title,attachments:[{color:Ec[t.severity],fields:[{title:"Source",value:t.source,short:!0},{title:"Severity",value:t.severity,short:!0},{title:"Priority",value:t.priority,short:!0}],text:t.body??""}]};case"discord":return{embeds:[{title:t.title,description:t.body??"",color:bc[t.severity],fields:[{name:"Source",value:t.source,inline:!0},{name:"Severity",value:t.severity,inline:!0},{name:"Priority",value:t.priority,inline:!0}]}]};case"generic":default:return{title:t.title,body:t.body??"",severity:t.severity,priority:t.priority,source:t.source,timestamp:Date.now()}}}class Ac{constructor(t,n){this.secrets=t,this.log=n}dispatch(t){const n=K.notificationSettings.get().webhooks.filter(u=>u.enabled&&_c(u,t));for(const u of n)this.deliver(u,t)}async deliver(t,n){try{const u=await Ro(this.secrets,t.id)??"";if(!u)return;await fetch(u,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(mc(t,n))})}catch(u){this.log.warn("Webhook delivery failed:",u)}}}const hi=500,pi={info:0,success:1,warning:2,error:3},Ou=e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");function Tc(e,t){const n=t.map(u=>`<tr>
2
- <td style="padding:4px 8px">${new Date(u.at).toISOString().slice(11,19)}</td>
3
- <td style="padding:4px 8px"><strong>${u.severity}</strong></td>
4
- <td style="padding:4px 8px">${Ou(u.source)}</td>
5
- <td style="padding:4px 8px">${Ou(u.title)}${u.body?`<br><small>${Ou(u.body)}</small>`:""}</td>
6
- </tr>`).join(`
7
- `);return`<!doctype html>
8
- <html><body>
9
- <h2>${e?`${Ou(e)} notification digest`:"Notification digest"}</h2>
10
- <p>${t.length} notification(s) since the last digest.</p>
11
- <table style="border-collapse:collapse">
12
- <thead><tr style="background:#eee">
13
- <th style="padding:4px 8px;text-align:left">Time (UTC)</th>
14
- <th style="padding:4px 8px;text-align:left">Severity</th>
15
- <th style="padding:4px 8px;text-align:left">Source</th>
16
- <th style="padding:4px 8px;text-align:left">Message</th>
17
- </tr></thead>
18
- <tbody>
19
- ${n}
20
- </tbody></table>
21
- </body></html>`}function Sc(e){const t=e.map(n=>`[${new Date(n.at).toISOString()}] ${n.severity.toUpperCase()} (${n.source}): ${n.title}${n.body?` — ${n.body}`:""}`);return`${e.length} notification(s):
22
-
23
- ${t.join(`
24
- `)}`}function Cc(e){const t=K.notificationSettings.get();if(!t.emailDigestEnabled)return!1;const n=e.getHours(),u=e.getMinutes(),r=e.getDay();switch(t.emailDigestSchedule){case"hourly":return u===0;case"daily-9am":return n===9&&u===0;case"daily-5pm":return n===17&&u===0;case"weekly-mon-9am":return r===1&&n===9&&u===0}}class Nc{constructor(t){Te(this,"queue",[]);Te(this,"lastSentMinute",0);Te(this,"scheduler");this.deps=t,this.scheduler=setInterval(()=>this.tick(),6e4)}enqueue(t){const n=K.notificationSettings.get();n.emailDigestEnabled&&(pi[t.severity]<pi[n.emailDigestMinSeverity]||(this.queue.push(t),this.queue.length>hi&&this.queue.splice(0,this.queue.length-hi)))}async flush(){const t=K.notificationSettings.get();if(!t.emailDigestEnabled)return{kind:"not-sent",reason:{kind:"disabled"}};if(this.queue.length===0)return{kind:"sent",count:0};if(!t.emailDigestSmtpHost||!t.emailDigestFrom||!t.emailDigestTo)return{kind:"not-sent",reason:{kind:"smtp-incomplete"}};const n=this.queue.splice(0,this.queue.length),u=this.deps.appName;try{const r=await No(this.deps.secrets)??"";return await this.deps.send({smtp:{host:t.emailDigestSmtpHost,port:t.emailDigestSmtpPort,secure:t.emailDigestSmtpSecure,user:t.emailDigestSmtpUser,pass:r},from:t.emailDigestFrom,to:t.emailDigestTo,subject:`${u?`[${u}] `:""}${n.length} notification(s)`,html:Tc(u,n),text:Sc(n)}),{kind:"sent",count:n.length}}catch(r){return this.queue.unshift(...n),{kind:"not-sent",reason:{kind:"send-failed",error:r}}}}notSentText(t){switch(t.kind){case"disabled":return S.t("Email digest is turned off.");case"smtp-incomplete":return S.t("SMTP host, sender and recipient are required.");case"send-failed":return this.deps.errorText(t.error,S.t("The digest could not be sent."))}}dispose(){clearInterval(this.scheduler)}tick(){const t=new Date;if(!Cc(t))return;const n=Math.floor(t.getTime()/6e4);n!==this.lastSentMinute&&(this.lastSentMinute=n,this.flush().then(u=>{u.kind==="not-sent"&&u.reason.kind==="send-failed"&&this.deps.log.warn("scheduled email digest failed",u.reason.error)}))}}const vu=new Map;function Io(){vu.clear()}function Rc(e){if(vu.has(e))return vu.get(e)??null;let t;try{t=new RegExp(e,"i")}catch{t=null}return vu.set(e,t),t}function Ic(e,t){const n=e.conditions;if(n.source&&n.source!==t.source||n.severities&&n.severities.length>0&&!n.severities.includes(t.severity))return!1;if(n.titleRegex){const u=Rc(n.titleRegex);if(!u||!u.test(t.title))return!1}return!0}function jr(e,t){if(t.length===0)return e;let n={...e};for(const u of t)if(u.enabled&&Ic(u,n)){if(u.actions.suppress===!0)return null;if(u.actions.setSeverity&&(n={...n,severity:u.actions.setSeverity}),u.actions.setPriority&&(n={...n,priority:u.actions.setPriority}),u.actions.addPrefix){const r=u.actions.addPrefix.trim();r&&(n={...n,title:`${r} ${n.title}`})}}return n}function vr(e){const t=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!t)return null;const n=Number(t[1]),u=Number(t[2]);return n>23||u>59?null:n*60+u}function ru(e,t){if(!e.quietHoursEnabled||!e.quietHoursWeekdays.includes(t.getDay()))return!1;const n=vr(e.quietHoursStart),u=vr(e.quietHoursEnd);if(n===null||u===null||n===u)return!1;const r=t.getHours()*60+t.getMinutes();return n<u?r>=n&&r<u:r>=n||r<u}function Oo(e,t){if(!e.quietHoursEnabled)return null;const n=vr(e.quietHoursStart);if(n===null)return null;for(let u=0;u<=7;u++)for(const r of n===0?[0]:[0,n]){const i=new Date(t.getFullYear(),t.getMonth(),t.getDate()+u,0,r);if(i.getTime()<=t.getTime())continue;const o=new Date(i.getTime()-6e4);if(ru(e,i)&&!ru(e,o))return i}return null}function pu(e,t){return`__remind:${e}:${t}`}function iu(e,t,n){const{priority:u}=e,r=e.recordTimeline!==!1;if(!t.notificationsEnabled)return{showToast:!1,recordTimeline:!1};if(n.dismissed)return{showToast:!1,recordTimeline:!1};if(n.remindSuppressed)return{showToast:!1,recordTimeline:!1};if(u==="silent")return{showToast:!1,recordTimeline:r};const i=u==="urgent"||u==="acknowledgment-required";return t.doNotDisturb&&(!i||u==="urgent"&&t.dndBlocksUrgent)?{showToast:!1,recordTimeline:r}:n.inQuietHours&&(!i||u==="urgent"&&t.quietHoursBlocksUrgent)?{showToast:!1,recordTimeline:r}:i?t.urgentRoutesToCenterOnly&&u==="urgent"?{showToast:!1,recordTimeline:r}:{showToast:!0,recordTimeline:r}:n.sourceMuted?{showToast:!1,recordTimeline:r}:{showToast:!0,recordTimeline:r}}function Oc(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}const Mr={info:0,success:1,warning:2,error:3};function yo(e,t){return t.osNativeEnabled?e.priority==="urgent"&&t.osNativeUrgentAlways?{fire:!0,onlyWhenUnfocused:!1}:Mr[e.severity]<Mr[t.osNativeMinSeverity]?{fire:!1,onlyWhenUnfocused:!1}:{fire:!0,onlyWhenUnfocused:t.osNativeOnlyWhenUnfocused}:{fire:!1,onlyWhenUnfocused:!1}}const yc={"sql-execution":"sql",users:"users",tablespaces:"tablespaces",rss:"rss-feeds",locking:"locking",monitoring:"monitoring"};function xc(e,t){if(t)return t;if(e!==void 0)return yc[e]}function hn(e){return K.notificationSettings.get().mutedSources.includes(e)}function Zr(e){return K.notificationSettings.get().dontShowAgainKeys.includes(e)}function Gu(e){const t=Date.now();return K.notificationSettings.get().remindersUntil.some(u=>u.key===e&&u.remindAt>t)}async function xo(e,t){if(!e||t<=0)return;const n=K.notificationSettings.get(),u=Date.now()+t,i=[...n.remindersUntil.filter(o=>o.key!==e),{key:e,remindAt:u}];K.notificationSettings.applyFromBroadcast({...n,remindersUntil:i}),await K.notificationSettings.update({...n,remindersUntil:i})}async function Do(e,t){const n=K.notificationSettings.get(),u=t?Array.from(new Set([...n.mutedSources,e])):n.mutedSources.filter(r=>r!==e);K.notificationSettings.applyFromBroadcast({...n,mutedSources:u}),await K.notificationSettings.update({...n,mutedSources:u})}async function ko(e){const t=K.notificationSettings.get();if(t.dontShowAgainKeys.includes(e))return;const n=[...t.dontShowAgainKeys,e];K.notificationSettings.applyFromBroadcast({...t,dontShowAgainKeys:n}),await K.notificationSettings.update({...t,dontShowAgainKeys:n})}async function Dc(e){const t=K.notificationSettings.get();if(!t.dontShowAgainKeys.includes(e))return;const n=t.dontShowAgainKeys.filter(u=>u!==e);K.notificationSettings.applyFromBroadcast({...t,dontShowAgainKeys:n}),await K.notificationSettings.update({...t,dontShowAgainKeys:n})}async function kc(){const e=K.notificationSettings.get();e.dontShowAgainKeys.length!==0&&(K.notificationSettings.applyFromBroadcast({...e,dontShowAgainKeys:[]}),await K.notificationSettings.update({...e,dontShowAgainKeys:[]}))}async function Lc(){const e=K.notificationSettings.get();e.mutedSources.length!==0&&(K.notificationSettings.applyFromBroadcast({...e,mutedSources:[]}),await K.notificationSettings.update({...e,mutedSources:[]}))}function Qr(){return ru(K.notificationSettings.get(),new Date)}function Lo(e,t,n){return{dismissed:n!==void 0&&Zr(n),remindSuppressed:n!==void 0&&Gu(n)||Gu(pu(e,t))}}function Jn(e,t,n,u,r){return iu({priority:n,recordTimeline:r},K.notificationSettings.get(),{...Lo(e,t,u),sourceMuted:hn(e),inQuietHours:Qr()})}function wc(e,t,n){const u=Lo(e,t,n);return u.dismissed||u.remindSuppressed}function vc(e){const t=e.neverShowAgainKey;return t!==void 0&&Zr(t)||Gu(t??e.remindKey??pu(e.source??"general",e.title))}function Mc(e,t){return!iu({priority:t,recordTimeline:void 0},K.notificationSettings.get(),{dismissed:!1,remindSuppressed:!1,sourceMuted:hn(e),inQuietHours:Qr()}).showToast}function Fc(e,t,n,u,r){return{label:t.label,primary:r,keepOpen:t.expireOnAction===!1,onClick:()=>{e.analytics.recordClick(u);try{t.onClick()}finally{const i=n();t.expireOnAction!==!1&&i&&e.engine.close(i)}}}}function wo(e,t,n,u,r){return[...t?[t]:[],...n??[]].map((i,o)=>Fc(e,i,u,r,o===0))}function vo(e){var r,i;const t=((r=e.subtitle)==null?void 0:r.trim())||((i=e.description)==null?void 0:i.trim()),n=e.markdown??K.notificationSettings.get().markdownEnabled,u=xc(e.source,e.defaultRoute);return{...t?{body:t}:{},...n?{markdown:!0}:{},...e.duration!==void 0?{durationMs:e.duration}:{},...e.dontShowAgainKey?{neverShowAgainKey:e.dontShowAgainKey}:{},...e.icon?{icon:e.icon}:{},...e.announce?{announce:e.announce}:{},...u?{defaultRoute:u}:{}}}function Mu(e,t){const n=t.options.source??"general";if(e.analytics.recordFire(n,t.decision.showToast,hn(n)),!t.decision.showToast)return null;e.audio.playSeverityToneIfEnabled(t.severity,Qr());const{options:u}=t,r=vo(u),i=r.body,o=u.id!==void 0?String(u.id):void 0;let s=null;const c=wo(e,t.primaryAction,u.actions,()=>s==null?void 0:s.id,n),l=e.engine.notify({severity:t.severity,title:t.title,...r,source:u.source??"general",priority:u.priority??"default",...o?{id:o}:{},...t.vendorError?{vendorError:t.vendorError}:{},...c.length>0?{actions:c}:{}});if(s=l,mo(l)||u.inAppOnly)return l;const f=kt.scrubSecrets(t.title),h=i?kt.scrubSecrets(i):void 0,E={title:f,...h?{body:h}:{},severity:t.severity,priority:u.priority??"default",source:u.source??"general"};return Pc(e,E),e.webhooks.dispatch(E),e.digest.enqueue({...E,at:Date.now()}),l}function Pc(e,t){const n=yo(t,K.notificationSettings.get());n.fire&&e.osNotify({title:t.title,...t.body?{body:t.body}:{},severity:t.severity,urgent:t.priority==="urgent",onlyWhenUnfocused:n.onlyWhenUnfocused})}function wn(e){return typeof e=="string"?e:e instanceof Error?e.message:e==null?"":String(e)}function Jr(e,t,n,u){var f,h,E;const r=wn(e),i=(f=t.title)==null?void 0:f.trim(),o=((h=t.subtitle)==null?void 0:h.trim())||((E=t.description)==null?void 0:E.trim());let s=i??r,c=o;if(n&&!i){const _=n.helpers.formatCode(n.code),g=new RegExp(`^\\s*${Oc(_)}\\s*[:-]\\s*(.+)$`,"i"),N=r.match(g);if(N!=null&&N[1]){s=_;const I=N[1].trim();c=c?`${I}
25
-
26
- ${c}`:I}}let l=t.action;if(!l&&n){const _=n.helpers.docsUrl(n.code);_&&(l={label:`${n.helpers.formatCode(n.code)} ${n.helpers.docsLinkLabel}`,onClick:()=>u(_)})}return{text:r,displayText:s,bodyText:c,primaryAction:l}}const Mo={update:()=>{},success:()=>{},fail:()=>{},dismiss:()=>{},updateActions:()=>{},state:()=>"suppressed",onDidChangeState:()=>({dispose:()=>{}})};function Fr(e){return jr(e,K.notificationSettings.get().notificationRules)}function Uc(e){const{sinks:t,timeline:n}=e;return{success(u,r={}){const i=wn(u),o=K.notificationSettings.get(),s=Fr({severity:"success",title:i,priority:r.priority??"default",source:r.source??"general"});if(!s)return"";const c=Jn(s.source,s.title,s.priority,r.dontShowAgainKey,r.recordTimeline);if(c.recordTimeline&&n.add(s.title,s.severity,s.source,s.priority,eu(r.action)),!o.showSuccessToasts&&s.priority!=="urgent")return"";const l=Mu(t,{severity:s.severity,title:s.title,options:{...r,source:s.source,priority:s.priority},decision:c,...r.action?{primaryAction:r.action}:{}});return(l==null?void 0:l.id)??""},error(u,r={}){const i=wn(u),o=r.vendorError===void 0?null:ft.resolveVendorError(e.vendorErrors,r.vendorError),s=Jr(i,r,o,e.openExternal),c=o!==null,l=s.bodyText,f=l?`${s.displayText}
27
- ${l}`:i,h=c&&K.notificationSettings.get().vendorCodesAreUrgent,E=Fr({severity:"error",title:s.displayText,priority:r.priority??(h?"urgent":"default"),source:r.source??(c?"vendor-error":"general")});if(!E)return"";const{source:_,priority:g}=E,N=Jn(_,E.title,g,r.dontShowAgainKey,r.recordTimeline);N.recordTimeline&&n.add(f,E.severity,_,g,eu(r.action),r.vendorError);const I=Mu(t,{severity:E.severity,title:E.title,options:{...r,source:_,priority:g,...l?{description:l}:{}},decision:N,...s.primaryAction?{primaryAction:s.primaryAction}:{},...r.vendorError?{vendorError:r.vendorError}:{}});return(I==null?void 0:I.id)??""},info(u,r={}){return gi(e,"info",u,r)},warning(u,r={}){return gi(e,"warning",u,r)},queryCompleted(u,r={}){const i=wn(u),o=K.notificationSettings.get(),s=r.source??"sql-execution",c=r.priority??"default",l=Jn(s,i,c,r.dontShowAgainKey,r.recordTimeline);if(l.recordTimeline&&n.add(i,"success",s,c,eu(r.action)),o.notificationsEnabled&&o.soundOnQueryCompletion&&!(o.quietHoursMutesSounds&&ru(o,new Date))&&t.audio.playQueryCompletedCue(),!o.showSuccessToasts&&c!=="urgent")return"";const f=Mu(t,{severity:"success",title:i,options:{...r,source:s,priority:c},decision:l,...r.action?{primaryAction:r.action}:{}});return(f==null?void 0:f.id)??""},progress(u,r={}){const i=wn(u),o=r.onCancel,s=r.source??"general",c=r.priority??"default",l=r.id!==void 0?String(r.id):void 0,f=Jn(s,i,c,r.dontShowAgainKey,r.recordTimeline);if(f.recordTimeline&&n.add(i,"info",s,c),!f.showToast&&(wc(s,i,r.dontShowAgainKey)||c==="acknowledgment-required"))return l!==void 0&&t.engine.reject(l),Mo;const h=l??`progress-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,E=N=>wo(t,N.action,N.actions,()=>h,s),_=E(r),g=t.engine.notify({id:h,severity:"info",title:i,...vo({...r,source:s}),source:s,priority:c,sticky:!0,progress:o?{onCancel:o}:{},remindKey:pu(s,i),..._.length>0?{actions:_}:{}});return{update:(N,I)=>{g.update({title:N}),I!==void 0&&g.setProgress({value:Math.max(0,Math.min(1,I)),...o?{onCancel:o}:{}})},success:N=>{const I=N??i;f.recordTimeline&&n.add(I,"success",s,c),g.update({title:I,severity:"success",sticky:!1,progress:{done:!0}})},fail:N=>{const I=N??i;f.recordTimeline&&n.add(I,"error",s,c),g.update({title:I,severity:"error",sticky:!0,progress:{done:!0},durationMs:1/0})},dismiss:()=>g.close(),updateActions:N=>{const I=E(N);g.update({actions:I.length>0?I:void 0})},state:()=>g.state(),onDidChangeState:g.onDidChangeState}}}}function gi(e,t,n,u){const r=Fr({severity:t,title:wn(n),priority:u.priority??"default",source:u.source??"general"});if(!r)return"";const i=Jn(r.source,r.title,r.priority,u.dontShowAgainKey,u.recordTimeline);i.recordTimeline&&e.timeline.add(r.title,r.severity,r.source,r.priority,eu(u.action));const o=Mu(e.sinks,{severity:r.severity,title:r.title,options:{...u,source:r.source,priority:r.priority},decision:i,...u.action?{primaryAction:u.action}:{}});return(o==null?void 0:o.id)??""}function Fo(e,t,n){if(!("cause"in e))return e;const{cause:u,...r}=e,i=t(u).map(n);return i.length===0?r:{...r,actions:[...r.actions??[],...i]}}function Bc(e){return t=>({label:t.label,onClick:()=>{Promise.resolve().then(()=>t.run()).catch(e)}})}function Ei(e,t){return{...e.severity==="error"&&e.source==="general"?{}:{source:e.source},...e.severity==="error"&&e.priority==="default"?{}:{priority:e.priority},...t.subtitle?{subtitle:t.subtitle}:{},...t.description?{description:t.description}:{},...t.action?{action:t.action}:{},...t.actions?{actions:t.actions}:{},...t.duration!==void 0?{duration:t.duration}:{},...t.dontShowAgainKey?{dontShowAgainKey:t.dontShowAgainKey}:{},...t.defaultRoute?{defaultRoute:t.defaultRoute}:{},...t.icon?{icon:t.icon}:{},...t.markdown!==void 0?{markdown:t.markdown}:{},...t.recordTimeline!==void 0?{recordTimeline:t.recordTimeline}:{},...t.id!==void 0?{id:t.id}:{},...t.announce!==void 0?{announce:t.announce}:{},...e.delivery==="in-app-only"?{inAppOnly:!0}:{}}}function Hc(e){const t=Bc(e.onActionFailed),n=u=>Fo(u,e.errorActions,t);return{notify(u,r){const i=n(r);if(u.delivery==="os-only"){const s=i.title??i.message,c=i.description??i.subtitle??(i.title?i.message:void 0);return e.osNotify({title:s,...c?{body:c}:{},severity:u.severity,urgent:u.priority==="urgent",onlyWhenUnfocused:!1}),""}const o=Ei(u,i);if(u.kind==="query-completed")return e.toast.queryCompleted(i.message,o);switch(u.severity){case"success":return e.toast.success(i.message,o);case"error":{const s={...o,...i.title?{title:i.title}:{},...i.vendorError?{vendorError:i.vendorError}:{}};return e.toast.error(i.message,s)}case"warning":return e.toast.warning(i.message,o);case"info":return e.toast.info(i.message,o)}},progress(u,r){const i=n(r);if(u.delivery==="os-only")throw new ho.BugIndicatingError("Progress notifications require an in-app catalog definition.");return e.toast.progress(i.message,{...Ei(u,i),...i.onCancel?{onCancel:i.onCancel}:{}})}}}function ei(e,t,n,u){return e==="error"&&t==="default"&&n&&u?"urgent":t}function Gc(e,t,n){var f;const u=n.vendorError===void 0?null:ft.resolveVendorError(e.vendorErrors,n.vendorError),r=t.severity==="error"?Jr(n.message,{...n.title?{title:n.title}:{},...n.subtitle?{subtitle:n.subtitle}:{},...n.description?{description:n.description}:{},...n.action?{action:n.action}:{}},u,e.openExternal):null,i=(r==null?void 0:r.displayText)??n.title??n.message,o=(r==null?void 0:r.bodyText)??n.subtitle??n.description,s=(r==null?void 0:r.primaryAction)??n.action,c=t.severity==="error"&&t.source==="general"&&u!==null?"vendor-error":t.source,l=ei(t.severity,t.priority,u!==null,K.notificationSettings.get().vendorCodesAreUrgent);return e.engine.notify({severity:t.severity,title:kt.scrubSecrets(i),...o?{body:kt.scrubSecrets(o)}:{},source:c,priority:l,isolated:!0,...n.duration!==void 0?{durationMs:n.duration}:{},...n.id!==void 0?{id:`dev-preview:${n.id}`}:{},...n.icon?{icon:n.icon}:{},...n.markdown?{markdown:!0}:{},...t.kind==="progress"?{sticky:!0,progress:{done:!1}}:{},...s||(f=n.actions)!=null&&f.length?{actions:[s,...n.actions??[]].filter(h=>h!==void 0).map((h,E)=>({id:`dev-preview-action-${E}`,label:h.label,primary:E===0,onClick:()=>{h.onClick()}}))}:{}}).id}function Ku(e,t){return{message:e,...t!=null&&t.title?{title:t.title}:{},...t!=null&&t.subtitle?{subtitle:t.subtitle}:{},...t!=null&&t.description?{description:t.description}:{},...t!=null&&t.action?{action:t.action}:{},...(t==null?void 0:t.duration)!==void 0?{duration:t.duration}:{},...t!=null&&t.dontShowAgainKey?{dontShowAgainKey:t.dontShowAgainKey}:{},...t!=null&&t.defaultRoute?{defaultRoute:t.defaultRoute}:{},...t!=null&&t.icon?{icon:t.icon}:{},...(t==null?void 0:t.markdown)!==void 0?{markdown:t.markdown}:{},...(t==null?void 0:t.recordTimeline)!==void 0?{recordTimeline:t.recordTimeline}:{},...(t==null?void 0:t.id)!==void 0?{id:t.id}:{},...t!=null&&t.onCancel?{onCancel:t.onCancel}:{}}}const zc=ot.defineNotification({id:"notifications.timeline.replay.error",source:"general",severity:"error",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:e,options:t})=>Ku(e,t)),$c=ot.defineNotification({id:"notifications.timeline.replay.warning",source:"general",severity:"warning",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:e,options:t})=>Ku(e,t)),Vc=ot.defineNotification({id:"notifications.timeline.replay.success",source:"general",severity:"success",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:e,options:t})=>Ku(e,t)),Wc=ot.defineNotification({id:"notifications.timeline.replay.info",source:"general",severity:"info",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:e,options:t})=>Ku(e,t)),qc=ot.defineNotification({id:"notifications.timeline.exported",source:"general",severity:"success",priority:"default",delivery:"in-app",kind:"message"},({entryCount:e})=>({message:S.t("Exported {count} notifications",{count:e})})),Yc=ot.defineNotification({id:"notifications.timeline.export.failed",source:"general",severity:"error",priority:"default",delivery:"in-app",kind:"message"},({cause:e},{errorText:t})=>({message:S.t("Export failed: {message}",{message:t(e,S.t("Operation failed."))}),cause:e})),Kc=ot.defineNotification({id:"notifications.errorAction.failed",source:"general",severity:"error",priority:"default",delivery:"in-app",kind:"message"},({cause:e},{errorText:t})=>({message:S.t("The action could not be completed: {message}",{message:t(e,S.t("Operation failed."))}),cause:e})),Po=ot.defineNotification({id:"notifications.settings.update.failed",source:"settings",severity:"error",priority:"default",delivery:"in-app",kind:"message"},({cause:e},{errorText:t})=>({message:t(e,S.t("Operation failed.")),cause:e})),Xc=60*6e4;function bi(e){return!e.isolated&&e.priority!=="acknowledgment-required"&&Mc(e.source??"general",e.priority??"default")}class jc{constructor(t){Te(this,"renderHost");Te(this,"toast");Te(this,"stack");Te(this,"timeline");Te(this,"onDidRequestNavigation");Te(this,"engine");Te(this,"analytics",new sc);Te(this,"sounds");Te(this,"audio");Te(this,"digest");Te(this,"delivery");Te(this,"navigation",new ft.Emitter);Te(this,"log");Te(this,"onSettingsChanged");Te(this,"stopWatchingCards");Te(this,"watchingQuietHours",!1);Te(this,"quietHoursTimer");this.deps=t;const n=t.log.withTag("Notifications");this.log=n,this.renderHost={errorText:t.errorPresenter.text},this.engine=Xr({getSettings:()=>K.notificationSettings.get(),recordAutoFade:r=>this.analytics.recordAutoFade(r),warn:(r,i)=>n.warn(r,i),isSilenced:bi,isTurnedDown:vc,centerReachable:t.centerReachable}),this.stack=this.engine,this.timeline=new To({setBadgeCount:r=>this.unawaited("the OS badge could not be set",t.desktop.setBadgeCount(r)),warn:(r,i)=>n.warn(r,i)}),this.sounds=new cc(r=>t.desktop.readAudioAsDataUrl(r).catch(i=>(n.warn("custom sound could not be read",{filePath:r,error:i}),null))),this.audio=new dc(this.sounds,n),this.digest=new Nc({secrets:t.secrets,send:t.sendEmailDigest,appName:t.appName,errorText:t.errorPresenter.text,log:n});const u=r=>this.unawaited("the OS notification was not shown",t.desktop.osNotify(r));this.toast=Uc({sinks:{engine:this.engine,analytics:this.analytics,audio:this.audio,webhooks:new Ac(t.secrets,n),digest:this.digest,osNotify:u},timeline:this.timeline,vendorErrors:t.vendorErrors,openExternal:r=>ft.openExternalUrl(t.desktop,n,r)}),this.delivery=Hc({toast:this.toast,osNotify:u,errorActions:t.errorPresenter.actions,onActionFailed:r=>this.notify(Kc,{cause:r})}),this.onDidRequestNavigation=this.navigation.event,this.onSettingsChanged=()=>{Io(),this.sounds.invalidate(),this.timeline.refreshBadge(),this.takeBackSilencedCards(),this.engine.refresh(),this.watchingQuietHours&&this.watchQuietHoursStart()},window.addEventListener(K.notificationSettings.changeEvent,this.onSettingsChanged),this.stopWatchingCards=this.engine.subscribe(r=>{r.length===0?this.stopWatchingQuietHours():this.watchingQuietHours||this.watchQuietHoursStart()})}notify(t,n){return this.delivery.notify(t,t.build(n,this.renderHost))}progress(t,n){if(t.kind!=="progress")throw new ho.BugIndicatingError("notifications: a message definition cannot be delivered as progress.");return this.delivery.progress(t,t.build(n,this.renderHost))}showPreview(t,n){return Gc({engine:this.engine,vendorErrors:this.deps.vendorErrors,openExternal:u=>ft.openExternalUrl(this.deps.desktop,this.log,u)},t,n)}dismissEntry(t){const n=this.timeline.find(t);n!==void 0&&(this.analytics.recordDismiss(n.source),this.timeline.dismiss(t))}flushDigest(){return this.digest.flush()}digestNotSentText(t){return this.digest.notSentText(t)}getStatsSnapshot(){return this.analytics.snapshot()}resetStats(){this.analytics.reset()}requestNavigation(t){this.navigation.fire(t)}dispose(){window.removeEventListener(K.notificationSettings.changeEvent,this.onSettingsChanged),this.stopWatchingCards(),this.stopWatchingQuietHours(),this.digest.dispose(),this.audio.dispose(),this.engine.dispose(),this.navigation.dispose()}takeBackSilencedCards(){this.engine.suppress(bi)}watchQuietHoursStart(){this.stopWatchingQuietHours(),this.watchingQuietHours=!0;const t=Oo(K.notificationSettings.get(),new Date);if(t===null)return;const n=Math.max(0,t.getTime()-Date.now());this.quietHoursTimer=setTimeout(()=>{this.quietHoursTimer=void 0,this.takeBackSilencedCards(),this.watchingQuietHours&&this.watchQuietHoursStart()},Math.min(n,Xc))}stopWatchingQuietHours(){clearTimeout(this.quietHoursTimer),this.quietHoursTimer=void 0,this.watchingQuietHours=!1}unawaited(t,n){Promise.resolve(n).catch(u=>this.log.debug(t,u))}}function Uo(e,t){const n=e.trim();if(!n)return null;if(t)try{const u=new RegExp(n,"i");return{test:r=>u.test(r)}}catch{return _i(n)}return _i(n)}function _i(e){const t=e.toLowerCase();return{test:n=>n.toLowerCase().includes(t)}}function Bo(e,t){const{tones:n,sources:u,priorities:r,dateBounds:i,searchMatcher:o}=t;return e.filter(s=>!(n.size>0&&!n.has(s.tone)||u.size>0&&!u.has(s.source)||r.size>0&&!r.has(s.priority)||i&&(s.createdAt<i.start||s.createdAt>i.end)||o&&!o.test(`${s.message} ${s.source}`)))}const Zc="acknowledgment-required";function Ho(e){return e.filter(t=>t.priority!==Zc).map(t=>t.id)}const Qc={general:{label:"General",description:"Uncategorized notifications. Default for callers that do not pass a source."},"vendor-error":{label:"Database errors",description:"Errors carrying a recognised vendor code (Oracle ORA-NNNNN, PG SQLSTATE, MSSQL Msg N, …). Treated as urgent when the matching setting is enabled."},"sql-execution":{label:"SQL execution",description:"Query completion / cancellation / failure notifications."},connection:{label:"Connection",description:"Connect, disconnect, test, vault credential events."},ssh:{label:"SSH & terminal",description:"SSH dock, tunnels, terminal lifecycle."},schema:{label:"Schema browser",description:"DDL extraction, copy-name, refresh."},users:{label:"Users",description:"User management — create, unlock, alter."},tablespaces:{label:"Tablespaces",description:"Tablespace creation, quota warnings."},locking:{label:"Locking",description:"Blocking sessions and deadlock alerts."},monitoring:{label:"Monitoring",description:"Threshold alerts — CPU, blocked sessions, long-running ops, invalid objects, failed logins."},"source-control":{label:"Source control",description:"Git commit / pull / push outcomes."},"file-system":{label:"File system",description:"Save, copy, paste, image clipboard."},settings:{label:"Settings",description:"Preference saves, layout reset, import/export."},rss:{label:"RSS feeds",description:"Feed refresh, post counts."},plugins:{label:"Plugins",description:"Plugin install, activation, marketplace and sandbox events."},workspace:{label:"Workspace",description:"Workspace tabs, session restore and layout events."},dev:{label:"Developer",description:"Dev test surface and internal diagnostics."}},Xu=Yr.map(e=>({id:e,...Qc[e]})),mi=new Map(Xu.map(e=>[e.id,e]));function An(e){if(e){const t=mi.get(e);if(t)return t}return mi.get("general")??Xu[0]}function Jc(){return Xu}function Go(e,t){const n=[];let u=0;for(;u<e.length;){const r=e[u];if(!r)break;if(r.pinned===!0){n.push({type:"entry",id:r.id,entry:r}),u+=1;continue}const i=t==="source"?r.source:`${r.source}|${r.tone}`;let o=u+1;for(;o<e.length;){const c=e[o];if(!c||c.pinned===!0||(t==="source"?c.source:`${c.source}|${c.tone}`)!==i)break;o+=1}const s=o-u;s===1?n.push({type:"entry",id:r.id,entry:r}):n.push({type:"group",id:`group:${i}:${r.id}`,groupKey:i,groupCount:s,groupSource:r.source,groupTone:r.tone,groupItems:e.slice(u,o)}),u=o}return n}function ea(e,t){return(e+t).indexOf(t)<e.length}const ta=/^[=+\-@\t\r]/,na=/^[+-]?\d[\d.,' \u00A0\u202F]*(?:[eE][+-]?\d+)?$/,ua=/^[ \t]|[ \t]$/;function zo(e){return ta.test(e)}function ra(e,t){return zo(e)?t==="quotePrefix"?`'${e}`:` ${e}`:e}function ia(e,t,n={}){if(e==null)return"";const u=String(e),r=n.numeric===!0&&na.test(u),i=r?u:ra(u,t.policy),o=n.forceQuote===!0,s=t.quoteChar,c=t.escape==="backslash";return t.alwaysQuote||o||ua.test(u)||!r&&t.policy==="tabPrefix"&&zo(u)||ea(i,t.delimiter)||i.includes(s)||i.includes(`
28
- `)||i.includes("\r")||c&&i.includes("\\")?oa(i,s,t.escape):i}function oa(e,t,n){const u=n==="backslash"?e.replace(/\\/g,"\\\\").split(t).join(`\\${t}`):e.split(t).join(t+t);return`${t}${u}${t}`}const sa=e=>e==="crlf"?`\r
29
- `:`
30
- `,ca="\uFEFF",aa=Object.freeze({cell:Object.freeze({delimiter:",",quoteChar:'"',escape:"double",alwaysQuote:!1,policy:"quotePrefix"}),lineEnd:"crlf",byteOrderMark:!0});function la(e,t){const n=e instanceof Date?e.toISOString():e;return ia(n,t,{numeric:typeof e=="number"})}function da(e,t,n){const u=sa(n.lineEnd),r=i=>i.map(o=>la(o,n.cell)).join(n.cell.delimiter)+u;return r(t.map(i=>i.header))+e.map(i=>r(t.map(o=>o.value(i)))).join("")}function fa(e,t,n){return(n.byteOrderMark?ca:"")+da(e,t,n)}const ha=[{header:"timestamp",value:e=>new Date(e.createdAt)},{header:"source",value:e=>e.source},{header:"tone",value:e=>e.tone},{header:"priority",value:e=>e.priority},{header:"pinned",value:e=>e.pinned===!0},{header:"message",value:e=>e.message}];function $o(e){return fa(e,ha,aa)}function Vo(e){return JSON.stringify(e,null,2)}function pa(e,t){return{update:(n,u)=>{e.update({title:n}),u!==void 0&&e.setProgress({value:Math.max(0,Math.min(1,u)),...t.onCancel?{onCancel:t.onCancel}:{}})},success:n=>e.update({title:n??t.message,severity:"success",sticky:!1,progress:{done:!0}}),fail:n=>e.update({title:n??t.message,severity:"error",sticky:!0,progress:{done:!0},durationMs:1/0}),dismiss:()=>e.close(),updateActions:n=>{var u;return e.update({actions:Pr(n.action?tu(n.action):void 0,(u=n.actions)==null?void 0:u.map(tu),()=>e.close())})},state:()=>e.state(),onDidChangeState:e.onDidChangeState}}const Wo=()=>{};function tu(e){return{label:e.label,onClick:Wo,...e.expireOnAction!==void 0?{expireOnAction:e.expireOnAction}:{}}}function Pr(e,t,n){const u=[e,...t??[]].filter(r=>r!==void 0);if(u.length!==0)return u.map((r,i)=>({label:r.label,primary:i===0,keepOpen:r.expireOnAction===!1,onClick:()=>{r.onClick(),r.expireOnAction!==!1&&n()}}))}function Ai(e,t){return{...t?{body:kt.scrubSecrets(t)}:{},...e.duration!==void 0?{durationMs:e.duration}:{},...e.icon?{icon:e.icon}:{},...e.markdown?{markdown:!0}:{},...e.announce?{announce:e.announce}:{}}}function Ti(e,t){const n=Fo(e,t,tu);return{...n,...n.action?{action:tu(n.action)}:{},...n.actions?{actions:n.actions.map(tu)}:{},...n.onCancel?{onCancel:Wo}:{}}}function ga(e,t){return t.vendorError===void 0?null:ft.resolveVendorError(e,t.vendorError)}function Ea(e){let t={...K.DEFAULT_NOTIFICATION_SETTINGS},n={dismissed:!1,remindSuppressed:!1,sourceMuted:!1,inQuietHours:!1};const u=[],r=Xr({getSettings:()=>t,recordAutoFade:()=>{},warn:(l,f)=>e.log.warn(l,f)});let i=[];const o=r.subscribe(l=>{i=l}),s={close:l=>r.dismiss(l),setFocus:(l,f)=>r.setFocus(l,f),setHover:(l,f)=>r.setHover(l,f),toggleExpanded:l=>r.toggleExpanded(l),isSticky:l=>hu(l,t),duration:l=>fu(l,t),resolveVendorError:l=>ft.resolveVendorError(e.vendorErrors,l),openExternal:e.openExternal,announcer:e.announcer};return{host:{notify(l,f){const h=Ti(f,e.errorActions),E=ga(e.vendorErrors,h),_=l.severity==="error"?Jr(h.message,{...h.title?{title:h.title}:{},...h.subtitle?{subtitle:h.subtitle}:{},...h.description?{description:h.description}:{},...h.action?{action:h.action}:{}},E,e.openExternal):null,g=l.severity==="error"&&l.source==="general"&&E!==null?"vendor-error":l.source,N=ei(l.severity,l.priority,E!==null,t.vendorCodesAreUrgent),I=jr({severity:l.severity,title:(_==null?void 0:_.displayText)??h.title??h.message,priority:N,source:g},t.notificationRules),D=I===null?{showToast:!1,recordTimeline:!1}:iu({priority:I.priority,recordTimeline:h.recordTimeline},t,n),v=l.delivery==="os-only"?"mock-os":D.showToast?"shown":D.recordTimeline?"timeline-only":"suppressed",R={definition:l,payload:{...h,message:kt.scrubSecrets(h.message),...h.title?{title:kt.scrubSecrets(h.title)}:{},...h.description?{description:kt.scrubSecrets(h.description)}:{}},channel:l.delivery,decision:D,outcome:v};if(l.delivery==="os-only"||I===null||!D.showToast)return u.push(R),"";const k=(_==null?void 0:_.bodyText)??h.subtitle??h.description;let O;const L=Pr((_==null?void 0:_.primaryAction)??h.action,h.actions,()=>O==null?void 0:O.close()),P=r.notify({severity:I.severity,title:kt.scrubSecrets(I.title),...Ai(h,k),source:I.source,priority:I.priority,isolated:!0,...h.id!==void 0?{id:String(h.id)}:{},...L?{actions:L}:{}});return O=P,u.push(P.id?R:{...R,outcome:"spam-dropped"}),P.id},progress(l,f){const h=Ti(f,e.errorActions),E=iu({priority:l.priority,recordTimeline:h.recordTimeline},t,n);u.push({definition:l,payload:h,channel:l.delivery,decision:E,outcome:E.showToast?"shown":E.recordTimeline?"timeline-only":"suppressed"});const _=h.id!==void 0?String(h.id):void 0;if(!E.showToast)return _!==void 0&&r.suppress(D=>D.id===_),Mo;let g;const N=Pr(h.action,h.actions,()=>g==null?void 0:g.close()),I=r.notify({severity:l.severity,title:kt.scrubSecrets(h.message),...Ai(h,h.subtitle??h.description),source:l.source,priority:l.priority,isolated:!0,sticky:!0,progress:h.onCancel?{onCancel:h.onCancel}:{},..._!==void 0?{id:_}:{},...N?{actions:N}:{}});return g=I,pa(I,h)}},controller:s,deliveries:u,setBehavior:l=>{t={...K.DEFAULT_NOTIFICATION_SETTINGS},n={dismissed:l==="dismissed",remindSuppressed:l==="reminder",sourceMuted:l==="source-muted",inQuietHours:l==="quiet-hours"},l==="dnd"?t={...t,doNotDisturb:!0}:l==="rule-transform"?t={...t,notificationRules:[{id:"preview-transform",name:"Preview transform",enabled:!0,conditions:{source:"dev"},actions:{setSeverity:"warning",setPriority:"urgent",addPrefix:"[RULE]"}}]}:l==="rule-suppress"&&(t={...t,notificationRules:[{id:"preview-suppress",name:"Preview suppress",enabled:!0,conditions:{source:"dev"},actions:{suppress:!0}}]})},subscribe:l=>r.subscribe(l),clear:()=>{for(const l of i)r.close(l.id);u.splice(0,u.length)},dispose:()=>{o(),r.dispose()}}}function qo(e,t){const n=e.notifications.stack;return{close:u=>n.dismiss(u),setFocus:(u,r)=>n.setFocus(u,r),setHover:(u,r)=>n.setHover(u,r),toggleExpanded:u=>n.toggleExpanded(u),isSticky:u=>hu(u,t()),duration:u=>fu(u,t()),resolveVendorError:u=>ft.resolveVendorError(e.vendorErrors,u),openExternal:u=>ft.openExternalUrl(e.desktop,e.log,u),announcer:e.announcer}}function ti(e){const t=n=>{n.catch(u=>e.notifications.notify(Po,{cause:u}))};return{remindLaterEnabled:()=>K.notificationSettings.get().remindLaterEnabled,isSourceMuted:hn,setSourceMuted:(n,u)=>t(Do(n,u)),dismissKey:n=>t(ko(n)),remindLater:(n,u)=>t(xo(n,u)),openSettings:()=>e.openNotificationSettings(),navigate:n=>e.notifications.requestNavigation(n)}}const ba=3e4,[_a,Si]=m.createSignal(Date.now());let Fu=0,nu;function ma(){Fu+=1,nu===void 0&&(typeof window>"u"||(Si(Date.now()),nu=setInterval(()=>Si(Date.now()),ba)))}function Aa(){Fu=Math.max(0,Fu-1),!(Fu>0||nu===void 0)&&(clearInterval(nu),nu=void 0)}function Ta(){return ma(),m.onCleanup(Aa),_a}const Sa=1e3,Ca=6e4,Na=60,Ra=60,Ci=24,Ia=30;function Oa(e){const t=Math.max(0,e);if(Math.floor(t/Sa)<Ia)return{key:"now"};const u=Math.floor(t/Ca);if(u<1)return{key:"now"};if(u<Ra)return{key:"{n}m ago",values:{n:u}};const r=Math.floor(u/Na);return r<Ci?{key:"{n}h ago",values:{n:r}}:{key:"{n}d ago",values:{n:Math.floor(r/Ci)}}}const Ni={};function ya(e){let t=Ni[e];if(t)return t;t=Ni[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);t.push(u)}for(let n=0;n<e.length;n++){const u=e.charCodeAt(n);t[u]="%"+("0"+u.toString(16).toUpperCase()).slice(-2)}return t}function Pn(e,t){typeof t!="string"&&(t=Pn.defaultChars);const n=ya(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(u){let r="";for(let i=0,o=u.length;i<o;i+=3){const s=parseInt(u.slice(i+1,i+3),16);if(s<128){r+=n[s];continue}if((s&224)===192&&i+3<o){const c=parseInt(u.slice(i+4,i+6),16);if((c&192)===128){const l=s<<6&1984|c&63;l<128?r+="��":r+=String.fromCharCode(l),i+=3;continue}}if((s&240)===224&&i+6<o){const c=parseInt(u.slice(i+4,i+6),16),l=parseInt(u.slice(i+7,i+9),16);if((c&192)===128&&(l&192)===128){const f=s<<12&61440|c<<6&4032|l&63;f<2048||f>=55296&&f<=57343?r+="���":r+=String.fromCharCode(f),i+=6;continue}}if((s&248)===240&&i+9<o){const c=parseInt(u.slice(i+4,i+6),16),l=parseInt(u.slice(i+7,i+9),16),f=parseInt(u.slice(i+10,i+12),16);if((c&192)===128&&(l&192)===128&&(f&192)===128){let h=s<<18&1835008|c<<12&258048|l<<6&4032|f&63;h<65536||h>1114111?r+="����":(h-=65536,r+=String.fromCharCode(55296+(h>>10),56320+(h&1023))),i+=9;continue}}r+="�"}return r})}Pn.defaultChars=";/?:@&=+$,#";Pn.componentChars="";const Ri={};function xa(e){let t=Ri[e];if(t)return t;t=Ri[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);/^[0-9a-z]$/i.test(u)?t.push(u):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function gu(e,t,n){typeof t!="string"&&(n=t,t=gu.defaultChars),typeof n>"u"&&(n=!0);const u=xa(t);let r="";for(let i=0,o=e.length;i<o;i++){const s=e.charCodeAt(i);if(n&&s===37&&i+2<o&&/^[0-9a-f]{2}$/i.test(e.slice(i+1,i+3))){r+=e.slice(i,i+3),i+=2;continue}if(s<128){r+=u[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&i+1<o){const c=e.charCodeAt(i+1);if(c>=56320&&c<=57343){r+=encodeURIComponent(e[i]+e[i+1]),i++;continue}}r+="%EF%BF%BD";continue}r+=encodeURIComponent(e[i])}return r}gu.defaultChars=";/?:@&=+$,-_.!~*'()#";gu.componentChars="-_.!~*'()";function ni(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function zu(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const Da=/^([a-z0-9.+-]+:)/i,ka=/:[0-9]*$/,La=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,wa=["<",">",'"',"`"," ","\r",`
31
- `," "],va=["{","}","|","\\","^","`"].concat(wa),Ma=["'"].concat(va),Ii=["%","/","?",";","#"].concat(Ma),Oi=["/","?","#"],Fa=255,yi=/^[+a-z0-9A-Z_-]{0,63}$/,Pa=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,xi={javascript:!0,"javascript:":!0},Di={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function ui(e,t){if(e&&e instanceof zu)return e;const n=new zu;return n.parse(e,t),n}zu.prototype.parse=function(e,t){let n,u,r,i=e;if(i=i.trim(),!t&&e.split("#").length===1){const l=La.exec(i);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}let o=Da.exec(i);if(o&&(o=o[0],n=o.toLowerCase(),this.protocol=o,i=i.substr(o.length)),(t||o||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r=i.substr(0,2)==="//",r&&!(o&&xi[o])&&(i=i.substr(2),this.slashes=!0)),!xi[o]&&(r||o&&!Di[o])){let l=-1;for(let g=0;g<Oi.length;g++)u=i.indexOf(Oi[g]),u!==-1&&(l===-1||u<l)&&(l=u);let f,h;l===-1?h=i.lastIndexOf("@"):h=i.lastIndexOf("@",l),h!==-1&&(f=i.slice(0,h),i=i.slice(h+1),this.auth=f),l=-1;for(let g=0;g<Ii.length;g++)u=i.indexOf(Ii[g]),u!==-1&&(l===-1||u<l)&&(l=u);l===-1&&(l=i.length),i[l-1]===":"&&l--;const E=i.slice(0,l);i=i.slice(l),this.parseHost(E),this.hostname=this.hostname||"";const _=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!_){const g=this.hostname.split(/\./);for(let N=0,I=g.length;N<I;N++){const D=g[N];if(D&&!D.match(yi)){let v="";for(let R=0,k=D.length;R<k;R++)D.charCodeAt(R)>127?v+="x":v+=D[R];if(!v.match(yi)){const R=g.slice(0,N),k=g.slice(N+1),O=D.match(Pa);O&&(R.push(O[1]),k.unshift(O[2])),k.length&&(i=k.join(".")+i),this.hostname=R.join(".");break}}}}this.hostname.length>Fa&&(this.hostname=""),_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=i.indexOf("#");s!==-1&&(this.hash=i.substr(s),i=i.slice(0,s));const c=i.indexOf("?");return c!==-1&&(this.search=i.substr(c),i=i.slice(0,c)),i&&(this.pathname=i),Di[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};zu.prototype.parseHost=function(e){let t=ka.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const Ua=Object.freeze(Object.defineProperty({__proto__:null,decode:Pn,encode:gu,format:ni,parse:ui},Symbol.toStringTag,{value:"Module"})),Yo=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ko=/[\0-\x1F\x7F-\x9F]/,Ba=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,ri=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Xo=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,jo=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Ha=Object.freeze(Object.defineProperty({__proto__:null,Any:Yo,Cc:Ko,Cf:Ba,P:ri,S:Xo,Z:jo},Symbol.toStringTag,{value:"Module"})),Ga=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),za=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var fr;const $a=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Va=(fr=String.fromCodePoint)!==null&&fr!==void 0?fr:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Wa(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=$a.get(e))!==null&&t!==void 0?t:e}var et;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(et||(et={}));const qa=32;var dn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(dn||(dn={}));function Ur(e){return e>=et.ZERO&&e<=et.NINE}function Ya(e){return e>=et.UPPER_A&&e<=et.UPPER_F||e>=et.LOWER_A&&e<=et.LOWER_F}function Ka(e){return e>=et.UPPER_A&&e<=et.UPPER_Z||e>=et.LOWER_A&&e<=et.LOWER_Z||Ur(e)}function Xa(e){return e===et.EQUALS||Ka(e)}var Je;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Je||(Je={}));var tn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(tn||(tn={}));class ja{constructor(t,n,u){this.decodeTree=t,this.emitCodePoint=n,this.errors=u,this.state=Je.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=tn.Strict}startEntity(t){this.decodeMode=t,this.state=Je.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Je.EntityStart:return t.charCodeAt(n)===et.NUM?(this.state=Je.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Je.NamedEntity,this.stateNamedEntity(t,n));case Je.NumericStart:return this.stateNumericStart(t,n);case Je.NumericDecimal:return this.stateNumericDecimal(t,n);case Je.NumericHex:return this.stateNumericHex(t,n);case Je.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|qa)===et.LOWER_X?(this.state=Je.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Je.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,u,r){if(n!==u){const i=u-n;this.result=this.result*Math.pow(r,i)+parseInt(t.substr(n,i),r),this.consumed+=i}}stateNumericHex(t,n){const u=n;for(;n<t.length;){const r=t.charCodeAt(n);if(Ur(r)||Ya(r))n+=1;else return this.addToNumericResult(t,u,n,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(t,u,n,16),-1}stateNumericDecimal(t,n){const u=n;for(;n<t.length;){const r=t.charCodeAt(n);if(Ur(r))n+=1;else return this.addToNumericResult(t,u,n,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(t,u,n,10),-1}emitNumericEntity(t,n){var u;if(this.consumed<=n)return(u=this.errors)===null||u===void 0||u.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===et.SEMI)this.consumed+=1;else if(this.decodeMode===tn.Strict)return 0;return this.emitCodePoint(Wa(this.result),this.consumed),this.errors&&(t!==et.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:u}=this;let r=u[this.treeIndex],i=(r&dn.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const o=t.charCodeAt(n);if(this.treeIndex=Za(u,r,this.treeIndex+Math.max(1,i),o),this.treeIndex<0)return this.result===0||this.decodeMode===tn.Attribute&&(i===0||Xa(o))?0:this.emitNotTerminatedNamedEntity();if(r=u[this.treeIndex],i=(r&dn.VALUE_LENGTH)>>14,i!==0){if(o===et.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==tn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:u}=this,r=(u[n]&dn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,r,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,u){const{decodeTree:r}=this;return this.emitCodePoint(n===1?r[t]&~dn.VALUE_LENGTH:r[t+1],u),n===3&&this.emitCodePoint(r[t+2],u),u}end(){var t;switch(this.state){case Je.NamedEntity:return this.result!==0&&(this.decodeMode!==tn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Je.NumericDecimal:return this.emitNumericEntity(0,2);case Je.NumericHex:return this.emitNumericEntity(0,3);case Je.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Je.EntityStart:return 0}}}function Zo(e){let t="";const n=new ja(e,u=>t+=Va(u));return function(r,i){let o=0,s=0;for(;(s=r.indexOf("&",s))>=0;){t+=r.slice(o,s),n.startEntity(i);const l=n.write(r,s+1);if(l<0){o=s+n.end();break}o=s+l,s=l===0?o+1:o}const c=t+r.slice(o);return t="",c}}function Za(e,t,n,u){const r=(t&dn.BRANCH_LENGTH)>>7,i=t&dn.JUMP_TABLE;if(r===0)return i!==0&&u===i?n:-1;if(i){const c=u-i;return c<0||c>=r?-1:e[n+c]-1}let o=n,s=o+r-1;for(;o<=s;){const c=o+s>>>1,l=e[c];if(l<u)o=c+1;else if(l>u)s=c-1;else return e[c+r]}return-1}const Qo=Zo(Ga);Zo(za);function Qa(e,t=tn.Legacy){return Qo(e,t)}function Ja(e){return Qo(e,tn.Strict)}function el(e){return Object.prototype.toString.call(e)}function ii(e){return el(e)==="[object String]"}const tl=Object.prototype.hasOwnProperty;function nl(e,t){return tl.call(e,t)}function ju(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(u){e[u]=n[u]})}}),e}function ul(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function oi(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function ou(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const Jo=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,rl=/&([a-z#][a-z0-9]{1,31});/gi,il=new RegExp(Jo.source+"|"+rl.source,"gi"),ol=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function sl(e,t){if(t.charCodeAt(0)===35&&ol.test(t)){const u=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return oi(u)?ou(u):e}const n=Qa(e);return n!==e?n:e}function cl(e){return e.indexOf("\\")<0?e:e.replace(Jo,"$1")}function Un(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(il,function(t,n,u){return n||sl(t,u)})}const al=/[&<>"]/,ll=/[&<>"]/g,dl={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function fl(e){return dl[e]}function fn(e){return al.test(e)?e.replace(ll,fl):e}const hl=/[.?*+^$[\]\\(){}|-]/g;function pl(e){return e.replace(hl,"\\$&")}function Me(e){switch(e){case 9:case 32:return!0}return!1}function su(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function es(e){return ri.test(e)||Xo.test(e)}function cu(e){return es(ou(e))}function au(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Zu(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}function ki(e){return e===32||e===9||e===10||e===13}function Qu(e){let t=0;for(;t<e.length&&ki(e.charCodeAt(t));t++);let n=e.length-1;for(;n>=t&&ki(e.charCodeAt(n));n--);return e.slice(t,n+1)}const gl={mdurl:Ua,ucmicro:Ha},El=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:ul,asciiTrim:Qu,assign:ju,escapeHtml:fn,escapeRE:pl,fromCodePoint:ou,has:nl,isMdAsciiPunct:au,isPunctChar:es,isPunctCharCode:cu,isSpace:Me,isString:ii,isValidEntityCode:oi,isWhiteSpace:su,lib:gl,normalizeReference:Zu,unescapeAll:Un,unescapeMd:cl},Symbol.toStringTag,{value:"Module"}));function bl(e,t,n){let u,r,i,o;const s=e.posMax,c=e.pos;for(e.pos=t+1,u=1;e.pos<s;){if(i=e.src.charCodeAt(e.pos),i===93&&(u--,u===0)){r=!0;break}if(o=e.pos,e.md.inline.skipToken(e),i===91){if(o===e.pos-1)u++;else if(n)return e.pos=c,-1}}let l=-1;return r&&(l=e.pos),e.pos=c,l}function _l(e,t,n){let u,r=t;const i={ok:!1,pos:0,str:""};if(e.charCodeAt(r)===60){for(r++;r<n;){if(u=e.charCodeAt(r),u===10||u===60)return i;if(u===62)return i.pos=r+1,i.str=Un(e.slice(t+1,r)),i.ok=!0,i;if(u===92&&r+1<n){r+=2;continue}r++}return i}let o=0;for(;r<n&&(u=e.charCodeAt(r),!(u===32||u<32||u===127));){if(u===92&&r+1<n){if(e.charCodeAt(r+1)===32){r++;continue}r+=2;continue}if(u===40&&(o++,o>32))return i;if(u===41){if(o===0)break;o--}r++}return t===r||o!==0||(i.str=Un(e.slice(t,r)),i.pos=r,i.ok=!0),i}function ml(e,t,n,u){let r,i=t;const o={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(u)o.str=u.str,o.marker=u.marker;else{if(i>=n)return o;let s=e.charCodeAt(i);if(s!==34&&s!==39&&s!==40)return o;t++,i++,s===40&&(s=41),o.marker=s}for(;i<n;){if(r=e.charCodeAt(i),r===o.marker)return o.pos=i+1,o.str+=Un(e.slice(t,i)),o.ok=!0,o;if(r===40&&o.marker===41)return o;r===92&&i+1<n&&i++,i++}return o.can_continue=!0,o.str+=Un(e.slice(t,i)),o}const Al=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:_l,parseLinkLabel:bl,parseLinkTitle:ml},Symbol.toStringTag,{value:"Module"})),Yt={};Yt.code_inline=function(e,t,n,u,r){const i=e[t];return"<code"+r.renderAttrs(i)+">"+fn(i.content)+"</code>"};Yt.code_block=function(e,t,n,u,r){const i=e[t];return"<pre"+r.renderAttrs(i)+"><code>"+fn(e[t].content)+`</code></pre>
32
- `};Yt.fence=function(e,t,n,u,r){const i=e[t],o=i.info?Un(i.info).trim():"";let s="",c="";if(o){const f=o.split(/(\s+)/g);s=f[0],c=f.slice(2).join("")}let l;if(n.highlight?l=n.highlight(i.content,s,c)||fn(i.content):l=fn(i.content),l.indexOf("<pre")===0)return l+`
33
- `;if(o){const f=i.attrIndex("class"),h=i.attrs?i.attrs.slice():[];f<0?h.push(["class",n.langPrefix+s]):(h[f]=h[f].slice(),h[f][1]+=" "+n.langPrefix+s);const E={attrs:h};return`<pre><code${r.renderAttrs(E)}>${l}</code></pre>
34
- `}return`<pre><code${r.renderAttrs(i)}>${l}</code></pre>
35
- `};Yt.image=function(e,t,n,u,r){const i=e[t];return i.attrs[i.attrIndex("alt")][1]=r.renderInlineAsText(i.children,n,u),r.renderToken(e,t,n)};Yt.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
36
- `:`<br>
37
- `};Yt.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
38
- `:`<br>
39
- `:`
40
- `};Yt.text=function(e,t){return fn(e[t].content)};Yt.html_block=function(e,t){return e[t].content};Yt.html_inline=function(e,t){return e[t].content};function Hn(){this.rules=ju({},Yt)}Hn.prototype.renderAttrs=function(t){let n,u,r;if(!t.attrs)return"";for(r="",n=0,u=t.attrs.length;n<u;n++)r+=" "+fn(t.attrs[n][0])+'="'+fn(t.attrs[n][1])+'"';return r};Hn.prototype.renderToken=function(t,n,u){const r=t[n];let i="";if(r.hidden)return"";r.block&&r.nesting!==-1&&n&&t[n-1].hidden&&(i+=`
41
- `),i+=(r.nesting===-1?"</":"<")+r.tag,i+=this.renderAttrs(r),r.nesting===0&&u.xhtmlOut&&(i+=" /");let o=!1;if(r.block&&(o=!0,r.nesting===1&&n+1<t.length)){const s=t[n+1];(s.type==="inline"||s.hidden||s.nesting===-1&&s.tag===r.tag)&&(o=!1)}return i+=o?`>
42
- `:">",i};Hn.prototype.renderInline=function(e,t,n){let u="";const r=this.rules;for(let i=0,o=e.length;i<o;i++){const s=e[i].type;typeof r[s]<"u"?u+=r[s](e,i,t,n,this):u+=this.renderToken(e,i,t)}return u};Hn.prototype.renderInlineAsText=function(e,t,n){let u="";for(let r=0,i=e.length;r<i;r++)switch(e[r].type){case"text":u+=e[r].content;break;case"image":u+=this.renderInlineAsText(e[r].children,t,n);break;case"html_inline":case"html_block":u+=e[r].content;break;case"softbreak":case"hardbreak":u+=`
43
- `;break}return u};Hn.prototype.render=function(e,t,n){let u="";const r=this.rules;for(let i=0,o=e.length;i<o;i++){const s=e[i].type;s==="inline"?u+=this.renderInline(e[i].children,t,n):typeof r[s]<"u"?u+=r[s](e,i,t,n,this):u+=this.renderToken(e,i,t,n)}return u};function mt(){this.__rules__=[],this.__cache__=null}mt.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};mt.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(u){t.indexOf(u)<0&&t.push(u)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(u){u.enabled&&(n&&u.alt.indexOf(n)<0||e.__cache__[n].push(u.fn))})})};mt.prototype.at=function(e,t,n){const u=this.__find__(e),r=n||{};if(u===-1)throw new Error("Parser rule not found: "+e);this.__rules__[u].fn=t,this.__rules__[u].alt=r.alt||[],this.__cache__=null};mt.prototype.before=function(e,t,n,u){const r=this.__find__(e),i=u||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null};mt.prototype.after=function(e,t,n,u){const r=this.__find__(e),i=u||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r+1,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null};mt.prototype.push=function(e,t,n){const u=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:u.alt||[]}),this.__cache__=null};mt.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const r=this.__find__(u);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[r].enabled=!0,n.push(u)},this),this.__cache__=null,n};mt.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};mt.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const r=this.__find__(u);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[r].enabled=!1,n.push(u)},this),this.__cache__=null,n};mt.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function Gt(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Gt.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let u=0,r=n.length;u<r;u++)if(n[u][0]===t)return u;return-1};Gt.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};Gt.prototype.attrSet=function(t,n){const u=this.attrIndex(t),r=[t,n];u<0?this.attrPush(r):this.attrs[u]=r};Gt.prototype.attrGet=function(t){const n=this.attrIndex(t);let u=null;return n>=0&&(u=this.attrs[n][1]),u};Gt.prototype.attrJoin=function(t,n){const u=this.attrIndex(t);u<0?this.attrPush([t,n]):this.attrs[u][1]=this.attrs[u][1]+" "+n};function ts(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}ts.prototype.Token=Gt;const Tl=/\r\n?|\n/g,Sl=/\0/g;function Cl(e){let t;t=e.src.replace(Tl,`
44
- `),t=t.replace(Sl,"�"),e.src=t}function Nl(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function Rl(e){const t=e.tokens;for(let n=0,u=t.length;n<u;n++){const r=t[n];r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}function Il(e){return/^<a[>\s]/i.test(e)}function Ol(e){return/^<\/a\s*>/i.test(e)}function yl(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,u=t.length;n<u;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;const r=t[n].children,i=[];let o=0;for(let s=r.length-1;s>=0;s--){const c=r[s];if(c.type==="link_close"){for(s--;r[s].level!==c.level&&r[s].type!=="link_open";)s--;continue}if(c.type==="html_inline"&&(Il(c.content)&&o>0&&o--,Ol(c.content)&&o++),!(o>0)&&c.type==="text"&&e.md.linkify.test(c.content)){const l=c.content;let f=e.md.linkify.match(l);const h=[];let E=c.level,_=0;f.length>0&&f[0].index===0&&s>0&&r[s-1].type==="text_special"&&(f=f.slice(1));for(let g=0;g<f.length;g++){const N=f[g].url,I=e.md.normalizeLink(N);if(!e.md.validateLink(I))continue;let D=f[g].text;f[g].schema?f[g].schema==="mailto:"&&!/^mailto:/i.test(D)?D=e.md.normalizeLinkText("mailto:"+D).replace(/^mailto:/,""):D=e.md.normalizeLinkText(D):D=e.md.normalizeLinkText("http://"+D).replace(/^http:\/\//,"");const v=f[g].index;if(v>_){const L=new e.Token("text","",0);L.content=l.slice(_,v),L.level=E,h.push(L)}const R=new e.Token("link_open","a",1);R.attrs=[["href",I]],R.level=E++,R.markup="linkify",R.info="auto",h.push(R);const k=new e.Token("text","",0);k.content=D,k.level=E,h.push(k);const O=new e.Token("link_close","a",-1);O.level=--E,O.markup="linkify",O.info="auto",h.push(O),_=f[g].lastIndex}if(_<l.length){const g=new e.Token("text","",0);g.content=l.slice(_),g.level=E,h.push(g)}i.push({index:s,nodes:h})}}if(i.length>0){let s=r.length;for(const h of i)s+=h.nodes.length-1;const c=new Array(s);let l=0,f=0;i.reverse();for(let h=0;h<r.length;h++){const E=i[l];if((E==null?void 0:E.index)===h){for(const _ of E.nodes)c[f++]=_;l++}else c[f++]=r[h]}t[n].children=c}}}const ns=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,xl=/\((c|tm|r)\)/i,Dl=/\((c|tm|r)\)/ig,kl={c:"©",r:"®",tm:"™"};function Ll(e,t){return kl[t.toLowerCase()]}function wl(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&(u.content=u.content.replace(Dl,Ll)),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function vl(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&ns.test(u.content)&&(u.content=u.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function Ml(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(xl.test(e.tokens[t].content)&&wl(e.tokens[t].children),ns.test(e.tokens[t].content)&&vl(e.tokens[t].children))}const Fl=/['"]/,Li=/['"]/g,wi="’",Pl=1e3;function vi(e,t,n){for(;e.length>n;){const u=e.pop();u.isSingleQuote?t.single=u.prevSameQuoteIdx:t.double=u.prevSameQuoteIdx}}function yu(e,t,n,u){e[t]||(e[t]=[]),e[t].push({pos:n,ch:u})}function Ul(e,t){let n="",u=0;t.sort((r,i)=>r.pos-i.pos);for(let r=0;r<t.length;r++){const i=t[r];n+=e.slice(u,i.pos)+i.ch,u=i.pos+1}return n+e.slice(u)}function Bl(e,t){let n;const u=[],r={single:-1,double:-1},i={};for(let o=0;o<e.length;o++){const s=e[o],c=e[o].level;for(n=u.length-1;n>=0&&!(u[n].level<=c);n--);if(vi(u,r,n+1),s.type!=="text")continue;const l=s.content;let f=0;const h=l.length;e:for(;f<h;){Li.lastIndex=f;const E=Li.exec(l);if(!E)break;let _=!0,g=!0;f=E.index+1;const N=E[0]==="'";let I=32;if(E.index-1>=0)I=l.charCodeAt(E.index-1);else for(n=o-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){I=e[n].content.charCodeAt(e[n].content.length-1);break}let D=32;if(f<h)D=l.charCodeAt(f);else for(n=o+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){D=e[n].content.charCodeAt(0);break}const v=au(I)||cu(I),R=au(D)||cu(D),k=su(I),O=su(D);if(O?_=!1:R&&(k||v||(_=!1)),k?g=!1:v&&(O||R||(g=!1)),D===34&&E[0]==='"'&&I>=48&&I<=57&&(g=_=!1),_&&g&&(_=v,g=R),!_&&!g){N&&yu(i,o,E.index,wi);continue}if(g&&(n=N?r.single:r.double,n>=0&&u[n].level===c)){const L=u[n];let P,Y;N?(P=t.md.options.quotes[2],Y=t.md.options.quotes[3]):(P=t.md.options.quotes[0],Y=t.md.options.quotes[1]),yu(i,o,E.index,Y),yu(i,L.tokenIdx,L.contentPos,P),vi(u,r,n);continue e}if(_){if(u.length>=Pl)return;u.push({tokenIdx:o,contentPos:E.index,isSingleQuote:N,level:c,prevSameQuoteIdx:N?r.single:r.double}),N?r.single=u.length-1:r.double=u.length-1}else g&&N&&yu(i,o,E.index,wi)}}Object.keys(i).forEach(function(o){e[o].content=Ul(e[o].content,i[o])})}function Hl(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!Fl.test(e.tokens[t].content)||Bl(e.tokens[t].children,e)}function Gl(e){let t,n;const u=e.tokens,r=u.length;for(let i=0;i<r;i++){if(u[i].type!=="inline")continue;const o=u[i].children,s=o.length;for(t=0;t<s;t++)o[t].type==="text_special"&&(o[t].type="text");for(t=n=0;t<s;t++)o[t].type==="text"&&t+1<s&&o[t+1].type==="text"?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}}const hr=[["normalize",Cl],["block",Nl],["inline",Rl],["linkify",yl],["replacements",Ml],["smartquotes",Hl],["text_join",Gl]];function si(){this.ruler=new mt;for(let e=0;e<hr.length;e++)this.ruler.push(hr[e][0],hr[e][1])}si.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,u=t.length;n<u;n++)t[n](e)};si.prototype.State=ts;function Kt(e,t,n,u){this.src=e,this.md=t,this.env=n,this.tokens=u,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const r=this.src;for(let i=0,o=0,s=0,c=0,l=r.length,f=!1;o<l;o++){const h=r.charCodeAt(o);if(!f)if(Me(h)){s++,h===9?c+=4-c%4:c++;continue}else f=!0;(h===10||o===l-1)&&(h!==10&&o++,this.bMarks.push(i),this.eMarks.push(o),this.tShift.push(s),this.sCount.push(c),this.bsCount.push(0),f=!1,s=0,c=0,i=o+1)}this.bMarks.push(r.length),this.eMarks.push(r.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Kt.prototype.push=function(e,t,n){const u=new Gt(e,t,n);return u.block=!0,n<0&&this.level--,u.level=this.level,n>0&&this.level++,this.tokens.push(u),u};Kt.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};Kt.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};Kt.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const u=this.src.charCodeAt(t);if(!Me(u))break}return t};Kt.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!Me(this.src.charCodeAt(--t)))return t+1;return t};Kt.prototype.skipChars=function(t,n){for(let u=this.src.length;t<u&&this.src.charCodeAt(t)===n;t++);return t};Kt.prototype.skipCharsBack=function(t,n,u){if(t<=u)return t;for(;t>u;)if(n!==this.src.charCodeAt(--t))return t+1;return t};Kt.prototype.getLines=function(t,n,u,r){if(t>=n)return"";const i=new Array(n-t);for(let o=0,s=t;s<n;s++,o++){let c=0;const l=this.bMarks[s];let f=l,h;for(s+1<n||r?h=this.eMarks[s]+1:h=this.eMarks[s];f<h&&c<u;){const E=this.src.charCodeAt(f);if(Me(E))E===9?c+=4-(c+this.bsCount[s])%4:c++;else if(f-l<this.tShift[s])c++;else break;f++}c>u?i[o]=new Array(c-u+1).join(" ")+this.src.slice(f,h):i[o]=this.src.slice(f,h)}return i.join("")};Kt.prototype.Token=Gt;const zl=65536;function pr(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];return e.src.slice(n,u)}function Mi(e){const t=[],n=e.length;let u=0,r=e.charCodeAt(u),i=!1,o=0,s="";for(;u<n;)r===124&&(i?(s+=e.substring(o,u-1),o=u):(t.push(s+e.substring(o,u)),s="",o=u+1)),i=r===92,u++,r=e.charCodeAt(u);return t.push(s+e.substring(o)),t}function $l(e,t,n,u){if(t+2>n)return!1;let r=t+1;if(e.sCount[r]<e.blkIndent||e.sCount[r]-e.blkIndent>=4)return!1;let i=e.bMarks[r]+e.tShift[r];if(i>=e.eMarks[r])return!1;const o=e.src.charCodeAt(i++);if(o!==124&&o!==45&&o!==58||i>=e.eMarks[r])return!1;const s=e.src.charCodeAt(i++);if(s!==124&&s!==45&&s!==58&&!Me(s)||o===45&&Me(s))return!1;for(;i<e.eMarks[r];){const k=e.src.charCodeAt(i);if(k!==124&&k!==45&&k!==58&&!Me(k))return!1;i++}let c=pr(e,t+1),l=c.split("|");const f=[];for(let k=0;k<l.length;k++){const O=l[k].trim();if(!O){if(k===0||k===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(O))return!1;O.charCodeAt(O.length-1)===58?f.push(O.charCodeAt(0)===58?"center":"right"):O.charCodeAt(0)===58?f.push("left"):f.push("")}if(c=pr(e,t).trim(),c.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;l=Mi(c),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop();const h=l.length;if(h===0||h!==f.length)return!1;if(u)return!0;const E=e.parentType;e.parentType="table";const _=e.md.block.ruler.getRules("blockquote"),g=e.push("table_open","table",1),N=[t,0];g.map=N;const I=e.push("thead_open","thead",1);I.map=[t,t+1];const D=e.push("tr_open","tr",1);D.map=[t,t+1];for(let k=0;k<l.length;k++){const O=e.push("th_open","th",1);f[k]&&(O.attrs=[["style","text-align:"+f[k]]]);const L=e.push("inline","",0);L.content=l[k].trim(),L.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let v,R=0;for(r=t+2;r<n&&!(e.sCount[r]<e.blkIndent);r++){let k=!1;for(let L=0,P=_.length;L<P;L++)if(_[L](e,r,n,!0)){k=!0;break}if(k||(c=pr(e,r).trim(),!c)||e.sCount[r]-e.blkIndent>=4||(l=Mi(c),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop(),R+=h-l.length,R>zl))break;if(r===t+2){const L=e.push("tbody_open","tbody",1);L.map=v=[t+2,0]}const O=e.push("tr_open","tr",1);O.map=[r,r+1];for(let L=0;L<h;L++){const P=e.push("td_open","td",1);f[L]&&(P.attrs=[["style","text-align:"+f[L]]]);const Y=e.push("inline","",0);Y.content=l[L]?l[L].trim():"",Y.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return v&&(e.push("tbody_close","tbody",-1),v[1]=r),e.push("table_close","table",-1),N[1]=r,e.parentType=E,e.line=r,!0}function Vl(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let u=t+1,r=u;for(;u<n;){if(e.isEmpty(u)){u++;continue}if(e.sCount[u]-e.blkIndent>=4){u++,r=u;continue}break}e.line=r;const i=e.push("code_block","code",0);return i.content=e.getLines(t,r,4+e.blkIndent,!1)+`
45
- `,i.map=[t,e.line],!0}function Wl(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||r+3>i)return!1;const o=e.src.charCodeAt(r);if(o!==126&&o!==96)return!1;let s=r;r=e.skipChars(r,o);let c=r-s;if(c<3)return!1;const l=e.src.slice(s,r),f=e.src.slice(r,i);if(o===96&&f.indexOf(String.fromCharCode(o))>=0)return!1;if(u)return!0;let h=t,E=!1;for(;h++,!(h>=n||(r=s=e.bMarks[h]+e.tShift[h],i=e.eMarks[h],r<i&&e.sCount[h]<e.blkIndent));)if(e.src.charCodeAt(r)===o&&!(e.sCount[h]-e.blkIndent>=4)&&(r=e.skipChars(r,o),!(r-s<c)&&(r=e.skipSpaces(r),!(r<i)))){E=!0;break}c=e.sCount[t],e.line=h+(E?1:0);const _=e.push("fence","code",0);return _.info=f,_.content=e.getLines(t+1,h,c,!0),_.markup=l,_.map=[t,e.line],!0}function ql(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];const o=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==62)return!1;if(u)return!0;const s=[],c=[],l=[],f=[],h=e.md.block.ruler.getRules("blockquote"),E=e.parentType;e.parentType="blockquote";let _=!1,g;for(g=t;g<n;g++){const R=e.sCount[g]<e.blkIndent;if(r=e.bMarks[g]+e.tShift[g],i=e.eMarks[g],r>=i)break;if(e.src.charCodeAt(r++)===62&&!R){let O=e.sCount[g]+1,L,P;e.src.charCodeAt(r)===32?(r++,O++,P=!1,L=!0):e.src.charCodeAt(r)===9?(L=!0,(e.bsCount[g]+O)%4===3?(r++,O++,P=!1):P=!0):L=!1;let Y=O;for(s.push(e.bMarks[g]),e.bMarks[g]=r;r<i;){const Q=e.src.charCodeAt(r);if(Me(Q))Q===9?Y+=4-(Y+e.bsCount[g]+(P?1:0))%4:Y++;else break;r++}_=r>=i,c.push(e.bsCount[g]),e.bsCount[g]=e.sCount[g]+1+(L?1:0),l.push(e.sCount[g]),e.sCount[g]=Y-O,f.push(e.tShift[g]),e.tShift[g]=r-e.bMarks[g];continue}if(_)break;let k=!1;for(let O=0,L=h.length;O<L;O++)if(h[O](e,g,n,!0)){k=!0;break}if(k){e.lineMax=g,e.blkIndent!==0&&(s.push(e.bMarks[g]),c.push(e.bsCount[g]),f.push(e.tShift[g]),l.push(e.sCount[g]),e.sCount[g]-=e.blkIndent);break}s.push(e.bMarks[g]),c.push(e.bsCount[g]),f.push(e.tShift[g]),l.push(e.sCount[g]),e.sCount[g]=-1}const N=e.blkIndent;e.blkIndent=0;const I=e.push("blockquote_open","blockquote",1);I.markup=">";const D=[t,0];I.map=D,e.md.block.tokenize(e,t,g);const v=e.push("blockquote_close","blockquote",-1);v.markup=">",e.lineMax=o,e.parentType=E,D[1]=e.line;for(let R=0;R<f.length;R++)e.bMarks[R+t]=s[R],e.tShift[R+t]=f[R],e.sCount[R+t]=l[R],e.bsCount[R+t]=c[R];return e.blkIndent=N,!0}function Yl(e,t,n,u){const r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.bMarks[t]+e.tShift[t];const o=e.src.charCodeAt(i++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;i<r;){const l=e.src.charCodeAt(i++);if(l!==o&&!Me(l))return!1;l===o&&s++}if(s<3)return!1;if(u)return!0;e.line=t+1;const c=e.push("hr","hr",0);return c.map=[t,e.line],c.markup=Array(s+1).join(String.fromCharCode(o)),!0}function Fi(e,t){const n=e.eMarks[t];let u=e.bMarks[t]+e.tShift[t];const r=e.src.charCodeAt(u++);if(r!==42&&r!==45&&r!==43)return-1;if(u<n){const i=e.src.charCodeAt(u);if(!Me(i))return-1}return u}function Pi(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];let r=n;if(r+1>=u)return-1;let i=e.src.charCodeAt(r++);if(i<48||i>57)return-1;for(;;){if(r>=u)return-1;if(i=e.src.charCodeAt(r++),i>=48&&i<=57){if(r-n>=10)return-1;continue}if(i===41||i===46)break;return-1}return r<u&&(i=e.src.charCodeAt(r),!Me(i))?-1:r}function Kl(e,t){const n=e.level+2;for(let u=t+2,r=e.tokens.length-2;u<r;u++)e.tokens[u].level===n&&e.tokens[u].type==="paragraph_open"&&(e.tokens[u+2].hidden=!0,e.tokens[u].hidden=!0,u+=2)}function Xl(e,t,n,u){let r,i,o,s,c=t,l=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let f=!1;u&&e.parentType==="paragraph"&&e.sCount[c]>=e.blkIndent&&(f=!0);let h,E,_;if((_=Pi(e,c))>=0){if(h=!0,o=e.bMarks[c]+e.tShift[c],E=Number(e.src.slice(o,_-1)),f&&E!==1)return!1}else if((_=Fi(e,c))>=0)h=!1;else return!1;if(f&&e.skipSpaces(_)>=e.eMarks[c])return!1;if(u)return!0;const g=e.src.charCodeAt(_-1),N=e.tokens.length;h?(s=e.push("ordered_list_open","ol",1),E!==1&&(s.attrs=[["start",E]])):s=e.push("bullet_list_open","ul",1);const I=[c,0];s.map=I,s.markup=String.fromCharCode(g);let D=!1;const v=e.md.block.ruler.getRules("list"),R=e.parentType;for(e.parentType="list";c<n;){i=_,r=e.eMarks[c];const k=e.sCount[c]+_-(e.bMarks[c]+e.tShift[c]);let O=k;for(;i<r;){const j=e.src.charCodeAt(i);if(j===9)O+=4-(O+e.bsCount[c])%4;else if(j===32)O++;else break;i++}const L=i;let P;L>=r?P=1:P=O-k,P>4&&(P=1);const Y=k+P;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(g);const Q=[c,0];s.map=Q,h&&(s.info=e.src.slice(o,_-1));const ce=e.tight,oe=e.tShift[c],Re=e.sCount[c],H=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=Y,e.tight=!0,e.tShift[c]=L-e.bMarks[c],e.sCount[c]=O,L>=r&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n,!0),(!e.tight||D)&&(l=!1),D=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=H,e.tShift[c]=oe,e.sCount[c]=Re,e.tight=ce,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(g),c=e.line,Q[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let X=!1;for(let j=0,Ee=v.length;j<Ee;j++)if(v[j](e,c,n,!0)){X=!0;break}if(X)break;if(h){if(_=Pi(e,c),_<0)break;o=e.bMarks[c]+e.tShift[c]}else if(_=Fi(e,c),_<0)break;if(g!==e.src.charCodeAt(_-1))break}return h?s=e.push("ordered_list_close","ol",-1):s=e.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(g),I[1]=c,e.line=c,e.parentType=R,l&&Kl(e,N),!0}function jl(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],o=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==91)return!1;function s(v){const R=e.lineMax;if(v>=R||e.isEmpty(v))return null;let k=!1;if(e.sCount[v]-e.blkIndent>3&&(k=!0),e.sCount[v]<0&&(k=!0),!k){const P=e.md.block.ruler.getRules("reference"),Y=e.parentType;e.parentType="reference";let Q=!1;for(let ce=0,oe=P.length;ce<oe;ce++)if(P[ce](e,v,R,!0)){Q=!0;break}if(e.parentType=Y,Q)return null}const O=e.bMarks[v]+e.tShift[v],L=e.eMarks[v];return e.src.slice(O,L+1)}let c=e.src.slice(r,i+1);i=c.length;let l=-1;for(r=1;r<i;r++){const v=c.charCodeAt(r);if(v===91)return!1;if(v===93){l=r;break}else if(v===10){const R=s(o);R!==null&&(c+=R,i=c.length,o++)}else if(v===92&&(r++,r<i&&c.charCodeAt(r)===10)){const R=s(o);R!==null&&(c+=R,i=c.length,o++)}}if(l<0||c.charCodeAt(l+1)!==58)return!1;for(r=l+2;r<i;r++){const v=c.charCodeAt(r);if(v===10){const R=s(o);R!==null&&(c+=R,i=c.length,o++)}else if(!Me(v))break}const f=e.md.helpers.parseLinkDestination(c,r,i);if(!f.ok)return!1;const h=e.md.normalizeLink(f.str);if(!e.md.validateLink(h))return!1;r=f.pos;const E=r,_=o,g=r;for(;r<i;r++){const v=c.charCodeAt(r);if(v===10){const R=s(o);R!==null&&(c+=R,i=c.length,o++)}else if(!Me(v))break}let N=e.md.helpers.parseLinkTitle(c,r,i);for(;N.can_continue;){const v=s(o);if(v===null)break;c+=v,r=i,i=c.length,o++,N=e.md.helpers.parseLinkTitle(c,r,i,N)}let I;for(r<i&&g!==r&&N.ok?(I=N.str,r=N.pos):(I="",r=E,o=_);r<i;){const v=c.charCodeAt(r);if(!Me(v))break;r++}if(r<i&&c.charCodeAt(r)!==10&&I)for(I="",r=E,o=_;r<i;){const v=c.charCodeAt(r);if(!Me(v))break;r++}if(r<i&&c.charCodeAt(r)!==10)return!1;const D=Zu(c.slice(1,l));return D?(u||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[D]>"u"&&(e.env.references[D]={title:I,href:h}),e.line=o),!0):!1}const Zl=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ql="[a-zA-Z_:][a-zA-Z0-9:._-]*",Jl="[^\"'=<>`\\x00-\\x20]+",e0="'[^']*'",t0='"[^"]*"',n0="(?:"+Jl+"|"+e0+"|"+t0+")",u0="(?:\\s+"+Ql+"(?:\\s*=\\s*"+n0+")?)",us="<[A-Za-z][A-Za-z0-9\\-]*"+u0+"*\\s*\\/?>",rs="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",r0="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",i0="<[?][\\s\\S]*?[?]>",o0="<![A-Za-z][^>]*>",s0="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",c0=new RegExp("^(?:"+us+"|"+rs+"|"+r0+"|"+i0+"|"+o0+"|"+s0+")"),a0=new RegExp("^(?:"+us+"|"+rs+")"),_n=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Zl.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(a0.source+"\\s*$"),/^$/,!1]];function l0(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(r)!==60)return!1;let o=e.src.slice(r,i),s=0;for(;s<_n.length&&!_n[s][0].test(o);s++);if(s===_n.length)return!1;if(u)return _n[s][2];let c=t+1;const l=_n[s][1].test("");if(!_n[s][1].test(o)){for(;c<n&&!(e.sCount[c]<e.blkIndent&&(l||!e.isEmpty(c)));c++)if(r=e.bMarks[c]+e.tShift[c],i=e.eMarks[c],o=e.src.slice(r,i),_n[s][1].test(o)){o.length!==0&&c++;break}}e.line=c;const f=e.push("html_block","",0);return f.map=[t,c],f.content=e.getLines(t,c,e.blkIndent,!0),!0}function d0(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(r);if(o!==35||r>=i)return!1;let s=1;for(o=e.src.charCodeAt(++r);o===35&&r<i&&s<=6;)s++,o=e.src.charCodeAt(++r);if(s>6||r<i&&!Me(o))return!1;if(u)return!0;i=e.skipSpacesBack(i,r);const c=e.skipCharsBack(i,35,r);c>r&&Me(e.src.charCodeAt(c-1))&&(i=c),e.line=t+1;const l=e.push("heading_open","h"+String(s),1);l.markup="########".slice(0,s),l.map=[t,e.line];const f=e.push("inline","",0);f.content=Qu(e.src.slice(r,i)),f.map=[t,e.line],f.children=[];const h=e.push("heading_close","h"+String(s),-1);return h.markup="########".slice(0,s),!0}function f0(e,t,n){const u=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const r=e.parentType;e.parentType="paragraph";let i=0,o,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let _=e.bMarks[s]+e.tShift[s];const g=e.eMarks[s];if(_<g&&(o=e.src.charCodeAt(_),(o===45||o===61)&&(_=e.skipChars(_,o),_=e.skipSpaces(_),_>=g))){i=o===61?1:2;break}}if(e.sCount[s]<0)continue;let E=!1;for(let _=0,g=u.length;_<g;_++)if(u[_](e,s,n,!0)){E=!0;break}if(E)break}if(!i)return e.parentType=r,!1;const c=Qu(e.getLines(t,s,e.blkIndent,!1));e.line=s+1;const l=e.push("heading_open","h"+String(i),1);l.markup=String.fromCharCode(o),l.map=[t,e.line];const f=e.push("inline","",0);f.content=c,f.map=[t,e.line-1],f.children=[];const h=e.push("heading_close","h"+String(i),-1);return h.markup=String.fromCharCode(o),e.parentType=r,!0}function h0(e,t,n){const u=e.md.block.ruler.getRules("paragraph"),r=e.parentType;let i=t+1;for(e.parentType="paragraph";i<n&&!e.isEmpty(i);i++){if(e.sCount[i]-e.blkIndent>3||e.sCount[i]<0)continue;let l=!1;for(let f=0,h=u.length;f<h;f++)if(u[f](e,i,n,!0)){l=!0;break}if(l)break}const o=Qu(e.getLines(t,i,e.blkIndent,!1));e.line=i;const s=e.push("paragraph_open","p",1);s.map=[t,e.line];const c=e.push("inline","",0);return c.content=o,c.map=[t,e.line],c.children=[],e.push("paragraph_close","p",-1),e.parentType=r,!0}const xu=[["table",$l,["paragraph","reference"]],["code",Vl],["fence",Wl,["paragraph","reference","blockquote","list"]],["blockquote",ql,["paragraph","reference","blockquote","list"]],["hr",Yl,["paragraph","reference","blockquote","list"]],["list",Xl,["paragraph","reference","blockquote"]],["reference",jl],["html_block",l0,["paragraph","reference","blockquote"]],["heading",d0,["paragraph","reference","blockquote"]],["lheading",f0],["paragraph",h0]];function Ju(){this.ruler=new mt;for(let e=0;e<xu.length;e++)this.ruler.push(xu[e][0],xu[e][1],{alt:(xu[e][2]||[]).slice()})}Ju.prototype.tokenize=function(e,t,n){const u=this.ruler.getRules(""),r=u.length,i=e.md.options.maxNesting;let o=t,s=!1;for(;o<n&&(e.line=o=e.skipEmptyLines(o),!(o>=n||e.sCount[o]<e.blkIndent));){if(e.level>=i){e.line=n;break}const c=e.line;let l=!1;for(let f=0;f<r;f++)if(l=u[f](e,o,n,!1),l){if(c>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),o=e.line,o<n&&e.isEmpty(o)&&(s=!0,o++,e.line=o)}};Ju.prototype.parse=function(e,t,n,u){if(!e)return;const r=new this.State(e,t,n,u);this.tokenize(r,r.line,r.lineMax)};Ju.prototype.State=Kt;function Eu(e,t,n,u){this.src=e,this.env=n,this.md=t,this.tokens=u,this.tokens_meta=Array(u.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Eu.prototype.pushPending=function(){const e=new Gt("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};Eu.prototype.push=function(e,t,n){this.pending&&this.pushPending();const u=new Gt(e,t,n);let r=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),u.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(u),this.tokens_meta.push(r),u};Eu.prototype.scanDelims=function(e,t){const n=this.posMax,u=this.src.charCodeAt(e);let r;if(e===0)r=32;else if(e===1)r=this.src.charCodeAt(0),(r&63488)===55296&&(r=65533);else if(r=this.src.charCodeAt(e-1),(r&64512)===56320){const I=this.src.charCodeAt(e-2);r=(I&64512)===55296?65536+(I-55296<<10)+(r-56320):65533}else(r&64512)===55296&&(r=65533);let i=e;for(;i<n&&this.src.charCodeAt(i)===u;)i++;const o=i-e;let s=i<n?this.src.charCodeAt(i):32;if((s&64512)===55296){const I=this.src.charCodeAt(i+1);s=(I&64512)===56320?65536+(s-55296<<10)+(I-56320):65533}else(s&64512)===56320&&(s=65533);const c=au(r)||cu(r),l=au(s)||cu(s),f=su(r),h=su(s),E=!h&&(!l||f||c),_=!f&&(!c||h||l);return{can_open:E&&(t||!_||c),can_close:_&&(t||!E||l),length:o}};Eu.prototype.Token=Gt;function p0(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function g0(e,t){let n=e.pos;for(;n<e.posMax&&!p0(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}function E0(e){return e>=65&&e<=90||e>=97&&e<=122}function b0(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===45||e===46}function _0(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,u=e.posMax;if(n+3>u||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const r=n-Math.min(10,e.pending.length,n);let i=n;for(;i>r&&b0(e.src.charCodeAt(i-1));)i--;if(i===n||!E0(e.src.charCodeAt(i)))return!1;const o=n-i,s=e.md.linkify.matchAtStart(e.src.slice(i));if(!s)return!1;let c=s.url;if(c.length<=o)return!1;let l=c.length;for(;l>0&&c.charCodeAt(l-1)===42;)l--;l!==c.length&&(c=c.slice(0,l));const f=e.md.normalizeLink(c);if(!e.md.validateLink(f))return!1;if(!t){e.pending=e.pending.slice(0,-o);const h=e.push("link_open","a",1);h.attrs=[["href",f]],h.markup="linkify",h.info="auto";const E=e.push("text","",0);E.content=e.md.normalizeLinkText(c);const _=e.push("link_close","a",-1);_.markup="linkify",_.info="auto"}return e.pos+=c.length-o,!0}function m0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const u=e.pending.length-1,r=e.posMax;if(!t)if(u>=0&&e.pending.charCodeAt(u)===32)if(u>=1&&e.pending.charCodeAt(u-1)===32){let i=u-1;for(;i>=1&&e.pending.charCodeAt(i-1)===32;)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<r&&Me(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const ci=[];for(let e=0;e<256;e++)ci.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){ci[e.charCodeAt(0)]=1});function A0(e,t){let n=e.pos;const u=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=u))return!1;let r=e.src.charCodeAt(n);if(r===10){for(t||e.push("hardbreak","br",0),n++;n<u&&(r=e.src.charCodeAt(n),!!Me(r));)n++;return e.pos=n,!0}if(r===32){if(!t){const s=e.push("text_special","",0);s.content="\\",s.markup="\\",s.info="escape"}return e.pos=n,!0}let i=e.src[n];if(r>=55296&&r<=56319&&n+1<u){const s=e.src.charCodeAt(n+1);s>=56320&&s<=57343&&(i+=e.src[n+1],n++)}const o="\\"+i;if(!t){const s=e.push("text_special","",0);r<256&&ci[r]!==0?s.content=i:s.content=o,s.markup=o,s.info="escape"}return e.pos=n+1,!0}function T0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const r=n;n++;const i=e.posMax;for(;n<i&&e.src.charCodeAt(n)===96;)n++;const o=e.src.slice(r,n),s=o.length;if(e.backticksScanned&&(e.backticks[s]||0)<=r)return t||(e.pending+=o),e.pos+=s,!0;let c=n,l;for(;(l=e.src.indexOf("`",c))!==-1;){for(c=l+1;c<i&&e.src.charCodeAt(c)===96;)c++;const f=c-l;if(f===s){if(!t){const h=e.push("code_inline","code",0);h.markup=o,h.content=e.src.slice(n,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=c,!0}e.backticks[f]=l}return e.backticksScanned=!0,t||(e.pending+=o),e.pos+=s,!0}function S0(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==126)return!1;const r=e.scanDelims(e.pos,!0);let i=r.length;const o=String.fromCharCode(u);if(i<2)return!1;let s;i%2&&(s=e.push("text","",0),s.content=o,i--);for(let c=0;c<i;c+=2)s=e.push("text","",0),s.content=o+o,e.delimiters.push({marker:u,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}function Ui(e,t){let n;const u=[],r=t.length;for(let i=0;i<r;i++){const o=t[i];if(o.marker!==126||o.end===-1)continue;const s=t[o.end];n=e.tokens[o.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[s.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[s.token-1].type==="text"&&e.tokens[s.token-1].content==="~"&&u.push(s.token-1)}for(;u.length;){const i=u.pop();let o=i+1;for(;o<e.tokens.length&&e.tokens[o].type==="s_close";)o++;o--,i!==o&&(n=e.tokens[o],e.tokens[o]=e.tokens[i],e.tokens[i]=n)}}function C0(e){const t=e.tokens_meta,n=e.tokens_meta.length;Ui(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&Ui(e,t[u].delimiters)}const is={tokenize:S0,postProcess:C0};function N0(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==95&&u!==42)return!1;const r=e.scanDelims(e.pos,u===42);for(let i=0;i<r.length;i++){const o=e.push("text","",0);o.content=String.fromCharCode(u),e.delimiters.push({marker:u,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close})}return e.pos+=r.length,!0}function Bi(e,t){const n=t.length;for(let u=n-1;u>=0;u--){const r=t[u];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;const i=t[r.end],o=u>0&&t[u-1].end===r.end+1&&t[u-1].marker===r.marker&&t[u-1].token===r.token-1&&t[r.end+1].token===i.token+1,s=String.fromCharCode(r.marker),c=e.tokens[r.token];c.type=o?"strong_open":"em_open",c.tag=o?"strong":"em",c.nesting=1,c.markup=o?s+s:s,c.content="";const l=e.tokens[i.token];l.type=o?"strong_close":"em_close",l.tag=o?"strong":"em",l.nesting=-1,l.markup=o?s+s:s,l.content="",o&&(e.tokens[t[u-1].token].content="",e.tokens[t[r.end+1].token].content="",u--)}}function R0(e){const t=e.tokens_meta,n=e.tokens_meta.length;Bi(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&Bi(e,t[u].delimiters)}const os={tokenize:N0,postProcess:R0};function I0(e,t){let n,u,r,i,o="",s="",c=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const f=e.pos,h=e.posMax,E=e.pos+1,_=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(_<0)return!1;let g=_+1;if(g<h&&e.src.charCodeAt(g)===40){for(l=!1,g++;g<h&&(n=e.src.charCodeAt(g),!(!Me(n)&&n!==10));g++);if(g>=h)return!1;if(c=g,r=e.md.helpers.parseLinkDestination(e.src,g,e.posMax),r.ok){for(o=e.md.normalizeLink(r.str),e.md.validateLink(o)?g=r.pos:o="",c=g;g<h&&(n=e.src.charCodeAt(g),!(!Me(n)&&n!==10));g++);if(r=e.md.helpers.parseLinkTitle(e.src,g,e.posMax),g<h&&c!==g&&r.ok)for(s=r.str,g=r.pos;g<h&&(n=e.src.charCodeAt(g),!(!Me(n)&&n!==10));g++);}(g>=h||e.src.charCodeAt(g)!==41)&&(l=!0),g++}if(l){if(typeof e.env.references>"u")return!1;if(g<h&&e.src.charCodeAt(g)===91?(c=g+1,g=e.md.helpers.parseLinkLabel(e,g),g>=0?u=e.src.slice(c,g++):g=_+1):g=_+1,u||(u=e.src.slice(E,_)),i=e.env.references[Zu(u)],!i)return e.pos=f,!1;o=i.href,s=i.title}if(!t){e.pos=E,e.posMax=_;const N=e.push("link_open","a",1),I=[["href",o]];N.attrs=I,s&&I.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=g,e.posMax=h,!0}function O0(e,t){let n,u,r,i,o,s,c,l,f="";const h=e.pos,E=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const _=e.pos+2,g=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(g<0)return!1;if(i=g+1,i<E&&e.src.charCodeAt(i)===40){for(i++;i<E&&(n=e.src.charCodeAt(i),!(!Me(n)&&n!==10));i++);if(i>=E)return!1;for(l=i,s=e.md.helpers.parseLinkDestination(e.src,i,e.posMax),s.ok&&(f=e.md.normalizeLink(s.str),e.md.validateLink(f)?i=s.pos:f=""),l=i;i<E&&(n=e.src.charCodeAt(i),!(!Me(n)&&n!==10));i++);if(s=e.md.helpers.parseLinkTitle(e.src,i,e.posMax),i<E&&l!==i&&s.ok)for(c=s.str,i=s.pos;i<E&&(n=e.src.charCodeAt(i),!(!Me(n)&&n!==10));i++);else c="";if(i>=E||e.src.charCodeAt(i)!==41)return e.pos=h,!1;i++}else{if(typeof e.env.references>"u")return!1;if(i<E&&e.src.charCodeAt(i)===91?(l=i+1,i=e.md.helpers.parseLinkLabel(e,i),i>=0?r=e.src.slice(l,i++):i=g+1):i=g+1,r||(r=e.src.slice(_,g)),o=e.env.references[Zu(r)],!o)return e.pos=h,!1;f=o.href,c=o.title}if(!t){u=e.src.slice(_,g);const N=[];e.md.inline.parse(u,e.md,e.env,N);const I=e.push("image","img",0),D=[["src",f],["alt",""]];I.attrs=D,I.children=N,I.content=u,c&&D.push(["title",c])}return e.pos=i,e.posMax=E,!0}const y0=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,x0=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function D0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const u=e.pos,r=e.posMax;for(;;){if(++n>=r)return!1;const o=e.src.charCodeAt(n);if(o===60)return!1;if(o===62)break}const i=e.src.slice(u+1,n);if(x0.test(i)){const o=e.md.normalizeLink(i);if(!e.md.validateLink(o))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",o]],s.markup="autolink",s.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(i);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=i.length+2,!0}if(y0.test(i)){const o=e.md.normalizeLink("mailto:"+i);if(!e.md.validateLink(o))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",o]],s.markup="autolink",s.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(i);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=i.length+2,!0}return!1}function k0(e){return/^<a[>\s]/i.test(e)}function L0(e){return/^<\/a\s*>/i.test(e)}function w0(e){const t=e|32;return t>=97&&t<=122}function v0(e,t){if(!e.md.options.html)return!1;const n=e.posMax,u=e.pos;if(e.src.charCodeAt(u)!==60||u+2>=n)return!1;const r=e.src.charCodeAt(u+1);if(r!==33&&r!==63&&r!==47&&!w0(r))return!1;const i=e.src.slice(u).match(c0);if(!i)return!1;if(!t){const o=e.push("html_inline","",0);o.content=i[0],k0(o.content)&&e.linkLevel++,L0(o.content)&&e.linkLevel--}return e.pos+=i[0].length,!0}const M0=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,F0=/^&([a-z][a-z0-9]{1,31});/i;function P0(e,t){const n=e.pos,u=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=u)return!1;if(e.src.charCodeAt(n+1)===35){const i=e.src.slice(n).match(M0);if(i){if(!t){const o=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),s=e.push("text_special","",0);s.content=oi(o)?ou(o):ou(65533),s.markup=i[0],s.info="entity"}return e.pos+=i[0].length,!0}}else{const i=e.src.slice(n).match(F0);if(i){const o=Ja(i[0]);if(o!==i[0]){if(!t){const s=e.push("text_special","",0);s.content=o,s.markup=i[0],s.info="entity"}return e.pos+=i[0].length,!0}}}return!1}function Hi(e){const t={},n=e.length;if(!n)return;let u=0,r=-2;const i=[];for(let o=0;o<n;o++){const s=e[o];if(i.push(0),(e[u].marker!==s.marker||r!==s.token-1)&&(u=o),r=s.token,s.length=s.length||0,!s.close)continue;t.hasOwnProperty(s.marker)||(t[s.marker]=[-1,-1,-1,-1,-1,-1]);const c=t[s.marker][(s.open?3:0)+s.length%3];let l=u-i[u]-1,f=l;for(;l>c;l-=i[l]+1){const h=e[l];if(h.marker===s.marker&&h.open&&h.end<0){let E=!1;if((h.close||s.open)&&(h.length+s.length)%3===0&&(h.length%3!==0||s.length%3!==0)&&(E=!0),!E){const _=l>0&&!e[l-1].open?i[l-1]+1:0;i[o]=o-l+_,i[l]=_,s.open=!1,h.end=o,h.close=!1,f=-1,r=-2;break}}}f!==-1&&(t[s.marker][(s.open?3:0)+(s.length||0)%3]=f)}}function U0(e){const t=e.tokens_meta,n=e.tokens_meta.length;Hi(e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&Hi(t[u].delimiters)}function B0(e){let t,n,u=0;const r=e.tokens,i=e.tokens.length;for(t=n=0;t<i;t++)r[t].nesting<0&&u--,r[t].level=u,r[t].nesting>0&&u++,r[t].type==="text"&&t+1<i&&r[t+1].type==="text"?r[t+1].content=r[t].content+r[t+1].content:(t!==n&&(r[n]=r[t]),n++);t!==n&&(r.length=n)}const gr=[["text",g0],["linkify",_0],["newline",m0],["escape",A0],["backticks",T0],["strikethrough",is.tokenize],["emphasis",os.tokenize],["link",I0],["image",O0],["autolink",D0],["html_inline",v0],["entity",P0]],Er=[["balance_pairs",U0],["strikethrough",is.postProcess],["emphasis",os.postProcess],["fragments_join",B0]];function bu(){this.ruler=new mt;for(let e=0;e<gr.length;e++)this.ruler.push(gr[e][0],gr[e][1]);this.ruler2=new mt;for(let e=0;e<Er.length;e++)this.ruler2.push(Er[e][0],Er[e][1])}bu.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),u=n.length,r=e.md.options.maxNesting,i=e.cache;if(typeof i[t]<"u"){e.pos=i[t];return}let o=!1;if(e.level<r){for(let s=0;s<u;s++)if(e.level++,o=n[s](e,!0),e.level--,o){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;o||e.pos++,i[t]=e.pos};bu.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,u=e.posMax,r=e.md.options.maxNesting;for(;e.pos<u;){const i=e.pos;let o=!1;if(e.level<r){for(let s=0;s<n;s++)if(o=t[s](e,!1),o){if(i>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(o){if(e.pos>=u)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};bu.prototype.parse=function(e,t,n,u){const r=new this.State(e,t,n,u);this.tokenize(r);const i=this.ruler2.getRules(""),o=i.length;for(let s=0;s<o;s++)i[s](r)};bu.prototype.State=Eu;function H0(e){const t={};e=e||{},t.src_Any=Yo.source,t.src_Cc=Ko.source,t.src_Z=jo.source,t.src_P=ri.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter=`(?:(?!${n}|${t.src_ZPCc})${t.src_Any})`,t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth=`(?:(?:(?!${t.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator=`(?=$|${n}|${t.src_ZPCc})(?!${e["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${t.src_ZPCc}))`,t.src_path=`(?:[/?#](?:(?!${t.src_ZCc}|${n}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${t.src_ZCc}|\\]).)*\\]|\\((?:(?!${t.src_ZCc}|[)]).)*\\)|\\{(?:(?!${t.src_ZCc}|[}]).)*\\}|\\"(?:(?!${t.src_ZCc}|["]).)+\\"|\\'(?:(?!${t.src_ZCc}|[']).)+\\'|\\'(?=${t.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${t.src_ZCc}|[.]|$)|`+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+`,(?!${t.src_ZCc}|$)|;(?!${t.src_ZCc}|$)|\\!+(?!${t.src_ZCc}|[!]|$)|\\?(?!${t.src_ZCc}|[?]|$))+|\\/)?`,t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+`|${t.src_pseudo_letter}{1,63})`,t.src_domain="(?:"+t.src_xn+`|(?:${t.src_pseudo_letter})|(?:${t.src_pseudo_letter}(?:-|${t.src_pseudo_letter}){0,61}${t.src_pseudo_letter}))`,t.src_host=`(?:(?:(?:(?:${t.src_domain})\\.)*${t.src_domain}))`,t.tpl_host_fuzzy="(?:"+t.src_ip4+`|(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%)))`,t.tpl_host_no_ip_fuzzy=`(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%))`,t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${t.src_ZPCc}|>|$))`,t.tpl_email_fuzzy=`(^|${n}|"|\\(|${t.src_ZCc})(${t.src_email_name}@${t.tpl_host_fuzzy_strict})`,t.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${t.src_ZPCc}))((?![$+<=>^\`||])${t.tpl_host_port_fuzzy_strict}${t.src_path})`,t.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${t.src_ZPCc}))((?![$+<=>^\`||])${t.tpl_host_port_no_ip_fuzzy_strict}${t.src_path})`,t}function Br(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(u){e[u]=n[u]})}),e}function er(e){return Object.prototype.toString.call(e)}function G0(e){return er(e)==="[object String]"}function z0(e){return er(e)==="[object Object]"}function $0(e){return er(e)==="[object RegExp]"}function Gi(e){return er(e)==="[object Function]"}function V0(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const ss={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function W0(e){return Object.keys(e||{}).reduce(function(t,n){return t||ss.hasOwnProperty(n)},!1)}const q0={"http:":{validate:function(e,t,n){const u=e.slice(t);return n.re.http||(n.re.http=new RegExp(`^\\/\\/${n.re.src_auth}${n.re.src_host_port_strict}${n.re.src_path}`,"i")),n.re.http.test(u)?u.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const u=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+`(?:localhost|(?:(?:${n.re.src_domain})\\.)+${n.re.src_domain_root})`+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(u)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:u.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const u=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp(`^${n.re.src_email_name}@${n.re.src_host_strict}`,"i")),n.re.mailto.test(u)?u.match(n.re.mailto)[0].length:0}}},Y0="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",K0="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function X0(e){return function(t,n){const u=t.slice(n);return e.test(u)?u.match(e)[0].length:0}}function zi(){return function(e,t){t.normalize(e)}}function $u(e){const t=e.re=H0(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(Y0),n.push(t.src_xn),t.src_tlds=n.join("|");function u(s){return s.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(u(t.tpl_email_fuzzy),"i"),t.email_fuzzy_global=RegExp(u(t.tpl_email_fuzzy),"ig"),t.link_fuzzy=RegExp(u(t.tpl_link_fuzzy),"i"),t.link_fuzzy_global=RegExp(u(t.tpl_link_fuzzy),"ig"),t.link_no_ip_fuzzy=RegExp(u(t.tpl_link_no_ip_fuzzy),"i"),t.link_no_ip_fuzzy_global=RegExp(u(t.tpl_link_no_ip_fuzzy),"ig"),t.host_fuzzy_test=RegExp(u(t.tpl_host_fuzzy_test),"i");const r=[];e.__compiled__={};function i(s,c){throw new Error(`(LinkifyIt) Invalid schema "${s}": ${c}`)}Object.keys(e.__schemas__).forEach(function(s){const c=e.__schemas__[s];if(c===null)return;const l={validate:null,link:null};if(e.__compiled__[s]=l,z0(c)){$0(c.validate)?l.validate=X0(c.validate):Gi(c.validate)?l.validate=c.validate:i(s,c),Gi(c.normalize)?l.normalize=c.normalize:c.normalize?i(s,c):l.normalize=zi();return}if(G0(c)){r.push(s);return}i(s,c)}),r.forEach(function(s){e.__compiled__[e.__schemas__[s]]&&(e.__compiled__[s].validate=e.__compiled__[e.__schemas__[s]].validate,e.__compiled__[s].normalize=e.__compiled__[e.__schemas__[s]].normalize)}),e.__compiled__[""]={validate:null,normalize:zi()};const o=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(V0).join("|");e.re.schema_test=RegExp(`(^|(?!_)(?:[><|]|${t.src_ZPCc}))(${o})`,"i"),e.re.schema_search=RegExp(`(^|(?!_)(?:[><|]|${t.src_ZPCc}))(${o})`,"ig"),e.re.schema_at_start=RegExp(`^${e.re.schema_search.source}`,"i"),e.re.pretest=RegExp(`(${e.re.schema_test.source})|(${e.re.host_fuzzy_test.source})|@`,"i")}function cs(e,t,n,u){const r=e.slice(n,u);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=u,this.raw=r,this.text=r,this.url=r}function Ct(e,t){if(!(this instanceof Ct))return new Ct(e,t);t||W0(e)&&(t=e,e={}),this.__opts__=Br({},ss,t),this.__schemas__=Br({},q0,e),this.__compiled__={},this.__tlds__=K0,this.__tlds_replaced__=!1,this.re={},$u(this)}Ct.prototype.add=function(t,n){return this.__schemas__[t]=n,$u(this),this};Ct.prototype.set=function(t){return this.__opts__=Br(this.__opts__,t),this};Ct.prototype.test=function(t){if(!t.length)return!1;let n,u;if(this.re.schema_test.test(t)){for(u=this.re.schema_search,u.lastIndex=0;(n=u.exec(t))!==null;)if(this.testSchemaAt(t,n[2],u.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&t.search(this.re.host_fuzzy_test)>=0&&t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&t.indexOf("@")>=0&&t.match(this.re.email_fuzzy)!==null)};Ct.prototype.pretest=function(t){return this.re.pretest.test(t)};Ct.prototype.testSchemaAt=function(t,n,u){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,u,this):0};Ct.prototype.match=function(t){const n=[],u=[],r=[],i=[];let o,s,c;function l(E,_){return E?_?E.index!==_.index?E.index<_.index?E:_:E.lastIndex>=_.lastIndex?E:_:E:_}if(!t.length)return null;if(this.re.schema_test.test(t))for(c=this.re.schema_search,c.lastIndex=0;(o=c.exec(t))!==null;)s=this.testSchemaAt(t,o[2],c.lastIndex),s&&u.push({schema:o[2],index:o.index+o[1].length,lastIndex:o.index+o[0].length+s});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(c=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,c.lastIndex=0;(o=c.exec(t))!==null;)r.push({schema:"",index:o.index+o[1].length,lastIndex:o.index+o[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(c=this.re.email_fuzzy_global,c.lastIndex=0;(o=c.exec(t))!==null;)i.push({schema:"mailto:",index:o.index+o[1].length,lastIndex:o.index+o[0].length});const f=[0,0,0];let h=0;for(;;){const E=[u[f[0]],i[f[1]],r[f[2]]],_=l(l(E[0],E[1]),E[2]);if(!_)break;if(_===E[0]?f[0]++:_===E[1]?f[1]++:f[2]++,_.index<h)continue;const g=new cs(t,_.schema,_.index,_.lastIndex);this.__compiled__[g.schema].normalize(g,this),n.push(g),h=_.lastIndex}return n.length?n:null};Ct.prototype.matchAtStart=function(t){if(!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const u=this.testSchemaAt(t,n[2],n[0].length);if(!u)return null;const r=new cs(t,n[2],n.index+n[1].length,n.index+n[0].length+u);return this.__compiled__[r.schema].normalize(r,this),r};Ct.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(u,r,i){return u!==i[r-1]}).reverse(),$u(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,$u(this),this)};Ct.prototype.normalize=function(t){t.schema||(t.url=`http://${t.url}`),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url=`mailto:${t.url}`)};Ct.prototype.onCompile=function(){};const Mn=2147483647,Wt=36,ai=1,lu=26,j0=38,Z0=700,as=72,ls=128,ds="-",Q0=/^xn--/,J0=/[^\0-\x7F]/,ed=/[\x2E\u3002\uFF0E\uFF61]/g,td={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},br=Wt-ai,qt=Math.floor,_r=String.fromCharCode;function ln(e){throw new RangeError(td[e])}function nd(e,t){const n=[];let u=e.length;for(;u--;)n[u]=t(e[u]);return n}function fs(e,t){const n=e.split("@");let u="";n.length>1&&(u=n[0]+"@",e=n[1]),e=e.replace(ed,".");const r=e.split("."),i=nd(r,t).join(".");return u+i}function hs(e){const t=[];let n=0;const u=e.length;for(;n<u;){const r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<u){const i=e.charCodeAt(n++);(i&64512)==56320?t.push(((r&1023)<<10)+(i&1023)+65536):(t.push(r),n--)}else t.push(r)}return t}const ud=e=>String.fromCodePoint(...e),rd=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Wt},$i=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},ps=function(e,t,n){let u=0;for(e=n?qt(e/Z0):e>>1,e+=qt(e/t);e>br*lu>>1;u+=Wt)e=qt(e/br);return qt(u+(br+1)*e/(e+j0))},gs=function(e){const t=[],n=e.length;let u=0,r=ls,i=as,o=e.lastIndexOf(ds);o<0&&(o=0);for(let s=0;s<o;++s)e.charCodeAt(s)>=128&&ln("not-basic"),t.push(e.charCodeAt(s));for(let s=o>0?o+1:0;s<n;){const c=u;for(let f=1,h=Wt;;h+=Wt){s>=n&&ln("invalid-input");const E=rd(e.charCodeAt(s++));E>=Wt&&ln("invalid-input"),E>qt((Mn-u)/f)&&ln("overflow"),u+=E*f;const _=h<=i?ai:h>=i+lu?lu:h-i;if(E<_)break;const g=Wt-_;f>qt(Mn/g)&&ln("overflow"),f*=g}const l=t.length+1;i=ps(u-c,l,c==0),qt(u/l)>Mn-r&&ln("overflow"),r+=qt(u/l),u%=l,t.splice(u++,0,r)}return String.fromCodePoint(...t)},Es=function(e){const t=[];e=hs(e);const n=e.length;let u=ls,r=0,i=as;for(const c of e)c<128&&t.push(_r(c));const o=t.length;let s=o;for(o&&t.push(ds);s<n;){let c=Mn;for(const f of e)f>=u&&f<c&&(c=f);const l=s+1;c-u>qt((Mn-r)/l)&&ln("overflow"),r+=(c-u)*l,u=c;for(const f of e)if(f<u&&++r>Mn&&ln("overflow"),f===u){let h=r;for(let E=Wt;;E+=Wt){const _=E<=i?ai:E>=i+lu?lu:E-i;if(h<_)break;const g=h-_,N=Wt-_;t.push(_r($i(_+g%N,0))),h=qt(g/N)}t.push(_r($i(h,0))),i=ps(r,l,s===o),r=0,++s}++r,++u}return t.join("")},id=function(e){return fs(e,function(t){return Q0.test(t)?gs(t.slice(4).toLowerCase()):t})},od=function(e){return fs(e,function(t){return J0.test(t)?"xn--"+Es(t):t})},bs={version:"2.3.1",ucs2:{decode:hs,encode:ud},decode:gs,encode:Es,toASCII:od,toUnicode:id},sd={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},cd={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},ad={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},ld={default:sd,zero:cd,commonmark:ad},dd=/^(vbscript|javascript|file|data):/,fd=/^data:image\/(gif|png|jpeg|webp);/;function hd(e){const t=e.trim().toLowerCase();return dd.test(t)?fd.test(t):!0}const _s=["http:","https:","mailto:"];function pd(e){const t=ui(e,!0);if(t.hostname&&(!t.protocol||_s.indexOf(t.protocol)>=0))try{t.hostname=bs.toASCII(t.hostname)}catch{}return gu(ni(t))}function gd(e){const t=ui(e,!0);if(t.hostname&&(!t.protocol||_s.indexOf(t.protocol)>=0))try{t.hostname=bs.toUnicode(t.hostname)}catch{}return Pn(ni(t),Pn.defaultChars+"%")}function Lt(e,t){if(!(this instanceof Lt))return new Lt(e,t);t||ii(e)||(t=e||{},e="default"),this.inline=new bu,this.block=new Ju,this.core=new si,this.renderer=new Hn,this.linkify=new Ct,this.validateLink=hd,this.normalizeLink=pd,this.normalizeLinkText=gd,this.utils=El,this.helpers=ju({},Al),this.options={},this.configure(e),t&&this.set(t)}Lt.prototype.set=function(e){return ju(this.options,e),this};Lt.prototype.configure=function(e){const t=this;if(ii(e)){const n=e;if(e=ld[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};Lt.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const u=e.filter(function(r){return n.indexOf(r)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+u);return this};Lt.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const u=e.filter(function(r){return n.indexOf(r)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+u);return this};Lt.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};Lt.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};Lt.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Lt.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};Lt.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};/*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */function Vi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,u=Array(t);n<t;n++)u[n]=e[n];return u}function Ed(e){if(Array.isArray(e))return e}function bd(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var u,r,i,o,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(u=i.call(n)).done)&&(s.push(u.value),s.length!==t);c=!0);}catch(f){l=!0,r=f}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw r}}return s}}function _d(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
46
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */function md(e,t){return Ed(e)||bd(e,t)||Ad(e,t)||_d()}function Ad(e,t){if(e){if(typeof e=="string")return Vi(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vi(e,t):void 0}}const ms=Object.entries,Wi=Object.setPrototypeOf,Td=Object.isFrozen,As=Object.getPrototypeOf,Ts=Object.getOwnPropertyDescriptor;let tt=Object.freeze,it=Object.seal,Ln=Object.create,Ss=typeof Reflect<"u"&&Reflect,Hr=Ss.apply,Gr=Ss.construct;tt||(tt=function(t){return t});it||(it=function(t){return t});Hr||(Hr=function(t,n){for(var u=arguments.length,r=new Array(u>2?u-2:0),i=2;i<u;i++)r[i-2]=arguments[i];return t.apply(n,r)});Gr||(Gr=function(t){for(var n=arguments.length,u=new Array(n>1?n-1:0),r=1;r<n;r++)u[r-1]=arguments[r];return new t(...u)});const Jt=He(Array.prototype.forEach),Sd=He(Array.prototype.lastIndexOf),qi=He(Array.prototype.pop),Kn=He(Array.prototype.push),Cd=He(Array.prototype.slice),Nd=He(Array.prototype.splice),Fn=Array.isArray,mr=Cs(Set),Ar=He(Set.prototype.add),Xn=He(Set.prototype.has),mn=He(String.prototype.toLowerCase),Tr=He(String.prototype.toString),Yi=He(String.prototype.match),jn=He(String.prototype.replace),Ki=He(String.prototype.indexOf),Rd=He(String.prototype.trim),Id=He(Number.prototype.toString),Od=He(Boolean.prototype.toString),Xi=typeof BigInt>"u"?null:He(BigInt.prototype.toString),ji=typeof Symbol>"u"?null:He(Symbol.prototype.toString),_t=He(Object.prototype.hasOwnProperty),Zn=He(Object.prototype.toString),rt=He(RegExp.prototype.test),en=Cs(TypeError);function He(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,u=new Array(n>1?n-1:0),r=1;r<n;r++)u[r-1]=arguments[r];return Hr(e,t,u)}}function Cs(e){return function(){for(var t=arguments.length,n=new Array(t),u=0;u<t;u++)n[u]=arguments[u];return Gr(e,n)}}function me(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:mn;if(Wi&&Wi(e,null),!Fn(t))return e;let u=t.length;for(;u--;){let r=t[u];if(typeof r=="string"){const i=n(r);i!==r&&(Td(t)||(t[u]=i),r=i)}e[r]=!0}return e}function yd(e){for(let t=0;t<e.length;t++)_t(e,t)||(e[t]=null);return e}function St(e){const t=Ln(null);for(const u of ms(e)){var n=md(u,2);const r=n[0],i=n[1];_t(e,r)&&(Fn(i)?t[r]=yd(i):i&&typeof i=="object"&&i.constructor===Object?t[r]=St(i):t[r]=i)}return t}function xd(e){switch(typeof e){case"string":return e;case"number":return Id(e);case"boolean":return Od(e);case"bigint":return Xi?Xi(e):"0";case"symbol":return ji?ji(e):"Symbol()";case"undefined":return Zn(e);case"function":case"object":{if(e===null)return Zn(e);const t=e,n=Dt(t,"toString");if(typeof n=="function"){const u=n(t);return typeof u=="string"?u:Zn(u)}return Zn(e)}default:return Zn(e)}}function Dt(e,t){for(;e!==null;){const u=Ts(e,t);if(u){if(u.get)return He(u.get);if(typeof u.value=="function")return He(u.value)}e=As(e)}function n(){return null}return n}function Dd(e,t){for(;e!==null;){const n=Ts(e,t);if(n)return n.get?He(n.get):null;e=As(e)}return null}function kd(e){try{return rt(e,""),!0}catch{return!1}}const Zi=tt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Sr=tt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Cr=tt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ld=tt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Nr=tt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),wd=tt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Qi=tt(["#text"]),Ji=tt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Rr=tt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),eo=tt(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Du=tt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),vd=it(/{{[\w\W]*|^[\w\W]*}}/g),Md=it(/<%[\w\W]*|^[\w\W]*%>/g),Fd=it(/\${[\w\W]*/g),Pd=it(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ud=it(/^aria-[\-\w]+$/),to=it(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Bd=it(/^(?:\w+script|data):/i),Hd=it(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Gd=it(/^html$/i),zd=it(/^[a-z][.\w]*(-[.\w]+)+$/i),Ir=it(/<[/\w!]/g),no=it(/<[/\w]/g),$d=it(/<\/no(script|embed|frames)/i),uo=it(/\/>/i),Ye={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Vd=tt(me({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),Wd=function(){return typeof window>"u"?null:window},qd=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let u=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(u=n.getAttribute(r));const i="dompurify"+(u?"#"+u:"");try{return t.createPolicy(i,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},ro=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},cn=function(t,n,u,r){return _t(t,n)&&Fn(t[n])?me(r.base?St(r.base):{},t[n],r.transform):u},Or=function(t,n,u){const r=_t(t,n)?t[n]:void 0;return r&&typeof r=="object"?St(r):u()};function Ns(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Wd();const t=w=>Ns(w);if(t.version="3.4.17",t.removed=[],!e||!e.document||e.document.nodeType!==Ye.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const u=n,r=u.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const l=e.DOMParser,f=e.trustedTypes,h=s.prototype,E=Dt(h,"cloneNode"),_=Dt(h,"remove"),g=Dt(h,"removeAttributeNode"),N=Dt(h,"nextSibling"),I=Dt(h,"childNodes"),D=Dt(h,"parentNode"),v=Dt(h,"shadowRoot"),R=Dt(h,"attributes"),k=o&&o.prototype?Dt(o.prototype,"nodeType"):null,O=o&&o.prototype?Dt(o.prototype,"nodeName"):null,L=o&&o.prototype?Dt(o.prototype,"ownerDocument"):null,P=function(d){return k?k(d):d.nodeType},Y=function(d){return O?O(d):d.nodeName},Q=Dd(h,"namespaceURI"),ce=function(d){return Q?Q(d):d.namespaceURI};if(typeof i=="function"){const w=n.createElement("template");w.content&&w.content.ownerDocument&&(n=w.content.ownerDocument)}let oe,Re="",H,X=!1,j=0;const Ee=function(){if(j>0)throw en('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Fe=function(d){Ee(),j++;try{return oe.createHTML(d)}finally{j--}},J=function(d){Ee(),j++;try{return oe.createScriptURL(d)}finally{j--}},pe=function(){return X||(H=qd(f,r),X=!0),H},be=n,Ae=be.implementation,qe=be.createNodeIterator,je=be.createDocumentFragment,st=be.getElementsByTagName,Xt=u.importNode;let _e=ro();t.isSupported=typeof ms=="function"&&typeof D=="function"&&Ae&&Ae.createHTMLDocument!==void 0;const F=vd,ye=Md,Ge=Fd,ze=Pd,Pe=Ud,ct=Bd,wt=Hd,ht=zd;let Nt=to,A=null;const G=me({},[...Zi,...Sr,...Cr,...Nr,...Qi]);let z=null;const le=me({},[...Ji,...Rr,...eo,...Du]);let ae=Object.seal(Ln(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),xe=null,At=null;const pt=Object.seal(Ln(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ze=!0,Rt=!0,nt=!1,Tt=!0,at=!1,vt=!0,Mt=!1,pn=!1,zt=null,jt=null,nn=!1,Ft=!1,un=!1,Zt=!1,T=!0,re=!1;const ge="user-content-";let Ie=!0,Qe=!1,ke=null,p={},C=null;const B=me({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let ue=null;const Ue=me({},["audio","video","img","source","image","track"]);let Be=null;const W=me({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),$="http://www.w3.org/1998/Math/MathML",ee="http://www.w3.org/2000/svg",Oe="http://www.w3.org/1999/xhtml";let De=Oe,Qt=!1,gn=null;const Gn=me({},[$,ee,Oe],Tr),_u=tt(["mi","mo","mn","ms","mtext"]);let En=me({},_u);const mu=tt(["annotation-xml"]);let zn=me({},mu);const tr=me({},["title","style","font","a","script"]);let rn=null;const Cn=["application/xhtml+xml","text/html"],nr="text/html";let $e=null,on=null;const $t=n.createElement("form"),$n=function(d){return d instanceof RegExp||d instanceof Function},Nn=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(on&&on===d)return;(!d||typeof d!="object")&&(d={}),d=St(d),rn=Cn.indexOf(d.PARSER_MEDIA_TYPE)===-1?nr:d.PARSER_MEDIA_TYPE,$e=rn==="application/xhtml+xml"?Tr:mn,A=cn(d,"ALLOWED_TAGS",G,{transform:$e}),z=cn(d,"ALLOWED_ATTR",le,{transform:$e}),gn=cn(d,"ALLOWED_NAMESPACES",Gn,{transform:Tr}),Be=cn(d,"ADD_URI_SAFE_ATTR",W,{transform:$e,base:W}),ue=cn(d,"ADD_DATA_URI_TAGS",Ue,{transform:$e,base:Ue}),C=cn(d,"FORBID_CONTENTS",B,{transform:$e}),xe=cn(d,"FORBID_TAGS",St({}),{transform:$e}),At=cn(d,"FORBID_ATTR",St({}),{transform:$e}),p=_t(d,"USE_PROFILES")?d.USE_PROFILES&&typeof d.USE_PROFILES=="object"?St(d.USE_PROFILES):d.USE_PROFILES:!1,Ze=d.ALLOW_ARIA_ATTR!==!1,Rt=d.ALLOW_DATA_ATTR!==!1,nt=d.ALLOW_UNKNOWN_PROTOCOLS||!1,Tt=d.ALLOW_SELF_CLOSE_IN_ATTR!==!1,at=d.SAFE_FOR_TEMPLATES||!1,vt=d.SAFE_FOR_XML!==!1,Mt=d.WHOLE_DOCUMENT||!1,Ft=d.RETURN_DOM||!1,un=d.RETURN_DOM_FRAGMENT||!1,Zt=d.RETURN_TRUSTED_TYPE||!1,nn=d.FORCE_BODY||!1,T=d.SANITIZE_DOM!==!1,re=d.SANITIZE_NAMED_PROPS||!1,Ie=d.KEEP_CONTENT!==!1,Qe=d.IN_PLACE||!1,Nt=kd(d.ALLOWED_URI_REGEXP)?d.ALLOWED_URI_REGEXP:to,De=typeof d.NAMESPACE=="string"?d.NAMESPACE:Oe,En=Or(d,"MATHML_TEXT_INTEGRATION_POINTS",()=>me({},_u)),zn=Or(d,"HTML_INTEGRATION_POINTS",()=>me({},mu));const b=Or(d,"CUSTOM_ELEMENT_HANDLING",()=>Ln(null));if(ae=Ln(null),_t(b,"tagNameCheck")&&$n(b.tagNameCheck)&&(ae.tagNameCheck=b.tagNameCheck),_t(b,"attributeNameCheck")&&$n(b.attributeNameCheck)&&(ae.attributeNameCheck=b.attributeNameCheck),_t(b,"allowCustomizedBuiltInElements")&&typeof b.allowCustomizedBuiltInElements=="boolean"&&(ae.allowCustomizedBuiltInElements=b.allowCustomizedBuiltInElements),it(ae),at&&(Rt=!1),un&&(Ft=!0),p&&(A=me({},Qi),z=Ln(null),p.html===!0&&(me(A,Zi),me(z,Ji)),p.svg===!0&&(me(A,Sr),me(z,Rr),me(z,Du)),p.svgFilters===!0&&(me(A,Cr),me(z,Rr),me(z,Du)),p.mathMl===!0&&(me(A,Nr),me(z,eo),me(z,Du))),pt.tagCheck=null,pt.attributeCheck=null,_t(d,"ADD_TAGS")&&(typeof d.ADD_TAGS=="function"?pt.tagCheck=d.ADD_TAGS:Fn(d.ADD_TAGS)&&(A===G&&(A=St(A)),me(A,d.ADD_TAGS,$e))),_t(d,"ADD_ATTR")&&(typeof d.ADD_ATTR=="function"?pt.attributeCheck=d.ADD_ATTR:Fn(d.ADD_ATTR)&&(z===le&&(z=St(z)),me(z,d.ADD_ATTR,$e))),_t(d,"ADD_FORBID_CONTENTS")&&Fn(d.ADD_FORBID_CONTENTS)&&(C===B&&(C=St(C)),me(C,d.ADD_FORBID_CONTENTS,$e)),Ie&&(A["#text"]=!0),Mt&&me(A,["html","head","body"]),A.table&&(me(A,["tbody"]),delete xe.tbody),d.TRUSTED_TYPES_POLICY){if(typeof d.TRUSTED_TYPES_POLICY.createHTML!="function")throw en('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof d.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw en('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const y=oe;oe=d.TRUSTED_TYPES_POLICY;try{Re=Fe("")}catch(x){throw oe=y,x}}else d.TRUSTED_TYPES_POLICY===null?(oe=void 0,Re=""):(oe===void 0&&(oe=pe()),oe&&typeof Re=="string"&&(Re=Fe("")));tt&&tt(d),on=d},Au=me({},[...Sr,...Cr,...Ld]),Tu=me({},[...Nr,...wd]),ur=function(d,b,y){return b.namespaceURI===Oe?d==="svg":b.namespaceURI===$?d==="svg"&&(y==="annotation-xml"||En[y]):!!Au[d]},Rn=function(d,b,y){return b.namespaceURI===Oe?d==="math":b.namespaceURI===ee?d==="math"&&zn[y]:!!Tu[d]},rr=function(d,b,y){return b.namespaceURI===ee&&!zn[y]||b.namespaceURI===$&&!En[y]?!1:!Tu[d]&&(tr[d]||!Au[d])},M=function(d){const b=ce(d),y=mn(Y(d)),x=D(d);let Z,ne;return x&&P(x)===Ye.element?(Z={namespaceURI:ce(x)},ne=mn(Y(x))):(Z={namespaceURI:De},ne="template"),gn[b]?b===ee?ur(y,Z,ne):b===$?Rn(y,Z,ne):b===Oe?rr(y,Z,ne):!!(rn==="application/xhtml+xml"&&gn[b]):!1},V=function(d){Kn(t.removed,{element:d});try{D(d).removeChild(d)}catch{if(_(d),!D(d))throw en("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},de=function(d,b,y){try{g(d,b)}catch{try{d.removeAttribute(y)}catch{}}},Ne=function(d){sn(d);const b=I(d);b&&Jt(Cd(b),x=>{try{_(x)}catch{}});const y=P(d)===Ye.element?R(d):null;if(y)for(let x=y.length-1;x>=0;--x){const Z=y[x],ne=Z&&Z.name;typeof ne=="string"&&de(d,Z,ne)}},Le=function(d,b,y){if(!y)try{y=b.getAttributeNode(d)}catch{y=null}Kn(t.removed,{attribute:y||null,from:b});try{y?g(b,y):b.removeAttribute(d)}catch{try{b.removeAttribute(d)}catch{}}if(d==="is")if(Ft||un)try{V(b)}catch{}else try{b.setAttribute(d,"")}catch{}},gt=function(d){const b=R(d);if(b)for(let y=b.length-1;y>=0;--y){const x=b[y],Z=x&&x.name;typeof Z!="string"||z[$e(Z)]||de(d,x,Z)}},It=function(d,b){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const x=[d];for(;x.length>0;){const Z=x.pop();if(b(Z)===!1)continue;if(y&&P(Z)===Ye.element){const he=v(Z);Pt(he)&&x.push(he)}const ne=I(Z);if(ne)for(let he=ne.length-1;he>=0;--he)x.push(ne[he])}},sn=function(d){It(d,b=>{P(b)===Ye.element&&gt(b)})},ut=function(d){const b=[];return It(d,y=>{b.push(y)},!0),b},Ot=function(d,b){const y=mr();Jt(ut(d),x=>{P(x)===Ye.element&&Ar(y,x)}),Jt(b,x=>{P(x)===Ye.element&&!Xn(y,x)&&gt(x)})},Vn=function(d,b){let y=!1;return Jt(t.removed,x=>{x.element&&(y=y||x.element===d,sn(x.element))}),Ot(d,b),y},Su=8,Cu=function(d,b){const y=ke;let x=null;const Z=()=>(x||(x=mr(),Jt(b,ne=>{Ar(x,ne)})),x);for(let ne=0;;ne++){const he=ut(d),Xe=[d];let Vt=!1;if(Jt(he,dt=>{P(dt)===Ye.documentFragment?Kn(Xe,dt):!Vt&&!Xn(y,dt)&&(Vt=Xn(Z(),dt))}),!Vt)return;if(ne>=Su)throw en("the tree kept changing during in-place sanitization; refusing to return it");Jt(Xe,(dt,Et)=>{ir(dt,Et>0,d,Z())})}},ir=function(d,b,y,x){const Z=In(d);let ne;for(;ne=Z.nextNode();)!Xn(x,ne)||Xn(ke,ne)||(b&&fe(_e.uponSanitizeShadowNode,ne,null),q(ne,y),ar(ne,y),Pt(ne.content)&&Yn(ne.content))},or=function(d){ke&&Ar(ke,d)},Nu=function(d,b){return vt?d==="patchsrc"?!0:d==="for"&&b!=="label"&&b!=="output":!1},sr=function(d){vt&&It(d,b=>{const y=P(b);if(y===Ye.processingInstruction||y===Ye.comment&&rt(no,b.data)){try{_(b)}catch{}return!1}if(y===Ye.element){const x=b,Z=$e(Y(b));try{x.hasAttribute&&x.hasAttribute("patchsrc")&&x.removeAttribute("patchsrc"),x.hasAttribute&&x.hasAttribute("for")&&Nu("for",Z)&&x.removeAttribute("for")}catch{}}return!0})},bn=function(d){let b=null,y=null;if(nn)d="<remove></remove>"+d;else{const ne=Yi(d,/^[\r\n\t ]+/);y=ne&&ne[0]}rn==="application/xhtml+xml"&&De===Oe&&(d='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+d+"</body></html>");const x=oe?Fe(d):d;if(De===Oe)try{b=new l().parseFromString(x,rn)}catch{}if(!b||!b.documentElement){b=Ae.createDocument(De,"template",null);try{b.documentElement.innerHTML=Qt?Re:x}catch{}}const Z=b.body||b.documentElement;return d&&y&&Z.insertBefore(n.createTextNode(y),Z.childNodes[0]||null),De===Oe?st.call(b,Mt?"html":"body")[0]:Mt?b.documentElement:Z},In=function(d){const b=L?L(d):d.ownerDocument;return qe.call(b||d,d,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},lt=function(d){return d=jn(d,F," "),d=jn(d,ye," "),d=jn(d,Ge," "),d},Wn=function(d){var b;On(d);const y=(b=d.querySelectorAll)===null||b===void 0?void 0:b.call(d,"template");y&&Jt(y,x=>{Pt(x.content)&&Wn(x.content)})},On=function(d){d.normalize();const b=L?L(d):d.ownerDocument,y=qe.call(b||d,d,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let x=y.nextNode();for(;x;)x.data=lt(x.data),x=y.nextNode()},te=function(d){const b=O?O(d):null;return typeof b!="string"||$e(b)!=="form"?!1:typeof d.nodeName!="string"||typeof d.textContent!="string"||typeof d.removeChild!="function"||d.attributes!==R(d)||typeof d.removeAttribute!="function"||typeof d.removeAttributeNode!="function"||typeof d.getAttributeNode!="function"||typeof d.setAttribute!="function"||typeof d.namespaceURI!="string"||typeof d.insertBefore!="function"||typeof d.hasChildNodes!="function"||d.nodeType!==k(d)||d.childNodes!==I(d)},Pt=function(d){if(!k||typeof d!="object"||d===null)return!1;try{return k(d)===Ye.documentFragment}catch{return!1}},Ve=function(d){if(!k||typeof d!="object"||d===null)return!1;try{return typeof k(d)=="number"}catch{return!1}};function fe(w,d,b){w.length!==0&&Jt(w,y=>{y.call(t,d,b,on)})}const yn=function(d,b){return!!(vt&&d.hasChildNodes()&&!Ve(d.firstElementChild)&&rt(Ir,d.textContent)&&rt(Ir,d.innerHTML)||vt&&Vd[b]&&P(d)===Ye.element&&ce(d)===Oe&&(Ve(d.firstElementChild)||typeof d.textContent=="string"&&rt(Ir,d.textContent))||d.nodeType===Ye.processingInstruction||vt&&d.nodeType===Ye.comment&&rt(no,d.data))},yt=function(d,b){if(d instanceof RegExp)return rt(d,b);if(d instanceof Function){for(var y=arguments.length,x=new Array(y>2?y-2:0),Z=2;Z<y;Z++)x[Z-2]=arguments[Z];return!!d(b,...x)}return!1},qn=function(d,b,y){if(!xe[b]&&Ke(b)&&yt(ae.tagNameCheck,b))return!1;if(Ie&&!C[b]&&!C[mn(b)]){const x=D(d),Z=I(d);if(Z&&x){const ne=Z.length;for(let he=ne-1;he>=0;--he){const Xe=d===y?E(Z[he],!0):Z[he];x.insertBefore(Xe,N(d))}}}return V(d),!0},xn=function(d,b,y,x){return d.length===0?b:b===y||b===x?St(b):b},U=function(d,b){return d===b||D(d)!==null?!1:(Qe&&sn(d),!0)},q=function(d,b){if(or(d),fe(_e.beforeSanitizeElements,d,null),U(d,b))return!0;if(te(d))return V(d),!0;const y=$e(Y(d));if(A=xn(_e.uponSanitizeElement,A,G,zt),fe(_e.uponSanitizeElement,d,{tagName:y,allowedTags:A}),U(d,b))return!0;if(yn(d,y))return V(d),!0;if(xe[y]||!(pt.tagCheck instanceof Function&&pt.tagCheck(y))&&!A[y]){const x=qn(d,y,b);return x===!1&&(fe(_e.afterSanitizeElements,d,null),U(d,b))?!0:x}if(P(d)===Ye.element&&!M(d)||(y==="noscript"||y==="noembed"||y==="noframes")&&rt($d,d.innerHTML))return V(d),!0;if(at&&d.nodeType===Ye.text){const x=lt(d.textContent);d.textContent!==x&&(Kn(t.removed,{element:d.cloneNode()}),d.textContent=x)}return fe(_e.afterSanitizeElements,d,null),U(d,b)},se=function(d,b,y){if(At[b]||Nu(b,d)||T&&(b==="id"||b==="name")&&(y in n||y in $t))return!1;const x=z[b]||pt.attributeCheck instanceof Function&&pt.attributeCheck(b,d);return Rt&&rt(ze,b)||Ze&&rt(Pe,b)?!0:x?Be[b]||rt(Nt,jn(y,wt,""))||(b==="src"||b==="xlink:href"||b==="href")&&d!=="script"&&Ki(y,"data:")===0&&ue[d]||nt&&!rt(ct,jn(y,wt,""))?!0:!y:Ke(d)&&yt(ae.tagNameCheck,d)&&yt(ae.attributeNameCheck,b,d)||b==="is"&&ae.allowCustomizedBuiltInElements&&yt(ae.tagNameCheck,y)},Ce=me({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ke=function(d){return!Ce[mn(d)]&&rt(ht,d)},Ut=function(d,b,y,x){if(oe&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!y)switch(f.getAttributeType(d,b)){case"TrustedHTML":return Fe(x);case"TrustedScriptURL":return J(x)}return x},cr=function(d,b,y,x){try{return y?d.setAttributeNS(y,b,x):d.setAttribute(b,x),te(d)?(V(d),!1):!0}catch{return Le(b,d),!1}},Ru=function(d,b){return vt&&rt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,b)?!0:mn(d)==="attributename"&&Yi(b,"href")!==null},ar=function(d,b){if(fe(_e.beforeSanitizeAttributes,d,null),U(d,b))return;const y=d.attributes;if(!y||te(d))return;z=xn(_e.uponSanitizeAttribute,z,le,jt);const x={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:z,forceKeepAttr:void 0};let Z=y.length;const ne=$e(d.nodeName);for(;Z--;){const he=y[Z],Xe=he.name,Vt=he.namespaceURI,dt=he.value,Et=$e(Xe),Dn=dt;let bt=Xe==="value"?Dn:Rd(Dn),li=!1;if(x.attrName=Et,x.attrValue=bt,x.keepAttr=!0,x.forceKeepAttr=void 0,fe(_e.uponSanitizeAttribute,d,x),bt=x.attrValue,re&&(Et==="id"||Et==="name")&&Ki(bt,ge)!==0&&(Le(Xe,d,he),bt=ge+bt,li=!0),Ru(Xe,bt)){Le(Xe,d,he);continue}if(!x.forceKeepAttr){if(!x.keepAttr){Le(Xe,d,he);continue}if(!Tt&&rt(uo,bt)){Le(Xe,d,he);continue}if(at&&(bt=lt(bt)),!se(ne,Et,bt)){Le(Xe,d,he);continue}bt=Ut(ne,Et,Vt,bt),bt!==Dn&&cr(d,Xe,Vt,bt)&&li&&qi(t.removed)}}fe(_e.afterSanitizeAttributes,d,null),U(d,b)},Yn=function(d){let b=null;const y=In(d);for(fe(_e.beforeSanitizeShadowDOM,d,null);b=y.nextNode();)if(fe(_e.uponSanitizeShadowNode,b,null),q(b,d),ar(b,d),Pt(b.content)&&Yn(b.content),P(b)===Ye.element){const x=v(b);Pt(x)&&(lr(x),Yn(x))}at&&On(d),fe(_e.afterSanitizeShadowDOM,d,null)},lr=function(d){const b=[{node:d,shadow:null}];for(;b.length>0;){const y=b.pop();if(y.shadow){Yn(y.shadow);continue}const x=y.node,Z=P(x)===Ye.element,ne=I(x);if(ne)for(let he=ne.length-1;he>=0;--he)b.push({node:ne[he],shadow:null});if(Z){const he=O?O(x):null;if(typeof he=="string"&&$e(he)==="template"){const Xe=x.content;Pt(Xe)&&b.push({node:Xe,shadow:null})}}if(Z){const he=v(x);Pt(he)&&b.push({node:null,shadow:he},{node:he,shadow:null})}}};return t.sanitize=function(w){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=null,y=null,x=null,Z=null;if(Qt=!w,Qt&&(w="<!-->"),typeof w!="string"&&!Ve(w)&&(w=xd(w),typeof w!="string"))throw en("dirty is not a string, aborting");if(!t.isSupported)return w;pn?(A=zt,z=jt):Nn(d),(_e.uponSanitizeElement.length>0||_e.uponSanitizeAttribute.length>0)&&(A=St(A)),_e.uponSanitizeAttribute.length>0&&(z=St(z)),t.removed=[];const ne=Qe&&typeof w!="string"&&Ve(w);let he=[];const Xe=ke;if(ne){sr(w);const Et=Y(w);if(typeof Et=="string"){const Dn=$e(Et);if(!A[Dn]||xe[Dn])throw Ne(w),en("root node is forbidden and cannot be sanitized in-place")}if(te(w))throw Ne(w),en("root node is clobbered and cannot be sanitized in-place");he=ut(w),ke=mr()}else if(Ve(w))b=bn("<!---->"),y=b.ownerDocument.importNode(w,!0),y.nodeType===Ye.element&&y.nodeName==="BODY"||y.nodeName==="HTML"?b=y:b.appendChild(y),lr(b);else{if(!Ft&&!at&&!Mt&&w.indexOf("<")===-1)return oe&&Zt?Fe(w):w;if(b=bn(w),!b)return Ft?null:Zt?Re:""}b&&nn&&V(b.firstChild);const Vt=ne?w:b;try{ne&&lr(w);const Et=In(Vt);for(;x=Et.nextNode();)q(x,Vt),ar(x,Vt),Pt(x.content)&&Yn(x.content);ne&&Cu(w,he)}catch(Et){throw ne&&(Ne(w),Vn(w,he)),Et}finally{ke=Xe}if(ne){if(Vn(w,he))throw en("a node selected for removal could not be safely returned; refusing to sanitize in place");return at&&Wn(w),w}if(Ft){if(at&&Wn(b),un)for(Z=je.call(b.ownerDocument);b.firstChild;)Z.appendChild(b.firstChild);else Z=b;return(z.shadowroot||z.shadowrootmode)&&(Z=Xt.call(u,Z,!0)),Z}let dt=Mt?b.outerHTML:b.innerHTML;return Mt&&A["!doctype"]&&b.ownerDocument&&b.ownerDocument.doctype&&b.ownerDocument.doctype.name&&rt(Gd,b.ownerDocument.doctype.name)&&(dt="<!DOCTYPE "+b.ownerDocument.doctype.name+`>
47
- `+dt),at&&(dt=lt(dt)),oe&&Zt?Fe(dt):dt},t.setConfig=function(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Nn(w),pn=!0,zt=A,jt=z},t.clearConfig=function(){on=null,pn=!1,zt=null,jt=null,oe=H,Re=""},t.isValidAttribute=function(w,d,b){on||Nn({});const y=$e(w),x=$e(d);return typeof b=="string"&&(Ru(d,b)||!Tt&&rt(uo,b))?!1:se(y,x,b)},t.addHook=function(w,d){typeof d=="function"&&_t(_e,w)&&Kn(_e[w],d)},t.removeHook=function(w,d){if(_t(_e,w)){if(d!==void 0){const b=Sd(_e[w],d);return b===-1?void 0:Nd(_e[w],b,1)[0]}return qi(_e[w])}},t.removeHooks=function(w){_t(_e,w)&&(_e[w]=[])},t.removeAllHooks=function(){_e=ro()},t}var Yd=Ns();function Kd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yr,io;function Xd(){if(io)return yr;io=1;function e(p){return p instanceof Map?p.clear=p.delete=p.set=function(){throw new Error("map is read-only")}:p instanceof Set&&(p.add=p.clear=p.delete=function(){throw new Error("set is read-only")}),Object.freeze(p),Object.getOwnPropertyNames(p).forEach(C=>{const B=p[C],ue=typeof B;(ue==="object"||ue==="function")&&!Object.isFrozen(B)&&e(B)}),p}class t{constructor(C){C.data===void 0&&(C.data={}),this.data=C.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(p){return p.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function u(p,...C){const B=Object.create(null);for(const ue in p)B[ue]=p[ue];return C.forEach(function(ue){for(const Ue in ue)B[Ue]=ue[Ue]}),B}const r="</span>",i=p=>!!p.scope,o=(p,{prefix:C})=>{if(p.startsWith("language:"))return p.replace("language:","language-");if(p.includes(".")){const B=p.split(".");return[`${C}${B.shift()}`,...B.map((ue,Ue)=>`${ue}${"_".repeat(Ue+1)}`)].join(" ")}return`${C}${p}`};class s{constructor(C,B){this.buffer="",this.classPrefix=B.classPrefix,C.walk(this)}addText(C){this.buffer+=n(C)}openNode(C){if(!i(C))return;const B=o(C.scope,{prefix:this.classPrefix});this.span(B)}closeNode(C){i(C)&&(this.buffer+=r)}value(){return this.buffer}span(C){this.buffer+=`<span class="${C}">`}}const c=(p={})=>{const C={children:[]};return Object.assign(C,p),C};class l{constructor(){this.rootNode=c(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(C){this.top.children.push(C)}openNode(C){const B=c({scope:C});this.add(B),this.stack.push(B)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(C){return this.constructor._walk(C,this.rootNode)}static _walk(C,B){return typeof B=="string"?C.addText(B):B.children&&(C.openNode(B),B.children.forEach(ue=>this._walk(C,ue)),C.closeNode(B)),C}static _collapse(C){typeof C!="string"&&C.children&&(C.children.every(B=>typeof B=="string")?C.children=[C.children.join("")]:C.children.forEach(B=>{l._collapse(B)}))}}class f extends l{constructor(C){super(),this.options=C}addText(C){C!==""&&this.add(C)}startScope(C){this.openNode(C)}endScope(){this.closeNode()}__addSublanguage(C,B){const ue=C.root;B&&(ue.scope=`language:${B}`),this.add(ue)}toHTML(){return new s(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function h(p){return p?typeof p=="string"?p:p.source:null}function E(p){return N("(?=",p,")")}function _(p){return N("(?:",p,")*")}function g(p){return N("(?:",p,")?")}function N(...p){return p.map(B=>h(B)).join("")}function I(p){const C=p[p.length-1];return typeof C=="object"&&C.constructor===Object?(p.splice(p.length-1,1),C):{}}function D(...p){return"("+(I(p).capture?"":"?:")+p.map(ue=>h(ue)).join("|")+")"}function v(p){return new RegExp(p.toString()+"|").exec("").length-1}function R(p,C){const B=p&&p.exec(C);return B&&B.index===0}const k=new RegExp(D(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function O(p,{joinWith:C}){let B=0;return p.map(ue=>{B+=1;const Ue=B;let Be=h(ue),W="";for(;Be.length>0;){const $=k.exec(Be);if(!$){W+=Be;break}W+=Be.substring(0,$.index),Be=Be.substring($.index+$[0].length),$[0][0]==="\\"&&$[1]?W+="\\"+String(Number($[1])+Ue):(W+=$[0],($[0]==="("||/^\(\?[<']/.test($[0]))&&B++)}return W}).map(ue=>`(${ue})`).join(C)}const L=/\b\B/,P="[a-zA-Z]\\w*",Y="[a-zA-Z_]\\w*",Q="\\b\\d+(\\.\\d+)?",ce="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",oe="\\b(0b[01]+)",Re="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",H=(p={})=>{const C=/^#![ ]*\//;return p.binary&&(p.begin=N(C,/.*\b/,p.binary,/\b.*/)),u({scope:"meta",begin:C,end:/$/,relevance:0,"on:begin":(B,ue)=>{B.index!==0&&ue.ignoreMatch()}},p)},X={begin:"\\\\[\\s\\S]",relevance:0},j={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[X]},Ee={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[X]},Fe={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},J=function(p,C,B={}){const ue=u({scope:"comment",begin:p,end:C,contains:[]},B);ue.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Ue=D("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return ue.contains.push({begin:N(/[ ]+/,"(",Ue,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),ue},pe=J("//","$"),be=J("/\\*","\\*/"),Ae=J("#","$"),qe={scope:"number",begin:Q,relevance:0},je={scope:"number",begin:ce,relevance:0},st={scope:"number",begin:oe,relevance:0},Xt={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[X,{begin:/\[/,end:/\]/,relevance:0,contains:[X]}]},_e={scope:"title",begin:P,relevance:0},F={scope:"title",begin:Y,relevance:0},ye={begin:"\\.\\s*"+Y,relevance:0};var ze=Object.freeze({__proto__:null,APOS_STRING_MODE:j,BACKSLASH_ESCAPE:X,BINARY_NUMBER_MODE:st,BINARY_NUMBER_RE:oe,COMMENT:J,C_BLOCK_COMMENT_MODE:be,C_LINE_COMMENT_MODE:pe,C_NUMBER_MODE:je,C_NUMBER_RE:ce,END_SAME_AS_BEGIN:function(p){return Object.assign(p,{"on:begin":(C,B)=>{B.data._beginMatch=C[1]},"on:end":(C,B)=>{B.data._beginMatch!==C[1]&&B.ignoreMatch()}})},HASH_COMMENT_MODE:Ae,IDENT_RE:P,MATCH_NOTHING_RE:L,METHOD_GUARD:ye,NUMBER_MODE:qe,NUMBER_RE:Q,PHRASAL_WORDS_MODE:Fe,QUOTE_STRING_MODE:Ee,REGEXP_MODE:Xt,RE_STARTERS_RE:Re,SHEBANG:H,TITLE_MODE:_e,UNDERSCORE_IDENT_RE:Y,UNDERSCORE_TITLE_MODE:F});function Pe(p,C){p.input[p.index-1]==="."&&C.ignoreMatch()}function ct(p,C){p.className!==void 0&&(p.scope=p.className,delete p.className)}function wt(p,C){C&&p.beginKeywords&&(p.begin="\\b("+p.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",p.__beforeBegin=Pe,p.keywords=p.keywords||p.beginKeywords,delete p.beginKeywords,p.relevance===void 0&&(p.relevance=0))}function ht(p,C){Array.isArray(p.illegal)&&(p.illegal=D(...p.illegal))}function Nt(p,C){if(p.match){if(p.begin||p.end)throw new Error("begin & end are not supported with match");p.begin=p.match,delete p.match}}function A(p,C){p.relevance===void 0&&(p.relevance=1)}const G=(p,C)=>{if(!p.beforeMatch)return;if(p.starts)throw new Error("beforeMatch cannot be used with starts");const B=Object.assign({},p);Object.keys(p).forEach(ue=>{delete p[ue]}),p.keywords=B.keywords,p.begin=N(B.beforeMatch,E(B.begin)),p.starts={relevance:0,contains:[Object.assign(B,{endsParent:!0})]},p.relevance=0,delete B.beforeMatch},z=["of","and","for","in","not","or","if","then","parent","list","value"],le="keyword";function ae(p,C,B=le){const ue=Object.create(null);return typeof p=="string"?Ue(B,p.split(" ")):Array.isArray(p)?Ue(B,p):Object.keys(p).forEach(function(Be){Object.assign(ue,ae(p[Be],C,Be))}),ue;function Ue(Be,W){C&&(W=W.map($=>$.toLowerCase())),W.forEach(function($){const ee=$.split("|");ue[ee[0]]=[Be,xe(ee[0],ee[1])]})}}function xe(p,C){return C?Number(C):At(p)?0:1}function At(p){return z.includes(p.toLowerCase())}const pt={},Ze=p=>{console.error(p)},Rt=(p,...C)=>{console.log(`WARN: ${p}`,...C)},nt=(p,C)=>{pt[`${p}/${C}`]||(console.log(`Deprecated as of ${p}. ${C}`),pt[`${p}/${C}`]=!0)},Tt=new Error;function at(p,C,{key:B}){let ue=0;const Ue=p[B],Be={},W={};for(let $=1;$<=C.length;$++)W[$+ue]=Ue[$],Be[$+ue]=!0,ue+=v(C[$-1]);p[B]=W,p[B]._emit=Be,p[B]._multi=!0}function vt(p){if(Array.isArray(p.begin)){if(p.skip||p.excludeBegin||p.returnBegin)throw Ze("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Tt;if(typeof p.beginScope!="object"||p.beginScope===null)throw Ze("beginScope must be object"),Tt;at(p,p.begin,{key:"beginScope"}),p.begin=O(p.begin,{joinWith:""})}}function Mt(p){if(Array.isArray(p.end)){if(p.skip||p.excludeEnd||p.returnEnd)throw Ze("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Tt;if(typeof p.endScope!="object"||p.endScope===null)throw Ze("endScope must be object"),Tt;at(p,p.end,{key:"endScope"}),p.end=O(p.end,{joinWith:""})}}function pn(p){p.scope&&typeof p.scope=="object"&&p.scope!==null&&(p.beginScope=p.scope,delete p.scope)}function zt(p){pn(p),typeof p.beginScope=="string"&&(p.beginScope={_wrap:p.beginScope}),typeof p.endScope=="string"&&(p.endScope={_wrap:p.endScope}),vt(p),Mt(p)}function jt(p){function C(W,$){return new RegExp(h(W),"m"+(p.case_insensitive?"i":"")+(p.unicodeRegex?"u":"")+($?"g":""))}class B{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule($,ee){ee.position=this.position++,this.matchIndexes[this.matchAt]=ee,this.regexes.push([ee,$]),this.matchAt+=v($)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const $=this.regexes.map(ee=>ee[1]);this.matcherRe=C(O($,{joinWith:"|"}),!0),this.lastIndex=0}exec($){this.matcherRe.lastIndex=this.lastIndex;const ee=this.matcherRe.exec($);if(!ee)return null;const Oe=ee.findIndex((Qt,gn)=>gn>0&&Qt!==void 0),De=this.matchIndexes[Oe];return ee.splice(0,Oe),Object.assign(ee,De)}}class ue{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher($){if(this.multiRegexes[$])return this.multiRegexes[$];const ee=new B;return this.rules.slice($).forEach(([Oe,De])=>ee.addRule(Oe,De)),ee.compile(),this.multiRegexes[$]=ee,ee}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule($,ee){this.rules.push([$,ee]),ee.type==="begin"&&this.count++}exec($){const ee=this.getMatcher(this.regexIndex);ee.lastIndex=this.lastIndex;let Oe=ee.exec($);if(this.resumingScanAtSamePosition()&&!(Oe&&Oe.index===this.lastIndex)){const De=this.getMatcher(0);De.lastIndex=this.lastIndex+1,Oe=De.exec($)}return Oe&&(this.regexIndex+=Oe.position+1,this.regexIndex===this.count&&this.considerAll()),Oe}}function Ue(W){const $=new ue;return W.contains.forEach(ee=>$.addRule(ee.begin,{rule:ee,type:"begin"})),W.terminatorEnd&&$.addRule(W.terminatorEnd,{type:"end"}),W.illegal&&$.addRule(W.illegal,{type:"illegal"}),$}function Be(W,$){const ee=W;if(W.isCompiled)return ee;[ct,Nt,zt,G].forEach(De=>De(W,$)),p.compilerExtensions.forEach(De=>De(W,$)),W.__beforeBegin=null,[wt,ht,A].forEach(De=>De(W,$)),W.isCompiled=!0;let Oe=null;return typeof W.keywords=="object"&&W.keywords.$pattern&&(W.keywords=Object.assign({},W.keywords),Oe=W.keywords.$pattern,delete W.keywords.$pattern),Oe=Oe||/\w+/,W.keywords&&(W.keywords=ae(W.keywords,p.case_insensitive)),ee.keywordPatternRe=C(Oe,!0),$&&(W.begin||(W.begin=/\B|\b/),ee.beginRe=C(ee.begin),!W.end&&!W.endsWithParent&&(W.end=/\B|\b/),W.end&&(ee.endRe=C(ee.end)),ee.terminatorEnd=h(ee.end)||"",W.endsWithParent&&$.terminatorEnd&&(ee.terminatorEnd+=(W.end?"|":"")+$.terminatorEnd)),W.illegal&&(ee.illegalRe=C(W.illegal)),W.contains||(W.contains=[]),W.contains=[].concat(...W.contains.map(function(De){return Ft(De==="self"?W:De)})),W.contains.forEach(function(De){Be(De,ee)}),W.starts&&Be(W.starts,$),ee.matcher=Ue(ee),ee}if(p.compilerExtensions||(p.compilerExtensions=[]),p.contains&&p.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return p.classNameAliases=u(p.classNameAliases||{}),Be(p)}function nn(p){return p?p.endsWithParent||nn(p.starts):!1}function Ft(p){return p.variants&&!p.cachedVariants&&(p.cachedVariants=p.variants.map(function(C){return u(p,{variants:null},C)})),p.cachedVariants?p.cachedVariants:nn(p)?u(p,{starts:p.starts?u(p.starts):null}):Object.isFrozen(p)?u(p):p}var un="11.12.0";class Zt extends Error{constructor(C,B){super(C),this.name="HTMLInjectionError",this.html=B}}const T=n,re=u,ge=Symbol("nomatch"),Ie=7,Qe=function(p){const C=Object.create(null),B=Object.create(null),ue=[];let Ue=!0;const Be="Could not find the language '{}', did you forget to load/include a language module?",W={disableAutodetect:!0,name:"Plain text",contains:[]};let $={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:f};function ee(M){return $.noHighlightRe.test(M)}function Oe(M){let V=M.className+" ";V+=M.parentNode?M.parentNode.className:"";const de=$.languageDetectRe.exec(V);if(de){const Ne=$t(de[1]);return Ne||(Rt(Be.replace("{}",de[1])),Rt("Falling back to no-highlight mode for this block.",M)),Ne?de[1]:"no-highlight"}return V.split(/\s+/).find(Ne=>ee(Ne)||$t(Ne))}function De(M,V,de){let Ne="",Le="";typeof V=="object"?(Ne=M,de=V.ignoreIllegals,Le=V.language):(nt("10.7.0","highlight(lang, code, ...args) has been deprecated."),nt("10.7.0",`Please use highlight(code, options) instead.
48
- https://github.com/highlightjs/highlight.js/issues/2277`),Le=M,Ne=V),de===void 0&&(de=!0);const gt={code:Ne,language:Le};Rn("before:highlight",gt);const It=gt.result?gt.result:Qt(gt.language,gt.code,de);return It.code=gt.code,Rn("after:highlight",It),It}function Qt(M,V,de,Ne){const Le=Object.create(null);function gt(U,q){return U.keywords[q]}function It(){if(!te.keywords){Ve.addText(fe);return}let U=0;te.keywordPatternRe.lastIndex=0;let q=te.keywordPatternRe.exec(fe),se="";for(;q;){se+=fe.substring(U,q.index);const Ce=lt.case_insensitive?q[0].toLowerCase():q[0],Ke=gt(te,Ce);if(Ke){const[Ut,cr]=Ke;if(Ve.addText(se),se="",Le[Ce]=(Le[Ce]||0)+1,Le[Ce]<=Ie&&(yn+=cr),Ut.startsWith("_"))se+=q[0];else{const Ru=lt.classNameAliases[Ut]||Ut;Ot(q[0],Ru)}}else se+=q[0];U=te.keywordPatternRe.lastIndex,q=te.keywordPatternRe.exec(fe)}se+=fe.substring(U),Ve.addText(se)}function sn(){if(fe==="")return;let U=null;if(typeof te.subLanguage=="string"){if(!C[te.subLanguage]){Ve.addText(fe);return}U=Qt(te.subLanguage,fe,!0,Pt[te.subLanguage]),Pt[te.subLanguage]=U._top}else U=Gn(fe,te.subLanguage.length?te.subLanguage:null);te.relevance>0&&(yn+=U.relevance),Ve.__addSublanguage(U._emitter,U.language)}function ut(){te.subLanguage!=null?sn():It(),fe=""}function Ot(U,q){U!==""&&(Ve.startScope(q),Ve.addText(U),Ve.endScope())}function Vn(U,q){let se=1;const Ce=q.length-1;for(;se<=Ce;){if(!U._emit[se]){se++;continue}const Ke=lt.classNameAliases[U[se]]||U[se],Ut=q[se];Ke?Ot(Ut,Ke):(fe=Ut,It(),fe=""),se++}}function Su(U,q){return U.scope&&typeof U.scope=="string"&&Ve.openNode(lt.classNameAliases[U.scope]||U.scope),U.beginScope&&(U.beginScope._wrap?(Ot(fe,lt.classNameAliases[U.beginScope._wrap]||U.beginScope._wrap),fe=""):U.beginScope._multi&&(Vn(U.beginScope,q),fe="")),te=Object.create(U,{parent:{value:te}}),te}function Cu(U,q,se){let Ce=R(U.endRe,se);if(Ce){if(U["on:end"]){const Ke=new t(U);U["on:end"](q,Ke),Ke.isMatchIgnored&&(Ce=!1)}if(Ce){for(;U.endsParent&&U.parent;)U=U.parent;return U}}if(U.endsWithParent)return Cu(U.parent,q,se)}function ir(U){return te.matcher.regexIndex===0?(fe+=U[0],1):(xn=!0,0)}function or(U){const q=U[0],se=U.rule,Ce=new t(se),Ke=[se.__beforeBegin,se["on:begin"]];for(const Ut of Ke)if(Ut&&(Ut(U,Ce),Ce.isMatchIgnored))return ir(q);return se.skip?fe+=q:(se.excludeBegin&&(fe+=q),ut(),!se.returnBegin&&!se.excludeBegin&&(fe=q)),Su(se,U),se.returnBegin?0:q.length}function Nu(U){const q=U[0],se=V.substring(U.index),Ce=Cu(te,U,se);if(!Ce)return ge;const Ke=te;te.endScope&&te.endScope._wrap?(ut(),Ot(q,te.endScope._wrap)):te.endScope&&te.endScope._multi?(ut(),Vn(te.endScope,U)):Ke.skip?fe+=q:(Ke.returnEnd||Ke.excludeEnd||(fe+=q),ut(),Ke.excludeEnd&&(fe=q));do te.scope&&Ve.closeNode(),!te.skip&&!te.subLanguage&&(yn+=te.relevance),te=te.parent;while(te!==Ce.parent);return Ce.starts&&Su(Ce.starts,U),Ke.returnEnd?0:q.length}function sr(){const U=[];for(let q=te;q!==lt;q=q.parent)q.scope&&U.unshift(q.scope);U.forEach(q=>Ve.openNode(q))}let bn={};function In(U,q){const se=q&&q[0];if(fe+=U,se==null)return ut(),0;if(bn.type==="begin"&&q.type==="end"&&bn.index===q.index&&se===""){if(fe+=V.slice(q.index,q.index+1),!Ue){const Ce=new Error(`0 width match regex (${M})`);throw Ce.languageName=M,Ce.badRule=bn.rule,Ce}return 1}if(bn=q,q.type==="begin")return or(q);if(q.type==="illegal"&&!de){const Ce=new Error('Illegal lexeme "'+se+'" for mode "'+(te.scope||"<unnamed>")+'"');throw Ce.mode=te,Ce}else if(q.type==="end"){const Ce=Nu(q);if(Ce!==ge)return Ce}if(q.type==="illegal"&&se==="")return q.index===V.length||(fe+=`
49
- `),1;if(qn>1e5&&qn>q.index*3)throw new Error("potential infinite loop, way more iterations than matches");return fe+=se,se.length}const lt=$t(M);if(!lt)throw Ze(Be.replace("{}",M)),new Error('Unknown language: "'+M+'"');const Wn=jt(lt);let On="",te=Ne||Wn;const Pt={},Ve=new $.__emitter($);sr();let fe="",yn=0,yt=0,qn=0,xn=!1;try{if(lt.__emitTokens)lt.__emitTokens(V,Ve);else{for(te.matcher.considerAll();;){qn++,xn?xn=!1:te.matcher.considerAll(),te.matcher.lastIndex=yt;const U=te.matcher.exec(V);if(!U)break;const q=V.substring(yt,U.index),se=In(q,U);yt=U.index+se}In(V.substring(yt))}return Ve.finalize(),On=Ve.toHTML(),{language:M,value:On,relevance:yn,illegal:!1,_emitter:Ve,_top:te}}catch(U){if(U.message&&U.message.includes("Illegal"))return{language:M,value:T(V),illegal:!0,relevance:0,_illegalBy:{message:U.message,index:yt,context:V.slice(yt-100,yt+100),mode:U.mode,resultSoFar:On},_emitter:Ve};if(Ue)return{language:M,value:T(V),illegal:!1,relevance:0,errorRaised:U,_emitter:Ve,_top:te};throw U}}function gn(M){const V={value:T(M),illegal:!1,relevance:0,_top:W,_emitter:new $.__emitter($)};return V._emitter.addText(M),V}function Gn(M,V){V=V||$.languages||Object.keys(C);const de=gn(M),Ne=V.filter($t).filter(Nn).map(ut=>Qt(ut,M,!1));Ne.unshift(de);const Le=Ne.sort((ut,Ot)=>{if(ut.relevance!==Ot.relevance)return Ot.relevance-ut.relevance;if(ut.language&&Ot.language){if($t(ut.language).supersetOf===Ot.language)return 1;if($t(Ot.language).supersetOf===ut.language)return-1}return 0}),[gt,It]=Le,sn=gt;return sn.secondBest=It,sn}function _u(M,V,de){const Ne=V&&B[V]||de;M.classList.add("hljs"),M.classList.add(`language-${Ne}`)}function En(M){let V=null;const de=Oe(M);if(ee(de))return;if(Rn("before:highlightElement",{el:M,language:de}),M.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",M);return}if(M.children.length>0&&($.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(M)),$.throwUnescapedHTML))throw new Zt("One of your code blocks includes unescaped HTML.",M.innerHTML);V=M;const Ne=V.textContent,Le=de?De(Ne,{language:de,ignoreIllegals:!0}):Gn(Ne);M.innerHTML=Le.value,M.dataset.highlighted="yes",_u(M,de,Le.language),M.result={language:Le.language,re:Le.relevance,relevance:Le.relevance},Le.secondBest&&(M.secondBest={language:Le.secondBest.language,relevance:Le.secondBest.relevance}),Rn("after:highlightElement",{el:M,result:Le,text:Ne})}function mu(M){$=re($,M)}const zn=()=>{Cn(),nt("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function tr(){Cn(),nt("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let rn=!1;function Cn(){function M(){Cn()}if(document.readyState==="loading"){rn||window.addEventListener("DOMContentLoaded",M,!1),rn=!0;return}document.querySelectorAll($.cssSelector).forEach(En)}function nr(M,V){let de=null;try{de=V(p)}catch(Ne){if(Ze("Language definition for '{}' could not be registered.".replace("{}",M)),Ue)Ze(Ne);else throw Ne;de=W}de.name||(de.name=M),C[M]=de,de.rawDefinition=V.bind(null,p),de.aliases&&$n(de.aliases,{languageName:M})}function $e(M){delete C[M];for(const V of Object.keys(B))B[V]===M&&delete B[V]}function on(){return Object.keys(C)}function $t(M){return M=(M||"").toLowerCase(),C[M]||C[B[M]]}function $n(M,{languageName:V}){typeof M=="string"&&(M=[M]),M.forEach(de=>{B[de.toLowerCase()]=V})}function Nn(M){const V=$t(M);return V&&!V.disableAutodetect}function Au(M){M["before:highlightBlock"]&&!M["before:highlightElement"]&&(M["before:highlightElement"]=V=>{M["before:highlightBlock"](Object.assign({block:V.el},V))}),M["after:highlightBlock"]&&!M["after:highlightElement"]&&(M["after:highlightElement"]=V=>{M["after:highlightBlock"](Object.assign({block:V.el},V))})}function Tu(M){Au(M),ue.push(M)}function ur(M){const V=ue.indexOf(M);V!==-1&&ue.splice(V,1)}function Rn(M,V){const de=M;ue.forEach(function(Ne){Ne[de]&&Ne[de](V)})}function rr(M){return nt("10.7.0","highlightBlock will be removed entirely in v12.0"),nt("10.7.0","Please use highlightElement now."),En(M)}Object.assign(p,{highlight:De,highlightAuto:Gn,highlightAll:Cn,highlightElement:En,highlightBlock:rr,configure:mu,initHighlighting:zn,initHighlightingOnLoad:tr,registerLanguage:nr,unregisterLanguage:$e,listLanguages:on,getLanguage:$t,registerAliases:$n,autoDetection:Nn,inherit:re,addPlugin:Tu,removePlugin:ur}),p.debugMode=function(){Ue=!1},p.safeMode=function(){Ue=!0},p.versionString=un,p.regex={concat:N,lookahead:E,either:D,optional:g,anyNumberOfTimes:_};for(const M in ze)typeof ze[M]=="object"&&e(ze[M]);return Object.assign(p,ze),p},ke=Qe({});return ke.newInstance=()=>Qe({}),yr=ke,ke.HighlightJS=ke,ke.default=ke,yr}var jd=Xd();const du=Kd(jd);function Zd(e){const t=e.regex,n=e.COMMENT("--","$"),u={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},r={begin:/"/,end:/"/,contains:[{match:/""/}]},i=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],s=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],c=["add","asc","collation","desc","final","first","last","view"],l=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],f=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],h=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],E=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],_=f,g=[...l,...c].filter(O=>!f.includes(O)),N={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},I={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},D={match:t.concat(/\b/,t.either(..._),/\s*\(/),relevance:0,keywords:{built_in:_}};function v(O){return t.concat(/\b/,t.either(...O.map(L=>L.replace(/\s+/,"\\s+"))),/\b/)}const R={scope:"keyword",match:v(E),relevance:0};function k(O,{exceptions:L,when:P}={}){const Y=P;return L=L||[],O.map(Q=>Q.match(/\|\d+$/)||L.includes(Q)?Q:Y(Q)?`${Q}|0`:Q)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:k(g,{when:O=>O.length<3}),literal:i,type:s,built_in:h},contains:[{scope:"type",match:v(o)},R,D,N,u,r,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,I]}}function Qd(e){const t=e.COMMENT("--","$"),n="[a-zA-Z_][a-zA-Z_0-9$]*",u="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",r="<<\\s*"+n+"\\s*>>",i="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",o="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",s="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",c="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",l=c.trim().split(" ").map(function(N){return N.split("|")[0]}).join("|"),f="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",h="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",E="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",g="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(N){return N.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:i+s+o,built_in:f+h+E},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:e.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+g+")\\s*\\("},{begin:"\\.("+l+")\\b"},{begin:"\\b("+l+")\\s+PATH\\b",keywords:{keyword:"PATH",type:c.replace("PATH ","")}},{className:"type",begin:"\\b("+l+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},e.END_SAME_AS_BEGIN({begin:u,end:u,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:r,relevance:10}]}}const oo="[A-Za-z$_][0-9A-Za-z$_]*",Jd=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],ef=["true","false","null","undefined","NaN","Infinity"],Rs=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Is=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Os=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],tf=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],nf=[].concat(Os,Rs,Is);function uf(e){const t=e.regex,n=(J,{after:pe})=>{const be="</"+J[0].slice(1);return J.input.indexOf(be,pe)!==-1},u=oo,r={begin:"<>",end:"</>"},i=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(J,pe)=>{const be=J[0].length+J.index,Ae=J.input[be];if(Ae==="<"||Ae===","){pe.ignoreMatch();return}Ae===">"&&(n(J,{after:be})||pe.ignoreMatch());let qe;const je=J.input.substring(be);if(qe=je.match(/^\s*=/)){pe.ignoreMatch();return}if((qe=je.match(/^\s+extends\s+/))&&qe.index===0){pe.ignoreMatch();return}}},s={$pattern:oo,keyword:Jd,literal:ef,built_in:nf,"variable.language":tf},c="[0-9](_?[0-9])*",l=`\\.(${c})`,f="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",h={className:"number",variants:[{begin:`(\\b(${f})((${l})|\\.)?|(${l}))[eE][+-]?(${c})\\b`},{begin:`\\b(${f})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},E={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},_={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"xml"}},g={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"css"}},N={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"graphql"}},I={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,E]},v={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:u+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},R=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,g,N,I,{match:/\$\d+/},h];E.contains=R.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(R)});const k=[].concat(v,E.contains),O=k.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(k)}]),L={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:O},P={variants:[{match:[/class/,/\s+/,u,/\s+/,/extends/,/\s+/,t.concat(u,"(",t.concat(/\./,u),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,u],scope:{1:"keyword",3:"title.class"}}]},Y={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Rs,...Is]}},Q={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},ce={variants:[{match:[/function/,/\s+/,u,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[L],illegal:/%/},oe={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Re(J){return t.concat("(?!",J.join("|"),")")}const H={match:t.concat(/\b/,Re([...Os,"super","import","await"].map(J=>`${J}\\s*\\(`)),u,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},X={begin:t.concat(/\./,t.lookahead(t.concat(u,/(?![0-9A-Za-z$_(])/))),end:u,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},j={match:[/get|set/,/\s+/,u,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},L]},Ee="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",Fe={match:[/const|var|let/,/\s+/,u,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(Ee)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[L]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:Y},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),Q,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,g,N,I,v,{match:/\$\d+/},h,Y,{scope:"attr",match:u+t.lookahead(":"),relevance:0},Fe,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[v,e.REGEXP_MODE,{className:"function",begin:Ee,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:i},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},ce,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[L,e.inherit(e.TITLE_MODE,{begin:u,className:"title.function"})]},{match:/\.\.\./,relevance:0},X,{match:"\\$"+u,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[L]},H,oe,P,j,{match:/\$[(.]/}]}}const Vu="[A-Za-z$_][0-9A-Za-z$_]*",ys=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],xs=["true","false","null","undefined","NaN","Infinity"],Ds=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],ks=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Ls=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],ws=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],vs=[].concat(Ls,Ds,ks);function rf(e){const t=e.regex,n=(J,{after:pe})=>{const be="</"+J[0].slice(1);return J.input.indexOf(be,pe)!==-1},u=Vu,r={begin:"<>",end:"</>"},i=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(J,pe)=>{const be=J[0].length+J.index,Ae=J.input[be];if(Ae==="<"||Ae===","){pe.ignoreMatch();return}Ae===">"&&(n(J,{after:be})||pe.ignoreMatch());let qe;const je=J.input.substring(be);if(qe=je.match(/^\s*=/)){pe.ignoreMatch();return}if((qe=je.match(/^\s+extends\s+/))&&qe.index===0){pe.ignoreMatch();return}}},s={$pattern:Vu,keyword:ys,literal:xs,built_in:vs,"variable.language":ws},c="[0-9](_?[0-9])*",l=`\\.(${c})`,f="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",h={className:"number",variants:[{begin:`(\\b(${f})((${l})|\\.)?|(${l}))[eE][+-]?(${c})\\b`},{begin:`\\b(${f})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},E={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},_={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"xml"}},g={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"css"}},N={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"graphql"}},I={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,E]},v={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:u+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},R=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,g,N,I,{match:/\$\d+/},h];E.contains=R.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(R)});const k=[].concat(v,E.contains),O=k.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(k)}]),L={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:O},P={variants:[{match:[/class/,/\s+/,u,/\s+/,/extends/,/\s+/,t.concat(u,"(",t.concat(/\./,u),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,u],scope:{1:"keyword",3:"title.class"}}]},Y={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Ds,...ks]}},Q={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},ce={variants:[{match:[/function/,/\s+/,u,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[L],illegal:/%/},oe={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Re(J){return t.concat("(?!",J.join("|"),")")}const H={match:t.concat(/\b/,Re([...Ls,"super","import","await"].map(J=>`${J}\\s*\\(`)),u,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},X={begin:t.concat(/\./,t.lookahead(t.concat(u,/(?![0-9A-Za-z$_(])/))),end:u,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},j={match:[/get|set/,/\s+/,u,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},L]},Ee="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",Fe={match:[/const|var|let/,/\s+/,u,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(Ee)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[L]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:Y},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),Q,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,g,N,I,v,{match:/\$\d+/},h,Y,{scope:"attr",match:u+t.lookahead(":"),relevance:0},Fe,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[v,e.REGEXP_MODE,{className:"function",begin:Ee,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:i},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},ce,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[L,e.inherit(e.TITLE_MODE,{begin:u,className:"title.function"})]},{match:/\.\.\./,relevance:0},X,{match:"\\$"+u,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[L]},H,oe,P,j,{match:/\$[(.]/}]}}function of(e){const t=e.regex,n=rf(e),u=Vu,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[n.exports.CLASS_REFERENCE]},s={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},c=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],l={$pattern:Vu,keyword:ys.concat(c),literal:xs,built_in:vs.concat(r),"variable.language":ws},f={className:"meta",begin:"@"+u},h=(N,I,D)=>{const v=N.contains.findIndex(R=>R.label===I);if(v===-1)throw new Error("can not find mode to replace");N.contains.splice(v,1,D)};Object.assign(n.keywords,l),n.exports.PARAMS_CONTAINS.push(f);const E=n.contains.find(N=>N.scope==="attr"),_=Object.assign({},E,{match:t.concat(u,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,E,_]),n.contains=n.contains.concat([f,i,o,_]),h(n,"shebang",e.SHEBANG()),h(n,"use_strict",s);const g=n.contains.find(N=>N.label==="func.def");return g.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}const sf="([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",cf={scope:"number",match:sf,relevance:0};function af(e){const t={className:"attr",begin:/(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},u=["true","false","null"],r={scope:"literal",beginKeywords:u.join(" ")};return{name:"JSON",aliases:["jsonc","json5"],keywords:{literal:u},contains:[t,n,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,r,cf,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function lf(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),u=/[\p{L}0-9._:-]+/u,r={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},i={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(i,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),c=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[r]},{begin:/'/,end:/'/,contains:[r]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[i,c,s,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[i,o,c,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:"css"}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:"javascript"}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:l}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function df(e){const t=e.regex,n={},u={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},u]});const r={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},i=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},s={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,r]};r.contains.push(s);const c={match:/\\"/},l={className:"string",begin:/'/,end:/'/},f={match:/\\'/},h={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},E=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],_=e.SHEBANG({binary:`(${E.join("|")})`,relevance:10}),g={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},N=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],I=["true","false"],D={match:/(\/[a-z._-]+)+/},v=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],R=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],k=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],O=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:N,literal:I,built_in:[...v,...R,"set","shopt",...k,...O]},contains:[_,e.SHEBANG(),g,h,i,o,D,s,c,l,f,n]}}function ff(e){const t=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),u=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","lazy","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],s={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:u,built_in:["__import__","abs","aiter","all","anext","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozendict","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","sentinel","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},c={className:"meta",begin:/^(>>>|\.\.\.) /},l={className:"subst",begin:/\{/,end:/\}/,keywords:s,illegal:/#/},f={begin:/\{\{/,relevance:0},h={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,c,f,l]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,c,f,l]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,f,l]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,f,l]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},E="[0-9](_?[0-9])*",_=`(\\b(${E}))?\\.(${E})|\\b(${E})\\.`,g=`\\b|${u.join("|")}`,N={className:"number",relevance:0,variants:[{begin:`(\\b(${E})|(${_}))[eE][+-]?(${E})[jJ]?(?=${g})`},{begin:`(${_})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${g})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${g})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${g})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${g})`},{begin:`\\b(${E})[jJ](?=${g})`}]},I={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:s,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},D={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:["self",c,N,h,e.HASH_COMMENT_MODE]}]};return l.contains=[h,N,c],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s,illegal:/(<\/|\?)|=>/,contains:[c,N,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},h,I,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[D]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[N,D,h]}]}}function hf(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",u={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},r={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},i={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},o={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,r]},s=e.inherit(o,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),E={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},_={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},g={begin:/\{/,end:/\}/,contains:[_],illegal:"\\n",relevance:0},N={begin:"\\[",end:"\\]",contains:[_],illegal:"\\n",relevance:0},I=[u,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},E,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},g,N,i,o],D=[...I];return D.pop(),D.push(s),_.contains=D,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:I}}function pf(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}const gf={sql:Zd,pgsql:Qd,javascript:uf,typescript:of,json:af,xml:lf,bash:df,python:ff,yaml:hf,plaintext:pf};for(const[e,t]of Object.entries(gf))du.registerLanguage(e,t);const Ms=[];function Ef(e,t){Ms.push({aliases:e,languageName:t}),du.registerAliases([...e],{languageName:t})}let xr=null;function bf(){for(const{aliases:e,languageName:t}of Ms)du.registerAliases([...e],{languageName:t})}const _f=/text-align:\s*(left|center|right)/;function mf(e){for(const t of["th_open","td_open"]){const n=e.renderer.rules[t]??((r,i,o,s,c)=>c.renderToken(r,i,o)),u=(r,i,o,s,c)=>{var h,E;const l=r[i],f=(l==null?void 0:l.attrIndex("style"))??-1;if(l&&l.attrs&&f>=0){const _=((h=l.attrs[f])==null?void 0:h[1])??"",g=(E=_f.exec(_))==null?void 0:E[1];l.attrs.splice(f,1),g&&l.attrSet("data-align",g)}return n(r,i,o,s,c)};e.renderer.rules[t]=u}}function Af(){if(xr)return xr;bf();const e=new Lt({html:!1,linkify:!0,breaks:!0,typographer:!1,highlight:(n,u)=>{if(u&&du.getLanguage(u))try{const r=du.highlight(n,{language:u,ignoreIllegals:!0}).value;return`<pre class="hljs"><code class="hljs language-${u}">${r}</code></pre>`}catch(r){kt.bestEffortFailed("fall through to markdown-it's escaped default",r)}return""}}),t=e.renderer.rules.link_open??((n,u,r,i,o)=>o.renderToken(n,u,r));return e.renderer.rules.link_open=(n,u,r,i,o)=>{const s=n[u];return s&&(s.attrSet("target","_blank"),s.attrSet("rel","noopener noreferrer")),t(n,u,r,i,o)},mf(e),xr=e,e}const so=["a","p","br","strong","em","code","pre","kbd","s","del","ul","ol","li","blockquote","hr","h1","h2","h3","h4","h5","h6","span","table","thead","tbody","tr","th","td"],Tf="img",Sf=["href","target","rel","src","alt","title","width","height","class"],Cf=/^(?:https?:|mailto:|tel:|data:image\/(?:png|jpe?g|gif|webp|svg\+xml);base64,)/i,Nf=["target","rel"];function Rf(e,t){if(!e)return"";const n=Af().render(e);return Yd.sanitize(n,{ALLOWED_TAGS:t!=null&&t.allowImages?[...so,Tf]:so,ALLOWED_ATTR:Sf,ALLOWED_URI_REGEXP:Cf,ADD_URI_SAFE_ATTR:Nf})}function If(e,t=!0){return Rf(e,{allowImages:t})}const Fs={info:"Info",success:"Success",warning:"Warning",error:"Error"};function Of(e){return e==="above"?Tn.AnchorPosition.ABOVE:Tn.AnchorPosition.BELOW}function yf(e){return e==="right"?Tn.AnchorAlignment.RIGHT:Tn.AnchorAlignment.LEFT}function Ps(e,t={}){const n=e.getBoundingClientRect();return{ownerWindow:Qs.getWindow(e),triggerEl:e,anchor:{top:n.top,left:n.left,width:n.width,height:n.height},anchorAlignment:yf(t.horizontal),anchorPosition:Of(t.vertical)}}const xf="vk_item_iu5b9",Df="vk_itemExiting_1AEmJ",kf="vk_closeFuse_uJM3j",Lf="vk_subtitleCollapse_TrzAH",wf="vk_detailsCollapse_nY1gW",vf="vk_subtitle_XM9-h",Mf="vk_detailsRow_QOjtY",Ff="vk_chevron_8399G",Pf="vk_mainRow_Or-HS",Uf="vk_icon_tpHzZ",Bf="vk_body_M1AsL",Hf="vk_titleRow_P14EL",Gf="vk_title_LULCY",zf="vk_timestamp_oi-zj",$f="vk_subtitleViewport_-M4DV",Vf="vk_toolbar_Pojzw",Wf="vk_actions_c2fy8",qf="vk_source_0ZwCJ",Yf="vk_progressRow_HGeTR vk_rowCenter_saaBE",Kf="vk_progress_oqKTw",Xf="vk_progressCancel_d41du",jf="vk_closeWrapper_al-7O",Zf="vk_closeButton_PbZLT",Qf="vk_fuseTrack_oN787",Jf="vk_fusePath_vX094",we={item:xf,itemExiting:Df,closeFuse:kf,subtitleCollapse:Lf,detailsCollapse:wf,subtitle:vf,detailsRow:Mf,chevron:Ff,mainRow:Pf,icon:Uf,body:Bf,titleRow:Hf,title:Gf,timestamp:zf,subtitleViewport:$f,toolbar:Vf,actions:Wf,source:qf,progressRow:Yf,progress:Kf,progressCancel:Xf,closeWrapper:jf,closeButton:Zf,fuseTrack:Qf,fusePath:Jf};function e1(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}var co=["<span",">","</span>"],t1=["<div",' tabindex="-1">',"</div>"],ao=["<div",">","","</div>"],n1=["<div","><span",' aria-hidden="true">','</span><div class="','"><div','><span class="','">',"</span>","</div>","</div>","</div>"],u1=["<div",">","</div>"],r1=["<div","><div",">","","</div></div>"],i1=["<svg",' viewBox="0 0 100 100" aria-hidden="true"',' style="','"><path',' d="M 50 3 H 79 A 18 18 0 0 1 97 21 V 79 A 18 18 0 0 1 79 97 H 21 A 18 18 0 0 1 3 79 V 21 A 18 18 0 0 1 21 3 Z"></path><path',' pathLength="100" stroke-dasharray="100 100" stroke-dashoffset="0" d="M 50 3 H 79 A 18 18 0 0 1 97 21 V 79 A 18 18 0 0 1 79 97 H 21 A 18 18 0 0 1 3 79 V 21 A 18 18 0 0 1 21 3 Z"></path></svg>'];const Dr=new WeakMap;function o1(e,t){const n=Oa(t-e);return S.t(n.key,n.values)}function s1(e){try{return Bn.formatDateTime(new Date(e))}catch{return new Date(e).toISOString()}}const c1={info:Se.VpInfoCircle,warning:Eo.VpAlertTriangle,error:Se.VpCircleX,success:Se.VpCircleCheck},lo={plug:Se.VpPlug,key:Se.VpKey,cloud:Se.VpCloud,database:Se.VpDatabase,"git-merge":Se.VpGitMerge,terminal:Se.VpTerminal,rocket:Se.VpRocket,bell:Se.VpBell,lock:Se.VpLock},Wu=e=>{const t=Ta(),n=m.useContext(qr.DesktopContextMenuContext),[u,r]=m.createSignal(!1);let i;m.onCleanup(()=>{i!==void 0&&clearTimeout(i)});const o=m.createMemo(()=>!Bt(e.item)),s=()=>{if(!u()){if(!o()||go.prefersReducedMotion(document)){e.controller.close(e.item.id);return}r(!0),i!==void 0&&clearTimeout(i),i=setTimeout(()=>e.controller.close(e.item.id),180)}},c=()=>e.controller.toggleExpanded(e.item.id),l=m.createMemo(()=>{const H=e.item.icon;return H&&lo[H]?lo[H]:c1[e.item.severity]}),f=m.createMemo(()=>o1(e.item.createdAt,t())),h=m.createMemo(()=>s1(e.item.createdAt)),E=m.createMemo(()=>e.controller.isSticky(e.item)),_=m.createMemo(()=>e.controller.duration(e.item)),g=m.createMemo(()=>{if(E())return!1;const H=_();return Number.isFinite(H)&&H>0}),[N,I]=m.createSignal(!1),[D,v]=m.createSignal(!1);m.onCleanup(()=>{const H=N(),X=D();if(!H&&!X)return;const j=e.item;if(j===void 0)return;const{id:Ee}=j,Fe=e.controller;queueMicrotask(()=>{H&&Fe.setHover(Ee,!1),X&&Fe.setFocus(Ee,!1)})});const[R,k]=m.createSignal(0),O=m.createMemo(()=>N()||D()||!!(e.item.hovered||e.item.focused));let L=!1;m.createEffect(()=>{const H=O();L&&!H&&k(X=>X+1),L=H});let P=e.item.expanded;m.createEffect(()=>{const H=e.item.expanded;H!==P&&(P=H,k(X=>X+1))});const Y=m.createMemo(()=>g()?`${e.item.id}-${_()}-${R()}`:null),Q=()=>e.item.announce??(e.item.severity==="error"?"assertive":"polite");m.createEffect(()=>{if(e.inCenter)return;const H=e.item.title,X=e.item.body,j=X?`${H}: ${X}`:H;Q()==="assertive"?e.controller.announcer.assertive(j):e.controller.announcer.polite(j)});const ce=m.createMemo(()=>{const H=e.item.body;return H?e.item.markdown?If(H,e.shell!==null):e1(H).replace(/\n/g,"<br>"):""}),oe=H=>{const X=e.shell;if(X===null||!n)return;if(H.preventDefault(),H.stopPropagation(),n.state()&&Dr.get(n)===e.item.id){n.close(),Dr.set(n,null);return}Dr.set(n,e.item.id);const j=H.currentTarget,Ee=e.item.source,Fe=e.item.neverShowAgainKey,J=Fe??e.item.remindKey??pu(Ee??"general",e.item.title),pe=[];if(Fe&&pe.push({label:S.t("Don't show again"),onSelect:()=>{X.dismissKey(Fe),s()}}),X.remindLaterEnabled()){const je=()=>{const st=new Date;return st.setDate(st.getDate()+1),st.setHours(9,0,0,0),st.getTime()-Date.now()};pe.push({label:S.t("Remind me in 15 minutes"),onSelect:()=>{X.remindLater(J,15*6e4),s()}}),pe.push({label:S.t("Remind me in 1 hour"),onSelect:()=>{X.remindLater(J,36e5),s()}}),pe.push({label:S.t("Remind me tomorrow morning"),onSelect:()=>{X.remindLater(J,je()),s()}})}if(Ee&&Ee!=="general"){const Ae=X.isSourceMuted(Ee);pe.push({label:Ae?S.t("Unmute notifications from this source"):S.t("Mute notifications from this source"),onSelect:()=>X.setSourceMuted(Ee,!Ae)})}const be=e.item.secondaryActions;if(be&&be.length>0){pe.length>0&&pe.push({type:"separator"});for(const Ae of be)pe.push({label:Ae.label,onSelect:()=>{Ae.onClick()}})}pe.length>0&&pe.push({type:"separator"}),pe.push({label:S.t("Notification settings…"),onSelect:()=>X.openSettings()}),n.openWithPlacement(Ps(j,{vertical:"auto",horizontal:"auto"}),pe)},Re=async H=>{try{await H.onClick()}finally{H.keepOpen||s()}};return a.ssrElement("div",a.mergeProps({get class(){return`${we.item} card ${u()?we.itemExiting:""}`},get id(){return e.inCenter?void 0:`notification-card-${e.item.id}`},tabIndex:-1,get"data-severity"(){return e.item.severity},get"data-expanded"(){return e.item.expanded},get"data-has-actions"(){return e.item.actions&&e.item.actions.length>0?"true":"false"},get"data-has-timer"(){return g()?"true":"false"}},()=>e.inCenter?{}:{"aria-live":Q()},{get"aria-atomic"(){return e.inCenter?void 0:"true"},get"aria-label"(){return S.t("{severity}: {title}",{severity:S.t(Fs[e.item.severity]),title:e.item.title})}}),[a.ssr(n1,a.ssrAttribute("class",a.escape(we.mainRow,!0),!1),a.ssrAttribute("class",a.escape(we.icon,!0),!1)+a.ssrAttribute("data-severity",a.escape(e.item.severity,!0),!1),a.escape(a.createComponent(a.Dynamic,{get component(){return l()},size:16})),`${a.escape(we.body,!0)} body`,a.ssrAttribute("class",a.escape(we.titleRow,!0),!1),`${a.escape(we.title,!0)} title`,a.escape(e.item.title),a.escape(a.createComponent(Vr.HoverTooltip,{get content(){return h()},delayMs:400,get children(){return a.ssr(co,a.ssrAttribute("class",a.escape(we.timestamp,!0),!1),a.escape(f()))}})),a.escape(a.createComponent(m.Show,{get when(){return e.item.body},get children(){return a.createComponent(Yu.OverlayScrollArea,{get rootClass(){return we.subtitleCollapse},get viewportClass(){return we.subtitleViewport},hideHorizontal:!0,get children(){return a.ssr(t1,a.ssrAttribute("class",a.escape(we.subtitle,!0),!1),ce())}})}})),a.escape(a.createComponent(vn.Panel.Toolbar,{get class(){return we.toolbar},get children(){return[a.createComponent(m.Show,{get when(){return e.item.body},get children(){return a.createComponent(ve.Button,{variant:"ghost",size:"sm",iconOnly:!0,get"aria-label"(){return a.memo(()=>!!e.item.expanded)()?S.t("Collapse"):S.t("Expand")},get title(){return a.memo(()=>!!e.item.expanded)()?S.t("Collapse"):S.t("Expand")},onClick:c,get children(){return a.createComponent(Tn.VpChevronDown,{get class(){return`${dr.iconScale.iconMd} ${we.chevron}`}})}})}}),a.createComponent(m.Show,{get when(){return e.shell!==null},get children(){return a.createComponent(ve.Button,{variant:"ghost",size:"sm",iconOnly:!0,get"aria-label"(){return S.t("More actions")},get title(){return S.t("More actions")},onMouseDown:H=>H.stopPropagation(),onClick:oe,get children(){return a.createComponent(Se.VpSettings,{get class(){return dr.iconScale.iconMd}})}})}}),a.createComponent(m.Show,{get when(){return o()},get children(){return a.ssr(ao,a.ssrAttribute("class",a.escape(we.closeWrapper,!0),!1),a.escape(a.createComponent(ve.Button,{variant:"ghost",size:"sm",iconOnly:!0,get class(){return`${we.closeButton} close-btn`},"data-testid":"notification-close-btn",get"aria-label"(){return S.t("Close")},get title(){return S.t("Close")},onClick:s,get children(){return a.createComponent(kr.VpClose,{get class(){return dr.iconScale.iconMd}})}})),a.escape(a.createComponent(m.Show,{keyed:!0,get when(){return Y()},children:H=>a.ssr(i1,a.ssrAttribute("class",a.escape(we.closeFuse,!0),!1),a.ssrAttribute("data-fuse-key",a.escape(H,!0),!1),a.ssrStyleProperty("--fuse-duration:",`${a.escape(_(),!0)}ms`),a.ssrAttribute("class",a.escape(we.fuseTrack,!0),!1),a.ssrAttribute("class",a.escape(we.fusePath,!0),!1))})))}})]}}))),a.escape(a.createComponent(m.Show,{get when(){return a.memo(()=>!!e.item.actions)()&&e.item.actions.length>0||typeof e.item.source=="string"&&e.item.source.length>0&&e.item.source!=="general"&&e.item.source!=="undefined"},get children(){return a.ssr(r1,a.ssrAttribute("class",a.escape(we.detailsCollapse,!0),!1),a.ssrAttribute("class",a.escape(we.detailsRow,!0),!1),a.escape(a.createComponent(m.Show,{get when(){return a.memo(()=>!!e.item.actions)()&&e.item.actions.length>0},get children(){return a.ssr(u1,a.ssrAttribute("class",a.escape(we.actions,!0),!1),a.escape(a.createComponent(m.For,{get each(){return e.item.actions},children:H=>a.createComponent(ve.Button,{get variant(){return H.primary?"primary":"secondary"},size:"sm",get class(){return`${H.primary?"primary ":""}btn`},onClick:()=>void Re(H),get children(){return H.label}})})))}})),a.escape(a.createComponent(m.Show,{get when(){return a.memo(()=>typeof e.item.source=="string"&&e.item.source.length>0&&e.item.source!=="general")()&&e.item.source!=="undefined"},get children(){return a.ssr(co,a.ssrAttribute("class",a.escape(we.source,!0),!1),a.escape(S.t("Source: {source}",{source:String(e.item.source)})))}})))}})),a.escape(a.createComponent(m.Show,{get when(){return a.memo(()=>!!e.item.progress)()&&!e.item.progress.done},get children(){return a.ssr(ao,a.ssrAttribute("class",a.escape(we.progressRow,!0),!1),a.escape(a.createComponent(m.Show,{get when(){var H;return typeof((H=e.item.progress)==null?void 0:H.value)=="number"},get fallback(){return a.createComponent(ot.Progress,{indeterminate:!0,size:"2xs",get class(){return we.progress},get ariaLabel(){return S.t("Progress")}})},get children(){return a.createComponent(ot.Progress,{get value(){var H;return((H=e.item.progress)==null?void 0:H.value)??0},max:1,size:"2xs",get class(){return we.progress},get ariaLabel(){return S.t("Progress")}})}})),a.escape(a.createComponent(m.Show,{get when(){var H;return(H=e.item.progress)==null?void 0:H.onCancel},get children(){return a.createComponent(ve.Button,{iconOnly:!0,variant:"ghost",size:"sm",get class(){return we.progressCancel},get title(){return S.t("Cancel")},get"aria-label"(){return S.t("Cancel")},onClick:()=>{var H,X;return(X=(H=e.item.progress)==null?void 0:H.onCancel)==null?void 0:X.call(H)},get children(){return a.createComponent(kr.VpClose,{})}})}})))}}))],!1)},ku=200,zr="notification.acceptPrimaryAction",$r="notification.clear",Pu="notifications.hideToasts",a1=`${Ht.ACCESSIBILITY_MODE_ENABLED_KEY} && (${Ht.FOCUS_CONTEXT_KEYS.notificationFocus} || ${Ht.FOCUS_CONTEXT_KEYS.notificationToastsVisible})`,l1=Ht.FOCUS_CONTEXT_KEYS.notificationToastsVisible,d1=`${Ht.FOCUS_CONTEXT_KEYS.notificationToastsVisible} && ${Ht.FOCUS_CONTEXT_KEYS.notificationFocus}`;function Us(e,t){const n=[e.commands.register({id:zr,handler:()=>t.acceptPrimaryAction(),metadata:{label:"Accept Notification Primary Action",category:"Notifications"}}),e.bindings.register({command:zr,key:"CmdOrCtrl+Shift+A",when:a1,weight:ku+1,source:"core"}),e.commands.register({id:$r,handler:()=>t.clearFocused(),metadata:{label:"Clear Notification",category:"Notifications"}}),e.bindings.register({command:$r,key:"Delete",mac:"Cmd+Backspace",when:Ht.FOCUS_CONTEXT_KEYS.notificationFocus,weight:ku,source:"core"}),e.commands.register({id:Pu,handler:()=>t.hideToasts(),metadata:{label:"Hide notifications",category:"Notifications"}}),e.bindings.register({command:Pu,key:"Escape",when:l1,weight:ku-50,source:"core"}),e.bindings.register({command:Pu,key:"Escape",when:d1,weight:ku+100,source:"core"})];return()=>{for(const u of n.reverse())u()}}const Bs={kind:"none"};function Hs(e){const t=e.notificationOverlay(qs.getMainWindow().window);return t?{kind:"native",port:t}:Bs}function Uu(e){return e&&e.width>0&&e.height>0?{x:e.x,y:e.y,width:e.width,height:e.height}:void 0}function f1(e){var t;return[(t=e.progress)==null?void 0:t.onCancel,e.defaultRoute,e.source,e.neverShowAgainKey,...(e.actions??[]).flatMap(n=>[n.id,n.label,n.primary,n.keepOpen,n.onClick]),...(e.secondaryActions??[]).flatMap(n=>[n.label,n.onClick])]}function h1(e){return{...e.value!==void 0?{value:e.value}:{},done:e.done??!1,hasCancel:typeof e.onCancel=="function"}}function p1(e){return e.map(t=>({label:t.label,...t.id?{id:t.id}:{},...t.primary!==void 0?{primary:t.primary}:{},...t.keepOpen!==void 0?{keepOpen:t.keepOpen}:{}}))}function g1(e,t){const n=fu(e,t.settings);return{id:e.id,itemRevision:t.revision,severity:e.severity,title:e.title,...e.body?{body:e.body}:{},...e.markdown!==void 0?{markdown:e.markdown}:{},...e.icon?{icon:e.icon}:{},...e.announce?{announce:e.announce}:{},...e.expanded!==void 0?{expanded:e.expanded}:{},...e.progress?{progress:h1(e.progress)}:{},duration:Number.isFinite(n)?n:0,sticky:hu(e,t.settings),hovered:e.hovered,focused:e.focused,sourceMuted:e.source?hn(e.source):!1,...t.bounds?{bounds:t.bounds}:{},...e.source?{source:e.source}:{},...e.neverShowAgainKey?{neverShowAgainKey:e.neverShowAgainKey}:{},...e.remindKey?{remindKey:e.remindKey}:{},...e.defaultRoute?{defaultRoute:e.defaultRoute}:{},...e.actions?{actions:p1(e.actions)}:{},...e.secondaryActions?{secondaryActions:e.secondaryActions.map(u=>({label:u.label}))}:{},createdAt:e.createdAt}}function E1(e){return{visible:e.visible,position:e.position,width:e.width,theme:e.theme,language:e.language,...e.appearance??{},generation:e.generation,reduceMotion:e.reduceMotion,animationDuration:e.animationDuration,remindLaterEnabled:e.remindLaterEnabled,sequence:e.sequence,...e.bounds?{bounds:e.bounds}:{},...e.clipBounds?{clipBounds:e.clipBounds}:{},items:e.items}}function b1(){const e=new Map;let t=0;return{revisionOf(n){const u=f1(n),r=e.get(n.id);if(r&&r.callbacks.length===u.length&&u.every((o,s)=>o===r.callbacks[s]))return r.revision;const i=++t;return e.set(n.id,{revision:i,callbacks:u}),i},current:n=>{var u;return(u=e.get(n))==null?void 0:u.revision},prune(n){for(const u of e.keys())n.some(r=>r.id===u)||e.delete(u)}}}function _1(e){const t=Math.min(...e.map(i=>i.x)),n=Math.min(...e.map(i=>i.y)),u=Math.max(...e.map(i=>i.x+i.width)),r=Math.max(...e.map(i=>i.y+i.height));return{x:t,y:n,width:u-t,height:r-n}}function m1(e,t){return!(e.x>=t.x+t.width||e.x+e.width<=t.x||e.y>=t.y+t.height||e.y+e.height<=t.y)}function A1(e){return e?{x:Math.round(e.x),y:Math.round(e.y),width:Math.round(e.width),height:Math.round(e.height)}:void 0}function T1(e){const t=i=>{var h,E;const o=e.hostEl(),s=(o==null?void 0:o.getBoundingClientRect())??i.getBoundingClientRect();let c=0,l=0,f=i;for(;f&&f!==o;)c+=f.offsetLeft,l+=f.offsetTop,f=f.offsetParent;return{x:s.x+c-(((h=e.scrollEl())==null?void 0:h.scrollLeft)??0),y:s.y+l-(((E=e.scrollEl())==null?void 0:E.scrollTop)??0),width:i.offsetWidth,height:i.offsetHeight}},n=()=>{const i=e.hostEl();if(!i)return;const o=e.cards().map(t).filter(s=>s.width>0&&s.height>0);return o.length>0?_1(o):Uu(i.getBoundingClientRect())},[u,r]=m.createSignal();return m.createEffect(()=>{const i=e.hostEl(),o=e.hostWindow.ResizeObserver;if(!i||!o)return;const s=()=>{const f=n();f&&r(f)},c=new o(s),l=e.scrollEl();l==null||l.addEventListener("scroll",s),l&&c.observe(l),c.observe(i),s(),m.onCleanup(()=>{c.disconnect(),l==null||l.removeEventListener("scroll",s)})}),{cardBounds:t,stackBounds:n,hostRect:u}}function S1(e,t){return m.createMemo(()=>{const n=ft.getVisibleBrowsers(e.hostWindow);if(n.length===0)return!1;const u=e.hostEl();if(!u)return!1;const r=t.hostRect()??t.stackBounds()??u.getBoundingClientRect();return r.width<=0||r.height<=0?!1:n.some(i=>m1(i.bounds,r))})}function C1(e,t,n){var r,i;if(t.actionType==="secondary"){const o=(r=e==null?void 0:e.secondaryActions)==null?void 0:r[t.actionIndex];o&&o.onClick();return}const u=(i=e==null?void 0:e.actions)==null?void 0:i[t.actionIndex];u&&(u.onClick(),u.keepOpen||n.close(t.id))}function N1(e,t,n){var u,r,i;switch(e.type){case"scroll-stack":(u=n.scrollEl())==null||u.scrollBy({top:e.deltaY});break;case"open-settings":n.shell.openSettings();break;case"cancel-progress":(i=(r=t.progress)==null?void 0:r.onCancel)==null||i.call(r);break;case"navigate":t.defaultRoute&&n.shell.navigate(t.defaultRoute);break;case"open-external":n.controller.openExternal(e.url);break;case"dismiss-key":n.shell.dismissKey(e.key);break;case"remind-later":n.shell.remindLater(e.key,e.ttlMs);break;case"mute-source":n.shell.setSourceMuted(e.source,e.muted);break}}function R1(e,t){const n=r=>t.items().find(i=>i.id===r),{controller:u}=t;m.onCleanup(e.onNotificationOverlayClose(r=>{t.isCurrent(r)&&u.close(r.id)})),m.onCleanup(e.onNotificationOverlayAction(r=>{t.isCurrent(r,!0)&&C1(n(r.id),r,u)})),m.onCleanup(e.onNotificationOverlayHover(r=>{t.isCurrent(r)&&u.setHover(r.id,r.hovered)})),m.onCleanup(e.onNotificationOverlayFocus(r=>{t.isCurrent(r)&&u.setFocus(r.id,r.focused)})),m.onCleanup(e.onNotificationOverlayPresented(t.onPresented)),m.onCleanup(e.onNotificationOverlayToggleExpanded(r=>{t.isCurrent(r)&&u.toggleExpanded(r.id)})),m.onCleanup(e.onNotificationOverlayCommand(r=>{if(!t.isCurrent(r,r.type!=="scroll-stack"))return;const i=n(r.id);i&&N1(r,i,t)}))}function I1(e,t){for(const n of e)n.hovered&&t.setHover(n.id,!1),n.focused&&t.setFocus(n.id,!1)}function O1(e,t,n,u){var s,c,l;const r=e.hostEl(),i=r?t.stackBounds()??t.hostRect()??r.getBoundingClientRect():void 0,o=f=>{const h=r==null?void 0:r.ownerDocument.getElementById(`notification-card-${f}`);return Uu(h?t.cardBounds(h):void 0)};return E1({visible:u.active,position:e.position(),width:e.width(),theme:((s=e.appearance())==null?void 0:s.theme)??((l=(c=e.hostWindow.document)==null?void 0:c.documentElement)!=null&&l.classList.contains("light")?"light":"dark"),language:S.appI18n.language,appearance:e.appearance(),generation:u.generation,sequence:u.sequence,reduceMotion:e.reduceMotion(),animationDuration:e.animationDuration(),remindLaterEnabled:e.settings().remindLaterEnabled,bounds:A1(Uu(i)),clipBounds:Uu(r==null?void 0:r.getBoundingClientRect()),items:e.visible().map(f=>g1(f,{revision:n.revisionOf(f),settings:e.settings(),bounds:o(f.id)}))})}function y1(e){const t=e.channel;if(t.kind==="none")return{nativeRendered:()=>!1};const n=t.port,u=Math.floor(performance.timeOrigin*1e3+performance.now());let r=0,i=!1;const o=b1(),s=T1(e),c=S1(e,s),[l,f]=m.createSignal(!1),h=(E,_=!1)=>e.ownsDisplay()&&i&&E.generation===u&&E.sequence<=r&&(!_||o.current(E.id)===E.itemRevision);return m.onMount(()=>R1(n,{...e,isCurrent:h,onPresented:E=>{E.generation!==u||E.sequence>r||f(i&&E.visible)}})),m.createEffect(()=>{const E=e.visible(),_=e.ownsDisplay()&&!e.isCenterOpen()&&E.length>0,g=c()&&_,N=i;i=g,N&&!g&&queueMicrotask(()=>{i||I1(e.items(),e.controller)}),o.prune(e.items()),g||f(!1),n.setNotificationOverlay(O1(e,s,o,{active:g,generation:u,sequence:++r}))}),m.onCleanup(()=>{n.setNotificationOverlay({visible:!1,position:e.position(),width:e.width(),items:[],generation:u,sequence:++r})}),{nativeRendered:l}}const x1="vk_host_-dTTD",D1="vk_scrollArea_FaEtH",k1="vk_stack_4LHtI",L1="vk_enter_GAjwE",w1="vk_ackOverlay_1dc3n",v1="vk_ackCenterWrap_ZPFTX",M1="vk_ackQueueHint_HL0SL",an={host:x1,scrollArea:D1,stack:k1,enter:L1,ackOverlay:w1,ackCenterWrap:v1,ackQueueHint:M1};var F1=["<div",">","</div>"],P1=["<p",">","</p>"],U1=["<div",' role="alertdialog" aria-modal="true" aria-labelledby="','"',"><div",' id="','">',"","</div></div>"];const B1=e=>{var _e;const t=po.useHostWindow().window,n=Sn.useKitHost(),u=n.notifications.stack,r=n.displayOwner.register(t);m.onCleanup(r.dispose);const[i,o]=Bu.createStore({items:[]}),s=K.notificationSettings.get(),[c,l]=m.createSignal(s),[f,h]=m.createSignal(),[E,_]=m.createSignal(s.toastPosition),g=()=>E(),[N,I]=m.createSignal(s.notificationWidth),[D,v]=m.createSignal(s.animationDuration),[R,k]=m.createSignal(s.reduceMotion),[O,L]=m.createSignal(),[P,Y]=m.createSignal(),[Q,ce]=m.createSignal(null),oe=qo(n,c),Re=ti(n),H=()=>i.items.filter(F=>F.priority==="acknowledgment-required"),X=()=>i.items.filter(F=>Kr(F)&&F.outOfSightSince===void 0),j=()=>H()[0]??null,Ee=()=>e.centerOpen(),Fe=F=>{F&&(l(ye=>({...ye,...F})),F.toastPosition&&_(F.toastPosition),typeof F.notificationWidth=="number"&&I(F.notificationWidth),(F.animationDuration==="fast"||F.animationDuration==="normal"||F.animationDuration==="slow")&&v(F.animationDuration),typeof F.reduceMotion=="boolean"&&k(F.reduceMotion))},J=()=>{var Pe;const F=X(),ye=Q(),Ge=ye!==null?F[ye]:F[0],ze=(Pe=Ge==null?void 0:Ge.actions)==null?void 0:Pe.find(ct=>ct.primary);!Ge||!ze||(ze.onClick(),ze.keepOpen||u.close(Ge.id))},pe=()=>{const F=X(),ye=Q();if(ye===null)return;const Ge=F[ye];!Ge||Bt(Ge)||(u.dismiss(Ge.id),ce(F.length<=1?null:Math.min(ye,F.length-2)))},be=()=>{X().length!==0&&(Ho(i.items).forEach(F=>u.dismiss(F)),ce(null))},Ae=Ht.useKeybindingsOptional(),qe=Ae===null,je=/Mac OS X|Macintosh/i.test(((_e=t.navigator)==null?void 0:_e.userAgent)??""),st=F=>{var ct;const ye=X();if(ye.length===0)return;if(qe&&!F.defaultPrevented&&xt.isKey(F,"Escape")){F.preventDefault(),be();return}const Ge=F.target;if(!Ge||typeof Ge.nodeType!="number"||!((ct=O())!=null&&ct.contains(Ge)))return;const ze=Q();if(xt.isKey(F,"ArrowDown")||xt.isKey(F,"PageDown")){F.preventDefault(),ce(ze===null?0:Math.min(ye.length-1,ze+1));return}if(xt.isKey(F,"ArrowUp")||xt.isKey(F,"PageUp")){F.preventDefault(),ce(ze===null?ye.length-1:Math.max(0,ze-1));return}if(xt.isKey(F,"Home")){F.preventDefault(),ce(0);return}if(xt.isKey(F,"End")){F.preventDefault(),ce(ye.length-1);return}if(ze===null)return;const Pe=ye[ze];if(Pe){if(xt.isKey(F,"ArrowRight")&&!Pe.expanded){F.preventDefault(),u.toggleExpanded(Pe.id);return}if(xt.isKey(F,"ArrowLeft")&&Pe.expanded){F.preventDefault(),u.toggleExpanded(Pe.id);return}if(qe&&!F.defaultPrevented&&(xt.isKey(F,"Delete")||je&&xt.isKey(F,"Backspace")&&F.metaKey)){F.preventDefault(),pe();return}(F.key===" "||xt.isKey(F,"Enter"))&&(F.preventDefault(),u.toggleExpanded(Pe.id))}};K.useSettingsSubscription(K.notificationSettings,Fe),Ae&&(Ht.createFocusContextKey({contextKeys:Ae.contextKeys,key:Ht.FOCUS_CONTEXT_KEYS.notificationFocus,containerRef:O}),m.createRenderEffect(()=>{Ae.contextKeys.setContext(Ht.FOCUS_CONTEXT_KEYS.notificationToastsVisible,r.ownsDisplay()&&!Ee()&&X().length>0)}),m.onCleanup(Us(Ae,{acceptPrimaryAction:J,clearFocused:pe,hideToasts:be}))),m.onMount(()=>{const F=t.document.documentElement,ye=()=>{const Pe=t.getComputedStyle(F),ct={};for(let ht=0;ht<Pe.length;ht++){const Nt=Pe.item(ht);Nt.startsWith("--")&&(ct[Nt]=Pe.getPropertyValue(Nt))}const wt={cssVariables:ct,fontFamily:Pe.fontFamily,fontSize:Pe.fontSize,theme:F.classList.contains("light")?"light":"dark"};h(ht=>JSON.stringify(ht)===JSON.stringify(wt)?ht:wt)};ye();const Ge=new t.MutationObserver(ye);Ge.observe(F,{attributes:!0,attributeFilter:["class","style","data-theme","data-palette"]}),m.onCleanup(()=>Ge.disconnect());const ze=u.subscribe(Pe=>{o("items",Bu.reconcile(Pe,{key:"id",merge:!0}))});t.addEventListener("keydown",st),m.onCleanup(()=>{ze(),t.removeEventListener("keydown",st)})}),m.createEffect(()=>{var F;(F=O())==null||F.style.setProperty("--notif-width",`${N()}px`)});const Xt=y1({channel:e.overlay??Hs(n.desktop),hostWindow:t,ownsDisplay:r.ownsDisplay,items:()=>i.items,visible:X,isCenterOpen:Ee,hostEl:O,scrollEl:P,cards:()=>{var F;return[...((F=O())==null?void 0:F.querySelectorAll(`.${an.enter}`))??[]]},position:E,width:N,appearance:f,reduceMotion:R,animationDuration:D,settings:c,controller:oe,shell:Re});return m.createEffect(()=>{const F=O();if(F){if(R()){F.style.setProperty("--notif-anim-duration","0ms");return}switch(D()){case"fast":F.style.setProperty("--notif-anim-duration","100ms");break;case"normal":F.style.setProperty("--notif-anim-duration","220ms");break;case"slow":F.style.setProperty("--notif-anim-duration","400ms");break}}}),Vr.createDialogShellFocus({open:()=>r.ownsDisplay()&&j()!==null,onDismiss:()=>{},ownerDocument:()=>globalThis.document,dismissDisabled:()=>!0}),[a.createComponent(di.HostPortal,{element:()=>O(),type:"toast",open:()=>!!(r.ownsDisplay()&&!Ee()&&X().length>0),idPrefix:"notification-toast",get children(){return a.createComponent(m.Show,{get when(){return a.memo(()=>!!r.ownsDisplay())()&&!Ee()},get children(){return a.ssrElement("div",a.mergeProps(()=>go.modalBackgroundExemption("notifications"),{get class(){return an.host},get"data-position"(){return g()},get"data-presenter"(){return Xt.nativeRendered()?"native":"dom"},"aria-label":"Notifications",tabIndex:-1}),a.escape(a.createComponent(Yu.OverlayScrollArea,{get rootClass(){return an.scrollArea},get viewportClass(){return an.stack},viewportRef:Y,hideHorizontal:!0,get children(){return a.createComponent(m.For,{get each(){return X()},children:(F,ye)=>a.ssr(F1,a.ssrAttribute("class",a.escape(an.enter,!0),!1)+a.ssrAttribute("data-focused",Q()===ye()?"true":"false",!1),a.escape(a.createComponent(Wu,{item:F,controller:oe,get shell(){return F.isolated?null:Re}})))})}})),!1)}})}}),a.createComponent(di.HostPortal,{modal:!0,open:()=>!!(r.ownsDisplay()&&j()),idPrefix:"notification-ack",get children(){return a.createComponent(m.Show,{keyed:!0,get when(){return a.memo(()=>!!r.ownsDisplay())()?j():null},children:F=>a.ssr(U1,a.ssrAttribute("class",a.escape(an.ackOverlay,!0),!1),`notif-ack-${a.escape(F.id,!0)}`,a.ssrAttribute("data-ack-queue-size",H().length>1?a.escape(H().length,!0):a.escape(void 0,!0),!1),a.ssrAttribute("class",a.escape(an.ackCenterWrap,!0),!1),`notif-ack-${a.escape(F.id,!0)}`,a.escape(a.createComponent(Wu,{item:F,controller:oe,get shell(){return F.isolated?null:Re}})),a.escape(a.createComponent(m.Show,{get when(){return H().length>1},get children(){return a.ssr(P1,a.ssrAttribute("class",a.escape(an.ackQueueHint,!0),!1),a.escape(S.t("+{count} pending acknowledgment",{count:H().length-1})))}})))})}})]},H1=ot.defineNotification({id:"onboarding.PageTourHost.info.1",source:"general",severity:"info",priority:"default",delivery:"in-app",kind:"message"},()=>({message:S.t("You can reopen this tour from Help → Page tours.")}));function qu(e){return e.getClientRects().length>0&&e.getBoundingClientRect().width>0&&e.getBoundingClientRect().height>0}function Lu(e){return t=>t.matches(e)&&qu(t)?t:Array.from(t.querySelectorAll(e)).find(qu)??null}var G1=["<span hidden","></span>"];function z1(e){const t=m.useContext(ft.ToolWindowContext),{tours:n,notifications:u,log:r}=Sn.useKitHost(),i=r.withTag("PageTour");let o;const[s,c]=m.createSignal(!1),[l,f]=m.createSignal(0),[h,E]=m.createSignal([]);let _=!1,g=!1,N=!1;const I={},D=()=>o.parentElement,v=()=>qu(D()),R=(L,P=!0)=>{var Y;c(!1),n.release(I),n.setActive(null),(Y=e.onTourActiveChange)==null||Y.call(e,!1);try{n.writeStatus(e.definition.pageId,L?"completed":"skipped")}catch(Q){i.warn("Could not save tour progress",Q)}_&&P&&u.notify(H1,{}),_=!1},k=()=>{n.setNeverShowAgain(!0),R(!1,!1)},O=(L=!1)=>{var Y;if(!v()||!n.claim(I))return;g=!1;const P=e.definition.steps.filter(Q=>{var ce;return((ce=Q.available)==null?void 0:ce.call(Q))!==!1});if(!P.length){n.release(I);return}E(P),f(0),_=L;try{n.writeStatus(e.definition.pageId,"shown")}catch(Q){i.warn("Could not save tour progress",Q)}n.setActive(e.definition.pageId),(Y=e.onTourActiveChange)==null||Y.call(e,!0),c(!0)};return m.onMount(()=>{const L=D(),P=L.hasAttribute("tabindex");P||(L.tabIndex=-1),m.onCleanup(()=>{P||L.removeAttribute("tabindex")});const Q=o.ownerDocument.defaultView;if(!Q)return;const ce=()=>Array.from(o.ownerDocument.querySelectorAll('[role="dialog"], [role="alertdialog"]')).some(j=>qu(j)&&!j.contains(D()));let oe=0;const Re=()=>{var j;if(!v()){oe=0,s()&&R(!1,!1);return}if(!(s()||ce()||((j=t==null?void 0:t.isReady)==null?void 0:j.call(t))===!1)&&!(++oe<2)){if(n.consumeRequest(e.definition.pageId)&&(g=!0),g){O();return}if(!N&&!n.skipWelcome())try{n.readStatus(e.definition.pageId)||O(!0)}catch(Ee){N=!0,i.warn("Could not read tour progress",Ee)}}},H=n.registerHost({page:e.definition.pageId,document:()=>o.ownerDocument,visible:v,start:()=>{g=!0,(s()||!ce())&&O()},dismiss:()=>{s()&&R(!1,!1)}}),X=Q.setInterval(Re,250);m.onCleanup(()=>{var j;Q.clearInterval(X),H(),n.release(I),n.activePage()===e.definition.pageId&&(n.setActive(null),(j=e.onTourActiveChange)==null||j.call(e,!1))})}),[a.ssr(G1,a.ssrAttribute("data-page-tour-host",a.escape(e.definition.pageId,!0),!1)),a.createComponent(m.Show,{get when(){return s()},get children(){return a.createComponent(vn.GuidedTour,{get document(){return o.ownerDocument},focusFallback:()=>v()?D():null,get steps(){return h()},get index(){return l()},target:()=>{var L;return((L=h()[l()])==null?void 0:L.target(D()))??null},onSelect:f,onClose:R,onNeverShowAgain:k})}})]}const $1={id:"notifications",pageId:"notifications",version:1,steps:[{id:"panel",title:"Notification Center",description:"Stay informed on database events, completed exports, query execution errors, and background system alerts.",target:Lu('[data-tour-target="notifications-panel"]')},{id:"actions",title:"Timeline Actions & Filter Options",description:"Search notifications, filter by priority or notification source, pin important entries, and export history to CSV or JSON.",target:Lu('[data-tour-target="notifications-actions"]')},{id:"settings",title:"Notification Settings & DND",description:"Open the notification menu to configure do-not-disturb, quiet hours, and notification delivery preferences.",target:Lu('[data-tour-target="notifications-settings"]')},{id:"timeline",title:"Interactive Timeline Cards",description:"Click notification entries to expand stack traces, inspect vendor error codes, or navigate directly to affected queries.",target:Lu('[data-tour-target="notifications-timeline"]')}]},V1=e=>Bt(e)&&e.priority!=="acknowledgment-required";function Gs(){const{stack:e}=Sn.useKitHost().notifications,[t,n]=Bu.createStore({items:[]});return m.onMount(()=>{const u=e.subscribe(r=>{n("items",Bu.reconcile(r.filter(V1),{key:"id",merge:!0}))});m.onCleanup(u)}),()=>t.items}function zs(e){const t=Sn.useKitHost(),n=qo(t,()=>K.notificationSettings.get()),u=ti(t);return a.createComponent(m.For,{get each(){return e.items},children:r=>a.createComponent(Wu,{item:r,controller:n,shell:u,inCenter:!0})})}function W1(e,t,n,u,r=2){return e<=0||e>n?0:Math.min(t,r+Math.floor((n-e)/u))}function Qn(e,t){e(n=>{const u=new Set(n);return u.has(t)?u.delete(t):u.add(t),u})}const q1="vk_rightRail_HtYMh",Y1="vk_notificationPanel_nrSZl",K1="vk_filterBar_WTQg3",X1="vk_notificationPanelHeader_aHtxT vk_headerRail_CLLzD",j1="vk_notificationPanelTitleWrap_cOfAP vk_titleWrapRail_b0Czp",Z1="vk_notificationPanelTitle_9iMrQ vk_titleSmMargin_PPvAx",Q1="vk_notificationPanelActions_7fRj6 vk_actionsRail_QqUv8",J1="vk_notificationActionIcon_d5EzT",eh="vk_notificationTimeline_K-mMI",th="vk_notificationEmpty_IU6kY",nh="vk_notificationItem_tm8HP",uh="vk_notificationGroup_4hkdy",rh="vk_notificationGroupToggle_Opmmd",ih="vk_notificationGroupBody_nlrmq",oh="vk_notificationItemSelected_DspyF",sh="vk_notificationItemCheckbox_knWVX",ch="vk_bulkActionBar_6MHEY",ah="vk_bulkActionCount_Mb4tN",lh="vk_notificationItemTop_Mt0D7",dh="vk_notificationToneDot_Z-LOj",fh="vk_notificationToneInfo_rxKOj",hh="vk_notificationToneSuccess_Bxc9E",ph="vk_notificationToneWarning_uBK0T",gh="vk_notificationToneError_p9EYY",Eh="vk_notificationItemTime_WT4cd",bh="vk_notificationItemCopyDone_P39uT",_h="vk_notificationItemMessage_G2mnV",mh="vk_notificationItemMeta_xdFUH",Ah="vk_notificationSourceLabel_VvB0i",Th="vk_priorityBadgeIcon_UaJX0",ie={rightRail:q1,notificationPanel:Y1,filterBar:K1,notificationPanelHeader:X1,notificationPanelTitleWrap:j1,notificationPanelTitle:Z1,notificationPanelActions:Q1,notificationActionIcon:J1,notificationTimeline:eh,notificationEmpty:th,notificationItem:nh,notificationGroup:uh,notificationGroupToggle:rh,notificationGroupBody:ih,notificationItemSelected:oh,notificationItemCheckbox:sh,bulkActionBar:ch,bulkActionCount:ah,notificationItemTop:lh,notificationToneDot:dh,notificationToneInfo:fh,notificationToneSuccess:hh,notificationToneWarning:ph,notificationToneError:gh,notificationItemTime:Eh,notificationItemCopyDone:bh,notificationItemMessage:_h,notificationItemMeta:mh,notificationSourceLabel:Ah,priorityBadgeIcon:Th};var Sh=["<h3",">","</h3>"],Ch=["<div",' data-tour-target="notifications-actions">',"</div>"],Nh=["<div",' role="toolbar"',"><span",">","</span>","","","","</div>"],Rh=["<span",">📌 ","</span>"],Ih=["<aside",' tabindex="-1"><section',' data-tour-target="notifications-panel">',"","","","","</section></aside>"],Oh=["<p",">","</p>"],yh=['<span class="','"></span>'],xh=["<span",">","</span>"],Dh=['<article class="','"><div',">",'<span class="','"></span><time',">","</time>","","","","</div><p",">","</p><div","><span",">","</span>","","","</div></article>"];function kh(e){return new Intl.DateTimeFormat(Bn.systemFormatLocale(),{hour:"2-digit",minute:"2-digit"}).format(new Date(e))}function Lh(e){return new Intl.DateTimeFormat(Bn.systemFormatLocale(),{year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date(e))}function fo(e){switch(e){case"success":return ie.notificationToneSuccess;case"error":return ie.notificationToneError;case"warning":return ie.notificationToneWarning;default:return ie.notificationToneInfo}}const wu=["error","warning","info","success"],wh=189,vh=27;function Mh(e){const t=po.useHostDocument(),n=Sn.useKitHost(),{notifications:u}=n,r=u.timeline,i=n.log.withTag("NotificationPanel"),o=T=>ft.openExternalUrl(n.desktop,i,T),s=T=>Hu(n.vendorErrors,T),[c,l]=m.createSignal(null),[f,h]=m.createSignal(0),[E,_]=m.createSignal(""),[g,N]=m.createSignal(null),[I,D]=m.createSignal(new Set),[v,R]=m.createSignal(!1),[k,O]=m.createSignal(new Set),[L,P]=m.createSignal(new Set),[Y,Q]=m.createSignal(new Set),[ce,oe]=m.createSignal(!1),[Re,H]=m.createSignal(0);let X=null;const j=qr.useDesktopContextMenu(),Ee=Gs(),Fe=m.createMemo(()=>Uo(E(),ce())),J=m.createMemo(()=>Bo(e.notificationTimeline(),{tones:I(),sources:L(),priorities:Y(),dateBounds:g(),searchMatcher:Fe()})),pe=m.createMemo(()=>{const T=new Set;for(const re of e.notificationTimeline())T.add(re.source);return Array.from(T).sort()}),be=m.createMemo(()=>J().filter(T=>T.pinned===!0)),[Ae,qe]=m.createSignal(0);K.useSettingsSubscription(K.notificationSettings,()=>{qe(T=>T+1)});const[je,st]=m.createSignal(new Set),Xt=m.createMemo(()=>{Ae();const T=K.notificationSettings.get();return T.timelineGroupingEnabled?Go(J(),T.timelineGroupBy):J().map(re=>({type:"entry",id:re.id,entry:re}))}),_e=T=>{Qn(st,T)},F=()=>E().trim()!==""||g()!==null||I().size>0||L().size>0||Y().size>0,ye=()=>{_(""),N(null),D(new Set),P(new Set),Q(new Set)},Ge=T=>{Qn(P,T)},ze=T=>{Qn(Q,T)},Pe=["urgent","acknowledgment-required","default","optional","silent"],ct=T=>{if(T.preventDefault(),T.stopPropagation(),j.state()!==null){j.close();return}const ge=T.currentTarget.getBoundingClientRect(),Ie=pe(),Qe={urgent:S.t("Urgent"),"acknowledgment-required":S.t("Acknowledgment required"),default:S.t("Default"),optional:S.t("Optional"),silent:S.t("Silent")};j.open(ge.left,ge.bottom+4,[{label:S.t("Use regex in search"),checked:()=>ce(),keepOpenOnSelect:!0,onSelect:()=>{oe(ke=>!ke)}},{type:"separator"},{label:S.t("Filter by priority"),submenu:Pe.map(ke=>({label:Qe[ke],checked:()=>Y().has(ke),keepOpenOnSelect:!0,onSelect:()=>ze(ke)}))},...Ie.length>0?[{label:S.t("Filter by source"),submenu:Ie.map(ke=>({label:An(ke).label,checked:()=>L().has(ke),keepOpenOnSelect:!0,onSelect:()=>Ge(ke)}))}]:[],{type:"separator"},{label:S.t("Clear advanced filters"),disabled:L().size===0&&Y().size===0,onSelect:()=>{P(new Set),Q(new Set)}}])},wt=T=>{Qn(D,T)},ht=()=>{const T=I();return T.size===0||T.size===wu.length?S.t("All tones"):Array.from(T).join(", ")},Nt=T=>{if(T.preventDefault(),T.stopPropagation(),j.state()!==null){j.close();return}const ge=T.currentTarget.getBoundingClientRect();j.open(ge.left,ge.bottom+4,[...wu.map(Ie=>({label:S.t(Fs[Ie]),checked:()=>I().has(Ie),keepOpenOnSelect:!0,onSelect:()=>wt(Ie)})),{type:"separator"},...I().size===wu.length?[{label:S.t("Select none"),onSelect:()=>{D(new Set)}}]:[{label:S.t("Select all"),onSelect:()=>{D(new Set(wu))}}]])};m.onMount(()=>{const T=r.subscribeUnread(h);m.onCleanup(T)});const A=T=>u.dismissEntry(T),G=T=>{const re={source:_o(T.source)?T.source:"general",priority:"urgent",recordTimeline:!1},ge=T.tone;ge==="error"?u.notify(zc,{timelineMessage:T.message,options:re}):ge==="warning"?u.notify($c,{timelineMessage:T.message,options:re}):ge==="success"?u.notify(Vc,{timelineMessage:T.message,options:re}):u.notify(Wc,{timelineMessage:T.message,options:re})},z=T=>{const re=s(T);re&&o(re.helpers.docsUrl(re.code))},le=()=>r.clear(),ae=T=>{Qn(O,T)},xe=()=>{R(!0),O(new Set)},At=()=>{R(!1),O(new Set)},pt=()=>{O(new Set(J().map(T=>T.id)))},Ze=()=>k().size,Rt=()=>{const T=k();return J().filter(re=>T.has(re.id)).map(re=>re.id)},nt=()=>{const T=Rt();T.length!==0&&(r.dismissMany(T),At())},Tt=T=>{const re=k(),ge=e.notificationTimeline().filter(Ie=>re.has(Ie.id));for(const Ie of ge)(Ie.pinned??!1)!==T&&r.togglePin(Ie.id)},at=async T=>{const re=J();if(re.length===0)return;const ge=n.desktop.fs,Qe=`notifications-${new Date().toISOString().replace(/[:T]/g,"-").slice(0,19)}.${T}`,ke=T==="csv"?[{name:"CSV",extensions:["csv"]}]:[{name:"JSON",extensions:["json"]}];try{const p=await ge.showSaveDialog({title:S.t("Export notifications"),defaultPath:Qe,filters:ke});if(!(p!=null&&p.filePath))return;const C=T==="csv"?$o(re):Vo(re);await ge.writeFile(p.filePath,C),u.notify(qc,{entryCount:re.length})}catch(p){u.notify(Yc,{cause:p})}},vt=()=>n.openNotificationSettings(),Mt=T=>{if(T.preventDefault(),T.stopPropagation(),j.state()!==null){j.close();return}const ge=T.currentTarget.getBoundingClientRect(),Ie=J().length===0;j.open(ge.left,ge.bottom+4,[{label:S.t("Export"),disabled:Ie,submenu:[{label:S.t("Export as CSV"),onSelect:()=>{at("csv")}},{label:S.t("Export as JSON"),onSelect:()=>{at("json")}}]},{type:"separator"},{label:S.t("Notification settings…"),onSelect:vt}])},pn=async T=>{var ge;const re=T.message.trim();if(re)try{if((ge=navigator.clipboard)!=null&&ge.writeText)await navigator.clipboard.writeText(re);else{const Ie=t,Qe=ot.createElement("textarea");Qe.value=re,Qe.setAttribute("readonly","true"),Qe.style.position="fixed",Qe.style.opacity="0",Ie.body.appendChild(Qe),Qe.select(),Ie.execCommand("copy"),Ie.body.removeChild(Qe)}l(T.id),X!==null&&window.clearTimeout(X),X=window.setTimeout(()=>{l(Ie=>Ie===T.id?null:Ie),X=null},1400)}catch(Ie){i.warn("Timeline entry could not be copied:",Ie)}};m.onCleanup(()=>{X!==null&&window.clearTimeout(X)}),m.onMount(()=>{});const zt=m.createMemo(()=>[{id:"select",icon:()=>a.createComponent(Se.VpSquareCheck,{get class(){return ie.notificationActionIcon}}),label:()=>S.t("Select multiple notifications"),disabled:()=>J().length===0,onSelect:xe},{id:"mark-read",icon:()=>a.createComponent(Se.VpMailOpened,{get class(){return ie.notificationActionIcon}}),label:()=>S.t("Mark all as read"),disabled:()=>f()===0,onSelect:()=>r.markSeen()},{id:"clear",icon:()=>a.createComponent(Se.VpTrash,{get class(){return ie.notificationActionIcon}}),label:()=>S.t("Clear all notifications"),disabled:()=>e.notificationTimeline().length===0,onSelect:le}]),jt=m.createMemo(()=>W1(Re(),zt().length,wh,vh)),nn=m.createMemo(()=>{const T=zt();return T.slice(0,T.length-jt())}),Ft=m.createMemo(()=>{const T=zt();return T.slice(T.length-jt())}),un=T=>{if(T.preventDefault(),T.stopPropagation(),j.state()!==null){j.close();return}j.openWithPlacement(Ps(T.currentTarget,{horizontal:"right"}),Ft().map(re=>({label:re.label(),icon:re.icon(),disabled:re.disabled(),onSelect:re.onSelect})))};return a.ssr(Ih,a.ssrAttribute("class",a.escape(ie.rightRail,!0),!1),a.ssrAttribute("class",a.escape(ie.notificationPanel,!0),!1),a.escape(a.createComponent(vn.Panel.Header,{get class(){return ie.notificationPanelHeader},get children(){return[a.createComponent(Wr.PressableSurface,{type:"button",get class(){return ie.notificationPanelTitleWrap},"data-tour-target":"notifications-settings",onClick:Mt,get title(){return S.t("Notification menu")},"aria-haspopup":"menu",get children(){return[a.ssr(Sh,a.ssrAttribute("class",a.escape(ie.notificationPanelTitle,!0),!1),a.escape(S.t("Notifications"))),a.createComponent(m.Show,{get when(){return f()>0},get children(){return a.createComponent(ot.Badge,{tone:"danger",size:"sm",get tooltip(){return S.t("{count} unread",{count:f()})},get children(){return f()>99?"99+":f()}})}})]}}),a.ssr(Ch,a.ssrAttribute("class",a.escape(ie.notificationPanelActions,!0),!1),a.escape(a.createComponent(m.Show,{get when(){return!v()},get fallback(){return a.createComponent(ve.Button,{variant:"ghost",size:"sm",onClick:At,get title(){return S.t("Exit selection mode")},get children(){return S.t("Cancel")}})},get children(){return[a.createComponent(m.For,{get each(){return nn()},children:T=>a.createComponent(ve.Button,{variant:"ghost",size:"sm",iconOnly:!0,get onClick(){return T.onSelect},get disabled(){return T.disabled()},get title(){return T.label()},get"aria-label"(){return T.label()},get children(){return T.icon()}})}),a.createComponent(m.Show,{get when(){return Ft().length>0},get children(){return a.createComponent(ve.Button,{variant:"ghost",size:"sm",iconOnly:!0,onClick:un,get title(){return S.t("More actions")},get"aria-label"(){return S.t("More actions")},get children(){return a.createComponent(Ys.VpDots,{get class(){return ie.notificationActionIcon}})}})}})]}})))]}})),a.escape(a.createComponent(m.Show,{get when(){return v()},get children(){return a.ssr(Nh,a.ssrAttribute("class",a.escape(ie.bulkActionBar,!0),!1),a.ssrAttribute("aria-label",a.escape(S.t("Bulk actions"),!0),!1),a.ssrAttribute("class",a.escape(ie.bulkActionCount,!0),!1),a.escape(S.t("{count} selected",{count:Ze()})),a.escape(a.createComponent(ve.Button,{variant:"ghost",size:"sm",onClick:pt,get disabled(){return J().length===0||Ze()===J().length},get title(){return S.t("Select all visible")},get children(){return S.t("Select all")}})),a.escape(a.createComponent(ve.Button,{variant:"ghost",size:"sm",onClick:()=>Tt(!0),get disabled(){return Ze()===0},get title(){return S.t("Pin selected")},get children(){return S.t("Pin")}})),a.escape(a.createComponent(ve.Button,{variant:"ghost",size:"sm",onClick:()=>Tt(!1),get disabled(){return Ze()===0},get title(){return S.t("Unpin selected")},get children(){return S.t("Unpin")}})),a.escape(a.createComponent(ve.Button,{variant:"ghost",size:"sm",onClick:nt,get disabled(){return Ze()===0},get title(){return S.t("Delete selected")},get leadingIcon(){return a.createComponent(Se.VpTrash,{get class(){return ie.notificationActionIcon}})},get children(){return S.t("Delete")}})))}})),a.escape(a.createComponent(bo,{get class(){return ie.filterBar},get searchValue(){return E()},onSearchInput:_,get searchPlaceholder(){return S.t("Search notifications…")},get dateRange(){return g()},onDateRangeChange:N,dateRangeAlign:"end",get children(){return[a.createComponent(ve.Button,{variant:"ghost",size:"sm",iconOnly:!0,get active(){return I().size>0},onClick:Nt,get title(){return a.memo(()=>I().size===0)()?S.t("Filter by tone"):S.t("Tone filter: {tones}",{tones:ht()})},get children(){return a.createComponent(Se.VpFilter,{get class(){return ie.notificationActionIcon}})}}),a.createComponent(ve.Button,{variant:"ghost",size:"sm",iconOnly:!0,get active(){return L().size>0||Y().size>0||ce()},onClick:ct,get title(){return S.t("Advanced filters (source, priority, regex)")},get children(){return a.createComponent(Se.VpAdjustments,{get class(){return ie.notificationActionIcon}})}}),a.createComponent(m.Show,{get when(){return F()},get children(){return a.createComponent(ve.Button,{variant:"ghost",size:"sm",onClick:ye,get title(){return S.t("Clear filters")},get children(){return S.t("Clear")}})}})]}})),a.escape(a.createComponent(Yu.OverlayScrollArea,{get viewportClass(){return ie.notificationTimeline},"data-tour-target":"notifications-timeline",get children(){return[a.createComponent(zs,{get items(){return Ee()}}),a.createComponent(m.Show,{get when(){return J().length>0},get fallback(){return a.createComponent(m.Show,{get when(){return F()||Ee().length===0},get children(){return a.ssr(Oh,a.ssrAttribute("class",a.escape(ie.notificationEmpty,!0),!1),F()?a.escape(S.t("No notifications match the current filter.")):a.escape(S.t("No notifications yet.")))}})},get children(){return[a.createComponent(m.Show,{get when(){return be().length>0},get children(){return a.createComponent(vn.Panel.Header,{get class(){return ie.notificationItemTop},get children(){return a.ssr(Rh,a.ssrAttribute("class",a.escape(ie.notificationSourceLabel,!0),!1),a.escape(S.t("Pinned ({count})",{count:be().length})))}})}}),a.createComponent(m.For,{get each(){return Xt()},children:T=>{if(T.type==="group"&&T.groupItems){const re=()=>je().has(T.id);return a.createComponent(vn.Disclosure,{get class(){return ie.notificationGroup},get toggleClass(){return ie.notificationGroupToggle},get open(){return re()},onToggle:()=>_e(T.id),get bodyClass(){return ie.notificationGroupBody},get title(){return[a.ssr(yh,`${a.escape(ie.notificationToneDot,!0)} ${a.escape(fo(T.groupTone??"info"),!0)}`),a.ssr(xh,a.ssrAttribute("class",a.escape(ie.notificationItemMessage,!0),!1),a.escape(S.t('{count} from "{source}"',{count:T.groupCount??0,source:An(T.groupSource??"").label})))]},get children(){return a.createComponent(m.For,{get each(){return T.groupItems},children:ge=>Zt(ge)})}})}return T.type==="entry"&&T.entry?Zt(T.entry):null}})]}})]}})),a.escape(a.createComponent(z1,{definition:$1})));function Zt(T){const re=()=>s(T);return a.ssr(Dh,`${a.escape(ie.notificationItem,!0)} ${v()&&k().has(T.id)?a.escape(ie.notificationItemSelected,!0):""}`,a.ssrAttribute("class",a.escape(ie.notificationItemTop,!0),!1),a.escape(a.createComponent(m.Show,{get when(){return v()},get children(){return a.createComponent(Vr.Checkbox,{get class(){return ie.notificationItemCheckbox},get checked(){return k().has(T.id)},onChange:()=>ae(T.id),get ariaLabel(){return S.t("Select notification")}})}})),`${a.escape(ie.notificationToneDot,!0)} ${a.escape(fo(T.tone),!0)}`,a.ssrAttribute("class",a.escape(ie.notificationItemTime,!0),!1)+a.ssrAttribute("datetime",a.escape(new Date(T.createdAt).toISOString(),!0),!1)+a.ssrAttribute("title",a.escape(Lh(T.createdAt),!0),!1),a.escape(kh(T.createdAt)),a.escape(a.createComponent(m.Show,{keyed:!0,get when(){return re()},children:ge=>a.createComponent(ve.Button,{variant:"ghost",size:"2xs",iconOnly:!0,onClick:()=>{z(T)},get title(){return S.t("Open {vendor} ({code})",{vendor:ge.helpers.docsLinkLabel,code:ge.helpers.formatCode(ge.code)})},get"aria-label"(){return S.t("Open {vendor} ({code})",{vendor:ge.helpers.docsLinkLabel,code:ge.helpers.formatCode(ge.code)})},get leadingIcon(){return a.createComponent(Se.VpBook,{get class(){return ie.notificationActionIcon}})}})})),a.escape(a.createComponent(ve.Button,{variant:"ghost",size:"2xs",iconOnly:!0,onClick:()=>G(T),get title(){return S.t("Show as toast again")},get"aria-label"(){return S.t("Show as toast again")},get leadingIcon(){return a.createComponent(Se.VpBellRinging,{get class(){return ie.notificationActionIcon}})}})),a.escape(a.createComponent(ve.Button,{variant:"ghost",size:"2xs",iconOnly:!0,get class(){return a.memo(()=>c()===T.id)()?ie.notificationItemCopyDone:void 0},onClick:()=>{pn(T)},get title(){return a.memo(()=>c()===T.id)()?S.t("Copied"):S.t("Copy log message")},get"aria-label"(){return a.memo(()=>c()===T.id)()?S.t("Copied"):S.t("Copy log message")},get children(){return a.createComponent(m.Show,{get when(){return c()===T.id},get fallback(){return a.createComponent(Xs.VpCopy,{get class(){return ie.notificationActionIcon}})},get children(){return a.createComponent(Ks.VpCheck,{get class(){return ie.notificationActionIcon}})}})}})),a.escape(a.createComponent(ve.Button,{variant:"ghost",size:"2xs",iconOnly:!0,onClick:()=>{A(T.id)},get title(){return S.t("Remove notification")},get"aria-label"(){return S.t("Remove notification")},get leadingIcon(){return a.createComponent(js.VpMinus,{get class(){return ie.notificationActionIcon}})}})),a.ssrAttribute("class",a.escape(ie.notificationItemMessage,!0),!1),a.escape(T.message),a.ssrAttribute("class",a.escape(ie.notificationItemMeta,!0),!1),a.ssrAttribute("class",a.escape(ie.notificationSourceLabel,!0),!1)+a.ssrAttribute("title",a.escape(An(T.source).description,!0),!1),a.escape(An(T.source).label),a.escape(a.createComponent(m.Show,{get when(){return T.priority==="urgent"},get children(){return a.createComponent(ot.Badge,{tone:"danger",size:"sm",children:"urgent"})}})),a.escape(a.createComponent(m.Show,{get when(){return T.priority==="silent"},get children(){return a.createComponent(ot.Badge,{tone:"neutral",size:"sm",get icon(){return a.createComponent(Se.VpBellOff,{get class(){return ie.priorityBadgeIcon}})},get tooltip(){return S.t("Silent — timeline only")},children:"silent"})}})),a.escape(a.createComponent(m.Show,{get when(){return hn(T.source)},get children(){return a.createComponent(ot.Badge,{tone:"warning",size:"sm",get tooltip(){return S.t("Source muted")},children:"muted"})}})))}}const Fh="vk_center_5Vlx7",Ph="vk_header_vo883",Uh="vk_title_JpYEU",Bh="vk_actions_ErJgC",Hh="vk_actionIcon_-JWZ1",Gh="vk_list_YLy-l",zh="vk_card_-fwSa",$h="vk_cardIcon_RBj-W",Vh="vk_cardBody_z8pxK",Wh="vk_cardMessage_aN-yw",qh="vk_cardMeta_XQ3my",Yh="vk_cardButtons_1PXZE",Kh="vk_cardSource_Z8c0M",Xh="vk_cardTime_OXbCq",jh="vk_cardActions_QOc1i",We={center:Fh,header:Ph,title:Uh,actions:Bh,actionIcon:Hh,list:Gh,card:zh,cardIcon:$h,cardBody:Vh,cardMessage:Wh,cardMeta:qh,cardButtons:Yh,cardSource:Kh,cardTime:Xh,cardActions:jh};var Zh=["<h3",">","","</h3>"],Qh=["<div",">","","","","</div>"],Jh=["<section"," data-notification-center>","","</section>"],ep=["<div"," data-notification-card-actions>","</div>"],tp=["<article","><span",' aria-hidden="true">',"</span><div","><p",">","</p><div","><span",">","</span><time",">","</time></div>","</div><div",">","","</div></article>"];const np={info:Se.VpInfoCircle,warning:Eo.VpAlertTriangle,error:Se.VpCircleX,success:Se.VpCircleCheck};function up(e){return new Intl.DateTimeFormat(Bn.systemFormatLocale(),{hour:"2-digit",minute:"2-digit"}).format(new Date(e))}function rp(e){return new Intl.DateTimeFormat(Bn.systemFormatLocale(),{year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date(e))}function $s(e){const t=Sn.useKitHost(),{notifications:n}=t,u=ti(t),r=t.log.withTag("NotificationsCenter"),i=R=>ft.openExternalUrl(t.desktop,r,R),[o,s]=m.createSignal([]),[c,l]=m.createSignal(K.notificationSettings.get().doNotDisturb),f=qr.useDesktopContextMenu(),h=Gs();m.onMount(()=>{const R=n.timeline.subscribe(s);m.onCleanup(R)}),K.useSettingsSubscription(K.notificationSettings,()=>{l(K.notificationSettings.get().doNotDisturb)});const E=m.createMemo(()=>[...o()].sort((R,k)=>k.createdAt-R.createdAt)),_=R=>np[R],g=()=>{const R=K.notificationSettings.get();K.notificationSettings.update({...R,doNotDisturb:!R.doNotDisturb}).catch(k=>{n.notify(Po,{cause:k})})},N=()=>t.openNotificationSettings(),I=R=>{const k=[...R.actions??[]],O=Hu(t.vendorErrors,R);if(O){const L=O.helpers.docsUrl(O.code);if(L){const P=`${O.helpers.formatCode(O.code)} ${O.helpers.docsLinkLabel}`;k.some(Y=>Y.label===P)||k.push({label:P,onClick:()=>i(L)})}}return k},D=R=>{var O;const k=R.message.trim();k&&((O=navigator.clipboard)==null||O.writeText(k).catch(L=>{r.warn("notification message could not be copied",L)}))},v=(R,k,O)=>{if(f.state()!==null){f.close();return}const L=An(O.source),P=hn(L.id),Y=Hu(t.vendorErrors,O);f.open(R,k,[{label:S.t("Copy log message"),onSelect:()=>D(O)},...Y?[{label:S.t("Open {vendor} ({code})",{vendor:Y.helpers.docsLinkLabel,code:Y.helpers.formatCode(Y.code)}),onSelect:()=>i(Y.helpers.docsUrl(Y.code))}]:[],{type:"separator"},{label:P?S.t('Unmute "{source}"',{source:L.label}):S.t('Mute "{source}"',{source:L.label}),onSelect:()=>u.setSourceMuted(L.id,!P)},{type:"separator"},{label:S.t("Remove notification"),danger:!0,onSelect:()=>n.dismissEntry(O.id)},{label:S.t('Remove all from "{source}"',{source:L.label}),danger:!0,onSelect:()=>n.timeline.dismissBySource(L.id)}])};return a.ssr(Jh,a.ssrAttribute("class",a.escape(We.center,!0),!1),a.escape(a.createComponent(vn.Panel.Header,{get class(){return We.header},get children(){return[a.ssr(Zh,a.ssrAttribute("class",a.escape(We.title,!0),!1),a.escape(S.t("Notifications")),a.escape(a.createComponent(m.Show,{get when(){return E().length>0},get children(){return` (${E().length})`}}))),a.ssr(Qh,a.ssrAttribute("class",a.escape(We.actions,!0),!1),a.escape(a.createComponent(ve.Button,{variant:"ghost",size:"sm",iconOnly:!0,onClick:()=>n.timeline.clear(),get disabled(){return E().length===0},get title(){return S.t("Clear all notifications")},get"aria-label"(){return S.t("Clear all notifications")},get children(){return a.createComponent(Se.VpTrash,{get class(){return We.actionIcon}})}})),a.escape(a.createComponent(ve.Button,{variant:"ghost",size:"sm",iconOnly:!0,get active(){return c()},onClick:g,get title(){return a.memo(()=>!!c())()?S.t("Disable Do Not Disturb"):S.t("Enable Do Not Disturb")},get"aria-label"(){return a.memo(()=>!!c())()?S.t("Disable Do Not Disturb"):S.t("Enable Do Not Disturb")},get children(){return a.createComponent(m.Show,{get when(){return c()},get fallback(){return a.createComponent(Se.VpBell,{get class(){return We.actionIcon}})},get children(){return a.createComponent(Se.VpBellOff,{get class(){return We.actionIcon}})}})}})),a.escape(a.createComponent(ve.Button,{variant:"ghost",size:"sm",iconOnly:!0,onClick:N,get title(){return S.t("Notification settings")},get"aria-label"(){return S.t("Notification settings")},get children(){return a.createComponent(Se.VpSettings,{get class(){return We.actionIcon}})}})),a.escape(a.createComponent(ve.Button,{variant:"ghost",size:"sm",iconOnly:!0,get onClick(){return e.onHide},get title(){return S.t("Hide notifications")},get"aria-label"(){return S.t("Hide notifications")},get children(){return a.createComponent(Tn.VpChevronDown,{get class(){return We.actionIcon}})}})))]}})),a.escape(a.createComponent(m.Show,{get when(){return h().length>0||E().length>0},get fallback(){return a.createComponent(Js.EmptyState,{size:"sm",get title(){return S.t("No new notifications")}})},get children(){return a.createComponent(Yu.OverlayScrollArea,{get viewportClass(){return We.list},get children(){return[a.createComponent(zs,{get items(){return h()}}),a.createComponent(m.For,{get each(){return E()},children:R=>{const k=An(R.source),O=I(R);return a.ssr(tp,a.ssrAttribute("class",a.escape(We.card,!0),!1),a.ssrAttribute("class",a.escape(We.cardIcon,!0),!1)+a.ssrAttribute("data-tone",a.escape(R.tone,!0),!1),a.escape(a.createComponent(a.Dynamic,{get component(){return _(R.tone)}})),a.ssrAttribute("class",a.escape(We.cardBody,!0),!1),a.ssrAttribute("class",a.escape(We.cardMessage,!0),!1),a.escape(R.message),a.ssrAttribute("class",a.escape(We.cardMeta,!0),!1),a.ssrAttribute("class",a.escape(We.cardSource,!0),!1)+a.ssrAttribute("title",a.escape(k.description,!0),!1),a.escape(S.t("Source: {source}",{source:k.label})),a.ssrAttribute("class",a.escape(We.cardTime,!0),!1)+a.ssrAttribute("datetime",a.escape(new Date(R.createdAt).toISOString(),!0),!1)+a.ssrAttribute("title",a.escape(rp(R.createdAt),!0),!1),a.escape(up(R.createdAt)),a.escape(a.createComponent(m.Show,{get when(){return O.length>0},get children(){return a.ssr(ep,a.ssrAttribute("class",a.escape(We.cardButtons,!0),!1),a.escape(a.createComponent(m.For,{each:O,children:L=>a.createComponent(ve.Button,{get variant(){return L.primary?"primary":"secondary"},size:"sm",onClick:()=>L.onClick(),get children(){return L.label}})})))}})),a.ssrAttribute("class",a.escape(We.cardActions,!0),!1),a.escape(a.createComponent(ve.Button,{variant:"ghost",size:"sm",iconOnly:!0,onClick:L=>{const P=L.currentTarget.getBoundingClientRect();v(P.left,P.bottom+4,R)},get title(){return S.t("More actions")},get"aria-label"(){return S.t("More actions")},get children(){return a.createComponent(Se.VpSettings,{get class(){return We.actionIcon}})}})),a.escape(a.createComponent(ve.Button,{variant:"ghost",size:"sm",iconOnly:!0,onClick:()=>n.dismissEntry(R.id),get title(){return S.t("Remove notification")},get"aria-label"(){return S.t("Remove notification")},get children(){return a.createComponent(kr.VpClose,{get class(){return We.actionIcon}})}})))}})]}})}})))}const ip="vk_bell_tx9ag vk_buttonReset_3WpyU",op="vk_bellIcon_w6Lmy",sp="vk_badge_2L8Eg",cp="vk_progressDot_yphKG",ap="vk_centerPopover_48x5p",kn={bell:ip,bellIcon:op,badge:sp,progressDot:cp,centerPopover:ap};var lp=["<span",">","</span>"],dp=["<span",' aria-hidden="true"></span>'];function fp(e){const{timeline:t,stack:n}=Sn.useKitHost().notifications,[u,r]=m.createSignal(!1),i=()=>e.open??u(),[o,s]=m.createSignal(0),[c,l]=m.createSignal(K.notificationSettings.get().doNotDisturb),[f,h]=m.createSignal(0);let E;m.onMount(()=>{const D=t.subscribeUnread(s),v=n.subscribe(R=>h(Ao(R).length));m.onCleanup(()=>{D(),v()})}),K.useSettingsSubscription(K.notificationSettings,()=>{l(K.notificationSettings.get().doNotDisturb)});const _=D=>{var v;D!==i()&&(e.open===void 0&&r(D),(v=e.onOpenChange)==null||v.call(e,D))};m.createEffect(m.on(i,D=>{D&&t.markSeen()})),m.onCleanup(()=>_(!1));const g=()=>i()?0:f(),N=()=>{const D=g();return c()?D>0?S.t("Notifications (Do Not Disturb on, {count} in progress)",{count:D}):S.t("Notifications (Do Not Disturb on)"):i()?S.t("Hide notifications"):D>0?S.t("Notifications ({count} in progress)",{count:D}):S.t("Show notifications")},I=()=>o()>99?"99+":String(o());return[a.createComponent(Wr.PressableSurface,{type:"button",get class(){return kn.bell},"data-status-bar-bell":!0,get"data-open"(){return i()?"true":"false"},onClick:()=>_(!i()),get title(){return N()},get"aria-label"(){return N()},"aria-haspopup":"dialog",get"aria-expanded"(){return i()},get children(){return[a.createComponent(m.Show,{get when(){return c()},get fallback(){return a.createComponent(Se.VpBell,{get class(){return kn.bellIcon}})},get children(){return a.createComponent(Se.VpBellOff,{get class(){return kn.bellIcon}})}}),a.createComponent(m.Show,{get when(){return o()>0},get fallback(){return a.createComponent(m.Show,{get when(){return g()>0},get children(){return a.ssr(dp,a.ssrAttribute("class",a.escape(kn.progressDot,!0),!1))}})},get children(){return a.ssr(lp,a.ssrAttribute("class",a.escape(kn.badge,!0),!1),a.escape(I()))}})]}}),a.createComponent(Tn.Popover,{get open(){return i()},onClose:()=>_(!1),anchor:()=>E,placement:"top-end",gap:6,role:"dialog",get ariaLabel(){return S.t("Notifications")},get class(){return kn.centerPopover},get children(){return a.createComponent($s,{onHide:()=>_(!1)})}})]}exports.ACCEPT_PRIMARY_ACTION_NOTIFICATION=zr;exports.CLEAR_NOTIFICATION=$r;exports.HIDE_NOTIFICATION_TOASTS=Pu;exports.LogFilterBar=bo;exports.NOTIFICATION_SOURCES=Xu;exports.NOTIFICATION_SOURCE_IDS=Yr;exports.NO_NOTIFICATION_OVERLAY=Bs;exports.NotificationHost=B1;exports.NotificationItem=Wu;exports.NotificationPanel=Mh;exports.NotificationService=jc;exports.NotificationTimeline=To;exports.NotificationsCenter=$s;exports.SEVERITY_ORDER=Mr;exports.SEVERITY_TONES=So;exports.StatusBarNotificationBell=fp;exports.appWindowNotificationOverlay=Hs;exports.applyNotificationRules=jr;exports.clearCompiledRuleRegexCache=Io;exports.compileNotificationSearchMatcher=Uo;exports.createNativeNotificationEngine=Xr;exports.createNotificationPreviewRuntime=Ea;exports.decideFilter=iu;exports.deleteWebhookUrl=pc;exports.deriveImplicitRemindKey=pu;exports.dismissKey=ko;exports.dismissableToastIds=Ho;exports.entryVendorMatch=Hu;exports.exportTimelineAsCsv=$o;exports.exportTimelineAsJson=Vo;exports.filterNotificationTimeline=Bo;exports.getSmtpPass=No;exports.getWebhookUrl=Ro;exports.groupTimelineEntries=Go;exports.hiddenRunningProgress=Ao;exports.isInQuietHours=ru;exports.isKeyDismissed=Zr;exports.isKeyRemindSuppressed=Gu;exports.isNotificationSourceId=_o;exports.isNotificationSticky=hu;exports.isOnToastStack=Kr;exports.isProgressRunning=Bt;exports.isSourceMuted=hn;exports.isSpamDropHandle=mo;exports.listNotificationSources=Jc;exports.nextQuietHoursStart=Oo;exports.pruneOrphanWebhookSecrets=gc;exports.registerFenceAliases=Ef;exports.registerNotificationCommands=Us;exports.remindLater=xo;exports.resolveCatalogPreviewPriority=ei;exports.resolveNotificationDuration=fu;exports.resolveNotificationSource=An;exports.resolveSeverityTone=Co;exports.restoreAllKeys=kc;exports.restoreKey=Dc;exports.setSmtpPass=fc;exports.setSourceMuted=Do;exports.setWebhookUrl=hc;exports.shouldFireOsNative=yo;exports.toTimelineActions=eu;exports.unmuteAllSources=Lc;