@chrisjowen/wheelhouse 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (997) hide show
  1. package/README.md +87 -56
  2. package/build/client/_app/immutable/assets/0.CKUND0qa.css +1 -0
  3. package/build/client/_app/immutable/assets/0.CKUND0qa.css.br +0 -0
  4. package/build/client/_app/immutable/assets/0.CKUND0qa.css.gz +0 -0
  5. package/build/client/_app/immutable/assets/DocSheet.CaO2v_qh.css +1 -0
  6. package/build/client/_app/immutable/assets/DocSheet.CaO2v_qh.css.br +0 -0
  7. package/build/client/_app/immutable/assets/DocSheet.CaO2v_qh.css.gz +0 -0
  8. package/build/client/_app/immutable/chunks/08Q01-Mc.js +1 -0
  9. package/build/client/_app/immutable/chunks/08Q01-Mc.js.br +0 -0
  10. package/build/client/_app/immutable/chunks/08Q01-Mc.js.gz +0 -0
  11. package/build/client/_app/immutable/chunks/0TvUxbRv.js +1 -0
  12. package/build/client/_app/immutable/chunks/0TvUxbRv.js.br +2 -0
  13. package/build/client/_app/immutable/chunks/0TvUxbRv.js.gz +0 -0
  14. package/build/client/_app/immutable/chunks/3Of2kn6M.js +5 -0
  15. package/build/client/_app/immutable/chunks/3Of2kn6M.js.br +0 -0
  16. package/build/client/_app/immutable/chunks/3Of2kn6M.js.gz +0 -0
  17. package/build/client/_app/immutable/chunks/5fVeMNeJ.js +1 -0
  18. package/build/client/_app/immutable/chunks/5fVeMNeJ.js.br +0 -0
  19. package/build/client/_app/immutable/chunks/5fVeMNeJ.js.gz +0 -0
  20. package/build/client/_app/immutable/chunks/A8GZ5Uuc.js +1 -0
  21. package/build/client/_app/immutable/chunks/A8GZ5Uuc.js.br +0 -0
  22. package/build/client/_app/immutable/chunks/A8GZ5Uuc.js.gz +0 -0
  23. package/build/client/_app/immutable/chunks/AHy1Hzhf.js +1 -0
  24. package/build/client/_app/immutable/chunks/AHy1Hzhf.js.br +0 -0
  25. package/build/client/_app/immutable/chunks/AHy1Hzhf.js.gz +0 -0
  26. package/build/client/_app/immutable/chunks/B3jXa2LJ.js +1 -0
  27. package/build/client/_app/immutable/chunks/B3jXa2LJ.js.br +0 -0
  28. package/build/client/_app/immutable/chunks/B3jXa2LJ.js.gz +0 -0
  29. package/build/client/_app/immutable/chunks/BEDHe9fo.js +1 -0
  30. package/build/client/_app/immutable/chunks/BEDHe9fo.js.br +0 -0
  31. package/build/client/_app/immutable/chunks/BEDHe9fo.js.gz +0 -0
  32. package/build/client/_app/immutable/chunks/BJ_s8GdZ.js +2 -0
  33. package/build/client/_app/immutable/chunks/BJ_s8GdZ.js.br +0 -0
  34. package/build/client/_app/immutable/chunks/BJ_s8GdZ.js.gz +0 -0
  35. package/build/client/_app/immutable/chunks/BKd0HUNP.js +1 -0
  36. package/build/client/_app/immutable/chunks/BKd0HUNP.js.br +1 -0
  37. package/build/client/_app/immutable/chunks/BKd0HUNP.js.gz +0 -0
  38. package/build/client/_app/immutable/chunks/BLL4xbEj.js +1 -0
  39. package/build/client/_app/immutable/chunks/BLL4xbEj.js.br +0 -0
  40. package/build/client/_app/immutable/chunks/BLL4xbEj.js.gz +0 -0
  41. package/build/client/_app/immutable/chunks/BUUcNufp.js +1 -0
  42. package/build/client/_app/immutable/chunks/BUUcNufp.js.br +0 -0
  43. package/build/client/_app/immutable/chunks/BUUcNufp.js.gz +0 -0
  44. package/build/client/_app/immutable/chunks/BVXUMEgB.js +1 -0
  45. package/build/client/_app/immutable/chunks/BVXUMEgB.js.br +0 -0
  46. package/build/client/_app/immutable/chunks/BVXUMEgB.js.gz +0 -0
  47. package/build/client/_app/immutable/chunks/BY5XjwMm.js +1 -0
  48. package/build/client/_app/immutable/chunks/BY5XjwMm.js.br +0 -0
  49. package/build/client/_app/immutable/chunks/BY5XjwMm.js.gz +0 -0
  50. package/build/client/_app/immutable/chunks/BdZ-2OIO.js +1 -0
  51. package/build/client/_app/immutable/chunks/BdZ-2OIO.js.br +0 -0
  52. package/build/client/_app/immutable/chunks/BdZ-2OIO.js.gz +0 -0
  53. package/build/client/_app/immutable/chunks/BdvB_H6l.js +1 -0
  54. package/build/client/_app/immutable/chunks/BdvB_H6l.js.br +0 -0
  55. package/build/client/_app/immutable/chunks/BdvB_H6l.js.gz +0 -0
  56. package/build/client/_app/immutable/chunks/BkLV0FAz.js +1 -0
  57. package/build/client/_app/immutable/chunks/BkLV0FAz.js.br +0 -0
  58. package/build/client/_app/immutable/chunks/BkLV0FAz.js.gz +0 -0
  59. package/build/client/_app/immutable/chunks/Bm8huziG.js +1 -0
  60. package/build/client/_app/immutable/chunks/Bm8huziG.js.br +0 -0
  61. package/build/client/_app/immutable/chunks/Bm8huziG.js.gz +0 -0
  62. package/build/client/_app/immutable/chunks/BnMEvq-8.js +1 -0
  63. package/build/client/_app/immutable/chunks/BnMEvq-8.js.br +0 -0
  64. package/build/client/_app/immutable/chunks/BnMEvq-8.js.gz +0 -0
  65. package/build/client/_app/immutable/chunks/BngQrigD.js +1 -0
  66. package/build/client/_app/immutable/chunks/BngQrigD.js.br +0 -0
  67. package/build/client/_app/immutable/chunks/BngQrigD.js.gz +0 -0
  68. package/build/client/_app/immutable/chunks/BqQtpLRF.js +5 -0
  69. package/build/client/_app/immutable/chunks/BqQtpLRF.js.br +0 -0
  70. package/build/client/_app/immutable/chunks/BqQtpLRF.js.gz +0 -0
  71. package/build/client/_app/immutable/chunks/Bx2K4OII.js +1 -0
  72. package/build/client/_app/immutable/chunks/Bx2K4OII.js.br +0 -0
  73. package/build/client/_app/immutable/chunks/Bx2K4OII.js.gz +0 -0
  74. package/build/client/_app/immutable/chunks/Bypc6r1_.js +1 -0
  75. package/build/client/_app/immutable/chunks/Bypc6r1_.js.br +0 -0
  76. package/build/client/_app/immutable/chunks/Bypc6r1_.js.gz +0 -0
  77. package/build/client/_app/immutable/chunks/C16DfZ5a.js +1 -0
  78. package/build/client/_app/immutable/chunks/C16DfZ5a.js.br +1 -0
  79. package/build/client/_app/immutable/chunks/C16DfZ5a.js.gz +0 -0
  80. package/build/client/_app/immutable/chunks/C3Yi7wCu.js +1 -0
  81. package/build/client/_app/immutable/chunks/C3Yi7wCu.js.br +0 -0
  82. package/build/client/_app/immutable/chunks/C3Yi7wCu.js.gz +0 -0
  83. package/build/client/_app/immutable/chunks/C3e5IrpE.js +1 -0
  84. package/build/client/_app/immutable/chunks/C3e5IrpE.js.br +0 -0
  85. package/build/client/_app/immutable/chunks/C3e5IrpE.js.gz +0 -0
  86. package/build/client/_app/immutable/chunks/C3o9xHsB.js +1 -0
  87. package/build/client/_app/immutable/chunks/C3o9xHsB.js.br +0 -0
  88. package/build/client/_app/immutable/chunks/C3o9xHsB.js.gz +0 -0
  89. package/build/client/_app/immutable/chunks/C6q0X9xa.js +1 -0
  90. package/build/client/_app/immutable/chunks/C6q0X9xa.js.br +0 -0
  91. package/build/client/_app/immutable/chunks/C6q0X9xa.js.gz +0 -0
  92. package/build/client/_app/immutable/chunks/C74jQQYs.js +1 -0
  93. package/build/client/_app/immutable/chunks/C74jQQYs.js.br +0 -0
  94. package/build/client/_app/immutable/chunks/C74jQQYs.js.gz +0 -0
  95. package/build/client/_app/immutable/chunks/CBHYGBBU.js +4 -0
  96. package/build/client/_app/immutable/chunks/CBHYGBBU.js.br +0 -0
  97. package/build/client/_app/immutable/chunks/CBHYGBBU.js.gz +0 -0
  98. package/build/client/_app/immutable/chunks/CD3hbDYc.js +1 -0
  99. package/build/client/_app/immutable/chunks/CD3hbDYc.js.br +0 -0
  100. package/build/client/_app/immutable/chunks/CD3hbDYc.js.gz +0 -0
  101. package/build/client/_app/immutable/chunks/CE3Ue5FU.js +1 -0
  102. package/build/client/_app/immutable/chunks/CE3Ue5FU.js.br +0 -0
  103. package/build/client/_app/immutable/chunks/CE3Ue5FU.js.gz +0 -0
  104. package/build/client/_app/immutable/chunks/CGGuNYjO.js +1 -0
  105. package/build/client/_app/immutable/chunks/CGGuNYjO.js.br +0 -0
  106. package/build/client/_app/immutable/chunks/CGGuNYjO.js.gz +0 -0
  107. package/build/client/_app/immutable/chunks/CH_9Gtej.js +1 -0
  108. package/build/client/_app/immutable/chunks/CH_9Gtej.js.br +0 -0
  109. package/build/client/_app/immutable/chunks/CH_9Gtej.js.gz +0 -0
  110. package/build/client/_app/immutable/chunks/CIj4gWfs.js +1 -0
  111. package/build/client/_app/immutable/chunks/CIj4gWfs.js.br +0 -0
  112. package/build/client/_app/immutable/chunks/CIj4gWfs.js.gz +0 -0
  113. package/build/client/_app/immutable/chunks/CJ3NIasv.js +1 -0
  114. package/build/client/_app/immutable/chunks/CJ3NIasv.js.br +0 -0
  115. package/build/client/_app/immutable/chunks/CJ3NIasv.js.gz +0 -0
  116. package/build/client/_app/immutable/chunks/CKEJURpk.js +1 -0
  117. package/build/client/_app/immutable/chunks/CKEJURpk.js.br +0 -0
  118. package/build/client/_app/immutable/chunks/CKEJURpk.js.gz +0 -0
  119. package/build/client/_app/immutable/chunks/CPmGhju_.js +1 -0
  120. package/build/client/_app/immutable/chunks/CPmGhju_.js.br +1 -0
  121. package/build/client/_app/immutable/chunks/CPmGhju_.js.gz +0 -0
  122. package/build/client/_app/immutable/chunks/CXcL7cOb.js +1 -0
  123. package/build/client/_app/immutable/chunks/CXcL7cOb.js.br +0 -0
  124. package/build/client/_app/immutable/chunks/CXcL7cOb.js.gz +0 -0
  125. package/build/client/_app/immutable/chunks/CXgAyvD-.js +1 -0
  126. package/build/client/_app/immutable/chunks/CXgAyvD-.js.br +0 -0
  127. package/build/client/_app/immutable/chunks/CXgAyvD-.js.gz +0 -0
  128. package/build/client/_app/immutable/chunks/CZBcpBnY.js +1 -0
  129. package/build/client/_app/immutable/chunks/CZBcpBnY.js.br +0 -0
  130. package/build/client/_app/immutable/chunks/CZBcpBnY.js.gz +0 -0
  131. package/build/client/_app/immutable/chunks/CZPeboo-.js +1 -0
  132. package/build/client/_app/immutable/chunks/CZPeboo-.js.br +0 -0
  133. package/build/client/_app/immutable/chunks/CZPeboo-.js.gz +0 -0
  134. package/build/client/_app/immutable/chunks/Cb-gOV5k.js +1 -0
  135. package/build/client/_app/immutable/chunks/Cb-gOV5k.js.br +0 -0
  136. package/build/client/_app/immutable/chunks/Cb-gOV5k.js.gz +0 -0
  137. package/build/client/_app/immutable/chunks/Cl72MTSX.js +1 -0
  138. package/build/client/_app/immutable/chunks/Cl72MTSX.js.br +0 -0
  139. package/build/client/_app/immutable/chunks/Cl72MTSX.js.gz +0 -0
  140. package/build/client/_app/immutable/chunks/Cl7r7DFs.js +1 -0
  141. package/build/client/_app/immutable/chunks/Cl7r7DFs.js.br +0 -0
  142. package/build/client/_app/immutable/chunks/Cl7r7DFs.js.gz +0 -0
  143. package/build/client/_app/immutable/chunks/Cm8CSK8p.js +1 -0
  144. package/build/client/_app/immutable/chunks/Cm8CSK8p.js.br +0 -0
  145. package/build/client/_app/immutable/chunks/Cm8CSK8p.js.gz +0 -0
  146. package/build/client/_app/immutable/chunks/Cng04DK0.js +1 -0
  147. package/build/client/_app/immutable/chunks/Cng04DK0.js.br +0 -0
  148. package/build/client/_app/immutable/chunks/Cng04DK0.js.gz +0 -0
  149. package/build/client/_app/immutable/chunks/CqOnPLsz.js +1 -0
  150. package/build/client/_app/immutable/chunks/CqOnPLsz.js.br +0 -0
  151. package/build/client/_app/immutable/chunks/CqOnPLsz.js.gz +0 -0
  152. package/build/client/_app/immutable/chunks/Cqy1lT7e.js +1 -0
  153. package/build/client/_app/immutable/chunks/Cqy1lT7e.js.br +0 -0
  154. package/build/client/_app/immutable/chunks/Cqy1lT7e.js.gz +0 -0
  155. package/build/client/_app/immutable/chunks/CrjvgIhR.js +1 -0
  156. package/build/client/_app/immutable/chunks/CrjvgIhR.js.br +0 -0
  157. package/build/client/_app/immutable/chunks/CrjvgIhR.js.gz +0 -0
  158. package/build/client/_app/immutable/chunks/CsRBDrRN.js +1 -0
  159. package/build/client/_app/immutable/chunks/CsRBDrRN.js.br +0 -0
  160. package/build/client/_app/immutable/chunks/CsRBDrRN.js.gz +0 -0
  161. package/build/client/_app/immutable/chunks/CwwFbl61.js +62 -0
  162. package/build/client/_app/immutable/chunks/CwwFbl61.js.br +0 -0
  163. package/build/client/_app/immutable/chunks/CwwFbl61.js.gz +0 -0
  164. package/build/client/_app/immutable/chunks/D0JSbOCt.js +1 -0
  165. package/build/client/_app/immutable/chunks/D0JSbOCt.js.br +0 -0
  166. package/build/client/_app/immutable/chunks/D0JSbOCt.js.gz +0 -0
  167. package/build/client/_app/immutable/chunks/D25j-NnT.js +1 -0
  168. package/build/client/_app/immutable/chunks/D25j-NnT.js.br +0 -0
  169. package/build/client/_app/immutable/chunks/D25j-NnT.js.gz +0 -0
  170. package/build/client/_app/immutable/chunks/D5hwKKRv.js +1 -0
  171. package/build/client/_app/immutable/chunks/D5hwKKRv.js.br +0 -0
  172. package/build/client/_app/immutable/chunks/D5hwKKRv.js.gz +0 -0
  173. package/build/client/_app/immutable/chunks/DBxUIz0k.js +1 -0
  174. package/build/client/_app/immutable/chunks/DBxUIz0k.js.br +0 -0
  175. package/build/client/_app/immutable/chunks/DBxUIz0k.js.gz +0 -0
  176. package/build/client/_app/immutable/chunks/DH7t4M9x.js +1 -0
  177. package/build/client/_app/immutable/chunks/DH7t4M9x.js.br +0 -0
  178. package/build/client/_app/immutable/chunks/DH7t4M9x.js.gz +0 -0
  179. package/build/client/_app/immutable/chunks/DIsXG5DF.js +1 -0
  180. package/build/client/_app/immutable/chunks/DIsXG5DF.js.br +0 -0
  181. package/build/client/_app/immutable/chunks/DIsXG5DF.js.gz +0 -0
  182. package/build/client/_app/immutable/chunks/DNgh8jh8.js +1 -0
  183. package/build/client/_app/immutable/chunks/DNgh8jh8.js.br +0 -0
  184. package/build/client/_app/immutable/chunks/DNgh8jh8.js.gz +0 -0
  185. package/build/client/_app/immutable/chunks/DOWSzKHL.js +1 -0
  186. package/build/client/_app/immutable/chunks/DOWSzKHL.js.br +0 -0
  187. package/build/client/_app/immutable/chunks/DOWSzKHL.js.gz +0 -0
  188. package/build/client/_app/immutable/chunks/DSbOoIPC.js +1 -0
  189. package/build/client/_app/immutable/chunks/DSbOoIPC.js.br +0 -0
  190. package/build/client/_app/immutable/chunks/DSbOoIPC.js.gz +0 -0
  191. package/build/client/_app/immutable/chunks/DUYBhCSA.js +1 -0
  192. package/build/client/_app/immutable/chunks/DUYBhCSA.js.br +0 -0
  193. package/build/client/_app/immutable/chunks/DUYBhCSA.js.gz +0 -0
  194. package/build/client/_app/immutable/chunks/DfDxKk91.js +2 -0
  195. package/build/client/_app/immutable/chunks/DfDxKk91.js.br +0 -0
  196. package/build/client/_app/immutable/chunks/DfDxKk91.js.gz +0 -0
  197. package/build/client/_app/immutable/chunks/DhfQd5fc.js +1 -0
  198. package/build/client/_app/immutable/chunks/DhfQd5fc.js.br +0 -0
  199. package/build/client/_app/immutable/chunks/DhfQd5fc.js.gz +0 -0
  200. package/build/client/_app/immutable/chunks/DmYFgZ4g.js +6 -0
  201. package/build/client/_app/immutable/chunks/DmYFgZ4g.js.br +0 -0
  202. package/build/client/_app/immutable/chunks/DmYFgZ4g.js.gz +0 -0
  203. package/build/client/_app/immutable/chunks/Dn-83VwV.js +1 -0
  204. package/build/client/_app/immutable/chunks/Dn-83VwV.js.br +1 -0
  205. package/build/client/_app/immutable/chunks/Dn-83VwV.js.gz +0 -0
  206. package/build/client/_app/immutable/chunks/Dnnuh6qK.js +1 -0
  207. package/build/client/_app/immutable/chunks/Dnnuh6qK.js.br +0 -0
  208. package/build/client/_app/immutable/chunks/Dnnuh6qK.js.gz +0 -0
  209. package/build/client/_app/immutable/chunks/DocaGLjv.js +1 -0
  210. package/build/client/_app/immutable/chunks/DocaGLjv.js.br +0 -0
  211. package/build/client/_app/immutable/chunks/DocaGLjv.js.gz +0 -0
  212. package/build/client/_app/immutable/chunks/Dqlbq2bD.js +2 -0
  213. package/build/client/_app/immutable/chunks/Dqlbq2bD.js.br +0 -0
  214. package/build/client/_app/immutable/chunks/Dqlbq2bD.js.gz +0 -0
  215. package/build/client/_app/immutable/chunks/DugIbHkD.js +1 -0
  216. package/build/client/_app/immutable/chunks/DugIbHkD.js.br +0 -0
  217. package/build/client/_app/immutable/chunks/DugIbHkD.js.gz +0 -0
  218. package/build/client/_app/immutable/chunks/Dy07EIjs.js +1 -0
  219. package/build/client/_app/immutable/chunks/Dy07EIjs.js.br +0 -0
  220. package/build/client/_app/immutable/chunks/Dy07EIjs.js.gz +0 -0
  221. package/build/client/_app/immutable/chunks/Dy_X9Fgu.js +1 -0
  222. package/build/client/_app/immutable/chunks/Dy_X9Fgu.js.br +0 -0
  223. package/build/client/_app/immutable/chunks/Dy_X9Fgu.js.gz +0 -0
  224. package/build/client/_app/immutable/chunks/I26VQaTs.js +2 -0
  225. package/build/client/_app/immutable/chunks/I26VQaTs.js.br +0 -0
  226. package/build/client/_app/immutable/chunks/I26VQaTs.js.gz +0 -0
  227. package/build/client/_app/immutable/chunks/IsTbwoyV.js +1 -0
  228. package/build/client/_app/immutable/chunks/IsTbwoyV.js.br +0 -0
  229. package/build/client/_app/immutable/chunks/IsTbwoyV.js.gz +0 -0
  230. package/build/client/_app/immutable/chunks/Km1CymxJ.js +1 -0
  231. package/build/client/_app/immutable/chunks/Km1CymxJ.js.br +0 -0
  232. package/build/client/_app/immutable/chunks/Km1CymxJ.js.gz +0 -0
  233. package/build/client/_app/immutable/chunks/Me06-nC7.js +1 -0
  234. package/build/client/_app/immutable/chunks/Me06-nC7.js.br +0 -0
  235. package/build/client/_app/immutable/chunks/Me06-nC7.js.gz +0 -0
  236. package/build/client/_app/immutable/chunks/PQApLOOr.js +1 -0
  237. package/build/client/_app/immutable/chunks/PQApLOOr.js.br +0 -0
  238. package/build/client/_app/immutable/chunks/PQApLOOr.js.gz +0 -0
  239. package/build/client/_app/immutable/chunks/WcvPAxq7.js +1 -0
  240. package/build/client/_app/immutable/chunks/WcvPAxq7.js.br +0 -0
  241. package/build/client/_app/immutable/chunks/WcvPAxq7.js.gz +0 -0
  242. package/build/client/_app/immutable/chunks/ZoG8qKMx.js +1 -0
  243. package/build/client/_app/immutable/chunks/ZoG8qKMx.js.br +0 -0
  244. package/build/client/_app/immutable/chunks/ZoG8qKMx.js.gz +0 -0
  245. package/build/client/_app/immutable/chunks/cZnJ0mAm.js +7 -0
  246. package/build/client/_app/immutable/chunks/cZnJ0mAm.js.br +0 -0
  247. package/build/client/_app/immutable/chunks/cZnJ0mAm.js.gz +0 -0
  248. package/build/client/_app/immutable/chunks/qb_JS6rP.js +1 -0
  249. package/build/client/_app/immutable/chunks/qb_JS6rP.js.br +0 -0
  250. package/build/client/_app/immutable/chunks/qb_JS6rP.js.gz +0 -0
  251. package/build/client/_app/immutable/chunks/riwaJFkb.js +3 -0
  252. package/build/client/_app/immutable/chunks/riwaJFkb.js.br +0 -0
  253. package/build/client/_app/immutable/chunks/riwaJFkb.js.gz +0 -0
  254. package/build/client/_app/immutable/chunks/wDLVOANX.js +2 -0
  255. package/build/client/_app/immutable/chunks/wDLVOANX.js.br +0 -0
  256. package/build/client/_app/immutable/chunks/wDLVOANX.js.gz +0 -0
  257. package/build/client/_app/immutable/entry/app.CNnpPQtw.js +2 -0
  258. package/build/client/_app/immutable/entry/app.CNnpPQtw.js.br +0 -0
  259. package/build/client/_app/immutable/entry/app.CNnpPQtw.js.gz +0 -0
  260. package/build/client/_app/immutable/entry/start.BGpEqKH0.js +1 -0
  261. package/build/client/_app/immutable/entry/start.BGpEqKH0.js.br +0 -0
  262. package/build/client/_app/immutable/entry/start.BGpEqKH0.js.gz +0 -0
  263. package/build/client/_app/immutable/nodes/0.CGlGdRWB.js +8 -0
  264. package/build/client/_app/immutable/nodes/0.CGlGdRWB.js.br +0 -0
  265. package/build/client/_app/immutable/nodes/0.CGlGdRWB.js.gz +0 -0
  266. package/build/client/_app/immutable/nodes/1.B4M0q1v4.js +1 -0
  267. package/build/client/_app/immutable/nodes/1.B4M0q1v4.js.br +0 -0
  268. package/build/client/_app/immutable/nodes/1.B4M0q1v4.js.gz +0 -0
  269. package/build/client/_app/immutable/nodes/10.LJhhE6c8.js +3 -0
  270. package/build/client/_app/immutable/nodes/10.LJhhE6c8.js.br +0 -0
  271. package/build/client/_app/immutable/nodes/10.LJhhE6c8.js.gz +0 -0
  272. package/build/client/_app/immutable/nodes/11.CM_xAozz.js +1 -0
  273. package/build/client/_app/immutable/nodes/11.CM_xAozz.js.br +0 -0
  274. package/build/client/_app/immutable/nodes/11.CM_xAozz.js.gz +0 -0
  275. package/build/client/_app/immutable/nodes/12.UENbuJYy.js +14 -0
  276. package/build/client/_app/immutable/nodes/12.UENbuJYy.js.br +0 -0
  277. package/build/client/_app/immutable/nodes/12.UENbuJYy.js.gz +0 -0
  278. package/build/client/_app/immutable/nodes/13.NbAfy9an.js +150 -0
  279. package/build/client/_app/immutable/nodes/13.NbAfy9an.js.br +0 -0
  280. package/build/client/_app/immutable/nodes/13.NbAfy9an.js.gz +0 -0
  281. package/build/client/_app/immutable/nodes/15.BgyPK-jf.js +11 -0
  282. package/build/client/_app/immutable/nodes/15.BgyPK-jf.js.br +0 -0
  283. package/build/client/_app/immutable/nodes/15.BgyPK-jf.js.gz +0 -0
  284. package/build/client/_app/immutable/nodes/16.DcgniGJK.js +9 -0
  285. package/build/client/_app/immutable/nodes/16.DcgniGJK.js.br +0 -0
  286. package/build/client/_app/immutable/nodes/16.DcgniGJK.js.gz +0 -0
  287. package/build/client/_app/immutable/nodes/17.CB9DXHxS.js +2 -0
  288. package/build/client/_app/immutable/nodes/17.CB9DXHxS.js.br +0 -0
  289. package/build/client/_app/immutable/nodes/17.CB9DXHxS.js.gz +0 -0
  290. package/build/client/_app/immutable/nodes/18.BHa-KoGE.js +6 -0
  291. package/build/client/_app/immutable/nodes/18.BHa-KoGE.js.br +0 -0
  292. package/build/client/_app/immutable/nodes/18.BHa-KoGE.js.gz +0 -0
  293. package/build/client/_app/immutable/nodes/19._VaGaWBD.js +1 -0
  294. package/build/client/_app/immutable/nodes/19._VaGaWBD.js.br +0 -0
  295. package/build/client/_app/immutable/nodes/19._VaGaWBD.js.gz +0 -0
  296. package/build/client/_app/immutable/nodes/2.DKxd0T79.js +14 -0
  297. package/build/client/_app/immutable/nodes/2.DKxd0T79.js.br +0 -0
  298. package/build/client/_app/immutable/nodes/2.DKxd0T79.js.gz +0 -0
  299. package/build/client/_app/immutable/nodes/20.C10FVhEw.js +10 -0
  300. package/build/client/_app/immutable/nodes/20.C10FVhEw.js.br +0 -0
  301. package/build/client/_app/immutable/nodes/20.C10FVhEw.js.gz +0 -0
  302. package/build/client/_app/immutable/nodes/21.BhyJIr3P.js +6 -0
  303. package/build/client/_app/immutable/nodes/21.BhyJIr3P.js.br +0 -0
  304. package/build/client/_app/immutable/nodes/21.BhyJIr3P.js.gz +0 -0
  305. package/build/client/_app/immutable/nodes/3.CcRoRYc-.js +5 -0
  306. package/build/client/_app/immutable/nodes/3.CcRoRYc-.js.br +0 -0
  307. package/build/client/_app/immutable/nodes/3.CcRoRYc-.js.gz +0 -0
  308. package/build/client/_app/immutable/nodes/4.BulJqGnt.js +1 -0
  309. package/build/client/_app/immutable/nodes/4.BulJqGnt.js.br +0 -0
  310. package/build/client/_app/immutable/nodes/4.BulJqGnt.js.gz +0 -0
  311. package/build/client/_app/immutable/nodes/5.BT3hraTU.js +1 -0
  312. package/build/client/_app/immutable/nodes/5.BT3hraTU.js.br +0 -0
  313. package/build/client/_app/immutable/nodes/5.BT3hraTU.js.gz +0 -0
  314. package/build/client/_app/immutable/nodes/6.DtNMha3Y.js +7 -0
  315. package/build/client/_app/immutable/nodes/6.DtNMha3Y.js.br +0 -0
  316. package/build/client/_app/immutable/nodes/6.DtNMha3Y.js.gz +0 -0
  317. package/build/client/_app/immutable/nodes/7.Bv6Vn8eC.js +4 -0
  318. package/build/client/_app/immutable/nodes/7.Bv6Vn8eC.js.br +0 -0
  319. package/build/client/_app/immutable/nodes/7.Bv6Vn8eC.js.gz +0 -0
  320. package/build/client/_app/immutable/nodes/9.DgQz7-Cb.js +1 -0
  321. package/build/client/_app/immutable/nodes/9.DgQz7-Cb.js.br +0 -0
  322. package/build/client/_app/immutable/nodes/9.DgQz7-Cb.js.gz +0 -0
  323. package/build/client/_app/version.json +1 -1
  324. package/build/client/_app/version.json.br +0 -0
  325. package/build/client/_app/version.json.gz +0 -0
  326. package/build/handler.js +7 -7
  327. package/build/index.js +7 -7
  328. package/build/server/chunks/chunks/AllowanceMeter.js-DBpmESX6.js +42 -0
  329. package/build/server/chunks/chunks/DecisionCard.js-B1YgF5EF.js +446 -0
  330. package/build/server/chunks/chunks/DictateTextarea.js-CbkGsd1h.js +415 -0
  331. package/build/server/chunks/chunks/DocSheet.js-BPPDMi3P.js +50 -0
  332. package/build/server/chunks/chunks/EtaLine.js-5SCP9O1f.js +79 -0
  333. package/build/server/chunks/chunks/EveryProjectSwitch.js-DzcwkHh4.js +200 -0
  334. package/build/server/chunks/chunks/Icon.js-CVZZ-yuB.js +129 -0
  335. package/build/server/chunks/chunks/InsightsNav.js-Cmn5y1to.js +18 -0
  336. package/build/server/chunks/chunks/InstallPlugin.js-B46b-IrK.js +45 -0
  337. package/build/server/chunks/chunks/LinkedText.js-COjHV297.js +43 -0
  338. package/build/server/chunks/chunks/ProjectBanner.js-ByPp7Y_e.js +111 -0
  339. package/build/server/chunks/chunks/ProjectStateMark.js-BkRD8cX4.js +61 -0
  340. package/build/server/chunks/chunks/QuestionList.js-CppuauNj.js +187 -0
  341. package/build/server/chunks/chunks/ResizableRail.js-BS8hRLV0.js +395 -0
  342. package/build/server/chunks/chunks/SettingsNav.js-BtJIv5cc.js +22 -0
  343. package/build/server/chunks/chunks/SlotContent.js-B4p1QLQN.js +748 -0
  344. package/build/server/chunks/chunks/StageTrack.js-DHvZX7Bl.js +111 -0
  345. package/build/server/chunks/chunks/TimeBar.js-CUFKEJW9.js +32 -0
  346. package/build/server/chunks/chunks/TimeLegend.js-B3Wl61jM.js +29 -0
  347. package/build/server/chunks/chunks/aliases.svelte.js-C_vCoKdk.js +138 -0
  348. package/build/server/chunks/chunks/arrow-down.js-Bt3fQooI.js +18 -0
  349. package/build/server/chunks/chunks/arrow-left.js-BKiSMzvI.js +18 -0
  350. package/build/server/chunks/chunks/arrow-right.js-CNYqcx0M.js +18 -0
  351. package/build/server/chunks/chunks/arrow-up.js-DHbXk79z.js +18 -0
  352. package/build/server/chunks/chunks/attachments.js-BAnnqpd-.js +48 -0
  353. package/build/server/chunks/chunks/bell.js-CXJp-3UZ.js +150 -0
  354. package/build/server/chunks/chunks/berths.js-CuAE9lHW.js +268 -0
  355. package/build/server/chunks/chunks/book-open.js-C2rohN3N.js +23 -0
  356. package/build/server/chunks/chunks/button.js-BF2PsvWw.js +7311 -0
  357. package/build/server/chunks/chunks/chat.svelte.js--pRzj_Xo.js +545 -0
  358. package/build/server/chunks/chunks/check.js-32sYHVxG.js +15 -0
  359. package/build/server/chunks/chunks/checks.js-DR3fVVpO.js +242 -0
  360. package/build/server/chunks/chunks/chevron-down.js-CH53s_me.js +15 -0
  361. package/build/server/chunks/chunks/chevron-left.js-D5RHY-kD.js +15 -0
  362. package/build/server/chunks/chunks/chevron-right.js-DCBAqAae.js +15 -0
  363. package/build/server/chunks/chunks/circle-alert.js-XTuAj7ZH.js +23 -0
  364. package/build/server/chunks/chunks/circle-dashed.js-fXv_bIo-.js +24 -0
  365. package/build/server/chunks/chunks/circle-dot.js-C950Kosw.js +18 -0
  366. package/build/server/chunks/chunks/client.js-B_5mNqUe.js +24 -0
  367. package/build/server/chunks/chunks/clock.js-CHhHTWK_.js +18 -0
  368. package/build/server/chunks/chunks/compass.js-k2sRSGWn.js +23 -0
  369. package/build/server/chunks/chunks/detail.js-DDoqeh1A.js +144 -0
  370. package/build/server/chunks/chunks/docpath.js-D27w_pf9.js +47 -0
  371. package/build/server/chunks/chunks/external-link.js-BQs1euhR.js +24 -0
  372. package/build/server/chunks/chunks/file-text.js-CnuVvHlB.js +26 -0
  373. package/build/server/chunks/chunks/gauge.js-Cbb1aqE7.js +35 -0
  374. package/build/server/chunks/chunks/git-pull-request.js-BMzktlcs.js +20 -0
  375. package/build/server/chunks/chunks/hand.js-BA9yKAan.js +25 -0
  376. package/build/server/chunks/chunks/harbour.js-PHLHOFea.js +117 -0
  377. package/build/server/chunks/chunks/html.js-FW6Ia4bL.js +8 -0
  378. package/build/server/chunks/chunks/http.js-CBM8xgUM.js +25 -0
  379. package/build/server/chunks/chunks/http2.js-fIdVBJaD.js +26 -0
  380. package/build/server/chunks/chunks/inbox.js-Dv8a1ecX.js +184 -0
  381. package/build/server/chunks/chunks/inbox.svelte.js-n7K3YnGB.js +171 -0
  382. package/build/server/chunks/chunks/index-server.js-DsObimPA.js +9 -0
  383. package/build/server/chunks/chunks/index-server2.js-Fb2GE8KQ.js +17 -0
  384. package/build/server/chunks/chunks/index.js-B0NFhRTN.js +1524 -0
  385. package/build/server/chunks/chunks/index2.js-Bxt1T6_K.js +46 -0
  386. package/build/server/chunks/chunks/internal.js-BlgsFxfY.js +146 -0
  387. package/build/server/chunks/chunks/live.svelte.js-By2dseJB.js +253 -0
  388. package/build/server/chunks/chunks/loader-circle.js-rQHvIWN7.js +16 -0
  389. package/build/server/chunks/chunks/markdown.js-CApgGpeX.js +2634 -0
  390. package/build/server/chunks/chunks/message-circle-question-mark.js-DbmaS9k_.js +25 -0
  391. package/build/server/chunks/chunks/message-square-text.js-CyRiNGB8.js +25 -0
  392. package/build/server/chunks/chunks/message-square.js-XK15WVZq.js +22 -0
  393. package/build/server/chunks/chunks/messages-square.js-BXH8BHfd.js +28 -0
  394. package/build/server/chunks/chunks/minus.js-DKvkj8VD.js +15 -0
  395. package/build/server/chunks/chunks/monitor-play.js-4ed3ghDf.js +28 -0
  396. package/build/server/chunks/chunks/nav.js-DwnXJgxd.js +29 -0
  397. package/build/server/chunks/chunks/plus.js-caVrjGZc.js +15 -0
  398. package/build/server/chunks/chunks/preview.js-hrimfbCG.js +69 -0
  399. package/build/server/chunks/chunks/prreview.js-Cg9LDxJp.js +92 -0
  400. package/build/server/chunks/chunks/repo.js-CuWUNKbP.js +33 -0
  401. package/build/server/chunks/chunks/requests.js-DiL4Poa9.js +42 -0
  402. package/build/server/chunks/chunks/restart.js-Dv1_ODgZ.js +12 -0
  403. package/build/server/chunks/chunks/root.js-60iebdW4.js +3105 -0
  404. package/build/server/chunks/chunks/rotate-cw.js-M4SHOpYI.js +21 -0
  405. package/build/server/chunks/chunks/runtime.js-BuGWYyZZ.js +16470 -0
  406. package/build/server/chunks/chunks/scale.js-S5g8YUqL.js +21 -0
  407. package/build/server/chunks/chunks/scroll-lock.js-Ci_ylINL.js +2811 -0
  408. package/build/server/chunks/chunks/service.js-DQK1kj-4.js +914 -0
  409. package/build/server/chunks/chunks/settings.js-C_6kvzhM.js +862 -0
  410. package/build/server/chunks/chunks/square-terminal.js-D9D9_9_V.js +30 -0
  411. package/build/server/chunks/chunks/store.js-XXOawxPN.js +317 -0
  412. package/build/server/chunks/chunks/tone.js-Dxsl-adt.js +31 -0
  413. package/build/server/chunks/chunks/triangle-alert.js-ClLszsZE.js +25 -0
  414. package/build/server/chunks/chunks/uploads.js-D45pIvPk.js +107 -0
  415. package/build/server/chunks/chunks/urls.js-BrlC6XZ8.js +8 -0
  416. package/build/server/chunks/chunks/utils.js-BJgm9WbO.js +2985 -0
  417. package/build/server/chunks/chunks/vault.js-CTaWe09z.js +162 -0
  418. package/build/server/chunks/chunks/view.js-CrOFjYk4.js +76 -0
  419. package/build/server/chunks/chunks/views.js-DyGxvskG.js +124 -0
  420. package/build/server/chunks/chunks/words.js-Cte4wOB4.js +48 -0
  421. package/build/server/chunks/chunks/x.js-YxaUOlq9.js +18 -0
  422. package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-DSkVUNdc.js +90 -0
  423. package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-CYnLRjOH.js +106 -0
  424. package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-CG8IGmSp.js +49 -0
  425. package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-fmzKkrXb.js +83 -0
  426. package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-BgIU3add.js +119 -0
  427. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-Ba9E_53E.js +45 -0
  428. package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-BQZBERsR.js +51 -0
  429. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-BnT3VHSx.js +44 -0
  430. package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-DRYHwJ7R.js +66 -0
  431. package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-BD2B1ByG.js +54 -0
  432. package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-DB-m2WWH.js +44 -0
  433. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-CK3swjFX.js +32 -0
  434. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-WCE63uer.js +40 -0
  435. package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-D5-3acjK.js +36 -0
  436. package/build/server/chunks/entries/endpoints/api/gateway/_server.ts.js-B2I7jHdc.js +100 -0
  437. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-BFSqEG5B.js +36 -0
  438. package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-BpUaHfsf.js +60 -0
  439. package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-BNRD4HyF.js +51 -0
  440. package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-7808SNDM.js +36 -0
  441. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-B-cQTShG.js +71 -0
  442. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-CPAHSih2.js +23 -0
  443. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-DW3M1pzH.js +59 -0
  444. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-DDTSw0pX.js +35 -0
  445. package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-BlD-1l6V.js +36 -0
  446. package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-IT-jeApI.js +35 -0
  447. package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-DQqKN2MF.js +38 -0
  448. package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-D7rx-bwI.js +23 -0
  449. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-BC0HjK9M.js +41 -0
  450. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-aVmcjStV.js +50 -0
  451. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-BuHN_WYU.js +62 -0
  452. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-Dx0x7sws.js +49 -0
  453. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-CcCDMmmF.js +72 -0
  454. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-BsOOyTNM.js +55 -0
  455. package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-DGyU8Zmu.js +55 -0
  456. package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-1B8fEiat.js +44 -0
  457. package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-D4CKazw-.js +41 -0
  458. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-CUKo26Ia.js +60 -0
  459. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-BOa2lgvP.js +48 -0
  460. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-BmI8Ofms.js +93 -0
  461. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-C2mJi22c.js +110 -0
  462. package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/_server.ts.js-8pN6fHl8.js +43 -0
  463. package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/ask/_server.ts.js-D6D9O8Su.js +49 -0
  464. package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/check/_server.ts.js-BAaCwzOf.js +48 -0
  465. package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/guide/_server.ts.js-DfP2iNta.js +48 -0
  466. package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/runs/_run_/stop/_server.ts.js-DZDaSSYT.js +41 -0
  467. package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-CJNUplXf.js +54 -0
  468. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-CVqjWsw8.js +23 -0
  469. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-CE2zzWtC.js +23 -0
  470. package/build/server/chunks/entries/endpoints/projects/_server.ts.js-uMp6dcat.js +7 -0
  471. package/build/server/chunks/entries/fallbacks/error.svelte.js-DnpcUjRk.js +15 -0
  472. package/build/server/chunks/entries/hooks.server.js-FjSdw_QS.js +54 -0
  473. package/build/server/chunks/entries/pages/_layout.server.ts.js-BkWAC802.js +22 -0
  474. package/build/server/chunks/entries/pages/_layout.svelte.js-DstinFjN.js +8746 -0
  475. package/build/server/chunks/entries/pages/_page.server.ts.js-BXkuWJh7.js +16 -0
  476. package/build/server/chunks/entries/pages/_page.svelte.js-ehBbQlco.js +2194 -0
  477. package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-B2YZfjBk.js +11 -0
  478. package/build/server/chunks/entries/pages/decisions/_page.svelte.js-C3NsHXP-.js +184 -0
  479. package/build/server/chunks/entries/pages/files/_page.server.ts.js-CT3pm5a6.js +17 -0
  480. package/build/server/chunks/entries/pages/files/_page.svelte.js-Bj-5ZaJn.js +61 -0
  481. package/build/server/chunks/entries/pages/harbour/_page.server.ts.js-CcLkegHq.js +46 -0
  482. package/build/server/chunks/entries/pages/harbour/_page.svelte.js-hBC6QUHZ.js +580 -0
  483. package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-BazCFIuz.js +11 -0
  484. package/build/server/chunks/entries/pages/headroom/_page.svelte.js-BLFQjLz8.js +149 -0
  485. package/build/server/chunks/entries/pages/inbox/_page.svelte.js-rjm303kf.js +185 -0
  486. package/build/server/chunks/entries/pages/plugins/_page.server.ts.js-D_nxVVQ0.js +11 -0
  487. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-BRQpg3kQ.js +16 -0
  488. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.svelte.js-DazeLLT8.js +52 -0
  489. package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-BIypd_XU.js +23 -0
  490. package/build/server/chunks/entries/pages/projects/_id_/_page.svelte.js-DJajtLup.js +945 -0
  491. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-BwAOIwUv.js +21 -0
  492. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.svelte.js-Cm8mxt61.js +74 -0
  493. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-CnfqlJgl.js +27 -0
  494. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.svelte.js-CuMA-rCM.js +433 -0
  495. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-CG14M19O.js +15 -0
  496. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.svelte.js-mtGQO-dJ.js +1880 -0
  497. package/build/server/chunks/entries/pages/settings/_page.server.ts.js-DnBg1UuM.js +11 -0
  498. package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-Zgfe-LX9.js +11 -0
  499. package/build/server/chunks/entries/pages/settings/gateway/_page.svelte.js-BmbSSxk6.js +208 -0
  500. package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-DZ4oJmnj.js +19 -0
  501. package/build/server/chunks/entries/pages/settings/plugins/_page.svelte.js-gBZCjZlg.js +1847 -0
  502. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-Dm-tgyir.js +17 -0
  503. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.svelte.js-BFGxdrrb.js +220 -0
  504. package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-Llp3a0Fb.js +25 -0
  505. package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-LgJMZ2RE.js +2107 -0
  506. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-DuWuEdZ2.js +24 -0
  507. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.svelte.js-BOMmvf6G.js +80 -0
  508. package/build/server/chunks/entries/pages/tasks/_id_/review/_page.server.ts.js-BMQF9I9c.js +15 -0
  509. package/build/server/chunks/entries/pages/tasks/_id_/review/_page.svelte.js-k659tqiw.js +657 -0
  510. package/build/server/chunks/entries/pages/time/_page.server.ts.js-DstGu3ji.js +11 -0
  511. package/build/server/chunks/entries/pages/time/_page.svelte.js-Ckn0YUW_.js +108 -0
  512. package/build/server/chunks/handler-BRidfBIY.js +1474 -0
  513. package/build/server/chunks/index.js-Dhoi5wa_.js +4296 -0
  514. package/build/server/chunks/manifest.js-CF4aVg77.js +537 -0
  515. package/build/server/chunks/nodes/0.js-B2yTHeOL.js +41 -0
  516. package/build/server/chunks/nodes/1.js-BoD2_1or.js +9 -0
  517. package/build/server/chunks/nodes/10.js-C2XmTW8j.js +43 -0
  518. package/build/server/chunks/nodes/11.js-CAJnQkWH.js +42 -0
  519. package/build/server/chunks/nodes/12.js-Cu57dOUj.js +43 -0
  520. package/build/server/chunks/nodes/13.js-1g1BRnk_.js +42 -0
  521. package/build/server/chunks/nodes/14.js-Cl3VZ6XR.js +12 -0
  522. package/build/server/chunks/nodes/15.js-BqL5jpLU.js +41 -0
  523. package/build/server/chunks/nodes/16.js-DibdTAKZ.js +41 -0
  524. package/build/server/chunks/nodes/17.js-BUFA5Avk.js +44 -0
  525. package/build/server/chunks/nodes/18.js-cxLrKmMx.js +42 -0
  526. package/build/server/chunks/nodes/19.js-DMbI3mDp.js +42 -0
  527. package/build/server/chunks/nodes/2.js-8QSIq2KZ.js +41 -0
  528. package/build/server/chunks/nodes/20.js-BNXpftag.js +42 -0
  529. package/build/server/chunks/nodes/21.js-DdJK6h7p.js +41 -0
  530. package/build/server/chunks/nodes/3.js-DHT7fiTy.js +41 -0
  531. package/build/server/chunks/nodes/4.js-DvjrLz8n.js +41 -0
  532. package/build/server/chunks/nodes/5.js-CvUGUQbi.js +45 -0
  533. package/build/server/chunks/nodes/6.js-ptKHsAn6.js +41 -0
  534. package/build/server/chunks/nodes/7.js-BigF9SYG.js +9 -0
  535. package/build/server/chunks/nodes/8.js-D32pPbKa.js +12 -0
  536. package/build/server/chunks/nodes/9.js-DkS4HHqV.js +41 -0
  537. package/dist/cli.js +2156 -62
  538. package/dist/wh-vault.js +1007 -0
  539. package/package.json +5 -3
  540. package/plugins/github-issues/.wheelhouse-plugin/plugin.json +44 -0
  541. package/plugins/github-issues/README.md +16 -0
  542. package/plugins/github-issues/wheelhouse/server/index.js +463 -0
  543. package/plugins/project-links/.wheelhouse-plugin/plugin.json +25 -0
  544. package/plugins/project-links/README.md +17 -0
  545. package/plugins/project-links/wheelhouse/server/index.js +278 -0
  546. package/plugins/project-links/wheelhouse/ui/index.js +87 -0
  547. package/plugins/vault/.wheelhouse-plugin/plugin.json +22 -0
  548. package/plugins/vault/README.md +18 -0
  549. package/plugins/vault/wheelhouse/server/index.js +297 -0
  550. package/build/client/_app/immutable/assets/0.DaQhCSel.css +0 -1
  551. package/build/client/_app/immutable/assets/0.DaQhCSel.css.br +0 -0
  552. package/build/client/_app/immutable/assets/0.DaQhCSel.css.gz +0 -0
  553. package/build/client/_app/immutable/assets/12.DT1C9nmd.css +0 -1
  554. package/build/client/_app/immutable/assets/12.DT1C9nmd.css.br +0 -0
  555. package/build/client/_app/immutable/assets/12.DT1C9nmd.css.gz +0 -0
  556. package/build/client/_app/immutable/assets/14.CjNfSPQ6.css +0 -1
  557. package/build/client/_app/immutable/assets/14.CjNfSPQ6.css.br +0 -0
  558. package/build/client/_app/immutable/assets/14.CjNfSPQ6.css.gz +0 -0
  559. package/build/client/_app/immutable/chunks/36FDwM1G.js +0 -1
  560. package/build/client/_app/immutable/chunks/36FDwM1G.js.br +0 -0
  561. package/build/client/_app/immutable/chunks/36FDwM1G.js.gz +0 -0
  562. package/build/client/_app/immutable/chunks/B1XxiJam.js +0 -1
  563. package/build/client/_app/immutable/chunks/B1XxiJam.js.br +0 -0
  564. package/build/client/_app/immutable/chunks/B1XxiJam.js.gz +0 -0
  565. package/build/client/_app/immutable/chunks/B2wEHue2.js +0 -1
  566. package/build/client/_app/immutable/chunks/B2wEHue2.js.br +0 -0
  567. package/build/client/_app/immutable/chunks/B2wEHue2.js.gz +0 -0
  568. package/build/client/_app/immutable/chunks/BAurN1n6.js +0 -2
  569. package/build/client/_app/immutable/chunks/BAurN1n6.js.br +0 -0
  570. package/build/client/_app/immutable/chunks/BAurN1n6.js.gz +0 -0
  571. package/build/client/_app/immutable/chunks/BEAYWcbT.js +0 -1
  572. package/build/client/_app/immutable/chunks/BEAYWcbT.js.br +0 -0
  573. package/build/client/_app/immutable/chunks/BEAYWcbT.js.gz +0 -0
  574. package/build/client/_app/immutable/chunks/BGINfGsV.js +0 -1
  575. package/build/client/_app/immutable/chunks/BGINfGsV.js.br +0 -4
  576. package/build/client/_app/immutable/chunks/BGINfGsV.js.gz +0 -0
  577. package/build/client/_app/immutable/chunks/BHsdHLbF.js +0 -1
  578. package/build/client/_app/immutable/chunks/BHsdHLbF.js.br +0 -0
  579. package/build/client/_app/immutable/chunks/BHsdHLbF.js.gz +0 -0
  580. package/build/client/_app/immutable/chunks/BR5v76-T.js +0 -1
  581. package/build/client/_app/immutable/chunks/BR5v76-T.js.br +0 -0
  582. package/build/client/_app/immutable/chunks/BR5v76-T.js.gz +0 -0
  583. package/build/client/_app/immutable/chunks/BUo4hMcM.js +0 -1
  584. package/build/client/_app/immutable/chunks/BUo4hMcM.js.br +0 -0
  585. package/build/client/_app/immutable/chunks/BUo4hMcM.js.gz +0 -0
  586. package/build/client/_app/immutable/chunks/BVVO3JPx.js +0 -1
  587. package/build/client/_app/immutable/chunks/BVVO3JPx.js.br +0 -0
  588. package/build/client/_app/immutable/chunks/BVVO3JPx.js.gz +0 -0
  589. package/build/client/_app/immutable/chunks/BZm5e4fE.js +0 -1
  590. package/build/client/_app/immutable/chunks/BZm5e4fE.js.br +0 -0
  591. package/build/client/_app/immutable/chunks/BZm5e4fE.js.gz +0 -0
  592. package/build/client/_app/immutable/chunks/Bfi4vm-w.js +0 -1
  593. package/build/client/_app/immutable/chunks/Bfi4vm-w.js.br +0 -0
  594. package/build/client/_app/immutable/chunks/Bfi4vm-w.js.gz +0 -0
  595. package/build/client/_app/immutable/chunks/BiTivU7x.js +0 -1
  596. package/build/client/_app/immutable/chunks/BiTivU7x.js.br +0 -0
  597. package/build/client/_app/immutable/chunks/BiTivU7x.js.gz +0 -0
  598. package/build/client/_app/immutable/chunks/BiuLIp4b.js +0 -1
  599. package/build/client/_app/immutable/chunks/BiuLIp4b.js.br +0 -0
  600. package/build/client/_app/immutable/chunks/BiuLIp4b.js.gz +0 -0
  601. package/build/client/_app/immutable/chunks/Bns_F-QV.js +0 -1
  602. package/build/client/_app/immutable/chunks/Bns_F-QV.js.br +0 -0
  603. package/build/client/_app/immutable/chunks/Bns_F-QV.js.gz +0 -0
  604. package/build/client/_app/immutable/chunks/Brlpgp90.js +0 -1
  605. package/build/client/_app/immutable/chunks/Brlpgp90.js.br +0 -0
  606. package/build/client/_app/immutable/chunks/Brlpgp90.js.gz +0 -0
  607. package/build/client/_app/immutable/chunks/BunkbzFG.js +0 -1
  608. package/build/client/_app/immutable/chunks/BunkbzFG.js.br +0 -0
  609. package/build/client/_app/immutable/chunks/BunkbzFG.js.gz +0 -0
  610. package/build/client/_app/immutable/chunks/BwOfqJw9.js +0 -1
  611. package/build/client/_app/immutable/chunks/BwOfqJw9.js.br +0 -0
  612. package/build/client/_app/immutable/chunks/BwOfqJw9.js.gz +0 -0
  613. package/build/client/_app/immutable/chunks/C-xrRA1Y.js +0 -1
  614. package/build/client/_app/immutable/chunks/C-xrRA1Y.js.br +0 -0
  615. package/build/client/_app/immutable/chunks/C-xrRA1Y.js.gz +0 -0
  616. package/build/client/_app/immutable/chunks/C2_XZrIO.js +0 -7
  617. package/build/client/_app/immutable/chunks/C2_XZrIO.js.br +0 -0
  618. package/build/client/_app/immutable/chunks/C2_XZrIO.js.gz +0 -0
  619. package/build/client/_app/immutable/chunks/C2d4bDYU.js +0 -1
  620. package/build/client/_app/immutable/chunks/C2d4bDYU.js.br +0 -0
  621. package/build/client/_app/immutable/chunks/C2d4bDYU.js.gz +0 -0
  622. package/build/client/_app/immutable/chunks/C6BQPSOs.js +0 -62
  623. package/build/client/_app/immutable/chunks/C6BQPSOs.js.br +0 -0
  624. package/build/client/_app/immutable/chunks/C6BQPSOs.js.gz +0 -0
  625. package/build/client/_app/immutable/chunks/CDphfOBv.js +0 -1
  626. package/build/client/_app/immutable/chunks/CDphfOBv.js.br +0 -0
  627. package/build/client/_app/immutable/chunks/CDphfOBv.js.gz +0 -0
  628. package/build/client/_app/immutable/chunks/CHoQMvOZ.js +0 -1
  629. package/build/client/_app/immutable/chunks/CHoQMvOZ.js.br +0 -0
  630. package/build/client/_app/immutable/chunks/CHoQMvOZ.js.gz +0 -0
  631. package/build/client/_app/immutable/chunks/CIE0U5Ih.js +0 -1
  632. package/build/client/_app/immutable/chunks/CIE0U5Ih.js.br +0 -0
  633. package/build/client/_app/immutable/chunks/CIE0U5Ih.js.gz +0 -0
  634. package/build/client/_app/immutable/chunks/CLs9Rkbg.js +0 -1
  635. package/build/client/_app/immutable/chunks/CLs9Rkbg.js.br +0 -0
  636. package/build/client/_app/immutable/chunks/CLs9Rkbg.js.gz +0 -0
  637. package/build/client/_app/immutable/chunks/COQ3aAYj.js +0 -1
  638. package/build/client/_app/immutable/chunks/COQ3aAYj.js.br +0 -0
  639. package/build/client/_app/immutable/chunks/COQ3aAYj.js.gz +0 -0
  640. package/build/client/_app/immutable/chunks/COiIt96y.js +0 -1
  641. package/build/client/_app/immutable/chunks/COiIt96y.js.br +0 -0
  642. package/build/client/_app/immutable/chunks/COiIt96y.js.gz +0 -0
  643. package/build/client/_app/immutable/chunks/CQ7gIAH8.js +0 -1
  644. package/build/client/_app/immutable/chunks/CQ7gIAH8.js.br +0 -2
  645. package/build/client/_app/immutable/chunks/CQ7gIAH8.js.gz +0 -0
  646. package/build/client/_app/immutable/chunks/CQlHU-Rx.js +0 -1
  647. package/build/client/_app/immutable/chunks/CQlHU-Rx.js.br +0 -0
  648. package/build/client/_app/immutable/chunks/CQlHU-Rx.js.gz +0 -0
  649. package/build/client/_app/immutable/chunks/CXfdgbLv.js +0 -1
  650. package/build/client/_app/immutable/chunks/CXfdgbLv.js.br +0 -0
  651. package/build/client/_app/immutable/chunks/CXfdgbLv.js.gz +0 -0
  652. package/build/client/_app/immutable/chunks/CeYIQAXD.js +0 -1
  653. package/build/client/_app/immutable/chunks/CeYIQAXD.js.br +0 -0
  654. package/build/client/_app/immutable/chunks/CeYIQAXD.js.gz +0 -0
  655. package/build/client/_app/immutable/chunks/CewXGI4o.js +0 -14
  656. package/build/client/_app/immutable/chunks/CewXGI4o.js.br +0 -0
  657. package/build/client/_app/immutable/chunks/CewXGI4o.js.gz +0 -0
  658. package/build/client/_app/immutable/chunks/CfdzAfq2.js +0 -1
  659. package/build/client/_app/immutable/chunks/CfdzAfq2.js.br +0 -0
  660. package/build/client/_app/immutable/chunks/CfdzAfq2.js.gz +0 -0
  661. package/build/client/_app/immutable/chunks/CkFDaaNz.js +0 -1
  662. package/build/client/_app/immutable/chunks/CkFDaaNz.js.br +0 -0
  663. package/build/client/_app/immutable/chunks/CkFDaaNz.js.gz +0 -0
  664. package/build/client/_app/immutable/chunks/CkLriSVx.js +0 -1
  665. package/build/client/_app/immutable/chunks/CkLriSVx.js.br +0 -0
  666. package/build/client/_app/immutable/chunks/CkLriSVx.js.gz +0 -0
  667. package/build/client/_app/immutable/chunks/Clzs_eXS.js +0 -5
  668. package/build/client/_app/immutable/chunks/Clzs_eXS.js.br +0 -0
  669. package/build/client/_app/immutable/chunks/Clzs_eXS.js.gz +0 -0
  670. package/build/client/_app/immutable/chunks/CrCQ2NNA.js +0 -1
  671. package/build/client/_app/immutable/chunks/CrCQ2NNA.js.br +0 -0
  672. package/build/client/_app/immutable/chunks/CrCQ2NNA.js.gz +0 -0
  673. package/build/client/_app/immutable/chunks/CrgqcyB_.js +0 -1
  674. package/build/client/_app/immutable/chunks/CrgqcyB_.js.br +0 -0
  675. package/build/client/_app/immutable/chunks/CrgqcyB_.js.gz +0 -0
  676. package/build/client/_app/immutable/chunks/CtlVBKf-.js +0 -1
  677. package/build/client/_app/immutable/chunks/CtlVBKf-.js.br +0 -0
  678. package/build/client/_app/immutable/chunks/CtlVBKf-.js.gz +0 -0
  679. package/build/client/_app/immutable/chunks/D4aeBIhU.js +0 -1
  680. package/build/client/_app/immutable/chunks/D4aeBIhU.js.br +0 -0
  681. package/build/client/_app/immutable/chunks/D4aeBIhU.js.gz +0 -0
  682. package/build/client/_app/immutable/chunks/D8Hx-_mj.js +0 -1
  683. package/build/client/_app/immutable/chunks/D8Hx-_mj.js.br +0 -3
  684. package/build/client/_app/immutable/chunks/D8Hx-_mj.js.gz +0 -0
  685. package/build/client/_app/immutable/chunks/DC8T2WRZ.js +0 -1
  686. package/build/client/_app/immutable/chunks/DC8T2WRZ.js.br +0 -0
  687. package/build/client/_app/immutable/chunks/DC8T2WRZ.js.gz +0 -0
  688. package/build/client/_app/immutable/chunks/DGy76IbW.js +0 -2
  689. package/build/client/_app/immutable/chunks/DGy76IbW.js.br +0 -0
  690. package/build/client/_app/immutable/chunks/DGy76IbW.js.gz +0 -0
  691. package/build/client/_app/immutable/chunks/DIABVMrA.js +0 -1
  692. package/build/client/_app/immutable/chunks/DIABVMrA.js.br +0 -0
  693. package/build/client/_app/immutable/chunks/DIABVMrA.js.gz +0 -0
  694. package/build/client/_app/immutable/chunks/DLith9Yi.js +0 -1
  695. package/build/client/_app/immutable/chunks/DLith9Yi.js.br +0 -0
  696. package/build/client/_app/immutable/chunks/DLith9Yi.js.gz +0 -0
  697. package/build/client/_app/immutable/chunks/DPTtvukI.js +0 -1
  698. package/build/client/_app/immutable/chunks/DPTtvukI.js.br +0 -0
  699. package/build/client/_app/immutable/chunks/DPTtvukI.js.gz +0 -0
  700. package/build/client/_app/immutable/chunks/Da92_52d.js +0 -1
  701. package/build/client/_app/immutable/chunks/Da92_52d.js.br +0 -0
  702. package/build/client/_app/immutable/chunks/Da92_52d.js.gz +0 -0
  703. package/build/client/_app/immutable/chunks/Db0WMrvR.js +0 -1
  704. package/build/client/_app/immutable/chunks/Db0WMrvR.js.br +0 -0
  705. package/build/client/_app/immutable/chunks/Db0WMrvR.js.gz +0 -0
  706. package/build/client/_app/immutable/chunks/Dlb_KqyS.js +0 -2
  707. package/build/client/_app/immutable/chunks/Dlb_KqyS.js.br +0 -0
  708. package/build/client/_app/immutable/chunks/Dlb_KqyS.js.gz +0 -0
  709. package/build/client/_app/immutable/chunks/DmcreR7o.js +0 -1
  710. package/build/client/_app/immutable/chunks/DmcreR7o.js.br +0 -0
  711. package/build/client/_app/immutable/chunks/DmcreR7o.js.gz +0 -0
  712. package/build/client/_app/immutable/chunks/Dq9kJk5R.js +0 -1
  713. package/build/client/_app/immutable/chunks/Dq9kJk5R.js.br +0 -0
  714. package/build/client/_app/immutable/chunks/Dq9kJk5R.js.gz +0 -0
  715. package/build/client/_app/immutable/chunks/DxGQT-Hz.js +0 -1
  716. package/build/client/_app/immutable/chunks/DxGQT-Hz.js.br +0 -0
  717. package/build/client/_app/immutable/chunks/DxGQT-Hz.js.gz +0 -0
  718. package/build/client/_app/immutable/chunks/ET-O1REu.js +0 -1
  719. package/build/client/_app/immutable/chunks/ET-O1REu.js.br +0 -0
  720. package/build/client/_app/immutable/chunks/ET-O1REu.js.gz +0 -0
  721. package/build/client/_app/immutable/chunks/Ewrw42Vq.js +0 -1
  722. package/build/client/_app/immutable/chunks/Ewrw42Vq.js.br +0 -0
  723. package/build/client/_app/immutable/chunks/Ewrw42Vq.js.gz +0 -0
  724. package/build/client/_app/immutable/chunks/FQ69txbU.js +0 -1
  725. package/build/client/_app/immutable/chunks/FQ69txbU.js.br +0 -0
  726. package/build/client/_app/immutable/chunks/FQ69txbU.js.gz +0 -0
  727. package/build/client/_app/immutable/chunks/L-6wuY5f.js +0 -2
  728. package/build/client/_app/immutable/chunks/L-6wuY5f.js.br +0 -0
  729. package/build/client/_app/immutable/chunks/L-6wuY5f.js.gz +0 -0
  730. package/build/client/_app/immutable/chunks/M201SoVK.js +0 -1
  731. package/build/client/_app/immutable/chunks/M201SoVK.js.br +0 -1
  732. package/build/client/_app/immutable/chunks/M201SoVK.js.gz +0 -0
  733. package/build/client/_app/immutable/chunks/OeqXO44y.js +0 -1
  734. package/build/client/_app/immutable/chunks/OeqXO44y.js.br +0 -0
  735. package/build/client/_app/immutable/chunks/OeqXO44y.js.gz +0 -0
  736. package/build/client/_app/immutable/chunks/PPVm8Dsz.js +0 -1
  737. package/build/client/_app/immutable/chunks/PPVm8Dsz.js.br +0 -0
  738. package/build/client/_app/immutable/chunks/PPVm8Dsz.js.gz +0 -0
  739. package/build/client/_app/immutable/chunks/QAFSHLn2.js +0 -1
  740. package/build/client/_app/immutable/chunks/QAFSHLn2.js.br +0 -0
  741. package/build/client/_app/immutable/chunks/QAFSHLn2.js.gz +0 -0
  742. package/build/client/_app/immutable/chunks/Tm9AblHs.js +0 -1
  743. package/build/client/_app/immutable/chunks/Tm9AblHs.js.br +0 -0
  744. package/build/client/_app/immutable/chunks/Tm9AblHs.js.gz +0 -0
  745. package/build/client/_app/immutable/chunks/bvY4yrzM.js +0 -4
  746. package/build/client/_app/immutable/chunks/bvY4yrzM.js.br +0 -0
  747. package/build/client/_app/immutable/chunks/bvY4yrzM.js.gz +0 -0
  748. package/build/client/_app/immutable/chunks/eMSiEzFi.js +0 -1
  749. package/build/client/_app/immutable/chunks/eMSiEzFi.js.br +0 -0
  750. package/build/client/_app/immutable/chunks/eMSiEzFi.js.gz +0 -0
  751. package/build/client/_app/immutable/chunks/iVpzjqp1.js +0 -1
  752. package/build/client/_app/immutable/chunks/iVpzjqp1.js.br +0 -0
  753. package/build/client/_app/immutable/chunks/iVpzjqp1.js.gz +0 -0
  754. package/build/client/_app/immutable/chunks/m3YfhLk1.js +0 -1
  755. package/build/client/_app/immutable/chunks/m3YfhLk1.js.br +0 -0
  756. package/build/client/_app/immutable/chunks/m3YfhLk1.js.gz +0 -0
  757. package/build/client/_app/immutable/chunks/p7x6PRF0.js +0 -1
  758. package/build/client/_app/immutable/chunks/p7x6PRF0.js.br +0 -0
  759. package/build/client/_app/immutable/chunks/p7x6PRF0.js.gz +0 -0
  760. package/build/client/_app/immutable/chunks/t4rxsdjl.js +0 -74
  761. package/build/client/_app/immutable/chunks/t4rxsdjl.js.br +0 -0
  762. package/build/client/_app/immutable/chunks/t4rxsdjl.js.gz +0 -0
  763. package/build/client/_app/immutable/chunks/uD7-7yV9.js +0 -1
  764. package/build/client/_app/immutable/chunks/uD7-7yV9.js.br +0 -4
  765. package/build/client/_app/immutable/chunks/uD7-7yV9.js.gz +0 -0
  766. package/build/client/_app/immutable/entry/app.D22_AlD8.js +0 -2
  767. package/build/client/_app/immutable/entry/app.D22_AlD8.js.br +0 -0
  768. package/build/client/_app/immutable/entry/app.D22_AlD8.js.gz +0 -0
  769. package/build/client/_app/immutable/entry/start.xwa7znED.js +0 -1
  770. package/build/client/_app/immutable/entry/start.xwa7znED.js.br +0 -0
  771. package/build/client/_app/immutable/entry/start.xwa7znED.js.gz +0 -0
  772. package/build/client/_app/immutable/nodes/0.DsfUbybd.js +0 -5
  773. package/build/client/_app/immutable/nodes/0.DsfUbybd.js.br +0 -0
  774. package/build/client/_app/immutable/nodes/0.DsfUbybd.js.gz +0 -0
  775. package/build/client/_app/immutable/nodes/1.9tnApS8T.js +0 -1
  776. package/build/client/_app/immutable/nodes/1.9tnApS8T.js.br +0 -0
  777. package/build/client/_app/immutable/nodes/1.9tnApS8T.js.gz +0 -0
  778. package/build/client/_app/immutable/nodes/10.CbyVViLq.js +0 -14
  779. package/build/client/_app/immutable/nodes/10.CbyVViLq.js.br +0 -0
  780. package/build/client/_app/immutable/nodes/10.CbyVViLq.js.gz +0 -0
  781. package/build/client/_app/immutable/nodes/11.xg5UTCOx.js +0 -77
  782. package/build/client/_app/immutable/nodes/11.xg5UTCOx.js.br +0 -0
  783. package/build/client/_app/immutable/nodes/11.xg5UTCOx.js.gz +0 -0
  784. package/build/client/_app/immutable/nodes/12.C6hLGaov.js +0 -32
  785. package/build/client/_app/immutable/nodes/12.C6hLGaov.js.br +0 -0
  786. package/build/client/_app/immutable/nodes/12.C6hLGaov.js.gz +0 -0
  787. package/build/client/_app/immutable/nodes/13.DHbTeLkm.js +0 -5
  788. package/build/client/_app/immutable/nodes/13.DHbTeLkm.js.br +0 -0
  789. package/build/client/_app/immutable/nodes/13.DHbTeLkm.js.gz +0 -0
  790. package/build/client/_app/immutable/nodes/14.BMIOGjF-.js +0 -1
  791. package/build/client/_app/immutable/nodes/14.BMIOGjF-.js.br +0 -0
  792. package/build/client/_app/immutable/nodes/14.BMIOGjF-.js.gz +0 -0
  793. package/build/client/_app/immutable/nodes/15.DYSMqa5A.js +0 -10
  794. package/build/client/_app/immutable/nodes/15.DYSMqa5A.js.br +0 -0
  795. package/build/client/_app/immutable/nodes/15.DYSMqa5A.js.gz +0 -0
  796. package/build/client/_app/immutable/nodes/16.B0mX0t_j.js +0 -6
  797. package/build/client/_app/immutable/nodes/16.B0mX0t_j.js.br +0 -0
  798. package/build/client/_app/immutable/nodes/16.B0mX0t_j.js.gz +0 -0
  799. package/build/client/_app/immutable/nodes/2.CSYV0jmk.js +0 -4
  800. package/build/client/_app/immutable/nodes/2.CSYV0jmk.js.br +0 -0
  801. package/build/client/_app/immutable/nodes/2.CSYV0jmk.js.gz +0 -0
  802. package/build/client/_app/immutable/nodes/3.X5qqsIUa.js +0 -5
  803. package/build/client/_app/immutable/nodes/3.X5qqsIUa.js.br +0 -0
  804. package/build/client/_app/immutable/nodes/3.X5qqsIUa.js.gz +0 -0
  805. package/build/client/_app/immutable/nodes/4.Di4k8SR2.js +0 -3
  806. package/build/client/_app/immutable/nodes/4.Di4k8SR2.js.br +0 -0
  807. package/build/client/_app/immutable/nodes/4.Di4k8SR2.js.gz +0 -0
  808. package/build/client/_app/immutable/nodes/5.DMFYTxVa.js +0 -7
  809. package/build/client/_app/immutable/nodes/5.DMFYTxVa.js.br +0 -0
  810. package/build/client/_app/immutable/nodes/5.DMFYTxVa.js.gz +0 -0
  811. package/build/client/_app/immutable/nodes/6.6yDAURLV.js +0 -4
  812. package/build/client/_app/immutable/nodes/6.6yDAURLV.js.br +0 -0
  813. package/build/client/_app/immutable/nodes/6.6yDAURLV.js.gz +0 -0
  814. package/build/client/_app/immutable/nodes/7.xxvMU05c.js +0 -1
  815. package/build/client/_app/immutable/nodes/7.xxvMU05c.js.br +0 -0
  816. package/build/client/_app/immutable/nodes/7.xxvMU05c.js.gz +0 -0
  817. package/build/client/_app/immutable/nodes/8.GSaWotW8.js +0 -1
  818. package/build/client/_app/immutable/nodes/8.GSaWotW8.js.br +0 -0
  819. package/build/client/_app/immutable/nodes/8.GSaWotW8.js.gz +0 -0
  820. package/build/client/_app/immutable/nodes/9.CEiUwDDg.js +0 -1
  821. package/build/client/_app/immutable/nodes/9.CEiUwDDg.js.br +0 -0
  822. package/build/client/_app/immutable/nodes/9.CEiUwDDg.js.gz +0 -0
  823. package/build/server/chunks/chunks/AllowanceMeter.js-C9jRsAGU.js +0 -42
  824. package/build/server/chunks/chunks/DecisionCard.js-u1VQ9s_v.js +0 -350
  825. package/build/server/chunks/chunks/DictateTextarea.js-BlEnOzcN.js +0 -85
  826. package/build/server/chunks/chunks/EtaLine.js-Pa4_VV6V.js +0 -79
  827. package/build/server/chunks/chunks/Icon.js-D7CY3joB.js +0 -129
  828. package/build/server/chunks/chunks/InsightsNav.js-BlxFBJfj.js +0 -22
  829. package/build/server/chunks/chunks/MicButton.js-BZSQAyuM.js +0 -336
  830. package/build/server/chunks/chunks/QuestionList.js-DglKezUe.js +0 -259
  831. package/build/server/chunks/chunks/SlotContent.js-YqZXXtRz.js +0 -1977
  832. package/build/server/chunks/chunks/StageTrack.js-BaorW-yk.js +0 -59
  833. package/build/server/chunks/chunks/TimeBar.js-k38rc7ZI.js +0 -32
  834. package/build/server/chunks/chunks/TimeLegend.js-BQVvgsvs.js +0 -29
  835. package/build/server/chunks/chunks/access.js-CS2pJasF.js +0 -816
  836. package/build/server/chunks/chunks/anchor.js-ByXDBfbi.js +0 -20
  837. package/build/server/chunks/chunks/arrow-down.js-DXDJc9EE.js +0 -18
  838. package/build/server/chunks/chunks/arrow-left.js-6Yey35CE.js +0 -18
  839. package/build/server/chunks/chunks/arrow-right.js-CfbPWRqu.js +0 -18
  840. package/build/server/chunks/chunks/arrow-up.js-AhghNbhW.js +0 -18
  841. package/build/server/chunks/chunks/bell.js-CAlv92RY.js +0 -143
  842. package/build/server/chunks/chunks/blocks.js-BL9jLCe-.js +0 -710
  843. package/build/server/chunks/chunks/bus.svelte.js-DRTptEhF.js +0 -9
  844. package/build/server/chunks/chunks/button.js-HeBqLheH.js +0 -7311
  845. package/build/server/chunks/chunks/chat.svelte.js-Cgdbtjbw.js +0 -537
  846. package/build/server/chunks/chunks/check.js-bmUhmMEz.js +0 -15
  847. package/build/server/chunks/chunks/checks.js-BnIxIaus.js +0 -175
  848. package/build/server/chunks/chunks/chevron-down.js-D75hVSIe.js +0 -15
  849. package/build/server/chunks/chunks/chevron-right.js-yhLg_GaH.js +0 -15
  850. package/build/server/chunks/chunks/circle-dashed.js-Bm3gZCXK.js +0 -24
  851. package/build/server/chunks/chunks/client.js-BUNengrw.js +0 -24
  852. package/build/server/chunks/chunks/clock.js-D7JTvRbC.js +0 -18
  853. package/build/server/chunks/chunks/compass.js-Tq6uiG8I.js +0 -23
  854. package/build/server/chunks/chunks/detail.js-CSjOmiVi.js +0 -133
  855. package/build/server/chunks/chunks/external-link.js-WxVF0xXO.js +0 -24
  856. package/build/server/chunks/chunks/file-text.js-CAo3vdqd.js +0 -26
  857. package/build/server/chunks/chunks/gauge.js-Dw9bgE72.js +0 -35
  858. package/build/server/chunks/chunks/git-pull-request.js-Cx1w8BQr.js +0 -20
  859. package/build/server/chunks/chunks/hammer.js-fp_Kidfj.js +0 -24
  860. package/build/server/chunks/chunks/hand.js-xkYPYJZj.js +0 -37
  861. package/build/server/chunks/chunks/harbour.js-xu7EfIHk.js +0 -113
  862. package/build/server/chunks/chunks/http.js-TzZuOtxn.js +0 -25
  863. package/build/server/chunks/chunks/http2.js-Cr9xuMRL.js +0 -26
  864. package/build/server/chunks/chunks/inbox.js-CW2sFmx9.js +0 -114
  865. package/build/server/chunks/chunks/inbox.svelte.js-OoKhjjWM.js +0 -134
  866. package/build/server/chunks/chunks/index-server.js-CtyUzIGY.js +0 -17
  867. package/build/server/chunks/chunks/index-server2.js-DMc-UvjC.js +0 -19
  868. package/build/server/chunks/chunks/index.js-Bn6j9diM.js +0 -1524
  869. package/build/server/chunks/chunks/index2.js-CXaRTuov.js +0 -46
  870. package/build/server/chunks/chunks/internal.js-Co-6PAQm.js +0 -146
  871. package/build/server/chunks/chunks/live.svelte.js-BRUTNc9D.js +0 -196
  872. package/build/server/chunks/chunks/loader-circle.js-IYRaUYWq.js +0 -16
  873. package/build/server/chunks/chunks/message-circle-question-mark.js-DwrMi0ty.js +0 -25
  874. package/build/server/chunks/chunks/message-square-text.js-N5uEmy8L.js +0 -25
  875. package/build/server/chunks/chunks/message-square.js-Hp-6BHgG.js +0 -22
  876. package/build/server/chunks/chunks/minus.js-bsfnwE-h.js +0 -15
  877. package/build/server/chunks/chunks/monitor-play.js-B7qbbPH6.js +0 -28
  878. package/build/server/chunks/chunks/preview.js-CVD-Kwks.js +0 -68
  879. package/build/server/chunks/chunks/prreview.js-C5XxDIu2.js +0 -85
  880. package/build/server/chunks/chunks/root.js-CQzYN4Pu.js +0 -3105
  881. package/build/server/chunks/chunks/runtime.js-C0n924wq.js +0 -13280
  882. package/build/server/chunks/chunks/scale.js-vP4G0lZM.js +0 -21
  883. package/build/server/chunks/chunks/shield-check.js-PJLnCKD9.js +0 -23
  884. package/build/server/chunks/chunks/spec.js-B0yI1XqG.js +0 -307
  885. package/build/server/chunks/chunks/split.js-BsCU24rQ.js +0 -20
  886. package/build/server/chunks/chunks/square-terminal.js-D5Z4Sl2-.js +0 -47
  887. package/build/server/chunks/chunks/tone.js-r2qFVrZC.js +0 -30
  888. package/build/server/chunks/chunks/trash.js-DYFbRevY.js +0 -46
  889. package/build/server/chunks/chunks/triangle-alert.js-DuE40HSU.js +0 -38
  890. package/build/server/chunks/chunks/utils.js-DTSGDHlH.js +0 -2956
  891. package/build/server/chunks/chunks/view.js-BtcLmKUY.js +0 -76
  892. package/build/server/chunks/chunks/view2.js-BdUXqNlY.js +0 -87
  893. package/build/server/chunks/chunks/views.js-B0wP-tuB.js +0 -137
  894. package/build/server/chunks/chunks/waypoints.js-D3HN7bje.js +0 -67
  895. package/build/server/chunks/chunks/x.js-tlds9Ooz.js +0 -18
  896. package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-DNHG661Q.js +0 -93
  897. package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-XBUQePMq.js +0 -74
  898. package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-D1tzpRWy.js +0 -110
  899. package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-DqhQUZUA.js +0 -42
  900. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-LsZer0Bi.js +0 -35
  901. package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-DQob0XkJ.js +0 -57
  902. package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-DgFjtYYL.js +0 -45
  903. package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-DOoA4rRW.js +0 -35
  904. package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-DZQsFY87.js +0 -27
  905. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-DuSzTlq5.js +0 -27
  906. package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-C15XwPXH.js +0 -51
  907. package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js--gavJO4f.js +0 -27
  908. package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-CsTy_jT6.js +0 -27
  909. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-BWOcGtOU.js +0 -32
  910. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-Kjwbc2wm.js +0 -41
  911. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-BTIb8CUb.js +0 -53
  912. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-Vh52yDJ9.js +0 -40
  913. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-LJDJLrpB.js +0 -63
  914. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-CdDBYH6K.js +0 -46
  915. package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-DoElFmWK.js +0 -46
  916. package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-KiiPnPLF.js +0 -35
  917. package/build/server/chunks/entries/endpoints/api/specs/_id_/_server.ts.js-LMXTPr04.js +0 -59
  918. package/build/server/chunks/entries/endpoints/api/specs/_id_/build-request/_server.ts.js-bqjJGIjt.js +0 -47
  919. package/build/server/chunks/entries/endpoints/api/specs/_id_/comments/_comment_/_server.ts.js-DD1qQE9w.js +0 -36
  920. package/build/server/chunks/entries/endpoints/api/specs/_id_/comments/_server.ts.js-Bby1xkpH.js +0 -57
  921. package/build/server/chunks/entries/endpoints/api/specs/_id_/images/_name_/_server.ts.js-CPX8OLQa.js +0 -49
  922. package/build/server/chunks/entries/endpoints/api/specs/_id_/images/_server.ts.js-BjBV4SVl.js +0 -55
  923. package/build/server/chunks/entries/endpoints/api/specs/_id_/sent/_server.ts.js-BAqm0IW0.js +0 -36
  924. package/build/server/chunks/entries/endpoints/api/specs/_id_/turn/_server.ts.js-CNFIHA70.js +0 -82
  925. package/build/server/chunks/entries/endpoints/api/specs/_server.ts.js-Bix9PKKr.js +0 -40
  926. package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-CT7cLDQU.js +0 -32
  927. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-zCsm8UJT.js +0 -51
  928. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-ccyEPbua.js +0 -39
  929. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-eZPQtK6T.js +0 -84
  930. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-CW76hSLW.js +0 -102
  931. package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/_server.ts.js-Cjuig1dr.js +0 -34
  932. package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/ask/_server.ts.js-C04r1OFS.js +0 -40
  933. package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/check/_server.ts.js-Ca5VNJtJ.js +0 -39
  934. package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/guide/_server.ts.js-BKLIKSUM.js +0 -39
  935. package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/runs/_run_/stop/_server.ts.js-C-D9zXgK.js +0 -32
  936. package/build/server/chunks/entries/fallbacks/error.svelte.js-DlN_tCrh.js +0 -15
  937. package/build/server/chunks/entries/hooks.server.js-Cgq1_RNe.js +0 -40
  938. package/build/server/chunks/entries/pages/_layout.server.ts.js-B7EWMhm1.js +0 -20
  939. package/build/server/chunks/entries/pages/_layout.svelte.js-BJuZaosz.js +0 -10454
  940. package/build/server/chunks/entries/pages/_page.server.ts.js-CrjekE3C.js +0 -16
  941. package/build/server/chunks/entries/pages/_page.svelte.js-BI4c5H0n.js +0 -3699
  942. package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-Olm_zS-k.js +0 -11
  943. package/build/server/chunks/entries/pages/decisions/_page.svelte.js-ClTz3O_K.js +0 -167
  944. package/build/server/chunks/entries/pages/harbour/_page.server.ts.js-CVhhNUGy.js +0 -20
  945. package/build/server/chunks/entries/pages/harbour/_page.svelte.js-43FRNSVK.js +0 -1346
  946. package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-Bv8GukD1.js +0 -11
  947. package/build/server/chunks/entries/pages/headroom/_page.svelte.js-zmKQdAwy.js +0 -135
  948. package/build/server/chunks/entries/pages/inbox/_page.svelte.js-wTvAFPNM.js +0 -175
  949. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-BJRmRxez.js +0 -15
  950. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.svelte.js-DfAqJJ3i.js +0 -55
  951. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-DawJ61h-.js +0 -15
  952. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.svelte.js-B472Pugu.js +0 -66
  953. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-Cm-4qkeb.js +0 -14
  954. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.svelte.js-CWjEArXY.js +0 -394
  955. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-DWNW8L5o.js +0 -15
  956. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.svelte.js-iHacn81K.js +0 -1859
  957. package/build/server/chunks/entries/pages/projects/_page.server.ts.js-BVDM5Frg.js +0 -37
  958. package/build/server/chunks/entries/pages/projects/_page.svelte.js-B_NQ-Wg3.js +0 -270
  959. package/build/server/chunks/entries/pages/spec/_page.server.ts.js-B3atEUDm.js +0 -31
  960. package/build/server/chunks/entries/pages/spec/_page.svelte.js-BJjweG9u.js +0 -1561
  961. package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-BDQIO7Ft.js +0 -25
  962. package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-Dr2wwDJG.js +0 -2063
  963. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-Bw-3fcQ6.js +0 -24
  964. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.svelte.js-DOyZ1QzI.js +0 -145
  965. package/build/server/chunks/entries/pages/tasks/_id_/review/_page.server.ts.js-CJek9uLa.js +0 -15
  966. package/build/server/chunks/entries/pages/tasks/_id_/review/_page.svelte.js-BDaRELgE.js +0 -692
  967. package/build/server/chunks/entries/pages/time/_page.server.ts.js-An6F-Ydg.js +0 -11
  968. package/build/server/chunks/entries/pages/time/_page.svelte.js-CSXGxvVs.js +0 -107
  969. package/build/server/chunks/handler-BnRz5A8m.js +0 -1474
  970. package/build/server/chunks/index.js-C8djlQGs.js +0 -4296
  971. package/build/server/chunks/manifest.js-YAglwkb0.js +0 -434
  972. package/build/server/chunks/nodes/0.js-lkzICUiD.js +0 -32
  973. package/build/server/chunks/nodes/1.js-BJHI215Q.js +0 -9
  974. package/build/server/chunks/nodes/10.js-BWB-fD67.js +0 -33
  975. package/build/server/chunks/nodes/11.js-DWkXu85W.js +0 -33
  976. package/build/server/chunks/nodes/12.js-CKTx5eRx.js +0 -37
  977. package/build/server/chunks/nodes/13.js-C9YUj8Wf.js +0 -33
  978. package/build/server/chunks/nodes/14.js-CvfRHrCy.js +0 -33
  979. package/build/server/chunks/nodes/15.js-D_eEoMQb.js +0 -33
  980. package/build/server/chunks/nodes/16.js-BQhgpvij.js +0 -32
  981. package/build/server/chunks/nodes/2.js-C-3t-e-a.js +0 -32
  982. package/build/server/chunks/nodes/3.js-DgwKYi6C.js +0 -32
  983. package/build/server/chunks/nodes/4.js-DRDQ1cZ6.js +0 -34
  984. package/build/server/chunks/nodes/5.js-Bn5aoN6C.js +0 -32
  985. package/build/server/chunks/nodes/6.js-lazTWxVv.js +0 -9
  986. package/build/server/chunks/nodes/7.js-PUjlFfxr.js +0 -32
  987. package/build/server/chunks/nodes/8.js-DYPhaWV-.js +0 -34
  988. package/build/server/chunks/nodes/9.js-C2q_Jaiu.js +0 -32
  989. /package/build/client/_app/immutable/assets/{15.KLSHp5Yu.css → 20.KLSHp5Yu.css} +0 -0
  990. /package/build/client/_app/immutable/assets/{15.KLSHp5Yu.css.br → 20.KLSHp5Yu.css.br} +0 -0
  991. /package/build/client/_app/immutable/assets/{15.KLSHp5Yu.css.gz → 20.KLSHp5Yu.css.gz} +0 -0
  992. /package/build/client/_app/immutable/assets/{4.5dJKCkOT.css → 5.5dJKCkOT.css} +0 -0
  993. /package/build/client/_app/immutable/assets/{4.5dJKCkOT.css.br → 5.5dJKCkOT.css.br} +0 -0
  994. /package/build/client/_app/immutable/assets/{4.5dJKCkOT.css.gz → 5.5dJKCkOT.css.gz} +0 -0
  995. /package/build/client/_app/immutable/assets/{MicButton.Dga9zAug.css → DictateTextarea.Dga9zAug.css} +0 -0
  996. /package/build/client/_app/immutable/assets/{MicButton.Dga9zAug.css.br → DictateTextarea.Dga9zAug.css.br} +0 -0
  997. /package/build/client/_app/immutable/assets/{MicButton.Dga9zAug.css.gz → DictateTextarea.Dga9zAug.css.gz} +0 -0
