@juspay/shooter 1.23.0 → 1.24.1

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 (349) hide show
  1. package/build/client/_app/immutable/chunks/{DULfdsh6.js → BPIlDnhM.js} +2 -2
  2. package/build/client/_app/immutable/chunks/BPIlDnhM.js.br +0 -0
  3. package/build/client/_app/immutable/chunks/BPIlDnhM.js.gz +0 -0
  4. package/build/client/_app/immutable/chunks/{2rBV5OkJ.js → BQJR1fvD.js} +1 -1
  5. package/build/client/_app/immutable/chunks/BQJR1fvD.js.br +0 -0
  6. package/build/client/_app/immutable/chunks/BQJR1fvD.js.gz +0 -0
  7. package/build/client/_app/immutable/chunks/{DLu6yJIZ.js → BjXFD2Pv.js} +1 -1
  8. package/build/client/_app/immutable/chunks/BjXFD2Pv.js.br +0 -0
  9. package/build/client/_app/immutable/chunks/BjXFD2Pv.js.gz +0 -0
  10. package/build/client/_app/immutable/chunks/BzW0vlVX.js +3 -0
  11. package/build/client/_app/immutable/chunks/BzW0vlVX.js.br +0 -0
  12. package/build/client/_app/immutable/chunks/BzW0vlVX.js.gz +0 -0
  13. package/build/client/_app/immutable/chunks/{BjYr_-Ss.js → CfzjLyJm.js} +1 -1
  14. package/build/client/_app/immutable/chunks/CfzjLyJm.js.br +0 -0
  15. package/build/client/_app/immutable/chunks/CfzjLyJm.js.gz +0 -0
  16. package/build/client/_app/immutable/chunks/{C4Hns_Wl.js → CnsJhNGt.js} +1 -1
  17. package/build/client/_app/immutable/chunks/CnsJhNGt.js.br +0 -0
  18. package/build/client/_app/immutable/chunks/CnsJhNGt.js.gz +0 -0
  19. package/build/client/_app/immutable/chunks/{DomZZqvG.js → DFa6kKPT.js} +1 -1
  20. package/build/client/_app/immutable/chunks/DFa6kKPT.js.br +0 -0
  21. package/build/client/_app/immutable/chunks/DFa6kKPT.js.gz +0 -0
  22. package/build/client/_app/immutable/chunks/{BcpydfqI.js → DcXdn821.js} +1 -1
  23. package/build/client/_app/immutable/chunks/DcXdn821.js.br +0 -0
  24. package/build/client/_app/immutable/chunks/DcXdn821.js.gz +0 -0
  25. package/build/client/_app/immutable/chunks/{fcNfTA-E.js → DjWRwZyr.js} +1 -1
  26. package/build/client/_app/immutable/chunks/DjWRwZyr.js.br +0 -0
  27. package/build/client/_app/immutable/chunks/DjWRwZyr.js.gz +0 -0
  28. package/build/client/_app/immutable/chunks/Dk1NUsIU.js +61 -0
  29. package/build/client/_app/immutable/chunks/Dk1NUsIU.js.br +0 -0
  30. package/build/client/_app/immutable/chunks/Dk1NUsIU.js.gz +0 -0
  31. package/build/client/_app/immutable/chunks/DoGIJDSZ.js +2 -0
  32. package/build/client/_app/immutable/chunks/DoGIJDSZ.js.br +0 -0
  33. package/build/client/_app/immutable/chunks/DoGIJDSZ.js.gz +0 -0
  34. package/build/client/_app/immutable/chunks/{B1bOvemT.js → aiM7Bbhi.js} +8 -8
  35. package/build/client/_app/immutable/chunks/aiM7Bbhi.js.br +0 -0
  36. package/build/client/_app/immutable/chunks/aiM7Bbhi.js.gz +0 -0
  37. package/build/client/_app/immutable/chunks/{CJulw9ux.js → etLjvmY8.js} +1 -1
  38. package/build/client/_app/immutable/chunks/{CJulw9ux.js.br → etLjvmY8.js.br} +0 -0
  39. package/build/client/_app/immutable/chunks/etLjvmY8.js.gz +0 -0
  40. package/build/client/_app/immutable/chunks/kzeZOqU5.js +1 -0
  41. package/build/client/_app/immutable/chunks/kzeZOqU5.js.br +0 -0
  42. package/build/client/_app/immutable/chunks/kzeZOqU5.js.gz +0 -0
  43. package/build/client/_app/immutable/chunks/{i5iZvmIH.js → oIHVoAuz.js} +1 -1
  44. package/build/client/_app/immutable/chunks/oIHVoAuz.js.br +0 -0
  45. package/build/client/_app/immutable/chunks/oIHVoAuz.js.gz +0 -0
  46. package/build/client/_app/immutable/entry/app.9F0rhLIY.js +2 -0
  47. package/build/client/_app/immutable/entry/app.9F0rhLIY.js.br +0 -0
  48. package/build/client/_app/immutable/entry/app.9F0rhLIY.js.gz +0 -0
  49. package/build/client/_app/immutable/entry/start.DGFWmhrj.js +1 -0
  50. package/build/client/_app/immutable/entry/start.DGFWmhrj.js.br +2 -0
  51. package/build/client/_app/immutable/entry/start.DGFWmhrj.js.gz +0 -0
  52. package/build/client/_app/immutable/nodes/{0.Bv_TwEnq.js → 0.MlMcxYLT.js} +1 -1
  53. package/build/client/_app/immutable/nodes/0.MlMcxYLT.js.br +0 -0
  54. package/build/client/_app/immutable/nodes/0.MlMcxYLT.js.gz +0 -0
  55. package/build/client/_app/immutable/nodes/{1.7lffTIeb.js → 1._Bn-HQ9b.js} +1 -1
  56. package/build/client/_app/immutable/nodes/1._Bn-HQ9b.js.br +0 -0
  57. package/build/client/_app/immutable/nodes/1._Bn-HQ9b.js.gz +0 -0
  58. package/build/client/_app/immutable/nodes/{10.ChiIrIDl.js → 10.CsX0V4R9.js} +1 -1
  59. package/build/client/_app/immutable/nodes/10.CsX0V4R9.js.br +0 -0
  60. package/build/client/_app/immutable/nodes/10.CsX0V4R9.js.gz +0 -0
  61. package/build/client/_app/immutable/nodes/{11.DO3vyXEv.js → 11.lM_b6yUv.js} +2 -2
  62. package/build/client/_app/immutable/nodes/11.lM_b6yUv.js.br +0 -0
  63. package/build/client/_app/immutable/nodes/11.lM_b6yUv.js.gz +0 -0
  64. package/build/client/_app/immutable/nodes/{2.iMIqsE7n.js → 2.sAnHf5go.js} +1 -1
  65. package/build/client/_app/immutable/nodes/2.sAnHf5go.js.br +0 -0
  66. package/build/client/_app/immutable/nodes/2.sAnHf5go.js.gz +0 -0
  67. package/build/client/_app/immutable/nodes/{3.CArnSHOO.js → 3.DEHWta3G.js} +1 -1
  68. package/build/client/_app/immutable/nodes/3.DEHWta3G.js.br +0 -0
  69. package/build/client/_app/immutable/nodes/3.DEHWta3G.js.gz +0 -0
  70. package/build/client/_app/immutable/nodes/{4.BFYS2g9C.js → 4.C9fv_m2R.js} +1 -1
  71. package/build/client/_app/immutable/nodes/4.C9fv_m2R.js.br +0 -0
  72. package/build/client/_app/immutable/nodes/4.C9fv_m2R.js.gz +0 -0
  73. package/build/client/_app/immutable/nodes/{5.DziEu9rx.js → 5.vMR5XEA6.js} +1 -1
  74. package/build/client/_app/immutable/nodes/5.vMR5XEA6.js.br +0 -0
  75. package/build/client/_app/immutable/nodes/5.vMR5XEA6.js.gz +0 -0
  76. package/build/client/_app/immutable/nodes/{6.B8l1RwkB.js → 6.-gDjaLSz.js} +1 -1
  77. package/build/client/_app/immutable/nodes/6.-gDjaLSz.js.br +0 -0
  78. package/build/client/_app/immutable/nodes/6.-gDjaLSz.js.gz +0 -0
  79. package/build/client/_app/immutable/nodes/{7.BPyfhDis.js → 7.R-emDnvX.js} +1 -1
  80. package/build/client/_app/immutable/nodes/7.R-emDnvX.js.br +0 -0
  81. package/build/client/_app/immutable/nodes/7.R-emDnvX.js.gz +0 -0
  82. package/build/client/_app/immutable/nodes/{8.D_vszZ9E.js → 8.DXNcFetv.js} +1 -1
  83. package/build/client/_app/immutable/nodes/8.DXNcFetv.js.br +0 -0
  84. package/build/client/_app/immutable/nodes/8.DXNcFetv.js.gz +0 -0
  85. package/build/client/_app/immutable/nodes/{9.Drah-do-.js → 9.Brv6N-Ji.js} +1 -1
  86. package/build/client/_app/immutable/nodes/9.Brv6N-Ji.js.br +0 -0
  87. package/build/client/_app/immutable/nodes/9.Brv6N-Ji.js.gz +0 -0
  88. package/build/client/_app/version.json +1 -1
  89. package/build/client/_app/version.json.br +0 -0
  90. package/build/client/_app/version.json.gz +0 -0
  91. package/build/server/chunks/{0-DAB_6Vm1.js → 0-CezVlDLP.js} +3 -3
  92. package/build/server/chunks/{0-DAB_6Vm1.js.map → 0-CezVlDLP.js.map} +1 -1
  93. package/build/server/chunks/1-CAwGzW00.js +9 -0
  94. package/build/server/chunks/{1-D-qMYaCx.js.map → 1-CAwGzW00.js.map} +1 -1
  95. package/build/server/chunks/10-pqorW2OP.js +9 -0
  96. package/build/server/chunks/{10-CeFFGo-X.js.map → 10-pqorW2OP.js.map} +1 -1
  97. package/build/server/chunks/11-Byxg_lSY.js +9 -0
  98. package/build/server/chunks/{11-DRMu_ATU.js.map → 11-Byxg_lSY.js.map} +1 -1
  99. package/build/server/chunks/{2-B7OLBMNH.js → 2-Bbck5mN2.js} +3 -3
  100. package/build/server/chunks/{2-B7OLBMNH.js.map → 2-Bbck5mN2.js.map} +1 -1
  101. package/build/server/chunks/{3-B38ZarLw.js → 3-BBFbA1P8.js} +3 -3
  102. package/build/server/chunks/{3-B38ZarLw.js.map → 3-BBFbA1P8.js.map} +1 -1
  103. package/build/server/chunks/{4-D92KnTmb.js → 4-w2W_T8ax.js} +3 -3
  104. package/build/server/chunks/{4-D92KnTmb.js.map → 4-w2W_T8ax.js.map} +1 -1
  105. package/build/server/chunks/{5-D-Uv1voC.js → 5-BKDmLKb4.js} +3 -3
  106. package/build/server/chunks/{5-D-Uv1voC.js.map → 5-BKDmLKb4.js.map} +1 -1
  107. package/build/server/chunks/6-BI3p-t3i.js +9 -0
  108. package/build/server/chunks/{6-DP46cUej.js.map → 6-BI3p-t3i.js.map} +1 -1
  109. package/build/server/chunks/7-6XKPVOSu.js +9 -0
  110. package/build/server/chunks/{7-B29_3ar6.js.map → 7-6XKPVOSu.js.map} +1 -1
  111. package/build/server/chunks/8-VOztiJG_.js +9 -0
  112. package/build/server/chunks/{8-DCnSDVrX.js.map → 8-VOztiJG_.js.map} +1 -1
  113. package/build/server/chunks/9-DNUlBLEz.js +9 -0
  114. package/build/server/chunks/{9-BwqDc8wC.js.map → 9-DNUlBLEz.js.map} +1 -1
  115. package/build/server/chunks/{Banner-BgaAs1rs.js → Banner-8zU7JxF6.js} +3 -3
  116. package/build/server/chunks/Banner-8zU7JxF6.js.map +1 -0
  117. package/build/server/chunks/{Button-D0hZ7JYt.js → Button-DmE4ENkb.js} +2 -2
  118. package/build/server/chunks/Button-DmE4ENkb.js.map +1 -0
  119. package/build/server/chunks/{Icon-D0GBnDcs.js → Icon-By4fwUeB.js} +3 -3
  120. package/build/server/chunks/Icon-By4fwUeB.js.map +1 -0
  121. package/build/server/chunks/{Input-OmIiydSx.js → Input-DP3ahKZB.js} +2 -2
  122. package/build/server/chunks/Input-DP3ahKZB.js.map +1 -0
  123. package/build/server/chunks/{Pill-4xJ-VhAA.js → Pill-DwAR6cas.js} +3 -3
  124. package/build/server/chunks/Pill-DwAR6cas.js.map +1 -0
  125. package/build/server/chunks/{Shimmer-Dw2uvTC1.js → Shimmer-Bo1CUNAU.js} +2 -2
  126. package/build/server/chunks/Shimmer-Bo1CUNAU.js.map +1 -0
  127. package/build/server/chunks/{_error.svelte-CZnkxeLr.js → _error.svelte-r3eJvFdN.js} +8 -8
  128. package/build/server/chunks/_error.svelte-r3eJvFdN.js.map +1 -0
  129. package/build/server/chunks/{_layout.svelte-DfgNGGiM.js → _layout.svelte-BlI9weU7.js} +10 -10
  130. package/build/server/chunks/_layout.svelte-BlI9weU7.js.map +1 -0
  131. package/build/server/chunks/{_page.svelte-dabsQl9c.js → _page.svelte-B7_oMI0l.js} +10 -10
  132. package/build/server/chunks/_page.svelte-B7_oMI0l.js.map +1 -0
  133. package/build/server/chunks/{_page.svelte-CWsjjd4l.js → _page.svelte-BB3pLObN.js} +9 -9
  134. package/build/server/chunks/_page.svelte-BB3pLObN.js.map +1 -0
  135. package/build/server/chunks/{_page.svelte-CE7COWnF.js → _page.svelte-BDoNXDBU.js} +7 -7
  136. package/build/server/chunks/_page.svelte-BDoNXDBU.js.map +1 -0
  137. package/build/server/chunks/{_page.svelte-8OFzwdNA.js → _page.svelte-CMryWeEG.js} +11 -11
  138. package/build/server/chunks/_page.svelte-CMryWeEG.js.map +1 -0
  139. package/build/server/chunks/{_page.svelte-D_Ey8QRG.js → _page.svelte-CS4GU4ex.js} +11 -11
  140. package/build/server/chunks/_page.svelte-CS4GU4ex.js.map +1 -0
  141. package/build/server/chunks/{_page.svelte-D5S2hkBk.js → _page.svelte-CUfOc8Hm.js} +9 -9
  142. package/build/server/chunks/{_page.svelte-D5S2hkBk.js.map → _page.svelte-CUfOc8Hm.js.map} +1 -1
  143. package/build/server/chunks/{_page.svelte-BTlfUsBp.js → _page.svelte-Cj5OW0HR.js} +6 -6
  144. package/build/server/chunks/_page.svelte-Cj5OW0HR.js.map +1 -0
  145. package/build/server/chunks/{_page.svelte-Gv9p8nlS.js → _page.svelte-DDE2nChH.js} +6 -6
  146. package/build/server/chunks/_page.svelte-DDE2nChH.js.map +1 -0
  147. package/build/server/chunks/{_page.svelte-BX2FMgSg.js → _page.svelte-svT4jMLg.js} +4 -4
  148. package/build/server/chunks/{_page.svelte-BX2FMgSg.js.map → _page.svelte-svT4jMLg.js.map} +1 -1
  149. package/build/server/chunks/{_page.svelte-C7B0qdrC.js → _page.svelte-vtaZs27Q.js} +5 -5
  150. package/build/server/chunks/_page.svelte-vtaZs27Q.js.map +1 -0
  151. package/build/server/chunks/{_server.ts-Da1kSClZ.js → _server.ts--7PnGah8.js} +3 -3
  152. package/build/server/chunks/{_server.ts-Da1kSClZ.js.map → _server.ts--7PnGah8.js.map} +1 -1
  153. package/build/server/chunks/{_server.ts-Mttr0-Sl.js → _server.ts-57dINphj.js} +2 -2
  154. package/build/server/chunks/{_server.ts-Mttr0-Sl.js.map → _server.ts-57dINphj.js.map} +1 -1
  155. package/build/server/chunks/{_server.ts-BCljU9Sg.js → _server.ts-5ZMeZtad.js} +2 -2
  156. package/build/server/chunks/{_server.ts-BCljU9Sg.js.map → _server.ts-5ZMeZtad.js.map} +1 -1
  157. package/build/server/chunks/{_server.ts-CGqCOCdK.js → _server.ts-ArA8CrYi.js} +2 -2
  158. package/build/server/chunks/{_server.ts-CGqCOCdK.js.map → _server.ts-ArA8CrYi.js.map} +1 -1
  159. package/build/server/chunks/{_server.ts-DPHRUFYS.js → _server.ts-BKqxnNf1.js} +2 -2
  160. package/build/server/chunks/{_server.ts-DPHRUFYS.js.map → _server.ts-BKqxnNf1.js.map} +1 -1
  161. package/build/server/chunks/{_server.ts-BXhmLZwN.js → _server.ts-BTNIhKVv.js} +2 -2
  162. package/build/server/chunks/{_server.ts-BXhmLZwN.js.map → _server.ts-BTNIhKVv.js.map} +1 -1
  163. package/build/server/chunks/{_server.ts-CYWXjihn.js → _server.ts-Bcagaih0.js} +3 -3
  164. package/build/server/chunks/{_server.ts-CYWXjihn.js.map → _server.ts-Bcagaih0.js.map} +1 -1
  165. package/build/server/chunks/{_server.ts-B-evHL2q.js → _server.ts-Bmp-ldee.js} +2 -2
  166. package/build/server/chunks/{_server.ts-B-evHL2q.js.map → _server.ts-Bmp-ldee.js.map} +1 -1
  167. package/build/server/chunks/{_server.ts-QN-Bo5ql.js → _server.ts-BrDK1fJ9.js} +2 -2
  168. package/build/server/chunks/{_server.ts-QN-Bo5ql.js.map → _server.ts-BrDK1fJ9.js.map} +1 -1
  169. package/build/server/chunks/{_server.ts-D9ir7u24.js → _server.ts-C-XPLtdp.js} +2 -2
  170. package/build/server/chunks/{_server.ts-D9ir7u24.js.map → _server.ts-C-XPLtdp.js.map} +1 -1
  171. package/build/server/chunks/{_server.ts-D0___krA.js → _server.ts-C3rA9AOZ.js} +3 -3
  172. package/build/server/chunks/{_server.ts-D0___krA.js.map → _server.ts-C3rA9AOZ.js.map} +1 -1
  173. package/build/server/chunks/{_server.ts-DZvfyuNj.js → _server.ts-CDeJYhn1.js} +2 -2
  174. package/build/server/chunks/{_server.ts-DZvfyuNj.js.map → _server.ts-CDeJYhn1.js.map} +1 -1
  175. package/build/server/chunks/{_server.ts-Blx6TuRU.js → _server.ts-CLxpocw5.js} +3 -3
  176. package/build/server/chunks/{_server.ts-Blx6TuRU.js.map → _server.ts-CLxpocw5.js.map} +1 -1
  177. package/build/server/chunks/{_server.ts-D_WRex0k.js → _server.ts-COpXw9HU.js} +2 -2
  178. package/build/server/chunks/{_server.ts-D_WRex0k.js.map → _server.ts-COpXw9HU.js.map} +1 -1
  179. package/build/server/chunks/{_server.ts-DkZX_O9a.js → _server.ts-CYfsIgGS.js} +2 -2
  180. package/build/server/chunks/{_server.ts-DkZX_O9a.js.map → _server.ts-CYfsIgGS.js.map} +1 -1
  181. package/build/server/chunks/{_server.ts-MbnroWEF.js → _server.ts-CZFcAWEP.js} +2 -2
  182. package/build/server/chunks/{_server.ts-MbnroWEF.js.map → _server.ts-CZFcAWEP.js.map} +1 -1
  183. package/build/server/chunks/{_server.ts-DpRr0Tfh.js → _server.ts-Cm0noZR0.js} +2 -2
  184. package/build/server/chunks/{_server.ts-DpRr0Tfh.js.map → _server.ts-Cm0noZR0.js.map} +1 -1
  185. package/build/server/chunks/{_server.ts-BaaY7Z9D.js → _server.ts-Cu_4i2k1.js} +2 -2
  186. package/build/server/chunks/{_server.ts-BaaY7Z9D.js.map → _server.ts-Cu_4i2k1.js.map} +1 -1
  187. package/build/server/chunks/{_server.ts-BLNDdFWC.js → _server.ts-D2RS8TFd.js} +2 -2
  188. package/build/server/chunks/{_server.ts-BLNDdFWC.js.map → _server.ts-D2RS8TFd.js.map} +1 -1
  189. package/build/server/chunks/{_server.ts-BScvgttw.js → _server.ts-D9_hkPQ6.js} +2 -2
  190. package/build/server/chunks/{_server.ts-BScvgttw.js.map → _server.ts-D9_hkPQ6.js.map} +1 -1
  191. package/build/server/chunks/{_server.ts-BbRSpB74.js → _server.ts-DFI6mMYL.js} +2 -2
  192. package/build/server/chunks/{_server.ts-BbRSpB74.js.map → _server.ts-DFI6mMYL.js.map} +1 -1
  193. package/build/server/chunks/{_server.ts-C6NRpe7e.js → _server.ts-DGPBCKvQ.js} +2 -2
  194. package/build/server/chunks/{_server.ts-C6NRpe7e.js.map → _server.ts-DGPBCKvQ.js.map} +1 -1
  195. package/build/server/chunks/{_server.ts-BB46Fbqn.js → _server.ts-DRRGeb__.js} +2 -2
  196. package/build/server/chunks/{_server.ts-BB46Fbqn.js.map → _server.ts-DRRGeb__.js.map} +1 -1
  197. package/build/server/chunks/{_server.ts-l3cd4Cto.js → _server.ts-DaA9ZSqv.js} +3 -3
  198. package/build/server/chunks/{_server.ts-l3cd4Cto.js.map → _server.ts-DaA9ZSqv.js.map} +1 -1
  199. package/build/server/chunks/{_server.ts-05JJOdcX.js → _server.ts-DfscXcFe.js} +38 -23
  200. package/build/server/chunks/_server.ts-DfscXcFe.js.map +1 -0
  201. package/build/server/chunks/{_server.ts-CVPZOpiv.js → _server.ts-DlGrc8cE.js} +2 -2
  202. package/build/server/chunks/{_server.ts-CVPZOpiv.js.map → _server.ts-DlGrc8cE.js.map} +1 -1
  203. package/build/server/chunks/{_server.ts-C0317RBD.js → _server.ts-DuAA6Ks-.js} +2 -2
  204. package/build/server/chunks/{_server.ts-C0317RBD.js.map → _server.ts-DuAA6Ks-.js.map} +1 -1
  205. package/build/server/chunks/{_server.ts-BTmknWpO.js → _server.ts-EJVmhLtg.js} +2 -2
  206. package/build/server/chunks/{_server.ts-BTmknWpO.js.map → _server.ts-EJVmhLtg.js.map} +1 -1
  207. package/build/server/chunks/{_server.ts-jtqWDWcf.js → _server.ts-NVx03KEN.js} +2 -2
  208. package/build/server/chunks/{_server.ts-jtqWDWcf.js.map → _server.ts-NVx03KEN.js.map} +1 -1
  209. package/build/server/chunks/{_server.ts-W6i3EnGX.js → _server.ts-o_sRQMMS.js} +2 -2
  210. package/build/server/chunks/{_server.ts-W6i3EnGX.js.map → _server.ts-o_sRQMMS.js.map} +1 -1
  211. package/build/server/chunks/{_server.ts-DOGUMzPx.js → _server.ts-v7TaT83B.js} +2 -2
  212. package/build/server/chunks/{_server.ts-DOGUMzPx.js.map → _server.ts-v7TaT83B.js.map} +1 -1
  213. package/build/server/chunks/{cache-BlMaDsHi.js → cache-De-MXr04.js} +2 -2
  214. package/build/server/chunks/cache-De-MXr04.js.map +1 -0
  215. package/build/server/chunks/{client-Ds1brw-8.js → client-dJTdv51U.js} +4 -4
  216. package/build/server/chunks/client-dJTdv51U.js.map +1 -0
  217. package/build/server/chunks/client2-CZlO7zn4.js +7 -0
  218. package/build/server/chunks/{client2-DngLdcUc.js.map → client2-CZlO7zn4.js.map} +1 -1
  219. package/build/server/chunks/{index2-dSGQ9Eaa.js → index-L-OMOXY-.js} +2 -2
  220. package/build/server/chunks/index-L-OMOXY-.js.map +1 -0
  221. package/build/server/chunks/{index-CoD1IJuy.js → index-lhTMmBNn.js} +20 -3
  222. package/build/server/chunks/index-lhTMmBNn.js.map +1 -0
  223. package/build/server/chunks/{index-server-Bq3cnK69.js → index-server-CdDI4vgN.js} +2 -2
  224. package/build/server/chunks/index-server-CdDI4vgN.js.map +1 -0
  225. package/build/server/chunks/{index-CoYB03g7.js → index2-BLq4EEng.js} +1627 -1627
  226. package/build/server/chunks/index2-BLq4EEng.js.map +1 -0
  227. package/build/server/chunks/{pty-manager-DDjG7DlH.js → pty-manager-BsHXoNks.js} +16 -1
  228. package/build/server/chunks/pty-manager-BsHXoNks.js.map +1 -0
  229. package/build/server/chunks/qwen-reader-DGfUbKaJ.js.map +1 -1
  230. package/build/server/chunks/registry-D4J_CuzW.js.map +1 -1
  231. package/build/server/chunks/{root-D4IoFC8F.js → root-Ce8FGAoU.js} +42 -43
  232. package/build/server/chunks/root-Ce8FGAoU.js.map +1 -0
  233. package/build/server/chunks/{state.svelte-CmHqngc_.js → state.svelte-DCKkPJr6.js} +3 -3
  234. package/build/server/chunks/state.svelte-DCKkPJr6.js.map +1 -0
  235. package/build/server/chunks/{stores-CRYxfF0o.js → stores-CVemzLCH.js} +4 -4
  236. package/build/server/chunks/stores-CVemzLCH.js.map +1 -0
  237. package/build/server/index.js +365 -169
  238. package/build/server/index.js.map +1 -1
  239. package/build/server/manifest.js +44 -44
  240. package/build/server/manifest.js.map +1 -1
  241. package/package.json +2 -2
  242. package/server.ts +3 -0
  243. package/src/lib/modules/client/terminal/xterm-wrapper.ts +4 -3
  244. package/src/lib/modules/server/apn/device-token.ts +57 -0
  245. package/src/lib/modules/server/terminal/pty-manager.ts +12 -0
  246. package/src/lib/modules/server/terminal/terminal-store.ts +10 -0
  247. package/src/lib/modules/server/ws/terminal-handler.ts +49 -8
  248. package/src/lib/types/server.ts +7 -0
  249. package/src/lib/types/ws.ts +4 -0
  250. package/src/routes/api/notify/+server.ts +20 -35
  251. package/src/routes/api/terminals/[id]/resize/+server.ts +3 -0
  252. package/build/client/_app/immutable/chunks/2rBV5OkJ.js.br +0 -0
  253. package/build/client/_app/immutable/chunks/2rBV5OkJ.js.gz +0 -0
  254. package/build/client/_app/immutable/chunks/B1bOvemT.js.br +0 -0
  255. package/build/client/_app/immutable/chunks/B1bOvemT.js.gz +0 -0
  256. package/build/client/_app/immutable/chunks/BDcFu3l7.js +0 -61
  257. package/build/client/_app/immutable/chunks/BDcFu3l7.js.br +0 -0
  258. package/build/client/_app/immutable/chunks/BDcFu3l7.js.gz +0 -0
  259. package/build/client/_app/immutable/chunks/BPDiEZo0.js +0 -2
  260. package/build/client/_app/immutable/chunks/BPDiEZo0.js.br +0 -0
  261. package/build/client/_app/immutable/chunks/BPDiEZo0.js.gz +0 -0
  262. package/build/client/_app/immutable/chunks/BcpydfqI.js.br +0 -0
  263. package/build/client/_app/immutable/chunks/BcpydfqI.js.gz +0 -0
  264. package/build/client/_app/immutable/chunks/Bj5wFimK.js +0 -3
  265. package/build/client/_app/immutable/chunks/Bj5wFimK.js.br +0 -0
  266. package/build/client/_app/immutable/chunks/Bj5wFimK.js.gz +0 -0
  267. package/build/client/_app/immutable/chunks/BjYr_-Ss.js.br +0 -0
  268. package/build/client/_app/immutable/chunks/BjYr_-Ss.js.gz +0 -0
  269. package/build/client/_app/immutable/chunks/C4Hns_Wl.js.br +0 -0
  270. package/build/client/_app/immutable/chunks/C4Hns_Wl.js.gz +0 -0
  271. package/build/client/_app/immutable/chunks/CJulw9ux.js.gz +0 -0
  272. package/build/client/_app/immutable/chunks/DLu6yJIZ.js.br +0 -0
  273. package/build/client/_app/immutable/chunks/DLu6yJIZ.js.gz +0 -0
  274. package/build/client/_app/immutable/chunks/DULfdsh6.js.br +0 -0
  275. package/build/client/_app/immutable/chunks/DULfdsh6.js.gz +0 -0
  276. package/build/client/_app/immutable/chunks/DWmC0QM7.js +0 -1
  277. package/build/client/_app/immutable/chunks/DWmC0QM7.js.br +0 -0
  278. package/build/client/_app/immutable/chunks/DWmC0QM7.js.gz +0 -0
  279. package/build/client/_app/immutable/chunks/DomZZqvG.js.br +0 -0
  280. package/build/client/_app/immutable/chunks/DomZZqvG.js.gz +0 -0
  281. package/build/client/_app/immutable/chunks/fcNfTA-E.js.br +0 -0
  282. package/build/client/_app/immutable/chunks/fcNfTA-E.js.gz +0 -0
  283. package/build/client/_app/immutable/chunks/i5iZvmIH.js.br +0 -0
  284. package/build/client/_app/immutable/chunks/i5iZvmIH.js.gz +0 -0
  285. package/build/client/_app/immutable/entry/app.Bvoqymnp.js +0 -2
  286. package/build/client/_app/immutable/entry/app.Bvoqymnp.js.br +0 -0
  287. package/build/client/_app/immutable/entry/app.Bvoqymnp.js.gz +0 -0
  288. package/build/client/_app/immutable/entry/start.BqXCPPZJ.js +0 -1
  289. package/build/client/_app/immutable/entry/start.BqXCPPZJ.js.br +0 -2
  290. package/build/client/_app/immutable/entry/start.BqXCPPZJ.js.gz +0 -0
  291. package/build/client/_app/immutable/nodes/0.Bv_TwEnq.js.br +0 -0
  292. package/build/client/_app/immutable/nodes/0.Bv_TwEnq.js.gz +0 -0
  293. package/build/client/_app/immutable/nodes/1.7lffTIeb.js.br +0 -0
  294. package/build/client/_app/immutable/nodes/1.7lffTIeb.js.gz +0 -0
  295. package/build/client/_app/immutable/nodes/10.ChiIrIDl.js.br +0 -0
  296. package/build/client/_app/immutable/nodes/10.ChiIrIDl.js.gz +0 -0
  297. package/build/client/_app/immutable/nodes/11.DO3vyXEv.js.br +0 -0
  298. package/build/client/_app/immutable/nodes/11.DO3vyXEv.js.gz +0 -0
  299. package/build/client/_app/immutable/nodes/2.iMIqsE7n.js.br +0 -0
  300. package/build/client/_app/immutable/nodes/2.iMIqsE7n.js.gz +0 -0
  301. package/build/client/_app/immutable/nodes/3.CArnSHOO.js.br +0 -0
  302. package/build/client/_app/immutable/nodes/3.CArnSHOO.js.gz +0 -0
  303. package/build/client/_app/immutable/nodes/4.BFYS2g9C.js.br +0 -0
  304. package/build/client/_app/immutable/nodes/4.BFYS2g9C.js.gz +0 -0
  305. package/build/client/_app/immutable/nodes/5.DziEu9rx.js.br +0 -0
  306. package/build/client/_app/immutable/nodes/5.DziEu9rx.js.gz +0 -0
  307. package/build/client/_app/immutable/nodes/6.B8l1RwkB.js.br +0 -0
  308. package/build/client/_app/immutable/nodes/6.B8l1RwkB.js.gz +0 -0
  309. package/build/client/_app/immutable/nodes/7.BPyfhDis.js.br +0 -0
  310. package/build/client/_app/immutable/nodes/7.BPyfhDis.js.gz +0 -0
  311. package/build/client/_app/immutable/nodes/8.D_vszZ9E.js.br +0 -0
  312. package/build/client/_app/immutable/nodes/8.D_vszZ9E.js.gz +0 -0
  313. package/build/client/_app/immutable/nodes/9.Drah-do-.js.br +0 -0
  314. package/build/client/_app/immutable/nodes/9.Drah-do-.js.gz +0 -0
  315. package/build/server/chunks/1-D-qMYaCx.js +0 -9
  316. package/build/server/chunks/10-CeFFGo-X.js +0 -9
  317. package/build/server/chunks/11-DRMu_ATU.js +0 -9
  318. package/build/server/chunks/6-DP46cUej.js +0 -9
  319. package/build/server/chunks/7-B29_3ar6.js +0 -9
  320. package/build/server/chunks/8-DCnSDVrX.js +0 -9
  321. package/build/server/chunks/9-BwqDc8wC.js +0 -9
  322. package/build/server/chunks/Banner-BgaAs1rs.js.map +0 -1
  323. package/build/server/chunks/Button-D0hZ7JYt.js.map +0 -1
  324. package/build/server/chunks/Icon-D0GBnDcs.js.map +0 -1
  325. package/build/server/chunks/Input-OmIiydSx.js.map +0 -1
  326. package/build/server/chunks/Pill-4xJ-VhAA.js.map +0 -1
  327. package/build/server/chunks/Shimmer-Dw2uvTC1.js.map +0 -1
  328. package/build/server/chunks/_error.svelte-CZnkxeLr.js.map +0 -1
  329. package/build/server/chunks/_layout.svelte-DfgNGGiM.js.map +0 -1
  330. package/build/server/chunks/_page.svelte-8OFzwdNA.js.map +0 -1
  331. package/build/server/chunks/_page.svelte-BTlfUsBp.js.map +0 -1
  332. package/build/server/chunks/_page.svelte-C7B0qdrC.js.map +0 -1
  333. package/build/server/chunks/_page.svelte-CE7COWnF.js.map +0 -1
  334. package/build/server/chunks/_page.svelte-CWsjjd4l.js.map +0 -1
  335. package/build/server/chunks/_page.svelte-D_Ey8QRG.js.map +0 -1
  336. package/build/server/chunks/_page.svelte-Gv9p8nlS.js.map +0 -1
  337. package/build/server/chunks/_page.svelte-dabsQl9c.js.map +0 -1
  338. package/build/server/chunks/_server.ts-05JJOdcX.js.map +0 -1
  339. package/build/server/chunks/cache-BlMaDsHi.js.map +0 -1
  340. package/build/server/chunks/client-Ds1brw-8.js.map +0 -1
  341. package/build/server/chunks/client2-DngLdcUc.js +0 -7
  342. package/build/server/chunks/index-CoD1IJuy.js.map +0 -1
  343. package/build/server/chunks/index-CoYB03g7.js.map +0 -1
  344. package/build/server/chunks/index-server-Bq3cnK69.js.map +0 -1
  345. package/build/server/chunks/index2-dSGQ9Eaa.js.map +0 -1
  346. package/build/server/chunks/pty-manager-DDjG7DlH.js.map +0 -1
  347. package/build/server/chunks/root-D4IoFC8F.js.map +0 -1
  348. package/build/server/chunks/state.svelte-CmHqngc_.js.map +0 -1
  349. package/build/server/chunks/stores-CRYxfF0o.js.map +0 -1
