plum-e2e 2.9.17 → 2.12.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 (821) hide show
  1. package/.env +1 -1
  2. package/CLAUDE.md +1 -1
  3. package/README.md +7 -7
  4. package/backend/app.js +1 -1
  5. package/backend/constants/socketEvents.js +8 -14
  6. package/backend/lib/csv.js +21 -0
  7. package/backend/lib/exportResponse.js +37 -0
  8. package/backend/lib/serverBootstrap.js +6 -6
  9. package/backend/lib/serverConfig.js +5 -3
  10. package/backend/mcp/server.js +47 -3
  11. package/backend/middleware/runnerOrAdmin.js +1 -1
  12. package/backend/package.json +1 -1
  13. package/backend/prisma/migrations/20260829000000_add_run_queue/migration.sql +29 -0
  14. package/backend/prisma/schema.prisma +30 -0
  15. package/backend/routes/active-runs.routes.js +10 -6
  16. package/backend/routes/node.routes.js +7 -0
  17. package/backend/routes/reports.routes.js +19 -0
  18. package/backend/routes/runners.routes.js +1 -1
  19. package/backend/routes/test-cases.routes.js +12 -0
  20. package/backend/routes/test-runs.routes.js +17 -0
  21. package/backend/routes/test-suites.routes.js +34 -0
  22. package/backend/routes/trigger.routes.js +8 -5
  23. package/backend/scripts/{manage-runners.mjs → manage-nodes.mjs} +67 -52
  24. package/backend/server.js +5 -1
  25. package/backend/services/cronService.js +15 -443
  26. package/backend/services/exportService.js +339 -0
  27. package/backend/services/nodeExecutionService.js +13 -1
  28. package/backend/services/runExecutorService.js +423 -0
  29. package/backend/services/runQueueService.js +276 -0
  30. package/backend/services/runnerService.js +22 -4
  31. package/backend/services/testImportService.js +87 -0
  32. package/backend/services/triggerService.js +13 -231
  33. package/backend/websockets/socketHandler.js +32 -590
  34. package/bin/plum.js +174 -68
  35. package/docker-compose.yml +1 -1
  36. package/frontend/.svelte-kit/adapter-node/.vite/manifest.json +78 -70
  37. package/frontend/.svelte-kit/adapter-node/_app/immutable/assets/BackLink.DRrgBGDC.css +6 -0
  38. package/frontend/.svelte-kit/{output/server/_app/immutable/assets/Toast.DENwYn3g.css → adapter-node/_app/immutable/assets/Button.C1zsJAUG.css} +1 -1
  39. package/frontend/.svelte-kit/adapter-node/_app/immutable/assets/ExportMenu.DsJQ1Qua.css +6 -0
  40. package/frontend/.svelte-kit/adapter-node/_app/immutable/assets/_layout.B4TT3qNx.css +6 -0
  41. package/frontend/.svelte-kit/adapter-node/_app/immutable/assets/_page.4bPj83tb.css +6 -0
  42. package/frontend/.svelte-kit/adapter-node/_app/immutable/assets/_page.Be5c3USL.css +6 -0
  43. package/frontend/.svelte-kit/adapter-node/_app/immutable/assets/_page.BwgtEi_a.css +6 -0
  44. package/frontend/.svelte-kit/adapter-node/_app/immutable/assets/_page.ClS4XkkN.css +6 -0
  45. package/frontend/.svelte-kit/adapter-node/_app/immutable/assets/_page.DOC8fPSI.css +6 -0
  46. package/frontend/.svelte-kit/adapter-node/_app/immutable/assets/_page.Dm1nSEgE.css +6 -0
  47. package/frontend/.svelte-kit/adapter-node/chunks/BackLink.js +1 -1
  48. package/frontend/.svelte-kit/adapter-node/chunks/Badge.js +1 -1
  49. package/frontend/.svelte-kit/adapter-node/chunks/{Toast.js → Button.js} +2 -17
  50. package/frontend/.svelte-kit/adapter-node/chunks/ConfirmModal.js +2 -2
  51. package/frontend/.svelte-kit/adapter-node/chunks/EmptyState.js +2 -2
  52. package/frontend/.svelte-kit/adapter-node/chunks/Modal.js +1 -1
  53. package/frontend/.svelte-kit/adapter-node/chunks/common.js +11 -4
  54. package/frontend/.svelte-kit/adapter-node/chunks/constants.js +6 -4
  55. package/frontend/.svelte-kit/adapter-node/chunks/format.js +3 -3
  56. package/frontend/.svelte-kit/adapter-node/chunks/index.js +4 -4
  57. package/frontend/.svelte-kit/adapter-node/chunks/internal.js +1 -1
  58. package/frontend/.svelte-kit/adapter-node/chunks/reports.js +1 -1
  59. package/frontend/.svelte-kit/adapter-node/chunks/reports2.js +38 -40
  60. package/frontend/.svelte-kit/adapter-node/chunks/repository.js +26 -14
  61. package/frontend/.svelte-kit/adapter-node/chunks/runner.js +10 -20
  62. package/frontend/.svelte-kit/adapter-node/entries/pages/_layout.svelte.js +2 -0
  63. package/frontend/.svelte-kit/adapter-node/entries/pages/live/_id_/_page.svelte.js +254 -0
  64. package/frontend/.svelte-kit/adapter-node/entries/pages/login/_page.svelte.js +1 -1
  65. package/frontend/.svelte-kit/adapter-node/entries/pages/reports/_id_/_page.svelte.js +39 -25
  66. package/frontend/.svelte-kit/adapter-node/entries/pages/reports/_page.svelte.js +23 -19
  67. package/frontend/.svelte-kit/adapter-node/entries/pages/scheduled-tests/_page.svelte.js +5 -8
  68. package/frontend/.svelte-kit/adapter-node/entries/pages/settings/_page.svelte.js +354 -185
  69. package/frontend/.svelte-kit/adapter-node/entries/pages/setup/_page.svelte.js +1 -1
  70. package/frontend/.svelte-kit/adapter-node/entries/pages/test-repository/_page.svelte.js +55 -36
  71. package/frontend/.svelte-kit/adapter-node/entries/pages/test-repository/runs/_id_/_page.svelte.js +4 -7
  72. package/frontend/.svelte-kit/adapter-node/entries/pages/test-repository/suites/_id_/_page.svelte.js +66 -16
  73. package/frontend/.svelte-kit/adapter-node/manifest-full.js +10 -10
  74. package/frontend/.svelte-kit/adapter-node/manifest.js +10 -10
  75. package/frontend/.svelte-kit/adapter-node/nodes/0.js +2 -2
  76. package/frontend/.svelte-kit/adapter-node/nodes/1.js +1 -1
  77. package/frontend/.svelte-kit/adapter-node/nodes/10.js +2 -2
  78. package/frontend/.svelte-kit/adapter-node/nodes/11.js +2 -2
  79. package/frontend/.svelte-kit/adapter-node/nodes/12.js +2 -2
  80. package/frontend/.svelte-kit/adapter-node/nodes/2.js +1 -1
  81. package/frontend/.svelte-kit/adapter-node/nodes/3.js +3 -3
  82. package/frontend/.svelte-kit/adapter-node/nodes/4.js +3 -3
  83. package/frontend/.svelte-kit/adapter-node/nodes/5.js +3 -3
  84. package/frontend/.svelte-kit/adapter-node/nodes/6.js +3 -3
  85. package/frontend/.svelte-kit/adapter-node/nodes/7.js +2 -2
  86. package/frontend/.svelte-kit/adapter-node/nodes/8.js +2 -2
  87. package/frontend/.svelte-kit/adapter-node/nodes/9.js +1 -1
  88. package/frontend/.svelte-kit/ambient.d.ts +28 -28
  89. package/frontend/.svelte-kit/generated/client/app.js +4 -4
  90. package/frontend/.svelte-kit/generated/client/nodes/3.js +1 -1
  91. package/frontend/.svelte-kit/generated/client/nodes/4.js +1 -1
  92. package/frontend/.svelte-kit/generated/client/nodes/5.js +1 -1
  93. package/frontend/.svelte-kit/generated/client/nodes/6.js +1 -1
  94. package/frontend/.svelte-kit/generated/client-optimized/app.js +4 -4
  95. package/frontend/.svelte-kit/generated/client-optimized/nodes/3.js +1 -1
  96. package/frontend/.svelte-kit/generated/client-optimized/nodes/4.js +1 -1
  97. package/frontend/.svelte-kit/generated/client-optimized/nodes/5.js +1 -1
  98. package/frontend/.svelte-kit/generated/client-optimized/nodes/6.js +1 -1
  99. package/frontend/.svelte-kit/generated/server/internal.js +1 -1
  100. package/frontend/.svelte-kit/output/client/.vite/manifest.json +462 -403
  101. package/frontend/.svelte-kit/output/client/_app/immutable/assets/0.BEqlRAtD.css +6 -0
  102. package/frontend/.svelte-kit/output/client/_app/immutable/assets/10.DC0wD6w_.css +6 -0
  103. package/frontend/.svelte-kit/output/client/_app/immutable/assets/12.Dm1nSEgE.css +6 -0
  104. package/frontend/.svelte-kit/output/client/_app/immutable/assets/3.Be5c3USL.css +6 -0
  105. package/frontend/.svelte-kit/output/client/_app/immutable/assets/5.ClS4XkkN.css +6 -0
  106. package/frontend/.svelte-kit/output/client/_app/immutable/assets/6.DdQVxyZK.css +6 -0
  107. package/frontend/.svelte-kit/output/client/_app/immutable/assets/8.DOC8fPSI.css +6 -0
  108. package/frontend/.svelte-kit/output/client/_app/immutable/assets/BackLink.DRrgBGDC.css +6 -0
  109. package/frontend/{build/client/_app/immutable/assets/Toast.DENwYn3g.css → .svelte-kit/output/client/_app/immutable/assets/Button.C1zsJAUG.css} +1 -1
  110. package/frontend/.svelte-kit/output/client/_app/immutable/assets/ExportMenu.DsJQ1Qua.css +6 -0
  111. package/frontend/.svelte-kit/output/client/_app/immutable/assets/_layout.B4TT3qNx.css +6 -0
  112. package/frontend/.svelte-kit/output/client/_app/immutable/assets/_page.4bPj83tb.css +6 -0
  113. package/frontend/.svelte-kit/output/client/_app/immutable/assets/_page.Be5c3USL.css +6 -0
  114. package/frontend/.svelte-kit/output/client/_app/immutable/assets/_page.BwgtEi_a.css +6 -0
  115. package/frontend/.svelte-kit/output/client/_app/immutable/assets/_page.ClS4XkkN.css +6 -0
  116. package/frontend/.svelte-kit/output/client/_app/immutable/assets/_page.DOC8fPSI.css +6 -0
  117. package/frontend/.svelte-kit/output/client/_app/immutable/assets/_page.Dm1nSEgE.css +6 -0
  118. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/3MBVX4Yb.js +175 -0
  119. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/6VDMVB5U.js +6 -0
  120. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/B2lVGNml.js +6 -0
  121. package/frontend/{build/client/_app/immutable/chunks/2zMvi6fR.js → .svelte-kit/output/client/_app/immutable/chunks/BCh31ecr.js} +1 -1
  122. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/BDb8hZHu.js +6 -0
  123. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/BIf7lHIm.js +6 -0
  124. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/BIjh3jiU.js +8 -0
  125. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/BTV7EXZb.js +11 -0
  126. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/{DMZwI8Cj.js → BWGoOYU0.js} +1 -1
  127. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/BdBJfKUi.js +6 -0
  128. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/{t-La0hgu.js → BnXsGCy3.js} +1 -1
  129. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/BtTNggoY.js +8 -0
  130. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/C4Z3p6jE.js +6 -0
  131. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/CNpD-yNH.js +6 -0
  132. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/CUPWZLIN.js +6 -0
  133. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/{C1Vid6wz.js → CXQhSK1T.js} +1 -1
  134. package/frontend/{build/client/_app/immutable/chunks/CKDtmZUQ.js → .svelte-kit/output/client/_app/immutable/chunks/CtgCYzu5.js} +1 -1
  135. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/{C8OURRSs.js → D72giPTu.js} +1 -1
  136. package/frontend/{build/client/_app/immutable/chunks/BmZ9upwL.js → .svelte-kit/output/client/_app/immutable/chunks/DDx3no2z.js} +1 -1
  137. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/D_thT6pZ.js +6 -0
  138. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/DeiVAbyn.js +6 -0
  139. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/DiexacSB.js +6 -0
  140. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/{DDZw0L0T.js → Dlymnwnf.js} +1 -1
  141. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/gCgJ3Cwu.js +6 -0
  142. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/htkwR9b-.js +6 -0
  143. package/frontend/{build/client/_app/immutable/chunks/DCgHuuvs.js → .svelte-kit/output/client/_app/immutable/chunks/iL4SCrvY.js} +1 -1
  144. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/kFFd6Oo5.js +6 -0
  145. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/pNZogwkM.js +6 -0
  146. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/{w0D4Uzlq.js → prk8PJfA.js} +1 -1
  147. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/qvxlSGpD.js +6 -0
  148. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/r_d1Iu0W.js +6 -0
  149. package/frontend/{build/client/_app/immutable/chunks/CNdcuGR0.js → .svelte-kit/output/client/_app/immutable/chunks/tsOANt55.js} +1 -1
  150. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/zXSLr47H.js +6 -0
  151. package/frontend/.svelte-kit/output/client/_app/immutable/entry/app.DgdSwPuN.js +7 -0
  152. package/frontend/{build/client/_app/immutable/entry/start.4qxHHAcl.js → .svelte-kit/output/client/_app/immutable/entry/start.D_lhI48n.js} +1 -1
  153. package/frontend/.svelte-kit/output/client/_app/immutable/nodes/0.D2F-i1I5.js +6 -0
  154. package/frontend/.svelte-kit/output/client/_app/immutable/nodes/{1.Df9sLw8b.js → 1.JIF2GfHq.js} +1 -1
  155. package/frontend/.svelte-kit/output/client/_app/immutable/nodes/10.A0AHLfOt.js +6 -0
  156. package/frontend/.svelte-kit/output/client/_app/immutable/nodes/11.CVSPxlqY.js +6 -0
  157. package/frontend/.svelte-kit/output/client/_app/immutable/nodes/12.CnAR0AQb.js +6 -0
  158. package/frontend/{build/client/_app/immutable/nodes/2.BCPSg7H4.js → .svelte-kit/output/client/_app/immutable/nodes/2.Bno00fr8.js} +1 -1
  159. package/frontend/.svelte-kit/output/client/_app/immutable/nodes/3.B6KwaCsM.js +6 -0
  160. package/frontend/{build/client/_app/immutable/nodes/3.8BFAJoHT.js → .svelte-kit/output/client/_app/immutable/nodes/4.BX70m3v6.js} +1 -1
  161. package/frontend/.svelte-kit/output/client/_app/immutable/nodes/5.UIFh06yr.js +6 -0
  162. package/frontend/.svelte-kit/output/client/_app/immutable/nodes/6.DZ1OV24V.js +10 -0
  163. package/frontend/.svelte-kit/output/client/_app/immutable/nodes/7.B_XntBZ1.js +6 -0
  164. package/frontend/.svelte-kit/output/client/_app/immutable/nodes/8.CVHgJw-E.js +9 -0
  165. package/frontend/.svelte-kit/output/client/_app/immutable/nodes/{9.CvfGx3Hu.js → 9.DDDQPmMj.js} +1 -1
  166. package/frontend/.svelte-kit/output/client/_app/version.json +1 -1
  167. package/frontend/.svelte-kit/output/server/.vite/manifest.json +78 -70
  168. package/frontend/.svelte-kit/output/server/_app/immutable/assets/BackLink.DRrgBGDC.css +6 -0
  169. package/frontend/.svelte-kit/output/{client/_app/immutable/assets/Toast.DENwYn3g.css → server/_app/immutable/assets/Button.C1zsJAUG.css} +1 -1
  170. package/frontend/.svelte-kit/output/server/_app/immutable/assets/ExportMenu.DsJQ1Qua.css +6 -0
  171. package/frontend/.svelte-kit/output/server/_app/immutable/assets/_layout.B4TT3qNx.css +6 -0
  172. package/frontend/.svelte-kit/output/server/_app/immutable/assets/_page.4bPj83tb.css +6 -0
  173. package/frontend/.svelte-kit/output/server/_app/immutable/assets/_page.Be5c3USL.css +6 -0
  174. package/frontend/.svelte-kit/output/server/_app/immutable/assets/_page.BwgtEi_a.css +6 -0
  175. package/frontend/.svelte-kit/output/server/_app/immutable/assets/_page.ClS4XkkN.css +6 -0
  176. package/frontend/.svelte-kit/output/server/_app/immutable/assets/_page.DOC8fPSI.css +6 -0
  177. package/frontend/.svelte-kit/output/server/_app/immutable/assets/_page.Dm1nSEgE.css +6 -0
  178. package/frontend/.svelte-kit/output/server/chunks/BackLink.js +1 -1
  179. package/frontend/.svelte-kit/output/server/chunks/Badge.js +1 -1
  180. package/frontend/.svelte-kit/output/server/chunks/{Toast.js → Button.js} +2 -17
  181. package/frontend/.svelte-kit/output/server/chunks/ConfirmModal.js +2 -2
  182. package/frontend/.svelte-kit/output/server/chunks/EmptyState.js +2 -2
  183. package/frontend/.svelte-kit/output/server/chunks/Modal.js +1 -1
  184. package/frontend/.svelte-kit/output/server/chunks/common.js +11 -4
  185. package/frontend/.svelte-kit/output/server/chunks/constants.js +6 -4
  186. package/frontend/.svelte-kit/output/server/chunks/format.js +3 -3
  187. package/frontend/.svelte-kit/output/server/chunks/index.js +4 -4
  188. package/frontend/.svelte-kit/output/server/chunks/internal.js +1 -1
  189. package/frontend/.svelte-kit/output/server/chunks/reports.js +1 -1
  190. package/frontend/.svelte-kit/output/server/chunks/reports2.js +38 -40
  191. package/frontend/.svelte-kit/output/server/chunks/repository.js +26 -14
  192. package/frontend/.svelte-kit/output/server/chunks/runner.js +10 -20
  193. package/frontend/.svelte-kit/output/server/entries/pages/_layout.svelte.js +2 -0
  194. package/frontend/.svelte-kit/output/server/entries/pages/live/_id_/_page.svelte.js +254 -0
  195. package/frontend/.svelte-kit/output/server/entries/pages/login/_page.svelte.js +1 -1
  196. package/frontend/.svelte-kit/output/server/entries/pages/reports/_id_/_page.svelte.js +39 -25
  197. package/frontend/.svelte-kit/output/server/entries/pages/reports/_page.svelte.js +23 -19
  198. package/frontend/.svelte-kit/output/server/entries/pages/scheduled-tests/_page.svelte.js +5 -8
  199. package/frontend/.svelte-kit/output/server/entries/pages/settings/_page.svelte.js +354 -185
  200. package/frontend/.svelte-kit/output/server/entries/pages/setup/_page.svelte.js +1 -1
  201. package/frontend/.svelte-kit/output/server/entries/pages/test-repository/_page.svelte.js +55 -36
  202. package/frontend/.svelte-kit/output/server/entries/pages/test-repository/runs/_id_/_page.svelte.js +4 -7
  203. package/frontend/.svelte-kit/output/server/entries/pages/test-repository/suites/_id_/_page.svelte.js +66 -16
  204. package/frontend/.svelte-kit/output/server/manifest-full.js +10 -10
  205. package/frontend/.svelte-kit/output/server/manifest.js +10 -10
  206. package/frontend/.svelte-kit/output/server/nodes/0.js +2 -2
  207. package/frontend/.svelte-kit/output/server/nodes/1.js +1 -1
  208. package/frontend/.svelte-kit/output/server/nodes/10.js +2 -2
  209. package/frontend/.svelte-kit/output/server/nodes/11.js +2 -2
  210. package/frontend/.svelte-kit/output/server/nodes/12.js +2 -2
  211. package/frontend/.svelte-kit/output/server/nodes/2.js +1 -1
  212. package/frontend/.svelte-kit/output/server/nodes/3.js +3 -3
  213. package/frontend/.svelte-kit/output/server/nodes/4.js +3 -3
  214. package/frontend/.svelte-kit/output/server/nodes/5.js +3 -3
  215. package/frontend/.svelte-kit/output/server/nodes/6.js +3 -3
  216. package/frontend/.svelte-kit/output/server/nodes/7.js +2 -2
  217. package/frontend/.svelte-kit/output/server/nodes/8.js +2 -2
  218. package/frontend/.svelte-kit/output/server/nodes/9.js +1 -1
  219. package/frontend/build/client/_app/immutable/assets/0.BEqlRAtD.css +6 -0
  220. package/frontend/build/client/_app/immutable/assets/0.BEqlRAtD.css.br +0 -0
  221. package/frontend/build/client/_app/immutable/assets/0.BEqlRAtD.css.gz +0 -0
  222. package/frontend/build/client/_app/immutable/assets/10.DC0wD6w_.css +6 -0
  223. package/frontend/build/client/_app/immutable/assets/10.DC0wD6w_.css.br +0 -0
  224. package/frontend/build/client/_app/immutable/assets/10.DC0wD6w_.css.gz +0 -0
  225. package/frontend/build/client/_app/immutable/assets/12.Dm1nSEgE.css +6 -0
  226. package/frontend/build/client/_app/immutable/assets/12.Dm1nSEgE.css.br +0 -0
  227. package/frontend/build/client/_app/immutable/assets/12.Dm1nSEgE.css.gz +0 -0
  228. package/frontend/build/client/_app/immutable/assets/3.Be5c3USL.css +6 -0
  229. package/frontend/build/client/_app/immutable/assets/3.Be5c3USL.css.br +0 -0
  230. package/frontend/build/client/_app/immutable/assets/3.Be5c3USL.css.gz +0 -0
  231. package/frontend/build/client/_app/immutable/assets/5.ClS4XkkN.css +6 -0
  232. package/frontend/build/client/_app/immutable/assets/5.ClS4XkkN.css.br +0 -0
  233. package/frontend/build/client/_app/immutable/assets/5.ClS4XkkN.css.gz +0 -0
  234. package/frontend/build/client/_app/immutable/assets/6.DdQVxyZK.css +6 -0
  235. package/frontend/build/client/_app/immutable/assets/6.DdQVxyZK.css.br +0 -0
  236. package/frontend/build/client/_app/immutable/assets/6.DdQVxyZK.css.gz +0 -0
  237. package/frontend/build/client/_app/immutable/assets/8.DOC8fPSI.css +6 -0
  238. package/frontend/build/client/_app/immutable/assets/8.DOC8fPSI.css.br +0 -0
  239. package/frontend/build/client/_app/immutable/assets/8.DOC8fPSI.css.gz +0 -0
  240. package/frontend/build/client/_app/immutable/assets/BackLink.DRrgBGDC.css +6 -0
  241. package/frontend/build/client/_app/immutable/assets/BackLink.DRrgBGDC.css.br +0 -0
  242. package/frontend/build/client/_app/immutable/assets/BackLink.DRrgBGDC.css.gz +0 -0
  243. package/frontend/{.svelte-kit/adapter-node/_app/immutable/assets/Toast.DENwYn3g.css → build/client/_app/immutable/assets/Button.C1zsJAUG.css} +1 -1
  244. package/frontend/build/client/_app/immutable/assets/Button.C1zsJAUG.css.br +0 -0
  245. package/frontend/build/client/_app/immutable/assets/Button.C1zsJAUG.css.gz +0 -0
  246. package/frontend/build/client/_app/immutable/assets/ExportMenu.DsJQ1Qua.css +6 -0
  247. package/frontend/build/client/_app/immutable/assets/ExportMenu.DsJQ1Qua.css.br +0 -0
  248. package/frontend/build/client/_app/immutable/assets/ExportMenu.DsJQ1Qua.css.gz +0 -0
  249. package/frontend/build/client/_app/immutable/assets/_layout.B4TT3qNx.css +6 -0
  250. package/frontend/build/client/_app/immutable/assets/_layout.B4TT3qNx.css.br +0 -0
  251. package/frontend/build/client/_app/immutable/assets/_layout.B4TT3qNx.css.gz +0 -0
  252. package/frontend/build/client/_app/immutable/assets/_page.4bPj83tb.css +6 -0
  253. package/frontend/build/client/_app/immutable/assets/_page.4bPj83tb.css.br +0 -0
  254. package/frontend/build/client/_app/immutable/assets/_page.4bPj83tb.css.gz +0 -0
  255. package/frontend/build/client/_app/immutable/assets/_page.Be5c3USL.css +6 -0
  256. package/frontend/build/client/_app/immutable/assets/_page.Be5c3USL.css.br +0 -0
  257. package/frontend/build/client/_app/immutable/assets/_page.Be5c3USL.css.gz +0 -0
  258. package/frontend/build/client/_app/immutable/assets/_page.BwgtEi_a.css +6 -0
  259. package/frontend/build/client/_app/immutable/assets/_page.BwgtEi_a.css.br +0 -0
  260. package/frontend/build/client/_app/immutable/assets/_page.BwgtEi_a.css.gz +0 -0
  261. package/frontend/build/client/_app/immutable/assets/_page.ClS4XkkN.css +6 -0
  262. package/frontend/build/client/_app/immutable/assets/_page.ClS4XkkN.css.br +0 -0
  263. package/frontend/build/client/_app/immutable/assets/_page.ClS4XkkN.css.gz +0 -0
  264. package/frontend/build/client/_app/immutable/assets/_page.DOC8fPSI.css +6 -0
  265. package/frontend/build/client/_app/immutable/assets/_page.DOC8fPSI.css.br +0 -0
  266. package/frontend/build/client/_app/immutable/assets/_page.DOC8fPSI.css.gz +0 -0
  267. package/frontend/build/client/_app/immutable/assets/_page.Dm1nSEgE.css +6 -0
  268. package/frontend/build/client/_app/immutable/assets/_page.Dm1nSEgE.css.br +0 -0
  269. package/frontend/build/client/_app/immutable/assets/_page.Dm1nSEgE.css.gz +0 -0
  270. package/frontend/build/client/_app/immutable/chunks/3MBVX4Yb.js +175 -0
  271. package/frontend/build/client/_app/immutable/chunks/3MBVX4Yb.js.br +0 -0
  272. package/frontend/build/client/_app/immutable/chunks/3MBVX4Yb.js.gz +0 -0
  273. package/frontend/build/client/_app/immutable/chunks/6VDMVB5U.js +6 -0
  274. package/frontend/build/client/_app/immutable/chunks/6VDMVB5U.js.br +0 -0
  275. package/frontend/build/client/_app/immutable/chunks/6VDMVB5U.js.gz +0 -0
  276. package/frontend/build/client/_app/immutable/chunks/B2lVGNml.js +6 -0
  277. package/frontend/build/client/_app/immutable/chunks/B2lVGNml.js.br +0 -0
  278. package/frontend/build/client/_app/immutable/chunks/B2lVGNml.js.gz +0 -0
  279. package/frontend/{.svelte-kit/output/client/_app/immutable/chunks/2zMvi6fR.js → build/client/_app/immutable/chunks/BCh31ecr.js} +1 -1
  280. package/frontend/build/client/_app/immutable/chunks/BCh31ecr.js.br +6 -0
  281. package/frontend/build/client/_app/immutable/chunks/BCh31ecr.js.gz +0 -0
  282. package/frontend/build/client/_app/immutable/chunks/BDb8hZHu.js +6 -0
  283. package/frontend/build/client/_app/immutable/chunks/BDb8hZHu.js.br +0 -0
  284. package/frontend/build/client/_app/immutable/chunks/BDb8hZHu.js.gz +0 -0
  285. package/frontend/build/client/_app/immutable/chunks/BIf7lHIm.js +6 -0
  286. package/frontend/build/client/_app/immutable/chunks/BIf7lHIm.js.br +0 -0
  287. package/frontend/build/client/_app/immutable/chunks/BIf7lHIm.js.gz +0 -0
  288. package/frontend/build/client/_app/immutable/chunks/BIjh3jiU.js +8 -0
  289. package/frontend/build/client/_app/immutable/chunks/BIjh3jiU.js.br +0 -0
  290. package/frontend/build/client/_app/immutable/chunks/BIjh3jiU.js.gz +0 -0
  291. package/frontend/build/client/_app/immutable/chunks/BTV7EXZb.js +11 -0
  292. package/frontend/build/client/_app/immutable/chunks/BTV7EXZb.js.br +0 -0
  293. package/frontend/build/client/_app/immutable/chunks/BTV7EXZb.js.gz +0 -0
  294. package/frontend/build/client/_app/immutable/chunks/{DMZwI8Cj.js → BWGoOYU0.js} +1 -1
  295. package/frontend/build/client/_app/immutable/chunks/BWGoOYU0.js.br +0 -0
  296. package/frontend/build/client/_app/immutable/chunks/BWGoOYU0.js.gz +0 -0
  297. package/frontend/build/client/_app/immutable/chunks/BdBJfKUi.js +6 -0
  298. package/frontend/build/client/_app/immutable/chunks/BdBJfKUi.js.br +0 -0
  299. package/frontend/build/client/_app/immutable/chunks/BdBJfKUi.js.gz +0 -0
  300. package/frontend/build/client/_app/immutable/chunks/{t-La0hgu.js → BnXsGCy3.js} +1 -1
  301. package/frontend/build/client/_app/immutable/chunks/BnXsGCy3.js.br +0 -0
  302. package/frontend/build/client/_app/immutable/chunks/BnXsGCy3.js.gz +0 -0
  303. package/frontend/build/client/_app/immutable/chunks/BtTNggoY.js +8 -0
  304. package/frontend/build/client/_app/immutable/chunks/BtTNggoY.js.br +0 -0
  305. package/frontend/build/client/_app/immutable/chunks/BtTNggoY.js.gz +0 -0
  306. package/frontend/build/client/_app/immutable/chunks/C4Z3p6jE.js +6 -0
  307. package/frontend/build/client/_app/immutable/chunks/C4Z3p6jE.js.br +0 -0
  308. package/frontend/build/client/_app/immutable/chunks/C4Z3p6jE.js.gz +0 -0
  309. package/frontend/build/client/_app/immutable/chunks/CNpD-yNH.js +6 -0
  310. package/frontend/build/client/_app/immutable/chunks/CNpD-yNH.js.br +0 -0
  311. package/frontend/build/client/_app/immutable/chunks/CNpD-yNH.js.gz +0 -0
  312. package/frontend/build/client/_app/immutable/chunks/CUPWZLIN.js +6 -0
  313. package/frontend/build/client/_app/immutable/chunks/CUPWZLIN.js.br +0 -0
  314. package/frontend/build/client/_app/immutable/chunks/CUPWZLIN.js.gz +0 -0
  315. package/frontend/build/client/_app/immutable/chunks/{C1Vid6wz.js → CXQhSK1T.js} +1 -1
  316. package/frontend/build/client/_app/immutable/chunks/CXQhSK1T.js.br +0 -0
  317. package/frontend/build/client/_app/immutable/chunks/CXQhSK1T.js.gz +0 -0
  318. package/frontend/{.svelte-kit/output/client/_app/immutable/chunks/CKDtmZUQ.js → build/client/_app/immutable/chunks/CtgCYzu5.js} +1 -1
  319. package/frontend/build/client/_app/immutable/chunks/CtgCYzu5.js.br +0 -0
  320. package/frontend/build/client/_app/immutable/chunks/CtgCYzu5.js.gz +0 -0
  321. package/frontend/build/client/_app/immutable/chunks/{C8OURRSs.js → D72giPTu.js} +1 -1
  322. package/frontend/build/client/_app/immutable/chunks/D72giPTu.js.br +0 -0
  323. package/frontend/build/client/_app/immutable/chunks/D72giPTu.js.gz +0 -0
  324. package/frontend/{.svelte-kit/output/client/_app/immutable/chunks/BmZ9upwL.js → build/client/_app/immutable/chunks/DDx3no2z.js} +1 -1
  325. package/frontend/build/client/_app/immutable/chunks/DDx3no2z.js.br +0 -0
  326. package/frontend/build/client/_app/immutable/chunks/DDx3no2z.js.gz +0 -0
  327. package/frontend/build/client/_app/immutable/chunks/D_thT6pZ.js +6 -0
  328. package/frontend/build/client/_app/immutable/chunks/D_thT6pZ.js.br +0 -0
  329. package/frontend/build/client/_app/immutable/chunks/D_thT6pZ.js.gz +0 -0
  330. package/frontend/build/client/_app/immutable/chunks/DeiVAbyn.js +6 -0
  331. package/frontend/build/client/_app/immutable/chunks/DeiVAbyn.js.br +6 -0
  332. package/frontend/build/client/_app/immutable/chunks/DeiVAbyn.js.gz +0 -0
  333. package/frontend/build/client/_app/immutable/chunks/DiexacSB.js +6 -0
  334. package/frontend/build/client/_app/immutable/chunks/DiexacSB.js.br +0 -0
  335. package/frontend/build/client/_app/immutable/chunks/DiexacSB.js.gz +0 -0
  336. package/frontend/build/client/_app/immutable/chunks/{DDZw0L0T.js → Dlymnwnf.js} +1 -1
  337. package/frontend/build/client/_app/immutable/chunks/Dlymnwnf.js.br +0 -0
  338. package/frontend/build/client/_app/immutable/chunks/Dlymnwnf.js.gz +0 -0
  339. package/frontend/build/client/_app/immutable/chunks/gCgJ3Cwu.js +6 -0
  340. package/frontend/build/client/_app/immutable/chunks/gCgJ3Cwu.js.br +0 -0
  341. package/frontend/build/client/_app/immutable/chunks/gCgJ3Cwu.js.gz +0 -0
  342. package/frontend/build/client/_app/immutable/chunks/htkwR9b-.js +6 -0
  343. package/frontend/build/client/_app/immutable/chunks/htkwR9b-.js.br +0 -0
  344. package/frontend/build/client/_app/immutable/chunks/htkwR9b-.js.gz +0 -0
  345. package/frontend/{.svelte-kit/output/client/_app/immutable/chunks/DCgHuuvs.js → build/client/_app/immutable/chunks/iL4SCrvY.js} +1 -1
  346. package/frontend/build/client/_app/immutable/chunks/iL4SCrvY.js.br +0 -0
  347. package/frontend/build/client/_app/immutable/chunks/iL4SCrvY.js.gz +0 -0
  348. package/frontend/build/client/_app/immutable/chunks/kFFd6Oo5.js +6 -0
  349. package/frontend/build/client/_app/immutable/chunks/kFFd6Oo5.js.br +0 -0
  350. package/frontend/build/client/_app/immutable/chunks/kFFd6Oo5.js.gz +0 -0
  351. package/frontend/build/client/_app/immutable/chunks/pNZogwkM.js +6 -0
  352. package/frontend/build/client/_app/immutable/chunks/pNZogwkM.js.br +0 -0
  353. package/frontend/build/client/_app/immutable/chunks/pNZogwkM.js.gz +0 -0
  354. package/frontend/build/client/_app/immutable/chunks/{w0D4Uzlq.js → prk8PJfA.js} +1 -1
  355. package/frontend/build/client/_app/immutable/chunks/prk8PJfA.js.br +0 -0
  356. package/frontend/build/client/_app/immutable/chunks/prk8PJfA.js.gz +0 -0
  357. package/frontend/build/client/_app/immutable/chunks/qvxlSGpD.js +6 -0
  358. package/frontend/build/client/_app/immutable/chunks/qvxlSGpD.js.br +0 -0
  359. package/frontend/build/client/_app/immutable/chunks/qvxlSGpD.js.gz +0 -0
  360. package/frontend/build/client/_app/immutable/chunks/r_d1Iu0W.js +6 -0
  361. package/frontend/build/client/_app/immutable/chunks/r_d1Iu0W.js.br +0 -0
  362. package/frontend/build/client/_app/immutable/chunks/r_d1Iu0W.js.gz +0 -0
  363. package/frontend/{.svelte-kit/output/client/_app/immutable/chunks/CNdcuGR0.js → build/client/_app/immutable/chunks/tsOANt55.js} +1 -1
  364. package/frontend/build/client/_app/immutable/chunks/tsOANt55.js.br +0 -0
  365. package/frontend/build/client/_app/immutable/chunks/tsOANt55.js.gz +0 -0
  366. package/frontend/build/client/_app/immutable/chunks/zXSLr47H.js +6 -0
  367. package/frontend/build/client/_app/immutable/chunks/zXSLr47H.js.br +0 -0
  368. package/frontend/build/client/_app/immutable/chunks/zXSLr47H.js.gz +0 -0
  369. package/frontend/build/client/_app/immutable/entry/app.DgdSwPuN.js +7 -0
  370. package/frontend/build/client/_app/immutable/entry/app.DgdSwPuN.js.br +0 -0
  371. package/frontend/build/client/_app/immutable/entry/app.DgdSwPuN.js.gz +0 -0
  372. package/frontend/{.svelte-kit/output/client/_app/immutable/entry/start.4qxHHAcl.js → build/client/_app/immutable/entry/start.D_lhI48n.js} +1 -1
  373. package/frontend/build/client/_app/immutable/entry/{start.4qxHHAcl.js.br → start.D_lhI48n.js.br} +1 -1
  374. package/frontend/build/client/_app/immutable/entry/{start.4qxHHAcl.js.gz → start.D_lhI48n.js.gz} +0 -0
  375. package/frontend/build/client/_app/immutable/nodes/0.D2F-i1I5.js +6 -0
  376. package/frontend/build/client/_app/immutable/nodes/0.D2F-i1I5.js.br +0 -0
  377. package/frontend/build/client/_app/immutable/nodes/0.D2F-i1I5.js.gz +0 -0
  378. package/frontend/build/client/_app/immutable/nodes/{1.Df9sLw8b.js → 1.JIF2GfHq.js} +1 -1
  379. package/frontend/build/client/_app/immutable/nodes/1.JIF2GfHq.js.br +5 -0
  380. package/frontend/build/client/_app/immutable/nodes/1.JIF2GfHq.js.gz +0 -0
  381. package/frontend/build/client/_app/immutable/nodes/10.A0AHLfOt.js +6 -0
  382. package/frontend/build/client/_app/immutable/nodes/10.A0AHLfOt.js.br +0 -0
  383. package/frontend/build/client/_app/immutable/nodes/10.A0AHLfOt.js.gz +0 -0
  384. package/frontend/build/client/_app/immutable/nodes/11.CVSPxlqY.js +6 -0
  385. package/frontend/build/client/_app/immutable/nodes/11.CVSPxlqY.js.br +0 -0
  386. package/frontend/build/client/_app/immutable/nodes/11.CVSPxlqY.js.gz +0 -0
  387. package/frontend/build/client/_app/immutable/nodes/12.CnAR0AQb.js +6 -0
  388. package/frontend/build/client/_app/immutable/nodes/12.CnAR0AQb.js.br +0 -0
  389. package/frontend/build/client/_app/immutable/nodes/12.CnAR0AQb.js.gz +0 -0
  390. package/frontend/{.svelte-kit/output/client/_app/immutable/nodes/2.BCPSg7H4.js → build/client/_app/immutable/nodes/2.Bno00fr8.js} +1 -1
  391. package/frontend/build/client/_app/immutable/nodes/2.Bno00fr8.js.br +0 -0
  392. package/frontend/build/client/_app/immutable/nodes/2.Bno00fr8.js.gz +0 -0
  393. package/frontend/build/client/_app/immutable/nodes/3.B6KwaCsM.js +6 -0
  394. package/frontend/build/client/_app/immutable/nodes/3.B6KwaCsM.js.br +0 -0
  395. package/frontend/build/client/_app/immutable/nodes/3.B6KwaCsM.js.gz +0 -0
  396. package/frontend/{.svelte-kit/output/client/_app/immutable/nodes/3.8BFAJoHT.js → build/client/_app/immutable/nodes/4.BX70m3v6.js} +1 -1
  397. package/frontend/build/client/_app/immutable/nodes/4.BX70m3v6.js.br +0 -0
  398. package/frontend/build/client/_app/immutable/nodes/4.BX70m3v6.js.gz +0 -0
  399. package/frontend/build/client/_app/immutable/nodes/5.UIFh06yr.js +6 -0
  400. package/frontend/build/client/_app/immutable/nodes/5.UIFh06yr.js.br +0 -0
  401. package/frontend/build/client/_app/immutable/nodes/5.UIFh06yr.js.gz +0 -0
  402. package/frontend/build/client/_app/immutable/nodes/6.DZ1OV24V.js +10 -0
  403. package/frontend/build/client/_app/immutable/nodes/6.DZ1OV24V.js.br +0 -0
  404. package/frontend/build/client/_app/immutable/nodes/6.DZ1OV24V.js.gz +0 -0
  405. package/frontend/build/client/_app/immutable/nodes/7.B_XntBZ1.js +6 -0
  406. package/frontend/build/client/_app/immutable/nodes/7.B_XntBZ1.js.br +0 -0
  407. package/frontend/build/client/_app/immutable/nodes/7.B_XntBZ1.js.gz +0 -0
  408. package/frontend/build/client/_app/immutable/nodes/8.CVHgJw-E.js +9 -0
  409. package/frontend/build/client/_app/immutable/nodes/8.CVHgJw-E.js.br +0 -0
  410. package/frontend/build/client/_app/immutable/nodes/8.CVHgJw-E.js.gz +0 -0
  411. package/frontend/build/client/_app/immutable/nodes/{9.CvfGx3Hu.js → 9.DDDQPmMj.js} +1 -1
  412. package/frontend/build/client/_app/immutable/nodes/9.DDDQPmMj.js.br +0 -0
  413. package/frontend/build/client/_app/immutable/nodes/9.DDDQPmMj.js.gz +0 -0
  414. package/frontend/build/client/_app/version.json +1 -1
  415. package/frontend/build/client/_app/version.json.br +0 -0
  416. package/frontend/build/client/_app/version.json.gz +0 -0
  417. package/frontend/build/server/chunks/0-38cvTs44.js +22 -0
  418. package/frontend/build/server/chunks/0-38cvTs44.js.map +5 -0
  419. package/frontend/build/server/chunks/{1-Kxn9d30Z.js → 1-CcYsajvR.js} +3 -3
  420. package/frontend/build/server/chunks/{1-Kxn9d30Z.js.map → 1-CcYsajvR.js.map} +1 -1
  421. package/frontend/build/server/chunks/10-CFR2MUJt.js +14 -0
  422. package/frontend/build/server/chunks/10-CFR2MUJt.js.map +5 -0
  423. package/frontend/build/server/chunks/11-BmkiRQ9D.js +14 -0
  424. package/frontend/build/server/chunks/11-BmkiRQ9D.js.map +5 -0
  425. package/frontend/build/server/chunks/12-BphJAwnL.js +14 -0
  426. package/frontend/build/server/chunks/12-BphJAwnL.js.map +5 -0
  427. package/frontend/build/server/chunks/2-Dalgd2D4.js +14 -0
  428. package/frontend/build/server/chunks/{2-Dc_rKWoK.js.map → 2-Dalgd2D4.js.map} +1 -1
  429. package/frontend/build/server/chunks/3-BvsmdXCj.js +14 -0
  430. package/frontend/build/server/chunks/3-BvsmdXCj.js.map +5 -0
  431. package/frontend/build/server/chunks/4-CN18WCEn.js +14 -0
  432. package/frontend/build/server/chunks/4-CN18WCEn.js.map +5 -0
  433. package/frontend/build/server/chunks/5-BwLYF3xL.js +14 -0
  434. package/frontend/build/server/chunks/5-BwLYF3xL.js.map +5 -0
  435. package/frontend/build/server/chunks/6-DTM2N_k3.js +14 -0
  436. package/frontend/build/server/chunks/6-DTM2N_k3.js.map +5 -0
  437. package/frontend/build/server/chunks/7-DTNbErSe.js +14 -0
  438. package/frontend/build/server/chunks/7-DTNbErSe.js.map +5 -0
  439. package/frontend/build/server/chunks/8-BfCbb7pl.js +14 -0
  440. package/frontend/build/server/chunks/8-BfCbb7pl.js.map +5 -0
  441. package/frontend/build/server/chunks/9-CQKepnMw.js +14 -0
  442. package/frontend/build/server/chunks/{9-DirZG_Lu.js.map → 9-CQKepnMw.js.map} +1 -1
  443. package/frontend/build/server/chunks/{BackLink-BJ8NaemM.js → BackLink-CMpNTYqE.js} +2 -2
  444. package/frontend/build/server/chunks/BackLink-CMpNTYqE.js.map +5 -0
  445. package/frontend/build/server/chunks/{Badge-44ZTDx0V.js → Badge-BTWnF9pA.js} +2 -2
  446. package/frontend/build/server/chunks/Badge-BTWnF9pA.js.map +5 -0
  447. package/frontend/build/server/chunks/{Toast-v-q4ZnYq.js → Button-B9h9viZX.js} +3 -17
  448. package/frontend/build/server/chunks/Button-B9h9viZX.js.map +5 -0
  449. package/frontend/build/server/chunks/{ConfirmModal-C0EAXcq_.js → ConfirmModal-C6Cz898n.js} +4 -4
  450. package/frontend/build/server/chunks/ConfirmModal-C6Cz898n.js.map +5 -0
  451. package/frontend/build/server/chunks/{EmptyState-BA_eXaeR.js → EmptyState-CRtsJIv6.js} +3 -3
  452. package/frontend/build/server/chunks/EmptyState-CRtsJIv6.js.map +5 -0
  453. package/frontend/build/server/chunks/{Modal-DChG187n.js → Modal-BJJMnfIg.js} +2 -2
  454. package/frontend/build/server/chunks/Modal-BJJMnfIg.js.map +5 -0
  455. package/frontend/build/server/chunks/_layout.svelte-B8vZGefg.js +28 -0
  456. package/frontend/build/server/chunks/_layout.svelte-B8vZGefg.js.map +5 -0
  457. package/frontend/build/server/chunks/{_page.svelte-Kg69DDaM.js → _page.svelte-BrYksycU.js} +5 -5
  458. package/frontend/build/server/chunks/_page.svelte-BrYksycU.js.map +5 -0
  459. package/frontend/build/server/chunks/_page.svelte-BrnXHxJ4.js +69 -0
  460. package/frontend/build/server/chunks/_page.svelte-BrnXHxJ4.js.map +5 -0
  461. package/frontend/build/server/chunks/_page.svelte-C2WqvInJ.js +898 -0
  462. package/frontend/build/server/chunks/_page.svelte-C2WqvInJ.js.map +5 -0
  463. package/frontend/build/server/chunks/{_page.svelte-04WxjOuH.js → _page.svelte-CP6jA1ex.js} +9 -9
  464. package/frontend/build/server/chunks/{_page.svelte-04WxjOuH.js.map → _page.svelte-CP6jA1ex.js.map} +1 -1
  465. package/frontend/build/server/chunks/{_page.svelte-D3E6Eojd.js → _page.svelte-Cf6bI1Y2.js} +5 -5
  466. package/frontend/build/server/chunks/_page.svelte-Cf6bI1Y2.js.map +5 -0
  467. package/frontend/build/server/chunks/{_page.svelte-1as75nPc.js → _page.svelte-D6b-klLK.js} +33 -29
  468. package/frontend/build/server/chunks/_page.svelte-D6b-klLK.js.map +5 -0
  469. package/frontend/build/server/chunks/{_page.svelte-CWWeZuid.js → _page.svelte-DBjTpquQ.js} +73 -24
  470. package/frontend/build/server/chunks/_page.svelte-DBjTpquQ.js.map +5 -0
  471. package/frontend/build/server/chunks/{_page.svelte-CB8-QBNg.js → _page.svelte-DM1_y4Oq.js} +61 -42
  472. package/frontend/build/server/chunks/_page.svelte-DM1_y4Oq.js.map +5 -0
  473. package/frontend/build/server/chunks/_page.svelte-Mo-O3HJ5.js +257 -0
  474. package/frontend/build/server/chunks/_page.svelte-Mo-O3HJ5.js.map +5 -0
  475. package/frontend/build/server/chunks/{_page.svelte-BuFusRK1.js → _page.svelte-mZF4NrfU.js} +14 -17
  476. package/frontend/build/server/chunks/_page.svelte-mZF4NrfU.js.map +5 -0
  477. package/frontend/build/server/chunks/{_page.svelte-1jo8MapI.js → _page.svelte-nrlgIFaU.js} +13 -15
  478. package/frontend/build/server/chunks/_page.svelte-nrlgIFaU.js.map +5 -0
  479. package/frontend/build/server/chunks/{auth-Chw-wBpI.js → auth-DDPlushv.js} +2 -2
  480. package/frontend/build/server/chunks/{auth-Chw-wBpI.js.map → auth-DDPlushv.js.map} +1 -1
  481. package/frontend/build/server/chunks/{client-DEmxR_a-.js → client-CsTiGNZy.js} +2 -2
  482. package/frontend/build/server/chunks/{client-DEmxR_a-.js.map → client-CsTiGNZy.js.map} +1 -1
  483. package/frontend/build/server/chunks/{common-DYYTVHPw.js → common-DS-Z0UFe.js} +7 -2
  484. package/frontend/build/server/chunks/common-DS-Z0UFe.js.map +5 -0
  485. package/frontend/build/server/chunks/{constants-CXTaQaB6.js → constants-OmHysD51.js} +3 -2
  486. package/frontend/build/server/chunks/constants-OmHysD51.js.map +5 -0
  487. package/frontend/build/server/chunks/{error.svelte-BD3xNemk.js → error.svelte-BXr4lXlB.js} +3 -3
  488. package/frontend/build/server/chunks/{error.svelte-BD3xNemk.js.map → error.svelte-BXr4lXlB.js.map} +1 -1
  489. package/frontend/build/server/chunks/{format-CiNRMfHu.js → format-Bqb0as15.js} +2 -2
  490. package/frontend/build/server/chunks/{format-CiNRMfHu.js.map → format-Bqb0as15.js.map} +1 -1
  491. package/frontend/build/server/chunks/{index-server-B3M9vyh2.js → index-server-53nOZg5X.js} +2 -2
  492. package/frontend/build/server/chunks/{index-server-B3M9vyh2.js.map → index-server-53nOZg5X.js.map} +1 -1
  493. package/frontend/build/server/chunks/{index2-5R1tbrep.js → index2-DGcbugKe.js} +2 -2
  494. package/frontend/build/server/chunks/{index2-5R1tbrep.js.map → index2-DGcbugKe.js.map} +1 -1
  495. package/frontend/build/server/chunks/{reports-D_ApeeNh.js → reports-chCHCDzB.js} +2 -2
  496. package/frontend/build/server/chunks/{reports-D_ApeeNh.js.map → reports-chCHCDzB.js.map} +1 -1
  497. package/frontend/build/server/chunks/{reports2-BtElN_53.js → reports2-Dr3zu9CD.js} +8 -9
  498. package/frontend/build/server/chunks/reports2-Dr3zu9CD.js.map +5 -0
  499. package/frontend/build/server/chunks/{repository-FYYV_vKE.js → repository-DSsWVKEb.js} +9 -3
  500. package/frontend/build/server/chunks/repository-DSsWVKEb.js.map +5 -0
  501. package/frontend/build/server/chunks/runner-aaUtOqck.js +27 -0
  502. package/frontend/build/server/chunks/runner-aaUtOqck.js.map +5 -0
  503. package/frontend/build/server/chunks/{stores-BLenR3c1.js → stores-C4ZkywTG.js} +3 -3
  504. package/frontend/build/server/chunks/{stores-BLenR3c1.js.map → stores-C4ZkywTG.js.map} +1 -1
  505. package/frontend/build/server/chunks/{theme-nAx-GvX_.js → theme-C81wSe5T.js} +2 -2
  506. package/frontend/build/server/chunks/{theme-nAx-GvX_.js.map → theme-C81wSe5T.js.map} +1 -1
  507. package/frontend/build/server/index.js +2 -2
  508. package/frontend/build/server/index.js.map +1 -1
  509. package/frontend/build/server/manifest.js +23 -23
  510. package/frontend/build/server/manifest.js.map +1 -1
  511. package/frontend/package-lock.json +14 -0
  512. package/frontend/package.json +2 -0
  513. package/frontend/src/lib/api/reports.js +7 -0
  514. package/frontend/src/lib/api/repository.js +28 -0
  515. package/frontend/src/lib/components/layout/RunnerPanel.svelte +187 -266
  516. package/frontend/src/lib/components/reports/RecordingPlayer.svelte +172 -2
  517. package/frontend/src/lib/components/ui/ExportMenu.svelte +154 -0
  518. package/frontend/src/lib/components/ui/NotificationStack.svelte +177 -0
  519. package/frontend/src/lib/constants.js +1 -1
  520. package/frontend/src/lib/copy/common.js +9 -0
  521. package/frontend/src/lib/copy/reports.js +29 -0
  522. package/frontend/src/lib/copy/repository.js +4 -0
  523. package/frontend/src/lib/copy/runners.js +9 -6
  524. package/frontend/src/lib/copy/settings.js +15 -0
  525. package/frontend/src/lib/socketEvents.js +3 -15
  526. package/frontend/src/lib/stores/notifications.js +23 -0
  527. package/frontend/src/lib/stores/replayVideo.js +51 -0
  528. package/frontend/src/lib/stores/runner.js +62 -46
  529. package/frontend/src/lib/utils/download.js +28 -0
  530. package/frontend/src/lib/utils/replayCapture.js +91 -0
  531. package/frontend/src/lib/utils/replayVideo.js +111 -0
  532. package/frontend/src/routes/+layout.svelte +2 -0
  533. package/frontend/src/routes/{reports/live → live/[id]}/+page.svelte +112 -183
  534. package/frontend/src/routes/reports/[id]/+page.svelte +38 -3
  535. package/frontend/src/routes/scheduled-tests/+page.svelte +11 -19
  536. package/frontend/src/routes/settings/+page.svelte +140 -56
  537. package/frontend/src/routes/test-repository/+page.svelte +44 -16
  538. package/frontend/src/routes/test-repository/runs/[id]/+page.svelte +14 -23
  539. package/frontend/src/routes/test-repository/suites/[id]/+page.svelte +38 -22
  540. package/package.json +1 -1
  541. package/backend/services/activeRunsService.js +0 -55
  542. package/frontend/.svelte-kit/adapter-node/_app/immutable/assets/BackLink.CvWWuO3h.css +0 -6
  543. package/frontend/.svelte-kit/adapter-node/_app/immutable/assets/_layout.BuhMvMUj.css +0 -6
  544. package/frontend/.svelte-kit/adapter-node/_app/immutable/assets/_page.0Eln51hV.css +0 -6
  545. package/frontend/.svelte-kit/adapter-node/_app/immutable/assets/_page.5IJAEAjc.css +0 -6
  546. package/frontend/.svelte-kit/adapter-node/_app/immutable/assets/_page.BZfe6nWe.css +0 -6
  547. package/frontend/.svelte-kit/adapter-node/_app/immutable/assets/_page.Bj_a_5lv.css +0 -6
  548. package/frontend/.svelte-kit/adapter-node/_app/immutable/assets/_page.BwgOqeMo.css +0 -6
  549. package/frontend/.svelte-kit/adapter-node/_app/immutable/assets/_page.CFnbmY-D.css +0 -6
  550. package/frontend/.svelte-kit/adapter-node/entries/pages/reports/live/_page.svelte.js +0 -247
  551. package/frontend/.svelte-kit/output/client/_app/immutable/assets/0.BhSG-jZH.css +0 -6
  552. package/frontend/.svelte-kit/output/client/_app/immutable/assets/10.CdaQUS6U.css +0 -6
  553. package/frontend/.svelte-kit/output/client/_app/immutable/assets/12.Bj_a_5lv.css +0 -6
  554. package/frontend/.svelte-kit/output/client/_app/immutable/assets/4.0Eln51hV.css +0 -6
  555. package/frontend/.svelte-kit/output/client/_app/immutable/assets/5.DFV9OgAu.css +0 -6
  556. package/frontend/.svelte-kit/output/client/_app/immutable/assets/6.CFnbmY-D.css +0 -6
  557. package/frontend/.svelte-kit/output/client/_app/immutable/assets/8.BwgOqeMo.css +0 -6
  558. package/frontend/.svelte-kit/output/client/_app/immutable/assets/BackLink.CvWWuO3h.css +0 -6
  559. package/frontend/.svelte-kit/output/client/_app/immutable/assets/Button.FOWXxvc7.css +0 -6
  560. package/frontend/.svelte-kit/output/client/_app/immutable/assets/_layout.BuhMvMUj.css +0 -6
  561. package/frontend/.svelte-kit/output/client/_app/immutable/assets/_page.0Eln51hV.css +0 -6
  562. package/frontend/.svelte-kit/output/client/_app/immutable/assets/_page.5IJAEAjc.css +0 -6
  563. package/frontend/.svelte-kit/output/client/_app/immutable/assets/_page.BZfe6nWe.css +0 -6
  564. package/frontend/.svelte-kit/output/client/_app/immutable/assets/_page.Bj_a_5lv.css +0 -6
  565. package/frontend/.svelte-kit/output/client/_app/immutable/assets/_page.BwgOqeMo.css +0 -6
  566. package/frontend/.svelte-kit/output/client/_app/immutable/assets/_page.CFnbmY-D.css +0 -6
  567. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/3InFPLvE.js +0 -6
  568. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/BAACMRH5.js +0 -6
  569. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/BAMUGSh7.js +0 -6
  570. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/BKuh57WU.js +0 -6
  571. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/BUwxRmHf.js +0 -6
  572. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/CGeZlCaI.js +0 -6
  573. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/CMBQQ9RZ.js +0 -6
  574. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/CMEtqUfQ.js +0 -6
  575. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/CUC98kMZ.js +0 -6
  576. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/CgnwuKKO.js +0 -6
  577. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/Co3xKhEp.js +0 -6
  578. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/CuqnZUex.js +0 -6
  579. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/CzlPaHY9.js +0 -6
  580. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/DHM6H-es.js +0 -7
  581. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/DSLBMEpr.js +0 -6
  582. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/DbgD7JLa.js +0 -6
  583. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/TOCyHP97.js +0 -11
  584. package/frontend/.svelte-kit/output/client/_app/immutable/chunks/kkA1mrsH.js +0 -8
  585. package/frontend/.svelte-kit/output/client/_app/immutable/entry/app.KrtMZ3my.js +0 -7
  586. package/frontend/.svelte-kit/output/client/_app/immutable/nodes/0.C8DodwXs.js +0 -11
  587. package/frontend/.svelte-kit/output/client/_app/immutable/nodes/10.DEbnxfND.js +0 -6
  588. package/frontend/.svelte-kit/output/client/_app/immutable/nodes/11.BViaDK2m.js +0 -6
  589. package/frontend/.svelte-kit/output/client/_app/immutable/nodes/12.BMSCSd88.js +0 -6
  590. package/frontend/.svelte-kit/output/client/_app/immutable/nodes/4.D-YT_JJe.js +0 -6
  591. package/frontend/.svelte-kit/output/client/_app/immutable/nodes/5.DVeH2eQP.js +0 -6
  592. package/frontend/.svelte-kit/output/client/_app/immutable/nodes/6.DI7-IJhN.js +0 -6
  593. package/frontend/.svelte-kit/output/client/_app/immutable/nodes/7.C-pKvVZy.js +0 -6
  594. package/frontend/.svelte-kit/output/client/_app/immutable/nodes/8.93Mb3ofT.js +0 -9
  595. package/frontend/.svelte-kit/output/server/_app/immutable/assets/BackLink.CvWWuO3h.css +0 -6
  596. package/frontend/.svelte-kit/output/server/_app/immutable/assets/_layout.BuhMvMUj.css +0 -6
  597. package/frontend/.svelte-kit/output/server/_app/immutable/assets/_page.0Eln51hV.css +0 -6
  598. package/frontend/.svelte-kit/output/server/_app/immutable/assets/_page.5IJAEAjc.css +0 -6
  599. package/frontend/.svelte-kit/output/server/_app/immutable/assets/_page.BZfe6nWe.css +0 -6
  600. package/frontend/.svelte-kit/output/server/_app/immutable/assets/_page.Bj_a_5lv.css +0 -6
  601. package/frontend/.svelte-kit/output/server/_app/immutable/assets/_page.BwgOqeMo.css +0 -6
  602. package/frontend/.svelte-kit/output/server/_app/immutable/assets/_page.CFnbmY-D.css +0 -6
  603. package/frontend/.svelte-kit/output/server/entries/pages/reports/live/_page.svelte.js +0 -247
  604. package/frontend/build/client/_app/immutable/assets/0.BhSG-jZH.css +0 -6
  605. package/frontend/build/client/_app/immutable/assets/0.BhSG-jZH.css.br +0 -0
  606. package/frontend/build/client/_app/immutable/assets/0.BhSG-jZH.css.gz +0 -0
  607. package/frontend/build/client/_app/immutable/assets/10.CdaQUS6U.css +0 -6
  608. package/frontend/build/client/_app/immutable/assets/10.CdaQUS6U.css.br +0 -0
  609. package/frontend/build/client/_app/immutable/assets/10.CdaQUS6U.css.gz +0 -0
  610. package/frontend/build/client/_app/immutable/assets/12.Bj_a_5lv.css +0 -6
  611. package/frontend/build/client/_app/immutable/assets/12.Bj_a_5lv.css.br +0 -0
  612. package/frontend/build/client/_app/immutable/assets/12.Bj_a_5lv.css.gz +0 -0
  613. package/frontend/build/client/_app/immutable/assets/4.0Eln51hV.css +0 -6
  614. package/frontend/build/client/_app/immutable/assets/4.0Eln51hV.css.br +0 -0
  615. package/frontend/build/client/_app/immutable/assets/4.0Eln51hV.css.gz +0 -0
  616. package/frontend/build/client/_app/immutable/assets/5.DFV9OgAu.css +0 -6
  617. package/frontend/build/client/_app/immutable/assets/5.DFV9OgAu.css.br +0 -0
  618. package/frontend/build/client/_app/immutable/assets/5.DFV9OgAu.css.gz +0 -0
  619. package/frontend/build/client/_app/immutable/assets/6.CFnbmY-D.css +0 -6
  620. package/frontend/build/client/_app/immutable/assets/6.CFnbmY-D.css.br +0 -0
  621. package/frontend/build/client/_app/immutable/assets/6.CFnbmY-D.css.gz +0 -0
  622. package/frontend/build/client/_app/immutable/assets/8.BwgOqeMo.css +0 -6
  623. package/frontend/build/client/_app/immutable/assets/8.BwgOqeMo.css.br +0 -0
  624. package/frontend/build/client/_app/immutable/assets/8.BwgOqeMo.css.gz +0 -0
  625. package/frontend/build/client/_app/immutable/assets/BackLink.CvWWuO3h.css +0 -6
  626. package/frontend/build/client/_app/immutable/assets/BackLink.CvWWuO3h.css.br +0 -0
  627. package/frontend/build/client/_app/immutable/assets/BackLink.CvWWuO3h.css.gz +0 -0
  628. package/frontend/build/client/_app/immutable/assets/Button.FOWXxvc7.css +0 -6
  629. package/frontend/build/client/_app/immutable/assets/Button.FOWXxvc7.css.br +0 -0
  630. package/frontend/build/client/_app/immutable/assets/Button.FOWXxvc7.css.gz +0 -0
  631. package/frontend/build/client/_app/immutable/assets/Toast.DENwYn3g.css.br +0 -0
  632. package/frontend/build/client/_app/immutable/assets/Toast.DENwYn3g.css.gz +0 -0
  633. package/frontend/build/client/_app/immutable/assets/_layout.BuhMvMUj.css +0 -6
  634. package/frontend/build/client/_app/immutable/assets/_layout.BuhMvMUj.css.br +0 -0
  635. package/frontend/build/client/_app/immutable/assets/_layout.BuhMvMUj.css.gz +0 -0
  636. package/frontend/build/client/_app/immutable/assets/_page.0Eln51hV.css +0 -6
  637. package/frontend/build/client/_app/immutable/assets/_page.0Eln51hV.css.br +0 -0
  638. package/frontend/build/client/_app/immutable/assets/_page.0Eln51hV.css.gz +0 -0
  639. package/frontend/build/client/_app/immutable/assets/_page.5IJAEAjc.css +0 -6
  640. package/frontend/build/client/_app/immutable/assets/_page.5IJAEAjc.css.br +0 -0
  641. package/frontend/build/client/_app/immutable/assets/_page.5IJAEAjc.css.gz +0 -0
  642. package/frontend/build/client/_app/immutable/assets/_page.BZfe6nWe.css +0 -6
  643. package/frontend/build/client/_app/immutable/assets/_page.BZfe6nWe.css.br +0 -0
  644. package/frontend/build/client/_app/immutable/assets/_page.BZfe6nWe.css.gz +0 -0
  645. package/frontend/build/client/_app/immutable/assets/_page.Bj_a_5lv.css +0 -6
  646. package/frontend/build/client/_app/immutable/assets/_page.Bj_a_5lv.css.br +0 -0
  647. package/frontend/build/client/_app/immutable/assets/_page.Bj_a_5lv.css.gz +0 -0
  648. package/frontend/build/client/_app/immutable/assets/_page.BwgOqeMo.css +0 -6
  649. package/frontend/build/client/_app/immutable/assets/_page.BwgOqeMo.css.br +0 -0
  650. package/frontend/build/client/_app/immutable/assets/_page.BwgOqeMo.css.gz +0 -0
  651. package/frontend/build/client/_app/immutable/assets/_page.CFnbmY-D.css +0 -6
  652. package/frontend/build/client/_app/immutable/assets/_page.CFnbmY-D.css.br +0 -0
  653. package/frontend/build/client/_app/immutable/assets/_page.CFnbmY-D.css.gz +0 -0
  654. package/frontend/build/client/_app/immutable/chunks/2zMvi6fR.js.br +0 -0
  655. package/frontend/build/client/_app/immutable/chunks/2zMvi6fR.js.gz +0 -0
  656. package/frontend/build/client/_app/immutable/chunks/3InFPLvE.js +0 -6
  657. package/frontend/build/client/_app/immutable/chunks/3InFPLvE.js.br +0 -0
  658. package/frontend/build/client/_app/immutable/chunks/3InFPLvE.js.gz +0 -0
  659. package/frontend/build/client/_app/immutable/chunks/BAACMRH5.js +0 -6
  660. package/frontend/build/client/_app/immutable/chunks/BAACMRH5.js.br +0 -0
  661. package/frontend/build/client/_app/immutable/chunks/BAACMRH5.js.gz +0 -0
  662. package/frontend/build/client/_app/immutable/chunks/BAMUGSh7.js +0 -6
  663. package/frontend/build/client/_app/immutable/chunks/BAMUGSh7.js.br +0 -0
  664. package/frontend/build/client/_app/immutable/chunks/BAMUGSh7.js.gz +0 -0
  665. package/frontend/build/client/_app/immutable/chunks/BKuh57WU.js +0 -6
  666. package/frontend/build/client/_app/immutable/chunks/BKuh57WU.js.br +0 -0
  667. package/frontend/build/client/_app/immutable/chunks/BKuh57WU.js.gz +0 -0
  668. package/frontend/build/client/_app/immutable/chunks/BUwxRmHf.js +0 -6
  669. package/frontend/build/client/_app/immutable/chunks/BUwxRmHf.js.br +0 -0
  670. package/frontend/build/client/_app/immutable/chunks/BUwxRmHf.js.gz +0 -0
  671. package/frontend/build/client/_app/immutable/chunks/BmZ9upwL.js.br +0 -0
  672. package/frontend/build/client/_app/immutable/chunks/BmZ9upwL.js.gz +0 -0
  673. package/frontend/build/client/_app/immutable/chunks/C1Vid6wz.js.br +0 -0
  674. package/frontend/build/client/_app/immutable/chunks/C1Vid6wz.js.gz +0 -0
  675. package/frontend/build/client/_app/immutable/chunks/C8OURRSs.js.br +0 -0
  676. package/frontend/build/client/_app/immutable/chunks/C8OURRSs.js.gz +0 -0
  677. package/frontend/build/client/_app/immutable/chunks/CGeZlCaI.js +0 -6
  678. package/frontend/build/client/_app/immutable/chunks/CGeZlCaI.js.br +0 -0
  679. package/frontend/build/client/_app/immutable/chunks/CGeZlCaI.js.gz +0 -0
  680. package/frontend/build/client/_app/immutable/chunks/CKDtmZUQ.js.br +0 -0
  681. package/frontend/build/client/_app/immutable/chunks/CKDtmZUQ.js.gz +0 -0
  682. package/frontend/build/client/_app/immutable/chunks/CMBQQ9RZ.js +0 -6
  683. package/frontend/build/client/_app/immutable/chunks/CMBQQ9RZ.js.br +0 -0
  684. package/frontend/build/client/_app/immutable/chunks/CMBQQ9RZ.js.gz +0 -0
  685. package/frontend/build/client/_app/immutable/chunks/CMEtqUfQ.js +0 -6
  686. package/frontend/build/client/_app/immutable/chunks/CMEtqUfQ.js.br +0 -0
  687. package/frontend/build/client/_app/immutable/chunks/CMEtqUfQ.js.gz +0 -0
  688. package/frontend/build/client/_app/immutable/chunks/CNdcuGR0.js.br +0 -0
  689. package/frontend/build/client/_app/immutable/chunks/CNdcuGR0.js.gz +0 -0
  690. package/frontend/build/client/_app/immutable/chunks/CUC98kMZ.js +0 -6
  691. package/frontend/build/client/_app/immutable/chunks/CUC98kMZ.js.br +0 -0
  692. package/frontend/build/client/_app/immutable/chunks/CUC98kMZ.js.gz +0 -0
  693. package/frontend/build/client/_app/immutable/chunks/CgnwuKKO.js +0 -6
  694. package/frontend/build/client/_app/immutable/chunks/CgnwuKKO.js.br +0 -0
  695. package/frontend/build/client/_app/immutable/chunks/CgnwuKKO.js.gz +0 -0
  696. package/frontend/build/client/_app/immutable/chunks/Co3xKhEp.js +0 -6
  697. package/frontend/build/client/_app/immutable/chunks/Co3xKhEp.js.br +0 -0
  698. package/frontend/build/client/_app/immutable/chunks/Co3xKhEp.js.gz +0 -0
  699. package/frontend/build/client/_app/immutable/chunks/CuqnZUex.js +0 -6
  700. package/frontend/build/client/_app/immutable/chunks/CuqnZUex.js.br +0 -5
  701. package/frontend/build/client/_app/immutable/chunks/CuqnZUex.js.gz +0 -0
  702. package/frontend/build/client/_app/immutable/chunks/CzlPaHY9.js +0 -6
  703. package/frontend/build/client/_app/immutable/chunks/CzlPaHY9.js.br +0 -0
  704. package/frontend/build/client/_app/immutable/chunks/CzlPaHY9.js.gz +0 -0
  705. package/frontend/build/client/_app/immutable/chunks/DCgHuuvs.js.br +0 -0
  706. package/frontend/build/client/_app/immutable/chunks/DCgHuuvs.js.gz +0 -0
  707. package/frontend/build/client/_app/immutable/chunks/DDZw0L0T.js.br +0 -0
  708. package/frontend/build/client/_app/immutable/chunks/DDZw0L0T.js.gz +0 -0
  709. package/frontend/build/client/_app/immutable/chunks/DHM6H-es.js +0 -7
  710. package/frontend/build/client/_app/immutable/chunks/DHM6H-es.js.br +0 -0
  711. package/frontend/build/client/_app/immutable/chunks/DHM6H-es.js.gz +0 -0
  712. package/frontend/build/client/_app/immutable/chunks/DMZwI8Cj.js.br +0 -0
  713. package/frontend/build/client/_app/immutable/chunks/DMZwI8Cj.js.gz +0 -0
  714. package/frontend/build/client/_app/immutable/chunks/DSLBMEpr.js +0 -6
  715. package/frontend/build/client/_app/immutable/chunks/DSLBMEpr.js.br +0 -0
  716. package/frontend/build/client/_app/immutable/chunks/DSLBMEpr.js.gz +0 -0
  717. package/frontend/build/client/_app/immutable/chunks/DbgD7JLa.js +0 -6
  718. package/frontend/build/client/_app/immutable/chunks/DbgD7JLa.js.br +0 -0
  719. package/frontend/build/client/_app/immutable/chunks/DbgD7JLa.js.gz +0 -0
  720. package/frontend/build/client/_app/immutable/chunks/TOCyHP97.js +0 -11
  721. package/frontend/build/client/_app/immutable/chunks/TOCyHP97.js.br +0 -0
  722. package/frontend/build/client/_app/immutable/chunks/TOCyHP97.js.gz +0 -0
  723. package/frontend/build/client/_app/immutable/chunks/kkA1mrsH.js +0 -8
  724. package/frontend/build/client/_app/immutable/chunks/kkA1mrsH.js.br +0 -0
  725. package/frontend/build/client/_app/immutable/chunks/kkA1mrsH.js.gz +0 -0
  726. package/frontend/build/client/_app/immutable/chunks/t-La0hgu.js.br +0 -0
  727. package/frontend/build/client/_app/immutable/chunks/t-La0hgu.js.gz +0 -0
  728. package/frontend/build/client/_app/immutable/chunks/w0D4Uzlq.js.br +0 -0
  729. package/frontend/build/client/_app/immutable/chunks/w0D4Uzlq.js.gz +0 -0
  730. package/frontend/build/client/_app/immutable/entry/app.KrtMZ3my.js +0 -7
  731. package/frontend/build/client/_app/immutable/entry/app.KrtMZ3my.js.br +0 -0
  732. package/frontend/build/client/_app/immutable/entry/app.KrtMZ3my.js.gz +0 -0
  733. package/frontend/build/client/_app/immutable/nodes/0.C8DodwXs.js +0 -11
  734. package/frontend/build/client/_app/immutable/nodes/0.C8DodwXs.js.br +0 -0
  735. package/frontend/build/client/_app/immutable/nodes/0.C8DodwXs.js.gz +0 -0
  736. package/frontend/build/client/_app/immutable/nodes/1.Df9sLw8b.js.br +0 -0
  737. package/frontend/build/client/_app/immutable/nodes/1.Df9sLw8b.js.gz +0 -0
  738. package/frontend/build/client/_app/immutable/nodes/10.DEbnxfND.js +0 -6
  739. package/frontend/build/client/_app/immutable/nodes/10.DEbnxfND.js.br +0 -0
  740. package/frontend/build/client/_app/immutable/nodes/10.DEbnxfND.js.gz +0 -0
  741. package/frontend/build/client/_app/immutable/nodes/11.BViaDK2m.js +0 -6
  742. package/frontend/build/client/_app/immutable/nodes/11.BViaDK2m.js.br +0 -0
  743. package/frontend/build/client/_app/immutable/nodes/11.BViaDK2m.js.gz +0 -0
  744. package/frontend/build/client/_app/immutable/nodes/12.BMSCSd88.js +0 -6
  745. package/frontend/build/client/_app/immutable/nodes/12.BMSCSd88.js.br +0 -0
  746. package/frontend/build/client/_app/immutable/nodes/12.BMSCSd88.js.gz +0 -0
  747. package/frontend/build/client/_app/immutable/nodes/2.BCPSg7H4.js.br +0 -0
  748. package/frontend/build/client/_app/immutable/nodes/2.BCPSg7H4.js.gz +0 -0
  749. package/frontend/build/client/_app/immutable/nodes/3.8BFAJoHT.js.br +0 -0
  750. package/frontend/build/client/_app/immutable/nodes/3.8BFAJoHT.js.gz +0 -0
  751. package/frontend/build/client/_app/immutable/nodes/4.D-YT_JJe.js +0 -6
  752. package/frontend/build/client/_app/immutable/nodes/4.D-YT_JJe.js.br +0 -0
  753. package/frontend/build/client/_app/immutable/nodes/4.D-YT_JJe.js.gz +0 -0
  754. package/frontend/build/client/_app/immutable/nodes/5.DVeH2eQP.js +0 -6
  755. package/frontend/build/client/_app/immutable/nodes/5.DVeH2eQP.js.br +0 -0
  756. package/frontend/build/client/_app/immutable/nodes/5.DVeH2eQP.js.gz +0 -0
  757. package/frontend/build/client/_app/immutable/nodes/6.DI7-IJhN.js +0 -6
  758. package/frontend/build/client/_app/immutable/nodes/6.DI7-IJhN.js.br +0 -0
  759. package/frontend/build/client/_app/immutable/nodes/6.DI7-IJhN.js.gz +0 -0
  760. package/frontend/build/client/_app/immutable/nodes/7.C-pKvVZy.js +0 -6
  761. package/frontend/build/client/_app/immutable/nodes/7.C-pKvVZy.js.br +0 -0
  762. package/frontend/build/client/_app/immutable/nodes/7.C-pKvVZy.js.gz +0 -0
  763. package/frontend/build/client/_app/immutable/nodes/8.93Mb3ofT.js +0 -9
  764. package/frontend/build/client/_app/immutable/nodes/8.93Mb3ofT.js.br +0 -0
  765. package/frontend/build/client/_app/immutable/nodes/8.93Mb3ofT.js.gz +0 -0
  766. package/frontend/build/client/_app/immutable/nodes/9.CvfGx3Hu.js.br +0 -0
  767. package/frontend/build/client/_app/immutable/nodes/9.CvfGx3Hu.js.gz +0 -0
  768. package/frontend/build/server/chunks/0-D5YWFygh.js +0 -22
  769. package/frontend/build/server/chunks/0-D5YWFygh.js.map +0 -5
  770. package/frontend/build/server/chunks/10-l6_ikL_D.js +0 -14
  771. package/frontend/build/server/chunks/10-l6_ikL_D.js.map +0 -5
  772. package/frontend/build/server/chunks/11-CNLerze_.js +0 -14
  773. package/frontend/build/server/chunks/11-CNLerze_.js.map +0 -5
  774. package/frontend/build/server/chunks/12-De6Ol6pu.js +0 -14
  775. package/frontend/build/server/chunks/12-De6Ol6pu.js.map +0 -5
  776. package/frontend/build/server/chunks/2-Dc_rKWoK.js +0 -14
  777. package/frontend/build/server/chunks/3-DrRqVrcX.js +0 -14
  778. package/frontend/build/server/chunks/3-DrRqVrcX.js.map +0 -5
  779. package/frontend/build/server/chunks/4-Bo04DC5Z.js +0 -14
  780. package/frontend/build/server/chunks/4-Bo04DC5Z.js.map +0 -5
  781. package/frontend/build/server/chunks/5-CFeE5dPZ.js +0 -14
  782. package/frontend/build/server/chunks/5-CFeE5dPZ.js.map +0 -5
  783. package/frontend/build/server/chunks/6-DZk37MZH.js +0 -14
  784. package/frontend/build/server/chunks/6-DZk37MZH.js.map +0 -5
  785. package/frontend/build/server/chunks/7-DiQJZEF_.js +0 -14
  786. package/frontend/build/server/chunks/7-DiQJZEF_.js.map +0 -5
  787. package/frontend/build/server/chunks/8-CKPVFOqJ.js +0 -14
  788. package/frontend/build/server/chunks/8-CKPVFOqJ.js.map +0 -5
  789. package/frontend/build/server/chunks/9-DirZG_Lu.js +0 -14
  790. package/frontend/build/server/chunks/BackLink-BJ8NaemM.js.map +0 -5
  791. package/frontend/build/server/chunks/Badge-44ZTDx0V.js.map +0 -5
  792. package/frontend/build/server/chunks/ConfirmModal-C0EAXcq_.js.map +0 -5
  793. package/frontend/build/server/chunks/EmptyState-BA_eXaeR.js.map +0 -5
  794. package/frontend/build/server/chunks/Modal-DChG187n.js.map +0 -5
  795. package/frontend/build/server/chunks/Toast-v-q4ZnYq.js.map +0 -5
  796. package/frontend/build/server/chunks/_layout.svelte-CHVI3Prt.js +0 -29
  797. package/frontend/build/server/chunks/_layout.svelte-CHVI3Prt.js.map +0 -5
  798. package/frontend/build/server/chunks/_page.svelte-1as75nPc.js.map +0 -5
  799. package/frontend/build/server/chunks/_page.svelte-1jo8MapI.js.map +0 -5
  800. package/frontend/build/server/chunks/_page.svelte-8gELc_B1.js +0 -729
  801. package/frontend/build/server/chunks/_page.svelte-8gELc_B1.js.map +0 -5
  802. package/frontend/build/server/chunks/_page.svelte-BuFusRK1.js.map +0 -5
  803. package/frontend/build/server/chunks/_page.svelte-CAVyp70V.js +0 -250
  804. package/frontend/build/server/chunks/_page.svelte-CAVyp70V.js.map +0 -5
  805. package/frontend/build/server/chunks/_page.svelte-CB8-QBNg.js.map +0 -5
  806. package/frontend/build/server/chunks/_page.svelte-CWWeZuid.js.map +0 -5
  807. package/frontend/build/server/chunks/_page.svelte-D3E6Eojd.js.map +0 -5
  808. package/frontend/build/server/chunks/_page.svelte-Kg69DDaM.js.map +0 -5
  809. package/frontend/build/server/chunks/_page.svelte-L9fuiN_q.js +0 -57
  810. package/frontend/build/server/chunks/_page.svelte-L9fuiN_q.js.map +0 -5
  811. package/frontend/build/server/chunks/common-DYYTVHPw.js.map +0 -5
  812. package/frontend/build/server/chunks/constants-CXTaQaB6.js.map +0 -5
  813. package/frontend/build/server/chunks/reports2-BtElN_53.js.map +0 -5
  814. package/frontend/build/server/chunks/repository-FYYV_vKE.js.map +0 -5
  815. package/frontend/build/server/chunks/runner-DC7hXbnY.js +0 -37
  816. package/frontend/build/server/chunks/runner-DC7hXbnY.js.map +0 -5
  817. package/frontend/src/lib/components/ui/Toast.svelte +0 -24
  818. /package/frontend/.svelte-kit/output/client/_app/immutable/assets/{3.BR3wgXcZ.css → 4.BR3wgXcZ.css} +0 -0
  819. /package/frontend/build/client/_app/immutable/assets/{3.BR3wgXcZ.css → 4.BR3wgXcZ.css} +0 -0
  820. /package/frontend/build/client/_app/immutable/assets/{3.BR3wgXcZ.css.br → 4.BR3wgXcZ.css.br} +0 -0
  821. /package/frontend/build/client/_app/immutable/assets/{3.BR3wgXcZ.css.gz → 4.BR3wgXcZ.css.gz} +0 -0
@@ -0,0 +1,175 @@
1
+ /*
2
+ * This file is part of Plum.
3
+ * Licensed under the MIT License. See LICENSE file in the project root for details.
4
+ */
5
+
6
+ import{a as ho,t as po,s as mo}from"./6VDMVB5U.js";import"./CtgCYzu5.js";import{t as go,d as vi,j as yo,k as bi}from"./BIf7lHIm.js";import{s as wo}from"./C4Z3p6jE.js";import{p as Si}from"./D72giPTu.js";var ht={},vo=Object.defineProperty,bo=(e,t,r)=>t in e?vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ei=(e,t,r)=>bo(e,typeof t!="symbol"?t+"":t,r);function Qe(){}function Ci(e,t){for(const r in t)e[r]=t[r];return e}function dn(e){return e()}function xi(){return Object.create(null)}function je(e){e.forEach(dn)}function pn(e){return typeof e=="function"}function Jr(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function So(e){return Object.keys(e).length===0}function Ri(e){const t={};for(const r in e)r[0]!=="$"&&(t[r]=e[r]);return t}function G(e,t){e.appendChild(t)}function be(e,t,r){e.insertBefore(t,r||null)}function ye(e){e.parentNode&&e.parentNode.removeChild(e)}function kt(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function ne(e){return document.createElement(e)}function dt(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Ae(e){return document.createTextNode(e)}function ce(){return Ae(" ")}function Eo(){return Ae("")}function Ue(e,t,r,s){return e.addEventListener(t,r,s),()=>e.removeEventListener(t,r,s)}function F(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function Co(e){return Array.from(e.childNodes)}function pt(e,t){t=""+t,e.data!==t&&(e.data=t)}function ie(e,t,r,s){r==null?e.style.removeProperty(t):e.style.setProperty(t,r,"")}function qe(e,t,r){e.classList.toggle(t,!!r)}function xo(e,t,{bubbles:r=!1,cancelable:s=!1}={}){return new CustomEvent(e,{detail:t,bubbles:r,cancelable:s})}let Ke;function Ye(e){Ke=e}function vt(){if(!Ke)throw new Error("Function called outside component initialization");return Ke}function mn(e){vt().$$.on_mount.push(e)}function Ro(e){vt().$$.after_update.push(e)}function gn(e){vt().$$.on_destroy.push(e)}function Mo(){const e=vt();return(t,r,{cancelable:s=!1}={})=>{const i=e.$$.callbacks[t];if(i){const a=xo(t,r,{cancelable:s});return i.slice().forEach(o=>{o.call(e,a)}),!a.defaultPrevented}return!0}}const Pe=[],_e=[];let ze=[];const zr=[],_o=Promise.resolve();let qr=!1;function No(){qr||(qr=!0,_o.then(yn))}function Wr(e){ze.push(e)}function Ao(e){zr.push(e)}const Pt=new Set;let Te=0;function yn(){if(Te!==0)return;const e=Ke;do{try{for(;Te<Pe.length;){const t=Pe[Te];Te++,Ye(t),Oo(t.$$)}}catch(t){throw Pe.length=0,Te=0,t}for(Ye(null),Pe.length=0,Te=0;_e.length;)_e.pop()();for(let t=0;t<ze.length;t+=1){const r=ze[t];Pt.has(r)||(Pt.add(r),r())}ze.length=0}while(Pe.length);for(;zr.length;)zr.pop()();qr=!1,Pt.clear(),Ye(e)}function Oo(e){if(e.fragment!==null){e.update(),je(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Wr)}}function Do(e){const t=[],r=[];ze.forEach(s=>e.indexOf(s)===-1?t.push(s):r.push(s)),r.forEach(s=>s()),ze=t}const ft=new Set;let Me;function wn(){Me={r:0,c:[],p:Me}}function vn(){Me.r||je(Me.c),Me=Me.p}function ve(e,t){e&&e.i&&(ft.delete(e),e.i(t))}function We(e,t,r,s){if(e&&e.o){if(ft.has(e))return;ft.add(e),Me.c.push(()=>{ft.delete(e),s&&(r&&e.d(1),s())}),e.o(t)}else s&&s()}function ke(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function To(e,t,r){const s=e.$$.props[t];s!==void 0&&(e.$$.bound[s]=r,r(e.$$.ctx[s]))}function bn(e){e&&e.c()}function Xr(e,t,r){const{fragment:s,after_update:i}=e.$$;s&&s.m(t,r),Wr(()=>{const a=e.$$.on_mount.map(dn).filter(pn);e.$$.on_destroy?e.$$.on_destroy.push(...a):je(a),e.$$.on_mount=[]}),i.forEach(Wr)}function Qr(e,t){const r=e.$$;r.fragment!==null&&(Do(r.after_update),je(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function ko(e,t){e.$$.dirty[0]===-1&&(Pe.push(e),No(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Kr(e,t,r,s,i,a,o=null,l=[-1]){const f=Ke;Ye(e);const c=e.$$={fragment:null,ctx:[],props:a,update:Qe,not_equal:i,bound:xi(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(f?f.$$.context:[])),callbacks:xi(),dirty:l,skip_bound:!1,root:t.target||f.$$.root};o&&o(c.root);let n=!1;if(c.ctx=r?r(e,t.props||{},(d,u,...h)=>{const p=h.length?h[0]:u;return c.ctx&&i(c.ctx[d],c.ctx[d]=p)&&(!c.skip_bound&&c.bound[d]&&c.bound[d](p),n&&ko(e,d)),u}):[],c.update(),n=!0,je(c.before_update),c.fragment=s?s(c.ctx):!1,t.target){if(t.hydrate){const d=Co(t.target);c.fragment&&c.fragment.l(d),d.forEach(ye)}else c.fragment&&c.fragment.c();t.intro&&ve(e.$$.fragment),Xr(e,t.target,t.anchor),yn()}Ye(f)}class Zr{constructor(){Ei(this,"$$"),Ei(this,"$$set")}$destroy(){Qr(this,1),this.$destroy=Qe}$on(t,r){if(!pn(r))return Qe;const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(r),()=>{const i=s.indexOf(r);i!==-1&&s.splice(i,1)}}$set(t){this.$$set&&!So(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Po="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Po);var Io=Object.defineProperty,Lo=(e,t,r)=>t in e?Io(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,L=(e,t,r)=>Lo(e,typeof t!="symbol"?t+"":t,r),Mi,Fo=Object.defineProperty,Uo=(e,t,r)=>t in e?Fo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_i=(e,t,r)=>Uo(e,typeof t!="symbol"?t+"":t,r),te=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(te||{});Date.now().toString();function Bo(e){return e.nodeType===e.ELEMENT_NODE}class Sn{constructor(){_i(this,"idNodeMap",new Map),_i(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(s=>this.removeNodeFromMap(s))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const s=r.id;this.idNodeMap.set(s,t),this.nodeMetaMap.set(t,r)}replace(t,r){const s=this.getNode(t);if(s){const i=this.nodeMetaMap.get(s);i&&this.nodeMetaMap.set(r,i)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function En(){return new Sn}function zo(e){return e.toLowerCase()}function qo(e,t){return!e||!t||e.type!==t.type?!1:e.type===te.Document?e.compatMode===t.compatMode:e.type===te.DocumentType?e.name===t.name&&e.publicId===t.publicId&&e.systemId===t.systemId:e.type===te.Comment||e.type===te.Text||e.type===te.CDATA?e.textContent===t.textContent:e.type===te.Element?e.tagName===t.tagName&&JSON.stringify(e.attributes)===JSON.stringify(t.attributes)&&e.isSVG===t.isSVG&&e.needBlock===t.needBlock:!1}function Wo(e,t){let r;try{r=new URL(e,t??window.location.href)}catch{return null}const s=/\.([0-9a-z]+)(?:$)/i,i=r.pathname.match(s);return(i==null?void 0:i[1])??null}const jo=/(max|min)-device-(width|height)/,Ni=new RegExp(jo.source,"g"),Vo={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(Ni)&&(e.params=e.params.replace(Ni,"$1-$2"))}}}},Go={postcssPlugin:"postcss-hover-classes",prepare:function(){const e=[];return{Rule:function(t){e.indexOf(t)===-1&&(e.push(t),t.selectors.forEach(function(r){r.includes(":hover")&&(t.selector+=`,
7
+ `+r.replace(/:hover/g,".\\:hover"))}))}}}};function $o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ho(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function s(){return this instanceof s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var i=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(r,s,i.get?i:{enumerable:!0,get:function(){return e[s]}})}),r}var rt={exports:{}},Ai;function Yo(){if(Ai)return rt.exports;Ai=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return rt.exports=t(),rt.exports.createColors=t,rt.exports}const Jo={},Xo=Object.freeze(Object.defineProperty({__proto__:null,default:Jo},Symbol.toStringTag,{value:"Module"})),de=Ho(Xo);var It,Oi;function ei(){if(Oi)return It;Oi=1;let e=Yo(),t=de;class r extends Error{constructor(i,a,o,l,f,c){super(i),this.name="CssSyntaxError",this.reason=i,f&&(this.file=f),l&&(this.source=l),c&&(this.plugin=c),typeof a<"u"&&typeof o<"u"&&(typeof a=="number"?(this.line=a,this.column=o):(this.line=a.line,this.column=a.column,this.endLine=o.line,this.endColumn=o.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(i){if(!this.source)return"";let a=this.source;i==null&&(i=e.isColorSupported),t&&i&&(a=t(a));let o=a.split(/\r?\n/),l=Math.max(this.line-3,0),f=Math.min(this.line+2,o.length),c=String(f).length,n,d;if(i){let{bold:u,gray:h,red:p}=e.createColors(!0);n=m=>u(p(m)),d=m=>h(m)}else n=d=u=>u;return o.slice(l,f).map((u,h)=>{let p=l+1+h,m=" "+(" "+p).slice(-c)+" | ";if(p===this.line){let g=d(m.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+d(m)+u+`
8
+ `+g+n("^")}return" "+d(m)+u}).join(`
9
+ `)}toString(){let i=this.showSourceCode();return i&&(i=`
10
+
11
+ `+i+`
12
+ `),this.name+": "+this.message+i}}return It=r,r.default=r,It}var it={},Di;function ti(){return Di||(Di=1,it.isClean=Symbol("isClean"),it.my=Symbol("my")),it}var Lt,Ti;function Cn(){if(Ti)return Lt;Ti=1;const e={after:`
13
+ `,beforeClose:`
14
+ `,beforeComment:`
15
+ `,beforeDecl:`
16
+ `,beforeOpen:" ",beforeRule:`
17
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(s){return s[0].toUpperCase()+s.slice(1)}class r{constructor(i){this.builder=i}atrule(i,a){let o="@"+i.name,l=i.params?this.rawValue(i,"params"):"";if(typeof i.raws.afterName<"u"?o+=i.raws.afterName:l&&(o+=" "),i.nodes)this.block(i,o+l);else{let f=(i.raws.between||"")+(a?";":"");this.builder(o+l+f,i)}}beforeAfter(i,a){let o;i.type==="decl"?o=this.raw(i,null,"beforeDecl"):i.type==="comment"?o=this.raw(i,null,"beforeComment"):a==="before"?o=this.raw(i,null,"beforeRule"):o=this.raw(i,null,"beforeClose");let l=i.parent,f=0;for(;l&&l.type!=="root";)f+=1,l=l.parent;if(o.includes(`
18
+ `)){let c=this.raw(i,null,"indent");if(c.length)for(let n=0;n<f;n++)o+=c}return o}block(i,a){let o=this.raw(i,"between","beforeOpen");this.builder(a+o+"{",i,"start");let l;i.nodes&&i.nodes.length?(this.body(i),l=this.raw(i,"after")):l=this.raw(i,"after","emptyBody"),l&&this.builder(l),this.builder("}",i,"end")}body(i){let a=i.nodes.length-1;for(;a>0&&i.nodes[a].type==="comment";)a-=1;let o=this.raw(i,"semicolon");for(let l=0;l<i.nodes.length;l++){let f=i.nodes[l],c=this.raw(f,"before");c&&this.builder(c),this.stringify(f,a!==l||o)}}comment(i){let a=this.raw(i,"left","commentLeft"),o=this.raw(i,"right","commentRight");this.builder("/*"+a+i.text+o+"*/",i)}decl(i,a){let o=this.raw(i,"between","colon"),l=i.prop+o+this.rawValue(i,"value");i.important&&(l+=i.raws.important||" !important"),a&&(l+=";"),this.builder(l,i)}document(i){this.body(i)}raw(i,a,o){let l;if(o||(o=a),a&&(l=i.raws[a],typeof l<"u"))return l;let f=i.parent;if(o==="before"&&(!f||f.type==="root"&&f.first===i||f&&f.type==="document"))return"";if(!f)return e[o];let c=i.root();if(c.rawCache||(c.rawCache={}),typeof c.rawCache[o]<"u")return c.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(i,o);{let n="raw"+t(o);this[n]?l=this[n](c,i):c.walk(d=>{if(l=d.raws[a],typeof l<"u")return!1})}return typeof l>"u"&&(l=e[o]),c.rawCache[o]=l,l}rawBeforeClose(i){let a;return i.walk(o=>{if(o.nodes&&o.nodes.length>0&&typeof o.raws.after<"u")return a=o.raws.after,a.includes(`
19
+ `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawBeforeComment(i,a){let o;return i.walkComments(l=>{if(typeof l.raws.before<"u")return o=l.raws.before,o.includes(`
20
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(a,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeDecl(i,a){let o;return i.walkDecls(l=>{if(typeof l.raws.before<"u")return o=l.raws.before,o.includes(`
21
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(a,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeOpen(i){let a;return i.walk(o=>{if(o.type!=="decl"&&(a=o.raws.between,typeof a<"u"))return!1}),a}rawBeforeRule(i){let a;return i.walk(o=>{if(o.nodes&&(o.parent!==i||i.first!==o)&&typeof o.raws.before<"u")return a=o.raws.before,a.includes(`
22
+ `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawColon(i){let a;return i.walkDecls(o=>{if(typeof o.raws.between<"u")return a=o.raws.between.replace(/[^\s:]/g,""),!1}),a}rawEmptyBody(i){let a;return i.walk(o=>{if(o.nodes&&o.nodes.length===0&&(a=o.raws.after,typeof a<"u"))return!1}),a}rawIndent(i){if(i.raws.indent)return i.raws.indent;let a;return i.walk(o=>{let l=o.parent;if(l&&l!==i&&l.parent&&l.parent===i&&typeof o.raws.before<"u"){let f=o.raws.before.split(`
23
+ `);return a=f[f.length-1],a=a.replace(/\S/g,""),!1}}),a}rawSemicolon(i){let a;return i.walk(o=>{if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(a=o.raws.semicolon,typeof a<"u"))return!1}),a}rawValue(i,a){let o=i[a],l=i.raws[a];return l&&l.value===o?l.raw:o}root(i){this.body(i),i.raws.after&&this.builder(i.raws.after)}rule(i){this.block(i,this.rawValue(i,"selector")),i.raws.ownSemicolon&&this.builder(i.raws.ownSemicolon,i,"end")}stringify(i,a){if(!this[i.type])throw new Error("Unknown AST node type "+i.type+". Maybe you need to change PostCSS stringifier.");this[i.type](i,a)}}return Lt=r,r.default=r,Lt}var Ft,ki;function bt(){if(ki)return Ft;ki=1;let e=Cn();function t(r,s){new e(s).stringify(r)}return Ft=t,t.default=t,Ft}var Ut,Pi;function St(){if(Pi)return Ut;Pi=1;let{isClean:e,my:t}=ti(),r=ei(),s=Cn(),i=bt();function a(l,f){let c=new l.constructor;for(let n in l){if(!Object.prototype.hasOwnProperty.call(l,n)||n==="proxyCache")continue;let d=l[n],u=typeof d;n==="parent"&&u==="object"?f&&(c[n]=f):n==="source"?c[n]=d:Array.isArray(d)?c[n]=d.map(h=>a(h,c)):(u==="object"&&d!==null&&(d=a(d)),c[n]=d)}return c}class o{constructor(f={}){this.raws={},this[e]=!1,this[t]=!0;for(let c in f)if(c==="nodes"){this.nodes=[];for(let n of f[c])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[c]=f[c]}addToError(f){if(f.postcssNode=this,f.stack&&this.source&&/\n\s{4}at /.test(f.stack)){let c=this.source;f.stack=f.stack.replace(/\n\s{4}at /,`$&${c.input.from}:${c.start.line}:${c.start.column}$&`)}return f}after(f){return this.parent.insertAfter(this,f),this}assign(f={}){for(let c in f)this[c]=f[c];return this}before(f){return this.parent.insertBefore(this,f),this}cleanRaws(f){delete this.raws.before,delete this.raws.after,f||delete this.raws.between}clone(f={}){let c=a(this);for(let n in f)c[n]=f[n];return c}cloneAfter(f={}){let c=this.clone(f);return this.parent.insertAfter(this,c),c}cloneBefore(f={}){let c=this.clone(f);return this.parent.insertBefore(this,c),c}error(f,c={}){if(this.source){let{end:n,start:d}=this.rangeBy(c);return this.source.input.error(f,{column:d.column,line:d.line},{column:n.column,line:n.line},c)}return new r(f)}getProxyProcessor(){return{get(f,c){return c==="proxyOf"?f:c==="root"?()=>f.root().toProxy():f[c]},set(f,c,n){return f[c]===n||(f[c]=n,(c==="prop"||c==="value"||c==="name"||c==="params"||c==="important"||c==="text")&&f.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let f=this;for(;f=f.parent;)f[e]=!1}}next(){if(!this.parent)return;let f=this.parent.index(this);return this.parent.nodes[f+1]}positionBy(f,c){let n=this.source.start;if(f.index)n=this.positionInside(f.index,c);else if(f.word){c=this.toString();let d=c.indexOf(f.word);d!==-1&&(n=this.positionInside(d,c))}return n}positionInside(f,c){let n=c||this.toString(),d=this.source.start.column,u=this.source.start.line;for(let h=0;h<f;h++)n[h]===`
24
+ `?(d=1,u+=1):d+=1;return{column:d,line:u}}prev(){if(!this.parent)return;let f=this.parent.index(this);return this.parent.nodes[f-1]}rangeBy(f){let c={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:c.column+1,line:c.line};if(f.word){let d=this.toString(),u=d.indexOf(f.word);u!==-1&&(c=this.positionInside(u,d),n=this.positionInside(u+f.word.length,d))}else f.start?c={column:f.start.column,line:f.start.line}:f.index&&(c=this.positionInside(f.index)),f.end?n={column:f.end.column,line:f.end.line}:typeof f.endIndex=="number"?n=this.positionInside(f.endIndex):f.index&&(n=this.positionInside(f.index+1));return(n.line<c.line||n.line===c.line&&n.column<=c.column)&&(n={column:c.column+1,line:c.line}),{end:n,start:c}}raw(f,c){return new s().raw(this,f,c)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...f){if(this.parent){let c=this,n=!1;for(let d of f)d===this?n=!0:n?(this.parent.insertAfter(c,d),c=d):this.parent.insertBefore(c,d);n||this.remove()}return this}root(){let f=this;for(;f.parent&&f.parent.type!=="document";)f=f.parent;return f}toJSON(f,c){let n={},d=c==null;c=c||new Map;let u=0;for(let h in this){if(!Object.prototype.hasOwnProperty.call(this,h)||h==="parent"||h==="proxyCache")continue;let p=this[h];if(Array.isArray(p))n[h]=p.map(m=>typeof m=="object"&&m.toJSON?m.toJSON(null,c):m);else if(typeof p=="object"&&p.toJSON)n[h]=p.toJSON(null,c);else if(h==="source"){let m=c.get(p.input);m==null&&(m=u,c.set(p.input,u),u++),n[h]={end:p.end,inputId:m,start:p.start}}else n[h]=p}return d&&(n.inputs=[...c.keys()].map(h=>h.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(f=i){f.stringify&&(f=f.stringify);let c="";return f(this,n=>{c+=n}),c}warn(f,c,n){let d={node:this};for(let u in n)d[u]=n[u];return f.warn(c,d)}get proxyOf(){return this}}return Ut=o,o.default=o,Ut}var Bt,Ii;function Et(){if(Ii)return Bt;Ii=1;let e=St();class t extends e{constructor(s){s&&typeof s.value<"u"&&typeof s.value!="string"&&(s={...s,value:String(s.value)}),super(s),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Bt=t,t.default=t,Bt}var zt,Li;function Qo(){if(Li)return zt;Li=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return zt={nanoid:(s=21)=>{let i="",a=s;for(;a--;)i+=e[Math.random()*64|0];return i},customAlphabet:(s,i=21)=>(a=i)=>{let o="",l=a;for(;l--;)o+=s[Math.random()*s.length|0];return o}},zt}var qt,Fi;function xn(){if(Fi)return qt;Fi=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=de,{existsSync:r,readFileSync:s}=de,{dirname:i,join:a}=de;function o(f){return Buffer?Buffer.from(f,"base64").toString():window.atob(f)}class l{constructor(c,n){if(n.map===!1)return;this.loadAnnotation(c),this.inline=this.startWith(this.annotation,"data:");let d=n.map?n.map.prev:void 0,u=this.loadMap(n.from,d);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=i(this.mapFile)),u&&(this.text=u)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(c){let n=/^data:application\/json;charset=utf-?8;base64,/,d=/^data:application\/json;base64,/,u=/^data:application\/json;charset=utf-?8,/,h=/^data:application\/json,/;if(u.test(c)||h.test(c))return decodeURIComponent(c.substr(RegExp.lastMatch.length));if(n.test(c)||d.test(c))return o(c.substr(RegExp.lastMatch.length));let p=c.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+p)}getAnnotationURL(c){return c.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(c){return typeof c!="object"?!1:typeof c.mappings=="string"||typeof c._mappings=="string"||Array.isArray(c.sections)}loadAnnotation(c){let n=c.match(/\/\*\s*# sourceMappingURL=/gm);if(!n)return;let d=c.lastIndexOf(n.pop()),u=c.indexOf("*/",d);d>-1&&u>-1&&(this.annotation=this.getAnnotationURL(c.substring(d,u)))}loadFile(c){if(this.root=i(c),r(c))return this.mapFile=c,s(c,"utf-8").toString().trim()}loadMap(c,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let d=n(c);if(d){let u=this.loadFile(d);if(!u)throw new Error("Unable to load previous source map: "+d.toString());return u}}else{if(n instanceof e)return t.fromSourceMap(n).toString();if(n instanceof t)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let d=this.annotation;return c&&(d=a(i(c),d)),this.loadFile(d)}}}startWith(c,n){return c?c.substr(0,n.length)===n:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return qt=l,l.default=l,qt}var Wt,Ui;function Ct(){if(Ui)return Wt;Ui=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=de,{fileURLToPath:r,pathToFileURL:s}=de,{isAbsolute:i,resolve:a}=de,{nanoid:o}=Qo(),l=de,f=ei(),c=xn(),n=Symbol("fromOffsetCache"),d=!!(e&&t),u=!!(a&&i);class h{constructor(m,g={}){if(m===null||typeof m>"u"||typeof m=="object"&&!m.toString)throw new Error(`PostCSS received ${m} instead of CSS string`);if(this.css=m.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!u||/^\w+:\/\//.test(g.from)||i(g.from)?this.file=g.from:this.file=a(g.from)),u&&d){let b=new c(this.css,g);if(b.text){this.map=b;let v=b.consumer().file;!this.file&&v&&(this.file=this.mapResolve(v))}}this.file||(this.id="<input css "+o(6)+">"),this.map&&(this.map.file=this.from)}error(m,g,b,v={}){let S,w,y;if(g&&typeof g=="object"){let C=g,M=b;if(typeof C.offset=="number"){let T=this.fromOffset(C.offset);g=T.line,b=T.col}else g=C.line,b=C.column;if(typeof M.offset=="number"){let T=this.fromOffset(M.offset);w=T.line,y=T.col}else w=M.line,y=M.column}else if(!b){let C=this.fromOffset(g);g=C.line,b=C.col}let E=this.origin(g,b,w,y);return E?S=new f(m,E.endLine===void 0?E.line:{column:E.column,line:E.line},E.endLine===void 0?E.column:{column:E.endColumn,line:E.endLine},E.source,E.file,v.plugin):S=new f(m,w===void 0?g:{column:b,line:g},w===void 0?b:{column:y,line:w},this.css,this.file,v.plugin),S.input={column:b,endColumn:y,endLine:w,line:g,source:this.css},this.file&&(s&&(S.input.url=s(this.file).toString()),S.input.file=this.file),S}fromOffset(m){let g,b;if(this[n])b=this[n];else{let S=this.css.split(`
25
+ `);b=new Array(S.length);let w=0;for(let y=0,E=S.length;y<E;y++)b[y]=w,w+=S[y].length+1;this[n]=b}g=b[b.length-1];let v=0;if(m>=g)v=b.length-1;else{let S=b.length-2,w;for(;v<S;)if(w=v+(S-v>>1),m<b[w])S=w-1;else if(m>=b[w+1])v=w+1;else{v=w;break}}return{col:m-b[v]+1,line:v+1}}mapResolve(m){return/^\w+:\/\//.test(m)?m:a(this.map.consumer().sourceRoot||this.map.root||".",m)}origin(m,g,b,v){if(!this.map)return!1;let S=this.map.consumer(),w=S.originalPositionFor({column:g,line:m});if(!w.source)return!1;let y;typeof b=="number"&&(y=S.originalPositionFor({column:v,line:b}));let E;i(w.source)?E=s(w.source):E=new URL(w.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let C={column:w.column,endColumn:y&&y.column,endLine:y&&y.line,line:w.line,url:E.toString()};if(E.protocol==="file:")if(r)C.file=r(E);else throw new Error("file: protocol is not available in this PostCSS build");let M=S.sourceContentFor(w.source);return M&&(C.source=M),C}toJSON(){let m={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(m[g]=this[g]);return this.map&&(m.map={...this.map},m.map.consumerCache&&(m.map.consumerCache=void 0)),m}get from(){return this.file||this.id}}return Wt=h,h.default=h,l&&l.registerInput&&l.registerInput(h),Wt}var jt,Bi;function Rn(){if(Bi)return jt;Bi=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=de,{dirname:r,relative:s,resolve:i,sep:a}=de,{pathToFileURL:o}=de,l=Ct(),f=!!(e&&t),c=!!(r&&i&&s&&a);class n{constructor(u,h,p,m){this.stringify=u,this.mapOpts=p.map||{},this.root=h,this.opts=p,this.css=m,this.originalCSS=m,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let u;this.isInline()?u="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?u=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?u=this.mapOpts.annotation(this.opts.to,this.root):u=this.outputFile()+".map";let h=`
26
+ `;this.css.includes(`\r
27
+ `)&&(h=`\r
28
+ `),this.css+=h+"/*# sourceMappingURL="+u+" */"}applyPrevMaps(){for(let u of this.previous()){let h=this.toUrl(this.path(u.file)),p=u.root||r(u.file),m;this.mapOpts.sourcesContent===!1?(m=new e(u.text),m.sourcesContent&&(m.sourcesContent=null)):m=u.consumer(),this.map.applySourceMap(m,h,this.toUrl(this.path(p)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let u;for(let h=this.root.nodes.length-1;h>=0;h--)u=this.root.nodes[h],u.type==="comment"&&u.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(h)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),c&&f&&this.isMap())return this.generateMap();{let u="";return this.stringify(this.root,h=>{u+=h}),[u]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let u=this.previous()[0].consumer();u.file=this.outputFile(),this.map=t.fromSourceMap(u,{ignoreInvalidMapping:!0})}else this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let u=1,h=1,p="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,b;this.stringify(this.root,(v,S,w)=>{if(this.css+=v,S&&w!=="end"&&(m.generated.line=u,m.generated.column=h-1,S.source&&S.source.start?(m.source=this.sourcePath(S),m.original.line=S.source.start.line,m.original.column=S.source.start.column-1,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,this.map.addMapping(m))),g=v.match(/\n/g),g?(u+=g.length,b=v.lastIndexOf(`
29
+ `),h=v.length-b):h+=v.length,S&&w!=="start"){let y=S.parent||{raws:{}};(!(S.type==="decl"||S.type==="atrule"&&!S.nodes)||S!==y.last||y.raws.semicolon)&&(S.source&&S.source.end?(m.source=this.sourcePath(S),m.original.line=S.source.end.line,m.original.column=S.source.end.column-1,m.generated.line=u,m.generated.column=h-2,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,m.generated.line=u,m.generated.column=h-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(u=>u.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let u=this.mapOpts.annotation;return typeof u<"u"&&u!==!0?!1:this.previous().length?this.previous().some(h=>h.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(u=>u.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(u){if(this.mapOpts.absolute||u.charCodeAt(0)===60||/^\w+:\/\//.test(u))return u;let h=this.memoizedPaths.get(u);if(h)return h;let p=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=r(i(p,this.mapOpts.annotation)));let m=s(p,u);return this.memoizedPaths.set(u,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(u=>{if(u.source&&u.source.input.map){let h=u.source.input.map;this.previousMaps.includes(h)||this.previousMaps.push(h)}});else{let u=new l(this.originalCSS,this.opts);u.map&&this.previousMaps.push(u.map)}return this.previousMaps}setSourcesContent(){let u={};if(this.root)this.root.walk(h=>{if(h.source){let p=h.source.input.from;if(p&&!u[p]){u[p]=!0;let m=this.usesFileUrls?this.toFileUrl(p):this.toUrl(this.path(p));this.map.setSourceContent(m,h.source.input.css)}}});else if(this.css){let h=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(h,this.css)}}sourcePath(u){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(u.source.input.from):this.toUrl(this.path(u.source.input.from))}toBase64(u){return Buffer?Buffer.from(u).toString("base64"):window.btoa(unescape(encodeURIComponent(u)))}toFileUrl(u){let h=this.memoizedFileURLs.get(u);if(h)return h;if(o){let p=o(u).toString();return this.memoizedFileURLs.set(u,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(u){let h=this.memoizedURLs.get(u);if(h)return h;a==="\\"&&(u=u.replace(/\\/g,"/"));let p=encodeURI(u).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(u,p),p}}return jt=n,jt}var Vt,zi;function xt(){if(zi)return Vt;zi=1;let e=St();class t extends e{constructor(s){super(s),this.type="comment"}}return Vt=t,t.default=t,Vt}var Gt,qi;function Oe(){if(qi)return Gt;qi=1;let{isClean:e,my:t}=ti(),r=Et(),s=xt(),i=St(),a,o,l,f;function c(u){return u.map(h=>(h.nodes&&(h.nodes=c(h.nodes)),delete h.source,h))}function n(u){if(u[e]=!1,u.proxyOf.nodes)for(let h of u.proxyOf.nodes)n(h)}class d extends i{append(...h){for(let p of h){let m=this.normalize(p,this.last);for(let g of m)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(h){if(super.cleanRaws(h),this.nodes)for(let p of this.nodes)p.cleanRaws(h)}each(h){if(!this.proxyOf.nodes)return;let p=this.getIterator(),m,g;for(;this.indexes[p]<this.proxyOf.nodes.length&&(m=this.indexes[p],g=h(this.proxyOf.nodes[m],m),g!==!1);)this.indexes[p]+=1;return delete this.indexes[p],g}every(h){return this.nodes.every(h)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let h=this.lastEach;return this.indexes[h]=0,h}getProxyProcessor(){return{get(h,p){return p==="proxyOf"?h:h[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...m)=>h[p](...m.map(g=>typeof g=="function"?(b,v)=>g(b.toProxy(),v):g)):p==="every"||p==="some"?m=>h[p]((g,...b)=>m(g.toProxy(),...b)):p==="root"?()=>h.root().toProxy():p==="nodes"?h.nodes.map(m=>m.toProxy()):p==="first"||p==="last"?h[p].toProxy():h[p]:h[p]},set(h,p,m){return h[p]===m||(h[p]=m,(p==="name"||p==="params"||p==="selector")&&h.markDirty()),!0}}}index(h){return typeof h=="number"?h:(h.proxyOf&&(h=h.proxyOf),this.proxyOf.nodes.indexOf(h))}insertAfter(h,p){let m=this.index(h),g=this.normalize(p,this.proxyOf.nodes[m]).reverse();m=this.index(h);for(let v of g)this.proxyOf.nodes.splice(m+1,0,v);let b;for(let v in this.indexes)b=this.indexes[v],m<b&&(this.indexes[v]=b+g.length);return this.markDirty(),this}insertBefore(h,p){let m=this.index(h),g=m===0?"prepend":!1,b=this.normalize(p,this.proxyOf.nodes[m],g).reverse();m=this.index(h);for(let S of b)this.proxyOf.nodes.splice(m,0,S);let v;for(let S in this.indexes)v=this.indexes[S],m<=v&&(this.indexes[S]=v+b.length);return this.markDirty(),this}normalize(h,p){if(typeof h=="string")h=c(a(h).nodes);else if(typeof h>"u")h=[];else if(Array.isArray(h)){h=h.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type==="root"&&this.type!=="document"){h=h.nodes.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type)h=[h];else if(h.prop){if(typeof h.value>"u")throw new Error("Value field is missed in node creation");typeof h.value!="string"&&(h.value=String(h.value)),h=[new r(h)]}else if(h.selector)h=[new o(h)];else if(h.name)h=[new l(h)];else if(h.text)h=[new s(h)];else throw new Error("Unknown node type in node creation");return h.map(g=>(g[t]||d.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&n(g),typeof g.raws.before>"u"&&p&&typeof p.raws.before<"u"&&(g.raws.before=p.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...h){h=h.reverse();for(let p of h){let m=this.normalize(p,this.first,"prepend").reverse();for(let g of m)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+m.length}return this.markDirty(),this}push(h){return h.parent=this,this.proxyOf.nodes.push(h),this}removeAll(){for(let h of this.proxyOf.nodes)h.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(h){h=this.index(h),this.proxyOf.nodes[h].parent=void 0,this.proxyOf.nodes.splice(h,1);let p;for(let m in this.indexes)p=this.indexes[m],p>=h&&(this.indexes[m]=p-1);return this.markDirty(),this}replaceValues(h,p,m){return m||(m=p,p={}),this.walkDecls(g=>{p.props&&!p.props.includes(g.prop)||p.fast&&!g.value.includes(p.fast)||(g.value=g.value.replace(h,m))}),this.markDirty(),this}some(h){return this.nodes.some(h)}walk(h){return this.each((p,m)=>{let g;try{g=h(p,m)}catch(b){throw p.addToError(b)}return g!==!1&&p.walk&&(g=p.walk(h)),g})}walkAtRules(h,p){return p?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="atrule"&&h.test(m.name))return p(m,g)}):this.walk((m,g)=>{if(m.type==="atrule"&&m.name===h)return p(m,g)}):(p=h,this.walk((m,g)=>{if(m.type==="atrule")return p(m,g)}))}walkComments(h){return this.walk((p,m)=>{if(p.type==="comment")return h(p,m)})}walkDecls(h,p){return p?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="decl"&&h.test(m.prop))return p(m,g)}):this.walk((m,g)=>{if(m.type==="decl"&&m.prop===h)return p(m,g)}):(p=h,this.walk((m,g)=>{if(m.type==="decl")return p(m,g)}))}walkRules(h,p){return p?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="rule"&&h.test(m.selector))return p(m,g)}):this.walk((m,g)=>{if(m.type==="rule"&&m.selector===h)return p(m,g)}):(p=h,this.walk((m,g)=>{if(m.type==="rule")return p(m,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return d.registerParse=u=>{a=u},d.registerRule=u=>{o=u},d.registerAtRule=u=>{l=u},d.registerRoot=u=>{f=u},Gt=d,d.default=d,d.rebuild=u=>{u.type==="atrule"?Object.setPrototypeOf(u,l.prototype):u.type==="rule"?Object.setPrototypeOf(u,o.prototype):u.type==="decl"?Object.setPrototypeOf(u,r.prototype):u.type==="comment"?Object.setPrototypeOf(u,s.prototype):u.type==="root"&&Object.setPrototypeOf(u,f.prototype),u[t]=!0,u.nodes&&u.nodes.forEach(h=>{d.rebuild(h)})},Gt}var $t,Wi;function ri(){if(Wi)return $t;Wi=1;let e=Oe(),t,r;class s extends e{constructor(a){super({type:"document",...a}),this.nodes||(this.nodes=[])}toResult(a={}){return new t(new r,this,a).stringify()}}return s.registerLazyResult=i=>{t=i},s.registerProcessor=i=>{r=i},$t=s,s.default=s,$t}var Ht,ji;function Mn(){if(ji)return Ht;ji=1;class e{constructor(r,s={}){if(this.type="warning",this.text=r,s.node&&s.node.source){let i=s.node.rangeBy(s);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in s)this[i]=s[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Ht=e,e.default=e,Ht}var Yt,Vi;function ii(){if(Vi)return Yt;Vi=1;let e=Mn();class t{constructor(s,i,a){this.processor=s,this.messages=[],this.root=i,this.opts=a,this.css=void 0,this.map=void 0}toString(){return this.css}warn(s,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let a=new e(s,i);return this.messages.push(a),a}warnings(){return this.messages.filter(s=>s.type==="warning")}get content(){return this.css}}return Yt=t,t.default=t,Yt}var Jt,Gi;function Ko(){if(Gi)return Jt;Gi=1;const e=39,t=34,r=92,s=47,i=10,a=32,o=12,l=9,f=13,c=91,n=93,d=40,u=41,h=123,p=125,m=59,g=42,b=58,v=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,E=/[\da-f]/i;return Jt=function(M,T={}){let R=M.css.valueOf(),Y=T.ignoreErrors,P,x,q,Q,B,U,H,Z,z,I,oe=R.length,_=0,O=[],A=[];function N(){return _}function D(re){throw M.error("Unclosed "+re,_)}function j(){return A.length===0&&_>=oe}function ae(re){if(A.length)return A.pop();if(_>=oe)return;let we=re?re.ignoreUnclosed:!1;switch(P=R.charCodeAt(_),P){case i:case a:case l:case f:case o:{x=_;do x+=1,P=R.charCodeAt(x);while(P===a||P===i||P===l||P===f||P===o);I=["space",R.slice(_,x)],_=x-1;break}case c:case n:case h:case p:case b:case m:case u:{let Re=String.fromCharCode(P);I=[Re,Re,_];break}case d:{if(Z=O.length?O.pop()[1]:"",z=R.charCodeAt(_+1),Z==="url"&&z!==e&&z!==t&&z!==a&&z!==i&&z!==l&&z!==o&&z!==f){x=_;do{if(U=!1,x=R.indexOf(")",x+1),x===-1)if(Y||we){x=_;break}else D("bracket");for(H=x;R.charCodeAt(H-1)===r;)H-=1,U=!U}while(U);I=["brackets",R.slice(_,x+1),_,x],_=x}else x=R.indexOf(")",_+1),Q=R.slice(_,x+1),x===-1||y.test(Q)?I=["(","(",_]:(I=["brackets",Q,_,x],_=x);break}case e:case t:{q=P===e?"'":'"',x=_;do{if(U=!1,x=R.indexOf(q,x+1),x===-1)if(Y||we){x=_+1;break}else D("string");for(H=x;R.charCodeAt(H-1)===r;)H-=1,U=!U}while(U);I=["string",R.slice(_,x+1),_,x],_=x;break}case v:{S.lastIndex=_+1,S.test(R),S.lastIndex===0?x=R.length-1:x=S.lastIndex-2,I=["at-word",R.slice(_,x+1),_,x],_=x;break}case r:{for(x=_,B=!0;R.charCodeAt(x+1)===r;)x+=1,B=!B;if(P=R.charCodeAt(x+1),B&&P!==s&&P!==a&&P!==i&&P!==l&&P!==f&&P!==o&&(x+=1,E.test(R.charAt(x)))){for(;E.test(R.charAt(x+1));)x+=1;R.charCodeAt(x+1)===a&&(x+=1)}I=["word",R.slice(_,x+1),_,x],_=x;break}default:{P===s&&R.charCodeAt(_+1)===g?(x=R.indexOf("*/",_+2)+1,x===0&&(Y||we?x=R.length:D("comment")),I=["comment",R.slice(_,x+1),_,x],_=x):(w.lastIndex=_+1,w.test(R),w.lastIndex===0?x=R.length-1:x=w.lastIndex-2,I=["word",R.slice(_,x+1),_,x],O.push(I),_=x);break}}return _++,I}function le(re){A.push(re)}return{back:le,endOfFile:j,nextToken:ae,position:N}},Jt}var Xt,$i;function si(){if($i)return Xt;$i=1;let e=Oe();class t extends e{constructor(s){super(s),this.type="atrule"}append(...s){return this.proxyOf.nodes||(this.nodes=[]),super.append(...s)}prepend(...s){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...s)}}return Xt=t,t.default=t,e.registerAtRule(t),Xt}var Qt,Hi;function Ze(){if(Hi)return Qt;Hi=1;let e=Oe(),t,r;class s extends e{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,o,l){let f=super.normalize(a);if(o){if(l==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(let c of f)c.raws.before=o.raws.before}return f}removeChild(a,o){let l=this.index(a);return!o&&l===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[l].raws.before),super.removeChild(a)}toResult(a={}){return new t(new r,this,a).stringify()}}return s.registerLazyResult=i=>{t=i},s.registerProcessor=i=>{r=i},Qt=s,s.default=s,e.registerRoot(s),Qt}var Kt,Yi;function _n(){if(Yi)return Kt;Yi=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
30
+ `," "];return e.split(t,r)},split(t,r,s){let i=[],a="",o=!1,l=0,f=!1,c="",n=!1;for(let d of t)n?n=!1:d==="\\"?n=!0:f?d===c&&(f=!1):d==='"'||d==="'"?(f=!0,c=d):d==="("?l+=1:d===")"?l>0&&(l-=1):l===0&&r.includes(d)&&(o=!0),o?(a!==""&&i.push(a.trim()),a="",o=!1):a+=d;return(s||a!=="")&&i.push(a.trim()),i}};return Kt=e,e.default=e,Kt}var Zt,Ji;function ni(){if(Ji)return Zt;Ji=1;let e=Oe(),t=_n();class r extends e{constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(i){let a=this.selector?this.selector.match(/,\s*/):null,o=a?a[0]:","+this.raw("between","beforeOpen");this.selector=i.join(o)}}return Zt=r,r.default=r,e.registerRule(r),Zt}var er,Xi;function Zo(){if(Xi)return er;Xi=1;let e=Et(),t=Ko(),r=xt(),s=si(),i=Ze(),a=ni();const o={empty:!0,space:!0};function l(c){for(let n=c.length-1;n>=0;n--){let d=c[n],u=d[3]||d[2];if(u)return u}}class f{constructor(n){this.input=n,this.root=new i,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:n,start:{column:1,line:1,offset:0}}}atrule(n){let d=new s;d.name=n[1].slice(1),d.name===""&&this.unnamedAtrule(d,n),this.init(d,n[2]);let u,h,p,m=!1,g=!1,b=[],v=[];for(;!this.tokenizer.endOfFile();){if(n=this.tokenizer.nextToken(),u=n[0],u==="("||u==="["?v.push(u==="("?")":"]"):u==="{"&&v.length>0?v.push("}"):u===v[v.length-1]&&v.pop(),v.length===0)if(u===";"){d.source.end=this.getPosition(n[2]),d.source.end.offset++,this.semicolon=!0;break}else if(u==="{"){g=!0;break}else if(u==="}"){if(b.length>0){for(p=b.length-1,h=b[p];h&&h[0]==="space";)h=b[--p];h&&(d.source.end=this.getPosition(h[3]||h[2]),d.source.end.offset++)}this.end(n);break}else b.push(n);else b.push(n);if(this.tokenizer.endOfFile()){m=!0;break}}d.raws.between=this.spacesAndCommentsFromEnd(b),b.length?(d.raws.afterName=this.spacesAndCommentsFromStart(b),this.raw(d,"params",b),m&&(n=b[b.length-1],d.source.end=this.getPosition(n[3]||n[2]),d.source.end.offset++,this.spaces=d.raws.between,d.raws.between="")):(d.raws.afterName="",d.params=""),g&&(d.nodes=[],this.current=d)}checkMissedSemicolon(n){let d=this.colon(n);if(d===!1)return;let u=0,h;for(let p=d-1;p>=0&&(h=n[p],!(h[0]!=="space"&&(u+=1,u===2)));p--);throw this.input.error("Missed semicolon",h[0]==="word"?h[3]+1:h[2])}colon(n){let d=0,u,h,p;for(let[m,g]of n.entries()){if(u=g,h=u[0],h==="("&&(d+=1),h===")"&&(d-=1),d===0&&h===":")if(!p)this.doubleColon(u);else{if(p[0]==="word"&&p[1]==="progid")continue;return m}p=u}return!1}comment(n){let d=new r;this.init(d,n[2]),d.source.end=this.getPosition(n[3]||n[2]),d.source.end.offset++;let u=n[1].slice(2,-2);if(/^\s*$/.test(u))d.text="",d.raws.left=u,d.raws.right="";else{let h=u.match(/^(\s*)([^]*\S)(\s*)$/);d.text=h[2],d.raws.left=h[1],d.raws.right=h[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(n,d){let u=new e;this.init(u,n[0][2]);let h=n[n.length-1];for(h[0]===";"&&(this.semicolon=!0,n.pop()),u.source.end=this.getPosition(h[3]||h[2]||l(n)),u.source.end.offset++;n[0][0]!=="word";)n.length===1&&this.unknownWord(n),u.raws.before+=n.shift()[1];for(u.source.start=this.getPosition(n[0][2]),u.prop="";n.length;){let v=n[0][0];if(v===":"||v==="space"||v==="comment")break;u.prop+=n.shift()[1]}u.raws.between="";let p;for(;n.length;)if(p=n.shift(),p[0]===":"){u.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),u.raws.between+=p[1];(u.prop[0]==="_"||u.prop[0]==="*")&&(u.raws.before+=u.prop[0],u.prop=u.prop.slice(1));let m=[],g;for(;n.length&&(g=n[0][0],!(g!=="space"&&g!=="comment"));)m.push(n.shift());this.precheckMissedSemicolon(n);for(let v=n.length-1;v>=0;v--){if(p=n[v],p[1].toLowerCase()==="!important"){u.important=!0;let S=this.stringFrom(n,v);S=this.spacesFromEnd(n)+S,S!==" !important"&&(u.raws.important=S);break}else if(p[1].toLowerCase()==="important"){let S=n.slice(0),w="";for(let y=v;y>0;y--){let E=S[y][0];if(w.trim().indexOf("!")===0&&E!=="space")break;w=S.pop()[1]+w}w.trim().indexOf("!")===0&&(u.important=!0,u.raws.important=w,n=S)}if(p[0]!=="space"&&p[0]!=="comment")break}n.some(v=>v[0]!=="space"&&v[0]!=="comment")&&(u.raws.between+=m.map(v=>v[1]).join(""),m=[]),this.raw(u,"value",m.concat(n),d),u.value.includes(":")&&!d&&this.checkMissedSemicolon(n)}doubleColon(n){throw this.input.error("Double colon",{offset:n[2]},{offset:n[2]+n[1].length})}emptyRule(n){let d=new a;this.init(d,n[2]),d.selector="",d.raws.between="",this.current=d}end(n){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(n[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(n)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(n){if(this.spaces+=n[1],this.current.nodes){let d=this.current.nodes[this.current.nodes.length-1];d&&d.type==="rule"&&!d.raws.ownSemicolon&&(d.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(n){let d=this.input.fromOffset(n);return{column:d.col,line:d.line,offset:n}}init(n,d){this.current.push(n),n.source={input:this.input,start:this.getPosition(d)},n.raws.before=this.spaces,this.spaces="",n.type!=="comment"&&(this.semicolon=!1)}other(n){let d=!1,u=null,h=!1,p=null,m=[],g=n[1].startsWith("--"),b=[],v=n;for(;v;){if(u=v[0],b.push(v),u==="("||u==="[")p||(p=v),m.push(u==="("?")":"]");else if(g&&h&&u==="{")p||(p=v),m.push("}");else if(m.length===0)if(u===";")if(h){this.decl(b,g);return}else break;else if(u==="{"){this.rule(b);return}else if(u==="}"){this.tokenizer.back(b.pop()),d=!0;break}else u===":"&&(h=!0);else u===m[m.length-1]&&(m.pop(),m.length===0&&(p=null));v=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(d=!0),m.length>0&&this.unclosedBracket(p),d&&h){if(!g)for(;b.length&&(v=b[b.length-1][0],!(v!=="space"&&v!=="comment"));)this.tokenizer.back(b.pop());this.decl(b,g)}else this.unknownWord(b)}parse(){let n;for(;!this.tokenizer.endOfFile();)switch(n=this.tokenizer.nextToken(),n[0]){case"space":this.spaces+=n[1];break;case";":this.freeSemicolon(n);break;case"}":this.end(n);break;case"comment":this.comment(n);break;case"at-word":this.atrule(n);break;case"{":this.emptyRule(n);break;default:this.other(n);break}this.endFile()}precheckMissedSemicolon(){}raw(n,d,u,h){let p,m,g=u.length,b="",v=!0,S,w;for(let y=0;y<g;y+=1)p=u[y],m=p[0],m==="space"&&y===g-1&&!h?v=!1:m==="comment"?(w=u[y-1]?u[y-1][0]:"empty",S=u[y+1]?u[y+1][0]:"empty",!o[w]&&!o[S]?b.slice(-1)===","?v=!1:b+=p[1]:v=!1):b+=p[1];if(!v){let y=u.reduce((E,C)=>E+C[1],"");n.raws[d]={raw:y,value:b}}n[d]=b}rule(n){n.pop();let d=new a;this.init(d,n[0][2]),d.raws.between=this.spacesAndCommentsFromEnd(n),this.raw(d,"selector",n),this.current=d}spacesAndCommentsFromEnd(n){let d,u="";for(;n.length&&(d=n[n.length-1][0],!(d!=="space"&&d!=="comment"));)u=n.pop()[1]+u;return u}spacesAndCommentsFromStart(n){let d,u="";for(;n.length&&(d=n[0][0],!(d!=="space"&&d!=="comment"));)u+=n.shift()[1];return u}spacesFromEnd(n){let d,u="";for(;n.length&&(d=n[n.length-1][0],d==="space");)u=n.pop()[1]+u;return u}stringFrom(n,d){let u="";for(let h=d;h<n.length;h++)u+=n[h][1];return n.splice(d,n.length-d),u}unclosedBlock(){let n=this.current.source.start;throw this.input.error("Unclosed block",n.line,n.column)}unclosedBracket(n){throw this.input.error("Unclosed bracket",{offset:n[2]},{offset:n[2]+1})}unexpectedClose(n){throw this.input.error("Unexpected }",{offset:n[2]},{offset:n[2]+1})}unknownWord(n){throw this.input.error("Unknown word",{offset:n[0][2]},{offset:n[0][2]+n[0][1].length})}unnamedAtrule(n,d){throw this.input.error("At-rule without name",{offset:d[2]},{offset:d[2]+d[1].length})}}return er=f,er}var tr,Qi;function oi(){if(Qi)return tr;Qi=1;let e=Oe(),t=Zo(),r=Ct();function s(i,a){let o=new r(i,a),l=new t(o);try{l.parse()}catch(f){throw f}return l.root}return tr=s,s.default=s,e.registerParse(s),tr}var rr,Ki;function Nn(){if(Ki)return rr;Ki=1;let{isClean:e,my:t}=ti(),r=Rn(),s=bt(),i=Oe(),a=ri(),o=ii(),l=oi(),f=Ze();const c={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},n={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},d={Once:!0,postcssPlugin:!0,prepare:!0},u=0;function h(S){return typeof S=="object"&&typeof S.then=="function"}function p(S){let w=!1,y=c[S.type];return S.type==="decl"?w=S.prop.toLowerCase():S.type==="atrule"&&(w=S.name.toLowerCase()),w&&S.append?[y,y+"-"+w,u,y+"Exit",y+"Exit-"+w]:w?[y,y+"-"+w,y+"Exit",y+"Exit-"+w]:S.append?[y,u,y+"Exit"]:[y,y+"Exit"]}function m(S){let w;return S.type==="document"?w=["Document",u,"DocumentExit"]:S.type==="root"?w=["Root",u,"RootExit"]:w=p(S),{eventIndex:0,events:w,iterator:0,node:S,visitorIndex:0,visitors:[]}}function g(S){return S[e]=!1,S.nodes&&S.nodes.forEach(w=>g(w)),S}let b={};class v{constructor(w,y,E){this.stringified=!1,this.processed=!1;let C;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))C=g(y);else if(y instanceof v||y instanceof o)C=g(y.root),y.map&&(typeof E.map>"u"&&(E.map={}),E.map.inline||(E.map.inline=!1),E.map.prev=y.map);else{let M=l;E.syntax&&(M=E.syntax.parse),E.parser&&(M=E.parser),M.parse&&(M=M.parse);try{C=M(y,E)}catch(T){this.processed=!0,this.error=T}C&&!C[t]&&i.rebuild(C)}this.result=new o(w,C,E),this.helpers={...b,postcss:b,result:this.result},this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?{...M,...M.prepare(this.result)}:M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,y){let E=this.result.lastPlugin;try{y&&y.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=E.postcssPlugin,w.setMessage()):E.postcssVersion}catch(C){console&&console.error&&console.error(C)}return w}prepareVisitors(){this.listeners={};let w=(y,E,C)=>{this.listeners[E]||(this.listeners[E]=[]),this.listeners[E].push([y,C])};for(let y of this.plugins)if(typeof y=="object")for(let E in y){if(!n[E]&&/^[A-Z]/.test(E))throw new Error(`Unknown event ${E} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!d[E])if(typeof y[E]=="object")for(let C in y[E])C==="*"?w(y,E,y[E][C]):w(y,E+"-"+C.toLowerCase(),y[E][C]);else typeof y[E]=="function"&&w(y,E,y[E])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let y=this.plugins[w],E=this.runOnRoot(y);if(h(E))try{await E}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];){w[e]=!0;let y=[m(w)];for(;y.length>0;){let E=this.visitTick(y);if(h(E))try{await E}catch(C){let M=y[y.length-1].node;throw this.handleError(C,M)}}}if(this.listeners.OnceExit)for(let[y,E]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(w.type==="document"){let C=w.nodes.map(M=>E(M,this.helpers));await Promise.all(C)}else await E(w,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(E=>w.Once(E,this.helpers));return h(y[0])?Promise.all(y):y}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,y=s;w.syntax&&(y=w.syntax.stringify),w.stringifier&&(y=w.stringifier),y.stringify&&(y=y.stringify);let C=new r(y,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let y=this.runOnRoot(w);if(h(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];)w[e]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let y of w.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,y){return this.async().then(w,y)}toString(){return this.css}visitSync(w,y){for(let[E,C]of w){this.result.lastPlugin=E;let M;try{M=C(y,this.helpers)}catch(T){throw this.handleError(T,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(h(M))throw this.getAsyncError()}}visitTick(w){let y=w[w.length-1],{node:E,visitors:C}=y;if(E.type!=="root"&&E.type!=="document"&&!E.parent){w.pop();return}if(C.length>0&&y.visitorIndex<C.length){let[T,R]=C[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===C.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=T;try{return R(E.toProxy(),this.helpers)}catch(Y){throw this.handleError(Y,E)}}if(y.iterator!==0){let T=y.iterator,R;for(;R=E.nodes[E.indexes[T]];)if(E.indexes[T]+=1,!R[e]){R[e]=!0,w.push(m(R));return}y.iterator=0,delete E.indexes[T]}let M=y.events;for(;y.eventIndex<M.length;){let T=M[y.eventIndex];if(y.eventIndex+=1,T===u){E.nodes&&E.nodes.length&&(E[e]=!0,y.iterator=E.getIterator());return}else if(this.listeners[T]){y.visitors=this.listeners[T];return}}w.pop()}walkSync(w){w[e]=!0;let y=p(w);for(let E of y)if(E===u)w.nodes&&w.each(C=>{C[e]||this.walkSync(C)});else{let C=this.listeners[E];if(C&&this.visitSync(C,w.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return v.registerPostcss=S=>{b=S},rr=v,v.default=v,f.registerLazyResult(v),a.registerLazyResult(v),rr}var ir,Zi;function ea(){if(Zi)return ir;Zi=1;let e=Rn(),t=bt(),r=oi();const s=ii();class i{constructor(o,l,f){l=l.toString(),this.stringified=!1,this._processor=o,this._css=l,this._opts=f,this._map=void 0;let c,n=t;this.result=new s(this._processor,c,this._opts),this.result.css=l;let d=this;Object.defineProperty(this.result,"root",{get(){return d.root}});let u=new e(n,c,this._opts,l);if(u.isMap()){let[h,p]=u.generate();h&&(this.result.css=h),p&&(this.result.map=p)}else u.clearAnnotation(),this.result.css=u.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(o){return this.async().catch(o)}finally(o){return this.async().then(o,o)}sync(){if(this.error)throw this.error;return this.result}then(o,l){return this.async().then(o,l)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let o,l=r;try{o=l(this._css,this._opts)}catch(f){this.error=f}if(this.error)throw this.error;return this._root=o,o}get[Symbol.toStringTag](){return"NoWorkResult"}}return ir=i,i.default=i,ir}var sr,es;function ta(){if(es)return sr;es=1;let e=ea(),t=Nn(),r=ri(),s=Ze();class i{constructor(o=[]){this.version="8.4.38",this.plugins=this.normalize(o)}normalize(o){let l=[];for(let f of o)if(f.postcss===!0?f=f():f.postcss&&(f=f.postcss),typeof f=="object"&&Array.isArray(f.plugins))l=l.concat(f.plugins);else if(typeof f=="object"&&f.postcssPlugin)l.push(f);else if(typeof f=="function")l.push(f);else if(!(typeof f=="object"&&(f.parse||f.stringify)))throw new Error(f+" is not a PostCSS plugin");return l}process(o,l={}){return!this.plugins.length&&!l.parser&&!l.stringifier&&!l.syntax?new e(this,o,l):new t(this,o,l)}use(o){return this.plugins=this.plugins.concat(this.normalize([o])),this}}return sr=i,i.default=i,s.registerProcessor(i),r.registerProcessor(i),sr}var nr,ts;function ra(){if(ts)return nr;ts=1;let e=Et(),t=xn(),r=xt(),s=si(),i=Ct(),a=Ze(),o=ni();function l(f,c){if(Array.isArray(f))return f.map(u=>l(u));let{inputs:n,...d}=f;if(n){c=[];for(let u of n){let h={...u,__proto__:i.prototype};h.map&&(h.map={...h.map,__proto__:t.prototype}),c.push(h)}}if(d.nodes&&(d.nodes=f.nodes.map(u=>l(u,c))),d.source){let{inputId:u,...h}=d.source;d.source=h,u!=null&&(d.source.input=c[u])}if(d.type==="root")return new a(d);if(d.type==="decl")return new e(d);if(d.type==="rule")return new o(d);if(d.type==="comment")return new r(d);if(d.type==="atrule")return new s(d);throw new Error("Unknown node type: "+f.type)}return nr=l,l.default=l,nr}var or,rs;function ia(){if(rs)return or;rs=1;let e=ei(),t=Et(),r=Nn(),s=Oe(),i=ta(),a=bt(),o=ra(),l=ri(),f=Mn(),c=xt(),n=si(),d=ii(),u=Ct(),h=oi(),p=_n(),m=ni(),g=Ze(),b=St();function v(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new i(S)}return v.plugin=function(w,y){let E=!1;function C(...T){console&&console.warn&&!E&&(E=!0,console.warn(w+`: postcss.plugin was deprecated. Migration guide:
31
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),ht.LANG&&ht.LANG.startsWith("cn")&&console.warn(w+`: 里面 postcss.plugin 被弃用. 迁移指南:
32
+ https://www.w3ctech.com/topic/2226`));let R=y(...T);return R.postcssPlugin=w,R.postcssVersion=new i().version,R}let M;return Object.defineProperty(C,"postcss",{get(){return M||(M=C()),M}}),C.process=function(T,R,Y){return v([C(Y)]).process(T,R)},C},v.stringify=a,v.parse=h,v.fromJSON=o,v.list=p,v.comment=S=>new c(S),v.atRule=S=>new n(S),v.decl=S=>new t(S),v.rule=S=>new m(S),v.root=S=>new g(S),v.document=S=>new l(S),v.CssSyntaxError=e,v.Declaration=t,v.Container=s,v.Processor=i,v.Document=l,v.Comment=c,v.Warning=f,v.AtRule=n,v.Result=d,v.Input=u,v.Rule=m,v.Root=g,v.Node=b,r.registerPostcss(v),or=v,v.default=v,or}var sa=ia();const X=$o(sa);X.stringify;X.fromJSON;X.plugin;X.parse;X.list;X.document;X.comment;X.atRule;X.rule;X.decl;X.root;X.CssSyntaxError;X.Declaration;X.Container;X.Processor;X.Document;X.Comment;X.Warning;X.AtRule;X.Result;X.Input;X.Rule;X.Root;X.Node;const is={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function na(e){let t=is[e.tagName]?is[e.tagName]:e.tagName;return t==="link"&&e.attributes._cssText&&(t="style"),t}function Rt(e,t){const r=t==null?void 0:t.stylesWithHoverClass.get(e);if(r)return r;let s=e;try{s=X([Vo,Go]).process(e).css}catch(i){console.warn("Failed to adapt css for replay",i)}return t==null||t.stylesWithHoverClass.set(e,s),s}function ss(){return{stylesWithHoverClass:new Map}}const oa="rrweb-snapshot.rebuild() cannot rebuild into an unprotected browser document. Use rebuildIntoSandboxedIframe() or set UNSAFE_allowUnprotectedRebuild: true only when you accept the script-execution risk.",ns="rrweb-snapshot.createSandboxedIframe() requires root to be connected to a document before creating a sandboxed iframe.",An=new WeakSet;function aa(e){if(!e||e.tagName!=="IFRAME"||!("sandbox"in e))return!1;const t=Array.from(e.sandbox);return t.length===1&&t[0]==="allow-same-origin"}function la(e){if(e.UNSAFE_allowUnprotectedRebuild)return;const t=e.doc.defaultView;if(t&&!(An.has(e.doc)&&aa(t.frameElement)))throw new Error(oa)}function ua(e,t,r,s){const i=[];for(const f of e.childNodes)f.type===te.Text&&i.push(f);const a=t.split("/* rr_split */");for(;a.length>1&&a.length>i.length;)a.splice(-2,2,a.slice(-2).join(""));let o="";r&&(o=Rt(a.join(""),s));let l=0;for(let f=0;f<i.length&&f!==a.length;f++){const c=i[f];if(!r)c.textContent=a[f];else if(f<a.length-1){let n=l,d=a[f+1].length;d=Math.min(d,30);let u=!1;for(;d>2;d--){const h=a[f+1].substring(0,d),p=o.substring(l).indexOf(h);if(u=p!==-1,u){n+=p;break}}u||(n+=a[f].length),c.textContent=o.substring(l,n),l=n}else c.textContent=o.substring(l)}}function ca(e,t,r,s){const{doc:i,hackCss:a,cache:o}=s;e.childNodes.length?ua(e,r,a,o):(a&&(r=Rt(r,o)),t.appendChild(i.createTextNode(r)))}function fa(e,t){var r;const{doc:s,hackCss:i,cache:a}=t;switch(e.type){case te.Document:return s.implementation.createDocument(null,"",null);case te.DocumentType:return s.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case te.Element:{const o=na(e);let l;e.isSVG?l=s.createElementNS("http://www.w3.org/2000/svg",o):(e.isCustom&&((r=s.defaultView)!=null&&r.customElements)&&!s.defaultView.customElements.get(e.tagName)&&s.defaultView.customElements.define(e.tagName,class extends s.defaultView.HTMLElement{}),l=s.createElement(o));const f={};for(const c in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,c))continue;let n=e.attributes[c];if(!(o==="option"&&c==="selected"&&n===!1)&&n!==null){if(n===!0&&(n=""),c.startsWith("rr_")){f[c]=n;continue}if(typeof n=="string"){if(o==="style"&&c==="_cssText"){ca(e,l,n,t);continue}else if(o==="textarea"&&c==="value"){l.appendChild(s.createTextNode(n)),e.childNodes=[];continue}}try{if(e.isSVG&&c==="xlink:href")l.setAttributeNS("http://www.w3.org/1999/xlink",c,n.toString());else if(c==="onload"||c==="onclick"||c.substring(0,7)==="onmouse")l.setAttribute("_"+c,n.toString());else if(o==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&c==="content"){l.setAttribute("csp-content",n.toString());continue}else o==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||o==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Wo(e.attributes.href)==="js"||(o==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?l.setAttribute("rrweb-original-srcset",e.attributes.srcset):l.setAttribute(c,n.toString()))}catch{}}}for(const c in f){const n=f[c];if(o==="canvas"&&c==="rr_dataURL"){const d=s.createElement("img");d.onload=()=>{const u=l.getContext("2d");u&&u.drawImage(d,0,0,d.width,d.height)},d.src=n.toString(),l.RRNodeType&&(l.rr_dataURL=n.toString())}else if(o==="img"&&c==="rr_dataURL"){const d=l;d.currentSrc.startsWith("data:")||(d.setAttribute("rrweb-original-src",e.attributes.src),d.src=n.toString())}if(c==="rr_width")l.style.setProperty("width",n.toString());else if(c==="rr_height")l.style.setProperty("height",n.toString());else if(c==="rr_mediaCurrentTime"&&typeof n=="number")l.currentTime=n;else if(c==="rr_mediaState")switch(n){case"played":l.play().catch(d=>console.warn("media playback error",d));break;case"paused":l.pause();break}else c==="rr_mediaPlaybackRate"&&typeof n=="number"?l.playbackRate=n:c==="rr_mediaMuted"&&typeof n=="boolean"?l.muted=n:c==="rr_mediaLoop"&&typeof n=="boolean"?l.loop=n:c==="rr_mediaVolume"&&typeof n=="number"?l.volume=n:c==="rr_open_mode"&&l.setAttribute("rr_open_mode",n)}if(e.isShadowHost)if(!l.shadowRoot)l.attachShadow({mode:"open"});else for(;l.shadowRoot.firstChild;)l.shadowRoot.removeChild(l.shadowRoot.firstChild);return l}case te.Text:return e.isStyle&&i?s.createTextNode(Rt(e.textContent,a)):s.createTextNode(e.textContent);case te.CDATA:return s.createCDATASection(e.textContent);case te.Comment:return s.createComment(e.textContent);default:return null}}function Je(e,t){const{doc:r,mirror:s,skipChild:i=!1,hackCss:a=!0,afterAppend:o,cache:l}=t;if(s.has(e.id)){const c=s.getNode(e.id),n=s.getMeta(c);if(qo(n,e))return s.getNode(e.id)}let f=fa(e,{doc:r,hackCss:a,cache:l});if(!f)return null;if(e.rootId&&s.getNode(e.rootId)!==r&&s.replace(e.rootId,r),e.type===te.Document&&(r.close(),r.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==te.DocumentType&&(e.childNodes[0].type===te.Element&&"xmlns"in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),f=r),s.add(f,e),(e.type===te.Document||e.type===te.Element)&&!i)for(const c of e.childNodes){const n=Je(c,{doc:r,mirror:s,skipChild:!1,hackCss:a,afterAppend:o,cache:l});if(!n){console.warn("Failed to rebuild",c);continue}if(c.isShadow&&Bo(f)&&f.shadowRoot)f.shadowRoot.appendChild(n);else if(e.type===te.Document&&c.type==te.Element){const d=n;let u=null;d.childNodes.forEach(h=>{h.nodeName==="BODY"&&(u=h)}),u?(d.removeChild(u),f.appendChild(n),d.appendChild(u)):f.appendChild(n)}else f.appendChild(n);o&&o(n,c.id)}return f}function ha(e,t){function r(s){t(s)}for(const s of e.getIds())e.has(s)&&r(e.getNode(s))}function da(e,t){const r=t.getMeta(e);if((r==null?void 0:r.type)!==te.Element)return;const s=e;for(const i in r.attributes){if(!(Object.prototype.hasOwnProperty.call(r.attributes,i)&&i.startsWith("rr_")))continue;const a=r.attributes[i];i==="rr_scrollLeft"&&(s.scrollLeft=a),i==="rr_scrollTop"&&(s.scrollTop=a)}}function pa(e,t){la(t);const{doc:r,onVisit:s,hackCss:i=!0,afterAppend:a,cache:o,mirror:l=new Sn}=t,f=Je(e,{doc:r,mirror:l,skipChild:!1,hackCss:i,afterAppend:a,cache:o});return ha(l,c=>{s&&s(c),da(c,l)}),f}function ma(e){var t;if(!e.root.isConnected)throw new Error(ns);const r=e.root.ownerDocument.createElement("iframe");for(const[i,a]of Object.entries(e.iframeAttributes||{}))i!=="sandbox"&&r.setAttribute(i,a);r.setAttribute("sandbox","allow-same-origin"),e.root.appendChild(r);const s=r.contentDocument;if(!s||!r.contentWindow)throw(t=r.parentNode)==null||t.removeChild(r),new Error(ns);return An.add(s),r}var ga=Object.defineProperty,ya=(e,t,r)=>t in e?ga(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,k=(e,t,r)=>ya(e,typeof t!="symbol"?t+"":t,r),wa=Object.defineProperty,va=(e,t,r)=>t in e?wa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,os=(e,t,r)=>va(e,typeof t!="symbol"?t+"":t,r);Date.now().toString();let ba=class{constructor(){os(this,"idNodeMap",new Map),os(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(s=>this.removeNodeFromMap(s))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const s=r.id;this.idNodeMap.set(s,t),this.nodeMetaMap.set(t,r)}replace(t,r){const s=this.getNode(t);if(s){const i=this.nodeMetaMap.get(s);i&&this.nodeMetaMap.set(r,i)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Sa(){return new ba}function Ea(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ca(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function s(){return this instanceof s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var i=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(r,s,i.get?i:{enumerable:!0,get:function(){return e[s]}})}),r}var st={exports:{}},as;function xa(){if(as)return st.exports;as=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return st.exports=t(),st.exports.createColors=t,st.exports}const Ra={},Ma=Object.freeze(Object.defineProperty({__proto__:null,default:Ra},Symbol.toStringTag,{value:"Module"})),pe=Ca(Ma);var ar,ls;function ai(){if(ls)return ar;ls=1;let e=xa(),t=pe;class r extends Error{constructor(i,a,o,l,f,c){super(i),this.name="CssSyntaxError",this.reason=i,f&&(this.file=f),l&&(this.source=l),c&&(this.plugin=c),typeof a<"u"&&typeof o<"u"&&(typeof a=="number"?(this.line=a,this.column=o):(this.line=a.line,this.column=a.column,this.endLine=o.line,this.endColumn=o.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(i){if(!this.source)return"";let a=this.source;i==null&&(i=e.isColorSupported),t&&i&&(a=t(a));let o=a.split(/\r?\n/),l=Math.max(this.line-3,0),f=Math.min(this.line+2,o.length),c=String(f).length,n,d;if(i){let{bold:u,gray:h,red:p}=e.createColors(!0);n=m=>u(p(m)),d=m=>h(m)}else n=d=u=>u;return o.slice(l,f).map((u,h)=>{let p=l+1+h,m=" "+(" "+p).slice(-c)+" | ";if(p===this.line){let g=d(m.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+d(m)+u+`
33
+ `+g+n("^")}return" "+d(m)+u}).join(`
34
+ `)}toString(){let i=this.showSourceCode();return i&&(i=`
35
+
36
+ `+i+`
37
+ `),this.name+": "+this.message+i}}return ar=r,r.default=r,ar}var nt={},us;function li(){return us||(us=1,nt.isClean=Symbol("isClean"),nt.my=Symbol("my")),nt}var lr,cs;function On(){if(cs)return lr;cs=1;const e={after:`
38
+ `,beforeClose:`
39
+ `,beforeComment:`
40
+ `,beforeDecl:`
41
+ `,beforeOpen:" ",beforeRule:`
42
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(s){return s[0].toUpperCase()+s.slice(1)}class r{constructor(i){this.builder=i}atrule(i,a){let o="@"+i.name,l=i.params?this.rawValue(i,"params"):"";if(typeof i.raws.afterName<"u"?o+=i.raws.afterName:l&&(o+=" "),i.nodes)this.block(i,o+l);else{let f=(i.raws.between||"")+(a?";":"");this.builder(o+l+f,i)}}beforeAfter(i,a){let o;i.type==="decl"?o=this.raw(i,null,"beforeDecl"):i.type==="comment"?o=this.raw(i,null,"beforeComment"):a==="before"?o=this.raw(i,null,"beforeRule"):o=this.raw(i,null,"beforeClose");let l=i.parent,f=0;for(;l&&l.type!=="root";)f+=1,l=l.parent;if(o.includes(`
43
+ `)){let c=this.raw(i,null,"indent");if(c.length)for(let n=0;n<f;n++)o+=c}return o}block(i,a){let o=this.raw(i,"between","beforeOpen");this.builder(a+o+"{",i,"start");let l;i.nodes&&i.nodes.length?(this.body(i),l=this.raw(i,"after")):l=this.raw(i,"after","emptyBody"),l&&this.builder(l),this.builder("}",i,"end")}body(i){let a=i.nodes.length-1;for(;a>0&&i.nodes[a].type==="comment";)a-=1;let o=this.raw(i,"semicolon");for(let l=0;l<i.nodes.length;l++){let f=i.nodes[l],c=this.raw(f,"before");c&&this.builder(c),this.stringify(f,a!==l||o)}}comment(i){let a=this.raw(i,"left","commentLeft"),o=this.raw(i,"right","commentRight");this.builder("/*"+a+i.text+o+"*/",i)}decl(i,a){let o=this.raw(i,"between","colon"),l=i.prop+o+this.rawValue(i,"value");i.important&&(l+=i.raws.important||" !important"),a&&(l+=";"),this.builder(l,i)}document(i){this.body(i)}raw(i,a,o){let l;if(o||(o=a),a&&(l=i.raws[a],typeof l<"u"))return l;let f=i.parent;if(o==="before"&&(!f||f.type==="root"&&f.first===i||f&&f.type==="document"))return"";if(!f)return e[o];let c=i.root();if(c.rawCache||(c.rawCache={}),typeof c.rawCache[o]<"u")return c.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(i,o);{let n="raw"+t(o);this[n]?l=this[n](c,i):c.walk(d=>{if(l=d.raws[a],typeof l<"u")return!1})}return typeof l>"u"&&(l=e[o]),c.rawCache[o]=l,l}rawBeforeClose(i){let a;return i.walk(o=>{if(o.nodes&&o.nodes.length>0&&typeof o.raws.after<"u")return a=o.raws.after,a.includes(`
44
+ `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawBeforeComment(i,a){let o;return i.walkComments(l=>{if(typeof l.raws.before<"u")return o=l.raws.before,o.includes(`
45
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(a,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeDecl(i,a){let o;return i.walkDecls(l=>{if(typeof l.raws.before<"u")return o=l.raws.before,o.includes(`
46
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(a,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeOpen(i){let a;return i.walk(o=>{if(o.type!=="decl"&&(a=o.raws.between,typeof a<"u"))return!1}),a}rawBeforeRule(i){let a;return i.walk(o=>{if(o.nodes&&(o.parent!==i||i.first!==o)&&typeof o.raws.before<"u")return a=o.raws.before,a.includes(`
47
+ `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawColon(i){let a;return i.walkDecls(o=>{if(typeof o.raws.between<"u")return a=o.raws.between.replace(/[^\s:]/g,""),!1}),a}rawEmptyBody(i){let a;return i.walk(o=>{if(o.nodes&&o.nodes.length===0&&(a=o.raws.after,typeof a<"u"))return!1}),a}rawIndent(i){if(i.raws.indent)return i.raws.indent;let a;return i.walk(o=>{let l=o.parent;if(l&&l!==i&&l.parent&&l.parent===i&&typeof o.raws.before<"u"){let f=o.raws.before.split(`
48
+ `);return a=f[f.length-1],a=a.replace(/\S/g,""),!1}}),a}rawSemicolon(i){let a;return i.walk(o=>{if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(a=o.raws.semicolon,typeof a<"u"))return!1}),a}rawValue(i,a){let o=i[a],l=i.raws[a];return l&&l.value===o?l.raw:o}root(i){this.body(i),i.raws.after&&this.builder(i.raws.after)}rule(i){this.block(i,this.rawValue(i,"selector")),i.raws.ownSemicolon&&this.builder(i.raws.ownSemicolon,i,"end")}stringify(i,a){if(!this[i.type])throw new Error("Unknown AST node type "+i.type+". Maybe you need to change PostCSS stringifier.");this[i.type](i,a)}}return lr=r,r.default=r,lr}var ur,fs;function Mt(){if(fs)return ur;fs=1;let e=On();function t(r,s){new e(s).stringify(r)}return ur=t,t.default=t,ur}var cr,hs;function _t(){if(hs)return cr;hs=1;let{isClean:e,my:t}=li(),r=ai(),s=On(),i=Mt();function a(l,f){let c=new l.constructor;for(let n in l){if(!Object.prototype.hasOwnProperty.call(l,n)||n==="proxyCache")continue;let d=l[n],u=typeof d;n==="parent"&&u==="object"?f&&(c[n]=f):n==="source"?c[n]=d:Array.isArray(d)?c[n]=d.map(h=>a(h,c)):(u==="object"&&d!==null&&(d=a(d)),c[n]=d)}return c}class o{constructor(f={}){this.raws={},this[e]=!1,this[t]=!0;for(let c in f)if(c==="nodes"){this.nodes=[];for(let n of f[c])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[c]=f[c]}addToError(f){if(f.postcssNode=this,f.stack&&this.source&&/\n\s{4}at /.test(f.stack)){let c=this.source;f.stack=f.stack.replace(/\n\s{4}at /,`$&${c.input.from}:${c.start.line}:${c.start.column}$&`)}return f}after(f){return this.parent.insertAfter(this,f),this}assign(f={}){for(let c in f)this[c]=f[c];return this}before(f){return this.parent.insertBefore(this,f),this}cleanRaws(f){delete this.raws.before,delete this.raws.after,f||delete this.raws.between}clone(f={}){let c=a(this);for(let n in f)c[n]=f[n];return c}cloneAfter(f={}){let c=this.clone(f);return this.parent.insertAfter(this,c),c}cloneBefore(f={}){let c=this.clone(f);return this.parent.insertBefore(this,c),c}error(f,c={}){if(this.source){let{end:n,start:d}=this.rangeBy(c);return this.source.input.error(f,{column:d.column,line:d.line},{column:n.column,line:n.line},c)}return new r(f)}getProxyProcessor(){return{get(f,c){return c==="proxyOf"?f:c==="root"?()=>f.root().toProxy():f[c]},set(f,c,n){return f[c]===n||(f[c]=n,(c==="prop"||c==="value"||c==="name"||c==="params"||c==="important"||c==="text")&&f.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let f=this;for(;f=f.parent;)f[e]=!1}}next(){if(!this.parent)return;let f=this.parent.index(this);return this.parent.nodes[f+1]}positionBy(f,c){let n=this.source.start;if(f.index)n=this.positionInside(f.index,c);else if(f.word){c=this.toString();let d=c.indexOf(f.word);d!==-1&&(n=this.positionInside(d,c))}return n}positionInside(f,c){let n=c||this.toString(),d=this.source.start.column,u=this.source.start.line;for(let h=0;h<f;h++)n[h]===`
49
+ `?(d=1,u+=1):d+=1;return{column:d,line:u}}prev(){if(!this.parent)return;let f=this.parent.index(this);return this.parent.nodes[f-1]}rangeBy(f){let c={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:c.column+1,line:c.line};if(f.word){let d=this.toString(),u=d.indexOf(f.word);u!==-1&&(c=this.positionInside(u,d),n=this.positionInside(u+f.word.length,d))}else f.start?c={column:f.start.column,line:f.start.line}:f.index&&(c=this.positionInside(f.index)),f.end?n={column:f.end.column,line:f.end.line}:typeof f.endIndex=="number"?n=this.positionInside(f.endIndex):f.index&&(n=this.positionInside(f.index+1));return(n.line<c.line||n.line===c.line&&n.column<=c.column)&&(n={column:c.column+1,line:c.line}),{end:n,start:c}}raw(f,c){return new s().raw(this,f,c)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...f){if(this.parent){let c=this,n=!1;for(let d of f)d===this?n=!0:n?(this.parent.insertAfter(c,d),c=d):this.parent.insertBefore(c,d);n||this.remove()}return this}root(){let f=this;for(;f.parent&&f.parent.type!=="document";)f=f.parent;return f}toJSON(f,c){let n={},d=c==null;c=c||new Map;let u=0;for(let h in this){if(!Object.prototype.hasOwnProperty.call(this,h)||h==="parent"||h==="proxyCache")continue;let p=this[h];if(Array.isArray(p))n[h]=p.map(m=>typeof m=="object"&&m.toJSON?m.toJSON(null,c):m);else if(typeof p=="object"&&p.toJSON)n[h]=p.toJSON(null,c);else if(h==="source"){let m=c.get(p.input);m==null&&(m=u,c.set(p.input,u),u++),n[h]={end:p.end,inputId:m,start:p.start}}else n[h]=p}return d&&(n.inputs=[...c.keys()].map(h=>h.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(f=i){f.stringify&&(f=f.stringify);let c="";return f(this,n=>{c+=n}),c}warn(f,c,n){let d={node:this};for(let u in n)d[u]=n[u];return f.warn(c,d)}get proxyOf(){return this}}return cr=o,o.default=o,cr}var fr,ds;function Nt(){if(ds)return fr;ds=1;let e=_t();class t extends e{constructor(s){s&&typeof s.value<"u"&&typeof s.value!="string"&&(s={...s,value:String(s.value)}),super(s),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return fr=t,t.default=t,fr}var hr,ps;function _a(){if(ps)return hr;ps=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return hr={nanoid:(s=21)=>{let i="",a=s;for(;a--;)i+=e[Math.random()*64|0];return i},customAlphabet:(s,i=21)=>(a=i)=>{let o="",l=a;for(;l--;)o+=s[Math.random()*s.length|0];return o}},hr}var dr,ms;function Dn(){if(ms)return dr;ms=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=pe,{existsSync:r,readFileSync:s}=pe,{dirname:i,join:a}=pe;function o(f){return Buffer?Buffer.from(f,"base64").toString():window.atob(f)}class l{constructor(c,n){if(n.map===!1)return;this.loadAnnotation(c),this.inline=this.startWith(this.annotation,"data:");let d=n.map?n.map.prev:void 0,u=this.loadMap(n.from,d);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=i(this.mapFile)),u&&(this.text=u)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(c){let n=/^data:application\/json;charset=utf-?8;base64,/,d=/^data:application\/json;base64,/,u=/^data:application\/json;charset=utf-?8,/,h=/^data:application\/json,/;if(u.test(c)||h.test(c))return decodeURIComponent(c.substr(RegExp.lastMatch.length));if(n.test(c)||d.test(c))return o(c.substr(RegExp.lastMatch.length));let p=c.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+p)}getAnnotationURL(c){return c.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(c){return typeof c!="object"?!1:typeof c.mappings=="string"||typeof c._mappings=="string"||Array.isArray(c.sections)}loadAnnotation(c){let n=c.match(/\/\*\s*# sourceMappingURL=/gm);if(!n)return;let d=c.lastIndexOf(n.pop()),u=c.indexOf("*/",d);d>-1&&u>-1&&(this.annotation=this.getAnnotationURL(c.substring(d,u)))}loadFile(c){if(this.root=i(c),r(c))return this.mapFile=c,s(c,"utf-8").toString().trim()}loadMap(c,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let d=n(c);if(d){let u=this.loadFile(d);if(!u)throw new Error("Unable to load previous source map: "+d.toString());return u}}else{if(n instanceof e)return t.fromSourceMap(n).toString();if(n instanceof t)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let d=this.annotation;return c&&(d=a(i(c),d)),this.loadFile(d)}}}startWith(c,n){return c?c.substr(0,n.length)===n:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return dr=l,l.default=l,dr}var pr,gs;function At(){if(gs)return pr;gs=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=pe,{fileURLToPath:r,pathToFileURL:s}=pe,{isAbsolute:i,resolve:a}=pe,{nanoid:o}=_a(),l=pe,f=ai(),c=Dn(),n=Symbol("fromOffsetCache"),d=!!(e&&t),u=!!(a&&i);class h{constructor(m,g={}){if(m===null||typeof m>"u"||typeof m=="object"&&!m.toString)throw new Error(`PostCSS received ${m} instead of CSS string`);if(this.css=m.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!u||/^\w+:\/\//.test(g.from)||i(g.from)?this.file=g.from:this.file=a(g.from)),u&&d){let b=new c(this.css,g);if(b.text){this.map=b;let v=b.consumer().file;!this.file&&v&&(this.file=this.mapResolve(v))}}this.file||(this.id="<input css "+o(6)+">"),this.map&&(this.map.file=this.from)}error(m,g,b,v={}){let S,w,y;if(g&&typeof g=="object"){let C=g,M=b;if(typeof C.offset=="number"){let T=this.fromOffset(C.offset);g=T.line,b=T.col}else g=C.line,b=C.column;if(typeof M.offset=="number"){let T=this.fromOffset(M.offset);w=T.line,y=T.col}else w=M.line,y=M.column}else if(!b){let C=this.fromOffset(g);g=C.line,b=C.col}let E=this.origin(g,b,w,y);return E?S=new f(m,E.endLine===void 0?E.line:{column:E.column,line:E.line},E.endLine===void 0?E.column:{column:E.endColumn,line:E.endLine},E.source,E.file,v.plugin):S=new f(m,w===void 0?g:{column:b,line:g},w===void 0?b:{column:y,line:w},this.css,this.file,v.plugin),S.input={column:b,endColumn:y,endLine:w,line:g,source:this.css},this.file&&(s&&(S.input.url=s(this.file).toString()),S.input.file=this.file),S}fromOffset(m){let g,b;if(this[n])b=this[n];else{let S=this.css.split(`
50
+ `);b=new Array(S.length);let w=0;for(let y=0,E=S.length;y<E;y++)b[y]=w,w+=S[y].length+1;this[n]=b}g=b[b.length-1];let v=0;if(m>=g)v=b.length-1;else{let S=b.length-2,w;for(;v<S;)if(w=v+(S-v>>1),m<b[w])S=w-1;else if(m>=b[w+1])v=w+1;else{v=w;break}}return{col:m-b[v]+1,line:v+1}}mapResolve(m){return/^\w+:\/\//.test(m)?m:a(this.map.consumer().sourceRoot||this.map.root||".",m)}origin(m,g,b,v){if(!this.map)return!1;let S=this.map.consumer(),w=S.originalPositionFor({column:g,line:m});if(!w.source)return!1;let y;typeof b=="number"&&(y=S.originalPositionFor({column:v,line:b}));let E;i(w.source)?E=s(w.source):E=new URL(w.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let C={column:w.column,endColumn:y&&y.column,endLine:y&&y.line,line:w.line,url:E.toString()};if(E.protocol==="file:")if(r)C.file=r(E);else throw new Error("file: protocol is not available in this PostCSS build");let M=S.sourceContentFor(w.source);return M&&(C.source=M),C}toJSON(){let m={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(m[g]=this[g]);return this.map&&(m.map={...this.map},m.map.consumerCache&&(m.map.consumerCache=void 0)),m}get from(){return this.file||this.id}}return pr=h,h.default=h,l&&l.registerInput&&l.registerInput(h),pr}var mr,ys;function Tn(){if(ys)return mr;ys=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=pe,{dirname:r,relative:s,resolve:i,sep:a}=pe,{pathToFileURL:o}=pe,l=At(),f=!!(e&&t),c=!!(r&&i&&s&&a);class n{constructor(u,h,p,m){this.stringify=u,this.mapOpts=p.map||{},this.root=h,this.opts=p,this.css=m,this.originalCSS=m,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let u;this.isInline()?u="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?u=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?u=this.mapOpts.annotation(this.opts.to,this.root):u=this.outputFile()+".map";let h=`
51
+ `;this.css.includes(`\r
52
+ `)&&(h=`\r
53
+ `),this.css+=h+"/*# sourceMappingURL="+u+" */"}applyPrevMaps(){for(let u of this.previous()){let h=this.toUrl(this.path(u.file)),p=u.root||r(u.file),m;this.mapOpts.sourcesContent===!1?(m=new e(u.text),m.sourcesContent&&(m.sourcesContent=null)):m=u.consumer(),this.map.applySourceMap(m,h,this.toUrl(this.path(p)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let u;for(let h=this.root.nodes.length-1;h>=0;h--)u=this.root.nodes[h],u.type==="comment"&&u.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(h)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),c&&f&&this.isMap())return this.generateMap();{let u="";return this.stringify(this.root,h=>{u+=h}),[u]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let u=this.previous()[0].consumer();u.file=this.outputFile(),this.map=t.fromSourceMap(u,{ignoreInvalidMapping:!0})}else this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let u=1,h=1,p="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,b;this.stringify(this.root,(v,S,w)=>{if(this.css+=v,S&&w!=="end"&&(m.generated.line=u,m.generated.column=h-1,S.source&&S.source.start?(m.source=this.sourcePath(S),m.original.line=S.source.start.line,m.original.column=S.source.start.column-1,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,this.map.addMapping(m))),g=v.match(/\n/g),g?(u+=g.length,b=v.lastIndexOf(`
54
+ `),h=v.length-b):h+=v.length,S&&w!=="start"){let y=S.parent||{raws:{}};(!(S.type==="decl"||S.type==="atrule"&&!S.nodes)||S!==y.last||y.raws.semicolon)&&(S.source&&S.source.end?(m.source=this.sourcePath(S),m.original.line=S.source.end.line,m.original.column=S.source.end.column-1,m.generated.line=u,m.generated.column=h-2,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,m.generated.line=u,m.generated.column=h-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(u=>u.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let u=this.mapOpts.annotation;return typeof u<"u"&&u!==!0?!1:this.previous().length?this.previous().some(h=>h.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(u=>u.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(u){if(this.mapOpts.absolute||u.charCodeAt(0)===60||/^\w+:\/\//.test(u))return u;let h=this.memoizedPaths.get(u);if(h)return h;let p=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=r(i(p,this.mapOpts.annotation)));let m=s(p,u);return this.memoizedPaths.set(u,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(u=>{if(u.source&&u.source.input.map){let h=u.source.input.map;this.previousMaps.includes(h)||this.previousMaps.push(h)}});else{let u=new l(this.originalCSS,this.opts);u.map&&this.previousMaps.push(u.map)}return this.previousMaps}setSourcesContent(){let u={};if(this.root)this.root.walk(h=>{if(h.source){let p=h.source.input.from;if(p&&!u[p]){u[p]=!0;let m=this.usesFileUrls?this.toFileUrl(p):this.toUrl(this.path(p));this.map.setSourceContent(m,h.source.input.css)}}});else if(this.css){let h=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(h,this.css)}}sourcePath(u){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(u.source.input.from):this.toUrl(this.path(u.source.input.from))}toBase64(u){return Buffer?Buffer.from(u).toString("base64"):window.btoa(unescape(encodeURIComponent(u)))}toFileUrl(u){let h=this.memoizedFileURLs.get(u);if(h)return h;if(o){let p=o(u).toString();return this.memoizedFileURLs.set(u,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(u){let h=this.memoizedURLs.get(u);if(h)return h;a==="\\"&&(u=u.replace(/\\/g,"/"));let p=encodeURI(u).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(u,p),p}}return mr=n,mr}var gr,ws;function Ot(){if(ws)return gr;ws=1;let e=_t();class t extends e{constructor(s){super(s),this.type="comment"}}return gr=t,t.default=t,gr}var yr,vs;function De(){if(vs)return yr;vs=1;let{isClean:e,my:t}=li(),r=Nt(),s=Ot(),i=_t(),a,o,l,f;function c(u){return u.map(h=>(h.nodes&&(h.nodes=c(h.nodes)),delete h.source,h))}function n(u){if(u[e]=!1,u.proxyOf.nodes)for(let h of u.proxyOf.nodes)n(h)}class d extends i{append(...h){for(let p of h){let m=this.normalize(p,this.last);for(let g of m)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(h){if(super.cleanRaws(h),this.nodes)for(let p of this.nodes)p.cleanRaws(h)}each(h){if(!this.proxyOf.nodes)return;let p=this.getIterator(),m,g;for(;this.indexes[p]<this.proxyOf.nodes.length&&(m=this.indexes[p],g=h(this.proxyOf.nodes[m],m),g!==!1);)this.indexes[p]+=1;return delete this.indexes[p],g}every(h){return this.nodes.every(h)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let h=this.lastEach;return this.indexes[h]=0,h}getProxyProcessor(){return{get(h,p){return p==="proxyOf"?h:h[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...m)=>h[p](...m.map(g=>typeof g=="function"?(b,v)=>g(b.toProxy(),v):g)):p==="every"||p==="some"?m=>h[p]((g,...b)=>m(g.toProxy(),...b)):p==="root"?()=>h.root().toProxy():p==="nodes"?h.nodes.map(m=>m.toProxy()):p==="first"||p==="last"?h[p].toProxy():h[p]:h[p]},set(h,p,m){return h[p]===m||(h[p]=m,(p==="name"||p==="params"||p==="selector")&&h.markDirty()),!0}}}index(h){return typeof h=="number"?h:(h.proxyOf&&(h=h.proxyOf),this.proxyOf.nodes.indexOf(h))}insertAfter(h,p){let m=this.index(h),g=this.normalize(p,this.proxyOf.nodes[m]).reverse();m=this.index(h);for(let v of g)this.proxyOf.nodes.splice(m+1,0,v);let b;for(let v in this.indexes)b=this.indexes[v],m<b&&(this.indexes[v]=b+g.length);return this.markDirty(),this}insertBefore(h,p){let m=this.index(h),g=m===0?"prepend":!1,b=this.normalize(p,this.proxyOf.nodes[m],g).reverse();m=this.index(h);for(let S of b)this.proxyOf.nodes.splice(m,0,S);let v;for(let S in this.indexes)v=this.indexes[S],m<=v&&(this.indexes[S]=v+b.length);return this.markDirty(),this}normalize(h,p){if(typeof h=="string")h=c(a(h).nodes);else if(typeof h>"u")h=[];else if(Array.isArray(h)){h=h.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type==="root"&&this.type!=="document"){h=h.nodes.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type)h=[h];else if(h.prop){if(typeof h.value>"u")throw new Error("Value field is missed in node creation");typeof h.value!="string"&&(h.value=String(h.value)),h=[new r(h)]}else if(h.selector)h=[new o(h)];else if(h.name)h=[new l(h)];else if(h.text)h=[new s(h)];else throw new Error("Unknown node type in node creation");return h.map(g=>(g[t]||d.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&n(g),typeof g.raws.before>"u"&&p&&typeof p.raws.before<"u"&&(g.raws.before=p.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...h){h=h.reverse();for(let p of h){let m=this.normalize(p,this.first,"prepend").reverse();for(let g of m)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+m.length}return this.markDirty(),this}push(h){return h.parent=this,this.proxyOf.nodes.push(h),this}removeAll(){for(let h of this.proxyOf.nodes)h.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(h){h=this.index(h),this.proxyOf.nodes[h].parent=void 0,this.proxyOf.nodes.splice(h,1);let p;for(let m in this.indexes)p=this.indexes[m],p>=h&&(this.indexes[m]=p-1);return this.markDirty(),this}replaceValues(h,p,m){return m||(m=p,p={}),this.walkDecls(g=>{p.props&&!p.props.includes(g.prop)||p.fast&&!g.value.includes(p.fast)||(g.value=g.value.replace(h,m))}),this.markDirty(),this}some(h){return this.nodes.some(h)}walk(h){return this.each((p,m)=>{let g;try{g=h(p,m)}catch(b){throw p.addToError(b)}return g!==!1&&p.walk&&(g=p.walk(h)),g})}walkAtRules(h,p){return p?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="atrule"&&h.test(m.name))return p(m,g)}):this.walk((m,g)=>{if(m.type==="atrule"&&m.name===h)return p(m,g)}):(p=h,this.walk((m,g)=>{if(m.type==="atrule")return p(m,g)}))}walkComments(h){return this.walk((p,m)=>{if(p.type==="comment")return h(p,m)})}walkDecls(h,p){return p?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="decl"&&h.test(m.prop))return p(m,g)}):this.walk((m,g)=>{if(m.type==="decl"&&m.prop===h)return p(m,g)}):(p=h,this.walk((m,g)=>{if(m.type==="decl")return p(m,g)}))}walkRules(h,p){return p?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="rule"&&h.test(m.selector))return p(m,g)}):this.walk((m,g)=>{if(m.type==="rule"&&m.selector===h)return p(m,g)}):(p=h,this.walk((m,g)=>{if(m.type==="rule")return p(m,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return d.registerParse=u=>{a=u},d.registerRule=u=>{o=u},d.registerAtRule=u=>{l=u},d.registerRoot=u=>{f=u},yr=d,d.default=d,d.rebuild=u=>{u.type==="atrule"?Object.setPrototypeOf(u,l.prototype):u.type==="rule"?Object.setPrototypeOf(u,o.prototype):u.type==="decl"?Object.setPrototypeOf(u,r.prototype):u.type==="comment"?Object.setPrototypeOf(u,s.prototype):u.type==="root"&&Object.setPrototypeOf(u,f.prototype),u[t]=!0,u.nodes&&u.nodes.forEach(h=>{d.rebuild(h)})},yr}var wr,bs;function ui(){if(bs)return wr;bs=1;let e=De(),t,r;class s extends e{constructor(a){super({type:"document",...a}),this.nodes||(this.nodes=[])}toResult(a={}){return new t(new r,this,a).stringify()}}return s.registerLazyResult=i=>{t=i},s.registerProcessor=i=>{r=i},wr=s,s.default=s,wr}var vr,Ss;function kn(){if(Ss)return vr;Ss=1;class e{constructor(r,s={}){if(this.type="warning",this.text=r,s.node&&s.node.source){let i=s.node.rangeBy(s);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in s)this[i]=s[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return vr=e,e.default=e,vr}var br,Es;function ci(){if(Es)return br;Es=1;let e=kn();class t{constructor(s,i,a){this.processor=s,this.messages=[],this.root=i,this.opts=a,this.css=void 0,this.map=void 0}toString(){return this.css}warn(s,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let a=new e(s,i);return this.messages.push(a),a}warnings(){return this.messages.filter(s=>s.type==="warning")}get content(){return this.css}}return br=t,t.default=t,br}var Sr,Cs;function Na(){if(Cs)return Sr;Cs=1;const e=39,t=34,r=92,s=47,i=10,a=32,o=12,l=9,f=13,c=91,n=93,d=40,u=41,h=123,p=125,m=59,g=42,b=58,v=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,E=/[\da-f]/i;return Sr=function(M,T={}){let R=M.css.valueOf(),Y=T.ignoreErrors,P,x,q,Q,B,U,H,Z,z,I,oe=R.length,_=0,O=[],A=[];function N(){return _}function D(re){throw M.error("Unclosed "+re,_)}function j(){return A.length===0&&_>=oe}function ae(re){if(A.length)return A.pop();if(_>=oe)return;let we=re?re.ignoreUnclosed:!1;switch(P=R.charCodeAt(_),P){case i:case a:case l:case f:case o:{x=_;do x+=1,P=R.charCodeAt(x);while(P===a||P===i||P===l||P===f||P===o);I=["space",R.slice(_,x)],_=x-1;break}case c:case n:case h:case p:case b:case m:case u:{let Re=String.fromCharCode(P);I=[Re,Re,_];break}case d:{if(Z=O.length?O.pop()[1]:"",z=R.charCodeAt(_+1),Z==="url"&&z!==e&&z!==t&&z!==a&&z!==i&&z!==l&&z!==o&&z!==f){x=_;do{if(U=!1,x=R.indexOf(")",x+1),x===-1)if(Y||we){x=_;break}else D("bracket");for(H=x;R.charCodeAt(H-1)===r;)H-=1,U=!U}while(U);I=["brackets",R.slice(_,x+1),_,x],_=x}else x=R.indexOf(")",_+1),Q=R.slice(_,x+1),x===-1||y.test(Q)?I=["(","(",_]:(I=["brackets",Q,_,x],_=x);break}case e:case t:{q=P===e?"'":'"',x=_;do{if(U=!1,x=R.indexOf(q,x+1),x===-1)if(Y||we){x=_+1;break}else D("string");for(H=x;R.charCodeAt(H-1)===r;)H-=1,U=!U}while(U);I=["string",R.slice(_,x+1),_,x],_=x;break}case v:{S.lastIndex=_+1,S.test(R),S.lastIndex===0?x=R.length-1:x=S.lastIndex-2,I=["at-word",R.slice(_,x+1),_,x],_=x;break}case r:{for(x=_,B=!0;R.charCodeAt(x+1)===r;)x+=1,B=!B;if(P=R.charCodeAt(x+1),B&&P!==s&&P!==a&&P!==i&&P!==l&&P!==f&&P!==o&&(x+=1,E.test(R.charAt(x)))){for(;E.test(R.charAt(x+1));)x+=1;R.charCodeAt(x+1)===a&&(x+=1)}I=["word",R.slice(_,x+1),_,x],_=x;break}default:{P===s&&R.charCodeAt(_+1)===g?(x=R.indexOf("*/",_+2)+1,x===0&&(Y||we?x=R.length:D("comment")),I=["comment",R.slice(_,x+1),_,x],_=x):(w.lastIndex=_+1,w.test(R),w.lastIndex===0?x=R.length-1:x=w.lastIndex-2,I=["word",R.slice(_,x+1),_,x],O.push(I),_=x);break}}return _++,I}function le(re){A.push(re)}return{back:le,endOfFile:j,nextToken:ae,position:N}},Sr}var Er,xs;function fi(){if(xs)return Er;xs=1;let e=De();class t extends e{constructor(s){super(s),this.type="atrule"}append(...s){return this.proxyOf.nodes||(this.nodes=[]),super.append(...s)}prepend(...s){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...s)}}return Er=t,t.default=t,e.registerAtRule(t),Er}var Cr,Rs;function et(){if(Rs)return Cr;Rs=1;let e=De(),t,r;class s extends e{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,o,l){let f=super.normalize(a);if(o){if(l==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(let c of f)c.raws.before=o.raws.before}return f}removeChild(a,o){let l=this.index(a);return!o&&l===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[l].raws.before),super.removeChild(a)}toResult(a={}){return new t(new r,this,a).stringify()}}return s.registerLazyResult=i=>{t=i},s.registerProcessor=i=>{r=i},Cr=s,s.default=s,e.registerRoot(s),Cr}var xr,Ms;function Pn(){if(Ms)return xr;Ms=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
55
+ `," "];return e.split(t,r)},split(t,r,s){let i=[],a="",o=!1,l=0,f=!1,c="",n=!1;for(let d of t)n?n=!1:d==="\\"?n=!0:f?d===c&&(f=!1):d==='"'||d==="'"?(f=!0,c=d):d==="("?l+=1:d===")"?l>0&&(l-=1):l===0&&r.includes(d)&&(o=!0),o?(a!==""&&i.push(a.trim()),a="",o=!1):a+=d;return(s||a!=="")&&i.push(a.trim()),i}};return xr=e,e.default=e,xr}var Rr,_s;function hi(){if(_s)return Rr;_s=1;let e=De(),t=Pn();class r extends e{constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(i){let a=this.selector?this.selector.match(/,\s*/):null,o=a?a[0]:","+this.raw("between","beforeOpen");this.selector=i.join(o)}}return Rr=r,r.default=r,e.registerRule(r),Rr}var Mr,Ns;function Aa(){if(Ns)return Mr;Ns=1;let e=Nt(),t=Na(),r=Ot(),s=fi(),i=et(),a=hi();const o={empty:!0,space:!0};function l(c){for(let n=c.length-1;n>=0;n--){let d=c[n],u=d[3]||d[2];if(u)return u}}class f{constructor(n){this.input=n,this.root=new i,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:n,start:{column:1,line:1,offset:0}}}atrule(n){let d=new s;d.name=n[1].slice(1),d.name===""&&this.unnamedAtrule(d,n),this.init(d,n[2]);let u,h,p,m=!1,g=!1,b=[],v=[];for(;!this.tokenizer.endOfFile();){if(n=this.tokenizer.nextToken(),u=n[0],u==="("||u==="["?v.push(u==="("?")":"]"):u==="{"&&v.length>0?v.push("}"):u===v[v.length-1]&&v.pop(),v.length===0)if(u===";"){d.source.end=this.getPosition(n[2]),d.source.end.offset++,this.semicolon=!0;break}else if(u==="{"){g=!0;break}else if(u==="}"){if(b.length>0){for(p=b.length-1,h=b[p];h&&h[0]==="space";)h=b[--p];h&&(d.source.end=this.getPosition(h[3]||h[2]),d.source.end.offset++)}this.end(n);break}else b.push(n);else b.push(n);if(this.tokenizer.endOfFile()){m=!0;break}}d.raws.between=this.spacesAndCommentsFromEnd(b),b.length?(d.raws.afterName=this.spacesAndCommentsFromStart(b),this.raw(d,"params",b),m&&(n=b[b.length-1],d.source.end=this.getPosition(n[3]||n[2]),d.source.end.offset++,this.spaces=d.raws.between,d.raws.between="")):(d.raws.afterName="",d.params=""),g&&(d.nodes=[],this.current=d)}checkMissedSemicolon(n){let d=this.colon(n);if(d===!1)return;let u=0,h;for(let p=d-1;p>=0&&(h=n[p],!(h[0]!=="space"&&(u+=1,u===2)));p--);throw this.input.error("Missed semicolon",h[0]==="word"?h[3]+1:h[2])}colon(n){let d=0,u,h,p;for(let[m,g]of n.entries()){if(u=g,h=u[0],h==="("&&(d+=1),h===")"&&(d-=1),d===0&&h===":")if(!p)this.doubleColon(u);else{if(p[0]==="word"&&p[1]==="progid")continue;return m}p=u}return!1}comment(n){let d=new r;this.init(d,n[2]),d.source.end=this.getPosition(n[3]||n[2]),d.source.end.offset++;let u=n[1].slice(2,-2);if(/^\s*$/.test(u))d.text="",d.raws.left=u,d.raws.right="";else{let h=u.match(/^(\s*)([^]*\S)(\s*)$/);d.text=h[2],d.raws.left=h[1],d.raws.right=h[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(n,d){let u=new e;this.init(u,n[0][2]);let h=n[n.length-1];for(h[0]===";"&&(this.semicolon=!0,n.pop()),u.source.end=this.getPosition(h[3]||h[2]||l(n)),u.source.end.offset++;n[0][0]!=="word";)n.length===1&&this.unknownWord(n),u.raws.before+=n.shift()[1];for(u.source.start=this.getPosition(n[0][2]),u.prop="";n.length;){let v=n[0][0];if(v===":"||v==="space"||v==="comment")break;u.prop+=n.shift()[1]}u.raws.between="";let p;for(;n.length;)if(p=n.shift(),p[0]===":"){u.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),u.raws.between+=p[1];(u.prop[0]==="_"||u.prop[0]==="*")&&(u.raws.before+=u.prop[0],u.prop=u.prop.slice(1));let m=[],g;for(;n.length&&(g=n[0][0],!(g!=="space"&&g!=="comment"));)m.push(n.shift());this.precheckMissedSemicolon(n);for(let v=n.length-1;v>=0;v--){if(p=n[v],p[1].toLowerCase()==="!important"){u.important=!0;let S=this.stringFrom(n,v);S=this.spacesFromEnd(n)+S,S!==" !important"&&(u.raws.important=S);break}else if(p[1].toLowerCase()==="important"){let S=n.slice(0),w="";for(let y=v;y>0;y--){let E=S[y][0];if(w.trim().indexOf("!")===0&&E!=="space")break;w=S.pop()[1]+w}w.trim().indexOf("!")===0&&(u.important=!0,u.raws.important=w,n=S)}if(p[0]!=="space"&&p[0]!=="comment")break}n.some(v=>v[0]!=="space"&&v[0]!=="comment")&&(u.raws.between+=m.map(v=>v[1]).join(""),m=[]),this.raw(u,"value",m.concat(n),d),u.value.includes(":")&&!d&&this.checkMissedSemicolon(n)}doubleColon(n){throw this.input.error("Double colon",{offset:n[2]},{offset:n[2]+n[1].length})}emptyRule(n){let d=new a;this.init(d,n[2]),d.selector="",d.raws.between="",this.current=d}end(n){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(n[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(n)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(n){if(this.spaces+=n[1],this.current.nodes){let d=this.current.nodes[this.current.nodes.length-1];d&&d.type==="rule"&&!d.raws.ownSemicolon&&(d.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(n){let d=this.input.fromOffset(n);return{column:d.col,line:d.line,offset:n}}init(n,d){this.current.push(n),n.source={input:this.input,start:this.getPosition(d)},n.raws.before=this.spaces,this.spaces="",n.type!=="comment"&&(this.semicolon=!1)}other(n){let d=!1,u=null,h=!1,p=null,m=[],g=n[1].startsWith("--"),b=[],v=n;for(;v;){if(u=v[0],b.push(v),u==="("||u==="[")p||(p=v),m.push(u==="("?")":"]");else if(g&&h&&u==="{")p||(p=v),m.push("}");else if(m.length===0)if(u===";")if(h){this.decl(b,g);return}else break;else if(u==="{"){this.rule(b);return}else if(u==="}"){this.tokenizer.back(b.pop()),d=!0;break}else u===":"&&(h=!0);else u===m[m.length-1]&&(m.pop(),m.length===0&&(p=null));v=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(d=!0),m.length>0&&this.unclosedBracket(p),d&&h){if(!g)for(;b.length&&(v=b[b.length-1][0],!(v!=="space"&&v!=="comment"));)this.tokenizer.back(b.pop());this.decl(b,g)}else this.unknownWord(b)}parse(){let n;for(;!this.tokenizer.endOfFile();)switch(n=this.tokenizer.nextToken(),n[0]){case"space":this.spaces+=n[1];break;case";":this.freeSemicolon(n);break;case"}":this.end(n);break;case"comment":this.comment(n);break;case"at-word":this.atrule(n);break;case"{":this.emptyRule(n);break;default:this.other(n);break}this.endFile()}precheckMissedSemicolon(){}raw(n,d,u,h){let p,m,g=u.length,b="",v=!0,S,w;for(let y=0;y<g;y+=1)p=u[y],m=p[0],m==="space"&&y===g-1&&!h?v=!1:m==="comment"?(w=u[y-1]?u[y-1][0]:"empty",S=u[y+1]?u[y+1][0]:"empty",!o[w]&&!o[S]?b.slice(-1)===","?v=!1:b+=p[1]:v=!1):b+=p[1];if(!v){let y=u.reduce((E,C)=>E+C[1],"");n.raws[d]={raw:y,value:b}}n[d]=b}rule(n){n.pop();let d=new a;this.init(d,n[0][2]),d.raws.between=this.spacesAndCommentsFromEnd(n),this.raw(d,"selector",n),this.current=d}spacesAndCommentsFromEnd(n){let d,u="";for(;n.length&&(d=n[n.length-1][0],!(d!=="space"&&d!=="comment"));)u=n.pop()[1]+u;return u}spacesAndCommentsFromStart(n){let d,u="";for(;n.length&&(d=n[0][0],!(d!=="space"&&d!=="comment"));)u+=n.shift()[1];return u}spacesFromEnd(n){let d,u="";for(;n.length&&(d=n[n.length-1][0],d==="space");)u=n.pop()[1]+u;return u}stringFrom(n,d){let u="";for(let h=d;h<n.length;h++)u+=n[h][1];return n.splice(d,n.length-d),u}unclosedBlock(){let n=this.current.source.start;throw this.input.error("Unclosed block",n.line,n.column)}unclosedBracket(n){throw this.input.error("Unclosed bracket",{offset:n[2]},{offset:n[2]+1})}unexpectedClose(n){throw this.input.error("Unexpected }",{offset:n[2]},{offset:n[2]+1})}unknownWord(n){throw this.input.error("Unknown word",{offset:n[0][2]},{offset:n[0][2]+n[0][1].length})}unnamedAtrule(n,d){throw this.input.error("At-rule without name",{offset:d[2]},{offset:d[2]+d[1].length})}}return Mr=f,Mr}var _r,As;function di(){if(As)return _r;As=1;let e=De(),t=Aa(),r=At();function s(i,a){let o=new r(i,a),l=new t(o);try{l.parse()}catch(f){throw f}return l.root}return _r=s,s.default=s,e.registerParse(s),_r}var Nr,Os;function In(){if(Os)return Nr;Os=1;let{isClean:e,my:t}=li(),r=Tn(),s=Mt(),i=De(),a=ui(),o=ci(),l=di(),f=et();const c={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},n={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},d={Once:!0,postcssPlugin:!0,prepare:!0},u=0;function h(S){return typeof S=="object"&&typeof S.then=="function"}function p(S){let w=!1,y=c[S.type];return S.type==="decl"?w=S.prop.toLowerCase():S.type==="atrule"&&(w=S.name.toLowerCase()),w&&S.append?[y,y+"-"+w,u,y+"Exit",y+"Exit-"+w]:w?[y,y+"-"+w,y+"Exit",y+"Exit-"+w]:S.append?[y,u,y+"Exit"]:[y,y+"Exit"]}function m(S){let w;return S.type==="document"?w=["Document",u,"DocumentExit"]:S.type==="root"?w=["Root",u,"RootExit"]:w=p(S),{eventIndex:0,events:w,iterator:0,node:S,visitorIndex:0,visitors:[]}}function g(S){return S[e]=!1,S.nodes&&S.nodes.forEach(w=>g(w)),S}let b={};class v{constructor(w,y,E){this.stringified=!1,this.processed=!1;let C;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))C=g(y);else if(y instanceof v||y instanceof o)C=g(y.root),y.map&&(typeof E.map>"u"&&(E.map={}),E.map.inline||(E.map.inline=!1),E.map.prev=y.map);else{let M=l;E.syntax&&(M=E.syntax.parse),E.parser&&(M=E.parser),M.parse&&(M=M.parse);try{C=M(y,E)}catch(T){this.processed=!0,this.error=T}C&&!C[t]&&i.rebuild(C)}this.result=new o(w,C,E),this.helpers={...b,postcss:b,result:this.result},this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?{...M,...M.prepare(this.result)}:M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,y){let E=this.result.lastPlugin;try{y&&y.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=E.postcssPlugin,w.setMessage()):E.postcssVersion}catch(C){console&&console.error&&console.error(C)}return w}prepareVisitors(){this.listeners={};let w=(y,E,C)=>{this.listeners[E]||(this.listeners[E]=[]),this.listeners[E].push([y,C])};for(let y of this.plugins)if(typeof y=="object")for(let E in y){if(!n[E]&&/^[A-Z]/.test(E))throw new Error(`Unknown event ${E} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!d[E])if(typeof y[E]=="object")for(let C in y[E])C==="*"?w(y,E,y[E][C]):w(y,E+"-"+C.toLowerCase(),y[E][C]);else typeof y[E]=="function"&&w(y,E,y[E])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let y=this.plugins[w],E=this.runOnRoot(y);if(h(E))try{await E}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];){w[e]=!0;let y=[m(w)];for(;y.length>0;){let E=this.visitTick(y);if(h(E))try{await E}catch(C){let M=y[y.length-1].node;throw this.handleError(C,M)}}}if(this.listeners.OnceExit)for(let[y,E]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(w.type==="document"){let C=w.nodes.map(M=>E(M,this.helpers));await Promise.all(C)}else await E(w,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(E=>w.Once(E,this.helpers));return h(y[0])?Promise.all(y):y}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,y=s;w.syntax&&(y=w.syntax.stringify),w.stringifier&&(y=w.stringifier),y.stringify&&(y=y.stringify);let C=new r(y,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let y=this.runOnRoot(w);if(h(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];)w[e]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let y of w.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,y){return this.async().then(w,y)}toString(){return this.css}visitSync(w,y){for(let[E,C]of w){this.result.lastPlugin=E;let M;try{M=C(y,this.helpers)}catch(T){throw this.handleError(T,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(h(M))throw this.getAsyncError()}}visitTick(w){let y=w[w.length-1],{node:E,visitors:C}=y;if(E.type!=="root"&&E.type!=="document"&&!E.parent){w.pop();return}if(C.length>0&&y.visitorIndex<C.length){let[T,R]=C[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===C.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=T;try{return R(E.toProxy(),this.helpers)}catch(Y){throw this.handleError(Y,E)}}if(y.iterator!==0){let T=y.iterator,R;for(;R=E.nodes[E.indexes[T]];)if(E.indexes[T]+=1,!R[e]){R[e]=!0,w.push(m(R));return}y.iterator=0,delete E.indexes[T]}let M=y.events;for(;y.eventIndex<M.length;){let T=M[y.eventIndex];if(y.eventIndex+=1,T===u){E.nodes&&E.nodes.length&&(E[e]=!0,y.iterator=E.getIterator());return}else if(this.listeners[T]){y.visitors=this.listeners[T];return}}w.pop()}walkSync(w){w[e]=!0;let y=p(w);for(let E of y)if(E===u)w.nodes&&w.each(C=>{C[e]||this.walkSync(C)});else{let C=this.listeners[E];if(C&&this.visitSync(C,w.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return v.registerPostcss=S=>{b=S},Nr=v,v.default=v,f.registerLazyResult(v),a.registerLazyResult(v),Nr}var Ar,Ds;function Oa(){if(Ds)return Ar;Ds=1;let e=Tn(),t=Mt(),r=di();const s=ci();class i{constructor(o,l,f){l=l.toString(),this.stringified=!1,this._processor=o,this._css=l,this._opts=f,this._map=void 0;let c,n=t;this.result=new s(this._processor,c,this._opts),this.result.css=l;let d=this;Object.defineProperty(this.result,"root",{get(){return d.root}});let u=new e(n,c,this._opts,l);if(u.isMap()){let[h,p]=u.generate();h&&(this.result.css=h),p&&(this.result.map=p)}else u.clearAnnotation(),this.result.css=u.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(o){return this.async().catch(o)}finally(o){return this.async().then(o,o)}sync(){if(this.error)throw this.error;return this.result}then(o,l){return this.async().then(o,l)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let o,l=r;try{o=l(this._css,this._opts)}catch(f){this.error=f}if(this.error)throw this.error;return this._root=o,o}get[Symbol.toStringTag](){return"NoWorkResult"}}return Ar=i,i.default=i,Ar}var Or,Ts;function Da(){if(Ts)return Or;Ts=1;let e=Oa(),t=In(),r=ui(),s=et();class i{constructor(o=[]){this.version="8.4.38",this.plugins=this.normalize(o)}normalize(o){let l=[];for(let f of o)if(f.postcss===!0?f=f():f.postcss&&(f=f.postcss),typeof f=="object"&&Array.isArray(f.plugins))l=l.concat(f.plugins);else if(typeof f=="object"&&f.postcssPlugin)l.push(f);else if(typeof f=="function")l.push(f);else if(!(typeof f=="object"&&(f.parse||f.stringify)))throw new Error(f+" is not a PostCSS plugin");return l}process(o,l={}){return!this.plugins.length&&!l.parser&&!l.stringifier&&!l.syntax?new e(this,o,l):new t(this,o,l)}use(o){return this.plugins=this.plugins.concat(this.normalize([o])),this}}return Or=i,i.default=i,s.registerProcessor(i),r.registerProcessor(i),Or}var Dr,ks;function Ta(){if(ks)return Dr;ks=1;let e=Nt(),t=Dn(),r=Ot(),s=fi(),i=At(),a=et(),o=hi();function l(f,c){if(Array.isArray(f))return f.map(u=>l(u));let{inputs:n,...d}=f;if(n){c=[];for(let u of n){let h={...u,__proto__:i.prototype};h.map&&(h.map={...h.map,__proto__:t.prototype}),c.push(h)}}if(d.nodes&&(d.nodes=f.nodes.map(u=>l(u,c))),d.source){let{inputId:u,...h}=d.source;d.source=h,u!=null&&(d.source.input=c[u])}if(d.type==="root")return new a(d);if(d.type==="decl")return new e(d);if(d.type==="rule")return new o(d);if(d.type==="comment")return new r(d);if(d.type==="atrule")return new s(d);throw new Error("Unknown node type: "+f.type)}return Dr=l,l.default=l,Dr}var Tr,Ps;function ka(){if(Ps)return Tr;Ps=1;let e=ai(),t=Nt(),r=In(),s=De(),i=Da(),a=Mt(),o=Ta(),l=ui(),f=kn(),c=Ot(),n=fi(),d=ci(),u=At(),h=di(),p=Pn(),m=hi(),g=et(),b=_t();function v(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new i(S)}return v.plugin=function(w,y){let E=!1;function C(...T){console&&console.warn&&!E&&(E=!0,console.warn(w+`: postcss.plugin was deprecated. Migration guide:
56
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),ht.LANG&&ht.LANG.startsWith("cn")&&console.warn(w+`: 里面 postcss.plugin 被弃用. 迁移指南:
57
+ https://www.w3ctech.com/topic/2226`));let R=y(...T);return R.postcssPlugin=w,R.postcssVersion=new i().version,R}let M;return Object.defineProperty(C,"postcss",{get(){return M||(M=C()),M}}),C.process=function(T,R,Y){return v([C(Y)]).process(T,R)},C},v.stringify=a,v.parse=h,v.fromJSON=o,v.list=p,v.comment=S=>new c(S),v.atRule=S=>new n(S),v.decl=S=>new t(S),v.rule=S=>new m(S),v.root=S=>new g(S),v.document=S=>new l(S),v.CssSyntaxError=e,v.Declaration=t,v.Container=s,v.Processor=i,v.Document=l,v.Comment=c,v.Warning=f,v.AtRule=n,v.Result=d,v.Input=u,v.Rule=m,v.Root=g,v.Node=b,r.registerPostcss(v),Tr=v,v.default=v,Tr}var Pa=ka();const K=Ea(Pa);K.stringify;K.fromJSON;K.plugin;K.parse;K.list;K.document;K.comment;K.atRule;K.rule;K.decl;K.root;K.CssSyntaxError;K.Declaration;K.Container;K.Processor;K.Document;K.Comment;K.Warning;K.AtRule;K.Result;K.Input;K.Rule;K.Root;K.Node;var W=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(W||{});function Ia(e){const t={},r=/;(?![^(]*\))/g,s=/:(.+)/,i=/\/\*.*?\*\//g;return e.replace(i,"").split(r).forEach(function(a){if(a){const o=a.split(s);o.length>1&&(t[jr(o[0].trim())]=o[1].trim())}}),t}function Is(e){const t=[];for(const r in e){const s=e[r];if(typeof s!="string")continue;const i=Ba(r);t.push(`${i}: ${s};`)}return t.join(" ")}const La=/-([a-z])/g,Fa=/^--[a-zA-Z0-9-]+$/,jr=e=>Fa.test(e)?e:e.replace(La,(t,r)=>r?r.toUpperCase():""),Ua=/\B([A-Z])/g,Ba=e=>e.replace(Ua,"-$1").toLowerCase();class me{constructor(...t){k(this,"parentElement",null),k(this,"parentNode",null),k(this,"ownerDocument"),k(this,"firstChild",null),k(this,"lastChild",null),k(this,"previousSibling",null),k(this,"nextSibling",null),k(this,"ELEMENT_NODE",1),k(this,"TEXT_NODE",3),k(this,"nodeType"),k(this,"nodeName"),k(this,"RRNodeType")}get childNodes(){const t=[];let r=this.firstChild;for(;r;)t.push(r),r=r.nextSibling;return t}contains(t){if(t instanceof me){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}class pi extends me{constructor(...t){super(t),k(this,"nodeType",9),k(this,"nodeName","#document"),k(this,"compatMode","CSS1Compat"),k(this,"RRNodeType",W.Document),k(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(t=>t.RRNodeType===W.Element&&t.tagName==="HTML")||null}get body(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===W.Element&&r.tagName==="BODY"))||null}get head(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===W.Element&&r.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(t){const r=t.RRNodeType;if((r===W.Element||r===W.DocumentType)&&this.childNodes.some(i=>i.RRNodeType===r))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${r===W.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const s=mi(this,t);return s.parentElement=null,s}insertBefore(t,r){const s=t.RRNodeType;if((s===W.Element||s===W.DocumentType)&&this.childNodes.some(a=>a.RRNodeType===s))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${s===W.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const i=zn(this,t,r);return i.parentElement=null,i}removeChild(t){return qn(this,t)}open(){this.firstChild=null,this.lastChild=null}close(){}write(t){let r;if(t==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?r="-//W3C//DTD XHTML 1.0 Transitional//EN":t==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(r="-//W3C//DTD HTML 4.0 Transitional//EN"),r){const s=this.createDocumentType("html",r,"");this.open(),this.appendChild(s)}}createDocument(t,r,s){return new pi}createDocumentType(t,r,s){const i=new Ln(t,r,s);return i.ownerDocument=this,i}createElement(t){const r=new Dt(t);return r.ownerDocument=this,r}createElementNS(t,r){return this.createElement(r)}createTextNode(t){const r=new Fn(t);return r.ownerDocument=this,r}createComment(t){const r=new Un(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new Bn(t);return r.ownerDocument=this,r}toString(){return"RRDocument"}}class Ln extends me{constructor(t,r,s){super(),k(this,"nodeType",10),k(this,"RRNodeType",W.DocumentType),k(this,"name"),k(this,"publicId"),k(this,"systemId"),k(this,"textContent",null),this.name=t,this.publicId=r,this.systemId=s,this.nodeName=t}toString(){return"RRDocumentType"}}class Dt extends me{constructor(t){super(),k(this,"nodeType",1),k(this,"RRNodeType",W.Element),k(this,"tagName"),k(this,"attributes",{}),k(this,"shadowRoot",null),k(this,"scrollLeft"),k(this,"scrollTop"),this.tagName=t.toUpperCase(),this.nodeName=t.toUpperCase()}get textContent(){let t="";return this.childNodes.forEach(r=>t+=r.textContent),t}set textContent(t){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(t))}get classList(){return new Wa(this.attributes.class,t=>{this.attributes.class=t})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){const t=this.attributes.style?Ia(this.attributes.style):{},r=/\B([A-Z])/g;return t.setProperty=(s,i,a)=>{if(r.test(s))return;const o=jr(s);i?t[o]=i:delete t[o],a==="important"&&(t[o]+=" !important"),this.attributes.style=Is(t)},t.removeProperty=s=>{if(r.test(s))return"";const i=jr(s),a=t[i]||"";return delete t[i],this.attributes.style=Is(t),a},t}getAttribute(t){return this.attributes[t]===void 0?null:this.attributes[t]}setAttribute(t,r){this.attributes[t]=r}setAttributeNS(t,r,s){this.setAttribute(r,s)}removeAttribute(t){delete this.attributes[t]}appendChild(t){return mi(this,t)}insertBefore(t,r){return zn(this,t,r)}removeChild(t){return qn(this,t)}attachShadow(t){const r=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=r,r}dispatchEvent(t){return!0}toString(){let t="";for(const r in this.attributes)t+=`${r}="${this.attributes[r]}" `;return`${this.tagName} ${t}`}}class za extends Dt{constructor(){super(...arguments),k(this,"currentTime"),k(this,"volume"),k(this,"paused"),k(this,"muted"),k(this,"playbackRate"),k(this,"loop")}attachShadow(t){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}}class qa extends Dt{constructor(){super(...arguments),k(this,"tagName","DIALOG"),k(this,"nodeName","DIALOG")}get isModal(){return this.getAttribute("rr_open_mode")==="modal"}get open(){return this.getAttribute("open")!==null}close(){this.removeAttribute("open"),this.removeAttribute("rr_open_mode")}show(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","non-modal")}showModal(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","modal")}}class Fn extends me{constructor(t){super(),k(this,"nodeType",3),k(this,"nodeName","#text"),k(this,"RRNodeType",W.Text),k(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRText text=${JSON.stringify(this.data)}`}}class Un extends me{constructor(t){super(),k(this,"nodeType",8),k(this,"nodeName","#comment"),k(this,"RRNodeType",W.Comment),k(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}class Bn extends me{constructor(t){super(),k(this,"nodeName","#cdata-section"),k(this,"nodeType",4),k(this,"RRNodeType",W.CDATA),k(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}class Wa{constructor(t,r){if(k(this,"onChange"),k(this,"classes",[]),k(this,"add",(...s)=>{for(const i of s){const a=String(i);this.classes.indexOf(a)>=0||this.classes.push(a)}this.onChange&&this.onChange(this.classes.join(" "))}),k(this,"remove",(...s)=>{this.classes=this.classes.filter(i=>s.indexOf(i)===-1),this.onChange&&this.onChange(this.classes.join(" "))}),t){const s=t.trim().split(/\s+/);this.classes.push(...s)}this.onChange=r}}function mi(e,t){return t.parentNode&&t.parentNode.removeChild(t),e.lastChild?(e.lastChild.nextSibling=t,t.previousSibling=e.lastChild):(e.firstChild=t,t.previousSibling=null),e.lastChild=t,t.nextSibling=null,t.parentNode=e,t.parentElement=e,t.ownerDocument=e.ownerDocument,t}function zn(e,t,r){if(!r)return mi(e,t);if(r.parentNode!==e)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return t===r||(t.parentNode&&t.parentNode.removeChild(t),t.previousSibling=r.previousSibling,r.previousSibling=t,t.nextSibling=r,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,t.parentElement=e,t.parentNode=e,t.ownerDocument=e.ownerDocument),t}function qn(e,t){if(t.parentNode!==e)throw new Error("Failed to execute 'removeChild' on 'RRNode': The RRNode to be removed is not a child of this RRNode.");return t.previousSibling?t.previousSibling.nextSibling=t.nextSibling:e.firstChild=t.nextSibling,t.nextSibling?t.nextSibling.previousSibling=t.previousSibling:e.lastChild=t.previousSibling,t.previousSibling=null,t.nextSibling=null,t.parentElement=null,t.parentNode=null,t}var ue=(e=>(e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",e))(ue||{});const Vr={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},ja={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};let ge=null;function mt(e,t,r,s=t.mirror||t.ownerDocument.mirror){e=Va(e,t,r,s),Wn(e,t,r,s),Ga(e,t,r)}function Va(e,t,r,s){var i;if(r.afterAppend&&!ge&&(ge=new WeakSet,setTimeout(()=>{ge=null},0)),!gi(e,t)){const a=gt(t,r.mirror,s);(i=e.parentNode)==null||i.replaceChild(a,e),e=a}switch(t.RRNodeType){case W.Document:{if(!Ie(e,t,r.mirror,s)){const a=s.getMeta(t);a&&(r.mirror.removeNodeFromMap(e),e.close(),e.open(),r.mirror.add(e,a),ge==null||ge.add(e))}break}case W.Element:{const a=e,o=t;switch(o.tagName){case"IFRAME":{const l=e.contentDocument;if(!l)break;mt(l,t.contentDocument,r,s);break}}o.shadowRoot&&(a.shadowRoot||a.attachShadow({mode:"open"}),Wn(a.shadowRoot,o.shadowRoot,r,s)),$a(a,o,s);break}}return e}function Ga(e,t,r){var s;switch(t.RRNodeType){case W.Document:{const i=t.scrollData;i&&r.applyScroll(i,!0);break}case W.Element:{const i=e,a=t;switch(a.scrollData&&r.applyScroll(a.scrollData,!0),a.inputData&&r.applyInput(a.inputData),a.tagName){case"AUDIO":case"VIDEO":{const o=e,l=a;l.paused!==void 0&&(l.paused?o.pause():o.play()),l.muted!==void 0&&(o.muted=l.muted),l.volume!==void 0&&(o.volume=l.volume),l.currentTime!==void 0&&(o.currentTime=l.currentTime),l.playbackRate!==void 0&&(o.playbackRate=l.playbackRate),l.loop!==void 0&&(o.loop=l.loop);break}case"CANVAS":{const o=t;if(o.rr_dataURL!==null){const l=document.createElement("img");l.onload=()=>{const f=i.getContext("2d");f&&f.drawImage(l,0,0,l.width,l.height)},l.src=o.rr_dataURL}o.canvasMutations.forEach(l=>r.applyCanvas(l.event,l.mutation,e));break}case"STYLE":{const o=i.sheet;o&&t.rules.forEach(l=>r.applyStyleSheetMutation(l,o));break}case"DIALOG":{const o=i,l=a,f=o.open,c=o.matches("dialog:modal"),n=l.open,d=l.isModal,u=c!==d,h=f!==n;if((u||f&&h)&&o.close(),n&&(h||u))try{d?o.showModal():o.show()}catch(p){console.warn(p)}break}}break}case W.Text:case W.Comment:case W.CDATA:{e.textContent!==t.data&&(e.textContent=t.data);break}}ge!=null&&ge.has(e)&&(ge.delete(e),(s=r.afterAppend)==null||s.call(r,e,r.mirror.getId(e)))}function $a(e,t,r){const s=e.attributes,i=t.attributes;for(const a in i){const o=i[a],l=r.getMeta(t);if(l!=null&&l.isSVG&&Vr[a])e.setAttributeNS(Vr[a],a,o);else if(t.tagName==="CANVAS"&&a==="rr_dataURL"){const f=document.createElement("img");f.src=o,f.onload=()=>{const c=e.getContext("2d");c&&c.drawImage(f,0,0,f.width,f.height)}}else{if(t.tagName==="IFRAME"&&a==="srcdoc")continue;try{e.setAttribute(a,o)}catch(f){console.warn(f)}}}for(const{name:a}of Array.from(s))a in i||e.removeAttribute(a);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}function Wn(e,t,r,s){const i=Array.from(e.childNodes),a=t.childNodes;if(i.length===0&&a.length===0)return;let o=0,l=i.length-1,f=0,c=a.length-1,n=i[o],d=i[l],u=a[f],h=a[c],p,m;for(;o<=l&&f<=c;)if(n===void 0)n=i[++o];else if(d===void 0)d=i[--l];else if(Ie(n,u,r.mirror,s))n=i[++o],u=a[++f];else if(Ie(d,h,r.mirror,s))d=i[--l],h=a[--c];else if(Ie(n,h,r.mirror,s)){try{e.insertBefore(n,d.nextSibling)}catch(v){console.warn(v)}n=i[++o],h=a[--c]}else if(Ie(d,u,r.mirror,s)){try{e.insertBefore(d,n)}catch(v){console.warn(v)}d=i[--l],u=a[++f]}else{if(!p){p={};for(let S=o;S<=l;S++){const w=i[S];w&&r.mirror.hasNode(w)&&(p[r.mirror.getId(w)]=S)}}m=p[s.getId(u)];const v=i[m];if(m!==void 0&&v&&Ie(v,u,r.mirror,s)){try{e.insertBefore(v,n)}catch(S){console.warn(S)}i[m]=void 0}else{const S=gt(u,r.mirror,s);e.nodeName==="#document"&&n&&(S.nodeType===S.DOCUMENT_TYPE_NODE&&n.nodeType===n.DOCUMENT_TYPE_NODE||S.nodeType===S.ELEMENT_NODE&&n.nodeType===n.ELEMENT_NODE)&&(e.removeChild(n),r.mirror.removeNodeFromMap(n),n=i[++o]);try{e.insertBefore(S,n||null)}catch(w){console.warn(w)}}u=a[++f]}if(o>l){const v=a[c+1];let S=null;for(v&&(S=r.mirror.getNode(s.getId(v)));f<=c;++f){const w=gt(a[f],r.mirror,s);try{e.insertBefore(w,S)}catch(y){console.warn(y)}}}else if(f>c)for(;o<=l;o++){const v=i[o];if(!(!v||v.parentNode!==e))try{e.removeChild(v),r.mirror.removeNodeFromMap(v)}catch(S){console.warn(S)}}let g=e.firstChild,b=t.firstChild;for(;g!==null&&b!==null;)mt(g,b,r,s),g=g.nextSibling,b=b.nextSibling}function gt(e,t,r){const s=r.getId(e),i=r.getMeta(e);let a=null;if(s>-1&&(a=t.getNode(s)),a!==null&&gi(a,e))return a;switch(e.RRNodeType){case W.Document:a=new Document;break;case W.DocumentType:a=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case W.Element:{let o=e.tagName.toLowerCase();o=ja[o]||o,i&&"isSVG"in i&&(i!=null&&i.isSVG)?a=document.createElementNS(Vr.svg,o):a=document.createElement(e.tagName);break}case W.Text:a=document.createTextNode(e.data);break;case W.Comment:a=document.createComment(e.data);break;case W.CDATA:a=document.createCDATASection(e.data);break}i&&t.add(a,{...i});try{ge==null||ge.add(a)}catch{}return a}function gi(e,t){return e.nodeType!==t.nodeType?!1:e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===t.tagName}function Ie(e,t,r,s){const i=r.getId(e),a=s.getId(t);return i===-1||i!==a?!1:gi(e,t)}class Ve extends pi{constructor(t){super(),k(this,"UNSERIALIZED_STARTING_ID",-2),k(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),k(this,"mirror",sl()),k(this,"scrollData",null),t&&(this.mirror=t)}get unserializedId(){return this._unserializedId--}createDocument(t,r,s){return new Ve}createDocumentType(t,r,s){const i=new Ha(t,r,s);return i.ownerDocument=this,i}createElement(t){const r=t.toUpperCase();let s;switch(r){case"AUDIO":case"VIDEO":s=new Ya(r);break;case"IFRAME":s=new Ka(r,this.mirror);break;case"CANVAS":s=new Xa(r);break;case"STYLE":s=new Qa(r);break;case"DIALOG":s=new Ja(r);break;default:s=new Tt(r);break}return s.ownerDocument=this,s}createComment(t){const r=new el(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new tl(t);return r.ownerDocument=this,r}createTextNode(t){const r=new Za(t);return r.ownerDocument=this,r}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}}const Ha=Ln;class Tt extends Dt{constructor(){super(...arguments),k(this,"inputData",null),k(this,"scrollData",null)}}class Ya extends za{}class Ja extends qa{}class Xa extends Tt{constructor(){super(...arguments),k(this,"rr_dataURL",null),k(this,"canvasMutations",[])}getContext(){return null}}class Qa extends Tt{constructor(){super(...arguments),k(this,"rules",[])}}class Ka extends Tt{constructor(t,r){super(t),k(this,"contentDocument",new Ve),this.contentDocument.mirror=r}}const Za=Fn,el=Un,tl=Bn;function rl(e){return e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}function jn(e,t,r,s){let i;switch(e.nodeType){case ue.DOCUMENT_NODE:s&&s.nodeName==="IFRAME"?i=s.contentDocument:(i=t,i.compatMode=e.compatMode);break;case ue.DOCUMENT_TYPE_NODE:{const o=e;i=t.createDocumentType(o.name,o.publicId,o.systemId);break}case ue.ELEMENT_NODE:{const o=e,l=rl(o);i=t.createElement(l);const f=i;for(const{name:c,value:n}of Array.from(o.attributes))f.attributes[c]=n;o.scrollLeft&&(f.scrollLeft=o.scrollLeft),o.scrollTop&&(f.scrollTop=o.scrollTop);break}case ue.TEXT_NODE:i=t.createTextNode(e.textContent||"");break;case ue.CDATA_SECTION_NODE:i=t.createCDATASection(e.data);break;case ue.COMMENT_NODE:i=t.createComment(e.textContent||"");break;case ue.DOCUMENT_FRAGMENT_NODE:i=s.attachShadow({mode:"open"});break;default:return null}let a=r.getMeta(e);return t instanceof Ve&&(a||(a=Vn(i,t.unserializedId),r.add(e,a)),t.mirror.add(i,{...a})),i}function il(e,t=Sa(),r=new Ve){function s(i,a){const o=jn(i,r,t,a);if(o!==null)if((a==null?void 0:a.nodeName)!=="IFRAME"&&i.nodeType!==ue.DOCUMENT_FRAGMENT_NODE&&(a==null||a.appendChild(o),o.parentNode=a,o.parentElement=a),i.nodeName==="IFRAME"){const l=i.contentDocument;l&&s(l,o)}else(i.nodeType===ue.DOCUMENT_NODE||i.nodeType===ue.ELEMENT_NODE||i.nodeType===ue.DOCUMENT_FRAGMENT_NODE)&&(i.nodeType===ue.ELEMENT_NODE&&i.shadowRoot&&s(i.shadowRoot,o),i.childNodes.forEach(l=>s(l,o)))}return s(e,null),r}function sl(){return new nl}class nl{constructor(){k(this,"idNodeMap",new Map),k(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(s=>this.removeNodeFromMap(s))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const s=r.id;this.idNodeMap.set(s,t),this.nodeMetaMap.set(t,r)}replace(t,r){const s=this.getNode(t);if(s){const i=this.nodeMetaMap.get(s);i&&this.nodeMetaMap.set(r,i)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Vn(e,t){switch(e.RRNodeType){case W.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case W.DocumentType:{const r=e;return{id:t,type:e.RRNodeType,name:r.name,publicId:r.publicId,systemId:r.systemId}}case W.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case W.Text:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case W.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case W.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}const Ls={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Fs={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ot={},Gn={},ol=()=>!!globalThis.Zone;function yi(e){if(ot[e])return ot[e];const t=globalThis[e],r=t.prototype,s=e in Ls?Ls[e]:void 0,i=!!(s&&s.every(l=>{var f,c;return!!((c=(f=Object.getOwnPropertyDescriptor(r,l))==null?void 0:f.get)!=null&&c.toString().includes("[native code]"))})),a=e in Fs?Fs[e]:void 0,o=!!(a&&a.every(l=>{var f;return typeof r[l]=="function"&&((f=r[l])==null?void 0:f.toString().includes("[native code]"))}));if(i&&o&&!ol())return ot[e]=t.prototype,t.prototype;try{const l=document.createElement("iframe");l.style.display="none",document.body.appendChild(l);const f=l.contentWindow;if(!f)return t.prototype;const c=f[e].prototype;if(!c)return l.remove(),r;const n=navigator.userAgent;return n.includes("Safari")&&!n.includes("Chrome")?(l.classList.add("rr-block"),l.setAttribute("__rrwebUntaintedMutationObserver",""),Gn[e]=()=>l.remove()):l.remove(),ot[e]=c}catch{return r}}const kr={};function Se(e,t,r){var s;const i=`${e}.${String(r)}`;if(kr[i])return kr[i].call(t);const a=yi(e),o=(s=Object.getOwnPropertyDescriptor(a,r))==null?void 0:s.get;return o?(kr[i]=o,o.call(t)):t[r]}const Pr={};function $n(e,t,r){const s=`${e}.${String(r)}`;if(Pr[s])return Pr[s].bind(t);const a=yi(e)[r];return typeof a!="function"?t[r]:(Pr[s]=a,a.bind(t))}function al(e){return Se("Node",e,"ownerDocument")}function ll(e){return Se("Node",e,"childNodes")}function ul(e){return Se("Node",e,"parentNode")}function cl(e){return Se("Node",e,"parentElement")}function fl(e){return Se("Node",e,"textContent")}function hl(e,t){return $n("Node",e,"contains")(t)}function dl(e){return $n("Node",e,"getRootNode")()}function pl(e){return!e||!("host"in e)?null:Se("ShadowRoot",e,"host")}function ml(e){return e.styleSheets}function gl(e){return!e||!("shadowRoot"in e)?null:Se("Element",e,"shadowRoot")}function yl(e,t){return Se("Element",e,"querySelector")(t)}function wl(e,t){return Se("Element",e,"querySelectorAll")(t)}function vl(){return[yi("MutationObserver").constructor,Gn.MutationObserver??(()=>{})]}let Hn=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Hn=()=>new Date().getTime());function bl(e,t,r){try{if(!(t in e))return()=>{};const s=e[t],i=r(s);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:s}})),e[t]=i,()=>{e[t]=s}}catch{return()=>{}}}const Sl={ownerDocument:al,childNodes:ll,parentNode:ul,parentElement:cl,textContent:fl,contains:hl,getRootNode:dl,host:pl,styleSheets:ml,shadowRoot:gl,querySelector:yl,querySelectorAll:wl,nowTimestamp:Hn,mutationObserverCtor:vl,patch:bl},Le=`Please stop import mirror directly. Instead of that,\r
58
+ now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
59
+ or you can use record.mirror to access the mirror instance during recording.`;let Us={map:{},getId(){return console.error(Le),-1},getNode(){return console.error(Le),null},removeNodeFromMap(){console.error(Le)},has(){return console.error(Le),!1},reset(){console.error(Le)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Us=new Proxy(Us,{get(e,t,r){return t==="map"&&console.error(Le),Reflect.get(e,t,r)}}));function El(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Cl(e){const t={},r=(i,a)=>{const o={value:i,parent:a,children:[]};return t[i.node.id]=o,o},s=[];for(const i of e){const{nextId:a,parentId:o}=i;if(a&&a in t){const l=t[a];if(l.parent){const f=l.parent.children.indexOf(l);l.parent.children.splice(f,0,r(i,l.parent))}else{const f=s.indexOf(l);s.splice(f,0,r(i,null))}continue}if(o in t){const l=t[o];l.children.push(r(i,l));continue}s.push(r(i,null))}return s}function Yn(e,t){t(e.value);for(let r=e.children.length-1;r>=0;r--)Yn(e.children[r],t)}function Ir(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Jn(e,t){var r,s;const i=(s=(r=e.ownerDocument)==null?void 0:r.defaultView)==null?void 0:s.frameElement;if(!i||i===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};const a=i.getBoundingClientRect(),o=Jn(i,t),l=a.height/i.clientHeight;return{x:a.x*o.relativeScale+o.x,y:a.y*o.relativeScale+o.y,relativeScale:l,absoluteScale:o.absoluteScale*l}}function at(e){return e?e instanceof me&&"shadowRoot"in e?!!e.shadowRoot:!!Sl.shadowRoot(e):!1}function $e(e,t){const r=e==null?void 0:e[t[0]];return r?t.length===1?r:$e(r.cssRules,t.slice(1)):null}function Bs(e){const t=[...e],r=t.pop();return{positions:t,index:r}}function xl(e){const t=new Set,r=[];for(let s=e.length;s--;){const i=e[s];t.has(i.id)||(r.push(i),t.add(i.id))}return r}class Rl{constructor(){L(this,"id",1),L(this,"styleIDMap",new WeakMap),L(this,"idStyleMap",new Map)}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let s;return r===void 0?s=this.id++:s=r,this.styleIDMap.set(t,s),this.idStyleMap.set(s,t),s}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}var ee=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e[e.Asset=7]="Asset",e))(ee||{}),$=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))($||{}),se=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(se||{}),yt=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(yt||{}),Gr=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Gr||{}),V=(e=>(e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back",e.Destroy="destroy",e))(V||{}),Ce=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Ce||{}),zs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",He=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var lt=0;lt<zs.length;lt++)He[zs.charCodeAt(lt)]=lt;var Ml=function(e){var t=e.length*.75,r=e.length,s,i=0,a,o,l,f;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var c=new ArrayBuffer(t),n=new Uint8Array(c);for(s=0;s<r;s+=4)a=He[e.charCodeAt(s)],o=He[e.charCodeAt(s+1)],l=He[e.charCodeAt(s+2)],f=He[e.charCodeAt(s+3)],n[i++]=a<<2|o>>4,n[i++]=(o&15)<<4|l>>2,n[i++]=(l&3)<<6|f&63;return c};const _l=`(function() {
60
+ "use strict";
61
+ var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
62
+ var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
63
+ for (var i = 0; i < chars.length; i++) {
64
+ lookup[chars.charCodeAt(i)] = i;
65
+ }
66
+ var encode = function(arraybuffer) {
67
+ var bytes = new Uint8Array(arraybuffer), i2, len = bytes.length, base64 = "";
68
+ for (i2 = 0; i2 < len; i2 += 3) {
69
+ base64 += chars[bytes[i2] >> 2];
70
+ base64 += chars[(bytes[i2] & 3) << 4 | bytes[i2 + 1] >> 4];
71
+ base64 += chars[(bytes[i2 + 1] & 15) << 2 | bytes[i2 + 2] >> 6];
72
+ base64 += chars[bytes[i2 + 2] & 63];
73
+ }
74
+ if (len % 3 === 2) {
75
+ base64 = base64.substring(0, base64.length - 1) + "=";
76
+ } else if (len % 3 === 1) {
77
+ base64 = base64.substring(0, base64.length - 2) + "==";
78
+ }
79
+ return base64;
80
+ };
81
+ const lastBlobMap = /* @__PURE__ */ new Map();
82
+ const transparentBlobMap = /* @__PURE__ */ new Map();
83
+ async function getTransparentBlobFor(width, height, dataURLOptions) {
84
+ const id = \`\${width}-\${height}\`;
85
+ if ("OffscreenCanvas" in globalThis) {
86
+ if (transparentBlobMap.has(id)) return transparentBlobMap.get(id);
87
+ const offscreen = new OffscreenCanvas(width, height);
88
+ offscreen.getContext("2d");
89
+ const blob = await offscreen.convertToBlob(dataURLOptions);
90
+ const arrayBuffer = await blob.arrayBuffer();
91
+ const base64 = encode(arrayBuffer);
92
+ transparentBlobMap.set(id, base64);
93
+ return base64;
94
+ } else {
95
+ return "";
96
+ }
97
+ }
98
+ const worker = self;
99
+ worker.onmessage = async function(e) {
100
+ if ("OffscreenCanvas" in globalThis) {
101
+ const { id, bitmap, width, height, dataURLOptions } = e.data;
102
+ const transparentBase64 = getTransparentBlobFor(
103
+ width,
104
+ height,
105
+ dataURLOptions
106
+ );
107
+ const offscreen = new OffscreenCanvas(width, height);
108
+ const ctx = offscreen.getContext("2d");
109
+ ctx.drawImage(bitmap, 0, 0);
110
+ bitmap.close();
111
+ const blob = await offscreen.convertToBlob(dataURLOptions);
112
+ const type = blob.type;
113
+ const arrayBuffer = await blob.arrayBuffer();
114
+ const base64 = encode(arrayBuffer);
115
+ if (!lastBlobMap.has(id) && await transparentBase64 === base64) {
116
+ lastBlobMap.set(id, base64);
117
+ return worker.postMessage({ id });
118
+ }
119
+ if (lastBlobMap.get(id) === base64) return worker.postMessage({ id });
120
+ worker.postMessage({
121
+ id,
122
+ type,
123
+ base64,
124
+ width,
125
+ height
126
+ });
127
+ lastBlobMap.set(id, base64);
128
+ } else {
129
+ return worker.postMessage({ id: e.data.id });
130
+ }
131
+ };
132
+ })();
133
+ //# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
134
+ `;typeof self<"u"&&self.Blob&&new Blob([_l],{type:"text/javascript;charset=utf-8"});try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=((Mi=e.contentWindow)==null?void 0:Mi.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}En();function Nl(e){return{all:e=e||new Map,on:function(t,r){var s=e.get(t);s?s.push(r):e.set(t,[r])},off:function(t,r){var s=e.get(t);s&&(r?s.splice(s.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var s=e.get(t);s&&s.slice().map(function(i){i(r)}),(s=e.get("*"))&&s.slice().map(function(i){i(t,r)})}}}function Al(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;const r=e.HTMLElement||e.Element,s=468,i={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||f,scrollIntoView:r.prototype.scrollIntoView},a=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function o(b){const v=["MSIE ","Trident/","Edge/"];return new RegExp(v.join("|")).test(b)}const l=o(e.navigator.userAgent)?1:0;function f(b,v){this.scrollLeft=b,this.scrollTop=v}function c(b){return .5*(1-Math.cos(Math.PI*b))}function n(b){if(b===null||typeof b!="object"||b.behavior===void 0||b.behavior==="auto"||b.behavior==="instant")return!0;if(typeof b=="object"&&b.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+b.behavior+" is not a valid value for enumeration ScrollBehavior.")}function d(b,v){if(v==="Y")return b.clientHeight+l<b.scrollHeight;if(v==="X")return b.clientWidth+l<b.scrollWidth}function u(b,v){const S=e.getComputedStyle(b,null)["overflow"+v];return S==="auto"||S==="scroll"}function h(b){const v=d(b,"Y")&&u(b,"Y"),S=d(b,"X")&&u(b,"X");return v||S}function p(b){for(;b!==t.body&&h(b)===!1;)b=b.parentNode||b.host;return b}function m(b){const v=a();let S,w,y,E=(v-b.startTime)/s;E=E>1?1:E,S=c(E),w=b.startX+(b.x-b.startX)*S,y=b.startY+(b.y-b.startY)*S,b.method.call(b.scrollable,w,y),(w!==b.x||y!==b.y)&&e.requestAnimationFrame(m.bind(e,b))}function g(b,v,S){let w,y,E,C;const M=a();b===t.body?(w=e,y=e.scrollX||e.pageXOffset,E=e.scrollY||e.pageYOffset,C=i.scroll):(w=b,y=b.scrollLeft,E=b.scrollTop,C=f),m({scrollable:w,method:C,startTime:M,startX:y,startY:E,x:v,y:S})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(n(arguments[0])===!0){i.scroll.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:e.scrollY||e.pageYOffset);return}g.call(e,t.body,arguments[0].left!==void 0?~~arguments[0].left:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:e.scrollY||e.pageYOffset)}},e.scrollBy=function(){if(arguments[0]!==void 0){if(n(arguments[0])){i.scrollBy.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}g.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},r.prototype.scroll=r.prototype.scrollTo=function(){if(arguments[0]===void 0)return;if(n(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");i.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}const b=arguments[0].left,v=arguments[0].top;g.call(this,this,typeof b>"u"?this.scrollLeft:~~b,typeof v>"u"?this.scrollTop:~~v)},r.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(n(arguments[0])===!0){i.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},r.prototype.scrollIntoView=function(){if(n(arguments[0])===!0){i.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}const b=p(this),v=b.getBoundingClientRect(),S=this.getBoundingClientRect();b!==t.body?(g.call(this,b,b.scrollLeft+S.left-v.left,b.scrollTop+S.top-v.top),e.getComputedStyle(b).position!=="fixed"&&e.scrollBy({left:v.left,top:v.top,behavior:"smooth"})):e.scrollBy({left:S.left,top:S.top,behavior:"smooth"})}}class Ol{constructor(t=[],r){L(this,"timeOffset",0),L(this,"speed"),L(this,"actions"),L(this,"raf",null),L(this,"lastTimestamp"),this.actions=t,this.speed=r.speed}addAction(t){const r=this.raf===!0;if(!this.actions.length||this.actions[this.actions.length-1].delay<=t.delay)this.actions.push(t);else{const s=this.findActionIndex(t);this.actions.splice(s,0,t)}r&&(this.raf=requestAnimationFrame(this.rafCheck.bind(this)))}start(){this.timeOffset=0,this.lastTimestamp=performance.now(),this.raf=requestAnimationFrame(this.rafCheck.bind(this))}updateLiveTime(){this.raf===!0&&this.rafCheck()}rafCheck(){const t=performance.now();for(this.timeOffset+=(t-this.lastTimestamp)*this.speed,this.lastTimestamp=t;this.actions.length;){const r=this.actions[0];if(this.timeOffset>=r.delay)this.actions.shift(),r.doAction();else break}this.actions.length>0?this.raf=requestAnimationFrame(this.rafCheck.bind(this)):this.raf=!0}clear(){this.raf&&(this.raf!==!0&&cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(t){this.speed=t}isActive(){return this.raf!==null}findActionIndex(t){let r=0,s=this.actions.length-1;for(;r<=s;){const i=Math.floor((r+s)/2);if(this.actions[i].delay<t.delay)r=i+1;else if(this.actions[i].delay>t.delay)s=i-1;else return i+1}return r}}function qs(e,t){if(e.type===ee.IncrementalSnapshot&&e.data.source===$.MouseMove&&e.data.positions&&e.data.positions.length){const r=e.data.positions[0].timeOffset,s=e.timestamp+r;return e.delay=s-t,s-t}return e.delay=e.timestamp-t,e.delay}/*! *****************************************************************************
135
+ Copyright (c) Microsoft Corporation.
136
+
137
+ Permission to use, copy, modify, and/or distribute this software for any
138
+ purpose with or without fee is hereby granted.
139
+
140
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
141
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
142
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
143
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
144
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
145
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
146
+ PERFORMANCE OF THIS SOFTWARE.
147
+ ***************************************************************************** */function Ws(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var s,i,a=r.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(s=a.next()).done;)o.push(s.value)}catch(l){i={error:l}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o}var Be;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Be||(Be={}));var Xn={type:"xstate.init"};function Lr(e){return e===void 0?[]:[].concat(e)}function Fe(e){return{type:"xstate.assign",assignment:e}}function js(e,t){return typeof(e=typeof e=="string"&&t&&t[e]?t[e]:e)=="string"?{type:e}:typeof e=="function"?{type:e.name,exec:e}:e}function wt(e){return function(t){return e===t}}function Qn(e){return typeof e=="string"?{type:e}:e}function Vs(e,t){return{value:e,context:t,actions:[],changed:!1,matches:wt(e)}}function Gs(e,t,r){var s=t,i=!1;return[e.filter(function(a){if(a.type==="xstate.assign"){i=!0;var o=Object.assign({},s);return typeof a.assignment=="function"?o=a.assignment(s,r):Object.keys(a.assignment).forEach(function(l){o[l]=typeof a.assignment[l]=="function"?a.assignment[l](s,r):a.assignment[l]}),s=o,!1}return!0}),s,i]}function Kn(e,t){t===void 0&&(t={});var r=Ws(Gs(Lr(e.states[e.initial].entry).map(function(o){return js(o,t.actions)}),e.context,Xn),2),s=r[0],i=r[1],a={config:e,_options:t,initialState:{value:e.initial,actions:s,context:i,matches:wt(e.initial)},transition:function(o,l){var f,c,n=typeof o=="string"?{value:o,context:e.context}:o,d=n.value,u=n.context,h=Qn(l),p=e.states[d];if(p.on){var m=Lr(p.on[h.type]);try{for(var g=function(U){var H=typeof Symbol=="function"&&Symbol.iterator,Z=H&&U[H],z=0;if(Z)return Z.call(U);if(U&&typeof U.length=="number")return{next:function(){return U&&z>=U.length&&(U=void 0),{value:U&&U[z++],done:!U}}};throw new TypeError(H?"Object is not iterable.":"Symbol.iterator is not defined.")}(m),b=g.next();!b.done;b=g.next()){var v=b.value;if(v===void 0)return Vs(d,u);var S=typeof v=="string"?{target:v}:v,w=S.target,y=S.actions,E=y===void 0?[]:y,C=S.cond,M=C===void 0?function(){return!0}:C,T=w===void 0,R=w??d,Y=e.states[R];if(M(u,h)){var P=Ws(Gs((T?Lr(E):[].concat(p.exit,E,Y.entry).filter(function(U){return U})).map(function(U){return js(U,a._options.actions)}),u,h),3),x=P[0],q=P[1],Q=P[2],B=w??d;return{value:B,context:q,actions:x,changed:w!==d||x.length>0||Q,matches:wt(B)}}}}catch(U){f={error:U}}finally{try{b&&!b.done&&(c=g.return)&&c.call(g)}finally{if(f)throw f.error}}}return Vs(d,u)}};return a}var $s=function(e,t){return e.actions.forEach(function(r){var s=r.exec;return s&&s(e.context,t)})};function Zn(e){var t=e.initialState,r=Be.NotStarted,s=new Set,i={_machine:e,send:function(a){r===Be.Running&&(t=e.transition(t,a),$s(t,Qn(a)),s.forEach(function(o){return o(t)}))},subscribe:function(a){return s.add(a),a(t),{unsubscribe:function(){return s.delete(a)}}},start:function(a){if(a){var o=typeof a=="object"?a:{context:e.config.context,value:a};t={value:o.value,actions:[],context:o.context,matches:wt(o.value)}}return r=Be.Running,$s(t,Xn),i},stop:function(){return r=Be.Stopped,s.clear(),i},get state(){return t},get status(){return r}};return i}function Dl(e,t){for(let r=e.length-1;r>=0;r--){const s=e[r];if(s.type===ee.Meta&&s.timestamp<=t)return e.slice(r)}return e}function Tl(e,{getCastFn:t,applyEventsSynchronously:r,emitter:s}){const i=Kn({id:"player",context:e,initial:"paused",states:{playing:{on:{PAUSE:{target:"paused",actions:["pause"]},CAST_EVENT:{target:"playing",actions:"castEvent"},END:{target:"paused",actions:["resetLastPlayedEvent","pause"]},ADD_EVENT:{target:"playing",actions:["addEvent"]}}},paused:{on:{PLAY:{target:"playing",actions:["recordTimeOffset","play"]},CAST_EVENT:{target:"paused",actions:"castEvent"},TO_LIVE:{target:"live",actions:["startLive"]},ADD_EVENT:{target:"paused",actions:["addEvent"]}}},live:{on:{ADD_EVENT:{target:"live",actions:["addEvent"]},CAST_EVENT:{target:"live",actions:["castEvent"]}}}}},{actions:{castEvent:Fe({lastPlayedEvent:(a,o)=>o.type==="CAST_EVENT"?o.payload.event:a.lastPlayedEvent}),recordTimeOffset:Fe((a,o)=>{let l=a.timeOffset;return"payload"in o&&"timeOffset"in o.payload&&(l=o.payload.timeOffset),{...a,timeOffset:l,baselineTime:a.events[0].timestamp+l}}),play(a){var o;const{timer:l,events:f,baselineTime:c,lastPlayedEvent:n}=a;l.clear();for(const p of f)qs(p,c);const d=Dl(f,c);let u=n==null?void 0:n.timestamp;(n==null?void 0:n.type)===ee.IncrementalSnapshot&&n.data.source===$.MouseMove&&(u=n.timestamp+((o=n.data.positions[0])==null?void 0:o.timeOffset)),c<(u||0)&&s.emit(V.PlayBack);const h=new Array;for(const p of d)if(!(u&&u<c&&(p.timestamp<=u||p===n)))if(p.timestamp<c)h.push(p);else{const m=t(p,!1);l.addAction({doAction:()=>{m()},delay:p.delay})}r(h),s.emit(V.Flush),l.start()},pause(a){a.timer.clear()},resetLastPlayedEvent:Fe(a=>({...a,lastPlayedEvent:null})),startLive:Fe({baselineTime:(a,o)=>(a.timer.start(),o.type==="TO_LIVE"&&o.payload.baselineTime?o.payload.baselineTime:Date.now())}),addEvent:Fe((a,o)=>{const{baselineTime:l,timer:f,events:c}=a;if(o.type==="ADD_EVENT"){const{event:n}=o.payload;qs(n,l);let d=c.length-1;if(!c[d]||c[d].timestamp<=n.timestamp)c.push(n);else{let p=-1,m=0;for(;m<=d;){const g=Math.floor((m+d)/2);c[g].timestamp<=n.timestamp?m=g+1:d=g-1}p===-1&&(p=m),c.splice(p,0,n)}const u=n.timestamp<l,h=t(n,u);u?h():f.isActive()&&f.addAction({doAction:()=>{h()},delay:n.delay})}return{...a,events:c}})}});return Zn(i)}function kl(e){const t=Kn({id:"speed",context:e,initial:"normal",states:{normal:{on:{FAST_FORWARD:{target:"skipping",actions:["recordSpeed","setSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}},skipping:{on:{BACK_TO_NORMAL:{target:"normal",actions:["restoreSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}}}},{actions:{setSpeed:(r,s)=>{"payload"in s&&r.timer.setSpeed(s.payload.speed)},recordSpeed:Fe({normalSpeed:r=>r.timer.speed}),restoreSpeed:r=>{r.timer.setSpeed(r.normalSpeed)}}});return Zn(t)}const Pl=e=>[`.${e} { background: currentColor }`,"noscript { display: none !important; }"],Hs=new Map;function eo(e,t){let r=Hs.get(e);return r||(r=new Map,Hs.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}function xe(e,t,r){return async s=>{if(s&&typeof s=="object"&&"rr_type"in s)if(r&&(r.isUnchanged=!1),s.rr_type==="ImageBitmap"&&"args"in s){const i=await xe(e,t,r)(s.args);return await createImageBitmap.apply(null,i)}else if("index"in s){if(r||t===null)return s;const{rr_type:i,index:a}=s;return eo(t,i)[a]}else if("args"in s){const{rr_type:i,args:a}=s,o=window[i];return new o(...await Promise.all(a.map(xe(e,t,r))))}else{if("base64"in s)return Ml(s.base64);if("src"in s){const i=e.get(s.src);if(i)return i;{const a=new Image;return a.src=s.src,e.set(s.src,a),a}}else if("data"in s&&s.rr_type==="Blob"){const i=await Promise.all(s.data.map(xe(e,t,r)));return new Blob(i,{type:s.type})}}else if(Array.isArray(s))return await Promise.all(s.map(xe(e,t,r)));return s}}function Il(e,t){try{return t===yt.WebGL?e.getContext("webgl")||e.getContext("experimental-webgl"):e.getContext("webgl2")}catch{return null}}const Ll=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function Fl(e,t){if(!(t!=null&&t.constructor))return;const{name:r}=t.constructor;if(!Ll.includes(r))return;const s=eo(e,r);s.includes(t)||s.push(t)}async function Ul({mutation:e,target:t,type:r,imageMap:s,errorHandler:i}){try{const a=Il(t,r);if(!a)return;if(e.setter){a[e.property]=e.args[0];return}const o=a[e.property],l=await Promise.all(e.args.map(xe(s,a))),f=o.apply(a,l);Fl(a,f);const c=!1}catch(a){i(e,a)}}async function Bl({event:e,mutations:t,target:r,imageMap:s,errorHandler:i}){const a=r.getContext("2d");if(!a){i(t[0],new Error("Canvas context is null"));return}const o=t.map(async f=>Promise.all(f.args.map(xe(s,a))));(await Promise.all(o)).forEach((f,c)=>{const n=t[c];try{if(n.setter){a[n.property]=n.args[0];return}const d=a[n.property];n.property==="drawImage"&&typeof n.args[0]=="string"?(s.get(e),d.apply(a,n.args)):d.apply(a,f)}catch(d){i(n,d)}})}async function Ys({event:e,mutation:t,target:r,imageMap:s,canvasEventMap:i,errorHandler:a}){try{const o=i.get(e)||t,l="commands"in o?o.commands:[o];if([yt.WebGL,yt.WebGL2].includes(t.type)){for(let f=0;f<l.length;f++){const c=l[f];await Ul({mutation:c,type:t.type,target:r,imageMap:s,errorHandler:a})}return}await Bl({event:e,mutations:l,target:r,imageMap:s,errorHandler:a})}catch(o){a(t,o)}}class zl{constructor(t){L(this,"mediaMap",new Map),L(this,"warn"),L(this,"service"),L(this,"speedService"),L(this,"emitter"),L(this,"getCurrentTime"),L(this,"metadataCallbackMap",new Map),this.warn=t.warn,this.service=t.service,this.speedService=t.speedService,this.emitter=t.emitter,this.getCurrentTime=t.getCurrentTime,this.emitter.on(V.Start,this.start.bind(this)),this.emitter.on(V.SkipStart,this.start.bind(this)),this.emitter.on(V.Pause,this.pause.bind(this)),this.emitter.on(V.Finish,this.pause.bind(this)),this.speedService.subscribe(()=>{this.syncAllMediaElements()})}syncAllMediaElements(t={pause:!1}){this.mediaMap.forEach((r,s)=>{this.syncTargetWithState(s),t.pause&&s.pause()})}start(){this.syncAllMediaElements()}pause(){this.syncAllMediaElements({pause:!0})}seekTo({time:t,target:r,mediaState:s}){if(s.isPlaying){const a=(t-s.lastInteractionTimeOffset)/1e3*s.playbackRate,o="duration"in r&&r.duration;if(Number.isNaN(o)){this.waitForMetadata(r);return}let l=s.currentTimeAtLastInteraction+a;r.loop&&o!==!1&&(l=l%o),r.currentTime=l}else r.pause(),r.currentTime=s.currentTimeAtLastInteraction}waitForMetadata(t){if(this.metadataCallbackMap.has(t)||!("addEventListener"in t))return;const r=()=>{this.metadataCallbackMap.delete(t);const s=this.mediaMap.get(t);s&&this.seekTo({time:this.getCurrentTime(),target:t,mediaState:s})};this.metadataCallbackMap.set(t,r),t.addEventListener("loadedmetadata",r,{once:!0})}getMediaStateFromMutation({target:t,timeOffset:r,mutation:s}){const i=this.mediaMap.get(t),{type:a,playbackRate:o,currentTime:l,muted:f,volume:c,loop:n}=s;return{isPlaying:a===Gr.Play||a!==Gr.Pause&&((i==null?void 0:i.isPlaying)||t.getAttribute("autoplay")!==null),currentTimeAtLastInteraction:l??(i==null?void 0:i.currentTimeAtLastInteraction)??0,lastInteractionTimeOffset:r,playbackRate:o??(i==null?void 0:i.playbackRate)??1,volume:c??(i==null?void 0:i.volume)??1,muted:f??(i==null?void 0:i.muted)??t.getAttribute("muted")===null,loop:n??(i==null?void 0:i.loop)??t.getAttribute("loop")===null}}syncTargetWithState(t){const r=this.mediaMap.get(t);if(!r)return;const{muted:s,loop:i,volume:a,isPlaying:o}=r,l=this.service.state.matches("paused"),f=r.playbackRate*this.speedService.state.context.timer.speed;try{this.seekTo({time:this.getCurrentTime(),target:t,mediaState:r}),t.volume!==a&&(t.volume=a),t.muted=s,t.loop=i,t.playbackRate!==f&&(t.playbackRate=f),o&&!l?t.play():t.pause()}catch(c){this.warn(`Failed to replay media interactions: ${c.message||c}`)}}addMediaElements(t,r,s){if(!["AUDIO","VIDEO"].includes(t.nodeName))return;const i=t,a=s.getMeta(i);if(!a||!("attributes"in a))return;const o=this.service.state.matches("paused"),l=a.attributes;let f=!1;l.rr_mediaState?f=l.rr_mediaState==="played":f=i.getAttribute("autoplay")!==null,f&&o&&i.pause();let c=1;typeof l.rr_mediaPlaybackRate=="number"&&(c=l.rr_mediaPlaybackRate);let n=!1;typeof l.rr_mediaMuted=="boolean"?n=l.rr_mediaMuted:n=i.getAttribute("muted")!==null;let d=!1;typeof l.rr_mediaLoop=="boolean"?d=l.rr_mediaLoop:d=i.getAttribute("loop")!==null;let u=1;typeof l.rr_mediaVolume=="number"&&(u=l.rr_mediaVolume);let h=0;typeof l.rr_mediaCurrentTime=="number"&&(h=l.rr_mediaCurrentTime),this.mediaMap.set(i,{isPlaying:f,currentTimeAtLastInteraction:h,lastInteractionTimeOffset:r,playbackRate:c,volume:u,muted:n,loop:d}),this.syncTargetWithState(i)}mediaMutation({target:t,timeOffset:r,mutation:s}){this.mediaMap.set(t,this.getMediaStateFromMutation({target:t,timeOffset:r,mutation:s})),this.syncTargetWithState(t)}isSupportedMediaElement(t){return["AUDIO","VIDEO"].includes(t.nodeName)}reset(){this.mediaMap.clear()}}function ut(e,t){if(e.nodeName!=="DIALOG"||e instanceof me)return;const r=e,s=r.open,i=s&&r.matches("dialog:modal"),a=r.getAttribute("rr_open_mode"),o=typeof(t==null?void 0:t.attributes.open)=="string"||typeof r.getAttribute("open")=="string",l=a==="modal";if(!(s&&!(i&&a==="non-modal"||!i&&l))){if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}s&&r.close(),o&&(l?r.showModal():r.show())}}function ql(e,t){if(e.nodeName!=="DIALOG"||e instanceof me)return;const r=e;if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}t.attributes.open===null&&(r.removeAttribute("open"),r.removeAttribute("rr_open_mode"))}const Wl=5*1e3,jl=Nl,Js="[replayer]",Fr={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function Xs(e){return e.type==ee.IncrementalSnapshot&&(e.data.source==$.TouchMove||e.data.source==$.MouseInteraction&&e.data.type==se.TouchStart)}class Vl{constructor(t,r){if(L(this,"wrapper"),L(this,"iframe"),L(this,"UNSAFE_replayCanvas",!1),L(this,"service"),L(this,"speedService"),L(this,"config"),L(this,"usingVirtualDom",!1),L(this,"virtualDom",new Ve),L(this,"mouse"),L(this,"mouseTail",null),L(this,"tailPositions",[]),L(this,"emitter",jl()),L(this,"nextUserInteractionEvent"),L(this,"legacy_missingNodeRetryMap",{}),L(this,"cache",ss()),L(this,"imageMap",new Map),L(this,"canvasEventMap",new Map),L(this,"mirror",En()),L(this,"styleMirror",new Rl),L(this,"mediaManager"),L(this,"firstFullSnapshot",null),L(this,"newDocumentQueue",[]),L(this,"mousePos",null),L(this,"touchActive",null),L(this,"lastMouseDownEvent",null),L(this,"lastHoveredRootNode"),L(this,"lastSelectionData",null),L(this,"constructedStyleMutations",[]),L(this,"adoptedStyleSheets",[]),L(this,"handleResize",l=>{this.iframe.style.display="inherit";for(const f of[this.mouseTail,this.iframe])f&&(f.setAttribute("width",String(l.width)),f.setAttribute("height",String(l.height)))}),L(this,"applyEventsSynchronously",l=>{for(const f of l){switch(f.type){case ee.DomContentLoaded:case ee.Load:case ee.Custom:continue;case ee.FullSnapshot:case ee.Meta:case ee.Plugin:case ee.IncrementalSnapshot:break}this.getCastFn(f,!0)()}}),L(this,"getCastFn",(l,f=!1)=>{let c;switch(l.type){case ee.DomContentLoaded:case ee.Load:break;case ee.Custom:c=()=>{this.emitter.emit(V.CustomEvent,l)};break;case ee.Meta:c=()=>this.emitter.emit(V.Resize,{width:l.data.width,height:l.data.height});break;case ee.FullSnapshot:c=()=>{var d;if(this.firstFullSnapshot){if(this.firstFullSnapshot===l){this.firstFullSnapshot=!0;return}}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(l,f),(d=this.iframe.contentWindow)==null||d.scrollTo(l.data.initialOffset)};break;case ee.IncrementalSnapshot:c=()=>{if(this.applyIncremental(l,f),!f&&(l===this.nextUserInteractionEvent&&(this.nextUserInteractionEvent=null,this.backToNormal()),this.config.skipInactive&&!this.nextUserInteractionEvent)){for(const d of this.service.state.context.events)if(!(d.timestamp<=l.timestamp)&&this.isUserInteraction(d)){d.delay-l.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=d);break}if(this.nextUserInteractionEvent){const d=this.nextUserInteractionEvent.delay-l.delay,u={speed:Math.min(Math.round(d/Wl),this.config.maxSpeed)};this.speedService.send({type:"FAST_FORWARD",payload:u}),this.emitter.emit(V.SkipStart,u)}}};break}return()=>{c&&c();for(const u of this.config.plugins||[])u.handler&&u.handler(l,f,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:l}});const d=this.service.state.context.events.length-1;if(!this.config.liveMode&&l===this.service.state.context.events[d]){const u=()=>{d<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(V.Finish))};let h=50;l.type===ee.IncrementalSnapshot&&l.data.source===$.MouseMove&&l.data.positions.length&&(h+=Math.max(0,-l.data.positions[0].timeOffset)),setTimeout(u,h)}this.emitter.emit(V.EventCast,l)}}),!(r!=null&&r.liveMode)&&t.length<2)throw new Error("Replayer need at least 2 events.");const s={speed:1,maxSpeed:360,root:document.body,loadTimeout:0,skipInactive:!1,inactivePeriodThreshold:10*1e3,showWarning:!0,showDebug:!1,blockClass:"rr-block",liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:Fr,useVirtualDom:!0,logger:console};this.config=Object.assign({},s,r),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(V.Resize,this.handleResize),this.setupDom();for(const l of this.config.plugins||[])l.getMirror&&l.getMirror({nodeMirror:this.mirror});this.emitter.on(V.Flush,()=>{if(this.usingVirtualDom){const l={mirror:this.mirror,applyCanvas:(f,c,n)=>{Ys({event:f,mutation:c,target:n,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(f,c)=>{f.source===$.StyleSheetRule?this.applyStyleSheetRule(f,c):f.source===$.StyleDeclaration&&this.applyStyleDeclaration(f,c)},afterAppend:(f,c)=>{for(const n of this.config.plugins||[])n.onBuild&&n.onBuild(f,{id:c,replayer:this})}};if(this.iframe.contentDocument)try{mt(this.iframe.contentDocument,this.virtualDom,l,this.virtualDom.mirror)}catch(f){console.warn(f)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(const f in this.legacy_missingNodeRetryMap)try{const c=this.legacy_missingNodeRetryMap[f],n=gt(c.node,this.mirror,this.virtualDom.mirror);mt(n,c.node,l,this.virtualDom.mirror),c.node=n}catch(c){this.warn(c)}this.constructedStyleMutations.forEach(f=>{this.applyStyleSheetMutation(f)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(f=>{this.applyAdoptedStyleSheet(f)}),this.adoptedStyleSheets=[]}if(this.mousePos&&(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=null),this.touchActive===!0?this.mouse.classList.add("touch-active"):this.touchActive===!1&&this.mouse.classList.remove("touch-active"),this.touchActive=null,this.lastMouseDownEvent){const[l,f]=this.lastMouseDownEvent;l.dispatchEvent(f)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)}),this.emitter.on(V.PlayBack,()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()});const i=new Ol([],{speed:this.config.speed});this.service=Tl({events:t.map(l=>r&&r.unpackFn?r.unpackFn(l):l).sort((l,f)=>l.timestamp-f.timestamp),timer:i,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe(l=>{this.emitter.emit(V.StateChange,{player:l})}),this.speedService=kl({normalSpeed:-1,timer:i}),this.speedService.start(),this.speedService.subscribe(l=>{this.emitter.emit(V.StateChange,{speed:l})}),this.mediaManager=new zl({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});const a=this.service.state.context.events.find(l=>l.type===ee.Meta),o=this.service.state.context.events.find(l=>l.type===ee.FullSnapshot);if(a){const{width:l,height:f}=a.data;setTimeout(()=>{this.emitter.emit(V.Resize,{width:l,height:f})},0)}o&&setTimeout(()=>{var l;this.firstFullSnapshot||(this.firstFullSnapshot=o,this.rebuildFullSnapshot(o),(l=this.iframe.contentWindow)==null||l.scrollTo(o.data.initialOffset))},1),this.service.state.context.events.find(Xs)&&this.mouse.classList.add("touch-device")}get timer(){return this.service.state.context.timer}on(t,r){return this.emitter.on(t,r),this}off(t,r){return this.emitter.off(t,r),this}setConfig(t){Object.keys(t).forEach(r=>{t[r],this.config[r]=t[r]}),this.config.skipInactive||this.backToNormal(),typeof t.speed<"u"&&this.speedService.send({type:"SET_SPEED",payload:{speed:t.speed}}),typeof t.mouseTail<"u"&&(t.mouseTail===!1?this.mouseTail&&(this.mouseTail.style.display="none"):(this.mouseTail||(this.mouseTail=document.createElement("canvas"),this.mouseTail.width=Number.parseFloat(this.iframe.width),this.mouseTail.height=Number.parseFloat(this.iframe.height),this.mouseTail.classList.add("replayer-mouse-tail"),this.wrapper.insertBefore(this.mouseTail,this.iframe)),this.mouseTail.style.display="inherit"))}getMetaData(){const t=this.service.state.context.events[0],r=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:t.timestamp,endTime:r.timestamp,totalTime:r.timestamp-t.timestamp}}getCurrentTime(){return this.config.liveMode&&this.timer.updateLiveTime(),this.timer.timeOffset+this.getTimeOffset()}getTimeOffset(){const{baselineTime:t,events:r}=this.service.state.context;return t-r[0].timestamp}getMirror(){return this.mirror}play(t=0){var r,s;this.service.state.matches("paused")?this.service.send({type:"PLAY",payload:{timeOffset:t}}):(this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:t}})),(s=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||s.classList.remove("rrweb-paused"),this.emitter.emit(V.Start)}pause(t){var r,s;t===void 0&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),typeof t=="number"&&(this.play(t),this.service.send({type:"PAUSE"})),(s=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||s.classList.add("rrweb-paused"),this.emitter.emit(V.Pause)}resume(t=0){this.warn("The 'resume' was deprecated in 1.0. Please use 'play' method which has the same interface."),this.play(t),this.emitter.emit(V.Resume)}destroy(){this.pause(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.config.root.removeChild(this.wrapper),this.emitter.emit(V.Destroy)}startLive(t){this.service.send({type:"TO_LIVE",payload:{baselineTime:t}})}addEvent(t){const r=this.config.unpackFn?this.config.unpackFn(t):t;Xs(r)&&this.mouse.classList.add("touch-device"),Promise.resolve().then(()=>this.service.send({type:"ADD_EVENT",payload:{event:r}}))}enableInteract(){this.iframe.setAttribute("scrolling","auto"),this.iframe.style.pointerEvents="auto"}disableInteract(){this.iframe.setAttribute("scrolling","no"),this.iframe.style.pointerEvents="none"}resetCache(){this.cache=ss()}setupDom(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("replayer-wrapper"),this.config.root.appendChild(this.wrapper),this.mouse=document.createElement("div"),this.mouse.classList.add("replayer-mouse"),this.wrapper.appendChild(this.mouse),this.config.mouseTail!==!1&&(this.mouseTail=document.createElement("canvas"),this.mouseTail.classList.add("replayer-mouse-tail"),this.mouseTail.style.display="inherit",this.wrapper.appendChild(this.mouseTail)),this.config.UNSAFE_replayCanvas?(this.iframe=document.createElement("iframe"),this.iframe.setAttribute("sandbox","allow-same-origin allow-scripts"),this.wrapper.appendChild(this.iframe),this.UNSAFE_replayCanvas=!0):(this.iframe=ma({root:this.wrapper}),this.UNSAFE_replayCanvas=!1),this.iframe.style.display="none",this.disableInteract(),this.iframe.contentWindow&&this.iframe.contentDocument&&(Al(this.iframe.contentWindow,this.iframe.contentDocument),El(this.iframe.contentWindow))}rebuildFullSnapshot(t,r=!1){if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");Object.keys(this.legacy_missingNodeRetryMap).length&&this.warn("Found unresolved missing node map",this.legacy_missingNodeRetryMap),this.legacy_missingNodeRetryMap={};const s=[],i=new Set,a=(f,c)=>{if(f.nodeName==="DIALOG"&&i.add(f),this.collectIframeAndAttachDocument(s,f),this.mediaManager.isSupportedMediaElement(f)){const{events:n}=this.service.state.context;this.mediaManager.addMediaElements(f,t.timestamp-n[0].timestamp,this.mirror)}for(const n of this.config.plugins||[])n.onBuild&&n.onBuild(f,{id:c,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),pa(t.data.node,{doc:this.iframe.contentDocument,afterAppend:a,cache:this.cache,mirror:this.mirror,UNSAFE_allowUnprotectedRebuild:this.UNSAFE_replayCanvas}),a(this.iframe.contentDocument,t.data.node.id);for(const{mutationInQueue:f,builtNode:c}of s)this.attachDocumentToIframe(f,c),this.newDocumentQueue=this.newDocumentQueue.filter(n=>n!==f);const{documentElement:o,head:l}=this.iframe.contentDocument;this.insertStyleRules(o,l),i.forEach(f=>ut(f)),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(V.FullsnapshotRebuilded,t),r||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(t,r){var s;const i=Pl(this.config.blockClass).concat(this.config.insertStyleRules);if(this.config.pauseAnimation&&i.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),!!i.length)if(this.usingVirtualDom){const a=this.virtualDom.createElement("style");this.virtualDom.mirror.add(a,Vn(a,this.virtualDom.unserializedId)),t.insertBefore(a,r),a.rules.push({source:$.StyleSheetRule,adds:i.map((o,l)=>({rule:o,index:l}))})}else{const a=document.createElement("style");t.insertBefore(a,r);for(let o=0;o<i.length;o++)(s=a.sheet)==null||s.insertRule(i[o],o)}}attachDocumentToIframe(t,r){const s=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,i=[],a=new Set,o=(l,f)=>{l.nodeName==="DIALOG"&&a.add(l),this.collectIframeAndAttachDocument(i,l);const c=s.getMeta(l);if((c==null?void 0:c.type)===Ce.Element&&(c==null?void 0:c.tagName.toUpperCase())==="HTML"){const{documentElement:n,head:d}=r.contentDocument;this.insertStyleRules(n,d)}if(!this.usingVirtualDom)for(const n of this.config.plugins||[])n.onBuild&&n.onBuild(l,{id:f,replayer:this})};Je(t.node,{doc:r.contentDocument,mirror:s,hackCss:!0,skipChild:!1,afterAppend:o,cache:this.cache}),o(r.contentDocument,t.node.id);for(const{mutationInQueue:l,builtNode:f}of i)this.attachDocumentToIframe(l,f),this.newDocumentQueue=this.newDocumentQueue.filter(c=>c!==l);a.forEach(l=>ut(l))}collectIframeAndAttachDocument(t,r){if(Ir(r,this.mirror)){const s=this.newDocumentQueue.find(i=>i.parentId===this.mirror.getId(r));s&&t.push({mutationInQueue:s,builtNode:r})}}waitForStylesheetLoad(){var t;const r=(t=this.iframe.contentDocument)==null?void 0:t.head;if(r){const s=new Set;let i,a=this.service.state;const o=()=>{a=this.service.state};this.emitter.on(V.Start,o),this.emitter.on(V.Pause,o);const l=()=>{this.emitter.off(V.Start,o),this.emitter.off(V.Pause,o)};r.querySelectorAll('link[rel="stylesheet"]').forEach(f=>{f.sheet||(s.add(f),f.addEventListener("load",()=>{s.delete(f),s.size===0&&i!==-1&&(a.matches("playing")&&this.play(this.getCurrentTime()),this.emitter.emit(V.LoadStylesheetEnd),i&&clearTimeout(i),l())}))}),s.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(V.LoadStylesheetStart),i=setTimeout(()=>{a.matches("playing")&&this.play(this.getCurrentTime()),i=-1,l()},this.config.loadTimeout))}}async preloadAllImages(){const t=[];for(const r of this.service.state.context.events)r.type===ee.IncrementalSnapshot&&r.data.source===$.CanvasMutation&&(t.push(this.deserializeAndPreloadCanvasEvents(r.data,r)),("commands"in r.data?r.data.commands:[r.data]).forEach(i=>{this.preloadImages(i,r)}));return Promise.all(t)}preloadImages(t,r){if(t.property==="drawImage"&&typeof t.args[0]=="string"&&!this.imageMap.has(r)){const s=document.createElement("canvas"),i=s.getContext("2d"),a=i==null?void 0:i.createImageData(s.width,s.height);i==null||i.putImageData(a,0,0)}}async deserializeAndPreloadCanvasEvents(t,r){if(!this.canvasEventMap.has(r)){const s={isUnchanged:!0};if("commands"in t){const i=await Promise.all(t.commands.map(async a=>{const o=await Promise.all(a.args.map(xe(this.imageMap,null,s)));return{...a,args:o}}));s.isUnchanged===!1&&this.canvasEventMap.set(r,{...t,commands:i})}else{const i=await Promise.all(t.args.map(xe(this.imageMap,null,s)));s.isUnchanged===!1&&this.canvasEventMap.set(r,{...t,args:i})}}}applyIncremental(t,r){var s,i,a;const{data:o}=t;switch(o.source){case $.Mutation:{try{this.applyMutation(o,r)}catch(l){this.warn(`Exception in mutation ${l.message||l}`,o)}break}case $.Drag:case $.TouchMove:case $.MouseMove:if(r){const l=o.positions[o.positions.length-1];this.mousePos={x:l.x,y:l.y,id:l.id,debugData:o}}else o.positions.forEach(l=>{const f={doAction:()=>{this.moveAndHover(l.x,l.y,l.id,r,o)},delay:l.timeOffset+t.timestamp-this.service.state.context.baselineTime};this.timer.addAction(f)}),this.timer.addAction({doAction(){},delay:t.delay-((s=o.positions[0])==null?void 0:s.timeOffset)});break;case $.MouseInteraction:{if(o.id===-1)break;const l=new Event(zo(se[o.type])),f=this.mirror.getNode(o.id);if(!f)return this.debugNodeNotFound(o,o.id);this.emitter.emit(V.MouseInteraction,{type:o.type,target:f});const{triggerFocus:c}=this.config;switch(o.type){case se.Blur:"blur"in f&&f.blur();break;case se.Focus:c&&f.focus&&f.focus({preventScroll:!0});break;case se.Click:case se.TouchStart:case se.TouchEnd:case se.MouseDown:case se.MouseUp:r?(o.type===se.TouchStart?this.touchActive=!0:o.type===se.TouchEnd&&(this.touchActive=!1),o.type===se.MouseDown?this.lastMouseDownEvent=[f,l]:o.type===se.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:o.x||0,y:o.y||0,id:o.id,debugData:o}):(o.type===se.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(o.x||0,o.y||0,o.id,r,o),o.type===se.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):o.type===se.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):o.type===se.TouchEnd?this.mouse.classList.remove("touch-active"):f.dispatchEvent(l));break;case se.TouchCancel:r?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:f.dispatchEvent(l)}break}case $.Scroll:{if(o.id===-1)break;if(this.usingVirtualDom){const l=this.virtualDom.mirror.getNode(o.id);if(!l)return this.debugNodeNotFound(o,o.id);l.scrollData=o;break}this.applyScroll(o,r);break}case $.ViewportResize:this.emitter.emit(V.Resize,{width:o.width,height:o.height});break;case $.Input:{if(o.id===-1)break;if(this.usingVirtualDom){const l=this.virtualDom.mirror.getNode(o.id);if(!l)return this.debugNodeNotFound(o,o.id);l.inputData=o;break}this.applyInput(o);break}case $.MediaInteraction:{const l=this.usingVirtualDom?this.virtualDom.mirror.getNode(o.id):this.mirror.getNode(o.id);if(!l)return this.debugNodeNotFound(o,o.id);const f=l,{events:c}=this.service.state.context;this.mediaManager.mediaMutation({target:f,timeOffset:t.timestamp-c[0].timestamp,mutation:o});break}case $.StyleSheetRule:case $.StyleDeclaration:{this.usingVirtualDom?o.styleId?this.constructedStyleMutations.push(o):o.id&&((i=this.virtualDom.mirror.getNode(o.id))==null||i.rules.push(o)):this.applyStyleSheetMutation(o);break}case $.CanvasMutation:{if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){const l=this.virtualDom.mirror.getNode(o.id);if(!l)return this.debugNodeNotFound(o,o.id);l.canvasMutations.push({event:t,mutation:o})}else{const l=this.mirror.getNode(o.id);if(!l)return this.debugNodeNotFound(o,o.id);Ys({event:t,mutation:o,target:l,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break}case $.Font:{try{const l=new FontFace(o.family,o.buffer?new Uint8Array(JSON.parse(o.fontSource)):o.fontSource,o.descriptors);(a=this.iframe.contentDocument)==null||a.fonts.add(l)}catch(l){this.warn(l)}break}case $.Selection:{if(r){this.lastSelectionData=o;break}this.applySelection(o);break}case $.AdoptedStyleSheet:{this.usingVirtualDom?this.adoptedStyleSheets.push(o):this.applyAdoptedStyleSheet(o);break}}}applyMutation(t,r){if(this.config.useVirtualDom&&!this.usingVirtualDom&&r&&(this.usingVirtualDom=!0,il(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(const c in this.legacy_missingNodeRetryMap)try{const n=this.legacy_missingNodeRetryMap[c],d=jn(n.node,this.virtualDom,this.mirror);d&&(n.node=d)}catch(n){this.warn(n)}const s=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;t.removes=t.removes.filter(c=>s.getNode(c.id)?!0:(this.warnNodeNotFound(t,c.id),!1)),t.removes.forEach(c=>{var n;const d=s.getNode(c.id);if(!d)return;let u=s.getNode(c.parentId);if(!u)return this.warnNodeNotFound(t,c.parentId);if(c.isShadow&&at(u)&&(u=u.shadowRoot),s.removeNodeFromMap(d),u)try{u.removeChild(d),this.usingVirtualDom&&d.nodeName==="#text"&&u.nodeName==="STYLE"&&((n=u.rules)==null?void 0:n.length)>0&&(u.rules=[])}catch(h){if(h instanceof DOMException)this.warn("parent could not remove child in mutation",u,d,t);else throw h}});const i={...this.legacy_missingNodeRetryMap},a=[],o=c=>{let n=null;return c.nextId&&(n=s.getNode(c.nextId)),c.nextId!==null&&c.nextId!==void 0&&c.nextId!==-1&&!n},l=c=>{var n,d;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let u=s.getNode(c.parentId);if(!u)return c.node.type===Ce.Document?this.newDocumentQueue.push(c):a.push(c);c.node.isShadow&&(at(u)||u.attachShadow({mode:"open"}),u=u.shadowRoot);let h=null,p=null;if(c.previousId&&(h=s.getNode(c.previousId)),c.nextId&&(p=s.getNode(c.nextId)),o(c))return a.push(c);if(c.node.rootId&&!s.getNode(c.node.rootId))return;const m=c.node.rootId?s.getNode(c.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(Ir(u,s)){this.attachDocumentToIframe(c,u);return}const g=(S,w)=>{if(!this.usingVirtualDom){ut(S);for(const y of this.config.plugins||[])y.onBuild&&y.onBuild(S,{id:w,replayer:this})}},b=Je(c.node,{doc:m,mirror:s,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:g});if(c.previousId===-1||c.nextId===-1){i[c.node.id]={node:b,mutation:c};return}const v=s.getMeta(u);if(v&&v.type===Ce.Element&&c.node.type===Ce.Text){const S=Array.isArray(u.childNodes)?u.childNodes:Array.from(u.childNodes);if(v.tagName==="textarea")for(const w of S)w.nodeType===u.TEXT_NODE&&u.removeChild(w);else if(v.tagName==="style"&&S.length===1)for(const w of S)w.nodeType===u.TEXT_NODE&&!s.hasNode(w)&&(b.textContent=w.textContent,u.removeChild(w))}else if((v==null?void 0:v.type)===Ce.Document){const S=u;c.node.type===Ce.DocumentType&&((n=S.childNodes[0])==null?void 0:n.nodeType)===Node.DOCUMENT_TYPE_NODE&&S.removeChild(S.childNodes[0]),b.nodeName==="HTML"&&S.documentElement&&S.removeChild(S.documentElement)}if(h&&h.nextSibling&&h.nextSibling.parentNode?u.insertBefore(b,h.nextSibling):p&&p.parentNode?u.contains(p)?u.insertBefore(b,p):u.insertBefore(b,null):u.appendChild(b),g(b,c.node.id),this.usingVirtualDom&&b.nodeName==="#text"&&u.nodeName==="STYLE"&&((d=u.rules)==null?void 0:d.length)>0&&(u.rules=[]),Ir(b,this.mirror)){const S=this.mirror.getId(b),w=this.newDocumentQueue.find(y=>y.parentId===S);w&&(this.attachDocumentToIframe(w,b),this.newDocumentQueue=this.newDocumentQueue.filter(y=>y!==w))}(c.previousId||c.nextId)&&this.legacy_resolveMissingNode(i,u,b,c)};t.adds.forEach(c=>{l(c)});const f=Date.now();for(;a.length;){const c=Cl(a);if(a.length=0,Date.now()-f>500){this.warn("Timeout in the loop, please check the resolve tree data:",c);break}for(const n of c)s.getNode(n.value.parentId)?Yn(n,u=>{l(u)}):this.debug("Drop resolve tree since there is no parent for the root node.",n)}Object.keys(i).length&&Object.assign(this.legacy_missingNodeRetryMap,i),xl(t.texts).forEach(c=>{var n;const d=s.getNode(c.id);if(!d)return t.removes.find(h=>h.id===c.id)?void 0:this.warnNodeNotFound(t,c.id);const u=d.parentElement;if(c.value&&u&&u.tagName==="STYLE"?d.textContent=Rt(c.value,this.cache):d.textContent=c.value,this.usingVirtualDom){const h=d.parentNode;((n=h==null?void 0:h.rules)==null?void 0:n.length)>0&&(h.rules=[])}}),t.attributes.forEach(c=>{var n;const d=s.getNode(c.id);if(!d)return t.removes.find(u=>u.id===c.id)?void 0:this.warnNodeNotFound(t,c.id);for(const u in c.attributes)if(typeof u=="string"){const h=c.attributes[u];if(h===null)d.removeAttribute(u),u==="open"&&ql(d,c);else if(typeof h=="string")try{if(u==="_cssText"&&(d.nodeName==="LINK"||d.nodeName==="STYLE"))try{const p=s.getMeta(d),m=Je({...p,attributes:{...p.attributes,...c.attributes}},{doc:d.ownerDocument,mirror:s,skipChild:!0,hackCss:!0,cache:this.cache});Object.assign(p.attributes,c.attributes);const g=d.nextSibling,b=d.parentNode;if(m&&b){b.removeChild(d),b.insertBefore(m,g),s.replace(c.id,m);break}}catch{}if(u==="value"&&d.nodeName==="TEXTAREA"){const p=d;p.childNodes.forEach(g=>p.removeChild(g));const m=(n=d.ownerDocument)==null?void 0:n.createTextNode(h);m&&p.appendChild(m)}else d.setAttribute(u,h);u==="rr_open_mode"&&d.nodeName==="DIALOG"&&ut(d,c)}catch(p){this.warn("An error occurred may due to the checkout feature.",p)}else if(u==="style"){const p=h,m=d;for(const g in p)if(p[g]===!1)m.style.removeProperty(g);else if(p[g]instanceof Array){const b=p[g];m.style.setProperty(g,b[0],b[1])}else{const b=p[g];m.style.setProperty(g,b)}}}})}applyScroll(t,r){var s,i;const a=this.mirror.getNode(t.id);if(!a)return this.debugNodeNotFound(t,t.id);const o=this.mirror.getMeta(a);if(a===this.iframe.contentDocument)(s=this.iframe.contentWindow)==null||s.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else if((o==null?void 0:o.type)===Ce.Document)(i=a.defaultView)==null||i.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else try{a.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"})}catch{}}applyInput(t){const r=this.mirror.getNode(t.id);if(!r)return this.debugNodeNotFound(t,t.id);try{r.checked=t.isChecked,r.value=t.text}catch{}}applySelection(t){try{const r=new Set,s=t.ranges.map(({start:i,startOffset:a,end:o,endOffset:l})=>{const f=this.mirror.getNode(i),c=this.mirror.getNode(o);if(!f||!c)return;const n=new Range;n.setStart(f,a),n.setEnd(c,l);const d=f.ownerDocument,u=d==null?void 0:d.getSelection();return u&&r.add(u),{range:n,selection:u}});r.forEach(i=>i.removeAllRanges()),s.forEach(i=>{var a;return i&&((a=i.selection)==null?void 0:a.addRange(i.range))})}catch{}}applyStyleSheetMutation(t){var r;let s=null;t.styleId?s=this.styleMirror.getStyle(t.styleId):t.id&&(s=((r=this.mirror.getNode(t.id))==null?void 0:r.sheet)||null),s&&(t.source===$.StyleSheetRule?this.applyStyleSheetRule(t,s):t.source===$.StyleDeclaration&&this.applyStyleDeclaration(t,s))}applyStyleSheetRule(t,r){var s,i,a,o;if((s=t.adds)==null||s.forEach(({rule:l,index:f})=>{try{if(Array.isArray(f)){const{positions:c,index:n}=Bs(f),d=$e(r.cssRules,c);d==null||d.insertRule(l,n)}else{const c=f===void 0?void 0:Math.min(f,r.cssRules.length);r==null||r.insertRule(l,c)}}catch{}}),(i=t.removes)==null||i.forEach(({index:l})=>{try{if(Array.isArray(l)){const{positions:f,index:c}=Bs(l),n=$e(r.cssRules,f);n==null||n.deleteRule(c||0)}else r==null||r.deleteRule(l)}catch{}}),typeof t.replace=="string")try{(a=r.replace)==null||a.call(r,t.replace)}catch{}if(typeof t.replaceSync=="string")try{(o=r.replaceSync)==null||o.call(r,t.replaceSync)}catch{}}applyStyleDeclaration(t,r){if(t.set){const s=$e(r.rules,t.index);s!=null&&s.style&&s.style.setProperty(t.set.property,t.set.value,t.set.priority)}if(t.remove){const s=$e(r.rules,t.index);s!=null&&s.style&&s.style.removeProperty(t.remove.property)}}applyAdoptedStyleSheet(t){var r;const s=this.mirror.getNode(t.id);if(!s)return;(r=t.styles)==null||r.forEach(l=>{var f;let c=null,n=null;if(at(s)?n=((f=s.ownerDocument)==null?void 0:f.defaultView)||null:s.nodeName==="#document"&&(n=s.defaultView),!!n)try{c=new n.CSSStyleSheet,this.styleMirror.add(c,l.styleId),this.applyStyleSheetRule({source:$.StyleSheetRule,adds:l.rules},c)}catch{}});const i=10;let a=0;const o=(l,f)=>{const c=f.map(n=>this.styleMirror.getStyle(n)).filter(n=>n!==null);at(l)?l.shadowRoot.adoptedStyleSheets=c:l.nodeName==="#document"&&(l.adoptedStyleSheets=c),c.length!==f.length&&a<i&&(setTimeout(()=>o(l,f),0+100*a),a++)};o(s,t.styleIds)}legacy_resolveMissingNode(t,r,s,i){const{previousId:a,nextId:o}=i,l=a&&t[a],f=o&&t[o];if(l){const{node:c,mutation:n}=l;r.insertBefore(c,s),delete t[n.node.id],delete this.legacy_missingNodeRetryMap[n.node.id],(n.previousId||n.nextId)&&this.legacy_resolveMissingNode(t,r,c,n)}if(f){const{node:c,mutation:n}=f;r.insertBefore(c,s.nextSibling),delete t[n.node.id],delete this.legacy_missingNodeRetryMap[n.node.id],(n.previousId||n.nextId)&&this.legacy_resolveMissingNode(t,r,c,n)}}moveAndHover(t,r,s,i,a){const o=this.mirror.getNode(s);if(!o)return this.debugNodeNotFound(a,s);const l=Jn(o,this.iframe),f=t*l.absoluteScale+l.x,c=r*l.absoluteScale+l.y;this.mouse.style.left=`${f}px`,this.mouse.style.top=`${c}px`,i||this.drawMouseTail({x:f,y:c}),this.hoverElements(o)}drawMouseTail(t){if(!this.mouseTail)return;const{lineCap:r,lineWidth:s,strokeStyle:i,duration:a}=this.config.mouseTail===!0?Fr:Object.assign({},Fr,this.config.mouseTail),o=()=>{if(!this.mouseTail)return;const l=this.mouseTail.getContext("2d");!l||!this.tailPositions.length||(l.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),l.beginPath(),l.lineWidth=s,l.lineCap=r,l.strokeStyle=i,l.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach(f=>l.lineTo(f.x,f.y)),l.stroke())};this.tailPositions.push(t),o(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(l=>l!==t),o()},a/this.speedService.state.context.timer.speed)}hoverElements(t){var r;(r=this.lastHoveredRootNode||this.iframe.contentDocument)==null||r.querySelectorAll(".\\:hover").forEach(i=>{i.classList.remove(":hover")}),this.lastHoveredRootNode=t.getRootNode();let s=t;for(;s;)s.classList&&s.classList.add(":hover"),s=s.parentElement}isUserInteraction(t){return t.type!==ee.IncrementalSnapshot?!1:t.data.source>$.Mutation&&t.data.source<=$.Input}backToNormal(){this.nextUserInteractionEvent=null,!this.speedService.state.matches("normal")&&(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(V.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))}warnNodeNotFound(t,r){this.warn(`Node with id '${r}' not found. `,t)}warnCanvasMutationFailed(t,r){this.warn("Has error on canvas update",r,"canvas mutation:",t)}debugNodeNotFound(t,r){this.debug(`Node with id '${r}' not found. `,t)}warn(...t){this.config.showWarning&&this.config.logger.warn(Js,...t)}debug(...t){this.config.showDebug&&this.config.logger.log(Js,...t)}}var fe=Uint8Array,Ne=Uint16Array,$r=Uint32Array,to=new fe([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ro=new fe([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Gl=new fe([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),io=function(e,t){for(var r=new Ne(31),s=0;s<31;++s)r[s]=t+=1<<e[s-1];for(var i=new $r(r[30]),s=1;s<30;++s)for(var a=r[s];a<r[s+1];++a)i[a]=a-r[s]<<5|s;return[r,i]},so=io(to,2),no=so[0],$l=so[1];no[28]=258,$l[258]=28;var Hl=io(ro,0),Yl=Hl[0],oo=new Ne(32768);for(var J=0;J<32768;++J){var Ee=(J&43690)>>>1|(J&21845)<<1;Ee=(Ee&52428)>>>2|(Ee&13107)<<2,Ee=(Ee&61680)>>>4|(Ee&3855)<<4,oo[J]=((Ee&65280)>>>8|(Ee&255)<<8)>>>1}var Xe=function(e,t,r){for(var s=e.length,i=0,a=new Ne(t);i<s;++i)++a[e[i]-1];var o=new Ne(t);for(i=0;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;var l;{l=new Ne(1<<t);var f=15-t;for(i=0;i<s;++i)if(e[i])for(var c=i<<4|e[i],n=t-e[i],d=o[e[i]-1]++<<n,u=d|(1<<n)-1;d<=u;++d)l[oo[d]>>>f]=c}return l},tt=new fe(288);for(var J=0;J<144;++J)tt[J]=8;for(var J=144;J<256;++J)tt[J]=9;for(var J=256;J<280;++J)tt[J]=7;for(var J=280;J<288;++J)tt[J]=8;var ao=new fe(32);for(var J=0;J<32;++J)ao[J]=5;var Jl=Xe(tt,9),Xl=Xe(ao,5),Ur=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},he=function(e,t,r){var s=t/8>>0;return(e[s]|e[s+1]<<8)>>>(t&7)&r},Br=function(e,t){var r=t/8>>0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>>(t&7)},Ql=function(e){return(e/8>>0)+(e&7&&1)},lo=function(e,t,r){(r==null||r>e.length)&&(r=e.length);var s=new(e instanceof Ne?Ne:e instanceof $r?$r:fe)(r-t);return s.set(e.subarray(t,r)),s},Kl=function(e,t,r){var s=e.length,i=!t||r,a=!r||r.i;r||(r={}),t||(t=new fe(s*3));var o=function(N){var D=t.length;if(N>D){var j=new fe(Math.max(D*2,N));j.set(t),t=j}},l=r.f||0,f=r.p||0,c=r.b||0,n=r.l,d=r.d,u=r.m,h=r.n,p=s*8;do{if(!n){r.f=l=he(e,f,1);var m=he(e,f+1,3);if(f+=3,m)if(m==1)n=Jl,d=Xl,u=9,h=5;else if(m==2){var S=he(e,f,31)+257,w=he(e,f+10,15)+4,y=S+he(e,f+5,31)+1;f+=14;for(var E=new fe(y),C=new fe(19),M=0;M<w;++M)C[Gl[M]]=he(e,f+M*3,7);f+=w*3;var T=Ur(C),R=(1<<T)-1;if(!a&&f+y*(T+7)>p)break;for(var Y=Xe(C,T),M=0;M<y;){var P=Y[he(e,f,R)];f+=P&15;var g=P>>>4;if(g<16)E[M++]=g;else{var x=0,q=0;for(g==16?(q=3+he(e,f,3),f+=2,x=E[M-1]):g==17?(q=3+he(e,f,7),f+=3):g==18&&(q=11+he(e,f,127),f+=7);q--;)E[M++]=x}}var Q=E.subarray(0,S),B=E.subarray(S);u=Ur(Q),h=Ur(B),n=Xe(Q,u),d=Xe(B,h)}else throw"invalid block type";else{var g=Ql(f)+4,b=e[g-4]|e[g-3]<<8,v=g+b;if(v>s){if(a)throw"unexpected EOF";break}i&&o(c+b),t.set(e.subarray(g,v),c),r.b=c+=b,r.p=f=v*8;continue}if(f>p)throw"unexpected EOF"}i&&o(c+131072);for(var U=(1<<u)-1,H=(1<<h)-1,Z=u+h+18;a||f+Z<p;){var x=n[Br(e,f)&U],z=x>>>4;if(f+=x&15,f>p)throw"unexpected EOF";if(!x)throw"invalid length/literal";if(z<256)t[c++]=z;else if(z==256){n=null;break}else{var I=z-254;if(z>264){var M=z-257,oe=to[M];I=he(e,f,(1<<oe)-1)+no[M],f+=oe}var _=d[Br(e,f)&H],O=_>>>4;if(!_)throw"invalid distance";f+=_&15;var B=Yl[O];if(O>3){var oe=ro[O];B+=Br(e,f)&(1<<oe)-1,f+=oe}if(f>p)throw"unexpected EOF";i&&o(c+131072);for(var A=c+I;c<A;c+=4)t[c]=t[c-B],t[c+1]=t[c+1-B],t[c+2]=t[c+2-B],t[c+3]=t[c+3-B];c=A}}r.l=n,r.p=f,r.b=c,n&&(l=1,r.m=u,r.d=d,r.n=h)}while(!l);return c==t.length?t:lo(t,0,c)},Zl=function(e){if((e[0]&15)!=8||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(e[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function eu(e,t){return Kl((Zl(e),e.subarray(2,-4)),t)}function tu(e,t){for(var r=e.length,s=new fe(e.length+(e.length>>>1)),i=0,a=function(c){s[i++]=c},o=0;o<r;++o){if(i+5>s.length){var l=new fe(i+8+(r-o<<1));l.set(s),s=l}var f=e.charCodeAt(o);a(f)}return lo(s,0,i)}function ru(e,t){var r="";if(typeof TextDecoder<"u")return new TextDecoder().decode(e);for(var s=0;s<e.length;){var i=e[s++];i<128||t?r+=String.fromCharCode(i):i<224?r+=String.fromCharCode((i&31)<<6|e[s++]&63):i<240?r+=String.fromCharCode((i&15)<<12|(e[s++]&63)<<6|e[s++]&63):(i=((i&15)<<18|(e[s++]&63)<<12|(e[s++]&63)<<6|e[s++]&63)-65536,r+=String.fromCharCode(55296|i>>10,56320|i&1023))}return r}const Qs="v1",iu=e=>{if(typeof e!="string")return e;try{const t=JSON.parse(e);if(t.timestamp)return t}catch{}try{const t=JSON.parse(ru(eu(tu(e,!0))));if(t.v===Qs)return t;throw new Error(`These events were packed with packer ${t.v} which is incompatible with current packer ${Qs}.`)}catch(t){throw console.error(t),new Error("Unknown data format.")}};var wi=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e[e.Asset=7]="Asset",e))(wi||{}),Hr=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Hr||{});function Ks(e){let t="";return Object.keys(e).forEach(r=>{t+=`${r}: ${e[r]};`}),t}function Ge(e,t=2){let r=String(e);const s=Math.pow(10,t-1);if(e<s)for(;String(s).length>r.length;)r=`0${e}`;return r}const uo=1e3,Yr=60*uo,Zs=60*Yr;function ct(e){if(e<=0)return"00:00";const t=Math.floor(e/Zs);e=e%Zs;const r=Math.floor(e/Yr);e=e%Yr;const s=Math.floor(e/uo);return t?`${Ge(t)}:${Ge(r)}:${Ge(s)}`:`${Ge(r)}:${Ge(s)}`}function su(e){return e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():Promise.resolve()}function nu(){return document.exitFullscreen?document.exitFullscreen():document.mozExitFullscreen?document.mozExitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen?document.msExitFullscreen():Promise.resolve()}function en(){let e=!1;return["fullscreen","webkitIsFullScreen","mozFullScreen","msFullscreenElement"].forEach(t=>{t in document&&(e=e||!!document[t])}),e}function ou(e){return document.addEventListener("fullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),document.addEventListener("mozfullscreenchange",e),document.addEventListener("MSFullscreenChange",e),()=>{document.removeEventListener("fullscreenchange",e),document.removeEventListener("webkitfullscreenchange",e),document.removeEventListener("mozfullscreenchange",e),document.removeEventListener("MSFullscreenChange",e)}}function tn(e){return{"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"}[Object.prototype.toString.call(e)]}function au(e){return e.type!==wi.IncrementalSnapshot?!1:e.data.source>Hr.Mutation&&e.data.source<=Hr.Input}function lu(e,t){const r=[];let s=e[0].timestamp;for(const i of e)au(i)&&(i.timestamp-s>t&&r.push([s,i.timestamp]),s=i.timestamp);return r}function uu(e){let t,r,s,i,a,o,l,f,c;return{c(){t=ne("div"),r=ne("input"),s=ce(),i=ne("label"),a=ce(),o=ne("span"),l=Ae(e[3]),F(r,"type","checkbox"),F(r,"id",e[2]),r.disabled=e[1],F(r,"class","svelte-a6h7w7"),F(i,"for",e[2]),F(i,"class","svelte-a6h7w7"),F(o,"class","label svelte-a6h7w7"),F(t,"class","switch svelte-a6h7w7"),qe(t,"disabled",e[1])},m(n,d){be(n,t,d),G(t,r),r.checked=e[0],G(t,s),G(t,i),G(t,a),G(t,o),G(o,l),f||(c=Ue(r,"change",e[4]),f=!0)},p(n,[d]){d&4&&F(r,"id",n[2]),d&2&&(r.disabled=n[1]),d&1&&(r.checked=n[0]),d&4&&F(i,"for",n[2]),d&8&&pt(l,n[3]),d&2&&qe(t,"disabled",n[1])},i:Qe,o:Qe,d(n){n&&ye(t),f=!1,c()}}}function cu(e,t,r){let{disabled:s}=t,{checked:i}=t,{id:a}=t,{label:o}=t;function l(){i=this.checked,r(0,i)}return e.$$set=f=>{"disabled"in f&&r(1,s=f.disabled),"checked"in f&&r(0,i=f.checked),"id"in f&&r(2,a=f.id),"label"in f&&r(3,o=f.label)},[i,s,a,o,l]}class fu extends Zr{constructor(t){super(),Kr(this,t,cu,uu,Jr,{disabled:1,checked:0,id:2,label:3})}}function rn(e,t,r){const s=e.slice();return s[38]=t[r],s}function sn(e,t,r){const s=e.slice();return s[41]=t[r],s}function nn(e,t,r){const s=e.slice();return s[44]=t[r],s}function on(e){let t,r,s,i=ct(e[6])+"",a,o,l,f,c,n,d,u,h,p,m=ct(e[8].totalTime)+"",g,b,v,S,w,y,E,C,M,T,R,Y,P,x=ke(e[13]),q=[];for(let O=0;O<x.length;O+=1)q[O]=an(nn(e,x,O));let Q=ke(e[9]),B=[];for(let O=0;O<Q.length;O+=1)B[O]=ln(sn(e,Q,O));function U(O,A){return O[7]==="playing"?du:hu}let H=U(e),Z=H(e),z=ke(e[3]),I=[];for(let O=0;O<z.length;O+=1)I[O]=un(rn(e,z,O));function oe(O){e[29](O)}let _={id:"skip",disabled:e[10]==="skipping",label:"skip inactive"};return e[0]!==void 0&&(_.checked=e[0]),E=new fu({props:_}),_e.push(()=>To(E,"checked",oe)),{c(){t=ne("div"),r=ne("div"),s=ne("span"),a=Ae(i),o=ce(),l=ne("div"),f=ne("div"),c=ce();for(let O=0;O<q.length;O+=1)q[O].c();n=ce();for(let O=0;O<B.length;O+=1)B[O].c();d=ce(),u=ne("div"),h=ce(),p=ne("span"),g=Ae(m),b=ce(),v=ne("div"),S=ne("button"),Z.c(),w=ce();for(let O=0;O<I.length;O+=1)I[O].c();y=ce(),bn(E.$$.fragment),M=ce(),T=ne("button"),T.innerHTML=`<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css"></style></defs><path d="M916 380c-26.4 0-48-21.6-48-48L868 223.2 613.6 477.6c-18.4
148
+ 18.4-48.8 18.4-68 0-18.4-18.4-18.4-48.8 0-68L800 156 692 156c-26.4
149
+ 0-48-21.6-48-48 0-26.4 21.6-48 48-48l224 0c26.4 0 48 21.6 48 48l0
150
+ 224C964 358.4 942.4 380 916 380zM231.2 860l108.8 0c26.4 0 48 21.6 48
151
+ 48s-21.6 48-48 48l-224 0c-26.4 0-48-21.6-48-48l0-224c0-26.4 21.6-48
152
+ 48-48 26.4 0 48 21.6 48 48L164 792l253.6-253.6c18.4-18.4 48.8-18.4
153
+ 68 0 18.4 18.4 18.4 48.8 0 68L231.2 860z"></path></svg>`,F(s,"class","rr-timeline__time svelte-189zk2r"),F(f,"class","rr-progress__step svelte-189zk2r"),ie(f,"width",e[12]),F(u,"class","rr-progress__handler svelte-189zk2r"),ie(u,"left",e[12]),F(l,"class","rr-progress svelte-189zk2r"),qe(l,"disabled",e[10]==="skipping"),F(p,"class","rr-timeline__time svelte-189zk2r"),F(r,"class","rr-timeline svelte-189zk2r"),F(S,"class","svelte-189zk2r"),F(T,"class","svelte-189zk2r"),F(v,"class","rr-controller__btns svelte-189zk2r"),F(t,"class","rr-controller svelte-189zk2r")},m(O,A){be(O,t,A),G(t,r),G(r,s),G(s,a),G(r,o),G(r,l),G(l,f),G(l,c);for(let N=0;N<q.length;N+=1)q[N]&&q[N].m(l,null);G(l,n);for(let N=0;N<B.length;N+=1)B[N]&&B[N].m(l,null);G(l,d),G(l,u),e[27](l),G(r,h),G(r,p),G(p,g),G(t,b),G(t,v),G(v,S),Z.m(S,null),G(v,w);for(let N=0;N<I.length;N+=1)I[N]&&I[N].m(v,null);G(v,y),Xr(E,v,null),G(v,M),G(v,T),R=!0,Y||(P=[Ue(l,"click",e[15]),Ue(l,"keydown",e[16]),Ue(S,"click",e[4]),Ue(T,"click",e[30])],Y=!0)},p(O,A){if((!R||A[0]&64)&&i!==(i=ct(O[6])+"")&&pt(a,i),(!R||A[0]&4096)&&ie(f,"width",O[12]),A[0]&8192){x=ke(O[13]);let D;for(D=0;D<x.length;D+=1){const j=nn(O,x,D);q[D]?q[D].p(j,A):(q[D]=an(j),q[D].c(),q[D].m(l,n))}for(;D<q.length;D+=1)q[D].d(1);q.length=x.length}if(A[0]&512){Q=ke(O[9]);let D;for(D=0;D<Q.length;D+=1){const j=sn(O,Q,D);B[D]?B[D].p(j,A):(B[D]=ln(j),B[D].c(),B[D].m(l,d))}for(;D<B.length;D+=1)B[D].d(1);B.length=Q.length}if((!R||A[0]&4096)&&ie(u,"left",O[12]),(!R||A[0]&1024)&&qe(l,"disabled",O[10]==="skipping"),(!R||A[0]&256)&&m!==(m=ct(O[8].totalTime)+"")&&pt(g,m),H!==(H=U(O))&&(Z.d(1),Z=H(O),Z&&(Z.c(),Z.m(S,null))),A[0]&1066){z=ke(O[3]);let D;for(D=0;D<z.length;D+=1){const j=rn(O,z,D);I[D]?I[D].p(j,A):(I[D]=un(j),I[D].c(),I[D].m(v,y))}for(;D<I.length;D+=1)I[D].d(1);I.length=z.length}const N={};A[0]&1024&&(N.disabled=O[10]==="skipping"),!C&&A[0]&1&&(C=!0,N.checked=O[0],Ao(()=>C=!1)),E.$set(N)},i(O){R||(ve(E.$$.fragment,O),R=!0)},o(O){We(E.$$.fragment,O),R=!1},d(O){O&&ye(t),kt(q,O),kt(B,O),e[27](null),Z.d(),kt(I,O),Qr(E),Y=!1,je(P)}}}function an(e){let t,r;return{c(){t=ne("div"),F(t,"title",r=e[44].name),ie(t,"width",e[44].width),ie(t,"height","4px"),ie(t,"position","absolute"),ie(t,"background",e[44].background),ie(t,"left",e[44].position)},m(s,i){be(s,t,i)},p(s,i){i[0]&8192&&r!==(r=s[44].name)&&F(t,"title",r),i[0]&8192&&ie(t,"width",s[44].width),i[0]&8192&&ie(t,"background",s[44].background),i[0]&8192&&ie(t,"left",s[44].position)},d(s){s&&ye(t)}}}function ln(e){let t,r;return{c(){t=ne("div"),F(t,"title",r=e[41].name),ie(t,"width","10px"),ie(t,"height","5px"),ie(t,"position","absolute"),ie(t,"top","2px"),ie(t,"transform","translate(-50%, -50%)"),ie(t,"background",e[41].background),ie(t,"left",e[41].position)},m(s,i){be(s,t,i)},p(s,i){i[0]&512&&r!==(r=s[41].name)&&F(t,"title",r),i[0]&512&&ie(t,"background",s[41].background),i[0]&512&&ie(t,"left",s[41].position)},d(s){s&&ye(t)}}}function hu(e){let t,r;return{c(){t=dt("svg"),r=dt("path"),F(r,"d",`M170.65984 896l0-768 640 384zM644.66944
154
+ 512l-388.66944-233.32864 0 466.65728z`),F(t,"class","icon"),F(t,"viewBox","0 0 1024 1024"),F(t,"version","1.1"),F(t,"xmlns","http://www.w3.org/2000/svg"),F(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),F(t,"width","16"),F(t,"height","16")},m(s,i){be(s,t,i),G(t,r)},d(s){s&&ye(t)}}}function du(e){let t,r;return{c(){t=dt("svg"),r=dt("path"),F(r,"d",`M682.65984 128q53.00224 0 90.50112 37.49888t37.49888 90.50112l0
155
+ 512q0 53.00224-37.49888 90.50112t-90.50112
156
+ 37.49888-90.50112-37.49888-37.49888-90.50112l0-512q0-53.00224
157
+ 37.49888-90.50112t90.50112-37.49888zM341.34016 128q53.00224 0
158
+ 90.50112 37.49888t37.49888 90.50112l0 512q0 53.00224-37.49888
159
+ 90.50112t-90.50112
160
+ 37.49888-90.50112-37.49888-37.49888-90.50112l0-512q0-53.00224
161
+ 37.49888-90.50112t90.50112-37.49888zM341.34016 213.34016q-17.67424
162
+ 0-30.16704 12.4928t-12.4928 30.16704l0 512q0 17.67424 12.4928
163
+ 30.16704t30.16704 12.4928 30.16704-12.4928
164
+ 12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928zM682.65984
165
+ 213.34016q-17.67424 0-30.16704 12.4928t-12.4928 30.16704l0 512q0
166
+ 17.67424 12.4928 30.16704t30.16704 12.4928 30.16704-12.4928
167
+ 12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928z`),F(t,"class","icon"),F(t,"viewBox","0 0 1024 1024"),F(t,"version","1.1"),F(t,"xmlns","http://www.w3.org/2000/svg"),F(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),F(t,"width","16"),F(t,"height","16")},m(s,i){be(s,t,i),G(t,r)},d(s){s&&ye(t)}}}function un(e){let t,r=e[38]+"",s,i,a,o,l;function f(){return e[28](e[38])}return{c(){t=ne("button"),s=Ae(r),i=Ae("x"),t.disabled=a=e[10]==="skipping",F(t,"class","svelte-189zk2r"),qe(t,"active",e[38]===e[1]&&e[10]!=="skipping")},m(c,n){be(c,t,n),G(t,s),G(t,i),o||(l=Ue(t,"click",f),o=!0)},p(c,n){e=c,n[0]&8&&r!==(r=e[38]+"")&&pt(s,r),n[0]&1024&&a!==(a=e[10]==="skipping")&&(t.disabled=a),n[0]&1034&&qe(t,"active",e[38]===e[1]&&e[10]!=="skipping")},d(c){c&&ye(t),o=!1,l()}}}function pu(e){let t,r,s=e[2]&&on(e);return{c(){s&&s.c(),t=Eo()},m(i,a){s&&s.m(i,a),be(i,t,a),r=!0},p(i,a){i[2]?s?(s.p(i,a),a[0]&4&&ve(s,1)):(s=on(i),s.c(),ve(s,1),s.m(t.parentNode,t)):s&&(wn(),We(s,1,1,()=>{s=null}),vn())},i(i){r||(ve(s),r=!0)},o(i){We(s),r=!1},d(i){i&&ye(t),s&&s.d(i)}}}function cn(e,t,r){const s=t-e;return(100-(t-r)/s*100).toFixed(2)}function mu(e,t,r){const s=Mo();let{replayer:i}=t,{showController:a}=t,{autoPlay:o}=t,{skipInactive:l}=t,{speedOption:f}=t,{speed:c=f.length?f[0]:1}=t,{tags:n={}}=t,{inactiveColor:d}=t,u=0,h=null,p,m,g,b,v=!1,S=null,w=null,y,E,C,M;const T=()=>{R();function A(){r(6,u=i.getCurrentTime()),v&&u>=v&&(w?Q(w.start,w.end,!0,void 0):(i.pause(),S&&(S(),S=null))),u<y.totalTime&&(h=requestAnimationFrame(A))}h=requestAnimationFrame(A)},R=()=>{h&&(cancelAnimationFrame(h),h=null)},Y=()=>{switch(p){case"playing":x();break;case"paused":P();break}},P=()=>{p==="paused"&&(b?(i.play(),b=!1):i.play(u))},x=()=>{p==="playing"&&(i.pause(),v=!1)},q=(A,N)=>{r(6,u=A),v=!1,b=!1,(typeof N=="boolean"?N:p==="playing")?i.play(A):i.pause(A)},Q=(A,N,D=!1,j=void 0)=>{D?w={start:A,end:N}:w=null,r(6,u=A),v=N,S=j||null,i.play(A)},B=A=>{if(m==="skipping")return;const N=g.getBoundingClientRect();let j=(A.clientX-N.left)/N.width;j<0?j=0:j>1&&(j=1);const ae=y.totalTime*j;q(ae)},U=A=>{m!=="skipping"&&(A.key==="ArrowLeft"?q(u-5):A.key==="ArrowRight"&&q(u+5))},H=A=>{let N=p==="playing";r(1,c=A),N&&i.pause(),i.setConfig({speed:c}),N&&i.play(u)},Z=()=>{r(0,l=!l)},z=()=>Promise.resolve().then(()=>{r(8,y=i.getMetaData())});mn(()=>{r(7,p=i.service.state.value),r(10,m=i.speedService.state.value),i.on("state-change",A=>{const{player:N,speed:D}=A;if(N!=null&&N.value&&p!==N.value)switch(r(7,p=N.value),p){case"playing":T();break;case"paused":R();break}D!=null&&D.value&&m!==D.value&&r(10,m=D.value)}),i.on("finish",()=>{b=!0,S&&(S(),S=null)}),o&&i.play()}),Ro(()=>{l!==i.config.skipInactive&&i.setConfig({skipInactive:l})}),gn(()=>{i.pause(),R()});function I(A){_e[A?"unshift":"push"](()=>{g=A,r(11,g)})}const oe=A=>H(A);function _(A){l=A,r(0,l)}const O=()=>s("fullscreen");return e.$$set=A=>{"replayer"in A&&r(17,i=A.replayer),"showController"in A&&r(2,a=A.showController),"autoPlay"in A&&r(18,o=A.autoPlay),"skipInactive"in A&&r(0,l=A.skipInactive),"speedOption"in A&&r(3,f=A.speedOption),"speed"in A&&r(1,c=A.speed),"tags"in A&&r(19,n=A.tags),"inactiveColor"in A&&r(20,d=A.inactiveColor)},e.$$.update=()=>{if(e.$$.dirty[0]&64&&s("ui-update-current-time",{payload:u}),e.$$.dirty[0]&128&&s("ui-update-player-state",{payload:p}),e.$$.dirty[0]&131072&&r(8,y=i.getMetaData()),e.$$.dirty[0]&320){const A=Math.min(1,u/y.totalTime);r(12,E=`${100*A}%`),s("ui-update-progress",{payload:A})}e.$$.dirty[0]&655360&&r(9,C=(()=>{const{context:A}=i.service.state,N=A.events.length,D=A.events[0].timestamp,j=A.events[N-1].timestamp,ae=[];return A.events.forEach(le=>{if(le.type===wi.Custom){const re={name:le.data.tag,background:n[le.data.tag]||"rgb(73, 80, 246)",position:`${cn(D,j,le.timestamp)}%`};ae.push(re)}}),ae})()),e.$$.dirty[0]&1179648&&r(13,M=(()=>{try{const{context:A}=i.service.state,N=A.events.length,D=A.events[0].timestamp,j=A.events[N-1].timestamp,ae=lu(A.events,i.config.inactivePeriodThreshold),le=(re,we,Re,co)=>{const fo=we-re;return((co-Re)/fo*100).toFixed(2)};return ae.map(re=>({name:"inactive period",background:d,position:`${cn(D,j,re[0])}%`,width:`${le(D,j,re[0],re[1])}%`}))}catch{return[]}})())},[l,c,a,f,Y,H,u,p,y,C,m,g,E,M,s,B,U,i,o,n,d,P,x,q,Q,Z,z,I,oe,_,O]}class gu extends Zr{constructor(t){super(),Kr(this,t,mu,pu,Jr,{replayer:17,showController:2,autoPlay:18,skipInactive:0,speedOption:3,speed:1,tags:19,inactiveColor:20,toggle:4,play:21,pause:22,goto:23,playRange:24,setSpeed:5,toggleSkipInactive:25,triggerUpdateMeta:26},null,[-1,-1])}get toggle(){return this.$$.ctx[4]}get play(){return this.$$.ctx[21]}get pause(){return this.$$.ctx[22]}get goto(){return this.$$.ctx[23]}get playRange(){return this.$$.ctx[24]}get setSpeed(){return this.$$.ctx[5]}get toggleSkipInactive(){return this.$$.ctx[25]}get triggerUpdateMeta(){return this.$$.ctx[26]}}function fn(e){let t,r,s={replayer:e[7],showController:e[3],autoPlay:e[1],speedOption:e[2],skipInactive:e[0],tags:e[4],inactiveColor:e[5]};return t=new gu({props:s}),e[32](t),t.$on("fullscreen",e[33]),{c(){bn(t.$$.fragment)},m(i,a){Xr(t,i,a),r=!0},p(i,a){const o={};a[0]&128&&(o.replayer=i[7]),a[0]&8&&(o.showController=i[3]),a[0]&2&&(o.autoPlay=i[1]),a[0]&4&&(o.speedOption=i[2]),a[0]&1&&(o.skipInactive=i[0]),a[0]&16&&(o.tags=i[4]),a[0]&32&&(o.inactiveColor=i[5]),t.$set(o)},i(i){r||(ve(t.$$.fragment,i),r=!0)},o(i){We(t.$$.fragment,i),r=!1},d(i){e[32](null),Qr(t,i)}}}function yu(e){let t,r,s,i,a=e[7]&&fn(e);return{c(){t=ne("div"),r=ne("div"),s=ce(),a&&a.c(),F(r,"class","rr-player__frame"),F(r,"style",e[11]),F(t,"class","rr-player"),F(t,"style",e[12])},m(o,l){be(o,t,l),G(t,r),e[31](r),G(t,s),a&&a.m(t,null),e[34](t),i=!0},p(o,l){(!i||l[0]&2048)&&F(r,"style",o[11]),o[7]?a?(a.p(o,l),l[0]&128&&ve(a,1)):(a=fn(o),a.c(),ve(a,1),a.m(t,null)):a&&(wn(),We(a,1,1,()=>{a=null}),vn()),(!i||l[0]&4096)&&F(t,"style",o[12])},i(o){i||(ve(a),i=!0)},o(o){We(a),i=!1},d(o){o&&ye(t),e[31](null),a&&a.d(),e[34](null)}}}const hn=80;function wu(e,t,r){let{width:s=1024}=t,{height:i=576}=t,{maxScale:a=1}=t,{events:o}=t,{skipInactive:l=!0}=t,{autoPlay:f=!0}=t,{speedOption:c=[1,2,4,8]}=t,{speed:n=1}=t,{showController:d=!0}=t,{tags:u={}}=t,{inactiveColor:h="#D4D4D4"}=t,p;const m=()=>p.getMirror();let g,b,v,S=s,w=i,y,E,C;const M=(N,D)=>{const j=s/D.width,ae=i/D.height,le=[j,ae];a&&le.push(a),N.style.transform=`scale(${Math.min(...le)})translate(-50%, -50%)`},T=()=>{M(p.wrapper,{width:p.iframe.offsetWidth,height:p.iframe.offsetHeight})},R=()=>{g&&(en()?nu():su(g))},Y=(N,D)=>{switch(p.on(N,D),N){case"ui-update-current-time":case"ui-update-progress":case"ui-update-player-state":y.$on(N,({detail:j})=>D(j))}},P=N=>{p.addEvent(N),y.triggerUpdateMeta()},x=()=>p.getMetaData(),q=()=>p,Q=()=>{y.toggle()},B=N=>{y.setSpeed(N)},U=()=>{y.toggleSkipInactive()},H=()=>{y.play()},Z=()=>{y.pause()},z=(N,D)=>{y.goto(N,D)},I=(N,D,j=!1,ae=void 0)=>{y.playRange(N,D,j,ae)};mn(()=>{if(c!==void 0&&tn(c)!=="array")throw new Error("speedOption must be array");if(c.forEach(N=>{if(tn(N)!=="number")throw new Error("item of speedOption must be number")}),c.indexOf(n)<0)throw new Error(`speed must be one of speedOption,
168
+ current config:
169
+ {
170
+ ...
171
+ speed: ${n},
172
+ speedOption: [${c.toString()}]
173
+ ...
174
+ }
175
+ `);r(7,p=new Vl(o,{speed:n,root:b,unpackFn:iu,...t})),p.on("resize",N=>{M(p.wrapper,N)}),v=ou(()=>{en()?setTimeout(()=>{S=s,w=i,r(13,s=g.offsetWidth),r(14,i=g.offsetHeight-(d?hn:0)),M(p.wrapper,{width:p.iframe.offsetWidth,height:p.iframe.offsetHeight})},0):(r(13,s=S),r(14,i=w),M(p.wrapper,{width:p.iframe.offsetWidth,height:p.iframe.offsetHeight}))})}),gn(()=>{v&&v()});function oe(N){_e[N?"unshift":"push"](()=>{b=N,r(9,b)})}function _(N){_e[N?"unshift":"push"](()=>{y=N,r(10,y)})}const O=()=>R();function A(N){_e[N?"unshift":"push"](()=>{g=N,r(8,g)})}return e.$$set=N=>{r(39,t=Ci(Ci({},t),Ri(N))),"width"in N&&r(13,s=N.width),"height"in N&&r(14,i=N.height),"maxScale"in N&&r(15,a=N.maxScale),"events"in N&&r(16,o=N.events),"skipInactive"in N&&r(0,l=N.skipInactive),"autoPlay"in N&&r(1,f=N.autoPlay),"speedOption"in N&&r(2,c=N.speedOption),"speed"in N&&r(17,n=N.speed),"showController"in N&&r(3,d=N.showController),"tags"in N&&r(4,u=N.tags),"inactiveColor"in N&&r(5,h=N.inactiveColor)},e.$$.update=()=>{e.$$.dirty[0]&24576&&r(11,E=Ks({width:`${s}px`,height:`${i}px`})),e.$$.dirty[0]&24584&&r(12,C=Ks({width:`${s}px`,height:`${i+(d?hn:0)}px`}))},t=Ri(t),[l,f,c,d,u,h,R,p,g,b,y,E,C,s,i,a,o,n,m,T,Y,P,x,q,Q,B,U,H,Z,z,I,oe,_,O,A]}let vu=class extends Zr{constructor(t){super(),Kr(this,t,wu,yu,Jr,{width:13,height:14,maxScale:15,events:16,skipInactive:0,autoPlay:1,speedOption:2,speed:17,showController:3,tags:4,inactiveColor:5,getMirror:18,triggerResize:19,toggleFullscreen:6,addEventListener:20,addEvent:21,getMetaData:22,getReplayer:23,toggle:24,setSpeed:25,toggleSkipInactive:26,play:27,pause:28,goto:29,playRange:30},null,[-1,-1])}get getMirror(){return this.$$.ctx[18]}get triggerResize(){return this.$$.ctx[19]}get toggleFullscreen(){return this.$$.ctx[6]}get addEventListener(){return this.$$.ctx[20]}get addEvent(){return this.$$.ctx[21]}get getMetaData(){return this.$$.ctx[22]}get getReplayer(){return this.$$.ctx[23]}get toggle(){return this.$$.ctx[24]}get setSpeed(){return this.$$.ctx[25]}get toggleSkipInactive(){return this.$$.ctx[26]}get play(){return this.$$.ctx[27]}get pause(){return this.$$.ctx[28]}get goto(){return this.$$.ctx[29]}get playRange(){return this.$$.ctx[30]}};class Ou extends vu{constructor(t){super({target:t.target,props:t.data||t.props})}}var bu=po('<div class="back-row svelte-1qfuc04"><a class="back-link svelte-1qfuc04"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline></svg> </a></div>');function Du(e,t){let r=Si(t,"href",8,"/reports"),s=Si(t,"label",8,"Reports");var i=bu(),a=vi(i),o=yo(vi(a));bi(a),bi(i),go(()=>{wo(a,"href",r()),mo(o,` ${s()??""}`)}),ho(e,i)}export{Du as B,Ou as P};