@@ -0,0 +1,2634 @@
1
+ import { l as linkedDocPath, d as docHref, f as findDocPaths, s as splitDocPaths } from './docpath.js-D27w_pf9.js';
2
+
3
+ /*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */
4
+ function _arrayLikeToArray(r, a) {
5
+ (null == a || a > r.length) && (a = r.length);
6
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
7
+ return n;
8
+ }
9
+ function _arrayWithHoles(r) {
10
+ if (Array.isArray(r)) return r;
11
+ }
12
+ function _iterableToArrayLimit(r, l) {
13
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
14
+ if (null != t) {
15
+ var e, n, i, u, a = [], f = true, o = false;
16
+ try {
17
+ if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
18
+ } catch (r) {
19
+ o = true, n = r;
20
+ } finally {
21
+ try {
22
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
23
+ } finally {
24
+ if (o) throw n;
25
+ }
26
+ }
27
+ return a;
28
+ }
29
+ }
30
+ function _nonIterableRest() {
31
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
32
+ }
33
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
34
+ function _slicedToArray(r, e) {
35
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
36
+ }
37
+ function _unsupportedIterableToArray(r, a) {
38
+ if (r) {
39
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
40
+ var t = {}.toString.call(r).slice(8, -1);
41
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
42
+ }
43
+ }
44
+ const entries = Object.entries;
45
+ const setPrototypeOf = Object.setPrototypeOf;
46
+ const isFrozen = Object.isFrozen;
47
+ const getPrototypeOf = Object.getPrototypeOf;
48
+ const getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
49
+ let freeze = Object.freeze;
50
+ let seal = Object.seal;
51
+ let create = Object.create;
52
+ let _ref = typeof Reflect !== "undefined" && Reflect;
53
+ let apply = _ref.apply;
54
+ let construct = _ref.construct;
55
+ if (!freeze) freeze = function freeze(x) {
56
+ return x;
57
+ };
58
+ if (!seal) seal = function seal(x) {
59
+ return x;
60
+ };
61
+ if (!apply) apply = function apply(func, thisArg) {
62
+ for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) args[_key - 2] = arguments[_key];
63
+ return func.apply(thisArg, args);
64
+ };
65
+ if (!construct) construct = function construct(Func) {
66
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) args[_key2 - 1] = arguments[_key2];
67
+ return new Func(...args);
68
+ };
69
+ const arrayForEach = unapply(Array.prototype.forEach);
70
+ const arrayLastIndexOf = unapply(Array.prototype.lastIndexOf);
71
+ const arrayPop = unapply(Array.prototype.pop);
72
+ const arrayPush = unapply(Array.prototype.push);
73
+ const arraySlice = unapply(Array.prototype.slice);
74
+ const arraySplice = unapply(Array.prototype.splice);
75
+ const arrayIsArray = Array.isArray;
76
+ const setCreate = unconstruct(Set);
77
+ const setAdd = unapply(Set.prototype.add);
78
+ const setHas = unapply(Set.prototype.has);
79
+ const stringToLowerCase = unapply(String.prototype.toLowerCase);
80
+ const stringToString = unapply(String.prototype.toString);
81
+ const stringMatch = unapply(String.prototype.match);
82
+ const stringReplace = unapply(String.prototype.replace);
83
+ const stringIndexOf = unapply(String.prototype.indexOf);
84
+ const stringTrim = unapply(String.prototype.trim);
85
+ const numberToString = unapply(Number.prototype.toString);
86
+ const booleanToString = unapply(Boolean.prototype.toString);
87
+ const bigintToString = typeof BigInt === "undefined" ? null : unapply(BigInt.prototype.toString);
88
+ const symbolToString = typeof Symbol === "undefined" ? null : unapply(Symbol.prototype.toString);
89
+ const objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);
90
+ const objectToString = unapply(Object.prototype.toString);
91
+ const regExpTest = unapply(RegExp.prototype.test);
92
+ const typeErrorCreate = unconstruct(TypeError);
93
+ /**
94
+ * Creates a new function that calls the given function with a specified thisArg and arguments.
95
+ *
96
+ * @param func - The function to be wrapped and called.
97
+ * @returns A new function that calls the given function with a specified thisArg and arguments.
98
+ */
99
+ function unapply(func) {
100
+ return function(thisArg) {
101
+ if (thisArg instanceof RegExp) thisArg.lastIndex = 0;
102
+ for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) args[_key3 - 1] = arguments[_key3];
103
+ return apply(func, thisArg, args);
104
+ };
105
+ }
106
+ /**
107
+ * Creates a new function that constructs an instance of the given constructor function with the provided arguments.
108
+ *
109
+ * @param func - The constructor function to be wrapped and called.
110
+ * @returns A new function that constructs an instance of the given constructor function with the provided arguments.
111
+ */
112
+ function unconstruct(Func) {
113
+ return function() {
114
+ for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) args[_key4] = arguments[_key4];
115
+ return construct(Func, args);
116
+ };
117
+ }
118
+ /**
119
+ * Add properties to a lookup table
120
+ *
121
+ * @param set - The set to which elements will be added.
122
+ * @param array - The array containing elements to be added to the set.
123
+ * @param transformCaseFunc - An optional function to transform the case of each element before adding to the set.
124
+ * @returns The modified set with added elements.
125
+ */
126
+ function addToSet(set, array) {
127
+ let transformCaseFunc = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : stringToLowerCase;
128
+ if (setPrototypeOf) setPrototypeOf(set, null);
129
+ if (!arrayIsArray(array)) return set;
130
+ let l = array.length;
131
+ while (l--) {
132
+ let element = array[l];
133
+ if (typeof element === "string") {
134
+ const lcElement = transformCaseFunc(element);
135
+ if (lcElement !== element) {
136
+ if (!isFrozen(array)) array[l] = lcElement;
137
+ element = lcElement;
138
+ }
139
+ }
140
+ set[element] = true;
141
+ }
142
+ return set;
143
+ }
144
+ /**
145
+ * Clean up an array to harden against CSPP
146
+ *
147
+ * @param array - The array to be cleaned.
148
+ * @returns The cleaned version of the array
149
+ */
150
+ function cleanArray(array) {
151
+ for (let index = 0; index < array.length; index++) if (!objectHasOwnProperty(array, index)) array[index] = null;
152
+ return array;
153
+ }
154
+ /**
155
+ * Shallow clone an object
156
+ *
157
+ * @param object - The object to be cloned.
158
+ * @returns A new object that copies the original.
159
+ */
160
+ function clone(object) {
161
+ const newObject = create(null);
162
+ for (const _ref2 of entries(object)) {
163
+ var _ref3 = _slicedToArray(_ref2, 2);
164
+ const property = _ref3[0];
165
+ const value = _ref3[1];
166
+ if (objectHasOwnProperty(object, property)) {
167
+ if (arrayIsArray(value)) newObject[property] = cleanArray(value);
168
+ else if (value && typeof value === "object" && value.constructor === Object) newObject[property] = clone(value);
169
+ else newObject[property] = value;
170
+ }
171
+ }
172
+ return newObject;
173
+ }
174
+ /**
175
+ * Convert non-node values into strings without depending on direct property access.
176
+ *
177
+ * @param value - The value to stringify.
178
+ * @returns A string representation of the provided value.
179
+ */
180
+ function stringifyValue(value) {
181
+ switch (typeof value) {
182
+ case "string": return value;
183
+ case "number": return numberToString(value);
184
+ case "boolean": return booleanToString(value);
185
+ case "bigint": return bigintToString ? bigintToString(value) : "0";
186
+ case "symbol": return symbolToString ? symbolToString(value) : "Symbol()";
187
+ case "undefined": return objectToString(value);
188
+ case "function":
189
+ case "object": {
190
+ if (value === null) return objectToString(value);
191
+ const valueAsRecord = value;
192
+ const valueToString = lookupGetter(valueAsRecord, "toString");
193
+ if (typeof valueToString === "function") {
194
+ const stringified = valueToString(valueAsRecord);
195
+ return typeof stringified === "string" ? stringified : objectToString(stringified);
196
+ }
197
+ return objectToString(value);
198
+ }
199
+ default: return objectToString(value);
200
+ }
201
+ }
202
+ /**
203
+ * This method automatically checks if the prop is function or getter and behaves accordingly.
204
+ *
205
+ * @param object - The object to look up the getter function in its prototype chain.
206
+ * @param prop - The property name for which to find the getter function.
207
+ * @returns The getter function found in the prototype chain or a fallback function.
208
+ */
209
+ function lookupGetter(object, prop) {
210
+ while (object !== null) {
211
+ const desc = getOwnPropertyDescriptor(object, prop);
212
+ if (desc) {
213
+ if (desc.get) return unapply(desc.get);
214
+ if (typeof desc.value === "function") return unapply(desc.value);
215
+ }
216
+ object = getPrototypeOf(object);
217
+ }
218
+ function fallbackValue() {
219
+ return null;
220
+ }
221
+ return fallbackValue;
222
+ }
223
+ /**
224
+ * Like lookupGetter, but for accessor properties only, and returns null
225
+ * instead of a null-returning fallback when no getter exists on the chain.
226
+ * Lets a caller fall back to a direct property read in environments that
227
+ * lack the getter, where a fallback returning null would be indistinguishable
228
+ * from a legitimate null value (e.g. namespaceURI of a no-namespace element).
229
+ *
230
+ * @param object - The object (usually a prototype) to start the lookup at.
231
+ * @param prop - The accessor property name.
232
+ * @returns The unapplied getter, or null if none was found.
233
+ */
234
+ function lookupAccessor(object, prop) {
235
+ while (object !== null) {
236
+ const desc = getOwnPropertyDescriptor(object, prop);
237
+ if (desc) return desc.get ? unapply(desc.get) : null;
238
+ object = getPrototypeOf(object);
239
+ }
240
+ return null;
241
+ }
242
+ function isRegex(value) {
243
+ try {
244
+ regExpTest(value, "");
245
+ return true;
246
+ } catch (_unused) {
247
+ return false;
248
+ }
249
+ }
250
+ const html$1 = freeze([
251
+ "a",
252
+ "abbr",
253
+ "acronym",
254
+ "address",
255
+ "area",
256
+ "article",
257
+ "aside",
258
+ "audio",
259
+ "b",
260
+ "bdi",
261
+ "bdo",
262
+ "big",
263
+ "blink",
264
+ "blockquote",
265
+ "body",
266
+ "br",
267
+ "button",
268
+ "canvas",
269
+ "caption",
270
+ "center",
271
+ "cite",
272
+ "code",
273
+ "col",
274
+ "colgroup",
275
+ "content",
276
+ "data",
277
+ "datalist",
278
+ "dd",
279
+ "decorator",
280
+ "del",
281
+ "details",
282
+ "dfn",
283
+ "dialog",
284
+ "dir",
285
+ "div",
286
+ "dl",
287
+ "dt",
288
+ "element",
289
+ "em",
290
+ "fieldset",
291
+ "figcaption",
292
+ "figure",
293
+ "font",
294
+ "footer",
295
+ "form",
296
+ "h1",
297
+ "h2",
298
+ "h3",
299
+ "h4",
300
+ "h5",
301
+ "h6",
302
+ "head",
303
+ "header",
304
+ "hgroup",
305
+ "hr",
306
+ "html",
307
+ "i",
308
+ "img",
309
+ "input",
310
+ "ins",
311
+ "kbd",
312
+ "label",
313
+ "legend",
314
+ "li",
315
+ "main",
316
+ "map",
317
+ "mark",
318
+ "marquee",
319
+ "menu",
320
+ "menuitem",
321
+ "meter",
322
+ "nav",
323
+ "nobr",
324
+ "ol",
325
+ "optgroup",
326
+ "option",
327
+ "output",
328
+ "p",
329
+ "picture",
330
+ "pre",
331
+ "progress",
332
+ "q",
333
+ "rp",
334
+ "rt",
335
+ "ruby",
336
+ "s",
337
+ "samp",
338
+ "search",
339
+ "section",
340
+ "select",
341
+ "shadow",
342
+ "slot",
343
+ "small",
344
+ "source",
345
+ "spacer",
346
+ "span",
347
+ "strike",
348
+ "strong",
349
+ "style",
350
+ "sub",
351
+ "summary",
352
+ "sup",
353
+ "table",
354
+ "tbody",
355
+ "td",
356
+ "template",
357
+ "textarea",
358
+ "tfoot",
359
+ "th",
360
+ "thead",
361
+ "time",
362
+ "tr",
363
+ "track",
364
+ "tt",
365
+ "u",
366
+ "ul",
367
+ "var",
368
+ "video",
369
+ "wbr"
370
+ ]);
371
+ const svg$1 = freeze([
372
+ "svg",
373
+ "a",
374
+ "altglyph",
375
+ "altglyphdef",
376
+ "altglyphitem",
377
+ "animatecolor",
378
+ "animatemotion",
379
+ "animatetransform",
380
+ "circle",
381
+ "clippath",
382
+ "defs",
383
+ "desc",
384
+ "ellipse",
385
+ "enterkeyhint",
386
+ "exportparts",
387
+ "filter",
388
+ "font",
389
+ "g",
390
+ "glyph",
391
+ "glyphref",
392
+ "hkern",
393
+ "image",
394
+ "inputmode",
395
+ "line",
396
+ "lineargradient",
397
+ "marker",
398
+ "mask",
399
+ "metadata",
400
+ "mpath",
401
+ "part",
402
+ "path",
403
+ "pattern",
404
+ "polygon",
405
+ "polyline",
406
+ "radialgradient",
407
+ "rect",
408
+ "stop",
409
+ "style",
410
+ "switch",
411
+ "symbol",
412
+ "text",
413
+ "textpath",
414
+ "title",
415
+ "tref",
416
+ "tspan",
417
+ "view",
418
+ "vkern"
419
+ ]);
420
+ const svgFilters = freeze([
421
+ "feBlend",
422
+ "feColorMatrix",
423
+ "feComponentTransfer",
424
+ "feComposite",
425
+ "feConvolveMatrix",
426
+ "feDiffuseLighting",
427
+ "feDisplacementMap",
428
+ "feDistantLight",
429
+ "feDropShadow",
430
+ "feFlood",
431
+ "feFuncA",
432
+ "feFuncB",
433
+ "feFuncG",
434
+ "feFuncR",
435
+ "feGaussianBlur",
436
+ "feImage",
437
+ "feMerge",
438
+ "feMergeNode",
439
+ "feMorphology",
440
+ "feOffset",
441
+ "fePointLight",
442
+ "feSpecularLighting",
443
+ "feSpotLight",
444
+ "feTile",
445
+ "feTurbulence"
446
+ ]);
447
+ const svgDisallowed = freeze([
448
+ "animate",
449
+ "color-profile",
450
+ "cursor",
451
+ "discard",
452
+ "font-face",
453
+ "font-face-format",
454
+ "font-face-name",
455
+ "font-face-src",
456
+ "font-face-uri",
457
+ "foreignobject",
458
+ "hatch",
459
+ "hatchpath",
460
+ "mesh",
461
+ "meshgradient",
462
+ "meshpatch",
463
+ "meshrow",
464
+ "missing-glyph",
465
+ "script",
466
+ "set",
467
+ "solidcolor",
468
+ "unknown",
469
+ "use"
470
+ ]);
471
+ const mathMl$1 = freeze([
472
+ "math",
473
+ "menclose",
474
+ "merror",
475
+ "mfenced",
476
+ "mfrac",
477
+ "mglyph",
478
+ "mi",
479
+ "mlabeledtr",
480
+ "mmultiscripts",
481
+ "mn",
482
+ "mo",
483
+ "mover",
484
+ "mpadded",
485
+ "mphantom",
486
+ "mroot",
487
+ "mrow",
488
+ "ms",
489
+ "mspace",
490
+ "msqrt",
491
+ "mstyle",
492
+ "msub",
493
+ "msup",
494
+ "msubsup",
495
+ "mtable",
496
+ "mtd",
497
+ "mtext",
498
+ "mtr",
499
+ "munder",
500
+ "munderover",
501
+ "mprescripts"
502
+ ]);
503
+ const mathMlDisallowed = freeze([
504
+ "maction",
505
+ "maligngroup",
506
+ "malignmark",
507
+ "mlongdiv",
508
+ "mscarries",
509
+ "mscarry",
510
+ "msgroup",
511
+ "mstack",
512
+ "msline",
513
+ "msrow",
514
+ "semantics",
515
+ "annotation",
516
+ "annotation-xml",
517
+ "mprescripts",
518
+ "none"
519
+ ]);
520
+ const text = freeze(["#text"]);
521
+ const html = freeze([
522
+ "accept",
523
+ "action",
524
+ "align",
525
+ "alt",
526
+ "autocapitalize",
527
+ "autocomplete",
528
+ "autopictureinpicture",
529
+ "autoplay",
530
+ "background",
531
+ "bgcolor",
532
+ "border",
533
+ "capture",
534
+ "cellpadding",
535
+ "cellspacing",
536
+ "checked",
537
+ "cite",
538
+ "class",
539
+ "clear",
540
+ "color",
541
+ "cols",
542
+ "colspan",
543
+ "command",
544
+ "commandfor",
545
+ "controls",
546
+ "controlslist",
547
+ "coords",
548
+ "crossorigin",
549
+ "datetime",
550
+ "decoding",
551
+ "default",
552
+ "dir",
553
+ "disabled",
554
+ "disablepictureinpicture",
555
+ "disableremoteplayback",
556
+ "download",
557
+ "draggable",
558
+ "enctype",
559
+ "enterkeyhint",
560
+ "exportparts",
561
+ "face",
562
+ "for",
563
+ "headers",
564
+ "height",
565
+ "hidden",
566
+ "high",
567
+ "href",
568
+ "hreflang",
569
+ "id",
570
+ "inert",
571
+ "inputmode",
572
+ "integrity",
573
+ "ismap",
574
+ "kind",
575
+ "label",
576
+ "lang",
577
+ "list",
578
+ "loading",
579
+ "loop",
580
+ "low",
581
+ "max",
582
+ "maxlength",
583
+ "media",
584
+ "method",
585
+ "min",
586
+ "minlength",
587
+ "multiple",
588
+ "muted",
589
+ "name",
590
+ "nonce",
591
+ "noshade",
592
+ "novalidate",
593
+ "nowrap",
594
+ "open",
595
+ "optimum",
596
+ "part",
597
+ "pattern",
598
+ "placeholder",
599
+ "playsinline",
600
+ "popover",
601
+ "popovertarget",
602
+ "popovertargetaction",
603
+ "poster",
604
+ "preload",
605
+ "pubdate",
606
+ "radiogroup",
607
+ "readonly",
608
+ "rel",
609
+ "required",
610
+ "rev",
611
+ "reversed",
612
+ "role",
613
+ "rows",
614
+ "rowspan",
615
+ "spellcheck",
616
+ "scope",
617
+ "selected",
618
+ "shape",
619
+ "size",
620
+ "sizes",
621
+ "slot",
622
+ "span",
623
+ "srclang",
624
+ "start",
625
+ "src",
626
+ "srcset",
627
+ "step",
628
+ "style",
629
+ "summary",
630
+ "tabindex",
631
+ "title",
632
+ "translate",
633
+ "type",
634
+ "usemap",
635
+ "valign",
636
+ "value",
637
+ "width",
638
+ "wrap",
639
+ "xmlns"
640
+ ]);
641
+ const svg = freeze([
642
+ "accent-height",
643
+ "accumulate",
644
+ "additive",
645
+ "alignment-baseline",
646
+ "amplitude",
647
+ "ascent",
648
+ "attributename",
649
+ "attributetype",
650
+ "azimuth",
651
+ "basefrequency",
652
+ "baseline-shift",
653
+ "begin",
654
+ "bias",
655
+ "by",
656
+ "class",
657
+ "clip",
658
+ "clippathunits",
659
+ "clip-path",
660
+ "clip-rule",
661
+ "color",
662
+ "color-interpolation",
663
+ "color-interpolation-filters",
664
+ "color-profile",
665
+ "color-rendering",
666
+ "cx",
667
+ "cy",
668
+ "d",
669
+ "dx",
670
+ "dy",
671
+ "diffuseconstant",
672
+ "direction",
673
+ "display",
674
+ "divisor",
675
+ "dominant-baseline",
676
+ "dur",
677
+ "edgemode",
678
+ "elevation",
679
+ "end",
680
+ "exponent",
681
+ "fill",
682
+ "fill-opacity",
683
+ "fill-rule",
684
+ "filter",
685
+ "filterunits",
686
+ "flood-color",
687
+ "flood-opacity",
688
+ "font-family",
689
+ "font-size",
690
+ "font-size-adjust",
691
+ "font-stretch",
692
+ "font-style",
693
+ "font-variant",
694
+ "font-weight",
695
+ "fx",
696
+ "fy",
697
+ "g1",
698
+ "g2",
699
+ "glyph-name",
700
+ "glyphref",
701
+ "gradientunits",
702
+ "gradienttransform",
703
+ "height",
704
+ "href",
705
+ "id",
706
+ "image-rendering",
707
+ "in",
708
+ "in2",
709
+ "intercept",
710
+ "k",
711
+ "k1",
712
+ "k2",
713
+ "k3",
714
+ "k4",
715
+ "kerning",
716
+ "keypoints",
717
+ "keysplines",
718
+ "keytimes",
719
+ "lang",
720
+ "lengthadjust",
721
+ "letter-spacing",
722
+ "kernelmatrix",
723
+ "kernelunitlength",
724
+ "lighting-color",
725
+ "local",
726
+ "marker-end",
727
+ "marker-mid",
728
+ "marker-start",
729
+ "markerheight",
730
+ "markerunits",
731
+ "markerwidth",
732
+ "maskcontentunits",
733
+ "maskunits",
734
+ "max",
735
+ "mask",
736
+ "mask-type",
737
+ "media",
738
+ "method",
739
+ "mode",
740
+ "min",
741
+ "name",
742
+ "numoctaves",
743
+ "offset",
744
+ "operator",
745
+ "opacity",
746
+ "order",
747
+ "orient",
748
+ "orientation",
749
+ "origin",
750
+ "overflow",
751
+ "paint-order",
752
+ "path",
753
+ "pathlength",
754
+ "patterncontentunits",
755
+ "patterntransform",
756
+ "patternunits",
757
+ "pointer-events",
758
+ "points",
759
+ "preservealpha",
760
+ "preserveaspectratio",
761
+ "primitiveunits",
762
+ "r",
763
+ "rx",
764
+ "ry",
765
+ "radius",
766
+ "refx",
767
+ "refy",
768
+ "repeatcount",
769
+ "repeatdur",
770
+ "restart",
771
+ "result",
772
+ "rotate",
773
+ "scale",
774
+ "seed",
775
+ "shape-rendering",
776
+ "slope",
777
+ "specularconstant",
778
+ "specularexponent",
779
+ "spreadmethod",
780
+ "startoffset",
781
+ "stddeviation",
782
+ "stitchtiles",
783
+ "stop-color",
784
+ "stop-opacity",
785
+ "stroke-dasharray",
786
+ "stroke-dashoffset",
787
+ "stroke-linecap",
788
+ "stroke-linejoin",
789
+ "stroke-miterlimit",
790
+ "stroke-opacity",
791
+ "stroke",
792
+ "stroke-width",
793
+ "style",
794
+ "surfacescale",
795
+ "systemlanguage",
796
+ "tabindex",
797
+ "tablevalues",
798
+ "targetx",
799
+ "targety",
800
+ "transform",
801
+ "transform-origin",
802
+ "text-anchor",
803
+ "text-decoration",
804
+ "text-orientation",
805
+ "text-rendering",
806
+ "textlength",
807
+ "type",
808
+ "u1",
809
+ "u2",
810
+ "unicode",
811
+ "values",
812
+ "vector-effect",
813
+ "viewbox",
814
+ "visibility",
815
+ "version",
816
+ "vert-adv-y",
817
+ "vert-origin-x",
818
+ "vert-origin-y",
819
+ "width",
820
+ "word-spacing",
821
+ "wrap",
822
+ "writing-mode",
823
+ "xchannelselector",
824
+ "ychannelselector",
825
+ "x",
826
+ "x1",
827
+ "x2",
828
+ "xmlns",
829
+ "y",
830
+ "y1",
831
+ "y2",
832
+ "z",
833
+ "zoomandpan"
834
+ ]);
835
+ const mathMl = freeze([
836
+ "accent",
837
+ "accentunder",
838
+ "align",
839
+ "bevelled",
840
+ "close",
841
+ "columnalign",
842
+ "columnlines",
843
+ "columnspacing",
844
+ "columnspan",
845
+ "denomalign",
846
+ "depth",
847
+ "dir",
848
+ "display",
849
+ "displaystyle",
850
+ "encoding",
851
+ "fence",
852
+ "frame",
853
+ "height",
854
+ "href",
855
+ "id",
856
+ "largeop",
857
+ "length",
858
+ "linethickness",
859
+ "lquote",
860
+ "lspace",
861
+ "mathbackground",
862
+ "mathcolor",
863
+ "mathsize",
864
+ "mathvariant",
865
+ "maxsize",
866
+ "minsize",
867
+ "movablelimits",
868
+ "notation",
869
+ "numalign",
870
+ "open",
871
+ "rowalign",
872
+ "rowlines",
873
+ "rowspacing",
874
+ "rowspan",
875
+ "rspace",
876
+ "rquote",
877
+ "scriptlevel",
878
+ "scriptminsize",
879
+ "scriptsizemultiplier",
880
+ "selection",
881
+ "separator",
882
+ "separators",
883
+ "stretchy",
884
+ "subscriptshift",
885
+ "supscriptshift",
886
+ "symmetric",
887
+ "voffset",
888
+ "width",
889
+ "xmlns"
890
+ ]);
891
+ const xml = freeze([
892
+ "xlink:href",
893
+ "xml:id",
894
+ "xlink:title",
895
+ "xml:space",
896
+ "xmlns:xlink"
897
+ ]);
898
+ const MUSTACHE_EXPR = seal(/{{[\w\W]*|^[\w\W]*}}/g);
899
+ const ERB_EXPR = seal(/<%[\w\W]*|^[\w\W]*%>/g);
900
+ const TMPLIT_EXPR = seal(/\${[\w\W]*/g);
901
+ const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/);
902
+ const ARIA_ATTR = seal(/^aria-[\-\w]+$/);
903
+ const IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i);
904
+ const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
905
+ const ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g);
906
+ const DOCTYPE_NAME = seal(/^html$/i);
907
+ const CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i);
908
+ const ELEMENT_MARKUP_PROBE = seal(/<[/\w!]/g);
909
+ const COMMENT_MARKUP_PROBE = seal(/<[/\w]/g);
910
+ const FALLBACK_TAG_CLOSE = seal(/<\/no(script|embed|frames)/i);
911
+ const SELF_CLOSING_TAG = seal(/\/>/i);
912
+ const NODE_TYPE = {
913
+ element: 1,
914
+ attribute: 2,
915
+ text: 3,
916
+ cdataSection: 4,
917
+ entityReference: 5,
918
+ entityNode: 6,
919
+ processingInstruction: 7,
920
+ comment: 8,
921
+ document: 9,
922
+ documentType: 10,
923
+ documentFragment: 11,
924
+ notation: 12
925
+ };
926
+ const LITERAL_TEXT_ELEMENTS = freeze(addToSet({}, [
927
+ "style",
928
+ "script",
929
+ "xmp",
930
+ "iframe",
931
+ "noembed",
932
+ "noframes",
933
+ "plaintext",
934
+ "noscript"
935
+ ]));
936
+ const getGlobal = function getGlobal() {
937
+ return typeof window === "undefined" ? null : window;
938
+ };
939
+ /**
940
+ * Creates a no-op policy for internal use only.
941
+ * Don't export this function outside this module!
942
+ * @param trustedTypes The policy factory.
943
+ * @param purifyHostElement The Script element used to load DOMPurify (to determine policy name suffix).
944
+ * @return The policy created (or null, if Trusted Types
945
+ * are not supported or creating the policy failed).
946
+ */
947
+ const _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, purifyHostElement) {
948
+ if (typeof trustedTypes !== "object" || typeof trustedTypes.createPolicy !== "function") return null;
949
+ let suffix = null;
950
+ const ATTR_NAME = "data-tt-policy-suffix";
951
+ if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) suffix = purifyHostElement.getAttribute(ATTR_NAME);
952
+ const policyName = "dompurify" + (suffix ? "#" + suffix : "");
953
+ try {
954
+ return trustedTypes.createPolicy(policyName, {
955
+ createHTML(html) {
956
+ return html;
957
+ },
958
+ createScriptURL(scriptUrl) {
959
+ return scriptUrl;
960
+ }
961
+ });
962
+ } catch (_) {
963
+ console.warn("TrustedTypes policy " + policyName + " could not be created.");
964
+ return null;
965
+ }
966
+ };
967
+ const _createHooksMap = function _createHooksMap() {
968
+ return {
969
+ afterSanitizeAttributes: [],
970
+ afterSanitizeElements: [],
971
+ afterSanitizeShadowDOM: [],
972
+ beforeSanitizeAttributes: [],
973
+ beforeSanitizeElements: [],
974
+ beforeSanitizeShadowDOM: [],
975
+ uponSanitizeAttribute: [],
976
+ uponSanitizeElement: [],
977
+ uponSanitizeShadowNode: []
978
+ };
979
+ };
980
+ /**
981
+ * Resolve a set-valued configuration option: a fresh set built from
982
+ * cfg[key] when it is an own array property (seeded with a clone of
983
+ * options.base when given, case-normalized via options.transform),
984
+ * the fallback set otherwise.
985
+ *
986
+ * @param cfg the cloned, prototype-free configuration object
987
+ * @param key the configuration property to read
988
+ * @param fallback the set to use when the option is absent or not an array
989
+ * @param options transform and optional base set to merge into
990
+ * @returns the resolved set
991
+ */
992
+ const _resolveSetOption = function _resolveSetOption(cfg, key, fallback, options) {
993
+ return objectHasOwnProperty(cfg, key) && arrayIsArray(cfg[key]) ? addToSet(options.base ? clone(options.base) : {}, cfg[key], options.transform) : fallback;
994
+ };
995
+ /**
996
+ * Resolve an object-valued configuration option: a prototype-free clone
997
+ * of cfg[key] when it is an own, truthy object property, else a fresh
998
+ * fallback built by makeFallback (fresh on every parse, so a previous
999
+ * parse can never leak state into the next one).
1000
+ *
1001
+ * @param cfg the cloned, prototype-free configuration object
1002
+ * @param key the configuration property to read
1003
+ * @param makeFallback builds the fallback value when the option is absent
1004
+ * @returns the resolved object
1005
+ */
1006
+ const _resolveObjectOption = function _resolveObjectOption(cfg, key, makeFallback) {
1007
+ const value = objectHasOwnProperty(cfg, key) ? cfg[key] : void 0;
1008
+ return value && typeof value === "object" ? clone(value) : makeFallback();
1009
+ };
1010
+ function createDOMPurify() {
1011
+ let window = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
1012
+ const DOMPurify = (root) => createDOMPurify(root);
1013
+ DOMPurify.version = "3.4.17";
1014
+ DOMPurify.removed = [];
1015
+ if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
1016
+ DOMPurify.isSupported = false;
1017
+ return DOMPurify;
1018
+ }
1019
+ let document = window.document;
1020
+ const originalDocument = document;
1021
+ const currentScript = originalDocument.currentScript;
1022
+ window.DocumentFragment;
1023
+ const HTMLTemplateElement = window.HTMLTemplateElement, Node = window.Node, Element = window.Element, NodeFilter = window.NodeFilter;
1024
+ window.NamedNodeMap === void 0 && (window.NamedNodeMap || window.MozNamedAttrMap);
1025
+ window.HTMLFormElement;
1026
+ const DOMParser = window.DOMParser, trustedTypes = window.trustedTypes;
1027
+ const ElementPrototype = Element.prototype;
1028
+ const cloneNode = lookupGetter(ElementPrototype, "cloneNode");
1029
+ const remove = lookupGetter(ElementPrototype, "remove");
1030
+ const removeAttributeNode = lookupGetter(ElementPrototype, "removeAttributeNode");
1031
+ const getNextSibling = lookupGetter(ElementPrototype, "nextSibling");
1032
+ const getChildNodes = lookupGetter(ElementPrototype, "childNodes");
1033
+ const getParentNode = lookupGetter(ElementPrototype, "parentNode");
1034
+ const getShadowRoot = lookupGetter(ElementPrototype, "shadowRoot");
1035
+ const getAttributes = lookupGetter(ElementPrototype, "attributes");
1036
+ const getNodeType = Node && Node.prototype ? lookupGetter(Node.prototype, "nodeType") : null;
1037
+ const getNodeName = Node && Node.prototype ? lookupGetter(Node.prototype, "nodeName") : null;
1038
+ const getOwnerDocument = Node && Node.prototype ? lookupGetter(Node.prototype, "ownerDocument") : null;
1039
+ const _readNodeType = function _readNodeType(node) {
1040
+ return getNodeType ? getNodeType(node) : node.nodeType;
1041
+ };
1042
+ const _readNodeName = function _readNodeName(node) {
1043
+ return getNodeName ? getNodeName(node) : node.nodeName;
1044
+ };
1045
+ const getNamespaceURI = lookupAccessor(ElementPrototype, "namespaceURI");
1046
+ const _readNamespaceURI = function _readNamespaceURI(element) {
1047
+ return getNamespaceURI ? getNamespaceURI(element) : element.namespaceURI;
1048
+ };
1049
+ if (typeof HTMLTemplateElement === "function") {
1050
+ const template = document.createElement("template");
1051
+ if (template.content && template.content.ownerDocument) document = template.content.ownerDocument;
1052
+ }
1053
+ let trustedTypesPolicy;
1054
+ let emptyHTML = "";
1055
+ let defaultTrustedTypesPolicy;
1056
+ let defaultTrustedTypesPolicyResolved = false;
1057
+ let IN_TRUSTED_TYPES_POLICY = 0;
1058
+ const _assertNotInTrustedTypesPolicy = function _assertNotInTrustedTypesPolicy() {
1059
+ if (IN_TRUSTED_TYPES_POLICY > 0) throw typeErrorCreate("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
1060
+ };
1061
+ const _createTrustedHTML = function _createTrustedHTML(html) {
1062
+ _assertNotInTrustedTypesPolicy();
1063
+ IN_TRUSTED_TYPES_POLICY++;
1064
+ try {
1065
+ return trustedTypesPolicy.createHTML(html);
1066
+ } finally {
1067
+ IN_TRUSTED_TYPES_POLICY--;
1068
+ }
1069
+ };
1070
+ const _createTrustedScriptURL = function _createTrustedScriptURL(scriptUrl) {
1071
+ _assertNotInTrustedTypesPolicy();
1072
+ IN_TRUSTED_TYPES_POLICY++;
1073
+ try {
1074
+ return trustedTypesPolicy.createScriptURL(scriptUrl);
1075
+ } finally {
1076
+ IN_TRUSTED_TYPES_POLICY--;
1077
+ }
1078
+ };
1079
+ const _getDefaultTrustedTypesPolicy = function _getDefaultTrustedTypesPolicy() {
1080
+ if (!defaultTrustedTypesPolicyResolved) {
1081
+ defaultTrustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);
1082
+ defaultTrustedTypesPolicyResolved = true;
1083
+ }
1084
+ return defaultTrustedTypesPolicy;
1085
+ };
1086
+ const _document = document, implementation = _document.implementation, createNodeIterator = _document.createNodeIterator, createDocumentFragment = _document.createDocumentFragment, getElementsByTagName = _document.getElementsByTagName;
1087
+ const importNode = originalDocument.importNode;
1088
+ let hooks = _createHooksMap();
1089
+ /**
1090
+ * Expose whether this browser supports running the full DOMPurify.
1091
+ */
1092
+ DOMPurify.isSupported = typeof entries === "function" && typeof getParentNode === "function" && implementation && implementation.createHTMLDocument !== void 0;
1093
+ const MUSTACHE_EXPR$1 = MUSTACHE_EXPR, ERB_EXPR$1 = ERB_EXPR, TMPLIT_EXPR$1 = TMPLIT_EXPR, DATA_ATTR$1 = DATA_ATTR, ARIA_ATTR$1 = ARIA_ATTR, IS_SCRIPT_OR_DATA$1 = IS_SCRIPT_OR_DATA, ATTR_WHITESPACE$1 = ATTR_WHITESPACE, CUSTOM_ELEMENT$1 = CUSTOM_ELEMENT;
1094
+ let IS_ALLOWED_URI$1 = IS_ALLOWED_URI;
1095
+ /**
1096
+ * We consider the elements and attributes below to be safe. Ideally
1097
+ * don't add any new ones but feel free to remove unwanted ones.
1098
+ */
1099
+ let ALLOWED_TAGS = null;
1100
+ const DEFAULT_ALLOWED_TAGS = addToSet({}, [
1101
+ ...html$1,
1102
+ ...svg$1,
1103
+ ...svgFilters,
1104
+ ...mathMl$1,
1105
+ ...text
1106
+ ]);
1107
+ let ALLOWED_ATTR = null;
1108
+ const DEFAULT_ALLOWED_ATTR = addToSet({}, [
1109
+ ...html,
1110
+ ...svg,
1111
+ ...mathMl,
1112
+ ...xml
1113
+ ]);
1114
+ let CUSTOM_ELEMENT_HANDLING = Object.seal(create(null, {
1115
+ tagNameCheck: {
1116
+ writable: true,
1117
+ configurable: false,
1118
+ enumerable: true,
1119
+ value: null
1120
+ },
1121
+ attributeNameCheck: {
1122
+ writable: true,
1123
+ configurable: false,
1124
+ enumerable: true,
1125
+ value: null
1126
+ },
1127
+ allowCustomizedBuiltInElements: {
1128
+ writable: true,
1129
+ configurable: false,
1130
+ enumerable: true,
1131
+ value: false
1132
+ }
1133
+ }));
1134
+ let FORBID_TAGS = null;
1135
+ let FORBID_ATTR = null;
1136
+ const EXTRA_ELEMENT_HANDLING = Object.seal(create(null, {
1137
+ tagCheck: {
1138
+ writable: true,
1139
+ configurable: false,
1140
+ enumerable: true,
1141
+ value: null
1142
+ },
1143
+ attributeCheck: {
1144
+ writable: true,
1145
+ configurable: false,
1146
+ enumerable: true,
1147
+ value: null
1148
+ }
1149
+ }));
1150
+ let ALLOW_ARIA_ATTR = true;
1151
+ let ALLOW_DATA_ATTR = true;
1152
+ let ALLOW_UNKNOWN_PROTOCOLS = false;
1153
+ let ALLOW_SELF_CLOSE_IN_ATTR = true;
1154
+ let SAFE_FOR_TEMPLATES = false;
1155
+ let SAFE_FOR_XML = true;
1156
+ let WHOLE_DOCUMENT = false;
1157
+ let SET_CONFIG = false;
1158
+ let SET_CONFIG_ALLOWED_TAGS = null;
1159
+ let SET_CONFIG_ALLOWED_ATTR = null;
1160
+ let FORCE_BODY = false;
1161
+ let RETURN_DOM = false;
1162
+ let RETURN_DOM_FRAGMENT = false;
1163
+ let RETURN_TRUSTED_TYPE = false;
1164
+ let SANITIZE_DOM = true;
1165
+ let SANITIZE_NAMED_PROPS = false;
1166
+ const SANITIZE_NAMED_PROPS_PREFIX = "user-content-";
1167
+ let KEEP_CONTENT = true;
1168
+ let IN_PLACE = false;
1169
+ let IN_PLACE_VISITED = null;
1170
+ let USE_PROFILES = {};
1171
+ let FORBID_CONTENTS = null;
1172
+ const DEFAULT_FORBID_CONTENTS = addToSet({}, [
1173
+ "annotation-xml",
1174
+ "audio",
1175
+ "colgroup",
1176
+ "desc",
1177
+ "foreignobject",
1178
+ "head",
1179
+ "iframe",
1180
+ "math",
1181
+ "mi",
1182
+ "mn",
1183
+ "mo",
1184
+ "ms",
1185
+ "mtext",
1186
+ "noembed",
1187
+ "noframes",
1188
+ "noscript",
1189
+ "plaintext",
1190
+ "script",
1191
+ "selectedcontent",
1192
+ "style",
1193
+ "svg",
1194
+ "template",
1195
+ "thead",
1196
+ "title",
1197
+ "video",
1198
+ "xmp"
1199
+ ]);
1200
+ let DATA_URI_TAGS = null;
1201
+ const DEFAULT_DATA_URI_TAGS = addToSet({}, [
1202
+ "audio",
1203
+ "video",
1204
+ "img",
1205
+ "source",
1206
+ "image",
1207
+ "track"
1208
+ ]);
1209
+ let URI_SAFE_ATTRIBUTES = null;
1210
+ const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, [
1211
+ "alt",
1212
+ "class",
1213
+ "for",
1214
+ "id",
1215
+ "label",
1216
+ "name",
1217
+ "pattern",
1218
+ "placeholder",
1219
+ "role",
1220
+ "summary",
1221
+ "title",
1222
+ "value",
1223
+ "style",
1224
+ "xmlns"
1225
+ ]);
1226
+ const MATHML_NAMESPACE = "http://www.w3.org/1998/Math/MathML";
1227
+ const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
1228
+ const HTML_NAMESPACE = "http://www.w3.org/1999/xhtml";
1229
+ let NAMESPACE = HTML_NAMESPACE;
1230
+ let IS_EMPTY_INPUT = false;
1231
+ let ALLOWED_NAMESPACES = null;
1232
+ const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [
1233
+ MATHML_NAMESPACE,
1234
+ SVG_NAMESPACE,
1235
+ HTML_NAMESPACE
1236
+ ], stringToString);
1237
+ const DEFAULT_MATHML_TEXT_INTEGRATION_POINTS = freeze([
1238
+ "mi",
1239
+ "mo",
1240
+ "mn",
1241
+ "ms",
1242
+ "mtext"
1243
+ ]);
1244
+ let MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, DEFAULT_MATHML_TEXT_INTEGRATION_POINTS);
1245
+ const DEFAULT_HTML_INTEGRATION_POINTS = freeze(["annotation-xml"]);
1246
+ let HTML_INTEGRATION_POINTS = addToSet({}, DEFAULT_HTML_INTEGRATION_POINTS);
1247
+ const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, [
1248
+ "title",
1249
+ "style",
1250
+ "font",
1251
+ "a",
1252
+ "script"
1253
+ ]);
1254
+ let PARSER_MEDIA_TYPE = null;
1255
+ const SUPPORTED_PARSER_MEDIA_TYPES = ["application/xhtml+xml", "text/html"];
1256
+ const DEFAULT_PARSER_MEDIA_TYPE = "text/html";
1257
+ let transformCaseFunc = null;
1258
+ let CONFIG = null;
1259
+ const formElement = document.createElement("form");
1260
+ const isRegexOrFunction = function isRegexOrFunction(testValue) {
1261
+ return testValue instanceof RegExp || testValue instanceof Function;
1262
+ };
1263
+ /**
1264
+ * _parseConfig
1265
+ *
1266
+ * @param cfg optional config literal
1267
+ */
1268
+ const _parseConfig = function _parseConfig() {
1269
+ let cfg = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1270
+ if (CONFIG && CONFIG === cfg) return;
1271
+ if (!cfg || typeof cfg !== "object") cfg = {};
1272
+ cfg = clone(cfg);
1273
+ PARSER_MEDIA_TYPE = SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;
1274
+ transformCaseFunc = PARSER_MEDIA_TYPE === "application/xhtml+xml" ? stringToString : stringToLowerCase;
1275
+ ALLOWED_TAGS = _resolveSetOption(cfg, "ALLOWED_TAGS", DEFAULT_ALLOWED_TAGS, { transform: transformCaseFunc });
1276
+ ALLOWED_ATTR = _resolveSetOption(cfg, "ALLOWED_ATTR", DEFAULT_ALLOWED_ATTR, { transform: transformCaseFunc });
1277
+ ALLOWED_NAMESPACES = _resolveSetOption(cfg, "ALLOWED_NAMESPACES", DEFAULT_ALLOWED_NAMESPACES, { transform: stringToString });
1278
+ URI_SAFE_ATTRIBUTES = _resolveSetOption(cfg, "ADD_URI_SAFE_ATTR", DEFAULT_URI_SAFE_ATTRIBUTES, {
1279
+ transform: transformCaseFunc,
1280
+ base: DEFAULT_URI_SAFE_ATTRIBUTES
1281
+ });
1282
+ DATA_URI_TAGS = _resolveSetOption(cfg, "ADD_DATA_URI_TAGS", DEFAULT_DATA_URI_TAGS, {
1283
+ transform: transformCaseFunc,
1284
+ base: DEFAULT_DATA_URI_TAGS
1285
+ });
1286
+ FORBID_CONTENTS = _resolveSetOption(cfg, "FORBID_CONTENTS", DEFAULT_FORBID_CONTENTS, { transform: transformCaseFunc });
1287
+ FORBID_TAGS = _resolveSetOption(cfg, "FORBID_TAGS", clone({}), { transform: transformCaseFunc });
1288
+ FORBID_ATTR = _resolveSetOption(cfg, "FORBID_ATTR", clone({}), { transform: transformCaseFunc });
1289
+ USE_PROFILES = objectHasOwnProperty(cfg, "USE_PROFILES") ? cfg.USE_PROFILES && typeof cfg.USE_PROFILES === "object" ? clone(cfg.USE_PROFILES) : cfg.USE_PROFILES : false;
1290
+ ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false;
1291
+ ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false;
1292
+ ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false;
1293
+ ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false;
1294
+ SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false;
1295
+ SAFE_FOR_XML = cfg.SAFE_FOR_XML !== false;
1296
+ WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false;
1297
+ RETURN_DOM = cfg.RETURN_DOM || false;
1298
+ RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false;
1299
+ RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false;
1300
+ FORCE_BODY = cfg.FORCE_BODY || false;
1301
+ SANITIZE_DOM = cfg.SANITIZE_DOM !== false;
1302
+ SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false;
1303
+ KEEP_CONTENT = cfg.KEEP_CONTENT !== false;
1304
+ IN_PLACE = cfg.IN_PLACE || false;
1305
+ IS_ALLOWED_URI$1 = isRegex(cfg.ALLOWED_URI_REGEXP) ? cfg.ALLOWED_URI_REGEXP : IS_ALLOWED_URI;
1306
+ NAMESPACE = typeof cfg.NAMESPACE === "string" ? cfg.NAMESPACE : HTML_NAMESPACE;
1307
+ MATHML_TEXT_INTEGRATION_POINTS = _resolveObjectOption(cfg, "MATHML_TEXT_INTEGRATION_POINTS", () => addToSet({}, DEFAULT_MATHML_TEXT_INTEGRATION_POINTS));
1308
+ HTML_INTEGRATION_POINTS = _resolveObjectOption(cfg, "HTML_INTEGRATION_POINTS", () => addToSet({}, DEFAULT_HTML_INTEGRATION_POINTS));
1309
+ const customElementHandling = _resolveObjectOption(cfg, "CUSTOM_ELEMENT_HANDLING", () => create(null));
1310
+ CUSTOM_ELEMENT_HANDLING = create(null);
1311
+ if (objectHasOwnProperty(customElementHandling, "tagNameCheck") && isRegexOrFunction(customElementHandling.tagNameCheck)) CUSTOM_ELEMENT_HANDLING.tagNameCheck = customElementHandling.tagNameCheck;
1312
+ if (objectHasOwnProperty(customElementHandling, "attributeNameCheck") && isRegexOrFunction(customElementHandling.attributeNameCheck)) CUSTOM_ELEMENT_HANDLING.attributeNameCheck = customElementHandling.attributeNameCheck;
1313
+ if (objectHasOwnProperty(customElementHandling, "allowCustomizedBuiltInElements") && typeof customElementHandling.allowCustomizedBuiltInElements === "boolean") CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = customElementHandling.allowCustomizedBuiltInElements;
1314
+ seal(CUSTOM_ELEMENT_HANDLING);
1315
+ if (SAFE_FOR_TEMPLATES) ALLOW_DATA_ATTR = false;
1316
+ if (RETURN_DOM_FRAGMENT) RETURN_DOM = true;
1317
+ if (USE_PROFILES) {
1318
+ ALLOWED_TAGS = addToSet({}, text);
1319
+ ALLOWED_ATTR = create(null);
1320
+ if (USE_PROFILES.html === true) {
1321
+ addToSet(ALLOWED_TAGS, html$1);
1322
+ addToSet(ALLOWED_ATTR, html);
1323
+ }
1324
+ if (USE_PROFILES.svg === true) {
1325
+ addToSet(ALLOWED_TAGS, svg$1);
1326
+ addToSet(ALLOWED_ATTR, svg);
1327
+ addToSet(ALLOWED_ATTR, xml);
1328
+ }
1329
+ if (USE_PROFILES.svgFilters === true) {
1330
+ addToSet(ALLOWED_TAGS, svgFilters);
1331
+ addToSet(ALLOWED_ATTR, svg);
1332
+ addToSet(ALLOWED_ATTR, xml);
1333
+ }
1334
+ if (USE_PROFILES.mathMl === true) {
1335
+ addToSet(ALLOWED_TAGS, mathMl$1);
1336
+ addToSet(ALLOWED_ATTR, mathMl);
1337
+ addToSet(ALLOWED_ATTR, xml);
1338
+ }
1339
+ }
1340
+ EXTRA_ELEMENT_HANDLING.tagCheck = null;
1341
+ EXTRA_ELEMENT_HANDLING.attributeCheck = null;
1342
+ if (objectHasOwnProperty(cfg, "ADD_TAGS")) {
1343
+ if (typeof cfg.ADD_TAGS === "function") EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
1344
+ else if (arrayIsArray(cfg.ADD_TAGS)) {
1345
+ if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) ALLOWED_TAGS = clone(ALLOWED_TAGS);
1346
+ addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
1347
+ }
1348
+ }
1349
+ if (objectHasOwnProperty(cfg, "ADD_ATTR")) {
1350
+ if (typeof cfg.ADD_ATTR === "function") EXTRA_ELEMENT_HANDLING.attributeCheck = cfg.ADD_ATTR;
1351
+ else if (arrayIsArray(cfg.ADD_ATTR)) {
1352
+ if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) ALLOWED_ATTR = clone(ALLOWED_ATTR);
1353
+ addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
1354
+ }
1355
+ }
1356
+ if (objectHasOwnProperty(cfg, "ADD_FORBID_CONTENTS") && arrayIsArray(cfg.ADD_FORBID_CONTENTS)) {
1357
+ if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) FORBID_CONTENTS = clone(FORBID_CONTENTS);
1358
+ addToSet(FORBID_CONTENTS, cfg.ADD_FORBID_CONTENTS, transformCaseFunc);
1359
+ }
1360
+ if (KEEP_CONTENT) ALLOWED_TAGS["#text"] = true;
1361
+ if (WHOLE_DOCUMENT) addToSet(ALLOWED_TAGS, [
1362
+ "html",
1363
+ "head",
1364
+ "body"
1365
+ ]);
1366
+ if (ALLOWED_TAGS.table) {
1367
+ addToSet(ALLOWED_TAGS, ["tbody"]);
1368
+ delete FORBID_TAGS.tbody;
1369
+ }
1370
+ if (cfg.TRUSTED_TYPES_POLICY) {
1371
+ if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== "function") throw typeErrorCreate("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
1372
+ if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== "function") throw typeErrorCreate("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
1373
+ const previousTrustedTypesPolicy = trustedTypesPolicy;
1374
+ trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;
1375
+ try {
1376
+ emptyHTML = _createTrustedHTML("");
1377
+ } catch (error) {
1378
+ trustedTypesPolicy = previousTrustedTypesPolicy;
1379
+ throw error;
1380
+ }
1381
+ } else if (cfg.TRUSTED_TYPES_POLICY === null) {
1382
+ trustedTypesPolicy = void 0;
1383
+ emptyHTML = "";
1384
+ } else {
1385
+ if (trustedTypesPolicy === void 0) trustedTypesPolicy = _getDefaultTrustedTypesPolicy();
1386
+ if (trustedTypesPolicy && typeof emptyHTML === "string") emptyHTML = _createTrustedHTML("");
1387
+ }
1388
+ if (freeze) freeze(cfg);
1389
+ CONFIG = cfg;
1390
+ };
1391
+ const ALL_SVG_TAGS = addToSet({}, [
1392
+ ...svg$1,
1393
+ ...svgFilters,
1394
+ ...svgDisallowed
1395
+ ]);
1396
+ const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);
1397
+ /**
1398
+ * Namespace rules for an element in the SVG namespace.
1399
+ *
1400
+ * @param tagName the element's lowercase tag name
1401
+ * @param parent the (possibly simulated) parent node
1402
+ * @param parentTagName the parent's lowercase tag name
1403
+ * @returns true if a spec-compliant parser could produce this element
1404
+ */
1405
+ const _checkSvgNamespace = function _checkSvgNamespace(tagName, parent, parentTagName) {
1406
+ if (parent.namespaceURI === HTML_NAMESPACE) return tagName === "svg";
1407
+ if (parent.namespaceURI === MATHML_NAMESPACE) return tagName === "svg" && (parentTagName === "annotation-xml" || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);
1408
+ return Boolean(ALL_SVG_TAGS[tagName]);
1409
+ };
1410
+ /**
1411
+ * Namespace rules for an element in the MathML namespace.
1412
+ *
1413
+ * @param tagName the element's lowercase tag name
1414
+ * @param parent the (possibly simulated) parent node
1415
+ * @param parentTagName the parent's lowercase tag name
1416
+ * @returns true if a spec-compliant parser could produce this element
1417
+ */
1418
+ const _checkMathMlNamespace = function _checkMathMlNamespace(tagName, parent, parentTagName) {
1419
+ if (parent.namespaceURI === HTML_NAMESPACE) return tagName === "math";
1420
+ if (parent.namespaceURI === SVG_NAMESPACE) return tagName === "math" && HTML_INTEGRATION_POINTS[parentTagName];
1421
+ return Boolean(ALL_MATHML_TAGS[tagName]);
1422
+ };
1423
+ /**
1424
+ * Namespace rules for an element in the HTML namespace.
1425
+ *
1426
+ * @param tagName the element's lowercase tag name
1427
+ * @param parent the (possibly simulated) parent node
1428
+ * @param parentTagName the parent's lowercase tag name
1429
+ * @returns true if a spec-compliant parser could produce this element
1430
+ */
1431
+ const _checkHtmlNamespace = function _checkHtmlNamespace(tagName, parent, parentTagName) {
1432
+ if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) return false;
1433
+ if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) return false;
1434
+ return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);
1435
+ };
1436
+ /**
1437
+ * @param element a DOM element whose namespace is being checked
1438
+ * @returns Return false if the element has a
1439
+ * namespace that a spec-compliant parser would never
1440
+ * return. Return true otherwise.
1441
+ */
1442
+ const _checkValidNamespace = function _checkValidNamespace(element) {
1443
+ const elementNamespace = _readNamespaceURI(element);
1444
+ const tagName = stringToLowerCase(_readNodeName(element));
1445
+ const parentNode = getParentNode(element);
1446
+ let parent;
1447
+ let parentTagName;
1448
+ if (parentNode && _readNodeType(parentNode) === NODE_TYPE.element) {
1449
+ parent = { namespaceURI: _readNamespaceURI(parentNode) };
1450
+ parentTagName = stringToLowerCase(_readNodeName(parentNode));
1451
+ } else {
1452
+ parent = { namespaceURI: NAMESPACE };
1453
+ parentTagName = "template";
1454
+ }
1455
+ if (!ALLOWED_NAMESPACES[elementNamespace]) return false;
1456
+ if (elementNamespace === SVG_NAMESPACE) return _checkSvgNamespace(tagName, parent, parentTagName);
1457
+ if (elementNamespace === MATHML_NAMESPACE) return _checkMathMlNamespace(tagName, parent, parentTagName);
1458
+ if (elementNamespace === HTML_NAMESPACE) return _checkHtmlNamespace(tagName, parent, parentTagName);
1459
+ if (PARSER_MEDIA_TYPE === "application/xhtml+xml" && ALLOWED_NAMESPACES[elementNamespace]) return true;
1460
+ return false;
1461
+ };
1462
+ /**
1463
+ * _forceRemove
1464
+ *
1465
+ * @param node a DOM node
1466
+ */
1467
+ const _forceRemove = function _forceRemove(node) {
1468
+ arrayPush(DOMPurify.removed, { element: node });
1469
+ try {
1470
+ getParentNode(node).removeChild(node);
1471
+ } catch (_) {
1472
+ remove(node);
1473
+ if (!getParentNode(node)) throw typeErrorCreate("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
1474
+ }
1475
+ };
1476
+ /**
1477
+ * _stripAttributeNode
1478
+ *
1479
+ * Remove a single Attr node case/namespace-exactly on an attribute-teardown
1480
+ * path. Name-based removeAttribute() ASCII-lowercases its lookup key for an
1481
+ * HTML element in an HTML document and so silently misses a case-preserved
1482
+ * handler (e.g. `ONERROR` off an XML/XHTML import) - the same defect
1483
+ * _removeAttribute() was fixed for, which a name-based call would reintroduce
1484
+ * on these IN_PLACE teardown paths. Unlike _removeAttribute this does not
1485
+ * record into DOMPurify.removed: the neutralize passes intentionally do not
1486
+ * book-keep. A clobbered/detached node falls back to best-effort name-based
1487
+ * removal.
1488
+ *
1489
+ * @param element the element to strip the attribute from
1490
+ * @param attribute the Attr node to remove
1491
+ * @param name the attribute's name, for the fallback path
1492
+ */
1493
+ const _stripAttributeNode = function _stripAttributeNode(element, attribute, name) {
1494
+ try {
1495
+ removeAttributeNode(element, attribute);
1496
+ } catch (_) {
1497
+ try {
1498
+ element.removeAttribute(name);
1499
+ } catch (_) {}
1500
+ }
1501
+ };
1502
+ /**
1503
+ * Fail-closed teardown of an in-place root: strip every disallowed attribute
1504
+ * in the subtree first, so nothing armed is left behind, then remove all
1505
+ * children and the root's own attributes.
1506
+ *
1507
+ * @param root the in-place root to empty
1508
+ */
1509
+ const _neutralizeRoot = function _neutralizeRoot(root) {
1510
+ _neutralizeSubtree(root);
1511
+ const childNodes = getChildNodes(root);
1512
+ if (childNodes) arrayForEach(arraySlice(childNodes), (child) => {
1513
+ try {
1514
+ remove(child);
1515
+ } catch (_) {}
1516
+ });
1517
+ const attributes = _readNodeType(root) === NODE_TYPE.element ? getAttributes(root) : null;
1518
+ if (attributes) for (let i = attributes.length - 1; i >= 0; --i) {
1519
+ const attribute = attributes[i];
1520
+ const name = attribute && attribute.name;
1521
+ if (typeof name === "string") _stripAttributeNode(root, attribute, name);
1522
+ }
1523
+ };
1524
+ /**
1525
+ * Removes an attribute, preferably as its exact Attr node: name-based
1526
+ * removal lowercases the name in HTML documents and misses case-preserved
1527
+ * names, e.g. from imported XHTML.
1528
+ *
1529
+ * @param name an Attribute name
1530
+ * @param element a DOM node
1531
+ * @param attr the exact Attr node to remove, when the caller has it
1532
+ */
1533
+ const _removeAttribute = function _removeAttribute(name, element, attr) {
1534
+ if (!attr) try {
1535
+ attr = element.getAttributeNode(name);
1536
+ } catch (_) {
1537
+ attr = null;
1538
+ }
1539
+ arrayPush(DOMPurify.removed, {
1540
+ attribute: attr || null,
1541
+ from: element
1542
+ });
1543
+ try {
1544
+ if (attr) removeAttributeNode(element, attr);
1545
+ else element.removeAttribute(name);
1546
+ } catch (_) {
1547
+ try {
1548
+ element.removeAttribute(name);
1549
+ } catch (_) {}
1550
+ }
1551
+ if (name === "is") {
1552
+ if (RETURN_DOM || RETURN_DOM_FRAGMENT) try {
1553
+ _forceRemove(element);
1554
+ } catch (_) {}
1555
+ else try {
1556
+ element.setAttribute(name, "");
1557
+ } catch (_) {}
1558
+ }
1559
+ };
1560
+ /**
1561
+ * Removes every attribute the configuration does not allow. Used to
1562
+ * neutralize nodes discarded from an in-place tree.
1563
+ *
1564
+ * @param element the element to strip
1565
+ */
1566
+ const _stripDisallowedAttributes = function _stripDisallowedAttributes(element) {
1567
+ const attributes = getAttributes(element);
1568
+ if (!attributes) return;
1569
+ for (let i = attributes.length - 1; i >= 0; --i) {
1570
+ const attribute = attributes[i];
1571
+ const name = attribute && attribute.name;
1572
+ if (typeof name !== "string" || ALLOWED_ATTR[transformCaseFunc(name)]) continue;
1573
+ _stripAttributeNode(element, attribute, name);
1574
+ }
1575
+ };
1576
+ /**
1577
+ * Iterative depth-first walk, so deep trees cannot overflow the call stack,
1578
+ * reading through the cached getters, so clobbering cannot hide children.
1579
+ * When `visit` returns false, the node's children are skipped. With
1580
+ * `intoShadow`, open shadow roots are walked after their host's children.
1581
+ *
1582
+ * @param root where to start
1583
+ * @param visit called for every node
1584
+ * @param intoShadow whether to enter open shadow roots
1585
+ */
1586
+ const _walkTree = function _walkTree(root, visit) {
1587
+ let intoShadow = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
1588
+ const stack = [root];
1589
+ while (stack.length > 0) {
1590
+ const node = stack.pop();
1591
+ if (visit(node) === false) continue;
1592
+ if (intoShadow && _readNodeType(node) === NODE_TYPE.element) {
1593
+ const shadowRoot = getShadowRoot(node);
1594
+ if (_isDocumentFragment(shadowRoot)) stack.push(shadowRoot);
1595
+ }
1596
+ const childNodes = getChildNodes(node);
1597
+ if (childNodes) for (let i = childNodes.length - 1; i >= 0; --i) stack.push(childNodes[i]);
1598
+ }
1599
+ };
1600
+ /**
1601
+ * Strips disallowed attributes from every element of a discarded subtree,
1602
+ * so a handler that is already queued (a loading image) cannot fire.
1603
+ *
1604
+ * @param root the root of a removed subtree
1605
+ */
1606
+ const _neutralizeSubtree = function _neutralizeSubtree(root) {
1607
+ _walkTree(root, (node) => {
1608
+ if (_readNodeType(node) === NODE_TYPE.element) _stripDisallowedAttributes(node);
1609
+ });
1610
+ };
1611
+ /**
1612
+ * All nodes under `root`, root first, including open shadow roots. Template
1613
+ * content is not entered, it is inert.
1614
+ *
1615
+ * @param root the in-place root
1616
+ * @return the nodes
1617
+ */
1618
+ const _collectLiveNodes = function _collectLiveNodes(root) {
1619
+ const nodes = [];
1620
+ _walkTree(root, (node) => {
1621
+ nodes.push(node);
1622
+ }, true);
1623
+ return nodes;
1624
+ };
1625
+ /**
1626
+ * Strips disallowed attributes from every element that was under the
1627
+ * in-place root when the call started and no longer is, whatever removed
1628
+ * or moved it.
1629
+ *
1630
+ * @param root the in-place root
1631
+ * @param before the root's nodes, collected before the walk
1632
+ */
1633
+ const _neutralizeEscapedElements = function _neutralizeEscapedElements(root, before) {
1634
+ const reachable = setCreate();
1635
+ arrayForEach(_collectLiveNodes(root), (node) => {
1636
+ if (_readNodeType(node) === NODE_TYPE.element) setAdd(reachable, node);
1637
+ });
1638
+ arrayForEach(before, (node) => {
1639
+ if (_readNodeType(node) === NODE_TYPE.element && !setHas(reachable, node)) _stripDisallowedAttributes(node);
1640
+ });
1641
+ };
1642
+ /**
1643
+ * Neutralizes everything that left the in-place tree during the call: what
1644
+ * DOMPurify removed, and what hooks or custom elements removed or moved out.
1645
+ *
1646
+ * @param root the in-place root
1647
+ * @param before the root's nodes, collected before the walk
1648
+ * @return true if the root itself was removed
1649
+ */
1650
+ const _neutralizeDiscarded = function _neutralizeDiscarded(root, before) {
1651
+ let rootRemoved = false;
1652
+ arrayForEach(DOMPurify.removed, (entry) => {
1653
+ if (entry.element) {
1654
+ rootRemoved = rootRemoved || entry.element === root;
1655
+ _neutralizeSubtree(entry.element);
1656
+ }
1657
+ });
1658
+ _neutralizeEscapedElements(root, before);
1659
+ return rootRemoved;
1660
+ };
1661
+ const MAX_UNVISITED_ROUNDS = 8;
1662
+ /**
1663
+ * The walk only moves forward, so a node moved to a position it already
1664
+ * passed is never visited. Give every original node that is still in the
1665
+ * tree but unvisited the normal treatment, hooks included. Nodes created
1666
+ * during the call are left alone. Fails closed if the tree keeps changing.
1667
+ *
1668
+ * @param root the in-place root
1669
+ * @param before the root's nodes, collected before the walk
1670
+ */
1671
+ const _sanitizeUnvisitedNodes = function _sanitizeUnvisitedNodes(root, before) {
1672
+ const visited = IN_PLACE_VISITED;
1673
+ let original = null;
1674
+ const getOriginal = () => {
1675
+ if (!original) {
1676
+ original = setCreate();
1677
+ arrayForEach(before, (beforeNode) => {
1678
+ setAdd(original, beforeNode);
1679
+ });
1680
+ }
1681
+ return original;
1682
+ };
1683
+ for (let round = 0;; round++) {
1684
+ const live = _collectLiveNodes(root);
1685
+ const containers = [root];
1686
+ let pending = false;
1687
+ arrayForEach(live, (node) => {
1688
+ if (_readNodeType(node) === NODE_TYPE.documentFragment) arrayPush(containers, node);
1689
+ else if (!pending && !setHas(visited, node)) pending = setHas(getOriginal(), node);
1690
+ });
1691
+ if (!pending) return;
1692
+ if (round >= MAX_UNVISITED_ROUNDS) throw typeErrorCreate("the tree kept changing during in-place sanitization; refusing to return it");
1693
+ arrayForEach(containers, (container, index) => {
1694
+ _sanitizeUnvisitedIn(container, index > 0, root, getOriginal());
1695
+ });
1696
+ }
1697
+ };
1698
+ /**
1699
+ * One _sanitizeUnvisitedNodes pass over the root or an open shadow root.
1700
+ *
1701
+ * @param container the root or an open shadow root
1702
+ * @param inShadow whether container is a shadow root
1703
+ * @param root the in-place root
1704
+ * @param original the root's nodes collected before the walk, as a set
1705
+ */
1706
+ const _sanitizeUnvisitedIn = function _sanitizeUnvisitedIn(container, inShadow, root, original) {
1707
+ const iterator = _createNodeIterator(container);
1708
+ let node;
1709
+ while (node = iterator.nextNode()) {
1710
+ if (!setHas(original, node) || setHas(IN_PLACE_VISITED, node)) continue;
1711
+ if (inShadow) _executeHooks(hooks.uponSanitizeShadowNode, node, null);
1712
+ _sanitizeElements(node, root);
1713
+ _sanitizeAttributes(node, root);
1714
+ if (_isDocumentFragment(node.content)) _sanitizeShadowDOM2(node.content);
1715
+ }
1716
+ };
1717
+ /**
1718
+ * Records that _sanitizeElements processed `node`. No-op outside IN_PLACE.
1719
+ *
1720
+ * @param node the node being processed
1721
+ */
1722
+ const _markVisited = function _markVisited(node) {
1723
+ if (IN_PLACE_VISITED) setAdd(IN_PLACE_VISITED, node);
1724
+ };
1725
+ /**
1726
+ * Patch-linkage attributes (declarative partial updates): `patchsrc`
1727
+ * always, `for` everywhere except on <label> and <output>. Gated on
1728
+ * SAFE_FOR_XML. Shared by the IN_PLACE pre-pass and _isValidAttribute.
1729
+ *
1730
+ * @param lcName the transformCaseFunc'd attribute name
1731
+ * @param lcTag the transformCaseFunc'd tag name of the carrying element
1732
+ * @return true if the attribute is patch linkage and must be dropped
1733
+ */
1734
+ const _isPatchLinkageAttribute = function _isPatchLinkageAttribute(lcName, lcTag) {
1735
+ if (!SAFE_FOR_XML) return false;
1736
+ if (lcName === "patchsrc") return true;
1737
+ return lcName === "for" && lcTag !== "label" && lcTag !== "output";
1738
+ };
1739
+ /**
1740
+ * IN_PLACE pre-pass: sever all patch linkage before the walk, so no patch
1741
+ * can fire mid-walk into a part of the tree the walker already passed.
1742
+ * Removes range markers (processing instructions, comments with markup)
1743
+ * and strips linkage attributes. It cannot undo a patch that already fired.
1744
+ *
1745
+ * TODO: if the shipped feature can patch through `for` on <label>/<output>,
1746
+ * drop that pair here too (see test/declarative-patch-probe.html).
1747
+ *
1748
+ * @param root the in-place root to sweep
1749
+ */
1750
+ const _neutralizePatchLinkage = function _neutralizePatchLinkage(root) {
1751
+ if (!SAFE_FOR_XML) return;
1752
+ _walkTree(root, (node) => {
1753
+ const nodeType = _readNodeType(node);
1754
+ if (nodeType === NODE_TYPE.processingInstruction || nodeType === NODE_TYPE.comment && regExpTest(COMMENT_MARKUP_PROBE, node.data)) {
1755
+ try {
1756
+ remove(node);
1757
+ } catch (_) {}
1758
+ return false;
1759
+ }
1760
+ if (nodeType === NODE_TYPE.element) {
1761
+ const element = node;
1762
+ const lcTag = transformCaseFunc(_readNodeName(node));
1763
+ try {
1764
+ if (element.hasAttribute && element.hasAttribute("patchsrc")) element.removeAttribute("patchsrc");
1765
+ if (element.hasAttribute && element.hasAttribute("for") && _isPatchLinkageAttribute("for", lcTag)) element.removeAttribute("for");
1766
+ } catch (_) {}
1767
+ }
1768
+ return true;
1769
+ });
1770
+ };
1771
+ /**
1772
+ * _initDocument
1773
+ *
1774
+ * @param dirty - a string of dirty markup
1775
+ * @return a DOM, filled with the dirty markup
1776
+ */
1777
+ const _initDocument = function _initDocument(dirty) {
1778
+ let doc = null;
1779
+ let leadingWhitespace = null;
1780
+ if (FORCE_BODY) dirty = "<remove></remove>" + dirty;
1781
+ else {
1782
+ const matches = stringMatch(dirty, /^[\r\n\t ]+/);
1783
+ leadingWhitespace = matches && matches[0];
1784
+ }
1785
+ if (PARSER_MEDIA_TYPE === "application/xhtml+xml" && NAMESPACE === HTML_NAMESPACE) dirty = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + dirty + "</body></html>";
1786
+ const dirtyPayload = trustedTypesPolicy ? _createTrustedHTML(dirty) : dirty;
1787
+ if (NAMESPACE === HTML_NAMESPACE) try {
1788
+ doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);
1789
+ } catch (_) {}
1790
+ if (!doc || !doc.documentElement) {
1791
+ doc = implementation.createDocument(NAMESPACE, "template", null);
1792
+ try {
1793
+ doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;
1794
+ } catch (_) {}
1795
+ }
1796
+ const body = doc.body || doc.documentElement;
1797
+ if (dirty && leadingWhitespace) body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);
1798
+ if (NAMESPACE === HTML_NAMESPACE) return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? "html" : "body")[0];
1799
+ return WHOLE_DOCUMENT ? doc.documentElement : body;
1800
+ };
1801
+ /**
1802
+ * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
1803
+ *
1804
+ * @param root The root element or node to start traversing on.
1805
+ * @return The created NodeIterator
1806
+ */
1807
+ const _createNodeIterator = function _createNodeIterator(root) {
1808
+ const doc = getOwnerDocument ? getOwnerDocument(root) : root.ownerDocument;
1809
+ return createNodeIterator.call(doc || root, root, NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);
1810
+ };
1811
+ /**
1812
+ * Replace template expression syntax (mustache, ERB, template
1813
+ * literal) with a space; shared by all SAFE_FOR_TEMPLATES scrub
1814
+ * sites. Order matters: mustache, then ERB, then template literal.
1815
+ *
1816
+ * @param value the string to scrub
1817
+ * @returns the scrubbed string
1818
+ */
1819
+ const _stripTemplateExpressions = function _stripTemplateExpressions(value) {
1820
+ value = stringReplace(value, MUSTACHE_EXPR$1, " ");
1821
+ value = stringReplace(value, ERB_EXPR$1, " ");
1822
+ value = stringReplace(value, TMPLIT_EXPR$1, " ");
1823
+ return value;
1824
+ };
1825
+ /**
1826
+ * Strip template-engine expressions ({{...}}, ${...}, <%...%>) from the
1827
+ * character data of an element subtree. Used as the final safety net for
1828
+ * SAFE_FOR_TEMPLATES on every DOM-returning code path so that expressions
1829
+ * which only form after text-node normalization (e.g. fragments split across
1830
+ * stripped elements) cannot survive into a template-evaluating framework.
1831
+ *
1832
+ * Walks text/comment/CDATA/processing-instruction nodes and mutates `.data`
1833
+ * in place rather than round-tripping through innerHTML. This preserves
1834
+ * descendant node references (important for IN_PLACE callers), avoids a
1835
+ * serialize/reparse cycle, and reads literal character data — which means
1836
+ * `<%...%>` in text content matches the ERB regex against its real bytes
1837
+ * instead of the HTML-entity-escaped form innerHTML would produce.
1838
+ *
1839
+ * Attribute values are not visited here; SAFE_FOR_TEMPLATES handling for
1840
+ * attributes is performed during the per-node `_sanitizeAttributes` pass.
1841
+ *
1842
+ * @param node The root element whose character data should be scrubbed.
1843
+ */
1844
+ const _scrubTemplateExpressions2 = function _scrubTemplateExpressions(node) {
1845
+ var _node$querySelectorAl;
1846
+ _scrubOwnCharacterData(node);
1847
+ const templates = (_node$querySelectorAl = node.querySelectorAll) === null || _node$querySelectorAl === void 0 ? void 0 : _node$querySelectorAl.call(node, "template");
1848
+ if (templates) arrayForEach(templates, (tmpl) => {
1849
+ if (_isDocumentFragment(tmpl.content)) _scrubTemplateExpressions2(tmpl.content);
1850
+ });
1851
+ };
1852
+ /**
1853
+ * _scrubOwnCharacterData
1854
+ *
1855
+ * Non-recursive core of _scrubTemplateExpressions: normalize `node` and
1856
+ * strip template expressions from its own character data only. Does not
1857
+ * enter <template>.content or attached shadow roots (NodeIterator never
1858
+ * does). Used by _sanitizeShadowDOM, where every nested template content
1859
+ * and shadow root is already walked - and therefore scrubbed - by its own
1860
+ * recursive _sanitizeShadowDOM call; recursing here as well would rescrub
1861
+ * each nested fragment once per ancestor, which is quadratic in nesting
1862
+ * depth.
1863
+ *
1864
+ * @param node The root whose own character data should be scrubbed.
1865
+ */
1866
+ const _scrubOwnCharacterData = function _scrubOwnCharacterData(node) {
1867
+ node.normalize();
1868
+ const doc = getOwnerDocument ? getOwnerDocument(node) : node.ownerDocument;
1869
+ const walker = createNodeIterator.call(doc || node, node, NodeFilter.SHOW_TEXT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_CDATA_SECTION | NodeFilter.SHOW_PROCESSING_INSTRUCTION, null);
1870
+ let currentNode = walker.nextNode();
1871
+ while (currentNode) {
1872
+ currentNode.data = _stripTemplateExpressions(currentNode.data);
1873
+ currentNode = walker.nextNode();
1874
+ }
1875
+ };
1876
+ /**
1877
+ * _isClobbered
1878
+ *
1879
+ * Detect DOM-clobbering on HTMLFormElement nodes. Form is the only HTML
1880
+ * interface with [LegacyOverrideBuiltIns]; a descendant element with a
1881
+ * `name` attribute matching a prototype property shadows that property
1882
+ * on direct reads. We use this check at the IN_PLACE entry-point and
1883
+ * during attribute sanitization to refuse clobbered forms.
1884
+ *
1885
+ * @param element element to check for clobbering attacks
1886
+ * @return true if clobbered, false if safe
1887
+ */
1888
+ const _isClobbered = function _isClobbered(element) {
1889
+ const realTagName = getNodeName ? getNodeName(element) : null;
1890
+ if (typeof realTagName !== "string") return false;
1891
+ if (transformCaseFunc(realTagName) !== "form") return false;
1892
+ return typeof element.nodeName !== "string" || typeof element.textContent !== "string" || typeof element.removeChild !== "function" || element.attributes !== getAttributes(element) || typeof element.removeAttribute !== "function" || typeof element.removeAttributeNode !== "function" || typeof element.getAttributeNode !== "function" || typeof element.setAttribute !== "function" || typeof element.namespaceURI !== "string" || typeof element.insertBefore !== "function" || typeof element.hasChildNodes !== "function" || element.nodeType !== getNodeType(element) || element.childNodes !== getChildNodes(element);
1893
+ };
1894
+ /**
1895
+ * Checks whether the given value is a DocumentFragment from any realm.
1896
+ *
1897
+ * The realm-independent replacement reads `nodeType` through the cached
1898
+ * Node.prototype getter and compares to the DOCUMENT_FRAGMENT_NODE
1899
+ * constant (11). nodeType is a numeric value resolved from the node's
1900
+ * internal slot, identical across realms for the same kind of node.
1901
+ *
1902
+ * @param value object to check
1903
+ * @return true if value is a DocumentFragment-shaped node from any realm
1904
+ */
1905
+ const _isDocumentFragment = function _isDocumentFragment(value) {
1906
+ if (!getNodeType || typeof value !== "object" || value === null) return false;
1907
+ try {
1908
+ return getNodeType(value) === NODE_TYPE.documentFragment;
1909
+ } catch (_) {
1910
+ return false;
1911
+ }
1912
+ };
1913
+ /**
1914
+ * Checks whether the given object is a DOM node, including nodes that
1915
+ * originate from a different window/realm (e.g. an iframe's
1916
+ * contentDocument). The previous `value instanceof Node` check was
1917
+ * realm-bound: nodes from a different window failed it, causing
1918
+ * sanitize() to silently stringify them and reset IN_PLACE to false,
1919
+ * returning the original node unsanitized. See GHSA-4w3q-35jp-p934.
1920
+ *
1921
+ * @param value object to check whether it's a DOM node
1922
+ * @return true if value is a DOM node from any realm
1923
+ */
1924
+ const _isNode = function _isNode(value) {
1925
+ if (!getNodeType || typeof value !== "object" || value === null) return false;
1926
+ try {
1927
+ return typeof getNodeType(value) === "number";
1928
+ } catch (_) {
1929
+ return false;
1930
+ }
1931
+ };
1932
+ function _executeHooks(hooks, currentNode, data) {
1933
+ if (hooks.length === 0) return;
1934
+ arrayForEach(hooks, (hook) => {
1935
+ hook.call(DOMPurify, currentNode, data, CONFIG);
1936
+ });
1937
+ }
1938
+ /**
1939
+ * Structural-threat checks that condemn a node regardless of the
1940
+ * allowlists: mXSS via namespace confusion, risky CSS construction,
1941
+ * processing instructions, markup-bearing comments. Pure predicate;
1942
+ * the caller removes. Check order is load-bearing.
1943
+ *
1944
+ * @param currentNode the node to inspect
1945
+ * @param tagName the node's transformCaseFunc'd tag name
1946
+ * @return true if the node must be removed
1947
+ */
1948
+ const _isUnsafeNode = function _isUnsafeNode(currentNode, tagName) {
1949
+ if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(ELEMENT_MARKUP_PROBE, currentNode.textContent) && regExpTest(ELEMENT_MARKUP_PROBE, currentNode.innerHTML)) return true;
1950
+ if (SAFE_FOR_XML && LITERAL_TEXT_ELEMENTS[tagName] && _readNodeType(currentNode) === NODE_TYPE.element && _readNamespaceURI(currentNode) === HTML_NAMESPACE && (_isNode(currentNode.firstElementChild) || typeof currentNode.textContent === "string" && regExpTest(ELEMENT_MARKUP_PROBE, currentNode.textContent))) return true;
1951
+ if (currentNode.nodeType === NODE_TYPE.processingInstruction) return true;
1952
+ if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(COMMENT_MARKUP_PROBE, currentNode.data)) return true;
1953
+ return false;
1954
+ };
1955
+ /**
1956
+ * Evaluate a CUSTOM_ELEMENT_HANDLING check (a RegExp or a predicate
1957
+ * function, per the validation in _parseConfig) against a name.
1958
+ * Additional arguments are forwarded to predicate functions - the
1959
+ * attributeNameCheck predicate receives the tag name as its second
1960
+ * argument. A null/absent check never matches.
1961
+ *
1962
+ * @param check the configured tagNameCheck / attributeNameCheck value
1963
+ * @param name the name to test
1964
+ * @param args extra arguments forwarded to a predicate function
1965
+ * @return true if the check matches the name
1966
+ */
1967
+ const _matchesNameCheck = function _matchesNameCheck(check, name) {
1968
+ if (check instanceof RegExp) return regExpTest(check, name);
1969
+ if (check instanceof Function) {
1970
+ for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) args[_key - 2] = arguments[_key];
1971
+ return Boolean(check(name, ...args));
1972
+ }
1973
+ return false;
1974
+ };
1975
+ /**
1976
+ * Handle a node whose tag is forbidden or not allowlisted: keep
1977
+ * allowed custom elements (false return exits _sanitizeElements
1978
+ * early - the namespace and fallback-tag removal checks are
1979
+ * intentionally skipped for kept custom elements), else hoist
1980
+ * content per KEEP_CONTENT and remove.
1981
+ *
1982
+ * A kept custom element is the ONLY case in which this function
1983
+ * returns false, so the caller uses that return value to run the
1984
+ * afterSanitizeElements hook on the kept element and keep the
1985
+ * element-hook lifecycle consistent with normal allowlisted
1986
+ * elements (GHSA-c2j3-45gr-mqc4).
1987
+ *
1988
+ * @param currentNode the disallowed node
1989
+ * @param tagName the node's transformCaseFunc'd tag name
1990
+ * @return true if the node was removed, false if kept
1991
+ */
1992
+ const _sanitizeDisallowedNode = function _sanitizeDisallowedNode(currentNode, tagName, root) {
1993
+ if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName) && _matchesNameCheck(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) return false;
1994
+ if (KEEP_CONTENT && !FORBID_CONTENTS[tagName] && !FORBID_CONTENTS[stringToLowerCase(tagName)]) {
1995
+ const parentNode = getParentNode(currentNode);
1996
+ const childNodes = getChildNodes(currentNode);
1997
+ if (childNodes && parentNode) {
1998
+ const childCount = childNodes.length;
1999
+ for (let i = childCount - 1; i >= 0; --i) {
2000
+ const hoisted = currentNode === root ? cloneNode(childNodes[i], true) : childNodes[i];
2001
+ parentNode.insertBefore(hoisted, getNextSibling(currentNode));
2002
+ }
2003
+ }
2004
+ }
2005
+ _forceRemove(currentNode);
2006
+ return true;
2007
+ };
2008
+ /**
2009
+ * Fork a hook-mutable allowlist off its shared binding the first time a
2010
+ * (possibly lazily-installed) uponSanitize* hook is about to see it, so the
2011
+ * hook cannot widen the per-instance default or the setConfig binding by
2012
+ * reference and leak past the call. Returns the set unchanged once it is
2013
+ * already call-local, so repeated calls across elements are idempotent.
2014
+ *
2015
+ * @param hookList the uponSanitize* hook array for this event
2016
+ * @param set the current ALLOWED_TAGS / ALLOWED_ATTR binding
2017
+ * @param defaultSet the per-instance DEFAULT_ALLOWED_* constant
2018
+ * @param setConfigSet the captured setConfig() binding, or null
2019
+ * @return a call-local clone if a hook is present and set is still shared,
2020
+ * else set unchanged
2021
+ */
2022
+ const _forkSharedAllowlist = function _forkSharedAllowlist(hookList, set, defaultSet, setConfigSet) {
2023
+ if (hookList.length === 0) return set;
2024
+ return set === defaultSet || set === setConfigSet ? clone(set) : set;
2025
+ };
2026
+ /**
2027
+ * A hook may have detached the node it was called for. If so, treat it as
2028
+ * removed and stop processing it; the walk root is exempt. On the IN_PLACE
2029
+ * path the detached subtree is neutralized right away.
2030
+ *
2031
+ * @param currentNode the node a hook may have detached
2032
+ * @param root the current walk root
2033
+ * @return true if the node was detached
2034
+ */
2035
+ const _handleHookDetachedNode = function _handleHookDetachedNode(currentNode, root) {
2036
+ if (currentNode === root || getParentNode(currentNode) !== null) return false;
2037
+ if (IN_PLACE) _neutralizeSubtree(currentNode);
2038
+ return true;
2039
+ };
2040
+ /**
2041
+ * _sanitizeElements
2042
+ *
2043
+ * @protect nodeName
2044
+ * @protect textContent
2045
+ * @protect removeChild
2046
+ * @param currentNode to check for permission to exist
2047
+ * @return true if node was killed, false if left alive
2048
+ */
2049
+ const _sanitizeElements = function _sanitizeElements(currentNode, root) {
2050
+ _markVisited(currentNode);
2051
+ _executeHooks(hooks.beforeSanitizeElements, currentNode, null);
2052
+ if (_handleHookDetachedNode(currentNode, root)) return true;
2053
+ if (_isClobbered(currentNode)) {
2054
+ _forceRemove(currentNode);
2055
+ return true;
2056
+ }
2057
+ const tagName = transformCaseFunc(_readNodeName(currentNode));
2058
+ ALLOWED_TAGS = _forkSharedAllowlist(hooks.uponSanitizeElement, ALLOWED_TAGS, DEFAULT_ALLOWED_TAGS, SET_CONFIG_ALLOWED_TAGS);
2059
+ _executeHooks(hooks.uponSanitizeElement, currentNode, {
2060
+ tagName,
2061
+ allowedTags: ALLOWED_TAGS
2062
+ });
2063
+ if (_handleHookDetachedNode(currentNode, root)) return true;
2064
+ if (_isUnsafeNode(currentNode, tagName)) {
2065
+ _forceRemove(currentNode);
2066
+ return true;
2067
+ }
2068
+ if (FORBID_TAGS[tagName] || !(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && !ALLOWED_TAGS[tagName]) {
2069
+ const removed = _sanitizeDisallowedNode(currentNode, tagName, root);
2070
+ if (removed === false) {
2071
+ _executeHooks(hooks.afterSanitizeElements, currentNode, null);
2072
+ if (_handleHookDetachedNode(currentNode, root)) return true;
2073
+ }
2074
+ return removed;
2075
+ }
2076
+ if (_readNodeType(currentNode) === NODE_TYPE.element && !_checkValidNamespace(currentNode)) {
2077
+ _forceRemove(currentNode);
2078
+ return true;
2079
+ }
2080
+ if ((tagName === "noscript" || tagName === "noembed" || tagName === "noframes") && regExpTest(FALLBACK_TAG_CLOSE, currentNode.innerHTML)) {
2081
+ _forceRemove(currentNode);
2082
+ return true;
2083
+ }
2084
+ if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) {
2085
+ const content = _stripTemplateExpressions(currentNode.textContent);
2086
+ if (currentNode.textContent !== content) {
2087
+ arrayPush(DOMPurify.removed, { element: currentNode.cloneNode() });
2088
+ currentNode.textContent = content;
2089
+ }
2090
+ }
2091
+ _executeHooks(hooks.afterSanitizeElements, currentNode, null);
2092
+ return _handleHookDetachedNode(currentNode, root);
2093
+ };
2094
+ /**
2095
+ * _isValidAttribute
2096
+ *
2097
+ * @param lcTag Lowercase tag name of containing element.
2098
+ * @param lcName Lowercase attribute name.
2099
+ * @param value Attribute value.
2100
+ * @return Returns true if `value` is valid, otherwise false.
2101
+ */
2102
+ const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {
2103
+ if (FORBID_ATTR[lcName]) return false;
2104
+ if (_isPatchLinkageAttribute(lcName, lcTag)) return false;
2105
+ if (SANITIZE_DOM && (lcName === "id" || lcName === "name") && (value in document || value in formElement)) return false;
2106
+ const nameIsPermitted = ALLOWED_ATTR[lcName] || EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag);
2107
+ if (ALLOW_DATA_ATTR && regExpTest(DATA_ATTR$1, lcName)) return true;
2108
+ if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR$1, lcName)) return true;
2109
+ if (!nameIsPermitted) return _isBasicCustomElement(lcTag) && _matchesNameCheck(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) && _matchesNameCheck(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName, lcTag) || lcName === "is" && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && _matchesNameCheck(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value);
2110
+ if (URI_SAFE_ATTRIBUTES[lcName]) return true;
2111
+ if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE$1, ""))) return true;
2112
+ if ((lcName === "src" || lcName === "xlink:href" || lcName === "href") && lcTag !== "script" && stringIndexOf(value, "data:") === 0 && DATA_URI_TAGS[lcTag]) return true;
2113
+ if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA$1, stringReplace(value, ATTR_WHITESPACE$1, ""))) return true;
2114
+ return !value;
2115
+ };
2116
+ const RESERVED_CUSTOM_ELEMENT_NAMES = addToSet({}, [
2117
+ "annotation-xml",
2118
+ "color-profile",
2119
+ "font-face",
2120
+ "font-face-format",
2121
+ "font-face-name",
2122
+ "font-face-src",
2123
+ "font-face-uri",
2124
+ "missing-glyph"
2125
+ ]);
2126
+ /**
2127
+ * _isBasicCustomElement
2128
+ * checks if at least one dash is included in tagName, and it's not the first char
2129
+ * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name
2130
+ *
2131
+ * @param tagName name of the tag of the node to sanitize
2132
+ * @returns Returns true if the tag name meets the basic criteria for a custom element, otherwise false.
2133
+ */
2134
+ const _isBasicCustomElement = function _isBasicCustomElement(tagName) {
2135
+ return !RESERVED_CUSTOM_ELEMENT_NAMES[stringToLowerCase(tagName)] && regExpTest(CUSTOM_ELEMENT$1, tagName);
2136
+ };
2137
+ /**
2138
+ * Wrap an attribute value in the matching Trusted Types object when
2139
+ * the active policy requires it. Namespaced attributes pass through
2140
+ * unchanged (no TT support yet, see
2141
+ * https://bugs.chromium.org/p/chromium/issues/detail?id=1305293).
2142
+ *
2143
+ * @param lcTag lowercase tag name of the containing element
2144
+ * @param lcName lowercase attribute name
2145
+ * @param namespaceURI the attribute's namespace, if any
2146
+ * @param value the attribute value to wrap
2147
+ * @return the value, wrapped when Trusted Types demand it
2148
+ */
2149
+ const _applyTrustedTypesToAttribute = function _applyTrustedTypesToAttribute(lcTag, lcName, namespaceURI, value) {
2150
+ if (trustedTypesPolicy && typeof trustedTypes === "object" && typeof trustedTypes.getAttributeType === "function" && !namespaceURI) switch (trustedTypes.getAttributeType(lcTag, lcName)) {
2151
+ case "TrustedHTML": return _createTrustedHTML(value);
2152
+ case "TrustedScriptURL": return _createTrustedScriptURL(value);
2153
+ }
2154
+ return value;
2155
+ };
2156
+ /**
2157
+ * Write a modified attribute value back onto the element. On
2158
+ * success, re-probe for clobbering introduced by the new value and
2159
+ * remove the element when found; otherwise, when this writeback is the
2160
+ * recreate half of the SANITIZE_NAMED_PROPS remove-and-recreate, pop the
2161
+ * removal entry that path recorded so it does not show as removed. On
2162
+ * failure, remove the attribute instead.
2163
+ *
2164
+ * Returns true only on a clean write (the value was set and the new value
2165
+ * introduced no clobbering). The caller uses that, together with its own
2166
+ * knowledge of whether this attribute pushed a DOMPurify.removed record, to
2167
+ * decide whether to pop that record. The pop must happen ONLY for the
2168
+ * named-prop remove-and-recreate; popping on any other value change (trim,
2169
+ * template scrubbing, Trusted Types) would consume an unrelated _forceRemove
2170
+ * subtree-cleanup record and let that detached subtree keep a live event
2171
+ * handler through the IN_PLACE neutralization pass (SO-001).
2172
+ *
2173
+ * @param currentNode the element carrying the attribute
2174
+ * @param name the attribute name as present on the element
2175
+ * @param namespaceURI the attribute's namespace, if any
2176
+ * @param value the new attribute value
2177
+ * @return true if the value was written without introducing clobbering
2178
+ */
2179
+ const _setAttributeValue = function _setAttributeValue(currentNode, name, namespaceURI, value) {
2180
+ try {
2181
+ if (namespaceURI) currentNode.setAttributeNS(namespaceURI, name, value);
2182
+ else currentNode.setAttribute(name, value);
2183
+ if (_isClobbered(currentNode)) {
2184
+ _forceRemove(currentNode);
2185
+ return false;
2186
+ }
2187
+ return true;
2188
+ } catch (_) {
2189
+ _removeAttribute(name, currentNode);
2190
+ return false;
2191
+ }
2192
+ };
2193
+ /**
2194
+ * _isUnsafeAttributeValue
2195
+ *
2196
+ * Value-based attribute checks that the attribute walk applies before any
2197
+ * hook can force-keep an attribute, shared with the public
2198
+ * isValidAttribute() so that it never approves a value sanitize() would
2199
+ * strip.
2200
+ *
2201
+ * @param name the attribute name as found on the node (case preserved)
2202
+ * @param value the attribute value
2203
+ * @returns true if the attribute must be removed because of its value
2204
+ */
2205
+ const _isUnsafeAttributeValue = function _isUnsafeAttributeValue(name, value) {
2206
+ if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, value)) return true;
2207
+ return stringToLowerCase(name) === "attributename" && stringMatch(value, "href") !== null;
2208
+ };
2209
+ /**
2210
+ * _sanitizeAttributes
2211
+ *
2212
+ * @protect attributes
2213
+ * @protect nodeName
2214
+ * @protect removeAttribute
2215
+ * @protect setAttribute
2216
+ *
2217
+ * @param currentNode to sanitize
2218
+ * @param root the current walk root
2219
+ */
2220
+ const _sanitizeAttributes = function _sanitizeAttributes(currentNode, root) {
2221
+ _executeHooks(hooks.beforeSanitizeAttributes, currentNode, null);
2222
+ if (_handleHookDetachedNode(currentNode, root)) return;
2223
+ const attributes = currentNode.attributes;
2224
+ if (!attributes || _isClobbered(currentNode)) return;
2225
+ ALLOWED_ATTR = _forkSharedAllowlist(hooks.uponSanitizeAttribute, ALLOWED_ATTR, DEFAULT_ALLOWED_ATTR, SET_CONFIG_ALLOWED_ATTR);
2226
+ const hookEvent = {
2227
+ attrName: "",
2228
+ attrValue: "",
2229
+ keepAttr: true,
2230
+ allowedAttributes: ALLOWED_ATTR,
2231
+ forceKeepAttr: void 0
2232
+ };
2233
+ let l = attributes.length;
2234
+ const lcTag = transformCaseFunc(currentNode.nodeName);
2235
+ while (l--) {
2236
+ const attr = attributes[l];
2237
+ const name = attr.name, namespaceURI = attr.namespaceURI, attrValue = attr.value;
2238
+ const lcName = transformCaseFunc(name);
2239
+ const initValue = attrValue;
2240
+ let value = name === "value" ? initValue : stringTrim(initValue);
2241
+ let recreatedNamedProp = false;
2242
+ hookEvent.attrName = lcName;
2243
+ hookEvent.attrValue = value;
2244
+ hookEvent.keepAttr = true;
2245
+ hookEvent.forceKeepAttr = void 0;
2246
+ _executeHooks(hooks.uponSanitizeAttribute, currentNode, hookEvent);
2247
+ value = hookEvent.attrValue;
2248
+ if (SANITIZE_NAMED_PROPS && (lcName === "id" || lcName === "name") && stringIndexOf(value, SANITIZE_NAMED_PROPS_PREFIX) !== 0) {
2249
+ _removeAttribute(name, currentNode, attr);
2250
+ value = SANITIZE_NAMED_PROPS_PREFIX + value;
2251
+ recreatedNamedProp = true;
2252
+ }
2253
+ if (_isUnsafeAttributeValue(name, value)) {
2254
+ _removeAttribute(name, currentNode, attr);
2255
+ continue;
2256
+ }
2257
+ if (hookEvent.forceKeepAttr) continue;
2258
+ if (!hookEvent.keepAttr) {
2259
+ _removeAttribute(name, currentNode, attr);
2260
+ continue;
2261
+ }
2262
+ if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(SELF_CLOSING_TAG, value)) {
2263
+ _removeAttribute(name, currentNode, attr);
2264
+ continue;
2265
+ }
2266
+ if (SAFE_FOR_TEMPLATES) value = _stripTemplateExpressions(value);
2267
+ if (!_isValidAttribute(lcTag, lcName, value)) {
2268
+ _removeAttribute(name, currentNode, attr);
2269
+ continue;
2270
+ }
2271
+ value = _applyTrustedTypesToAttribute(lcTag, lcName, namespaceURI, value);
2272
+ if (value !== initValue) {
2273
+ if (_setAttributeValue(currentNode, name, namespaceURI, value) && recreatedNamedProp) arrayPop(DOMPurify.removed);
2274
+ }
2275
+ }
2276
+ _executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
2277
+ _handleHookDetachedNode(currentNode, root);
2278
+ };
2279
+ /**
2280
+ * _sanitizeShadowDOM
2281
+ *
2282
+ * @param fragment to iterate over recursively
2283
+ */
2284
+ const _sanitizeShadowDOM2 = function _sanitizeShadowDOM(fragment) {
2285
+ let shadowNode = null;
2286
+ const shadowIterator = _createNodeIterator(fragment);
2287
+ _executeHooks(hooks.beforeSanitizeShadowDOM, fragment, null);
2288
+ while (shadowNode = shadowIterator.nextNode()) {
2289
+ _executeHooks(hooks.uponSanitizeShadowNode, shadowNode, null);
2290
+ _sanitizeElements(shadowNode, fragment);
2291
+ _sanitizeAttributes(shadowNode, fragment);
2292
+ if (_isDocumentFragment(shadowNode.content)) _sanitizeShadowDOM2(shadowNode.content);
2293
+ if (_readNodeType(shadowNode) === NODE_TYPE.element) {
2294
+ const innerSr = getShadowRoot(shadowNode);
2295
+ if (_isDocumentFragment(innerSr)) {
2296
+ _sanitizeAttachedShadowRoots(innerSr);
2297
+ _sanitizeShadowDOM2(innerSr);
2298
+ }
2299
+ }
2300
+ }
2301
+ if (SAFE_FOR_TEMPLATES) _scrubOwnCharacterData(fragment);
2302
+ _executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);
2303
+ };
2304
+ /**
2305
+ * Sanitizes every attached shadow root under `root`, since the node
2306
+ * iterator does not enter shadow trees. Needed for IN_PLACE input and for
2307
+ * DOM input whose clonable shadow roots were copied by importNode().
2308
+ *
2309
+ * @param root the subtree root to walk for attached shadow roots
2310
+ */
2311
+ const _sanitizeAttachedShadowRoots = function _sanitizeAttachedShadowRoots(root) {
2312
+ const stack = [{
2313
+ node: root,
2314
+ shadow: null
2315
+ }];
2316
+ while (stack.length > 0) {
2317
+ const item = stack.pop();
2318
+ if (item.shadow) {
2319
+ _sanitizeShadowDOM2(item.shadow);
2320
+ continue;
2321
+ }
2322
+ const node = item.node;
2323
+ const isElement = _readNodeType(node) === NODE_TYPE.element;
2324
+ const childNodes = getChildNodes(node);
2325
+ if (childNodes) for (let i = childNodes.length - 1; i >= 0; --i) stack.push({
2326
+ node: childNodes[i],
2327
+ shadow: null
2328
+ });
2329
+ if (isElement) {
2330
+ const rootName = getNodeName ? getNodeName(node) : null;
2331
+ if (typeof rootName === "string" && transformCaseFunc(rootName) === "template") {
2332
+ const content = node.content;
2333
+ if (_isDocumentFragment(content)) stack.push({
2334
+ node: content,
2335
+ shadow: null
2336
+ });
2337
+ }
2338
+ }
2339
+ if (isElement) {
2340
+ const sr = getShadowRoot(node);
2341
+ if (_isDocumentFragment(sr)) stack.push({
2342
+ node: null,
2343
+ shadow: sr
2344
+ }, {
2345
+ node: sr,
2346
+ shadow: null
2347
+ });
2348
+ }
2349
+ }
2350
+ };
2351
+ DOMPurify.sanitize = function(dirty) {
2352
+ let cfg = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2353
+ let body = null;
2354
+ let importedNode = null;
2355
+ let currentNode = null;
2356
+ let returnNode = null;
2357
+ IS_EMPTY_INPUT = !dirty;
2358
+ if (IS_EMPTY_INPUT) dirty = "<!-->";
2359
+ if (typeof dirty !== "string" && !_isNode(dirty)) {
2360
+ dirty = stringifyValue(dirty);
2361
+ if (typeof dirty !== "string") throw typeErrorCreate("dirty is not a string, aborting");
2362
+ }
2363
+ if (!DOMPurify.isSupported) return dirty;
2364
+ if (SET_CONFIG) {
2365
+ ALLOWED_TAGS = SET_CONFIG_ALLOWED_TAGS;
2366
+ ALLOWED_ATTR = SET_CONFIG_ALLOWED_ATTR;
2367
+ } else _parseConfig(cfg);
2368
+ if (hooks.uponSanitizeElement.length > 0 || hooks.uponSanitizeAttribute.length > 0) ALLOWED_TAGS = clone(ALLOWED_TAGS);
2369
+ if (hooks.uponSanitizeAttribute.length > 0) ALLOWED_ATTR = clone(ALLOWED_ATTR);
2370
+ DOMPurify.removed = [];
2371
+ const inPlace = IN_PLACE && typeof dirty !== "string" && _isNode(dirty);
2372
+ let inPlaceNodes = [];
2373
+ const outerVisited = IN_PLACE_VISITED;
2374
+ if (inPlace) {
2375
+ _neutralizePatchLinkage(dirty);
2376
+ const nn = _readNodeName(dirty);
2377
+ if (typeof nn === "string") {
2378
+ const tagName = transformCaseFunc(nn);
2379
+ if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
2380
+ _neutralizeRoot(dirty);
2381
+ throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
2382
+ }
2383
+ }
2384
+ if (_isClobbered(dirty)) {
2385
+ _neutralizeRoot(dirty);
2386
+ throw typeErrorCreate("root node is clobbered and cannot be sanitized in-place");
2387
+ }
2388
+ inPlaceNodes = _collectLiveNodes(dirty);
2389
+ IN_PLACE_VISITED = setCreate();
2390
+ } else if (_isNode(dirty)) {
2391
+ body = _initDocument("<!---->");
2392
+ importedNode = body.ownerDocument.importNode(dirty, true);
2393
+ if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === "BODY") body = importedNode;
2394
+ else if (importedNode.nodeName === "HTML") body = importedNode;
2395
+ else body.appendChild(importedNode);
2396
+ _sanitizeAttachedShadowRoots(body);
2397
+ } else {
2398
+ if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT && dirty.indexOf("<") === -1) return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? _createTrustedHTML(dirty) : dirty;
2399
+ body = _initDocument(dirty);
2400
+ if (!body) return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : "";
2401
+ }
2402
+ if (body && FORCE_BODY) _forceRemove(body.firstChild);
2403
+ const walkRoot = inPlace ? dirty : body;
2404
+ try {
2405
+ if (inPlace) _sanitizeAttachedShadowRoots(dirty);
2406
+ const nodeIterator = _createNodeIterator(walkRoot);
2407
+ while (currentNode = nodeIterator.nextNode()) {
2408
+ _sanitizeElements(currentNode, walkRoot);
2409
+ _sanitizeAttributes(currentNode, walkRoot);
2410
+ if (_isDocumentFragment(currentNode.content)) _sanitizeShadowDOM2(currentNode.content);
2411
+ }
2412
+ if (inPlace) _sanitizeUnvisitedNodes(dirty, inPlaceNodes);
2413
+ } catch (error) {
2414
+ if (inPlace) {
2415
+ _neutralizeRoot(dirty);
2416
+ _neutralizeDiscarded(dirty, inPlaceNodes);
2417
+ }
2418
+ throw error;
2419
+ } finally {
2420
+ IN_PLACE_VISITED = outerVisited;
2421
+ }
2422
+ if (inPlace) {
2423
+ if (_neutralizeDiscarded(dirty, inPlaceNodes)) throw typeErrorCreate("a node selected for removal could not be safely returned; refusing to sanitize in place");
2424
+ if (SAFE_FOR_TEMPLATES) _scrubTemplateExpressions2(dirty);
2425
+ return dirty;
2426
+ }
2427
+ if (RETURN_DOM) {
2428
+ if (SAFE_FOR_TEMPLATES) _scrubTemplateExpressions2(body);
2429
+ if (RETURN_DOM_FRAGMENT) {
2430
+ returnNode = createDocumentFragment.call(body.ownerDocument);
2431
+ while (body.firstChild) returnNode.appendChild(body.firstChild);
2432
+ } else returnNode = body;
2433
+ if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) returnNode = importNode.call(originalDocument, returnNode, true);
2434
+ return returnNode;
2435
+ }
2436
+ let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;
2437
+ if (WHOLE_DOCUMENT && ALLOWED_TAGS["!doctype"] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) serializedHTML = "<!DOCTYPE " + body.ownerDocument.doctype.name + ">\n" + serializedHTML;
2438
+ if (SAFE_FOR_TEMPLATES) serializedHTML = _stripTemplateExpressions(serializedHTML);
2439
+ return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? _createTrustedHTML(serializedHTML) : serializedHTML;
2440
+ };
2441
+ DOMPurify.setConfig = function() {
2442
+ let cfg = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2443
+ _parseConfig(cfg);
2444
+ SET_CONFIG = true;
2445
+ SET_CONFIG_ALLOWED_TAGS = ALLOWED_TAGS;
2446
+ SET_CONFIG_ALLOWED_ATTR = ALLOWED_ATTR;
2447
+ };
2448
+ DOMPurify.clearConfig = function() {
2449
+ CONFIG = null;
2450
+ SET_CONFIG = false;
2451
+ SET_CONFIG_ALLOWED_TAGS = null;
2452
+ SET_CONFIG_ALLOWED_ATTR = null;
2453
+ trustedTypesPolicy = defaultTrustedTypesPolicy;
2454
+ emptyHTML = "";
2455
+ };
2456
+ DOMPurify.isValidAttribute = function(tag, attr, value) {
2457
+ if (!CONFIG) _parseConfig({});
2458
+ const lcTag = transformCaseFunc(tag);
2459
+ const lcName = transformCaseFunc(attr);
2460
+ if (typeof value === "string" && (_isUnsafeAttributeValue(attr, value) || !ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(SELF_CLOSING_TAG, value))) return false;
2461
+ return _isValidAttribute(lcTag, lcName, value);
2462
+ };
2463
+ DOMPurify.addHook = function(entryPoint, hookFunction) {
2464
+ if (typeof hookFunction !== "function") return;
2465
+ if (!objectHasOwnProperty(hooks, entryPoint)) return;
2466
+ arrayPush(hooks[entryPoint], hookFunction);
2467
+ };
2468
+ DOMPurify.removeHook = function(entryPoint, hookFunction) {
2469
+ if (!objectHasOwnProperty(hooks, entryPoint)) return;
2470
+ if (hookFunction !== void 0) {
2471
+ const index = arrayLastIndexOf(hooks[entryPoint], hookFunction);
2472
+ return index === -1 ? void 0 : arraySplice(hooks[entryPoint], index, 1)[0];
2473
+ }
2474
+ return arrayPop(hooks[entryPoint]);
2475
+ };
2476
+ DOMPurify.removeHooks = function(entryPoint) {
2477
+ if (!objectHasOwnProperty(hooks, entryPoint)) return;
2478
+ hooks[entryPoint] = [];
2479
+ };
2480
+ DOMPurify.removeAllHooks = function() {
2481
+ hooks = _createHooksMap();
2482
+ };
2483
+ return DOMPurify;
2484
+ }
2485
+ var purify_default = createDOMPurify();
2486
+
2487
+ /**
2488
+ * marked v16.4.2 - a markdown parser
2489
+ * Copyright (c) 2018-2025, MarkedJS. (MIT License)
2490
+ * Copyright (c) 2011-2018, Christopher Jeffrey. (MIT License)
2491
+ * https://github.com/markedjs/marked
2492
+ */
2493
+
2494
+ /**
2495
+ * DO NOT EDIT THIS FILE
2496
+ * The code in this file is generated from files in ./src/
2497
+ */
2498
+
2499
+ function L(){return {async:false,breaks:false,extensions:null,gfm:true,hooks:null,pedantic:false,renderer:null,silent:false,tokenizer:null,walkTokens:null}}var T=L();function G(l){T=l;}var E={exec:()=>null};function d(l,e=""){let t=typeof l=="string"?l:l.source,n={replace:(r,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(m.caret,"$1"),t=t.replace(r,s),n},getRegex:()=>new RegExp(t,e)};return n}var be=(()=>{try{return !!new RegExp("(?<=1)(?<!1)")}catch{return false}})(),m={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:l=>new RegExp(`^( {0,3}${l})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:l=>new RegExp(`^ {0,${Math.min(3,l-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:l=>new RegExp(`^ {0,${Math.min(3,l-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:l=>new RegExp(`^ {0,${Math.min(3,l-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:l=>new RegExp(`^ {0,${Math.min(3,l-1)}}#`),htmlBeginRegex:l=>new RegExp(`^ {0,${Math.min(3,l-1)}}<(?:[a-z].*>|!--)`,"i")},Re=/^(?:[ \t]*(?:\n|$))+/,Te=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Oe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,I=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,we=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,F=/(?:[*+-]|\d{1,9}[.)])/,ie=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,oe=d(ie).replace(/bull/g,F).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(),ye=d(ie).replace(/bull/g,F).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(),j=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Pe=/^[^\n]+/,Q=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Se=d(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Q).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),$e=d(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,F).getRegex(),v="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",U=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,_e=d("^ {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",U).replace("tag",v).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ae=d(j).replace("hr",I).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",v).getRegex(),Le=d(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ae).getRegex(),K={blockquote:Le,code:Te,def:Se,fences:Oe,heading:we,hr:I,html:_e,lheading:oe,list:$e,newline:Re,paragraph:ae,table:E,text:Pe},re=d("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",I).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",v).getRegex(),Me={...K,lheading:ye,table:re,paragraph:d(j).replace("hr",I).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",re).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",v).getRegex()},ze={...K,html:d(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",U).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:E,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:d(j).replace("hr",I).replace("heading",` *#{1,6} *[^
2500
+ ]`).replace("lheading",oe).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ae=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ee=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,le=/^( {2,}|\\)\n(?!\s*$)/,Ie=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,D=/[\p{P}\p{S}]/u,W=/[\s\p{P}\p{S}]/u,ue=/[^\s\p{P}\p{S}]/u,Ce=d(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,W).getRegex(),pe=/(?!~)[\p{P}\p{S}]/u,Be=/(?!~)[\s\p{P}\p{S}]/u,qe=/(?:[^\s\p{P}\p{S}]|~)/u,ve=d(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",be?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ce=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,De=d(ce,"u").replace(/punct/g,D).getRegex(),He=d(ce,"u").replace(/punct/g,pe).getRegex(),he="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Ze=d(he,"gu").replace(/notPunctSpace/g,ue).replace(/punctSpace/g,W).replace(/punct/g,D).getRegex(),Ge=d(he,"gu").replace(/notPunctSpace/g,qe).replace(/punctSpace/g,Be).replace(/punct/g,pe).getRegex(),Ne=d("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ue).replace(/punctSpace/g,W).replace(/punct/g,D).getRegex(),Fe=d(/\\(punct)/,"gu").replace(/punct/g,D).getRegex(),je=d(/^<(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(),Qe=d(U).replace("(?:-->|$)","-->").getRegex(),Ue=d("^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",Qe).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),q=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Ke=d(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",q).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),de=d(/^!?\[(label)\]\[(ref)\]/).replace("label",q).replace("ref",Q).getRegex(),ke=d(/^!?\[(ref)\](?:\[\])?/).replace("ref",Q).getRegex(),We=d("reflink|nolink(?!\\()","g").replace("reflink",de).replace("nolink",ke).getRegex(),se=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,X={_backpedal:E,anyPunctuation:Fe,autolink:je,blockSkip:ve,br:le,code:Ee,del:E,emStrongLDelim:De,emStrongRDelimAst:Ze,emStrongRDelimUnd:Ne,escape:Ae,link:Ke,nolink:ke,punctuation:Ce,reflink:de,reflinkSearch:We,tag:Ue,text:Ie,url:E},Xe={...X,link:d(/^!?\[(label)\]\((.*?)\)/).replace("label",q).getRegex(),reflink:d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",q).getRegex()},N={...X,emStrongRDelimAst:Ge,emStrongLDelim:He,url:d(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",se).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:d(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",se).getRegex()},Je={...N,br:d(le).replace("{2,}","*").getRegex(),text:d(N.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},C={normal:K,gfm:Me,pedantic:ze},M={normal:X,gfm:N,breaks:Je,pedantic:Xe};var Ve={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ge=l=>Ve[l];function w(l,e){if(e){if(m.escapeTest.test(l))return l.replace(m.escapeReplace,ge)}else if(m.escapeTestNoEncode.test(l))return l.replace(m.escapeReplaceNoEncode,ge);return l}function J(l){try{l=encodeURI(l).replace(m.percentDecode,"%");}catch{return null}return l}function V(l,e){let t=l.replace(m.findPipe,(i,s,a)=>{let o=false,p=s;for(;--p>=0&&a[p]==="\\";)o=!o;return o?"|":" |"}),n=t.split(m.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(m.slashPipe,"|");return n}function z(l,e,t){let n=l.length;if(n===0)return "";let r=0;for(;r<n;){let i=l.charAt(n-r-1);if(i===e&&true)r++;else break}return l.slice(0,n-r)}function fe(l,e){if(l.indexOf(e[1])===-1)return -1;let t=0;for(let n=0;n<l.length;n++)if(l[n]==="\\")n++;else if(l[n]===e[0])t++;else if(l[n]===e[1]&&(t--,t<0))return n;return t>0?-2:-1}function me(l,e,t,n,r){let i=e.href,s=e.title||null,a=l[1].replace(r.other.outputLinkReplace,"$1");n.state.inLink=true;let o={type:l[0].charAt(0)==="!"?"image":"link",raw:t,href:i,title:s,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=false,o}function Ye(l,e,t){let n=l.match(t.other.indentCodeCompensation);if(n===null)return e;let r=n[1];return e.split(`
2501
+ `).map(i=>{let s=i.match(t.other.beginningSpace);if(s===null)return i;let[a]=s;return a.length>=r.length?i.slice(r.length):i}).join(`
2502
+ `)}var y=class{options;rules;lexer;constructor(e){this.options=e||T;}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return {type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return {type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:z(n,`
2503
+ `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=Ye(n,t[3]||"",this.rules);return {type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=z(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim());}return {type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return {type:"hr",raw:z(t[0],`
2504
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=z(t[0],`
2505
+ `).split(`
2506
+ `),r="",i="",s=[];for(;n.length>0;){let a=false,o=[],p;for(p=0;p<n.length;p++)if(this.rules.other.blockquoteStart.test(n[p]))o.push(n[p]),a=true;else if(!a)o.push(n[p]);else break;n=n.slice(p);let u=o.join(`
2507
+ `),c=u.replace(this.rules.other.blockquoteSetextReplace,`
2508
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
2509
+ ${u}`:u,i=i?`${i}
2510
+ ${c}`:c;let g=this.lexer.state.top;if(this.lexer.state.top=true,this.lexer.blockTokens(c,s,true),this.lexer.state.top=g,n.length===0)break;let h=s.at(-1);if(h?.type==="code")break;if(h?.type==="blockquote"){let R=h,f=R.raw+`
2511
+ `+n.join(`
2512
+ `),O=this.blockquote(f);s[s.length-1]=O,r=r.substring(0,r.length-R.raw.length)+O.raw,i=i.substring(0,i.length-R.text.length)+O.text;break}else if(h?.type==="list"){let R=h,f=R.raw+`
2513
+ `+n.join(`
2514
+ `),O=this.list(f);s[s.length-1]=O,r=r.substring(0,r.length-h.raw.length)+O.raw,i=i.substring(0,i.length-R.raw.length)+O.raw,n=f.substring(s.at(-1).raw.length).split(`
2515
+ `);continue}}return {type:"blockquote",raw:r,tokens:s,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:false,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let s=this.rules.other.listItemRegex(n),a=false;for(;e;){let p=false,u="",c="";if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;u=t[0],e=e.substring(u.length);let g=t[2].split(`
2516
+ `,1)[0].replace(this.rules.other.listReplaceTabs,H=>" ".repeat(3*H.length)),h=e.split(`
2517
+ `,1)[0],R=!g.trim(),f=0;if(this.options.pedantic?(f=2,c=g.trimStart()):R?f=t[1].length+1:(f=t[2].search(this.rules.other.nonSpaceChar),f=f>4?1:f,c=g.slice(f),f+=t[1].length),R&&this.rules.other.blankLine.test(h)&&(u+=h+`
2518
+ `,e=e.substring(h.length+1),p=true),!p){let H=this.rules.other.nextBulletRegex(f),ee=this.rules.other.hrRegex(f),te=this.rules.other.fencesBeginRegex(f),ne=this.rules.other.headingBeginRegex(f),xe=this.rules.other.htmlBeginRegex(f);for(;e;){let Z=e.split(`
2519
+ `,1)[0],A;if(h=Z,this.options.pedantic?(h=h.replace(this.rules.other.listReplaceNesting," "),A=h):A=h.replace(this.rules.other.tabCharGlobal," "),te.test(h)||ne.test(h)||xe.test(h)||H.test(h)||ee.test(h))break;if(A.search(this.rules.other.nonSpaceChar)>=f||!h.trim())c+=`
2520
+ `+A.slice(f);else {if(R||g.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||te.test(g)||ne.test(g)||ee.test(g))break;c+=`
2521
+ `+h;}!R&&!h.trim()&&(R=true),u+=Z+`
2522
+ `,e=e.substring(Z.length+1),g=A.slice(f);}}i.loose||(a?i.loose=true:this.rules.other.doubleBlankLine.test(u)&&(a=true));let O=null,Y;this.options.gfm&&(O=this.rules.other.listIsTask.exec(c),O&&(Y=O[0]!=="[ ] ",c=c.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:u,task:!!O,checked:Y,loose:false,text:c,tokens:[]}),i.raw+=u;}let o=i.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let p=0;p<i.items.length;p++)if(this.lexer.state.top=false,i.items[p].tokens=this.lexer.blockTokens(i.items[p].text,[]),!i.loose){let u=i.items[p].tokens.filter(g=>g.type==="space"),c=u.length>0&&u.some(g=>this.rules.other.anyLine.test(g.raw));i.loose=c;}if(i.loose)for(let p=0;p<i.items.length;p++)i.items[p].loose=true;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return {type:"html",block:true,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return {type:"def",tag:n,raw:t[0],href:r,title:i}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=V(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
2523
+ `):[],s={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let a of r)this.rules.other.tableAlignRight.test(a)?s.align.push("right"):this.rules.other.tableAlignCenter.test(a)?s.align.push("center"):this.rules.other.tableAlignLeft.test(a)?s.align.push("left"):s.align.push(null);for(let a=0;a<n.length;a++)s.header.push({text:n[a],tokens:this.lexer.inline(n[a]),header:true,align:s.align[a]});for(let a of i)s.rows.push(V(a,s.header.length).map((o,p)=>({text:o,tokens:this.lexer.inline(o),header:false,align:s.align[p]})));return s}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return {type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
2524
+ `?t[1].slice(0,-1):t[1];return {type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return {type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return {type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return !this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=true:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=false),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=true:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=false),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:false,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let s=z(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else {let s=fe(t[2],"()");if(s===-2)return;if(s>-1){let o=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,o).trim(),t[3]="";}}let r=t[2],i="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(r);s&&(r=s[1],i=s[3]);}else i=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),me(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=t[r.toLowerCase()];if(!i){let s=n[0].charAt(0);return {type:"text",raw:s,text:s}}return me(n,i,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))return;if(!(r[1]||r[2]||"")||!n||this.rules.inline.punctuation.exec(n)){let s=[...r[0]].length-1,a,o,p=s,u=0,c=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+s);(r=c.exec(t))!=null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(o=[...a].length,r[3]||r[4]){p+=o;continue}else if((r[5]||r[6])&&s%3&&!((s+o)%3)){u+=o;continue}if(p-=o,p>0)continue;o=Math.min(o,o+p+u);let g=[...r[0]][0].length,h=e.slice(0,s+r.index+g+o);if(Math.min(s,o)%2){let f=h.slice(1,-1);return {type:"em",raw:h,text:f,tokens:this.lexer.inlineTokens(f)}}let R=h.slice(2,-2);return {type:"strong",raw:h,text:R,tokens:this.lexer.inlineTokens(R)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&i&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return {type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return {type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,r;if(t[2]==="@")n=t[0],r="mailto:"+n;else {let i;do i=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(i!==t[0]);n=t[0],t[1]==="www."?r="http://"+t[0]:r=t[0];}return {type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return {type:"text",raw:t[0],text:t[0],escaped:n}}}};var x=class l{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||T,this.options.tokenizer=this.options.tokenizer||new y,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:false,inRawBlock:false,top:true};let t={other:m,block:C.normal,inline:M.normal};this.options.pedantic?(t.block=C.pedantic,t.inline=M.pedantic):this.options.gfm&&(t.block=C.gfm,this.options.breaks?t.inline=M.breaks:t.inline=M.gfm),this.tokenizer.rules=t;}static get rules(){return {block:C,inline:M}}static lex(e,t){return new l(t).lex(e)}static lexInline(e,t){return new l(t).inlineTokens(e)}lex(e){e=e.replace(m.carriageReturn,`
2525
+ `),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let n=this.inlineQueue[t];this.inlineTokens(n.src,n.tokens);}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=false){for(this.options.pedantic&&(e=e.replace(m.tabCharGlobal," ").replace(m.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(s=>(r=s.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),true):false))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let s=t.at(-1);r.raw.length===1&&s!==void 0?s.raw+=`
2526
+ `:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let s=t.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
2527
+ `)?"":`
2528
+ `)+r.raw,s.text+=`
2529
+ `+r.text,this.inlineQueue.at(-1).src=s.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let s=t.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
2530
+ `)?"":`
2531
+ `)+r.raw,s.text+=`
2532
+ `+r.raw,this.inlineQueue.at(-1).src=s.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let s=1/0,a=e.slice(1),o;this.options.extensions.startBlock.forEach(p=>{o=p.call({lexer:this},a),typeof o=="number"&&o>=0&&(s=Math.min(s,o));}),s<1/0&&s>=0&&(i=e.substring(0,s+1));}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let s=t.at(-1);n&&s?.type==="paragraph"?(s.raw+=(s.raw.endsWith(`
2533
+ `)?"":`
2534
+ `)+r.raw,s.text+=`
2535
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let s=t.at(-1);s?.type==="text"?(s.raw+=(s.raw.endsWith(`
2536
+ `)?"":`
2537
+ `)+r.raw,s.text+=`
2538
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):t.push(r);continue}if(e){let s="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=true,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,r=null;if(this.tokens.links){let o=Object.keys(this.tokens.links);if(o.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)o.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,r.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)i=r[2]?r[2].length:0,n=n.slice(0,r.index+i)+"["+"a".repeat(r[0].length-i-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let s=false,a="";for(;e;){s||(a=""),s=false;let o;if(this.options.extensions?.inline?.some(u=>(o=u.call({lexer:this},e,t))?(e=e.substring(o.raw.length),t.push(o),true):false))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let u=t.at(-1);o.type==="text"&&u?.type==="text"?(u.raw+=o.raw,u.text+=o.text):t.push(o);continue}if(o=this.tokenizer.emStrong(e,n,a)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.del(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),t.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),t.push(o);continue}let p=e;if(this.options.extensions?.startInline){let u=1/0,c=e.slice(1),g;this.options.extensions.startInline.forEach(h=>{g=h.call({lexer:this},c),typeof g=="number"&&g>=0&&(u=Math.min(u,g));}),u<1/0&&u>=0&&(p=e.substring(0,u+1));}if(o=this.tokenizer.inlineText(p)){e=e.substring(o.raw.length),o.raw.slice(-1)!=="_"&&(a=o.raw.slice(-1)),s=true;let u=t.at(-1);u?.type==="text"?(u.raw+=o.raw,u.text+=o.text):t.push(o);continue}if(e){let u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return t}};var P=class{options;parser;constructor(e){this.options=e||T;}space(e){return ""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(m.notSpaceStart)?.[0],i=e.replace(m.endingNewline,"")+`
2539
+ `;return r?'<pre><code class="language-'+w(r)+'">'+(n?i:w(i,true))+`</code></pre>
2540
+ `:"<pre><code>"+(n?i:w(i,true))+`</code></pre>
2541
+ `}blockquote({tokens:e}){return `<blockquote>
2542
+ ${this.parser.parse(e)}</blockquote>
2543
+ `}html({text:e}){return e}def(e){return ""}heading({tokens:e,depth:t}){return `<h${t}>${this.parser.parseInline(e)}</h${t}>
2544
+ `}hr(e){return `<hr>
2545
+ `}list(e){let t=e.ordered,n=e.start,r="";for(let a=0;a<e.items.length;a++){let o=e.items[a];r+=this.listitem(o);}let i=t?"ol":"ul",s=t&&n!==1?' start="'+n+'"':"";return "<"+i+s+`>
2546
+ `+r+"</"+i+`>
2547
+ `}listitem(e){let t="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=n+" "+w(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=true)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:true}):t+=n+" ";}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
2548
+ `}checkbox({checked:e}){return "<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return `<p>${this.parser.parseInline(e)}</p>
2549
+ `}table(e){let t="",n="";for(let i=0;i<e.header.length;i++)n+=this.tablecell(e.header[i]);t+=this.tablerow({text:n});let r="";for(let i=0;i<e.rows.length;i++){let s=e.rows[i];n="";for(let a=0;a<s.length;a++)n+=this.tablecell(s[a]);r+=this.tablerow({text:n});}return r&&(r=`<tbody>${r}</tbody>`),`<table>
2550
+ <thead>
2551
+ `+t+`</thead>
2552
+ `+r+`</table>
2553
+ `}tablerow({text:e}){return `<tr>
2554
+ ${e}</tr>
2555
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return (e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
2556
+ `}strong({tokens:e}){return `<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return `<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return `<code>${w(e,true)}</code>`}br(e){return "<br>"}del({tokens:e}){return `<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=J(e);if(i===null)return r;e=i;let s='<a href="'+e+'"';return t&&(s+=' title="'+w(t)+'"'),s+=">"+r+"</a>",s}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=J(e);if(i===null)return w(n);e=i;let s=`<img src="${e}" alt="${n}"`;return t&&(s+=` title="${w(t)}"`),s+=">",s}text(e){return "tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:w(e.text)}};var $=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return ""+e}image({text:e}){return ""+e}br(){return ""}};var b=class l{options;renderer;textRenderer;constructor(e){this.options=e||T,this.options.renderer=this.options.renderer||new P,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new $;}static parse(e,t){return new l(t).parse(e)}static parseInline(e,t){return new l(t).parseInline(e)}parse(e,t=true){let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let a=i,o=this.options.extensions.renderers[a.type].call({parser:this},a);if(o!==false||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(a.type)){n+=o||"";continue}}let s=i;switch(s.type){case "space":{n+=this.renderer.space(s);continue}case "hr":{n+=this.renderer.hr(s);continue}case "heading":{n+=this.renderer.heading(s);continue}case "code":{n+=this.renderer.code(s);continue}case "table":{n+=this.renderer.table(s);continue}case "blockquote":{n+=this.renderer.blockquote(s);continue}case "list":{n+=this.renderer.list(s);continue}case "html":{n+=this.renderer.html(s);continue}case "def":{n+=this.renderer.def(s);continue}case "paragraph":{n+=this.renderer.paragraph(s);continue}case "text":{let a=s,o=this.renderer.text(a);for(;r+1<e.length&&e[r+1].type==="text";)a=e[++r],o+=`
2557
+ `+this.renderer.text(a);t?n+=this.renderer.paragraph({type:"paragraph",raw:o,text:o,tokens:[{type:"text",raw:o,text:o,escaped:true}]}):n+=o;continue}default:{let a='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return n}parseInline(e,t=this.renderer){let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let a=this.options.extensions.renderers[i.type].call({parser:this},i);if(a!==false||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=a||"";continue}}let s=i;switch(s.type){case "escape":{n+=t.text(s);break}case "html":{n+=t.html(s);break}case "link":{n+=t.link(s);break}case "image":{n+=t.image(s);break}case "strong":{n+=t.strong(s);break}case "em":{n+=t.em(s);break}case "codespan":{n+=t.codespan(s);break}case "br":{n+=t.br(s);break}case "del":{n+=t.del(s);break}case "text":{n+=t.text(s);break}default:{let a='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return n}};var S=class{options;block;constructor(e){this.options=e||T;}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?x.lex:x.lexInline}provideParser(){return this.block?b.parse:b.parseInline}};var B=class{defaults=L();options=this.setOptions;parse=this.parseMarkdown(true);parseInline=this.parseMarkdown(false);Parser=b;Renderer=P;TextRenderer=$;Lexer=x;Tokenizer=y;Hooks=S;constructor(...e){this.use(...e);}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case "table":{let i=r;for(let s of i.header)n=n.concat(this.walkTokens(s.tokens,t));for(let s of i.rows)for(let a of s)n=n.concat(this.walkTokens(a.tokens,t));break}case "list":{let i=r;n=n.concat(this.walkTokens(i.items,t));break}default:{let i=r;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(s=>{let a=i[s].flat(1/0);n=n.concat(this.walkTokens(a,t));}):i.tokens&&(n=n.concat(this.walkTokens(i.tokens,t)));}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||false,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let s=t.renderers[i.name];s?t.renderers[i.name]=function(...a){let o=i.renderer.apply(this,a);return o===false&&(o=s.apply(this,a)),o}:t.renderers[i.name]=i.renderer;}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=t[i.level];s?s.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]));}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens);}),r.extensions=t),n.renderer){let i=this.defaults.renderer||new P(this.defaults);for(let s in n.renderer){if(!(s in i))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let a=s,o=n.renderer[a],p=i[a];i[a]=(...u)=>{let c=o.apply(i,u);return c===false&&(c=p.apply(i,u)),c||""};}r.renderer=i;}if(n.tokenizer){let i=this.defaults.tokenizer||new y(this.defaults);for(let s in n.tokenizer){if(!(s in i))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let a=s,o=n.tokenizer[a],p=i[a];i[a]=(...u)=>{let c=o.apply(i,u);return c===false&&(c=p.apply(i,u)),c};}r.tokenizer=i;}if(n.hooks){let i=this.defaults.hooks||new S;for(let s in n.hooks){if(!(s in i))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let a=s,o=n.hooks[a],p=i[a];S.passThroughHooks.has(s)?i[a]=u=>{if(this.defaults.async&&S.passThroughHooksRespectAsync.has(s))return (async()=>{let g=await o.call(i,u);return p.call(i,g)})();let c=o.call(i,u);return p.call(i,c)}:i[a]=(...u)=>{if(this.defaults.async)return (async()=>{let g=await o.apply(i,u);return g===false&&(g=await p.apply(i,u)),g})();let c=o.apply(i,u);return c===false&&(c=p.apply(i,u)),c};}r.hooks=i;}if(n.walkTokens){let i=this.defaults.walkTokens,s=n.walkTokens;r.walkTokens=function(a){let o=[];return o.push(s.call(this,a)),i&&(o=o.concat(i.call(this,a))),o};}this.defaults={...this.defaults,...r};}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return x.lex(e,t??this.defaults)}parser(e,t){return b.parse(e,t??this.defaults)}parseMarkdown(e){return (n,r)=>{let i={...r},s={...this.defaults,...i},a=this.onError(!!s.silent,!!s.async);if(this.defaults.async===true&&i.async===false)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 n>"u"||n===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=e),s.async)return (async()=>{let o=s.hooks?await s.hooks.preprocess(n):n,u=await(s.hooks?await s.hooks.provideLexer():e?x.lex:x.lexInline)(o,s),c=s.hooks?await s.hooks.processAllTokens(u):u;s.walkTokens&&await Promise.all(this.walkTokens(c,s.walkTokens));let h=await(s.hooks?await s.hooks.provideParser():e?b.parse:b.parseInline)(c,s);return s.hooks?await s.hooks.postprocess(h):h})().catch(a);try{s.hooks&&(n=s.hooks.preprocess(n));let p=(s.hooks?s.hooks.provideLexer():e?x.lex:x.lexInline)(n,s);s.hooks&&(p=s.hooks.processAllTokens(p)),s.walkTokens&&this.walkTokens(p,s.walkTokens);let c=(s.hooks?s.hooks.provideParser():e?b.parse:b.parseInline)(p,s);return s.hooks&&(c=s.hooks.postprocess(c)),c}catch(o){return a(o)}}}onError(e,t){return n=>{if(n.message+=`
2558
+ Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+w(n.message+"",true)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}};var _=new B;function k(l,e){return _.parse(l,e)}k.options=k.setOptions=function(l){return _.setOptions(l),k.defaults=_.defaults,G(k.defaults),k};k.getDefaults=L;k.defaults=T;k.use=function(...l){return _.use(...l),k.defaults=_.defaults,G(k.defaults),k};k.walkTokens=function(l,e){return _.walkTokens(l,e)};k.parseInline=_.parseInline;k.Parser=b;k.parser=b.parse;k.Renderer=P;k.TextRenderer=$;k.Lexer=x;k.lexer=x.lex;k.Tokenizer=y;k.Hooks=S;k.parse=k;k.options;k.setOptions;k.use;k.walkTokens;k.parseInline;b.parse;x.lex;
2559
+
2560
+ const cache = /* @__PURE__ */ new Map();
2561
+ const MAX_CACHE = 500;
2562
+ function markdown(text, { docLinks = false } = {}) {
2563
+ const key = `${docLinks ? "d" : "-"}${text}`;
2564
+ let html = cache.get(key);
2565
+ if (html === void 0) {
2566
+ html = purify_default.sanitize(
2567
+ k.parse(text, { async: false, gfm: true, breaks: false })
2568
+ );
2569
+ if (docLinks) html = linkDocPaths(html);
2570
+ html = html.replace(/<a /g, '<a target="_blank" rel="noreferrer" ');
2571
+ if (cache.size > MAX_CACHE) cache.clear();
2572
+ cache.set(key, html);
2573
+ }
2574
+ return html;
2575
+ }
2576
+ function fragment(html) {
2577
+ const t = document.createElement("template");
2578
+ t.innerHTML = html;
2579
+ return t;
2580
+ }
2581
+ function linkDocPaths(html) {
2582
+ const t = fragment(html);
2583
+ const root = t.content;
2584
+ for (const a of root.querySelectorAll("a[href]")) {
2585
+ const p = linkedDocPath(a.getAttribute("href") ?? "");
2586
+ if (p) a.setAttribute("href", docHref(p));
2587
+ }
2588
+ for (const code of root.querySelectorAll("code")) {
2589
+ if (code.closest("pre, a")) continue;
2590
+ const text = (code.textContent ?? "").trim();
2591
+ const [m, ...more] = findDocPaths(text);
2592
+ if (!m || more.length || m.start !== 0 || m.end !== text.length) continue;
2593
+ const a = document.createElement("a");
2594
+ a.setAttribute("href", docHref(m.path));
2595
+ code.replaceWith(a);
2596
+ a.append(code);
2597
+ }
2598
+ const walker = document.createTreeWalker(root, NodeFilter.SHOW_TEXT);
2599
+ const texts = [];
2600
+ while (walker.nextNode()) {
2601
+ const n = walker.currentNode;
2602
+ if (!n.parentElement?.closest("a, pre, code")) texts.push(n);
2603
+ }
2604
+ for (const n of texts) {
2605
+ const runs = splitDocPaths(n.data);
2606
+ if (!runs.some((r) => r.path)) continue;
2607
+ const out = document.createDocumentFragment();
2608
+ for (const r of runs) {
2609
+ if (!r.path) {
2610
+ out.append(r.text);
2611
+ continue;
2612
+ }
2613
+ const a = document.createElement("a");
2614
+ a.setAttribute("href", docHref(r.path));
2615
+ a.textContent = r.text;
2616
+ out.append(a);
2617
+ }
2618
+ n.replaceWith(out);
2619
+ }
2620
+ return t.innerHTML;
2621
+ }
2622
+ new Set(
2623
+ "p h1 h2 h3 h4 h5 h6 ul ol li a img code pre em strong b i u s del ins mark sup sub kbd small br hr blockquote table thead tbody tfoot tr th td caption details summary dl dt dd figure figcaption span div abbr input".split(
2624
+ " "
2625
+ )
2626
+ );
2627
+ new Set(
2628
+ "script style iframe frame frameset object embed noscript template svg math form link meta base title textarea select button video audio source track canvas".split(
2629
+ " "
2630
+ )
2631
+ );
2632
+
2633
+ export { markdown as m };
2634
+ //# sourceMappingURL=markdown.js-CApgGpeX.js.map