@kyro-cms/core 0.13.2 → 0.13.5

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 (262) hide show
  1. package/dist/{WebhookService-BOJMgjBm.d.cts → WebhookService-BJTCP3cU.d.cts} +1 -1
  2. package/dist/{WebhookService-BLi5Rz2m.d.ts → WebhookService-Bqr_66lK.d.ts} +1 -1
  3. package/dist/api-handler-graphql.cjs +1 -1
  4. package/dist/api-handler-graphql.js +1 -1
  5. package/dist/api-handler-trpc.cjs +1 -1
  6. package/dist/api-handler-trpc.js +1 -1
  7. package/dist/api-handler.cjs +1 -1
  8. package/dist/api-handler.js +1 -1
  9. package/dist/{base-OYfoYPYP.d.ts → base-A9AJPCG5.d.ts} +1 -0
  10. package/dist/{base-BCgFt3Yx.d.ts → base-C2DOe8wD.d.ts} +3 -2
  11. package/dist/{base-BaOJ5uWd.d.cts → base-C6wyX2nC.d.cts} +1 -0
  12. package/dist/{base-B-i-tjm1.d.ts → base-DIpT2Vuz.d.cts} +3 -2
  13. package/dist/{bootstrap-QQ6D3OYG.js → bootstrap-PG2LGDLB.js} +1 -1
  14. package/dist/bootstrap-YD3GLTWX.cjs +1 -0
  15. package/dist/chunk-2SPWRQ5O.js +122 -0
  16. package/dist/chunk-2TYITUOC.js +122 -0
  17. package/dist/{chunk-GV2IB4WQ.cjs → chunk-3CIMGC2F.cjs} +3 -3
  18. package/dist/{chunk-S5HTTLN7.cjs → chunk-4NTIK6DF.cjs} +1 -1
  19. package/dist/chunk-6E44MQQ5.js +115 -0
  20. package/dist/{chunk-PTPVFLET.js → chunk-6LWF5MPL.js} +1 -1
  21. package/dist/chunk-6YS6XLOD.cjs +121 -0
  22. package/dist/{chunk-2OS5Y4LE.cjs → chunk-7KLEANTO.cjs} +1 -1
  23. package/dist/{chunk-3GXLOYM3.js → chunk-ALTU3FDG.js} +1 -1
  24. package/dist/{chunk-OPTVCCQQ.cjs → chunk-EQN3HDES.cjs} +7 -6
  25. package/dist/{chunk-3O3AVMWM.cjs → chunk-EW424IBO.cjs} +1 -1
  26. package/dist/{chunk-JZ7Z6WC2.cjs → chunk-GTR7JAKP.cjs} +2 -2
  27. package/dist/{chunk-M75VGFCI.js → chunk-HPIJI7TM.js} +1 -1
  28. package/dist/chunk-J6V573PE.cjs +1 -0
  29. package/dist/{chunk-3LAWUINR.cjs → chunk-LKRI5X2V.cjs} +1 -1
  30. package/dist/{chunk-6MNLRAKM.cjs → chunk-NRE6VKL6.cjs} +12 -12
  31. package/dist/{chunk-MYHNTJLR.cjs → chunk-OOVNTOZC.cjs} +6 -6
  32. package/dist/{chunk-SMQ6736Y.js → chunk-PYUWSKKP.js} +1 -1
  33. package/dist/{chunk-XBQ6HV3T.cjs → chunk-QYN6C3FZ.cjs} +4 -4
  34. package/dist/{chunk-ATI2UZ7U.js → chunk-RYXLEFS5.js} +1 -1
  35. package/dist/{chunk-E4H3ZZ7U.js → chunk-SRIXRJHL.js} +1 -1
  36. package/dist/chunk-V4FAL7AG.js +2 -0
  37. package/dist/{chunk-6DD4J7LI.js → chunk-WAVGRSE6.js} +1 -1
  38. package/dist/{chunk-N6MNQIQU.js → chunk-WNU76M2C.js} +7 -6
  39. package/dist/chunk-XDQVYCIR.cjs +1 -0
  40. package/dist/{chunk-K5XGP57D.cjs → chunk-XOR64WUQ.cjs} +1 -1
  41. package/dist/chunk-YGI5W4RS.js +2 -0
  42. package/dist/{chunk-I6UJVO2P.js → chunk-YIFKTA5N.js} +6 -6
  43. package/dist/cli/index.cjs +86 -86
  44. package/dist/cli/index.js +87 -87
  45. package/dist/client.d.cts +26 -0
  46. package/dist/client.d.ts +26 -0
  47. package/dist/drizzle/index.cjs +1 -1
  48. package/dist/drizzle/index.d.cts +3 -3
  49. package/dist/drizzle/index.d.ts +3 -3
  50. package/dist/drizzle/index.js +1 -1
  51. package/dist/fields/index.d.cts +2 -2
  52. package/dist/fields/index.d.ts +2 -2
  53. package/dist/graphql/index.d.cts +3 -3
  54. package/dist/graphql/index.d.ts +3 -3
  55. package/dist/{index-BttsFZDa.d.ts → index-C9uBoJtm.d.ts} +2 -2
  56. package/dist/{index-8Ino7vKq.d.ts → index-Ci7aUrmN.d.cts} +2 -2
  57. package/dist/index.cjs +4 -4
  58. package/dist/index.d.cts +13 -10
  59. package/dist/index.d.ts +13 -10
  60. package/dist/index.js +4 -4
  61. package/dist/{local-DPLKZQA3.js → local-6UUGBZ4M.js} +1 -1
  62. package/dist/{local-KR3AIGVA.cjs → local-ZYHV3J2K.cjs} +1 -1
  63. package/dist/{mongo-auth-adapter-EUHAYWJ6.cjs → mongo-auth-adapter-2H2AXDRH.cjs} +1 -1
  64. package/dist/{mongo-auth-adapter-FW7ATYQ6.js → mongo-auth-adapter-YWMEOC42.js} +1 -1
  65. package/dist/mongodb/index.cjs +1 -1
  66. package/dist/mongodb/index.d.cts +3 -3
  67. package/dist/mongodb/index.d.ts +3 -3
  68. package/dist/mongodb/index.js +1 -1
  69. package/dist/{postgres-auth-adapter-SK3N3OSS.js → postgres-auth-adapter-QKBNXVPT.js} +1 -1
  70. package/dist/{postgres-auth-adapter-ZO6HK5AK.cjs → postgres-auth-adapter-WMLM4UUC.cjs} +1 -1
  71. package/dist/{redis-adapter-EGMUN65D.cjs → redis-adapter-EVK2SMKH.cjs} +1 -1
  72. package/dist/{redis-adapter-QPCTMF55.js → redis-adapter-LY2NBSAG.js} +1 -1
  73. package/dist/rest/index.cjs +1 -1
  74. package/dist/rest/index.d.cts +4 -4
  75. package/dist/rest/index.d.ts +4 -4
  76. package/dist/rest/index.js +1 -1
  77. package/dist/{sqlite-adapter-MNNZZXGX.cjs → sqlite-adapter-KPSISY6E.cjs} +1 -1
  78. package/dist/{sqlite-adapter-52PL52VU.js → sqlite-adapter-PI6SIY7O.js} +1 -1
  79. package/dist/templates/index.cjs +1 -1
  80. package/dist/templates/index.d.cts +2 -2
  81. package/dist/templates/index.d.ts +2 -2
  82. package/dist/templates/index.js +1 -1
  83. package/dist/trpc/index.d.cts +3 -3
  84. package/dist/trpc/index.d.ts +3 -3
  85. package/dist/{types-Bii0bhUV.d.ts → types-C3QFX0l6.d.cts} +5 -0
  86. package/dist/{types-B9oXBEKI.d.cts → types-C3QFX0l6.d.ts} +5 -1
  87. package/dist/{types-Cdssrcbz.d.cts → types-CKWnrUAh.d.ts} +23 -2
  88. package/dist/{types-BRDBNacn.d.ts → types-CdwfDpyW.d.cts} +23 -2
  89. package/package.json +2 -2
  90. package/dist/WebhookService-BcuD8tnn.d.cts +0 -143
  91. package/dist/WebhookService-CFe6Zd0_.d.cts +0 -143
  92. package/dist/WebhookService-CVXmjbtQ.d.cts +0 -143
  93. package/dist/WebhookService-D5PSI5t6.d.cts +0 -143
  94. package/dist/WebhookService-DPCCn_12.d.ts +0 -143
  95. package/dist/WebhookService-Dk1lzSrG.d.cts +0 -143
  96. package/dist/WebhookService-Dncnbgm9.d.cts +0 -143
  97. package/dist/WebhookService-I6hdue2Y.d.ts +0 -143
  98. package/dist/WebhookService-KnQ2UDlW.d.ts +0 -143
  99. package/dist/WebhookService-UY5p89Bj.d.ts +0 -143
  100. package/dist/WebhookService-YZXBCRXA.d.ts +0 -143
  101. package/dist/WebhookService-fk0FGRlk.d.ts +0 -143
  102. package/dist/WebhookService-vsFnWrOh.d.ts +0 -143
  103. package/dist/WebhookService-zrDmAx7L.d.cts +0 -143
  104. package/dist/base-B--L0lCn.d.cts +0 -218
  105. package/dist/base-B-siit_y.d.cts +0 -218
  106. package/dist/base-B8SyZI4D.d.ts +0 -218
  107. package/dist/base-BHRGJ40F.d.cts +0 -218
  108. package/dist/base-BVoDPNjJ.d.cts +0 -218
  109. package/dist/base-BfPaVEAE.d.cts +0 -218
  110. package/dist/base-BxrX5EPU.d.cts +0 -218
  111. package/dist/base-CAb9EYQs.d.ts +0 -218
  112. package/dist/base-CcZIEll-.d.ts +0 -218
  113. package/dist/base-CyG7aF1e.d.cts +0 -218
  114. package/dist/base-DOImeJ-F.d.ts +0 -218
  115. package/dist/base-DbnwE42-.d.cts +0 -218
  116. package/dist/base-NyiSsD-n.d.ts +0 -218
  117. package/dist/base-xflndGDO.d.ts +0 -218
  118. package/dist/bootstrap-E24SGUJP.cjs +0 -1
  119. package/dist/bootstrap-QVKSKXJF.cjs +0 -1
  120. package/dist/bootstrap-RILR44UM.cjs +0 -1
  121. package/dist/bootstrap-YFVE7MRG.js +0 -1
  122. package/dist/bootstrap-ZRRUPRUR.js +0 -1
  123. package/dist/chunk-2FSOHXOU.cjs +0 -56
  124. package/dist/chunk-2PXXQKN3.cjs +0 -3
  125. package/dist/chunk-355R4LS5.cjs +0 -56
  126. package/dist/chunk-35IVNLMA.js +0 -122
  127. package/dist/chunk-3U6MKWET.cjs +0 -120
  128. package/dist/chunk-4YCI3HBD.js +0 -3
  129. package/dist/chunk-4ZWLNGLS.js +0 -2
  130. package/dist/chunk-5A7E7N4B.cjs +0 -431
  131. package/dist/chunk-5ZEYOFAK.js +0 -2
  132. package/dist/chunk-6GGPY7U2.js +0 -4
  133. package/dist/chunk-73Y63IPP.js +0 -57
  134. package/dist/chunk-7DUKWHRN.cjs +0 -1
  135. package/dist/chunk-7K6ZUNJM.js +0 -4
  136. package/dist/chunk-7LLCXY5O.cjs +0 -19
  137. package/dist/chunk-A35ZP72D.cjs +0 -132
  138. package/dist/chunk-A3IOQOV6.js +0 -2
  139. package/dist/chunk-A3XVL6ED.cjs +0 -3
  140. package/dist/chunk-APDQ6ZTG.cjs +0 -120
  141. package/dist/chunk-AWQGDMOE.js +0 -3
  142. package/dist/chunk-B3BSVEFC.cjs +0 -3
  143. package/dist/chunk-B4AC23SG.js +0 -122
  144. package/dist/chunk-BD6XHMMM.cjs +0 -2
  145. package/dist/chunk-CHYVUWZ3.js +0 -2
  146. package/dist/chunk-CIVA6SKW.js +0 -2
  147. package/dist/chunk-CNHUCCQJ.js +0 -121
  148. package/dist/chunk-CRP6PSCE.js +0 -2
  149. package/dist/chunk-DI6TCZSE.js +0 -122
  150. package/dist/chunk-DORUYZQV.cjs +0 -1
  151. package/dist/chunk-EFKEVWAD.js +0 -4
  152. package/dist/chunk-EI7FRSNY.js +0 -57
  153. package/dist/chunk-EON4XLKQ.cjs +0 -1
  154. package/dist/chunk-EUQAOYEO.cjs +0 -121
  155. package/dist/chunk-EVAUBT7H.js +0 -57
  156. package/dist/chunk-EYHD7HZE.cjs +0 -1
  157. package/dist/chunk-EYYIPA5N.js +0 -432
  158. package/dist/chunk-FBWLSWZ4.js +0 -122
  159. package/dist/chunk-FDKU7HJX.js +0 -2
  160. package/dist/chunk-FG3IFGJP.cjs +0 -1
  161. package/dist/chunk-FGN6IMPY.cjs +0 -3
  162. package/dist/chunk-FLS2FJM6.cjs +0 -431
  163. package/dist/chunk-FP5UK272.cjs +0 -1
  164. package/dist/chunk-FSL3NLRT.cjs +0 -2
  165. package/dist/chunk-FUFS65Q5.js +0 -133
  166. package/dist/chunk-GWIZT2P5.js +0 -57
  167. package/dist/chunk-H3FJ54KB.cjs +0 -121
  168. package/dist/chunk-HY3EAWB2.js +0 -4
  169. package/dist/chunk-IQSF6XRV.js +0 -57
  170. package/dist/chunk-IXGDTAES.js +0 -4
  171. package/dist/chunk-JCEJ4VTN.js +0 -20
  172. package/dist/chunk-LPFRMQFQ.js +0 -121
  173. package/dist/chunk-LYU44UNN.cjs +0 -56
  174. package/dist/chunk-MFNN5DYG.cjs +0 -1
  175. package/dist/chunk-MJAODEFC.cjs +0 -121
  176. package/dist/chunk-MSC4G2HF.cjs +0 -2
  177. package/dist/chunk-N2YHO2WI.cjs +0 -3
  178. package/dist/chunk-NPBXLPOP.js +0 -3
  179. package/dist/chunk-ON5XJEPO.cjs +0 -3
  180. package/dist/chunk-OT2Z4XBD.cjs +0 -1
  181. package/dist/chunk-PFKVHUOT.js +0 -432
  182. package/dist/chunk-PFTBTWSC.cjs +0 -1
  183. package/dist/chunk-PZDLPRJF.js +0 -4
  184. package/dist/chunk-QC4YXUBT.cjs +0 -383
  185. package/dist/chunk-QUTYCUST.js +0 -4
  186. package/dist/chunk-REKKBAQX.cjs +0 -56
  187. package/dist/chunk-RTNQP6BV.js +0 -2
  188. package/dist/chunk-RUJW47ZJ.js +0 -2
  189. package/dist/chunk-RXYCFZJC.cjs +0 -121
  190. package/dist/chunk-S2MZNEBQ.cjs +0 -1
  191. package/dist/chunk-S73YERS2.js +0 -57
  192. package/dist/chunk-T3DJ3UTP.cjs +0 -121
  193. package/dist/chunk-TJZO7ZSX.cjs +0 -3
  194. package/dist/chunk-TKUNRCRH.js +0 -4
  195. package/dist/chunk-TQLCOMKC.js +0 -4
  196. package/dist/chunk-TRXYDWGE.cjs +0 -1
  197. package/dist/chunk-TS55CUNJ.js +0 -57
  198. package/dist/chunk-UFBJ3WOZ.js +0 -2
  199. package/dist/chunk-UQRVQUVR.js +0 -2
  200. package/dist/chunk-UW5W35NP.js +0 -122
  201. package/dist/chunk-VI7WCO2J.cjs +0 -3
  202. package/dist/chunk-VTOL3URF.js +0 -4
  203. package/dist/chunk-VVVCCB6R.js +0 -2
  204. package/dist/chunk-W2GPP6RB.js +0 -122
  205. package/dist/chunk-WHOA7YJU.cjs +0 -1
  206. package/dist/chunk-WNRUPL26.js +0 -2
  207. package/dist/chunk-XIAJQLGS.js +0 -2
  208. package/dist/chunk-XK6UB77Q.js +0 -4
  209. package/dist/chunk-Y2VHO66Q.cjs +0 -3
  210. package/dist/chunk-Y5O2OD7J.cjs +0 -3
  211. package/dist/chunk-YARB43JG.cjs +0 -56
  212. package/dist/chunk-YLCEMVYY.cjs +0 -56
  213. package/dist/chunk-YSOM57GK.cjs +0 -3
  214. package/dist/chunk-Z3UVDGYS.cjs +0 -56
  215. package/dist/chunk-ZO3YB5DK.cjs +0 -1
  216. package/dist/chunk-ZOVH6QT5.cjs +0 -1
  217. package/dist/chunk-ZRIBWDYJ.js +0 -384
  218. package/dist/chunk-ZWDBPEXL.js +0 -115
  219. package/dist/index-B9BFNOHd.d.cts +0 -105
  220. package/dist/index-BMcYFpTv.d.cts +0 -105
  221. package/dist/index-ByOM1Y5x.d.ts +0 -105
  222. package/dist/index-C6xmtRio.d.cts +0 -105
  223. package/dist/index-CTI3K_uq.d.cts +0 -105
  224. package/dist/index-CTL4zv_u.d.ts +0 -105
  225. package/dist/index-CaDbioSg.d.ts +0 -105
  226. package/dist/index-CxA9uOv0.d.ts +0 -105
  227. package/dist/index-D6AXbuPI.d.ts +0 -105
  228. package/dist/index-DF0KDBaM.d.cts +0 -105
  229. package/dist/index-DG4Xu7gA.d.cts +0 -105
  230. package/dist/index-DS3DpJli.d.cts +0 -105
  231. package/dist/index-eHex8Iwj.d.ts +0 -105
  232. package/dist/index-rm7uyOK1.d.cts +0 -105
  233. package/dist/lib-5QYYN6ML.cjs +0 -12
  234. package/dist/lib-XXYYUPMW.js +0 -13
  235. package/dist/local-S5VA7IXE.cjs +0 -1
  236. package/dist/local-T7GISZBL.js +0 -1
  237. package/dist/mongo-auth-adapter-GR2CFFEA.js +0 -1
  238. package/dist/mongo-auth-adapter-UOO2LZUJ.cjs +0 -1
  239. package/dist/nodemailer-transport-CHO2WKIY.js +0 -1
  240. package/dist/nodemailer-transport-ED2IXNGW.cjs +0 -1
  241. package/dist/types-6ShQp2EM.d.cts +0 -839
  242. package/dist/types-B5Qz1svz.d.cts +0 -822
  243. package/dist/types-B9oXBEKI.d.ts +0 -330
  244. package/dist/types-Bii0bhUV.d.cts +0 -329
  245. package/dist/types-Bt2_ycUO.d.ts +0 -811
  246. package/dist/types-C4wXHImf.d.ts +0 -822
  247. package/dist/types-C8yIAV6K.d.cts +0 -839
  248. package/dist/types-CORUQhY-.d.ts +0 -839
  249. package/dist/types-CjGqxBd3.d.cts +0 -330
  250. package/dist/types-CjGqxBd3.d.ts +0 -330
  251. package/dist/types-DBGR-eQl.d.cts +0 -839
  252. package/dist/types-DCWgPFmi.d.cts +0 -822
  253. package/dist/types-DROqAsr0.d.cts +0 -330
  254. package/dist/types-DROqAsr0.d.ts +0 -330
  255. package/dist/types-DlGSbh7I.d.cts +0 -297
  256. package/dist/types-DlGSbh7I.d.ts +0 -297
  257. package/dist/types-DsF64Wrc.d.cts +0 -811
  258. package/dist/types-IeKFn7Ky.d.ts +0 -839
  259. package/dist/types-ZrjEVWfi.d.ts +0 -811
  260. package/dist/types-dEy5JxvN.d.ts +0 -822
  261. package/dist/types-tVJc9YbX.d.cts +0 -811
  262. package/dist/types-zt5qIvje.d.ts +0 -839
@@ -1,383 +0,0 @@
1
- 'use strict';var chunk73D2PNHD_cjs=require('./chunk-73D2PNHD.cjs'),chunkBUNLC3II_cjs=require('./chunk-BUNLC3II.cjs'),url=require('url'),Mp=require('fs'),Ip=require('path'),gR=require('crypto'),buffer=require('buffer'),util=require('util'),Ol=require('stream'),web=require('stream/web'),qx=require('vm'),net=require('net'),FD=require('http'),BD=require('https'),Qp=require('zlib'),iF=require('child_process'),perf_hooks=require('perf_hooks');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var Mp__default=/*#__PURE__*/_interopDefault(Mp);var Ip__default=/*#__PURE__*/_interopDefault(Ip);var gR__default=/*#__PURE__*/_interopDefault(gR);var Ol__default=/*#__PURE__*/_interopDefault(Ol);var qx__default=/*#__PURE__*/_interopDefault(qx);var FD__default=/*#__PURE__*/_interopDefault(FD);var BD__default=/*#__PURE__*/_interopDefault(BD);var Qp__default=/*#__PURE__*/_interopDefault(Qp);var iF__default=/*#__PURE__*/_interopDefault(iF);var Ek=chunkBUNLC3II_cjs.c((a6,xk)=>{chunkBUNLC3II_cjs.h();function fO(o){return o.toString("ascii",0,2)==="BM"}function bO(o){return {width:o.readUInt32LE(18),height:Math.abs(o.readInt32LE(22))}}xk.exports={detect:fO,calculate:bO};});var Ax=chunkBUNLC3II_cjs.c((c6,Ck)=>{chunkBUNLC3II_cjs.h();var gO=1,SO=6,PO=16;function AO(o){var t;return o.readUInt16LE(0)!==0?false:(t=o.readUInt16LE(2),t===gO)}function vk(o,t){var e=o.readUInt8(t);return e===0?256:e}function Tk(o,t){var e=SO+t*PO;return {width:vk(o,e),height:vk(o,e+1)}}function wO(o){var t=o.readUInt16LE(4),e=Tk(o,0),r;if(t===1)return e;for(e.images=[{width:e.width,height:e.height}],r=1;r<t;r+=1)e.images.push(Tk(o,r));return e}Ck.exports={detect:AO,calculate:wO};});var Nk=chunkBUNLC3II_cjs.c((m6,kk)=>{chunkBUNLC3II_cjs.h();var xO=2;function EO(o){var t;return o.readUInt16LE(0)!==0?false:(t=o.readUInt16LE(2),t===xO)}kk.exports={detect:EO,calculate:Ax().calculate};});var Mk=chunkBUNLC3II_cjs.c((y6,Lk)=>{chunkBUNLC3II_cjs.h();function vO(o){return o.readUInt32LE(0)===542327876}function TO(o){return {height:o.readUInt32LE(12),width:o.readUInt32LE(16)}}Lk.exports={detect:vO,calculate:TO};});var Rk=chunkBUNLC3II_cjs.c((f6,Ik)=>{chunkBUNLC3II_cjs.h();var CO=/^GIF8[79]a/;function kO(o){var t=o.toString("ascii",0,6);return CO.test(t)}function NO(o){return {width:o.readUInt16LE(6),height:o.readUInt16LE(8)}}Ik.exports={detect:kO,calculate:NO};});var Ok=chunkBUNLC3II_cjs.c((g6,Dk)=>{chunkBUNLC3II_cjs.h();function LO(o){var t=o.toString("hex",0,2);return t==="ffd8"}function MO(o,t){return {height:o.readUInt16BE(t),width:o.readUInt16BE(t+2)}}function IO(o,t){if(t>o.length)throw new TypeError("Corrupt JPG, exceeded buffer limits");if(o[t]!==255)throw new TypeError("Invalid JPG, marker table corrupted")}function RO(o){o=o.slice(4);for(var t,e;o.length;){if(t=o.readUInt16BE(0),IO(o,t),e=o[t+1],e===192||e===193||e===194)return MO(o,t+5);o=o.slice(t+2);}throw new TypeError("Invalid JPG, no size found")}Dk.exports={detect:LO,calculate:RO};});var Vk=chunkBUNLC3II_cjs.c((P6,Bk)=>{chunkBUNLC3II_cjs.h();var DO=`PNG\r
2
- 
3
- `,OO="IHDR",Fk="CgBI";function FO(o){if(DO===o.toString("ascii",1,8)){var t=o.toString("ascii",12,16);if(t===Fk&&(t=o.toString("ascii",28,32)),t!==OO)throw new TypeError("invalid png");return true}}function BO(o){return o.toString("ascii",12,16)===Fk?{width:o.readUInt32BE(32),height:o.readUInt32BE(36)}:{width:o.readUInt32BE(16),height:o.readUInt32BE(20)}}Bk.exports={detect:FO,calculate:BO};});var Gk=chunkBUNLC3II_cjs.c((w6,Hk)=>{chunkBUNLC3II_cjs.h();function VO(o){return o.toString("ascii",0,4)==="8BPS"}function HO(o){return {width:o.readUInt32BE(18),height:o.readUInt32BE(14)}}Hk.exports={detect:VO,calculate:HO};});var Wk=chunkBUNLC3II_cjs.c((E6,Uk)=>{chunkBUNLC3II_cjs.h();var GO=/<svg[^>]+[^>]*>/;function UO(o){return GO.test(o)}var VS={root:/<svg\s[^>]+>/,width:/\bwidth=(['"])([^%]+?)\1/,height:/\bheight=(['"])([^%]+?)\1/,viewbox:/\bviewBox=(['"])(.+?)\1/};function WO(o){var t=o.split(" ");return {width:parseInt(t[2],10),height:parseInt(t[3],10)}}function zO(o){var t=o.match(VS.width),e=o.match(VS.height),r=o.match(VS.viewbox);return {width:t&&parseInt(t[2],10),height:e&&parseInt(e[2],10),viewbox:r&&WO(r[2])}}function _O(o){return {width:o.width,height:o.height}}function $O(o){var t=o.viewbox.width/o.viewbox.height;return o.width?{width:o.width,height:Math.floor(o.width/t)}:o.height?{width:Math.floor(o.height*t),height:o.height}:{width:o.viewbox.width,height:o.viewbox.height}}function KO(o){var t=o.toString("utf8").match(VS.root);if(t){var e=zO(t[0]);if(e.width&&e.height)return _O(e);if(e.viewbox)return $O(e)}throw new TypeError("invalid svg")}Uk.exports={detect:UO,calculate:KO};});var _k=chunkBUNLC3II_cjs.c((T6,zk)=>{chunkBUNLC3II_cjs.h();function jO(o){var t=o.toString("ascii",0,4)==="RIFF",e=o.toString("ascii",8,12)==="WEBP",r=o.toString("ascii",12,15)==="VP8";return t&&e&&r}function qO(o){var t=o.toString("ascii",12,16);if(o=o.slice(20,30),t==="VP8X"){var e=o[0],r=(e&192)===0,n=(e&1)===0;return r&&n?YO(o):false}if(t==="VP8 "&&o[0]!==47)return JO(o);var i=o.toString("hex",3,6);return t==="VP8L"&&i!=="9d012a"?QO(o):false}function YO(o){return {width:1+o.readUIntLE(4,3),height:1+o.readUIntLE(7,3)}}function QO(o){return {width:1+((o[2]&63)<<8|o[1]),height:1+((o[4]&15)<<10|o[3]<<2|(o[2]&192)>>6)}}function JO(o){return {width:o.readInt16LE(6)&16383,height:o.readInt16LE(8)&16383}}zk.exports={detect:jO,calculate:qO};});var wx=chunkBUNLC3II_cjs.c((k6,$k)=>{chunkBUNLC3II_cjs.h();var XO={bmp:Ek(),cur:Nk(),dds:Mk(),gif:Rk(),ico:Ax(),jpg:Ok(),png:Vk(),psd:Gk(),svg:Wk(),webp:_k()};$k.exports=XO;});var qk=chunkBUNLC3II_cjs.c((L6,jk)=>{chunkBUNLC3II_cjs.h();var Kk=wx();jk.exports=function(o){var t,e;for(t in Kk)if(e=Kk[t].detect(o),e)return t};});var Yk=chunkBUNLC3II_cjs.c((I6,Ex)=>{chunkBUNLC3II_cjs.h();var xx=wx(),ZO=qk();function tF(o){var t=ZO(o);if(t in xx){var e=xx[t].calculate(o);if(e!==false)return e.type=t,e}throw new TypeError("unsupported file type: "+t)}Ex.exports=function(o){if(Buffer.isBuffer(o))return tF(o);throw new TypeError("expecting only a buffer as input")};Ex.exports.types=Object.keys(xx);});var If=chunkBUNLC3II_cjs.c(Au=>{chunkBUNLC3II_cjs.h();Au.removeLeadingAndTrailingHTTPWhitespace=o=>o.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");Au.removeTrailingHTTPWhitespace=o=>o.replace(/[ \t\n\r]+$/u,"");Au.isHTTPWhitespaceChar=o=>o===" "||o===" "||o===`
4
- `||o==="\r";Au.solelyContainsHTTPTokenCodePoints=o=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(o);Au.soleyContainsHTTPQuotedStringTokenCodePoints=o=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(o);Au.asciiLowercase=o=>o.replace(/[A-Z]/ug,t=>t.toLowerCase());Au.collectAnHTTPQuotedString=(o,t)=>{let e="";for(t++;;){for(;t<o.length&&o[t]!=='"'&&o[t]!=="\\";)e+=o[t],++t;if(t>=o.length)break;let r=o[t];if(++t,r==="\\"){if(t>=o.length){e+="\\";break}e+=o[t],++t;}else break}return [e,t]};});var e0=chunkBUNLC3II_cjs.c(($st,t0)=>{chunkBUNLC3II_cjs.h();var{asciiLowercase:_S,solelyContainsHTTPTokenCodePoints:IF,soleyContainsHTTPQuotedStringTokenCodePoints:RF}=If();t0.exports=class{constructor(t){this._map=t;}get size(){return this._map.size}get(t){return t=_S(String(t)),this._map.get(t)}has(t){return t=_S(String(t)),this._map.has(t)}set(t,e){if(t=_S(String(t)),e=String(e),!IF(t))throw new Error(`Invalid MIME type parameter name "${t}": only HTTP token code points are valid.`);if(!RF(e))throw new Error(`Invalid MIME type parameter value "${e}": only HTTP quoted-string token code points are valid.`);return this._map.set(t,e)}clear(){this._map.clear();}delete(t){return t=_S(String(t)),this._map.delete(t)}forEach(t,e){this._map.forEach(t,e);}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}};});var n0=chunkBUNLC3II_cjs.c((jst,o0)=>{chunkBUNLC3II_cjs.h();var{removeLeadingAndTrailingHTTPWhitespace:DF,removeTrailingHTTPWhitespace:r0,isHTTPWhitespaceChar:OF,solelyContainsHTTPTokenCodePoints:Bx,soleyContainsHTTPQuotedStringTokenCodePoints:FF,asciiLowercase:Vx,collectAnHTTPQuotedString:BF}=If();o0.exports=o=>{o=DF(o);let t=0,e="";for(;t<o.length&&o[t]!=="/";)e+=o[t],++t;if(e.length===0||!Bx(e)||t>=o.length)return null;++t;let r="";for(;t<o.length&&o[t]!==";";)r+=o[t],++t;if(r=r0(r),r.length===0||!Bx(r))return null;let n={type:Vx(e),subtype:Vx(r),parameters:new Map};for(;t<o.length;){for(++t;OF(o[t]);)++t;let i="";for(;t<o.length&&o[t]!==";"&&o[t]!=="=";)i+=o[t],++t;if(i=Vx(i),t<o.length){if(o[t]===";")continue;++t;}let s=null;if(o[t]==='"')for([s,t]=BF(o,t);t<o.length&&o[t]!==";";)++t;else {for(s="";t<o.length&&o[t]!==";";)s+=o[t],++t;if(s=r0(s),s==="")continue}i.length>0&&Bx(i)&&FF(s)&&!n.parameters.has(i)&&n.parameters.set(i,s);}return n};});var s0=chunkBUNLC3II_cjs.c((Yst,i0)=>{chunkBUNLC3II_cjs.h();var{solelyContainsHTTPTokenCodePoints:VF}=If();i0.exports=o=>{let t=`${o.type}/${o.subtype}`;if(o.parameters.size===0)return t;for(let[e,r]of o.parameters)t+=";",t+=e,t+="=",(!VF(r)||r.length===0)&&(r=r.replace(/(["\\])/ug,"\\$1"),r=`"${r}"`),t+=r;return t};});var c0=chunkBUNLC3II_cjs.c((Xst,u0)=>{chunkBUNLC3II_cjs.h();var HF=e0(),GF=n0(),UF=s0(),{asciiLowercase:l0,solelyContainsHTTPTokenCodePoints:a0}=If();u0.exports=class{constructor(t){t=String(t);let e=GF(t);if(e===null)throw new Error(`Could not parse MIME type string "${t}"`);this._type=e.type,this._subtype=e.subtype,this._parameters=new HF(e.parameters);}static parse(t){try{return new this(t)}catch{return null}}get essence(){return `${this.type}/${this.subtype}`}get type(){return this._type}set type(t){if(t=l0(String(t)),t.length===0)throw new Error("Invalid type: must be a non-empty string");if(!a0(t))throw new Error(`Invalid type ${t}: must contain only HTTP token code points`);this._type=t;}get subtype(){return this._subtype}set subtype(t){if(t=l0(String(t)),t.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!a0(t))throw new Error(`Invalid subtype ${t}: must contain only HTTP token code points`);this._subtype=t;}get parameters(){return this._parameters}toString(){return UF(this)}isJavaScript({prohibitParameters:t=false}={}){switch(this._type){case "text":switch(this._subtype){case "ecmascript":case "javascript":case "javascript1.0":case "javascript1.1":case "javascript1.2":case "javascript1.3":case "javascript1.4":case "javascript1.5":case "jscript":case "livescript":case "x-ecmascript":case "x-javascript":return !t||this._parameters.size===0;default:return false}case "application":switch(this._subtype){case "ecmascript":case "javascript":case "x-ecmascript":case "x-javascript":return !t||this._parameters.size===0;default:return false}default:return false}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}};});chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();function P2(o){return o.type==="text"}function A2(o){return o.type==="number"}function w2(o){return o.type==="relationship"}function x2(o){return o.type==="array"}function E2(o){return o.type==="group"}function v2(o){return o.type==="blocks"}function T2(o){return o.type==="upload"}function C2(o){return o.type==="image"}function k2(o){return o.type==="richtext"}function N2(o){return o.type==="select"}function L2(o){return o.type==="row"||o.type==="collapsible"||o.type==="tabs"}function M2(o){return o.type==="icon"}var IN=["text","number","checkbox","date","email","password","textarea","select","radio","color","icon"],RN=["richtext","json","code","upload","image","markdown"],DN=["relationship","array","group","blocks"],ON=["row","collapsible","tabs"],I2=[...IN,...RN,...DN,...ON];function R2(o,t,e){return {name:o,type:"relationship",relationTo:t,...e,required:e?.required??false}}chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();function wo(o){this.content=o;}wo.prototype={constructor:wo,find:function(o){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===o)return t;return -1},get:function(o){var t=this.find(o);return t==-1?void 0:this.content[t+1]},update:function(o,t,e){var r=e&&e!=o?this.remove(e):this,n=r.find(o),i=r.content.slice();return n==-1?i.push(e||o,t):(i[n+1]=t,e&&(i[n]=e)),new wo(i)},remove:function(o){var t=this.find(o);if(t==-1)return this;var e=this.content.slice();return e.splice(t,2),new wo(e)},addToStart:function(o,t){return new wo([o,t].concat(this.remove(o).content))},addToEnd:function(o,t){var e=this.remove(o).content.slice();return e.push(o,t),new wo(e)},addBefore:function(o,t,e){var r=this.remove(t),n=r.content.slice(),i=r.find(o);return n.splice(i==-1?n.length:i,0,t,e),new wo(n)},forEach:function(o){for(var t=0;t<this.content.length;t+=2)o(this.content[t],this.content[t+1]);},prepend:function(o){return o=wo.from(o),o.size?new wo(o.content.concat(this.subtract(o).content)):this},append:function(o){return o=wo.from(o),o.size?new wo(this.subtract(o).content.concat(o.content)):this},subtract:function(o){var t=this;o=wo.from(o);for(var e=0;e<o.content.length;e+=2)t=t.remove(o.content[e]);return t},toObject:function(){var o={};return this.forEach(function(t,e){o[t]=e;}),o},get size(){return this.content.length>>1}};wo.from=function(o){if(o instanceof wo)return o;var t=[];if(o)for(var e in o)t.push(e,o[e]);return new wo(t)};var UP=wo;function nv(o,t,e){for(let r=0;;r++){if(r==o.childCount||r==t.childCount)return o.childCount==t.childCount?null:e;let n=o.child(r),i=t.child(r);if(n==i){e+=n.nodeSize;continue}if(!n.sameMarkup(i))return e;if(n.isText&&n.text!=i.text){let s=n.text,l=i.text,a=0;for(;s[a]==l[a];a++)e++;return a&&a<s.length&&a<l.length&&lv(s.charCodeAt(a-1))&&sv(s.charCodeAt(a))&&e--,e}if(n.content.size||i.content.size){let s=nv(n.content,i.content,e+1);if(s!=null)return s}e+=n.nodeSize;}}function iv(o,t,e,r){for(let n=o.childCount,i=t.childCount;;){if(n==0||i==0)return n==i?null:{a:e,b:r};let s=o.child(--n),l=t.child(--i),a=s.nodeSize;if(s==l){e-=a,r-=a;continue}if(!s.sameMarkup(l))return {a:e,b:r};if(s.isText&&s.text!=l.text){let u=s.text,c=l.text,h=u.length,f=c.length;for(;h>0&&f>0&&u[h-1]==c[f-1];)h--,f--,e--,r--;return h&&f&&h<u.length&&lv(u.charCodeAt(h-1))&&sv(u.charCodeAt(h))&&(e++,r++),{a:e,b:r}}if(s.content.size||l.content.size){let u=iv(s.content,l.content,e-1,r-1);if(u)return u}e-=a,r-=a;}}function sv(o){return o>=56320&&o<57344}function lv(o){return o>=55296&&o<56320}var Z=class o{constructor(t,e){if(this.content=t,this.size=e||0,e==null)for(let r=0;r<t.length;r++)this.size+=t[r].nodeSize;}nodesBetween(t,e,r,n=0,i){for(let s=0,l=0;l<e;s++){let a=this.content[s],u=l+a.nodeSize;if(u>t&&r(a,n+l,i||null,s)!==false&&a.content.size){let c=l+1;a.nodesBetween(Math.max(0,t-c),Math.min(a.content.size,e-c),r,n+c);}l=u;}}descendants(t){this.nodesBetween(0,this.size,t);}textBetween(t,e,r,n){let i="",s=true;return this.nodesBetween(t,e,(l,a)=>{let u=l.isText?l.text.slice(Math.max(t,a)-a,e-a):l.isLeaf?n?typeof n=="function"?n(l):n:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&u||l.isTextblock)&&r&&(s?s=false:i+=r),i+=u;},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let e=this.lastChild,r=t.firstChild,n=this.content.slice(),i=0;for(e.isText&&e.sameMarkup(r)&&(n[n.length-1]=e.withText(e.text+r.text),i=1);i<t.content.length;i++)n.push(t.content[i]);return new o(n,this.size+t.size)}cut(t,e=this.size){if(t==0&&e==this.size)return this;let r=[],n=0;if(e>t)for(let i=0,s=0;s<e;i++){let l=this.content[i],a=s+l.nodeSize;a>t&&((s<t||a>e)&&(l.isText?l=l.cut(Math.max(0,t-s),Math.min(l.text.length,e-s)):l=l.cut(Math.max(0,t-s-1),Math.min(l.content.size,e-s-1))),r.push(l),n+=l.nodeSize),s=a;}return new o(r,n)}cutByIndex(t,e){return t==e?o.empty:t==0&&e==this.content.length?this:new o(this.content.slice(t,e))}replaceChild(t,e){let r=this.content[t];if(r==e)return this;let n=this.content.slice(),i=this.size+e.nodeSize-r.nodeSize;return n[t]=e,new o(n,i)}addToStart(t){return new o([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new o(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return false;for(let e=0;e<this.content.length;e++)if(!this.content[e].eq(t.content[e]))return false;return true}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(t){let e=this.content[t];if(!e)throw new RangeError("Index "+t+" out of range for "+this);return e}maybeChild(t){return this.content[t]||null}forEach(t){for(let e=0,r=0;e<this.content.length;e++){let n=this.content[e];t(n,r,e),r+=n.nodeSize;}}findDiffStart(t,e=0){return nv(this,t,e)}findDiffEnd(t,e=this.size,r=t.size){return iv(this,t,e,r)}findIndex(t){if(t==0)return cg(0,t);if(t==this.size)return cg(this.content.length,t);if(t>this.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let e=0,r=0;;e++){let n=this.child(e),i=r+n.nodeSize;if(i>=t)return i==t?cg(e+1,i):cg(e,r);r=i;}}toString(){return "<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,e){if(!e)return o.empty;if(!Array.isArray(e))throw new RangeError("Invalid input for Fragment.fromJSON");return o.fromArray(e.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return o.empty;let e,r=0;for(let n=0;n<t.length;n++){let i=t[n];r+=i.nodeSize,n&&i.isText&&t[n-1].sameMarkup(i)?(e||(e=t.slice(0,n)),e[e.length-1]=i.withText(e[e.length-1].text+i.text)):e&&e.push(i);}return new o(e||t,r)}static from(t){if(!t)return o.empty;if(t instanceof o)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new o([t],t.nodeSize);throw new RangeError("Can not convert "+t+" to a Fragment"+(t.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}};Z.empty=new Z([],0);var WP={index:0,offset:0};function cg(o,t){return WP.index=o,WP.offset=t,WP}function hg(o,t){if(o===t)return true;if(!(o&&typeof o=="object")||!(t&&typeof t=="object"))return false;let e=Array.isArray(o);if(Array.isArray(t)!=e)return false;if(e){if(o.length!=t.length)return false;for(let r=0;r<o.length;r++)if(!hg(o[r],t[r]))return false}else {for(let r in o)if(!(r in t)||!hg(o[r],t[r]))return false;for(let r in t)if(!(r in o))return false}return true}var De=class o{constructor(t,e){this.type=t,this.attrs=e;}addToSet(t){let e,r=false;for(let n=0;n<t.length;n++){let i=t[n];if(this.eq(i))return t;if(this.type.excludes(i.type))e||(e=t.slice(0,n));else {if(i.type.excludes(this.type))return t;!r&&i.type.rank>this.type.rank&&(e||(e=t.slice(0,n)),e.push(this),r=true),e&&e.push(i);}}return e||(e=t.slice()),r||e.push(this),e}removeFromSet(t){for(let e=0;e<t.length;e++)if(this.eq(t[e]))return t.slice(0,e).concat(t.slice(e+1));return t}isInSet(t){for(let e=0;e<t.length;e++)if(this.eq(t[e]))return true;return false}eq(t){return this==t||this.type==t.type&&hg(this.attrs,t.attrs)}toJSON(){let t={type:this.type.name};for(let e in this.attrs){t.attrs=this.attrs;break}return t}static fromJSON(t,e){if(!e)throw new RangeError("Invalid input for Mark.fromJSON");let r=t.marks[e.type];if(!r)throw new RangeError(`There is no mark type ${e.type} in this schema`);let n=r.create(e.attrs);return r.checkAttrs(n.attrs),n}static sameSet(t,e){if(t==e)return true;if(t.length!=e.length)return false;for(let r=0;r<t.length;r++)if(!t[r].eq(e[r]))return false;return true}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return o.none;if(t instanceof o)return [t];let e=t.slice();return e.sort((r,n)=>r.type.rank-n.type.rank),e}};De.none=[];var ca=class extends Error{},ht=class o{constructor(t,e,r){this.content=t,this.openStart=e,this.openEnd=r;}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,e){let r=uv(this.content,t+this.openStart,e,this.openStart+1,this.openEnd+1);return r&&new o(r,this.openStart,this.openEnd)}removeBetween(t,e){return new o(av(this.content,t+this.openStart,e+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,e){if(!e)return o.empty;let r=e.openStart||0,n=e.openEnd||0;if(typeof r!="number"||typeof n!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new o(Z.fromJSON(t,e.content),r,n)}static maxOpen(t,e=true){let r=0,n=0;for(let i=t.firstChild;i&&!i.isLeaf&&(e||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=t.lastChild;i&&!i.isLeaf&&(e||!i.type.spec.isolating);i=i.lastChild)n++;return new o(t,r,n)}};ht.empty=new ht(Z.empty,0,0);function av(o,t,e){let{index:r,offset:n}=o.findIndex(t),i=o.maybeChild(r),{index:s,offset:l}=o.findIndex(e);if(n==t||i.isText){if(l!=e&&!o.child(s).isText)throw new RangeError("Removing non-flat range");return o.cut(0,t).append(o.cut(e))}if(r!=s)throw new RangeError("Removing non-flat range");return o.replaceChild(r,i.copy(av(i.content,t-n-1,e-n-1)))}function uv(o,t,e,r,n,i){let{index:s,offset:l}=o.findIndex(t),a=o.maybeChild(s);if(l==t||a.isText)return i&&r<=0&&n<=0&&!i.canReplace(s,s,e)?null:o.cut(0,t).append(e).append(o.cut(t));let u=uv(a.content,t-l-1,e,s==0?r-1:0,s==o.childCount-1?n-1:0,a);return u&&o.replaceChild(s,a.copy(u))}function FN(o,t,e){if(e.openStart>o.depth)throw new ca("Inserted content deeper than insertion position");if(o.depth-e.openStart!=t.depth-e.openEnd)throw new ca("Inconsistent open depths");return cv(o,t,e,0)}function cv(o,t,e,r){let n=o.index(r),i=o.node(r);if(n==t.index(r)&&r<o.depth-e.openStart){let s=cv(o,t,e,r+1);return i.copy(i.content.replaceChild(n,s))}else if(e.content.size)if(!e.openStart&&!e.openEnd&&o.depth==r&&t.depth==r){let s=o.parent,l=s.content;return Iu(s,l.cut(0,o.parentOffset).append(e.content).append(l.cut(t.parentOffset)))}else {let{start:s,end:l}=BN(e,o);return Iu(i,mv(o,s,l,t,r))}else return Iu(i,yg(o,t,r))}function pv(o,t){if(!t.type.compatibleContent(o.type))throw new ca("Cannot join "+t.type.name+" onto "+o.type.name)}function zP(o,t,e){let r=o.node(e);return pv(r,t.node(e)),r}function Mu(o,t){let e=t.length-1;e>=0&&o.isText&&o.sameMarkup(t[e])?t[e]=o.withText(t[e].text+o.text):t.push(o);}function qh(o,t,e,r){let n=(t||o).node(e),i=0,s=t?t.index(e):n.childCount;o&&(i=o.index(e),o.depth>e?i++:o.textOffset&&(Mu(o.nodeAfter,r),i++));for(let l=i;l<s;l++)Mu(n.child(l),r);t&&t.depth==e&&t.textOffset&&Mu(t.nodeBefore,r);}function Iu(o,t){if(!o.type.validContent(t))throw new ca("Invalid content for node "+o.type.name);return o.copy(t)}function mv(o,t,e,r,n){let i=o.depth>n&&zP(o,t,n+1),s=r.depth>n&&zP(e,r,n+1),l=[];return qh(null,o,n,l),i&&s&&t.index(n)==e.index(n)?(pv(i,s),Mu(Iu(i,mv(o,t,e,r,n+1)),l)):(i&&Mu(Iu(i,yg(o,t,n+1)),l),qh(t,e,n,l),s&&Mu(Iu(s,yg(e,r,n+1)),l)),qh(r,null,n,l),new Z(l)}function yg(o,t,e){let r=[];if(qh(null,o,e,r),o.depth>e){let n=zP(o,t,e+1);Mu(Iu(n,yg(o,t,e+1)),r);}return qh(t,null,e,r),new Z(r)}function BN(o,t){let e=t.depth-o.openStart,n=t.node(e).copy(o.content);for(let i=e-1;i>=0;i--)n=t.node(i).copy(Z.from(n));return {start:n.resolveNoCache(o.openStart+e),end:n.resolveNoCache(n.content.size-o.openEnd-e)}}var dg=class o{constructor(t,e,r){this.pos=t,this.path=e,this.parentOffset=r,this.depth=e.length/3-1;}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,e=this.index(this.depth);if(e==t.childCount)return null;let r=this.pos-this.path[this.path.length-1],n=t.child(e);return r?t.child(e).cut(r):n}get nodeBefore(){let t=this.index(this.depth),e=this.pos-this.path[this.path.length-1];return e?this.parent.child(t).cut(0,e):t==0?null:this.parent.child(t-1)}posAtIndex(t,e){e=this.resolveDepth(e);let r=this.path[e*3],n=e==0?0:this.path[e*3-1]+1;for(let i=0;i<t;i++)n+=r.child(i).nodeSize;return n}marks(){let t=this.parent,e=this.index();if(t.content.size==0)return De.none;if(this.textOffset)return t.child(e).marks;let r=t.maybeChild(e-1),n=t.maybeChild(e);if(!r){let l=r;r=n,n=l;}let i=r.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===false&&(!n||!i[s].isInSet(n.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(t){let e=this.parent.maybeChild(this.index());if(!e||!e.isInline)return null;let r=e.marks,n=t.parent.maybeChild(t.index());for(var i=0;i<r.length;i++)r[i].type.spec.inclusive===false&&(!n||!r[i].isInSet(n.marks))&&(r=r[i--].removeFromSet(r));return r}sharedDepth(t){for(let e=this.depth;e>0;e--)if(this.start(e)<=t&&this.end(e)>=t)return e;return 0}blockRange(t=this,e){if(t.pos<this.pos)return t.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==t.pos?1:0);r>=0;r--)if(t.pos<=this.end(r)&&(!e||e(this.node(r))))return new Ru(this,t,r);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos<this.pos?t:this}toString(){let t="";for(let e=1;e<=this.depth;e++)t+=(t?"/":"")+this.node(e).type.name+"_"+this.index(e-1);return t+":"+this.parentOffset}static resolve(t,e){if(!(e>=0&&e<=t.content.size))throw new RangeError("Position "+e+" out of range");let r=[],n=0,i=e;for(let s=t;;){let{index:l,offset:a}=s.content.findIndex(i),u=i-a;if(r.push(s,l,n+a),!u||(s=s.child(l),s.isText))break;i=u-1,n+=a+1;}return new o(e,r,i)}static resolveCached(t,e){let r=YE.get(t);if(r)for(let i=0;i<r.elts.length;i++){let s=r.elts[i];if(s.pos==e)return s}else YE.set(t,r=new _P);let n=r.elts[r.i]=o.resolve(t,e);return r.i=(r.i+1)%VN,n}},_P=class{constructor(){this.elts=[],this.i=0;}},VN=12,YE=new WeakMap,Ru=class{constructor(t,e,r){this.$from=t,this.$to=e,this.depth=r;}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}},HN=Object.create(null),Do=class o{constructor(t,e,r,n=De.none){this.type=t,this.attrs=e,this.marks=n,this.content=r||Z.empty;}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(t){return this.content.child(t)}maybeChild(t){return this.content.maybeChild(t)}forEach(t){this.content.forEach(t);}nodesBetween(t,e,r,n=0){this.content.nodesBetween(t,e,r,n,this);}descendants(t){this.nodesBetween(0,this.content.size,t);}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(t,e,r,n){return this.content.textBetween(t,e,r,n)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(t){return this==t||this.sameMarkup(t)&&this.content.eq(t.content)}sameMarkup(t){return this.hasMarkup(t.type,t.attrs,t.marks)}hasMarkup(t,e,r){return this.type==t&&hg(this.attrs,e||t.defaultAttrs||HN)&&De.sameSet(this.marks,r||De.none)}copy(t=null){return t==this.content?this:new o(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new o(this.type,this.attrs,this.content,t)}cut(t,e=this.content.size){return t==0&&e==this.content.size?this:this.copy(this.content.cut(t,e))}slice(t,e=this.content.size,r=false){if(t==e)return ht.empty;let n=this.resolve(t),i=this.resolve(e),s=r?0:n.sharedDepth(e),l=n.start(s),u=n.node(s).content.cut(n.pos-l,i.pos-l);return new ht(u,n.depth-s,i.depth-s)}replace(t,e,r){return FN(this.resolve(t),this.resolve(e),r)}nodeAt(t){for(let e=this;;){let{index:r,offset:n}=e.content.findIndex(t);if(e=e.maybeChild(r),!e)return null;if(n==t||e.isText)return e;t-=n+1;}}childAfter(t){let{index:e,offset:r}=this.content.findIndex(t);return {node:this.content.maybeChild(e),index:e,offset:r}}childBefore(t){if(t==0)return {node:null,index:0,offset:0};let{index:e,offset:r}=this.content.findIndex(t);if(r<t)return {node:this.content.child(e),index:e,offset:r};let n=this.content.child(e-1);return {node:n,index:e-1,offset:r-n.nodeSize}}resolve(t){return dg.resolveCached(this,t)}resolveNoCache(t){return dg.resolve(this,t)}rangeHasMark(t,e,r){let n=false;return e>t&&this.nodesBetween(t,e,i=>(r.isInSet(i.marks)&&(n=true),!n)),n}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),hv(this.marks,t)}contentMatchAt(t){let e=this.type.contentMatch.matchFragment(this.content,0,t);if(!e)throw new Error("Called contentMatchAt on a node with invalid content");return e}canReplace(t,e,r=Z.empty,n=0,i=r.childCount){let s=this.contentMatchAt(t).matchFragment(r,n,i),l=s&&s.matchFragment(this.content,e);if(!l||!l.validEnd)return false;for(let a=n;a<i;a++)if(!this.type.allowsMarks(r.child(a).marks))return false;return true}canReplaceWith(t,e,r,n){if(n&&!this.type.allowsMarks(n))return false;let i=this.contentMatchAt(t).matchType(r),s=i&&i.matchFragment(this.content,e);return s?s.validEnd:false}canAppend(t){return t.content.size?this.canReplace(this.childCount,this.childCount,t.content):this.type.compatibleContent(t.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let t=De.none;for(let e=0;e<this.marks.length;e++){let r=this.marks[e];r.type.checkAttrs(r.attrs),t=r.addToSet(t);}if(!De.sameSet(t,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check());}toJSON(){let t={type:this.type.name};for(let e in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(e=>e.toJSON())),t}static fromJSON(t,e){if(!e)throw new RangeError("Invalid input for Node.fromJSON");let r;if(e.marks){if(!Array.isArray(e.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=e.marks.map(t.markFromJSON);}if(e.type=="text"){if(typeof e.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(e.text,r)}let n=Z.fromJSON(t,e.content),i=t.nodeType(e.type).create(e.attrs,n,r);return i.type.checkAttrs(i.attrs),i}};Do.prototype.text=void 0;var $P=class o extends Do{constructor(t,e,r,n){if(super(t,e,null,n),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r;}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):hv(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,e){return this.text.slice(t,e)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new o(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new o(this.type,this.attrs,t,this.marks)}cut(t=0,e=this.text.length){return t==0&&e==this.text.length?this:this.withText(this.text.slice(t,e))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}};function hv(o,t){for(let e=o.length-1;e>=0;e--)t=o[e].type.name+"("+t+")";return t}var Du=class o{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[];}static parse(t,e){let r=new KP(t,e);if(r.next==null)return o.empty;let n=yv(r);r.next&&r.err("Unexpected trailing text");let i=KN($N(n));return jN(i,r),i}matchType(t){for(let e=0;e<this.next.length;e++)if(this.next[e].type==t)return this.next[e].next;return null}matchFragment(t,e=0,r=t.childCount){let n=this;for(let i=e;n&&i<r;i++)n=n.matchType(t.child(i).type);return n}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let t=0;t<this.next.length;t++){let{type:e}=this.next[t];if(!(e.isText||e.hasRequiredAttrs()))return e}return null}compatible(t){for(let e=0;e<this.next.length;e++)for(let r=0;r<t.next.length;r++)if(this.next[e].type==t.next[r].type)return true;return false}fillBefore(t,e=false,r=0){let n=[this];function i(s,l){let a=s.matchFragment(t,r);if(a&&(!e||a.validEnd))return Z.from(l.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:c,next:h}=s.next[u];if(!(c.isText||c.hasRequiredAttrs())&&n.indexOf(h)==-1){n.push(h);let f=i(h,l.concat(c));if(f)return f}}return null}return i(this,[])}findWrapping(t){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==t)return this.wrapCache[r+1];let e=this.computeWrapping(t);return this.wrapCache.push(t,e),e}computeWrapping(t){let e=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let n=r.shift(),i=n.match;if(i.matchType(t)){let s=[];for(let l=n;l.type;l=l.via)s.push(l.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:l,next:a}=i.next[s];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in e)&&(!n.type||a.validEnd)&&(r.push({match:l.contentMatch,type:l,via:n}),e[l.name]=true);}}return null}get edgeCount(){return this.next.length}edge(t){if(t>=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function e(r){t.push(r);for(let n=0;n<r.next.length;n++)t.indexOf(r.next[n].next)==-1&&e(r.next[n].next);}return e(this),t.map((r,n)=>{let i=n+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)i+=(s?", ":"")+r.next[s].type.name+"->"+t.indexOf(r.next[s].next);return i}).join(`
5
- `)}};Du.empty=new Du(true);var KP=class{constructor(t,e){this.string=t,this.nodeTypes=e,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift();}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||true)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}};function yv(o){let t=[];do t.push(GN(o));while(o.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function GN(o){let t=[];do t.push(UN(o));while(o.next&&o.next!=")"&&o.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function UN(o){let t=_N(o);for(;;)if(o.eat("+"))t={type:"plus",expr:t};else if(o.eat("*"))t={type:"star",expr:t};else if(o.eat("?"))t={type:"opt",expr:t};else if(o.eat("{"))t=WN(o,t);else break;return t}function QE(o){/\D/.test(o.next)&&o.err("Expected number, got '"+o.next+"'");let t=Number(o.next);return o.pos++,t}function WN(o,t){let e=QE(o),r=e;return o.eat(",")&&(o.next!="}"?r=QE(o):r=-1),o.eat("}")||o.err("Unclosed braced range"),{type:"range",min:e,max:r,expr:t}}function zN(o,t){let e=o.nodeTypes,r=e[t];if(r)return [r];let n=[];for(let i in e){let s=e[i];s.isInGroup(t)&&n.push(s);}return n.length==0&&o.err("No node type or group '"+t+"' found"),n}function _N(o){if(o.eat("(")){let t=yv(o);return o.eat(")")||o.err("Missing closing paren"),t}else if(/\W/.test(o.next))o.err("Unexpected token '"+o.next+"'");else {let t=zN(o,o.next).map(e=>(o.inline==null?o.inline=e.isInline:o.inline!=e.isInline&&o.err("Mixing inline and block content"),{type:"name",value:e}));return o.pos++,t.length==1?t[0]:{type:"choice",exprs:t}}}function $N(o){let t=[[]];return n(i(o,0),e()),t;function e(){return t.push([])-1}function r(s,l,a){let u={term:a,to:l};return t[s].push(u),u}function n(s,l){s.forEach(a=>a.to=l);}function i(s,l){if(s.type=="choice")return s.exprs.reduce((a,u)=>a.concat(i(u,l)),[]);if(s.type=="seq")for(let a=0;;a++){let u=i(s.exprs[a],l);if(a==s.exprs.length-1)return u;n(u,l=e());}else if(s.type=="star"){let a=e();return r(l,a),n(i(s.expr,a),a),[r(a)]}else if(s.type=="plus"){let a=e();return n(i(s.expr,l),a),n(i(s.expr,a),a),[r(a)]}else {if(s.type=="opt")return [r(l)].concat(i(s.expr,l));if(s.type=="range"){let a=l;for(let u=0;u<s.min;u++){let c=e();n(i(s.expr,a),c),a=c;}if(s.max==-1)n(i(s.expr,a),a);else for(let u=s.min;u<s.max;u++){let c=e();r(a,c),n(i(s.expr,a),c),a=c;}return [r(a)]}else {if(s.type=="name")return [r(l,void 0,s.value)];throw new Error("Unknown expr type")}}}}function dv(o,t){return t-o}function JE(o,t){let e=[];return r(t),e.sort(dv);function r(n){let i=o[n];if(i.length==1&&!i[0].term)return r(i[0].to);e.push(n);for(let s=0;s<i.length;s++){let{term:l,to:a}=i[s];!l&&e.indexOf(a)==-1&&r(a);}}}function KN(o){let t=Object.create(null);return e(JE(o,0));function e(r){let n=[];r.forEach(s=>{o[s].forEach(({term:l,to:a})=>{if(!l)return;let u;for(let c=0;c<n.length;c++)n[c][0]==l&&(u=n[c][1]);JE(o,a).forEach(c=>{u||n.push([l,u=[]]),u.indexOf(c)==-1&&u.push(c);});});});let i=t[r.join(",")]=new Du(r.indexOf(o.length-1)>-1);for(let s=0;s<n.length;s++){let l=n[s][1].sort(dv);i.next.push({type:n[s][0],next:t[l.join(",")]||e(l)});}return i}}function jN(o,t){for(let e=0,r=[o];e<r.length;e++){let n=r[e],i=!n.validEnd,s=[];for(let l=0;l<n.next.length;l++){let{type:a,next:u}=n.next[l];s.push(a.name),i&&!(a.isText||a.hasRequiredAttrs())&&(i=false),r.indexOf(u)==-1&&r.push(u);}i&&t.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)");}}function fv(o){let t=Object.create(null);for(let e in o){let r=o[e];if(!r.hasDefault)return null;t[e]=r.default;}return t}function bv(o,t){let e=Object.create(null);for(let r in o){let n=t&&t[r];if(n===void 0){let i=o[r];if(i.hasDefault)n=i.default;else throw new RangeError("No value supplied for attribute "+r)}e[r]=n;}return e}function gv(o,t,e,r){for(let n in t)if(!(n in o))throw new RangeError(`Unsupported attribute ${n} for ${e} of type ${r}`);for(let n in o)o[n].validate&&o[n].validate(t[n]);}function Sv(o,t){let e=Object.create(null);if(t)for(let r in t)e[r]=new jP(o,r,t[r]);return e}var fg=class o{constructor(t,e,r){this.name=t,this.schema=e,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=Sv(t,r.attrs),this.defaultAttrs=fv(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||t=="text"),this.isText=t=="text";}get isInline(){return !this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Du.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(t){return this.groups.indexOf(t)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let t in this.attrs)if(this.attrs[t].isRequired)return true;return false}compatibleContent(t){return this==t||this.contentMatch.compatible(t.contentMatch)}computeAttrs(t){return !t&&this.defaultAttrs?this.defaultAttrs:bv(this.attrs,t)}create(t=null,e,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Do(this,this.computeAttrs(t),Z.from(e),De.setFrom(r))}createChecked(t=null,e,r){return e=Z.from(e),this.checkContent(e),new Do(this,this.computeAttrs(t),e,De.setFrom(r))}createAndFill(t=null,e,r){if(t=this.computeAttrs(t),e=Z.from(e),e.size){let s=this.contentMatch.fillBefore(e);if(!s)return null;e=s.append(e);}let n=this.contentMatch.matchFragment(e),i=n&&n.fillBefore(Z.empty,true);return i?new Do(this,t,e.append(i),De.setFrom(r)):null}validContent(t){let e=this.contentMatch.matchFragment(t);if(!e||!e.validEnd)return false;for(let r=0;r<t.childCount;r++)if(!this.allowsMarks(t.child(r).marks))return false;return true}checkContent(t){if(!this.validContent(t))throw new RangeError(`Invalid content for node ${this.name}: ${t.toString().slice(0,50)}`)}checkAttrs(t){gv(this.attrs,t,"node",this.name);}allowsMarkType(t){return this.markSet==null||this.markSet.indexOf(t)>-1}allowsMarks(t){if(this.markSet==null)return true;for(let e=0;e<t.length;e++)if(!this.allowsMarkType(t[e].type))return false;return true}allowedMarks(t){if(this.markSet==null)return t;let e;for(let r=0;r<t.length;r++)this.allowsMarkType(t[r].type)?e&&e.push(t[r]):e||(e=t.slice(0,r));return e?e.length?e:De.none:t}static compile(t,e){let r=Object.create(null);t.forEach((i,s)=>r[i]=new o(i,e,s));let n=e.spec.topNode||"doc";if(!r[n])throw new RangeError("Schema is missing its top node type ('"+n+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let i in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function qN(o,t,e){let r=e.split("|");return n=>{let i=n===null?"null":typeof n;if(r.indexOf(i)<0)throw new RangeError(`Expected value of type ${r} for attribute ${t} on type ${o}, got ${i}`)}}var jP=class{constructor(t,e,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?qN(t,e,r.validate):r.validate;}get isRequired(){return !this.hasDefault}},Qh=class o{constructor(t,e,r,n){this.name=t,this.rank=e,this.schema=r,this.spec=n,this.attrs=Sv(t,n.attrs),this.excluded=null;let i=fv(this.attrs);this.instance=i?new De(this,i):null;}create(t=null){return !t&&this.instance?this.instance:new De(this,bv(this.attrs,t))}static compile(t,e){let r=Object.create(null),n=0;return t.forEach((i,s)=>r[i]=new o(i,n++,e,s)),r}removeFromSet(t){for(var e=0;e<t.length;e++)t[e].type==this&&(t=t.slice(0,e).concat(t.slice(e+1)),e--);return t}isInSet(t){for(let e=0;e<t.length;e++)if(t[e].type==this)return t[e]}checkAttrs(t){gv(this.attrs,t,"mark",this.name);}excludes(t){return this.excluded.indexOf(t)>-1}},ep=class{constructor(t){this.linebreakReplacement=null,this.cached=Object.create(null);let e=this.spec={};for(let n in t)e[n]=t[n];e.nodes=UP.from(t.nodes),e.marks=UP.from(t.marks||{}),this.nodes=fg.compile(this.spec.nodes,this),this.marks=Qh.compile(this.spec.marks,this);let r=Object.create(null);for(let n in this.nodes){if(n in this.marks)throw new RangeError(n+" can not be both a node and a mark");let i=this.nodes[n],s=i.spec.content||"",l=i.spec.marks;if(i.contentMatch=r[s]||(r[s]=Du.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i;}i.markSet=l=="_"?null:l?XE(this,l.split(" ")):l==""||!i.inlineContent?[]:null;}for(let n in this.marks){let i=this.marks[n],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:XE(this,s.split(" "));}this.nodeFromJSON=n=>Do.fromJSON(this,n),this.markFromJSON=n=>De.fromJSON(this,n),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null);}node(t,e=null,r,n){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof fg){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(e,r,n)}text(t,e){let r=this.nodes.text;return new $P(r,r.defaultAttrs,t,De.setFrom(e))}mark(t,e){return typeof t=="string"&&(t=this.marks[t]),t.create(e)}nodeType(t){let e=this.nodes[t];if(!e)throw new RangeError("Unknown node type: "+t);return e}};function XE(o,t){let e=[];for(let r=0;r<t.length;r++){let n=t[r],i=o.marks[n],s=i;if(i)e.push(i);else for(let l in o.marks){let a=o.marks[l];(n=="_"||a.spec.group&&a.spec.group.split(" ").indexOf(n)>-1)&&e.push(s=a);}if(!s)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return e}function YN(o){return o.tag!=null}function QN(o){return o.style!=null}var Ai=class o{constructor(t,e){this.schema=t,this.rules=e,this.tags=[],this.styles=[];let r=this.matchedStyles=[];e.forEach(n=>{if(YN(n))this.tags.push(n);else if(QN(n)){let i=/[^=]*/.exec(n.style)[0];r.indexOf(i)<0&&r.push(i),this.styles.push(n);}}),this.normalizeLists=!this.tags.some(n=>{if(!/^(ul|ol)\b/.test(n.tag)||!n.node)return false;let i=t.nodes[n.node];return i.contentMatch.matchType(i)});}parse(t,e={}){let r=new bg(this,e,false);return r.addAll(t,De.none,e.from,e.to),r.finish()}parseSlice(t,e={}){let r=new bg(this,e,true);return r.addAll(t,De.none,e.from,e.to),ht.maxOpen(r.finish())}matchTag(t,e,r){for(let n=r?this.tags.indexOf(r)+1:0;n<this.tags.length;n++){let i=this.tags[n];if(ZN(t,i.tag)&&(i.namespace===void 0||t.namespaceURI==i.namespace)&&(!i.context||e.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(t);if(s===false)continue;i.attrs=s||void 0;}return i}}}matchStyle(t,e,r,n){for(let i=n?this.styles.indexOf(n)+1:0;i<this.styles.length;i++){let s=this.styles[i],l=s.style;if(!(l.indexOf(t)!=0||s.context&&!r.matchesContext(s.context)||l.length>t.length&&(l.charCodeAt(t.length)!=61||l.slice(t.length+1)!=e))){if(s.getAttrs){let a=s.getAttrs(e);if(a===false)continue;s.attrs=a||void 0;}return s}}}static schemaRules(t){let e=[];function r(n){let i=n.priority==null?50:n.priority,s=0;for(;s<e.length;s++){let l=e[s];if((l.priority==null?50:l.priority)<i)break}e.splice(s,0,n);}for(let n in t.marks){let i=t.marks[n].spec.parseDOM;i&&i.forEach(s=>{r(s=tv(s)),s.mark||s.ignore||s.clearMark||(s.mark=n);});}for(let n in t.nodes){let i=t.nodes[n].spec.parseDOM;i&&i.forEach(s=>{r(s=tv(s)),s.node||s.ignore||s.mark||(s.node=n);});}return e}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new o(t,o.schemaRules(t)))}},Pv={address:true,article:true,aside:true,blockquote:true,body:true,canvas:true,dd:true,div:true,dl:true,fieldset:true,figcaption:true,figure:true,footer:true,form:true,h1:true,h2:true,h3:true,h4:true,h5:true,h6:true,header:true,hgroup:true,hr:true,li:true,noscript:true,ol:true,output:true,p:true,pre:true,section:true,table:true,tfoot:true,ul:true},JN={head:true,noscript:true,object:true,script:true,style:true,title:true},Av={ol:true,ul:true},Jh=1,qP=2,Yh=4;function ZE(o,t,e){return t!=null?(t?Jh:0)|(t==="full"?qP:0):o&&o.whitespace=="pre"?Jh|qP:e&~Yh}var tp=class{constructor(t,e,r,n,i,s){this.type=t,this.attrs=e,this.marks=r,this.solid=n,this.options=s,this.content=[],this.activeMarks=De.none,this.match=i||(s&Yh?null:t.contentMatch);}findWrapping(t){if(!this.match){if(!this.type)return [];let e=this.type.contentMatch.fillBefore(Z.from(t));if(e)this.match=this.type.contentMatch.matchFragment(e);else {let r=this.type.contentMatch,n;return (n=r.findWrapping(t.type))?(this.match=r,n):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&Jh)){let r=this.content[this.content.length-1],n;if(r&&r.isText&&(n=/[ \t\r\n\u000c]+$/.exec(r.text))){let i=r;r.text.length==n[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-n[0].length));}}let e=Z.from(this.content);return !t&&this.match&&(e=e.append(this.match.fillBefore(Z.empty,true))),this.type?this.type.create(this.attrs,e,this.marks):e}inlineContext(t){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:t.parentNode&&!Pv.hasOwnProperty(t.parentNode.nodeName.toLowerCase())}},bg=class{constructor(t,e,r){this.parser=t,this.options=e,this.isOpen=r,this.open=0,this.localPreserveWS=false;let n=e.topNode,i,s=ZE(null,e.preserveWhitespace,0)|(r?Yh:0);n?i=new tp(n.type,n.attrs,De.none,true,e.topMatch||n.type.contentMatch,s):r?i=new tp(null,null,De.none,true,null,s):i=new tp(t.schema.topNodeType,null,De.none,true,null,s),this.nodes=[i],this.find=e.findPositions,this.needsBlock=false;}get top(){return this.nodes[this.open]}addDOM(t,e){t.nodeType==3?this.addTextNode(t,e):t.nodeType==1&&this.addElement(t,e);}addTextNode(t,e){let r=t.nodeValue,n=this.top,i=n.options&qP?"full":this.localPreserveWS||(n.options&Jh)>0,{schema:s}=this.parser;if(i==="full"||n.inlineContext(t)||/[^ \t\r\n\u000c]/.test(r)){if(i)if(i==="full")r=r.replace(/\r\n?/g,`
6
- `);else if(s.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(s.linebreakReplacement.create())){let l=r.split(/\r?\n|\r/);for(let a=0;a<l.length;a++)a&&this.insertNode(s.linebreakReplacement.create(),e,true),l[a]&&this.insertNode(s.text(l[a]),e,!/\S/.test(l[a]));r="";}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let l=n.content[n.content.length-1],a=t.previousSibling;(!l||a&&a.nodeName=="BR"||l.isText&&/[ \t\r\n\u000c]$/.test(l.text))&&(r=r.slice(1));}r&&this.insertNode(s.text(r),e,!/\S/.test(r)),this.findInText(t);}else this.findInside(t);}addElement(t,e,r){let n=this.localPreserveWS,i=this.top;(t.tagName=="PRE"||/pre/.test(t.style&&t.style.whiteSpace))&&(this.localPreserveWS=true);let s=t.nodeName.toLowerCase(),l;Av.hasOwnProperty(s)&&this.parser.normalizeLists&&XN(t);let a=this.options.ruleFromNode&&this.options.ruleFromNode(t)||(l=this.parser.matchTag(t,this,r));t:if(a?a.ignore:JN.hasOwnProperty(s))this.findInside(t),this.ignoreFallback(t,e);else if(!a||a.skip||a.closeParent){a&&a.closeParent?this.open=Math.max(0,this.open-1):a&&a.skip.nodeType&&(t=a.skip);let u,c=this.needsBlock;if(Pv.hasOwnProperty(s))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),u=true,i.type||(this.needsBlock=true);else if(!t.firstChild){this.leafFallback(t,e);break t}let h=a&&a.skip?e:this.readStyles(t,e);h&&this.addAll(t,h),u&&this.sync(i),this.needsBlock=c;}else {let u=this.readStyles(t,e);u&&this.addElementByRule(t,a,u,a.consuming===false?l:void 0);}this.localPreserveWS=n;}leafFallback(t,e){t.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode(`
7
- `),e);}ignoreFallback(t,e){t.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),e,true);}readStyles(t,e){let r=t.style;if(r&&r.length)for(let n=0;n<this.parser.matchedStyles.length;n++){let i=this.parser.matchedStyles[n],s=r.getPropertyValue(i);if(s)for(let l=void 0;;){let a=this.parser.matchStyle(i,s,this,l);if(!a)break;if(a.ignore)return null;if(a.clearMark?e=e.filter(u=>!a.clearMark(u)):e=e.concat(this.parser.schema.marks[a.mark].create(a.attrs)),a.consuming===false)l=a;else break}}return e}addElementByRule(t,e,r,n){let i,s;if(e.node)if(s=this.parser.schema.nodes[e.node],s.isLeaf)this.insertNode(s.create(e.attrs),r,t.nodeName=="BR")||this.leafFallback(t,r);else {let a=this.enter(s,e.attrs||null,r,e.preserveWhitespace);a&&(i=true,r=a);}else {let a=this.parser.schema.marks[e.mark];r=r.concat(a.create(e.attrs));}let l=this.top;if(s&&s.isLeaf)this.findInside(t);else if(n)this.addElement(t,r,n);else if(e.getContent)this.findInside(t),e.getContent(t,this.parser.schema).forEach(a=>this.insertNode(a,r,false));else {let a=t;typeof e.contentElement=="string"?a=t.querySelector(e.contentElement):typeof e.contentElement=="function"?a=e.contentElement(t):e.contentElement&&(a=e.contentElement),this.findAround(t,a,true),this.addAll(a,r),this.findAround(t,a,false);}i&&this.sync(l)&&this.open--;}addAll(t,e,r,n){let i=r||0;for(let s=r?t.childNodes[r]:t.firstChild,l=n==null?null:t.childNodes[n];s!=l;s=s.nextSibling,++i)this.findAtPoint(t,i),this.addDOM(s,e);this.findAtPoint(t,i);}findPlace(t,e,r){let n,i;for(let s=this.open,l=0;s>=0;s--){let a=this.nodes[s],u=a.findWrapping(t);if(u&&(!n||n.length>u.length+l)&&(n=u,i=a,!u.length))break;if(a.solid){if(r)break;l+=2;}}if(!n)return null;this.sync(i);for(let s=0;s<n.length;s++)e=this.enterInner(n[s],null,e,false);return e}insertNode(t,e,r){if(t.isInline&&this.needsBlock&&!this.top.type){let i=this.textblockFromContext();i&&(e=this.enterInner(i,null,e));}let n=this.findPlace(t,e,r);if(n){this.closeExtra();let i=this.top;i.match&&(i.match=i.match.matchType(t.type));let s=De.none;for(let l of n.concat(t.marks))(i.type?i.type.allowsMarkType(l.type):ev(l.type,t.type))&&(s=l.addToSet(s));return i.content.push(t.mark(s)),true}return false}enter(t,e,r,n){let i=this.findPlace(t.create(e),r,false);return i&&(i=this.enterInner(t,e,r,true,n)),i}enterInner(t,e,r,n=false,i){this.closeExtra();let s=this.top;s.match=s.match&&s.match.matchType(t);let l=ZE(t,i,s.options);s.options&Yh&&s.content.length==0&&(l|=Yh);let a=De.none;return r=r.filter(u=>(s.type?s.type.allowsMarkType(u.type):ev(u.type,t))?(a=u.addToSet(a),false):true),this.nodes.push(new tp(t,e,a,n,null,l)),this.open++,r}closeExtra(t=false){let e=this.nodes.length-1;if(e>this.open){for(;e>this.open;e--)this.nodes[e-1].content.push(this.nodes[e].finish(t));this.nodes.length=this.open+1;}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(t){for(let e=this.open;e>=0;e--){if(this.nodes[e]==t)return this.open=e,true;this.localPreserveWS&&(this.nodes[e].options|=Jh);}return false}get currentPos(){this.closeExtra();let t=0;for(let e=this.open;e>=0;e--){let r=this.nodes[e].content;for(let n=r.length-1;n>=0;n--)t+=r[n].nodeSize;e&&t++;}return t}findAtPoint(t,e){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==t&&this.find[r].offset==e&&(this.find[r].pos=this.currentPos);}findInside(t){if(this.find)for(let e=0;e<this.find.length;e++)this.find[e].pos==null&&t.nodeType==1&&t.contains(this.find[e].node)&&(this.find[e].pos=this.currentPos);}findAround(t,e,r){if(t!=e&&this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&t.nodeType==1&&t.contains(this.find[n].node)&&e.compareDocumentPosition(this.find[n].node)&(r?2:4)&&(this.find[n].pos=this.currentPos);}findInText(t){if(this.find)for(let e=0;e<this.find.length;e++)this.find[e].node==t&&(this.find[e].pos=this.currentPos-(t.nodeValue.length-this.find[e].offset));}matchesContext(t){if(t.indexOf("|")>-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let e=t.split("/"),r=this.options.context,n=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+(n?0:1),s=(l,a)=>{for(;l>=0;l--){let u=e[l];if(u==""){if(l==e.length-1||l==0)continue;for(;a>=i;a--)if(s(l-1,a))return true;return false}else {let c=a>0||a==0&&n?this.nodes[a].type:r&&a>=i?r.node(a-i).type:null;if(!c||c.name!=u&&!c.isInGroup(u))return false;a--;}}return true};return s(e.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let e=t.depth;e>=0;e--){let r=t.node(e).contentMatchAt(t.indexAfter(e)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let e in this.parser.schema.nodes){let r=this.parser.schema.nodes[e];if(r.isTextblock&&r.defaultAttrs)return r}}};function XN(o){for(let t=o.firstChild,e=null;t;t=t.nextSibling){let r=t.nodeType==1?t.nodeName.toLowerCase():null;r&&Av.hasOwnProperty(r)&&e?(e.appendChild(t),t=e):r=="li"?e=t:r&&(e=null);}}function ZN(o,t){return (o.matches||o.msMatchesSelector||o.webkitMatchesSelector||o.mozMatchesSelector).call(o,t)}function tv(o){let t={};for(let e in o)t[e]=o[e];return t}function ev(o,t){let e=t.schema.nodes;for(let r in e){let n=e[r];if(!n.allowsMarkType(o))continue;let i=[],s=l=>{i.push(l);for(let a=0;a<l.edgeCount;a++){let{type:u,next:c}=l.edge(a);if(u==t||i.indexOf(c)<0&&s(c))return true}};if(s(n.contentMatch))return true}}var zn=class o{constructor(t,e){this.nodes=t,this.marks=e;}serializeFragment(t,e={},r){r||(r=pg(e).createDocumentFragment());let n=r,i=[];return t.forEach(s=>{if(i.length||s.marks.length){let l=0,a=0;for(;l<i.length&&a<s.marks.length;){let u=s.marks[a];if(!this.marks[u.type.name]){a++;continue}if(!u.eq(i[l][0])||u.type.spec.spanning===false)break;l++,a++;}for(;l<i.length;)n=i.pop()[1];for(;a<s.marks.length;){let u=s.marks[a++],c=this.serializeMark(u,s.isInline,e);c&&(i.push([u,n]),n.appendChild(c.dom),n=c.contentDOM||c.dom);}}n.appendChild(this.serializeNodeInner(s,e));}),r}serializeNodeInner(t,e){if(t.isText)return pg(e).createTextNode(t.text);let{dom:r,contentDOM:n}=mg(pg(e),this.nodes[t.type.name](t),null,t.attrs);if(n){if(t.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(t.content,e,n);}return r}serializeNode(t,e={}){let r=this.serializeNodeInner(t,e);for(let n=t.marks.length-1;n>=0;n--){let i=this.serializeMark(t.marks[n],t.isInline,e);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom);}return r}serializeMark(t,e,r={}){let n=this.marks[t.type.name];return n&&mg(pg(r),n(t,e),null,t.attrs)}static renderSpec(t,e,r=null,n){return typeof e=="string"?{dom:t.createTextNode(e)}:mg(t,e,r,n)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new o(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let e=rv(t.nodes);return e.text||(e.text=r=>r.text),e}static marksFromSchema(t){return rv(t.marks)}};function rv(o){let t={};for(let e in o){let r=o[e].spec.toDOM;r&&(t[e]=r);}return t}function pg(o){return o.document||window.document}var ov=new WeakMap;function t1(o){let t=ov.get(o);return t===void 0&&ov.set(o,t=e1(o)),t}function e1(o){let t=null;function e(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")t||(t=[]),t.push(r);else for(let n=0;n<r.length;n++)e(r[n]);else for(let n in r)e(r[n]);}return e(o),t}function mg(o,t,e,r){if(t.nodeType==1)return {dom:t};if(t.dom&&t.dom.nodeType==1)return t;let n=t[0],i;if(typeof n!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(i=t1(r))&&i.indexOf(t)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let s=n.indexOf(" ");s>0&&(e=n.slice(0,s),n=n.slice(s+1));let l,a=e?o.createElementNS(e,n):o.createElement(n),u=t[1],c=1;if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){c=2;for(let h in u)if(u[h]!=null){let f=h.indexOf(" ");f>0?a.setAttributeNS(h.slice(0,f),h.slice(f+1),u[h]):h=="style"&&a.style?a.style.cssText=u[h]:a.setAttribute(h,u[h]);}}for(let h=c;h<t.length;h++){let f=t[h];if(f===0){if(h<t.length-1||h>c)throw new RangeError("Content hole must be the only child of its parent node");return {dom:a,contentDOM:a}}else if(typeof f=="string")a.appendChild(o.createTextNode(f));else {let{dom:d,contentDOM:g}=mg(o,f,e,r);if(a.appendChild(d),g){if(l)throw new RangeError("Multiple content holes");l=g;}}}return {dom:a,contentDOM:l}}var Ev=65535,vv=Math.pow(2,16);function r1(o,t){return o+t*vv}function wv(o){return o&Ev}function o1(o){return (o-(o&Ev))/vv}var Tv=1,Cv=2,gg=4,kv=8,ty=class{constructor(t,e,r){this.pos=t,this.delInfo=e,this.recover=r;}get deleted(){return (this.delInfo&kv)>0}get deletedBefore(){return (this.delInfo&(Tv|gg))>0}get deletedAfter(){return (this.delInfo&(Cv|gg))>0}get deletedAcross(){return (this.delInfo&gg)>0}},Xs=class o{constructor(t,e=false){if(this.ranges=t,this.inverted=e,!t.length&&o.empty)return o.empty}recover(t){let e=0,r=wv(t);if(!this.inverted)for(let n=0;n<r;n++)e+=this.ranges[n*3+2]-this.ranges[n*3+1];return this.ranges[r*3]+e+o1(t)}mapResult(t,e=1){return this._map(t,e,false)}map(t,e=1){return this._map(t,e,true)}_map(t,e,r){let n=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?n:0);if(a>t)break;let u=this.ranges[l+i],c=this.ranges[l+s],h=a+u;if(t<=h){let f=u?t==a?-1:t==h?1:e:e,d=a+n+(f<0?0:c);if(r)return d;let g=t==(e<0?a:h)?null:r1(l/3,t-a),P=t==a?Cv:t==h?Tv:gg;return (e<0?t!=a:t!=h)&&(P|=kv),new ty(d,P,g)}n+=c-u;}return r?t+n:new ty(t+n,0,null)}touches(t,e){let r=0,n=wv(e),i=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?r:0);if(a>t)break;let u=this.ranges[l+i],c=a+u;if(t<=c&&l==n*3)return true;r+=this.ranges[l+s]-u;}return false}forEach(t){let e=this.inverted?2:1,r=this.inverted?1:2;for(let n=0,i=0;n<this.ranges.length;n+=3){let s=this.ranges[n],l=s-(this.inverted?i:0),a=s+(this.inverted?0:i),u=this.ranges[n+e],c=this.ranges[n+r];t(l,l+u,a,a+c),i+=c-u;}}invert(){return new o(this.ranges,!this.inverted)}toString(){return (this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(t){return t==0?o.empty:new o(t<0?[0,-t,0]:[0,0,t])}};Xs.empty=new Xs([]);var ey=class o{constructor(t,e,r=0,n=t?t.length:0){this.mirror=e,this.from=r,this.to=n,this._maps=t||[],this.ownData=!(t||e);}get maps(){return this._maps}slice(t=0,e=this.maps.length){return new o(this._maps,this.mirror,t,e)}appendMap(t,e){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=true),this.to=this._maps.push(t),e!=null&&this.setMirror(this._maps.length-1,e);}appendMapping(t){for(let e=0,r=this._maps.length;e<t._maps.length;e++){let n=t.getMirror(e);this.appendMap(t._maps[e],n!=null&&n<e?r+n:void 0);}}getMirror(t){if(this.mirror){for(let e=0;e<this.mirror.length;e++)if(this.mirror[e]==t)return this.mirror[e+(e%2?-1:1)]}}setMirror(t,e){this.mirror||(this.mirror=[]),this.mirror.push(t,e);}appendMappingInverted(t){for(let e=t.maps.length-1,r=this._maps.length+t._maps.length;e>=0;e--){let n=t.getMirror(e);this.appendMap(t._maps[e].invert(),n!=null&&n>e?r-n-1:void 0);}}invert(){let t=new o;return t.appendMappingInverted(this),t}map(t,e=1){if(this.mirror)return this._map(t,e,true);for(let r=this.from;r<this.to;r++)t=this._maps[r].map(t,e);return t}mapResult(t,e=1){return this._map(t,e,false)}_map(t,e,r){let n=0;for(let i=this.from;i<this.to;i++){let s=this._maps[i],l=s.mapResult(t,e);if(l.recover!=null){let a=this.getMirror(i);if(a!=null&&a>i&&a<this.to){i=a,t=this._maps[a].recover(l.recover);continue}}n|=l.delInfo,t=l.pos;}return r?t:new ty(t,n,null)}},YP=Object.create(null),$r=class{getMap(){return Xs.empty}merge(t){return null}static fromJSON(t,e){if(!e||!e.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=YP[e.stepType];if(!r)throw new RangeError(`No step type ${e.stepType} defined`);return r.fromJSON(t,e)}static jsonID(t,e){if(t in YP)throw new RangeError("Duplicate use of step JSON ID "+t);return YP[t]=e,e.prototype.jsonID=t,e}},oo=class o{constructor(t,e){this.doc=t,this.failed=e;}static ok(t){return new o(t,null)}static fail(t){return new o(null,t)}static fromReplace(t,e,r,n){try{return o.ok(t.replace(e,r,n))}catch(i){if(i instanceof ca)return o.fail(i.message);throw i}}};function tA(o,t,e){let r=[];for(let n=0;n<o.childCount;n++){let i=o.child(n);i.content.size&&(i=i.copy(tA(i.content,t,i))),i.isInline&&(i=t(i,e,n)),r.push(i);}return Z.fromArray(r)}var ry=class o extends $r{constructor(t,e,r){super(),this.from=t,this.to=e,this.mark=r;}apply(t){let e=t.slice(this.from,this.to),r=t.resolve(this.from),n=r.node(r.sharedDepth(this.to)),i=new ht(tA(e.content,(s,l)=>!s.isAtom||!l.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),n),e.openStart,e.openEnd);return oo.fromReplace(t,this.from,this.to,i)}invert(){return new Zs(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return e.deleted&&r.deleted||e.pos>=r.pos?null:new o(e.pos,r.pos,this.mark)}merge(t){return t instanceof o&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new o(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return {stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if(typeof e.from!="number"||typeof e.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new o(e.from,e.to,t.markFromJSON(e.mark))}};$r.jsonID("addMark",ry);var Zs=class o extends $r{constructor(t,e,r){super(),this.from=t,this.to=e,this.mark=r;}apply(t){let e=t.slice(this.from,this.to),r=new ht(tA(e.content,n=>n.mark(this.mark.removeFromSet(n.marks)),t),e.openStart,e.openEnd);return oo.fromReplace(t,this.from,this.to,r)}invert(){return new ry(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return e.deleted&&r.deleted||e.pos>=r.pos?null:new o(e.pos,r.pos,this.mark)}merge(t){return t instanceof o&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new o(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return {stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if(typeof e.from!="number"||typeof e.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new o(e.from,e.to,t.markFromJSON(e.mark))}};$r.jsonID("removeMark",Zs);var oy=class o extends $r{constructor(t,e){super(),this.pos=t,this.mark=e;}apply(t){let e=t.nodeAt(this.pos);if(!e)return oo.fail("No node at mark step's position");let r=e.type.create(e.attrs,null,this.mark.addToSet(e.marks));return oo.fromReplace(t,this.pos,this.pos+1,new ht(Z.from(r),0,e.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);if(e){let r=this.mark.addToSet(e.marks);if(r.length==e.marks.length){for(let n=0;n<e.marks.length;n++)if(!e.marks[n].isInSet(r))return new o(this.pos,e.marks[n]);return new o(this.pos,this.mark)}}return new rp(this.pos,this.mark)}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new o(e.pos,this.mark)}toJSON(){return {stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,e){if(typeof e.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new o(e.pos,t.markFromJSON(e.mark))}};$r.jsonID("addNodeMark",oy);var rp=class o extends $r{constructor(t,e){super(),this.pos=t,this.mark=e;}apply(t){let e=t.nodeAt(this.pos);if(!e)return oo.fail("No node at mark step's position");let r=e.type.create(e.attrs,null,this.mark.removeFromSet(e.marks));return oo.fromReplace(t,this.pos,this.pos+1,new ht(Z.from(r),0,e.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);return !e||!this.mark.isInSet(e.marks)?this:new oy(this.pos,this.mark)}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new o(e.pos,this.mark)}toJSON(){return {stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,e){if(typeof e.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new o(e.pos,t.markFromJSON(e.mark))}};$r.jsonID("removeNodeMark",rp);var no=class o extends $r{constructor(t,e,r,n=false){super(),this.from=t,this.to=e,this.slice=r,this.structure=n;}apply(t){return this.structure&&XP(t,this.from,this.to)?oo.fail("Structure replace would overwrite content"):oo.fromReplace(t,this.from,this.to,this.slice)}getMap(){return new Xs([this.from,this.to-this.from,this.slice.size])}invert(t){return new o(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let e=t.mapResult(this.to,-1),r=this.from==this.to&&o.MAP_BIAS<0?e:t.mapResult(this.from,1);return r.deletedAcross&&e.deletedAcross?null:new o(r.pos,Math.max(r.pos,e.pos),this.slice,this.structure)}merge(t){if(!(t instanceof o)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let e=this.slice.size+t.slice.size==0?ht.empty:new ht(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new o(this.from,this.to+(t.to-t.from),e,this.structure)}else if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let e=this.slice.size+t.slice.size==0?ht.empty:new ht(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new o(t.from,this.to,e,this.structure)}else return null}toJSON(){let t={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=true),t}static fromJSON(t,e){if(typeof e.from!="number"||typeof e.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new o(e.from,e.to,ht.fromJSON(t,e.slice),!!e.structure)}};no.MAP_BIAS=1;$r.jsonID("replace",no);var Cr=class o extends $r{constructor(t,e,r,n,i,s,l=false){super(),this.from=t,this.to=e,this.gapFrom=r,this.gapTo=n,this.slice=i,this.insert=s,this.structure=l;}apply(t){if(this.structure&&(XP(t,this.from,this.gapFrom)||XP(t,this.gapTo,this.to)))return oo.fail("Structure gap-replace would overwrite content");let e=t.slice(this.gapFrom,this.gapTo);if(e.openStart||e.openEnd)return oo.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,e.content);return r?oo.fromReplace(t,this.from,this.to,r):oo.fail("Content does not fit in gap")}getMap(){return new Xs([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let e=this.gapTo-this.gapFrom;return new o(this.from,this.from+this.slice.size+e,this.from+this.insert,this.from+this.insert+e,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),n=this.from==this.gapFrom?e.pos:t.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return e.deletedAcross&&r.deletedAcross||n<e.pos||i>r.pos?null:new o(e.pos,r.pos,n,i,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=true),t}static fromJSON(t,e){if(typeof e.from!="number"||typeof e.to!="number"||typeof e.gapFrom!="number"||typeof e.gapTo!="number"||typeof e.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new o(e.from,e.to,e.gapFrom,e.gapTo,ht.fromJSON(t,e.slice),e.insert,!!e.structure)}};$r.jsonID("replaceAround",Cr);function XP(o,t,e){let r=o.resolve(t),n=e-t,i=r.depth;for(;n>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,n--;if(n>0){let s=r.node(i).maybeChild(r.indexAfter(i));for(;n>0;){if(!s||s.isLeaf)return true;s=s.firstChild,n--;}}return false}function n1(o,t,e,r){let n=[],i=[],s,l;o.doc.nodesBetween(t,e,(a,u,c)=>{if(!a.isInline)return;let h=a.marks;if(!r.isInSet(h)&&c.type.allowsMarkType(r.type)){let f=Math.max(u,t),d=Math.min(u+a.nodeSize,e),g=r.addToSet(h);for(let P=0;P<h.length;P++)h[P].isInSet(g)||(s&&s.to==f&&s.mark.eq(h[P])?s.to=d:n.push(s=new Zs(f,d,h[P])));l&&l.to==f?l.to=d:i.push(l=new ry(f,d,r));}}),n.forEach(a=>o.step(a)),i.forEach(a=>o.step(a));}function i1(o,t,e,r){let n=[],i=0;o.doc.nodesBetween(t,e,(s,l)=>{if(!s.isInline)return;i++;let a=null;if(r instanceof Qh){let u=s.marks,c;for(;c=r.isInSet(u);)(a||(a=[])).push(c),u=c.removeFromSet(u);}else r?r.isInSet(s.marks)&&(a=[r]):a=s.marks;if(a&&a.length){let u=Math.min(l+s.nodeSize,e);for(let c=0;c<a.length;c++){let h=a[c],f;for(let d=0;d<n.length;d++){let g=n[d];g.step==i-1&&h.eq(n[d].style)&&(f=g);}f?(f.to=u,f.step=i):n.push({style:h,from:Math.max(l,t),to:u,step:i});}}}),n.forEach(s=>o.step(new Zs(s.from,s.to,s.style)));}function eA(o,t,e,r=e.contentMatch,n=true){let i=o.doc.nodeAt(t),s=[],l=t+1;for(let a=0;a<i.childCount;a++){let u=i.child(a),c=l+u.nodeSize,h=r.matchType(u.type);if(!h)s.push(new no(l,c,ht.empty));else {r=h;for(let f=0;f<u.marks.length;f++)e.allowsMarkType(u.marks[f].type)||o.step(new Zs(l,c,u.marks[f]));if(n&&u.isText&&e.whitespace!="pre"){let f,d=/\r?\n|\r/g,g;for(;f=d.exec(u.text);)g||(g=new ht(Z.from(e.schema.text(" ",e.allowedMarks(u.marks))),0,0)),s.push(new no(l+f.index,l+f.index+f[0].length,g));}}l=c;}if(!r.validEnd){let a=r.fillBefore(Z.empty,true);o.replace(l,l,new ht(a,0,0));}for(let a=s.length-1;a>=0;a--)o.step(s[a]);}function s1(o,t,e){return (t==0||o.canReplace(t,o.childCount))&&(e==o.childCount||o.canReplace(0,e))}function tl(o){let e=o.parent.content.cutByIndex(o.startIndex,o.endIndex);for(let r=o.depth,n=0,i=0;;--r){let s=o.$from.node(r),l=o.$from.index(r)+n,a=o.$to.indexAfter(r)-i;if(r<o.depth&&s.canReplace(l,a,e))return r;if(r==0||s.type.spec.isolating||!s1(s,l,a))break;l&&(n=1),a<s.childCount&&(i=1);}return null}function l1(o,t,e){let{$from:r,$to:n,depth:i}=t,s=r.before(i+1),l=n.after(i+1),a=s,u=l,c=Z.empty,h=0;for(let g=i,P=false;g>e;g--)P||r.index(g)>0?(P=true,c=Z.from(r.node(g).copy(c)),h++):a--;let f=Z.empty,d=0;for(let g=i,P=false;g>e;g--)P||n.after(g+1)<n.end(g)?(P=true,f=Z.from(n.node(g).copy(f)),d++):u++;o.step(new Cr(a,u,s,l,new ht(c.append(f),h,d),c.size-h,true));}function np(o,t,e=null,r=o){let n=a1(o,t),i=n&&u1(r,t);return i?n.map(xv).concat({type:t,attrs:e}).concat(i.map(xv)):null}function xv(o){return {type:o,attrs:null}}function a1(o,t){let{parent:e,startIndex:r,endIndex:n}=o,i=e.contentMatchAt(r).findWrapping(t);if(!i)return null;let s=i.length?i[0]:t;return e.canReplaceWith(r,n,s)?i:null}function u1(o,t){let{parent:e,startIndex:r,endIndex:n}=o,i=e.child(r),s=t.contentMatch.findWrapping(i.type);if(!s)return null;let a=(s.length?s[s.length-1]:t).contentMatch;for(let u=r;a&&u<n;u++)a=a.matchType(e.child(u).type);return !a||!a.validEnd?null:s}function c1(o,t,e){let r=Z.empty;for(let s=e.length-1;s>=0;s--){if(r.size){let l=e[s].type.contentMatch.matchFragment(r);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=Z.from(e[s].type.create(e[s].attrs,r));}let n=t.start,i=t.end;o.step(new Cr(n,i,n,i,new ht(r,0,0),e.length,true));}function p1(o,t,e,r,n){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=o.steps.length;o.doc.nodesBetween(t,e,(s,l)=>{let a=typeof n=="function"?n(s):n;if(s.isTextblock&&!s.hasMarkup(r,a)&&m1(o.doc,o.mapping.slice(i).map(l),r)){let u=null;if(r.schema.linebreakReplacement){let d=r.whitespace=="pre",g=!!r.contentMatch.matchType(r.schema.linebreakReplacement);d&&!g?u=false:!d&&g&&(u=true);}u===false&&Lv(o,s,l,i),eA(o,o.mapping.slice(i).map(l,1),r,void 0,u===null);let c=o.mapping.slice(i),h=c.map(l,1),f=c.map(l+s.nodeSize,1);return o.step(new Cr(h,f,h+1,f-1,new ht(Z.from(r.create(a,null,s.marks)),0,0),1,true)),u===true&&Nv(o,s,l,i),false}});}function Nv(o,t,e,r){t.forEach((n,i)=>{if(n.isText){let s,l=/\r?\n|\r/g;for(;s=l.exec(n.text);){let a=o.mapping.slice(r).map(e+1+i+s.index);o.replaceWith(a,a+1,t.type.schema.linebreakReplacement.create());}}});}function Lv(o,t,e,r){t.forEach((n,i)=>{if(n.type==n.type.schema.linebreakReplacement){let s=o.mapping.slice(r).map(e+1+i);o.replaceWith(s,s+1,t.type.schema.text(`
8
- `));}});}function m1(o,t,e){let r=o.resolve(t),n=r.index();return r.parent.canReplaceWith(n,n+1,e)}function h1(o,t,e,r,n){let i=o.doc.nodeAt(t);if(!i)throw new RangeError("No node at given position");e||(e=i.type);let s=e.create(r,null,n||i.marks);if(i.isLeaf)return o.replaceWith(t,t+i.nodeSize,s);if(!e.validContent(i.content))throw new RangeError("Invalid content for node type "+e.name);o.step(new Cr(t,t+i.nodeSize,t+1,t+i.nodeSize-1,new ht(Z.from(s),0,0),1,true));}function vn(o,t,e=1,r){let n=o.resolve(t),i=n.depth-e,s=r&&r[r.length-1]||n.parent;if(i<0||n.parent.type.spec.isolating||!n.parent.canReplace(n.index(),n.parent.childCount)||!s.type.validContent(n.parent.content.cutByIndex(n.index(),n.parent.childCount)))return false;for(let u=n.depth-1,c=e-2;u>i;u--,c--){let h=n.node(u),f=n.index(u);if(h.type.spec.isolating)return false;let d=h.content.cutByIndex(f,h.childCount),g=r&&r[c+1];g&&(d=d.replaceChild(0,g.type.create(g.attrs)));let P=r&&r[c]||h;if(!h.canReplace(f+1,h.childCount)||!P.type.validContent(d))return false}let l=n.indexAfter(i),a=r&&r[0];return n.node(i).canReplaceWith(l,l,a?a.type:n.node(i+1).type)}function y1(o,t,e=1,r){let n=o.doc.resolve(t),i=Z.empty,s=Z.empty;for(let l=n.depth,a=n.depth-e,u=e-1;l>a;l--,u--){i=Z.from(n.node(l).copy(i));let c=r&&r[u];s=Z.from(c?c.type.create(c.attrs,s):n.node(l).copy(s));}o.step(new no(t,t,new ht(i.append(s),e,e),true));}function _n(o,t){let e=o.resolve(t),r=e.index();return Mv(e.nodeBefore,e.nodeAfter)&&e.parent.canReplace(r,r+1)}function d1(o,t){t.content.size||o.type.compatibleContent(t.type);let e=o.contentMatchAt(o.childCount),{linebreakReplacement:r}=o.type.schema;for(let n=0;n<t.childCount;n++){let i=t.child(n),s=i.type==r?o.type.schema.nodes.text:i.type;if(e=e.matchType(s),!e||!o.type.allowsMarks(i.marks))return false}return e.validEnd}function Mv(o,t){return !!(o&&t&&!o.isLeaf&&d1(o,t))}function Ou(o,t,e=-1){let r=o.resolve(t);for(let n=r.depth;;n--){let i,s,l=r.index(n);if(n==r.depth?(i=r.nodeBefore,s=r.nodeAfter):e>0?(i=r.node(n+1),l++,s=r.node(n).maybeChild(l)):(i=r.node(n).maybeChild(l-1),s=r.node(n+1)),i&&!i.isTextblock&&Mv(i,s)&&r.node(n).canReplace(l,l+1))return t;if(n==0)break;t=e<0?r.before(n):r.after(n);}}function f1(o,t,e){let r=null,{linebreakReplacement:n}=o.doc.type.schema,i=o.doc.resolve(t-e),s=i.node().type;if(n&&s.inlineContent){let c=s.whitespace=="pre",h=!!s.contentMatch.matchType(n);c&&!h?r=false:!c&&h&&(r=true);}let l=o.steps.length;if(r===false){let c=o.doc.resolve(t+e);Lv(o,c.node(),c.before(),l);}s.inlineContent&&eA(o,t+e-1,s,i.node().contentMatchAt(i.index()),r==null);let a=o.mapping.slice(l),u=a.map(t-e);if(o.step(new no(u,a.map(t+e,-1),ht.empty,true)),r===true){let c=o.doc.resolve(u);Nv(o,c.node(),c.before(),o.steps.length);}return o}function b1(o,t,e){let r=o.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),e))return t;if(r.parentOffset==0)for(let n=r.depth-1;n>=0;n--){let i=r.index(n);if(r.node(n).canReplaceWith(i,i,e))return r.before(n+1);if(i>0)return null}if(r.parentOffset==r.parent.content.size)for(let n=r.depth-1;n>=0;n--){let i=r.indexAfter(n);if(r.node(n).canReplaceWith(i,i,e))return r.after(n+1);if(i<r.node(n).childCount)return null}return null}function Ag(o,t,e){let r=o.resolve(t);if(!e.content.size)return t;let n=e.content;for(let i=0;i<e.openStart;i++)n=n.firstChild.content;for(let i=1;i<=(e.openStart==0&&e.size?2:1);i++)for(let s=r.depth;s>=0;s--){let l=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,a=r.index(s)+(l>0?1:0),u=r.node(s),c=false;if(i==1)c=u.canReplace(a,a,n);else {let h=u.contentMatchAt(a).findWrapping(n.firstChild.type);c=h&&u.canReplaceWith(a,a,h[0]);}if(c)return l==0?r.pos:l<0?r.before(s+1):r.after(s+1)}return null}function iy(o,t,e=t,r=ht.empty){if(t==e&&!r.size)return null;let n=o.resolve(t),i=o.resolve(e);return Iv(n,i,r)?new no(t,e,r):new ZP(n,i,r).fit()}function Iv(o,t,e){return !e.openStart&&!e.openEnd&&o.start()==t.start()&&o.parent.canReplace(o.index(),t.index(),e.content)}var ZP=class{constructor(t,e,r){this.$from=t,this.$to=e,this.unplaced=r,this.frontier=[],this.placed=Z.empty;for(let n=0;n<=t.depth;n++){let i=t.node(n);this.frontier.push({type:i.type,match:i.contentMatchAt(t.indexAfter(n))});}for(let n=t.depth;n>0;n--)this.placed=Z.from(t.node(n).copy(this.placed));}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):this.openMore()||this.dropNode();}let t=this.mustMoveInline(),e=this.placed.size-this.depth-this.$from.depth,r=this.$from,n=this.close(t<0?this.$to:r.doc.resolve(t));if(!n)return null;let i=this.placed,s=r.depth,l=n.depth;for(;s&&l&&i.childCount==1;)i=i.firstChild.content,s--,l--;let a=new ht(i,s,l);return t>-1?new Cr(r.pos,t,this.$to.pos,this.$to.end(),a,e):a.size||r.pos!=this.$to.pos?new no(r.pos,n.pos,a):null}findFittable(){let t=this.unplaced.openStart;for(let e=this.unplaced.content,r=0,n=this.unplaced.openEnd;r<t;r++){let i=e.firstChild;if(e.childCount>1&&(n=0),i.type.spec.isolating&&n<=r){t=r;break}e=i.content;}for(let e=1;e<=2;e++)for(let r=e==1?t:this.unplaced.openStart;r>=0;r--){let n,i=null;r?(i=QP(this.unplaced.content,r-1).firstChild,n=i.content):n=this.unplaced.content;let s=n.firstChild;for(let l=this.depth;l>=0;l--){let{type:a,match:u}=this.frontier[l],c,h=null;if(e==1&&(s?u.matchType(s.type)||(h=u.fillBefore(Z.from(s),false)):i&&a.compatibleContent(i.type)))return {sliceDepth:r,frontierDepth:l,parent:i,inject:h};if(e==2&&s&&(c=u.findWrapping(s.type)))return {sliceDepth:r,frontierDepth:l,parent:i,wrap:c};if(i&&u.matchType(i.type))break}}}openMore(){let{content:t,openStart:e,openEnd:r}=this.unplaced,n=QP(t,e);return !n.childCount||n.firstChild.isLeaf?false:(this.unplaced=new ht(t,e+1,Math.max(r,n.size+e>=t.size-r?e+1:0)),true)}dropNode(){let{content:t,openStart:e,openEnd:r}=this.unplaced,n=QP(t,e);if(n.childCount<=1&&e>0){let i=t.size-e<=e+n.size;this.unplaced=new ht(Xh(t,e-1,1),e-1,i?e-1:r);}else this.unplaced=new ht(Xh(t,e,1),e,r);}placeNodes({sliceDepth:t,frontierDepth:e,parent:r,inject:n,wrap:i}){for(;this.depth>e;)this.closeFrontierNode();if(i)for(let P=0;P<i.length;P++)this.openFrontierNode(i[P]);let s=this.unplaced,l=r?r.content:s.content,a=s.openStart-t,u=0,c=[],{match:h,type:f}=this.frontier[e];if(n){for(let P=0;P<n.childCount;P++)c.push(n.child(P));h=h.matchFragment(n);}let d=l.size+t-(s.content.size-s.openEnd);for(;u<l.childCount;){let P=l.child(u),A=h.matchType(P.type);if(!A)break;u++,(u>1||a==0||P.content.size)&&(h=A,c.push(Rv(P.mark(f.allowedMarks(P.marks)),u==1?a:0,u==l.childCount?d:-1)));}let g=u==l.childCount;g||(d=-1),this.placed=Zh(this.placed,e,Z.from(c)),this.frontier[e].match=h,g&&d<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let P=0,A=l;P<d;P++){let v=A.lastChild;this.frontier.push({type:v.type,match:v.contentMatchAt(v.childCount)}),A=v.content;}this.unplaced=g?t==0?ht.empty:new ht(Xh(s.content,t-1,1),t-1,d<0?s.openEnd:t-1):new ht(Xh(s.content,t,u),s.openStart,s.openEnd);}mustMoveInline(){if(!this.$to.parent.isTextblock)return -1;let t=this.frontier[this.depth],e;if(!t.type.isTextblock||!JP(this.$to,this.$to.depth,t.type,t.match,false)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.depth==this.depth)return -1;let{depth:r}=this.$to,n=this.$to.after(r);for(;r>1&&n==this.$to.end(--r);)++n;return n}findCloseLevel(t){t:for(let e=Math.min(this.depth,t.depth);e>=0;e--){let{match:r,type:n}=this.frontier[e],i=e<t.depth&&t.end(e+1)==t.pos+(t.depth-(e+1)),s=JP(t,e,n,r,i);if(s){for(let l=e-1;l>=0;l--){let{match:a,type:u}=this.frontier[l],c=JP(t,l,u,a,true);if(!c||c.childCount)continue t}return {depth:e,fit:s,move:i?t.doc.resolve(t.after(e+1)):t}}}}close(t){let e=this.findCloseLevel(t);if(!e)return null;for(;this.depth>e.depth;)this.closeFrontierNode();e.fit.childCount&&(this.placed=Zh(this.placed,e.depth,e.fit)),t=e.move;for(let r=e.depth+1;r<=t.depth;r++){let n=t.node(r),i=n.type.contentMatch.fillBefore(n.content,true,t.index(r));this.openFrontierNode(n.type,n.attrs,i);}return t}openFrontierNode(t,e=null,r){let n=this.frontier[this.depth];n.match=n.match.matchType(t),this.placed=Zh(this.placed,this.depth,Z.from(t.create(e,r))),this.frontier.push({type:t,match:t.contentMatch});}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(Z.empty,true);e.childCount&&(this.placed=Zh(this.placed,this.frontier.length,e));}};function Xh(o,t,e){return t==0?o.cutByIndex(e,o.childCount):o.replaceChild(0,o.firstChild.copy(Xh(o.firstChild.content,t-1,e)))}function Zh(o,t,e){return t==0?o.append(e):o.replaceChild(o.childCount-1,o.lastChild.copy(Zh(o.lastChild.content,t-1,e)))}function QP(o,t){for(let e=0;e<t;e++)o=o.firstChild.content;return o}function Rv(o,t,e){if(t<=0)return o;let r=o.content;return t>1&&(r=r.replaceChild(0,Rv(r.firstChild,t-1,r.childCount==1?e-1:0))),t>0&&(r=o.type.contentMatch.fillBefore(r).append(r),e<=0&&(r=r.append(o.type.contentMatch.matchFragment(r).fillBefore(Z.empty,true)))),o.copy(r)}function JP(o,t,e,r,n){let i=o.node(t),s=n?o.indexAfter(t):o.index(t);if(s==i.childCount&&!e.compatibleContent(i.type))return null;let l=r.fillBefore(i.content,true,s);return l&&!g1(e,i.content,s)?l:null}function g1(o,t,e){for(let r=e;r<t.childCount;r++)if(!o.allowsMarks(t.child(r).marks))return true;return false}function S1(o){return o.spec.defining||o.spec.definingForContent}function P1(o,t,e,r){if(!r.size)return o.deleteRange(t,e);let n=o.doc.resolve(t),i=o.doc.resolve(e);if(Iv(n,i,r))return o.step(new no(t,e,r));let s=Ov(n,i);s[s.length-1]==0&&s.pop();let l=-(n.depth+1);s.unshift(l);for(let f=n.depth,d=n.pos-1;f>0;f--,d--){let g=n.node(f).type.spec;if(g.defining||g.definingAsContext||g.isolating)break;s.indexOf(f)>-1?l=f:n.before(f)==d&&s.splice(1,0,-f);}let a=s.indexOf(l),u=[],c=r.openStart;for(let f=r.content,d=0;;d++){let g=f.firstChild;if(u.push(g),d==r.openStart)break;f=g.content;}for(let f=c-1;f>=0;f--){let d=u[f],g=S1(d.type);if(g&&!d.sameMarkup(n.node(Math.abs(l)-1)))c=f;else if(g||!d.type.isTextblock)break}for(let f=r.openStart;f>=0;f--){let d=(f+c+1)%(r.openStart+1),g=u[d];if(g)for(let P=0;P<s.length;P++){let A=s[(P+a)%s.length],v=true;A<0&&(v=false,A=-A);let H=n.node(A-1),Q=n.index(A-1);if(H.canReplaceWith(Q,Q,g.type,g.marks))return o.replace(n.before(A),v?i.after(A):e,new ht(Dv(r.content,0,r.openStart,d),d,r.openEnd))}}let h=o.steps.length;for(let f=s.length-1;f>=0&&(o.replace(t,e,r),!(o.steps.length>h));f--){let d=s[f];d<0||(t=n.before(d),e=i.after(d));}}function Dv(o,t,e,r,n){if(t<e){let i=o.firstChild;o=o.replaceChild(0,i.copy(Dv(i.content,t+1,e,r,i)));}if(t>r){let i=n.contentMatchAt(0),s=i.fillBefore(o).append(o);o=s.append(i.matchFragment(s).fillBefore(Z.empty,true));}return o}function A1(o,t,e,r){if(!r.isInline&&t==e&&o.doc.resolve(t).parent.content.size){let n=b1(o.doc,t,r.type);n!=null&&(t=e=n);}o.replaceRange(t,e,new ht(Z.from(r),0,0));}function w1(o,t,e){let r=o.doc.resolve(t),n=o.doc.resolve(e);if(r.parent.isTextblock&&n.parent.isTextblock&&r.start()!=n.start()&&r.parentOffset==0&&n.parentOffset==0){let s=r.sharedDepth(e),l=false;for(let a=r.depth;a>s;a--)r.node(a).type.spec.isolating&&(l=true);for(let a=n.depth;a>s;a--)n.node(a).type.spec.isolating&&(l=true);if(!l){for(let a=r.depth;a>0&&t==r.start(a);a--)t=r.before(a);for(let a=n.depth;a>0&&e==n.start(a);a--)e=n.before(a);r=o.doc.resolve(t),n=o.doc.resolve(e);}}let i=Ov(r,n);for(let s=0;s<i.length;s++){let l=i[s],a=s==i.length-1;if(a&&l==0||r.node(l).type.contentMatch.validEnd)return o.delete(r.start(l),n.end(l));if(l>0&&(a||r.node(l-1).canReplace(r.index(l-1),n.indexAfter(l-1))))return o.delete(r.before(l),n.after(l))}for(let s=1;s<=r.depth&&s<=n.depth;s++)if(t-r.start(s)==r.depth-s&&e>r.end(s)&&n.end(s)-e!=n.depth-s&&r.start(s-1)==n.start(s-1)&&r.node(s-1).canReplace(r.index(s-1),n.index(s-1)))return o.delete(r.before(s),e);o.delete(t,e);}function Ov(o,t){let e=[],r=Math.min(o.depth,t.depth);for(let n=r;n>=0;n--){let i=o.start(n);if(i<o.pos-(o.depth-n)||t.end(n)>t.pos+(t.depth-n)||o.node(n).type.spec.isolating||t.node(n).type.spec.isolating)break;(i==t.start(n)||n==o.depth&&n==t.depth&&o.parent.inlineContent&&t.parent.inlineContent&&n&&t.start(n-1)==i-1)&&e.push(n);}return e}var Sg=class o extends $r{constructor(t,e,r){super(),this.pos=t,this.attr=e,this.value=r;}apply(t){let e=t.nodeAt(this.pos);if(!e)return oo.fail("No node at attribute step's position");let r=Object.create(null);for(let i in e.attrs)r[i]=e.attrs[i];r[this.attr]=this.value;let n=e.type.create(r,null,e.marks);return oo.fromReplace(t,this.pos,this.pos+1,new ht(Z.from(n),0,e.isLeaf?0:1))}getMap(){return Xs.empty}invert(t){return new o(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new o(e.pos,this.attr,this.value)}toJSON(){return {stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,e){if(typeof e.pos!="number"||typeof e.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new o(e.pos,e.attr,e.value)}};$r.jsonID("attr",Sg);var Pg=class o extends $r{constructor(t,e){super(),this.attr=t,this.value=e;}apply(t){let e=Object.create(null);for(let n in t.attrs)e[n]=t.attrs[n];e[this.attr]=this.value;let r=t.type.create(e,t.content,t.marks);return oo.ok(r)}getMap(){return Xs.empty}invert(t){return new o(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return {stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,e){if(typeof e.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new o(e.attr,e.value)}};$r.jsonID("docAttr",Pg);var op=class extends Error{};op=function o(t){let e=Error.call(this,t);return e.__proto__=o.prototype,e};op.prototype=Object.create(Error.prototype);op.prototype.constructor=op;op.prototype.name="TransformError";var ny=class{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new ey;}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let e=this.maybeStep(t);if(e.failed)throw new op(e.failed);return this}maybeStep(t){let e=t.apply(this.doc);return e.failed||this.addStep(t,e.doc),e}get docChanged(){return this.steps.length>0}changedRange(){let t=1e9,e=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let n=this.mapping.maps[r];r&&(t=n.map(t,1),e=n.map(e,-1)),n.forEach((i,s,l,a)=>{t=Math.min(t,l),e=Math.max(e,a);});}return t==1e9?null:{from:t,to:e}}addStep(t,e){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=e;}replace(t,e=t,r=ht.empty){let n=iy(this.doc,t,e,r);return n&&this.step(n),this}replaceWith(t,e,r){return this.replace(t,e,new ht(Z.from(r),0,0))}delete(t,e){return this.replace(t,e,ht.empty)}insert(t,e){return this.replaceWith(t,t,e)}replaceRange(t,e,r){return P1(this,t,e,r),this}replaceRangeWith(t,e,r){return A1(this,t,e,r),this}deleteRange(t,e){return w1(this,t,e),this}lift(t,e){return l1(this,t,e),this}join(t,e=1){return f1(this,t,e),this}wrap(t,e){return c1(this,t,e),this}setBlockType(t,e=t,r,n=null){return p1(this,t,e,r,n),this}setNodeMarkup(t,e,r=null,n){return h1(this,t,e,r,n),this}setNodeAttribute(t,e,r){return this.step(new Sg(t,e,r)),this}setDocAttribute(t,e){return this.step(new Pg(t,e)),this}addNodeMark(t,e){return this.step(new oy(t,e)),this}removeNodeMark(t,e){let r=this.doc.nodeAt(t);if(!r)throw new RangeError("No node at position "+t);if(e instanceof De)e.isInSet(r.marks)&&this.step(new rp(t,e));else {let n=r.marks,i,s=[];for(;i=e.isInSet(n);)s.push(new rp(t,i)),n=i.removeFromSet(n);for(let l=s.length-1;l>=0;l--)this.step(s[l]);}return this}split(t,e=1,r){return y1(this,t,e,r),this}addMark(t,e,r){return n1(this,t,e,r),this}removeMark(t,e,r){return i1(this,t,e,r),this}clearIncompatible(t,e,r){return eA(this,t,e,r),this}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var rA=Object.create(null),Bt=class{constructor(t,e,r){this.$anchor=t,this.$head=e,this.ranges=r||[new wg(t.min(e),t.max(e))];}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let e=0;e<t.length;e++)if(t[e].$from.pos!=t[e].$to.pos)return false;return true}content(){return this.$from.doc.slice(this.from,this.to,true)}replace(t,e=ht.empty){let r=e.content.lastChild,n=null;for(let l=0;l<e.openEnd;l++)n=r,r=r.lastChild;let i=t.steps.length,s=this.ranges;for(let l=0;l<s.length;l++){let{$from:a,$to:u}=s[l],c=t.mapping.slice(i);t.replaceRange(c.map(a.pos),c.map(u.pos),l?ht.empty:e),l==0&&Vv(t,i,(r?r.isInline:n&&n.isTextblock)?-1:1);}}replaceWith(t,e){let r=t.steps.length,n=this.ranges;for(let i=0;i<n.length;i++){let{$from:s,$to:l}=n[i],a=t.mapping.slice(r),u=a.map(s.pos),c=a.map(l.pos);i?t.deleteRange(u,c):(t.replaceRangeWith(u,c,e),Vv(t,r,e.isInline?-1:1));}}static findFrom(t,e,r=false){let n=t.parent.inlineContent?new Pt(t):ip(t.node(0),t.parent,t.pos,t.index(),e,r);if(n)return n;for(let i=t.depth-1;i>=0;i--){let s=e<0?ip(t.node(0),t.node(i),t.before(i+1),t.index(i),e,r):ip(t.node(0),t.node(i),t.after(i+1),t.index(i)+1,e,r);if(s)return s}return null}static near(t,e=1){return this.findFrom(t,e)||this.findFrom(t,-e)||new Oo(t.node(0))}static atStart(t){return ip(t,t,0,0,1)||new Oo(t)}static atEnd(t){return ip(t,t,t.content.size,t.childCount,-1)||new Oo(t)}static fromJSON(t,e){if(!e||!e.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=rA[e.type];if(!r)throw new RangeError(`No selection type ${e.type} defined`);return r.fromJSON(t,e)}static jsonID(t,e){if(t in rA)throw new RangeError("Duplicate use of selection JSON ID "+t);return rA[t]=e,e.prototype.jsonID=t,e}getBookmark(){return Pt.between(this.$anchor,this.$head).getBookmark()}};Bt.prototype.visible=true;var wg=class{constructor(t,e){this.$from=t,this.$to=e;}},Fv=false;function Bv(o){!Fv&&!o.parent.inlineContent&&(Fv=true,console.warn("TextSelection endpoint not pointing into a node with inline content ("+o.parent.type.name+")"));}var Pt=class o extends Bt{constructor(t,e=t){Bv(t),Bv(e),super(t,e);}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,e){let r=t.resolve(e.map(this.head));if(!r.parent.inlineContent)return Bt.near(r);let n=t.resolve(e.map(this.anchor));return new o(n.parent.inlineContent?n:r,r)}replace(t,e=ht.empty){if(super.replace(t,e),e==ht.empty){let r=this.$from.marksAcross(this.$to);r&&t.ensureMarks(r);}}eq(t){return t instanceof o&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new xg(this.anchor,this.head)}toJSON(){return {type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,e){if(typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new o(t.resolve(e.anchor),t.resolve(e.head))}static create(t,e,r=e){let n=t.resolve(e);return new this(n,r==e?n:t.resolve(r))}static between(t,e,r){let n=t.pos-e.pos;if((!r||n)&&(r=n>=0?1:-1),!e.parent.inlineContent){let i=Bt.findFrom(e,r,true)||Bt.findFrom(e,-r,true);if(i)e=i.$head;else return Bt.near(e,r)}return t.parent.inlineContent||(n==0?t=e:(t=(Bt.findFrom(t,-r,true)||Bt.findFrom(t,r,true)).$anchor,t.pos<e.pos!=n<0&&(t=e))),new o(t,e)}};Bt.jsonID("text",Pt);var xg=class o{constructor(t,e){this.anchor=t,this.head=e;}map(t){return new o(t.map(this.anchor),t.map(this.head))}resolve(t){return Pt.between(t.resolve(this.anchor),t.resolve(this.head))}},At=class o extends Bt{constructor(t){let e=t.nodeAfter,r=t.node(0).resolve(t.pos+e.nodeSize);super(t,r),this.node=e;}map(t,e){let{deleted:r,pos:n}=e.mapResult(this.anchor),i=t.resolve(n);return r?Bt.near(i):new o(i)}content(){return new ht(Z.from(this.node),0,0)}eq(t){return t instanceof o&&t.anchor==this.anchor}toJSON(){return {type:"node",anchor:this.anchor}}getBookmark(){return new nA(this.anchor)}static fromJSON(t,e){if(typeof e.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new o(t.resolve(e.anchor))}static create(t,e){return new o(t.resolve(e))}static isSelectable(t){return !t.isText&&t.type.spec.selectable!==false}};At.prototype.visible=false;Bt.jsonID("node",At);var nA=class o{constructor(t){this.anchor=t;}map(t){let{deleted:e,pos:r}=t.mapResult(this.anchor);return e?new xg(r,r):new o(r)}resolve(t){let e=t.resolve(this.anchor),r=e.nodeAfter;return r&&At.isSelectable(r)?new At(e):Bt.near(e)}},Oo=class o extends Bt{constructor(t){super(t.resolve(0),t.resolve(t.content.size));}replace(t,e=ht.empty){if(e==ht.empty){t.delete(0,t.doc.content.size);let r=Bt.atStart(t.doc);r.eq(t.selection)||t.setSelection(r);}else super.replace(t,e);}toJSON(){return {type:"all"}}static fromJSON(t){return new o(t)}map(t){return new o(t)}eq(t){return t instanceof o}getBookmark(){return x1}};Bt.jsonID("all",Oo);var x1={map(){return this},resolve(o){return new Oo(o)}};function ip(o,t,e,r,n,i=false){if(t.inlineContent)return Pt.create(o,e);for(let s=r-(n>0?0:1);n>0?s<t.childCount:s>=0;s+=n){let l=t.child(s);if(l.isAtom){if(!i&&At.isSelectable(l))return At.create(o,e-(n<0?l.nodeSize:0))}else {let a=ip(o,l,e+n,n<0?l.childCount:0,n,i);if(a)return a}e+=l.nodeSize*n;}return null}function Vv(o,t,e){let r=o.steps.length-1;if(r<t)return;let n=o.steps[r];if(!(n instanceof no||n instanceof Cr))return;let i=o.mapping.maps[r],s;i.forEach((l,a,u,c)=>{s==null&&(s=c);}),o.setSelection(Bt.near(o.doc.resolve(s),e));}function Hv(o,t){return !t||!o?o:o.bind(t)}var sp=class{constructor(t,e,r){this.name=t,this.init=Hv(e.init,r),this.apply=Hv(e.apply,r);}};[new sp("doc",{init(o){return o.doc||o.schema.topNodeType.createAndFill()},apply(o){return o.doc}}),new sp("selection",{init(o,t){return o.selection||Bt.atStart(t.doc)},apply(o){return o.selection}}),new sp("storedMarks",{init(o){return o.storedMarks||null},apply(o,t,e,r){return r.selection.$cursor?o.storedMarks:null}}),new sp("scrollToSelection",{init(){return 0},apply(o,t){return o.scrolledIntoView?t+1:t}})];function Gv(o,t,e){for(let r in o){let n=o[r];n instanceof Function?n=n.bind(t):r=="handleDOMEvents"&&(n=Gv(n,t,{})),e[r]=n;}return e}var Rt=class{constructor(t){this.spec=t,this.props={},t.props&&Gv(t.props,this,this.props),this.key=t.key?t.key.key:Uv("plugin");}getState(t){return t[this.key]}},oA=Object.create(null);function Uv(o){return o in oA?o+"$"+ ++oA[o]:(oA[o]=0,o+"$")}var oe=class{constructor(t="key"){this.key=Uv(t);}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}};var zv=(o,t)=>o.selection.empty?false:(t&&t(o.tr.deleteSelection().scrollIntoView()),true);function _v(o,t){let{$cursor:e}=o.selection;return !e||(t?!t.endOfTextblock("backward",o):e.parentOffset>0)?null:e}var sA=(o,t,e)=>{let r=_v(o,e);if(!r)return false;let n=aA(r);if(!n){let s=r.blockRange(),l=s&&tl(s);return l==null?false:(t&&t(o.tr.lift(s,l).scrollIntoView()),true)}let i=n.nodeBefore;if(Zv(o,n,t,-1))return true;if(r.parent.content.size==0&&(lp(i,"end")||At.isSelectable(i)))for(let s=r.depth;;s--){let l=iy(o.doc,r.before(s),r.after(s),ht.empty);if(l&&l.slice.size<l.to-l.from){if(t){let a=o.tr.step(l);a.setSelection(lp(i,"end")?Bt.findFrom(a.doc.resolve(a.mapping.map(n.pos,-1)),-1):At.create(a.doc,n.pos-i.nodeSize)),t(a.scrollIntoView());}return true}if(s==1||r.node(s-1).childCount>1)break}return i.isAtom&&n.depth==r.depth-1?(t&&t(o.tr.delete(n.pos-i.nodeSize,n.pos).scrollIntoView()),true):false},$v=(o,t,e)=>{let r=_v(o,e);if(!r)return false;let n=aA(r);return n?jv(o,n,t):false},Kv=(o,t,e)=>{let r=qv(o,e);if(!r)return false;let n=pA(r);return n?jv(o,n,t):false};function jv(o,t,e){let r=t.nodeBefore,n=r,i=t.pos-1;for(;!n.isTextblock;i--){if(n.type.spec.isolating)return false;let c=n.lastChild;if(!c)return false;n=c;}let s=t.nodeAfter,l=s,a=t.pos+1;for(;!l.isTextblock;a++){if(l.type.spec.isolating)return false;let c=l.firstChild;if(!c)return false;l=c;}let u=iy(o.doc,i,a,ht.empty);if(!u||u.from!=i||u instanceof no&&u.slice.size>=a-i)return false;if(e){let c=o.tr.step(u);c.setSelection(Pt.create(c.doc,i)),e(c.scrollIntoView());}return true}function lp(o,t,e=false){for(let r=o;r;r=t=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return true;if(e&&r.childCount!=1)return false}return false}var lA=(o,t,e)=>{let{$head:r,empty:n}=o.selection,i=r;if(!n)return false;if(r.parent.isTextblock){if(e?!e.endOfTextblock("backward",o):r.parentOffset>0)return false;i=aA(r);}let s=i&&i.nodeBefore;return !s||!At.isSelectable(s)?false:(t&&t(o.tr.setSelection(At.create(o.doc,i.pos-s.nodeSize)).scrollIntoView()),true)};function aA(o){if(!o.parent.type.spec.isolating)for(let t=o.depth-1;t>=0;t--){if(o.index(t)>0)return o.doc.resolve(o.before(t+1));if(o.node(t).type.spec.isolating)break}return null}function qv(o,t){let{$cursor:e}=o.selection;return !e||(t?!t.endOfTextblock("forward",o):e.parentOffset<e.parent.content.size)?null:e}var uA=(o,t,e)=>{let r=qv(o,e);if(!r)return false;let n=pA(r);if(!n)return false;let i=n.nodeAfter;if(Zv(o,n,t,1))return true;if(r.parent.content.size==0&&(lp(i,"start")||At.isSelectable(i))){let s=iy(o.doc,r.before(),r.after(),ht.empty);if(s&&s.slice.size<s.to-s.from){if(t){let l=o.tr.step(s);l.setSelection(lp(i,"start")?Bt.findFrom(l.doc.resolve(l.mapping.map(n.pos)),1):At.create(l.doc,l.mapping.map(n.pos))),t(l.scrollIntoView());}return true}}return i.isAtom&&n.depth==r.depth-1?(t&&t(o.tr.delete(n.pos,n.pos+i.nodeSize).scrollIntoView()),true):false},cA=(o,t,e)=>{let{$head:r,empty:n}=o.selection,i=r;if(!n)return false;if(r.parent.isTextblock){if(e?!e.endOfTextblock("forward",o):r.parentOffset<r.parent.content.size)return false;i=pA(r);}let s=i&&i.nodeAfter;return !s||!At.isSelectable(s)?false:(t&&t(o.tr.setSelection(At.create(o.doc,i.pos)).scrollIntoView()),true)};function pA(o){if(!o.parent.type.spec.isolating)for(let t=o.depth-1;t>=0;t--){let e=o.node(t);if(o.index(t)+1<e.childCount)return o.doc.resolve(o.after(t+1));if(e.type.spec.isolating)break}return null}var Yv=(o,t)=>{let e=o.selection,r=e instanceof At,n;if(r){if(e.node.isTextblock||!_n(o.doc,e.from))return false;n=e.from;}else if(n=Ou(o.doc,e.from,-1),n==null)return false;if(t){let i=o.tr.join(n);r&&i.setSelection(At.create(i.doc,n-o.doc.resolve(n).nodeBefore.nodeSize)),t(i.scrollIntoView());}return true},Qv=(o,t)=>{let e=o.selection,r;if(e instanceof At){if(e.node.isTextblock||!_n(o.doc,e.to))return false;r=e.to;}else if(r=Ou(o.doc,e.to,1),r==null)return false;return t&&t(o.tr.join(r).scrollIntoView()),true},Jv=(o,t)=>{let{$from:e,$to:r}=o.selection,n=e.blockRange(r),i=n&&tl(n);return i==null?false:(t&&t(o.tr.lift(n,i).scrollIntoView()),true)},mA=(o,t)=>{let{$head:e,$anchor:r}=o.selection;return !e.parent.type.spec.code||!e.sameParent(r)?false:(t&&t(o.tr.insertText(`
9
- `).scrollIntoView()),true)};function hA(o){for(let t=0;t<o.edgeCount;t++){let{type:e}=o.edge(t);if(e.isTextblock&&!e.hasRequiredAttrs())return e}return null}var yA=(o,t)=>{let{$head:e,$anchor:r}=o.selection;if(!e.parent.type.spec.code||!e.sameParent(r))return false;let n=e.node(-1),i=e.indexAfter(-1),s=hA(n.contentMatchAt(i));if(!s||!n.canReplaceWith(i,i,s))return false;if(t){let l=e.after(),a=o.tr.replaceWith(l,l,s.createAndFill());a.setSelection(Bt.near(a.doc.resolve(l),1)),t(a.scrollIntoView());}return true},dA=(o,t)=>{let e=o.selection,{$from:r,$to:n}=e;if(e instanceof Oo||r.parent.inlineContent||n.parent.inlineContent)return false;let i=hA(n.parent.contentMatchAt(n.indexAfter()));if(!i||!i.isTextblock)return false;if(t){let s=(!r.parentOffset&&n.index()<n.parent.childCount?r:n).pos,l=o.tr.insert(s,i.createAndFill());l.setSelection(Pt.create(l.doc,s+1)),t(l.scrollIntoView());}return true},fA=(o,t)=>{let{$cursor:e}=o.selection;if(!e||e.parent.content.size)return false;if(e.depth>1&&e.after()!=e.end(-1)){let i=e.before();if(vn(o.doc,i))return t&&t(o.tr.split(i).scrollIntoView()),true}let r=e.blockRange(),n=r&&tl(r);return n==null?false:(t&&t(o.tr.lift(r,n).scrollIntoView()),true)};function E1(o){return (t,e)=>{let{$from:r,$to:n}=t.selection;if(t.selection instanceof At&&t.selection.node.isBlock)return !r.parentOffset||!vn(t.doc,r.pos)?false:(e&&e(t.tr.split(r.pos).scrollIntoView()),true);if(!r.depth)return false;let i=[],s,l,a=false,u=false;for(let d=r.depth;;d--)if(r.node(d).isBlock){a=r.end(d)==r.pos+(r.depth-d),u=r.start(d)==r.pos-(r.depth-d),l=hA(r.node(d-1).contentMatchAt(r.indexAfter(d-1)));i.unshift((a&&l?{type:l}:null)),s=d;break}else {if(d==1)return false;i.unshift(null);}let c=t.tr;(t.selection instanceof Pt||t.selection instanceof Oo)&&c.deleteSelection();let h=c.mapping.map(r.pos),f=vn(c.doc,h,i.length,i);if(f||(i[0]=l?{type:l}:null,f=vn(c.doc,h,i.length,i)),!f)return false;if(c.split(h,i.length,i),!a&&u&&r.node(s).type!=l){let d=c.mapping.map(r.before(s)),g=c.doc.resolve(d);l&&r.node(s-1).canReplaceWith(g.index(),g.index()+1,l)&&c.setNodeMarkup(c.mapping.map(r.before(s)),l);}return e&&e(c.scrollIntoView()),true}}var v1=E1();var Xv=(o,t)=>{let{$from:e,to:r}=o.selection,n,i=e.sharedDepth(r);return i==0?false:(n=e.before(i),t&&t(o.tr.setSelection(At.create(o.doc,n))),true)};function C1(o,t,e){let r=t.nodeBefore,n=t.nodeAfter,i=t.index();return !r||!n||!r.type.compatibleContent(n.type)?false:!r.content.size&&t.parent.canReplace(i-1,i)?(e&&e(o.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),true):!t.parent.canReplace(i,i+1)||!(n.isTextblock||_n(o.doc,t.pos))?false:(e&&e(o.tr.join(t.pos).scrollIntoView()),true)}function Zv(o,t,e,r){let n=t.nodeBefore,i=t.nodeAfter,s,l,a=n.type.spec.isolating||i.type.spec.isolating;if(!a&&C1(o,t,e))return true;let u=!a&&t.parent.canReplace(t.index(),t.index()+1);if(u&&(s=(l=n.contentMatchAt(n.childCount)).findWrapping(i.type))&&l.matchType(s[0]||i.type).validEnd){if(e){let d=t.pos+i.nodeSize,g=Z.empty;for(let v=s.length-1;v>=0;v--)g=Z.from(s[v].create(null,g));g=Z.from(n.copy(g));let P=o.tr.step(new Cr(t.pos-1,d,t.pos,d,new ht(g,1,0),s.length,true)),A=P.doc.resolve(d+2*s.length);A.nodeAfter&&A.nodeAfter.type==n.type&&_n(P.doc,A.pos)&&P.join(A.pos),e(P.scrollIntoView());}return true}let c=i.type.spec.isolating||r>0&&a?null:Bt.findFrom(t,1),h=c&&c.$from.blockRange(c.$to),f=h&&tl(h);if(f!=null&&f>=t.depth)return e&&e(o.tr.lift(h,f).scrollIntoView()),true;if(u&&lp(i,"start",true)&&lp(n,"end")){let d=n,g=[];for(;g.push(d),!d.isTextblock;)d=d.lastChild;let P=i,A=1;for(;!P.isTextblock;P=P.firstChild)A++;if(d.canReplace(d.childCount,d.childCount,P.content)){if(e){let v=Z.empty;for(let Q=g.length-1;Q>=0;Q--)v=Z.from(g[Q].copy(v));let H=o.tr.step(new Cr(t.pos-g.length,t.pos+i.nodeSize,t.pos+A,t.pos+i.nodeSize-A,new ht(v,g.length,0),0,true));e(H.scrollIntoView());}return true}}return false}function tT(o){return function(t,e){let r=t.selection,n=o<0?r.$from:r.$to,i=n.depth;for(;n.node(i).isInline;){if(!i)return false;i--;}return n.node(i).isTextblock?(e&&e(t.tr.setSelection(Pt.create(t.doc,o<0?n.start(i):n.end(i)))),true):false}}var bA=tT(-1),gA=tT(1);function eT(o,t=null){return function(e,r){let{$from:n,$to:i}=e.selection,s=n.blockRange(i),l=s&&np(s,o,t);return l?(r&&r(e.tr.wrap(s,l).scrollIntoView()),true):false}}function SA(o,t=null){return function(e,r){let n=false;for(let i=0;i<e.selection.ranges.length&&!n;i++){let{$from:{pos:s},$to:{pos:l}}=e.selection.ranges[i];e.doc.nodesBetween(s,l,(a,u)=>{if(n)return false;if(!(!a.isTextblock||a.hasMarkup(o,t)))if(a.type==o)n=true;else {let c=e.doc.resolve(u),h=c.index();n=c.parent.canReplaceWith(h,h+1,o);}});}if(!n)return false;if(r){let i=e.tr;for(let s=0;s<e.selection.ranges.length;s++){let{$from:{pos:l},$to:{pos:a}}=e.selection.ranges[s];i.setBlockType(l,a,o,t);}r(i.scrollIntoView());}return true}}function PA(...o){return function(t,e,r){for(let n=0;n<o.length;n++)if(o[n](t,e,r))return true;return false}}PA(zv,sA,lA);PA(zv,uA,cA);({Enter:PA(mA,dA,fA,v1)});typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform?os.platform()=="darwin":false;chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();function rT(o,t=null){return function(e,r){let{$from:n,$to:i}=e.selection,s=n.blockRange(i);if(!s)return false;let l=r?e.tr:null;return N1(l,s,o,t)?(r&&r(l.scrollIntoView()),true):false}}function N1(o,t,e,r=null){let n=false,i=t,s=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(e)&&t.startIndex==0){if(t.$from.index(t.depth-1)==0)return false;let a=s.resolve(t.start-2);i=new Ru(a,a,t.depth),t.endIndex<t.parent.childCount&&(t=new Ru(t.$from,s.resolve(t.$to.end(t.depth)),t.depth)),n=true;}let l=np(i,e,r,t);return l?(o&&L1(o,t,l,n,e),true):false}function L1(o,t,e,r,n){let i=Z.empty;for(let c=e.length-1;c>=0;c--)i=Z.from(e[c].type.create(e[c].attrs,i));o.step(new Cr(t.start-(r?2:0),t.end,t.start,t.end,new ht(i,0,0),e.length,true));let s=0;for(let c=0;c<e.length;c++)e[c].type==n&&(s=c+1);let l=e.length-s,a=t.start+e.length-(r?2:0),u=t.parent;for(let c=t.startIndex,h=t.endIndex,f=true;c<h;c++,f=false)!f&&vn(o.doc,a,l)&&(o.split(a,l),a+=2*l),a+=u.child(c).nodeSize;return o}function oT(o){return function(t,e){let{$from:r,$to:n}=t.selection,i=r.blockRange(n,s=>s.childCount>0&&s.firstChild.type==o);return i?e?r.node(i.depth-1).type==o?M1(t,e,o,i):I1(t,e,i):true:false}}function M1(o,t,e,r){let n=o.tr,i=r.end,s=r.$to.end(r.depth);i<s&&(n.step(new Cr(i-1,s,i,s,new ht(Z.from(e.create(null,r.parent.copy())),1,0),1,true)),r=new Ru(n.doc.resolve(r.$from.pos),n.doc.resolve(s),r.depth));let l=tl(r);if(l==null)return false;n.lift(r,l);let a=n.doc.resolve(n.mapping.map(i,-1)-1);return _n(n.doc,a.pos)&&a.nodeBefore.type==a.nodeAfter.type&&n.join(a.pos),t(n.scrollIntoView()),true}function I1(o,t,e){let r=o.tr,n=e.parent;for(let d=e.end,g=e.endIndex-1,P=e.startIndex;g>P;g--)d-=n.child(g).nodeSize,r.delete(d-1,d+1);let i=r.doc.resolve(e.start),s=i.nodeAfter;if(r.mapping.map(e.end)!=e.start+i.nodeAfter.nodeSize)return false;let l=e.startIndex==0,a=e.endIndex==n.childCount,u=i.node(-1),c=i.index(-1);if(!u.canReplace(c+(l?0:1),c+1,s.content.append(a?Z.empty:Z.from(n))))return false;let h=i.pos,f=h+s.nodeSize;return r.step(new Cr(h-(l?1:0),f+(a?1:0),h+1,f-1,new ht((l?Z.empty:Z.from(n.copy(Z.empty))).append(a?Z.empty:Z.from(n.copy(Z.empty))),l?0:1,a?0:1),l?0:1)),t(r.scrollIntoView()),true}function nT(o){return function(t,e){let{$from:r,$to:n}=t.selection,i=r.blockRange(n,u=>u.childCount>0&&u.firstChild.type==o);if(!i)return false;let s=i.startIndex;if(s==0)return false;let l=i.parent,a=l.child(s-1);if(a.type!=o)return false;if(e){let u=a.lastChild&&a.lastChild.type==l.type,c=Z.from(u?o.create():null),h=new ht(Z.from(o.create(null,Z.from(l.type.create(null,c)))),u?3:1,0),f=i.start,d=i.end;e(t.tr.step(new Cr(f-(u?3:1),d,f,d,h,1,true)).scrollIntoView());}return true}}chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var io=function(o){for(var t=0;;t++)if(o=o.previousSibling,!o)return t},zu=function(o,t,e,r){return e&&(iT(o,t,e,r,-1)||iT(o,t,e,r,1))},D1=/^(img|br|input|textarea|hr)$/i;function iT(o,t,e,r,n){for(var i;;){if(o==e&&t==r)return true;if(t==(n<0?0:Kn(o))){let s=o.parentNode;if(!s||s.nodeType!=1||my(o)||D1.test(o.nodeName)||o.contentEditable=="false")return false;t=io(o)+(n<0?0:1),o=s;}else if(o.nodeType==1){let s=o.childNodes[t+(n<0?-1:0)];if(s.nodeType==1&&s.contentEditable=="false")if(!((i=s.pmViewDesc)===null||i===void 0)&&i.ignoreForSelection)t+=n;else return false;else o=s,t=n<0?Kn(o):0;}else return false}}function Kn(o){return o.nodeType==3?o.nodeValue.length:o.childNodes.length}function B1(o,t,e){for(let r=t==0,n=t==Kn(o);r||n;){if(o==e)return true;let i=io(o);if(o=o.parentNode,!o)return false;r=r&&i==0,n=n&&i==Kn(o);}}function my(o){let t;for(let e=o;e&&!(t=e.pmViewDesc);e=e.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==o||t.contentDOM==o)}var Fg=function(o){return o.focusNode&&zu(o.focusNode,o.focusOffset,o.anchorNode,o.anchorOffset)};function Fu(o,t){let e=document.createEvent("Event");return e.initEvent("keydown",true,true),e.keyCode=o,e.key=e.code=t,e}var Yi=typeof navigator<"u"?navigator:null,sT=typeof document<"u"?document:null,fa=Yi&&Yi.userAgent||"",CA=/Edge\/(\d+)/.exec(fa),OT=/MSIE \d/.exec(fa),kA=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(fa),mn=!!(OT||kA||CA),ya=OT?document.documentMode:kA?+kA[1]:CA?+CA[1]:0,jn=!mn&&/gecko\/(\d+)/i.test(fa);jn&&+(/Firefox\/(\d+)/.exec(fa)||[0,0])[1];var NA=!mn&&/Chrome\/(\d+)/.exec(fa),Kr=!!NA,FT=NA?+NA[1]:0,Eo=!mn&&!!Yi&&/Apple Computer/.test(Yi.vendor),mp=Eo&&(/Mobile\/\w+/.test(fa)||!!Yi&&Yi.maxTouchPoints>2),$n=mp||(Yi?/Mac/.test(Yi.platform):false),BT=Yi?/Win/.test(Yi.platform):false,ol=/Android \d/.test(fa),hy=!!sT&&"webkitFontSmoothing"in sT.documentElement.style,G1=hy?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function jA(o,t=null){let e=o.domSelectionRange(),r=o.state.doc;if(!e.focusNode)return null;let n=o.docView.nearestDesc(e.focusNode),i=n&&n.size==0,s=o.docView.posFromDOM(e.focusNode,e.focusOffset,1);if(s<0)return null;let l=r.resolve(s),a,u;if(Fg(e)){for(a=s;n&&!n.node;)n=n.parent;let h=n.node;if(n&&h.isAtom&&At.isSelectable(h)&&n.parent&&!(h.isInline&&B1(e.focusNode,e.focusOffset,n.dom))){let f=n.posBefore;u=new At(s==f?l:r.resolve(f));}}else {if(e instanceof o.dom.ownerDocument.defaultView.Selection&&e.rangeCount>1){let h=s,f=s;for(let d=0;d<e.rangeCount;d++){let g=e.getRangeAt(d);h=Math.min(h,o.docView.posFromDOM(g.startContainer,g.startOffset,1)),f=Math.max(f,o.docView.posFromDOM(g.endContainer,g.endOffset,-1));}if(h<0)return null;[a,s]=f==o.state.selection.anchor?[f,h]:[h,f],l=r.resolve(s);}else a=o.docView.posFromDOM(e.anchorNode,e.anchorOffset,1);if(a<0)return null}let c=r.resolve(a);if(!u){let h=t=="pointer"||o.state.selection.head<l.pos&&!i?1:-1;u=qA(o,c,l,h);}return u}function jT(o){return o.editable?o.hasFocus():YT(o)&&document.activeElement&&document.activeElement.contains(o.dom)}function il(o,t=false){let e=o.state.selection;if(qT(o,e),!jT(o))return;let r=o.input.mouseDown;if(!t&&Kr&&r){let n=o.domSelectionRange(),i=o.domObserver.currentSelection;if(n.anchorNode&&i.anchorNode&&zu(n.anchorNode,n.anchorOffset,i.anchorNode,i.anchorOffset)&&r.delaySelUpdate()){o.domObserver.setCurSelection();return}}if(o.domObserver.disconnectSelection(),o.cursorWrapper)uL(o);else {let{anchor:n,head:i}=e,s,l;yT&&!(e instanceof Pt)&&(e.$from.parent.inlineContent||(s=dT(o,e.from)),!e.empty&&!e.$from.parent.inlineContent&&(l=dT(o,e.to))),o.docView.setSelection(n,i,o,t),yT&&(s&&fT(s),l&&fT(l)),e.visible?o.dom.classList.remove("ProseMirror-hideselection"):(o.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&aL(o));}o.domObserver.setCurSelection(),o.domObserver.connectSelection();}var yT=Eo||Kr&&FT<63;function dT(o,t){let{node:e,offset:r}=o.docView.domFromPos(t,0),n=r<e.childNodes.length?e.childNodes[r]:null,i=r?e.childNodes[r-1]:null;if(Eo&&n&&n.contentEditable=="false")return wA(n);if((!n||n.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(n)return wA(n);if(i)return wA(i)}}function wA(o){return o.contentEditable="true",Eo&&o.draggable&&(o.draggable=false,o.wasDraggable=true),o}function fT(o){o.contentEditable="false",o.wasDraggable&&(o.draggable=true,o.wasDraggable=null);}function aL(o){let t=o.dom.ownerDocument;t.removeEventListener("selectionchange",o.input.hideSelectionGuard);let e=o.domSelectionRange(),r=e.anchorNode,n=e.anchorOffset;t.addEventListener("selectionchange",o.input.hideSelectionGuard=()=>{(e.anchorNode!=r||e.anchorOffset!=n)&&(t.removeEventListener("selectionchange",o.input.hideSelectionGuard),setTimeout(()=>{(!jT(o)||o.state.selection.visible)&&o.dom.classList.remove("ProseMirror-hideselection");},20));});}function uL(o){let t=o.domSelection();if(!t)return;let e=o.cursorWrapper.dom,r=e.nodeName=="IMG";r?t.collapse(e.parentNode,io(e)+1):t.collapse(e,0),!r&&!o.state.selection.visible&&mn&&ya<=11&&(e.disabled=true,e.disabled=false);}function qT(o,t){if(t instanceof At){let e=o.docView.descAt(t.from);e!=o.lastSelectedViewDesc&&(bT(o),e&&e.selectNode(),o.lastSelectedViewDesc=e);}else bT(o);}function bT(o){o.lastSelectedViewDesc&&(o.lastSelectedViewDesc.parent&&o.lastSelectedViewDesc.deselectNode(),o.lastSelectedViewDesc=void 0);}function qA(o,t,e,r){return o.someProp("createSelectionBetween",n=>n(o,t,e))||Pt.between(t,e,r)}function YT(o){let t=o.domSelectionRange();if(!t.anchorNode)return false;try{return o.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(o.editable||o.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return false}}function FA(o,t){let{$anchor:e,$head:r}=o.selection,n=t>0?e.max(r):e.min(r),i=n.parent.inlineContent?n.depth?o.doc.resolve(t>0?n.after():n.before()):null:n;return i&&Bt.findFrom(i,t)}function ha(o,t){return o.dispatch(o.state.tr.setSelection(t).scrollIntoView()),true}function ST(o,t,e){let r=o.state.selection;if(r instanceof Pt)if(e.indexOf("s")>-1){let{$head:n}=r,i=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter;if(!i||i.isText||!i.isLeaf)return false;let s=o.state.doc.resolve(n.pos+i.nodeSize*(t<0?-1:1));return ha(o,new Pt(r.$anchor,s))}else if(r.empty){if(o.endOfTextblock(t>0?"forward":"backward")){let n=FA(o.state,t);return n&&n instanceof At?ha(o,n):false}else if(!($n&&e.indexOf("m")>-1)){let n=r.$head,i=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter,s;if(!i||i.isText)return false;let l=t<0?n.pos-i.nodeSize:n.pos;return i.isAtom||(s=o.docView.descAt(l))&&!s.contentDOM?At.isSelectable(i)?ha(o,new At(t<0?o.state.doc.resolve(n.pos-i.nodeSize):n)):hy?ha(o,new Pt(o.state.doc.resolve(t<0?l:l+i.nodeSize))):false:false}}else return false;else {if(r instanceof At&&r.node.isInline)return ha(o,new Pt(t>0?r.$to:r.$from));{let n=FA(o.state,t);return n?ha(o,n):false}}}function kg(o){return o.nodeType==3?o.nodeValue.length:o.childNodes.length}function ay(o,t){let e=o.pmViewDesc;return e&&e.size==0&&(t<0||o.nextSibling||o.nodeName!="BR")}function up(o,t){return t<0?pL(o):mL(o)}function pL(o){let t=o.domSelectionRange(),e=t.focusNode,r=t.focusOffset;if(!e)return;let n,i,s=false;for(jn&&e.nodeType==1&&r<kg(e)&&ay(e.childNodes[r],-1)&&(s=true);;)if(r>0){if(e.nodeType!=1)break;{let l=e.childNodes[r-1];if(ay(l,-1))n=e,i=--r;else if(l.nodeType==3)e=l,r=e.nodeValue.length;else break}}else {if(QT(e))break;{let l=e.previousSibling;for(;l&&ay(l,-1);)n=e.parentNode,i=io(l),l=l.previousSibling;if(l)e=l,r=kg(e);else {if(e=e.parentNode,e==o.dom)break;r=0;}}}s?BA(o,e,r):n&&BA(o,n,i);}function mL(o){let t=o.domSelectionRange(),e=t.focusNode,r=t.focusOffset;if(!e)return;let n=kg(e),i,s;for(;;)if(r<n){if(e.nodeType!=1)break;let l=e.childNodes[r];if(ay(l,1))i=e,s=++r;else break}else {if(QT(e))break;{let l=e.nextSibling;for(;l&&ay(l,1);)i=l.parentNode,s=io(l)+1,l=l.nextSibling;if(l)e=l,r=0,n=kg(e);else {if(e=e.parentNode,e==o.dom)break;r=n=0;}}}i&&BA(o,i,s);}function QT(o){let t=o.pmViewDesc;return t&&t.node&&t.node.isBlock}function hL(o,t){for(;o&&t==o.childNodes.length&&!my(o);)t=io(o)+1,o=o.parentNode;for(;o&&t<o.childNodes.length;){let e=o.childNodes[t];if(e.nodeType==3)return e;if(e.nodeType==1&&e.contentEditable=="false")break;o=e,t=0;}}function yL(o,t){for(;o&&!t&&!my(o);)t=io(o),o=o.parentNode;for(;o&&t;){let e=o.childNodes[t-1];if(e.nodeType==3)return e;if(e.nodeType==1&&e.contentEditable=="false")break;o=e,t=o.childNodes.length;}}function BA(o,t,e){if(t.nodeType!=3){let i,s;(s=hL(t,e))?(t=s,e=0):(i=yL(t,e))&&(t=i,e=i.nodeValue.length);}let r=o.domSelection();if(!r)return;if(Fg(r)){let i=document.createRange();i.setEnd(t,e),i.setStart(t,e),r.removeAllRanges(),r.addRange(i);}else r.extend&&r.extend(t,e);o.domObserver.setCurSelection();let{state:n}=o;setTimeout(()=>{o.state==n&&il(o);},50);}function PT(o,t){let e=o.state.doc.resolve(t);if(!(Kr||BT)&&e.parent.inlineContent){let n=o.coordsAtPos(t);if(t>e.start()){let i=o.coordsAtPos(t-1),s=(i.top+i.bottom)/2;if(s>n.top&&s<n.bottom&&Math.abs(i.left-n.left)>1)return i.left<n.left?"ltr":"rtl"}if(t<e.end()){let i=o.coordsAtPos(t+1),s=(i.top+i.bottom)/2;if(s>n.top&&s<n.bottom&&Math.abs(i.left-n.left)>1)return i.left>n.left?"ltr":"rtl"}}return getComputedStyle(o.dom).direction=="rtl"?"rtl":"ltr"}function AT(o,t,e){let r=o.state.selection;if(r instanceof Pt&&!r.empty||e.indexOf("s")>-1||$n&&e.indexOf("m")>-1)return false;let{$from:n,$to:i}=r;if(!n.parent.inlineContent||o.endOfTextblock(t<0?"up":"down")){let s=FA(o.state,t);if(s&&s instanceof At)return ha(o,s)}if(!n.parent.inlineContent){let s=t<0?n:i,l=r instanceof Oo?Bt.near(s,t):Bt.findFrom(s,t);return l?ha(o,l):false}return false}function wT(o,t){if(!(o.state.selection instanceof Pt))return true;let{$head:e,$anchor:r,empty:n}=o.state.selection;if(!e.sameParent(r))return true;if(!n)return false;if(o.endOfTextblock(t>0?"forward":"backward"))return true;let i=!e.textOffset&&(t<0?e.nodeBefore:e.nodeAfter);if(i&&!i.isText){let s=o.state.tr;return t<0?s.delete(e.pos-i.nodeSize,e.pos):s.delete(e.pos,e.pos+i.nodeSize),o.dispatch(s),true}return false}function xT(o,t,e){o.domObserver.stop(),t.contentEditable=e,o.domObserver.start();}function dL(o){if(!Eo||o.state.selection.$head.parentOffset>0)return false;let{focusNode:t,focusOffset:e}=o.domSelectionRange();if(t&&t.nodeType==1&&e==0&&t.firstChild&&t.firstChild.contentEditable=="false"){let r=t.firstChild;xT(o,r,"true"),setTimeout(()=>xT(o,r,"false"),20);}return false}function fL(o){let t="";return o.ctrlKey&&(t+="c"),o.metaKey&&(t+="m"),o.altKey&&(t+="a"),o.shiftKey&&(t+="s"),t}function bL(o,t){let e=t.keyCode,r=fL(t);if(e==8||$n&&e==72&&r=="c")return wT(o,-1)||up(o,-1);if(e==46&&!t.shiftKey||$n&&e==68&&r=="c")return wT(o,1)||up(o,1);if(e==13||e==27)return true;if(e==37||$n&&e==66&&r=="c"){let n=e==37?PT(o,o.state.selection.from)=="ltr"?-1:1:-1;return ST(o,n,r)||up(o,n)}else if(e==39||$n&&e==70&&r=="c"){let n=e==39?PT(o,o.state.selection.from)=="ltr"?1:-1:1;return ST(o,n,r)||up(o,n)}else {if(e==38||$n&&e==80&&r=="c")return AT(o,-1,r)||up(o,-1);if(e==40||$n&&e==78&&r=="c")return dL(o)||AT(o,1,r)||up(o,1);if(r==($n?"m":"c")&&(e==66||e==73||e==89||e==90))return true}return false}function YA(o,t){o.someProp("transformCopied",d=>{t=d(t,o);});let e=[],{content:r,openStart:n,openEnd:i}=t;for(;n>1&&i>1&&r.childCount==1&&r.firstChild.childCount==1;){n--,i--;let d=r.firstChild;e.push(d.type.name,d.attrs!=d.type.defaultAttrs?d.attrs:null),r=d.content;}let s=o.someProp("clipboardSerializer")||zn.fromSchema(o.state.schema),l=rC(),a=l.createElement("div");a.appendChild(s.serializeFragment(r,{document:l}));let u=a.firstChild,c,h=0;for(;u&&u.nodeType==1&&(c=eC[u.nodeName.toLowerCase()]);){for(let d=c.length-1;d>=0;d--){let g=l.createElement(c[d]);for(;a.firstChild;)g.appendChild(a.firstChild);a.appendChild(g),h++;}u=a.firstChild;}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${n} ${i}${h?` -${h}`:""} ${JSON.stringify(e)}`);let f=o.someProp("clipboardTextSerializer",d=>d(t,o))||t.content.textBetween(0,t.content.size,`
10
-
11
- `);return {dom:a,text:f,slice:t}}function JT(o,t,e,r,n){let i=n.parent.type.spec.code,s,l;if(!e&&!t)return null;let a=!!t&&(r||i||!e);if(a){if(o.someProp("transformPastedText",f=>{t=f(t,i||r,o);}),i)return l=new ht(Z.from(o.state.schema.text(t.replace(/\r\n?/g,`
12
- `))),0,0),o.someProp("transformPasted",f=>{l=f(l,o,true);}),l;let h=o.someProp("clipboardTextParser",f=>f(t,n,r,o));if(h)l=h;else {let f=n.marks(),{schema:d}=o.state,g=zn.fromSchema(d);s=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(P=>{let A=s.appendChild(document.createElement("p"));P&&A.appendChild(g.serializeNode(d.text(P,f)));});}}else o.someProp("transformPastedHTML",h=>{e=h(e,o);}),s=AL(e),hy&&wL(s);let u=s&&s.querySelector("[data-pm-slice]"),c=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let h=+c[3];h>0;h--){let f=s.firstChild;for(;f&&f.nodeType!=1;)f=f.nextSibling;if(!f)break;s=f;}if(l||(l=(o.someProp("clipboardParser")||o.someProp("domParser")||Ai.fromSchema(o.state.schema)).parseSlice(s,{preserveWhitespace:!!(a||c),context:n,ruleFromNode(f){return f.nodeName=="BR"&&!f.nextSibling&&f.parentNode&&!gL.test(f.parentNode.nodeName)?{ignore:true}:null}})),c)l=xL(ET(l,+c[1],+c[2]),c[4]);else if(l=ht.maxOpen(SL(l.content,n),true),l.openStart||l.openEnd){let h=0,f=0;for(let d=l.content.firstChild;h<l.openStart&&!d.type.spec.isolating;h++,d=d.firstChild);for(let d=l.content.lastChild;f<l.openEnd&&!d.type.spec.isolating;f++,d=d.lastChild);l=ET(l,h,f);}return o.someProp("transformPasted",h=>{l=h(l,o,a);}),l}var gL=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function SL(o,t){if(o.childCount<2)return o;for(let e=t.depth;e>=0;e--){let n=t.node(e).contentMatchAt(t.index(e)),i,s=[];if(o.forEach(l=>{if(!s)return;let a=n.findWrapping(l.type),u;if(!a)return s=null;if(u=s.length&&i.length&&ZT(a,i,l,s[s.length-1],0))s[s.length-1]=u;else {s.length&&(s[s.length-1]=tC(s[s.length-1],i.length));let c=XT(l,a);s.push(c),n=n.matchType(c.type),i=a;}}),s)return Z.from(s)}return o}function XT(o,t,e=0){for(let r=t.length-1;r>=e;r--)o=t[r].create(null,Z.from(o));return o}function ZT(o,t,e,r,n){if(n<o.length&&n<t.length&&o[n]==t[n]){let i=ZT(o,t,e,r.lastChild,n+1);if(i)return r.copy(r.content.replaceChild(r.childCount-1,i));if(r.contentMatchAt(r.childCount).matchType(n==o.length-1?e.type:o[n+1]))return r.copy(r.content.append(Z.from(XT(e,o,n+1))))}}function tC(o,t){if(t==0)return o;let e=o.content.replaceChild(o.childCount-1,tC(o.lastChild,t-1)),r=o.contentMatchAt(o.childCount).fillBefore(Z.empty,true);return o.copy(e.append(r))}function VA(o,t,e,r,n,i){let s=t<0?o.firstChild:o.lastChild,l=s.content;return o.childCount>1&&(i=0),n<r-1&&(l=VA(l,t,e,r,n+1,i)),n>=e&&(l=t<0?s.contentMatchAt(0).fillBefore(l,i<=n).append(l):l.append(s.contentMatchAt(s.childCount).fillBefore(Z.empty,true))),o.replaceChild(t<0?0:o.childCount-1,s.copy(l))}function ET(o,t,e){return t<o.openStart&&(o=new ht(VA(o.content,-1,t,o.openStart,0,o.openEnd),t,o.openEnd)),e<o.openEnd&&(o=new ht(VA(o.content,1,e,o.openEnd,0,0),o.openStart,e)),o}var eC={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};function rC(){return document.implementation.createHTMLDocument("title")}var xA=null;function PL(o){let t=window.trustedTypes;return t?(xA||(xA=t.defaultPolicy||t.createPolicy("ProseMirrorClipboard",{createHTML:e=>e})),xA.createHTML(o)):o}function AL(o){let t=/^(\s*<meta [^>]*>)*/.exec(o);t&&(o=o.slice(t[0].length));let e=rC(),r=e.body,n=/<([a-z][^>\s]+)/i.exec(o),i;if((i=n&&eC[n[1].toLowerCase()])&&(o=i.map(s=>"<"+s+">").join("")+o+i.map(s=>"</"+s+">").reverse().join("")),r.innerHTML=PL(o),i)for(let s=0;s<i.length;s++)r=r.querySelector(i[s])||r;for(let s=0;s<e.styleSheets.length;s++){let l=e.styleSheets[s];for(let a=0;a<l.rules.length;a++){let u=l.rules[a];if(u instanceof CSSStyleRule){let c=r.querySelectorAll(u.selectorText);for(let h=0;h<c.length;h++)c[h].style.cssText+=u.style.cssText;}}}return r}function wL(o){let t=o.querySelectorAll(Kr?"span:not([class]):not([style])":"span.Apple-converted-space");for(let e=0;e<t.length;e++){let r=t[e];r.childNodes.length==1&&r.textContent=="\xA0"&&r.parentNode&&r.parentNode.replaceChild(o.ownerDocument.createTextNode(" "),r);}}function xL(o,t){if(!o.size)return o;let e=o.content.firstChild.type.schema,r;try{r=JSON.parse(t);}catch{return o}let{content:n,openStart:i,openEnd:s}=o;for(let l=r.length-2;l>=0;l-=2){let a=e.nodes[r[l]];if(!a||a.hasRequiredAttrs())break;n=Z.from(a.create(r[l+1],n)),i++,s++;}return new ht(n,i,s)}var Fo={},Bo={};function nl(o,t){o.input.lastSelectionOrigin=t,o.input.lastSelectionTime=Date.now();}Bo.keydown=(o,t)=>{let e=t;if(o.input.shiftKey=e.keyCode==16||e.shiftKey,!iC(o)&&(o.input.lastKeyCode=e.keyCode,o.input.lastKeyCodeTime=Date.now(),!(ol&&Kr&&e.keyCode==13)))if(e.keyCode!=229&&o.domObserver.forceFlush(),mp&&e.keyCode==13&&!e.ctrlKey&&!e.altKey&&!e.metaKey){let r=Date.now();o.input.lastIOSEnter=r,o.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{o.input.lastIOSEnter==r&&(o.someProp("handleKeyDown",n=>n(o,Fu(13,"Enter"))),o.input.lastIOSEnter=0);},200);}else o.someProp("handleKeyDown",r=>r(o,e))||bL(o,e)?e.preventDefault():nl(o,"key");};Bo.keyup=(o,t)=>{t.keyCode==16&&(o.input.shiftKey=false);};Bo.keypress=(o,t)=>{let e=t;if(iC(o)||!e.charCode||e.ctrlKey&&!e.altKey||$n&&e.metaKey)return;if(o.someProp("handleKeyPress",n=>n(o,e))){e.preventDefault();return}let r=o.state.selection;if(!(r instanceof Pt)||!r.$from.sameParent(r.$to)){let n=String.fromCharCode(e.charCode),i=()=>o.state.tr.insertText(n).scrollIntoView();!/[\r\n]/.test(n)&&!o.someProp("handleTextInput",s=>s(o,r.$from.pos,r.$to.pos,n,i))&&o.dispatch(i()),e.preventDefault();}};function yy(o){return {left:o.clientX,top:o.clientY}}function NL(o,t){let e=t.x-o.clientX,r=t.y-o.clientY;return e*e+r*r<100}function JA(o,t,e,r,n){if(r==-1)return false;let i=o.state.doc.resolve(r);for(let s=i.depth+1;s>0;s--)if(o.someProp(t,l=>s>i.depth?l(o,e,i.nodeAfter,i.before(s),n,true):l(o,e,i.node(s),i.before(s),n,false)))return true;return false}function dy(o,t,e){if(o.focused||o.focus(),o.state.selection.eq(t))return;let r=o.state.tr.setSelection(t);r.setMeta("pointer",true),o.dispatch(r);}function LL(o,t){if(t==-1)return false;let e=o.state.doc.resolve(t),r=e.nodeAfter;return r&&r.isAtom&&At.isSelectable(r)?(dy(o,new At(e)),true):false}function ML(o,t){if(t==-1)return false;let e=o.state.selection,r,n;e instanceof At&&(r=e.node);let i=o.state.doc.resolve(t);for(let s=i.depth+1;s>0;s--){let l=s>i.depth?i.nodeAfter:i.node(s);if(At.isSelectable(l)){r&&e.$from.depth>0&&s>=e.$from.depth&&i.before(e.$from.depth+1)==e.$from.pos?n=i.before(e.$from.depth):n=i.before(s);break}}return n!=null?(dy(o,At.create(o.state.doc,n)),true):false}function IL(o,t,e,r,n){return JA(o,"handleClickOn",t,e,r)||o.someProp("handleClick",i=>i(o,t,r))||(n?ML(o,e):LL(o,e))}function RL(o,t,e,r){return JA(o,"handleDoubleClickOn",t,e,r)||o.someProp("handleDoubleClick",n=>n(o,t,r))}function DL(o,t,e,r){return JA(o,"handleTripleClickOn",t,e,r)||o.someProp("handleTripleClick",n=>n(o,t,r))||OL(o,e,r)}function OL(o,t,e){if(e.button!=0)return false;let r=oC(o,t,true),n=o.state.doc;return r?(dy(o,r),r instanceof Pt&&n.eq(o.state.doc)&&(o.input.mouseDown=new WA(o,r)),true):false}function oC(o,t,e){let r=o.state.doc;if(t==-1)return r.inlineContent?Pt.create(r,0,r.content.size):null;let n=r.resolve(t);for(let i=n.depth+1;i>0;i--){let s=i>n.depth?n.nodeAfter:n.node(i),l=n.before(i);if(s.inlineContent)return Pt.create(r,l+1,l+1+s.content.size);if(e&&At.isSelectable(s))return At.create(r,l)}return null}function XA(o){return Lg(o)}var nC=$n?"metaKey":"ctrlKey";Fo.mousedown=(o,t)=>{let e=t;o.input.shiftKey=e.shiftKey;let r=XA(o),n=Date.now(),i="singleClick";n-o.input.lastClick.time<500&&NL(e,o.input.lastClick)&&!e[nC]&&o.input.lastClick.button==e.button&&(o.input.lastClick.type=="singleClick"?i="doubleClick":o.input.lastClick.type=="doubleClick"&&(i="tripleClick")),o.input.lastClick={time:n,x:e.clientX,y:e.clientY,type:i,button:e.button},o.input.mouseDown&&o.input.mouseDown.done();let s=o.posAtCoords(yy(e));s&&(i=="singleClick"?o.input.mouseDown=new UA(o,s,e,!!r):(i=="doubleClick"?RL:DL)(o,s.pos,s.inside,e)?e.preventDefault():nl(o,"pointer"));};var Ng=class{constructor(t){this.view=t,this.mightDrag=null,t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this));}up(t){this.done();}move(t){t.buttons==0&&this.done();}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.view.input.mouseDown==this&&(this.view.input.mouseDown=null);}delaySelUpdate(){return false}},UA=class extends Ng{constructor(t,e,r,n){super(t),this.pos=e,this.event=r,this.flushed=n,this.delayedSelectionSync=false,this.startDoc=t.state.doc,this.selectNode=!!r[nC],this.allowDefault=r.shiftKey;let i,s;if(e.inside>-1)i=t.state.doc.nodeAt(e.inside),s=e.inside;else {let c=t.state.doc.resolve(e.pos);i=c.parent,s=c.depth?c.before():0;}let l=n?null:r.target,a=l?t.docView.nearestDesc(l,true):null;this.target=a&&a.nodeDOM.nodeType==1?a.nodeDOM:null;let{selection:u}=t.state;r.button==0&&(i.type.spec.draggable&&i.type.spec.selectable!==false||u instanceof At&&u.from<=s&&u.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&jn&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=true),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false");},20),this.view.domObserver.start()),nl(t,"pointer");}done(){super.done(),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>{this.view.isDestroyed||il(this.view);});}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let e=this.pos;this.view.state.doc!=this.startDoc&&(e=this.view.posAtCoords(yy(t))),this.updateAllowDefault(t),this.allowDefault||!e?nl(this.view,"pointer"):IL(this.view,e.pos,e.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||Eo&&this.mightDrag&&!this.mightDrag.node.isAtom||Kr&&!this.view.state.selection.visible&&Math.min(Math.abs(e.pos-this.view.state.selection.from),Math.abs(e.pos-this.view.state.selection.to))<=2)?(dy(this.view,Bt.near(this.view.state.doc.resolve(e.pos))),t.preventDefault()):nl(this.view,"pointer");}move(t){this.updateAllowDefault(t),nl(this.view,"pointer"),super.move(t);}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=true);}delaySelUpdate(){return this.allowDefault?(this.delayedSelectionSync=true,true):false}},WA=class extends Ng{constructor(t,e){super(t),this.startSelection=e,this.startDoc=t.state.doc;}move(t){if(t.buttons==0||this.view.isDestroyed||!this.view.state.doc.eq(this.startDoc)){this.done();return}t.preventDefault(),nl(this.view,"pointer");let e=this.view.posAtCoords(yy(t)),r=e&&oC(this.view,e.inside,false);if(!r)return;let{doc:n}=this.view.state,i=this.startSelection,[s,l]=r.from<i.from?[i.to,r.from]:[i.from,r.to];dy(this.view,Pt.create(n,s,l));}};Fo.touchstart=o=>{o.input.lastTouch=Date.now(),XA(o),nl(o,"pointer");};Fo.touchmove=o=>{o.input.lastTouch=Date.now(),nl(o,"pointer");};Fo.contextmenu=o=>XA(o);function iC(o,t){return o.composing?true:Eo&&Math.abs(Date.now()-o.input.compositionEndedAt)<500?(o.input.compositionEndedAt=-2e8,true):false}var FL=ol?5e3:-1;Bo.compositionstart=Bo.compositionupdate=o=>{if(!o.composing){o.domObserver.flush();let{state:t}=o,e=t.selection.$to;if(t.selection instanceof Pt&&(t.storedMarks||!e.textOffset&&e.parentOffset&&e.nodeBefore.marks.some(r=>r.type.spec.inclusive===false)||Kr&&BT&&BL(o)))o.markCursor=o.state.storedMarks||e.marks(),Lg(o,true),o.markCursor=null;else if(Lg(o,!t.selection.empty),jn&&t.selection.empty&&e.parentOffset&&!e.textOffset&&e.nodeBefore.marks.length){let r=o.domSelectionRange();for(let n=r.focusNode,i=r.focusOffset;n&&n.nodeType==1&&i!=0;){let s=i<0?n.lastChild:n.childNodes[i-1];if(!s)break;if(s.nodeType==3){let l=o.domSelection();l&&l.collapse(s,s.nodeValue.length);break}else n=s,i=-1;}}o.input.composing=true;}sC(o,FL);};function BL(o){let{focusNode:t,focusOffset:e}=o.domSelectionRange();if(!t||t.nodeType!=1||e>=t.childNodes.length)return false;let r=t.childNodes[e];return r.nodeType==1&&r.contentEditable=="false"}Bo.compositionend=(o,t)=>{o.composing&&(o.input.composing=false,o.input.compositionEndedAt=Date.now(),o.input.compositionPendingChanges=o.domObserver.pendingRecords().length?o.input.compositionID:0,o.input.compositionNode=null,o.input.badSafariComposition?o.domObserver.forceFlush():o.input.compositionPendingChanges&&Promise.resolve().then(()=>o.domObserver.flush()),o.input.compositionID++,sC(o,20));};function sC(o,t){clearTimeout(o.input.composingTimeout),t>-1&&(o.input.composingTimeout=setTimeout(()=>Lg(o),t));}function lC(o){for(o.composing&&(o.input.composing=false,o.input.compositionEndedAt=Date.now());o.input.compositionNodes.length>0;)o.input.compositionNodes.pop().markParentsDirty();}function Lg(o,t=false){if(!(ol&&o.domObserver.flushingSoon>=0)){if(o.domObserver.forceFlush(),lC(o),t||o.docView&&o.docView.dirty){let e=jA(o),r=o.state.selection;return e&&!e.eq(r)?o.dispatch(o.state.tr.setSelection(e)):(o.markCursor||t)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?o.dispatch(o.state.tr.deleteSelection()):o.updateState(o.state),true}return false}}function HL(o,t){if(!o.dom.parentNode)return;let e=o.dom.parentNode.appendChild(document.createElement("div"));e.appendChild(t),e.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),n=document.createRange();n.selectNodeContents(t),o.dom.blur(),r.removeAllRanges(),r.addRange(n),setTimeout(()=>{e.parentNode&&e.parentNode.removeChild(e),o.focus();},50);}var uy=mn&&ya<15||mp&&G1<604;Fo.copy=Bo.cut=(o,t)=>{let e=t,r=o.state.selection,n=e.type=="cut";if(r.empty)return;let i=uy?null:e.clipboardData,s=r.content(),{dom:l,text:a}=YA(o,s);i?(e.preventDefault(),i.clearData(),i.setData("text/html",l.innerHTML),i.setData("text/plain",a)):HL(o,l),n&&o.dispatch(o.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"));};function GL(o){return o.openStart==0&&o.openEnd==0&&o.content.childCount==1?o.content.firstChild:null}function UL(o,t){if(!o.dom.parentNode)return;let e=o.input.shiftKey||o.state.selection.$from.parent.type.spec.code,r=o.dom.parentNode.appendChild(document.createElement(e?"textarea":"div"));e||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let n=o.input.shiftKey&&o.input.lastKeyCode!=45;setTimeout(()=>{o.focus(),r.parentNode&&r.parentNode.removeChild(r),e?cy(o,r.value,null,n,t):cy(o,r.textContent,r.innerHTML,n,t);},50);}function cy(o,t,e,r,n){let i=JT(o,t,e,r,o.state.selection.$from);if(o.someProp("handlePaste",a=>a(o,n,i||ht.empty)))return true;if(!i)return false;let s=GL(i),l=s?o.state.tr.replaceSelectionWith(s,r):o.state.tr.replaceSelection(i);return o.dispatch(l.scrollIntoView().setMeta("paste",true).setMeta("uiEvent","paste")),true}function aC(o){let t=o.getData("text/plain")||o.getData("Text");if(t)return t;let e=o.getData("text/uri-list");return e?e.replace(/\r?\n/g," "):""}Bo.paste=(o,t)=>{let e=t;if(o.composing&&!ol)return;let r=uy?null:e.clipboardData,n=o.input.shiftKey&&o.input.lastKeyCode!=45;r&&cy(o,aC(r),r.getData("text/html"),n,e)?e.preventDefault():UL(o,e);};var Mg=class{constructor(t,e,r){this.slice=t,this.move=e,this.node=r;}},WL=$n?"altKey":"ctrlKey";function uC(o,t){let e;return o.someProp("dragCopies",r=>{e=e||r(t);}),e!=null?!e:!t[WL]}Fo.dragstart=(o,t)=>{let e=t,r=o.input.mouseDown;if(r&&r.done(),!e.dataTransfer)return;let n=o.state.selection,i=n.empty?null:o.posAtCoords(yy(e)),s;if(!(i&&i.pos>=n.from&&i.pos<=(n instanceof At?n.to-1:n.to))){if(r&&r.mightDrag)s=At.create(o.state.doc,r.mightDrag.pos);else if(e.target&&e.target.nodeType==1){let h=o.docView.nearestDesc(e.target,true);h&&h.node.type.spec.draggable&&h!=o.docView&&(s=At.create(o.state.doc,h.posBefore));}}let l=(s||o.state.selection).content(),{dom:a,text:u,slice:c}=YA(o,l);(!e.dataTransfer.files.length||!Kr||FT>120)&&e.dataTransfer.clearData(),e.dataTransfer.setData(uy?"Text":"text/html",a.innerHTML),e.dataTransfer.effectAllowed="copyMove",uy||e.dataTransfer.setData("text/plain",u),o.dragging=new Mg(c,uC(o,e),s);};Fo.dragend=o=>{let t=o.dragging;window.setTimeout(()=>{o.dragging==t&&(o.dragging=null);},50);};Bo.dragover=Bo.dragenter=(o,t)=>t.preventDefault();Bo.drop=(o,t)=>{try{zL(o,t,o.dragging);}finally{o.dragging=null;}};function zL(o,t,e){if(!t.dataTransfer)return;let r=o.posAtCoords(yy(t));if(!r)return;let n=o.state.doc.resolve(r.pos),i=e&&e.slice;i?o.someProp("transformPasted",d=>{i=d(i,o,false);}):i=JT(o,aC(t.dataTransfer),uy?null:t.dataTransfer.getData("text/html"),false,n);let s=!!(e&&uC(o,t));if(o.someProp("handleDrop",d=>d(o,t,i||ht.empty,s))){t.preventDefault();return}if(!i)return;t.preventDefault();let l=i?Ag(o.state.doc,n.pos,i):n.pos;l==null&&(l=n.pos);let a=o.state.tr;if(s){let{node:d}=e;d?d.replace(a):a.deleteSelection();}let u=a.mapping.map(l),c=i.openStart==0&&i.openEnd==0&&i.content.childCount==1,h=a.doc;if(c?a.replaceRangeWith(u,u,i.content.firstChild):a.replaceRange(u,u,i),a.doc.eq(h))return;let f=a.doc.resolve(u);if(c&&At.isSelectable(i.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(i.content.firstChild))a.setSelection(new At(f));else {let d=a.mapping.map(l);a.mapping.maps[a.mapping.maps.length-1].forEach((g,P,A,v)=>d=v),a.setSelection(qA(o,f,a.doc.resolve(d)));}o.focus(),o.dispatch(a.setMeta("uiEvent","drop"));}Fo.focus=o=>{o.input.lastFocus=Date.now(),o.focused||(o.domObserver.stop(),o.dom.classList.add("ProseMirror-focused"),o.domObserver.start(),o.focused=true,setTimeout(()=>{o.docView&&o.hasFocus()&&!o.domObserver.currentSelection.eq(o.domSelectionRange())&&il(o);},20));};Fo.blur=(o,t)=>{let e=t;o.focused&&(o.domObserver.stop(),o.dom.classList.remove("ProseMirror-focused"),o.domObserver.start(),e.relatedTarget&&o.dom.contains(e.relatedTarget)&&o.domObserver.currentSelection.clear(),o.focused=false);};Fo.beforeinput=(o,t)=>{if(Kr&&ol&&t.inputType=="deleteContentBackward"){o.domObserver.flushSoon();let{domChangeCount:r}=o.input;setTimeout(()=>{if(o.input.domChangeCount!=r||(o.dom.blur(),o.focus(),o.someProp("handleKeyDown",i=>i(o,Fu(8,"Backspace")))))return;let{$cursor:n}=o.state.selection;n&&n.pos>0&&o.dispatch(o.state.tr.delete(n.pos-1,n.pos).scrollIntoView());},50);}};for(let o in Bo)Fo[o]=Bo[o];function py(o,t){if(o==t)return true;for(let e in o)if(o[e]!==t[e])return false;for(let e in t)if(!(e in o))return false;return true}var Ig=class o{constructor(t,e){this.toDOM=t,this.spec=e||Uu,this.side=this.spec.side||0;}map(t,e,r,n){let{pos:i,deleted:s}=t.mapResult(e.from+n,this.side<0?-1:1);return s?null:new vo(i-r,i-r,this)}valid(){return true}eq(t){return this==t||t instanceof o&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&py(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t);}},Gu=class o{constructor(t,e){this.attrs=t,this.spec=e||Uu;}map(t,e,r,n){let i=t.map(e.from+n,this.spec.inclusiveStart?-1:1)-r,s=t.map(e.to+n,this.spec.inclusiveEnd?1:-1)-r;return i>=s?null:new vo(i,s,this)}valid(t,e){return e.from<e.to}eq(t){return this==t||t instanceof o&&py(this.attrs,t.attrs)&&py(this.spec,t.spec)}static is(t){return t.type instanceof o}destroy(){}},zA=class o{constructor(t,e){this.attrs=t,this.spec=e||Uu;}map(t,e,r,n){let i=t.mapResult(e.from+n,1);if(i.deleted)return null;let s=t.mapResult(e.to+n,-1);return s.deleted||s.pos<=i.pos?null:new vo(i.pos-r,s.pos-r,this)}valid(t,e){let{index:r,offset:n}=t.content.findIndex(e.from),i;return n==e.from&&!(i=t.child(r)).isText&&n+i.nodeSize==e.to}eq(t){return this==t||t instanceof o&&py(this.attrs,t.attrs)&&py(this.spec,t.spec)}destroy(){}},vo=class o{constructor(t,e,r){this.from=t,this.to=e,this.type=r;}copy(t,e){return new o(t,e,this.type)}eq(t,e=0){return this.type.eq(t.type)&&this.from+e==t.from&&this.to+e==t.to}map(t,e,r){return this.type.map(t,this,e,r)}static widget(t,e,r){return new o(t,t,new Ig(e,r))}static inline(t,e,r,n){return new o(t,e,new Gu(r,n))}static node(t,e,r,n){return new o(t,e,new zA(r,n))}get spec(){return this.type.spec}get inline(){return this.type instanceof Gu}get widget(){return this.type instanceof Ig}},cp=[],Uu={},je=class o{constructor(t,e){this.local=t.length?t:cp,this.children=e.length?e:cp;}static create(t,e){return e.length?Dg(e,t,0,Uu):xo}find(t,e,r){let n=[];return this.findInner(t??0,e??1e9,n,0,r),n}findInner(t,e,r,n,i){for(let s=0;s<this.local.length;s++){let l=this.local[s];l.from<=e&&l.to>=t&&(!i||i(l.spec))&&r.push(l.copy(l.from+n,l.to+n));}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<e&&this.children[s+1]>t){let l=this.children[s]+1;this.children[s+2].findInner(t-l,e-l,r,n+l,i);}}map(t,e,r){return this==xo||t.maps.length==0?this:this.mapInner(t,e,0,0,r||Uu)}mapInner(t,e,r,n,i){let s;for(let l=0;l<this.local.length;l++){let a=this.local[l].map(t,r,n);a&&a.type.valid(e,a)?(s||(s=[])).push(a):i.onRemove&&i.onRemove(this.local[l].spec);}return this.children.length?_L(this.children,s||[],t,e,r,n,i):s?new o(s.sort(Wu),cp):xo}add(t,e){return e.length?this==xo?o.create(t,e):this.addInner(t,e,0):this}addInner(t,e,r){let n,i=0;t.forEach((l,a)=>{let u=a+r,c;if(c=pC(e,l,u)){for(n||(n=this.children.slice());i<n.length&&n[i]<a;)i+=3;n[i]==a?n[i+2]=n[i+2].addInner(l,c,u+1):n.splice(i,0,a,a+l.nodeSize,Dg(c,l,u+1,Uu)),i+=3;}});let s=cC(i?mC(e):e,-r);for(let l=0;l<s.length;l++)s[l].type.valid(t,s[l])||s.splice(l--,1);return new o(s.length?this.local.concat(s).sort(Wu):this.local,n||this.children)}remove(t){return t.length==0||this==xo?this:this.removeInner(t,0)}removeInner(t,e){let r=this.children,n=this.local;for(let i=0;i<r.length;i+=3){let s,l=r[i]+e,a=r[i+1]+e;for(let c=0,h;c<t.length;c++)(h=t[c])&&h.from>l&&h.to<a&&(t[c]=null,(s||(s=[])).push(h));if(!s)continue;r==this.children&&(r=this.children.slice());let u=r[i+2].removeInner(s,l+1);u!=xo?r[i+2]=u:(r.splice(i,3),i-=3);}if(n.length){for(let i=0,s;i<t.length;i++)if(s=t[i])for(let l=0;l<n.length;l++)n[l].eq(s,e)&&(n==this.local&&(n=this.local.slice()),n.splice(l--,1));}return r==this.children&&n==this.local?this:n.length||r.length?new o(n,r):xo}forChild(t,e){if(this==xo)return this;if(e.isLeaf)return o.empty;let r,n;for(let l=0;l<this.children.length;l+=3)if(this.children[l]>=t){this.children[l]==t&&(r=this.children[l+2]);break}let i=t+1,s=i+e.content.size;for(let l=0;l<this.local.length;l++){let a=this.local[l];if(a.from<s&&a.to>i&&a.type instanceof Gu){let u=Math.max(i,a.from)-i,c=Math.min(s,a.to)-i;u<c&&(n||(n=[])).push(a.copy(u,c));}}if(n){let l=new o(n.sort(Wu),cp);return r?new Rg([l,r]):l}return r||xo}eq(t){if(this==t)return true;if(!(t instanceof o)||this.local.length!=t.local.length||this.children.length!=t.children.length)return false;for(let e=0;e<this.local.length;e++)if(!this.local[e].eq(t.local[e]))return false;for(let e=0;e<this.children.length;e+=3)if(this.children[e]!=t.children[e]||this.children[e+1]!=t.children[e+1]||!this.children[e+2].eq(t.children[e+2]))return false;return true}locals(t){return ZA(this.localsInner(t))}localsInner(t){if(this==xo)return cp;if(t.inlineContent||!this.local.some(Gu.is))return this.local;let e=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof Gu||e.push(this.local[r]);return e}forEachSet(t){t(this);}};je.empty=new je([],[]);je.removeOverlap=ZA;var xo=je.empty,Rg=class o{constructor(t){this.members=t;}map(t,e){let r=this.members.map(n=>n.map(t,e,Uu));return o.from(r)}forChild(t,e){if(e.isLeaf)return je.empty;let r=[];for(let n=0;n<this.members.length;n++){let i=this.members[n].forChild(t,e);i!=xo&&(i instanceof o?r=r.concat(i.members):r.push(i));}return o.from(r)}eq(t){if(!(t instanceof o)||t.members.length!=this.members.length)return false;for(let e=0;e<this.members.length;e++)if(!this.members[e].eq(t.members[e]))return false;return true}locals(t){let e,r=true;for(let n=0;n<this.members.length;n++){let i=this.members[n].localsInner(t);if(i.length)if(!e)e=i;else {r&&(e=e.slice(),r=false);for(let s=0;s<i.length;s++)e.push(i[s]);}}return e?ZA(r?e:e.sort(Wu)):cp}static from(t){switch(t.length){case 0:return xo;case 1:return t[0];default:return new o(t.every(e=>e instanceof je)?t:t.reduce((e,r)=>e.concat(r instanceof je?r:r.members),[]))}}forEachSet(t){for(let e=0;e<this.members.length;e++)this.members[e].forEachSet(t);}};function _L(o,t,e,r,n,i,s){let l=o.slice();for(let u=0,c=i;u<e.maps.length;u++){let h=0;e.maps[u].forEach((f,d,g,P)=>{let A=P-g-(d-f);for(let v=0;v<l.length;v+=3){let H=l[v+1];if(H<0||f>H+c-h)continue;let Q=l[v]+c-h;d>=Q?l[v+1]=f<=Q?-2:-1:f>=c&&A&&(l[v]+=A,l[v+1]+=A);}h+=A;}),c=e.maps[u].map(c,-1);}let a=false;for(let u=0;u<l.length;u+=3)if(l[u+1]<0){if(l[u+1]==-2){a=true,l[u+1]=-1;continue}let c=e.map(o[u]+i),h=c-n;if(h<0||h>=r.content.size){a=true;continue}let f=e.map(o[u+1]+i,-1),d=f-n,{index:g,offset:P}=r.content.findIndex(h),A=r.maybeChild(g);if(A&&P==h&&P+A.nodeSize==d){let v=l[u+2].mapInner(e,A,c+1,o[u]+i+1,s);v!=xo?(l[u]=h,l[u+1]=d,l[u+2]=v):(l[u+1]=-2,a=true);}else a=true;}if(a){let u=$L(l,o,t,e,n,i,s),c=Dg(u,r,0,s);t=c.local;for(let h=0;h<l.length;h+=3)l[h+1]<0&&(l.splice(h,3),h-=3);for(let h=0,f=0;h<c.children.length;h+=3){let d=c.children[h];for(;f<l.length&&l[f]<d;)f+=3;l.splice(f,0,c.children[h],c.children[h+1],c.children[h+2]);}}return new je(t.sort(Wu),l)}function cC(o,t){if(!t||!o.length)return o;let e=[];for(let r=0;r<o.length;r++){let n=o[r];e.push(new vo(n.from+t,n.to+t,n.type));}return e}function $L(o,t,e,r,n,i,s){function l(a,u){for(let c=0;c<a.local.length;c++){let h=a.local[c].map(r,n,u);h?e.push(h):s.onRemove&&s.onRemove(a.local[c].spec);}for(let c=0;c<a.children.length;c+=3)l(a.children[c+2],a.children[c]+u+1);}for(let a=0;a<o.length;a+=3)o[a+1]==-1&&l(o[a+2],t[a]+i+1);return e}function pC(o,t,e){if(t.isLeaf)return null;let r=e+t.nodeSize,n=null;for(let i=0,s;i<o.length;i++)(s=o[i])&&s.from>e&&s.to<r&&((n||(n=[])).push(s),o[i]=null);return n}function mC(o){let t=[];for(let e=0;e<o.length;e++)o[e]!=null&&t.push(o[e]);return t}function Dg(o,t,e,r){let n=[],i=false;t.forEach((l,a)=>{let u=pC(o,l,a+e);if(u){i=true;let c=Dg(u,l,e+a+1,r);c!=xo&&n.push(a,a+l.nodeSize,c);}});let s=cC(i?mC(o):o,-e).sort(Wu);for(let l=0;l<s.length;l++)s[l].type.valid(t,s[l])||(r.onRemove&&r.onRemove(s[l].spec),s.splice(l--,1));return s.length||n.length?new je(s,n):xo}function Wu(o,t){return o.from-t.from||o.to-t.to}function ZA(o){let t=o;for(let e=0;e<t.length-1;e++){let r=t[e];if(r.from!=r.to)for(let n=e+1;n<t.length;n++){let i=t[n];if(i.from==r.from){i.to!=r.to&&(t==o&&(t=o.slice()),t[n]=i.copy(i.from,r.to),vT(t,n+1,i.copy(r.to,i.to)));continue}else {i.from<r.to&&(t==o&&(t=o.slice()),t[e]=r.copy(r.from,i.from),vT(t,n,r.copy(i.from,r.to)));break}}}return t}function vT(o,t,e){for(;t<o.length&&Wu(e,o[t])>0;)t++;o.splice(t,0,e);}chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var sl={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Vg={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},lM=typeof navigator<"u"&&/Mac/.test(navigator.platform),aM=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(kr=0;kr<10;kr++)sl[48+kr]=sl[96+kr]=String(kr);var kr;for(kr=1;kr<=24;kr++)sl[kr+111]="F"+kr;var kr;for(kr=65;kr<=90;kr++)sl[kr]=String.fromCharCode(kr+32),Vg[kr]=String.fromCharCode(kr);var kr;for(Bg in sl)Vg.hasOwnProperty(Bg)||(Vg[Bg]=sl[Bg]);var Bg;function hC(o){var t=lM&&o.metaKey&&o.shiftKey&&!o.ctrlKey&&!o.altKey||aM&&o.shiftKey&&o.key&&o.key.length==1||o.key=="Unidentified",e=!t&&o.key||(o.shiftKey?Vg:sl)[o.keyCode]||o.key||"Unidentified";return e=="Esc"&&(e="Escape"),e=="Del"&&(e="Delete"),e=="Left"&&(e="ArrowLeft"),e=="Up"&&(e="ArrowUp"),e=="Right"&&(e="ArrowRight"),e=="Down"&&(e="ArrowDown"),e}var uM=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),cM=typeof navigator<"u"&&/Win/.test(navigator.platform);function pM(o){let t=o.split(/-(?!$)/),e=t[t.length-1];e=="Space"&&(e=" ");let r,n,i,s;for(let l=0;l<t.length-1;l++){let a=t[l];if(/^(cmd|meta|m)$/i.test(a))s=true;else if(/^a(lt)?$/i.test(a))r=true;else if(/^(c|ctrl|control)$/i.test(a))n=true;else if(/^s(hift)?$/i.test(a))i=true;else if(/^mod$/i.test(a))uM?s=true:n=true;else throw new Error("Unrecognized modifier name: "+a)}return r&&(e="Alt-"+e),n&&(e="Ctrl-"+e),s&&(e="Meta-"+e),i&&(e="Shift-"+e),e}function mM(o){let t=Object.create(null);for(let e in o)t[pM(e)]=o[e];return t}function tw(o,t,e=true){return t.altKey&&(o="Alt-"+o),t.ctrlKey&&(o="Ctrl-"+o),t.metaKey&&(o="Meta-"+o),e&&t.shiftKey&&(o="Shift-"+o),o}function ew(o){let t=mM(o);return function(e,r){let n=hC(r),i,s=t[tw(n,r)];if(s&&s(e.state,e.dispatch,e))return true;if(n.length==1&&n!=" "){if(r.shiftKey){let l=t[tw(n,r,false)];if(l&&l(e.state,e.dispatch,e))return true}if((r.altKey||r.metaKey||r.ctrlKey)&&!(cM&&r.ctrlKey&&r.altKey)&&(i=sl[r.keyCode])&&i!=n){let l=t[tw(i,r)];if(l&&l(e.state,e.dispatch,e))return true}}return false}}var hM=Object.defineProperty,iw=(o,t)=>{for(var e in t)hM(o,e,{get:t[e],enumerable:true});};function Kg(o){let{state:t,transaction:e}=o,{selection:r}=e,{doc:n}=e,{storedMarks:i}=e;return {...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return i},get selection(){return r},get doc(){return n},get tr(){return r=e.selection,n=e.doc,i=e.storedMarks,e}}}var sw=class{constructor(o){this.editor=o.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=o.state;}get hasCustomState(){return !!this.customState}get state(){return this.customState||this.editor.state}get commands(){let{rawCommands:o,editor:t,state:e}=this,{view:r}=t,{tr:n}=e,i=this.buildProps(n);return Object.fromEntries(Object.entries(o).map(([s,l])=>[s,(...u)=>{let c=l(...u)(i);return !n.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(n),c}]))}get chain(){return ()=>this.createChain()}get can(){return ()=>this.createCan()}createChain(o,t=true){let{rawCommands:e,editor:r,state:n}=this,{view:i}=r,s=[],l=!!o,a=o||n.tr,u=()=>(!l&&t&&!a.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(a),s.every(h=>h===true)),c={...Object.fromEntries(Object.entries(e).map(([h,f])=>[h,(...g)=>{let P=this.buildProps(a,t),A=f(...g)(P);return s.push(A),c}])),run:u};return c}createCan(o){let{rawCommands:t,state:e}=this,r=false,n=o||e.tr,i=this.buildProps(n,r);return {...Object.fromEntries(Object.entries(t).map(([l,a])=>[l,(...u)=>a(...u)({...i,dispatch:void 0})])),chain:()=>this.createChain(n,r)}}buildProps(o,t=true){let{rawCommands:e,editor:r,state:n}=this,{view:i}=r,s={tr:o,editor:r,view:i,state:Kg({state:n,transaction:o}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(o,t),can:()=>this.createCan(o),get commands(){return Object.fromEntries(Object.entries(e).map(([l,a])=>[l,(...u)=>a(...u)(s)]))}};return s}},TC={};iw(TC,{blur:()=>yM,clearContent:()=>dM,clearNodes:()=>fM,command:()=>bM,createParagraphNear:()=>gM,cut:()=>SM,deleteCurrentNode:()=>PM,deleteNode:()=>AM,deleteRange:()=>wM,deleteSelection:()=>vM,enter:()=>TM,exitCode:()=>CM,extendMarkRange:()=>kM,first:()=>NM,focus:()=>IM,forEach:()=>RM,insertContent:()=>DM,insertContentAt:()=>BM,joinBackward:()=>GM,joinDown:()=>HM,joinForward:()=>UM,joinItemBackward:()=>WM,joinItemForward:()=>zM,joinTextblockBackward:()=>_M,joinTextblockForward:()=>$M,joinUp:()=>VM,keyboardShortcut:()=>jM,lift:()=>qM,liftEmptyBlock:()=>YM,liftListItem:()=>QM,newlineInCode:()=>JM,resetAttributes:()=>XM,scrollIntoView:()=>ZM,selectAll:()=>tI,selectNodeBackward:()=>eI,selectNodeForward:()=>rI,selectParentNode:()=>oI,selectTextblockEnd:()=>nI,selectTextblockStart:()=>iI,setContent:()=>lI,setMark:()=>xI,setMeta:()=>EI,setNode:()=>vI,setNodeSelection:()=>TI,setTextDirection:()=>CI,setTextSelection:()=>kI,sinkListItem:()=>NI,splitBlock:()=>LI,splitListItem:()=>MI,toggleList:()=>RI,toggleMark:()=>DI,toggleNode:()=>OI,toggleWrap:()=>FI,undoInputRule:()=>BI,unsetAllMarks:()=>VI,unsetMark:()=>HI,unsetTextDirection:()=>GI,updateAttributes:()=>UI,wrapIn:()=>WI,wrapInList:()=>zI});var yM=()=>({editor:o,view:t})=>(requestAnimationFrame(()=>{var e;o.isDestroyed||(t.dom.blur(),(e=window?.getSelection())==null||e.removeAllRanges());}),true),dM=(o=true)=>({commands:t})=>t.setContent("",{emitUpdate:o}),fM=()=>({state:o,tr:t,dispatch:e})=>{let{selection:r}=t,{ranges:n}=r;return e&&n.forEach(({$from:i,$to:s})=>{o.doc.nodesBetween(i.pos,s.pos,(l,a)=>{if(l.type.isText)return;let{doc:u,mapping:c}=t,h=u.resolve(c.map(a)),f=u.resolve(c.map(a+l.nodeSize)),d=h.blockRange(f);if(!d)return;let g=tl(d);if(l.type.isTextblock){let{defaultType:P}=h.parent.contentMatchAt(h.index());t.setNodeMarkup(d.start,P);}(g||g===0)&&t.lift(d,g);});}),true},bM=o=>t=>o(t),gM=()=>({state:o,dispatch:t})=>dA(o,t),SM=(o,t)=>({editor:e,tr:r})=>{let{state:n}=e,i=n.doc.slice(o.from,o.to);r.deleteRange(o.from,o.to);let s=r.mapping.map(t);return r.insert(s,i.content),r.setSelection(new Pt(r.doc.resolve(Math.max(s-1,0)))),true},PM=()=>({tr:o,dispatch:t})=>{let{selection:e}=o,r=e.$anchor.node();if(r.content.size>0)return false;let n=o.selection.$anchor;for(let i=n.depth;i>0;i-=1)if(n.node(i).type===r.type){if(t){let l=n.before(i),a=n.after(i);o.delete(l,a).scrollIntoView();}return true}return false};function hr(o,t){if(typeof o=="string"){if(!t.nodes[o])throw Error(`There is no node type named '${o}'. Maybe you forgot to add the extension?`);return t.nodes[o]}return o}var AM=o=>({tr:t,state:e,dispatch:r})=>{let n=hr(o,e.schema),i=t.selection.$anchor;for(let s=i.depth;s>0;s-=1)if(i.node(s).type===n){if(r){let a=i.before(s),u=i.after(s);t.delete(a,u).scrollIntoView();}return true}return false},wM=o=>({tr:t,dispatch:e})=>{let{from:r,to:n}=o;return e&&t.delete(r,n),true},xM=o=>o.content?/^text(\*|\+)/.test(o.content):false,dC=(o,t,e)=>{if(!o.parent.isInline||e==="left"&&o.pos>o.start()||e==="right"&&o.pos<o.end())return o.pos;let r=t.nodes[o.parent.type.name].spec;return xM(r)?e==="left"?o.start()-1:o.end()+1:o.pos},EM=(o,t,e)=>{let r=dC(o,e,"left"),n=dC(t,e,"right");return {from:r,to:n}},vM=()=>({state:o,dispatch:t})=>{if(o.selection.empty)return false;if(t){let e=o.tr,{ranges:r}=o.selection,n=e.steps.length;r.forEach(i=>{let s=e.mapping.slice(n),l=e.doc.resolve(s.map(i.$from.pos)),a=e.doc.resolve(s.map(i.$to.pos)),{from:u,to:c}=EM(l,a,o.schema);e.deleteRange(u,c);}),e.scrollIntoView(),t(e);}return true},TM=()=>({commands:o})=>o.keyboardShortcut("Enter"),CM=()=>({state:o,dispatch:t})=>yA(o,t);function lw(o){return Object.prototype.toString.call(o)==="[object RegExp]"}function _g(o,t,e={strict:true}){let r=Object.keys(t);return r.length?r.every(n=>e.strict?t[n]===o[n]:lw(t[n])?t[n].test(o[n]):t[n]===o[n]):true}function CC(o,t,e={}){return o.find(r=>r.type===t&&_g(Object.fromEntries(Object.keys(e).map(n=>[n,r.attrs[n]])),e))}function fC(o,t,e={}){return !!CC(o,t,e)}function aw(o,t,e){if(!o||!t)return;let r=o.parent.childAfter(o.parentOffset);if((!r.node||!r.node.marks.some(u=>u.type===t))&&(r=o.parent.childBefore(o.parentOffset)),!r.node||!r.node.marks.some(u=>u.type===t))return;if(!e){let u=r.node.marks.find(c=>c.type===t);u&&(e=u.attrs);}if(!CC([...r.node.marks],t,e))return;let i=r.index,s=o.start()+r.offset,l=i+1,a=s+r.node.nodeSize;for(;i>0&&fC([...o.parent.child(i-1).marks],t,e);)i-=1,s-=o.parent.child(i).nodeSize;for(;l<o.parent.childCount&&fC([...o.parent.child(l).marks],t,e);)a+=o.parent.child(l).nodeSize,l+=1;return {from:s,to:a}}function ll(o,t){if(typeof o=="string"){if(!t.marks[o])throw Error(`There is no mark type named '${o}'. Maybe you forgot to add the extension?`);return t.marks[o]}return o}var kM=(o,t)=>({tr:e,state:r,dispatch:n})=>{let i=ll(o,r.schema),{doc:s,selection:l}=e,{$from:a,from:u,to:c}=l;if(n){let h=aw(a,i,t);if(h&&h.from<=u&&h.to>=c){let f=Pt.create(s,h.from,h.to);e.setSelection(f);}}return true},NM=o=>t=>{let e=typeof o=="function"?o(t):o;for(let r=0;r<e.length;r+=1)if(e[r](t))return true;return false};function kC(o){return o instanceof Pt}function $u(o=0,t=0,e=0){return Math.min(Math.max(o,t),e)}function LM(o,t=null){if(!t)return null;let e=Bt.atStart(o),r=Bt.atEnd(o);if(t==="start"||t===true)return e;if(t==="end")return r;let n=e.from,i=r.to;return t==="all"?Pt.create(o,$u(0,n,i),$u(o.content.size,n,i)):Pt.create(o,$u(t,n,i),$u(t,n,i))}function bC(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function $g(){return ["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function MM(){return typeof navigator<"u"?/^((?!chrome|android).)*safari/i.test(navigator.userAgent):false}var IM=(o=null,t={})=>({editor:e,view:r,tr:n,dispatch:i})=>{t={scrollIntoView:true,...t};let s=()=>{($g()||bC())&&r.dom.focus(),MM()&&!$g()&&!bC()&&r.dom.focus({preventScroll:true}),requestAnimationFrame(()=>{e.isDestroyed||(r.focus(),t?.scrollIntoView&&e.commands.scrollIntoView());});};try{if(r.hasFocus()&&o===null||o===!1)return !0}catch{return false}if(i&&o===null&&!kC(e.state.selection))return s(),true;let l=LM(n.doc,o)||e.state.selection,a=e.state.selection.eq(l);return i&&(a||n.setSelection(l),a&&n.storedMarks&&n.setStoredMarks(n.storedMarks),s()),true},RM=(o,t)=>e=>o.every((r,n)=>t(r,{...e,index:n})),DM=(o,t)=>({tr:e,commands:r})=>r.insertContentAt({from:e.selection.from,to:e.selection.to},o,t),NC=o=>{let t=o.childNodes;for(let e=t.length-1;e>=0;e-=1){let r=t[e];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?o.removeChild(r):r.nodeType===1&&NC(r);}return o};function Hg(o){if(typeof window>"u")throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");let t=`<body>${o}</body>`,e=new window.DOMParser().parseFromString(t,"text/html").body;return NC(e)}function gy(o,t,e){if(o instanceof Do||o instanceof Z)return o;e={slice:true,parseOptions:{},...e};let r=typeof o=="object"&&o!==null,n=typeof o=="string";if(r)try{if(Array.isArray(o)&&o.length>0)return Z.fromArray(o.map(l=>t.nodeFromJSON(l)));let s=t.nodeFromJSON(o);return e.errorOnInvalidContent&&s.check(),s}catch(i){if(e.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:i});return console.warn("[tiptap warn]: Invalid content.","Passed value:",o,"Error:",i),gy("",t,e)}if(n){if(e.errorOnInvalidContent){let s=false,l="",a=new ep({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:u=>(s=true,l=typeof u=="string"?u:u.outerHTML,null)}]}})});if(e.slice?Ai.fromSchema(a).parseSlice(Hg(o),e.parseOptions):Ai.fromSchema(a).parse(Hg(o),e.parseOptions),e.errorOnInvalidContent&&s)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${l}`)})}let i=Ai.fromSchema(t);return e.slice?i.parseSlice(Hg(o),e.parseOptions).content:i.parse(Hg(o),e.parseOptions)}return gy("",t,e)}function OM(o,t,e){let r=o.steps.length-1;if(r<t)return;let n=o.steps[r];if(!(n instanceof no||n instanceof Cr))return;let i=o.mapping.maps[r],s=0;i.forEach((l,a,u,c)=>{s===0&&(s=c);}),o.setSelection(Bt.near(o.doc.resolve(s),e));}var FM=o=>!("type"in o),BM=(o,t,e)=>({tr:r,dispatch:n,editor:i})=>{var s;if(n){e={parseOptions:i.options.parseOptions,updateSelection:true,applyInputRules:false,applyPasteRules:false,...e};let l,a=A=>{i.emit("contentError",{editor:i,error:A,disableCollaboration:()=>{"collaboration"in i.storage&&typeof i.storage.collaboration=="object"&&i.storage.collaboration&&(i.storage.collaboration.isDisabled=true);}});},u={preserveWhitespace:"full",...e.parseOptions};if(!e.errorOnInvalidContent&&!i.options.enableContentCheck&&i.options.emitContentError)try{gy(t,i.schema,{parseOptions:u,errorOnInvalidContent:!0});}catch(A){a(A);}try{l=gy(t,i.schema,{parseOptions:u,errorOnInvalidContent:(s=e.errorOnInvalidContent)!=null?s:i.options.enableContentCheck});}catch(A){return a(A),false}let{from:c,to:h}=typeof o=="number"?{from:o,to:o}:{from:o.from,to:o.to},f=true,d=true;if((FM(l)?l:[l]).forEach(A=>{A.check(),f=f?A.isText&&A.marks.length===0:false,d=d?A.isBlock:false;}),c===h&&d){let{parent:A}=r.doc.resolve(c);A.isTextblock&&!A.type.spec.code&&!A.childCount&&(c-=1,h+=1);}let P;if(f){if(Array.isArray(t))P=t.map(A=>A.text||"").join("");else if(t instanceof Z){let A="";t.forEach(v=>{v.text&&(A+=v.text);}),P=A;}else typeof t=="object"&&t&&t.text?P=t.text:P=t;r.insertText(P,c,h);}else {P=l;let A=r.doc.resolve(c),v=A.node(),H=A.parentOffset===0,Q=v.isText||v.isTextblock,U=v.content.size>0;H&&Q&&U&&d&&(c=Math.max(0,c-1)),r.replaceWith(c,h,P);}e.updateSelection&&OM(r,r.steps.length-1,-1),e.applyInputRules&&r.setMeta("applyInputRules",{from:c,text:P}),e.applyPasteRules&&r.setMeta("applyPasteRules",{from:c,text:P});}return true},VM=()=>({state:o,dispatch:t})=>Yv(o,t),HM=()=>({state:o,dispatch:t})=>Qv(o,t),GM=()=>({state:o,dispatch:t})=>sA(o,t),UM=()=>({state:o,dispatch:t})=>uA(o,t),WM=()=>({state:o,dispatch:t,tr:e})=>{try{let r=Ou(o.doc,o.selection.$from.pos,-1);return r==null?!1:(e.join(r,2),t&&t(e),!0)}catch{return false}},zM=()=>({state:o,dispatch:t,tr:e})=>{try{let r=Ou(o.doc,o.selection.$from.pos,1);return r==null?!1:(e.join(r,2),t&&t(e),!0)}catch{return false}},_M=()=>({state:o,dispatch:t})=>$v(o,t),$M=()=>({state:o,dispatch:t})=>Kv(o,t);function LC(){return typeof navigator<"u"?/Mac/.test(navigator.platform):false}function KM(o){let t=o.split(/-(?!$)/),e=t[t.length-1];e==="Space"&&(e=" ");let r,n,i,s;for(let l=0;l<t.length-1;l+=1){let a=t[l];if(/^(cmd|meta|m)$/i.test(a))s=true;else if(/^a(lt)?$/i.test(a))r=true;else if(/^(c|ctrl|control)$/i.test(a))n=true;else if(/^s(hift)?$/i.test(a))i=true;else if(/^mod$/i.test(a))$g()||LC()?s=true:n=true;else throw new Error(`Unrecognized modifier name: ${a}`)}return r&&(e=`Alt-${e}`),n&&(e=`Ctrl-${e}`),s&&(e=`Meta-${e}`),i&&(e=`Shift-${e}`),e}var jM=o=>({editor:t,view:e,tr:r,dispatch:n})=>{let i=KM(o).split(/-(?!$)/),s=i.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),l=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:true,cancelable:true}),a=t.captureTransaction(()=>{e.someProp("handleKeyDown",u=>u(e,l));});return a?.steps.forEach(u=>{let c=u.map(r.mapping);c&&n&&r.maybeStep(c);}),true};function ba(o,t,e={}){let{from:r,to:n,empty:i}=o.selection,s=t?hr(t,o.schema):null,l=[];o.doc.nodesBetween(r,n,(h,f)=>{if(h.isText)return;let d=Math.max(r,f),g=Math.min(n,f+h.nodeSize);l.push({node:h,from:d,to:g});});let a=n-r,u=l.filter(h=>s?s.name===h.node.type.name:true).filter(h=>_g(h.node.attrs,e,{strict:false}));return i?!!u.length:u.reduce((h,f)=>h+f.to-f.from,0)>=a}var qM=(o,t={})=>({state:e,dispatch:r})=>{let n=hr(o,e.schema);return ba(e,n,t)?Jv(e,r):false},YM=()=>({state:o,dispatch:t})=>fA(o,t),QM=o=>({state:t,dispatch:e})=>{let r=hr(o,t.schema);return oT(r)(t,e)},JM=()=>({state:o,dispatch:t})=>mA(o,t);function uw(o,t){return t.nodes[o]?"node":t.marks[o]?"mark":null}function gC(o,t){let e=typeof t=="string"?[t]:t;return Object.keys(o).reduce((r,n)=>(e.includes(n)||(r[n]=o[n]),r),{})}var XM=(o,t)=>({tr:e,state:r,dispatch:n})=>{let i=null,s=null,l=uw(typeof o=="string"?o:o.name,r.schema);if(!l)return false;l==="node"&&(i=hr(o,r.schema)),l==="mark"&&(s=ll(o,r.schema));let a=false;return e.selection.ranges.forEach(u=>{r.doc.nodesBetween(u.$from.pos,u.$to.pos,(c,h)=>{i&&i===c.type&&(a=true,n&&e.setNodeMarkup(h,void 0,gC(c.attrs,t))),s&&c.marks.length&&c.marks.forEach(f=>{s===f.type&&(a=true,n&&e.addMark(h,h+c.nodeSize,s.create(gC(f.attrs,t))));});});}),a},ZM=()=>({tr:o,dispatch:t})=>(t&&o.scrollIntoView(),true),tI=()=>({tr:o,dispatch:t})=>{if(t){let e=new Oo(o.doc);o.setSelection(e);}return true},eI=()=>({state:o,dispatch:t})=>lA(o,t),rI=()=>({state:o,dispatch:t})=>cA(o,t),oI=()=>({state:o,dispatch:t})=>Xv(o,t),nI=()=>({state:o,dispatch:t})=>gA(o,t),iI=()=>({state:o,dispatch:t})=>bA(o,t);function sI(o,t,e={},r={}){return gy(o,t,{slice:false,parseOptions:e,errorOnInvalidContent:r.errorOnInvalidContent})}var lI=(o,{errorOnInvalidContent:t,emitUpdate:e=true,parseOptions:r={}}={})=>({editor:n,tr:i,dispatch:s,commands:l})=>{let{doc:a}=i;if(r.preserveWhitespace!=="full"){let u=sI(o,n.schema,r,{errorOnInvalidContent:t??n.options.enableContentCheck});return s&&i.replaceWith(0,a.content.size,u).setMeta("preventUpdate",!e),true}return s&&i.setMeta("preventUpdate",!e),l.insertContentAt({from:0,to:a.content.size},o,{parseOptions:r,errorOnInvalidContent:t??n.options.enableContentCheck})};function MC(o,t){let e=ll(t,o.schema),{from:r,to:n,empty:i}=o.selection,s=[];i?(o.storedMarks&&s.push(...o.storedMarks),s.push(...o.selection.$head.marks())):o.doc.nodesBetween(r,n,a=>{s.push(...a.marks);});let l=s.find(a=>a.type.name===e.name);return l?{...l.attrs}:{}}function cw(o,t){let e=new ny(o);return t.forEach(r=>{r.steps.forEach(n=>{e.step(n);});}),e}function aI(o){for(let t=0;t<o.edgeCount;t+=1){let{type:e}=o.edge(t);if(e.isTextblock&&!e.hasRequiredAttrs())return e}return null}function IC(o,t,e){let r=[];return o.nodesBetween(t.from,t.to,(n,i)=>{e(n)&&r.push({node:n,pos:i});}),r}function uI(o,t){for(let e=o.depth;e>0;e-=1){let r=o.node(e);if(t(r))return {pos:e>0?o.before(e):0,start:o.start(e),depth:e,node:r}}}function jg(o){return t=>uI(t.$from,o)}function Et(o,t,e){return o.config[t]===void 0&&o.parent?Et(o.parent,t,e):typeof o.config[t]=="function"?o.config[t].bind({...e,parent:o.parent?Et(o.parent,t,e):null}):o.config[t]}function pw(o){return o.map(t=>{let e={name:t.name,options:t.options,storage:t.storage},r=Et(t,"addExtensions",e);return r?[t,...pw(r())]:t}).flat(10)}function cI(o){return typeof o=="function"}function Ne(o,t=void 0,...e){return cI(o)?t?o.bind(t)(...e):o(...e):o}function pI(o={}){return Object.keys(o).length===0&&o.constructor===Object}function hp(o){let t=o.filter(n=>n.type==="extension"),e=o.filter(n=>n.type==="node"),r=o.filter(n=>n.type==="mark");return {baseExtensions:t,nodeExtensions:e,markExtensions:r}}function DC(o){let t=[],{nodeExtensions:e,markExtensions:r}=hp(o),n=[...e,...r],i={default:null,validate:void 0,rendered:true,renderHTML:null,parseHTML:null,keepOnSplit:true,isRequired:false},s=e.filter(u=>u.name!=="text").map(u=>u.name),l=r.map(u=>u.name),a=[...s,...l];return o.forEach(u=>{let c={name:u.name,options:u.options,storage:u.storage,extensions:n},h=Et(u,"addGlobalAttributes",c);if(!h)return;h().forEach(d=>{let g;Array.isArray(d.types)?g=d.types:d.types==="*"?g=a:d.types==="nodes"?g=s:d.types==="marks"?g=l:g=[],g.forEach(P=>{Object.entries(d.attributes).forEach(([A,v])=>{t.push({type:P,name:A,attribute:{...i,...v}});});});});}),n.forEach(u=>{let c={name:u.name,options:u.options,storage:u.storage},h=Et(u,"addAttributes",c);if(!h)return;let f=h();Object.entries(f).forEach(([d,g])=>{let P={...i,...g};typeof P?.default=="function"&&(P.default=P.default()),P?.isRequired&&P?.default===void 0&&delete P.default,t.push({type:u.name,name:d,attribute:P});});}),t}function mI(o){let t=[],e="",r=false,n=false,i=0,s=o.length;for(let l=0;l<s;l+=1){let a=o[l];if(a==="'"&&!n){r=!r,e+=a;continue}if(a==='"'&&!r){n=!n,e+=a;continue}if(!r&&!n){if(a==="("){i+=1,e+=a;continue}if(a===")"&&i>0){i-=1,e+=a;continue}if(a===";"&&i===0){t.push(e),e="";continue}}e+=a;}return e&&t.push(e),t}function SC(o){let t=[],e=mI(o||""),r=e.length;for(let n=0;n<r;n+=1){let i=e[n],s=i.indexOf(":");if(s===-1)continue;let l=i.slice(0,s).trim(),a=i.slice(s+1).trim();l&&a&&t.push([l,a]);}return t}function Qt(...o){return o.filter(t=>!!t).reduce((t,e)=>{let r={...t};return Object.entries(e).forEach(([n,i])=>{if(!r[n]){r[n]=i;return}if(n==="class"){let l=i?String(i).split(" "):[],a=r[n]?r[n].split(" "):[],u=l.filter(c=>!a.includes(c));r[n]=[...a,...u].join(" ");}else if(n==="style"){let l=new Map([...SC(r[n]),...SC(i)]);r[n]=Array.from(l.entries()).map(([a,u])=>`${a}: ${u}`).join("; ");}else r[n]=i;}),r},{})}function yp(o,t){return t.filter(e=>e.type===o.type.name).filter(e=>e.attribute.rendered).map(e=>e.attribute.renderHTML?e.attribute.renderHTML(o.attrs)||{}:{[e.name]:o.attrs[e.name]}).reduce((e,r)=>Qt(e,r),{})}function hI(o){return typeof o!="string"?o:o.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(o):o==="true"?true:o==="false"?false:o}function PC(o,t){return "style"in o?o:{...o,getAttrs:e=>{let r=o.getAttrs?o.getAttrs(e):o.attrs;if(r===false)return false;let n=t.reduce((i,s)=>{let l=s.attribute.parseHTML?s.attribute.parseHTML(e):hI(e.getAttribute(s.name));return l==null?i:{...i,[s.name]:l}},{});return {...r,...n}}}}function AC(o){return Object.fromEntries(Object.entries(o).filter(([t,e])=>t==="attrs"&&pI(e)?false:e!=null))}function wC(o){var t,e;let r={};return !((t=o?.attribute)!=null&&t.isRequired)&&"default"in(o?.attribute||{})&&(r.default=o.attribute.default),((e=o?.attribute)==null?void 0:e.validate)!==void 0&&(r.validate=o.attribute.validate),[o.name,r]}function OC(o,t){var e;let r=DC(o),{nodeExtensions:n,markExtensions:i}=hp(o),s=(e=n.find(u=>Et(u,"topNode")))==null?void 0:e.name,l=Object.fromEntries(n.map(u=>{let c=r.filter(v=>v.type===u.name),h={name:u.name,options:u.options,storage:u.storage,editor:t},f=o.reduce((v,H)=>{let Q=Et(H,"extendNodeSchema",h);return {...v,...Q?Q(u):{}}},{}),d=AC({...f,content:Ne(Et(u,"content",h)),marks:Ne(Et(u,"marks",h)),group:Ne(Et(u,"group",h)),inline:Ne(Et(u,"inline",h)),atom:Ne(Et(u,"atom",h)),selectable:Ne(Et(u,"selectable",h)),draggable:Ne(Et(u,"draggable",h)),code:Ne(Et(u,"code",h)),whitespace:Ne(Et(u,"whitespace",h)),linebreakReplacement:Ne(Et(u,"linebreakReplacement",h)),defining:Ne(Et(u,"defining",h)),isolating:Ne(Et(u,"isolating",h)),attrs:Object.fromEntries(c.map(wC))}),g=Ne(Et(u,"parseHTML",h));g&&(d.parseDOM=g.map(v=>PC(v,c)));let P=Et(u,"renderHTML",h);P&&(d.toDOM=v=>P({node:v,HTMLAttributes:yp(v,c)}));let A=Et(u,"renderText",h);return A&&(d.toText=A),[u.name,d]})),a=Object.fromEntries(i.map(u=>{let c=r.filter(A=>A.type===u.name),h={name:u.name,options:u.options,storage:u.storage,editor:t},f=o.reduce((A,v)=>{let H=Et(v,"extendMarkSchema",h);return {...A,...H?H(u):{}}},{}),d=AC({...f,inclusive:Ne(Et(u,"inclusive",h)),excludes:Ne(Et(u,"excludes",h)),group:Ne(Et(u,"group",h)),spanning:Ne(Et(u,"spanning",h)),code:Ne(Et(u,"code",h)),attrs:Object.fromEntries(c.map(wC))}),g=Ne(Et(u,"parseHTML",h));g&&(d.parseDOM=g.map(A=>PC(A,c)));let P=Et(u,"renderHTML",h);return P&&(d.toDOM=A=>P({mark:A,HTMLAttributes:yp(A,c)})),[u.name,d]}));return new ep({topNode:s,nodes:l,marks:a})}function yI(o){let t=o.filter((e,r)=>o.indexOf(e)!==r);return Array.from(new Set(t))}function by(o){return o.sort((e,r)=>{let n=Et(e,"priority")||100,i=Et(r,"priority")||100;return n>i?-1:n<i?1:0})}function mw(o){let t=by(pw(o)),e=yI(t.map(r=>r.name));return e.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${e.map(r=>`'${r}'`).join(", ")}]. This can lead to issues.`),t}function FC(o,t){let e=mw(o);return OC(e,t)}function dI(o,t,e){let{from:r,to:n}=t,{blockSeparator:i=`
13
-
14
- `,textSerializers:s={}}=e||{},l="";return o.nodesBetween(r,n,(a,u,c,h)=>{var f;a.isBlock&&u>r&&(l+=i);let d=s?.[a.type.name];if(d)return c&&(l+=d({node:a,pos:u,parent:c,index:h,range:t})),false;a.isText&&(l+=(f=a?.text)==null?void 0:f.slice(Math.max(r,u)-u,n-u));}),l}function fI(o){return Object.fromEntries(Object.entries(o.nodes).filter(([,t])=>t.spec.toText).map(([t,e])=>[t,e.spec.toText]))}function bI(o,t){let e=hr(t,o.schema),{from:r,to:n}=o.selection,i=[];o.doc.nodesBetween(r,n,l=>{i.push(l);});let s=i.reverse().find(l=>l.type.name===e.name);return s?{...s.attrs}:{}}function BC(o,t){let e=uw(typeof t=="string"?t:t.name,o.schema);return e==="node"?bI(o,t):e==="mark"?MC(o,t):{}}function gI(o,t=JSON.stringify){let e={};return o.filter(r=>{let n=t(r);return Object.prototype.hasOwnProperty.call(e,n)?false:e[n]=true})}function SI(o){let t=gI(o);return t.length===1?t:t.filter((e,r)=>!t.filter((i,s)=>s!==r).some(i=>e.oldRange.from>=i.oldRange.from&&e.oldRange.to<=i.oldRange.to&&e.newRange.from>=i.newRange.from&&e.newRange.to<=i.newRange.to))}function Sy(o){let{mapping:t,steps:e}=o,r=[];return t.maps.forEach((n,i)=>{let s=[];if(n.ranges.length)n.forEach((l,a)=>{s.push({from:l,to:a});});else {let{from:l,to:a}=e[i];if(l===void 0||a===void 0)return;s.push({from:l,to:a});}s.forEach(({from:l,to:a})=>{let u=t.slice(i).map(l,-1),c=t.slice(i).map(a),h=t.invert().map(u,-1),f=t.invert().map(c);r.push({oldRange:{from:h,to:f},newRange:{from:u,to:c}});});}),SI(r)}function qg(o,t,e){let r=[];return o===t?e.resolve(o).marks().forEach(n=>{let i=e.resolve(o),s=aw(i,n.type);s&&r.push({mark:n,...s});}):e.nodesBetween(o,t,(n,i)=>{!n||n?.nodeSize===void 0||r.push(...n.marks.map(s=>({from:i,to:i+n.nodeSize,mark:s})));}),r}var VC=(o,t,e,r=20)=>{let n=o.doc.resolve(e),i=r,s=null;for(;i>0&&s===null;){let l=n.node(i);l?.type.name===t?s=l:i-=1;}return [s,i]};function zg(o,t,e){return Object.fromEntries(Object.entries(e).filter(([r])=>{let n=o.find(i=>i.type===t&&i.name===r);return n?n.attribute.keepOnSplit:false}))}function AI(o,t,e={}){let{empty:r,ranges:n}=o.selection,i=t?ll(t,o.schema):null;if(r)return !!(o.storedMarks||o.selection.$from.marks()).filter(h=>i?i.name===h.type.name:true).find(h=>_g(h.attrs,e,{strict:false}));let s=0,l=[];if(n.forEach(({$from:h,$to:f})=>{let d=h.pos,g=f.pos;o.doc.nodesBetween(d,g,(P,A)=>{if(i&&P.inlineContent&&!P.type.allowsMarkType(i))return false;if(!P.isText&&!P.marks.length)return;let v=Math.max(d,A),H=Math.min(g,A+P.nodeSize),Q=H-v;s+=Q,l.push(...P.marks.map(U=>({mark:U,from:v,to:H})));});}),s===0)return false;let a=l.filter(h=>i?i.name===h.mark.type.name:true).filter(h=>_g(h.mark.attrs,e,{strict:false})).reduce((h,f)=>h+f.to-f.from,0),u=l.filter(h=>i?h.mark.type!==i&&h.mark.type.excludes(i):true).reduce((h,f)=>h+f.to-f.from,0);return (a>0?a+u:a)>=s}var HC=(o,t)=>{let{$from:e,$to:r,$anchor:n}=o.selection;if(t){let i=jg(l=>l.type.name===t)(o.selection);if(!i)return false;let s=o.doc.resolve(i.pos+1);return n.pos+1===s.end()}return !(r.parentOffset<r.parent.nodeSize-2||e.pos!==r.pos)},GC=o=>{let{$from:t,$to:e}=o.selection;return !(t.parentOffset>0||t.pos!==e.pos)};function rw(o,t){let{nodeExtensions:e}=hp(t),r=e.find(s=>s.name===o);if(!r)return false;let n={name:r.name,options:r.options,storage:r.storage},i=Ne(Et(r,"group",n));return typeof i!="string"?false:i.split(" ").includes("list")}function Py(o,{checkChildren:t=true,ignoreWhitespace:e=false}={}){var r;if(e){if(o.type.name==="hardBreak")return true;if(o.isText)return !/\S/.test((r=o.text)!=null?r:"")}if(o.isText)return !o.text;if(o.isAtom||o.isLeaf)return false;if(o.content.childCount===0)return true;if(t){let n=true;return o.content.forEach(i=>{n!==false&&(Py(i,{ignoreWhitespace:e,checkChildren:t})||(n=false));}),n}return false}function Yg(o){return o instanceof At}function wI(o,t,e){var r;let{selection:n}=t,i=null;if(kC(n)&&(i=n.$cursor),i){let l=(r=o.storedMarks)!=null?r:i.marks();return i.parent.type.allowsMarkType(e)&&(!!e.isInSet(l)||!l.some(u=>u.type.excludes(e)))}let{ranges:s}=n;return s.some(({$from:l,$to:a})=>{let u=l.depth===0?o.doc.inlineContent&&o.doc.type.allowsMarkType(e):false;return o.doc.nodesBetween(l.pos,a.pos,(c,h,f)=>{if(u)return false;if(c.isInline){let d=!f||f.type.allowsMarkType(e),g=!!e.isInSet(c.marks)||!c.marks.some(P=>P.type.excludes(e));u=d&&g;}return !u}),u})}var xI=(o,t={})=>({tr:e,state:r,dispatch:n})=>{let{selection:i}=e,{empty:s,ranges:l}=i,a=ll(o,r.schema);if(n)if(s){let u=MC(r,a);e.addStoredMark(a.create({...u,...t}));}else l.forEach(u=>{let c=u.$from.pos,h=u.$to.pos;r.doc.nodesBetween(c,h,(f,d)=>{let g=Math.max(d,c),P=Math.min(d+f.nodeSize,h);f.marks.find(v=>v.type===a)?f.marks.forEach(v=>{a===v.type&&e.addMark(g,P,a.create({...v.attrs,...t}));}):e.addMark(g,P,a.create(t));});});return wI(r,e,a)},EI=(o,t)=>({tr:e})=>(e.setMeta(o,t),true),vI=(o,t={})=>({state:e,dispatch:r,chain:n})=>{let i=hr(o,e.schema),s;return e.selection.$anchor.sameParent(e.selection.$head)&&(s=e.selection.$anchor.parent.attrs),i.isTextblock?n().command(({commands:l})=>SA(i,{...s,...t})(e)?true:l.clearNodes()).command(({state:l})=>SA(i,{...s,...t})(l,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),false)},TI=o=>({tr:t,dispatch:e})=>{if(e){let{doc:r}=t,n=$u(o,0,r.content.size),i=At.create(r,n);t.setSelection(i);}return true},CI=(o,t)=>({tr:e,state:r,dispatch:n})=>{let{selection:i}=r,s,l;return typeof t=="number"?(s=t,l=t):t&&"from"in t&&"to"in t?(s=t.from,l=t.to):(s=i.from,l=i.to),n&&e.doc.nodesBetween(s,l,(a,u)=>{a.isText||e.setNodeMarkup(u,void 0,{...a.attrs,dir:o});}),true},kI=o=>({tr:t,dispatch:e})=>{if(e){let{doc:r}=t,{from:n,to:i}=typeof o=="number"?{from:o,to:o}:o,s=Pt.atStart(r).from,l=Pt.atEnd(r).to,a=$u(n,s,l),u=$u(i,s,l),c=Pt.create(r,a,u);t.setSelection(c);}return true},NI=o=>({state:t,dispatch:e})=>{let r=hr(o,t.schema);return nT(r)(t,e)};function EC(o,t){let e=o.storedMarks||o.selection.$to.parentOffset&&o.selection.$from.marks();if(e){let r=e.filter(n=>t?.includes(n.type.name));o.tr.ensureMarks(r);}}var LI=({keepMarks:o=true}={})=>({tr:t,state:e,dispatch:r,editor:n})=>{let{selection:i,doc:s}=t,{$from:l,$to:a}=i,u=n.extensionManager.attributes,c=zg(u,l.node().type.name,l.node().attrs);if(i instanceof At&&i.node.isBlock)return !l.parentOffset||!vn(s,l.pos)?false:(r&&(o&&EC(e,n.extensionManager.splittableMarks),t.split(l.pos).scrollIntoView()),true);if(!l.parent.isBlock)return false;let h=a.parentOffset===a.parent.content.size,f=l.depth===0?void 0:aI(l.node(-1).contentMatchAt(l.indexAfter(-1))),d=h&&f?[{type:f,attrs:c}]:void 0,g=vn(t.doc,t.mapping.map(l.pos),1,d);if(!d&&!g&&vn(t.doc,t.mapping.map(l.pos),1,f?[{type:f}]:void 0)&&(g=true,d=f?[{type:f,attrs:c}]:void 0),r){if(g&&(i instanceof Pt&&t.deleteSelection(),t.split(t.mapping.map(l.pos),1,d),f&&!h&&!l.parentOffset&&l.parent.type!==f)){let P=t.mapping.map(l.before()),A=t.doc.resolve(P);l.node(-1).canReplaceWith(A.index(),A.index()+1,f)&&t.setNodeMarkup(t.mapping.map(l.before()),f);}o&&EC(e,n.extensionManager.splittableMarks),t.scrollIntoView();}return g},MI=(o,t={})=>({tr:e,state:r,dispatch:n,editor:i})=>{var s;let l=hr(o,r.schema),{$from:a,$to:u}=r.selection,c=r.selection.node;if(c&&c.isBlock||a.depth<2||!a.sameParent(u))return false;let h=a.node(-1);if(h.type!==l)return false;let f=i.extensionManager.attributes;if(a.parent.content.size===0&&a.node(-1).childCount===a.indexAfter(-1)){if(a.depth===2||a.node(-3).type!==l||a.index(-2)!==a.node(-2).childCount-1)return false;if(n){let v=Z.empty,H=a.index(-1)?1:a.index(-2)?2:3;for(let Ct=a.depth-H;Ct>=a.depth-3;Ct-=1)v=Z.from(a.node(Ct).copy(v));let Q=a.indexAfter(-1)<a.node(-2).childCount?1:a.indexAfter(-2)<a.node(-3).childCount?2:3,U={...zg(f,a.node().type.name,a.node().attrs),...t},j=((s=l.contentMatch.defaultType)==null?void 0:s.createAndFill(U))||void 0;v=v.append(Z.from(l.createAndFill(null,j)||void 0));let at=a.before(a.depth-(H-1));e.replace(at,a.after(-Q),new ht(v,4-H,0));let X=-1;e.doc.nodesBetween(at,e.doc.content.size,(Ct,Nt)=>{if(X>-1)return false;Ct.isTextblock&&Ct.content.size===0&&(X=Nt+1);}),X>-1&&e.setSelection(Pt.near(e.doc.resolve(X))),e.scrollIntoView();}return true}let d=u.pos===a.end()?h.contentMatchAt(0).defaultType:null,g={...zg(f,h.type.name,h.attrs),...t},P={...zg(f,a.node().type.name,a.node().attrs),...t};e.delete(a.pos,u.pos);let A=d?[{type:l,attrs:g},{type:d,attrs:P}]:[{type:l,attrs:g}];if(!vn(e.doc,a.pos,2))return false;if(n){let{selection:v,storedMarks:H}=r,{splittableMarks:Q}=i.extensionManager,U=H||v.$to.parentOffset&&v.$from.marks();if(e.split(a.pos,2,A).scrollIntoView(),!U||!n)return true;let j=U.filter(at=>Q.includes(at.type.name));e.ensureMarks(j);}return true};function vC(o){return !o||o==="1"?null:o}function UC(o,t){return vC(o)===vC(t)}var ow=(o,t)=>{let e=jg(s=>s.type===t)(o.selection);if(!e)return true;let r=o.doc.resolve(Math.max(0,e.pos-1)).before(e.depth);if(r===void 0)return true;let n=o.doc.nodeAt(r);return !(e.node.type===n?.type&&_n(o.doc,e.pos))||!UC(e.node.attrs.type,n?.attrs.type)||o.join(e.pos),true},nw=(o,t)=>{let e=jg(s=>s.type===t)(o.selection);if(!e)return true;let r=o.doc.resolve(e.start).after(e.depth);if(r===void 0)return true;let n=o.doc.nodeAt(r);return !(e.node.type===n?.type&&_n(o.doc,r))||!UC(e.node.attrs.type,n?.attrs.type)||o.join(r),true};function II(o){let t=o.doc,e=t.firstChild;if(!e)return null;let r=t.resolve(1),n=t.resolve(e.nodeSize-1);return Pt.between(r,n)}var RI=(o,t,e,r={})=>({editor:n,tr:i,state:s,dispatch:l,chain:a,commands:u,can:c})=>{let{extensions:h,splittableMarks:f}=n.extensionManager,d=hr(o,s.schema),g=hr(t,s.schema),{selection:P,storedMarks:A}=s,{$from:v,$to:H}=P,Q=v.blockRange(H),U=A||P.$to.parentOffset&&P.$from.marks();if(!Q)return false;let j=jg(ze=>rw(ze.type.name,h))(P),at=P.from===0&&P.to===s.doc.content.size,X=s.doc.content.content,Ct=X.length===1?X[0]:null,Nt=at&&Ct&&rw(Ct.type.name,h)?{node:Ct,pos:0}:null,xe=j??Nt,nr=!!j&&Q.depth>=1&&Q.depth-j.depth<=1,Fr=!!Nt;if((nr||Fr)&&xe){if(xe.node.type===d)return at&&Fr?a().command(({tr:ze,dispatch:ir})=>{let Ee=II(ze);return Ee?(ze.setSelection(Ee),ir&&ir(ze),true):false}).liftListItem(g).run():u.liftListItem(g);if(rw(xe.node.type.name,h)&&d.validContent(xe.node.content))return a().command(()=>(i.setNodeMarkup(xe.pos,d),true)).command(()=>ow(i,d)).command(()=>nw(i,d)).run()}return !e||!U||!l?a().command(()=>c().wrapInList(d,r)?true:u.clearNodes()).wrapInList(d,r).command(()=>ow(i,d)).command(()=>nw(i,d)).run():a().command(()=>{let ze=c().wrapInList(d,r),ir=U.filter(Ee=>f.includes(Ee.type.name));return i.ensureMarks(ir),ze?true:u.clearNodes()}).wrapInList(d,r).command(()=>ow(i,d)).command(()=>nw(i,d)).run()},DI=(o,t={},e={})=>({state:r,commands:n})=>{let{extendEmptyMarkRange:i=false}=e,s=ll(o,r.schema);return AI(r,s,t)?n.unsetMark(s,{extendEmptyMarkRange:i}):n.setMark(s,t)},OI=(o,t,e={})=>({state:r,commands:n})=>{let i=hr(o,r.schema),s=hr(t,r.schema),l=ba(r,i,e),a;return r.selection.$anchor.sameParent(r.selection.$head)&&(a=r.selection.$anchor.parent.attrs),l?n.setNode(s,a):n.setNode(i,{...a,...e})},FI=(o,t={})=>({state:e,commands:r})=>{let n=hr(o,e.schema);return ba(e,n,t)?r.lift(n):r.wrapIn(n,t)},BI=()=>({state:o,dispatch:t})=>{let e=o.plugins;for(let r=0;r<e.length;r+=1){let n=e[r],i;if(n.spec.isInputRules&&(i=n.getState(o))){if(t){let s=o.tr,l=i.transform;for(let a=l.steps.length-1;a>=0;a-=1)s.step(l.steps[a].invert(l.docs[a]));if(i.text){let a=s.doc.resolve(i.from).marks();s.replaceWith(i.from,i.to,o.schema.text(i.text,a));}else s.delete(i.from,i.to);}return true}}return false},VI=(o={})=>({tr:t,dispatch:e,editor:r})=>{let{ignoreClearable:n=false}=o,{selection:i}=t,{empty:s,ranges:l}=i;if(s)return true;let{nonClearableMarks:a}=r.extensionManager;if(e){let u=Object.values(r.schema.marks).filter(c=>n||!a.includes(c.name));l.forEach(c=>{for(let h of u)t.removeMark(c.$from.pos,c.$to.pos,h);});}return true},HI=(o,t={})=>({tr:e,state:r,dispatch:n})=>{var i;let{extendEmptyMarkRange:s=false}=t,{selection:l}=e,a=ll(o,r.schema),{$from:u,empty:c,ranges:h}=l;if(!n)return true;if(c&&s){let{from:f,to:d}=l,g=(i=u.marks().find(A=>A.type===a))==null?void 0:i.attrs,P=aw(u,a,g);P&&(f=P.from,d=P.to),e.removeMark(f,d,a);}else h.forEach(f=>{e.removeMark(f.$from.pos,f.$to.pos,a);});return e.removeStoredMark(a),true},GI=o=>({tr:t,state:e,dispatch:r})=>{let{selection:n}=e,i,s;return typeof o=="number"?(i=o,s=o):o&&"from"in o&&"to"in o?(i=o.from,s=o.to):(i=n.from,s=n.to),r&&t.doc.nodesBetween(i,s,(l,a)=>{if(l.isText)return;let u={...l.attrs};delete u.dir,t.setNodeMarkup(a,void 0,u);}),true},UI=(o,t={})=>({tr:e,state:r,dispatch:n})=>{let i=null,s=null,l=uw(typeof o=="string"?o:o.name,r.schema);if(!l)return false;l==="node"&&(i=hr(o,r.schema)),l==="mark"&&(s=ll(o,r.schema));let a=false;return e.selection.ranges.forEach(u=>{let c=u.$from.pos,h=u.$to.pos,f,d,g,P;e.selection.empty?r.doc.nodesBetween(c,h,(A,v)=>{i&&i===A.type&&(a=true,g=Math.max(v,c),P=Math.min(v+A.nodeSize,h),f=v,d=A);}):r.doc.nodesBetween(c,h,(A,v)=>{v<c&&i&&i===A.type&&(a=true,g=Math.max(v,c),P=Math.min(v+A.nodeSize,h),f=v,d=A),v>=c&&v<=h&&(i&&i===A.type&&(a=true,n&&e.setNodeMarkup(v,void 0,{...A.attrs,...t})),s&&A.marks.length&&A.marks.forEach(H=>{if(s===H.type&&(a=true,n)){let Q=Math.max(v,c),U=Math.min(v+A.nodeSize,h);e.addMark(Q,U,s.create({...H.attrs,...t}));}}));}),d&&(f!==void 0&&n&&e.setNodeMarkup(f,void 0,{...d.attrs,...t}),s&&d.marks.length&&d.marks.forEach(A=>{s===A.type&&n&&e.addMark(g,P,s.create({...A.attrs,...t}));}));}),a},WI=(o,t={})=>({state:e,dispatch:r})=>{let n=hr(o,e.schema);return eT(n,t)(e,r)},zI=(o,t={})=>({state:e,dispatch:r})=>{let n=hr(o,e.schema);return rT(n,t)(e,r)};function WC(o,t){let{selection:e}=o,{$from:r}=e;if(e instanceof At){let i=r.index();return r.parent.canReplaceWith(i,i+1,t)}let n=r.depth;for(;n>=0;){let i=r.index(n);if(r.node(n).contentMatchAt(i).matchType(t))return true;n-=1;}return false}function Yn(o,t){let e=o.getAttribute("style");if(!e)return null;let r=e.split(";").map(i=>i.trim()).filter(Boolean),n=t.toLowerCase();for(let i=r.length-1;i>=0;i-=1){let s=r[i],l=s.indexOf(":");if(l===-1)continue;if(s.slice(0,l).trim().toLowerCase()===n)return s.slice(l+1).trim()}return null}function $I(o){return Object.prototype.toString.call(o).slice(8,-1)}function Gg(o){return $I(o)!=="Object"?false:o.constructor===Object&&Object.getPrototypeOf(o)===Object.prototype}var KI={};iw(KI,{createAtomBlockMarkdownSpec:()=>jI,createBlockMarkdownSpec:()=>qI,createInlineMarkdownSpec:()=>JI,parseAttributes:()=>hw,parseIndentedBlocks:()=>Qg,renderNestedMarkdownContent:()=>Ay,serializeAttributes:()=>yw});function hw(o){if(!o?.trim())return {};let t={},e=[],r=o.replace(/["']([^"']*)["']/g,u=>(e.push(u),`__QUOTED_${e.length-1}__`)),n=r.match(/(?:^|\s)\.([\w-]+)/g);if(n){let u=n.map(c=>c.trim().slice(1));t.class=u.join(" ");}let i=r.match(/(?:^|\s)#([\w-]+)/);i&&(t.id=i[1]);let s=/([a-zA-Z][\w-]*)\s*=\s*(__QUOTED_\d+__)/g;Array.from(r.matchAll(s)).forEach(([,u,c])=>{var h;let f=parseInt(((h=c.match(/__QUOTED_(\d+)__/))==null?void 0:h[1])||"0",10),d=e[f];d&&(t[u]=d.slice(1,-1));});let a=r.replace(/(?:^|\s)\.([\w-]+)/g,"").replace(/(?:^|\s)#([\w-]+)/g,"").replace(/([a-zA-Z][\w-]*)\s*=\s*__QUOTED_\d+__/g,"").trim();return a&&a.split(/\s+/).filter(Boolean).forEach(c=>{c.match(/^[a-zA-Z][\w-]*$/)&&(t[c]=true);}),t}function yw(o){if(!o||Object.keys(o).length===0)return "";let t=[];return o.class&&String(o.class).split(/\s+/).filter(Boolean).forEach(r=>t.push(`.${r}`)),o.id&&t.push(`#${o.id}`),Object.entries(o).forEach(([e,r])=>{e==="class"||e==="id"||(r===true?t.push(e):r!==false&&r!=null&&t.push(`${e}="${String(r)}"`));}),t.join(" ")}function jI(o){let{nodeName:t,name:e,parseAttributes:r=hw,serializeAttributes:n=yw,defaultAttributes:i={},requiredAttributes:s=[],allowedAttributes:l}=o,a=e||t,u=c=>{if(!l)return c;let h={};return l.forEach(f=>{f in c&&(h[f]=c[f]);}),h};return {parseMarkdown:(c,h)=>{let f={...i,...c.attributes};return h.createNode(t,f,[])},markdownTokenizer:{name:t,level:"block",start(c){var h;let f=new RegExp(`^:::${a}(?:\\s|$)`,"m"),d=(h=c.match(f))==null?void 0:h.index;return d!==void 0?d:-1},tokenize(c,h,f){let d=new RegExp(`^:::${a}(?:\\s+\\{([^}]*)\\})?\\s*:::(?:\\n|$)`),g=c.match(d);if(!g)return;let P=g[1]||"",A=r(P);if(!s.find(H=>!(H in A)))return {type:t,raw:g[0],attributes:A}}},renderMarkdown:c=>{let h=u(c.attrs||{}),f=n(h),d=f?` {${f}}`:"";return `:::${a}${d} :::`}}}function qI(o){let{nodeName:t,name:e,getContent:r,parseAttributes:n=hw,serializeAttributes:i=yw,defaultAttributes:s={},content:l="block",allowedAttributes:a}=o,u=e||t,c=h=>{if(!a)return h;let f={};return a.forEach(d=>{d in h&&(f[d]=h[d]);}),f};return {parseMarkdown:(h,f)=>{let d;if(r){let P=r(h);d=typeof P=="string"?[{type:"text",text:P}]:P;}else l==="block"?d=f.parseChildren(h.tokens||[]):d=f.parseInline(h.tokens||[]);let g={...s,...h.attributes};return f.createNode(t,g,d)},markdownTokenizer:{name:t,level:"block",start(h){var f;let d=new RegExp(`^:::${u}`,"m"),g=(f=h.match(d))==null?void 0:f.index;return g!==void 0?g:-1},tokenize(h,f,d){var g;let P=new RegExp(`^:::${u}(?:\\s+\\{([^}]*)\\})?\\s*\\n`),A=h.match(P);if(!A)return;let[v,H=""]=A,Q=n(H),U=1,j=v.length,at="",X=/^:::([\w-]*)(\s.*)?/gm,Ct=h.slice(j);for(X.lastIndex=0;;){let Nt=X.exec(Ct);if(Nt===null)break;let xe=Nt.index,nr=Nt[1];if(!((g=Nt[2])!=null&&g.endsWith(":::"))){if(nr)U+=1;else if(U-=1,U===0){let Fr=Ct.slice(0,xe);at=Fr.trim();let ze=h.slice(0,j+xe+Nt[0].length),ir=[];if(at)if(l==="block")for(ir=d.blockTokens(Fr),ir.forEach(Ee=>{Ee.text&&(!Ee.tokens||Ee.tokens.length===0)&&(Ee.tokens=d.inlineTokens(Ee.text));});ir.length>0;){let Ee=ir[ir.length-1];if(Ee.type==="paragraph"&&(!Ee.text||Ee.text.trim()===""))ir.pop();else break}else ir=d.inlineTokens(at);return {type:t,raw:ze,attributes:Q,content:at,tokens:ir}}}}}},renderMarkdown:(h,f)=>{let d=c(h.attrs||{}),g=i(d),P=g?` {${g}}`:"",A=f.renderChildren(h.content||[],`
15
-
16
- `);return `:::${u}${P}
17
-
18
- ${A}
19
-
20
- :::`}}}function YI(o){if(!o.trim())return {};let t={},e=/(\w+)=(?:"([^"]*)"|'([^']*)')/g,r=e.exec(o);for(;r!==null;){let[,n,i,s]=r;t[n]=i||s,r=e.exec(o);}return t}function QI(o){return Object.entries(o).filter(([,t])=>t!=null).map(([t,e])=>`${t}="${e}"`).join(" ")}function JI(o){let{nodeName:t,name:e,getContent:r,parseAttributes:n=YI,serializeAttributes:i=QI,defaultAttributes:s={},selfClosing:l=false,allowedAttributes:a}=o,u=e||t,c=f=>{if(!a)return f;let d={};return a.forEach(g=>{let P=typeof g=="string"?g:g.name,A=typeof g=="string"?void 0:g.skipIfDefault;if(P in f){let v=f[P];if(A!==void 0&&v===A)return;d[P]=v;}}),d},h=u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return {parseMarkdown:(f,d)=>{let g={...s,...f.attributes};if(l)return d.createNode(t,g);let P=r?r(f):f.content||"";return P?d.createNode(t,g,[d.createTextNode(P)]):d.createNode(t,g,[])},markdownTokenizer:{name:t,level:"inline",start(f){let d=l?new RegExp(`\\[${h}\\s*[^\\]]*\\]`):new RegExp(`\\[${h}\\s*[^\\]]*\\][\\s\\S]*?\\[\\/${h}\\]`),g=f.match(d),P=g?.index;return P!==void 0?P:-1},tokenize(f,d,g){let P=l?new RegExp(`^\\[${h}\\s*([^\\]]*)\\]`):new RegExp(`^\\[${h}\\s*([^\\]]*)\\]([\\s\\S]*?)\\[\\/${h}\\]`),A=f.match(P);if(!A)return;let v="",H="";if(l){let[,U]=A;H=U;}else {let[,U,j]=A;H=U,v=j||"";}let Q=n(H.trim());return {type:t,raw:A[0],content:v.trim(),attributes:Q}}},renderMarkdown:f=>{let d="";r?d=r(f):f.content&&f.content.length>0&&(d=f.content.filter(v=>v.type==="text").map(v=>v.text).join(""));let g=c(f.attrs||{}),P=i(g),A=P?` ${P}`:"";return l?`[${u}${A}]`:`[${u}${A}]${d}[/${u}]`}}}function Qg(o,t,e){var r,n,i,s;let l=o.split(`
21
- `),a=[],u="",c=0,h=t.baseIndentSize||2;for(;c<l.length;){let f=l[c],d=f.match(t.itemPattern);if(!d){if(a.length>0)break;if(f.trim()===""){c+=1,u=`${u}${f}
22
- `;continue}else return}let g=t.extractItemData(d),{indentLevel:P,mainContent:A}=g;u=`${u}${f}
23
- `;let v=[A];for(c+=1;c<l.length;){let j=l[c];if(j.trim()===""){let X=l.slice(c+1).findIndex(xe=>xe.trim()!=="");if(X===-1)break;if((((n=(r=l[c+1+X].match(/^(\s*)/))==null?void 0:r[1])==null?void 0:n.length)||0)>P){v.push(j),u=`${u}${j}
24
- `,c+=1;continue}else break}if((((s=(i=j.match(/^(\s*)/))==null?void 0:i[1])==null?void 0:s.length)||0)>P)v.push(j),u=`${u}${j}
25
- `,c+=1;else break}let H,Q=v.slice(1);if(Q.length>0){let j=Q.map(at=>at.slice(P+h)).join(`
26
- `);j.trim()&&(t.customNestedParser?H=t.customNestedParser(j):H=e.blockTokens(j));}let U=t.createToken(g,H);a.push(U);}if(a.length!==0)return {items:a,raw:u}}function Ay(o,t,e,r){if(!o||!Array.isArray(o.content))return "";let n=typeof e=="function"?e(r):e,[i,...s]=o.content,l=t.renderChildren([i]),a=`${n}${l}`;return s&&s.length>0&&s.forEach((u,c)=>{var h,f;let d=(f=(h=t.renderChild)==null?void 0:h.call(t,u,c+1))!=null?f:t.renderChildren([u]);if(d!=null){let g=d.split(`
27
- `).map(P=>P?t.indent(P):t.indent("")).join(`
28
- `);a+=u.type==="paragraph"?`
29
-
30
- ${g}`:`
31
- ${g}`;}}),a}function zC(o,t){let e={...o};return Gg(o)&&Gg(t)&&Object.keys(t).forEach(r=>{Gg(t[r])&&Gg(o[r])?e[r]=zC(o[r],t[r]):e[r]=t[r];}),e}var Jg=class{constructor(o){var t;this.find=o.find,this.handler=o.handler,this.undoable=(t=o.undoable)!=null?t:true;}};var dw=class{constructor(o={}){this.type="extendable",this.parent=null,this.child=null,this.name="",this.config={name:this.name},this.config={...this.config,...o},this.name=this.config.name;}get options(){return {...Ne(Et(this,"addOptions",{name:this.name}))}}get storage(){return {...Ne(Et(this,"addStorage",{name:this.name,options:this.options}))}}configure(o={}){let t=this.extend({...this.config,addOptions:()=>zC(this.options,o)});return t.name=this.name,t.parent=this.parent,this.child=null,t}extend(o={}){let t=new this.constructor({...this.config,...o});return t.parent=this,this.child=t,t.name="name"in o?o.name:t.parent.name,t}},so=class _C extends dw{constructor(){super(...arguments),this.type="mark";}static create(t={}){let e=typeof t=="function"?t():t;return new _C(e)}static handleExit({editor:t,mark:e}){let{tr:r}=t.state,n=t.state.selection.$from;if(n.pos===n.end()){let s=n.marks();if(!!!s.find(u=>u?.type.name===e.name))return false;let a=s.find(u=>u?.type.name===e.name);return a&&r.removeStoredMark(a),r.insertText(" ",n.pos),t.view.dispatch(r),true}return false}configure(t){return super.configure(t)}extend(t){let e=typeof t=="function"?t():t;return super.extend(e)}},eR=class{constructor(o){this.find=o.find,this.handler=o.handler;}};var sR={};iw(sR,{ClipboardTextSerializer:()=>lR,Commands:()=>aR,Delete:()=>uR,Drop:()=>cR,Editable:()=>pR,FocusEvents:()=>mR,Keymap:()=>hR,Paste:()=>yR,Tabindex:()=>dR,TextDirection:()=>fR,focusEventsPluginKey:()=>KC});var Ft=class $C extends dw{constructor(){super(...arguments),this.type="extension";}static create(t={}){let e=typeof t=="function"?t():t;return new $C(e)}configure(t){return super.configure(t)}extend(t){let e=typeof t=="function"?t():t;return super.extend(e)}},lR=Ft.create({name:"clipboardTextSerializer",addOptions(){return {blockSeparator:void 0}},addProseMirrorPlugins(){return [new Rt({key:new oe("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{let{editor:o}=this,{state:t,schema:e}=o,{doc:r,selection:n}=t,i=fI(e),{blockSeparator:s}=this.options,l={...s!==void 0?{blockSeparator:s}:{},textSerializers:i};return [...n.ranges].sort((u,c)=>u.$from.pos-c.$from.pos).map(({$from:u,$to:c})=>dI(r,{from:u.pos,to:c.pos},l)).join(s??`
32
-
33
- `)}}})]}}),aR=Ft.create({name:"commands",addCommands(){return {...TC}}}),uR=Ft.create({name:"delete",onUpdate({transaction:o,appendedTransactions:t}){var e,r,n;let i=()=>{var s,l,a,u;if((u=(a=(l=(s=this.editor.options.coreExtensionOptions)==null?void 0:s.delete)==null?void 0:l.filterTransaction)==null?void 0:a.call(l,o))!=null?u:o.getMeta("y-sync$"))return;let c=cw(o.before,[o,...t]);Sy(c).forEach(d=>{c.mapping.mapResult(d.oldRange.from).deletedAfter&&c.mapping.mapResult(d.oldRange.to).deletedBefore&&c.before.nodesBetween(d.oldRange.from,d.oldRange.to,(g,P)=>{let A=P+g.nodeSize-2,v=d.oldRange.from<=P&&A<=d.oldRange.to;this.editor.emit("delete",{type:"node",node:g,from:P,to:A,newFrom:c.mapping.map(P),newTo:c.mapping.map(A),deletedRange:d.oldRange,newRange:d.newRange,partial:!v,editor:this.editor,transaction:o,combinedTransform:c});});});let f=c.mapping;c.steps.forEach((d,g)=>{var P,A;if(d instanceof Zs){let v=f.slice(g).map(d.from,-1),H=f.slice(g).map(d.to),Q=f.invert().map(v,-1),U=f.invert().map(H),j=v>0?(P=c.doc.nodeAt(v-1))==null?void 0:P.marks.some(X=>X.eq(d.mark)):false,at=(A=c.doc.nodeAt(H))==null?void 0:A.marks.some(X=>X.eq(d.mark));this.editor.emit("delete",{type:"mark",mark:d.mark,from:d.from,to:d.to,deletedRange:{from:Q,to:U},newRange:{from:v,to:H},partial:!!(at||j),editor:this.editor,transaction:o,combinedTransform:c});}});};(n=(r=(e=this.editor.options.coreExtensionOptions)==null?void 0:e.delete)==null?void 0:r.async)==null||n?setTimeout(i,0):i();}}),cR=Ft.create({name:"drop",addProseMirrorPlugins(){return [new Rt({key:new oe("tiptapDrop"),props:{handleDrop:(o,t,e,r)=>{this.editor.emit("drop",{editor:this.editor,event:t,slice:e,moved:r});}}})]}}),pR=Ft.create({name:"editable",addProseMirrorPlugins(){return [new Rt({key:new oe("editable"),props:{editable:()=>this.editor.options.editable}})]}}),KC=new oe("focusEvents"),mR=Ft.create({name:"focusEvents",addProseMirrorPlugins(){let{editor:o}=this;return [new Rt({key:KC,props:{handleDOMEvents:{focus:(t,e)=>{o.isFocused=true;let r=o.state.tr.setMeta("focus",{event:e}).setMeta("addToHistory",false);return t.dispatch(r),false},blur:(t,e)=>{o.isFocused=false;let r=o.state.tr.setMeta("blur",{event:e}).setMeta("addToHistory",false);return t.dispatch(r),false}}}})]}}),hR=Ft.create({name:"keymap",addKeyboardShortcuts(){let o=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:l})=>{let{selection:a,doc:u}=l,{empty:c,$anchor:h}=a,{pos:f,parent:d}=h,g=h.parent.isTextblock&&f>0?l.doc.resolve(f-1):h,P=g.parent.type.spec.isolating,A=h.pos-h.parentOffset,v=P&&g.parent.childCount===1?A===h.pos:Bt.atStart(u).from===f;return !c||!d.type.isTextblock||d.textContent.length||!v||v&&h.parent.type.name==="paragraph"?false:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:o,"Mod-Backspace":o,"Shift-Backspace":o,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},n={...r},i={...r,"Ctrl-h":o,"Alt-Backspace":o,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return $g()||LC()?i:n},addProseMirrorPlugins(){return [new Rt({key:new oe("clearDocument"),appendTransaction:(o,t,e)=>{if(o.some(P=>P.getMeta("composition")))return;let r=o.some(P=>P.docChanged)&&!t.doc.eq(e.doc),n=o.some(P=>P.getMeta("preventClearDocument"));if(!r||n)return;let{empty:i,from:s,to:l}=t.selection,a=Bt.atStart(t.doc).from,u=Bt.atEnd(t.doc).to;if(i||!(s===a&&l===u)||!Py(e.doc))return;let f=e.tr,d=Kg({state:e,transaction:f}),{commands:g}=new sw({editor:this.editor,state:d});if(g.clearNodes(),!!f.steps.length)return f}})]}}),yR=Ft.create({name:"paste",addProseMirrorPlugins(){return [new Rt({key:new oe("tiptapPaste"),props:{handlePaste:(o,t,e)=>{this.editor.emit("paste",{editor:this.editor,event:t,slice:e});}}})]}}),dR=Ft.create({name:"tabindex",addOptions(){return {value:void 0}},addProseMirrorPlugins(){return [new Rt({key:new oe("tabindex"),props:{attributes:()=>{var o;return !this.editor.isEditable&&this.options.value===void 0?{}:{tabindex:(o=this.options.value)!=null?o:"0"}}}})]}}),fR=Ft.create({name:"textDirection",addOptions(){return {direction:void 0}},addGlobalAttributes(){if(!this.options.direction)return [];let{nodeExtensions:o}=hp(this.extensions);return [{types:o.filter(t=>t.name!=="text").map(t=>t.name),attributes:{dir:{default:this.options.direction,parseHTML:t=>{let e=t.getAttribute("dir");return e&&(e==="ltr"||e==="rtl"||e==="auto")?e:this.options.direction},renderHTML:t=>t.dir?{dir:t.dir}:{}}}}]},addProseMirrorPlugins(){return [new Rt({key:new oe("textDirection"),props:{attributes:()=>{let o=this.options.direction;return o?{dir:o}:{}}}})]}});function Qn(o){return new Jg({find:o.find,handler:({state:t,range:e,match:r})=>{let n=Ne(o.getAttributes,void 0,r);if(n===false||n===null)return null;let{tr:i}=t,s=r[r.length-1],l=r[0];if(s){let a=l.search(/\S/),u=e.from+l.indexOf(s),c=u+s.length;if(qg(e.from,e.to,t.doc).filter(d=>d.mark.type.excluded.find(P=>P===o.type&&P!==d.mark.type)).filter(d=>d.to>u).length)return null;c<e.to&&i.delete(c,e.to),u>e.from&&i.delete(e.from+a,u);let f=e.from+a+s.length;i.addMark(e.from+a,f,o.type.create(n||{})),i.removeStoredMark(o.type);}},undoable:o.undoable})}function Xg(o){return new Jg({find:o.find,handler:({state:t,range:e,match:r})=>{let n=Ne(o.getAttributes,void 0,r)||{},{tr:i}=t,s=e.from,l=e.to,a=o.type.create(n);if(r[1]){let u=r[0].lastIndexOf(r[1]),c=s+u;c>l?c=l:l=c+r[1].length;let h=r[0][r[0].length-1];i.insertText(h,s+r[0].length-1),i.replaceWith(c,l,a);}else if(r[0]){let u=o.type.isInline?s:s-1;i.insert(u,o.type.create(n)).delete(i.mapping.map(s),i.mapping.map(l));}i.scrollIntoView();},undoable:o.undoable})}function wy(o){return new Jg({find:o.find,handler:({state:t,range:e,match:r})=>{let n=t.doc.resolve(e.from),i=Ne(o.getAttributes,void 0,r)||{};if(!n.node(-1).canReplaceWith(n.index(-1),n.indexAfter(-1),o.type))return null;t.tr.delete(e.from,e.to).setBlockType(e.from,e.from,o.type,i);},undoable:o.undoable})}function Qi(o){return new Jg({find:o.find,handler:({state:t,range:e,match:r,chain:n})=>{let i=Ne(o.getAttributes,void 0,r)||{},s=t.tr.delete(e.from,e.to),a=s.doc.resolve(e.from).blockRange(),u=a&&np(a,o.type,i);if(!u)return null;if(s.wrap(a,u),o.keepMarks&&o.editor){let{selection:h,storedMarks:f}=t,{splittableMarks:d}=o.editor.extensionManager,g=f||h.$to.parentOffset&&h.$from.marks();if(g){let P=g.filter(A=>d.includes(A.type.name));s.ensureMarks(P);}}if(o.keepAttributes){let h=o.type.name==="bulletList"||o.type.name==="orderedList"?"listItem":"taskList";n().updateAttributes(h,i).run();}let c=s.doc.resolve(e.from-1).nodeBefore;c&&c.type===o.type&&_n(s.doc,e.from-1)&&(!o.joinPredicate||o.joinPredicate(r,c))&&s.join(e.from-1);},undoable:o.undoable})}var bR=o=>"touches"in o,jC=class{constructor(o){this.directions=["bottom-left","bottom-right","top-left","top-right"],this.minSize={height:8,width:8},this.preserveAspectRatio=false,this.classNames={container:"",wrapper:"",handle:"",resizing:""},this.initialWidth=0,this.initialHeight=0,this.aspectRatio=1,this.isResizing=false,this.activeHandle=null,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.isShiftKeyPressed=false,this.lastEditableState=void 0,this.handleMap=new Map,this.handleMouseMove=l=>{if(!this.isResizing||!this.activeHandle)return;let a=l.clientX-this.startX,u=l.clientY-this.startY;this.handleResize(a,u);},this.handleTouchMove=l=>{if(!this.isResizing||!this.activeHandle)return;let a=l.touches[0];if(!a)return;let u=a.clientX-this.startX,c=a.clientY-this.startY;this.handleResize(u,c);},this.handleMouseUp=()=>{if(!this.isResizing)return;let l=this.element.offsetWidth,a=this.element.offsetHeight;this.onCommit(l,a),this.isResizing=false,this.activeHandle=null,this.container.dataset.resizeState="false",this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp);},this.handleKeyDown=l=>{l.key==="Shift"&&(this.isShiftKeyPressed=true);},this.handleKeyUp=l=>{l.key==="Shift"&&(this.isShiftKeyPressed=false);};var t,e,r,n,i,s;this.node=o.node,this.editor=o.editor,this.element=o.element,this.element.draggable=false,this.contentElement=o.contentElement,this.getPos=o.getPos,this.onResize=o.onResize,this.onCommit=o.onCommit,this.onUpdate=o.onUpdate,(t=o.options)!=null&&t.min&&(this.minSize={...this.minSize,...o.options.min}),(e=o.options)!=null&&e.max&&(this.maxSize=o.options.max),(r=o?.options)!=null&&r.directions&&(this.directions=o.options.directions),(n=o.options)!=null&&n.preserveAspectRatio&&(this.preserveAspectRatio=o.options.preserveAspectRatio),(i=o.options)!=null&&i.className&&(this.classNames={container:o.options.className.container||"",wrapper:o.options.className.wrapper||"",handle:o.options.className.handle||"",resizing:o.options.className.resizing||""}),(s=o.options)!=null&&s.createCustomHandle&&(this.createCustomHandle=o.options.createCustomHandle),this.wrapper=this.createWrapper(),this.container=this.createContainer(),this.applyInitialSize(),this.attachHandles(),this.editor.on("update",this.handleEditorUpdate.bind(this));}get dom(){return this.container}get contentDOM(){var o;return (o=this.contentElement)!=null?o:null}handleEditorUpdate(){let o=this.editor.isEditable;o!==this.lastEditableState&&(this.lastEditableState=o,o?o&&this.handleMap.size===0&&this.attachHandles():this.removeHandles());}update(o,t,e){return o.type!==this.node.type?false:(this.node=o,this.onUpdate?this.onUpdate(o,t,e):true)}destroy(){this.isResizing&&(this.container.dataset.resizeState="false",this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp),this.isResizing=false,this.activeHandle=null),this.editor.off("update",this.handleEditorUpdate.bind(this)),this.container.remove();}createContainer(){let o=document.createElement("div");return o.dataset.resizeContainer="",o.dataset.node=this.node.type.name,o.style.display=this.node.type.isInline?"inline-flex":"flex",this.classNames.container&&(o.className=this.classNames.container),o.appendChild(this.wrapper),o}createWrapper(){let o=document.createElement("div");return o.style.position="relative",o.style.display="block",o.dataset.resizeWrapper="",this.classNames.wrapper&&(o.className=this.classNames.wrapper),o.appendChild(this.element),o}createHandle(o){let t=document.createElement("div");return t.dataset.resizeHandle=o,t.style.position="absolute",this.classNames.handle&&(t.className=this.classNames.handle),t}positionHandle(o,t){let e=t.includes("top"),r=t.includes("bottom"),n=t.includes("left"),i=t.includes("right");e&&(o.style.top="0"),r&&(o.style.bottom="0"),n&&(o.style.left="0"),i&&(o.style.right="0"),(t==="top"||t==="bottom")&&(o.style.left="0",o.style.right="0"),(t==="left"||t==="right")&&(o.style.top="0",o.style.bottom="0");}attachHandles(){this.directions.forEach(o=>{let t;this.createCustomHandle?t=this.createCustomHandle(o):t=this.createHandle(o),t instanceof HTMLElement||(console.warn(`[ResizableNodeView] createCustomHandle("${o}") did not return an HTMLElement. Falling back to default handle.`),t=this.createHandle(o)),this.createCustomHandle||this.positionHandle(t,o),t.addEventListener("mousedown",e=>this.handleResizeStart(e,o)),t.addEventListener("touchstart",e=>this.handleResizeStart(e,o)),this.handleMap.set(o,t),this.wrapper.appendChild(t);});}removeHandles(){this.handleMap.forEach(o=>o.remove()),this.handleMap.clear();}applyInitialSize(){let o=this.node.attrs.width,t=this.node.attrs.height;o?(this.element.style.width=`${o}px`,this.initialWidth=o):this.initialWidth=this.element.offsetWidth,t?(this.element.style.height=`${t}px`,this.initialHeight=t):this.initialHeight=this.element.offsetHeight,this.initialWidth>0&&this.initialHeight>0&&(this.aspectRatio=this.initialWidth/this.initialHeight);}handleResizeStart(o,t){o.preventDefault(),o.stopPropagation(),this.isResizing=true,this.activeHandle=t,bR(o)?(this.startX=o.touches[0].clientX,this.startY=o.touches[0].clientY):(this.startX=o.clientX,this.startY=o.clientY),this.startWidth=this.element.offsetWidth,this.startHeight=this.element.offsetHeight,this.startWidth>0&&this.startHeight>0&&(this.aspectRatio=this.startWidth/this.startHeight);this.getPos();this.container.dataset.resizeState="true",this.classNames.resizing&&this.container.classList.add(this.classNames.resizing),document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("touchmove",this.handleTouchMove),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp);}handleResize(o,t){if(!this.activeHandle)return;let e=this.preserveAspectRatio||this.isShiftKeyPressed,{width:r,height:n}=this.calculateNewDimensions(this.activeHandle,o,t),i=this.applyConstraints(r,n,e);this.element.style.width=`${i.width}px`,this.element.style.height=`${i.height}px`,this.onResize&&this.onResize(i.width,i.height);}calculateNewDimensions(o,t,e){let r=this.startWidth,n=this.startHeight,i=o.includes("right"),s=o.includes("left"),l=o.includes("bottom"),a=o.includes("top");return i?r=this.startWidth+t:s&&(r=this.startWidth-t),l?n=this.startHeight+e:a&&(n=this.startHeight-e),(o==="right"||o==="left")&&(r=this.startWidth+(i?t:-t)),(o==="top"||o==="bottom")&&(n=this.startHeight+(l?e:-e)),this.preserveAspectRatio||this.isShiftKeyPressed?this.applyAspectRatio(r,n,o):{width:r,height:n}}applyConstraints(o,t,e){var r,n,i,s;if(!e){let u=Math.max(this.minSize.width,o),c=Math.max(this.minSize.height,t);return (r=this.maxSize)!=null&&r.width&&(u=Math.min(this.maxSize.width,u)),(n=this.maxSize)!=null&&n.height&&(c=Math.min(this.maxSize.height,c)),{width:u,height:c}}let l=o,a=t;return l<this.minSize.width&&(l=this.minSize.width,a=l/this.aspectRatio),a<this.minSize.height&&(a=this.minSize.height,l=a*this.aspectRatio),(i=this.maxSize)!=null&&i.width&&l>this.maxSize.width&&(l=this.maxSize.width,a=l/this.aspectRatio),(s=this.maxSize)!=null&&s.height&&a>this.maxSize.height&&(a=this.maxSize.height,l=a*this.aspectRatio),{width:l,height:a}}applyAspectRatio(o,t,e){let r=e==="left"||e==="right",n=e==="top"||e==="bottom";return r?{width:o,height:o/this.aspectRatio}:n?{width:t*this.aspectRatio,height:t}:{width:o,height:o/this.aspectRatio}}};var Ge=class qC extends dw{constructor(){super(...arguments),this.type="node";}static create(t={}){let e=typeof t=="function"?t():t;return new qC(e)}configure(t){return super.configure(t)}extend(t){let e=typeof t=="function"?t():t;return super.extend(e)}};function hn(o){return new eR({find:o.find,handler:({state:t,range:e,match:r,pasteEvent:n})=>{let i=Ne(o.getAttributes,void 0,r,n);if(i===false||i===null)return null;let{tr:s}=t,l=r[r.length-1],a=r[0],u=e.to;if(l){let c=a.search(/\S/),h=e.from+a.indexOf(l),f=h+l.length;if(qg(e.from,e.to,t.doc).filter(P=>P.mark.type.excluded.find(v=>v===o.type&&v!==P.mark.type)).filter(P=>P.to>h).length)return null;f<e.to&&s.delete(f,e.to),h>e.from&&s.delete(e.from+c,h),u=e.from+c+l.length,s.addMark(e.from+c,u,o.type.create(i||{})),r.index!==void 0&&r.input!==void 0&&r.index+r[0].length>=r.input.length||s.removeStoredMark(o.type);}}})}chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var xi=Symbol("abort"),Ze=Symbol("activeElement"),vt=Symbol("asyncTaskManager"),Ei=Symbol("bodyBuffer"),Lt=Symbol("buffer"),Jn=Symbol("cachedResponse"),vi=Symbol("callbacks"),ga=Symbol("checked"),al=Symbol("childNodes"),Nr=Symbol("children"),dp=Symbol("classList"),Vo=Symbol("connectedToNode"),Ji=Symbol("disconnectedFromNode"),Lr=Symbol("connectedToDocument"),Mr=Symbol("disconnectedFromDocument"),Ku=Symbol("contentLength"),_e=Symbol("contentType"),jr=Symbol("cssText"),Tn=Symbol("currentScript"),Cn=Symbol("currentTarget"),_t=Symbol("data"),lo=Symbol("defaultView"),Mt=Symbol("destroy"),Sa=Symbol("dirtyness"),q=Symbol("end"),Ar=Symbol("entries");var kn=Symbol("evaluateScript"),Br=Symbol("exceptionObserver"),Jt=Symbol("formNode"),Pa=Symbol("internalId"),F=Symbol("height"),ul=Symbol("immediatePropagationStopped"),Aa=Symbol("indeterminate"),Xi=Symbol("isFirstWrite"),Zi=Symbol("isFirstWriteAfterOpen"),fp=Symbol("isInPassiveEventListener"),Ho=Symbol("isValue"),cl=Symbol("listenerOptions"),ve=Symbol("listeners"),To=Symbol("itemsByName"),pl=Symbol("nextActiveElement"),ju=Symbol("observeMutations"),Go=Symbol("mutationListeners"),k=Symbol("ownerDocument"),Vt=Symbol("ownerElement"),ml=Symbol("propagationStopped"),yn=Symbol("readyStateManager"),qr=Symbol("referrer"),Ti=Symbol("registry"),Uo=Symbol("relList"),bp=Symbol("resetSelection"),$e=Symbol("rootNode"),tr=Symbol("selectNode"),Yr=Symbol("selectedness"),wa=Symbol("selection"),xy=Symbol("setupVMContext"),Le=Symbol("shadowRoot"),W=Symbol("start"),Me=Symbol("style"),Qr=Symbol("target"),wr=Symbol("textAreaNode"),gp=Symbol("unobserveMutations"),ts=Symbol("reportMutation"),xa=Symbol("updateSelectedness"),Be=Symbol("url"),ot=Symbol("value"),B=Symbol("width"),m=Symbol("window"),Zg=Symbol("windowResizeListener"),Ea=Symbol("mutationObservers"),Co=Symbol("openerFrame"),Xn=Symbol("openerWindow"),Ey=Symbol("pointerCaptures"),hl=Symbol("popup"),ct=Symbol("isConnected"),$=Symbol("parentNode"),V=Symbol("nodeType"),it=Symbol("tagName"),$t=Symbol("prefix"),bw=Symbol("scrollHeight"),gw=Symbol("scrollWidth"),tS=Symbol("scrollTop"),eS=Symbol("scrollLeft"),Tt=Symbol("attributes"),Sp=Symbol("attributesProxy"),st=Symbol("namespaceURI"),Pp=Symbol("accessKey");var Sw=Symbol("offsetHeight"),Pw=Symbol("offsetWidth"),Aw=Symbol("offsetLeft"),ww=Symbol("offsetTop"),xw=Symbol("clientHeight"),Ew=Symbol("clientWidth"),vw=Symbol("clientLeft"),Tw=Symbol("clientTop"),ut=Symbol("name"),vy=Symbol("specified"),yl=Symbol("adoptedStyleSheets"),rS=Symbol("implementation"),va=Symbol("readyState"),dl=Symbol("publicId"),fl=Symbol("systemId"),qe=Symbol("validationMessage"),yr=Symbol("validity"),oS=Symbol("returnValue"),es=Symbol("elements");var rs=Symbol("complete"),Zn=Symbol("naturalHeight"),ti=Symbol("naturalWidth"),YC=Symbol("loading"),R=Symbol("x"),D=Symbol("y");var ei=Symbol("files"),sr=Symbol("sheet"),nS=Symbol("volume"),qu=Symbol("paused"),iS=Symbol("currentTime"),sS=Symbol("playbackRate"),lS=Symbol("defaultPlaybackRate"),Ap=Symbol("muted"),Yu=Symbol("defaultMuted"),aS=Symbol("preservesPitch"),Cw=Symbol("buffered"),kw=Symbol("duration"),dr=Symbol("error"),Nw=Symbol("ended"),Lw=Symbol("networkState"),uS=Symbol("textTracks"),Mw=Symbol("seeking"),Iw=Symbol("seekable"),Rw=Symbol("played"),ko=Symbol("options"),Wo=Symbol("content"),Ue=Symbol("mode"),Ta=Symbol("host"),ao=Symbol("setURL"),mt=Symbol("localName"),wp=Symbol("classRegistry"),Ty=Symbol("nodeStream"),No=Symbol("location"),er=Symbol("history"),cS=Symbol("navigator"),pS=Symbol("screen"),mS=Symbol("sessionStorage"),hS=Symbol("localStorage"),Cy=Symbol("sandbox"),wt=Symbol("cloneNode"),Ot=Symbol("appendChild"),Vr=Symbol("removeChild"),uo=Symbol("insertBefore"),xp=Symbol("replaceChild"),Ci=Symbol("tracks"),Ep=Symbol("constraints"),ki=Symbol("capabilities"),Ca=Symbol("settings");var bl=Symbol("removeNamedItem"),J=Symbol("items"),ka=Symbol("selectedOptions"),Hr=Symbol("styleNode"),Na=Symbol("updateSheet"),co=Symbol("clearCache"),We=Symbol("onSetAttribute"),fr=Symbol("onRemoveAttribute"),K=Symbol("nodeArray"),St=Symbol("elementArray"),_=Symbol("cache"),ar=Symbol("affectsCache"),vp=Symbol("forms"),ri=Symbol("affectsComputedStyleCache"),Qu=Symbol("query"),Ju=Symbol("computedStyle"),zo=Symbol("getFormControlItems"),ky=Symbol("getFormControlNamedItem"),yS=Symbol("dataset");var Ni=Symbol("itemsByNamespaceURI"),Kt=Symbol("proxy"),oi=Symbol("setNamedItem"),Jr=Symbol("getTokenList"),gl=Symbol("attributeName"),Nn=Symbol("selectedIndex"),La=Symbol("self"),_o=Symbol("parent"),ni=Symbol("top"),Ny=Symbol("areas"),$o=Symbol("defaultValue"),Li=Symbol("elementIdMap"),Ma=Symbol("clonable"),Xu=Symbol("delegatesFocus"),ns=Symbol("serializable"),Mi=Symbol("slotAssignment"),is=Symbol("assignedNodes"),ii=Symbol("assignedToSlot"),Ly=Symbol("cells"),My=Symbol("rows"),dS=Symbol("headers"),Iy=Symbol("tBodies"),Tp=Symbol("track"),Ry=Symbol("controlsList"),fS=Symbol("mediaKeys"),Dw=Symbol("remote"),bS=Symbol("sinkId"),gS=Symbol("srcObject"),Zu=Symbol("cues"),Ow=Symbol("activeCues"),dn=Symbol("kind"),Sl=Symbol("label"),tc=Symbol("language"),Dy=Symbol("id"),b=Symbol("illegalConstructor"),Fw=Symbol("state"),ss=Symbol("canvas"),Ia=Symbol("popoverTargetElement"),Oy=Symbol("composed"),Pl=Symbol("bubbles"),ls=Symbol("cancelable"),Ir=Symbol("defaultPrevented"),Xr=Symbol("eventPhase"),Bw=Symbol("timeStamp"),ne=Symbol("type"),Fy=Symbol("detail");var By=Symbol("destroyed"),Ie=Symbol("aborted"),Vy=Symbol("browserFrames"),SS=Symbol("windowInternalId"),Y=Symbol("getItemList"),as=Symbol("requiredExtensions"),us=Symbol("systemLanguage"),Hy=Symbol("transform"),be=Symbol("baseVal"),ge=Symbol("animVal"),Gy=Symbol("pathLength");var cs=Symbol("viewBox"),Uy=Symbol("markerUnits"),Wy=Symbol("markerWidth"),zy=Symbol("markerHeight"),xr=Symbol("values"),_y=Symbol("orientType"),$y=Symbol("orientAngle"),Ky=Symbol("refX"),jy=Symbol("refY"),tt=Symbol("readOnly"),Rr=Symbol("preserveAspectRatio"),ps=Symbol("animatedPoints"),ms=Symbol("points"),hs=Symbol("rx"),ys=Symbol("ry"),Ko=Symbol("cx"),jo=Symbol("cy"),ds=Symbol("r"),qy=Symbol("clipPathUnits"),Yy=Symbol("maskUnits"),Qy=Symbol("maskContentUnits"),Jy=Symbol("filterUnits"),Xy=Symbol("primitiveUnits"),Gt=Symbol("href"),fs=Symbol("x1"),bs=Symbol("y1"),gs=Symbol("x2"),Ss=Symbol("y2"),Zy=Symbol("gradientUnits"),td=Symbol("gradientTransform"),ed=Symbol("spreadMethod"),rd=Symbol("patternUnits"),od=Symbol("patternContentUnits"),nd=Symbol("patternTransform"),id=Symbol("fx"),sd=Symbol("fy"),Ps=Symbol("offset"),Ra=Symbol("disabled"),ld=Symbol("textLength"),ad=Symbol("lengthAdjust"),N=Symbol("getAttribute"),T=Symbol("setAttribute"),po=Symbol("z"),ec=Symbol("w"),ud=Symbol("toArray"),rc=Symbol("fromString"),fn=Symbol("fromArray");var Ut=Symbol("m11"),jt=Symbol("m12"),ce=Symbol("m13"),pe=Symbol("m14"),Wt=Symbol("m21"),qt=Symbol("m22"),me=Symbol("m23"),he=Symbol("m24"),te=Symbol("m31"),ie=Symbol("m32"),se=Symbol("m33"),ee=Symbol("m34"),zt=Symbol("m41"),Yt=Symbol("m42"),le=Symbol("m43"),ae=Symbol("m44"),Cp=Symbol("setMatrixValue"),bn=Symbol("translateSelf"),Al=Symbol("rotateSelf"),wl=Symbol("rotateAxisAngleSelf"),As=Symbol("scaleSelf"),cd=Symbol("scale3dSelf"),pd=Symbol("scaleNonUniformSelf"),oc=Symbol("skewXSelf"),nc=Symbol("skewYSelf"),qo=Symbol("multiplySelf"),xl=Symbol("matrix");var Ye=Symbol("getDOMMatrix"),Gr=Symbol("setDOMMatrix"),O=Symbol("attributeValue"),md=Symbol("startOffset"),El=Symbol("method"),hd=Symbol("spacing"),ft=Symbol("in1"),Yo=Symbol("in2"),lt=Symbol("result"),yd=Symbol("bias"),dd=Symbol("divisor"),ws=Symbol("edgeMode"),fd=Symbol("kernelMatrix"),Qo=Symbol("kernelUnitLengthX"),Jo=Symbol("kernelUnitLengthY"),bd=Symbol("orderX"),gd=Symbol("orderY"),Sd=Symbol("preserveAlpha"),Pd=Symbol("targetX"),Ad=Symbol("targetY"),wd=Symbol("diffuseConstant"),xs=Symbol("surfaceScale"),xd=Symbol("scale"),Ed=Symbol("xChannelSelector"),vd=Symbol("yChannelSelector"),Td=Symbol("azimuth"),Cd=Symbol("elevation"),Xo=Symbol("dx"),Zo=Symbol("dy"),Es=Symbol("stdDeviationX"),vs=Symbol("stdDeviationY"),kd=Symbol("tableValues"),Nd=Symbol("slope"),Ld=Symbol("intercept"),Md=Symbol("amplitude"),Id=Symbol("exponent"),QC=Symbol("crossOrigin"),Rd=Symbol("operator"),Dd=Symbol("radiusX"),Od=Symbol("radiusY"),Fd=Symbol("specularConstant"),Ts=Symbol("specularExponent"),Bd=Symbol("pointsAtX"),Vd=Symbol("pointsAtY"),Hd=Symbol("pointsAtZ"),Gd=Symbol("limitingConeAngle"),Ud=Symbol("baseFrequencyX"),Wd=Symbol("baseFrequencyY"),zd=Symbol("numOctaves"),_d=Symbol("seed"),$d=Symbol("stitchTiles"),Kd=Symbol("rotateFromVectorSelf"),jd=Symbol("flipXSelf"),qd=Symbol("flipYSelf"),Yd=Symbol("invertSelf"),Vw=Symbol("getLength"),PS=Symbol("currentScale"),Qd=Symbol("rotate"),Hw=Symbol("bindMethods"),Da=Symbol("xmlProcessingInstruction");var Ln=Symbol("filterNode"),vl=Symbol("customElementReactionStack"),Oa=Symbol("dispatching"),Cs=Symbol("modules"),mo=Symbol("preloads"),Ii=Symbol("body"),AS=Symbol("redirect"),kp=Symbol("referrerPolicy"),wS=Symbol("signal"),Ri=Symbol("bodyUsed"),xS=Symbol("credentials"),Jd=Symbol("blocking"),ic=Symbol("moduleImportMap"),Se=Symbol("dispatchError"),ES=Symbol("supports"),gn=Symbol("reason"),y=Symbol("propertyEventListeners"),ur=Symbol("cssRules"),Tl=Symbol("parentRule"),Sn=Symbol("parentStyleSheet"),tn=Symbol("conditionText"),ks=Symbol("keyText"),Gw=Symbol("media"),Xd=Symbol("styleMap"),sc=Symbol("selectorText"),lc=Symbol("cssParser"),Cl=Symbol("cssRule"),ho=Symbol("rulePrefix"),Lo=Symbol("virtualServerFile"),Uw=Symbol("frames"),kl=Symbol("disableEvaluation"),Ww=Symbol("validateJavaScriptExecutionEnvironment");var Fa=Symbol("openWebSockets"),Zr=Symbol("webSocket"),ac=Symbol("moduleCache"),vS=Symbol("cookieStore"),Zd=Symbol("context"),Np=Symbol("querySelectorCache");chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var zw;(function(o){o.strict="Strict",o.lax="Lax",o.none="None";})(zw||(zw={}));var yo=zw;var TS={key:null,originURL:null,value:null,domain:"",path:"",expires:null,httpOnly:false,secure:false,sameSite:yo.lax};chunkBUNLC3II_cjs.h();var Lp=class{static hasExpired(t){return t.expires&&t.expires.getTime()<Date.now()}};chunkBUNLC3II_cjs.h();var tf=class{static cookieMatchesURL(t,e){let r=e.hostname==="localhost"||e.hostname?.endsWith(".localhost");return (!t.secure||e.protocol==="https:"||r)&&(!t.domain||e.hostname?.endsWith(t.domain))&&(!t.path||e.pathname?.startsWith(t.path))&&(t.sameSite===yo.none&&t.secure||t.originURL?.hostname===e.hostname)}};var uc=class{#t=[];addCookies(t){let e={changed:[],deleted:[]},r=this.#t;for(let n of t){let i=Object.assign({},TS,n);if(i&&i.key&&i.originURL){let s=Lp.hasExpired(i);for(let l=0,a=r.length;l<a;l++){let u=r[l];if(u.key===i.key&&u.originURL.hostname===i.originURL.hostname&&u.path===i.path&&typeof u.value==typeof i.value){s&&e.deleted.push(u),r.splice(l,1);break}}s||(r.push(i),e.changed.push(i));}}return e}getCookies(t=null,e=false){let r=[];for(let n of this.#t)!Lp.hasExpired(n)&&(!e||!n.httpOnly)&&(!t||tf.cookieMatchesURL(n,t))&&r.push(n);return r}clearCookies(){this.#t=[];}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var _w;(function(o){o.fresh="fresh",o.stale="stale";})(_w||(_w={}));var Ba=_w;chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var $w;(function(o){o.invalidStateError="InvalidStateError",o.indexSizeError="IndexSizeError",o.syntaxError="SyntaxError",o.hierarchyRequestError="HierarchyRequestError",o.notSupportedError="NotSupportedError",o.wrongDocumentError="WrongDocumentError",o.invalidNodeTypeError="InvalidNodeTypeError",o.invalidCharacterError="InvalidCharacterError",o.notFoundError="NotFoundError",o.securityError="SecurityError",o.networkError="NetworkError",o.domException="DOMException",o.invalidAccessError="InvalidAccessError",o.unknownError="UnknownError",o.abortError="AbortError",o.timeoutError="TimeoutError",o.encodingError="EncodingError",o.uriMismatchError="URIMismatchError",o.inUseAttributeError="InUseAttributeError",o.namespaceError="NamespaceError";})($w||($w={}));var C=$w;var ye=class extends Error{constructor(t,e=null){super(t),this.name=e||C.domException;}};var Di=class o{[Ar]={};constructor(t){if(t)if(t instanceof o)this[Ar]=JSON.parse(JSON.stringify(t[Ar]));else if(Array.isArray(t))for(let e of t){if(e.length!==2)throw new ye('Failed to construct "Headers": The provided init is not a valid array.',C.invalidStateError);this.append(e[0],e[1]);}else for(let e of Object.keys(t))this.set(e,t[e]);}append(t,e){let r=t.toLowerCase();this[Ar][r]?this[Ar][r].value.push(e):this[Ar][r]={name:t,value:[e]};}delete(t){delete this[Ar][t.toLowerCase()];}get(t){return this[Ar][t.toLowerCase()]?.value.join(", ")??null}set(t,e){this[Ar][t.toLowerCase()]={name:t,value:[e]};}getSetCookie(){let t=this[Ar]["set-cookie"];return t?t.value:[]}has(t){return !!this[Ar][t.toLowerCase()]}forEach(t,e){let r=e??this[m];for(let n of Object.values(this[Ar]))t.call(r,n.value.join(", "),n.name,this);}*keys(){for(let t of Object.values(this[Ar]))yield t.name;}*values(){for(let t of Object.values(this[Ar]))yield t.value.join(", ");}*entries(){for(let t of Object.values(this[Ar]))yield [t.name,t.value.join(", ")];}*[Symbol.iterator](){for(let t of Object.values(this[Ar]))yield [t.name,t.value.join(", ")];}};chunkBUNLC3II_cjs.h();var ef=class{#t=new Set;#e=new Set;#r;constructor(t){this.#r=t;}async load(t){if(!t)throw new Error("Failed to execute 'load' on 'ResponseCacheFileSystem': Directory is not specified.");let e=Ip__default.default.resolve(t),r=[];try{r=await Mp__default.default.promises.readdir(e);}catch{return}let n=[],i=this.#r;for(let s of r)s.endsWith(".json")&&n.push(Mp__default.default.promises.readFile(Ip__default.default.join(e,s),"utf8").then(l=>{let a=JSON.parse(l);if(a.response&&a.request&&!a.virtual)return a.response.headers=new Di(a.response.headers),a.request.headers=new Di(a.request.headers),Mp__default.default.promises.readFile(Ip__default.default.join(e,s.split(".")[0]+".data")).then(u=>{a.response.body=u;let c=i.get(a.response.url);c||(c=[],i.set(a.response.url,c)),c.push(a);}).catch(()=>{let u=i.get(a.response.url);u||(u=[],i.set(a.response.url,u)),u.push(a);})}).catch(()=>{}));await Promise.all(n);}async save(t){if(!t)throw new Error("Failed to execute 'store' on 'ResponseCacheFileSystem': Directory is not specified.");if(!this.#r.size)return;let e=Ip__default.default.resolve(t);if(!this.#t.has(e)){this.#t.add(e);try{await Mp__default.default.promises.mkdir(e,{recursive:!0});}catch{}}let n=this.#r,i=[];for(let s of n.values())for(let l of s)if(!l.virtual){let a={},u={};for(let[d,g]of l.response.headers.entries())a[d]=g;for(let[d,g]of l.request.headers.entries())u[d]=g;let c={...l,response:{...l.response,headers:a,body:null},request:{...l.request,headers:u}},h=JSON.stringify(c,null,3),f=gR__default.default.createHash("md5").update(h).digest("hex");this.#e.has(f)||(this.#e.add(f),i.push(Mp__default.default.promises.writeFile(Ip__default.default.join(e,`${f}.json`),h)),l.response.body&&i.push(Mp__default.default.promises.writeFile(Ip__default.default.join(e,`${f}.data`),l.response.body)));}await Promise.all(i);}};var SR=["Cache-Control","Last-Modified","Vary","ETag"],cc=class{fileSystem;#t=new Map;constructor(){this.fileSystem=new ef(this.#t);}get(t){if(t.headers.get("Cache-Control")?.includes("no-cache"))return null;let e=t.url,r=this.#t.get(e);if(r)for(let n=0,i=r.length;n<i;n++){let s=r[n],l=s.request.method===t.method;if(l)for(let a of Object.keys(s.vary)){let u=t.headers.get(a);if(u!==null&&s.vary[a]!==u){l=false;break}}if(l){if(s.expires&&s.expires<Date.now()){if(s.lastModified)s.state=Ba.stale;else if(!s.etag)return r.splice(n,1),null}return s}}return null}add(t,e){if(t.method!=="GET"&&t.method!=="HEAD"||t.headers.get("Cache-Control")?.includes("no-cache"))return null;let r=t.url,n=this.get(t);if(e.status===304){if(!n)throw new Error("ResponseCache: Cached response not found.");for(let i of SR)e.headers.has(i)&&n.response.headers.set(i,e.headers.get(i));n.cacheUpdateTime=Date.now(),n.state=Ba.fresh;}else {if(n){let s=this.#t.get(r);if(s){let l=s.indexOf(n);l!==-1&&s.splice(l,1);}}n={response:{status:e.status,statusText:e.statusText,url:e.url,headers:new Di(e.headers),waitingForBody:e.waitingForBody,body:e.body??null},request:{headers:t.headers,method:t.method},vary:{},expires:null,etag:null,cacheUpdateTime:Date.now(),lastModified:null,mustRevalidate:false,staleWhileRevalidate:false,state:Ba.fresh,virtual:e.virtual??false};let i=this.#t.get(r);i||(i=[],this.#t.set(r,i)),i.push(n);}if(e.headers.has("Cache-Control")){let i=e.headers.get("Age");for(let s of e.headers.get("Cache-Control").split(",")){let[l,a]=s.trim().split("=");switch(l){case "max-age":n.expires=Date.now()+parseFloat(a)*1e3-(i?parseFloat(i)*1e3:0);break;case "no-cache":case "no-store":let u=this.#t.get(r);if(u){let c=u.indexOf(n);c!==-1&&u.splice(c,1);}return null;case "must-revalidate":n.mustRevalidate=true;break;case "stale-while-revalidate":n.staleWhileRevalidate=true;break}}}if(e.headers.has("Last-Modified")&&(n.lastModified=Date.parse(e.headers.get("Last-Modified"))),e.headers.has("Vary"))for(let i of e.headers.get("Vary").split(",")){let s=i.trim(),l=t.headers.get(s);l&&(n.vary[s]=l);}if(e.headers.has("ETag")&&(n.etag=e.headers.get("ETag")),!n.expires){let i=e.headers.get("Expires");i&&(n.expires=Date.parse(i));}if(!n.etag&&(!n.expires||n.expires<Date.now())){let i=this.#t.get(r);if(i){let s=i.indexOf(n);s!==-1&&i.splice(s,1);}return null}return n}clear(t){if(t)if(t.toTime)for(let e of t.url?[t.url]:this.#t.keys()){let r=this.#t.get(e);if(r)for(let n=0,i=r.length;n<i;n++)r[n].cacheUpdateTime<t.toTime&&(r.splice(n,1),n--,i--);}else t.url&&this.#t.delete(t.url);else this.#t.clear();}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Kw;(function(o){o[o.log=0]="log",o[o.info=1]="info",o[o.warn=2]="warn",o[o.error=3]="error";})(Kw||(Kw={}));var Dr=Kw;chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var jw;(function(o){o[o.elementNode=1]="elementNode",o[o.attributeNode=2]="attributeNode",o[o.textNode=3]="textNode",o[o.cdataSectionNode=4]="cdataSectionNode",o[o.commentNode=8]="commentNode",o[o.documentNode=9]="documentNode",o[o.documentTypeNode=10]="documentTypeNode",o[o.documentFragmentNode=11]="documentFragmentNode",o[o.processingInstructionNode=7]="processingInstructionNode";})(jw||(jw={}));var L=jw;chunkBUNLC3II_cjs.h();var qw;(function(o){o[o.none=0]="none",o[o.capturing=1]="capturing",o[o.atTarget=2]="atTarget",o[o.bubbling=3]="bubbling";})(qw||(qw={}));var Pe=qw;var M=class o{static NONE=Pe.none;static CAPTURING_PHASE=Pe.capturing;static AT_TARGET=Pe.atTarget;static BUBBLING_PHASE=Pe.bubbling;NONE=o.NONE;CAPTURING_PHASE=o.CAPTURING_PHASE;AT_TARGET=o.AT_TARGET;BUBBLING_PHASE=o.BUBBLING_PHASE;[Oy]=false;[Pl]=false;[ls]=false;[Ir]=false;[Xr]=Pe.none;[Bw]=performance.now();[ne];[Oa]=false;[ul]=false;[ml]=false;[Qr]=null;[Cn]=null;[fp]=false;constructor(t,e=null){this[ne]=t,this[Pl]=e?.bubbles??false,this[ls]=e?.cancelable??false,this[Oy]=e?.composed??false;}get composed(){return this[Oy]}get bubbles(){return this[Pl]}get cancelable(){return this[ls]}get defaultPrevented(){return this[Ir]}get eventPhase(){return this[Xr]}get timeStamp(){return this[Bw]}get type(){return this[ne]}get target(){return this[Qr]}get currentTarget(){return this[Cn]}get cancelBubble(){return this[ml]}composedPath(){if(!this[Qr])return [];let t=[],e=this[Qr];for(;e;)if(t.push(e),e.parentNode)e=e.parentNode;else if(this[Oy]&&e[V]===L.documentFragmentNode&&e.host)e=e.host;else if(e[V]===L.documentNode&&this[ne]!=="load")e=e[m];else break;return t}initEvent(t,e=false,r=false){this[ne]=t,this[Pl]=e,this[ls]=r,this[ml]=false,this[ul]=false,this[Ir]=false;}preventDefault(){!this[fp]&&this.cancelable&&(this[Ir]=true);}stopImmediatePropagation(){this[ul]=true;}stopPropagation(){this[ml]=true;}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Yw;(function(o){o.log="log",o.table="table",o.trace="trace",o.dir="dir",o.dirxml="dirxml",o.group="group",o.groupCollapsed="groupCollapsed",o.debug="debug",o.timeLog="timeLog",o.info="info",o.count="count",o.timeEnd="timeEnd",o.warn="warn",o.countReset="countReset",o.error="error",o.assert="assert";})(Yw||(Yw={}));var rr=Yw;var rf=class{static toString(t){if(this.isLogEntryCollapsed(t))return "";let e=this.getLogEntryGroupTabbing(t),r=e;for(let n of t.message)if(r+=r!==""&&r!==e?" ":"",typeof n=="object"&&(n===null||n.constructor.name==="Object"||Array.isArray(n)))try{r+=JSON.stringify(n);}catch{r+=new Error("Failed to JSON stringify object in log entry.").stack.replace(/\n at/gm,`
34
- `+e+"at");}else typeof n=="object"&&n.message&&n.stack?r+=n.stack.replace(/\n at/gm,`
35
- `+e+"at"):r+=this.getLogEntryIcon(t)+String(n);return r+`
36
- `}static getLogEntryIcon(t){switch(t.type){case rr.group:return "\u25BC ";case rr.groupCollapsed:return "\u25B6 "}return ""}static getLogEntryGroupTabbing(t){let e="",r=t.type===rr.group||t.type===rr.groupCollapsed?t.group?.parent:t.group;for(;r;)e+=" ",r=r.parent;return e}static isLogEntryCollapsed(t){let e=t.type===rr.group||t.type===rr.groupCollapsed?t.group?.parent:t.group;for(;e;){if(e.collapsed)return true;e=e.parent;}return false}};var Va=class{#t=[];#e={print:[],clear:[]};#r=false;get closed(){return this.#r}print(t){this.#r||(this.#t.push(t),this.dispatchEvent(new M("print")));}clear(){this.#r||(this.#t=[],this.dispatchEvent(new M("clear")));}close(){this.#r||(this.#t=[],this.#e={print:[],clear:[]},this.#r=true);}addEventListener(t,e){if(!this.#r){if(!this.#e[t])throw new Error(`Event type "${t}" is not supported.`);this.#e[t].push(e);}}removeEventListener(t,e){if(this.#r)return;if(!this.#e[t])throw new Error(`Event type "${t}" is not supported.`);let r=this.#e[t].indexOf(e);r!==-1&&this.#e[t].splice(r,1);}dispatchEvent(t){if(!this.#r)switch(t.type){case "print":case "clear":for(let e of this.#e[t.type])e(t);break;default:throw new Error(`Event type "${t.type}" is not supported.`)}}read(){let t=this.#t;return this.#t=[],t}readAsString(t=Dr.log){let e=this.read(),r="";for(let n of e)n.level>=t&&(r+=rf.toString(n));return r}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var pc=class extends Error{constructor(t){super(t),this.name="AsyncTaskManagerDebugError";}};var Pn={setTimeout:globalThis.setTimeout.bind(globalThis),clearTimeout:globalThis.clearTimeout.bind(globalThis),clearImmediate:globalThis.clearImmediate.bind(globalThis)},Oi=class{static taskID=0;runningTasks={};runningTaskCount=0;runningTimers=[];runningImmediates=[];debugTrace=new Map;waitUntilCompleteTimer=null;waitUntilCompleteResolvers=[];destroyed=false;#t=null;#e;constructor(t){this.#e=t;}waitUntilComplete(){return new Promise((t,e)=>{this.waitUntilCompleteResolvers.push({resolve:t,reject:e}),this.resolveWhenComplete();})}abort(){return this.destroyed?new Promise((t,e)=>{this.waitUntilCompleteResolvers.push({resolve:t,reject:e}),this.resolveWhenComplete();}):this.abortAll(false)}destroy(){return this.destroyed?new Promise((t,e)=>{this.waitUntilCompleteResolvers.push({resolve:t,reject:e}),this.resolveWhenComplete();}):this.abortAll(true)}startTimer(t){if(this.destroyed){Pn.clearTimeout(t);return}this.waitUntilCompleteTimer&&(Pn.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null),this.runningTimers.push(t),this.#e.page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.set(t,new pc().stack);}endTimer(t){if(this.destroyed){Pn.clearTimeout(t);return}let e=this.runningTimers.indexOf(t);e!==-1&&(this.runningTimers.splice(e,1),this.resolveWhenComplete()),this.#e.page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.delete(t);}startImmediate(t){if(this.destroyed){Pn.clearImmediate(t);return}this.waitUntilCompleteTimer&&(Pn.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null),this.runningImmediates.push(t),this.#e.page?.context?.browser?.settings?.debug?.traceWaitUntilComplete>0&&this.debugTrace.set(t,new pc().stack);}endImmediate(t){if(this.destroyed){Pn.clearImmediate(t);return}let e=this.runningImmediates.indexOf(t);e!==-1&&(this.runningImmediates.splice(e,1),this.resolveWhenComplete()),this.#e.page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.delete(t);}startTask(t){if(this.destroyed)throw t&&t(this.destroyed),new this.#e.window.Error("Failed to execute 'startTask()' on 'AsyncTaskManager': The asynchronous task manager has been destroyed. This error can be thrown if scripts continue to run while a browser frame is closed.");this.waitUntilCompleteTimer&&(Pn.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null);let e=this.newTaskID();return this.runningTasks[e]=t||(()=>{}),this.runningTaskCount++,this.#e.page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.set(e,new pc().stack),e}endTask(t){this.destroyed||(this.runningTasks[t]&&(delete this.runningTasks[t],this.runningTaskCount--,this.resolveWhenComplete()),this.#e.page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.delete(t));}getTaskCount(){return this.runningTaskCount}newTaskID(){return this.constructor.taskID++,this.constructor.taskID}resolveWhenComplete(){this.applyDebugging(),!(this.runningTaskCount||this.runningTimers.length||this.runningImmediates.length)&&(this.waitUntilCompleteTimer&&(Pn.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null),this.waitUntilCompleteTimer=Pn.setTimeout(()=>{if(this.waitUntilCompleteTimer=null,!this.runningTaskCount&&!this.runningTimers.length&&!this.runningImmediates.length){this.#t&&Pn.clearTimeout(this.#t);let t=this.waitUntilCompleteResolvers;this.waitUntilCompleteResolvers=[];for(let e of t)e.resolve();this.destroyed=false;}else this.applyDebugging();},1));}applyDebugging(){let t=this.#e.page.context.browser.settings.debug;!t?.traceWaitUntilComplete||t.traceWaitUntilComplete<1||this.#t||(this.#t=Pn.setTimeout(()=>{this.#t=null;let e=`The maximum time was reached for "waitUntilComplete()".
37
-
38
- ${this.debugTrace.size} task${this.debugTrace.size===1?"":"s"} did not end in time.
39
-
40
- The following traces were recorded:
41
-
42
- `,r=1;for(let[i,s]of this.debugTrace.entries())e+=`${typeof i=="number"?"Task":"Timer"} #${r}
43
- \u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E${s.replace(/AsyncTaskManagerDebugError:{0,1}/,"").replace(/\s+at /gm,`
44
- > `)}
45
-
46
- `,r++;let n=new Error(e);for(let i of this.waitUntilCompleteResolvers)i.reject(n);this.abortAll(true);},t.traceWaitUntilComplete));}abortAll(t){let e=this.runningTimers,r=this.runningImmediates,n=this.runningTasks;t&&(this.destroyed=true),this.runningTasks={},this.runningTaskCount=0,this.runningImmediates=[],this.runningTimers=[],this.debugTrace=new Map,this.waitUntilCompleteTimer&&(Pn.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null);for(let i of r)Pn.clearImmediate(i);for(let i of e)Pn.clearTimeout(i);for(let i of Object.keys(n))n[i](t);return new Promise((i,s)=>{this.waitUntilCompleteResolvers.push({resolve:i,reject:s}),this.resolveWhenComplete();})}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var JC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Rp=class{static btoa(t){let e=t.toString();if(/[^\u0000-\u00ff]/.test(e))throw new ye("Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.",C.invalidCharacterError);let r="",n=-6,i=0,s=0,l=0,a;for(;s<e.length||n>-6;)n<0&&(s<e.length?(a=e.charCodeAt(s++),l+=8):a=0,i=(i&255)<<8|a&255,n+=8),r+=JC.charAt(l>0?i>>n&63:64),n-=6,l-=6;return r}static atob(t){let e=t.toString();if(/[^\u0000-\u00ff]/.test(e))throw new ye("Failed to execute 'atob' on 'Window': The string to be decoded contains characters outside of the Latin1 range.",C.invalidCharacterError);if(/[^A-Za-z\d+/=]/.test(e)||e.length%4==1)throw new ye("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.",C.invalidCharacterError);let r="",n=-8,i=0,s,l;for(let a=0;a<e.length;a++)(s=JC.indexOf(e.charAt(a)))<0||(i=i<<6|s&63,(n+=6)>=0&&(l=i>>n&255,s!==64&&(r+=String.fromCharCode(l)),i&=63,n-=8));return r}};chunkBUNLC3II_cjs.h();var Qw;(function(o){o.tryAndCatch="tryAndCatch",o.processLevel="processLevel",o.disabled="disabled";})(Qw||(Qw={}));var fe=Qw;chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Ae=class o{type="";[Lt];constructor(t,e){let r=[];if(t)for(let n of t){let i;n instanceof ArrayBuffer?i=buffer.Buffer.from(new Uint8Array(n)):n instanceof o?i=n[Lt]:n instanceof buffer.Buffer?i=n:ArrayBuffer.isView(n)?i=buffer.Buffer.from(new Uint8Array(n.buffer,n.byteOffset,n.byteLength)):i=buffer.Buffer.from(typeof n=="string"?n:String(n)),r.push(i);}this[Lt]=buffer.Buffer.concat(r),e&&e.type&&e.type.match(/^[\u0020-\u007E]*$/)&&(this.type=String(e.type).toLowerCase());}get size(){return this[Lt].length}slice(t=0,e=null,r=""){let n=this.size,i,s,l;t===void 0?i=0:t<0?i=Math.max(n+t,0):i=Math.min(t,n),e===null?s=n:e<0?s=Math.max(n+e,0):s=Math.min(e,n),r===void 0?l="":l=r;let a=Math.max(s-i,0),c=this[Lt].slice(i,i+a),h=new o([],{type:l});return h[Lt]=c,h}async arrayBuffer(){return new Uint8Array(this[Lt]).buffer}async text(){return this[Lt].toString()}stream(){let t=this[Lt];return new web.ReadableStream({start(e){e.enqueue(t),e.close();}})}toString(){return "[object Blob]"}};var Ha=class{#t;#e=[];constructor(t){if(!t)throw new TypeError("Illegal constructor");this.#t=t;}async read(){if((await this.#t.navigator.permissions.query({name:"clipboard-read"})).state==="denied")throw new this.#t.DOMException("Failed to execute 'read' on 'Clipboard': The request is not allowed");return this.#e}async readText(){if((await this.#t.navigator.permissions.query({name:"clipboard-read"})).state==="denied")throw new this.#t.DOMException("Failed to execute 'readText' on 'Clipboard': The request is not allowed");let e="";for(let r of this.#e)if(r.types.includes("text/plain")){let n=await r.getType("text/plain");typeof n=="string"?e+=n:e+=await n.text();}return e}async write(t){if((await this.#t.navigator.permissions.query({name:"clipboard-write"})).state==="denied")throw new this.#t.DOMException("Failed to execute 'write' on 'Clipboard': The request is not allowed");this.#e=t;}async writeText(t){if((await this.#t.navigator.permissions.query({name:"clipboard-write"})).state==="denied")throw new this.#t.DOMException("Failed to execute 'writeText' on 'Clipboard': The request is not allowed");this.#e=[new this.#t.ClipboardItem({"text/plain":new Ae([t],{type:"text/plain"})})];}};chunkBUNLC3II_cjs.h();var Dp=class{presentationStyle="unspecified";#t;constructor(t,e){this.#t=t,e?.presentationStyle&&(this.presentationStyle=e.presentationStyle);}get types(){return Object.keys(this.#t)}async getType(t){if(!this.#t[t])throw new ye(`Failed to execute 'getType' on 'ClipboardItem': The type '${t}' was not found`);return this.#t[t]instanceof Ae?this.#t[t]:new Ae([await this.#t[t]],{type:t})}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var et=class{static[Vy]=new Map;static[SS]=0;#t;constructor(t){this.#t=t;}getSettings(){return this.getBrowserFrame()?.page.context.browser.settings||null}getBrowser(){return this.getBrowserFrame()?.page.context.browser||null}getBrowserPage(){return this.getBrowserFrame()?.page||null}getBrowserContext(){return this.getBrowserFrame()?.page.context||null}getBrowserFrame(){return this.#t&&this.constructor[Vy].get(this.#t[Pa])||null}getAsyncTaskManager(){return this.getBrowserFrame()?.[vt]||null}static setWindowBrowserFrameRelation(t,e){let r=this[Vy];t[Pa]===-1&&(t[Pa]=this[SS],this[SS]++),r.set(t[Pa],e);}static removeWindowBrowserFrameRelation(t){this[Vy].delete(t[Pa]);}};var Dt=class{[ve]={capturing:new Map,bubbling:new Map};[cl]={capturing:new Map,bubbling:new Map};get[Symbol.toStringTag](){return "EventTarget"}addEventListener(t,e,r){r=typeof r=="boolean"?{capture:r}:r||{};let n=r.capture?"capturing":"bubbling",i=this[ve][n].get(t),s;i?s=this[cl][n].get(t):(i=[],s=[],this[ve][n].set(t,i),this[cl][n].set(t,s)),!i.includes(e)&&(i.push(e),s.push(r),r.signal&&!r.signal.aborted&&r.signal.addEventListener("abort",()=>{this.removeEventListener(t,e);}));}removeEventListener(t,e){let r=this[ve].bubbling.get(t);if(r){let i=r.indexOf(e);if(i!==-1){r.splice(i,1),this[cl].bubbling.get(t).splice(i,1);return}}let n=this[ve].capturing.get(t);if(n){let i=n.indexOf(e);i!==-1&&(n.splice(i,1),this[cl].capturing.get(t).splice(i,1));}}dispatchEvent(t){if(!(t instanceof M))throw new this[m].TypeError("Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1 is not of type 'Event'.");return !t[Oa]&&(t[ne]!=="load"||!t[Qr])?(t[Oa]=true,t[Qr]=this[Kt]||this,this.#t(t),t[Oa]=false,!(t[ls]&&t[Ir])):(this.#e(t),!(t[ls]&&t[Ir]))}attachEvent(t,e){this.addEventListener(t.replace("on",""),e);}detachEvent(t,e){this.removeEventListener(t.replace("on",""),e);}[Mt](){this[ve].capturing.clear(),this[ve].bubbling.clear(),this[cl].capturing.clear(),this[cl].bubbling.clear();}#t(t){let e=t.composedPath();t[Xr]=Pe.capturing;for(let r=e.length-1;r>=0;r--)if(t[Cn]=e[r],e[r].dispatchEvent(t),t[ml]||t[ul]){t[Xr]=Pe.none,t[Cn]=null;return}if(t[Xr]=Pe.atTarget,t[Cn]=this[Kt]||this,t[Qr].dispatchEvent(t),t[Xr]=Pe.bubbling,t[Pl]&&!t[ml]&&!t[ul]){for(let r=1,n=e.length;r<n;r++)if(t[Cn]=e[r],e[r].dispatchEvent(t),t[ml]||t[ul]){t[Xr]=Pe.none,t[Cn]=null;return}}t[Xr]=Pe.none,t[Cn]=null;}#e(t){let e=this[m],r=e?new et(e).getSettings():null,n=t.eventPhase===Pe.capturing?"capturing":"bubbling",i=this[ve][n].get(t.type)?.slice();if(i&&i.length){let s=this[cl][n].get(t.type).slice();for(let l=0,a=i.length;l<a;l++){let u=i[l],c=s[l];if(c?.passive&&(t[fp]=true),e&&(this!==e||t.type!=="error")&&!r?.disableErrorCapturing&&r?.errorCapture===fe.tryAndCatch)if(u.handleEvent){let h;try{h=u.handleEvent.call(u,t);}catch(f){e[Se](f);}h instanceof Promise&&h.catch(f=>e[Se](f));}else {let h;try{h=u.call(this,t);}catch(f){e[Se](f);}h instanceof Promise&&h.catch(f=>e[Se](f));}else u.handleEvent?u.handleEvent.call(u,t):u.call(this,t);if(t[fp]=false,c?.once&&(i.splice(l,1),s.splice(l,1),this.removeEventListener(t.type,u),l--,a--),t[ul])return}}if(t.eventPhase!==Pe.capturing){let s="on"+t.type.toLowerCase(),l=this[y],a=!l&&Object.hasOwn(this,s)&&this.constructor.name!=="EventTarget";if(l||a){let u=l?.get(s)??this[s];if(typeof u=="function")if(e&&(this!==e||t.type!=="error")&&!r?.disableErrorCapturing&&r?.errorCapture===fe.tryAndCatch){let c;try{c=u(t);}catch(h){e[Se](h);}c instanceof Promise&&c.catch(h=>e[Se](h));}else u(t);}}}};chunkBUNLC3II_cjs.h();var Ga=class extends M{changed;deleted;constructor(t,e=null){super(t,e),this.changed=e?.changed??[],this.deleted=e?.deleted??[];}};chunkBUNLC3II_cjs.h();var Ve=class extends url.URL{constructor(t,e){try{super(t,e);}catch(r){throw super("about:blank"),this[m]?new this[m].TypeError("Invalid URL"):r}}static createObjectURL(t){if(t instanceof Ae){let e=new buffer.Blob([t[Lt]],{type:t.type});return super.createObjectURL(e)}return super.createObjectURL(t)}};var mc=class extends Dt{#t;constructor(t,e){if(super(),t!==b)throw new TypeError("Illegal constructor");this.#t=e;}async get(t){let e=await this.getAll(t);return e.length>0?e[0]:null}async getAll(t){let e=new et(this.#t).getBrowserFrame();if(!e)return [];let r=typeof t=="string"?{name:t}:t||{},n;if(r.url){if(n=new Ve(r.url,this.#t.location.href),n.origin!==this.#t.location.origin)throw new this.#t.DOMException("Failed to execute 'getAll' on 'CookieStore': URL must match the document origin",C.securityError)}else n=this.#t.location;let i=e.page.context.cookieContainer.getCookies(n,true),s=[];for(let l of i)(!r.name||l.key===r.name)&&s.push(this.#e(l));return s}async set(t,e){let r=new et(this.#t).getBrowserFrame();if(!r)return;let n;if(typeof t=="string"){if(e===void 0)throw new this.#t.TypeError("Failed to execute 'set' on 'CookieStore': Value is required when name is provided as a string.");n={name:t,value:e};}else n={...t,value:t.value??""};if(!n.name)throw new this.#t.TypeError("Failed to execute 'set' on 'CookieStore': Required member name is undefined.");let i=this.#t.location,s=null;n.expires!==void 0&&n.expires!==null&&(s=n.expires instanceof Date?n.expires:new Date(n.expires));let l=yo.strict;if(n.sameSite)switch(n.sameSite.toLowerCase()){case "strict":l=yo.strict;break;case "lax":l=yo.lax;break;case "none":l=yo.none;break}let a={key:n.name,value:n.value??"",originURL:i,domain:n.domain||"",path:n.path||"/",expires:s,httpOnly:false,secure:true,sameSite:l},c=r.page.context.cookieContainer.addCookies([a]);(c.changed.length>0||c.deleted.length>0)&&this.dispatchEvent(new Ga("change",{changed:c.changed.map(h=>this.#e(h)),deleted:c.deleted.map(h=>this.#e(h))}));}async delete(t){let e=typeof t=="string"?{name:t}:t;await this.set({name:e.name,value:"",domain:e.domain??void 0,path:e.path,partitioned:e.partitioned,expires:new Date(0)});}#e(t){let e="lax";switch(t.sameSite){case yo.strict:e="strict";break;case yo.lax:e="lax";break;case yo.none:e="none";break}return {name:t.key,value:t.value??"",domain:t.domain,path:t.path,expires:t.expires?t.expires.getTime():null,secure:t.secure,sameSite:e,partitioned:false}}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var nf=class{static escape(t){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let e=String(t),r=e.length,n=-1,i,s="",l=e.charCodeAt(0);if(r==1&&l==45)return "\\"+e;for(;++n<r;){if(i=e.charCodeAt(n),i==0){s+="\uFFFD";continue}if(i>=1&&i<=31||i==127||n==0&&i>=48&&i<=57||n==1&&i>=48&&i<=57&&l==45){s+="\\"+i.toString(16)+" ";continue}if(i>=128||i==45||i==95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){s+=e.charAt(n);continue}s+="\\"+e.charAt(n);}return s}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var XC=["Hz","Q","ch","cm","deg","dpcm","dpi","dppx","em","ex","fr","grad","in","kHz","mm","ms","number","pc","percent","pt","px","rad","rem","s","turn","vh","vmax","vmin","vw"];var we=class{unit;value;constructor(t,e){if(typeof t!="number")throw new TypeError("The provided double value is non-finite");if(!XC.includes(e))throw new TypeError("Invalid unit: "+e);this.value=t,this.unit=e;}};var sf=class{Hz=t=>new we(t,"Hz");Q=t=>new we(t,"Q");ch=t=>new we(t,"ch");cm=t=>new we(t,"cm");deg=t=>new we(t,"deg");dpcm=t=>new we(t,"dpcm");dpi=t=>new we(t,"dpi");dppx=t=>new we(t,"dppx");em=t=>new we(t,"em");ex=t=>new we(t,"ex");fr=t=>new we(t,"fr");grad=t=>new we(t,"grad");in=t=>new we(t,"in");kHz=t=>new we(t,"kHz");mm=t=>new we(t,"mm");ms=t=>new we(t,"ms");number=t=>new we(t,"number");pc=t=>new we(t,"pc");percent=t=>new we(t,"percent");pt=t=>new we(t,"pt");px=t=>new we(t,"px");rad=t=>new we(t,"rad");rem=t=>new we(t,"rem");s=t=>new we(t,"s");turn=t=>new we(t,"turn");vh=t=>new we(t,"vh");vmax=t=>new we(t,"vmax");vmin=t=>new we(t,"vmin");vw=t=>new we(t,"vw");supports(t,e){return true}escape(t){return nf.escape(t)}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Jw;(function(o){o[o.containerRule=0]="containerRule",o[o.styleRule=1]="styleRule",o[o.importRule=3]="importRule",o[o.mediaRule=4]="mediaRule",o[o.fontFaceRule=5]="fontFaceRule",o[o.pageRule=6]="pageRule",o[o.keyframesRule=7]="keyframesRule",o[o.keyframeRule=8]="keyframeRule",o[o.namespaceRule=10]="namespaceRule",o[o.counterStyleRule=11]="counterStyleRule",o[o.supportsRule=12]="supportsRule",o[o.documentRule=13]="documentRule",o[o.fontFeatureValuesRule=14]="fontFeatureValuesRule",o[o.regionStyleRule=16]="regionStyleRule";})(Jw||(Jw={}));var gt=Jw;var An=class{static CONTAINER_RULE=gt.containerRule;static STYLE_RULE=gt.styleRule;static IMPORT_RULE=gt.importRule;static MEDIA_RULE=gt.mediaRule;static FONT_FACE_RULE=gt.fontFaceRule;static PAGE_RULE=gt.pageRule;static KEYFRAMES_RULE=gt.keyframesRule;static KEYFRAME_RULE=gt.keyframeRule;static NAMESPACE_RULE=gt.namespaceRule;static COUNTER_STYLE_RULE=gt.counterStyleRule;static SUPPORTS_RULE=gt.supportsRule;static DOCUMENT_RULE=gt.documentRule;static FONT_FEATURE_VALUES_RULE=gt.fontFeatureValuesRule;static REGION_STYLE_RULE=gt.regionStyleRule;[m];[lc];[Tl]=null;[Sn]=null;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[lc]=r;}get parentRule(){return this[Tl]}get parentStyleSheet(){return this[Sn]}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var xR=/[,()]/gm,ER=/[()]|\s+/gm,Ua=class{static splitByComma(t){let e=[],r=new RegExp(xR),n,i=0,s=0;for(;n=r.exec(t);)switch(n[0]){case "(":i++;break;case ")":i--;break;case ",":if(i===0){let l=t.substring(s,n.index).trim();l&&e.push(l),s=r.lastIndex;}break}return s<t.length&&e.push(t.substring(s).trim()),e}static splitBySpace(t){let e=[],r=new RegExp(ER),n,i=0,s=0;for(;n=r.exec(t);)switch(n[0]){case "(":i++;break;case ")":i--;break;default:if(i===0){let l=t.substring(s,n.index).trim();l&&e.push(l),s=r.lastIndex;}break}if(s<t.length){let l=t.substring(s).trim();l&&e.push(l);}return e}};var vR=/^#([0-9a-fA-F]{3,4}){1,2}$|^rgb\(([^)]*)\)$|^rgba\(([^)]*)\)$|^hsla?\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*(,\s*(-?\d+|-?\d*.\d+)\s*)?\)|(?:(rgba?|hsla?)\((var\(\s*(--[^)\s]+)\))\))/,TR=/^(0|[-+]?[0-9]*\.?[0-9]+)(in|cm|em|mm|pt|pc|px|ex|rem|vh|vw|ch|vw|vh|vmin|vmax|Q)$/,CR=/^[-+]?[0-9]*\.?[0-9]+%$/,kR=/^[0-9]+deg$/,NR=/^url\(\s*([^)]*)\s*\)$/,LR=/^[0-9]+$/,MR=/^[0-9.]+$/,IR=/^calc\([^^)]+\)$/,RR=/^var\(\s*(--[^)\s]+)\)$/,DR=/^fit-content\([^^)]+\)$/,OR=/^((repeating-linear|linear|radial|repeating-radial|conic|repeating-conic)-gradient)\(((?:[^()]|\([^()]*\))*)\)$/,ZC=["inherit","initial","unset","revert"],FR=["none","currentcolor","transparent","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aliceblue","aqua","antiquewhite","aquamarine","azure","beige","bisque","black","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","magenta","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rebeccapurple","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen"],w=class{static getLength(t){if(t==="0")return "0px";let e=t.match(TR);if(e){let r=parseFloat(e[1]);if(isNaN(r))return null;let n=e[2];return `${Math.round(r*1e6)/1e6}${n}`}return null}static getPercentage(t){return t==="0"?"0%":CR.test(t)?t:null}static getDegree(t){return t==="0"?"0deg":kR.test(t)?t:null}static getCalc(t){return IR.test(t)?t:null}static getFitContent(t){let e=t.toLowerCase();return e==="auto"||e==="max-content"||e==="min-content"||e==="fit-content"||DR.test(e)?e:null}static getMeasurement(t){return this.getLength(t)||this.getPercentage(t)||this.getCalc(t)}static getContentMeasurement(t){return this.getFitContent(t)||this.getMeasurement(t)}static getAutoMeasurement(t){return t.toLocaleLowerCase()==="auto"?"auto":this.getMeasurement(t)}static getInteger(t){return LR.test(t)?t:null}static getFloat(t){if(MR.test(t)){let e=parseFloat(t);return isNaN(e)?null:String(Math.round(e*1e6)/1e6)}return null}static getGradient(t){let e=t.match(OR);if(e){let r=e[3].trim(),n=Ua.splitByComma(r);return `${e[1]}(${n.join(", ")})`}return null}static getColor(t){let e=t.toLowerCase();return FR.includes(e)?e:vR.test(t)?t.replace(/,([^ ])/g,", $1"):null}static getURL(t){if(!t)return null;if(t.toLowerCase()==="none")return "none";let e=NR.exec(t);if(!e)return null;let r=e[1].trim();if((r[0]==='"'||r[0]==="'")&&r[0]!==r[r.length-1])return null;(r[0]==='"'||r[0]==="'")&&(r=r.substring(1,r.length-1));for(let n=0;n<r.length;n++)switch(r[n]){case "(":case ")":case " ":case " ":case `
47
- `:case "'":case '"':return null;case "\\":n++;break}return `url("${r}")`}static getInitial(t){return t.toLowerCase()==="initial"?"initial":null}static getVariable(t){let e=t.match(RR);return e?`var(${e[1]})`:null}static getGlobal(t){let e=t.toLowerCase();return ZC.includes(e)?e:null}static getGlobalExceptInitial(t){let e=t.toLowerCase();return e!=="initial"&&ZC.includes(e)?e:null}};var BR=/^rect\((.*)\)$/i,CS=/,(?=(?:(?:(?!\))[\s\S])*\()|[^\(\)]*$)/,br=/\s+(?=(?:(?:(?!\))[\s\S])*\()|[^\(\)]*$)/,VR=/\s+/gm,lf=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],af=["thin","medium","thick"],HR=["separate","collapse"],GR=["repeat","repeat-x","repeat-y","no-repeat"],UR=["border-box","padding-box","content-box"],WR=["border-box","padding-box","content-box"],zR=["scroll","fixed"],_R=["auto","fill","content"],$R=["none","left","right","both"],KR=["none","left","right","inline-start","inline-end"],jR=["caption","icon","menu","message-box","small-caption","status-bar"],qR=["normal","bold","bolder","lighter"],YR=["normal","italic","oblique"],QR=["xx-small","x-small","small","medium","large","x-large","xx-large","xxx-large","smaller","larger"],JR=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],XR=["block","inline","inline-block","flex","inline-flex","grid","inline-grid","flow-root","none","contents","block flow","inline flow","inline flow-root","block flex","inline flex","block grid","inline grid","block flow-root","table","table-row","list-item"],ZR=["stretch","repeat","round","space"],tD=["capitalize","uppercase","lowercase","none","full-width","full-size-kana"],eD=["visible","hidden","collapse"],nt=class{static getBorderCollapse(t,e){let r=w.getVariable(t);if(r)return {"border-collapse":{value:r,important:e}};let n=t.toLowerCase();return w.getGlobal(n)||HR.includes(n)?{"border-collapse":{value:n,important:e}}:null}static getDisplay(t,e){let r=w.getVariable(t);if(r)return {display:{value:r,important:e}};let n=t.toLowerCase();return w.getGlobal(n)||XR.includes(n)?{display:{value:n,important:e}}:null}static getDirection(t,e){let r=w.getVariable(t);if(r)return {direction:{value:r,important:e}};let n=t.toLowerCase();return w.getGlobal(n)||n==="ltr"||n==="rtl"?{direction:{value:n,important:e}}:null}static getLetterSpacing(t,e){let r=w.getVariable(t)||w.getGlobal(t)||w.getContentMeasurement(t);return r?{"letter-spacing":{value:r,important:e}}:null}static getWordSpacing(t,e){let r=w.getVariable(t)||w.getGlobal(t)||w.getContentMeasurement(t);return r?{"word-spacing":{value:r,important:e}}:null}static getTextIndent(t,e){let r=w.getVariable(t)||w.getGlobal(t)||w.getContentMeasurement(t);return r?{"text-indent":{value:r,important:e}}:null}static getWidth(t,e){let r=w.getVariable(t)||w.getGlobal(t)||w.getContentMeasurement(t);return r?{width:{value:r,important:e}}:null}static getHeight(t,e){let r=w.getVariable(t)||w.getGlobal(t)||w.getContentMeasurement(t);return r?{height:{value:r,important:e}}:null}static getTop(t,e){let r=w.getVariable(t)||w.getGlobal(t)||w.getContentMeasurement(t);return r?{top:{value:r,important:e}}:null}static getRight(t,e){let r=w.getVariable(t)||w.getGlobal(t)||w.getContentMeasurement(t);return r?{right:{value:r,important:e}}:null}static getBottom(t,e){let r=w.getVariable(t)||w.getGlobal(t)||w.getContentMeasurement(t);return r?{bottom:{value:r,important:e}}:null}static getLeft(t,e){let r=w.getVariable(t)||w.getGlobal(t)||w.getContentMeasurement(t);return r?{left:{value:r,important:e}}:null}static getClear(t,e){let r=w.getVariable(t);if(r)return {clear:{value:r,important:e}};let n=t.toLowerCase();return w.getGlobal(n)||$R.includes(n)?{clear:{value:n,important:e}}:null}static getClip(t,e){let r=w.getVariable(t);if(r)return {clip:{value:r,important:e}};let n=t.toLowerCase();if(w.getGlobal(n)||n==="auto")return {clip:{value:n,important:e}};let i=n.match(BR);if(!i)return null;let s=i[1].split(/\s*,\s*/);if(s.length!==4)return null;for(let l of s)if(!w.getMeasurement(l))return null;return {clip:{value:t,important:e}}}static getFloat(t,e){let r=w.getVariable(t);if(r)return {float:{value:r,important:e}};let n=t.toLowerCase();return w.getGlobal(n)||KR.includes(n)?{float:{value:n,important:e}}:null}static getCSSFloat(t,e){let r=w.getVariable(t);if(r)return {"css-float":{value:r,important:e}};let n=this.getFloat(t,e);return n?{"css-float":n.float}:null}static getOutline(t,e){let r=w.getVariable(t);if(r)return {outline:{value:r,important:e}};let n=w.getGlobal(t);if(n)return {...this.getOutlineColor(n,e),...this.getOutlineStyle(n,e),...this.getOutlineWidth(n,e)};let i={...this.getOutlineColor("initial",e),...this.getOutlineStyle("initial",e),...this.getOutlineWidth("initial",e)},s=t.split(br);for(let l of s){let a=this.getOutlineWidth(l,e),u=this.getOutlineStyle(l,e),c=this.getOutlineColor(l,e);if(a===null&&u===null&&c===null)return null;Object.assign(i,a,u,c);}return i}static getOutlineColor(t,e){let r=w.getVariable(t)||w.getGlobal(t)||w.getColor(t);return r?{"outline-color":{value:r,important:e}}:null}static getOutlineOffset(t,e){let r=w.getVariable(t)||w.getLength(t);return r?{"outline-offset":{value:r,important:e}}:null}static getOutlineStyle(t,e){let r=w.getVariable(t);if(r)return {"outline-style":{value:r,important:e}};let n=t.toLowerCase();return w.getGlobal(n)||lf.includes(n)?{"outline-style":{value:n,important:e}}:null}static getOutlineWidth(t,e){let r=w.getVariable(t);if(r)return {"outline-width":{value:r,important:e}};let n=t.toLowerCase(),i=af.includes(n)||w.getGlobal(n)?n:w.getLength(t);return i?{"outline-width":{value:i,important:e}}:null}static getBorder(t,e){let r=w.getVariable(t);if(r)return {border:{value:r,important:e}};let n=w.getGlobal(t);if(n)return {...this.getBorderWidth(n,e),...this.getBorderStyle(n,e),...this.getBorderColor(n,e),...this.getBorderImage(n,e)};let i={...this.getBorderWidth("initial",e),...this.getBorderStyle("initial",e),...this.getBorderColor("initial",e),...this.getBorderImage("initial",e)},s=t.replace(/\s*,\s*/g,",").split(br);for(let l of s){let a=this.getBorderWidth(l,e),u=this.getBorderStyle(l,e),c=this.getBorderColor(l,e);if(a===null&&u===null&&c===null)return null;Object.assign(i,a,u,c);}return i}static getBorderWidth(t,e){let r=w.getVariable(t);if(r)return {"border-width":{value:r,important:e}};let n=w.getGlobal(t);if(n)return {...this.getBorderTopWidth(n,e),...this.getBorderRightWidth(n,e),...this.getBorderBottomWidth(n,e),...this.getBorderLeftWidth(n,e)};let i=t.split(br),s=this.getBorderTopWidth(i[0],e),l=this.getBorderRightWidth(i[1]||i[0],e),a=this.getBorderBottomWidth(i[2]||i[0],e),u=this.getBorderLeftWidth(i[3]||i[1]||i[0],e);return !s||!l||!a||!u?null:{...s,...l,...a,...u}}static getBorderStyle(t,e){let r=w.getVariable(t);if(r)return {"border-style":{value:r,important:e}};let n=w.getGlobal(t);if(n)return {...this.getBorderTopStyle(n,e),...this.getBorderRightStyle(n,e),...this.getBorderBottomStyle(n,e),...this.getBorderLeftStyle(n,e)};let i=t.split(br),s=this.getBorderTopStyle(i[0],e),l=this.getBorderRightStyle(i[1]||i[0],e),a=this.getBorderBottomStyle(i[2]||i[0],e),u=this.getBorderLeftStyle(i[3]||i[1]||i[0],e);return !s||!l||!a||!u?null:{...s,...l,...a,...u}}static getBorderColor(t,e){let r=w.getVariable(t);if(r)return {"border-color":{value:r,important:e}};let n=w.getGlobal(t);if(n)return {...this.getBorderTopColor(n,e),...this.getBorderRightColor(n,e),...this.getBorderBottomColor(n,e),...this.getBorderLeftColor(n,e)};let i=t.split(br),s=this.getBorderTopColor(i[0],e),l=this.getBorderRightColor(i[1]||i[0],e),a=this.getBorderBottomColor(i[2]||i[0],e),u=this.getBorderLeftColor(i[3]||i[1]||i[0],e);return !s||!l||!a||!u?null:{...s,...l,...a,...u}}static getBorderImage(t,e){let r=w.getVariable(t);if(r)return {"border-image":{value:r,important:e}};let n=w.getGlobal(t);if(n)return {...this.getBorderImageSource(n,e),...this.getBorderImageSlice(n,e),...this.getBorderImageWidth(n,e),...this.getBorderImageOutset(n,e),...this.getBorderImageRepeat(n,e)};let i=t.replace(/\s\/\s/g,"/"),s=i.match(/\s*([a-zA-Z-]+\([^)]*\))\s*/);s&&(i=i.replace(s[0],""));let l=i.split(br);s&&l.push(s[1]);let a={...this.getBorderImageSource("none",e),...this.getBorderImageSlice("100%",e),...this.getBorderImageWidth("1",e),...this.getBorderImageOutset("0",e),...this.getBorderImageRepeat("stretch",e)};for(let u=0,c=l.length;u<c;u++){let h=l[u],f=u>0?l[u-1]:"";if(!h.startsWith("url")&&h.includes("/")){let[d,g,P]=h.split("/"),A=this.getBorderImageSlice(`${f} ${d}`,e)||this.getBorderImageSlice(d,e),v=this.getBorderImageWidth(g,e),H=P&&this.getBorderImageOutset(P,e);if(!A||!v||H===null)return null;Object.assign(a,A,v,H);}else {let d=this.getBorderImageSlice(`${f} ${h}`,e)||this.getBorderImageSlice(h,e),g=this.getBorderImageSource(h,e),P=this.getBorderImageRepeat(h,e);if(!d&&!g&&!P)return null;Object.assign(a,d,g,P);}}return a}static getBorderImageSource(t,e){let r=w.getVariable(t);if(r)return {"border-image-source":{value:r,important:e}};let n=t.toLowerCase();if(w.getGlobal(n)||n==="none")return {"border-image-source":{important:e,value:n}};let i=w.getURL(t)||w.getGradient(t);return i?{"border-image-source":{important:e,value:i}}:null}static getBorderImageSlice(t,e){let r=w.getVariable(t);if(r)return {"border-image-slice":{value:r,important:e}};let n=t.toLowerCase();if(w.getGlobal(n))return {"border-image-slice":{important:e,value:n}};if(n!==n.trim())return null;let i=/(fill)|(calc\([^^)]+\))|([0-9]+%)|([0-9]+)/g,s=[],l;for(;l=i.exec(n);){let a=n[l.index-1],u=n[l.index+l[0].length];if(a&&a!==" "||u&&u!==" ")return null;let c=l[1]&&"fill",h=l[2]&&w.getCalc(l[2]),f=l[3]&&w.getPercentage(l[3]),d=l[4]&&w.getInteger(l[4]);if(!c&&!h&&!f&&!d)return null;s.push(c||h||f||d);}return !s.length||s.length>4?null:{"border-image-slice":{important:e,value:s.join(" ")}}}static getBorderImageWidth(t,e){let r=w.getVariable(t);if(r)return {"border-image-width":{value:r,important:e}};let n=t.toLowerCase();if(w.getGlobal(n))return {"border-image-width":{important:e,value:n}};let i=n.split(br);if(i.length>4)return null;for(let s of i)if(!w.getInteger(s)&&!w.getAutoMeasurement(s))return null;return {"border-image-width":{important:e,value:t}}}static getBorderImageOutset(t,e){if(t==="0")return {"border-image-outset":{important:e,value:t}};let r=w.getVariable(t);if(r)return {"border-image-outset":{value:r,important:e}};let n=t.toLowerCase();if(w.getGlobal(n))return {"border-image-outset":{important:e,value:n}};let i=t.split(br);if(i.length>4)return null;let s=[];for(let l of i){let a=w.getLength(l)||w.getFloat(l);if(!a)return null;s.push(a==="0px"?"0":a);}return {"border-image-outset":{important:e,value:s.join(" ")}}}static getBorderImageRepeat(t,e){let r=w.getVariable(t);if(r)return {"border-image-repeat":{value:r,important:e}};let n=t.toLowerCase();if(w.getGlobal(n))return {"border-image-repeat":{important:e,value:n}};let i=n.split(br);if(i.length>2)return null;for(let s of i)if(!ZR.includes(s))return null;return {"border-image-repeat":{important:e,value:t}}}static getBorderTopWidth(t,e){let r=w.getVariable(t);if(r)return {"border-top-width":{value:r,important:e}};let n=t.toLowerCase(),i=af.includes(n)||w.getGlobal(n)?n:w.getLength(t);return i?{"border-top-width":{value:i,important:e}}:null}static getBorderRightWidth(t,e){let r=w.getVariable(t);if(r)return {"border-right-width":{value:r,important:e}};let n=t.toLowerCase(),i=af.includes(n)||w.getGlobal(n)?n:w.getLength(t);return i?{"border-right-width":{value:i,important:e}}:null}static getBorderBottomWidth(t,e){let r=w.getVariable(t);if(r)return {"border-bottom-width":{value:r,important:e}};let n=t.toLowerCase(),i=af.includes(n)||w.getGlobal(n)?n:w.getLength(t);return i?{"border-bottom-width":{value:i,important:e}}:null}static getBorderLeftWidth(t,e){let r=w.getVariable(t);if(r)return {"border-left-width":{value:r,important:e}};let n=t.toLowerCase(),i=af.includes(n)||w.getGlobal(n)?n:w.getLength(t);return i?{"border-left-width":{value:i,important:e}}:null}static getBorderTopStyle(t,e){let r=w.getVariable(t);if(r)return {"border-top-style":{value:r,important:e}};let n=t.toLowerCase();return w.getGlobal(n)||lf.includes(n)?{"border-top-style":{value:n,important:e}}:null}static getBorderRightStyle(t,e){let r=w.getVariable(t);if(r)return {"border-right-style":{value:r,important:e}};let n=t.toLowerCase();return w.getGlobal(n)||lf.includes(n)?{"border-right-style":{value:n,important:e}}:null}static getBorderBottomStyle(t,e){let r=w.getVariable(t);if(r)return {"border-bottom-style":{value:r,important:e}};let n=t.toLowerCase();return w.getGlobal(n)||lf.includes(n)?{"border-bottom-style":{value:n,important:e}}:null}static getBorderLeftStyle(t,e){let r=w.getVariable(t);if(r)return {"border-left-style":{value:r,important:e}};let n=t.toLowerCase();return w.getGlobal(n)||lf.includes(n)?{"border-left-style":{value:n,important:e}}:null}static getBorderTopColor(t,e){let r=w.getVariable(t);if(r)return {"border-top-color":{value:r,important:e}};let n=w.getGlobal(t)||w.getColor(t);return n?{"border-top-color":{value:n,important:e}}:null}static getBorderRightColor(t,e){let r=w.getVariable(t);if(r)return {"border-right-color":{value:r,important:e}};let n=w.getGlobal(t)||w.getColor(t);return n?{"border-right-color":{value:n,important:e}}:null}static getBorderBottomColor(t,e){let r=w.getVariable(t);if(r)return {"border-bottom-color":{value:r,important:e}};let n=w.getGlobal(t)||w.getColor(t);return n?{"border-bottom-color":{value:n,important:e}}:null}static getBorderLeftColor(t,e){let r=w.getVariable(t);if(r)return {"border-left-color":{value:r,important:e}};let n=w.getGlobal(t)||w.getColor(t);return n?{"border-left-color":{value:n,important:e}}:null}static getBorderRadius(t,e){let r=w.getVariable(t);if(r)return {"border-radius":{value:r,important:e}};let n=w.getGlobal(t);if(n)return {...this.getBorderTopLeftRadius(n,e),...this.getBorderTopRightRadius(n,e),...this.getBorderBottomRightRadius(n,e),...this.getBorderBottomLeftRadius(n,e)};let i=t.split(br),s=this.getBorderTopLeftRadius(i[0],e),l=this.getBorderTopRightRadius(i[1]||i[0],e),a=this.getBorderBottomRightRadius(i[2]||i[0],e),u=this.getBorderBottomLeftRadius(i[3]||i[1]||i[0],e);return !s||!l||!a||!u?null:{...s,...l,...a,...u}}static getBorderTopLeftRadius(t,e){let r=w.getVariable(t);if(r)return {"border-top-left-radius":{value:r,important:e}};let n=w.getGlobal(t)||w.getMeasurement(t);return n?{"border-top-left-radius":{important:e,value:n}}:null}static getBorderTopRightRadius(t,e){let r=w.getVariable(t);if(r)return {"border-top-right-radius":{value:r,important:e}};let n=w.getGlobal(t)||w.getMeasurement(t);return n?{"border-top-right-radius":{important:e,value:n}}:null}static getBorderBottomRightRadius(t,e){let r=w.getVariable(t);if(r)return {"border-bottom-right-radius":{value:r,important:e}};let n=w.getGlobal(t)||w.getMeasurement(t);return n?{"border-bottom-right-radius":{important:e,value:n}}:null}static getBorderBottomLeftRadius(t,e){let r=w.getVariable(t);if(r)return {"border-bottom-left-radius":{value:r,important:e}};let n=w.getGlobal(t)||w.getMeasurement(t);return n?{"border-bottom-left-radius":{important:e,value:n}}:null}static getBorderTop(t,e){let r=w.getVariable(t);if(r)return {"border-top":{value:r,important:e}};let n=w.getGlobal(t);if(n)return {...this.getBorderTopWidth(n,e),...this.getBorderTopStyle(n,e),...this.getBorderTopColor(n,e)};let i={...this.getBorderTopWidth("initial",e),...this.getBorderTopStyle("initial",e),...this.getBorderTopColor("initial",e)},s=t.split(br);for(let l of s){let a=this.getBorderTopWidth(l,e),u=this.getBorderTopStyle(l,e),c=this.getBorderTopColor(l,e);if(a===null&&u===null&&c===null)return null;Object.assign(i,a,u,c);}return i}static getBorderRight(t,e){let r=w.getVariable(t);if(r)return {"border-right":{value:r,important:e}};let n=w.getGlobal(t);if(n)return {...this.getBorderRightWidth(n,e),...this.getBorderRightStyle(n,e),...this.getBorderRightColor(n,e)};let i={...this.getBorderRightWidth("initial",e),...this.getBorderRightStyle("initial",e),...this.getBorderRightColor("initial",e)},s=t.split(br);for(let l of s){let a=this.getBorderRightWidth(l,e),u=this.getBorderRightStyle(l,e),c=this.getBorderRightColor(l,e);if(a===null&&u===null&&c===null)return null;Object.assign(i,a,u,c);}return i}static getBorderBottom(t,e){let r=w.getVariable(t);if(r)return {"border-bottom":{value:r,important:e}};let n=w.getGlobal(t);if(n)return {...this.getBorderBottomWidth(n,e),...this.getBorderBottomStyle(n,e),...this.getBorderBottomColor(n,e)};let i={...this.getBorderBottomWidth("initial",e),...this.getBorderBottomStyle("initial",e),...this.getBorderBottomColor("initial",e)},s=t.split(br);for(let l of s){let a=this.getBorderBottomWidth(l,e),u=this.getBorderBottomStyle(l,e),c=this.getBorderBottomColor(l,e);if(a===null&&u===null&&c===null)return null;Object.assign(i,a,u,c);}return i}static getBorderLeft(t,e){let r=w.getVariable(t);if(r)return {"border-left":{value:r,important:e}};let n=w.getGlobal(t);if(n)return {...this.getBorderLeftWidth(n,e),...this.getBorderLeftStyle(n,e),...this.getBorderLeftColor(n,e)};let i={...this.getBorderLeftWidth("initial",e),...this.getBorderLeftStyle("initial",e),...this.getBorderLeftColor("initial",e)},s=t.split(br);for(let l of s){let a=this.getBorderLeftWidth(l,e),u=this.getBorderLeftStyle(l,e),c=this.getBorderLeftColor(l,e);if(a===null&&u===null&&c===null)return null;Object.assign(i,a,u,c);}return i}static getPadding(t,e){let r=w.getVariable(t);if(r)return {padding:{value:r,important:e}};let n=w.getGlobal(t);if(n)return {...this.getPaddingTop(n,e),...this.getPaddingRight(n,e),...this.getPaddingBottom(n,e),...this.getPaddingLeft(n,e)};let i=t.split(br),s=this.getPaddingTop(i[0],e),l=this.getPaddingRight(i[1]||i[0],e),a=this.getPaddingBottom(i[2]||i[0],e),u=this.getPaddingLeft(i[3]||i[1]||i[0],e);return !s||!l||!a||!u?null:{...s,...l,...a,...u}}static getPaddingTop(t,e){let r=w.getVariable(t);if(r)return {"padding-top":{value:r,important:e}};let n=w.getGlobal(t)||w.getMeasurement(t);return n?{"padding-top":{value:n,important:e}}:null}static getPaddingRight(t,e){let r=w.getVariable(t);if(r)return {"padding-right":{value:r,important:e}};let n=w.getGlobal(t)||w.getMeasurement(t);return n?{"padding-right":{value:n,important:e}}:null}static getPaddingBottom(t,e){let r=w.getVariable(t);if(r)return {"padding-bottom":{value:r,important:e}};let n=w.getGlobal(t)||w.getMeasurement(t);return n?{"padding-bottom":{value:n,important:e}}:null}static getPaddingLeft(t,e){let r=w.getVariable(t);if(r)return {"padding-left":{value:r,important:e}};let n=w.getGlobal(t)||w.getMeasurement(t);return n?{"padding-left":{value:n,important:e}}:null}static getMargin(t,e){let r=w.getVariable(t);if(r)return {margin:{value:r,important:e}};let n=w.getGlobal(t);if(n)return {...this.getMarginTop(n,e),...this.getMarginRight(n,e),...this.getMarginBottom(n,e),...this.getMarginLeft(n,e)};let i=t.split(br),s=this.getMarginTop(i[0],e),l=this.getMarginRight(i[1]||i[0],e),a=this.getMarginBottom(i[2]||i[0],e),u=this.getMarginLeft(i[3]||i[1]||i[0],e);return !s||!l||!a||!u?null:{...s,...l,...a,...u}}static getMarginTop(t,e){let r=w.getVariable(t);if(r)return {"margin-top":{value:r,important:e}};let n=w.getGlobal(t)||w.getAutoMeasurement(t);return n?{"margin-top":{value:n,important:e}}:null}static getMarginRight(t,e){let r=w.getVariable(t);if(r)return {"margin-right":{value:r,important:e}};let n=w.getGlobal(t)||w.getAutoMeasurement(t);return n?{"margin-right":{value:n,important:e}}:null}static getMarginBottom(t,e){let r=w.getVariable(t);if(r)return {"margin-bottom":{value:r,important:e}};let n=w.getGlobal(t)||w.getAutoMeasurement(t);return n?{"margin-bottom":{value:n,important:e}}:null}static getMarginLeft(t,e){let r=w.getVariable(t);if(r)return {"margin-left":{value:r,important:e}};let n=w.getGlobal(t)||w.getAutoMeasurement(t);return n?{"margin-left":{value:n,important:e}}:null}static getFlex(t,e){let r=w.getVariable(t);if(r)return {flex:{value:r,important:e}};let n=t.trim().toLowerCase(),i=w.getGlobal(t);if(i)return {...this.getFlexGrow(i,e),...this.getFlexShrink(i,e),...this.getFlexBasis(i,e)};switch(n){case "none":return {...this.getFlexGrow("0",e),...this.getFlexShrink("0",e),...this.getFlexBasis("auto",e)};case "auto":return {...this.getFlexGrow("1",e),...this.getFlexShrink("1",e),...this.getFlexBasis("auto",e)}}let s=w.getContentMeasurement(n);if(s)return {...this.getFlexGrow("1",e),...this.getFlexShrink("1",e),...this.getFlexBasis(s,e)};let l=t.split(br),a=this.getFlexGrow(l[0],e),u=this.getFlexShrink(l[1]||"1",e),c=this.getFlexBasis(l[2]||"0%",e);return !a||!u||!c?null:{...a,...u,...c}}static getFlexBasis(t,e){let r=w.getVariable(t);if(r)return {"flex-basis":{value:r,important:e}};let n=t.toLowerCase();if(w.getGlobal(n)||_R.includes(n))return {"flex-basis":{value:n,important:e}};let i=w.getContentMeasurement(n);return i?{"flex-basis":{value:i,important:e}}:null}static getFlexShrink(t,e){let r=w.getVariable(t);if(r)return {"flex-shrink":{value:r,important:e}};let n=w.getGlobal(t)||w.getFloat(t);return n?{"flex-shrink":{value:n,important:e}}:null}static getFlexGrow(t,e){let r=w.getVariable(t);if(r)return {"flex-grow":{value:r,important:e}};let n=w.getGlobal(t)||w.getFloat(t);return n?{"flex-grow":{value:n,important:e}}:null}static getBackground(t,e){let r=w.getVariable(t);if(r)return {background:{value:r,important:e}};let n=w.getGlobal(t);if(n)return {...this.getBackgroundImage(n,e),...this.getBackgroundPosition(n,e),...this.getBackgroundSize(n,e),...this.getBackgroundRepeat(n,e),...this.getBackgroundAttachment(n,e),...this.getBackgroundOrigin(n,e),...this.getBackgroundClip(n,e),...this.getBackgroundColor(n,e)};let i={...this.getBackgroundImage("initial",e),...this.getBackgroundPosition("initial",e),...this.getBackgroundSize("initial",e),...this.getBackgroundRepeat("initial",e),...this.getBackgroundAttachment("initial",e),...this.getBackgroundOrigin("initial",e),...this.getBackgroundClip("initial",e),...this.getBackgroundColor("initial",e)},s=Ua.splitBySpace(t.replace(/\s+\/\s+/g,"/")),l=[];for(let a of s)if(!a.startsWith("url")&&a.includes("/")){let[u,c]=a.split("/"),h=this.getBackgroundPositionX(u,e),f=this.getBackgroundPositionY(u,e),d=this.getBackgroundSize(c,e);if(!h&&!f||!d)return null;f?l.push(f["background-position-y"].value):h&&l.push(h["background-position-x"].value),Object.assign(i,d);}else {let u=this.getBackgroundImage(a,e),c=this.getBackgroundRepeat(a,e),h=this.getBackgroundAttachment(a,e),f=this.getBackgroundPositionX(a,e),d=this.getBackgroundPositionY(a,e),g=this.getBackgroundColor(a,e),P=this.getBackgroundOrigin(a,e),A=this.getBackgroundClip(a,e);if(!u&&!c&&!h&&!f&&!d&&!g&&!P&&!A)return null;f?l.push(f["background-position-x"].value):d&&l.push(d["background-position-y"].value),Object.assign(i,u,c,h,g,P,A);}return l.length&&Object.assign(i,this.getBackgroundPosition(l.join(" "),e)),i}static getBackgroundSize(t,e){let r=w.getVariable(t);if(r)return {"background-size":{value:r,important:e}};let n=t.toLowerCase();if(w.getGlobal(n))return {"background-size":{value:n,important:e}};let i=n.split(CS),s=[];for(let l of i){let a=l.trim().split(" ");if(a.length!==1&&a.length!==2)return null;if(a.length===1){if(a[0]!=="cover"&&a[0]!=="contain"&&!w.getAutoMeasurement(a[0]))return null;s.push(a[0]);}else {if(!w.getAutoMeasurement(a[0])||!w.getAutoMeasurement(a[1]))return null;s.push(`${a[0]} ${a[1]}`);}}return s.length===1?{"background-size":{value:s.join(", "),important:e}}:null}static getBackgroundOrigin(t,e){let r=w.getVariable(t);if(r)return {"background-origin":{value:r,important:e}};let n=t.toLowerCase();return w.getGlobal(n)||UR.includes(n)?{"background-origin":{value:n,important:e}}:null}static getBackgroundClip(t,e){let r=w.getVariable(t);if(r)return {"background-clip":{value:r,important:e}};let n=t.toLowerCase();return w.getGlobal(n)||WR.includes(n)?{"background-clip":{value:n,important:e}}:null}static getBackgroundRepeat(t,e){let r=w.getVariable(t);if(r)return {"background-repeat":{value:r,important:e}};let n=t.toLowerCase();return w.getGlobal(n)||GR.includes(n)?{"background-repeat":{value:n,important:e}}:null}static getBackgroundAttachment(t,e){let r=w.getVariable(t);if(r)return {"background-attachment":{value:r,important:e}};let n=t.toLowerCase();return w.getGlobal(n)||zR.includes(n)?{"background-attachment":{value:n,important:e}}:null}static getBackgroundPosition(t,e){let r=w.getVariable(t);if(r)return {"background-position":{value:r,important:e}};let n=w.getGlobal(t);if(n)return {...this.getBackgroundPositionX(n,e),...this.getBackgroundPositionY(n,e)};let i=t.split(CS),s="",l="";for(let c of i){let h=c.trim().split(br);switch(s&&(s+=",",l+=","),h.length){case 1:h[0]==="top"||h[0]==="bottom"?(s+="center",l+=h[0]):h[0]==="left"||h[0]==="right"?(s+=h[0],l+="center"):h[0]==="center"&&(s+="center",l+="center");break;case 2:s+=h[0]==="top"||h[0]==="bottom"?h[1]:h[0],l+=h[0]==="top"||h[0]==="bottom"?h[0]:h[1];break;case 3:h[0]==="top"||h[0]==="bottom"||h[1]==="left"||h[1]==="right"||h[2]==="left"||h[2]==="right"?w.getMeasurement(h[1])?(s+=h[2],l+=`${h[0]} ${h[1]}`):(s+=`${h[1]} ${h[2]}`,l+=h[0]):w.getMeasurement(h[1])?(s+=`${h[0]} ${h[1]}`,l+=h[2]):(s+=h[0],l+=`${h[1]} ${h[2]}`);break;case 4:s+=h[0]==="top"||h[0]==="bottom"||h[1]==="top"||h[1]==="bottom"?`${h[2]} ${h[3]}`:`${h[0]} ${h[1]}`,l+=h[0]==="top"||h[0]==="bottom"||h[1]==="top"||h[1]==="bottom"?`${h[0]} ${h[1]}`:`${h[2]} ${h[3]}`;break;default:return null}}let a=this.getBackgroundPositionX(s,e),u=this.getBackgroundPositionY(l,e);return a&&u?{...a,...u}:null}static getBackgroundPositionX(t,e){let r=w.getVariable(t);if(r)return {"background-position-x":{value:r,important:e}};let n=t.toLowerCase();if(w.getGlobal(n))return {"background-position-x":{value:n,important:e}};let i=n.split(CS),s="";for(let l of i){let a=l.trim().split(br);s&&(s+=",");for(let u of a){let c=w.getMeasurement(u);if(!c&&u!=="left"&&u!=="right"&&u!=="center")return null;s&&(s+=" "),s+=c||u;}}return {"background-position-x":{value:s,important:e}}}static getBackgroundPositionY(t,e){let r=w.getVariable(t);if(r)return {"background-position-y":{value:r,important:e}};let n=t.toLowerCase();if(w.getGlobal(n))return {"background-position-y":{value:n,important:e}};let i=n.split(CS),s="";for(let l of i){let a=l.trim().split(br);s&&(s+=",");for(let u of a){let c=w.getMeasurement(u);if(!c&&u!=="top"&&u!=="bottom"&&u!=="center")return null;s&&(s+=" "),s+=c||u;}}return {"background-position-y":{value:s,important:e}}}static getBackgroundColor(t,e){let r=w.getVariable(t);if(r)return {"background-color":{value:r,important:e}};let n=w.getGlobal(t)||w.getColor(t);return n?{"background-color":{important:e,value:n}}:null}static getBackgroundImage(t,e){let r=w.getVariable(t);if(r)return {"background-image":{value:r,important:e}};let n=t.toLowerCase();if(w.getGlobal(n)||n==="none")return {"background-image":{value:n,important:e}};let i=Ua.splitByComma(t),s=[];for(let l of i){let a=w.getURL(l.trim())||w.getGradient(l.trim());if(!a)return null;s.push(a);}return s.length?{"background-image":{value:s.join(", "),important:e}}:null}static getColor(t,e){let r=w.getVariable(t);if(r)return {color:{value:r,important:e}};let n=w.getGlobal(t)||w.getColor(t);return n?{color:{important:e,value:n}}:null}static getFloodColor(t,e){let r=w.getVariable(t);if(r)return {"flood-color":{value:r,important:e}};let n=w.getGlobal(t)||w.getColor(t);return n?{"flood-color":{important:e,value:n}}:null}static getFont(t,e){let r=w.getVariable(t);if(r)return {font:{value:r,important:e}};let n=t.toLowerCase();if(w.getGlobal(n))return {...this.getFontStyle(n,e),...this.getFontVariant(n,e),...this.getFontWeight(n,e),...this.getFontStretch(n,e),...this.getFontSize(n,e),...this.getLineHeight(n,e),...this.getFontFamily(n,e)};if(jR.includes(n))return {font:{value:n,important:e}};let i={...this.getFontStyle("normal",e),...this.getFontVariant("normal",e),...this.getFontWeight("normal",e),...this.getFontStretch("normal",e),...this.getLineHeight("normal",e)},s=t.replace(/\s*\/\s*/g,"/").split(br);for(let l=0,a=s.length;l<a;l++){let u=s[l];if(u.includes("/")){let[c,h]=u.split("/"),f=this.getFontSize(c,e),d=this.getLineHeight(h,e);if(!f||!d)return null;Object.assign(i,f,d);}else {let c=this.getFontStyle(u,e),h=this.getFontVariant(u,e),f=this.getFontWeight(u,e),d=this.getFontSize(u,e),g=this.getFontStretch(u,e);if(c)Object.assign(i,c);else if(h)Object.assign(i,h);else if(f)Object.assign(i,f);else if(d)Object.assign(i,d);else if(g)Object.assign(i,g);else {let P=s.slice(l).join(" "),A=this.getFontFamily(P,e);if(!A)return null;Object.assign(i,A);break}}}return i}static getFontStyle(t,e){let r=w.getVariable(t);if(r)return {"font-style":{value:r,important:e}};let n=t.toLowerCase();if(w.getGlobal(n)||YR.includes(n))return {"font-style":{value:n,important:e}};let i=t.split(br);return i.length===2&&i[0]==="oblique"&&w.getDegree(i[1])?{"font-style":{value:n,important:e}}:null}static getFontVariant(t,e){let r=w.getVariable(t);if(r)return {"font-variant":{value:r,important:e}};let n=t.toLowerCase();return w.getGlobal(n)||n==="normal"||n==="small-caps"?{"font-variant":{value:n,important:e}}:null}static getFontStretch(t,e){let r=w.getVariable(t);if(r)return {"font-stretch":{value:r,important:e}};let n=t.toLowerCase();if(w.getGlobal(n)||JR.includes(n))return {"font-stretch":{value:n,important:e}};let i=w.getPercentage(t);return i?{"font-stretch":{value:i,important:e}}:null}static getFontWeight(t,e){let r=w.getVariable(t);if(r)return {"font-weight":{value:r,important:e}};let n=t.toLowerCase();if(w.getGlobal(n)||qR.includes(n))return {"font-weight":{value:n,important:e}};let i=w.getInteger(t);return i?{"font-weight":{value:i,important:e}}:null}static getFontSize(t,e){let r=w.getVariable(t);if(r)return {"font-size":{value:r,important:e}};let n=t.toLowerCase();if(w.getGlobal(n)||QR.includes(n))return {"font-size":{value:n,important:e}};let i=w.getMeasurement(t);return i?{"font-size":{value:i,important:e}}:null}static getLineHeight(t,e){let r=w.getVariable(t);if(r)return {"line-height":{value:r,important:e}};let n=t.toLowerCase();if(w.getGlobal(n)||n==="normal")return {"line-height":{value:n,important:e}};let i=w.getFloat(t)||w.getMeasurement(t);return i?{"line-height":{value:i,important:e}}:null}static getFontFamily(t,e){let r=w.getVariable(t);if(r)return {"font-family":{value:r,important:e}};let n=w.getGlobal(t);if(n)return {"font-family":{value:n,important:e}};let i=t.split(","),s="",l=false;for(let a=0,u=i.length;a<u;a++){let c=i[a].trim().replace(/'/g,'"');if(!c)return null;if(c.includes(" ")){let h=(c.match(/"/g)||[]).length;if((c[0]!=='"'||a!==0)&&h!==2&&h!==0)return null;c[0]==='"'&&c[c.length-1]!=='"'?l=true:c[0]!=='"'&&c[c.length-1]!=='"'&&(c=`"${c}"`);}else c=c.replace(/"/g,"");a>0&&(s+=", "),s+=c;}return l&&(s+='"'),s?{"font-family":{important:e,value:s}}:null}static getTextTransform(t,e){let r=w.getVariable(t);if(r)return {"text-transform":{value:r,important:e}};let n=t.toLowerCase(),i=w.getGlobal(n)||tD.includes(n)&&n;return i?{"text-transform":{value:i,important:e}}:null}static getVisibility(t,e){let r=w.getVariable(t);if(r)return {visibility:{value:r,important:e}};let n=t.toLowerCase(),i=w.getGlobal(n)||eD.includes(n)&&n;return i?{visibility:{value:i,important:e}}:null}static getAspectRatio(t,e){let r=w.getVariable(t);if(r)return {"aspect-ratio":{value:r,important:e}};let n=t.toLowerCase();if(w.getGlobal(n))return {"aspect-ratio":{value:n,important:e}};let i=t,s=i.includes("auto");if(s&&(i=i.replace("auto","")),i=i.replace(VR,""),!i)return {"aspect-ratio":{value:"auto",important:e}};let l=i.split("/");if(l.length>3)return null;let a=Number(l[0]),u=l[1]?Number(l[1]):1;return isNaN(a)||isNaN(u)?null:s?{"aspect-ratio":{value:`auto ${a} / ${u}`,important:e}}:{"aspect-ratio":{value:`${a} / ${u}`,important:e}}}};chunkBUNLC3II_cjs.h();var Er=class{static getMargin(t){return this.getPaddingLikeProperty(["margin-top","margin-right","margin-bottom","margin-left"],t)}static getPadding(t){return this.getPaddingLikeProperty(["padding-top","padding-right","padding-bottom","padding-left"],t)}static getOutline(t){if(!t["outline-color"]?.value||!t["outline-style"]?.value||!t["outline-width"]?.value)return null;let e=t["outline-color"].important&&t["outline-style"].important&&t["outline-width"].important;if(w.getGlobalExceptInitial(t["outline-width"].value)&&t["outline-width"].value===t["outline-style"].value&&t["outline-width"].value===t["outline-color"].value)return {important:e,value:t["outline-width"].value};let r=[];return w.getInitial(t["outline-color"]?.value)||r.push(t["outline-color"].value),w.getInitial(t["outline-style"]?.value)||r.push(t["outline-style"].value),w.getInitial(t["outline-width"].value)||r.push(t["outline-width"].value),{important:e,value:r.join(" ")}}static getBorder(t){if(!t["border-top-width"]?.value||t["border-top-width"]?.value!==t["border-right-width"]?.value||t["border-top-width"]?.value!==t["border-bottom-width"]?.value||t["border-top-width"]?.value!==t["border-left-width"]?.value||!t["border-top-style"]?.value||t["border-top-style"]?.value!==t["border-right-style"]?.value||t["border-top-style"]?.value!==t["border-bottom-style"]?.value||t["border-top-style"]?.value!==t["border-left-style"]?.value||!t["border-top-color"]?.value||t["border-top-color"]?.value!==t["border-right-color"]?.value||t["border-top-color"]?.value!==t["border-bottom-color"]?.value||t["border-top-color"]?.value!==t["border-left-color"]?.value||!t["border-image-source"]?.value||!t["border-image-slice"]?.value||!t["border-image-width"]?.value||!t["border-image-outset"]?.value||!t["border-image-repeat"]?.value)return null;let e=t["border-top-width"].important&&t["border-right-width"].important&&t["border-bottom-width"].important&&t["border-left-width"].important&&t["border-top-style"].important&&t["border-right-style"].important&&t["border-bottom-style"].important&&t["border-left-style"].important&&t["border-top-color"].important&&t["border-right-color"].important&&t["border-bottom-color"].important&&t["border-left-color"].important&&t["border-image-source"].important&&t["border-image-slice"].important&&t["border-image-width"].important&&t["border-image-outset"].important&&t["border-image-repeat"].important;if(w.getGlobalExceptInitial(t["border-top-width"].value)||w.getGlobalExceptInitial(t["border-top-style"].value)||w.getGlobalExceptInitial(t["border-top-color"].value)||w.getGlobalExceptInitial(t["border-image-source"].value)||w.getGlobalExceptInitial(t["border-image-slice"].value)||w.getGlobalExceptInitial(t["border-image-width"].value)||w.getGlobalExceptInitial(t["border-image-outset"].value)||w.getGlobalExceptInitial(t["border-image-repeat"].value))return t["border-top-width"].value!==t["border-top-style"].value||t["border-top-width"].value!==t["border-top-color"].value||t["border-top-width"].value!==t["border-image-source"].value||t["border-top-width"].value!==t["border-image-slice"].value||t["border-top-width"].value!==t["border-image-width"].value||t["border-top-width"].value!==t["border-image-outset"].value||t["border-top-width"].value!==t["border-image-repeat"].value?null:{important:e,value:t["border-top-width"].value};let r=[];return w.getInitial(t["border-top-width"].value)||r.push(t["border-top-width"].value),w.getInitial(t["border-top-style"].value)||r.push(t["border-top-style"].value),w.getInitial(t["border-top-color"].value)||r.push(t["border-top-color"].value),{important:e,value:r.join(" ")}}static getBorderTop(t){return this.getBorderTopRightBottomLeft("top",t)}static getBorderRight(t){return this.getBorderTopRightBottomLeft("right",t)}static getBorderBottom(t){return this.getBorderTopRightBottomLeft("bottom",t)}static getBorderLeft(t){return this.getBorderTopRightBottomLeft("left",t)}static getBorderColor(t){return this.getPaddingLikeProperty(["border-top-color","border-right-color","border-bottom-color","border-left-color"],t)}static getBorderWidth(t){return this.getPaddingLikeProperty(["border-top-width","border-right-width","border-bottom-width","border-left-width"],t)}static getBorderStyle(t){return this.getPaddingLikeProperty(["border-top-style","border-right-style","border-bottom-style","border-left-style"],t)}static getBorderRadius(t){return this.getPaddingLikeProperty(["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"],t)}static getBorderImage(t){if(!t["border-image-source"]?.value||!t["border-image-slice"]?.value||!t["border-image-width"]?.value||!t["border-image-outset"]?.value||!t["border-image-repeat"]?.value)return null;let e=t["border-image-source"].important&&t["border-image-slice"].important&&t["border-image-width"].important&&t["border-image-outset"].important&&t["border-image-repeat"].important;return w.getGlobal(t["border-image-source"].value)||w.getGlobal(t["border-image-slice"].value)||w.getGlobal(t["border-image-width"].value)||w.getGlobal(t["border-image-outset"].value)||w.getGlobal(t["border-image-repeat"].value)?t["border-image-source"].value!==t["border-image-slice"].value||t["border-image-source"].value!==t["border-image-width"].value||t["border-image-source"].value!==t["border-image-outset"].value||t["border-image-source"].value!==t["border-image-repeat"].value?null:{important:e,value:t["border-image-source"].value}:{important:e,value:`${t["border-image-source"].value} ${t["border-image-slice"].value} / ${t["border-image-width"].value} / ${t["border-image-outset"].value} ${t["border-image-repeat"].value}`}}static getBackground(t){if(!t["background-image"]?.value||!t["background-repeat"]?.value||!t["background-attachment"]?.value||!t["background-position-x"]?.value||!t["background-position-y"]?.value||!t["background-color"]?.value||!t["background-size"]?.value||!t["background-origin"]?.value||!t["background-clip"]?.value)return null;let e=t["background-image"].important&&t["background-repeat"].important&&t["background-attachment"].important&&t["background-position-x"].important&&t["background-position-y"].important&&t["background-color"].important&&t["background-size"].important&&t["background-origin"].important&&t["background-clip"].important;if(w.getGlobalExceptInitial(t["background-image"].value)||w.getGlobalExceptInitial(t["background-repeat"].value)||w.getGlobalExceptInitial(t["background-attachment"].value)||w.getGlobalExceptInitial(t["background-position-x"].value)||w.getGlobalExceptInitial(t["background-position-y"].value)||w.getGlobalExceptInitial(t["background-color"].value)||w.getGlobalExceptInitial(t["background-size"].value)||w.getGlobalExceptInitial(t["background-origin"].value)||w.getGlobalExceptInitial(t["background-clip"].value))return t["background-image"].value!==t["background-repeat"].value||t["background-image"].value!==t["background-attachment"].value||t["background-image"].value!==t["background-position-x"].value||t["background-image"].value!==t["background-position-y"].value||t["background-image"].value!==t["background-color"].value||t["background-image"].value!==t["background-size"].value||t["background-image"].value!==t["background-origin"].value||t["background-image"].value!==t["background-clip"].value?null:{important:e,value:t["background-image"].value};let r=[];return w.getInitial(t["background-image"].value)||r.push(t["background-image"].value),!w.getInitial(t["background-position-x"].value)&&!w.getInitial(t["background-position-y"].value)&&!w.getInitial(t["background-size"].value)?r.push(`${t["background-position-x"].value} ${t["background-position-y"].value} / ${t["background-size"].value}`):!w.getInitial(t["background-position-x"].value)&&!w.getInitial(t["background-position-y"].value)&&r.push(`${t["background-position-x"].value} ${t["background-position-y"].value}`),w.getInitial(t["background-repeat"].value)||r.push(t["background-repeat"].value),w.getInitial(t["background-attachment"].value)||r.push(t["background-attachment"].value),w.getInitial(t["background-origin"].value)||r.push(t["background-origin"].value),w.getInitial(t["background-clip"].value)||r.push(t["background-clip"].value),w.getInitial(t["background-color"].value)||r.push(t["background-color"].value),{important:e,value:r.join(" ")}}static getBackgroundPosition(t){if(!t["background-position-x"]?.value||!t["background-position-y"]?.value)return null;let e=t["background-position-x"].important&&t["background-position-y"].important;if(w.getGlobal(t["background-position-x"].value)||w.getGlobal(t["background-position-y"].value))return t["background-position-x"].value!==t["background-position-y"].value?null:{important:e,value:t["background-position-x"].value};let r=t["background-position-x"].value.replace(/ *, */g,",").split(","),n=t["background-position-y"].value.replace(/ *, */g,",").split(","),i=[];for(let s=0;s<r.length;s++)i.push(`${r[s]} ${n[s]}`);return {important:e,value:i.join(", ")}}static getFlex(t){if(!t["flex-grow"]?.value||!t["flex-shrink"]?.value||!t["flex-basis"]?.value)return null;let e=t["flex-grow"].important&&t["flex-shrink"].important&&t["flex-basis"].important;return w.getGlobal(t["flex-grow"].value)||w.getGlobal(t["flex-shrink"].value)||w.getGlobal(t["flex-basis"].value)?t["flex-grow"].value!==t["flex-shrink"].value||t["flex-grow"].value!==t["flex-basis"].value?null:{important:e,value:t["flex-grow"].value}:{important:e,value:`${t["flex-grow"].value} ${t["flex-shrink"].value} ${t["flex-basis"].value}`}}static getFont(t){if(!t["font-size"]?.value||!t["font-family"]?.value||!t["font-weight"]?.value||!t["font-style"]?.value||!t["font-variant"]?.value||!t["font-stretch"]?.value||!t["line-height"]?.value)return null;let e=t["font-size"].important&&t["font-family"].important&&t["font-weight"].important&&t["font-style"].important&&t["font-variant"].important&&t["font-stretch"].important&&t["line-height"].important;if(w.getGlobal(t["font-size"].value)||w.getGlobal(t["font-family"].value)||w.getGlobal(t["font-weight"].value)||w.getGlobal(t["font-style"].value)||w.getGlobal(t["font-variant"].value)||w.getGlobal(t["font-stretch"].value)||w.getGlobal(t["line-height"].value))return t["font-size"].value!==t["font-family"].value||t["font-size"].value!==t["font-weight"].value||t["font-size"].value!==t["font-style"].value||t["font-size"].value!==t["font-variant"].value||t["font-size"].value!==t["font-stretch"].value||t["font-size"].value!==t["line-height"].value?null:{important:e,value:t["font-size"].value};let r=[];return t["font-style"].value!=="normal"&&r.push(t["font-style"].value),t["font-variant"].value!=="normal"&&r.push(t["font-variant"].value),t["font-weight"].value!=="normal"&&r.push(t["font-weight"].value),t["font-stretch"].value!=="normal"&&r.push(t["font-stretch"].value),t["line-height"].value!=="normal"?r.push(`${t["font-size"].value} / ${t["line-height"].value}`):r.push(t["font-size"].value),r.push(t["font-family"].value),{important:e,value:r.join(" ")}}static getBorderTopRightBottomLeft(t,e){if(!e[`border-${t}-width`]?.value||!e[`border-${t}-style`]?.value||!e[`border-${t}-color`]?.value)return null;let r=e[`border-${t}-width`].important&&e[`border-${t}-style`].important&&e[`border-${t}-color`].important;if(w.getGlobalExceptInitial(e[`border-${t}-width`].value)&&e[`border-${t}-width`].value===e[`border-${t}-style`].value&&e[`border-${t}-width`].value===e[`border-${t}-color`].value)return {important:r,value:e[`border-${t}-width`].value};let n=[];return w.getInitial(e[`border-${t}-width`].value)||n.push(e[`border-${t}-width`].value),w.getInitial(e[`border-${t}-style`]?.value)||n.push(e[`border-${t}-style`].value),w.getInitial(e[`border-${t}-color`]?.value)||n.push(e[`border-${t}-color`].value),{important:r,value:n.join(" ")}}static getPaddingLikeProperty(t,e){if(!e[t[0]]?.value||!e[t[1]]?.value||!e[t[2]]?.value||!e[t[3]]?.value)return null;let r=e[t[0]].important&&e[t[1]].important&&e[t[2]].important&&e[t[3]].important;if(w.getGlobal(e[t[0]].value)||w.getGlobal(e[t[1]].value)||w.getGlobal(e[t[2]].value)||w.getGlobal(e[t[3]].value))return e[t[0]].value!==e[t[1]].value||e[t[0]].value!==e[t[2]].value||e[t[0]].value!==e[t[3]].value?null:{important:r,value:e[t[0]].value};let n=[e[t[0]].value];return (e[t[1]].value!==e[t[0]].value||e[t[2]].value!==e[t[0]].value||e[t[3]].value!==e[t[1]].value)&&n.push(e[t[1]].value),(e[t[2]].value!==e[t[0]].value||e[t[3]].value!==e[t[1]].value)&&n.push(e[t[2]].value),e[t[3]].value!==e[t[1]].value&&n.push(e[t[3]].value),{important:r,value:n.join(" ")}}};chunkBUNLC3II_cjs.h();var rD=/\s*([^:;]+?)\s*:\s*((?:[^(;]*?(?:\([^)]*\))?)*?)\s*(!important)?\s*(?:$|;)/g,hc=class{static parse(t){let e={},r=[],n=new RegExp(rD),i;for(;i=n.exec(t);){let s=(i[1]??"").trim(),l=(i[2]??"").trim(),a=!!i[3];s&&l&&(s.startsWith("--")&&(e[s]=l),r.push({name:s,value:l,important:a}));}return {rules:r,properties:e}}};var oD=[["margin"],["padding"],["border",["border-width","border-style","border-color","border-image"]],["border-radius"],["background","background-position"],["font"]],Fi=class{properties={};definedPropertyNames={};constructor(t){if(t?.cssText){let{rules:e}=hc.parse(t.cssText);for(let r of e)(r.important||!this.get(r.name)?.important)&&this.set(r.name,r.value,r.important);}}get(t){if(this.properties[t])return this.properties[t];switch(t){case "margin":return Er.getMargin(this.properties);case "padding":return Er.getPadding(this.properties);case "border":return Er.getBorder(this.properties);case "border-top":return Er.getBorderTop(this.properties);case "border-right":return Er.getBorderRight(this.properties);case "border-bottom":return Er.getBorderBottom(this.properties);case "border-left":return Er.getBorderLeft(this.properties);case "border-color":return Er.getBorderColor(this.properties);case "border-style":return Er.getBorderStyle(this.properties);case "border-width":return Er.getBorderWidth(this.properties);case "border-radius":return Er.getBorderRadius(this.properties);case "border-image":return Er.getBorderImage(this.properties);case "outline":return Er.getOutline(this.properties);case "background":return Er.getBackground(this.properties);case "background-position":return Er.getBackgroundPosition(this.properties);case "flex":return Er.getFlex(this.properties);case "font":return Er.getFont(this.properties)}return this.properties[t]||null}remove(t){switch(delete this.properties[t],delete this.definedPropertyNames[t],t){case "border":delete this.properties["border-top-width"],delete this.properties["border-right-width"],delete this.properties["border-bottom-width"],delete this.properties["border-left-width"],delete this.properties["border-top-style"],delete this.properties["border-right-style"],delete this.properties["border-bottom-style"],delete this.properties["border-left-style"],delete this.properties["border-top-color"],delete this.properties["border-right-color"],delete this.properties["border-bottom-color"],delete this.properties["border-left-color"],delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case "border-top":delete this.properties["border-top-width"],delete this.properties["border-top-style"],delete this.properties["border-top-color"],delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case "border-right":delete this.properties["border-right-width"],delete this.properties["border-right-style"],delete this.properties["border-right-color"],delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case "border-bottom":delete this.properties["border-bottom-width"],delete this.properties["border-bottom-style"],delete this.properties["border-bottom-color"],delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case "border-left":delete this.properties["border-left-width"],delete this.properties["border-left-style"],delete this.properties["border-left-color"],delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case "border-width":delete this.properties["border-top-width"],delete this.properties["border-right-width"],delete this.properties["border-bottom-width"],delete this.properties["border-left-width"];break;case "border-style":delete this.properties["border-top-style"],delete this.properties["border-right-style"],delete this.properties["border-bottom-style"],delete this.properties["border-left-style"];break;case "border-color":delete this.properties["border-top-color"],delete this.properties["border-right-color"],delete this.properties["border-bottom-color"],delete this.properties["border-left-color"];break;case "border-image":delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case "border-radius":delete this.properties["border-top-left-radius"],delete this.properties["border-top-right-radius"],delete this.properties["border-bottom-right-radius"],delete this.properties["border-bottom-left-radius"];break;case "outline":delete this.properties["outline-color"],delete this.properties["outline-style"],delete this.properties["outline-width"];break;case "background":delete this.properties["background-color"],delete this.properties["background-image"],delete this.properties["background-repeat"],delete this.properties["background-attachment"],delete this.properties["background-position-x"],delete this.properties["background-position-y"],delete this.properties["background-size"],delete this.properties["background-origin"],delete this.properties["background-clip"];break;case "background-position":delete this.properties["background-position-x"],delete this.properties["background-position-y"];break;case "flex":delete this.properties["flex-grow"],delete this.properties["flex-shrink"],delete this.properties["flex-basis"];break;case "font":delete this.properties["font-style"],delete this.properties["font-variant"],delete this.properties["font-weight"],delete this.properties["font-stretch"],delete this.properties["font-size"],delete this.properties["line-height"],delete this.properties["font-family"];break;case "padding":delete this.properties["padding-top"],delete this.properties["padding-right"],delete this.properties["padding-bottom"],delete this.properties["padding-left"];break;case "margin":delete this.properties["margin-top"],delete this.properties["margin-right"],delete this.properties["margin-bottom"],delete this.properties["margin-left"];break}}set(t,e,r){if(e===null){this.remove(t);return}let n=null;switch(t){case "border":n=nt.getBorder(e,r);break;case "border-top":n=nt.getBorderTop(e,r);break;case "border-right":n=nt.getBorderRight(e,r);break;case "border-bottom":n=nt.getBorderBottom(e,r);break;case "border-left":n=nt.getBorderLeft(e,r);break;case "border-width":n=nt.getBorderWidth(e,r);break;case "border-style":n=nt.getBorderStyle(e,r);break;case "border-color":n=nt.getBorderColor(e,r);break;case "border-image":n=nt.getBorderImage(e,r);break;case "border-image-source":n=nt.getBorderImageSource(e,r);break;case "border-image-slice":n=nt.getBorderImageSlice(e,r);break;case "border-image-width":n=nt.getBorderImageWidth(e,r);break;case "border-image-outset":n=nt.getBorderImageOutset(e,r);break;case "border-image-repeat":n=nt.getBorderImageRepeat(e,r);break;case "border-top-width":n=nt.getBorderTopWidth(e,r);break;case "border-right-width":n=nt.getBorderRightWidth(e,r);break;case "border-bottom-width":n=nt.getBorderBottomWidth(e,r);break;case "border-left-width":n=nt.getBorderLeftWidth(e,r);break;case "border-top-color":n=nt.getBorderTopColor(e,r);break;case "border-right-color":n=nt.getBorderRightColor(e,r);break;case "border-bottom-color":n=nt.getBorderBottomColor(e,r);break;case "border-left-color":n=nt.getBorderLeftColor(e,r);break;case "border-top-style":n=nt.getBorderTopStyle(e,r);break;case "border-right-style":n=nt.getBorderRightStyle(e,r);break;case "border-bottom-style":n=nt.getBorderBottomStyle(e,r);break;case "border-left-style":n=nt.getBorderLeftStyle(e,r);break;case "border-radius":n=nt.getBorderRadius(e,r);break;case "border-top-left-radius":n=nt.getBorderTopLeftRadius(e,r);break;case "border-top-right-radius":n=nt.getBorderTopRightRadius(e,r);break;case "border-bottom-right-radius":n=nt.getBorderBottomRightRadius(e,r);break;case "border-bottom-left-radius":n=nt.getBorderBottomLeftRadius(e,r);break;case "border-collapse":n=nt.getBorderCollapse(e,r);break;case "outline":n=nt.getOutline(e,r);break;case "outline-width":n=nt.getOutlineWidth(e,r);break;case "outline-style":n=nt.getOutlineStyle(e,r);break;case "outline-color":n=nt.getOutlineColor(e,r);break;case "letter-spacing":n=nt.getLetterSpacing(e,r);break;case "word-spacing":n=nt.getWordSpacing(e,r);break;case "clear":n=nt.getClear(e,r);break;case "clip":n=nt.getClip(e,r);break;case "css-float":n=nt.getCSSFloat(e,r);break;case "float":n=nt.getFloat(e,r);break;case "display":n=nt.getDisplay(e,r);break;case "direction":n=nt.getDirection(e,r);break;case "flex":n=nt.getFlex(e,r);break;case "flex-shrink":n=nt.getFlexShrink(e,r);break;case "flex-grow":n=nt.getFlexGrow(e,r);break;case "flex-basis":n=nt.getFlexBasis(e,r);break;case "padding":n=nt.getPadding(e,r);break;case "padding-top":n=nt.getPaddingTop(e,r);break;case "padding-right":n=nt.getPaddingRight(e,r);break;case "padding-bottom":n=nt.getPaddingBottom(e,r);break;case "padding-left":n=nt.getPaddingLeft(e,r);break;case "margin":n=nt.getMargin(e,r);break;case "margin-top":n=nt.getMarginTop(e,r);break;case "margin-right":n=nt.getMarginRight(e,r);break;case "margin-bottom":n=nt.getMarginBottom(e,r);break;case "margin-left":n=nt.getMarginLeft(e,r);break;case "background":n=nt.getBackground(e,r);break;case "background-image":n=nt.getBackgroundImage(e,r);break;case "background-color":n=nt.getBackgroundColor(e,r);break;case "background-repeat":n=nt.getBackgroundRepeat(e,r);break;case "background-attachment":n=nt.getBackgroundAttachment(e,r);break;case "background-position":n=nt.getBackgroundPosition(e,r);break;case "width":n=nt.getWidth(e,r);break;case "height":n=nt.getHeight(e,r);break;case "top":n=nt.getTop(e,r);break;case "right":n=nt.getRight(e,r);break;case "bottom":n=nt.getBottom(e,r);break;case "left":n=nt.getLeft(e,r);break;case "font":n=nt.getFont(e,r);break;case "font-style":n=nt.getFontStyle(e,r);break;case "font-variant":n=nt.getFontVariant(e,r);break;case "font-weight":n=nt.getFontWeight(e,r);break;case "font-stretch":n=nt.getFontStretch(e,r);break;case "font-size":n=nt.getFontSize(e,r);break;case "line-height":n=nt.getLineHeight(e,r);break;case "text-indent":n=nt.getTextIndent(e,r);break;case "font-family":n=nt.getFontFamily(e,r);break;case "color":n=nt.getColor(e,r);break;case "flood-color":n=nt.getFloodColor(e,r);break;case "text-transform":n=nt.getTextTransform(e,r);break;case "visibility":n=nt.getVisibility(e,r);break;case "aspect-ratio":n=nt.getAspectRatio(e,r);break;default:let i=e.trim();if(i){let s=w.getGlobal(i);n={[t]:{value:s||i,important:r}};}break}n!==null&&Object.keys(n).length>0&&(this.definedPropertyNames[t]=true,Object.assign(this.properties,n));}clone(){let t=this.constructor,e=new t;return e.properties=JSON.parse(JSON.stringify(this.properties)),e.definedPropertyNames=Object.assign({},this.definedPropertyNames),e}size(){return Object.keys(this.properties).length}item(t){return Object.keys(this.properties)[t]||""}toString(){let t=[],e=this.clone(),r={};for(let n of oD)for(let i of n)if(Array.isArray(i)){let s=false;for(let l of i){let a=e.get(l);a&&(r[l]=a,e.remove(l),s=true);}if(s)break}else {let s=e.get(i);if(s){r[i]=s,e.remove(i);break}}for(let n of Object.keys(e.properties))r[n]=e.get(n);for(let n of Object.keys(this.definedPropertyNames)){let i=r[n];i&&(t.push(`${n}: ${i.value}${i.important?" !important":""};`),delete r[n]);}for(let n of Object.keys(r)){let i=r[n];i&&t.push(`${n}: ${i.value}${i.important?" !important":""};`);}return t.join(" ")}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var tk={default:"display: inline;",A:"",ABBR:"",ADDRESS:"display: block;",AREA:"",ARTICLE:"display: block;",ASIDE:"display: block;",AUDIO:"display: none;",B:"",BASE:"display: none;",BDI:"",BDO:"",BLOCKQUAOTE:"",BODY:"display: block;",TEMPLATE:"display: none;",FORM:"display: block;",INPUT:"display: inline-block;",TEXTAREA:"display: inline-block;",SCRIPT:"display: none;",IMG:"",LINK:"display: none;",STYLE:"display: none;",LABEL:"",SLOT:"display: contents;",SVG:"",CIRCLE:"",ELLIPSE:"",LINE:"",PATH:"",POLYGON:"",POLYLINE:"",RECT:"",STOP:"",USE:"",META:"display: none;",BLOCKQUOTE:"display: block;",BR:"",BUTTON:"display: inline-block;",CANVAS:"",CAPTION:"display: table-caption;",CITE:"",CODE:"",COL:"display: table-column;",COLGROUP:"display: table-column-group;",DATA:"",DATALIST:"display: none;",DD:"display: block;",DEL:"",DETAILS:"display: block;",DFN:"",DIALOG:{default:"display: none;",open:"display: block;"},DIV:"display: block;",DL:"display: block;",DT:"display: block;",EM:"",EMBED:"",FIELDSET:"display: block;",FIGCAPTION:"display: block;",FIGURE:"display: block;",FOOTER:"display: block;",H1:"display: block;",H2:"display: block;",H3:"display: block;",H4:"display: block;",H5:"display: block;",H6:"display: block;",HEAD:"display: none;",HEADER:"display: block;",HGROUP:"display: block;",HR:"display: block;",HTML:'display: block;direction: ltr;font: 16px "Times New Roman";',I:"",IFRAME:"",INS:"",KBD:"",LEGEND:"display: block;",LI:"display: list-item;",MAIN:"display: block;",MAP:"",MARK:"",MATH:"",MENU:"display: block;",MENUITEM:"",METER:"display: inline-block;",NAV:"display: block;",NOSCRIPT:"",OBJECT:"",OL:"display: block;",OPTGROUP:"display: block;",OPTION:"display: block;",OUTPUT:"unicode-bidi: isolate;",P:"display: block;",PARAM:"display: none;",PICTURE:"",PRE:"display: block;",PROGRESS:"display: inline-block;",Q:"",RB:"",RP:"display: none;",RT:"",RTC:"",RUBY:"",S:"",SAMP:"",SECTION:"display: block;",SELECT:"display: inline-block;",SMALL:"",SOURCE:"",SPAN:"",STRONG:"",SUB:"",SUMMARY:"display: block;",SUP:"",TABLE:"display: table;",TBODY:"display: table-row-group;",TD:"display: table-cell;",TFOOT:"display: table-footer-group;",TH:"display: table-cell;",THEAD:"display: table-header-group;",TIME:"",TITLE:"display: none;",TR:"display: table-row;",TRACK:"",U:"",UL:"display: block;",VAR:"",VIDEO:"",WBR:""};chunkBUNLC3II_cjs.h();var ek={"border-collapse":true,"border-spacing":true,"caption-side":true,color:true,cursor:true,direction:true,"empty-cells":true,"font-family":true,"font-size":true,"font-style":true,"font-variant":true,"font-weight":true,"font-size-adjust":true,"font-stretch":true,font:true,"letter-spacing":true,"line-height":true,"list-style-image":true,"list-style-position":true,"list-style-type":true,"list-style":true,orphans:true,quotes:true,"tab-size":true,"text-align":true,"text-align-last":true,"text-decoration-color":true,"text-indent":true,"text-justify":true,"text-shadow":true,"text-transform":true,visibility:true,"white-space":true,widows:true,"word-break":true,"word-spacing":true,"word-wrap":true};chunkBUNLC3II_cjs.h();var rk=["background-position-x","background-position-y","background-size","border-image-outset","border-top-width","border-right-width","border-bottom-width","border-left-width","border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius","border-image-width","clip","font-size","padding-top","padding-right","padding-bottom","padding-left","margin-top","margin-right","margin-bottom","margin-left","width","height","min-width","min-height","max-width","max-height","top","right","bottom","left","outline-width","outline-offset","letter-spacing","word-spacing","text-indent","line-height"];chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Re=class{target;classes;cache=new Map;constructor(t,e){this.target=t,this.classes=e;}bind(t){if(this.cache.has(t)||t===Symbol.iterator||t==="constructor")return;this.cache.set(t,true);let e=this.target;if(t in e)for(let r of this.classes){let n=Object.getOwnPropertyDescriptor(r.prototype,t);if(n){if(typeof n.value=="function"){if(n.value.toString().startsWith("class "))return;Object.defineProperty(e,t,{...n,value:n.value.bind(e)});}else n.get!==void 0&&Object.defineProperty(e,t,{...n,get:n.get?.bind(e),set:n.set?.bind(e)});return}}}preventBinding(t){this.cache.set(t,true);}};var Xw=class o{[J];[Kt];constructor(t,e){if(t!==b)throw new TypeError("Illegal constructor");this[J]=e;let r=new Re(this,this.constructor!==o?[this.constructor,o]:[o]),n=new Proxy(this,{get:(i,s)=>{if(s==="length")return e.length;if(s in i||typeof s=="symbol")return r.bind(s),i[s];if(s==="")return;let l=Number(s);if(!isNaN(l))return e[l]},set(i,s,l){if(r.bind(s),typeof s=="symbol")return i[s]=l,true;let a=Number(s);return isNaN(a)&&(i[s]=l),true},deleteProperty(i,s){if(typeof s=="symbol")return delete i[s],true;let l=Number(s);return isNaN(l)&&delete i[s],true},ownKeys(){return Object.keys(e)},has(i,s){if(s in i)return true;if(typeof s=="symbol")return false;let l=Number(s);return !isNaN(l)&&l>=0&&l<e.length},defineProperty(i,s,l){return r.preventBinding(s),s in i?(Object.defineProperty(i,s,l),true):false},getOwnPropertyDescriptor(i,s){if(s in i||typeof s=="symbol")return;let l=Number(s);if(!isNaN(l)&&e[l])return {value:e[l],writable:false,enumerable:true,configurable:true}}});return this[Kt]=n,n}get length(){return this[J].length}get[Symbol.toStringTag](){return "NodeList"}toLocaleString(){return "[object NodeList]"}toString(){return "[object NodeList]"}item(t){let e=this[J];return t>=0&&e[t]?e[t]:null}[Symbol.iterator](){return this[J][Symbol.iterator]()}values(){return this[J].values()}entries(){return this[J].entries()}forEach(t,e){let r=this[J],n=this[Kt]??this;for(let i=0,s=r.length;i<s;i++){let l=r[i];t.call(e??l[m],l,i,n);}}keys(){return this[J].keys()}},Mn=Xw;chunkBUNLC3II_cjs.h();var Zw;(function(o){o.none="none",o.descendant="descendant",o.child="child",o.adjacentSibling="adjacentSibling",o.subsequentSibling="subsequentSibling";})(Zw||(Zw={}));var ke=Zw;chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Op=class{tagName;id;classNames;attributes;pseudos;isPseudoElement;combinator;constructor(t){this.tagName=t?.tagName||null,this.id=t?.id||null,this.classNames=t?.classNames||null,this.attributes=t?.attributes||null,this.pseudos=t?.pseudos||null,this.isPseudoElement=t?.isPseudoElement||false,this.combinator=t?.combinator||ke.none;}match(t,e,r){let n=0;if(this.isPseudoElement)return null;if(this.tagName){if(this.tagName!=="*"&&this.tagName!==e[it].toUpperCase())return null;n+=1;}if(this.id){if(this.id!==e.id)return null;n+=100;}if(this.classNames){let i=this.matchClass(e);if(!i)return null;n+=i.priorityWeight;}if(this.attributes){let i=this.matchAttributes(e);if(!i)return null;n+=i.priorityWeight;}if(this.pseudos){let i=this.matchPseudo(t,e,r);if(!i)return null;n+=i.priorityWeight;}return {priorityWeight:n}}matchPseudo(t,e,r){let n=e[$],i=e[$]?e[$][St]:[];if(!this.pseudos)return {priorityWeight:0};let s=0;for(let l of this.pseudos){switch(l.name){case "not":case "nth-child":case "nth-of-type":case "nth-last-child":case "nth-last-of-type":case "is":case "where":if(!l.arguments){if(r)return null;throw new e[m].DOMException(`Failed to execute 'matches' on '${e.constructor.name}': '${this.getSelectorString()}' is not a valid selector.`)}break}if(!n)switch(l.name){case "first-child":case "last-child":case "only-child":case "first-of-type":case "last-of-type":case "only-of-type":case "nth-child":case "nth-of-type":case "nth-last-child":case "nth-last-of-type":return null}let a=this.matchPseudoItem(t,e,i,l,r);if(!a)return null;s+=a.priorityWeight;}return {priorityWeight:s}}matchPseudoItem(t,e,r,n,i){let s=this.getRootElement(t);switch(n.name){case "first-child":return r[0]===e?{priorityWeight:10}:null;case "last-child":return r.length&&r[r.length-1]===e?{priorityWeight:10}:null;case "only-child":return r.length===1&&r[0]===e?{priorityWeight:10}:null;case "first-of-type":for(let P of r)if(P[it]===e[it])return P===e?{priorityWeight:10}:null;return null;case "last-of-type":for(let P=r.length-1;P>=0;P--){let A=r[P];if(A[it]===e[it])return A===e?{priorityWeight:10}:null}return null;case "only-of-type":let l=false;for(let P of r)if(P[it]===e[it]){if(l||P!==e)return null;l=true;}return l?{priorityWeight:10}:null;case "checked":return e[it]==="INPUT"&&e.checked?{priorityWeight:10}:null;case "disabled":return "disabled"in e&&e.hasAttribute("disabled")?{priorityWeight:10}:null;case "empty":return e[St].length?null:{priorityWeight:10};case "root":return s&&e===s?{priorityWeight:10}:null;case "not":for(let P of n.selectorItems)if(P.match(t,e))return null;return {priorityWeight:10};case "nth-child":let a=-1;if(n.selectorItems?.[0]&&!n.selectorItems[0].match(t,e))return null;for(let P=0,A=r.length;P<A;P++)if((!n.selectorItems?.[0]||n.selectorItems[0].match(t,r[P]))&&a++,r[P]===e)return a!==-1&&n.nthFunction(a+1)?{priorityWeight:10}:null;return null;case "nth-of-type":let u=-1;for(let P=0,A=r.length;P<A;P++)if(r[P][it]===e[it]&&u++,r[P]===e)return u!==-1&&n.nthFunction(u+1)?{priorityWeight:10}:null;return null;case "nth-last-child":let c=-1;if(n.selectorItems?.[0]&&!n.selectorItems[0].match(t,e))return null;for(let P=r.length-1;P>=0;P--)if((!n.selectorItems?.[0]||n.selectorItems[0].match(t,r[P]))&&c++,r[P]===e)return c!==-1&&n.nthFunction(c+1)?{priorityWeight:10}:null;return null;case "nth-last-of-type":let h=-1;for(let P=r.length-1;P>=0;P--)if(r[P][it]===e[it]&&h++,r[P]===e)return h!==-1&&n.nthFunction(h+1)?{priorityWeight:10}:null;return null;case "target":let f=e[k].location.hash;return f&&e.isConnected&&e.id===f.slice(1)?{priorityWeight:10}:null;case "is":let d=0;if(!n.selectorItems)return null;for(let P of n.selectorItems){let A=P.match(t,e);A&&d<A.priorityWeight&&(d=A.priorityWeight);}return d?{priorityWeight:d}:null;case "where":if(!n.selectorItems)return null;for(let P of n.selectorItems)if(P.match(t,e))return {priorityWeight:0};return null;case "has":let g=0;if(n.arguments&&n.selectorItems)if(n.arguments[0]==="+"){let P=e.nextElementSibling;if(!P)return null;for(let A of n.selectorItems){let v=A.match(t,P);v&&g<v.priorityWeight&&(g=v.priorityWeight);}}else if(n.arguments[0]===">")for(let P of n.selectorItems)for(let A of e[St]){let v=P.match(t,A);if(v&&g<v.priorityWeight){g=v.priorityWeight;break}}else for(let P of n.selectorItems){let A=this.matchChildOfElement(t,P,e,i);A&&g<A.priorityWeight&&(g=A.priorityWeight);}return g?{priorityWeight:g}:null;case "focus":case "focus-visible":return e[k].activeElement===e?{priorityWeight:10}:null;case "scope":return t&&t===e?{priorityWeight:10}:null;default:return null}}matchAttributes(t){if(!this.attributes)return null;let e=0;for(let r of this.attributes){let n=t[Tt].getNamedItem(r.name);if(!n||(e+=10,r.value!==null&&(n[ot]===null||r.regExp&&!r.regExp.test(n[ot])||!r.regExp&&r.value!==n[ot])))return null}return {priorityWeight:e}}matchClass(t){if(!this.classNames)return null;let e=0;for(let r of this.classNames){if(!t.classList.contains(r))return null;e+=10;}return {priorityWeight:e}}matchChildOfElement(t,e,r,n){for(let i of r[St]){let s=e.match(t,i,n);if(s)return s;let l=this.matchChildOfElement(t,e,i,n);if(l)return l}return null}getSelectorString(){return `${this.tagName?this.tagName.toLowerCase():""}${this.id?`#${this.id}`:""}${this.classNames?`.${this.classNames.join(".")}`:""}${this.attributes?this.attributes.map(t=>`[${t.name}${t.value?`${t.operator||""}="${t.value}"`:""}]`).join(""):""}${this.pseudos?this.pseudos.map(t=>`:${t.name}${t.arguments?`(${t.arguments})`:""}`).join(""):""}`}getRootElement(t){return t?.[k]?.documentElement||t?.[m].document?.documentElement||null}};var nD=/(\s*[\s,+>~]\s*)|([\[\]\(\)"'])/g,iD=/(\*)|([a-zA-Z0-9\u00A0-\uFFFF-]+)|#(([a-zA-Z0-9\u00A0-\uFFFF_-]|\\.)+)|\.(([a-zA-Z0-9\u00A0-\uFFFF_-]|\\.)+)|\[(([a-zA-Z0-9-_]|\\.)+)\]|\[(([a-zA-Z0-9-_]|\\.)+)\s*([~|^$*]{0,1})\s*=\s*("([^"]*)"|'([^']*)')\s*(s|i){0,1}\]|\[(([a-zA-Z0-9-_]|\\.)+)\s*([~|^$*]{0,1})\s*=\s*(([a-zA-Z0-9\u00A0-\uFFFF_¤£-]|\\.)+)\]|:([a-zA-Z-]+)\s*\(.+\)|:([a-zA-Z-]+)|::([a-zA-Z-]+)/g,sD=/:([a-zA-Z-]+)|([()])/g,uf=/\\/g,lD=/\\([0-9a-fA-F]{1,6})\s?|\\(.)/g,aD=/[.*+?^${}()|[\]\\]/g,ok={odd:o=>(o+1)%2===0,even:o=>(o+1)%2!==0},uD=/ /g,Nl=class o{window;scope;ignoreErrors;constructor(t){this.window=t.window,this.scope=t.scope,this.ignoreErrors=t.ignoreErrors??false;}getSelectorItem(t){return this.getSelectorGroups(t)[0][0]}getSelectorGroups(t){t=t.trim();let e=this.window[Np].get(t);if(e)return e;let r=this.getSelectorGroupsUncached(t);return this.window[Np].set(t,r),r}getSelectorGroupsUncached(t){let e=[],r=[e],n=new RegExp(nD),i={parentheses:0,brackets:0,doubleApostrophe:0,singleApostrophe:0},s=this.scope.nodeType===L.documentNode?"Document":"Element",l=new this.window.DOMException(`Failed to execute 'querySelectorAll' on '${s}': '${t}' is not a valid selector.`),a=null,u=0,c=null,h=ke.none;for(;a=n.exec(t);)if(a[1]){if(i.parentheses===0&&i.brackets===0&&i.singleApostrophe===0&&i.doubleApostrophe===0){let f=t.substring(u,a.index).trim();switch(a[1].trim()){case ",":if(c=this.getSelectorGroupItem(f,h),!c){if(this.ignoreErrors)return [];throw l}e.push(c),e=[],r.push(e),h=ke.none;break;case ">":if(c=this.getSelectorGroupItem(f,h),!c){if(this.ignoreErrors)return [];throw l}e.push(c),h=ke.child;break;case "+":if(c=this.getSelectorGroupItem(f,h),!c){if(this.ignoreErrors)return [];throw l}e.push(c),h=ke.adjacentSibling;break;case "~":if(c=this.getSelectorGroupItem(f,h),!c){if(this.ignoreErrors)return [];throw l}e.push(c),h=ke.subsequentSibling;break;case "":if(c=this.getSelectorGroupItem(f,h),!c){if(this.ignoreErrors)return [];throw l}e.push(c),h=ke.descendant;break}u=n.lastIndex;}}else switch(a[2]){case "(":i.singleApostrophe===0&&i.doubleApostrophe===0&&i.parentheses++;break;case ")":i.singleApostrophe===0&&i.doubleApostrophe===0&&i.parentheses--;break;case "[":i.singleApostrophe===0&&i.doubleApostrophe===0&&i.brackets++;break;case "]":i.singleApostrophe===0&&i.doubleApostrophe===0&&i.brackets--;break;case '"':i.singleApostrophe===0&&(i.doubleApostrophe=i.doubleApostrophe===1?0:1);break;case "'":i.doubleApostrophe===0&&(i.singleApostrophe=i.singleApostrophe===1?0:1);break}if(c=this.getSelectorGroupItem(t.substring(u),h),!c||i.parentheses!==0||i.brackets!==0||i.singleApostrophe!==0||i.doubleApostrophe!==0){if(this.ignoreErrors)return [];throw l}return h===ke.none&&e.length>0?r.push([c]):e.push(c),r}getSelectorGroupItem(t,e){if(t=t.trim(),!t)return null;if(t==="*")return new Op({tagName:"*",combinator:e});let r=new RegExp(iD),n=new Op({combinator:e}),i,s=0;for(;i=r.exec(t);){if(t.substring(s,i.index).trim()!=="")return null;if(i[1])n.tagName="*";else if(i[2])n.tagName=i[2].toUpperCase();else if(i[3])n.id=i[3].replace(uf,"");else if(i[5])n.classNames=n.classNames||[],n.classNames.push(i[5].replace(uf,""));else if(i[7])n.attributes=n.attributes||[],n.attributes.push({name:i[7].replace(uf,""),operator:null,value:null,modifier:null,regExp:null});else if(i[9]&&(i[13]!==void 0||i[14]!==void 0)){let l=i[13]??i[14],a=o.cssUnescape(l);n.attributes=n.attributes||[],n.attributes.push({name:i[9].replace(uf,""),operator:i[11]||null,value:a,modifier:i[15]||null,regExp:this.getAttributeRegExp({operator:i[11],value:a,modifier:i[15]})});}else if(i[16]&&i[19]!==void 0){let l=o.cssUnescape(i[19]);n.attributes=n.attributes||[],n.attributes.push({name:i[16].replace(uf,""),operator:i[18]||null,value:l,modifier:null,regExp:this.getAttributeRegExp({operator:i[18],value:l})});}else if(i[21]){let l=new RegExp(sD),a=null,u=null,c=0,h=-1;for(;a=l.exec(i[0]);)if(a[1])c===0&&(u=a[1]);else if(a[2]){if(a[2]==="(")c===0&&(h=l.lastIndex),c++;else if(a[2]===")"){if(c--,c<0)return null;if(c===0){if(h===-1||!u)return null;n.pseudos=n.pseudos||[],n.pseudos.push(this.getPseudo(u,i[0].substring(h,a.index))),u=null,h=-1;}}}}else i[22]?(n.pseudos=n.pseudos||[],n.pseudos.push(this.getPseudo(i[22],null))):i[23]&&(n.isPseudoElement=true);s=r.lastIndex;}return s<t.length?null:n}getAttributeRegExp(t){let e=t.modifier==="i"?"i":"";if(!t.operator||!t.value)return null;let r=t.value.replace(aD,"\\$&");switch(t.operator){case "~":return new RegExp(`(^|\\s)${r}(\\s|$)`,e);case "|":return new RegExp(`^${r}[- ]|^${r}$`,e);case "^":return new RegExp(`^${r}`,e);case "$":return new RegExp(`${r}$`,e);case "*":return new RegExp(`${r}`,e);default:return null}}getPseudo(t,e){let r=t.toLowerCase();if(e&&(e=e.trim()),!e)return {name:r,arguments:null,selectorItems:null,nthFunction:null};switch(r){case "nth-last-child":case "nth-child":let n=e.indexOf(" of "),i=n!==-1?e.substring(0,n):e,s=n!==-1?this.getSelectorItem(e.substring(n+4).trim()):null;return {name:r,arguments:e,selectorItems:s?[s]:null,nthFunction:this.getPseudoNthFunction(i)};case "nth-of-type":case "nth-last-of-type":return {name:r,arguments:e,selectorItems:null,nthFunction:this.getPseudoNthFunction(e)};case "not":let l=[];for(let c of this.getSelectorGroups(e))c[0]&&l.push(c[0]);return {name:r,arguments:e,selectorItems:l,nthFunction:null};case "is":case "where":let a=[];for(let c of this.getSelectorGroups(e))c[0]&&a.push(c[0]);return {name:r,arguments:e,selectorItems:a,nthFunction:null};case "has":let u=[];if(!e.includes(":has(")){let c=e;e[0]==="+"?c=e.replace("+",""):e[0]===">"&&(c=e.replace(">",""));for(let h of this.getSelectorGroups(c))h[0]&&u.push(h[0]);}return {name:r,arguments:e||"",selectorItems:u,nthFunction:null};default:return {name:r,arguments:e,selectorItems:null,nthFunction:null}}}getPseudoNthFunction(t){if(!t)return null;if(t==="odd")return ok.odd;if(t==="even")return ok.even;let e=t.replace(uD,"").split("n"),r=parseInt(e[0],10)||0;if(e[0]=="-"&&(r=-1),e.length===1)return i=>i==r;let n=parseInt(e[1],10)||0;return e[0]=="+"&&(n=1),r>=1||r<=-1?r>=1?Math.abs(r)===1?i=>i>n-1:i=>i>n-1&&(i+-1*n)%r===0:Math.abs(r)===1?i=>i<n+1:i=>i<n+1&&(i+-1*n)%r===0:e[0]?i=>i===n:i=>i>n-1}static cssUnescape(t){return t.replace(lD,(e,r,n)=>r?String.fromCodePoint(parseInt(r,16)):n)}};var tx=/^[.#\[]?\d|[.#]$/,dt=class{static querySelectorAll(t,e){let r=t[m];if(e==="")throw new r.DOMException(`Failed to execute 'querySelectorAll' on '${t.constructor.name}': The provided selector is empty.`);if(typeof e=="function")throw new r.DOMException(`Failed to execute 'querySelectorAll' on '${t.constructor.name}': '${e}' is not a valid selector.`);if(typeof e=="symbol")throw new r.TypeError(`Failed to execute 'querySelectorAll' on '${t.constructor.name}': Cannot convert a Symbol value to a string`);if(e=String(e),tx.test(e))throw new r.DOMException(`Failed to execute 'querySelectorAll' on '${t.constructor.name}': '${e}' is not a valid selector.`);let n=t[_].querySelectorAll,i=n.get(e);if(i){if(i.result!==null){let g=i.result.deref();if(g)return g}n.delete(e);}let s=t[V]===L.documentNode?t.documentElement:t,l=new Nl({window:r,scope:s}).getSelectorGroups(e),a=[],u=new Mn(b,a),c=new Map,h=[],f={result:new WeakRef(u)};t[_].querySelectorAll.set(e,f),t[ct]&&(t[k]||t)[ar].push(f);for(let g of l){let P=t[V]===L.elementNode?t:null,A=t[V]===L.elementNode?[t]:t[St],v=this.findAll({scope:s,rootElement:P,children:A,selectorItems:g,cachedItem:f});for(let H of v)c.has(H.documentPosition)||(c.set(H.documentPosition,H.element),h.push(H.documentPosition));}let d=h.sort();for(let g=0,P=d.length;g<P;g++)a.push(c.get(d[g]));return u}static querySelector(t,e){let r=t[m];if(e==="")throw new r.DOMException(`Failed to execute 'querySelector' on '${t.constructor.name}': The provided selector is empty.`);if(typeof e=="function")throw new r.DOMException(`Failed to execute 'querySelector' on '${t.constructor.name}': '${e}' is not a valid selector.`);if(typeof e=="symbol")throw new r.TypeError(`Failed to execute 'querySelector' on '${t.constructor.name}': Cannot convert a Symbol value to a string`);if(e=String(e),tx.test(e))throw new r.DOMException(`Failed to execute 'querySelector' on '${t.constructor.name}': '${e}' is not a valid selector.`);let n=t[_].querySelector.get(e);if(n){if(n.result!==null){if(!n.result.element)return null;let c=n.result.element.deref();if(c)return c}t[_].querySelector.delete(e);}let i={result:{element:null}};t[_].querySelector.set(e,i),t[ct]&&(t[k]||t)[ar].push(i);let s=null,l=new Map,a=t[V]===L.documentNode?t.documentElement:t;for(let c of new Nl({window:r,scope:a}).getSelectorGroups(e)){let h=t[V]===L.elementNode?t:null,f=t[V]===L.elementNode?[t]:t[St],d=this.findFirst({scope:a,rootElement:h,children:f,selectorItems:c,cachedItem:i});d&&!l.has(d.documentPosition)&&(l.set(d.documentPosition,true),(!s||d.documentPosition<s.documentPosition)&&(s=d));}let u=s?.element||null;return i.result={element:u?new WeakRef(u):null},u}static matches(t,e,r){let n=r?.ignoreErrors,i=t[m];if(e==="*")return {priorityWeight:1};if(e===""){if(n)return null;throw new i.DOMException(`Failed to execute 'matches' on '${t.constructor.name}': The provided selector is empty.`)}if(typeof e=="function"){if(n)return null;throw new i.DOMException(`Failed to execute 'matches' on '${t.constructor.name}': '${e}' is not a valid selector.`)}if(typeof e=="symbol"){if(n)return null;throw new i.TypeError("Cannot convert a Symbol value to a string")}if(e=String(e),tx.test(e)){if(n)return null;throw new i.DOMException(`Failed to execute 'matches' on '${t.constructor.name}': '${e}' is not a valid selector.`)}let s=t[_].matches.get(e);if(s){if(s.result!==null)return s.result.match;t[_].matches.delete(e);}let l={result:{match:null}};t[_].matches.set(e,l),t[ct]&&(t[k]||t)[ar].push(l);let a=r?.scope||t,u=a[V]===L.documentNode?a.documentElement:a;for(let c of new Nl({ignoreErrors:r?.ignoreErrors,window:i,scope:u}).getSelectorGroups(e)){let h=this.matchSelector({scope:u,element:t,selectorItems:c.slice().reverse(),cachedItem:l,ignoreErrors:n});if(h)return l.result.match=h,h}return null}static matchSelector(t,e=null,r=0){let{scope:n,element:i,selectorItems:s,cachedItem:l,ignoreErrors:a}=t,u=s[0];if(!u)return null;let c=u.match(n,i,a);if(c){if(s.length===1)return {priorityWeight:r+c.priorityWeight};switch(u.combinator){case ke.adjacentSibling:let h=i.previousElementSibling;if(h){h[ar].push(l);let g=this.matchSelector({scope:n,element:h,selectorItems:s.slice(1),cachedItem:l,ignoreErrors:a},u,r+c.priorityWeight);if(g)return g}break;case ke.none:case ke.child:case ke.descendant:let f=i.parentElement;if(f){f[ar].push(l);let g=this.matchSelector({scope:n,element:f,selectorItems:s.slice(1),cachedItem:l,ignoreErrors:a},u,r+c.priorityWeight);if(g)return g}break;case ke.subsequentSibling:let d=i.parentElement;if(d){let g=d[St],P=g.indexOf(i);d[ar].push(l);for(let A=P-1;A>=0;A--){let v=g[A];v[ar].push(l);let H=this.matchSelector({scope:n,element:v,selectorItems:s.slice(1),cachedItem:l,ignoreErrors:a},u,r+c.priorityWeight);if(H)return H}}break}}if(e?.combinator===ke.none||e?.combinator===ke.descendant){let h=i.parentElement;if(h)return this.matchSelector({scope:n,element:h,selectorItems:s,cachedItem:l,ignoreErrors:a},e,r)}return null}static findAll(t,e){let{scope:r,rootElement:n,children:i,selectorItems:s,cachedItem:l}=t,a=s[0],u=s[1],c=[];if(!a)return [];for(let h=0,f=i.length;h<f;h++){let d=i[h],g=d[St],P=(e?e+">":"")+String.fromCharCode(h);if(d[ar].push(l),a.match(r,d))if(!u)n!==d&&c.push({documentPosition:P,element:d});else switch(u.combinator){case ke.adjacentSibling:let A=d.nextElementSibling;A&&(c=c.concat(this.findAll({scope:r,rootElement:n,children:[A],selectorItems:s.slice(1),cachedItem:l},P)));break;case ke.none:case ke.descendant:case ke.child:c=c.concat(this.findAll({scope:r,rootElement:n,children:g,selectorItems:s.slice(1),cachedItem:l},P));break;case ke.subsequentSibling:let v=i.indexOf(d);for(let H=v+1;H<i.length;H++){let Q=i[H];c=c.concat(this.findAll({scope:r,rootElement:n,children:[Q],selectorItems:s.slice(1),cachedItem:l},P));}break}(a.combinator===ke.none||a.combinator===ke.descendant)&&g.length&&(c=c.concat(this.findAll({scope:r,rootElement:n,children:g,selectorItems:s,cachedItem:l},P)));}return c}static findFirst(t,e){let{scope:r,rootElement:n,children:i,selectorItems:s,cachedItem:l}=t,a=s[0],u=s[1];if(!a)return null;for(let c=0,h=i.length;c<h;c++){let f=i[c],d=f[St],g=(e?e+">":"")+String.fromCharCode(c);if(f[ar].push(l),a.match(r,f)){if(u)switch(u.combinator){case ke.adjacentSibling:let P=f.nextElementSibling;if(P){let H=this.findFirst({scope:r,rootElement:n,children:[P],selectorItems:s.slice(1),cachedItem:l},g);if(H)return H}break;case ke.none:case ke.descendant:case ke.child:let A=this.findFirst({scope:r,rootElement:n,children:d,selectorItems:s.slice(1),cachedItem:l},g);if(A)return A;break;case ke.subsequentSibling:let v=i.indexOf(f);for(let H=v+1;H<i.length;H++){let Q=i[H],U=this.findFirst({scope:r,rootElement:n,children:[Q],selectorItems:s.slice(1),cachedItem:l},g);if(U)return U}break}else if(n!==f)return {documentPosition:g,element:f}}if((a.combinator===ke.none||a.combinator===ke.descendant)&&d.length){let P=this.findFirst({scope:r,rootElement:n,children:d,selectorItems:s,cachedItem:l},g);if(P)return P}}return null}};chunkBUNLC3II_cjs.h();var Wa=class{static toPixels(t){let e=parseFloat(t.value),r=t.value.replace(e.toString(),"");if(isNaN(e))return null;switch(r){case "px":return e;case "rem":return this.round(e*parseFloat(t.rootFontSize));case "em":return this.round(e*parseFloat(t.parentFontSize));case "vw":return this.round(e*t.window.innerWidth/100);case "vh":return this.round(e*t.window.innerHeight/100);case "%":return t.parentSize!==void 0&&t.parentSize!==null?this.round(e*parseFloat(t.parentSize)/100):null;case "vmin":return this.round(e*Math.min(t.window.innerWidth,t.window.innerHeight)/100);case "vmax":return e*Math.max(t.window.innerWidth,t.window.innerHeight)/100;case "cm":return this.round(e*37.7812);case "mm":return this.round(e*3.7781);case "in":return this.round(e*96);case "pt":return this.round(e*1.3281);case "pc":return this.round(e*16);case "Q":return this.round(e*.945);default:return null}}static round(t){return Math.round(t*1e4)/1e4}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var za=class extends M{matches;media;constructor(t,e=null){super(t,e),this.matches=e?.matches??false,this.media=e?.media??"";}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var ex;(function(o){o.all="all",o.print="print",o.screen="screen";})(ex||(ex={}));var kS=ex;var yc=class{mediaTypes;not;rules;ranges;rootFontSize=null;window;constructor(t){this.window=t.window,this.rootFontSize=t.rootFontSize||null,this.mediaTypes=t.mediaTypes||[],this.not=t.not||false,this.rules=t.rules||[],this.ranges=t.ranges||[];}toString(){return `${this.not?"not ":""}${this.mediaTypes.join(", ")}${(this.not||this.mediaTypes.length>0)&&this.ranges.length?" and ":""}${this.ranges.map(t=>`(${t.before?`${t.before.value} ${t.before.operator} `:""}${t.type}${t.after?` ${t.after.operator} ${t.after.value}`:""})`).join(" and ")}${(this.not||this.mediaTypes.length>0)&&this.rules.length?" and ":""}${this.rules.map(t=>t.value?`(${t.name}: ${t.value})`:`(${t.name})`).join(" and ")}`}matches(){return this.not?!this.matchesAll():this.matchesAll()}matchesAll(){if(this.mediaTypes.length){let t=false;for(let e of this.mediaTypes)if(this.matchesMediaType(e)){t=true;break}if(!t)return false}for(let t of this.rules)if(!this.matchesRule(t))return false;for(let t of this.ranges)if(!this.matchesRange(t))return false;return true}matchesMediaType(t){return t===kS.all?true:t===new et(this.window).getSettings()?.device.mediaType}matchesRange(t){let e=t.type==="width"?this.window.innerWidth:this.window.innerHeight;if(t.before){let r=this.toPixels(t.before.value);if(r===null)return false;switch(t.before.operator){case "<":if(r>=e)return false;break;case "<=":if(r>e)return false;break;case ">":if(r<=e)return false;break;case ">=":if(r<e)return false;break}}if(t.after){let r=this.toPixels(t.after.value);if(r===null)return false;switch(t.after.operator){case "<":if(e>=r)return false;break;case "<=":if(e>r)return false;break;case ">":if(e<=r)return false;break;case ">=":if(e<r)return false;break}}return true}matchesRule(t){let e=new et(this.window).getSettings();if(!e)return false;if(!t.value){switch(t.name){case "min-width":case "max-width":case "min-height":case "max-height":case "width":case "height":case "orientation":case "prefers-color-scheme":case "hover":case "any-hover":case "any-pointer":case "pointer":case "display-mode":case "min-aspect-ratio":case "max-aspect-ratio":case "aspect-ratio":return true;case "prefers-reduced-motion":return e.device.prefersReducedMotion==="reduce";case "forced-colors":return e.device.forcedColors==="active"}return false}switch(t.name){case "min-width":let r=this.toPixels(t.value);return r!==null&&this.window.innerWidth>=r;case "max-width":let n=this.toPixels(t.value);return n!==null&&this.window.innerWidth<=n;case "min-height":let i=this.toPixels(t.value);return i!==null&&this.window.innerHeight>=i;case "max-height":let s=this.toPixels(t.value);return s!==null&&this.window.innerHeight<=s;case "width":let l=this.toPixels(t.value);return l!==null&&this.window.innerWidth===l;case "height":let a=this.toPixels(t.value);return a!==null&&this.window.innerHeight===a;case "orientation":return t.value==="landscape"?this.window.innerWidth>this.window.innerHeight:this.window.innerWidth<this.window.innerHeight;case "prefers-color-scheme":return t.value===e.device.prefersColorScheme;case "prefers-reduced-motion":return t.value===e.device.prefersReducedMotion;case "forced-colors":return (t.value==="none"||t.value==="active")&&t.value===e.device.forcedColors;case "any-hover":case "hover":return t.value==="none"?this.window.navigator.maxTouchPoints>0:t.value==="hover"?this.window.navigator.maxTouchPoints===0:false;case "any-pointer":case "pointer":return t.value==="none"?false:t.value==="coarse"?this.window.navigator.maxTouchPoints>0:t.value==="fine"?this.window.navigator.maxTouchPoints===0:false;case "display-mode":return t.value==="browser";case "min-aspect-ratio":case "max-aspect-ratio":case "aspect-ratio":let u=t.value.split("/"),c=parseInt(u[0],10),h=parseInt(u[1],10);if(isNaN(c)||isNaN(h))return false;switch(t.name){case "min-aspect-ratio":return c/h<=this.window.innerWidth/this.window.innerHeight;case "max-aspect-ratio":return c/h>=this.window.innerWidth/this.window.innerHeight;case "aspect-ratio":return c/h===this.window.innerWidth/this.window.innerHeight}}return false}toPixels(t){return !new et(this.window).getSettings()?.disableComputedStyleRendering&&t.endsWith("em")?(this.rootFontSize=this.rootFontSize||parseFloat(this.window.getComputedStyle(this.window.document.documentElement).fontSize),Wa.toPixels({window:this.window,value:t,rootFontSize:this.rootFontSize,parentFontSize:this.rootFontSize})):Wa.toPixels({window:this.window,value:t,rootFontSize:16,parentFontSize:16})}};var cD=/(not|only|all|screen|print)|\(([^\)]+)(\)){0,1}|(,)| +(or|and) +/g,pD=/[<>]/,mD=/(?:([0-9]+[a-z]+) *(<|<=|>|>=)){0,1} *(width|height) *(?:(<|<=|>|>=) *([0-9]+[a-z]+)){0,1}/,Fp=class{static parse(t){let e=new yc({window:t.window,rootFontSize:t.rootFontSize}),r=[e],n=new RegExp(cD),i=null;for(;i=n.exec(t.mediaQuery.toLowerCase());)if(i[4]===","||i[5]==="or")e=new yc({window:t.window,rootFontSize:t.rootFontSize}),r.push(e);else if(i[1]==="all"||i[1]==="screen"||i[1]==="print")e.mediaTypes.push(i[1]);else if(i[1]==="not")e.not=true;else if(i[2]){let s=pD.test(i[2])?i[2].match(mD):null;if(s&&(s[1]||s[5]))e.ranges.push({before:s[1]?{value:s[1],operator:s[2]}:null,type:s[3],after:s[5]?{value:s[5],operator:s[4]}:null});else {let[l,a]=i[2].split(":"),u=a?a.trim():null;if(!u&&!i[3])return [new yc({window:t.window,rootFontSize:t.rootFontSize,not:true,mediaTypes:[kS.all]})];e.rules.push({name:l.trim(),value:u});}}return r}};var dc=class extends Dt{onchange=null;#t;#e=null;#r;#o=null;constructor(t){super(),this.#t=t.window,this.#r=t.media,this.#o=t.rootFontSize||null;}get media(){return this.#e=this.#e||Fp.parse({window:this.#t,mediaQuery:this.#r,rootFontSize:this.#o}),this.#e.map(t=>t.toString()).join(", ")}get matches(){this.#e=this.#e||Fp.parse({window:this.#t,mediaQuery:this.#r,rootFontSize:this.#o});for(let t of this.#e)if(!t.matches())return false;return true}addListener(t){this.addEventListener("change",t);}removeListener(t){this.removeEventListener("change",t);}addEventListener(t,e){if(super.addEventListener(t,e),t==="change"){let r=false,n=()=>{let i=this.matches;i!==r&&(r=i,this.dispatchEvent(new za("change",{matches:i,media:this.media})));};e[Zg]=n,this.#t.addEventListener("resize",n);}}removeEventListener(t,e){super.removeEventListener(t,e),t==="change"&&e[Zg]&&this.#t.removeEventListener("resize",e[Zg]);}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var si=class extends An{[ur]=[];get cssRules(){return this[ur]}insertRule(t,e){if(arguments.length===0)throw new this[m].TypeError(`Failed to execute 'insertRule' on '${this.constructor.name}': 1 argument required, but only 0 present.`);let r=this[lc].parseFromString(t);if(r.length===0||r.length>1)throw new this[m].DOMException(`Failed to execute 'insertRule' on '${this.constructor.name}': Failed to parse the rule '${t}'.`,C.syntaxError);if(e!==void 0){if(e=Number(e),isNaN(e)||e>this.cssRules.length)throw new this[m].DOMException(`Failed to execute 'insertRule' on '${this.constructor.name}': The index provided (${e}) is larger than the maximum index (${this.cssRules.length}).`,C.indexSizeError);return this.cssRules.splice(e,0,r[0]),e}let n=this.cssRules.length;return this.cssRules.unshift(r[0]),n}deleteRule(t){if(arguments.length===0)throw new this[m].TypeError(`Failed to execute 'deleteRule' on '${this.constructor.name}': 1 argument required, but only 0 present.`);if(t=Number(t),isNaN(t)||t<0||t>=this.cssRules.length)throw new this[m].DOMException(`Failed to execute 'deleteRule' on '${this.constructor.name}': the index (${t}) is greater than the length of the rule list.`,C.indexSizeError);this.cssRules.splice(t,1);}};var Ns=class extends si{[W]="";[q]="";[ho]="";get type(){return gt.containerRule}get cssText(){let t="";for(let e of this[ur])t+=`
48
- `+e.cssText;return t+=`
49
- `,`@${this[ho]}scope${this[W]?` (${this[W]})`:""}${this[q]?` to (${this[q]})`:""} {${t}}`}get start(){return this[W]}get end(){return this[q]}};var hD=/[0-9.]+(px|rem|em|vw|vh|%|vmin|vmax|cm|mm|in|pt|pc|Q)/g,nk=/:host\s*\(([^)]+)\)|:host-context\s*\(([^)]+)\)/,yD=/var\( *(--[^), ]+)\)/,dD=/var\( *(--[^), ]+), *([^), ]+)\)/,cf=class{element;constructor(t){this.element=t;}getComputedStyle(){let t=[],e=[],r={element:this.element,cssTexts:[]},n=[],i=[];if(!this.element[ct])return new Fi;let s=this.element[_].computedStyle;if(s?.result){let d=s.result.deref();if(d)return d}for(;r.element;)if(r.element[V]===L.elementNode&&(r.element.getRootNode()[V]===L.documentNode?t.unshift(r):n.unshift(r),r.element.shadowRoot&&i.push(r),e.unshift(r)),r.element===this.element[k]){let d=this.getStyleSheets(this.element[k]);for(let g of d)this.parseCSSRules({elements:t,cssRules:g.cssRules});for(let g of i){let P=this.getStyleSheets(g.element.shadowRoot);for(let A of P)this.parseCSSRules({elements:[],cssRules:A.cssRules,hostElement:g});}r={element:null,cssTexts:[]};}else if(r.element[V]===L.documentFragmentNode&&r.element.host){let d=r.element,g=this.getStyleSheets(d);r={element:d.host,cssTexts:[]};for(let P of g)this.parseCSSRules({elements:n,cssRules:P.cssRules,hostElement:r});for(let P of i){let A=this.getStyleSheets(P.element.shadowRoot);for(let v of A)this.parseCSSRules({elements:[],cssRules:v.cssRules,hostElement:P});}i=[],n=[];}else r={element:r.element[$],cssTexts:[]};let l=e[e.length-1],a=new Fi,u={},c=16,h=16;for(let d of e){d.cssTexts.sort((Q,U)=>Q.priorityWeight-U.priorityWeight);let g=tk[d.element[it]],P="";if(g)if(typeof g=="string")P+=g;else for(let Q of Object.keys(g))(Q==="default"||d.element[Q])&&(P+=g[Q]);for(let Q of d.cssTexts)P+=Q.cssText;let A=d.element.getAttribute("style");A&&(P+=A);let v=hc.parse(P),H=v.rules;Object.assign(u,v.properties);for(let{name:Q,value:U,important:j}of H)if(ek[Q]||d===l){let at=this.parseCSSVariablesInValue(U.trim(),u);if(at&&(!a.get(Q)?.important||j)&&(a.set(Q,at,j),Q==="font"||Q==="font-size")){let X=a.properties["font-size"];if(X!==null){let Ct=this.parseMeasurementsInValue({value:X.value,rootFontSize:c,parentFontSize:h,parentSize:h});d.element[it]==="HTML"?c=Ct:d!==l&&(h=Ct);}}}}for(let d of rk){let g=a.properties[d];g&&(g.value=this.parseMeasurementsInValue({value:g.value,rootFontSize:c,parentFontSize:h,parentSize:d==="font-size"?h:null}));}let f={result:new WeakRef(a)};return this.element[_].computedStyle=f,this.element[k][ri].push(f),a}getStyleSheets(t){if(!t)return [];let e=t.querySelectorAll('style,link[rel="stylesheet"]'),r=[];for(let n of e){let i=n.sheet;i&&r.push(i);}return t.adoptedStyleSheets&&(r=r.concat(t.adoptedStyleSheets)),r}parseCSSRules(t){if(!t.hostElement&&!t.elements.length)return;let e=this.element[m];for(let r of t.cssRules)if(r.type===gt.styleRule){let n=r.selectorText;if(n)if(n[0]===":"&&n.startsWith(":host")){if(t.hostElement){let i=true;if(n!==":host"){let s=n.match(nk);if(s)if(dt.matches(t.hostElement.element,s[1]||s[2],{ignoreErrors:true,scope:t.scopeElement?.element})){let a=n?.replace(nk,"").trim();if(a&&a[0]!==":"){i=false;for(let u of t.elements){let c=dt.matches(u.element,a,{ignoreErrors:true,scope:t.scopeElement?.element});c&&u.cssTexts.push({cssText:r[jr],priorityWeight:10+c.priorityWeight});}}}else i=false;}i&&t.hostElement.cssTexts.push({cssText:r[jr],priorityWeight:10});}}else for(let i of t.elements){let s=dt.matches(i.element,n,{ignoreErrors:true,scope:t.scopeElement?.element});s&&i.cssTexts.push({cssText:r[jr],priorityWeight:s.priorityWeight});}}else if(r.type===gt.mediaRule&&new dc({window:e,media:r.conditionText,rootFontSize:this.element[it]==="HTML"?16:null}).matches)this.parseCSSRules({elements:t.elements,cssRules:r.cssRules,hostElement:t.hostElement,scopeElement:t.scopeElement});else if(r.type===gt.supportsRule)e.CSS.supports(r.conditionText)&&this.parseCSSRules({elements:t.elements,cssRules:r.cssRules,hostElement:t.hostElement,scopeElement:t.scopeElement});else if(r.type===gt.containerRule&&r instanceof Ns){let n=[],i=null;for(let s of t.elements)if(i){if(r[q]&&dt.matches(s.element,r[q],{ignoreErrors:true,scope:i.element}))break;n.push(s);}else dt.matches(s.element,r[W]||":root",{ignoreErrors:true})&&(i=s,n.push(s));n.length&&this.parseCSSRules({elements:n,cssRules:r.cssRules,hostElement:t.hostElement,scopeElement:i});}}parseCSSVariablesInValue(t,e){let r=t,n;for(;(n=r.match(yD))!=null;)r=r.replace(n[0],e[n[1]]||"");for(;(n=r.match(dD))!==null;)r=r.replace(n[0],e[n[1]]||n[2]);return r}parseMeasurementsInValue(t){if(new et(this.element[m]).getSettings()?.disableComputedStyleRendering)return t.value;let e=new RegExp(hD),r=t.value,n;for(;(n=e.exec(t.value))!==null;)if(n[1]!=="px"){let i=Wa.toPixels({window:this.element[m],value:n[0],rootFontSize:t.rootFontSize,parentFontSize:t.parentFontSize,parentSize:t.parentSize});i!==null&&(r=r.replace(n[0],i+"px"));}return r}};var fo=class{parentRule=null;[m];#t;#e;#r={attributeValue:null,propertyManager:null};constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this.#t=r?.element||null,this.#e=r?.element?!!r?.computed:false;}get 0(){return this.item(0)||void 0}get 1(){return this.item(1)||void 0}get 2(){return this.item(2)||void 0}get 3(){return this.item(3)||void 0}get 4(){return this.item(4)||void 0}get 5(){return this.item(5)||void 0}get 6(){return this.item(6)||void 0}get 7(){return this.item(7)||void 0}get 8(){return this.item(8)||void 0}get 9(){return this.item(9)||void 0}get 10(){return this.item(10)||void 0}get 11(){return this.item(11)||void 0}get 12(){return this.item(12)||void 0}get 13(){return this.item(13)||void 0}get 14(){return this.item(14)||void 0}get 15(){return this.item(15)||void 0}get 16(){return this.item(16)||void 0}get 17(){return this.item(17)||void 0}get 18(){return this.item(18)||void 0}get 19(){return this.item(19)||void 0}get 20(){return this.item(20)||void 0}get 21(){return this.item(21)||void 0}get 22(){return this.item(22)||void 0}get 23(){return this.item(23)||void 0}get 24(){return this.item(24)||void 0}get 25(){return this.item(25)||void 0}get 26(){return this.item(26)||void 0}get 27(){return this.item(27)||void 0}get 28(){return this.item(28)||void 0}get 29(){return this.item(29)||void 0}get 30(){return this.item(30)||void 0}get 31(){return this.item(31)||void 0}get 32(){return this.item(32)||void 0}get 33(){return this.item(33)||void 0}get 34(){return this.item(34)||void 0}get 35(){return this.item(35)||void 0}get 36(){return this.item(36)||void 0}get 37(){return this.item(37)||void 0}get 38(){return this.item(38)||void 0}get 39(){return this.item(39)||void 0}get 40(){return this.item(40)||void 0}get 41(){return this.item(41)||void 0}get 42(){return this.item(42)||void 0}get 43(){return this.item(43)||void 0}get 44(){return this.item(44)||void 0}get 45(){return this.item(45)||void 0}get 46(){return this.item(46)||void 0}get 47(){return this.item(47)||void 0}get 48(){return this.item(48)||void 0}get 49(){return this.item(49)||void 0}get 50(){return this.item(50)||void 0}get 51(){return this.item(51)||void 0}get 52(){return this.item(52)||void 0}get 53(){return this.item(53)||void 0}get 54(){return this.item(54)||void 0}get 55(){return this.item(55)||void 0}get 56(){return this.item(56)||void 0}get 57(){return this.item(57)||void 0}get 58(){return this.item(58)||void 0}get 59(){return this.item(59)||void 0}get 60(){return this.item(60)||void 0}get 61(){return this.item(61)||void 0}get 62(){return this.item(62)||void 0}get 63(){return this.item(63)||void 0}get 64(){return this.item(64)||void 0}get 65(){return this.item(65)||void 0}get 66(){return this.item(66)||void 0}get 67(){return this.item(67)||void 0}get 68(){return this.item(68)||void 0}get 69(){return this.item(69)||void 0}get 70(){return this.item(70)||void 0}get 71(){return this.item(71)||void 0}get 72(){return this.item(72)||void 0}get 73(){return this.item(73)||void 0}get 74(){return this.item(74)||void 0}get 75(){return this.item(75)||void 0}get 76(){return this.item(76)||void 0}get 77(){return this.item(77)||void 0}get 78(){return this.item(78)||void 0}get 79(){return this.item(79)||void 0}get 80(){return this.item(80)||void 0}get 81(){return this.item(81)||void 0}get 82(){return this.item(82)||void 0}get 83(){return this.item(83)||void 0}get 84(){return this.item(84)||void 0}get 85(){return this.item(85)||void 0}get 86(){return this.item(86)||void 0}get 87(){return this.item(87)||void 0}get 88(){return this.item(88)||void 0}get 89(){return this.item(89)||void 0}get 90(){return this.item(90)||void 0}get 91(){return this.item(91)||void 0}get 92(){return this.item(92)||void 0}get 93(){return this.item(93)||void 0}get 94(){return this.item(94)||void 0}get 95(){return this.item(95)||void 0}get 96(){return this.item(96)||void 0}get 97(){return this.item(97)||void 0}get 98(){return this.item(98)||void 0}get 99(){return this.item(99)||void 0}get 100(){return this.item(100)||void 0}get 101(){return this.item(101)||void 0}get 102(){return this.item(102)||void 0}get 103(){return this.item(103)||void 0}get 104(){return this.item(104)||void 0}get 105(){return this.item(105)||void 0}get 106(){return this.item(106)||void 0}get 107(){return this.item(107)||void 0}get 108(){return this.item(108)||void 0}get 109(){return this.item(109)||void 0}get 110(){return this.item(110)||void 0}get 111(){return this.item(111)||void 0}get 112(){return this.item(112)||void 0}get 113(){return this.item(113)||void 0}get 114(){return this.item(114)||void 0}get 115(){return this.item(115)||void 0}get 116(){return this.item(116)||void 0}get 117(){return this.item(117)||void 0}get 118(){return this.item(118)||void 0}get 119(){return this.item(119)||void 0}get 120(){return this.item(120)||void 0}get 121(){return this.item(121)||void 0}get 122(){return this.item(122)||void 0}get 123(){return this.item(123)||void 0}get 124(){return this.item(124)||void 0}get 125(){return this.item(125)||void 0}get 126(){return this.item(126)||void 0}get 127(){return this.item(127)||void 0}get 128(){return this.item(128)||void 0}get 129(){return this.item(129)||void 0}get 130(){return this.item(130)||void 0}get 131(){return this.item(131)||void 0}get 132(){return this.item(132)||void 0}get 133(){return this.item(133)||void 0}get 134(){return this.item(134)||void 0}get 135(){return this.item(135)||void 0}get 136(){return this.item(136)||void 0}get 137(){return this.item(137)||void 0}get 138(){return this.item(138)||void 0}get 139(){return this.item(139)||void 0}get 140(){return this.item(140)||void 0}get 141(){return this.item(141)||void 0}get 142(){return this.item(142)||void 0}get 143(){return this.item(143)||void 0}get 144(){return this.item(144)||void 0}get 145(){return this.item(145)||void 0}get 146(){return this.item(146)||void 0}get 147(){return this.item(147)||void 0}get 148(){return this.item(148)||void 0}get 149(){return this.item(149)||void 0}get 150(){return this.item(150)||void 0}get 151(){return this.item(151)||void 0}get 152(){return this.item(152)||void 0}get 153(){return this.item(153)||void 0}get 154(){return this.item(154)||void 0}get 155(){return this.item(155)||void 0}get 156(){return this.item(156)||void 0}get 157(){return this.item(157)||void 0}get 158(){return this.item(158)||void 0}get 159(){return this.item(159)||void 0}get 160(){return this.item(160)||void 0}get 161(){return this.item(161)||void 0}get 162(){return this.item(162)||void 0}get 163(){return this.item(163)||void 0}get 164(){return this.item(164)||void 0}get 165(){return this.item(165)||void 0}get 166(){return this.item(166)||void 0}get 167(){return this.item(167)||void 0}get 168(){return this.item(168)||void 0}get 169(){return this.item(169)||void 0}get 170(){return this.item(170)||void 0}get 171(){return this.item(171)||void 0}get 172(){return this.item(172)||void 0}get 173(){return this.item(173)||void 0}get 174(){return this.item(174)||void 0}get 175(){return this.item(175)||void 0}get 176(){return this.item(176)||void 0}get 177(){return this.item(177)||void 0}get 178(){return this.item(178)||void 0}get 179(){return this.item(179)||void 0}get 180(){return this.item(180)||void 0}get 181(){return this.item(181)||void 0}get 182(){return this.item(182)||void 0}get 183(){return this.item(183)||void 0}get 184(){return this.item(184)||void 0}get 185(){return this.item(185)||void 0}get 186(){return this.item(186)||void 0}get 187(){return this.item(187)||void 0}get 188(){return this.item(188)||void 0}get 189(){return this.item(189)||void 0}get 190(){return this.item(190)||void 0}get 191(){return this.item(191)||void 0}get 192(){return this.item(192)||void 0}get 193(){return this.item(193)||void 0}get 194(){return this.item(194)||void 0}get 195(){return this.item(195)||void 0}get 196(){return this.item(196)||void 0}get 197(){return this.item(197)||void 0}get 198(){return this.item(198)||void 0}get 199(){return this.item(199)||void 0}get 200(){return this.item(200)||void 0}get 201(){return this.item(201)||void 0}get 202(){return this.item(202)||void 0}get 203(){return this.item(203)||void 0}get 204(){return this.item(204)||void 0}get 205(){return this.item(205)||void 0}get 206(){return this.item(206)||void 0}get 207(){return this.item(207)||void 0}get 208(){return this.item(208)||void 0}get 209(){return this.item(209)||void 0}get 210(){return this.item(210)||void 0}get 211(){return this.item(211)||void 0}get 212(){return this.item(212)||void 0}get 213(){return this.item(213)||void 0}get 214(){return this.item(214)||void 0}get 215(){return this.item(215)||void 0}get 216(){return this.item(216)||void 0}get 217(){return this.item(217)||void 0}get 218(){return this.item(218)||void 0}get 219(){return this.item(219)||void 0}get 220(){return this.item(220)||void 0}get 221(){return this.item(221)||void 0}get 222(){return this.item(222)||void 0}get 223(){return this.item(223)||void 0}get 224(){return this.item(224)||void 0}get 225(){return this.item(225)||void 0}get 226(){return this.item(226)||void 0}get 227(){return this.item(227)||void 0}get 228(){return this.item(228)||void 0}get 229(){return this.item(229)||void 0}get 230(){return this.item(230)||void 0}get 231(){return this.item(231)||void 0}get 232(){return this.item(232)||void 0}get 233(){return this.item(233)||void 0}get 234(){return this.item(234)||void 0}get 235(){return this.item(235)||void 0}get 236(){return this.item(236)||void 0}get 237(){return this.item(237)||void 0}get 238(){return this.item(238)||void 0}get 239(){return this.item(239)||void 0}get 240(){return this.item(240)||void 0}get 241(){return this.item(241)||void 0}get 242(){return this.item(242)||void 0}get 243(){return this.item(243)||void 0}get 244(){return this.item(244)||void 0}get 245(){return this.item(245)||void 0}get 246(){return this.item(246)||void 0}get 247(){return this.item(247)||void 0}get 248(){return this.item(248)||void 0}get 249(){return this.item(249)||void 0}get 250(){return this.item(250)||void 0}get 251(){return this.item(251)||void 0}get 252(){return this.item(252)||void 0}get 253(){return this.item(253)||void 0}get 254(){return this.item(254)||void 0}get 255(){return this.item(255)||void 0}get 256(){return this.item(256)||void 0}get 257(){return this.item(257)||void 0}get 258(){return this.item(258)||void 0}get 259(){return this.item(259)||void 0}get 260(){return this.item(260)||void 0}get 261(){return this.item(261)||void 0}get 262(){return this.item(262)||void 0}get 263(){return this.item(263)||void 0}get 264(){return this.item(264)||void 0}get 265(){return this.item(265)||void 0}get 266(){return this.item(266)||void 0}get 267(){return this.item(267)||void 0}get 268(){return this.item(268)||void 0}get 269(){return this.item(269)||void 0}get 270(){return this.item(270)||void 0}get 271(){return this.item(271)||void 0}get 272(){return this.item(272)||void 0}get 273(){return this.item(273)||void 0}get 274(){return this.item(274)||void 0}get 275(){return this.item(275)||void 0}get 276(){return this.item(276)||void 0}get 277(){return this.item(277)||void 0}get 278(){return this.item(278)||void 0}get 279(){return this.item(279)||void 0}get 280(){return this.item(280)||void 0}get 281(){return this.item(281)||void 0}get 282(){return this.item(282)||void 0}get 283(){return this.item(283)||void 0}get 284(){return this.item(284)||void 0}get 285(){return this.item(285)||void 0}get 286(){return this.item(286)||void 0}get 287(){return this.item(287)||void 0}get 288(){return this.item(288)||void 0}get 289(){return this.item(289)||void 0}get 290(){return this.item(290)||void 0}get 291(){return this.item(291)||void 0}get 292(){return this.item(292)||void 0}get 293(){return this.item(293)||void 0}get 294(){return this.item(294)||void 0}get 295(){return this.item(295)||void 0}get 296(){return this.item(296)||void 0}get 297(){return this.item(297)||void 0}get 298(){return this.item(298)||void 0}get 299(){return this.item(299)||void 0}get 300(){return this.item(300)||void 0}get 301(){return this.item(301)||void 0}get 302(){return this.item(302)||void 0}get 303(){return this.item(303)||void 0}get 304(){return this.item(304)||void 0}get 305(){return this.item(305)||void 0}get 306(){return this.item(306)||void 0}get 307(){return this.item(307)||void 0}get 308(){return this.item(308)||void 0}get 309(){return this.item(309)||void 0}get 310(){return this.item(310)||void 0}get 311(){return this.item(311)||void 0}get 312(){return this.item(312)||void 0}get 313(){return this.item(313)||void 0}get 314(){return this.item(314)||void 0}get 315(){return this.item(315)||void 0}get 316(){return this.item(316)||void 0}get 317(){return this.item(317)||void 0}get 318(){return this.item(318)||void 0}get 319(){return this.item(319)||void 0}get 320(){return this.item(320)||void 0}get 321(){return this.item(321)||void 0}get 322(){return this.item(322)||void 0}get 323(){return this.item(323)||void 0}get 324(){return this.item(324)||void 0}get 325(){return this.item(325)||void 0}get 326(){return this.item(326)||void 0}get 327(){return this.item(327)||void 0}get 328(){return this.item(328)||void 0}get 329(){return this.item(329)||void 0}get 330(){return this.item(330)||void 0}get 331(){return this.item(331)||void 0}get 332(){return this.item(332)||void 0}get 333(){return this.item(333)||void 0}get 334(){return this.item(334)||void 0}get 335(){return this.item(335)||void 0}get 336(){return this.item(336)||void 0}get 337(){return this.item(337)||void 0}get 338(){return this.item(338)||void 0}get 339(){return this.item(339)||void 0}get 340(){return this.item(340)||void 0}get 341(){return this.item(341)||void 0}get 342(){return this.item(342)||void 0}get 343(){return this.item(343)||void 0}get 344(){return this.item(344)||void 0}get 345(){return this.item(345)||void 0}get 346(){return this.item(346)||void 0}get 347(){return this.item(347)||void 0}get 348(){return this.item(348)||void 0}get 349(){return this.item(349)||void 0}get 350(){return this.item(350)||void 0}get 351(){return this.item(351)||void 0}get 352(){return this.item(352)||void 0}get 353(){return this.item(353)||void 0}get 354(){return this.item(354)||void 0}get 355(){return this.item(355)||void 0}get 356(){return this.item(356)||void 0}get 357(){return this.item(357)||void 0}get 358(){return this.item(358)||void 0}get 359(){return this.item(359)||void 0}get 360(){return this.item(360)||void 0}get 361(){return this.item(361)||void 0}get 362(){return this.item(362)||void 0}get 363(){return this.item(363)||void 0}get 364(){return this.item(364)||void 0}get 365(){return this.item(365)||void 0}get 366(){return this.item(366)||void 0}get 367(){return this.item(367)||void 0}get 368(){return this.item(368)||void 0}get 369(){return this.item(369)||void 0}get 370(){return this.item(370)||void 0}get 371(){return this.item(371)||void 0}get 372(){return this.item(372)||void 0}get 373(){return this.item(373)||void 0}get 374(){return this.item(374)||void 0}get 375(){return this.item(375)||void 0}get 376(){return this.item(376)||void 0}get 377(){return this.item(377)||void 0}get 378(){return this.item(378)||void 0}get 379(){return this.item(379)||void 0}get 380(){return this.item(380)||void 0}get 381(){return this.item(381)||void 0}get 382(){return this.item(382)||void 0}get 383(){return this.item(383)||void 0}get 384(){return this.item(384)||void 0}get 385(){return this.item(385)||void 0}get 386(){return this.item(386)||void 0}get 387(){return this.item(387)||void 0}get 388(){return this.item(388)||void 0}get 389(){return this.item(389)||void 0}get 390(){return this.item(390)||void 0}get 391(){return this.item(391)||void 0}get 392(){return this.item(392)||void 0}get 393(){return this.item(393)||void 0}get accentColor(){return this.getPropertyValue("accent-color")}set accentColor(t){this.setProperty("accent-color",t);}get appRegion(){return this.getPropertyValue("app-region")}set appRegion(t){this.setProperty("app-region",t);}get alignContent(){return this.getPropertyValue("align-content")}set alignContent(t){this.setProperty("align-content",t);}get alignItems(){return this.getPropertyValue("align-items")}set alignItems(t){this.setProperty("align-items",t);}get alignSelf(){return this.getPropertyValue("align-self")}set alignSelf(t){this.setProperty("align-self",t);}get alignmentBaseline(){return this.getPropertyValue("alignment-baseline")}set alignmentBaseline(t){this.setProperty("alignment-baseline",t);}get all(){return this.getPropertyValue("all")}set all(t){this.setProperty("all",t);}get animation(){return this.getPropertyValue("animation")}set animation(t){this.setProperty("animation",t);}get animationDelay(){return this.getPropertyValue("animation-delay")}set animationDelay(t){this.setProperty("animation-delay",t);}get animationDirection(){return this.getPropertyValue("animation-direction")}set animationDirection(t){this.setProperty("animation-direction",t);}get animationDuration(){return this.getPropertyValue("animation-duration")}set animationDuration(t){this.setProperty("animation-duration",t);}get animationFillMode(){return this.getPropertyValue("animation-fill-mode")}set animationFillMode(t){this.setProperty("animation-fill-mode",t);}get animationIterationCount(){return this.getPropertyValue("animation-iteration-count")}set animationIterationCount(t){this.setProperty("animation-iteration-count",t);}get animationName(){return this.getPropertyValue("animation-name")}set animationName(t){this.setProperty("animation-name",t);}get animationPlayState(){return this.getPropertyValue("animation-play-state")}set animationPlayState(t){this.setProperty("animation-play-state",t);}get animationTimingFunction(){return this.getPropertyValue("animation-timing-function")}set animationTimingFunction(t){this.setProperty("animation-timing-function",t);}get appearance(){return this.getPropertyValue("appearance")}set appearance(t){this.setProperty("appearance",t);}get backdropFilter(){return this.getPropertyValue("backdrop-filter")}set backdropFilter(t){this.setProperty("backdrop-filter",t);}get backfaceVisibility(){return this.getPropertyValue("backface-visibility")}set backfaceVisibility(t){this.setProperty("backface-visibility",t);}get background(){return this.getPropertyValue("background")}set background(t){this.setProperty("background",t);}get backgroundAttachment(){return this.getPropertyValue("background-attachment")}set backgroundAttachment(t){this.setProperty("background-attachment",t);}get backgroundBlendMode(){return this.getPropertyValue("background-blend-mode")}set backgroundBlendMode(t){this.setProperty("background-blend-mode",t);}get backgroundClip(){return this.getPropertyValue("background-clip")}set backgroundClip(t){this.setProperty("background-clip",t);}get backgroundColor(){return this.getPropertyValue("background-color")}set backgroundColor(t){this.setProperty("background-color",t);}get backgroundImage(){return this.getPropertyValue("background-image")}set backgroundImage(t){this.setProperty("background-image",t);}get backgroundOrigin(){return this.getPropertyValue("background-origin")}set backgroundOrigin(t){this.setProperty("background-origin",t);}get backgroundPosition(){return this.getPropertyValue("background-position")}set backgroundPosition(t){this.setProperty("background-position",t);}get backgroundPositionX(){return this.getPropertyValue("background-position-x")}set backgroundPositionX(t){this.setProperty("background-position-x",t);}get backgroundPositionY(){return this.getPropertyValue("background-position-y")}set backgroundPositionY(t){this.setProperty("background-position-y",t);}get backgroundRepeat(){return this.getPropertyValue("background-repeat")}set backgroundRepeat(t){this.setProperty("background-repeat",t);}get backgroundRepeatX(){return this.getPropertyValue("background-repeat-x")}set backgroundRepeatX(t){this.setProperty("background-repeat-x",t);}get backgroundRepeatY(){return this.getPropertyValue("background-repeat-y")}set backgroundRepeatY(t){this.setProperty("background-repeat-y",t);}get backgroundSize(){return this.getPropertyValue("background-size")}set backgroundSize(t){this.setProperty("background-size",t);}get baselineShift(){return this.getPropertyValue("baseline-shift")}set baselineShift(t){this.setProperty("baseline-shift",t);}get blockSize(){return this.getPropertyValue("block-size")}set blockSize(t){this.setProperty("block-size",t);}get border(){return this.getPropertyValue("border")}set border(t){this.setProperty("border",t);}get borderBlockEnd(){return this.getPropertyValue("border-block-end")}set borderBlockEnd(t){this.setProperty("border-block-end",t);}get borderBlockEndColor(){return this.getPropertyValue("border-block-end-color")}set borderBlockEndColor(t){this.setProperty("border-block-end-color",t);}get borderBlockEndStyle(){return this.getPropertyValue("border-block-end-style")}set borderBlockEndStyle(t){this.setProperty("border-block-end-style",t);}get borderBlockEndWidth(){return this.getPropertyValue("border-block-end-width")}set borderBlockEndWidth(t){this.setProperty("border-block-end-width",t);}get borderBlockStart(){return this.getPropertyValue("border-block-start")}set borderBlockStart(t){this.setProperty("border-block-start",t);}get borderBlockStartColor(){return this.getPropertyValue("border-block-start-color")}set borderBlockStartColor(t){this.setProperty("border-block-start-color",t);}get borderBlockStartStyle(){return this.getPropertyValue("border-block-start-style")}set borderBlockStartStyle(t){this.setProperty("border-block-start-style",t);}get borderBlockStartWidth(){return this.getPropertyValue("border-block-start-width")}set borderBlockStartWidth(t){this.setProperty("border-block-start-width",t);}get borderBottom(){return this.getPropertyValue("border-bottom")}set borderBottom(t){this.setProperty("border-bottom",t);}get borderBottomColor(){return this.getPropertyValue("border-bottom-color")}set borderBottomColor(t){this.setProperty("border-bottom-color",t);}get borderBottomLeftRadius(){return this.getPropertyValue("border-bottom-left-radius")}set borderBottomLeftRadius(t){this.setProperty("border-bottom-left-radius",t);}get borderBottomRightRadius(){return this.getPropertyValue("border-bottom-right-radius")}set borderBottomRightRadius(t){this.setProperty("border-bottom-right-radius",t);}get borderBottomStyle(){return this.getPropertyValue("border-bottom-style")}set borderBottomStyle(t){this.setProperty("border-bottom-style",t);}get borderBottomWidth(){return this.getPropertyValue("border-bottom-width")}set borderBottomWidth(t){this.setProperty("border-bottom-width",t);}get borderCollapse(){return this.getPropertyValue("border-collapse")}set borderCollapse(t){this.setProperty("border-collapse",t);}get borderColor(){return this.getPropertyValue("border-color")}set borderColor(t){this.setProperty("border-color",t);}get borderImage(){return this.getPropertyValue("border-image")}set borderImage(t){this.setProperty("border-image",t);}get borderImageOutset(){return this.getPropertyValue("border-image-outset")}set borderImageOutset(t){this.setProperty("border-image-outset",t);}get borderImageRepeat(){return this.getPropertyValue("border-image-repeat")}set borderImageRepeat(t){this.setProperty("border-image-repeat",t);}get borderImageSlice(){return this.getPropertyValue("border-image-slice")}set borderImageSlice(t){this.setProperty("border-image-slice",t);}get borderImageSource(){return this.getPropertyValue("border-image-source")}set borderImageSource(t){this.setProperty("border-image-source",t);}get borderImageWidth(){return this.getPropertyValue("border-image-width")}set borderImageWidth(t){this.setProperty("border-image-width",t);}get borderInlineEnd(){return this.getPropertyValue("border-inline-end")}set borderInlineEnd(t){this.setProperty("border-inline-end",t);}get borderInlineEndColor(){return this.getPropertyValue("border-inline-end-color")}set borderInlineEndColor(t){this.setProperty("border-inline-end-color",t);}get borderInlineEndStyle(){return this.getPropertyValue("border-inline-end-style")}set borderInlineEndStyle(t){this.setProperty("border-inline-end-style",t);}get borderInlineEndWidth(){return this.getPropertyValue("border-inline-end-width")}set borderInlineEndWidth(t){this.setProperty("border-inline-end-width",t);}get borderInlineStart(){return this.getPropertyValue("border-inline-start")}set borderInlineStart(t){this.setProperty("border-inline-start",t);}get borderInlineStartColor(){return this.getPropertyValue("border-inline-start-color")}set borderInlineStartColor(t){this.setProperty("border-inline-start-color",t);}get borderInlineStartStyle(){return this.getPropertyValue("border-inline-start-style")}set borderInlineStartStyle(t){this.setProperty("border-inline-start-style",t);}get borderInlineStartWidth(){return this.getPropertyValue("border-inline-start-width")}set borderInlineStartWidth(t){this.setProperty("border-inline-start-width",t);}get borderLeft(){return this.getPropertyValue("border-left")}set borderLeft(t){this.setProperty("border-left",t);}get borderLeftColor(){return this.getPropertyValue("border-left-color")}set borderLeftColor(t){this.setProperty("border-left-color",t);}get borderLeftStyle(){return this.getPropertyValue("border-left-style")}set borderLeftStyle(t){this.setProperty("border-left-style",t);}get borderLeftWidth(){return this.getPropertyValue("border-left-width")}set borderLeftWidth(t){this.setProperty("border-left-width",t);}get borderRadius(){return this.getPropertyValue("border-radius")}set borderRadius(t){this.setProperty("border-radius",t);}get borderRight(){return this.getPropertyValue("border-right")}set borderRight(t){this.setProperty("border-right",t);}get borderRightColor(){return this.getPropertyValue("border-right-color")}set borderRightColor(t){this.setProperty("border-right-color",t);}get borderRightStyle(){return this.getPropertyValue("border-right-style")}set borderRightStyle(t){this.setProperty("border-right-style",t);}get borderRightWidth(){return this.getPropertyValue("border-right-width")}set borderRightWidth(t){this.setProperty("border-right-width",t);}get borderSpacing(){return this.getPropertyValue("border-spacing")}set borderSpacing(t){this.setProperty("border-spacing",t);}get borderStyle(){return this.getPropertyValue("border-style")}set borderStyle(t){this.setProperty("border-style",t);}get borderTop(){return this.getPropertyValue("border-top")}set borderTop(t){this.setProperty("border-top",t);}get borderTopColor(){return this.getPropertyValue("border-top-color")}set borderTopColor(t){this.setProperty("border-top-color",t);}get borderTopLeftRadius(){return this.getPropertyValue("border-top-left-radius")}set borderTopLeftRadius(t){this.setProperty("border-top-left-radius",t);}get borderTopRightRadius(){return this.getPropertyValue("border-top-right-radius")}set borderTopRightRadius(t){this.setProperty("border-top-right-radius",t);}get borderTopStyle(){return this.getPropertyValue("border-top-style")}set borderTopStyle(t){this.setProperty("border-top-style",t);}get borderTopWidth(){return this.getPropertyValue("border-top-width")}set borderTopWidth(t){this.setProperty("border-top-width",t);}get borderWidth(){return this.getPropertyValue("border-width")}set borderWidth(t){this.setProperty("border-width",t);}get borderEndEndRadius(){return this.getPropertyValue("border-end-end-radius")}set borderEndEndRadius(t){this.setProperty("border-end-end-radius",t);}get borderEndStartRadius(){return this.getPropertyValue("border-end-start-radius")}set borderEndStartRadius(t){this.setProperty("border-end-start-radius",t);}get borderStartEndRadius(){return this.getPropertyValue("border-start-end-radius")}set borderStartEndRadius(t){this.setProperty("border-start-end-radius",t);}get borderStartStartRadius(){return this.getPropertyValue("border-start-start-radius")}set borderStartStartRadius(t){this.setProperty("border-start-start-radius",t);}get bottom(){return this.getPropertyValue("bottom")}set bottom(t){this.setProperty("bottom",t);}get boxShadow(){return this.getPropertyValue("box-shadow")}set boxShadow(t){this.setProperty("box-shadow",t);}get boxSizing(){return this.getPropertyValue("box-sizing")}set boxSizing(t){this.setProperty("box-sizing",t);}get breakAfter(){return this.getPropertyValue("break-after")}set breakAfter(t){this.setProperty("break-after",t);}get breakBefore(){return this.getPropertyValue("break-before")}set breakBefore(t){this.setProperty("break-before",t);}get breakInside(){return this.getPropertyValue("break-inside")}set breakInside(t){this.setProperty("break-inside",t);}get bufferedRendering(){return this.getPropertyValue("buffered-rendering")}set bufferedRendering(t){this.setProperty("buffered-rendering",t);}get captionSide(){return this.getPropertyValue("caption-side")}set captionSide(t){this.setProperty("caption-side",t);}get caretColor(){return this.getPropertyValue("caret-color")}set caretColor(t){this.setProperty("caret-color",t);}get clear(){return this.getPropertyValue("clear")}set clear(t){this.setProperty("clear",t);}get clip(){return this.getPropertyValue("clip")}set clip(t){this.setProperty("clip",t);}get clipPath(){return this.getPropertyValue("clip-path")}set clipPath(t){this.setProperty("clip-path",t);}get clipRule(){return this.getPropertyValue("clip-rule")}set clipRule(t){this.setProperty("clip-rule",t);}get color(){return this.getPropertyValue("color")}set color(t){this.setProperty("color",t);}get colorInterpolation(){return this.getPropertyValue("color-interpolation")}set colorInterpolation(t){this.setProperty("color-interpolation",t);}get colorInterpolationFilters(){return this.getPropertyValue("color-interpolation-filters")}set colorInterpolationFilters(t){this.setProperty("color-interpolation-filters",t);}get colorRendering(){return this.getPropertyValue("color-rendering")}set colorRendering(t){this.setProperty("color-rendering",t);}get colorScheme(){return this.getPropertyValue("color-scheme")}set colorScheme(t){this.setProperty("color-scheme",t);}get columnCount(){return this.getPropertyValue("column-count")}set columnCount(t){this.setProperty("column-count",t);}get columnFill(){return this.getPropertyValue("column-fill")}set columnFill(t){this.setProperty("column-fill",t);}get columnGap(){return this.getPropertyValue("column-gap")}set columnGap(t){this.setProperty("column-gap",t);}get columnRule(){return this.getPropertyValue("column-rule")}set columnRule(t){this.setProperty("column-rule",t);}get columnRuleColor(){return this.getPropertyValue("column-rule-color")}set columnRuleColor(t){this.setProperty("column-rule-color",t);}get columnRuleStyle(){return this.getPropertyValue("column-rule-style")}set columnRuleStyle(t){this.setProperty("column-rule-style",t);}get columnRuleWidth(){return this.getPropertyValue("column-rule-width")}set columnRuleWidth(t){this.setProperty("column-rule-width",t);}get columnSpan(){return this.getPropertyValue("column-span")}set columnSpan(t){this.setProperty("column-span",t);}get columnWidth(){return this.getPropertyValue("column-width")}set columnWidth(t){this.setProperty("column-width",t);}get columns(){return this.getPropertyValue("columns")}set columns(t){this.setProperty("columns",t);}get contain(){return this.getPropertyValue("contain")}set contain(t){this.setProperty("contain",t);}get containIntrinsicSize(){return this.getPropertyValue("contain-intrinsic-size")}set containIntrinsicSize(t){this.setProperty("contain-intrinsic-size",t);}get content(){return this.getPropertyValue("content")}set content(t){this.setProperty("content",t);}get contentVisibility(){return this.getPropertyValue("content-visibility")}set contentVisibility(t){this.setProperty("content-visibility",t);}get counterIncrement(){return this.getPropertyValue("counter-increment")}set counterIncrement(t){this.setProperty("counter-increment",t);}get counterReset(){return this.getPropertyValue("counter-reset")}set counterReset(t){this.setProperty("counter-reset",t);}get counterSet(){return this.getPropertyValue("counter-set")}set counterSet(t){this.setProperty("counter-set",t);}get containIntrinsicBlockSize(){return this.getPropertyValue("contain-intrinsic-block-size")}set containIntrinsicBlockSize(t){this.setProperty("contain-intrinsic-block-size",t);}get containIntrinsicHeight(){return this.getPropertyValue("contain-intrinsic-height")}set containIntrinsicHeight(t){this.setProperty("contain-intrinsic-height",t);}get containIntrinsicInlineSize(){return this.getPropertyValue("contain-intrinsic-inline-size")}set containIntrinsicInlineSize(t){this.setProperty("contain-intrinsic-inline-size",t);}get containIntrinsicWidth(){return this.getPropertyValue("contain-intrinsic-width")}set containIntrinsicWidth(t){this.setProperty("contain-intrinsic-width",t);}get cssFloat(){return this.getPropertyValue("css-float")}set cssFloat(t){this.setProperty("css-float",t);}get cursor(){return this.getPropertyValue("cursor")}set cursor(t){this.setProperty("cursor",t);}get cx(){return this.getPropertyValue("cx")}set cx(t){this.setProperty("cx",t);}get cy(){return this.getPropertyValue("cy")}set cy(t){this.setProperty("cy",t);}get d(){return this.getPropertyValue("d")}set d(t){this.setProperty("d",t);}get direction(){return this.getPropertyValue("direction")}set direction(t){this.setProperty("direction",t);}get display(){return this.getPropertyValue("display")}set display(t){this.setProperty("display",t);}get dominantBaseline(){return this.getPropertyValue("dominant-baseline")}set dominantBaseline(t){this.setProperty("dominant-baseline",t);}get emptyCells(){return this.getPropertyValue("empty-cells")}set emptyCells(t){this.setProperty("empty-cells",t);}get fill(){return this.getPropertyValue("fill")}set fill(t){this.setProperty("fill",t);}get fillOpacity(){return this.getPropertyValue("fill-opacity")}set fillOpacity(t){this.setProperty("fill-opacity",t);}get fillRule(){return this.getPropertyValue("fill-rule")}set fillRule(t){this.setProperty("fill-rule",t);}get filter(){return this.getPropertyValue("filter")}set filter(t){this.setProperty("filter",t);}get flex(){return this.getPropertyValue("flex")}set flex(t){this.setProperty("flex",t);}get flexBasis(){return this.getPropertyValue("flex-basis")}set flexBasis(t){this.setProperty("flex-basis",t);}get flexDirection(){return this.getPropertyValue("flex-direction")}set flexDirection(t){this.setProperty("flex-direction",t);}get flexFlow(){return this.getPropertyValue("flex-flow")}set flexFlow(t){this.setProperty("flex-flow",t);}get flexGrow(){return this.getPropertyValue("flex-grow")}set flexGrow(t){this.setProperty("flex-grow",t);}get flexShrink(){return this.getPropertyValue("flex-shrink")}set flexShrink(t){this.setProperty("flex-shrink",t);}get flexWrap(){return this.getPropertyValue("flex-wrap")}set flexWrap(t){this.setProperty("flex-wrap",t);}get float(){return this.getPropertyValue("float")}set float(t){this.setProperty("float",t);}get floodColor(){return this.getPropertyValue("flood-color")}set floodColor(t){this.setProperty("flood-color",t);}get floodOpacity(){return this.getPropertyValue("flood-opacity")}set floodOpacity(t){this.setProperty("flood-opacity",t);}get font(){return this.getPropertyValue("font")}set font(t){this.setProperty("font",t);}get fontDisplay(){return this.getPropertyValue("font-display")}set fontDisplay(t){this.setProperty("font-display",t);}get fontFamily(){return this.getPropertyValue("font-family")}set fontFamily(t){this.setProperty("font-family",t);}get fontFeatureSettings(){return this.getPropertyValue("font-feature-settings")}set fontFeatureSettings(t){this.setProperty("font-feature-settings",t);}get fontKerning(){return this.getPropertyValue("font-kerning")}set fontKerning(t){this.setProperty("font-kerning",t);}get fontOpticalSizing(){return this.getPropertyValue("font-optical-sizing")}set fontOpticalSizing(t){this.setProperty("font-optical-sizing",t);}get fontSize(){return this.getPropertyValue("font-size")}set fontSize(t){this.setProperty("font-size",t);}get fontStretch(){return this.getPropertyValue("font-stretch")}set fontStretch(t){this.setProperty("font-stretch",t);}get fontStyle(){return this.getPropertyValue("font-style")}set fontStyle(t){this.setProperty("font-style",t);}get fontVariant(){return this.getPropertyValue("font-variant")}set fontVariant(t){this.setProperty("font-variant",t);}get fontVariantCaps(){return this.getPropertyValue("font-variant-caps")}set fontVariantCaps(t){this.setProperty("font-variant-caps",t);}get fontVariantEastAsian(){return this.getPropertyValue("font-variant-east-asian")}set fontVariantEastAsian(t){this.setProperty("font-variant-east-asian",t);}get fontVariantLigatures(){return this.getPropertyValue("font-variant-ligatures")}set fontVariantLigatures(t){this.setProperty("font-variant-ligatures",t);}get fontVariantNumeric(){return this.getPropertyValue("font-variant-numeric")}set fontVariantNumeric(t){this.setProperty("font-variant-numeric",t);}get fontVariationSettings(){return this.getPropertyValue("font-variation-settings")}set fontVariationSettings(t){this.setProperty("font-variation-settings",t);}get fontPalette(){return this.getPropertyValue("font-palette")}set fontPalette(t){this.setProperty("font-palette",t);}get fontSynthesisSmallCaps(){return this.getPropertyValue("font-synthesis-small-caps")}set fontSynthesisSmallCaps(t){this.setProperty("font-synthesis-small-caps",t);}get fontSynthesisStyle(){return this.getPropertyValue("font-synthesis-style")}set fontSynthesisStyle(t){this.setProperty("font-synthesis-style",t);}get fontSynthesisWeight(){return this.getPropertyValue("font-synthesis-weight")}set fontSynthesisWeight(t){this.setProperty("font-synthesis-weight",t);}get fontWeight(){return this.getPropertyValue("font-weight")}set fontWeight(t){this.setProperty("font-weight",t);}get gap(){return this.getPropertyValue("gap")}set gap(t){this.setProperty("gap",t);}get grid(){return this.getPropertyValue("grid")}set grid(t){this.setProperty("grid",t);}get gridArea(){return this.getPropertyValue("grid-area")}set gridArea(t){this.setProperty("grid-area",t);}get gridAutoColumns(){return this.getPropertyValue("grid-auto-columns")}set gridAutoColumns(t){this.setProperty("grid-auto-columns",t);}get gridAutoFlow(){return this.getPropertyValue("grid-auto-flow")}set gridAutoFlow(t){this.setProperty("grid-auto-flow",t);}get gridAutoRows(){return this.getPropertyValue("grid-auto-rows")}set gridAutoRows(t){this.setProperty("grid-auto-rows",t);}get gridColumn(){return this.getPropertyValue("grid-column")}set gridColumn(t){this.setProperty("grid-column",t);}get gridColumnEnd(){return this.getPropertyValue("grid-column-end")}set gridColumnEnd(t){this.setProperty("grid-column-end",t);}get gridColumnGap(){return this.getPropertyValue("grid-column-gap")}set gridColumnGap(t){this.setProperty("grid-column-gap",t);}get gridColumnStart(){return this.getPropertyValue("grid-column-start")}set gridColumnStart(t){this.setProperty("grid-column-start",t);}get gridGap(){return this.getPropertyValue("grid-gap")}set gridGap(t){this.setProperty("grid-gap",t);}get gridRow(){return this.getPropertyValue("grid-row")}set gridRow(t){this.setProperty("grid-row",t);}get gridRowEnd(){return this.getPropertyValue("grid-row-end")}set gridRowEnd(t){this.setProperty("grid-row-end",t);}get gridRowGap(){return this.getPropertyValue("grid-row-gap")}set gridRowGap(t){this.setProperty("grid-row-gap",t);}get gridRowStart(){return this.getPropertyValue("grid-row-start")}set gridRowStart(t){this.setProperty("grid-row-start",t);}get gridTemplate(){return this.getPropertyValue("grid-template")}set gridTemplate(t){this.setProperty("grid-template",t);}get gridTemplateAreas(){return this.getPropertyValue("grid-template-areas")}set gridTemplateAreas(t){this.setProperty("grid-template-areas",t);}get gridTemplateColumns(){return this.getPropertyValue("grid-template-columns")}set gridTemplateColumns(t){this.setProperty("grid-template-columns",t);}get gridTemplateRows(){return this.getPropertyValue("grid-template-rows")}set gridTemplateRows(t){this.setProperty("grid-template-rows",t);}get height(){return this.getPropertyValue("height")}set height(t){this.setProperty("height",t);}get hyphens(){return this.getPropertyValue("hyphens")}set hyphens(t){this.setProperty("hyphens",t);}get imageOrientation(){return this.getPropertyValue("image-orientation")}set imageOrientation(t){this.setProperty("image-orientation",t);}get imageRendering(){return this.getPropertyValue("image-rendering")}set imageRendering(t){this.setProperty("image-rendering",t);}get inherits(){return this.getPropertyValue("inherits")}set inherits(t){this.setProperty("inherits",t);}get initialValue(){return this.getPropertyValue("initial-value")}set initialValue(t){this.setProperty("initial-value",t);}get inlineSize(){return this.getPropertyValue("inline-size")}set inlineSize(t){this.setProperty("inline-size",t);}get isolation(){return this.getPropertyValue("isolation")}set isolation(t){this.setProperty("isolation",t);}get insetBlockEnd(){return this.getPropertyValue("inset-block-end")}set insetBlockEnd(t){this.setProperty("inset-block-end",t);}get insetBlockStart(){return this.getPropertyValue("inset-block-start")}set insetBlockStart(t){this.setProperty("inset-block-start",t);}get insetInlineEnd(){return this.getPropertyValue("inset-inline-end")}set insetInlineEnd(t){this.setProperty("inset-inline-end",t);}get insetInlineStart(){return this.getPropertyValue("inset-inline-start")}set insetInlineStart(t){this.setProperty("inset-inline-start",t);}get justifyContent(){return this.getPropertyValue("justify-content")}set justifyContent(t){this.setProperty("justify-content",t);}get justifyItems(){return this.getPropertyValue("justify-items")}set justifyItems(t){this.setProperty("justify-items",t);}get justifySelf(){return this.getPropertyValue("justify-self")}set justifySelf(t){this.setProperty("justify-self",t);}get left(){return this.getPropertyValue("left")}set left(t){this.setProperty("left",t);}get letterSpacing(){return this.getPropertyValue("letter-spacing")}set letterSpacing(t){this.setProperty("letter-spacing",t);}get lightingColor(){return this.getPropertyValue("lighting-color")}set lightingColor(t){this.setProperty("lighting-color",t);}get lineBreak(){return this.getPropertyValue("line-break")}set lineBreak(t){this.setProperty("line-break",t);}get lineHeight(){return this.getPropertyValue("line-height")}set lineHeight(t){this.setProperty("line-height",t);}get listStyle(){return this.getPropertyValue("list-style")}set listStyle(t){this.setProperty("list-style",t);}get listStyleImage(){return this.getPropertyValue("list-style-image")}set listStyleImage(t){this.setProperty("list-style-image",t);}get listStylePosition(){return this.getPropertyValue("list-style-position")}set listStylePosition(t){this.setProperty("list-style-position",t);}get listStyleType(){return this.getPropertyValue("list-style-type")}set listStyleType(t){this.setProperty("list-style-type",t);}get margin(){return this.getPropertyValue("margin")}set margin(t){this.setProperty("margin",t);}get marginBlockEnd(){return this.getPropertyValue("margin-block-end")}set marginBlockEnd(t){this.setProperty("margin-block-end",t);}get marginBlockStart(){return this.getPropertyValue("margin-block-start")}set marginBlockStart(t){this.setProperty("margin-block-start",t);}get marginBottom(){return this.getPropertyValue("margin-bottom")}set marginBottom(t){this.setProperty("margin-bottom",t);}get marginInlineEnd(){return this.getPropertyValue("margin-inline-end")}set marginInlineEnd(t){this.setProperty("margin-inline-end",t);}get marginInlineStart(){return this.getPropertyValue("margin-inline-start")}set marginInlineStart(t){this.setProperty("margin-inline-start",t);}get marginLeft(){return this.getPropertyValue("margin-left")}set marginLeft(t){this.setProperty("margin-left",t);}get marginRight(){return this.getPropertyValue("margin-right")}set marginRight(t){this.setProperty("margin-right",t);}get marginTop(){return this.getPropertyValue("margin-top")}set marginTop(t){this.setProperty("margin-top",t);}get marker(){return this.getPropertyValue("marker")}set marker(t){this.setProperty("marker",t);}get markerEnd(){return this.getPropertyValue("marker-end")}set markerEnd(t){this.setProperty("marker-end",t);}get markerMid(){return this.getPropertyValue("marker-mid")}set markerMid(t){this.setProperty("marker-mid",t);}get markerStart(){return this.getPropertyValue("marker-start")}set markerStart(t){this.setProperty("marker-start",t);}get mask(){return this.getPropertyValue("mask")}set mask(t){this.setProperty("mask",t);}get maskType(){return this.getPropertyValue("mask-type")}set maskType(t){this.setProperty("mask-type",t);}get maxBlockSize(){return this.getPropertyValue("max-block-size")}set maxBlockSize(t){this.setProperty("max-block-size",t);}get maxHeight(){return this.getPropertyValue("max-height")}set maxHeight(t){this.setProperty("max-height",t);}get maxInlineSize(){return this.getPropertyValue("max-inline-size")}set maxInlineSize(t){this.setProperty("max-inline-size",t);}get maxWidth(){return this.getPropertyValue("max-width")}set maxWidth(t){this.setProperty("max-width",t);}get maxZoom(){return this.getPropertyValue("max-zoom")}set maxZoom(t){this.setProperty("max-zoom",t);}get minBlockSize(){return this.getPropertyValue("min-block-size")}set minBlockSize(t){this.setProperty("min-block-size",t);}get minHeight(){return this.getPropertyValue("min-height")}set minHeight(t){this.setProperty("min-height",t);}get minInlineSize(){return this.getPropertyValue("min-inline-size")}set minInlineSize(t){this.setProperty("min-inline-size",t);}get minWidth(){return this.getPropertyValue("min-width")}set minWidth(t){this.setProperty("min-width",t);}get minZoom(){return this.getPropertyValue("min-zoom")}set minZoom(t){this.setProperty("min-zoom",t);}get mixBlendMode(){return this.getPropertyValue("mix-blend-mode")}set mixBlendMode(t){this.setProperty("mix-blend-mode",t);}get objectFit(){return this.getPropertyValue("object-fit")}set objectFit(t){this.setProperty("object-fit",t);}get objectPosition(){return this.getPropertyValue("object-position")}set objectPosition(t){this.setProperty("object-position",t);}get offset(){return this.getPropertyValue("offset")}set offset(t){this.setProperty("offset",t);}get offsetDistance(){return this.getPropertyValue("offset-distance")}set offsetDistance(t){this.setProperty("offset-distance",t);}get offsetPath(){return this.getPropertyValue("offset-path")}set offsetPath(t){this.setProperty("offset-path",t);}get offsetRotate(){return this.getPropertyValue("offset-rotate")}set offsetRotate(t){this.setProperty("offset-rotate",t);}get opacity(){return this.getPropertyValue("opacity")}set opacity(t){this.setProperty("opacity",t);}get order(){return this.getPropertyValue("order")}set order(t){this.setProperty("order",t);}get orientation(){return this.getPropertyValue("orientation")}set orientation(t){this.setProperty("orientation",t);}get orphans(){return this.getPropertyValue("orphans")}set orphans(t){this.setProperty("orphans",t);}get outline(){return this.getPropertyValue("outline")}set outline(t){this.setProperty("outline",t);}get outlineColor(){return this.getPropertyValue("outline-color")}set outlineColor(t){this.setProperty("outline-color",t);}get outlineOffset(){return this.getPropertyValue("outline-offset")}set outlineOffset(t){this.setProperty("outline-offset",t);}get outlineStyle(){return this.getPropertyValue("outline-style")}set outlineStyle(t){this.setProperty("outline-style",t);}get outlineWidth(){return this.getPropertyValue("outline-width")}set outlineWidth(t){this.setProperty("outline-width",t);}get overflow(){return this.getPropertyValue("overflow")}set overflow(t){this.setProperty("overflow",t);}get overflowAnchor(){return this.getPropertyValue("overflow-anchor")}set overflowAnchor(t){this.setProperty("overflow-anchor",t);}get overflowWrap(){return this.getPropertyValue("overflow-wrap")}set overflowWrap(t){this.setProperty("overflow-wrap",t);}get overflowX(){return this.getPropertyValue("overflow-x")}set overflowX(t){this.setProperty("overflow-x",t);}get overflowY(){return this.getPropertyValue("overflow-y")}set overflowY(t){this.setProperty("overflow-y",t);}get overscrollBehavior(){return this.getPropertyValue("overscroll-behavior")}set overscrollBehavior(t){this.setProperty("overscroll-behavior",t);}get overscrollBehaviorBlock(){return this.getPropertyValue("overscroll-behavior-block")}set overscrollBehaviorBlock(t){this.setProperty("overscroll-behavior-block",t);}get overscrollBehaviorInline(){return this.getPropertyValue("overscroll-behavior-inline")}set overscrollBehaviorInline(t){this.setProperty("overscroll-behavior-inline",t);}get overscrollBehaviorX(){return this.getPropertyValue("overscroll-behavior-x")}set overscrollBehaviorX(t){this.setProperty("overscroll-behavior-x",t);}get overscrollBehaviorY(){return this.getPropertyValue("overscroll-behavior-y")}set overscrollBehaviorY(t){this.setProperty("overscroll-behavior-y",t);}get overflowClipMargin(){return this.getPropertyValue("overflow-clip-margin")}set overflowClipMargin(t){this.setProperty("overflow-clip-margin",t);}get padding(){return this.getPropertyValue("padding")}set padding(t){this.setProperty("padding",t);}get paddingBlockEnd(){return this.getPropertyValue("padding-block-end")}set paddingBlockEnd(t){this.setProperty("padding-block-end",t);}get paddingBlockStart(){return this.getPropertyValue("padding-block-start")}set paddingBlockStart(t){this.setProperty("padding-block-start",t);}get paddingBottom(){return this.getPropertyValue("padding-bottom")}set paddingBottom(t){this.setProperty("padding-bottom",t);}get paddingInlineEnd(){return this.getPropertyValue("padding-inline-end")}set paddingInlineEnd(t){this.setProperty("padding-inline-end",t);}get paddingInlineStart(){return this.getPropertyValue("padding-inline-start")}set paddingInlineStart(t){this.setProperty("padding-inline-start",t);}get paddingLeft(){return this.getPropertyValue("padding-left")}set paddingLeft(t){this.setProperty("padding-left",t);}get paddingRight(){return this.getPropertyValue("padding-right")}set paddingRight(t){this.setProperty("padding-right",t);}get paddingTop(){return this.getPropertyValue("padding-top")}set paddingTop(t){this.setProperty("padding-top",t);}get page(){return this.getPropertyValue("page")}set page(t){this.setProperty("page",t);}get pageBreakAfter(){return this.getPropertyValue("page-break-after")}set pageBreakAfter(t){this.setProperty("page-break-after",t);}get pageBreakBefore(){return this.getPropertyValue("page-break-before")}set pageBreakBefore(t){this.setProperty("page-break-before",t);}get pageBreakInside(){return this.getPropertyValue("page-break-inside")}set pageBreakInside(t){this.setProperty("page-break-inside",t);}get pageOrientation(){return this.getPropertyValue("page-orientation")}set pageOrientation(t){this.setProperty("page-orientation",t);}get paintOrder(){return this.getPropertyValue("paint-order")}set paintOrder(t){this.setProperty("paint-order",t);}get perspective(){return this.getPropertyValue("perspective")}set perspective(t){this.setProperty("perspective",t);}get perspectiveOrigin(){return this.getPropertyValue("perspective-origin")}set perspectiveOrigin(t){this.setProperty("perspective-origin",t);}get placeContent(){return this.getPropertyValue("place-content")}set placeContent(t){this.setProperty("place-content",t);}get placeItems(){return this.getPropertyValue("place-items")}set placeItems(t){this.setProperty("place-items",t);}get placeSelf(){return this.getPropertyValue("place-self")}set placeSelf(t){this.setProperty("place-self",t);}get pointerEvents(){return this.getPropertyValue("pointer-events")}set pointerEvents(t){this.setProperty("pointer-events",t);}get position(){return this.getPropertyValue("position")}set position(t){this.setProperty("position",t);}get quotes(){return this.getPropertyValue("quotes")}set quotes(t){this.setProperty("quotes",t);}get r(){return this.getPropertyValue("r")}set r(t){this.setProperty("r",t);}get resize(){return this.getPropertyValue("resize")}set resize(t){this.setProperty("resize",t);}get right(){return this.getPropertyValue("right")}set right(t){this.setProperty("right",t);}get rowGap(){return this.getPropertyValue("row-gap")}set rowGap(t){this.setProperty("row-gap",t);}get rubyPosition(){return this.getPropertyValue("ruby-position")}set rubyPosition(t){this.setProperty("ruby-position",t);}get rx(){return this.getPropertyValue("rx")}set rx(t){this.setProperty("rx",t);}get ry(){return this.getPropertyValue("ry")}set ry(t){this.setProperty("ry",t);}get scrollBehavior(){return this.getPropertyValue("scroll-behavior")}set scrollBehavior(t){this.setProperty("scroll-behavior",t);}get scrollMargin(){return this.getPropertyValue("scroll-margin")}set scrollMargin(t){this.setProperty("scroll-margin",t);}get scrollMarginBlock(){return this.getPropertyValue("scroll-margin-block")}set scrollMarginBlock(t){this.setProperty("scroll-margin-block",t);}get scrollMarginBlockEnd(){return this.getPropertyValue("scroll-margin-block-end")}set scrollMarginBlockEnd(t){this.setProperty("scroll-margin-block-end",t);}get scrollMarginBlockStart(){return this.getPropertyValue("scroll-margin-block-start")}set scrollMarginBlockStart(t){this.setProperty("scroll-margin-block-start",t);}get scrollMarginBottom(){return this.getPropertyValue("scroll-margin-bottom")}set scrollMarginBottom(t){this.setProperty("scroll-margin-bottom",t);}get scrollMarginInline(){return this.getPropertyValue("scroll-margin-inline")}set scrollMarginInline(t){this.setProperty("scroll-margin-inline",t);}get scrollMarginInlineEnd(){return this.getPropertyValue("scroll-margin-inline-end")}set scrollMarginInlineEnd(t){this.setProperty("scroll-margin-inline-end",t);}get scrollMarginInlineStart(){return this.getPropertyValue("scroll-margin-inline-start")}set scrollMarginInlineStart(t){this.setProperty("scroll-margin-inline-start",t);}get scrollMarginLeft(){return this.getPropertyValue("scroll-margin-left")}set scrollMarginLeft(t){this.setProperty("scroll-margin-left",t);}get scrollMarginRight(){return this.getPropertyValue("scroll-margin-right")}set scrollMarginRight(t){this.setProperty("scroll-margin-right",t);}get scrollMarginTop(){return this.getPropertyValue("scroll-margin-top")}set scrollMarginTop(t){this.setProperty("scroll-margin-top",t);}get scrollPadding(){return this.getPropertyValue("scroll-padding")}set scrollPadding(t){this.setProperty("scroll-padding",t);}get scrollPaddingBlock(){return this.getPropertyValue("scroll-padding-block")}set scrollPaddingBlock(t){this.setProperty("scroll-padding-block",t);}get scrollPaddingBlockEnd(){return this.getPropertyValue("scroll-padding-block-end")}set scrollPaddingBlockEnd(t){this.setProperty("scroll-padding-block-end",t);}get scrollPaddingBlockStart(){return this.getPropertyValue("scroll-padding-block-start")}set scrollPaddingBlockStart(t){this.setProperty("scroll-padding-block-start",t);}get scrollPaddingBottom(){return this.getPropertyValue("scroll-padding-bottom")}set scrollPaddingBottom(t){this.setProperty("scroll-padding-bottom",t);}get scrollPaddingInline(){return this.getPropertyValue("scroll-padding-inline")}set scrollPaddingInline(t){this.setProperty("scroll-padding-inline",t);}get scrollPaddingInlineEnd(){return this.getPropertyValue("scroll-padding-inline-end")}set scrollPaddingInlineEnd(t){this.setProperty("scroll-padding-inline-end",t);}get scrollPaddingInlineStart(){return this.getPropertyValue("scroll-padding-inline-start")}set scrollPaddingInlineStart(t){this.setProperty("scroll-padding-inline-start",t);}get scrollPaddingLeft(){return this.getPropertyValue("scroll-padding-left")}set scrollPaddingLeft(t){this.setProperty("scroll-padding-left",t);}get scrollPaddingRight(){return this.getPropertyValue("scroll-padding-right")}set scrollPaddingRight(t){this.setProperty("scroll-padding-right",t);}get scrollPaddingTop(){return this.getPropertyValue("scroll-padding-top")}set scrollPaddingTop(t){this.setProperty("scroll-padding-top",t);}get scrollSnapAlign(){return this.getPropertyValue("scroll-snap-align")}set scrollSnapAlign(t){this.setProperty("scroll-snap-align",t);}get scrollSnapStop(){return this.getPropertyValue("scroll-snap-stop")}set scrollSnapStop(t){this.setProperty("scroll-snap-stop",t);}get scrollSnapType(){return this.getPropertyValue("scroll-snap-type")}set scrollSnapType(t){this.setProperty("scroll-snap-type",t);}get shapeImageThreshold(){return this.getPropertyValue("shape-image-threshold")}set shapeImageThreshold(t){this.setProperty("shape-image-threshold",t);}get shapeMargin(){return this.getPropertyValue("shape-margin")}set shapeMargin(t){this.setProperty("shape-margin",t);}get shapeOutside(){return this.getPropertyValue("shape-outside")}set shapeOutside(t){this.setProperty("shape-outside",t);}get shapeRendering(){return this.getPropertyValue("shape-rendering")}set shapeRendering(t){this.setProperty("shape-rendering",t);}get size(){return this.getPropertyValue("size")}set size(t){this.setProperty("size",t);}get speak(){return this.getPropertyValue("speak")}set speak(t){this.setProperty("speak",t);}get src(){return this.getPropertyValue("src")}set src(t){this.setProperty("src",t);}get stopColor(){return this.getPropertyValue("stop-color")}set stopColor(t){this.setProperty("stop-color",t);}get stopOpacity(){return this.getPropertyValue("stop-opacity")}set stopOpacity(t){this.setProperty("stop-opacity",t);}get stroke(){return this.getPropertyValue("stroke")}set stroke(t){this.setProperty("stroke",t);}get strokeDasharray(){return this.getPropertyValue("stroke-dasharray")}set strokeDasharray(t){this.setProperty("stroke-dasharray",t);}get strokeDashoffset(){return this.getPropertyValue("stroke-dashoffset")}set strokeDashoffset(t){this.setProperty("stroke-dashoffset",t);}get strokeLinecap(){return this.getPropertyValue("stroke-linecap")}set strokeLinecap(t){this.setProperty("stroke-linecap",t);}get strokeLinejoin(){return this.getPropertyValue("stroke-linejoin")}set strokeLinejoin(t){this.setProperty("stroke-linejoin",t);}get strokeMiterlimit(){return this.getPropertyValue("stroke-miterlimit")}set strokeMiterlimit(t){this.setProperty("stroke-miterlimit",t);}get strokeOpacity(){return this.getPropertyValue("stroke-opacity")}set strokeOpacity(t){this.setProperty("stroke-opacity",t);}get strokeWidth(){return this.getPropertyValue("stroke-width")}set strokeWidth(t){this.setProperty("stroke-width",t);}get syntax(){return this.getPropertyValue("syntax")}set syntax(t){this.setProperty("syntax",t);}get scrollbarGutter(){return this.getPropertyValue("scrollbar-gutter")}set scrollbarGutter(t){this.setProperty("scrollbar-gutter",t);}get tabSize(){return this.getPropertyValue("tab-size")}set tabSize(t){this.setProperty("tab-size",t);}get tableLayout(){return this.getPropertyValue("table-layout")}set tableLayout(t){this.setProperty("table-layout",t);}get textAlign(){return this.getPropertyValue("text-align")}set textAlign(t){this.setProperty("text-align",t);}get textAlignLast(){return this.getPropertyValue("text-align-last")}set textAlignLast(t){this.setProperty("text-align-last",t);}get textAnchor(){return this.getPropertyValue("text-anchor")}set textAnchor(t){this.setProperty("text-anchor",t);}get textCombineUpright(){return this.getPropertyValue("text-combine-upright")}set textCombineUpright(t){this.setProperty("text-combine-upright",t);}get textDecoration(){return this.getPropertyValue("text-decoration")}set textDecoration(t){this.setProperty("text-decoration",t);}get textDecorationColor(){return this.getPropertyValue("text-decoration-color")}set textDecorationColor(t){this.setProperty("text-decoration-color",t);}get textDecorationLine(){return this.getPropertyValue("text-decoration-line")}set textDecorationLine(t){this.setProperty("text-decoration-line",t);}get textDecorationSkipInk(){return this.getPropertyValue("text-decoration-skip-ink")}set textDecorationSkipInk(t){this.setProperty("text-decoration-skip-ink",t);}get textDecorationStyle(){return this.getPropertyValue("text-decoration-style")}set textDecorationStyle(t){this.setProperty("text-decoration-style",t);}get textIndent(){return this.getPropertyValue("text-indent")}set textIndent(t){this.setProperty("text-indent",t);}get textOrientation(){return this.getPropertyValue("text-orientation")}set textOrientation(t){this.setProperty("text-orientation",t);}get textOverflow(){return this.getPropertyValue("text-overflow")}set textOverflow(t){this.setProperty("text-overflow",t);}get textRendering(){return this.getPropertyValue("text-rendering")}set textRendering(t){this.setProperty("text-rendering",t);}get textShadow(){return this.getPropertyValue("text-shadow")}set textShadow(t){this.setProperty("text-shadow",t);}get textSizeAdjust(){return this.getPropertyValue("text-size-adjust")}set textSizeAdjust(t){this.setProperty("text-size-adjust",t);}get textTransform(){return this.getPropertyValue("text-transform")}set textTransform(t){this.setProperty("text-transform",t);}get textUnderlinePosition(){return this.getPropertyValue("text-underline-position")}set textUnderlinePosition(t){this.setProperty("text-underline-position",t);}get top(){return this.getPropertyValue("top")}set top(t){this.setProperty("top",t);}get touchAction(){return this.getPropertyValue("touch-action")}set touchAction(t){this.setProperty("touch-action",t);}get transform(){return this.getPropertyValue("transform")}set transform(t){this.setProperty("transform",t);}get transformBox(){return this.getPropertyValue("transform-box")}set transformBox(t){this.setProperty("transform-box",t);}get transformOrigin(){return this.getPropertyValue("transform-origin")}set transformOrigin(t){this.setProperty("transform-origin",t);}get transformStyle(){return this.getPropertyValue("transform-style")}set transformStyle(t){this.setProperty("transform-style",t);}get transition(){return this.getPropertyValue("transition")}set transition(t){this.setProperty("transition",t);}get transitionDelay(){return this.getPropertyValue("transition-delay")}set transitionDelay(t){this.setProperty("transition-delay",t);}get transitionDuration(){return this.getPropertyValue("transition-duration")}set transitionDuration(t){this.setProperty("transition-duration",t);}get transitionProperty(){return this.getPropertyValue("transition-property")}set transitionProperty(t){this.setProperty("transition-property",t);}get transitionTimingFunction(){return this.getPropertyValue("transition-timing-function")}set transitionTimingFunction(t){this.setProperty("transition-timing-function",t);}get textEmphasisColor(){return this.getPropertyValue("text-emphasis-color")}set textEmphasisColor(t){this.setProperty("text-emphasis-color",t);}get textEmphasisPosition(){return this.getPropertyValue("text-emphasis-position")}set textEmphasisPosition(t){this.setProperty("text-emphasis-position",t);}get textEmphasisStyle(){return this.getPropertyValue("text-emphasis-style")}set textEmphasisStyle(t){this.setProperty("text-emphasis-style",t);}get unicodeBidi(){return this.getPropertyValue("unicode-bidi")}set unicodeBidi(t){this.setProperty("unicode-bidi",t);}get unicodeRange(){return this.getPropertyValue("unicode-range")}set unicodeRange(t){this.setProperty("unicode-range",t);}get userSelect(){return this.getPropertyValue("user-select")}set userSelect(t){this.setProperty("user-select",t);}get userZoom(){return this.getPropertyValue("user-zoom")}set userZoom(t){this.setProperty("user-zoom",t);}get vectorEffect(){return this.getPropertyValue("vector-effect")}set vectorEffect(t){this.setProperty("vector-effect",t);}get verticalAlign(){return this.getPropertyValue("vertical-align")}set verticalAlign(t){this.setProperty("vertical-align",t);}get visibility(){return this.getPropertyValue("visibility")}set visibility(t){this.setProperty("visibility",t);}get whiteSpace(){return this.getPropertyValue("white-space")}set whiteSpace(t){this.setProperty("white-space",t);}get widows(){return this.getPropertyValue("widows")}set widows(t){this.setProperty("widows",t);}get width(){return this.getPropertyValue("width")}set width(t){this.setProperty("width",t);}get willChange(){return this.getPropertyValue("will-change")}set willChange(t){this.setProperty("will-change",t);}get wordBreak(){return this.getPropertyValue("word-break")}set wordBreak(t){this.setProperty("word-break",t);}get wordSpacing(){return this.getPropertyValue("word-spacing")}set wordSpacing(t){this.setProperty("word-spacing",t);}get wordWrap(){return this.getPropertyValue("word-wrap")}set wordWrap(t){this.setProperty("word-wrap",t);}get writingMode(){return this.getPropertyValue("writing-mode")}set writingMode(t){this.setProperty("writing-mode",t);}get x(){return this.getPropertyValue("x")}set x(t){this.setProperty("x",t);}get y(){return this.getPropertyValue("y")}set y(t){this.setProperty("y",t);}get zIndex(){return this.getPropertyValue("z-index")}set zIndex(t){this.setProperty("z-index",t);}get zoom(){return this.getPropertyValue("zoom")}set zoom(t){this.setProperty("zoom",t);}get containerType(){return this.getPropertyValue("container-type")}set containerType(t){this.setProperty("container-type",t);}get containerName(){return this.getPropertyValue("container-name")}set containerName(t){this.setProperty("container-name",t);}get aspectRatio(){return this.getPropertyValue("aspect-ratio")}set aspectRatio(t){this.setProperty("aspect-ratio",t);}get length(){return this.#o().size()}get cssText(){return this.#t&&this.#e?"":this.#o().toString()}set cssText(t){if(this.#e)throw new this[m].DOMException("Failed to execute 'cssText' on 'CSSStyleDeclaration': These styles are computed, and the properties are therefore read-only.",C.domException);this.#t?(this.#r.propertyManager=new Fi({cssText:t}),this.#r.attributeValue=t,this.#t.setAttribute("style",this.#r.propertyManager.toString())):this.#r.propertyManager=new Fi({cssText:t});}item(t){return this.#o().item(t)}setProperty(t,e,r){if(this.#e)throw new this[m].DOMException(`Failed to execute 'setProperty' on 'CSSStyleDeclaration': These styles are computed, and therefore the '${t}' property is read-only.`,C.domException);if(r!==""&&r!==void 0&&r!=="important")return;let n=String(e).trim(),i=this.#o();n?i.set(t,n,!!r):i.remove(t),this.#t&&(this.#r.attributeValue=i.toString(),this.#r.attributeValue?this.#t.setAttribute("style",this.#r.attributeValue):this.#t.removeAttribute("style"));}removeProperty(t){if(this.#e)throw new this[m].DOMException(`Failed to execute 'removeProperty' on 'CSSStyleDeclaration': These styles are computed, and therefore the '${t}' property is read-only.`,C.domException);let e=this.#o();e.remove(t),this.#t&&(this.#r.attributeValue=e.toString(),this.#r.attributeValue?this.#t.setAttribute("style",this.#r.attributeValue):this.#t.removeAttribute("style"));}getPropertyValue(t){return this.#o().get(t)?.value||""}getPropertyPriority(t){return this.#o().get(t)?.important?"important":""}#o(){let t=this.#t,e=this.#r;if(!t)return e.propertyManager||(e.propertyManager=new Fi),e.propertyManager;if(this.#e)return new cf(t).getComputedStyle();let r=t.getAttribute("style")||"";return e.attributeValue!==r&&(e.propertyManager=new Fi({cssText:r})),e.propertyManager}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var li=class extends si{[tn]="";get conditionText(){return this[tn]}};var _a=class extends li{[ne]=gt.containerRule;[ho]="";get type(){return gt.containerRule}get cssText(){let t="";for(let e of this[ur])t+=`
50
- `+e.cssText;return t+=`
51
- `,`@${this[ho]}container ${this[tn]} {${t}}`}};chunkBUNLC3II_cjs.h();var $a=class extends An{[jr]="";#t=null;get type(){return gt.fontFaceRule}get cssText(){return `@font-face { ${this.style.cssText} }`}get style(){return this.#t||(this.#t=new fo(b,this[m]),this.#t.parentRule=this,this.#t.cssText=this[jr]),this.#t}};chunkBUNLC3II_cjs.h();var Ls=class extends An{[ks]="";[jr]="";#t=null;get type(){return gt.keyframeRule}get cssText(){return `${this[ks]} { ${this.style.cssText} }`}get style(){return this.#t||(this.#t=new fo(b,this[m]),this.#t.parentRule=this,this.#t.cssText=this[jr]),this.#t}get keyText(){return this[ks]}};chunkBUNLC3II_cjs.h();var fD=/^(from|to|[0-9]{1,3}%)\s*{([^}]*)}$/,Ka=class extends An{[ur]=[];[ut]="";[ho]="";get type(){return gt.keyframesRule}get cssText(){let t="";for(let e of this[ur])t+=`
52
- `+e.cssText;return t+=`
53
- `,`@${this[ho]}keyframes ${this[ut]} { ${t}}`}get cssRules(){return this[ur]}get name(){return this[ut]}get length(){return this[ur].length}appendRule(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'appendRule' on 'CSSKeyframesRule': 1 argument required, but only 0 present.");let e=String(t).trim().match(fD);if(!e)throw new this[m].DOMException("Invalid or unexpected token",C.syntaxError);let r=new Ls(b,this[m],this[lc]),n=e[1].trim();n==="from"?n="0%":n==="to"&&(n="100%"),r[Tl]=this,r[ks]=n,r[jr]=e[2].trim(),this[ur].push(r);}deleteRule(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'deleteRule' on 'CSSKeyframesRule': 1 argument required, but only 0 present.");for(let e=0,r=this[ur].length;e<r;e++)if(this[ur][e][ks]===t){this[ur].splice(e,1);return}}findRule(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'findRule' on 'CSSKeyframesRule': 1 argument required, but only 0 present.");for(let e=0,r=this[ur].length;e<r;e++)if(this[ur][e][ks]===t)return this[ur][e];return null}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var ik=/\s*,\s*/,ja=class o{[Cl];constructor(t,e){if(t!==b)throw new TypeError("Illegal constructor");this[Cl]=e;let r=new Re(this,[o]);return new Proxy(this,{get:(n,i)=>{if(i in n||typeof i=="symbol")return r.bind(i),n[i];let s=Number(i);if(!isNaN(s))return n[Y]()[s]},set(n,i,s){return r.bind(i),(i in n||typeof i=="symbol")&&(n[i]=s),true},deleteProperty(n,i){return (i in n||typeof i=="symbol")&&delete n[i],true},ownKeys(n){return Object.keys(n[Y]())},has(n,i){if(typeof i=="symbol")return false;if(i in n)return true;let s=Number(i);return !isNaN(s)&&s>=0&&s<n[Y]().length},defineProperty(n,i,s){return r.preventBinding(i),i in n?(Object.defineProperty(n,i,s),true):false},getOwnPropertyDescriptor(n,i){if(i in n||typeof i=="symbol")return;let s=Number(i),l=n[Y]();if(!isNaN(s)&&l[s])return {value:l[s],writable:false,enumerable:true,configurable:true}}})}get length(){return this[Y]().length}get mediaText(){return this[Cl][tn]}set mediaText(t){this[Cl][tn]=t===null?"":String(t).split(ik).join(", ");}item(t){return this[Y]()[Number(t)]||null}appendMedium(t){let e=this[Y]();e.indexOf(t)===-1&&(e.push(t),this[Cl][tn]=e.join(", "));}deleteMedium(t){let e=this[Y](),r=e.indexOf(t);r!==-1&&(e.splice(r,1),this[Cl][tn]=e.join(", "));}[Y](){return this[Cl][tn].trim()?this[Cl][tn].split(ik):[]}};var qa=class extends li{[Gw]=new ja(b,this);get type(){return gt.mediaRule}get cssText(){let t="";for(let e of this[ur])t+=`
54
- `+e.cssText;return t+=t?`
55
- `:" ",`@media ${this.conditionText} {${t}}`}get media(){return this[Gw]}get conditionText(){return this.media.mediaText}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Ll=class{#t;constructor(t){this.#t=t;}get value(){return this.#t}set value(t){this.#t=t;}};chunkBUNLC3II_cjs.h();var Ml=class{#t;#e;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this.#t=e,this.#e=r;}toString(){return this.#t.getPropertyValue(this.#e)}};var Ya=class{[Me];constructor(t,e){if(t!==b)throw new TypeError("Illegal constructor");this[Me]=e;}get size(){return this[Me].length}[Symbol.iterator](){return this.entries()}entries(){let t=this[Me].length,e=new Array(t);for(let r=0;r<t;r++){let n=this[Me][r];e[r]=[n,[new Ll(this[Me].getPropertyValue(n))]];}return e.values()}values(){let t=this[Me].length,e=new Array(t);for(let r=0;r<t;r++){let n=this[Me][r];e[r]=[new Ll(this[Me].getPropertyValue(n))];}return e.values()}keys(){let t=this[Me].length,e=new Array(t);for(let r=0;r<t;r++)e[r]=this[Me][r];return e.values()}get(t){return new Ml(b,this[Me],t)}getAll(t){return [new Ml(b,this[Me],t)]}has(t){return !!this[Me].getPropertyValue(t)}};var Qa=class extends Ya{append(t,e){this[Me].setProperty(t,e);}clear(){this[Me].cssText="";}delete(t){this[Me].removeProperty(t);}set(t,e){this[Me].setProperty(t,e);}};var Ms=class extends si{[Xd]=null;[sc]="";[jr]="";#t=null;get type(){return gt.styleRule}get cssText(){return `${this[sc]} { ${this.style.cssText} }`}get styleMap(){return this[Xd]||(this[Xd]=new Qa(b,this.style)),this[Xd]}get selectorText(){return this[sc]}get style(){return this.#t||(this.#t=new fo(b,this[m]),this.#t.parentRule=this,this.#t.cssText=this[jr]),this.#t}};chunkBUNLC3II_cjs.h();var Ja=class extends li{[ne]=gt.supportsRule;[ho]="";get type(){return gt.supportsRule}get cssText(){let t="";for(let e of this[ur])t+=`
56
- `+e.cssText;return t+=`
57
- `,`@${this[ho]}supports ${this.conditionText} {${t}}`}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Xt={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg",mathML:"http://www.w3.org/1998/Math/MathML",xml:"http://www.w3.org/XML/1998/namespace",xlink:"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"};chunkBUNLC3II_cjs.h();var sk=new Map,lk=new Map,bD=/[A-Z]/g,gD=/[a-z]/g,to=class{static asciiLowerCase(t){let e=sk.get(t);if(e)return e;let r=t.replace(bD,n=>String.fromCharCode(n.charCodeAt(0)+32));return sk.set(t,r),r}static asciiUpperCase(t){let e=lk.get(t);if(e)return e;let r=t.replace(gD,n=>String.fromCharCode(n.charCodeAt(0)-32));return lk.set(t,r),r}};chunkBUNLC3II_cjs.h();var ak="[-_.]|[0-9]|[a-z]|\xB7|[\xC0-\xD6]|[\xD8-\xF6]|[\xF8-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u203F-\u2040]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD]|[\u{10000}-\u{EFFFF}]",SD=new RegExp(`^[a-z](${ak})*-(${ak})*$`,"u"),PD=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"],Bp=class{static isValidCustomElementName(t){return SD.test(t)&&!PD.includes(t)}};var fc=class{[Ti]=new Map;[wp]=new Map;[vi]=new Map;[By]=false;#t;constructor(t){if(!t)throw new TypeError("Illegal constructor");this.#t=t;}define(t,e,r){if(this[By])return;if(!Bp.isValidCustomElementName(t))throw new this.#t.DOMException(`Failed to execute 'define' on 'CustomElementRegistry': "${t}" is not a valid custom element name`);if(this[Ti].has(t))throw new this.#t.DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(this[wp].has(e))throw new this.#t.DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let n=to.asciiUpperCase(t);e.prototype[m]=this.#t,e.prototype[k]=this.#t.document,e.prototype[it]=n,e.prototype[mt]=t,e.prototype[st]=Xt.html;let i=new Set,s=e.observedAttributes;if(Array.isArray(s))for(let a of s)i.add(String(a).toLowerCase());this[Ti].set(t,{elementClass:e,extends:r&&r.extends?r.extends.toLowerCase():null,observedAttributes:i,lifecycleCallbacks:{connectedCallback:e.prototype.connectedCallback,disconnectedCallback:e.prototype.disconnectedCallback,attributeChangedCallback:e.prototype.attributeChangedCallback}}),this[wp].set(e,t);let l=this[vi].get(t);if(l){this[vi].delete(t);for(let a of l)a();}}get(t){return this[Ti].get(t)?.elementClass}upgrade(t){}whenDefined(t){return this[By]?Promise.reject(new this.#t.DOMException("Failed to execute 'whenDefined' on 'CustomElementRegistry': The custom element registry has been destroyed.")):Bp.isValidCustomElementName(t)?this.get(t)?Promise.resolve():new Promise(e=>{let r=this[vi].get(t);r?r.push(e):this[vi].set(t,[e]);}):Promise.reject(new this.#t.DOMException(`Failed to execute 'whenDefined' on 'CustomElementRegistry': Invalid custom element name: "${t}"`))}getName(t){return this[wp].get(t)||null}[Mt](){this[By]=true;for(let t of this[Ti].values())t.elementClass.prototype[m]=null,t.elementClass.prototype[k]=null,t.elementClass.prototype[it]=null,t.elementClass.prototype[mt]=null,t.elementClass.prototype[st]=null;this[Ti]=new Map,this[wp]=new Map,this[vi]=new Map;}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Bi=class{kind;type;#t=null;constructor(t,e=""){this.kind=typeof t=="string"?"string":"file",this.type=this.kind==="string"?e:t.type,this.#t=t;}getAsFile(){return this.kind==="string"?null:this.#t}getAsString(t){this.kind==="file"&&t(""),t(this.#t);}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var en=class extends Ae{lastModified;name;constructor(t,e,r){if(arguments.length<2)throw new TypeError("Failed to construct 'File': 2 arguments required, but only "+arguments.length+" present.");super(t,r),this.name=e,this.lastModified=r&&r.lastModified?r.lastModified:Date.now();}};var Xa=class extends Array{add(t,e){if(t instanceof en){this.push(new Bi(t));return}if(!e)throw new TypeError("Failed to execute 'add' on 'DataTransferItemList': parameter 1 is not of type 'File'.");this.push(new Bi(t,e));}remove(t){this.splice(t,1);}clear(){for(;this.length;)this.pop();}};var Vp=class{dropEffect="none";effectAllowed="none";items=new Xa;get files(){let t=[];for(let e of this.items)if(e.kind==="file"){let r=e.getAsFile();r&&t.push(r);}return t}get types(){return this.items.map(t=>t.type)}clearData(){this.items.clear();}setData(t,e){for(let r=0,n=this.items.length;r<n;r++)if(this.items[r].type===t){this.items[r]=new Bi(e,t);return}this.items.add(e,t);}getData(t){let e=this.#t(t);for(let r=0,n=this.items.length;r<n;r++)if(this.#t(this.items[r].type)===e){let s="";return this.items[r].getAsString(l=>s=l),s}return ""}#t(t){let e=t.toLowerCase();return e==="text"?"text/plain":e==="url"?"text/uri-list":e}setDragImage(){throw new Error("Not implemented.")}};chunkBUNLC3II_cjs.h();var Hp=class{identifier;target;clientX;clientY;screenX;screenY;pageX;pageY;radiusX;radiusY;rotationAngle;force;constructor(t){this.identifier=t.identifier,this.target=t.target,this.clientX=t.clientX??0,this.clientY=t.clientY??0,this.screenX=t.screenX??0,this.screenY=t.screenY??0,this.pageX=t.pageX??0,this.pageY=t.pageY??0,this.radiusX=t.radiusX??0,this.radiusY=t.radiusY??0,this.rotationAngle=t.rotationAngle??0,this.force=t.force??0;}};chunkBUNLC3II_cjs.h();var Or=class extends M{static NONE=0;static CAPTURING_PHASE=1;static AT_TARGET=2;static BUBBLING_PHASE=3;detail;layerX=0;layerY=0;pageX=0;pageY=0;view;constructor(t,e=null){super(t,e),this.detail=e?.detail??0,this.view=e?.view??null;}};chunkBUNLC3II_cjs.h();var Gp=class extends M{animationName;elapsedTime;pseudoElement;constructor(t,e=null){super(t,e),this.animationName=e?.animationName??"",this.elapsedTime=e?.elapsedTime??0,this.pseudoElement=e?.pseudoElement??"";}};chunkBUNLC3II_cjs.h();var Up=class extends M{clipboardData;constructor(t,e=null){super(t,e),this.clipboardData=e?.clipboardData??null;}};chunkBUNLC3II_cjs.h();var Wp=class extends M{[Fy];constructor(t,e=null){super(t,e),this[Fy]=e?.detail??null;}get detail(){return this[Fy]}initCustomEvent(t,e=false,r=false,n=null){this[ne]=t,this[Pl]=e,this[ls]=r,this[Fy]=n;}};chunkBUNLC3II_cjs.h();var Is=class extends Or{message;filename;lineno;colno;error;constructor(t,e=null){super(t,e),this.message=e?.message??"",this.filename=e?.filename??"",this.lineno=e?.lineno??0,this.colno=e?.colno??0,this.error=e?.error??null;}};chunkBUNLC3II_cjs.h();var Vi=class extends Or{relatedTarget;constructor(t,e=null){super(t,e),this.relatedTarget=e?.relatedTarget??null;}};chunkBUNLC3II_cjs.h();var Za=class extends M{newURL;oldURL;constructor(t,e=null){super(t,e),this.newURL=e?.newURL??"",this.oldURL=e?.oldURL??"";}};chunkBUNLC3II_cjs.h();var zp=class extends Or{data;dataTransfer;inputType;isComposing;constructor(t,e=null){super(t,e),this.data=e?.data??"",this.dataTransfer=e?.dataTransfer??null,this.inputType=e?.inputType??"",this.isComposing=e?.isComposing??false;}};chunkBUNLC3II_cjs.h();var _p=class extends Or{static DOM_KEY_LOCATION_STANDARD=0;static DOM_KEY_LOCATION_LEFT=1;static DOM_KEY_LOCATION_RIGHT=2;static DOM_KEY_LOCATION_NUMPAD=3;altKey;code;ctrlKey;isComposing;key;location;metaKey;repeat;shiftKey;keyCode;which;constructor(t,e=null){super(t,e),this.altKey=e?.altKey??false,this.code=e?.code??"",this.ctrlKey=e?.ctrlKey??false,this.isComposing=e?.isComposing??false,this.key=e?.key??"",this.location=e?.location??0,this.metaKey=e?.metaKey??false,this.repeat=e?.repeat??false,this.shiftKey=e?.shiftKey??false,this.keyCode=e?.keyCode??0,this.which=e?.which??e?.keyCode??0;}getModifierState(t){if(arguments.length<1)throw new TypeError("Failed to execute 'getModifierState' on 'KeyboardEvent': 1 argument required, but only 0 present.");switch(String(t).toLowerCase()){case "alt":case "altgraph":return this.altKey;case "control":return this.ctrlKey;case "meta":return this.metaKey;case "shift":return this.shiftKey;default:return false}}};chunkBUNLC3II_cjs.h();var $p=class extends M{data;origin;lastEventId;source;ports;constructor(t,e=null){super(t,e),this.data=e?.data??null,this.origin=e?.origin??"",this.lastEventId=e?.lastEventId??"",this.source=e?.source??null,this.ports=e?.ports??[];}};chunkBUNLC3II_cjs.h();var cr=class extends Or{altKey;button;buttons;clientX;clientY;ctrlKey;metaKey;movementX;movementY;offsetX;offsetY;region;relatedTarget;screenX;screenY;shiftKey;constructor(t,e=null){super(t,e),this.altKey=e?.altKey??false,this.button=e?.button??0,this.buttons=e?.buttons??0,this.clientX=e?.clientX??0,this.clientY=e?.clientY??0,this.ctrlKey=e?.ctrlKey??false,this.metaKey=e?.metaKey??false,this.movementX=e?.movementX??0,this.movementY=e?.movementY??0,this.offsetX=e?.offsetX??0,this.offsetY=e?.offsetY??0,this.region=e?.region??"",this.relatedTarget=e?.relatedTarget??null,this.screenX=e?.screenX??0,this.screenY=e?.screenY??0,this.shiftKey=e?.shiftKey??false;}};chunkBUNLC3II_cjs.h();var tu=class extends cr{pointerId;width;height;pressure;tangentialPressure;tiltX;tiltY;twist;altitudeAngle;azimuthAngle;pointerType;isPrimary;coalescedEvents;predictedEvents;constructor(t,e=null){super(t,e),this.pointerId=e?.pointerId??0,this.width=e?.width??1,this.height=e?.height??1,this.pressure=e?.pressure??0,this.tangentialPressure=e?.tangentialPressure??0,this.tiltX=e?.tiltX??0,this.tiltY=e?.tiltY??0,this.twist=e?.twist??0,this.altitudeAngle=e?.altitudeAngle??0,this.azimuthAngle=e?.azimuthAngle??0,this.pointerType=e?.pointerType??"",this.isPrimary=e?.isPrimary??false,this.coalescedEvents=e?.coalescedEvents??[],this.predictedEvents=e?.predictedEvents??[];}getCoalescedEvents=()=>this.coalescedEvents;getPredictedEvents=()=>this.predictedEvents};chunkBUNLC3II_cjs.h();var rn=class extends M{lengthComputable;loaded;total;constructor(t,e=null){super(t),this.lengthComputable=e?.lengthComputable??false,this.loaded=e?.loaded??0,this.total=e?.total??0;}};chunkBUNLC3II_cjs.h();var pf=class extends M{key;oldValue;newValue;url;storageArea;constructor(t,e=null){super(t),this.key=e?.key??null,this.oldValue=e?.oldValue??null,this.newValue=e?.newValue??null,this.url=e?.url??"",this.storageArea=e?.storageArea??null;}};chunkBUNLC3II_cjs.h();var eu=class extends M{submitter;constructor(t,e=null){super(t,e),this.submitter=e?.submitter??null;}};chunkBUNLC3II_cjs.h();var Kp=class extends Or{altKey;changedTouches;ctrlKey;metaKey;shiftKey;targetTouches;touches;constructor(t,e=null){super(t,e),this.altKey=e?.altKey??false,this.changedTouches=e?.changedTouches??[],this.ctrlKey=e?.ctrlKey??false,this.metaKey=e?.metaKey??false,this.shiftKey=e?.shiftKey??false,this.targetTouches=e?.targetTouches??[],this.touches=e?.touches??[];}};chunkBUNLC3II_cjs.h();var jp=class extends Or{static DOM_DELTA_PIXEL=0;static DOM_DELTA_LINE=1;static DOM_DELTA_PAGE=2;deltaX;deltaY;deltaZ;deltaMode;constructor(t,e=null){super(t,e),this.deltaX=e?.deltaX??0,this.deltaY=e?.deltaY??0,this.deltaZ=e?.deltaZ??0,this.deltaMode=e?.deltaMode??0;}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var wD=/^(about|blob|data):$/,xD=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],Hi=class{static prepareRequest(t,e){e.referrerPolicy||(e[kp]="strict-origin-when-cross-origin"),e.referrer&&e.referrer!=="no-referrer"?e[qr]=this.getSentReferrer(t,e):e[qr]="no-referrer";}static getInitialReferrer(t,e){if(e===""||e==="no-referrer"||e==="client")return e;if(e){let r=e instanceof Ve?e:new Ve(e,t.location.href);return r.origin===t.location.origin?r:"client"}return "client"}static getReferrerPolicyFromHeader(t){let e=t.get("Referrer-Policy");if(!e)return "";let r=e.split(/[,\s]+/),n="";for(let i of r)i&&xD.includes(i)&&(n=i);return n}static getSentReferrer(t,e){if(e.referrer==="about:client"&&t.origin==="null")return "no-referrer";let r=new Ve(e.url),n=e.referrer==="about:client"?new Ve(t.href):new Ve(e.referrer);if(wD.test(n.protocol))return "no-referrer";switch(n.username="",n.password="",n.hash="",e.referrerPolicy){case "no-referrer":return "no-referrer";case "origin":return new Ve(n.origin);case "unsafe-url":return n;case "strict-origin":return this.isURLPotentiallyTrustWorthy(n)&&!this.isURLPotentiallyTrustWorthy(r)?"no-referrer":new Ve(n.origin);case "strict-origin-when-cross-origin":return n.origin===r.origin?n:this.isURLPotentiallyTrustWorthy(n)&&!this.isURLPotentiallyTrustWorthy(r)?"no-referrer":new Ve(n.origin);case "same-origin":return n.origin===r.origin?n:"no-referrer";case "origin-when-cross-origin":return n.origin===r.origin?n:new Ve(n.origin);case "no-referrer-when-downgrade":return this.isURLPotentiallyTrustWorthy(n)&&!this.isURLPotentiallyTrustWorthy(r)?"no-referrer":n}return "no-referrer"}static isURLPotentiallyTrustWorthy(t){return /^about:(blank|srcdoc)$/.test(t.href)||t.protocol==="data:"||/^(blob|filesystem):$/.test(t.protocol)?true:this.isOriginPotentiallyTrustWorthy(t)}static isOriginPotentiallyTrustWorthy(t){if(/^(http|ws)s:$/.test(t.protocol))return true;let e=t.host.replace(/(^\[)|(]$)/g,""),r=net.isIP(e);return r===4&&/^127\./.test(e)||r===6&&/^(((0+:){7})|(::(0+:){0,6}))0*1$/.test(e)?true:t.host==="localhost"||t.host.endsWith(".localhost")?false:t.protocol==="file:"}};chunkBUNLC3II_cjs.h();var bc=class{static parse(t){if(!/^data:/i.test(t))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');t=t.replace(/\r?\n/g,"");let e=t.indexOf(",");if(e===-1||e<=4)throw new TypeError("malformed data: URI");let r=t.substring(5,e).split(";"),n="",i=false,s=r[0]||"text/plain";for(let c=1;c<r.length;c++)r[c]==="base64"?i=true:r[c]&&(s+=`;${r[c]}`,r[c].indexOf("charset=")===0&&(n=r[c].substring(8)));!r[0]&&!n.length&&(s+=";charset=US-ASCII",n="US-ASCII");let l=i?"base64":"ascii",a=unescape(t.substring(e+1)),u=Buffer.from(a,l);return {type:s,charset:n,buffer:u}}};chunkBUNLC3II_cjs.h();var In=class{static isCORS(t,e){return t=typeof t=="string"?new url.URL(t):t,e=typeof e=="string"?new url.URL(e):e,e.protocol==="about:"||e.protocol==="javascript:"?false:t.hostname!==e.hostname&&!t.hostname.endsWith(e.hostname)||t.protocol!==e.protocol}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var ai;(function(o){o[o.boundary=0]="boundary",o[o.headerStart=2]="headerStart",o[o.header=3]="header",o[o.data=5]="data";})(ai||(ai={}));var NS={lf:10,cr:13},mf=class{formData;boundary;boundaryIndex=0;state=ai.boundary;data={contentDisposition:null,value:[],contentType:null,header:""};constructor(t,e){let r=`--${e}`;this.boundary=new Uint8Array(r.length),this.formData=new t.FormData;for(let n=0,i=r.length;n<i;n++)this.boundary[n]=r.charCodeAt(n);}write(t){let e,r;for(let n=0,i=t.length;n<i;n++)switch(e=t[n],r=t[n+1],this.state){case ai.boundary:e===this.boundary[this.boundaryIndex]?this.boundaryIndex++:this.boundaryIndex=0,this.boundaryIndex===this.boundary.length&&(this.state=ai.headerStart,this.boundaryIndex=0);break;case ai.headerStart:r!==NS.cr&&r!==NS.lf&&(this.data.header="",this.state=t[n-2]===NS.lf?ai.data:ai.header);break;case ai.header:if(e===NS.cr){if(this.data.header){let s=this.data.header.split(":");if(s.length>1){let l=s[0].toLowerCase(),a=s[1].trim();switch(l){case "content-disposition":this.data.contentDisposition=this.getContentDisposition(a);break;case "content-type":this.data.contentType=a;break}}}this.state=ai.headerStart;}else this.data.header+=String.fromCharCode(e);break;case ai.data:e===this.boundary[this.boundaryIndex]?this.boundaryIndex++:this.boundaryIndex=0,this.boundaryIndex===this.boundary.length?(this.state=ai.headerStart,this.data.value.length&&(this.appendFormData(this.data.contentDisposition.name,Buffer.from(this.data.value.slice(0,-(this.boundary.length+1))),this.data.contentDisposition.filename,this.data.contentType),this.data.value=[],this.data.contentDisposition=null,this.data.contentType=null),this.boundaryIndex=0):this.data.value.push(e);break}}end(){return this.data.contentDisposition&&this.data.value.length&&this.appendFormData(this.data.contentDisposition.name,Buffer.from(this.data.value.slice(0,-2)),this.data.contentDisposition.filename,this.data.contentType),this.formData}appendFormData(t,e,r,n){e.length&&(r?this.formData.append(t,new en([e],r,{type:n})):this.formData.append(t,e.toString()));}getContentDisposition(t){let e=/([a-z]+) *= *"([^"]+)"/g,r={},n;for(;n=e.exec(t);)r[n[1]]=n[2];return r}};chunkBUNLC3II_cjs.h();var Il=class{#t;#e=null;constructor(t){this.#t=t;}get readableStream(){return this.#e||(this.#e=this.#t()),this.#e}};var Rl=class{static async streamToFormData(t,e,r){if(!/multipart/i.test(r))throw new t.DOMException(`Failed to build FormData object: The "content-type" header isn't of type "multipart/form-data".`,C.invalidStateError);let n=e.body;if(!n)throw new t.DOMException("Failed to build FormData object: The response body is null.",C.invalidStateError);let i=r.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!i)throw new t.DOMException(`Failed to build FormData object: The "content-type" header doesn't contain any multipart boundary.`,C.invalidStateError);let s=n.getReader(),l=new mf(t,i[1]||i[2]),a=[],u,c=0,h=await s.read();for(;!h.done;){if(e[dr])throw e[dr];if(e[Ie])throw new t.DOMException("Failed to read response body: The stream was aborted.",C.abortError);l.write(h.value),h=await s.read();}try{u=typeof a[0]=="string"?buffer.Buffer.from(a.join("")):buffer.Buffer.concat(a,c);}catch(f){throw new t.DOMException(`Could not create Buffer from response body. Error: ${f.message}.`,C.invalidStateError)}return {formData:l.end(),buffer:u}}static formDataToStream(t){let e="----HappyDOMFormDataBoundary"+Math.random().toString(36),r=[],n=`--${e}\r
58
- Content-Disposition: form-data; name="`;for(let[s,l]of t)typeof l=="string"?r.push(buffer.Buffer.from(`${n}${this.escapeName(s)}"\r
59
- \r
60
- ${l.replace(/\r(?!\n)|(?<!\r)\n/g,`\r
61
- `)}\r
62
- `)):(r.push(buffer.Buffer.from(`${n}${this.escapeName(s)}"; filename="${this.escapeName(l.name,true)}"\r
63
- Content-Type: ${l.type||"application/octet-stream"}\r
64
- \r
65
- `)),r.push(l[Lt]),r.push(buffer.Buffer.from(`\r
66
- `)));r.push(buffer.Buffer.from(`--${e}--\r
67
- `));let i=buffer.Buffer.concat(r);return {contentType:`multipart/form-data; boundary=${e}`,contentLength:i.length,buffer:i,stream:new Il(()=>new web.ReadableStream({start(s){s.enqueue(i),s.close();}}))}}static escapeName(t,e=false){return (e?t:t.replace(/\r?\n|\r/g,`\r
68
- `)).replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22")}};chunkBUNLC3II_cjs.h();var ru=class{#t=[];constructor(t,e){if(!t)return;if(e){let n=t[Kt]?t[Kt]:t;if(e.form!==n)throw new this[m].DOMException("The specified element is not owned by this form element",C.notFoundError);if(!(e[it]==="INPUT"&&(e.type==="submit"||e.type==="image")||e[it]==="BUTTON"&&e.type==="submit"))throw new this[m].TypeError("The specified element is not a submit button")}let r=t[zo]();for(let n of r){let i=n.name;if(i)switch(n[it]){case "INPUT":if(n.disabled)break;switch(n.type){case "file":if(n[ei].length===0)this.append(i,new en([],"",{type:"application/octet-stream"}));else for(let s of n[ei])this.append(i,s);break;case "checkbox":case "radio":n.checked&&this.append(i,n.value);break;case "submit":case "reset":case "button":n===e&&n.value&&this.append(i,n.value);break;default:this.append(i,n.value);break}break;case "BUTTON":n===e&&n.value&&this.append(i,n.value);break;case "TEXTAREA":case "SELECT":this.append(i,n.value);break}}}forEach(t,e){for(let r of this.#t)t.call(e,r.value,r.name,this);}append(t,e,r){if(r&&!(e instanceof Ae))throw new this[m].TypeError('Failed to execute "append" on "FormData": parameter 2 is not of type "Blob".');this.#t.push({name:t,value:this.#e(e,r)});}delete(t){let e=[];for(let r of this.#t)r.name!==t&&e.push(r);this.#t=e;}get(t){for(let e of this.#t)if(e.name===t)return e.value;return null}getAll(t){let e=[];for(let r of this.#t)r.name===t&&e.push(r.value);return e}has(t){for(let e of this.#t)if(e.name===t)return true;return false}set(t,e,r){for(let n of this.#t)if(n.name===t){n.value=this.#e(e,r);return}this.append(t,e);}*keys(){for(let t of this.#t)yield t.name;}*values(){for(let t of this.#t)yield t.value;}*entries(){for(let t of this.#t)yield [t.name,t.value];}*[Symbol.iterator](){for(let t of this.#t)yield [t.name,t.value];}#e(t,e){if(t instanceof en){if(e){let r=new en([],e,{type:t.type,lastModified:t.lastModified});return r[Lt]=t[Lt],r}return t}if(t instanceof Ae){let r=new en([],"blob",{type:t.type});return r[Lt]=t[Lt],r}return String(t)}};var gr=class{static getBodyStream(t){if(t==null)return {stream:null,buffer:null,contentType:null,contentLength:null};if(t instanceof url.URLSearchParams){let r=buffer.Buffer.from(t.toString());return {buffer:r,stream:this.getReadableStream(r),contentType:"application/x-www-form-urlencoded;charset=UTF-8",contentLength:r.length}}else if(t instanceof Ae){let r=t[Lt];return {buffer:r,stream:this.getReadableStream(r),contentType:t.type,contentLength:t.size}}else {if(buffer.Buffer.isBuffer(t))return {buffer:t,stream:this.getReadableStream(t),contentType:null,contentLength:t.length};if(t instanceof ArrayBuffer){let r=buffer.Buffer.from(t);return {buffer:r,stream:this.getReadableStream(r),contentType:null,contentLength:t.byteLength}}else if(ArrayBuffer.isView(t)){let r=buffer.Buffer.from(t.buffer,t.byteOffset,t.byteLength);return {buffer:r,stream:this.getReadableStream(r),contentType:null,contentLength:t.byteLength}}else {if(t instanceof web.ReadableStream)return {buffer:null,stream:new Il(()=>t),contentType:null,contentLength:null};if(t instanceof ru)return Rl.formDataToStream(t)}}let e=buffer.Buffer.from(String(t));return {buffer:e,stream:this.getReadableStream(e),contentType:"text/plain;charset=UTF-8",contentLength:e.length}}static cloneBodyStream(t,e){if(e.bodyUsed)throw new t.DOMException("Failed to clone body stream of request: Request body is already used.",C.invalidStateError);if(e.body===null||e.body===void 0)return null;if(e[Lt])return this.getReadableStream(e[Lt]).readableStream;if(e.body[Ty]){let i=new Ol__default.default.PassThrough,s=new Ol__default.default.PassThrough;return e.body[Ty].pipe(i),e.body[Ty].pipe(s),e[Ii]=new Il(()=>this.nodeToWebStream(i)),this.nodeToWebStream(s)}let[r,n]=e.body.tee();return e[Ii]=new Il(()=>r),n}static async consumeBodyStream(t,e){let r=e.body;if(r===null||!(r instanceof web.ReadableStream))return buffer.Buffer.alloc(0);if(e[dr])throw e[dr];let n=r.getReader(),i=[],s=0;try{let l=await n.read();for(;!l.done;){if(e[dr])throw e[dr];if(e[Ie])throw new t.DOMException("Failed to read response body: The stream was aborted.",C.abortError);let a=l.value;s+=a.length,i.push(a),l=await n.read();}}catch(l){throw l instanceof ye?l:new t.DOMException(`Failed to read response body. Error: ${l.message}.`,C.encodingError)}try{return typeof i[0]=="string"?buffer.Buffer.from(i.join("")):buffer.Buffer.concat(i,s)}catch(l){throw new t.DOMException(`Could not create Buffer from response body. Error: ${l.message}.`,C.invalidStateError)}}static nodeToWebStream(t){let e=new web.ReadableStream({start(r){t.on("data",n=>{r.enqueue(n);}),t.on("end",()=>{r.close();}),t.on("error",n=>{r.error(n);});}});return e[Ty]=t,e}static getReadableStream(t){return new Il(()=>new web.ReadableStream({start(e){e.enqueue(t),e.close();}}))}};chunkBUNLC3II_cjs.h();var TD=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],CD=["error","manual","follow"],kD=["data:","http:","https:"],ND=["TRACE","TRACK","CONNECT"],LD=/^[A-Z]+$/,Rn=class{static validateMethod(t){if(!t.method||ND.includes(t.method))throw new ye(`'${t.method||""}' is not a valid HTTP method.`,C.invalidStateError);if(!LD.test(t.method))throw new ye(`'${t.method}' HTTP method is unsupported.`,C.invalidStateError)}static validateBody(t){if(t.body&&(t.method==="GET"||t.method==="HEAD"))throw new ye("Request with GET/HEAD method cannot have body.",C.invalidStateError)}static validateURL(t){if(t.username!==""||t.password!=="")throw new ye(`${t} is an url with embedded credentials.`,C.notSupportedError)}static validateReferrerPolicy(t){if(!TD.includes(t))throw new ye(`Invalid referrer policy "${t}".`,C.syntaxError)}static validateRedirect(t){if(!CD.includes(t))throw new ye(`Invalid redirect "${t}".`,C.syntaxError)}static validateSchema(t){if(!kD.includes(t[Be].protocol))throw new ye(`Failed to fetch from "${t.url}": URL scheme "${t[Be].protocol.replace(/:$/,"")}" is not supported.`,C.notSupportedError)}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Dn=class{static stringToCookie(t,e){let r=e.split(";"),n=r.shift();if(!n)return null;let i=n.indexOf("="),s=i!==-1?n.slice(0,i).trim():n.trim(),l=i!==-1?n.slice(i+1).trim():null,a=Object.assign({},TS,{key:s,value:l,originURL:t});if(!a.key)return null;for(let c of r){let h=c.indexOf("="),f=h!==-1?c.slice(0,h).trim().toLowerCase():c.trim().toLowerCase(),d=h!==-1?c.slice(h+1).trim():"";switch(f){case "expires":a.expires=new Date(d);break;case "max-age":a.expires=new Date(parseInt(d,10)*1e3+Date.now());break;case "domain":a.domain=d;break;case "path":a.path=d[0]==="/"?d:`/${d}`;break;case "httponly":a.httpOnly=true;break;case "secure":a.secure=true;break;case "samesite":switch(d.toLowerCase()){case "strict":a.sameSite=yo.strict;break;case "lax":a.sameSite=yo.lax;break;case "none":a.sameSite=yo.none;}break}}let u=a.key.toLowerCase();return u.startsWith("__secure-")&&!a.secure||u.startsWith("__host-")&&(!a.secure||a.path!=="/"||a.domain)?null:a}static cookiesToString(t){let e=[];for(let r of t)r.value!==null?e.push(`${r.key}=${r.value}`):e.push(r.key);return e.join("; ")}};var mk=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","content-transfer-encoding","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"],Gi=class{static removeForbiddenHeaders(t){for(let e of Object.keys(t[Ar]))(mk.includes(e)||e.startsWith("proxy-")||e.startsWith("sec-"))&&delete t[Ar][e];}static isHeaderForbidden(t){return mk.includes(t.toLowerCase())}static getRequestHeaders(t){let e=new t.window.Headers(t.baseHeaders);t.request.headers.forEach((s,l)=>{e.set(l,s);});let r=new url.URL(t.window.location.href),n=In.isCORS(r,t.request[Be]);if(e.set("Accept-Encoding","gzip, deflate, br"),e.set("Connection","close"),e.has("User-Agent")||e.set("User-Agent",t.window.navigator.userAgent),t.request[qr]instanceof url.URL&&e.set("Referer",t.request[qr].href),t.request.credentials==="include"||t.request.credentials==="same-origin"&&!n){let s=t.browserFrame.page.context.cookieContainer.getCookies(t.request[Be],false);s.length>0&&e.set("Cookie",Dn.cookiesToString(s));}else e.delete("Cookie"),e.delete("Cookie2");e.has("Accept")||e.set("Accept","*/*"),!e.has("Content-Length")&&t.request[Ku]!==null&&e.set("Content-Length",String(t.request[Ku])),!e.has("Content-Type")&&t.request[_e]&&e.set("Content-Type",t.request[_e]),n&&e.set("Origin",r.origin);let i={};for(let s of Object.values(e[Ar]))i[s.name]=s.value.join(", ");return i}};var nu=class o{[El];[Ii];[Ue]="cors";[dS];[AS];[kp];[wS];[Ri]=false;[xS];[Ie]=false;[dr]=null;[Ku]=null;[_e]=null;[qr]="client";[Be];[Ei];constructor(t,e){let r=this[m];if(!r)throw new TypeError("Failed to construct 'Request': 'Request' was constructed outside a Window context.");if(typeof t!="string"&&!t)throw new r.TypeError("Failed to construct 'Request': 1 argument required, only 0 present.");if(this[El]=(e?.method||t.method||"GET").toUpperCase(),e?.mode)switch(e.mode){case "navigate":case "websocket":throw new r.DOMException(`Failed to construct 'Request': Cannot construct a Request with a RequestInit whose mode member is set as '${e.mode}'.`,C.securityError);case "same-origin":case "no-cors":case "cors":this[Ue]=e.mode;break;default:throw new r.DOMException(`Failed to construct 'Request': The provided value '${e.mode}' is not a valid enum value of type RequestMode.`,C.syntaxError)}else t instanceof o&&(this[Ue]=t.mode);let{stream:n,buffer:i,contentType:s,contentLength:l}=gr.getBodyStream(t instanceof o&&(t[Ei]||t.body)?t[Ei]||gr.cloneBodyStream(r,t):e?.body??null);if(this[Ei]=i,this[Ii]=n,this[xS]=e?.credentials||t.credentials||"same-origin",this[dS]=new this[m].Headers(e?.headers||t.headers||{}),Gi.removeForbiddenHeaders(this.headers),l?this[Ku]=l:!this.body&&(this.method==="POST"||this.method==="PUT")&&(this[Ku]=0),s?(this.headers.has("Content-Type")||this.headers.set("Content-Type",s),this[_e]=s):t instanceof o&&t[_e]&&(this[_e]=t[_e]),this[AS]=e?.redirect||t.redirect||"follow",this[kp]=(e?.referrerPolicy||t.referrerPolicy||"").toLowerCase(),this[wS]=e?.signal||t.signal||new r.AbortSignal,this[qr]=Hi.getInitialReferrer(r,e?.referrer!==null&&e?.referrer!==void 0?e?.referrer:t.referrer),t instanceof url.URL)this[Be]=t;else try{t instanceof o&&t.url?this[Be]=new url.URL(t.url,r.location.href):this[Be]=new url.URL(t,r.location.href);}catch{throw new r.DOMException(`Failed to construct 'Request': Invalid URL "${t}" on document location '${r.location}'.${r.location.origin==="null"?" Relative URLs are not permitted on current document location.":""}`,C.notSupportedError)}Rn.validateMethod(this),Rn.validateBody(this),Rn.validateURL(this[Be]),Rn.validateReferrerPolicy(this.referrerPolicy),Rn.validateRedirect(this.redirect);}get method(){return this[El]}get body(){return this[Ii]?.readableStream||null}get mode(){return this[Ue]}get headers(){return this[dS]}get redirect(){return this[AS]}get referrerPolicy(){return this[kp]}get signal(){return this[wS]}get bodyUsed(){return this[Ri]}get credentials(){return this[xS]}get referrer(){return !this[qr]||this[qr]==="no-referrer"?"":this[qr]==="client"?"about:client":this[qr].toString()}get url(){return this[Be].href}get[Symbol.toStringTag](){return "Request"}async arrayBuffer(){let t=this[m];if(this[Ri])throw new t.DOMException(`Body has already been used for "${this.url}".`,C.invalidStateError);let e=new et(t).getAsyncTaskManager();this[Ri]=true;let r=e.startTask(()=>{this[Ie]=true,this.signal[xi]();}),n;try{n=await gr.consumeBodyStream(t,this);}catch(i){throw e.endTask(r),i}return e.endTask(r),n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength)}async blob(){let t=this.headers.get("Content-Type")||"",e=await this.arrayBuffer();return new Ae([e],{type:t})}async buffer(){let t=this[m];if(this[Ri])throw new t.DOMException(`Body has already been used for "${this.url}".`,C.invalidStateError);let e=new et(t).getAsyncTaskManager();this[Ri]=true;let r=e.startTask(()=>{this[Ie]=true,this.signal[xi]();}),n;try{n=await gr.consumeBodyStream(t,this);}catch(i){throw e.endTask(r),i}return e.endTask(r),n}async text(){let t=this[m];if(this[Ri])throw new t.DOMException(`Body has already been used for "${this.url}".`,C.invalidStateError);let e=new et(t).getAsyncTaskManager();this[Ri]=true;let r=e.startTask(()=>{this[Ie]=true,this.signal[xi]();}),n;try{n=await gr.consumeBodyStream(t,this);}catch(i){throw e.endTask(r),i}return e.endTask(r),new TextDecoder().decode(n)}async json(){let t=await this.text();return JSON.parse(t)}async formData(){let t=this[m],e=new et(t).getAsyncTaskManager(),r=this.headers.get("Content-Type")??this[_e];if(this.body&&r&&/multipart/i.test(r)){if(this[Ri])throw new t.DOMException(`Body has already been used for "${this.url}".`,C.invalidStateError);this[Ri]=true;let n=e.startTask(()=>{this[Ie]=true,this.signal[xi]();}),i;try{i=(await Rl.streamToFormData(t,this,r)).formData;}catch(s){throw e.endTask(n),s}return e.endTask(n),i}if(r?.startsWith("application/x-www-form-urlencoded")){let n=new URLSearchParams(await this.text()),i=new t.FormData;for(let[s,l]of n)i.append(s,l);return i}throw new t.DOMException('Failed to construct FormData object: The "content-type" header is neither "application/x-www-form-urlencoded" nor "multipart/form-data".',C.invalidStateError)}clone(){return new this[m].Request(this)}};chunkBUNLC3II_cjs.h();var RD=[301,302,303,307,308],on=class{bodyUsed=false;redirected=false;type="basic";url="";status;statusText;ok;headers;[Jn]=null;[Lt]=null;[Lo]=null;[Ie]=false;[dr]=null;[Ii]=null;constructor(t,e){if(!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);if(this.status=e?.status!==void 0?e.status:200,this.statusText=e?.statusText||"",this.ok=this.status>=200&&this.status<300,this.headers=new this[m].Headers(e?.headers),this.headers.delete("Set-Cookie"),this.headers.delete("Set-Cookie2"),t){let{stream:r,buffer:n,contentType:i}=gr.getBodyStream(t);this[Ii]=r,n&&(this[Lt]=n),i&&!this.headers.has("Content-Type")&&this.headers.set("Content-Type",i);}}get[Symbol.toStringTag](){return "Response"}get body(){return this[Ii]?.readableStream||null}async arrayBuffer(){let t=this[m];if(this.bodyUsed)throw new t.DOMException(`Body has already been used for "${this.url}".`,C.invalidStateError);let e=new et(t).getBrowserFrame();if(!e)return new ArrayBuffer(0);let r=e[vt];this.bodyUsed=true;let n=this[Lt];if(!n){let i=r.startTask(()=>{this[Ie]=true;});try{n=await gr.consumeBodyStream(t,this);}catch(s){throw r.endTask(i),s}r.endTask(i);}return this.#t(n),n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength)}async blob(){let t=this.headers.get("Content-Type")||"",e=await this.arrayBuffer();return new Ae([e],{type:t})}async buffer(){let t=this[m];if(this.bodyUsed)throw new t.DOMException(`Body has already been used for "${this.url}".`,C.invalidStateError);let e=new et(t).getBrowserFrame();if(!e)return buffer.Buffer.alloc(0);let r=e[vt];this.bodyUsed=true;let n=this[Lt];if(!n){let i=r.startTask(()=>{this[Ie]=true;});try{n=await gr.consumeBodyStream(t,this);}catch(s){throw r.endTask(i),s}r.endTask(i);}return this.#t(n),n}async text(){let t=this[m];if(this.bodyUsed)throw new t.DOMException(`Body has already been used for "${this.url}".`,C.invalidStateError);let e=new et(t).getBrowserFrame();if(!e)return "";let r=e[vt];this.bodyUsed=true;let n=this[Lt];if(!n){let i=r.startTask(()=>{this[Ie]=true;});try{n=await gr.consumeBodyStream(t,this);}catch(s){throw r.endTask(i),s}r.endTask(i);}return this.#t(n),new TextDecoder().decode(n)}async json(){let t=await this.text();return JSON.parse(t)}async formData(){let t=this[m],e=new et(t).getBrowserFrame();if(!e)return new t.FormData;let r=e[vt],n=this.headers.get("Content-Type");if(n&&this.body&&/multipart/i.test(n)){if(this.bodyUsed)throw new t.DOMException(`Body has already been used for "${this.url}".`,C.invalidStateError);this.bodyUsed=true;let i=e[vt].startTask(()=>{this[Ie]=true;}),s,l;try{let a=await Rl.streamToFormData(t,this,n);s=a.formData,l=a.buffer;}catch(a){throw r.endTask(i),a}return this.#t(l),r.endTask(i),s}if(n?.startsWith("application/x-www-form-urlencoded")){let i=new url.URLSearchParams(await this.text()),s=new t.FormData;for(let[l,a]of i)s.append(l,a);return s}throw new t.DOMException('Failed to build FormData object: The "content-type" header is neither "application/x-www-form-urlencoded" nor "multipart/form-data".',C.invalidStateError)}clone(){let t=this[m],e=gr.cloneBodyStream(t,this),r=new t.Response(e,{status:this.status,statusText:this.statusText,headers:this.headers});return r[Jn]=this[Jn],r[Lt]=this[Lt],r.ok=this.ok,r.redirected=this.redirected,r.type=this.type,r.url=this.url,r}#t(t){this[Lt]=t,this[Jn]?.response?.waitingForBody&&(this[Jn].response.body=t,this[Jn].response.waitingForBody=false);}static redirect(t,e=302){let r=this[m];if(!RD.includes(e))throw new r.DOMException("Failed to create redirect response: Invalid redirect status code.",C.invalidStateError);return new r.Response(null,{headers:{location:new Ve(t).toString()},status:e})}static error(){let t=new this[m].Response(null,{status:0,statusText:""});return t.type="error",t}static json(t,e){let r=this[m],n=JSON.stringify(t);if(n===void 0)throw new r.TypeError("data is not JSON serializable");let i=new r.Headers(e&&e.headers);return i.has("Content-Type")||i.set("Content-Type","application/json"),new r.Response(n,{status:200,...e,headers:i})}};chunkBUNLC3II_cjs.h();var DD=[301,302,303,307,308],OD=20,Dl=class{static isRedirect(t){return DD.includes(t)}static isMaxRedirectsReached(t){return t>=OD}};chunkBUNLC3II_cjs.h();var Sc=class{static parseResponseHeaders(t){let e=new t.browserFrame.window.Headers,r=null;for(let n of t.rawHeaders)if(!r)r=n;else {let i=r.toLowerCase();if(i==="set-cookie"||i==="set-cookie2"){let s=Dn.stringToCookie(t.requestURL,n);s&&t.browserFrame.page.context.cookieContainer.addCookies([s]);}else e.append(r,n);r=null;}return e}};chunkBUNLC3II_cjs.h();var qp={cert:`-----BEGIN CERTIFICATE-----
69
- MIIDYzCCAkugAwIBAgIUJRKB/H66hpet1VfUlm0CiXqePA4wDQYJKoZIhvcNAQEL
70
- BQAwQTELMAkGA1UEBhMCU0UxDjAMBgNVBAgMBVNrYW5lMQ4wDAYDVQQHDAVNYWxt
71
- bzESMBAGA1UECgwJSGFwcHkgRE9NMB4XDTIyMTAxMTIyMDM0OVoXDTMyMTAwODIy
72
- MDM0OVowQTELMAkGA1UEBhMCU0UxDjAMBgNVBAgMBVNrYW5lMQ4wDAYDVQQHDAVN
73
- YWxtbzESMBAGA1UECgwJSGFwcHkgRE9NMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A
74
- MIIBCgKCAQEAqerQSQEg/SxVxRiwlItithr5e5EMZo1nsqt/xOxagbmpW3IEmt0j
75
- bpbH7iEF4DDEo7KAOwUCOwVWeFxRoag8lG2ax48wrgjlCna45XDn0Xeg1ARajL04
76
- gs46HZ0VrzIloVGfln0zgt/Vum5BNqs9Oc5fQoBmoP3cAn3dn4ZVcP0AKthtcyPl
77
- q2DuNRN0PV0D2RtMSiAy9l1Ko6N5x+sAeClDyOL+sTDLngZBVeZyOKt9Id15S8Zt
78
- XtA6VMgHnnF3jChn7pag77rsd/y5iANAVNZYqRl+Eg7xaDcsvbgH46UBOrBcB39Q
79
- tTh5Mtjoxep5e3ZDFG+kQ1HUE+iz5O5n0wIDAQABo1MwUTAdBgNVHQ4EFgQU69s9
80
- YSobG/m2SN4L/7zTaF7iDbwwHwYDVR0jBBgwFoAU69s9YSobG/m2SN4L/7zTaF7i
81
- DbwwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAi/WUXx2oal8L
82
- YnPlIuKfh49n/K18wXSYG//oFYwxfVxqpYH8hUiXVm/GUcXCxS++hUkaKLqXmH9q
83
- MKJiCrZr3vS+2nsBKopkICu/TLdROl0sAI9lByfnEbfSAzjxe1IWJdK8NdY0y5m5
84
- 9pEr/URVIAp/CxrneyASb4q0Jg5To3FR7vYc+2X6wZn0MundKMg6Dp9/A37jiF3l
85
- Tt/EJp299YZcsUzh+LnRuggRjnoOVu1aLcLFlaUiwZfy9m8mLG6B/mdW/qNzNMh9
86
- Oqvg1zfGdpz/4D/2UUUBn6pq1vbsoAaF3OesoA3mfDcegDf/H9woJlpT0Wql+e68
87
- Y3FblSokcA==
88
- -----END CERTIFICATE-----`,key:`-----BEGIN PRIVATE KEY-----
89
- MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCp6tBJASD9LFXF
90
- GLCUi2K2Gvl7kQxmjWeyq3/E7FqBualbcgSa3SNulsfuIQXgMMSjsoA7BQI7BVZ4
91
- XFGhqDyUbZrHjzCuCOUKdrjlcOfRd6DUBFqMvTiCzjodnRWvMiWhUZ+WfTOC39W6
92
- bkE2qz05zl9CgGag/dwCfd2fhlVw/QAq2G1zI+WrYO41E3Q9XQPZG0xKIDL2XUqj
93
- o3nH6wB4KUPI4v6xMMueBkFV5nI4q30h3XlLxm1e0DpUyAeecXeMKGfulqDvuux3
94
- /LmIA0BU1lipGX4SDvFoNyy9uAfjpQE6sFwHf1C1OHky2OjF6nl7dkMUb6RDUdQT
95
- 6LPk7mfTAgMBAAECggEAKkwTkTjAt4UjzK56tl+EMQTB+ep/hb/JgoaChci4Nva6
96
- m9LkJpDJ0yuhlTuPNOGu8XjrxsVWas7HWarRf0Zb3i7yip6wZYI9Ub+AA015x4DZ
97
- /i0fRU2NFbK0cM67qSL4jxG8gj+kZP3HPGNZxHwX/53JxMolwgmvjMc8NgvAlSFd
98
- NnV9h4xtbhUh1NGS5zmP3iU2rwnE8JrIEzwy6axLom7nekAgkdcbAr0UoBs8gcgH
99
- aYNhU4Gz3tGcZZ0IXAfT/bJIH1Ko8AGv4pssWc3BXcmmNdm/+kzvHIxEIV7Qegmo
100
- XG1ZyZCyD/0b4/3e8ySDBEDqwR+HeyTW2isWG2agAQKBgQDp44aTwr3dkIXY30xv
101
- FPfUOipg/B49dWnffYJ9MWc1FT9ijNPAngWSk0EIiEQIazICcUBI4Yji6/KeyqLJ
102
- GdLpDi1CkKqtyh73mjELinYp3EUQgEa77aQogGa2+nMOVfu+O5CtloUrv/A18jX3
103
- +VEyaEASK0fWmnSI0OdlxQHIAQKBgQC5+xOls2F3MlKASvWRLlnW1wHqlDTtVoYg
104
- 5Nh8syZH4Ci2UH8tON3A5/7SWNM0t1cgV6Cw4zW8Z2spgIT/W0iYYrQ4hHL1xdCu
105
- +CxL1km4Gy8Uwpsd+KdFahFqF/XTmLzW0HXLxWSK0fTwmdV0SFrKF3MXfTCU2AeZ
106
- jJoMFb6P0wKBgQC3Odw6s0vkYAzLGhuZxfZkVvDOK5RRF0NKpttr0iEFL9EJFkPo
107
- 2KKK8jr3QTDy229BBJGUxsJi6u6VwS8HlehpVQbV59kd7oKV/EBBx0XMg1fDlopT
108
- PNbmN7i/zbIG4AsoOyebJZjL7kBzMn1e9vzKHWtcEHXlw/hZGja8vjooAQKBgAeg
109
- xK2HLfg1mCyq5meN/yFQsENu0LzrT5UJzddPgcJw7zqLEqxIKNBAs7Ls8by3yFsL
110
- PQwERa/0jfCl1M6kb9XQNpQa2pw6ANUsWKTDpUJn2wZ+9N3F1RaDwzMWyH5lRVmK
111
- M0qoTfdjpSg5Jwgd75taWt4bxGJWeflSSv8z5R0BAoGAWL8c527AbeBvx2tOYKkD
112
- 2TFranvANNcoMrbeviZSkkGvMNDP3p8b6juJwXOIeWNr8q4vFgCzLmq6d1/9gYm2
113
- 3XJwwyD0LKlqzkBrrKU47qrnmMosUrIRlrAzd3HbShOptxc6Iz2apSaUDKGKXkaw
114
- gl5OpEjeliU7Mus0BVS858g=
115
- -----END PRIVATE KEY-----`};chunkBUNLC3II_cjs.h();var hk="<html><head><title>Happy DOM Virtual Server - 404 Not Found</title></head><body><h1>Happy DOM Virtual Server - 404 Not Found</h1></body></html>",Ui=class{static getFilepath(t,e){let r=new et(t).getSettings();if(!r||!r.fetch.virtualServers&&!r.module.resolveNodeModules)return null;if(r.fetch.virtualServers)for(let n of r.fetch.virtualServers){let i=null;if(typeof n.url=="string"){let s=new URL(n.url[n.url.length-1]==="/"?n.url.slice(0,-1):n.url,t.location.origin!=="null"?t.location.origin:void 0);e.startsWith(s.href)&&(i=s);}else if(n.url instanceof RegExp){let s=e.match(n.url);s&&(i=new URL(s[0][s[0].length-1]==="/"?s[0].slice(0,-1):s[0],t.location.origin));}if(i){let s=e.slice(i.href.length).split("?")[0].split("#")[0];return Ip__default.default.join(Ip__default.default.resolve(n.directory),s.replaceAll("/",Ip__default.default.sep))}}if(r.module.resolveNodeModules){let n=r.module.resolveNodeModules.url,i=new URL(n[n.length-1]==="/"?n.slice(0,-1):n,t.location.origin);if(e.startsWith(i.href)){let s=e.slice(i.href.length).split("?")[0].split("#")[0];return Ip__default.default.join(Ip__default.default.resolve(r.module.resolveNodeModules.directory),s.replaceAll("/",Ip__default.default.sep))}}return null}static getNotFoundResponse(t){return new t.Response(hk,{status:404,statusText:"Not Found",headers:{"Content-Type":"text/html"}})}static getNotFoundSyncResponse(t,e){return {status:404,statusText:"Not Found",ok:false,url:e,redirected:false,headers:new t.Headers({"Content-Type":"text/html"}),body:Buffer.from(hk),[Lo]:null}}};chunkBUNLC3II_cjs.h();var Rs=class{static getKey(t){return JSON.stringify({url:t.url,destination:t.destination,mode:t.mode,credentialsMode:t.credentialsMode})}};var ox=buffer.Buffer.from(`0\r
116
- \r
117
- `),nn=class o{reject=null;resolve=null;listeners={onSignalAbort:this.onSignalAbort.bind(this)};isChunkedTransfer=false;isProperLastChunkReceived=false;previousChunk=null;nodeRequest=null;nodeResponse=null;response=null;responseHeaders=null;interceptor;requestHeaders;request;redirectCount=0;disableCache;disableSameOriginPolicy;disablePreload;#t;#e;#r=null;constructor(t){this.#t=t.browserFrame,this.#e=t.window,this.#r=t.unfilteredHeaders??null,this.request=typeof t.url=="string"||t.url instanceof url.URL?new t.window.Request(t.url,t.init):t.url,t.contentType&&(this.request[_e]=t.contentType),this.redirectCount=t.redirectCount??0,this.disableCache=t.disableCache??false,this.disableSameOriginPolicy=t.disableSameOriginPolicy??this.#t.page.context.browser.settings.fetch.disableSameOriginPolicy??false,this.interceptor=this.#t.page.context.browser.settings.fetch.interceptor,this.requestHeaders=this.#t.page.context.browser.settings.fetch.requestHeaders,this.disablePreload=t.disablePreload??false;}async send(){if(!(this.request instanceof nu)||!(this.request[Be]instanceof url.URL))throw new this.#e.DOMException("Unknown request object. Request object must be an instance of Request.",C.invalidStateError);if(Hi.prepareRequest(new url.URL(this.#e.location.href),this.request),this.requestHeaders){for(let e of this.requestHeaders)if(!e.url||(typeof e.url=="string"?e.url.startsWith(this.request.url):this.request.url.match(e.url)))for(let[r,n]of Object.entries(e.headers))this.request.headers.set(r,n);}if(this.interceptor?.beforeAsyncRequest){let e=this.#t[vt].startTask(),r=await this.interceptor.beforeAsyncRequest({request:this.request,window:this.#e});if(this.#t[vt].endTask(e),r instanceof on)return r}if(Rn.validateSchema(this.request),this.request.signal[Ie])throw this.request.signal[gn]!==void 0?this.request.signal[gn]:new this.#e.DOMException("signal is aborted without reason",C.abortError);if(this.request[Be].protocol==="data:"){let e=bc.parse(this.request.url);this.response=new this.#e.Response(e.buffer,{headers:{"Content-Type":e.type}});let r=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:this.#e,response:this.response,request:this.request}):void 0;return r instanceof on?r:this.response}if(this.request[Be].protocol==="http:"&&this.#e.location.protocol==="https:")throw new this.#e.DOMException(`Mixed Content: The page at '${this.#e.location.href}' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '${this.request.url}'. This request has been blocked; the content must be served over HTTPS.`,C.securityError);if(!this.disableCache){let e=await this.getCachedResponse();if(e)return e}if(!this.disablePreload){let e=Rs.getKey({url:this.request.url,destination:"fetch",mode:this.request.mode,credentialsMode:this.request.credentials}),r=this.#e.document[mo].get(e);if(r){if(this.#e.document[mo].delete(e),r.response)return r.response;let n=this.#t[vt].startTask(),i=await r.onResponseAvailable();return this.#t[vt].endTask(n),i}}let t=await this.getVirtualServerResponse();if(t)return t;if(!this.disableSameOriginPolicy&&!await this.compliesWithCrossOriginPolicy())throw this.#t.page.console.warn(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`),new this.#e.DOMException(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`,C.networkError);return await this.sendRequest()}async getCachedResponse(){if(this.disableCache)return null;let t=this.#t.page.context.responseCache.get(this.request);if(!t||t.response.waitingForBody)return null;if(t.state===Ba.stale){let r=new this.#e.Headers(t.request.headers);if(t.etag)r.set("If-None-Match",t.etag);else {if(!t.lastModified)return null;r.set("If-Modified-Since",new Date(t.lastModified).toUTCString());}let n=new o({browserFrame:this.#t,window:this.#e,url:this.request.url,init:{headers:r,method:t.request.method},disableCache:true,disableSameOriginPolicy:true});if(t.etag||!t.staleWhileRevalidate){let i=await n.send(),s=i.status!==304?await i.buffer():null;if(t=this.#t.page.context.responseCache.add(this.request,{...i,body:s,waitingForBody:false}),i.status!==304){let l=new this.#e.Response(s,{status:i.status,statusText:i.statusText,headers:i.headers});return l.url=i.url,l[Jn]=t,l}}else n.send().then(i=>{i.buffer().then(s=>{this.#t.page.context.responseCache.add(this.request,{...i,body:s,waitingForBody:false});});});}if(!t||t.response.waitingForBody)return null;let e=new this.#e.Response(t.response.body,{status:t.response.status,statusText:t.response.statusText,headers:t.response.headers});return e.url=t.response.url,e[Jn]=t,e}async getVirtualServerResponse(){let t=Ui.getFilepath(this.#e,this.request.url);if(!t)return null;let e=this.#t[vt].startTask();if(this.request.method!=="GET"){this.#t.page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let u=Ui.getNotFoundResponse(this.#e),c=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:this.#e,response:await u,request:this.request}):void 0;return this.#t[vt].endTask(e),c instanceof on?c:u}let r;try{t=(await Mp__default.default.promises.stat(t)).isDirectory()?Ip__default.default.join(t,"index.html"):t,r=await Mp__default.default.promises.readFile(t);}catch{this.#t.page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let c=Ui.getNotFoundResponse(this.#e),h=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:this.#e,response:await c,request:this.request}):void 0;return this.#t[vt].endTask(e),h instanceof on?h:c}let n=new this.#e.ReadableStream({start:u=>{this.#e.queueMicrotask(()=>{u.enqueue(r),u.close();});}}),i=new this.#e.Response(n);i[Lt]=r,i[Lo]=t,i.url=this.request.url;let s=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:this.#e,response:await i,request:this.request}):void 0;this.#t[vt].endTask(e);let l=s instanceof on?s:i,a={...l,body:r,waitingForBody:false,virtual:true};return i[Jn]=this.#t.page.context.responseCache.add(this.request,a),l}async compliesWithCrossOriginPolicy(){if(this.disableSameOriginPolicy||!In.isCORS(this.#e.location.href,this.request[Be]))return true;let t=this.#t.page.context.preflightResponseCache.get(this.request);if(t)return !(t.allowOrigin!=="*"&&t.allowOrigin!==this.#e.location.origin||t.allowMethods.length!==0&&!t.allowMethods.includes(this.request.method));let e=[];for(let[a]of this.request.headers)e.push(a.toLowerCase());let r=new this.#e.Headers({"Access-Control-Request-Method":this.request.method,Origin:this.#e.location.origin});e.length>0&&r.set("Access-Control-Request-Headers",e.slice().sort().join(","));let i=await new o({browserFrame:this.#t,window:this.#e,url:this.request.url,init:{method:"OPTIONS"},disableCache:true,disableSameOriginPolicy:true,unfilteredHeaders:r}).send();if(!i.ok)return false;let s=i.headers.get("Access-Control-Allow-Origin");if(!s||s!=="*"&&s!==this.#e.location.origin)return false;let l=[];if(i.headers.has("Access-Control-Allow-Methods")){let a=i.headers.get("Access-Control-Allow-Methods");if(a!=="*")for(let u of a.split(","))l.push(u.trim().toUpperCase());}return !(l.length!==0&&!l.includes(this.request.method))}sendRequest(){return new Promise((t,e)=>{let r=this.#t[vt].startTask(()=>this.onAsyncTaskManagerAbort());if(this.resolve)throw new this.#e.Error("Fetch already sent.");this.resolve=async i=>{!this.disableCache&&i instanceof on&&this.#t.page&&this.#t.page.context&&(i[Jn]=this.#t.page.context.responseCache.add(this.request,{...i,headers:this.responseHeaders,body:i[Lt],waitingForBody:!i[Lt]&&!!i.body}));let s=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:this.#e,response:await i,request:this.request}):void 0;this.#t[vt].endTask(r);let l=s instanceof on?s:i;l instanceof on&&!l.ok&&this.#t.page.console.error(`${this.request.method} ${this.request.url} ${l.status} (${l.statusText})`),t(l);},this.reject=i=>{this.#t[vt].endTask(r),e(i);},this.request.signal.addEventListener("abort",this.listeners.onSignalAbort);let n=(this.request[Be].protocol==="https:"?BD__default.default:FD__default.default).request;this.nodeRequest=n(this.request[Be].href,{method:this.request.method,headers:Gi.getRequestHeaders({browserFrame:this.#t,window:this.#e,request:this.request,baseHeaders:this.#r}),agent:false,rejectUnauthorized:!this.#t.page.context.browser.settings.fetch.disableStrictSSL,key:this.request[Be].protocol==="https:"?qp.key:void 0,cert:this.request[Be].protocol==="https:"?qp.cert:void 0}),this.nodeRequest.on("error",this.onError.bind(this)),this.nodeRequest.on("socket",this.onSocket.bind(this)),this.nodeRequest.on("response",this.onResponse.bind(this)),this.request.body===null?this.nodeRequest.end():Ol__default.default.pipeline(this.request.body,this.nodeRequest,i=>{i&&this.onError(i);});})}onSocket(t){let e=()=>{if(this.isChunkedTransfer&&!this.isProperLastChunkReceived){let n=new this.#e.DOMException("Premature close.",C.networkError);this.request[dr]=n,this.response&&(this.response[dr]=n,this.response.body&&!this.response.body.locked&&this.response.body.cancel(n));}},r=n=>{this.isProperLastChunkReceived=buffer.Buffer.compare(n.slice(-5),ox)===0,!this.isProperLastChunkReceived&&this.previousChunk&&(this.isProperLastChunkReceived=buffer.Buffer.compare(this.previousChunk.slice(-3),ox.slice(0,3))===0&&buffer.Buffer.compare(n.slice(-2),ox.slice(3))===0),this.previousChunk=n;};t.prependListener("close",e),t.on("data",r),this.nodeRequest.on("close",()=>{t.removeListener("close",e),t.removeListener("data",r);});}onSignalAbort(t){this.finalizeRequest(),this.abort(t.target?.reason);}onError(t){this.finalizeRequest(),this.#t.page.console.error(t),this.reject(new this.#e.DOMException(`Failed to execute "fetch()" on "Window" with URL "${this.request.url}": ${t.message}`,C.networkError));}onAsyncTaskManagerAbort(){let t=new this.#e.DOMException("The operation was aborted.",C.abortError);this.request[Ie]=true,this.request[dr]=t,this.response&&(this.response[Ie]=true,this.response[dr]=t),this.listeners.onSignalAbort&&this.request.signal.removeEventListener("abort",this.listeners.onSignalAbort),this.nodeRequest&&!this.nodeRequest.destroyed&&this.nodeRequest.destroy(t),this.nodeResponse&&!this.nodeResponse.destroyed&&this.nodeResponse.destroy(t),this.response&&this.response.body&&(this.response.body.locked||this.response.body.cancel(t));}onResponse(t){if(this.isChunkedTransfer=t.headers["transfer-encoding"]==="chunked"&&!t.headers["content-length"],this.nodeRequest.setTimeout(0),this.responseHeaders=Sc.parseResponseHeaders({browserFrame:this.#t,requestURL:this.request[Be],rawHeaders:t.rawHeaders}),this.handleRedirectResponse(t,this.responseHeaders))return;t.once("end",()=>this.request.signal.removeEventListener("abort",this.listeners.onSignalAbort));let e=Ol__default.default.pipeline(t,new Ol__default.default.PassThrough,i=>{}),r={status:t.statusCode,statusText:t.statusMessage,headers:this.responseHeaders},n=this.responseHeaders.get("Content-Encoding");if(this.request.method==="HEAD"||n===null||t.statusCode===204||t.statusCode===304){this.response=new this.#e.Response(gr.nodeToWebStream(e),r),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response);return}if(n==="gzip"||n==="x-gzip"){let i={flush:Qp__default.default.constants.Z_SYNC_FLUSH,finishFlush:Qp__default.default.constants.Z_SYNC_FLUSH};e=Ol__default.default.pipeline(e,Qp__default.default.createGunzip(i),s=>{}),this.response=new this.#e.Response(gr.nodeToWebStream(e),r),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response);return}if(n==="deflate"||n==="x-deflate"){let i=Ol__default.default.pipeline(t,new Ol__default.default.PassThrough,s=>{});i.on("data",s=>{(s[0]&15)===8?e=Ol__default.default.pipeline(e,Qp__default.default.createInflate(),l=>{}):e=Ol__default.default.pipeline(e,Qp__default.default.createInflateRaw(),l=>{}),this.response=new this.#e.Response(gr.nodeToWebStream(e),r),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response);}),i.on("end",()=>{this.response||(this.response=new this.#e.Response(gr.nodeToWebStream(e),r),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response));});return}if(n==="br"){e=Ol__default.default.pipeline(e,Qp__default.default.createBrotliDecompress(),i=>{}),this.response=new this.#e.Response(gr.nodeToWebStream(e),r),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response);return}this.response=new this.#e.Response(gr.nodeToWebStream(e),r),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response);}handleRedirectResponse(t,e){if(!Dl.isRedirect(t.statusCode))return false;switch(this.request.redirect){case "error":return this.finalizeRequest(),this.reject(new this.#e.DOMException(`URI requested responds with a redirect, redirect mode is set to "error": ${this.request.url}`,C.abortError)),true;case "manual":return false;case "follow":let r=e.get("Location"),n=t.statusCode===303||(t.statusCode===301||t.statusCode===302)&&this.request.method==="POST",i=null;if(r!==null)try{i=new url.URL(r,this.request.url);}catch{return this.finalizeRequest(),this.reject(new this.#e.DOMException(`URI requested responds with an invalid redirect URL: ${r}`,C.uriMismatchError)),true}if(i===null)return false;if(Dl.isMaxRedirectsReached(this.redirectCount))return this.finalizeRequest(),this.reject(new this.#e.DOMException(`Maximum redirects reached at: ${this.request.url}`,C.networkError)),true;let s=new this.#e.Headers(this.request.headers),l={method:this.request.method,signal:this.request.signal,referrer:this.request.referrer,referrerPolicy:this.request.referrerPolicy,credentials:this.request.credentials,headers:s,body:this.request[Ei]};if((this.request.credentials==="omit"||this.request.credentials==="same-origin"&&In.isCORS(this.#e.location.href,i))&&(s.delete("cookie"),s.delete("cookie2")),this.request.signal[Ie])return this.abort(this.request.signal[gn]),true;n&&(l.method="GET",l.body=void 0,s.delete("Content-Length"),s.delete("Content-Type"));let a=Hi.getReferrerPolicyFromHeader(s);a&&(l.referrerPolicy=a);let u=new o({browserFrame:this.#t,window:this.#e,url:i,init:l,redirectCount:this.redirectCount+1,disableSameOriginPolicy:this.disableSameOriginPolicy,contentType:n?null:this.request[_e]});return this.finalizeRequest(),u.send().then(c=>this.resolve(c)).catch(c=>this.reject(c)),true;default:return this.finalizeRequest(),this.reject(new this.#e.DOMException(`Redirect option '${this.request.redirect}' is not a valid value of TRequestRedirect`)),true}}finalizeRequest(){this.request.signal.removeEventListener("abort",this.listeners.onSignalAbort),this.nodeRequest?.destroy();}abort(t){let e=new this.#e.DOMException("The operation was aborted."+(t?" "+t.toString():""),C.abortError);this.request[Ie]=true,this.request[dr]=e,this.response&&(this.response[Ie]=true,this.response[dr]=e),this.nodeRequest&&!this.nodeRequest.destroyed&&this.nodeRequest.destroy(e),this.nodeResponse&&!this.nodeResponse.destroyed&&this.nodeResponse.destroy(e),this.response&&this.response.body&&(this.response.body.locked||this.response.body.cancel(e)),this.reject&&this.reject(t!==void 0?t:e);}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var nx;(function(o){o.auto="auto",o.manual="manual";})(nx||(nx={}));var ui=nx;chunkBUNLC3II_cjs.h();var Mo=class{static getRelativeURL(t,e){if(e=e?String(e):"about:blank",e.startsWith("about:")||e.startsWith("javascript:"))return new url.URL(e);try{return new url.URL(e,t.window[No].href)}catch{return new url.URL("about:blank")}}};var Pc=class{#t;#e;constructor(t,e){if(!t)throw new TypeError("Illegal constructor");this.#t=t,this.#e=e;}get length(){return this.#t?.[er].items.length||0}get state(){return this.#t?.[er].currentItem.state||null}get scrollRestoration(){return this.#t?.[er].currentItem.scrollRestoration||ui.auto}set scrollRestoration(t){switch(t){case ui.auto:case ui.manual:let e=this.#t?.[er].currentItem;e&&(e.scrollRestoration=t);break}}back(){this.#e.closed||this.#t?.goBack();}forward(){this.#e.closed||this.#t?.goForward();}go(t){this.#e.closed||this.#t?.goSteps(t);}pushState(t,e,r){if(!this.#t||this.#e.closed)return;let n=this.#t?.[er];if(!n)return;if(arguments.length<2)throw new this.#e.TypeError(`Failed to execute 'pushState' on 'History': 2 arguments required, but only ${arguments.length} present.`);let i=this.#e[No],s=r?Mo.getRelativeURL(this.#t,r):i;if(r&&s.origin!==i.origin)throw new this.#e.DOMException(`Failed to execute 'pushState' on 'History': A history state object with URL '${r.toString()}' cannot be created in a document with origin '${i.origin}' and URL '${i.href}'.`,C.securityError);n.currentItem.popState=true,n.push({title:this.#e.document.title,href:s.href,state:t,popState:true,scrollRestoration:n.currentItem.scrollRestoration,method:n.currentItem.method||"GET",formData:n.currentItem.formData||null}),i[ao](this.#t,n.currentItem.href);}replaceState(t,e,r){if(!this.#t||this.#e.closed)return;let n=this.#t?.[er];if(!n)return;if(arguments.length<2)throw new this.#e.TypeError(`Failed to execute 'pushState' on 'History': 2 arguments required, but only ${arguments.length} present.`);let i=this.#e[No],s=r?Mo.getRelativeURL(this.#t,r):i;if(r&&s.origin!==i.origin)throw new this.#e.DOMException(`Failed to execute 'pushState' on 'History': A history state object with URL '${r.toString()}' cannot be created in a document with origin '${i.origin}' and URL '${i.href}'.`,C.securityError);n.replace({title:this.#e.document.title,href:s.href,state:t,popState:n.currentItem.popState,scrollRestoration:n.currentItem.scrollRestoration,method:n.currentItem.method,formData:n.currentItem.formData}),r&&i[ao](this.#t,n.currentItem.href);}[Mt](){this.#t=null;}};chunkBUNLC3II_cjs.h();var Jp=class{#t;#e;constructor(t,e){this.#t=t,this.#e=e||{};}observe(t){}disconnect(){}unobserve(t){}takeRecords(){return []}};chunkBUNLC3II_cjs.h();var Xp=class{boundingClientRect=null;intersectionRatio=0;intersectionRect=null;isIntersecting=false;rootBounds=null;target=null;time=0;constructor(t){Object.assign(this,t);}};chunkBUNLC3II_cjs.h();var Ac=class{[Symbol.toStringTag]="Location";#t;#e;#r=null;#o=[];constructor(t,e){if(!t)throw new TypeError("Illegal constructor");this.#t=t,this.#e=new URL(e);}get hash(){return this.#e.hash}set hash(t){let e=this.#t?.[er];if(!e||!this.#t)return;let r=new URL(this.#e.href),n=this.#e.hash;r.hash=t,r.hash!==n&&(e.currentItem.popState=true,e.push({title:"",href:r.href,state:e.currentItem.state,popState:true,scrollRestoration:ui.manual,method:e.currentItem.method,formData:e.currentItem.formData||null}),this[ao](this.#t,r.href));}get host(){return this.#e.host}set host(t){let e=new URL(this.#e.href);e.host=t,this.href=e.href;}get hostname(){return this.#e.hostname}set hostname(t){let e=new URL(this.#e.href);e.hostname=t,this.href=e.href;}get href(){return this.#e.href}set href(t){this.#t&&this.#t.goto(t).catch(e=>{if(this.#t?.page?.console)this.#t.page.console.error(e);else throw e});}get origin(){return this.#e.origin}get pathname(){return this.#e.pathname}set pathname(t){let e=new URL(this.#e.href);e.pathname=t,this.href=e.href;}get port(){return this.#e.port}set port(t){let e=new URL(this.#e.href);e.port=t,this.href=e.href;}get protocol(){return this.#e.protocol}set protocol(t){let e=new URL(this.#e.href);e.protocol=t,this.href=e.href;}get search(){return this.#e.search}set search(t){let e=new URL(this.#e.href);e.search=t,this.href=e.href;}replace(t){this.href=String(t);}assign(t){this.href=String(t);}reload(){this.#t&&this.#t.goto(this.href).catch(t=>{if(this.#t?.page.console)this.#t.page.console.error(t);else throw t});}[ao](t,e){if(!this.#t)return;if(this.#t!==t)throw new Error("Failed to set URL. Browser frame mismatch.");let r=this.#e.href,n=this.#e.hash;if(this.#e.href=e,this.#e.hash!==n){let i=this.#e.href;this.#o.push(new Za("hashchange",{oldURL:r,newURL:i})),this.#t?.window?.document?.[co](),this.#r&&this.#t.window?.clearTimeout(this.#r),this.#r=this.#t.window?.setTimeout(()=>{let s=this.#o;this.#o=[];for(let l of s)this.#t?.window?.dispatchEvent(l);});}}[Mt](){this.#r&&this.#t?.window?.clearTimeout(this.#r),this.#t=null;}toString(){return this.#e.toString()}};chunkBUNLC3II_cjs.h();var sn=class{type;target;addedNodes;removedNodes;previousSibling;nextSibling;attributeName;attributeNamespace;oldValue;constructor(t){this.type=t.type,this.target=t.target,this.addedNodes=t.addedNodes||[],this.removedNodes=t.removedNodes||[],this.previousSibling=t.previousSibling||null,this.nextSibling=t.nextSibling||null,this.attributeName=t.attributeName||null,this.attributeNamespace=t.attributeNamespace||null,this.oldValue=t.oldValue||null;}};chunkBUNLC3II_cjs.h();var hf=class{description;enabledPlugin;suffixes;type;constructor(t,e,r,n){this.description=t,this.enabledPlugin=e,this.suffixes=r,this.type=n;}toString(){return "[object MimeType]"}};chunkBUNLC3II_cjs.h();var wc=class{length;constructor(t){for(let e=0,r=t.length;e<r;e++)this[e]=t[e],this[t[e].type]=t[e];this.length=t.length;}item(t){return this[t]||null}namedItem(t){return this[t]||null}toString(){return "[object MimeTypeArray]"}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var xc=class{length;constructor(t){for(let e=0,r=t.length;e<r;e++)this[e]=t[e],this[t[e].name]=t[e];this.length=t.length;}item(t){return this[t]||null}namedItem(t){return this[t]||null}refresh(){}toString(){return "[object PluginArray]"}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var sx;(function(o){o.geolocation="geolocation",o.notifications="notifications",o.push="push",o.midi="midi",o.camera="camera",o.microphone="microphone",o.backgroundFetch="background-fetch",o.backgroundSync="background-sync",o.persistentStorage="persistent-storage",o.ambientLightSensor="ambient-light-sensor",o.accelerometer="accelerometer",o.gyroscope="gyroscope",o.magnetometer="magnetometer",o.screenWakeLock="screen-wake-lock",o.nfc="nfc",o.displayCapture="display-capture",o.accessibilityEvents="accessibility-events",o.clipboardRead="clipboard-read",o.clipboardWrite="clipboard-write",o.paymentHandler="payment-handler",o.idleDetection="idle-detection",o.periodicBackgroundSync="periodic-background-sync",o.systemWakeLock="system-wake-lock",o.storageAccess="storage-access",o.windowManagement="window-management",o.windowPlacement="window-placement",o.localFonts="local-fonts",o.topLevelStorageAccess="top-level-storage-access";})(sx||(sx={}));var dk=sx;var iu=class{#t={};#e;constructor(t){t?.document||new TypeError("Invalid constructor"),this.#e=t;}async query(t){let e=t?.name;if(e&&this.#t[e])return this.#t[e];if(!Object.values(dk).includes(e))throw new Error(`Failed to execute 'query' on 'Permissions': Failed to read the 'name' property from 'PermissionDescriptor': The provided value '${e}' is not a valid enum value of type PermissionName.`);return this.#t[e]=new this.#e.PermissionStatus("granted"),this.#t[e]}};var Zp=class{#t;#e;#r;constructor(t){if(!t)throw new TypeError("Invalid constructor");this.#t=t,this.#e=new Ha(t),this.#r=new iu(t);}get cookieEnabled(){return true}get credentials(){return null}get geolocation(){return null}get language(){return "en-US"}get languages(){return ["en-US","en"]}get locks(){return null}get maxTouchPoints(){return new et(this.#t).getSettings()?.navigator.maxTouchPoints||0}get hardwareConcurrency(){return 8}get appCodeName(){return "Mozilla"}get appName(){return "Netscape"}get appVersion(){let t=this.userAgent,e=t.indexOf("/");return e>-1?t.substring(e+1):""}get platform(){let t=this.userAgent,e=t.indexOf("("),r=t.indexOf(")");return e>-1&&r>-1?t.substring(e+1,r):""}get product(){return "Gecko"}get productSub(){return "20100101"}get vendor(){return ""}get vendorSub(){return ""}get userAgent(){return new et(this.#t).getSettings()?.navigator.userAgent||""}get onLine(){return true}get permissions(){return this.#r}get clipboard(){return this.#e}get webdriver(){return true}get doNotTrack(){return "unspecified"}get mimeTypes(){return new wc([])}get plugins(){return new xc([])}sendBeacon(t,e){return this.#t.fetch(t,{method:"POST",body:e}),true}toString(){return "[object Navigator]"}};chunkBUNLC3II_cjs.h();var yf=class{length=0;description;filename;name;constructor(t,e,r,n){this.description=e,this.filename=r,this.name=n;for(let i=0,s=t.length;i<s;i++)this[i]=t[i],this[t[i].type]=t[i];this.length=t.length;}item(t){return this[t]||null}namedItem(t){return this[t]||null}toString(){return "[object Plugin]"}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var lx;(function(o){o[o.disconnect=1]="disconnect",o[o.preceding=2]="preceding",o[o.following=4]="following",o[o.contains=8]="contains",o[o.containedBy=16]="containedBy",o[o.implementationSpecific=32]="implementationSpecific";})(lx||(lx={}));var On=lx;chunkBUNLC3II_cjs.h();var kt=class o{static isTextNode(t){return t?.[V]===L.textNode}static isInclusiveAncestor(t,e,r=false){if(t===null||e===null)return false;if(t===e)return true;if(!t[K].length||r&&e[ct]!==t[ct])return false;if(r&&t===e[k]&&e[ct])return true;let n=e[$];for(;n;){if(t===n)return true;if(t[$]===n[$])return false;n=n[$]?n[$]:r&&n.host?n.host:null;}return false}static isFollowing(t,e){if(t===e)return false;let r=e;for(;r;)if(r=this.following(r),r===t)return true;return false}static getNodeLength(t){switch(t[V]){case L.documentTypeNode:return 0;case L.textNode:case L.processingInstructionNode:case L.commentNode:return t.data.length;default:return t[K].length}}static following(t,e){let r=t.firstChild;if(r)return r;let n=t;for(;n;){if(n===e)return null;let i=n.nextSibling;if(i)return i;n=n[$];}return null}static nextDescendantNode(t){for(;t&&!t.nextSibling;)t=t[$];return t?t.nextSibling:null}static attributeListsEqual(t,e){let r=Array.from(t[Tt][J].values()),n=Array.from(e[Tt][J].values());for(let i of r){let s=false;for(let l of n)if(i[st]===l[st]&&i.localName===l.localName&&i[ot]===l[ot]){s=true;break}if(!s)return false}return true}static isEqualNode(t,e){if(t[V]!==e[V])return false;switch(t[V]){case L.documentTypeNode:let r=t,n=e;if(r.name!==n.name||r.publicId!==n.publicId||r.systemId!==n.systemId)return false;break;case L.elementNode:let i=t,s=e;if(i[st]!==s[st]||i[$t]!==s[$t]||i[mt]!==s[mt]||i[Tt][J].size!==s[Tt][J].size)return false;break;case L.attributeNode:let l=t,a=e;if(l[st]!==a[st]||l.localName!==a.localName||l[ot]!==a[ot])return false;break;case L.processingInstructionNode:let u=t,c=e;if(u.target!==c.target||u.data!==c.data)return false;break;case L.textNode:case L.commentNode:let h=t,f=e;if(h.data!==f.data)return false;break}if(t[V]===L.elementNode&&!o.attributeListsEqual(t,e)||t[K].length!==e[K].length)return false;for(let r=0;r<t[K].length;r++){let n=t[K][r],i=e[K][r];if(!o.isEqualNode(n,i))return false}return true}};chunkBUNLC3II_cjs.h();var ax;(function(o){o.attributes="attributes",o.characterData="characterData",o.childList="childList";})(ax||(ax={}));var ci=ax;chunkBUNLC3II_cjs.h();var Qe=class{static ownerDocuments=[];static createNode(t,e,...r){return e.prototype[m]||this.ownerDocuments.push(t),new e(...r)}static pullOwnerDocument(){return this.ownerDocuments.pop()||null}};var xt=class o extends Dt{static ELEMENT_NODE=L.elementNode;static ATTRIBUTE_NODE=L.attributeNode;static TEXT_NODE=L.textNode;static CDATA_SECTION_NODE=L.cdataSectionNode;static COMMENT_NODE=L.commentNode;static DOCUMENT_NODE=L.documentNode;static DOCUMENT_TYPE_NODE=L.documentTypeNode;static DOCUMENT_FRAGMENT_NODE=L.documentFragmentNode;static PROCESSING_INSTRUCTION_NODE=L.processingInstructionNode;static DOCUMENT_POSITION_CONTAINED_BY=On.containedBy;static DOCUMENT_POSITION_CONTAINS=On.contains;static DOCUMENT_POSITION_DISCONNECTED=On.disconnect;static DOCUMENT_POSITION_FOLLOWING=On.following;static DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=On.implementationSpecific;static DOCUMENT_POSITION_PRECEDING=On.preceding;[ct]=false;[$]=null;[$e]=null;[Hr]=null;[wr]=null;[Jt]=null;[tr]=null;[Go]=[];[K]=[];[St]=[];[al]=null;[ii]=null;[_]={querySelector:new Map,querySelectorAll:new Map,matches:new Map,elementsByTagName:new Map,elementsByTagNameNS:new Map,elementByTagName:new Map,elementById:new Map,computedStyle:null};[ar]=[];constructor(){if(super(),this[m])this[k]=this[m].document;else {let t=Qe.pullOwnerDocument();if(!t)throw new TypeError("Illegal constructor");this[k]=t,this[m]=t[m];}}get[Symbol.toStringTag](){return this.constructor.name}get isConnected(){return this[ct]}get ownerDocument(){return this[k]}get parentNode(){return this[$]}get nodeType(){return this[V]}get childNodes(){return this[al]||(this[al]=new Mn(b,this[K])),this[al]}get textContent(){return ""}set textContent(t){}get nodeValue(){return null}set nodeValue(t){}get nodeName(){return ""}get previousSibling(){if(this[$]){let t=this[$][K],e=t.indexOf(this[Kt]||this);if(e>0)return t[e-1]}return null}get nextSibling(){if(this[$]){let t=this[$][K],e=t.indexOf(this[Kt]||this);if(e>-1&&e+1<t.length)return t[e+1]}return null}get firstChild(){let t=this[K];return t.length>0?t[0]:null}get lastChild(){let t=this[K];return t.length>0?t[t.length-1]:null}get parentElement(){let t=this[$];for(;t&&t[V]!==L.elementNode;)t=t[$];return t}get baseURI(){let t=this[k].querySelector("base");return t?t.href:this[m].location.href}hasChildNodes(){return this[K].length>0}contains(t){if(t===void 0)return false;let e=this[Kt]||this;return kt.isInclusiveAncestor(e,t)}getRootNode(t){if(this[ct])return this[$e]&&!t?.composed?this[$e]:this[k];let e=this;for(;e[$];)e=e[$];return e}cloneNode(t=false){return this[wt](t)}appendChild(t){if(arguments.length<1)throw new this[m].TypeError("Failed to execute 'appendChild' on 'Node': 1 argument required, but only 0 present");return this[Ot](t)}removeChild(t){if(arguments.length<1)throw new this[m].TypeError("Failed to execute 'removeChild' on 'Node': 1 argument required, but only 0 present");return this[Vr](t)}insertBefore(t,e){if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertBefore' on 'Node': 2 arguments required, but only ${arguments.length} present.`);return this[uo](t,e)}replaceChild(t,e){if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceChild' on 'Node': 2 arguments required, but only ${arguments.length} present.`);return this[xp](t,e)}[wt](t=false){let e=Qe.createNode(this[k],this.constructor);if(e[K].length){let r=e[K];for(;r.length;)e.removeChild(r[0]);}if(t)for(let r of this[K]){let n=r.cloneNode(true);n[$]=e,e[K].push(n),n[V]===L.elementNode&&e[St].push(n);}return e}[Ot](t,e=false){t[Kt]&&(t=t[Kt]);let r=this[Kt]||this;if(!e){if(t===r)throw new this[m].DOMException("Failed to execute 'appendChild' on 'Node': Not possible to append a node as a child of itself.");if(kt.isInclusiveAncestor(t,r,true))throw new this[m].DOMException("Failed to execute 'appendChild' on 'Node': The new node is a parent of the node to insert to.",C.domException)}if(t[V]===L.documentFragmentNode){let n=t[K];for(;n.length;)this.appendChild(n[0]);return t}t[$]&&t[$][Vr](t),t[$]=r,t[co](),this[K].push(t),t[V]===L.elementNode&&this[St].push(t),t[Vo]();for(let n of this[Go])n.options?.subtree&&n.callback.deref()&&t[ju](n);return this[ts](new sn({target:r,type:ci.childList,addedNodes:[t]})),t}[Vr](t){t[Kt]&&(t=t[Kt]);let e=this[K].indexOf(t);if(e===-1)throw new this[m].DOMException("Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.");let r=t.previousSibling,n=t.nextSibling;if(t[$]=null,t[co](),this[K].splice(e,1),t[V]===L.elementNode){let i=this[St].indexOf(t);i!==-1&&this[St].splice(i,1);}if(t[ii]){let i=t[ii][is].indexOf(t);i!==-1&&t[ii][is].splice(i,1),t[ii]=null;}t[Ji]();for(let i of this[Go])i.options?.subtree&&i.callback.deref()&&t[gp](i);return this[ts](new sn({target:this[Kt]||this,type:ci.childList,removedNodes:[t],previousSibling:r,nextSibling:n})),t}[uo](t,e,r=false){if(t[Kt]&&(t=t[Kt]),e&&e[Kt]&&(e=e[Kt]),t===e)return t;let n=this[Kt]||this;if(!r){if(t===n)throw new this[m].DOMException("Failed to execute 'insertBefore' on 'Node': Not possible to insert a node as a child of itself.");if(kt.isInclusiveAncestor(t,n,true))throw new this[m].DOMException("Failed to execute 'insertBefore' on 'Node': The new node is a parent of the node to insert to.",C.domException)}if(t[V]===L.documentFragmentNode){let l=t[K];for(;l.length>0;)this[uo](l[0],e,true);return t}if(!e)return this[Ot](t,true),t;let i=this[K];if(!i.includes(e))throw new this[m].DOMException("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.");t[$]&&t[$][Vr](t),t[$]=n,t[co]();let s=i.indexOf(e);if(t[V]===L.elementNode){let l=this[St];if(e[V]===L.elementNode)l.splice(l.indexOf(e),0,t);else {let a=false;for(let u=s,c=i.length;u<c;u++)if(i[u][V]===L.elementNode){l.splice(l.indexOf(i[u]),0,t),a=true;break}a||l.push(t);}}i.splice(s,0,t),t[Vo]();for(let l of this[Go])l.options?.subtree&&l.callback.deref()&&t[ju](l);return this[ts](new sn({target:n,type:ci.childList,addedNodes:[t]})),t}[xp](t,e){return this.insertBefore(t,e),this.removeChild(e),e}isEqualNode(t){return kt.isEqualNode(this,t)}toString(){return `[object ${this.constructor.name}]`}[ju](t){if(this[Go].push(t),t.options.subtree)for(let e of this[K])e[ju](t);}[gp](t){let e=this[Go].indexOf(t);if(e!==-1&&this[Go].splice(e,1),t.options.subtree)for(let r of this[K])r[gp](t);}[ts](t){this[co]();let e=this[Go];if(e.length)for(let r=0,n=e.length;r<n;r++){let i=e[r],s=i.callback.deref();if(s)switch(t.type){case ci.childList:i.options.childList&&s(t);break;case ci.attributes:i.options.attributes&&(!i.options.attributeFilter||i.options.attributeFilter.includes(t.attributeName))&&s(t);break;case ci.characterData:i.options?.characterData&&s(t);break}else e.splice(r,1),r--,n--;}}[co](){let t=this[_];if(t.querySelector.size){for(let n of t.querySelector.values())n.result&&(n.result=null);t.querySelector=new Map;}if(t.querySelectorAll.size){for(let n of t.querySelectorAll.values())n.result&&(n.result=null);t.querySelectorAll=new Map;}if(t.matches.size){for(let n of t.matches.values())n.result&&(n.result=null);t.matches=new Map;}if(t.elementsByTagName.size){for(let n of t.elementsByTagName.values())n.result&&(n.result=null);t.elementsByTagName=new Map;}if(t.elementsByTagNameNS.size){for(let n of t.elementsByTagNameNS.values())n.result&&(n.result=null);t.elementsByTagNameNS=new Map;}if(t.elementByTagName.size){for(let n of t.elementByTagName.values())n.result&&(n.result=null);t.elementByTagName=new Map;}if(t.elementById.size){for(let n of t.elementById.values())n.result&&(n.result=null);t.elementById=new Map;}let e=this[ar];if(e.length){for(let n of e)n.result=null;this[ar]=[];}let r=this[k];if(r&&r[ri].length){for(let n of r[ri])n.result=null;r[ri]=[];}}[Vo](){let t=this[$],e=t||this[Ta],r=false,n=false;if(!this[ct]&&e[ct]?(this[ct]=true,r=true):this[ct]&&!e[ct]&&(this[ct]=false,n=true),this[k]=e[k]||e,this[m]=e[m]||e[lo],t){this[V]!==L.documentFragmentNode&&(this[$e]=t[$e]);let s=this[it];t[Hr]&&s!=="STYLE"&&(this[Hr]=t[Hr]),t[wr]&&s!=="TEXTAREA"&&(this[wr]=t[wr]),t[Jt]&&s!=="FORM"&&(this[Jt]=t[Jt]),t[tr]&&s!=="SELECT"&&(this[tr]=t[tr]);}let i=this[K].slice();for(let s=0,l=i.length;s<l;s++)i[s][$]=this,i[s][Vo]();this[Le]&&this[Le][Vo](),r?this[Lr]():n&&this[Mr]();}[Ji](){this[V]!==L.documentFragmentNode&&(this[$e]=null);let t=this[it];t!=="STYLE"&&(this[Hr]=null),t!=="TEXTAREA"&&(this[wr]=null),t!=="FORM"&&(this[Jt]=null),t!=="SELECT"&&(this[tr]=null),this[ct]&&(this[ct]=false,this[Mr]());let e=this[K].slice();for(let r=0,n=e.length;r<n;r++)e[r][Vo]();this[Le]&&this[Le][Ji]();}[Lr](){this[Le]&&this[Le][Lr]();}[Mr](){this[k][Ze]===this&&(this[k][co](),this[k][Ze]=null),this[Le]&&this[Le][Mr]();}[Mt](){super[Mt](),this[ct]=false;for(let t=0,e=this[K].length;t<e;t++)this[K][t][Mt]();this[Go]=[],this[$]=null,this[$e]=null,this[Hr]=null,this[wr]=null,this[Jt]=null,this[tr]=null,this[Go]=[],this[K]=[],this[St]=[],this[al]=null,this[ii]=null,this[co]();}compareDocumentPosition(t){if(this===t)return 0;let e=t,r=this[Kt]||this,n=null,i=null;if(e[V]===L.attributeNode&&(n=e,e=n[Vt]),r[V]===L.attributeNode&&(i=r,r=i[Vt],n!==null&&e!==null&&r===e))for(let j of r[Tt][J].values()){if(kt.isEqualNode(j,n))return o.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|o.DOCUMENT_POSITION_PRECEDING;if(kt.isEqualNode(j,i))return o.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|o.DOCUMENT_POSITION_FOLLOWING}let s=[],l=r;for(;l;){if(l===e)return o.DOCUMENT_POSITION_CONTAINS|o.DOCUMENT_POSITION_PRECEDING;s.push(l),l=l[$];}let a=[],u=e;for(;u;){if(u===r)return o.DOCUMENT_POSITION_CONTAINED_BY|o.DOCUMENT_POSITION_FOLLOWING;a.push(u),u=u[$];}let c=(j,at)=>j[j.length-1-at],h=c(s,0);if(!h||h!==c(a,0))return o.DOCUMENT_POSITION_DISCONNECTED|o.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|o.DOCUMENT_POSITION_FOLLOWING;let f=0,d=Math.min(s.length,a.length);for(let j=0;j<d;++j){let at=c(s,j),X=c(a,j);if(at!==X)break;f=j;}let g=c(s,f),P=0,A=-1,v=-1,H=c(s,f+1),Q=c(a,f+1),U=j=>{for(let at of j){if(U(at[K]),at===H?A=P:at===Q&&(v=P),A!==-1&&v!==-1)break;P++;}};return U(g[K]),v<A?o.DOCUMENT_POSITION_PRECEDING:o.DOCUMENT_POSITION_FOLLOWING}normalize(){let t=this.firstChild;for(;t;){if(kt.isTextNode(t)){for(;kt.isTextNode(t.nextSibling);)t.data+=t.nextSibling.data,t.nextSibling.remove();if(!t.data.length){let e=t;t=t.nextSibling,e.remove();continue}}else t.normalize();t=t.nextSibling;}}isSameNode(t){return this===t}};xt.prototype.ELEMENT_NODE=L.elementNode;xt.prototype.ATTRIBUTE_NODE=L.attributeNode;xt.prototype.TEXT_NODE=L.textNode;xt.prototype.CDATA_SECTION_NODE=L.cdataSectionNode;xt.prototype.COMMENT_NODE=L.commentNode;xt.prototype.DOCUMENT_NODE=L.documentNode;xt.prototype.DOCUMENT_TYPE_NODE=L.documentTypeNode;xt.prototype.DOCUMENT_FRAGMENT_NODE=L.documentFragmentNode;xt.prototype.PROCESSING_INSTRUCTION_NODE=L.processingInstructionNode;xt.prototype.DOCUMENT_POSITION_CONTAINED_BY=On.containedBy;xt.prototype.DOCUMENT_POSITION_CONTAINS=On.contains;xt.prototype.DOCUMENT_POSITION_DISCONNECTED=On.disconnect;xt.prototype.DOCUMENT_POSITION_FOLLOWING=On.following;xt.prototype.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=On.implementationSpecific;xt.prototype.DOCUMENT_POSITION_PRECEDING=On.preceding;var tm=class extends xt{[V]=L.attributeNode;[st]=null;[ut]=null;[mt]=null;[$t]=null;[ot]=null;[vy]=true;[Vt]=null;get specified(){return this[vy]}get ownerElement(){return this[Vt]}get value(){return this[ot]}set value(t){this[ot]=t;}get name(){return this[ut]||""}get localName(){return this[mt]||""}get prefix(){return this[$t]}get textContent(){return this[ot]||""}get namespaceURI(){return this[st]}[wt](t=false){let e=super[wt](t);return e[st]=this[st],e[ut]=this[ut],e[mt]=this[mt],e[$t]=this[$t],e[ot]=this[ot],e[vy]=this[vy],e}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Fl=class{static appendData(t,e){t.data+=e;}static deleteData(t,e,r){t.data=t.data.substring(0,e)+t.data.substring(e+r);}static insertData(t,e,r){t.data=t.data.substring(0,e)+r+t.data.substring(e);}static replaceData(t,e,r,n){t.data=t.data.substring(0,e)+n+t.data.substring(e+r);}static substringData(t,e,r){return t.data.substring(e,e+r)}};chunkBUNLC3II_cjs.h();var Bl=class{static previousElementSibling(t){let e=t.previousSibling;for(;e&&e[V]!==L.elementNode;)e=e.previousSibling;return e}static nextElementSibling(t){let e=t.nextSibling;for(;e&&e[V]!==L.elementNode;)e=e.nextSibling;return e}};chunkBUNLC3II_cjs.h();var Fn=class{static remove(t){t[$]&&t[$].removeChild(t);}static replaceWith(t,...e){let r=t[$];if(r){for(let n of e)n instanceof xt?r.insertBefore(n,t):r.insertBefore(r[k].createTextNode(String(n)),t);r.removeChild(t);}}static before(t,...e){let r=t[$];if(r)for(let n of e)n instanceof xt?r.insertBefore(n,t):r.insertBefore(r[k].createTextNode(String(n)),t);}static after(t,...e){let r=t[$];if(!r)return;let n=t.nextSibling;for(let i of e){let s=i instanceof xt?i:r[k].createTextNode(String(i));n?r.insertBefore(s,n):r.appendChild(s);}}};var Wi=class extends xt{[_t]="";constructor(t){super(),this[_t]=t!==void 0?String(t):"";}get length(){return this[_t].length}get data(){return this[_t]}set data(t){let e=this[_t];this[_t]=String(t),this[ts](new sn({target:this,type:ci.characterData,oldValue:e}));}get textContent(){return this[_t]}set textContent(t){this.data=t;}get nodeValue(){return this[_t]}set nodeValue(t){this.textContent=t;}get previousElementSibling(){return Bl.previousElementSibling(this)}get nextElementSibling(){return Bl.nextElementSibling(this)}appendData(t){Fl.appendData(this,t);}deleteData(t,e){Fl.deleteData(this,t,e);}insertData(t,e){Fl.insertData(this,t,e);}replaceData(t,e,r){Fl.replaceData(this,t,e,r);}substringData(t,e){return Fl.substringData(this,t,e)}remove(){Fn.remove(this);}replaceWith(...t){Fn.replaceWith(this,...t);}before(...t){Fn.before(this,...t);}after(...t){Fn.after(this,...t);}[wt](t=false){let e=super[wt](t);return e[_t]=this[_t],e}};chunkBUNLC3II_cjs.h();var Ds=class extends xt{[V]=L.documentTypeNode;[ut]="";[dl]="";[fl]="";get name(){return this[ut]}get publicId(){return this[dl]}get systemId(){return this[fl]}get nodeName(){return this.name}toString(){return "[object DocumentType]"}[wt](t=false){let e=super[wt](t);return e[ut]=this[ut],e[dl]=this[dl],e[fl]=this[fl],e}};chunkBUNLC3II_cjs.h();var ux;(function(o){o.loading="loading",o.interactive="interactive",o.complete="complete";})(ux||(ux={}));var RS=ux;chunkBUNLC3II_cjs.h();var df=class{#t;constructor(t){this.#t=new Oi(t);}waitUntilComplete(){return this.#t.waitUntilComplete()}startTask(){return this.#t.startTask()}endTask(t){this.#t.endTask(t);}destroy(){return this.#t.destroy()}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var su=class o{[R]=0;[D]=0;[B]=0;[F]=0;constructor(t,e,r,n){this[R]=t!=null?Number(t):0,this[D]=e!=null?Number(e):0,this[B]=r!=null?Number(r):0,this[F]=n!=null?Number(n):0;}get x(){return this[R]}get y(){return this[D]}get width(){return this[B]}get height(){return this[F]}get top(){return Math.min(this[D],this[D]+this[F])}get right(){return Math.max(this[R],this[R]+this[B])}get bottom(){return Math.max(this[D],this[D]+this[F])}get left(){return Math.min(this[R],this[R]+this[B])}toJSON(){return {x:this.x,y:this.y,width:this.width,height:this.height,top:this.top,right:this.right,bottom:this.bottom,left:this.left}}static fromRect(t){return new o(t.x,t.y,t.width,t.height)}};var pi=class o extends su{set x(t){this[R]=t;}get x(){return this[R]}set y(t){this[D]=t;}get y(){return this[D]}set width(t){this[B]=t;}get width(){return this[B]}set height(t){this[F]=t;}get height(){return this[F]}static fromRect(t){return new o(t.x,t.y,t.width,t.height)}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var HD=/[\t\f\n\r ]+/,bo=class o{[Vt];[gl];[_]={items:[],attributeValue:""};[ES];[Kt];constructor(t,e,r,n){if(t!==b)throw new TypeError("Illegal constructor");this[Vt]=e,this[gl]=r,this[ES]=n||[];let i=new Re(this,[o]),s=new Proxy(this,{get:(l,a)=>{if(a==="length")return l[Jr]().length;if(a in l||typeof a=="symbol")return i.bind(a),l[a];let u=Number(a);if(!isNaN(u))return l[Jr]()[u]},set(l,a,u){if(i.bind(a),typeof a=="symbol")return l[a]=u,true;let c=Number(a);return isNaN(c)&&(l[a]=u),true},deleteProperty(l,a){if(typeof a=="symbol")return delete l[a],true;let u=Number(a);return isNaN(u)&&delete l[a],true},ownKeys(l){return Object.keys(l[Jr]())},has(l,a){if(a in l)return true;if(typeof a=="symbol")return false;let u=Number(a);return !isNaN(u)&&u>=0&&u<l[Jr]().length},defineProperty(l,a,u){return i.preventBinding(a),a in l?(Object.defineProperty(l,a,u),true):false},getOwnPropertyDescriptor(l,a){if(a in l||typeof a=="symbol")return;let u=Number(a),c=l[Jr]();if(!isNaN(u)&&c[u])return {value:c[u],writable:false,enumerable:true,configurable:true}}});return this[Kt]=s,s}get length(){return this[Jr]().length}set value(t){this[Vt].setAttribute(this[gl],t);}get value(){return this[Vt].getAttribute(this[gl])||""}[Symbol.iterator](){return this[Jr]().values()}item(t){let e=this[Jr]();return typeof t=="number"||(t=Number(t),t=isNaN(t)?0:t),e[t]?e[t]:null}replace(t,e){let r=this[Jr]().slice(),n=r.indexOf(t);return n===-1?false:(r[n]=e,this[Vt].setAttribute(this[gl],r.join(" ")),true)}supports(t){return this[ES].includes(t)}values(){return this[Jr]().values()}entries(){return this[Jr]().entries()}forEach(t,e){let r=e??this[Vt][m],n=this[Jr](),i=this[Kt]??this;for(let s=0,l=n.length;s<l;s++)t.call(r,n[s],s,i);}keys(){return this[Jr]().keys()}add(...t){let e=this[Jr]().slice(),r=new Set(e);for(let n of t)r.has(n)||(r.add(n),e.push(n));this[Vt].setAttribute(this[gl],e.join(" "));}remove(...t){let e=this[Jr](),r=new Set(t),n=e.filter(i=>!r.has(i));this[Vt].setAttribute(this[gl],n.join(" "));}contains(t){return this[Jr]().includes(t)}toggle(t,e){let r;return e!==void 0?r=e:r=!this.contains(t),r?(this.add(t),true):(this.remove(t),false)}[Jr](){let t=this[Vt].getAttribute(this[gl])??"",e=this[_];if(e.attributeValue===t)return e.items;let r=[],n=t.trim();if(n)for(let i of n.split(HD))r.includes(i)||r.push(i);return e.attributeValue=t,e.items=r,r}toString(){return this.value||""}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Oe=class o{[Qu];constructor(t,e){if(t!==b)throw new TypeError("Illegal constructor");this[Qu]=e;let r=new Re(this,this.constructor!==o?[this.constructor,o]:[o]);return new Proxy(this,{get:(n,i)=>{if(i==="length")return e().length;if(i in n||typeof i=="symbol")return r.bind(i),n[i];let s=Number(i);return isNaN(s)?n.namedItem(i)||void 0:e()[s]},set(n,i,s){if(r.bind(i),typeof i=="symbol")return n[i]=s,true;let l=Number(i);return isNaN(l)&&(n[i]=s),true},deleteProperty(n,i){if(typeof i=="symbol")return delete n[i],true;let s=Number(i);return isNaN(s)&&delete n[i],true},ownKeys(){let n=[],i=e();for(let s=0;s<i.length;s++){let l=i[s],a=l.getAttribute("id")||l.getAttribute("name");n.push(String(s)),a&&n.push(a);}return n},has(n,i){if(i in n)return true;let s=e(),l=Number(i);if(!isNaN(l)&&l>=0&&l<s.length)return true;i=String(i);for(let a=0;a<s.length;a++){let u=s[a],c=u.getAttribute("id")||u.getAttribute("name");if(c&&c===i)return true}return false},defineProperty(n,i,s){return r.preventBinding(i),i in n?(Object.defineProperty(n,i,s),true):false},getOwnPropertyDescriptor(n,i){if(i in n||typeof i=="symbol")return;let s=e(),l=Number(i);if(!isNaN(l)&&l>=0&&l<s.length)return {value:s[l],writable:false,enumerable:true,configurable:true};for(let a=0;a<s.length;a++){let u=s[a],c=u.getAttribute("id")||u.getAttribute("name");if(c&&c===i)return {value:u,writable:false,enumerable:true,configurable:true}}}})}get length(){return this[Qu]().length}get[Symbol.toStringTag](){return this.constructor.name}toLocaleString(){return `[object ${this.constructor.name}]`}toString(){return `[object ${this.constructor.name}]`}item(t){let e=this[Qu]();return t>=0&&e[t]?e[t]:null}[Symbol.iterator](){return this[Qu]()[Symbol.iterator]()}namedItem(t){let e=this[Qu]();t=String(t);for(let r of e)if(r.getAttribute("id")===t||r.getAttribute("name")===t)return r;return null}};var de=class{static append(t,...e){for(let r of e)r instanceof xt?t.appendChild(r):t.appendChild(t[k].createTextNode(String(r)));}static prepend(t,...e){let r=t.firstChild;for(let n of e)n instanceof xt?t.insertBefore(n,r):t.insertBefore(t[k].createTextNode(String(n)),r);}static replaceChildren(t,...e){let r=t[K];for(;r.length;)t.removeChild(r[0]);this.append(t,...e);}static getElementsByClassName(t,e){return new Oe(b,()=>dt.querySelectorAll(t,`.${e.replace(/\s+/gm,".")}`)[J])}static getElementsByTagName(t,e){let r=e.toUpperCase(),n=e==="*",i=(l,a)=>{let u=[];for(let c of l[St]){(n||c[it].toUpperCase()===r)&&u.push(c),c[ar].push(a);for(let h of i(c,a))u.push(h);}return u},s=()=>{let l=t[_].elementsByTagName,a=l.get(e);if(a?.result){let h=a.result.deref();if(h)return h}let u={result:null},c=i(t,u);return u.result=new WeakRef(c),l.set(e,u),c};return new Oe(b,s)}static getElementsByTagNameNS(t,e,r){let n=e===Xt.html&&t[k][_e]==="text/html"?r.toUpperCase():r,i=r==="*",s=(a,u)=>{let c=[];for(let h of a[St]){(i||h[it]===n)&&h[st]===e&&c.push(h),h[ar].push(u);for(let f of s(h,u))c.push(f);}return c},l=()=>{let a=t[_].elementsByTagNameNS,u=a.get(r);if(u?.result){let f=u.result.deref();if(f)return f}let c={result:null},h=s(t,c);return c.result=new WeakRef(h),a.set(r,c),h};return new Oe(b,l)}static getElementByTagName(t,e){let r=e.toUpperCase(),n=(u,c)=>{for(let h of u[St]){if(h[ar].push(c),h[it]===r)return h;let f=n(h,c);if(f)return f}return null},i=t[_].elementByTagName,s=i.get(e);if(s?.result){let u=s.result.deref();if(u)return u}let l={result:null},a=n(t,l);return l.result=a?new WeakRef(a):{deref:()=>null},i.set(e,l),a}static getElementById(t,e){if(e=String(e),t[V]===xt.DOCUMENT_NODE){let a=t[Li].get(e);return a&&a.elements.length>0?a.elements[0]:null}let r=(a,u)=>{for(let c of a[St]){if(c[ar].push(u),c.getAttribute("id")===e)return c;let h=r(c,u);if(h)return h}return null},n=t[_].elementById,i=n.get(e);if(i?.result){let a=i.result.deref();if(a)return a}let s={result:null},l=r(t,s);return s.result=l?new WeakRef(l):{deref:()=>null},n.set(e,s),l}};chunkBUNLC3II_cjs.h();var Ec=class extends Array{constructor(t){if(super(),t!==1&&t!==b)throw new TypeError("Illegal constructor")}item(t){return this[t]??null}};chunkBUNLC3II_cjs.h();var Os=class{[Ni]=new Map;[To]=new Map;[J]=new Map;constructor(t){this[Vt]=t;}get length(){return this[J].size}get[Symbol.toStringTag](){return "NamedNodeMap"}toString(){return "[object NamedNodeMap]"}[Symbol.iterator](){return this[J].values()}item(t){let e=Array.from(this[J].values());return t>=0&&e[t]?e[t]:null}getNamedItem(t){return t=String(t),this[Vt][st]===Xt.html&&this[Vt][k][_e]==="text/html"?this[To].get(to.asciiLowerCase(t))?.[0]||null:this[To].get(t)?.[0]||null}getNamedItemNS(t,e){let r=this[Ni].get(`${t||""}:${e}`);return r&&(!r[$t]||r[st])?r:null}setNamedItem(t){return this[oi](t)}setNamedItemNS(t){return this[oi](t)}removeNamedItem(t){let e=this.getNamedItem(t);if(!e)throw new this[Vt][m].DOMException(`Failed to execute 'removeNamedItem' on 'NamedNodeMap': No item with name '${t}' was found.`,C.notFoundError);return this[bl](e),e}removeNamedItemNS(t,e){let r=this.getNamedItemNS(t,e);if(!r)throw new this[Vt][m].DOMException(`Failed to execute 'removeNamedItemNS' on 'NamedNodeMap': No item with name '${e}' in namespace '${t}' was found.`,C.notFoundError);return this[bl](r),r}[oi](t,e=false){if(t[Vt]!==null&&t[Vt]!==this[Vt])throw new this[Vt][m].DOMException("The attribute is in use.",C.inUseAttributeError);t[Vt]=this[Vt];let r=this.getNamedItemNS(t[st],t[mt])||null,n=this[To].get(t[ut]);if(r===t)return t;if(this[Ni].set(`${t[st]||""}:${t[mt]}`,t),this[J].set(`${t[st]||""}:${t[ut]}`,t),!n?.length)this[To].set(t[ut],[t]);else {let i=n.indexOf(r);i!==-1&&n.splice(i,1),n.push(t);}return e||this[Vt][We](t,r),r}[bl](t,e=false){t[Vt]=null,this[Ni].delete(`${t[st]||""}:${t[mt]}`),this[J].delete(`${t[st]||""}:${t[ut]}`);let r=this[To].get(t[ut]);if(r?.length){let n=r.indexOf(t);n!==-1&&r.splice(n,1),r.length||this[To].delete(t[ut]);}e||this[Vt][fr](t);}};chunkBUNLC3II_cjs.h();var ff=class{static createProxy(t){let e=new Re(this,[Os]);return new Proxy(t,{get:(r,n)=>{if(n==="length")return t[J].size;if(n in r||typeof n=="symbol")return e.bind(n),r[n];let i=Number(n);return isNaN(i)?r.getNamedItem(n)||void 0:r.item(i)},set(r,n,i){if(e.bind(n),typeof n=="symbol")return r[n]=i,true;let s=Number(n);return isNaN(s)&&(r[n]=i),true},deleteProperty(r,n){if(typeof n=="symbol")return delete r[n],true;let i=Number(n);return isNaN(i)&&delete r[n],true},ownKeys(){let r=Array.from(t[J].keys());for(let n=0,i=t[J].size;n<i;n++)r.push(String(n));return r},has(r,n){if(typeof n=="symbol")return false;if(n in r||t[J].has(n))return true;let i=Number(n);return !isNaN(i)&&i>=0&&i<t[J].size},defineProperty(r,n,i){return e.preventBinding(n),n in r?(Object.defineProperty(r,n,i),true):false},getOwnPropertyDescriptor(r,n){if(n in r||typeof n=="symbol")return;let i=Number(n);if(!isNaN(i)){if(i>=0){let l=r.item(i);if(l)return {value:l,writable:false,enumerable:true,configurable:true}}return}let s=t[J].get(n);if(s)return {value:s,writable:false,enumerable:true,configurable:true}}})}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var cx;(function(o){o.rawText="rawText",o.noSelfDescendants="noSelfDescendants",o.noFirstLevelSelfDescendants="noFirstLevelSelfDescendants",o.noForbiddenFirstLevelDescendants="noForbiddenFirstLevelDescendants",o.noDescendants="noDescendants",o.permittedDescendants="permittedDescendants",o.textOrComments="textOrComments",o.anyDescendants="anyDescendants";})(cx||(cx={}));var z=cx;var Sr={a:{className:"HTMLAnchorElement",contentModel:z.noSelfDescendants},abbr:{className:"HTMLElement",contentModel:z.anyDescendants},address:{className:"HTMLElement",contentModel:z.anyDescendants},area:{className:"HTMLAreaElement",contentModel:z.noDescendants},article:{className:"HTMLElement",contentModel:z.anyDescendants},aside:{className:"HTMLElement",contentModel:z.anyDescendants},audio:{className:"HTMLAudioElement",contentModel:z.anyDescendants},b:{className:"HTMLElement",contentModel:z.anyDescendants},base:{className:"HTMLBaseElement",contentModel:z.noDescendants},bdi:{className:"HTMLElement",contentModel:z.anyDescendants},bdo:{className:"HTMLElement",contentModel:z.anyDescendants},body:{className:"HTMLBodyElement",contentModel:z.anyDescendants},template:{className:"HTMLTemplateElement",contentModel:z.anyDescendants},form:{className:"HTMLFormElement",contentModel:z.anyDescendants},input:{className:"HTMLInputElement",contentModel:z.noDescendants},textarea:{className:"HTMLTextAreaElement",contentModel:z.anyDescendants},script:{className:"HTMLScriptElement",contentModel:z.rawText},img:{className:"HTMLImageElement",contentModel:z.noDescendants},link:{className:"HTMLLinkElement",contentModel:z.noDescendants},style:{className:"HTMLStyleElement",contentModel:z.rawText},label:{className:"HTMLLabelElement",contentModel:z.anyDescendants},slot:{className:"HTMLSlotElement",contentModel:z.anyDescendants},meta:{className:"HTMLMetaElement",contentModel:z.noDescendants},blockquote:{className:"HTMLQuoteElement",contentModel:z.anyDescendants},br:{className:"HTMLBRElement",contentModel:z.noDescendants},button:{className:"HTMLButtonElement",contentModel:z.anyDescendants},canvas:{className:"HTMLCanvasElement",contentModel:z.anyDescendants},caption:{className:"HTMLTableCaptionElement",contentModel:z.noForbiddenFirstLevelDescendants,forbiddenDescendants:["table","tbody","thead","tfoot","tr","td","th","col","colgroup"],permittedParents:["table"]},cite:{className:"HTMLElement",contentModel:z.anyDescendants},code:{className:"HTMLElement",contentModel:z.anyDescendants},col:{className:"HTMLTableColElement",contentModel:z.noDescendants,permittedParents:["colgroup"]},colgroup:{className:"HTMLTableColElement",contentModel:z.permittedDescendants,permittedDescendants:["col"]},data:{className:"HTMLDataElement",contentModel:z.anyDescendants},datalist:{className:"HTMLDataListElement",contentModel:z.anyDescendants},dd:{className:"HTMLElement",contentModel:z.noForbiddenFirstLevelDescendants,forbiddenDescendants:["dt","dd"]},del:{className:"HTMLModElement",contentModel:z.anyDescendants},details:{className:"HTMLDetailsElement",contentModel:z.anyDescendants},dfn:{className:"HTMLElement",contentModel:z.anyDescendants},dialog:{className:"HTMLDialogElement",contentModel:z.anyDescendants},div:{className:"HTMLDivElement",contentModel:z.anyDescendants},dl:{className:"HTMLDListElement",contentModel:z.anyDescendants},dt:{className:"HTMLElement",contentModel:z.noForbiddenFirstLevelDescendants,forbiddenDescendants:["dt","dd"]},em:{className:"HTMLElement",contentModel:z.anyDescendants},embed:{className:"HTMLEmbedElement",contentModel:z.noDescendants},fieldset:{className:"HTMLFieldSetElement",contentModel:z.anyDescendants},figcaption:{className:"HTMLElement",contentModel:z.anyDescendants},figure:{className:"HTMLElement",contentModel:z.anyDescendants},footer:{className:"HTMLElement",contentModel:z.anyDescendants},h1:{className:"HTMLHeadingElement",contentModel:z.noFirstLevelSelfDescendants},h2:{className:"HTMLHeadingElement",contentModel:z.noFirstLevelSelfDescendants},h3:{className:"HTMLHeadingElement",contentModel:z.noFirstLevelSelfDescendants},h4:{className:"HTMLHeadingElement",contentModel:z.noFirstLevelSelfDescendants},h5:{className:"HTMLHeadingElement",contentModel:z.noFirstLevelSelfDescendants},h6:{className:"HTMLHeadingElement",contentModel:z.noFirstLevelSelfDescendants},head:{className:"HTMLHeadElement",contentModel:z.anyDescendants},header:{className:"HTMLElement",contentModel:z.anyDescendants},hgroup:{className:"HTMLElement",contentModel:z.anyDescendants},hr:{className:"HTMLHRElement",contentModel:z.noDescendants},html:{className:"HTMLHtmlElement",contentModel:z.anyDescendants},i:{className:"HTMLElement",contentModel:z.anyDescendants},iframe:{className:"HTMLIFrameElement",contentModel:z.anyDescendants},ins:{className:"HTMLModElement",contentModel:z.anyDescendants},kbd:{className:"HTMLElement",contentModel:z.anyDescendants},legend:{className:"HTMLLegendElement",contentModel:z.anyDescendants},li:{className:"HTMLLIElement",contentModel:z.noFirstLevelSelfDescendants},main:{className:"HTMLElement",contentModel:z.anyDescendants},map:{className:"HTMLMapElement",contentModel:z.anyDescendants},mark:{className:"HTMLElement",contentModel:z.anyDescendants},menu:{className:"HTMLMenuElement",contentModel:z.anyDescendants},meter:{className:"HTMLMeterElement",contentModel:z.anyDescendants},nav:{className:"HTMLElement",contentModel:z.anyDescendants},noscript:{className:"HTMLElement",contentModel:z.anyDescendants},object:{className:"HTMLObjectElement",contentModel:z.anyDescendants},ol:{className:"HTMLOListElement",contentModel:z.anyDescendants},optgroup:{className:"HTMLOptGroupElement",contentModel:z.noFirstLevelSelfDescendants},option:{className:"HTMLOptionElement",contentModel:z.noForbiddenFirstLevelDescendants,forbiddenDescendants:["option","optgroup"]},output:{className:"HTMLOutputElement",contentModel:z.anyDescendants},p:{className:"HTMLParagraphElement",contentModel:z.noForbiddenFirstLevelDescendants,forbiddenDescendants:["address","article","aside","blockquote","details","dialog","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","menu","nav","ol","p","pre","section","table","ul"]},param:{className:"HTMLParamElement",contentModel:z.noDescendants},picture:{className:"HTMLPictureElement",contentModel:z.anyDescendants},pre:{className:"HTMLPreElement",contentModel:z.anyDescendants},progress:{className:"HTMLProgressElement",contentModel:z.anyDescendants},q:{className:"HTMLQuoteElement",contentModel:z.anyDescendants},rb:{className:"HTMLElement",contentModel:z.anyDescendants},rp:{className:"HTMLElement",contentModel:z.noForbiddenFirstLevelDescendants,forbiddenDescendants:["rp","rt"]},rt:{className:"HTMLElement",contentModel:z.noForbiddenFirstLevelDescendants,forbiddenDescendants:["rp","rt"]},rtc:{className:"HTMLElement",contentModel:z.anyDescendants},ruby:{className:"HTMLElement",contentModel:z.anyDescendants},s:{className:"HTMLElement",contentModel:z.anyDescendants},samp:{className:"HTMLElement",contentModel:z.anyDescendants},section:{className:"HTMLElement",contentModel:z.anyDescendants},select:{className:"HTMLSelectElement",contentModel:z.anyDescendants},small:{className:"HTMLElement",contentModel:z.anyDescendants},source:{className:"HTMLSourceElement",contentModel:z.noDescendants},span:{className:"HTMLSpanElement",contentModel:z.anyDescendants},strong:{className:"HTMLElement",contentModel:z.anyDescendants},sub:{className:"HTMLElement",contentModel:z.anyDescendants},summary:{className:"HTMLElement",contentModel:z.anyDescendants},sup:{className:"HTMLElement",contentModel:z.anyDescendants},table:{className:"HTMLTableElement",contentModel:z.permittedDescendants,permittedDescendants:["caption","colgroup","thead","tfoot","tbody"],moveForbiddenDescendant:{exclude:[]}},tbody:{className:"HTMLTableSectionElement",contentModel:z.permittedDescendants,permittedDescendants:["tr"],permittedParents:["table"],moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody"]}},td:{className:"HTMLTableCellElement",contentModel:z.noForbiddenFirstLevelDescendants,forbiddenDescendants:["td","th","tr","tbody","tfoot","thead"],permittedParents:["tr"]},tfoot:{className:"HTMLTableSectionElement",contentModel:z.permittedDescendants,permittedDescendants:["tr"],permittedParents:["table"],moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody"]}},th:{className:"HTMLTableCellElement",contentModel:z.noForbiddenFirstLevelDescendants,forbiddenDescendants:["td","th","tr","tbody","tfoot","thead"],permittedParents:["tr"]},thead:{className:"HTMLTableSectionElement",contentModel:z.permittedDescendants,permittedDescendants:["tr"],permittedParents:["table"],moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody"]}},time:{className:"HTMLTimeElement",contentModel:z.anyDescendants},title:{className:"HTMLTitleElement",contentModel:z.anyDescendants},tr:{className:"HTMLTableRowElement",contentModel:z.permittedDescendants,permittedDescendants:["td","th"],permittedParents:["tbody","tfoot","thead"],addPermittedParent:"tbody",moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody","tr"]}},track:{className:"HTMLTrackElement",contentModel:z.noDescendants},u:{className:"HTMLElement",contentModel:z.anyDescendants},ul:{className:"HTMLUListElement",contentModel:z.anyDescendants},var:{className:"HTMLElement",contentModel:z.anyDescendants},video:{className:"HTMLVideoElement",contentModel:z.anyDescendants},wbr:{className:"HTMLElement",contentModel:z.noDescendants}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var px,GD=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),mx=(px=String.fromCodePoint)!==null&&px!==void 0?px:(o=>{let t="";return o>65535&&(o-=65536,t+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),t+=String.fromCharCode(o),t});function hx(o){var t;return o>=55296&&o<=57343||o>1114111?65533:(t=GD.get(o))!==null&&t!==void 0?t:o}chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();function DS(o){let t=typeof atob=="function"?atob(o):typeof Buffer.from=="function"?Buffer.from(o,"base64").toString("binary"):new Buffer(o,"base64").toString("binary"),e=t.length&-2,r=new Uint16Array(e/2);for(let n=0,i=0;n<e;n+=2){let s=t.charCodeAt(n),l=t.charCodeAt(n+1);r[i++]=s|l<<8;}return r}var yx=DS("QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLAbdBxMISQrvCmQLfQurDKQNLw4fD4YPpA+6D/IPAAAAAAAAAAAAAAAAKhBMEY8TmxUWF2EYLBkxGuAa3RsJHDscWR8YIC8jSCSIJcMl6ie3Ku8rEC0CLjoupS7kLgAIRU1hYmNmZ2xtbm9wcnN0dVQAWgBeAGUAaQBzAHcAfgCBAIQAhwCSAJoAoACsALMAbABpAGcAO4DGAMZAUAA7gCYAJkBjAHUAdABlADuAwQDBQHIiZXZlAAJhAAFpeW0AcgByAGMAO4DCAMJAEGRyAADgNdgE3XIAYQB2AGUAO4DAAMBA8CFoYZFj4SFjcgBhZAAAoFMqAAFncIsAjgBvAG4ABGFmAADgNdg43fAlbHlGdW5jdGlvbgCgYSBpAG4AZwA7gMUAxUAAAWNzpACoAHIAAOA12Jzc6SFnbgCgVCJpAGwAZABlADuAwwDDQG0AbAA7gMQAxEAABGFjZWZvcnN1xQDYANoA7QDxAPYA+QD8AAABY3LJAM8AayNzbGFzaAAAoBYidgHTANUAAKDnKmUAZAAAoAYjeQARZIABY3J0AOAA5QDrAGEidXNlAACgNSLuI291bGxpcwCgLCFhAJJjcgAA4DXYBd1wAGYAAOA12Dnd5SF2ZdhiYwDyAOoAbSJwZXEAAKBOIgAHSE9hY2RlZmhpbG9yc3UXARoBHwE6AVIBVQFiAWQBZgGCAakB6QHtAfIBYwB5ACdkUABZADuAqQCpQIABY3B5ACUBKAE1AfUhdGUGYWmg0iJ0KGFsRGlmZmVyZW50aWFsRAAAoEUhbCJleXMAAKAtIQACYWVpb0EBRAFKAU0B8iFvbgxhZABpAGwAO4DHAMdAcgBjAAhhbiJpbnQAAKAwIm8AdAAKYQABZG5ZAV0BaSJsbGEAuGB0I2VyRG90ALdg8gA5AWkAp2NyImNsZQAAAkRNUFRwAXQBeQF9AW8AdAAAoJkiaSJudXMAAKCWIuwhdXMAoJUiaSJtZXMAAKCXIm8AAAFjc4cBlAFrKndpc2VDb250b3VySW50ZWdyYWwAAKAyImUjQ3VybHkAAAFEUZwBpAFvJXVibGVRdW90ZQAAoB0gdSJvdGUAAKAZIAACbG5wdbABtgHNAdgBbwBuAGWgNyIAoHQqgAFnaXQAvAHBAcUB8iJ1ZW50AKBhIm4AdAAAoC8i7yV1ckludGVncmFsAKAuIgABZnLRAdMBAKACIe8iZHVjdACgECJuLnRlckNsb2Nrd2lzZUNvbnRvdXJJbnRlZ3JhbAAAoDMi7yFzcwCgLypjAHIAAOA12J7ccABDoNMiYQBwAACgTSKABURKU1phY2VmaW9zAAsCEgIVAhgCGwIsAjQCOQI9AnMCfwNvoEUh9CJyYWhkAKARKWMAeQACZGMAeQAFZGMAeQAPZIABZ3JzACECJQIoAuchZXIAoCEgcgAAoKEhaAB2AACg5CoAAWF5MAIzAvIhb24OYRRkbAB0oAciYQCUY3IAAOA12AfdAAFhZkECawIAAWNtRQJnAvIjaXRpY2FsAAJBREdUUAJUAl8CYwJjInV0ZQC0YG8AdAFZAloC2WJiJGxlQWN1dGUA3WJyImF2ZQBgYGkibGRlANxi7yFuZACgxCJmJWVyZW50aWFsRAAAoEYhcAR9AgAAAAAAAIECjgIAABoDZgAA4DXYO91EoagAhQKJAm8AdAAAoNwgcSJ1YWwAAKBQIuIhbGUAA0NETFJVVpkCqAK1Au8C/wIRA28AbgB0AG8AdQByAEkAbgB0AGUAZwByAGEA7ADEAW8AdAKvAgAAAACwAqhgbiNBcnJvdwAAoNMhAAFlb7kC0AJmAHQAgAFBUlQAwQLGAs0CciJyb3cAAKDQIekkZ2h0QXJyb3cAoNQhZQDlACsCbgBnAAABTFLWAugC5SFmdAABQVLcAuECciJyb3cAAKD4J+kkZ2h0QXJyb3cAoPon6SRnaHRBcnJvdwCg+SdpImdodAAAAUFU9gL7AnIicm93AACg0iFlAGUAAKCoInAAQQIGAwAAAAALA3Iicm93AACg0SFvJHduQXJyb3cAAKDVIWUlcnRpY2FsQmFyAACgJSJuAAADQUJMUlRhJAM2AzoDWgNxA3oDciJyb3cAAKGTIUJVLAMwA2EAcgAAoBMpcCNBcnJvdwAAoPUhciJldmUAEWPlIWZ00gJDAwAASwMAAFIDaSVnaHRWZWN0b3IAAKBQKWUkZVZlY3RvcgAAoF4p5SJjdG9yQqC9IWEAcgAAoFYpaSJnaHQA1AFiAwAAaQNlJGVWZWN0b3IAAKBfKeUiY3RvckKgwSFhAHIAAKBXKWUAZQBBoKQiciJyb3cAAKCnIXIAcgBvAPcAtAIAAWN0gwOHA3IAAOA12J/c8iFvaxBhAAhOVGFjZGZnbG1vcHFzdHV4owOlA6kDsAO/A8IDxgPNA9ID8gP9AwEEFAQeBCAEJQRHAEphSAA7gNAA0EBjAHUAdABlADuAyQDJQIABYWl5ALYDuQO+A/Ihb24aYXIAYwA7gMoAykAtZG8AdAAWYXIAAOA12AjdcgBhAHYAZQA7gMgAyEDlIm1lbnQAoAgiAAFhcNYD2QNjAHIAEmF0AHkAUwLhAwAAAADpA20lYWxsU3F1YXJlAACg+yVlJ3J5U21hbGxTcXVhcmUAAKCrJQABZ3D2A/kDbwBuABhhZgAA4DXYPN3zImlsb26VY3UAAAFhaQYEDgRsAFSgdSppImxkZQAAoEIi7CNpYnJpdW0AoMwhAAFjaRgEGwRyAACgMCFtAACgcyphAJdjbQBsADuAywDLQAABaXApBC0E8yF0cwCgAyLvJG5lbnRpYWxFAKBHIYACY2Zpb3MAPQQ/BEMEXQRyBHkAJGRyAADgNdgJ3WwibGVkAFMCTAQAAAAAVARtJWFsbFNxdWFyZQAAoPwlZSdyeVNtYWxsU3F1YXJlAACgqiVwA2UEAABpBAAAAABtBGYAAOA12D3dwSFsbACgACLyI2llcnRyZgCgMSFjAPIAcQQABkpUYWJjZGZnb3JzdIgEiwSOBJMElwSkBKcEqwStBLIE5QTqBGMAeQADZDuAPgA+QO0hbWFkoJMD3GNyImV2ZQAeYYABZWl5AJ0EoASjBOQhaWwiYXIAYwAcYRNkbwB0ACBhcgAA4DXYCt0AoNkicABmAADgNdg+3eUiYXRlcgADRUZHTFNUvwTIBM8E1QTZBOAEcSJ1YWwATKBlIuUhc3MAoNsidSRsbEVxdWFsAACgZyJyI2VhdGVyAACgoirlIXNzAKB3IuwkYW50RXF1YWwAoH4qaSJsZGUAAKBzImMAcgAA4DXYotwAoGsiAARBYWNmaW9zdfkE/QQFBQgFCwUTBSIFKwVSIkRjeQAqZAABY3QBBQQFZQBrAMdiXmDpIXJjJGFyAACgDCFsJWJlcnRTcGFjZQAAoAsh8AEYBQAAGwVmAACgDSHpJXpvbnRhbExpbmUAoAAlAAFjdCYFKAXyABIF8iFvayZhbQBwAEQBMQU5BW8AdwBuAEgAdQBtAPAAAAFxInVhbAAAoE8iAAdFSk9hY2RmZ21ub3N0dVMFVgVZBVwFYwVtBXAFcwV6BZAFtgXFBckFzQVjAHkAFWTsIWlnMmFjAHkAAWRjAHUAdABlADuAzQDNQAABaXlnBWwFcgBjADuAzgDOQBhkbwB0ADBhcgAAoBEhcgBhAHYAZQA7gMwAzEAAoREhYXB/BYsFAAFjZ4MFhQVyACphaSNuYXJ5SQAAoEghbABpAGUA8wD6AvQBlQUAAKUFZaAsIgABZ3KaBZ4F8iFhbACgKyLzI2VjdGlvbgCgwiJpI3NpYmxlAAABQ1SsBbEFbyJtbWEAAKBjIGkibWVzAACgYiCAAWdwdAC8Bb8FwwVvAG4ALmFmAADgNdhA3WEAmWNjAHIAAKAQIWkibGRlAChh6wHSBQAA1QVjAHkABmRsADuAzwDPQIACY2Zvc3UA4QXpBe0F8gX9BQABaXnlBegFcgBjADRhGWRyAADgNdgN3XAAZgAA4DXYQd3jAfcFAAD7BXIAAOA12KXc8iFjeQhk6yFjeQRkgANISmFjZm9zAAwGDwYSBhUGHQYhBiYGYwB5ACVkYwB5AAxk8CFwYZpjAAFleRkGHAbkIWlsNmEaZHIAAOA12A7dcABmAADgNdhC3WMAcgAA4DXYptyABUpUYWNlZmxtb3N0AD0GQAZDBl4GawZkB2gHcAd0B80H2gdjAHkACWQ7gDwAPECAAmNtbnByAEwGTwZSBlUGWwb1IXRlOWHiIWRhm2NnAACg6ifsI2FjZXRyZgCgEiFyAACgniGAAWFleQBkBmcGagbyIW9uPWHkIWlsO2EbZAABZnNvBjQHdAAABUFDREZSVFVWYXKABp4GpAbGBssG3AYDByEHwQIqBwABbnKEBowGZyVsZUJyYWNrZXQAAKDoJ/Ihb3cAoZAhQlKTBpcGYQByAACg5CHpJGdodEFycm93AKDGIWUjaWxpbmcAAKAII28A9QGqBgAAsgZiJWxlQnJhY2tldAAAoOYnbgDUAbcGAAC+BmUkZVZlY3RvcgAAoGEp5SJjdG9yQqDDIWEAcgAAoFkpbCJvb3IAAKAKI2kiZ2h0AAABQVbSBtcGciJyb3cAAKCUIeUiY3RvcgCgTikAAWVy4AbwBmUAAKGjIkFW5gbrBnIicm93AACgpCHlImN0b3IAoFopaSNhbmdsZQBCorIi+wYAAAAA/wZhAHIAAKDPKXEidWFsAACgtCJwAIABRFRWAAoHEQcYB+8kd25WZWN0b3IAoFEpZSRlVmVjdG9yAACgYCnlImN0b3JCoL8hYQByAACgWCnlImN0b3JCoLwhYQByAACgUilpAGcAaAB0AGEAcgByAG8A9wDMAnMAAANFRkdMU1Q/B0cHTgdUB1gHXwfxJXVhbEdyZWF0ZXIAoNoidSRsbEVxdWFsAACgZiJyI2VhdGVyAACgdiLlIXNzAKChKuwkYW50RXF1YWwAoH0qaSJsZGUAAKByInIAAOA12A/dZaDYIuYjdGFycm93AKDaIWkiZG90AD9hgAFucHcAege1B7kHZwAAAkxSbHKCB5QHmwerB+UhZnQAAUFSiAeNB3Iicm93AACg9SfpJGdodEFycm93AKD3J+kkZ2h0QXJyb3cAoPYn5SFmdAABYXLcAqEHaQBnAGgAdABhAHIAcgBvAPcA5wJpAGcAaAB0AGEAcgByAG8A9wDuAmYAAOA12EPdZQByAAABTFK/B8YHZSRmdEFycm93AACgmSHpJGdodEFycm93AKCYIYABY2h0ANMH1QfXB/IAWgYAoLAh8iFva0FhAKBqIgAEYWNlZmlvc3XpB+wH7gf/BwMICQgOCBEIcAAAoAUpeQAcZAABZGzyB/kHaSR1bVNwYWNlAACgXyBsI2ludHJmAACgMyFyAADgNdgQ3e4jdXNQbHVzAKATInAAZgAA4DXYRN1jAPIA/gecY4AESmFjZWZvc3R1ACEIJAgoCDUIgQiFCDsKQApHCmMAeQAKZGMidXRlAENhgAFhZXkALggxCDQI8iFvbkdh5CFpbEVhHWSAAWdzdwA7CGEIfQjhInRpdmWAAU1UVgBECEwIWQhlJWRpdW1TcGFjZQAAoAsgaABpAAABY25SCFMIawBTAHAAYQBjAOUASwhlAHIAeQBUAGgAaQDuAFQI9CFlZAABR0xnCHUIcgBlAGEAdABlAHIARwByAGUAYQB0AGUA8gDrBGUAcwBzAEwAZQBzAPMA2wdMImluZQAKYHIAAOA12BHdAAJCbnB0jAiRCJkInAhyImVhawAAoGAgwiZyZWFraW5nU3BhY2WgYGYAAKAVIUOq7CqzCMIIzQgAAOcIGwkAAAAAAAAtCQAAbwkAAIcJAACdCcAJGQoAADQKAAFvdbYIvAjuI2dydWVudACgYiJwIkNhcAAAoG0ibyh1YmxlVmVydGljYWxCYXIAAKAmIoABbHF4ANII1wjhCOUibWVudACgCSL1IWFsVKBgImkibGRlAADgQiI4A2kic3RzAACgBCJyI2VhdGVyAACjbyJFRkdMU1T1CPoIAgkJCQ0JFQlxInVhbAAAoHEidSRsbEVxdWFsAADgZyI4A3IjZWF0ZXIAAOBrIjgD5SFzcwCgeSLsJGFudEVxdWFsAOB+KjgDaSJsZGUAAKB1IvUhbXBEASAJJwnvI3duSHVtcADgTiI4A3EidWFsAADgTyI4A2UAAAFmczEJRgn0JFRyaWFuZ2xlQqLqIj0JAAAAAEIJYQByAADgzyk4A3EidWFsAACg7CJzAICibiJFR0xTVABRCVYJXAlhCWkJcSJ1YWwAAKBwInIjZWF0ZXIAAKB4IuUhc3MA4GoiOAPsJGFudEVxdWFsAOB9KjgDaSJsZGUAAKB0IuUic3RlZAABR0x1CX8J8iZlYXRlckdyZWF0ZXIA4KIqOAPlI3NzTGVzcwDgoSo4A/IjZWNlZGVzAKGAIkVTjwmVCXEidWFsAADgryo4A+wkYW50RXF1YWwAoOAiAAFlaaAJqQl2JmVyc2VFbGVtZW50AACgDCLnJWh0VHJpYW5nbGVCousitgkAAAAAuwlhAHIAAODQKTgDcSJ1YWwAAKDtIgABcXXDCeAJdSNhcmVTdQAAAWJwywnVCfMhZXRF4I8iOANxInVhbAAAoOIi5SJyc2V0ReCQIjgDcSJ1YWwAAKDjIoABYmNwAOYJ8AkNCvMhZXRF4IIi0iBxInVhbAAAoIgi4yJlZWRzgKGBIkVTVAD6CQAKBwpxInVhbAAA4LAqOAPsJGFudEVxdWFsAKDhImkibGRlAADgfyI4A+UicnNldEXggyLSIHEidWFsAACgiSJpImxkZQCAoUEiRUZUACIKJwouCnEidWFsAACgRCJ1JGxsRXF1YWwAAKBHImkibGRlAACgSSJlJXJ0aWNhbEJhcgAAoCQiYwByAADgNdip3GkAbABkAGUAO4DRANFAnWMAB0VhY2RmZ21vcHJzdHV2XgphCmgKcgp2CnoKgQqRCpYKqwqtCrsKyArNCuwhaWdSYWMAdQB0AGUAO4DTANNAAAFpeWwKcQpyAGMAO4DUANRAHmRiImxhYwBQYXIAAOA12BLdcgBhAHYAZQA7gNIA0kCAAWFlaQCHCooKjQpjAHIATGFnAGEAqWNjInJvbgCfY3AAZgAA4DXYRt3lI25DdXJseQABRFGeCqYKbyV1YmxlUXVvdGUAAKAcIHUib3RlAACgGCAAoFQqAAFjbLEKtQpyAADgNdiq3GEAcwBoADuA2ADYQGkAbAHACsUKZABlADuA1QDVQGUAcwAAoDcqbQBsADuA1gDWQGUAcgAAAUJQ0wrmCgABYXLXCtoKcgAAoD4gYQBjAAABZWvgCuIKAKDeI2UAdAAAoLQjYSVyZW50aGVzaXMAAKDcI4AEYWNmaGlsb3JzAP0KAwsFCwkLCwsMCxELIwtaC3IjdGlhbEQAAKACInkAH2RyAADgNdgT3WkApmOgY/Ujc01pbnVzsWAAAWlwFQsgC24AYwBhAHIAZQBwAGwAYQBuAOUACgVmAACgGSGAobsqZWlvACoLRQtJC+MiZWRlc4CheiJFU1QANAs5C0ALcSJ1YWwAAKCvKuwkYW50RXF1YWwAoHwiaSJsZGUAAKB+Im0AZQAAoDMgAAFkcE0LUQv1IWN0AKAPIm8jcnRpb24AYaA3ImwAAKAdIgABY2leC2ILcgAA4DXYq9yoYwACVWZvc2oLbwtzC3cLTwBUADuAIgAiQHIAAOA12BTdcABmAACgGiFjAHIAAOA12KzcAAZCRWFjZWZoaW9yc3WPC5MLlwupC7YL2AvbC90LhQyTDJoMowzhIXJyAKAQKUcAO4CuAK5AgAFjbnIAnQugC6ML9SF0ZVRhZwAAoOsncgB0oKAhbAAAoBYpgAFhZXkArwuyC7UL8iFvblhh5CFpbFZhIGR2oBwhZSJyc2UAAAFFVb8LzwsAAWxxwwvIC+UibWVudACgCyL1JGlsaWJyaXVtAKDLIXAmRXF1aWxpYnJpdW0AAKBvKXIAAKAcIW8AoWPnIWh0AARBQ0RGVFVWYewLCgwQDDIMNwxeDHwM9gIAAW5y8Av4C2clbGVCcmFja2V0AACg6SfyIW93AKGSIUJM/wsDDGEAcgAAoOUhZSRmdEFycm93AACgxCFlI2lsaW5nAACgCSNvAPUBFgwAAB4MYiVsZUJyYWNrZXQAAKDnJ24A1AEjDAAAKgxlJGVWZWN0b3IAAKBdKeUiY3RvckKgwiFhAHIAAKBVKWwib29yAACgCyMAAWVyOwxLDGUAAKGiIkFWQQxGDHIicm93AACgpiHlImN0b3IAoFspaSNhbmdsZQBCorMiVgwAAAAAWgxhAHIAAKDQKXEidWFsAACgtSJwAIABRFRWAGUMbAxzDO8kd25WZWN0b3IAoE8pZSRlVmVjdG9yAACgXCnlImN0b3JCoL4hYQByAACgVCnlImN0b3JCoMAhYQByAACgUykAAXB1iQyMDGYAAKAdIe4kZEltcGxpZXMAoHAp6SRnaHRhcnJvdwCg2yEAAWNongyhDHIAAKAbIQCgsSHsJGVEZWxheWVkAKD0KYAGSE9hY2ZoaW1vcXN0dQC/DMgMzAzQDOIM5gwKDQ0NFA0ZDU8NVA1YDQABQ2PDDMYMyCFjeSlkeQAoZEYiVGN5ACxkYyJ1dGUAWmEAorwqYWVpedgM2wzeDOEM8iFvbmBh5CFpbF5hcgBjAFxhIWRyAADgNdgW3e8hcnQAAkRMUlXvDPYM/QwEDW8kd25BcnJvdwAAoJMhZSRmdEFycm93AACgkCHpJGdodEFycm93AKCSIXAjQXJyb3cAAKCRIechbWGjY+EkbGxDaXJjbGUAoBgicABmAADgNdhK3XICHw0AAAAAIg10AACgGiLhIXJlgKGhJUlTVQAqDTINSg3uJXRlcnNlY3Rpb24AoJMidQAAAWJwNw1ADfMhZXRFoI8icSJ1YWwAAKCRIuUicnNldEWgkCJxInVhbAAAoJIibiJpb24AAKCUImMAcgAA4DXYrtxhAHIAAKDGIgACYmNtcF8Nag2ODZANc6DQImUAdABFoNAicSJ1YWwAAKCGIgABY2huDYkNZSJlZHMAgKF7IkVTVAB4DX0NhA1xInVhbAAAoLAq7CRhbnRFcXVhbACgfSJpImxkZQAAoH8iVABoAGEA9ADHCwCgESIAodEiZXOVDZ8NciJzZXQARaCDInEidWFsAACghyJlAHQAAKDRIoAFSFJTYWNmaGlvcnMAtQ27Db8NyA3ODdsN3w3+DRgOHQ4jDk8AUgBOADuA3gDeQMEhREUAoCIhAAFIY8MNxg1jAHkAC2R5ACZkAAFidcwNzQ0JYKRjgAFhZXkA1A3XDdoN8iFvbmRh5CFpbGJhImRyAADgNdgX3QABZWnjDe4N8gHoDQAA7Q3lImZvcmUAoDQiYQCYYwABY27yDfkNayNTcGFjZQAA4F8gCiDTInBhY2UAoAkg7CFkZYChPCJFRlQABw4MDhMOcSJ1YWwAAKBDInUkbGxFcXVhbAAAoEUiaSJsZGUAAKBIInAAZgAA4DXYS93pI3BsZURvdACg2yAAAWN0Jw4rDnIAAOA12K/c8iFva2Zh4QpFDlYOYA5qDgAAbg5yDgAAAAAAAAAAAAB5DnwOqA6zDgAADg8RDxYPGg8AAWNySA5ODnUAdABlADuA2gDaQHIAb6CfIeMhaXIAoEkpcgDjAVsOAABdDnkADmR2AGUAbGEAAWl5Yw5oDnIAYwA7gNsA20AjZGIibGFjAHBhcgAA4DXYGN1yAGEAdgBlADuA2QDZQOEhY3JqYQABZGl/Dp8OZQByAAABQlCFDpcOAAFhcokOiw5yAF9gYQBjAAABZWuRDpMOAKDfI2UAdAAAoLUjYSVyZW50aGVzaXMAAKDdI28AbgBQoMMi7CF1cwCgjiIAAWdwqw6uDm8AbgByYWYAAOA12EzdAARBREVUYWRwc78O0g7ZDuEOBQPqDvMOBw9yInJvdwDCoZEhyA4AAMwOYQByAACgEilvJHduQXJyb3cAAKDFIW8kd25BcnJvdwAAoJUhcSV1aWxpYnJpdW0AAKBuKWUAZQBBoKUiciJyb3cAAKClIW8AdwBuAGEAcgByAG8A9wAQA2UAcgAAAUxS+Q4AD2UkZnRBcnJvdwAAoJYh6SRnaHRBcnJvdwCglyFpAGyg0gNvAG4ApWPpIW5nbmFjAHIAAOA12LDcaSJsZGUAaGFtAGwAO4DcANxAgAREYmNkZWZvc3YALQ8xDzUPNw89D3IPdg97D4AP4SFzaACgqyJhAHIAAKDrKnkAEmThIXNobKCpIgCg5ioAAWVyQQ9DDwCgwSKAAWJ0eQBJD00Paw9hAHIAAKAWIGmgFiDjIWFsAAJCTFNUWA9cD18PZg9hAHIAAKAjIukhbmV8YGUkcGFyYXRvcgAAoFgnaSJsZGUAAKBAItQkaGluU3BhY2UAoAogcgAA4DXYGd1wAGYAAOA12E3dYwByAADgNdix3GQiYXNoAACgqiKAAmNlZm9zAI4PkQ+VD5kPng/pIXJjdGHkIWdlAKDAInIAAOA12BrdcABmAADgNdhO3WMAcgAA4DXYstwAAmZpb3OqD64Prw+0D3IAAOA12BvdnmNwAGYAAOA12E/dYwByAADgNdiz3IAEQUlVYWNmb3N1AMgPyw/OD9EP2A/gD+QP6Q/uD2MAeQAvZGMAeQAHZGMAeQAuZGMAdQB0AGUAO4DdAN1AAAFpedwP3w9yAGMAdmErZHIAAOA12BzdcABmAADgNdhQ3WMAcgAA4DXYtNxtAGwAeGEABEhhY2RlZm9z/g8BEAUQDRAQEB0QIBAkEGMAeQAWZGMidXRlAHlhAAFheQkQDBDyIW9ufWEXZG8AdAB7YfIBFRAAABwQbwBXAGkAZAB0AOgAVAhhAJZjcgAAoCghcABmAACgJCFjAHIAAOA12LXc4QtCEEkQTRAAAGcQbRByEAAAAAAAAAAAeRCKEJcQ8hD9EAAAGxEhETIROREAAD4RYwB1AHQAZQA7gOEA4UByImV2ZQADYYCiPiJFZGl1eQBWEFkQWxBgEGUQAOA+IjMDAKA/InIAYwA7gOIA4kB0AGUAO4C0ALRAMGRsAGkAZwA7gOYA5kByoGEgAOA12B7dcgBhAHYAZQA7gOAA4EAAAWVwfBCGEAABZnCAEIQQ8yF5bQCgNSHoAIMQaABhALFjAAFhcI0QWwAAAWNskRCTEHIAAWFnAACgPypkApwQAAAAALEQAKInImFkc3ajEKcQqRCuEG4AZAAAoFUqAKBcKmwib3BlAACgWCoAoFoqAKMgImVsbXJzersQvRDAEN0Q5RDtEACgpCllAACgICJzAGQAYaAhImEEzhDQENIQ1BDWENgQ2hDcEACgqCkAoKkpAKCqKQCgqykAoKwpAKCtKQCgrikAoK8pdAB2oB8iYgBkoL4iAKCdKQABcHTpEOwQaAAAoCIixWDhIXJyAKB8IwABZ3D1EPgQbwBuAAVhZgAA4DXYUt0Ao0giRWFlaW9wBxEJEQ0RDxESERQRAKBwKuMhaXIAoG8qAKBKImQAAKBLInMAJ2DyIW94ZaBIIvEADhFpAG4AZwA7gOUA5UCAAWN0eQAmESoRKxFyAADgNdi23CpgbQBwAGWgSCLxAPgBaQBsAGQAZQA7gOMA40BtAGwAO4DkAORAAAFjaUERRxFvAG4AaQBuAPQA6AFuAHQAAKARKgAITmFiY2RlZmlrbG5vcHJzdWQRaBGXEZ8RpxGrEdIR1hErEjASexKKEn0RThNbE3oTbwB0AACg7SoAAWNybBGJEWsAAAJjZXBzdBF4EX0RghHvIW5nAKBMInAjc2lsb24A9mNyImltZQAAoDUgaQBtAGWgPSJxAACgzSJ2AY0RkRFlAGUAAKC9ImUAZABnoAUjZQAAoAUjcgBrAHSgtSPiIXJrAKC2IwABb3mjEaYRbgDnAHcRMWTxIXVvAKAeIIACY21wcnQAtBG5Eb4RwRHFEeEhdXPloDUi5ABwInR5dgAAoLApcwDpAH0RbgBvAPUA6gCAAWFodwDLEcwRzhGyYwCgNiHlIWVuAKBsInIAAOA12B/dZwCAA2Nvc3R1dncA4xHyEQUSEhIhEiYSKRKAAWFpdQDpEesR7xHwAKMFcgBjAACg7yVwAACgwyKAAWRwdAD4EfwRABJvAHQAAKAAKuwhdXMAoAEqaSJtZXMAAKACKnECCxIAAAAADxLjIXVwAKAGKmEAcgAAoAUm8iNpYW5nbGUAAWR1GhIeEu8hd24AoL0lcAAAoLMlcCJsdXMAAKAEKmUA5QBCD+UAkg9hInJvdwAAoA0pgAFha28ANhJoEncSAAFjbjoSZRJrAIABbHN0AEESRxJNEm8jemVuZ2UAAKDrKXEAdQBhAHIA5QBcBPIjaWFuZ2xlgKG0JWRscgBYElwSYBLvIXduAKC+JeUhZnQAoMIlaSJnaHQAAKC4JWsAAKAjJLEBbRIAAHUSsgFxEgAAcxIAoJIlAKCRJTQAAKCTJWMAawAAoIglAAFlb38ShxJx4D0A5SD1IWl2AOBhIuUgdAAAoBAjAAJwdHd4kRKVEpsSnxJmAADgNdhT3XSgpSJvAG0AAKClIvQhaWUAoMgiAAZESFVWYmRobXB0dXayEsES0RLgEvcS+xIKExoTHxMjEygTNxMAAkxSbHK5ErsSvRK/EgCgVyUAoFQlAKBWJQCgUyUAolAlRFVkdckSyxLNEs8SAKBmJQCgaSUAoGQlAKBnJQACTFJsctgS2hLcEt4SAKBdJQCgWiUAoFwlAKBZJQCjUSVITFJobHLrEu0S7xLxEvMS9RIAoGwlAKBjJQCgYCUAoGslAKBiJQCgXyVvAHgAAKDJKQACTFJscgITBBMGEwgTAKBVJQCgUiUAoBAlAKAMJQCiACVEVWR1EhMUExYTGBMAoGUlAKBoJQCgLCUAoDQlaSJudXMAAKCfIuwhdXMAoJ4iaSJtZXMAAKCgIgACTFJsci8TMRMzEzUTAKBbJQCgWCUAoBglAKAUJQCjAiVITFJobHJCE0QTRhNIE0oTTBMAoGolAKBhJQCgXiUAoDwlAKAkJQCgHCUAAWV2UhNVE3YA5QD5AGIAYQByADuApgCmQAACY2Vpb2ITZhNqE24TcgAA4DXYt9xtAGkAAKBPIG0A5aA9IogRbAAAoVwAYmh0E3YTAKDFKfMhdWIAoMgnbAF+E4QTbABloCIgdAAAoCIgcAAAoU4iRWWJE4sTAKCuKvGgTyI8BeEMqRMAAN8TABQDFB8UAAAjFDQUAAAAAIUUAAAAAI0UAAAAANcU4xT3FPsUAACIFQAAlhWAAWNwcgCuE7ET1RP1IXRlB2GAoikiYWJjZHMAuxO/E8QTzhPSE24AZAAAoEQqciJjdXAAAKBJKgABYXXIE8sTcAAAoEsqcAAAoEcqbwB0AACgQCoA4CkiAP4AAWVv2RPcE3QAAKBBIO4ABAUAAmFlaXXlE+8T9RP4E/AB6hMAAO0TcwAAoE0qbwBuAA1hZABpAGwAO4DnAOdAcgBjAAlhcABzAHOgTCptAACgUCpvAHQAC2GAAWRtbgAIFA0UEhRpAGwAO4C4ALhAcCJ0eXYAAKCyKXQAAIGiADtlGBQZFKJAcgBkAG8A9ABiAXIAAOA12CDdgAFjZWkAKBQqFDIUeQBHZGMAawBtoBMn4SFyawCgEyfHY3IAAKPLJUVjZWZtcz8UQRRHFHcUfBSAFACgwykAocYCZWxGFEkUcQAAoFciZQBhAlAUAAAAAGAUciJyb3cAAAFsclYUWhTlIWZ0AKC6IWkiZ2h0AACguyGAAlJTYWNkAGgUaRRrFG8UcxSuYACgyCRzAHQAAKCbIukhcmMAoJoi4SFzaACgnSJuImludAAAoBAqaQBkAACg7yrjIWlyAKDCKfUhYnN1oGMmaQB0AACgYybsApMUmhS2FAAAwxRvAG4AZaA6APGgVCKrAG0CnxQAAAAAoxRhAHSgLABAYAChASJmbKcUqRTuABMNZQAAAW14rhSyFOUhbnQAoAEiZQDzANIB5wG6FAAAwBRkoEUibwB0AACgbSpuAPQAzAGAAWZyeQDIFMsUzhQA4DXYVN1vAOQA1wEAgakAO3MeAdMUcgAAoBchAAFhb9oU3hRyAHIAAKC1IXMAcwAAoBcnAAFjdeYU6hRyAADgNdi43AABYnDuFPIUZaDPKgCg0SploNAqAKDSKuQhb3QAoO8igANkZWxwcnZ3AAYVEBUbFSEVRBVlFYQV4SFycgABbHIMFQ4VAKA4KQCgNSlwAhYVAAAAABkVcgAAoN4iYwAAoN8i4SFycnCgtiEAoD0pgKIqImJjZG9zACsVMBU6FT4VQRVyImNhcAAAoEgqAAFhdTQVNxVwAACgRipwAACgSipvAHQAAKCNInIAAKBFKgDgKiIA/gACYWxydksVURVuFXMVcgByAG2gtyEAoDwpeQCAAWV2dwBYFWUVaRVxAHACXxUAAAAAYxVyAGUA4wAXFXUA4wAZFWUAZQAAoM4iZSJkZ2UAAKDPImUAbgA7gKQApEBlI2Fycm93AAABbHJ7FX8V5SFmdACgtiFpImdodAAAoLchZQDkAG0VAAFjaYsVkRVvAG4AaQBuAPQAkwFuAHQAAKAxImwiY3R5AACgLSOACUFIYWJjZGVmaGlqbG9yc3R1d3oAuBW7Fb8V1RXgFegV+RUKFhUWHxZUFlcWZRbFFtsW7xb7FgUXChdyAPIAtAJhAHIAAKBlKQACZ2xyc8YVyhXOFdAV5yFlcgCgICDlIXRoAKA4IfIA9QxoAHagECAAoKMiawHZFd4VYSJyb3cAAKAPKWEA4wBfAgABYXnkFecV8iFvbg9hNGQAoUYhYW/tFfQVAAFnciEC8RVyAACgyiF0InNlcQAAoHcqgAFnbG0A/xUCFgUWO4CwALBAdABhALRjcCJ0eXYAAKCxKQABaXIOFhIW8yFodACgfykA4DXYId1hAHIAAAFschsWHRYAoMMhAKDCIYACYWVnc3YAKBauAjYWOhY+Fm0AAKHEIm9zLhY0Fm4AZABzoMQi9SFpdACgZiZhIm1tYQDdY2kAbgAAoPIiAKH3AGlvQxZRFmQAZQAAgfcAO29KFksW90BuI3RpbWVzAACgxyJuAPgAUBZjAHkAUmRjAG8CXhYAAAAAYhZyAG4AAKAeI28AcAAAoA0jgAJscHR1dwBuFnEWdRaSFp4W7CFhciRgZgAA4DXYVd0AotkCZW1wc30WhBaJFo0WcQBkoFAibwB0AACgUSJpIm51cwAAoDgi7CF1cwCgFCLxInVhcmUAoKEiYgBsAGUAYgBhAHIAdwBlAGQAZwDlANcAbgCAAWFkaAClFqoWtBZyAHIAbwD3APUMbwB3AG4AYQByAHIAbwB3APMA8xVhI3Jwb29uAAABbHK8FsAWZQBmAPQAHBZpAGcAaAD0AB4WYgHJFs8WawBhAHIAbwD3AJILbwLUFgAAAADYFnIAbgAAoB8jbwBwAACgDCOAAWNvdADhFukW7BYAAXJ55RboFgDgNdi53FVkbAAAoPYp8iFvaxFhAAFkcvMW9xZvAHQAAKDxImkA5qC/JVsSAAFhaP8WAhdyAPIANQNhAPIA1wvhIm5nbGUAoKYpAAFjaQ4XEBd5AF9k5yJyYXJyAKD/JwAJRGFjZGVmZ2xtbm9wcXJzdHV4MRc4F0YXWxcyBF4XaRd5F40XrBe0F78X2RcVGCEYLRg1GEAYAAFEbzUXgRZvAPQA+BUAAWNzPBdCF3UAdABlADuA6QDpQPQhZXIAoG4qAAJhaW95TRdQF1YXWhfyIW9uG2FyAGOgViI7gOoA6kDsIW9uAKBVIk1kbwB0ABdhAAFEcmIXZhdvAHQAAKBSIgDgNdgi3XKhmipuF3QXYQB2AGUAO4DoAOhAZKCWKm8AdAAAoJgqgKGZKmlscwCAF4UXhxfuInRlcnMAoOcjAKATIWSglSpvAHQAAKCXKoABYXBzAJMXlheiF2MAcgATYXQAeQBzogUinxcAAAAAoRdlAHQAAKAFInAAMaADIDMBqRerFwCgBCAAoAUgAAFnc7AXsRdLYXAAAKACIAABZ3C4F7sXbwBuABlhZgAA4DXYVt2AAWFscwDFF8sXzxdyAHOg1SJsAACg4yl1AHMAAKBxKmkAAKG1A2x21RfYF28AbgC1Y/VjAAJjc3V24BfoF/0XEBgAAWlv5BdWF3IAYwAAoFYiaQLuFwAAAADwF+0ADQThIW50AAFnbPUX+Rd0AHIAAKCWKuUhc3MAoJUqgAFhZWkAAxgGGAoYbABzAD1gcwB0AACgXyJ2AESgYSJEAACgeCrwImFyc2wAoOUpAAFEYRkYHRhvAHQAAKBTInIAcgAAoHEpgAFjZGkAJxgqGO0XcgAAoC8hbwD0AIwCAAFhaDEYMhi3YzuA8ADwQAABbXI5GD0YbAA7gOsA60BvAACgrCCAAWNpcABGGEgYSxhsACFgcwD0ACwEAAFlb08YVxhjAHQAYQB0AGkAbwDuABoEbgBlAG4AdABpAGEAbADlADME4Ql1GAAAgRgAAIMYiBgAAAAAoRilGAAAqhgAALsYvhjRGAAA1xgnGWwAbABpAG4AZwBkAG8AdABzAGUA8QBlF3kARGRtImFsZQAAoEAmgAFpbHIAjRiRGJ0Y7CFpZwCgA/tpApcYAAAAAJoYZwAAoAD7aQBnAACgBPsA4DXYI93sIWlnAKAB++whaWcA4GYAagCAAWFsdACvGLIYthh0AACgbSZpAGcAAKAC+24AcwAAoLElbwBmAJJh8AHCGAAAxhhmAADgNdhX3QABYWvJGMwYbADsAGsEdqDUIgCg2SphI3J0aW50AACgDSoAAWFv2hgiGQABY3PeGB8ZsQPnGP0YBRkSGRUZAAAdGbID7xjyGPQY9xj5GAAA+xg7gL0AvUAAoFMhO4C8ALxAAKBVIQCgWSEAoFshswEBGQAAAxkAoFQhAKBWIbQCCxkOGQAAAAAQGTuAvgC+QACgVyEAoFwhNQAAoFghtgEZGQAAGxkAoFohAKBdITgAAKBeIWwAAKBEIHcAbgAAoCIjYwByAADgNdi73IAIRWFiY2RlZmdpamxub3JzdHYARhlKGVoZXhlmGWkZkhmWGZkZnRmgGa0ZxhnLGc8Z4BkjGmygZyIAoIwqgAFjbXAAUBlTGVgZ9SF0ZfVhbQBhAOSgswM6FgCghipyImV2ZQAfYQABaXliGWUZcgBjAB1hM2RvAHQAIWGAoWUibHFzAMYEcBl6GfGhZSLOBAAAdhlsAGEAbgD0AN8EgKF+KmNkbACBGYQZjBljAACgqSpvAHQAb6CAKmyggioAoIQqZeDbIgD+cwAAoJQqcgAA4DXYJN3noGsirATtIWVsAKA3IWMAeQBTZIChdyJFYWoApxmpGasZAKCSKgCgpSoAoKQqAAJFYWVztBm2Gb0ZwhkAoGkicABwoIoq8iFveACgiipxoIgq8aCIKrUZaQBtAACg5yJwAGYAAOA12FjdYQB2AOUAYwIAAWNp0xnWGXIAAKAKIW0AAKFzImVs3BneGQCgjioAoJAqAIM+ADtjZGxxco0E6xn0GfgZ/BkBGgABY2nvGfEZAKCnKnIAAKB6Km8AdAAAoNci0CFhcgCglSl1ImVzdAAAoHwqgAJhZGVscwAKGvQZFhrVBCAa8AEPGgAAFBpwAHIAbwD4AFkZcgAAoHgpcQAAAWxxxAQbGmwAZQBzAPMASRlpAO0A5AQAAWVuJxouGnIjdG5lcXEAAOBpIgD+xQAsGgAFQWFiY2Vma29zeUAaQxpmGmoabRqDGocalhrCGtMacgDyAMwCAAJpbG1yShpOGlAaVBpyAHMA8ABxD2YAvWBpAGwA9AASBQABZHJYGlsaYwB5AEpkAKGUIWN3YBpkGmkAcgAAoEgpAKCtIWEAcgAAoA8h6SFyYyVhgAFhbHIAcxp7Gn8a8iF0c3WgZSZpAHQAAKBlJuwhaXAAoCYg4yFvbgCguSJyAADgNdgl3XMAAAFld4wakRphInJvdwAAoCUpYSJyb3cAAKAmKYACYW1vcHIAnxqjGqcauhq+GnIAcgAAoP8h9CFodACgOyJrAAABbHKsGrMaZSRmdGFycm93AACgqSHpJGdodGFycm93AKCqIWYAAOA12Fnd4iFhcgCgFSCAAWNsdADIGswa0BpyAADgNdi93GEAcwDoAGka8iFvaydhAAFicNca2xr1IWxsAKBDIOghZW4AoBAg4Qr2GgAA/RoAAAgbExsaGwAAIRs7GwAAAAA+G2IbmRuVG6sbAACyG80b0htjAHUAdABlADuA7QDtQAChYyBpeQEbBhtyAGMAO4DuAO5AOGQAAWN4CxsNG3kANWRjAGwAO4ChAKFAAAFmcssCFhsA4DXYJt1yAGEAdgBlADuA7ADsQIChSCFpbm8AJxsyGzYbAAFpbisbLxtuAHQAAKAMKnQAAKAtIuYhaW4AoNwpdABhAACgKSHsIWlnM2GAAWFvcABDG1sbXhuAAWNndABJG0sbWRtyACthgAFlbHAAcQVRG1UbaQBuAOUAyAVhAHIA9AByBWgAMWFmAACgtyJlAGQAtWEAoggiY2ZvdGkbbRt1G3kb4SFyZQCgBSFpAG4AdKAeImkAZQAAoN0pZABvAPQAWxsAoisiY2VscIEbhRuPG5QbYQBsAACguiIAAWdyiRuNG2UAcgDzACMQ4wCCG2EicmhrAACgFyryIW9kAKA8KgACY2dwdJ8boRukG6gbeQBRZG8AbgAvYWYAAOA12FrdYQC5Y3UAZQBzAHQAO4C/AL9AAAFjabUbuRtyAADgNdi+3G4AAKIIIkVkc3bCG8QbyBvQAwCg+SJvAHQAAKD1Inag9CIAoPMiaaBiIOwhZGUpYesB1hsAANkbYwB5AFZkbAA7gO8A70AAA2NmbW9zdeYb7hvyG/Ub+hsFHAABaXnqG+0bcgBjADVhOWRyAADgNdgn3eEhdGg3YnAAZgAA4DXYW93jAf8bAAADHHIAAOA12L/c8iFjeVhk6yFjeVRkAARhY2ZnaGpvcxUcGhwiHCYcKhwtHDAcNRzwIXBhdqC6A/BjAAFleR4cIRzkIWlsN2E6ZHIAAOA12CjdciJlZW4AOGFjAHkARWRjAHkAXGRwAGYAAOA12FzdYwByAADgNdjA3IALQUJFSGFiY2RlZmdoamxtbm9wcnN0dXYAXhxtHHEcdRx5HN8cBx0dHTwd3B3tHfEdAR4EHh0eLB5FHrwewx7hHgkfPR9LH4ABYXJ0AGQcZxxpHHIA8gBvB/IAxQLhIWlsAKAbKeEhcnIAoA4pZ6BmIgCgiyphAHIAAKBiKWMJjRwAAJAcAACVHAAAAAAAAAAAAACZHJwcAACmHKgcrRwAANIc9SF0ZTph7SJwdHl2AKC0KXIAYQDuAFoG4iFkYbtjZwAAoegnZGyhHKMcAKCRKeUAiwYAoIUqdQBvADuAqwCrQHIAgKOQIWJmaGxwc3QAuhy/HMIcxBzHHMoczhxmoOQhcwAAoB8pcwAAoB0p6wCyGnAAAKCrIWwAAKA5KWkAbQAAoHMpbAAAoKIhAKGrKmFl1hzaHGkAbAAAoBkpc6CtKgDgrSoA/oABYWJyAOUc6RztHHIAcgAAoAwpcgBrAACgcicAAWFr8Rz4HGMAAAFla/Yc9xx7YFtgAAFlc/wc/hwAoIspbAAAAWR1Ax0FHQCgjykAoI0pAAJhZXV5Dh0RHRodHB3yIW9uPmEAAWRpFR0YHWkAbAA8YewAowbiAPccO2QAAmNxcnMkHScdLB05HWEAAKA2KXUAbwDyoBwgqhEAAWR1MB00HeghYXIAoGcpcyJoYXIAAKBLKWgAAKCyIQCiZCJmZ3FzRB1FB5Qdnh10AIACYWhscnQATh1WHWUdbB2NHXIicm93AHSgkCFhAOkAzxxhI3Jwb29uAAABZHVeHWId7yF3bgCgvSFwAACgvCHlJGZ0YXJyb3dzAKDHIWkiZ2h0AIABYWhzAHUdex2DHXIicm93APOglCGdBmEAcgBwAG8AbwBuAPMAzgtxAHUAaQBnAGEAcgByAG8A9wBlGugkcmVldGltZXMAoMsi8aFkIk0HAACaHWwAYQBuAPQAXgcAon0qY2Rnc6YdqR2xHbcdYwAAoKgqbwB0AG+gfypyoIEqAKCDKmXg2iIA/nMAAKCTKoACYWRlZ3MAwB3GHcod1h3ZHXAAcAByAG8A+ACmHG8AdAAAoNYicQAAAWdxzx3SHXQA8gBGB2cAdADyAHQcdADyAFMHaQDtAGMHgAFpbHIA4h3mHeod8yFodACgfClvAG8A8gDKBgDgNdgp3UWgdiIAoJEqYQH1Hf4dcgAAAWR1YB35HWygvCEAoGopbABrAACghCVjAHkAWWQAomoiYWNodAweDx4VHhkecgDyAGsdbwByAG4AZQDyAGAW4SFyZACgaylyAGkAAKD6JQABaW8hHiQe5CFvdEBh9SFzdGGgsCPjIWhlAKCwIwACRWFlczMeNR48HkEeAKBoInAAcKCJKvIhb3gAoIkqcaCHKvGghyo0HmkAbQAAoOYiAARhYm5vcHR3elIeXB5fHoUelh6mHqsetB4AAW5yVh5ZHmcAAKDsJ3IAAKD9IXIA6wCwBmcAgAFsbXIAZh52Hnse5SFmdAABYXKIB2weaQBnAGgAdABhAHIAcgBvAPcAkwfhInBzdG8AoPwnaQBnAGgAdABhAHIAcgBvAPcAmgdwI2Fycm93AAABbHKNHpEeZQBmAPQAxhxpImdodAAAoKwhgAFhZmwAnB6fHqIecgAAoIUpAOA12F3ddQBzAACgLSppIm1lcwAAoDQqYQGvHrMecwB0AACgFyLhAIoOZaHKJbkeRhLuIWdlAKDKJWEAcgBsoCgAdAAAoJMpgAJhY2htdADMHs8e1R7bHt0ecgDyAJ0GbwByAG4AZQDyANYWYQByAGSgyyEAoG0pAKAOIHIAaQAAoL8iAANhY2hpcXTrHu8e1QfzHv0eBh/xIXVvAKA5IHIAAOA12MHcbQDloXIi+h4AAPweAKCNKgCgjyoAAWJ19xwBH28AcqAYIACgGiDyIW9rQmEAhDwAO2NkaGlscXJCBhcfxh0gHyQfKB8sHzEfAAFjaRsfHR8AoKYqcgAAoHkqcgBlAOUAkx3tIWVzAKDJIuEhcnIAoHYpdSJlc3QAAKB7KgABUGk1HzkfYQByAACglillocMlAgdfEnIAAAFkdUIfRx9zImhhcgAAoEop6CFhcgCgZikAAWVuTx9WH3IjdG5lcXEAAOBoIgD+xQBUHwAHRGFjZGVmaGlsbm9wc3VuH3Ifoh+rH68ftx+7H74f5h/uH/MfBwj/HwsgxCFvdACgOiIAAmNscHJ5H30fiR+eH3IAO4CvAK9AAAFldIEfgx8AoEImZaAgJ3MAZQAAoCAnc6CmIXQAbwCAoaYhZGx1AJQfmB+cH28AdwDuAHkDZQBmAPQA6gbwAOkO6yFlcgCgriUAAW95ph+qH+0hbWEAoCkqPGThIXNoAKAUIOElc3VyZWRhbmdsZQCgISJyAADgNdgq3W8AAKAnIYABY2RuAMQfyR/bH3IAbwA7gLUAtUBhoiMi0B8AANMf1x9zAPQAKxFpAHIAAKDwKm8AdAA7gLcAt0B1AHMA4qESIh4TAADjH3WgOCIAoCoqYwHqH+0fcAAAoNsq8gB+GnAAbAB1APMACAgAAWRw9x/7H+UhbHMAoKciZgAA4DXYXt0AAWN0AyAHIHIAAOA12MLc8CFvcwCgPiJsobwDECAVIPQiaW1hcACguCJhAPAAEyAADEdMUlZhYmNkZWZnaGlqbG1vcHJzdHV2dzwgRyBmIG0geSCqILgg2iDeIBEhFSEyIUMhTSFQIZwhnyHSIQAiIyKLIrEivyIUIwABZ3RAIEMgAODZIjgD9uBrItIgBwmAAWVsdABNIF8gYiBmAHQAAAFhclMgWCByInJvdwAAoM0h6SRnaHRhcnJvdwCgziEA4NgiOAP24Goi0iBfCekkZ2h0YXJyb3cAoM8hAAFEZHEgdSDhIXNoAKCvIuEhc2gAoK4igAJiY25wdACCIIYgiSCNIKIgbABhAACgByL1IXRlRGFnAADgICLSIACiSSJFaW9wlSCYIJwgniAA4HAqOANkAADgSyI4A3MASWFyAG8A+AAyCnUAcgBhoG4mbADzoG4mmwjzAa8gAACzIHAAO4CgAKBAbQBwAOXgTiI4AyoJgAJhZW91eQDBIMogzSDWINkg8AHGIAAAyCAAoEMqbwBuAEhh5CFpbEZhbgBnAGSgRyJvAHQAAOBtKjgDcAAAoEIqPWThIXNoAKATIACjYCJBYWRxc3jpIO0g+SD+IAIhDCFyAHIAAKDXIXIAAAFocvIg9SBrAACgJClvoJch9wAGD28AdAAA4FAiOAN1AGkA9gC7CAABZWkGIQohYQByAACgKCntAN8I6SFzdPOgBCLlCHIAAOA12CvdAAJFZXN0/wgcISshLiHxoXEiIiEAABMJ8aFxIgAJAAAnIWwAYQBuAPQAEwlpAO0AGQlyoG8iAKBvIoABQWFwADghOyE/IXIA8gBeIHIAcgAAoK4hYQByAACg8ipzogsiSiEAAAAAxwtkoPwiAKD6ImMAeQBaZIADQUVhZGVzdABcIV8hYiFmIWkhkyGWIXIA8gBXIADgZiI4A3IAcgAAoJohcgAAoCUggKFwImZxcwBwIYQhjiF0AAABYXJ1IXohcgByAG8A9wBlIWkAZwBoAHQAYQByAHIAbwD3AD4h8aFwImAhAACKIWwAYQBuAPQAZwlz4H0qOAMAoG4iaQDtAG0JcqBuImkA5aDqIkUJaQDkADoKAAFwdKMhpyFmAADgNdhf3YCBrAA7aW4AriGvIcchrEBuAIChCSJFZHYAtyG6Ib8hAOD5IjgDbwB0AADg9SI4A+EB1gjEIcYhAKD3IgCg9iJpAHagDCLhAagJzyHRIQCg/iIAoP0igAFhb3IA2CHsIfEhcgCAoSYiYXN0AOAh5SHpIWwAbABlAOwAywhsAADg/SrlIADgAiI4A2wiaW50AACgFCrjoYAi9yEAAPohdQDlAJsJY+CvKjgDZaCAIvEAkwkAAkFhaXQHIgoiFyIeInIA8gBsIHIAcgAAoZshY3cRIhQiAOAzKTgDAOCdITgDZyRodGFycm93AACgmyFyAGkA5aDrIr4JgANjaGltcHF1AC8iPCJHIpwhTSJQIloigKGBImNlcgA2Iv0JOSJ1AOUABgoA4DXYw9zvIXJ0bQKdIQAAAABEImEAcgDhAOEhbQBloEEi8aBEIiYKYQDyAMsIcwB1AAABYnBWIlgi5QDUCeUA3wmAAWJjcABgInMieCKAoYQiRWVzAGci7glqIgDgxSo4A2UAdABl4IIi0iBxAPGgiCJoImMAZaCBIvEA/gmAoYUiRWVzAH8iFgqCIgDgxio4A2UAdABl4IMi0iBxAPGgiSKAIgACZ2lscpIilCKaIpwi7AAMCWwAZABlADuA8QDxQOcAWwlpI2FuZ2xlAAABbHKkIqoi5SFmdGWg6iLxAEUJaSJnaHQAZaDrIvEAvgltoL0DAKEjAGVzuCK8InIAbwAAoBYhcAAAoAcggARESGFkZ2lscnMAziLSItYi2iLeIugi7SICIw8j4SFzaACgrSLhIXJyAKAEKXAAAOBNItIg4SFzaACgrCIAAWV04iLlIgDgZSLSIADgPgDSIG4iZmluAACg3imAAUFldADzIvci+iJyAHIAAKACKQDgZCLSIHLgPADSIGkAZQAA4LQi0iAAAUF0BiMKI3IAcgAAoAMp8iFpZQDgtSLSIGkAbQAA4Dwi0iCAAUFhbgAaIx4jKiNyAHIAAKDWIXIAAAFociMjJiNrAACgIylvoJYh9wD/DuUhYXIAoCcpUxJqFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVCMAAF4jaSN/I4IjjSOeI8AUAAAAAKYjwCMAANoj3yMAAO8jHiQvJD8kRCQAAWNzVyNsFHUAdABlADuA8wDzQAABaXlhI2cjcgBjoJoiO4D0APRAPmSAAmFiaW9zAHEjdCN3I3EBeiNzAOgAdhTsIWFjUWF2AACgOCrvIWxkAKC8KewhaWdTYQABY3KFI4kjaQByAACgvykA4DXYLN1vA5QjAAAAAJYjAACcI24A22JhAHYAZQA7gPIA8kAAoMEpAAFibaEjjAphAHIAAKC1KQACYWNpdKwjryO6I70jcgDyAFkUAAFpcrMjtiNyAACgvinvIXNzAKC7KW4A5QDZCgCgwCmAAWFlaQDFI8gjyyNjAHIATWFnAGEAyWOAAWNkbgDRI9Qj1iPyIW9uv2MAoLYpdQDzAHgBcABmAADgNdhg3YABYWVsAOQj5yPrI3IAAKC3KXIAcAAAoLkpdQDzAHwBAKMoImFkaW9zdvkj/CMPJBMkFiQbJHIA8gBeFIChXSplZm0AAyQJJAwkcgBvoDQhZgAAoDQhO4CqAKpAO4C6ALpA5yFvZgCgtiJyAACgVipsIm9wZQAAoFcqAKBbKoABY2xvACMkJSQrJPIACCRhAHMAaAA7gPgA+EBsAACgmCJpAGwBMyQ4JGQAZQA7gPUA9UBlAHMAYaCXInMAAKA2Km0AbAA7gPYA9kDiIWFyAKA9I+EKXiQAAHokAAB8JJQkAACYJKkkAAAAALUkEQsAAPAkAAAAAAQleiUAAIMlcgCAoSUiYXN0AGUkbyQBCwCBtgA7bGokayS2QGwAZQDsABgDaQJ1JAAAAAB4JG0AAKDzKgCg/Sp5AD9kcgCAAmNpbXB0AIUkiCSLJJkSjyRuAHQAJWBvAGQALmBpAGwAAKAwIOUhbmsAoDEgcgAA4DXYLd2AAWltbwCdJKAkpCR2oMYD1WNtAGEA9AD+B24AZQAAoA4m9KHAA64kAAC0JGMjaGZvcmsAAKDUItZjAAFhdbgkxCRuAAABY2u9JMIkawBooA8hAKAOIfYAaRpzAACkKwBhYmNkZW1zdNMkIRPXJNsk4STjJOck6yTjIWlyAKAjKmkAcgAAoCIqAAFvdYsW3yQAoCUqAKByKm4AO4CxALFAaQBtAACgJip3AG8AAKAnKoABaXB1APUk+iT+JO4idGludACgFSpmAADgNdhh3W4AZAA7gKMAo0CApHoiRWFjZWlub3N1ABMlFSUYJRslTCVRJVklSSV1JQCgsypwAACgtyp1AOUAPwtjoK8qgKJ6ImFjZW5zACclLSU0JTYlSSVwAHAAcgBvAPgAFyV1AHIAbAB5AGUA8QA/C/EAOAuAAWFlcwA8JUElRSXwInByb3gAoLkqcQBxAACgtSppAG0AAKDoImkA7QBEC20AZQDzoDIgIguAAUVhcwBDJVclRSXwAEAlgAFkZnAATwtfJXElgAFhbHMAZSVpJW0l7CFhcgCgLiPpIW5lAKASI/UhcmYAoBMjdKAdIu8AWQvyIWVsAKCwIgABY2l9JYElcgAA4DXYxdzIY24iY3NwAACgCCAAA2Zpb3BzdZElKxuVJZolnyWkJXIAAOA12C7dcABmAADgNdhi3XIiaW1lAACgVyBjAHIAAOA12MbcgAFhZW8AqiW6JcAldAAAAWVpryW2JXIAbgBpAG8AbgDzABkFbgB0AACgFipzAHQAZaA/APEACRj0AG0LgApBQkhhYmNkZWZoaWxtbm9wcnN0dXgA4yXyJfYl+iVpJpAmpia9JtUm5ib4JlonaCdxJ3UnnietJ7EnyCfiJ+cngAFhcnQA6SXsJe4lcgDyAJkM8gD6AuEhaWwAoBwpYQByAPIA3BVhAHIAAKBkKYADY2RlbnFydAAGJhAmEyYYJiYmKyZaJgABZXUKJg0mAOA9IjEDdABlAFVhaQDjACAN7SJwdHl2AKCzKWcAgKHpJ2RlbAAgJiImJCYAoJIpAKClKeUA9wt1AG8AO4C7ALtAcgAApZIhYWJjZmhscHN0dz0mQCZFJkcmSiZMJk4mUSZVJlgmcAAAoHUpZqDlIXMAAKAgKQCgMylzAACgHinrALka8ACVHmwAAKBFKWkAbQAAoHQpbAAAoKMhAKCdIQABYWleJmImaQBsAACgGilvAG6gNiJhAGwA8wB2C4ABYWJyAG8mciZ2JnIA8gAvEnIAawAAoHMnAAFha3omgSZjAAABZWt/JoAmfWBdYAABZXOFJocmAKCMKWwAAAFkdYwmjiYAoI4pAKCQKQACYWV1eZcmmiajJqUm8iFvbllhAAFkaZ4moSZpAGwAV2HsAA8M4gCAJkBkAAJjbHFzrSawJrUmuiZhAACgNylkImhhcgAAoGkpdQBvAPKgHSCjAWgAAKCzIYABYWNnAMMm0iaUC2wAgKEcIWlwcwDLJs4migxuAOUAoAxhAHIA9ADaC3QAAKCtJYABaWxyANsm3ybjJvMhaHQAoH0pbwBvAPIANgwA4DXYL90AAWFv6ib1JnIAAAFkde8m8SYAoMEhbKDAIQCgbCl2oMED8WOAAWducwD+Jk4nUCdoAHQAAANhaGxyc3QKJxInISc1Jz0nRydyInJvdwB0oJIhYQDpAFYmYSNycG9vbgAAAWR1GiceJ28AdwDuAPAmcAAAoMAh5SFmdAABYWgnJy0ncgByAG8AdwDzAAkMYQByAHAAbwBvAG4A8wATBGklZ2h0YXJyb3dzAACgySFxAHUAaQBnAGEAcgByAG8A9wBZJugkcmVldGltZXMAoMwiZwDaYmkAbgBnAGQAbwB0AHMAZQDxABwYgAFhaG0AYCdjJ2YncgDyAAkMYQDyABMEAKAPIG8idXN0AGGgsSPjIWhlAKCxI+0haWQAoO4qAAJhYnB0fCeGJ4knmScAAW5ygCeDJ2cAAKDtJ3IAAKD+IXIA6wAcDIABYWZsAI8nkieVJ3IAAKCGKQDgNdhj3XUAcwAAoC4qaSJtZXMAAKA1KgABYXCiJ6gncgBnoCkAdAAAoJQp7yJsaW50AKASKmEAcgDyADwnAAJhY2hxuCe8J6EMwCfxIXVvAKA6IHIAAOA12MfcAAFidYAmxCdvAPKgGSCoAYABaGlyAM4n0ifWJ3IAZQDlAE0n7SFlcwCgyiJpAIChuSVlZmwAXAxjEt4n9CFyaQCgzinsInVoYXIAoGgpAKAeIWENBSgJKA0oSyhVKIYoAACLKLAoAAAAAOMo5ygAABApJCkxKW0pcSmHKaYpAACYKgAAAACxKmMidXRlAFthcQB1AO8ABR+ApHsiRWFjZWlucHN5ABwoHignKCooLygyKEEoRihJKACgtCrwASMoAAAlKACguCpvAG4AYWF1AOUAgw1koLAqaQBsAF9hcgBjAF1hgAFFYXMAOCg6KD0oAKC2KnAAAKC6KmkAbQAAoOki7yJsaW50AKATKmkA7QCIDUFkbwB0AGKixSKRFgAAAABTKACgZiqAA0FhY21zdHgAYChkKG8ocyh1KHkogihyAHIAAKDYIXIAAAFocmkoayjrAJAab6CYIfcAzAd0ADuApwCnQGkAO2D3IWFyAKApKW0AAAFpbn4ozQBuAHUA8wDOAHQAAKA2J3IA7+A12DDdIxkAAmFjb3mRKJUonSisKHIAcAAAoG8mAAFoeZkonChjAHkASWRIZHIAdABtAqUoAAAAAKgoaQDkAFsPYQByAGEA7ABsJDuArQCtQAABZ22zKLsobQBhAAChwwNmdroouijCY4CjPCJkZWdsbnByAMgozCjPKNMo1yjaKN4obwB0AACgairxoEMiCw5FoJ4qAKCgKkWgnSoAoJ8qZQAAoEYi7CF1cwCgJCrhIXJyAKByKWEAcgDyAPwMAAJhZWl07Sj8KAEpCCkAAWxz8Sj4KGwAcwBlAHQAbQDpAH8oaABwAACgMyrwImFyc2wAoOQpAAFkbFoPBSllAACgIyNloKoqc6CsKgDgrCoA/oABZmxwABUpGCkfKfQhY3lMZGKgLwBhoMQpcgAAoD8jZgAA4DXYZN1hAAABZHIoKRcDZQBzAHWgYCZpAHQAAKBgJoABY3N1ADYpRilhKQABYXU6KUApcABzoJMiAOCTIgD+cABzoJQiAOCUIgD+dQAAAWJwSylWKQChjyJlcz4NUCllAHQAZaCPIvEAPw0AoZAiZXNIDVspZQB0AGWgkCLxAEkNAKGhJWFmZilbBHIAZQFrKVwEAKChJWEAcgDyAAMNAAJjZW10dyl7KX8pgilyAADgNdjI3HQAbQDuAM4AaQDsAAYpYQByAOYAVw0AAWFyiimOKXIA5qAGJhESAAFhbpIpoylpImdodAAAAWVwmSmgKXAAcwBpAGwAbwDuANkXaADpAKAkcwCvYIACYmNtbnAArin8KY4NJSooKgCkgiJFZGVtbnByc7wpvinCKcgpzCnUKdgp3CkAoMUqbwB0AACgvSpkoIYibwB0AACgwyr1IWx0AKDBKgABRWXQKdIpAKDLKgCgiiLsIXVzAKC/KuEhcnIAoHkpgAFlaXUA4inxKfQpdAAAoYIiZW7oKewpcQDxoIYivSllAHEA8aCKItEpbQAAoMcqAAFicPgp+ikAoNUqAKDTKmMAgKJ7ImFjZW5zAAcqDSoUKhYqRihwAHAAcgBvAPgAIyh1AHIAbAB5AGUA8QCDDfEAfA2AAWFlcwAcKiIqPShwAHAAcgBvAPgAPChxAPEAOShnAACgaiYApoMiMTIzRWRlaGxtbnBzPCo/KkIqRSpHKlIqWCpjKmcqaypzKncqO4C5ALlAO4CyALJAO4CzALNAAKDGKgABb3NLKk4qdAAAoL4qdQBiAACg2CpkoIcibwB0AACgxCpzAAABb3VdKmAqbAAAoMknYgAAoNcq4SFycgCgeyn1IWx0AKDCKgABRWVvKnEqAKDMKgCgiyLsIXVzAKDAKoABZWl1AH0qjCqPKnQAAKGDImVugyqHKnEA8aCHIkYqZQBxAPGgiyJwKm0AAKDIKgABYnCTKpUqAKDUKgCg1iqAAUFhbgCdKqEqrCpyAHIAAKDZIXIAAAFocqYqqCrrAJUab6CZIfcAxQf3IWFyAKAqKWwAaQBnADuA3wDfQOELzyrZKtwq6SrsKvEqAAD1KjQrAAAAAAAAAAAAAEwrbCsAAHErvSsAAAAAAADRK3IC1CoAAAAA2CrnIWV0AKAWI8RjcgDrAOUKgAFhZXkA4SrkKucq8iFvbmVh5CFpbGNhQmRvAPQAIg5sInJlYwAAoBUjcgAA4DXYMd0AAmVpa2/7KhIrKCsuK/IBACsAAAkrZQAAATRm6g0EK28AcgDlAOsNYQBzorgDECsAAAAAEit5AG0A0WMAAWNuFislK2sAAAFhcxsrIStwAHAAcgBvAPgAFw5pAG0AAKA8InMA8AD9DQABYXMsKyEr8AAXDnIAbgA7gP4A/kDsATgrOyswG2QA5QBnAmUAcwCAgdcAO2JkAEMrRCtJK9dAYaCgInIAAKAxKgCgMCqAAWVwcwBRK1MraSvhAAkh4qKkIlsrXysAAAAAYytvAHQAAKA2I2kAcgAAoPEqb+A12GXdcgBrAACg2irhAHgociJpbWUAAKA0IIABYWlwAHYreSu3K2QA5QC+DYADYWRlbXBzdACFK6MrmiunK6wrsCuzK24iZ2xlAACitSVkbHFykCuUK5ornCvvIXduAKC/JeUhZnRloMMl8QACBwCgXCJpImdodABloLkl8QBdDG8AdAAAoOwlaSJudXMAAKA6KuwhdXMAoDkqYgAAoM0p6SFtZQCgOyrlInppdW0AoOIjgAFjaHQAwivKK80rAAFyecYrySsA4DXYydxGZGMAeQBbZPIhb2tnYQABaW/UK9creAD0ANERaCJlYWQAAAFsct4r5ytlAGYAdABhAHIAcgBvAPcAXQbpJGdodGFycm93AKCgIQAJQUhhYmNkZmdobG1vcHJzdHV3CiwNLBEsHSwnLDEsQCxLLFIsYix6LIQsjyzLLOgs7Sz/LAotcgDyAAkDYQByAACgYykAAWNyFSwbLHUAdABlADuA+gD6QPIACQ1yAOMBIywAACUseQBeZHYAZQBtYQABaXkrLDAscgBjADuA+wD7QENkgAFhYmgANyw6LD0scgDyANEO7CFhY3FhYQDyAOAOAAFpckQsSCzzIWh0AKB+KQDgNdgy3XIAYQB2AGUAO4D5APlAYQFWLF8scgAAAWxyWixcLACgvyEAoL4hbABrAACggCUAAWN0Zix2LG8CbCwAAAAAcyxyAG4AZaAcI3IAAKAcI28AcAAAoA8jcgBpAACg+CUAAWFsfiyBLGMAcgBrYTuAqACoQAABZ3CILIssbwBuAHNhZgAA4DXYZt0AA2FkaGxzdZksniynLLgsuyzFLHIAcgBvAPcACQ1vAHcAbgBhAHIAcgBvAPcA2A5hI3Jwb29uAAABbHKvLLMsZQBmAPQAWyxpAGcAaAD0AF0sdQDzAKYOaQAAocUDaGzBLMIs0mNvAG4AxWPwI2Fycm93cwCgyCGAAWNpdADRLOEs5CxvAtcsAAAAAN4scgBuAGWgHSNyAACgHSNvAHAAAKAOI24AZwBvYXIAaQAAoPklYwByAADgNdjK3IABZGlyAPMs9yz6LG8AdAAAoPAi7CFkZWlhaQBmoLUlAKC0JQABYW0DLQYtcgDyAMosbAA7gPwA/EDhIm5nbGUAoKcpgAdBQkRhY2RlZmxub3Byc3oAJy0qLTAtNC2bLZ0toS2/LcMtxy3TLdgt3C3gLfwtcgDyABADYQByAHag6CoAoOkqYQBzAOgA/gIAAW5yOC08LechcnQAoJwpgANla25wcnN0AJkpSC1NLVQtXi1iLYItYQBwAHAA4QAaHG8AdABoAGkAbgDnAKEXgAFoaXIAoSmzJFotbwBwAPQAdCVooJUh7wD4JgABaXVmLWotZwBtAOEAuygAAWJwbi14LXMjZXRuZXEAceCKIgD+AODLKgD+cyNldG5lcQBx4IsiAP4A4MwqAP4AAWhyhi2KLWUAdADhABIraSNhbmdsZQAAAWxyki2WLeUhZnQAoLIiaSJnaHQAAKCzInkAMmThIXNoAKCiIoABZWxyAKcttC24LWKiKCKuLQAAAACyLWEAcgAAoLsicQAAoFoi7CFpcACg7iIAAWJ0vC1eD2EA8gBfD3IAAOA12DPddAByAOkAlS1zAHUAAAFicM0t0C0A4IIi0iAA4IMi0iBwAGYAAOA12GfdcgBvAPAAWQt0AHIA6QCaLQABY3XkLegtcgAA4DXYy9wAAWJw7C30LW4AAAFFZXUt8S0A4IoiAP5uAAABRWV/LfktAOCLIgD+6SJnemFnAKCaKYADY2Vmb3BycwANLhAuJS4pLiMuLi40LukhcmN1YQABZGkULiEuAAFiZxguHC5hAHIAAKBfKmUAcaAnIgCgWSLlIXJwAKAYIXIAAOA12DTdcABmAADgNdho3WWgQCJhAHQA6ABqD2MAcgAA4DXYzNzjCuQRUC4AAFQuAABYLmIuAAAAAGMubS5wLnQuAAAAAIguki4AAJouJxIqEnQAcgDpAB0ScgAA4DXYNd0AAUFhWy5eLnIA8gDnAnIA8gCTB75jAAFBYWYuaS5yAPIA4AJyAPIAjAdhAPAAeh5pAHMAAKD7IoABZHB0APgReS6DLgABZmx9LoAuAOA12GnddQDzAP8RaQBtAOUABBIAAUFhiy6OLnIA8gDuAnIA8gCaBwABY3GVLgoScgAA4DXYzdwAAXB0nS6hLmwAdQDzACUScgDpACASAARhY2VmaW9zdbEuvC7ELsguzC7PLtQu2S5jAAABdXm2LrsudABlADuA/QD9QE9kAAFpecAuwy5yAGMAd2FLZG4AO4ClAKVAcgAA4DXYNt1jAHkAV2RwAGYAAOA12GrdYwByAADgNdjO3AABY23dLt8ueQBOZGwAO4D/AP9AAAVhY2RlZmhpb3N38y73Lv8uAi8MLxAvEy8YLx0vIi9jInV0ZQB6YQABYXn7Lv4u8iFvbn5hN2RvAHQAfGEAAWV0Bi8KL3QAcgDmAB8QYQC2Y3IAAOA12DfdYwB5ADZk5yJyYXJyAKDdIXAAZgAA4DXYa91jAHIAAOA12M/cAAFqbiYvKC8AoA0gagAAoAwg");chunkBUNLC3II_cjs.h();var dx=DS("AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg");chunkBUNLC3II_cjs.h();var Io;(function(o){o[o.VALUE_LENGTH=49152]="VALUE_LENGTH",o[o.FLAG13=8192]="FLAG13",o[o.BRANCH_LENGTH=8064]="BRANCH_LENGTH",o[o.JUMP_TABLE=127]="JUMP_TABLE";})(Io||(Io={}));var pr;(function(o){o[o.NUM=35]="NUM",o[o.SEMI=59]="SEMI",o[o.EQUALS=61]="EQUALS",o[o.ZERO=48]="ZERO",o[o.NINE=57]="NINE",o[o.LOWER_A=97]="LOWER_A",o[o.LOWER_F=102]="LOWER_F",o[o.LOWER_X=120]="LOWER_X",o[o.LOWER_Z=122]="LOWER_Z",o[o.UPPER_A=65]="UPPER_A",o[o.UPPER_F=70]="UPPER_F",o[o.UPPER_Z=90]="UPPER_Z";})(pr||(pr={}));var fk=32;function fx(o){return o>=pr.ZERO&&o<=pr.NINE}function UD(o){return o>=pr.UPPER_A&&o<=pr.UPPER_F||o>=pr.LOWER_A&&o<=pr.LOWER_F}function WD(o){return o>=pr.UPPER_A&&o<=pr.UPPER_Z||o>=pr.LOWER_A&&o<=pr.LOWER_Z||fx(o)}function zD(o){return o===pr.EQUALS||WD(o)}var eo;(function(o){o[o.EntityStart=0]="EntityStart",o[o.NumericStart=1]="NumericStart",o[o.NumericDecimal=2]="NumericDecimal",o[o.NumericHex=3]="NumericHex",o[o.NamedEntity=4]="NamedEntity";})(eo||(eo={}));var mi;(function(o){o[o.Legacy=0]="Legacy",o[o.Strict=1]="Strict",o[o.Attribute=2]="Attribute";})(mi||(mi={}));var OS=class{constructor(t,e,r){this.decodeTree=t,this.emitCodePoint=e,this.errors=r,this.state=eo.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=mi.Strict,this.runConsumed=0;}startEntity(t){this.decodeMode=t,this.state=eo.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0;}write(t,e){switch(this.state){case eo.EntityStart:return t.charCodeAt(e)===pr.NUM?(this.state=eo.NumericStart,this.consumed+=1,this.stateNumericStart(t,e+1)):(this.state=eo.NamedEntity,this.stateNamedEntity(t,e));case eo.NumericStart:return this.stateNumericStart(t,e);case eo.NumericDecimal:return this.stateNumericDecimal(t,e);case eo.NumericHex:return this.stateNumericHex(t,e);case eo.NamedEntity:return this.stateNamedEntity(t,e)}}stateNumericStart(t,e){return e>=t.length?-1:(t.charCodeAt(e)|fk)===pr.LOWER_X?(this.state=eo.NumericHex,this.consumed+=1,this.stateNumericHex(t,e+1)):(this.state=eo.NumericDecimal,this.stateNumericDecimal(t,e))}stateNumericHex(t,e){for(;e<t.length;){let r=t.charCodeAt(e);if(fx(r)||UD(r)){let n=r<=pr.NINE?r-pr.ZERO:(r|fk)-pr.LOWER_A+10;this.result=this.result*16+n,this.consumed++,e++;}else return this.emitNumericEntity(r,3)}return -1}stateNumericDecimal(t,e){for(;e<t.length;){let r=t.charCodeAt(e);if(fx(r))this.result=this.result*10+(r-pr.ZERO),this.consumed++,e++;else return this.emitNumericEntity(r,2)}return -1}emitNumericEntity(t,e){var r;if(this.consumed<=e)return (r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===pr.SEMI)this.consumed+=1;else if(this.decodeMode===mi.Strict)return 0;return this.emitCodePoint(hx(this.result),this.consumed),this.errors&&(t!==pr.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,e){let{decodeTree:r}=this,n=r[this.treeIndex],i=(n&Io.VALUE_LENGTH)>>14;for(;e<t.length;){if(i===0&&(n&Io.FLAG13)!==0){let l=(n&Io.BRANCH_LENGTH)>>7;if(this.runConsumed===0){let a=n&Io.JUMP_TABLE;if(t.charCodeAt(e)!==a)return this.result===0?0:this.emitNotTerminatedNamedEntity();e++,this.excess++,this.runConsumed++;}for(;this.runConsumed<l;){if(e>=t.length)return -1;let a=this.runConsumed-1,u=r[this.treeIndex+1+(a>>1)],c=a%2===0?u&255:u>>8&255;if(t.charCodeAt(e)!==c)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();e++,this.excess++,this.runConsumed++;}this.runConsumed=0,this.treeIndex+=1+(l>>1),n=r[this.treeIndex],i=(n&Io.VALUE_LENGTH)>>14;}if(e>=t.length)break;let s=t.charCodeAt(e);if(s===pr.SEMI&&i!==0&&(n&Io.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);if(this.treeIndex=_D(r,n,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return this.result===0||this.decodeMode===mi.Attribute&&(i===0||zD(s))?0:this.emitNotTerminatedNamedEntity();if(n=r[this.treeIndex],i=(n&Io.VALUE_LENGTH)>>14,i!==0){if(s===pr.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==mi.Strict&&(n&Io.FLAG13)===0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0);}e++,this.excess++;}return -1}emitNotTerminatedNamedEntity(){var t;let{result:e,decodeTree:r}=this,n=(r[e]&Io.VALUE_LENGTH)>>14;return this.emitNamedEntityData(e,n,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,e,r){let{decodeTree:n}=this;return this.emitCodePoint(e===1?n[t]&~(Io.VALUE_LENGTH|Io.FLAG13):n[t+1],r),e===3&&this.emitCodePoint(n[t+2],r),r}end(){var t;switch(this.state){case eo.NamedEntity:return this.result!==0&&(this.decodeMode!==mi.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case eo.NumericDecimal:return this.emitNumericEntity(0,2);case eo.NumericHex:return this.emitNumericEntity(0,3);case eo.NumericStart:return (t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case eo.EntityStart:return 0}}};function bk(o){let t="",e=new OS(o,r=>t+=mx(r));return function(n,i){let s=0,l=0;for(;(l=n.indexOf("&",l))>=0;){t+=n.slice(s,l),e.startEntity(i);let u=e.write(n,l+1);if(u<0){s=l+e.end();break}s=l+u,l=u===0?s+1:s;}let a=t+n.slice(s);return t="",a}}function _D(o,t,e,r){let n=(t&Io.BRANCH_LENGTH)>>7,i=t&Io.JUMP_TABLE;if(n===0)return i!==0&&r===i?e:-1;if(i){let u=r-i;return u<0||u>=n?-1:o[e+u]-1}let s=n+1>>1,l=0,a=n-1;for(;l<=a;){let u=l+a>>>1,c=u>>1,f=o[e+c]>>(u&1)*8&255;if(f<r)l=u+1;else if(f>r)a=u-1;else return o[e+s+u]}return -1}var gk=bk(yx),$D=bk(dx);function em(o,t=mi.Legacy){return gk(o,t)}function bx(o){return gk(o,mi.Attribute)}function rm(o){return $D(o,mi.Strict)}chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();function jD(o,t){return function(r){let n,i=0,s="";for(;n=o.exec(r);)i!==n.index&&(s+=r.substring(i,n.index)),s+=t.get(n[0].charCodeAt(0)),i=n.index+1;return s+r.substring(i)}}var FS=jD(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]));chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Sk;(function(o){o[o.XML=0]="XML",o[o.HTML=1]="HTML";})(Sk||(Sk={}));var Pk;(function(o){o[o.UTF8=0]="UTF8",o[o.ASCII=1]="ASCII",o[o.Extensive=2]="Extensive",o[o.Attribute=3]="Attribute",o[o.Text=4]="Text";})(Pk||(Pk={}));var XD=/[&"<>\t\n\r]/g,ZD=/[&"]/g,tO=/&(?:nbsp|lt|gt|amp);/g,eO={"&":"&amp;",'"':"&quot;","<":"&lt;",">":"&gt;"," ":"&#x9;","\n":"&#xA;","\r":"&#xD;"},rO={"&":"&amp;",'"':"&quot;"},oO={"&nbsp;":"\xA0","&lt;":"<","&gt;":">","&amp;":"&"},Je=class{static encodeXMLAttributeValue(t){return t===null?"":t.replace(XD,e=>eO[e])}static decodeXMLAttributeValue(t){return t===null?"":rm(t)}static encodeHTMLAttributeValue(t){return t===null?"":t.replace(ZD,e=>rO[e])}static decodeHTMLAttributeValue(t){return t===null?"":bx(t)}static encodeTextContent(t){return t===null?"":FS(t)}static decodeTextContent(t){return t===null?"":t.replace(tO,e=>oO[e])}static decodeHTMLEntities(t){return t===null?"":em(t)}static decodeXMLEntities(t){return t===null?"":rm(t)}};var Bn=class{options={serializableShadowRoots:false,shadowRoots:null,allShadowRoots:false,excludeShadowRootTags:null};constructor(t){t&&(t.serializableShadowRoots&&(this.options.serializableShadowRoots=t.serializableShadowRoots),t.shadowRoots&&(this.options.shadowRoots=t.shadowRoots),t.allShadowRoots&&(this.options.allShadowRoots=t.allShadowRoots),t.excludeShadowRootTags&&(this.options.excludeShadowRootTags=t.excludeShadowRootTags));}serializeToString(t){switch(t[V]){case L.elementNode:let e=t,r=e[$t],n=e[mt],i=Sr[e[mt]],s=r?`${r}:${n}`:n;if(i?.contentModel===z.noDescendants)return `<${s}${this.getAttributes(e)}>`;let l="";if(e.shadowRoot&&(this.options.allShadowRoots||this.options.serializableShadowRoots&&e.shadowRoot[ns]||this.options.shadowRoots?.includes(e.shadowRoot))&&(!this.options.excludeShadowRootTags||!this.options.excludeShadowRootTags.includes(s))){l+=`<template shadowrootmode="${e.shadowRoot[Ue]}"${e.shadowRoot[ns]?' shadowrootserializable=""':""}>`;for(let P of e.shadowRoot[K])l+=this.serializeToString(P);l+="</template>";}let a=s==="template"?t.content[K]:t[K];for(let P of a)l+=this.serializeToString(P);return `<${s}${this.getAttributes(e)}>${l}</${s}>`;case xt.DOCUMENT_FRAGMENT_NODE:case xt.DOCUMENT_NODE:let u="";for(let P of t[K])u+=this.serializeToString(P);return u;case L.commentNode:return `<!--${t.textContent}-->`;case L.processingInstructionNode:return `<!--?${t.target} ${t.textContent}?-->`;case L.textNode:let c=t.parentElement;return c&&Sr[c[mt]]?.contentModel===z.rawText?t.textContent:Je.encodeTextContent(t.textContent);case L.documentTypeNode:let h=t,f=h.publicId?" PUBLIC":h.systemId?" SYSTEM":"",d=h.publicId?` "${h.publicId}"`:"",g=h.systemId?` "${h.systemId}"`:"";return `<!DOCTYPE ${h.name}${f}${d}${g}>`}return ""}getAttributes(t){let e="",r=t[Tt][J];!r.has(":is")&&t[Ho]&&(e+=' is="'+Je.encodeHTMLAttributeValue(t[Ho])+'"');for(let n of r.values()){let i=Je.encodeHTMLAttributeValue(n[ot]);e+=" "+n[ut]+'="'+i+'"';}return e}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var bf={svg:{localName:"svg",className:"SVGSVGElement"},animate:{localName:"animate",className:"SVGAnimateElement"},animatemotion:{localName:"animateMotion",className:"SVGAnimateMotionElement"},animatetransform:{localName:"animateTransform",className:"SVGAnimateTransformElement"},circle:{localName:"circle",className:"SVGCircleElement"},clippath:{localName:"clipPath",className:"SVGClipPathElement"},defs:{localName:"defs",className:"SVGDefsElement"},desc:{localName:"desc",className:"SVGDescElement"},ellipse:{localName:"ellipse",className:"SVGEllipseElement"},feblend:{localName:"feBlend",className:"SVGFEBlendElement"},fecolormatrix:{localName:"feColorMatrix",className:"SVGFEColorMatrixElement"},fecomponenttransfer:{localName:"feComponentTransfer",className:"SVGFEComponentTransferElement"},fecomposite:{localName:"feComposite",className:"SVGFECompositeElement"},feconvolvematrix:{localName:"feConvolveMatrix",className:"SVGFEConvolveMatrixElement"},fediffuselighting:{localName:"feDiffuseLighting",className:"SVGFEDiffuseLightingElement"},fedisplacementmap:{localName:"feDisplacementMap",className:"SVGFEDisplacementMapElement"},fedistantlight:{localName:"feDistantLight",className:"SVGFEDistantLightElement"},fedropshadow:{localName:"feDropShadow",className:"SVGFEDropShadowElement"},feflood:{localName:"feFlood",className:"SVGFEFloodElement"},fefunca:{localName:"feFuncA",className:"SVGFEFuncAElement"},fefuncb:{localName:"feFuncB",className:"SVGFEFuncBElement"},fefuncg:{localName:"feFuncG",className:"SVGFEFuncGElement"},fefuncr:{localName:"feFuncR",className:"SVGFEFuncRElement"},fegaussianblur:{localName:"feGaussianBlur",className:"SVGFEGaussianBlurElement"},feimage:{localName:"feImage",className:"SVGFEImageElement"},femerge:{localName:"feMerge",className:"SVGFEMergeElement"},femergenode:{localName:"feMergeNode",className:"SVGFEMergeNodeElement"},femorphology:{localName:"feMorphology",className:"SVGFEMorphologyElement"},feoffset:{localName:"feOffset",className:"SVGFEOffsetElement"},fepointlight:{localName:"fePointLight",className:"SVGFEPointLightElement"},fespecularlighting:{localName:"feSpecularLighting",className:"SVGFESpecularLightingElement"},fespotlight:{localName:"feSpotLight",className:"SVGFESpotLightElement"},fetile:{localName:"feTile",className:"SVGFETileElement"},feturbulence:{localName:"feTurbulence",className:"SVGFETurbulenceElement"},filter:{localName:"filter",className:"SVGFilterElement"},foreignobject:{localName:"foreignObject",className:"SVGForeignObjectElement"},g:{localName:"g",className:"SVGGElement"},image:{localName:"image",className:"SVGImageElement"},line:{localName:"line",className:"SVGLineElement"},lineargradient:{localName:"linearGradient",className:"SVGLinearGradientElement"},marker:{localName:"marker",className:"SVGMarkerElement"},mask:{localName:"mask",className:"SVGMaskElement"},metadata:{localName:"metadata",className:"SVGMetadataElement"},mpath:{localName:"mpath",className:"SVGMPathElement"},path:{localName:"path",className:"SVGPathElement"},pattern:{localName:"pattern",className:"SVGPatternElement"},polygon:{localName:"polygon",className:"SVGPolygonElement"},polyline:{localName:"polyline",className:"SVGPolylineElement"},radialgradient:{localName:"radialGradient",className:"SVGRadialGradientElement"},rect:{localName:"rect",className:"SVGRectElement"},script:{localName:"script",className:"SVGScriptElement"},set:{localName:"set",className:"SVGSetElement"},stop:{localName:"stop",className:"SVGStopElement"},style:{localName:"style",className:"SVGStyleElement"},switch:{localName:"switch",className:"SVGSwitchElement"},symbol:{localName:"symbol",className:"SVGSymbolElement"},text:{localName:"text",className:"SVGTextElement"},textpath:{localName:"textPath",className:"SVGTextPathElement"},title:{localName:"title",className:"SVGTitleElement"},tspan:{localName:"tspan",className:"SVGTSpanElement"},use:{localName:"use",className:"SVGUseElement"},view:{localName:"view",className:"SVGViewElement"}};var nO=/<([^\s/!>?]+)|<\/([^\s/!>?]+)\s*>|(<!--)|(-->|--!>)|(<!)|(<\?)|(\/>)|(>)/gm,iO=/\s*([a-zA-Z0-9-_:.$@?\\<\[\]]+)\s*=\s*([^"'=<>\\`\s]+)|\s*([a-zA-Z0-9-_:.$@?\\<\[\]]+)\s*=\s*"([^"]*)("{0,1})|\s*([a-zA-Z0-9-_:.$@?\\<\[\]]+)\s*=\s*'([^']*)('{0,1})|\s*([a-zA-Z0-9-_:.$@?\\<\[\]]+)/gm,sO=/"([^"]+)"/gm,lO=/\s+/,aO=/^\s+/,lr;(function(o){o.any="any",o.startTag="startTag",o.comment="comment",o.documentType="documentType",o.processingInstruction="processingInstruction",o.rawTextElement="rawTextElement";})(lr||(lr={}));var Ke;(function(o){o[o.root=0]="root",o[o.doctype=1]="doctype",o[o.documentElement=2]="documentElement",o[o.head=3]="head",o[o.additionalHeadWithoutBody=4]="additionalHeadWithoutBody",o[o.body=5]="body",o[o.afterBody=6]="afterBody";})(Ke||(Ke={}));var Ur=class{window;evaluateScripts=false;isTemplateDocumentFragment=false;rootNode=null;rootDocument=null;nodeStack=[];tagNameStack=[];documentStructure=null;startTagIndex=0;markupRegExp=null;nextElement=null;currentNode=null;readState=lr.any;constructor(t,e){this.window=t,e?.evaluateScripts&&(this.evaluateScripts=true),e?.isTemplateDocumentFragment&&(this.isTemplateDocumentFragment=true);}parse(t,e){if(this.rootNode=e||this.window.document.createDocumentFragment(),this.rootDocument=this.rootNode[V]===L.documentNode?this.rootNode:this.window.document,this.nodeStack=[this.rootNode],this.tagNameStack=[null],this.currentNode=this.rootNode,this.readState=lr.any,this.documentStructure=null,this.startTagIndex=0,this.markupRegExp=new RegExp(nO),this.rootNode[V]===L.documentNode){let{doctype:i,documentElement:s,head:l,body:a}=this.rootNode;if(!s||!l||!a)throw new Error(`Failed to parse HTML: The root node must have "documentElement", "head" and "body".
118
-
119
- We should not end up here and it is therefore a bug in Happy DOM. Please report this issue.`);this.documentStructure={nodes:{doctype:i||null,documentElement:s,head:l,body:a},level:Ke.root};}if(this.rootNode instanceof this.window.HTMLHtmlElement){let i=this.rootDocument.createElement("head"),s=this.rootDocument.createElement("body");for(;this.rootNode[K].length>0;)this.rootNode[Vr](this.rootNode[K][this.rootNode[K].length-1]);this.rootNode[Ot](i),this.rootNode[Ot](s),this.documentStructure={nodes:{doctype:null,documentElement:this.rootNode,head:i,body:s},level:Ke.documentElement};}let r,n=0;for(t=String(t);r=this.markupRegExp.exec(t);){switch(this.readState){case lr.any:r.index!==n&&(r[1]||r[2]||r[3]||r[4]||r[5]!==void 0||r[6])&&this.parsePlainText(t.substring(n,r.index)),r[1]?(this.nextElement=this.getStartTagElement(r[1]),this.startTagIndex=this.markupRegExp.lastIndex,this.readState=lr.startTag):r[2]?this.parseEndTag(r[2]):r[3]?(this.startTagIndex=this.markupRegExp.lastIndex,this.readState=lr.comment):r[5]!==void 0?(this.startTagIndex=this.markupRegExp.lastIndex,this.readState=lr.documentType):r[6]?(this.startTagIndex=this.markupRegExp.lastIndex,this.readState=lr.processingInstruction):this.parsePlainText(t.substring(n,this.markupRegExp.lastIndex));break;case lr.startTag:if(r[7]||r[8]||r[2])if(this.nextElement){let i=t.substring(this.startTagIndex,r[2]?this.markupRegExp.lastIndex-1:r.index),s=!!r[7];this.parseEndOfStartTag(i,s);}else this.readState=lr.any;break;case lr.comment:r[4]&&this.parseComment(t.substring(this.startTagIndex,r.index));break;case lr.documentType:(r[7]||r[8])&&this.parseDocumentType(t.substring(this.startTagIndex,r.index));break;case lr.processingInstruction:(r[7]||r[8])&&this.parseComment("?"+t.substring(this.startTagIndex,r.index));break;case lr.rawTextElement:r[2]&&this.parseRawTextElementContent(r[2],t.substring(this.startTagIndex,r.index));break}n=this.markupRegExp.lastIndex;}return n!==t.length&&this.currentNode&&this.parsePlainText(t.substring(n)),this.rootNode}parsePlainText(t){if(this.documentStructure){let e=this.documentStructure.level,{documentElement:r,head:n,body:i}=this.documentStructure.nodes,s=(this.currentNode===this.rootNode||this.currentNode===r)&&e<Ke.head&&i[St].length===0?t.replace(aO,""):t;if(s){let l=this.rootDocument.createTextNode(Je.decodeHTMLEntities(s));this.currentNode===n&&e===Ke.additionalHeadWithoutBody?r[uo](l,i,true):this.currentNode===this.rootNode||this.currentNode===r||this.currentNode===n&&e>=Ke.body?e===Ke.head?r[uo](l,i,true):i.lastChild?.[V]===L.textNode?i.lastChild[_t]+=t:i[Ot](l,true):this.currentNode[Ot](l,true);}}else {let e=this.rootDocument.createTextNode(Je.decodeHTMLEntities(t));this.currentNode[Ot](e,true);}}parseEndOfStartTag(t,e){if(t&&(!this.documentStructure||this.nextElement!==this.documentStructure.nodes.head||this.documentStructure.level<Ke.body)){let l=new RegExp(iO),a;for(;a=l.exec(t);)if(a[1]&&a[2]||a[3]&&a[5]==='"'||a[6]&&a[8]==="'"||a[9]){let u=a[1]||a[3]||a[6]||a[9]||"",c=a[2]||a[4]||a[7]||"",h=c?Je.decodeHTMLAttributeValue(c):"",f=this.nextElement[Tt];if(this.nextElement[st]===Xt.svg){let d=u.split(":"),g=null;switch(d[0]){case "xmlns":g=!d[1]||d[1]==="xlink"?Xt.xmlns:null;break;case "xlink":g=Xt.xlink;break}if(!f.getNamedItemNS(g,d[1]??u)){let P=Qe.createNode(this.rootDocument,this.window.Attr);P[st]=g,P[ut]=u,P[mt]=g&&d[1]?d[1]:u,P[$t]=g&&d[1]?d[0]:null,P[ot]=h,f[oi](P);}}else if(!f.getNamedItem(u)){let d=this.rootDocument.createAttribute(u);d[ot]=h,f[oi](d);}this.startTagIndex+=a[0].length;}else if(!a[1]&&(a[3]&&!a[5]||a[6]&&!a[8]))return}let r=this.nextElement[it],n=r.toLowerCase(),i=Sr[n],s=null;for(;s!==this.rootNode;){let l=this.currentNode[it]?.toLowerCase(),a=l?Sr[l]:null;if(s===this.currentNode)throw new Error("Failed to parse HTML: The parser is stuck in an infinite loop. Please report this issue.");if(s=this.currentNode,i?.contentModel===z.noFirstLevelSelfDescendants&&this.tagNameStack[this.tagNameStack.length-1]===r||a?.contentModel===z.textOrComments||a?.contentModel===z.noForbiddenFirstLevelDescendants&&a?.forbiddenDescendants?.includes(n)||a?.contentModel===z.permittedDescendants&&!a?.permittedDescendants?.includes(n)&&(!i||!i.addPermittedParent||Sr[i.addPermittedParent].permittedParents&&!Sr[i.addPermittedParent].permittedParents.includes(l)||Sr[i.addPermittedParent].permittedDescendants&&!Sr[i.addPermittedParent].permittedDescendants.includes(n))){if(a?.contentModel===z.permittedDescendants&&a.moveForbiddenDescendant&&!a.moveForbiddenDescendant.exclude.includes(n)){let u=this.currentNode;for(;u&&!(!u.parentNode||!Sr[u.parentNode[mt]]?.permittedDescendants||Sr[u.parentNode[mt]]?.permittedDescendants?.includes(n));)u=u.parentNode;u&&u.parentNode?u.parentNode.insertBefore(this.nextElement,u):u.appendChild(this.nextElement),this.startTagIndex=this.markupRegExp.lastIndex,this.readState=lr.any;return}this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode;}else if(i?.contentModel===z.noSelfDescendants&&this.tagNameStack.includes(r))for(;this.currentNode!==this.rootNode;){if(this.currentNode[it]===r){this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode;break}this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode;}else if(!this.isTemplateDocumentFragment&&i?.permittedParents&&!i.permittedParents.includes(l)){if(!i.addPermittedParent||Sr[i.addPermittedParent].permittedParents&&!Sr[i.addPermittedParent].permittedParents.includes(l)||Sr[i.addPermittedParent].permittedDescendants&&!Sr[i.addPermittedParent].permittedDescendants.includes(n)){this.readState=lr.any,this.startTagIndex=this.markupRegExp.lastIndex;return}let u=this.rootDocument.createElement(i.addPermittedParent);this.currentNode[Ot](u,true),this.nodeStack.push(u),this.tagNameStack.push(u[it]),this.currentNode=u;}else break}if(this.documentStructure){let{documentElement:l,head:a,body:u}=this.documentStructure.nodes,c=this.documentStructure.level;(!i||i.contentModel!==z.rawText)&&this.nextElement!==l&&this.nextElement!==a&&this.nextElement!==u&&(l&&(this.currentNode===this.rootNode||this.currentNode===l||this.currentNode===a&&c>=Ke.body)?(c<Ke.body&&(this.documentStructure.level=Ke.afterBody),u[Ot](this.nextElement,true)):this.currentNode[Ot](this.nextElement,true));}else this.currentNode[Ot](this.nextElement,true);!this.documentStructure||this.nextElement!==this.documentStructure.nodes.body||this.documentStructure.level<=Ke.body?(this.currentNode=this.nextElement,this.nodeStack.push(this.currentNode),this.tagNameStack.push(r),this.documentStructure&&this.nextElement===this.documentStructure.nodes.body&&(this.documentStructure.level=Ke.afterBody),i?.contentModel===z.noDescendants||e&&this.currentNode[st]===Xt.svg?(this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode,this.readState=lr.any):this.readState=i?.contentModel===z.rawText?lr.rawTextElement:lr.any):this.readState=lr.any,this.startTagIndex=this.markupRegExp.lastIndex;}parseEndTag(t){let e=this.currentNode[st]===Xt.html?to.asciiUpperCase(t):bf[to.asciiLowerCase(t)]?.localName||t,r=this.tagNameStack.lastIndexOf(e);r!==-1&&(this.nodeStack.splice(r,this.nodeStack.length-r),this.tagNameStack.splice(r,this.tagNameStack.length-r),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode);}parseComment(t){let e=this.rootDocument.createComment(Je.decodeHTMLEntities(t));if(this.documentStructure){let r=this.documentStructure.level,{documentElement:n,head:i,body:s}=this.documentStructure.nodes,l=null;this.currentNode===this.rootNode&&r===Ke.root?l=n:this.currentNode===n&&r===Ke.documentElement?l=i:this.currentNode===n&&r===Ke.head&&(l=s),this.currentNode[uo](e,l,true);}else this.currentNode[Ot](e,true);this.readState=lr.any;}parseDocumentType(t){let e=Je.decodeHTMLEntities(t);if(this.documentStructure){let{doctype:r}=this.documentStructure.nodes,n=this.getDocumentType(e);n?this.currentNode===this.rootNode&&this.documentStructure.level===Ke.root&&(r?(r[ut]=n.name,r[dl]=n.publicId,r[fl]=n.systemId):(r=this.rootNode.implementation.createDocumentType(n.name,n.publicId,n.systemId),this.rootNode.insertBefore(r,this.rootNode.documentElement)),this.documentStructure.level=Ke.doctype):this.parseComment(e);}else this.getDocumentType(e)||this.parseComment(e);this.readState=lr.any;}parseRawTextElementContent(t,e){let r=to.asciiUpperCase(t);if(r!==this.currentNode[it])return;r==="SCRIPT"?this.currentNode[kl]=!this.evaluateScripts:r==="LINK"&&(this.currentNode[kl]=!this.evaluateScripts),this.currentNode[Ot](this.rootDocument.createTextNode(e),true);let n=this.currentNode;if(this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode,this.readState=lr.any,this.documentStructure){let{documentElement:i,body:s}=this.documentStructure.nodes;i&&(this.currentNode===this.rootNode||this.currentNode===i)?s[Ot](n,true):this.currentNode[Ot](n,true);}else this.currentNode[Ot](n,true);}getStartTagElement(t){let e=to.asciiLowerCase(t),r=this.currentNode[st];if(e==="svg")return this.rootDocument.createElementNS(Xt.svg,"svg");if(r===Xt.svg)return this.rootDocument.createElementNS(Xt.svg,bf[e]?.localName||t);switch(e){case "html":return this.documentStructure?(this.documentStructure.level<Ke.documentElement&&(this.documentStructure.level=Ke.documentElement),this.documentStructure.nodes.documentElement??null):null;case "head":return this.documentStructure?(this.documentStructure.level<Ke.head?this.documentStructure.level=Ke.head:this.documentStructure.level===Ke.head&&(this.documentStructure.level=Ke.additionalHeadWithoutBody),this.documentStructure.nodes.head??null):null;case "body":return this.documentStructure?(this.documentStructure.level<Ke.body&&(this.documentStructure.level=Ke.body),this.documentStructure.nodes.body??null):null;default:return this.rootDocument.createElementNS(Xt.html,e)}}getDocumentType(t){if(!t.toUpperCase().startsWith("DOCTYPE"))return null;let e=t.split(lO);if(e.length<=1)return null;let r=e.slice(1).join(" "),n=[],i=new RegExp(sO,"gm"),s=r.toUpperCase().includes("PUBLIC"),l;for(;l=i.exec(r);)n.push(l[1]);let a=s&&n[0]||"",u=s?n[1]||"":n[0]||"";return {name:e[1].toLowerCase(),publicId:a,systemId:u}}};chunkBUNLC3II_cjs.h();var uO=/[\x00-\x1F\x7F\x80-\x9F "\'><=\/\uFDD0-\uFDEF\uFFFE\uFFFF\u1FFFE\u1FFFF\u2FFFE\u2FFFF\u3FFFE\u3FFFF\u4FFFE\u4FFFF\u5FFFE\u5FFFF\u6FFFE\u6FFFF\u7FFFE\u7FFFF\u8FFFE\u8FFFF\u9FFFE\u9FFFF\uAFFFE\uAFFFF\uBFFFE\uBFFFF\uCFFFE\uCFFFF\uDFFFE\uDFFFF\uEFFFE\uEFFFF\uFFFFE\uFFFFF\u10FFFE\u10FFFF]/,BS=class{static validateAttributeName(t,e,r){let{method:n,instance:i}=r;if(e==="text/html"){let s=String(t).toLowerCase();if(uO.test(s)||s.length===0||s[0]==="-")throw new ye(`Uncaught InvalidCharacterError: Failed to execute '${n}' on '${i}': '${t}' is not a valid attribute name.`,C.invalidCharacterError)}}};chunkBUNLC3II_cjs.h();var x=class{static getEventListener(t,e){let r=t[y].get(e);if(r)return r;let n=t[k][lo];if(!n)return null;let i=new et(n).getSettings();if(!i||!i.enableJavaScriptEvaluation)return null;let s=t.getAttribute(e);if(!s)return null;let l="(function anonymous($happy_dom, event) {";i&&!i.disableErrorCapturing&&i.errorCapture===fe.tryAndCatch&&(l+=`try {
120
- `),l+=s,i&&!i.disableErrorCapturing&&i.errorCapture===fe.tryAndCatch&&(l+="} catch(e) { $happy_dom.dispatchError(e); }"),l+="})";let a=null;try{a=n[kn](l,{filename:n.location.href}).bind(t,{dispatchError:n[Se].bind(n)});}catch(u){let c=new n.SyntaxError(`Failed to read the '${e}' property from '${t.constructor.name}': ${u.message}`);if(i.disableErrorCapturing||i.errorCapture!==fe.tryAndCatch)throw c;return n[Se](c),null}return a&&t[y].set(e,a),a}};var Wr=class extends xt{static[it]=null;static[mt]=null;static[st]=null;[dp]=null;[Ho]=null;[V]=L.elementNode;[$t]=null;[Le]=null;[bw]=0;[gw]=0;[tS]=0;[eS]=0;[Tt]=new Os(this);[Sp]=null;[Nr]=null;[Ju]=null;[Ey]=new Set;[y]=new Map;constructor(){super(),this[it]||(this[it]=null),this[mt]||(this[mt]=null),this[st]||(this[st]=null);}get onfullscreenerror(){return x.getEventListener(this,"onfullscreenerror")}set onfullscreenerror(t){this[y].set("onfullscreenerror",t);}get onfullscreenchange(){return x.getEventListener(this,"onfullscreenchange")}set onfullscreenchange(t){this[y].set("onfullscreenchange",t);}get onbeforecopy(){return x.getEventListener(this,"onbeforecopy")}set onbeforecopy(t){this[y].set("onbeforecopy",t);}get onbeforecut(){return x.getEventListener(this,"onbeforecut")}set onbeforecut(t){this[y].set("onbeforecut",t);}get onbeforepaste(){return x.getEventListener(this,"onbeforepaste")}set onbeforepaste(t){this[y].set("onbeforepaste",t);}get onsearch(){return x.getEventListener(this,"onsearch")}set onsearch(t){this[y].set("onsearch",t);}get tagName(){return this[it]}get prefix(){return this[$t]}get shadowRoot(){let t=this[Le];return t&&t[Ue]==="open"?t:null}get scrollHeight(){return this[bw]}get scrollWidth(){return this[gw]}get scrollTop(){return this[tS]}set scrollTop(t){this[tS]=t;}get scrollLeft(){return this[eS]}set scrollLeft(t){this[eS]=t;}get attributes(){return this[Sp]||(this[Sp]=ff.createProxy(this[Tt])),this[Sp]}get namespaceURI(){return this[st]}get children(){if(!this[Nr]){let t=this[St];this[Nr]=new Oe(b,()=>t);}return this[Nr]}get classList(){return this[dp]||(this[dp]=new bo(b,this,"class")),this[dp]}set classList(t){this.setAttribute("class",t);}get id(){return this.getAttribute("id")||""}set id(t){this.setAttribute("id",t);}get className(){return this.getAttribute("class")||""}set className(t){this.setAttribute("class",t);}get nodeName(){return this[it]}get localName(){return this[mt]}get role(){return this.getAttribute("role")||""}set role(t){this.setAttribute("role",t);}get previousElementSibling(){return Bl.previousElementSibling(this)}get nextElementSibling(){return Bl.nextElementSibling(this)}get textContent(){let t="";for(let e of this[K])(e[V]===L.elementNode||e[V]===L.textNode)&&(t+=e.textContent);return t}set textContent(t){let e=this[K];for(;e.length;)this.removeChild(e[0]);t&&this.appendChild(this[k].createTextNode(t));}get innerHTML(){return this.getHTML()}set innerHTML(t){let e=this[K];for(;e.length;)this.removeChild(e[0]);new Ur(this[m]).parse(t,this);}get outerHTML(){return new Bn().serializeToString(this)}set outerHTML(t){let e=new Ur(this[m]).parse(t)[K];this.replaceWith(...e);}get childElementCount(){return this[St].length}get firstElementChild(){return this[St][0]??null}get lastElementChild(){let t=this[St];return t[t.length-1]??null}get slot(){return this.getAttributeNS(null,"slot")||""}set slot(t){this.setAttribute("slot",t);}getInnerHTML(t){let e=new Bn({allShadowRoots:!!t?.includeShadowRoots}),r="";for(let n of this[K])r+=e.serializeToString(n);return r}getHTML(t){let e=new Bn({serializableShadowRoots:!!t?.serializableShadowRoots,shadowRoots:t?.shadowRoots??null}),r="";for(let n of this[K])r+=e.serializeToString(n);return r}[wt](t=false){let e=super[wt](t);e[it]=this[it],e[mt]=this[mt],e[st]=this[st],this[Le]?.[Ma]&&(e[Le]=this[Le].cloneNode(t),e[Le][Ta]=e),e[Tt]=new Os(e);for(let r of this[Tt][J].values())e[Tt].setNamedItem(r.cloneNode(t));return e}remove(){Fn.remove(this);}replaceWith(...t){Fn.replaceWith(this,...t);}before(...t){Fn.before(this,...t);}after(...t){Fn.after(this,...t);}append(...t){de.append(this,...t);}prepend(...t){de.prepend(this,...t);}replaceChildren(...t){de.replaceChildren(this,...t);}insertAdjacentElement(t,e){if(t==="beforebegin"){if(!this.parentElement)return null;this.parentElement.insertBefore(e,this);}else if(t==="afterbegin")this.insertBefore(e,this.firstChild);else if(t==="beforeend")this.appendChild(e);else if(t==="afterend"){if(!this.parentElement)return null;this.parentElement.insertBefore(e,this.nextSibling);}return e}insertAdjacentHTML(t,e){let r=new Ur(this[m]).parse(e)[K];for(;r.length;)this.insertAdjacentElement(t,r[0]);}insertAdjacentText(t,e){if(!e)return;let r=this[k].createTextNode(e);this.insertAdjacentElement(t,r);}setAttribute(t,e){if(BS.validateAttributeName(t,this[k][_e],{method:"setAttribute",instance:"Element"}),t=String(t),this[st]===Xt.html){let n=this[k].createAttribute(t);n[ot]=String(e),this[Tt][oi](n);}else {let n=t.split(":"),i=null;switch(n[0]){case "xmlns":i=!n[1]||n[1]==="xlink"?Xt.xmlns:null;break;case "xlink":i=Xt.xlink;break}let s=Qe.createNode(this[k],this[m].Attr);s[st]=i,s[ut]=t,s[mt]=i&&n[1]?n[1]:t,s[$t]=i&&n[1]?n[0]:null,s[ot]=String(e),this[Tt][oi](s);}}setAttributeNS(t,e,r){let n=this[k].createAttributeNS(t,e);if(!t&&n[$t])throw new this[m].DOMException("Failed to execute 'setAttributeNS' on 'Element': '' is an invalid namespace for attributes.",C.namespaceError);n[ot]=String(r),this[Tt].setNamedItemNS(n);}getAttributeNames(){let t=[];for(let e of this[Tt][J].values())t.push(e[ut]);return t}getAttribute(t){let e=this[Tt].getNamedItem(t);return e?e[ot]:null}toggleAttribute(t,e){t=t.toLowerCase();let r=this[Tt].getNamedItem(t);return r?e===true?true:(this[Tt][bl](r),false):e===false?false:(this.setAttribute(t,""),true)}getAttributeNS(t,e){let r=this.getAttributeNodeNS(t,e);return r?r[ot]:null}hasAttribute(t){return !!this.getAttributeNode(t)}hasAttributeNS(t,e){return this[Tt].getNamedItemNS(t,e)!==null}hasAttributes(){return this[Tt][J].size>0}removeAttribute(t){let e=this[Tt].getNamedItem(t);e&&this[Tt][bl](e);}removeAttributeNS(t,e){let r=this[Tt].getNamedItemNS(t,e);r&&this[Tt][bl](r);}attachShadow(t){let e=this[m];if(!t)throw new e.TypeError("Failed to execute 'attachShadow' on 'Element': 1 argument required, but only 0 present.");if(!t.mode)throw new e.TypeError("Failed to execute 'attachShadow' on 'Element': Failed to read the 'mode' property from 'ShadowRootInit': Required member is undefined.");if(t.mode!=="open"&&t.mode!=="closed")throw new e.TypeError(`Failed to execute 'attachShadow' on 'Element': Failed to read the 'mode' property from 'ShadowRootInit': The provided value '${t.mode}' is not a valid enum value of type ShadowRootMode.`);if(this[Le])throw new e.DOMException("Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.");let r=Qe.createNode(this[k],this[m].ShadowRoot);return this[Le]=r,r[Ta]=this,r[Ue]=t.mode,r[Ma]=!!t.clonable,r[Xu]=!!t.delegateFocus,r[ns]=!!t.serializable,r[Mi]=t.slotAssignment==="manual"?"manual":"named",r[Vo](),this[Le]}toString(){return this.outerHTML}getBoundingClientRect(){return new pi}getClientRects(){let t=new Ec(b);return t.push(this.getBoundingClientRect()),t}setPointerCapture(t){this[Ey].add(t);}hasPointerCapture(t){return this[Ey].has(t)}releasePointerCapture(t){this[Ey].delete(t);}matches(t){return !!dt.matches(this,t)}closest(t){let e=this;for(;e;){if(dt.matches(e,t))return e;e=e.parentElement;}return null}querySelectorAll(t){return dt.querySelectorAll(this,t)}querySelector(t){return dt.querySelector(this,t)}getElementsByClassName(t){return de.getElementsByClassName(this,t)}getElementsByTagName(t){return de.getElementsByTagName(this,t)}getElementsByTagNameNS(t,e){return de.getElementsByTagNameNS(this,t,e)}setAttributeNode(t){return this[Tt].setNamedItem(t)}setAttributeNodeNS(t){return this[Tt].setNamedItemNS(t)}getAttributeNode(t){return this[Tt].getNamedItem(t)}getAttributeNodeNS(t,e){return this[Tt].getNamedItemNS(t,e)}removeAttributeNode(t){if(t[Vt]!==this)throw new this[m].DOMException("Failed to execute 'removeAttributeNode' on 'Element': The node provided is owned by another element.");return this[Tt][bl](t),t}scroll(t,e){if(typeof t!="object"&&arguments.length===1)throw new this[m].TypeError("Failed to execute 'scroll' on 'Element': The provided value is not of type 'ScrollToOptions'.");let r=typeof t=="object"?t:{left:t,top:e};if(r.behavior==="smooth")this[m].setTimeout(()=>{if(r.top!==void 0){let n=Number(r.top);this.scrollTop=isNaN(n)?0:n;}if(r.left!==void 0){let n=Number(r.left);this.scrollLeft=isNaN(n)?0:n;}});else {if(r.top!==void 0){let n=Number(r.top);this.scrollTop=isNaN(n)?0:n;}if(r.left!==void 0){let n=Number(r.left);this.scrollLeft=isNaN(n)?0:n;}}}scrollTo(t,e){if(typeof t!="object"&&arguments.length===1)throw new this[m].TypeError("Failed to execute 'scrollTo' on 'Element': The provided value is not of type 'ScrollToOptions'.");this.scroll(t,e);}scrollBy(t,e){if(typeof t!="object"&&arguments.length===1)throw new this[m].TypeError("Failed to execute 'scrollBy' on 'Element': The provided value is not of type 'ScrollToOptions'.");let r=typeof t=="object"?t:{left:t,top:e};this.scroll({left:this.scrollLeft+(r.left??0),top:this.scrollTop+(r.top??0),behavior:r.behavior});}scrollIntoView(t){}checkVisibility(t){if(!this[ct])return false;let e=this;for(;e;){let r=this[m].getComputedStyle(e);if(r.display==="none")return false;if(r.display==="contents"){let n=false;for(let i of e[St])if(this[m].getComputedStyle(i).display!=="none"){n=true;break}if(!n)return false}if((t?.opacityProperty||t?.checkOpacity)&&r.opacity==="0"||(t?.visibilityProperty||t?.checkVisibilityCSS)&&r.visibility==="hidden")return false;e=e.parentElement;}return true}[Ot](t,e=false){let r=super[Ot](t,e);return this.#r(t),r}[Vr](t){let e=super[Vr](t);return this.#r(t),e}[uo](t,e,r=false){let n=super[uo](t,e,r);return this.#r(t),n}[We](t,e){if(!t[ut])return;let r=e?e[ot]:null;if(t[ut]==="slot"&&this[$]&&this[$][Le]){let n=this[$][Le];if(n&&t[ot]!==r){if(r!==null&&e){let s=n.querySelector(`slot[name="${e[ot]}"]`);s&&s.dispatchEvent(new M("slotchange",{bubbles:true}));}else {let s=n.querySelector("slot:not([name])");s&&s.dispatchEvent(new M("slotchange",{bubbles:true}));}let i=n.querySelector(`slot[name="${t[ot]}"]`);i&&i.dispatchEvent(new M("slotchange",{bubbles:true}));}}this[t[ut]]!==void 0&&t[ut][0]==="o"&&t[ut][1]==="n"&&this[y].delete(t[ut]),t[ut]==="id"&&this[ct]&&(e?.[ot]&&this.#e(e[ot]),this.#t(t[ot])),this[ts](new sn({type:ci.attributes,target:this,attributeName:t[ut],oldValue:r}));}[fr](t){if(t[ut]==="slot"&&this[$]&&this[$][Le]){let e=this[$][Le],r=e.querySelector(`slot[name="${t[ot]}"]`),n=e.querySelector("slot:not([name])");r&&r.dispatchEvent(new M("slotchange",{bubbles:true})),n&&n.dispatchEvent(new M("slotchange",{bubbles:true}));}t[ut]==="id"&&this[ct]&&this.#e(t[ot]),this[ts](new sn({type:ci.attributes,target:this,attributeName:t[ut],oldValue:t[ot]}));}[Lr](){let t=this.getAttribute("id");if(t&&this.#t(t),super[Lr](),this[m][vl].enqueueReaction(this,"connectedCallback"),this[Le])for(let e of this[K])this.#r(e);}[Mr](){super[Mr]();let t=this.getAttribute("id");t&&this.#e(t),this[m][vl].enqueueReaction(this,"disconnectedCallback");}[Mt](){let t=this.getAttribute("id");t&&this.#e(t),this[m][vl].enqueueReaction(this,"disconnectedCallback"),super[Mt](),this[Le]&&this[Le][Mt](),this[dp]=null,this[Le]=null,this[Sp]=null,this[Nr]=null,this[Ju]=null,this[y].clear(),this[Tt][Ni].clear(),this[Tt][To].clear(),this[Tt][J].clear();}#t(t){if(!t)return;let e=this[k],r=this[m];if(this[$e]&&this[$e]!==e)return;e[Li].has(t)||e[Li].set(t,{elements:[],htmlCollection:null});let n=e[Li].get(t);if(!n)return;let i=this[Kt]||this;n.elements.push(i),n.elements.length>1?(n.htmlCollection||(n.htmlCollection=new Oe(b,()=>n.elements)),(!(t in r)||r[t]===n.elements[0])&&(r[t]=n.htmlCollection)):(!(t in r)||n.htmlCollection!==null&&r[t]===n.htmlCollection)&&(r[t]=i);}#e(t){if(!t)return;let e=this[k],r=this[m];if(this[$e]&&this[$e]!==e)return;let n=e[Li].get(t);if(!n)return;let i=this[Kt]||this,s=n.elements.indexOf(i);s!==-1&&n.elements.splice(s,1),n.elements.length===1?(r[t]===n.htmlCollection&&(r[t]=n.elements[0]),n.htmlCollection=null):n.elements.length||(e[Li].delete(t),(r[t]===i||r[t]===n.htmlCollection)&&delete r[t]);}#r(t){let e=this[Le];if(!e||!this[ct])return;let r=t.getAttribute?t.getAttribute("slot"):null;if(r){let n=e.querySelector(`slot[name="${r}"]`);n&&n.dispatchEvent(new M("slotchange",{bubbles:true}));}else if(t[V]!==L.commentNode){let n=e.querySelector("slot:not([name])");n&&n.dispatchEvent(new M("slotchange",{bubbles:true}));}}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Vl=class{static blur(t){let e=t[Kt]||t,r=e[k];if(r[Ze]!==e||!e[ct]||e.disabled)return;let n=r[pl]??null;r[Ze]=null,r[co](),e.dispatchEvent(new Vi("blur",{relatedTarget:n,bubbles:false,composed:true,cancelable:true})),e.dispatchEvent(new Vi("focusout",{relatedTarget:n,bubbles:true,composed:true,cancelable:true}));}static focus(t){let e=t[Kt]||t,r=e[k];if(r[Ze]===e||!e[ct]||e.disabled||this.isInert(e))return;r[pl]=e;let n=r[Ze];r[Ze]!==null&&r[Ze].blur(),r[pl]=null,r[Ze]=e,r[co](),e.dispatchEvent(new Vi("focus",{relatedTarget:n,bubbles:false,composed:true})),e.dispatchEvent(new Vi("focusin",{relatedTarget:n,bubbles:true,composed:true}));}static isInert(t){let e=t[Kt]||t;for(;e&&typeof e.getAttribute=="function";){if(e.getAttribute("inert")!==null)return true;e=e[$];}return false}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var zi=class{static kebabToCamelCase(t){let e=t.split("-");for(let r=0,n=e.length;r<n;r++)e[r]=r>0?e[r].charAt(0).toUpperCase()+e[r].slice(1):e[r];return e.join("")}static camelCaseToKebab(t){return t.toString().replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,r)=>(r?"-":"")+e.toLowerCase())}};var vc=class{constructor(t,e){if(t!==b)throw new TypeError("Illegal constructor");return new Proxy(this,{get(r,n){let i=e.getAttribute("data-"+zi.camelCaseToKebab(n));if(i!==null)return i},set(r,n,i){return e.setAttribute("data-"+zi.camelCaseToKebab(n),i),true},deleteProperty(r,n){return e.removeAttribute("data-"+zi.camelCaseToKebab(n)),true},ownKeys(r){let n=[];for(let i of e[Tt][To].values())i[0][ut].startsWith("data-")&&n.push(zi.kebabToCamelCase(i[0][ut].replace("data-","")));return n},has(r,n){return e.hasAttribute("data-"+zi.camelCaseToKebab(n))},defineProperty(r,n,i){return i.value===void 0?false:(e.setAttribute("data-"+zi.camelCaseToKebab(n),i.value),true)},getOwnPropertyDescriptor(r,n){let i=e.getAttribute("data-"+zi.camelCaseToKebab(n));if(i)return {value:i,writable:true,enumerable:true,configurable:true}}})}};var G=class extends Wr{static observedAttributes;[Pp]="";[Sw]=0;[Pw]=0;[Aw]=0;[ww]=0;[xw]=0;[Ew]=0;[vw]=0;[Tw]=0;[Me]=null;[yS]=null;#t=null;get oncancel(){return x.getEventListener(this,"oncancel")}set oncancel(t){this[y].set("oncancel",t);}get onerror(){return x.getEventListener(this,"onerror")}set onerror(t){this[y].set("onerror",t);}get onscroll(){return x.getEventListener(this,"onscroll")}set onscroll(t){this[y].set("onscroll",t);}get onselect(){return x.getEventListener(this,"onselect")}set onselect(t){this[y].set("onselect",t);}get onwheel(){return x.getEventListener(this,"onwheel")}set onwheel(t){this[y].set("onwheel",t);}get oncopy(){return x.getEventListener(this,"oncopy")}set oncopy(t){this[y].set("oncopy",t);}get oncut(){return x.getEventListener(this,"oncut")}set oncut(t){this[y].set("oncut",t);}get onpaste(){return x.getEventListener(this,"onpaste")}set onpaste(t){this[y].set("onpaste",t);}get oncompositionend(){return x.getEventListener(this,"oncompositionend")}set oncompositionend(t){this[y].set("oncompositionend",t);}get oncompositionstart(){return x.getEventListener(this,"oncompositionstart")}set oncompositionstart(t){this[y].set("oncompositionstart",t);}get oncompositionupdate(){return x.getEventListener(this,"oncompositionupdate")}set oncompositionupdate(t){this[y].set("oncompositionupdate",t);}get onblur(){return x.getEventListener(this,"onblur")}set onblur(t){this[y].set("onblur",t);}get onfocus(){return x.getEventListener(this,"onfocus")}set onfocus(t){this[y].set("onfocus",t);}get onfocusin(){return x.getEventListener(this,"onfocusin")}set onfocusin(t){this[y].set("onfocusin",t);}get onfocusout(){return x.getEventListener(this,"onfocusout")}set onfocusout(t){this[y].set("onfocusout",t);}get onkeydown(){return x.getEventListener(this,"onkeydown")}set onkeydown(t){this[y].set("onkeydown",t);}get onkeyup(){return x.getEventListener(this,"onkeyup")}set onkeyup(t){this[y].set("onkeyup",t);}get onauxclick(){return x.getEventListener(this,"onauxclick")}set onauxclick(t){this[y].set("onauxclick",t);}get onclick(){return x.getEventListener(this,"onclick")}set onclick(t){this[y].set("onclick",t);}get oncontextmenu(){return x.getEventListener(this,"oncontextmenu")}set oncontextmenu(t){this[y].set("oncontextmenu",t);}get ondblclick(){return x.getEventListener(this,"ondblclick")}set ondblclick(t){this[y].set("ondblclick",t);}get onmousedown(){return x.getEventListener(this,"onmousedown")}set onmousedown(t){this[y].set("onmousedown",t);}get onmouseenter(){return x.getEventListener(this,"onmouseenter")}set onmouseenter(t){this[y].set("onmouseenter",t);}get onmouseleave(){return x.getEventListener(this,"onmouseleave")}set onmouseleave(t){this[y].set("onmouseleave",t);}get onmousemove(){return x.getEventListener(this,"onmousemove")}set onmousemove(t){this[y].set("onmousemove",t);}get onmouseout(){return x.getEventListener(this,"onmouseout")}set onmouseout(t){this[y].set("onmouseout",t);}get onmouseover(){return x.getEventListener(this,"onmouseover")}set onmouseover(t){this[y].set("onmouseover",t);}get onmouseup(){return x.getEventListener(this,"onmouseup")}set onmouseup(t){this[y].set("onmouseup",t);}get ontouchcancel(){return x.getEventListener(this,"ontouchcancel")}set ontouchcancel(t){this[y].set("ontouchcancel",t);}get ontouchend(){return x.getEventListener(this,"ontouchend")}set ontouchend(t){this[y].set("ontouchend",t);}get ontouchmove(){return x.getEventListener(this,"ontouchmove")}set ontouchmove(t){this[y].set("ontouchmove",t);}get ontouchstart(){return x.getEventListener(this,"ontouchstart")}set ontouchstart(t){this[y].set("ontouchstart",t);}get oninvalid(){return x.getEventListener(this,"oninvalid")}set oninvalid(t){this[y].set("oninvalid",t);}get onanimationcancel(){return x.getEventListener(this,"onanimationcancel")}set onanimationcancel(t){this[y].set("onanimationcancel",t);}get onanimationend(){return x.getEventListener(this,"onanimationend")}set onanimationend(t){this[y].set("onanimationend",t);}get onanimationiteration(){return x.getEventListener(this,"onanimationiteration")}set onanimationiteration(t){this[y].set("onanimationiteration",t);}get onanimationstart(){return x.getEventListener(this,"onanimationstart")}set onanimationstart(t){this[y].set("onanimationstart",t);}get onbeforeinput(){return x.getEventListener(this,"onbeforeinput")}set onbeforeinput(t){this[y].set("onbeforeinput",t);}get oninput(){return x.getEventListener(this,"oninput")}set oninput(t){this[y].set("oninput",t);}get onchange(){return x.getEventListener(this,"onchange")}set onchange(t){this[y].set("onchange",t);}get ongotpointercapture(){return x.getEventListener(this,"ongotpointercapture")}set ongotpointercapture(t){this[y].set("ongotpointercapture",t);}get onlostpointercapture(){return x.getEventListener(this,"onlostpointercapture")}set onlostpointercapture(t){this[y].set("onlostpointercapture",t);}get onpointercancel(){return x.getEventListener(this,"onpointercancel")}set onpointercancel(t){this[y].set("onpointercancel",t);}get onpointerdown(){return x.getEventListener(this,"onpointerdown")}set onpointerdown(t){this[y].set("onpointerdown",t);}get onpointerenter(){return x.getEventListener(this,"onpointerenter")}set onpointerenter(t){this[y].set("onpointerenter",t);}get onpointerleave(){return x.getEventListener(this,"onpointerleave")}set onpointerleave(t){this[y].set("onpointerleave",t);}get onpointermove(){return x.getEventListener(this,"onpointermove")}set onpointermove(t){this[y].set("onpointermove",t);}get onpointerout(){return x.getEventListener(this,"onpointerout")}set onpointerout(t){this[y].set("onpointerout",t);}get onpointerover(){return x.getEventListener(this,"onpointerover")}set onpointerover(t){this[y].set("onpointerover",t);}get onpointerup(){return x.getEventListener(this,"onpointerup")}set onpointerup(t){this[y].set("onpointerup",t);}get ontransitioncancel(){return x.getEventListener(this,"ontransitioncancel")}set ontransitioncancel(t){this[y].set("ontransitioncancel",t);}get ontransitionend(){return x.getEventListener(this,"ontransitionend")}set ontransitionend(t){this[y].set("ontransitionend",t);}get ontransitionrun(){return x.getEventListener(this,"ontransitionrun")}set ontransitionrun(t){this[y].set("ontransitionrun",t);}get ontransitionstart(){return x.getEventListener(this,"ontransitionstart")}set ontransitionstart(t){this[y].set("ontransitionstart",t);}get accessKey(){return this[Pp]}set accessKey(t){this[Pp]=t;}get contentEditable(){let t=String(this.getAttribute("contentEditable")).toLowerCase();switch(t){case "false":case "true":case "plaintext-only":return t;default:return "inherit"}}set contentEditable(t){switch(t=String(t).toLowerCase(),t){case "false":case "true":case "plaintext-only":case "inherit":this.setAttribute("contentEditable",t);break;default:throw new this[m].SyntaxError(`Failed to set the 'contentEditable' property on 'HTMLElement': The value provided ('${t}') is not one of 'true', 'false', 'plaintext-only', or 'inherit'.`)}}get isContentEditable(){let t=this.contentEditable;return t==="true"||t==="plaintext-only"?true:t==="inherit"?this[$]?.isContentEditable??false:false}get offsetHeight(){return this[Sw]}get offsetWidth(){return this[Pw]}get offsetLeft(){return this[Aw]}get offsetTop(){return this[ww]}get clientHeight(){return this[xw]}get clientWidth(){return this[Ew]}get clientLeft(){return this[vw]}get clientTop(){return this[Tw]}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?-1:e}return -1}set tabIndex(t){let e=Number(t);isNaN(e)?this.setAttribute("tabindex","0"):this.setAttribute("tabindex",String(e));}get innerText(){if(!this[ct])return this.textContent;let t="";for(let e of this[K])if(e[V]===L.elementNode){let r=e,n=this[m].getComputedStyle(r);if(r[it]!=="SCRIPT"&&r[it]!=="STYLE"&&r[it]!=="svg"){let i=n.display;if(i!=="none"){let s=n.textTransform,l=r.innerText;(i==="block"||i==="flex")&&t&&l&&(t+=`
121
- `);let a=l;switch(s){case "uppercase":a=a.toUpperCase();break;case "lowercase":a=a.toLowerCase();break;case "capitalize":a=a.replace(/(^|\s)\S/g,u=>u.toUpperCase());break}t+=a;}}}else e[V]===L.textNode&&(t+=e.textContent.replace(/[\n\r]/,""));return t}set innerText(t){let e=this[K];for(;e.length;)this.removeChild(e[0]);let r=t.split(/[\n\r]/),n=this[k];for(let i=0,s=r.length;i<s;i++)i!==0&&this.appendChild(n.createElement("br")),this.appendChild(n.createTextNode(r[i]));}get outerText(){return this.innerText}set outerText(t){if(!this[$])throw new this[m].DOMException("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");let e=t.split(/[\n\r]/);for(let r=0,n=e.length;r<n;r++)r!==0&&this[$].insertBefore(this[k].createElement("br"),this),this[$].insertBefore(this[k].createTextNode(e[r]),this);this[$].removeChild(this);}get style(){return this[Me]||(this[Me]=new fo(b,this[m],{element:this})),this[Me]}set style(t){this.style.cssText=typeof t=="string"?t:"";}get dataset(){return this[yS]??=new vc(b,this)}get dir(){return this.getAttribute("dir")||""}set dir(t){this.setAttribute("dir",t);}get hidden(){return this.getAttribute("hidden")!==null}set hidden(t){t?this.setAttribute("hidden",""):this.removeAttribute("hidden");}get inert(){return this.getAttribute("inert")!==null}set inert(t){t?this.setAttribute("inert",""):this.removeAttribute("inert");}get lang(){return this.getAttribute("lang")||""}set lang(t){this.setAttribute("lang",t);}get title(){return this.getAttribute("title")||""}set title(t){this.setAttribute("title",t);}get popover(){switch(this.getAttribute("popover")){case null:return null;case "":case "auto":return "auto";case "manual":return "manual";default:return "manual"}}set popover(t){if(t===null){this.removeAttribute("popover");return}this.setAttribute("popover",t);}click(){this.dispatchEvent(new tu("click",{bubbles:true,composed:true,cancelable:true}));}blur(){Vl.blur(this);}focus(){Vl.focus(this);}[wt](t=false){let e=super[wt](t);return e[Pp]=this[Pp],e}[Lr](){let t=this[m],e=this[mt],r=t.customElements[vi];if(this.constructor===t.HTMLElement&&e.includes("-")&&r&&!this.#t){let n=this.#e.bind(this),i=r.get(e);i?i.unshift(n):r.set(e,[n]),this.#t=n;}super[Lr]();}[Mr](){let t=this[m],e=this[mt],r=t.customElements[vi];if(this.constructor===t.HTMLElement&&e.includes("-")&&r){let n=r.get(e);if(n&&this.#t){let i=n.indexOf(this.#t);i!==-1&&n.splice(i,1),n.length||r.delete(e),this.#t=null;}}super[Mr]();}[We](t,e){super[We](t,e),this[m][vl].enqueueReaction(this,"attributeChangedCallback",[t.name,e?.value??null,t.value]);}[fr](t){super[fr](t),this[m][vl].enqueueReaction(this,"attributeChangedCallback",[t.name,t.value,null]);}[Mt](){super[Mt](),this[Me]=null,this[yS]=null;}#e(){if(!this[$])return;let t=this[m],e=this[mt],r=this[k].createElement(e),n=r[_];r[K]=this[K],r[St]=this[St],r[al]=null,r[Nr]=null,r[ct]=this[ct],r[$e]=this[$e],r[Jt]=this[Jt],r[$]=this[$],r[tr]=this[tr],r[wr]=this[wr],r[Go]=this[Go],r[Ho]=this[Ho],r[_]=this[_],r[ar]=this[ar],r[Tt][Ni]=this[Tt][Ni],r[Tt][To]=this[Tt][To],r[Tt][J]=this[Tt][J];for(let u of r[Tt][J].values())u[Vt]=r;this[co](),this[K]=[],this[St]=[],this[al]=null,this[Nr]=null,this[$]=null,this[$e]=null,this[Jt]=null,this[tr]=null,this[wr]=null,this[Go]=[],this[Ho]=null,this[_]=n,this[ar]=[],this[Tt][Ni]=new Map,this[Tt][To]=new Map,this[Tt][J]=new Map;for(let u of r[K])u[$]=r;let i=r[$][K],s=r[$][St];i[i.indexOf(this)]=r,s[s.indexOf(this)]=r;let l=t.customElements[vi],a=l.get(e);if(a&&this.#t){let u=a.indexOf(this.#t);u!==-1&&a.splice(u,1),a.length||l.delete(e),this.#t=null;}r[ct]&&(r[Le]&&(r[Le][ct]=true),r[Lr]());}};chunkBUNLC3II_cjs.h();var Tc=class{element;constructor(t){this.element=t;}getOrigin(){try{return new URL(this.getHref()).origin}catch{return ""}}getHref(){if(!this.element.hasAttribute("href"))return "";try{return new URL(this.element.getAttribute("href"),this.element[k].location.href).href}catch{return this.element.getAttribute("href")}}setHref(t){this.element.setAttribute("href",t);}getProtocol(){try{return new URL(this.getHref()).protocol}catch{return ""}}setProtocol(t){let e;try{e=new URL(this.getHref());}catch{return}e.protocol=t,this.element.setAttribute("href",e.href);}getUsername(){try{return new URL(this.getHref()).username}catch{return ""}}setUsername(t){let e;try{e=new URL(this.getHref());}catch{return}e.username=t,this.element.setAttribute("href",e.href);}getPassword(){try{return new URL(this.getHref()).password}catch{return ""}}setPassword(t){let e;try{e=new URL(this.getHref());}catch{return}e.password=t,this.element.setAttribute("href",e.href);}getHost(){try{return new URL(this.getHref()).host}catch{return ""}}setHost(t){let e;try{e=new URL(this.getHref());}catch{return}e.host=t,this.element.setAttribute("href",e.href);}getHostname(){try{return new URL(this.getHref()).hostname}catch{return ""}}setHostname(t){let e;try{e=new URL(this.getHref());}catch{return}e.hostname=t,this.element.setAttribute("href",e.href);}getPort(){try{return new URL(this.getHref()).port}catch{return ""}}setPort(t){let e;try{e=new URL(this.getHref());}catch{return}e.port=t,this.element.setAttribute("href",e.href);}getPathname(){try{return new URL(this.getHref()).pathname}catch{return ""}}setPathname(t){let e;try{e=new URL(this.getHref());}catch{return}e.pathname=t,this.element.setAttribute("href",e.href);}getSearch(){try{return new URL(this.getHref()).search}catch{return ""}}setSearch(t){let e;try{e=new URL(this.getHref());}catch{return}e.search=t,this.element.setAttribute("href",e.href);}getHash(){let t=this.element.getAttribute("href");if(t?.[0]==="#")return t;let e;try{e=new URL(this.getHref());}catch{return ""}return e.hash}setHash(t){let e;try{e=new URL(this.getHref());}catch{return}e.hash=t,this.element.setAttribute("href",e.href);}};var om=class extends G{[Uo]=null;#t=new Tc(this);get download(){return this.getAttribute("download")||""}set download(t){this.setAttribute("download",t);}get hash(){return this.#t.getHash()}set hash(t){this.#t.setHash(t);}get href(){return this.#t.getHref()}set href(t){this.#t.setHref(t);}get hreflang(){return this.getAttribute("hreflang")||""}set hreflang(t){this.setAttribute("hreflang",t);}get origin(){return this.#t.getOrigin()}get ping(){return this.getAttribute("ping")||""}set ping(t){this.setAttribute("ping",t);}get protocol(){return this.#t.getProtocol()}set protocol(t){this.#t.setProtocol(t);}get username(){return this.#t.getUsername()}set username(t){this.#t.setUsername(t);}get password(){return this.#t.getPassword()}set password(t){this.#t.setPassword(t);}get pathname(){return this.#t.getPathname()}set pathname(t){this.#t.setPathname(t);}get port(){return this.#t.getPort()}set port(t){this.#t.setPort(t);}get host(){return this.#t.getHost()}set host(t){this.#t.setHost(t);}get hostname(){return this.#t.getHostname()}set hostname(t){this.#t.setHostname(t);}get referrerPolicy(){return this.getAttribute("referrerPolicy")||""}set referrerPolicy(t){this.setAttribute("referrerPolicy",t);}get rel(){return this.getAttribute("rel")||""}set rel(t){this.setAttribute("rel",t);}get relList(){return this[Uo]||(this[Uo]=new bo(b,this,"rel")),this[Uo]}set relList(t){this.setAttribute("rel",t);}get search(){return this.#t.getSearch()}set search(t){this.#t.setSearch(t);}get target(){return this.getAttribute("target")||""}set target(t){this.setAttribute("target",t);}get text(){return this.textContent}set text(t){this.textContent=t;}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t);}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t;}toString(){return this.href}dispatchEvent(t){let e=super.dispatchEvent(t);if(!t[Ir]&&t.type==="click"&&t instanceof cr&&(t.eventPhase===Pe.none||t.eventPhase===Pe.bubbling)){let r=this.href;if(r){let n=[];this.relList.contains("noreferrer")&&n.push("noreferrer"),this.relList.contains("noopener")&&n.push("noopener"),this[m].open(r,this.target||"_self",n.join(",")),this[m].closed&&t.stopImmediatePropagation();}}return e}};chunkBUNLC3II_cjs.h();var nm=class extends G{[Uo]=null;#t=new Tc(this);get alt(){return this.getAttribute("alt")||""}set alt(t){this.setAttribute("alt",t);}get coords(){return this.getAttribute("coords")||""}set coords(t){this.setAttribute("coords",t);}get shape(){return this.getAttribute("shape")||""}set shape(t){this.setAttribute("shape",t);}get download(){return this.getAttribute("download")||""}set download(t){this.setAttribute("download",t);}get referrerPolicy(){return this.getAttribute("referrerPolicy")||""}set referrerPolicy(t){this.setAttribute("referrerPolicy",t);}get ping(){return this.getAttribute("ping")||""}set ping(t){this.setAttribute("ping",t);}get rel(){return this.getAttribute("rel")||""}set rel(t){this.setAttribute("rel",t);}get relList(){return this[Uo]||(this[Uo]=new bo(b,this,"rel")),this[Uo]}set relList(t){this.setAttribute("rel",t);}get target(){return this.getAttribute("target")||""}set target(t){this.setAttribute("target",t);}get origin(){return this.#t.getOrigin()}get href(){return this.#t.getHref()}set href(t){this.#t.setHref(t);}get protocol(){return this.#t.getProtocol()}set protocol(t){this.#t.setProtocol(t);}get username(){return this.#t.getUsername()}set username(t){this.#t.setUsername(t);}get password(){return this.#t.getPassword()}set password(t){this.#t.setPassword(t);}get host(){return this.#t.getHost()}set host(t){this.#t.setHost(t);}get hostname(){return this.#t.getHostname()}set hostname(t){this.#t.setHostname(t);}get port(){return this.#t.getPort()}set port(t){this.#t.setPort(t);}get pathname(){return this.#t.getPathname()}set pathname(t){this.#t.setPathname(t);}get search(){return this.#t.getSearch()}set search(t){this.#t.setSearch(t);}get hash(){return this.#t.getHash()}set hash(t){this.#t.setHash(t);}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t;}toString(){return this.href}dispatchEvent(t){let e=super.dispatchEvent(t);if(!t[Ir]&&t[ne]==="click"&&t[Xr]===Pe.none&&t instanceof cr){let r=this.href;r&&(this[m].open(r,this.target||"_self"),this[m].closed&&t.stopImmediatePropagation());}return e}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Hl=class{constructor(t){if(t!==b)throw new TypeError("Illegal constructor")}get length(){return 0}get[Symbol.toStringTag](){return "TimeRanges"}toLocaleString(){return "[object TimeRanges]"}toString(){return "[object TimeRanges]"}start(t){return 0}end(t){return 0}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var im=class extends M{track;constructor(t,e=null){super(t,e),this.track=e?.track??null;}};var lu=class o extends Dt{active=true;id=gR__default.default.randomUUID();onaddtrack=null;onremovetrack=null;[Ci]=[];constructor(t){if(super(),!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);t!==void 0&&(this[Ci]=t instanceof o?t[Ci].slice():t);}addTrack(t){this[Ci].includes(t)||(this[Ci].push(t),this.dispatchEvent(new im("addtrack",{track:t})));}clone(){return new this.constructor(this)}getAudioTracks(){return this[Ci].filter(t=>t.kind==="audio")}getTrackById(t){for(let e of this[Ci])if(e.id===t)return e;return null}getVideoTracks(){return this[Ci].filter(t=>t.kind==="video")}removeTrack(t){let e=this[Ci].indexOf(t);e!==-1&&(this[Ci].splice(e,1),this.dispatchEvent(new im("removetrack",{track:t})));}};chunkBUNLC3II_cjs.h();var Sx;(function(o){o.subtitles="subtitles",o.captions="captions",o.descriptions="descriptions",o.chapters="chapters",o.metadata="metadata";})(Sx||(Sx={}));var Fs=Sx;var Bs=class extends G{[nS]=1;[qu]=true;[iS]=0;[sS]=1;[lS]=1;[Ap]=false;[Yu]=false;[aS]=true;[Cw]=new Hl(b);[kw]=NaN;[dr]=null;[Nw]=false;[Lw]=0;[va]=0;[Mw]=false;[Iw]=new Hl(b);[bS]="";[Rw]=new Hl(b);[Dw]=new this[m].RemotePlayback;[Ry]=null;[fS]=null;[gS]=null;[uS]=[];get onabort(){return x.getEventListener(this,"onabort")}set onabort(t){this[y].set("onabort",t);}get oncanplay(){return x.getEventListener(this,"oncanplay")}set oncanplay(t){this[y].set("oncanplay",t);}get oncanplaythrough(){return x.getEventListener(this,"oncanplaythrough")}set oncanplaythrough(t){this[y].set("oncanplaythrough",t);}get ondurationchange(){return x.getEventListener(this,"ondurationchange")}set ondurationchange(t){this[y].set("ondurationchange",t);}get onemptied(){return x.getEventListener(this,"onemptied")}set onemptied(t){this[y].set("onemptied",t);}get onended(){return x.getEventListener(this,"onended")}set onended(t){this[y].set("onended",t);}get onloadeddata(){return x.getEventListener(this,"onloadeddata")}set onloadeddata(t){this[y].set("onloadeddata",t);}get onloadedmetadata(){return x.getEventListener(this,"onloadedmetadata")}set onloadedmetadata(t){this[y].set("onloadedmetadata",t);}get onloadstart(){return x.getEventListener(this,"onloadstart")}set onloadstart(t){this[y].set("onloadstart",t);}get onpause(){return x.getEventListener(this,"onpause")}set onpause(t){this[y].set("onpause",t);}get onplay(){return x.getEventListener(this,"onplay")}set onplay(t){this[y].set("onplay",t);}get onplaying(){return x.getEventListener(this,"onplaying")}set onplaying(t){this[y].set("onplaying",t);}get onprogress(){return x.getEventListener(this,"onprogress")}set onprogress(t){this[y].set("onprogress",t);}get onratechange(){return x.getEventListener(this,"onratechange")}set onratechange(t){this[y].set("onratechange",t);}get onresize(){return x.getEventListener(this,"onresize")}set onresize(t){this[y].set("onresize",t);}get onseeked(){return x.getEventListener(this,"onseeked")}set onseeked(t){this[y].set("onseeked",t);}get onseeking(){return x.getEventListener(this,"onseeking")}set onseeking(t){this[y].set("onseeking",t);}get onstalled(){return x.getEventListener(this,"onstalled")}set onstalled(t){this[y].set("onstalled",t);}get onsuspend(){return x.getEventListener(this,"onsuspend")}set onsuspend(t){this[y].set("onsuspend",t);}get ontimeupdate(){return x.getEventListener(this,"ontimeupdate")}set ontimeupdate(t){this[y].set("ontimeupdate",t);}get onvolumechange(){return x.getEventListener(this,"onvolumechange")}set onvolumechange(t){this[y].set("onvolumechange",t);}get onwaiting(){return x.getEventListener(this,"onwaiting")}set onwaiting(t){this[y].set("onwaiting",t);}get buffered(){return this[Cw]}get duration(){return this[kw]}get error(){return this[dr]}get ended(){return this[Nw]}get networkState(){return this[Lw]}get readyState(){return this[va]}get remote(){return this[Dw]}get seeking(){return this[Mw]}get seekable(){return this[Iw]}get sinkId(){return this[bS]}get played(){return this[Rw]}get autoplay(){return this.getAttribute("autoplay")!==null}set autoplay(t){t?this.setAttribute("autoplay",""):this.removeAttribute("autoplay");}get controls(){return this.getAttribute("controls")!==null}set controls(t){t?this.setAttribute("controls",""):this.removeAttribute("controls");}get loop(){return this.getAttribute("loop")!==null}set loop(t){t?this.setAttribute("loop",""):this.removeAttribute("loop");}get preload(){return this.getAttribute("preload")||"auto"}set preload(t){this.setAttribute("preload",t);}get src(){if(!this.hasAttribute("src"))return "";try{return new URL(this.getAttribute("src"),this[k].location.href).href}catch{return this.getAttribute("src")}}set src(t){this.setAttribute("src",t),t&&(this.dispatchEvent(new M("canplay",{bubbles:false,cancelable:false})),this.dispatchEvent(new M("durationchange",{bubbles:false,cancelable:false})));}get controlsList(){return this[Ry]===null&&(this[Ry]=new bo(b,this,"controlslist")),this[Ry]}set controlsList(t){this.setAttribute("controlslist",t);}get mediaKeys(){return this[fS]}get muted(){return this[Ap]?this[Ap]:this[Yu]?false:this.getAttribute("muted")!==null}set muted(t){this[Ap]=!!t,!t&&!this[Yu]?this.removeAttribute("muted"):this.setAttribute("muted","");}get defaultMuted(){return this[Yu]}set defaultMuted(t){this[Yu]=!!t,!this[Yu]&&!this[Ap]?this.removeAttribute("muted"):this.setAttribute("muted","");}get disableRemotePlayback(){return this.getAttribute("disableremoteplayback")!==null}set disableRemotePlayback(t){t?this.setAttribute("disableremoteplayback",""):this.removeAttribute("disableremoteplayback");}get srcObject(){return this[gS]}set srcObject(t){if(t!==null&&!(t instanceof lu))throw new this[m].TypeError("Failed to set the 'srcObject' property on 'HTMLMediaElement': The provided value is not of type 'MediaStream'.");this[gS]=t;}get textTracks(){let t=[];for(let e of this[uS])t.push(e);for(let e of this.querySelectorAll("track")[J])t.push(e.track);return new this[m].TextTrackList(b,t)}get currentSrc(){let t=this.src;if(t)return t;let e=this.querySelector("source");return e?e.src:""}get volume(){return this[nS]}set volume(t){let e=Number(t);if(isNaN(e))throw new this[m].TypeError("Failed to set the 'volume' property on 'HTMLMediaElement': The provided double value is non-finite.");if(e<0||e>1)throw new this[m].DOMException(`Failed to set the 'volume' property on 'HTMLMediaElement': The volume provided (${e}) is outside the range [0, 1].`,C.indexSizeError);this[nS]=e;}get crossOrigin(){let t=this.getAttribute("crossorigin");return t==="use-credentials"?"use-credentials":t!==null?"anonymous":null}set crossOrigin(t){this.setAttribute("crossorigin",t);}get currentTime(){return this[iS]}set currentTime(t){let e=Number(t);if(isNaN(e))throw new this[m].TypeError("Failed to set the 'currentTime' property on 'HTMLMediaElement': The provided double value is non-finite.");this[iS]=e;}get playbackRate(){return this[sS]}set playbackRate(t){let e=Number(t);if(isNaN(e))throw new this[m].TypeError("Failed to set the 'playbackRate' property on 'HTMLMediaElement': The provided double value is non-finite.");this[sS]=e;}get defaultPlaybackRate(){return this[lS]}set defaultPlaybackRate(t){let e=Number(t);if(isNaN(e))throw new this[m].TypeError("Failed to set the 'defaultPlaybackRate' property on 'HTMLMediaElement': The provided double value is non-finite.");this[lS]=e;}get preservesPitch(){return this[aS]}set preservesPitch(t){this[aS]=!!t;}get paused(){return this[qu]}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t;}addTextTrack(t,e,r){let n=this[m];if(arguments.length===0)throw new n.TypeError("Failed to execute 'addTextTrack' on 'HTMLMediaElement': 1 argument required, but only 0 present.");if(!Fs[t])throw new n.TypeError(`Failed to execute 'addTextTrack' on 'HTMLMediaElement': The provided value '${t}' is not a valid enum value of type TextTrackKind.`);let i=new n.TextTrack(b);return i[dn]=t,i[Sl]=e||"",i[tc]=r||"",this[uS].push(i),i}pause(){this[qu]||(this[qu]=true,this.dispatchEvent(new M("pause",{bubbles:false,cancelable:false})));}async play(){this[qu]&&(this[qu]=false,this.dispatchEvent(new M("play",{bubbles:false,cancelable:false})),this.dispatchEvent(new M("playing",{bubbles:false,cancelable:false})));}canPlayType(t){return ""}fastSeek(t){}load(){this.dispatchEvent(new M("emptied",{bubbles:false,cancelable:false}));}async setMediaKeys(t){this[fS]=t;}async setSinkId(t){this[bS]=t;}captureStream(){return new this[m].MediaStream}[wt](t=false){return super[wt](t)}};var au=class extends Bs{};chunkBUNLC3II_cjs.h();var sm=class extends G{get href(){if(!this.hasAttribute("href"))return this[k].location.href;try{return new URL(this.getAttribute("href"),this[k].location.href).href}catch{return this.getAttribute("href")}}set href(t){this.setAttribute("href",t);}get target(){return this.getAttribute("target")||""}set target(t){this.setAttribute("target",t);}[wt](t=false){return super[wt](t)}};chunkBUNLC3II_cjs.h();var lm=class extends G{get onafterprint(){return x.getEventListener(this,"onafterprint")}set onafterprint(t){this[y].set("onafterprint",t);}get onbeforeprint(){return x.getEventListener(this,"onbeforeprint")}set onbeforeprint(t){this[y].set("onbeforeprint",t);}get onbeforeunload(){return x.getEventListener(this,"onbeforeunload")}set onbeforeunload(t){this[y].set("onbeforeunload",t);}get ongamepadconnected(){return x.getEventListener(this,"ongamepadconnected")}set ongamepadconnected(t){this[y].set("ongamepadconnected",t);}get ongamepaddisconnected(){return x.getEventListener(this,"ongamepaddisconnected")}set ongamepaddisconnected(t){this[y].set("ongamepaddisconnected",t);}get onhashchange(){return x.getEventListener(this,"onhashchange")}set onhashchange(t){this[y].set("onhashchange",t);}get onlanguagechange(){return x.getEventListener(this,"onlanguagechange")}set onlanguagechange(t){this[y].set("onlanguagechange",t);}get onmessage(){return x.getEventListener(this,"onmessage")}set onmessage(t){this[y].set("onmessage",t);}get onmessageerror(){return x.getEventListener(this,"onmessageerror")}set onmessageerror(t){this[y].set("onmessageerror",t);}get onoffline(){return x.getEventListener(this,"onoffline")}set onoffline(t){this[y].set("onoffline",t);}get ononline(){return x.getEventListener(this,"ononline")}set ononline(t){this[y].set("ononline",t);}get onpagehide(){return x.getEventListener(this,"onpagehide")}set onpagehide(t){this[y].set("onpagehide",t);}get onpageshow(){return x.getEventListener(this,"onpageshow")}set onpageshow(t){this[y].set("onpageshow",t);}get onpopstate(){return x.getEventListener(this,"onpopstate")}set onpopstate(t){this[y].set("onpopstate",t);}get onrejectionhandled(){return x.getEventListener(this,"onrejectionhandled")}set onrejectionhandled(t){this[y].set("onrejectionhandled",t);}get onstorage(){return x.getEventListener(this,"onstorage")}set onstorage(t){this[y].set("onstorage",t);}get onunhandledrejection(){return x.getEventListener(this,"onunhandledrejection")}set onunhandledrejection(t){this[y].set("onunhandledrejection",t);}get onunload(){return x.getEventListener(this,"onunload")}set onunload(t){this[y].set("onunload",t);}};chunkBUNLC3II_cjs.h();var am=class extends G{};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var pO=/^([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22))*\x40([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d))*$/,mO=/^(?:(?:https?|HTTPS?|ftp|FTP):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-zA-Z\u00a1-\uffff0-9]-*)*[a-zA-Z\u00a1-\uffff0-9]+)(?:\.(?:[a-zA-Z\u00a1-\uffff0-9]-*)*[a-zA-Z\u00a1-\uffff0-9]+)*)(?::\d{2,5})?(?:[\/?#]\S*)?$/,go=class{element;constructor(t){this.element=t;}get badInput(){return this.element[mt]==="input"&&(this.element.type==="number"||this.element.type==="range")&&this.element.value.length>0&&!/^[-+]?(?:\d+|\d*[.,]\d+)$/.test(this.element.value)}get customError(){return this.element[qe].length>0}get patternMismatch(){return this.element[mt]==="input"&&this.element.hasAttribute("pattern")&&this.element.value.length>0&&this.element.value.replace(new RegExp(this.element.getAttribute("pattern")),"").length>0}get rangeOverflow(){return this.element[mt]==="input"&&this.element.hasAttribute("max")&&(this.element.type==="number"||this.element.type==="range")&&this.element.value.length>0&&Number(this.element.value)>Number(this.element.getAttribute("max"))}get rangeUnderflow(){return this.element[mt]==="input"&&this.element.hasAttribute("min")&&(this.element.type==="number"||this.element.type==="range")&&this.element.value.length>0&&Number(this.element.value)<Number(this.element.getAttribute("min"))}get stepMismatch(){return this.element[mt]==="input"&&(this.element.type==="number"||this.element.type==="range")&&(this.element.hasAttribute("step")&&this.element.getAttribute("step")!=="any"&&Number(this.element.value)%Number(this.element.getAttribute("step"))!==0||!this.element.hasAttribute("step")&&Number(this.element.value)%1!==0)}get tooLong(){return (this.element[mt]==="input"||this.element[mt]==="textarea")&&this.element.maxLength>0&&this.element.value.length>this.element.maxLength}get tooShort(){return (this.element[mt]==="input"||this.element[mt]==="textarea")&&this.element.minLength>0&&this.element.value.length>0&&this.element.value.length<this.element.minLength}get typeMismatch(){return this.element[mt]==="input"&&this.element.value.length>0&&(this.element.type==="email"&&!pO.test(this.element.value)||this.element.type==="url"&&!mO.test(this.element.value))}get valueMissing(){if(!this.element.required||this.element[mt]==="object"||this.element[mt]==="output")return false;if(this.element[mt]==="input"){if(this.element.type==="checkbox")return !this.element.checked;if(this.element.type==="radio"){if(this.element.checked)return false;if(!this.element.name)return true;let t=this.element[Jt]||this.element.getRootNode();return !t||!t.querySelector(`input[name="${this.element.name}"]:checked`)}}return this.element.value.length===0}get valid(){return !this.badInput&&!this.customError&&!this.patternMismatch&&!this.rangeOverflow&&!this.rangeUnderflow&&!this.stepMismatch&&!this.tooLong&&!this.tooShort&&!this.typeMismatch&&!this.valueMissing}};chunkBUNLC3II_cjs.h();var So=class{static getAssociatedLabelElements(t){let e=t.id,r;e&&t[ct]?r=(t[$e]||t[k]).querySelectorAll(`label[for="${e}"]`)[J]:r=[];let n=t[$];for(;n;){if(n.tagName==="LABEL"){r.push(n);break}n=n[$];}return new Mn(b,r)}};var yO=["submit","reset","button","menu"],um=class extends G{[qe]="";[yr]=new go(this);[Jt]=null;[Ia]=null;get validationMessage(){return this[qe]}get validity(){return this[yr]}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t);}get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t);}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled");}get type(){let t=this.getAttribute("type");return t===null||!yO.includes(t)?"submit":t}set type(t){this.setAttribute("type",t);}get formAction(){if(!this.hasAttribute("formaction"))return this[k].location.href;try{return new url.URL(this.getAttribute("formaction"),this[k].location.href).href}catch{return ""}}set formAction(t){this.setAttribute("formaction",t);}get formEnctype(){return this.getAttribute("formenctype")||""}set formEnctype(t){this.setAttribute("formenctype",t);}get formMethod(){return this.getAttribute("formmethod")||""}set formMethod(t){this.setAttribute("formmethod",t);}get formNoValidate(){return this.getAttribute("formnovalidate")!==null}set formNoValidate(t){t?this.setAttribute("formnovalidate",""):this.removeAttribute("formnovalidate");}get formTarget(){return this.getAttribute("formtarget")||""}set formTarget(t){this.setAttribute("formtarget",t);}get form(){if(this[Jt])return this[Jt];let t=this.getAttribute("form");return !t||!this[ct]?null:this[k].getElementById(t)}get labels(){return So.getAssociatedLabelElements(this)}get popoverTargetElement(){return this[Ia]}set popoverTargetElement(t){if(t!==null&&!(t instanceof G))throw new this[m].TypeError("Failed to set the 'popoverTargetElement' property on 'HTMLInputElement': Failed to convert value to 'Element'.");this[Ia]=t;}get popoverTargetAction(){let t=this.getAttribute("popovertargetaction");return t===null||t!=="hide"&&t!=="show"&&t!=="toggle"?"toggle":t}set popoverTargetAction(t){this.setAttribute("popovertargetaction",t);}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t;}checkValidity(){let t=this.disabled||this.type==="reset"||this.type==="button"||this[yr].valid;return t||this.dispatchEvent(new M("invalid",{bubbles:true,cancelable:true})),t}reportValidity(){return this.checkValidity()}setCustomValidity(t){this[qe]=String(t);}dispatchEvent(t){if(t.type==="click"&&t instanceof cr&&t.eventPhase===Pe.none&&this.disabled)return false;let e=super.dispatchEvent(t);if(!t[Ir]&&t.type==="click"&&t.eventPhase===Pe.none&&t instanceof cr){let r=this.type;if(r==="submit"||r==="reset"){let n=this.form;n&&(r==="submit"&&this[ct]?n.requestSubmit(this):r==="reset"&&n.reset());}}return e}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Vs=class{[Zd]=null;width;height;constructor(t,e){this.width=t,this.height=e;}getContext(t,e){let r=new et(this[m]).getBrowserFrame();if(!r)throw new this[m].Error("Failed to execute 'getContext' on 'OffscreenCanvas': Browser frame is not available. This happens when the browser is closing.");let i=new et(this[m]).getSettings()?.canvasAdapter;return i?(this[Zd]=i.getContext({window:this[m],browserFrame:r,canvas:this},t,e),this[Zd]):null}convertToBlob(t){let e=new et(this[m]).getBrowserFrame();if(!e)throw new this[m].Error("Failed to execute 'getContext' on 'OffscreenCanvas': Browser frame is not available. This happens when the browser is closing.");let n=new et(this[m]).getSettings()?.canvasAdapter;return n?new Promise((i,s)=>{n.toBlob({window:this[m],browserFrame:e,canvas:this},l=>{l?i(l):s(new this[m].DOMException("Failed to execute 'convertToBlob' on 'OffscreenCanvas': The canvas could not be converted to a Blob.",C.encodingError));},t?.type,t?.quality);}):new Promise(i=>{this[m].requestAnimationFrame(()=>i(new Ae([],t)));})}transferToImageBitmap(){if(!new et(this[m]).getBrowserFrame())throw new this[m].Error("Failed to execute 'getContext' on 'OffscreenCanvas': Browser frame is not available. This happens when the browser is closing.");let e=this[m];if(!new et(e).getSettings()?.canvasAdapter)return new e.ImageBitmap(b,this[m],this);let i=this[Zd];if(!i)throw new this[m].TypeError("Failed to execute 'transferToImageBitmap' on 'OffscreenCanvas': Cannot transfer an ImageBitmap from an OffscreenCanvas with no context");let s=new e.ImageBitmap(b,this[m],this);return i.clearRect(0,0,this.width,this.height),s}};var wk="S3F/aBCdEfGHIjKlMnOpQRStUvWxYz1234567890+1AbC2DEf2GHi3jK34le+ab12C3+1aBCdEf==",uu;(function(o){o.none="none",o.context="context",o.offscreen="offscreen";})(uu||(uu={}));var cu=class extends G{#t=uu.none;#e=null;get oncontextlost(){return x.getEventListener(this,"oncontextlost")}set oncontextlost(t){this[y].set("oncontextlost",t);}get oncontextrestored(){return x.getEventListener(this,"oncontextrestored")}set oncontextrestored(t){this[y].set("oncontextrestored",t);}get onwebglcontextcreationerror(){return x.getEventListener(this,"onwebglcontextcreationerror")}set onwebglcontextcreationerror(t){this[y].set("onwebglcontextcreationerror",t);}get onwebglcontextlost(){return x.getEventListener(this,"onwebglcontextlost")}set onwebglcontextlost(t){this[y].set("onwebglcontextlost",t);}get onwebglcontextrestored(){return x.getEventListener(this,"onwebglcontextrestored")}set onwebglcontextrestored(t){this[y].set("onwebglcontextrestored",t);}get width(){let t=this.getAttribute("width");if(t===null)return 300;let e=parseInt(t,10);return isNaN(e)?300:e}set width(t){this.setAttribute("width",String(t));}get height(){let t=this.getAttribute("height");if(t===null)return 150;let e=parseInt(t,10);return isNaN(e)?150:e}set height(t){this.setAttribute("height",String(t));}captureStream(t){let e=new this[m].MediaStream,r=new this[m].CanvasCaptureMediaStreamTrack(b,this);return r[dn]="video",r[ki].deviceId=wk,r[ki].aspectRatio.max=this.width,r[ki].height.max=this.height,r[ki].width.max=this.width,r[Ca].deviceId=wk,t!==void 0&&(r[ki].frameRate.max=t,r[Ca].frameRate=t),e.addTrack(r),e}getContext(t,e){if(this.#t===uu.offscreen)throw new this[m].DOMException("Failed to execute 'getContext' on 'HTMLCanvasElement': Cannot get context from a canvas that has transferred its control to offscreen.",C.invalidStateError);this.#t=uu.context;let r=new et(this[m]).getBrowserFrame();if(!r)throw new this[m].Error("Failed to execute 'getContext' on 'HTMLCanvasElement': Browser frame is not available. This happens when the browser is closing.");let i=new et(this[m]).getSettings()?.canvasAdapter;return i?i.getContext({browserFrame:r,window:this[m],canvas:this},t,e):null}toDataURL(t,e){let r=new et(this[m]).getBrowserFrame();if(!r)throw new this[m].Error("Failed to execute 'toDataURL' on 'HTMLCanvasElement': Browser frame is not available. This happens when the browser is closing.");let i=new et(this[m]).getSettings()?.canvasAdapter;return i?this.#e?i.toDataURL({browserFrame:r,window:this[m],canvas:this.#e},t,e):i.toDataURL({browserFrame:r,window:this[m],canvas:this},t,e):`data:${t||"image/png"};base64,${Buffer.from([]).toString("base64")}`}toBlob(t,e,r){let n=new et(this[m]).getBrowserFrame();if(!n)throw new this[m].Error("Failed to execute 'toBlob' on 'HTMLCanvasElement': Browser frame is not available. This happens when the browser is closing.");let s=new et(this[m]).getSettings()?.canvasAdapter;if(!s){this[m].requestAnimationFrame(()=>t(new Ae([],{type:e||"image/png"})));return}if(this.#e){s.toBlob({browserFrame:n,window:this[m],canvas:this.#e},t,e,r);return}s.toBlob({browserFrame:n,window:this[m],canvas:this},t,e,r);}transferControlToOffscreen(){if(this.#t===uu.context)throw new this[m].DOMException("Failed to execute 'transferControlToOffscreen' on 'HTMLCanvasElement': Cannot transfer control from a canvas that has a rendering context.",C.invalidStateError);if(this.#t===uu.offscreen)throw new this[m].DOMException("Failed to execute 'transferControlToOffscreen' on 'HTMLCanvasElement': Cannot transfer control from a canvas for more than one time.",C.invalidStateError);return this.#t=uu.offscreen,this.#e=new Vs(this.width,this.height),this.#e}};chunkBUNLC3II_cjs.h();var cm=class extends G{};chunkBUNLC3II_cjs.h();var pm=class extends G{get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t);}};chunkBUNLC3II_cjs.h();var mm=class extends G{[ko]=null;get options(){return this[ko]||(this[ko]=de.getElementsByTagName(this,"OPTION")),this[ko]}};chunkBUNLC3II_cjs.h();var hm=class extends G{get ontoggle(){return x.getEventListener(this,"ontoggle")}set ontoggle(t){this[y].set("ontoggle",t);}get open(){return this.getAttribute("open")!==null}set open(t){t?this.setAttribute("open",""):this.removeAttribute("open");}[We](t,e){super[We](t,e),t[ut]==="open"&&t[ot]!==e?.[ot]&&this.dispatchEvent(new M("toggle"));}[fr](t){super[fr](t),t&&t[ut]==="open"&&this.dispatchEvent(new M("toggle"));}dispatchEvent(t){let e=super.dispatchEvent(t);if(!t[Ir]&&t.type==="click"&&t.eventPhase===Pe.bubbling&&t instanceof cr){let r=t[Qr];if(r)if(r[mt]==="summary"&&r[$]===this)this.open=!this.open;else {let n=r;for(let i of this[St])if(i[mt]==="summary"){n=i;break}n&&n.contains(r)&&(this.open=!this.open);}}return e}};chunkBUNLC3II_cjs.h();var ym=class extends G{[oS]="";get oncancel(){return x.getEventListener(this,"oncancel")}set oncancel(t){this[y].set("oncancel",t);}get onclose(){return x.getEventListener(this,"onclose")}set onclose(t){this[y].set("onclose",t);}get returnValue(){return this[oS]}set returnValue(t){this[oS]=String(t);}set open(t){t?this.setAttribute("open",""):this.removeAttribute("open");}get open(){return this.getAttribute("open")!==null}close(t){let e=this.open;this.removeAttribute("open"),this.returnValue=t!==void 0?String(t):"",e&&this.dispatchEvent(new M("close"));}showModal(){this.setAttribute("open","");}show(){this.setAttribute("open","");}};chunkBUNLC3II_cjs.h();var dm=class extends G{};chunkBUNLC3II_cjs.h();var fm=class extends G{get height(){return this.getAttribute("height")||""}set height(t){this.setAttribute("height",t);}get width(){return this.getAttribute("width")||""}set width(t){this.setAttribute("width",t);}get src(){if(!this.hasAttribute("src"))return "";try{return new URL(this.getAttribute("src"),this[k].location.href).href}catch{return this.getAttribute("src")}}set src(t){this.setAttribute("src",t);}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t);}};chunkBUNLC3II_cjs.h();var pu=class extends G{[es]=null;[Jt]=null;get elements(){return this[es]||(this[es]=new Oe(b,()=>dt.querySelectorAll(this,"input,button,textarea,select")[J])),this[es]}get form(){if(this[Jt])return this[Jt];let t=this.getAttribute("form");return !t||!this[ct]?null:this[k].getElementById(t)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t);}get type(){return "fieldset"}get validationMessage(){return ""}get willValidate(){return false}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled");}checkValidity(){return true}reportValidity(){return true}setCustomValidity(t){}};chunkBUNLC3II_cjs.h();var mu=class extends Oe{constructor(t,e){super(t,()=>e[zo]()),this[Vt]=e;}namedItem(t){return this[Vt][ky](t)}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var _i=class{static createChildFrame(t){let e=new t.constructor(t.page);return e.parentFrame=t,t.childFrames.push(e),e}static destroyFrame(t){let e=t.page.context.browser[Br];return t.closed?Promise.resolve():(t.closed=true,new Promise((r,n)=>{if(!t.window){r();return}if(t.parentFrame){let i=t.parentFrame.childFrames.indexOf(t);i!==-1&&t.parentFrame.childFrames.splice(i,1);}if(!t.childFrames.length){t[vt].destroy().then(()=>{e&&t.window&&e.disconnect(t.window),t.window={closed:true},t[Co]=null,t[Xn]=null,t[ve]&&(t[ve].navigation=[]),r();}).catch(i=>n(i)),t.window&&t.window[Mt]();return}Promise.all(t.childFrames.slice().map(i=>this.destroyFrame(i))).then(()=>{t[vt].destroy().then(()=>{e&&t.window&&e.disconnect(t.window),t.window={closed:true},t[Co]=null,t[Xn]=null,t[ve]&&(t[ve].navigation=[]),r();}).catch(i=>n(i)),t.window&&t.window[Mt]();}).catch(i=>n(i));}))}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Px;(function(o){o.anyOrigin="anyOrigin",o.sameOrigin="sameOrigin",o.strictOrigin="strictOrigin";})(Px||(Px={}));var bm=Px;var gm=class{static validateCrossOriginPolicy(t,e){let r=t.page.context.browser.settings,n=t.page.mainFrame.window.location;return t[Co]?n=t[Co].window.location:t.parentFrame&&(n=t.parentFrame.window.location),!(r.navigation.crossOriginPolicy===bm.sameOrigin&&n.protocol!=="about:"&&e.protocol!=="about:"&&e.protocol!=="javascript:"&&n.origin!==e.origin||r.navigation.crossOriginPolicy===bm.strictOrigin&&n.protocol==="https:"&&e.protocol==="http:")}static validateFrameNavigation(t){let e=t.page.context.browser.settings;return !(t.page.context.browser.windowClass&&t.page.context===t.page.context.browser.defaultContext&&t.page.context.pages[0]===t.page&&t.page.mainFrame===t||e.navigation.disableMainFrameNavigation&&t.page.mainFrame===t||e.navigation.disableChildFrameNavigation&&t.page.mainFrame!==t||e.navigation.disableChildPageNavigation&&t[Co])}};var ro=class o{static async navigate(t){let{windowClass:e,frame:r,url:n,formData:i,method:s,goToOptions:l,disableHistory:a}=t,u=r.page.context.browser[Br],c=l?.referrer||r.window.location.origin,h=Mo.getRelativeURL(r,n),f=new URL(h.href.split("#")[0]),d=new URL(r.url.split("#")[0]),g=()=>{let mr=r[ve].navigation;r[ve].navigation=[];for(let pn of mr)pn();};if(!r.window)throw new Error('The frame has been destroyed, the "window" property is not set.');if(f.href===d.href&&h.hash&&h.hash!==r.window?.location.hash){let mr=r[er];return a||(mr.currentItem.popState=true,mr.push({title:"",href:h.href,state:null,popState:true,scrollRestoration:ui.manual,method:s||(i?"POST":"GET"),formData:i||null})),r.window.location[ao](r,h.href),null}if(h.protocol==="javascript:"){if(r&&r.page.context.browser.settings.enableJavaScriptEvaluation){let mr=r.window[yn],pn=r[vt],ua=mr.startTask(),lg=h.href.replace("javascript:","");await new Promise(jh=>{r.window.requestAnimationFrame(()=>{let ag=setImmediate(()=>{pn.endTask(ug),jh(null);}),ug=pn.startTask(()=>()=>{clearImmediate(ag),jh(null);});r.window[kn](lg,{filename:r.url});});}),mr.endTask(ua),g();}return null}if(!gm.validateCrossOriginPolicy(r,h))return null;if(!gm.validateFrameNavigation(r))return r.page.context.browser.settings.navigation.disableFallbackToSetURL||r.window.location[ao](r,h.href),null;a||r[er].push({title:"",href:h.href,state:null,popState:false,scrollRestoration:ui.auto,method:s||(i?"POST":"GET"),formData:i||null});let P=r.window,A=r[vt],v=P.innerWidth,H=P.innerHeight,Q=P.devicePixelRatio,U=r.parentFrame?r.parentFrame.window:r.page.mainFrame.window,j=r.page.mainFrame.window;r[vt]=new Oi(r),r.window=new e(r,{url:h.href,width:v,height:H}),r.window[_o]=U,r.window[ni]=j,r.window.devicePixelRatio=Q,u&&u.observe(r.window),c&&(r.window.document[qr]=c);let at=r[vt].startTask(),X=()=>{A.destroy().then(()=>{u&&u.disconnect(P),r[vt].endTask(at);}),P[Mt]();};if(r.childFrames.length?Promise.all(r.childFrames.map(mr=>_i.destroyFrame(mr))).then(X):X(),h.protocol==="about:")return l?.beforeContentCallback&&l.beforeContentCallback(r.window),r.page.context.browser.settings.navigation.beforeContentCallback&&r.page.context.browser.settings.navigation.beforeContentCallback(r.window),await new Promise(mr=>r.page.mainFrame.window.requestAnimationFrame(mr)),g(),null;let Ct=r.window[yn],Nt=r[vt],xe=new r.window.AbortController,nr=setTimeout(()=>{Nt.endTimer(nr),xe.abort(new r.window.DOMException("The operation was aborted. Request timed out.",C.timeoutError));},l?.timeout??3e4);Nt.startTimer(nr);let Fr=Ct.startTask(),ze=()=>{clearTimeout(nr),Nt.endTimer(nr),Ct.endTask(Fr),g();},ir=new r.window.Headers(l?.headers),Ee,Wn;l?.hard&&ir.set("Cache-Control","no-cache");let sg=new nn({browserFrame:r,window:r.window,url:h.href,disableSameOriginPolicy:true,init:{referrer:c,referrerPolicy:l?.referrerPolicy||"origin",signal:xe.signal,method:s||(i?"POST":"GET"),headers:ir,body:i}});try{if(Ee=await sg.send(),r.parentFrame){let mr=r.parentFrame.window.location,pn=Ee.headers?.get("X-Frame-Options")?.toLowerCase(),ua=mr.origin===h.origin||h.origin==="null";if(pn==="deny"||pn==="sameorigin"&&!ua)throw new Error(`Refused to display '${n}' in a frame because it set 'X-Frame-Options' to '${pn}'.`)}Wn=await Ee.text();}catch(mr){throw ze(),mr}return r.window?(Ee.url&&r.window[No][ao](r,Ee.url),Ee.ok||r.page.console.error(`GET ${h.href} ${Ee.status} (${Ee.statusText})`),l?.beforeContentCallback&&l.beforeContentCallback(r.window),r.page.context.browser.settings.navigation.beforeContentCallback&&r.page.context.browser.settings.navigation.beforeContentCallback(r.window),await new Promise(mr=>{r.window.requestAnimationFrame(()=>{let pn,ua=Nt.startTask(()=>()=>{clearImmediate(pn),mr(null);});pn=setImmediate(()=>{Nt.endTask(ua),mr(null);}),r.content=Wn;});}),ze(),Ee):null}static navigateBack(t){let{windowClass:e,frame:r,goToOptions:n}=t,i=r[er],s=i.items[i.items.indexOf(i.currentItem)-1];if(!s)return new Promise(u=>{r.window.requestAnimationFrame(()=>{let c=r[ve].navigation;r[ve].navigation=[];for(let h of c)h();u(null);});});let l=new URL(i.currentItem.href).origin,a=new URL(s.href).origin;return i.currentItem=s,!s.popState||l!==a?o.navigate({windowClass:e,frame:r,goToOptions:{...n,referrer:r.url},url:s.href,method:s.method,formData:s.formData,disableHistory:true}):(r.window.location[ao](r,s.href),r.window.dispatchEvent(new r.window.PopStateEvent("popstate",{state:s.state,hasUAVisualTransition:false})),Promise.resolve(null))}static navigateForward(t){let{windowClass:e,frame:r,goToOptions:n}=t,i=r[er],s=i.items[i.items.indexOf(i.currentItem)+1];if(!s)return new Promise(u=>{r.window.requestAnimationFrame(()=>{let c=r[ve].navigation;r[ve].navigation=[];for(let h of c)h();u(null);});});let l=new URL(i.currentItem.href).origin,a=new URL(s.href).origin;return i.currentItem=s,!s.popState||l!==a?o.navigate({windowClass:e,frame:r,goToOptions:{...n,referrer:r.url},url:s.href,method:s.method,formData:s.formData,disableHistory:true}):(r.window.location[ao](r,s.href),r.window.dispatchEvent(new r.window.PopStateEvent("popstate",{state:s.state,hasUAVisualTransition:false})),Promise.resolve(null))}static navigateSteps(t){if(!t.steps)return this.reload(t);let{windowClass:e,frame:r,goToOptions:n,steps:i}=t,s=r[er],l=s.items.indexOf(s.currentItem),a=l+i,u=s.items[a];if(!u)return new Promise(f=>{r.window.requestAnimationFrame(()=>{let d=r[ve].navigation;r[ve].navigation=[];for(let g of d)g();f(null);});});let c=new URL(s.currentItem.href).origin,h=true;if(i<0){for(let f=l;f>a;f--)if(!s.items[f].popState||c!==new URL(s.items[f].href).origin){h=false;break}}else for(let f=l;f<a;f++)if(!s.items[f].popState||c!==new URL(s.items[f].href).origin){h=false;break}return s.currentItem=u,h?(r.window.location[ao](r,u.href),r.window.dispatchEvent(new r.window.PopStateEvent("popstate",{state:u.state,hasUAVisualTransition:false})),Promise.resolve(null)):o.navigate({windowClass:e,frame:r,goToOptions:{...n,referrer:r.url},url:u.href,method:u.method,formData:u.formData,disableHistory:true})}static reload(t){let{windowClass:e,frame:r,goToOptions:n}=t,i=r[er];return o.navigate({windowClass:e,frame:r,goToOptions:{...n,referrer:r.url},url:i.currentItem.href,method:i.currentItem.method,formData:i.currentItem.formData,disableHistory:true})}};chunkBUNLC3II_cjs.h();var Cc=class extends Mn{get value(){for(let t of this[J])if(t.checked)return t.value;return null}};var Sm=class o extends G{[es]=null;[Kt];constructor(){super();let t=new Re(this,[o,G,Wr,xt,Dt]),e=new Proxy(this,{get:(r,n)=>{if(n==="length")return r[zo]().length;if(n in r||typeof n=="symbol")return t.bind(n),r[n];let i=Number(n);return isNaN(i)?r[ky](n)||void 0:r[zo]()[i]},set(r,n,i){if(t.bind(n),typeof n=="symbol")return r[n]=i,true;let s=Number(n);return isNaN(s)&&(r[n]=i),true},deleteProperty(r,n){if(typeof n=="symbol")return delete r[n],true;let i=Number(n);return isNaN(i)&&delete r[n],true},ownKeys(r){return Object.keys(r[zo]())},has(r,n){if(n in r)return true;if(typeof n=="symbol")return false;let i=r[zo](),s=Number(n);if(!isNaN(s)&&s>=0&&s<i.length)return true;n=String(n);for(let l=0;l<i.length;l++){let a=i[l],u=a.getAttribute("id")||a.getAttribute("name");if(u&&u===n)return true}return false},defineProperty(r,n,i){if(t.preventBinding(n),!i.value)return Object.defineProperty(r,n,i),true;let s=Number(i.value);return isNaN(s)?(Object.defineProperty(r,n,i),true):false},getOwnPropertyDescriptor(r,n){if(n in r)return Object.getOwnPropertyDescriptor(r,n);let i=r[zo](),s=Number(n);if(!isNaN(s)&&s>=0&&s<i.length)return {value:i[s],writable:false,enumerable:true,configurable:true};for(let l=0;l<i.length;l++){let a=i[l],u=a.getAttribute("id")||a.getAttribute("name");if(u&&u===n)return {value:a,writable:false,enumerable:true,configurable:true}}}});return this[Kt]=e,this[Jt]=e,e}get onformdata(){return x.getEventListener(this,"onformdata")}set onformdata(t){this[y].set("onformdata",t);}get onreset(){return x.getEventListener(this,"onreset")}set onreset(t){this[y].set("onreset",t);}get onsubmit(){return x.getEventListener(this,"onsubmit")}set onsubmit(t){this[y].set("onsubmit",t);}get elements(){return this[es]||(this[es]=new mu(b,this)),this[es]}get length(){return this[zo]().length}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t);}get method(){return this.getAttribute("method")||"get"}set method(t){this.setAttribute("method",t);}get target(){return this.getAttribute("target")||""}set target(t){this.setAttribute("target",t);}get action(){if(!this.hasAttribute("action"))return this[k].location.href;try{return new URL(this.getAttribute("action"),this[k].location.href).href}catch{return ""}}set action(t){this.setAttribute("action",t);}get encoding(){return this.getAttribute("encoding")||""}set encoding(t){this.setAttribute("encoding",t);}get enctype(){return this.getAttribute("enctype")||""}set enctype(t){this.setAttribute("enctype",t);}get autocomplete(){return this.getAttribute("autocomplete")||""}set autocomplete(t){this.setAttribute("autocomplete",t);}get acceptCharset(){return this.getAttribute("acceptcharset")||""}set acceptCharset(t){this.setAttribute("acceptcharset",t);}get noValidate(){return this.getAttribute("novalidate")!==null}set noValidate(t){t?this.setAttribute("novalidate",""):this.removeAttribute("novalidate");}submit(){this.#t();}requestSubmit(t){if(t?.formNoValidate||this.noValidate||this.checkValidity()){let r=new eu("submit",{bubbles:true,cancelable:true,submitter:t||this[Kt]});this.dispatchEvent(r),r.defaultPrevented||this.#t(t);}}reset(){for(let t of this[zo]())switch(t[it]){case "TEXTAREA":t[ot]=null;break;case "INPUT":t[ot]=null,t[ga]=null;break;case "OUTPUT":t.textContent=t[$o];break;case "SELECT":let e=false;for(let r of t.options)if(r.hasAttribute("selected")){e=true,r.selected=true;break}!e&&t.options.length>0&&(t.options[0].selected=true);break}this.dispatchEvent(new M("reset",{bubbles:true,cancelable:true}));}checkValidity(){let t={},e=true;for(let r of this[zo]())r[it]==="INPUT"&&r.type==="radio"&&r.name?t[r.name]||(t[r.name]=true,r.checkValidity()||(e=false)):r.checkValidity()||(e=false);return e}reportValidity(){return this.checkValidity()}[wt](t=false){return super[wt](t)}[zo](){let t=dt.querySelectorAll(this,"input,select,textarea,button,fieldset,object,output")[J].slice();if(this[ct]){let e=this.getAttribute("id");if(e)for(let r of dt.querySelectorAll(this[k],`input[form="${e}"],select[form="${e}"],textarea[form="${e}"],button[form="${e}"],fieldset[form="${e}"],object[form="${e}"],output[form="${e}"]`)[J])t.includes(r)||t.push(r);}return t}[ky](t){let e=this[zo](),r=[];t=String(t);for(let n of e)(n.getAttribute("id")===t||n.getAttribute("name")===t)&&r.push(n);return r.length?r.length===1?r[0]:new Cc(b,r):null}#t(t){let e=t?.formMethod||this.method;if(e==="dialog"){let l=null,a=this;for(;a;){if(a[it]==="DIALOG"){l=a;break}a=a.parentElement;}if(l){l.close(t?.value);return}}let r=t?.hasAttribute("formaction")?t?.formAction||this.action:this.action,n=new et(this[m]).getBrowserFrame();if(!n)return;if(!r){this[k].location.hash="#blocked";return}let i=new this[m].FormData(this,t),s;switch(t?.formTarget||this.target){default:case "_self":s=n;break;case "_top":s=n.page.mainFrame;break;case "_parent":s=n.parentFrame??n;break;case "_blank":s=n.page.context.newPage().mainFrame,s[Co]=n;break}if(e==="get"){let l=new URL(r);l.search="";for(let[a,u]of i)typeof u=="string"&&l.searchParams.append(a,u);ro.navigate({windowClass:this[k][lo]?.constructor,frame:s,url:l.href,goToOptions:{referrer:n.page.mainFrame.window.location.origin}});return}ro.navigate({windowClass:this[k][lo]?.constructor,frame:s,method:e,url:r,formData:i,goToOptions:{referrer:n.page.mainFrame.window.location.origin}});}};chunkBUNLC3II_cjs.h();var Pm=class extends G{};chunkBUNLC3II_cjs.h();var Am=class extends G{};chunkBUNLC3II_cjs.h();var wm=class extends G{};chunkBUNLC3II_cjs.h();var xm=class extends G{};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Gl=class extends Dt{window=this;location;[La]=this;#t;constructor(t,e){super(),this[_o]=e??this,this[ni]=e??this,this.location=new Proxy({},{get:()=>{throw new ye(`Blocked a frame with origin "${this.parent.location.origin}" from accessing a cross-origin frame.`,C.securityError)},set:()=>{throw new ye(`Blocked a frame with origin "${this.parent.location.origin}" from accessing a cross-origin frame.`,C.securityError)}}),this.#t=t;}get self(){return this[La]}set self(t){this[La]=t;}get top(){return this[ni]}get parent(){return this[_o]}set parent(t){this[_o]=t;}get opener(){return this.#t.opener}get closed(){return this.#t.closed}blur(){this.#t.blur();}focus(){this.#t.focus();}close(){this.#t.close();}postMessage(t,e="*",r){this.#t.postMessage(t,e,r);}};var dO=["allow-downloads","allow-forms","allow-modals","allow-orientation-lock","allow-pointer-lock","allow-popups","allow-popups-to-escape-sandbox","allow-presentation","allow-same-origin","allow-scripts","allow-top-navigation","allow-top-navigation-by-user-activation","allow-top-navigation-to-custom-protocols"],Em=class extends G{[Cy]=null;#t={window:null};#e=null;#r=null;get onload(){return x.getEventListener(this,"onload")}set onload(t){this[y].set("onload",t);}get onerror(){return x.getEventListener(this,"onerror")}set onerror(t){this[y].set("onerror",t);}get src(){if(!this.hasAttribute("src"))return "";try{return new URL(this.getAttribute("src"),this[k].location.href).href}catch{return this.getAttribute("src")}}set src(t){this.setAttribute("src",t);}get allow(){return this.getAttribute("allow")||""}set allow(t){this.setAttribute("allow",t);}get height(){return this.getAttribute("height")||""}set height(t){this.setAttribute("height",t);}get width(){return this.getAttribute("width")||""}set width(t){this.setAttribute("width",t);}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t);}get sandbox(){return this[Cy]||(this[Cy]=new bo(b,this,"sandbox")),this[Cy]}set sandbox(t){this.setAttribute("sandbox",t);}get srcdoc(){return this.getAttribute("srcdoc")||""}set srcdoc(t){this.setAttribute("srcdoc",t);}get referrerPolicy(){return this.getAttribute("referrerpolicy")||""}set referrerPolicy(t){this.setAttribute("referrerpolicy",t);}get contentDocument(){return this.#t.window?.document??null}get contentWindow(){return this.#t.window}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t;}[Lr](){super[Lr](),this.#n();}[Mr](){super[Mr](),this.#i();}[wt](t=false){return super[wt](t)}[We](t,e){super[We](t,e),t[ut]==="srcdoc"&&this.#n(),t[ut]==="src"&&t[ot]&&!this.hasAttribute("srcdoc")&&t[ot]!==e?.[ot]&&this.#n(),t[ut]==="sandbox"&&this.#o();}[fr](t){super[fr](t),(t[ut]==="srcdoc"||t[ut]==="src")&&this.#n();}#o(){let t=this[m],e=[];for(let r of this.sandbox)dO.includes(r)||e.push(r);e.length===1?t.console.error(`Error while parsing the 'sandbox' attribute: '${e[0]}' is an invalid sandbox flag.`):e.length>1&&t.console.error(`Error while parsing the 'sandbox' attribute: '${e.join("', '")}' are invalid sandbox flags.`);}#n(){if(!this[ct]){this.#i();return}let t=this.getAttribute("srcdoc"),e=this[m],r=new et(e).getBrowserFrame();if(!r)return;if(t!==null){if(this.#r===t)return;this.#i(),this.#e=_i.createChildFrame(r),this.#e.url="about:srcdoc",this.#t.window=this.#e.window,this.#e.window[ni]=r.window.top,this.#e.window[_o]=r.window,this.#e.window.document.open(),this.#e.window.document.write(t),this.#r=t,this[m].requestAnimationFrame(()=>this.dispatchEvent(new M("load")));return}this.#r!==null&&this.#i();let n=r.window.location,i=Mo.getRelativeURL(r,this.src);if(this.#e&&this.#e.window.location.href===i.href)return;if(r.page.context.browser.settings.disableIframePageLoading){let a=new e.DOMException(`Failed to load iframe page "${i.href}". Iframe page loading is disabled.`,C.notSupportedError);r.page.console.error(a),this.dispatchEvent(new M("error"));return}let s=n.origin===i.origin||i.origin==="null",l=s?e:new Gl(e);this.#e=this.#e??_i.createChildFrame(r),this.#e.window[ni]=l,this.#e.window[_o]=l,this.#e.goto(i.href,{referrer:n.origin,referrerPolicy:this.referrerPolicy}).then(()=>this.dispatchEvent(new M("load"))).catch(a=>{r.page.console.error(a),this.dispatchEvent(new M("error"));}),this.#t.window=s?this.#e.window:new Gl(this.#e.window,e);}#i(){this.#e&&(_i.destroyFrame(this.#e),this.#e=null),this.#t.window=null,this.#r=null;}};chunkBUNLC3II_cjs.h();var vx=chunkBUNLC3II_cjs.e(Yk(),1),eF=/^\s*data:([^,]+)?,(.*)/,Hs=class extends G{[it]="IMG";[rs]=true;[Zn]=0;[ti]=0;[YC]="auto";[R]=0;[D]=0;[Lt]=null;get onload(){return x.getEventListener(this,"onload")}set onload(t){this[y].set("onload",t);}get onerror(){return x.getEventListener(this,"onerror")}set onerror(t){this[y].set("onerror",t);}get complete(){return this[rs]}get naturalHeight(){return this[Zn]}get naturalWidth(){return this[ti]}get loading(){let t=this.getAttribute("loading");return t==="eager"||t==="lazy"?t:"auto"}set loading(t){this.setAttribute("loading",t);}get x(){return this[R]}get y(){return this[D]}get decoding(){return this.getAttribute("decoding")||"auto"}set decoding(t){this.setAttribute("decoding",t);}get crossOrigin(){return this.getAttribute("crossOrigin")}set crossOrigin(t){(t==="anonymous"||t==="use-credentials")&&this.setAttribute("crossOrigin",t);}get alt(){return this.getAttribute("alt")||""}set alt(t){this.setAttribute("alt",t);}get currentSrc(){return this.src}get width(){let t=this.getAttribute("width");if(t===null)return this[ti];let e=parseInt(t,10);return isNaN(e)||e<=0?this[ti]:e}set width(t){this.setAttribute("width",String(t));}get height(){let t=this.getAttribute("height");if(t===null)return this[Zn];let e=parseInt(t,10);return isNaN(e)||e<=0?this[Zn]:e}set height(t){this.setAttribute("height",String(t));}get isMap(){return this.getAttribute("ismap")!==null}set isMap(t){t?this.setAttribute("ismap",""):this.removeAttribute("ismap");}get referrerPolicy(){return this.getAttribute("referrerpolicy")||""}set referrerPolicy(t){this.setAttribute("referrerpolicy",t);}get sizes(){return this.getAttribute("sizes")||""}set sizes(t){this.setAttribute("sizes",t);}get src(){let t=this.getAttribute("src");return t&&(this.#t(t)||this.getAttribute("src"))||""}set src(t){this.setAttribute("src",t);}get srcset(){return this.getAttribute("srcset")||""}set srcset(t){this.setAttribute("srcset",t);}get useMap(){return this.getAttribute("usemap")||""}set useMap(t){this.setAttribute("usemap",t);}decode(){return Promise.resolve()}[We](t,e){if(super[We](t,e),t[ut]==="src"){let r=this.#t(t[ot]);if(!r){this[rs]=true,this[Zn]=0,this[ti]=0,this.dispatchEvent(new this[m].Event("error"));return}if(this.#e(r))return;new et(this[m]).getSettings()?.enableImageFileLoading&&this.#r(this.src);}}[fr](t){super[fr](t),t[ut]==="src"&&(this[rs]=true,this[Zn]=0,this[ti]=0,this[Lt]=null);}#t(t){if(t===null)return null;try{return new URL(t,this[k].location.href).href}catch{}return null}#e(t){let e=t.match(eF);if(e){let r=Buffer.from(e[2],"base64");this[rs]=true,this[Lt]=r;try{let n=(0,vx.default)(r);this[Zn]=n.height,this[ti]=n.width;}catch{this[Zn]=0,this[ti]=0;}return this.dispatchEvent(new this[m].Event("load")),true}return false}async#r(t){this[rs]=false,this[Zn]=0,this[ti]=0,this[Lt]=null;let e=null,r=null;try{e=await this[m].fetch(t);}catch(i){r=i;}if(r||!e?.ok){this[rs]=true,this.dispatchEvent(new this[m].Event("error")),e?this[m].console.error(`GET ${t} ${e.status} (${e.statusText}).`):r&&this[m].console.error(r);return}let n;try{n=await e.buffer();}catch{this[rs]=true,this.dispatchEvent(new this[m].Event("error"));return}this[rs]=true,this[Lt]=n;try{let i=(0,vx.default)(n);this[Zn]=i.height,this[ti]=i.width;}catch{this[Zn]=0,this[ti]=0;}this.dispatchEvent(new this[m].Event("load"));}};chunkBUNLC3II_cjs.h();var Ul=class extends Array{constructor(){super(0);}get[Symbol.toStringTag](){return this.constructor.name}item(t){return this[t]||null}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Tx=/[\n\r]/gm,HS=o=>o.map(t=>parseInt(t,10)),gf=class{static sanitize(t,e){switch(t.type){case "password":case "search":case "tel":case "text":return e.replace(Tx,"");case "color":return /^#[a-fA-F\d]{6}$/.test(e)?e.toLowerCase():"#000000";case "email":return t.multiple?e.split(",").map(r=>r.trim()).join(","):e.trim().replace(Tx,"");case "number":return isNaN(Number.parseFloat(e))?"":e;case "range":{let r=Number.parseFloat(e),n=parseFloat(t.min)||0,i=parseFloat(t.max)||100;return isNaN(r)?i<n?String(n):String((n+i)/2):r<n?String(n):r>i?String(i):e}case "url":return e.trim().replace(Tx,"");case "date":return this.sanitizeDate(e);case "datetime-local":{let r=e.match(/^(\d\d\d\d)-(\d\d)-(\d\d)[T ](\d\d):(\d\d)(?::(\d\d)(?:\.(\d{1,3}))?)?$/);if(!r)return "";let n=this.sanitizeDate(e.slice(0,10)),i=this.sanitizeTime(e.slice(11));return n&&i?(r[6]!==void 0&&(i.indexOf(".")!==-1&&(i=i.replace(/(?:\.0*|(\.\d+?)0+)$/,"$1")),i=i.replace(/(\d\d:\d\d)(:00)$/,"$1")),n+"T"+i):""}case "month":return e.match(/^(\d\d\d\d)-(\d\d)$/)&&this.parseMonthComponent(e)&&this.checkBoundaries(e,t.min,t.max)?e:"";case "time":return e=this.sanitizeTime(e),e&&this.checkBoundaries(e,t.min,t.max)?e:"";case "week":{let r=e.match(/^(\d\d\d\d)-W(\d\d)$/);if(!r)return "";let[n,i]=HS(r.slice(1,3));if(n<=0||i<1||i>53)return "";let s=this.lastIsoWeekOfYear(n);return i<1||i>52+s||!this.checkBoundaries(e,t.min,t.max)?"":e}}return e}static checkBoundaries(t,e,r){return e&&e>t?false:!(r&&r<t)}static parseMonthComponent(t){let[e,r]=t.split("-"),[n,i]=HS([e,r]);return isNaN(n)||isNaN(i)||n<=0||i<1||i>12?"":t}static lastIsoWeekOfYear=t=>{let e=new Date(+t,11,31),r=(e.getDay()+6)%7;e.setDate(e.getDate()-r+3);let n=e.getTime();return e.setMonth(0,1),e.getDay()!==4&&e.setMonth(0,1+(4-e.getDay()+7)%7),1+Math.ceil((n-e.getTime())/6048e5)};static sanitizeDate(t){let e=t.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!e||!this.parseMonthComponent(t.slice(0,7)))return "";let[n,i,s]=HS(e.slice(1,4));if(s<1||s>31)return "";let l=new Date(n,i,0).getDate();return s>l?"":t}static sanitizeTime(t){let e=t.match(/^(\d{2}):(\d{2})(?::(\d{2}(?:\.(\d{1,3}))?))?$/);if(!e)return "";let[r,n]=HS(e.slice(1,3)),i=parseFloat(e[3]||"0")*1e3;return r>23||n>59||i>59999?"":i===0?`${e[1]}:${e[2]}`:`${e[1]}:${e[2]}${i>=1e4?`:${i/1e3}`:`:0${i/1e3}`}`}};chunkBUNLC3II_cjs.h();var Cx;(function(o){o.preserve="preserve",o.select="select",o.start="start",o.end="end";})(Cx||(Cx={}));var Gs=Cx;chunkBUNLC3II_cjs.h();var kx;(function(o){o.none="none",o.forward="forward",o.backward="backward";})(kx||(kx={}));var ln=kx;chunkBUNLC3II_cjs.h();var vm=class{static step(t,e,r){switch(t.type){case "number":return this.getNumberValue(t,e,r);case "date":case "month":case "week":case "time":case "datetime-local":case "range":return null;default:throw new ye("This form element is not steppable.")}}static getNumberValue(t,e,r){let n=t.step,i=t.min,s=t.max,l=i!==""?Number(i):null,a=s!==""?Number(s):null,u=Number(t.value),c=n!==""?Number(n):1;if(u=isNaN(u)?0:u,c=isNaN(c)||c===0?1:c,l!==null&&!isNaN(l)&&a!==null&&!isNaN(a)&&(l>a||a<l)||r===0)return t.value;let h=r!==void 0?Math.ceil(r/c)*c:c,f=u+h*e,d=l!==null&&!isNaN(l)?l:0;switch(e){case -1:return l!==null&&!isNaN(l)&&f<l?String(l):String(f+(u-d)%c);case 1:return a!==null&&!isNaN(a)&&f>a?String(d+Math.floor((a-d)/c)*c):String(f-(u-d)%c)}}};chunkBUNLC3II_cjs.h();var kc=class{static dateIsoWeek(t){t=typeof t=="number"?new Date(t):t,t=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),t.setUTCDate(t.getUTCDate()+4-(t.getUTCDay()||7));let e=new Date(Date.UTC(t.getUTCFullYear(),0,1)),r=Math.ceil(((t-e)/864e5+1)/7);return `${t.getUTCFullYear()}-W${r<10?"0":""}${r}`}static isoWeekDate(t){let[,e,r]=t.match(/^(\d{4})-W(\d{2})$/)||[];if(!e||!r||Number(r)>53||Number(r)<1)return new Date("x");let n=new Date(`${e}-01-01T00:00Z`),s=(new Date(`${e}-01-04T00:00Z`).getUTCDay()+6)%7,l=1+(Number(r)-1)*7-s+3;return n.setUTCDate(l),n.getUTCFullYear()>Number(e)?new Date("x"):n}};var oF=new Set(["hidden","text","search","tel","url","email","password","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]),Tm=class extends G{[ot]=null;[F]=0;[B]=0;[ga]=null;[qe]="";[yr]=new go(this);[ei]=new Ul;[Aa]=false;[Jt]=null;[Ia]=null;#t=null;#e=null;#r=ln.none;get oninput(){return x.getEventListener(this,"oninput")}set oninput(t){this[y].set("oninput",t);}get oninvalid(){return x.getEventListener(this,"oninvalid")}set oninvalid(t){this[y].set("oninvalid",t);}get onselectionchange(){return x.getEventListener(this,"onselectionchange")}set onselectionchange(t){this[y].set("onselectionchange",t);}get defaultChecked(){return this.hasAttribute("checked")}set defaultChecked(t){t?this.setAttribute("checked",""):this.removeAttribute("checked");}get files(){return this[ei]}set files(t){this[ei]=t;}get formAction(){if(!this.hasAttribute("formaction"))return this[k].location.href;try{return new url.URL(this.getAttribute("formaction"),this[k].location.href).href}catch{return ""}}set formAction(t){this.setAttribute("formaction",t);}get formEnctype(){return this.getAttribute("formenctype")||""}set formEnctype(t){this.setAttribute("formenctype",t);}get formMethod(){return this.getAttribute("formmethod")||""}set formMethod(t){this.setAttribute("formmethod",t);}get formNoValidate(){return this.getAttribute("formnovalidate")!==null}set formNoValidate(t){t?this.setAttribute("formnovalidate",""):this.removeAttribute("formnovalidate");}get formTarget(){return this.getAttribute("formtarget")||""}set formTarget(t){this.setAttribute("formtarget",t);}get form(){if(this[Jt])return this[Jt];let t=this.getAttribute("form");return !t||!this[ct]?null:this[k].getElementById(t)}get validationMessage(){return this[qe]}get validity(){return this[yr]}get height(){return this[F]}set height(t){this[F]=t,this.setAttribute("height",String(t));}get width(){return this[B]}set width(t){this[B]=t,this.setAttribute("width",String(t));}get size(){let t=this.getAttribute("size");return t!==null?parseInt(t):20}set size(t){this.setAttribute("size",String(t));}get minLength(){let t=this.getAttribute("minlength");return t!==null?parseInt(t):-1}set minLength(t){this.setAttribute("minlength",String(t));}get maxLength(){let t=this.getAttribute("maxlength");return t!==null?parseInt(t):-1}set maxLength(t){this.setAttribute("maxlength",String(t));}get type(){let t=(this.getAttribute("type")??"").toLowerCase();return oF.has(t)?t:"text"}set type(t){this.setAttribute("type",t.toLowerCase());}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t);}get alt(){return this.getAttribute("alt")||""}set alt(t){this.setAttribute("alt",t);}get min(){return this.getAttribute("min")||""}set min(t){this.setAttribute("min",t);}get max(){return this.getAttribute("max")||""}set max(t){this.setAttribute("max",t);}get pattern(){return this.getAttribute("pattern")||""}set pattern(t){this.setAttribute("pattern",t);}get placeholder(){return this.getAttribute("placeholder")||""}set placeholder(t){this.setAttribute("placeholder",t);}get step(){return this.getAttribute("step")||""}set step(t){this.setAttribute("step",t);}get inputMode(){return this.getAttribute("inputmode")||""}set inputMode(t){this.setAttribute("inputmode",t);}get accept(){return this.getAttribute("accept")||""}set accept(t){this.setAttribute("accept",t);}get allowdirs(){return this.getAttribute("allowdirs")||""}set allowdirs(t){this.setAttribute("allowdirs",t);}get autocomplete(){return this.getAttribute("autocomplete")||""}set autocomplete(t){this.setAttribute("autocomplete",t);}get src(){return this.getAttribute("src")||""}set src(t){this.setAttribute("src",t);}get defaultValue(){return this.getAttribute("value")||""}set defaultValue(t){this.setAttribute("value",t);}get readOnly(){return this.getAttribute("readonly")!==null}set readOnly(t){t?this.setAttribute("readonly",""):this.removeAttribute("readonly");}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled");}get autofocus(){return this.getAttribute("autofocus")!==null}set autofocus(t){t?this.setAttribute("autofocus",""):this.removeAttribute("autofocus");}get required(){return this.getAttribute("required")!==null}set required(t){t?this.setAttribute("required",""):this.removeAttribute("required");}get indeterminate(){return this[Aa]}set indeterminate(t){this[Aa]=!!t;}get multiple(){return this.getAttribute("multiple")!==null}set multiple(t){t?this.setAttribute("multiple",""):this.removeAttribute("multiple");}get checked(){return this[ga]!==null?this[ga]:this.getAttribute("checked")!==null}set checked(t){this.#n(t);}get value(){switch(this.type){case "hidden":case "submit":case "image":case "reset":case "button":return this.getAttribute("value")||"";case "checkbox":case "radio":let t=this.getAttribute("value");return t!==null?t:"on";case "file":return this[ei].length>0?"/fake/path/"+this[ei][0].name:""}return this[ot]===null?this.getAttribute("value")||"":this[ot]}set value(t){switch(t=t===null?"":String(t),this.type){case "hidden":case "submit":case "image":case "reset":case "button":case "checkbox":case "radio":this.setAttribute("value",t);break;case "file":if(t!==null&&t!=="")throw new this[m].DOMException('Input elements of type "file" may only programmatically set the value to empty string.',C.invalidStateError);this[ei]=new Ul;break;default:let e=this.value;this[ot]=gf.sanitize(this,t),e!==this[ot]&&(this.#t=this[ot].length,this.#e=this[ot].length,this.#r=ln.none);break}}get selectionStart(){return this.#o()?this.#t===null?this.value.length:this.#t:null}set selectionStart(t){if(!this.#o())throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,C.invalidStateError);this.setSelectionRange(t,Math.max(t,this.selectionEnd),this.#r);}get selectionEnd(){return this.#o()?this.#e===null?this.value.length:this.#e:null}set selectionEnd(t){if(!this.#o())throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,C.invalidStateError);this.setSelectionRange(this.selectionStart,t,this.#r);}get selectionDirection(){return this.#o()?this.#r:null}set selectionDirection(t){if(!this.#o())throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,C.invalidStateError);this.setSelectionRange(this.#t,this.#e,t);}get willValidate(){return this.type!=="hidden"&&this.type!=="reset"&&this.type!=="button"&&!this.disabled&&!this.readOnly}get valueAsDate(){switch(this.type){case "date":case "month":return isNaN(new Date(String(this.value)).getTime())?null:new Date(this.value);case "week":{let t=kc.isoWeekDate(this.value);return isNaN(t.getTime())?null:t}case "time":{let t=new Date(`1970-01-01T${this.value}Z`);return isNaN(t.getTime())?null:t}default:return null}}set valueAsDate(t){if(!["date","month","time","week"].includes(this.type))throw new this[m].DOMException("Failed to set the 'valueAsDate' property on 'HTMLInputElement': This input element does not support Date values.",C.invalidStateError);if(typeof t!="object")throw new this[m].TypeError("Failed to set the 'valueAsDate' property on 'HTMLInputElement': Failed to convert value to 'object'.");if(t&&!(t instanceof Date))throw new this[m].TypeError("Failed to set the 'valueAsDate' property on 'HTMLInputElement': The provided value is not a Date.");if(t===null||isNaN(t.getTime())){this.value="";return}switch(this.type){case "date":this.value=t.toISOString().split("T")[0];break;case "month":this.value=t.toISOString().split("T")[0].slice(0,-3);break;case "time":this.value=t.toISOString().split("T")[1].slice(0,5);break;case "week":this.value=kc.dateIsoWeek(t);break}}get valueAsNumber(){let t=this.value;if(!this.type.match(/^(range|number|date|datetime-local|month|time|week)$/)||!t)return NaN;switch(this.type){case "number":return parseFloat(t);case "range":{let e=parseFloat(t),r=parseFloat(this.min)||0,n=parseFloat(this.max)||100;return isNaN(e)?n<r?r:(r+n)/2:e<r?r:e>n?n:e}case "date":return new Date(t).getTime();case "datetime-local":return new Date(t).getTime()-new Date(t).getTimezoneOffset()*6e4;case "month":return (new Date(t).getUTCFullYear()-1970)*12+new Date(t).getUTCMonth();case "time":return new Date("1970-01-01T"+t).getTime()-new Date("1970-01-01T00:00:00").getTime();case "week":{let e=t.match(/^(\d{4})-W(\d{2})$/);if(!e)return NaN;let r=new Date(Date.UTC(parseInt(e[1],10),0)),n=r.getUTCDay(),i=((n===0?-6:1)-n)*864e5+parseInt(e[2],10)*6048e5;return r.getTime()+i}default:return NaN}}set valueAsNumber(t){switch(this.type){case "number":case "range":this.value=Number(t).toString();break;case "date":case "datetime-local":{let e=new Date(Number(t));if(isNaN(e.getTime())){this.value="";break}this.type=="date"?this.value=e.toISOString().slice(0,10):this.value=e.toISOString().slice(0,-1);break}case "month":!Number.isInteger(t)||t<0?this.value="":this.value=new Date(Date.UTC(1970,Number(t))).toISOString().slice(0,7);break;case "time":!Number.isInteger(t)||t<0?this.value="":this.value=new Date(Number(t)).toISOString().slice(11,-1);break;case "week":{let e=new Date(Number(t));this.value=isNaN(e.getTime())?"":kc.dateIsoWeek(e);break}default:throw new this[m].DOMException("Failed to set the 'valueAsNumber' property on 'HTMLInputElement': This input element does not support Number values.",C.invalidStateError)}}get labels(){return So.getAssociatedLabelElements(this)}get list(){let t=this.getAttribute("list");return t?(this[$e]||this[k]).querySelector(`datalist#${t}`):null}get popoverTargetElement(){return this[Ia]}set popoverTargetElement(t){if(t!==null&&!(t instanceof G))throw new this[m].TypeError("Failed to set the 'popoverTargetElement' property on 'HTMLInputElement': Failed to convert value to 'Element'.");this[Ia]=t;}get popoverTargetAction(){let t=this.getAttribute("popovertargetaction");return t===null||t!=="hide"&&t!=="show"&&t!=="toggle"?"toggle":t}set popoverTargetAction(t){this.setAttribute("popovertargetaction",t);}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t;}setCustomValidity(t){this[qe]=String(t);}select(){this.#o()&&(this.#t=0,this.#e=this.value.length,this.#r=ln.none,this.dispatchEvent(new M("select",{bubbles:true,cancelable:false})));}setSelectionRange(t,e,r="none"){if(!this.#o())throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,C.invalidStateError);this.#e=Math.min(e,this.value.length),this.#t=Math.min(t,this.#e),this.#r=r===ln.forward||r===ln.backward?r:ln.none,this.dispatchEvent(new M("select",{bubbles:true,cancelable:false}));}setRangeText(t,e=null,r=null,n=Gs.preserve){if(!this.#o())throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,C.invalidStateError);if(e===null&&(e=this.#t),r===null&&(r=this.#e),e>r)throw new this[m].DOMException("The index is not in the allowed range.",C.invalidStateError);e=Math.min(e,this.value.length),r=Math.min(r,this.value.length);let i=this.value,s=this.#t,l=this.#e;this.value=i.slice(0,e)+t+i.slice(r);let a=e+this.value.length;switch(n){case Gs.select:this.setSelectionRange(e,a);break;case Gs.start:this.setSelectionRange(e,e);break;case Gs.end:this.setSelectionRange(a,a);break;default:let u=t.length-(r-e);s>r?s+=u:s>e&&(s=e),l>r?l+=u:l>e&&(l=a),this.setSelectionRange(s,l);break}}checkValidity(){let t=this.disabled||this.readOnly||this.type==="hidden"||this.type==="reset"||this.type==="button"||this[yr].valid;return t||this.dispatchEvent(new M("invalid",{bubbles:true,cancelable:true})),t}reportValidity(){return this.checkValidity()}stepUp(t){let e=vm.step(this,1,t);e!==null&&(this.value=e);}stepDown(t){let e=vm.step(this,-1,t);e!==null&&(this.value=e);}[wt](t=false){let e=super[wt](t);return e[ot]=this[ot],e[F]=this[F],e[B]=this[B],e[ei]=this[ei].slice(),e.#t=this.#t,e.#e=this.#e,e.#r=this.#r,e}dispatchEvent(t){if(t[ne]!=="click"||t[Xr]!==Pe.none||!(t instanceof cr))return super.dispatchEvent(t);if(this.disabled)return false;let e=null,r=this[Aa],n=this.type;(n==="checkbox"||n==="radio")&&(e=this.checked,this.#n(n==="checkbox"?!e:true),n==="checkbox"&&(r=this[Aa],this[Aa]=false));let i=super.dispatchEvent(t);if(t[ne]!=="click"||t[Xr]!==Pe.none||!(t instanceof cr))return i;if(t[Ir])e!==null&&(this.#n(e),this[Aa]=r);else {let s=this.type;if(s==="checkbox"&&this[ct])this.dispatchEvent(new M("input",{bubbles:true,cancelable:true})),this.dispatchEvent(new M("change",{bubbles:true,cancelable:true}));else if(s==="radio"&&!e&&this[ct])this.dispatchEvent(new M("input",{bubbles:true,cancelable:true})),this.dispatchEvent(new M("change",{bubbles:true,cancelable:true}));else if(s==="submit"||s==="reset"){let l=this.form;l&&(s==="submit"&&this[ct]?l.requestSubmit(this):s==="reset"&&l.reset());}}return i}#o(){let t=this.type;return t==="text"||t==="search"||t==="url"||t==="tel"||t==="password"}#n(t){if(this[ga]=t,this[co](),t&&this.type==="radio"&&this.name){let r=(this[Jt]||this.getRootNode()).querySelectorAll(`input[type="radio"][name="${this.name}"]`);for(let n of r)n!==this&&(n[ga]=false);}}};chunkBUNLC3II_cjs.h();var Cm=class extends G{get htmlFor(){let t=this.getAttribute("for");return t!==null||t!==null?t:""}set htmlFor(t){this.setAttribute("for",t);}get control(){let t=this.getAttribute("for");if(t!==null){if(!t||!this[ct])return null;let e=this[$e].getElementById(t);if(e)switch(e[it]){case "INPUT":return e.type!=="hidden"?e:null;case "BUTTON":case "METER":case "OUTPUT":case "PROGRESS":case "SELECT":case "TEXTAREA":return e;default:return null}}return this.querySelector('button,input:not([type="hidden"]),meter,output,progress,select,textarea')}get form(){return this.control?.form||null}[wt](t=false){return super[wt](t)}dispatchEvent(t){let e=super.dispatchEvent(t);if(!t[Ir]&&t.type==="click"&&(t.eventPhase===Pe.atTarget||t.eventPhase===Pe.bubbling)&&t instanceof cr){let r=this.control;r&&t.target!==r&&r.dispatchEvent(new cr("click",{bubbles:true,cancelable:true}));}return e}};chunkBUNLC3II_cjs.h();var km=class extends G{get form(){let t=this;for(;t;){if(t instanceof pu)return t.form;t=t.parentNode;}return null}};chunkBUNLC3II_cjs.h();var Nm=class extends G{get value(){if(!this.hasAttribute("value"))return 0;let t=Number(this.getAttribute("value"));return isNaN(t)?0:t}set value(t){let e=Number(t);this.setAttribute("value",isNaN(e)?"0":String(e));}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Sf=class{static getScript(t){let e={},r=Object.keys(t.headers).sort();for(let n of r)e[n]=t.headers[n];return `
122
- const sendRequest = require('http${t.url.protocol==="https:"?"s":""}').request;
123
- const options = ${JSON.stringify({method:t.method,headers:e,agent:false,rejectUnauthorized:!t.disableStrictSSL,key:t.url.protocol==="https:"?qp.key:void 0,cert:t.url.protocol==="https:"?qp.cert:void 0},null,4)};
124
- const request = sendRequest(${JSON.stringify(t.url.href)}, options, (incomingMessage) => {
125
- let data = Buffer.alloc(0);
126
- incomingMessage.on('data', (chunk) => {
127
- data = Buffer.concat([data, Buffer.from(chunk)]);
128
- });
129
- incomingMessage.on('end', () => {
130
- console.log(JSON.stringify({
131
- error: null,
132
- incomingMessage: {
133
- statusCode: incomingMessage.statusCode,
134
- statusMessage: incomingMessage.statusMessage,
135
- rawHeaders: incomingMessage.rawHeaders,
136
- data: data.toString('base64')
137
- }
138
- }));
139
- });
140
- incomingMessage.on('error', (error) => {
141
- console.log(JSON.stringify({ error: error.message, incomingMessage: null }));
142
- });
143
- });
144
- request.write(Buffer.from('${t.body?t.body.toString("base64"):""}', 'base64'));
145
- request.end();
146
- `}};var Nc=class o{request;redirectCount=0;disableCache;disableSameOriginPolicy;interceptor;requestHeaders;#t;#e;#r=null;constructor(t){this.#t=t.browserFrame,this.#e=t.window,this.#r=t.unfilteredHeaders??null,this.request=typeof t.url=="string"||t.url instanceof Ve?new t.window.Request(t.url,t.init):t.url,t.contentType&&(this.request[_e]=t.contentType),this.redirectCount=t.redirectCount??0,this.disableCache=t.disableCache??false,this.disableSameOriginPolicy=t.disableSameOriginPolicy??this.#t.page.context.browser.settings.fetch.disableSameOriginPolicy??false,this.interceptor=this.#t.page.context.browser.settings.fetch.interceptor,this.requestHeaders=this.#t.page.context.browser.settings.fetch.requestHeaders;}send(){if(Hi.prepareRequest(new Ve(this.#e.location.href),this.request),this.requestHeaders){for(let r of this.requestHeaders)if(!r.url||(typeof r.url=="string"?r.url.startsWith(this.request.url):this.request.url.match(r.url)))for(let[n,i]of Object.entries(r.headers))this.request.headers.set(n,i);}if(this.interceptor?.beforeSyncRequest){let r=this.interceptor.beforeSyncRequest({request:this.request,window:this.#e});if(typeof r=="object")return r}if(Rn.validateSchema(this.request),this.request.signal[Ie])throw this.request.signal[gn]!==void 0?this.request.signal[gn]:new this.#e.DOMException("signal is aborted without reason",C.abortError);if(this.request[Be].protocol==="data:"){let r=bc.parse(this.request.url),n={status:200,statusText:"OK",ok:true,url:this.request.url,redirected:false,headers:new this.#e.Headers({"Content-Type":r.type}),body:r.buffer,[Lo]:null},i=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:this.#e,response:n,request:this.request}):void 0;return typeof i=="object"?i:n}if(this.request[Be].protocol==="http:"&&this.#e.location.protocol==="https:")throw new this.#e.DOMException(`Mixed Content: The page at '${this.#e.location.href}' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '${this.request.url}'. This request has been blocked; the content must be served over HTTPS.`,C.securityError);let t=this.getCachedResponse();if(t)return t;let e=this.getVirtualServerResponse();if(e)return e;if(!this.compliesWithCrossOriginPolicy())throw this.#e.console.warn(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`),new this.#e.DOMException(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`,C.networkError);return this.sendRequest()}getCachedResponse(){if(this.disableCache)return null;let t=this.#t.page.context.responseCache.get(this.request);if(!t||t.response.waitingForBody)return null;if(t.state===Ba.stale){let e=new this.#e.Headers(t.request.headers);if(t.etag)e.set("If-None-Match",t.etag);else {if(!t.lastModified)return null;e.set("If-Modified-Since",new Date(t.lastModified).toUTCString());}if(t.etag||!t.staleWhileRevalidate){let n=new o({browserFrame:this.#t,window:this.#e,url:this.request.url,init:{headers:e,method:t.request.method},disableCache:true,disableSameOriginPolicy:true}).send(),i=n.status!==304?n.body:null;if(t=this.#t.page.context.responseCache.add(this.request,{...n,body:i,waitingForBody:false}),n.status!==304)return n}else new nn({browserFrame:this.#t,window:this.#e,url:this.request.url,init:{headers:e,method:t.request.method},disableCache:true,disableSameOriginPolicy:true}).send().then(n=>{n.buffer().then(i=>{this.#t.page.context.responseCache.add(this.request,{...n,body:i,waitingForBody:false});});});}return !t||t.response.waitingForBody?null:{status:t.response.status,statusText:t.response.statusText,ok:true,url:t.response.url,redirected:false,headers:t.response.headers,body:t.response.body,[Lo]:t.response[Lo]||null}}getVirtualServerResponse(){let t=Ui.getFilepath(this.#e,this.request.url);if(!t)return null;if(this.request.method!=="GET"){this.#t.page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let s=Ui.getNotFoundSyncResponse(this.#e,this.request.url),l=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:this.#e,response:s,request:this.request}):void 0;return typeof l=="object"?l:s}let e;try{t=Mp__default.default.statSync(t).isDirectory()?Ip__default.default.join(t,"index.html"):t,e=Mp__default.default.readFileSync(t);}catch{this.#t.page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let s=Ui.getNotFoundSyncResponse(this.#e,this.request.url),l=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:this.#e,response:s,request:this.request}):void 0;return typeof l=="object"?l:s}let r={status:200,statusText:"",ok:true,url:this.request.url,redirected:false,headers:new this.#e.Headers,body:e,[Lo]:t},n=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:this.#e,response:r,request:this.request}):void 0,i=typeof n=="object"?n:r;return this.#t.page.context.responseCache.add(this.request,{...i,waitingForBody:false,virtual:true}),i}compliesWithCrossOriginPolicy(){if(this.disableSameOriginPolicy||!In.isCORS(this.#e.location.href,this.request[Be]))return true;let t=this.#t.page.context.preflightResponseCache.get(this.request);if(t)return !(t.allowOrigin!=="*"&&t.allowOrigin!==this.#e.location.origin||t.allowMethods.length!==0&&!t.allowMethods.includes(this.request.method));let e=[];for(let[a]of this.request.headers)e.push(a.toLowerCase());let r=new this.#e.Headers({"Access-Control-Request-Method":this.request.method,Origin:this.#e.location.origin});e.length>0&&r.set("Access-Control-Request-Headers",e.slice().sort().join(","));let i=new o({browserFrame:this.#t,window:this.#e,url:this.request.url,init:{method:"OPTIONS"},disableCache:true,disableSameOriginPolicy:true,unfilteredHeaders:r}).send();if(!i.ok)return false;let s=i.headers.get("Access-Control-Allow-Origin");if(!s||s!=="*"&&s!==this.#e.location.origin)return false;let l=[];if(i.headers.has("Access-Control-Allow-Methods")){let a=i.headers.get("Access-Control-Allow-Methods");if(a!=="*")for(let u of a.split(","))l.push(u.trim().toUpperCase());}return !(l.length!==0&&!l.includes(this.request.method))}sendRequest(){if(!this.request[Ei]&&this.request.body)throw new this.#e.DOMException("Streams are not supported as request body for synchronous requests.",C.notSupportedError);let t=Sf.getScript({url:this.request[Be],method:this.request.method,headers:Gi.getRequestHeaders({browserFrame:this.#t,window:this.#e,request:this.request,baseHeaders:this.#r}),disableStrictSSL:this.#t.page.context.browser.settings.fetch.disableStrictSSL,body:this.request[Ei]}),e=iF__default.default.execFileSync(process.argv[0],["-e",t],{encoding:"buffer",maxBuffer:1024*1024*1024});if(!e.length)throw new this.#e.DOMException(`Synchronous fetch to "${this.request.url}" failed.`,C.networkError);let{error:r,incomingMessage:n}=JSON.parse(e.toString());if(r)throw new this.#e.DOMException(`Synchronous fetch to "${this.request.url}" failed. Error: ${r}`,C.networkError);let i=Sc.parseResponseHeaders({browserFrame:this.#t,requestURL:this.request[Be],rawHeaders:n.rawHeaders}),s={status:n.statusCode,statusText:n.statusMessage,ok:n.statusCode>=200&&n.statusCode<300,url:this.request.url,redirected:this.redirectCount>0,headers:i,body:this.parseIResponseBody({headers:i,status:n.statusCode,body:Buffer.from(n.data,"base64")})},l=this.handleRedirectResponse(s)||s;!this.disableCache&&!l.redirected&&this.#t.page.context.responseCache.add(this.request,{status:l.status,statusText:l.statusText,url:l.url,headers:l.headers,body:l.body,waitingForBody:false});let a=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:this.#e,response:l,request:this.request}):void 0,u=typeof a=="object"?a:l;return u.ok||this.#t.page.console.error(`${this.request.method} ${this.request.url} ${u.status} (${u.statusText})`),u}parseIResponseBody(t){let e=t.headers.get("Content-Encoding");if(this.request.method==="HEAD"||e===null||t.status===204||t.status===304)return t.body;try{if(e==="gzip"||e==="x-gzip")return Qp__default.default.gunzipSync(t.body,{flush:Qp__default.default.constants.Z_SYNC_FLUSH,finishFlush:Qp__default.default.constants.Z_SYNC_FLUSH});if(e==="deflate"||e==="x-deflate")return Qp__default.default.inflateSync(t.body);if(e==="br")return Qp__default.default.brotliDecompressSync(t.body)}catch(r){throw new this.#e.DOMException(`Failed to read response body. Error: ${r.message}.`,C.encodingError)}return t.body}handleRedirectResponse(t){if(!Dl.isRedirect(t.status))return null;switch(this.request.redirect){case "error":throw new this.#e.DOMException(`URI requested responds with a redirect, redirect mode is set to "error": ${this.request.url}`,C.abortError);case "manual":return null;case "follow":let e=t.headers.get("Location"),r=t.status===303||(t.status===301||t.status===302)&&this.request.method==="POST",n=null;if(e!==null)try{n=new Ve(e,this.request.url);}catch{throw new this.#e.DOMException(`URI requested responds with an invalid redirect URL: ${e}`,C.uriMismatchError)}if(n===null)return null;if(Dl.isMaxRedirectsReached(this.redirectCount))throw new this.#e.DOMException(`Maximum redirects reached at: ${this.request.url}`,C.networkError);let i=new this.#e.Headers(this.request.headers),s={method:this.request.method,signal:this.request.signal,referrer:this.request.referrer,referrerPolicy:this.request.referrerPolicy,credentials:this.request.credentials,headers:i,body:this.request[Ei]};(this.request.credentials==="omit"||this.request.credentials==="same-origin"&&In.isCORS(this.#e.location.href,n))&&(i.delete("cookie"),i.delete("cookie2")),r&&(s.method="GET",s.body=void 0,i.delete("Content-Length"),i.delete("Content-Type"));let l=Hi.getReferrerPolicyFromHeader(i);return l&&(s.referrerPolicy=l),new o({browserFrame:this.#t,window:this.#e,url:n,init:s,redirectCount:this.redirectCount+1,contentType:r?null:this.request[_e]}).send();default:throw new this.#e.DOMException(`Redirect option '${this.request.redirect}' is not a valid value of TRequestRedirect`)}}};var Wl=class{window;constructor(t){this.window=t;}async fetch(t,e,r){let n=new et(this.window).getBrowserFrame();if(!n)return {content:"",virtualServerFile:null};if(e==="script"||e==="style"){let l=Rs.getKey({url:String(t),destination:e,mode:"cors",credentialsMode:r?.credentials||"same-origin"}),a=this.window.document[mo].get(l);if(a){this.window.document[mo].delete(l);let u=a.response||await a.onResponseAvailable();if(u&&!u.ok)throw new this.window.DOMException(`Failed to perform request to "${new Ve(t,this.window.location.href).href}". Status ${a.response?.status||"0"} ${a.response?.statusText||"Unknown"}.`);return {content:a.response?.[Lt]?.toString()||"",virtualServerFile:a.response?.[Lo]||null}}}let s=await new nn({browserFrame:n,window:this.window,url:t,disableSameOriginPolicy:e==="script"||e==="style",disablePreload:true,init:{credentials:r?.credentials,referrerPolicy:r?.referrerPolicy}}).send();if(!s.ok)throw new this.window.DOMException(`Failed to perform request to "${new Ve(t,this.window.location.href).href}". Status ${s.status} ${s.statusText}.`);return {content:await s.text(),virtualServerFile:s[Lo]||null}}fetchSync(t,e,r){let n=new et(this.window).getBrowserFrame();if(!n)return {content:"",virtualServerFile:null};if(e==="script"||e==="style"){let l=Rs.getKey({url:String(t),destination:e,mode:"cors",credentialsMode:r?.credentials||"same-origin"}),a=this.window.document[mo].get(l);if(a&&a.response){if(this.window.document[mo].delete(l),!a.response.ok)throw new this.window.DOMException(`Failed to perform request to "${new Ve(t,this.window.location.href).href}". Status ${a.response.status} ${a.response.statusText}.`);return {content:a.response?.[Lt]?.toString()||"",virtualServerFile:a.response?.[Lo]||null}}}let s=new Nc({browserFrame:n,window:this.window,url:t,disableSameOriginPolicy:true,init:{credentials:r?.credentials,referrerPolicy:r?.referrerPolicy}}).send();if(!s.ok)throw new this.window.DOMException(`Failed to perform request to "${new Ve(t,this.window.location.href).href}". Status ${s.status} ${s.statusText}.`);return {content:s.body?.toString()||"",virtualServerFile:s[Lo]||null}}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Lc=class{url;#t;#e;#r=null;constructor(t){this.#t=t.window,this.url=t.url,this.#e=t.source;}async evaluate(){if(this.#r)return this.#r;let t=new this.#t.CSSStyleSheet;return t.replaceSync(this.#e),this.#r={default:t},this.#r}async preload(){await this.evaluate();}};chunkBUNLC3II_cjs.h();var Mc=class{url;#t;#e;#r=null;constructor(t){this.#t=t.window,this.url=t.url,this.#e=t.source;}async evaluate(){if(this.#r)return this.#r;let t;try{t=JSON.parse(this.#e);}catch(e){throw new this.#t.TypeError(`Failed to parse module "${this.url.href}": ${e.message}`)}return this.#r={default:t},this.#r}async preload(){await this.evaluate();}};chunkBUNLC3II_cjs.h();var Lm=class{url;#t;#e=[];#r=null;constructor(t){this.#t=t.window,this.url=t.url;}async evaluate(){throw new this.#t.TypeError("Unresolved module. We should never end up here.")}async preload(){throw new this.#t.TypeError("Unresolved module. We should never end up here.")}addResolveListener(t,e){if(this.#r){e(this.#r);return}this.#e.push({resolve:t,reject:e});}resolve(t){t&&(this.#r=t);for(let e of this.#e)t?e.reject(t):e.resolve(null);}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var sF=["module","main"],lF=[".js",".mjs"],zl=class{static nodeModuleResolveCache=new Map;static packageJsonCache=new Map;static getURL(t,e,r){let n=typeof e=="string"?e:e.href,i=t[ic],s=this.resolveURL(t,n,r);if(!i)return new url.URL(s,n);if(i.scopes.length){for(let l of i.scopes)if(n.includes(l.scope)){for(let a of l.rules)if(s.startsWith(a.from))return new url.URL(a.to+s.replace(a.from,""),n)}}if(i.imports.length){for(let l of i.imports)if(s.startsWith(l.from))return new url.URL(l.to+s.replace(l.from,""),n)}return new url.URL(s,n)}static clearCache(){this.nodeModuleResolveCache.clear(),this.packageJsonCache.clear();}static resolveURL(t,e,r){let n=new et(t).getSettings();if(!n)return r;let i=r;return n.module.resolveNodeModules&&(i=this.resolveNodeModuleURL(n.module.resolveNodeModules,r)),n.module.urlResolver&&(i=n.module.urlResolver({url:i,parentURL:e,window:t})),i}static resolveNodeModuleURL(t,e){if(e[0]==="."||e[0]==="/"||e.startsWith("http://")||e.startsWith("https://"))return e;let r=t.url[t.url.length-1]==="/"?"":"/",n=`${t.url}${r}`,i=Ip__default.default.resolve(t.directory),s=e.split("/"),l=this.nodeModuleResolveCache.get(e);if(l)return l;let a=e[0]==="@"?`${s[0]}/${s[1]}`:s[0],u=this.packageJsonCache.get(a);if(!u)try{u=JSON.parse(Mp__default.default.readFileSync(Ip__default.default.join(i,a,"package.json"),"utf-8")),this.packageJsonCache.set(a,u);}catch{return e}if(e[0]==="@"&&s.length===2||s.length===1){if(u.exports?.["."]?.import){let f=`${n}${a}/${u.exports["."].import.replace("./","")}`;return this.nodeModuleResolveCache.set(e,f),f}let h=t.mainFields||sF;for(let f of h)if(u[f]&&Mp__default.default.existsSync(Ip__default.default.join(i,a,u[f]))){let d=`${n}${e}/${u[f]}`;return this.nodeModuleResolveCache.set(e,d),d}return e}let c=s.slice(e[0]==="@"?2:1).join("/");if(u.exports)for(let h of Object.keys(u.exports)){let f=Array.isArray(u.exports[h].import)?u.exports[h].import[0]:u.exports[h].import;if(f){let d=new RegExp(`^${h.replace("./","").replace(/\./g,"\\.").replace(/\*/g,"(.*)")}$`),g=c.match(d);if(g){let P=f.replace("./","").replace("*",g[1]),A=`${n}${a}/${P}`;return this.nodeModuleResolveCache.set(e,A),A}}}if(!e.endsWith(".js")&&!e.endsWith(".mjs")){for(let h of lF)if(Mp__default.default.existsSync(Ip__default.default.join(i,`${e}${h}`))){let f=`${n}${e}${h}`;return this.nodeModuleResolveCache.set(e,f),f}}else if(Mp__default.default.existsSync(Ip__default.default.join(i,e))){let h=`${n}${e}`;return this.nodeModuleResolveCache.set(e,h),h}return e}};var aF=/import\.meta\.([a-zA-Z]+)|import\s*["']([^"']+)["'];{0,1}|import\s*\(([^)]+)\)|(import[\s{])|[\s}]from\s*["']([^"']+)["'](\s+with\s*{\s*type\s*:\s*["']([^"']+)["']\s*}){0,1}([;\s]*)|export(\s+[a-zA-Z0-9-_$]+\s+|\s+\*\s+|\s+\*\s+as\s+["'a-zA-Z0-9-_$]+\s+|\s*{[^}]+}\s*)from\s*["']([^"']+)["']|export\s*(default\s+){0,1}(async\s+){0,1}(function\*{0,1}|class)\s*([^({\s]+)|(export\s*default\s*)|export\s*{([^}]+)}|export\s+(var|let|const)\s+([^=;]+)(=|;)/gm,uF=/(\/)|(\(|\))|({|})|(\[|\])|(\${)|(`)|(')|(")|(\n)/gm,cF=/{([^}]+)}|\*\s+as\s+([a-zA-Z0-9-_$]+)|([a-zA-Z0-9-_$]+)/gm,pF=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/,_l=/['"`(){}\s;=><\[\]+-,:&]/,mF=/['"`({};=><\[+-,:&]/,hF=/\/\*|\*\//gm,WS=/export\s*/,yF=/export\s*default\s*/,dF=/;\s*$/,wf=class{window;debug=false;count={comment:0,singleLineComment:0,parentheses:0,curlyBraces:0,squareBrackets:0,regExp:0,regExpSquareBrackets:0,escapeTemplateString:0,simpleString:0,doubleString:0};debugCount={comment:[],singleLineComment:[],parentheses:[],curlyBraces:[],squareBrackets:[],regExp:[],regExpSquareBrackets:[],escapeTemplateString:[],simpleString:[],doubleString:[]};templateString=[];constructor(t){this.window=t;}compile(t,e,r=null){let n=new et(this.window).getBrowserContext();if(!n)return {imports:[],execute:async()=>{}};let i=n.browser.settings;if(!i.module.disableCache&&r){let U=n[ac].get(t);if(U)return {imports:U.imports,execute:this.window[kn](U.code,{filename:r})}}this.reset();let s=new RegExp(aF),l=[],a=[],u=this.count,c="",h="",f="",d=null,g,P,A=true,v=0,H=-1;for(;d=s.exec(e);){if(g=e[d.index-1]||" ",P=e.substring(v,d.index),this.parseSyntax(P,v),H===-1&&(c+=P),A=u.comment===0&&u.singleLineComment===0&&u.parentheses===0&&u.curlyBraces===0&&u.squareBrackets===0&&u.regExp===0&&u.simpleString===0&&u.doubleString===0&&this.templateString.length===0,d[1]&&u.simpleString===0&&u.doubleString===0&&u.comment===0&&u.singleLineComment===0&&u.regExp===0&&(this.templateString.length===0||this.templateString[0]>0)&&_l.test(this.getNonSpacePrecedingToken(e,d.index)))c+=`$happy_dom.importMeta.${d[1]}`;else if(d[2]&&A&&_l.test(g))l.push({url:zl.getURL(this.window,t,d[2]).href,type:"esm"});else if(d[3]&&u.simpleString===0&&u.doubleString===0&&u.comment===0&&u.singleLineComment===0&&u.regExp===0&&(this.templateString.length===0||this.templateString[0]>0)&&_l.test(g))c+=`$happy_dom.dynamicImport(${d[3]})`;else if(d[4]&&A&&_l.test(g)){if(H!==-1)throw new this.window.TypeError(`Failed to parse module: Unexpected import statement in "${t}"`);H=d.index+d[0].length-1;}else if(d[5]&&A&&H!==-1){let U=zl.getURL(this.window,t,d[5]).href,j=e.substring(H,d.index+1),at=new RegExp(cF),X=null;for(;X=at.exec(j);)if(X[1]){let Ct=this.removeMultilineComments(X[1]).split(/\s*,\s*/),Nt=[];for(let xe of Ct){let nr=xe.trim().split(/\s+as\s+/),Fr=(nr[1]||nr[0]).replace(/["']/g,""),ze=nr[0].replace(/["']/g,"");Fr&&ze&&(ze===Fr?Nt.push({name:ze}):Nt.push({name:ze,alias:Fr}));}(!d[7]||d[7]==="esm")&&a.push({url:U,properties:Nt}),h+=`let {${Nt.map(xe=>xe.alias?`"${xe.name}": ${xe.alias}`:xe.name).join(", ")}} = $happy_dom.imports.get('${U}')${d[8]}`;}else X[2]?h+=`const ${X[2]} = $happy_dom.imports.get('${U}')${d[8]}`:X[3]&&((!d[7]||d[7]==="esm")&&a.push({url:U,properties:[{name:"default",alias:X[3]}]}),h+=`let ${X[3]} = $happy_dom.imports.get('${U}').default${d[8]}`);H=-1,l.push({url:U,type:d[7]||"esm"});}else if(d[9]&&d[10]&&A&&_l.test(g)){let U=zl.getURL(this.window,t,d[10]).href,j=d[9].trim();if(j==="*")c+=`Object.assign($happy_dom.exports, $happy_dom.imports.get('${U}'))`,l.push({url:U,type:"esm"});else if(j[0]==="*"){let at=j.split(/\s+as\s+/);if(at.length===2){let X=at[1].replace(/["']/g,"");c+=`$happy_dom.exports['${X}'] = $happy_dom.imports.get('${U}')`,l.push({url:U,type:"esm"});}}else if(j[0]==="{"){let at=this.removeMultilineComments(j).slice(1,-1).split(/\s*,\s*/),X=[];for(let Ct of at){let Nt=Ct.trim().split(/\s+as\s+/),xe=(Nt[1]||Nt[0]).replace(/["']/g,""),nr=Nt[0].replace(/["']/g,"");xe&&nr&&X.push(`$happy_dom.exports['${xe}'] = $happy_dom.imports.get('${U}')['${nr}']`);}c+=X.join(`;
147
- `),l.push({url:U,type:"esm"});}}else if(d[13]&&d[14]&&A&&_l.test(g)){let U=d[14].replace("*","");if(U)d[11]?(c+=d[0].replace(yF,""),f+=`$happy_dom.exports.default = ${U};
148
- `):(c+=d[0].replace(WS,""),f+=`$happy_dom.exports['${U}'] = ${U};
149
- `);else if(d[11])c+=`$happy_dom.exports.default = ${d[12]||""}${d[13]}${U?" ":""}${d[14]}`;else throw new this.window.SyntaxError(`Failed to parse module: Missing function or class name in export statement in "${t}"`)}else if(d[15]&&A&&_l.test(g))c+="$happy_dom.exports.default = ";else if(d[16]&&A&&_l.test(g)){let U=this.removeMultilineComments(d[16]).split(/\s*,\s*/),j=[];for(let at of U){let X=at.trim().split(/\s+as\s+/),Ct=(X[1]||X[0]).replace(/["']/g,""),Nt=X[0].replace(/["']/g,"");Ct&&Nt&&pF.test(Nt)&&j.push(`$happy_dom.exports['${Ct}'] = ${Nt}`);}c+=j.join(`;
150
- `);}else if(d[17]&&A&&_l.test(g))if(d[19]==="="){let U=this.removeMultilineComments(d[18]).trim();if(U[0]==="{"&&U[U.length-1]==="}"||U[0]==="["&&U[U.length-1]==="]"){let j=U.slice(1,-1).split(/\s*,\s*/);for(let at of j){let X=at.trim().split(/\s*:\s*/),Ct=(X[1]||X[0]).replace(/["']/g,"");Ct&&(f+=`$happy_dom.exports['${Ct}'] = ${Ct};
151
- `);}c+=d[0].replace(WS,"");}else c+=d[0].replace(WS,""),f+=`$happy_dom.exports['${U}'] = ${U};
152
- `;}else {c+=d[0].replace(WS,"");let U=this.removeMultilineComments(d[18]).split(",");for(let j of U){let at=j.trim();f+=`$happy_dom.exports['${at}'] = ${at};
153
- `;}}else if(H!==-1){let U=e.substring(H,d.index+1);c+=U,this.parseSyntax(U,H);}else c+=d[0],this.parseSyntax(d[0],d.index);v=s.lastIndex;}if(this.debug)return {imports:l,execute:async()=>{}};if(h&&!dF.test(h)&&(h=`
154
- ${h};`),!i.disableErrorCapturing&&i.errorCapture===fe.tryAndCatch?h="(async function anonymous($happy_dom) { try {"+h:h="(async function anonymous($happy_dom) {"+h,c=h+c,v===0?c+=e:c+=e.substring(v),c+=`
155
- `+f,a.length>0){c+=`$happy_dom.addCircularImportResolver(() => {
156
- `;for(let U of a)for(let j of U.properties)j.alias?c+=`${j.alias} = $happy_dom.imports.get('${U.url}')['${j.name}'];
157
- `:c+=`${j.name} = $happy_dom.imports.get('${U.url}')['${j.name}'];
158
- `;c+="});";}!i.disableErrorCapturing&&i.errorCapture===fe.tryAndCatch&&(c+="} catch(e) { $happy_dom.dispatchError(e); }"),c+="})";let Q;try{Q=this.window[kn](c,{filename:r||t});}catch(U){let j=this.getError(t,e,r),at=j?new this.window.SyntaxError(`Failed to parse module in '${t}'. Execution error: ${U.message}. Compile error: ${j}`):U;if(U.message=`Failed to parse module in '${r}': ${at.message}`,i.disableErrorCapturing||i.errorCapture!==fe.tryAndCatch)throw at;return this.window[Se](at),{imports:l,execute:async()=>{}}}return !i.module.disableCache&&r&&n[ac].set(t,{imports:l,code:c}),{imports:l,execute:Q}}parseSyntax(t,e){let r=new RegExp(uF),n=this.count,i=this.debug,s=this.debugCount,l=null,a,u;for(e++;l=r.exec(t);)a=t[l.index-1]||" ",u=a==="\\"&&t[l.index-2]!=="\\",l[1]?n.simpleString===0&&n.doubleString===0&&n.singleLineComment===0&&n.regExpSquareBrackets===0&&(this.templateString.length===0||this.templateString[0]>0)&&(n.comment===1?a==="*"&&(n.comment=0,i&&(s.comment.length=0)):n.regExp===0?t[l.index+1]==="*"?(n.comment=1,i&&(s.comment=[e+l.index])):t[l.index+1]==="/"?(n.singleLineComment=1,i&&(s.singleLineComment=[e+l.index])):mF.test(this.getNonSpacePrecedingToken(t,l.index))&&(n.regExp=1,i&&(s.regExp=[e+l.index])):u||(n.regExp=0,i&&(s.regExp.length=0))):l[2]?n.simpleString===0&&n.doubleString===0&&n.regExp===0&&n.comment===0&&n.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(l[2]==="("?(n.parentheses++,i&&s.parentheses.push(e+l.index)):l[2]===")"&&n.parentheses>0&&(n.parentheses--,i&&s.parentheses.pop())):l[3]?n.simpleString===0&&n.doubleString===0&&n.regExp===0&&n.comment===0&&n.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(l[3]==="{"?(this.templateString.length&&this.templateString[0]++,n.curlyBraces++,i&&s.curlyBraces.push(e+l.index)):l[3]==="}"&&(this.templateString.length&&this.templateString[0]>0&&this.templateString[0]--,n.curlyBraces>0&&(n.curlyBraces--,i&&s.curlyBraces.pop()))):l[4]?n.simpleString===0&&n.doubleString===0&&n.comment===0&&n.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(n.regExp===1?u||(l[4]==="["&&n.regExpSquareBrackets===0?(n.regExpSquareBrackets=1,i&&(s.regExpSquareBrackets=[e+l.index])):l[4]==="]"&&n.regExpSquareBrackets===1&&(n.regExpSquareBrackets=0,i&&(s.regExpSquareBrackets.length=0))):l[4]==="["?(n.squareBrackets++,i&&s.squareBrackets.push(e+l.index)):l[4]==="]"&&n.squareBrackets>0&&(n.squareBrackets--,i&&s.squareBrackets.pop())):l[5]?n.simpleString===0&&n.doubleString===0&&n.comment===0&&n.singleLineComment===0&&n.regExp===0&&!u&&this.templateString[0]===0&&(this.templateString[0]=1,n.curlyBraces++,i&&s.curlyBraces.push(e+l.index)):l[6]?n.simpleString===0&&n.doubleString===0&&n.comment===0&&n.singleLineComment===0&&n.regExp===0&&!u&&(this.templateString?.[0]===0?this.templateString.shift():this.templateString.unshift(0)):l[7]?n.doubleString===0&&n.comment===0&&n.singleLineComment===0&&n.regExp===0&&!u&&(this.templateString.length===0||this.templateString[0]>0)&&(n.simpleString===0?(n.simpleString=1,i&&(s.simpleString=[e+l.index])):(n.simpleString=0,i&&(s.simpleString.length=0))):l[8]?n.simpleString===0&&n.comment===0&&n.singleLineComment===0&&n.regExp===0&&!u&&(this.templateString.length===0||this.templateString[0]>0)&&(n.doubleString===0?(n.doubleString=1,i&&(s.doubleString=[e+l.index])):(n.doubleString=0,i&&(s.doubleString.length=0))):l[9]&&(n.singleLineComment=0,i&&(s.singleLineComment.length=0));}getError(t,e,r){if(this.count.comment===0&&this.count.singleLineComment===0&&this.count.parentheses===0&&this.count.curlyBraces===0&&this.count.squareBrackets===0&&this.count.regExp===0&&this.count.regExpSquareBrackets===0&&this.count.simpleString===0&&this.count.doubleString===0)return null;this.debug||(this.debug=true,this.compile(t,e,r));let n=this.debugCount;if(n.comment.length>0){let{line:i,column:s}=this.getLineAndColumn(e,n.comment[0]);return `Missing end of comment on line ${i} and column ${s}`}else if(n.regExp.length>0){let{line:i,column:s}=this.getLineAndColumn(e,n.regExp[0]);return `Missing end of regular expression on line ${i} and column ${s}`}else if(n.regExpSquareBrackets.length>0){let{line:i,column:s}=this.getLineAndColumn(e,n.regExpSquareBrackets[0]);return `Missing end of regular expression square brackets on line ${i} and column ${s}`}else if(n.simpleString.length>0){let{line:i,column:s}=this.getLineAndColumn(e,n.simpleString[0]);return `Missing end of single quote string on line ${i} and column ${s}`}else if(n.doubleString.length>0){let{line:i,column:s}=this.getLineAndColumn(e,n.doubleString[0]);return `Missing end of double quote string on line ${i} and column ${s}`}else if(n.parentheses.length>0){let{line:i,column:s}=this.getLineAndColumn(e,n.parentheses[0]);return `Missing end of parentheses on line ${i} and column ${s}`}else if(n.curlyBraces.length>0){let{line:i,column:s}=this.getLineAndColumn(e,n.curlyBraces[0]);return `Missing end of curly braces on line ${i} and column ${s}`}else if(n.squareBrackets.length>0){let{line:i,column:s}=this.getLineAndColumn(e,n.squareBrackets[0]);return `Missing end of square brackets on line ${i} and column ${s}`}else if(n.escapeTemplateString.length>0){let{line:i,column:s}=this.getLineAndColumn(e,n.escapeTemplateString[0]);return `Missing end of escaped template string on line ${i} and column ${s}`}return null}getLineAndColumn(t,e){let r=t.substring(0,e).split(`
159
- `),n=r.length,i=r[r.length-1].length;return {line:n,column:i}}getNonSpacePrecedingToken(t,e){e--;let r=t[e];for(;r===" "||r===`
160
- `||r===" ";)e--,r=t[e];return r||";"}removeMultilineComments(t){let e=new RegExp(hF),r,n=0,i=0,s="";for(;r=e.exec(t);)n===0&&(s+=t.substring(i,r.index)),r[0]==="/*"?n++:r[0]==="*/"&&n>0&&n--,i=e.lastIndex;return s+=t.substring(i),s}reset(){this.count={comment:0,singleLineComment:0,parentheses:0,curlyBraces:0,squareBrackets:0,regExp:0,regExpSquareBrackets:0,escapeTemplateString:0,simpleString:0,doubleString:0},this.debugCount={comment:[],singleLineComment:[],parentheses:[],curlyBraces:[],squareBrackets:[],regExp:[],regExpSquareBrackets:[],escapeTemplateString:[],simpleString:[],doubleString:[]},this.templateString=[];}};var bF={imports:[],execute:async()=>{}},$l=class o{url;[m];#t;#e;#r=false;#o=null;#n=null;#i=null;#l;constructor(t){this[m]=t.window,this.url=t.url,this.#t=t.source,this.#e=t.sourceURL||null,this.#l=t.factory;}async evaluate(t=[],e=null){if(this.#i)return t.includes(this.url.href)?(e&&this.#i.push(e),this.#n):new Promise(d=>{this.#i.push(d);});if(this.#n)return this.#n;let r=this.#u(),n=[],i=this[m];if(!new et(i).getBrowserFrame())return {};let l={};this.#n=l,this.#i=[];for(let d of r.imports)n.push(this.#l.getModule(d.url,{with:{type:d.type}}));let a=new Map,u=null,c=()=>{u&&u();};if(n.length){let d=await Promise.all(n),g=[...t,this.url.href];for(let P of d)if(P instanceof o){let A=await P.evaluate(g,c);a.set(P.url.href,A);}else {let A=await P.evaluate();a.set(P.url.href,A);}}let h=this.url.href;r.execute({dispatchError:i[Se].bind(i),dynamicImport:this.#l.importModule.bind(this.#l),importMeta:{url:h,resolve:d=>new url.URL(d,h).href},imports:a,exports:l,addCircularImportResolver:d=>u=d});let f=this.#i;this.#i=null;for(let d of f)d(l);return l}async preload(){if(this.#r)return;this.#r=true;let t=this.#u(),e=[],r=this[m];if(!new et(r).getBrowserFrame())return;for(let l of t.imports)e.push(this.#l.getModule(l.url,{with:{type:l.type}}));let i=await Promise.all(e),s=[];for(let l of i)s.push(l.preload());await Promise.all(s);}#u(){if(this.#o)return this.#o;this.#o=bF;let t=new wf(this[m]);return this.#o=t.compile(this.url.href,this.#t,this.#e),this.#o}};var Vn=class o{window;parentURL;constructor(t,e){this.window=t,this.parentURL=e;}async getModule(t,e){let r=this.window,n=this.parentURL,i=zl.getURL(r,n,t),s=i.href,l=e?.with?.type||"esm";if(l!=="esm"&&l!=="css"&&l!=="json")throw new r.TypeError(`Failed to import module "${i}" from "${n}": Unknown type "${l}"`);let a=r[Cs][l].get(s);if(a)return a instanceof Lm?(await new Promise((A,v)=>{a.addResolveListener(A,v);}),r[Cs][l].get(s)):a;if(!new et(r).getBrowserFrame())throw new r.TypeError(`Failed to import module "${i}" from "${n}": Window is closed and is no longer attached to a frame`);let c=new Lm({window:r,url:i}),h=r[yn],f=h.startTask();r[Cs][l].set(s,c);let d=new Wl(r),g;try{g=await d.fetch(i,"module");}catch(A){throw h.endTask(f),c.resolve(A),A}h.endTask(f);let P;switch(l){case "json":P=new Mc({window:r,url:i,source:g.content});break;case "css":P=new Lc({window:r,url:i,source:g.content});break;case "esm":P=new $l({window:r,url:i,source:g.content,sourceURL:g.virtualServerFile||s,factory:new o(r,i)});break}return r[Cs][l].set(s,P),c.resolve(),P}async importModule(t,e){let r=new et(this.window).getBrowserFrame();if(!r)return {};let n=r[vt],i=n?.startTask(),l=await(await this.getModule(t,e)).evaluate();return n.endTask(i),l}};chunkBUNLC3II_cjs.h();var xf=class{integrityMetadata=null;response=null;error=null;#t=null;onResponseAvailable(){return new Promise((t,e)=>{this.#t={resolve:t,reject:e};})}responseAvailable(t,e){this.response=e,this.error=t,this.#t&&(t?this.#t.reject(t):e?this.#t.resolve(e):this.#t.reject(new Error("Response is null")));}};var Mm=class extends G{[sr]=null;[kl]=false;[Uo]=null;#t=null;get onerror(){return x.getEventListener(this,"onerror")}set onerror(t){this[y].set("onerror",t);}get onload(){return x.getEventListener(this,"onload")}set onload(t){this[y].set("onload",t);}get sheet(){return this[sr]}get relList(){return this[Uo]||(this[Uo]=new bo(b,this,"rel",["stylesheet","modulepreload","preload"])),this[Uo]}set relList(t){this.setAttribute("rel",t);}get as(){return this.getAttribute("as")||""}set as(t){this.setAttribute("as",t);}get crossOrigin(){return this.getAttribute("crossorigin")||""}set crossOrigin(t){this.setAttribute("crossorigin",t);}get href(){if(!this.hasAttribute("href"))return "";try{return new URL(this.getAttribute("href"),this[k].location.href).href}catch{return this.getAttribute("href")}}set href(t){this.setAttribute("href",t);}get hreflang(){return this.getAttribute("hreflang")||""}set hreflang(t){this.setAttribute("hreflang",t);}get media(){return this.getAttribute("media")||""}set media(t){this.setAttribute("media",t);}get referrerPolicy(){return this.getAttribute("referrerPolicy")||""}set referrerPolicy(t){this.setAttribute("referrerPolicy",t);}get rel(){return this.getAttribute("rel")||""}set rel(t){this.setAttribute("rel",t);}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t);}[Lr](){super[Lr]();let t=this.getAttribute("rel"),e=this.getAttribute("href");if(t&&e)switch(t){case "stylesheet":this.#o(e);break;case "modulepreload":this.#e(e);break;case "preload":this.#r(e);break}}[We](t,e){if(super[We](t,e),t[ut]==="rel"||t[ut]==="href"){let r=this.getAttribute("rel"),n=this.getAttribute("href");if(r&&n)switch(r){case "stylesheet":this.#o(n);break;case "modulepreload":this.#e(n);break;case "preload":this.#r(n);break}}}async#e(t){let e=this[m],r=new et(e).getBrowserFrame(),n=new et(e).getSettings();if(!r||!n||!this[ct]||n.disableJavaScriptFileLoading||!n.enableJavaScriptEvaluation)return;let i=new Vn(e,e.location);if(n.disableErrorCapturing||n.errorCapture!==fe.tryAndCatch)await(await i.getModule(t)).preload();else try{await(await i.getModule(t)).preload();}catch(s){r.page.console.error(s),e[Se](s);return}}async#r(t){let e=this[m],r=new et(e).getBrowserFrame(),n=this.as;if(!r||!this[ct]||n!=="script"&&n!=="style"&&n!=="fetch")return;let i=r.page.context.browser.settings;if(n==="script"&&(i.disableJavaScriptFileLoading||!i.enableJavaScriptEvaluation)||n==="style"&&i.disableCSSFileLoading)return;let s=new URL(t,e.location.href).href,l=Rs.getKey({url:s,destination:n,mode:"cors",credentialsMode:this.crossOrigin==="use-credentials"?"include":"same-origin"});if(e.document[mo].has(l))return;let a=new xf;e.document[mo].set(l,a);let u=new nn({browserFrame:r,window:e,url:s,disableSameOriginPolicy:n==="script"||n==="style",disablePreload:true,init:{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin"}});try{let c=await u.send();c[Lt]||await c.buffer(),a.responseAvailable(null,c);}catch(c){a.responseAvailable(c,null),e.document[mo].delete(l),r.page.console.error(`Failed to preload resource "${s}": ${c.message}`);}}async#o(t){let e=this[m],r=new et(e).getBrowserFrame();if(!r||t===null)return;let n=r.page.context.browser.settings;if(this[kl]||!this[ct])return;let i;try{i=new URL(t,e.location.href).href;}catch{return}if(this.#t===i)return;if(n&&n.disableCSSFileLoading){if(n.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new M("load"));else {let h=new e.DOMException(`Failed to load external stylesheet "${i}". CSS file loading is disabled.`,C.notSupportedError);r.page.console.error(h),this.dispatchEvent(new M("error"));}return}let s=new Wl(e),l=e[yn];this.#t=i;let a=l.startTask(),u=null,c=null;try{u=await s.fetch(i,"style",{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin"});}catch(h){c=h;}if(l.endTask(a),c)r.page.console.error(c),this.dispatchEvent(new M("error"));else {let h=new this[k][m].CSSStyleSheet;h.replaceSync(u.content),this[sr]=h;let f=this[k];if(f){for(let d of f[ri])d.result=null;f[ri]=[];}this.dispatchEvent(new M("load"));}}};chunkBUNLC3II_cjs.h();var Im=class extends G{[Ny]=null;get areas(){return this[Ny]||(this[Ny]=de.getElementsByTagName(this,"area")),this[Ny]}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t);}};chunkBUNLC3II_cjs.h();var Kl=class extends Array{constructor(t){if(super(),t!==1&&t!==b)throw new TypeError("Illegal constructor")}getCueById(t){for(let e of this)if(e.id===t)return e;return null}};chunkBUNLC3II_cjs.h();var Rm=class extends G{};chunkBUNLC3II_cjs.h();var Dm=class extends G{get content(){return this.getAttribute("content")||""}set content(t){this.setAttribute("content",t);}get httpEquiv(){return this.getAttribute("http-equiv")||""}set httpEquiv(t){this.setAttribute("http-equiv",t);}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t);}get scheme(){return this.getAttribute("scheme")||""}set scheme(t){this.setAttribute("scheme",t);}};chunkBUNLC3II_cjs.h();var Om=class extends G{get high(){if(!this.hasAttribute("high"))return 1;let t=parseFloat(this.getAttribute("high")||"");return isNaN(t)||t>1?1:t<0?0:t}set high(t){if(t=typeof t!="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'high' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("high",String(t));}get low(){if(!this.hasAttribute("low"))return 0;let t=parseFloat(this.getAttribute("low")||"");return isNaN(t)||t<0?0:t>1?1:t}set low(t){if(t=typeof t!="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'low' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("low",String(t));}get max(){if(!this.hasAttribute("max"))return 1;let t=parseFloat(this.getAttribute("max")||"");return isNaN(t)||t>1?1:t<0?0:t}set max(t){if(t=typeof t!="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'max' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("max",String(t));}get min(){if(!this.hasAttribute("min"))return 0;let t=parseFloat(this.getAttribute("min")||"");return isNaN(t)||t<0?0:t>1?1:t}set min(t){if(t=typeof t!="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'min' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("min",String(t));}get optimum(){if(!this.hasAttribute("optimum"))return .5;let t=parseFloat(this.getAttribute("optimum")||"");return isNaN(t)?.5:t<0?0:t>1?1:t}set optimum(t){if(t=typeof t!="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'optimum' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("optimum",String(t));}get value(){if(!this.hasAttribute("value"))return 0;let t=parseFloat(this.getAttribute("value")||"");return isNaN(t)||t<0?0:t>1?1:t}set value(t){if(t=typeof t!="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'value' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("value",String(t));}get labels(){return So.getAssociatedLabelElements(this)}};chunkBUNLC3II_cjs.h();var Fm=class extends G{get cite(){if(!this.hasAttribute("cite"))return "";try{return new URL(this.getAttribute("cite"),this[k].location.href).href}catch{return this.getAttribute("cite")}}set cite(t){this.setAttribute("cite",t);}get dateTime(){return this.getAttribute("datetime")||""}set dateTime(t){this.setAttribute("datetime",t);}};chunkBUNLC3II_cjs.h();var Bm=class extends G{get reversed(){return this.getAttribute("reversed")!==null}set reversed(t){t?this.setAttribute("reversed",""):this.removeAttribute("reversed");}get start(){if(!this.hasAttribute("start"))return 1;let t=Number(this.getAttribute("start")||"");return isNaN(t)?1:t}set start(t){typeof t!="number"&&(t=Number(t)),isNaN(t)&&(t=0),this.setAttribute("start",String(t));}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t);}};chunkBUNLC3II_cjs.h();var Vm=class extends G{[Jt]=null;[qe]="";[yr]=new go(this);get contentDocument(){return null}get contentWindow(){return null}get data(){if(!this.hasAttribute("data"))return "";try{return new URL(this.getAttribute("data"),this[k].location.href).href}catch{return this.getAttribute("data")}}set data(t){this.setAttribute("data",t);}get form(){if(this[Jt])return this[Jt];let t=this.getAttribute("form");return !t||!this[ct]?null:this[k].getElementById(t)}get height(){return this.getAttribute("height")||""}set height(t){this.setAttribute("height",t);}get width(){return this.getAttribute("width")||""}set width(t){this.setAttribute("width",t);}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t);}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t);}get validationMessage(){return this[qe]}get validity(){return this[yr]}get willValidate(){return false}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t;}checkValidity(){return true}reportValidity(){return this.checkValidity()}setCustomValidity(t){this[qe]=String(t);}};chunkBUNLC3II_cjs.h();var Hm=class extends G{get label(){return this.getAttribute("label")||""}set label(t){t?this.setAttribute("label",t):this.removeAttribute("label");}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled");}};chunkBUNLC3II_cjs.h();var Us=class extends G{[Yr]=false;[Sa]=false;[tr]=null;get text(){return this.innerText}set text(t){this.innerText=t;}get index(){return this[tr]?dt.querySelectorAll(this[tr],"option")[J].indexOf(this):0}get form(){return this[tr]?.form||null}get selected(){return this[Yr]}set selected(t){let e=this[tr];this[Sa]=true,this[Yr]=!!t,e&&e[xa](this[Yr]?this:null);}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled");}get value(){return this.getAttribute("value")??this.textContent}set value(t){this.setAttribute("value",t);}[We](t,e){if(super[We](t,e),!this[Sa]&&t[ut]==="selected"&&e?.[ot]!==t[ot]){let r=this[tr];this[Yr]=true,r&&r[xa](this);}}[fr](t){if(super[fr](t),t&&!this[Sa]&&t[ut]==="selected"){let e=this[tr];this[Yr]=false,e&&e[xa]();}}[Vo](){super[Vo](),this[tr]&&this[tr][xa]();}[Ji](){this[tr]&&this[tr][xa](),super[Ji]();}};chunkBUNLC3II_cjs.h();var Gm=class extends G{[Jt]=null;[qe]="";[yr]=new go(this);[$o]="";get defaultValue(){return this[$o]}set defaultValue(t){this[$o]=t;}get form(){if(this[Jt])return this[Jt];let t=this.getAttribute("form");return !t||!this[ct]?null:this[k].getElementById(t)}get htmlFor(){return this.getAttribute("for")||""}set htmlFor(t){this.setAttribute("for",t);}get labels(){return So.getAssociatedLabelElements(this)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t);}get value(){return this.textContent||""}set value(t){this.textContent=t;}get type(){return "output"}get validationMessage(){return this[qe]}get validity(){return this[yr]}get willValidate(){return false}checkValidity(){return true}reportValidity(){return this.checkValidity()}setCustomValidity(t){this[qe]=String(t);}};chunkBUNLC3II_cjs.h();var Um=class extends G{};chunkBUNLC3II_cjs.h();var Wm=class extends G{};chunkBUNLC3II_cjs.h();var zm=class extends G{};chunkBUNLC3II_cjs.h();var _m=class extends G{};chunkBUNLC3II_cjs.h();var $m=class extends G{get max(){if(!this.hasAttribute("max"))return 1;let t=parseFloat(this.getAttribute("max")||"");return isNaN(t)||t<0?1:t}set max(t){if(t=typeof t!="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'max' property on 'HTMLProgressElement': The provided double value is non-finite.");this.setAttribute("max",t<0?"1":String(t));}get value(){if(!this.hasAttribute("value"))return 0;let t=parseFloat(this.getAttribute("value")||"");return isNaN(t)||t<0?0:t}set value(t){if(t=typeof t!="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'value' property on 'HTMLProgressElement': The provided double value is non-finite.");this.setAttribute("value",t<0?"0":String(t));}get position(){return this.hasAttribute("value")?this.value/this.max:-1}get labels(){return So.getAssociatedLabelElements(this)}};chunkBUNLC3II_cjs.h();var Km=class extends G{get cite(){if(!this.hasAttribute("cite"))return "";try{return new URL(this.getAttribute("cite"),this[k].location.href).href}catch{return this.getAttribute("cite")}}set cite(t){this.setAttribute("cite",t);}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var gF=/import\s*\(([^)]+)\)/gm,SF=/(\/)|(\(|\))|({|})|(\[|\])|(\${)|(`)|(')|(")|(\n)/gm,PF=/['"`(){}\s;=><\[\]+-,:&]/,AF=/['"`({};=><\[+-,:&]/,jm=class{window;count={comment:0,singleLineComment:0,parentheses:0,curlyBraces:0,squareBrackets:0,regExp:0,regExpSquareBrackets:0,escapeTemplateString:0,simpleString:0,doubleString:0};templateString=[];constructor(t){this.window=t;}compile(t,e){let r=new et(this.window).getSettings();if(!r)return {execute:()=>{}};let n=new RegExp(gF),i=this.count,s="(function anonymous($happy_dom) {",l=null,a,u,c=0;for(!r.disableErrorCapturing&&r.errorCapture===fe.tryAndCatch&&(s+="try {");l=n.exec(e);)a=e[l.index-1]||" ",u=e.substring(c,l.index),this.parseSyntax(u,c),(s+=u),l[1]&&i.simpleString===0&&i.doubleString===0&&i.comment===0&&i.singleLineComment===0&&i.regExp===0&&(this.templateString.length===0||this.templateString[0]>0)&&PF.test(a)?s+=`$happy_dom.dynamicImport(${l[1]})`:(s+=l[0],this.parseSyntax(l[0],l.index)),c=n.lastIndex;c===0?s+=e:s+=e.substring(c),!r.disableErrorCapturing&&r.errorCapture===fe.tryAndCatch&&(s+="} catch (error) { $happy_dom.dispatchError(error); }"),s+="})";try{return {execute:this.window[kn](s,{filename:t})}}catch(f){if(f.message=`Failed to parse JavaScript in '${t}': ${f.message}`,r.disableErrorCapturing||r.errorCapture!==fe.tryAndCatch)throw f;return this.window[Se](f),{execute:()=>{}}}}parseSyntax(t,e){let r=new RegExp(SF),n=this.count,i=null,s,l;for(e++;i=r.exec(t);)s=t[i.index-1]||" ",l=s==="\\"&&t[i.index-2]!=="\\",i[1]?n.simpleString===0&&n.doubleString===0&&n.singleLineComment===0&&n.regExpSquareBrackets===0&&(this.templateString.length===0||this.templateString[0]>0)&&(n.comment===1?s==="*"&&(n.comment=0):n.regExp===0?t[i.index+1]==="*"?n.comment=1:t[i.index+1]==="/"?n.singleLineComment=1:AF.test(this.getNonSpacePrecedingToken(t,i.index))&&(n.regExp=1):l||(n.regExp=0)):i[2]?n.simpleString===0&&n.doubleString===0&&n.regExp===0&&n.comment===0&&n.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(i[2]==="("?n.parentheses++:i[2]===")"&&n.parentheses>0&&n.parentheses--):i[3]?n.simpleString===0&&n.doubleString===0&&n.regExp===0&&n.comment===0&&n.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(i[3]==="{"?(this.templateString.length&&this.templateString[0]++,n.curlyBraces++):i[3]==="}"&&(this.templateString.length&&this.templateString[0]>0&&this.templateString[0]--,n.curlyBraces>0&&n.curlyBraces--)):i[4]?n.simpleString===0&&n.doubleString===0&&n.comment===0&&n.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(n.regExp===1?l||(i[4]==="["&&n.regExpSquareBrackets===0?n.regExpSquareBrackets=1:i[4]==="]"&&n.regExpSquareBrackets===1&&(n.regExpSquareBrackets=0)):i[4]==="["?n.squareBrackets++:i[4]==="]"&&n.squareBrackets>0&&n.squareBrackets--):i[5]?n.simpleString===0&&n.doubleString===0&&n.comment===0&&n.singleLineComment===0&&n.regExp===0&&!l&&this.templateString[0]===0&&(this.templateString[0]=1,n.curlyBraces++):i[6]?n.simpleString===0&&n.doubleString===0&&n.comment===0&&n.singleLineComment===0&&n.regExp===0&&!l&&(this.templateString?.[0]===0?this.templateString.shift():this.templateString.unshift(0)):i[7]?n.doubleString===0&&n.comment===0&&n.singleLineComment===0&&n.regExp===0&&!l&&(this.templateString.length===0||this.templateString[0]>0)&&(n.simpleString===0?n.simpleString=1:n.simpleString=0):i[8]?n.simpleString===0&&n.comment===0&&n.singleLineComment===0&&n.regExp===0&&!l&&(this.templateString.length===0||this.templateString[0]>0)&&(n.doubleString===0?n.doubleString=1:n.doubleString=0):i[9]&&(n.singleLineComment=0);}getNonSpacePrecedingToken(t,e){e--;let r=t[e];for(;r===" "||r===`
161
- `||r===" ";)e--,r=t[e];return r||";"}};var qm=class extends G{[kl]=false;[Jd]=null;#t=null;get onerror(){return x.getEventListener(this,"onerror")}set onerror(t){this[y].set("onerror",t);}get onload(){return x.getEventListener(this,"onload")}set onload(t){this[y].set("onload",t);}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t);}get blocking(){return this[Jd]||(this[Jd]=new bo(b,this,"blocking")),this[Jd]}set blocking(t){this.setAttribute("blocking",t);}get crossOrigin(){return this.getAttribute("crossorigin")||""}set crossOrigin(t){this.setAttribute("crossorigin",t);}get fetchPriority(){let t=this.getAttribute("fetchpriority");switch(t){case "high":case "low":case "normal":return t;default:return "auto"}}set fetchPriority(t){this.setAttribute("fetchpriority",t);}get noModule(){return this.getAttribute("nomodule")!==null}set noModule(t){t?this.setAttribute("nomodule",""):this.removeAttribute("nomodule");}get integrity(){return this.getAttribute("integrity")||""}set integrity(t){this.setAttribute("integrity",t);}get referrerPolicy(){let t=this.getAttribute("referrerpolicy");switch(t){case "no-referrer":case "no-referrer-when-downgrade":case "same-origin":case "origin":case "strict-origin":case "origin-when-cross-origin":case "strict-origin-when-cross-origin":case "unsafe-url":return t;default:return ""}}set referrerPolicy(t){this.setAttribute("referrerpolicy",t);}get src(){if(!this.hasAttribute("src"))return "";try{return new URL(this.getAttribute("src"),this[k].location.href).href}catch{return this.getAttribute("src")}}set src(t){this.setAttribute("src",t);}get charset(){return this.getAttribute("charset")||""}set charset(t){this.setAttribute("charset",t);}get lang(){return this.getAttribute("lang")||""}set lang(t){this.setAttribute("lang",t);}get async(){return this.getAttribute("async")!==null}set async(t){t?this.setAttribute("async",""):this.removeAttribute("async");}get defer(){return this.getAttribute("defer")!==null}set defer(t){t?this.setAttribute("defer",""):this.removeAttribute("defer");}get text(){return this.textContent}set text(t){this.textContent=t;}[wt](t=false){return super[wt](t)}[Lr](){let t=new et(this[m]).getSettings();if(super[Lr](),this[kl])return;let e=this.getAttribute("src");if(e!==null)this.getAttribute("type")==="module"?this.#n(e):this.#i(e);else if(t&&t.enableJavaScriptEvaluation){let r=this.textContent,n=this.getAttribute("type");r&&(n==="module"?this.#e(r):n==="importmap"?this.#r(r):(n===null||n==="application/x-ecmascript"||n==="application/x-javascript"||n.startsWith("text/javascript"))&&this.#o(r));}}[We](t,e){super[We](t,e),t[ut]==="src"&&t[ot]!==null&&this[ct]&&(this.getAttribute("type")==="module"?this.#n(t[ot]):this.#i(t[ot]));}#e(t){let e=this[k].location,r=this[m],n=new et(r).getSettings();if(!new et(r).getBrowserFrame()||!n||!n.enableJavaScriptEvaluation)return;this[k][Tn]=this;let s=new Vn(r,e),l=new $l({window:r,url:e,source:t,factory:s});n.disableErrorCapturing||n.errorCapture!==fe.tryAndCatch?l.evaluate():l.evaluate().catch(a=>{r[Se](a);}),this[k][Tn]=null,this.dispatchEvent(new M("load"));}async#r(t){let e=this[m],r=new et(e).getSettings();if(!new et(e).getBrowserFrame()||!r||e[ic]||!r.enableJavaScriptEvaluation)return;let i;if(r.disableErrorCapturing||r.errorCapture!==fe.tryAndCatch)i=JSON.parse(t);else try{i=JSON.parse(t);}catch(s){e[Se](s);return}if(i.imports||i.scopes){let s={imports:[],scopes:[]};if(i.imports)for(let l of Object.keys(i.imports))s.imports.push({from:l,to:i.imports[l]});if(i.scopes)for(let l of Object.keys(i.scopes)){let a={scope:l,rules:[]};for(let u of Object.keys(i.scopes[l])){let c=i.scopes[l][u];a.rules.push({from:u,to:c});}s.scopes.push(a);}e[ic]=s;}}#o(t){let e=this[m];if(!new et(e).getSettings())return;this[k][Tn]=this;let i=new jm(e).compile(e.location.href,t),s=new Vn(e,e.location);i.execute({dynamicImport:s.importModule.bind(s),dispatchError:e[Se].bind(e)}),this[k][Tn]=null;}async#n(t){let e=this[m],r=new et(e).getBrowserFrame(),n=new et(e).getSettings();if(!r||!n||!t||!this[ct]||this.getAttribute("type")!=="module")return;if(n&&(n.disableJavaScriptFileLoading||!n.enableJavaScriptEvaluation)){if(n.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new M("load"));else {let s=new e.DOMException(`Failed to load module "${t}". JavaScript file loading is disabled.`,C.notSupportedError);r.page.console.error(s),this.dispatchEvent(new M("error"));}return}let i=new Vn(e,e.location);if(n.disableErrorCapturing||n.errorCapture!==fe.tryAndCatch)await(await i.getModule(t)).evaluate();else try{await(await i.getModule(t)).evaluate();}catch(s){r.page.console.error(s),this.dispatchEvent(new M("error"));return}this.dispatchEvent(new M("load"));}async#i(t){let e=this[m],r=new et(e).getBrowserFrame();if(!r)return;let n=r.page.context.browser.settings,i=this.getAttribute("type");if(!t||!this[ct]||i!==null&&i!=="application/x-ecmascript"&&i!=="application/x-javascript"&&!i.startsWith("text/javascript"))return;let s;try{s=new URL(t,e.location.href);}catch{return}let l=s.toString();if(this.#t===l)return;if(n&&(n.disableJavaScriptFileLoading||!n.enableJavaScriptEvaluation)){if(n.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new M("load"));else {let g=new e.DOMException(`Failed to load script "${s}". JavaScript file loading is disabled.`,C.notSupportedError);r.page.console.error(g),this.dispatchEvent(new M("error"));}return}this.#t=l;let a=new Wl(e),u=this.getAttribute("async")!==null||this.getAttribute("defer")!==null,c=null;if(u){let g=e[yn],P=g.startTask();try{c=await a.fetch(l,"script",{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin",referrerPolicy:this.referrerPolicy});}catch(A){r.page.console.error(A),this.dispatchEvent(new M("error")),g.endTask(P);return}g.endTask(P);}else try{c=a.fetchSync(l,"script",{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin",referrerPolicy:this.referrerPolicy});}catch(g){r.page.console.error(g),this.dispatchEvent(new M("error"));return}this[k][Tn]=this;let f=new jm(e).compile(c.virtualServerFile||l,c.content),d=new Vn(e,e.location);f.execute({dynamicImport:d.importModule.bind(d),dispatchError:e[Se].bind(e)}),this[k][Tn]=null,this.dispatchEvent(new M("load"));}static supports(t){switch(t){case "classic":case "module":case "importmap":return true;default:return false}}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Ic=class extends Oe{constructor(t,e){super(t,()=>dt.querySelectorAll(e,"option")[J]),this[Vt]=e;}get selectedIndex(){return this[Vt].selectedIndex}set selectedIndex(t){this[Vt].selectedIndex=t;}add(t,e){this[Vt].add(t,e);}remove(t){this[Vt].remove(t);}};var Ym=class o extends G{[qe]="";[yr]=new go(this);[ko]=null;[ka]=null;[Nn]=-1;[Kt];constructor(){super();let t=new Re(this,[o,G,Wr,xt,Dt]),e=new Proxy(this,{get:(r,n)=>{if(n in r||typeof n=="symbol")return t.bind(n),r[n];let i=Number(n);if(!isNaN(i))return dt.querySelectorAll(r,"option")[J][i]},set(r,n,i){if(t.bind(n),typeof n=="symbol")return r[n]=i,true;let s=Number(n);if(isNaN(s))return r[n]=i,true;if(!i||!(i instanceof Us))throw new r[m].Error(`TypeError: Failed to set an indexed property [${s}] on 'HTMLSelectElement': parameter 2 is not of type 'HTMLOptionElement'.`);let l=dt.querySelectorAll(r,"option")[J],a=r[K];for(;a.length;)r[Vr](a[0]);for(let u=0;u<=s;u++)u===s?r[Ot](i):l[u]?r[Ot](l[u]):r[Ot](r[k].createElement("option"));return true},deleteProperty(r,n){if(typeof n=="symbol")return delete r[n],true;let i=Number(n);return isNaN(i)&&delete r[n],true},ownKeys(r){return Object.keys(dt.querySelectorAll(r,"option")[J])},has(r,n){if(n in r)return true;if(typeof n=="symbol")return false;let i=Number(n);return isNaN(i)?false:!!dt.querySelectorAll(r,"option")[J][i]},defineProperty(r,n,i){t.preventBinding(n);let s=Number(n);if(isNaN(s))return Object.defineProperty(r,n,i),true;if(!i.value||!(i.value instanceof Us))throw new r[m].Error(`TypeError: Failed to set an indexed property [${s}] on 'HTMLSelectElement': parameter 2 is not of type 'HTMLOptionElement'.`);let l=dt.querySelectorAll(r,"option")[J],a=r[K];for(;a.length;)r[Vr](a[0]);for(let u=0;u<=s;u++)u===s?r[Ot](i.value):l[u]?r[Ot](l[u]):r[Ot](r[k].createElement("option"));return true},getOwnPropertyDescriptor(r,n){if(n in r)return Object.getOwnPropertyDescriptor(r,n);let i=Number(n);if(isNaN(i))return;let s=dt.querySelectorAll(r,"option")[J];if(s[i])return {value:s[i],writable:true,enumerable:true,configurable:true}}});return this[Kt]=e,this[tr]=e,e}get onchange(){return x.getEventListener(this,"onchange")}set onchange(t){this[y].set("onchange",t);}get oninput(){return x.getEventListener(this,"oninput")}set oninput(t){this[y].set("oninput",t);}get length(){return dt.querySelectorAll(this,"option")[J].length}get options(){return this[ko]||(this[ko]=new Ic(b,this)),this[ko]}get validationMessage(){return this[qe]}get validity(){return this[yr]}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t);}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled");}get multiple(){return this.getAttribute("multiple")!==null}set multiple(t){t?this.setAttribute("multiple",""):this.removeAttribute("multiple");}get autofocus(){return this.getAttribute("autofocus")!==null}set autofocus(t){t?this.setAttribute("autofocus",""):this.removeAttribute("autofocus");}get required(){return this.getAttribute("required")!==null}set required(t){t?this.setAttribute("required",""):this.removeAttribute("required");}get type(){return this.hasAttributeNS(null,"multiple")?"select-multiple":"select-one"}get value(){let t=dt.querySelectorAll(this,"option")[J];for(let e=0,r=t.length;e<r;e++){let n=t[e];if(n[Yr])return n.value}return ""}set value(t){let e=dt.querySelectorAll(this,"option")[J];this[Nn]=-1;for(let r=0,n=e.length;r<n;r++){let i=e[r];i.value===t?(i[Yr]=true,i[Sa]=true,this[Nn]=r):i[Yr]=false;}}get selectedIndex(){return this[Nn]}set selectedIndex(t){if(t=Number(t),isNaN(t))return;let e=dt.querySelectorAll(this,"option")[J];if(this[Nn]=-1,typeof t=="number"&&!isNaN(t)){for(let n=0,i=e.length;n<i;n++)e[n][Yr]=false;let r=e[t];r&&(r[Yr]=true,r[Sa]=true,this[Nn]=t);}}get selectedOptions(){return this[ka]||(this[ka]=new Oe(b,()=>{let t=dt.querySelectorAll(this,"option")[J];if(t[ka])return t[ka];let e=[];for(let r=0,n=t.length;r<n;r++){let i=t[r];i[Yr]&&e.push(i);}return t[ka]=e,e})),this[ka]}get labels(){return So.getAssociatedLabelElements(this)}get form(){if(this[Jt])return this[Jt];let t=this.getAttribute("form");return !t||!this[ct]?null:this[k].getElementById(t)}get willValidate(){return this.type!=="hidden"&&this.type!=="reset"&&this.type!=="button"&&!this.disabled}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t;}item(t){return this.options.item(t)}add(t,e){let r=dt.querySelectorAll(this,"option")[J];if(!e&&e!==0){let l=this[K];for(;l.length;)this[Vr](l[0]);for(let a of r)this[Ot](a);this[Ot](t);return}let n=this[m];if(typeof e!="number"){if(!(e instanceof Us))throw new n.DOMException("Failed to execute 'add' on 'HTMLFormElement': The node before which the new node is to be inserted before is not an 'HTMLOptionElement'.");e=r.indexOf(e);}if(!r[e])throw new n.DOMException("Failed to execute 'add' on 'HTMLFormElement': The node before which the new node is to be inserted before is not a child of this node.");let s=this[K];for(;s.length;)this[Vr](s[0]);for(let l=0,a=r.length;l<a;l++)l===e&&this[Ot](t),this[Ot](r[l]);}remove(t){if(typeof t=="number"){let e=dt.querySelectorAll(this,"option")[J];if(!e[t])return;let r=this[K];for(;r.length;)this[Vr](r[0]);for(let n=0,i=e.length;n<i;n++)n!==t&&this[Ot](e[n]);}else super.remove();}setCustomValidity(t){this[qe]=String(t);}checkValidity(){let t=this.disabled||this[yr].valid;return t||this.dispatchEvent(new M("invalid",{bubbles:true,cancelable:true})),t}reportValidity(){return this.checkValidity()}[xa](t){let e=this.hasAttribute("multiple"),r=dt.querySelectorAll(this,"option")[J],n=[];if(t&&(this[Nn]=-1),!e)for(let s=0,l=r.length;s<l;s++){let a=r[s];t&&(a[Yr]=a===t,a===t&&(this[Nn]=s)),a[Yr]&&n.push(a);}if(this.#t()===1&&!n.length){this[Nn]=-1;for(let s=0,l=r.length;s<l;s++){let a=r[s],u=a[$],c=a.hasAttributeNS(null,"disabled");if(u&&u[V]===L.elementNode&&u[it]==="OPTGROUP"&&u.hasAttributeNS(null,"disabled")&&(c=true),!c){a[Yr]=true,this[Nn]=s;break}}}else if(n.length>=2){this[Nn]=-1;for(let s=0,l=r.length;s<l;s++)r[s][Yr]=s===n.length-1,s===n.length-1&&(this[Nn]=s);}}#t(){if(this.hasAttributeNS(null,"size")){let t=parseInt(this.getAttribute("size"));if(!isNaN(t)&&t>=0)return t}return this.hasAttributeNS(null,"multiple")?4:1}};chunkBUNLC3II_cjs.h();var Nx,zS=class extends G{[is]=[];get onslotchange(){return x.getEventListener(this,"onslotchange")}set onslotchange(t){this[y].set("onslotchange",t);}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t);}assign(...t){let e=this.getRootNode();if(e?.[Mi]!=="manual")return;let r=e.host;if(r){for(let n of t)if(n instanceof xt&&r[K].includes(n)&&n[V]!==L.commentNode){if(n[ii]){let i=n[ii][is].indexOf(n);i!==-1&&n[ii][is].splice(i,1);}n[ii]=this,this[is].push(n);}}}assignedNodes(t){return this.#t(this.name,t)}assignedElements(t){return this.#e(this.name,t)}[wt](t=false){return super[wt](t)}[We](t,e){if(super[We](t,e),t[ut]==="name"&&t[ot]!==e?.[ot]){let r=this.#t(e?.[ot]),n=this.#t(t.value);if(r.length!==n.length)this.dispatchEvent(new M("slotchange",{bubbles:true}));else for(let i=0,s=n.length;i<s;i++)if(r[i]!==n[i]){this.dispatchEvent(new M("slotchange",{bubbles:true}));break}}}[fr](t){super[fr](t),t[ut]==="name"&&t[ot]&&this.#t(t.value).length>0&&this.dispatchEvent(new M("slotchange",{bubbles:true}));}#t(t,e){let r=this.getRootNode();if(!r?.host)return [];if(r[Mi]==="manual")return this[is];let n=r.host,i=!!e?.flatten,s=[];for(let l of n[K]){let a=l.slot;if(t&&a&&a===t||!t&&!a)if(i&&l instanceof Nx)for(let u of l.assignedNodes(e))s.push(u);else s.push(l);}return s}#e(t,e){let r=this.getRootNode();if(!r?.host)return [];if(r[Mi]==="manual"){let l=[];for(let a of this[is])a instanceof Wr&&l.push(a);return l}let n=r.host,i=!!e?.flatten,s=[];for(let l of n[St]){let a=l.slot;if(t&&a===t||!t&&!a)if(i&&l instanceof Nx)for(let u of l.assignedElements(e))s.push(u);else s.push(l);}return s}};Nx=zS;var Lx=zS;chunkBUNLC3II_cjs.h();var Qm=class extends G{get height(){let t=Number(this.getAttribute("height"));return isNaN(t)||t<0?0:t}set height(t){let e=Number(t);this.setAttribute("height",isNaN(e)||e<0?"0":String(e));}get width(){let t=Number(this.getAttribute("width"));return isNaN(t)||t<0?0:t}set width(t){let e=Number(t);this.setAttribute("width",isNaN(e)||e<0?"0":String(e));}get media(){return this.getAttribute("media")||""}set media(t){this.setAttribute("media",t);}get sizes(){return this.getAttribute("sizes")||""}set sizes(t){this.setAttribute("sizes",t);}get src(){if(!this.hasAttribute("src"))return "";try{return new URL(this.getAttribute("src"),this[k].location.href).href}catch{return this.getAttribute("src")||""}}set src(t){this.setAttribute("src",t);}get srcset(){return this.getAttribute("srcset")||""}set srcset(t){this.setAttribute("srcset",t);}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t);}};chunkBUNLC3II_cjs.h();var Jm=class extends G{};chunkBUNLC3II_cjs.h();var Xm=class extends G{[sr]=null;[Hr]=this;[Ra]=false;get media(){return this.getAttribute("media")||""}set media(t){this.setAttribute("media",t);}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t);}get disabled(){return this[Ra]}set disabled(t){this[Ra]=!!t;}get sheet(){return this[ct]?(this[sr]||(this[sr]=new this[k][m].CSSStyleSheet,this[sr].replaceSync(this.textContent)),this[sr]):null}[Mr](){super[Mr](),this[sr]=null;}[Mt](){super[Mt](),this[sr]=null;}[Na](){this[sr]&&this[sr].replaceSync(this.textContent);}};chunkBUNLC3II_cjs.h();var hu=class extends G{};chunkBUNLC3II_cjs.h();var Zm=class extends G{get abbr(){return this.getAttribute("abbr")||""}set abbr(t){this.setAttribute("abbr",t);}get cellIndex(){let t=this.parentNode;for(;t;){if(t[it]==="TR")return dt.querySelectorAll(t,"td,th")[J].indexOf(this);t=t.parentNode;}return -1}get colSpan(){let t=Number(this.getAttribute("colspan"));return isNaN(t)||t<1?1:t}set colSpan(t){let e=Number(t);this.setAttribute("colspan",isNaN(e)||e<1?"1":String(e));}get headers(){return this.getAttribute("headers")||""}set headers(t){this.setAttribute("headers",String(t));}get rowSpan(){let t=Number(this.getAttribute("rowspan"));return isNaN(t)||t<1?1:t}set rowSpan(t){let e=Number(t);this.setAttribute("rowspan",isNaN(e)||e<1?"1":String(e));}get scope(){return this.getAttribute("scope")||""}set scope(t){this.setAttribute("scope",t);}};chunkBUNLC3II_cjs.h();var th=class extends G{};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var $i=class extends G{insertRow(t=-1){typeof t!="number"&&(t=-1);let e=dt.querySelectorAll(this,"tr")[J];if(t<-1)throw new this[m].DOMException(`Failed to execute 'insertRow' on 'HTMLTableSectionElement': The index provided (${t}) is less than -1.`,C.indexSizeError);if(t>e.length)throw new this[m].DOMException(`Failed to execute 'insertRow' on 'HTMLTableSectionElement': The index provided (${t}) is greater than the number of rows (${e.length}).`,C.indexSizeError);let r=this[k].createElement("tr");return t===-1||t===e.length?this.appendChild(r):this.insertBefore(r,e[t]),r}deleteRow(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'deleteRow' on 'HTMLTableSectionElement': 1 argument required, but only 0 present.");if(typeof t!="number"&&(t=-1),t<-1)throw new this[m].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableSectionElement': The index provided (${t}) is less than -1.`,C.indexSizeError);let e=dt.querySelectorAll(this,"tr")[J];if(t>=e.length)throw new this[m].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableSectionElement': The index provided (${t}) is greater than the number of rows in the table (${e.length}).`,C.indexSizeError);t===-1&&(t=e.length-1),e[t].remove();}};var eh=class extends G{[My]=null;[Iy]=null;get caption(){return dt.querySelector(this,"caption")}set caption(t){if(t){if(!(t instanceof hu))throw new this[m].TypeError("Failed to set the 'caption' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableCaptionElement'.");this.caption?.remove(),this.insertBefore(t,this.firstChild);}else this.caption?.remove();}get tHead(){return dt.querySelector(this,"thead")}set tHead(t){if(t){if(!(t instanceof $i))throw new this[m].TypeError("Failed to set the 'tHead' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableSectionElement'.");this.tHead?.remove();let e=false;for(let r of this[St])if(r[it]!=="CAPTION"&&r[it]!=="COLGROUP"){this.insertBefore(t,r),e=true;break}e||this.appendChild(t);}else this.tHead?.remove();}get tFoot(){return dt.querySelector(this,"tfoot")}set tFoot(t){if(t){if(!(t instanceof $i))throw new this[m].TypeError("Failed to set the 'tFoot' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableSectionElement'.");this.tFoot?.remove();let e=false;for(let r of this[St])if(r[it]!=="CAPTION"&&r[it]!=="COLGROUP"&&r[it]!=="THEAD"){this.insertBefore(t,r),e=true;break}e||this.appendChild(t);}else this.tFoot?.remove();}get rows(){return this[My]||(this[My]=new Oe(b,()=>dt.querySelectorAll(this,"tr")[J])),this[My]}get tBodies(){return this[Iy]||(this[Iy]=new Oe(b,()=>dt.querySelectorAll(this,"tbody")[J])),this[Iy]}createTHead(){let t=this.tHead;if(t)return t;let e=this[k].createElement("thead");return this.tHead=e,e}deleteTHead(){this.tHead=null;}createTFoot(){let t=this.tFoot;if(t)return t;let e=this[k].createElement("tfoot");return this.tFoot=e,e}deleteTFoot(){this.tFoot=null;}createTBody(){let t=dt.querySelectorAll(this,"tbody")[J],e=this[k].createElement("tbody");if(t.length>0){let r=t[t.length-1];return r.parentNode?.insertBefore(e,r.nextSibling),e}return this.appendChild(e),e}createCaption(){let t=this.caption;if(t)return t;let e=this[k].createElement("caption");return this.caption=e,e}deleteCaption(){this.caption=null;}insertRow(t=-1){typeof t!="number"&&(t=-1);let e=dt.querySelectorAll(this,"tr")[J];if(t<-1)throw new this[m].DOMException(`Failed to execute 'insertRow' on 'HTMLTableElement': The index provided (${t}) is less than -1.`,C.indexSizeError);if(t>e.length)throw new this[m].DOMException(`Failed to execute 'insertRow' on 'HTMLTableElement': The index provided (${t}) is greater than the number of rows (${e.length}).`,C.indexSizeError);let r=this[k].createElement("tr");if(t===-1||t===e.length){let n=dt.querySelector(this,"tbody");if(n)n.appendChild(r);else {let i=this[k].createElement("tbody");i.appendChild(r),this.appendChild(i);}return r}return e[t].parentNode?.insertBefore(r,e[t]),r}deleteRow(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'deleteRow' on 'HTMLTableElement': 1 argument required, but only 0 present.");if(typeof t!="number"&&(t=-1),t<-1)throw new this[m].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableElement': The index provided (${t}) is less than -1.`,C.indexSizeError);let e=dt.querySelectorAll(this,"tr")[J];if(t>=e.length)throw new this[m].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableElement': The index provided (${t}) is greater than the number of rows in the table (${e.length}).`,C.indexSizeError);t===-1&&(t=e.length-1),e[t].remove();}};chunkBUNLC3II_cjs.h();var rh=class extends G{[Ly]=null;get cells(){return this[Ly]||(this[Ly]=new Oe(b,()=>dt.querySelectorAll(this,"td,th")[J])),this[Ly]}get rowIndex(){let t=this.parentNode;for(;t;){if(t[it]==="TABLE")return dt.querySelectorAll(t,"tr")[J].indexOf(this);t=t.parentNode;}return -1}get sectionRowIndex(){let t=this.parentNode;for(;t;){if(t instanceof $i)return dt.querySelectorAll(t,"tr")[J].indexOf(this);t=t.parentNode;}return -1}insertCell(t=-1){typeof t!="number"&&(t=-1);let e=dt.querySelectorAll(this,"td,th")[J];if(t<-1)throw new this[m].DOMException(`Failed to execute 'insertCell' on 'HTMLTableRowElement': The index provided (${t}) is less than -1.`,C.indexSizeError);if(t>e.length)throw new this[m].DOMException(`Failed to execute 'insertCell' on 'HTMLTableRowElement': The index provided (${t}) is greater than the number of cells (${e.length}).`,C.indexSizeError);let r=this[k].createElement("td");return t===-1||t===e.length?(this.appendChild(r),r):(e[t].parentNode?.insertBefore(r,e[t]),r)}deleteCell(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'deleteCell' on 'HTMLTableRowElement': 1 argument required, but only 0 present.");if(typeof t!="number"&&(t=-1),t<-1)throw new this[m].DOMException(`Failed to execute 'deleteCell' on 'HTMLTableRowElement': The index provided (${t}) is less than -1.`,C.indexSizeError);let e=dt.querySelectorAll(this,"td,th")[J];if(t>=e.length)throw new this[m].DOMException(`Failed to execute 'deleteCell' on 'HTMLTableRowElement': The index provided (${t}) is greater than the number of cells in the row (${e.length}).`,C.indexSizeError);t===-1&&(t=e.length-1),e[t].remove();}};chunkBUNLC3II_cjs.h();var oh=class extends G{[Wo]=this[k].createDocumentFragment();get content(){return this[Wo]}get innerHTML(){return this.getHTML()}set innerHTML(t){let e=this[Wo],r=e[K];for(;r.length;)e.removeChild(r[0]);new Ur(this[m],{isTemplateDocumentFragment:true}).parse(t,this[Wo]);}get firstChild(){return this[Wo].firstChild}get lastChild(){return this[Wo].lastChild}getInnerHTML(t){let e=new Bn,r=this[Wo],n="";for(let i of r[K])n+=e.serializeToString(i);return n}getHTML(t){let e=new Bn,r=this[Wo],n="";for(let i of r[K])n+=e.serializeToString(i);return n}[Ot](t,e=false){return this[Wo][Ot](t,e)}[Vr](t){return this[Wo][Vr](t)}[uo](t,e,r=false){return this[Wo][uo](t,e,r)}[xp](t,e){return this[Wo][xp](t,e)}[wt](t=false){let e=super[wt](t);return e[Wo]=this[Wo].cloneNode(t),e}};chunkBUNLC3II_cjs.h();var nh=class extends G{type="textarea";[qe]="";[yr]=new go(this);[ot]=null;[wr]=this;[Jt]=null;#t=null;#e=null;#r=ln.none;get oninput(){return x.getEventListener(this,"oninput")}set oninput(t){this[y].set("oninput",t);}get onselectionchange(){return x.getEventListener(this,"onselectionchange")}set onselectionchange(t){this[y].set("onselectionchange",t);}get validationMessage(){return this[qe]}get validity(){return this[yr]}get defaultValue(){return this.textContent}set defaultValue(t){this.textContent=t;}get minLength(){let t=this.getAttribute("minlength");return t!==null?parseInt(t):-1}set minLength(t){this.setAttribute("minlength",String(t));}get maxLength(){let t=this.getAttribute("maxlength");return t!==null?parseInt(t):-1}set maxLength(t){this.setAttribute("maxlength",String(t));}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t);}get placeholder(){return this.getAttribute("placeholder")||""}set placeholder(t){this.setAttribute("placeholder",t);}get inputMode(){return this.getAttribute("inputmode")||""}set inputMode(t){this.setAttribute("inputmode",t);}get cols(){return this.getAttribute("cols")||""}set cols(t){this.setAttribute("cols",t);}get rows(){return this.getAttribute("rows")||""}set rows(t){this.setAttribute("rows",t);}get autocomplete(){return this.getAttribute("autocomplete")||""}set autocomplete(t){this.setAttribute("autocomplete",t);}get readOnly(){return this.getAttribute("readonly")!==null}set readOnly(t){t?this.setAttribute("readonly",""):this.removeAttribute("readonly");}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled");}get autofocus(){return this.getAttribute("autofocus")!==null}set autofocus(t){t?this.setAttribute("autofocus",""):this.removeAttribute("autofocus");}get required(){return this.getAttribute("required")!==null}set required(t){t?this.setAttribute("required",""):this.removeAttribute("required");}get value(){return this[ot]===null?this.textContent:this[ot]}set value(t){let e=this[ot];this[ot]=t,e!==this[ot]&&(this.#t=this[ot].length,this.#e=this[ot].length,this.#r=ln.none);}get selectionStart(){return this.#t===null?this.value.length:this.#t}set selectionStart(t){this.setSelectionRange(t,Math.max(t,this.selectionEnd),this.#r);}get selectionEnd(){return this.#e===null?this.value.length:this.#e}set selectionEnd(t){this.setSelectionRange(this.selectionStart,t,this.#r);}get selectionDirection(){return this.#r}set selectionDirection(t){this.setSelectionRange(this.selectionStart,this.selectionEnd,t);}get form(){if(this[Jt])return this[Jt];let t=this.getAttribute("form");return !t||!this[ct]?null:this[k].getElementById(t)}get textLength(){return this.value.length}get labels(){return So.getAssociatedLabelElements(this)}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t;}select(){this.#t=0,this.#e=this.value.length,this.#r=ln.none,this.dispatchEvent(new M("select",{bubbles:true,cancelable:false}));}setSelectionRange(t,e,r="none"){this.#e=Math.min(e,this.value.length),this.#t=Math.min(t,this.selectionEnd),this.#r=r===ln.forward||r===ln.backward?r:ln.none,this.dispatchEvent(new M("select",{bubbles:true,cancelable:false}));}setRangeText(t,e=null,r=null,n=Gs.preserve){if(e===null&&(e=this.#t!==null?this.#t:0),r===null&&(r=this.#e!==null?this.#e:this.value.length),e>r)throw new this[m].DOMException("The index is not in the allowed range.",C.invalidStateError);e=Math.min(e,this.value.length),r=Math.min(r,this.value.length);let i=this.value,s=this.#t!==null?this.#t:0,l=this.#e!==null?this.#e:this.value.length;this.value=i.slice(0,e)+t+i.slice(r);let a=e+this.value.length;switch(n){case Gs.select:this.setSelectionRange(e,a);break;case Gs.start:this.setSelectionRange(e,e);break;case Gs.end:this.setSelectionRange(a,a);break;default:let u=t.length-(r-e);s>r?s+=u:s>e&&(s=e),l>r?l+=u:l>e&&(l=a),this.setSelectionRange(s,l);break}}setCustomValidity(t){this[qe]=String(t);}checkValidity(){let t=this.disabled||this.readOnly||this[yr].valid;return t||this.dispatchEvent(new M("invalid",{bubbles:true,cancelable:true})),t}reportValidity(){return this.checkValidity()}[wt](t=false){let e=super[wt](t);return e[ot]=this[ot],e.#t=this.#t,e.#e=this.#e,e.#r=this.#r,e}[bp](){this[ot]===null&&(this.#t=null,this.#e=null,this.#r=ln.none);}};chunkBUNLC3II_cjs.h();var ih=class extends G{get dateTime(){return this.getAttribute("dateTime")||""}set dateTime(t){this.setAttribute("dateTime",t);}};chunkBUNLC3II_cjs.h();var sh=class extends G{get text(){let t="";for(let e of this[K])e[V]===L.textNode&&(t+=e.textContent);return t}set text(t){this.textContent=t;}get innerHTML(){return this.getHTML()}set innerHTML(t){this.textContent=t;}};chunkBUNLC3II_cjs.h();var lh=class extends G{get oncuechange(){return x.getEventListener(this,"oncuechange")}set oncuechange(t){this[y].set("oncuechange",t);}get kind(){let t=this.getAttribute("kind");return t===null?Fs.subtitles:Fs[t]?t:Fs.metadata}set kind(t){Fs[t]||(t=Fs.metadata),this.setAttribute("kind",t);}get src(){if(!this.hasAttribute("src"))return "";try{return new URL(this.getAttribute("src"),this[k].location.href).href}catch{return this.getAttribute("src")||""}}set src(t){this.setAttribute("src",t);}get srclang(){return this.getAttribute("srclang")||""}set srclang(t){this.setAttribute("srclang",t);}get label(){return this.getAttribute("label")||""}set label(t){this.setAttribute("label",t);}get default(){return this.hasAttribute("default")}set default(t){t?this.setAttribute("default",""):this.removeAttribute("default");}get readyState(){return 0}get track(){let t=new this[m].TextTrack(b);return t[dn]=this.kind,t[Sl]=this.label,t[tc]=this.srclang,t[Ue]=this.default?"showing":"disabled",t[Dy]=this.id,t}};chunkBUNLC3II_cjs.h();var ah=class extends G{};chunkBUNLC3II_cjs.h();var uh=class extends G{};chunkBUNLC3II_cjs.h();var yu=class extends Bs{};chunkBUNLC3II_cjs.h();var ch=class extends Wi{[V]=L.processingInstructionNode;[Qr]="";get target(){return this[Qr]}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var du=class extends xt{[Nr]=null;[$e]=this;[V]=L.documentFragmentNode;get children(){if(!this[Nr]){let t=this[St];this[Nr]=new Oe(b,()=>t);}return this[Nr]}get childElementCount(){return this[St].length}get firstElementChild(){return this[St][0]??null}get lastElementChild(){let t=this[St];return t[t.length-1]??null}get textContent(){let t="";for(let e of this[K])(e[V]===L.elementNode||e[V]===L.textNode)&&(t+=e.textContent);return t}set textContent(t){let e=this[K];for(;e.length;)this.removeChild(e[0]);t&&this.appendChild(this[k].createTextNode(t));}append(...t){de.append(this,...t);}prepend(...t){de.prepend(this,...t);}replaceChildren(...t){de.replaceChildren(this,...t);}querySelectorAll(t){return dt.querySelectorAll(this,t)}querySelector(t){return dt.querySelector(this,t)}getElementById(t){return de.getElementById(this,t)}};var ph=class extends du{[yl]=[];[Ue]="open";[Ta]=null;[Ma]=false;[Xu]=false;[ns]=false;[Mi]="named";[y]=new Map;get onslotchange(){return this[y].get("onslotchange")??null}set onslotchange(t){this[y].set("onslotchange",t);}get mode(){return this[Ue]}get host(){return this[Ta]}get clonable(){return this[Ma]}get delegatesFocus(){return this[Xu]}get serializable(){return this[ns]}get slotAssignment(){return this[Mi]}get fullscreenElement(){return null}get pictureInPictureElement(){return null}get pointerLockElement(){return null}get innerHTML(){let t=new Bn,e="";for(let r of this[K])e+=t.serializeToString(r);return e}set innerHTML(t){let e=this[K];for(;e.length;)this.removeChild(e[0]);new Ur(this[m]).parse(t,this);}get adoptedStyleSheets(){return this[yl]}set adoptedStyleSheets(t){this[yl]=t;}get activeElement(){let t=this[k][Ze],e=t?.getRootNode();if(!e||e===this[k])return null;if(e===this)return t;for(;e&&e!==this;)t=e.host,e=t.getRootNode();return t}getAnimations(){return []}setHTMLUnsafe(t){let e=this[K];for(;e.length;)this.removeChild(e[0]);new Ur(this[m]).parse(t,this);}toString(){return this.innerHTML}[wt](t=false){let e=super[wt](t);return e[Ue]=this[Ue],e[Ma]=this[Ma],e[Xu]=this[Xu],e[ns]=this[ns],e[Mi]=this[Mi],e}};chunkBUNLC3II_cjs.h();var pt=class extends Wr{[Me]=null;#t=null;get onabort(){return x.getEventListener(this,"onabort")}set onabort(t){this[y].set("onabort",t);}get onanimationend(){return x.getEventListener(this,"onanimationend")}set onanimationend(t){this[y].set("onanimationend",t);}get onanimationiteration(){return x.getEventListener(this,"onanimationiteration")}set onanimationiteration(t){this[y].set("onanimationiteration",t);}get onanimationstart(){return x.getEventListener(this,"onanimationstart")}set onanimationstart(t){this[y].set("onanimationstart",t);}get onauxclick(){return x.getEventListener(this,"onauxclick")}set onauxclick(t){this[y].set("onauxclick",t);}get onblur(){return x.getEventListener(this,"onblur")}set onblur(t){this[y].set("onblur",t);}get oncancel(){return x.getEventListener(this,"oncancel")}set oncancel(t){this[y].set("oncancel",t);}get oncanplay(){return x.getEventListener(this,"oncanplay")}set oncanplay(t){this[y].set("oncanplay",t);}get oncanplaythrough(){return x.getEventListener(this,"oncanplaythrough")}set oncanplaythrough(t){this[y].set("oncanplaythrough",t);}get onchange(){return x.getEventListener(this,"onchange")}set onchange(t){this[y].set("onchange",t);}get onclick(){return x.getEventListener(this,"onclick")}set onclick(t){this[y].set("onclick",t);}get onclose(){return x.getEventListener(this,"onclose")}set onclose(t){this[y].set("onclose",t);}get oncontextmenu(){return x.getEventListener(this,"oncontextmenu")}set oncontextmenu(t){this[y].set("oncontextmenu",t);}get oncopy(){return x.getEventListener(this,"oncopy")}set oncopy(t){this[y].set("oncopy",t);}get oncuechange(){return x.getEventListener(this,"oncuechange")}set oncuechange(t){this[y].set("oncuechange",t);}get oncut(){return x.getEventListener(this,"oncut")}set oncut(t){this[y].set("oncut",t);}get ondblclick(){return x.getEventListener(this,"ondblclick")}set ondblclick(t){this[y].set("ondblclick",t);}get ondrag(){return x.getEventListener(this,"ondrag")}set ondrag(t){this[y].set("ondrag",t);}get ondragend(){return x.getEventListener(this,"ondragend")}set ondragend(t){this[y].set("ondragend",t);}get ondragenter(){return x.getEventListener(this,"ondragenter")}set ondragenter(t){this[y].set("ondragenter",t);}get ondragleave(){return x.getEventListener(this,"ondragleave")}set ondragleave(t){this[y].set("ondragleave",t);}get ondragover(){return x.getEventListener(this,"ondragover")}set ondragover(t){this[y].set("ondragover",t);}get ondragstart(){return x.getEventListener(this,"ondragstart")}set ondragstart(t){this[y].set("ondragstart",t);}get ondrop(){return x.getEventListener(this,"ondrop")}set ondrop(t){this[y].set("ondrop",t);}get ondurationchange(){return x.getEventListener(this,"ondurationchange")}set ondurationchange(t){this[y].set("ondurationchange",t);}get onemptied(){return x.getEventListener(this,"onemptied")}set onemptied(t){this[y].set("onemptied",t);}get onended(){return x.getEventListener(this,"onended")}set onended(t){this[y].set("onended",t);}get onerror(){return x.getEventListener(this,"onerror")}set onerror(t){this[y].set("onerror",t);}get onfocus(){return x.getEventListener(this,"onfocus")}set onfocus(t){this[y].set("onfocus",t);}get onformdata(){return x.getEventListener(this,"onformdata")}set onformdata(t){this[y].set("onformdata",t);}get ongotpointercapture(){return x.getEventListener(this,"ongotpointercapture")}set ongotpointercapture(t){this[y].set("ongotpointercapture",t);}get oninput(){return x.getEventListener(this,"oninput")}set oninput(t){this[y].set("oninput",t);}get oninvalid(){return x.getEventListener(this,"oninvalid")}set oninvalid(t){this[y].set("oninvalid",t);}get onkeydown(){return x.getEventListener(this,"onkeydown")}set onkeydown(t){this[y].set("onkeydown",t);}get onkeypress(){return x.getEventListener(this,"onkeypress")}set onkeypress(t){this[y].set("onkeypress",t);}get onkeyup(){return x.getEventListener(this,"onkeyup")}set onkeyup(t){this[y].set("onkeyup",t);}get onload(){return x.getEventListener(this,"onload")}set onload(t){this[y].set("onload",t);}get onloadeddata(){return x.getEventListener(this,"onloadeddata")}set onloadeddata(t){this[y].set("onloadeddata",t);}get onloadedmetadata(){return x.getEventListener(this,"onloadedmetadata")}set onloadedmetadata(t){this[y].set("onloadedmetadata",t);}get onloadstart(){return x.getEventListener(this,"onloadstart")}set onloadstart(t){this[y].set("onloadstart",t);}get onlostpointercapture(){return x.getEventListener(this,"onlostpointercapture")}set onlostpointercapture(t){this[y].set("onlostpointercapture",t);}get onmousedown(){return x.getEventListener(this,"onmousedown")}set onmousedown(t){this[y].set("onmousedown",t);}get onmouseenter(){return x.getEventListener(this,"onmouseenter")}set onmouseenter(t){this[y].set("onmouseenter",t);}get onmouseleave(){return x.getEventListener(this,"onmouseleave")}set onmouseleave(t){this[y].set("onmouseleave",t);}get onmousemove(){return x.getEventListener(this,"onmousemove")}set onmousemove(t){this[y].set("onmousemove",t);}get onmouseout(){return x.getEventListener(this,"onmouseout")}set onmouseout(t){this[y].set("onmouseout",t);}get onmouseover(){return x.getEventListener(this,"onmouseover")}set onmouseover(t){this[y].set("onmouseover",t);}get onmouseup(){return x.getEventListener(this,"onmouseup")}set onmouseup(t){this[y].set("onmouseup",t);}get onmousewheel(){return x.getEventListener(this,"onmousewheel")}set onmousewheel(t){this[y].set("onmousewheel",t);}get onpaste(){return x.getEventListener(this,"onpaste")}set onpaste(t){this[y].set("onpaste",t);}get onpause(){return x.getEventListener(this,"onpause")}set onpause(t){this[y].set("onpause",t);}get onplay(){return x.getEventListener(this,"onplay")}set onplay(t){this[y].set("onplay",t);}get onplaying(){return x.getEventListener(this,"onplaying")}set onplaying(t){this[y].set("onplaying",t);}get onpointercancel(){return x.getEventListener(this,"onpointercancel")}set onpointercancel(t){this[y].set("onpointercancel",t);}get onpointerdown(){return x.getEventListener(this,"onpointerdown")}set onpointerdown(t){this[y].set("onpointerdown",t);}get onpointerenter(){return x.getEventListener(this,"onpointerenter")}set onpointerenter(t){this[y].set("onpointerenter",t);}get onpointerleave(){return x.getEventListener(this,"onpointerleave")}set onpointerleave(t){this[y].set("onpointerleave",t);}get onpointermove(){return x.getEventListener(this,"onpointermove")}set onpointermove(t){this[y].set("onpointermove",t);}get onpointerout(){return x.getEventListener(this,"onpointerout")}set onpointerout(t){this[y].set("onpointerout",t);}get onpointerover(){return x.getEventListener(this,"onpointerover")}set onpointerover(t){this[y].set("onpointerover",t);}get onpointerrawupdate(){return x.getEventListener(this,"onpointerrawupdate")}set onpointerrawupdate(t){this[y].set("onpointerrawupdate",t);}get onpointerup(){return x.getEventListener(this,"onpointerup")}set onpointerup(t){this[y].set("onpointerup",t);}get onprogress(){return x.getEventListener(this,"onprogress")}set onprogress(t){this[y].set("onprogress",t);}get onratechange(){return x.getEventListener(this,"onratechange")}set onratechange(t){this[y].set("onratechange",t);}get onreset(){return x.getEventListener(this,"onreset")}set onreset(t){this[y].set("onreset",t);}get onresize(){return x.getEventListener(this,"onresize")}set onresize(t){this[y].set("onresize",t);}get onscroll(){return x.getEventListener(this,"onscroll")}set onscroll(t){this[y].set("onscroll",t);}get onscrollend(){return x.getEventListener(this,"onscrollend")}set onscrollend(t){this[y].set("onscrollend",t);}get onscrollsnapchange(){return x.getEventListener(this,"onscrollsnapchange")}set onscrollsnapchange(t){this[y].set("onscrollsnapchange",t);}get onscrollsnapchanging(){return x.getEventListener(this,"onscrollsnapchanging")}set onscrollsnapchanging(t){this[y].set("onscrollsnapchanging",t);}get onsecuritypolicyviolation(){return x.getEventListener(this,"onsecuritypolicyviolation")}set onsecuritypolicyviolation(t){this[y].set("onsecuritypolicyviolation",t);}get onseeked(){return x.getEventListener(this,"onseeked")}set onseeked(t){this[y].set("onseeked",t);}get onseeking(){return x.getEventListener(this,"onseeking")}set onseeking(t){this[y].set("onseeking",t);}get onselect(){return x.getEventListener(this,"onselect")}set onselect(t){this[y].set("onselect",t);}get onselectionchange(){return x.getEventListener(this,"onselectionchange")}set onselectionchange(t){this[y].set("onselectionchange",t);}get onselectstart(){return x.getEventListener(this,"onselectstart")}set onselectstart(t){this[y].set("onselectstart",t);}get onslotchange(){return x.getEventListener(this,"onslotchange")}set onslotchange(t){this[y].set("onslotchange",t);}get onstalled(){return x.getEventListener(this,"onstalled")}set onstalled(t){this[y].set("onstalled",t);}get onsubmit(){return x.getEventListener(this,"onsubmit")}set onsubmit(t){this[y].set("onsubmit",t);}get onsuspend(){return x.getEventListener(this,"onsuspend")}set onsuspend(t){this[y].set("onsuspend",t);}get ontimeupdate(){return x.getEventListener(this,"ontimeupdate")}set ontimeupdate(t){this[y].set("ontimeupdate",t);}get ontoggle(){return x.getEventListener(this,"ontoggle")}set ontoggle(t){this[y].set("ontoggle",t);}get ontransitioncancel(){return x.getEventListener(this,"ontransitioncancel")}set ontransitioncancel(t){this[y].set("ontransitioncancel",t);}get ontransitionend(){return x.getEventListener(this,"ontransitionend")}set ontransitionend(t){this[y].set("ontransitionend",t);}get ontransitionrun(){return x.getEventListener(this,"ontransitionrun")}set ontransitionrun(t){this[y].set("ontransitionrun",t);}get ontransitionstart(){return x.getEventListener(this,"ontransitionstart")}set ontransitionstart(t){this[y].set("ontransitionstart",t);}get onvolumechange(){return x.getEventListener(this,"onvolumechange")}set onvolumechange(t){this[y].set("onvolumechange",t);}get onwaiting(){return x.getEventListener(this,"onwaiting")}set onwaiting(t){this[y].set("onwaiting",t);}get onwheel(){return x.getEventListener(this,"onwheel")}set onwheel(t){this[y].set("onwheel",t);}get ownerSVGElement(){let t=this[$];for(;t;){if(t[mt]==="svg")return t;t=t[$];}return null}get viewportElement(){return this.ownerSVGElement}get dataset(){return this.#t??=new vc(b,this)}get style(){return this[Me]||(this[Me]=new fo(b,this[m],{element:this})),this[Me]}get tabIndex(){let t=this.getAttribute("tabindex");return t!==null?Number(t):-1}set tabIndex(t){t===-1?this.removeAttribute("tabindex"):this.setAttribute("tabindex",String(t));}blur(){Vl.blur(this);}focus(){Vl.focus(this);}};chunkBUNLC3II_cjs.h();var mh=class{observe(){}unobserve(){}disconnect(){}};chunkBUNLC3II_cjs.h();var jl=class extends Dt{width=1024;height=768;availWidth=1024;availHeight=768;colorDepth=24;pixelDepth=24;onchange=null};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var fu=class extends jl{availLeft=0;availTop=0;left=0;top=0;isPrimary=true;isInternal=true;devicePixelRatio=1;label=""};var Rc=class extends Dt{currentScreen;screens;oncurrentscreenchange=null;onscreenschange=null;constructor(){super();let t=new fu;this.currentScreen=t,this.screens=[t];}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Te=class{static compareBoundaryPointsPosition(t,e){if(t.node===e.node)return t.offset===e.offset?0:t.offset<e.offset?-1:1;if(kt.isFollowing(t.node,e.node))return this.compareBoundaryPointsPosition(e,t)===-1?1:-1;if(kt.isInclusiveAncestor(t.node,e.node)){let r=e.node;for(;r[$]!==t.node;)r=r[$];if(r[$][K].indexOf(r)<t.offset)return 1}return -1}static validateBoundaryPoint(t){if(t.node[V]===L.documentTypeNode)throw new ye("DocumentType Node can't be used as boundary point.",C.invalidNodeTypeError);if(t.offset>kt.getNodeLength(t.node))throw new ye("Offset out of bound.",C.indexSizeError)}static isContained(t,e){return this.compareBoundaryPointsPosition({node:t,offset:0},{node:e.startContainer,offset:e.startOffset})===1&&this.compareBoundaryPointsPosition({node:t,offset:kt.getNodeLength(t)},{node:e.endContainer,offset:e.endOffset})===-1}static isPartiallyContained(t,e){return kt.isInclusiveAncestor(t,e.startContainer)&&!kt.isInclusiveAncestor(t,e.endContainer)||!kt.isInclusiveAncestor(t,e.startContainer)&&kt.isInclusiveAncestor(t,e.endContainer)}};chunkBUNLC3II_cjs.h();var Mx;(function(o){o[o.forwards=1]="forwards",o[o.backwards=-1]="backwards",o[o.directionless=0]="directionless";})(Mx||(Mx={}));var hi=Mx;var bu=class{#t;#e=null;#r=hi.directionless;constructor(t){this.#t=t;}get rangeCount(){return this.#e?1:0}get isCollapsed(){return this.#e===null||this.#e.collapsed}get type(){if(this.#e){if(this.#e.collapsed)return "Caret"}else return "None";return "Range"}get anchorNode(){return this.#e?this.#r===hi.forwards?this.#e.startContainer:this.#e.endContainer:null}get anchorOffset(){return this.#e?this.#r===hi.forwards?this.#e.startOffset:this.#e.endOffset:0}get baseNode(){return this.anchorNode}get baseOffset(){return this.anchorOffset}get focusNode(){return this.#e?this.#r===hi.forwards?this.#e.endContainer:this.#e.startContainer:null}get focusOffset(){return this.#e?this.#r===hi.forwards?this.#e.endOffset:this.#e.startOffset:0}get extentNode(){return this.focusNode}get extentOffset(){return this.focusOffset}addRange(t){if(!t)throw new this.#t[m].TypeError("Failed to execute addRange on Selection. Parameter 1 is not of type Range.");!this.#e&&t[k]===this.#t&&this.#o(t);}getRangeAt(t){if(!this.#e||t!==0)throw new this.#t[m].DOMException("Invalid range index.",C.indexSizeError);return this.#e}removeRange(t){if(this.#e!==t)throw new this.#t[m].DOMException("Invalid range.",C.notFoundError);this.#o(null);}removeAllRanges(){this.#o(null);}empty(){this.removeAllRanges();}collapse(t,e){if(t===null){this.removeAllRanges();return}if(t[V]===L.documentTypeNode)throw new this.#t[m].DOMException("DocumentType Node can't be used as boundary point.",C.invalidNodeTypeError);if(e>kt.getNodeLength(t))throw new this.#t[m].DOMException("Invalid range index.",C.indexSizeError);if(t!==this.#t&&t[k]!==this.#t)return;let r=new this.#t[m].Range;r[W].node=t,r[W].offset=e,r[q].node=t,r[q].offset=e,this.#o(r);}setPosition(t,e){this.collapse(t,e);}collapseToEnd(){if(this.#e===null)throw new this.#t[m].DOMException("There is no selection to collapse.",C.invalidStateError);let{node:t,offset:e}=this.#e[q],r=new this.#t[m].Range;r[W].node=t,r[W].offset=e,r[q].node=t,r[q].offset=e,this.#o(r);}collapseToStart(){if(!this.#e)throw new this.#t[m].DOMException("There is no selection to collapse.",C.invalidStateError);let{node:t,offset:e}=this.#e[W],r=new this.#t[m].Range;r[W].node=t,r[W].offset=e,r[q].node=t,r[q].offset=e,this.#o(r);}containsNode(t,e=false){if(!this.#e||t[k]!==this.#t)return false;let r=Te.compareBoundaryPointsPosition(this.#e[W],{node:t,offset:0})===-1,n=Te.compareBoundaryPointsPosition(this.#e[q],{node:t,offset:kt.getNodeLength(t)})===1;return e?r||n:r&&n}deleteFromDocument(){this.#e&&this.#e.deleteContents();}extend(t,e){if(t!==this.#t&&t[k]!==this.#t)return;if(!this.#e)throw new this.#t[m].DOMException("There is no selection to extend.",C.invalidStateError);let r=this.anchorNode,n=this.anchorOffset,i=new this.#t[m].Range;i[W].node=t,i[W].offset=0,i[q].node=t,i[q].offset=0,t[k]!==this.#e[k]?(i[W].offset=e,i[q].offset=e):Te.compareBoundaryPointsPosition({node:r,offset:n},{node:t,offset:e})<=0?(i[W].node=r,i[W].offset=n,i[q].node=t,i[q].offset=e):(i[W].node=t,i[W].offset=e,i[q].node=r,i[q].offset=n),this.#o(i),this.#r=Te.compareBoundaryPointsPosition({node:t,offset:e},{node:r,offset:n})===-1?hi.backwards:hi.forwards;}selectAllChildren(t){if(t[V]===L.documentTypeNode)throw new this.#t[m].DOMException("DocumentType Node can't be used as boundary point.",C.invalidNodeTypeError);if(t!==this.#t&&t[k]!==this.#t)return;let e=t[K].length,r=new this.#t[m].Range;r[W].node=t,r[W].offset=0,r[q].node=t,r[q].offset=e,this.#o(r);}setBaseAndExtent(t,e,r,n){if(e>kt.getNodeLength(t)||n>kt.getNodeLength(r))throw new this.#t[m].DOMException("Invalid anchor or focus offset.",C.indexSizeError);if(t!==this.#t&&t[k]!==this.#t||r!==this.#t&&r[k]!==this.#t)return;let i={node:t,offset:e},s={node:r,offset:n},l=new this.#t[m].Range;Te.compareBoundaryPointsPosition(i,s)===-1?(l[W]=i,l[q]=s):(l[W]=s,l[q]=i),this.#o(l),this.#r=Te.compareBoundaryPointsPosition(s,i)===-1?hi.backwards:hi.forwards;}toString(){return this.#e?this.#e.toString():""}#o(t){let e=this.#e;this.#e=t,this.#r=t===null?hi.directionless:hi.forwards,e!==this.#e&&this.#t.dispatchEvent(new M("selectionchange"));}};chunkBUNLC3II_cjs.h();var gu=class o{[_t]={};constructor(){let t=this[_t],e=new Re(this,[o]);return new Proxy(this,{get:(r,n)=>{if(n in r||typeof n=="symbol")return e.bind(n),r[n];if(n in t)return t[n]},set(r,n,i){return e.bind(n),n in r||typeof n=="symbol"||(t[String(n)]=String(i)),true},deleteProperty(r,n){return n in t?(delete t[String(n)],true):false},ownKeys(){return Object.keys(t)},has(r,n){return n in r||n in t},defineProperty(r,n,i){return e.preventBinding(n),n in r?(Object.defineProperty(r,n,i),true):i.value!==void 0?(t[String(n)]=String(i.value),true):false},getOwnPropertyDescriptor(r,n){if(n in r)return;let i=t[String(n)];if(i!==void 0)return {value:i,writable:true,enumerable:true,configurable:true}}})}get length(){return Object.keys(this[_t]).length}key(t){let e=Object.keys(this[_t])[t];return e!==void 0?e:null}setItem(t,e){this[_t][t]=String(e);}getItem(t){return this[_t][t]!==void 0?this[_t][t]:null}removeItem(t){delete this[_t][t];}clear(){let t=this[_t];for(let e of Object.keys(t))delete t[e];}};chunkBUNLC3II_cjs.h();var Ce={FILTER_ACCEPT:1,FILTER_REJECT:2,FILTER_SKIP:3,SHOW_ALL:-1,SHOW_ELEMENT:1,SHOW_ATTRIBUTE:2,SHOW_TEXT:4,SHOW_CDATA_SECTION:8,SHOW_ENTITY_REFERENCE:16,SHOW_ENTITY:32,SHOW_PROCESSING_INSTRUCTION:64,SHOW_COMMENT:128,SHOW_DOCUMENT:256,SHOW_DOCUMENT_TYPE:512,SHOW_DOCUMENT_FRAGMENT:1024,SHOW_NOTATION:2048};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Jk={1:Ce.SHOW_ELEMENT,2:Ce.SHOW_ATTRIBUTE,3:Ce.SHOW_TEXT,4:Ce.SHOW_CDATA_SECTION,5:Ce.SHOW_ENTITY_REFERENCE,6:Ce.SHOW_PROCESSING_INSTRUCTION,7:Ce.SHOW_PROCESSING_INSTRUCTION,8:Ce.SHOW_COMMENT,9:Ce.SHOW_DOCUMENT,10:Ce.SHOW_DOCUMENT_TYPE,11:Ce.SHOW_DOCUMENT_FRAGMENT,12:Ce.SHOW_NOTATION};var Dc;(function(o){o.first="first",o.last="last";})(Dc||(Dc={}));var Oc;(function(o){o.next="next",o.previous="previous";})(Oc||(Oc={}));var Ws=class{root;whatToShow=-1;filter=null;#t=null;constructor(t,e=-1,r=null){if(!(t instanceof xt))throw new ye("Parameter 1 was not of type Node.");this.root=t,this.whatToShow=e,this.filter=r,this.#t=t;}get currentNode(){return this.#t}set currentNode(t){if(!(t instanceof xt))throw new this.root[m].TypeError("Failed to set the 'currentNode' property on 'TreeWalker': Failed to convert value to 'Node'.");this.#t=t;}parentNode(){let t=this.#t;for(;t!==null&&t!==this.root;)if(t=t.parentNode,t!==null&&this[Ln](t)===Ce.FILTER_ACCEPT)return this.#t=t,this.#t;return null}firstChild(){return this.#e(Dc.first)}lastChild(){return this.#e(Dc.last)}nextSibling(){return this.#r(Oc.next)}previousSibling(){return this.#r(Oc.previous)}previousNode(){let t=this.#t;for(;t!==this.root;){let e=t?.previousSibling||null;for(;e!==null;){let r=e,n=this[Ln](r);for(;n!==Ce.FILTER_REJECT&&r[K].length;)r=r.lastChild,n=this[Ln](r);if(n===Ce.FILTER_ACCEPT)return this.#t=r,r;e=r.previousSibling;}if(t===this.root||t.parentNode===null)return null;if(t=t.parentNode,this[Ln](t)===Ce.FILTER_ACCEPT)return this.#t=t,t}return null}nextNode(){let t=this.#t,e=Ce.FILTER_ACCEPT;if(t===null)return null;for(;;){for(;e!==Ce.FILTER_REJECT&&t[K].length;)if(t=t.firstChild,e=this[Ln](t),e===Ce.FILTER_ACCEPT)return this.#t=t,t;for(;t!==null;){if(t===this.root)return null;let r=t.nextSibling;if(r!==null){t=r;break}t=t.parentNode;}if(t===null)return null;if(e=this[Ln](t),e===Ce.FILTER_ACCEPT)return this.#t=t,t}}[Ln](t){let e=Jk[t.nodeType];return e&&(this.whatToShow&e)==0?Ce.FILTER_SKIP:typeof this.filter=="function"?this.filter(t):this.filter?this.filter.acceptNode(t):Ce.FILTER_ACCEPT}#e(t){let e=this.#t;if(!e)return null;for(e=t===Dc.first?e.firstChild:e.lastChild;e!==null;){let r=this[Ln](e);if(r===Ce.FILTER_ACCEPT)return this.#t=e,e;if(r===Ce.FILTER_SKIP){let n=t===Dc.first?e.firstChild:e.lastChild;if(n!==null){e=n;continue}}for(;e!==null;){let n=t===Dc.first?e.nextSibling:e.previousSibling;if(n!==null){e=n;break}let i=e.parentNode;if(i===null||i===this.root||i===this.#t)return null;e=i;}}return null}#r(t){let e=this.#t;if(!e||e===this.root)return null;for(;;){let r=t===Oc.next?e.nextSibling:e.previousSibling;for(;r!==null;){let n=r,i=this[Ln](n);if(i===Ce.FILTER_ACCEPT)return this.#t=n,n;r=t===Oc.next?n.firstChild:n.lastChild,(i===Ce.FILTER_REJECT||r===null)&&(r=t===Oc.next?n.nextSibling:n.previousSibling);}if(e=e.parentNode,e===null||e===this.root||this[Ln](e)===Ce.FILTER_ACCEPT)return null}}};var Su=class{#t;#e=-1;#r=null;#o;#n=true;constructor(t,e=-1,r=null){this.#t=t,this.#e=e,this.#r=r,this.#o=new Ws(t,e,r);}get root(){return this.#t}get whatToShow(){return this.#e}get filter(){return this.#r}nextNode(){return this.#n?(this.#n=false,this.#o[Ln](this.#t)!==Ce.FILTER_ACCEPT?this.#o.nextNode():this.#t):this.#o.nextNode()}previousNode(){return this.#o.previousNode()}};chunkBUNLC3II_cjs.h();var hh=class{serializeToString(t){return this.#t(t)}#t(t,e=null,r=null){switch(t[V]){case L.elementNode:let n=t,i=n[mt],s="",l=this.#e(n,r),a=n[st]===Xt.html?n[$t]:this.#r(n,l),u=`${a?a+":":""}${i}`,c=a?e:n[st]||e,h=this.#o(n,a,e,r),f=c===Xt.html&&i==="template"?t.content[K]:t[K];for(let Q of f)s+=this.#t(Q,c,l);return !s&&c===Xt.html&&Sr[i.toLowerCase()]?.contentModel===z.noDescendants?`<${u}${h} />`:!s&&c!==Xt.html?`<${u}${h}/>`:`<${u}${h}>${s}</${u}>`;case xt.DOCUMENT_FRAGMENT_NODE:case xt.DOCUMENT_NODE:let d="";t[Da]&&(d+=this.#t(t[Da],e,new Map(r)));for(let Q of t[K])d+=this.#t(Q,e,new Map(r));return d;case L.commentNode:return `<!--${t.textContent}-->`;case L.processingInstructionNode:return `<?${t.target} ${t.textContent}?>`;case L.textNode:let g=t.parentElement;return g&&Sr[g[mt]]?.contentModel===z.rawText?t.textContent:Je.encodeTextContent(t.textContent);case L.documentTypeNode:let P=t,A=P.publicId?" PUBLIC":P.systemId?" SYSTEM":"",v=P.publicId?` "${P.publicId}"`:"",H=P.systemId?` "${P.systemId}"`:"";return `<!DOCTYPE ${P.name}${A}${v}${H}>`}return ""}#e(t,e){let r=new Map(e);for(let n of t[Tt][J].values())n[st]===Xt.xmlns&&n[$t]&&r.set(n[ot],n[mt]);return r}#r(t,e){if(t[$t]&&!t[st])throw new Error("Element has a prefix but no namespace.");if(!t[$t]||!e)return null;let r=e.get(t[st]);if(r)return r;let n=new Set(e.values());if(n.has(t[$t])){let i=1;for(;n.has("n"+i);)i++;return e.set(t[st],"n"+i),"n"+i}return e.set(t[st],t[$t]),t[$t]}#o(t,e,r,n){let i="",s="",l=new Set;for(let a of t[Tt][J].values())a[st]===Xt.xmlns?e&&a[mt]===e&&t[st]?(s+=` xmlns:${e}="${Je.encodeXMLAttributeValue(t[st])}"`,l.add(t[st])):!e&&a[ut]==="xmlns"&&t[st]?(s+=` xmlns="${Je.encodeXMLAttributeValue(t[st])}"`,l.add(t[st])):(s+=` ${a[ut]}="${Je.encodeXMLAttributeValue(a[ot])}"`,l.add(a[ot])):i+=` ${a[ut]}="${Je.encodeXMLAttributeValue(a[ot])}"`;return t[st]&&r!==t[st]&&!l.has(t[st])&&(e&&!n?.has(t[st])?s+=` xmlns:${e}="${Je.encodeXMLAttributeValue(t[st])}"`:!e&&r!==t[st]&&(s+=` xmlns="${Je.encodeXMLAttributeValue(t[st])}"`)),s+i}};chunkBUNLC3II_cjs.h();var Xk=new qx.Script(`
162
- this.ArrayBuffer = globalThis.ArrayBuffer;
163
- this.Boolean = globalThis.Boolean;
164
- this.DataView = globalThis.DataView;
165
- this.Date = globalThis.Date;
166
- this.Error = globalThis.Error;
167
- this.EvalError = globalThis.EvalError;
168
- this.Float32Array = globalThis.Float32Array;
169
- this.Float64Array = globalThis.Float64Array;
170
- this.GLOBAL = globalThis.GLOBAL;
171
- this.Infinity = globalThis.Infinity;
172
- this.Int16Array = globalThis.Int16Array;
173
- this.Int32Array = globalThis.Int32Array;
174
- this.Int8Array = globalThis.Int8Array;
175
- this.Intl = globalThis.Intl;
176
- this.JSON = globalThis.JSON;
177
- this.Map = globalThis.Map;
178
- this.Math = globalThis.Math;
179
- this.NaN = globalThis.NaN;
180
- this.Number = globalThis.Number;
181
- this.Promise = globalThis.Promise;
182
- this.RangeError = globalThis.RangeError;
183
- this.ReferenceError = globalThis.ReferenceError;
184
- this.RegExp = globalThis.RegExp;
185
- this.Reflect = globalThis.Reflect;
186
- this.Set = globalThis.Set;
187
- this.Symbol = globalThis.Symbol;
188
- this.SyntaxError = globalThis.SyntaxError;
189
- this.String = globalThis.String;
190
- this.TypeError = globalThis.TypeError;
191
- this.URIError = globalThis.URIError;
192
- this.Uint16Array = globalThis.Uint16Array;
193
- this.Uint32Array = globalThis.Uint32Array;
194
- this.Uint8Array = globalThis.Uint8Array;
195
- this.Uint8ClampedArray = globalThis.Uint8ClampedArray;
196
- this.WeakMap = globalThis.WeakMap;
197
- this.WeakSet = globalThis.WeakSet;
198
- this.decodeURI = globalThis.decodeURI;
199
- this.decodeURIComponent = globalThis.decodeURIComponent;
200
- this.encodeURI = globalThis.encodeURI;
201
- this.encodeURIComponent = globalThis.encodeURIComponent;
202
- this.eval = globalThis.eval;
203
- this.escape = globalThis.escape;
204
- this.global = globalThis.global;
205
- this.isFinite = globalThis.isFinite;
206
- this.isNaN = globalThis.isNaN;
207
- this.parseFloat = globalThis.parseFloat;
208
- this.parseInt = globalThis.parseInt;
209
- this.root = globalThis.root;
210
- this.undefined = globalThis.undefined;
211
- this.unescape = globalThis.unescape;
212
- this.AbortController = globalThis.AbortController;
213
- this.AbortSignal = globalThis.AbortSignal;
214
- this.Array = globalThis.Array;
215
- this.Object = globalThis.Object;
216
- this.Function = globalThis.Function;
217
- `);chunkBUNLC3II_cjs.h();var Ef=class{static openPage(t,e){let r=this.getWindowFeatures(e?.features||""),n=e?.target!==void 0?String(e.target):null,i=new url.URL(t.window.location.href),s=Mo.getRelativeURL(t,e?.url),l=t.window,a;if(t.window!==l)return null;switch(n){case "_self":a=t;break;case "_top":a=t.page.mainFrame;break;case "_parent":a=t.parentFrame??t;break;default:a=t.page.context.newPage().mainFrame,a[Co]=t;break}if(a.goto(s.href,{referrer:r.noreferrer?void 0:t.window.location.origin,referrerPolicy:r.noreferrer?"no-referrer":void 0}).catch(c=>{a.page.console.error(c);}),s.protocol==="javascript:")return a.window;if(a===t&&t.window===l)return null;r.popup&&n!=="_self"&&n!=="_top"&&n!=="_parent"&&(a[hl]=true,(r?.width||r?.height)&&a.page.setViewport({width:r?.width,height:r?.height}),r?.left&&(a.window.screenLeft=r.left,a.window.screenX=r.left),r?.top&&(a.window.screenTop=r.top,a.window.screenY=r.top)),n&&n!=="_self"&&n!=="_top"&&n!=="_parent"&&n!=="_blank"&&(a.window.name=n);let u=In.isCORS(i,a.url);return !r.noopener&&!r.noreferrer&&t.window&&a[Co]&&a.window!==t.window&&(a[Xn]=u?new Gl(t.window):t.window),r.noopener||r.noreferrer?null:u?new Gl(a.window,t.window):a.window}static getWindowFeatures(t){let e=t.split(","),r={popup:false,width:0,height:0,left:0,top:0,noopener:false,noreferrer:false};for(let n of e){let[i,s]=n.split("=");switch(i){case "popup":r.popup=!s||s==="yes"||s==="1"||s==="true";break;case "width":case "innerWidth":r.width=parseInt(s,10);break;case "height":case "innerHeight":r.height=parseInt(s,10);break;case "left":case "screenX":r.left=parseInt(s,10);break;case "top":case "screenY":r.top=parseInt(s,10);break;case "noopener":r.noopener=true;break;case "noreferrer":r.noreferrer=true;break}}return r}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var vf=class{#t;constructor(t){this.#t=t;}createDocument(t,e,r){if(arguments.length<2)throw new this.#t[m].TypeError(`Failed to execute 'createDocument' on 'DOMImplementation': 2 arguments required, but only ${arguments.length} present.`);switch(e=e===null?"":String(e),e.split(":").pop()){case "svg":case "xml":return new this.#t[m].XMLDocument;default:return new this.#t[m].HTMLDocument}}createHTMLDocument(){return new this.#t[m].HTMLDocument}createDocumentType(t,e,r){let n=Qe.createNode(this.#t,Ds);return n[ut]=t,n[dl]=e,n[fl]=r,n}};chunkBUNLC3II_cjs.h();var Ix;(function(o){o.hidden="hidden",o.visible="visible",o.prerender="prerender";})(Ix||(Ix={}));var Rx=Ix;var EF=/^[a-z][a-z0-9-]+$/,zs=class extends xt{[Nr]=null;[Ze]=null;[pl]=null;[Tn]=null;[$e]=this;[Xi]=true;[Zi]=false;[V]=L.documentNode;[ct]=true;[yl]=[];[rS]=new vf(this);[va]=RS.interactive;[qr]="";[lo]=null;[vp]=null;[ri]=[];[k]=null;[Li]=new Map;[_e]="text/html";[Da]=null;[mo]=new Map;[y]=new Map;[wa]=null;get onreadystatechange(){return this[y].get("onreadystatechange")??null}set onreadystatechange(t){this[y].set("onreadystatechange",t);}get onpointerlockchange(){return this[y].get("onpointerlockchange")??null}set onpointerlockchange(t){this[y].set("onpointerlockchange",t);}get onpointerlockerror(){return this[y].get("onpointerlockerror")??null}set onpointerlockerror(t){this[y].set("onpointerlockerror",t);}get onbeforecopy(){return this[y].get("onbeforecopy")??null}set onbeforecopy(t){this[y].set("onbeforecopy",t);}get onbeforecut(){return this[y].get("onbeforecut")??null}set onbeforecut(t){this[y].set("onbeforecut",t);}get onbeforepaste(){return this[y].get("onbeforepaste")??null}set onbeforepaste(t){this[y].set("onbeforepaste",t);}get onfreeze(){return this[y].get("onfreeze")??null}set onfreeze(t){this[y].set("onfreeze",t);}get onprerenderingchange(){return this[y].get("onprerenderingchange")??null}set onprerenderingchange(t){this[y].set("onprerenderingchange",t);}get onresume(){return this[y].get("onresume")??null}set onresume(t){this[y].set("onresume",t);}get onsearch(){return this[y].get("onsearch")??null}set onsearch(t){this[y].set("onsearch",t);}get onvisibilitychange(){return this[y].get("onvisibilitychange")??null}set onvisibilitychange(t){this[y].set("onvisibilitychange",t);}get onfullscreenchange(){return this[y].get("onfullscreenchange")??null}set onfullscreenchange(t){this[y].set("onfullscreenchange",t);}get onfullscreenerror(){return this[y].get("onfullscreenerror")??null}set onfullscreenerror(t){this[y].set("onfullscreenerror",t);}get onwebkitfullscreenchange(){return this[y].get("onwebkitfullscreenchange")??null}set onwebkitfullscreenchange(t){this[y].set("onwebkitfullscreenchange",t);}get onwebkitfullscreenerror(){return this[y].get("onwebkitfullscreenerror")??null}set onwebkitfullscreenerror(t){this[y].set("onwebkitfullscreenerror",t);}get onbeforexrselect(){return this[y].get("onbeforexrselect")??null}set onbeforexrselect(t){this[y].set("onbeforexrselect",t);}get onabort(){return this[y].get("onabort")??null}set onabort(t){this[y].set("onabort",t);}get onbeforeinput(){return this[y].get("onbeforeinput")??null}set onbeforeinput(t){this[y].set("onbeforeinput",t);}get onbeforematch(){return this[y].get("onbeforematch")??null}set onbeforematch(t){this[y].set("onbeforematch",t);}get onbeforetoggle(){return this[y].get("onbeforetoggle")??null}set onbeforetoggle(t){this[y].set("onbeforetoggle",t);}get onblur(){return this[y].get("onblur")??null}set onblur(t){this[y].set("onblur",t);}get oncancel(){return this[y].get("oncancel")??null}set oncancel(t){this[y].set("oncancel",t);}get oncanplay(){return this[y].get("oncanplay")??null}set oncanplay(t){this[y].set("oncanplay",t);}get oncanplaythrough(){return this[y].get("oncanplaythrough")??null}set oncanplaythrough(t){this[y].set("oncanplaythrough",t);}get onchange(){return this[y].get("onchange")??null}set onchange(t){this[y].set("onchange",t);}get onclick(){return this[y].get("onclick")??null}set onclick(t){this[y].set("onclick",t);}get onclose(){return this[y].get("onclose")??null}set onclose(t){this[y].set("onclose",t);}get oncontentvisibilityautostatechange(){return this[y].get("oncontentvisibilityautostatechange")??null}set oncontentvisibilityautostatechange(t){this[y].set("oncontentvisibilityautostatechange",t);}get oncontextlost(){return this[y].get("oncontextlost")??null}set oncontextlost(t){this[y].set("oncontextlost",t);}get oncontextmenu(){return this[y].get("oncontextmenu")??null}set oncontextmenu(t){this[y].set("oncontextmenu",t);}get oncontextrestored(){return this[y].get("oncontextrestored")??null}set oncontextrestored(t){this[y].set("oncontextrestored",t);}get oncuechange(){return this[y].get("oncuechange")??null}set oncuechange(t){this[y].set("oncuechange",t);}get ondblclick(){return this[y].get("ondblclick")??null}set ondblclick(t){this[y].set("ondblclick",t);}get ondrag(){return this[y].get("ondrag")??null}set ondrag(t){this[y].set("ondrag",t);}get ondragend(){return this[y].get("ondragend")??null}set ondragend(t){this[y].set("ondragend",t);}get ondragenter(){return this[y].get("ondragenter")??null}set ondragenter(t){this[y].set("ondragenter",t);}get ondragleave(){return this[y].get("ondragleave")??null}set ondragleave(t){this[y].set("ondragleave",t);}get ondragover(){return this[y].get("ondragover")??null}set ondragover(t){this[y].set("ondragover",t);}get ondragstart(){return this[y].get("ondragstart")??null}set ondragstart(t){this[y].set("ondragstart",t);}get ondrop(){return this[y].get("ondrop")??null}set ondrop(t){this[y].set("ondrop",t);}get ondurationchange(){return this[y].get("ondurationchange")??null}set ondurationchange(t){this[y].set("ondurationchange",t);}get onemptied(){return this[y].get("onemptied")??null}set onemptied(t){this[y].set("onemptied",t);}get onended(){return this[y].get("onended")??null}set onended(t){this[y].set("onended",t);}get onerror(){return this[y].get("onerror")??null}set onerror(t){this[y].set("onerror",t);}get onfocus(){return this[y].get("onfocus")??null}set onfocus(t){this[y].set("onfocus",t);}get onformdata(){return this[y].get("onformdata")??null}set onformdata(t){this[y].set("onformdata",t);}get oninput(){return this[y].get("oninput")??null}set oninput(t){this[y].set("oninput",t);}get oninvalid(){return this[y].get("oninvalid")??null}set oninvalid(t){this[y].set("oninvalid",t);}get onkeydown(){return this[y].get("onkeydown")??null}set onkeydown(t){this[y].set("onkeydown",t);}get onkeypress(){return this[y].get("onkeypress")??null}set onkeypress(t){this[y].set("onkeypress",t);}get onkeyup(){return this[y].get("onkeyup")??null}set onkeyup(t){this[y].set("onkeyup",t);}get onload(){return this[y].get("onload")??null}set onload(t){this[y].set("onload",t);}get onloadeddata(){return this[y].get("onloadeddata")??null}set onloadeddata(t){this[y].set("onloadeddata",t);}get onloadedmetadata(){return this[y].get("onloadedmetadata")??null}set onloadedmetadata(t){this[y].set("onloadedmetadata",t);}get onloadstart(){return this[y].get("onloadstart")??null}set onloadstart(t){this[y].set("onloadstart",t);}get onmousedown(){return this[y].get("onmousedown")??null}set onmousedown(t){this[y].set("onmousedown",t);}get onmouseenter(){return this[y].get("onmouseenter")??null}set onmouseenter(t){this[y].set("onmouseenter",t);}get onmouseleave(){return this[y].get("onmouseleave")??null}set onmouseleave(t){this[y].set("onmouseleave",t);}get onmousemove(){return this[y].get("onmousemove")??null}set onmousemove(t){this[y].set("onmousemove",t);}get onmouseout(){return this[y].get("onmouseout")??null}set onmouseout(t){this[y].set("onmouseout",t);}get onmouseover(){return this[y].get("onmouseover")??null}set onmouseover(t){this[y].set("onmouseover",t);}get onmouseup(){return this[y].get("onmouseup")??null}set onmouseup(t){this[y].set("onmouseup",t);}get onmousewheel(){return this[y].get("onmousewheel")??null}set onmousewheel(t){this[y].set("onmousewheel",t);}get onpause(){return this[y].get("onpause")??null}set onpause(t){this[y].set("onpause",t);}get onplay(){return this[y].get("onplay")??null}set onplay(t){this[y].set("onplay",t);}get onplaying(){return this[y].get("onplaying")??null}set onplaying(t){this[y].set("onplaying",t);}get onprogress(){return this[y].get("onprogress")??null}set onprogress(t){this[y].set("onprogress",t);}get onratechange(){return this[y].get("onratechange")??null}set onratechange(t){this[y].set("onratechange",t);}get onreset(){return this[y].get("onreset")??null}set onreset(t){this[y].set("onreset",t);}get onresize(){return this[y].get("onresize")??null}set onresize(t){this[y].set("onresize",t);}get onscroll(){return this[y].get("onscroll")??null}set onscroll(t){this[y].set("onscroll",t);}get onsecuritypolicyviolation(){return this[y].get("onsecuritypolicyviolation")??null}set onsecuritypolicyviolation(t){this[y].set("onsecuritypolicyviolation",t);}get onseeked(){return this[y].get("onseeked")??null}set onseeked(t){this[y].set("onseeked",t);}get onseeking(){return this[y].get("onseeking")??null}set onseeking(t){this[y].set("onseeking",t);}get onselect(){return this[y].get("onselect")??null}set onselect(t){this[y].set("onselect",t);}get onslotchange(){return this[y].get("onslotchange")??null}set onslotchange(t){this[y].set("onslotchange",t);}get onstalled(){return this[y].get("onstalled")??null}set onstalled(t){this[y].set("onstalled",t);}get onsubmit(){return this[y].get("onsubmit")??null}set onsubmit(t){this[y].set("onsubmit",t);}get onsuspend(){return this[y].get("onsuspend")??null}set onsuspend(t){this[y].set("onsuspend",t);}get ontimeupdate(){return this[y].get("ontimeupdate")??null}set ontimeupdate(t){this[y].set("ontimeupdate",t);}get ontoggle(){return this[y].get("ontoggle")??null}set ontoggle(t){this[y].set("ontoggle",t);}get onvolumechange(){return this[y].get("onvolumechange")??null}set onvolumechange(t){this[y].set("onvolumechange",t);}get onwaiting(){return this[y].get("onwaiting")??null}set onwaiting(t){this[y].set("onwaiting",t);}get onwebkitanimationend(){return this[y].get("onwebkitanimationend")??null}set onwebkitanimationend(t){this[y].set("onwebkitanimationend",t);}get onwebkitanimationiteration(){return this[y].get("onwebkitanimationiteration")??null}set onwebkitanimationiteration(t){this[y].set("onwebkitanimationiteration",t);}get onwebkitanimationstart(){return this[y].get("onwebkitanimationstart")??null}set onwebkitanimationstart(t){this[y].set("onwebkitanimationstart",t);}get onwebkittransitionend(){return this[y].get("onwebkittransitionend")??null}set onwebkittransitionend(t){this[y].set("onwebkittransitionend",t);}get onwheel(){return this[y].get("onwheel")??null}set onwheel(t){this[y].set("onwheel",t);}get onauxclick(){return this[y].get("onauxclick")??null}set onauxclick(t){this[y].set("onauxclick",t);}get ongotpointercapture(){return this[y].get("ongotpointercapture")??null}set ongotpointercapture(t){this[y].set("ongotpointercapture",t);}get onlostpointercapture(){return this[y].get("onlostpointercapture")??null}set onlostpointercapture(t){this[y].set("onlostpointercapture",t);}get onpointerdown(){return this[y].get("onpointerdown")??null}set onpointerdown(t){this[y].set("onpointerdown",t);}get onpointermove(){return this[y].get("onpointermove")??null}set onpointermove(t){this[y].set("onpointermove",t);}get onpointerrawupdate(){return this[y].get("onpointerrawupdate")??null}set onpointerrawupdate(t){this[y].set("onpointerrawupdate",t);}get onpointerup(){return this[y].get("onpointerup")??null}set onpointerup(t){this[y].set("onpointerup",t);}get onpointercancel(){return this[y].get("onpointercancel")??null}set onpointercancel(t){this[y].set("onpointercancel",t);}get onpointerover(){return this[y].get("onpointerover")??null}set onpointerover(t){this[y].set("onpointerover",t);}get onpointerout(){return this[y].get("onpointerout")??null}set onpointerout(t){this[y].set("onpointerout",t);}get onpointerenter(){return this[y].get("onpointerenter")??null}set onpointerenter(t){this[y].set("onpointerenter",t);}get onpointerleave(){return this[y].get("onpointerleave")??null}set onpointerleave(t){this[y].set("onpointerleave",t);}get onselectstart(){return this[y].get("onselectstart")??null}set onselectstart(t){this[y].set("onselectstart",t);}get onselectionchange(){return this[y].get("onselectionchange")??null}set onselectionchange(t){this[y].set("onselectionchange",t);}get onanimationend(){return this[y].get("onanimationend")??null}set onanimationend(t){this[y].set("onanimationend",t);}get onanimationiteration(){return this[y].get("onanimationiteration")??null}set onanimationiteration(t){this[y].set("onanimationiteration",t);}get onanimationstart(){return this[y].get("onanimationstart")??null}set onanimationstart(t){this[y].set("onanimationstart",t);}get ontransitionrun(){return this[y].get("ontransitionrun")??null}set ontransitionrun(t){this[y].set("ontransitionrun",t);}get ontransitionstart(){return this[y].get("ontransitionstart")??null}set ontransitionstart(t){this[y].set("ontransitionstart",t);}get ontransitionend(){return this[y].get("ontransitionend")??null}set ontransitionend(t){this[y].set("ontransitionend",t);}get ontransitioncancel(){return this[y].get("ontransitioncancel")??null}set ontransitioncancel(t){this[y].set("ontransitioncancel",t);}get oncopy(){return this[y].get("oncopy")??null}set oncopy(t){this[y].set("oncopy",t);}get oncut(){return this[y].get("oncut")??null}set oncut(t){this[y].set("oncut",t);}get onpaste(){return this[y].get("onpaste")??null}set onpaste(t){this[y].set("onpaste",t);}get onscrollend(){return this[y].get("onscrollend")??null}set onscrollend(t){this[y].set("onscrollend",t);}get onscrollsnapchange(){return this[y].get("onscrollsnapchange")??null}set onscrollsnapchange(t){this[y].set("onscrollsnapchange",t);}get onscrollsnapchanging(){return this[y].get("onscrollsnapchanging")??null}set onscrollsnapchanging(t){this[y].set("onscrollsnapchanging",t);}get adoptedStyleSheets(){return this[yl]}set adoptedStyleSheets(t){this[yl]=t;}get implementation(){return this[rS]}get readyState(){return this[va]}get referrer(){return this[qr]}get defaultView(){return this[lo]}get children(){if(!this[Nr]){let t=this[St];this[Nr]=new Oe(b,()=>t);}return this[Nr]}get charset(){return this.characterSet}get characterSet(){let t=dt.querySelector(this,"meta[charset]")?.getAttributeNS(null,"charset");return t||"UTF-8"}get title(){let t=de.getElementByTagName(this,"title");return t?t.text.trim():""}set title(t){let e=de.getElementByTagName(this,"title");if(e)e.textContent=t;else {let r=this.createElement("title");r.textContent=t,this.head.appendChild(r);}}get links(){return dt.querySelectorAll(this,"a[href],area[href]")}get forms(){return this[vp]||(this[vp]=de.getElementsByTagName(this,"form")),this[vp]}get childElementCount(){return this[St].length}get firstElementChild(){return this[St][0]??null}get lastElementChild(){let t=this[St];return t[t.length-1]??null}get cookie(){let t=new et(this[m]).getBrowserFrame();return t?Dn.cookiesToString(t.page.context.cookieContainer.getCookies(this[m].location,true)):""}set cookie(t){let e=new et(this[m]).getBrowserFrame();if(!e)return;let r=Dn.stringToCookie(this[m].location,t);r&&e.page.context.cookieContainer.addCookies([r]);}get nodeName(){return "#document"}get documentElement(){return this[St][0]??null}get doctype(){for(let t of this[K])if(t instanceof Ds)return t;return null}get body(){let t=this.documentElement;return t?de.getElementByTagName(t,"body"):null}get head(){let t=this.documentElement;return t?de.getElementByTagName(t,"head"):null}get styleSheets(){let t=dt.querySelectorAll(this,'link[rel="stylesheet"][href],style'),e=[];for(let r of t){let n=r.sheet;n&&e.push(n);}return e}get activeElement(){if(this[Ze]&&!this[Ze][ct]&&(this[Ze]=null),this[Ze]){let t=this[Ze].getRootNode(),e=this[Ze];for(;t!==this;)e=t.host,t=e?e.getRootNode():this;return e}return this[Ze]||this.body||this.documentElement||null}get scrollingElement(){return this.documentElement}get location(){return this[m].location}get scripts(){return this.getElementsByTagName("script")}get baseURI(){let t=de.getElementByTagName(this,"base");return t?t.href:this[m].location.href}get URL(){return this[m].location.href}get documentURI(){return this.URL}get domain(){return this[m].location.hostname}get visibilityState(){return this.defaultView?Rx.visible:Rx.hidden}get hidden(){return !this.defaultView}get currentScript(){return this[Tn]}get contentType(){return this[_e]}append(...t){de.append(this,...t);}prepend(...t){de.prepend(this,...t);}replaceChildren(...t){de.replaceChildren(this,...t);}querySelectorAll(t){return dt.querySelectorAll(this,t)}querySelector(t){return dt.querySelector(this,t)}queryCommandSupported(t){if(!arguments.length)throw new this[m].TypeError("Failed to execute 'queryCommandSupported' on 'Document': 1 argument required, but only 0 present.");return true}getElementsByClassName(t){return de.getElementsByClassName(this,t)}getElementsByTagName(t){return de.getElementsByTagName(this,t)}getElementsByTagNameNS(t,e){return de.getElementsByTagNameNS(this,t,e)}getElementById(t){return de.getElementById(this,t)}getElementsByName(t){return dt.querySelectorAll(this,`[name="${t}"]`)}write(t){if(this[Xi]||this[Zi]){this[Xi]&&(this[Zi]||this.open(),this[Xi]=false);let{documentElement:e,head:r,body:n}=this;(!e||!r||!n)&&this.open(),this[Xi]=false,this[Zi]=false,new Ur(this[m],{evaluateScripts:true}).parse(t,this);}else new Ur(this[m],{evaluateScripts:true}).parse(t,this.body);}open(){this[Zi]=true;for(let s of this[ve].bubbling.keys()){let l=this[ve].bubbling.get(s);if(l)for(let a of l)this.removeEventListener(s,a);}for(let s of this[ve].capturing.keys()){let l=this[ve].capturing.get(s);if(l)for(let a of l)this.removeEventListener(s,a);}let t=this[K];for(;t.length;)this.removeChild(t[0]);let e=this[rS].createDocumentType("html","",""),r=this.createElement("html"),n=this.createElement("body"),i=this.createElement("head");return this.appendChild(e),this.appendChild(r),r.appendChild(i),r.appendChild(n),this}close(){}createElement(t,e){return this.createElementNS(Xt.html,to.asciiLowerCase(String(t)),e)}createElementNS(t,e,r){let n=this[m];if(e=String(e),!e)throw new n.DOMException("Failed to execute 'createElementNS' on 'Document': The qualified name provided is empty.");let i=e.split(":"),s=i[1]??i[0],l=i[1]?i[0]:null;switch(t){case Xt.svg:let a=bf[e.toLowerCase()],u=a&&a.localName===e?n[a.className]:n.SVGElement,c=Qe.createNode(this,u);return c[it]=e,c[mt]=s,c[$t]=l,c[st]=t,c[Ho]=r&&r.is?String(r.is):null,c;case Xt.html:let h=n.customElements[Ti]?.get(r&&r.is?String(r.is):e);if(h){let A=new h.elementClass;return A[it]=to.asciiUpperCase(e),A[mt]=s,A[$t]=l,A[st]=t,A[Ho]=r&&r.is?String(r.is):null,A}let f=Sr[e]?n[Sr[e].className]:null;if(f){let A=Qe.createNode(this,f);return A[it]=to.asciiUpperCase(e),A[mt]=s,A[$t]=l,A[st]=t,A[Ho]=r&&r.is?String(r.is):null,A}let d=e.includes("-")?n.HTMLElement:n.HTMLUnknownElement,g=Qe.createNode(this,d);return g[it]=to.asciiUpperCase(e),g[mt]=s,g[$t]=l,g[st]=t,g[Ho]=r&&r.is?String(r.is):null,g;default:let P=Qe.createNode(this,Wr);return P[it]=e,P[mt]=s,P[$t]=l,P[st]=t,P[Ho]=r&&r.is?String(r.is):null,P}}createTextNode(t){if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'createTextNode' on 'Document': 1 argument required, but only ${arguments.length} present.`);return Qe.createNode(this,this[m].Text,String(t))}createComment(t){if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'createComment' on 'Document': 1 argument required, but only ${arguments.length} present.`);return Qe.createNode(this,this[m].Comment,String(t))}createDocumentFragment(){return Qe.createNode(this,this[m].DocumentFragment)}createNodeIterator(t,e=-1,r=null){return new Su(t,e,r)}createTreeWalker(t,e=-1,r=null){return new Ws(t,e,r)}createEvent(t){return typeof this[m][t]=="function"?new this[m][t]("init"):new M("init")}createAttribute(t){let e=Qe.createNode(this,this[m].Attr),r=to.asciiLowerCase(t),n=r.split(":");return e[ut]=r,e[mt]=n[1]??r,e[$t]=n[1]?n[0]:null,e}createAttributeNS(t,e){let r=Qe.createNode(this,this[m].Attr),n=e.split(":");if(r[st]=t,r[ut]=e,r[mt]=n[1]??e,r[$t]=n[1]?n[0]:null,!t&&r[$t])throw new this[m].DOMException(`Failed to execute 'createAttributeNS' on 'Document': The namespace URI provided ('${t||""}') is not valid for the qualified name provided ('${e}').`,C.namespaceError);return r}importNode(t,e=false){if(!(t instanceof xt))throw new this[m].DOMException("Parameter 1 was not of type Node.");let r=t.cloneNode(e);return this.#t(r),r}createRange(){return new this[m].Range}adoptNode(t){if(!(t instanceof xt))throw new this[m].DOMException("Parameter 1 was not of type Node.");let e=t[$]?t[$].removeChild(t):t;return Object.defineProperty(e,"ownerDocument",{value:this}),e}getSelection(){return this[wa]||(this[wa]=new bu(this)),this[wa]}hasFocus(){return !!this.activeElement}createProcessingInstruction(t,e){if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'createProcessingInstruction' on 'Document': 2 arguments required, but only ${arguments.length} present.`);if(t=String(t),e=String(e),!t||!EF.test(t))throw new this[m].DOMException(`Failed to execute 'createProcessingInstruction' on 'Document': The target provided ('${t}') is not a valid name.`);if(e.includes("?>"))throw new this[m].DOMException("Failed to execute 'createProcessingInstruction' on 'Document': The data provided ('?>') contains '?>'");let r=Qe.createNode(this,this[m].ProcessingInstruction);return r[_t]=e,r[Qr]=t,r}elementFromPoint(t,e){return null}[Mt](){super[Mt](),this[Nr]=null,this[Ze]=null,this[pl]=null,this[Tn]=null,this[lo]=null,this[yl]=[],this[vp]=null,this[ri]=[],this[Li].clear(),this[Da]=null,this[mo].clear(),this[y].clear(),this[wa]=null;}#t(t){t[k]=this;for(let e of t[K])this.#t(e);}};chunkBUNLC3II_cjs.h();var yh=class extends zs{constructor(){super();let t=this.createElement("html"),e=this.createElement("body"),r=this.createElement("head");this.appendChild(t),t.appendChild(r),t.appendChild(e);}[Ot](t,e=false){if(t[V]===L.textNode)throw new this[m].Error("Failed to execute 'appendChild' on 'Node': Nodes of type '#text' may not be inserted inside nodes of type '#document'.");if(t[V]===L.documentFragmentNode)return t;if(t[V]===L.elementNode&&this[St].length!==0)throw new this[m].Error("Failed to execute 'appendChild' on 'Node': Only one element on document allowed.");return super[Ot](t,e)}[uo](t,e,r=false){if(t[V]===L.textNode)throw new this[m].Error("Failed to execute 'insertBefore' on 'Node': Nodes of type '#text' may not be inserted inside nodes of type '#document'.");if(t[V]===L.documentFragmentNode)return t;if(t[V]===L.elementNode&&this[St].length!==0)throw new this[m].Error("Failed to execute 'insertBefore' on 'Node': Only one element on document allowed.");return super[uo](t,e,r)}};chunkBUNLC3II_cjs.h();var dh=class extends zs{[_e]="application/xml"};chunkBUNLC3II_cjs.h();var fh=class extends Wi{[V]=L.textNode;[wr]=null;[Hr]=null;get nodeName(){return "#text"}get wholeText(){if(!this[$])return this[_t];let t="";for(let e=this.previousSibling;kt.isTextNode(e);e=e.previousSibling)t=e.data+t;t+=this[_t];for(let e=this.nextSibling;kt.isTextNode(e);e=e.nextSibling)t+=e.data;return t}get data(){return this[_t]}set data(t){super.data=t,this[wr]&&this[wr][bp](),this[Hr]&&this[Hr][Na]();}splitText(t){let e=this[_t].length;if(t<0||t>e)throw new this[m].DOMException("The index is not in the allowed range.",C.indexSizeError);let r=e-t,n=this.substringData(t,r),i=this[k].createTextNode(n);return this[$]!==null&&this[$].insertBefore(i,this.nextSibling),this.replaceData(t,r,""),i}toString(){return "[object Text]"}[wt](t=false){return super[wt](t)}[Vo](){super[Vo](),this[wr]&&this[wr][bp](),this[Hr]&&this[_t]&&this[Hr][Na]();}[Ji](){this[wr]&&this[wr][bp](),this[Hr]&&this[_t]&&this[Hr][Na](),super[Ji]();}};chunkBUNLC3II_cjs.h();var bh=class extends Wi{[V]=L.commentNode;get nodeName(){return "#comment"}toString(){return "[object Comment]"}[wt](t=false){return super[wt](t)}};chunkBUNLC3II_cjs.h();var gh=class extends Hs{[it]="IMG";[mt]="img";[st]=Xt.html;constructor(t=null,e=null){super(),t!==null&&(this.width=t),e!==null&&(this.height=e);}};chunkBUNLC3II_cjs.h();var Tf=class extends au{[it]="AUDIO";[mt]="audio";[st]=Xt.html;constructor(t=null){super(),t!==null&&(this.src=t);}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Cf=class{target;options;mutationListener;#t;#e;#r;#o=[];#n=false;#i=false;constructor(t){this.options=t.options,this.target=t.target,this.mutationListener={options:t.options,callback:new WeakRef(e=>this.report(e))},this.#t=t.window,this.#e=t.observer,this.#r=t.callback;}report(t){this.#n||(this.#o.push(t),!this.#i&&(this.#t.queueMicrotask(()=>{if(this.#n)return;this.#i=false;let e=this.#o;e?.length>0&&(this.#o=[],this.#r(e,this.#e));}),this.#i=true));}takeRecords(){if(this.#n)return [];let t=this.#o;return this.#o=[],t}destroy(){this.#n||(this.#n=true,this.options=null,this.target=null,this.mutationListener=null,this.#t=null,this.#e=null,this.#r=null,this.#o=null);}};var Sh=class{#t;#e=[];#r=false;constructor(t){if(!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);this.#t=t;}observe(t,e){if(this.#r)return;if(!t)throw new this[m].TypeError(`Failed to execute 'observe' on 'MutationObserver': The first parameter "target" should be of type "Node".`);if(e&&(e.attributeFilter||e.attributeOldValue)){if(e.attributes===void 0&&(e=Object.assign({},e,{attributes:true,attributeFilter:e.attributeFilter,attributeOldValue:e.attributeOldValue})),!e.attributes&&e.attributeOldValue)throw new this[m].TypeError("Failed to execute 'observe' on 'MutationObserver': The options object may only set 'attributeOldValue' to true when 'attributes' is true or not present.");if(!e.attributes&&e.attributeFilter)throw new this[m].TypeError("Failed to execute 'observe' on 'MutationObserver': The options object may only set 'attributeFilter' when 'attributes' is true or not present.")}if(e&&e.characterDataOldValue&&(e.characterData===void 0&&(e=Object.assign({},e,{characterData:true,characterDataOldValue:e.characterDataOldValue})),!e.characterData&&e.characterDataOldValue))throw new this[m].TypeError("Failed to execute 'observe' on 'MutationObserver': The options object may only set 'characterDataOldValue' to true when 'characterData' is true or not present.");if(!e||!e.childList&&!e.attributes&&!e.characterData)throw new this[m].TypeError("Failed to execute 'observe' on 'MutationObserver': The options object must set at least one of 'attributes', 'characterData', or 'childList' to true.");e=Object.assign({},e,{attributeFilter:e.attributeFilter?e.attributeFilter.map(n=>n.toLowerCase()):null});for(let n of this.#e)if(n.target===t){n.options=e;return}let r=new Cf({window:this[m],options:e,callback:this.#t.bind(this),observer:this,target:t});this.#e.push(r),this[m][Ea].includes(this)||this[m][Ea].push(this),t[ju](r.mutationListener);}disconnect(){if(this.#e.length===0)return;for(let r of this.#e)r.target[gp](r.mutationListener),r.destroy();this.#e=[];let t=this[m][Ea],e=t.indexOf(this);e!==-1&&t.splice(e,1);}takeRecords(){let t=[];for(let e of this.#e)t=t.concat(e.takeRecords());return t}[Mt](){this.#r=true,this.disconnect();}};chunkBUNLC3II_cjs.h();var kf=class extends Dt{postMessage(t,e){}start(){}close(){}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var vF=/\/\*[\s\S]*?\*\//gm,Ph=class{#t;constructor(t){this.#t=t;}parseFromString(t){let e=this.#t,r=e[m],n=t.replace(vF,""),i=[],s=/{|}/gm,l=[],a=null,u=0,c;for(;c=s.exec(n);){if(c[0]==="{"){let h=n.substring(u,c.index).trim();if(h[0]==="@"){let f=h.split(" "),d=f[0],g=f.slice(1).join(" ").trim();switch(d){case "@keyframes":case "@-webkit-keyframes":let P=new Ka(b,r,this);P[ho]=d==="@-webkit-keyframes"?"-webkit-":"",P[ut]=g,P[Sn]=e,a?(a.type===gt.mediaRule||a.type===gt.containerRule||a.type===gt.supportsRule)&&a.cssRules.push(P):i.push(P),a=P;break;case "@media":let A=g.split(","),v=new qa(b,r,this);for(let X of A)v.media.appendMedium(X.trim());v[Sn]=e,a?(a.type===gt.mediaRule||a.type===gt.containerRule||a.type===gt.supportsRule)&&a.cssRules.push(v):i.push(v),a=v;break;case "@container":case "@-webkit-container":let H=new _a(b,r,this);H[ho]=d==="@-webkit-container"?"-webkit-":"",H[tn]=g,H[Sn]=e,a?(a.type===gt.mediaRule||a.type===gt.containerRule||a.type===gt.supportsRule)&&a.cssRules.push(H):i.push(H),a=H;break;case "@supports":case "@-webkit-supports":let Q=new Ja(b,r,this);Q[ho]=d==="@-webkit-supports"?"-webkit-":"",Q[tn]=g,Q[Sn]=e,a?(a.type===gt.mediaRule||a.type===gt.containerRule||a.type===gt.supportsRule)&&a.cssRules.push(Q):i.push(Q),a=Q;break;case "@font-face":let U=new $a(b,r,this);U[jr]=g,U[Sn]=e,a?(a.type===gt.mediaRule||a.type===gt.containerRule||a.type===gt.supportsRule)&&a.cssRules.push(U):i.push(U),a=U;break;case "@scope":case "@-webkit-scope":let j=new Ns(b,r,this);if(j[ho]=d==="@-webkit-scope"?"-webkit-":"",j[Sn]=e,g){let X=g.split(/\s+to\s+/);X[0]&&X[0][0]==="("&&X[0][X[0].length-1]===")"&&(j[W]=X[0].slice(1,-1)),X[1]&&X[1][0]==="("&&X[1][X[1].length-1]===")"&&(j[q]=X[1].slice(1,-1));}a?(a.type===gt.mediaRule||a.type===gt.containerRule||a.type===gt.supportsRule)&&a.cssRules.push(j):i.push(j),a=j;break;default:let at=new Ms(b,r,this);at[Sn]=e,a=at;break}}else if(a&&a.type===gt.keyframesRule){let f=new Ls(b,r,this),d=h.trim();d==="from"?d="0%":d==="to"&&(d="100%"),f[ks]=d,f[Sn]=e,f[Tl]=a,a.cssRules.push(f),a=f;}else if(a&&(a.type===gt.mediaRule||a.type===gt.containerRule||a.type===gt.supportsRule)){if(this.validateSelectorText(h)){let f=new Ms(b,r,this);f[sc]=h,f[Sn]=e,f[Tl]=a,a.cssRules.push(f),a=f;}}else if(this.validateSelectorText(h)){let f=new Ms(b,r,this);f[sc]=h,f[Sn]=e,f[Tl]=a,a||i.push(f),a=f;}a&&l.push(a);}else {if(a){let h=n.substring(u,c.index).trim().replace(/([^;])$/,"$1;");switch(a.type){case gt.fontFaceRule:case gt.keyframeRule:case gt.styleRule:a[jr]=h;break}}l.pop(),a=l[l.length-1]||null;}u=c.index+1;}return i}validateSelectorText(t){let e=this.#t[m];return new Nl({window:e,scope:e.document,ignoreErrors:true}).getSelectorGroups(t).length>0}};var Ah=class{cssRules=[];media;title;alternate;disabled;#t=null;constructor(t){this.media=t&&t.media?t.media:"",this.title=t&&t.title?t.title:"",this.alternate=t&&t.alternate?t.alternate:false,this.disabled=t&&t.disabled?t.disabled:false;}insertRule(t,e){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'insertRule' on 'CSSStyleSheet': 1 argument required, but only 0 present.");let n=new Ph(this).parseFromString(t);if(n.length===0||n.length>1)throw new this[m].DOMException(`Failed to execute 'insertRule' on 'CSSStyleSheet': Failed to parse the rule '${t}'.`,C.syntaxError);if(e!==void 0){if(e>this.cssRules.length)throw new this[m].DOMException(`Failed to execute 'insertRule' on 'CSSStyleSheet': The index provided (${e}) is larger than the maximum index (${this.cssRules.length-1}).`,C.indexSizeError);return this.cssRules.splice(e,0,n[0]),e}let i=this.cssRules.length;return this.cssRules.push(n[0]),i}deleteRule(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'deleteRule' on 'CSSStyleSheet': 1 argument required, but only 0 present.");this.cssRules.splice(t,1);}async replace(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'replace' on 'CSSStyleSheet': 1 argument required, but only 0 present.");this.replaceSync(t);}replaceSync(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'replaceSync' on 'CSSStyleSheet': 1 argument required, but only 0 present.");this.#t!==t&&(this.#t=t,this.cssRules=new Ph(this).parseFromString(t));}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var ql=class extends Dt{[y]=new Map;get onloadstart(){return this[y].get("onloadstart")??null}set onloadstart(t){this[y].set("onloadstart",t);}get onprogress(){return this[y].get("onprogress")??null}set onprogress(t){this[y].set("onprogress",t);}get onabort(){return this[y].get("onabort")??null}set onabort(t){this[y].set("onabort",t);}get onerror(){return this[y].get("onerror")??null}set onerror(t){this[y].set("onerror",t);}get onload(){return this[y].get("onload")??null}set onload(t){this[y].set("onload",t);}get ontimeout(){return this[y].get("ontimeout")??null}set ontimeout(t){this[y].set("ontimeout",t);}get onloadend(){return this[y].get("onloadend")??null}set onloadend(t){this[y].set("onloadend",t);}};var Nf=class extends ql{};chunkBUNLC3II_cjs.h();var wh=class{signal=new this[m].AbortSignal;abort(t){this.signal[xi](t);}};chunkBUNLC3II_cjs.h();var xh=class extends Dt{[Ie]=false;[gn]=void 0;onabort=null;constructor(){if(super(),!this[m])throw new TypeError("Failed to construct 'AbortSignal': Illegal constructor")}get[Symbol.toStringTag](){return "AbortSignal"}get aborted(){return this[Ie]}set aborted(t){}get reason(){return this[gn]}set reason(t){}[xi](t){this.aborted||(this[gn]=t!==void 0?t:new this[m].DOMException("signal is aborted without reason",C.abortError),this[Ie]=true,this.dispatchEvent(new M("abort")));}throwIfAborted(){if(this.aborted)throw this.reason}static abort(t){let e=new this;return e[gn]=t!==void 0?t:new this[m].DOMException("signal is aborted without reason",C.abortError),e[Ie]=true,e}static timeout(t){let e=this[m],r=new this;return e.setTimeout(()=>{r[xi](new e.DOMException("signal timed out",C.timeoutError));},t),r}static any(t){for(let i of t)if(i[Ie])return this.abort(i[gn]);let e=new this,r=new Map,n=()=>{for(let i of t)i.removeEventListener("abort",r.get(i));};for(let i of t){let s=()=>{n(),e[xi](i[gn]);};r.set(i,s),i.addEventListener("abort",s);}return e}};chunkBUNLC3II_cjs.h();var Eh=class extends Dt{state;onchange=null;constructor(t="granted"){super(),this.state=t;}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Dx;(function(o){o[o.unsent=0]="unsent",o[o.opened=1]="opened",o[o.headersReceived=2]="headersReceived",o[o.loading=3]="loading",o[o.done=4]="done";})(Dx||(Dx={}));var Xe=Dx;chunkBUNLC3II_cjs.h();var Ox;(function(o){o.arraybuffer="arraybuffer",o.blob="blob",o.document="document",o.json="json",o.text="text";})(Ox||(Ox={}));var _s=Ox;chunkBUNLC3II_cjs.h();var vh=class{static parse(t){if(!t.data)return "";switch(t.responseType){case _s.arraybuffer:let e=new ArrayBuffer(t.data.length),r=new Uint8Array(e);return r.set(t.data),r;case _s.blob:try{return new t.window.Blob([new Uint8Array(t.data)],{type:t.contentType||""})}catch{}return null;case _s.document:let n=t.window,i=new n.DOMParser;try{return i.parseFromString(t.data.toString(),"application/xml")}catch{}return null;case _s.json:try{return JSON.parse(t.data.toString())}catch{}return null;case _s.text:default:return t.data.toString()}}};var Lf=class extends ql{static UNSENT=Xe.unsent;static OPENED=Xe.opened;static HEADERS_RECEIVED=Xe.headersReceived;static LOADING=Xe.loading;static DONE=Xe.done;upload=new this[m].XMLHttpRequestUpload;withCredentials=false;#t=true;#e=null;#r=false;#o=null;#n=null;#i="";#l=null;#u=Buffer.from([]);#a=Xe.unsent;#c=null;constructor(){if(super(),!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get status(){return this.#n?.status||0}get statusText(){return this.#n?.statusText||""}get response(){return this.#n?this.#l:""}get responseText(){if(this.responseType!==_s.text&&this.responseType!=="")throw new this[m].DOMException(`Failed to read the 'responseText' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'text' (was '${this.responseType}').`,C.invalidStateError);return this.#l!==null?this.#l:this.readyState===Xe.headersReceived||this.readyState===Xe.loading?this.#u.toString()??"":""}get responseXML(){if(this.responseType!==_s.document&&this.responseType!=="")throw new this[m].DOMException(`Failed to read the 'responseXML' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'document' (was '${this.responseType}').`,C.invalidStateError);return this.responseType===""?null:this.#l}get responseURL(){return this.#n?.url||""}get readyState(){return this.#a}set responseType(t){if(this.readyState!==Xe.opened&&this.readyState!==Xe.unsent)throw new this[m].DOMException("Failed to set the 'responseType' property on 'XMLHttpRequest': The object's state must be OPENED or UNSENT.",C.invalidStateError);if(!this.#t)throw new this[m].DOMException("Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be changed for synchronous requests made from a document.",C.invalidStateError);this.#i=t;}get responseType(){return this.#i}open(t,e,r=true,n,i){let s=this[m];if(!r&&this.responseType&&this.responseType!==_s.text)throw new s.DOMException("Failed to execute 'open' on 'XMLHttpRequest': Synchronous requests from a document must not set a response type.",C.invalidAccessError);let l=new this[m].Headers;if(n){let a=Buffer.from(`${n}:${i||""}`);l.set("Authorization","Basic "+a.toString("base64"));}this.#t=r,this.#r=false,this.#n=null,this.#l=null,this.#u=Buffer.from([]),this.#e=new s.AbortController,this.#o=new s.Request(e,{method:t,headers:l,signal:this.#e.signal,credentials:this.withCredentials?"include":"same-origin"}),this.#a=Xe.opened;}setRequestHeader(t,e){if(this.readyState!==Xe.opened)throw new this[m].DOMException("Failed to execute 'setRequestHeader' on 'XMLHttpRequest': The object's state must be OPENED.",C.invalidStateError);return Gi.isHeaderForbidden(t)?false:(this.#o.headers.set(t,e),true)}getResponseHeader(t){return this.#n?.headers.get(t)??null}getAllResponseHeaders(){if(!this.#n)return "";let t=[];for(let[e,r]of this.#n?.headers){let n=e.toLowerCase();n!=="set-cookie"&&n!=="set-cookie2"&&t.push(`${e}: ${r}`);}return t.join(`\r
218
- `)}send(t){let e=this[m];if(this.readyState!=Xe.opened)throw new this[m].DOMException("Failed to execute 'send' on 'XMLHttpRequest': Connection must be opened before send() is called.",C.invalidStateError);typeof t=="object"&&t!==null&&t[V]===L.documentNode&&(t=new e.XMLSerializer().serializeToString(t)),this.#t?this.#p(t).catch(r=>{throw r}):this.#m(t);}abort(){this.#r||(this.#r=true,this.#e.abort());}overrideMimeType(t){if(this.readyState===Xe.loading||this.readyState===Xe.done)throw new this[m].DOMException("Failed to execute 'overrideMimeType' on 'XMLHttpRequest': MIME type cannot be overridden when the request state is LOADING or DONE.",C.invalidStateError);this.#c=t;}async#p(t){let e=this[m],r=new et(e).getBrowserFrame();if(!r)return;let n=r[vt],i=n.startTask(()=>this.abort());this.#a=Xe.loading,this.#s(new M("readystatechange")),this.#s(new M("loadstart")),t&&(this.#o=new e.Request(this.#o.url,{method:this.#o.method,headers:this.#o.headers,signal:this.#e.signal,credentials:this.#o.credentials,body:t})),this.#e.signal.addEventListener("abort",()=>{this.#r=true,this.#a=Xe.unsent,this.#s(new M("abort")),this.#s(new M("loadend")),this.#s(new M("readystatechange")),n.endTask(i);});let s=h=>{if(h instanceof ye&&h.name===C.abortError){if(this.#r)return;this.#a=Xe.unsent,this.#s(new M("abort"));}else this.#a=Xe.done,this.#s(new Is("error",{error:h,message:h.message}));this.#s(new M("loadend")),this.#s(new M("readystatechange")),n.endTask(i);},l=new nn({browserFrame:r,window:e,url:this.#o.url,init:this.#o});try{this.#n=await l.send();}catch(h){s(h);return}this.#a=Xe.headersReceived,this.#s(new M("readystatechange"));let a=this.#n.headers.get("Content-Length"),u=a!==null&&!isNaN(Number(a))?Number(a):null,c=0;if(this.#n.body){let h;try{for await(let f of this.#n.body){let d=typeof f=="string"?Buffer.from(f):f;this.#u=Buffer.concat([this.#u,d]),c+=f.length;try{this.#s(new rn("progress",{lengthComputable:u!==null,loaded:c,total:u!==null?u:0}));}catch(g){throw h=g,g}}}catch(f){if(f===h)throw f;s(f);return}}this.#l=vh.parse({window:e,responseType:this.#i,data:this.#u,contentType:this.#c||this.#n.headers.get("Content-Type")||this.#o.headers.get("Content-Type")}),this.#a=Xe.done,this.#u=Buffer.from([]),n.endTask(i),this.#s(new M("readystatechange")),this.#s(new M("load")),this.#s(new M("loadend"));}#m(t){let e=this[m],r=new et(e).getBrowserFrame();if(!r)return;t&&(this.#o=new e.Request(this.#o.url,{method:this.#o.method,headers:this.#o.headers,signal:this.#e.signal,credentials:this.#o.credentials,body:t})),this.#a=Xe.loading;let n=new Nc({browserFrame:r,window:e,url:this.#o.url,init:this.#o});try{this.#n=n.send();}catch(i){this.#a=Xe.done,this.#s(new Is("error",{error:i,message:i.message})),this.#s(new M("loadend")),this.#s(new M("readystatechange"));return}this.#a=Xe.headersReceived,this.#l=vh.parse({window:e,responseType:this.#i,data:this.#n.body,contentType:this.#c||this.#n.headers.get("Content-Type")||this.#o.headers.get("Content-Type")}),this.#a=Xe.done,this.#s(new M("readystatechange")),this.#s(new M("load")),this.#s(new M("loadend"));}#s(t){let e=new et(this[m]).getBrowserFrame();if(!e?.page?.context?.browser?.settings?.errorCapture)return;let r=e.page.context.browser.settings,n=r.errorCapture;r.errorCapture=fe.tryAndCatch,this.dispatchEvent(t),r.errorCapture=n;}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var TF=/<([^\s/!>?]+)|<\/([^\s/!>?]+)\s*>|(<!--)|(-->)|(<!)|(<\?)|(\/>)|(>)/gm,CF=/\s*([a-zA-Z0-9-_:]+)\s*=\s*"([^"]*)("{0,1})|\s*([a-zA-Z0-9-_:]+)\s*=\s*'([^']*)('{0,1})/gm,Zk=/^\s*([a-zA-Z0-9-_:]+)$/,kF=/version="[^"]+"/,NF=/"([^"]+)"/gm,Mf=/\s+/,LF=/\n/g,re;(function(o){o.any="any",o.startTag="startTag",o.comment="comment",o.documentType="documentType",o.processingInstruction="processingInstruction",o.error="error";})(re||(re={}));var MF=Object.values(Xt),Th=class{window;rootNode=null;nodeStack=[];tagNameStack=[];defaultNamespaceStack=null;namespacePrefixStack=null;startTagIndex=0;markupRegExp=null;lastIndex=0;errorIndex=0;nextElement=null;nextTagName=null;currentNode=null;readState=re.any;errorMessage=null;constructor(t){this.window=t;}parse(t){this.rootNode=new this.window.XMLDocument,this.nodeStack=[this.rootNode],this.tagNameStack=[null],this.currentNode=this.rootNode,this.readState=re.any,this.defaultNamespaceStack=[null],this.namespacePrefixStack=[null],this.startTagIndex=0,this.errorIndex=0,this.errorMessage=null,this.markupRegExp=new RegExp(TF,"gm"),this.lastIndex=0;let e;for(this.rootNode[lo]=this.window,t=String(t);e=this.markupRegExp.exec(t);){switch(this.readState){case re.any:e.index!==this.lastIndex&&(e[1]||e[2]||e[3]||e[4]||e[5]!==void 0||e[6])&&this.parsePlainText(t.substring(this.lastIndex,e.index)),e[1]?this.parseStartTag(e[1]):e[2]?this.parseEndTag(e[2])||(this.errorMessage=`Opening and ending tag mismatch: ${this.tagNameStack[this.tagNameStack.length-1]} line ${t.substring(0,this.startTagIndex).split(`
219
- `).length} and ${e[2]}
220
- `,this.errorIndex=this.markupRegExp.lastIndex,this.readState=re.error,this.removeOverflowingTextNodes()):e[3]?(this.startTagIndex=this.markupRegExp.lastIndex,this.readState=re.comment):e[5]!==void 0?(this.startTagIndex=this.markupRegExp.lastIndex,this.readState=re.documentType):e[6]?(this.startTagIndex=this.markupRegExp.lastIndex,this.readState=re.processingInstruction):this.parsePlainText(t.substring(this.lastIndex,this.markupRegExp.lastIndex));break;case re.startTag:if(e[7]||e[8]){let r=t.substring(this.startTagIndex,e[2]?this.markupRegExp.lastIndex-1:e.index),n=!!e[7];this.parseEndOfStartTag(r,n);}else this.errorMessage=e[2]&&this.lastIndex!==this.startTagIndex?`Unescaped '&lt;' not allowed in attributes values
221
- `:`error parsing attribute name
222
- `,this.errorIndex=e.index,this.readState=re.error,this.removeOverflowingTextNodes();break;case re.comment:e[4]&&this.parseComment(t.substring(this.startTagIndex,e.index));break;case re.documentType:(e[7]||e[8])&&this.parseDocumentType(t.substring(this.startTagIndex,e.index));break;case re.processingInstruction:(e[7]||e[8])&&this.parseProcessingInstruction(t.substring(this.startTagIndex,e.index));break;case re.error:return this.parseError(t.slice(0,this.errorIndex),this.errorMessage),this.rootNode}this.lastIndex=this.markupRegExp.lastIndex;}return this.readState===re.error?(this.parseError(t.slice(0,this.errorIndex),this.errorMessage),this.rootNode):this.readState===re.comment?(this.parseError(t,`Comment not terminated
223
- `),this.removeOverflowingTextNodes(),this.rootNode):this.rootNode[St].length===0?(this.parseError("","Start tag expected, '&lt;' not found"),this.rootNode):(this.lastIndex!==t.length&&this.currentNode&&this.parsePlainText(t.substring(this.lastIndex)),this.nodeStack.length!==1?(this.parseError(t,this.nextElement?`attributes construct error
224
- `:`Premature end of data in tag article line 1
225
- `),this.rootNode):this.rootNode)}parsePlainText(t){this.currentNode===this.rootNode?t.replace(Mf,"")&&(this.errorMessage=`Extra content at the end of the document
226
- `,this.errorIndex=this.lastIndex,this.readState=re.error):t.includes("&nbsp;")?(this.errorMessage=`Entity 'nbsp' not defined
227
- `,this.errorIndex=this.lastIndex+t.indexOf("&nbsp;")+6,this.readState=re.error):this.currentNode[Ot](this.rootNode.createTextNode(Je.decodeXMLEntities(t)),true);}parseProcessingInstruction(t){let e=this.markupRegExp,r=t.split(Mf),n=t[t.length-1]==="?";if(r[0]==="xml")if(this.currentNode!==this.rootNode||this.rootNode[K].length!==0||r.length===1)this.errorMessage=`XML declaration allowed only at the start of the document
228
- `,this.errorIndex=e.lastIndex-t.length+2,this.readState=re.error,this.removeOverflowingTextNodes();else if(!kF.test(r[1]))this.errorMessage=`Malformed declaration expecting version
229
- `,this.errorIndex=e.lastIndex-t.length+3,this.readState=re.error;else if(!n)this.errorMessage=`Blank needed here
230
- `,this.errorIndex=e.lastIndex-1,this.readState=re.error;else {let i=r[0],s=r.slice(1).join(" ").slice(0,-1);this.rootNode[Da]=this.rootNode.createProcessingInstruction(i,s),this.readState=re.any;}else if(r.length===1&&!n)this.errorMessage=`ParsePI: PI processing-instruction space expected
231
- `,this.errorIndex=e.lastIndex-1,this.readState=re.error;else if(r.length>1&&!n)this.errorMessage=`ParsePI: PI processing-instruction never end ...
232
- `,this.errorIndex=e.lastIndex-1,this.readState=re.error;else {let i=r[0],s=r.slice(1).join(" ").slice(0,-1);this.currentNode[Ot](this.rootNode.createProcessingInstruction(i,s),true),this.readState=re.any;}}parseComment(t){this.currentNode!==this.rootNode&&this.currentNode[Ot](this.rootNode.createComment(Je.decodeXMLEntities(t)),true),this.readState=re.any;}parseDocumentType(t){let e=this.markupRegExp;if(this.currentNode===this.rootNode&&this.rootNode[K].length===0){let r=this.getDocumentType(Je.decodeXMLEntities(t));r?.name?(this.rootNode[Ot](this.window.document.implementation.createDocumentType(r.name,r.publicId,r.systemId),true),this.readState=re.any):r?(this.errorMessage=`xmlParseDocTypeDecl : no DOCTYPE name
233
- `,this.errorIndex=e.lastIndex-t.length-2,this.readState=re.error):(this.errorMessage=`StartTag: invalid element name
234
- `,this.errorIndex=e.lastIndex-t.length-2,this.readState=re.error);}else this.currentNode===this.rootNode&&this.rootNode[St].length===1?(this.errorMessage=`Extra content at the end of the document
235
- `,this.errorIndex=e.lastIndex-t.length-2,this.readState=re.error):(this.errorMessage=`StartTag: invalid element name
236
- `,this.errorIndex=e.lastIndex-t.length-2,this.readState=re.error);}parseStartTag(t){let e=t.split(":"),r=this.namespacePrefixStack,n=this.defaultNamespaceStack;e.length>1?this.nextElement=this.rootNode.createElementNS(r[r.length-1]?.get(e[0])||null,t):this.nextElement=this.rootNode.createElementNS(n[n.length-1]||null,t),r.push(new Map(r[r.length-1])),this.nextTagName=t,this.startTagIndex=this.markupRegExp.lastIndex,this.readState=re.startTag;}parseEndOfStartTag(t,e){let r=this.namespacePrefixStack[this.namespacePrefixStack.length-1];if(t){let n=new RegExp(CF,"gm"),i,s=0;for(;i=n.exec(t);){let a=t.substring(s,i.index).replace(Mf,"");if(a.length){let u=a.match(Zk);this.errorMessage=u?`Specification mandates value for attribute ${u[1]}
237
- `:`attributes construct error
238
- `,this.errorIndex=this.startTagIndex,this.readState=re.error,this.removeOverflowingTextNodes();return}if(i[1]&&i[3]==='"'||i[4]&&i[6]==="'"){let u=i[1]??i[4],c=i[2]??i[5],h=c?Je.decodeXMLAttributeValue(c.replace(LF," ")):"",f=this.nextElement[Tt],d=u.split(":");if(d.length>2||d.length===2&&(!d[0]||!d[1])){this.errorMessage=`Failed to parse QName '${u}'
239
- `,this.errorIndex=this.startTagIndex+i.index+i[0].split("=")[0].length,this.readState=re.error;return}let g=null;switch(d[0]){case "xmlns":g=Xt.xmlns;break;case "xlink":g=Xt.xlink;break}if(f.getNamedItemNS(g,d[1]??u))this.errorMessage=`Attribute ${u} redefined
240
- `,this.errorIndex=this.startTagIndex,this.readState=re.error;else {let P=Qe.createNode(this.rootNode,this.window.Attr);if(P[st]=g,P[ut]=u,P[mt]=g&&d[1]?d[1]:u,P[$t]=g&&d[1]?d[0]:null,P[ot]=h,f[oi](P),P[$t]==="xmlns")r.set(P[mt],h),this.nextElement[$t]===P[mt]&&(this.nextElement[st]=h);else if(u==="xmlns"&&!this.nextElement[$t])if(MF.includes(h)){this.nextElement=this.rootNode.createElementNS(h,this.nextElement[it]),this.nextElement[Tt]=f,f[Vt]=this.nextElement;for(let A of f[J].values())A[Vt]=this.nextElement;}else this.nextElement[st]=h;}this.startTagIndex+=i[0].length;}else if(i[1]&&i[3]!=='"'||i[4]&&i[6]!=="'")return;s=n.lastIndex;}let l=t.substring(s).replace(Mf,"");if(l.length){let a=l.match(Zk);a?(this.errorMessage=`Specification mandates value for attribute ${a[1]}
241
- `,this.errorIndex=this.markupRegExp.lastIndex-2):(this.errorMessage=`attributes construct error
242
- `,this.errorIndex=this.startTagIndex),this.readState=re.error,this.removeOverflowingTextNodes();return}}if(this.nextElement[$t]&&!this.nextElement[st]){this.errorMessage=`Namespace prefix ${this.nextElement[$t]} on name is not defined
243
- `,this.errorIndex=this.lastIndex,this.readState=re.error;return}if(this.currentNode===this.rootNode&&this.rootNode[St].length!==0){this.errorMessage=`Extra content at the end of the document
244
- `,this.errorIndex=this.lastIndex-this.nextElement[it].length-1,this.readState=re.error;return}this.currentNode[Ot](this.nextElement,true),e||(this.currentNode=this.nextElement,this.nodeStack.push(this.currentNode),this.tagNameStack.push(this.nextTagName),this.currentNode[st]&&!this.currentNode[$t]?this.defaultNamespaceStack.push(this.currentNode[st]):this.defaultNamespaceStack.push(this.defaultNamespaceStack[this.defaultNamespaceStack.length-1])),this.nextElement=null,this.nextTagName=null,this.readState=re.any,this.startTagIndex=this.markupRegExp.lastIndex;}parseEndTag(t){return this.tagNameStack[this.tagNameStack.length-1]===t?(this.nodeStack.pop(),this.tagNameStack.pop(),this.namespacePrefixStack.pop(),this.defaultNamespaceStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode,true):false}parseError(t,e){let r=this.rootNode.documentElement;if(!r){let a=this.rootNode.createElementNS(Xt.html,"html"),u=this.rootNode.createElementNS(Xt.html,"body");a.appendChild(u),r=u,this.rootNode[Ot](a,true);}let n=t.split(`
245
- `),i=n[n.length-1].length+1,s=`error on line ${n.length} at column ${i}: ${e||"Unknown error"}`,l=this.rootNode.createElementNS(Xt.html,"parsererror");l.setAttribute("style","display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black"),l.innerHTML=`<h3>This page contains the following errors:</h3><div style="font-family:monospace;font-size:12px">${s}</div><h3>Below is a rendering of the page up to the first error.</h3>`,r.insertBefore(l,r.firstChild);}removeOverflowingTextNodes(){if(this.currentNode&&this.currentNode!==this.rootNode)for(;this.currentNode.lastChild?.[V]===xt.TEXT_NODE;)this.currentNode.removeChild(this.currentNode.lastChild);}getDocumentType(t){if(!t.toUpperCase().startsWith("DOCTYPE"))return null;let e=t.split(Mf);if(e.length<=1)return null;let r=e.slice(1).join(" "),n=[],i=new RegExp(NF,"gm"),s=r.toUpperCase().includes("PUBLIC"),l;for(;l=i.exec(r);)n.push(l[1]);let a=s&&n[0]||"",u=s?n[1]||"":n[0]||"";return {name:e[1].toLowerCase(),publicId:a,systemId:u}}};var Ch=class{parseFromString(t,e){if(!e)throw new this[m].DOMException('Second parameter "mimeType" is mandatory.');let r=this[m];switch(e){case "text/html":let n=new r.HTMLDocument;return n[lo]=r,new Ur(this[m]).parse(t,n);case "image/svg+xml":case "text/xml":case "application/xml":case "application/xhtml+xml":return new Th(this[m]).parse(t);default:throw new r.DOMException(`Unknown mime type "${e}".`)}}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Fx;(function(o){o[o.endToEnd=2]="endToEnd",o[o.endToStart=3]="endToStart",o[o.startToEnd=1]="startToEnd",o[o.startToStart=0]="startToStart";})(Fx||(Fx={}));var vr=Fx;var kh=class{static END_TO_END=vr.endToEnd;static END_TO_START=vr.endToStart;static START_TO_END=vr.startToEnd;static START_TO_START=vr.startToStart;END_TO_END=vr.endToEnd;END_TO_START=vr.endToStart;START_TO_END=vr.startToEnd;START_TO_START=vr.startToStart;[W];[q];[k];constructor(){let t=this[m];if(!t)throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);this[k]=t.document,this[W]={node:t.document,offset:0},this[q]={node:t.document,offset:0};}get startContainer(){return this[W].node}get endContainer(){return this[q].node}get startOffset(){if(this[W].offset>0){let t=kt.getNodeLength(this[W].node);this[W].offset>t&&(this[W].offset=t);}return this[W].offset}get endOffset(){if(this[q].offset>0){let t=kt.getNodeLength(this[q].node);this[q].offset>t&&(this[q].offset=t);}return this[q].offset}get collapsed(){return this[W].node===this[q].node&&this.startOffset===this.endOffset}get commonAncestorContainer(){let t=this[W].node;for(;t;){if(kt.isInclusiveAncestor(t,this[q].node))return t;t=t[$];}return null}collapse(t=false){t?this[q]=Object.assign({},this[W]):this[W]=Object.assign({},this[q]);}compareBoundaryPoints(t,e){if(t!==vr.startToStart&&t!==vr.startToEnd&&t!==vr.endToEnd&&t!==vr.endToStart)throw new this[m].DOMException(`The comparison method provided must be one of '${vr.startToStart}', '${vr.startToEnd}', '${vr.endToEnd}' or '${vr.endToStart}'.`,C.notSupportedError);if(this[k]!==e[k])throw new this[m].DOMException("The two Ranges are not in the same tree.",C.wrongDocumentError);let r={node:null,offset:0},n={node:null,offset:0};switch(t){case vr.startToStart:r.node=this[W].node,r.offset=this.startOffset,n.node=e[W].node,n.offset=e.startOffset;break;case vr.startToEnd:r.node=this[q].node,r.offset=this.endOffset,n.node=e[W].node,n.offset=e.startOffset;break;case vr.endToEnd:r.node=this[q].node,r.offset=this.endOffset,n.node=e[q].node,n.offset=e.endOffset;break;case vr.endToStart:r.node=this[W].node,r.offset=this.startOffset,n.node=e[q].node,n.offset=e.endOffset;break}return Te.compareBoundaryPointsPosition(r,n)}comparePoint(t,e){if(t[k]!==this[k])throw new this[m].DOMException("The two Ranges are not in the same tree.",C.wrongDocumentError);Te.validateBoundaryPoint({node:t,offset:e});let r={node:t,offset:e};return Te.compareBoundaryPointsPosition(r,{node:this[W].node,offset:this.startOffset})===-1?-1:Te.compareBoundaryPointsPosition(r,{node:this[q].node,offset:this.endOffset})===1?1:0}cloneContents(){let t=this[m],e=this[k].createDocumentFragment(),r=this.startOffset,n=this.endOffset;if(this.collapsed)return e;if(this[W].node===this[q].node&&(this[W].node[V]===L.textNode||this[W].node[V]===L.processingInstructionNode||this[W].node[V]===L.commentNode)){let u=this[W].node.cloneNode(false);return u[_t]=u.substringData(r,n-r),e.appendChild(u),e}let i=this[W].node;for(;!kt.isInclusiveAncestor(i,this[q].node);)i=i[$];let s=null;if(!kt.isInclusiveAncestor(this[W].node,this[q].node)){let u=i.firstChild;for(;!s;)Te.isPartiallyContained(u,this)&&(s=u),u=u.nextSibling;}let l=null;if(!kt.isInclusiveAncestor(this[q].node,this[W].node)){let u=i.lastChild;for(;!l;)Te.isPartiallyContained(u,this)&&(l=u),u=u.previousSibling;}let a=[];for(let u of i[K])if(Te.isContained(u,this)){if(u[V]===L.documentTypeNode)throw new t.DOMException("Invalid document type element.",C.hierarchyRequestError);a.push(u);}if(s!==null&&(s[V]===L.textNode||s[V]===L.processingInstructionNode||s[V]===L.commentNode)){let u=this[W].node.cloneNode(false);u[_t]=u.substringData(r,kt.getNodeLength(this[W].node)-r),e.appendChild(u);}else if(s!==null){let u=s.cloneNode();e.appendChild(u);let c=new t.Range;c[W].node=this[W].node,c[W].offset=r,c[q].node=s,c[q].offset=kt.getNodeLength(s);let h=c.cloneContents();u.appendChild(h);}for(let u of a){let c=u.cloneNode(true);e.appendChild(c);}if(l!==null&&(l[V]===L.textNode||l[V]===L.processingInstructionNode||l[V]===L.commentNode)){let u=this[q].node.cloneNode(false);u[_t]=u.substringData(0,n),e.appendChild(u);}else if(l!==null){let u=l.cloneNode(false);e.appendChild(u);let c=new t.Range;c[W].node=l,c[W].offset=0,c[q].node=this[q].node,c[q].offset=n;let h=c.cloneContents();u.appendChild(h);}return e}cloneRange(){let t=new this[m].Range;return t[W].node=this[W].node,t[W].offset=this[W].offset,t[q].node=this[q].node,t[q].offset=this[q].offset,t}createContextualFragment(t){return new Ur(this[m]).parse(t)}deleteContents(){let t=this.startOffset,e=this.endOffset;if(this.collapsed)return;if(this[W].node===this[q].node&&(this[W].node[V]===L.textNode||this[W].node[V]===L.processingInstructionNode||this[W].node[V]===L.commentNode)){this[W].node.replaceData(t,e-t,"");return}let r=[],n=this[W].node,i=kt.nextDescendantNode(this[q].node);for(;n&&n!==i;)Te.isContained(n,this)&&!Te.isContained(n[$],this)&&r.push(n),n=kt.following(n);let s,l;if(kt.isInclusiveAncestor(this[W].node,this[q].node))s=this[W].node,l=t;else {let a=this[W].node;for(;a&&!kt.isInclusiveAncestor(a[$],this[q].node);)a=a[$];s=a[$],l=a[$][K].indexOf(a)+1;}(this[W].node[V]===L.textNode||this[W].node[V]===L.processingInstructionNode||this[W].node[V]===L.commentNode)&&this[W].node.replaceData(this.startOffset,kt.getNodeLength(this[W].node)-this.startOffset,"");for(let a of r)a[$].removeChild(a);(this[q].node[V]===L.textNode||this[q].node[V]===L.processingInstructionNode||this[q].node[V]===L.commentNode)&&this[q].node.replaceData(0,e,""),this[W].node=s,this[W].offset=l,this[q].node=s,this[q].offset=l;}detach(){}extractContents(){let t=this[m],e=this[k].createDocumentFragment(),r=this.startOffset,n=this.endOffset;if(this.collapsed)return e;if(this[W].node===this[q].node&&(this[W].node[V]===L.textNode||this[W].node[V]===L.processingInstructionNode||this[W].node[V]===L.commentNode)){let h=this[W].node.cloneNode(false);return h[_t]=h.substringData(r,n-r),e.appendChild(h),this[W].node.replaceData(r,n-r,""),e}let i=this[W].node;for(;!kt.isInclusiveAncestor(i,this[q].node);)i=i[$];let s=null;if(!kt.isInclusiveAncestor(this[W].node,this[q].node)){let h=i.firstChild;for(;!s;)Te.isPartiallyContained(h,this)&&(s=h),h=h.nextSibling;}let l=null;if(!kt.isInclusiveAncestor(this[q].node,this[W].node)){let h=i.lastChild;for(;!l;)Te.isPartiallyContained(h,this)&&(l=h),h=h.previousSibling;}let a=[];for(let h of i[K])if(Te.isContained(h,this)){if(h[V]===L.documentTypeNode)throw new this[m].DOMException("Invalid document type element.",C.hierarchyRequestError);a.push(h);}let u,c;if(kt.isInclusiveAncestor(this[W].node,this[q].node))u=this[W].node,c=r;else {let h=this[W].node;for(;h&&!kt.isInclusiveAncestor(h[$],this[q].node);)h=h[$];u=h[$],c=h[$][K].indexOf(h)+1;}if(s!==null&&(s[V]===L.textNode||s[V]===L.processingInstructionNode||s[V]===L.commentNode)){let h=this[W].node.cloneNode(false);h[_t]=h.substringData(r,kt.getNodeLength(this[W].node)-r),e.appendChild(h),this[W].node.replaceData(r,kt.getNodeLength(this[W].node)-r,"");}else if(s!==null){let h=s.cloneNode(false);e.appendChild(h);let f=new t.Range;f[W].node=this[W].node,f[W].offset=r,f[q].node=s,f[q].offset=kt.getNodeLength(s);let d=f.extractContents();h.appendChild(d);}for(let h of a)e.appendChild(h);if(l!==null&&(l[V]===L.textNode||l[V]===L.processingInstructionNode||l[V]===L.commentNode)){let h=this[q].node.cloneNode(false);h[_t]=h.substringData(0,n),e.appendChild(h),this[q].node.replaceData(0,n,"");}else if(l!==null){let h=l.cloneNode(false);e.appendChild(h);let f=new t.Range;f[W].node=l,f[W].offset=0,f[q].node=this[q].node,f[q].offset=n;let d=f.extractContents();h.appendChild(d);}return this[W].node=u,this[W].offset=c,this[q].node=u,this[q].offset=c,e}getBoundingClientRect(){return new pi}getClientRects(){return new Ec(b)}isPointInRange(t,e=0){if(t[k]!==this[k])return false;let r={node:t,offset:e};return Te.validateBoundaryPoint(r),!(Te.compareBoundaryPointsPosition(r,{node:this[W].node,offset:this.startOffset})===-1||Te.compareBoundaryPointsPosition(r,{node:this[q].node,offset:this.endOffset})===1)}insertNode(t){if(this[W].node[V]===L.processingInstructionNode||this[W].node[V]===L.commentNode||this[W].node[V]===L.textNode&&!this[W].node[$]||t===this[W].node)throw new this[m].DOMException("Invalid start node.",C.hierarchyRequestError);let e=this[W].node[V]===L.textNode?this[W].node:this[W].node[K][this.startOffset]||null,r=e?e[$]:this[W].node;this[W].node[V]===L.textNode&&(e=this[W].node.splitText(this.startOffset)),t===e&&(e=e.nextSibling);let n=t[$];n&&n.removeChild(t);let i=e?e[$][K].indexOf(e):kt.getNodeLength(r);i+=t[V]===L.documentFragmentNode?kt.getNodeLength(t):1,r.insertBefore(t,e),this.collapsed&&(this[q].node=r,this[q].offset=i);}intersectsNode(t){if(t[k]!==this[k])return false;let e=t[$];if(!e)return true;let r=e[K].indexOf(t);return Te.compareBoundaryPointsPosition({node:e,offset:r},{node:this[q].node,offset:this.endOffset})===-1&&Te.compareBoundaryPointsPosition({node:e,offset:r+1},{node:this[W].node,offset:this.startOffset})===1}selectNode(t){if(!t[$])throw new this[m].DOMException("The given Node has no parent.",C.invalidNodeTypeError);let e=t[$][K].indexOf(t);this[W].node=t[$],this[W].offset=e,this[q].node=t[$],this[q].offset=e+1;}selectNodeContents(t){if(t[V]===L.documentTypeNode)throw new this[m].DOMException("DocumentType Node can't be used as boundary point.",C.invalidNodeTypeError);this[W].node=t,this[W].offset=0,this[q].node=t,this[q].offset=kt.getNodeLength(t);}setEnd(t,e=0){Te.validateBoundaryPoint({node:t,offset:e});let r={node:t,offset:e};(t[k]!==this[k]||Te.compareBoundaryPointsPosition(r,{node:this[W].node,offset:this.startOffset})===-1)&&(this[W].node=t,this[W].offset=e),this[q].node=t,this[q].offset=e;}setStart(t,e=0){Te.validateBoundaryPoint({node:t,offset:e});let r={node:t,offset:e};(t[k]!==this[k]||Te.compareBoundaryPointsPosition(r,{node:this[q].node,offset:this.endOffset})===1)&&(this[q].node=t,this[q].offset=e),this[W].node=t,this[W].offset=e;}setEndAfter(t){if(!t[$])throw new this[m].DOMException("The given Node has no parent.",C.invalidNodeTypeError);this.setEnd(t[$],t[$][K].indexOf(t)+1);}setEndBefore(t){if(!t[$])throw new this[m].DOMException("The given Node has no parent.",C.invalidNodeTypeError);this.setEnd(t[$],t[$][K].indexOf(t));}setStartAfter(t){if(!t[$])throw new this[m].DOMException("The given Node has no parent.",C.invalidNodeTypeError);this.setStart(t[$],t[$][K].indexOf(t)+1);}setStartBefore(t){if(!t[$])throw new this[m].DOMException("The given Node has no parent.",C.invalidNodeTypeError);this.setStart(t[$],t[$][K].indexOf(t));}surroundContents(t){let e=this.commonAncestorContainer;if(!e)return;let r=kt.nextDescendantNode(e);for(;e&&e!==r;){if(e[V]!==L.textNode&&Te.isPartiallyContained(e,this))throw new this[m].DOMException("The Range has partially contains a non-Text node.",C.invalidStateError);e=kt.following(e);}if(t[V]===L.documentNode||t[V]===L.documentTypeNode||t[V]===L.documentFragmentNode)throw new this[m].DOMException("Invalid element type.",C.invalidNodeTypeError);let n=this.extractContents();for(;t.firstChild;)t.removeChild(t.firstChild);this.insertNode(t),t.appendChild(n),this.selectNode(t);}toString(){let t=this.startOffset,e=this.endOffset,r="";if(this[W].node===this[q].node&&this[W].node[V]===L.textNode)return this[W].node.data.slice(t,e);this[W].node[V]===L.textNode&&(r+=this[W].node.data.slice(t));let n=kt.nextDescendantNode(this[q].node),i=this[W].node;for(;i&&i!==n;)i[V]===L.textNode&&Te.isContained(i,this)&&(r+=i.data),i=kt.following(i);return this[q].node[V]===L.textNode&&(r+=this[q].node.data.slice(0,e)),r}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Pu=class extends Dt{id="";startTime=0;endTime=0;pauseOnExit=false;[Tp]=null;onenter=null;onexit=null;constructor(t){if(super(),t!==b)throw new TypeError("Illegal constructor");if(!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get track(){return this[Tp]}};var Nh=class extends Pu{region=null;vertical="";snapToLines=true;line=0;lineAlign="";position="auto";positionAlign="auto";size=100;align="";text="";constructor(t,e,r){super(b);let n=this[m],i=0;if(t!==void 0&&i++,e!==void 0&&i++,r!==void 0&&i++,i<3)throw new n.TypeError(`Failed to construct 'VTTCue': 3 arguments required, but only ${i} present.`);if(t=Number(t),e=Number(e),isNaN(t)||isNaN(e))throw new n.TypeError("Failed to construct 'VTTCue': The provided double value is non-finite.");this.startTime=t,this.endTime=e,this.text=String(r);}getCueAsHTML(){let t=this[m],e=t.document.createDocumentFragment();return e.appendChild(t.document.createTextNode(this.text)),e}};chunkBUNLC3II_cjs.h();var Lh=class extends Dt{[dn]=Fs.subtitles;[Sl]="";[tc]="";[Dy]="";[Ue]="disabled";[Zu]=new Kl(b);[Ow]=new Kl(b);oncuechange=null;constructor(t){if(super(),t!==b)throw new TypeError("Illegal constructor");if(!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[dn]}get label(){return this[Sl]}get language(){return this[tc]}get id(){return this[Dy]}get mode(){return this[Ue]}set mode(t){t!=="disabled"&&t!=="showing"||(this[Ue]=t);}get cues(){return this[Ue]==="disabled"?null:this[Zu]}get activeCues(){return this[Ue]==="disabled"?null:this[Ow]}addCue(t){this[Zu].includes(t)||(t[Tp]=this,this[Zu].push(t));}removeCue(t){let e=this[Zu].indexOf(t);e!==-1&&(t[Tp]=null,this[Zu].splice(e,1));}};chunkBUNLC3II_cjs.h();var Mh=class o extends Dt{[J]=[];onaddtrack=null;onchange=null;onremovetrack=null;constructor(t,e){if(super(),t!==b)throw new TypeError("Illegal constructor");this[J]=e;let r=new Re(this,[o,Dt]);return new Proxy(this,{get:(n,i)=>{if(i==="length")return e.length;if(i in n||typeof i=="symbol")return r.bind(i),n[i];let s=Number(i);if(!isNaN(s))return e[s]},set(n,i,s){if(r.bind(i),typeof i=="symbol")return n[i]=s,true;let l=Number(i);return isNaN(l)&&(n[i]=s),true},deleteProperty(n,i){if(typeof i=="symbol")return delete n[i],true;let s=Number(i);return isNaN(s)&&delete n[i],true},ownKeys(){return Object.keys(e)},has(n,i){if(i in n)return true;if(typeof i=="symbol")return false;let s=Number(i);return !isNaN(s)&&s>=0&&s<e.length},defineProperty(n,i,s){return r.preventBinding(i),i in n?(Object.defineProperty(n,i,s),true):false},getOwnPropertyDescriptor(n,i){if(i in n||typeof i=="symbol")return;let s=Number(i);if(!isNaN(s)&&e[s])return {value:e[s],writable:false,enumerable:true,configurable:true}}})}get length(){return this[J].length}get[Symbol.toStringTag](){return "TextTrackList"}toLocaleString(){return "[object TextTrackList]"}toString(){return "[object TextTrackList]"}[Symbol.iterator](){return this[J][Symbol.iterator]()}getTrackById(t){for(let e of this[J])if(e.id===t)return e;return null}};chunkBUNLC3II_cjs.h();var Ih=class extends Dt{[Fw]="disconnected";onconnecting=null;onconnect=null;ondisconnect=null;get state(){return this[Fw]}async watchAvailability(){}cancelWatchAvailability(){}prompt(){}};chunkBUNLC3II_cjs.h();var p0=chunkBUNLC3II_cjs.e(c0(),1);chunkBUNLC3II_cjs.h();var Hx;(function(o){o[o.empty=0]="empty",o[o.loading=1]="loading",o[o.done=2]="done";})(Hx||(Hx={}));var Yl=Hx;chunkBUNLC3II_cjs.h();var Gx;(function(o){o.buffer="buffer",o.binaryString="binaryString",o.dataURL="dataURL",o.text="text";})(Gx||(Gx={}));var Ql=Gx;chunkBUNLC3II_cjs.h();var Ux;(function(o){o.abort="abort",o.error="error",o.load="load",o.loadstart="loadstart",o.loadend="loadend",o.progress="progress";})(Ux||(Ux={}));var Fc=Ux;var Rh=class extends Dt{error=null;result=null;readyState=Yl.empty;onabort=null;onerror=null;onload=null;onloadstart=null;onloadend=null;onprogress=null;#t=false;#e=null;#r=null;constructor(){if(super(),!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}readAsArrayBuffer(t){if(!(t instanceof Ae))throw new this[m].TypeError("Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#o(t,Ql.buffer);}readAsBinaryString(t){if(!(t instanceof Ae))throw new this[m].TypeError("Failed to execute 'readAsBinaryString' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#o(t,Ql.binaryString);}readAsDataURL(t){if(!(t instanceof Ae))throw new this[m].TypeError("Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#o(t,Ql.dataURL);}readAsText(t,e=null){if(!(t instanceof Ae))throw new this[m].TypeError("Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#o(t,Ql.text,e||"UTF-8");}abort(){let t=this[m];if(this.#e&&t.clearTimeout(this.#e),this.#r&&t.clearTimeout(this.#r),this.readyState===Yl.empty||this.readyState===Yl.done){this.result=null;return}this.readyState===Yl.loading&&(this.readyState=Yl.done,this.result=null),this.#t=true,this.dispatchEvent(new rn(Fc.abort)),this.dispatchEvent(new rn(Fc.loadend));}#o(t,e,r=null){let n=this[m];if(this.readyState===Yl.loading)throw new n.DOMException("The object is in an invalid state.",C.invalidStateError);this.readyState=Yl.loading,this.#e=n.setTimeout(()=>{if(this.#t){this.#t=false;return}this.dispatchEvent(new rn(Fc.loadstart));let i=t[Lt];i||(i=buffer.Buffer.alloc(0)),this.dispatchEvent(new rn(Fc.loadstart,{lengthComputable:!isNaN(t.size),total:t.size,loaded:i.length})),this.#r=n.setTimeout(()=>{if(this.#t){this.#t=false;return}switch(e){default:case Ql.buffer:{this.result=new Uint8Array(i).buffer;break}case Ql.binaryString:{this.result=i.toString("binary");break}case Ql.dataURL:{let s=p0.default.parse(t.type)||"application/octet-stream";this.result=`data:${s};base64,${i.toString("base64")}`;break}case Ql.text:{this.result=new TextDecoder(r||"UTF-8").decode(i);break}}this.readyState=Yl.done,this.dispatchEvent(new rn(Fc.load)),this.dispatchEvent(new rn(Fc.loadend));});});}};chunkBUNLC3II_cjs.h();var _F={aspectRatio:{max:300,min:.006666666666666667},deviceId:"",facingMode:[],frameRate:{max:60,min:0},height:{max:150,min:1},resizeMode:["none","crop-and-scale"],width:{max:300,min:1}},$F={deviceId:"",frameRate:60,resizeMode:"none"},wu=class extends Dt{contentHint="";enabled=true;id=gR__default.default.randomUUID();muted=false;readyState="live";label="";[Sl]="";[dn]="video";[Ep]={};[ki]=JSON.parse(JSON.stringify(_F));[Ca]=JSON.parse(JSON.stringify($F));onended=null;onmute=null;onunmute=null;constructor(t){if(super(),t!==b)throw new TypeError("Illegal constructor");if(!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[dn]}async applyConstraints(t){this.#t(this[Ep],t);}getConstraints(){return this[Ep]}getCapabilities(){return this[ki]}getSettings(){return this[Ca]}clone(){let t=new this.constructor(b);return t[dn]=this[dn],t[Ep]=this[Ep],t[ki]=this[ki],t[Ca]=this[Ca],t.contentHint=this.contentHint,t.enabled=this.enabled,t.label=this.label,t.muted=this.muted,t.readyState=this.readyState,t}stop(){this.readyState="ended";}#t(t,e){for(let r in e)e[r]!==null&&typeof e[r]=="object"&&!Array.isArray(e[r])?(typeof t[r]!="object"&&(t[r]={}),this.#t(t[r],e[r])):t[r]=e[r];}};chunkBUNLC3II_cjs.h();var Rf=class extends wu{[ss];constructor(t,e){super(t),this[ss]=e;}get canvas(){return this[ss]}requestFrame(){}clone(){let t=super.clone();return t[ss]=this.canvas,t}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Wx;(function(o){o[o.connecting=0]="connecting",o[o.open=1]="open",o[o.closing=2]="closing",o[o.closed=3]="closed";})(Wx||(Wx={}));var an=Wx;var KF=/^[!#$%&'*+\-.^_`|~\dA-Za-z]+$/,Dh=class extends Dt{static CONNECTING=an.connecting;static OPEN=an.open;static CLOSING=an.closing;static CLOSED=an.closed;#t=an.closed;#e="";#r="blob";#o=null;#n;[Zr]=null;constructor(t,e){super();let r=this[m],n;try{n=new URL(t);}catch{throw new r.DOMException(`The URL '${t}' is invalid.`,C.syntaxError)}if(n.protocol!=="ws:"&&n.protocol!=="wss:")throw new r.DOMException(`The URL's protocol must be either 'ws' or 'wss'. '${n.protocol}' is not allowed.`,C.syntaxError);n.hash&&(n.hash="");let i=new Set,s=e!==void 0?Array.isArray(e)?e:[e]:[];for(let l of s){if(!this.#m(l))throw new r.DOMException(`The subprotocol '${l}' is invalid.`,C.syntaxError);if(i.has(l))throw new r.DOMException(`The subprotocol '${l}' is duplicated.`,C.syntaxError);i.add(l);}this.#n=n,this.#i(n,s);}get readyState(){return this.#t}get extensions(){return this.#e}get binaryType(){return this.#r}set binaryType(t){t!=="blob"&&t!=="arraybuffer"||(this.#r=t);}get protocol(){return this[Zr]?.protocol||""}get url(){return this.#n.href}close(t,e){let r=this[m];if(t!==void 0&&t!==1e3&&!(t>=3e3&&t<=4999))throw new r.DOMException(`The code must be either 1000, or between 3000 and 4999. ${t} is neither.`,C.invalidAccessError);if(e!==void 0&&Buffer.byteLength(e,"utf8")>123)throw new r.DOMException("The message must not be greater than 123 bytes.",C.syntaxError);this.#l(t,e?Buffer.from(e):void 0);}send(t){let e=this[m];if(this.#t===an.connecting)throw new e.DOMException("Still in CONNECTING state.",C.invalidStateError);if(this.#t!==an.open)return;if(typeof t=="string"){this[Zr]?.send(t,{binary:false});return}let r;t instanceof ArrayBuffer?r=Buffer.from(new Uint8Array(t)):t instanceof Ae?r=t[Lt]:t instanceof Buffer?r=t:ArrayBuffer.isView(t)?r=Buffer.from(new Uint8Array(t.buffer,t.byteOffset,t.byteLength)):r=Buffer.from(String(t)),this[Zr]?.send(r,{binary:true});}[Mt](){super[Mt](),this.#l(1001);}#i(t,e){let r=this[m],n=new et(r).getBrowserContext();if(!n)return;let i=new URL(r.location.href),s=n.cookieContainer.getCookies(i,false);this.#t=an.connecting,this[Zr]=new chunk73D2PNHD_cjs.c(t,e,{headers:{"user-agent":r.navigator.userAgent,cookie:Dn.cookiesToString(s),origin:i.origin},rejectUnauthorized:!n.browser.settings.fetch.disableStrictSSL}),this[Zr].once("open",()=>{this.#u();}),this[Zr].on("message",this.#c.bind(this)),this[Zr].once("close",(l,a)=>{this.#a(l,a);}),this[Zr].once("upgrade",({headers:l})=>{if(l["set-cookie"]!==void 0){let a=Array.isArray(l["set-cookie"])?l["set-cookie"]:[l["set-cookie"]];for(let u of a){let c=Dn.stringToCookie(i,u);c&&n.cookieContainer.addCookies([c]);}}}),this[Zr].once("error",l=>{this.#o=l;}),r[Fa].push(this);}#l(t,e){this.readyState===an.connecting?this[Zr]?this[Zr].terminate():this.#t=an.closing:this[Zr]&&this.readyState===an.open&&this[Zr].close(t,e),this[Zr]=null;}#u(){this[Zr]?.extensions&&(this.#e=Object.keys(this[Zr].extensions).join(", ")),this.#t=an.open,this.dispatchEvent(new this[m].Event("open"));}#a(t,e){let r=this[m],n=r[Fa].indexOf(this);n!==-1&&r[Fa].splice(n,1),this.#t=an.closed,this.dispatchEvent(new this[m].CloseEvent("close",{wasClean:this.#o===null,code:t,reason:e.toString()}));}#c(t,e){if(this.#t!==an.open)return;let r=this[m],n;e?this.binaryType==="arraybuffer"?t instanceof r.ArrayBuffer?n=t:Array.isArray(t)?n=this.#p(Buffer.concat(t)):n=this.#p(t):(Array.isArray(t)||(t=[t]),n=new r.Blob(t)):n=String(t),this.dispatchEvent(new r.MessageEvent("message",{data:n,origin:this.#n.origin}));}#p(t){let e=this[m],r=new e.ArrayBuffer(t.byteLength);return new Uint8Array(r).set(t),r}#m(t){return KF.test(t)}};chunkBUNLC3II_cjs.h();var Oh=class{[_t];[B];[F];constructor(t,e,r){if(arguments.length<2)throw new this[m].TypeError(`Failed to construct 'ImageData': 2 arguments required, but only ${arguments.length} present.`);if(t instanceof Uint8ClampedArray){if(typeof e!="number")throw new this[m].TypeError("Failed to construct 'ImageData': The width argument must be a number.");if(r!==void 0&&typeof r!="number")throw new this[m].TypeError("Failed to construct 'ImageData': The height argument must be a number.");this[_t]=t,this[B]=e,this[F]=r!==void 0?r:t.length/(e*4);}else {if(typeof e!="number")throw new this[m].TypeError("Failed to construct 'ImageData': The height argument must be a number.");this[_t]=new Uint8ClampedArray(new Array(t*e*4).fill(0)),this[B]=t,this[F]=e;}}get data(){return this[_t]}get width(){return this[B]}get height(){return this[F]}};chunkBUNLC3II_cjs.h();var Fh={a:1,b:0,c:0,d:1,e:0,f:0,m11:1,m12:0,m13:0,m14:0,m21:0,m22:1,m23:0,m24:0,m31:0,m32:0,m33:1,m34:0,m41:0,m42:0,m43:0,m44:1,is2D:true,isIdentity:true},jF=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,qF=/[\s,]+/,Bc=class o{[Ut]=1;[jt]=0;[ce]=0;[pe]=0;[Wt]=0;[qt]=1;[me]=0;[he]=0;[te]=0;[ie]=0;[se]=1;[ee]=0;[zt]=0;[Yt]=0;[le]=0;[ae]=1;constructor(t){t&&this[Cp](t);}get a(){return this[Ut]}get b(){return this[jt]}get c(){return this[Wt]}get d(){return this[qt]}get e(){return this[zt]}get f(){return this[Yt]}get m11(){return this[Ut]}get m12(){return this[jt]}get m13(){return this[ce]}get m14(){return this[pe]}get m21(){return this[Wt]}get m22(){return this[qt]}get m23(){return this[me]}get m24(){return this[he]}get m31(){return this[te]}get m32(){return this[ie]}get m33(){return this[se]}get m34(){return this[ee]}get m41(){return this[zt]}get m42(){return this[Yt]}get m43(){return this[le]}get m44(){return this[ae]}get isIdentity(){return this[Ut]===1&&this[jt]===0&&this[ce]===0&&this[pe]===0&&this[Wt]===0&&this[qt]===1&&this[me]===0&&this[he]===0&&this[te]===0&&this[ie]===0&&this[se]===1&&this[ee]===0&&this[zt]===0&&this[Yt]===0&&this[le]===0&&this[ae]===1}get is2D(){return this[te]===0&&this[ie]===0&&this[se]===1&&this[ee]===0&&this[le]===0&&this[ae]===1}toFloat32Array(t){return Float32Array.from(this[ud](t))}toFloat64Array(t){return Float64Array.from(this[ud](t))}toString(){let t=this.is2D,e=this[ud](t).join(", ");return `${t?"matrix":"matrix3d"}(${e})`}toJSON(){let{is2D:t,isIdentity:e}=this;return {m11:this[Ut],m12:this[jt],m13:this[ce],m14:this[pe],m21:this[Wt],m22:this[qt],m23:this[me],m24:this[he],m31:this[te],m32:this[ie],m33:this[se],m34:this[ee],m41:this[zt],m42:this[Yt],m43:this[le],m44:this[ae],a:this[Ut],b:this[jt],c:this[Wt],d:this[qt],e:this[zt],f:this[Yt],is2D:t,isIdentity:e}}multiply(t){let e=new this.constructor(this);return t&&e[qo](t),e}translate(t=0,e=0,r=0){let n=new this.constructor(this);return n[bn](t,e,r),n}scale(t,e,r=1,n=0,i=0,s=0){let l=new this.constructor(this);return l[As](t,e,r,n,i,s),l}scale3d(t=1,e=0,r=0,n=0){let i=new this.constructor(this);return i[cd](t,e,r,n),i}scaleNonUniform(t=1,e=1){let r=new this.constructor(this);return r[pd](t,e),r}rotateAxisAngle(t=0,e=0,r=0,n=0){let i=new this.constructor(this);return i[wl](t,e,r,n),i}rotate(t=0,e,r){let n=new this.constructor(this);return n[Al](t,e,r),n}rotateFromVector(t=0,e=0){let r=new this.constructor(this);return r[Kd](t,e),r}skewX(t){let e=new this.constructor(this);return e[oc](t),e}skewY(t){let e=new this.constructor(this);return e[nc](t),e}flipX(){let t=new this.constructor(this);return t[jd](),t}flipY(){let t=new this.constructor(this);return t[qd](),t}inverse(){let t=new this.constructor(this);return t[Yd](),t}transformPoint(t){let e=t?.x??0,r=t?.y??0,n=t?.z??0,i=t?.w??1,s=this[Ut]*e+this[Wt]*r+this[te]*n+this[zt]*i,l=this[jt]*e+this[qt]*r+this[ie]*n+this[Yt]*i,a=this[ce]*e+this[me]*r+this[se]*n+this[le]*i,u=this[pe]*e+this[he]*r+this[ee]*n+this[ae]*i;return new this[m].DOMPoint(s,l,a,u)}[Cp](t){let e=null;if(typeof t=="string"&&t.length&&t!=="none")e=this.constructor[rc](t);else if(Array.isArray(t)||t instanceof Float64Array||t instanceof Float32Array)e=this.constructor[fn](t);else if(typeof t=="object")e=this.constructor.fromMatrix(t);else return;this[Ut]=e[Ut],this[jt]=e[jt],this[ce]=e[ce],this[pe]=e[pe],this[Wt]=e[Wt],this[qt]=e[qt],this[me]=e[me],this[he]=e[he],this[te]=e[te],this[ie]=e[ie],this[se]=e[se],this[ee]=e[ee],this[zt]=e[zt],this[Yt]=e[Yt],this[le]=e[le],this[ae]=e[ae];}[qo](t){if(!t)return;let e=t;e instanceof o||(e?.m11===void 0&&e?.a!==void 0?(e=Object.assign({},Fh,e),e.m11=e.a,e.m12=e.b,e.m21=e.c,e.m22=e.d,e.m41=e.e,e.m42=e.f):e=Object.assign({},Fh,e));let r=this[Ut]*e.m11+this[Wt]*e.m12+this[te]*e.m13+this[zt]*e.m14,n=this[Ut]*e.m21+this[Wt]*e.m22+this[te]*e.m23+this[zt]*e.m24,i=this[Ut]*e.m31+this[Wt]*e.m32+this[te]*e.m33+this[zt]*e.m34,s=this[Ut]*e.m41+this[Wt]*e.m42+this[te]*e.m43+this[zt]*e.m44,l=this[jt]*e.m11+this[qt]*e.m12+this[ie]*e.m13+this[Yt]*e.m14,a=this[jt]*e.m21+this[qt]*e.m22+this[ie]*e.m23+this[Yt]*e.m24,u=this[jt]*e.m31+this[qt]*e.m32+this[ie]*e.m33+this[Yt]*e.m34,c=this[jt]*e.m41+this[qt]*e.m42+this[ie]*e.m43+this[Yt]*e.m44,h=this[ce]*e.m11+this[me]*e.m12+this[se]*e.m13+this[le]*e.m14,f=this[ce]*e.m21+this[me]*e.m22+this[se]*e.m23+this[le]*e.m24,d=this[ce]*e.m31+this[me]*e.m32+this[se]*e.m33+this[le]*e.m34,g=this[ce]*e.m41+this[me]*e.m42+this[se]*e.m43+this[le]*e.m44,P=this[pe]*e.m11+this[he]*e.m12+this[ee]*e.m13+this[ae]*e.m14,A=this[pe]*e.m21+this[he]*e.m22+this[ee]*e.m23+this[ae]*e.m24,v=this[pe]*e.m31+this[he]*e.m32+this[ee]*e.m33+this[ae]*e.m34,H=this[pe]*e.m41+this[he]*e.m42+this[ee]*e.m43+this[ae]*e.m44;this[Ut]=r,this[jt]=l,this[ce]=h,this[pe]=P,this[Wt]=n,this[qt]=a,this[me]=f,this[he]=A,this[te]=i,this[ie]=u,this[se]=d,this[ee]=v,this[zt]=s,this[Yt]=c,this[le]=g,this[ae]=H;}[bn](t=0,e=0,r=0){let n=this.constructor[fn]([1,0,0,0,0,1,0,0,0,0,1,0,t,e,r,1]);this[qo](n);}[As](t,e,r=1,n=0,i=0,s=0){t=t===void 0?1:Number(t),e=e===void 0?t:Number(e),(n!==0||i!==0||s!==0)&&this[bn](n,i,s),(t!==1||e!==1||r!==1)&&this[qo](this.constructor[fn]([t,0,0,0,0,e,0,0,0,0,r,0,0,0,0,1])),(n!==0||i!==0||s!==0)&&this[bn](-n,-i,-s);}[cd](t=1,e=0,r=0,n=0){(e!==0||r!==0||n!==0)&&this[bn](e,r,n),t!==1&&this[qo](this.constructor[fn]([t,0,0,0,0,t,0,0,0,0,t,0,0,0,0,1])),(e!==0||r!==0||n!==0)&&this[bn](-e,-r,-n);}[pd](t=1,e=1){t===1&&e===1||this[qo](this.constructor[fn]([t,0,0,0,0,e,0,0,0,0,1,0,0,0,0,1]));}[wl](t=0,e=0,r=0,n=0){if(t=Number(t),e=Number(e),r=Number(r),n=Number(n),isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw new this[m].TypeError("Failed to execute 'rotateAxisAngleSelf' on 'DOMMatrix': The arguments must be numbers.");let i=Math.hypot(t,e,r);if(i===0)return;i!==1&&(t/=i,e/=i,r/=i);let s=-(n*Math.PI/360),l=this.#t,a=Math.sin(s)*Math.cos(s),u=Math.sin(s)*Math.sin(s),c=l(1-2*(e*e+r*r)*u),h=l(2*(t*e*u+r*a)),f=l(2*(t*r*u-e*a)),d=l(2*(t*e*u-r*a)),g=l(1-2*(t*t+r*r)*u),P=l(2*(e*r*u+t*a)),A=l(2*(t*r*u+e*a)),v=l(2*(e*r*u-t*a)),H=l(1-2*(t*t+e*e)*u),Q=this.constructor[fn]([c,d,A,0,h,g,v,0,f,P,H,0,0,0,0,1]);this[qo](Q);}[Al](t=0,e,r){if(e===void 0&&r===void 0&&(r=t,t=0,e=0),e===void 0&&(e=0),r===void 0&&(r=0),t=Number(t),e=Number(e),r=Number(r),isNaN(t)||isNaN(e)||isNaN(r))throw new this[m].TypeError("Failed to execute 'rotateSelf' on 'DOMMatrix': The arguments must be numbers.");r!==0&&this[wl](0,0,1,r),e!==0&&this[wl](0,1,0,e),t!==0&&this[wl](1,0,0,t);}[Kd](t=0,e=0){t===0&&e===0||this[Al](Math.atan2(e,t)*180/Math.PI);}[oc](t){let e=Object.assign({},Fh),r=Math.tan(t*Math.PI/180);e.m21=r,e.c=r,this[qo](e);}[nc](t){let e=Object.assign({},Fh),r=Math.tan(t*Math.PI/180);e.m12=r,e.b=r,this[qo](e);}[jd](){let t=this.constructor[fn]([-1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);this[qo](t);}[qd](){let t=this.constructor[fn]([1,0,0,0,0,-1,0,0,0,0,1,0,0,0,0,1]);this[qo](t);}[Yd](){let t=this[qt]*this[se]*this[ae]-this[qt]*this[ee]*this[le]-this[ie]*this[me]*this[ae]+this[ie]*this[he]*this[le]+this[Yt]*this[me]*this[ee]-this[Yt]*this[he]*this[se],e=-this[jt]*this[se]*this[ae]+this[jt]*this[ee]*this[le]+this[ie]*this[ce]*this[ae]-this[ie]*this[pe]*this[le]-this[Yt]*this[ce]*this[ee]+this[Yt]*this[pe]*this[se],r=this[jt]*this[me]*this[ae]-this[jt]*this[he]*this[le]-this[qt]*this[ce]*this[ae]+this[qt]*this[pe]*this[le]+this[Yt]*this[ce]*this[he]-this[Yt]*this[pe]*this[me],n=-this[jt]*this[me]*this[ee]+this[jt]*this[he]*this[se]+this[qt]*this[ce]*this[ee]-this[qt]*this[pe]*this[se]-this[ie]*this[ce]*this[he]+this[ie]*this[pe]*this[me],i=this[Ut]*t+this[Wt]*e+this[te]*r+this[zt]*n;if(i===0){this[Ut]=NaN,this[jt]=NaN,this[ce]=NaN,this[pe]=NaN,this[Wt]=NaN,this[qt]=NaN,this[me]=NaN,this[he]=NaN,this[te]=NaN,this[ie]=NaN,this[se]=NaN,this[ee]=NaN,this[zt]=NaN,this[Yt]=NaN,this[le]=NaN,this[ae]=NaN;return}let s=-this[Wt]*this[se]*this[ae]+this[Wt]*this[ee]*this[le]+this[te]*this[me]*this[ae]-this[te]*this[he]*this[le]-this[zt]*this[me]*this[ee]+this[zt]*this[he]*this[se],l=this[Ut]*this[se]*this[ae]-this[Ut]*this[ee]*this[le]-this[te]*this[ce]*this[ae]+this[te]*this[pe]*this[le]+this[zt]*this[ce]*this[ee]-this[zt]*this[pe]*this[se],a=-this[Ut]*this[me]*this[ae]+this[Ut]*this[he]*this[le]+this[Wt]*this[ce]*this[ae]-this[Wt]*this[pe]*this[le]-this[zt]*this[ce]*this[he]+this[zt]*this[pe]*this[me],u=this[Ut]*this[me]*this[ee]-this[Ut]*this[he]*this[se]-this[Wt]*this[ce]*this[ee]+this[Wt]*this[pe]*this[se]+this[te]*this[ce]*this[he]-this[te]*this[pe]*this[me],c=this[Wt]*this[ie]*this[ae]-this[Wt]*this[ee]*this[Yt]-this[te]*this[qt]*this[ae]+this[te]*this[he]*this[Yt]+this[zt]*this[qt]*this[ee]-this[zt]*this[he]*this[ie],h=-this[Ut]*this[ie]*this[ae]+this[Ut]*this[ee]*this[Yt]+this[te]*this[jt]*this[ae]-this[te]*this[pe]*this[Yt]-this[zt]*this[jt]*this[ee]+this[zt]*this[pe]*this[ie],f=this[Ut]*this[qt]*this[ae]-this[Ut]*this[he]*this[Yt]-this[Wt]*this[jt]*this[ae]+this[Wt]*this[pe]*this[Yt]+this[zt]*this[jt]*this[he]-this[zt]*this[pe]*this[qt],d=-this[Ut]*this[qt]*this[ee]+this[Ut]*this[he]*this[ie]+this[Wt]*this[jt]*this[ee]-this[Wt]*this[pe]*this[ie]-this[te]*this[jt]*this[he]+this[te]*this[pe]*this[qt],g=-this[Wt]*this[ie]*this[le]+this[Wt]*this[se]*this[Yt]+this[te]*this[qt]*this[le]-this[te]*this[me]*this[Yt]-this[zt]*this[qt]*this[se]+this[zt]*this[me]*this[ie],P=this[Ut]*this[ie]*this[le]-this[Ut]*this[se]*this[Yt]-this[te]*this[jt]*this[le]+this[te]*this[ce]*this[Yt]+this[zt]*this[jt]*this[se]-this[zt]*this[ce]*this[ie],A=-this[Ut]*this[qt]*this[le]+this[Ut]*this[me]*this[Yt]+this[Wt]*this[jt]*this[le]-this[Wt]*this[ce]*this[Yt]-this[zt]*this[jt]*this[me]+this[zt]*this[ce]*this[qt],v=this[Ut]*this[qt]*this[se]-this[Ut]*this[me]*this[ie]-this[Wt]*this[jt]*this[se]+this[Wt]*this[ce]*this[ie]+this[te]*this[jt]*this[me]-this[te]*this[ce]*this[qt];this[Ut]=t/i||0,this[jt]=e/i||0,this[ce]=r/i||0,this[pe]=n/i||0,this[Wt]=s/i||0,this[qt]=l/i||0,this[me]=a/i||0,this[he]=u/i||0,this[te]=c/i||0,this[ie]=h/i||0,this[se]=f/i||0,this[ee]=d/i||0,this[zt]=g/i||0,this[Yt]=P/i||0,this[le]=A/i||0,this[ae]=v/i||0;}[ud](t=false){return t?[this[Ut],this[jt],this[Wt],this[qt],this[zt],this[Yt]]:[this[Ut],this[jt],this[ce],this[pe],this[Wt],this[qt],this[me],this[he],this[te],this[ie],this[se],this[ee],this[zt],this[Yt],this[le],this[ae]]}#t(t,e=1e15){return Math.round(t*e)/e}static fromMatrix(t){return t instanceof o||(t?.m11===void 0&&t?.a!==void 0?(t=Object.assign({},Fh,t),t.m11=t.a,t.m12=t.b,t.m21=t.c,t.m22=t.d,t.m41=t.e,t.m42=t.f):t=Object.assign({},Fh,t)),this[fn]([t.m11,t.m12,t.m13,t.m14,t.m21,t.m22,t.m23,t.m24,t.m31,t.m32,t.m33,t.m34,t.m41,t.m42,t.m43,t.m44])}static fromFloat32Array(t){return this[fn](t)}static fromFloat64Array(t){return this[fn](t)}static[fn](t){if(!(t instanceof Float64Array||t instanceof Float32Array||Array.isArray(t))||t.length!==6&&t.length!==16)throw TypeError(`Failed to execute 'fromArray' on '${this.name}': '${String(t)}' is not a compatible array.`);let e=new this;if(t.length===16){let[r,n,i,s,l,a,u,c,h,f,d,g,P,A,v,H]=t;e[Ut]=r,e[jt]=n,e[ce]=i,e[pe]=s,e[Wt]=l,e[qt]=a,e[me]=u,e[he]=c,e[te]=h,e[ie]=f,e[se]=d,e[ee]=g,e[zt]=P,e[Yt]=A,e[le]=v,e[ae]=H;}else if(t.length===6){let[r,n,i,s,l,a]=t;e[Ut]=r,e[jt]=n,e[Wt]=i,e[qt]=s,e[zt]=l,e[Yt]=a;}return e}static[rc](t){if(typeof t!="string")throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Expected '${String(t)}' to be a string.`);let e=new this,r=new RegExp(jF),n;for(;n=r.exec(t);){let i=n[1],s=n[2].split(qF);for(let h=0,f=s.length;h<f;h++)s[h]=this[Vw](s[h]);let[l,a,u,c]=s;switch(i){case "perspective":!isNaN(l)&&l!==0&&a===void 0&&u===void 0&&(e[ee]=-1/l);break;case "translate":!isNaN(l)&&u===void 0&&e[bn](l,a||0,0);break;case "translate3d":!isNaN(l)&&!isNaN(a)&&!isNaN(u)&&e[bn](l,a,u);break;case "translateX":!isNaN(l)&&a===void 0&&u===void 0&&e[bn](l);break;case "translateY":!isNaN(l)&&a===void 0&&u===void 0&&e[bn](0,l);break;case "translateZ":!isNaN(l)&&a===void 0&&u===void 0&&e[bn](0,0,l);break;case "matrix":case "matrix3d":(s.length===6||s.length===16)&&e[Cp](this[fn](s));break;case "rotate":case "rotateZ":!isNaN(l)&&a===void 0&&u===void 0&&e[Al](0,0,l);break;case "rotateX":!isNaN(l)&&a===void 0&&u===void 0&&e[Al](l,0,0);break;case "rotateY":!isNaN(l)&&a===void 0&&u===void 0&&e[Al](0,l,0);case "rotate3d":!isNaN(l)&&!isNaN(a)&&!isNaN(u)&&!isNaN(c)&&e[wl](l,a,u,c);break;case "scale":!isNaN(l)&&l!==1&&u===void 0&&e[As](l,isNaN(a)?l:a);break;case "scale3d":!isNaN(l)&&!isNaN(a)&&!isNaN(u)&&e[As](l,a,u);break;case "scaleX":!isNaN(l)&&a===void 0&&u===void 0&&e[As](l,1,1);break;case "scaleY":!isNaN(l)&&a===void 0&&u===void 0&&e[As](1,l,1);break;case "scaleZ":!isNaN(l)&&a===void 0&&u===void 0&&e[As](1,1,l);break;case "skew":isNaN(l)||e[oc](l),isNaN(a)||e[nc](a);break;case "skewX":!isNaN(l)&&a===void 0&&e[oc](l);break;case "skewY":!isNaN(l)&&a===void 0&&e[nc](l);break;default:throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Unknown transform function '${n[1]}'.`)}}return e}static[Vw](t){let e=parseFloat(t);switch(t.replace(e.toString(),"")){case "rem":case "em":case "vw":case "vh":case "%":case "vmin":case "vmax":throw new SyntaxError(`Failed to construct '${this.name}': Lengths must be absolute, not relative`);case "rad":return e*(180/Math.PI);case "turn":return e*360;case "px":return e;case "cm":return e*37.7812;case "mm":return e*3.7781;case "in":return e*96;case "pt":return e*1.3281;case "pc":return e*16;case "Q":return e*.945;default:return e}}};chunkBUNLC3II_cjs.h();var Jl=class extends Bc{get a(){return this[Ut]}set a(t){this[Ut]=t;}get b(){return this[jt]}set b(t){this[jt]=t;}get c(){return this[Wt]}set c(t){this[Wt]=t;}get d(){return this[qt]}set d(t){this[qt]=t;}get e(){return this[zt]}set e(t){this[zt]=t;}get f(){return this[Yt]}set f(t){this[Yt]=t;}get m11(){return this[Ut]}set m11(t){this[Ut]=t;}get m12(){return this[jt]}set m12(t){this[jt]=t;}get m13(){return this[ce]}set m13(t){this[ce]=t;}get m14(){return this[pe]}set m14(t){this[pe]=t;}get m21(){return this[Wt]}set m21(t){this[Wt]=t;}get m22(){return this[qt]}set m22(t){this[qt]=t;}get m23(){return this[me]}set m23(t){this[me]=t;}get m24(){return this[he]}set m24(t){this[he]=t;}get m31(){return this[te]}set m31(t){this[te]=t;}get m32(){return this[ie]}set m32(t){this[ie]=t;}get m33(){return this[se]}set m33(t){this[se]=t;}get m34(){return this[ee]}set m34(t){this[ee]=t;}get m41(){return this[zt]}set m41(t){this[zt]=t;}get m42(){return this[Yt]}set m42(t){this[Yt]=t;}get m43(){return this[le]}set m43(t){this[le]=t;}get m44(){return this[ae]}set m44(t){this[ae]=t;}setMatrixValue(t){return this[Cp](t),this}multiplySelf(t){return this[qo](t),this}translateSelf(t=0,e=0,r=0){return this[bn](t,e,r),this}scaleSelf(t,e,r=1,n=0,i=0,s=0){return this[As](t,e,r,n,i,s),this}scale3dSelf(t=1,e=0,r=0,n=0){return this[cd](t,e,r,n),this}scaleNonUniformSelf(t=1,e=1){return this[pd](t,e),this}rotateAxisAngleSelf(t=0,e=0,r=0,n=0){return this[wl](t,e,r,n),this}rotateSelf(t=0,e,r){return this[Al](t,e,r),this}rotateFromVectorSelf(t=0,e=0){return this[Kd](t,e),this}skewXSelf(t){return this[oc](t),this}skewYSelf(t){return this[nc](t),this}flipXSelf(){return this[jd](),this}flipYSelf(){return this[qd](),this}invertSelf(){return this[Yd](),this}preMultiplySelf(t){return this[qo](t),this}};chunkBUNLC3II_cjs.h();var Vc=class{[R]=0;[D]=0;[po]=0;[ec]=1;constructor(t,e,r,n){this[R]=t!=null?Number(t):0,this[D]=e!=null?Number(e):0,this[po]=r!=null?Number(r):0,this[ec]=n!=null?Number(n):1;}get x(){return this[R]}get y(){return this[D]}get z(){return this[po]}get w(){return this[ec]}toJSON(){return {x:this.x,y:this.y,z:this.z,w:this.w}}static fromPoint(t){return t?new this(t.x??null,t.y??null,t.z??null,t.w??null):new this}matrixTransform(t){let e=new this[m].DOMMatrixReadOnly(t),r=this.x*e.m11+this.y*e.m21+this.z*e.m31+this.w*e.m41,n=this.x*e.m12+this.y*e.m22+this.z*e.m32+this.w*e.m42,i=this.x*e.m13+this.y*e.m23+this.z*e.m33+this.w*e.m43,s=this.x*e.m14+this.y*e.m24+this.z*e.m34+this.w*e.m44;return new this.constructor(r,n,i,s)}};chunkBUNLC3II_cjs.h();var Df=class extends Vc{set x(t){this[R]=t;}get x(){return this[R]}set y(t){this[D]=t;}get y(){return this[D]}set z(t){this[po]=t;}get z(){return this[po]}set w(t){this[ec]=t;}get w(){return this[ec]}};var Of=class{static extendClasses(t){class e extends zs{}e.prototype[m]=t,t.Document=e;class r extends yh{}r.prototype[m]=t,t.HTMLDocument=r;class n extends dh{}n.prototype[m]=t,t.XMLDocument=n;class i extends du{}i.prototype[m]=t,t.DocumentFragment=i;class s extends fh{}s.prototype[m]=t,t.Text=s;class l extends bh{}l.prototype[m]=t,t.Comment=l;class a extends gh{}a.prototype[m]=t,t.Image=a;class u extends Tf{}u.prototype[m]=t,t.Audio=u;class c extends Sh{}c.prototype[m]=t,t.MutationObserver=c;class h extends kf{}h.prototype[m]=t,t.MessagePort=h;class f extends Ah{}f.prototype[m]=t,t.CSSStyleSheet=f;class d extends ye{}t.DOMException=d;class g extends Di{}g.prototype[m]=t,t.Headers=g;class P extends nu{}P.prototype[m]=t,t.Request=P;class A extends on{}A.prototype[m]=t,A[m]=t,t.Response=A;class v extends Dt{}v.prototype[m]=t,t.EventTarget=v;class H extends Nf{}H.prototype[m]=t,t.XMLHttpRequestUpload=H;class Q extends ql{}Q.prototype[m]=t,t.XMLHttpRequestEventTarget=Q;class U extends wh{}U.prototype[m]=t,t.AbortController=U;class j extends xh{}j.prototype[m]=t,j[m]=t,t.AbortSignal=j;class at extends ru{}at.prototype[m]=t,t.FormData=at;class X extends Eh{}X.prototype[m]=t,t.PermissionStatus=X;class Ct extends Lf{}Ct.prototype[m]=t,t.XMLHttpRequest=Ct;class Nt extends Ch{}Nt.prototype[m]=t,t.DOMParser=Nt;class xe extends kh{}xe.prototype[m]=t,t.Range=xe;class nr extends Nh{}nr.prototype[m]=t,t.VTTCue=nr;class Fr extends Lh{}Fr.prototype[m]=t,t.TextTrack=Fr;class ze extends Mh{}ze.prototype[m]=t,t.TextTrackList=ze;class ir extends Pu{}ir.prototype[m]=t,t.TextTrackCue=ir;class Ee extends Ih{}Ee.prototype[m]=t,t.RemotePlayback=Ee;class Wn extends Rh{}Wn.prototype[m]=t,t.FileReader=Wn;class sg extends lu{}sg.prototype[m]=t,t.MediaStream=sg;class mr extends wu{}mr.prototype[m]=t,t.MediaStreamTrack=mr;class pn extends Rf{}pn.prototype[m]=t,t.CanvasCaptureMediaStreamTrack=pn;class ua extends Ve{}ua.prototype[m]=t,t.URL=ua;class lg extends Dh{}lg.prototype[m]=t,t.WebSocket=lg;class jh extends Oh{}jh.prototype[m]=t,t.ImageData=jh;class ag extends Vs{}ag.prototype[m]=t,t.OffscreenCanvas=ag;class ug extends Bc{}ug.prototype[m]=t,t.DOMMatrixReadOnly=ug;class _E extends Jl{}_E.prototype[m]=t,t.DOMMatrix=_E;class $E extends Vc{}$E.prototype[m]=t,t.DOMPointReadOnly=$E;class KE extends Df{}KE.prototype[m]=t,t.DOMPoint=KE;}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var YF=/[\t\f\n\r ,]+/,Ki=class o{[m];[N];[T];[tt]=false;[_]={items:[],attributeValue:""};constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");if(this[m]=e,this[tt]=!!r.readOnly,this[N]=r.getAttribute,this[T]=r.setAttribute,t!==b)throw new TypeError("Illegal constructor");let n=new Re(this,[o]);return new Proxy(this,{get:(i,s)=>{if(s==="length"||s==="numberOfItems")return i[Y]().length;if(s in i||typeof s=="symbol")return n.bind(s),i[s];let l=Number(s);if(!isNaN(l))return i[Y]()[l]},set(i,s,l){if(n.bind(s),typeof s=="symbol")return i[s]=l,true;let a=Number(s);return isNaN(a)&&(i[s]=l),true},deleteProperty(i,s){if(typeof s=="symbol")return delete i[s],true;let l=Number(s);return isNaN(l)&&delete i[s],true},ownKeys(i){return Object.keys(i[Y]())},has(i,s){if(s in i)return true;if(typeof s=="symbol")return false;let l=Number(s);return !isNaN(l)&&l>=0&&l<i[Y]().length},defineProperty(i,s,l){return n.preventBinding(s),s in i?(Object.defineProperty(i,s,l),true):false},getOwnPropertyDescriptor(i,s){if(s in i||typeof s=="symbol")return;let l=Number(s),a=i[Y]();if(!isNaN(l)&&a[l])return {value:a[l],writable:false,enumerable:true,configurable:true}}})}get length(){return this[Y]().length}get numberOfItems(){return this[Y]().length}[Symbol.iterator](){return this[Y]().values()}clear(){this[_].attributeValue="",this[_].items=[],this[T]("");}initialize(t){if(this[tt])throw new this[m].TypeError("Failed to execute 'initialize' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'initialize' on 'SVGStringList': 1 arguments required, but only ${arguments.length} present.`);if(t=String(t),!t){this.clear();return}return this[T](t),t}getItem(t){let e=this[Y]();return typeof t=="number"||(t=Number(t),t=isNaN(t)?0:t),e[t]?e[t]:null}insertItemBefore(t,e){if(this[tt])throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGStringList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertItemBefore' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(t=String(t),!t)return t;let r=this[Y](),n=r.indexOf(t);return n!==-1&&r.splice(n,1),e<0?e=0:e>r.length&&(e=r.length),r.splice(e,0,t),this[T](r.join(" ")),t}replaceItem(t,e){if(this[tt])throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGStringList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceItem' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(t=String(t),!t)return this.removeItem(e);let r=this[Y]();e<0?e=0:e>=r.length&&(e=r.length-1);let n=r[e];return r[e]=t,this[T](r.join(" ")),n}removeItem(t){if(this[tt])throw new this[m].TypeError("Failed to execute 'removeItem' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'removeItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`);let e=this[Y]();if(t=Number(t),isNaN(t)&&(t=0),t>=e.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${t}) is greater than the maximum bound.`,C.indexSizeError);if(t<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${t}) is negative.`,C.indexSizeError);let r=e[t];return e.splice(t,1),this[T](e.join(" ")),r}appendItem(t){if(this[tt])throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'appendItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`);if(t=String(t),!t)return t;let e=this[Y](),r=e.indexOf(t);return r!==-1&&e.splice(r,1),e.push(t),this[T](e.join(" ")),t}[Y](){let t=this[N]()??"",e=this[_];if(e.attributeValue===t)return e.items;let r=[],n=t.trim();if(n)for(let i of n.split(YF))r.includes(i)||r.push(i);return e.attributeValue=t,e.items=r,r}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var QF=/([a-zA-Z0-9]+)\(([^)]+)\)/,JF=/[\s,]+/,$s=class o{[m];[N]=null;[T]=null;[O]=null;[tt]=false;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,r&&(this[tt]=!!r.readOnly,this[N]=r.getAttribute||null,this[T]=r.setAttribute||null);}get a(){return this[Ye]().a}set a(t){if(this[tt])return;let e=this[Ye]();e.a=t,this[Gr](e);}get b(){return this[Ye]().b}set b(t){if(this[tt])return;let e=this[Ye]();e.b=t,this[Gr](e);}get c(){return this[Ye]().c}set c(t){if(this[tt])return;let e=this[Ye]();e.c=t,this[Gr](e);}get d(){return this[Ye]().d}set d(t){if(this[tt])return;let e=this[Ye]();e.d=t,this[Gr](e);}get e(){return this[Ye]().e}set e(t){if(this[tt])return;let e=this[Ye]();e.e=t,this[Gr](e);}get f(){return this[Ye]().f}set f(t){if(this[tt])return;let e=this[Ye]();e.f=t,this[Gr](e);}multiply(t){if(!(t instanceof o))throw new this[m].TypeError("Failed to execute 'multiply' on 'SVGMatrix': parameter 1 is not of type 'SVGMatrix'.");let e=this[Ye](),r=new o(b,this[m]);return e.multiplySelf(t[Ye]()),r[Gr](e),r}translate(t=0,e=0){let r=this[Ye](),n=new o(b,this[m]);return r.translateSelf(t,e),n[Gr](r),n}scale(t){let e=this[Ye](),r=new o(b,this[m]);return e.scaleSelf(t),r[Gr](e),r}scaleNonUniform(t=1,e=1){let r=this[Ye](),n=new o(b,this[m]);return r.scaleNonUniformSelf(t,e),n[Gr](r),n}rotate(t){let e=this[Ye](),r=new o(b,this[m]);return e.rotateSelf(t),r[Gr](e),r}rotateFromVector(t=0,e=0){let r=this[Ye](),n=new o(b,this[m]);return r.rotateFromVectorSelf(t,e),n[Gr](r),n}skewX(t){let e=this[Ye](),r=new o(b,this[m]);return e.skewXSelf(t),r[Gr](e),r}skewY(t){let e=this[Ye](),r=new o(b,this[m]);return e.skewYSelf(t),r[Gr](e),r}flipX(){let t=this[Ye](),e=new o(b,this[m]);return t.flipXSelf(),e[Gr](t),e}flipY(){let t=this[Ye](),e=new o(b,this[m]);return t.flipYSelf(),e[Gr](t),e}inverse(){let t=this[Ye](),e=new o(b,this[m]);return t.invertSelf(),e[Gr](t),e}[Ye](){let t=this[N]?this[N]():this[O],e=this[m];if(!t)return new e.DOMMatrix;let r=t.match(QF);if(!r)return new e.DOMMatrix;let n=[];for(let i of r[2].trim().split(JF)){let s=Number(i);if(isNaN(s))throw new e.TypeError(`Failed to parse transform attribute: Expected number, but got "${i}" in "${t}".`);n.push(s);}switch(r[1]){case "matrix":if(n.length!==6)throw new e.TypeError(`Failed to parse transform attribute: Expected 6 parameters in "${t}".`);return Jl[rc](t);case "scale":case "translate":if(n.length!==1&&n.length!==2)throw new e.TypeError(`Failed to parse transform attribute: Expected 1 or 2 parameters in "${t}".`);return Jl[rc](t);case "skewY":case "skewX":if(n.length!==1)throw new e.TypeError(`Failed to parse transform attribute: Expected 1 parameter in "${t}".`);return Jl[rc](t);case "rotate":let i=new e.DOMMatrix;if(n.length!==1&&n.length!==3)throw new e.TypeError(`Failed to parse transform attribute: Expected 1 or 3 parameters in "${t}".`);let[s,l,a]=n;(l||a)&&i.translateSelf(l,a);let u=s*Math.PI/180;return i.multiplySelf(new e.DOMMatrix([Math.cos(u),Math.sin(u),-Math.sin(u),Math.cos(u),0,0])),(l||a)&&i.translateSelf(-l,-a),i;default:throw new this[m].TypeError(`Failed to parse transform attribute: Unknown transformation "${t}".`)}}[Gr](t){this[O]=t.toString().replace(/, /g," "),this[T]&&this[T](this[O]);}};chunkBUNLC3II_cjs.h();var zx;(function(o){o[o.unknown=0]="unknown",o[o.matrix=1]="matrix",o[o.translate=2]="translate",o[o.scale=3]="scale",o[o.rotate=4]="rotate",o[o.skewX=5]="skewX",o[o.skewY=6]="skewY";})(zx||(zx={}));var un=zx;var m0=/([a-zA-Z0-9]+)\(([^)]+)\)/,XF=/[\s,]+/,wn=class{static SVG_TRANSFORM_UNKNOWN=un.unknown;static SVG_TRANSFORM_MATRIX=un.matrix;static SVG_TRANSFORM_TRANSLATE=un.translate;static SVG_TRANSFORM_SCALE=un.scale;static SVG_TRANSFORM_ROTATE=un.rotate;static SVG_TRANSFORM_SKEWX=un.skewX;static SVG_TRANSFORM_SKEWY=un.skewY;[m];[N]=null;[T]=null;[O]=null;[tt]=false;[xl]=null;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,r&&(this[tt]=!!r.readOnly,this[N]=r.getAttribute||null,this[T]=r.setAttribute||null);}get type(){let e=(this[N]?this[N]():this[O])?.match(m0);if(!e)return un.unknown;switch(e[1]){case "matrix":return un.matrix;case "translate":return un.translate;case "rotate":return un.rotate;case "scale":return un.scale;case "skewX":return un.skewX;case "skewY":return un.skewY}return 0}get angle(){let e=(this[N]?this[N]():this[O])?.match(m0);if(!e)return 0;let r=parseFloat(e[2].trim().split(XF)[0]);if(isNaN(r))return 0;switch(e[1]){case "rotate":case "skewX":case "skewY":return r}return 0}get matrix(){return this[xl]||(this[xl]=new $s(b,this[m],{readOnly:this[tt],getAttribute:()=>this[N]?this[N]():this[O],setAttribute:t=>{if(this[O]=t,this[T]){this[T](t);return}}})),this[xl]}setMatrix(t){if(!(t instanceof $s))throw new TypeError('Failed to set the "matrix" property on "SVGTransform": The provided value is not of type "SVGMatrix".');this[tt]||(this[xl]&&(this[xl][N]=null,this[xl][T]=null),t[N]=()=>this[N]?this[N]():this[O],t[T]=e=>{if(this[O]=e,this[T]){this[T](e);return}},this[xl]=t,t[O]!==this[O]&&(this[O]=t[O],this[T]&&this[T](this[O]||"")));}setTranslate(t,e){if(arguments.length<2)throw new TypeError(`Failed to execute 'setTranslate' on 'SVGTransform': 2 arguments required, but only ${arguments.length} present.`);if(t=Number(t),e=Number(e),isNaN(t)||isNaN(e))throw new TypeError("Failed to execute 'setTranslate' on 'SVGTransform': The provided float value is non-finite.");this[tt]||(this[O]=`translate(${t} ${e})`,this[T]&&this[T](this[O]));}setScale(t,e){if(arguments.length<2)throw new TypeError(`Failed to execute 'setScale' on 'SVGTransform': 2 arguments required, but only ${arguments.length} present.`);if(t=Number(t),e=Number(e),isNaN(t)||isNaN(e))throw new TypeError("Failed to execute 'setScale' on 'SVGTransform': The provided float value is non-finite.");this[tt]||(this[O]=`scale(${t} ${e})`,this[T]&&this[T](this[O]));}setRotate(t,e,r){if(arguments.length<3)throw new TypeError(`Failed to execute 'setRotate' on 'SVGTransform': 3 arguments required, but only ${arguments.length} present.`);if(t=Number(t),e=Number(e),r=Number(r),isNaN(t)||isNaN(e)||isNaN(r))throw new TypeError("Failed to execute 'setRotate' on 'SVGTransform': The provided float value is non-finite.");this[tt]||(this[O]=`rotate(${t} ${e} ${r})`,this[T]&&this[T](this[O]));}setSkewX(t){if(arguments.length<1)throw new TypeError(`Failed to execute 'setSkewX' on 'SVGTransform': 1 arguments required, but only ${arguments.length} present.`);if(t=Number(t),isNaN(t))throw new TypeError("Failed to execute 'setSkewX' on 'SVGTransform': The provided float value is non-finite.");this[tt]||(this[O]=`skewX(${t})`,this[T]&&this[T](this[O]));}setSkewY(t){if(arguments.length<1)throw new TypeError(`Failed to execute 'setSkewY' on 'SVGTransform': 1 arguments required, but only ${arguments.length} present.`);if(t=Number(t),isNaN(t))throw new TypeError("Failed to execute 'setSkewY' on 'SVGTransform': The provided float value is non-finite.");this[tt]||(this[O]=`skewY(${t})`,this[T]&&this[T](this[O]));}};var ZF=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,Xl="matrix(1 0 0 1 0 0)",xu=class o{[m];[N];[T];[tt]=false;[_]={items:[],attributeValue:""};constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[tt]=!!r.readOnly,this[N]=r.getAttribute,this[T]=r.setAttribute;let n=new Re(this,[o]);return new Proxy(this,{get:(i,s)=>{if(s==="length"||s==="numberOfItems")return i[Y]().length;if(s in i||typeof s=="symbol")return n.bind(s),i[s];let l=Number(s);if(!isNaN(l))return i[Y]()[l]},set(i,s,l){if(n.bind(s),typeof s=="symbol")return i[s]=l,true;let a=Number(s);return isNaN(a)&&(i[s]=l),true},deleteProperty(i,s){if(typeof s=="symbol")return delete i[s],true;let l=Number(s);return isNaN(l)&&delete i[s],true},ownKeys(i){return Object.keys(i[Y]())},has(i,s){if(s in i)return true;if(typeof s=="symbol")return false;let l=Number(s);return !isNaN(l)&&l>=0&&l<i[Y]().length},defineProperty(i,s,l){return n.preventBinding(s),s in i?(Object.defineProperty(i,s,l),true):false},getOwnPropertyDescriptor(i,s){if(s in i||typeof s=="symbol")return;let l=Number(s),a=i[Y]();if(!isNaN(l)&&a[l])return {value:a[l],writable:false,enumerable:true,configurable:true}}})}get length(){return this[Y]().length}get numberOfItems(){return this[Y]().length}[Symbol.iterator](){return this[Y]().values()}clear(){if(this[tt])throw new this[m].TypeError("Failed to execute 'clear' on 'SVGTransformList': The object is read-only.");for(let t of this[_].items)t[N]=null,t[T]=null;this[_].items=[],this[_].attributeValue="",this[T]("");}initialize(t){if(this[tt])throw new this[m].TypeError("Failed to execute 'initialize' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'initialize' on 'SVGTransformList': 1 arguments required, but only ${arguments.length} present.`);if(!(t instanceof wn))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");for(let e of this[_].items)e[N]=null,e[T]=null;return t[N]=()=>t[O],t[T]=()=>{this[_].attributeValue=this[Y]().map(e=>e[O]||Xl).join(" "),this[T](this[_].attributeValue);},this[_].items=[t],this[_].attributeValue=t[O],this[T](t[O]||""),t}getItem(t){let e=this[Y]();return typeof t=="number"||(t=Number(t),t=isNaN(t)?0:t),e[t]?e[t]:null}insertItemBefore(t,e){if(this[tt])throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGTransformList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertItemBefore' on 'SVGTransformList': 2 arguments required, but only ${arguments.length} present.`);if(!(t instanceof wn))throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let r=this[Y](),n=r.indexOf(t);return n!==-1&&r.splice(n,1),e<0?e=0:e>r.length&&(e=r.length),r.splice(e,0,t),t[N]=()=>t[O],t[T]=()=>{this[_].attributeValue=this[Y]().map(i=>i[O]||Xl).join(" "),this[T](this[_].attributeValue);},this[_].attributeValue=r.map(i=>i[O]||Xl).join(" "),this[T](this[_].attributeValue),t}replaceItem(t,e){if(this[tt])throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceItem' on 'SVGTransformList': 2 arguments required, but only ${arguments.length} present.`);if(!(t instanceof wn))throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let r=this[Y](),n=r.indexOf(t);if(n===e)return t;n!==-1&&r.splice(n,1),e<0?e=0:e>=r.length&&(e=r.length-1),r[e]&&(r[e][N]=null,r[e][T]=null);let i=r[e];return r[e]=t,t[N]=()=>t[O],t[T]=()=>{this[_].attributeValue=this[Y]().map(s=>s[O]||Xl).join(" "),this[T](this[_].attributeValue);},this[_].attributeValue=r.map(s=>s[O]||Xl).join(" "),this[T](this[_].attributeValue),i}removeItem(t){if(this[tt])throw new this[m].TypeError("Failed to execute 'removeItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'removeItem' on 'SVGTransformList': 1 argument required, but only ${arguments.length} present.`);let e=this[Y]();if(t=Number(t),isNaN(t)&&(t=0),t>=e.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${t}) is greater than the maximum bound.`,C.indexSizeError);if(t<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${t}) is negative.`,C.indexSizeError);let r=e[t];return r&&(r[N]=null,r[T]=null),e.splice(t,1),this[_].attributeValue=e.map(n=>n[O]||Xl).join(" "),this[T](this[_].attributeValue),r}appendItem(t){if(this[tt])throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'appendItem' on 'SVGTransformList': 1 argument required, but only ${arguments.length} present.`);if(!(t instanceof wn))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let e=this[Y](),r=e.indexOf(t);return r!==-1&&e.splice(r,1),e.push(t),t[N]=()=>t[O],t[T]=()=>{this[_].attributeValue=this[Y]().map(n=>n[O]||Xl).join(" "),this[T](this[_].attributeValue);},this[_].attributeValue=e.map(n=>n[O]||Xl).join(" "),this[T](this[_].attributeValue),t}[Y](){let t=this[N]()??"",e=this[_];if(e.attributeValue===t)return e.items;if(e.items.length)for(let i of e.items)i[N]=null,i[T]=null;let r=[],n=t.trim();if(n){let i=new RegExp(ZF),s;for(;s=i.exec(n);){let l=new wn(b,this[m],{readOnly:this[tt],getAttribute:()=>l[O],setAttribute:()=>{this[_].attributeValue=this[Y]().map(a=>a[O]||Xl).join(" "),this[T](this[_].attributeValue);}});l[O]=`${s[1]}(${s[2]})`,r.push(l);}}return e.attributeValue=t,e.items=r,r}};var ji=class{[m];[N];[T];[be]=null;[ge]=null;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[N]=r.getAttribute,this[T]=r.setAttribute;}get animVal(){return this[ge]||(this[ge]=new xu(b,this[m],{readOnly:true,getAttribute:this[N],setAttribute:()=>{}})),this[ge]}set animVal(t){}get baseVal(){return this[be]||(this[be]=new xu(b,this[m],{getAttribute:this[N],setAttribute:this[T]})),this[be]}set baseVal(t){}};var Fe=class extends pt{[as]=null;[us]=null;[Hy]=null;get oncopy(){return x.getEventListener(this,"oncopy")}set oncopy(t){this[y].set("oncopy",t);}get oncut(){return x.getEventListener(this,"oncut")}set oncut(t){this[y].set("oncut",t);}get onpaste(){return x.getEventListener(this,"onpaste")}set onpaste(t){this[y].set("onpaste",t);}get requiredExtensions(){return this[as]||(this[as]=new Ki(b,this[m],{getAttribute:()=>this.getAttribute("requiredExtensions"),setAttribute:t=>this.setAttribute("requiredExtensions",t)})),this[as]}get systemLanguage(){return this[us]||(this[us]=new Ki(b,this[m],{getAttribute:()=>this.getAttribute("systemLanguage"),setAttribute:t=>this.setAttribute("systemLanguage",t)})),this[us]}get transform(){return this[Hy]||(this[Hy]=new ji(b,this[m],{getAttribute:()=>this.getAttribute("transform"),setAttribute:t=>this.setAttribute("transform",t)})),this[Hy]}getBBox(){return new pi}getCTM(){return new this[m].DOMMatrix}getScreenCTM(){return new this[m].DOMMatrix}};chunkBUNLC3II_cjs.h();var yi=class{[m];[N]=null;[T]=null;[O]=null;[tt]=false;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,r&&(this[tt]=!!r.readOnly,this[N]=r.getAttribute||null,this[T]=r.setAttribute||null);}get x(){let t=this[N]?this[N]():this[O];if(!t)return 0;let e=t.split(/\s+/),r=Number(e[0]);return isNaN(r)?0:r}set x(t){if(this[tt])throw new this[m].TypeError("Failed to set the 'x' property on 'SVGRect': The object is read-only.");this[O]=`${String(typeof t=="number"?t:parseFloat(t))} ${this.y} ${this.width} ${this.height}`,this[T]&&this[T](this[O]);}get y(){let t=this[N]?this[N]():this[O];if(!t)return 0;let e=t.split(/\s+/),r=Number(e[1]);return isNaN(r)?0:r}set y(t){if(this[tt])throw new this[m].TypeError("Failed to set the 'y' property on 'SVGRect': The object is read-only.");this[O]=`${this.x} ${String(typeof t=="number"?t:parseFloat(t))} ${this.width} ${this.height}`,this[T]&&this[T](this[O]);}get width(){let t=this[N]?this[N]():this[O];if(!t)return 0;let e=t.split(/\s+/),r=Number(e[2]);return isNaN(r)?0:r}set width(t){if(this[tt])throw new this[m].TypeError("Failed to set the 'width' property on 'SVGRect': The object is read-only.");this[O]=`${this.x} ${this.y} ${String(typeof t=="number"?t:parseFloat(t))} ${this.height}`,this[T]&&this[T](this[O]);}get height(){let t=this[N]?this[N]():this[O];if(!t)return 0;let e=t.split(/\s+/),r=Number(e[3]);return isNaN(r)?0:r}set height(t){if(this[tt])throw new this[m].TypeError("Failed to set the 'height' property on 'SVGRect': The object is read-only.");this[O]=`${this.x} ${this.y} ${this.width} ${String(typeof t=="number"?t:parseFloat(t))}`,this[T]&&this[T](this[O]);}};chunkBUNLC3II_cjs.h();var h0=/[\t\f\n\r, ]+/,Tr=class{[m];[N]=null;[T]=null;[O]=null;[tt]=false;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,r&&(this[tt]=!!r.readOnly,this[N]=r.getAttribute||null,this[T]=r.setAttribute||null);}get x(){let e=((this[N]?this[N]():this[O])||"").split(h0);return e[0]?parseFloat(e[0]):0}set x(t){if(this[tt])throw new this[m].TypeError("Failed to set the 'x' property on 'SVGPoint': The object is read-only.");this[O]=`${t} ${this.y}`,this[T]&&this[T](this[O]);}get y(){let e=((this[N]?this[N]():this[O])||"").split(h0);return e[1]?parseFloat(e[1]):0}set y(t){if(this[tt])throw new this[m].TypeError("Failed to set the 'y' property on 'SVGPoint': The object is read-only.");this[O]=`${this.x} ${t}`,this[T]&&this[T](this[O]);}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var _x;(function(o){o[o.unknown=0]="unknown",o[o.number=1]="number",o[o.percentage=2]="percentage",o[o.ems=3]="ems",o[o.exs=4]="exs",o[o.px=5]="px",o[o.cm=6]="cm",o[o.mm=7]="mm",o[o.in=8]="in",o[o.pt=9]="pt",o[o.pc=10]="pc";})(_x||(_x={}));var It=_x;var y0=/^(\d+|\d+\.\d+)(px|em|ex|cm|mm|in|pt|pc|%|)$/,di=class{static SVG_LENGTHTYPE_UNKNOWN=It.unknown;static SVG_LENGTHTYPE_NUMBER=It.number;static SVG_LENGTHTYPE_PERCENTAGE=It.percentage;static SVG_LENGTHTYPE_EMS=It.ems;static SVG_LENGTHTYPE_EXS=It.exs;static SVG_LENGTHTYPE_PX=It.px;static SVG_LENGTHTYPE_CM=It.cm;static SVG_LENGTHTYPE_MM=It.mm;static SVG_LENGTHTYPE_IN=It.in;static SVG_LENGTHTYPE_PT=It.pt;static SVG_LENGTHTYPE_PC=It.pc;[m];[N]=null;[T]=null;[O]=null;[tt]=false;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,r&&(this[tt]=!!r.readOnly,this[N]=r.getAttribute||null,this[T]=r.setAttribute||null);}get unitType(){let e=(this[N]?this[N]()||"":this[O]||"").match(y0);if(!e)return It.unknown;if(isNaN(parseFloat(e[1])))return It.unknown;switch(e[2]){case "":return It.number;case "px":return It.px;case "cm":return It.cm;case "mm":return It.mm;case "in":return It.in;case "pt":return It.pt;case "pc":return It.pc;case "em":case "ex":case "%":throw new this[m].TypeError("Failed to execute 'value' on 'SVGLength': Could not resolve relative length.");default:return It.unknown}}get value(){let e=(this[N]?this[N]()||"":this[O]||"").match(y0);if(!e)return 0;let r=parseFloat(e[1]);if(isNaN(r))return 0;switch(e[2]){case "":return r;case "px":return r;case "cm":return r/2.54*96;case "mm":return r/25.4*96;case "in":return r*96;case "pt":return r*72;case "pc":return r*6;case "em":case "ex":case "%":throw new this[m].TypeError("Failed to execute 'value' on 'SVGLength': Could not resolve relative length.");default:return 0}}set value(t){if(this[tt])throw new this[m].TypeError("Failed to set the 'value' property on 'SVGLength': The object is read-only.");if(t=typeof t!="number"?parseFloat(String(t)):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'value' property on 'SVGLength': The provided float value is non-finite.");let e="",r=t;switch(this.unitType){case It.number:r=t,e="";break;case It.px:r=t,e="px";break;case It.cm:r=t/96*2.54,e="cm";break;case It.mm:r=t/96*25.4,e="mm";break;case It.in:r=t/96,e="in";break;case It.pt:r=t/72,e="pt";break;case It.pc:r=t/6,e="pc";break;case It.percentage:case It.ems:case It.exs:throw new this[m].TypeError("Failed to set the 'value' property on 'SVGLength': Could not resolve relative length.");}this[O]=String(r)+e,this[T]&&this[T](this[O]);}get valueAsString(){return this[N]?this[N]()||"0":this[O]||"0"}get valueInSpecifiedUnits(){let t=this.valueAsString;return parseFloat(t)||0}newValueSpecifiedUnits(t,e){if(this[tt])throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The object is read-only.");if(typeof t!="number")throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.");if(e=typeof e!="number"?parseFloat(String(e)):e,isNaN(e))throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The provided float value is non-finite.");let r="";switch(t){case It.number:r="";break;case It.px:r="px";break;case It.cm:r="cm";break;case It.mm:r="mm";break;case It.in:r="in";break;case It.pt:r="pt";break;case It.pc:r="pc";break;case It.ems:case It.exs:case It.percentage:throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Could not resolve relative length.");}this[O]=String(e)+r,this[T]&&this[T](this[O]);}convertToSpecifiedUnits(t){if(this[tt])throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': The object is read-only.");if(typeof t!="number")throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.");let e=this.value,r="";switch(t){case It.number:r="";break;case It.px:r="px";break;case It.cm:e=e/96*2.54,r="cm";break;case It.mm:e=e/96*25.4,r="mm";break;case It.in:e=e/96,r="in";break;case It.pt:e=e/72,r="pt";break;case It.pc:e=e/6,r="pc";break;case It.percentage:case It.ems:case It.exs:throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': Could not resolve relative length.");}this[O]=String(e)+r,this[T]&&this[T](this[O]);}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var $x;(function(o){o[o.unknown=0]="unknown",o[o.unspecified=1]="unspecified",o[o.deg=2]="deg",o[o.rad=3]="rad",o[o.grad=4]="grad";})($x||($x={}));var He=$x;var d0=/^(\d+|\d+\.\d+)(deg|rad|grad|turn|)$/,Ks=class{static SVG_ANGLETYPE_UNKNOWN=He.unknown;static SVG_ANGLETYPE_UNSPECIFIED=He.unspecified;static SVG_ANGLETYPE_DEG=He.deg;static SVG_ANGLETYPE_RAD=He.rad;static SVG_ANGLETYPE_GRAD=He.grad;[m];[N]=null;[T]=null;[O]="";[tt]=false;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,r&&(this[tt]=!!r.readOnly,this[N]=r.getAttribute||null,this[T]=r.setAttribute||null);}get unitType(){let e=(this[N]?this[N]():this[O])?.match(d0);if(!e)return He.unknown;if(isNaN(parseFloat(e[1])))return He.unknown;switch(e[2]){case "":return He.unspecified;case "deg":return He.deg;case "rad":return He.rad;case "grad":return He.grad;case "turn":return He.unknown;default:return He.unspecified}}get value(){let e=(this[N]?this[N]():this[O])?.match(d0);if(!e)return 0;let r=parseFloat(e[1]);if(isNaN(r))return 0;switch(e[2]){case "":return r;case "deg":return r;case "rad":return r*(180/Math.PI);case "grad":return r*(180/200);case "turn":return r*360;default:return r}}set value(t){if(this[tt])throw new this[m].TypeError("Failed to set the 'value' property on 'SVGAngle': The object is read-only.");if(t=typeof t!="number"?parseFloat(String(t)):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'value' property on 'SVGAngle': The provided float value is non-finite.");let e="",r=t;switch(this.unitType){case He.unspecified:r=t,e="";break;case He.deg:r=t,e="deg";break;case He.rad:r=t/(180/Math.PI),e="rad";break;case He.grad:r=t/(180/200),e="grad";break;case He.unknown:r=t/360,e="turn";}this[O]=String(r)+e,this[T]&&this[T](this[O]);}get valueAsString(){return this[N]?this[N]()||"0":this[O]||"0"}get valueInSpecifiedUnits(){let t=this.valueAsString;return parseFloat(t)||0}newValueSpecifiedUnits(t,e){if(this[tt])throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The object is read-only.");if(typeof t!="number")throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.");if(e=typeof e!="number"?parseFloat(e):e,isNaN(e))throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The provided float value is non-finite.");let r="";switch(t){case He.unspecified:r="";break;case He.deg:r="deg";break;case He.rad:r="rad";break;case He.grad:r="grad";break;case He.unknown:r="turn";break;}this[O]=String(e)+r,this[T]&&this[T](this[O]);}convertToSpecifiedUnits(t){if(this[tt])throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': The object is read-only.");if(typeof t!="number")throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.");let e=this.value,r="";switch(t){case He.unspecified:r="";break;case He.deg:r="deg";break;case He.rad:r="rad",e=e/(180/Math.PI);break;case He.grad:r="grad",e=e/(180/200);break;case He.unknown:r="turn",e=e/360;break;}this[O]=String(e)+r,this[T]&&this[T](this[O]);}};chunkBUNLC3II_cjs.h();var fi=class{[m];[N]=null;[T]=null;[O]=null;[tt]=false;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,r&&(this[tt]=!!r.readOnly,this[N]=r.getAttribute||null,this[T]=r.setAttribute||null);}get value(){let t=this[N]?this[N]():this[O];return parseFloat(t||"0")}set value(t){if(this[tt])throw new TypeError("Failed to set the 'value' property on 'SVGNumber': The object is read-only.");let e=typeof t!="number"?parseFloat(String(t)):t;if(isNaN(e))throw new TypeError("Failed to set the 'value' property on 'SVGNumber': The provided value is not a number.");this[O]=String(t),this[T]&&this[T](this[O]||"");}};chunkBUNLC3II_cjs.h();var Zl=class{[m];[N];[T];[be]=null;[ge]=null;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[N]=r.getAttribute,this[T]=r.setAttribute;}get animVal(){return this[ge]||(this[ge]=new yi(b,this[m],{readOnly:true,getAttribute:this[N]})),this[ge]}set animVal(t){}get baseVal(){return this[be]||(this[be]=new yi(b,this[m],{getAttribute:this[N],setAttribute:this[T]})),this[be]}set baseVal(t){}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Kx;(function(o){o[o.unknown=0]="unknown",o[o.meet=1]="meet",o[o.slice=2]="slice";})(Kx||(Kx={}));var ta=Kx;chunkBUNLC3II_cjs.h();var jx;(function(o){o[o.unknown=0]="unknown",o[o.none=1]="none",o[o.xMinYMin=2]="xMinYMin",o[o.xMidYMin=3]="xMidYMin",o[o.xMaxYMin=4]="xMaxYMin",o[o.xMinYMid=5]="xMinYMid",o[o.xMidYMid=6]="xMidYMid",o[o.xMaxYMid=7]="xMaxYMid",o[o.xMinYMax=8]="xMinYMax",o[o.xMidYMax=9]="xMidYMax",o[o.xMaxYMax=10]="xMaxYMax";})(jx||(jx={}));var Po=jx;var Ff=Object.values(Po);Ff.length=Ff.indexOf(0);var $S=Object.values(ta);$S.length=$S.indexOf(0);var Eu=class{static SVG_MEETORSLICE_UNKNOWN=ta.unknown;static SVG_MEETORSLICE_MEET=ta.meet;static SVG_MEETORSLICE_SLICE=ta.slice;static SVG_PRESERVEASPECTRATIO_UNKNOWN=Po.unknown;static SVG_PRESERVEASPECTRATIO_NONE=Po.none;static SVG_PRESERVEASPECTRATIO_XMINYMIN=Po.xMinYMin;static SVG_PRESERVEASPECTRATIO_XMIDYMIN=Po.xMidYMin;static SVG_PRESERVEASPECTRATIO_XMAXYMIN=Po.xMaxYMin;static SVG_PRESERVEASPECTRATIO_XMINYMID=Po.xMinYMid;static SVG_PRESERVEASPECTRATIO_XMIDYMID=Po.xMidYMid;static SVG_PRESERVEASPECTRATIO_XMAXYMID=Po.xMaxYMid;static SVG_PRESERVEASPECTRATIO_XMINYMAX=Po.xMinYMax;static SVG_PRESERVEASPECTRATIO_XMIDYMAX=Po.xMidYMax;static SVG_PRESERVEASPECTRATIO_XMAXYMAX=Po.xMaxYMax;[m];[N]=null;[T]=null;[O]=null;[tt]=false;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,r&&(this[tt]=!!r.readOnly,this[N]=r.getAttribute||null,this[T]=r.setAttribute||null);}get align(){let t=this[N]?this[N]():this[O];if(!t)return Po.xMidYMid;let e=t.split(/\s+/)[0];return Po[e]===void 0?Po.xMidYMid:Po[e]}set align(t){if(this[tt])throw new this[m].TypeError("Failed to set the 'align' property on 'SVGPreserveAspectRatio': The object is read-only.");let e=Number(t);if(isNaN(e)||e<1||e>Ff.length)throw new this[m].TypeError("Failed to set the 'align' property on 'SVGPreserveAspectRatio': The alignment provided is invalid.");this[O]=`${Ff[e]} ${$S[this.meetOrSlice]}`,this[T]&&this[T](this[O]);}get meetOrSlice(){let t=this[N]?this[N]():this[O];if(!t)return ta.meet;let e=t.split(/\s+/)[1];return !e||ta[e]===void 0?ta.meet:ta[e]}set meetOrSlice(t){if(this[tt])throw new this[m].TypeError("Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The object is read-only.");let e=Number(t);if(isNaN(e)||e<1||e>2)throw new this[m].TypeError("Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The meetOrSlice provided is invalid.");this[O]=`${Ff[this.align]} ${$S[e]}`,this[T]&&this[T](this[O]);}};var Hn=class{[m];[N];[T];[be]=null;[ge]=null;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[N]=r.getAttribute,this[T]=r.setAttribute;}get animVal(){return this[ge]||(this[ge]=new Eu(b,this[m],{readOnly:true,getAttribute:this[N]})),this[ge]}set animVal(t){}get baseVal(){return this[be]||(this[be]=new Eu(b,this[m],{getAttribute:this[N],setAttribute:this[T]})),this[be]}set baseVal(t){}};chunkBUNLC3II_cjs.h();var I=class{[m];[N];[T];[be]=null;[ge]=null;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[N]=r.getAttribute,this[T]=r.setAttribute;}get animVal(){return this[ge]||(this[ge]=new di(b,this[m],{readOnly:true,getAttribute:this[N]})),this[ge]}set animVal(t){}get baseVal(){return this[be]||(this[be]=new di(b,this[m],{getAttribute:this[N],setAttribute:this[T]})),this[be]}set baseVal(t){}};var Bh=class extends Fe{[Rr]=null;[R]=null;[D]=null;[B]=null;[F]=null;[PS]=1;[cs]=null;get onafterprint(){return x.getEventListener(this,"onafterprint")}set onafterprint(t){this[y].set("onafterprint",t);}get onbeforeprint(){return x.getEventListener(this,"onbeforeprint")}set onbeforeprint(t){this[y].set("onbeforeprint",t);}get onbeforeunload(){return x.getEventListener(this,"onbeforeunload")}set onbeforeunload(t){this[y].set("onbeforeunload",t);}get ongamepadconnected(){return x.getEventListener(this,"ongamepadconnected")}set ongamepadconnected(t){this[y].set("ongamepadconnected",t);}get ongamepaddisconnected(){return x.getEventListener(this,"ongamepaddisconnected")}set ongamepaddisconnected(t){this[y].set("ongamepaddisconnected",t);}get onhashchange(){return x.getEventListener(this,"onhashchange")}set onhashchange(t){this[y].set("onhashchange",t);}get onlanguagechange(){return x.getEventListener(this,"onlanguagechange")}set onlanguagechange(t){this[y].set("onlanguagechange",t);}get onmessage(){return x.getEventListener(this,"onmessage")}set onmessage(t){this[y].set("onmessage",t);}get onmessageerror(){return x.getEventListener(this,"onmessageerror")}set onmessageerror(t){this[y].set("onmessageerror",t);}get onoffline(){return x.getEventListener(this,"onoffline")}set onoffline(t){this[y].set("onoffline",t);}get ononline(){return x.getEventListener(this,"ononline")}set ononline(t){this[y].set("ononline",t);}get onpagehide(){return x.getEventListener(this,"onpagehide")}set onpagehide(t){this[y].set("onpagehide",t);}get onpageshow(){return x.getEventListener(this,"onpageshow")}set onpageshow(t){this[y].set("onpageshow",t);}get onpopstate(){return x.getEventListener(this,"onpopstate")}set onpopstate(t){this[y].set("onpopstate",t);}get onrejectionhandled(){return x.getEventListener(this,"onrejectionhandled")}set onrejectionhandled(t){this[y].set("onrejectionhandled",t);}get onstorage(){return x.getEventListener(this,"onstorage")}set onstorage(t){this[y].set("onstorage",t);}get onunhandledrejection(){return x.getEventListener(this,"onunhandledrejection")}set onunhandledrejection(t){this[y].set("onunhandledrejection",t);}get onunload(){return x.getEventListener(this,"onunload")}set onunload(t){this[y].set("onunload",t);}get preserveAspectRatio(){return this[Rr]||(this[Rr]=new Hn(b,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:t=>this.setAttribute("preserveAspectRatio",t)})),this[Rr]}get height(){return this[F]||(this[F]=new I(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[F]}get width(){return this[B]||(this[B]=new I(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[B]}get x(){return this[R]||(this[R]=new I(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[D]||(this[D]=new I(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[D]}get currentScale(){return this[PS]}set currentScale(t){let e=typeof t!="number"?parseFloat(String(t)):t;if(isNaN(e))throw this[m].TypeError("Failed to set the 'currentScale' property on 'SVGSVGElement': The provided float value is non-finite.");e<1||(this[PS]=e);}get currentTranslate(){return new Tr(b,this[m])}get viewBox(){return this[cs]||(this[cs]=new Zl(b,this[m],{getAttribute:()=>this.getAttribute("viewBox"),setAttribute:t=>this.setAttribute("viewBox",t)})),this[cs]}pauseAnimations(){}unpauseAnimations(){}animationsPaused(){return false}getCurrentTime(){return 0}setCurrentTime(t){}getIntersectionList(t,e){return new Mn(b,[])}getEnclosureList(t,e){return new Mn(b,[])}checkIntersection(t,e){return false}checkEnclosure(t,e){return false}deselectAll(){}createSVGNumber(){return new fi(b,this[m])}createSVGLength(){return new di(b,this[m])}createSVGAngle(){return new Ks(b,this[m])}createSVGPoint(){return new Tr(b,this[m])}createSVGMatrix(){return new $s(b,this[m])}createSVGRect(){return new yi(b,this[m])}createSVGTransform(){return new wn(b,this[m])}createSVGTransformFromMatrix(t){let e=new wn(b,this[m]);return e.setMatrix(t),e}getElementsByClassName(t){return de.getElementsByClassName(this,t)}getElementsByTagName(t){return de.getElementsByTagName(this,t)}getElementsByTagNameNS(t,e){return de.getElementsByTagNameNS(this,t,e)}getElementById(t){return de.getElementById(this,t)}[wt](t=false){return super[wt](t)}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Gn=class extends pt{[as]=null;[us]=null;get onbegin(){return x.getEventListener(this,"onbegin")}set onbegin(t){this[y].set("onbegin",t);}get onend(){return x.getEventListener(this,"onend")}set onend(t){this[y].set("onend",t);}get onrepeat(){return x.getEventListener(this,"onrepeat")}set onrepeat(t){this[y].set("onrepeat",t);}get requiredExtensions(){return this[as]||(this[as]=new Ki(b,this[m],{getAttribute:()=>this.getAttribute("requiredExtensions"),setAttribute:t=>this.setAttribute("requiredExtensions",t)})),this[as]}get systemLanguage(){return this[us]||(this[us]=new Ki(b,this[m],{getAttribute:()=>this.getAttribute("systemLanguage"),setAttribute:t=>this.setAttribute("systemLanguage",t)})),this[us]}get targetElement(){return null}};var Bf=class extends Gn{};chunkBUNLC3II_cjs.h();var Vf=class extends Gn{};chunkBUNLC3II_cjs.h();var Hf=class extends Gn{};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var bt=class{[m];[N];[T];[$o]=0;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[N]=r.getAttribute,this[T]=r.setAttribute,this[$o]=r.defaultValue||0;}get animVal(){return this.baseVal}set animVal(t){}get baseVal(){let t=this[N]();if(!t)return this[$o];let e=parseFloat(t);return isNaN(e)?this[$o]:e}set baseVal(t){let e=typeof t!="number"?parseFloat(t):t;if(isNaN(e))throw new this[m].TypeError("TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedNumber': The provided float value is non-finite.");this[T](String(e));}};var zr=class extends Fe{[Gy]=null;get pathLength(){return this[Gy]||(this[Gy]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("pathLength"),setAttribute:t=>this.setAttribute("pathLength",t)})),this[Gy]}isPointInFill(t){if(!(t instanceof Tr))throw new TypeError("Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.");return false}isPointInStroke(t){if(!(t instanceof Tr))throw new TypeError("Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.");return false}getTotalLength(){return 0}getPointAtLength(t){return new Tr(b,this[m])}};var Gf=class extends zr{[Ko]=null;[jo]=null;[ds]=null;get cx(){return this[Ko]||(this[Ko]=new I(b,this[m],{getAttribute:()=>this.getAttribute("cx"),setAttribute:t=>this.setAttribute("cx",t)})),this[Ko]}get cy(){return this[jo]||(this[jo]=new I(b,this[m],{getAttribute:()=>this.getAttribute("cy"),setAttribute:t=>this.setAttribute("cy",t)})),this[jo]}get r(){return this[ds]||(this[ds]=new I(b,this[m],{getAttribute:()=>this.getAttribute("r"),setAttribute:t=>this.setAttribute("r",t)})),this[ds]}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Ht=class{[m];[N];[T];[xr];[$o];constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[N]=r.getAttribute,this[T]=r.setAttribute,this[xr]=r.values,this[$o]=r.defaultValue;}get animVal(){return this.baseVal}set animVal(t){}get baseVal(){let t=this[N]();if(!t)return this[xr].indexOf(this[$o])+1;let e=this[xr].indexOf(t);if(e===-1){let r=this[xr].indexOf(null);return r!==-1?r+1:0}return e+1}set baseVal(t){let e=Number(t);if(isNaN(e)&&(e=0),e<1)throw new TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided is ${e}, which is not settable.`);if(e>this[xr].length)throw new TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided (${e}) is larger than the largest allowed value (${this[xr].length}).`);let r=this[N](),n=this[xr][e-1]===null,i=n?"0":this[xr][e-1];(!r||n&&this[xr].includes(r)||!n&&r!==i)&&this[T](i||"");}};var Uf=class extends pt{[qy]=null;get clipPathUnits(){return this[qy]||(this[qy]=new Ht(b,this[m],{getAttribute:()=>this.getAttribute("clipPathUnits"),setAttribute:t=>this.setAttribute("clipPathUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[qy]}};chunkBUNLC3II_cjs.h();var Wf=class extends Fe{};chunkBUNLC3II_cjs.h();var zf=class extends pt{};chunkBUNLC3II_cjs.h();var _f=class extends zr{[Ko]=null;[jo]=null;[hs]=null;[ys]=null;get cx(){return this[Ko]||(this[Ko]=new I(b,this[m],{getAttribute:()=>this.getAttribute("cx"),setAttribute:t=>this.setAttribute("cx",t)})),this[Ko]}get cy(){return this[jo]||(this[jo]=new I(b,this[m],{getAttribute:()=>this.getAttribute("cy"),setAttribute:t=>this.setAttribute("cy",t)})),this[jo]}get rx(){return this[hs]||(this[hs]=new I(b,this[m],{getAttribute:()=>this.getAttribute("rx"),setAttribute:t=>this.setAttribute("rx",t)})),this[hs]}get ry(){return this[ys]||(this[ys]=new I(b,this[m],{getAttribute:()=>this.getAttribute("ry"),setAttribute:t=>this.setAttribute("ry",t)})),this[ys]}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var yt=class{[m];[N];[T];constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[N]=r.getAttribute,this[T]=r.setAttribute;}get animVal(){return this.baseVal}set animVal(t){}get baseVal(){let t=this[N]();return t||""}set baseVal(t){this[T](String(t));}};var $f=class extends pt{static SVG_FEBLEND_MODE_UNKNOWN=0;static SVG_FEBLEND_MODE_NORMAL=1;static SVG_FEBLEND_MODE_MULTIPLY=2;static SVG_FEBLEND_MODE_SCREEN=3;static SVG_FEBLEND_MODE_DARKEN=4;static SVG_FEBLEND_MODE_LIGHTEN=5;static SVG_FEBLEND_MODE_OVERLAY=6;static SVG_FEBLEND_MODE_COLOR_DODGE=7;static SVG_FEBLEND_MODE_COLOR_BURN=8;static SVG_FEBLEND_MODE_HARD_LIGHT=9;static SVG_FEBLEND_MODE_SOFT_LIGHT=10;static SVG_FEBLEND_MODE_DIFFERENCE=11;static SVG_FEBLEND_MODE_EXCLUSION=12;static SVG_FEBLEND_MODE_HUE=13;static SVG_FEBLEND_MODE_SATURATION=14;static SVG_FEBLEND_MODE_COLOR=15;static SVG_FEBLEND_MODE_LUMINOSITY=16;[F]=null;[ft]=null;[Yo]=null;[Ue]=null;[R]=null;[D]=null;[B]=null;get height(){return this[F]||(this[F]=new I(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[F]}get in1(){return this[ft]||(this[ft]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ft]}get in2(){return this[Yo]||(this[Yo]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("in2"),setAttribute:t=>this.setAttribute("in2",t)})),this[Yo]}get mode(){return this[Ue]||(this[Ue]=new Ht(b,this[m],{getAttribute:()=>this.getAttribute("mode"),setAttribute:t=>this.setAttribute("mode",t),values:["normal","multiply","screen","darken","lighten","overlay","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],defaultValue:"normal"})),this[Ue]}get width(){return this[B]||(this[B]=new I(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[B]}get x(){return this[R]||(this[R]=new I(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[D]||(this[D]=new I(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[D]}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var tB=/[\t\f\n\r, ]+/,vu=class o{[m];[N];[T];[tt]=false;[_]={items:[],attributeValue:""};constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");if(this[m]=e,this[tt]=!!r.readOnly,this[N]=r.getAttribute,this[T]=r.setAttribute,t!==b)throw new TypeError("Illegal constructor");let n=new Re(this,[o]);return new Proxy(this,{get:(i,s)=>{if(s==="length"||s==="numberOfItems")return i[Y]().length;if(s in i||typeof s=="symbol")return n.bind(s),i[s];let l=Number(s);if(!isNaN(l))return i[Y]()[l]},set(i,s,l){if(n.bind(s),typeof s=="symbol")return i[s]=l,true;let a=Number(s);return isNaN(a)&&(i[s]=l),true},deleteProperty(i,s){if(typeof s=="symbol")return delete i[s],true;let l=Number(s);return isNaN(l)&&delete i[s],true},ownKeys(i){return Object.keys(i[Y]())},has(i,s){if(s in i)return true;if(typeof s=="symbol")return false;let l=Number(s);return !isNaN(l)&&l>=0&&l<i[Y]().length},defineProperty(i,s,l){return n.preventBinding(s),s in i?(Object.defineProperty(i,s,l),true):false},getOwnPropertyDescriptor(i,s){if(s in i||typeof s=="symbol")return;let l=Number(s),a=i[Y]();if(!isNaN(l)&&a[l])return {value:a[l],writable:false,enumerable:true,configurable:true}}})}get length(){return this[Y]().length}get numberOfItems(){return this[Y]().length}[Symbol.iterator](){return this[Y]().values()}clear(){if(this[tt])throw new this[m].TypeError("Failed to execute 'clear' on 'SVGNumberList': The object is read-only.");for(let t of this[_].items)t[N]=null,t[T]=null;this[_].items=[],this[_].attributeValue="",this[T]("");}initialize(t){if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'initialize' on 'SVGNumberList': 1 arguments required, but only ${arguments.length} present.`);if(this[tt])throw new this[m].TypeError("Failed to execute 'initialize' on 'SVGNumberList': The object is read-only.");for(let e of this[_].items)e[N]=null,e[T]=null;return t[N]=()=>t[O],t[T]=()=>{this[_].attributeValue=this[Y]().map(e=>e[O]||"0").join(" "),this[T](this[_].attributeValue);},this[_].items=[t],this[_].attributeValue=t[O],this[T](t[O]||""),t}getItem(t){let e=this[Y]();return typeof t=="number"||(t=Number(t),t=isNaN(t)?0:t),e[t]?e[t]:null}insertItemBefore(t,e){if(this[tt])throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGNumberList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertItemBefore' on 'SVGNumberList': 2 arguments required, but only ${arguments.length} present.`);if(!(t instanceof fi))throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let r=this[Y](),n=r.indexOf(t);return n!==-1&&r.splice(n,1),e<0?e=0:e>r.length&&(e=r.length),r.splice(e,0,t),t[N]=()=>t[O],t[T]=()=>{this[_].attributeValue=this[Y]().map(i=>i[O]||"0").join(" "),this[T](this[_].attributeValue);},this[_].attributeValue=r.map(i=>i[O]||"0").join(" "),this[T](this[_].attributeValue),t}replaceItem(t,e){if(this[tt])throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceItem' on 'SVGNumberList': 2 arguments required, but only ${arguments.length} present.`);if(!(t instanceof fi))throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let r=this[Y](),n=r.indexOf(t);if(n===e)return t;n!==-1&&r.splice(n,1),e<0?e=0:e>=r.length&&(e=r.length-1),r[e]&&(r[e][N]=null,r[e][T]=null);let i=r[e];return r[e]=t,t[N]=()=>t[O],t[T]=()=>{this[_].attributeValue=this[Y]().map(s=>s[O]||"0").join(" "),this[T](this[_].attributeValue);},this[_].attributeValue=r.map(s=>s[O]||"0").join(" "),this[T](this[_].attributeValue),i}removeItem(t){if(this[tt])throw new this[m].TypeError("Failed to execute 'removeItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'removeItem' on 'SVGNumberList': 1 argument required, but only ${arguments.length} present.`);let e=this[Y]();if(t=Number(t),isNaN(t)&&(t=0),t>=e.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${t}) is greater than the maximum bound.`,C.indexSizeError);if(t<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${t}) is negative.`,C.indexSizeError);let r=e[t];return r&&(r[N]=null,r[T]=null),e.splice(t,1),this[T](e.map(n=>n[O]||"0").join(" ")),r}appendItem(t){if(this[tt])throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'appendItem' on 'SVGNumberList': 1 argument required, but only ${arguments.length} present.`);if(!(t instanceof fi))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let e=this[Y](),r=e.indexOf(t);return r!==-1&&e.splice(r,1),e.push(t),t[N]=()=>t[O],t[T]=()=>{this[_].attributeValue=this[Y]().map(n=>n[O]||"0").join(" "),this[T](this[_].attributeValue);},this[_].attributeValue=e.map(n=>n[O]||"0").join(" "),this[T](this[_].attributeValue),t}[Y](){let t=this[N]()??"",e=this[_];if(e.attributeValue===t)return e.items;if(e.items.length)for(let i of e.items)i[N]=null,i[T]=null;let r=[],n=t.trim();if(n){let i=n.split(tB);for(let s=0,l=i.length;s<l;s++){let a=new fi(b,this[m],{readOnly:this[tt],getAttribute:()=>a[O],setAttribute:()=>{this[_].attributeValue=this[Y]().map(u=>u[O]||"0").join(" "),this[T](this[_].attributeValue);}});a[O]=String(parseFloat(i[s])),r.push(a);}}return e.attributeValue=t,e.items=r,r}};var cn=class{[m];[N];[T];[be]=null;[ge]=null;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[N]=r.getAttribute,this[T]=r.setAttribute;}get animVal(){return this[ge]||(this[ge]=new vu(b,this[m],{readOnly:true,getAttribute:this[N],setAttribute:()=>{}})),this[ge]}set animVal(t){}get baseVal(){return this[be]||(this[be]=new vu(b,this[m],{getAttribute:this[N],setAttribute:this[T]})),this[be]}set baseVal(t){}};var Kf=class extends pt{static SVG_FEBLEND_TYPE_UNKNOWN=0;static SVG_FEBLEND_TYPE_MATRIX=1;static SVG_FEBLEND_TYPE_SATURATE=2;static SVG_FEBLEND_TYPE_HUEROTATE=3;static SVG_FEBLEND_TYPE_LUMINANCETOALPHA=4;[F]=null;[ft]=null;[Yo]=null;[lt]=null;[ne]=null;[xr]=null;[R]=null;[D]=null;[B]=null;get height(){return this[F]||(this[F]=new I(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[F]}get in1(){return this[ft]||(this[ft]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ft]}get in2(){return this[Yo]||(this[Yo]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("in2"),setAttribute:t=>this.setAttribute("in2",t)})),this[Yo]}get result(){return this[lt]||(this[lt]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[lt]}get type(){return this[ne]||(this[ne]=new Ht(b,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:t=>this.setAttribute("type",t),values:["matrix","saturate","huerotate","luminancetoalpha"],defaultValue:"matrix"})),this[ne]}get values(){return this[xr]||(this[xr]=new cn(b,this[m],{getAttribute:()=>this.getAttribute("values"),setAttribute:t=>this.setAttribute("values",t)})),this[xr]}get width(){return this[B]||(this[B]=new I(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[B]}get x(){return this[R]||(this[R]=new I(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[D]||(this[D]=new I(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[D]}};chunkBUNLC3II_cjs.h();var jf=class extends pt{[F]=null;[ft]=null;[lt]=null;[R]=null;[D]=null;[B]=null;get height(){return this[F]||(this[F]=new I(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[F]}get in1(){return this[ft]||(this[ft]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ft]}get result(){return this[lt]||(this[lt]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[lt]}get width(){return this[B]||(this[B]=new I(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[B]}get x(){return this[R]||(this[R]=new I(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[D]||(this[D]=new I(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[D]}};chunkBUNLC3II_cjs.h();var qf=class extends pt{static SVG_FECOMPOSITE_OPERATOR_UNKNOWN=0;static SVG_FECOMPOSITE_OPERATOR_OVER=1;static SVG_FECOMPOSITE_OPERATOR_IN=2;static SVG_FECOMPOSITE_OPERATOR_OUT=3;static SVG_FECOMPOSITE_OPERATOR_ATOP=4;static SVG_FECOMPOSITE_OPERATOR_XOR=5;static SVG_FECOMPOSITE_OPERATOR_ARITHMETIC=6;[F]=null;[ft]=null;[lt]=null;[ne]=null;[xr]=null;[R]=null;[D]=null;[B]=null;get height(){return this[F]||(this[F]=new I(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[F]}get in1(){return this[ft]||(this[ft]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ft]}get result(){return this[lt]||(this[lt]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[lt]}get type(){return this[ne]||(this[ne]=new Ht(b,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:t=>this.setAttribute("type",t),values:["over","in","out","atop","xor","arithmetic"],defaultValue:"over"})),this[ne]}get values(){return this[xr]||(this[xr]=new cn(b,this[m],{getAttribute:()=>this.getAttribute("values"),setAttribute:t=>this.setAttribute("values",t)})),this[xr]}get width(){return this[B]||(this[B]=new I(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[B]}get x(){return this[R]||(this[R]=new I(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[D]||(this[D]=new I(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[D]}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Hc=class{[m];[N];[T];constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[N]=r.getAttribute,this[T]=r.setAttribute;}get animVal(){return this.baseVal}set animVal(t){}get baseVal(){return this[N]()==="true"}set baseVal(t){this[T](String(typeof t!="boolean"?!!t:t));}};chunkBUNLC3II_cjs.h();var bi=class{[m];[N];[T];constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[N]=r.getAttribute,this[T]=r.setAttribute;}get animVal(){return this.baseVal}set animVal(t){}get baseVal(){let t=this[N]();if(!t)return 0;let e=parseInt(t);return isNaN(e)?0:e}set baseVal(t){let e=parseInt(String(t));if(isNaN(e))throw new this[m].TypeError("TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedInteger': The provided float value is non-finite.");this[T](String(e));}};var Yf=class extends pt{static SVG_EDGEMODE_UNKNOWN=0;static SVG_EDGEMODE_DUPLICATE=1;static SVG_EDGEMODE_WRAP=2;static SVG_EDGEMODE_NONE=3;[yd]=null;[dd]=null;[ws]=null;[F]=null;[ft]=null;[fd]=null;[Qo]=null;[Jo]=null;[bd]=null;[gd]=null;[Sd]=null;[lt]=null;[Pd]=null;[Ad]=null;[B]=null;[R]=null;[D]=null;get bias(){return this[yd]||(this[yd]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("bias"),setAttribute:t=>this.setAttribute("bias",t)})),this[yd]}get divisor(){return this[dd]||(this[dd]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("divisor"),setAttribute:t=>this.setAttribute("divisor",t)})),this[dd]}get edgeMode(){return this[ws]||(this[ws]=new Ht(b,this[m],{getAttribute:()=>this.getAttribute("edgeMode"),setAttribute:t=>this.setAttribute("edgeMode",t),values:["duplicate","wrap","none"],defaultValue:"duplicate"})),this[ws]}get height(){return this[F]||(this[F]=new I(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[F]}get in1(){return this[ft]||(this[ft]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ft]}get kernelMatrix(){return this[fd]||(this[fd]=new cn(b,this[m],{getAttribute:()=>this.getAttribute("kernelMatrix"),setAttribute:t=>this.setAttribute("kernelMatrix",t)})),this[fd]}get kernelUnitLengthX(){return this[Qo]||(this[Qo]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:t=>this.setAttribute("kernelUnitLengthX",t)})),this[Qo]}get kernelUnitLengthY(){return this[Jo]||(this[Jo]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:t=>this.setAttribute("kernelUnitLengthY",t)})),this[Jo]}get orderX(){return this[bd]||(this[bd]=new bi(b,this[m],{getAttribute:()=>this.getAttribute("orderX"),setAttribute:t=>this.setAttribute("orderX",t)})),this[bd]}get orderY(){return this[gd]||(this[gd]=new bi(b,this[m],{getAttribute:()=>this.getAttribute("orderY"),setAttribute:t=>this.setAttribute("orderY",t)})),this[gd]}get preserveAlpha(){return this[Sd]||(this[Sd]=new Hc(b,this[m],{getAttribute:()=>this.getAttribute("preserveAlpha"),setAttribute:t=>this.setAttribute("preserveAlpha",t)})),this[Sd]}get result(){return this[lt]||(this[lt]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[lt]}get targetX(){return this[Pd]||(this[Pd]=new bi(b,this[m],{getAttribute:()=>this.getAttribute("targetX"),setAttribute:t=>this.setAttribute("targetX",t)})),this[Pd]}get targetY(){return this[Ad]||(this[Ad]=new bi(b,this[m],{getAttribute:()=>this.getAttribute("targetY"),setAttribute:t=>this.setAttribute("targetY",t)})),this[Ad]}get width(){return this[B]||(this[B]=new I(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[B]}get x(){return this[R]||(this[R]=new I(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[D]||(this[D]=new I(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[D]}};chunkBUNLC3II_cjs.h();var Qf=class extends pt{[wd]=null;[F]=null;[ft]=null;[Qo]=null;[Jo]=null;[lt]=null;[xs]=null;[B]=null;[R]=null;[D]=null;get diffuseConstant(){return this[wd]||(this[wd]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("diffuseConstant"),setAttribute:t=>this.setAttribute("diffuseConstant",t)})),this[wd]}get height(){return this[F]||(this[F]=new I(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[F]}get in1(){return this[ft]||(this[ft]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ft]}get kernelUnitLengthX(){return this[Qo]||(this[Qo]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:t=>this.setAttribute("kernelUnitLengthX",t)})),this[Qo]}get kernelUnitLengthY(){return this[Jo]||(this[Jo]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:t=>this.setAttribute("kernelUnitLengthY",t)})),this[Jo]}get result(){return this[lt]||(this[lt]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[lt]}get surfaceScale(){return this[xs]||(this[xs]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("surfaceScale"),setAttribute:t=>this.setAttribute("surfaceScale",t)})),this[xs]}get width(){return this[B]||(this[B]=new I(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[B]}get x(){return this[R]||(this[R]=new I(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[D]||(this[D]=new I(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[D]}};chunkBUNLC3II_cjs.h();var Jf=class extends pt{static SVG_CHANNEL_UNKNOWN=0;static SVG_CHANNEL_R=1;static SVG_CHANNEL_G=2;static SVG_CHANNEL_B=3;static SVG_CHANNEL_A=4;[F]=null;[ft]=null;[Yo]=null;[lt]=null;[xd]=null;[B]=null;[R]=null;[Ed]=null;[D]=null;[vd]=null;get height(){return this[F]||(this[F]=new I(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[F]}get in1(){return this[ft]||(this[ft]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ft]}get in2(){return this[Yo]||(this[Yo]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("in2"),setAttribute:t=>this.setAttribute("in2",t)})),this[Yo]}get result(){return this[lt]||(this[lt]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[lt]}get scale(){return this[xd]||(this[xd]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("scale"),setAttribute:t=>this.setAttribute("scale",t)})),this[xd]}get width(){return this[B]||(this[B]=new I(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[B]}get x(){return this[R]||(this[R]=new I(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get xChannelSelector(){return this[Ed]||(this[Ed]=new Ht(b,this[m],{getAttribute:()=>this.getAttribute("xChannelSelector"),setAttribute:t=>this.setAttribute("xChannelSelector",t),values:["r","g","b","a"],defaultValue:"r"})),this[Ed]}get y(){return this[D]||(this[D]=new I(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[D]}get yChannelSelector(){return this[vd]||(this[vd]=new Ht(b,this[m],{getAttribute:()=>this.getAttribute("yChannelSelector"),setAttribute:t=>this.setAttribute("yChannelSelector",t),values:["r","g","b","a"],defaultValue:"r"})),this[vd]}};chunkBUNLC3II_cjs.h();var Xf=class extends pt{[Td]=null;[Cd]=null;get azimuth(){return this[Td]||(this[Td]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("azimuth"),setAttribute:t=>this.setAttribute("azimuth",t)})),this[Td]}get elevation(){return this[Cd]||(this[Cd]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("elevation"),setAttribute:t=>this.setAttribute("elevation",t)})),this[Cd]}};chunkBUNLC3II_cjs.h();var Zf=class extends pt{[Xo]=null;[Zo]=null;[F]=null;[ft]=null;[lt]=null;[Es]=null;[vs]=null;[B]=null;[R]=null;[D]=null;get dx(){return this[Xo]||(this[Xo]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("dx"),setAttribute:t=>this.setAttribute("dx",t)})),this[Xo]}get dy(){return this[Zo]||(this[Zo]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("dy"),setAttribute:t=>this.setAttribute("dy",t)})),this[Zo]}get height(){return this[F]||(this[F]=new I(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[F]}get in1(){return this[ft]||(this[ft]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ft]}get result(){return this[lt]||(this[lt]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[lt]}get stdDeviationX(){return this[Es]||(this[Es]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("stdDeviationX"),setAttribute:t=>this.setAttribute("stdDeviationX",t),defaultValue:2})),this[Es]}get stdDeviationY(){return this[vs]||(this[vs]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("stdDeviationY"),setAttribute:t=>this.setAttribute("stdDeviationY",t),defaultValue:2})),this[vs]}get width(){return this[B]||(this[B]=new I(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[B]}get x(){return this[R]||(this[R]=new I(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[D]||(this[D]=new I(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[D]}setStdDeviation(t,e){this.stdDeviationX.baseVal=t,this.stdDeviationY.baseVal=e;}};chunkBUNLC3II_cjs.h();var tb=class extends pt{[F]=null;[lt]=null;[B]=null;[R]=null;[D]=null;get height(){return this[F]||(this[F]=new I(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[F]}get result(){return this[lt]||(this[lt]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[lt]}get width(){return this[B]||(this[B]=new I(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[B]}get x(){return this[R]||(this[R]=new I(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[D]||(this[D]=new I(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[D]}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Un=class extends pt{static SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN=0;static SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY=1;static SVG_FECOMPONENTTRANSFER_TYPE_TABLE=2;static SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE=3;static SVG_FECOMPONENTTRANSFER_TYPE_LINEAR=4;static SVG_FECOMPONENTTRANSFER_TYPE_GAMMA=5;[ne]=null;[kd]=null;[Nd]=null;[Ld]=null;[Md]=null;[Id]=null;[Ps]=null;get type(){return this[ne]||(this[ne]=new Ht(b,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:t=>this.setAttribute("type",t),values:["identity","table","discrete","linear","gamma"],defaultValue:"identity"})),this[ne]}get tableValues(){return this[kd]||(this[kd]=new cn(b,this[m],{getAttribute:()=>this.getAttribute("tableValues"),setAttribute:t=>this.setAttribute("tableValues",t)})),this[kd]}get slope(){return this[Nd]||(this[Nd]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("slope"),setAttribute:t=>this.setAttribute("slope",t),defaultValue:1})),this[Nd]}get intercept(){return this[Ld]||(this[Ld]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("intercept"),setAttribute:t=>this.setAttribute("intercept",t)})),this[Ld]}get amplitude(){return this[Md]||(this[Md]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("amplitude"),setAttribute:t=>this.setAttribute("amplitude",t),defaultValue:1})),this[Md]}get exponent(){return this[Id]||(this[Id]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("exponent"),setAttribute:t=>this.setAttribute("exponent",t),defaultValue:1})),this[Id]}get offset(){return this[Ps]||(this[Ps]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("offset"),setAttribute:t=>this.setAttribute("offset",t)})),this[Ps]}};var eb=class extends Un{};chunkBUNLC3II_cjs.h();var rb=class extends Un{};chunkBUNLC3II_cjs.h();var ob=class extends Un{};chunkBUNLC3II_cjs.h();var nb=class extends Un{};chunkBUNLC3II_cjs.h();var ib=class extends pt{static SVG_EDGEMODE_UNKNOWN=0;static SVG_EDGEMODE_DUPLICATE=1;static SVG_EDGEMODE_WRAP=2;static SVG_EDGEMODE_NONE=3;[ws]=null;[F]=null;[ft]=null;[lt]=null;[Es]=null;[vs]=null;[B]=null;[R]=null;[D]=null;get edgeMode(){return this[ws]||(this[ws]=new Ht(b,this[m],{getAttribute:()=>this.getAttribute("edgeMode"),setAttribute:t=>this.setAttribute("edgeMode",t),values:["duplicate","wrap","none"],defaultValue:"duplicate"})),this[ws]}get height(){return this[F]||(this[F]=new I(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[F]}get in1(){return this[ft]||(this[ft]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ft]}get result(){return this[lt]||(this[lt]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[lt]}get stdDeviationX(){return this[Es]||(this[Es]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("stdDeviationX")||"2",setAttribute:t=>this.setAttribute("stdDeviationX",t)})),this[Es]}get stdDeviationY(){return this[vs]||(this[vs]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("stdDeviationY")||"2",setAttribute:t=>this.setAttribute("stdDeviationY",t)})),this[vs]}get width(){return this[B]||(this[B]=new I(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[B]}get x(){return this[R]||(this[R]=new I(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[D]||(this[D]=new I(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[D]}setStdDeviation(t,e){this.stdDeviationX.baseVal=t,this.stdDeviationY.baseVal=e;}};chunkBUNLC3II_cjs.h();var sb=class extends pt{[QC]=null;[F]=null;[Gt]=null;[Rr]=null;[lt]=null;[B]=null;[R]=null;[D]=null;get crossOrigin(){return this.getAttribute("crossorigin")}set crossOrigin(t){this.setAttribute("crossorigin",t);}get height(){return this[F]||(this[F]=new I(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[F]}get href(){return this[Gt]||(this[Gt]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Gt]}get preserveAspectRatio(){return this[Rr]||(this[Rr]=new Hn(b,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:t=>this.setAttribute("preserveAspectRatio",t)})),this[Rr]}get result(){return this[lt]||(this[lt]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[lt]}get width(){return this[B]||(this[B]=new I(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[B]}get x(){return this[R]||(this[R]=new I(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[D]||(this[D]=new I(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[D]}};chunkBUNLC3II_cjs.h();var lb=class extends pt{[F]=null;[lt]=null;[B]=null;[R]=null;[D]=null;get height(){return this[F]||(this[F]=new I(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[F]}get result(){return this[lt]||(this[lt]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[lt]}get width(){return this[B]||(this[B]=new I(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[B]}get x(){return this[R]||(this[R]=new I(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[D]||(this[D]=new I(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[D]}};chunkBUNLC3II_cjs.h();var ab=class extends pt{[ft]=null;get in1(){return this[ft]||(this[ft]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ft]}};chunkBUNLC3II_cjs.h();var ub=class extends pt{static SVG_MORPHOLOGY_OPERATOR_UNKNOWN=0;static SVG_MORPHOLOGY_OPERATOR_ERODE=1;static SVG_MORPHOLOGY_OPERATOR_DILATE=2;[F]=null;[ft]=null;[Rd]=null;[Dd]=null;[Od]=null;[lt]=null;[B]=null;[R]=null;[D]=null;get height(){return this[F]||(this[F]=new I(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[F]}get in1(){return this[ft]||(this[ft]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ft]}get operator(){return this[Rd]||(this[Rd]=new Ht(b,this[m],{getAttribute:()=>this.getAttribute("operator"),setAttribute:t=>this.setAttribute("operator",t),values:["erode","dilate"],defaultValue:"erode"})),this[Rd]}get radiusX(){return this[Dd]||(this[Dd]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("radiusX"),setAttribute:t=>this.setAttribute("radiusX",t)})),this[Dd]}get radiusY(){return this[Od]||(this[Od]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("radiusY"),setAttribute:t=>this.setAttribute("radiusY",t)})),this[Od]}get result(){return this[lt]||(this[lt]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[lt]}get width(){return this[B]||(this[B]=new I(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[B]}get x(){return this[R]||(this[R]=new I(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[D]||(this[D]=new I(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[D]}};chunkBUNLC3II_cjs.h();var cb=class extends pt{[F]=null;[ft]=null;[Xo]=null;[Zo]=null;[lt]=null;[B]=null;[R]=null;[D]=null;get height(){return this[F]||(this[F]=new I(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[F]}get in1(){return this[ft]||(this[ft]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ft]}get dx(){return this[Xo]||(this[Xo]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("dx"),setAttribute:t=>this.setAttribute("dx",t)})),this[Xo]}get dy(){return this[Zo]||(this[Zo]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("dy"),setAttribute:t=>this.setAttribute("dy",t)})),this[Zo]}get result(){return this[lt]||(this[lt]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[lt]}get width(){return this[B]||(this[B]=new I(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[B]}get x(){return this[R]||(this[R]=new I(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[D]||(this[D]=new I(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[D]}};chunkBUNLC3II_cjs.h();var pb=class extends pt{[R]=null;[D]=null;[po]=null;get x(){return this[R]||(this[R]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[D]||(this[D]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[D]}get z(){return this[po]||(this[po]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("z"),setAttribute:t=>this.setAttribute("z",t)})),this[po]}};chunkBUNLC3II_cjs.h();var mb=class extends pt{[F]=null;[ft]=null;[Qo]=null;[Jo]=null;[lt]=null;[Fd]=null;[Ts]=null;[xs]=null;[B]=null;[R]=null;[D]=null;get height(){return this[F]||(this[F]=new I(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[F]}get in1(){return this[ft]||(this[ft]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ft]}get kernelUnitLengthX(){return this[Qo]||(this[Qo]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:t=>this.setAttribute("kernelUnitLengthX",t)})),this[Qo]}get kernelUnitLengthY(){return this[Jo]||(this[Jo]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:t=>this.setAttribute("kernelUnitLengthY",t)})),this[Jo]}get result(){return this[lt]||(this[lt]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[lt]}get specularConstant(){return this[Fd]||(this[Fd]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("specularConstant"),setAttribute:t=>this.setAttribute("specularConstant",t),defaultValue:1})),this[Fd]}get specularExponent(){return this[Ts]||(this[Ts]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("specularExponent"),setAttribute:t=>this.setAttribute("specularExponent",t),defaultValue:1})),this[Ts]}get surfaceScale(){return this[xs]||(this[xs]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("surfaceScale"),setAttribute:t=>this.setAttribute("surfaceScale",t),defaultValue:1})),this[xs]}get width(){return this[B]||(this[B]=new I(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[B]}get x(){return this[R]||(this[R]=new I(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[D]||(this[D]=new I(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[D]}};chunkBUNLC3II_cjs.h();var hb=class extends pt{[R]=null;[D]=null;[po]=null;[Bd]=null;[Vd]=null;[Hd]=null;[Ts]=null;[Gd]=null;get x(){return this[R]||(this[R]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[D]||(this[D]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[D]}get z(){return this[po]||(this[po]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("z"),setAttribute:t=>this.setAttribute("z",t)})),this[po]}get pointsAtX(){return this[Bd]||(this[Bd]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("pointsAtX"),setAttribute:t=>this.setAttribute("pointsAtX",t)})),this[Bd]}get pointsAtY(){return this[Vd]||(this[Vd]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("pointsAtY"),setAttribute:t=>this.setAttribute("pointsAtY",t)})),this[Vd]}get pointsAtZ(){return this[Hd]||(this[Hd]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("pointsAtZ"),setAttribute:t=>this.setAttribute("pointsAtZ",t)})),this[Hd]}get specularExponent(){return this[Ts]||(this[Ts]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("specularExponent"),setAttribute:t=>this.setAttribute("specularExponent",t),defaultValue:1})),this[Ts]}get limitingConeAngle(){return this[Gd]||(this[Gd]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("limitingConeAngle"),setAttribute:t=>this.setAttribute("limitingConeAngle",t)})),this[Gd]}};chunkBUNLC3II_cjs.h();var yb=class extends pt{[F]=null;[ft]=null;[lt]=null;[B]=null;[R]=null;[D]=null;get height(){return this[F]||(this[F]=new I(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[F]}get in1(){return this[ft]||(this[ft]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ft]}get result(){return this[lt]||(this[lt]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[lt]}get width(){return this[B]||(this[B]=new I(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[B]}get x(){return this[R]||(this[R]=new I(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[D]||(this[D]=new I(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[D]}};chunkBUNLC3II_cjs.h();var db=class extends pt{static SVG_TURBULENCE_TYPE_UNKNOWN=0;static SVG_TURBULENCE_TYPE_FRACTALNOISE=1;static SVG_TURBULENCE_TYPE_TURBULENCE=2;static SVG_STITCHTYPE_UNKNOWN=0;static SVG_STITCHTYPE_STITCH=1;static SVG_STITCHTYPE_NOSTITCH=2;[Ud]=null;[Wd]=null;[F]=null;[zd]=null;[lt]=null;[_d]=null;[$d]=null;[ne]=null;[B]=null;[R]=null;[D]=null;get baseFrequencyX(){return this[Ud]||(this[Ud]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("baseFrequencyX"),setAttribute:t=>this.setAttribute("baseFrequencyX",t)})),this[Ud]}get baseFrequencyY(){return this[Wd]||(this[Wd]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("baseFrequencyY"),setAttribute:t=>this.setAttribute("baseFrequencyY",t)})),this[Wd]}get height(){return this[F]||(this[F]=new I(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[F]}get numOctaves(){return this[zd]||(this[zd]=new bi(b,this[m],{getAttribute:()=>this.getAttribute("numOctaves"),setAttribute:t=>this.setAttribute("numOctaves",t)})),this[zd]}get result(){return this[lt]||(this[lt]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[lt]}get seed(){return this[_d]||(this[_d]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("seed"),setAttribute:t=>this.setAttribute("seed",t)})),this[_d]}get stitchTiles(){return this[$d]||(this[$d]=new Ht(b,this[m],{getAttribute:()=>this.getAttribute("stitchTiles"),setAttribute:t=>this.setAttribute("stitchTiles",t),values:["stitch","noStitch"],defaultValue:"stitch"})),this[$d]}get type(){return this[ne]||(this[ne]=new Ht(b,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:t=>this.setAttribute("type",t),values:["fractalNoise","turbulence"],defaultValue:"turbulence"})),this[ne]}get width(){return this[B]||(this[B]=new I(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[B]}get x(){return this[R]||(this[R]=new I(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[D]||(this[D]=new I(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[D]}};chunkBUNLC3II_cjs.h();var fb=class extends pt{[Gt]=null;[Jy]=null;[Xy]=null;[R]=null;[D]=null;[B]=null;[F]=null;get href(){return this[Gt]||(this[Gt]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Gt]}get filterUnits(){return this[Jy]||(this[Jy]=new Ht(b,this[m],{getAttribute:()=>this.getAttribute("filterUnits"),setAttribute:t=>this.setAttribute("filterUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[Jy]}get primitiveUnits(){return this[Xy]||(this[Xy]=new Ht(b,this[m],{getAttribute:()=>this.getAttribute("primitiveUnits"),setAttribute:t=>this.setAttribute("primitiveUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[Xy]}get height(){return this[F]||(this[F]=new I(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[F]}get width(){return this[B]||(this[B]=new I(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[B]}get x(){return this[R]||(this[R]=new I(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[D]||(this[D]=new I(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[D]}};chunkBUNLC3II_cjs.h();var bb=class extends Fe{[R]=null;[D]=null;[B]=null;[F]=null;get height(){return this[F]||(this[F]=new I(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[F]}get width(){return this[B]||(this[B]=new I(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[B]}get x(){return this[R]||(this[R]=new I(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[D]||(this[D]=new I(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[D]}};chunkBUNLC3II_cjs.h();var gb=class extends Fe{};chunkBUNLC3II_cjs.h();var Sb=class extends Fe{[Gt]=null;[Rr]=null;[R]=null;[D]=null;[B]=null;[F]=null;get crossOrigin(){return this.getAttribute("crossorigin")}set crossOrigin(t){this.setAttribute("crossorigin",t);}get href(){return this[Gt]||(this[Gt]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Gt]}get decoding(){let t=this.getAttribute("decoding");switch(t){case "sync":case "async":case "auto":return t;default:return "auto"}}set decoding(t){this.setAttribute("decoding",t);}get preserveAspectRatio(){return this[Rr]||(this[Rr]=new Hn(b,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:t=>this.setAttribute("preserveAspectRatio",t)})),this[Rr]}get height(){return this[F]||(this[F]=new I(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[F]}get width(){return this[B]||(this[B]=new I(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[B]}get x(){return this[R]||(this[R]=new I(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[D]||(this[D]=new I(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[D]}decode(){return Promise.resolve()}};chunkBUNLC3II_cjs.h();var Pb=class extends zr{[fs]=null;[bs]=null;[gs]=null;[Ss]=null;get x1(){return this[fs]||(this[fs]=new I(b,this[m],{getAttribute:()=>this.getAttribute("x1"),setAttribute:t=>this.setAttribute("x1",t)})),this[fs]}get y1(){return this[bs]||(this[bs]=new I(b,this[m],{getAttribute:()=>this.getAttribute("y1"),setAttribute:t=>this.setAttribute("y1",t)})),this[bs]}get x2(){return this[gs]||(this[gs]=new I(b,this[m],{getAttribute:()=>this.getAttribute("x2"),setAttribute:t=>this.setAttribute("x2",t)})),this[gs]}get y2(){return this[Ss]||(this[Ss]=new I(b,this[m],{getAttribute:()=>this.getAttribute("y2"),setAttribute:t=>this.setAttribute("y2",t)})),this[Ss]}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var ea=class extends Fe{static SVG_SPREADMETHOD_UNKNOWN=0;static SVG_SPREADMETHOD_PAD=1;static SVG_SPREADMETHOD_REFLECT=2;static SVG_SPREADMETHOD_REPEAT=3;[Gt]=null;[Zy]=null;[td]=null;[ed]=null;get href(){return this[Gt]||(this[Gt]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Gt]}get gradientUnits(){return this[Zy]||(this[Zy]=new Ht(b,this[m],{getAttribute:()=>this.getAttribute("gradientUnits"),setAttribute:t=>this.setAttribute("gradientUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"objectBoundingBox"})),this[Zy]}get gradientTransform(){return this[td]||(this[td]=new ji(b,this[m],{getAttribute:()=>this.getAttribute("gradientTransform"),setAttribute:t=>this.setAttribute("gradientTransform",t)})),this[td]}get spreadMethod(){return this[ed]||(this[ed]=new Ht(b,this[m],{getAttribute:()=>this.getAttribute("spreadMethod"),setAttribute:t=>this.setAttribute("spreadMethod",t),values:["pad","reflect","repeat"],defaultValue:"pad"})),this[ed]}};var Ab=class extends ea{[fs]=null;[bs]=null;[gs]=null;[Ss]=null;get x1(){return this[fs]||(this[fs]=new I(b,this[m],{getAttribute:()=>this.getAttribute("x1"),setAttribute:t=>this.setAttribute("x1",t)})),this[fs]}get y1(){return this[bs]||(this[bs]=new I(b,this[m],{getAttribute:()=>this.getAttribute("y1"),setAttribute:t=>this.setAttribute("y1",t)})),this[bs]}get x2(){return this[gs]||(this[gs]=new I(b,this[m],{getAttribute:()=>this.getAttribute("x2"),setAttribute:t=>this.setAttribute("x2",t)})),this[gs]}get y2(){return this[Ss]||(this[Ss]=new I(b,this[m],{getAttribute:()=>this.getAttribute("y2"),setAttribute:t=>this.setAttribute("y2",t)})),this[Ss]}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Gc=class{[m];[N];[T];[be]=null;[ge]=null;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[N]=r.getAttribute,this[T]=r.setAttribute;}get animVal(){return this[ge]||(this[ge]=new Ks(b,this[m],{readOnly:true,getAttribute:this[N]})),this[ge]}set animVal(t){}get baseVal(){return this[be]||(this[be]=new Ks(b,this[m],{getAttribute:this[N],setAttribute:this[T]})),this[be]}set baseVal(t){}};var wb=class extends pt{static SVG_MARKER_ORIENT_UNKNOWN=0;static SVG_MARKER_ORIENT_AUTO=1;static SVG_MARKER_ORIENT_ANGLE=2;static SVG_MARKERUNITS_UNKNOWN=0;static SVG_MARKERUNITS_USERSPACEONUSE=1;static SVG_MARKERUNITS_STROKEWIDTH=2;SVG_MARKER_ORIENT_UNKNOWN=0;SVG_MARKER_ORIENT_AUTO=1;SVG_MARKER_ORIENT_ANGLE=2;[Uy]=null;[Wy]=null;[zy]=null;[_y]=null;[$y]=null;[Ky]=null;[jy]=null;[cs]=null;[Rr]=null;get markerUnits(){return this[Uy]||(this[Uy]=new Ht(b,this[m],{getAttribute:()=>this.getAttribute("markerUnits"),setAttribute:t=>this.setAttribute("markerUnits",t),values:["userSpaceOnUse","strokeWidth"],defaultValue:"strokeWidth"})),this[Uy]}get markerWidth(){return this[Wy]||(this[Wy]=new I(b,this[m],{getAttribute:()=>this.getAttribute("markerWidth"),setAttribute:t=>this.setAttribute("markerWidth",t)})),this[Wy]}get markerHeight(){return this[zy]||(this[zy]=new I(b,this[m],{getAttribute:()=>this.getAttribute("markerHeight"),setAttribute:t=>this.setAttribute("markerHeight",t)})),this[zy]}get orientType(){return this[_y]||(this[_y]=new Ht(b,this[m],{getAttribute:()=>this.getAttribute("orient"),setAttribute:t=>this.setAttribute("orient",t),values:["auto",null],defaultValue:"auto"})),this[_y]}get orientAngle(){return this[$y]||(this[$y]=new Gc(b,this[m],{getAttribute:()=>this.getAttribute("orient"),setAttribute:t=>this.setAttribute("orient",t)})),this[$y]}get refX(){return this[Ky]||(this[Ky]=new I(b,this[m],{getAttribute:()=>this.getAttribute("refX"),setAttribute:t=>this.setAttribute("refX",t)})),this[Ky]}get refY(){return this[jy]||(this[jy]=new I(b,this[m],{getAttribute:()=>this.getAttribute("refY"),setAttribute:t=>this.setAttribute("refY",t)})),this[jy]}get viewBox(){return this[cs]||(this[cs]=new Zl(b,this[m],{getAttribute:()=>this.getAttribute("viewBox"),setAttribute:t=>this.setAttribute("viewBox",t)})),this[cs]}get preserveAspectRatio(){return this[Rr]||(this[Rr]=new Hn(b,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:t=>this.setAttribute("preserveAspectRatio",t)})),this[Rr]}setOrientToAuto(){this.setAttribute("orient","auto");}setOrientToAngle(t){this.setAttribute("orient",t.valueAsString);}};chunkBUNLC3II_cjs.h();var xb=class extends pt{[Yy]=null;[Qy]=null;[R]=null;[D]=null;[B]=null;[F]=null;get maskUnits(){return this[Yy]||(this[Yy]=new Ht(b,this[m],{getAttribute:()=>this.getAttribute("maskUnits"),setAttribute:t=>this.setAttribute("maskUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[Yy]}get maskContentUnits(){return this[Qy]||(this[Qy]=new Ht(b,this[m],{getAttribute:()=>this.getAttribute("maskContentUnits"),setAttribute:t=>this.setAttribute("maskContentUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[Qy]}get width(){return this[B]||(this[B]=new I(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[B]}get height(){return this[F]||(this[F]=new I(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[F]}get x(){return this[R]||(this[R]=new I(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[D]||(this[D]=new I(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[D]}};chunkBUNLC3II_cjs.h();var Eb=class extends pt{};chunkBUNLC3II_cjs.h();var vb=class extends pt{[Gt]=null;get href(){return this[Gt]||(this[Gt]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Gt]}};chunkBUNLC3II_cjs.h();var Tb=class extends zr{};chunkBUNLC3II_cjs.h();var Cb=class extends pt{[Gt]=null;[rd]=null;[od]=null;[nd]=null;[R]=null;[D]=null;[B]=null;[F]=null;get href(){return this[Gt]||(this[Gt]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Gt]}get patternUnits(){return this[rd]||(this[rd]=new Ht(b,this[m],{getAttribute:()=>this.getAttribute("patternUnits"),setAttribute:t=>this.setAttribute("patternUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"objectBoundingBox"})),this[rd]}get patternContentUnits(){return this[od]||(this[od]=new Ht(b,this[m],{getAttribute:()=>this.getAttribute("patternContentUnits"),setAttribute:t=>this.setAttribute("patternContentUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[od]}get patternTransform(){return this[nd]||(this[nd]=new ji(b,this[m],{getAttribute:()=>this.getAttribute("patternTransform"),setAttribute:t=>this.setAttribute("patternTransform",t)})),this[nd]}get width(){return this[B]||(this[B]=new I(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[B]}get height(){return this[F]||(this[F]=new I(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[F]}get x(){return this[R]||(this[R]=new I(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[D]||(this[D]=new I(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[D]}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var eB=/[\t\f\n\r, ]+/,qi=class o{[m];[N];[T];[tt]=false;[_]={items:[],attributeValue:""};constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[tt]=!!r.readOnly,this[N]=r.getAttribute,this[T]=r.setAttribute;let n=new Re(this,[o]);return new Proxy(this,{get:(i,s)=>{if(s==="length"||s==="numberOfItems")return i[Y]().length;if(s in i||typeof s=="symbol")return n.bind(s),i[s];let l=Number(s);if(!isNaN(l))return i[Y]()[l]},set(i,s,l){if(n.bind(s),typeof s=="symbol")return i[s]=l,true;let a=Number(s);return isNaN(a)&&(i[s]=l),true},deleteProperty(i,s){if(typeof s=="symbol")return delete i[s],true;let l=Number(s);return isNaN(l)&&delete i[s],true},ownKeys(i){return Object.keys(i[Y]())},has(i,s){if(s in i)return true;if(typeof s=="symbol")return false;let l=Number(s);return !isNaN(l)&&l>=0&&l<i[Y]().length},defineProperty(i,s,l){return n.preventBinding(s),s in i?(Object.defineProperty(i,s,l),true):false},getOwnPropertyDescriptor(i,s){if(s in i||typeof s=="symbol")return;let l=Number(s),a=i[Y]();if(!isNaN(l)&&a[l])return {value:a[l],writable:false,enumerable:true,configurable:true}}})}get length(){return this[Y]().length}get numberOfItems(){return this[Y]().length}[Symbol.iterator](){return this[Y]().values()}clear(){if(this[tt])throw new this[m].TypeError("Failed to execute 'clear' on 'SVGPointList': The object is read-only.");for(let t of this[_].items)t[N]=null,t[T]=null;this[_].items=[],this[_].attributeValue="",this[T]("");}initialize(t){if(this[tt])throw new this[m].TypeError("Failed to execute 'initialize' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'initialize' on 'SVGPointList': 1 arguments required, but only ${arguments.length} present.`);if(!(t instanceof Tr))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");for(let e of this[_].items)e[N]=null,e[T]=null;return t[N]=()=>t[O],t[T]=()=>{this[_].attributeValue=this[Y]().map(e=>e[O]||"0 0").join(" "),this[T](this[_].attributeValue);},this[_].items=[t],this[_].attributeValue=t[O],this[T](t[O]||""),t}getItem(t){let e=this[Y]();return typeof t=="number"||(t=Number(t),t=isNaN(t)?0:t),e[t]?e[t]:null}insertItemBefore(t,e){if(this[tt])throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGPointList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertItemBefore' on 'SVGPointList': 2 arguments required, but only ${arguments.length} present.`);if(!(t instanceof Tr))throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let r=this[Y](),n=r.indexOf(t);return n!==-1&&r.splice(n,1),e<0?e=0:e>r.length&&(e=r.length),r.splice(e,0,t),t[N]=()=>t[O],t[T]=()=>{this[_].attributeValue=this[Y]().map(i=>i[O]||"0 0").join(" "),this[T](this[_].attributeValue);},this[_].attributeValue=r.map(i=>i[O]||"0 0").join(" "),this[T](this[_].attributeValue),t}replaceItem(t,e){if(this[tt])throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGPointList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceItem' on 'SVGPointList': 2 arguments required, but only ${arguments.length} present.`);if(!(t instanceof Tr))throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let r=this[Y](),n=r.indexOf(t);if(n===e)return t;n!==-1&&r.splice(n,1),e<0?e=0:e>=r.length&&(e=r.length-1),r[e]&&(r[e][N]=null,r[e][T]=null);let i=r[e];return r[e]=t,t[N]=()=>t[O],t[T]=()=>{this[_].attributeValue=this[Y]().map(s=>s[O]||"0 0").join(" "),this[T](this[_].attributeValue);},this[_].attributeValue=r.map(s=>s[O]||"0 0").join(" "),this[T](this[_].attributeValue),i}removeItem(t){if(this[tt])throw new this[m].TypeError("Failed to execute 'removeItem' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'removeItem' on 'SVGPointList': 1 argument required, but only ${arguments.length} present.`);let e=this[Y]();if(t=Number(t),isNaN(t)&&(t=0),t>=e.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${t}) is greater than the maximum bound.`,C.indexSizeError);if(t<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${t}) is negative.`,C.indexSizeError);let r=e[t];return r&&(r[N]=null,r[T]=null),e.splice(t,1),this[T](e.map(n=>n[O]||"0 0").join(" ")),r}appendItem(t){if(this[tt])throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'appendItem' on 'SVGPointList': 1 argument required, but only ${arguments.length} present.`);if(!(t instanceof Tr))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let e=this[Y](),r=e.indexOf(t);return r!==-1&&e.splice(r,1),e.push(t),t[N]=()=>t[O],t[T]=()=>{this[_].attributeValue=this[Y]().map(n=>n[O]||"0 0").join(" "),this[T](this[_].attributeValue);},this[_].attributeValue=e.map(n=>n[O]||"0 0").join(" "),this[T](this[_].attributeValue),t}[Y](){let t=this[N]()??"",e=this[_];if(e.attributeValue===t)return e.items;if(e.items.length)for(let i of e.items)i[N]=null,i[T]=null;let r=[],n=t.trim();if(n){let i=n.split(eB);for(let s=0,l=i.length;s<l;s+=2){let a=parseFloat(i[s]),u=i[s+1]!==void 0?" "+parseFloat(i[s+1]):"",c=new Tr(b,this[m],{readOnly:this[tt],getAttribute:()=>c[O],setAttribute:()=>{this[_].attributeValue=this[Y]().map(h=>h[O]||"0 0").join(" "),this[T](this[_].attributeValue);}});c[O]=`${a}${u}`,r.push(c);}}return e.attributeValue=t,e.items=r,r}};var kb=class extends zr{[ps]=null;[ms]=null;get animatedPoints(){return this[ps]||(this[ps]=new qi(b,this[m],{readOnly:true,getAttribute:()=>this.getAttribute("points"),setAttribute:()=>{}})),this[ps]}get points(){return this[ms]||(this[ms]=new qi(b,this[m],{getAttribute:()=>this.getAttribute("points"),setAttribute:t=>this.setAttribute("points",t)})),this[ms]}};chunkBUNLC3II_cjs.h();var Nb=class extends zr{[ps]=null;[ms]=null;get animatedPoints(){return this[ps]||(this[ps]=new qi(b,this[m],{readOnly:true,getAttribute:()=>this.getAttribute("points"),setAttribute:()=>{}})),this[ps]}get points(){return this[ms]||(this[ms]=new qi(b,this[m],{getAttribute:()=>this.getAttribute("points"),setAttribute:t=>this.setAttribute("points",t)})),this[ms]}};chunkBUNLC3II_cjs.h();var Lb=class extends ea{[Ko]=null;[jo]=null;[ds]=null;[id]=null;[sd]=null;get cx(){return this[Ko]||(this[Ko]=new I(b,this[m],{getAttribute:()=>this.getAttribute("cx"),setAttribute:t=>this.setAttribute("cx",t)})),this[Ko]}get cy(){return this[jo]||(this[jo]=new I(b,this[m],{getAttribute:()=>this.getAttribute("cy"),setAttribute:t=>this.setAttribute("cy",t)})),this[jo]}get r(){return this[ds]||(this[ds]=new I(b,this[m],{getAttribute:()=>this.getAttribute("r"),setAttribute:t=>this.setAttribute("r",t)})),this[ds]}get fx(){return this[id]||(this[id]=new I(b,this[m],{getAttribute:()=>this.getAttribute("fx"),setAttribute:t=>this.setAttribute("fx",t)})),this[id]}get fy(){return this[sd]||(this[sd]=new I(b,this[m],{getAttribute:()=>this.getAttribute("fy"),setAttribute:t=>this.setAttribute("fy",t)})),this[sd]}};chunkBUNLC3II_cjs.h();var Mb=class extends zr{[R]=null;[D]=null;[B]=null;[F]=null;[hs]=null;[ys]=null;get x(){return this[R]||(this[R]=new I(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[D]||(this[D]=new I(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[D]}get height(){return this[F]||(this[F]=new I(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[F]}get width(){return this[B]||(this[B]=new I(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[B]}get rx(){return this[hs]||(this[hs]=new I(b,this[m],{getAttribute:()=>this.getAttribute("rx"),setAttribute:t=>this.setAttribute("rx",t)})),this[hs]}get ry(){return this[ys]||(this[ys]=new I(b,this[m],{getAttribute:()=>this.getAttribute("ry"),setAttribute:t=>this.setAttribute("ry",t)})),this[ys]}};chunkBUNLC3II_cjs.h();var Ib=class extends Fe{[Gt]=null;get href(){return this[Gt]||(this[Gt]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Gt]}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t);}};chunkBUNLC3II_cjs.h();var Rb=class extends Gn{};chunkBUNLC3II_cjs.h();var Db=class extends pt{[Ps]=null;get offset(){return this[Ps]||(this[Ps]=new bt(b,this[m],{getAttribute:()=>this.getAttribute("offset"),setAttribute:t=>this.setAttribute("offset",t)})),this[Ps]}};chunkBUNLC3II_cjs.h();var Ob=class extends pt{[sr]=null;[Hr]=this;[Ra]=false;get media(){return this.getAttribute("media")||"all"}set media(t){this.setAttribute("media",t);}get type(){return this.getAttribute("type")||"text/css"}set type(t){this.setAttribute("type",t);}get title(){return this.getAttribute("title")||""}set title(t){this.setAttribute("title",t);}get disabled(){return this[Ra]}set disabled(t){this[Ra]=!!t;}get sheet(){return this[ct]?(this[sr]||(this[sr]=new this[k][m].CSSStyleSheet,this[sr].replaceSync(this.textContent)),this[sr]):null}[Mr](){super[Mr](),this[sr]=null;}[Mt](){super[Mt](),this[sr]=null;}[Na](){this[sr]&&this[sr].replaceSync(this.textContent);}};chunkBUNLC3II_cjs.h();var Fb=class extends Fe{};chunkBUNLC3II_cjs.h();var Bb=class extends Fe{};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Uc=class extends Fe{static LENGTHADJUST_UNKNOWN=0;static LENGTHADJUST_SPACING=1;static LENGTHADJUST_SPACINGANDGLYPHS=2;[ld]=null;[ad]=null;get textLength(){return this[ld]||(this[ld]=new I(b,this[m],{getAttribute:()=>this.getAttribute("textLength"),setAttribute:t=>this.setAttribute("textLength",t)})),this[ld]}get lengthAdjust(){return this[ad]||(this[ad]=new Ht(b,this[m],{getAttribute:()=>this.getAttribute("lengthAdjust"),setAttribute:t=>this.setAttribute("lengthAdjust",t),values:["spacing","spacingAndGlyphs"],defaultValue:"spacing"})),this[ad]}getNumberOfChars(){return 0}getComputedTextLength(){return 0}getSubStringLength(t,e){return 0}getStartPositionOfChar(t){return new Tr(b,this[m])}getEndPositionOfChar(t){return new Tr(b,this[m])}getExtentOfChar(t){return new yi(b,this[m])}getRotationOfChar(t){return 0}getCharNumAtPosition(t){return 0}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var rB=/[\t\f\n\r, ]+/,Tu=class o{[m];[N];[T];[tt]=false;[_]={items:[],attributeValue:""};constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[tt]=!!r.readOnly,this[N]=r.getAttribute,this[T]=r.setAttribute;let n=new Re(this,[o]);return new Proxy(this,{get:(i,s)=>{if(s==="length"||s==="numberOfItems")return i[Y]().length;if(s in i||typeof s=="symbol")return n.bind(s),i[s];let l=Number(s);if(!isNaN(l))return i[Y]()[l]},set(i,s,l){if(n.bind(s),typeof s=="symbol")return i[s]=l,true;let a=Number(s);return isNaN(a)&&(i[s]=l),true},deleteProperty(i,s){if(typeof s=="symbol")return delete i[s],true;let l=Number(s);return isNaN(l)&&delete i[s],true},ownKeys(i){return Object.keys(i[Y]())},has(i,s){if(s in i)return true;if(typeof s=="symbol")return false;let l=Number(s);return !isNaN(l)&&l>=0&&l<i[Y]().length},defineProperty(i,s,l){return n.preventBinding(s),s in i?(Object.defineProperty(i,s,l),true):false},getOwnPropertyDescriptor(i,s){if(s in i||typeof s=="symbol")return;let l=Number(s),a=i[Y]();if(!isNaN(l)&&a[l])return {value:a[l],writable:false,enumerable:true,configurable:true}}})}get length(){return this[Y]().length}get numberOfItems(){return this[Y]().length}[Symbol.iterator](){return this[Y]().values()}clear(){this[T]("");}initialize(t){if(this[tt])throw new this[m].TypeError("Failed to execute 'initialize' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'initialize' on 'SVGLengthList': 1 arguments required, but only ${arguments.length} present.`);for(let e of this[_].items)e[N]=null,e[T]=null;return t[N]=()=>t[O],t[T]=()=>{this[_].attributeValue=this[Y]().map(e=>e[O]??"0").join(" "),this[T](this[_].attributeValue);},this[_].items=[t],this[_].attributeValue=t[O],this[T](t[O]||""),t}getItem(t){let e=this[Y]();return typeof t=="number"||(t=Number(t),t=isNaN(t)?0:t),e[t]?e[t]:null}insertItemBefore(t,e){if(this[tt])throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGLengthList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertItemBefore' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let r=this[Y](),n=r.indexOf(t);return n!==-1&&r.splice(n,1),e<0?e=0:e>r.length&&(e=r.length),r.splice(e,0,t),t[N]=()=>t[O],t[T]=()=>{this[_].attributeValue=this[Y]().map(i=>i[O]??"0").join(" "),this[T](this[_].attributeValue);},this[_].attributeValue=r.map(i=>i[O]??"0").join(" "),this[T](this[_].attributeValue),t}replaceItem(t,e){if(this[tt])throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceItem' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let r=this[Y](),n=r.indexOf(t);if(n===e)return t;n!==-1&&r.splice(n,1),e<0?e=0:e>=r.length&&(e=r.length-1),r[e]&&(r[e][N]=null,r[e][T]=null);let i=r[e];return r[e]=t,t[N]=()=>t[O],t[T]=()=>{this[_].attributeValue=this[Y]().map(s=>s[O]??"0").join(" "),this[T](this[_].attributeValue);},this[_].attributeValue=r.map(s=>s[O]??"0").join(" "),this[T](this[_].attributeValue),i}removeItem(t){if(this[tt])throw new this[m].TypeError("Failed to execute 'removeItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'removeItem' on 'SVGLengthList': 1 argument required, but only ${arguments.length} present.`);let e=this[Y]();if(t=Number(t),isNaN(t)&&(t=0),t>=e.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${t}) is greater than the maximum bound.`,C.indexSizeError);if(t<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${t}) is negative.`,C.indexSizeError);let r=e[t];return r&&(r[N]=null,r[T]=null),e.splice(t,1),this[T](e.map(n=>n[O]??"0").join(" ")),r}appendItem(t){if(this[tt])throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'appendItem' on 'SVGLengthList': 1 argument required, but only ${arguments.length} present.`);let e=this[Y](),r=e.indexOf(t);return r!==-1&&e.splice(r,1),e.push(t),t[N]=()=>t[O],t[T]=()=>{this[_].attributeValue=this[Y]().map(n=>n[O]??"0").join(" "),this[T](this[_].attributeValue);},this[_].attributeValue=e.map(n=>n[O]??"0").join(" "),this[T](this[_].attributeValue),t}[Y](){let t=this[N]()??"",e=this[_];if(e.attributeValue===t)return e.items;if(e.items.length)for(let i of e.items)i[N]=null,i[T]=null;let r=[],n=t.trim();if(n){let i=n.split(rB);for(let s=0,l=i.length;s<l;s++){let a=new di(b,this[m],{readOnly:this[tt],getAttribute:()=>a[O],setAttribute:u=>{a[O]=u;let c=r.map(h=>h[O]??"0").join(" ");e.attributeValue=c,this[T](c);}});a[O]=i[s],r.push(a);}}return e.attributeValue=t,e.items=r,r}};var js=class{[m];[N];[T];[be]=null;[ge]=null;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[N]=r.getAttribute,this[T]=r.setAttribute;}get animVal(){return this[ge]||(this[ge]=new Tu(b,this[m],{readOnly:true,getAttribute:this[N],setAttribute:this[T]})),this[ge]}set animVal(t){}get baseVal(){return this[be]||(this[be]=new Tu(b,this[m],{getAttribute:this[N],setAttribute:this[T]})),this[be]}set baseVal(t){}};var ra=class extends Uc{[R]=null;[D]=null;[Xo]=null;[Zo]=null;[Qd]=null;get x(){return this[R]||(this[R]=new js(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[D]||(this[D]=new js(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[D]}get dx(){return this[Xo]||(this[Xo]=new js(b,this[m],{getAttribute:()=>this.getAttribute("dx"),setAttribute:t=>this.setAttribute("dx",t)})),this[Xo]}get dy(){return this[Zo]||(this[Zo]=new js(b,this[m],{getAttribute:()=>this.getAttribute("dy"),setAttribute:t=>this.setAttribute("dy",t)})),this[Zo]}get rotate(){return this[Qd]||(this[Qd]=new cn(b,this[m],{getAttribute:()=>this.getAttribute("rotate"),setAttribute:t=>this.setAttribute("rotate",t)})),this[Qd]}};var Vb=class extends ra{};chunkBUNLC3II_cjs.h();var Hb=class extends Uc{static TEXTPATH_METHODTYPE_UNKNOWN=0;static TEXTPATH_METHODTYPE_ALIGN=1;static TEXTPATH_METHODTYPE_STRETCH=2;static TEXTPATH_SPACINGTYPE_UNKNOWN=0;static TEXTPATH_SPACINGTYPE_AUTO=1;static TEXTPATH_SPACINGTYPE_EXACT=2;[Gt]=null;[md]=null;[El]=null;[hd]=null;get href(){return this[Gt]||(this[Gt]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Gt]}get startOffset(){return this[md]||(this[md]=new I(b,this[m],{getAttribute:()=>this.getAttribute("startOffset"),setAttribute:t=>this.setAttribute("startOffset",t)})),this[md]}get method(){return this[El]||(this[El]=new Ht(b,this[m],{getAttribute:()=>this.getAttribute("method"),setAttribute:t=>this.setAttribute("method",t),values:["align","stretch"],defaultValue:"align"})),this[El]}get spacing(){return this[hd]||(this[hd]=new Ht(b,this[m],{getAttribute:()=>this.getAttribute("spacing"),setAttribute:t=>this.setAttribute("spacing",t),values:["auto","exact"],defaultValue:"exact"})),this[hd]}};chunkBUNLC3II_cjs.h();var Gb=class extends pt{};chunkBUNLC3II_cjs.h();var Ub=class extends ra{};chunkBUNLC3II_cjs.h();var Wb=class extends Fe{[Gt]=null;[R]=null;[D]=null;[B]=null;[F]=null;get href(){return this[Gt]||(this[Gt]=new yt(b,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Gt]}get x(){return this[R]||(this[R]=new I(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[D]||(this[D]=new I(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[D]}get width(){return this[B]||(this[B]=new I(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[B]}get height(){return this[F]||(this[F]=new I(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[F]}};chunkBUNLC3II_cjs.h();var zb=class extends pt{};chunkBUNLC3II_cjs.h();var _b=class{static SVG_UNIT_TYPE_UNKNOWN=0;static SVG_UNIT_TYPE_USERSPACEONUSE=1;static SVG_UNIT_TYPE_OBJECTBOUNDINGBOX=2;SVG_UNIT_TYPE_UNKNOWN=0;SVG_UNIT_TYPE_USERSPACEONUSE=1;SVG_UNIT_TYPE_OBJECTBOUNDINGBOX=2;constructor(t){if(t!==b)throw new TypeError("Illegal constructor")}};chunkBUNLC3II_cjs.h();var $b=class{window;constructor(t){this.window=t;}enqueueReaction(t,e,r){let n=this.window.customElements[Ti]?.get(t.localName);if(n&&t[k]===this.window.document)switch(e){case "connectedCallback":if(n.lifecycleCallbacks.connectedCallback){let i=n.lifecycleCallbacks.connectedCallback?.call(t);if(i instanceof Promise){let s=new et(this.window).getAsyncTaskManager();if(s){let l=s.startTask();i.then(()=>s.endTask(l)).catch(()=>s.endTask(l));}}}break;case "disconnectedCallback":n.lifecycleCallbacks.disconnectedCallback&&n.lifecycleCallbacks.disconnectedCallback.call(t);break;case "attributeChangedCallback":n.lifecycleCallbacks.attributeChangedCallback&&r?.length&&n.observedAttributes.has(r[0])&&n.lifecycleCallbacks.attributeChangedCallback.apply(t,r);break}}};chunkBUNLC3II_cjs.h();var Vh=class extends M{state;hasUAVisualTransition;constructor(t,e=null){super(t),this.state=e?.state??null,this.hasUAVisualTransition=e?.hasUAVisualTransition??false;}};chunkBUNLC3II_cjs.h();var Kb=class extends M{code;reason;wasClean;constructor(t,e=null){super(t,e),this.code=e?.code??0,this.reason=e?.reason??"",this.wasClean=e?.wasClean??false;}};chunkBUNLC3II_cjs.h();var Wc=class o{[ss]=null;[B]=0;[F]=0;[ko]=null;constructor(t,e,r,n,i,s,l,a){if(t!==b)throw new TypeError("Illegal constructor");let u=null;if(r instanceof o){if(r[ss]===null)throw new e.DOMException("Failed to execute 'createImageBitmap' on 'Window': The image source is not usable.",C.invalidStateError);u=r;}if(r instanceof Hs){if(!r[Lt])throw new e.DOMException("Failed to execute 'createImageBitmap' on 'Window': The image source is not usable.",C.invalidStateError);u=r;}else {if(r instanceof yu)throw new e.DOMException("Failed to execute 'createImageBitmap' on 'Window': HTMLVideoElement is not supported as an image source yet in Happy DOM.",C.invalidStateError);(r instanceof cu||r instanceof Vs)&&(u=r);}if(u===null)throw new e.TypeError("Failed to execute 'createImageBitmap' on 'Window': The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'.");this[B]=u.width,this[F]=u.height;let c=0,h=0;if(typeof n=="number"&&typeof i=="number"&&typeof s=="number"&&typeof l=="number"){if(c=n,h=i,this[B]=s,this[F]=l,a!==void 0&&typeof a!="object")throw new e.TypeError("The provided value is not of type 'ImageBitmapOptions'.");this[ko]=a||null;}else if(typeof n=="number"&&typeof i=="number"){if(this[B]=n,this[F]=i,s!==void 0&&typeof s!="object")throw new e.TypeError("The provided value is not of type 'ImageBitmapOptions'.");this[ko]=s||null;}else if(typeof n=="object")this[ko]=n;else if(n!==void 0)throw new e.TypeError("Failed to execute 'createImageBitmap' on 'Window': Overload resolution failed.");let f=new et(e).getSettings(),d=new e.OffscreenCanvas(this[B],this[F]);f?.canvasAdapter&&(d.getContext("2d").drawImage(u,-c,-h,u.width,u.height),this[ss]=d);}get width(){return this[B]}get height(){return this[F]}close(){this[ss]=null,this[ko]=null,this[B]=0,this[F]=0;}};var Cu={setTimeout:globalThis.setTimeout.bind(globalThis),clearTimeout:globalThis.clearTimeout.bind(globalThis),setInterval:globalThis.setInterval.bind(globalThis),clearInterval:globalThis.clearInterval.bind(globalThis),queueMicrotask:globalThis.queueMicrotask.bind(globalThis),setImmediate:globalThis.setImmediate.bind(globalThis),clearImmediate:globalThis.clearImmediate.bind(globalThis)},Yx=setTimeout.toString().includes("new Timeout"),pB=(()=>{try{return new Function("return true;")(),!0}catch{return false}})(),mB=(()=>{try{return globalThis.Function.$UNFROZEN$=!0,delete globalThis.Function.$UNFROZEN$,!0}catch{return false}})(),Qx=class{constructor(){throw new TypeError("Illegal constructor")}},KS=class{callback;constructor(t){this.callback=t;}},xn=class o extends Dt{Node=xt;Attr=tm;ShadowRoot=ph;ProcessingInstruction=ch;Element=Wr;CharacterData=Wi;DocumentType=Ds;HTMLAnchorElement=om;HTMLButtonElement=um;HTMLOptGroupElement=Hm;HTMLOptionElement=Us;HTMLElement=G;HTMLUnknownElement=uh;HTMLTemplateElement=oh;HTMLInputElement=Tm;HTMLSelectElement=Ym;HTMLTextAreaElement=nh;HTMLImageElement=Hs;HTMLStyleElement=Xm;HTMLLabelElement=Cm;HTMLSlotElement=Lx;HTMLMetaElement=Dm;HTMLMediaElement=Bs;HTMLAudioElement=au;HTMLVideoElement=yu;HTMLBaseElement=sm;HTMLDialogElement=ym;HTMLScriptElement=qm;HTMLLinkElement=Mm;HTMLIFrameElement=Em;HTMLFormElement=Sm;HTMLUListElement=ah;HTMLTrackElement=lh;HTMLTableRowElement=rh;HTMLTitleElement=sh;HTMLTimeElement=ih;HTMLTableSectionElement=$i;HTMLTableCellElement=Zm;HTMLTableElement=eh;HTMLSpanElement=Jm;HTMLSourceElement=Qm;HTMLQuoteElement=Km;HTMLProgressElement=$m;HTMLPreElement=_m;HTMLPictureElement=zm;HTMLParamElement=Wm;HTMLParagraphElement=Um;HTMLOutputElement=Gm;HTMLOListElement=Bm;HTMLObjectElement=Vm;HTMLMeterElement=Om;HTMLMenuElement=Rm;HTMLMapElement=Im;HTMLLIElement=Nm;HTMLLegendElement=km;HTMLModElement=Fm;HTMLHtmlElement=xm;HTMLHRElement=wm;HTMLHeadElement=Pm;HTMLHeadingElement=Am;HTMLFieldSetElement=pu;HTMLEmbedElement=fm;HTMLDListElement=cm;HTMLDivElement=dm;HTMLDetailsElement=hm;HTMLDataListElement=mm;HTMLDataElement=pm;HTMLTableColElement=th;HTMLTableCaptionElement=hu;HTMLCanvasElement=cu;HTMLBRElement=am;HTMLBodyElement=lm;HTMLAreaElement=nm;SVGSVGElement=Bh;SVGAnimateElement=Bf;SVGAnimateMotionElement=Vf;SVGAnimateTransformElement=Hf;SVGCircleElement=Gf;SVGClipPathElement=Uf;SVGDefsElement=Wf;SVGDescElement=zf;SVGEllipseElement=_f;SVGFEBlendElement=$f;SVGFEColorMatrixElement=Kf;SVGFEComponentTransferElement=jf;SVGFECompositeElement=qf;SVGFEConvolveMatrixElement=Yf;SVGFEDiffuseLightingElement=Qf;SVGFEDisplacementMapElement=Jf;SVGFEDistantLightElement=Xf;SVGFEDropShadowElement=Zf;SVGFEFloodElement=tb;SVGFEFuncAElement=eb;SVGFEFuncBElement=rb;SVGFEFuncGElement=ob;SVGFEFuncRElement=nb;SVGFEGaussianBlurElement=ib;SVGFEImageElement=sb;SVGFEMergeElement=lb;SVGFEMergeNodeElement=ab;SVGFEMorphologyElement=ub;SVGFEOffsetElement=cb;SVGFEPointLightElement=pb;SVGFESpecularLightingElement=mb;SVGFESpotLightElement=hb;SVGFETileElement=yb;SVGFETurbulenceElement=db;SVGFilterElement=fb;SVGForeignObjectElement=bb;SVGGElement=gb;SVGImageElement=Sb;SVGLineElement=Pb;SVGLinearGradientElement=Ab;SVGMarkerElement=wb;SVGMaskElement=xb;SVGMetadataElement=Eb;SVGMPathElement=vb;SVGPathElement=Tb;SVGPatternElement=Cb;SVGPolygonElement=kb;SVGPolylineElement=Nb;SVGRadialGradientElement=Lb;SVGRectElement=Mb;SVGScriptElement=Ib;SVGSetElement=Rb;SVGStopElement=Db;SVGStyleElement=Ob;SVGSwitchElement=Fb;SVGSymbolElement=Bb;SVGTextElement=Vb;SVGTextPathElement=Hb;SVGTitleElement=Gb;SVGTSpanElement=Ub;SVGUseElement=Wb;SVGViewElement=zb;SVGElement=pt;SVGAnimationElement=Gn;SVGComponentTransferFunctionElement=Un;SVGGeometryElement=zr;SVGGradientElement=ea;SVGTextPositioningElement=ra;SVGGraphicsElement=Fe;Event=M;UIEvent=Or;CustomEvent=Wp;CloseEvent=Kb;AnimationEvent=Gp;KeyboardEvent=_p;MessageEvent=$p;MouseEvent=cr;PointerEvent=tu;FocusEvent=Vi;WheelEvent=jp;InputEvent=zp;ErrorEvent=Is;StorageEvent=pf;SubmitEvent=eu;ProgressEvent=rn;MediaQueryListEvent=za;HashChangeEvent=Za;ClipboardEvent=Up;CookieChangeEvent=Ga;TouchEvent=Kp;PopStateEvent=Vh;Touch=Hp;AudioProcessingEvent=M;BeforeInputEvent=M;BeforeUnloadEvent=M;BlobEvent=M;CompositionEvent=M;CSSFontFaceLoadEvent=M;DeviceLightEvent=M;DeviceMotionEvent=M;DeviceOrientationEvent=M;DeviceProximityEvent=M;DOMTransactionEvent=M;DragEvent=M;EditingBeforeInputEvent=M;FetchEvent=M;GamepadEvent=M;IDBVersionChangeEvent=M;MediaStreamEvent=M;MutationEvent=M;OfflineAudioCompletionEvent=M;OverconstrainedError=M;PageTransitionEvent=M;PaymentRequestUpdateEvent=M;RelatedEvent=M;RTCDataChannelEvent=M;RTCIdentityErrorEvent=M;RTCIdentityEvent=M;RTCPeerConnectionIceEvent=M;SensorEvent=M;SVGEvent=M;SVGZoomEvent=M;TimeEvent=M;TrackEvent=M;TransitionEvent=M;UserProximityEvent=M;WebGLContextEvent=M;TextEvent=M;Permissions=iu;History=Pc;Navigator=Zp;Clipboard=Ha;TimeRanges=Hl;TextTrackCueList=Kl;ValidityState=go;MutationRecord=sn;IntersectionObserver=Jp;IntersectionObserverEntry=Xp;CSSStyleDeclaration=fo;CSSRule=An;CSSContainerRule=_a;CSSFontFaceRule=$a;CSSKeyframeRule=Ls;CSSKeyframesRule=Ka;CSSMediaRule=qa;CSSStyleRule=Ms;CSSSupportsRule=Ja;CSSConditionRule=li;CSSGroupingRule=si;CSSScopeRule=Ns;DOMRect=pi;DOMRectReadOnly=su;Plugin=yf;PluginArray=xc;Location=Ac;CustomElementRegistry=fc;ResizeObserver=mh;Blob=Ae;File=en;Storage=gu;CookieStore=mc;MimeType=hf;MimeTypeArray=wc;NodeFilter=Ce;ImageBitmap=Wc;HTMLCollection=Oe;HTMLFormControlCollection=mu;HTMLOptionsCollection=Ic;NodeList=Mn;RadioNodeList=Cc;FileList=Ul;Screen=jl;ScreenDetails=Rc;ScreenDetailed=fu;NamedNodeMap=Os;TreeWalker=Ws;NodeIterator=Su;DataTransfer=Vp;DataTransferItem=Bi;DataTransferItemList=Xa;XMLSerializer=hh;ClipboardItem=Dp;Selection=bu;CSSUnitValue=we;SVGAngle=Ks;SVGAnimatedAngle=Gc;SVGAnimatedBoolean=Hc;SVGAnimatedEnumeration=Ht;SVGAnimatedInteger=bi;SVGAnimatedLength=I;SVGAnimatedNumber=bt;SVGAnimatedNumberList=cn;SVGAnimatedPreserveAspectRatio=Hn;SVGAnimatedRect=Zl;SVGAnimatedString=yt;SVGAnimatedTransformList=ji;SVGLength=di;SVGLengthList=Tu;SVGMatrix=$s;SVGNumber=fi;SVGNumberList=vu;SVGPoint=Tr;SVGPointList=qi;SVGPreserveAspectRatio=Eu;SVGRect=yi;SVGStringList=Ki;SVGTransform=wn;SVGTransformList=xu;SVGAnimatedLengthList=js;SVGUnitTypes=_b;StylePropertyMap=Qa;StylePropertyMapReadOnly=Ya;MediaList=ja;CSSKeywordValue=Ll;CSSStyleValue=Ml;Window=this.constructor;URLSearchParams=url.URLSearchParams;WritableStream=Ol__default.default.Writable;ReadableStream=web.ReadableStream;TransformStream=Ol__default.default.Transform;PerformanceObserver=perf_hooks.PerformanceObserver;PerformanceEntry=perf_hooks.PerformanceEntry;PerformanceObserverEntryList=Qx;document;customElements=new fc(this);window=this;globalThis=this;performance=performance;screenLeft=0;screenTop=0;screenX=0;screenY=0;crypto=gR.webcrypto;TextEncoder=util.TextEncoder;TextDecoder=util.TextDecoder;closed=false;console;name="";Buffer=buffer.Buffer;[Ea]=[];[yn];[No];[er];[cS];[pS];[mS];[hS];[vS];[La]=this;[ni]=this;[_o]=this;[m]=this;[Uw]=this;[Pa]=-1;[vl]=new $b(this);[Cs]={json:new Map,css:new Map,esm:new Map};[ic]=null;[Fa]=[];[y]=new Map;[Np]=new Map;#t;#e=null;#r=null;#o=null;#n=null;#i=null;#l={timeouts:null};#u=[];#a=[];constructor(t,e){super(),this.#t=t,this[Ww](),this.console=t.page.console,this[yn]=new df(t),this[cS]=new Zp(this),this[pS]=new jl,this[mS]=new gu,this[hS]=new gu,this[vS]=new mc(b,this),this[No]=new Ac(this.#t,e?.url??"about:blank"),this[er]=new Pc(this.#t,this),t[er].currentItem.href=e?.url??"about:blank",et.setWindowBrowserFrameRelation(this,this.#t),this[xy](),Of.extendClasses(this),this.document=new this.HTMLDocument,this.document[lo]=this;let r=t[vt].startTask(()=>this[yn].destroy());this[yn].waitUntilComplete().then(()=>{t[vt].endTask(r),this.document[va]=RS.complete,this.document.dispatchEvent(new M("readystatechange"));let n=new M("load");n[Cn]=this,n[Qr]=this.document,n[Xr]=Pe.atTarget,this.dispatchEvent(n),n[Cn]=null,n[Xr]=Pe.none,n[Oa]=false;}),this[Hw]();}get onsearch(){return this[y].get("onsearch")??null}set onsearch(t){this[y].set("onsearch",t);}get onappinstalled(){return this[y].get("onappinstalled")??null}set onappinstalled(t){this[y].set("onappinstalled",t);}get onbeforeinstallprompt(){return this[y].get("onbeforeinstallprompt")??null}set onbeforeinstallprompt(t){this[y].set("onbeforeinstallprompt",t);}get onabort(){return this[y].get("onabort")??null}set onabort(t){this[y].set("onabort",t);}get onbeforeinput(){return this[y].get("onbeforeinput")??null}set onbeforeinput(t){this[y].set("onbeforeinput",t);}get onbeforematch(){return this[y].get("onbeforematch")??null}set onbeforematch(t){this[y].set("onbeforematch",t);}get onbeforetoggle(){return this[y].get("onbeforetoggle")??null}set onbeforetoggle(t){this[y].set("onbeforetoggle",t);}get onblur(){return this[y].get("onblur")??null}set onblur(t){this[y].set("onblur",t);}get oncancel(){return this[y].get("oncancel")??null}set oncancel(t){this[y].set("oncancel",t);}get oncanplay(){return this[y].get("oncanplay")??null}set oncanplay(t){this[y].set("oncanplay",t);}get oncanplaythrough(){return this[y].get("oncanplaythrough")??null}set oncanplaythrough(t){this[y].set("oncanplaythrough",t);}get onchange(){return this[y].get("onchange")??null}set onchange(t){this[y].set("onchange",t);}get onclick(){return this[y].get("onclick")??null}set onclick(t){this[y].set("onclick",t);}get onclose(){return this[y].get("onclose")??null}set onclose(t){this[y].set("onclose",t);}get oncommand(){return this[y].get("oncommand")??null}set oncommand(t){this[y].set("oncommand",t);}get oncontentvisibilityautostatechange(){return this[y].get("oncontentvisibilityautostatechange")??null}set oncontentvisibilityautostatechange(t){this[y].set("oncontentvisibilityautostatechange",t);}get oncontextlost(){return this[y].get("oncontextlost")??null}set oncontextlost(t){this[y].set("oncontextlost",t);}get oncontextmenu(){return this[y].get("oncontextmenu")??null}set oncontextmenu(t){this[y].set("oncontextmenu",t);}get oncontextrestored(){return this[y].get("oncontextrestored")??null}set oncontextrestored(t){this[y].set("oncontextrestored",t);}get oncuechange(){return this[y].get("oncuechange")??null}set oncuechange(t){this[y].set("oncuechange",t);}get ondblclick(){return this[y].get("ondblclick")??null}set ondblclick(t){this[y].set("ondblclick",t);}get ondrag(){return this[y].get("ondrag")??null}set ondrag(t){this[y].set("ondrag",t);}get ondragend(){return this[y].get("ondragend")??null}set ondragend(t){this[y].set("ondragend",t);}get ondragenter(){return this[y].get("ondragenter")??null}set ondragenter(t){this[y].set("ondragenter",t);}get ondragleave(){return this[y].get("ondragleave")??null}set ondragleave(t){this[y].set("ondragleave",t);}get ondragover(){return this[y].get("ondragover")??null}set ondragover(t){this[y].set("ondragover",t);}get ondragstart(){return this[y].get("ondragstart")??null}set ondragstart(t){this[y].set("ondragstart",t);}get ondrop(){return this[y].get("ondrop")??null}set ondrop(t){this[y].set("ondrop",t);}get ondurationchange(){return this[y].get("ondurationchange")??null}set ondurationchange(t){this[y].set("ondurationchange",t);}get onemptied(){return this[y].get("onemptied")??null}set onemptied(t){this[y].set("onemptied",t);}get onended(){return this[y].get("onended")??null}set onended(t){this[y].set("onended",t);}get onerror(){return this[y].get("onerror")??null}set onerror(t){this[y].set("onerror",t);}get onfocus(){return this[y].get("onfocus")??null}set onfocus(t){this[y].set("onfocus",t);}get onformdata(){return this[y].get("onformdata")??null}set onformdata(t){this[y].set("onformdata",t);}get oninput(){return this[y].get("oninput")??null}set oninput(t){this[y].set("oninput",t);}get oninvalid(){return this[y].get("oninvalid")??null}set oninvalid(t){this[y].set("oninvalid",t);}get onkeydown(){return this[y].get("onkeydown")??null}set onkeydown(t){this[y].set("onkeydown",t);}get onkeypress(){return this[y].get("onkeypress")??null}set onkeypress(t){this[y].set("onkeypress",t);}get onkeyup(){return this[y].get("onkeyup")??null}set onkeyup(t){this[y].set("onkeyup",t);}get onload(){return this[y].get("onload")??null}set onload(t){this[y].set("onload",t);}get onloadeddata(){return this[y].get("onloadeddata")??null}set onloadeddata(t){this[y].set("onloadeddata",t);}get onloadedmetadata(){return this[y].get("onloadedmetadata")??null}set onloadedmetadata(t){this[y].set("onloadedmetadata",t);}get onloadstart(){return this[y].get("onloadstart")??null}set onloadstart(t){this[y].set("onloadstart",t);}get onmousedown(){return this[y].get("onmousedown")??null}set onmousedown(t){this[y].set("onmousedown",t);}get onmouseenter(){return this[y].get("onmouseenter")??null}set onmouseenter(t){this[y].set("onmouseenter",t);}get onmouseleave(){return this[y].get("onmouseleave")??null}set onmouseleave(t){this[y].set("onmouseleave",t);}get onmousemove(){return this[y].get("onmousemove")??null}set onmousemove(t){this[y].set("onmousemove",t);}get onmouseout(){return this[y].get("onmouseout")??null}set onmouseout(t){this[y].set("onmouseout",t);}get onmouseover(){return this[y].get("onmouseover")??null}set onmouseover(t){this[y].set("onmouseover",t);}get onmouseup(){return this[y].get("onmouseup")??null}set onmouseup(t){this[y].set("onmouseup",t);}get onmousewheel(){return this[y].get("onmousewheel")??null}set onmousewheel(t){this[y].set("onmousewheel",t);}get onpause(){return this[y].get("onpause")??null}set onpause(t){this[y].set("onpause",t);}get onplay(){return this[y].get("onplay")??null}set onplay(t){this[y].set("onplay",t);}get onplaying(){return this[y].get("onplaying")??null}set onplaying(t){this[y].set("onplaying",t);}get onprogress(){return this[y].get("onprogress")??null}set onprogress(t){this[y].set("onprogress",t);}get onratechange(){return this[y].get("onratechange")??null}set onratechange(t){this[y].set("onratechange",t);}get onreset(){return this[y].get("onreset")??null}set onreset(t){this[y].set("onreset",t);}get onresize(){return this[y].get("onresize")??null}set onresize(t){this[y].set("onresize",t);}get onscroll(){return this[y].get("onscroll")??null}set onscroll(t){this[y].set("onscroll",t);}get onscrollend(){return this[y].get("onscrollend")??null}set onscrollend(t){this[y].set("onscrollend",t);}get onsecuritypolicyviolation(){return this[y].get("onsecuritypolicyviolation")??null}set onsecuritypolicyviolation(t){this[y].set("onsecuritypolicyviolation",t);}get onseeked(){return this[y].get("onseeked")??null}set onseeked(t){this[y].set("onseeked",t);}get onseeking(){return this[y].get("onseeking")??null}set onseeking(t){this[y].set("onseeking",t);}get onselect(){return this[y].get("onselect")??null}set onselect(t){this[y].set("onselect",t);}get onslotchange(){return this[y].get("onslotchange")??null}set onslotchange(t){this[y].set("onslotchange",t);}get onstalled(){return this[y].get("onstalled")??null}set onstalled(t){this[y].set("onstalled",t);}get onsubmit(){return this[y].get("onsubmit")??null}set onsubmit(t){this[y].set("onsubmit",t);}get onsuspend(){return this[y].get("onsuspend")??null}set onsuspend(t){this[y].set("onsuspend",t);}get ontimeupdate(){return this[y].get("ontimeupdate")??null}set ontimeupdate(t){this[y].set("ontimeupdate",t);}get ontoggle(){return this[y].get("ontoggle")??null}set ontoggle(t){this[y].set("ontoggle",t);}get onvolumechange(){return this[y].get("onvolumechange")??null}set onvolumechange(t){this[y].set("onvolumechange",t);}get onwaiting(){return this[y].get("onwaiting")??null}set onwaiting(t){this[y].set("onwaiting",t);}get onwebkitanimationend(){return this[y].get("onwebkitanimationend")??null}set onwebkitanimationend(t){this[y].set("onwebkitanimationend",t);}get onwebkitanimationiteration(){return this[y].get("onwebkitanimationiteration")??null}set onwebkitanimationiteration(t){this[y].set("onwebkitanimationiteration",t);}get onwebkitanimationstart(){return this[y].get("onwebkitanimationstart")??null}set onwebkitanimationstart(t){this[y].set("onwebkitanimationstart",t);}get onwebkittransitionend(){return this[y].get("onwebkittransitionend")??null}set onwebkittransitionend(t){this[y].set("onwebkittransitionend",t);}get onwheel(){return this[y].get("onwheel")??null}set onwheel(t){this[y].set("onwheel",t);}get onauxclick(){return this[y].get("onauxclick")??null}set onauxclick(t){this[y].set("onauxclick",t);}get ongotpointercapture(){return this[y].get("ongotpointercapture")??null}set ongotpointercapture(t){this[y].set("ongotpointercapture",t);}get onlostpointercapture(){return this[y].get("onlostpointercapture")??null}set onlostpointercapture(t){this[y].set("onlostpointercapture",t);}get onpointerdown(){return this[y].get("onpointerdown")??null}set onpointerdown(t){this[y].set("onpointerdown",t);}get onpointermove(){return this[y].get("onpointermove")??null}set onpointermove(t){this[y].set("onpointermove",t);}get onpointerup(){return this[y].get("onpointerup")??null}set onpointerup(t){this[y].set("onpointerup",t);}get onpointercancel(){return this[y].get("onpointercancel")??null}set onpointercancel(t){this[y].set("onpointercancel",t);}get onpointerover(){return this[y].get("onpointerover")??null}set onpointerover(t){this[y].set("onpointerover",t);}get onpointerout(){return this[y].get("onpointerout")??null}set onpointerout(t){this[y].set("onpointerout",t);}get onpointerenter(){return this[y].get("onpointerenter")??null}set onpointerenter(t){this[y].set("onpointerenter",t);}get onpointerleave(){return this[y].get("onpointerleave")??null}set onpointerleave(t){this[y].set("onpointerleave",t);}get onselectstart(){return this[y].get("onselectstart")??null}set onselectstart(t){this[y].set("onselectstart",t);}get onselectionchange(){return this[y].get("onselectionchange")??null}set onselectionchange(t){this[y].set("onselectionchange",t);}get onanimationcancel(){return this[y].get("onanimationcancel")??null}set onanimationcancel(t){this[y].set("onanimationcancel",t);}get onanimationend(){return this[y].get("onanimationend")??null}set onanimationend(t){this[y].set("onanimationend",t);}get onanimationiteration(){return this[y].get("onanimationiteration")??null}set onanimationiteration(t){this[y].set("onanimationiteration",t);}get onanimationstart(){return this[y].get("onanimationstart")??null}set onanimationstart(t){this[y].set("onanimationstart",t);}get ontransitionrun(){return this[y].get("ontransitionrun")??null}set ontransitionrun(t){this[y].set("ontransitionrun",t);}get ontransitionstart(){return this[y].get("ontransitionstart")??null}set ontransitionstart(t){this[y].set("ontransitionstart",t);}get ontransitionend(){return this[y].get("ontransitionend")??null}set ontransitionend(t){this[y].set("ontransitionend",t);}get ontransitioncancel(){return this[y].get("ontransitioncancel")??null}set ontransitioncancel(t){this[y].set("ontransitioncancel",t);}get onbeforexrselect(){return this[y].get("onbeforexrselect")??null}set onbeforexrselect(t){this[y].set("onbeforexrselect",t);}get onafterprint(){return this[y].get("onafterprint")??null}set onafterprint(t){this[y].set("onafterprint",t);}get onbeforeprint(){return this[y].get("onbeforeprint")??null}set onbeforeprint(t){this[y].set("onbeforeprint",t);}get onbeforeunload(){return this[y].get("onbeforeunload")??null}set onbeforeunload(t){this[y].set("onbeforeunload",t);}get onhashchange(){return this[y].get("onhashchange")??null}set onhashchange(t){this[y].set("onhashchange",t);}get onlanguagechange(){return this[y].get("onlanguagechange")??null}set onlanguagechange(t){this[y].set("onlanguagechange",t);}get onmessage(){return this[y].get("onmessage")??null}set onmessage(t){this[y].set("onmessage",t);}get onmessageerror(){return this[y].get("onmessageerror")??null}set onmessageerror(t){this[y].set("onmessageerror",t);}get onoffline(){return this[y].get("onoffline")??null}set onoffline(t){this[y].set("onoffline",t);}get ononline(){return this[y].get("ononline")??null}set ononline(t){this[y].set("ononline",t);}get onpagehide(){return this[y].get("onpagehide")??null}set onpagehide(t){this[y].set("onpagehide",t);}get onpageshow(){return this[y].get("onpageshow")??null}set onpageshow(t){this[y].set("onpageshow",t);}get onpopstate(){return this[y].get("onpopstate")??null}set onpopstate(t){this[y].set("onpopstate",t);}get onrejectionhandled(){return this[y].get("onrejectionhandled")??null}set onrejectionhandled(t){this[y].set("onrejectionhandled",t);}get onstorage(){return this[y].get("onstorage")??null}set onstorage(t){this[y].set("onstorage",t);}get onunhandledrejection(){return this[y].get("onunhandledrejection")??null}set onunhandledrejection(t){this[y].set("onunhandledrejection",t);}get onunload(){return this[y].get("onunload")??null}set onunload(t){this[y].set("onunload",t);}get ondevicemotion(){return this[y].get("ondevicemotion")??null}set ondevicemotion(t){this[y].set("ondevicemotion",t);}get ondeviceorientation(){return this[y].get("ondeviceorientation")??null}set ondeviceorientation(t){this[y].set("ondeviceorientation",t);}get ondeviceorientationabsolute(){return this[y].get("ondeviceorientationabsolute")??null}set ondeviceorientationabsolute(t){this[y].set("ondeviceorientationabsolute",t);}get onpointerrawupdate(){return this[y].get("onpointerrawupdate")??null}set onpointerrawupdate(t){this[y].set("onpointerrawupdate",t);}get onpageswap(){return this[y].get("onpageswap")??null}set onpageswap(t){this[y].set("onpageswap",t);}get onpagereveal(){return this[y].get("onpagereveal")??null}set onpagereveal(t){this[y].set("onpagereveal",t);}get onscrollsnapchange(){return this[y].get("onscrollsnapchange")??null}set onscrollsnapchange(t){this[y].set("onscrollsnapchange",t);}get onscrollsnapchanging(){return this[y].get("onscrollsnapchanging")??null}set onscrollsnapchanging(t){this[y].set("onscrollsnapchanging",t);}get ongamepadconnected(){return this[y].get("ongamepadconnected")??null}set ongamepadconnected(t){this[y].set("ongamepadconnected",t);}get ongamepaddisconnected(){return this[y].get("ongamepaddisconnected")??null}set ongamepaddisconnected(t){this[y].set("ongamepaddisconnected",t);}get self(){return this[La]}set self(t){this[La]=t;}get top(){return this[ni]}get parent(){return this[_o]}set parent(t){this[_o]=t;}get frames(){return this[Uw]}set frames(t){this[_o]=t;}get location(){return this[No]}set location(t){this[No].href=t;}get history(){return this[er]}get navigator(){return this[cS]}get screen(){return this[pS]}get sessionStorage(){return this[mS]}get localStorage(){return this[hS]}get cookieStore(){return this[vS]}get opener(){return this.#t[Xn]}get scrollX(){return this.document?.documentElement?.scrollLeft??0}get pageXOffset(){return this.scrollX}get scrollY(){return this.document?.documentElement?.scrollTop??0}get pageYOffset(){return this.scrollY}get CSS(){return new sf}get innerWidth(){return this.#e===null?this.#t.page.viewport.width:this.#e}set innerWidth(t){this.#e=t;}get innerHeight(){return this.#r===null?this.#t.page.viewport.height:this.#r}set innerHeight(t){this.#r=t;}get outerWidth(){return this.#o===null?this.#t.page.viewport.width:this.#o}set outerWidth(t){this.#o=t;}get outerHeight(){return this.#n===null?this.#t.page.viewport.height:this.#n}set outerHeight(t){this.#n=t;}get devicePixelRatio(){return this.#i===null?this.#t.page.viewport.devicePixelRatio:this.#i}set devicePixelRatio(t){this.#i=t;}getComputedStyle(t){if(!(t instanceof Wr))throw new this.TypeError("Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.");return t[Ju]=t[Ju]||new fo(b,this,{element:t,computed:true}),t[Ju]}getSelection(){return this.document.getSelection()}scroll(t,e){if(typeof t!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scroll' on 'Window': The provided value is not of type 'ScrollToOptions'.");let r=typeof t=="object"?t:{left:t,top:e};if(r.behavior==="smooth")this.setTimeout(()=>{if(r.top!==void 0){let n=Number(r.top);this.document.documentElement.scrollTop=isNaN(n)?0:n;}if(r.left!==void 0){let n=Number(r.left);this.document.documentElement.scrollLeft=isNaN(n)?0:n;}});else {if(r.top!==void 0){let n=Number(r.top);this.document.documentElement.scrollTop=isNaN(n)?0:n;}if(r.left!==void 0){let n=Number(r.left);this.document.documentElement.scrollLeft=isNaN(n)?0:n;}}}scrollTo(t,e){if(typeof t!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scrollTo' on 'Window': The provided value is not of type 'ScrollToOptions'.");this.scroll(t,e);}scrollBy(t,e){if(typeof t!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scrollBy' on 'Window': The provided value is not of type 'ScrollToOptions'.");let r=typeof t=="object"?t:{left:t,top:e};this.scroll({left:this.document.documentElement.scrollLeft+(r.left??0),top:this.document.documentElement.scrollTop+(r.top??0),behavior:r.behavior});}blur(){}focus(){}open(t,e,r){return Ef.openPage(this.#t,{url:t,target:e,features:r})}close(){this.#t.page.mainFrame===this.#t&&this.#t[Xn]&&(this[Mt](),this.#t.page.close());}matchMedia(t){return new dc({window:this,media:t})}getScreenDetails(){return Promise.resolve(new Rc)}setTimeout(t,e=0,...r){if(this.closed)return {};let n=this.#t.page.context.browser.settings;if(n.timer.preventTimerLoops){let l=new Error().stack,a=this.#u,u=this.#a,c=a.indexOf(l);if(c!==-1){if(u[c].timeout++,u[c].timeout>=(n.timer.preventTimerLoops===true?1:n.timer.preventTimerLoops.timeout??1))return {}}else a.push(l),u.push({timeout:0,requestAnimationFrame:0});}if(!e){let l=this.#l;if(!l.timeouts){let u=!n||!n.disableErrorCapturing&&n.errorCapture===fe.tryAndCatch,c=Cu.setTimeout(()=>{this.#t[vt].endTimer(c);let h=l.timeouts;l.timeouts=null;for(let f of h)if(u){let d;try{d=f.callback();}catch(g){this[Se](g);}d instanceof Promise&&d.catch(g=>this[Se](g));}else f.callback();},0);l.timeouts=[],this.#t[vt].startTimer(c);}let a=new KS(()=>t(...r));return l.timeouts.push(a),a}let i=!n||!n.disableErrorCapturing&&n.errorCapture===fe.tryAndCatch,s=Cu.setTimeout(()=>{if(this.#t[vt].endTimer(s),i){let l;try{l=t(...r);}catch(a){this[Se](a);}l instanceof Promise&&l.catch(a=>this[Se](a));}else t(...r);},n?.timer.maxTimeout!==-1&&e&&e>n?.timer.maxTimeout?n?.timer.maxTimeout:e);return this.#t[vt].startTimer(s),s}clearTimeout(t){if(t&&t instanceof KS){let e=this.#l;if(!e.timeouts)return;let r=e.timeouts.indexOf(t);r!==-1&&e.timeouts.splice(r,1);return}Yx&&(!t||t.constructor.name!=="Timeout")||(Cu.clearTimeout(t),this.#t[vt].endTimer(t));}setInterval(t,e=0,...r){if(this.closed)return {};let n=this.#t.page.context.browser.settings,i=!n||!n.disableErrorCapturing&&n.errorCapture===fe.tryAndCatch,s=0,l=Cu.setInterval(()=>{if(i){let a;try{a=t(...r);}catch(u){this.clearInterval(l),this[Se](u);}a instanceof Promise&&a.catch(u=>{this.clearInterval(l),this[Se](u);});}else t(...r);n?.timer.maxIntervalIterations!==-1&&(s>=n?.timer.maxIntervalIterations&&this.clearInterval(l),s++);},n?.timer.maxIntervalTime!==-1&&e&&e>n?.timer.maxIntervalTime?n?.timer.maxIntervalTime:e);return this.#t[vt].startTimer(l),l}clearInterval(t){Yx&&(!t||t.constructor.name!=="Timeout")||(Cu.clearInterval(t),this.#t[vt].endTimer(t));}requestAnimationFrame(t){if(this.closed)return {};let e=this.#t.page.context.browser.settings;if(e.timer.preventTimerLoops){let i=new Error().stack,s=this.#u,l=this.#a,a=s.indexOf(i);if(a!==-1){if(l[a].requestAnimationFrame++,l[a].requestAnimationFrame>=(e.timer.preventTimerLoops===true?1:e.timer.preventTimerLoops.requestAnimationFrame??1))return {}}else s.push(i),l.push({timeout:0,requestAnimationFrame:0});}let r=!e||!e.disableErrorCapturing&&e.errorCapture===fe.tryAndCatch,n=Cu.setImmediate(()=>{if(this.#t[vt].endImmediate(n),r){let i;try{i=t(this.performance.now());}catch(s){this[Se](s);}i instanceof Promise&&i.catch(s=>this[Se](s));}else t(this.performance.now());});return this.#t[vt].startImmediate(n),n}cancelAnimationFrame(t){Yx&&(!t||t.constructor.name!=="Immediate")||(Cu.clearImmediate(t),this.#t[vt].endImmediate(t));}queueMicrotask(t){if(this.closed)return;let e=false,r=this.#t[vt].startTask(()=>e=true),n=this.#t.page.context.browser.settings,i=!n||!n.disableErrorCapturing&&n.errorCapture===fe.tryAndCatch;Cu.queueMicrotask(()=>{if(!e)if(this.#t[vt].endTask(r),i){let s;try{s=t();}catch(l){this[Se](l);}s instanceof Promise&&s.catch(l=>this[Se](l));}else t();});}async fetch(t,e){return this.closed?Promise.reject(new this.DOMException("Failed to execute 'fetch' on 'Window': The window is closed.",C.invalidStateError)):await new nn({browserFrame:this.#t,window:this,url:t,init:e}).send()}btoa(t){return Rp.btoa(t)}atob(t){return Rp.atob(t)}postMessage(t,e="*",r){if(!this.closed){if(e&&e!=="*"&&this.location.origin!==e)throw new this.DOMException(`Failed to execute 'postMessage' on 'Window': The target origin provided ('${e}') does not match the recipient window's origin ('${this.location.origin}').`,C.securityError);try{JSON.stringify(t);}catch{throw new this.DOMException("Failed to execute 'postMessage' on 'Window': The provided message cannot be serialized.",C.invalidStateError)}this.setTimeout(()=>this.dispatchEvent(new $p("message",{data:t,origin:this.#t.parentFrame?this.#t.parentFrame.window.location.origin:this.#t.window.location.origin,source:this.#t.parentFrame?this.#t.parentFrame.window:this.#t.window,lastEventId:""})));}}resizeTo(t,e){if(!this.closed){if(!t||!e)throw new this.DOMException(`Failed to execute 'resizeTo' on 'Window': 2 arguments required, but only ${arguments.length} present.`);this.#t[hl]&&this.#t.page.setViewport({width:t,height:e});}}resizeBy(t,e){if(!this.closed){if(!t||!e)throw new this.DOMException(`Failed to execute 'resizeBy' on 'Window': 2 arguments required, but only ${arguments.length} present.`);if(this.#t[hl]){let r=this.#t.page.viewport;this.#t.page.setViewport({width:r.width+t,height:r.height+e});}}}async createImageBitmap(t,e,r,n,i,s){return new Wc(b,this,t,e,r,n,i,s)}[Se](t){this.#t.page.console.error(t),this.dispatchEvent(new Is("error",{message:t.message,error:t}));}[kn](t,e){return new qx__default.default.Script(t,e).runInContext(this)}[xy](){qx__default.default.isContext(this)||(qx__default.default.createContext(this),Xk.runInContext(this));}[Ww](){let t=this.#t;(pB||mB)&&t.page.context.browser.settings.enableJavaScriptEvaluation&&!t.page.context.browser.settings.suppressInsecureJavaScriptEnvironmentWarning&&!t.page.context.browser.settings.suppressCodeGenerationFromStringsWarning&&console.warn(`
246
- Warning! Happy DOM has JavaScript evaluation enabled and is running in an insecure environment.
247
-
248
- A VM Context is not an isolated environment, and if you run untrusted code you are at risk of RCE (Remote Code Execution) attacks. The attacker can escape the VM and run code at process level.
249
-
250
- It is recommended to disable code generation and freeze all builtins at process level by running node with the flags "--disallow-code-generation-from-strings" and "--frozen-intrinsics". You can suppress this warning by setting "suppressInsecureJavaScriptEnvironmentWarning" to "true" at your own risk.
251
-
252
- For more information, see https://github.com/capricorn86/happy-dom/wiki/JavaScript-Evaluation-Warning
253
-
254
- `);}[Mt](){if(this.closed)return;super[Mt](),this.closed=true;let t=this[Ea];for(let i of t)i[Mt]&&i[Mt]();this[Ea]=[];for(let i of this[Fa])i[Mt]();this[Fa]=[],this.document[Mt]();let e=this.document.createElement("html"),r=this.document.createElement("head"),n=this.document.createElement("body");e.appendChild(r),e.appendChild(n),this.document[Ot](e),this.location[Mt]&&this.location[Mt](),this.customElements[Mt]&&this.customElements[Mt](),this.history[Mt]&&this.history[Mt](),this[Np].clear(),this[Cs].json.clear(),this[Cs].css.clear(),this[Cs].esm.clear(),this.document[mo].clear(),this.document[Ze]=null,this.document[pl]=null,this.document[Tn]=null,this.document[wa]=null,this[_o]=null,this[ni]=null,et.removeWindowBrowserFrameRelation(this);}[Hw](){for(let t of [o,Dt]){let e=Object.getOwnPropertyDescriptors(t.prototype),r=Object.keys(e);for(let n of r){let i=e[n];i.get||i.set?Object.defineProperty(this,n,{...i,get:i.get?.bind(this),set:i.set?.bind(this)}):n!=="constructor"&&typeof i.value=="function"&&!i.value.toString().startsWith("class ")&&Object.defineProperty(this,n,{...i,value:i.value.bind(this)});}}}};chunkBUNLC3II_cjs.h();var oa=class{static evaluate(t,e){if(!t.window)throw new Error('The frame has been destroyed, the "window" property is not set.');return e=typeof e=="string"?new qx.Script(e):e,e.runInContext(t.window)}static async evaluateModule(t,e){if(!t.window)throw new Error('The frame has been destroyed, the "window" property is not set.');let r=t.window;if(e?.code){let n=e.url?new URL(e.url,r.location.href):r.location,i=e.code;switch(e?.type||"esm"){case "esm":let s=new Vn(r,n);return await new $l({window:r,url:n,source:i,factory:s}).evaluate();case "json":return await new Mc({window:r,url:n,source:i}).evaluate();case "css":return await new Lc({window:r,url:n,source:i}).evaluate()}}return e?.url?await(await new Vn(r,r.location).getModule(e.url,{with:{type:e.type||"esm"}})).evaluate():{}}};chunkBUNLC3II_cjs.h();var zc=class{currentItem={title:"",href:"about:blank",state:null,popState:false,scrollRestoration:ui.auto,method:"GET",formData:null};items=[this.currentItem];push(t){let e=this.items.indexOf(this.currentItem);e!==this.items.length-1&&(this.items.length=e+1),this.items.push(t),this.currentItem=t;}replace(t){let e=this.items.indexOf(this.currentItem);if(e!==this.items.length-1&&(this.items.length=e+1),e===-1)throw new Error("Current history item not found");this.currentItem=t,this.items[e]=t;}clear(){this.items.length=0,this.currentItem={title:"",href:"about:blank",state:null,popState:false,scrollRestoration:ui.auto,method:"GET",formData:null},this.items.push(this.currentItem);}};chunkBUNLC3II_cjs.h();var ku=class{#t;#e={};#r={};#o=0;#n=[];constructor(t){this.#t=t;}assert(t,e,...r){t||this.#t.print({type:rr.assert,level:Dr.error,message:["Assertion failed:",...e?[e,...r]:r],group:this.#n[this.#n.length-1]||null});}clear(){this.#t.clear();}count(t="default"){this.#e[t]||(this.#e[t]=0),this.#e[t]++,this.#t.print({type:rr.count,level:Dr.info,message:[`${t}: ${this.#e[t]}`],group:this.#n[this.#n.length-1]||null});}countReset(t="default"){delete this.#e[t],this.#t.print({type:rr.countReset,level:Dr.warn,message:[`${t}: 0`],group:this.#n[this.#n.length-1]||null});}debug(t,...e){this.#t.print({type:rr.debug,level:Dr.log,message:t?[t,...e]:e,group:this.#n[this.#n.length-1]||null});}dir(t){this.#t.print({type:rr.dir,level:Dr.log,message:[t],group:this.#n[this.#n.length-1]||null});}dirxml(t){this.#t.print({type:rr.dirxml,level:Dr.log,message:[t],group:this.#n[this.#n.length-1]||null});}error(t,...e){this.#t.print({type:rr.error,level:Dr.error,message:t?[t,...e]:e,group:this.#n[this.#n.length-1]||null});}exception(...t){this.error(...t);}group(t){this.#o++;let e={id:this.#o,label:t||"default",collapsed:false,parent:this.#n[this.#n.length-1]||null};this.#n.push(e),this.#t.print({type:rr.group,level:Dr.log,message:[t||"default"],group:e});}groupCollapsed(t){this.#o++;let e={id:this.#o,label:t||"default",collapsed:true,parent:this.#n[this.#n.length-1]||null};this.#n.push(e),this.#t.print({type:rr.groupCollapsed,level:Dr.log,message:[t||"default"],group:e});}groupEnd(){this.#n.length!==0&&this.#n.pop();}info(t,...e){this.#t.print({type:rr.info,level:Dr.info,message:t?[t,...e]:e,group:this.#n[this.#n.length-1]||null});}log(t,...e){this.#t.print({type:rr.log,level:Dr.log,message:t?[t,...e]:e,group:this.#n[this.#n.length-1]||null});}profile(){throw new Error("Method not implemented.")}profileEnd(){throw new Error("Method not implemented.")}table(t){this.#t.print({type:rr.table,level:Dr.log,message:[t],group:this.#n[this.#n.length-1]||null});}time(t="default"){this.#r[t]=performance.now();}timeEnd(t="default"){let e=this.#r[t];if(e){let r=performance.now()-e;this.#t.print({type:rr.timeEnd,level:Dr.info,message:[`${t}: ${r}ms - timer ended`],group:this.#n[this.#n.length-1]||null});}}timeLog(t="default",...e){let r=this.#r[t];if(r){let n=performance.now()-r;this.#t.print({type:rr.timeLog,level:Dr.info,message:[`${t}: ${n}ms`,...e],group:this.#n[this.#n.length-1]||null});}}timeStamp(){throw new Error("Method not implemented.")}trace(t,...e){this.#t.print({type:rr.trace,level:Dr.log,message:[...t?[t,...e]:e,new Error("stack").stack.replace("Error: stack","")],group:this.#n[this.#n.length-1]||null});}warn(t,...e){this.#t.print({type:rr.warn,level:Dr.warn,message:t?[t,...e]:e,group:this.#n[this.#n.length-1]||null});}};chunkBUNLC3II_cjs.h();var na=class{static getFrames(t){return this.findFrames(t.mainFrame)}static closePage(t){if(t.closed)return Promise.resolve();t.closed=true;let e=t.context.pages.indexOf(t);return e!==-1&&t.context.pages.splice(e,1),t.virtualConsolePrinter.close(),_i.destroyFrame(t.mainFrame)}static findFrames(t){let e=[t];for(let r of t.childFrames)e=e.concat(this.findFrames(r));return e}};chunkBUNLC3II_cjs.h();var _c=class{#t=new Map;get(t){let e=this.#t.get(t.url);return e?e.expires<Date.now()?(this.#t.delete(t.url),null):e:null}add(t,e){if(this.#t.delete(t.url),t.headers.get("Cache-Control")?.includes("no-cache")||e.status<200||e.status>=300)return null;let r=e.headers.get("Access-Control-Max-Age"),n=e.headers.get("Access-Control-Allow-Origin");if(!r||!n)return null;let i=[];if(e.headers.has("Access-Control-Allow-Methods")&&e.headers.get("Access-Control-Allow-Methods")!=="*")for(let a of e.headers.get("Access-Control-Allow-Methods").split(","))i.push(a.trim().toUpperCase());let s={allowOrigin:n,allowMethods:i,expires:Date.now()+parseInt(r)*1e3};return isNaN(s.expires)||s.expires<Date.now()?null:(this.#t.set(t.url,s),s)}clear(){this.#t.clear();}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var b0={version:"20.11.0"};var gi={disableJavaScriptEvaluation:false,enableJavaScriptEvaluation:false,disableJavaScriptFileLoading:false,disableCSSFileLoading:false,enableImageFileLoading:false,disableIframePageLoading:false,disableComputedStyleRendering:false,handleDisabledFileLoadingAsSuccess:false,disableErrorCapturing:false,errorCapture:fe.tryAndCatch,enableFileSystemHttpRequests:false,suppressCodeGenerationFromStringsWarning:false,suppressInsecureJavaScriptEnvironmentWarning:false,timer:{maxTimeout:-1,maxIntervalTime:-1,maxIntervalIterations:-1,preventTimerLoops:false},fetch:{disableSameOriginPolicy:false,disableStrictSSL:false,interceptor:null,requestHeaders:null,virtualServers:null},module:{resolveNodeModules:null,urlResolver:null,disableCache:false},navigation:{disableMainFrameNavigation:false,disableChildFrameNavigation:false,disableChildPageNavigation:false,disableFallbackToSetURL:false,crossOriginPolicy:bm.anyOrigin,beforeContentCallback:null},navigator:{userAgent:`Mozilla/5.0 (X11; ${process.platform.charAt(0).toUpperCase()+process.platform.slice(1)+" "+process.arch}) AppleWebKit/537.36 (KHTML, like Gecko) HappyDOM/${b0.version}`,maxTouchPoints:0},device:{prefersColorScheme:"light",prefersReducedMotion:"no-preference",mediaType:"screen",forcedColors:"none"},debug:{traceWaitUntilComplete:-1},viewport:{width:1024,height:768,devicePixelRatio:1},canvasAdapter:null};var Kc=class{static createSettings(t){return t&&this.validate(gi,t),{...gi,...t,navigation:{...gi.navigation,...t?.navigation},navigator:{...gi.navigator,...t?.navigator},timer:{...gi.timer,...t?.timer},fetch:{...gi.fetch,...t?.fetch},module:{...gi.module,...t?.module},device:{...gi.device,...t?.device},debug:{...gi.debug,...t?.debug},viewport:{...gi.viewport,...t?.viewport},canvasAdapter:t?.canvasAdapter??gi.canvasAdapter}}static validate(t,e,r){for(let n of Object.keys(e)){if(t[n]===void 0){let i=r?r+"."+n:n;throw new Error(`Unknown browser setting "${i}"`)}if(typeof t[n]=="object"&&!Array.isArray(t[n])&&t[n]!==null){let i=r?r+"."+n:n;if(typeof e[n]!="object"||Array.isArray(e[n])||e[n]===null)throw new Error(`Browser setting "${i}" cannot be null`);this.validate(t[n],e[n],i);}else if((typeof t[n]=="boolean"||typeof t[n]=="number"||typeof t[n]=="string")&&typeof e[n]!=typeof t[n]&&!(n==="preventTimerLoops"&&typeof e[n]=="object"&&e[n]!==null)){let s=r?r+"."+n:n;throw new Error(`Browser setting "${s}" must be of type "${typeof t[n]}"`)}}}};chunkBUNLC3II_cjs.h();var jc=class{static listenerCount=0;observedWindows=[];uncaughtExceptionListener=null;uncaughtRejectionListener=null;observe(t){if(this.observedWindows.includes(t))throw new Error("Browser window is already being observed.");this.observedWindows.push(t),!this.uncaughtExceptionListener&&(this.uncaughtExceptionListener=(e,r)=>{if(r==="unhandledRejection")return;let n=null;for(let i of this.observedWindows)if(e instanceof i.Error||e instanceof i.DOMException){n=i;break}n?(n.console.error(e),n.dispatchEvent(new n.ErrorEvent("error",{error:e,message:e.message}))):process.listenerCount("uncaughtException")===this.constructor.listenerCount&&(console.error(e),process.exit(1));},this.uncaughtRejectionListener=e=>{let r=null;for(let n of this.observedWindows)if(e instanceof n.Error||e instanceof n.DOMException){r=n;break}r?(r.console.error(e),r.dispatchEvent(new r.ErrorEvent("error",{error:e,message:e.message}))):process.listenerCount("unhandledRejection")===this.constructor.listenerCount&&(console.error(e),process.exit(1));},this.constructor.listenerCount++,process.on("uncaughtException",this.uncaughtExceptionListener),process.on("unhandledRejection",this.uncaughtRejectionListener));}disconnect(t){let e=this.observedWindows.indexOf(t);e!==-1&&(this.observedWindows.splice(e,1),this.observedWindows.length===0&&this.uncaughtExceptionListener&&(this.constructor.listenerCount--,process.off("uncaughtException",this.uncaughtExceptionListener),this.uncaughtRejectionListener&&process.off("unhandledRejection",this.uncaughtRejectionListener),this.uncaughtExceptionListener=null,this.uncaughtRejectionListener=null));}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Uh=class{childFrames=[];parentFrame=null;page;closed=false;[vt]=new Oi(this);[ve]={navigation:[]};[Co]=null;[Xn]=null;[hl]=false;[er]=new zc;constructor(t){this.page=t,t.context.browser.contexts[0]?.pages[0]?.mainFrame&&(this.window=new this.page.context.browser.windowClass(this),t.context.browser[Br]&&t.context.browser[Br].observe(this.window));}get content(){if(!this.window)throw new Error('The frame has been destroyed, the "window" property is not set.');return this.window.document.documentElement.outerHTML}set content(t){if(!this.window)throw new Error('The frame has been destroyed, the "window" property is not set.');this.window.document[Xi]=true,this.window.document[Zi]=false,this.window.document.open(),this.window.document.write(t);}get url(){if(!this.window)throw new Error('The frame has been destroyed, the "window" property is not set.');return this.window.location.href}set url(t){if(!this.window)throw new Error('The frame has been destroyed, the "window" property is not set.');this.window[No][ao](this,Mo.getRelativeURL(this,t).href);}get document(){return this.window?.document??null}async waitUntilComplete(){await Promise.all([this[vt].waitUntilComplete(),...this.childFrames.map(t=>t.waitUntilComplete())]);}waitForNavigation(){return new Promise(t=>this[ve].navigation.push(t))}abort(){return this.childFrames.length?new Promise((t,e)=>{Promise.all(this.childFrames.map(r=>r.abort()).concat([this[vt].abort()])).then(()=>t()).catch(e);}):this[vt].abort()}evaluate(t){return oa.evaluate(this,t)}evaluateModule(t){return oa.evaluateModule(this,t)}goto(t,e){return ro.navigate({windowClass:this.page.context.browser.windowClass,frame:this,url:t,goToOptions:e})}goBack(t){return ro.navigateBack({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:t})}goForward(t){return ro.navigateForward({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:t})}goSteps(t,e){return ro.navigateSteps({windowClass:this.page.context.browser.windowClass,frame:this,steps:t,goToOptions:e})}reload(t){return ro.reload({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:t})}};var qc=class{virtualConsolePrinter=new Va;mainFrame;context;console;viewport;closed=false;constructor(t){this.context=t,this.console=t.browser.console??new ku(this.virtualConsolePrinter),this.mainFrame=new Uh(this),this.viewport={width:t.browser.settings.viewport.width,height:t.browser.settings.viewport.height,devicePixelRatio:t.browser.settings.viewport.devicePixelRatio};}get frames(){return na.getFrames(this)}get content(){return this.mainFrame.content}set content(t){this.mainFrame.content=t;}get url(){return this.mainFrame.url}set url(t){this.mainFrame.url=t;}close(){return new Promise((t,e)=>{let r=this.context;na.closePage(this).then(()=>{r.pages[0]===this?r.browser.close().then(t).catch(e):t();}).catch(e);})}waitUntilComplete(){return this.mainFrame.waitUntilComplete()}waitForNavigation(){return this.mainFrame.waitForNavigation()}abort(){return this.mainFrame.abort()}evaluate(t){return this.mainFrame.evaluate(t)}evaluateModule(t){return this.mainFrame.evaluateModule(t)}setViewport(t){let e=Object.assign({},this.viewport);Object.assign(this.viewport,t),(e.width!==this.viewport.width||e.height!==this.viewport.height||e.devicePixelRatio!==this.viewport.devicePixelRatio)&&this.mainFrame.window.dispatchEvent(new M("resize"));}goto(t,e){return this.mainFrame.goto(t,e)}goBack(t){return this.mainFrame.goBack(t)}goForward(t){return this.mainFrame.goForward(t)}goSteps(t,e){return this.mainFrame.goSteps(t,e)}reload(t){return this.mainFrame.reload(t)}};var Wh=class{pages;browser;cookieContainer=new uc;responseCache=new cc;preflightResponseCache=new _c;closed=false;[ac]=new Map;constructor(t){this.browser=t,this.pages=[],this.pages.push(new qc(this));}async close(){if(this.closed)return;if(this.browser.contexts[0]===this)throw new Error("Cannot close the default context. Use `browser.close()` to close the browser instead.");this.closed=true,await Promise.all(this.pages.slice().map(r=>r.close()));let t=this.browser,e=t.contexts.indexOf(this);e!==-1&&t.contexts.splice(e,1),this.pages=[],this.cookieContainer.clearCookies(),this.responseCache.clear(),this.preflightResponseCache.clear();}async waitUntilComplete(){await Promise.all(this.pages.map(t=>t.waitUntilComplete()));}abort(){return new Promise((t,e)=>{if(!this.pages.length){t();return}Promise.all(this.pages.slice().map(r=>r.abort())).then(()=>t()).catch(r=>e(r));})}newPage(){let t=new qc(this);return this.pages.push(t),t}};var zh=class{contexts;settings;console;windowClass;[Br]=null;constructor(t,e){this.windowClass=t,this.console=e?.console||null,this.settings=Kc.createSettings(e?.settings),this.settings.errorCapture===fe.processLevel&&(this[Br]=new jc),this.contexts=[],this.contexts.push(new Wh(this));}get closed(){return this.contexts.length===0}get defaultContext(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");return this.contexts[0]}async close(){if(this.contexts.length===0)return;let t=this.contexts;this.contexts=[],await Promise.all(t.map(e=>e.close()));}async waitUntilComplete(){await Promise.all(this.contexts.map(t=>t.waitUntilComplete()));}abort(){return new Promise((t,e)=>{if(!this.contexts.length){t();return}Promise.all(this.contexts.slice().map(r=>r.abort())).then(()=>t()).catch(r=>e(r));})}newIncognitoContext(){throw new Error("Not possible to create a new context on a detached browser.")}newPage(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");return this.contexts[0].newPage()}};chunkBUNLC3II_cjs.h();var _h=class{#t;constructor(t){this.#t=t;}get settings(){return this.#t.page.context.browser.settings}get virtualConsolePrinter(){return this.#t.page.virtualConsolePrinter}waitUntilComplete(){return this.#t.waitUntilComplete()}whenAsyncComplete(){return this.waitUntilComplete()}abort(){return this.#t.abort()}cancelAsync(){return this.abort()}close(){return this.#t.page.close()}setURL(t){this.#t.url=t;}setViewport(t){this.#t.page.setViewport(t);}setWindowSize(t){this.setViewport({width:t?.width,height:t?.height});}setInnerWidth(t){this.setViewport({width:t});}setInnerHeight(t){this.setViewport({height:t});}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var ia=class extends xn{happyDOM;constructor(t){let r=new zh(xn,{console:t?.console,settings:t?.settings}).defaultContext.pages[0],n=r.mainFrame;t&&(t.width||t.height||t.innerWidth||t.innerHeight)&&Object.assign(r.viewport,{width:t.width||t.innerWidth||r.viewport.width,height:t.height||t.innerHeight||r.viewport.height}),super(n,{url:t?.url}),n.window=this,n.page.context.browser[Br]&&n.page.context.browser[Br].observe(this),this.happyDOM=new _h(n);}};function dB(o,t,e){let r=new ia({settings:{disableJavaScriptEvaluation:true,disableJavaScriptFileLoading:true,disableCSSFileLoading:true,disableIframePageLoading:true,disableComputedStyleRendering:true}}),n;try{let i=r.document.createElement("div");zn.fromSchema(t).serializeFragment(o.content,{document:r.document},i),n=i.innerHTML;}finally{r.happyDOM.abort(),r.happyDOM.close();}return n}function g0(o,t){if(!(typeof process<"u"&&process.versions!=null&&process.versions.node!=null))throw new Error("generateHTML can only be used in a Node environment\nIf you want to use this in a browser environment, use the `@tiptap/html` import instead.");let r=FC(t),n=Do.fromJSON(r,o);return dB(n,r)}chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var $h=(o,t)=>{if(o==="slot")return 0;if(o instanceof Function)return o(t);let{children:e,...r}=t??{};if(o==="svg")throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return [o,r,e]};var fB=(o,t)=>{var e;let{state:r,view:n}=o,{selection:i}=r;if(!i.empty)return false;let{$from:s}=i;if(s.parentOffset!==0)return false;let l=s.depth-1;if(l<0)return false;let a=s.node(l),u=s.index(l);if(u===0)return false;if(a.type===t)return o.commands.lift(t.name);let c=a.child(u-1);if(c.type!==t||!((e=c.lastChild)!=null&&e.isTextblock))return false;let h=s.before(),d=h-1-1,{tr:g}=r;return g.delete(h,s.after()).insert(d,s.parent.content),g.setSelection(Pt.create(g.doc,d)),n.dispatch(g.scrollIntoView()),true},bB=/^\s*>\s$/,S0=Ge.create({name:"blockquote",addOptions(){return {HTMLAttributes:{}}},content:"block+",group:"block",defining:true,parseHTML(){return [{tag:"blockquote"}]},renderHTML({HTMLAttributes:o}){return $h("blockquote",{...Qt(this.options.HTMLAttributes,o),children:$h("slot",{})})},parseMarkdown:(o,t)=>{var e;let r=(e=t.parseBlockChildren)!=null?e:t.parseChildren;return t.createNode("blockquote",void 0,r(o.tokens||[]))},renderMarkdown:(o,t)=>{if(!o.content)return "";let e=">",r=[];return o.content.forEach((n,i)=>{var s,l;let c=((l=(s=t.renderChild)==null?void 0:s.call(t,n,i))!=null?l:t.renderChildren([n])).split(`
255
- `).map(h=>h.trim()===""?e:`${e} ${h}`);r.push(c.join(`
256
- `));}),r.join(`
257
- ${e}
258
- `)},addCommands(){return {setBlockquote:()=>({commands:o})=>o.wrapIn(this.name),toggleBlockquote:()=>({commands:o})=>o.toggleWrap(this.name),unsetBlockquote:()=>({commands:o})=>o.lift(this.name)}},addKeyboardShortcuts(){return {"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote(),Backspace:()=>fB(this.editor,this.type)}},addInputRules(){return [Qi({find:bB,type:this.type})]}});chunkBUNLC3II_cjs.h();var gB=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,SB=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,PB=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,AB=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,P0=so.create({name:"bold",addOptions(){return {HTMLAttributes:{}}},parseHTML(){return [{tag:"strong"},{tag:"b",getAttrs:o=>o.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:o=>o.type.name===this.name},{style:"font-weight",getAttrs:o=>/^(bold(er)?|[5-9]\d{2,})$/.test(o)&&null}]},renderHTML({HTMLAttributes:o}){return $h("strong",{...Qt(this.options.HTMLAttributes,o),children:$h("slot",{})})},markdownTokenName:"strong",parseMarkdown:(o,t)=>t.applyMark("bold",t.parseInline(o.tokens||[])),markdownOptions:{htmlReopen:{open:"<strong>",close:"</strong>"}},renderMarkdown:(o,t)=>`**${t.renderChildren(o)}**`,addCommands(){return {setBold:()=>({commands:o})=>o.setMark(this.name),toggleBold:()=>({commands:o})=>o.toggleMark(this.name),unsetBold:()=>({commands:o})=>o.unsetMark(this.name)}},addKeyboardShortcuts(){return {"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return [Qn({find:gB,type:this.type}),Qn({find:PB,type:this.type})]},addPasteRules(){return [hn({find:SB,type:this.type}),hn({find:AB,type:this.type})]}});chunkBUNLC3II_cjs.h();var wB=o=>{let t=/`([^`]+)`(?!`)$/.exec(o);return !t||t.index>0&&o[t.index-1]==="`"?null:{index:t.index,text:t[0],replaceWith:t[1]}},xB=o=>{let t=/`([^`]+)`(?!`)/g,e=[],r;for(;(r=t.exec(o))!==null;)r.index>0&&o[r.index-1]==="`"||e.push({index:r.index,text:r[0],replaceWith:r[1]});return e},A0=so.create({name:"code",addOptions(){return {HTMLAttributes:{}}},excludes:"_",code:true,exitable:true,parseHTML(){return [{tag:"code"}]},renderHTML({HTMLAttributes:o}){return ["code",Qt(this.options.HTMLAttributes,o),0]},markdownTokenName:"codespan",parseMarkdown:(o,t)=>t.applyMark("code",[{type:"text",text:o.text||""}]),renderMarkdown:(o,t)=>o.content?`\`${t.renderChildren(o.content)}\``:"",addCommands(){return {setCode:()=>({commands:o})=>o.setMark(this.name),toggleCode:()=>({commands:o})=>o.toggleMark(this.name),unsetCode:()=>({commands:o})=>o.unsetMark(this.name)}},addKeyboardShortcuts(){return {"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return [Qn({find:wB,type:this.type})]},addPasteRules(){return [hn({find:xB,type:this.type})]}});chunkBUNLC3II_cjs.h();var Jx=4,EB=/^```([a-z]+)?[\s\n]$/,vB=/^~~~([a-z]+)?[\s\n]$/,w0=Ge.create({name:"codeBlock",addOptions(){return {languageClassPrefix:"language-",exitOnTripleEnter:true,exitOnArrowDown:true,defaultLanguage:null,enableTabIndentation:false,tabSize:Jx,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:true,defining:true,addAttributes(){return {language:{default:this.options.defaultLanguage,parseHTML:o=>{var t;let{languageClassPrefix:e}=this.options;if(!e)return null;let i=[...((t=o.firstElementChild)==null?void 0:t.classList)||[]].filter(s=>s.startsWith(e)).map(s=>s.replace(e,""))[0];return i||null},rendered:false}}},parseHTML(){return [{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:o,HTMLAttributes:t}){return ["pre",Qt(this.options.HTMLAttributes,t),["code",{class:o.attrs.language?this.options.languageClassPrefix+o.attrs.language:null},0]]},markdownTokenName:"code",parseMarkdown:(o,t)=>{var e,r;return ((e=o.raw)==null?void 0:e.startsWith("```"))===false&&((r=o.raw)==null?void 0:r.startsWith("~~~"))===false&&o.codeBlockStyle!=="indented"?[]:t.createNode("codeBlock",{language:o.lang||null},o.text?[t.createTextNode(o.text)]:[])},renderMarkdown:(o,t)=>{var e;let r="",n=((e=o.attrs)==null?void 0:e.language)||"";return o.content?r=[`\`\`\`${n}`,t.renderChildren(o.content),"```"].join(`
259
- `):r=`\`\`\`${n}
260
-
261
- \`\`\``,r},addCommands(){return {setCodeBlock:o=>({commands:t})=>t.setNode(this.name,o),toggleCodeBlock:o=>({commands:t})=>t.toggleNode(this.name,"paragraph",o)}},addKeyboardShortcuts(){return {"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{let{empty:o,$anchor:t}=this.editor.state.selection,e=t.pos===1;return !o||t.parent.type.name!==this.name?false:e||!t.parent.textContent.length?this.editor.commands.clearNodes():false},Tab:({editor:o})=>{var t;if(!this.options.enableTabIndentation)return false;let e=(t=this.options.tabSize)!=null?t:Jx,{state:r}=o,{selection:n}=r,{$from:i,empty:s}=n;if(i.parent.type!==this.type)return false;let l=" ".repeat(e);return s?o.commands.insertContent(l):o.commands.command(({tr:a})=>{let{from:u,to:c}=n,d=r.doc.textBetween(u,c,`
262
- `,`
263
- `).split(`
264
- `).map(g=>l+g).join(`
265
- `);return a.replaceWith(u,c,r.schema.text(d)),true})},"Shift-Tab":({editor:o})=>{var t;if(!this.options.enableTabIndentation)return false;let e=(t=this.options.tabSize)!=null?t:Jx,{state:r}=o,{selection:n}=r,{$from:i,empty:s}=n;return i.parent.type!==this.type?false:s?o.commands.command(({tr:l})=>{var a;let{pos:u}=i,c=i.start(),h=i.end(),d=r.doc.textBetween(c,h,`
266
- `,`
267
- `).split(`
268
- `),g=0,P=0,A=u-c;for(let at=0;at<d.length;at+=1){if(P+d[at].length>=A){g=at;break}P+=d[at].length+1;}let H=((a=d[g].match(/^ */))==null?void 0:a[0])||"",Q=Math.min(H.length,e);if(Q===0)return true;let U=c;for(let at=0;at<g;at+=1)U+=d[at].length+1;return l.delete(U,U+Q),u-U<=Q&&l.setSelection(Pt.create(l.doc,U)),true}):o.commands.command(({tr:l})=>{let{from:a,to:u}=n,f=r.doc.textBetween(a,u,`
269
- `,`
270
- `).split(`
271
- `).map(d=>{var g;let P=((g=d.match(/^ */))==null?void 0:g[0])||"",A=Math.min(P.length,e);return d.slice(A)}).join(`
272
- `);return l.replaceWith(a,u,r.schema.text(f)),true})},Enter:({editor:o})=>{if(!this.options.exitOnTripleEnter)return false;let{state:t}=o,{selection:e}=t,{$from:r,empty:n}=e;if(!n||r.parent.type!==this.type)return false;let i=r.parentOffset===r.parent.nodeSize-2,s=r.parent.textContent.endsWith(`
273
-
274
- `);return !i||!s?false:o.chain().command(({tr:l})=>(l.delete(r.pos-2,r.pos),true)).exitCode().run()},ArrowDown:({editor:o})=>{if(!this.options.exitOnArrowDown)return false;let{state:t}=o,{selection:e,doc:r}=t,{$from:n,empty:i}=e;if(!i||n.parent.type!==this.type||!(n.parentOffset===n.parent.nodeSize-2))return false;let l=n.after();return l===void 0?false:r.nodeAt(l)?o.commands.command(({tr:u})=>(u.setSelection(Bt.near(r.resolve(l))),true)):o.commands.exitCode()}}},addInputRules(){return [wy({find:EB,type:this.type,getAttributes:o=>({language:o[1]})}),wy({find:vB,type:this.type,getAttributes:o=>({language:o[1]})})]},addProseMirrorPlugins(){return [new Rt({key:new oe("codeBlockVSCodeHandler"),props:{handlePaste:(o,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return false;let e=t.clipboardData.getData("text/plain"),r=t.clipboardData.getData("vscode-editor-data"),n=r?JSON.parse(r):void 0,i=n?.mode;if(!e||!i)return false;let{tr:s,schema:l}=o.state,a=l.text(e.replace(/\r\n?/g,`
275
- `));return s.replaceSelectionWith(this.type.create({language:i},a)),s.selection.$from.parent.type!==this.type&&s.setSelection(Pt.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.setMeta("paste",true),o.dispatch(s),true}}})]}});chunkBUNLC3II_cjs.h();var x0=Ge.create({name:"doc",topNode:true,content:"block+",renderMarkdown:(o,t)=>o.content?t.renderChildren(o.content,`
276
-
277
- `):""});chunkBUNLC3II_cjs.h();var E0=Ge.create({name:"hardBreak",markdownTokenName:"br",addOptions(){return {keepMarks:true,HTMLAttributes:{}}},inline:true,group:"inline",selectable:false,linebreakReplacement:true,parseHTML(){return [{tag:"br"}]},renderHTML({HTMLAttributes:o}){return ["br",Qt(this.options.HTMLAttributes,o)]},renderText(){return `
278
- `},renderMarkdown:()=>`
279
- `,parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return {setHardBreak:()=>({commands:o,chain:t,state:e,editor:r})=>o.first([()=>o.exitCode(),()=>o.command(()=>{let{selection:n,storedMarks:i}=e;if(n.$from.parent.type.spec.isolating)return false;let{keepMarks:s}=this.options,{splittableMarks:l}=r.extensionManager,a=i||n.$to.parentOffset&&n.$from.marks();return t().insertContent({type:this.name}).command(({tr:u,dispatch:c})=>{if(c&&a&&s){let h=a.filter(f=>l.includes(f.type.name));u.ensureMarks(h);}return true}).run()})])}},addKeyboardShortcuts(){return {"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}});chunkBUNLC3II_cjs.h();var v0=Ge.create({name:"heading",addOptions(){return {levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:true,addAttributes(){return {level:{default:1,rendered:false}}},parseHTML(){return this.options.levels.map(o=>({tag:`h${o}`,attrs:{level:o}}))},renderHTML({node:o,HTMLAttributes:t}){return [`h${this.options.levels.includes(o.attrs.level)?o.attrs.level:this.options.levels[0]}`,Qt(this.options.HTMLAttributes,t),0]},parseMarkdown:(o,t)=>t.createNode("heading",{level:o.depth||1},t.parseInline(o.tokens||[])),renderMarkdown:(o,t)=>{var e;let r=(e=o.attrs)!=null&&e.level?parseInt(o.attrs.level,10):1,n="#".repeat(r);return o.content?`${n} ${t.renderChildren(o.content)}`:""},addCommands(){return {setHeading:o=>({commands:t})=>this.options.levels.includes(o.level)?t.setNode(this.name,o):false,toggleHeading:o=>({commands:t})=>this.options.levels.includes(o.level)?t.toggleNode(this.name,"paragraph",o):false}},addKeyboardShortcuts(){return this.options.levels.reduce((o,t)=>({...o,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(o=>wy({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${o}})\\s$`),type:this.type,getAttributes:{level:o}}))}});chunkBUNLC3II_cjs.h();var T0=Ge.create({name:"horizontalRule",addOptions(){return {HTMLAttributes:{},nextNodeType:"paragraph"}},group:"block",parseHTML(){return [{tag:"hr"}]},renderHTML({HTMLAttributes:o}){return ["hr",Qt(this.options.HTMLAttributes,o)]},markdownTokenName:"hr",parseMarkdown:(o,t)=>t.createNode("horizontalRule"),renderMarkdown:()=>"---",addCommands(){return {setHorizontalRule:()=>({chain:o,state:t})=>{if(!WC(t,t.schema.nodes[this.name]))return false;let{selection:e}=t,{$to:r}=e,n=o();return Yg(e)?n.insertContentAt(r.pos,{type:this.name}):n.insertContent({type:this.name}),n.command(({state:i,tr:s,dispatch:l})=>{if(l){let{$to:a}=s.selection,u=a.end();if(a.nodeAfter)a.nodeAfter.isTextblock?s.setSelection(Pt.create(s.doc,a.pos+1)):a.nodeAfter.isBlock?s.setSelection(At.create(s.doc,a.pos)):s.setSelection(Pt.create(s.doc,a.pos));else {let c=i.schema.nodes[this.options.nextNodeType]||a.parent.type.contentMatch.defaultType,h=c?.create();h&&(s.insert(u,h),s.setSelection(Pt.create(s.doc,u+1)));}s.scrollIntoView();}return true}).run()}}},addInputRules(){return [Xg({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}});chunkBUNLC3II_cjs.h();var TB=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,CB=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,kB=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,NB=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,C0=so.create({name:"italic",addOptions(){return {HTMLAttributes:{}}},parseHTML(){return [{tag:"em"},{tag:"i",getAttrs:o=>o.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:o=>o.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:o}){return ["em",Qt(this.options.HTMLAttributes,o),0]},addCommands(){return {setItalic:()=>({commands:o})=>o.setMark(this.name),toggleItalic:()=>({commands:o})=>o.toggleMark(this.name),unsetItalic:()=>({commands:o})=>o.unsetMark(this.name)}},markdownTokenName:"em",parseMarkdown:(o,t)=>t.applyMark("italic",t.parseInline(o.tokens||[])),markdownOptions:{htmlReopen:{open:"<em>",close:"</em>"}},renderMarkdown:(o,t)=>`*${t.renderChildren(o)}*`,addKeyboardShortcuts(){return {"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return [Qn({find:TB,type:this.type}),Qn({find:kB,type:this.type})]},addPasteRules(){return [hn({find:CB,type:this.type}),hn({find:NB,type:this.type})]}});chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var LB="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\xF6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",MB="\u03B5\u03BB1\u03C52\u0431\u04331\u0435\u043B3\u0434\u0435\u0442\u04384\u0435\u044E2\u043A\u0430\u0442\u043E\u043B\u0438\u043A6\u043E\u043C3\u043C\u043A\u04342\u043E\u043D1\u0441\u043A\u0432\u04306\u043E\u043D\u043B\u0430\u0439\u043D5\u0440\u04333\u0440\u0443\u04412\u04442\u0441\u0430\u0439\u04423\u0440\u04313\u0443\u043A\u04403\u049B\u0430\u04373\u0570\u0561\u05753\u05D9\u05E9\u05E8\u05D0\u05DC5\u05E7\u05D5\u05DD3\u0627\u0628\u0648\u0638\u0628\u064A5\u0631\u0627\u0645\u0643\u06485\u0644\u0627\u0631\u062F\u06464\u0628\u062D\u0631\u064A\u06465\u062C\u0632\u0627\u0626\u06315\u0633\u0639\u0648\u062F\u064A\u06296\u0639\u0644\u064A\u0627\u06465\u0645\u063A\u0631\u06285\u0645\u0627\u0631\u0627\u062A5\u06CC\u0631\u0627\u06465\u0628\u0627\u0631\u062A2\u0632\u0627\u06314\u064A\u062A\u06433\u06BE\u0627\u0631\u062A5\u062A\u0648\u0646\u06334\u0633\u0648\u062F\u0627\u06463\u0631\u064A\u06295\u0634\u0628\u0643\u06294\u0639\u0631\u0627\u06422\u06282\u0645\u0627\u06464\u0641\u0644\u0633\u0637\u064A\u06466\u0642\u0637\u06313\u0643\u0627\u062B\u0648\u0644\u064A\u06436\u0648\u06453\u0645\u0635\u06312\u0644\u064A\u0633\u064A\u06275\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u06277\u0642\u06394\u0647\u0645\u0631\u0627\u06475\u067E\u0627\u06A9\u0633\u062A\u0627\u06467\u0680\u0627\u0631\u062A4\u0915\u0949\u092E3\u0928\u0947\u091F3\u092D\u093E\u0930\u09240\u092E\u094D3\u094B\u09245\u0938\u0902\u0917\u0920\u09285\u09AC\u09BE\u0982\u09B2\u09BE5\u09AD\u09BE\u09B0\u09A42\u09F0\u09A44\u0A2D\u0A3E\u0A30\u0A244\u0AAD\u0ABE\u0AB0\u0AA44\u0B2D\u0B3E\u0B30\u0B244\u0B87\u0BA8\u0BCD\u0BA4\u0BBF\u0BAF\u0BBE6\u0BB2\u0B99\u0BCD\u0B95\u0BC86\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD11\u0C2D\u0C3E\u0C30\u0C24\u0C4D5\u0CAD\u0CBE\u0CB0\u0CA44\u0D2D\u0D3E\u0D30\u0D24\u0D025\u0DBD\u0D82\u0D9A\u0DCF4\u0E04\u0E2D\u0E213\u0E44\u0E17\u0E223\u0EA5\u0EB2\u0EA73\u10D2\u10D42\u307F\u3093\u306A3\u30A2\u30DE\u30BE\u30F34\u30AF\u30E9\u30A6\u30C94\u30B0\u30FC\u30B0\u30EB4\u30B3\u30E02\u30B9\u30C8\u30A23\u30BB\u30FC\u30EB3\u30D5\u30A1\u30C3\u30B7\u30E7\u30F36\u30DD\u30A4\u30F3\u30C84\u4E16\u754C2\u4E2D\u4FE11\u56FD1\u570B1\u6587\u7F513\u4E9A\u9A6C\u900A3\u4F01\u4E1A2\u4F5B\u5C712\u4FE1\u606F2\u5065\u5EB72\u516B\u53662\u516C\u53F81\u76CA2\u53F0\u6E7E1\u70632\u5546\u57CE1\u5E971\u68072\u5609\u91CC0\u5927\u9152\u5E975\u5728\u7EBF2\u5927\u62FF2\u5929\u4E3B\u65593\u5A31\u4E502\u5BB6\u96FB2\u5E7F\u4E1C2\u5FAE\u535A2\u6148\u55842\u6211\u7231\u4F603\u624B\u673A2\u62DB\u80582\u653F\u52A11\u5E9C2\u65B0\u52A0\u57612\u95FB2\u65F6\u5C1A2\u66F8\u7C4D2\u673A\u67842\u6DE1\u9A6C\u95213\u6E38\u620F2\u6FB3\u95802\u70B9\u770B2\u79FB\u52A82\u7EC4\u7EC7\u673A\u67844\u7F51\u57401\u5E971\u7AD91\u7EDC2\u8054\u901A2\u8C37\u6B4C2\u8D2D\u72692\u901A\u8CA92\u96C6\u56E22\u96FB\u8A0A\u76C8\u79D14\u98DE\u5229\u6D663\u98DF\u54C12\u9910\u53852\u9999\u683C\u91CC\u62C93\u6E2F2\uB2F7\uB1371\uCEF42\uC0BC\uC1312\uD55C\uAD6D2",nE="numeric",iE="ascii",sE="alpha",Yb="asciinumeric",qb="alphanumeric",lE="domain",R0="emoji",IB="scheme",RB="slashscheme",Xx="whitespace";function DB(o,t){return o in t||(t[o]=[]),t[o]}function Yc(o,t,e){t[nE]&&(t[Yb]=true,t[qb]=true),t[iE]&&(t[Yb]=true,t[sE]=true),t[Yb]&&(t[qb]=true),t[sE]&&(t[qb]=true),t[qb]&&(t[lE]=true),t[R0]&&(t[lE]=true);for(let r in t){let n=DB(r,e);n.indexOf(o)<0&&n.push(o);}}function OB(o,t){let e={};for(let r in t)t[r].indexOf(o)>=0&&(e[r]=true);return e}function En(o=null){this.j={},this.jr=[],this.jd=null,this.t=o;}En.groups={};En.prototype={accepts(){return !!this.t},go(o){let t=this,e=t.j[o];if(e)return e;for(let r=0;r<t.jr.length;r++){let n=t.jr[r][0],i=t.jr[r][1];if(i&&n.test(o))return i}return t.jd},has(o,t=false){return t?o in this.j:!!this.go(o)},ta(o,t,e,r){for(let n=0;n<o.length;n++)this.tt(o[n],t,e,r);},tr(o,t,e,r){r=r||En.groups;let n;return t&&t.j?n=t:(n=new En(t),e&&r&&Yc(t,e,r)),this.jr.push([o,n]),n},ts(o,t,e,r){let n=this,i=o.length;if(!i)return n;for(let s=0;s<i-1;s++)n=n.tt(o[s]);return n.tt(o[i-1],t,e,r)},tt(o,t,e,r){r=r||En.groups;let n=this;if(t&&t.j)return n.j[o]=t,t;let i=t,s,l=n.go(o);if(l?(s=new En,Object.assign(s.j,l.j),s.jr.push.apply(s.jr,l.jr),s.jd=l.jd,s.t=l.t):s=new En,i){if(r)if(s.t&&typeof s.t=="string"){let a=Object.assign(OB(s.t,r),e);Yc(i,a,r);}else e&&Yc(i,e,r);s.t=i;}return n.j[o]=s,s}};var ue=(o,t,e,r,n)=>o.ta(t,e,r,n),Pr=(o,t,e,r,n)=>o.tr(t,e,r,n),k0=(o,t,e,r,n)=>o.ts(t,e,r,n),rt=(o,t,e,r,n)=>o.tt(t,e,r,n),aa="WORD",aE="UWORD",D0="ASCIINUMERICAL",O0="ALPHANUMERICAL",eg="LOCALHOST",uE="TLD",cE="UTLD",XS="SCHEME",Kh="SLASH_SCHEME",mE="NUM",pE="WS",hE="NL",Qb="OPENBRACE",Jb="CLOSEBRACE",ZS="OPENBRACKET",tP="CLOSEBRACKET",eP="OPENPAREN",rP="CLOSEPAREN",oP="OPENANGLEBRACKET",nP="CLOSEANGLEBRACKET",iP="FULLWIDTHLEFTPAREN",sP="FULLWIDTHRIGHTPAREN",lP="LEFTCORNERBRACKET",aP="RIGHTCORNERBRACKET",uP="LEFTWHITECORNERBRACKET",cP="RIGHTWHITECORNERBRACKET",pP="FULLWIDTHLESSTHAN",mP="FULLWIDTHGREATERTHAN",hP="AMPERSAND",yP="APOSTROPHE",dP="ASTERISK",Lu="AT",fP="BACKSLASH",bP="BACKTICK",gP="CARET",Qc="COLON",yE="COMMA",SP="DOLLAR",qs="DOT",PP="EQUALS",dE="EXCLAMATION",Pi="HYPHEN",Xb="PERCENT",AP="PIPE",wP="PLUS",xP="POUND",Zb="QUERY",fE="QUOTE",F0="FULLWIDTHMIDDLEDOT",bE="SEMI",Ys="SLASH",tg="TILDE",EP="UNDERSCORE",B0="EMOJI",vP="SYM",V0=Object.freeze({__proto__:null,ALPHANUMERICAL:O0,AMPERSAND:hP,APOSTROPHE:yP,ASCIINUMERICAL:D0,ASTERISK:dP,AT:Lu,BACKSLASH:fP,BACKTICK:bP,CARET:gP,CLOSEANGLEBRACKET:nP,CLOSEBRACE:Jb,CLOSEBRACKET:tP,CLOSEPAREN:rP,COLON:Qc,COMMA:yE,DOLLAR:SP,DOT:qs,EMOJI:B0,EQUALS:PP,EXCLAMATION:dE,FULLWIDTHGREATERTHAN:mP,FULLWIDTHLEFTPAREN:iP,FULLWIDTHLESSTHAN:pP,FULLWIDTHMIDDLEDOT:F0,FULLWIDTHRIGHTPAREN:sP,HYPHEN:Pi,LEFTCORNERBRACKET:lP,LEFTWHITECORNERBRACKET:uP,LOCALHOST:eg,NL:hE,NUM:mE,OPENANGLEBRACKET:oP,OPENBRACE:Qb,OPENBRACKET:ZS,OPENPAREN:eP,PERCENT:Xb,PIPE:AP,PLUS:wP,POUND:xP,QUERY:Zb,QUOTE:fE,RIGHTCORNERBRACKET:aP,RIGHTWHITECORNERBRACKET:cP,SCHEME:XS,SEMI:bE,SLASH:Ys,SLASH_SCHEME:Kh,SYM:vP,TILDE:tg,TLD:uE,UNDERSCORE:EP,UTLD:cE,UWORD:aE,WORD:aa,WS:pE}),sa=/[a-z]/,jb=/\p{L}/u,Zx=/\p{Emoji}/u;var la=/\d/,tE=/\s/;var N0="\r",eE=`
280
- `,FB="\uFE0F",BB="\u200D",rE="\uFFFC",YS=null,QS=null;function VB(o=[]){let t={};En.groups=t;let e=new En;YS==null&&(YS=L0(LB)),QS==null&&(QS=L0(MB)),rt(e,"'",yP),rt(e,"{",Qb),rt(e,"}",Jb),rt(e,"[",ZS),rt(e,"]",tP),rt(e,"(",eP),rt(e,")",rP),rt(e,"<",oP),rt(e,">",nP),rt(e,"\uFF08",iP),rt(e,"\uFF09",sP),rt(e,"\u300C",lP),rt(e,"\u300D",aP),rt(e,"\u300E",uP),rt(e,"\u300F",cP),rt(e,"\uFF1C",pP),rt(e,"\uFF1E",mP),rt(e,"&",hP),rt(e,"*",dP),rt(e,"@",Lu),rt(e,"`",bP),rt(e,"^",gP),rt(e,":",Qc),rt(e,",",yE),rt(e,"$",SP),rt(e,".",qs),rt(e,"=",PP),rt(e,"!",dE),rt(e,"-",Pi),rt(e,"%",Xb),rt(e,"|",AP),rt(e,"+",wP),rt(e,"#",xP),rt(e,"?",Zb),rt(e,'"',fE),rt(e,"/",Ys),rt(e,";",bE),rt(e,"~",tg),rt(e,"_",EP),rt(e,"\\",fP),rt(e,"\u30FB",F0);let r=Pr(e,la,mE,{[nE]:true});Pr(r,la,r);let n=Pr(r,sa,D0,{[Yb]:true}),i=Pr(r,jb,O0,{[qb]:true}),s=Pr(e,sa,aa,{[iE]:true});Pr(s,la,n),Pr(s,sa,s),Pr(n,la,n),Pr(n,sa,n);let l=Pr(e,jb,aE,{[sE]:true});Pr(l,sa),Pr(l,la,i),Pr(l,jb,l),Pr(i,la,i),Pr(i,sa),Pr(i,jb,i);let a=rt(e,eE,hE,{[Xx]:true}),u=rt(e,N0,pE,{[Xx]:true}),c=Pr(e,tE,pE,{[Xx]:true});rt(e,rE,c),rt(u,eE,a),rt(u,rE,c),Pr(u,tE,c),rt(c,N0),rt(c,eE),Pr(c,tE,c),rt(c,rE,c);let h=Pr(e,Zx,B0,{[R0]:true});rt(h,"#"),Pr(h,Zx,h),rt(h,FB,h);let f=rt(h,BB);rt(f,"#"),Pr(f,Zx,h);let d=[[sa,s],[la,n]],g=[[sa,null],[jb,l],[la,i]];for(let P=0;P<YS.length;P++)Nu(e,YS[P],uE,aa,d);for(let P=0;P<QS.length;P++)Nu(e,QS[P],cE,aE,g);Yc(uE,{tld:true,ascii:true},t),Yc(cE,{utld:true,alpha:true},t),Nu(e,"file",XS,aa,d),Nu(e,"mailto",XS,aa,d),Nu(e,"http",Kh,aa,d),Nu(e,"https",Kh,aa,d),Nu(e,"ftp",Kh,aa,d),Nu(e,"ftps",Kh,aa,d),Yc(XS,{scheme:true,ascii:true},t),Yc(Kh,{slashscheme:true,ascii:true},t),o=o.sort((P,A)=>P[0]>A[0]?1:-1);for(let P=0;P<o.length;P++){let A=o[P][0],H=o[P][1]?{[IB]:true}:{[RB]:true};A.indexOf("-")>=0?H[lE]=true:sa.test(A)?la.test(A)?H[Yb]=true:H[iE]=true:H[nE]=true,k0(e,A,A,H);}return k0(e,"localhost",eg,{ascii:true}),e.jd=new En(vP),{start:e,tokens:Object.assign({groups:t},V0)}}function H0(o,t){let e=HB(t.replace(/[A-Z]/g,l=>l.toLowerCase())),r=e.length,n=[],i=0,s=0;for(;s<r;){let l=o,a=null,u=0,c=null,h=-1,f=-1;for(;s<r&&(a=l.go(e[s]));)l=a,l.accepts()?(h=0,f=0,c=l):h>=0&&(h+=e[s].length,f++),u+=e[s].length,i+=e[s].length,s++;i-=h,s-=f,u-=h,n.push({t:c.t,v:t.slice(i-u,i),s:i-u,e:i});}return n}function HB(o){let t=[],e=o.length,r=0;for(;r<e;){let n=o.charCodeAt(r),i,s=n<55296||n>56319||r+1===e||(i=o.charCodeAt(r+1))<56320||i>57343?o[r]:o.slice(r,r+2);t.push(s),r+=s.length;}return t}function Nu(o,t,e,r,n){let i,s=t.length;for(let l=0;l<s-1;l++){let a=t[l];o.j[a]?i=o.j[a]:(i=new En(r),i.jr=n.slice(),o.j[a]=i),o=i;}return i=new En(e),i.jr=n.slice(),o.j[t[s-1]]=i,i}function L0(o){let t=[],e=[],r=0,n="0123456789";for(;r<o.length;){let i=0;for(;n.indexOf(o[r+i])>=0;)i++;if(i>0){t.push(e.join(""));for(let s=parseInt(o.substring(r,r+i),10);s>0;s--)e.pop();r+=i;}else e.push(o[r]),r++;}return t}var rg={defaultProtocol:"http",events:null,format:M0,formatHref:M0,nl2br:false,tagName:"a",target:null,rel:null,validate:true,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function gE(o,t=null){let e=Object.assign({},rg);o&&(e=Object.assign(e,o instanceof gE?o.o:o));let r=e.ignoreTags,n=[];for(let i=0;i<r.length;i++)n.push(r[i].toUpperCase());this.o=e,t&&(this.defaultRender=t),this.ignoreTags=n;}gE.prototype={o:rg,ignoreTags:[],defaultRender(o){return o},check(o){return this.get("validate",o.toString(),o)},get(o,t,e){let r=t!=null,n=this.o[o];return n&&(typeof n=="object"?(n=e.t in n?n[e.t]:rg[o],typeof n=="function"&&r&&(n=n(t,e))):typeof n=="function"&&r&&(n=n(t,e.t,e)),n)},getObj(o,t,e){let r=this.o[o];return typeof r=="function"&&t!=null&&(r=r(t,e.t,e)),r},render(o){let t=o.render(this);return (this.get("render",null,o)||this.defaultRender)(t,o.t,o)}};function M0(o){return o}function G0(o,t){this.t="token",this.v=o,this.tk=t;}G0.prototype={isLink:false,toString(){return this.v},toHref(o){return this.toString()},toFormattedString(o){let t=this.toString(),e=o.get("truncate",t,this),r=o.get("format",t,this);return e&&r.length>e?r.substring(0,e)+"\u2026":r},toFormattedHref(o){return o.get("formatHref",this.toHref(o.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(o=rg.defaultProtocol){return {type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(o),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(o){return {type:this.t,value:this.toFormattedString(o),isLink:this.isLink,href:this.toFormattedHref(o),start:this.startIndex(),end:this.endIndex()}},validate(o){return o.get("validate",this.toString(),this)},render(o){let t=this,e=this.toHref(o.get("defaultProtocol")),r=o.get("formatHref",e,this),n=o.get("tagName",e,t),i=this.toFormattedString(o),s={},l=o.get("className",e,t),a=o.get("target",e,t),u=o.get("rel",e,t),c=o.getObj("attributes",e,t),h=o.getObj("events",e,t);return s.href=r,l&&(s.class=l),a&&(s.target=a),u&&(s.rel=u),c&&Object.assign(s,c),{tagName:n,attributes:s,content:i,eventListeners:h}}};function TP(o,t){class e extends G0{constructor(n,i){super(n,i),this.t=o;}}for(let r in t)e.prototype[r]=t[r];return e.t=o,e}var GB=TP("email",{isLink:true,toHref(){return "mailto:"+this.toString()}}),I0=TP("text"),UB=TP("nl"),JS=TP("url",{isLink:true,toHref(o=rg.defaultProtocol){return this.hasProtocol()?this.v:`${o}://${this.v}`},hasProtocol(){let o=this.tk;return o.length>=2&&o[0].t!==eg&&o[1].t===Qc}});var Si=o=>new En(o);function WB({groups:o}){let t=o.domain.concat([hP,dP,Lu,fP,bP,gP,SP,PP,Pi,mE,Xb,AP,wP,xP,Ys,vP,tg,EP]),e=[yP,Qc,yE,qs,dE,Xb,Zb,fE,bE,oP,nP,Qb,Jb,tP,ZS,eP,rP,iP,sP,lP,aP,uP,cP,pP,mP],r=[hP,yP,dP,fP,bP,gP,SP,PP,Pi,Qb,Jb,Xb,AP,wP,xP,Zb,Ys,vP,tg,EP],n=Si(),i=rt(n,tg);ue(i,r,i),ue(i,o.domain,i);let s=Si(),l=Si(),a=Si();ue(n,o.domain,s),ue(n,o.scheme,l),ue(n,o.slashscheme,a),ue(s,r,i),ue(s,o.domain,s);let u=rt(s,Lu);rt(i,Lu,u),rt(l,Lu,u),rt(a,Lu,u);let c=rt(i,qs);ue(c,r,i),ue(c,o.domain,i);let h=Si();ue(u,o.domain,h),ue(h,o.domain,h);let f=rt(h,qs);ue(f,o.domain,h);let d=Si(GB);ue(f,o.tld,d),ue(f,o.utld,d),rt(u,eg,d);let g=rt(h,Pi);rt(g,Pi,g),ue(g,o.domain,h),ue(d,o.domain,h),rt(d,qs,f),rt(d,Pi,g);let P=rt(s,Pi),A=rt(s,qs);rt(P,Pi,P),ue(P,o.domain,s),ue(A,r,i),ue(A,o.domain,s);let v=Si(JS);ue(A,o.tld,v),ue(A,o.utld,v),ue(v,o.domain,s),ue(v,r,i),rt(v,qs,A),rt(v,Pi,P),rt(v,Lu,u);let H=rt(v,Qc),Q=Si(JS);ue(H,o.numeric,Q);let U=Si(JS),j=Si();ue(U,t,U),ue(U,e,j),ue(j,t,U),ue(j,e,j),rt(v,Ys,U),rt(Q,Ys,U);let at=rt(l,Qc),X=rt(a,Qc),Ct=rt(X,Ys),Nt=rt(Ct,Ys);ue(l,o.domain,s),rt(l,qs,A),rt(l,Pi,P),ue(a,o.domain,s),rt(a,qs,A),rt(a,Pi,P),ue(at,o.domain,U),rt(at,Ys,U),rt(at,Zb,U),ue(Nt,o.domain,U),ue(Nt,t,U),rt(Nt,Ys,U);let xe=[[Qb,Jb],[ZS,tP],[eP,rP],[oP,nP],[iP,sP],[lP,aP],[uP,cP],[pP,mP]];for(let nr=0;nr<xe.length;nr++){let[Fr,ze]=xe[nr],ir=rt(U,Fr);rt(j,Fr,ir);let Ee=Si(JS);ue(ir,t,Ee);let Wn=Si();ue(ir,e,Wn),rt(ir,ze,U),ue(Ee,t,Ee),ue(Ee,e,Wn),ue(Wn,t,Ee),ue(Wn,e,Wn),rt(Ee,ze,U),rt(Wn,ze,U);}return rt(n,eg,v),rt(n,hE,UB),{start:n,tokens:V0}}function zB(o,t,e){let r=e.length,n=0,i=[],s=[];for(;n<r;){let l=o,a=null,u=null,c=0,h=null,f=-1;for(;n<r&&!(a=l.go(e[n].t));)s.push(e[n++]);for(;n<r&&(u=a||l.go(e[n].t));)a=null,l=u,l.accepts()?(f=0,h=l):f>=0&&f++,n++,c++;if(f<0)n-=c,n<r&&(s.push(e[n]),n++);else {s.length>0&&(i.push(oE(I0,t,s)),s=[]),n-=f,c-=f;let d=h.t,g=e.slice(n-c,n);i.push(oE(d,t,g));}}return s.length>0&&i.push(oE(I0,t,s)),i}function oE(o,t,e){let r=e[0].s,n=e[e.length-1].e,i=t.slice(r,n);return new o(i,e)}var _B=typeof console<"u"&&console&&console.warn||(()=>{}),$B="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",or={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:false};function U0(){return En.groups={},or.scanner=null,or.parser=null,or.tokenQueue=[],or.pluginQueue=[],or.customSchemes=[],or.initialized=false,or}function SE(o,t=false){if(or.initialized&&_B(`linkifyjs: already initialized - will not register custom scheme "${o}" ${$B}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(o))throw new Error(`linkifyjs: incorrect scheme format.
281
- 1. Must only contain digits, lowercase ASCII letters or "-"
282
- 2. Cannot start or end with "-"
283
- 3. "-" cannot repeat`);or.customSchemes.push([o,t]);}function KB(){or.scanner=VB(or.customSchemes);for(let o=0;o<or.tokenQueue.length;o++)or.tokenQueue[o][1]({scanner:or.scanner});or.parser=WB(or.scanner.tokens);for(let o=0;o<or.pluginQueue.length;o++)or.pluginQueue[o][1]({scanner:or.scanner,parser:or.parser});return or.initialized=true,or}function CP(o){return or.initialized||KB(),zB(or.parser.start,o,H0(or.scanner.start,o))}CP.scan=H0;function kP(o,t=null,e=null){if(t&&typeof t=="object"){if(e)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);e=t,t=null;}let r=new gE(e),n=CP(o),i=[];for(let s=0;s<n.length;s++){let l=n[s];l.isLink&&(!t||l.t===t)&&r.check(l)&&i.push(l.toFormattedObject(r));}return i}var PE="[\0- \xA0\u1680\u180E\u2000-\u2029\u205F\u3000]",jB=new RegExp(PE),qB=new RegExp(`${PE}$`),YB=new RegExp(PE,"g");function QB(o){return o.length===1?o[0].isLink:o.length===3&&o[1].isLink?["()","[]"].includes(o[0].value+o[2].value):false}function JB(o){return new Rt({key:new oe("autolink"),appendTransaction:(t,e,r)=>{let n=t.some(u=>u.docChanged)&&!e.doc.eq(r.doc),i=t.some(u=>u.getMeta("preventAutolink"));if(!n||i)return;let{tr:s}=r,l=cw(e.doc,[...t]);if(Sy(l).forEach(({newRange:u})=>{let c=IC(r.doc,u,d=>d.isTextblock),h,f;if(c.length>1)h=c[0],f=r.doc.textBetween(h.pos,h.pos+h.node.nodeSize,void 0," ");else if(c.length){let d=r.doc.textBetween(u.from,u.to," "," ");if(!qB.test(d))return;h=c[0],f=r.doc.textBetween(h.pos,u.to,void 0," ");}if(h&&f){let d=f.split(jB).filter(Boolean);if(d.length<=0)return false;let g=d[d.length-1],P=h.pos+f.lastIndexOf(g);if(!g)return false;let A=CP(g).map(v=>v.toObject(o.defaultProtocol));if(!QB(A))return false;A.filter(v=>v.isLink).map(v=>({...v,from:P+v.start+1,to:P+v.end+1})).filter(v=>r.schema.marks.code?!r.doc.rangeHasMark(v.from,v.to,r.schema.marks.code):true).filter(v=>o.validate(v.value)).filter(v=>o.shouldAutoLink(v.value)).forEach(v=>{qg(v.from,v.to,r.doc).some(H=>H.mark.type===o.type)||s.addMark(v.from,v.to,o.type.create({href:v.href}));});}}),!!s.steps.length)return s}})}function XB(o){return new Rt({key:new oe("handleClickLink"),props:{handleClick:(t,e,r)=>{var n,i;if(r.button!==0||!t.editable)return false;let s=null;if(r.target instanceof HTMLAnchorElement)s=r.target;else {let a=r.target;if(!a)return false;let u=o.editor.view.dom;s=a.closest("a"),s&&!u.contains(s)&&(s=null);}if(!s)return false;let l=false;if(o.enableClickSelection&&(l=o.editor.commands.extendMarkRange(o.type.name)),o.openOnClick){let a=BC(t.state,o.type.name),u=(n=s.href)!=null?n:a.href,c=(i=s.target)!=null?i:a.target;u&&(window.open(u,c),l=true);}return l}}})}function ZB(o){return new Rt({key:new oe("handlePasteLink"),props:{handlePaste:(t,e,r)=>{let{shouldAutoLink:n}=o,{state:i}=t,{selection:s}=i,{empty:l}=s;if(l)return false;let a="";r.content.forEach(c=>{a+=c.textContent;});let u=kP(a,{defaultProtocol:o.defaultProtocol}).find(c=>c.isLink&&c.value===a);return !a||!u||n!==void 0&&!n(u.value)?false:o.editor.commands.setMark(o.type,{href:u.href})}}})}function Jc(o,t){let e=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return t&&t.forEach(r=>{let n=typeof r=="string"?r:r.scheme;n&&e.push(n);}),!o||o.replace(YB,"").match(new RegExp(`^(?:(?:${e.map(r=>r.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")).join("|")}):|[^a-z]|[a-z0-9+.\\-]+(?:[^a-z+.\\-:]|$))`,"i"))}var AE=so.create({name:"link",priority:1e3,keepOnSplit:false,exitable:true,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(o=>{if(typeof o=="string"){SE(o);return}SE(o.scheme,o.optionalSlashes);});},onDestroy(){U0();},inclusive(){return this.options.autolink},addOptions(){return {openOnClick:true,enableClickSelection:false,linkOnPaste:true,autolink:true,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(o,t)=>!!Jc(o,t.protocols),validate:o=>!!o,shouldAutoLink:o=>{let t=/^[a-z][a-z0-9+.-]*:\/\//i.test(o),e=/^[a-z][a-z0-9+.-]*:/i.test(o);if(t||e&&!o.includes("@"))return true;let n=(o.includes("@")?o.split("@").pop():o).split(/[/?#:]/)[0];return !(/^\d{1,3}(\.\d{1,3}){3}$/.test(n)||!/\./.test(n))}}},addAttributes(){var o,t,e;return {href:{default:null,parseHTML(r){return r.getAttribute("href")}},target:{default:(o=this.options.HTMLAttributes.target)!=null?o:null},rel:{default:(t=this.options.HTMLAttributes.rel)!=null?t:null},class:{default:(e=this.options.HTMLAttributes.class)!=null?e:null},title:{default:null}}},parseHTML(){return [{tag:"a[href]",getAttrs:o=>{let t=o.getAttribute("href");return !t||!this.options.isAllowedUri(t,{defaultValidate:e=>!!Jc(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?false:null}}]},renderHTML({HTMLAttributes:o}){return this.options.isAllowedUri(o.href,{defaultValidate:t=>!!Jc(t,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",Qt(this.options.HTMLAttributes,o),0]:["a",Qt(this.options.HTMLAttributes,{...o,href:""}),0]},markdownTokenName:"link",parseMarkdown:(o,t)=>t.applyMark("link",t.parseInline(o.tokens||[]),{href:o.href,title:o.title||null}),renderMarkdown:(o,t)=>{var e,r,n,i;let s=(r=(e=o.attrs)==null?void 0:e.href)!=null?r:"",l=(i=(n=o.attrs)==null?void 0:n.title)!=null?i:"",a=t.renderChildren(o);return l?`[${a}](${s} "${l}")`:`[${a}](${s})`},addCommands(){return {setLink:o=>({chain:t})=>{let{href:e}=o;return this.options.isAllowedUri(e,{defaultValidate:r=>!!Jc(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?t().setMark(this.name,o).setMeta("preventAutolink",true).run():false},toggleLink:o=>({chain:t})=>{let{href:e}=o||{};return e&&!this.options.isAllowedUri(e,{defaultValidate:r=>!!Jc(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?false:t().toggleMark(this.name,o,{extendEmptyMarkRange:true}).setMeta("preventAutolink",true).run()},unsetLink:()=>({chain:o})=>o().unsetMark(this.name,{extendEmptyMarkRange:true}).setMeta("preventAutolink",true).run()}},addPasteRules(){return [hn({find:o=>{let t=[];if(o){let{protocols:e,defaultProtocol:r}=this.options,n=kP(o).filter(i=>i.isLink&&this.options.isAllowedUri(i.value,{defaultValidate:s=>!!Jc(s,e),protocols:e,defaultProtocol:r}));n.length&&n.forEach(i=>{this.options.shouldAutoLink(i.value)&&t.push({text:i.value,data:{href:i.href},index:i.start});});}return t},type:this.type,getAttributes:o=>{var t;return {href:(t=o.data)==null?void 0:t.href}}})]},addProseMirrorPlugins(){let o=[],{protocols:t,defaultProtocol:e}=this.options;return this.options.autolink&&o.push(JB({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:r=>this.options.isAllowedUri(r,{defaultValidate:n=>!!Jc(n,t),protocols:t,defaultProtocol:e}),shouldAutoLink:this.options.shouldAutoLink})),o.push(XB({type:this.type,editor:this.editor,openOnClick:this.options.openOnClick==="whenNotEditable"?true:this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&o.push(ZB({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),o}}),W0=AE;chunkBUNLC3II_cjs.h();var tV=Object.defineProperty,eV=(o,t)=>{for(var e in t)tV(o,e,{get:t[e],enumerable:true});},rV="listItem",z0="textStyle",_0=/^\s*([-+*])\s$/,vE=Ge.create({name:"bulletList",addOptions(){return {itemTypeName:"listItem",HTMLAttributes:{},keepMarks:false,keepAttributes:false}},group:"block list",content(){return `${this.options.itemTypeName}+`},parseHTML(){return [{tag:"ul"}]},renderHTML({HTMLAttributes:o}){return ["ul",Qt(this.options.HTMLAttributes,o),0]},markdownTokenName:"list",parseMarkdown:(o,t)=>o.type!=="list"||o.ordered?[]:{type:"bulletList",content:o.items?t.parseChildren(o.items):[]},renderMarkdown:(o,t)=>o.content?t.renderChildren(o.content,`
284
- `):"",markdownOptions:{indentsContent:true},addCommands(){return {toggleBulletList:()=>({commands:o,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(rV,this.editor.getAttributes(z0)).run():o.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return {"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let o=Qi({find:_0,type:this.type});return (this.options.keepMarks||this.options.keepAttributes)&&(o=Qi({find:_0,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(z0),editor:this.editor})),[o]}}),oV=(o,t,e)=>{let{selection:r}=o;if(!r.empty)return null;let{$from:n}=r;if(!n.parent.isTextblock||n.parentOffset!==n.parent.content.size)return null;let i=-1;for(let d=n.depth;d>0;d-=1)if(n.node(d).type.name===t){i=d;break}if(i<0)return null;let s=n.node(i),l=n.index(i);if(l+1>=s.childCount)return null;let a=s.child(l+1);if(!e.includes(a.type.name))return null;let u=o.schema.nodes[t],c=false;if(a.forEach(d=>{d.type===u&&d.childCount>1&&(c=true);}),!c)return null;let h=o.doc.resolve(n.after()).nodeAfter;if(!h||!e.includes(h.type.name))return null;let f=[];return h.forEach(d=>{f.push(d);}),f.length===0?null:{listItemDepth:i,nestedList:h,nestedListPos:n.after(),insertPos:n.after(i),items:f}},nV=(o,t,e,r)=>{let n=oV(o,e,r);if(!n)return false;let{selection:i}=o,{nestedList:s,nestedListPos:l,insertPos:a,items:u}=n,c=o.tr;c.delete(l,l+s.nodeSize);let h=c.mapping.map(a);return c.insert(h,Z.from(u)),c.setSelection(i.map(c.doc,c.mapping)),t&&t(c),true},iV=(o,t,e)=>nV(o.state,o.view.dispatch,t,e),q0=(o,t)=>Ft.create({name:`${o}BranchingDeleteKeymap`,priority:101,addKeyboardShortcuts(){let e=()=>iV(this.editor,o,t);return {Delete:e,"Mod-Delete":e}}}),Y0=[[1e3,"m"],[900,"cm"],[500,"d"],[400,"cd"],[100,"c"],[90,"xc"],[50,"l"],[40,"xl"],[10,"x"],[9,"ix"],[5,"v"],[4,"iv"],[1,"i"]],NP="abcdefghijklmnopqrstuvwxyz",sV="[a-zA-Z]{1,2}",Q0=String.raw`\d+|[ivxlcdmIVXLCDM]+|${sV}`;function MP(o){let t=o,e="";for(let[r,n]of Y0)for(;t>=r;)e+=n,t-=r;return e}function TE(o){return MP(o).toUpperCase()}function J0(o){let t=o.toLowerCase(),e=0,r=0;for(;e<t.length;){let n=false;for(let[i,s]of Y0)if(t.startsWith(s,e)){r+=i,e+=s.length,n=true;break}if(!n)return 0}return r}function lV(o){if(!/^[ivxlcdmIVXLCDM]+$/.test(o))return false;let t=J0(o);return t<=0?false:(o===o.toLowerCase()?MP(t):TE(t))===o}function aV(o){let t=o.toLowerCase();if(t.length===1)return t.charCodeAt(0)-97+1;if(t.length===2){let e=t.charCodeAt(0)-97,r=t.charCodeAt(1)-97;return (e+1)*26+r+1}return 0}function LP(o){if(o<=26)return NP[o-1];let t=Math.floor((o-1)/26)-1,e=(o-1)%26;return t<0?NP[e]:NP[t]+NP[e]}function IP(o){if(!(!o||/^\d+$/.test(o))){if(lV(o))return o===o.toLowerCase()?"i":"I";if(/^[a-z]{1,2}$/.test(o))return "a";if(/^[A-Z]{1,2}$/.test(o))return "A"}}function CE(o){if(/^\d+$/.test(o))return parseInt(o,10);let t=IP(o);if(t==="i"||t==="I")return J0(o);if(t==="a"||t==="A"){let r=aV(o);return r>0?r:1}let e=parseInt(o,10);return Number.isNaN(e)?1:e}function uV(o,t){if(o==="numeric")return String(t);switch(o){case "a":return LP(t);case "A":return LP(t).toUpperCase();case "i":return MP(t);case "I":return TE(t);default:return String(t)}}function cV(o){var t;if(o.length===0)return false;let e=(t=IP(o[0]))!=null?t:"numeric",r=CE(o[0]);if(r<1)return false;for(let n=0;n<o.length;n++){let i=uV(e,r+n);if(o[n]!==i)return false}return true}function pV(o){return {type:IP(o),start:CE(o)}}function mV(o){let{type:t,start:e}=pV(o),r={};return t&&(r.type=t),e!==1&&(r.start=e),r}function hV(o,t,e=". "){let r=t+1;if(!o||o==="1")return `${r}${e}`;switch(o){case "a":return `${LP(r)}${e}`;case "A":return `${LP(r).toUpperCase()}${e}`;case "i":return `${MP(r)}${e}`;case "I":return `${TE(r)}${e}`;default:return `${r}${e}`}}function yV(o){var t,e;let r=(t=o.tokens)==null?void 0:t[0];return !!(o.text&&((e=o.tokens)==null?void 0:e.length)===1&&r?.type==="list"&&r.ordered&&r.raw===o.text)}function dV(o,t){return t.tokenizeInline?t.parseInline(t.tokenizeInline(o)):t.parseInline([{type:"text",raw:o,text:o}])}var kE=Ge.create({name:"listItem",addOptions(){return {HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:true,parseHTML(){return [{tag:"li"}]},renderHTML({HTMLAttributes:o}){return ["li",Qt(this.options.HTMLAttributes,o),0]},markdownTokenName:"list_item",parseMarkdown:(o,t)=>{var e;if(o.type!=="list_item")return [];let r=(e=t.parseBlockChildren)!=null?e:t.parseChildren,n=[];if(o.tokens&&o.tokens.length>0){if(yV(o))return {type:"listItem",content:[{type:"paragraph",content:dV(o.text||"",t)}]};if(o.tokens.some(s=>s.type==="paragraph"))n=r(o.tokens);else {let s=o.tokens[0];if(s&&s.type==="text"&&s.tokens&&s.tokens.length>0){if(n=[{type:"paragraph",content:t.parseInline(s.tokens)}],o.tokens.length>1){let a=o.tokens.slice(1),u=r(a);n.push(...u);}}else n=r(o.tokens);}}return n.length===0&&(n=[{type:"paragraph",content:[]}]),{type:"listItem",content:n}},renderMarkdown:(o,t,e)=>Ay(o,t,r=>{var n,i,s,l;if(r.parentType==="bulletList")return "- ";if(r.parentType==="orderedList"){let a=((i=(n=r.meta)==null?void 0:n.parentAttrs)==null?void 0:i.start)||1,u=(l=(s=r.meta)==null?void 0:s.parentAttrs)==null?void 0:l.type,c=a-1+(r.index||0);return hV(u,c,". ")}return "- "},e),addExtensions(){return [q0(this.name,[this.options.bulletListTypeName,this.options.orderedListTypeName])]},addKeyboardShortcuts(){return {Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),fV={};eV(fV,{findListItemPos:()=>RP,getNextListDepth:()=>NE,handleBackspace:()=>wE,handleDelete:()=>xE,hasListBefore:()=>X0,hasListItemAfter:()=>bV,hasListItemBefore:()=>gV,listItemHasSubList:()=>SV,nextListIsDeeper:()=>Z0,nextListIsHigher:()=>tN});var RP=(o,t)=>{let{$from:e}=t.selection,r=hr(o,t.schema),n=null,i=e.depth,s=e.pos,l=null;for(;i>0&&l===null;)n=e.node(i),n.type===r?l=i:(i-=1,s-=1);return l===null?null:{$pos:t.doc.resolve(s),depth:l}},NE=(o,t)=>{let e=RP(o,t);if(!e)return false;let[,r]=VC(t,o,e.$pos.pos+4);return r},X0=(o,t,e)=>{let{$anchor:r}=o.selection,n=Math.max(0,r.pos-2),i=o.doc.resolve(n).node();return !(!i||!e.includes(i.type.name))},wE=(o,t,e)=>{if(o.commands.undoInputRule())return true;if(o.state.selection.from!==o.state.selection.to)return false;if(!ba(o.state,t)&&X0(o.state,t,e)){let{$anchor:r}=o.state.selection,n=o.state.doc.resolve(r.before()-1),i=[];n.node().descendants((a,u)=>{a.type.name===t&&i.push({node:a,pos:u});});let s=i.at(-1);if(!s)return false;let l=o.state.doc.resolve(n.start()+s.pos+1);return o.chain().cut({from:r.start()-1,to:r.end()+1},l.end()).joinForward().run()}return !ba(o.state,t)||!GC(o.state)?false:o.chain().liftListItem(t).run()},Z0=(o,t)=>{let e=NE(o,t),r=RP(o,t);return !r||!e?false:e>r.depth},tN=(o,t)=>{let e=NE(o,t),r=RP(o,t);return !r||!e?false:e<r.depth},xE=(o,t)=>{if(!ba(o.state,t)||!HC(o.state,t))return false;let{selection:e}=o.state,{$from:r,$to:n}=e;return !e.empty&&r.sameParent(n)?false:Z0(t,o.state)?o.chain().focus(o.state.selection.from+4).lift(t).joinBackward().run():tN(t,o.state)?o.chain().joinForward().joinBackward().run():o.commands.joinItemForward()},bV=(o,t)=>{var e;let{$anchor:r}=t.selection,n=t.doc.resolve(r.pos-r.parentOffset-2);return !(n.index()===n.parent.childCount-1||((e=n.nodeAfter)==null?void 0:e.type.name)!==o)},gV=(o,t)=>{var e;let{$anchor:r}=t.selection,n=t.doc.resolve(r.pos-2);return !(n.index()===0||((e=n.nodeBefore)==null?void 0:e.type.name)!==o)},SV=(o,t,e)=>{if(!e)return false;let r=hr(o,t.schema),n=false;return e.descendants(i=>{i.type===r&&(n=true);}),n},LE=Ft.create({name:"listKeymap",addOptions(){return {listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}},addKeyboardShortcuts(){return {Delete:({editor:o})=>{let t=false;return this.options.listTypes.forEach(({itemName:e})=>{o.state.schema.nodes[e]!==void 0&&xE(o,e)&&(t=true);}),t},"Mod-Delete":({editor:o})=>{let t=false;return this.options.listTypes.forEach(({itemName:e})=>{o.state.schema.nodes[e]!==void 0&&xE(o,e)&&(t=true);}),t},Backspace:({editor:o})=>{let t=false;return this.options.listTypes.forEach(({itemName:e,wrapperNames:r})=>{o.state.schema.nodes[e]!==void 0&&wE(o,e,r)&&(t=true);}),t},"Mod-Backspace":({editor:o})=>{let t=false;return this.options.listTypes.forEach(({itemName:e,wrapperNames:r})=>{o.state.schema.nodes[e]!==void 0&&wE(o,e,r)&&(t=true);}),t}}}}),EE=new RegExp(`^(\\s*)(${Q0})([.)])\\s+(.*)$`),PV=/^\s/,og={heading:/^#{1,6}(?:\s|$)/,bulletItem:/^[-+*]\s+/,codeFence:/^(?:```|~~~)/,thematicBreak:/^(?:(?:-[ \t]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})$/};function AV(o){return EE.test(o.trimStart())}function wV(o){let t=o.trimStart();return og.bulletItem.test(t)||AV(t)||og.heading.test(t)||og.thematicBreak.test(t)&&!t.startsWith("-")||/^>\s?/.test(t)||og.codeFence.test(t)}function xV(o){return Object.values(og).some(t=>t.test(o))}function EV(o){let t=[],e=[],r=false;return o.forEach(n=>{if(r){e.push(n);return}if(n.trim()===""){r=true,e.push(n);return}if(t.length>0&&wV(n)){r=true,e.push(n);return}t.push(n);}),{paragraphLines:t,blockLines:e}}function vV(o){let t=[],e=0,r=0;for(;e<o.length;){let n=o[e],i=n.match(EE);if(!i)break;let[,s,l,a,u]=i,c=s.length,h=parseInt(l,10),f=isNaN(h)?IP(l):void 0,d=isNaN(h)?CE(l):h,g=[u],P=e+1,A=[n],v=false;for(;P<o.length;){let H=o[P];if(H.match(EE))break;if(H.trim()==="")A.push(H),g.push(""),v=true,P+=1;else if(H.match(PV)){let U=H.length-H.trimStart().length,j=c+l.length+1;A.push(H),g.push(H.slice(Math.min(U,j))),P+=1;}else {if(v||xV(H))break;A.push(H),g.push(H),P+=1;}}t.push({indent:c,number:d,type:f,content:g.join(`
285
- `).trim(),contentLines:g,raw:A.join(`
286
- `)}),r=P,e=P;}return [t,r]}var TV=new RegExp(`^(${Q0})([.)])\\s+(.+)$`);function CV(o){let t=o.split(`
287
- `).filter(i=>i.trim().length>0);if(t.length===0)return null;let e=[];for(let i of t){let s=i.trim().match(TV);if(!s)return null;e.push({marker:s[1],content:s[3]});}let r=e.map(i=>i.marker);return cV(r)?{type:"orderedList",attrs:mV(e[0].marker),content:e.map(i=>({type:"listItem",content:[{type:"paragraph",content:[{type:"text",text:i.content}]}]}))}:null}function eN(o,t,e){let r=[],n=0;for(;n<o.length;){let i=o[n];if(i.indent===t){let{paragraphLines:s,blockLines:l}=EV(i.contentLines),a=s.join(`
288
- `).trim(),u=[];a&&u.push({type:"paragraph",raw:a,tokens:e.inlineTokens(a)});let c=l.join(`
289
- `).trim();if(c){let d=e.blockTokens(c);u.push(...d);}let h=n+1,f=[];for(;h<o.length&&o[h].indent>t;)f.push(o[h]),h+=1;if(f.length>0){let d=Math.min(...f.map(P=>P.indent)),g=eN(f,d,e);u.push({type:"list",ordered:true,start:f[0].number,typeMarker:f[0].type,items:g,raw:f.map(P=>P.raw).join(`
290
- `)});}r.push({type:"list_item",raw:i.raw,tokens:u}),n=h;}else n+=1;}return r}function kV(o,t){return o.map(e=>{if(e.type!=="list_item")return t.parseChildren([e])[0];let r=[];return e.tokens&&e.tokens.length>0&&e.tokens.forEach(n=>{if(n.type==="paragraph"||n.type==="list"||n.type==="blockquote"||n.type==="code")r.push(...t.parseChildren([n]));else if(n.type==="text"&&n.tokens){let i=t.parseChildren([n]);r.push({type:"paragraph",content:i});}else {let i=t.parseChildren([n]);i.length>0&&r.push(...i);}}),{type:"listItem",content:r}})}var NV="listItem",$0="textStyle",K0=/^(\d+)\.\s$/;function j0(o){let t=o.match(/list-style-type\s*:\s*([^;]+)/i);if(!t)return null;switch(t[1].trim().toLowerCase()){case "upper-roman":return "I";case "lower-roman":return "i";case "upper-alpha":case "upper-latin":return "A";case "lower-alpha":case "lower-latin":return "a";default:return null}}var ME=Ge.create({name:"orderedList",addOptions(){return {itemTypeName:"listItem",HTMLAttributes:{},keepMarks:false,keepAttributes:false}},group:"block list",content(){return `${this.options.itemTypeName}+`},addAttributes(){return {start:{default:1,parseHTML:o=>o.hasAttribute("start")?parseInt(o.getAttribute("start")||"",10):1},type:{default:null,parseHTML:o=>{let t=o.getAttribute("type");if(t)return t;let e=o.getAttribute("style");if(e){let n=j0(e);if(n)return n}let r=o.querySelector("li");if(r){let n=r.getAttribute("style");if(n){let i=j0(n);if(i)return i}}return null}}}},parseHTML(){return [{tag:"ol"}]},renderHTML({HTMLAttributes:o}){let{start:t,type:e,...r}=o,n=Qt(this.options.HTMLAttributes,r);return t!==1&&(n.start=t),e&&e!=="1"&&(n.type=e),["ol",n,0]},markdownTokenName:"list",parseMarkdown:(o,t)=>{if(o.type!=="list"||!o.ordered)return [];let e=o.start||1,r=o.typeMarker,n=o.items?kV(o.items,t):[],i={};return e!==1&&(i.start=e),r&&(i.type=r),Object.keys(i).length>0?{type:"orderedList",attrs:i,content:n}:{type:"orderedList",content:n}},renderMarkdown:(o,t)=>o.content?t.renderChildren(o.content,`
291
- `):"",markdownTokenizer:{name:"orderedList",level:"block",start:()=>-1,tokenize:(o,t,e)=>{var r,n;let i=o.split(`
292
- `),[s,l]=vV(i);if(s.length===0)return;let a=eN(s,s[0].indent,e);if(a.length===0)return;let u=((r=s[0])==null?void 0:r.number)||1,c=(n=s[0])==null?void 0:n.type;return {type:"list",ordered:true,start:u,typeMarker:c,items:a,raw:i.slice(0,l).join(`
293
- `)}}},markdownOptions:{indentsContent:true},addCommands(){return {toggleOrderedList:()=>({commands:o,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(NV,this.editor.getAttributes($0)).run():o.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return {"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addProseMirrorPlugins(){return [new Rt({props:{handlePaste:(o,t)=>{var e,r;let n=(e=t.clipboardData)==null?void 0:e.getData("text/html");if(n?.trim())return false;let i=(r=t.clipboardData)==null?void 0:r.getData("text/plain");if(!i)return false;let s=CV(i);if(!s)return false;try{let l=o.state.schema.nodeFromJSON(s),a=o.state.tr.replaceSelectionWith(l);return o.dispatch(a),!0}catch{return false}}}})]},addInputRules(){let o=(e,r)=>(!r.attrs.type||r.attrs.type==="1")&&r.childCount+r.attrs.start===+e[1],t=Qi({find:K0,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:o});return (this.options.keepMarks||this.options.keepAttributes)&&(t=Qi({find:K0,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes($0)}),joinPredicate:o,editor:this.editor})),[t]}}),LV=/^\s*(\[([( |x])?\])\s$/,DP=Ge.create({name:"taskItem",addOptions(){return {nested:false,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:true,addAttributes(){return {checked:{default:false,keepOnSplit:false,parseHTML:o=>{let t=o.getAttribute("data-checked");return t===""||t==="true"},renderHTML:o=>({"data-checked":o.checked})}}},parseHTML(){return [{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:o,HTMLAttributes:t}){return ["li",Qt(this.options.HTMLAttributes,t,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:o.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(o,t)=>{let e=[];if(o.tokens&&o.tokens.length>0?e.push(t.createNode("paragraph",{},t.parseInline(o.tokens))):o.text?e.push(t.createNode("paragraph",{},[t.createNode("text",{text:o.text})])):e.push(t.createNode("paragraph",{},[])),o.nestedTokens&&o.nestedTokens.length>0){let r=t.parseChildren(o.nestedTokens);e.push(...r);}return t.createNode("taskItem",{checked:o.checked||false},e)},renderMarkdown:(o,t)=>{var e;let n=`- [${(e=o.attrs)!=null&&e.checked?"x":" "}] `;return Ay(o,t,n)},addExtensions(){return this.options.nested?[q0(this.name,[this.options.taskListTypeName])]:[]},addKeyboardShortcuts(){let o={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...o,Tab:()=>this.editor.commands.sinkListItem(this.name)}:o},addNodeView(){return ({node:o,HTMLAttributes:t,getPos:e,editor:r})=>{let n=document.createElement("li"),i=document.createElement("label"),s=document.createElement("span"),l=document.createElement("input"),a=document.createElement("div"),u=h=>{var f,d;l.ariaLabel=((d=(f=this.options.a11y)==null?void 0:f.checkboxLabel)==null?void 0:d.call(f,h,l.checked))||`Task item checkbox for ${h.textContent||"empty task item"}`;};u(o),i.contentEditable="false",l.type="checkbox",l.addEventListener("mousedown",h=>h.preventDefault()),l.addEventListener("change",h=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){l.checked=!l.checked;return}let{checked:f}=h.target;r.isEditable&&typeof e=="function"&&r.chain().focus(void 0,{scrollIntoView:false}).command(({tr:d})=>{let g=e();if(typeof g!="number")return false;let P=d.doc.nodeAt(g);return d.setNodeMarkup(g,void 0,{...P?.attrs,checked:f}),true}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(o,f)||(l.checked=!l.checked));}),Object.entries(this.options.HTMLAttributes).forEach(([h,f])=>{n.setAttribute(h,f);}),n.dataset.checked=o.attrs.checked,l.checked=o.attrs.checked,i.append(l,s),n.append(i,a),Object.entries(t).forEach(([h,f])=>{n.setAttribute(h,f);});let c=new Set(Object.keys(t));return {dom:n,contentDOM:a,update:h=>{if(h.type!==this.type)return false;n.dataset.checked=h.attrs.checked,l.checked=h.attrs.checked,u(h);let f=r.extensionManager.attributes,d=yp(h,f),g=new Set(Object.keys(d)),P=this.options.HTMLAttributes;return c.forEach(A=>{g.has(A)||(A in P?n.setAttribute(A,P[A]):n.removeAttribute(A));}),Object.entries(d).forEach(([A,v])=>{v==null?A in P?n.setAttribute(A,P[A]):n.removeAttribute(A):n.setAttribute(A,v);}),c=g,true}}}},addInputRules(){return [Qi({find:LV,type:this.type,getAttributes:o=>({checked:o[o.length-1]==="x"})})]}}),OP=Ge.create({name:"taskList",addOptions(){return {itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return `${this.options.itemTypeName}+`},parseHTML(){return [{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:o}){return ["ul",Qt(this.options.HTMLAttributes,o,{"data-type":this.name}),0]},parseMarkdown:(o,t)=>t.createNode("taskList",{},t.parseChildren(o.items||[])),renderMarkdown:(o,t)=>o.content?t.renderChildren(o.content,`
294
- `):"",markdownTokenizer:{name:"taskList",level:"block",start(o){var t;let e=(t=o.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))==null?void 0:t.index;return e!==void 0?e:-1},tokenize(o,t,e){let r=i=>{let s=Qg(i,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:l=>({indentLevel:l[1].length,mainContent:l[4],checked:l[3].toLowerCase()==="x"}),createToken:(l,a)=>({type:"taskItem",raw:"",mainContent:l.mainContent,indentLevel:l.indentLevel,checked:l.checked,text:l.mainContent,tokens:e.inlineTokens(l.mainContent),nestedTokens:a}),customNestedParser:r},e);if(s){let l={type:"taskList",raw:s.raw,items:s.items},a=i.slice(s.raw.length);return a.trim()?[l,...e.blockTokens(a)]:[l]}return e.blockTokens(i)},n=Qg(o,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:i=>({indentLevel:i[1].length,mainContent:i[4],checked:i[3].toLowerCase()==="x"}),createToken:(i,s)=>({type:"taskItem",raw:"",mainContent:i.mainContent,indentLevel:i.indentLevel,checked:i.checked,text:i.mainContent,tokens:e.inlineTokens(i.mainContent),nestedTokens:s}),customNestedParser:r},e);if(n)return {type:"taskList",raw:n.raw,items:n.items}}},markdownOptions:{indentsContent:true},addCommands(){return {toggleTaskList:()=>({commands:o})=>o.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return {"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});Ft.create({name:"listKit",addExtensions(){let o=[];return this.options.bulletList!==false&&o.push(vE.configure(this.options.bulletList)),this.options.listItem!==false&&o.push(kE.configure(this.options.listItem)),this.options.listKeymap!==false&&o.push(LE.configure(this.options.listKeymap)),this.options.orderedList!==false&&o.push(ME.configure(this.options.orderedList)),this.options.taskItem!==false&&o.push(DP.configure(this.options.taskItem)),this.options.taskList!==false&&o.push(OP.configure(this.options.taskList)),o}});chunkBUNLC3II_cjs.h();var FP="&nbsp;",IE="\xA0",rN=Ge.create({name:"paragraph",priority:1e3,addOptions(){return {HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return [{tag:"p"}]},renderHTML({HTMLAttributes:o}){return ["p",Qt(this.options.HTMLAttributes,o),0]},parseMarkdown:(o,t)=>{let e=o.tokens||[];if(e.length===1&&e[0].type==="image")return t.parseChildren([e[0]]);let r=t.parseInline(e);return e.length===1&&e[0].type==="text"&&(e[0].raw===FP||e[0].text===FP||e[0].raw===IE||e[0].text===IE)&&r.length===1&&r[0].type==="text"&&(r[0].text===FP||r[0].text===IE)?t.createNode("paragraph",void 0,[]):t.createNode("paragraph",void 0,r)},renderMarkdown:(o,t,e)=>{var r,n;if(!o)return "";let i=Array.isArray(o.content)?o.content:[];if(i.length===0){let s=Array.isArray((r=e?.previousNode)==null?void 0:r.content)?e.previousNode.content:[];return ((n=e?.previousNode)==null?void 0:n.type)==="paragraph"&&s.length===0?FP:""}return t.renderChildren(i)},addCommands(){return {setParagraph:()=>({commands:o})=>o.setNode(this.name)}},addKeyboardShortcuts(){return {"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}});chunkBUNLC3II_cjs.h();var MV=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,IV=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,oN=so.create({name:"strike",addOptions(){return {HTMLAttributes:{}}},parseHTML(){return [{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:false,getAttrs:o=>o.includes("line-through")?{}:false}]},renderHTML({HTMLAttributes:o}){return ["s",Qt(this.options.HTMLAttributes,o),0]},markdownTokenName:"del",parseMarkdown:(o,t)=>t.applyMark("strike",t.parseInline(o.tokens||[])),renderMarkdown:(o,t)=>`~~${t.renderChildren(o)}~~`,addCommands(){return {setStrike:()=>({commands:o})=>o.setMark(this.name),toggleStrike:()=>({commands:o})=>o.toggleMark(this.name),unsetStrike:()=>({commands:o})=>o.unsetMark(this.name)}},addKeyboardShortcuts(){return {"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return [Qn({find:MV,type:this.type})]},addPasteRules(){return [hn({find:IV,type:this.type})]}});chunkBUNLC3II_cjs.h();var nN=Ge.create({name:"text",group:"inline",parseMarkdown:o=>({type:"text",text:o.text||""}),renderMarkdown:o=>o.text||""});chunkBUNLC3II_cjs.h();var RE=so.create({name:"underline",addOptions(){return {HTMLAttributes:{}}},parseHTML(){return [{tag:"u"},{style:"text-decoration",consuming:false,getAttrs:o=>o.includes("underline")?{}:false}]},renderHTML({HTMLAttributes:o}){return ["u",Qt(this.options.HTMLAttributes,o),0]},parseMarkdown(o,t){return t.applyMark(this.name||"underline",t.parseInline(o.tokens||[]))},renderMarkdown(o,t){return `++${t.renderChildren(o)}++`},markdownTokenizer:{name:"underline",level:"inline",start(o){return o.indexOf("++")},tokenize(o,t,e){let n=/^(\+\+)([\s\S]+?)(\+\+)/.exec(o);if(!n)return;let i=n[2].trim();return {type:"underline",raw:n[0],text:i,tokens:e.inlineTokens(i)}}},addCommands(){return {setUnderline:()=>({commands:o})=>o.setMark(this.name),toggleUnderline:()=>({commands:o})=>o.toggleMark(this.name),unsetUnderline:()=>({commands:o})=>o.unsetMark(this.name)}},addKeyboardShortcuts(){return {"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),iN=RE;chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();function sN(o={}){return new Rt({view(t){return new DE(t,o)}})}var DE=class{constructor(t,e){var r;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.lastDragEvent=null,this.width=(r=e.width)!==null&&r!==void 0?r:1,this.color=e.color===false?void 0:e.color||"black",this.class=e.class,this.handlers=["dragover","dragend","drop","dragleave"].map(n=>{let i=s=>{this[n](s);};return t.dom.addEventListener(n,i),{name:n,handler:i}});}destroy(){this.handlers.forEach(({name:t,handler:e})=>this.editorView.dom.removeEventListener(t,e));}update(t,e){if(this.cursorPos!=null&&e.doc!=t.state.doc)if(this.lastDragEvent){let r=this.computeTarget(this.lastDragEvent);r==this.cursorPos?this.updateOverlay():this.setCursor(r);}else this.updateOverlay();}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,t==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay());}updateOverlay(){let t=this.editorView.state.doc.resolve(this.cursorPos),e=!t.parent.inlineContent,r,n=this.editorView.dom,i=n.getBoundingClientRect(),s=i.width/n.offsetWidth,l=i.height/n.offsetHeight;if(e){let h=t.nodeBefore,f=t.nodeAfter;if(h||f){let d=this.editorView.nodeDOM(this.cursorPos-(h?h.nodeSize:0));if(d){let g=d.getBoundingClientRect(),P=h?g.bottom:g.top;h&&f&&(P=(P+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let A=this.width/2*l;r={left:g.left,right:g.right,top:P-A,bottom:P+A};}}}if(!r){let h=this.editorView.coordsAtPos(this.cursorPos),f=this.width/2*s;r={left:h.left-f,right:h.left+f,top:h.top,bottom:h.bottom};}let a=this.editorView.dom.offsetParent;this.element||(this.element=a.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",e),this.element.classList.toggle("prosemirror-dropcursor-inline",!e);let u,c;if(!a||a==document.body&&getComputedStyle(a).position=="static")u=-pageXOffset,c=-pageYOffset;else {let h=a.getBoundingClientRect(),f=h.width/a.offsetWidth,d=h.height/a.offsetHeight;u=h.left-a.scrollLeft*f,c=h.top-a.scrollTop*d;}this.element.style.left=(r.left-u)/s+"px",this.element.style.top=(r.top-c)/l+"px",this.element.style.width=(r.right-r.left)/s+"px",this.element.style.height=(r.bottom-r.top)/l+"px";}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t);}computeTarget(t){let e=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),r=e&&e.inside>=0&&this.editorView.state.doc.nodeAt(e.inside),n=r&&r.type.spec.disableDropCursor,i=typeof n=="function"?n(this.editorView,e,t):n;if(!e||i)return null;let s=e.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let l=Ag(this.editorView.state.doc,s,this.editorView.dragging.slice);l!=null&&(s=l);}return s}dragover(t){if(!this.editorView.editable)return;this.lastDragEvent=t;let e=this.computeTarget(t);e!=null&&(this.setCursor(e),this.scheduleRemoval(5e3));}dragend(){this.scheduleRemoval(20);}drop(){this.scheduleRemoval(20);}dragleave(t){this.editorView.dom.contains(t.relatedTarget)||this.setCursor(null);}};chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var Ro=class o extends Bt{constructor(t){super(t,t);}map(t,e){let r=t.resolve(e.map(this.head));return o.valid(r)?new o(r):Bt.near(r)}content(){return ht.empty}eq(t){return t instanceof o&&t.head==this.head}toJSON(){return {type:"gapcursor",pos:this.head}}static fromJSON(t,e){if(typeof e.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new o(t.resolve(e.pos))}getBookmark(){return new OE(this.anchor)}static valid(t){let e=t.parent;if(e.inlineContent||!RV(t)||!DV(t))return false;let r=e.type.spec.allowGapCursor;if(r!=null)return r;let n=e.contentMatchAt(t.index()).defaultType;return n&&n.isTextblock}static findGapCursorFrom(t,e,r=false){t:for(;;){if(!r&&o.valid(t))return t;let n=t.pos,i=null;for(let s=t.depth;;s--){let l=t.node(s);if(e>0?t.indexAfter(s)<l.childCount:t.index(s)>0){i=l.child(e>0?t.indexAfter(s):t.index(s)-1);break}else if(s==0)return null;n+=e;let a=t.doc.resolve(n);if(o.valid(a))return a}for(;;){let s=e>0?i.firstChild:i.lastChild;if(!s){if(i.isAtom&&!i.isText&&!At.isSelectable(i)){t=t.doc.resolve(n+i.nodeSize*e),r=false;continue t}break}i=s,n+=e;let l=t.doc.resolve(n);if(o.valid(l))return l}return null}}};Ro.prototype.visible=false;Ro.findFrom=Ro.findGapCursorFrom;Bt.jsonID("gapcursor",Ro);var OE=class o{constructor(t){this.pos=t;}map(t){return new o(t.map(this.pos))}resolve(t){let e=t.resolve(this.pos);return Ro.valid(e)?new Ro(e):Bt.near(e)}};function lN(o){return o.isAtom||o.spec.isolating||o.spec.createGapCursor}function RV(o){for(let t=o.depth;t>=0;t--){let e=o.index(t),r=o.node(t);if(e==0){if(r.type.spec.isolating)return true;continue}for(let n=r.child(e-1);;n=n.lastChild){if(n.childCount==0&&!n.inlineContent||lN(n.type))return true;if(n.inlineContent)return false}}return true}function DV(o){for(let t=o.depth;t>=0;t--){let e=o.indexAfter(t),r=o.node(t);if(e==r.childCount){if(r.type.spec.isolating)return true;continue}for(let n=r.child(e);;n=n.firstChild){if(n.childCount==0&&!n.inlineContent||lN(n.type))return true;if(n.inlineContent)return false}}return true}function aN(){return new Rt({props:{decorations:VV,createSelectionBetween(o,t,e){return t.pos==e.pos&&Ro.valid(e)?new Ro(e):null},handleClick:FV,handleKeyDown:OV,handleDOMEvents:{beforeinput:BV}}})}var OV=ew({ArrowLeft:BP("horiz",-1),ArrowRight:BP("horiz",1),ArrowUp:BP("vert",-1),ArrowDown:BP("vert",1)});function BP(o,t){let e=o=="vert"?t>0?"down":"up":t>0?"right":"left";return function(r,n,i){let s=r.selection,l=t>0?s.$to:s.$from,a=s.empty;if(s instanceof Pt){if(!i.endOfTextblock(e)||l.depth==0)return false;a=false,l=r.doc.resolve(t>0?l.after():l.before());}let u=Ro.findGapCursorFrom(l,t,a);return u?(n&&n(r.tr.setSelection(new Ro(u))),true):false}}function FV(o,t,e){if(!o||!o.editable)return false;let r=o.state.doc.resolve(t);if(!Ro.valid(r))return false;let n=o.posAtCoords({left:e.clientX,top:e.clientY});return n&&n.inside>-1&&At.isSelectable(o.state.doc.nodeAt(n.inside))?false:(o.dispatch(o.state.tr.setSelection(new Ro(r))),true)}function BV(o,t){if(t.inputType!="insertCompositionText"||!(o.state.selection instanceof Ro))return false;let{$from:e}=o.state.selection,r=e.parent.contentMatchAt(e.index()).findWrapping(o.state.schema.nodes.text);if(!r)return false;let n=Z.empty;for(let s=r.length-1;s>=0;s--)n=Z.from(r[s].createAndFill(null,n));let i=o.state.tr.replace(e.pos,e.pos,new ht(n,0,0));return i.setSelection(Pt.near(i.doc.resolve(e.pos+1))),o.dispatch(i),false}function VV(o){if(!(o.selection instanceof Ro))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",je.create(o.doc,[vo.widget(o.selection.head,t,{key:"gapcursor"})])}chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var VP=200,Ao=function(){};Ao.prototype.append=function(t){return t.length?(t=Ao.from(t),!this.length&&t||t.length<VP&&this.leafAppend(t)||this.length<VP&&t.leafPrepend(this)||this.appendInner(t)):this};Ao.prototype.prepend=function(t){return t.length?Ao.from(t).append(this):this};Ao.prototype.appendInner=function(t){return new HV(this,t)};Ao.prototype.slice=function(t,e){return t===void 0&&(t=0),e===void 0&&(e=this.length),t>=e?Ao.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,e))};Ao.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)};Ao.prototype.forEach=function(t,e,r){e===void 0&&(e=0),r===void 0&&(r=this.length),e<=r?this.forEachInner(t,e,r,0):this.forEachInvertedInner(t,e,r,0);};Ao.prototype.map=function(t,e,r){e===void 0&&(e=0),r===void 0&&(r=this.length);var n=[];return this.forEach(function(i,s){return n.push(t(i,s))},e,r),n};Ao.from=function(t){return t instanceof Ao?t:t&&t.length?new uN(t):Ao.empty};var uN=(function(o){function t(r){o.call(this),this.values=r;}o&&(t.__proto__=o),t.prototype=Object.create(o&&o.prototype),t.prototype.constructor=t;var e={length:{configurable:true},depth:{configurable:true}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(n,i){return n==0&&i==this.length?this:new t(this.values.slice(n,i))},t.prototype.getInner=function(n){return this.values[n]},t.prototype.forEachInner=function(n,i,s,l){for(var a=i;a<s;a++)if(n(this.values[a],l+a)===false)return false},t.prototype.forEachInvertedInner=function(n,i,s,l){for(var a=i-1;a>=s;a--)if(n(this.values[a],l+a)===false)return false},t.prototype.leafAppend=function(n){if(this.length+n.length<=VP)return new t(this.values.concat(n.flatten()))},t.prototype.leafPrepend=function(n){if(this.length+n.length<=VP)return new t(n.flatten().concat(this.values))},e.length.get=function(){return this.values.length},e.depth.get=function(){return 0},Object.defineProperties(t.prototype,e),t})(Ao);Ao.empty=new uN([]);var HV=(function(o){function t(e,r){o.call(this),this.left=e,this.right=r,this.length=e.length+r.length,this.depth=Math.max(e.depth,r.depth)+1;}return o&&(t.__proto__=o),t.prototype=Object.create(o&&o.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},t.prototype.forEachInner=function(r,n,i,s){var l=this.left.length;if(n<l&&this.left.forEachInner(r,n,Math.min(i,l),s)===false||i>l&&this.right.forEachInner(r,Math.max(n-l,0),Math.min(this.length,i)-l,s+l)===false)return false},t.prototype.forEachInvertedInner=function(r,n,i,s){var l=this.left.length;if(n>l&&this.right.forEachInvertedInner(r,n-l,Math.max(i,l)-l,s+l)===false||i<l&&this.left.forEachInvertedInner(r,Math.min(n,l),i,s)===false)return false},t.prototype.sliceInner=function(r,n){if(r==0&&n==this.length)return this;var i=this.left.length;return n<=i?this.left.slice(r,n):r>=i?this.right.slice(r-i,n-i):this.left.slice(r,i).append(this.right.slice(0,n-i))},t.prototype.leafAppend=function(r){var n=this.right.leafAppend(r);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(r){var n=this.left.leafPrepend(r);if(n)return new t(n,this.right)},t.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new t(this.left,new t(this.right,r)):new t(this,r)},t})(Ao),FE=Ao;var GV=500,Zc=class o{constructor(t,e){this.items=t,this.eventCount=e;}popEvent(t,e){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let n,i;e&&(n=this.remapping(r,this.items.length),i=n.maps.length);let s=t.tr,l,a,u=[],c=[];return this.items.forEach((h,f)=>{if(!h.step){n||(n=this.remapping(r,f+1),i=n.maps.length),i--,c.push(h);return}if(n){c.push(new Qs(h.map));let d=h.step.map(n.slice(i)),g;d&&s.maybeStep(d).doc&&(g=s.mapping.maps[s.mapping.maps.length-1],u.push(new Qs(g,void 0,void 0,u.length+c.length))),i--,g&&n.appendMap(g,i);}else s.maybeStep(h.step);if(h.selection)return l=n?h.selection.map(n.slice(i)):h.selection,a=new o(this.items.slice(0,r).append(c.reverse().concat(u)),this.eventCount-1),false},this.items.length,0),{remaining:a,transform:s,selection:l}}addTransform(t,e,r,n){let i=[],s=this.eventCount,l=this.items,a=!n&&l.length?l.get(l.length-1):null;for(let c=0;c<t.steps.length;c++){let h=t.steps[c].invert(t.docs[c]),f=new Qs(t.mapping.maps[c],h,e),d;(d=a&&a.merge(f))&&(f=d,c?i.pop():l=l.slice(0,l.length-1)),i.push(f),e&&(s++,e=void 0),n||(a=f);}let u=s-r.depth;return u>WV&&(l=UV(l,u),s-=u),new o(l.append(i),s)}remapping(t,e){let r=new ey;return this.items.forEach((n,i)=>{let s=n.mirrorOffset!=null&&i-n.mirrorOffset>=t?r.maps.length-n.mirrorOffset:void 0;r.appendMap(n.map,s);},t,e),r}addMaps(t){return this.eventCount==0?this:new o(this.items.append(t.map(e=>new Qs(e))),this.eventCount)}rebased(t,e){if(!this.eventCount)return this;let r=[],n=Math.max(0,this.items.length-e),i=t.mapping,s=t.steps.length,l=this.eventCount;this.items.forEach(f=>{f.selection&&l--;},n);let a=e;this.items.forEach(f=>{let d=i.getMirror(--a);if(d==null)return;s=Math.min(s,d);let g=i.maps[d];if(f.step){let P=t.steps[d].invert(t.docs[d]),A=f.selection&&f.selection.map(i.slice(a+1,d));A&&l++,r.push(new Qs(g,P,A));}else r.push(new Qs(g));},n);let u=[];for(let f=e;f<s;f++)u.push(new Qs(i.maps[f]));let c=this.items.slice(0,n).append(u).append(r),h=new o(c,l);return h.emptyItemCount()>GV&&(h=h.compress(this.items.length-r.length)),h}emptyItemCount(){let t=0;return this.items.forEach(e=>{e.step||t++;}),t}compress(t=this.items.length){let e=this.remapping(0,t),r=e.maps.length,n=[],i=0;return this.items.forEach((s,l)=>{if(l>=t)n.push(s),s.selection&&i++;else if(s.step){let a=s.step.map(e.slice(r)),u=a&&a.getMap();if(r--,u&&e.appendMap(u,r),a){let c=s.selection&&s.selection.map(e.slice(r));c&&i++;let h=new Qs(u.invert(),a,c),f,d=n.length-1;(f=n.length&&n[d].merge(h))?n[d]=f:n.push(h);}}else s.map&&r--;},this.items.length,0),new o(FE.from(n.reverse()),i)}};Zc.empty=new Zc(FE.empty,0);function UV(o,t){let e;return o.forEach((r,n)=>{if(r.selection&&t--==0)return e=n,false}),o.slice(e)}var Qs=class o{constructor(t,e,r,n){this.map=t,this.step=e,this.selection=r,this.mirrorOffset=n;}merge(t){if(this.step&&t.step&&!t.selection){let e=t.step.merge(this.step);if(e)return new o(e.getMap().invert(),e,this.selection)}}},Js=class{constructor(t,e,r,n,i){this.done=t,this.undone=e,this.prevRanges=r,this.prevTime=n,this.prevComposition=i;}},WV=20;function zV(o,t,e,r){let n=e.getMeta(Xc),i;if(n)return n.historyState;e.getMeta(KV)&&(o=new Js(o.done,o.undone,null,0,-1));let s=e.getMeta("appendedTransaction");if(e.steps.length==0)return o;if(s&&s.getMeta(Xc))return s.getMeta(Xc).redo?new Js(o.done.addTransform(e,void 0,r,HP(t)),o.undone,cN(e.mapping.maps),o.prevTime,o.prevComposition):new Js(o.done,o.undone.addTransform(e,void 0,r,HP(t)),null,o.prevTime,o.prevComposition);if(e.getMeta("addToHistory")!==false&&!(s&&s.getMeta("addToHistory")===false)){let l=e.getMeta("composition"),a=o.prevTime==0||!s&&o.prevComposition!=l&&(o.prevTime<(e.time||0)-r.newGroupDelay||!_V(e,o.prevRanges)),u=s?BE(o.prevRanges,e.mapping):cN(e.mapping.maps);return new Js(o.done.addTransform(e,a?t.selection.getBookmark():void 0,r,HP(t)),Zc.empty,u,e.time,l??o.prevComposition)}else return (i=e.getMeta("rebased"))?new Js(o.done.rebased(e,i),o.undone.rebased(e,i),BE(o.prevRanges,e.mapping),o.prevTime,o.prevComposition):new Js(o.done.addMaps(e.mapping.maps),o.undone.addMaps(e.mapping.maps),BE(o.prevRanges,e.mapping),o.prevTime,o.prevComposition)}function _V(o,t){if(!t)return false;if(!o.docChanged)return true;let e=false;return o.mapping.maps[0].forEach((r,n)=>{for(let i=0;i<t.length;i+=2)r<=t[i+1]&&n>=t[i]&&(e=true);}),e}function cN(o){let t=[];for(let e=o.length-1;e>=0&&t.length==0;e--)o[e].forEach((r,n,i,s)=>t.push(i,s));return t}function BE(o,t){if(!o)return null;let e=[];for(let r=0;r<o.length;r+=2){let n=t.map(o[r],1),i=t.map(o[r+1],-1);n<=i&&e.push(n,i);}return e}function $V(o,t,e){let r=HP(t),n=Xc.get(t).spec.config,i=(e?o.undone:o.done).popEvent(t,r);if(!i)return null;let s=i.selection.resolve(i.transform.doc),l=(e?o.done:o.undone).addTransform(i.transform,t.selection.getBookmark(),n,r),a=new Js(e?l:i.remaining,e?i.remaining:l,null,0,-1);return i.transform.setSelection(s).setMeta(Xc,{redo:e,historyState:a})}var VE=false,pN=null;function HP(o){let t=o.plugins;if(pN!=t){VE=false,pN=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){VE=true;break}}return VE}var Xc=new oe("history"),KV=new oe("closeHistory");function mN(o={}){return o={depth:o.depth||100,newGroupDelay:o.newGroupDelay||500},new Rt({key:Xc,state:{init(){return new Js(Zc.empty,Zc.empty,null,0,-1)},apply(t,e,r){return zV(e,r,t,o)}},config:o,props:{handleDOMEvents:{beforeinput(t,e){let r=e.inputType,n=r=="historyUndo"?HE:r=="historyRedo"?GE:null;return !n||!t.editable?false:(e.preventDefault(),n(t.state,t.dispatch))}}}})}function GP(o,t){return (e,r)=>{let n=Xc.getState(e);if(!n||(o?n.undone:n.done).eventCount==0)return false;if(r){let i=$V(n,e,o);i&&r(t?i.scrollIntoView():i);}return true}}var HE=GP(false,true),GE=GP(true,true);Ft.create({name:"characterCount",addOptions(){return {limit:null,autoTrim:true,mode:"textSize",textCounter:o=>o.length,wordCounter:o=>o.split(" ").filter(t=>t!=="").length}},addStorage(){return {characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=o=>{let t=o?.node||this.editor.state.doc;if((o?.mode||this.options.mode)==="textSize"){let r=t.textBetween(0,t.content.size,void 0," ");return this.options.textCounter(r)}return t.nodeSize},this.storage.words=o=>{let t=o?.node||this.editor.state.doc,e=t.textBetween(0,t.content.size," "," ");return this.options.wordCounter(e)};},addProseMirrorPlugins(){let o=false;return [new Rt({key:new oe("characterCount"),appendTransaction:(t,e,r)=>{if(o)return;let n=this.options.limit,i=this.options.autoTrim;if(n==null||n===0||i===false){o=true;return}let s=this.storage.characters({node:r.doc});if(s>n){let l=s-n,a=0,u=l;console.warn(`[CharacterCount] Initial content exceeded limit of ${n} characters. Content was automatically trimmed.`);let c=r.tr.deleteRange(a,u);return o=true,c}o=true;},filterTransaction:(t,e)=>{let r=this.options.limit;if(!t.docChanged||r===0||r===null||r===void 0)return true;let n=this.storage.characters({node:e.doc}),i=this.storage.characters({node:t.doc});if(i<=r||n>r&&i>r&&i<=n)return true;if(n>r&&i>r&&i>n||!t.getMeta("paste"))return false;let l=t.selection.$head.pos,a=i-r,u=l-a,c=l;return t.deleteRange(u,c),!(this.storage.characters({node:t.doc})>r)}})]}});var dN=Ft.create({name:"dropCursor",addOptions(){return {color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return [sN(this.options)]}});Ft.create({name:"focus",addOptions(){return {className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return [new Rt({key:new oe("focus"),props:{decorations:({doc:o,selection:t})=>{let{isEditable:e,isFocused:r}=this.editor,{anchor:n}=t,i=[];if(!e||!r)return je.create(o,[]);let s=0;this.options.mode==="deepest"&&o.descendants((a,u)=>{if(a.isText)return;if(!(n>=u&&n<=u+a.nodeSize-1))return false;s+=1;});let l=0;return o.descendants((a,u)=>{if(a.isText||!(n>=u&&n<=u+a.nodeSize-1))return false;if(l+=1,this.options.mode==="deepest"&&s-l>0||this.options.mode==="shallowest"&&l>1)return this.options.mode==="deepest";i.push(vo.node(u,u+a.nodeSize,{class:this.options.className}));}),je.create(o,i)}}})]}});var fN=Ft.create({name:"gapCursor",addProseMirrorPlugins(){return [aN()]},extendNodeSchema(o){var t;let e={name:o.name,options:o.options,storage:o.storage};return {allowGapCursor:(t=Ne(Et(o,"allowGapCursor",e)))!=null?t:null}}}),bN="placeholder",hN=new oe("tiptap__placeholder");function gN(o){let{editor:t,placeholder:e,dataAttribute:r,pos:n,node:i,isEmptyDoc:s,hasAnchor:l,classes:{emptyNode:a,emptyEditor:u}}=o,c=[a];return s&&c.push(u),vo.node(n,n+i.nodeSize,{class:c.join(" "),[r]:typeof e=="function"?e({editor:t,node:i,pos:n,hasAnchor:l}):e})}function SN(o,t){return typeof o=="function"?o(t):o}function PN({editor:o,options:t,dataAttribute:e,doc:r,selection:n,from:i,to:s}){let{anchor:l}=n,a=[],u=o.isEmpty;return r.nodesBetween(i,s,(c,h)=>{let f=l>=h&&l<=h+c.nodeSize,d=!c.isLeaf&&Py(c);return c.type.isTextblock&&(f||!t.showOnlyCurrent)&&d&&a.push(gN({editor:o,isEmptyDoc:u,dataAttribute:e,hasAnchor:f,placeholder:t.placeholder,classes:{emptyEditor:t.emptyEditorClass,emptyNode:SN(t.emptyNodeClass,{editor:o,node:c,pos:h,hasAnchor:f})},node:c,pos:h})),t.includeChildren}),a}function AN({editor:o,options:t,dataAttribute:e,doc:r,selection:n}){if(!(o.isEditable||!t.showOnlyWhenEditable))return null;let{anchor:s}=n,l=[],a=o.isEmpty;if(t.showOnlyCurrent&&!t.includeChildren){let c=r.resolve(s),h=c.depth>0?c.node(1):c.nodeAfter,f=c.depth>0?c.before(1):s;if(h&&h.type.isTextblock&&Py(h)){let d=s>=f&&s<=f+h.nodeSize;l.push(gN({editor:o,isEmptyDoc:a,dataAttribute:e,hasAnchor:d,placeholder:t.placeholder,classes:{emptyEditor:t.emptyEditorClass,emptyNode:SN(t.emptyNodeClass,{editor:o,node:h,pos:f,hasAnchor:d})},node:h,pos:f}));}}else l.push(...PN({editor:o,options:t,dataAttribute:e,doc:r,selection:n,from:0,to:r.content.size}));return je.create(r,l)}function ng(o,t){var e;let r=o.resolve(t);if(r.depth===0){let s=(e=r.nodeAfter)!=null?e:r.nodeBefore;if(!s)return {from:t,to:t};let l=r.nodeAfter?t:t-s.nodeSize;return {from:l,to:l+s.nodeSize}}let n=r.before(1),i=r.node(1);return {from:n,to:n+i.nodeSize}}function ig(o,t){return {from:Math.max(0,t.from-1),to:Math.min(o.content.size,t.to-1)}}function jV(o,t,e){let r=[];return o.forEach((n,i)=>{let s=i,l=s+n.nodeSize,a=s+1,u=l+1;a<e&&u>t&&r.push({from:s,to:l});}),r}function qV(o){if(o.length===0)return [];let t=[...o].sort((r,n)=>r.from-n.from),e=[{...t[0]}];for(let r=1;r<t.length;r+=1){let n=e[e.length-1],i=t[r];i.from<=n.to?n.to=Math.max(n.to,i.to):e.push({...i});}return e}function YV(o,t){let e=jV(o,t.from,t.to);return e.push(ig(o,ng(o,t.from))),t.to>t.from?e.push(ig(o,ng(o,Math.min(t.to,o.content.size+1)-1))):t.from<o.content.size+1&&e.push(ig(o,ng(o,Math.min(t.from+1,o.content.size)))),e}function QV(o,t,e){let r=[];if(o.docChanged){let n=Sy(o);for(let i of n)r.push(...YV(e.doc,i.newRange));}return o.selectionSet&&(r.push(ig(e.doc,ng(e.doc,o.mapping.map(t.selection.anchor)))),r.push(ig(e.doc,ng(e.doc,e.selection.anchor)))),qV(r)}function JV(o,t,e){let r=Math.max(0,Math.min(o,e.content.size)),n=Math.max(r,Math.min(t,e.content.size));return {from:r,to:n}}function XV({decorations:o,ranges:t,editor:e,options:r,dataAttribute:n,doc:i,selection:s}){let l=o;for(let a of t){let{from:u,to:c}=JV(a.from,a.to,i),h=l.find(u,c).filter(d=>d.from>=u&&d.to<=c);h.length&&(l=l.remove(h));let f=PN({editor:e,options:r,dataAttribute:n,doc:i,selection:s,from:u,to:c});f.length&&(l=l.add(i,f));}return l}function ZV({editor:o,options:t,dataAttribute:e}){return {init(r,n){let i=AN({editor:o,options:t,dataAttribute:e,doc:n.doc,selection:n.selection});return i??je.empty},apply(r,n,i,s){if(!r.docChanged&&!r.selectionSet)return n;let l=n.map(r.mapping,r.doc),a=QV(r,i,s);return XV({decorations:l,ranges:a,editor:o,options:t,dataAttribute:e,doc:s.doc,selection:s.selection})}}}function t2(o){return o.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}function e2({editor:o,options:t}){let e=t.dataAttribute?`data-${t2(t.dataAttribute)}`:`data-${bN}`,r=t.showOnlyCurrent&&!t.includeChildren;return new Rt({key:hN,...r?{}:{state:ZV({editor:o,options:t,dataAttribute:e})},props:{decorations:r?({doc:n,selection:i})=>AN({editor:o,options:t,dataAttribute:e,doc:n,selection:i}):n=>{var i;return t.showOnlyWhenEditable&&!o.isEditable?je.empty:(i=hN.getState(n))!=null?i:je.empty}}})}Ft.create({name:"placeholder",addOptions(){return {emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:bN,placeholder:"Write something \u2026",showOnlyWhenEditable:true,showOnlyCurrent:true,includeChildren:false}},addProseMirrorPlugins(){return [e2({editor:this.editor,options:this.options})]}});function UE(o,t){return !o.selection.empty&&!Yg(o.selection)&&t.isEditable}function r2(o,t){return UE(o,t)&&!t.isFocused&&!t.view.dragging}function o2(){var o;(o=window.getSelection())==null||o.removeAllRanges();}function n2(o){o.focus();}Ft.create({name:"selection",addOptions(){return {className:"selection"}},addProseMirrorPlugins(){let{editor:o,options:t}=this;return [new Rt({key:new oe("selection"),props:{decorations(e){return r2(e,o)?je.create(e.doc,[vo.inline(e.selection.from,e.selection.to,{class:t.className})]):null},handleDOMEvents:{blur(e){return UE(e.state,o)&&o2(),false},focus(e){return UE(e.state,o)&&requestAnimationFrame(()=>{!o.isDestroyed&&e.hasFocus()&&n2(e);}),false}}}})]}});var i2="skipTrailingNode";function yN({types:o,node:t}){return t&&Array.isArray(o)&&o.includes(t.type)||t?.type===o}var wN=Ft.create({name:"trailingNode",addOptions(){return {node:void 0,notAfter:[]}},addProseMirrorPlugins(){var o;let t=new oe(this.name),e=this.options.node||((o=this.editor.schema.topNodeType.contentMatch.defaultType)==null?void 0:o.name)||"paragraph",r=Object.entries(this.editor.schema.nodes).map(([,n])=>n).filter(n=>(this.options.notAfter||[]).concat(e).includes(n.name));return [new Rt({key:t,appendTransaction:(n,i,s)=>{let{doc:l,tr:a,schema:u}=s,c=t.getState(s),h=l.content.size,f=u.nodes[e];if(!n.some(d=>d.getMeta(i2))&&c)return a.insert(h,f.create())},state:{init:(n,i)=>{let s=i.tr.doc.lastChild;return !yN({node:s,types:r})},apply:(n,i)=>{if(!n.docChanged||n.getMeta("__uniqueIDTransaction"))return i;let s=n.doc.lastChild;return !yN({node:s,types:r})}}})]}}),xN=Ft.create({name:"undoRedo",addOptions(){return {depth:100,newGroupDelay:500}},addCommands(){return {undo:()=>({state:o,dispatch:t})=>HE(o,t),redo:()=>({state:o,dispatch:t})=>GE(o,t)}},addProseMirrorPlugins(){return [mN(this.options)]},addKeyboardShortcuts(){return {"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-\u044F":()=>this.editor.commands.undo(),"Shift-Mod-\u044F":()=>this.editor.commands.redo()}}});var s2=Ft.create({name:"starterKit",addExtensions(){var o,t,e,r;let n=[];return this.options.bold!==false&&n.push(P0.configure(this.options.bold)),this.options.blockquote!==false&&n.push(S0.configure(this.options.blockquote)),this.options.bulletList!==false&&n.push(vE.configure(this.options.bulletList)),this.options.code!==false&&n.push(A0.configure(this.options.code)),this.options.codeBlock!==false&&n.push(w0.configure(this.options.codeBlock)),this.options.document!==false&&n.push(x0.configure(this.options.document)),this.options.dropcursor!==false&&n.push(dN.configure(this.options.dropcursor)),this.options.gapcursor!==false&&n.push(fN.configure(this.options.gapcursor)),this.options.hardBreak!==false&&n.push(E0.configure(this.options.hardBreak)),this.options.heading!==false&&n.push(v0.configure(this.options.heading)),this.options.undoRedo!==false&&n.push(xN.configure(this.options.undoRedo)),this.options.horizontalRule!==false&&n.push(T0.configure(this.options.horizontalRule)),this.options.italic!==false&&n.push(C0.configure(this.options.italic)),this.options.listItem!==false&&n.push(kE.configure(this.options.listItem)),this.options.listKeymap!==false&&n.push(LE.configure((o=this.options)==null?void 0:o.listKeymap)),this.options.link!==false&&n.push(AE.configure((t=this.options)==null?void 0:t.link)),this.options.orderedList!==false&&n.push(ME.configure(this.options.orderedList)),this.options.paragraph!==false&&n.push(rN.configure(this.options.paragraph)),this.options.strike!==false&&n.push(oN.configure(this.options.strike)),this.options.text!==false&&n.push(nN.configure(this.options.text)),this.options.underline!==false&&n.push(RE.configure((e=this.options)==null?void 0:e.underline)),this.options.trailingNode!==false&&n.push(wN.configure((r=this.options)==null?void 0:r.trailingNode)),n}}),EN=s2;chunkBUNLC3II_cjs.h();var l2=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,a2=Ge.create({name:"image",addOptions(){return {inline:false,allowBase64:false,HTMLAttributes:{},resize:false}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:true,addAttributes(){return {src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}}},parseHTML(){return [{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:o}){return ["img",Qt(this.options.HTMLAttributes,o)]},parseMarkdown:(o,t)=>t.createNode("image",{src:o.href,title:o.title,alt:o.text}),renderMarkdown:o=>{var t,e,r,n,i,s;let l=(e=(t=o.attrs)==null?void 0:t.src)!=null?e:"",a=(n=(r=o.attrs)==null?void 0:r.alt)!=null?n:"",u=(s=(i=o.attrs)==null?void 0:i.title)!=null?s:"";return u?`![${a}](${l} "${u}")`:`![${a}](${l})`},addNodeView(){if(!this.options.resize||!this.options.resize.enabled||typeof document>"u")return null;let{directions:o,minWidth:t,minHeight:e,alwaysPreserveAspectRatio:r}=this.options.resize;return ({node:n,getPos:i,HTMLAttributes:s,editor:l})=>{let a=document.createElement("img");a.draggable=false;let u=Qt(this.options.HTMLAttributes,s);Object.entries(u).forEach(([f,d])=>{if(d!=null)switch(f){case "width":case "height":break;default:a.setAttribute(f,d);break}}),u.src!==null&&(a.src=u.src);let c=new jC({element:a,editor:l,node:n,getPos:i,onResize:(f,d)=>{a.style.width=`${f}px`,a.style.height=`${d}px`;},onCommit:(f,d)=>{let g=i();g!==void 0&&this.editor.chain().setNodeSelection(g).updateAttributes(this.name,{width:f,height:d}).run();},onUpdate:(f,d,g)=>f.type===n.type,options:{directions:o,min:{width:t,height:e},preserveAspectRatio:r===true}}),h=c.dom;return h.style.visibility="hidden",h.style.pointerEvents="none",a.onload=()=>{h.style.visibility="",h.style.pointerEvents="";},c}},addCommands(){return {setImage:o=>({commands:t})=>t.insertContent({type:this.name,attrs:o})}},addInputRules(){return [Xg({find:l2,type:this.type,getAttributes:o=>{let[,,t,e,r]=o;return {src:e,alt:t,title:r}}})]}}),vN=a2;chunkBUNLC3II_cjs.h();var u2=Ft.create({name:"textAlign",addOptions(){return {types:[],alignments:["left","center","right","justify"],defaultAlignment:null}},addGlobalAttributes(){return [{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:o=>{let t=o.style.textAlign;return this.options.alignments.includes(t)?t:this.options.defaultAlignment},renderHTML:o=>o.textAlign?{style:`text-align: ${o.textAlign}`}:{}}}}]},addCommands(){return {setTextAlign:o=>({commands:t})=>this.options.alignments.includes(o)?this.options.types.map(e=>t.updateAttributes(e,{textAlign:o})).some(e=>e):false,unsetTextAlign:()=>({commands:o})=>this.options.types.map(t=>o.resetAttributes(t,"textAlign")).some(t=>t),toggleTextAlign:o=>({editor:t,commands:e})=>this.options.alignments.includes(o)?t.isActive({textAlign:o})?e.unsetTextAlign():e.setTextAlign(o):false}},addKeyboardShortcuts(){return {"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),TN=u2;chunkBUNLC3II_cjs.h();var c2=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,p2=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,m2=so.create({name:"highlight",addOptions(){return {multicolor:false,HTMLAttributes:{}}},addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:o=>o.getAttribute("data-color")||Yn(o,"background-color")||o.style.backgroundColor,renderHTML:o=>o.color?{"data-color":o.color,style:`background-color: ${o.color}; color: inherit`}:{}}}:{}},parseHTML(){return [{tag:"mark"}]},renderHTML({HTMLAttributes:o}){return ["mark",Qt(this.options.HTMLAttributes,o),0]},renderMarkdown:(o,t)=>`==${t.renderChildren(o)}==`,parseMarkdown:(o,t)=>t.applyMark("highlight",t.parseInline(o.tokens||[])),markdownTokenizer:{name:"highlight",level:"inline",start:o=>o.indexOf("=="),tokenize(o,t,e){let n=/^(==)([^=]+)(==)/.exec(o);if(n){let i=n[2].trim(),s=e.inlineTokens(i);return {type:"highlight",raw:n[0],text:i,tokens:s}}}},addCommands(){return {setHighlight:o=>({commands:t})=>t.setMark(this.name,o),toggleHighlight:o=>({commands:t})=>t.toggleMark(this.name,o),unsetHighlight:()=>({commands:o})=>o.unsetMark(this.name)}},addKeyboardShortcuts(){return {"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return [Qn({find:c2,type:this.type})]},addPasteRules(){return [hn({find:p2,type:this.type})]}}),CN=m2;chunkBUNLC3II_cjs.h();var kN=OP;chunkBUNLC3II_cjs.h();var NN=DP;chunkBUNLC3II_cjs.h();var h2=20,LN=(o,t=0)=>{let e=[];return !o.children.length||t>h2||Array.from(o.children).forEach(r=>{r.tagName==="SPAN"?e.push(r):r.children.length&&e.push(...LN(r,t+1));}),e},y2=o=>{if(!o.children.length)return;let t=LN(o);t&&t.forEach(e=>{var r,n;let i=e.getAttribute("style"),s=(n=(r=e.parentElement)==null?void 0:r.closest("span"))==null?void 0:n.getAttribute("style");e.setAttribute("style",`${s};${i}`);});},WE=so.create({name:"textStyle",priority:101,addOptions(){return {HTMLAttributes:{},mergeNestedSpanStyles:true}},parseHTML(){return [{tag:"span",consuming:false,getAttrs:o=>o.hasAttribute("style")?(this.options.mergeNestedSpanStyles&&y2(o),{}):false}]},renderHTML({HTMLAttributes:o}){return ["span",Qt(this.options.HTMLAttributes,o),0]},addCommands(){return {toggleTextStyle:o=>({commands:t})=>t.toggleMark(this.name,o),removeEmptyTextStyle:()=>({tr:o})=>{let{selection:t}=o;return o.doc.nodesBetween(t.from,t.to,(e,r)=>{if(e.isTextblock)return true;e.marks.filter(n=>n.type===this.type).some(n=>Object.values(n.attrs).some(i=>!!i))||o.removeMark(r,r+e.nodeSize,this.type);}),true}}}}),d2=Ft.create({name:"backgroundColor",addOptions(){return {types:["textStyle"]}},addGlobalAttributes(){return [{types:this.options.types,attributes:{backgroundColor:{default:null,parseHTML:o=>{var t;let e=(t=Yn(o,"background-color"))!=null?t:o.style.backgroundColor;return e?.replace(/['"]+/g,"")},renderHTML:o=>o.backgroundColor?{style:`background-color: ${o.backgroundColor}`}:{}}}}]},addCommands(){return {setBackgroundColor:o=>({chain:t})=>t().setMark("textStyle",{backgroundColor:o}).run(),unsetBackgroundColor:()=>({chain:o})=>o().setMark("textStyle",{backgroundColor:null}).removeEmptyTextStyle().run()}}}),zE=Ft.create({name:"color",addOptions(){return {types:["textStyle"]}},addGlobalAttributes(){return [{types:this.options.types,attributes:{color:{default:null,parseHTML:o=>{var t;let e=(t=Yn(o,"color"))!=null?t:o.style.color;return e?.replace(/['"]+/g,"")},renderHTML:o=>o.color?{style:`color: ${o.color}`}:{}}}}]},addCommands(){return {setColor:o=>({chain:t})=>t().setMark("textStyle",{color:o}).run(),unsetColor:()=>({chain:o})=>o().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()}}}),f2=Ft.create({name:"fontFamily",addOptions(){return {types:["textStyle"]}},addGlobalAttributes(){return [{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:o=>{var t;return (t=Yn(o,"font-family"))!=null?t:o.style.fontFamily},renderHTML:o=>o.fontFamily?{style:`font-family: ${o.fontFamily}`}:{}}}}]},addCommands(){return {setFontFamily:o=>({chain:t})=>t().setMark("textStyle",{fontFamily:o}).run(),unsetFontFamily:()=>({chain:o})=>o().setMark("textStyle",{fontFamily:null}).removeEmptyTextStyle().run()}}}),b2=Ft.create({name:"fontSize",addOptions(){return {types:["textStyle"]}},addGlobalAttributes(){return [{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:o=>{var t;return (t=Yn(o,"font-size"))!=null?t:o.style.fontSize},renderHTML:o=>o.fontSize?{style:`font-size: ${o.fontSize}`}:{}}}}]},addCommands(){return {setFontSize:o=>({chain:t})=>t().setMark("textStyle",{fontSize:o}).run(),unsetFontSize:()=>({chain:o})=>o().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()}}}),g2=Ft.create({name:"lineHeight",addOptions(){return {types:["textStyle"]}},addGlobalAttributes(){return [{types:this.options.types,attributes:{lineHeight:{default:null,parseHTML:o=>{var t;return (t=Yn(o,"line-height"))!=null?t:o.style.lineHeight},renderHTML:o=>o.lineHeight?{style:`line-height: ${o.lineHeight}`}:{}}}}]},addCommands(){return {setLineHeight:o=>({chain:t})=>t().setMark("textStyle",{lineHeight:o}).run(),unsetLineHeight:()=>({chain:o})=>o().setMark("textStyle",{lineHeight:null}).removeEmptyTextStyle().run()}}});Ft.create({name:"textStyleKit",addExtensions(){let o=[];return this.options.backgroundColor!==false&&o.push(d2.configure(this.options.backgroundColor)),this.options.color!==false&&o.push(zE.configure(this.options.color)),this.options.fontFamily!==false&&o.push(f2.configure(this.options.fontFamily)),this.options.fontSize!==false&&o.push(b2.configure(this.options.fontSize)),this.options.lineHeight!==false&&o.push(g2.configure(this.options.lineHeight)),this.options.textStyle!==false&&o.push(WE.configure(this.options.textStyle)),o}});chunkBUNLC3II_cjs.h();var MN=zE;var f1t=`
295
- .kyro-richtext {
296
- color: inherit;
297
- line-height: 1.7;
298
- }
299
-
300
- .kyro-richtext > *:first-child {
301
- margin-top: 0;
302
- }
303
-
304
- .kyro-richtext > *:last-child {
305
- margin-bottom: 0;
306
- }
307
-
308
- .kyro-richtext p,
309
- .kyro-richtext ul,
310
- .kyro-richtext ol,
311
- .kyro-richtext blockquote,
312
- .kyro-richtext pre {
313
- margin: 0 0 1rem;
314
- }
315
-
316
- .kyro-richtext h1,
317
- .kyro-richtext h2,
318
- .kyro-richtext h3,
319
- .kyro-richtext h4,
320
- .kyro-richtext h5,
321
- .kyro-richtext h6 {
322
- margin: 0 0 0.75rem;
323
- line-height: 1.2;
324
- }
325
-
326
- .kyro-richtext ul,
327
- .kyro-richtext ol {
328
- padding-left: 1.5rem;
329
- }
330
-
331
- .kyro-richtext blockquote {
332
- border-left: 4px solid rgba(148, 163, 184, 0.5);
333
- margin-left: 0;
334
- padding-left: 1rem;
335
- font-style: italic;
336
- }
337
-
338
- .kyro-richtext pre {
339
- overflow-x: auto;
340
- border-radius: 0.75rem;
341
- background: rgba(15, 23, 42, 0.92);
342
- color: #f8fafc;
343
- padding: 1rem;
344
- }
345
-
346
- .kyro-richtext code {
347
- font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
348
- }
349
-
350
- .kyro-richtext img {
351
- display: block;
352
- max-width: 100%;
353
- height: auto;
354
- border-radius: 0.75rem;
355
- }
356
-
357
- .kyro-richtext ul[data-type="taskList"] {
358
- list-style: none;
359
- padding: 0;
360
- }
361
-
362
- .kyro-richtext li[data-type="taskItem"] {
363
- display: flex;
364
- align-items: flex-start;
365
- gap: 0.5rem;
366
- }
367
-
368
- .kyro-richtext li[data-type="taskItem"] > label {
369
- user-select: none;
370
- pointer-events: none;
371
- margin-top: 0.2rem;
372
- }
373
-
374
- .kyro-richtext li[data-type="taskItem"] > div {
375
- flex: 1;
376
- }
377
-
378
- .kyro-richtext mark {
379
- background-color: #fef08a;
380
- border-radius: 0.25rem;
381
- padding: 0.125rem 0.25rem;
382
- }
383
- `.trim(),S2=[EN,W0.configure({openOnClick:false}),vN,TN.configure({types:["heading","paragraph"]}),iN,CN.configure({multicolor:true}),kN,NN.configure({nested:true}),WE,MN];function b1t(o){return typeof o=="object"&&o!==null?o:{}}function g1t(o){if(typeof o!="object"||o===null)return "";try{return `<div class="kyro-richtext">${g0(o,S2)}</div>`}catch(t){return console.error("Failed to render rich text:",t),""}}exports.a=P2;exports.b=A2;exports.c=w2;exports.d=x2;exports.e=E2;exports.f=v2;exports.g=T2;exports.h=C2;exports.i=k2;exports.j=N2;exports.k=L2;exports.l=M2;exports.m=IN;exports.n=RN;exports.o=DN;exports.p=ON;exports.q=I2;exports.r=R2;exports.s=f1t;exports.t=b1t;exports.u=g1t;