@@ -11,6 +11,8 @@ import type {
11
11
  } from '$lib/types';
12
12
  import type { WebSocket } from 'ws';
13
13
 
14
+ import { randomBytes } from 'crypto';
15
+
14
16
  // ── Constants ────────────────────────────────────────────────────────
15
17
 
16
18
  /** Signal name → numeric code for process.kill(). */
@@ -50,6 +52,10 @@ export function handleTerminalConnection(
50
52
  return;
51
53
  }
52
54
 
55
+ // Phase 3: stable per-connection id, used to claim/hold resize authority.
56
+ // Phase 4 will pass this in from setupWebSocketHandlers (the WS upgrade handler).
57
+ const connectionId = randomBytes(8).toString('hex');
58
+
53
59
  // ── 2. Attach via pty-manager (registers client + sends initial state) ──
54
60
  // Snapshot-capable clients (?caps=snapshot) get a serialized current-screen
55
61
  // snapshot; others get the legacy raw scrollback replay. A reconnecting
@@ -90,15 +96,21 @@ export function handleTerminalConnection(
90
96
  break;
91
97
 
92
98
  case 'resize': {
93
- terminal.pty.resize(msg.cols, msg.rows);
94
- // Broadcast the new PTY size to the other attached clients so
95
- // view-only guests can follow the owner's terminal dimensions.
96
- const resizeMsg: ServerMessage = { cols: msg.cols, rows: msg.rows, type: 'resize' };
97
- for (const client of terminal.clients) {
98
- if (client !== ws) {
99
- safeSend(client, resizeMsg);
100
- }
99
+ // Phase 3: driver-authoritative resize (fixes G4). Only the authority
100
+ // connection's resize reaches the PTY; non-authority senders keep their
101
+ // own xterm fitted locally no PTY call and no broadcast from here.
102
+ if (!isResizeAuthority(connectionId, terminal.authorityConnectionId)) {
103
+ break;
104
+ }
105
+ // Claim the slot on the first authoritative resize (sticky until this
106
+ // connection disconnects — see the close handler below).
107
+ if (terminal.authorityConnectionId === null) {
108
+ terminal.authorityConnectionId = connectionId;
101
109
  }
110
+ // Route through the manager so dims persist (G5) and the new size
111
+ // broadcasts to ALL clients including this sender (a no-op echo),
112
+ // matching the REST /resize path.
113
+ _ptyManager?.resize(terminal.id, msg.cols, msg.rows);
102
114
  break;
103
115
  }
104
116
 
@@ -122,6 +134,11 @@ export function handleTerminalConnection(
122
134
 
123
135
  // ── 4. Cleanup on disconnect ─────────────────────────────────────
124
136
  ws.on('close', () => {
137
+ // Phase 3: release resize authority if this connection held it, so the next
138
+ // interactive client can claim it. Phase 4 replaces this with driver release.
139
+ if (terminal.authorityConnectionId === connectionId) {
140
+ terminal.authorityConnectionId = null;
141
+ }
125
142
  _ptyManager?.detach(terminalId, ws);
126
143
  });
127
144
 
@@ -131,6 +148,30 @@ export function handleTerminalConnection(
131
148
  });
132
149
  }
133
150
 
151
+ /**
152
+ * Phase 3: driver-authoritative resize predicate (D1). Returns true iff this
153
+ * connection may resize the PTY.
154
+ *
155
+ * P3 policy: the first interactive (non-readOnly) connection to send a resize
156
+ * claims authority; it stays the authority until that connection disconnects,
157
+ * at which point the slot clears and the next interactive resize claims it.
158
+ * This is "first-claimer, sticky-until-disconnect" — NOT last-writer-wins, which
159
+ * is exactly what causes the multi-client resize fight (G4).
160
+ *
161
+ * Pure decision (the caller performs the claim/clear), so it mirrors the unit
162
+ * test and lets Phase 4 swap the body to `connectionId === terminal.driver`
163
+ * without touching the call site.
164
+ */
165
+ export function isResizeAuthority(
166
+ connectionId: string,
167
+ authorityConnectionId: null | string
168
+ ): boolean {
169
+ if (authorityConnectionId === null) {
170
+ return true; // unclaimed — the first interactive resize wins
171
+ }
172
+ return connectionId === authorityConnectionId;
173
+ }
174
+
134
175
  // ── Helpers ──────────────────────────────────────────────────────────
135
176
 
136
177
  /**
@@ -82,6 +82,13 @@ export interface OpenCodeWatchState {
82
82
 
83
83
  export interface PtyManagedTerminal {
84
84
  args: string[];
85
+ /**
86
+ * Phase 3: the connection currently allowed to resize the PTY (driver-
87
+ * authoritative resize, D1). null = unclaimed — the first interactive
88
+ * resize claims it, sticky until that connection disconnects. Phase 4
89
+ * replaces this slot with the driver token from the control registry.
90
+ */
91
+ authorityConnectionId: null | string;
85
92
  clients: Set<WebSocket>;
86
93
  cols: number;
87
94
  command: string;
@@ -60,6 +60,8 @@ export interface SessionWatcherLike {
60
60
  }
61
61
 
62
62
  export interface TerminalManagedTerminal {
63
+ /** Phase 3: connection allowed to resize the PTY; null = unclaimed. */
64
+ authorityConnectionId: null | string;
63
65
  clients: Set<WebSocket>;
64
66
  exitCode: null | number;
65
67
  id: string;
@@ -76,6 +78,8 @@ export interface TerminalPtyManagerLike {
76
78
  attach: (id: string, ws: WebSocket, opts?: { lastSeq?: number; snapshot?: boolean }) => boolean;
77
79
  detach: (id: string, ws: WebSocket) => boolean;
78
80
  getTerminal: (id: string) => TerminalManagedTerminal | undefined;
81
+ /** Phase 3: route resize through the manager so dims persist + broadcast to all. */
82
+ resize: (id: string, cols: number, rows: number) => boolean;
79
83
  }
80
84
 
81
85
  /** A message in the history payload. */
@@ -1,6 +1,7 @@
1
1
  import type { NotificationData, OptionChoice, ResponseKind } from '$lib/types';
2
2
 
3
3
  import { env } from '$env/dynamic/private';
4
+ import { readPersistedDeviceToken, resolveDeviceToken } from '$lib/modules/server/apn/device-token';
4
5
  import { LibraryAPNsService } from '$lib/modules/server/apn/library-apns';
5
6
  import { addNotification, getNotifications } from '$lib/modules/server/apn/notification-history';
6
7
  import { createPendingRequest } from '$lib/modules/server/apn/pending-requests';
@@ -9,31 +10,9 @@ import { isFCMConfigured, sendFCMNotification } from '$lib/modules/server/fcm/fc
9
10
  import { toErrorMessage } from '$lib/modules/server/utils/error';
10
11
  import { broadcastEvent } from '$lib/modules/server/ws/server';
11
12
  import { json } from '@sveltejs/kit';
12
- import { existsSync, readFileSync } from 'fs';
13
- import { homedir } from 'os';
14
- import { join } from 'path';
15
13
 
16
14
  import type { RequestHandler } from './$types';
17
15
 
18
- // Reads tokens persisted by /api/device-token — populated automatically when
19
- // the Android or iOS app registers on first launch.
20
- function readPersistedDeviceToken(platform: 'android' | 'ios'): string | undefined {
21
- const tokensFile = join(homedir(), '.shooter', 'device-tokens.json');
22
- if (!existsSync(tokensFile)) {
23
- return undefined;
24
- }
25
- try {
26
- const parsed: unknown = JSON.parse(readFileSync(tokensFile, 'utf-8'));
27
- if (parsed && typeof parsed === 'object' && !Array.isArray(parsed)) {
28
- const value = (parsed as Record<string, unknown>)[platform];
29
- return typeof value === 'string' && value ? value : undefined;
30
- }
31
- } catch {
32
- // corrupt / unreadable — fall through
33
- }
34
- return undefined;
35
- }
36
-
37
16
  // Singleton APNs client - reuses HTTP/2 connection across requests
38
17
  let apnsSingleton: LibraryAPNsService | null = null;
39
18
  function getAPNsClient(): LibraryAPNsService {
@@ -457,15 +436,15 @@ export const POST: RequestHandler = async ({ request }) => {
457
436
  );
458
437
  }
459
438
 
460
- // Honor request-scoped deviceToken, then the Android-specific env var,
461
- // then the token auto-registered by the Android app via /api/device-token.
462
- // env.DEVICE_TOKEN is intentionally NOT in this chain: the iOS branch
463
- // treats it as an APNs token (see below), and letting it bleed into the
464
- // FCM path would ship an APNs token to FCM in mixed-platform setups.
465
- const androidToken =
466
- requestDeviceToken?.trim() ||
467
- env.ANDROID_DEVICE_TOKEN?.trim() ||
468
- readPersistedDeviceToken('android');
439
+ // Resolve the FCM target: explicit request token, then the token the
440
+ // Android app persisted on launch, then the Android-specific env var.
441
+ // env.DEVICE_TOKEN is intentionally NOT in this chain — it holds the iOS
442
+ // APNs token, which must never be shipped to FCM in mixed-platform setups.
443
+ const androidToken = resolveDeviceToken(
444
+ requestDeviceToken,
445
+ readPersistedDeviceToken('android'),
446
+ env.ANDROID_DEVICE_TOKEN
447
+ );
469
448
 
470
449
  if (!androidToken) {
471
450
  return json(
@@ -541,15 +520,21 @@ export const POST: RequestHandler = async ({ request }) => {
541
520
  );
542
521
  }
543
522
 
544
- // Honor request-scoped deviceToken (e.g., from config page test),
545
- // falling back to the server-wide environment variable.
546
- const deviceToken = requestDeviceToken?.trim() || env.DEVICE_TOKEN?.trim();
523
+ // Resolve the APNs target: explicit request token (e.g. config-page test),
524
+ // then the token the iOS app persisted on launch, then the env fallback.
525
+ // Persisted beats env so a stale .env DEVICE_TOKEN can't shadow the live
526
+ // device token after a restart (the BadDeviceToken trap this fixes).
527
+ const deviceToken = resolveDeviceToken(
528
+ requestDeviceToken,
529
+ readPersistedDeviceToken('ios'),
530
+ env.DEVICE_TOKEN
531
+ );
547
532
 
548
533
  if (!deviceToken) {
549
534
  return json(
550
535
  {
551
536
  details:
552
- 'DEVICE_TOKEN environment variable is missing and no deviceToken in request body',
537
+ 'No iOS device token available pass deviceToken in the request body, ensure ~/.shooter/device-tokens.json contains an ios token, or set DEVICE_TOKEN.',
553
538
  error: 'No device token configured',
554
539
  },
555
540
  { status: 500 }
@@ -52,6 +52,9 @@ export const POST: RequestHandler = async ({ params, request }) => {
52
52
  return json({ error: 'Terminal already exited' }, { status: 409 });
53
53
  }
54
54
 
55
+ // Phase 3: ptyManager.resize() persists cols/rows to SQLite (G5) and
56
+ // broadcasts the new size to ALL attached clients (including this caller's
57
+ // own clients), intentionally consistent with the WS authority path.
55
58
  ptyManager.resize(params.id, cols, rows);
56
59
 
57
60
  console.log(`[terminals] Resized terminal ${params.id} to ${cols}x${rows}`);
@@ -1,61 +0,0 @@
1
- function tn(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,s=Array(e);n<e;n++)s[n]=t[n];return s}function Xn(t){if(Array.isArray(t))return t}function Qn(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var s,r,a,l,u=[],o=!0,f=!1;try{if(a=(n=n.call(t)).next,e!==0)for(;!(o=(s=a.call(n)).done)&&(u.push(s.value),u.length!==e);o=!0);}catch(p){f=!0,r=p}finally{try{if(!o&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw r}}return u}}function Vn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kn(t,e){return Xn(t)||Qn(t,e)||Jn(t,e)||Vn()}function Jn(t,e){if(t){if(typeof t=="string")return tn(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tn(t,e):void 0}}const wn=Object.entries,nn=Object.setPrototypeOf,er=Object.isFrozen,tr=Object.getPrototypeOf,nr=Object.getOwnPropertyDescriptor;let v=Object.freeze,H=Object.seal,ge=Object.create,An=typeof Reflect<"u"&&Reflect,kt=An.apply,bt=An.construct;v||(v=function(e){return e});H||(H=function(e){return e});kt||(kt=function(e,n){for(var s=arguments.length,r=new Array(s>2?s-2:0),a=2;a<s;a++)r[a-2]=arguments[a];return e.apply(n,r)});bt||(bt=function(e){for(var n=arguments.length,s=new Array(n>1?n-1:0),r=1;r<n;r++)s[r-1]=arguments[r];return new e(...s)});const ue=y(Array.prototype.forEach),rr=y(Array.prototype.lastIndexOf),rn=y(Array.prototype.pop),pe=y(Array.prototype.push),sr=y(Array.prototype.splice),z=Array.isArray,ye=y(String.prototype.toLowerCase),ht=y(String.prototype.toString),sn=y(String.prototype.match),he=y(String.prototype.replace),ln=y(String.prototype.indexOf),ir=y(String.prototype.trim),lr=y(Number.prototype.toString),ar=y(Boolean.prototype.toString),an=typeof BigInt>"u"?null:y(BigInt.prototype.toString),on=typeof Symbol>"u"?null:y(Symbol.prototype.toString),A=y(Object.prototype.hasOwnProperty),we=y(Object.prototype.toString),N=y(RegExp.prototype.test),Be=or(TypeError);function y(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,s=new Array(n>1?n-1:0),r=1;r<n;r++)s[r-1]=arguments[r];return kt(t,e,s)}}function or(t){return function(){for(var e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return bt(t,n)}}function d(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ye;if(nn&&nn(t,null),!z(e))return t;let s=e.length;for(;s--;){let r=e[s];if(typeof r=="string"){const a=n(r);a!==r&&(er(e)||(e[s]=a),r=a)}t[r]=!0}return t}function cr(t){for(let e=0;e<t.length;e++)A(t,e)||(t[e]=null);return t}function U(t){const e=ge(null);for(const s of wn(t)){var n=Kn(s,2);const r=n[0],a=n[1];A(t,r)&&(z(a)?e[r]=cr(a):a&&typeof a=="object"&&a.constructor===Object?e[r]=U(a):e[r]=a)}return e}function ur(t){switch(typeof t){case"string":return t;case"number":return lr(t);case"boolean":return ar(t);case"bigint":return an?an(t):"0";case"symbol":return on?on(t):"Symbol()";case"undefined":return we(t);case"function":case"object":{if(t===null)return we(t);const e=t,n=de(e,"toString");if(typeof n=="function"){const s=n(e);return typeof s=="string"?s:we(s)}return we(t)}default:return we(t)}}function de(t,e){for(;t!==null;){const s=nr(t,e);if(s){if(s.get)return y(s.get);if(typeof s.value=="function")return y(s.value)}t=tr(t)}function n(){return null}return n}function pr(t){try{return N(t,""),!0}catch{return!1}}const cn=v(["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"]),ft=v(["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"]),gt=v(["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"]),hr=v(["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"]),dt=v(["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"]),fr=v(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),un=v(["#text"]),pn=v(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","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"]),mt=v(["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","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","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-rendering","textlength","type","u1","u2","unicode","values","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"]),hn=v(["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"]),He=v(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),gr=H(/{{[\w\W]*|^[\w\W]*}}/g),dr=H(/<%[\w\W]*|^[\w\W]*%>/g),mr=H(/\${[\w\W]*/g),kr=H(/^data-[\-\w.\u00B7-\uFFFF]+$/),br=H(/^aria-[\-\w]+$/),fn=H(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),xr=H(/^(?:\w+script|data):/i),Tr=H(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),wr=H(/^html$/i),Ar=H(/^[a-z][.\w]*(-[.\w]+)+$/i),fe={element:1,text:3,progressingInstruction:7,comment:8,document:9},_r=function(){return typeof window>"u"?null:window},Sr=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let s=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(s=n.getAttribute(r));const a="dompurify"+(s?"#"+s:"");try{return e.createPolicy(a,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},gn=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function _n(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_r();const e=g=>_n(g);if(e.version="3.4.3",e.removed=[],!t||!t.document||t.document.nodeType!==fe.document||!t.Element)return e.isSupported=!1,e;let n=t.document;const s=n,r=s.currentScript,a=t.DocumentFragment,l=t.HTMLTemplateElement,u=t.Node,o=t.Element,f=t.NodeFilter,p=t.NamedNodeMap,b=p===void 0?t.NamedNodeMap||t.MozNamedAttrMap:p,m=t.HTMLFormElement,I=t.DOMParser,w=t.trustedTypes,P=o.prototype,Ie=de(P,"cloneNode"),Le=de(P,"remove"),Oe=de(P,"nextSibling"),Xe=de(P,"childNodes"),ie=de(P,"parentNode");if(typeof l=="function"){const g=n.createElement("template");g.content&&g.content.ownerDocument&&(n=g.content.ownerDocument)}let E,G="";const De=n,Qe=De.implementation,Pn=De.createNodeIterator,Mn=De.createDocumentFragment,zn=De.getElementsByTagName,$n=s.importNode;let M=gn();e.isSupported=typeof wn=="function"&&typeof ie=="function"&&Qe&&Qe.createHTMLDocument!==void 0;const Ce=gr,Ne=dr,Pe=mr,vn=kr,Fn=br,Un=xr,Dt=Tr,Bn=Ar;let Ct=fn,L=null;const Nt=d({},[...cn,...ft,...gt,...dt,...un]);let C=null;const Pt=d({},[...pn,...mt,...hn,...He]);let _=Object.seal(ge(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}})),ke=null,Me=null;const K=Object.seal(ge(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Mt=!0,Ve=!0,zt=!1,$t=!0,J=!1,be=!0,ee=!1,Ke=!1,Je=!1,le=!1,ze=!1,$e=!1,vt=!0,Ft=!1;const Ut="user-content-";let et=!0,xe=!1,ae={},Y=null;const tt=d({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Bt=null;const Ht=d({},["audio","video","img","source","image","track"]);let nt=null;const Gt=d({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ve="http://www.w3.org/1998/Math/MathML",Fe="http://www.w3.org/2000/svg",X="http://www.w3.org/1999/xhtml";let oe=X,rt=!1,st=null;const Hn=d({},[ve,Fe,X],ht);let it=d({},["mi","mo","mn","ms","mtext"]),lt=d({},["annotation-xml"]);const Gn=d({},["title","style","font","a","script"]);let Te=null;const Wn=["application/xhtml+xml","text/html"],qn="text/html";let R=null,ce=null;const jn=n.createElement("form"),Wt=function(i){return i instanceof RegExp||i instanceof Function},at=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ce&&ce===i)return;(!i||typeof i!="object")&&(i={}),i=U(i),Te=Wn.indexOf(i.PARSER_MEDIA_TYPE)===-1?qn:i.PARSER_MEDIA_TYPE,R=Te==="application/xhtml+xml"?ht:ye,L=A(i,"ALLOWED_TAGS")&&z(i.ALLOWED_TAGS)?d({},i.ALLOWED_TAGS,R):Nt,C=A(i,"ALLOWED_ATTR")&&z(i.ALLOWED_ATTR)?d({},i.ALLOWED_ATTR,R):Pt,st=A(i,"ALLOWED_NAMESPACES")&&z(i.ALLOWED_NAMESPACES)?d({},i.ALLOWED_NAMESPACES,ht):Hn,nt=A(i,"ADD_URI_SAFE_ATTR")&&z(i.ADD_URI_SAFE_ATTR)?d(U(Gt),i.ADD_URI_SAFE_ATTR,R):Gt,Bt=A(i,"ADD_DATA_URI_TAGS")&&z(i.ADD_DATA_URI_TAGS)?d(U(Ht),i.ADD_DATA_URI_TAGS,R):Ht,Y=A(i,"FORBID_CONTENTS")&&z(i.FORBID_CONTENTS)?d({},i.FORBID_CONTENTS,R):tt,ke=A(i,"FORBID_TAGS")&&z(i.FORBID_TAGS)?d({},i.FORBID_TAGS,R):U({}),Me=A(i,"FORBID_ATTR")&&z(i.FORBID_ATTR)?d({},i.FORBID_ATTR,R):U({}),ae=A(i,"USE_PROFILES")?i.USE_PROFILES&&typeof i.USE_PROFILES=="object"?U(i.USE_PROFILES):i.USE_PROFILES:!1,Mt=i.ALLOW_ARIA_ATTR!==!1,Ve=i.ALLOW_DATA_ATTR!==!1,zt=i.ALLOW_UNKNOWN_PROTOCOLS||!1,$t=i.ALLOW_SELF_CLOSE_IN_ATTR!==!1,J=i.SAFE_FOR_TEMPLATES||!1,be=i.SAFE_FOR_XML!==!1,ee=i.WHOLE_DOCUMENT||!1,le=i.RETURN_DOM||!1,ze=i.RETURN_DOM_FRAGMENT||!1,$e=i.RETURN_TRUSTED_TYPE||!1,Je=i.FORCE_BODY||!1,vt=i.SANITIZE_DOM!==!1,Ft=i.SANITIZE_NAMED_PROPS||!1,et=i.KEEP_CONTENT!==!1,xe=i.IN_PLACE||!1,Ct=pr(i.ALLOWED_URI_REGEXP)?i.ALLOWED_URI_REGEXP:fn,oe=typeof i.NAMESPACE=="string"?i.NAMESPACE:X,it=A(i,"MATHML_TEXT_INTEGRATION_POINTS")&&i.MATHML_TEXT_INTEGRATION_POINTS&&typeof i.MATHML_TEXT_INTEGRATION_POINTS=="object"?U(i.MATHML_TEXT_INTEGRATION_POINTS):d({},["mi","mo","mn","ms","mtext"]),lt=A(i,"HTML_INTEGRATION_POINTS")&&i.HTML_INTEGRATION_POINTS&&typeof i.HTML_INTEGRATION_POINTS=="object"?U(i.HTML_INTEGRATION_POINTS):d({},["annotation-xml"]);const c=A(i,"CUSTOM_ELEMENT_HANDLING")&&i.CUSTOM_ELEMENT_HANDLING&&typeof i.CUSTOM_ELEMENT_HANDLING=="object"?U(i.CUSTOM_ELEMENT_HANDLING):ge(null);if(_=ge(null),A(c,"tagNameCheck")&&Wt(c.tagNameCheck)&&(_.tagNameCheck=c.tagNameCheck),A(c,"attributeNameCheck")&&Wt(c.attributeNameCheck)&&(_.attributeNameCheck=c.attributeNameCheck),A(c,"allowCustomizedBuiltInElements")&&typeof c.allowCustomizedBuiltInElements=="boolean"&&(_.allowCustomizedBuiltInElements=c.allowCustomizedBuiltInElements),J&&(Ve=!1),ze&&(le=!0),ae&&(L=d({},un),C=ge(null),ae.html===!0&&(d(L,cn),d(C,pn)),ae.svg===!0&&(d(L,ft),d(C,mt),d(C,He)),ae.svgFilters===!0&&(d(L,gt),d(C,mt),d(C,He)),ae.mathMl===!0&&(d(L,dt),d(C,hn),d(C,He))),K.tagCheck=null,K.attributeCheck=null,A(i,"ADD_TAGS")&&(typeof i.ADD_TAGS=="function"?K.tagCheck=i.ADD_TAGS:z(i.ADD_TAGS)&&(L===Nt&&(L=U(L)),d(L,i.ADD_TAGS,R))),A(i,"ADD_ATTR")&&(typeof i.ADD_ATTR=="function"?K.attributeCheck=i.ADD_ATTR:z(i.ADD_ATTR)&&(C===Pt&&(C=U(C)),d(C,i.ADD_ATTR,R))),A(i,"ADD_URI_SAFE_ATTR")&&z(i.ADD_URI_SAFE_ATTR)&&d(nt,i.ADD_URI_SAFE_ATTR,R),A(i,"FORBID_CONTENTS")&&z(i.FORBID_CONTENTS)&&(Y===tt&&(Y=U(Y)),d(Y,i.FORBID_CONTENTS,R)),A(i,"ADD_FORBID_CONTENTS")&&z(i.ADD_FORBID_CONTENTS)&&(Y===tt&&(Y=U(Y)),d(Y,i.ADD_FORBID_CONTENTS,R)),et&&(L["#text"]=!0),ee&&d(L,["html","head","body"]),L.table&&(d(L,["tbody"]),delete ke.tbody),i.TRUSTED_TYPES_POLICY){if(typeof i.TRUSTED_TYPES_POLICY.createHTML!="function")throw Be('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof i.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Be('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');E=i.TRUSTED_TYPES_POLICY,G=E.createHTML("")}else E===void 0&&(E=Sr(w,r)),E!==null&&typeof G=="string"&&(G=E.createHTML(""));v&&v(i),ce=i},qt=d({},[...ft,...gt,...hr]),jt=d({},[...dt,...fr]),Zn=function(i){let c=ie(i);(!c||!c.tagName)&&(c={namespaceURI:oe,tagName:"template"});const h=ye(i.tagName),x=ye(c.tagName);return st[i.namespaceURI]?i.namespaceURI===Fe?c.namespaceURI===X?h==="svg":c.namespaceURI===ve?h==="svg"&&(x==="annotation-xml"||it[x]):!!qt[h]:i.namespaceURI===ve?c.namespaceURI===X?h==="math":c.namespaceURI===Fe?h==="math"&&lt[x]:!!jt[h]:i.namespaceURI===X?c.namespaceURI===Fe&&!lt[x]||c.namespaceURI===ve&&!it[x]?!1:!jt[h]&&(Gn[h]||!qt[h]):!!(Te==="application/xhtml+xml"&&st[i.namespaceURI]):!1},W=function(i){pe(e.removed,{element:i});try{ie(i).removeChild(i)}catch{Le(i)}},te=function(i,c){try{pe(e.removed,{attribute:c.getAttributeNode(i),from:c})}catch{pe(e.removed,{attribute:null,from:c})}if(c.removeAttribute(i),i==="is")if(le||ze)try{W(c)}catch{}else try{c.setAttribute(i,"")}catch{}},Zt=function(i){let c=null,h=null;if(Je)i="<remove></remove>"+i;else{const S=sn(i,/^[\r\n\t ]+/);h=S&&S[0]}Te==="application/xhtml+xml"&&oe===X&&(i='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+i+"</body></html>");const x=E?E.createHTML(i):i;if(oe===X)try{c=new I().parseFromString(x,Te)}catch{}if(!c||!c.documentElement){c=Qe.createDocument(oe,"template",null);try{c.documentElement.innerHTML=rt?G:x}catch{}}const O=c.body||c.documentElement;return i&&h&&O.insertBefore(n.createTextNode(h),O.childNodes[0]||null),oe===X?zn.call(c,ee?"html":"body")[0]:ee?c.documentElement:O},Yt=function(i){return Pn.call(i.ownerDocument||i,i,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},ot=function(i){return i instanceof m&&(typeof i.nodeName!="string"||typeof i.textContent!="string"||typeof i.removeChild!="function"||!(i.attributes instanceof b)||typeof i.removeAttribute!="function"||typeof i.setAttribute!="function"||typeof i.namespaceURI!="string"||typeof i.insertBefore!="function"||typeof i.hasChildNodes!="function")},ct=function(i){return typeof u=="function"&&i instanceof u};function V(g,i,c){ue(g,h=>{h.call(e,i,c,ce)})}const Xt=function(i){let c=null;if(V(M.beforeSanitizeElements,i,null),ot(i))return W(i),!0;const h=R(i.nodeName);if(V(M.uponSanitizeElement,i,{tagName:h,allowedTags:L}),be&&i.hasChildNodes()&&!ct(i.firstElementChild)&&N(/<[/\w!]/g,i.innerHTML)&&N(/<[/\w!]/g,i.textContent)||be&&i.namespaceURI===X&&h==="style"&&ct(i.firstElementChild)||i.nodeType===fe.progressingInstruction||be&&i.nodeType===fe.comment&&N(/<[/\w]/g,i.data))return W(i),!0;if(ke[h]||!(K.tagCheck instanceof Function&&K.tagCheck(h))&&!L[h]){if(!ke[h]&&Vt(h)&&(_.tagNameCheck instanceof RegExp&&N(_.tagNameCheck,h)||_.tagNameCheck instanceof Function&&_.tagNameCheck(h)))return!1;if(et&&!Y[h]){const x=ie(i)||i.parentNode,O=Xe(i)||i.childNodes;if(O&&x){const S=O.length;for(let F=S-1;F>=0;--F){const B=Ie(O[F],!0);x.insertBefore(B,Oe(i))}}}return W(i),!0}return i instanceof o&&!Zn(i)||(h==="noscript"||h==="noembed"||h==="noframes")&&N(/<\/no(script|embed|frames)/i,i.innerHTML)?(W(i),!0):(J&&i.nodeType===fe.text&&(c=i.textContent,ue([Ce,Ne,Pe],x=>{c=he(c,x," ")}),i.textContent!==c&&(pe(e.removed,{element:i.cloneNode()}),i.textContent=c)),V(M.afterSanitizeElements,i,null),!1)},Qt=function(i,c,h){if(Me[c]||vt&&(c==="id"||c==="name")&&(h in n||h in jn))return!1;const x=C[c]||K.attributeCheck instanceof Function&&K.attributeCheck(c,i);if(!(Ve&&!Me[c]&&N(vn,c))){if(!(Mt&&N(Fn,c))){if(!x||Me[c]){if(!(Vt(i)&&(_.tagNameCheck instanceof RegExp&&N(_.tagNameCheck,i)||_.tagNameCheck instanceof Function&&_.tagNameCheck(i))&&(_.attributeNameCheck instanceof RegExp&&N(_.attributeNameCheck,c)||_.attributeNameCheck instanceof Function&&_.attributeNameCheck(c,i))||c==="is"&&_.allowCustomizedBuiltInElements&&(_.tagNameCheck instanceof RegExp&&N(_.tagNameCheck,h)||_.tagNameCheck instanceof Function&&_.tagNameCheck(h))))return!1}else if(!nt[c]){if(!N(Ct,he(h,Dt,""))){if(!((c==="src"||c==="xlink:href"||c==="href")&&i!=="script"&&ln(h,"data:")===0&&Bt[i])){if(!(zt&&!N(Un,he(h,Dt,"")))){if(h)return!1}}}}}}return!0},Yn=d({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Vt=function(i){return!Yn[ye(i)]&&N(Bn,i)},Kt=function(i){V(M.beforeSanitizeAttributes,i,null);const c=i.attributes;if(!c||ot(i))return;const h={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:C,forceKeepAttr:void 0};let x=c.length;for(;x--;){const O=c[x],S=O.name,F=O.namespaceURI,B=O.value,q=R(S),pt=B;let D=S==="value"?pt:ir(pt);if(h.attrName=q,h.attrValue=D,h.keepAttr=!0,h.forceKeepAttr=void 0,V(M.uponSanitizeAttribute,i,h),D=h.attrValue,Ft&&(q==="id"||q==="name")&&ln(D,Ut)!==0&&(te(S,i),D=Ut+D),be&&N(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,D)){te(S,i);continue}if(q==="attributename"&&sn(D,"href")){te(S,i);continue}if(h.forceKeepAttr)continue;if(!h.keepAttr){te(S,i);continue}if(!$t&&N(/\/>/i,D)){te(S,i);continue}J&&ue([Ce,Ne,Pe],en=>{D=he(D,en," ")});const Jt=R(i.nodeName);if(!Qt(Jt,q,D)){te(S,i);continue}if(E&&typeof w=="object"&&typeof w.getAttributeType=="function"&&!F)switch(w.getAttributeType(Jt,q)){case"TrustedHTML":{D=E.createHTML(D);break}case"TrustedScriptURL":{D=E.createScriptURL(D);break}}if(D!==pt)try{F?i.setAttributeNS(F,S,D):i.setAttribute(S,D),ot(i)?W(i):rn(e.removed)}catch{te(S,i)}}V(M.afterSanitizeAttributes,i,null)},ut=function(i){let c=null;const h=Yt(i);for(V(M.beforeSanitizeShadowDOM,i,null);c=h.nextNode();)V(M.uponSanitizeShadowNode,c,null),Xt(c),Kt(c),c.content instanceof a&&ut(c.content);V(M.afterSanitizeShadowDOM,i,null)},Ue=function(i){if(i.nodeType===fe.element&&i.shadowRoot instanceof a){const x=i.shadowRoot;Ue(x),ut(x)}const c=i.childNodes;if(!c)return;const h=[];ue(c,x=>{pe(h,x)});for(const x of h)Ue(x)};return e.sanitize=function(g){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=null,h=null,x=null,O=null;if(rt=!g,rt&&(g="<!-->"),typeof g!="string"&&!ct(g)&&(g=ur(g),typeof g!="string"))throw Be("dirty is not a string, aborting");if(!e.isSupported)return g;if(Ke||at(i),e.removed=[],typeof g=="string"&&(xe=!1),xe){const B=g.nodeName;if(typeof B=="string"){const q=R(B);if(!L[q]||ke[q])throw Be("root node is forbidden and cannot be sanitized in-place")}Ue(g)}else if(g instanceof u)c=Zt("<!---->"),h=c.ownerDocument.importNode(g,!0),h.nodeType===fe.element&&h.nodeName==="BODY"||h.nodeName==="HTML"?c=h:c.appendChild(h),Ue(h);else{if(!le&&!J&&!ee&&g.indexOf("<")===-1)return E&&$e?E.createHTML(g):g;if(c=Zt(g),!c)return le?null:$e?G:""}c&&Je&&W(c.firstChild);const S=Yt(xe?g:c);for(;x=S.nextNode();)Xt(x),Kt(x),x.content instanceof a&&ut(x.content);if(xe)return g;if(le){if(J){c.normalize();let B=c.innerHTML;ue([Ce,Ne,Pe],q=>{B=he(B,q," ")}),c.innerHTML=B}if(ze)for(O=Mn.call(c.ownerDocument);c.firstChild;)O.appendChild(c.firstChild);else O=c;return(C.shadowroot||C.shadowrootmode)&&(O=$n.call(s,O,!0)),O}let F=ee?c.outerHTML:c.innerHTML;return ee&&L["!doctype"]&&c.ownerDocument&&c.ownerDocument.doctype&&c.ownerDocument.doctype.name&&N(wr,c.ownerDocument.doctype.name)&&(F="<!DOCTYPE "+c.ownerDocument.doctype.name+`>
3
- `+F),J&&ue([Ce,Ne,Pe],B=>{F=he(F,B," ")}),E&&$e?E.createHTML(F):F},e.setConfig=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};at(g),Ke=!0},e.clearConfig=function(){ce=null,Ke=!1},e.isValidAttribute=function(g,i,c){ce||at({});const h=R(g),x=R(i);return Qt(h,x,c)},e.addHook=function(g,i){typeof i=="function"&&pe(M[g],i)},e.removeHook=function(g,i){if(i!==void 0){const c=rr(M[g],i);return c===-1?void 0:sr(M[g],c,1)[0]}return rn(M[g])},e.removeHooks=function(g){M[g]=[]},e.removeAllHooks=function(){M=gn()},e}var yr=_n();function At(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var se=At();function Sn(t){se=t}var ne={exec:()=>null};function k(t,e=""){let n=typeof t=="string"?t:t.source,s={replace:(r,a)=>{let l=typeof a=="string"?a:a.source;return l=l.replace($.caret,"$1"),n=n.replace(r,l),s},getRegex:()=>new RegExp(n,e)};return s}var Er=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),$={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}>`)},Rr=/^(?:[ \t]*(?:\n|$))+/,Ir=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Lr=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Re=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Or=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,_t=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,yn=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,En=k(yn).replace(/bull/g,_t).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Dr=k(yn).replace(/bull/g,_t).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),St=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Cr=/^[^\n]+/,yt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Nr=k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",yt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Pr=k(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,_t).getRegex(),Ze="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Et=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Mr=k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Et).replace("tag",Ze).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Rn=k(St).replace("hr",Re).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ze).getRegex(),zr=k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Rn).getRegex(),Rt={blockquote:zr,code:Ir,def:Nr,fences:Lr,heading:Or,hr:Re,html:Mr,lheading:En,list:Pr,newline:Rr,paragraph:Rn,table:ne,text:Cr},dn=k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Re).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ze).getRegex(),$r={...Rt,lheading:Dr,table:dn,paragraph:k(St).replace("hr",Re).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",dn).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ze).getRegex()},vr={...Rt,html:k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Et).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ne,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:k(St).replace("hr",Re).replace("heading",` *#{1,6} *[^
4
- ]`).replace("lheading",En).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Fr=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ur=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,In=/^( {2,}|\\)\n(?!\s*$)/,Br=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,me=/[\p{P}\p{S}]/u,Ye=/[\s\p{P}\p{S}]/u,It=/[^\s\p{P}\p{S}]/u,Hr=k(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Ye).getRegex(),Ln=/(?!~)[\p{P}\p{S}]/u,Gr=/(?!~)[\s\p{P}\p{S}]/u,Wr=/(?:[^\s\p{P}\p{S}]|~)/u,qr=k(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Er?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),On=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,jr=k(On,"u").replace(/punct/g,me).getRegex(),Zr=k(On,"u").replace(/punct/g,Ln).getRegex(),Dn="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Yr=k(Dn,"gu").replace(/notPunctSpace/g,It).replace(/punctSpace/g,Ye).replace(/punct/g,me).getRegex(),Xr=k(Dn,"gu").replace(/notPunctSpace/g,Wr).replace(/punctSpace/g,Gr).replace(/punct/g,Ln).getRegex(),Qr=k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,It).replace(/punctSpace/g,Ye).replace(/punct/g,me).getRegex(),Vr=k(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,me).getRegex(),Kr="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Jr=k(Kr,"gu").replace(/notPunctSpace/g,It).replace(/punctSpace/g,Ye).replace(/punct/g,me).getRegex(),es=k(/\\(punct)/,"gu").replace(/punct/g,me).getRegex(),ts=k(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ns=k(Et).replace("(?:-->|$)","-->").getRegex(),rs=k("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ns).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),We=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,ss=k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",We).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Cn=k(/^!?\[(label)\]\[(ref)\]/).replace("label",We).replace("ref",yt).getRegex(),Nn=k(/^!?\[(ref)\](?:\[\])?/).replace("ref",yt).getRegex(),is=k("reflink|nolink(?!\\()","g").replace("reflink",Cn).replace("nolink",Nn).getRegex(),mn=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Lt={_backpedal:ne,anyPunctuation:es,autolink:ts,blockSkip:qr,br:In,code:Ur,del:ne,delLDelim:ne,delRDelim:ne,emStrongLDelim:jr,emStrongRDelimAst:Yr,emStrongRDelimUnd:Qr,escape:Fr,link:ss,nolink:Nn,punctuation:Hr,reflink:Cn,reflinkSearch:is,tag:rs,text:Br,url:ne},ls={...Lt,link:k(/^!?\[(label)\]\((.*?)\)/).replace("label",We).getRegex(),reflink:k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",We).getRegex()},xt={...Lt,emStrongRDelimAst:Xr,emStrongLDelim:Zr,delLDelim:Vr,delRDelim:Jr,url:k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",mn).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:k(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",mn).getRegex()},as={...xt,br:k(In).replace("{2,}","*").getRegex(),text:k(xt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ge={normal:Rt,gfm:$r,pedantic:vr},Ae={normal:Lt,gfm:xt,breaks:as,pedantic:ls},os={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},kn=t=>os[t];function Q(t,e){if(e){if($.escapeTest.test(t))return t.replace($.escapeReplace,kn)}else if($.escapeTestNoEncode.test(t))return t.replace($.escapeReplaceNoEncode,kn);return t}function bn(t){try{t=encodeURI(t).replace($.percentDecode,"%")}catch{return null}return t}function xn(t,e){let n=t.replace($.findPipe,(a,l,u)=>{let o=!1,f=l;for(;--f>=0&&u[f]==="\\";)o=!o;return o?"|":" |"}),s=n.split($.splitPipe),r=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length<e;)s.push("");for(;r<s.length;r++)s[r]=s[r].trim().replace($.slashPipe,"|");return s}function _e(t,e,n){let s=t.length;if(s===0)return"";let r=0;for(;r<s&&t.charAt(s-r-1)===e;)r++;return t.slice(0,s-r)}function cs(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let s=0;s<t.length;s++)if(t[s]==="\\")s++;else if(t[s]===e[0])n++;else if(t[s]===e[1]&&(n--,n<0))return s;return n>0?-2:-1}function us(t,e=0){let n=e,s="";for(let r of t)if(r===" "){let a=4-n%4;s+=" ".repeat(a),n+=a}else s+=r,n++;return s}function Tn(t,e,n,s,r){let a=e.href,l=e.title||null,u=t[1].replace(r.other.outputLinkReplace,"$1");s.state.inLink=!0;let o={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:a,title:l,text:u,tokens:s.inlineTokens(u)};return s.state.inLink=!1,o}function ps(t,e,n){let s=t.match(n.other.indentCodeCompensation);if(s===null)return e;let r=s[1];return e.split(`
5
- `).map(a=>{let l=a.match(n.other.beginningSpace);if(l===null)return a;let[u]=l;return u.length>=r.length?a.slice(r.length):a}).join(`
6
- `)}var qe=class{options;rules;lexer;constructor(t){this.options=t||se}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let n=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:_e(n,`
7
- `)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let n=e[0],s=ps(n,e[3]||"",this.rules);return{type:"code",raw:n,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:s}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let n=e[2].trim();if(this.rules.other.endingHash.test(n)){let s=_e(n,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(n=s.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:_e(e[0],`
8
- `)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let n=_e(e[0],`
9
- `).split(`
10
- `),s="",r="",a=[];for(;n.length>0;){let l=!1,u=[],o;for(o=0;o<n.length;o++)if(this.rules.other.blockquoteStart.test(n[o]))u.push(n[o]),l=!0;else if(!l)u.push(n[o]);else break;n=n.slice(o);let f=u.join(`
11
- `),p=f.replace(this.rules.other.blockquoteSetextReplace,`
12
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
13
- ${f}`:f,r=r?`${r}
14
- ${p}`:p;let b=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,a,!0),this.lexer.state.top=b,n.length===0)break;let m=a.at(-1);if(m?.type==="code")break;if(m?.type==="blockquote"){let I=m,w=I.raw+`
15
- `+n.join(`
16
- `),P=this.blockquote(w);a[a.length-1]=P,s=s.substring(0,s.length-I.raw.length)+P.raw,r=r.substring(0,r.length-I.text.length)+P.text;break}else if(m?.type==="list"){let I=m,w=I.raw+`
17
- `+n.join(`
18
- `),P=this.list(w);a[a.length-1]=P,s=s.substring(0,s.length-m.raw.length)+P.raw,r=r.substring(0,r.length-I.raw.length)+P.raw,n=w.substring(a.at(-1).raw.length).split(`
19
- `);continue}}return{type:"blockquote",raw:s,tokens:a,text:r}}}list(t){let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim(),s=n.length>1,r={type:"list",raw:"",ordered:s,start:s?+n.slice(0,-1):"",loose:!1,items:[]};n=s?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=s?n:"[*+-]");let a=this.rules.other.listItemRegex(n),l=!1;for(;t;){let o=!1,f="",p="";if(!(e=a.exec(t))||this.rules.block.hr.test(t))break;f=e[0],t=t.substring(f.length);let b=us(e[2].split(`
20
- `,1)[0],e[1].length),m=t.split(`
21
- `,1)[0],I=!b.trim(),w=0;if(this.options.pedantic?(w=2,p=b.trimStart()):I?w=e[1].length+1:(w=b.search(this.rules.other.nonSpaceChar),w=w>4?1:w,p=b.slice(w),w+=e[1].length),I&&this.rules.other.blankLine.test(m)&&(f+=m+`
22
- `,t=t.substring(m.length+1),o=!0),!o){let P=this.rules.other.nextBulletRegex(w),Ie=this.rules.other.hrRegex(w),Le=this.rules.other.fencesBeginRegex(w),Oe=this.rules.other.headingBeginRegex(w),Xe=this.rules.other.htmlBeginRegex(w),ie=this.rules.other.blockquoteBeginRegex(w);for(;t;){let E=t.split(`
23
- `,1)[0],G;if(m=E,this.options.pedantic?(m=m.replace(this.rules.other.listReplaceNesting," "),G=m):G=m.replace(this.rules.other.tabCharGlobal," "),Le.test(m)||Oe.test(m)||Xe.test(m)||ie.test(m)||P.test(m)||Ie.test(m))break;if(G.search(this.rules.other.nonSpaceChar)>=w||!m.trim())p+=`
24
- `+G.slice(w);else{if(I||b.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||Le.test(b)||Oe.test(b)||Ie.test(b))break;p+=`
25
- `+m}I=!m.trim(),f+=E+`
26
- `,t=t.substring(E.length+1),b=G.slice(w)}}r.loose||(l?r.loose=!0:this.rules.other.doubleBlankLine.test(f)&&(l=!0)),r.items.push({type:"list_item",raw:f,task:!!this.options.gfm&&this.rules.other.listIsTask.test(p),loose:!1,text:p,tokens:[]}),r.raw+=f}let u=r.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;r.raw=r.raw.trimEnd();for(let o of r.items){if(this.lexer.state.top=!1,o.tokens=this.lexer.blockTokens(o.text,[]),o.task){if(o.text=o.text.replace(this.rules.other.listReplaceTask,""),o.tokens[0]?.type==="text"||o.tokens[0]?.type==="paragraph"){o.tokens[0].raw=o.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),o.tokens[0].text=o.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let p=this.lexer.inlineQueue.length-1;p>=0;p--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[p].src)){this.lexer.inlineQueue[p].src=this.lexer.inlineQueue[p].src.replace(this.rules.other.listReplaceTask,"");break}}let f=this.rules.other.listTaskCheckbox.exec(o.raw);if(f){let p={type:"checkbox",raw:f[0]+" ",checked:f[0]!=="[ ]"};o.checked=p.checked,r.loose?o.tokens[0]&&["paragraph","text"].includes(o.tokens[0].type)&&"tokens"in o.tokens[0]&&o.tokens[0].tokens?(o.tokens[0].raw=p.raw+o.tokens[0].raw,o.tokens[0].text=p.raw+o.tokens[0].text,o.tokens[0].tokens.unshift(p)):o.tokens.unshift({type:"paragraph",raw:p.raw,text:p.raw,tokens:[p]}):o.tokens.unshift(p)}}if(!r.loose){let f=o.tokens.filter(b=>b.type==="space"),p=f.length>0&&f.some(b=>this.rules.other.anyLine.test(b.raw));r.loose=p}}if(r.loose)for(let o of r.items){o.loose=!0;for(let f of o.tokens)f.type==="text"&&(f.type="paragraph")}return r}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let n=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:n,raw:e[0],href:s,title:r}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let n=xn(e[1]),s=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
27
- `):[],a={type:"table",raw:e[0],header:[],align:[],rows:[]};if(n.length===s.length){for(let l of s)this.rules.other.tableAlignRight.test(l)?a.align.push("right"):this.rules.other.tableAlignCenter.test(l)?a.align.push("center"):this.rules.other.tableAlignLeft.test(l)?a.align.push("left"):a.align.push(null);for(let l=0;l<n.length;l++)a.header.push({text:n[l],tokens:this.lexer.inline(n[l]),header:!0,align:a.align[l]});for(let l of r)a.rows.push(xn(l,a.header.length).map((u,o)=>({text:u,tokens:this.lexer.inline(u),header:!1,align:a.align[o]})));return a}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e){let n=e[1].trim();return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:n,tokens:this.lexer.inline(n)}}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let n=e[1].charAt(e[1].length-1)===`
28
- `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:n,tokens:this.lexer.inline(n)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let n=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let a=_e(n.slice(0,-1),"\\");if((n.length-a.length)%2===0)return}else{let a=cs(e[2],"()");if(a===-2)return;if(a>-1){let l=(e[0].indexOf("!")===0?5:4)+e[1].length+a;e[2]=e[2].substring(0,a),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let s=e[2],r="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(s);a&&(s=a[1],r=a[3])}else r=e[3]?e[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?s=s.slice(1):s=s.slice(1,-1)),Tn(e,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let s=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=e[s.toLowerCase()];if(!r){let a=n[0].charAt(0);return{type:"text",raw:a,text:a}}return Tn(n,r,n[0],this.lexer,this.rules)}}emStrong(t,e,n=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||!s[1]&&!s[2]&&!s[3]&&!s[4]||s[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[3])||!n||this.rules.inline.punctuation.exec(n))){let r=[...s[0]].length-1,a,l,u=r,o=0,f=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,e=e.slice(-1*t.length+r);(s=f.exec(e))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a)continue;if(l=[...a].length,s[3]||s[4]){u+=l;continue}else if((s[5]||s[6])&&r%3&&!((r+l)%3)){o+=l;continue}if(u-=l,u>0)continue;l=Math.min(l,l+u+o);let p=[...s[0]][0].length,b=t.slice(0,r+s.index+p+l);if(Math.min(r,l)%2){let I=b.slice(1,-1);return{type:"em",raw:b,text:I,tokens:this.lexer.inlineTokens(I)}}let m=b.slice(2,-2);return{type:"strong",raw:b,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let n=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(n),r=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return s&&r&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:e[0],text:n}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t,e,n=""){let s=this.rules.inline.delLDelim.exec(t);if(s&&(!s[1]||!n||this.rules.inline.punctuation.exec(n))){let r=[...s[0]].length-1,a,l,u=r,o=this.rules.inline.delRDelim;for(o.lastIndex=0,e=e.slice(-1*t.length+r);(s=o.exec(e))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a||(l=[...a].length,l!==r))continue;if(s[3]||s[4]){u+=l;continue}if(u-=l,u>0)continue;l=Math.min(l,l+u);let f=[...s[0]][0].length,p=t.slice(0,r+s.index+f+l),b=p.slice(r,-r);return{type:"del",raw:p,text:b,tokens:this.lexer.inlineTokens(b)}}}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let n,s;return e[2]==="@"?(n=e[1],s="mailto:"+n):(n=e[1],s=n),{type:"link",raw:e[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let n,s;if(e[2]==="@")n=e[0],s="mailto:"+n;else{let r;do r=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(r!==e[0]);n=e[0],e[1]==="www."?s="http://"+e[0]:s=e[0]}return{type:"link",raw:e[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let n=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:n}}}},j=class Tt{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||se,this.options.tokenizer=this.options.tokenizer||new qe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:$,block:Ge.normal,inline:Ae.normal};this.options.pedantic?(n.block=Ge.pedantic,n.inline=Ae.pedantic):this.options.gfm&&(n.block=Ge.gfm,this.options.breaks?n.inline=Ae.breaks:n.inline=Ae.gfm),this.tokenizer.rules=n}static get rules(){return{block:Ge,inline:Ae}}static lex(e,n){return new Tt(n).lex(e)}static lexInline(e,n){return new Tt(n).inlineTokens(e)}lex(e){e=e.replace($.carriageReturn,`
29
- `),this.blockTokens(e,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let s=this.inlineQueue[n];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,n=[],s=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace($.tabCharGlobal," ").replace($.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(l=>(r=l.call({lexer:this},e,n))?(e=e.substring(r.raw.length),n.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let l=n.at(-1);r.raw.length===1&&l!==void 0?l.raw+=`
30
- `:n.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let l=n.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(`
31
- `)?"":`
32
- `)+r.raw,l.text+=`
33
- `+r.text,this.inlineQueue.at(-1).src=l.text):n.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let l=n.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(`
34
- `)?"":`
35
- `)+r.raw,l.text+=`
36
- `+r.raw,this.inlineQueue.at(-1).src=l.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},n.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),n.push(r);continue}let a=e;if(this.options.extensions?.startBlock){let l=1/0,u=e.slice(1),o;this.options.extensions.startBlock.forEach(f=>{o=f.call({lexer:this},u),typeof o=="number"&&o>=0&&(l=Math.min(l,o))}),l<1/0&&l>=0&&(a=e.substring(0,l+1))}if(this.state.top&&(r=this.tokenizer.paragraph(a))){let l=n.at(-1);s&&l?.type==="paragraph"?(l.raw+=(l.raw.endsWith(`
37
- `)?"":`
38
- `)+r.raw,l.text+=`
39
- `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):n.push(r),s=a.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let l=n.at(-1);l?.type==="text"?(l.raw+=(l.raw.endsWith(`
40
- `)?"":`
41
- `)+r.raw,l.text+=`
42
- `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):n.push(r);continue}if(e){let l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){this.tokenizer.lexer=this;let s=e,r=null;if(this.tokens.links){let o=Object.keys(this.tokens.links);if(o.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)o.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,r.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)a=r[2]?r[2].length:0,s=s.slice(0,r.index+a)+"["+"a".repeat(r[0].length-a-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let l=!1,u="";for(;e;){l||(u=""),l=!1;let o;if(this.options.extensions?.inline?.some(p=>(o=p.call({lexer:this},e,n))?(e=e.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let p=n.at(-1);o.type==="text"&&p?.type==="text"?(p.raw+=o.raw,p.text+=o.text):n.push(o);continue}if(o=this.tokenizer.emStrong(e,s,u)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.del(e,s,u)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),n.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),n.push(o);continue}let f=e;if(this.options.extensions?.startInline){let p=1/0,b=e.slice(1),m;this.options.extensions.startInline.forEach(I=>{m=I.call({lexer:this},b),typeof m=="number"&&m>=0&&(p=Math.min(p,m))}),p<1/0&&p>=0&&(f=e.substring(0,p+1))}if(o=this.tokenizer.inlineText(f)){e=e.substring(o.raw.length),o.raw.slice(-1)!=="_"&&(u=o.raw.slice(-1)),l=!0;let p=n.at(-1);p?.type==="text"?(p.raw+=o.raw,p.text+=o.text):n.push(o);continue}if(e){let p="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return n}},je=class{options;parser;constructor(t){this.options=t||se}space(t){return""}code({text:t,lang:e,escaped:n}){let s=(e||"").match($.notSpaceStart)?.[0],r=t.replace($.endingNewline,"")+`
43
- `;return s?'<pre><code class="language-'+Q(s)+'">'+(n?r:Q(r,!0))+`</code></pre>
44
- `:"<pre><code>"+(n?r:Q(r,!0))+`</code></pre>
45
- `}blockquote({tokens:t}){return`<blockquote>
46
- ${this.parser.parse(t)}</blockquote>
47
- `}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>
48
- `}hr(t){return`<hr>
49
- `}list(t){let e=t.ordered,n=t.start,s="";for(let l=0;l<t.items.length;l++){let u=t.items[l];s+=this.listitem(u)}let r=e?"ol":"ul",a=e&&n!==1?' start="'+n+'"':"";return"<"+r+a+`>
50
- `+s+"</"+r+`>
51
- `}listitem(t){return`<li>${this.parser.parse(t.tokens)}</li>
52
- `}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
53
- `}table(t){let e="",n="";for(let r=0;r<t.header.length;r++)n+=this.tablecell(t.header[r]);e+=this.tablerow({text:n});let s="";for(let r=0;r<t.rows.length;r++){let a=t.rows[r];n="";for(let l=0;l<a.length;l++)n+=this.tablecell(a[l]);s+=this.tablerow({text:n})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
54
- <thead>
55
- `+e+`</thead>
56
- `+s+`</table>
57
- `}tablerow({text:t}){return`<tr>
58
- ${t}</tr>
59
- `}tablecell(t){let e=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>
60
- `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${Q(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:n}){let s=this.parser.parseInline(n),r=bn(t);if(r===null)return s;t=r;let a='<a href="'+t+'"';return e&&(a+=' title="'+Q(e)+'"'),a+=">"+s+"</a>",a}image({href:t,title:e,text:n,tokens:s}){s&&(n=this.parser.parseInline(s,this.parser.textRenderer));let r=bn(t);if(r===null)return Q(n);t=r;let a=`<img src="${t}" alt="${Q(n)}"`;return e&&(a+=` title="${Q(e)}"`),a+=">",a}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Q(t.text)}},Ot=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},Z=class wt{options;renderer;textRenderer;constructor(e){this.options=e||se,this.options.renderer=this.options.renderer||new je,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ot}static parse(e,n){return new wt(n).parse(e)}static parseInline(e,n){return new wt(n).parseInline(e)}parse(e){this.renderer.parser=this;let n="";for(let s=0;s<e.length;s++){let r=e[s];if(this.options.extensions?.renderers?.[r.type]){let l=r,u=this.options.extensions.renderers[l.type].call({parser:this},l);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){n+=u||"";continue}}let a=r;switch(a.type){case"space":{n+=this.renderer.space(a);break}case"hr":{n+=this.renderer.hr(a);break}case"heading":{n+=this.renderer.heading(a);break}case"code":{n+=this.renderer.code(a);break}case"table":{n+=this.renderer.table(a);break}case"blockquote":{n+=this.renderer.blockquote(a);break}case"list":{n+=this.renderer.list(a);break}case"checkbox":{n+=this.renderer.checkbox(a);break}case"html":{n+=this.renderer.html(a);break}case"def":{n+=this.renderer.def(a);break}case"paragraph":{n+=this.renderer.paragraph(a);break}case"text":{n+=this.renderer.text(a);break}default:{let l='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}parseInline(e,n=this.renderer){this.renderer.parser=this;let s="";for(let r=0;r<e.length;r++){let a=e[r];if(this.options.extensions?.renderers?.[a.type]){let u=this.options.extensions.renderers[a.type].call({parser:this},a);if(u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){s+=u||"";continue}}let l=a;switch(l.type){case"escape":{s+=n.text(l);break}case"html":{s+=n.html(l);break}case"link":{s+=n.link(l);break}case"image":{s+=n.image(l);break}case"checkbox":{s+=n.checkbox(l);break}case"strong":{s+=n.strong(l);break}case"em":{s+=n.em(l);break}case"codespan":{s+=n.codespan(l);break}case"br":{s+=n.br(l);break}case"del":{s+=n.del(l);break}case"text":{s+=n.text(l);break}default:{let u='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return s}},Ee=class{options;block;constructor(t){this.options=t||se}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?j.lex:j.lexInline}provideParser(){return this.block?Z.parse:Z.parseInline}},hs=class{defaults=At();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Z;Renderer=je;TextRenderer=Ot;Lexer=j;Tokenizer=qe;Hooks=Ee;constructor(...t){this.use(...t)}walkTokens(t,e){let n=[];for(let s of t)switch(n=n.concat(e.call(this,s)),s.type){case"table":{let r=s;for(let a of r.header)n=n.concat(this.walkTokens(a.tokens,e));for(let a of r.rows)for(let l of a)n=n.concat(this.walkTokens(l.tokens,e));break}case"list":{let r=s;n=n.concat(this.walkTokens(r.items,e));break}default:{let r=s;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach(a=>{let l=r[a].flat(1/0);n=n.concat(this.walkTokens(l,e))}):r.tokens&&(n=n.concat(this.walkTokens(r.tokens,e)))}}return n}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let s={...n};if(s.async=this.defaults.async||s.async||!1,n.extensions&&(n.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let a=e.renderers[r.name];a?e.renderers[r.name]=function(...l){let u=r.renderer.apply(this,l);return u===!1&&(u=a.apply(this,l)),u}:e.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=e[r.level];a?a.unshift(r.tokenizer):e[r.level]=[r.tokenizer],r.start&&(r.level==="block"?e.startBlock?e.startBlock.push(r.start):e.startBlock=[r.start]:r.level==="inline"&&(e.startInline?e.startInline.push(r.start):e.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(e.childTokens[r.name]=r.childTokens)}),s.extensions=e),n.renderer){let r=this.defaults.renderer||new je(this.defaults);for(let a in n.renderer){if(!(a in r))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let l=a,u=n.renderer[l],o=r[l];r[l]=(...f)=>{let p=u.apply(r,f);return p===!1&&(p=o.apply(r,f)),p||""}}s.renderer=r}if(n.tokenizer){let r=this.defaults.tokenizer||new qe(this.defaults);for(let a in n.tokenizer){if(!(a in r))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let l=a,u=n.tokenizer[l],o=r[l];r[l]=(...f)=>{let p=u.apply(r,f);return p===!1&&(p=o.apply(r,f)),p}}s.tokenizer=r}if(n.hooks){let r=this.defaults.hooks||new Ee;for(let a in n.hooks){if(!(a in r))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let l=a,u=n.hooks[l],o=r[l];Ee.passThroughHooks.has(a)?r[l]=f=>{if(this.defaults.async&&Ee.passThroughHooksRespectAsync.has(a))return(async()=>{let b=await u.call(r,f);return o.call(r,b)})();let p=u.call(r,f);return o.call(r,p)}:r[l]=(...f)=>{if(this.defaults.async)return(async()=>{let b=await u.apply(r,f);return b===!1&&(b=await o.apply(r,f)),b})();let p=u.apply(r,f);return p===!1&&(p=o.apply(r,f)),p}}s.hooks=r}if(n.walkTokens){let r=this.defaults.walkTokens,a=n.walkTokens;s.walkTokens=function(l){let u=[];return u.push(a.call(this,l)),r&&(u=u.concat(r.call(this,l))),u}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return j.lex(t,e??this.defaults)}parser(t,e){return Z.parse(t,e??this.defaults)}parseMarkdown(t){return(e,n)=>{let s={...n},r={...this.defaults,...s},a=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&s.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(r.hooks&&(r.hooks.options=r,r.hooks.block=t),r.async)return(async()=>{let l=r.hooks?await r.hooks.preprocess(e):e,u=await(r.hooks?await r.hooks.provideLexer():t?j.lex:j.lexInline)(l,r),o=r.hooks?await r.hooks.processAllTokens(u):u;r.walkTokens&&await Promise.all(this.walkTokens(o,r.walkTokens));let f=await(r.hooks?await r.hooks.provideParser():t?Z.parse:Z.parseInline)(o,r);return r.hooks?await r.hooks.postprocess(f):f})().catch(a);try{r.hooks&&(e=r.hooks.preprocess(e));let l=(r.hooks?r.hooks.provideLexer():t?j.lex:j.lexInline)(e,r);r.hooks&&(l=r.hooks.processAllTokens(l)),r.walkTokens&&this.walkTokens(l,r.walkTokens);let u=(r.hooks?r.hooks.provideParser():t?Z.parse:Z.parseInline)(l,r);return r.hooks&&(u=r.hooks.postprocess(u)),u}catch(l){return a(l)}}}onError(t,e){return n=>{if(n.message+=`
61
- Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+Q(n.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(n);throw n}}},re=new hs;function T(t,e){return re.parse(t,e)}T.options=T.setOptions=function(t){return re.setOptions(t),T.defaults=re.defaults,Sn(T.defaults),T};T.getDefaults=At;T.defaults=se;T.use=function(...t){return re.use(...t),T.defaults=re.defaults,Sn(T.defaults),T};T.walkTokens=function(t,e){return re.walkTokens(t,e)};T.parseInline=re.parseInline;T.Parser=Z;T.parser=Z.parse;T.Renderer=je;T.TextRenderer=Ot;T.Lexer=j;T.lexer=j.lex;T.Tokenizer=qe;T.Hooks=Ee;T.parse=T;T.options;T.setOptions;T.use;T.walkTokens;T.parseInline;Z.parse;j.lex;T.setOptions({breaks:!0,gfm:!0});const Se=new Map,fs=500;function gs(t){if(!t)return"";const e=Se.get(t);if(e!==void 0)return e;const n=T.parse(t),s=yr.sanitize(n);if(Se.size>=fs){const r=Se.keys().next().value;r!==void 0&&Se.delete(r)}return Se.set(t,s),s}export{gs as r};
@@ -1,2 +0,0 @@
1
- import{O as re,Y as Ae,Z as Oe,_ as Re,g as O,a0 as ce,b as de,X as he,a1 as Ne,a2 as _e,a as pe,I as K,i as se,a3 as L,n as _,j as p,a4 as w,a5 as ne,f as ve,Q,a6 as De,a7 as ie,h as E,e as R,a8 as Y,a9 as S,aa as ge,ab as Ie,ac as H,ad as U,ae,af as Pe,ag as Me,ah as be,F as Z,ai as ke,aj as D,m as I,B as Le,T as me,ak as x,R as ye,al as Ce,am as xe,an as Fe,ao as Be,ap as Ye,o as j,aq as He,ar as Ue,as as Ve,at as je,au as qe,av as We,aw as q,C as we,U as $e,k as ze,ax as W,l as N,ay as Ge,az as Xe,aA as Je,aB as Ke,p as Qe,aC as Ze,aD as et,w as tt,aE as fe,aF as rt,aG as st,S as nt,D as it,aH as at,aI as ee,aJ as $,aK as ft,aL as ot,q as ut,aM as lt,aN as ct,aO as dt,aP as ht,aQ as _t,aR as pt,M as oe,aS as vt,aT as gt,V as Ee,aU as M}from"./DWmC0QM7.js";let F=!1,z=Symbol();function xt(t,e,r){const s=r[e]??={store:null,source:Ae(void 0),unsubscribe:re};if(s.store!==t&&!(z in r))if(s.unsubscribe(),s.store=t??null,t==null)s.source.v=void 0,s.unsubscribe=re;else{var i=!0;s.unsubscribe=Oe(t,n=>{i?s.source.v=n:de(s.source,n)}),i=!1}return t&&z in r?Re(t):O(s.source)}function Ft(){const t={};function e(){ce(()=>{for(var r in t)t[r].unsubscribe();he(t,z,{enumerable:!1,value:!0})})}return[t,e]}function bt(t){var e=F;try{return F=!1,[t(),F]}finally{F=e}}function mt(t){let e=0,r=pe(0),s;return()=>{Ne()&&(O(r),_e(()=>(e===0&&(s=K(()=>t(()=>se(r)))),e+=1,()=>{L(()=>{e-=1,e===0&&(s?.(),s=void 0,se(r))})})))}}var yt=ye|Ce;function wt(t,e,r,s){new Et(t,e,r,s)}class Et{parent;is_pending=!1;transform_error;#t;#i=p?_:null;#e;#f;#r;#n=null;#s=null;#a=null;#o=null;#c=0;#l=0;#d=!1;#p=new Set;#v=new Set;#u=null;#y=mt(()=>(this.#u=pe(this.#c),()=>{this.#u=null}));constructor(e,r,s,i){this.#t=e,this.#e=r,this.#f=n=>{var a=w;a.b=this,a.f|=ne,s(n)},this.parent=w.b,this.transform_error=i??this.parent?.transform_error??(n=>n),this.#r=ve(()=>{if(p){const n=this.#i;Q();const a=n.data===De;if(n.data.startsWith(ie)){const f=JSON.parse(n.data.slice(ie.length));this.#E(f)}else a?this.#T():this.#w()}else this.#g()},yt),p&&(this.#t=_)}#w(){try{this.#n=E(()=>this.#f(this.#t))}catch(e){this.error(e)}}#E(e){const r=this.#e.failed;r&&(this.#a=E(()=>{r(this.#t,()=>e,()=>()=>{})}))}#T(){const e=this.#e.pending;e&&(this.is_pending=!0,this.#s=E(()=>e(this.#t)),L(()=>{var r=this.#o=document.createDocumentFragment(),s=R();r.append(s),this.#n=this.#_(()=>E(()=>this.#f(s))),this.#l===0&&(this.#t.before(r),this.#o=null,Y(this.#s,()=>{this.#s=null}),this.#h(S))}))}#g(){try{if(this.is_pending=this.has_pending_snippet(),this.#l=0,this.#c=0,this.#n=E(()=>{this.#f(this.#t)}),this.#l>0){var e=this.#o=document.createDocumentFragment();ge(this.#n,e);const r=this.#e.pending;this.#s=E(()=>r(this.#t))}else this.#h(S)}catch(r){this.error(r)}}#h(e){this.is_pending=!1,e.transfer_effects(this.#p,this.#v)}defer_effect(e){Ie(e,this.#p,this.#v)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#e.pending}#_(e){var r=w,s=be,i=Z;H(this.#r),U(this.#r),ae(this.#r.ctx);try{return Pe.ensure(),e()}catch(n){return Me(n),null}finally{H(r),U(s),ae(i)}}#b(e,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#b(e,r);return}this.#l+=e,this.#l===0&&(this.#h(r),this.#s&&Y(this.#s,()=>{this.#s=null}),this.#o&&(this.#t.before(this.#o),this.#o=null))}update_pending_count(e,r){this.#b(e,r),this.#c+=e,!(!this.#u||this.#d)&&(this.#d=!0,L(()=>{this.#d=!1,this.#u&&ke(this.#u,this.#c)}))}get_effect_pending(){return this.#y(),O(this.#u)}error(e){if(!this.#e.onerror&&!this.#e.failed)throw e;S?.is_fork?(this.#n&&S.skip_effect(this.#n),this.#s&&S.skip_effect(this.#s),this.#a&&S.skip_effect(this.#a),S.on_fork_commit(()=>{this.#m(e)})):this.#m(e)}#m(e){this.#n&&(D(this.#n),this.#n=null),this.#s&&(D(this.#s),this.#s=null),this.#a&&(D(this.#a),this.#a=null),p&&(I(this.#i),Le(),I(me()));var r=this.#e.onerror;let s=this.#e.failed;var i=!1,n=!1;const a=()=>{if(i){Fe();return}i=!0,n&&xe(),this.#a!==null&&Y(this.#a,()=>{this.#a=null}),this.#_(()=>{this.#g()})},o=f=>{try{n=!0,r?.(f,a),n=!1}catch(u){x(u,this.#r&&this.#r.parent)}s&&(this.#a=this.#_(()=>{try{return E(()=>{var u=w;u.b=this,u.f|=ne,s(this.#t,()=>f,()=>a)})}catch(u){return x(u,this.#r.parent),null}}))};L(()=>{var f;try{f=this.transform_error(e)}catch(u){x(u,this.#r&&this.#r.parent);return}f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(o,u=>x(u,this.#r&&this.#r.parent)):o(f)})}}function Bt(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const Tt=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Yt(t){return Tt.includes(t)}const St={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Ht(t){return t=t.toLowerCase(),St[t]??t}const At=["touchstart","touchmove"];function Ot(t){return At.includes(t)}const k=Symbol("events"),Te=new Set,G=new Set;function Ut(t){if(!p)return;t.removeAttribute("onload"),t.removeAttribute("onerror");const e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Rt(t,e,r,s={}){function i(n){if(s.capture||X.call(e,n),!n.cancelBubble)return Be(()=>r?.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?L(()=>{e.addEventListener(t,i,s)}):e.addEventListener(t,i,s),i}function Vt(t,e,r,s,i){var n={capture:s,passive:i},a=Rt(t,e,r,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&ce(()=>{e.removeEventListener(t,a,n)})}function jt(t,e,r){(e[k]??={})[t]=r}function qt(t){for(var e=0;e<t.length;e++)Te.add(t[e]);for(var r of G)r(t)}let ue=null;function X(t){var e=this,r=e.ownerDocument,s=t.type,i=t.composedPath?.()||[],n=i[0]||t.target;ue=t;var a=0,o=ue===t&&t[k];if(o){var f=i.indexOf(o);if(f!==-1&&(e===document||e===window)){t[k]=e;return}var u=i.indexOf(e);if(u===-1)return;f<=u&&(a=f)}if(n=i[a]||t.target,n!==e){he(t,"currentTarget",{configurable:!0,get(){return n||r}});var v=be,b=w;U(null),H(null);try{for(var m,c=[];n!==null;){var d=n.assignedSlot||n.parentNode||n.host||null;try{var l=n[k]?.[s];l!=null&&(!n.disabled||t.target===n)&&l.call(n,t)}catch(g){m?c.push(g):m=g}if(t.cancelBubble||d===e||d===null)break;n=d}if(m){for(let g of c)queueMicrotask(()=>{throw g});throw m}}finally{t[k]=e,delete t.currentTarget,U(v),H(b)}}}const Nt=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function Dt(t){return Nt?.createHTML(t)??t}function It(t){var e=Ye("template");return e.innerHTML=Dt(t.replaceAll("<!>","<!---->")),e.content}function A(t,e){var r=w;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function Wt(t,e){var r=(e&Ue)!==0,s=(e&Ve)!==0,i,n=!t.startsWith("<!>");return()=>{if(p)return A(_,null),_;i===void 0&&(i=It(n?t:"<!>"+t),r||(i=j(i)));var a=s||He?document.importNode(i,!0):i.cloneNode(!0);if(r){var o=j(a),f=a.lastChild;A(o,f)}else A(a,a);return a}}function $t(t=""){if(!p){var e=R(t+"");return A(e,e),e}var r=_;return r.nodeType!==qe?(r.before(r=R()),I(r)):We(r),A(r,r),r}function zt(){if(p)return A(_,null),_;var t=document.createDocumentFragment(),e=document.createComment(""),r=R();return t.append(e,r),A(e,r),t}function Gt(t,e){if(p){var r=w;((r.f&je)===0||r.nodes.end===null)&&(r.nodes.end=_),Q();return}t!==null&&t.before(e)}let le=!0;function Xt(t,e){var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t[fe]??=t.nodeValue)&&(t[fe]=r,t.nodeValue=`${r}`)}function Pt(t,e){return Se(t,e)}function Jt(t,e){q(),e.intro=e.intro??!1;const r=e.target,s=p,i=_;try{for(var n=j(r);n&&(n.nodeType!==we||n.data!==$e);)n=ze(n);if(!n)throw W;N(!0),I(n);const a=Se(t,{...e,anchor:n});return N(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==W&&console.warn("Failed to hydrate: ",a),e.recover===!1&&Ge(),q(),Xe(r),N(!1),Pt(t,e)}finally{N(s),I(i)}}const B=new Map;function Se(t,{target:e,anchor:r,props:s={},events:i,context:n,intro:a=!0,transformError:o}){q();var f=void 0,u=Je(()=>{var v=r??e.appendChild(R());wt(v,{pending:()=>{}},c=>{Qe({});var d=Z;if(n&&(d.c=n),i&&(s.$$events=i),p&&A(c,null),le=a,f=t(c,s)||{},le=!0,p&&(w.nodes.end=_,_===null||_.nodeType!==we||_.data!==Ze))throw et(),W;tt()},o);var b=new Set,m=c=>{for(var d=0;d<c.length;d++){var l=c[d];if(!b.has(l)){b.add(l);var g=Ot(l);for(const P of[e,document]){var y=B.get(P);y===void 0&&(y=new Map,B.set(P,y));var T=y.get(l);T===void 0?(P.addEventListener(l,X,{passive:g}),y.set(l,1)):y.set(l,T+1)}}}};return m(Ke(Te)),G.add(m),()=>{for(var c of b)for(const g of[e,document]){var d=B.get(g),l=d.get(c);--l==0?(g.removeEventListener(c,X),d.delete(c),d.size===0&&B.delete(g)):d.set(c,l)}G.delete(m),v!==r&&v.parentNode?.removeChild(v)}});return J.set(f,u),f}let J=new WeakMap;function Kt(t,e){const r=J.get(t);return r?(J.delete(t),r(e)):Promise.resolve()}class Mt{anchor;#t=new Map;#i=new Map;#e=new Map;#f=new Set;#r=!0;constructor(e,r=!0){this.anchor=e,this.#r=r}#n=e=>{if(this.#t.has(e)){var r=this.#t.get(e),s=this.#i.get(r);if(s)rt(s),this.#f.delete(r);else{var i=this.#e.get(r);i&&(this.#i.set(r,i.effect),this.#e.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),s=i.effect)}for(const[n,a]of this.#t){if(this.#t.delete(n),n===e)break;const o=this.#e.get(a);o&&(D(o.effect),this.#e.delete(a))}for(const[n,a]of this.#i){if(n===r||this.#f.has(n))continue;const o=()=>{if(Array.from(this.#t.values()).includes(n)){var u=document.createDocumentFragment();ge(a,u),u.append(R()),this.#e.set(n,{effect:a,fragment:u})}else D(a);this.#f.delete(n),this.#i.delete(n)};this.#r||!s?(this.#f.add(n),Y(a,o,!1)):o()}}};#s=e=>{this.#t.delete(e);const r=Array.from(this.#t.values());for(const[s,i]of this.#e)r.includes(s)||(D(i.effect),this.#e.delete(s))};ensure(e,r){var s=S,i=st();if(r&&!this.#i.has(e)&&!this.#e.has(e))if(i){var n=document.createDocumentFragment(),a=R();n.append(a),this.#e.set(e,{effect:E(()=>r(a)),fragment:n})}else this.#i.set(e,E(()=>r(this.anchor)));if(this.#t.set(s,e),i){for(const[o,f]of this.#i)o===e?s.unskip_effect(f):s.skip_effect(f);for(const[o,f]of this.#e)o===e?s.unskip_effect(f.effect):s.skip_effect(f.effect);s.oncommit(this.#n),s.ondiscard(this.#s)}else p&&(this.anchor=_),this.#n(s)}}function Qt(t,e,r=!1){var s;p&&(s=_,Q());var i=new Mt(t),n=r?ye:0;function a(o,f){if(p){var u=nt(s);if(o!==parseInt(u.substring(1))){var v=me();I(v),i.anchor=v,N(!1),i.ensure(o,f),N(!0);return}}i.ensure(o,f)}ve(()=>{var o=!1;e((f,u=0)=>{o=!0,a(u,f)}),o||a(-1,null)},n)}function V(t,e){return t===e||t?.[ee]===e}function Zt(t={},e,r,s){var i=Z.r,n=w;return it(()=>{var a,o;return _e(()=>{a=o,o=[],K(()=>{V(r(...o),t)||(e(t,...o),a&&V(r(...a),t)&&e(null,...a))})}),()=>{let f=n;for(;f!==i&&f.parent!==null&&f.parent.f&at;)f=f.parent;const u=()=>{o&&V(r(...o),t)&&e(null,...o)},v=f.teardown;f.teardown=()=>{u(),v?.()}}}),t}const kt={get(t,e){let r=t.props.length;for(;r--;){let s=t.props[r];if(M(s)&&(s=s()),typeof s=="object"&&s!==null&&e in s)return s[e]}},set(t,e,r){let s=t.props.length;for(;s--;){let i=t.props[s];M(i)&&(i=i());const n=$(i,e);if(n&&n.set)return n.set(r),!0}return!1},getOwnPropertyDescriptor(t,e){let r=t.props.length;for(;r--;){let s=t.props[r];if(M(s)&&(s=s()),typeof s=="object"&&s!==null&&e in s){const i=$(s,e);return i&&!i.configurable&&(i.configurable=!0),i}}},has(t,e){if(e===ee||e===Ee)return!1;for(let r of t.props)if(M(r)&&(r=r()),r!=null&&e in r)return!0;return!1},ownKeys(t){const e=[];for(let r of t.props)if(M(r)&&(r=r()),!!r){for(const s in r)e.includes(s)||e.push(s);for(const s of Object.getOwnPropertySymbols(r))e.includes(s)||e.push(s)}return e}};function er(...t){return new Proxy({props:t},kt)}function tr(t,e,r,s){var i=!ht||(r&_t)!==0,n=(r&dt)!==0,a=(r&gt)!==0,o=s,f=!0,u=void 0,v=()=>a&&i?(u??=oe(s),O(u)):(f&&(f=!1,o=a?K(s):s),o);let b;if(n){var m=ee in t||Ee in t;b=$(t,e)?.set??(m&&e in t?h=>t[e]=h:void 0)}var c,d=!1;n?[c,d]=bt(()=>t[e]):c=t[e],c===void 0&&s!==void 0&&(c=v(),b&&(i&&ft(),b(c)));var l;if(i?l=()=>{var h=t[e];return h===void 0?v():(f=!0,h)}:l=()=>{var h=t[e];return h!==void 0&&(o=void 0),h===void 0?o:h},i&&(r&ot)===0)return l;if(b){var g=t.$$legacy;return(function(h,C){return arguments.length>0?((!i||!C||g||d)&&b(C?l():h),h):l()})}var y=!1,T=((r&pt)!==0?oe:vt)(()=>(y=!1,l()));n&&O(T);var P=w;return(function(h,C){if(arguments.length>0){const te=C?O(T):i&&n?ut(h):h;return de(T,te),y=!0,o!==void 0&&(o=te),h}return lt&&y||(P.f&ct)!==0?T.v:O(T)})}const Lt="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Lt);export{Mt as B,Gt as a,jt as b,xt as c,qt as d,Ft as e,Wt as f,Zt as g,Vt as h,Qt as i,zt as j,Jt as k,A as l,Pt as m,le as n,Bt as o,tr as p,Rt as q,Ht as r,Xt as s,$t as t,Kt as u,Yt as v,er as w,Ut as x};