@bkm016/basalt 0.1.8 → 0.1.9

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 (252) hide show
  1. package/{chunk-0039s4jt.js → chunk-02d3x4mj.js} +3 -3
  2. package/{chunk-ky55taar.js → chunk-0xd9mnc2.js} +327 -316
  3. package/{chunk-ckjw3b61.js → chunk-13gvs0ax.js} +2 -2
  4. package/{chunk-0d51ggzj.js → chunk-1n7dat03.js} +4 -4
  5. package/{chunk-ppxv5q7y.js → chunk-1zj3zvw5.js} +3 -3
  6. package/{chunk-2ek3wq4b.js → chunk-29qrxygd.js} +1 -1
  7. package/{chunk-7p6e2f5s.js → chunk-30rjf7my.js} +3 -3
  8. package/{chunk-v2srrqcv.js → chunk-38g3gctw.js} +2 -2
  9. package/{chunk-3j2kkgsc.js → chunk-4dw43syb.js} +1 -1
  10. package/{chunk-t66jqz12.js → chunk-4gtgqcct.js} +2 -2
  11. package/chunk-66h5qpc6.js +479 -0
  12. package/{chunk-qmdpgbg3.js → chunk-755sy11p.js} +1 -1
  13. package/{chunk-n015c8nx.js → chunk-7zkswxvk.js} +1 -1
  14. package/{chunk-91r5nvth.js → chunk-82v8jh1h.js} +2 -2
  15. package/{chunk-12trygzx.js → chunk-95964592.js} +16 -16
  16. package/{chunk-nmtk9xra.js → chunk-9as0p561.js} +2 -2
  17. package/{chunk-pn413hjw.js → chunk-a1352w87.js} +1 -1
  18. package/{chunk-rnt1ckk9.js → chunk-a1rb1a48.js} +5 -5
  19. package/{chunk-fzcmzbsq.js → chunk-a98wma9j.js} +1 -1
  20. package/{chunk-kgkrccr1.js → chunk-asyr3gnq.js} +2 -2
  21. package/{chunk-5gxj9560.js → chunk-ax04trym.js} +1 -1
  22. package/chunk-b2bxqeb4.js +2 -0
  23. package/{chunk-xjw78yey.js → chunk-bdjr0kfr.js} +4 -4
  24. package/{chunk-7kjr9gdx.js → chunk-bk4rpnm8.js} +2 -2
  25. package/{chunk-47vf66t6.js → chunk-c0zfefq8.js} +1 -1
  26. package/{chunk-kpvaqb7c.js → chunk-c6q04xrd.js} +2 -2
  27. package/chunk-c71173py.js +25 -0
  28. package/{chunk-adys4qq4.js → chunk-cmwdjes8.js} +5 -5
  29. package/{chunk-dcwdmpw2.js → chunk-d0a1jxk5.js} +1 -1
  30. package/{chunk-2nrkqq45.js → chunk-d5j74pcp.js} +7 -7
  31. package/{chunk-pkpj7s2k.js → chunk-dfh9m9n7.js} +1 -1
  32. package/{chunk-26cz8et8.js → chunk-dq01v5eq.js} +1 -1
  33. package/{chunk-fpxc6qjr.js → chunk-e1x629v0.js} +2 -2
  34. package/{chunk-86xhmz7k.js → chunk-en218k4y.js} +1 -1
  35. package/{chunk-3hg7yn1t.js → chunk-fgwda4m0.js} +1 -1
  36. package/chunk-gbjn6d81.js +2 -0
  37. package/{chunk-x496kg3v.js → chunk-gkf5jwvj.js} +1 -1
  38. package/{chunk-k3q5jqjj.js → chunk-hb4f2v34.js} +2 -2
  39. package/{chunk-mr807v9n.js → chunk-hbnmymaq.js} +1 -1
  40. package/{chunk-818nd6s1.js → chunk-jj4hqbrx.js} +2 -2
  41. package/{chunk-jyv9cae6.js → chunk-jn5pqy5v.js} +1 -1
  42. package/{chunk-yyy2yp6f.js → chunk-jtsve11b.js} +9 -9
  43. package/chunk-m1eam0s5.js +2 -0
  44. package/{chunk-6vnjg5x9.js → chunk-mbpb5c7w.js} +1 -1
  45. package/{chunk-t40fag3z.js → chunk-msm9hmk9.js} +1 -1
  46. package/{chunk-j781n7ca.js → chunk-n0ybj4h9.js} +2 -2
  47. package/{chunk-jp5afrwm.js → chunk-n2jcx65v.js} +2 -2
  48. package/{chunk-2ks2tnac.js → chunk-nrsd810j.js} +2 -2
  49. package/chunk-pnspvnyd.js +2 -0
  50. package/chunk-pz2afna8.js +2 -0
  51. package/{chunk-d37gemt2.js → chunk-q9f4xb0w.js} +3 -3
  52. package/{chunk-hd3x1w46.js → chunk-qaeyhe65.js} +1 -1
  53. package/chunk-qnkrrwmg.js +2 -0
  54. package/{chunk-e6c2mzxc.js → chunk-r4ttdkrz.js} +2 -2
  55. package/{chunk-r9aatvwm.js → chunk-stj493dn.js} +2 -2
  56. package/{chunk-g3ed130w.js → chunk-tevejprz.js} +4 -4
  57. package/{chunk-k3rmjrf1.js → chunk-v3ee9z3f.js} +1 -1
  58. package/{chunk-4n49ptbz.js → chunk-vtqr7dm8.js} +2 -2
  59. package/{chunk-z3ch1wg6.js → chunk-xh444pfn.js} +14 -14
  60. package/{chunk-pehyqj8k.js → chunk-zc9ar0r4.js} +1 -1
  61. package/{chunk-ef9yhnk3.js → chunk-zyyzk5ha.js} +1 -1
  62. package/compiled.js +9 -9
  63. package/package.json +1 -1
  64. package/ui-test-worker.js +8 -8
  65. package/web/chunk-08sq3cwm.js +1 -0
  66. package/web/chunk-0pghpg4y.js +2 -0
  67. package/web/chunk-12qf1r6m.js +1 -0
  68. package/web/chunk-24fjnnee.js +1 -0
  69. package/web/chunk-24jhbz82.js +24 -0
  70. package/web/{chunk-v14s4vgc.js → chunk-2dvbeqt0.js} +1 -1
  71. package/web/chunk-2hrswh3d.js +2 -0
  72. package/web/chunk-2j2atyjw.js +1 -0
  73. package/web/{chunk-s7e93552.js → chunk-2x4g9t37.js} +4 -4
  74. package/web/{chunk-hstbgb83.js → chunk-3ak5dg10.js} +5 -5
  75. package/web/chunk-3ecrkvr3.js +106 -0
  76. package/web/chunk-3h3g3ca3.js +1 -0
  77. package/web/chunk-3hr3ew9w.js +1 -0
  78. package/web/chunk-3pcrxg6m.js +1 -0
  79. package/web/{chunk-7a4xk6j9.js → chunk-3pd0qt83.js} +5 -5
  80. package/web/chunk-3txxt0a7.js +1 -0
  81. package/web/chunk-43g4wd7a.js +1 -0
  82. package/web/{chunk-nky3bqfg.js → chunk-4a6gdrbs.js} +1 -1
  83. package/web/{chunk-d0m0h0eb.js → chunk-5a4mj3qz.js} +1 -1
  84. package/web/{chunk-rkjkynm3.js → chunk-5baeh8q7.js} +11 -11
  85. package/web/{chunk-qq2v8h6d.js → chunk-5dr4tkem.js} +4 -4
  86. package/web/chunk-5jdrev9p.js +36 -0
  87. package/web/{chunk-p0cjvjdx.js → chunk-5v2c0aqk.js} +1 -1
  88. package/web/chunk-5z2n4z9x.css +1 -0
  89. package/web/{chunk-6e38yf3a.js → chunk-601k823s.js} +4 -4
  90. package/web/{chunk-8dp7h6w8.js → chunk-60axh4sa.js} +16 -16
  91. package/web/chunk-66wb0p6e.js +62 -0
  92. package/web/{chunk-qcge7d6s.js → chunk-6e87m0nm.js} +2 -2
  93. package/web/chunk-6y55gk1n.js +1 -0
  94. package/web/{chunk-8wg44w91.js → chunk-79e08rk1.js} +2 -2
  95. package/web/{chunk-svh2gkx8.js → chunk-7qkav30b.js} +1 -1
  96. package/web/chunk-814kkkmq.js +8 -0
  97. package/web/chunk-8jcvdd5d.js +2 -0
  98. package/web/{chunk-rbdvc8x7.js → chunk-8w7fyb3v.js} +1 -1
  99. package/web/chunk-8w8atrdh.js +1 -0
  100. package/web/{chunk-sda7cyrt.js → chunk-8z0r0wtk.js} +21 -21
  101. package/web/chunk-935mjq1c.js +39 -0
  102. package/web/chunk-942g3eqn.js +1 -0
  103. package/web/{chunk-1gx0zpmp.js → chunk-98y92vmh.js} +9 -9
  104. package/web/chunk-9ctg0f30.js +3 -0
  105. package/web/chunk-9fnr00kv.js +4 -0
  106. package/web/{chunk-fe31sv6t.js → chunk-9yfftz38.js} +1 -1
  107. package/web/chunk-a0ryzdnp.js +7 -0
  108. package/web/chunk-a61zrp66.js +1 -0
  109. package/web/{chunk-dtg5yhhs.js → chunk-af9evdza.js} +1 -1
  110. package/web/chunk-arnzrqnm.js +1 -0
  111. package/web/chunk-avxk6jpc.js +2 -0
  112. package/web/{chunk-c01176kn.js → chunk-awkdw9rw.js} +2 -2
  113. package/web/{chunk-tkp72r9b.js → chunk-b5h52neg.js} +1 -1
  114. package/web/chunk-bwy3e58v.js +1 -0
  115. package/web/{chunk-ja7w629n.js → chunk-c57f714b.js} +2 -2
  116. package/web/chunk-c6yacwbc.js +30 -0
  117. package/web/{chunk-823b7866.js → chunk-ctzkqx2g.js} +18 -18
  118. package/web/{chunk-w37n09px.js → chunk-db3twjvk.js} +10 -10
  119. package/web/{chunk-hbkasy6c.js → chunk-ddyyc20r.js} +22 -22
  120. package/web/{chunk-z0zrp8n8.js → chunk-dnv8dx72.js} +1 -1
  121. package/web/{chunk-jzte2phh.js → chunk-dwjmr0zj.js} +1 -1
  122. package/web/chunk-dz7g1gnv.js +2 -0
  123. package/web/{chunk-cez1k71m.js → chunk-eadfxfkw.js} +1 -1
  124. package/web/{chunk-d9wdsjkk.js → chunk-eqndhs21.js} +2 -2
  125. package/web/{chunk-cyjnert7.js → chunk-ewx42c11.js} +16 -16
  126. package/web/chunk-f7jpakwh.js +1 -0
  127. package/web/{chunk-r4ffr96e.js → chunk-ff1pmd3g.js} +1 -1
  128. package/web/chunk-fjb3ksfd.js +78 -0
  129. package/web/chunk-fpb2dd2d.js +2 -0
  130. package/web/{chunk-fv6vm14n.js → chunk-frnh4zqf.js} +2 -2
  131. package/web/{chunk-0j9a7811.js → chunk-gn8kyz76.js} +6 -6
  132. package/web/chunk-gv99c8zv.js +1 -0
  133. package/web/chunk-h0767tjv.js +1 -0
  134. package/web/chunk-hqynf99g.js +1 -0
  135. package/web/{chunk-jam45rqg.js → chunk-jccz14ye.js} +2 -2
  136. package/web/{chunk-33w36n91.js → chunk-kcjz03h5.js} +2 -2
  137. package/web/chunk-ket6g0yd.js +1 -0
  138. package/web/chunk-m9q5nr8f.js +1 -0
  139. package/web/chunk-mdfksj61.js +1 -0
  140. package/web/chunk-me7dza1c.js +1 -0
  141. package/web/{chunk-8773nwdc.js → chunk-myd6sc76.js} +1 -1
  142. package/web/{chunk-sf101c23.js → chunk-mykrm8ba.js} +2 -2
  143. package/web/chunk-mzzaet63.js +1 -0
  144. package/web/chunk-n0wazxgz.js +1 -0
  145. package/web/{chunk-1s8zg6fb.js → chunk-nnyc889n.js} +5 -5
  146. package/web/{chunk-xabcx3ry.js → chunk-nvpp0ghj.js} +3 -3
  147. package/web/chunk-nvt9tkt4.js +1139 -0
  148. package/web/{chunk-dgwkqcz6.js → chunk-p9hfcamx.js} +2 -2
  149. package/web/chunk-ph1dgffm.js +1 -0
  150. package/web/chunk-q34as3v6.js +1 -0
  151. package/web/{chunk-sd3cdqcm.js → chunk-qh62nkem.js} +2 -2
  152. package/web/{chunk-j1bw5v1g.js → chunk-qq6m2my8.js} +2 -2
  153. package/web/{chunk-f93pe4kb.js → chunk-qsqtwf34.js} +4 -4
  154. package/web/{chunk-85gdsmt4.js → chunk-qz6r9v1z.js} +1 -1
  155. package/web/chunk-rad2s9ha.js +1 -0
  156. package/web/{chunk-8nv7q5ac.js → chunk-rasjtvsb.js} +15 -15
  157. package/web/{chunk-s38s9ff9.js → chunk-rayf24gy.js} +28 -28
  158. package/web/{chunk-cn0tmwjs.js → chunk-rrpn5r5w.js} +2 -2
  159. package/web/{chunk-m5y2d4zv.js → chunk-s37beysw.js} +1 -1
  160. package/web/chunk-s60s09mb.js +1 -0
  161. package/web/chunk-sk1wkgjw.js +4 -0
  162. package/web/{chunk-xqyazzm7.js → chunk-spbs56wz.js} +5 -5
  163. package/web/{chunk-h5cfg3vv.js → chunk-t893141g.js} +2 -2
  164. package/web/chunk-tftc5v89.js +24 -0
  165. package/web/chunk-tfvcs2xx.js +1 -0
  166. package/web/{chunk-q1xxs319.js → chunk-ts6jsfdk.js} +4 -4
  167. package/web/{chunk-xsz1dfm2.js → chunk-v1exk5wd.js} +20 -20
  168. package/web/{chunk-3q0v8w45.js → chunk-veam6vk4.js} +79 -79
  169. package/web/{chunk-xb9m0092.js → chunk-vqmj6peg.js} +1 -1
  170. package/web/{chunk-cn1xpg3q.js → chunk-vsjpnwsr.js} +2 -2
  171. package/web/{chunk-et8q775x.js → chunk-w3w18stt.js} +5 -5
  172. package/web/chunk-wdq2tp9e.js +1 -0
  173. package/web/chunk-wkf5xfyr.js +1 -0
  174. package/web/{chunk-fx4mackk.js → chunk-wzd2a4k5.js} +4 -4
  175. package/web/{chunk-jjjtv2r1.js → chunk-xa43ndfj.js} +2 -2
  176. package/web/chunk-xh4xn1az.js +1 -0
  177. package/web/{chunk-2axwda8c.js → chunk-xx11yv61.js} +7 -7
  178. package/web/chunk-xzwxcxb4.js +1 -0
  179. package/web/chunk-y1qty77a.js +1 -0
  180. package/web/{chunk-4anjs6yp.js → chunk-y2rzeb4v.js} +2 -2
  181. package/web/chunk-ys2tns0p.js +1 -0
  182. package/web/chunk-z05x9cbm.js +1 -0
  183. package/web/{chunk-mf6xng5b.js → chunk-zb2bkr7f.js} +2 -2
  184. package/web/{chunk-wj3ymejj.js → chunk-zdyys4ar.js} +3 -3
  185. package/web/chunk-zgavhnt8.js +1 -0
  186. package/web/index.html +1 -1
  187. package/worker.js +1 -1
  188. package/chunk-2gcp3xdc.js +0 -2
  189. package/chunk-320174qe.js +0 -2
  190. package/chunk-dvb5nd2x.js +0 -2
  191. package/chunk-frt9k18g.js +0 -480
  192. package/chunk-ndt6rjt9.js +0 -2
  193. package/chunk-xy2bxwq8.js +0 -2
  194. package/chunk-yzevjkms.js +0 -25
  195. package/chunk-zdyd8hbn.js +0 -2
  196. package/web/chunk-0jfda4jw.js +0 -2
  197. package/web/chunk-2p3fkhy8.js +0 -1
  198. package/web/chunk-3sz5qcwj.js +0 -1
  199. package/web/chunk-433c80pc.js +0 -1
  200. package/web/chunk-48cnmhvd.js +0 -106
  201. package/web/chunk-5r37rwq1.js +0 -4
  202. package/web/chunk-6bwgdvf6.js +0 -1
  203. package/web/chunk-7f1t7z72.js +0 -2
  204. package/web/chunk-7x35g67d.js +0 -78
  205. package/web/chunk-8pzg8qw4.js +0 -1
  206. package/web/chunk-8r0s8tx7.js +0 -1
  207. package/web/chunk-9p5dfvav.js +0 -1
  208. package/web/chunk-9q9w9pay.js +0 -1
  209. package/web/chunk-a3teqvz2.js +0 -39
  210. package/web/chunk-ahztazsg.js +0 -1
  211. package/web/chunk-bd8ftfxn.js +0 -3
  212. package/web/chunk-c03bt2pz.js +0 -1
  213. package/web/chunk-c1ha2xg6.js +0 -8
  214. package/web/chunk-cgng31df.js +0 -1
  215. package/web/chunk-cvd4f51j.js +0 -1
  216. package/web/chunk-cybvxssy.js +0 -1
  217. package/web/chunk-d22wq71s.js +0 -1
  218. package/web/chunk-dynajx8x.js +0 -2
  219. package/web/chunk-f3vv7n52.js +0 -1
  220. package/web/chunk-fpa81dv7.js +0 -62
  221. package/web/chunk-g17n6asp.js +0 -1
  222. package/web/chunk-g9dzaw9e.js +0 -30
  223. package/web/chunk-gcwhx3av.js +0 -1139
  224. package/web/chunk-gf8vm6b5.js +0 -1
  225. package/web/chunk-gnmeyy4h.js +0 -1
  226. package/web/chunk-hn7mhsbg.js +0 -1
  227. package/web/chunk-jfvxxp5c.js +0 -1
  228. package/web/chunk-k8h8zx6r.js +0 -24
  229. package/web/chunk-m3ajw575.js +0 -1
  230. package/web/chunk-mz9b5bsa.js +0 -1
  231. package/web/chunk-np33kmn4.js +0 -1
  232. package/web/chunk-nvk8mazs.js +0 -1
  233. package/web/chunk-nyw5ewgv.js +0 -1
  234. package/web/chunk-p56dcqpr.js +0 -1
  235. package/web/chunk-pdn4r8x4.js +0 -1
  236. package/web/chunk-qpt34d8d.js +0 -1
  237. package/web/chunk-qskt3tqa.js +0 -1
  238. package/web/chunk-qt3n897m.js +0 -4
  239. package/web/chunk-r1rt48h9.js +0 -1
  240. package/web/chunk-r7tgd2fm.js +0 -7
  241. package/web/chunk-rznszqmy.js +0 -1
  242. package/web/chunk-s1pefd34.js +0 -1
  243. package/web/chunk-sc29azev.js +0 -1
  244. package/web/chunk-t4jc4nac.js +0 -1
  245. package/web/chunk-t7g366a5.js +0 -24
  246. package/web/chunk-thbqwq6b.js +0 -1
  247. package/web/chunk-v94v68xg.js +0 -36
  248. package/web/chunk-wcphswcx.js +0 -2
  249. package/web/chunk-wwcnvyjh.css +0 -1
  250. package/web/chunk-xce8n339.js +0 -1
  251. package/web/chunk-xfd3b01q.js +0 -1
  252. package/web/chunk-xtss82z2.js +0 -1
package/ui-test-worker.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // @bun
2
- import{ur,Bn,C,Fn,Wn,$n,jr,Hn,mt,Vr}from"./chunk-91r5nvth.js";import{Un,cr}from"./chunk-frt9k18g.js";import"./chunk-t66jqz12.js";import"./chunk-yzevjkms.js";import{i,r,Xe,Gt}from"./chunk-bwawt15q.js";var mh=r(function(FA){FA.removeLeadingAndTrailingHTTPWhitespace=(t)=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");FA.removeTrailingHTTPWhitespace=(t)=>t.replace(/[ \t\n\r]+$/u,"");FA.isHTTPWhitespaceChar=(t)=>t===" "||t==="\t"||t===`
3
- `||t==="\r";FA.solelyContainsHTTPTokenCodePoints=(t)=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);FA.soleyContainsHTTPQuotedStringTokenCodePoints=(t)=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);FA.asciiLowercase=(t)=>t.replace(/[A-Z]/ug,(e)=>e.toLowerCase());FA.collectAnHTTPQuotedString=(t,e)=>{let o="";e++;while(!0){while(e<t.length&&t[e]!=='"'&&t[e]!=="\\")o+=t[e],++e;if(e>=t.length)break;let s=t[e];if(++e,s==="\\"){if(e>=t.length){o+="\\";break}o+=t[e],++e}else break}return[o,e]}});var PS=r(function(z2,fS){var{asciiLowercase:Rc,solelyContainsHTTPTokenCodePoints:WA,soleyContainsHTTPQuotedStringTokenCodePoints:_A}=mh();fS.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=Rc(String(e)),this._map.get(e)}has(e){return e=Rc(String(e)),this._map.has(e)}set(e,o){if(e=Rc(String(e)),o=String(o),!WA(e))throw Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!_A(o))throw Error(`Invalid MIME type parameter value "${o}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,o)}clear(){this._map.clear()}delete(e){return e=Rc(String(e)),this._map.delete(e)}forEach(e,o){this._map.forEach(e,o)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var ES=r(function(J2,wS){var{removeLeadingAndTrailingHTTPWhitespace:YA,removeTrailingHTTPWhitespace:AS,isHTTPWhitespaceChar:KA,solelyContainsHTTPTokenCodePoints:cg,soleyContainsHTTPQuotedStringTokenCodePoints:QA,asciiLowercase:dg,collectAnHTTPQuotedString:jA}=mh();wS.exports=(t)=>{t=YA(t);let e=0,o="";while(e<t.length&&t[e]!=="/")o+=t[e],++e;if(o.length===0||!cg(o))return null;if(e>=t.length)return null;++e;let s="";while(e<t.length&&t[e]!==";")s+=t[e],++e;if(s=AS(s),s.length===0||!cg(s))return null;let n={type:dg(o),subtype:dg(s),parameters:new Map};while(e<t.length){++e;while(KA(t[e]))++e;let l="";while(e<t.length&&t[e]!==";"&&t[e]!=="=")l+=t[e],++e;if(l=dg(l),e<t.length){if(t[e]===";")continue;++e}let a=null;if(t[e]==='"'){[a,e]=jA(t,e);while(e<t.length&&t[e]!==";")++e}else{a="";while(e<t.length&&t[e]!==";")a+=t[e],++e;if(a=AS(a),a==="")continue}if(l.length>0&&cg(l)&&QA(a)&&!n.parameters.has(l))n.parameters.set(l,a)}return n}});var vS=r(function(Z2,xS){var{solelyContainsHTTPTokenCodePoints:qA}=mh();xS.exports=(t)=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[o,s]of t.parameters){if(e+=";",e+=o,e+="=",!qA(s)||s.length===0)s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`;e+=s}return e}});var LS=r(function(tU,NS){var $A=PS(),XA=ES(),zA=vS(),{asciiLowercase:TS,solelyContainsHTTPTokenCodePoints:CS}=mh();NS.exports=class{constructor(e){e=String(e);let o=XA(e);if(o===null)throw Error(`Could not parse MIME type string "${e}"`);this._type=o.type,this._subtype=o.subtype,this._parameters=new $A(o.parameters)}static parse(e){try{return new this(e)}catch(o){return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=TS(String(e)),e.length===0)throw Error("Invalid type: must be a non-empty string");if(!CS(e))throw Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=TS(String(e)),e.length===0)throw Error("Invalid subtype: must be a non-empty string");if(!CS(e))throw Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return zA(this)}isJavaScript({prohibitParameters:e=!1}={}){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!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var $d={};Xe($d,{PluginWebUIContext:()=>qd,SlotButton:()=>kw,useDraftReplace:()=>Lw,usePluginWebUI:()=>OS});var Lg={};Gt(Lg,{Fragment:()=>GS,jsxDEV:()=>US},{Fragment:(D5)=>GS=D5,jsxDEV:(D5)=>US=D5});var kg={};Gt(kg,{Fragment:()=>WS,jsx:()=>_S,jsxs:()=>YS},{Fragment:(B5)=>WS=B5,jsx:(B5)=>_S=B5,jsxs:(B5)=>YS=B5});var An=(t)=>globalThis.postMessage(t),lf=0,zd=new Map;function Rg(t,e){let o=lf++;return new Promise((s,n)=>{zd.set(o,{resolve:s,reject:n}),e.addEventListener("abort",()=>An({type:"cancel",id:o}),{once:!0}),An({type:"request",id:o,input:t})})}function Fg(t){let e=zd.get(t.id);if(zd.delete(t.id),t.error)e?.reject(Error(t.error));else if(t.response)e?.resolve(t.response)}var af="http://basalt.internal";function mf(t){if(!t.startsWith("/api/")||/[\\\r\n#]/.test(t)||!new URL(t,af).pathname.startsWith("/api/"))throw Error("request path must stay within /api/")}function yf(t,e){return new Promise((o,s)=>{let l=setTimeout(()=>{e.removeEventListener("abort",a),o()},t),a=()=>{clearTimeout(l),e.removeEventListener("abort",a),s(Error("Request aborted"))};e.addEventListener("abort",a,{once:!0})})}function pf(t){if(t===void 0||t===null)return;if(typeof t!=="string")throw Error("ui_test requests require a JSON string body");if(!t)return;let e=JSON.parse(t);if(!e||typeof e!=="object"||Array.isArray(e))throw Error("request body must be a JSON object");return e}function Vg(t,e){return{async request(o,s){mf(o);let n=(s?.method??"GET").toUpperCase(),l=s?.signal?AbortSignal.any([s.signal,e]):e;l.throwIfAborted();let a=`${n} ${o}`,y=t&&Object.hasOwn(t,a)?t[a]:void 0;if(y){if(await yf(y.delayMs??0,l),l.throwIfAborted(),y.status<200||y.status>=300)throw Error(`Request failed (${y.status})`);return structuredClone(y.body)}let u=await Rg({path:o,method:n,body:pf(s?.body)},l);if(l.throwIfAborted(),u.status<200||u.status>=300)throw Error(`Request failed (${u.status})`);if(u.truncated)throw Error("API response exceeds ui_test response limit");return JSON.parse(u.body)}}}function Dg(t,e){let o=t.ownerDocument;function s(E){for(let R=E;R;R=R.parentElement){if(R.hasAttribute("hidden")||R.getAttribute("aria-hidden")==="true")return!1;let H=e.getComputedStyle(R);if(H.display==="none"||H.visibility==="hidden")return!1}return!0}function n(E){let R=E.getAttribute("aria-label");if(R!==null)return R;let H=E.getAttribute("aria-labelledby");if(H)return H.split(/\s+/).map((pt)=>o.getElementById(pt)?.textContent??"").join(" ");if("labels"in E){let pt=Array.from(E.labels??[]);if(pt.length)return pt.map((gt)=>gt.textContent).join(" ")}return E.textContent??""}function l(E){return E.hasAttribute("disabled")||E.getAttribute("aria-disabled")==="true"}function a(E){let R=[],H=o.createTreeWalker(E,4);while(H.nextNode()){let pt=H.currentNode,gt=pt?.parentElement;if(gt&&!gt.closest("script,style,textarea")&&s(gt))R.push(pt?.textContent??"")}return R.join(" ").replace(/\s+/g," ").trim()}function y(){return Array.from(t.querySelectorAll("button,[role=button]")).filter(s).map((E)=>({name:n(E).trim(),disabled:l(E),busy:E.getAttribute("aria-busy")==="true"}))}function u(){return Array.from(t.querySelectorAll("input,textarea,select")).filter((E)=>E instanceof e.HTMLInputElement||E instanceof e.HTMLTextAreaElement||E instanceof e.HTMLSelectElement).filter(s).map((E)=>({label:n(E).trim(),value:E.value}))}function c(E=t,R=!0){let H=a(E),pt=y(),gt=u();if(!R)return{text:H,buttons:pt,values:gt,truncated:!1};let Rt=new TextEncoder().encode(H);return{text:new TextDecoder().decode(Rt.slice(0,2048),{stream:!0}),buttons:pt.slice(0,50),values:gt.slice(0,50),truncated:Rt.length>2048||pt.length>50||gt.length>50}}function d(E,R){let H=Array.from(t.querySelectorAll(E)).filter((pt)=>pt instanceof e.HTMLElement).filter((pt)=>s(pt)&&n(pt).trim()===R);if(H.length!==1||!H[0])throw Error(`Expected one control named ${JSON.stringify(R)}, found ${H.length}`);return H[0]}function g(E){let R=Array.from(t.querySelectorAll(E)).filter(s),H=R[0];if(R.length!==1||!(H instanceof e.HTMLElement))throw Error(`Expected one visible element for ${E}, found ${R.length}`);return H}function f(E,R){let H=200,pt=(gt,Rt)=>{H--;let lt=[];if(Rt<R)for(let dt of gt.children){if(!H)break;lt.push(pt(dt,Rt+1))}return{tag:gt.tagName.toLowerCase(),role:gt.getAttribute("role"),class:gt.className,text:Array.from(gt.childNodes).filter((dt)=>dt.nodeType===3).map((dt)=>dt.textContent).join(" ").trim(),childCount:gt.children.length,children:lt}};return pt(E,0)}return{visible:s,isDisabled:l,snapshot:c,findByName:d,selectOne:g,outline:f,count:(E)=>t.querySelectorAll(E).length,anyVisible:(E)=>Array.from(t.querySelectorAll(E)).some(s)}}var ci=Symbol("abort"),Me=Symbol("activeElement"),Pt=Symbol("asyncTaskManager"),di=Symbol("bodyBuffer"),Nt=Symbol("buffer"),qo=Symbol("cachedResponse"),bi=Symbol("callbacks"),wn=Symbol("checked"),Ns=Symbol("childNodes"),ir=Symbol("children"),Aa=Symbol("classList"),Zr=Symbol("connectedToNode"),Bi=Symbol("disconnectedFromNode"),sr=Symbol("connectedToDocument"),nr=Symbol("disconnectedFromDocument"),xl=Symbol("contentLength"),xe=Symbol("contentType"),fr=Symbol("cssText"),Oo=Symbol("currentScript"),Go=Symbol("currentTarget"),Kt=Symbol("data"),Lr=Symbol("defaultView"),At=Symbol("destroy"),En=Symbol("dirtyness"),Y=Symbol("end"),ze=Symbol("entries"),oE=Symbol("evaluateCSS"),Uo=Symbol("evaluateScript"),to=Symbol("exceptionObserver"),Ut=Symbol("formNode"),xn=Symbol("internalId"),F=Symbol("height"),Ls=Symbol("immediatePropagationStopped"),vn=Symbol("indeterminate"),ks=Symbol("isFirstWrite"),Ms=Symbol("isFirstWriteAfterOpen"),wa=Symbol("isInPassiveEventListener"),eo=Symbol("isValue"),Is=Symbol("listenerOptions"),he=Symbol("listeners"),Wr=Symbol("itemsByName"),Rs=Symbol("nextActiveElement"),vl=Symbol("observeMutations"),ro=Symbol("mutationListeners"),x=Symbol("ownerDocument"),xt=Symbol("ownerElement"),Fs=Symbol("propagationStopped"),Eo=Symbol("readyStateManager"),Pr=Symbol("referrer"),gi=Symbol("registry"),oo=Symbol("relList"),Ea=Symbol("resetSelection"),ve=Symbol("rootNode"),Ie=Symbol("selectNode"),Ar=Symbol("selectedness"),Tn=Symbol("selection"),Tm=Symbol("setupVMContext"),be=Symbol("shadowRoot"),O=Symbol("start"),ge=Symbol("style"),wr=Symbol("target"),Je=Symbol("textAreaNode"),xa=Symbol("unobserveMutations"),Oi=Symbol("reportMutation"),Cn=Symbol("updateSelectedness"),Pe=Symbol("url"),q=Symbol("value"),V=Symbol("width"),m=Symbol("window"),vh=Symbol("windowResizeListener"),Nn=Symbol("mutationObservers"),io=Symbol("openerFrame"),Si=Symbol("openerWindow"),Cm=Symbol("pointerCaptures"),Ln=Symbol("popup"),tt=Symbol("isConnected"),W=Symbol("parentNode"),D=Symbol("nodeType"),z=Symbol("tagName"),Ft=Symbol("prefix"),Jd=Symbol("scrollHeight"),Zd=Symbol("scrollWidth"),Th=Symbol("scrollTop"),Ch=Symbol("scrollLeft"),St=Symbol("attributes"),va=Symbol("attributesProxy"),J=Symbol("namespaceURI"),Ta=Symbol("accessKey"),iE=Symbol("accessKeyLabel"),tb=Symbol("offsetHeight"),eb=Symbol("offsetWidth"),rb=Symbol("offsetLeft"),ob=Symbol("offsetTop"),ib=Symbol("clientHeight"),sb=Symbol("clientWidth"),nb=Symbol("clientLeft"),lb=Symbol("clientTop"),rt=Symbol("name"),Nm=Symbol("specified"),Vs=Symbol("adoptedStyleSheets"),Nh=Symbol("implementation"),kn=Symbol("readyState"),Ds=Symbol("publicId"),Bs=Symbol("systemId"),Ce=Symbol("validationMessage"),Ke=Symbol("validity"),Lh=Symbol("returnValue"),Gi=Symbol("elements"),sE=Symbol("length"),ab=Symbol("complete"),mb=Symbol("naturalHeight"),yb=Symbol("naturalWidth"),Bg=Symbol("loading"),k=Symbol("x"),M=Symbol("y"),nE=Symbol("defaultChecked"),$o=Symbol("files"),Be=Symbol("sheet"),kh=Symbol("volume"),Tl=Symbol("paused"),Mh=Symbol("currentTime"),Ih=Symbol("playbackRate"),Rh=Symbol("defaultPlaybackRate"),Ca=Symbol("muted"),Cl=Symbol("defaultMuted"),Fh=Symbol("preservesPitch"),pb=Symbol("buffered"),ub=Symbol("duration"),Qe=Symbol("error"),hb=Symbol("ended"),cb=Symbol("networkState"),Vh=Symbol("textTracks"),db=Symbol("seeking"),bb=Symbol("seekable"),gb=Symbol("played"),Ui=Symbol("options"),so=Symbol("content"),Ee=Symbol("mode"),Mn=Symbol("host"),_r=Symbol("setURL"),ot=Symbol("localName"),Na=Symbol("classRegistry"),Lm=Symbol("nodeStream"),no=Symbol("location"),Oe=Symbol("history"),Dh=Symbol("navigator"),Bh=Symbol("screen"),Oh=Symbol("sessionStorage"),Gh=Symbol("localStorage"),km=Symbol("sandbox"),ct=Symbol("cloneNode"),Et=Symbol("appendChild"),hr=Symbol("removeChild"),kr=Symbol("insertBefore"),La=Symbol("replaceChild"),fi=Symbol("tracks"),ka=Symbol("constraints"),Pi=Symbol("capabilities"),In=Symbol("settings"),lE=Symbol("clone"),Os=Symbol("removeNamedItem"),Q=Symbol("items"),Rn=Symbol("selectedOptions"),dr=Symbol("styleNode"),Vn=Symbol("updateSheet"),Mr=Symbol("clearCache"),Re=Symbol("onSetAttribute"),br=Symbol("onRemoveAttribute"),_=Symbol("nodeArray"),bt=Symbol("elementArray"),U=Symbol("cache"),He=Symbol("affectsCache"),Ma=Symbol("forms"),Xo=Symbol("affectsComputedStyleCache"),Nl=Symbol("query"),Ll=Symbol("computedStyle"),lo=Symbol("getFormControlItems"),Mm=Symbol("getFormControlNamedItem"),Uh=Symbol("dataset"),aE=Symbol("getNamespaceItemKey"),mE=Symbol("getNamedItemKey"),Ai=Symbol("itemsByNamespaceURI"),Vt=Symbol("proxy"),zo=Symbol("setNamedItem"),Er=Symbol("getTokenList"),Gs=Symbol("attributeName"),Ho=Symbol("selectedIndex"),Dn=Symbol("self"),ao=Symbol("parent"),Jo=Symbol("top"),Im=Symbol("areas"),mo=Symbol("defaultValue"),wi=Symbol("elementIdMap"),On=Symbol("clonable"),kl=Symbol("delegatesFocus"),Hi=Symbol("serializable"),Ei=Symbol("slotAssignment"),Wi=Symbol("assignedNodes"),Zo=Symbol("assignedToSlot"),Rm=Symbol("cells"),Fm=Symbol("rows"),Hh=Symbol("headers"),Vm=Symbol("tBodies"),Ia=Symbol("track"),Dm=Symbol("controlsList"),Wh=Symbol("mediaKeys"),Sb=Symbol("remote"),_h=Symbol("sinkId"),Yh=Symbol("srcObject"),Ml=Symbol("cues"),fb=Symbol("activeCues"),xo=Symbol("kind"),Us=Symbol("label"),Il=Symbol("language"),Bm=Symbol("id"),h=Symbol("illegalConstructor"),Pb=Symbol("state"),Om=Symbol("canvas"),Gn=Symbol("popoverTargetElement"),Gm=Symbol("composed"),Hs=Symbol("bubbles"),_i=Symbol("cancelable"),lr=Symbol("defaultPrevented"),xr=Symbol("eventPhase"),Ab=Symbol("timeStamp"),Qt=Symbol("type"),Um=Symbol("detail"),yE=Symbol("globalObject"),Hm=Symbol("destroyed"),Se=Symbol("aborted"),Wm=Symbol("browserFrames"),Kh=Symbol("windowInternalId"),K=Symbol("getItemList"),Yi=Symbol("requiredExtensions"),Ki=Symbol("systemLanguage"),_m=Symbol("transform"),se=Symbol("baseVal"),ne=Symbol("animVal"),Ym=Symbol("pathLength"),pE=Symbol("unitType"),Qi=Symbol("viewBox"),Km=Symbol("markerUnits"),Qm=Symbol("markerWidth"),jm=Symbol("markerHeight"),Ze=Symbol("values"),qm=Symbol("orientType"),$m=Symbol("orientAngle"),Xm=Symbol("refX"),zm=Symbol("refY"),j=Symbol("readOnly"),ar=Symbol("preserveAspectRatio"),ji=Symbol("animatedPoints"),qi=Symbol("points"),$i=Symbol("rx"),Xi=Symbol("ry"),yo=Symbol("cx"),po=Symbol("cy"),zi=Symbol("r"),Jm=Symbol("clipPathUnits"),Zm=Symbol("maskUnits"),ty=Symbol("maskContentUnits"),ey=Symbol("filterUnits"),ry=Symbol("primitiveUnits"),Lt=Symbol("href"),Ji=Symbol("x1"),Zi=Symbol("y1"),ts=Symbol("x2"),es=Symbol("y2"),oy=Symbol("gradientUnits"),iy=Symbol("gradientTransform"),sy=Symbol("spreadMethod"),ny=Symbol("patternUnits"),ly=Symbol("patternContentUnits"),ay=Symbol("patternTransform"),my=Symbol("fx"),yy=Symbol("fy"),rs=Symbol("offset"),_n=Symbol("disabled"),py=Symbol("textLength"),uy=Symbol("lengthAdjust"),v=Symbol("getAttribute"),A=Symbol("setAttribute"),Ir=Symbol("z"),Rl=Symbol("w"),hy=Symbol("toArray"),Fl=Symbol("fromString"),vo=Symbol("fromArray"),uE=Symbol("angle"),kt=Symbol("m11"),Dt=Symbol("m12"),zt=Symbol("m13"),Jt=Symbol("m14"),Mt=Symbol("m21"),Bt=Symbol("m22"),Zt=Symbol("m23"),te=Symbol("m24"),Wt=Symbol("m31"),jt=Symbol("m32"),qt=Symbol("m33"),_t=Symbol("m34"),It=Symbol("m41"),Ot=Symbol("m42"),$t=Symbol("m43"),Xt=Symbol("m44"),Ra=Symbol("setMatrixValue"),To=Symbol("translateSelf"),Ws=Symbol("rotateSelf"),_s=Symbol("rotateAxisAngleSelf"),os=Symbol("scaleSelf"),cy=Symbol("scale3dSelf"),dy=Symbol("scaleNonUniformSelf"),Vl=Symbol("skewXSelf"),Dl=Symbol("skewYSelf"),Co=Symbol("multiplySelf"),Ys=Symbol("matrix"),hE=Symbol("domMatrix"),Ne=Symbol("getDOMMatrix"),gr=Symbol("setDOMMatrix"),I=Symbol("attributeValue"),by=Symbol("startOffset"),Ks=Symbol("method"),gy=Symbol("spacing"),at=Symbol("in1"),uo=Symbol("in2"),Z=Symbol("result"),Sy=Symbol("bias"),fy=Symbol("divisor"),is=Symbol("edgeMode"),Py=Symbol("kernelMatrix"),ho=Symbol("kernelUnitLengthX"),co=Symbol("kernelUnitLengthY"),Ay=Symbol("orderX"),wy=Symbol("orderY"),Ey=Symbol("preserveAlpha"),xy=Symbol("targetX"),vy=Symbol("targetY"),Ty=Symbol("diffuseConstant"),ss=Symbol("surfaceScale"),Cy=Symbol("scale"),Ny=Symbol("xChannelSelector"),Ly=Symbol("yChannelSelector"),ky=Symbol("azimuth"),My=Symbol("elevation"),bo=Symbol("dx"),go=Symbol("dy"),ns=Symbol("stdDeviationX"),ls=Symbol("stdDeviationY"),Iy=Symbol("tableValues"),Ry=Symbol("slope"),Fy=Symbol("intercept"),Vy=Symbol("amplitude"),Dy=Symbol("exponent"),Og=Symbol("crossOrigin"),By=Symbol("operator"),Oy=Symbol("radiusX"),Gy=Symbol("radiusY"),Uy=Symbol("specularConstant"),as=Symbol("specularExponent"),Hy=Symbol("pointsAtX"),Wy=Symbol("pointsAtY"),_y=Symbol("pointsAtZ"),Yy=Symbol("limitingConeAngle"),Ky=Symbol("baseFrequencyX"),Qy=Symbol("baseFrequencyY"),jy=Symbol("numOctaves"),qy=Symbol("seed"),$y=Symbol("stitchTiles"),Xy=Symbol("rotateFromVectorSelf"),zy=Symbol("flipXSelf"),Jy=Symbol("flipYSelf"),Zy=Symbol("invertSelf"),wb=Symbol("getLength"),Qh=Symbol("currentScale"),tp=Symbol("rotate"),Eb=Symbol("bindMethods"),Yn=Symbol("xmlProcessingInstruction"),cE=Symbol("root"),Wo=Symbol("filterNode"),Qs=Symbol("customElementReactionStack"),Kn=Symbol("dispatching"),ms=Symbol("modules"),Rr=Symbol("preloads"),js=Symbol("body"),jh=Symbol("redirect"),Fa=Symbol("referrerPolicy"),qh=Symbol("signal"),xi=Symbol("bodyUsed"),$h=Symbol("credentials"),ep=Symbol("blocking"),Bl=Symbol("moduleImportMap"),le=Symbol("dispatchError"),Xh=Symbol("supports"),No=Symbol("reason"),p=Symbol("propertyEventListeners"),We=Symbol("cssRules"),qs=Symbol("parentRule"),Lo=Symbol("parentStyleSheet"),So=Symbol("conditionText"),ys=Symbol("keyText"),xb=Symbol("media"),rp=Symbol("styleMap"),Ol=Symbol("selectorText"),Gl=Symbol("cssParser"),$s=Symbol("cssRule"),Fr=Symbol("rulePrefix"),Yr=Symbol("virtualServerFile"),vb=Symbol("frames"),Xs=Symbol("disableEvaluation"),Tb=Symbol("validateJavaScriptExecutionEnvironment"),dE=Symbol("currentNode"),Qn=Symbol("openWebSockets"),vr=Symbol("webSocket"),Va=Symbol("moduleCache");var Cb;(function(t){t.strict="Strict",t.lax="Lax",t.none="None"})(Cb||(Cb={}));var zs=Cb;var zh={key:null,originURL:null,value:null,domain:"",path:"",expires:null,httpOnly:!1,secure:!1,sameSite:zs.lax};class op{static hasExpired(t){return t.expires&&t.expires.getTime()<Date.now()}}class Jh{static cookieMatchesURL(t,e){let o=e.hostname==="localhost"||e.hostname?.endsWith(".localhost");return(!t.secure||e.protocol==="https:"||o)&&(!t.domain||e.hostname?.endsWith(t.domain))&&(!t.path||e.pathname?.startsWith(t.path))&&(t.sameSite===zs.none&&t.secure||t.originURL?.hostname===e.hostname)}}class ip{#t=[];addCookies(t){let e=new Map,o=(s)=>`${s.key}-${s.originURL.hostname}-${s.path}-${typeof s.value}`;for(let s=0,n=this.#t.length;s<n;s++)e.set(o(this.#t[s]),s);for(let s of t){let n=Object.assign({},zh,s);if(n&&n.key&&n.originURL){let l=e.get(o(n));if(l!==void 0)this.#t.splice(l,1);if(!op.hasExpired(n))e.set(o(n),this.#t.length),this.#t.push(n)}}}getCookies(t=null,e=!1){let o=[];for(let s of this.#t)if(!op.hasExpired(s)&&(!e||!s.httpOnly)&&(!t||Jh.cookieMatchesURL(s,t)))o.push(s);return o}clearCookies(){this.#t=[]}}var Nb;(function(t){t.fresh="fresh",t.stale="stale"})(Nb||(Nb={}));var jn=Nb;var Lb;(function(t){t.invalidStateError="InvalidStateError",t.indexSizeError="IndexSizeError",t.syntaxError="SyntaxError",t.hierarchyRequestError="HierarchyRequestError",t.notSupportedError="NotSupportedError",t.wrongDocumentError="WrongDocumentError",t.invalidNodeTypeError="InvalidNodeTypeError",t.invalidCharacterError="InvalidCharacterError",t.notFoundError="NotFoundError",t.securityError="SecurityError",t.networkError="NetworkError",t.domException="DOMException",t.invalidAccessError="InvalidAccessError",t.unknownError="UnknownError",t.abortError="AbortError",t.timeoutError="TimeoutError",t.encodingError="EncodingError",t.uriMismatchError="URIMismatchError",t.inUseAttributeError="InUseAttributeError",t.namespaceError="NamespaceError"})(Lb||(Lb={}));var w=Lb;class re extends Error{constructor(t,e=null){super(t);this.name=e||w.domException}}class vi{[ze]={};constructor(t){if(t)if(t instanceof vi)this[ze]=JSON.parse(JSON.stringify(t[ze]));else if(Array.isArray(t))for(let e of t){if(e.length!==2)throw new re('Failed to construct "Headers": The provided init is not a valid array.',w.invalidStateError);this.append(e[0],e[1])}else for(let e of Object.keys(t))this.set(e,t[e])}append(t,e){let o=t.toLowerCase();if(this[ze][o])this[ze][o].value.push(e);else this[ze][o]={name:t,value:[e]}}delete(t){delete this[ze][t.toLowerCase()]}get(t){return this[ze][t.toLowerCase()]?.value.join(", ")??null}set(t,e){this[ze][t.toLowerCase()]={name:t,value:[e]}}getSetCookie(){let t=this[ze]["set-cookie"];if(!t)return[];return t.value}has(t){return!!this[ze][t.toLowerCase()]}forEach(t,e){let o=e??this[m];for(let s of Object.values(this[ze]))t.call(o,s.value.join(", "),s.name,this)}*keys(){for(let t of Object.values(this[ze]))yield t.name}*values(){for(let t of Object.values(this[ze]))yield t.value.join(", ")}*entries(){for(let t of Object.values(this[ze]))yield[t.name,t.value.join(", ")]}*[Symbol.iterator](){for(let t of Object.values(this[ze]))yield[t.name,t.value.join(", ")]}}import Da from"fs";import Ba from"path";import uf from"crypto";class Zh{#t=new Set;#e=new Set;#r;constructor(t){this.#r=t}async load(t){if(!t)throw Error("Failed to execute 'load' on 'ResponseCacheFileSystem': Directory is not specified.");let e=Ba.resolve(t),o=[];try{o=await Da.promises.readdir(e)}catch(l){return}let s=[],n=this.#r;for(let l of o)if(l.endsWith(".json"))s.push(Da.promises.readFile(Ba.join(e,l),"utf8").then((a)=>{let y=JSON.parse(a);if(y.response&&y.request&&!y.virtual)return y.response.headers=new vi(y.response.headers),y.request.headers=new vi(y.request.headers),Da.promises.readFile(Ba.join(e,l.split(".")[0]+".data")).then((u)=>{y.response.body=u;let c=n.get(y.response.url);if(!c)c=[],n.set(y.response.url,c);c.push(y)}).catch(()=>{let u=n.get(y.response.url);if(!u)u=[],n.set(y.response.url,u);u.push(y)})}).catch(()=>{}));await Promise.all(s)}async save(t){if(!t)throw Error("Failed to execute 'store' on 'ResponseCacheFileSystem': Directory is not specified.");if(!this.#r.size)return;let e=Ba.resolve(t);if(!this.#t.has(e)){this.#t.add(e);try{await Da.promises.mkdir(e,{recursive:!0})}catch(l){}}let s=this.#r,n=[];for(let l of s.values())for(let a of l)if(!a.virtual){let y={},u={};for(let[f,E]of a.response.headers.entries())y[f]=E;for(let[f,E]of a.request.headers.entries())u[f]=E;let c={...a,response:{...a.response,headers:y,body:null},request:{...a.request,headers:u}},d=JSON.stringify(c,null,3),g=uf.createHash("md5").update(d).digest("hex");if(!this.#e.has(g)){if(this.#e.add(g),n.push(Da.promises.writeFile(Ba.join(e,`${g}.json`),d)),a.response.body)n.push(Da.promises.writeFile(Ba.join(e,`${g}.data`),a.response.body))}}await Promise.all(n)}}var hf=["Cache-Control","Last-Modified","Vary","ETag"];class sp{fileSystem;#t=new Map;constructor(){this.fileSystem=new Zh(this.#t)}get(t){if(t.headers.get("Cache-Control")?.includes("no-cache"))return null;let e=t.url,o=this.#t.get(e);if(o)for(let s=0,n=o.length;s<n;s++){let l=o[s],a=l.request.method===t.method;if(a)for(let y of Object.keys(l.vary)){let u=t.headers.get(y);if(u!==null&&l.vary[y]!==u){a=!1;break}}if(a){if(l.expires&&l.expires<Date.now()){if(l.lastModified)l.state=jn.stale;else if(!l.etag)return o.splice(s,1),null}return l}}return null}add(t,e){if(t.method!=="GET"&&t.method!=="HEAD"||t.headers.get("Cache-Control")?.includes("no-cache"))return null;let o=t.url,s=this.get(t);if(e.status===304){if(!s)throw Error("ResponseCache: Cached response not found.");for(let n of hf)if(e.headers.has(n))s.response.headers.set(n,e.headers.get(n));s.cacheUpdateTime=Date.now(),s.state=jn.fresh}else{if(s){let l=this.#t.get(o);if(l){let a=l.indexOf(s);if(a!==-1)l.splice(a,1)}}s={response:{status:e.status,statusText:e.statusText,url:e.url,headers:new vi(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:!1,staleWhileRevalidate:!1,state:jn.fresh,virtual:e.virtual??!1};let n=this.#t.get(o);if(!n)n=[],this.#t.set(o,n);n.push(s)}if(e.headers.has("Cache-Control")){let n=e.headers.get("Age");for(let l of e.headers.get("Cache-Control").split(",")){let[a,y]=l.trim().split("=");switch(a){case"max-age":s.expires=Date.now()+parseFloat(y)*1000-(n?parseFloat(n)*1000:0);break;case"no-cache":case"no-store":let u=this.#t.get(o);if(u){let c=u.indexOf(s);if(c!==-1)u.splice(c,1)}return null;case"must-revalidate":s.mustRevalidate=!0;break;case"stale-while-revalidate":s.staleWhileRevalidate=!0;break}}}if(e.headers.has("Last-Modified"))s.lastModified=Date.parse(e.headers.get("Last-Modified"));if(e.headers.has("Vary"))for(let n of e.headers.get("Vary").split(",")){let l=n.trim(),a=t.headers.get(l);if(a)s.vary[l]=a}if(e.headers.has("ETag"))s.etag=e.headers.get("ETag");if(!s.expires){let n=e.headers.get("Expires");if(n)s.expires=Date.parse(n)}if(!s.etag&&(!s.expires||s.expires<Date.now())){let n=this.#t.get(o);if(n){let l=n.indexOf(s);if(l!==-1)n.splice(l,1)}return null}return s}clear(t){if(t){if(t.toTime)for(let e of t.url?[t.url]:this.#t.keys()){let o=this.#t.get(e);if(o){for(let s=0,n=o.length;s<n;s++)if(o[s].cacheUpdateTime<t.toTime)o.splice(s,1),s--,n--}}else if(t.url)this.#t.delete(t.url)}else this.#t.clear()}}var kb;(function(t){t[t.log=0]="log",t[t.info=1]="info",t[t.warn=2]="warn",t[t.error=3]="error"})(kb||(kb={}));var mr=kb;var Mb;(function(t){t[t.elementNode=1]="elementNode",t[t.attributeNode=2]="attributeNode",t[t.textNode=3]="textNode",t[t.cdataSectionNode=4]="cdataSectionNode",t[t.commentNode=8]="commentNode",t[t.documentNode=9]="documentNode",t[t.documentTypeNode=10]="documentTypeNode",t[t.documentFragmentNode=11]="documentFragmentNode",t[t.processingInstructionNode=7]="processingInstructionNode"})(Mb||(Mb={}));var T=Mb;var Ib;(function(t){t[t.none=0]="none",t[t.capturing=1]="capturing",t[t.atTarget=2]="atTarget",t[t.bubbling=3]="bubbling"})(Ib||(Ib={}));var ae=Ib;class N{static NONE=ae.none;static CAPTURING_PHASE=ae.capturing;static AT_TARGET=ae.atTarget;static BUBBLING_PHASE=ae.bubbling;NONE=N.NONE;CAPTURING_PHASE=N.CAPTURING_PHASE;AT_TARGET=N.AT_TARGET;BUBBLING_PHASE=N.BUBBLING_PHASE;[Gm]=!1;[Hs]=!1;[_i]=!1;[lr]=!1;[xr]=ae.none;[Ab]=performance.now();[Qt];[Kn]=!1;[Ls]=!1;[Fs]=!1;[wr]=null;[Go]=null;[wa]=!1;constructor(t,e=null){this[Qt]=t,this[Hs]=e?.bubbles??!1,this[_i]=e?.cancelable??!1,this[Gm]=e?.composed??!1}get composed(){return this[Gm]}get bubbles(){return this[Hs]}get cancelable(){return this[_i]}get defaultPrevented(){return this[lr]}get eventPhase(){return this[xr]}get timeStamp(){return this[Ab]}get type(){return this[Qt]}get target(){return this[wr]}get currentTarget(){return this[Go]}get cancelBubble(){return this[Fs]}composedPath(){if(!this[wr])return[];let t=[],e=this[wr];while(e)if(t.push(e),e.parentNode)e=e.parentNode;else if(this[Gm]&&e[D]===T.documentFragmentNode&&e.host)e=e.host;else if(e[D]===T.documentNode&&this[Qt]!=="load")e=e[m];else break;return t}initEvent(t,e=!1,o=!1){this[Qt]=t,this[Hs]=e,this[_i]=o,this[Fs]=!1,this[Ls]=!1,this[lr]=!1}preventDefault(){if(!this[wa]&&this.cancelable)this[lr]=!0}stopImmediatePropagation(){this[Ls]=!0}stopPropagation(){this[Fs]=!0}}var Rb;(function(t){t.log="log",t.table="table",t.trace="trace",t.dir="dir",t.dirxml="dirxml",t.group="group",t.groupCollapsed="groupCollapsed",t.debug="debug",t.timeLog="timeLog",t.info="info",t.count="count",t.timeEnd="timeEnd",t.warn="warn",t.countReset="countReset",t.error="error",t.assert="assert"})(Rb||(Rb={}));var Fe=Rb;class tc{static toString(t){if(this.isLogEntryCollapsed(t))return"";let e=this.getLogEntryGroupTabbing(t),o=e;for(let s of t.message)if(o+=o!==""&&o!==e?" ":"",typeof s==="object"&&(s===null||s.constructor.name==="Object"||Array.isArray(s)))try{o+=JSON.stringify(s)}catch(n){o+=Error("Failed to JSON stringify object in log entry.").stack.replace(/\n at/gm,`
2
+ import{ur,Un,C,Bn,Fn,Wn,jr,$n,mt,Vr}from"./chunk-82v8jh1h.js";import{Dn,cr}from"./chunk-66h5qpc6.js";import"./chunk-4gtgqcct.js";import"./chunk-c71173py.js";import{i,r,Xe,Gt}from"./chunk-bwawt15q.js";var mh=r(function(FA){FA.removeLeadingAndTrailingHTTPWhitespace=(t)=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");FA.removeTrailingHTTPWhitespace=(t)=>t.replace(/[ \t\n\r]+$/u,"");FA.isHTTPWhitespaceChar=(t)=>t===" "||t==="\t"||t===`
3
+ `||t==="\r";FA.solelyContainsHTTPTokenCodePoints=(t)=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);FA.soleyContainsHTTPQuotedStringTokenCodePoints=(t)=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);FA.asciiLowercase=(t)=>t.replace(/[A-Z]/ug,(e)=>e.toLowerCase());FA.collectAnHTTPQuotedString=(t,e)=>{let o="";e++;while(!0){while(e<t.length&&t[e]!=='"'&&t[e]!=="\\")o+=t[e],++e;if(e>=t.length)break;let s=t[e];if(++e,s==="\\"){if(e>=t.length){o+="\\";break}o+=t[e],++e}else break}return[o,e]}});var PS=r(function(z2,fS){var{asciiLowercase:Rc,solelyContainsHTTPTokenCodePoints:WA,soleyContainsHTTPQuotedStringTokenCodePoints:_A}=mh();fS.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=Rc(String(e)),this._map.get(e)}has(e){return e=Rc(String(e)),this._map.has(e)}set(e,o){if(e=Rc(String(e)),o=String(o),!WA(e))throw Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!_A(o))throw Error(`Invalid MIME type parameter value "${o}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,o)}clear(){this._map.clear()}delete(e){return e=Rc(String(e)),this._map.delete(e)}forEach(e,o){this._map.forEach(e,o)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var ES=r(function(J2,wS){var{removeLeadingAndTrailingHTTPWhitespace:YA,removeTrailingHTTPWhitespace:AS,isHTTPWhitespaceChar:KA,solelyContainsHTTPTokenCodePoints:cg,soleyContainsHTTPQuotedStringTokenCodePoints:QA,asciiLowercase:dg,collectAnHTTPQuotedString:jA}=mh();wS.exports=(t)=>{t=YA(t);let e=0,o="";while(e<t.length&&t[e]!=="/")o+=t[e],++e;if(o.length===0||!cg(o))return null;if(e>=t.length)return null;++e;let s="";while(e<t.length&&t[e]!==";")s+=t[e],++e;if(s=AS(s),s.length===0||!cg(s))return null;let n={type:dg(o),subtype:dg(s),parameters:new Map};while(e<t.length){++e;while(KA(t[e]))++e;let l="";while(e<t.length&&t[e]!==";"&&t[e]!=="=")l+=t[e],++e;if(l=dg(l),e<t.length){if(t[e]===";")continue;++e}let a=null;if(t[e]==='"'){[a,e]=jA(t,e);while(e<t.length&&t[e]!==";")++e}else{a="";while(e<t.length&&t[e]!==";")a+=t[e],++e;if(a=AS(a),a==="")continue}if(l.length>0&&cg(l)&&QA(a)&&!n.parameters.has(l))n.parameters.set(l,a)}return n}});var vS=r(function(Z2,xS){var{solelyContainsHTTPTokenCodePoints:qA}=mh();xS.exports=(t)=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[o,s]of t.parameters){if(e+=";",e+=o,e+="=",!qA(s)||s.length===0)s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`;e+=s}return e}});var LS=r(function(tU,NS){var $A=PS(),XA=ES(),zA=vS(),{asciiLowercase:TS,solelyContainsHTTPTokenCodePoints:CS}=mh();NS.exports=class{constructor(e){e=String(e);let o=XA(e);if(o===null)throw Error(`Could not parse MIME type string "${e}"`);this._type=o.type,this._subtype=o.subtype,this._parameters=new $A(o.parameters)}static parse(e){try{return new this(e)}catch(o){return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=TS(String(e)),e.length===0)throw Error("Invalid type: must be a non-empty string");if(!CS(e))throw Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=TS(String(e)),e.length===0)throw Error("Invalid subtype: must be a non-empty string");if(!CS(e))throw Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return zA(this)}isJavaScript({prohibitParameters:e=!1}={}){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!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var $d={};Xe($d,{PluginWebUIContext:()=>qd,SlotButton:()=>kw,useDraftReplace:()=>Lw,usePluginWebUI:()=>OS});var Lg={};Gt(Lg,{Fragment:()=>GS,jsxDEV:()=>US},{Fragment:(D5)=>GS=D5,jsxDEV:(D5)=>US=D5});var kg={};Gt(kg,{Fragment:()=>WS,jsx:()=>_S,jsxs:()=>YS},{Fragment:(B5)=>WS=B5,jsx:(B5)=>_S=B5,jsxs:(B5)=>YS=B5});var An=(t)=>globalThis.postMessage(t),lf=0,zd=new Map;function Rg(t,e){let o=lf++;return new Promise((s,n)=>{zd.set(o,{resolve:s,reject:n}),e.addEventListener("abort",()=>An({type:"cancel",id:o}),{once:!0}),An({type:"request",id:o,input:t})})}function Fg(t){let e=zd.get(t.id);if(zd.delete(t.id),t.error)e?.reject(Error(t.error));else if(t.response)e?.resolve(t.response)}var af="http://basalt.internal";function mf(t){if(!t.startsWith("/api/")||/[\\\r\n#]/.test(t)||!new URL(t,af).pathname.startsWith("/api/"))throw Error("request path must stay within /api/")}function yf(t,e){return new Promise((o,s)=>{let l=setTimeout(()=>{e.removeEventListener("abort",a),o()},t),a=()=>{clearTimeout(l),e.removeEventListener("abort",a),s(Error("Request aborted"))};e.addEventListener("abort",a,{once:!0})})}function pf(t){if(t===void 0||t===null)return;if(typeof t!=="string")throw Error("ui_test requests require a JSON string body");if(!t)return;let e=JSON.parse(t);if(!e||typeof e!=="object"||Array.isArray(e))throw Error("request body must be a JSON object");return e}function Vg(t,e){return{async request(o,s){mf(o);let n=(s?.method??"GET").toUpperCase(),l=s?.signal?AbortSignal.any([s.signal,e]):e;l.throwIfAborted();let a=`${n} ${o}`,y=t&&Object.hasOwn(t,a)?t[a]:void 0;if(y){if(await yf(y.delayMs??0,l),l.throwIfAborted(),y.status<200||y.status>=300)throw Error(`Request failed (${y.status})`);return structuredClone(y.body)}let u=await Rg({path:o,method:n,body:pf(s?.body)},l);if(l.throwIfAborted(),u.status<200||u.status>=300)throw Error(`Request failed (${u.status})`);if(u.truncated)throw Error("API response exceeds ui_test response limit");return JSON.parse(u.body)}}}function Dg(t,e){let o=t.ownerDocument;function s(E){for(let R=E;R;R=R.parentElement){if(R.hasAttribute("hidden")||R.getAttribute("aria-hidden")==="true")return!1;let H=e.getComputedStyle(R);if(H.display==="none"||H.visibility==="hidden")return!1}return!0}function n(E){let R=E.getAttribute("aria-label");if(R!==null)return R;let H=E.getAttribute("aria-labelledby");if(H)return H.split(/\s+/).map((pt)=>o.getElementById(pt)?.textContent??"").join(" ");if("labels"in E){let pt=Array.from(E.labels??[]);if(pt.length)return pt.map((gt)=>gt.textContent).join(" ")}return E.textContent??""}function l(E){return E.hasAttribute("disabled")||E.getAttribute("aria-disabled")==="true"}function a(E){let R=[],H=o.createTreeWalker(E,4);while(H.nextNode()){let pt=H.currentNode,gt=pt?.parentElement;if(gt&&!gt.closest("script,style,textarea")&&s(gt))R.push(pt?.textContent??"")}return R.join(" ").replace(/\s+/g," ").trim()}function y(){return Array.from(t.querySelectorAll("button,[role=button]")).filter(s).map((E)=>({name:n(E).trim(),disabled:l(E),busy:E.getAttribute("aria-busy")==="true"}))}function u(){return Array.from(t.querySelectorAll("input,textarea,select")).filter((E)=>E instanceof e.HTMLInputElement||E instanceof e.HTMLTextAreaElement||E instanceof e.HTMLSelectElement).filter(s).map((E)=>({label:n(E).trim(),value:E.value}))}function c(E=t,R=!0){let H=a(E),pt=y(),gt=u();if(!R)return{text:H,buttons:pt,values:gt,truncated:!1};let Rt=new TextEncoder().encode(H);return{text:new TextDecoder().decode(Rt.slice(0,2048),{stream:!0}),buttons:pt.slice(0,50),values:gt.slice(0,50),truncated:Rt.length>2048||pt.length>50||gt.length>50}}function d(E,R){let H=Array.from(t.querySelectorAll(E)).filter((pt)=>pt instanceof e.HTMLElement).filter((pt)=>s(pt)&&n(pt).trim()===R);if(H.length!==1||!H[0])throw Error(`Expected one control named ${JSON.stringify(R)}, found ${H.length}`);return H[0]}function g(E){let R=Array.from(t.querySelectorAll(E)).filter(s),H=R[0];if(R.length!==1||!(H instanceof e.HTMLElement))throw Error(`Expected one visible element for ${E}, found ${R.length}`);return H}function f(E,R){let H=200,pt=(gt,Rt)=>{H--;let lt=[];if(Rt<R)for(let dt of gt.children){if(!H)break;lt.push(pt(dt,Rt+1))}return{tag:gt.tagName.toLowerCase(),role:gt.getAttribute("role"),class:gt.className,text:Array.from(gt.childNodes).filter((dt)=>dt.nodeType===3).map((dt)=>dt.textContent).join(" ").trim(),childCount:gt.children.length,children:lt}};return pt(E,0)}return{visible:s,isDisabled:l,snapshot:c,findByName:d,selectOne:g,outline:f,count:(E)=>t.querySelectorAll(E).length,anyVisible:(E)=>Array.from(t.querySelectorAll(E)).some(s)}}var ci=Symbol("abort"),Me=Symbol("activeElement"),Pt=Symbol("asyncTaskManager"),di=Symbol("bodyBuffer"),Nt=Symbol("buffer"),qo=Symbol("cachedResponse"),bi=Symbol("callbacks"),wn=Symbol("checked"),Ns=Symbol("childNodes"),ir=Symbol("children"),Aa=Symbol("classList"),Zr=Symbol("connectedToNode"),Bi=Symbol("disconnectedFromNode"),sr=Symbol("connectedToDocument"),nr=Symbol("disconnectedFromDocument"),xl=Symbol("contentLength"),xe=Symbol("contentType"),fr=Symbol("cssText"),Oo=Symbol("currentScript"),Go=Symbol("currentTarget"),Kt=Symbol("data"),Lr=Symbol("defaultView"),At=Symbol("destroy"),En=Symbol("dirtyness"),Y=Symbol("end"),ze=Symbol("entries"),oE=Symbol("evaluateCSS"),Uo=Symbol("evaluateScript"),to=Symbol("exceptionObserver"),Ut=Symbol("formNode"),xn=Symbol("internalId"),F=Symbol("height"),Ls=Symbol("immediatePropagationStopped"),vn=Symbol("indeterminate"),ks=Symbol("isFirstWrite"),Ms=Symbol("isFirstWriteAfterOpen"),wa=Symbol("isInPassiveEventListener"),eo=Symbol("isValue"),Is=Symbol("listenerOptions"),he=Symbol("listeners"),Wr=Symbol("itemsByName"),Rs=Symbol("nextActiveElement"),vl=Symbol("observeMutations"),ro=Symbol("mutationListeners"),x=Symbol("ownerDocument"),xt=Symbol("ownerElement"),Fs=Symbol("propagationStopped"),Eo=Symbol("readyStateManager"),Pr=Symbol("referrer"),gi=Symbol("registry"),oo=Symbol("relList"),Ea=Symbol("resetSelection"),ve=Symbol("rootNode"),Ie=Symbol("selectNode"),Ar=Symbol("selectedness"),Tn=Symbol("selection"),Tm=Symbol("setupVMContext"),be=Symbol("shadowRoot"),O=Symbol("start"),ge=Symbol("style"),wr=Symbol("target"),Je=Symbol("textAreaNode"),xa=Symbol("unobserveMutations"),Oi=Symbol("reportMutation"),Cn=Symbol("updateSelectedness"),Pe=Symbol("url"),q=Symbol("value"),V=Symbol("width"),m=Symbol("window"),vh=Symbol("windowResizeListener"),Nn=Symbol("mutationObservers"),io=Symbol("openerFrame"),Si=Symbol("openerWindow"),Cm=Symbol("pointerCaptures"),Ln=Symbol("popup"),tt=Symbol("isConnected"),W=Symbol("parentNode"),D=Symbol("nodeType"),z=Symbol("tagName"),Ft=Symbol("prefix"),Jd=Symbol("scrollHeight"),Zd=Symbol("scrollWidth"),Th=Symbol("scrollTop"),Ch=Symbol("scrollLeft"),St=Symbol("attributes"),va=Symbol("attributesProxy"),J=Symbol("namespaceURI"),Ta=Symbol("accessKey"),iE=Symbol("accessKeyLabel"),tb=Symbol("offsetHeight"),eb=Symbol("offsetWidth"),rb=Symbol("offsetLeft"),ob=Symbol("offsetTop"),ib=Symbol("clientHeight"),sb=Symbol("clientWidth"),nb=Symbol("clientLeft"),lb=Symbol("clientTop"),rt=Symbol("name"),Nm=Symbol("specified"),Vs=Symbol("adoptedStyleSheets"),Nh=Symbol("implementation"),kn=Symbol("readyState"),Ds=Symbol("publicId"),Bs=Symbol("systemId"),Ce=Symbol("validationMessage"),Ke=Symbol("validity"),Lh=Symbol("returnValue"),Gi=Symbol("elements"),sE=Symbol("length"),ab=Symbol("complete"),mb=Symbol("naturalHeight"),yb=Symbol("naturalWidth"),Bg=Symbol("loading"),k=Symbol("x"),M=Symbol("y"),nE=Symbol("defaultChecked"),$o=Symbol("files"),Be=Symbol("sheet"),kh=Symbol("volume"),Tl=Symbol("paused"),Mh=Symbol("currentTime"),Ih=Symbol("playbackRate"),Rh=Symbol("defaultPlaybackRate"),Ca=Symbol("muted"),Cl=Symbol("defaultMuted"),Fh=Symbol("preservesPitch"),pb=Symbol("buffered"),ub=Symbol("duration"),Qe=Symbol("error"),hb=Symbol("ended"),cb=Symbol("networkState"),Vh=Symbol("textTracks"),db=Symbol("seeking"),bb=Symbol("seekable"),gb=Symbol("played"),Ui=Symbol("options"),so=Symbol("content"),Ee=Symbol("mode"),Mn=Symbol("host"),_r=Symbol("setURL"),ot=Symbol("localName"),Na=Symbol("classRegistry"),Lm=Symbol("nodeStream"),no=Symbol("location"),Oe=Symbol("history"),Dh=Symbol("navigator"),Bh=Symbol("screen"),Oh=Symbol("sessionStorage"),Gh=Symbol("localStorage"),km=Symbol("sandbox"),ct=Symbol("cloneNode"),Et=Symbol("appendChild"),hr=Symbol("removeChild"),kr=Symbol("insertBefore"),La=Symbol("replaceChild"),fi=Symbol("tracks"),ka=Symbol("constraints"),Pi=Symbol("capabilities"),In=Symbol("settings"),lE=Symbol("clone"),Os=Symbol("removeNamedItem"),Q=Symbol("items"),Rn=Symbol("selectedOptions"),dr=Symbol("styleNode"),Vn=Symbol("updateSheet"),Mr=Symbol("clearCache"),Re=Symbol("onSetAttribute"),br=Symbol("onRemoveAttribute"),_=Symbol("nodeArray"),bt=Symbol("elementArray"),U=Symbol("cache"),He=Symbol("affectsCache"),Ma=Symbol("forms"),Xo=Symbol("affectsComputedStyleCache"),Nl=Symbol("query"),Ll=Symbol("computedStyle"),lo=Symbol("getFormControlItems"),Mm=Symbol("getFormControlNamedItem"),Uh=Symbol("dataset"),aE=Symbol("getNamespaceItemKey"),mE=Symbol("getNamedItemKey"),Ai=Symbol("itemsByNamespaceURI"),Vt=Symbol("proxy"),zo=Symbol("setNamedItem"),Er=Symbol("getTokenList"),Gs=Symbol("attributeName"),Ho=Symbol("selectedIndex"),On=Symbol("self"),ao=Symbol("parent"),Jo=Symbol("top"),Im=Symbol("areas"),mo=Symbol("defaultValue"),wi=Symbol("elementIdMap"),Gn=Symbol("clonable"),kl=Symbol("delegatesFocus"),Hi=Symbol("serializable"),Ei=Symbol("slotAssignment"),Wi=Symbol("assignedNodes"),Zo=Symbol("assignedToSlot"),Rm=Symbol("cells"),Fm=Symbol("rows"),Hh=Symbol("headers"),Vm=Symbol("tBodies"),Ia=Symbol("track"),Dm=Symbol("controlsList"),Wh=Symbol("mediaKeys"),Sb=Symbol("remote"),_h=Symbol("sinkId"),Yh=Symbol("srcObject"),Ml=Symbol("cues"),fb=Symbol("activeCues"),xo=Symbol("kind"),Us=Symbol("label"),Il=Symbol("language"),Bm=Symbol("id"),h=Symbol("illegalConstructor"),Pb=Symbol("state"),Om=Symbol("canvas"),Hn=Symbol("popoverTargetElement"),Gm=Symbol("composed"),Hs=Symbol("bubbles"),_i=Symbol("cancelable"),lr=Symbol("defaultPrevented"),xr=Symbol("eventPhase"),Ab=Symbol("timeStamp"),Qt=Symbol("type"),Um=Symbol("detail"),yE=Symbol("globalObject"),Hm=Symbol("destroyed"),Se=Symbol("aborted"),Wm=Symbol("browserFrames"),Kh=Symbol("windowInternalId"),K=Symbol("getItemList"),Yi=Symbol("requiredExtensions"),Ki=Symbol("systemLanguage"),_m=Symbol("transform"),se=Symbol("baseVal"),ne=Symbol("animVal"),Ym=Symbol("pathLength"),pE=Symbol("unitType"),Qi=Symbol("viewBox"),Km=Symbol("markerUnits"),Qm=Symbol("markerWidth"),jm=Symbol("markerHeight"),Ze=Symbol("values"),qm=Symbol("orientType"),$m=Symbol("orientAngle"),Xm=Symbol("refX"),zm=Symbol("refY"),j=Symbol("readOnly"),ar=Symbol("preserveAspectRatio"),ji=Symbol("animatedPoints"),qi=Symbol("points"),$i=Symbol("rx"),Xi=Symbol("ry"),yo=Symbol("cx"),po=Symbol("cy"),zi=Symbol("r"),Jm=Symbol("clipPathUnits"),Zm=Symbol("maskUnits"),ty=Symbol("maskContentUnits"),ey=Symbol("filterUnits"),ry=Symbol("primitiveUnits"),Lt=Symbol("href"),Ji=Symbol("x1"),Zi=Symbol("y1"),ts=Symbol("x2"),es=Symbol("y2"),oy=Symbol("gradientUnits"),iy=Symbol("gradientTransform"),sy=Symbol("spreadMethod"),ny=Symbol("patternUnits"),ly=Symbol("patternContentUnits"),ay=Symbol("patternTransform"),my=Symbol("fx"),yy=Symbol("fy"),rs=Symbol("offset"),_n=Symbol("disabled"),py=Symbol("textLength"),uy=Symbol("lengthAdjust"),v=Symbol("getAttribute"),A=Symbol("setAttribute"),Ir=Symbol("z"),Rl=Symbol("w"),hy=Symbol("toArray"),Fl=Symbol("fromString"),vo=Symbol("fromArray"),uE=Symbol("angle"),kt=Symbol("m11"),Dt=Symbol("m12"),zt=Symbol("m13"),Jt=Symbol("m14"),Mt=Symbol("m21"),Bt=Symbol("m22"),Zt=Symbol("m23"),te=Symbol("m24"),Wt=Symbol("m31"),jt=Symbol("m32"),qt=Symbol("m33"),_t=Symbol("m34"),It=Symbol("m41"),Ot=Symbol("m42"),$t=Symbol("m43"),Xt=Symbol("m44"),Ra=Symbol("setMatrixValue"),To=Symbol("translateSelf"),Ws=Symbol("rotateSelf"),_s=Symbol("rotateAxisAngleSelf"),os=Symbol("scaleSelf"),cy=Symbol("scale3dSelf"),dy=Symbol("scaleNonUniformSelf"),Vl=Symbol("skewXSelf"),Dl=Symbol("skewYSelf"),Co=Symbol("multiplySelf"),Ys=Symbol("matrix"),hE=Symbol("domMatrix"),Ne=Symbol("getDOMMatrix"),gr=Symbol("setDOMMatrix"),I=Symbol("attributeValue"),by=Symbol("startOffset"),Ks=Symbol("method"),gy=Symbol("spacing"),at=Symbol("in1"),uo=Symbol("in2"),Z=Symbol("result"),Sy=Symbol("bias"),fy=Symbol("divisor"),is=Symbol("edgeMode"),Py=Symbol("kernelMatrix"),ho=Symbol("kernelUnitLengthX"),co=Symbol("kernelUnitLengthY"),Ay=Symbol("orderX"),wy=Symbol("orderY"),Ey=Symbol("preserveAlpha"),xy=Symbol("targetX"),vy=Symbol("targetY"),Ty=Symbol("diffuseConstant"),ss=Symbol("surfaceScale"),Cy=Symbol("scale"),Ny=Symbol("xChannelSelector"),Ly=Symbol("yChannelSelector"),ky=Symbol("azimuth"),My=Symbol("elevation"),bo=Symbol("dx"),go=Symbol("dy"),ns=Symbol("stdDeviationX"),ls=Symbol("stdDeviationY"),Iy=Symbol("tableValues"),Ry=Symbol("slope"),Fy=Symbol("intercept"),Vy=Symbol("amplitude"),Dy=Symbol("exponent"),Og=Symbol("crossOrigin"),By=Symbol("operator"),Oy=Symbol("radiusX"),Gy=Symbol("radiusY"),Uy=Symbol("specularConstant"),as=Symbol("specularExponent"),Hy=Symbol("pointsAtX"),Wy=Symbol("pointsAtY"),_y=Symbol("pointsAtZ"),Yy=Symbol("limitingConeAngle"),Ky=Symbol("baseFrequencyX"),Qy=Symbol("baseFrequencyY"),jy=Symbol("numOctaves"),qy=Symbol("seed"),$y=Symbol("stitchTiles"),Xy=Symbol("rotateFromVectorSelf"),zy=Symbol("flipXSelf"),Jy=Symbol("flipYSelf"),Zy=Symbol("invertSelf"),wb=Symbol("getLength"),Qh=Symbol("currentScale"),tp=Symbol("rotate"),Eb=Symbol("bindMethods"),Yn=Symbol("xmlProcessingInstruction"),cE=Symbol("root"),Wo=Symbol("filterNode"),Qs=Symbol("customElementReactionStack"),Kn=Symbol("dispatching"),ms=Symbol("modules"),Rr=Symbol("preloads"),js=Symbol("body"),jh=Symbol("redirect"),Fa=Symbol("referrerPolicy"),qh=Symbol("signal"),xi=Symbol("bodyUsed"),$h=Symbol("credentials"),ep=Symbol("blocking"),Bl=Symbol("moduleImportMap"),le=Symbol("dispatchError"),Xh=Symbol("supports"),No=Symbol("reason"),p=Symbol("propertyEventListeners"),We=Symbol("cssRules"),qs=Symbol("parentRule"),Lo=Symbol("parentStyleSheet"),So=Symbol("conditionText"),ys=Symbol("keyText"),xb=Symbol("media"),rp=Symbol("styleMap"),Ol=Symbol("selectorText"),Gl=Symbol("cssParser"),$s=Symbol("cssRule"),Fr=Symbol("rulePrefix"),Yr=Symbol("virtualServerFile"),vb=Symbol("frames"),Xs=Symbol("disableEvaluation"),Tb=Symbol("validateJavaScriptExecutionEnvironment"),dE=Symbol("currentNode"),Qn=Symbol("openWebSockets"),vr=Symbol("webSocket"),Va=Symbol("moduleCache");var Cb;(function(t){t.strict="Strict",t.lax="Lax",t.none="None"})(Cb||(Cb={}));var zs=Cb;var zh={key:null,originURL:null,value:null,domain:"",path:"",expires:null,httpOnly:!1,secure:!1,sameSite:zs.lax};class op{static hasExpired(t){return t.expires&&t.expires.getTime()<Date.now()}}class Jh{static cookieMatchesURL(t,e){let o=e.hostname==="localhost"||e.hostname?.endsWith(".localhost");return(!t.secure||e.protocol==="https:"||o)&&(!t.domain||e.hostname?.endsWith(t.domain))&&(!t.path||e.pathname?.startsWith(t.path))&&(t.sameSite===zs.none&&t.secure||t.originURL?.hostname===e.hostname)}}class ip{#t=[];addCookies(t){let e=new Map,o=(s)=>`${s.key}-${s.originURL.hostname}-${s.path}-${typeof s.value}`;for(let s=0,n=this.#t.length;s<n;s++)e.set(o(this.#t[s]),s);for(let s of t){let n=Object.assign({},zh,s);if(n&&n.key&&n.originURL){let l=e.get(o(n));if(l!==void 0)this.#t.splice(l,1);if(!op.hasExpired(n))e.set(o(n),this.#t.length),this.#t.push(n)}}}getCookies(t=null,e=!1){let o=[];for(let s of this.#t)if(!op.hasExpired(s)&&(!e||!s.httpOnly)&&(!t||Jh.cookieMatchesURL(s,t)))o.push(s);return o}clearCookies(){this.#t=[]}}var Nb;(function(t){t.fresh="fresh",t.stale="stale"})(Nb||(Nb={}));var jn=Nb;var Lb;(function(t){t.invalidStateError="InvalidStateError",t.indexSizeError="IndexSizeError",t.syntaxError="SyntaxError",t.hierarchyRequestError="HierarchyRequestError",t.notSupportedError="NotSupportedError",t.wrongDocumentError="WrongDocumentError",t.invalidNodeTypeError="InvalidNodeTypeError",t.invalidCharacterError="InvalidCharacterError",t.notFoundError="NotFoundError",t.securityError="SecurityError",t.networkError="NetworkError",t.domException="DOMException",t.invalidAccessError="InvalidAccessError",t.unknownError="UnknownError",t.abortError="AbortError",t.timeoutError="TimeoutError",t.encodingError="EncodingError",t.uriMismatchError="URIMismatchError",t.inUseAttributeError="InUseAttributeError",t.namespaceError="NamespaceError"})(Lb||(Lb={}));var w=Lb;class re extends Error{constructor(t,e=null){super(t);this.name=e||w.domException}}class vi{[ze]={};constructor(t){if(t)if(t instanceof vi)this[ze]=JSON.parse(JSON.stringify(t[ze]));else if(Array.isArray(t))for(let e of t){if(e.length!==2)throw new re('Failed to construct "Headers": The provided init is not a valid array.',w.invalidStateError);this.append(e[0],e[1])}else for(let e of Object.keys(t))this.set(e,t[e])}append(t,e){let o=t.toLowerCase();if(this[ze][o])this[ze][o].value.push(e);else this[ze][o]={name:t,value:[e]}}delete(t){delete this[ze][t.toLowerCase()]}get(t){return this[ze][t.toLowerCase()]?.value.join(", ")??null}set(t,e){this[ze][t.toLowerCase()]={name:t,value:[e]}}getSetCookie(){let t=this[ze]["set-cookie"];if(!t)return[];return t.value}has(t){return!!this[ze][t.toLowerCase()]}forEach(t,e){let o=e??this[m];for(let s of Object.values(this[ze]))t.call(o,s.value.join(", "),s.name,this)}*keys(){for(let t of Object.values(this[ze]))yield t.name}*values(){for(let t of Object.values(this[ze]))yield t.value.join(", ")}*entries(){for(let t of Object.values(this[ze]))yield[t.name,t.value.join(", ")]}*[Symbol.iterator](){for(let t of Object.values(this[ze]))yield[t.name,t.value.join(", ")]}}import Da from"fs";import Ba from"path";import uf from"crypto";class Zh{#t=new Set;#e=new Set;#r;constructor(t){this.#r=t}async load(t){if(!t)throw Error("Failed to execute 'load' on 'ResponseCacheFileSystem': Directory is not specified.");let e=Ba.resolve(t),o=[];try{o=await Da.promises.readdir(e)}catch(l){return}let s=[],n=this.#r;for(let l of o)if(l.endsWith(".json"))s.push(Da.promises.readFile(Ba.join(e,l),"utf8").then((a)=>{let y=JSON.parse(a);if(y.response&&y.request&&!y.virtual)return y.response.headers=new vi(y.response.headers),y.request.headers=new vi(y.request.headers),Da.promises.readFile(Ba.join(e,l.split(".")[0]+".data")).then((u)=>{y.response.body=u;let c=n.get(y.response.url);if(!c)c=[],n.set(y.response.url,c);c.push(y)}).catch(()=>{let u=n.get(y.response.url);if(!u)u=[],n.set(y.response.url,u);u.push(y)})}).catch(()=>{}));await Promise.all(s)}async save(t){if(!t)throw Error("Failed to execute 'store' on 'ResponseCacheFileSystem': Directory is not specified.");if(!this.#r.size)return;let e=Ba.resolve(t);if(!this.#t.has(e)){this.#t.add(e);try{await Da.promises.mkdir(e,{recursive:!0})}catch(l){}}let s=this.#r,n=[];for(let l of s.values())for(let a of l)if(!a.virtual){let y={},u={};for(let[f,E]of a.response.headers.entries())y[f]=E;for(let[f,E]of a.request.headers.entries())u[f]=E;let c={...a,response:{...a.response,headers:y,body:null},request:{...a.request,headers:u}},d=JSON.stringify(c,null,3),g=uf.createHash("md5").update(d).digest("hex");if(!this.#e.has(g)){if(this.#e.add(g),n.push(Da.promises.writeFile(Ba.join(e,`${g}.json`),d)),a.response.body)n.push(Da.promises.writeFile(Ba.join(e,`${g}.data`),a.response.body))}}await Promise.all(n)}}var hf=["Cache-Control","Last-Modified","Vary","ETag"];class sp{fileSystem;#t=new Map;constructor(){this.fileSystem=new Zh(this.#t)}get(t){if(t.headers.get("Cache-Control")?.includes("no-cache"))return null;let e=t.url,o=this.#t.get(e);if(o)for(let s=0,n=o.length;s<n;s++){let l=o[s],a=l.request.method===t.method;if(a)for(let y of Object.keys(l.vary)){let u=t.headers.get(y);if(u!==null&&l.vary[y]!==u){a=!1;break}}if(a){if(l.expires&&l.expires<Date.now()){if(l.lastModified)l.state=jn.stale;else if(!l.etag)return o.splice(s,1),null}return l}}return null}add(t,e){if(t.method!=="GET"&&t.method!=="HEAD"||t.headers.get("Cache-Control")?.includes("no-cache"))return null;let o=t.url,s=this.get(t);if(e.status===304){if(!s)throw Error("ResponseCache: Cached response not found.");for(let n of hf)if(e.headers.has(n))s.response.headers.set(n,e.headers.get(n));s.cacheUpdateTime=Date.now(),s.state=jn.fresh}else{if(s){let l=this.#t.get(o);if(l){let a=l.indexOf(s);if(a!==-1)l.splice(a,1)}}s={response:{status:e.status,statusText:e.statusText,url:e.url,headers:new vi(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:!1,staleWhileRevalidate:!1,state:jn.fresh,virtual:e.virtual??!1};let n=this.#t.get(o);if(!n)n=[],this.#t.set(o,n);n.push(s)}if(e.headers.has("Cache-Control")){let n=e.headers.get("Age");for(let l of e.headers.get("Cache-Control").split(",")){let[a,y]=l.trim().split("=");switch(a){case"max-age":s.expires=Date.now()+parseFloat(y)*1000-(n?parseFloat(n)*1000:0);break;case"no-cache":case"no-store":let u=this.#t.get(o);if(u){let c=u.indexOf(s);if(c!==-1)u.splice(c,1)}return null;case"must-revalidate":s.mustRevalidate=!0;break;case"stale-while-revalidate":s.staleWhileRevalidate=!0;break}}}if(e.headers.has("Last-Modified"))s.lastModified=Date.parse(e.headers.get("Last-Modified"));if(e.headers.has("Vary"))for(let n of e.headers.get("Vary").split(",")){let l=n.trim(),a=t.headers.get(l);if(a)s.vary[l]=a}if(e.headers.has("ETag"))s.etag=e.headers.get("ETag");if(!s.expires){let n=e.headers.get("Expires");if(n)s.expires=Date.parse(n)}if(!s.etag&&(!s.expires||s.expires<Date.now())){let n=this.#t.get(o);if(n){let l=n.indexOf(s);if(l!==-1)n.splice(l,1)}return null}return s}clear(t){if(t){if(t.toTime)for(let e of t.url?[t.url]:this.#t.keys()){let o=this.#t.get(e);if(o){for(let s=0,n=o.length;s<n;s++)if(o[s].cacheUpdateTime<t.toTime)o.splice(s,1),s--,n--}}else if(t.url)this.#t.delete(t.url)}else this.#t.clear()}}var kb;(function(t){t[t.log=0]="log",t[t.info=1]="info",t[t.warn=2]="warn",t[t.error=3]="error"})(kb||(kb={}));var mr=kb;var Mb;(function(t){t[t.elementNode=1]="elementNode",t[t.attributeNode=2]="attributeNode",t[t.textNode=3]="textNode",t[t.cdataSectionNode=4]="cdataSectionNode",t[t.commentNode=8]="commentNode",t[t.documentNode=9]="documentNode",t[t.documentTypeNode=10]="documentTypeNode",t[t.documentFragmentNode=11]="documentFragmentNode",t[t.processingInstructionNode=7]="processingInstructionNode"})(Mb||(Mb={}));var T=Mb;var Ib;(function(t){t[t.none=0]="none",t[t.capturing=1]="capturing",t[t.atTarget=2]="atTarget",t[t.bubbling=3]="bubbling"})(Ib||(Ib={}));var ae=Ib;class N{static NONE=ae.none;static CAPTURING_PHASE=ae.capturing;static AT_TARGET=ae.atTarget;static BUBBLING_PHASE=ae.bubbling;NONE=N.NONE;CAPTURING_PHASE=N.CAPTURING_PHASE;AT_TARGET=N.AT_TARGET;BUBBLING_PHASE=N.BUBBLING_PHASE;[Gm]=!1;[Hs]=!1;[_i]=!1;[lr]=!1;[xr]=ae.none;[Ab]=performance.now();[Qt];[Kn]=!1;[Ls]=!1;[Fs]=!1;[wr]=null;[Go]=null;[wa]=!1;constructor(t,e=null){this[Qt]=t,this[Hs]=e?.bubbles??!1,this[_i]=e?.cancelable??!1,this[Gm]=e?.composed??!1}get composed(){return this[Gm]}get bubbles(){return this[Hs]}get cancelable(){return this[_i]}get defaultPrevented(){return this[lr]}get eventPhase(){return this[xr]}get timeStamp(){return this[Ab]}get type(){return this[Qt]}get target(){return this[wr]}get currentTarget(){return this[Go]}get cancelBubble(){return this[Fs]}composedPath(){if(!this[wr])return[];let t=[],e=this[wr];while(e)if(t.push(e),e.parentNode)e=e.parentNode;else if(this[Gm]&&e[D]===T.documentFragmentNode&&e.host)e=e.host;else if(e[D]===T.documentNode&&this[Qt]!=="load")e=e[m];else break;return t}initEvent(t,e=!1,o=!1){this[Qt]=t,this[Hs]=e,this[_i]=o,this[Fs]=!1,this[Ls]=!1,this[lr]=!1}preventDefault(){if(!this[wa]&&this.cancelable)this[lr]=!0}stopImmediatePropagation(){this[Ls]=!0}stopPropagation(){this[Fs]=!0}}var Rb;(function(t){t.log="log",t.table="table",t.trace="trace",t.dir="dir",t.dirxml="dirxml",t.group="group",t.groupCollapsed="groupCollapsed",t.debug="debug",t.timeLog="timeLog",t.info="info",t.count="count",t.timeEnd="timeEnd",t.warn="warn",t.countReset="countReset",t.error="error",t.assert="assert"})(Rb||(Rb={}));var Fe=Rb;class tc{static toString(t){if(this.isLogEntryCollapsed(t))return"";let e=this.getLogEntryGroupTabbing(t),o=e;for(let s of t.message)if(o+=o!==""&&o!==e?" ":"",typeof s==="object"&&(s===null||s.constructor.name==="Object"||Array.isArray(s)))try{o+=JSON.stringify(s)}catch(n){o+=Error("Failed to JSON stringify object in log entry.").stack.replace(/\n at/gm,`
4
4
  `+e+"at")}else if(typeof s==="object"&&s.message&&s.stack)o+=s.stack.replace(/\n at/gm,`
5
5
  `+e+"at");else o+=this.getLogEntryIcon(t)+String(s);return o+`
6
6
  `}static getLogEntryIcon(t){switch(t.type){case Fe.group:return"\u25BC ";case Fe.groupCollapsed:return"\u25B6 "}return""}static getLogEntryGroupTabbing(t){let e="",o=t.type===Fe.group||t.type===Fe.groupCollapsed?t.group?.parent:t.group;while(o)e+=" ",o=o.parent;return e}static isLogEntryCollapsed(t){let e=t.type===Fe.group||t.type===Fe.groupCollapsed?t.group?.parent:t.group;while(e){if(e.collapsed)return!0;e=e.parent}return!1}}class Oa{#t=[];#e={print:[],clear:[]};#r=!1;get closed(){return this.#r}print(t){if(this.#r)return;this.#t.push(t),this.dispatchEvent(new N("print"))}clear(){if(this.#r)return;this.#t=[],this.dispatchEvent(new N("clear"))}close(){if(this.#r)return;this.#t=[],this.#e={print:[],clear:[]},this.#r=!0}addEventListener(t,e){if(this.#r)return;if(!this.#e[t])throw Error(`Event type "${t}" is not supported.`);this.#e[t].push(e)}removeEventListener(t,e){if(this.#r)return;if(!this.#e[t])throw Error(`Event type "${t}" is not supported.`);let o=this.#e[t].indexOf(e);if(o!==-1)this.#e[t].splice(o,1)}dispatchEvent(t){if(this.#r)return;switch(t.type){case"print":case"clear":for(let e of this.#e[t.type])e(t);break;default:throw Error(`Event type "${t.type}" is not supported.`)}}read(){let t=this.#t;return this.#t=[],t}readAsString(t=mr.log){let e=this.read(),o="";for(let s of e)if(s.level>=t)o+=tc.toString(s);return o}}class Ga extends Error{constructor(t){super(t);this.name="AsyncTaskManagerDebugError"}}var ko={setTimeout:globalThis.setTimeout.bind(globalThis),clearTimeout:globalThis.clearTimeout.bind(globalThis),clearImmediate:globalThis.clearImmediate.bind(globalThis)};class Js{static taskID=0;runningTasks={};runningTaskCount=0;runningTimers=[];runningImmediates=[];debugTrace=new Map;waitUntilCompleteTimer=null;waitUntilCompleteResolvers=[];destroyed=!1;#t=null;#e;constructor(t){this.#e=t}waitUntilComplete(){return new Promise((t,e)=>{this.waitUntilCompleteResolvers.push({resolve:t,reject:e}),this.resolveWhenComplete()})}abort(){if(this.destroyed)return new Promise((t,e)=>{this.waitUntilCompleteResolvers.push({resolve:t,reject:e}),this.resolveWhenComplete()});return this.abortAll(!1)}destroy(){if(this.destroyed)return new Promise((t,e)=>{this.waitUntilCompleteResolvers.push({resolve:t,reject:e}),this.resolveWhenComplete()});return this.abortAll(!0)}startTimer(t){if(this.destroyed){ko.clearTimeout(t);return}if(this.waitUntilCompleteTimer)ko.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null;if(this.runningTimers.push(t),this.#e.page.context.browser.settings.debug.traceWaitUntilComplete>0)this.debugTrace.set(t,new Ga().stack)}endTimer(t){if(this.destroyed){ko.clearTimeout(t);return}let e=this.runningTimers.indexOf(t);if(e!==-1)this.runningTimers.splice(e,1),this.resolveWhenComplete();if(this.#e.page.context.browser.settings.debug.traceWaitUntilComplete>0)this.debugTrace.delete(t)}startImmediate(t){if(this.destroyed){ko.clearImmediate(t);return}if(this.waitUntilCompleteTimer)ko.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null;if(this.runningImmediates.push(t),this.#e.page?.context?.browser?.settings?.debug?.traceWaitUntilComplete>0)this.debugTrace.set(t,new Ga().stack)}endImmediate(t){if(this.destroyed){ko.clearImmediate(t);return}let e=this.runningImmediates.indexOf(t);if(e!==-1)this.runningImmediates.splice(e,1),this.resolveWhenComplete();if(this.#e.page.context.browser.settings.debug.traceWaitUntilComplete>0)this.debugTrace.delete(t)}startTask(t){if(this.destroyed){if(t)t(this.destroyed);throw 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.")}if(this.waitUntilCompleteTimer)ko.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null;let e=this.newTaskID();if(this.runningTasks[e]=t?t:()=>{},this.runningTaskCount++,this.#e.page.context.browser.settings.debug.traceWaitUntilComplete>0)this.debugTrace.set(e,new Ga().stack);return e}endTask(t){if(this.destroyed)return;if(this.runningTasks[t])delete this.runningTasks[t],this.runningTaskCount--,this.resolveWhenComplete();if(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(){if(this.applyDebugging(),this.runningTaskCount||this.runningTimers.length||this.runningImmediates.length)return;if(this.waitUntilCompleteTimer)ko.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null;this.waitUntilCompleteTimer=ko.setTimeout(()=>{if(this.waitUntilCompleteTimer=null,!this.runningTaskCount&&!this.runningTimers.length&&!this.runningImmediates.length){if(this.#t)ko.clearTimeout(this.#t);let t=this.waitUntilCompleteResolvers;this.waitUntilCompleteResolvers=[];for(let e of t)e.resolve();this.destroyed=!1}else this.applyDebugging()},1)}applyDebugging(){let t=this.#e.page.context.browser.settings.debug;if(!t?.traceWaitUntilComplete||t.traceWaitUntilComplete<1)return;if(this.#t)return;this.#t=ko.setTimeout(()=>{this.#t=null;let e=`The maximum time was reached for "waitUntilComplete()".
@@ -87,8 +87,8 @@ gl5OpEjeliU7Mus0BVS858g=
87
87
  `);class Br{reject=null;resolve=null;listeners={onSignalAbort:this.onSignalAbort.bind(this)};isChunkedTransfer=!1;isProperLastChunkReceived=!1;previousChunk=null;nodeRequest=null;nodeResponse=null;response=null;responseHeaders=null;interceptor;requestHeaders;request;redirectCount=0;disableCache;disableSameOriginPolicy;disablePreload;#t;#e;#r=null;constructor(t){if(this.#t=t.browserFrame,this.#e=t.window,this.#r=t.unfilteredHeaders??null,this.request=typeof t.url==="string"||t.url instanceof yc?new t.window.Request(t.url,t.init):t.url,t.contentType)this.request[xe]=t.contentType;this.redirectCount=t.redirectCount??0,this.disableCache=t.disableCache??!1,this.disableSameOriginPolicy=t.disableSameOriginPolicy??this.#t.page.context.browser.settings.fetch.disableSameOriginPolicy??!1,this.interceptor=this.#t.page.context.browser.settings.fetch.interceptor,this.requestHeaders=this.#t.page.context.browser.settings.fetch.requestHeaders,this.disablePreload=t.disablePreload??!1}async send(){if(!(this.request instanceof Ni)||!(this.request[Pe]instanceof yc))throw new this.#e.DOMException("Unknown request object. Request object must be an instance of Request.",w.invalidStateError);if(ds.prepareRequest(new yc(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[o,s]of Object.entries(e.headers))this.request.headers.set(o,s)}if(this.interceptor?.beforeAsyncRequest){let e=this.#t[Pt].startTask(),o=await this.interceptor.beforeAsyncRequest({request:this.request,window:this.#e});if(this.#t[Pt].endTask(e),o instanceof Ro)return o}if(ri.validateSchema(this.request),this.request.signal[Se]){if(this.request.signal[No]!==void 0)throw this.request.signal[No];throw new this.#e.DOMException("signal is aborted without reason",w.abortError)}if(this.request[Pe].protocol==="data:"){let e=Ya.parse(this.request.url);this.response=new this.#e.Response(e.buffer,{headers:{"Content-Type":e.type}});let o=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:this.#e,response:this.response,request:this.request}):void 0;return o instanceof Ro?o:this.response}if(this.request[Pe].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.`,w.securityError);if(!this.disableCache){let e=await this.getCachedResponse();if(e)return e}if(!this.disablePreload){let e=on.getKey({url:this.request.url,destination:"fetch",mode:this.request.mode,credentialsMode:this.request.credentials}),o=this.#e.document[Rr].get(e);if(o){if(this.#e.document[Rr].delete(e),o.response)return o.response;let s=this.#t[Pt].startTask(),n=await o.onResponseAvailable();return this.#t[Pt].endTask(s),n}}let t=await this.getVirtualServerResponse();if(t)return t;if(!this.disableSameOriginPolicy){if(!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}".`,w.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===jn.stale){let o=new this.#e.Headers(t.request.headers);if(t.etag)o.set("If-None-Match",t.etag);else{if(!t.lastModified)return null;o.set("If-Modified-Since",new Date(t.lastModified).toUTCString())}let s=new Br({browserFrame:this.#t,window:this.#e,url:this.request.url,init:{headers:o,method:t.request.method},disableCache:!0,disableSameOriginPolicy:!0});if(t.etag||!t.staleWhileRevalidate){let n=await s.send(),l=n.status!==304?await n.buffer():null;if(t=this.#t.page.context.responseCache.add(this.request,{...n,body:l,waitingForBody:!1}),n.status!==304){let a=new this.#e.Response(l,{status:n.status,statusText:n.statusText,headers:n.headers});return a.url=n.url,a[qo]=t,a}}else s.send().then((n)=>{n.buffer().then((l)=>{this.#t.page.context.responseCache.add(this.request,{...n,body:l,waitingForBody:!1})})})}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[qo]=t,e}async getVirtualServerResponse(){let t=gs.getFilepath(this.#e,this.request.url);if(!t)return null;let e=this.#t[Pt].startTask();if(this.request.method!=="GET"){this.#t.page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let u=gs.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[Pt].endTask(e),c instanceof Ro?c:u}let o;try{t=(await rS.promises.stat(t)).isDirectory()?MP.join(t,"index.html"):t,o=await rS.promises.readFile(t)}catch(u){this.#t.page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let c=gs.getNotFoundResponse(this.#e),d=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:this.#e,response:await c,request:this.request}):void 0;return this.#t[Pt].endTask(e),d instanceof Ro?d:c}let s=new this.#e.ReadableStream({start:(u)=>{this.#e.queueMicrotask(()=>{u.enqueue(o),u.close()})}}),n=new this.#e.Response(s);n[Nt]=o,n[Yr]=t,n.url=this.request.url;let l=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:this.#e,response:await n,request:this.request}):void 0;this.#t[Pt].endTask(e);let a=l instanceof Ro?l:n,y={...a,body:o,waitingForBody:!1,virtual:!0};return n[qo]=this.#t.page.context.responseCache.add(this.request,y),a}async compliesWithCrossOriginPolicy(){if(this.disableSameOriginPolicy||!ti.isCORS(this.#e.location.href,this.request[Pe]))return!0;let t=this.#t.page.context.preflightResponseCache.get(this.request);if(t){if(t.allowOrigin!=="*"&&t.allowOrigin!==this.#e.location.origin)return!1;if(t.allowMethods.length!==0&&!t.allowMethods.includes(this.request.method))return!1;return!0}let e=[];for(let[y]of this.request.headers)e.push(y.toLowerCase());let o=new this.#e.Headers({"Access-Control-Request-Method":this.request.method,Origin:this.#e.location.origin});if(e.length>0)o.set("Access-Control-Request-Headers",e.slice().sort().join(","));let n=await new Br({browserFrame:this.#t,window:this.#e,url:this.request.url,init:{method:"OPTIONS"},disableCache:!0,disableSameOriginPolicy:!0,unfilteredHeaders:o}).send();if(!n.ok)return!1;let l=n.headers.get("Access-Control-Allow-Origin");if(!l)return!1;if(l!=="*"&&l!==this.#e.location.origin)return!1;let a=[];if(n.headers.has("Access-Control-Allow-Methods")){let y=n.headers.get("Access-Control-Allow-Methods");if(y!=="*")for(let u of y.split(","))a.push(u.trim().toUpperCase())}if(a.length!==0&&!a.includes(this.request.method))return!1;return!0}sendRequest(){return new Promise((t,e)=>{let o=this.#t[Pt].startTask(()=>this.onAsyncTaskManagerAbort());if(this.resolve)throw new this.#e.Error("Fetch already sent.");this.resolve=async(n)=>{if(!this.disableCache&&n instanceof Ro&&this.#t.page&&this.#t.page.context)n[qo]=this.#t.page.context.responseCache.add(this.request,{...n,headers:this.responseHeaders,body:n[Nt],waitingForBody:!n[Nt]&&!!n.body});let l=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:this.#e,response:await n,request:this.request}):void 0;this.#t[Pt].endTask(o);let a=l instanceof Ro?l:n;if(a instanceof Ro&&!a.ok)this.#t.page.console.error(`${this.request.method} ${this.request.url} ${a.status} (${a.statusText})`);t(a)},this.reject=(n)=>{this.#t[Pt].endTask(o),e(n)},this.request.signal.addEventListener("abort",this.listeners.onSignalAbort);let s=(this.request[Pe].protocol==="https:"?kP:LP).request;if(this.nodeRequest=s(this.request[Pe].href,{method:this.request.method,headers:bs.getRequestHeaders({browserFrame:this.#t,window:this.#e,request:this.request,baseHeaders:this.#r}),agent:!1,rejectUnauthorized:!this.#t.page.context.browser.settings.fetch.disableStrictSSL,key:this.request[Pe].protocol==="https:"?Qa.key:void 0,cert:this.request[Pe].protocol==="https:"?Qa.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();else sn.pipeline(this.request.body,this.nodeRequest,(n)=>{if(n)this.onError(n)})})}onSocket(t){let e=()=>{if(this.isChunkedTransfer&&!this.isProperLastChunkReceived){let s=new this.#e.DOMException("Premature close.",w.networkError);if(this.request[Qe]=s,this.response){if(this.response[Qe]=s,this.response.body&&!this.response.body.locked)this.response.body.cancel(s)}}},o=(s)=>{if(this.isProperLastChunkReceived=pc.compare(s.slice(-5),Ub)===0,!this.isProperLastChunkReceived&&this.previousChunk)this.isProperLastChunkReceived=pc.compare(this.previousChunk.slice(-3),Ub.slice(0,3))===0&&pc.compare(s.slice(-2),Ub.slice(3))===0;this.previousChunk=s};t.prependListener("close",e),t.on("data",o),this.nodeRequest.on("close",()=>{t.removeListener("close",e),t.removeListener("data",o)})}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}`,w.networkError))}onAsyncTaskManagerAbort(){let t=new this.#e.DOMException("The operation was aborted.",w.abortError);if(this.request[Se]=!0,this.request[Qe]=t,this.response)this.response[Se]=!0,this.response[Qe]=t;if(this.listeners.onSignalAbort)this.request.signal.removeEventListener("abort",this.listeners.onSignalAbort);if(this.nodeRequest&&!this.nodeRequest.destroyed)this.nodeRequest.destroy(t);if(this.nodeResponse&&!this.nodeResponse.destroyed)this.nodeResponse.destroy(t);if(this.response&&this.response.body){if(!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=Ka.parseResponseHeaders({browserFrame:this.#t,requestURL:this.request[Pe],rawHeaders:t.rawHeaders}),this.handleRedirectResponse(t,this.responseHeaders))return;t.once("end",()=>this.request.signal.removeEventListener("abort",this.listeners.onSignalAbort));let e=sn.pipeline(t,new sn.PassThrough,(n)=>{}),o={status:t.statusCode,statusText:t.statusMessage,headers:this.responseHeaders},s=this.responseHeaders.get("Content-Encoding");if(this.request.method==="HEAD"||s===null||t.statusCode===204||t.statusCode===304){this.response=new this.#e.Response(tr.nodeToWebStream(e),o),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response);return}if(s==="gzip"||s==="x-gzip"){let n={flush:qa.constants.Z_SYNC_FLUSH,finishFlush:qa.constants.Z_SYNC_FLUSH};e=sn.pipeline(e,qa.createGunzip(n),(l)=>{}),this.response=new this.#e.Response(tr.nodeToWebStream(e),o),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response);return}if(s==="deflate"||s==="x-deflate"){let n=sn.pipeline(t,new sn.PassThrough,(l)=>{});n.on("data",(l)=>{if((l[0]&15)===8)e=sn.pipeline(e,qa.createInflate(),(a)=>{});else e=sn.pipeline(e,qa.createInflateRaw(),(a)=>{});this.response=new this.#e.Response(tr.nodeToWebStream(e),o),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response)}),n.on("end",()=>{if(!this.response)this.response=new this.#e.Response(tr.nodeToWebStream(e),o),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response)});return}if(s==="br"){e=sn.pipeline(e,qa.createBrotliDecompress(),(n)=>{}),this.response=new this.#e.Response(tr.nodeToWebStream(e),o),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response);return}this.response=new this.#e.Response(tr.nodeToWebStream(e),o),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response)}handleRedirectResponse(t,e){if(!tl.isRedirect(t.statusCode))return!1;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}`,w.abortError)),!0;case"manual":return!1;case"follow":let o=e.get("Location"),s=t.statusCode===303||(t.statusCode===301||t.statusCode===302)&&this.request.method==="POST",n=null;if(o!==null)try{n=new yc(o,this.request.url)}catch{return this.finalizeRequest(),this.reject(new this.#e.DOMException(`URI requested responds with an invalid redirect URL: ${o}`,w.uriMismatchError)),!0}if(n===null)return!1;if(tl.isMaxRedirectsReached(this.redirectCount))return this.finalizeRequest(),this.reject(new this.#e.DOMException(`Maximum redirects reached at: ${this.request.url}`,w.networkError)),!0;let l=new this.#e.Headers(this.request.headers),a={method:this.request.method,signal:this.request.signal,referrer:this.request.referrer,referrerPolicy:this.request.referrerPolicy,credentials:this.request.credentials,headers:l,body:this.request[di]};if(this.request.credentials==="omit"||this.request.credentials==="same-origin"&&ti.isCORS(this.#e.location.href,n))l.delete("cookie"),l.delete("cookie2");if(this.request.signal[Se])return this.abort(this.request.signal[No]),!0;if(s)a.method="GET",a.body=void 0,l.delete("Content-Length"),l.delete("Content-Type");let y=ds.getReferrerPolicyFromHeader(l);if(y)a.referrerPolicy=y;let u=new Br({browserFrame:this.#t,window:this.#e,url:n,init:a,redirectCount:this.redirectCount+1,disableSameOriginPolicy:this.disableSameOriginPolicy,contentType:!s?this.request[xe]:null});return this.finalizeRequest(),u.send().then((c)=>this.resolve(c)).catch((c)=>this.reject(c)),!0;default:return this.finalizeRequest(),this.reject(new this.#e.DOMException(`Redirect option '${this.request.redirect}' is not a valid value of TRequestRedirect`)),!0}}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():""),w.abortError);if(this.request[Se]=!0,this.request[Qe]=e,this.response)this.response[Se]=!0,this.response[Qe]=e;if(this.nodeRequest&&!this.nodeRequest.destroyed)this.nodeRequest.destroy(e);if(this.nodeResponse&&!this.nodeResponse.destroyed)this.nodeResponse.destroy(e);if(this.response&&this.response.body){if(!this.response.body.locked)this.response.body.cancel(e)}if(this.reject)this.reject(t!==void 0?t:e)}}var Hb;(function(t){t.auto="auto",t.manual="manual"})(Hb||(Hb={}));var ii=Hb;import{URL as Wb}from"url";class Fo{static getRelativeURL(t,e){if(e=e?String(e):"about:blank",e.startsWith("about:")||e.startsWith("javascript:"))return new Wb(e);try{return new Wb(e,t.window[no].href)}catch(o){return new Wb("about:blank")}}}class $a{#t;#e;constructor(t,e){if(!t)throw TypeError("Illegal constructor");this.#t=t,this.#e=e}get length(){return this.#t?.[Oe].items.length||0}get state(){return this.#t?.[Oe].currentItem.state||null}get scrollRestoration(){return this.#t?.[Oe].currentItem.scrollRestoration||ii.auto}set scrollRestoration(t){switch(t){case ii.auto:case ii.manual:let e=this.#t?.[Oe].currentItem;if(e)e.scrollRestoration=t;break}}back(){if(!this.#e.closed)this.#t?.goBack()}forward(){if(!this.#e.closed)this.#t?.goForward()}go(t){if(!this.#e.closed)this.#t?.goSteps(t)}pushState(t,e,o){if(!this.#t||this.#e.closed)return;let s=this.#t?.[Oe];if(!s)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 n=this.#e[no],l=o?Fo.getRelativeURL(this.#t,o):n;if(o&&l.origin!==n.origin)throw new this.#e.DOMException(`Failed to execute 'pushState' on 'History': A history state object with URL '${o.toString()}' cannot be created in a document with origin '${n.origin}' and URL '${n.href}'.`,w.securityError);s.currentItem.popState=!0,s.push({title:this.#e.document.title,href:l.href,state:t,popState:!0,scrollRestoration:s.currentItem.scrollRestoration,method:s.currentItem.method||"GET",formData:s.currentItem.formData||null}),n[_r](this.#t,s.currentItem.href)}replaceState(t,e,o){if(!this.#t||this.#e.closed)return;let s=this.#t?.[Oe];if(!s)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 n=this.#e[no],l=o?Fo.getRelativeURL(this.#t,o):n;if(o&&l.origin!==n.origin)throw new this.#e.DOMException(`Failed to execute 'pushState' on 'History': A history state object with URL '${o.toString()}' cannot be created in a document with origin '${n.origin}' and URL '${n.href}'.`,w.securityError);if(s.replace({title:this.#e.document.title,href:l.href,state:t,popState:s.currentItem.popState,scrollRestoration:s.currentItem.scrollRestoration,method:s.currentItem.method,formData:s.currentItem.formData}),o)n[_r](this.#t,s.currentItem.href)}[At](){this.#t=null}}class Tp{#t;#e;constructor(t,e){this.#t=t,this.#e=e||{}}observe(t){}disconnect(){}unobserve(t){}takeRecords(){return[]}}class Cp{boundingClientRect=null;intersectionRatio=0;intersectionRect=null;isIntersecting=!1;rootBounds=null;target=null;time=0;constructor(t){Object.assign(this,t)}}class Xa{[Symbol.toStringTag]="Location";#t;#e;#r=null;#o=[];constructor(t,e){if(!t)throw TypeError("Illegal constructor");this.#t=t,this.#e=new URL(e)}get hash(){return this.#e.hash}set hash(t){let e=this.#t?.[Oe];if(!e||!this.#t)return;let o=new URL(this.#e.href),s=this.#e.hash;if(o.hash=t,o.hash!==s)e.currentItem.popState=!0,e.push({title:"",href:o.href,state:e.currentItem.state,popState:!0,scrollRestoration:ii.manual,method:e.currentItem.method,formData:e.currentItem.formData||null}),this[_r](this.#t,o.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){if(!this.#t)return;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(){if(!this.#t)return;this.#t.goto(this.href).catch((t)=>{if(this.#t?.page.console)this.#t.page.console.error(t);else throw t})}[_r](t,e){if(!this.#t)return;if(this.#t!==t)throw Error("Failed to set URL. Browser frame mismatch.");let o=this.#e.href,s=this.#e.hash;if(this.#e.href=e,this.#e.hash!==s){let n=this.#e.href;if(this.#o.push(new Jl("hashchange",{oldURL:o,newURL:n})),this.#t?.window?.document?.[Mr](),this.#r)this.#t.window?.clearTimeout(this.#r);this.#r=this.#t.window?.setTimeout(()=>{let l=this.#o;this.#o=[];for(let a of l)this.#t?.window?.dispatchEvent(a)})}}[At](){if(this.#r)this.#t?.window?.clearTimeout(this.#r);this.#t=null}toString(){return this.#e.toString()}}class Vo{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}}class za{description;enabledPlugin;suffixes;type;constructor(t,e,o,s){this.description=t,this.enabledPlugin=e,this.suffixes=o,this.type=s}toString(){return"[object MimeType]"}}class Ja{length;constructor(t){for(let e=0,o=t.length;e<o;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]"}}class Np{length=0;description;filename;name;constructor(t,e,o,s){this.description=e,this.filename=o,this.name=s;for(let n=0,l=t.length;n<l;n++)this[n]=t[n],this[t[n].type]=t[n];this.length=t.length}item(t){return this[t]||null}namedItem(t){return this[t]||null}toString(){return"[object Plugin]"}}class Za{length;constructor(t){for(let e=0,o=t.length;e<o;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]"}}var _b;(function(t){t.geolocation="geolocation",t.notifications="notifications",t.push="push",t.midi="midi",t.camera="camera",t.microphone="microphone",t.backgroundFetch="background-fetch",t.backgroundSync="background-sync",t.persistentStorage="persistent-storage",t.ambientLightSensor="ambient-light-sensor",t.accelerometer="accelerometer",t.gyroscope="gyroscope",t.magnetometer="magnetometer",t.screenWakeLock="screen-wake-lock",t.nfc="nfc",t.displayCapture="display-capture",t.accessibilityEvents="accessibility-events",t.clipboardRead="clipboard-read",t.clipboardWrite="clipboard-write",t.paymentHandler="payment-handler",t.idleDetection="idle-detection",t.periodicBackgroundSync="periodic-background-sync",t.systemWakeLock="system-wake-lock",t.storageAccess="storage-access",t.windowManagement="window-management",t.windowPlacement="window-placement",t.localFonts="local-fonts",t.topLevelStorageAccess="top-level-storage-access"})(_b||(_b={}));var oS=_b;class oa{#t={};#e;constructor(t){if(!t?.document)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(oS).includes(e))throw 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]}}class Lp{#t;#e;#r;constructor(t){if(!t)throw TypeError("Invalid constructor");this.#t=t,this.#e=new Ul(t),this.#r=new oa(t)}get cookieEnabled(){return!0}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 it(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("("),o=t.indexOf(")");return e>-1&&o>-1?t.substring(e+1,o):""}get product(){return"Gecko"}get productSub(){return"20100101"}get vendor(){return""}get vendorSub(){return""}get userAgent(){return new it(this.#t).getSettings()?.navigator.userAgent||""}get onLine(){return!0}get permissions(){return this.#r}get clipboard(){return this.#e}get webdriver(){return!0}get doNotTrack(){return"unspecified"}get mimeTypes(){return new Ja([])}get plugins(){return new Za([])}sendBeacon(t,e){return this.#t.fetch(t,{method:"POST",body:e}),!0}toString(){return"[object Navigator]"}}var Yb;(function(t){t[t.disconnect=1]="disconnect",t[t.preceding=2]="preceding",t[t.following=4]="following",t[t.contains=8]="contains",t[t.containedBy=16]="containedBy",t[t.implementationSpecific=32]="implementationSpecific"})(Yb||(Yb={}));var Ko=Yb;class ft{static isTextNode(t){return t?.[D]===T.textNode}static isInclusiveAncestor(t,e,o=!1){if(t===null||e===null)return!1;if(t===e)return!0;if(!t[_].length)return!1;if(o&&e[tt]!==t[tt])return!1;if(o&&t===e[x]&&e[tt])return!0;let s=e[W];while(s){if(t===s)return!0;if(t[W]===s[W])return!1;s=s[W]?s[W]:o&&s.host?s.host:null}return!1}static isFollowing(t,e){if(t===e)return!1;let o=e;while(o)if(o=this.following(o),o===t)return!0;return!1}static getNodeLength(t){switch(t[D]){case T.documentTypeNode:return 0;case T.textNode:case T.processingInstructionNode:case T.commentNode:return t.data.length;default:return t[_].length}}static following(t,e){let o=t.firstChild;if(o)return o;let s=t;while(s){if(s===e)return null;let n=s.nextSibling;if(n)return n;s=s[W]}return null}static nextDescendantNode(t){while(t&&!t.nextSibling)t=t[W];if(!t)return null;return t.nextSibling}static attributeListsEqual(t,e){let o=Array.from(t[St][Q].values()),s=Array.from(e[St][Q].values());for(let n of o){let l=!1;for(let a of s)if(n[J]===a[J]&&n.localName===a.localName&&n[q]===a[q]){l=!0;break}if(!l)return!1}return!0}static isEqualNode(t,e){if(t[D]!==e[D])return!1;switch(t[D]){case T.documentTypeNode:let o=t,s=e;if(o.name!==s.name||o.publicId!==s.publicId||o.systemId!==s.systemId)return!1;break;case T.elementNode:let n=t,l=e;if(n[J]!==l[J]||n[Ft]!==l[Ft]||n[ot]!==l[ot]||n[St][Q].size!==l[St][Q].size)return!1;break;case T.attributeNode:let a=t,y=e;if(a[J]!==y[J]||a.localName!==y.localName||a[q]!==y[q])return!1;break;case T.processingInstructionNode:let u=t,c=e;if(u.target!==c.target||u.data!==c.data)return!1;break;case T.textNode:case T.commentNode:let d=t,g=e;if(d.data!==g.data)return!1;break}if(t[D]===T.elementNode&&!ft.attributeListsEqual(t,e))return!1;if(t[_].length!==e[_].length)return!1;for(let o=0;o<t[_].length;o++){let s=t[_][o],n=e[_][o];if(!ft.isEqualNode(s,n))return!1}return!0}}var Kb;(function(t){t.attributes="attributes",t.characterData="characterData",t.childList="childList"})(Kb||(Kb={}));var si=Kb;class Ve{static ownerDocuments=[];static createNode(t,e,...o){if(!e.prototype[m])this.ownerDocuments.push(t);return new e(...o)}static pullOwnerDocument(){return this.ownerDocuments.pop()||null}}class st extends vt{static ELEMENT_NODE=T.elementNode;static ATTRIBUTE_NODE=T.attributeNode;static TEXT_NODE=T.textNode;static CDATA_SECTION_NODE=T.cdataSectionNode;static COMMENT_NODE=T.commentNode;static DOCUMENT_NODE=T.documentNode;static DOCUMENT_TYPE_NODE=T.documentTypeNode;static DOCUMENT_FRAGMENT_NODE=T.documentFragmentNode;static PROCESSING_INSTRUCTION_NODE=T.processingInstructionNode;static DOCUMENT_POSITION_CONTAINED_BY=Ko.containedBy;static DOCUMENT_POSITION_CONTAINS=Ko.contains;static DOCUMENT_POSITION_DISCONNECTED=Ko.disconnect;static DOCUMENT_POSITION_FOLLOWING=Ko.following;static DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=Ko.implementationSpecific;static DOCUMENT_POSITION_PRECEDING=Ko.preceding;[tt]=!1;[W]=null;[ve]=null;[dr]=null;[Je]=null;[Ut]=null;[Ie]=null;[ro]=[];[_]=[];[bt]=[];[Ns]=null;[Zo]=null;[U]={querySelector:new Map,querySelectorAll:new Map,matches:new Map,elementsByTagName:new Map,elementsByTagNameNS:new Map,elementByTagName:new Map,elementById:new Map,computedStyle:null};[He]=[];constructor(){super();if(this[m])this[x]=this[m].document;else{let t=Ve.pullOwnerDocument();if(!t)throw TypeError("Illegal constructor");this[x]=t,this[m]=t[m]}}get[Symbol.toStringTag](){return this.constructor.name}get isConnected(){return this[tt]}get ownerDocument(){return this[x]}get parentNode(){return this[W]}get nodeType(){return this[D]}get childNodes(){if(!this[Ns])this[Ns]=new Yo(h,this[_]);return this[Ns]}get textContent(){return""}set textContent(t){}get nodeValue(){return null}set nodeValue(t){}get nodeName(){return""}get previousSibling(){if(this[W]){let t=this[W][_],e=t.indexOf(this[Vt]||this);if(e>0)return t[e-1]}return null}get nextSibling(){if(this[W]){let t=this[W][_],e=t.indexOf(this[Vt]||this);if(e>-1&&e+1<t.length)return t[e+1]}return null}get firstChild(){let t=this[_];if(t.length>0)return t[0];return null}get lastChild(){let t=this[_];if(t.length>0)return t[t.length-1];return null}get parentElement(){let t=this[W];while(t&&t[D]!==T.elementNode)t=t[W];return t}get baseURI(){let t=this[x].querySelector("base");if(t)return t.href;return this[m].location.href}hasChildNodes(){return this[_].length>0}contains(t){if(t===void 0)return!1;let e=this[Vt]||this;return ft.isInclusiveAncestor(e,t)}getRootNode(t){if(this[tt]){if(this[ve]&&!t?.composed)return this[ve];return this[x]}let e=this;while(e[W])e=e[W];return e}cloneNode(t=!1){return this[ct](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[Et](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[hr](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[kr](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[La](t,e)}[ct](t=!1){let e=Ve.createNode(this[x],this.constructor);if(e[_].length){let o=e[_];while(o.length)e.removeChild(o[0])}if(t)for(let o of this[_]){let s=o.cloneNode(!0);if(s[W]=e,e[_].push(s),s[D]===T.elementNode)e[bt].push(s)}return e}[Et](t,e=!1){if(t[Vt])t=t[Vt];let o=this[Vt]||this;if(!e){if(t===o)throw new this[m].DOMException("Failed to execute 'appendChild' on 'Node': Not possible to append a node as a child of itself.");if(ft.isInclusiveAncestor(t,o,!0))throw new this[m].DOMException("Failed to execute 'appendChild' on 'Node': The new node is a parent of the node to insert to.",w.domException)}if(t[D]===T.documentFragmentNode){let s=t[_];while(s.length)this.appendChild(s[0]);return t}if(t[W])t[W][hr](t);if(t[W]=o,t[Mr](),this[_].push(t),t[D]===T.elementNode)this[bt].push(t);t[Zr]();for(let s of this[ro])if(s.options?.subtree&&s.callback.deref())t[vl](s);return this[Oi](new Vo({target:o,type:si.childList,addedNodes:[t]})),t}[hr](t){if(t[Vt])t=t[Vt];let e=this[_].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 o=t.previousSibling,s=t.nextSibling;if(t[W]=null,t[Mr](),this[_].splice(e,1),t[D]===T.elementNode){let n=this[bt].indexOf(t);if(n!==-1)this[bt].splice(n,1)}if(t[Zo]){let n=t[Zo][Wi].indexOf(t);if(n!==-1)t[Zo][Wi].splice(n,1);t[Zo]=null}t[Bi]();for(let n of this[ro])if(n.options?.subtree&&n.callback.deref())t[xa](n);return this[Oi](new Vo({target:this[Vt]||this,type:si.childList,removedNodes:[t],previousSibling:o,nextSibling:s})),t}[kr](t,e,o=!1){if(t[Vt])t=t[Vt];if(e&&e[Vt])e=e[Vt];if(t===e)return t;let s=this[Vt]||this;if(!o){if(t===s)throw new this[m].DOMException("Failed to execute 'insertBefore' on 'Node': Not possible to insert a node as a child of itself.");if(ft.isInclusiveAncestor(t,s,!0))throw new this[m].DOMException("Failed to execute 'insertBefore' on 'Node': The new node is a parent of the node to insert to.",w.domException)}if(t[D]===T.documentFragmentNode){let a=t[_];while(a.length>0)this[kr](a[0],e,!0);return t}if(!e)return this[Et](t,!0),t;let n=this[_];if(!n.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.");if(t[W])t[W][hr](t);t[W]=s,t[Mr]();let l=n.indexOf(e);if(t[D]===T.elementNode){let a=this[bt];if(e[D]===T.elementNode)a.splice(a.indexOf(e),0,t);else{let y=!1;for(let u=l,c=n.length;u<c;u++)if(n[u][D]===T.elementNode){a.splice(a.indexOf(n[u]),0,t),y=!0;break}if(!y)a.push(t)}}n.splice(l,0,t),t[Zr]();for(let a of this[ro])if(a.options?.subtree&&a.callback.deref())t[vl](a);return this[Oi](new Vo({target:s,type:si.childList,addedNodes:[t]})),t}[La](t,e){return this.insertBefore(t,e),this.removeChild(e),e}isEqualNode(t){return ft.isEqualNode(this,t)}toString(){return`[object ${this.constructor.name}]`}[vl](t){if(this[ro].push(t),t.options.subtree)for(let e of this[_])e[vl](t)}[xa](t){let e=this[ro].indexOf(t);if(e!==-1)this[ro].splice(e,1);if(t.options.subtree)for(let o of this[_])o[xa](t)}[Oi](t){this[Mr]();let e=this[ro];if(!e.length)return;for(let o=0,s=e.length;o<s;o++){let n=e[o],l=n.callback.deref();if(l)switch(t.type){case si.childList:if(n.options.childList)l(t);break;case si.attributes:if(n.options.attributes&&(!n.options.attributeFilter||n.options.attributeFilter.includes(t.attributeName)))l(t);break;case si.characterData:if(n.options?.characterData)l(t);break}else e.splice(o,1),o--,s--}}[Mr](){let t=this[U];if(t.querySelector.size){for(let s of t.querySelector.values())if(s.result)s.result=null;t.querySelector=new Map}if(t.querySelectorAll.size){for(let s of t.querySelectorAll.values())if(s.result)s.result=null;t.querySelectorAll=new Map}if(t.matches.size){for(let s of t.matches.values())if(s.result)s.result=null;t.matches=new Map}if(t.elementsByTagName.size){for(let s of t.elementsByTagName.values())if(s.result)s.result=null;t.elementsByTagName=new Map}if(t.elementsByTagNameNS.size){for(let s of t.elementsByTagNameNS.values())if(s.result)s.result=null;t.elementsByTagNameNS=new Map}if(t.elementByTagName.size){for(let s of t.elementByTagName.values())if(s.result)s.result=null;t.elementByTagName=new Map}if(t.elementById.size){for(let s of t.elementById.values())if(s.result)s.result=null;t.elementById=new Map}let e=this[He];if(e.length){for(let s of e)s.result=null;this[He]=[]}let o=this[x];if(o&&o[Xo].length){for(let s of o[Xo])s.result=null;o[Xo]=[]}}[Zr](){let t=this[W],e=t||this[Mn],o=!1,s=!1;if(!this[tt]&&e[tt])this[tt]=!0,o=!0;else if(this[tt]&&!e[tt])this[tt]=!1,s=!0;if(this[x]=e[x]||e,this[m]=e[m]||e[Lr],t){if(this[D]!==T.documentFragmentNode)this[ve]=t[ve];let l=this[z];if(t[dr]&&l!=="STYLE")this[dr]=t[dr];if(t[Je]&&l!=="TEXTAREA")this[Je]=t[Je];if(t[Ut]&&l!=="FORM")this[Ut]=t[Ut];if(t[Ie]&&l!=="SELECT")this[Ie]=t[Ie]}let n=this[_].slice();for(let l=0,a=n.length;l<a;l++)n[l][W]=this,n[l][Zr]();if(this[be])this[be][Zr]();if(o)this[sr]();else if(s)this[nr]()}[Bi](){if(this[D]!==T.documentFragmentNode)this[ve]=null;let t=this[z];if(t!=="STYLE")this[dr]=null;if(t!=="TEXTAREA")this[Je]=null;if(t!=="FORM")this[Ut]=null;if(t!=="SELECT")this[Ie]=null;if(this[tt])this[tt]=!1,this[nr]();let e=this[_].slice();for(let o=0,s=e.length;o<s;o++)e[o][Zr]();if(this[be])this[be][Bi]()}[sr](){if(this[be])this[be][sr]()}[nr](){if(this[x][Me]===this)this[x][Mr](),this[x][Me]=null;if(this[be])this[be][nr]()}[At](){super[At](),this[tt]=!1;for(let t=0,e=this[_].length;t<e;t++)this[_][t][At]();this[ro]=[],this[W]=null,this[ve]=null,this[dr]=null,this[Je]=null,this[Ut]=null,this[Ie]=null,this[ro]=[],this[_]=[],this[bt]=[],this[Ns]=null,this[Zo]=null,this[Mr]()}compareDocumentPosition(t){if(this===t)return 0;let e=t,o=this[Vt]||this,s=null,n=null;if(e[D]===T.attributeNode)s=e,e=s[xt];if(o[D]===T.attributeNode){if(n=o,o=n[xt],s!==null&&e!==null&&o===e)for(let dt of o[St][Q].values()){if(ft.isEqualNode(dt,s))return st.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|st.DOCUMENT_POSITION_PRECEDING;if(ft.isEqualNode(dt,n))return st.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|st.DOCUMENT_POSITION_FOLLOWING}}let l=[],a=o;while(a){if(a===e)return st.DOCUMENT_POSITION_CONTAINS|st.DOCUMENT_POSITION_PRECEDING;l.push(a),a=a[W]}let y=[],u=e;while(u){if(u===o)return st.DOCUMENT_POSITION_CONTAINED_BY|st.DOCUMENT_POSITION_FOLLOWING;y.push(u),u=u[W]}let c=(dt,ee)=>dt[dt.length-1-ee],d=c(l,0);if(!d||d!==c(y,0))return st.DOCUMENT_POSITION_DISCONNECTED|st.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|st.DOCUMENT_POSITION_FOLLOWING;let g=0,f=Math.min(l.length,y.length);for(let dt=0;dt<f;++dt){let ee=c(l,dt),Ct=c(y,dt);if(ee!==Ct)break;g=dt}let E=c(l,g),R=0,H=-1,pt=-1,gt=c(l,g+1),Rt=c(y,g+1),lt=(dt)=>{for(let ee of dt){if(lt(ee[_]),ee===gt)H=R;else if(ee===Rt)pt=R;if(H!==-1&&pt!==-1)break;R++}};return lt(E[_]),pt<H?st.DOCUMENT_POSITION_PRECEDING:st.DOCUMENT_POSITION_FOLLOWING}normalize(){let t=this.firstChild;while(t){if(ft.isTextNode(t)){while(ft.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}}st.prototype.ELEMENT_NODE=T.elementNode;st.prototype.ATTRIBUTE_NODE=T.attributeNode;st.prototype.TEXT_NODE=T.textNode;st.prototype.CDATA_SECTION_NODE=T.cdataSectionNode;st.prototype.COMMENT_NODE=T.commentNode;st.prototype.DOCUMENT_NODE=T.documentNode;st.prototype.DOCUMENT_TYPE_NODE=T.documentTypeNode;st.prototype.DOCUMENT_FRAGMENT_NODE=T.documentFragmentNode;st.prototype.PROCESSING_INSTRUCTION_NODE=T.processingInstructionNode;st.prototype.DOCUMENT_POSITION_CONTAINED_BY=Ko.containedBy;st.prototype.DOCUMENT_POSITION_CONTAINS=Ko.contains;st.prototype.DOCUMENT_POSITION_DISCONNECTED=Ko.disconnect;st.prototype.DOCUMENT_POSITION_FOLLOWING=Ko.following;st.prototype.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=Ko.implementationSpecific;st.prototype.DOCUMENT_POSITION_PRECEDING=Ko.preceding;class tm extends st{[D]=T.attributeNode;[J]=null;[rt]=null;[ot]=null;[Ft]=null;[q]=null;[Nm]=!0;[xt]=null;get specified(){return this[Nm]}get ownerElement(){return this[xt]}get value(){return this[q]}set value(t){this[q]=t}get name(){return this[rt]||""}get localName(){return this[ot]||""}get prefix(){return this[Ft]}get textContent(){return this[q]||""}get namespaceURI(){return this[J]}[ct](t=!1){let e=super[ct](t);return e[J]=this[J],e[rt]=this[rt],e[ot]=this[ot],e[Ft]=this[Ft],e[q]=this[q],e[Nm]=this[Nm],e}}class el{static appendData(t,e){t.data+=e}static deleteData(t,e,o){t.data=t.data.substring(0,e)+t.data.substring(e+o)}static insertData(t,e,o){t.data=t.data.substring(0,e)+o+t.data.substring(e)}static replaceData(t,e,o,s){t.data=t.data.substring(0,e)+s+t.data.substring(e+o)}static substringData(t,e,o){return t.data.substring(e,e+o)}}class rl{static previousElementSibling(t){let e=t.previousSibling;while(e&&e[D]!==T.elementNode)e=e.previousSibling;return e}static nextElementSibling(t){let e=t.nextSibling;while(e&&e[D]!==T.elementNode)e=e.nextSibling;return e}}class ni{static remove(t){if(t[W])t[W].removeChild(t)}static replaceWith(t,...e){let o=t[W];if(!o)return;for(let s of e)if(s instanceof st)o.insertBefore(s,t);else o.insertBefore(o[x].createTextNode(String(s)),t);o.removeChild(t)}static before(t,...e){let o=t[W];if(!o)return;for(let s of e)if(s instanceof st)o.insertBefore(s,t);else o.insertBefore(o[x].createTextNode(String(s)),t)}static after(t,...e){let o=t[W];if(!o)return;let s=t.nextSibling;for(let n of e){let l=n instanceof st?n:o[x].createTextNode(String(n));if(!s)o.appendChild(l);else o.insertBefore(l,s)}}}class Ss extends st{[Kt]="";constructor(t){super();this[Kt]=t!==void 0?String(t):""}get length(){return this[Kt].length}get data(){return this[Kt]}set data(t){let e=this[Kt];this[Kt]=String(t),this[Oi](new Vo({target:this,type:si.characterData,oldValue:e}))}get textContent(){return this[Kt]}set textContent(t){this.data=t}get nodeValue(){return this[Kt]}set nodeValue(t){this.textContent=t}get previousElementSibling(){return rl.previousElementSibling(this)}get nextElementSibling(){return rl.nextElementSibling(this)}appendData(t){el.appendData(this,t)}deleteData(t,e){el.deleteData(this,t,e)}insertData(t,e){el.insertData(this,t,e)}replaceData(t,e,o){el.replaceData(this,t,e,o)}substringData(t,e){return el.substringData(this,t,e)}remove(){ni.remove(this)}replaceWith(...t){ni.replaceWith(this,...t)}before(...t){ni.before(this,...t)}after(...t){ni.after(this,...t)}[ct](t=!1){let e=super[ct](t);return e[Kt]=this[Kt],e}}class nn extends st{[D]=T.documentTypeNode;[rt]="";[Ds]="";[Bs]="";get name(){return this[rt]}get publicId(){return this[Ds]}get systemId(){return this[Bs]}get nodeName(){return this.name}toString(){return"[object DocumentType]"}[ct](t=!1){let e=super[ct](t);return e[rt]=this[rt],e[Ds]=this[Ds],e[Bs]=this[Bs],e}}var Qb;(function(t){t.loading="loading",t.interactive="interactive",t.complete="complete"})(Qb||(Qb={}));var uc=Qb;class hc{#t;constructor(t){this.#t=new Js(t)}waitUntilComplete(){return this.#t.waitUntilComplete()}startTask(){return this.#t.startTask()}endTask(t){this.#t.endTask(t)}destroy(){return this.#t.destroy()}}class ol{[k]=0;[M]=0;[V]=0;[F]=0;constructor(t,e,o,s){this[k]=t!==void 0&&t!==null?Number(t):0,this[M]=e!==void 0&&e!==null?Number(e):0,this[V]=o!==void 0&&o!==null?Number(o):0,this[F]=s!==void 0&&s!==null?Number(s):0}get x(){return this[k]}get y(){return this[M]}get width(){return this[V]}get height(){return this[F]}get top(){return Math.min(this[M],this[M]+this[F])}get right(){return Math.max(this[k],this[k]+this[V])}get bottom(){return Math.max(this[M],this[M]+this[F])}get left(){return Math.min(this[k],this[k]+this[V])}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 ol(t.x,t.y,t.width,t.height)}}class li extends ol{set x(t){this[k]=t}get x(){return this[k]}set y(t){this[M]=t}get y(){return this[M]}set width(t){this[V]=t}get width(){return this[V]}set height(t){this[F]=t}get height(){return this[F]}static fromRect(t){return new li(t.x,t.y,t.width,t.height)}}var IP=/[\t\f\n\r ]+/;class Or{[xt];[Gs];[U]={items:[],attributeValue:""};[Xh];[Vt];constructor(t,e,o,s){if(t!==h)throw TypeError("Illegal constructor");this[xt]=e,this[Gs]=o,this[Xh]=s||[];let n=new fe(this,[Or]),l=new Proxy(this,{get:(a,y)=>{if(y==="length")return a[Er]().length;if(y in a||typeof y==="symbol")return n.bind(y),a[y];let u=Number(y);if(!isNaN(u))return a[Er]()[u]},set(a,y,u){if(n.bind(y),typeof y==="symbol")return a[y]=u,!0;let c=Number(y);if(isNaN(c))a[y]=u;return!0},deleteProperty(a,y){if(typeof y==="symbol")return delete a[y],!0;let u=Number(y);if(isNaN(u))delete a[y];return!0},ownKeys(a){return Object.keys(a[Er]())},has(a,y){if(y in a)return!0;if(typeof y==="symbol")return!1;let u=Number(y);return!isNaN(u)&&u>=0&&u<a[Er]().length},defineProperty(a,y,u){if(n.preventBinding(y),y in a)return Object.defineProperty(a,y,u),!0;return!1},getOwnPropertyDescriptor(a,y){if(y in a||typeof y==="symbol")return;let u=Number(y),c=a[Er]();if(!isNaN(u)&&c[u])return{value:c[u],writable:!1,enumerable:!0,configurable:!0}}});return this[Vt]=l,l}get length(){return this[Er]().length}set value(t){this[xt].setAttribute(this[Gs],t)}get value(){return this[xt].getAttribute(this[Gs])||""}[Symbol.iterator](){return this[Er]().values()}item(t){let e=this[Er]();if(typeof t==="number")return e[t]?e[t]:null;return t=Number(t),t=isNaN(t)?0:t,e[t]?e[t]:null}replace(t,e){let o=this[Er]().slice(),s=o.indexOf(t);if(s===-1)return!1;return o[s]=e,this[xt].setAttribute(this[Gs],o.join(" ")),!0}supports(t){return this[Xh].includes(t)}values(){return this[Er]().values()}entries(){return this[Er]().entries()}forEach(t,e){let o=e??this[xt][m],s=this[Er](),n=this[Vt]??this;for(let l=0,a=s.length;l<a;l++)t.call(o,s[l],l,n)}keys(){return this[Er]().keys()}add(...t){let e=this[Er]().slice(),o=new Set(e);for(let s of t)if(!o.has(s))o.add(s),e.push(s);this[xt].setAttribute(this[Gs],e.join(" "))}remove(...t){let e=this[Er](),o=new Set(t),s=e.filter((n)=>!o.has(n));this[xt].setAttribute(this[Gs],s.join(" "))}contains(t){return this[Er]().includes(t)}toggle(t,e){let o;if(e!==void 0)o=e;else o=!this.contains(t);if(o)return this.add(t),!0;return this.remove(t),!1}[Er](){let t=this[xt].getAttribute(this[Gs])??"",e=this[U];if(e.attributeValue===t)return e.items;let o=[],s=t.trim();if(s){for(let n of s.split(IP))if(!o.includes(n))o.push(n)}return e.attributeValue=t,e.items=o,o}toString(){return this.value||""}}class de{[Nl];constructor(t,e){if(t!==h)throw TypeError("Illegal constructor");this[Nl]=e;let o=new fe(this,this.constructor!==de?[this.constructor,de]:[de]);return new Proxy(this,{get:(s,n)=>{if(n==="length")return e().length;if(n in s||typeof n==="symbol")return o.bind(n),s[n];let l=Number(n);if(!isNaN(l))return e()[l];return s.namedItem(n)||void 0},set(s,n,l){if(o.bind(n),typeof n==="symbol")return s[n]=l,!0;let a=Number(n);if(isNaN(a))s[n]=l;return!0},deleteProperty(s,n){if(typeof n==="symbol")return delete s[n],!0;let l=Number(n);if(isNaN(l))delete s[n];return!0},ownKeys(){let s=[],n=e();for(let l=0;l<n.length;l++){let a=n[l],y=a.getAttribute("id")||a.getAttribute("name");if(s.push(String(l)),y)s.push(y)}return s},has(s,n){if(n in s)return!0;let l=e(),a=Number(n);if(!isNaN(a)&&a>=0&&a<l.length)return!0;n=String(n);for(let y=0;y<l.length;y++){let u=l[y],c=u.getAttribute("id")||u.getAttribute("name");if(c&&c===n)return!0}return!1},defineProperty(s,n,l){if(o.preventBinding(n),n in s)return Object.defineProperty(s,n,l),!0;return!1},getOwnPropertyDescriptor(s,n){if(n in s||typeof n==="symbol")return;let l=e(),a=Number(n);if(!isNaN(a)&&a>=0&&a<l.length)return{value:l[a],writable:!1,enumerable:!0,configurable:!0};for(let y=0;y<l.length;y++){let u=l[y],c=u.getAttribute("id")||u.getAttribute("name");if(c&&c===n)return{value:u,writable:!1,enumerable:!0,configurable:!0}}}})}get length(){return this[Nl]().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[Nl]();return t>=0&&e[t]?e[t]:null}[Symbol.iterator](){return this[Nl]()[Symbol.iterator]()}namedItem(t){let e=this[Nl]();t=String(t);for(let o of e)if(o.getAttribute("id")===t||o.getAttribute("name")===t)return o;return null}}class oe{static append(t,...e){for(let o of e)if(o instanceof st)t.appendChild(o);else t.appendChild(t[x].createTextNode(String(o)))}static prepend(t,...e){let o=t.firstChild;for(let s of e)if(s instanceof st)t.insertBefore(s,o);else t.insertBefore(t[x].createTextNode(String(s)),o)}static replaceChildren(t,...e){let o=t[_];while(o.length)t.removeChild(o[0]);this.append(t,...e)}static getElementsByClassName(t,e){return new de(h,()=>yt.querySelectorAll(t,`.${e.replace(/\s+/gm,".")}`)[Q])}static getElementsByTagName(t,e){let o=e.toUpperCase(),s=e==="*",n=(a,y)=>{let u=[];for(let c of a[bt]){if(s||c[z].toUpperCase()===o)u.push(c);c[He].push(y);for(let d of n(c,y))u.push(d)}return u};return new de(h,()=>{let a=t[U].elementsByTagName,y=a.get(e);if(y?.result){let d=y.result.deref();if(d)return d}let u={result:null},c=n(t,u);return u.result=new WeakRef(c),a.set(e,u),c})}static getElementsByTagNameNS(t,e,o){let s=e===Ht.html&&t[x][xe]==="text/html"?o.toUpperCase():o,n=o==="*",l=(y,u)=>{let c=[];for(let d of y[bt]){if((n||d[z]===s)&&d[J]===e)c.push(d);d[He].push(u);for(let g of l(d,u))c.push(g)}return c};return new de(h,()=>{let y=t[U].elementsByTagNameNS,u=y.get(o);if(u?.result){let g=u.result.deref();if(g)return g}let c={result:null},d=l(t,c);return c.result=new WeakRef(d),y.set(o,c),d})}static getElementByTagName(t,e){let o=e.toUpperCase(),s=(u,c)=>{for(let d of u[bt]){if(d[He].push(c),d[z]===o)return d;let g=s(d,c);if(g)return g}return null},n=t[U].elementByTagName,l=n.get(e);if(l?.result){let u=l.result.deref();if(u)return u}let a={result:null},y=s(t,a);return a.result=y?new WeakRef(y):{deref:()=>null},n.set(e,a),y}static getElementById(t,e){if(e=String(e),t[D]===st.DOCUMENT_NODE){let y=t[wi].get(e);if(y&&y.elements.length>0)return y.elements[0];return null}let o=(y,u)=>{for(let c of y[bt]){if(c[He].push(u),c.getAttribute("id")===e)return c;let d=o(c,u);if(d)return d}return null},s=t[U].elementById,n=s.get(e);if(n?.result){let y=n.result.deref();if(y)return y}let l={result:null},a=o(t,l);return l.result=a?new WeakRef(a):{deref:()=>null},s.set(e,l),a}}class em extends Array{constructor(t){super();if(t!==1&&t!==h)throw TypeError("Illegal constructor")}item(t){return this[t]??null}}class ln{[Ai]=new Map;[Wr]=new Map;[Q]=new Map;constructor(t){this[xt]=t}get length(){return this[Q].size}get[Symbol.toStringTag](){return"NamedNodeMap"}toString(){return"[object NamedNodeMap]"}[Symbol.iterator](){return this[Q].values()}item(t){let e=Array.from(this[Q].values());return t>=0&&e[t]?e[t]:null}getNamedItem(t){if(t=String(t),this[xt][J]===Ht.html&&this[xt][x][xe]==="text/html")return this[Wr].get(Dr.asciiLowerCase(t))?.[0]||null;return this[Wr].get(t)?.[0]||null}getNamedItemNS(t,e){let o=this[Ai].get(`${t||""}:${e}`);if(o&&(!o[Ft]||o[J]))return o;return null}setNamedItem(t){return this[zo](t)}setNamedItemNS(t){return this[zo](t)}removeNamedItem(t){let e=this.getNamedItem(t);if(!e)throw new this[xt][m].DOMException(`Failed to execute 'removeNamedItem' on 'NamedNodeMap': No item with name '${t}' was found.`,w.notFoundError);return this[Os](e),e}removeNamedItemNS(t,e){let o=this.getNamedItemNS(t,e);if(!o)throw new this[xt][m].DOMException(`Failed to execute 'removeNamedItemNS' on 'NamedNodeMap': No item with name '${e}' in namespace '${t}' was found.`,w.notFoundError);return this[Os](o),o}[zo](t,e=!1){if(t[xt]!==null&&t[xt]!==this[xt])throw new this[xt][m].DOMException("The attribute is in use.",w.inUseAttributeError);t[xt]=this[xt];let o=this.getNamedItemNS(t[J],t[ot])||null,s=this[Wr].get(t[rt]);if(o===t)return t;if(this[Ai].set(`${t[J]||""}:${t[ot]}`,t),this[Q].set(`${t[J]||""}:${t[rt]}`,t),!s?.length)this[Wr].set(t[rt],[t]);else{let n=s.indexOf(o);if(n!==-1)s.splice(n,1);s.push(t)}if(!e)this[xt][Re](t,o);return o}[Os](t,e=!1){t[xt]=null,this[Ai].delete(`${t[J]||""}:${t[ot]}`),this[Q].delete(`${t[J]||""}:${t[rt]}`);let o=this[Wr].get(t[rt]);if(o?.length){let s=o.indexOf(t);if(s!==-1)o.splice(s,1);if(!o.length)this[Wr].delete(t[rt])}if(!e)this[xt][br](t)}}class cc{static createProxy(t){let e=new fe(this,[ln]);return new Proxy(t,{get:(o,s)=>{if(s==="length")return t[Q].size;if(s in o||typeof s==="symbol")return e.bind(s),o[s];let n=Number(s);if(!isNaN(n))return o.item(n);return o.getNamedItem(s)||void 0},set(o,s,n){if(e.bind(s),typeof s==="symbol")return o[s]=n,!0;let l=Number(s);if(isNaN(l))o[s]=n;return!0},deleteProperty(o,s){if(typeof s==="symbol")return delete o[s],!0;let n=Number(s);if(isNaN(n))delete o[s];return!0},ownKeys(){let o=Array.from(t[Q].keys());for(let s=0,n=t[Q].size;s<n;s++)o.push(String(s));return o},has(o,s){if(typeof s==="symbol")return!1;if(s in o||t[Q].has(s))return!0;let n=Number(s);if(!isNaN(n)&&n>=0&&n<t[Q].size)return!0;return!1},defineProperty(o,s,n){if(e.preventBinding(s),s in o)return Object.defineProperty(o,s,n),!0;return!1},getOwnPropertyDescriptor(o,s){if(s in o||typeof s==="symbol")return;let n=Number(s);if(!isNaN(n)){if(n>=0){let a=o.item(n);if(a)return{value:a,writable:!1,enumerable:!0,configurable:!0}}return}let l=t[Q].get(s);if(l)return{value:l,writable:!1,enumerable:!0,configurable:!0}}})}}var jb;(function(t){t.rawText="rawText",t.noSelfDescendants="noSelfDescendants",t.noFirstLevelSelfDescendants="noFirstLevelSelfDescendants",t.noForbiddenFirstLevelDescendants="noForbiddenFirstLevelDescendants",t.noDescendants="noDescendants",t.permittedDescendants="permittedDescendants",t.textOrComments="textOrComments",t.anyDescendants="anyDescendants"})(jb||(jb={}));var G=jb;var $e={a:{className:"HTMLAnchorElement",contentModel:G.noSelfDescendants},abbr:{className:"HTMLElement",contentModel:G.anyDescendants},address:{className:"HTMLElement",contentModel:G.anyDescendants},area:{className:"HTMLAreaElement",contentModel:G.noDescendants},article:{className:"HTMLElement",contentModel:G.anyDescendants},aside:{className:"HTMLElement",contentModel:G.anyDescendants},audio:{className:"HTMLAudioElement",contentModel:G.anyDescendants},b:{className:"HTMLElement",contentModel:G.anyDescendants},base:{className:"HTMLBaseElement",contentModel:G.noDescendants},bdi:{className:"HTMLElement",contentModel:G.anyDescendants},bdo:{className:"HTMLElement",contentModel:G.anyDescendants},body:{className:"HTMLBodyElement",contentModel:G.anyDescendants},template:{className:"HTMLTemplateElement",contentModel:G.anyDescendants},form:{className:"HTMLFormElement",contentModel:G.anyDescendants},input:{className:"HTMLInputElement",contentModel:G.noDescendants},textarea:{className:"HTMLTextAreaElement",contentModel:G.anyDescendants},script:{className:"HTMLScriptElement",contentModel:G.rawText},img:{className:"HTMLImageElement",contentModel:G.noDescendants},link:{className:"HTMLLinkElement",contentModel:G.noDescendants},style:{className:"HTMLStyleElement",contentModel:G.rawText},label:{className:"HTMLLabelElement",contentModel:G.anyDescendants},slot:{className:"HTMLSlotElement",contentModel:G.anyDescendants},meta:{className:"HTMLMetaElement",contentModel:G.noDescendants},blockquote:{className:"HTMLQuoteElement",contentModel:G.anyDescendants},br:{className:"HTMLBRElement",contentModel:G.noDescendants},button:{className:"HTMLButtonElement",contentModel:G.anyDescendants},canvas:{className:"HTMLCanvasElement",contentModel:G.anyDescendants},caption:{className:"HTMLTableCaptionElement",contentModel:G.noForbiddenFirstLevelDescendants,forbiddenDescendants:["table","tbody","thead","tfoot","tr","td","th","col","colgroup"],permittedParents:["table"]},cite:{className:"HTMLElement",contentModel:G.anyDescendants},code:{className:"HTMLElement",contentModel:G.anyDescendants},col:{className:"HTMLTableColElement",contentModel:G.noDescendants,permittedParents:["colgroup"]},colgroup:{className:"HTMLTableColElement",contentModel:G.permittedDescendants,permittedDescendants:["col"]},data:{className:"HTMLDataElement",contentModel:G.anyDescendants},datalist:{className:"HTMLDataListElement",contentModel:G.anyDescendants},dd:{className:"HTMLElement",contentModel:G.noForbiddenFirstLevelDescendants,forbiddenDescendants:["dt","dd"]},del:{className:"HTMLModElement",contentModel:G.anyDescendants},details:{className:"HTMLDetailsElement",contentModel:G.anyDescendants},dfn:{className:"HTMLElement",contentModel:G.anyDescendants},dialog:{className:"HTMLDialogElement",contentModel:G.anyDescendants},div:{className:"HTMLDivElement",contentModel:G.anyDescendants},dl:{className:"HTMLDListElement",contentModel:G.anyDescendants},dt:{className:"HTMLElement",contentModel:G.noForbiddenFirstLevelDescendants,forbiddenDescendants:["dt","dd"]},em:{className:"HTMLElement",contentModel:G.anyDescendants},embed:{className:"HTMLEmbedElement",contentModel:G.noDescendants},fieldset:{className:"HTMLFieldSetElement",contentModel:G.anyDescendants},figcaption:{className:"HTMLElement",contentModel:G.anyDescendants},figure:{className:"HTMLElement",contentModel:G.anyDescendants},footer:{className:"HTMLElement",contentModel:G.anyDescendants},h1:{className:"HTMLHeadingElement",contentModel:G.noFirstLevelSelfDescendants},h2:{className:"HTMLHeadingElement",contentModel:G.noFirstLevelSelfDescendants},h3:{className:"HTMLHeadingElement",contentModel:G.noFirstLevelSelfDescendants},h4:{className:"HTMLHeadingElement",contentModel:G.noFirstLevelSelfDescendants},h5:{className:"HTMLHeadingElement",contentModel:G.noFirstLevelSelfDescendants},h6:{className:"HTMLHeadingElement",contentModel:G.noFirstLevelSelfDescendants},head:{className:"HTMLHeadElement",contentModel:G.anyDescendants},header:{className:"HTMLElement",contentModel:G.anyDescendants},hgroup:{className:"HTMLElement",contentModel:G.anyDescendants},hr:{className:"HTMLHRElement",contentModel:G.noDescendants},html:{className:"HTMLHtmlElement",contentModel:G.anyDescendants},i:{className:"HTMLElement",contentModel:G.anyDescendants},iframe:{className:"HTMLIFrameElement",contentModel:G.anyDescendants},ins:{className:"HTMLModElement",contentModel:G.anyDescendants},kbd:{className:"HTMLElement",contentModel:G.anyDescendants},legend:{className:"HTMLLegendElement",contentModel:G.anyDescendants},li:{className:"HTMLLIElement",contentModel:G.noFirstLevelSelfDescendants},main:{className:"HTMLElement",contentModel:G.anyDescendants},map:{className:"HTMLMapElement",contentModel:G.anyDescendants},mark:{className:"HTMLElement",contentModel:G.anyDescendants},menu:{className:"HTMLMenuElement",contentModel:G.anyDescendants},meter:{className:"HTMLMeterElement",contentModel:G.anyDescendants},nav:{className:"HTMLElement",contentModel:G.anyDescendants},noscript:{className:"HTMLElement",contentModel:G.anyDescendants},object:{className:"HTMLObjectElement",contentModel:G.anyDescendants},ol:{className:"HTMLOListElement",contentModel:G.anyDescendants},optgroup:{className:"HTMLOptGroupElement",contentModel:G.noFirstLevelSelfDescendants},option:{className:"HTMLOptionElement",contentModel:G.noForbiddenFirstLevelDescendants,forbiddenDescendants:["option","optgroup"]},output:{className:"HTMLOutputElement",contentModel:G.anyDescendants},p:{className:"HTMLParagraphElement",contentModel:G.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:G.noDescendants},picture:{className:"HTMLPictureElement",contentModel:G.anyDescendants},pre:{className:"HTMLPreElement",contentModel:G.anyDescendants},progress:{className:"HTMLProgressElement",contentModel:G.anyDescendants},q:{className:"HTMLQuoteElement",contentModel:G.anyDescendants},rb:{className:"HTMLElement",contentModel:G.anyDescendants},rp:{className:"HTMLElement",contentModel:G.noForbiddenFirstLevelDescendants,forbiddenDescendants:["rp","rt"]},rt:{className:"HTMLElement",contentModel:G.noForbiddenFirstLevelDescendants,forbiddenDescendants:["rp","rt"]},rtc:{className:"HTMLElement",contentModel:G.anyDescendants},ruby:{className:"HTMLElement",contentModel:G.anyDescendants},s:{className:"HTMLElement",contentModel:G.anyDescendants},samp:{className:"HTMLElement",contentModel:G.anyDescendants},section:{className:"HTMLElement",contentModel:G.anyDescendants},select:{className:"HTMLSelectElement",contentModel:G.anyDescendants},small:{className:"HTMLElement",contentModel:G.anyDescendants},source:{className:"HTMLSourceElement",contentModel:G.noDescendants},span:{className:"HTMLSpanElement",contentModel:G.anyDescendants},strong:{className:"HTMLElement",contentModel:G.anyDescendants},sub:{className:"HTMLElement",contentModel:G.anyDescendants},summary:{className:"HTMLElement",contentModel:G.anyDescendants},sup:{className:"HTMLElement",contentModel:G.anyDescendants},table:{className:"HTMLTableElement",contentModel:G.permittedDescendants,permittedDescendants:["caption","colgroup","thead","tfoot","tbody"],moveForbiddenDescendant:{exclude:[]}},tbody:{className:"HTMLTableSectionElement",contentModel:G.permittedDescendants,permittedDescendants:["tr"],permittedParents:["table"],moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody"]}},td:{className:"HTMLTableCellElement",contentModel:G.noForbiddenFirstLevelDescendants,forbiddenDescendants:["td","th","tr","tbody","tfoot","thead"],permittedParents:["tr"]},tfoot:{className:"HTMLTableSectionElement",contentModel:G.permittedDescendants,permittedDescendants:["tr"],permittedParents:["table"],moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody"]}},th:{className:"HTMLTableCellElement",contentModel:G.noForbiddenFirstLevelDescendants,forbiddenDescendants:["td","th","tr","tbody","tfoot","thead"],permittedParents:["tr"]},thead:{className:"HTMLTableSectionElement",contentModel:G.permittedDescendants,permittedDescendants:["tr"],permittedParents:["table"],moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody"]}},time:{className:"HTMLTimeElement",contentModel:G.anyDescendants},title:{className:"HTMLTitleElement",contentModel:G.anyDescendants},tr:{className:"HTMLTableRowElement",contentModel:G.permittedDescendants,permittedDescendants:["td","th"],permittedParents:["tbody","tfoot","thead"],addPermittedParent:"tbody",moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody","tr"]}},track:{className:"HTMLTrackElement",contentModel:G.noDescendants},u:{className:"HTMLElement",contentModel:G.anyDescendants},ul:{className:"HTMLUListElement",contentModel:G.anyDescendants},var:{className:"HTMLElement",contentModel:G.anyDescendants},video:{className:"HTMLVideoElement",contentModel:G.anyDescendants},wbr:{className:"HTMLElement",contentModel:G.noDescendants}};var qb,RP=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]]),iS=(qb=String.fromCodePoint)!==null&&qb!==void 0?qb:(t)=>{let e="";if(t>65535)t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023;return e+=String.fromCharCode(t),e};function sS(t){var e;if(t>=55296&&t<=57343||t>1114111)return 65533;return(e=RP.get(t))!==null&&e!==void 0?e:t}function dc(t){let e=typeof atob==="function"?atob(t):typeof Buffer.from==="function"?Buffer.from(t,"base64").toString("binary"):new Buffer(t,"base64").toString("binary"),o=e.length&-2,s=new Uint16Array(o/2);for(let n=0,l=0;n<o;n+=2){let a=e.charCodeAt(n),y=e.charCodeAt(n+1);s[l++]=a|y<<8}return s}var nS=dc("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");var lS=dc("AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg");var Qr;(function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.FLAG13=8192]="FLAG13",t[t.BRANCH_LENGTH=8064]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"})(Qr||(Qr={}));var _e;(function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z"})(_e||(_e={}));var aS=32;function $b(t){return t>=_e.ZERO&&t<=_e.NINE}function FP(t){return t>=_e.UPPER_A&&t<=_e.UPPER_F||t>=_e.LOWER_A&&t<=_e.LOWER_F}function VP(t){return t>=_e.UPPER_A&&t<=_e.UPPER_Z||t>=_e.LOWER_A&&t<=_e.LOWER_Z||$b(t)}function DP(t){return t===_e.EQUALS||VP(t)}var Tr;(function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"})(Tr||(Tr={}));var Li;(function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"})(Li||(Li={}));class Xb{constructor(t,e,o){this.decodeTree=t,this.emitCodePoint=e,this.errors=o,this.state=Tr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Li.Strict,this.runConsumed=0}startEntity(t){this.decodeMode=t,this.state=Tr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(t,e){switch(this.state){case Tr.EntityStart:{if(t.charCodeAt(e)===_e.NUM)return this.state=Tr.NumericStart,this.consumed+=1,this.stateNumericStart(t,e+1);return this.state=Tr.NamedEntity,this.stateNamedEntity(t,e)}case Tr.NumericStart:return this.stateNumericStart(t,e);case Tr.NumericDecimal:return this.stateNumericDecimal(t,e);case Tr.NumericHex:return this.stateNumericHex(t,e);case Tr.NamedEntity:return this.stateNamedEntity(t,e)}}stateNumericStart(t,e){if(e>=t.length)return-1;if((t.charCodeAt(e)|aS)===_e.LOWER_X)return this.state=Tr.NumericHex,this.consumed+=1,this.stateNumericHex(t,e+1);return this.state=Tr.NumericDecimal,this.stateNumericDecimal(t,e)}stateNumericHex(t,e){while(e<t.length){let o=t.charCodeAt(e);if($b(o)||FP(o)){let s=o<=_e.NINE?o-_e.ZERO:(o|aS)-_e.LOWER_A+10;this.result=this.result*16+s,this.consumed++,e++}else return this.emitNumericEntity(o,3)}return-1}stateNumericDecimal(t,e){while(e<t.length){let o=t.charCodeAt(e);if($b(o))this.result=this.result*10+(o-_e.ZERO),this.consumed++,e++;else return this.emitNumericEntity(o,2)}return-1}emitNumericEntity(t,e){var o;if(this.consumed<=e)return(o=this.errors)===null||o===void 0||o.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===_e.SEMI)this.consumed+=1;else if(this.decodeMode===Li.Strict)return 0;if(this.emitCodePoint(sS(this.result),this.consumed),this.errors){if(t!==_e.SEMI)this.errors.missingSemicolonAfterCharacterReference();this.errors.validateNumericCharacterReference(this.result)}return this.consumed}stateNamedEntity(t,e){let{decodeTree:o}=this,s=o[this.treeIndex],n=(s&Qr.VALUE_LENGTH)>>14;while(e<t.length){if(n===0&&(s&Qr.FLAG13)!==0){let a=(s&Qr.BRANCH_LENGTH)>>7;if(this.runConsumed===0){let y=s&Qr.JUMP_TABLE;if(t.charCodeAt(e)!==y)return this.result===0?0:this.emitNotTerminatedNamedEntity();e++,this.excess++,this.runConsumed++}while(this.runConsumed<a){if(e>=t.length)return-1;let y=this.runConsumed-1,u=o[this.treeIndex+1+(y>>1)],c=y%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+(a>>1),s=o[this.treeIndex],n=(s&Qr.VALUE_LENGTH)>>14}if(e>=t.length)break;let l=t.charCodeAt(e);if(l===_e.SEMI&&n!==0&&(s&Qr.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,n,this.consumed+this.excess);if(this.treeIndex=BP(o,s,this.treeIndex+Math.max(1,n),l),this.treeIndex<0)return this.result===0||this.decodeMode===Li.Attribute&&(n===0||DP(l))?0:this.emitNotTerminatedNamedEntity();if(s=o[this.treeIndex],n=(s&Qr.VALUE_LENGTH)>>14,n!==0){if(l===_e.SEMI)return this.emitNamedEntityData(this.treeIndex,n,this.consumed+this.excess);if(this.decodeMode!==Li.Strict&&(s&Qr.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:o}=this,s=(o[e]&Qr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(e,s,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,e,o){let{decodeTree:s}=this;if(this.emitCodePoint(e===1?s[t]&~(Qr.VALUE_LENGTH|Qr.FLAG13):s[t+1],o),e===3)this.emitCodePoint(s[t+2],o);return o}end(){var t;switch(this.state){case Tr.NamedEntity:return this.result!==0&&(this.decodeMode!==Li.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Tr.NumericDecimal:return this.emitNumericEntity(0,2);case Tr.NumericHex:return this.emitNumericEntity(0,3);case Tr.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Tr.EntityStart:return 0}}}function mS(t){let e="",o=new Xb(t,(s)=>e+=iS(s));return function(n,l){let a=0,y=0;while((y=n.indexOf("&",y))>=0){e+=n.slice(a,y),o.startEntity(l);let c=o.write(n,y+1);if(c<0){a=y+o.end();break}a=y+c,y=c===0?a+1:a}let u=e+n.slice(a);return e="",u}}function BP(t,e,o,s){let n=(e&Qr.BRANCH_LENGTH)>>7,l=e&Qr.JUMP_TABLE;if(n===0)return l!==0&&s===l?o:-1;if(l){let c=s-l;return c<0||c>=n?-1:t[o+c]-1}let a=n+1>>1,y=0,u=n-1;while(y<=u){let c=y+u>>>1,d=c>>1,f=t[o+d]>>(c&1)*8&255;if(f<s)y=c+1;else if(f>s)u=c-1;else return t[o+a+c]}return-1}var yS=mS(nS),OP=mS(lS);function kp(t,e=Li.Legacy){return yS(t,e)}function zb(t){return yS(t,Li.Attribute)}function Mp(t){return OP(t,Li.Strict)}var lM=String.prototype.codePointAt==null?(t,e)=>(t.charCodeAt(e)&64512)===55296?(t.charCodeAt(e)-55296)*1024+t.charCodeAt(e+1)-56320+65536:t.charCodeAt(e):(t,e)=>t.codePointAt(e);function GP(t,e){return function(s){let n,l=0,a="";while(n=t.exec(s)){if(l!==n.index)a+=s.substring(l,n.index);a+=e.get(n[0].charCodeAt(0)),l=n.index+1}return a+s.substring(l)}}var Jb=GP(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]));var pS;(function(t){t[t.XML=0]="XML",t[t.HTML=1]="HTML"})(pS||(pS={}));var uS;(function(t){t[t.UTF8=0]="UTF8",t[t.ASCII=1]="ASCII",t[t.Extensive=2]="Extensive",t[t.Attribute=3]="Attribute",t[t.Text=4]="Text"})(uS||(uS={}));var UP=/[&"<>\t\n\r]/g,HP=/[&"]/g,WP=/&(?:nbsp|lt|gt|amp);/g,_P={"&":"&amp;",'"':"&quot;","<":"&lt;",">":"&gt;","\t":"&#x9;","\n":"&#xA;","\r":"&#xD;"},YP={"&":"&amp;",'"':"&quot;"},KP={"&nbsp;":String.fromCharCode(160),"&lt;":"<","&gt;":">","&amp;":"&"};class De{static encodeXMLAttributeValue(t){if(t===null)return"";return t.replace(UP,(e)=>_P[e])}static decodeXMLAttributeValue(t){if(t===null)return"";return Mp(t)}static encodeHTMLAttributeValue(t){if(t===null)return"";return t.replace(HP,(e)=>YP[e])}static decodeHTMLAttributeValue(t){if(t===null)return"";return zb(t)}static encodeTextContent(t){if(t===null)return"";return Jb(t)}static decodeTextContent(t){if(t===null)return"";return t.replace(WP,(e)=>KP[e])}static decodeHTMLEntities(t){if(t===null)return"";return kp(t)}static decodeXMLEntities(t){if(t===null)return"";return Mp(t)}}class ai{options={serializableShadowRoots:!1,shadowRoots:null,allShadowRoots:!1,excludeShadowRootTags:null};constructor(t){if(t){if(t.serializableShadowRoots)this.options.serializableShadowRoots=t.serializableShadowRoots;if(t.shadowRoots)this.options.shadowRoots=t.shadowRoots;if(t.allShadowRoots)this.options.allShadowRoots=t.allShadowRoots;if(t.excludeShadowRootTags)this.options.excludeShadowRootTags=t.excludeShadowRootTags}}serializeToString(t){switch(t[D]){case T.elementNode:let e=t,o=e[Ft],s=e[ot],n=$e[e[ot]],l=o?`${o}:${s}`:s;if(n?.contentModel===G.noDescendants)return`<${l}${this.getAttributes(e)}>`;let a="";if(e.shadowRoot&&(this.options.allShadowRoots||this.options.serializableShadowRoots&&e.shadowRoot[Hi]||this.options.shadowRoots?.includes(e.shadowRoot))&&(!this.options.excludeShadowRootTags||!this.options.excludeShadowRootTags.includes(l))){a+=`<template shadowrootmode="${e.shadowRoot[Ee]}"${e.shadowRoot[Hi]?' shadowrootserializable=""':""}>`;for(let R of e.shadowRoot[_])a+=this.serializeToString(R);a+="</template>"}let y=l==="template"?t.content[_]:t[_];for(let R of y)a+=this.serializeToString(R);return`<${l}${this.getAttributes(e)}>${a}</${l}>`;case st.DOCUMENT_FRAGMENT_NODE:case st.DOCUMENT_NODE:let u="";for(let R of t[_])u+=this.serializeToString(R);return u;case T.commentNode:return`<!--${t.textContent}-->`;case T.processingInstructionNode:return`<!--?${t.target} ${t.textContent}?-->`;case T.textNode:let c=t.parentElement;if(c){if($e[c[ot]]?.contentModel===G.rawText)return t.textContent}return De.encodeTextContent(t.textContent);case T.documentTypeNode:let d=t,g=d.publicId?" PUBLIC":d.systemId?" SYSTEM":"",f=d.publicId?` "${d.publicId}"`:"",E=d.systemId?` "${d.systemId}"`:"";return`<!DOCTYPE ${d.name}${g}${f}${E}>`}return""}getAttributes(t){let e="",o=t[St][Q];if(!o.has(":is")&&t[eo])e+=' is="'+De.encodeHTMLAttributeValue(t[eo])+'"';for(let s of o.values()){let n=De.encodeHTMLAttributeValue(s[q]);e+=" "+s[rt]+'="'+n+'"'}return e}}var Ip={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 QP=/<([^\s/!>?]+)|<\/([^\s/!>?]+)\s*>|(<!--)|(-->|--!>)|(<!)|(<\?)|(\/>)|(>)/gm,jP=/\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,qP=/"([^"]+)"/gm,$P=/\s+/,XP=/^\s+/,Ge;(function(t){t.any="any",t.startTag="startTag",t.comment="comment",t.documentType="documentType",t.processingInstruction="processingInstruction",t.rawTextElement="rawTextElement"})(Ge||(Ge={}));var Te;(function(t){t[t.root=0]="root",t[t.doctype=1]="doctype",t[t.documentElement=2]="documentElement",t[t.head=3]="head",t[t.additionalHeadWithoutBody=4]="additionalHeadWithoutBody",t[t.body=5]="body",t[t.afterBody=6]="afterBody"})(Te||(Te={}));class Cr{window;evaluateScripts=!1;isTemplateDocumentFragment=!1;rootNode=null;rootDocument=null;nodeStack=[];tagNameStack=[];documentStructure=null;startTagIndex=0;markupRegExp=null;nextElement=null;currentNode=null;readState=Ge.any;constructor(t,e){if(this.window=t,e?.evaluateScripts)this.evaluateScripts=!0;if(e?.isTemplateDocumentFragment)this.isTemplateDocumentFragment=!0}parse(t,e){if(this.rootNode=e||this.window.document.createDocumentFragment(),this.rootDocument=this.rootNode[D]===T.documentNode?this.rootNode:this.window.document,this.nodeStack=[this.rootNode],this.tagNameStack=[null],this.currentNode=this.rootNode,this.readState=Ge.any,this.documentStructure=null,this.startTagIndex=0,this.markupRegExp=new RegExp(QP),this.rootNode[D]===T.documentNode){let{doctype:n,documentElement:l,head:a,body:y}=this.rootNode;if(!l||!a||!y)throw Error(`Failed to parse HTML: The root node must have "documentElement", "head" and "body".
88
88
 
89
89
  We should not end up here and it is therefore a bug in Happy DOM. Please report this issue.`);this.documentStructure={nodes:{doctype:n||null,documentElement:l,head:a,body:y},level:Te.root}}if(this.rootNode instanceof this.window.HTMLHtmlElement){let n=this.rootDocument.createElement("head"),l=this.rootDocument.createElement("body");while(this.rootNode[_].length>0)this.rootNode[hr](this.rootNode[_][this.rootNode[_].length-1]);this.rootNode[Et](n),this.rootNode[Et](l),this.documentStructure={nodes:{doctype:null,documentElement:this.rootNode,head:n,body:l},level:Te.documentElement}}let o,s=0;t=String(t);while(o=this.markupRegExp.exec(t)){switch(this.readState){case Ge.any:if(o.index!==s&&(o[1]||o[2]||o[3]||o[4]||o[5]!==void 0||o[6]))this.parsePlainText(t.substring(s,o.index));if(o[1])this.nextElement=this.getStartTagElement(o[1]),this.startTagIndex=this.markupRegExp.lastIndex,this.readState=Ge.startTag;else if(o[2])this.parseEndTag(o[2]);else if(o[3])this.startTagIndex=this.markupRegExp.lastIndex,this.readState=Ge.comment;else if(o[5]!==void 0)this.startTagIndex=this.markupRegExp.lastIndex,this.readState=Ge.documentType;else if(o[6])this.startTagIndex=this.markupRegExp.lastIndex,this.readState=Ge.processingInstruction;else this.parsePlainText(t.substring(s,this.markupRegExp.lastIndex));break;case Ge.startTag:if(o[7]||o[8]||o[2])if(this.nextElement){let n=t.substring(this.startTagIndex,o[2]?this.markupRegExp.lastIndex-1:o.index),l=!!o[7];this.parseEndOfStartTag(n,l)}else this.readState=Ge.any;break;case Ge.comment:if(o[4])this.parseComment(t.substring(this.startTagIndex,o.index));break;case Ge.documentType:if(o[7]||o[8])this.parseDocumentType(t.substring(this.startTagIndex,o.index));break;case Ge.processingInstruction:if(o[7]||o[8])this.parseComment("?"+t.substring(this.startTagIndex,o.index));break;case Ge.rawTextElement:if(o[2])this.parseRawTextElementContent(o[2],t.substring(this.startTagIndex,o.index));break}s=this.markupRegExp.lastIndex}if(s!==t.length&&this.currentNode)this.parsePlainText(t.substring(s));return this.rootNode}parsePlainText(t){if(this.documentStructure){let e=this.documentStructure.level,{documentElement:o,head:s,body:n}=this.documentStructure.nodes,l=(this.currentNode===this.rootNode||this.currentNode===o)&&e<Te.head&&n[bt].length===0?t.replace(XP,""):t;if(l){let a=this.rootDocument.createTextNode(De.decodeHTMLEntities(l));if(this.currentNode===s&&e===Te.additionalHeadWithoutBody)o[kr](a,n,!0);else if(this.currentNode===this.rootNode||this.currentNode===o||this.currentNode===s&&e>=Te.body)if(e===Te.head)o[kr](a,n,!0);else if(n.lastChild?.[D]===T.textNode)n.lastChild[Kt]+=t;else n[Et](a,!0);else this.currentNode[Et](a,!0)}}else{let e=this.rootDocument.createTextNode(De.decodeHTMLEntities(t));this.currentNode[Et](e,!0)}}parseEndOfStartTag(t,e){if(t&&(!this.documentStructure||this.nextElement!==this.documentStructure.nodes.head||this.documentStructure.level<Te.body)){let a=new RegExp(jP),y;while(y=a.exec(t))if(y[1]&&y[2]||y[3]&&y[5]==='"'||y[6]&&y[8]==="'"||y[9]){let u=y[1]||y[3]||y[6]||y[9]||"",c=y[2]||y[4]||y[7]||"",d=c?De.decodeHTMLAttributeValue(c):"",g=this.nextElement[St];if(this.nextElement[J]===Ht.svg){let f=u.split(":"),E=null;switch(f[0]){case"xmlns":E=!f[1]||f[1]==="xlink"?Ht.xmlns:null;break;case"xlink":E=Ht.xlink;break}if(!g.getNamedItemNS(E,f[1]??u)){let R=Ve.createNode(this.rootDocument,this.window.Attr);R[J]=E,R[rt]=u,R[ot]=E&&f[1]?f[1]:u,R[Ft]=E&&f[1]?f[0]:null,R[q]=d,g[zo](R)}}else if(!g.getNamedItem(u)){let f=this.rootDocument.createAttribute(u);f[q]=d,g[zo](f)}this.startTagIndex+=y[0].length}else if(!y[1]&&(y[3]&&!y[5]||y[6]&&!y[8]))return}let o=this.nextElement[z],s=o.toLowerCase(),n=$e[s],l=null;while(l!==this.rootNode){let a=this.currentNode[z]?.toLowerCase(),y=a?$e[a]:null;if(l===this.currentNode)throw Error("Failed to parse HTML: The parser is stuck in an infinite loop. Please report this issue.");if(l=this.currentNode,n?.contentModel===G.noFirstLevelSelfDescendants&&this.tagNameStack[this.tagNameStack.length-1]===o||y?.contentModel===G.textOrComments||y?.contentModel===G.noForbiddenFirstLevelDescendants&&y?.forbiddenDescendants?.includes(s)||y?.contentModel===G.permittedDescendants&&!y?.permittedDescendants?.includes(s)&&(!n||!n.addPermittedParent||$e[n.addPermittedParent].permittedParents&&!$e[n.addPermittedParent].permittedParents.includes(a)||$e[n.addPermittedParent].permittedDescendants&&!$e[n.addPermittedParent].permittedDescendants.includes(s))){if(y?.contentModel===G.permittedDescendants&&y.moveForbiddenDescendant&&!y.moveForbiddenDescendant.exclude.includes(s)){let u=this.currentNode;while(u)if(!u.parentNode||!$e[u.parentNode[ot]]?.permittedDescendants||$e[u.parentNode[ot]]?.permittedDescendants?.includes(s))break;else u=u.parentNode;if(u&&u.parentNode)u.parentNode.insertBefore(this.nextElement,u);else u.appendChild(this.nextElement);this.startTagIndex=this.markupRegExp.lastIndex,this.readState=Ge.any;return}this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode}else if(n?.contentModel===G.noSelfDescendants&&this.tagNameStack.includes(o))while(this.currentNode!==this.rootNode){if(this.currentNode[z]===o){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&&n?.permittedParents&&!n.permittedParents.includes(a)){if(!n.addPermittedParent||$e[n.addPermittedParent].permittedParents&&!$e[n.addPermittedParent].permittedParents.includes(a)||$e[n.addPermittedParent].permittedDescendants&&!$e[n.addPermittedParent].permittedDescendants.includes(s)){this.readState=Ge.any,this.startTagIndex=this.markupRegExp.lastIndex;return}let u=this.rootDocument.createElement(n.addPermittedParent);this.currentNode[Et](u,!0),this.nodeStack.push(u),this.tagNameStack.push(u[z]),this.currentNode=u}else break}if(this.documentStructure){let{documentElement:a,head:y,body:u}=this.documentStructure.nodes,c=this.documentStructure.level;if((!n||n.contentModel!==G.rawText)&&this.nextElement!==a&&this.nextElement!==y&&this.nextElement!==u)if(a&&(this.currentNode===this.rootNode||this.currentNode===a||this.currentNode===y&&c>=Te.body)){if(c<Te.body)this.documentStructure.level=Te.afterBody;u[Et](this.nextElement,!0)}else this.currentNode[Et](this.nextElement,!0)}else this.currentNode[Et](this.nextElement,!0);if(!this.documentStructure||this.nextElement!==this.documentStructure.nodes.body||this.documentStructure.level<=Te.body){if(this.currentNode=this.nextElement,this.nodeStack.push(this.currentNode),this.tagNameStack.push(o),this.documentStructure&&this.nextElement===this.documentStructure.nodes.body)this.documentStructure.level=Te.afterBody;if(n?.contentModel===G.noDescendants||e&&this.currentNode[J]===Ht.svg)this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode,this.readState=Ge.any;else this.readState=n?.contentModel===G.rawText?Ge.rawTextElement:Ge.any}else this.readState=Ge.any;this.startTagIndex=this.markupRegExp.lastIndex}parseEndTag(t){let e=this.currentNode[J]===Ht.html?Dr.asciiUpperCase(t):Ip[Dr.asciiLowerCase(t)]?.localName||t,o=this.tagNameStack.lastIndexOf(e);if(o!==-1)this.nodeStack.splice(o,this.nodeStack.length-o),this.tagNameStack.splice(o,this.tagNameStack.length-o),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode}parseComment(t){let e=this.rootDocument.createComment(De.decodeHTMLEntities(t));if(this.documentStructure){let o=this.documentStructure.level,{documentElement:s,head:n,body:l}=this.documentStructure.nodes,a=null;if(this.currentNode===this.rootNode&&o===Te.root)a=s;else if(this.currentNode===s&&o===Te.documentElement)a=n;else if(this.currentNode===s&&o===Te.head)a=l;this.currentNode[kr](e,a,!0)}else this.currentNode[Et](e,!0);this.readState=Ge.any}parseDocumentType(t){let e=De.decodeHTMLEntities(t);if(this.documentStructure){let{doctype:o}=this.documentStructure.nodes,s=this.getDocumentType(e);if(s){if(this.currentNode===this.rootNode&&this.documentStructure.level===Te.root){if(o)o[rt]=s.name,o[Ds]=s.publicId,o[Bs]=s.systemId;else o=this.rootNode.implementation.createDocumentType(s.name,s.publicId,s.systemId),this.rootNode.insertBefore(o,this.rootNode.documentElement);this.documentStructure.level=Te.doctype}}else this.parseComment(e)}else if(!this.getDocumentType(e))this.parseComment(e);this.readState=Ge.any}parseRawTextElementContent(t,e){let o=Dr.asciiUpperCase(t);if(o!==this.currentNode[z])return;if(o==="SCRIPT")this.currentNode[Xs]=!this.evaluateScripts;else if(o==="LINK")this.currentNode[Xs]=!this.evaluateScripts;this.currentNode[Et](this.rootDocument.createTextNode(e),!0);let s=this.currentNode;if(this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode,this.readState=Ge.any,this.documentStructure){let{documentElement:n,body:l}=this.documentStructure.nodes;if(n&&(this.currentNode===this.rootNode||this.currentNode===n))l[Et](s,!0);else this.currentNode[Et](s,!0)}else this.currentNode[Et](s,!0)}getStartTagElement(t){let e=Dr.asciiLowerCase(t),o=this.currentNode[J];if(e==="svg")return this.rootDocument.createElementNS(Ht.svg,"svg");if(o===Ht.svg)return this.rootDocument.createElementNS(Ht.svg,Ip[e]?.localName||t);switch(e){case"html":if(!this.documentStructure)return null;if(this.documentStructure.level<Te.documentElement)this.documentStructure.level=Te.documentElement;return this.documentStructure.nodes.documentElement??null;case"head":if(!this.documentStructure)return null;if(this.documentStructure.level<Te.head)this.documentStructure.level=Te.head;else if(this.documentStructure.level===Te.head)this.documentStructure.level=Te.additionalHeadWithoutBody;return this.documentStructure.nodes.head??null;case"body":if(!this.documentStructure)return null;if(this.documentStructure.level<Te.body)this.documentStructure.level=Te.body;return this.documentStructure.nodes.body??null;default:return this.rootDocument.createElementNS(Ht.html,e)}}getDocumentType(t){if(!t.toUpperCase().startsWith("DOCTYPE"))return null;let e=t.split($P);if(e.length<=1)return null;let o=e.slice(1).join(" "),s=[],n=new RegExp(qP,"gm"),l=o.toUpperCase().includes("PUBLIC"),a;while(a=n.exec(o))s.push(a[1]);let y=l?s[0]||"":"",u=l?s[1]||"":s[0]||"";return{name:e[1].toLowerCase(),publicId:y,systemId:u}}}var zP=/[\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]/;class Zb{static validateAttributeName(t,e,o){let{method:s,instance:n}=o;if(e==="text/html"){let l=String(t).toLowerCase();if(zP.test(l)||l.length===0||l[0]==="-")throw new re(`Uncaught InvalidCharacterError: Failed to execute '${s}' on '${n}': '${t}' is not a valid attribute name.`,w.invalidCharacterError)}}}class S{static getEventListener(t,e){let o=t[p].get(e);if(o)return o;let s=t[x][Lr];if(!s)return null;let n=new it(s).getSettings();if(!n||!n.enableJavaScriptEvaluation)return null;let l=t.getAttribute(e);if(!l)return null;let a="(function anonymous($happy_dom, event) {";if(n&&!n.disableErrorCapturing&&n.errorCapture===me.tryAndCatch)a+=`try {
90
- `;if(a+=l,n&&!n.disableErrorCapturing&&n.errorCapture===me.tryAndCatch)a+="} catch(e) { $happy_dom.dispatchError(e); }";a+="})";let y=null;try{y=s[Uo](a,{filename:s.location.href}).bind(t,{dispatchError:s[le].bind(s)})}catch(u){let c=new s.SyntaxError(`Failed to read the '${e}' property from '${t.constructor.name}': ${u.message}`);if(n.disableErrorCapturing||n.errorCapture!==me.tryAndCatch)throw c;else return s[le](c),null}if(y)t[p].set(e,y);return y}}class Gr extends st{static[z]=null;static[ot]=null;static[J]=null;[Aa]=null;[eo]=null;[D]=T.elementNode;[Ft]=null;[be]=null;[Jd]=0;[Zd]=0;[Th]=0;[Ch]=0;[St]=new ln(this);[va]=null;[ir]=null;[Ll]=null;[Cm]=new Set;[p]=new Map;constructor(){super();if(!this[z])this[z]=null;if(!this[ot])this[ot]=null;if(!this[J])this[J]=null}get onfullscreenerror(){return S.getEventListener(this,"onfullscreenerror")}set onfullscreenerror(t){this[p].set("onfullscreenerror",t)}get onfullscreenchange(){return S.getEventListener(this,"onfullscreenchange")}set onfullscreenchange(t){this[p].set("onfullscreenchange",t)}get onbeforecopy(){return S.getEventListener(this,"onbeforecopy")}set onbeforecopy(t){this[p].set("onbeforecopy",t)}get onbeforecut(){return S.getEventListener(this,"onbeforecut")}set onbeforecut(t){this[p].set("onbeforecut",t)}get onbeforepaste(){return S.getEventListener(this,"onbeforepaste")}set onbeforepaste(t){this[p].set("onbeforepaste",t)}get onsearch(){return S.getEventListener(this,"onsearch")}set onsearch(t){this[p].set("onsearch",t)}get tagName(){return this[z]}get prefix(){return this[Ft]}get shadowRoot(){let t=this[be];return t&&t[Ee]==="open"?t:null}get scrollHeight(){return this[Jd]}get scrollWidth(){return this[Zd]}get scrollTop(){return this[Th]}set scrollTop(t){this[Th]=t}get scrollLeft(){return this[Ch]}set scrollLeft(t){this[Ch]=t}get attributes(){if(!this[va])this[va]=cc.createProxy(this[St]);return this[va]}get namespaceURI(){return this[J]}get children(){if(!this[ir]){let t=this[bt];this[ir]=new de(h,()=>t)}return this[ir]}get classList(){if(!this[Aa])this[Aa]=new Or(h,this,"class");return this[Aa]}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[z]}get localName(){return this[ot]}get role(){return this.getAttribute("role")||""}set role(t){this.setAttribute("role",t)}get previousElementSibling(){return rl.previousElementSibling(this)}get nextElementSibling(){return rl.nextElementSibling(this)}get textContent(){let t="";for(let e of this[_])if(e[D]===T.elementNode||e[D]===T.textNode)t+=e.textContent;return t}set textContent(t){let e=this[_];while(e.length)this.removeChild(e[0]);if(t)this.appendChild(this[x].createTextNode(t))}get innerHTML(){return this.getHTML()}set innerHTML(t){let e=this[_];while(e.length)this.removeChild(e[0]);new Cr(this[m]).parse(t,this)}get outerHTML(){return new ai().serializeToString(this)}set outerHTML(t){let e=new Cr(this[m]).parse(t)[_];this.replaceWith(...e)}get childElementCount(){return this[bt].length}get firstElementChild(){return this[bt][0]??null}get lastElementChild(){let t=this[bt];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 ai({allShadowRoots:!!t?.includeShadowRoots}),o="";for(let s of this[_])o+=e.serializeToString(s);return o}getHTML(t){let e=new ai({serializableShadowRoots:!!t?.serializableShadowRoots,shadowRoots:t?.shadowRoots??null}),o="";for(let s of this[_])o+=e.serializeToString(s);return o}[ct](t=!1){let e=super[ct](t);if(e[z]=this[z],e[ot]=this[ot],e[J]=this[J],this[be]?.[On])e[be]=this[be].cloneNode(t),e[be][Mn]=e;e[St]=new ln(e);for(let o of this[St][Q].values())e[St].setNamedItem(o.cloneNode(t));return e}remove(){ni.remove(this)}replaceWith(...t){ni.replaceWith(this,...t)}before(...t){ni.before(this,...t)}after(...t){ni.after(this,...t)}append(...t){oe.append(this,...t)}prepend(...t){oe.prepend(this,...t)}replaceChildren(...t){oe.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 o=new Cr(this[m]).parse(e)[_];while(o.length)this.insertAdjacentElement(t,o[0])}insertAdjacentText(t,e){if(!e)return;let o=this[x].createTextNode(e);this.insertAdjacentElement(t,o)}setAttribute(t,e){if(Zb.validateAttributeName(t,this[x][xe],{method:"setAttribute",instance:"Element"}),t=String(t),this[J]===Ht.html){let s=this[x].createAttribute(t);s[q]=String(e),this[St][zo](s)}else{let s=t.split(":"),n=null;switch(s[0]){case"xmlns":n=!s[1]||s[1]==="xlink"?Ht.xmlns:null;break;case"xlink":n=Ht.xlink;break}let l=Ve.createNode(this[x],this[m].Attr);l[J]=n,l[rt]=t,l[ot]=n&&s[1]?s[1]:t,l[Ft]=n&&s[1]?s[0]:null,l[q]=String(e),this[St][zo](l)}}setAttributeNS(t,e,o){let s=this[x].createAttributeNS(t,e);if(!t&&s[Ft])throw new this[m].DOMException("Failed to execute 'setAttributeNS' on 'Element': '' is an invalid namespace for attributes.",w.namespaceError);s[q]=String(o),this[St].setNamedItemNS(s)}getAttributeNames(){let t=[];for(let e of this[St][Q].values())t.push(e[rt]);return t}getAttribute(t){let e=this[St].getNamedItem(t);if(e)return e[q];return null}toggleAttribute(t,e){t=t.toLowerCase();let o=this[St].getNamedItem(t);if(o){if(e===!0)return!0;return this[St][Os](o),!1}if(e===!1)return!1;return this.setAttribute(t,""),!0}getAttributeNS(t,e){let o=this.getAttributeNodeNS(t,e);if(o)return o[q];return null}hasAttribute(t){return!!this.getAttributeNode(t)}hasAttributeNS(t,e){return this[St].getNamedItemNS(t,e)!==null}hasAttributes(){return this[St][Q].size>0}removeAttribute(t){let e=this[St].getNamedItem(t);if(e)this[St][Os](e)}removeAttributeNS(t,e){let o=this[St].getNamedItemNS(t,e);if(o)this[St][Os](o)}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[be])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 o=Ve.createNode(this[x],this[m].ShadowRoot);return this[be]=o,o[Mn]=this,o[Ee]=t.mode,o[On]=!!t.clonable,o[kl]=!!t.delegateFocus,o[Hi]=!!t.serializable,o[Ei]=t.slotAssignment==="manual"?"manual":"named",o[Zr](),this[be]}toString(){return this.outerHTML}getBoundingClientRect(){return new li}getClientRects(){let t=new em(h);return t.push(this.getBoundingClientRect()),t}setPointerCapture(t){this[Cm].add(t)}hasPointerCapture(t){return this[Cm].has(t)}releasePointerCapture(t){this[Cm].delete(t)}matches(t){return!!yt.matches(this,t)}closest(t){let e=this;while(e){if(yt.matches(e,t))return e;e=e.parentElement}return null}querySelectorAll(t){return yt.querySelectorAll(this,t)}querySelector(t){return yt.querySelector(this,t)}getElementsByClassName(t){return oe.getElementsByClassName(this,t)}getElementsByTagName(t){return oe.getElementsByTagName(this,t)}getElementsByTagNameNS(t,e){return oe.getElementsByTagNameNS(this,t,e)}setAttributeNode(t){return this[St].setNamedItem(t)}setAttributeNodeNS(t){return this[St].setNamedItemNS(t)}getAttributeNode(t){return this[St].getNamedItem(t)}getAttributeNodeNS(t,e){return this[St].getNamedItemNS(t,e)}removeAttributeNode(t){if(t[xt]!==this)throw new this[m].DOMException("Failed to execute 'removeAttributeNode' on 'Element': The node provided is owned by another element.");return this[St][Os](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 o=typeof t==="object"?t:{left:t,top:e};if(o.behavior==="smooth")this[m].setTimeout(()=>{if(o.top!==void 0){let s=Number(o.top);this.scrollTop=isNaN(s)?0:s}if(o.left!==void 0){let s=Number(o.left);this.scrollLeft=isNaN(s)?0:s}});else{if(o.top!==void 0){let s=Number(o.top);this.scrollTop=isNaN(s)?0:s}if(o.left!==void 0){let s=Number(o.left);this.scrollLeft=isNaN(s)?0:s}}}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 o=typeof t==="object"?t:{left:t,top:e};this.scroll({left:this.scrollLeft+(o.left??0),top:this.scrollTop+(o.top??0),behavior:o.behavior})}scrollIntoView(t){}[Et](t,e=!1){let o=super[Et](t,e);return this.#r(t),o}[hr](t){let e=super[hr](t);return this.#r(t),e}[kr](t,e,o=!1){let s=super[kr](t,e,o);return this.#r(t),s}[Re](t,e){if(!t[rt])return;let o=e?e[q]:null;if(t[rt]==="slot"&&this[W]&&this[W][be]){let s=this[W][be];if(s&&t[q]!==o){if(o!==null&&e){let l=s.querySelector(`slot[name="${e[q]}"]`);if(l)l.dispatchEvent(new N("slotchange",{bubbles:!0}))}else{let l=s.querySelector("slot:not([name])");if(l)l.dispatchEvent(new N("slotchange",{bubbles:!0}))}let n=s.querySelector(`slot[name="${t[q]}"]`);if(n)n.dispatchEvent(new N("slotchange",{bubbles:!0}))}}if(this[t[rt]]!==void 0&&t[rt][0]==="o"&&t[rt][1]==="n")this[p].delete(t[rt]);if(t[rt]==="id"&&this[tt]){if(e?.[q])this.#e(e[q]);this.#t(t[q])}this[Oi](new Vo({type:si.attributes,target:this,attributeName:t[rt],oldValue:o}))}[br](t){if(t[rt]==="slot"&&this[W]&&this[W][be]){let e=this[W][be],o=e.querySelector(`slot[name="${t[q]}"]`),s=e.querySelector("slot:not([name])");if(o)o.dispatchEvent(new N("slotchange",{bubbles:!0}));if(s)s.dispatchEvent(new N("slotchange",{bubbles:!0}))}if(t[rt]==="id"&&this[tt])this.#e(t[q]);this[Oi](new Vo({type:si.attributes,target:this,attributeName:t[rt],oldValue:t[q]}))}[sr](){let t=this.getAttribute("id");if(t)this.#t(t);if(super[sr](),this[m][Qs].enqueueReaction(this,"connectedCallback"),this[be])for(let e of this[_])this.#r(e)}[nr](){super[nr]();let t=this.getAttribute("id");if(t)this.#e(t);this[m][Qs].enqueueReaction(this,"disconnectedCallback")}[At](){let t=this.getAttribute("id");if(t)this.#e(t);if(this[m][Qs].enqueueReaction(this,"disconnectedCallback"),super[At](),this[be])this[be][At]();this[Aa]=null,this[be]=null,this[va]=null,this[ir]=null,this[Ll]=null,this[p].clear(),this[St][Ai].clear(),this[St][Wr].clear(),this[St][Q].clear()}#t(t){if(!t)return;let e=this[x],o=this[m];if(this[ve]&&this[ve]!==e)return;if(!e[wi].has(t))e[wi].set(t,{elements:[],htmlCollection:null});let s=e[wi].get(t);if(!s)return;let n=this[Vt]||this;if(s.elements.push(n),s.elements.length>1){if(!s.htmlCollection)s.htmlCollection=new de(h,()=>s.elements);if(!(t in o)||o[t]===s.elements[0])o[t]=s.htmlCollection}else if(!(t in o)||s.htmlCollection!==null&&o[t]===s.htmlCollection)o[t]=n}#e(t){if(!t)return;let e=this[x],o=this[m];if(this[ve]&&this[ve]!==e)return;let s=e[wi].get(t);if(!s)return;let n=this[Vt]||this,l=s.elements.indexOf(n);if(l!==-1)s.elements.splice(l,1);if(s.elements.length===1){if(o[t]===s.htmlCollection)o[t]=s.elements[0];s.htmlCollection=null}else if(!s.elements.length){if(e[wi].delete(t),o[t]===n||o[t]===s.htmlCollection)delete o[t]}}#r(t){let e=this[be];if(!e||!this[tt])return;let o=t.getAttribute?t.getAttribute("slot"):null;if(o){let s=e.querySelector(`slot[name="${o}"]`);if(s)s.dispatchEvent(new N("slotchange",{bubbles:!0}))}else if(t[D]!==T.commentNode){let s=e.querySelector("slot:not([name])");if(s)s.dispatchEvent(new N("slotchange",{bubbles:!0}))}}}class il{static blur(t){let e=t[Vt]||t,o=e[x];if(o[Me]!==e||!e[tt]||e.disabled)return;let s=o[Rs]??null;o[Me]=null,o[Mr](),e.dispatchEvent(new cs("blur",{relatedTarget:s,bubbles:!1,composed:!0,cancelable:!0})),e.dispatchEvent(new cs("focusout",{relatedTarget:s,bubbles:!0,composed:!0,cancelable:!0}))}static focus(t){let e=t[Vt]||t,o=e[x];if(o[Me]===e||!e[tt]||e.disabled||this.isInert(e))return;o[Rs]=e;let s=o[Me];if(o[Me]!==null)o[Me].blur();o[Rs]=null,o[Me]=e,o[Mr](),e.dispatchEvent(new cs("focus",{relatedTarget:s,bubbles:!1,composed:!0})),e.dispatchEvent(new cs("focusin",{relatedTarget:s,bubbles:!0,composed:!0}))}static isInert(t){let e=t[Vt]||t;while(e&&typeof e.getAttribute==="function"){if(e.getAttribute("inert")!==null)return!0;e=e[W]}return!1}}class fs{static kebabToCamelCase(t){let e=t.split("-");for(let o=0,s=e.length;o<s;o++)e[o]=o>0?e[o].charAt(0).toUpperCase()+e[o].slice(1):e[o];return e.join("")}static camelCaseToKebab(t){return t.toString().replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,o)=>(o?"-":"")+e.toLowerCase())}}class rm{constructor(t,e){if(t!==h)throw TypeError("Illegal constructor");return new Proxy(this,{get(o,s){let n=e.getAttribute("data-"+fs.camelCaseToKebab(s));if(n!==null)return n},set(o,s,n){return e.setAttribute("data-"+fs.camelCaseToKebab(s),n),!0},deleteProperty(o,s){return e.removeAttribute("data-"+fs.camelCaseToKebab(s)),!0},ownKeys(o){let s=[];for(let n of e[St][Wr].values())if(n[0][rt].startsWith("data-"))s.push(fs.kebabToCamelCase(n[0][rt].replace("data-","")));return s},has(o,s){return e.hasAttribute("data-"+fs.camelCaseToKebab(s))},defineProperty(o,s,n){if(n.value===void 0)return!1;return e.setAttribute("data-"+fs.camelCaseToKebab(s),n.value),!0},getOwnPropertyDescriptor(o,s){let n=e.getAttribute("data-"+fs.camelCaseToKebab(s));if(!n)return;return{value:n,writable:!0,enumerable:!0,configurable:!0}}})}}class B extends Gr{static observedAttributes;[Ta]="";[tb]=0;[eb]=0;[rb]=0;[ob]=0;[ib]=0;[sb]=0;[nb]=0;[lb]=0;[ge]=null;[Uh]=null;#t=null;get oncancel(){return S.getEventListener(this,"oncancel")}set oncancel(t){this[p].set("oncancel",t)}get onerror(){return S.getEventListener(this,"onerror")}set onerror(t){this[p].set("onerror",t)}get onscroll(){return S.getEventListener(this,"onscroll")}set onscroll(t){this[p].set("onscroll",t)}get onselect(){return S.getEventListener(this,"onselect")}set onselect(t){this[p].set("onselect",t)}get onwheel(){return S.getEventListener(this,"onwheel")}set onwheel(t){this[p].set("onwheel",t)}get oncopy(){return S.getEventListener(this,"oncopy")}set oncopy(t){this[p].set("oncopy",t)}get oncut(){return S.getEventListener(this,"oncut")}set oncut(t){this[p].set("oncut",t)}get onpaste(){return S.getEventListener(this,"onpaste")}set onpaste(t){this[p].set("onpaste",t)}get oncompositionend(){return S.getEventListener(this,"oncompositionend")}set oncompositionend(t){this[p].set("oncompositionend",t)}get oncompositionstart(){return S.getEventListener(this,"oncompositionstart")}set oncompositionstart(t){this[p].set("oncompositionstart",t)}get oncompositionupdate(){return S.getEventListener(this,"oncompositionupdate")}set oncompositionupdate(t){this[p].set("oncompositionupdate",t)}get onblur(){return S.getEventListener(this,"onblur")}set onblur(t){this[p].set("onblur",t)}get onfocus(){return S.getEventListener(this,"onfocus")}set onfocus(t){this[p].set("onfocus",t)}get onfocusin(){return S.getEventListener(this,"onfocusin")}set onfocusin(t){this[p].set("onfocusin",t)}get onfocusout(){return S.getEventListener(this,"onfocusout")}set onfocusout(t){this[p].set("onfocusout",t)}get onkeydown(){return S.getEventListener(this,"onkeydown")}set onkeydown(t){this[p].set("onkeydown",t)}get onkeyup(){return S.getEventListener(this,"onkeyup")}set onkeyup(t){this[p].set("onkeyup",t)}get onauxclick(){return S.getEventListener(this,"onauxclick")}set onauxclick(t){this[p].set("onauxclick",t)}get onclick(){return S.getEventListener(this,"onclick")}set onclick(t){this[p].set("onclick",t)}get oncontextmenu(){return S.getEventListener(this,"oncontextmenu")}set oncontextmenu(t){this[p].set("oncontextmenu",t)}get ondblclick(){return S.getEventListener(this,"ondblclick")}set ondblclick(t){this[p].set("ondblclick",t)}get onmousedown(){return S.getEventListener(this,"onmousedown")}set onmousedown(t){this[p].set("onmousedown",t)}get onmouseenter(){return S.getEventListener(this,"onmouseenter")}set onmouseenter(t){this[p].set("onmouseenter",t)}get onmouseleave(){return S.getEventListener(this,"onmouseleave")}set onmouseleave(t){this[p].set("onmouseleave",t)}get onmousemove(){return S.getEventListener(this,"onmousemove")}set onmousemove(t){this[p].set("onmousemove",t)}get onmouseout(){return S.getEventListener(this,"onmouseout")}set onmouseout(t){this[p].set("onmouseout",t)}get onmouseover(){return S.getEventListener(this,"onmouseover")}set onmouseover(t){this[p].set("onmouseover",t)}get onmouseup(){return S.getEventListener(this,"onmouseup")}set onmouseup(t){this[p].set("onmouseup",t)}get ontouchcancel(){return S.getEventListener(this,"ontouchcancel")}set ontouchcancel(t){this[p].set("ontouchcancel",t)}get ontouchend(){return S.getEventListener(this,"ontouchend")}set ontouchend(t){this[p].set("ontouchend",t)}get ontouchmove(){return S.getEventListener(this,"ontouchmove")}set ontouchmove(t){this[p].set("ontouchmove",t)}get ontouchstart(){return S.getEventListener(this,"ontouchstart")}set ontouchstart(t){this[p].set("ontouchstart",t)}get oninvalid(){return S.getEventListener(this,"oninvalid")}set oninvalid(t){this[p].set("oninvalid",t)}get onanimationcancel(){return S.getEventListener(this,"onanimationcancel")}set onanimationcancel(t){this[p].set("onanimationcancel",t)}get onanimationend(){return S.getEventListener(this,"onanimationend")}set onanimationend(t){this[p].set("onanimationend",t)}get onanimationiteration(){return S.getEventListener(this,"onanimationiteration")}set onanimationiteration(t){this[p].set("onanimationiteration",t)}get onanimationstart(){return S.getEventListener(this,"onanimationstart")}set onanimationstart(t){this[p].set("onanimationstart",t)}get onbeforeinput(){return S.getEventListener(this,"onbeforeinput")}set onbeforeinput(t){this[p].set("onbeforeinput",t)}get oninput(){return S.getEventListener(this,"oninput")}set oninput(t){this[p].set("oninput",t)}get onchange(){return S.getEventListener(this,"onchange")}set onchange(t){this[p].set("onchange",t)}get ongotpointercapture(){return S.getEventListener(this,"ongotpointercapture")}set ongotpointercapture(t){this[p].set("ongotpointercapture",t)}get onlostpointercapture(){return S.getEventListener(this,"onlostpointercapture")}set onlostpointercapture(t){this[p].set("onlostpointercapture",t)}get onpointercancel(){return S.getEventListener(this,"onpointercancel")}set onpointercancel(t){this[p].set("onpointercancel",t)}get onpointerdown(){return S.getEventListener(this,"onpointerdown")}set onpointerdown(t){this[p].set("onpointerdown",t)}get onpointerenter(){return S.getEventListener(this,"onpointerenter")}set onpointerenter(t){this[p].set("onpointerenter",t)}get onpointerleave(){return S.getEventListener(this,"onpointerleave")}set onpointerleave(t){this[p].set("onpointerleave",t)}get onpointermove(){return S.getEventListener(this,"onpointermove")}set onpointermove(t){this[p].set("onpointermove",t)}get onpointerout(){return S.getEventListener(this,"onpointerout")}set onpointerout(t){this[p].set("onpointerout",t)}get onpointerover(){return S.getEventListener(this,"onpointerover")}set onpointerover(t){this[p].set("onpointerover",t)}get onpointerup(){return S.getEventListener(this,"onpointerup")}set onpointerup(t){this[p].set("onpointerup",t)}get ontransitioncancel(){return S.getEventListener(this,"ontransitioncancel")}set ontransitioncancel(t){this[p].set("ontransitioncancel",t)}get ontransitionend(){return S.getEventListener(this,"ontransitionend")}set ontransitionend(t){this[p].set("ontransitionend",t)}get ontransitionrun(){return S.getEventListener(this,"ontransitionrun")}set ontransitionrun(t){this[p].set("ontransitionrun",t)}get ontransitionstart(){return S.getEventListener(this,"ontransitionstart")}set ontransitionstart(t){this[p].set("ontransitionstart",t)}get accessKey(){return this[Ta]}set accessKey(t){this[Ta]=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;if(t==="true"||t==="plaintext-only")return!0;if(t==="inherit")return this[W]?.isContentEditable??!1;return!1}get offsetHeight(){return this[tb]}get offsetWidth(){return this[eb]}get offsetLeft(){return this[rb]}get offsetTop(){return this[ob]}get clientHeight(){return this[ib]}get clientWidth(){return this[sb]}get clientLeft(){return this[nb]}get clientTop(){return this[lb]}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);if(isNaN(e))this.setAttribute("tabindex","0");else this.setAttribute("tabindex",String(e))}get innerText(){if(!this[tt])return this.textContent;let t="";for(let e of this[_])if(e[D]===T.elementNode){let o=e,s=this[m].getComputedStyle(o);if(o[z]!=="SCRIPT"&&o[z]!=="STYLE"&&o[z]!=="svg"){let n=s.display;if(n!=="none"){let l=s.textTransform,a=o.innerText;if((n==="block"||n==="flex")&&t&&a)t+=`
91
- `;let y=a;switch(l){case"uppercase":y=y.toUpperCase();break;case"lowercase":y=y.toLowerCase();break;case"capitalize":y=y.replace(/(^|\s)\S/g,(u)=>u.toUpperCase());break}t+=y}}}else if(e[D]===T.textNode)t+=e.textContent.replace(/[\n\r]/,"");return t}set innerText(t){let e=this[_];while(e.length)this.removeChild(e[0]);let o=t.split(/[\n\r]/),s=this[x];for(let n=0,l=o.length;n<l;n++){if(n!==0)this.appendChild(s.createElement("br"));this.appendChild(s.createTextNode(o[n]))}}get outerText(){return this.innerText}set outerText(t){if(!this[W])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 o=0,s=e.length;o<s;o++){if(o!==0)this[W].insertBefore(this[x].createElement("br"),this);this[W].insertBefore(this[x].createTextNode(e[o]),this)}this[W].removeChild(this)}get style(){if(!this[ge])this[ge]=new Kr(h,this[m],{element:this});return this[ge]}set style(t){this.style.cssText=typeof t==="string"?t:""}get dataset(){return this[Uh]??=new rm(h,this)}get dir(){return this.getAttribute("dir")||""}set dir(t){this.setAttribute("dir",t)}get hidden(){return this.getAttribute("hidden")!==null}set hidden(t){if(!t)this.removeAttribute("hidden");else this.setAttribute("hidden","")}get inert(){return this.getAttribute("inert")!==null}set inert(t){if(!t)this.removeAttribute("inert");else this.setAttribute("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 Zl("click",{bubbles:!0,composed:!0,cancelable:!0}))}blur(){il.blur(this)}focus(){il.focus(this)}[ct](t=!1){let e=super[ct](t);return e[Ta]=this[Ta],e}[sr](){let t=this[m],e=this[ot],o=t.customElements[bi];if(this.constructor===t.HTMLElement&&e.includes("-")&&o){if(!this.#t){let s=this.#e.bind(this),n=o.get(e);if(n)n.unshift(s);else o.set(e,[s]);this.#t=s}}super[sr]()}[nr](){let t=this[m],e=this[ot],o=t.customElements[bi];if(this.constructor===t.HTMLElement&&e.includes("-")&&o){let s=o.get(e);if(s&&this.#t){let n=s.indexOf(this.#t);if(n!==-1)s.splice(n,1);if(!s.length)o.delete(e);this.#t=null}}super[nr]()}[Re](t,e){super[Re](t,e),this[m][Qs].enqueueReaction(this,"attributeChangedCallback",[t.name,e?.value??null,t.value])}[br](t){super[br](t),this[m][Qs].enqueueReaction(this,"attributeChangedCallback",[t.name,t.value,null])}[At](){super[At](),this[ge]=null,this[Uh]=null}#e(){if(!this[W])return;let t=this[m],e=this[ot],o=this[x].createElement(e),s=o[U];o[_]=this[_],o[bt]=this[bt],o[Ns]=null,o[ir]=null,o[tt]=this[tt],o[ve]=this[ve],o[Ut]=this[Ut],o[W]=this[W],o[Ie]=this[Ie],o[Je]=this[Je],o[ro]=this[ro],o[eo]=this[eo],o[U]=this[U],o[He]=this[He],o[St][Ai]=this[St][Ai],o[St][Wr]=this[St][Wr],o[St][Q]=this[St][Q];for(let u of o[St][Q].values())u[xt]=o;this[Mr](),this[_]=[],this[bt]=[],this[Ns]=null,this[ir]=null,this[W]=null,this[ve]=null,this[Ut]=null,this[Ie]=null,this[Je]=null,this[ro]=[],this[eo]=null,this[U]=s,this[He]=[],this[St][Ai]=new Map,this[St][Wr]=new Map,this[St][Q]=new Map;for(let u of o[_])u[W]=o;let n=o[W][_],l=o[W][bt];n[n.indexOf(this)]=o,l[l.indexOf(this)]=o;let a=t.customElements[bi],y=a.get(e);if(y&&this.#t){let u=y.indexOf(this.#t);if(u!==-1)y.splice(u,1);if(!y.length)a.delete(e);this.#t=null}if(o[tt]){if(o[be])o[be][tt]=!0;o[sr]()}}}class om{element;constructor(t){this.element=t}getOrigin(){try{return new URL(this.getHref()).origin}catch(t){return""}}getHref(){if(!this.element.hasAttribute("href"))return"";try{return new URL(this.element.getAttribute("href"),this.element[x].location.href).href}catch(t){return this.element.getAttribute("href")}}setHref(t){this.element.setAttribute("href",t)}getProtocol(){try{return new URL(this.getHref()).protocol}catch(t){return""}}setProtocol(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.protocol=t,this.element.setAttribute("href",e.href)}getUsername(){try{return new URL(this.getHref()).username}catch(t){return""}}setUsername(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.username=t,this.element.setAttribute("href",e.href)}getPassword(){try{return new URL(this.getHref()).password}catch(t){return""}}setPassword(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.password=t,this.element.setAttribute("href",e.href)}getHost(){try{return new URL(this.getHref()).host}catch(t){return""}}setHost(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.host=t,this.element.setAttribute("href",e.href)}getHostname(){try{return new URL(this.getHref()).hostname}catch(t){return""}}setHostname(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.hostname=t,this.element.setAttribute("href",e.href)}getPort(){try{return new URL(this.getHref()).port}catch(t){return""}}setPort(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.port=t,this.element.setAttribute("href",e.href)}getPathname(){try{return new URL(this.getHref()).pathname}catch(t){return""}}setPathname(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.pathname=t,this.element.setAttribute("href",e.href)}getSearch(){try{return new URL(this.getHref()).search}catch(t){return""}}setSearch(t){let e;try{e=new URL(this.getHref())}catch(o){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(o){return""}return e.hash}setHash(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.hash=t,this.element.setAttribute("href",e.href)}}class Rp extends B{[oo]=null;#t=new om(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(){if(!this[oo])this[oo]=new Or(h,this,"rel");return this[oo]}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[lr]&&t.type==="click"&&t instanceof qe&&(t.eventPhase===ae.none||t.eventPhase===ae.bubbling)){let o=this.href;if(o){let s=[];if(this.relList.contains("noreferrer"))s.push("noreferrer");if(this.relList.contains("noopener"))s.push("noopener");if(this[m].open(o,this.target||"_self",s.join(",")),this[m].closed)t.stopImmediatePropagation()}}return e}}class Fp extends B{[oo]=null;#t=new om(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(){if(!this[oo])this[oo]=new Or(h,this,"rel");return this[oo]}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[lr]&&t[Qt]==="click"&&t[xr]===ae.none&&t instanceof qe){let o=this.href;if(o){if(this[m].open(o,this.target||"_self"),this[m].closed)t.stopImmediatePropagation()}}return e}}class sl{constructor(t){if(t!==h)throw 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}}import JP from"crypto";class Vp extends N{track;constructor(t,e=null){super(t,e);this.track=e?.track??null}}class nl extends vt{active=!0;id=JP.randomUUID();onaddtrack=null;onremovetrack=null;[fi]=[];constructor(t){super();if(!this[m])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);if(t!==void 0)this[fi]=t instanceof nl?t[fi].slice():t}addTrack(t){if(this[fi].includes(t))return;this[fi].push(t),this.dispatchEvent(new Vp("addtrack",{track:t}))}clone(){return new this.constructor(this)}getAudioTracks(){return this[fi].filter((t)=>t.kind==="audio")}getTrackById(t){for(let e of this[fi])if(e.id===t)return e;return null}getVideoTracks(){return this[fi].filter((t)=>t.kind==="video")}removeTrack(t){let e=this[fi].indexOf(t);if(e===-1)return;this[fi].splice(e,1),this.dispatchEvent(new Vp("removetrack",{track:t}))}}var tg;(function(t){t.subtitles="subtitles",t.captions="captions",t.descriptions="descriptions",t.chapters="chapters",t.metadata="metadata"})(tg||(tg={}));var Ps=tg;class an extends B{[kh]=1;[Tl]=!0;[Mh]=0;[Ih]=1;[Rh]=1;[Ca]=!1;[Cl]=!1;[Fh]=!0;[pb]=new sl(h);[ub]=NaN;[Qe]=null;[hb]=!1;[cb]=0;[kn]=0;[db]=!1;[bb]=new sl(h);[_h]="";[gb]=new sl(h);[Sb]=new this[m].RemotePlayback;[Dm]=null;[Wh]=null;[Yh]=null;[Vh]=[];get onabort(){return S.getEventListener(this,"onabort")}set onabort(t){this[p].set("onabort",t)}get oncanplay(){return S.getEventListener(this,"oncanplay")}set oncanplay(t){this[p].set("oncanplay",t)}get oncanplaythrough(){return S.getEventListener(this,"oncanplaythrough")}set oncanplaythrough(t){this[p].set("oncanplaythrough",t)}get ondurationchange(){return S.getEventListener(this,"ondurationchange")}set ondurationchange(t){this[p].set("ondurationchange",t)}get onemptied(){return S.getEventListener(this,"onemptied")}set onemptied(t){this[p].set("onemptied",t)}get onended(){return S.getEventListener(this,"onended")}set onended(t){this[p].set("onended",t)}get onloadeddata(){return S.getEventListener(this,"onloadeddata")}set onloadeddata(t){this[p].set("onloadeddata",t)}get onloadedmetadata(){return S.getEventListener(this,"onloadedmetadata")}set onloadedmetadata(t){this[p].set("onloadedmetadata",t)}get onloadstart(){return S.getEventListener(this,"onloadstart")}set onloadstart(t){this[p].set("onloadstart",t)}get onpause(){return S.getEventListener(this,"onpause")}set onpause(t){this[p].set("onpause",t)}get onplay(){return S.getEventListener(this,"onplay")}set onplay(t){this[p].set("onplay",t)}get onplaying(){return S.getEventListener(this,"onplaying")}set onplaying(t){this[p].set("onplaying",t)}get onprogress(){return S.getEventListener(this,"onprogress")}set onprogress(t){this[p].set("onprogress",t)}get onratechange(){return S.getEventListener(this,"onratechange")}set onratechange(t){this[p].set("onratechange",t)}get onresize(){return S.getEventListener(this,"onresize")}set onresize(t){this[p].set("onresize",t)}get onseeked(){return S.getEventListener(this,"onseeked")}set onseeked(t){this[p].set("onseeked",t)}get onseeking(){return S.getEventListener(this,"onseeking")}set onseeking(t){this[p].set("onseeking",t)}get onstalled(){return S.getEventListener(this,"onstalled")}set onstalled(t){this[p].set("onstalled",t)}get onsuspend(){return S.getEventListener(this,"onsuspend")}set onsuspend(t){this[p].set("onsuspend",t)}get ontimeupdate(){return S.getEventListener(this,"ontimeupdate")}set ontimeupdate(t){this[p].set("ontimeupdate",t)}get onvolumechange(){return S.getEventListener(this,"onvolumechange")}set onvolumechange(t){this[p].set("onvolumechange",t)}get onwaiting(){return S.getEventListener(this,"onwaiting")}set onwaiting(t){this[p].set("onwaiting",t)}get buffered(){return this[pb]}get duration(){return this[ub]}get error(){return this[Qe]}get ended(){return this[hb]}get networkState(){return this[cb]}get readyState(){return this[kn]}get remote(){return this[Sb]}get seeking(){return this[db]}get seekable(){return this[bb]}get sinkId(){return this[_h]}get played(){return this[gb]}get autoplay(){return this.getAttribute("autoplay")!==null}set autoplay(t){if(!t)this.removeAttribute("autoplay");else this.setAttribute("autoplay","")}get controls(){return this.getAttribute("controls")!==null}set controls(t){if(!t)this.removeAttribute("controls");else this.setAttribute("controls","")}get loop(){return this.getAttribute("loop")!==null}set loop(t){if(!t)this.removeAttribute("loop");else this.setAttribute("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[x].location.href).href}catch(t){return this.getAttribute("src")}}set src(t){if(this.setAttribute("src",t),Boolean(t))this.dispatchEvent(new N("canplay",{bubbles:!1,cancelable:!1})),this.dispatchEvent(new N("durationchange",{bubbles:!1,cancelable:!1}))}get controlsList(){if(this[Dm]===null)this[Dm]=new Or(h,this,"controlslist");return this[Dm]}set controlsList(t){this.setAttribute("controlslist",t)}get mediaKeys(){return this[Wh]}get muted(){if(this[Ca])return this[Ca];if(!this[Cl])return this.getAttribute("muted")!==null;return!1}set muted(t){if(this[Ca]=!!t,!t&&!this[Cl])this.removeAttribute("muted");else this.setAttribute("muted","")}get defaultMuted(){return this[Cl]}set defaultMuted(t){if(this[Cl]=!!t,!this[Cl]&&!this[Ca])this.removeAttribute("muted");else this.setAttribute("muted","")}get disableRemotePlayback(){return this.getAttribute("disableremoteplayback")!==null}set disableRemotePlayback(t){if(!t)this.removeAttribute("disableremoteplayback");else this.setAttribute("disableremoteplayback","")}get srcObject(){return this[Yh]}set srcObject(t){if(t!==null&&!(t instanceof nl))throw new this[m].TypeError("Failed to set the 'srcObject' property on 'HTMLMediaElement': The provided value is not of type 'MediaStream'.");this[Yh]=t}get textTracks(){let t=[];for(let e of this[Vh])t.push(e);for(let e of this.querySelectorAll("track")[Q])t.push(e.track);return new this[m].TextTrackList(h,t)}get currentSrc(){let t=this.src;if(t)return t;let e=this.querySelector("source");return e?e.src:""}get volume(){return this[kh]}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].`,w.indexSizeError);this[kh]=e}get crossOrigin(){let t=this.getAttribute("crossorigin");if(t==="use-credentials")return"use-credentials";if(t!==null)return"anonymous";return null}set crossOrigin(t){this.setAttribute("crossorigin",t)}get currentTime(){return this[Mh]}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[Mh]=e}get playbackRate(){return this[Ih]}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[Ih]=e}get defaultPlaybackRate(){return this[Rh]}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[Rh]=e}get preservesPitch(){return this[Fh]}set preservesPitch(t){this[Fh]=Boolean(t)}get paused(){return this[Tl]}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,o){let s=this[m];if(arguments.length===0)throw new s.TypeError("Failed to execute 'addTextTrack' on 'HTMLMediaElement': 1 argument required, but only 0 present.");if(!Ps[t])throw new s.TypeError(`Failed to execute 'addTextTrack' on 'HTMLMediaElement': The provided value '${t}' is not a valid enum value of type TextTrackKind.`);let n=new s.TextTrack(h);return n[xo]=t,n[Us]=e||"",n[Il]=o||"",this[Vh].push(n),n}pause(){if(this[Tl])return;this[Tl]=!0,this.dispatchEvent(new N("pause",{bubbles:!1,cancelable:!1}))}async play(){if(!this[Tl])return;this[Tl]=!1,this.dispatchEvent(new N("play",{bubbles:!1,cancelable:!1})),this.dispatchEvent(new N("playing",{bubbles:!1,cancelable:!1}))}canPlayType(t){return""}fastSeek(t){}load(){this.dispatchEvent(new N("emptied",{bubbles:!1,cancelable:!1}))}async setMediaKeys(t){this[Wh]=t}async setSinkId(t){this[_h]=t}captureStream(){return new this[m].MediaStream}[ct](t=!1){return super[ct](t)}}class ia extends an{}class Dp extends B{get href(){if(!this.hasAttribute("href"))return this[x].location.href;try{return new URL(this.getAttribute("href"),this[x].location.href).href}catch(t){return this.getAttribute("href")}}set href(t){this.setAttribute("href",t)}get target(){return this.getAttribute("target")||""}set target(t){this.setAttribute("target",t)}[ct](t=!1){return super[ct](t)}}class Bp extends B{get onafterprint(){return S.getEventListener(this,"onafterprint")}set onafterprint(t){this[p].set("onafterprint",t)}get onbeforeprint(){return S.getEventListener(this,"onbeforeprint")}set onbeforeprint(t){this[p].set("onbeforeprint",t)}get onbeforeunload(){return S.getEventListener(this,"onbeforeunload")}set onbeforeunload(t){this[p].set("onbeforeunload",t)}get ongamepadconnected(){return S.getEventListener(this,"ongamepadconnected")}set ongamepadconnected(t){this[p].set("ongamepadconnected",t)}get ongamepaddisconnected(){return S.getEventListener(this,"ongamepaddisconnected")}set ongamepaddisconnected(t){this[p].set("ongamepaddisconnected",t)}get onhashchange(){return S.getEventListener(this,"onhashchange")}set onhashchange(t){this[p].set("onhashchange",t)}get onlanguagechange(){return S.getEventListener(this,"onlanguagechange")}set onlanguagechange(t){this[p].set("onlanguagechange",t)}get onmessage(){return S.getEventListener(this,"onmessage")}set onmessage(t){this[p].set("onmessage",t)}get onmessageerror(){return S.getEventListener(this,"onmessageerror")}set onmessageerror(t){this[p].set("onmessageerror",t)}get onoffline(){return S.getEventListener(this,"onoffline")}set onoffline(t){this[p].set("onoffline",t)}get ononline(){return S.getEventListener(this,"ononline")}set ononline(t){this[p].set("ononline",t)}get onpagehide(){return S.getEventListener(this,"onpagehide")}set onpagehide(t){this[p].set("onpagehide",t)}get onpageshow(){return S.getEventListener(this,"onpageshow")}set onpageshow(t){this[p].set("onpageshow",t)}get onpopstate(){return S.getEventListener(this,"onpopstate")}set onpopstate(t){this[p].set("onpopstate",t)}get onrejectionhandled(){return S.getEventListener(this,"onrejectionhandled")}set onrejectionhandled(t){this[p].set("onrejectionhandled",t)}get onstorage(){return S.getEventListener(this,"onstorage")}set onstorage(t){this[p].set("onstorage",t)}get onunhandledrejection(){return S.getEventListener(this,"onunhandledrejection")}set onunhandledrejection(t){this[p].set("onunhandledrejection",t)}get onunload(){return S.getEventListener(this,"onunload")}set onunload(t){this[p].set("onunload",t)}}class Op extends B{}var ZP=/^([^\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))*$/,tA=/^(?:(?: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*)?$/;class qr{element;constructor(t){this.element=t}get badInput(){return this.element[ot]==="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[Ce].length>0}get patternMismatch(){return this.element[ot]==="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[ot]==="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[ot]==="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[ot]==="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[ot]==="input"||this.element[ot]==="textarea")&&this.element.maxLength>0&&this.element.value.length>this.element.maxLength}get tooShort(){return(this.element[ot]==="input"||this.element[ot]==="textarea")&&this.element.minLength>0&&this.element.value.length>0&&this.element.value.length<this.element.minLength}get typeMismatch(){return this.element[ot]==="input"&&this.element.value.length>0&&(this.element.type==="email"&&!ZP.test(this.element.value)||this.element.type==="url"&&!tA.test(this.element.value))}get valueMissing(){if(!this.element.required||this.element[ot]==="object"||this.element[ot]==="output")return!1;if(this.element[ot]==="input"){if(this.element.type==="checkbox")return!this.element.checked;else if(this.element.type==="radio"){if(this.element.checked)return!1;if(!this.element.name)return!0;let t=this.element[Ut]||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}}class $r{static getAssociatedLabelElements(t){let e=t.id,o;if(e&&t[tt])o=(t[ve]||t[x]).querySelectorAll(`label[for="${e}"]`)[Q];else o=[];let s=t[W];while(s){if(s.tagName==="LABEL"){o.push(s);break}s=s[W]}return new Yo(h,o)}}import{URL as eA}from"url";var rA=["submit","reset","button","menu"];class Gp extends B{[Ce]="";[Ke]=new qr(this);[Ut]=null;[Gn]=null;get validationMessage(){return this[Ce]}get validity(){return this[Ke]}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){if(!t)this.removeAttribute("disabled");else this.setAttribute("disabled","")}get type(){let t=this.getAttribute("type");if(t===null||!rA.includes(t))return"submit";return t}set type(t){this.setAttribute("type",t)}get formAction(){if(!this.hasAttribute("formaction"))return this[x].location.href;try{return new eA(this.getAttribute("formaction"),this[x].location.href).href}catch(t){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){if(!t)this.removeAttribute("formnovalidate");else this.setAttribute("formnovalidate","")}get formTarget(){return this.getAttribute("formtarget")||""}set formTarget(t){this.setAttribute("formtarget",t)}get form(){if(this[Ut])return this[Ut];let t=this.getAttribute("form");if(!t||!this[tt])return null;return this[x].getElementById(t)}get labels(){return $r.getAssociatedLabelElements(this)}get popoverTargetElement(){return this[Gn]}set popoverTargetElement(t){if(t!==null&&!(t instanceof B))throw new this[m].TypeError("Failed to set the 'popoverTargetElement' property on 'HTMLInputElement': Failed to convert value to 'Element'.");this[Gn]=t}get popoverTargetAction(){let t=this.getAttribute("popovertargetaction");if(t===null||t!=="hide"&&t!=="show"&&t!=="toggle")return"toggle";return 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[Ke].valid;if(!t)this.dispatchEvent(new N("invalid",{bubbles:!0,cancelable:!0}));return t}reportValidity(){return this.checkValidity()}setCustomValidity(t){this[Ce]=String(t)}dispatchEvent(t){if(t.type==="click"&&t instanceof qe&&t.eventPhase===ae.none&&this.disabled)return!1;let e=super.dispatchEvent(t);if(!t[lr]&&t.type==="click"&&t.eventPhase===ae.none&&t instanceof qe){let o=this.type;if(o==="submit"||o==="reset"){let s=this.form;if(s){if(o==="submit"&&this[tt])s.requestSubmit(this);else if(o==="reset")s.reset()}}}return e}}class bc{height;width;constructor(t,e){this.width=t,this.height=e}close(){}}class gc{width;height;constructor(t,e){this.width=t,this.height=e}getContext(t,e){return null}async convertToBlob(t){return new ie([])}transferToImageBitmap(){return new bc(this.width,this.height)}}var cS="S3F/aBCdEfGHIjKlMnOpQRStUvWxYz1234567890+1AbC2DEf2GHi3jK34le+ab12C3+1aBCdEf==";class Up extends B{get oncontextlost(){return S.getEventListener(this,"oncontextlost")}set oncontextlost(t){this[p].set("oncontextlost",t)}get oncontextrestored(){return S.getEventListener(this,"oncontextrestored")}set oncontextrestored(t){this[p].set("oncontextrestored",t)}get onwebglcontextcreationerror(){return S.getEventListener(this,"onwebglcontextcreationerror")}set onwebglcontextcreationerror(t){this[p].set("onwebglcontextcreationerror",t)}get onwebglcontextlost(){return S.getEventListener(this,"onwebglcontextlost")}set onwebglcontextlost(t){this[p].set("onwebglcontextlost",t)}get onwebglcontextrestored(){return S.getEventListener(this,"onwebglcontextrestored")}set onwebglcontextrestored(t){this[p].set("onwebglcontextrestored",t)}get width(){let t=this.getAttribute("width");return t!==null?Number(t):300}set width(t){this.setAttribute("width",String(t))}get height(){let t=this.getAttribute("height");return t!==null?Number(t):150}set height(t){this.setAttribute("height",String(t))}captureStream(t){let e=new this[m].MediaStream,o=new this[m].CanvasCaptureMediaStreamTrack(h,this);if(o[xo]="video",o[Pi].deviceId=cS,o[Pi].aspectRatio.max=this.width,o[Pi].height.max=this.height,o[Pi].width.max=this.width,o[In].deviceId=cS,t!==void 0)o[Pi].frameRate.max=t,o[In].frameRate=t;return e.addTrack(o),e}getContext(t,e){return null}toDataURL(t,e){return""}toBlob(t,e,o){t(new ie([]))}transferControlToOffscreen(){return new gc(this.width,this.height)}}class Hp extends B{}class Wp extends B{get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t)}}class _p extends B{[Ui]=null;get options(){if(!this[Ui])this[Ui]=oe.getElementsByTagName(this,"OPTION");return this[Ui]}}class Yp extends B{get ontoggle(){return S.getEventListener(this,"ontoggle")}set ontoggle(t){this[p].set("ontoggle",t)}get open(){return this.getAttribute("open")!==null}set open(t){if(t)this.setAttribute("open","");else this.removeAttribute("open")}[Re](t,e){if(super[Re](t,e),t[rt]==="open"){if(t[q]!==e?.[q])this.dispatchEvent(new N("toggle"))}}[br](t){if(super[br](t),t&&t[rt]==="open")this.dispatchEvent(new N("toggle"))}dispatchEvent(t){let e=super.dispatchEvent(t);if(!t[lr]&&t.type==="click"&&t.eventPhase===ae.bubbling&&t instanceof qe){let o=t[wr];if(o)if(o[ot]==="summary"&&o[W]===this)this.open=!this.open;else{let s=o;for(let n of this[bt])if(n[ot]==="summary"){s=n;break}if(s&&s.contains(o))this.open=!this.open}}return e}}class Kp extends B{[Lh]="";get oncancel(){return S.getEventListener(this,"oncancel")}set oncancel(t){this[p].set("oncancel",t)}get onclose(){return S.getEventListener(this,"onclose")}set onclose(t){this[p].set("onclose",t)}get returnValue(){return this[Lh]}set returnValue(t){this[Lh]=String(t)}set open(t){if(t)this.setAttribute("open","");else this.removeAttribute("open")}get open(){return this.getAttribute("open")!==null}close(t){let e=this.open;if(this.removeAttribute("open"),this.returnValue=t!==void 0?String(t):"",e)this.dispatchEvent(new N("close"))}showModal(){this.setAttribute("open","")}show(){this.setAttribute("open","")}}class Qp extends B{}class jp extends B{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[x].location.href).href}catch(t){return this.getAttribute("src")}}set src(t){this.setAttribute("src",t)}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}}class sa extends B{[Gi]=null;[Ut]=null;get elements(){if(!this[Gi])this[Gi]=new de(h,()=>yt.querySelectorAll(this,"input,button,textarea,select")[Q]);return this[Gi]}get form(){if(this[Ut])return this[Ut];let t=this.getAttribute("form");if(!t||!this[tt])return null;return this[x].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!1}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){if(!t)this.removeAttribute("disabled");else this.setAttribute("disabled","")}checkValidity(){return!0}reportValidity(){return!0}setCustomValidity(t){}}class na extends de{constructor(t,e){super(t,()=>e[lo]());this[xt]=e}namedItem(t){return this[xt][Mm](t)}}class As{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[to];if(t.closed)return Promise.resolve();return t.closed=!0,new Promise((o,s)=>{if(!t.window){o();return}if(t.parentFrame){let n=t.parentFrame.childFrames.indexOf(t);if(n!==-1)t.parentFrame.childFrames.splice(n,1)}if(!t.childFrames.length){if(t[Pt].destroy().then(()=>{if(e&&t.window)e.disconnect(t.window);if(t.window={closed:!0},t[io]=null,t[Si]=null,t[he])t[he].navigation=[];o()}).catch((n)=>s(n)),t.window)t.window[At]();return}Promise.all(t.childFrames.slice().map((n)=>this.destroyFrame(n))).then(()=>{if(t[Pt].destroy().then(()=>{if(e&&t.window)e.disconnect(t.window);if(t.window={closed:!0},t[io]=null,t[Si]=null,t[he])t[he].navigation=[];o()}).catch((n)=>s(n)),t.window)t.window[At]()}).catch((n)=>s(n))})}}var eg;(function(t){t.anyOrigin="anyOrigin",t.sameOrigin="sameOrigin",t.strictOrigin="strictOrigin"})(eg||(eg={}));var im=eg;class qp{static validateCrossOriginPolicy(t,e){let o=t.page.context.browser.settings,s=t.page.mainFrame.window.location;if(t[io])s=t[io].window.location;else if(t.parentFrame)s=t.parentFrame.window.location;if(o.navigation.crossOriginPolicy===im.sameOrigin&&s.protocol!=="about:"&&e.protocol!=="about:"&&e.protocol!=="javascript:"&&s.origin!==e.origin)return!1;if(o.navigation.crossOriginPolicy===im.strictOrigin&&s.protocol==="https:"&&e.protocol==="http:")return!1;return!0}static validateFrameNavigation(t){let e=t.page.context.browser.settings;if(t.page.context.browser.windowClass&&t.page.context===t.page.context.browser.defaultContext&&t.page.context.pages[0]===t.page&&t.page.mainFrame===t)return!1;if(e.navigation.disableMainFrameNavigation&&t.page.mainFrame===t)return!1;if(e.navigation.disableChildFrameNavigation&&t.page.mainFrame!==t)return!1;if(e.navigation.disableChildPageNavigation&&!!t[io])return!1;return!0}}class Xr{static async navigate(t){let{windowClass:e,frame:o,url:s,formData:n,method:l,goToOptions:a,disableHistory:y}=t,u=o.page.context.browser[to],c=a?.referrer||o.window.location.origin,d=Fo.getRelativeURL(o,s),g=new URL(d.href.split("#")[0]),f=new URL(o.url.split("#")[0]),E=()=>{let Ue=o[he].navigation;o[he].navigation=[];for(let Jr of Ue)Jr()};if(!o.window)throw Error('The frame has been destroyed, the "window" property is not set.');if(g.href===f.href&&d.hash&&d.hash!==o.window?.location.hash){let Ue=o[Oe];if(!y)Ue.currentItem.popState=!0,Ue.push({title:"",href:d.href,state:null,popState:!0,scrollRestoration:ii.manual,method:l||(n?"POST":"GET"),formData:n||null});return o.window.location[_r](o,d.href),null}if(d.protocol==="javascript:"){if(o&&o.page.context.browser.settings.enableJavaScriptEvaluation){let Ue=o.window[Eo],Jr=o[Pt],Cs=Ue.startTask(),vm=d.href.replace("javascript:","");await new Promise((Ig)=>{o.window.requestAnimationFrame(()=>{let sf=setImmediate(()=>{Jr.endTask(nf),Ig(null)}),nf=Jr.startTask(()=>()=>{clearImmediate(sf),Ig(null)});o.window[Uo](vm,{filename:o.url})})}),Ue.endTask(Cs),E()}return null}if(!qp.validateCrossOriginPolicy(o,d))return null;if(!qp.validateFrameNavigation(o)){if(!o.page.context.browser.settings.navigation.disableFallbackToSetURL)o.window.location[_r](o,d.href);return null}if(!y)o[Oe].push({title:"",href:d.href,state:null,popState:!1,scrollRestoration:ii.auto,method:l||(n?"POST":"GET"),formData:n||null});let R=o.window,H=o[Pt],{innerWidth:pt,innerHeight:gt,devicePixelRatio:Rt}=R,lt=o.parentFrame?o.parentFrame.window:o.page.mainFrame.window,dt=o.page.mainFrame.window;if(o[Pt]=new Js(o),o.window=new e(o,{url:d.href,width:pt,height:gt}),o.window[ao]=lt,o.window[Jo]=dt,o.window.devicePixelRatio=Rt,u)u.observe(o.window);if(c)o.window.document[Pr]=c;let ee=o[Pt].startTask(),Ct=()=>{H.destroy().then(()=>{if(u)u.disconnect(R);o[Pt].endTask(ee)}),R[At]()};if(o.childFrames.length)Promise.all(o.childFrames.map((Ue)=>As.destroyFrame(Ue))).then(Ct);else Ct();if(d.protocol==="about:"){if(a?.beforeContentCallback)a.beforeContentCallback(o.window);if(o.page.context.browser.settings.navigation.beforeContentCallback)o.page.context.browser.settings.navigation.beforeContentCallback(o.window);return await new Promise((Ue)=>o.page.mainFrame.window.requestAnimationFrame(Ue)),E(),null}let or=o.window[Eo],Ye=o[Pt],Hr=new o.window.AbortController,zr=setTimeout(()=>{Ye.endTimer(zr),Hr.abort(new o.window.DOMException("The operation was aborted. Request timed out.",w.timeoutError))},a?.timeout??30000);Ye.startTimer(zr);let Ts=or.startTask(),hi=()=>{clearTimeout(zr),Ye.endTimer(zr),or.endTask(Ts),E()},fa=new o.window.Headers(a?.headers),Bo,Pa;if(a?.hard)fa.set("Cache-Control","no-cache");let xm=new Br({browserFrame:o,window:o.window,url:d.href,disableSameOriginPolicy:!0,init:{referrer:c,referrerPolicy:a?.referrerPolicy||"origin",signal:Hr.signal,method:l||(n?"POST":"GET"),headers:fa,body:n}});try{if(Bo=await xm.send(),o.parentFrame){let Ue=o.parentFrame.window.location,Jr=Bo.headers?.get("X-Frame-Options")?.toLowerCase(),Cs=Ue.origin===d.origin||d.origin==="null";if(Jr==="deny"||Jr==="sameorigin"&&!Cs)throw Error(`Refused to display '${s}' in a frame because it set 'X-Frame-Options' to '${Jr}'.`)}Pa=await Bo.text()}catch(Ue){throw hi(),Ue}if(!o.window)return null;if(Bo.url)o.window[no][_r](o,Bo.url);if(!Bo.ok)o.page.console.error(`GET ${d.href} ${Bo.status} (${Bo.statusText})`);if(a?.beforeContentCallback)a.beforeContentCallback(o.window);if(o.page.context.browser.settings.navigation.beforeContentCallback)o.page.context.browser.settings.navigation.beforeContentCallback(o.window);return await new Promise((Ue)=>{o.window.requestAnimationFrame(()=>{let Jr,Cs=Ye.startTask(()=>()=>{clearImmediate(Jr),Ue(null)});Jr=setImmediate(()=>{Ye.endTask(Cs),Ue(null)}),o.content=Pa})}),hi(),Bo}static navigateBack(t){let{windowClass:e,frame:o,goToOptions:s}=t,n=o[Oe],l=n.items[n.items.indexOf(n.currentItem)-1];if(!l)return new Promise((u)=>{o.window.requestAnimationFrame(()=>{let c=o[he].navigation;o[he].navigation=[];for(let d of c)d();u(null)})});let a=new URL(n.currentItem.href).origin,y=new URL(l.href).origin;if(n.currentItem=l,!l.popState||a!==y)return Xr.navigate({windowClass:e,frame:o,goToOptions:{...s,referrer:o.url},url:l.href,method:l.method,formData:l.formData,disableHistory:!0});return o.window.location[_r](o,l.href),o.window.dispatchEvent(new o.window.PopStateEvent("popstate",{state:l.state,hasUAVisualTransition:!1})),Promise.resolve(null)}static navigateForward(t){let{windowClass:e,frame:o,goToOptions:s}=t,n=o[Oe],l=n.items[n.items.indexOf(n.currentItem)+1];if(!l)return new Promise((u)=>{o.window.requestAnimationFrame(()=>{let c=o[he].navigation;o[he].navigation=[];for(let d of c)d();u(null)})});let a=new URL(n.currentItem.href).origin,y=new URL(l.href).origin;if(n.currentItem=l,!l.popState||a!==y)return Xr.navigate({windowClass:e,frame:o,goToOptions:{...s,referrer:o.url},url:l.href,method:l.method,formData:l.formData,disableHistory:!0});return o.window.location[_r](o,l.href),o.window.dispatchEvent(new o.window.PopStateEvent("popstate",{state:l.state,hasUAVisualTransition:!1})),Promise.resolve(null)}static navigateSteps(t){if(!t.steps)return this.reload(t);let{windowClass:e,frame:o,goToOptions:s,steps:n}=t,l=o[Oe],a=l.items.indexOf(l.currentItem),y=a+n,u=l.items[y];if(!u)return new Promise((g)=>{o.window.requestAnimationFrame(()=>{let f=o[he].navigation;o[he].navigation=[];for(let E of f)E();g(null)})});let c=new URL(l.currentItem.href).origin,d=!0;if(n<0){for(let g=a;g>y;g--)if(!l.items[g].popState||c!==new URL(l.items[g].href).origin){d=!1;break}}else for(let g=a;g<y;g++)if(!l.items[g].popState||c!==new URL(l.items[g].href).origin){d=!1;break}if(l.currentItem=u,!d)return Xr.navigate({windowClass:e,frame:o,goToOptions:{...s,referrer:o.url},url:u.href,method:u.method,formData:u.formData,disableHistory:!0});return o.window.location[_r](o,u.href),o.window.dispatchEvent(new o.window.PopStateEvent("popstate",{state:u.state,hasUAVisualTransition:!1})),Promise.resolve(null)}static reload(t){let{windowClass:e,frame:o,goToOptions:s}=t,n=o[Oe];return Xr.navigate({windowClass:e,frame:o,goToOptions:{...s,referrer:o.url},url:n.currentItem.href,method:n.currentItem.method,formData:n.currentItem.formData,disableHistory:!0})}}class sm extends Yo{get value(){for(let t of this[Q])if(t.checked)return t.value;return null}}class nm extends B{[Gi]=null;[Vt];constructor(){super();let t=new fe(this,[nm,B,Gr,st,vt]),e=new Proxy(this,{get:(o,s)=>{if(s==="length")return o[lo]().length;if(s in o||typeof s==="symbol")return t.bind(s),o[s];let n=Number(s);if(!isNaN(n))return o[lo]()[n];return o[Mm](s)||void 0},set(o,s,n){if(t.bind(s),typeof s==="symbol")return o[s]=n,!0;let l=Number(s);if(isNaN(l))o[s]=n;return!0},deleteProperty(o,s){if(typeof s==="symbol")return delete o[s],!0;let n=Number(s);if(isNaN(n))delete o[s];return!0},ownKeys(o){return Object.keys(o[lo]())},has(o,s){if(s in o)return!0;if(typeof s==="symbol")return!1;let n=o[lo](),l=Number(s);if(!isNaN(l)&&l>=0&&l<n.length)return!0;s=String(s);for(let a=0;a<n.length;a++){let y=n[a],u=y.getAttribute("id")||y.getAttribute("name");if(u&&u===s)return!0}return!1},defineProperty(o,s,n){if(t.preventBinding(s),!n.value)return Object.defineProperty(o,s,n),!0;let l=Number(n.value);if(isNaN(l))return Object.defineProperty(o,s,n),!0;return!1},getOwnPropertyDescriptor(o,s){if(s in o)return Object.getOwnPropertyDescriptor(o,s);let n=o[lo](),l=Number(s);if(!isNaN(l)&&l>=0&&l<n.length)return{value:n[l],writable:!1,enumerable:!0,configurable:!0};for(let a=0;a<n.length;a++){let y=n[a],u=y.getAttribute("id")||y.getAttribute("name");if(u&&u===s)return{value:y,writable:!1,enumerable:!0,configurable:!0}}}});return this[Vt]=e,this[Ut]=e,e}get onformdata(){return S.getEventListener(this,"onformdata")}set onformdata(t){this[p].set("onformdata",t)}get onreset(){return S.getEventListener(this,"onreset")}set onreset(t){this[p].set("onreset",t)}get onsubmit(){return S.getEventListener(this,"onsubmit")}set onsubmit(t){this[p].set("onsubmit",t)}get elements(){if(!this[Gi])this[Gi]=new na(h,this);return this[Gi]}get length(){return this[lo]().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[x].location.href;try{return new URL(this.getAttribute("action"),this[x].location.href).href}catch(t){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){if(!t)this.removeAttribute("novalidate");else this.setAttribute("novalidate","")}submit(){this.#t()}requestSubmit(t){if(t?.formNoValidate||this.noValidate||this.checkValidity()){let o=new ta("submit",{bubbles:!0,cancelable:!0,submitter:t||this[Vt]});if(this.dispatchEvent(o),!o.defaultPrevented)this.#t(t)}}reset(){for(let t of this[lo]())switch(t[z]){case"TEXTAREA":t[q]=null;break;case"INPUT":t[q]=null,t[wn]=null;break;case"OUTPUT":t.textContent=t[mo];break;case"SELECT":let e=!1;for(let o of t.options)if(o.hasAttribute("selected")){e=!0,o.selected=!0;break}if(!e&&t.options.length>0)t.options[0].selected=!0;break}this.dispatchEvent(new N("reset",{bubbles:!0,cancelable:!0}))}checkValidity(){let t={},e=!0;for(let o of this[lo]())if(o[z]==="INPUT"&&o.type==="radio"&&o.name){if(!t[o.name]){if(t[o.name]=!0,!o.checkValidity())e=!1}}else if(!o.checkValidity())e=!1;return e}reportValidity(){return this.checkValidity()}[ct](t=!1){return super[ct](t)}[lo](){let t=yt.querySelectorAll(this,"input,select,textarea,button,fieldset,object,output")[Q].slice();if(this[tt]){let e=this.getAttribute("id");if(e){for(let o of yt.querySelectorAll(this[x],`input[form="${e}"],select[form="${e}"],textarea[form="${e}"],button[form="${e}"],fieldset[form="${e}"],object[form="${e}"],output[form="${e}"]`)[Q])if(!t.includes(o))t.push(o)}}return t}[Mm](t){let e=this[lo](),o=[];t=String(t);for(let s of e)if(s.getAttribute("id")===t||s.getAttribute("name")===t)o.push(s);if(!o.length)return null;if(o.length===1)return o[0];return new sm(h,o)}#t(t){let e=t?.formMethod||this.method;if(e==="dialog"){let a=null,y=this;while(y){if(y[z]==="DIALOG"){a=y;break}y=y.parentElement}if(a){a.close(t?.value);return}}let o=t?.hasAttribute("formaction")?t?.formAction||this.action:this.action,s=new it(this[m]).getBrowserFrame();if(!s)return;if(!o){this[x].location.hash="#blocked";return}let n=new this[m].FormData(this,t),l;switch(t?.formTarget||this.target){default:case"_self":l=s;break;case"_top":l=s.page.mainFrame;break;case"_parent":l=s.parentFrame??s;break;case"_blank":l=s.page.context.newPage().mainFrame,l[io]=s;break}if(e==="get"){let a=new URL(o);a.search="";for(let[y,u]of n)if(typeof u==="string")a.searchParams.append(y,u);Xr.navigate({windowClass:this[x][Lr]?.constructor,frame:l,url:a.href,goToOptions:{referrer:s.page.mainFrame.window.location.origin}});return}Xr.navigate({windowClass:this[x][Lr]?.constructor,frame:l,method:e,url:o,formData:n,goToOptions:{referrer:s.page.mainFrame.window.location.origin}})}}class $p extends B{}class Xp extends B{}class zp extends B{}class Jp extends B{}class ll extends vt{window=this;location;[Dn]=this;#t;constructor(t,e){super();this[ao]=e??this,this[Jo]=e??this,this.location=new Proxy({},{get:()=>{throw new re(`Blocked a frame with origin "${this.parent.location.origin}" from accessing a cross-origin frame.`,w.securityError)},set:()=>{throw new re(`Blocked a frame with origin "${this.parent.location.origin}" from accessing a cross-origin frame.`,w.securityError)}}),this.#t=t}get self(){return this[Dn]}set self(t){this[Dn]=t}get top(){return this[Jo]}get parent(){return this[ao]}set parent(t){this[ao]=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="*",o){this.#t.postMessage(t,e,o)}}var oA=["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"];class Zp extends B{[km]=null;#t={window:null};#e=null;#r=null;get onload(){return S.getEventListener(this,"onload")}set onload(t){this[p].set("onload",t)}get onerror(){return S.getEventListener(this,"onerror")}set onerror(t){this[p].set("onerror",t)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[x].location.href).href}catch(t){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(){if(!this[km])this[km]=new Or(h,this,"sandbox");return this[km]}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}[sr](){super[sr](),this.#i()}[nr](){super[nr](),this.#s()}[ct](t=!1){return super[ct](t)}[Re](t,e){if(super[Re](t,e),t[rt]==="srcdoc")this.#i();if(t[rt]==="src"&&t[q]&&!this.hasAttribute("srcdoc")&&t[q]!==e?.[q])this.#i();if(t[rt]==="sandbox")this.#o()}[br](t){if(super[br](t),t[rt]==="srcdoc"||t[rt]==="src")this.#i()}#o(){let t=this[m],e=[];for(let o of this.sandbox)if(!oA.includes(o))e.push(o);if(e.length===1)t.console.error(`Error while parsing the 'sandbox' attribute: '${e[0]}' is an invalid sandbox flag.`);else if(e.length>1)t.console.error(`Error while parsing the 'sandbox' attribute: '${e.join("', '")}' are invalid sandbox flags.`)}#i(){if(!this[tt]){this.#s();return}let t=this.getAttribute("srcdoc"),e=this[m],o=new it(e).getBrowserFrame();if(!o)return;if(t!==null){if(this.#r===t)return;this.#s(),this.#e=As.createChildFrame(o),this.#e.url="about:srcdoc",this.#t.window=this.#e.window,this.#e.window[Jo]=o.window.top,this.#e.window[ao]=o.window,this.#e.window.document.open(),this.#e.window.document.write(t),this.#r=t,this[m].requestAnimationFrame(()=>this.dispatchEvent(new N("load")));return}if(this.#r!==null)this.#s();let s=o.window.location,n=Fo.getRelativeURL(o,this.src);if(this.#e&&this.#e.window.location.href===n.href)return;if(o.page.context.browser.settings.disableIframePageLoading){let y=new e.DOMException(`Failed to load iframe page "${n.href}". Iframe page loading is disabled.`,w.notSupportedError);o.page.console.error(y),this.dispatchEvent(new N("error"));return}let l=s.origin===n.origin||n.origin==="null",a=l?e:new ll(e);this.#e=this.#e??As.createChildFrame(o),this.#e.window[Jo]=a,this.#e.window[ao]=a,this.#e.goto(n.href,{referrer:s.origin,referrerPolicy:this.referrerPolicy}).then(()=>this.dispatchEvent(new N("load"))).catch((y)=>{o.page.console.error(y),this.dispatchEvent(new N("error"))}),this.#t.window=l?this.#e.window:new ll(this.#e.window,e)}#s(){if(this.#e)As.destroyFrame(this.#e),this.#e=null;this.#t.window=null,this.#r=null}}class la extends B{[z]="IMG";[ab]=!1;[mb]=0;[yb]=0;[Bg]="auto";[k]=0;[M]=0;get complete(){return this[ab]}get naturalHeight(){return this[mb]}get naturalWidth(){return this[yb]}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[k]}get y(){return this[M]}get decoding(){return this.getAttribute("decoding")||"auto"}set decoding(t){this.setAttribute("decoding",t)}get crossOrigin(){return this.getAttribute("crossOrigin")}set crossOrigin(t){if(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");return t!==null?Number(t):0}set width(t){this.setAttribute("width",String(t))}get height(){let t=this.getAttribute("height");return t!==null?Number(t):0}set height(t){this.setAttribute("height",String(t))}get isMap(){return this.getAttribute("ismap")!==null}set isMap(t){if(!t)this.removeAttribute("ismap");else this.setAttribute("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(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[x].location.href).href}catch(t){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 useMap(){return this.getAttribute("usemap")||""}set useMap(t){this.setAttribute("usemap",t)}decode(){return Promise.resolve()}[ct](t=!1){return super[ct](t)}}class al extends Array{constructor(){super(0)}get[Symbol.toStringTag](){return this.constructor.name}item(t){return this[t]||null}}var rg=/[\n\r]/gm,Sc=(t)=>t.map((e)=>parseInt(e,10));class fc{static sanitize(t,e){switch(t.type){case"password":case"search":case"tel":case"text":return e.replace(rg,"");case"color":return/^#[a-fA-F\d]{6}$/.test(e)?e.toLowerCase():"#000000";case"email":if(t.multiple)return e.split(",").map((o)=>o.trim()).join(",");return e.trim().replace(rg,"");case"number":return!isNaN(Number.parseFloat(e))?e:"";case"range":{let o=Number.parseFloat(e),s=parseFloat(t.min)||0,n=parseFloat(t.max)||100;if(isNaN(o))return n<s?String(s):String((s+n)/2);else if(o<s)return String(s);else if(o>n)return String(n);return e}case"url":return e.trim().replace(rg,"");case"date":return this.sanitizeDate(e);case"datetime-local":{let o=e.match(/^(\d\d\d\d)-(\d\d)-(\d\d)[T ](\d\d):(\d\d)(?::(\d\d)(?:\.(\d{1,3}))?)?$/);if(!o)return"";let s=this.sanitizeDate(e.slice(0,10)),n=this.sanitizeTime(e.slice(11));if(!(s&&n))return"";if(o[6]!==void 0){if(n.indexOf(".")!==-1)n=n.replace(/(?:\.0*|(\.\d+?)0+)$/,"$1");n=n.replace(/(\d\d:\d\d)(:00)$/,"$1")}return s+"T"+n}case"month":if(!(e.match(/^(\d\d\d\d)-(\d\d)$/)&&this.parseMonthComponent(e)))return"";return 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 o=e.match(/^(\d\d\d\d)-W(\d\d)$/);if(!o)return"";let[s,n]=Sc(o.slice(1,3));if(s<=0||n<1||n>53)return"";let l=this.lastIsoWeekOfYear(s);if(n<1||n>52+l)return"";if(!this.checkBoundaries(e,t.min,t.max))return"";return e}}return e}static checkBoundaries(t,e,o){if(e&&e>t)return!1;else if(o&&o<t)return!1;return!0}static parseMonthComponent(t){let[e,o]=t.split("-"),[s,n]=Sc([e,o]);if(isNaN(s)||isNaN(n)||s<=0||n<1||n>12)return"";return t}static lastIsoWeekOfYear=(t)=>{let e=new Date(+t,11,31),o=(e.getDay()+6)%7;e.setDate(e.getDate()-o+3);let s=e.getTime();if(e.setMonth(0,1),e.getDay()!==4)e.setMonth(0,1+(4-e.getDay()+7)%7);return 1+Math.ceil((s-e.getTime())/604800000)};static sanitizeDate(t){let e=t.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!e)return"";if(!this.parseMonthComponent(t.slice(0,7)))return"";let[s,n,l]=Sc(e.slice(1,4));if(l<1||l>31)return"";let a=new Date(s,n,0).getDate();if(l>a)return"";return t}static sanitizeTime(t){let e=t.match(/^(\d{2}):(\d{2})(?::(\d{2}(?:\.(\d{1,3}))?))?$/);if(!e)return"";let[o,s]=Sc(e.slice(1,3)),n=parseFloat(e[3]||"0")*1000;if(o>23||s>59||n>59999)return"";if(n===0)return`${e[1]}:${e[2]}`;else return`${e[1]}:${e[2]}${n>=1e4?`:${n/1000}`:`:0${n/1000}`}`}}var og;(function(t){t.preserve="preserve",t.select="select",t.start="start",t.end="end"})(og||(og={}));var ws=og;var ig;(function(t){t.none="none",t.forward="forward",t.backward="backward"})(ig||(ig={}));var fo=ig;class tu{static step(t,e,o){switch(t.type){case"number":return this.getNumberValue(t,e,o);case"date":case"month":case"week":case"time":case"datetime-local":case"range":return null;default:throw new re("This form element is not steppable.")}}static getNumberValue(t,e,o){let{step:s,min:n,max:l}=t,a=n!==""?Number(n):null,y=l!==""?Number(l):null,u=Number(t.value),c=s!==""?Number(s):1;if(u=isNaN(u)?0:u,c=isNaN(c)||c===0?1:c,a!==null&&!isNaN(a)&&y!==null&&!isNaN(y)&&(a>y||y<a))return t.value;if(o===0)return t.value;let d=o!==void 0?Math.ceil(o/c)*c:c,g=u+d*e,f=a!==null&&!isNaN(a)?a:0;switch(e){case-1:if(a!==null&&!isNaN(a)&&g<a)return String(a);return String(g+(u-f)%c);case 1:if(y!==null&&!isNaN(y)&&g>y)return String(f+Math.floor((y-f)/c)*c);return String(g-(u-f)%c)}}}class lm{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)),o=Math.ceil(((t-e)/86400000+1)/7);return`${t.getUTCFullYear()}-W${o<10?"0":""}${o}`}static isoWeekDate(t){let[,e,o]=t.match(/^(\d{4})-W(\d{2})$/)||[];if(!e||!o||Number(o)>53||Number(o)<1)return new Date("x");let s=new Date(`${e}-01-01T00:00Z`),l=(new Date(`${e}-01-04T00:00Z`).getUTCDay()+6)%7,a=1+(Number(o)-1)*7-l+3;if(s.setUTCDate(a),s.getUTCFullYear()>Number(e))return new Date("x");return s}}import{URL as iA}from"url";var sA=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"]);class eu extends B{[q]=null;[F]=0;[V]=0;[wn]=null;[Ce]="";[Ke]=new qr(this);[$o]=new al;[vn]=!1;[Ut]=null;[Gn]=null;#t=null;#e=null;#r=fo.none;get oninput(){return S.getEventListener(this,"oninput")}set oninput(t){this[p].set("oninput",t)}get oninvalid(){return S.getEventListener(this,"oninvalid")}set oninvalid(t){this[p].set("oninvalid",t)}get onselectionchange(){return S.getEventListener(this,"onselectionchange")}set onselectionchange(t){this[p].set("onselectionchange",t)}get defaultChecked(){return this.hasAttribute("checked")}set defaultChecked(t){if(t)this.setAttribute("checked","");else this.removeAttribute("checked")}get files(){return this[$o]}set files(t){this[$o]=t}get formAction(){if(!this.hasAttribute("formaction"))return this[x].location.href;try{return new iA(this.getAttribute("formaction"),this[x].location.href).href}catch(t){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){if(!t)this.removeAttribute("formnovalidate");else this.setAttribute("formnovalidate","")}get formTarget(){return this.getAttribute("formtarget")||""}set formTarget(t){this.setAttribute("formtarget",t)}get form(){if(this[Ut])return this[Ut];let t=this.getAttribute("form");if(!t||!this[tt])return null;return this[x].getElementById(t)}get validationMessage(){return this[Ce]}get validity(){return this[Ke]}get height(){return this[F]}set height(t){this[F]=t,this.setAttribute("height",String(t))}get width(){return this[V]}set width(t){this[V]=t,this.setAttribute("width",String(t))}get size(){let t=this.getAttribute("size");if(t!==null)return parseInt(t);return 20}set size(t){this.setAttribute("size",String(t))}get minLength(){let t=this.getAttribute("minlength");if(t!==null)return parseInt(t);return-1}set minLength(t){this.setAttribute("minlength",String(t))}get maxLength(){let t=this.getAttribute("maxlength");if(t!==null)return parseInt(t);return-1}set maxLength(t){this.setAttribute("maxlength",String(t))}get type(){let t=(this.getAttribute("type")??"").toLowerCase();return sA.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){if(!t)this.removeAttribute("readonly");else this.setAttribute("readonly","")}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){if(!t)this.removeAttribute("disabled");else this.setAttribute("disabled","")}get autofocus(){return this.getAttribute("autofocus")!==null}set autofocus(t){if(!t)this.removeAttribute("autofocus");else this.setAttribute("autofocus","")}get required(){return this.getAttribute("required")!==null}set required(t){if(!t)this.removeAttribute("required");else this.setAttribute("required","")}get indeterminate(){return this[vn]}set indeterminate(t){this[vn]=Boolean(t)}get multiple(){return this.getAttribute("multiple")!==null}set multiple(t){if(!t)this.removeAttribute("multiple");else this.setAttribute("multiple","")}get checked(){if(this[wn]!==null)return this[wn];return this.getAttribute("checked")!==null}set checked(t){this.#i(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[$o].length>0?"/fake/path/"+this[$o][0].name:""}if(this[q]===null)return this.getAttribute("value")||"";return this[q]}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.',w.invalidStateError);this[$o]=new al;break;default:let e=this.value;if(this[q]=fc.sanitize(this,t),e!==this[q])this.#t=this[q].length,this.#e=this[q].length,this.#r=fo.none;break}}get selectionStart(){if(!this.#o())return null;if(this.#t===null)return this.value.length;return this.#t}set selectionStart(t){if(!this.#o())throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,w.invalidStateError);this.setSelectionRange(t,Math.max(t,this.selectionEnd),this.#r)}get selectionEnd(){if(!this.#o())return null;if(this.#e===null)return this.value.length;return this.#e}set selectionEnd(t){if(!this.#o())throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,w.invalidStateError);this.setSelectionRange(this.selectionStart,t,this.#r)}get selectionDirection(){if(!this.#o())return null;return this.#r}set selectionDirection(t){if(!this.#o())throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,w.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=lm.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.",w.invalidStateError);if(typeof t!=="object")throw new this[m].TypeError("Failed to set the 'valueAsDate' property on 'HTMLInputElement': Failed to convert value to 'object'.");else 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.");else 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=lm.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),o=parseFloat(this.min)||0,s=parseFloat(this.max)||100;if(isNaN(e))return s<o?o:(o+s)/2;else if(e<o)return o;else if(e>s)return s;return e}case"date":return new Date(t).getTime();case"datetime-local":return new Date(t).getTime()-new Date(t).getTimezoneOffset()*60000;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 o=new Date(Date.UTC(parseInt(e[1],10),0)),s=o.getUTCDay(),n=((s===0?-6:1)-s)*86400000+parseInt(e[2],10)*604800000;return o.getTime()+n}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}if(this.type=="date")this.value=e.toISOString().slice(0,10);else this.value=e.toISOString().slice(0,-1);break}case"month":if(!Number.isInteger(t)||t<0)this.value="";else this.value=new Date(Date.UTC(1970,Number(t))).toISOString().slice(0,7);break;case"time":if(!Number.isInteger(t)||t<0)this.value="";else this.value=new Date(Number(t)).toISOString().slice(11,-1);break;case"week":{let e=new Date(Number(t));this.value=isNaN(e.getTime())?"":lm.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.",w.invalidStateError)}}get labels(){return $r.getAssociatedLabelElements(this)}get list(){let t=this.getAttribute("list");if(!t)return null;return(this[ve]||this[x]).querySelector(`datalist#${t}`)}get popoverTargetElement(){return this[Gn]}set popoverTargetElement(t){if(t!==null&&!(t instanceof B))throw new this[m].TypeError("Failed to set the 'popoverTargetElement' property on 'HTMLInputElement': Failed to convert value to 'Element'.");this[Gn]=t}get popoverTargetAction(){let t=this.getAttribute("popovertargetaction");if(t===null||t!=="hide"&&t!=="show"&&t!=="toggle")return"toggle";return 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[Ce]=String(t)}select(){if(!this.#o())return;this.#t=0,this.#e=this.value.length,this.#r=fo.none,this.dispatchEvent(new N("select",{bubbles:!0,cancelable:!1}))}setSelectionRange(t,e,o="none"){if(!this.#o())throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,w.invalidStateError);this.#e=Math.min(e,this.value.length),this.#t=Math.min(t,this.#e),this.#r=o===fo.forward||o===fo.backward?o:fo.none,this.dispatchEvent(new N("select",{bubbles:!0,cancelable:!1}))}setRangeText(t,e=null,o=null,s=ws.preserve){if(!this.#o())throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,w.invalidStateError);if(e===null)e=this.#t;if(o===null)o=this.#e;if(e>o)throw new this[m].DOMException("The index is not in the allowed range.",w.invalidStateError);e=Math.min(e,this.value.length),o=Math.min(o,this.value.length);let n=this.value,l=this.#t,a=this.#e;this.value=n.slice(0,e)+t+n.slice(o);let y=e+this.value.length;switch(s){case ws.select:this.setSelectionRange(e,y);break;case ws.start:this.setSelectionRange(e,e);break;case ws.end:this.setSelectionRange(y,y);break;default:let u=t.length-(o-e);if(l>o)l+=u;else if(l>e)l=e;if(a>o)a+=u;else if(a>e)a=y;this.setSelectionRange(l,a);break}}checkValidity(){let t=this.disabled||this.readOnly||this.type==="hidden"||this.type==="reset"||this.type==="button"||this[Ke].valid;if(!t)this.dispatchEvent(new N("invalid",{bubbles:!0,cancelable:!0}));return t}reportValidity(){return this.checkValidity()}stepUp(t){let e=tu.step(this,1,t);if(e!==null)this.value=e}stepDown(t){let e=tu.step(this,-1,t);if(e!==null)this.value=e}[ct](t=!1){let e=super[ct](t);return e[q]=this[q],e[F]=this[F],e[V]=this[V],e[$o]=this[$o].slice(),e.#t=this.#t,e.#e=this.#e,e.#r=this.#r,e}dispatchEvent(t){if(t[Qt]!=="click"||t[xr]!==ae.none||!(t instanceof qe))return super.dispatchEvent(t);if(this.disabled)return!1;let e=null,o=this[vn],s=this.type;if(s==="checkbox"||s==="radio"){if(e=this.checked,this.#i(s==="checkbox"?!e:!0),s==="checkbox")o=this[vn],this[vn]=!1}let n=super.dispatchEvent(t);if(t[Qt]!=="click"||t[xr]!==ae.none||!(t instanceof qe))return n;if(t[lr]){if(e!==null)this.#i(e),this[vn]=o}else{let l=this.type;if(l==="checkbox"&&this[tt])this.dispatchEvent(new N("input",{bubbles:!0,cancelable:!0})),this.dispatchEvent(new N("change",{bubbles:!0,cancelable:!0}));else if(l==="radio"&&!e&&this[tt])this.dispatchEvent(new N("input",{bubbles:!0,cancelable:!0})),this.dispatchEvent(new N("change",{bubbles:!0,cancelable:!0}));else if(l==="submit"||l==="reset"){let a=this.form;if(a){if(l==="submit"&&this[tt])a.requestSubmit(this);else if(l==="reset")a.reset()}}}return n}#o(){let t=this.type;return t==="text"||t==="search"||t==="url"||t==="tel"||t==="password"}#i(t){if(this[wn]=t,this[Mr](),t&&this.type==="radio"&&this.name){let o=(this[Ut]||this.getRootNode()).querySelectorAll(`input[type="radio"][name="${this.name}"]`);for(let s of o)if(s!==this)s[wn]=!1}}}class ru extends B{get htmlFor(){let t=this.getAttribute("for");if(t!==null)return t;return t!==null?t:""}set htmlFor(t){this.setAttribute("for",t)}get control(){let t=this.getAttribute("for");if(t!==null){if(!t||!this[tt])return null;let e=this[ve].getElementById(t);if(e)switch(e[z]){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}[ct](t=!1){return super[ct](t)}dispatchEvent(t){let e=super.dispatchEvent(t);if(!t[lr]&&t.type==="click"&&(t.eventPhase===ae.atTarget||t.eventPhase===ae.bubbling)&&t instanceof qe){let o=this.control;if(o&&t.target!==o)o.dispatchEvent(new qe("click",{bubbles:!0,cancelable:!0}))}return e}}class ou extends B{get form(){let t=this;while(t){if(t instanceof sa)return t.form;t=t.parentNode}return null}}class iu extends B{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))}}import dS from"fs";import nA from"path";import lA from"child_process";class Pc{static getScript(t){let e={},o=Object.keys(t.headers).sort();for(let s of o)e[s]=t.headers[s];return`
90
+ `;if(a+=l,n&&!n.disableErrorCapturing&&n.errorCapture===me.tryAndCatch)a+="} catch(e) { $happy_dom.dispatchError(e); }";a+="})";let y=null;try{y=s[Uo](a,{filename:s.location.href}).bind(t,{dispatchError:s[le].bind(s)})}catch(u){let c=new s.SyntaxError(`Failed to read the '${e}' property from '${t.constructor.name}': ${u.message}`);if(n.disableErrorCapturing||n.errorCapture!==me.tryAndCatch)throw c;else return s[le](c),null}if(y)t[p].set(e,y);return y}}class Gr extends st{static[z]=null;static[ot]=null;static[J]=null;[Aa]=null;[eo]=null;[D]=T.elementNode;[Ft]=null;[be]=null;[Jd]=0;[Zd]=0;[Th]=0;[Ch]=0;[St]=new ln(this);[va]=null;[ir]=null;[Ll]=null;[Cm]=new Set;[p]=new Map;constructor(){super();if(!this[z])this[z]=null;if(!this[ot])this[ot]=null;if(!this[J])this[J]=null}get onfullscreenerror(){return S.getEventListener(this,"onfullscreenerror")}set onfullscreenerror(t){this[p].set("onfullscreenerror",t)}get onfullscreenchange(){return S.getEventListener(this,"onfullscreenchange")}set onfullscreenchange(t){this[p].set("onfullscreenchange",t)}get onbeforecopy(){return S.getEventListener(this,"onbeforecopy")}set onbeforecopy(t){this[p].set("onbeforecopy",t)}get onbeforecut(){return S.getEventListener(this,"onbeforecut")}set onbeforecut(t){this[p].set("onbeforecut",t)}get onbeforepaste(){return S.getEventListener(this,"onbeforepaste")}set onbeforepaste(t){this[p].set("onbeforepaste",t)}get onsearch(){return S.getEventListener(this,"onsearch")}set onsearch(t){this[p].set("onsearch",t)}get tagName(){return this[z]}get prefix(){return this[Ft]}get shadowRoot(){let t=this[be];return t&&t[Ee]==="open"?t:null}get scrollHeight(){return this[Jd]}get scrollWidth(){return this[Zd]}get scrollTop(){return this[Th]}set scrollTop(t){this[Th]=t}get scrollLeft(){return this[Ch]}set scrollLeft(t){this[Ch]=t}get attributes(){if(!this[va])this[va]=cc.createProxy(this[St]);return this[va]}get namespaceURI(){return this[J]}get children(){if(!this[ir]){let t=this[bt];this[ir]=new de(h,()=>t)}return this[ir]}get classList(){if(!this[Aa])this[Aa]=new Or(h,this,"class");return this[Aa]}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[z]}get localName(){return this[ot]}get role(){return this.getAttribute("role")||""}set role(t){this.setAttribute("role",t)}get previousElementSibling(){return rl.previousElementSibling(this)}get nextElementSibling(){return rl.nextElementSibling(this)}get textContent(){let t="";for(let e of this[_])if(e[D]===T.elementNode||e[D]===T.textNode)t+=e.textContent;return t}set textContent(t){let e=this[_];while(e.length)this.removeChild(e[0]);if(t)this.appendChild(this[x].createTextNode(t))}get innerHTML(){return this.getHTML()}set innerHTML(t){let e=this[_];while(e.length)this.removeChild(e[0]);new Cr(this[m]).parse(t,this)}get outerHTML(){return new ai().serializeToString(this)}set outerHTML(t){let e=new Cr(this[m]).parse(t)[_];this.replaceWith(...e)}get childElementCount(){return this[bt].length}get firstElementChild(){return this[bt][0]??null}get lastElementChild(){let t=this[bt];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 ai({allShadowRoots:!!t?.includeShadowRoots}),o="";for(let s of this[_])o+=e.serializeToString(s);return o}getHTML(t){let e=new ai({serializableShadowRoots:!!t?.serializableShadowRoots,shadowRoots:t?.shadowRoots??null}),o="";for(let s of this[_])o+=e.serializeToString(s);return o}[ct](t=!1){let e=super[ct](t);if(e[z]=this[z],e[ot]=this[ot],e[J]=this[J],this[be]?.[Gn])e[be]=this[be].cloneNode(t),e[be][Mn]=e;e[St]=new ln(e);for(let o of this[St][Q].values())e[St].setNamedItem(o.cloneNode(t));return e}remove(){ni.remove(this)}replaceWith(...t){ni.replaceWith(this,...t)}before(...t){ni.before(this,...t)}after(...t){ni.after(this,...t)}append(...t){oe.append(this,...t)}prepend(...t){oe.prepend(this,...t)}replaceChildren(...t){oe.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 o=new Cr(this[m]).parse(e)[_];while(o.length)this.insertAdjacentElement(t,o[0])}insertAdjacentText(t,e){if(!e)return;let o=this[x].createTextNode(e);this.insertAdjacentElement(t,o)}setAttribute(t,e){if(Zb.validateAttributeName(t,this[x][xe],{method:"setAttribute",instance:"Element"}),t=String(t),this[J]===Ht.html){let s=this[x].createAttribute(t);s[q]=String(e),this[St][zo](s)}else{let s=t.split(":"),n=null;switch(s[0]){case"xmlns":n=!s[1]||s[1]==="xlink"?Ht.xmlns:null;break;case"xlink":n=Ht.xlink;break}let l=Ve.createNode(this[x],this[m].Attr);l[J]=n,l[rt]=t,l[ot]=n&&s[1]?s[1]:t,l[Ft]=n&&s[1]?s[0]:null,l[q]=String(e),this[St][zo](l)}}setAttributeNS(t,e,o){let s=this[x].createAttributeNS(t,e);if(!t&&s[Ft])throw new this[m].DOMException("Failed to execute 'setAttributeNS' on 'Element': '' is an invalid namespace for attributes.",w.namespaceError);s[q]=String(o),this[St].setNamedItemNS(s)}getAttributeNames(){let t=[];for(let e of this[St][Q].values())t.push(e[rt]);return t}getAttribute(t){let e=this[St].getNamedItem(t);if(e)return e[q];return null}toggleAttribute(t,e){t=t.toLowerCase();let o=this[St].getNamedItem(t);if(o){if(e===!0)return!0;return this[St][Os](o),!1}if(e===!1)return!1;return this.setAttribute(t,""),!0}getAttributeNS(t,e){let o=this.getAttributeNodeNS(t,e);if(o)return o[q];return null}hasAttribute(t){return!!this.getAttributeNode(t)}hasAttributeNS(t,e){return this[St].getNamedItemNS(t,e)!==null}hasAttributes(){return this[St][Q].size>0}removeAttribute(t){let e=this[St].getNamedItem(t);if(e)this[St][Os](e)}removeAttributeNS(t,e){let o=this[St].getNamedItemNS(t,e);if(o)this[St][Os](o)}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[be])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 o=Ve.createNode(this[x],this[m].ShadowRoot);return this[be]=o,o[Mn]=this,o[Ee]=t.mode,o[Gn]=!!t.clonable,o[kl]=!!t.delegateFocus,o[Hi]=!!t.serializable,o[Ei]=t.slotAssignment==="manual"?"manual":"named",o[Zr](),this[be]}toString(){return this.outerHTML}getBoundingClientRect(){return new li}getClientRects(){let t=new em(h);return t.push(this.getBoundingClientRect()),t}setPointerCapture(t){this[Cm].add(t)}hasPointerCapture(t){return this[Cm].has(t)}releasePointerCapture(t){this[Cm].delete(t)}matches(t){return!!yt.matches(this,t)}closest(t){let e=this;while(e){if(yt.matches(e,t))return e;e=e.parentElement}return null}querySelectorAll(t){return yt.querySelectorAll(this,t)}querySelector(t){return yt.querySelector(this,t)}getElementsByClassName(t){return oe.getElementsByClassName(this,t)}getElementsByTagName(t){return oe.getElementsByTagName(this,t)}getElementsByTagNameNS(t,e){return oe.getElementsByTagNameNS(this,t,e)}setAttributeNode(t){return this[St].setNamedItem(t)}setAttributeNodeNS(t){return this[St].setNamedItemNS(t)}getAttributeNode(t){return this[St].getNamedItem(t)}getAttributeNodeNS(t,e){return this[St].getNamedItemNS(t,e)}removeAttributeNode(t){if(t[xt]!==this)throw new this[m].DOMException("Failed to execute 'removeAttributeNode' on 'Element': The node provided is owned by another element.");return this[St][Os](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 o=typeof t==="object"?t:{left:t,top:e};if(o.behavior==="smooth")this[m].setTimeout(()=>{if(o.top!==void 0){let s=Number(o.top);this.scrollTop=isNaN(s)?0:s}if(o.left!==void 0){let s=Number(o.left);this.scrollLeft=isNaN(s)?0:s}});else{if(o.top!==void 0){let s=Number(o.top);this.scrollTop=isNaN(s)?0:s}if(o.left!==void 0){let s=Number(o.left);this.scrollLeft=isNaN(s)?0:s}}}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 o=typeof t==="object"?t:{left:t,top:e};this.scroll({left:this.scrollLeft+(o.left??0),top:this.scrollTop+(o.top??0),behavior:o.behavior})}scrollIntoView(t){}[Et](t,e=!1){let o=super[Et](t,e);return this.#r(t),o}[hr](t){let e=super[hr](t);return this.#r(t),e}[kr](t,e,o=!1){let s=super[kr](t,e,o);return this.#r(t),s}[Re](t,e){if(!t[rt])return;let o=e?e[q]:null;if(t[rt]==="slot"&&this[W]&&this[W][be]){let s=this[W][be];if(s&&t[q]!==o){if(o!==null&&e){let l=s.querySelector(`slot[name="${e[q]}"]`);if(l)l.dispatchEvent(new N("slotchange",{bubbles:!0}))}else{let l=s.querySelector("slot:not([name])");if(l)l.dispatchEvent(new N("slotchange",{bubbles:!0}))}let n=s.querySelector(`slot[name="${t[q]}"]`);if(n)n.dispatchEvent(new N("slotchange",{bubbles:!0}))}}if(this[t[rt]]!==void 0&&t[rt][0]==="o"&&t[rt][1]==="n")this[p].delete(t[rt]);if(t[rt]==="id"&&this[tt]){if(e?.[q])this.#e(e[q]);this.#t(t[q])}this[Oi](new Vo({type:si.attributes,target:this,attributeName:t[rt],oldValue:o}))}[br](t){if(t[rt]==="slot"&&this[W]&&this[W][be]){let e=this[W][be],o=e.querySelector(`slot[name="${t[q]}"]`),s=e.querySelector("slot:not([name])");if(o)o.dispatchEvent(new N("slotchange",{bubbles:!0}));if(s)s.dispatchEvent(new N("slotchange",{bubbles:!0}))}if(t[rt]==="id"&&this[tt])this.#e(t[q]);this[Oi](new Vo({type:si.attributes,target:this,attributeName:t[rt],oldValue:t[q]}))}[sr](){let t=this.getAttribute("id");if(t)this.#t(t);if(super[sr](),this[m][Qs].enqueueReaction(this,"connectedCallback"),this[be])for(let e of this[_])this.#r(e)}[nr](){super[nr]();let t=this.getAttribute("id");if(t)this.#e(t);this[m][Qs].enqueueReaction(this,"disconnectedCallback")}[At](){let t=this.getAttribute("id");if(t)this.#e(t);if(this[m][Qs].enqueueReaction(this,"disconnectedCallback"),super[At](),this[be])this[be][At]();this[Aa]=null,this[be]=null,this[va]=null,this[ir]=null,this[Ll]=null,this[p].clear(),this[St][Ai].clear(),this[St][Wr].clear(),this[St][Q].clear()}#t(t){if(!t)return;let e=this[x],o=this[m];if(this[ve]&&this[ve]!==e)return;if(!e[wi].has(t))e[wi].set(t,{elements:[],htmlCollection:null});let s=e[wi].get(t);if(!s)return;let n=this[Vt]||this;if(s.elements.push(n),s.elements.length>1){if(!s.htmlCollection)s.htmlCollection=new de(h,()=>s.elements);if(!(t in o)||o[t]===s.elements[0])o[t]=s.htmlCollection}else if(!(t in o)||s.htmlCollection!==null&&o[t]===s.htmlCollection)o[t]=n}#e(t){if(!t)return;let e=this[x],o=this[m];if(this[ve]&&this[ve]!==e)return;let s=e[wi].get(t);if(!s)return;let n=this[Vt]||this,l=s.elements.indexOf(n);if(l!==-1)s.elements.splice(l,1);if(s.elements.length===1){if(o[t]===s.htmlCollection)o[t]=s.elements[0];s.htmlCollection=null}else if(!s.elements.length){if(e[wi].delete(t),o[t]===n||o[t]===s.htmlCollection)delete o[t]}}#r(t){let e=this[be];if(!e||!this[tt])return;let o=t.getAttribute?t.getAttribute("slot"):null;if(o){let s=e.querySelector(`slot[name="${o}"]`);if(s)s.dispatchEvent(new N("slotchange",{bubbles:!0}))}else if(t[D]!==T.commentNode){let s=e.querySelector("slot:not([name])");if(s)s.dispatchEvent(new N("slotchange",{bubbles:!0}))}}}class il{static blur(t){let e=t[Vt]||t,o=e[x];if(o[Me]!==e||!e[tt]||e.disabled)return;let s=o[Rs]??null;o[Me]=null,o[Mr](),e.dispatchEvent(new cs("blur",{relatedTarget:s,bubbles:!1,composed:!0,cancelable:!0})),e.dispatchEvent(new cs("focusout",{relatedTarget:s,bubbles:!0,composed:!0,cancelable:!0}))}static focus(t){let e=t[Vt]||t,o=e[x];if(o[Me]===e||!e[tt]||e.disabled||this.isInert(e))return;o[Rs]=e;let s=o[Me];if(o[Me]!==null)o[Me].blur();o[Rs]=null,o[Me]=e,o[Mr](),e.dispatchEvent(new cs("focus",{relatedTarget:s,bubbles:!1,composed:!0})),e.dispatchEvent(new cs("focusin",{relatedTarget:s,bubbles:!0,composed:!0}))}static isInert(t){let e=t[Vt]||t;while(e&&typeof e.getAttribute==="function"){if(e.getAttribute("inert")!==null)return!0;e=e[W]}return!1}}class fs{static kebabToCamelCase(t){let e=t.split("-");for(let o=0,s=e.length;o<s;o++)e[o]=o>0?e[o].charAt(0).toUpperCase()+e[o].slice(1):e[o];return e.join("")}static camelCaseToKebab(t){return t.toString().replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,o)=>(o?"-":"")+e.toLowerCase())}}class rm{constructor(t,e){if(t!==h)throw TypeError("Illegal constructor");return new Proxy(this,{get(o,s){let n=e.getAttribute("data-"+fs.camelCaseToKebab(s));if(n!==null)return n},set(o,s,n){return e.setAttribute("data-"+fs.camelCaseToKebab(s),n),!0},deleteProperty(o,s){return e.removeAttribute("data-"+fs.camelCaseToKebab(s)),!0},ownKeys(o){let s=[];for(let n of e[St][Wr].values())if(n[0][rt].startsWith("data-"))s.push(fs.kebabToCamelCase(n[0][rt].replace("data-","")));return s},has(o,s){return e.hasAttribute("data-"+fs.camelCaseToKebab(s))},defineProperty(o,s,n){if(n.value===void 0)return!1;return e.setAttribute("data-"+fs.camelCaseToKebab(s),n.value),!0},getOwnPropertyDescriptor(o,s){let n=e.getAttribute("data-"+fs.camelCaseToKebab(s));if(!n)return;return{value:n,writable:!0,enumerable:!0,configurable:!0}}})}}class B extends Gr{static observedAttributes;[Ta]="";[tb]=0;[eb]=0;[rb]=0;[ob]=0;[ib]=0;[sb]=0;[nb]=0;[lb]=0;[ge]=null;[Uh]=null;#t=null;get oncancel(){return S.getEventListener(this,"oncancel")}set oncancel(t){this[p].set("oncancel",t)}get onerror(){return S.getEventListener(this,"onerror")}set onerror(t){this[p].set("onerror",t)}get onscroll(){return S.getEventListener(this,"onscroll")}set onscroll(t){this[p].set("onscroll",t)}get onselect(){return S.getEventListener(this,"onselect")}set onselect(t){this[p].set("onselect",t)}get onwheel(){return S.getEventListener(this,"onwheel")}set onwheel(t){this[p].set("onwheel",t)}get oncopy(){return S.getEventListener(this,"oncopy")}set oncopy(t){this[p].set("oncopy",t)}get oncut(){return S.getEventListener(this,"oncut")}set oncut(t){this[p].set("oncut",t)}get onpaste(){return S.getEventListener(this,"onpaste")}set onpaste(t){this[p].set("onpaste",t)}get oncompositionend(){return S.getEventListener(this,"oncompositionend")}set oncompositionend(t){this[p].set("oncompositionend",t)}get oncompositionstart(){return S.getEventListener(this,"oncompositionstart")}set oncompositionstart(t){this[p].set("oncompositionstart",t)}get oncompositionupdate(){return S.getEventListener(this,"oncompositionupdate")}set oncompositionupdate(t){this[p].set("oncompositionupdate",t)}get onblur(){return S.getEventListener(this,"onblur")}set onblur(t){this[p].set("onblur",t)}get onfocus(){return S.getEventListener(this,"onfocus")}set onfocus(t){this[p].set("onfocus",t)}get onfocusin(){return S.getEventListener(this,"onfocusin")}set onfocusin(t){this[p].set("onfocusin",t)}get onfocusout(){return S.getEventListener(this,"onfocusout")}set onfocusout(t){this[p].set("onfocusout",t)}get onkeydown(){return S.getEventListener(this,"onkeydown")}set onkeydown(t){this[p].set("onkeydown",t)}get onkeyup(){return S.getEventListener(this,"onkeyup")}set onkeyup(t){this[p].set("onkeyup",t)}get onauxclick(){return S.getEventListener(this,"onauxclick")}set onauxclick(t){this[p].set("onauxclick",t)}get onclick(){return S.getEventListener(this,"onclick")}set onclick(t){this[p].set("onclick",t)}get oncontextmenu(){return S.getEventListener(this,"oncontextmenu")}set oncontextmenu(t){this[p].set("oncontextmenu",t)}get ondblclick(){return S.getEventListener(this,"ondblclick")}set ondblclick(t){this[p].set("ondblclick",t)}get onmousedown(){return S.getEventListener(this,"onmousedown")}set onmousedown(t){this[p].set("onmousedown",t)}get onmouseenter(){return S.getEventListener(this,"onmouseenter")}set onmouseenter(t){this[p].set("onmouseenter",t)}get onmouseleave(){return S.getEventListener(this,"onmouseleave")}set onmouseleave(t){this[p].set("onmouseleave",t)}get onmousemove(){return S.getEventListener(this,"onmousemove")}set onmousemove(t){this[p].set("onmousemove",t)}get onmouseout(){return S.getEventListener(this,"onmouseout")}set onmouseout(t){this[p].set("onmouseout",t)}get onmouseover(){return S.getEventListener(this,"onmouseover")}set onmouseover(t){this[p].set("onmouseover",t)}get onmouseup(){return S.getEventListener(this,"onmouseup")}set onmouseup(t){this[p].set("onmouseup",t)}get ontouchcancel(){return S.getEventListener(this,"ontouchcancel")}set ontouchcancel(t){this[p].set("ontouchcancel",t)}get ontouchend(){return S.getEventListener(this,"ontouchend")}set ontouchend(t){this[p].set("ontouchend",t)}get ontouchmove(){return S.getEventListener(this,"ontouchmove")}set ontouchmove(t){this[p].set("ontouchmove",t)}get ontouchstart(){return S.getEventListener(this,"ontouchstart")}set ontouchstart(t){this[p].set("ontouchstart",t)}get oninvalid(){return S.getEventListener(this,"oninvalid")}set oninvalid(t){this[p].set("oninvalid",t)}get onanimationcancel(){return S.getEventListener(this,"onanimationcancel")}set onanimationcancel(t){this[p].set("onanimationcancel",t)}get onanimationend(){return S.getEventListener(this,"onanimationend")}set onanimationend(t){this[p].set("onanimationend",t)}get onanimationiteration(){return S.getEventListener(this,"onanimationiteration")}set onanimationiteration(t){this[p].set("onanimationiteration",t)}get onanimationstart(){return S.getEventListener(this,"onanimationstart")}set onanimationstart(t){this[p].set("onanimationstart",t)}get onbeforeinput(){return S.getEventListener(this,"onbeforeinput")}set onbeforeinput(t){this[p].set("onbeforeinput",t)}get oninput(){return S.getEventListener(this,"oninput")}set oninput(t){this[p].set("oninput",t)}get onchange(){return S.getEventListener(this,"onchange")}set onchange(t){this[p].set("onchange",t)}get ongotpointercapture(){return S.getEventListener(this,"ongotpointercapture")}set ongotpointercapture(t){this[p].set("ongotpointercapture",t)}get onlostpointercapture(){return S.getEventListener(this,"onlostpointercapture")}set onlostpointercapture(t){this[p].set("onlostpointercapture",t)}get onpointercancel(){return S.getEventListener(this,"onpointercancel")}set onpointercancel(t){this[p].set("onpointercancel",t)}get onpointerdown(){return S.getEventListener(this,"onpointerdown")}set onpointerdown(t){this[p].set("onpointerdown",t)}get onpointerenter(){return S.getEventListener(this,"onpointerenter")}set onpointerenter(t){this[p].set("onpointerenter",t)}get onpointerleave(){return S.getEventListener(this,"onpointerleave")}set onpointerleave(t){this[p].set("onpointerleave",t)}get onpointermove(){return S.getEventListener(this,"onpointermove")}set onpointermove(t){this[p].set("onpointermove",t)}get onpointerout(){return S.getEventListener(this,"onpointerout")}set onpointerout(t){this[p].set("onpointerout",t)}get onpointerover(){return S.getEventListener(this,"onpointerover")}set onpointerover(t){this[p].set("onpointerover",t)}get onpointerup(){return S.getEventListener(this,"onpointerup")}set onpointerup(t){this[p].set("onpointerup",t)}get ontransitioncancel(){return S.getEventListener(this,"ontransitioncancel")}set ontransitioncancel(t){this[p].set("ontransitioncancel",t)}get ontransitionend(){return S.getEventListener(this,"ontransitionend")}set ontransitionend(t){this[p].set("ontransitionend",t)}get ontransitionrun(){return S.getEventListener(this,"ontransitionrun")}set ontransitionrun(t){this[p].set("ontransitionrun",t)}get ontransitionstart(){return S.getEventListener(this,"ontransitionstart")}set ontransitionstart(t){this[p].set("ontransitionstart",t)}get accessKey(){return this[Ta]}set accessKey(t){this[Ta]=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;if(t==="true"||t==="plaintext-only")return!0;if(t==="inherit")return this[W]?.isContentEditable??!1;return!1}get offsetHeight(){return this[tb]}get offsetWidth(){return this[eb]}get offsetLeft(){return this[rb]}get offsetTop(){return this[ob]}get clientHeight(){return this[ib]}get clientWidth(){return this[sb]}get clientLeft(){return this[nb]}get clientTop(){return this[lb]}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);if(isNaN(e))this.setAttribute("tabindex","0");else this.setAttribute("tabindex",String(e))}get innerText(){if(!this[tt])return this.textContent;let t="";for(let e of this[_])if(e[D]===T.elementNode){let o=e,s=this[m].getComputedStyle(o);if(o[z]!=="SCRIPT"&&o[z]!=="STYLE"&&o[z]!=="svg"){let n=s.display;if(n!=="none"){let l=s.textTransform,a=o.innerText;if((n==="block"||n==="flex")&&t&&a)t+=`
91
+ `;let y=a;switch(l){case"uppercase":y=y.toUpperCase();break;case"lowercase":y=y.toLowerCase();break;case"capitalize":y=y.replace(/(^|\s)\S/g,(u)=>u.toUpperCase());break}t+=y}}}else if(e[D]===T.textNode)t+=e.textContent.replace(/[\n\r]/,"");return t}set innerText(t){let e=this[_];while(e.length)this.removeChild(e[0]);let o=t.split(/[\n\r]/),s=this[x];for(let n=0,l=o.length;n<l;n++){if(n!==0)this.appendChild(s.createElement("br"));this.appendChild(s.createTextNode(o[n]))}}get outerText(){return this.innerText}set outerText(t){if(!this[W])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 o=0,s=e.length;o<s;o++){if(o!==0)this[W].insertBefore(this[x].createElement("br"),this);this[W].insertBefore(this[x].createTextNode(e[o]),this)}this[W].removeChild(this)}get style(){if(!this[ge])this[ge]=new Kr(h,this[m],{element:this});return this[ge]}set style(t){this.style.cssText=typeof t==="string"?t:""}get dataset(){return this[Uh]??=new rm(h,this)}get dir(){return this.getAttribute("dir")||""}set dir(t){this.setAttribute("dir",t)}get hidden(){return this.getAttribute("hidden")!==null}set hidden(t){if(!t)this.removeAttribute("hidden");else this.setAttribute("hidden","")}get inert(){return this.getAttribute("inert")!==null}set inert(t){if(!t)this.removeAttribute("inert");else this.setAttribute("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 Zl("click",{bubbles:!0,composed:!0,cancelable:!0}))}blur(){il.blur(this)}focus(){il.focus(this)}[ct](t=!1){let e=super[ct](t);return e[Ta]=this[Ta],e}[sr](){let t=this[m],e=this[ot],o=t.customElements[bi];if(this.constructor===t.HTMLElement&&e.includes("-")&&o){if(!this.#t){let s=this.#e.bind(this),n=o.get(e);if(n)n.unshift(s);else o.set(e,[s]);this.#t=s}}super[sr]()}[nr](){let t=this[m],e=this[ot],o=t.customElements[bi];if(this.constructor===t.HTMLElement&&e.includes("-")&&o){let s=o.get(e);if(s&&this.#t){let n=s.indexOf(this.#t);if(n!==-1)s.splice(n,1);if(!s.length)o.delete(e);this.#t=null}}super[nr]()}[Re](t,e){super[Re](t,e),this[m][Qs].enqueueReaction(this,"attributeChangedCallback",[t.name,e?.value??null,t.value])}[br](t){super[br](t),this[m][Qs].enqueueReaction(this,"attributeChangedCallback",[t.name,t.value,null])}[At](){super[At](),this[ge]=null,this[Uh]=null}#e(){if(!this[W])return;let t=this[m],e=this[ot],o=this[x].createElement(e),s=o[U];o[_]=this[_],o[bt]=this[bt],o[Ns]=null,o[ir]=null,o[tt]=this[tt],o[ve]=this[ve],o[Ut]=this[Ut],o[W]=this[W],o[Ie]=this[Ie],o[Je]=this[Je],o[ro]=this[ro],o[eo]=this[eo],o[U]=this[U],o[He]=this[He],o[St][Ai]=this[St][Ai],o[St][Wr]=this[St][Wr],o[St][Q]=this[St][Q];for(let u of o[St][Q].values())u[xt]=o;this[Mr](),this[_]=[],this[bt]=[],this[Ns]=null,this[ir]=null,this[W]=null,this[ve]=null,this[Ut]=null,this[Ie]=null,this[Je]=null,this[ro]=[],this[eo]=null,this[U]=s,this[He]=[],this[St][Ai]=new Map,this[St][Wr]=new Map,this[St][Q]=new Map;for(let u of o[_])u[W]=o;let n=o[W][_],l=o[W][bt];n[n.indexOf(this)]=o,l[l.indexOf(this)]=o;let a=t.customElements[bi],y=a.get(e);if(y&&this.#t){let u=y.indexOf(this.#t);if(u!==-1)y.splice(u,1);if(!y.length)a.delete(e);this.#t=null}if(o[tt]){if(o[be])o[be][tt]=!0;o[sr]()}}}class om{element;constructor(t){this.element=t}getOrigin(){try{return new URL(this.getHref()).origin}catch(t){return""}}getHref(){if(!this.element.hasAttribute("href"))return"";try{return new URL(this.element.getAttribute("href"),this.element[x].location.href).href}catch(t){return this.element.getAttribute("href")}}setHref(t){this.element.setAttribute("href",t)}getProtocol(){try{return new URL(this.getHref()).protocol}catch(t){return""}}setProtocol(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.protocol=t,this.element.setAttribute("href",e.href)}getUsername(){try{return new URL(this.getHref()).username}catch(t){return""}}setUsername(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.username=t,this.element.setAttribute("href",e.href)}getPassword(){try{return new URL(this.getHref()).password}catch(t){return""}}setPassword(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.password=t,this.element.setAttribute("href",e.href)}getHost(){try{return new URL(this.getHref()).host}catch(t){return""}}setHost(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.host=t,this.element.setAttribute("href",e.href)}getHostname(){try{return new URL(this.getHref()).hostname}catch(t){return""}}setHostname(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.hostname=t,this.element.setAttribute("href",e.href)}getPort(){try{return new URL(this.getHref()).port}catch(t){return""}}setPort(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.port=t,this.element.setAttribute("href",e.href)}getPathname(){try{return new URL(this.getHref()).pathname}catch(t){return""}}setPathname(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.pathname=t,this.element.setAttribute("href",e.href)}getSearch(){try{return new URL(this.getHref()).search}catch(t){return""}}setSearch(t){let e;try{e=new URL(this.getHref())}catch(o){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(o){return""}return e.hash}setHash(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.hash=t,this.element.setAttribute("href",e.href)}}class Rp extends B{[oo]=null;#t=new om(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(){if(!this[oo])this[oo]=new Or(h,this,"rel");return this[oo]}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[lr]&&t.type==="click"&&t instanceof qe&&(t.eventPhase===ae.none||t.eventPhase===ae.bubbling)){let o=this.href;if(o){let s=[];if(this.relList.contains("noreferrer"))s.push("noreferrer");if(this.relList.contains("noopener"))s.push("noopener");if(this[m].open(o,this.target||"_self",s.join(",")),this[m].closed)t.stopImmediatePropagation()}}return e}}class Fp extends B{[oo]=null;#t=new om(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(){if(!this[oo])this[oo]=new Or(h,this,"rel");return this[oo]}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[lr]&&t[Qt]==="click"&&t[xr]===ae.none&&t instanceof qe){let o=this.href;if(o){if(this[m].open(o,this.target||"_self"),this[m].closed)t.stopImmediatePropagation()}}return e}}class sl{constructor(t){if(t!==h)throw 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}}import JP from"crypto";class Vp extends N{track;constructor(t,e=null){super(t,e);this.track=e?.track??null}}class nl extends vt{active=!0;id=JP.randomUUID();onaddtrack=null;onremovetrack=null;[fi]=[];constructor(t){super();if(!this[m])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);if(t!==void 0)this[fi]=t instanceof nl?t[fi].slice():t}addTrack(t){if(this[fi].includes(t))return;this[fi].push(t),this.dispatchEvent(new Vp("addtrack",{track:t}))}clone(){return new this.constructor(this)}getAudioTracks(){return this[fi].filter((t)=>t.kind==="audio")}getTrackById(t){for(let e of this[fi])if(e.id===t)return e;return null}getVideoTracks(){return this[fi].filter((t)=>t.kind==="video")}removeTrack(t){let e=this[fi].indexOf(t);if(e===-1)return;this[fi].splice(e,1),this.dispatchEvent(new Vp("removetrack",{track:t}))}}var tg;(function(t){t.subtitles="subtitles",t.captions="captions",t.descriptions="descriptions",t.chapters="chapters",t.metadata="metadata"})(tg||(tg={}));var Ps=tg;class an extends B{[kh]=1;[Tl]=!0;[Mh]=0;[Ih]=1;[Rh]=1;[Ca]=!1;[Cl]=!1;[Fh]=!0;[pb]=new sl(h);[ub]=NaN;[Qe]=null;[hb]=!1;[cb]=0;[kn]=0;[db]=!1;[bb]=new sl(h);[_h]="";[gb]=new sl(h);[Sb]=new this[m].RemotePlayback;[Dm]=null;[Wh]=null;[Yh]=null;[Vh]=[];get onabort(){return S.getEventListener(this,"onabort")}set onabort(t){this[p].set("onabort",t)}get oncanplay(){return S.getEventListener(this,"oncanplay")}set oncanplay(t){this[p].set("oncanplay",t)}get oncanplaythrough(){return S.getEventListener(this,"oncanplaythrough")}set oncanplaythrough(t){this[p].set("oncanplaythrough",t)}get ondurationchange(){return S.getEventListener(this,"ondurationchange")}set ondurationchange(t){this[p].set("ondurationchange",t)}get onemptied(){return S.getEventListener(this,"onemptied")}set onemptied(t){this[p].set("onemptied",t)}get onended(){return S.getEventListener(this,"onended")}set onended(t){this[p].set("onended",t)}get onloadeddata(){return S.getEventListener(this,"onloadeddata")}set onloadeddata(t){this[p].set("onloadeddata",t)}get onloadedmetadata(){return S.getEventListener(this,"onloadedmetadata")}set onloadedmetadata(t){this[p].set("onloadedmetadata",t)}get onloadstart(){return S.getEventListener(this,"onloadstart")}set onloadstart(t){this[p].set("onloadstart",t)}get onpause(){return S.getEventListener(this,"onpause")}set onpause(t){this[p].set("onpause",t)}get onplay(){return S.getEventListener(this,"onplay")}set onplay(t){this[p].set("onplay",t)}get onplaying(){return S.getEventListener(this,"onplaying")}set onplaying(t){this[p].set("onplaying",t)}get onprogress(){return S.getEventListener(this,"onprogress")}set onprogress(t){this[p].set("onprogress",t)}get onratechange(){return S.getEventListener(this,"onratechange")}set onratechange(t){this[p].set("onratechange",t)}get onresize(){return S.getEventListener(this,"onresize")}set onresize(t){this[p].set("onresize",t)}get onseeked(){return S.getEventListener(this,"onseeked")}set onseeked(t){this[p].set("onseeked",t)}get onseeking(){return S.getEventListener(this,"onseeking")}set onseeking(t){this[p].set("onseeking",t)}get onstalled(){return S.getEventListener(this,"onstalled")}set onstalled(t){this[p].set("onstalled",t)}get onsuspend(){return S.getEventListener(this,"onsuspend")}set onsuspend(t){this[p].set("onsuspend",t)}get ontimeupdate(){return S.getEventListener(this,"ontimeupdate")}set ontimeupdate(t){this[p].set("ontimeupdate",t)}get onvolumechange(){return S.getEventListener(this,"onvolumechange")}set onvolumechange(t){this[p].set("onvolumechange",t)}get onwaiting(){return S.getEventListener(this,"onwaiting")}set onwaiting(t){this[p].set("onwaiting",t)}get buffered(){return this[pb]}get duration(){return this[ub]}get error(){return this[Qe]}get ended(){return this[hb]}get networkState(){return this[cb]}get readyState(){return this[kn]}get remote(){return this[Sb]}get seeking(){return this[db]}get seekable(){return this[bb]}get sinkId(){return this[_h]}get played(){return this[gb]}get autoplay(){return this.getAttribute("autoplay")!==null}set autoplay(t){if(!t)this.removeAttribute("autoplay");else this.setAttribute("autoplay","")}get controls(){return this.getAttribute("controls")!==null}set controls(t){if(!t)this.removeAttribute("controls");else this.setAttribute("controls","")}get loop(){return this.getAttribute("loop")!==null}set loop(t){if(!t)this.removeAttribute("loop");else this.setAttribute("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[x].location.href).href}catch(t){return this.getAttribute("src")}}set src(t){if(this.setAttribute("src",t),Boolean(t))this.dispatchEvent(new N("canplay",{bubbles:!1,cancelable:!1})),this.dispatchEvent(new N("durationchange",{bubbles:!1,cancelable:!1}))}get controlsList(){if(this[Dm]===null)this[Dm]=new Or(h,this,"controlslist");return this[Dm]}set controlsList(t){this.setAttribute("controlslist",t)}get mediaKeys(){return this[Wh]}get muted(){if(this[Ca])return this[Ca];if(!this[Cl])return this.getAttribute("muted")!==null;return!1}set muted(t){if(this[Ca]=!!t,!t&&!this[Cl])this.removeAttribute("muted");else this.setAttribute("muted","")}get defaultMuted(){return this[Cl]}set defaultMuted(t){if(this[Cl]=!!t,!this[Cl]&&!this[Ca])this.removeAttribute("muted");else this.setAttribute("muted","")}get disableRemotePlayback(){return this.getAttribute("disableremoteplayback")!==null}set disableRemotePlayback(t){if(!t)this.removeAttribute("disableremoteplayback");else this.setAttribute("disableremoteplayback","")}get srcObject(){return this[Yh]}set srcObject(t){if(t!==null&&!(t instanceof nl))throw new this[m].TypeError("Failed to set the 'srcObject' property on 'HTMLMediaElement': The provided value is not of type 'MediaStream'.");this[Yh]=t}get textTracks(){let t=[];for(let e of this[Vh])t.push(e);for(let e of this.querySelectorAll("track")[Q])t.push(e.track);return new this[m].TextTrackList(h,t)}get currentSrc(){let t=this.src;if(t)return t;let e=this.querySelector("source");return e?e.src:""}get volume(){return this[kh]}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].`,w.indexSizeError);this[kh]=e}get crossOrigin(){let t=this.getAttribute("crossorigin");if(t==="use-credentials")return"use-credentials";if(t!==null)return"anonymous";return null}set crossOrigin(t){this.setAttribute("crossorigin",t)}get currentTime(){return this[Mh]}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[Mh]=e}get playbackRate(){return this[Ih]}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[Ih]=e}get defaultPlaybackRate(){return this[Rh]}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[Rh]=e}get preservesPitch(){return this[Fh]}set preservesPitch(t){this[Fh]=Boolean(t)}get paused(){return this[Tl]}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,o){let s=this[m];if(arguments.length===0)throw new s.TypeError("Failed to execute 'addTextTrack' on 'HTMLMediaElement': 1 argument required, but only 0 present.");if(!Ps[t])throw new s.TypeError(`Failed to execute 'addTextTrack' on 'HTMLMediaElement': The provided value '${t}' is not a valid enum value of type TextTrackKind.`);let n=new s.TextTrack(h);return n[xo]=t,n[Us]=e||"",n[Il]=o||"",this[Vh].push(n),n}pause(){if(this[Tl])return;this[Tl]=!0,this.dispatchEvent(new N("pause",{bubbles:!1,cancelable:!1}))}async play(){if(!this[Tl])return;this[Tl]=!1,this.dispatchEvent(new N("play",{bubbles:!1,cancelable:!1})),this.dispatchEvent(new N("playing",{bubbles:!1,cancelable:!1}))}canPlayType(t){return""}fastSeek(t){}load(){this.dispatchEvent(new N("emptied",{bubbles:!1,cancelable:!1}))}async setMediaKeys(t){this[Wh]=t}async setSinkId(t){this[_h]=t}captureStream(){return new this[m].MediaStream}[ct](t=!1){return super[ct](t)}}class ia extends an{}class Dp extends B{get href(){if(!this.hasAttribute("href"))return this[x].location.href;try{return new URL(this.getAttribute("href"),this[x].location.href).href}catch(t){return this.getAttribute("href")}}set href(t){this.setAttribute("href",t)}get target(){return this.getAttribute("target")||""}set target(t){this.setAttribute("target",t)}[ct](t=!1){return super[ct](t)}}class Bp extends B{get onafterprint(){return S.getEventListener(this,"onafterprint")}set onafterprint(t){this[p].set("onafterprint",t)}get onbeforeprint(){return S.getEventListener(this,"onbeforeprint")}set onbeforeprint(t){this[p].set("onbeforeprint",t)}get onbeforeunload(){return S.getEventListener(this,"onbeforeunload")}set onbeforeunload(t){this[p].set("onbeforeunload",t)}get ongamepadconnected(){return S.getEventListener(this,"ongamepadconnected")}set ongamepadconnected(t){this[p].set("ongamepadconnected",t)}get ongamepaddisconnected(){return S.getEventListener(this,"ongamepaddisconnected")}set ongamepaddisconnected(t){this[p].set("ongamepaddisconnected",t)}get onhashchange(){return S.getEventListener(this,"onhashchange")}set onhashchange(t){this[p].set("onhashchange",t)}get onlanguagechange(){return S.getEventListener(this,"onlanguagechange")}set onlanguagechange(t){this[p].set("onlanguagechange",t)}get onmessage(){return S.getEventListener(this,"onmessage")}set onmessage(t){this[p].set("onmessage",t)}get onmessageerror(){return S.getEventListener(this,"onmessageerror")}set onmessageerror(t){this[p].set("onmessageerror",t)}get onoffline(){return S.getEventListener(this,"onoffline")}set onoffline(t){this[p].set("onoffline",t)}get ononline(){return S.getEventListener(this,"ononline")}set ononline(t){this[p].set("ononline",t)}get onpagehide(){return S.getEventListener(this,"onpagehide")}set onpagehide(t){this[p].set("onpagehide",t)}get onpageshow(){return S.getEventListener(this,"onpageshow")}set onpageshow(t){this[p].set("onpageshow",t)}get onpopstate(){return S.getEventListener(this,"onpopstate")}set onpopstate(t){this[p].set("onpopstate",t)}get onrejectionhandled(){return S.getEventListener(this,"onrejectionhandled")}set onrejectionhandled(t){this[p].set("onrejectionhandled",t)}get onstorage(){return S.getEventListener(this,"onstorage")}set onstorage(t){this[p].set("onstorage",t)}get onunhandledrejection(){return S.getEventListener(this,"onunhandledrejection")}set onunhandledrejection(t){this[p].set("onunhandledrejection",t)}get onunload(){return S.getEventListener(this,"onunload")}set onunload(t){this[p].set("onunload",t)}}class Op extends B{}var ZP=/^([^\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))*$/,tA=/^(?:(?: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*)?$/;class qr{element;constructor(t){this.element=t}get badInput(){return this.element[ot]==="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[Ce].length>0}get patternMismatch(){return this.element[ot]==="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[ot]==="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[ot]==="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[ot]==="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[ot]==="input"||this.element[ot]==="textarea")&&this.element.maxLength>0&&this.element.value.length>this.element.maxLength}get tooShort(){return(this.element[ot]==="input"||this.element[ot]==="textarea")&&this.element.minLength>0&&this.element.value.length>0&&this.element.value.length<this.element.minLength}get typeMismatch(){return this.element[ot]==="input"&&this.element.value.length>0&&(this.element.type==="email"&&!ZP.test(this.element.value)||this.element.type==="url"&&!tA.test(this.element.value))}get valueMissing(){if(!this.element.required||this.element[ot]==="object"||this.element[ot]==="output")return!1;if(this.element[ot]==="input"){if(this.element.type==="checkbox")return!this.element.checked;else if(this.element.type==="radio"){if(this.element.checked)return!1;if(!this.element.name)return!0;let t=this.element[Ut]||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}}class $r{static getAssociatedLabelElements(t){let e=t.id,o;if(e&&t[tt])o=(t[ve]||t[x]).querySelectorAll(`label[for="${e}"]`)[Q];else o=[];let s=t[W];while(s){if(s.tagName==="LABEL"){o.push(s);break}s=s[W]}return new Yo(h,o)}}import{URL as eA}from"url";var rA=["submit","reset","button","menu"];class Gp extends B{[Ce]="";[Ke]=new qr(this);[Ut]=null;[Hn]=null;get validationMessage(){return this[Ce]}get validity(){return this[Ke]}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){if(!t)this.removeAttribute("disabled");else this.setAttribute("disabled","")}get type(){let t=this.getAttribute("type");if(t===null||!rA.includes(t))return"submit";return t}set type(t){this.setAttribute("type",t)}get formAction(){if(!this.hasAttribute("formaction"))return this[x].location.href;try{return new eA(this.getAttribute("formaction"),this[x].location.href).href}catch(t){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){if(!t)this.removeAttribute("formnovalidate");else this.setAttribute("formnovalidate","")}get formTarget(){return this.getAttribute("formtarget")||""}set formTarget(t){this.setAttribute("formtarget",t)}get form(){if(this[Ut])return this[Ut];let t=this.getAttribute("form");if(!t||!this[tt])return null;return this[x].getElementById(t)}get labels(){return $r.getAssociatedLabelElements(this)}get popoverTargetElement(){return this[Hn]}set popoverTargetElement(t){if(t!==null&&!(t instanceof B))throw new this[m].TypeError("Failed to set the 'popoverTargetElement' property on 'HTMLInputElement': Failed to convert value to 'Element'.");this[Hn]=t}get popoverTargetAction(){let t=this.getAttribute("popovertargetaction");if(t===null||t!=="hide"&&t!=="show"&&t!=="toggle")return"toggle";return 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[Ke].valid;if(!t)this.dispatchEvent(new N("invalid",{bubbles:!0,cancelable:!0}));return t}reportValidity(){return this.checkValidity()}setCustomValidity(t){this[Ce]=String(t)}dispatchEvent(t){if(t.type==="click"&&t instanceof qe&&t.eventPhase===ae.none&&this.disabled)return!1;let e=super.dispatchEvent(t);if(!t[lr]&&t.type==="click"&&t.eventPhase===ae.none&&t instanceof qe){let o=this.type;if(o==="submit"||o==="reset"){let s=this.form;if(s){if(o==="submit"&&this[tt])s.requestSubmit(this);else if(o==="reset")s.reset()}}}return e}}class bc{height;width;constructor(t,e){this.width=t,this.height=e}close(){}}class gc{width;height;constructor(t,e){this.width=t,this.height=e}getContext(t,e){return null}async convertToBlob(t){return new ie([])}transferToImageBitmap(){return new bc(this.width,this.height)}}var cS="S3F/aBCdEfGHIjKlMnOpQRStUvWxYz1234567890+1AbC2DEf2GHi3jK34le+ab12C3+1aBCdEf==";class Up extends B{get oncontextlost(){return S.getEventListener(this,"oncontextlost")}set oncontextlost(t){this[p].set("oncontextlost",t)}get oncontextrestored(){return S.getEventListener(this,"oncontextrestored")}set oncontextrestored(t){this[p].set("oncontextrestored",t)}get onwebglcontextcreationerror(){return S.getEventListener(this,"onwebglcontextcreationerror")}set onwebglcontextcreationerror(t){this[p].set("onwebglcontextcreationerror",t)}get onwebglcontextlost(){return S.getEventListener(this,"onwebglcontextlost")}set onwebglcontextlost(t){this[p].set("onwebglcontextlost",t)}get onwebglcontextrestored(){return S.getEventListener(this,"onwebglcontextrestored")}set onwebglcontextrestored(t){this[p].set("onwebglcontextrestored",t)}get width(){let t=this.getAttribute("width");return t!==null?Number(t):300}set width(t){this.setAttribute("width",String(t))}get height(){let t=this.getAttribute("height");return t!==null?Number(t):150}set height(t){this.setAttribute("height",String(t))}captureStream(t){let e=new this[m].MediaStream,o=new this[m].CanvasCaptureMediaStreamTrack(h,this);if(o[xo]="video",o[Pi].deviceId=cS,o[Pi].aspectRatio.max=this.width,o[Pi].height.max=this.height,o[Pi].width.max=this.width,o[In].deviceId=cS,t!==void 0)o[Pi].frameRate.max=t,o[In].frameRate=t;return e.addTrack(o),e}getContext(t,e){return null}toDataURL(t,e){return""}toBlob(t,e,o){t(new ie([]))}transferControlToOffscreen(){return new gc(this.width,this.height)}}class Hp extends B{}class Wp extends B{get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t)}}class _p extends B{[Ui]=null;get options(){if(!this[Ui])this[Ui]=oe.getElementsByTagName(this,"OPTION");return this[Ui]}}class Yp extends B{get ontoggle(){return S.getEventListener(this,"ontoggle")}set ontoggle(t){this[p].set("ontoggle",t)}get open(){return this.getAttribute("open")!==null}set open(t){if(t)this.setAttribute("open","");else this.removeAttribute("open")}[Re](t,e){if(super[Re](t,e),t[rt]==="open"){if(t[q]!==e?.[q])this.dispatchEvent(new N("toggle"))}}[br](t){if(super[br](t),t&&t[rt]==="open")this.dispatchEvent(new N("toggle"))}dispatchEvent(t){let e=super.dispatchEvent(t);if(!t[lr]&&t.type==="click"&&t.eventPhase===ae.bubbling&&t instanceof qe){let o=t[wr];if(o)if(o[ot]==="summary"&&o[W]===this)this.open=!this.open;else{let s=o;for(let n of this[bt])if(n[ot]==="summary"){s=n;break}if(s&&s.contains(o))this.open=!this.open}}return e}}class Kp extends B{[Lh]="";get oncancel(){return S.getEventListener(this,"oncancel")}set oncancel(t){this[p].set("oncancel",t)}get onclose(){return S.getEventListener(this,"onclose")}set onclose(t){this[p].set("onclose",t)}get returnValue(){return this[Lh]}set returnValue(t){this[Lh]=String(t)}set open(t){if(t)this.setAttribute("open","");else this.removeAttribute("open")}get open(){return this.getAttribute("open")!==null}close(t){let e=this.open;if(this.removeAttribute("open"),this.returnValue=t!==void 0?String(t):"",e)this.dispatchEvent(new N("close"))}showModal(){this.setAttribute("open","")}show(){this.setAttribute("open","")}}class Qp extends B{}class jp extends B{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[x].location.href).href}catch(t){return this.getAttribute("src")}}set src(t){this.setAttribute("src",t)}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}}class sa extends B{[Gi]=null;[Ut]=null;get elements(){if(!this[Gi])this[Gi]=new de(h,()=>yt.querySelectorAll(this,"input,button,textarea,select")[Q]);return this[Gi]}get form(){if(this[Ut])return this[Ut];let t=this.getAttribute("form");if(!t||!this[tt])return null;return this[x].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!1}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){if(!t)this.removeAttribute("disabled");else this.setAttribute("disabled","")}checkValidity(){return!0}reportValidity(){return!0}setCustomValidity(t){}}class na extends de{constructor(t,e){super(t,()=>e[lo]());this[xt]=e}namedItem(t){return this[xt][Mm](t)}}class As{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[to];if(t.closed)return Promise.resolve();return t.closed=!0,new Promise((o,s)=>{if(!t.window){o();return}if(t.parentFrame){let n=t.parentFrame.childFrames.indexOf(t);if(n!==-1)t.parentFrame.childFrames.splice(n,1)}if(!t.childFrames.length){if(t[Pt].destroy().then(()=>{if(e&&t.window)e.disconnect(t.window);if(t.window={closed:!0},t[io]=null,t[Si]=null,t[he])t[he].navigation=[];o()}).catch((n)=>s(n)),t.window)t.window[At]();return}Promise.all(t.childFrames.slice().map((n)=>this.destroyFrame(n))).then(()=>{if(t[Pt].destroy().then(()=>{if(e&&t.window)e.disconnect(t.window);if(t.window={closed:!0},t[io]=null,t[Si]=null,t[he])t[he].navigation=[];o()}).catch((n)=>s(n)),t.window)t.window[At]()}).catch((n)=>s(n))})}}var eg;(function(t){t.anyOrigin="anyOrigin",t.sameOrigin="sameOrigin",t.strictOrigin="strictOrigin"})(eg||(eg={}));var im=eg;class qp{static validateCrossOriginPolicy(t,e){let o=t.page.context.browser.settings,s=t.page.mainFrame.window.location;if(t[io])s=t[io].window.location;else if(t.parentFrame)s=t.parentFrame.window.location;if(o.navigation.crossOriginPolicy===im.sameOrigin&&s.protocol!=="about:"&&e.protocol!=="about:"&&e.protocol!=="javascript:"&&s.origin!==e.origin)return!1;if(o.navigation.crossOriginPolicy===im.strictOrigin&&s.protocol==="https:"&&e.protocol==="http:")return!1;return!0}static validateFrameNavigation(t){let e=t.page.context.browser.settings;if(t.page.context.browser.windowClass&&t.page.context===t.page.context.browser.defaultContext&&t.page.context.pages[0]===t.page&&t.page.mainFrame===t)return!1;if(e.navigation.disableMainFrameNavigation&&t.page.mainFrame===t)return!1;if(e.navigation.disableChildFrameNavigation&&t.page.mainFrame!==t)return!1;if(e.navigation.disableChildPageNavigation&&!!t[io])return!1;return!0}}class Xr{static async navigate(t){let{windowClass:e,frame:o,url:s,formData:n,method:l,goToOptions:a,disableHistory:y}=t,u=o.page.context.browser[to],c=a?.referrer||o.window.location.origin,d=Fo.getRelativeURL(o,s),g=new URL(d.href.split("#")[0]),f=new URL(o.url.split("#")[0]),E=()=>{let Ue=o[he].navigation;o[he].navigation=[];for(let Jr of Ue)Jr()};if(!o.window)throw Error('The frame has been destroyed, the "window" property is not set.');if(g.href===f.href&&d.hash&&d.hash!==o.window?.location.hash){let Ue=o[Oe];if(!y)Ue.currentItem.popState=!0,Ue.push({title:"",href:d.href,state:null,popState:!0,scrollRestoration:ii.manual,method:l||(n?"POST":"GET"),formData:n||null});return o.window.location[_r](o,d.href),null}if(d.protocol==="javascript:"){if(o&&o.page.context.browser.settings.enableJavaScriptEvaluation){let Ue=o.window[Eo],Jr=o[Pt],Cs=Ue.startTask(),vm=d.href.replace("javascript:","");await new Promise((Ig)=>{o.window.requestAnimationFrame(()=>{let sf=setImmediate(()=>{Jr.endTask(nf),Ig(null)}),nf=Jr.startTask(()=>()=>{clearImmediate(sf),Ig(null)});o.window[Uo](vm,{filename:o.url})})}),Ue.endTask(Cs),E()}return null}if(!qp.validateCrossOriginPolicy(o,d))return null;if(!qp.validateFrameNavigation(o)){if(!o.page.context.browser.settings.navigation.disableFallbackToSetURL)o.window.location[_r](o,d.href);return null}if(!y)o[Oe].push({title:"",href:d.href,state:null,popState:!1,scrollRestoration:ii.auto,method:l||(n?"POST":"GET"),formData:n||null});let R=o.window,H=o[Pt],{innerWidth:pt,innerHeight:gt,devicePixelRatio:Rt}=R,lt=o.parentFrame?o.parentFrame.window:o.page.mainFrame.window,dt=o.page.mainFrame.window;if(o[Pt]=new Js(o),o.window=new e(o,{url:d.href,width:pt,height:gt}),o.window[ao]=lt,o.window[Jo]=dt,o.window.devicePixelRatio=Rt,u)u.observe(o.window);if(c)o.window.document[Pr]=c;let ee=o[Pt].startTask(),Ct=()=>{H.destroy().then(()=>{if(u)u.disconnect(R);o[Pt].endTask(ee)}),R[At]()};if(o.childFrames.length)Promise.all(o.childFrames.map((Ue)=>As.destroyFrame(Ue))).then(Ct);else Ct();if(d.protocol==="about:"){if(a?.beforeContentCallback)a.beforeContentCallback(o.window);if(o.page.context.browser.settings.navigation.beforeContentCallback)o.page.context.browser.settings.navigation.beforeContentCallback(o.window);return await new Promise((Ue)=>o.page.mainFrame.window.requestAnimationFrame(Ue)),E(),null}let or=o.window[Eo],Ye=o[Pt],Hr=new o.window.AbortController,zr=setTimeout(()=>{Ye.endTimer(zr),Hr.abort(new o.window.DOMException("The operation was aborted. Request timed out.",w.timeoutError))},a?.timeout??30000);Ye.startTimer(zr);let Ts=or.startTask(),hi=()=>{clearTimeout(zr),Ye.endTimer(zr),or.endTask(Ts),E()},fa=new o.window.Headers(a?.headers),Bo,Pa;if(a?.hard)fa.set("Cache-Control","no-cache");let xm=new Br({browserFrame:o,window:o.window,url:d.href,disableSameOriginPolicy:!0,init:{referrer:c,referrerPolicy:a?.referrerPolicy||"origin",signal:Hr.signal,method:l||(n?"POST":"GET"),headers:fa,body:n}});try{if(Bo=await xm.send(),o.parentFrame){let Ue=o.parentFrame.window.location,Jr=Bo.headers?.get("X-Frame-Options")?.toLowerCase(),Cs=Ue.origin===d.origin||d.origin==="null";if(Jr==="deny"||Jr==="sameorigin"&&!Cs)throw Error(`Refused to display '${s}' in a frame because it set 'X-Frame-Options' to '${Jr}'.`)}Pa=await Bo.text()}catch(Ue){throw hi(),Ue}if(!o.window)return null;if(Bo.url)o.window[no][_r](o,Bo.url);if(!Bo.ok)o.page.console.error(`GET ${d.href} ${Bo.status} (${Bo.statusText})`);if(a?.beforeContentCallback)a.beforeContentCallback(o.window);if(o.page.context.browser.settings.navigation.beforeContentCallback)o.page.context.browser.settings.navigation.beforeContentCallback(o.window);return await new Promise((Ue)=>{o.window.requestAnimationFrame(()=>{let Jr,Cs=Ye.startTask(()=>()=>{clearImmediate(Jr),Ue(null)});Jr=setImmediate(()=>{Ye.endTask(Cs),Ue(null)}),o.content=Pa})}),hi(),Bo}static navigateBack(t){let{windowClass:e,frame:o,goToOptions:s}=t,n=o[Oe],l=n.items[n.items.indexOf(n.currentItem)-1];if(!l)return new Promise((u)=>{o.window.requestAnimationFrame(()=>{let c=o[he].navigation;o[he].navigation=[];for(let d of c)d();u(null)})});let a=new URL(n.currentItem.href).origin,y=new URL(l.href).origin;if(n.currentItem=l,!l.popState||a!==y)return Xr.navigate({windowClass:e,frame:o,goToOptions:{...s,referrer:o.url},url:l.href,method:l.method,formData:l.formData,disableHistory:!0});return o.window.location[_r](o,l.href),o.window.dispatchEvent(new o.window.PopStateEvent("popstate",{state:l.state,hasUAVisualTransition:!1})),Promise.resolve(null)}static navigateForward(t){let{windowClass:e,frame:o,goToOptions:s}=t,n=o[Oe],l=n.items[n.items.indexOf(n.currentItem)+1];if(!l)return new Promise((u)=>{o.window.requestAnimationFrame(()=>{let c=o[he].navigation;o[he].navigation=[];for(let d of c)d();u(null)})});let a=new URL(n.currentItem.href).origin,y=new URL(l.href).origin;if(n.currentItem=l,!l.popState||a!==y)return Xr.navigate({windowClass:e,frame:o,goToOptions:{...s,referrer:o.url},url:l.href,method:l.method,formData:l.formData,disableHistory:!0});return o.window.location[_r](o,l.href),o.window.dispatchEvent(new o.window.PopStateEvent("popstate",{state:l.state,hasUAVisualTransition:!1})),Promise.resolve(null)}static navigateSteps(t){if(!t.steps)return this.reload(t);let{windowClass:e,frame:o,goToOptions:s,steps:n}=t,l=o[Oe],a=l.items.indexOf(l.currentItem),y=a+n,u=l.items[y];if(!u)return new Promise((g)=>{o.window.requestAnimationFrame(()=>{let f=o[he].navigation;o[he].navigation=[];for(let E of f)E();g(null)})});let c=new URL(l.currentItem.href).origin,d=!0;if(n<0){for(let g=a;g>y;g--)if(!l.items[g].popState||c!==new URL(l.items[g].href).origin){d=!1;break}}else for(let g=a;g<y;g++)if(!l.items[g].popState||c!==new URL(l.items[g].href).origin){d=!1;break}if(l.currentItem=u,!d)return Xr.navigate({windowClass:e,frame:o,goToOptions:{...s,referrer:o.url},url:u.href,method:u.method,formData:u.formData,disableHistory:!0});return o.window.location[_r](o,u.href),o.window.dispatchEvent(new o.window.PopStateEvent("popstate",{state:u.state,hasUAVisualTransition:!1})),Promise.resolve(null)}static reload(t){let{windowClass:e,frame:o,goToOptions:s}=t,n=o[Oe];return Xr.navigate({windowClass:e,frame:o,goToOptions:{...s,referrer:o.url},url:n.currentItem.href,method:n.currentItem.method,formData:n.currentItem.formData,disableHistory:!0})}}class sm extends Yo{get value(){for(let t of this[Q])if(t.checked)return t.value;return null}}class nm extends B{[Gi]=null;[Vt];constructor(){super();let t=new fe(this,[nm,B,Gr,st,vt]),e=new Proxy(this,{get:(o,s)=>{if(s==="length")return o[lo]().length;if(s in o||typeof s==="symbol")return t.bind(s),o[s];let n=Number(s);if(!isNaN(n))return o[lo]()[n];return o[Mm](s)||void 0},set(o,s,n){if(t.bind(s),typeof s==="symbol")return o[s]=n,!0;let l=Number(s);if(isNaN(l))o[s]=n;return!0},deleteProperty(o,s){if(typeof s==="symbol")return delete o[s],!0;let n=Number(s);if(isNaN(n))delete o[s];return!0},ownKeys(o){return Object.keys(o[lo]())},has(o,s){if(s in o)return!0;if(typeof s==="symbol")return!1;let n=o[lo](),l=Number(s);if(!isNaN(l)&&l>=0&&l<n.length)return!0;s=String(s);for(let a=0;a<n.length;a++){let y=n[a],u=y.getAttribute("id")||y.getAttribute("name");if(u&&u===s)return!0}return!1},defineProperty(o,s,n){if(t.preventBinding(s),!n.value)return Object.defineProperty(o,s,n),!0;let l=Number(n.value);if(isNaN(l))return Object.defineProperty(o,s,n),!0;return!1},getOwnPropertyDescriptor(o,s){if(s in o)return Object.getOwnPropertyDescriptor(o,s);let n=o[lo](),l=Number(s);if(!isNaN(l)&&l>=0&&l<n.length)return{value:n[l],writable:!1,enumerable:!0,configurable:!0};for(let a=0;a<n.length;a++){let y=n[a],u=y.getAttribute("id")||y.getAttribute("name");if(u&&u===s)return{value:y,writable:!1,enumerable:!0,configurable:!0}}}});return this[Vt]=e,this[Ut]=e,e}get onformdata(){return S.getEventListener(this,"onformdata")}set onformdata(t){this[p].set("onformdata",t)}get onreset(){return S.getEventListener(this,"onreset")}set onreset(t){this[p].set("onreset",t)}get onsubmit(){return S.getEventListener(this,"onsubmit")}set onsubmit(t){this[p].set("onsubmit",t)}get elements(){if(!this[Gi])this[Gi]=new na(h,this);return this[Gi]}get length(){return this[lo]().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[x].location.href;try{return new URL(this.getAttribute("action"),this[x].location.href).href}catch(t){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){if(!t)this.removeAttribute("novalidate");else this.setAttribute("novalidate","")}submit(){this.#t()}requestSubmit(t){if(t?.formNoValidate||this.noValidate||this.checkValidity()){let o=new ta("submit",{bubbles:!0,cancelable:!0,submitter:t||this[Vt]});if(this.dispatchEvent(o),!o.defaultPrevented)this.#t(t)}}reset(){for(let t of this[lo]())switch(t[z]){case"TEXTAREA":t[q]=null;break;case"INPUT":t[q]=null,t[wn]=null;break;case"OUTPUT":t.textContent=t[mo];break;case"SELECT":let e=!1;for(let o of t.options)if(o.hasAttribute("selected")){e=!0,o.selected=!0;break}if(!e&&t.options.length>0)t.options[0].selected=!0;break}this.dispatchEvent(new N("reset",{bubbles:!0,cancelable:!0}))}checkValidity(){let t={},e=!0;for(let o of this[lo]())if(o[z]==="INPUT"&&o.type==="radio"&&o.name){if(!t[o.name]){if(t[o.name]=!0,!o.checkValidity())e=!1}}else if(!o.checkValidity())e=!1;return e}reportValidity(){return this.checkValidity()}[ct](t=!1){return super[ct](t)}[lo](){let t=yt.querySelectorAll(this,"input,select,textarea,button,fieldset,object,output")[Q].slice();if(this[tt]){let e=this.getAttribute("id");if(e){for(let o of yt.querySelectorAll(this[x],`input[form="${e}"],select[form="${e}"],textarea[form="${e}"],button[form="${e}"],fieldset[form="${e}"],object[form="${e}"],output[form="${e}"]`)[Q])if(!t.includes(o))t.push(o)}}return t}[Mm](t){let e=this[lo](),o=[];t=String(t);for(let s of e)if(s.getAttribute("id")===t||s.getAttribute("name")===t)o.push(s);if(!o.length)return null;if(o.length===1)return o[0];return new sm(h,o)}#t(t){let e=t?.formMethod||this.method;if(e==="dialog"){let a=null,y=this;while(y){if(y[z]==="DIALOG"){a=y;break}y=y.parentElement}if(a){a.close(t?.value);return}}let o=t?.hasAttribute("formaction")?t?.formAction||this.action:this.action,s=new it(this[m]).getBrowserFrame();if(!s)return;if(!o){this[x].location.hash="#blocked";return}let n=new this[m].FormData(this,t),l;switch(t?.formTarget||this.target){default:case"_self":l=s;break;case"_top":l=s.page.mainFrame;break;case"_parent":l=s.parentFrame??s;break;case"_blank":l=s.page.context.newPage().mainFrame,l[io]=s;break}if(e==="get"){let a=new URL(o);a.search="";for(let[y,u]of n)if(typeof u==="string")a.searchParams.append(y,u);Xr.navigate({windowClass:this[x][Lr]?.constructor,frame:l,url:a.href,goToOptions:{referrer:s.page.mainFrame.window.location.origin}});return}Xr.navigate({windowClass:this[x][Lr]?.constructor,frame:l,method:e,url:o,formData:n,goToOptions:{referrer:s.page.mainFrame.window.location.origin}})}}class $p extends B{}class Xp extends B{}class zp extends B{}class Jp extends B{}class ll extends vt{window=this;location;[On]=this;#t;constructor(t,e){super();this[ao]=e??this,this[Jo]=e??this,this.location=new Proxy({},{get:()=>{throw new re(`Blocked a frame with origin "${this.parent.location.origin}" from accessing a cross-origin frame.`,w.securityError)},set:()=>{throw new re(`Blocked a frame with origin "${this.parent.location.origin}" from accessing a cross-origin frame.`,w.securityError)}}),this.#t=t}get self(){return this[On]}set self(t){this[On]=t}get top(){return this[Jo]}get parent(){return this[ao]}set parent(t){this[ao]=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="*",o){this.#t.postMessage(t,e,o)}}var oA=["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"];class Zp extends B{[km]=null;#t={window:null};#e=null;#r=null;get onload(){return S.getEventListener(this,"onload")}set onload(t){this[p].set("onload",t)}get onerror(){return S.getEventListener(this,"onerror")}set onerror(t){this[p].set("onerror",t)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[x].location.href).href}catch(t){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(){if(!this[km])this[km]=new Or(h,this,"sandbox");return this[km]}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}[sr](){super[sr](),this.#i()}[nr](){super[nr](),this.#s()}[ct](t=!1){return super[ct](t)}[Re](t,e){if(super[Re](t,e),t[rt]==="srcdoc")this.#i();if(t[rt]==="src"&&t[q]&&!this.hasAttribute("srcdoc")&&t[q]!==e?.[q])this.#i();if(t[rt]==="sandbox")this.#o()}[br](t){if(super[br](t),t[rt]==="srcdoc"||t[rt]==="src")this.#i()}#o(){let t=this[m],e=[];for(let o of this.sandbox)if(!oA.includes(o))e.push(o);if(e.length===1)t.console.error(`Error while parsing the 'sandbox' attribute: '${e[0]}' is an invalid sandbox flag.`);else if(e.length>1)t.console.error(`Error while parsing the 'sandbox' attribute: '${e.join("', '")}' are invalid sandbox flags.`)}#i(){if(!this[tt]){this.#s();return}let t=this.getAttribute("srcdoc"),e=this[m],o=new it(e).getBrowserFrame();if(!o)return;if(t!==null){if(this.#r===t)return;this.#s(),this.#e=As.createChildFrame(o),this.#e.url="about:srcdoc",this.#t.window=this.#e.window,this.#e.window[Jo]=o.window.top,this.#e.window[ao]=o.window,this.#e.window.document.open(),this.#e.window.document.write(t),this.#r=t,this[m].requestAnimationFrame(()=>this.dispatchEvent(new N("load")));return}if(this.#r!==null)this.#s();let s=o.window.location,n=Fo.getRelativeURL(o,this.src);if(this.#e&&this.#e.window.location.href===n.href)return;if(o.page.context.browser.settings.disableIframePageLoading){let y=new e.DOMException(`Failed to load iframe page "${n.href}". Iframe page loading is disabled.`,w.notSupportedError);o.page.console.error(y),this.dispatchEvent(new N("error"));return}let l=s.origin===n.origin||n.origin==="null",a=l?e:new ll(e);this.#e=this.#e??As.createChildFrame(o),this.#e.window[Jo]=a,this.#e.window[ao]=a,this.#e.goto(n.href,{referrer:s.origin,referrerPolicy:this.referrerPolicy}).then(()=>this.dispatchEvent(new N("load"))).catch((y)=>{o.page.console.error(y),this.dispatchEvent(new N("error"))}),this.#t.window=l?this.#e.window:new ll(this.#e.window,e)}#s(){if(this.#e)As.destroyFrame(this.#e),this.#e=null;this.#t.window=null,this.#r=null}}class la extends B{[z]="IMG";[ab]=!1;[mb]=0;[yb]=0;[Bg]="auto";[k]=0;[M]=0;get complete(){return this[ab]}get naturalHeight(){return this[mb]}get naturalWidth(){return this[yb]}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[k]}get y(){return this[M]}get decoding(){return this.getAttribute("decoding")||"auto"}set decoding(t){this.setAttribute("decoding",t)}get crossOrigin(){return this.getAttribute("crossOrigin")}set crossOrigin(t){if(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");return t!==null?Number(t):0}set width(t){this.setAttribute("width",String(t))}get height(){let t=this.getAttribute("height");return t!==null?Number(t):0}set height(t){this.setAttribute("height",String(t))}get isMap(){return this.getAttribute("ismap")!==null}set isMap(t){if(!t)this.removeAttribute("ismap");else this.setAttribute("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(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[x].location.href).href}catch(t){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 useMap(){return this.getAttribute("usemap")||""}set useMap(t){this.setAttribute("usemap",t)}decode(){return Promise.resolve()}[ct](t=!1){return super[ct](t)}}class al extends Array{constructor(){super(0)}get[Symbol.toStringTag](){return this.constructor.name}item(t){return this[t]||null}}var rg=/[\n\r]/gm,Sc=(t)=>t.map((e)=>parseInt(e,10));class fc{static sanitize(t,e){switch(t.type){case"password":case"search":case"tel":case"text":return e.replace(rg,"");case"color":return/^#[a-fA-F\d]{6}$/.test(e)?e.toLowerCase():"#000000";case"email":if(t.multiple)return e.split(",").map((o)=>o.trim()).join(",");return e.trim().replace(rg,"");case"number":return!isNaN(Number.parseFloat(e))?e:"";case"range":{let o=Number.parseFloat(e),s=parseFloat(t.min)||0,n=parseFloat(t.max)||100;if(isNaN(o))return n<s?String(s):String((s+n)/2);else if(o<s)return String(s);else if(o>n)return String(n);return e}case"url":return e.trim().replace(rg,"");case"date":return this.sanitizeDate(e);case"datetime-local":{let o=e.match(/^(\d\d\d\d)-(\d\d)-(\d\d)[T ](\d\d):(\d\d)(?::(\d\d)(?:\.(\d{1,3}))?)?$/);if(!o)return"";let s=this.sanitizeDate(e.slice(0,10)),n=this.sanitizeTime(e.slice(11));if(!(s&&n))return"";if(o[6]!==void 0){if(n.indexOf(".")!==-1)n=n.replace(/(?:\.0*|(\.\d+?)0+)$/,"$1");n=n.replace(/(\d\d:\d\d)(:00)$/,"$1")}return s+"T"+n}case"month":if(!(e.match(/^(\d\d\d\d)-(\d\d)$/)&&this.parseMonthComponent(e)))return"";return 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 o=e.match(/^(\d\d\d\d)-W(\d\d)$/);if(!o)return"";let[s,n]=Sc(o.slice(1,3));if(s<=0||n<1||n>53)return"";let l=this.lastIsoWeekOfYear(s);if(n<1||n>52+l)return"";if(!this.checkBoundaries(e,t.min,t.max))return"";return e}}return e}static checkBoundaries(t,e,o){if(e&&e>t)return!1;else if(o&&o<t)return!1;return!0}static parseMonthComponent(t){let[e,o]=t.split("-"),[s,n]=Sc([e,o]);if(isNaN(s)||isNaN(n)||s<=0||n<1||n>12)return"";return t}static lastIsoWeekOfYear=(t)=>{let e=new Date(+t,11,31),o=(e.getDay()+6)%7;e.setDate(e.getDate()-o+3);let s=e.getTime();if(e.setMonth(0,1),e.getDay()!==4)e.setMonth(0,1+(4-e.getDay()+7)%7);return 1+Math.ceil((s-e.getTime())/604800000)};static sanitizeDate(t){let e=t.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!e)return"";if(!this.parseMonthComponent(t.slice(0,7)))return"";let[s,n,l]=Sc(e.slice(1,4));if(l<1||l>31)return"";let a=new Date(s,n,0).getDate();if(l>a)return"";return t}static sanitizeTime(t){let e=t.match(/^(\d{2}):(\d{2})(?::(\d{2}(?:\.(\d{1,3}))?))?$/);if(!e)return"";let[o,s]=Sc(e.slice(1,3)),n=parseFloat(e[3]||"0")*1000;if(o>23||s>59||n>59999)return"";if(n===0)return`${e[1]}:${e[2]}`;else return`${e[1]}:${e[2]}${n>=1e4?`:${n/1000}`:`:0${n/1000}`}`}}var og;(function(t){t.preserve="preserve",t.select="select",t.start="start",t.end="end"})(og||(og={}));var ws=og;var ig;(function(t){t.none="none",t.forward="forward",t.backward="backward"})(ig||(ig={}));var fo=ig;class tu{static step(t,e,o){switch(t.type){case"number":return this.getNumberValue(t,e,o);case"date":case"month":case"week":case"time":case"datetime-local":case"range":return null;default:throw new re("This form element is not steppable.")}}static getNumberValue(t,e,o){let{step:s,min:n,max:l}=t,a=n!==""?Number(n):null,y=l!==""?Number(l):null,u=Number(t.value),c=s!==""?Number(s):1;if(u=isNaN(u)?0:u,c=isNaN(c)||c===0?1:c,a!==null&&!isNaN(a)&&y!==null&&!isNaN(y)&&(a>y||y<a))return t.value;if(o===0)return t.value;let d=o!==void 0?Math.ceil(o/c)*c:c,g=u+d*e,f=a!==null&&!isNaN(a)?a:0;switch(e){case-1:if(a!==null&&!isNaN(a)&&g<a)return String(a);return String(g+(u-f)%c);case 1:if(y!==null&&!isNaN(y)&&g>y)return String(f+Math.floor((y-f)/c)*c);return String(g-(u-f)%c)}}}class lm{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)),o=Math.ceil(((t-e)/86400000+1)/7);return`${t.getUTCFullYear()}-W${o<10?"0":""}${o}`}static isoWeekDate(t){let[,e,o]=t.match(/^(\d{4})-W(\d{2})$/)||[];if(!e||!o||Number(o)>53||Number(o)<1)return new Date("x");let s=new Date(`${e}-01-01T00:00Z`),l=(new Date(`${e}-01-04T00:00Z`).getUTCDay()+6)%7,a=1+(Number(o)-1)*7-l+3;if(s.setUTCDate(a),s.getUTCFullYear()>Number(e))return new Date("x");return s}}import{URL as iA}from"url";var sA=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"]);class eu extends B{[q]=null;[F]=0;[V]=0;[wn]=null;[Ce]="";[Ke]=new qr(this);[$o]=new al;[vn]=!1;[Ut]=null;[Hn]=null;#t=null;#e=null;#r=fo.none;get oninput(){return S.getEventListener(this,"oninput")}set oninput(t){this[p].set("oninput",t)}get oninvalid(){return S.getEventListener(this,"oninvalid")}set oninvalid(t){this[p].set("oninvalid",t)}get onselectionchange(){return S.getEventListener(this,"onselectionchange")}set onselectionchange(t){this[p].set("onselectionchange",t)}get defaultChecked(){return this.hasAttribute("checked")}set defaultChecked(t){if(t)this.setAttribute("checked","");else this.removeAttribute("checked")}get files(){return this[$o]}set files(t){this[$o]=t}get formAction(){if(!this.hasAttribute("formaction"))return this[x].location.href;try{return new iA(this.getAttribute("formaction"),this[x].location.href).href}catch(t){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){if(!t)this.removeAttribute("formnovalidate");else this.setAttribute("formnovalidate","")}get formTarget(){return this.getAttribute("formtarget")||""}set formTarget(t){this.setAttribute("formtarget",t)}get form(){if(this[Ut])return this[Ut];let t=this.getAttribute("form");if(!t||!this[tt])return null;return this[x].getElementById(t)}get validationMessage(){return this[Ce]}get validity(){return this[Ke]}get height(){return this[F]}set height(t){this[F]=t,this.setAttribute("height",String(t))}get width(){return this[V]}set width(t){this[V]=t,this.setAttribute("width",String(t))}get size(){let t=this.getAttribute("size");if(t!==null)return parseInt(t);return 20}set size(t){this.setAttribute("size",String(t))}get minLength(){let t=this.getAttribute("minlength");if(t!==null)return parseInt(t);return-1}set minLength(t){this.setAttribute("minlength",String(t))}get maxLength(){let t=this.getAttribute("maxlength");if(t!==null)return parseInt(t);return-1}set maxLength(t){this.setAttribute("maxlength",String(t))}get type(){let t=(this.getAttribute("type")??"").toLowerCase();return sA.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){if(!t)this.removeAttribute("readonly");else this.setAttribute("readonly","")}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){if(!t)this.removeAttribute("disabled");else this.setAttribute("disabled","")}get autofocus(){return this.getAttribute("autofocus")!==null}set autofocus(t){if(!t)this.removeAttribute("autofocus");else this.setAttribute("autofocus","")}get required(){return this.getAttribute("required")!==null}set required(t){if(!t)this.removeAttribute("required");else this.setAttribute("required","")}get indeterminate(){return this[vn]}set indeterminate(t){this[vn]=Boolean(t)}get multiple(){return this.getAttribute("multiple")!==null}set multiple(t){if(!t)this.removeAttribute("multiple");else this.setAttribute("multiple","")}get checked(){if(this[wn]!==null)return this[wn];return this.getAttribute("checked")!==null}set checked(t){this.#i(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[$o].length>0?"/fake/path/"+this[$o][0].name:""}if(this[q]===null)return this.getAttribute("value")||"";return this[q]}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.',w.invalidStateError);this[$o]=new al;break;default:let e=this.value;if(this[q]=fc.sanitize(this,t),e!==this[q])this.#t=this[q].length,this.#e=this[q].length,this.#r=fo.none;break}}get selectionStart(){if(!this.#o())return null;if(this.#t===null)return this.value.length;return this.#t}set selectionStart(t){if(!this.#o())throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,w.invalidStateError);this.setSelectionRange(t,Math.max(t,this.selectionEnd),this.#r)}get selectionEnd(){if(!this.#o())return null;if(this.#e===null)return this.value.length;return this.#e}set selectionEnd(t){if(!this.#o())throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,w.invalidStateError);this.setSelectionRange(this.selectionStart,t,this.#r)}get selectionDirection(){if(!this.#o())return null;return this.#r}set selectionDirection(t){if(!this.#o())throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,w.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=lm.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.",w.invalidStateError);if(typeof t!=="object")throw new this[m].TypeError("Failed to set the 'valueAsDate' property on 'HTMLInputElement': Failed to convert value to 'object'.");else 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.");else 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=lm.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),o=parseFloat(this.min)||0,s=parseFloat(this.max)||100;if(isNaN(e))return s<o?o:(o+s)/2;else if(e<o)return o;else if(e>s)return s;return e}case"date":return new Date(t).getTime();case"datetime-local":return new Date(t).getTime()-new Date(t).getTimezoneOffset()*60000;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 o=new Date(Date.UTC(parseInt(e[1],10),0)),s=o.getUTCDay(),n=((s===0?-6:1)-s)*86400000+parseInt(e[2],10)*604800000;return o.getTime()+n}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}if(this.type=="date")this.value=e.toISOString().slice(0,10);else this.value=e.toISOString().slice(0,-1);break}case"month":if(!Number.isInteger(t)||t<0)this.value="";else this.value=new Date(Date.UTC(1970,Number(t))).toISOString().slice(0,7);break;case"time":if(!Number.isInteger(t)||t<0)this.value="";else this.value=new Date(Number(t)).toISOString().slice(11,-1);break;case"week":{let e=new Date(Number(t));this.value=isNaN(e.getTime())?"":lm.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.",w.invalidStateError)}}get labels(){return $r.getAssociatedLabelElements(this)}get list(){let t=this.getAttribute("list");if(!t)return null;return(this[ve]||this[x]).querySelector(`datalist#${t}`)}get popoverTargetElement(){return this[Hn]}set popoverTargetElement(t){if(t!==null&&!(t instanceof B))throw new this[m].TypeError("Failed to set the 'popoverTargetElement' property on 'HTMLInputElement': Failed to convert value to 'Element'.");this[Hn]=t}get popoverTargetAction(){let t=this.getAttribute("popovertargetaction");if(t===null||t!=="hide"&&t!=="show"&&t!=="toggle")return"toggle";return 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[Ce]=String(t)}select(){if(!this.#o())return;this.#t=0,this.#e=this.value.length,this.#r=fo.none,this.dispatchEvent(new N("select",{bubbles:!0,cancelable:!1}))}setSelectionRange(t,e,o="none"){if(!this.#o())throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,w.invalidStateError);this.#e=Math.min(e,this.value.length),this.#t=Math.min(t,this.#e),this.#r=o===fo.forward||o===fo.backward?o:fo.none,this.dispatchEvent(new N("select",{bubbles:!0,cancelable:!1}))}setRangeText(t,e=null,o=null,s=ws.preserve){if(!this.#o())throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,w.invalidStateError);if(e===null)e=this.#t;if(o===null)o=this.#e;if(e>o)throw new this[m].DOMException("The index is not in the allowed range.",w.invalidStateError);e=Math.min(e,this.value.length),o=Math.min(o,this.value.length);let n=this.value,l=this.#t,a=this.#e;this.value=n.slice(0,e)+t+n.slice(o);let y=e+this.value.length;switch(s){case ws.select:this.setSelectionRange(e,y);break;case ws.start:this.setSelectionRange(e,e);break;case ws.end:this.setSelectionRange(y,y);break;default:let u=t.length-(o-e);if(l>o)l+=u;else if(l>e)l=e;if(a>o)a+=u;else if(a>e)a=y;this.setSelectionRange(l,a);break}}checkValidity(){let t=this.disabled||this.readOnly||this.type==="hidden"||this.type==="reset"||this.type==="button"||this[Ke].valid;if(!t)this.dispatchEvent(new N("invalid",{bubbles:!0,cancelable:!0}));return t}reportValidity(){return this.checkValidity()}stepUp(t){let e=tu.step(this,1,t);if(e!==null)this.value=e}stepDown(t){let e=tu.step(this,-1,t);if(e!==null)this.value=e}[ct](t=!1){let e=super[ct](t);return e[q]=this[q],e[F]=this[F],e[V]=this[V],e[$o]=this[$o].slice(),e.#t=this.#t,e.#e=this.#e,e.#r=this.#r,e}dispatchEvent(t){if(t[Qt]!=="click"||t[xr]!==ae.none||!(t instanceof qe))return super.dispatchEvent(t);if(this.disabled)return!1;let e=null,o=this[vn],s=this.type;if(s==="checkbox"||s==="radio"){if(e=this.checked,this.#i(s==="checkbox"?!e:!0),s==="checkbox")o=this[vn],this[vn]=!1}let n=super.dispatchEvent(t);if(t[Qt]!=="click"||t[xr]!==ae.none||!(t instanceof qe))return n;if(t[lr]){if(e!==null)this.#i(e),this[vn]=o}else{let l=this.type;if(l==="checkbox"&&this[tt])this.dispatchEvent(new N("input",{bubbles:!0,cancelable:!0})),this.dispatchEvent(new N("change",{bubbles:!0,cancelable:!0}));else if(l==="radio"&&!e&&this[tt])this.dispatchEvent(new N("input",{bubbles:!0,cancelable:!0})),this.dispatchEvent(new N("change",{bubbles:!0,cancelable:!0}));else if(l==="submit"||l==="reset"){let a=this.form;if(a){if(l==="submit"&&this[tt])a.requestSubmit(this);else if(l==="reset")a.reset()}}}return n}#o(){let t=this.type;return t==="text"||t==="search"||t==="url"||t==="tel"||t==="password"}#i(t){if(this[wn]=t,this[Mr](),t&&this.type==="radio"&&this.name){let o=(this[Ut]||this.getRootNode()).querySelectorAll(`input[type="radio"][name="${this.name}"]`);for(let s of o)if(s!==this)s[wn]=!1}}}class ru extends B{get htmlFor(){let t=this.getAttribute("for");if(t!==null)return t;return t!==null?t:""}set htmlFor(t){this.setAttribute("for",t)}get control(){let t=this.getAttribute("for");if(t!==null){if(!t||!this[tt])return null;let e=this[ve].getElementById(t);if(e)switch(e[z]){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}[ct](t=!1){return super[ct](t)}dispatchEvent(t){let e=super.dispatchEvent(t);if(!t[lr]&&t.type==="click"&&(t.eventPhase===ae.atTarget||t.eventPhase===ae.bubbling)&&t instanceof qe){let o=this.control;if(o&&t.target!==o)o.dispatchEvent(new qe("click",{bubbles:!0,cancelable:!0}))}return e}}class ou extends B{get form(){let t=this;while(t){if(t instanceof sa)return t.form;t=t.parentNode}return null}}class iu extends B{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))}}import dS from"fs";import nA from"path";import lA from"child_process";class Pc{static getScript(t){let e={},o=Object.keys(t.headers).sort();for(let s of o)e[s]=t.headers[s];return`
92
92
  const sendRequest = require('http${t.url.protocol==="https:"?"s":""}').request;
93
93
  const options = ${JSON.stringify({method:t.method,headers:e,agent:!1,rejectUnauthorized:!t.disableStrictSSL,key:t.url.protocol==="https:"?Qa.key:void 0,cert:t.url.protocol==="https:"?Qa.cert:void 0},null,4)};
94
94
  const request = sendRequest(${JSON.stringify(t.url.href)}, options, (incomingMessage) => {
@@ -128,7 +128,7 @@ ${d};`;if(!n.disableErrorCapturing&&n.errorCapture===me.tryAndCatch)d="(async fu
128
128
  `;c+="});"}if(!n.disableErrorCapturing&&n.errorCapture===me.tryAndCatch)c+="} catch(e) { $happy_dom.dispatchError(e); }";c+="})";let Rt;try{Rt=this.window[Uo](c,{filename:o||t})}catch(lt){let dt=this.getError(t,e,o),ee=dt?new this.window.SyntaxError(`Failed to parse module in '${t}'. Execution error: ${lt.message}. Compile error: ${dt}`):lt;if(lt.message=`Failed to parse module in '${o}': ${ee.message}`,n.disableErrorCapturing||n.errorCapture!==me.tryAndCatch)throw ee;else return this.window[le](ee),{imports:a,execute:async()=>{}}}if(!n.module.disableCache&&o)s[Va].set(t,{imports:a,code:c});return{imports:a,execute:Rt}}parseSyntax(t,e){let o=new RegExp(pA),s=this.count,n=this.debug,l=this.debugCount,a=null,y,u;e++;while(a=o.exec(t))if(y=t[a.index-1]||" ",u=y==="\\"&&t[a.index-2]!=="\\",a[1]){if(s.simpleString===0&&s.doubleString===0&&s.singleLineComment===0&&s.regExpSquareBrackets===0&&(this.templateString.length===0||this.templateString[0]>0)){if(s.comment===1){if(y==="*"){if(s.comment=0,n)l.comment.length=0}}else if(s.regExp===0){if(t[a.index+1]==="*"){if(s.comment=1,n)l.comment=[e+a.index]}else if(t[a.index+1]==="/"){if(s.singleLineComment=1,n)l.singleLineComment=[e+a.index]}else if(cA.test(this.getNonSpacePrecedingToken(t,a.index))){if(s.regExp=1,n)l.regExp=[e+a.index]}}else if(!u){if(s.regExp=0,n)l.regExp.length=0}}}else if(a[2]){if(s.simpleString===0&&s.doubleString===0&&s.regExp===0&&s.comment===0&&s.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)){if(a[2]==="("){if(s.parentheses++,n)l.parentheses.push(e+a.index)}else if(a[2]===")"&&s.parentheses>0){if(s.parentheses--,n)l.parentheses.pop()}}}else if(a[3]){if(s.simpleString===0&&s.doubleString===0&&s.regExp===0&&s.comment===0&&s.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)){if(a[3]==="{"){if(this.templateString.length)this.templateString[0]++;if(s.curlyBraces++,n)l.curlyBraces.push(e+a.index)}else if(a[3]==="}"){if(this.templateString.length&&this.templateString[0]>0)this.templateString[0]--;if(s.curlyBraces>0){if(s.curlyBraces--,n)l.curlyBraces.pop()}}}}else if(a[4]){if(s.simpleString===0&&s.doubleString===0&&s.comment===0&&s.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)){if(s.regExp===1){if(!u){if(a[4]==="["&&s.regExpSquareBrackets===0){if(s.regExpSquareBrackets=1,n)l.regExpSquareBrackets=[e+a.index]}else if(a[4]==="]"&&s.regExpSquareBrackets===1){if(s.regExpSquareBrackets=0,n)l.regExpSquareBrackets.length=0}}}else if(a[4]==="["){if(s.squareBrackets++,n)l.squareBrackets.push(e+a.index)}else if(a[4]==="]"&&s.squareBrackets>0){if(s.squareBrackets--,n)l.squareBrackets.pop()}}}else if(a[5]){if(s.simpleString===0&&s.doubleString===0&&s.comment===0&&s.singleLineComment===0&&s.regExp===0&&!u){if(this.templateString[0]===0){if(this.templateString[0]=1,s.curlyBraces++,n)l.curlyBraces.push(e+a.index)}}}else if(a[6]){if(s.simpleString===0&&s.doubleString===0&&s.comment===0&&s.singleLineComment===0&&s.regExp===0&&!u)if(this.templateString?.[0]===0)this.templateString.shift();else this.templateString.unshift(0)}else if(a[7]){if(s.doubleString===0&&s.comment===0&&s.singleLineComment===0&&s.regExp===0&&!u&&(this.templateString.length===0||this.templateString[0]>0)){if(s.simpleString===0){if(s.simpleString=1,n)l.simpleString=[e+a.index]}else if(s.simpleString=0,n)l.simpleString.length=0}}else if(a[8]){if(s.simpleString===0&&s.comment===0&&s.singleLineComment===0&&s.regExp===0&&!u&&(this.templateString.length===0||this.templateString[0]>0)){if(s.doubleString===0){if(s.doubleString=1,n)l.doubleString=[e+a.index]}else if(s.doubleString=0,n)l.doubleString.length=0}}else if(a[9]){if(s.singleLineComment=0,n)l.singleLineComment.length=0}}getError(t,e,o){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;if(!this.debug)this.debug=!0,this.compile(t,e,o);let s=this.debugCount;if(s.comment.length>0){let{line:n,column:l}=this.getLineAndColumn(e,s.comment[0]);return`Missing end of comment on line ${n} and column ${l}`}else if(s.regExp.length>0){let{line:n,column:l}=this.getLineAndColumn(e,s.regExp[0]);return`Missing end of regular expression on line ${n} and column ${l}`}else if(s.regExpSquareBrackets.length>0){let{line:n,column:l}=this.getLineAndColumn(e,s.regExpSquareBrackets[0]);return`Missing end of regular expression square brackets on line ${n} and column ${l}`}else if(s.simpleString.length>0){let{line:n,column:l}=this.getLineAndColumn(e,s.simpleString[0]);return`Missing end of single quote string on line ${n} and column ${l}`}else if(s.doubleString.length>0){let{line:n,column:l}=this.getLineAndColumn(e,s.doubleString[0]);return`Missing end of double quote string on line ${n} and column ${l}`}else if(s.parentheses.length>0){let{line:n,column:l}=this.getLineAndColumn(e,s.parentheses[0]);return`Missing end of parentheses on line ${n} and column ${l}`}else if(s.curlyBraces.length>0){let{line:n,column:l}=this.getLineAndColumn(e,s.curlyBraces[0]);return`Missing end of curly braces on line ${n} and column ${l}`}else if(s.squareBrackets.length>0){let{line:n,column:l}=this.getLineAndColumn(e,s.squareBrackets[0]);return`Missing end of square brackets on line ${n} and column ${l}`}else if(s.escapeTemplateString.length>0){let{line:n,column:l}=this.getLineAndColumn(e,s.escapeTemplateString[0]);return`Missing end of escaped template string on line ${n} and column ${l}`}return null}getLineAndColumn(t,e){let o=t.substring(0,e).split(`
129
129
  `),s=o.length,n=o[o.length-1].length;return{line:s,column:n}}getNonSpacePrecedingToken(t,e){e--;let o=t[e];while(o===" "||o===`
130
130
  `||o==="\t")e--,o=t[e];return o||";"}removeMultilineComments(t){let e=new RegExp(dA),o,s=0,n=0,l="";while(o=e.exec(t)){if(s===0)l+=t.substring(n,o.index);if(o[0]==="/*")s++;else if(o[0]==="*/"&&s>0)s--;n=e.lastIndex}return l+=t.substring(n),l}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 fA={imports:[],execute:async()=>{}};class pn{url;[m];#t;#e;#r=!1;#o=null;#i=null;#s=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.#s){if(t.includes(this.url.href)){if(e)this.#s.push(e);return this.#i}return new Promise((f)=>{this.#s.push(f)})}if(this.#i)return this.#i;let o=this.#m(),s=[],n=this[m];if(!new it(n).getBrowserFrame())return{};let a={};this.#i=a,this.#s=[];for(let f of o.imports)s.push(this.#l.getModule(f.url,{with:{type:f.type}}));let y=new Map,u=null,c=()=>{if(u)u()};if(s.length){let f=await Promise.all(s),E=[...t,this.url.href];for(let R of f)if(R instanceof pn){let H=await R.evaluate(E,c);y.set(R.url.href,H)}else{let H=await R.evaluate();y.set(R.url.href,H)}}let d=this.url.href;o.execute({dispatchError:n[le].bind(n),dynamicImport:this.#l.importModule.bind(this.#l),importMeta:{url:d,resolve:(f)=>new SA(f,d).href},imports:y,exports:a,addCircularImportResolver:(f)=>u=f});let g=this.#s;this.#s=null;for(let f of g)f(a);return a}async preload(){if(this.#r)return;this.#r=!0;let t=this.#m(),e=[],o=this[m];if(!new it(o).getBrowserFrame())return;for(let a of t.imports)e.push(this.#l.getModule(a.url,{with:{type:a.type}}));let n=await Promise.all(e),l=[];for(let a of n)l.push(a.preload());await Promise.all(l)}#m(){if(this.#o)return this.#o;this.#o=fA;let t=new xc(this[m]);return this.#o=t.compile(this.url.href,this.#t,this.#e),this.#o}}class Qo{window;parentURL;constructor(t,e){this.window=t,this.parentURL=e}async getModule(t,e){let o=this.window,s=this.parentURL,n=yl.getURL(o,s,t),l=n.href,a=e?.with?.type||"esm";if(a!=="esm"&&a!=="css"&&a!=="json")throw new o.TypeError(`Failed to import module "${n}" from "${s}": Unknown type "${a}"`);let y=o[ms][a].get(l);if(y){if(y instanceof nu)return await new Promise((H,pt)=>{y.addResolveListener(H,pt)}),o[ms][a].get(l);return y}if(!new it(o).getBrowserFrame())throw new o.TypeError(`Failed to import module "${n}" from "${s}": Window is closed and is no longer attached to a frame`);let c=new nu({window:o,url:n}),d=o[Eo],g=d.startTask();o[ms][a].set(l,c);let f=new ml(o),E;try{E=await f.fetch(n,"module")}catch(H){throw d.endTask(g),c.resolve(H),H}d.endTask(g);let R;switch(a){case"json":R=new mm({window:o,url:n,source:E.content});break;case"css":R=new am({window:o,url:n,source:E.content});break;case"esm":R=new pn({window:o,url:n,source:E.content,sourceURL:E.virtualServerFile||l,factory:new Qo(o,n)});break}return o[ms][a].set(l,R),c.resolve(),R}async importModule(t,e){let o=new it(this.window).getBrowserFrame();if(!o)return{};let s=o[Pt],n=s?.startTask(),a=await(await this.getModule(t,e)).evaluate();return s.endTask(n),a}}class vc{integrityMetadata=null;response=null;error=null;#t=null;onResponseAvailable(){return new Promise((t,e)=>{this.#t={resolve:t,reject:e}})}responseAvailable(t,e){if(this.response=e,this.error=t,!this.#t)return;if(t)this.#t.reject(t);else if(!e)this.#t.reject(Error("Response is null"));else this.#t.resolve(e)}}class au extends B{[Be]=null;[Xs]=!1;[oo]=null;#t=null;get onerror(){return S.getEventListener(this,"onerror")}set onerror(t){this[p].set("onerror",t)}get onload(){return S.getEventListener(this,"onload")}set onload(t){this[p].set("onload",t)}get sheet(){return this[Be]}get relList(){if(!this[oo])this[oo]=new Or(h,this,"rel",["stylesheet","modulepreload","preload"]);return this[oo]}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[x].location.href).href}catch(t){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)}[sr](){super[sr]();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}}[Re](t,e){if(super[Re](t,e),t[rt]==="rel"||t[rt]==="href"){let o=this.getAttribute("rel"),s=this.getAttribute("href");if(o&&s)switch(o){case"stylesheet":this.#o(s);break;case"modulepreload":this.#e(s);break;case"preload":this.#r(s);break}}}async#e(t){let e=this[m],o=new it(e).getBrowserFrame(),s=new it(e).getSettings();if(!o||!s||!this[tt]||s.disableJavaScriptFileLoading||!s.enableJavaScriptEvaluation)return;let n=new Qo(e,e.location);if(s.disableErrorCapturing||s.errorCapture!==me.tryAndCatch)await(await n.getModule(t)).preload();else try{await(await n.getModule(t)).preload()}catch(l){o.page.console.error(l),e[le](l);return}}async#r(t){let e=this[m],o=new it(e).getBrowserFrame(),s=this.as;if(!o||!this[tt]||s!=="script"&&s!=="style"&&s!=="fetch")return;let n=o.page.context.browser.settings;if(s==="script"&&(n.disableJavaScriptFileLoading||!n.enableJavaScriptEvaluation))return;if(s==="style"&&n.disableCSSFileLoading)return;let l=new URL(t,e.location.href).href,a=on.getKey({url:l,destination:s,mode:"cors",credentialsMode:this.crossOrigin==="use-credentials"?"include":"same-origin"});if(e.document[Rr].has(a))return;let y=new vc;e.document[Rr].set(a,y);let u=new Br({browserFrame:o,window:e,url:l,disableSameOriginPolicy:s==="script"||s==="style",disablePreload:!0,init:{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin"}});try{let c=await u.send();if(!c[Nt])await c.buffer();y.responseAvailable(null,c)}catch(c){y.responseAvailable(c,null),e.document[Rr].delete(a),o.page.console.error(`Failed to preload resource "${l}": ${c.message}`)}}async#o(t){let e=this[m],o=new it(e).getBrowserFrame();if(!o||t===null)return;let s=o.page.context.browser.settings;if(this[Xs]||!this[tt])return;let n;try{n=new URL(t,e.location.href).href}catch(d){return}if(this.#t===n)return;if(s&&s.disableCSSFileLoading){if(s.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new N("load"));else{let d=new e.DOMException(`Failed to load external stylesheet "${n}". CSS file loading is disabled.`,w.notSupportedError);o.page.console.error(d),this.dispatchEvent(new N("error"))}return}let l=new ml(e),a=e[Eo];this.#t=n;let y=a.startTask(),u=null,c=null;try{u=await l.fetch(n,"style",{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin"})}catch(d){c=d}if(a.endTask(y),c)o.page.console.error(c),this.dispatchEvent(new N("error"));else{let d=new this[x][m].CSSStyleSheet;d.replaceSync(u.content),this[Be]=d;let g=this[x];if(g){for(let f of g[Xo])f.result=null;g[Xo]=[]}this.dispatchEvent(new N("load"))}}}class mu extends B{[Im]=null;get areas(){if(!this[Im])this[Im]=oe.getElementsByTagName(this,"area");return this[Im]}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}}class pl extends Array{constructor(t){super();if(t!==1&&t!==h)throw TypeError("Illegal constructor")}getCueById(t){for(let e of this)if(e.id===t)return e;return null}}class yu extends B{}class pu extends B{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)}}class uu extends B{get high(){if(!this.hasAttribute("high"))return 1;let t=parseFloat(this.getAttribute("high")||"");if(isNaN(t)||t>1)return 1;return 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")||"");if(isNaN(t)||t<0)return 0;return 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")||"");if(isNaN(t)||t>1)return 1;return 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")||"");if(isNaN(t)||t<0)return 0;return 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 0.5;let t=parseFloat(this.getAttribute("optimum")||"");if(isNaN(t))return 0.5;if(t<0)return 0;return 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")||"");if(isNaN(t)||t<0)return 0;return 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 $r.getAssociatedLabelElements(this)}}class hu extends B{get cite(){if(!this.hasAttribute("cite"))return"";try{return new URL(this.getAttribute("cite"),this[x].location.href).href}catch(t){return this.getAttribute("cite")}}set cite(t){this.setAttribute("cite",t)}get dateTime(){return this.getAttribute("datetime")||""}set dateTime(t){this.setAttribute("datetime",t)}}class cu extends B{get reversed(){return this.getAttribute("reversed")!==null}set reversed(t){if(!t)this.removeAttribute("reversed");else this.setAttribute("reversed","")}get start(){if(!this.hasAttribute("start"))return 1;let t=Number(this.getAttribute("start")||"");if(isNaN(t))return 1;return t}set start(t){if(typeof t!=="number")t=Number(t);if(isNaN(t))t=0;this.setAttribute("start",String(t))}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}}class du extends B{[Ut]=null;[Ce]="";[Ke]=new qr(this);get contentDocument(){return null}get contentWindow(){return null}get data(){if(!this.hasAttribute("data"))return"";try{return new URL(this.getAttribute("data"),this[x].location.href).href}catch(t){return this.getAttribute("data")}}set data(t){this.setAttribute("data",t)}get form(){if(this[Ut])return this[Ut];let t=this.getAttribute("form");if(!t||!this[tt])return null;return this[x].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[Ce]}get validity(){return this[Ke]}get willValidate(){return!1}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!0}reportValidity(){return this.checkValidity()}setCustomValidity(t){this[Ce]=String(t)}}class bu extends B{get label(){return this.getAttribute("label")||""}set label(t){if(!t)this.removeAttribute("label");else this.setAttribute("label",t)}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){if(!t)this.removeAttribute("disabled");else this.setAttribute("disabled","")}}class un extends B{[Ar]=!1;[En]=!1;[Ie]=null;get text(){return this.innerText}set text(t){this.innerText=t}get index(){if(!this[Ie])return 0;return yt.querySelectorAll(this[Ie],"option")[Q].indexOf(this)}get form(){return this[Ie]?.form||null}get selected(){return this[Ar]}set selected(t){let e=this[Ie];if(this[En]=!0,this[Ar]=Boolean(t),e)e[Cn](this[Ar]?this:null)}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){if(!t)this.removeAttribute("disabled");else this.setAttribute("disabled","")}get value(){return this.getAttribute("value")??this.textContent}set value(t){this.setAttribute("value",t)}[Re](t,e){if(super[Re](t,e),!this[En]&&t[rt]==="selected"&&e?.[q]!==t[q]){let o=this[Ie];if(this[Ar]=!0,o)o[Cn](this)}}[br](t){if(super[br](t),t&&!this[En]&&t[rt]==="selected"){let e=this[Ie];if(this[Ar]=!1,e)e[Cn]()}}[Zr](){if(super[Zr](),this[Ie])this[Ie][Cn]()}[Bi](){if(this[Ie])this[Ie][Cn]();super[Bi]()}}class gu extends B{[Ut]=null;[Ce]="";[Ke]=new qr(this);[mo]="";get defaultValue(){return this[mo]}set defaultValue(t){this[mo]=t}get form(){if(this[Ut])return this[Ut];let t=this.getAttribute("form");if(!t||!this[tt])return null;return this[x].getElementById(t)}get htmlFor(){return this.getAttribute("for")||""}set htmlFor(t){this.setAttribute("for",t)}get labels(){return $r.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[Ce]}get validity(){return this[Ke]}get willValidate(){return!1}checkValidity(){return!0}reportValidity(){return this.checkValidity()}setCustomValidity(t){this[Ce]=String(t)}}class Su extends B{}class fu extends B{}class Pu extends B{}class Au extends B{}class wu extends B{get max(){if(!this.hasAttribute("max"))return 1;let t=parseFloat(this.getAttribute("max")||"");if(isNaN(t)||t<0)return 1;return 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")||"");if(isNaN(t)||t<0)return 0;return 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(){if(!this.hasAttribute("value"))return-1;return this.value/this.max}get labels(){return $r.getAssociatedLabelElements(this)}}class Eu extends B{get cite(){if(!this.hasAttribute("cite"))return"";try{return new URL(this.getAttribute("cite"),this[x].location.href).href}catch(t){return this.getAttribute("cite")}}set cite(t){this.setAttribute("cite",t)}}var PA=/import\s*\(([^)]+)\)/gm,AA=/(\/)|(\(|\))|({|})|(\[|\])|(\${)|(`)|(')|(")|(\n)/gm,wA=/['"`(){}\s;=><\[\]+-,:&]/,EA=/['"`({};=><\[+-,:&]/;class xu{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 o=new it(this.window).getSettings();if(!o)return{execute:()=>{}};let s=new RegExp(PA),n=this.count,l="(function anonymous($happy_dom) {",a=null,y,u,c=0,d=-1;if(!o.disableErrorCapturing&&o.errorCapture===me.tryAndCatch)l+="try {";while(a=s.exec(e)){if(y=e[a.index-1]||" ",u=e.substring(c,a.index),this.parseSyntax(u,c),d===-1)l+=u;if(a[1]&&n.simpleString===0&&n.doubleString===0&&n.comment===0&&n.singleLineComment===0&&n.regExp===0&&(this.templateString.length===0||this.templateString[0]>0)&&wA.test(y))l+=`$happy_dom.dynamicImport(${a[1]})`;else l+=a[0],this.parseSyntax(a[0],a.index);c=s.lastIndex}if(c===0)l+=e;else l+=e.substring(c);if(!o.disableErrorCapturing&&o.errorCapture===me.tryAndCatch)l+="} catch (error) { $happy_dom.dispatchError(error); }";l+="})";try{return{execute:this.window[Uo](l,{filename:t})}}catch(g){if(g.message=`Failed to parse JavaScript in '${t}': ${g.message}`,o.disableErrorCapturing||o.errorCapture!==me.tryAndCatch)throw g;else return this.window[le](g),{execute:()=>{}}}}parseSyntax(t,e){let o=new RegExp(AA),s=this.count,n=null,l,a;e++;while(n=o.exec(t))if(l=t[n.index-1]||" ",a=l==="\\"&&t[n.index-2]!=="\\",n[1]){if(s.simpleString===0&&s.doubleString===0&&s.singleLineComment===0&&s.regExpSquareBrackets===0&&(this.templateString.length===0||this.templateString[0]>0)){if(s.comment===1){if(l==="*")s.comment=0}else if(s.regExp===0){if(t[n.index+1]==="*")s.comment=1;else if(t[n.index+1]==="/")s.singleLineComment=1;else if(EA.test(this.getNonSpacePrecedingToken(t,n.index)))s.regExp=1}else if(!a)s.regExp=0}}else if(n[2]){if(s.simpleString===0&&s.doubleString===0&&s.regExp===0&&s.comment===0&&s.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)){if(n[2]==="(")s.parentheses++;else if(n[2]===")"&&s.parentheses>0)s.parentheses--}}else if(n[3]){if(s.simpleString===0&&s.doubleString===0&&s.regExp===0&&s.comment===0&&s.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)){if(n[3]==="{"){if(this.templateString.length)this.templateString[0]++;s.curlyBraces++}else if(n[3]==="}"){if(this.templateString.length&&this.templateString[0]>0)this.templateString[0]--;if(s.curlyBraces>0)s.curlyBraces--}}}else if(n[4]){if(s.simpleString===0&&s.doubleString===0&&s.comment===0&&s.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)){if(s.regExp===1){if(!a){if(n[4]==="["&&s.regExpSquareBrackets===0)s.regExpSquareBrackets=1;else if(n[4]==="]"&&s.regExpSquareBrackets===1)s.regExpSquareBrackets=0}}else if(n[4]==="[")s.squareBrackets++;else if(n[4]==="]"&&s.squareBrackets>0)s.squareBrackets--}}else if(n[5]){if(s.simpleString===0&&s.doubleString===0&&s.comment===0&&s.singleLineComment===0&&s.regExp===0&&!a){if(this.templateString[0]===0)this.templateString[0]=1,s.curlyBraces++}}else if(n[6]){if(s.simpleString===0&&s.doubleString===0&&s.comment===0&&s.singleLineComment===0&&s.regExp===0&&!a)if(this.templateString?.[0]===0)this.templateString.shift();else this.templateString.unshift(0)}else if(n[7]){if(s.doubleString===0&&s.comment===0&&s.singleLineComment===0&&s.regExp===0&&!a&&(this.templateString.length===0||this.templateString[0]>0))if(s.simpleString===0)s.simpleString=1;else s.simpleString=0}else if(n[8]){if(s.simpleString===0&&s.comment===0&&s.singleLineComment===0&&s.regExp===0&&!a&&(this.templateString.length===0||this.templateString[0]>0))if(s.doubleString===0)s.doubleString=1;else s.doubleString=0}else if(n[9])s.singleLineComment=0}getNonSpacePrecedingToken(t,e){e--;let o=t[e];while(o===" "||o===`
131
- `||o==="\t")e--,o=t[e];return o||";"}}class vu extends B{[Xs]=!1;[ep]=null;#t=null;get onerror(){return S.getEventListener(this,"onerror")}set onerror(t){this[p].set("onerror",t)}get onload(){return S.getEventListener(this,"onload")}set onload(t){this[p].set("onload",t)}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}get blocking(){if(!this[ep])this[ep]=new Or(h,this,"blocking");return this[ep]}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){if(t)this.setAttribute("nomodule","");else 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[x].location.href).href}catch(t){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){if(!t)this.removeAttribute("async");else this.setAttribute("async","")}get defer(){return this.getAttribute("defer")!==null}set defer(t){if(!t)this.removeAttribute("defer");else this.setAttribute("defer","")}get text(){return this.textContent}set text(t){this.textContent=t}[ct](t=!1){return super[ct](t)}[sr](){let t=new it(this[m]).getSettings();if(super[sr](),this[Xs])return;let e=this.getAttribute("src");if(e!==null)if(this.getAttribute("type")==="module")this.#i(e);else this.#s(e);else if(t&&t.enableJavaScriptEvaluation){let o=this.textContent,s=this.getAttribute("type");if(o){if(s==="module")this.#e(o);else if(s==="importmap")this.#r(o);else if(s===null||s==="application/x-ecmascript"||s==="application/x-javascript"||s.startsWith("text/javascript"))this.#o(o)}}}[Re](t,e){if(super[Re](t,e),t[rt]==="src"&&t[q]!==null&&this[tt])if(this.getAttribute("type")==="module")this.#i(t[q]);else this.#s(t[q])}#e(t){let e=this[x].location,o=this[m],s=new it(o).getSettings();if(!new it(o).getBrowserFrame()||!s||!s.enableJavaScriptEvaluation)return;this[x][Oo]=this;let l=new Qo(o,e),a=new pn({window:o,url:e,source:t,factory:l});if(s.disableErrorCapturing||s.errorCapture!==me.tryAndCatch)a.evaluate();else a.evaluate().catch((y)=>{o[le](y)});this[x][Oo]=null,this.dispatchEvent(new N("load"))}async#r(t){let e=this[m],o=new it(e).getSettings();if(!new it(e).getBrowserFrame()||!o||e[Bl]||!o.enableJavaScriptEvaluation)return;let n;if(o.disableErrorCapturing||o.errorCapture!==me.tryAndCatch)n=JSON.parse(t);else try{n=JSON.parse(t)}catch(l){e[le](l);return}if(n.imports||n.scopes){let l={imports:[],scopes:[]};if(n.imports)for(let a of Object.keys(n.imports))l.imports.push({from:a,to:n.imports[a]});if(n.scopes)for(let a of Object.keys(n.scopes)){let y={scope:a,rules:[]};for(let u of Object.keys(n.scopes[a])){let c=n.scopes[a][u];y.rules.push({from:u,to:c})}l.scopes.push(y)}e[Bl]=l}}#o(t){let e=this[m];if(!new it(e).getSettings())return;this[x][Oo]=this;let n=new xu(e).compile(e.location.href,t),l=new Qo(e,e.location);n.execute({dynamicImport:l.importModule.bind(l),dispatchError:e[le].bind(e)}),this[x][Oo]=null}async#i(t){let e=this[m],o=new it(e).getBrowserFrame(),s=new it(e).getSettings();if(!o||!s)return;if(!t||!this[tt]||this.getAttribute("type")!=="module")return;if(s&&(s.disableJavaScriptFileLoading||!s.enableJavaScriptEvaluation)){if(s.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new N("load"));else{let l=new e.DOMException(`Failed to load module "${t}". JavaScript file loading is disabled.`,w.notSupportedError);o.page.console.error(l),this.dispatchEvent(new N("error"))}return}let n=new Qo(e,e.location);if(s.disableErrorCapturing||s.errorCapture!==me.tryAndCatch)await(await n.getModule(t)).evaluate();else try{await(await n.getModule(t)).evaluate()}catch(l){o.page.console.error(l),this.dispatchEvent(new N("error"));return}this.dispatchEvent(new N("load"))}async#s(t){let e=this[m],o=new it(e).getBrowserFrame();if(!o)return;let s=o.page.context.browser.settings,n=this.getAttribute("type");if(!t||!this[tt]||n!==null&&n!=="application/x-ecmascript"&&n!=="application/x-javascript"&&!n.startsWith("text/javascript"))return;let l;try{l=new URL(t,e.location.href)}catch(E){return}let a=l.toString();if(this.#t===a)return;if(s&&(s.disableJavaScriptFileLoading||!s.enableJavaScriptEvaluation)){if(s.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new N("load"));else{let E=new e.DOMException(`Failed to load script "${l}". JavaScript file loading is disabled.`,w.notSupportedError);o.page.console.error(E),this.dispatchEvent(new N("error"))}return}this.#t=a;let y=new ml(e),u=this.getAttribute("async")!==null||this.getAttribute("defer")!==null,c=null;if(u){let E=e[Eo],R=E.startTask();try{c=await y.fetch(a,"script",{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin",referrerPolicy:this.referrerPolicy})}catch(H){o.page.console.error(H),this.dispatchEvent(new N("error")),E.endTask(R);return}E.endTask(R)}else try{c=y.fetchSync(a,"script",{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin",referrerPolicy:this.referrerPolicy})}catch(E){o.page.console.error(E),this.dispatchEvent(new N("error"));return}this[x][Oo]=this;let g=new xu(e).compile(c.virtualServerFile||a,c.content),f=new Qo(e,e.location);g.execute({dynamicImport:f.importModule.bind(f),dispatchError:e[le].bind(e)}),this[x][Oo]=null,this.dispatchEvent(new N("load"))}static supports(t){switch(t){case"classic":case"module":case"importmap":return!0;case"speculationrules":default:return!1}}}class ym extends de{constructor(t,e){super(t,()=>yt.querySelectorAll(e,"option")[Q]);this[xt]=e}get selectedIndex(){return this[xt].selectedIndex}set selectedIndex(t){this[xt].selectedIndex=t}add(t,e){this[xt].add(t,e)}remove(t){this[xt].remove(t)}}class pm extends B{[Ce]="";[Ke]=new qr(this);[Ui]=null;[Rn]=null;[Ho]=-1;[Vt];constructor(){super();let t=new fe(this,[pm,B,Gr,st,vt]),e=new Proxy(this,{get:(o,s)=>{if(s in o||typeof s==="symbol")return t.bind(s),o[s];let n=Number(s);if(!isNaN(n))return yt.querySelectorAll(o,"option")[Q][n]},set(o,s,n){if(t.bind(s),typeof s==="symbol")return o[s]=n,!0;let l=Number(s);if(isNaN(l))return o[s]=n,!0;if(!n||!(n instanceof un))throw new o[m].Error(`TypeError: Failed to set an indexed property [${l}] on 'HTMLSelectElement': parameter 2 is not of type 'HTMLOptionElement'.`);let a=yt.querySelectorAll(o,"option")[Q],y=o[_];while(y.length)o[hr](y[0]);for(let u=0;u<=l;u++)if(u===l)o[Et](n);else if(a[u])o[Et](a[u]);else o[Et](o[x].createElement("option"));return!0},deleteProperty(o,s){if(typeof s==="symbol")return delete o[s],!0;let n=Number(s);if(isNaN(n))delete o[s];return!0},ownKeys(o){return Object.keys(yt.querySelectorAll(o,"option")[Q])},has(o,s){if(s in o)return!0;if(typeof s==="symbol")return!1;let n=Number(s);if(!isNaN(n))return!!yt.querySelectorAll(o,"option")[Q][n];return!1},defineProperty(o,s,n){t.preventBinding(s);let l=Number(s);if(isNaN(l))return Object.defineProperty(o,s,n),!0;if(!n.value||!(n.value instanceof un))throw new o[m].Error(`TypeError: Failed to set an indexed property [${l}] on 'HTMLSelectElement': parameter 2 is not of type 'HTMLOptionElement'.`);let a=yt.querySelectorAll(o,"option")[Q],y=o[_];while(y.length)o[hr](y[0]);for(let u=0;u<=l;u++)if(u===l)o[Et](n.value);else if(a[u])o[Et](a[u]);else o[Et](o[x].createElement("option"));return!0},getOwnPropertyDescriptor(o,s){if(s in o)return Object.getOwnPropertyDescriptor(o,s);let n=Number(s);if(isNaN(n))return;let l=yt.querySelectorAll(o,"option")[Q];if(!l[n])return;return{value:l[n],writable:!0,enumerable:!0,configurable:!0}}});return this[Vt]=e,this[Ie]=e,e}get onchange(){return S.getEventListener(this,"onchange")}set onchange(t){this[p].set("onchange",t)}get oninput(){return S.getEventListener(this,"oninput")}set oninput(t){this[p].set("oninput",t)}get length(){return yt.querySelectorAll(this,"option")[Q].length}get options(){if(!this[Ui])this[Ui]=new ym(h,this);return this[Ui]}get validationMessage(){return this[Ce]}get validity(){return this[Ke]}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){if(!t)this.removeAttribute("disabled");else this.setAttribute("disabled","")}get multiple(){return this.getAttribute("multiple")!==null}set multiple(t){if(!t)this.removeAttribute("multiple");else this.setAttribute("multiple","")}get autofocus(){return this.getAttribute("autofocus")!==null}set autofocus(t){if(!t)this.removeAttribute("autofocus");else this.setAttribute("autofocus","")}get required(){return this.getAttribute("required")!==null}set required(t){if(!t)this.removeAttribute("required");else this.setAttribute("required","")}get type(){return this.hasAttributeNS(null,"multiple")?"select-multiple":"select-one"}get value(){let t=yt.querySelectorAll(this,"option")[Q];for(let e=0,o=t.length;e<o;e++){let s=t[e];if(s[Ar])return s.value}return""}set value(t){let e=yt.querySelectorAll(this,"option")[Q];this[Ho]=-1;for(let o=0,s=e.length;o<s;o++){let n=e[o];if(n.value===t)n[Ar]=!0,n[En]=!0,this[Ho]=o;else n[Ar]=!1}}get selectedIndex(){return this[Ho]}set selectedIndex(t){if(t=Number(t),isNaN(t))return;let e=yt.querySelectorAll(this,"option")[Q];if(this[Ho]=-1,typeof t==="number"&&!isNaN(t)){for(let s=0,n=e.length;s<n;s++)e[s][Ar]=!1;let o=e[t];if(o)o[Ar]=!0,o[En]=!0,this[Ho]=t}}get selectedOptions(){if(!this[Rn])this[Rn]=new de(h,()=>{let t=yt.querySelectorAll(this,"option")[Q];if(t[Rn])return t[Rn];let e=[];for(let o=0,s=t.length;o<s;o++){let n=t[o];if(n[Ar])e.push(n)}return t[Rn]=e,e});return this[Rn]}get labels(){return $r.getAssociatedLabelElements(this)}get form(){if(this[Ut])return this[Ut];let t=this.getAttribute("form");if(!t||!this[tt])return null;return this[x].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 o=yt.querySelectorAll(this,"option")[Q];if(!e&&e!==0){let a=this[_];while(a.length)this[hr](a[0]);for(let y of o)this[Et](y);this[Et](t);return}let s=this[m];if(typeof e!=="number"){if(!(e instanceof un))throw new s.DOMException("Failed to execute 'add' on 'HTMLFormElement': The node before which the new node is to be inserted before is not an 'HTMLOptionElement'.");e=o.indexOf(e)}if(!o[e])throw new s.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 l=this[_];while(l.length)this[hr](l[0]);for(let a=0,y=o.length;a<y;a++){if(a===e)this[Et](t);this[Et](o[a])}}remove(t){if(typeof t==="number"){let e=yt.querySelectorAll(this,"option")[Q];if(!e[t])return;let o=this[_];while(o.length)this[hr](o[0]);for(let s=0,n=e.length;s<n;s++)if(s!==t)this[Et](e[s])}else super.remove()}setCustomValidity(t){this[Ce]=String(t)}checkValidity(){let t=this.disabled||this[Ke].valid;if(!t)this.dispatchEvent(new N("invalid",{bubbles:!0,cancelable:!0}));return t}reportValidity(){return this.checkValidity()}[Cn](t){let e=this.hasAttribute("multiple"),o=yt.querySelectorAll(this,"option")[Q],s=[];if(t)this[Ho]=-1;if(!e)for(let l=0,a=o.length;l<a;l++){let y=o[l];if(t){if(y[Ar]=y===t,y===t)this[Ho]=l}if(y[Ar])s.push(y)}if(this.#t()===1&&!s.length){this[Ho]=-1;for(let l=0,a=o.length;l<a;l++){let y=o[l],u=y[W],c=y.hasAttributeNS(null,"disabled");if(u&&u[D]===T.elementNode&&u[z]==="OPTGROUP"&&u.hasAttributeNS(null,"disabled"))c=!0;if(!c){y[Ar]=!0,this[Ho]=l;break}}}else if(s.length>=2){this[Ho]=-1;for(let l=0,a=o.length;l<a;l++)if(o[l][Ar]=l===s.length-1,l===s.length-1)this[Ho]=l}}#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}}var sg;class ng extends B{[Wi]=[];get onslotchange(){return S.getEventListener(this,"onslotchange")}set onslotchange(t){this[p].set("onslotchange",t)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}assign(...t){let e=this.getRootNode();if(e?.[Ei]!=="manual")return;let o=e.host;if(!o)return;for(let s of t)if(s instanceof st){if(o[_].includes(s)&&s[D]!==T.commentNode){if(s[Zo]){let n=s[Zo][Wi].indexOf(s);if(n!==-1)s[Zo][Wi].splice(n,1)}s[Zo]=this,this[Wi].push(s)}}}assignedNodes(t){return this.#t(this.name,t)}assignedElements(t){return this.#e(this.name,t)}[ct](t=!1){return super[ct](t)}[Re](t,e){if(super[Re](t,e),t[rt]==="name"&&t[q]!==e?.[q]){let o=this.#t(e?.[q]),s=this.#t(t.value);if(o.length!==s.length)this.dispatchEvent(new N("slotchange",{bubbles:!0}));else for(let n=0,l=s.length;n<l;n++)if(o[n]!==s[n]){this.dispatchEvent(new N("slotchange",{bubbles:!0}));break}}}[br](t){if(super[br](t),t[rt]==="name"&&t[q]&&this.#t(t.value).length>0)this.dispatchEvent(new N("slotchange",{bubbles:!0}))}#t(t,e){let o=this.getRootNode();if(!o?.host)return[];if(o[Ei]==="manual")return this[Wi];let s=o.host,n=!!e?.flatten,l=[];for(let a of s[_]){let y=a.slot;if(t&&y&&y===t||!t&&!y)if(n&&a instanceof sg)for(let u of a.assignedNodes(e))l.push(u);else l.push(a)}return l}#e(t,e){let o=this.getRootNode();if(!o?.host)return[];if(o[Ei]==="manual"){let a=[];for(let y of this[Wi])if(y instanceof Gr)a.push(y);return a}let s=o.host,n=!!e?.flatten,l=[];for(let a of s[bt]){let y=a.slot;if(t&&y===t||!t&&!y)if(n&&a instanceof sg)for(let u of a.assignedElements(e))l.push(u);else l.push(a)}return l}}sg=ng;var lg=ng;class Tu extends B{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[x].location.href).href}catch(t){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)}}class Cu extends B{}class Nu extends B{[Be]=null;[dr]=this;[_n]=!1;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[_n]}set disabled(t){this[_n]=Boolean(t)}get sheet(){if(!this[tt])return null;if(!this[Be])this[Be]=new this[x][m].CSSStyleSheet,this[Be].replaceSync(this.textContent);return this[Be]}[nr](){super[nr](),this[Be]=null}[At](){super[At](),this[Be]=null}[Vn](){if(this[Be])this[Be].replaceSync(this.textContent)}}class aa extends B{}class Lu extends B{get abbr(){return this.getAttribute("abbr")||""}set abbr(t){this.setAttribute("abbr",t)}get cellIndex(){let t=this.parentNode;while(t){if(t[z]==="TR")return yt.querySelectorAll(t,"td,th")[Q].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)}}class ku extends B{}class Es extends B{insertRow(t=-1){if(typeof t!=="number")t=-1;let e=yt.querySelectorAll(this,"tr")[Q];if(t<-1)throw new this[m].DOMException(`Failed to execute 'insertRow' on 'HTMLTableSectionElement': The index provided (${t}) is less than -1.`,w.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}).`,w.indexSizeError);let o=this[x].createElement("tr");if(t===-1||t===e.length)this.appendChild(o);else this.insertBefore(o,e[t]);return o}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;if(t<-1)throw new this[m].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableSectionElement': The index provided (${t}) is less than -1.`,w.indexSizeError);let e=yt.querySelectorAll(this,"tr")[Q];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}).`,w.indexSizeError);if(t===-1)t=e.length-1;e[t].remove()}}class Mu extends B{[Fm]=null;[Vm]=null;get caption(){return yt.querySelector(this,"caption")}set caption(t){if(t){if(!(t instanceof aa))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 yt.querySelector(this,"thead")}set tHead(t){if(t){if(!(t instanceof Es))throw new this[m].TypeError("Failed to set the 'tHead' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableSectionElement'.");this.tHead?.remove();let e=!1;for(let o of this[bt])if(o[z]!=="CAPTION"&&o[z]!=="COLGROUP"){this.insertBefore(t,o),e=!0;break}if(!e)this.appendChild(t)}else this.tHead?.remove()}get tFoot(){return yt.querySelector(this,"tfoot")}set tFoot(t){if(t){if(!(t instanceof Es))throw new this[m].TypeError("Failed to set the 'tFoot' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableSectionElement'.");this.tFoot?.remove();let e=!1;for(let o of this[bt])if(o[z]!=="CAPTION"&&o[z]!=="COLGROUP"&&o[z]!=="THEAD"){this.insertBefore(t,o),e=!0;break}if(!e)this.appendChild(t)}else this.tFoot?.remove()}get rows(){if(!this[Fm])this[Fm]=new de(h,()=>yt.querySelectorAll(this,"tr")[Q]);return this[Fm]}get tBodies(){if(!this[Vm])this[Vm]=new de(h,()=>yt.querySelectorAll(this,"tbody")[Q]);return this[Vm]}createTHead(){let t=this.tHead;if(t)return t;let e=this[x].createElement("thead");return this.tHead=e,e}deleteTHead(){this.tHead=null}createTFoot(){let t=this.tFoot;if(t)return t;let e=this[x].createElement("tfoot");return this.tFoot=e,e}deleteTFoot(){this.tFoot=null}createTBody(){let t=yt.querySelectorAll(this,"tbody")[Q],e=this[x].createElement("tbody");if(t.length>0){let o=t[t.length-1];return o.parentNode?.insertBefore(e,o.nextSibling),e}return this.appendChild(e),e}createCaption(){let t=this.caption;if(t)return t;let e=this[x].createElement("caption");return this.caption=e,e}deleteCaption(){this.caption=null}insertRow(t=-1){if(typeof t!=="number")t=-1;let e=yt.querySelectorAll(this,"tr")[Q];if(t<-1)throw new this[m].DOMException(`Failed to execute 'insertRow' on 'HTMLTableElement': The index provided (${t}) is less than -1.`,w.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}).`,w.indexSizeError);let o=this[x].createElement("tr");if(t===-1||t===e.length){let s=yt.querySelector(this,"tbody");if(s)s.appendChild(o);else{let n=this[x].createElement("tbody");n.appendChild(o),this.appendChild(n)}return o}return e[t].parentNode?.insertBefore(o,e[t]),o}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;if(t<-1)throw new this[m].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableElement': The index provided (${t}) is less than -1.`,w.indexSizeError);let e=yt.querySelectorAll(this,"tr")[Q];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}).`,w.indexSizeError);if(t===-1)t=e.length-1;e[t].remove()}}class Iu extends B{[Rm]=null;get cells(){if(!this[Rm])this[Rm]=new de(h,()=>yt.querySelectorAll(this,"td,th")[Q]);return this[Rm]}get rowIndex(){let t=this.parentNode;while(t){if(t[z]==="TABLE")return yt.querySelectorAll(t,"tr")[Q].indexOf(this);t=t.parentNode}return-1}get sectionRowIndex(){let t=this.parentNode;while(t){if(t instanceof Es)return yt.querySelectorAll(t,"tr")[Q].indexOf(this);t=t.parentNode}return-1}insertCell(t=-1){if(typeof t!=="number")t=-1;let e=yt.querySelectorAll(this,"td,th")[Q];if(t<-1)throw new this[m].DOMException(`Failed to execute 'insertCell' on 'HTMLTableRowElement': The index provided (${t}) is less than -1.`,w.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}).`,w.indexSizeError);let o=this[x].createElement("td");if(t===-1||t===e.length)return this.appendChild(o),o;return e[t].parentNode?.insertBefore(o,e[t]),o}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;if(t<-1)throw new this[m].DOMException(`Failed to execute 'deleteCell' on 'HTMLTableRowElement': The index provided (${t}) is less than -1.`,w.indexSizeError);let e=yt.querySelectorAll(this,"td,th")[Q];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}).`,w.indexSizeError);if(t===-1)t=e.length-1;e[t].remove()}}class Ru extends B{[so]=this[x].createDocumentFragment();get content(){return this[so]}get innerHTML(){return this.getHTML()}set innerHTML(t){let e=this[so],o=e[_];while(o.length)e.removeChild(o[0]);new Cr(this[m],{isTemplateDocumentFragment:!0}).parse(t,this[so])}get firstChild(){return this[so].firstChild}get lastChild(){return this[so].lastChild}getInnerHTML(t){let e=new ai,o=this[so],s="";for(let n of o[_])s+=e.serializeToString(n);return s}getHTML(t){let e=new ai,o=this[so],s="";for(let n of o[_])s+=e.serializeToString(n);return s}[Et](t,e=!1){return this[so][Et](t,e)}[hr](t){return this[so][hr](t)}[kr](t,e,o=!1){return this[so][kr](t,e,o)}[La](t,e){return this[so][La](t,e)}[ct](t=!1){let e=super[ct](t);return e[so]=this[so].cloneNode(t),e}}class Fu extends B{type="textarea";[Ce]="";[Ke]=new qr(this);[q]=null;[Je]=this;[Ut]=null;#t=null;#e=null;#r=fo.none;get oninput(){return S.getEventListener(this,"oninput")}set oninput(t){this[p].set("oninput",t)}get onselectionchange(){return S.getEventListener(this,"onselectionchange")}set onselectionchange(t){this[p].set("onselectionchange",t)}get validationMessage(){return this[Ce]}get validity(){return this[Ke]}get defaultValue(){return this.textContent}set defaultValue(t){this.textContent=t}get minLength(){let t=this.getAttribute("minlength");if(t!==null)return parseInt(t);return-1}set minLength(t){this.setAttribute("minlength",String(t))}get maxLength(){let t=this.getAttribute("maxlength");if(t!==null)return parseInt(t);return-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){if(!t)this.removeAttribute("readonly");else this.setAttribute("readonly","")}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){if(!t)this.removeAttribute("disabled");else this.setAttribute("disabled","")}get autofocus(){return this.getAttribute("autofocus")!==null}set autofocus(t){if(!t)this.removeAttribute("autofocus");else this.setAttribute("autofocus","")}get required(){return this.getAttribute("required")!==null}set required(t){if(!t)this.removeAttribute("required");else this.setAttribute("required","")}get value(){if(this[q]===null)return this.textContent;return this[q]}set value(t){let e=this[q];if(this[q]=t,e!==this[q])this.#t=this[q].length,this.#e=this[q].length,this.#r=fo.none}get selectionStart(){if(this.#t===null)return this.value.length;return this.#t}set selectionStart(t){this.setSelectionRange(t,Math.max(t,this.selectionEnd),this.#r)}get selectionEnd(){if(this.#e===null)return this.value.length;return 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[Ut])return this[Ut];let t=this.getAttribute("form");if(!t||!this[tt])return null;return this[x].getElementById(t)}get textLength(){return this.value.length}get labels(){return $r.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=fo.none,this.dispatchEvent(new N("select",{bubbles:!0,cancelable:!1}))}setSelectionRange(t,e,o="none"){this.#e=Math.min(e,this.value.length),this.#t=Math.min(t,this.selectionEnd),this.#r=o===fo.forward||o===fo.backward?o:fo.none,this.dispatchEvent(new N("select",{bubbles:!0,cancelable:!1}))}setRangeText(t,e=null,o=null,s=ws.preserve){if(e===null)e=this.#t!==null?this.#t:0;if(o===null)o=this.#e!==null?this.#e:this.value.length;if(e>o)throw new this[m].DOMException("The index is not in the allowed range.",w.invalidStateError);e=Math.min(e,this.value.length),o=Math.min(o,this.value.length);let n=this.value,l=this.#t!==null?this.#t:0,a=this.#e!==null?this.#e:this.value.length;this.value=n.slice(0,e)+t+n.slice(o);let y=e+this.value.length;switch(s){case ws.select:this.setSelectionRange(e,y);break;case ws.start:this.setSelectionRange(e,e);break;case ws.end:this.setSelectionRange(y,y);break;default:let u=t.length-(o-e);if(l>o)l+=u;else if(l>e)l=e;if(a>o)a+=u;else if(a>e)a=y;this.setSelectionRange(l,a);break}}setCustomValidity(t){this[Ce]=String(t)}checkValidity(){let t=this.disabled||this.readOnly||this[Ke].valid;if(!t)this.dispatchEvent(new N("invalid",{bubbles:!0,cancelable:!0}));return t}reportValidity(){return this.checkValidity()}[ct](t=!1){let e=super[ct](t);return e[q]=this[q],e.#t=this.#t,e.#e=this.#e,e.#r=this.#r,e}[Ea](){if(this[q]===null)this.#t=null,this.#e=null,this.#r=fo.none}}class Vu extends B{get dateTime(){return this.getAttribute("dateTime")||""}set dateTime(t){this.setAttribute("dateTime",t)}}class Du extends B{get text(){let t="";for(let e of this[_])if(e[D]===T.textNode)t+=e.textContent;return t}set text(t){this.textContent=t}get innerHTML(){return this.getHTML()}set innerHTML(t){this.textContent=t}}class Bu extends B{get oncuechange(){return S.getEventListener(this,"oncuechange")}set oncuechange(t){this[p].set("oncuechange",t)}get kind(){let t=this.getAttribute("kind");if(t===null)return Ps.subtitles;if(!Ps[t])return Ps.metadata;return t}set kind(t){if(!Ps[t])t=Ps.metadata;this.setAttribute("kind",t)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[x].location.href).href}catch(t){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){if(t)this.setAttribute("default","");else this.removeAttribute("default")}get readyState(){return 0}get track(){let t=new this[m].TextTrack(h);return t[xo]=this.kind,t[Us]=this.label,t[Il]=this.srclang,t[Ee]=this.default?"showing":"disabled",t[Bm]=this.id,t}}class Ou extends B{}class Gu extends B{}class Uu extends an{}class Hu extends Ss{[D]=T.processingInstructionNode;[wr]="";get target(){return this[wr]}}class ma extends st{[ir]=null;[ve]=this;[D]=T.documentFragmentNode;get children(){if(!this[ir]){let t=this[bt];this[ir]=new de(h,()=>t)}return this[ir]}get childElementCount(){return this[bt].length}get firstElementChild(){return this[bt][0]??null}get lastElementChild(){let t=this[bt];return t[t.length-1]??null}get textContent(){let t="";for(let e of this[_])if(e[D]===T.elementNode||e[D]===T.textNode)t+=e.textContent;return t}set textContent(t){let e=this[_];while(e.length)this.removeChild(e[0]);if(t)this.appendChild(this[x].createTextNode(t))}append(...t){oe.append(this,...t)}prepend(...t){oe.prepend(this,...t)}replaceChildren(...t){oe.replaceChildren(this,...t)}querySelectorAll(t){return yt.querySelectorAll(this,t)}querySelector(t){return yt.querySelector(this,t)}getElementById(t){return oe.getElementById(this,t)}}class Wu extends ma{[Vs]=[];[Ee]="open";[Mn]=null;[On]=!1;[kl]=!1;[Hi]=!1;[Ei]="named";[p]=new Map;get onslotchange(){return this[p].get("onslotchange")??null}set onslotchange(t){this[p].set("onslotchange",t)}get mode(){return this[Ee]}get host(){return this[Mn]}get clonable(){return this[On]}get delegatesFocus(){return this[kl]}get serializable(){return this[Hi]}get slotAssignment(){return this[Ei]}get fullscreenElement(){return null}get pictureInPictureElement(){return null}get pointerLockElement(){return null}get innerHTML(){let t=new ai,e="";for(let o of this[_])e+=t.serializeToString(o);return e}set innerHTML(t){let e=this[_];while(e.length)this.removeChild(e[0]);new Cr(this[m]).parse(t,this)}get adoptedStyleSheets(){return this[Vs]}set adoptedStyleSheets(t){this[Vs]=t}get activeElement(){let t=this[x][Me],e=t?.getRootNode();if(!e||e===this[x])return null;if(e===this)return t;while(e&&e!==this)t=e.host,e=t.getRootNode();return t}getAnimations(){return[]}setHTMLUnsafe(t){let e=this[_];while(e.length)this.removeChild(e[0]);new Cr(this[m]).parse(t,this)}toString(){return this.innerHTML}[ct](t=!1){let e=super[ct](t);return e[Ee]=this[Ee],e[On]=this[On],e[kl]=this[kl],e[Hi]=this[Hi],e[Ei]=this[Ei],e}}class et extends Gr{[ge]=null;#t=null;get onabort(){return S.getEventListener(this,"onabort")}set onabort(t){this[p].set("onabort",t)}get onanimationend(){return S.getEventListener(this,"onanimationend")}set onanimationend(t){this[p].set("onanimationend",t)}get onanimationiteration(){return S.getEventListener(this,"onanimationiteration")}set onanimationiteration(t){this[p].set("onanimationiteration",t)}get onanimationstart(){return S.getEventListener(this,"onanimationstart")}set onanimationstart(t){this[p].set("onanimationstart",t)}get onauxclick(){return S.getEventListener(this,"onauxclick")}set onauxclick(t){this[p].set("onauxclick",t)}get onblur(){return S.getEventListener(this,"onblur")}set onblur(t){this[p].set("onblur",t)}get oncancel(){return S.getEventListener(this,"oncancel")}set oncancel(t){this[p].set("oncancel",t)}get oncanplay(){return S.getEventListener(this,"oncanplay")}set oncanplay(t){this[p].set("oncanplay",t)}get oncanplaythrough(){return S.getEventListener(this,"oncanplaythrough")}set oncanplaythrough(t){this[p].set("oncanplaythrough",t)}get onchange(){return S.getEventListener(this,"onchange")}set onchange(t){this[p].set("onchange",t)}get onclick(){return S.getEventListener(this,"onclick")}set onclick(t){this[p].set("onclick",t)}get onclose(){return S.getEventListener(this,"onclose")}set onclose(t){this[p].set("onclose",t)}get oncontextmenu(){return S.getEventListener(this,"oncontextmenu")}set oncontextmenu(t){this[p].set("oncontextmenu",t)}get oncopy(){return S.getEventListener(this,"oncopy")}set oncopy(t){this[p].set("oncopy",t)}get oncuechange(){return S.getEventListener(this,"oncuechange")}set oncuechange(t){this[p].set("oncuechange",t)}get oncut(){return S.getEventListener(this,"oncut")}set oncut(t){this[p].set("oncut",t)}get ondblclick(){return S.getEventListener(this,"ondblclick")}set ondblclick(t){this[p].set("ondblclick",t)}get ondrag(){return S.getEventListener(this,"ondrag")}set ondrag(t){this[p].set("ondrag",t)}get ondragend(){return S.getEventListener(this,"ondragend")}set ondragend(t){this[p].set("ondragend",t)}get ondragenter(){return S.getEventListener(this,"ondragenter")}set ondragenter(t){this[p].set("ondragenter",t)}get ondragleave(){return S.getEventListener(this,"ondragleave")}set ondragleave(t){this[p].set("ondragleave",t)}get ondragover(){return S.getEventListener(this,"ondragover")}set ondragover(t){this[p].set("ondragover",t)}get ondragstart(){return S.getEventListener(this,"ondragstart")}set ondragstart(t){this[p].set("ondragstart",t)}get ondrop(){return S.getEventListener(this,"ondrop")}set ondrop(t){this[p].set("ondrop",t)}get ondurationchange(){return S.getEventListener(this,"ondurationchange")}set ondurationchange(t){this[p].set("ondurationchange",t)}get onemptied(){return S.getEventListener(this,"onemptied")}set onemptied(t){this[p].set("onemptied",t)}get onended(){return S.getEventListener(this,"onended")}set onended(t){this[p].set("onended",t)}get onerror(){return S.getEventListener(this,"onerror")}set onerror(t){this[p].set("onerror",t)}get onfocus(){return S.getEventListener(this,"onfocus")}set onfocus(t){this[p].set("onfocus",t)}get onformdata(){return S.getEventListener(this,"onformdata")}set onformdata(t){this[p].set("onformdata",t)}get ongotpointercapture(){return S.getEventListener(this,"ongotpointercapture")}set ongotpointercapture(t){this[p].set("ongotpointercapture",t)}get oninput(){return S.getEventListener(this,"oninput")}set oninput(t){this[p].set("oninput",t)}get oninvalid(){return S.getEventListener(this,"oninvalid")}set oninvalid(t){this[p].set("oninvalid",t)}get onkeydown(){return S.getEventListener(this,"onkeydown")}set onkeydown(t){this[p].set("onkeydown",t)}get onkeypress(){return S.getEventListener(this,"onkeypress")}set onkeypress(t){this[p].set("onkeypress",t)}get onkeyup(){return S.getEventListener(this,"onkeyup")}set onkeyup(t){this[p].set("onkeyup",t)}get onload(){return S.getEventListener(this,"onload")}set onload(t){this[p].set("onload",t)}get onloadeddata(){return S.getEventListener(this,"onloadeddata")}set onloadeddata(t){this[p].set("onloadeddata",t)}get onloadedmetadata(){return S.getEventListener(this,"onloadedmetadata")}set onloadedmetadata(t){this[p].set("onloadedmetadata",t)}get onloadstart(){return S.getEventListener(this,"onloadstart")}set onloadstart(t){this[p].set("onloadstart",t)}get onlostpointercapture(){return S.getEventListener(this,"onlostpointercapture")}set onlostpointercapture(t){this[p].set("onlostpointercapture",t)}get onmousedown(){return S.getEventListener(this,"onmousedown")}set onmousedown(t){this[p].set("onmousedown",t)}get onmouseenter(){return S.getEventListener(this,"onmouseenter")}set onmouseenter(t){this[p].set("onmouseenter",t)}get onmouseleave(){return S.getEventListener(this,"onmouseleave")}set onmouseleave(t){this[p].set("onmouseleave",t)}get onmousemove(){return S.getEventListener(this,"onmousemove")}set onmousemove(t){this[p].set("onmousemove",t)}get onmouseout(){return S.getEventListener(this,"onmouseout")}set onmouseout(t){this[p].set("onmouseout",t)}get onmouseover(){return S.getEventListener(this,"onmouseover")}set onmouseover(t){this[p].set("onmouseover",t)}get onmouseup(){return S.getEventListener(this,"onmouseup")}set onmouseup(t){this[p].set("onmouseup",t)}get onmousewheel(){return S.getEventListener(this,"onmousewheel")}set onmousewheel(t){this[p].set("onmousewheel",t)}get onpaste(){return S.getEventListener(this,"onpaste")}set onpaste(t){this[p].set("onpaste",t)}get onpause(){return S.getEventListener(this,"onpause")}set onpause(t){this[p].set("onpause",t)}get onplay(){return S.getEventListener(this,"onplay")}set onplay(t){this[p].set("onplay",t)}get onplaying(){return S.getEventListener(this,"onplaying")}set onplaying(t){this[p].set("onplaying",t)}get onpointercancel(){return S.getEventListener(this,"onpointercancel")}set onpointercancel(t){this[p].set("onpointercancel",t)}get onpointerdown(){return S.getEventListener(this,"onpointerdown")}set onpointerdown(t){this[p].set("onpointerdown",t)}get onpointerenter(){return S.getEventListener(this,"onpointerenter")}set onpointerenter(t){this[p].set("onpointerenter",t)}get onpointerleave(){return S.getEventListener(this,"onpointerleave")}set onpointerleave(t){this[p].set("onpointerleave",t)}get onpointermove(){return S.getEventListener(this,"onpointermove")}set onpointermove(t){this[p].set("onpointermove",t)}get onpointerout(){return S.getEventListener(this,"onpointerout")}set onpointerout(t){this[p].set("onpointerout",t)}get onpointerover(){return S.getEventListener(this,"onpointerover")}set onpointerover(t){this[p].set("onpointerover",t)}get onpointerrawupdate(){return S.getEventListener(this,"onpointerrawupdate")}set onpointerrawupdate(t){this[p].set("onpointerrawupdate",t)}get onpointerup(){return S.getEventListener(this,"onpointerup")}set onpointerup(t){this[p].set("onpointerup",t)}get onprogress(){return S.getEventListener(this,"onprogress")}set onprogress(t){this[p].set("onprogress",t)}get onratechange(){return S.getEventListener(this,"onratechange")}set onratechange(t){this[p].set("onratechange",t)}get onreset(){return S.getEventListener(this,"onreset")}set onreset(t){this[p].set("onreset",t)}get onresize(){return S.getEventListener(this,"onresize")}set onresize(t){this[p].set("onresize",t)}get onscroll(){return S.getEventListener(this,"onscroll")}set onscroll(t){this[p].set("onscroll",t)}get onscrollend(){return S.getEventListener(this,"onscrollend")}set onscrollend(t){this[p].set("onscrollend",t)}get onscrollsnapchange(){return S.getEventListener(this,"onscrollsnapchange")}set onscrollsnapchange(t){this[p].set("onscrollsnapchange",t)}get onscrollsnapchanging(){return S.getEventListener(this,"onscrollsnapchanging")}set onscrollsnapchanging(t){this[p].set("onscrollsnapchanging",t)}get onsecuritypolicyviolation(){return S.getEventListener(this,"onsecuritypolicyviolation")}set onsecuritypolicyviolation(t){this[p].set("onsecuritypolicyviolation",t)}get onseeked(){return S.getEventListener(this,"onseeked")}set onseeked(t){this[p].set("onseeked",t)}get onseeking(){return S.getEventListener(this,"onseeking")}set onseeking(t){this[p].set("onseeking",t)}get onselect(){return S.getEventListener(this,"onselect")}set onselect(t){this[p].set("onselect",t)}get onselectionchange(){return S.getEventListener(this,"onselectionchange")}set onselectionchange(t){this[p].set("onselectionchange",t)}get onselectstart(){return S.getEventListener(this,"onselectstart")}set onselectstart(t){this[p].set("onselectstart",t)}get onslotchange(){return S.getEventListener(this,"onslotchange")}set onslotchange(t){this[p].set("onslotchange",t)}get onstalled(){return S.getEventListener(this,"onstalled")}set onstalled(t){this[p].set("onstalled",t)}get onsubmit(){return S.getEventListener(this,"onsubmit")}set onsubmit(t){this[p].set("onsubmit",t)}get onsuspend(){return S.getEventListener(this,"onsuspend")}set onsuspend(t){this[p].set("onsuspend",t)}get ontimeupdate(){return S.getEventListener(this,"ontimeupdate")}set ontimeupdate(t){this[p].set("ontimeupdate",t)}get ontoggle(){return S.getEventListener(this,"ontoggle")}set ontoggle(t){this[p].set("ontoggle",t)}get ontransitioncancel(){return S.getEventListener(this,"ontransitioncancel")}set ontransitioncancel(t){this[p].set("ontransitioncancel",t)}get ontransitionend(){return S.getEventListener(this,"ontransitionend")}set ontransitionend(t){this[p].set("ontransitionend",t)}get ontransitionrun(){return S.getEventListener(this,"ontransitionrun")}set ontransitionrun(t){this[p].set("ontransitionrun",t)}get ontransitionstart(){return S.getEventListener(this,"ontransitionstart")}set ontransitionstart(t){this[p].set("ontransitionstart",t)}get onvolumechange(){return S.getEventListener(this,"onvolumechange")}set onvolumechange(t){this[p].set("onvolumechange",t)}get onwaiting(){return S.getEventListener(this,"onwaiting")}set onwaiting(t){this[p].set("onwaiting",t)}get onwheel(){return S.getEventListener(this,"onwheel")}set onwheel(t){this[p].set("onwheel",t)}get ownerSVGElement(){let t=this[W];while(t){if(t[ot]==="svg")return t;t=t[W]}return null}get viewportElement(){return this.ownerSVGElement}get dataset(){return this.#t??=new rm(h,this)}get style(){if(!this[ge])this[ge]=new Kr(h,this[m],{element:this});return this[ge]}get tabIndex(){let t=this.getAttribute("tabindex");return t!==null?Number(t):-1}set tabIndex(t){if(t===-1)this.removeAttribute("tabindex");else this.setAttribute("tabindex",String(t))}blur(){il.blur(this)}focus(){il.focus(this)}}class _u{observe(){}unobserve(){}disconnect(){}}class ul extends vt{width=1024;height=768;availWidth=1024;availHeight=768;colorDepth=24;pixelDepth=24;onchange=null}class ya extends ul{availLeft=0;availTop=0;left=0;top=0;isPrimary=!0;isInternal=!0;devicePixelRatio=1;label=""}class um extends vt{currentScreen;screens;oncurrentscreenchange=null;onscreenschange=null;constructor(){super();let t=new ya;this.currentScreen=t,this.screens=[t]}}class ue{static compareBoundaryPointsPosition(t,e){if(t.node===e.node){if(t.offset===e.offset)return 0;else if(t.offset<e.offset)return-1;return 1}if(ft.isFollowing(t.node,e.node))return this.compareBoundaryPointsPosition(e,t)===-1?1:-1;if(ft.isInclusiveAncestor(t.node,e.node)){let o=e.node;while(o[W]!==t.node)o=o[W];if(o[W][_].indexOf(o)<t.offset)return 1}return-1}static validateBoundaryPoint(t){if(t.node[D]===T.documentTypeNode)throw new re("DocumentType Node can't be used as boundary point.",w.invalidNodeTypeError);if(t.offset>ft.getNodeLength(t.node))throw new re("Offset out of bound.",w.indexSizeError)}static isContained(t,e){return this.compareBoundaryPointsPosition({node:t,offset:0},{node:e.startContainer,offset:e.startOffset})===1&&this.compareBoundaryPointsPosition({node:t,offset:ft.getNodeLength(t)},{node:e.endContainer,offset:e.endOffset})===-1}static isPartiallyContained(t,e){return ft.isInclusiveAncestor(t,e.startContainer)&&!ft.isInclusiveAncestor(t,e.endContainer)||!ft.isInclusiveAncestor(t,e.startContainer)&&ft.isInclusiveAncestor(t,e.endContainer)}}var ag;(function(t){t[t.forwards=1]="forwards",t[t.backwards=-1]="backwards",t[t.directionless=0]="directionless"})(ag||(ag={}));var mi=ag;class pa{#t;#e=null;#r=mi.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)return"None";else if(this.#e.collapsed)return"Caret";return"Range"}get anchorNode(){if(!this.#e)return null;return this.#r===mi.forwards?this.#e.startContainer:this.#e.endContainer}get anchorOffset(){if(!this.#e)return 0;return this.#r===mi.forwards?this.#e.startOffset:this.#e.endOffset}get baseNode(){return this.anchorNode}get baseOffset(){return this.anchorOffset}get focusNode(){if(!this.#e)return null;return this.#r===mi.forwards?this.#e.endContainer:this.#e.startContainer}get focusOffset(){if(!this.#e)return 0;return this.#r===mi.forwards?this.#e.endOffset:this.#e.startOffset}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.");if(!this.#e&&t[x]===this.#t)this.#o(t)}getRangeAt(t){if(!this.#e||t!==0)throw new this.#t[m].DOMException("Invalid range index.",w.indexSizeError);return this.#e}removeRange(t){if(this.#e!==t)throw new this.#t[m].DOMException("Invalid range.",w.notFoundError);this.#o(null)}removeAllRanges(){this.#o(null)}empty(){this.removeAllRanges()}collapse(t,e){if(t===null){this.removeAllRanges();return}if(t[D]===T.documentTypeNode)throw new this.#t[m].DOMException("DocumentType Node can't be used as boundary point.",w.invalidNodeTypeError);if(e>ft.getNodeLength(t))throw new this.#t[m].DOMException("Invalid range index.",w.indexSizeError);if(t!==this.#t&&t[x]!==this.#t)return;let o=new this.#t[m].Range;o[O].node=t,o[O].offset=e,o[Y].node=t,o[Y].offset=e,this.#o(o)}setPosition(t,e){this.collapse(t,e)}collapseToEnd(){if(this.#e===null)throw new this.#t[m].DOMException("There is no selection to collapse.",w.invalidStateError);let{node:t,offset:e}=this.#e[Y],o=new this.#t[m].Range;o[O].node=t,o[O].offset=e,o[Y].node=t,o[Y].offset=e,this.#o(o)}collapseToStart(){if(!this.#e)throw new this.#t[m].DOMException("There is no selection to collapse.",w.invalidStateError);let{node:t,offset:e}=this.#e[O],o=new this.#t[m].Range;o[O].node=t,o[O].offset=e,o[Y].node=t,o[Y].offset=e,this.#o(o)}containsNode(t,e=!1){if(!this.#e||t[x]!==this.#t)return!1;let o=ue.compareBoundaryPointsPosition(this.#e[O],{node:t,offset:0})===-1,s=ue.compareBoundaryPointsPosition(this.#e[Y],{node:t,offset:ft.getNodeLength(t)})===1;return e?o||s:o&&s}deleteFromDocument(){if(this.#e)this.#e.deleteContents()}extend(t,e){if(t!==this.#t&&t[x]!==this.#t)return;if(!this.#e)throw new this.#t[m].DOMException("There is no selection to extend.",w.invalidStateError);let o=this.anchorNode,s=this.anchorOffset,n=new this.#t[m].Range;if(n[O].node=t,n[O].offset=0,n[Y].node=t,n[Y].offset=0,t[x]!==this.#e[x])n[O].offset=e,n[Y].offset=e;else if(ue.compareBoundaryPointsPosition({node:o,offset:s},{node:t,offset:e})<=0)n[O].node=o,n[O].offset=s,n[Y].node=t,n[Y].offset=e;else n[O].node=t,n[O].offset=e,n[Y].node=o,n[Y].offset=s;this.#o(n),this.#r=ue.compareBoundaryPointsPosition({node:t,offset:e},{node:o,offset:s})===-1?mi.backwards:mi.forwards}selectAllChildren(t){if(t[D]===T.documentTypeNode)throw new this.#t[m].DOMException("DocumentType Node can't be used as boundary point.",w.invalidNodeTypeError);if(t!==this.#t&&t[x]!==this.#t)return;let e=t[_].length,o=new this.#t[m].Range;o[O].node=t,o[O].offset=0,o[Y].node=t,o[Y].offset=e,this.#o(o)}setBaseAndExtent(t,e,o,s){if(e>ft.getNodeLength(t)||s>ft.getNodeLength(o))throw new this.#t[m].DOMException("Invalid anchor or focus offset.",w.indexSizeError);if(t!==this.#t&&t[x]!==this.#t||o!==this.#t&&o[x]!==this.#t)return;let n={node:t,offset:e},l={node:o,offset:s},a=new this.#t[m].Range;if(ue.compareBoundaryPointsPosition(n,l)===-1)a[O]=n,a[Y]=l;else a[O]=l,a[Y]=n;this.#o(a),this.#r=ue.compareBoundaryPointsPosition(l,n)===-1?mi.backwards:mi.forwards}toString(){return this.#e?this.#e.toString():""}#o(t){let e=this.#e;if(this.#e=t,this.#r=t===null?mi.directionless:mi.forwards,e!==this.#e)this.#t.dispatchEvent(new N("selectionchange"))}}class hl{[Kt]={};constructor(){let t=this[Kt],e=new fe(this,[hl]);return new Proxy(this,{get:(o,s)=>{if(s in o||typeof s==="symbol")return e.bind(s),o[s];if(s in t)return t[s]},set(o,s,n){if(e.bind(s),s in o||typeof s==="symbol")return!0;return t[String(s)]=String(n),!0},deleteProperty(o,s){if(s in t)return delete t[String(s)],!0;return!1},ownKeys(){return Object.keys(t)},has(o,s){if(s in o||s in t)return!0;return!1},defineProperty(o,s,n){if(e.preventBinding(s),s in o)return Object.defineProperty(o,s,n),!0;if(n.value!==void 0)return t[String(s)]=String(n.value),!0;return!1},getOwnPropertyDescriptor(o,s){if(s in o)return;let n=t[String(s)];if(n!==void 0)return{value:n,writable:!0,enumerable:!0,configurable:!0}}})}get length(){return Object.keys(this[Kt]).length}key(t){let e=Object.keys(this[Kt])[t];return e!==void 0?e:null}setItem(t,e){this[Kt][t]=String(e)}getItem(t){return this[Kt][t]!==void 0?this[Kt][t]:null}removeItem(t){delete this[Kt][t]}clear(){let t=this[Kt];for(let e of Object.keys(t))delete t[e]}}var pe={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};var bS={1:pe.SHOW_ELEMENT,2:pe.SHOW_ATTRIBUTE,3:pe.SHOW_TEXT,4:pe.SHOW_CDATA_SECTION,5:pe.SHOW_ENTITY_REFERENCE,6:pe.SHOW_PROCESSING_INSTRUCTION,7:pe.SHOW_PROCESSING_INSTRUCTION,8:pe.SHOW_COMMENT,9:pe.SHOW_DOCUMENT,10:pe.SHOW_DOCUMENT_TYPE,11:pe.SHOW_DOCUMENT_FRAGMENT,12:pe.SHOW_NOTATION};var ua;(function(t){t.first="first",t.last="last"})(ua||(ua={}));var ha;(function(t){t.next="next",t.previous="previous"})(ha||(ha={}));class hn{root;whatToShow=-1;filter=null;#t=null;constructor(t,e=-1,o=null){if(!(t instanceof st))throw new re("Parameter 1 was not of type Node.");this.root=t,this.whatToShow=e,this.filter=o,this.#t=t}get currentNode(){return this.#t}set currentNode(t){if(!(t instanceof st))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;while(t!==null&&t!==this.root)if(t=t.parentNode,t!==null&&this[Wo](t)===pe.FILTER_ACCEPT)return this.#t=t,this.#t;return null}firstChild(){return this.#e(ua.first)}lastChild(){return this.#e(ua.last)}nextSibling(){return this.#r(ha.next)}previousSibling(){return this.#r(ha.previous)}previousNode(){let t=this.#t;while(t!==this.root){let e=t?.previousSibling||null;while(e!==null){let o=e,s=this[Wo](o);while(s!==pe.FILTER_REJECT&&o[_].length)o=o.lastChild,s=this[Wo](o);if(s===pe.FILTER_ACCEPT)return this.#t=o,o;e=o.previousSibling}if(t===this.root||t.parentNode===null)return null;if(t=t.parentNode,this[Wo](t)===pe.FILTER_ACCEPT)return this.#t=t,t}return null}nextNode(){let t=this.#t,e=pe.FILTER_ACCEPT;if(t===null)return null;while(!0){while(e!==pe.FILTER_REJECT&&t[_].length)if(t=t.firstChild,e=this[Wo](t),e===pe.FILTER_ACCEPT)return this.#t=t,t;while(t!==null){if(t===this.root)return null;let o=t.nextSibling;if(o!==null){t=o;break}t=t.parentNode}if(t===null)return null;if(e=this[Wo](t),e===pe.FILTER_ACCEPT)return this.#t=t,t}}[Wo](t){let e=bS[t.nodeType];if(e&&(this.whatToShow&e)==0)return pe.FILTER_SKIP;if(typeof this.filter==="function")return this.filter(t);if(this.filter)return this.filter.acceptNode(t);return pe.FILTER_ACCEPT}#e(t){let e=this.#t;if(!e)return null;e=t===ua.first?e.firstChild:e.lastChild;while(e!==null){let o=this[Wo](e);if(o===pe.FILTER_ACCEPT)return this.#t=e,e;if(o===pe.FILTER_SKIP){let s=t===ua.first?e.firstChild:e.lastChild;if(s!==null){e=s;continue}}while(e!==null){let s=t===ua.first?e.nextSibling:e.previousSibling;if(s!==null){e=s;break}let n=e.parentNode;if(n===null||n===this.root||n===this.#t)return null;e=n}}return null}#r(t){let e=this.#t;if(!e||e===this.root)return null;while(!0){let o=t===ha.next?e.nextSibling:e.previousSibling;while(o!==null){let s=o,n=this[Wo](s);if(n===pe.FILTER_ACCEPT)return this.#t=s,s;if(o=t===ha.next?s.firstChild:s.lastChild,n===pe.FILTER_REJECT||o===null)o=t===ha.next?s.nextSibling:s.previousSibling}if(e=e.parentNode,e===null||e===this.root)return null;if(this[Wo](e)===pe.FILTER_ACCEPT)return null}}}class ca{#t;#e=-1;#r=null;#o;#i=!0;constructor(t,e=-1,o=null){this.#t=t,this.#e=e,this.#r=o,this.#o=new hn(t,e,o)}get root(){return this.#t}get whatToShow(){return this.#e}get filter(){return this.#r}nextNode(){if(this.#i){if(this.#i=!1,this.#o[Wo](this.#t)!==pe.FILTER_ACCEPT)return this.#o.nextNode();return this.#t}return this.#o.nextNode()}previousNode(){return this.#o.previousNode()}}class Yu{serializeToString(t){return this.#t(t)}#t(t,e=null,o=null){switch(t[D]){case T.elementNode:let s=t,n=s[ot],l="",a=this.#e(s,o),y=s[J]===Ht.html?s[Ft]:this.#r(s,a),u=`${y?y+":":""}${n}`,c=y?e:s[J]||e,d=this.#o(s,y,e,o),g=c===Ht.html&&n==="template"?t.content[_]:t[_];for(let Rt of g)l+=this.#t(Rt,c,a);if(!l&&c===Ht.html&&$e[n.toLowerCase()]?.contentModel===G.noDescendants)return`<${u}${d} />`;if(!l&&c!==Ht.html)return`<${u}${d}/>`;return`<${u}${d}>${l}</${u}>`;case st.DOCUMENT_FRAGMENT_NODE:case st.DOCUMENT_NODE:let f="";if(t[Yn])f+=this.#t(t[Yn],e,new Map(o));for(let Rt of t[_])f+=this.#t(Rt,e,new Map(o));return f;case T.commentNode:return`<!--${t.textContent}-->`;case T.processingInstructionNode:return`<?${t.target} ${t.textContent}?>`;case T.textNode:let E=t.parentElement;if(E){if($e[E[ot]]?.contentModel===G.rawText)return t.textContent}return De.encodeTextContent(t.textContent);case T.documentTypeNode:let R=t,H=R.publicId?" PUBLIC":R.systemId?" SYSTEM":"",pt=R.publicId?` "${R.publicId}"`:"",gt=R.systemId?` "${R.systemId}"`:"";return`<!DOCTYPE ${R.name}${H}${pt}${gt}>`}return""}#e(t,e){let o=new Map(e);for(let s of t[St][Q].values())if(s[J]===Ht.xmlns&&s[Ft])o.set(s[q],s[ot]);return o}#r(t,e){if(t[Ft]&&!t[J])throw Error("Element has a prefix but no namespace.");if(!t[Ft]||!e)return null;let o=e.get(t[J]);if(o)return o;let s=new Set(e.values());if(s.has(t[Ft])){let n=1;while(s.has("n"+n))n++;return e.set(t[J],"n"+n),"n"+n}return e.set(t[J],t[Ft]),t[Ft]}#o(t,e,o,s){let n="",l="",a=new Set;for(let y of t[St][Q].values())if(y[J]===Ht.xmlns)if(e&&y[ot]===e&&t[J])l+=` xmlns:${e}="${De.encodeXMLAttributeValue(t[J])}"`,a.add(t[J]);else if(!e&&y[rt]==="xmlns"&&t[J])l+=` xmlns="${De.encodeXMLAttributeValue(t[J])}"`,a.add(t[J]);else l+=` ${y[rt]}="${De.encodeXMLAttributeValue(y[q])}"`,a.add(y[q]);else n+=` ${y[rt]}="${De.encodeXMLAttributeValue(y[q])}"`;if(t[J]&&o!==t[J]&&!a.has(t[J])){if(e&&!s?.has(t[J]))l+=` xmlns:${e}="${De.encodeXMLAttributeValue(t[J])}"`;else if(!e&&o!==t[J])l+=` xmlns="${De.encodeXMLAttributeValue(t[J])}"`}return l+n}}import{Script as xA}from"vm";var gS=new xA(`
131
+ `||o==="\t")e--,o=t[e];return o||";"}}class vu extends B{[Xs]=!1;[ep]=null;#t=null;get onerror(){return S.getEventListener(this,"onerror")}set onerror(t){this[p].set("onerror",t)}get onload(){return S.getEventListener(this,"onload")}set onload(t){this[p].set("onload",t)}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}get blocking(){if(!this[ep])this[ep]=new Or(h,this,"blocking");return this[ep]}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){if(t)this.setAttribute("nomodule","");else 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[x].location.href).href}catch(t){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){if(!t)this.removeAttribute("async");else this.setAttribute("async","")}get defer(){return this.getAttribute("defer")!==null}set defer(t){if(!t)this.removeAttribute("defer");else this.setAttribute("defer","")}get text(){return this.textContent}set text(t){this.textContent=t}[ct](t=!1){return super[ct](t)}[sr](){let t=new it(this[m]).getSettings();if(super[sr](),this[Xs])return;let e=this.getAttribute("src");if(e!==null)if(this.getAttribute("type")==="module")this.#i(e);else this.#s(e);else if(t&&t.enableJavaScriptEvaluation){let o=this.textContent,s=this.getAttribute("type");if(o){if(s==="module")this.#e(o);else if(s==="importmap")this.#r(o);else if(s===null||s==="application/x-ecmascript"||s==="application/x-javascript"||s.startsWith("text/javascript"))this.#o(o)}}}[Re](t,e){if(super[Re](t,e),t[rt]==="src"&&t[q]!==null&&this[tt])if(this.getAttribute("type")==="module")this.#i(t[q]);else this.#s(t[q])}#e(t){let e=this[x].location,o=this[m],s=new it(o).getSettings();if(!new it(o).getBrowserFrame()||!s||!s.enableJavaScriptEvaluation)return;this[x][Oo]=this;let l=new Qo(o,e),a=new pn({window:o,url:e,source:t,factory:l});if(s.disableErrorCapturing||s.errorCapture!==me.tryAndCatch)a.evaluate();else a.evaluate().catch((y)=>{o[le](y)});this[x][Oo]=null,this.dispatchEvent(new N("load"))}async#r(t){let e=this[m],o=new it(e).getSettings();if(!new it(e).getBrowserFrame()||!o||e[Bl]||!o.enableJavaScriptEvaluation)return;let n;if(o.disableErrorCapturing||o.errorCapture!==me.tryAndCatch)n=JSON.parse(t);else try{n=JSON.parse(t)}catch(l){e[le](l);return}if(n.imports||n.scopes){let l={imports:[],scopes:[]};if(n.imports)for(let a of Object.keys(n.imports))l.imports.push({from:a,to:n.imports[a]});if(n.scopes)for(let a of Object.keys(n.scopes)){let y={scope:a,rules:[]};for(let u of Object.keys(n.scopes[a])){let c=n.scopes[a][u];y.rules.push({from:u,to:c})}l.scopes.push(y)}e[Bl]=l}}#o(t){let e=this[m];if(!new it(e).getSettings())return;this[x][Oo]=this;let n=new xu(e).compile(e.location.href,t),l=new Qo(e,e.location);n.execute({dynamicImport:l.importModule.bind(l),dispatchError:e[le].bind(e)}),this[x][Oo]=null}async#i(t){let e=this[m],o=new it(e).getBrowserFrame(),s=new it(e).getSettings();if(!o||!s)return;if(!t||!this[tt]||this.getAttribute("type")!=="module")return;if(s&&(s.disableJavaScriptFileLoading||!s.enableJavaScriptEvaluation)){if(s.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new N("load"));else{let l=new e.DOMException(`Failed to load module "${t}". JavaScript file loading is disabled.`,w.notSupportedError);o.page.console.error(l),this.dispatchEvent(new N("error"))}return}let n=new Qo(e,e.location);if(s.disableErrorCapturing||s.errorCapture!==me.tryAndCatch)await(await n.getModule(t)).evaluate();else try{await(await n.getModule(t)).evaluate()}catch(l){o.page.console.error(l),this.dispatchEvent(new N("error"));return}this.dispatchEvent(new N("load"))}async#s(t){let e=this[m],o=new it(e).getBrowserFrame();if(!o)return;let s=o.page.context.browser.settings,n=this.getAttribute("type");if(!t||!this[tt]||n!==null&&n!=="application/x-ecmascript"&&n!=="application/x-javascript"&&!n.startsWith("text/javascript"))return;let l;try{l=new URL(t,e.location.href)}catch(E){return}let a=l.toString();if(this.#t===a)return;if(s&&(s.disableJavaScriptFileLoading||!s.enableJavaScriptEvaluation)){if(s.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new N("load"));else{let E=new e.DOMException(`Failed to load script "${l}". JavaScript file loading is disabled.`,w.notSupportedError);o.page.console.error(E),this.dispatchEvent(new N("error"))}return}this.#t=a;let y=new ml(e),u=this.getAttribute("async")!==null||this.getAttribute("defer")!==null,c=null;if(u){let E=e[Eo],R=E.startTask();try{c=await y.fetch(a,"script",{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin",referrerPolicy:this.referrerPolicy})}catch(H){o.page.console.error(H),this.dispatchEvent(new N("error")),E.endTask(R);return}E.endTask(R)}else try{c=y.fetchSync(a,"script",{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin",referrerPolicy:this.referrerPolicy})}catch(E){o.page.console.error(E),this.dispatchEvent(new N("error"));return}this[x][Oo]=this;let g=new xu(e).compile(c.virtualServerFile||a,c.content),f=new Qo(e,e.location);g.execute({dynamicImport:f.importModule.bind(f),dispatchError:e[le].bind(e)}),this[x][Oo]=null,this.dispatchEvent(new N("load"))}static supports(t){switch(t){case"classic":case"module":case"importmap":return!0;case"speculationrules":default:return!1}}}class ym extends de{constructor(t,e){super(t,()=>yt.querySelectorAll(e,"option")[Q]);this[xt]=e}get selectedIndex(){return this[xt].selectedIndex}set selectedIndex(t){this[xt].selectedIndex=t}add(t,e){this[xt].add(t,e)}remove(t){this[xt].remove(t)}}class pm extends B{[Ce]="";[Ke]=new qr(this);[Ui]=null;[Rn]=null;[Ho]=-1;[Vt];constructor(){super();let t=new fe(this,[pm,B,Gr,st,vt]),e=new Proxy(this,{get:(o,s)=>{if(s in o||typeof s==="symbol")return t.bind(s),o[s];let n=Number(s);if(!isNaN(n))return yt.querySelectorAll(o,"option")[Q][n]},set(o,s,n){if(t.bind(s),typeof s==="symbol")return o[s]=n,!0;let l=Number(s);if(isNaN(l))return o[s]=n,!0;if(!n||!(n instanceof un))throw new o[m].Error(`TypeError: Failed to set an indexed property [${l}] on 'HTMLSelectElement': parameter 2 is not of type 'HTMLOptionElement'.`);let a=yt.querySelectorAll(o,"option")[Q],y=o[_];while(y.length)o[hr](y[0]);for(let u=0;u<=l;u++)if(u===l)o[Et](n);else if(a[u])o[Et](a[u]);else o[Et](o[x].createElement("option"));return!0},deleteProperty(o,s){if(typeof s==="symbol")return delete o[s],!0;let n=Number(s);if(isNaN(n))delete o[s];return!0},ownKeys(o){return Object.keys(yt.querySelectorAll(o,"option")[Q])},has(o,s){if(s in o)return!0;if(typeof s==="symbol")return!1;let n=Number(s);if(!isNaN(n))return!!yt.querySelectorAll(o,"option")[Q][n];return!1},defineProperty(o,s,n){t.preventBinding(s);let l=Number(s);if(isNaN(l))return Object.defineProperty(o,s,n),!0;if(!n.value||!(n.value instanceof un))throw new o[m].Error(`TypeError: Failed to set an indexed property [${l}] on 'HTMLSelectElement': parameter 2 is not of type 'HTMLOptionElement'.`);let a=yt.querySelectorAll(o,"option")[Q],y=o[_];while(y.length)o[hr](y[0]);for(let u=0;u<=l;u++)if(u===l)o[Et](n.value);else if(a[u])o[Et](a[u]);else o[Et](o[x].createElement("option"));return!0},getOwnPropertyDescriptor(o,s){if(s in o)return Object.getOwnPropertyDescriptor(o,s);let n=Number(s);if(isNaN(n))return;let l=yt.querySelectorAll(o,"option")[Q];if(!l[n])return;return{value:l[n],writable:!0,enumerable:!0,configurable:!0}}});return this[Vt]=e,this[Ie]=e,e}get onchange(){return S.getEventListener(this,"onchange")}set onchange(t){this[p].set("onchange",t)}get oninput(){return S.getEventListener(this,"oninput")}set oninput(t){this[p].set("oninput",t)}get length(){return yt.querySelectorAll(this,"option")[Q].length}get options(){if(!this[Ui])this[Ui]=new ym(h,this);return this[Ui]}get validationMessage(){return this[Ce]}get validity(){return this[Ke]}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){if(!t)this.removeAttribute("disabled");else this.setAttribute("disabled","")}get multiple(){return this.getAttribute("multiple")!==null}set multiple(t){if(!t)this.removeAttribute("multiple");else this.setAttribute("multiple","")}get autofocus(){return this.getAttribute("autofocus")!==null}set autofocus(t){if(!t)this.removeAttribute("autofocus");else this.setAttribute("autofocus","")}get required(){return this.getAttribute("required")!==null}set required(t){if(!t)this.removeAttribute("required");else this.setAttribute("required","")}get type(){return this.hasAttributeNS(null,"multiple")?"select-multiple":"select-one"}get value(){let t=yt.querySelectorAll(this,"option")[Q];for(let e=0,o=t.length;e<o;e++){let s=t[e];if(s[Ar])return s.value}return""}set value(t){let e=yt.querySelectorAll(this,"option")[Q];this[Ho]=-1;for(let o=0,s=e.length;o<s;o++){let n=e[o];if(n.value===t)n[Ar]=!0,n[En]=!0,this[Ho]=o;else n[Ar]=!1}}get selectedIndex(){return this[Ho]}set selectedIndex(t){if(t=Number(t),isNaN(t))return;let e=yt.querySelectorAll(this,"option")[Q];if(this[Ho]=-1,typeof t==="number"&&!isNaN(t)){for(let s=0,n=e.length;s<n;s++)e[s][Ar]=!1;let o=e[t];if(o)o[Ar]=!0,o[En]=!0,this[Ho]=t}}get selectedOptions(){if(!this[Rn])this[Rn]=new de(h,()=>{let t=yt.querySelectorAll(this,"option")[Q];if(t[Rn])return t[Rn];let e=[];for(let o=0,s=t.length;o<s;o++){let n=t[o];if(n[Ar])e.push(n)}return t[Rn]=e,e});return this[Rn]}get labels(){return $r.getAssociatedLabelElements(this)}get form(){if(this[Ut])return this[Ut];let t=this.getAttribute("form");if(!t||!this[tt])return null;return this[x].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 o=yt.querySelectorAll(this,"option")[Q];if(!e&&e!==0){let a=this[_];while(a.length)this[hr](a[0]);for(let y of o)this[Et](y);this[Et](t);return}let s=this[m];if(typeof e!=="number"){if(!(e instanceof un))throw new s.DOMException("Failed to execute 'add' on 'HTMLFormElement': The node before which the new node is to be inserted before is not an 'HTMLOptionElement'.");e=o.indexOf(e)}if(!o[e])throw new s.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 l=this[_];while(l.length)this[hr](l[0]);for(let a=0,y=o.length;a<y;a++){if(a===e)this[Et](t);this[Et](o[a])}}remove(t){if(typeof t==="number"){let e=yt.querySelectorAll(this,"option")[Q];if(!e[t])return;let o=this[_];while(o.length)this[hr](o[0]);for(let s=0,n=e.length;s<n;s++)if(s!==t)this[Et](e[s])}else super.remove()}setCustomValidity(t){this[Ce]=String(t)}checkValidity(){let t=this.disabled||this[Ke].valid;if(!t)this.dispatchEvent(new N("invalid",{bubbles:!0,cancelable:!0}));return t}reportValidity(){return this.checkValidity()}[Cn](t){let e=this.hasAttribute("multiple"),o=yt.querySelectorAll(this,"option")[Q],s=[];if(t)this[Ho]=-1;if(!e)for(let l=0,a=o.length;l<a;l++){let y=o[l];if(t){if(y[Ar]=y===t,y===t)this[Ho]=l}if(y[Ar])s.push(y)}if(this.#t()===1&&!s.length){this[Ho]=-1;for(let l=0,a=o.length;l<a;l++){let y=o[l],u=y[W],c=y.hasAttributeNS(null,"disabled");if(u&&u[D]===T.elementNode&&u[z]==="OPTGROUP"&&u.hasAttributeNS(null,"disabled"))c=!0;if(!c){y[Ar]=!0,this[Ho]=l;break}}}else if(s.length>=2){this[Ho]=-1;for(let l=0,a=o.length;l<a;l++)if(o[l][Ar]=l===s.length-1,l===s.length-1)this[Ho]=l}}#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}}var sg;class ng extends B{[Wi]=[];get onslotchange(){return S.getEventListener(this,"onslotchange")}set onslotchange(t){this[p].set("onslotchange",t)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}assign(...t){let e=this.getRootNode();if(e?.[Ei]!=="manual")return;let o=e.host;if(!o)return;for(let s of t)if(s instanceof st){if(o[_].includes(s)&&s[D]!==T.commentNode){if(s[Zo]){let n=s[Zo][Wi].indexOf(s);if(n!==-1)s[Zo][Wi].splice(n,1)}s[Zo]=this,this[Wi].push(s)}}}assignedNodes(t){return this.#t(this.name,t)}assignedElements(t){return this.#e(this.name,t)}[ct](t=!1){return super[ct](t)}[Re](t,e){if(super[Re](t,e),t[rt]==="name"&&t[q]!==e?.[q]){let o=this.#t(e?.[q]),s=this.#t(t.value);if(o.length!==s.length)this.dispatchEvent(new N("slotchange",{bubbles:!0}));else for(let n=0,l=s.length;n<l;n++)if(o[n]!==s[n]){this.dispatchEvent(new N("slotchange",{bubbles:!0}));break}}}[br](t){if(super[br](t),t[rt]==="name"&&t[q]&&this.#t(t.value).length>0)this.dispatchEvent(new N("slotchange",{bubbles:!0}))}#t(t,e){let o=this.getRootNode();if(!o?.host)return[];if(o[Ei]==="manual")return this[Wi];let s=o.host,n=!!e?.flatten,l=[];for(let a of s[_]){let y=a.slot;if(t&&y&&y===t||!t&&!y)if(n&&a instanceof sg)for(let u of a.assignedNodes(e))l.push(u);else l.push(a)}return l}#e(t,e){let o=this.getRootNode();if(!o?.host)return[];if(o[Ei]==="manual"){let a=[];for(let y of this[Wi])if(y instanceof Gr)a.push(y);return a}let s=o.host,n=!!e?.flatten,l=[];for(let a of s[bt]){let y=a.slot;if(t&&y===t||!t&&!y)if(n&&a instanceof sg)for(let u of a.assignedElements(e))l.push(u);else l.push(a)}return l}}sg=ng;var lg=ng;class Tu extends B{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[x].location.href).href}catch(t){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)}}class Cu extends B{}class Nu extends B{[Be]=null;[dr]=this;[_n]=!1;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[_n]}set disabled(t){this[_n]=Boolean(t)}get sheet(){if(!this[tt])return null;if(!this[Be])this[Be]=new this[x][m].CSSStyleSheet,this[Be].replaceSync(this.textContent);return this[Be]}[nr](){super[nr](),this[Be]=null}[At](){super[At](),this[Be]=null}[Vn](){if(this[Be])this[Be].replaceSync(this.textContent)}}class aa extends B{}class Lu extends B{get abbr(){return this.getAttribute("abbr")||""}set abbr(t){this.setAttribute("abbr",t)}get cellIndex(){let t=this.parentNode;while(t){if(t[z]==="TR")return yt.querySelectorAll(t,"td,th")[Q].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)}}class ku extends B{}class Es extends B{insertRow(t=-1){if(typeof t!=="number")t=-1;let e=yt.querySelectorAll(this,"tr")[Q];if(t<-1)throw new this[m].DOMException(`Failed to execute 'insertRow' on 'HTMLTableSectionElement': The index provided (${t}) is less than -1.`,w.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}).`,w.indexSizeError);let o=this[x].createElement("tr");if(t===-1||t===e.length)this.appendChild(o);else this.insertBefore(o,e[t]);return o}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;if(t<-1)throw new this[m].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableSectionElement': The index provided (${t}) is less than -1.`,w.indexSizeError);let e=yt.querySelectorAll(this,"tr")[Q];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}).`,w.indexSizeError);if(t===-1)t=e.length-1;e[t].remove()}}class Mu extends B{[Fm]=null;[Vm]=null;get caption(){return yt.querySelector(this,"caption")}set caption(t){if(t){if(!(t instanceof aa))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 yt.querySelector(this,"thead")}set tHead(t){if(t){if(!(t instanceof Es))throw new this[m].TypeError("Failed to set the 'tHead' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableSectionElement'.");this.tHead?.remove();let e=!1;for(let o of this[bt])if(o[z]!=="CAPTION"&&o[z]!=="COLGROUP"){this.insertBefore(t,o),e=!0;break}if(!e)this.appendChild(t)}else this.tHead?.remove()}get tFoot(){return yt.querySelector(this,"tfoot")}set tFoot(t){if(t){if(!(t instanceof Es))throw new this[m].TypeError("Failed to set the 'tFoot' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableSectionElement'.");this.tFoot?.remove();let e=!1;for(let o of this[bt])if(o[z]!=="CAPTION"&&o[z]!=="COLGROUP"&&o[z]!=="THEAD"){this.insertBefore(t,o),e=!0;break}if(!e)this.appendChild(t)}else this.tFoot?.remove()}get rows(){if(!this[Fm])this[Fm]=new de(h,()=>yt.querySelectorAll(this,"tr")[Q]);return this[Fm]}get tBodies(){if(!this[Vm])this[Vm]=new de(h,()=>yt.querySelectorAll(this,"tbody")[Q]);return this[Vm]}createTHead(){let t=this.tHead;if(t)return t;let e=this[x].createElement("thead");return this.tHead=e,e}deleteTHead(){this.tHead=null}createTFoot(){let t=this.tFoot;if(t)return t;let e=this[x].createElement("tfoot");return this.tFoot=e,e}deleteTFoot(){this.tFoot=null}createTBody(){let t=yt.querySelectorAll(this,"tbody")[Q],e=this[x].createElement("tbody");if(t.length>0){let o=t[t.length-1];return o.parentNode?.insertBefore(e,o.nextSibling),e}return this.appendChild(e),e}createCaption(){let t=this.caption;if(t)return t;let e=this[x].createElement("caption");return this.caption=e,e}deleteCaption(){this.caption=null}insertRow(t=-1){if(typeof t!=="number")t=-1;let e=yt.querySelectorAll(this,"tr")[Q];if(t<-1)throw new this[m].DOMException(`Failed to execute 'insertRow' on 'HTMLTableElement': The index provided (${t}) is less than -1.`,w.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}).`,w.indexSizeError);let o=this[x].createElement("tr");if(t===-1||t===e.length){let s=yt.querySelector(this,"tbody");if(s)s.appendChild(o);else{let n=this[x].createElement("tbody");n.appendChild(o),this.appendChild(n)}return o}return e[t].parentNode?.insertBefore(o,e[t]),o}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;if(t<-1)throw new this[m].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableElement': The index provided (${t}) is less than -1.`,w.indexSizeError);let e=yt.querySelectorAll(this,"tr")[Q];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}).`,w.indexSizeError);if(t===-1)t=e.length-1;e[t].remove()}}class Iu extends B{[Rm]=null;get cells(){if(!this[Rm])this[Rm]=new de(h,()=>yt.querySelectorAll(this,"td,th")[Q]);return this[Rm]}get rowIndex(){let t=this.parentNode;while(t){if(t[z]==="TABLE")return yt.querySelectorAll(t,"tr")[Q].indexOf(this);t=t.parentNode}return-1}get sectionRowIndex(){let t=this.parentNode;while(t){if(t instanceof Es)return yt.querySelectorAll(t,"tr")[Q].indexOf(this);t=t.parentNode}return-1}insertCell(t=-1){if(typeof t!=="number")t=-1;let e=yt.querySelectorAll(this,"td,th")[Q];if(t<-1)throw new this[m].DOMException(`Failed to execute 'insertCell' on 'HTMLTableRowElement': The index provided (${t}) is less than -1.`,w.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}).`,w.indexSizeError);let o=this[x].createElement("td");if(t===-1||t===e.length)return this.appendChild(o),o;return e[t].parentNode?.insertBefore(o,e[t]),o}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;if(t<-1)throw new this[m].DOMException(`Failed to execute 'deleteCell' on 'HTMLTableRowElement': The index provided (${t}) is less than -1.`,w.indexSizeError);let e=yt.querySelectorAll(this,"td,th")[Q];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}).`,w.indexSizeError);if(t===-1)t=e.length-1;e[t].remove()}}class Ru extends B{[so]=this[x].createDocumentFragment();get content(){return this[so]}get innerHTML(){return this.getHTML()}set innerHTML(t){let e=this[so],o=e[_];while(o.length)e.removeChild(o[0]);new Cr(this[m],{isTemplateDocumentFragment:!0}).parse(t,this[so])}get firstChild(){return this[so].firstChild}get lastChild(){return this[so].lastChild}getInnerHTML(t){let e=new ai,o=this[so],s="";for(let n of o[_])s+=e.serializeToString(n);return s}getHTML(t){let e=new ai,o=this[so],s="";for(let n of o[_])s+=e.serializeToString(n);return s}[Et](t,e=!1){return this[so][Et](t,e)}[hr](t){return this[so][hr](t)}[kr](t,e,o=!1){return this[so][kr](t,e,o)}[La](t,e){return this[so][La](t,e)}[ct](t=!1){let e=super[ct](t);return e[so]=this[so].cloneNode(t),e}}class Fu extends B{type="textarea";[Ce]="";[Ke]=new qr(this);[q]=null;[Je]=this;[Ut]=null;#t=null;#e=null;#r=fo.none;get oninput(){return S.getEventListener(this,"oninput")}set oninput(t){this[p].set("oninput",t)}get onselectionchange(){return S.getEventListener(this,"onselectionchange")}set onselectionchange(t){this[p].set("onselectionchange",t)}get validationMessage(){return this[Ce]}get validity(){return this[Ke]}get defaultValue(){return this.textContent}set defaultValue(t){this.textContent=t}get minLength(){let t=this.getAttribute("minlength");if(t!==null)return parseInt(t);return-1}set minLength(t){this.setAttribute("minlength",String(t))}get maxLength(){let t=this.getAttribute("maxlength");if(t!==null)return parseInt(t);return-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){if(!t)this.removeAttribute("readonly");else this.setAttribute("readonly","")}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){if(!t)this.removeAttribute("disabled");else this.setAttribute("disabled","")}get autofocus(){return this.getAttribute("autofocus")!==null}set autofocus(t){if(!t)this.removeAttribute("autofocus");else this.setAttribute("autofocus","")}get required(){return this.getAttribute("required")!==null}set required(t){if(!t)this.removeAttribute("required");else this.setAttribute("required","")}get value(){if(this[q]===null)return this.textContent;return this[q]}set value(t){let e=this[q];if(this[q]=t,e!==this[q])this.#t=this[q].length,this.#e=this[q].length,this.#r=fo.none}get selectionStart(){if(this.#t===null)return this.value.length;return this.#t}set selectionStart(t){this.setSelectionRange(t,Math.max(t,this.selectionEnd),this.#r)}get selectionEnd(){if(this.#e===null)return this.value.length;return 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[Ut])return this[Ut];let t=this.getAttribute("form");if(!t||!this[tt])return null;return this[x].getElementById(t)}get textLength(){return this.value.length}get labels(){return $r.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=fo.none,this.dispatchEvent(new N("select",{bubbles:!0,cancelable:!1}))}setSelectionRange(t,e,o="none"){this.#e=Math.min(e,this.value.length),this.#t=Math.min(t,this.selectionEnd),this.#r=o===fo.forward||o===fo.backward?o:fo.none,this.dispatchEvent(new N("select",{bubbles:!0,cancelable:!1}))}setRangeText(t,e=null,o=null,s=ws.preserve){if(e===null)e=this.#t!==null?this.#t:0;if(o===null)o=this.#e!==null?this.#e:this.value.length;if(e>o)throw new this[m].DOMException("The index is not in the allowed range.",w.invalidStateError);e=Math.min(e,this.value.length),o=Math.min(o,this.value.length);let n=this.value,l=this.#t!==null?this.#t:0,a=this.#e!==null?this.#e:this.value.length;this.value=n.slice(0,e)+t+n.slice(o);let y=e+this.value.length;switch(s){case ws.select:this.setSelectionRange(e,y);break;case ws.start:this.setSelectionRange(e,e);break;case ws.end:this.setSelectionRange(y,y);break;default:let u=t.length-(o-e);if(l>o)l+=u;else if(l>e)l=e;if(a>o)a+=u;else if(a>e)a=y;this.setSelectionRange(l,a);break}}setCustomValidity(t){this[Ce]=String(t)}checkValidity(){let t=this.disabled||this.readOnly||this[Ke].valid;if(!t)this.dispatchEvent(new N("invalid",{bubbles:!0,cancelable:!0}));return t}reportValidity(){return this.checkValidity()}[ct](t=!1){let e=super[ct](t);return e[q]=this[q],e.#t=this.#t,e.#e=this.#e,e.#r=this.#r,e}[Ea](){if(this[q]===null)this.#t=null,this.#e=null,this.#r=fo.none}}class Vu extends B{get dateTime(){return this.getAttribute("dateTime")||""}set dateTime(t){this.setAttribute("dateTime",t)}}class Du extends B{get text(){let t="";for(let e of this[_])if(e[D]===T.textNode)t+=e.textContent;return t}set text(t){this.textContent=t}get innerHTML(){return this.getHTML()}set innerHTML(t){this.textContent=t}}class Bu extends B{get oncuechange(){return S.getEventListener(this,"oncuechange")}set oncuechange(t){this[p].set("oncuechange",t)}get kind(){let t=this.getAttribute("kind");if(t===null)return Ps.subtitles;if(!Ps[t])return Ps.metadata;return t}set kind(t){if(!Ps[t])t=Ps.metadata;this.setAttribute("kind",t)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[x].location.href).href}catch(t){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){if(t)this.setAttribute("default","");else this.removeAttribute("default")}get readyState(){return 0}get track(){let t=new this[m].TextTrack(h);return t[xo]=this.kind,t[Us]=this.label,t[Il]=this.srclang,t[Ee]=this.default?"showing":"disabled",t[Bm]=this.id,t}}class Ou extends B{}class Gu extends B{}class Uu extends an{}class Hu extends Ss{[D]=T.processingInstructionNode;[wr]="";get target(){return this[wr]}}class ma extends st{[ir]=null;[ve]=this;[D]=T.documentFragmentNode;get children(){if(!this[ir]){let t=this[bt];this[ir]=new de(h,()=>t)}return this[ir]}get childElementCount(){return this[bt].length}get firstElementChild(){return this[bt][0]??null}get lastElementChild(){let t=this[bt];return t[t.length-1]??null}get textContent(){let t="";for(let e of this[_])if(e[D]===T.elementNode||e[D]===T.textNode)t+=e.textContent;return t}set textContent(t){let e=this[_];while(e.length)this.removeChild(e[0]);if(t)this.appendChild(this[x].createTextNode(t))}append(...t){oe.append(this,...t)}prepend(...t){oe.prepend(this,...t)}replaceChildren(...t){oe.replaceChildren(this,...t)}querySelectorAll(t){return yt.querySelectorAll(this,t)}querySelector(t){return yt.querySelector(this,t)}getElementById(t){return oe.getElementById(this,t)}}class Wu extends ma{[Vs]=[];[Ee]="open";[Mn]=null;[Gn]=!1;[kl]=!1;[Hi]=!1;[Ei]="named";[p]=new Map;get onslotchange(){return this[p].get("onslotchange")??null}set onslotchange(t){this[p].set("onslotchange",t)}get mode(){return this[Ee]}get host(){return this[Mn]}get clonable(){return this[Gn]}get delegatesFocus(){return this[kl]}get serializable(){return this[Hi]}get slotAssignment(){return this[Ei]}get fullscreenElement(){return null}get pictureInPictureElement(){return null}get pointerLockElement(){return null}get innerHTML(){let t=new ai,e="";for(let o of this[_])e+=t.serializeToString(o);return e}set innerHTML(t){let e=this[_];while(e.length)this.removeChild(e[0]);new Cr(this[m]).parse(t,this)}get adoptedStyleSheets(){return this[Vs]}set adoptedStyleSheets(t){this[Vs]=t}get activeElement(){let t=this[x][Me],e=t?.getRootNode();if(!e||e===this[x])return null;if(e===this)return t;while(e&&e!==this)t=e.host,e=t.getRootNode();return t}getAnimations(){return[]}setHTMLUnsafe(t){let e=this[_];while(e.length)this.removeChild(e[0]);new Cr(this[m]).parse(t,this)}toString(){return this.innerHTML}[ct](t=!1){let e=super[ct](t);return e[Ee]=this[Ee],e[Gn]=this[Gn],e[kl]=this[kl],e[Hi]=this[Hi],e[Ei]=this[Ei],e}}class et extends Gr{[ge]=null;#t=null;get onabort(){return S.getEventListener(this,"onabort")}set onabort(t){this[p].set("onabort",t)}get onanimationend(){return S.getEventListener(this,"onanimationend")}set onanimationend(t){this[p].set("onanimationend",t)}get onanimationiteration(){return S.getEventListener(this,"onanimationiteration")}set onanimationiteration(t){this[p].set("onanimationiteration",t)}get onanimationstart(){return S.getEventListener(this,"onanimationstart")}set onanimationstart(t){this[p].set("onanimationstart",t)}get onauxclick(){return S.getEventListener(this,"onauxclick")}set onauxclick(t){this[p].set("onauxclick",t)}get onblur(){return S.getEventListener(this,"onblur")}set onblur(t){this[p].set("onblur",t)}get oncancel(){return S.getEventListener(this,"oncancel")}set oncancel(t){this[p].set("oncancel",t)}get oncanplay(){return S.getEventListener(this,"oncanplay")}set oncanplay(t){this[p].set("oncanplay",t)}get oncanplaythrough(){return S.getEventListener(this,"oncanplaythrough")}set oncanplaythrough(t){this[p].set("oncanplaythrough",t)}get onchange(){return S.getEventListener(this,"onchange")}set onchange(t){this[p].set("onchange",t)}get onclick(){return S.getEventListener(this,"onclick")}set onclick(t){this[p].set("onclick",t)}get onclose(){return S.getEventListener(this,"onclose")}set onclose(t){this[p].set("onclose",t)}get oncontextmenu(){return S.getEventListener(this,"oncontextmenu")}set oncontextmenu(t){this[p].set("oncontextmenu",t)}get oncopy(){return S.getEventListener(this,"oncopy")}set oncopy(t){this[p].set("oncopy",t)}get oncuechange(){return S.getEventListener(this,"oncuechange")}set oncuechange(t){this[p].set("oncuechange",t)}get oncut(){return S.getEventListener(this,"oncut")}set oncut(t){this[p].set("oncut",t)}get ondblclick(){return S.getEventListener(this,"ondblclick")}set ondblclick(t){this[p].set("ondblclick",t)}get ondrag(){return S.getEventListener(this,"ondrag")}set ondrag(t){this[p].set("ondrag",t)}get ondragend(){return S.getEventListener(this,"ondragend")}set ondragend(t){this[p].set("ondragend",t)}get ondragenter(){return S.getEventListener(this,"ondragenter")}set ondragenter(t){this[p].set("ondragenter",t)}get ondragleave(){return S.getEventListener(this,"ondragleave")}set ondragleave(t){this[p].set("ondragleave",t)}get ondragover(){return S.getEventListener(this,"ondragover")}set ondragover(t){this[p].set("ondragover",t)}get ondragstart(){return S.getEventListener(this,"ondragstart")}set ondragstart(t){this[p].set("ondragstart",t)}get ondrop(){return S.getEventListener(this,"ondrop")}set ondrop(t){this[p].set("ondrop",t)}get ondurationchange(){return S.getEventListener(this,"ondurationchange")}set ondurationchange(t){this[p].set("ondurationchange",t)}get onemptied(){return S.getEventListener(this,"onemptied")}set onemptied(t){this[p].set("onemptied",t)}get onended(){return S.getEventListener(this,"onended")}set onended(t){this[p].set("onended",t)}get onerror(){return S.getEventListener(this,"onerror")}set onerror(t){this[p].set("onerror",t)}get onfocus(){return S.getEventListener(this,"onfocus")}set onfocus(t){this[p].set("onfocus",t)}get onformdata(){return S.getEventListener(this,"onformdata")}set onformdata(t){this[p].set("onformdata",t)}get ongotpointercapture(){return S.getEventListener(this,"ongotpointercapture")}set ongotpointercapture(t){this[p].set("ongotpointercapture",t)}get oninput(){return S.getEventListener(this,"oninput")}set oninput(t){this[p].set("oninput",t)}get oninvalid(){return S.getEventListener(this,"oninvalid")}set oninvalid(t){this[p].set("oninvalid",t)}get onkeydown(){return S.getEventListener(this,"onkeydown")}set onkeydown(t){this[p].set("onkeydown",t)}get onkeypress(){return S.getEventListener(this,"onkeypress")}set onkeypress(t){this[p].set("onkeypress",t)}get onkeyup(){return S.getEventListener(this,"onkeyup")}set onkeyup(t){this[p].set("onkeyup",t)}get onload(){return S.getEventListener(this,"onload")}set onload(t){this[p].set("onload",t)}get onloadeddata(){return S.getEventListener(this,"onloadeddata")}set onloadeddata(t){this[p].set("onloadeddata",t)}get onloadedmetadata(){return S.getEventListener(this,"onloadedmetadata")}set onloadedmetadata(t){this[p].set("onloadedmetadata",t)}get onloadstart(){return S.getEventListener(this,"onloadstart")}set onloadstart(t){this[p].set("onloadstart",t)}get onlostpointercapture(){return S.getEventListener(this,"onlostpointercapture")}set onlostpointercapture(t){this[p].set("onlostpointercapture",t)}get onmousedown(){return S.getEventListener(this,"onmousedown")}set onmousedown(t){this[p].set("onmousedown",t)}get onmouseenter(){return S.getEventListener(this,"onmouseenter")}set onmouseenter(t){this[p].set("onmouseenter",t)}get onmouseleave(){return S.getEventListener(this,"onmouseleave")}set onmouseleave(t){this[p].set("onmouseleave",t)}get onmousemove(){return S.getEventListener(this,"onmousemove")}set onmousemove(t){this[p].set("onmousemove",t)}get onmouseout(){return S.getEventListener(this,"onmouseout")}set onmouseout(t){this[p].set("onmouseout",t)}get onmouseover(){return S.getEventListener(this,"onmouseover")}set onmouseover(t){this[p].set("onmouseover",t)}get onmouseup(){return S.getEventListener(this,"onmouseup")}set onmouseup(t){this[p].set("onmouseup",t)}get onmousewheel(){return S.getEventListener(this,"onmousewheel")}set onmousewheel(t){this[p].set("onmousewheel",t)}get onpaste(){return S.getEventListener(this,"onpaste")}set onpaste(t){this[p].set("onpaste",t)}get onpause(){return S.getEventListener(this,"onpause")}set onpause(t){this[p].set("onpause",t)}get onplay(){return S.getEventListener(this,"onplay")}set onplay(t){this[p].set("onplay",t)}get onplaying(){return S.getEventListener(this,"onplaying")}set onplaying(t){this[p].set("onplaying",t)}get onpointercancel(){return S.getEventListener(this,"onpointercancel")}set onpointercancel(t){this[p].set("onpointercancel",t)}get onpointerdown(){return S.getEventListener(this,"onpointerdown")}set onpointerdown(t){this[p].set("onpointerdown",t)}get onpointerenter(){return S.getEventListener(this,"onpointerenter")}set onpointerenter(t){this[p].set("onpointerenter",t)}get onpointerleave(){return S.getEventListener(this,"onpointerleave")}set onpointerleave(t){this[p].set("onpointerleave",t)}get onpointermove(){return S.getEventListener(this,"onpointermove")}set onpointermove(t){this[p].set("onpointermove",t)}get onpointerout(){return S.getEventListener(this,"onpointerout")}set onpointerout(t){this[p].set("onpointerout",t)}get onpointerover(){return S.getEventListener(this,"onpointerover")}set onpointerover(t){this[p].set("onpointerover",t)}get onpointerrawupdate(){return S.getEventListener(this,"onpointerrawupdate")}set onpointerrawupdate(t){this[p].set("onpointerrawupdate",t)}get onpointerup(){return S.getEventListener(this,"onpointerup")}set onpointerup(t){this[p].set("onpointerup",t)}get onprogress(){return S.getEventListener(this,"onprogress")}set onprogress(t){this[p].set("onprogress",t)}get onratechange(){return S.getEventListener(this,"onratechange")}set onratechange(t){this[p].set("onratechange",t)}get onreset(){return S.getEventListener(this,"onreset")}set onreset(t){this[p].set("onreset",t)}get onresize(){return S.getEventListener(this,"onresize")}set onresize(t){this[p].set("onresize",t)}get onscroll(){return S.getEventListener(this,"onscroll")}set onscroll(t){this[p].set("onscroll",t)}get onscrollend(){return S.getEventListener(this,"onscrollend")}set onscrollend(t){this[p].set("onscrollend",t)}get onscrollsnapchange(){return S.getEventListener(this,"onscrollsnapchange")}set onscrollsnapchange(t){this[p].set("onscrollsnapchange",t)}get onscrollsnapchanging(){return S.getEventListener(this,"onscrollsnapchanging")}set onscrollsnapchanging(t){this[p].set("onscrollsnapchanging",t)}get onsecuritypolicyviolation(){return S.getEventListener(this,"onsecuritypolicyviolation")}set onsecuritypolicyviolation(t){this[p].set("onsecuritypolicyviolation",t)}get onseeked(){return S.getEventListener(this,"onseeked")}set onseeked(t){this[p].set("onseeked",t)}get onseeking(){return S.getEventListener(this,"onseeking")}set onseeking(t){this[p].set("onseeking",t)}get onselect(){return S.getEventListener(this,"onselect")}set onselect(t){this[p].set("onselect",t)}get onselectionchange(){return S.getEventListener(this,"onselectionchange")}set onselectionchange(t){this[p].set("onselectionchange",t)}get onselectstart(){return S.getEventListener(this,"onselectstart")}set onselectstart(t){this[p].set("onselectstart",t)}get onslotchange(){return S.getEventListener(this,"onslotchange")}set onslotchange(t){this[p].set("onslotchange",t)}get onstalled(){return S.getEventListener(this,"onstalled")}set onstalled(t){this[p].set("onstalled",t)}get onsubmit(){return S.getEventListener(this,"onsubmit")}set onsubmit(t){this[p].set("onsubmit",t)}get onsuspend(){return S.getEventListener(this,"onsuspend")}set onsuspend(t){this[p].set("onsuspend",t)}get ontimeupdate(){return S.getEventListener(this,"ontimeupdate")}set ontimeupdate(t){this[p].set("ontimeupdate",t)}get ontoggle(){return S.getEventListener(this,"ontoggle")}set ontoggle(t){this[p].set("ontoggle",t)}get ontransitioncancel(){return S.getEventListener(this,"ontransitioncancel")}set ontransitioncancel(t){this[p].set("ontransitioncancel",t)}get ontransitionend(){return S.getEventListener(this,"ontransitionend")}set ontransitionend(t){this[p].set("ontransitionend",t)}get ontransitionrun(){return S.getEventListener(this,"ontransitionrun")}set ontransitionrun(t){this[p].set("ontransitionrun",t)}get ontransitionstart(){return S.getEventListener(this,"ontransitionstart")}set ontransitionstart(t){this[p].set("ontransitionstart",t)}get onvolumechange(){return S.getEventListener(this,"onvolumechange")}set onvolumechange(t){this[p].set("onvolumechange",t)}get onwaiting(){return S.getEventListener(this,"onwaiting")}set onwaiting(t){this[p].set("onwaiting",t)}get onwheel(){return S.getEventListener(this,"onwheel")}set onwheel(t){this[p].set("onwheel",t)}get ownerSVGElement(){let t=this[W];while(t){if(t[ot]==="svg")return t;t=t[W]}return null}get viewportElement(){return this.ownerSVGElement}get dataset(){return this.#t??=new rm(h,this)}get style(){if(!this[ge])this[ge]=new Kr(h,this[m],{element:this});return this[ge]}get tabIndex(){let t=this.getAttribute("tabindex");return t!==null?Number(t):-1}set tabIndex(t){if(t===-1)this.removeAttribute("tabindex");else this.setAttribute("tabindex",String(t))}blur(){il.blur(this)}focus(){il.focus(this)}}class _u{observe(){}unobserve(){}disconnect(){}}class ul extends vt{width=1024;height=768;availWidth=1024;availHeight=768;colorDepth=24;pixelDepth=24;onchange=null}class ya extends ul{availLeft=0;availTop=0;left=0;top=0;isPrimary=!0;isInternal=!0;devicePixelRatio=1;label=""}class um extends vt{currentScreen;screens;oncurrentscreenchange=null;onscreenschange=null;constructor(){super();let t=new ya;this.currentScreen=t,this.screens=[t]}}class ue{static compareBoundaryPointsPosition(t,e){if(t.node===e.node){if(t.offset===e.offset)return 0;else if(t.offset<e.offset)return-1;return 1}if(ft.isFollowing(t.node,e.node))return this.compareBoundaryPointsPosition(e,t)===-1?1:-1;if(ft.isInclusiveAncestor(t.node,e.node)){let o=e.node;while(o[W]!==t.node)o=o[W];if(o[W][_].indexOf(o)<t.offset)return 1}return-1}static validateBoundaryPoint(t){if(t.node[D]===T.documentTypeNode)throw new re("DocumentType Node can't be used as boundary point.",w.invalidNodeTypeError);if(t.offset>ft.getNodeLength(t.node))throw new re("Offset out of bound.",w.indexSizeError)}static isContained(t,e){return this.compareBoundaryPointsPosition({node:t,offset:0},{node:e.startContainer,offset:e.startOffset})===1&&this.compareBoundaryPointsPosition({node:t,offset:ft.getNodeLength(t)},{node:e.endContainer,offset:e.endOffset})===-1}static isPartiallyContained(t,e){return ft.isInclusiveAncestor(t,e.startContainer)&&!ft.isInclusiveAncestor(t,e.endContainer)||!ft.isInclusiveAncestor(t,e.startContainer)&&ft.isInclusiveAncestor(t,e.endContainer)}}var ag;(function(t){t[t.forwards=1]="forwards",t[t.backwards=-1]="backwards",t[t.directionless=0]="directionless"})(ag||(ag={}));var mi=ag;class pa{#t;#e=null;#r=mi.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)return"None";else if(this.#e.collapsed)return"Caret";return"Range"}get anchorNode(){if(!this.#e)return null;return this.#r===mi.forwards?this.#e.startContainer:this.#e.endContainer}get anchorOffset(){if(!this.#e)return 0;return this.#r===mi.forwards?this.#e.startOffset:this.#e.endOffset}get baseNode(){return this.anchorNode}get baseOffset(){return this.anchorOffset}get focusNode(){if(!this.#e)return null;return this.#r===mi.forwards?this.#e.endContainer:this.#e.startContainer}get focusOffset(){if(!this.#e)return 0;return this.#r===mi.forwards?this.#e.endOffset:this.#e.startOffset}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.");if(!this.#e&&t[x]===this.#t)this.#o(t)}getRangeAt(t){if(!this.#e||t!==0)throw new this.#t[m].DOMException("Invalid range index.",w.indexSizeError);return this.#e}removeRange(t){if(this.#e!==t)throw new this.#t[m].DOMException("Invalid range.",w.notFoundError);this.#o(null)}removeAllRanges(){this.#o(null)}empty(){this.removeAllRanges()}collapse(t,e){if(t===null){this.removeAllRanges();return}if(t[D]===T.documentTypeNode)throw new this.#t[m].DOMException("DocumentType Node can't be used as boundary point.",w.invalidNodeTypeError);if(e>ft.getNodeLength(t))throw new this.#t[m].DOMException("Invalid range index.",w.indexSizeError);if(t!==this.#t&&t[x]!==this.#t)return;let o=new this.#t[m].Range;o[O].node=t,o[O].offset=e,o[Y].node=t,o[Y].offset=e,this.#o(o)}setPosition(t,e){this.collapse(t,e)}collapseToEnd(){if(this.#e===null)throw new this.#t[m].DOMException("There is no selection to collapse.",w.invalidStateError);let{node:t,offset:e}=this.#e[Y],o=new this.#t[m].Range;o[O].node=t,o[O].offset=e,o[Y].node=t,o[Y].offset=e,this.#o(o)}collapseToStart(){if(!this.#e)throw new this.#t[m].DOMException("There is no selection to collapse.",w.invalidStateError);let{node:t,offset:e}=this.#e[O],o=new this.#t[m].Range;o[O].node=t,o[O].offset=e,o[Y].node=t,o[Y].offset=e,this.#o(o)}containsNode(t,e=!1){if(!this.#e||t[x]!==this.#t)return!1;let o=ue.compareBoundaryPointsPosition(this.#e[O],{node:t,offset:0})===-1,s=ue.compareBoundaryPointsPosition(this.#e[Y],{node:t,offset:ft.getNodeLength(t)})===1;return e?o||s:o&&s}deleteFromDocument(){if(this.#e)this.#e.deleteContents()}extend(t,e){if(t!==this.#t&&t[x]!==this.#t)return;if(!this.#e)throw new this.#t[m].DOMException("There is no selection to extend.",w.invalidStateError);let o=this.anchorNode,s=this.anchorOffset,n=new this.#t[m].Range;if(n[O].node=t,n[O].offset=0,n[Y].node=t,n[Y].offset=0,t[x]!==this.#e[x])n[O].offset=e,n[Y].offset=e;else if(ue.compareBoundaryPointsPosition({node:o,offset:s},{node:t,offset:e})<=0)n[O].node=o,n[O].offset=s,n[Y].node=t,n[Y].offset=e;else n[O].node=t,n[O].offset=e,n[Y].node=o,n[Y].offset=s;this.#o(n),this.#r=ue.compareBoundaryPointsPosition({node:t,offset:e},{node:o,offset:s})===-1?mi.backwards:mi.forwards}selectAllChildren(t){if(t[D]===T.documentTypeNode)throw new this.#t[m].DOMException("DocumentType Node can't be used as boundary point.",w.invalidNodeTypeError);if(t!==this.#t&&t[x]!==this.#t)return;let e=t[_].length,o=new this.#t[m].Range;o[O].node=t,o[O].offset=0,o[Y].node=t,o[Y].offset=e,this.#o(o)}setBaseAndExtent(t,e,o,s){if(e>ft.getNodeLength(t)||s>ft.getNodeLength(o))throw new this.#t[m].DOMException("Invalid anchor or focus offset.",w.indexSizeError);if(t!==this.#t&&t[x]!==this.#t||o!==this.#t&&o[x]!==this.#t)return;let n={node:t,offset:e},l={node:o,offset:s},a=new this.#t[m].Range;if(ue.compareBoundaryPointsPosition(n,l)===-1)a[O]=n,a[Y]=l;else a[O]=l,a[Y]=n;this.#o(a),this.#r=ue.compareBoundaryPointsPosition(l,n)===-1?mi.backwards:mi.forwards}toString(){return this.#e?this.#e.toString():""}#o(t){let e=this.#e;if(this.#e=t,this.#r=t===null?mi.directionless:mi.forwards,e!==this.#e)this.#t.dispatchEvent(new N("selectionchange"))}}class hl{[Kt]={};constructor(){let t=this[Kt],e=new fe(this,[hl]);return new Proxy(this,{get:(o,s)=>{if(s in o||typeof s==="symbol")return e.bind(s),o[s];if(s in t)return t[s]},set(o,s,n){if(e.bind(s),s in o||typeof s==="symbol")return!0;return t[String(s)]=String(n),!0},deleteProperty(o,s){if(s in t)return delete t[String(s)],!0;return!1},ownKeys(){return Object.keys(t)},has(o,s){if(s in o||s in t)return!0;return!1},defineProperty(o,s,n){if(e.preventBinding(s),s in o)return Object.defineProperty(o,s,n),!0;if(n.value!==void 0)return t[String(s)]=String(n.value),!0;return!1},getOwnPropertyDescriptor(o,s){if(s in o)return;let n=t[String(s)];if(n!==void 0)return{value:n,writable:!0,enumerable:!0,configurable:!0}}})}get length(){return Object.keys(this[Kt]).length}key(t){let e=Object.keys(this[Kt])[t];return e!==void 0?e:null}setItem(t,e){this[Kt][t]=String(e)}getItem(t){return this[Kt][t]!==void 0?this[Kt][t]:null}removeItem(t){delete this[Kt][t]}clear(){let t=this[Kt];for(let e of Object.keys(t))delete t[e]}}var pe={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};var bS={1:pe.SHOW_ELEMENT,2:pe.SHOW_ATTRIBUTE,3:pe.SHOW_TEXT,4:pe.SHOW_CDATA_SECTION,5:pe.SHOW_ENTITY_REFERENCE,6:pe.SHOW_PROCESSING_INSTRUCTION,7:pe.SHOW_PROCESSING_INSTRUCTION,8:pe.SHOW_COMMENT,9:pe.SHOW_DOCUMENT,10:pe.SHOW_DOCUMENT_TYPE,11:pe.SHOW_DOCUMENT_FRAGMENT,12:pe.SHOW_NOTATION};var ua;(function(t){t.first="first",t.last="last"})(ua||(ua={}));var ha;(function(t){t.next="next",t.previous="previous"})(ha||(ha={}));class hn{root;whatToShow=-1;filter=null;#t=null;constructor(t,e=-1,o=null){if(!(t instanceof st))throw new re("Parameter 1 was not of type Node.");this.root=t,this.whatToShow=e,this.filter=o,this.#t=t}get currentNode(){return this.#t}set currentNode(t){if(!(t instanceof st))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;while(t!==null&&t!==this.root)if(t=t.parentNode,t!==null&&this[Wo](t)===pe.FILTER_ACCEPT)return this.#t=t,this.#t;return null}firstChild(){return this.#e(ua.first)}lastChild(){return this.#e(ua.last)}nextSibling(){return this.#r(ha.next)}previousSibling(){return this.#r(ha.previous)}previousNode(){let t=this.#t;while(t!==this.root){let e=t?.previousSibling||null;while(e!==null){let o=e,s=this[Wo](o);while(s!==pe.FILTER_REJECT&&o[_].length)o=o.lastChild,s=this[Wo](o);if(s===pe.FILTER_ACCEPT)return this.#t=o,o;e=o.previousSibling}if(t===this.root||t.parentNode===null)return null;if(t=t.parentNode,this[Wo](t)===pe.FILTER_ACCEPT)return this.#t=t,t}return null}nextNode(){let t=this.#t,e=pe.FILTER_ACCEPT;if(t===null)return null;while(!0){while(e!==pe.FILTER_REJECT&&t[_].length)if(t=t.firstChild,e=this[Wo](t),e===pe.FILTER_ACCEPT)return this.#t=t,t;while(t!==null){if(t===this.root)return null;let o=t.nextSibling;if(o!==null){t=o;break}t=t.parentNode}if(t===null)return null;if(e=this[Wo](t),e===pe.FILTER_ACCEPT)return this.#t=t,t}}[Wo](t){let e=bS[t.nodeType];if(e&&(this.whatToShow&e)==0)return pe.FILTER_SKIP;if(typeof this.filter==="function")return this.filter(t);if(this.filter)return this.filter.acceptNode(t);return pe.FILTER_ACCEPT}#e(t){let e=this.#t;if(!e)return null;e=t===ua.first?e.firstChild:e.lastChild;while(e!==null){let o=this[Wo](e);if(o===pe.FILTER_ACCEPT)return this.#t=e,e;if(o===pe.FILTER_SKIP){let s=t===ua.first?e.firstChild:e.lastChild;if(s!==null){e=s;continue}}while(e!==null){let s=t===ua.first?e.nextSibling:e.previousSibling;if(s!==null){e=s;break}let n=e.parentNode;if(n===null||n===this.root||n===this.#t)return null;e=n}}return null}#r(t){let e=this.#t;if(!e||e===this.root)return null;while(!0){let o=t===ha.next?e.nextSibling:e.previousSibling;while(o!==null){let s=o,n=this[Wo](s);if(n===pe.FILTER_ACCEPT)return this.#t=s,s;if(o=t===ha.next?s.firstChild:s.lastChild,n===pe.FILTER_REJECT||o===null)o=t===ha.next?s.nextSibling:s.previousSibling}if(e=e.parentNode,e===null||e===this.root)return null;if(this[Wo](e)===pe.FILTER_ACCEPT)return null}}}class ca{#t;#e=-1;#r=null;#o;#i=!0;constructor(t,e=-1,o=null){this.#t=t,this.#e=e,this.#r=o,this.#o=new hn(t,e,o)}get root(){return this.#t}get whatToShow(){return this.#e}get filter(){return this.#r}nextNode(){if(this.#i){if(this.#i=!1,this.#o[Wo](this.#t)!==pe.FILTER_ACCEPT)return this.#o.nextNode();return this.#t}return this.#o.nextNode()}previousNode(){return this.#o.previousNode()}}class Yu{serializeToString(t){return this.#t(t)}#t(t,e=null,o=null){switch(t[D]){case T.elementNode:let s=t,n=s[ot],l="",a=this.#e(s,o),y=s[J]===Ht.html?s[Ft]:this.#r(s,a),u=`${y?y+":":""}${n}`,c=y?e:s[J]||e,d=this.#o(s,y,e,o),g=c===Ht.html&&n==="template"?t.content[_]:t[_];for(let Rt of g)l+=this.#t(Rt,c,a);if(!l&&c===Ht.html&&$e[n.toLowerCase()]?.contentModel===G.noDescendants)return`<${u}${d} />`;if(!l&&c!==Ht.html)return`<${u}${d}/>`;return`<${u}${d}>${l}</${u}>`;case st.DOCUMENT_FRAGMENT_NODE:case st.DOCUMENT_NODE:let f="";if(t[Yn])f+=this.#t(t[Yn],e,new Map(o));for(let Rt of t[_])f+=this.#t(Rt,e,new Map(o));return f;case T.commentNode:return`<!--${t.textContent}-->`;case T.processingInstructionNode:return`<?${t.target} ${t.textContent}?>`;case T.textNode:let E=t.parentElement;if(E){if($e[E[ot]]?.contentModel===G.rawText)return t.textContent}return De.encodeTextContent(t.textContent);case T.documentTypeNode:let R=t,H=R.publicId?" PUBLIC":R.systemId?" SYSTEM":"",pt=R.publicId?` "${R.publicId}"`:"",gt=R.systemId?` "${R.systemId}"`:"";return`<!DOCTYPE ${R.name}${H}${pt}${gt}>`}return""}#e(t,e){let o=new Map(e);for(let s of t[St][Q].values())if(s[J]===Ht.xmlns&&s[Ft])o.set(s[q],s[ot]);return o}#r(t,e){if(t[Ft]&&!t[J])throw Error("Element has a prefix but no namespace.");if(!t[Ft]||!e)return null;let o=e.get(t[J]);if(o)return o;let s=new Set(e.values());if(s.has(t[Ft])){let n=1;while(s.has("n"+n))n++;return e.set(t[J],"n"+n),"n"+n}return e.set(t[J],t[Ft]),t[Ft]}#o(t,e,o,s){let n="",l="",a=new Set;for(let y of t[St][Q].values())if(y[J]===Ht.xmlns)if(e&&y[ot]===e&&t[J])l+=` xmlns:${e}="${De.encodeXMLAttributeValue(t[J])}"`,a.add(t[J]);else if(!e&&y[rt]==="xmlns"&&t[J])l+=` xmlns="${De.encodeXMLAttributeValue(t[J])}"`,a.add(t[J]);else l+=` ${y[rt]}="${De.encodeXMLAttributeValue(y[q])}"`,a.add(y[q]);else n+=` ${y[rt]}="${De.encodeXMLAttributeValue(y[q])}"`;if(t[J]&&o!==t[J]&&!a.has(t[J])){if(e&&!s?.has(t[J]))l+=` xmlns:${e}="${De.encodeXMLAttributeValue(t[J])}"`;else if(!e&&o!==t[J])l+=` xmlns="${De.encodeXMLAttributeValue(t[J])}"`}return l+n}}import{Script as xA}from"vm";var gS=new xA(`
132
132
  this.ArrayBuffer = globalThis.ArrayBuffer;
133
133
  this.Boolean = globalThis.Boolean;
134
134
  this.DataView = globalThis.DataView;
@@ -212,7 +212,7 @@ this.Function = globalThis.Function;
212
212
  `,this.errorIndex=this.startTagIndex;this.readState=Yt.error,this.removeOverflowingTextNodes();return}}if(this.nextElement[Ft]&&!this.nextElement[J]){this.errorMessage=`Namespace prefix ${this.nextElement[Ft]} on name is not defined
213
213
  `,this.errorIndex=this.lastIndex,this.readState=Yt.error;return}if(this.currentNode===this.rootNode&&this.rootNode[bt].length!==0){this.errorMessage=`Extra content at the end of the document
214
214
  `,this.errorIndex=this.lastIndex-this.nextElement[z].length-1,this.readState=Yt.error;return}if(this.currentNode[Et](this.nextElement,!0),!e)if(this.currentNode=this.nextElement,this.nodeStack.push(this.currentNode),this.tagNameStack.push(this.nextTagName),this.currentNode[J]&&!this.currentNode[Ft])this.defaultNamespaceStack.push(this.currentNode[J]);else this.defaultNamespaceStack.push(this.defaultNamespaceStack[this.defaultNamespaceStack.length-1]);this.nextElement=null,this.nextTagName=null,this.readState=Yt.any,this.startTagIndex=this.markupRegExp.lastIndex}parseEndTag(t){if(this.tagNameStack[this.tagNameStack.length-1]===t)return this.nodeStack.pop(),this.tagNameStack.pop(),this.namespacePrefixStack.pop(),this.defaultNamespaceStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode,!0;return!1}parseError(t,e){let o=this.rootNode.documentElement;if(!o){let y=this.rootNode.createElementNS(Ht.html,"html"),u=this.rootNode.createElementNS(Ht.html,"body");y.appendChild(u),o=u,this.rootNode[Et](y,!0)}let s=t.split(`
215
- `),n=s[s.length-1].length+1,l=`error on line ${s.length} at column ${n}: ${e||"Unknown error"}`,a=this.rootNode.createElementNS(Ht.html,"parsererror");a.setAttribute("style","display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black"),a.innerHTML=`<h3>This page contains the following errors:</h3><div style="font-family:monospace;font-size:12px">${l}</div><h3>Below is a rendering of the page up to the first error.</h3>`,o.insertBefore(a,o.firstChild)}removeOverflowingTextNodes(){if(this.currentNode&&this.currentNode!==this.rootNode)while(this.currentNode.lastChild?.[D]===st.TEXT_NODE)this.currentNode.removeChild(this.currentNode.lastChild)}getDocumentType(t){if(!t.toUpperCase().startsWith("DOCTYPE"))return null;let e=t.split(oh);if(e.length<=1)return null;let o=e.slice(1).join(" "),s=[],n=new RegExp(MA,"gm"),l=o.toUpperCase().includes("PUBLIC"),a;while(a=n.exec(o))s.push(a[1]);let y=l?s[0]||"":"",u=l?s[1]||"":s[0]||"";return{name:e[1].toLowerCase(),publicId:y,systemId:u}}}class sh{parseFromString(t,e){if(!e)throw new this[m].DOMException('Second parameter "mimeType" is mandatory.');let o=this[m];switch(e){case"text/html":let s=new o.HTMLDocument;return s[Lr]=o,new Cr(this[m]).parse(t,s);case"image/svg+xml":case"text/xml":case"application/xml":case"application/xhtml+xml":return new ih(this[m]).parse(t);default:throw new o.DOMException(`Unknown mime type "${e}".`)}}}var hg;(function(t){t[t.endToEnd=2]="endToEnd",t[t.endToStart=3]="endToStart",t[t.startToEnd=1]="startToEnd",t[t.startToStart=0]="startToStart"})(hg||(hg={}));var er=hg;class nh{static END_TO_END=er.endToEnd;static END_TO_START=er.endToStart;static START_TO_END=er.startToEnd;static START_TO_START=er.startToStart;END_TO_END=er.endToEnd;END_TO_START=er.endToStart;START_TO_END=er.startToEnd;START_TO_START=er.startToStart;[O];[Y];[x];constructor(){let t=this[m];if(!t)throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);this[x]=t.document,this[O]={node:t.document,offset:0},this[Y]={node:t.document,offset:0}}get startContainer(){return this[O].node}get endContainer(){return this[Y].node}get startOffset(){if(this[O].offset>0){let t=ft.getNodeLength(this[O].node);if(this[O].offset>t)this[O].offset=t}return this[O].offset}get endOffset(){if(this[Y].offset>0){let t=ft.getNodeLength(this[Y].node);if(this[Y].offset>t)this[Y].offset=t}return this[Y].offset}get collapsed(){return this[O].node===this[Y].node&&this.startOffset===this.endOffset}get commonAncestorContainer(){let t=this[O].node;while(t){if(ft.isInclusiveAncestor(t,this[Y].node))return t;t=t[W]}return null}collapse(t=!1){if(t)this[Y]=Object.assign({},this[O]);else this[O]=Object.assign({},this[Y])}compareBoundaryPoints(t,e){if(t!==er.startToStart&&t!==er.startToEnd&&t!==er.endToEnd&&t!==er.endToStart)throw new this[m].DOMException(`The comparison method provided must be one of '${er.startToStart}', '${er.startToEnd}', '${er.endToEnd}' or '${er.endToStart}'.`,w.notSupportedError);if(this[x]!==e[x])throw new this[m].DOMException("The two Ranges are not in the same tree.",w.wrongDocumentError);let o={node:null,offset:0},s={node:null,offset:0};switch(t){case er.startToStart:o.node=this[O].node,o.offset=this.startOffset,s.node=e[O].node,s.offset=e.startOffset;break;case er.startToEnd:o.node=this[Y].node,o.offset=this.endOffset,s.node=e[O].node,s.offset=e.startOffset;break;case er.endToEnd:o.node=this[Y].node,o.offset=this.endOffset,s.node=e[Y].node,s.offset=e.endOffset;break;case er.endToStart:o.node=this[O].node,o.offset=this.startOffset,s.node=e[Y].node,s.offset=e.endOffset;break}return ue.compareBoundaryPointsPosition(o,s)}comparePoint(t,e){if(t[x]!==this[x])throw new this[m].DOMException("The two Ranges are not in the same tree.",w.wrongDocumentError);ue.validateBoundaryPoint({node:t,offset:e});let o={node:t,offset:e};if(ue.compareBoundaryPointsPosition(o,{node:this[O].node,offset:this.startOffset})===-1)return-1;else if(ue.compareBoundaryPointsPosition(o,{node:this[Y].node,offset:this.endOffset})===1)return 1;return 0}cloneContents(){let t=this[m],e=this[x].createDocumentFragment(),o=this.startOffset,s=this.endOffset;if(this.collapsed)return e;if(this[O].node===this[Y].node&&(this[O].node[D]===T.textNode||this[O].node[D]===T.processingInstructionNode||this[O].node[D]===T.commentNode)){let u=this[O].node.cloneNode(!1);return u[Kt]=u.substringData(o,s-o),e.appendChild(u),e}let n=this[O].node;while(!ft.isInclusiveAncestor(n,this[Y].node))n=n[W];let l=null;if(!ft.isInclusiveAncestor(this[O].node,this[Y].node)){let u=n.firstChild;while(!l){if(ue.isPartiallyContained(u,this))l=u;u=u.nextSibling}}let a=null;if(!ft.isInclusiveAncestor(this[Y].node,this[O].node)){let u=n.lastChild;while(!a){if(ue.isPartiallyContained(u,this))a=u;u=u.previousSibling}}let y=[];for(let u of n[_])if(ue.isContained(u,this)){if(u[D]===T.documentTypeNode)throw new t.DOMException("Invalid document type element.",w.hierarchyRequestError);y.push(u)}if(l!==null&&(l[D]===T.textNode||l[D]===T.processingInstructionNode||l[D]===T.commentNode)){let u=this[O].node.cloneNode(!1);u[Kt]=u.substringData(o,ft.getNodeLength(this[O].node)-o),e.appendChild(u)}else if(l!==null){let u=l.cloneNode();e.appendChild(u);let c=new t.Range;c[O].node=this[O].node,c[O].offset=o,c[Y].node=l,c[Y].offset=ft.getNodeLength(l);let d=c.cloneContents();u.appendChild(d)}for(let u of y){let c=u.cloneNode(!0);e.appendChild(c)}if(a!==null&&(a[D]===T.textNode||a[D]===T.processingInstructionNode||a[D]===T.commentNode)){let u=this[Y].node.cloneNode(!1);u[Kt]=u.substringData(0,s),e.appendChild(u)}else if(a!==null){let u=a.cloneNode(!1);e.appendChild(u);let c=new t.Range;c[O].node=a,c[O].offset=0,c[Y].node=this[Y].node,c[Y].offset=s;let d=c.cloneContents();u.appendChild(d)}return e}cloneRange(){let t=new this[m].Range;return t[O].node=this[O].node,t[O].offset=this[O].offset,t[Y].node=this[Y].node,t[Y].offset=this[Y].offset,t}createContextualFragment(t){return new Cr(this[m]).parse(t)}deleteContents(){let t=this.startOffset,e=this.endOffset;if(this.collapsed)return;if(this[O].node===this[Y].node&&(this[O].node[D]===T.textNode||this[O].node[D]===T.processingInstructionNode||this[O].node[D]===T.commentNode)){this[O].node.replaceData(t,e-t,"");return}let o=[],s=this[O].node,n=ft.nextDescendantNode(this[Y].node);while(s&&s!==n){if(ue.isContained(s,this)&&!ue.isContained(s[W],this))o.push(s);s=ft.following(s)}let l,a;if(ft.isInclusiveAncestor(this[O].node,this[Y].node))l=this[O].node,a=t;else{let y=this[O].node;while(y&&!ft.isInclusiveAncestor(y[W],this[Y].node))y=y[W];l=y[W],a=y[W][_].indexOf(y)+1}if(this[O].node[D]===T.textNode||this[O].node[D]===T.processingInstructionNode||this[O].node[D]===T.commentNode)this[O].node.replaceData(this.startOffset,ft.getNodeLength(this[O].node)-this.startOffset,"");for(let y of o)y[W].removeChild(y);if(this[Y].node[D]===T.textNode||this[Y].node[D]===T.processingInstructionNode||this[Y].node[D]===T.commentNode)this[Y].node.replaceData(0,e,"");this[O].node=l,this[O].offset=a,this[Y].node=l,this[Y].offset=a}detach(){}extractContents(){let t=this[m],e=this[x].createDocumentFragment(),o=this.startOffset,s=this.endOffset;if(this.collapsed)return e;if(this[O].node===this[Y].node&&(this[O].node[D]===T.textNode||this[O].node[D]===T.processingInstructionNode||this[O].node[D]===T.commentNode)){let d=this[O].node.cloneNode(!1);return d[Kt]=d.substringData(o,s-o),e.appendChild(d),this[O].node.replaceData(o,s-o,""),e}let n=this[O].node;while(!ft.isInclusiveAncestor(n,this[Y].node))n=n[W];let l=null;if(!ft.isInclusiveAncestor(this[O].node,this[Y].node)){let d=n.firstChild;while(!l){if(ue.isPartiallyContained(d,this))l=d;d=d.nextSibling}}let a=null;if(!ft.isInclusiveAncestor(this[Y].node,this[O].node)){let d=n.lastChild;while(!a){if(ue.isPartiallyContained(d,this))a=d;d=d.previousSibling}}let y=[];for(let d of n[_])if(ue.isContained(d,this)){if(d[D]===T.documentTypeNode)throw new this[m].DOMException("Invalid document type element.",w.hierarchyRequestError);y.push(d)}let u,c;if(ft.isInclusiveAncestor(this[O].node,this[Y].node))u=this[O].node,c=o;else{let d=this[O].node;while(d&&!ft.isInclusiveAncestor(d[W],this[Y].node))d=d[W];u=d[W],c=d[W][_].indexOf(d)+1}if(l!==null&&(l[D]===T.textNode||l[D]===T.processingInstructionNode||l[D]===T.commentNode)){let d=this[O].node.cloneNode(!1);d[Kt]=d.substringData(o,ft.getNodeLength(this[O].node)-o),e.appendChild(d),this[O].node.replaceData(o,ft.getNodeLength(this[O].node)-o,"")}else if(l!==null){let d=l.cloneNode(!1);e.appendChild(d);let g=new t.Range;g[O].node=this[O].node,g[O].offset=o,g[Y].node=l,g[Y].offset=ft.getNodeLength(l);let f=g.extractContents();d.appendChild(f)}for(let d of y)e.appendChild(d);if(a!==null&&(a[D]===T.textNode||a[D]===T.processingInstructionNode||a[D]===T.commentNode)){let d=this[Y].node.cloneNode(!1);d[Kt]=d.substringData(0,s),e.appendChild(d),this[Y].node.replaceData(0,s,"")}else if(a!==null){let d=a.cloneNode(!1);e.appendChild(d);let g=new t.Range;g[O].node=a,g[O].offset=0,g[Y].node=this[Y].node,g[Y].offset=s;let f=g.extractContents();d.appendChild(f)}return this[O].node=u,this[O].offset=c,this[Y].node=u,this[Y].offset=c,e}getBoundingClientRect(){return new li}getClientRects(){return new em(h)}isPointInRange(t,e=0){if(t[x]!==this[x])return!1;let o={node:t,offset:e};if(ue.validateBoundaryPoint(o),ue.compareBoundaryPointsPosition(o,{node:this[O].node,offset:this.startOffset})===-1||ue.compareBoundaryPointsPosition(o,{node:this[Y].node,offset:this.endOffset})===1)return!1;return!0}insertNode(t){if(this[O].node[D]===T.processingInstructionNode||this[O].node[D]===T.commentNode||this[O].node[D]===T.textNode&&!this[O].node[W]||t===this[O].node)throw new this[m].DOMException("Invalid start node.",w.hierarchyRequestError);let e=this[O].node[D]===T.textNode?this[O].node:this[O].node[_][this.startOffset]||null,o=!e?this[O].node:e[W];if(this[O].node[D]===T.textNode)e=this[O].node.splitText(this.startOffset);if(t===e)e=e.nextSibling;let s=t[W];if(s)s.removeChild(t);let n=!e?ft.getNodeLength(o):e[W][_].indexOf(e);if(n+=t[D]===T.documentFragmentNode?ft.getNodeLength(t):1,o.insertBefore(t,e),this.collapsed)this[Y].node=o,this[Y].offset=n}intersectsNode(t){if(t[x]!==this[x])return!1;let e=t[W];if(!e)return!0;let o=e[_].indexOf(t);return ue.compareBoundaryPointsPosition({node:e,offset:o},{node:this[Y].node,offset:this.endOffset})===-1&&ue.compareBoundaryPointsPosition({node:e,offset:o+1},{node:this[O].node,offset:this.startOffset})===1}selectNode(t){if(!t[W])throw new this[m].DOMException("The given Node has no parent.",w.invalidNodeTypeError);let e=t[W][_].indexOf(t);this[O].node=t[W],this[O].offset=e,this[Y].node=t[W],this[Y].offset=e+1}selectNodeContents(t){if(t[D]===T.documentTypeNode)throw new this[m].DOMException("DocumentType Node can't be used as boundary point.",w.invalidNodeTypeError);this[O].node=t,this[O].offset=0,this[Y].node=t,this[Y].offset=ft.getNodeLength(t)}setEnd(t,e=0){ue.validateBoundaryPoint({node:t,offset:e});let o={node:t,offset:e};if(t[x]!==this[x]||ue.compareBoundaryPointsPosition(o,{node:this[O].node,offset:this.startOffset})===-1)this[O].node=t,this[O].offset=e;this[Y].node=t,this[Y].offset=e}setStart(t,e=0){ue.validateBoundaryPoint({node:t,offset:e});let o={node:t,offset:e};if(t[x]!==this[x]||ue.compareBoundaryPointsPosition(o,{node:this[Y].node,offset:this.endOffset})===1)this[Y].node=t,this[Y].offset=e;this[O].node=t,this[O].offset=e}setEndAfter(t){if(!t[W])throw new this[m].DOMException("The given Node has no parent.",w.invalidNodeTypeError);this.setEnd(t[W],t[W][_].indexOf(t)+1)}setEndBefore(t){if(!t[W])throw new this[m].DOMException("The given Node has no parent.",w.invalidNodeTypeError);this.setEnd(t[W],t[W][_].indexOf(t))}setStartAfter(t){if(!t[W])throw new this[m].DOMException("The given Node has no parent.",w.invalidNodeTypeError);this.setStart(t[W],t[W][_].indexOf(t)+1)}setStartBefore(t){if(!t[W])throw new this[m].DOMException("The given Node has no parent.",w.invalidNodeTypeError);this.setStart(t[W],t[W][_].indexOf(t))}surroundContents(t){let e=this.commonAncestorContainer;if(!e)return;let o=ft.nextDescendantNode(e);while(e&&e!==o){if(e[D]!==T.textNode&&ue.isPartiallyContained(e,this))throw new this[m].DOMException("The Range has partially contains a non-Text node.",w.invalidStateError);e=ft.following(e)}if(t[D]===T.documentNode||t[D]===T.documentTypeNode||t[D]===T.documentFragmentNode)throw new this[m].DOMException("Invalid element type.",w.invalidNodeTypeError);let s=this.extractContents();while(t.firstChild)t.removeChild(t.firstChild);this.insertNode(t),t.appendChild(s),this.selectNode(t)}toString(){let t=this.startOffset,e=this.endOffset,o="";if(this[O].node===this[Y].node&&this[O].node[D]===T.textNode)return this[O].node.data.slice(t,e);if(this[O].node[D]===T.textNode)o+=this[O].node.data.slice(t);let s=ft.nextDescendantNode(this[Y].node),n=this[O].node;while(n&&n!==s){if(n[D]===T.textNode&&ue.isContained(n,this))o+=n.data;n=ft.following(n)}if(this[Y].node[D]===T.textNode)o+=this[Y].node.data.slice(0,e);return o}}class da extends vt{id="";startTime=0;endTime=0;pauseOnExit=!1;[Ia]=null;onenter=null;onexit=null;constructor(t){super();if(t!==h)throw TypeError("Illegal constructor");if(!this[m])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get track(){return this[Ia]}}class lh extends da{region=null;vertical="";snapToLines=!0;line=0;lineAlign="";position="auto";positionAlign="auto";size=100;align="";text="";constructor(t,e,o){super(h);let s=this[m],n=0;if(t!==void 0)n++;if(e!==void 0)n++;if(o!==void 0)n++;if(n<3)throw new s.TypeError(`Failed to construct 'VTTCue': 3 arguments required, but only ${n} present.`);if(t=Number(t),e=Number(e),isNaN(t)||isNaN(e))throw new s.TypeError("Failed to construct 'VTTCue': The provided double value is non-finite.");this.startTime=t,this.endTime=e,this.text=String(o)}getCueAsHTML(){let t=this[m],e=t.document.createDocumentFragment();return e.appendChild(t.document.createTextNode(this.text)),e}}class hm extends vt{[xo]=Ps.subtitles;[Us]="";[Il]="";[Bm]="";[Ee]="disabled";[Ml]=new pl(h);[fb]=new pl(h);oncuechange=null;constructor(t){super();if(t!==h)throw TypeError("Illegal constructor");if(!this[m])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[xo]}get label(){return this[Us]}get language(){return this[Il]}get id(){return this[Bm]}get mode(){return this[Ee]}set mode(t){if(t!=="disabled"&&t!=="showing")return;this[Ee]=t}get cues(){if(this[Ee]==="disabled")return null;return this[Ml]}get activeCues(){if(this[Ee]==="disabled")return null;return this[fb]}addCue(t){if(this[Ml].includes(t))return;t[Ia]=this,this[Ml].push(t)}removeCue(t){let e=this[Ml].indexOf(t);if(e!==-1)t[Ia]=null,this[Ml].splice(e,1)}}class cm extends vt{[Q]=[];onaddtrack=null;onchange=null;onremovetrack=null;constructor(t,e){super();if(t!==h)throw TypeError("Illegal constructor");this[Q]=e;let o=new fe(this,[cm,vt]);return new Proxy(this,{get:(s,n)=>{if(n==="length")return e.length;if(n in s||typeof n==="symbol")return o.bind(n),s[n];let l=Number(n);if(!isNaN(l))return e[l]},set(s,n,l){if(o.bind(n),typeof n==="symbol")return s[n]=l,!0;let a=Number(n);if(isNaN(a))s[n]=l;return!0},deleteProperty(s,n){if(typeof n==="symbol")return delete s[n],!0;let l=Number(n);if(isNaN(l))delete s[n];return!0},ownKeys(){return Object.keys(e)},has(s,n){if(n in s)return!0;if(typeof n==="symbol")return!1;let l=Number(n);return!isNaN(l)&&l>=0&&l<e.length},defineProperty(s,n,l){if(o.preventBinding(n),n in s)return Object.defineProperty(s,n,l),!0;return!1},getOwnPropertyDescriptor(s,n){if(n in s||typeof n==="symbol")return;let l=Number(n);if(!isNaN(l)&&e[l])return{value:e[l],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Q].length}get[Symbol.toStringTag](){return"TextTrackList"}toLocaleString(){return"[object TextTrackList]"}toString(){return"[object TextTrackList]"}[Symbol.iterator](){return this[Q][Symbol.iterator]()}getTrackById(t){for(let e of this[Q])if(e.id===t)return e;return null}}class ah extends vt{[Pb]="disconnected";onconnecting=null;onconnect=null;ondisconnect=null;get state(){return this[Pb]}async watchAvailability(){}cancelWatchAvailability(){}prompt(){}}var kS=i(LS(),1);var bg;(function(t){t[t.empty=0]="empty",t[t.loading=1]="loading",t[t.done=2]="done"})(bg||(bg={}));var dn=bg;var gg;(function(t){t.buffer="buffer",t.binaryString="binaryString",t.dataURL="dataURL",t.text="text"})(gg||(gg={}));var bn=gg;var Sg;(function(t){t.abort="abort",t.error="error",t.load="load",t.loadstart="loadstart",t.loadend="loadend",t.progress="progress"})(Sg||(Sg={}));var ba=Sg;import{Buffer as JA}from"buffer";class yh extends vt{error=null;result=null;readyState=dn.empty;onabort=null;onerror=null;onload=null;onloadstart=null;onloadend=null;onprogress=null;#t=!1;#e=null;#r=null;constructor(){super();if(!this[m])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}readAsArrayBuffer(t){if(!(t instanceof ie))throw new this[m].TypeError("Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#o(t,bn.buffer)}readAsBinaryString(t){if(!(t instanceof ie))throw new this[m].TypeError("Failed to execute 'readAsBinaryString' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#o(t,bn.binaryString)}readAsDataURL(t){if(!(t instanceof ie))throw new this[m].TypeError("Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#o(t,bn.dataURL)}readAsText(t,e=null){if(!(t instanceof ie))throw new this[m].TypeError("Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#o(t,bn.text,e||"UTF-8")}abort(){let t=this[m];if(this.#e)t.clearTimeout(this.#e);if(this.#r)t.clearTimeout(this.#r);if(this.readyState===dn.empty||this.readyState===dn.done){this.result=null;return}if(this.readyState===dn.loading)this.readyState=dn.done,this.result=null;this.#t=!0,this.dispatchEvent(new Io(ba.abort)),this.dispatchEvent(new Io(ba.loadend))}#o(t,e,o=null){let s=this[m];if(this.readyState===dn.loading)throw new s.DOMException("The object is in an invalid state.",w.invalidStateError);this.readyState=dn.loading,this.#e=s.setTimeout(()=>{if(this.#t){this.#t=!1;return}this.dispatchEvent(new Io(ba.loadstart));let n=t[Nt];if(!n)n=JA.alloc(0);this.dispatchEvent(new Io(ba.loadstart,{lengthComputable:!isNaN(t.size),total:t.size,loaded:n.length})),this.#r=s.setTimeout(()=>{if(this.#t){this.#t=!1;return}switch(e){default:case bn.buffer:{this.result=new Uint8Array(n).buffer;break}case bn.binaryString:{this.result=n.toString("binary");break}case bn.dataURL:{let l=kS.default.parse(t.type)||"application/octet-stream";this.result=`data:${l};base64,${n.toString("base64")}`;break}case bn.text:{this.result=new TextDecoder(o||"UTF-8").decode(n);break}}this.readyState=dn.done,this.dispatchEvent(new Io(ba.load)),this.dispatchEvent(new Io(ba.loadend))})})}}import ZA from"crypto";var tw={aspectRatio:{max:300,min:0.006666666666666667},deviceId:"",facingMode:[],frameRate:{max:60,min:0},height:{max:150,min:1},resizeMode:["none","crop-and-scale"],width:{max:300,min:1}},ew={deviceId:"",frameRate:60,resizeMode:"none"};class ga extends vt{contentHint="";enabled=!0;id=ZA.randomUUID();muted=!1;readyState="live";label="";[Us]="";[xo]="video";[ka]={};[Pi]=JSON.parse(JSON.stringify(tw));[In]=JSON.parse(JSON.stringify(ew));onended=null;onmute=null;onunmute=null;constructor(t){super();if(t!==h)throw TypeError("Illegal constructor");if(!this[m])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[xo]}async applyConstraints(t){this.#t(this[ka],t)}getConstraints(){return this[ka]}getCapabilities(){return this[Pi]}getSettings(){return this[In]}clone(){let t=new this.constructor(h);return t[xo]=this[xo],t[ka]=this[ka],t[Pi]=this[Pi],t[In]=this[In],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 o in e)if(e[o]!==null&&typeof e[o]==="object"&&!Array.isArray(e[o])){if(typeof t[o]!=="object")t[o]={};this.#t(t[o],e[o])}else t[o]=e[o]}}class Fc extends ga{[Om];constructor(t,e){super(t);this[Om]=e}get canvas(){return this[Om]}requestFrame(){}clone(){let t=super.clone();return t[Om]=this.canvas,t}}var fg;(function(t){t[t.connecting=0]="connecting",t[t.open=1]="open",t[t.closing=2]="closing",t[t.closed=3]="closed"})(fg||(fg={}));var Po=fg;import rw from"ws";var ow=/^[!#$%&'*+\-.^_`|~\dA-Za-z]+$/;class ph extends vt{static CONNECTING=Po.connecting;static OPEN=Po.open;static CLOSING=Po.closing;static CLOSED=Po.closed;#t=Po.closed;#e="";#r="blob";#o=null;#i;[vr]=null;constructor(t,e){super();let o=this[m],s;try{s=new URL(t)}catch{throw new o.DOMException(`The URL '${t}' is invalid.`,w.syntaxError)}if(s.protocol!=="ws:"&&s.protocol!=="wss:")throw new o.DOMException(`The URL's protocol must be either 'ws' or 'wss'. '${s.protocol}' is not allowed.`,w.syntaxError);if(s.hash)s.hash="";let n=new Set,l=e!==void 0?Array.isArray(e)?e:[e]:[];for(let a of l){if(!this.#u(a))throw new o.DOMException(`The subprotocol '${a}' is invalid.`,w.syntaxError);if(n.has(a))throw new o.DOMException(`The subprotocol '${a}' is duplicated.`,w.syntaxError);n.add(a)}this.#i=s,this.#s(s,l)}get readyState(){return this.#t}get extensions(){return this.#e}get binaryType(){return this.#r}set binaryType(t){if(t!=="blob"&&t!=="arraybuffer")return;this.#r=t}get protocol(){return this[vr]?.protocol||""}get url(){return this.#i.href}close(t,e){let o=this[m];if(t!==void 0&&t!==1000&&!(t>=3000&&t<=4999))throw new o.DOMException(`The code must be either 1000, or between 3000 and 4999. ${t} is neither.`,w.invalidAccessError);if(e!==void 0&&Buffer.byteLength(e,"utf8")>123)throw new o.DOMException("The message must not be greater than 123 bytes.",w.syntaxError);this.#l(t,e?Buffer.from(e):void 0)}send(t){let e=this[m];if(this.#t===Po.connecting)throw new e.DOMException("Still in CONNECTING state.",w.invalidStateError);if(this.#t!==Po.open)return;if(typeof t==="string"){this[vr]?.send(t,{binary:!1});return}let o;if(t instanceof ArrayBuffer)o=Buffer.from(new Uint8Array(t));else if(t instanceof ie)o=t[Nt];else if(t instanceof Buffer)o=t;else if(ArrayBuffer.isView(t))o=Buffer.from(new Uint8Array(t.buffer,t.byteOffset,t.byteLength));else o=Buffer.from(String(t));this[vr]?.send(o,{binary:!0})}[At](){super[At](),this.#l(1001)}#s(t,e){let o=this[m],s=new it(o).getBrowserContext();if(!s)return;let n=new URL(o.location.href),l=s.cookieContainer.getCookies(n,!1);this.#t=Po.connecting,this[vr]=new rw(t,e,{headers:{"user-agent":o.navigator.userAgent,cookie:oi.cookiesToString(l),origin:n.origin},rejectUnauthorized:!s.browser.settings.fetch.disableStrictSSL}),this[vr].once("open",()=>{this.#m()}),this[vr].on("message",this.#y.bind(this)),this[vr].once("close",(a,y)=>{this.#a(a,y)}),this[vr].once("upgrade",({headers:a})=>{if(a["set-cookie"]!==void 0){let y=Array.isArray(a["set-cookie"])?a["set-cookie"]:[a["set-cookie"]];for(let u of y){let c=oi.stringToCookie(n,u);if(c)s.cookieContainer.addCookies([c])}}}),this[vr].once("error",(a)=>{this.#o=a}),o[Qn].push(this)}#l(t,e){if(this.readyState===Po.connecting)if(this[vr])this[vr].terminate();else this.#t=Po.closing;else if(this[vr]&&this.readyState===Po.open)this[vr].close(t,e);this[vr]=null}#m(){if(this[vr]?.extensions)this.#e=Object.keys(this[vr].extensions).join(", ");this.#t=Po.open,this.dispatchEvent(new this[m].Event("open"))}#a(t,e){let o=this[m],s=o[Qn].indexOf(this);if(s!==-1)o[Qn].splice(s,1);this.#t=Po.closed,this.dispatchEvent(new this[m].CloseEvent("close",{wasClean:this.#o===null,code:t,reason:e.toString()}))}#y(t,e){if(this.#t!==Po.open)return;let o=this[m],s;if(e)switch(this.binaryType){case"arraybuffer":if(t instanceof o.ArrayBuffer)s=t;else if(Array.isArray(t))s=this.#p(Buffer.concat(t));else s=this.#p(t);break;case"blob":default:if(!Array.isArray(t))t=[t];s=new o.Blob(t);break}else s=String(t);this.dispatchEvent(new o.MessageEvent("message",{data:s,origin:this.#i.origin}))}#p(t){let o=new this[m].ArrayBuffer(t.byteLength);return new Uint8Array(o).set(t),o}#u(t){return ow.test(t)}}class Vc{static extendClasses(t){class e extends cn{}e.prototype[m]=t,t.Document=e;class o extends Ku{}o.prototype[m]=t,t.HTMLDocument=o;class s extends Qu{}s.prototype[m]=t,t.XMLDocument=s;class n extends ma{}n.prototype[m]=t,t.DocumentFragment=n;class l extends ju{}l.prototype[m]=t,t.Text=l;class a extends qu{}a.prototype[m]=t,t.Comment=a;class y extends $u{}y.prototype[m]=t,t.Image=y;class u extends Nc{}u.prototype[m]=t,t.Audio=u;class c extends Xu{}c.prototype[m]=t,t.MutationObserver=c;class d extends kc{}d.prototype[m]=t,t.MessagePort=d;class g extends Ju{}g.prototype[m]=t,t.CSSStyleSheet=g;class f extends re{}t.DOMException=f;class E extends vi{}E.prototype[m]=t,t.Headers=E;class R extends Ni{}R.prototype[m]=t,t.Request=R;class H extends Ro{}H.prototype[m]=t,H[m]=t,t.Response=H;class pt extends vt{}pt.prototype[m]=t,t.EventTarget=pt;class gt extends Mc{}gt.prototype[m]=t,t.XMLHttpRequestUpload=gt;class Rt extends cl{}Rt.prototype[m]=t,t.XMLHttpRequestEventTarget=Rt;class lt extends Zu{}lt.prototype[m]=t,t.AbortController=lt;class dt extends th{}dt.prototype[m]=t,dt[m]=t,t.AbortSignal=dt;class ee extends ra{}ee.prototype[m]=t,t.FormData=ee;class Ct extends eh{}Ct.prototype[m]=t,t.PermissionStatus=Ct;class or extends Ic{}or.prototype[m]=t,t.XMLHttpRequest=or;class Ye extends sh{}Ye.prototype[m]=t,t.DOMParser=Ye;class Hr extends nh{}Hr.prototype[m]=t,t.Range=Hr;class zr extends lh{}zr.prototype[m]=t,t.VTTCue=zr;class Ts extends hm{}Ts.prototype[m]=t,t.TextTrack=Ts;class hi extends cm{}hi.prototype[m]=t,t.TextTrackList=hi;class fa extends da{}fa.prototype[m]=t,t.TextTrackCue=fa;class Bo extends ah{}Bo.prototype[m]=t,t.RemotePlayback=Bo;class Pa extends yh{}Pa.prototype[m]=t,t.FileReader=Pa;class xm extends nl{}xm.prototype[m]=t,t.MediaStream=xm;class Ue extends ga{}Ue.prototype[m]=t,t.MediaStreamTrack=Ue;class Jr extends Fc{}Jr.prototype[m]=t,t.CanvasCaptureMediaStreamTrack=Jr;class Cs extends Le{}Cs.prototype[m]=t,t.URL=Cs;class vm extends ph{}vm.prototype[m]=t,t.WebSocket=vm}}class Dc{[k]=0;[M]=0;[Ir]=0;[Rl]=1;constructor(t,e,o,s){this[k]=t!==void 0&&t!==null?Number(t):0,this[M]=e!==void 0&&e!==null?Number(e):0,this[Ir]=o!==void 0&&o!==null?Number(o):0,this[Rl]=s!==void 0&&s!==null?Number(s):1}get x(){return this[k]}get y(){return this[M]}get z(){return this[Ir]}get w(){return this[Rl]}toJSON(){return{x:this.x,y:this.y,z:this.z,w:this.w}}static fromPoint(t){if(!t)return new this;return new this(t.x??null,t.y??null,t.z??null,t.w??null)}}class dm extends Dc{set x(t){this[k]=t}get x(){return this[k]}set y(t){this[M]=t}get y(){return this[M]}set z(t){this[Ir]=t}get z(){return this[Ir]}set w(t){this[Rl]=t}get w(){return this[Rl]}}var bm={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:!0,isIdentity:!0},iw=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,sw=/[\s,]+/;class dl{[kt]=1;[Dt]=0;[zt]=0;[Jt]=0;[Mt]=0;[Bt]=1;[Zt]=0;[te]=0;[Wt]=0;[jt]=0;[qt]=1;[_t]=0;[It]=0;[Ot]=0;[$t]=0;[Xt]=1;constructor(t){if(t)this[Ra](t)}get a(){return this[kt]}get b(){return this[Dt]}get c(){return this[Mt]}get d(){return this[Bt]}get e(){return this[It]}get f(){return this[Ot]}get m11(){return this[kt]}get m12(){return this[Dt]}get m13(){return this[zt]}get m14(){return this[Jt]}get m21(){return this[Mt]}get m22(){return this[Bt]}get m23(){return this[Zt]}get m24(){return this[te]}get m31(){return this[Wt]}get m32(){return this[jt]}get m33(){return this[qt]}get m34(){return this[_t]}get m41(){return this[It]}get m42(){return this[Ot]}get m43(){return this[$t]}get m44(){return this[Xt]}get isIdentity(){return this[kt]===1&&this[Dt]===0&&this[zt]===0&&this[Jt]===0&&this[Mt]===0&&this[Bt]===1&&this[Zt]===0&&this[te]===0&&this[Wt]===0&&this[jt]===0&&this[qt]===1&&this[_t]===0&&this[It]===0&&this[Ot]===0&&this[$t]===0&&this[Xt]===1}get is2D(){return this[Wt]===0&&this[jt]===0&&this[qt]===1&&this[_t]===0&&this[$t]===0&&this[Xt]===1}toFloat32Array(t){return Float32Array.from(this[hy](t))}toFloat64Array(t){return Float64Array.from(this[hy](t))}toString(){let t=this.is2D,e=this[hy](t).join(", ");return`${t?"matrix":"matrix3d"}(${e})`}toJSON(){let{is2D:t,isIdentity:e}=this;return{m11:this[kt],m12:this[Dt],m13:this[zt],m14:this[Jt],m21:this[Mt],m22:this[Bt],m23:this[Zt],m24:this[te],m31:this[Wt],m32:this[jt],m33:this[qt],m34:this[_t],m41:this[It],m42:this[Ot],m43:this[$t],m44:this[Xt],a:this[kt],b:this[Dt],c:this[Mt],d:this[Bt],e:this[It],f:this[Ot],is2D:t,isIdentity:e}}multiply(t){let e=new this.constructor(this);return e[Co](t),e}translate(t=0,e=0,o=0){let s=new this.constructor(this);return s[To](t,e,o),s}scale(t,e,o=1,s=0,n=0,l=0){let a=new this.constructor(this);return a[os](t,e,o,s,n,l),a}scale3d(t=1,e=0,o=0,s=0){let n=new this.constructor(this);return n[cy](t,e,o,s),n}scaleNonUniform(t=1,e=1){let o=new this.constructor(this);return o[dy](t,e),o}rotateAxisAngle(t=0,e=0,o=0,s=0){let n=new this.constructor(this);return n[_s](t,e,o,s),n}rotate(t=0,e,o){let s=new this.constructor(this);return s[Ws](t,e,o),s}rotateFromVector(t=0,e=0){let o=new this.constructor(this);return o[Xy](t,e),o}skewX(t){let e=new this.constructor(this);return e[Vl](t),e}skewY(t){let e=new this.constructor(this);return e[Dl](t),e}flipX(){let t=new this.constructor(this);return t[zy](),t}flipY(){let t=new this.constructor(this);return t[Jy](),t}inverse(){let t=new this.constructor(this);return t[Zy](),t}transformPoint(t){let e=t.x??0,o=t.y??0,s=t.z??0,n=t.w??1,l=this[kt]*e+this[Mt]*o+this[Wt]*s+this[It]*n,a=this[Dt]*e+this[Bt]*o+this[jt]*s+this[Ot]*n,y=this[zt]*e+this[Zt]*o+this[qt]*s+this[$t]*n,u=this[Jt]*e+this[te]*o+this[_t]*s+this[Xt]*n;return new dm(l,a,y,u)}[Ra](t){let e=null;if(typeof t==="string"&&t.length&&t!=="none")e=this.constructor[Fl](t);else if(Array.isArray(t)||t instanceof Float64Array||t instanceof Float32Array)e=this.constructor[vo](t);else if(typeof t==="object")e=this.constructor.fromMatrix(t);else return;this[kt]=e[kt],this[Dt]=e[Dt],this[zt]=e[zt],this[Jt]=e[Jt],this[Mt]=e[Mt],this[Bt]=e[Bt],this[Zt]=e[Zt],this[te]=e[te],this[Wt]=e[Wt],this[jt]=e[jt],this[qt]=e[qt],this[_t]=e[_t],this[It]=e[It],this[Ot]=e[Ot],this[$t]=e[$t],this[Xt]=e[Xt]}[Co](t){let e=t;if(!(e instanceof dl))if(e?.m11===void 0&&e?.a!==void 0)e=Object.assign({},bm,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;else e=Object.assign({},bm,e);let o=this[kt]*e.m11+this[Mt]*e.m12+this[Wt]*e.m13+this[It]*e.m14,s=this[kt]*e.m21+this[Mt]*e.m22+this[Wt]*e.m23+this[It]*e.m24,n=this[kt]*e.m31+this[Mt]*e.m32+this[Wt]*e.m33+this[It]*e.m34,l=this[kt]*e.m41+this[Mt]*e.m42+this[Wt]*e.m43+this[It]*e.m44,a=this[Dt]*e.m11+this[Bt]*e.m12+this[jt]*e.m13+this[Ot]*e.m14,y=this[Dt]*e.m21+this[Bt]*e.m22+this[jt]*e.m23+this[Ot]*e.m24,u=this[Dt]*e.m31+this[Bt]*e.m32+this[jt]*e.m33+this[Ot]*e.m34,c=this[Dt]*e.m41+this[Bt]*e.m42+this[jt]*e.m43+this[Ot]*e.m44,d=this[zt]*e.m11+this[Zt]*e.m12+this[qt]*e.m13+this[$t]*e.m14,g=this[zt]*e.m21+this[Zt]*e.m22+this[qt]*e.m23+this[$t]*e.m24,f=this[zt]*e.m31+this[Zt]*e.m32+this[qt]*e.m33+this[$t]*e.m34,E=this[zt]*e.m41+this[Zt]*e.m42+this[qt]*e.m43+this[$t]*e.m44,R=this[Jt]*e.m11+this[te]*e.m12+this[_t]*e.m13+this[Xt]*e.m14,H=this[Jt]*e.m21+this[te]*e.m22+this[_t]*e.m23+this[Xt]*e.m24,pt=this[Jt]*e.m31+this[te]*e.m32+this[_t]*e.m33+this[Xt]*e.m34,gt=this[Jt]*e.m41+this[te]*e.m42+this[_t]*e.m43+this[Xt]*e.m44;this[kt]=o,this[Dt]=a,this[zt]=d,this[Jt]=R,this[Mt]=s,this[Bt]=y,this[Zt]=g,this[te]=H,this[Wt]=n,this[jt]=u,this[qt]=f,this[_t]=pt,this[It]=l,this[Ot]=c,this[$t]=E,this[Xt]=gt}[To](t=0,e=0,o=0){let s=this.constructor[vo]([1,0,0,0,0,1,0,0,0,0,1,0,t,e,o,1]);this[Co](s)}[os](t,e,o=1,s=0,n=0,l=0){if(t=t===void 0?1:Number(t),e=e===void 0?t:Number(e),s!==0||n!==0||l!==0)this[To](s,n,l);if(t!==1||e!==1||o!==1)this[Co](this.constructor[vo]([t,0,0,0,0,e,0,0,0,0,o,0,0,0,0,1]));if(s!==0||n!==0||l!==0)this[To](-s,-n,-l)}[cy](t=1,e=0,o=0,s=0){if(e!==0||o!==0||s!==0)this[To](e,o,s);if(t!==1)this[Co](this.constructor[vo]([t,0,0,0,0,t,0,0,0,0,t,0,0,0,0,1]));if(e!==0||o!==0||s!==0)this[To](-e,-o,-s)}[dy](t=1,e=1){if(t===1&&e===1)return;this[Co](this.constructor[vo]([t,0,0,0,0,e,0,0,0,0,1,0,0,0,0,1]))}[_s](t=0,e=0,o=0,s=0){if(t=Number(t),e=Number(e),o=Number(o),s=Number(s),isNaN(t)||isNaN(e)||isNaN(o)||isNaN(s))throw TypeError("Failed to execute 'rotateAxisAngleSelf' on 'DOMMatrix': The arguments must be numbers.");let n=Math.hypot(t,e,o);if(n===0)return;if(n!==1)t/=n,e/=n,o/=n;let l=-(s*Math.PI/360),a=this.#t,y=Math.sin(l)*Math.cos(l),u=Math.sin(l)*Math.sin(l),c=a(1-2*(e*e+o*o)*u),d=a(2*(t*e*u+o*y)),g=a(2*(t*o*u-e*y)),f=a(2*(t*e*u-o*y)),E=a(1-2*(t*t+o*o)*u),R=a(2*(e*o*u+t*y)),H=a(2*(t*o*u+e*y)),pt=a(2*(e*o*u-t*y)),gt=a(1-2*(t*t+e*e)*u),Rt=this.constructor[vo]([c,f,H,0,d,E,pt,0,g,R,gt,0,0,0,0,1]);this[Co](Rt)}[Ws](t=0,e,o){if(e===void 0&&o===void 0)o=t,t=0,e=0;if(e===void 0)e=0;if(o===void 0)o=0;if(t=Number(t),e=Number(e),o=Number(o),isNaN(t)||isNaN(e)||isNaN(o))throw TypeError("Failed to execute 'rotateSelf' on 'DOMMatrix': The arguments must be numbers.");if(o!==0)this[_s](0,0,1,o);if(e!==0)this[_s](0,1,0,e);if(t!==0)this[_s](1,0,0,t)}[Xy](t=0,e=0){if(t===0&&e===0)return;this[Ws](Math.atan2(e,t)*180/Math.PI)}[Vl](t){let e=Object.assign({},bm),o=Math.tan(t*Math.PI/180);e.m21=o,e.c=o,this[Co](e)}[Dl](t){let e=Object.assign({},bm),o=Math.tan(t*Math.PI/180);e.m12=o,e.b=o,this[Co](e)}[zy](){let t=this.constructor[vo]([-1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);this[Co](t)}[Jy](){let t=this.constructor[vo]([1,0,0,0,0,-1,0,0,0,0,1,0,0,0,0,1]);this[Co](t)}[Zy](){let t=this[Bt]*this[qt]*this[Xt]-this[Bt]*this[_t]*this[$t]-this[jt]*this[Zt]*this[Xt]+this[jt]*this[te]*this[$t]+this[Ot]*this[Zt]*this[_t]-this[Ot]*this[te]*this[qt],e=-this[Dt]*this[qt]*this[Xt]+this[Dt]*this[_t]*this[$t]+this[jt]*this[zt]*this[Xt]-this[jt]*this[Jt]*this[$t]-this[Ot]*this[zt]*this[_t]+this[Ot]*this[Jt]*this[qt],o=this[Dt]*this[Zt]*this[Xt]-this[Dt]*this[te]*this[$t]-this[Bt]*this[zt]*this[Xt]+this[Bt]*this[Jt]*this[$t]+this[Ot]*this[zt]*this[te]-this[Ot]*this[Jt]*this[Zt],s=-this[Dt]*this[Zt]*this[_t]+this[Dt]*this[te]*this[qt]+this[Bt]*this[zt]*this[_t]-this[Bt]*this[Jt]*this[qt]-this[jt]*this[zt]*this[te]+this[jt]*this[Jt]*this[Zt],n=this[kt]*t+this[Mt]*e+this[Wt]*o+this[It]*s;if(n===0){this[kt]=NaN,this[Dt]=NaN,this[zt]=NaN,this[Jt]=NaN,this[Mt]=NaN,this[Bt]=NaN,this[Zt]=NaN,this[te]=NaN,this[Wt]=NaN,this[jt]=NaN,this[qt]=NaN,this[_t]=NaN,this[It]=NaN,this[Ot]=NaN,this[$t]=NaN,this[Xt]=NaN;return}let l=-this[Mt]*this[qt]*this[Xt]+this[Mt]*this[_t]*this[$t]+this[Wt]*this[Zt]*this[Xt]-this[Wt]*this[te]*this[$t]-this[It]*this[Zt]*this[_t]+this[It]*this[te]*this[qt],a=this[kt]*this[qt]*this[Xt]-this[kt]*this[_t]*this[$t]-this[Wt]*this[zt]*this[Xt]+this[Wt]*this[Jt]*this[$t]+this[It]*this[zt]*this[_t]-this[It]*this[Jt]*this[qt],y=-this[kt]*this[Zt]*this[Xt]+this[kt]*this[te]*this[$t]+this[Mt]*this[zt]*this[Xt]-this[Mt]*this[Jt]*this[$t]-this[It]*this[zt]*this[te]+this[It]*this[Jt]*this[Zt],u=this[kt]*this[Zt]*this[_t]-this[kt]*this[te]*this[qt]-this[Mt]*this[zt]*this[_t]+this[Mt]*this[Jt]*this[qt]+this[Wt]*this[zt]*this[te]-this[Wt]*this[Jt]*this[Zt],c=this[Mt]*this[jt]*this[Xt]-this[Mt]*this[_t]*this[Ot]-this[Wt]*this[Bt]*this[Xt]+this[Wt]*this[te]*this[Ot]+this[It]*this[Bt]*this[_t]-this[It]*this[te]*this[jt],d=-this[kt]*this[jt]*this[Xt]+this[kt]*this[_t]*this[Ot]+this[Wt]*this[Dt]*this[Xt]-this[Wt]*this[Jt]*this[Ot]-this[It]*this[Dt]*this[_t]+this[It]*this[Jt]*this[jt],g=this[kt]*this[Bt]*this[Xt]-this[kt]*this[te]*this[Ot]-this[Mt]*this[Dt]*this[Xt]+this[Mt]*this[Jt]*this[Ot]+this[It]*this[Dt]*this[te]-this[It]*this[Jt]*this[Bt],f=-this[kt]*this[Bt]*this[_t]+this[kt]*this[te]*this[jt]+this[Mt]*this[Dt]*this[_t]-this[Mt]*this[Jt]*this[jt]-this[Wt]*this[Dt]*this[te]+this[Wt]*this[Jt]*this[Bt],E=-this[Mt]*this[jt]*this[$t]+this[Mt]*this[qt]*this[Ot]+this[Wt]*this[Bt]*this[$t]-this[Wt]*this[Zt]*this[Ot]-this[It]*this[Bt]*this[qt]+this[It]*this[Zt]*this[jt],R=this[kt]*this[jt]*this[$t]-this[kt]*this[qt]*this[Ot]-this[Wt]*this[Dt]*this[$t]+this[Wt]*this[zt]*this[Ot]+this[It]*this[Dt]*this[qt]-this[It]*this[zt]*this[jt],H=-this[kt]*this[Bt]*this[$t]+this[kt]*this[Zt]*this[Ot]+this[Mt]*this[Dt]*this[$t]-this[Mt]*this[zt]*this[Ot]-this[It]*this[Dt]*this[Zt]+this[It]*this[zt]*this[Bt],pt=this[kt]*this[Bt]*this[qt]-this[kt]*this[Zt]*this[jt]-this[Mt]*this[Dt]*this[qt]+this[Mt]*this[zt]*this[jt]+this[Wt]*this[Dt]*this[Zt]-this[Wt]*this[zt]*this[Bt];this[kt]=t/n||0,this[Dt]=e/n||0,this[zt]=o/n||0,this[Jt]=s/n||0,this[Mt]=l/n||0,this[Bt]=a/n||0,this[Zt]=y/n||0,this[te]=u/n||0,this[Wt]=c/n||0,this[jt]=d/n||0,this[qt]=g/n||0,this[_t]=f/n||0,this[It]=E/n||0,this[Ot]=R/n||0,this[$t]=H/n||0,this[Xt]=pt/n||0}[hy](t=!1){if(t)return[this[kt],this[Dt],this[Mt],this[Bt],this[It],this[Ot]];return[this[kt],this[Dt],this[zt],this[Jt],this[Mt],this[Bt],this[Zt],this[te],this[Wt],this[jt],this[qt],this[_t],this[It],this[Ot],this[$t],this[Xt]]}#t(t,e=1000000000000000){return Math.round(t*e)/e}static fromMatrix(t){if(!(t instanceof dl))if(t?.m11===void 0&&t?.a!==void 0)t=Object.assign({},bm,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;else t=Object.assign({},bm,t);return this[vo]([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[vo](t)}static fromFloat64Array(t){return this[vo](t)}static[vo](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[o,s,n,l,a,y,u,c,d,g,f,E,R,H,pt,gt]=t;e[kt]=o,e[Dt]=s,e[zt]=n,e[Jt]=l,e[Mt]=a,e[Bt]=y,e[Zt]=u,e[te]=c,e[Wt]=d,e[jt]=g,e[qt]=f,e[_t]=E,e[It]=R,e[Ot]=H,e[$t]=pt,e[Xt]=gt}else if(t.length===6){let[o,s,n,l,a,y]=t;e[kt]=o,e[Dt]=s,e[Mt]=n,e[Bt]=l,e[It]=a,e[Ot]=y}return e}static[Fl](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,o=new RegExp(iw),s;while(s=o.exec(t)){let n=s[1],l=s[2].split(sw);for(let d=0,g=l.length;d<g;d++)l[d]=this[wb](l[d]);let[a,y,u,c]=l;switch(n){case"perspective":if(!isNaN(a)&&a!==0&&y===void 0&&u===void 0)e[_t]=-1/a;break;case"translate":if(!isNaN(a)&&u===void 0)e[To](a,y||0,0);break;case"translate3d":if(!isNaN(a)&&!isNaN(y)&&!isNaN(u))e[To](a,y,u);break;case"translateX":if(!isNaN(a)&&y===void 0&&u===void 0)e[To](a);break;case"translateY":if(!isNaN(a)&&y===void 0&&u===void 0)e[To](0,a);break;case"translateZ":if(!isNaN(a)&&y===void 0&&u===void 0)e[To](0,0,a);break;case"matrix":case"matrix3d":if(l.length===6||l.length===16)e[Ra](this[vo](l));break;case"rotate":case"rotateZ":if(!isNaN(a)&&y===void 0&&u===void 0)e[Ws](0,0,a);break;case"rotateX":if(!isNaN(a)&&y===void 0&&u===void 0)e[Ws](a,0,0);break;case"rotateY":if(!isNaN(a)&&y===void 0&&u===void 0)e[Ws](0,a,0);case"rotate3d":if(!isNaN(a)&&!isNaN(y)&&!isNaN(u)&&!isNaN(c))e[_s](a,y,u,c);break;case"scale":if(!isNaN(a)&&a!==1&&u===void 0)e[os](a,isNaN(y)?a:y);break;case"scale3d":if(!isNaN(a)&&!isNaN(y)&&!isNaN(u))e[os](a,y,u);break;case"scaleX":if(!isNaN(a)&&y===void 0&&u===void 0)e[os](a,1,1);break;case"scaleY":if(!isNaN(a)&&y===void 0&&u===void 0)e[os](1,a,1);break;case"scaleZ":if(!isNaN(a)&&y===void 0&&u===void 0)e[os](1,1,a);break;case"skew":if(!isNaN(a))e[Vl](a);if(!isNaN(y))e[Dl](y);break;case"skewX":if(!isNaN(a)&&y===void 0)e[Vl](a);break;case"skewY":if(!isNaN(a)&&y===void 0)e[Dl](a);break;default:throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Unknown transform function '${s[1]}'.`)}}return e}static[wb](t){let e=parseFloat(t);switch(t.replace(e.toString(),"")){case"rem":case"em":case"vw":case"vh":case"%":case"vmin":case"vmax":throw 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*0.945;default:return e}}}class Ao extends dl{get a(){return this[kt]}set a(t){this[kt]=t}get b(){return this[Dt]}set b(t){this[Dt]=t}get c(){return this[Mt]}set c(t){this[Mt]=t}get d(){return this[Bt]}set d(t){this[Bt]=t}get e(){return this[It]}set e(t){this[It]=t}get f(){return this[Ot]}set f(t){this[Ot]=t}get m11(){return this[kt]}set m11(t){this[kt]=t}get m12(){return this[Dt]}set m12(t){this[Dt]=t}get m13(){return this[zt]}set m13(t){this[zt]=t}get m14(){return this[Jt]}set m14(t){this[Jt]=t}get m21(){return this[Mt]}set m21(t){this[Mt]=t}get m22(){return this[Bt]}set m22(t){this[Bt]=t}get m23(){return this[Zt]}set m23(t){this[Zt]=t}get m24(){return this[te]}set m24(t){this[te]=t}get m31(){return this[Wt]}set m31(t){this[Wt]=t}get m32(){return this[jt]}set m32(t){this[jt]=t}get m33(){return this[qt]}set m33(t){this[qt]=t}get m34(){return this[_t]}set m34(t){this[_t]=t}get m41(){return this[It]}set m41(t){this[It]=t}get m42(){return this[Ot]}set m42(t){this[Ot]=t}get m43(){return this[$t]}set m43(t){this[$t]=t}get m44(){return this[Xt]}set m44(t){this[Xt]=t}setMatrixValue(t){return this[Ra](t),this}multiplySelf(t){return this[Co](t),this}translateSelf(t=0,e=0,o=0){return this[To](t,e,o),this}scaleSelf(t,e,o=1,s=0,n=0,l=0){return this[os](t,e,o,s,n,l),this}scale3dSelf(t=1,e=0,o=0,s=0){return this[cy](t,e,o,s),this}scaleNonUniformSelf(t=1,e=1){return this[dy](t,e),this}rotateAxisAngleSelf(t=0,e=0,o=0,s=0){return this[_s](t,e,o,s),this}rotateSelf(t=0,e,o){return this[Ws](t,e,o),this}rotateFromVectorSelf(t=0,e=0){return this[Xy](t,e),this}skewXSelf(t){return this[Vl](t),this}skewYSelf(t){return this[Dl](t),this}flipXSelf(){return this[zy](),this}flipYSelf(){return this[Jy](),this}invertSelf(){return this[Zy](),this}}var nw=/[\t\f\n\r ,]+/;class ki{[m];[v];[A];[j]=!1;[U]={items:[],attributeValue:""};constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,this[j]=!!o.readOnly,this[v]=o.getAttribute,this[A]=o.setAttribute,t!==h)throw TypeError("Illegal constructor");let s=new fe(this,[ki]);return new Proxy(this,{get:(n,l)=>{if(l==="length"||l==="numberOfItems")return n[K]().length;if(l in n||typeof l==="symbol")return s.bind(l),n[l];let a=Number(l);if(!isNaN(a))return n[K]()[a]},set(n,l,a){if(s.bind(l),typeof l==="symbol")return n[l]=a,!0;let y=Number(l);if(isNaN(y))n[l]=a;return!0},deleteProperty(n,l){if(typeof l==="symbol")return delete n[l],!0;let a=Number(l);if(isNaN(a))delete n[l];return!0},ownKeys(n){return Object.keys(n[K]())},has(n,l){if(l in n)return!0;if(typeof l==="symbol")return!1;let a=Number(l);return!isNaN(a)&&a>=0&&a<n[K]().length},defineProperty(n,l,a){if(s.preventBinding(l),l in n)return Object.defineProperty(n,l,a),!0;return!1},getOwnPropertyDescriptor(n,l){if(l in n||typeof l==="symbol")return;let a=Number(l),y=n[K]();if(!isNaN(a)&&y[a])return{value:y[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[K]().length}get numberOfItems(){return this[K]().length}[Symbol.iterator](){return this[K]().values()}clear(){this[U].attributeValue="",this[U].items=[],this[A]("")}initialize(t){if(this[j])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[A](t),t}getItem(t){let e=this[K]();if(typeof t==="number")return e[t]?e[t]:null;return t=Number(t),t=isNaN(t)?0:t,e[t]?e[t]:null}insertItemBefore(t,e){if(this[j])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 o=this[K](),s=o.indexOf(t);if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>o.length)e=o.length;return o.splice(e,0,t),this[A](o.join(" ")),t}replaceItem(t,e){if(this[j])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 o=this[K]();if(e<0)e=0;else if(e>=o.length)e=o.length-1;let s=o[e];return o[e]=t,this[A](o.join(" ")),s}removeItem(t){if(this[j])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[K]();if(t=Number(t),isNaN(t))t=0;if(t>=e.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${t}) is greater than the maximum bound.`,w.indexSizeError);if(t<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${t}) is negative.`,w.indexSizeError);let o=e[t];return e.splice(t,1),this[A](e.join(" ")),o}appendItem(t){if(this[j])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[K](),o=e.indexOf(t);if(o!==-1)e.splice(o,1);return e.push(t),this[A](e.join(" ")),t}[K](){let t=this[v]()??"",e=this[U];if(e.attributeValue===t)return e.items;let o=[],s=t.trim();if(s){for(let n of s.split(nw))if(!o.includes(n))o.push(n)}return e.attributeValue=t,e.items=o,o}}var lw=/([a-zA-Z0-9]+)\(([^)]+)\)/,aw=/[\s,]+/;class rr{[m];[v]=null;[A]=null;[I]=null;[j]=!1;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get a(){return this[Ne]().a}set a(t){if(this[j])return;let e=this[Ne]();e.a=t,this[gr](e)}get b(){return this[Ne]().b}set b(t){if(this[j])return;let e=this[Ne]();e.b=t,this[gr](e)}get c(){return this[Ne]().c}set c(t){if(this[j])return;let e=this[Ne]();e.c=t,this[gr](e)}get d(){return this[Ne]().d}set d(t){if(this[j])return;let e=this[Ne]();e.d=t,this[gr](e)}get e(){return this[Ne]().e}set e(t){if(this[j])return;let e=this[Ne]();e.e=t,this[gr](e)}get f(){return this[Ne]().f}set f(t){if(this[j])return;let e=this[Ne]();e.f=t,this[gr](e)}multiply(t){if(!(t instanceof rr))throw new this[m].TypeError("Failed to execute 'multiply' on 'SVGMatrix': parameter 1 is not of type 'SVGMatrix'.");let e=this[Ne](),o=new rr(h,this[m]);return e.multiplySelf(t[Ne]()),o[gr](e),o}translate(t=0,e=0){let o=this[Ne](),s=new rr(h,this[m]);return o.translateSelf(t,e),s[gr](o),s}scale(t){let e=this[Ne](),o=new rr(h,this[m]);return e.scaleSelf(t),o[gr](e),o}scaleNonUniform(t=1,e=1){let o=this[Ne](),s=new rr(h,this[m]);return o.scaleNonUniformSelf(t,e),s[gr](o),s}rotate(t){let e=this[Ne](),o=new rr(h,this[m]);return e.rotateSelf(t),o[gr](e),o}rotateFromVector(t=0,e=0){let o=this[Ne](),s=new rr(h,this[m]);return o.rotateFromVectorSelf(t,e),s[gr](o),s}skewX(t){let e=this[Ne](),o=new rr(h,this[m]);return e.skewXSelf(t),o[gr](e),o}skewY(t){let e=this[Ne](),o=new rr(h,this[m]);return e.skewYSelf(t),o[gr](e),o}flipX(){let t=this[Ne](),e=new rr(h,this[m]);return t.flipXSelf(),e[gr](t),e}flipY(){let t=this[Ne](),e=new rr(h,this[m]);return t.flipYSelf(),e[gr](t),e}inverse(){let t=this[Ne](),e=new rr(h,this[m]);return t.invertSelf(),e[gr](t),e}[Ne](){let t=this[v]?this[v]():this[I];if(!t)return new Ao;let e=t.match(lw);if(!e)return new Ao;let o=[];for(let s of e[2].trim().split(aw)){let n=Number(s);if(isNaN(n))throw new this[m].TypeError(`Failed to parse transform attribute: Expected number, but got "${s}" in "${t}".`);o.push(n)}switch(e[1]){case"matrix":if(o.length!==6)throw new this[m].TypeError(`Failed to parse transform attribute: Expected 6 parameters in "${t}".`);return Ao[Fl](t);case"scale":case"translate":if(o.length!==1&&o.length!==2)throw new this[m].TypeError(`Failed to parse transform attribute: Expected 1 or 2 parameters in "${t}".`);return Ao[Fl](t);case"skewY":case"skewX":if(o.length!==1)throw new this[m].TypeError(`Failed to parse transform attribute: Expected 1 parameter in "${t}".`);return Ao[Fl](t);case"rotate":let s=new Ao;if(o.length!==1&&o.length!==3)throw new this[m].TypeError(`Failed to parse transform attribute: Expected 1 or 3 parameters in "${t}".`);let[n,l,a]=o;if(l||a)s.translateSelf(l,a);let y=n*Math.PI/180;if(s.multiplySelf(new Ao([Math.cos(y),Math.sin(y),-Math.sin(y),Math.cos(y),0,0])),l||a)s.translateSelf(-l,-a);return s;default:throw new this[m].TypeError(`Failed to parse transform attribute: Unknown transformation "${t}".`)}}[gr](t){if(this[I]=t.toString().replace(/, /g," "),this[A])this[A](this[I])}}var Pg;(function(t){t[t.unknown=0]="unknown",t[t.matrix=1]="matrix",t[t.translate=2]="translate",t[t.scale=3]="scale",t[t.rotate=4]="rotate",t[t.skewX=5]="skewX",t[t.skewY=6]="skewY"})(Pg||(Pg={}));var wo=Pg;var MS=/([a-zA-Z0-9]+)\(([^)]+)\)/,mw=/[\s,]+/;class jo{static SVG_TRANSFORM_UNKNOWN=wo.unknown;static SVG_TRANSFORM_MATRIX=wo.matrix;static SVG_TRANSFORM_TRANSLATE=wo.translate;static SVG_TRANSFORM_SCALE=wo.scale;static SVG_TRANSFORM_ROTATE=wo.rotate;static SVG_TRANSFORM_SKEWX=wo.skewX;static SVG_TRANSFORM_SKEWY=wo.skewY;[m];[v]=null;[A]=null;[I]=null;[j]=!1;[Ys]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get type(){let e=(this[v]?this[v]():this[I])?.match(MS);if(!e)return wo.unknown;switch(e[1]){case"matrix":return wo.matrix;case"translate":return wo.translate;case"rotate":return wo.rotate;case"scale":return wo.scale;case"skewX":return wo.skewX;case"skewY":return wo.skewY}return 0}get angle(){let e=(this[v]?this[v]():this[I])?.match(MS);if(!e)return 0;let o=parseFloat(e[2].trim().split(mw)[0]);if(isNaN(o))return 0;switch(e[1]){case"rotate":case"skewX":case"skewY":return o}return 0}get matrix(){if(!this[Ys])this[Ys]=new rr(h,this[m],{readOnly:this[j],getAttribute:()=>{if(this[v])return this[v]();return this[I]},setAttribute:(t)=>{if(this[I]=t,this[A]){this[A](t);return}}});return this[Ys]}setMatrix(t){if(!(t instanceof rr))throw TypeError('Failed to set the "matrix" property on "SVGTransform": The provided value is not of type "SVGMatrix".');if(this[j])return;if(this[Ys])this[Ys][v]=null,this[Ys][A]=null;if(t[v]=()=>{if(this[v])return this[v]();return this[I]},t[A]=(e)=>{if(this[I]=e,this[A]){this[A](e);return}},this[Ys]=t,t[I]!==this[I]){if(this[I]=t[I],this[A])this[A](this[I]||"")}}setTranslate(t,e){if(arguments.length<2)throw 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 TypeError("Failed to execute 'setTranslate' on 'SVGTransform': The provided float value is non-finite.");if(this[j])return;if(this[I]=`translate(${t} ${e})`,this[A])this[A](this[I])}setScale(t,e){if(arguments.length<2)throw 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 TypeError("Failed to execute 'setScale' on 'SVGTransform': The provided float value is non-finite.");if(this[j])return;if(this[I]=`scale(${t} ${e})`,this[A])this[A](this[I])}setRotate(t,e,o){if(arguments.length<3)throw TypeError(`Failed to execute 'setRotate' on 'SVGTransform': 3 arguments required, but only ${arguments.length} present.`);if(t=Number(t),e=Number(e),o=Number(o),isNaN(t)||isNaN(e)||isNaN(o))throw TypeError("Failed to execute 'setRotate' on 'SVGTransform': The provided float value is non-finite.");if(this[j])return;if(this[I]=`rotate(${t} ${e} ${o})`,this[A])this[A](this[I])}setSkewX(t){if(arguments.length<1)throw TypeError(`Failed to execute 'setSkewX' on 'SVGTransform': 1 arguments required, but only ${arguments.length} present.`);if(t=Number(t),isNaN(t))throw TypeError("Failed to execute 'setSkewX' on 'SVGTransform': The provided float value is non-finite.");if(this[j])return;if(this[I]=`skewX(${t})`,this[A])this[A](this[I])}setSkewY(t){if(arguments.length<1)throw TypeError(`Failed to execute 'setSkewY' on 'SVGTransform': 1 arguments required, but only ${arguments.length} present.`);if(t=Number(t),isNaN(t))throw TypeError("Failed to execute 'setSkewY' on 'SVGTransform': The provided float value is non-finite.");if(this[j])return;if(this[I]=`skewY(${t})`,this[A])this[A](this[I])}}var yw=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,gn="matrix(1 0 0 1 0 0)";class bl{[m];[v];[A];[j]=!1;[U]={items:[],attributeValue:""};constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[j]=!!o.readOnly,this[v]=o.getAttribute,this[A]=o.setAttribute;let s=new fe(this,[bl]);return new Proxy(this,{get:(n,l)=>{if(l==="length"||l==="numberOfItems")return n[K]().length;if(l in n||typeof l==="symbol")return s.bind(l),n[l];let a=Number(l);if(!isNaN(a))return n[K]()[a]},set(n,l,a){if(s.bind(l),typeof l==="symbol")return n[l]=a,!0;let y=Number(l);if(isNaN(y))n[l]=a;return!0},deleteProperty(n,l){if(typeof l==="symbol")return delete n[l],!0;let a=Number(l);if(isNaN(a))delete n[l];return!0},ownKeys(n){return Object.keys(n[K]())},has(n,l){if(l in n)return!0;if(typeof l==="symbol")return!1;let a=Number(l);return!isNaN(a)&&a>=0&&a<n[K]().length},defineProperty(n,l,a){if(s.preventBinding(l),l in n)return Object.defineProperty(n,l,a),!0;return!1},getOwnPropertyDescriptor(n,l){if(l in n||typeof l==="symbol")return;let a=Number(l),y=n[K]();if(!isNaN(a)&&y[a])return{value:y[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[K]().length}get numberOfItems(){return this[K]().length}[Symbol.iterator](){return this[K]().values()}clear(){if(this[j])throw new this[m].TypeError("Failed to execute 'clear' on 'SVGTransformList': The object is read-only.");for(let t of this[U].items)t[v]=null,t[A]=null;this[U].items=[],this[U].attributeValue="",this[A]("")}initialize(t){if(this[j])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 jo))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");for(let e of this[U].items)e[v]=null,e[A]=null;return t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((e)=>e[I]||gn).join(" "),this[A](this[U].attributeValue)},this[U].items=[t],this[U].attributeValue=t[I],this[A](t[I]||""),t}getItem(t){let e=this[K]();if(typeof t==="number")return e[t]?e[t]:null;return t=Number(t),t=isNaN(t)?0:t,e[t]?e[t]:null}insertItemBefore(t,e){if(this[j])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 jo))throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let o=this[K](),s=o.indexOf(t);if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>o.length)e=o.length;return o.splice(e,0,t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((n)=>n[I]||gn).join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((n)=>n[I]||gn).join(" "),this[A](this[U].attributeValue),t}replaceItem(t,e){if(this[j])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 jo))throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let o=this[K](),s=o.indexOf(t);if(s===e)return t;if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>=o.length)e=o.length-1;if(o[e])o[e][v]=null,o[e][A]=null;let n=o[e];return o[e]=t,t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((l)=>l[I]||gn).join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((l)=>l[I]||gn).join(" "),this[A](this[U].attributeValue),n}removeItem(t){if(this[j])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[K]();if(t=Number(t),isNaN(t))t=0;if(t>=e.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${t}) is greater than the maximum bound.`,w.indexSizeError);if(t<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${t}) is negative.`,w.indexSizeError);let o=e[t];if(o)o[v]=null,o[A]=null;return e.splice(t,1),this[U].attributeValue=e.map((s)=>s[I]||gn).join(" "),this[A](this[U].attributeValue),o}appendItem(t){if(this[j])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 jo))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let e=this[K](),o=e.indexOf(t);if(o!==-1)e.splice(o,1);return e.push(t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((s)=>s[I]||gn).join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=e.map((s)=>s[I]||gn).join(" "),this[A](this[U].attributeValue),t}[K](){let t=this[v]()??"",e=this[U];if(e.attributeValue===t)return e.items;if(e.items.length)for(let n of e.items)n[v]=null,n[A]=null;let o=[],s=t.trim();if(s){let n=new RegExp(yw),l;while(l=n.exec(s)){let a=new jo(h,this[m],{readOnly:this[j],getAttribute:()=>a[I],setAttribute:()=>{this[U].attributeValue=this[K]().map((y)=>y[I]||gn).join(" "),this[A](this[U].attributeValue)}});a[I]=`${l[1]}(${l[2]})`,o.push(a)}}return e.attributeValue=t,e.items=o,o}}class vs{[m];[v];[A];[se]=null;[ne]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){if(!this[ne])this[ne]=new bl(h,this[m],{readOnly:!0,getAttribute:this[v],setAttribute:()=>{}});return this[ne]}set animVal(t){}get baseVal(){if(!this[se])this[se]=new bl(h,this[m],{getAttribute:this[v],setAttribute:this[A]});return this[se]}set baseVal(t){}}class Ae extends et{[Yi]=null;[Ki]=null;[_m]=null;get oncopy(){return S.getEventListener(this,"oncopy")}set oncopy(t){this[p].set("oncopy",t)}get oncut(){return S.getEventListener(this,"oncut")}set oncut(t){this[p].set("oncut",t)}get onpaste(){return S.getEventListener(this,"onpaste")}set onpaste(t){this[p].set("onpaste",t)}get requiredExtensions(){if(!this[Yi])this[Yi]=new ki(h,this[m],{getAttribute:()=>this.getAttribute("requiredExtensions"),setAttribute:(t)=>this.setAttribute("requiredExtensions",t)});return this[Yi]}get systemLanguage(){if(!this[Ki])this[Ki]=new ki(h,this[m],{getAttribute:()=>this.getAttribute("systemLanguage"),setAttribute:(t)=>this.setAttribute("systemLanguage",t)});return this[Ki]}get transform(){if(!this[_m])this[_m]=new vs(h,this[m],{getAttribute:()=>this.getAttribute("transform"),setAttribute:(t)=>this.setAttribute("transform",t)});return this[_m]}getBBox(){return new li}getCTM(){return new Ao}getScreenCTM(){return new Ao}}class Mi{[m];[v]=null;[A]=null;[I]=null;[j]=!1;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get x(){let t=this[v]?this[v]():this[I];if(!t)return 0;let e=t.split(/\s+/),o=Number(e[0]);return isNaN(o)?0:o}set x(t){if(this[j])throw new this[m].TypeError("Failed to set the 'x' property on 'SVGRect': The object is read-only.");if(this[I]=`${String(typeof t==="number"?t:parseFloat(t))} ${this.y} ${this.width} ${this.height}`,this[A])this[A](this[I])}get y(){let t=this[v]?this[v]():this[I];if(!t)return 0;let e=t.split(/\s+/),o=Number(e[1]);return isNaN(o)?0:o}set y(t){if(this[j])throw new this[m].TypeError("Failed to set the 'y' property on 'SVGRect': The object is read-only.");if(this[I]=`${this.x} ${String(typeof t==="number"?t:parseFloat(t))} ${this.width} ${this.height}`,this[A])this[A](this[I])}get width(){let t=this[v]?this[v]():this[I];if(!t)return 0;let e=t.split(/\s+/),o=Number(e[2]);return isNaN(o)?0:o}set width(t){if(this[j])throw new this[m].TypeError("Failed to set the 'width' property on 'SVGRect': The object is read-only.");if(this[I]=`${this.x} ${this.y} ${String(typeof t==="number"?t:parseFloat(t))} ${this.height}`,this[A])this[A](this[I])}get height(){let t=this[v]?this[v]():this[I];if(!t)return 0;let e=t.split(/\s+/),o=Number(e[3]);return isNaN(o)?0:o}set height(t){if(this[j])throw new this[m].TypeError("Failed to set the 'height' property on 'SVGRect': The object is read-only.");if(this[I]=`${this.x} ${this.y} ${this.width} ${String(typeof t==="number"?t:parseFloat(t))}`,this[A])this[A](this[I])}}var IS=/[\t\f\n\r, ]+/;class pr{[m];[v]=null;[A]=null;[I]=null;[j]=!1;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get x(){let e=((this[v]?this[v]():this[I])||"").split(IS);return e[0]?parseFloat(e[0]):0}set x(t){if(this[j])throw new this[m].TypeError("Failed to set the 'x' property on 'SVGPoint': The object is read-only.");if(this[I]=`${t} ${this.y}`,this[A])this[A](this[I])}get y(){let e=((this[v]?this[v]():this[I])||"").split(IS);return e[1]?parseFloat(e[1]):0}set y(t){if(this[j])throw new this[m].TypeError("Failed to set the 'y' property on 'SVGPoint': The object is read-only.");if(this[I]=`${this.x} ${t}`,this[A])this[A](this[I])}}var Ag;(function(t){t[t.unknown=0]="unknown",t[t.number=1]="number",t[t.percentage=2]="percentage",t[t.ems=3]="ems",t[t.exs=4]="exs",t[t.px=5]="px",t[t.cm=6]="cm",t[t.mm=7]="mm",t[t.in=8]="in",t[t.pt=9]="pt",t[t.pc=10]="pc"})(Ag||(Ag={}));var wt=Ag;var RS=/^(\d+|\d+\.\d+)(px|em|ex|cm|mm|in|pt|pc|%|)$/;class Ii{static SVG_LENGTHTYPE_UNKNOWN=wt.unknown;static SVG_LENGTHTYPE_NUMBER=wt.number;static SVG_LENGTHTYPE_PERCENTAGE=wt.percentage;static SVG_LENGTHTYPE_EMS=wt.ems;static SVG_LENGTHTYPE_EXS=wt.exs;static SVG_LENGTHTYPE_PX=wt.px;static SVG_LENGTHTYPE_CM=wt.cm;static SVG_LENGTHTYPE_MM=wt.mm;static SVG_LENGTHTYPE_IN=wt.in;static SVG_LENGTHTYPE_PT=wt.pt;static SVG_LENGTHTYPE_PC=wt.pc;[m];[v]=null;[A]=null;[I]=null;[j]=!1;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get unitType(){let e=(this[v]?this[v]()||"":this[I]||"").match(RS);if(!e)return wt.unknown;if(isNaN(parseFloat(e[1])))return wt.unknown;switch(e[2]){case"":return wt.number;case"px":return wt.px;case"cm":return wt.cm;case"mm":return wt.mm;case"in":return wt.in;case"pt":return wt.pt;case"pc":return wt.pc;case"em":case"ex":case"%":throw new this[m].TypeError("Failed to execute 'value' on 'SVGLength': Could not resolve relative length.");default:return wt.unknown}}get value(){let e=(this[v]?this[v]()||"":this[I]||"").match(RS);if(!e)return 0;let o=parseFloat(e[1]);if(isNaN(o))return 0;switch(e[2]){case"":return o;case"px":return o;case"cm":return o/2.54*96;case"mm":return o/25.4*96;case"in":return o*96;case"pt":return o*72;case"pc":return o*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[j])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="",o=t;switch(this.unitType){case wt.number:o=t,e="";break;case wt.px:o=t,e="px";break;case wt.cm:o=t/96*2.54,e="cm";break;case wt.mm:o=t/96*25.4,e="mm";break;case wt.in:o=t/96,e="in";break;case wt.pt:o=t/72,e="pt";break;case wt.pc:o=t/6,e="pc";break;case wt.percentage:case wt.ems:case wt.exs:throw new this[m].TypeError("Failed to set the 'value' property on 'SVGLength': Could not resolve relative length.");default:break}if(this[I]=String(o)+e,this[A])this[A](this[I])}get valueAsString(){return this[v]?this[v]()||"0":this[I]||"0"}get valueInSpecifiedUnits(){let t=this.valueAsString;return parseFloat(t)||0}newValueSpecifiedUnits(t,e){if(this[j])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 o="";switch(t){case wt.number:o="";break;case wt.px:o="px";break;case wt.cm:o="cm";break;case wt.mm:o="mm";break;case wt.in:o="in";break;case wt.pt:o="pt";break;case wt.pc:o="pc";break;case wt.ems:case wt.exs:case wt.percentage:throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Could not resolve relative length.");default:break}if(this[I]=String(e)+o,this[A])this[A](this[I])}convertToSpecifiedUnits(t){if(this[j])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,o="";switch(t){case wt.number:o="";break;case wt.px:o="px";break;case wt.cm:e=e/96*2.54,o="cm";break;case wt.mm:e=e/96*25.4,o="mm";break;case wt.in:e=e/96,o="in";break;case wt.pt:e=e/72,o="pt";break;case wt.pc:e=e/6,o="pc";break;case wt.percentage:case wt.ems:case wt.exs:throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': Could not resolve relative length.");default:break}if(this[I]=String(e)+o,this[A])this[A](this[I])}}var wg;(function(t){t[t.unknown=0]="unknown",t[t.unspecified=1]="unspecified",t[t.deg=2]="deg",t[t.rad=3]="rad",t[t.grad=4]="grad"})(wg||(wg={}));var we=wg;var FS=/^(\d+|\d+\.\d+)(deg|rad|grad|turn|)$/;class Sn{static SVG_ANGLETYPE_UNKNOWN=we.unknown;static SVG_ANGLETYPE_UNSPECIFIED=we.unspecified;static SVG_ANGLETYPE_DEG=we.deg;static SVG_ANGLETYPE_RAD=we.rad;static SVG_ANGLETYPE_GRAD=we.grad;[m];[v]=null;[A]=null;[I]="";[j]=!1;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get unitType(){let e=(this[v]?this[v]():this[I])?.match(FS);if(!e)return we.unknown;if(isNaN(parseFloat(e[1])))return we.unknown;switch(e[2]){case"":return we.unspecified;case"deg":return we.deg;case"rad":return we.rad;case"grad":return we.grad;case"turn":return we.unknown;default:return we.unspecified}}get value(){let e=(this[v]?this[v]():this[I])?.match(FS);if(!e)return 0;let o=parseFloat(e[1]);if(isNaN(o))return 0;switch(e[2]){case"":return o;case"deg":return o;case"rad":return o*(180/Math.PI);case"grad":return o*0.9;case"turn":return o*360;default:return o}}set value(t){if(this[j])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="",o=t;switch(this.unitType){case we.unspecified:o=t,e="";break;case we.deg:o=t,e="deg";break;case we.rad:o=t/(180/Math.PI),e="rad";break;case we.grad:o=t/0.9,e="grad";break;case we.unknown:o=t/360,e="turn";default:break}if(this[I]=String(o)+e,this[A])this[A](this[I])}get valueAsString(){return this[v]?this[v]()||"0":this[I]||"0"}get valueInSpecifiedUnits(){let t=this.valueAsString;return parseFloat(t)||0}newValueSpecifiedUnits(t,e){if(this[j])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 o="";switch(t){case we.unspecified:o="";break;case we.deg:o="deg";break;case we.rad:o="rad";break;case we.grad:o="grad";break;case we.unknown:o="turn";break;default:break}if(this[I]=String(e)+o,this[A])this[A](this[I])}convertToSpecifiedUnits(t){if(this[j])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,o="";switch(t){case we.unspecified:o="";break;case we.deg:o="deg";break;case we.rad:o="rad",e=e/(180/Math.PI);break;case we.grad:o="grad",e=e/0.9;break;case we.unknown:o="turn",e=e/360;break;default:break}if(this[I]=String(e)+o,this[A])this[A](this[I])}}class Ri{[m];[v]=null;[A]=null;[I]=null;[j]=!1;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get value(){let t=this[v]?this[v]():this[I];return parseFloat(t||"0")}set value(t){if(this[j])throw 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 TypeError("Failed to set the 'value' property on 'SVGNumber': The provided value is not a number.");if(this[I]=String(t),this[A])this[A](this[I]||"")}}class gl{[m];[v];[A];[se]=null;[ne]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){if(!this[ne])this[ne]=new Mi(h,this[m],{readOnly:!0,getAttribute:this[v]});return this[ne]}set animVal(t){}get baseVal(){if(!this[se])this[se]=new Mi(h,this[m],{getAttribute:this[v],setAttribute:this[A]});return this[se]}set baseVal(t){}}var Eg;(function(t){t[t.unknown=0]="unknown",t[t.meet=1]="meet",t[t.slice=2]="slice"})(Eg||(Eg={}));var fn=Eg;var xg;(function(t){t[t.unknown=0]="unknown",t[t.none=1]="none",t[t.xMinYMin=2]="xMinYMin",t[t.xMidYMin=3]="xMidYMin",t[t.xMaxYMin=4]="xMaxYMin",t[t.xMinYMid=5]="xMinYMid",t[t.xMidYMid=6]="xMidYMid",t[t.xMaxYMid=7]="xMaxYMid",t[t.xMinYMax=8]="xMinYMax",t[t.xMidYMax=9]="xMidYMax",t[t.xMaxYMax=10]="xMaxYMax"})(xg||(xg={}));var Ur=xg;var uh=Object.values(Ur);uh.length=uh.indexOf(0);var Bc=Object.values(fn);Bc.length=Bc.indexOf(0);class Sa{static SVG_MEETORSLICE_UNKNOWN=fn.unknown;static SVG_MEETORSLICE_MEET=fn.meet;static SVG_MEETORSLICE_SLICE=fn.slice;static SVG_PRESERVEASPECTRATIO_UNKNOWN=Ur.unknown;static SVG_PRESERVEASPECTRATIO_NONE=Ur.none;static SVG_PRESERVEASPECTRATIO_XMINYMIN=Ur.xMinYMin;static SVG_PRESERVEASPECTRATIO_XMIDYMIN=Ur.xMidYMin;static SVG_PRESERVEASPECTRATIO_XMAXYMIN=Ur.xMaxYMin;static SVG_PRESERVEASPECTRATIO_XMINYMID=Ur.xMinYMid;static SVG_PRESERVEASPECTRATIO_XMIDYMID=Ur.xMidYMid;static SVG_PRESERVEASPECTRATIO_XMAXYMID=Ur.xMaxYMid;static SVG_PRESERVEASPECTRATIO_XMINYMAX=Ur.xMinYMax;static SVG_PRESERVEASPECTRATIO_XMIDYMAX=Ur.xMidYMax;static SVG_PRESERVEASPECTRATIO_XMAXYMAX=Ur.xMaxYMax;[m];[v]=null;[A]=null;[I]=null;[j]=!1;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get align(){let t=this[v]?this[v]():this[I];if(!t)return Ur.xMidYMid;let e=t.split(/\s+/)[0];if(Ur[e]===void 0)return Ur.xMidYMid;return Ur[e]}set align(t){if(this[j])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>uh.length)throw new this[m].TypeError("Failed to set the 'align' property on 'SVGPreserveAspectRatio': The alignment provided is invalid.");if(this[I]=`${uh[e]} ${Bc[this.meetOrSlice]}`,this[A])this[A](this[I])}get meetOrSlice(){let t=this[v]?this[v]():this[I];if(!t)return fn.meet;let e=t.split(/\s+/)[1];if(!e||fn[e]===void 0)return fn.meet;return fn[e]}set meetOrSlice(t){if(this[j])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.");if(this[I]=`${uh[this.align]} ${Bc[e]}`,this[A])this[A](this[I])}}class yi{[m];[v];[A];[se]=null;[ne]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){if(!this[ne])this[ne]=new Sa(h,this[m],{readOnly:!0,getAttribute:this[v]});return this[ne]}set animVal(t){}get baseVal(){if(!this[se])this[se]=new Sa(h,this[m],{getAttribute:this[v],setAttribute:this[A]});return this[se]}set baseVal(t){}}class L{[m];[v];[A];[se]=null;[ne]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){if(!this[ne])this[ne]=new Ii(h,this[m],{readOnly:!0,getAttribute:this[v]});return this[ne]}set animVal(t){}get baseVal(){if(!this[se])this[se]=new Ii(h,this[m],{getAttribute:this[v],setAttribute:this[A]});return this[se]}set baseVal(t){}}class hh extends Ae{[ar]=null;[k]=null;[M]=null;[V]=null;[F]=null;[Qh]=1;[Qi]=null;get onafterprint(){return S.getEventListener(this,"onafterprint")}set onafterprint(t){this[p].set("onafterprint",t)}get onbeforeprint(){return S.getEventListener(this,"onbeforeprint")}set onbeforeprint(t){this[p].set("onbeforeprint",t)}get onbeforeunload(){return S.getEventListener(this,"onbeforeunload")}set onbeforeunload(t){this[p].set("onbeforeunload",t)}get ongamepadconnected(){return S.getEventListener(this,"ongamepadconnected")}set ongamepadconnected(t){this[p].set("ongamepadconnected",t)}get ongamepaddisconnected(){return S.getEventListener(this,"ongamepaddisconnected")}set ongamepaddisconnected(t){this[p].set("ongamepaddisconnected",t)}get onhashchange(){return S.getEventListener(this,"onhashchange")}set onhashchange(t){this[p].set("onhashchange",t)}get onlanguagechange(){return S.getEventListener(this,"onlanguagechange")}set onlanguagechange(t){this[p].set("onlanguagechange",t)}get onmessage(){return S.getEventListener(this,"onmessage")}set onmessage(t){this[p].set("onmessage",t)}get onmessageerror(){return S.getEventListener(this,"onmessageerror")}set onmessageerror(t){this[p].set("onmessageerror",t)}get onoffline(){return S.getEventListener(this,"onoffline")}set onoffline(t){this[p].set("onoffline",t)}get ononline(){return S.getEventListener(this,"ononline")}set ononline(t){this[p].set("ononline",t)}get onpagehide(){return S.getEventListener(this,"onpagehide")}set onpagehide(t){this[p].set("onpagehide",t)}get onpageshow(){return S.getEventListener(this,"onpageshow")}set onpageshow(t){this[p].set("onpageshow",t)}get onpopstate(){return S.getEventListener(this,"onpopstate")}set onpopstate(t){this[p].set("onpopstate",t)}get onrejectionhandled(){return S.getEventListener(this,"onrejectionhandled")}set onrejectionhandled(t){this[p].set("onrejectionhandled",t)}get onstorage(){return S.getEventListener(this,"onstorage")}set onstorage(t){this[p].set("onstorage",t)}get onunhandledrejection(){return S.getEventListener(this,"onunhandledrejection")}set onunhandledrejection(t){this[p].set("onunhandledrejection",t)}get onunload(){return S.getEventListener(this,"onunload")}set onunload(t){this[p].set("onunload",t)}get preserveAspectRatio(){if(!this[ar])this[ar]=new yi(h,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:(t)=>this.setAttribute("preserveAspectRatio",t)});return this[ar]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}get currentScale(){return this[Qh]}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.");if(e<1)return;this[Qh]=e}get currentTranslate(){return new pr(h,this[m])}get viewBox(){if(!this[Qi])this[Qi]=new gl(h,this[m],{getAttribute:()=>this.getAttribute("viewBox"),setAttribute:(t)=>this.setAttribute("viewBox",t)});return this[Qi]}pauseAnimations(){}unpauseAnimations(){}animationsPaused(){return!1}getCurrentTime(){return 0}setCurrentTime(t){}getIntersectionList(t,e){return new Yo(h,[])}getEnclosureList(t,e){return new Yo(h,[])}checkIntersection(t,e){return!1}checkEnclosure(t,e){return!1}deselectAll(){}createSVGNumber(){return new Ri(h,this[m])}createSVGLength(){return new Ii(h,this[m])}createSVGAngle(){return new Sn(h,this[m])}createSVGPoint(){return new pr(h,this[m])}createSVGMatrix(){return new rr(h,this[m])}createSVGRect(){return new Mi(h,this[m])}createSVGTransform(){return new jo(h,this[m])}createSVGTransformFromMatrix(t){let e=new jo(h,this[m]);return e.setMatrix(t),e}getElementsByClassName(t){return oe.getElementsByClassName(this,t)}getElementsByTagName(t){return oe.getElementsByTagName(this,t)}getElementsByTagNameNS(t,e){return oe.getElementsByTagNameNS(this,t,e)}getElementById(t){return oe.getElementById(this,t)}[ct](t=!1){return super[ct](t)}}class pi extends et{[Yi]=null;[Ki]=null;get onbegin(){return S.getEventListener(this,"onbegin")}set onbegin(t){this[p].set("onbegin",t)}get onend(){return S.getEventListener(this,"onend")}set onend(t){this[p].set("onend",t)}get onrepeat(){return S.getEventListener(this,"onrepeat")}set onrepeat(t){this[p].set("onrepeat",t)}get requiredExtensions(){if(!this[Yi])this[Yi]=new ki(h,this[m],{getAttribute:()=>this.getAttribute("requiredExtensions"),setAttribute:(t)=>this.setAttribute("requiredExtensions",t)});return this[Yi]}get systemLanguage(){if(!this[Ki])this[Ki]=new ki(h,this[m],{getAttribute:()=>this.getAttribute("systemLanguage"),setAttribute:(t)=>this.setAttribute("systemLanguage",t)});return this[Ki]}get targetElement(){return null}}class Oc extends pi{}class Gc extends pi{}class Uc extends pi{}class ut{[m];[v];[A];[mo]=0;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute,this[mo]=o.defaultValue||0}get animVal(){return this.baseVal}set animVal(t){}get baseVal(){let t=this[v]();if(!t)return this[mo];let e=parseFloat(t);if(isNaN(e))return this[mo];return 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[A](String(e))}}class Nr extends Ae{[Ym]=null;get pathLength(){if(!this[Ym])this[Ym]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("pathLength"),setAttribute:(t)=>this.setAttribute("pathLength",t)});return this[Ym]}isPointInFill(t){if(!(t instanceof pr))throw TypeError("Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.");return!1}isPointInStroke(t){if(!(t instanceof pr))throw TypeError("Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.");return!1}getTotalLength(){return 0}getPointAtLength(t){return new pr(h,this[m])}}class Hc extends Nr{[yo]=null;[po]=null;[zi]=null;get cx(){if(!this[yo])this[yo]=new L(h,this[m],{getAttribute:()=>this.getAttribute("cx"),setAttribute:(t)=>this.setAttribute("cx",t)});return this[yo]}get cy(){if(!this[po])this[po]=new L(h,this[m],{getAttribute:()=>this.getAttribute("cy"),setAttribute:(t)=>this.setAttribute("cy",t)});return this[po]}get r(){if(!this[zi])this[zi]=new L(h,this[m],{getAttribute:()=>this.getAttribute("r"),setAttribute:(t)=>this.setAttribute("r",t)});return this[zi]}}class Tt{[m];[v];[A];[Ze];[mo];constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute,this[Ze]=o.values,this[mo]=o.defaultValue}get animVal(){return this.baseVal}set animVal(t){}get baseVal(){let t=this[v]();if(!t)return this[Ze].indexOf(this[mo])+1;let e=this[Ze].indexOf(t);if(e===-1){let o=this[Ze].indexOf(null);return o!==-1?o+1:0}return e+1}set baseVal(t){let e=Number(t);if(isNaN(e))e=0;if(e<1)throw TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided is ${e}, which is not settable.`);if(e>this[Ze].length)throw TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided (${e}) is larger than the largest allowed value (${this[Ze].length}).`);let o=this[v](),s=this[Ze][e-1]===null,n=s?"0":this[Ze][e-1];if(!o||s&&this[Ze].includes(o)||!s&&o!==n)this[A](n||"")}}class Wc extends et{[Jm]=null;get clipPathUnits(){if(!this[Jm])this[Jm]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("clipPathUnits"),setAttribute:(t)=>this.setAttribute("clipPathUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"});return this[Jm]}}class _c extends Ae{}class Yc extends et{}class Kc extends Nr{[yo]=null;[po]=null;[$i]=null;[Xi]=null;get cx(){if(!this[yo])this[yo]=new L(h,this[m],{getAttribute:()=>this.getAttribute("cx"),setAttribute:(t)=>this.setAttribute("cx",t)});return this[yo]}get cy(){if(!this[po])this[po]=new L(h,this[m],{getAttribute:()=>this.getAttribute("cy"),setAttribute:(t)=>this.setAttribute("cy",t)});return this[po]}get rx(){if(!this[$i])this[$i]=new L(h,this[m],{getAttribute:()=>this.getAttribute("rx"),setAttribute:(t)=>this.setAttribute("rx",t)});return this[$i]}get ry(){if(!this[Xi])this[Xi]=new L(h,this[m],{getAttribute:()=>this.getAttribute("ry"),setAttribute:(t)=>this.setAttribute("ry",t)});return this[Xi]}}class nt{[m];[v];[A];constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){return this.baseVal}set animVal(t){}get baseVal(){let t=this[v]();if(!t)return"";return t}set baseVal(t){this[A](String(t))}}class Qc extends et{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;[at]=null;[uo]=null;[Ee]=null;[k]=null;[M]=null;[V]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get in2(){if(!this[uo])this[uo]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in2"),setAttribute:(t)=>this.setAttribute("in2",t)});return this[uo]}get mode(){if(!this[Ee])this[Ee]=new Tt(h,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"});return this[Ee]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}var pw=/[\t\f\n\r, ]+/;class Sl{[m];[v];[A];[j]=!1;[U]={items:[],attributeValue:""};constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,this[j]=!!o.readOnly,this[v]=o.getAttribute,this[A]=o.setAttribute,t!==h)throw TypeError("Illegal constructor");let s=new fe(this,[Sl]);return new Proxy(this,{get:(n,l)=>{if(l==="length"||l==="numberOfItems")return n[K]().length;if(l in n||typeof l==="symbol")return s.bind(l),n[l];let a=Number(l);if(!isNaN(a))return n[K]()[a]},set(n,l,a){if(s.bind(l),typeof l==="symbol")return n[l]=a,!0;let y=Number(l);if(isNaN(y))n[l]=a;return!0},deleteProperty(n,l){if(typeof l==="symbol")return delete n[l],!0;let a=Number(l);if(isNaN(a))delete n[l];return!0},ownKeys(n){return Object.keys(n[K]())},has(n,l){if(l in n)return!0;if(typeof l==="symbol")return!1;let a=Number(l);return!isNaN(a)&&a>=0&&a<n[K]().length},defineProperty(n,l,a){if(s.preventBinding(l),l in n)return Object.defineProperty(n,l,a),!0;return!1},getOwnPropertyDescriptor(n,l){if(l in n||typeof l==="symbol")return;let a=Number(l),y=n[K]();if(!isNaN(a)&&y[a])return{value:y[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[K]().length}get numberOfItems(){return this[K]().length}[Symbol.iterator](){return this[K]().values()}clear(){if(this[j])throw new this[m].TypeError("Failed to execute 'clear' on 'SVGNumberList': The object is read-only.");for(let t of this[U].items)t[v]=null,t[A]=null;this[U].items=[],this[U].attributeValue="",this[A]("")}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[j])throw new this[m].TypeError("Failed to execute 'initialize' on 'SVGNumberList': The object is read-only.");for(let e of this[U].items)e[v]=null,e[A]=null;return t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((e)=>e[I]||"0").join(" "),this[A](this[U].attributeValue)},this[U].items=[t],this[U].attributeValue=t[I],this[A](t[I]||""),t}getItem(t){let e=this[K]();if(typeof t==="number")return e[t]?e[t]:null;return t=Number(t),t=isNaN(t)?0:t,e[t]?e[t]:null}insertItemBefore(t,e){if(this[j])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 Ri))throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let o=this[K](),s=o.indexOf(t);if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>o.length)e=o.length;return o.splice(e,0,t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((n)=>n[I]||"0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((n)=>n[I]||"0").join(" "),this[A](this[U].attributeValue),t}replaceItem(t,e){if(this[j])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 Ri))throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let o=this[K](),s=o.indexOf(t);if(s===e)return t;if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>=o.length)e=o.length-1;if(o[e])o[e][v]=null,o[e][A]=null;let n=o[e];return o[e]=t,t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((l)=>l[I]||"0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((l)=>l[I]||"0").join(" "),this[A](this[U].attributeValue),n}removeItem(t){if(this[j])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[K]();if(t=Number(t),isNaN(t))t=0;if(t>=e.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${t}) is greater than the maximum bound.`,w.indexSizeError);if(t<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${t}) is negative.`,w.indexSizeError);let o=e[t];if(o)o[v]=null,o[A]=null;return e.splice(t,1),this[A](e.map((s)=>s[I]||"0").join(" ")),o}appendItem(t){if(this[j])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 Ri))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let e=this[K](),o=e.indexOf(t);if(o!==-1)e.splice(o,1);return e.push(t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((s)=>s[I]||"0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=e.map((s)=>s[I]||"0").join(" "),this[A](this[U].attributeValue),t}[K](){let t=this[v]()??"",e=this[U];if(e.attributeValue===t)return e.items;if(e.items.length)for(let n of e.items)n[v]=null,n[A]=null;let o=[],s=t.trim();if(s){let n=s.split(pw);for(let l=0,a=n.length;l<a;l++){let y=new Ri(h,this[m],{readOnly:this[j],getAttribute:()=>y[I],setAttribute:()=>{this[U].attributeValue=this[K]().map((u)=>u[I]||"0").join(" "),this[A](this[U].attributeValue)}});y[I]=String(parseFloat(n[l])),o.push(y)}}return e.attributeValue=t,e.items=o,o}}class Do{[m];[v];[A];[se]=null;[ne]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){if(!this[ne])this[ne]=new Sl(h,this[m],{readOnly:!0,getAttribute:this[v],setAttribute:()=>{}});return this[ne]}set animVal(t){}get baseVal(){if(!this[se])this[se]=new Sl(h,this[m],{getAttribute:this[v],setAttribute:this[A]});return this[se]}set baseVal(t){}}class jc extends et{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;[at]=null;[uo]=null;[Z]=null;[Qt]=null;[Ze]=null;[k]=null;[M]=null;[V]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get in2(){if(!this[uo])this[uo]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in2"),setAttribute:(t)=>this.setAttribute("in2",t)});return this[uo]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get type(){if(!this[Qt])this[Qt]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:(t)=>this.setAttribute("type",t),values:["matrix","saturate","huerotate","luminancetoalpha"],defaultValue:"matrix"});return this[Qt]}get values(){if(!this[Ze])this[Ze]=new Do(h,this[m],{getAttribute:()=>this.getAttribute("values"),setAttribute:(t)=>this.setAttribute("values",t)});return this[Ze]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class qc extends et{[F]=null;[at]=null;[Z]=null;[k]=null;[M]=null;[V]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class $c extends et{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;[at]=null;[Z]=null;[Qt]=null;[Ze]=null;[k]=null;[M]=null;[V]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get type(){if(!this[Qt])this[Qt]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:(t)=>this.setAttribute("type",t),values:["over","in","out","atop","xor","arithmetic"],defaultValue:"over"});return this[Qt]}get values(){if(!this[Ze])this[Ze]=new Do(h,this[m],{getAttribute:()=>this.getAttribute("values"),setAttribute:(t)=>this.setAttribute("values",t)});return this[Ze]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class gm{[m];[v];[A];constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){return this.baseVal}set animVal(t){}get baseVal(){return this[v]()==="true"}set baseVal(t){this[A](typeof t!=="boolean"?String(Boolean(t)):String(t))}}class Fi{[m];[v];[A];constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){return this.baseVal}set animVal(t){}get baseVal(){let t=this[v]();if(!t)return 0;let e=parseInt(t);if(isNaN(e))return 0;return 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[A](String(e))}}class Xc extends et{static SVG_EDGEMODE_UNKNOWN=0;static SVG_EDGEMODE_DUPLICATE=1;static SVG_EDGEMODE_WRAP=2;static SVG_EDGEMODE_NONE=3;[Sy]=null;[fy]=null;[is]=null;[F]=null;[at]=null;[Py]=null;[ho]=null;[co]=null;[Ay]=null;[wy]=null;[Ey]=null;[Z]=null;[xy]=null;[vy]=null;[V]=null;[k]=null;[M]=null;get bias(){if(!this[Sy])this[Sy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("bias"),setAttribute:(t)=>this.setAttribute("bias",t)});return this[Sy]}get divisor(){if(!this[fy])this[fy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("divisor"),setAttribute:(t)=>this.setAttribute("divisor",t)});return this[fy]}get edgeMode(){if(!this[is])this[is]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("edgeMode"),setAttribute:(t)=>this.setAttribute("edgeMode",t),values:["duplicate","wrap","none"],defaultValue:"duplicate"});return this[is]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get kernelMatrix(){if(!this[Py])this[Py]=new Do(h,this[m],{getAttribute:()=>this.getAttribute("kernelMatrix"),setAttribute:(t)=>this.setAttribute("kernelMatrix",t)});return this[Py]}get kernelUnitLengthX(){if(!this[ho])this[ho]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:(t)=>this.setAttribute("kernelUnitLengthX",t)});return this[ho]}get kernelUnitLengthY(){if(!this[co])this[co]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:(t)=>this.setAttribute("kernelUnitLengthY",t)});return this[co]}get orderX(){if(!this[Ay])this[Ay]=new Fi(h,this[m],{getAttribute:()=>this.getAttribute("orderX"),setAttribute:(t)=>this.setAttribute("orderX",t)});return this[Ay]}get orderY(){if(!this[wy])this[wy]=new Fi(h,this[m],{getAttribute:()=>this.getAttribute("orderY"),setAttribute:(t)=>this.setAttribute("orderY",t)});return this[wy]}get preserveAlpha(){if(!this[Ey])this[Ey]=new gm(h,this[m],{getAttribute:()=>this.getAttribute("preserveAlpha"),setAttribute:(t)=>this.setAttribute("preserveAlpha",t)});return this[Ey]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get targetX(){if(!this[xy])this[xy]=new Fi(h,this[m],{getAttribute:()=>this.getAttribute("targetX"),setAttribute:(t)=>this.setAttribute("targetX",t)});return this[xy]}get targetY(){if(!this[vy])this[vy]=new Fi(h,this[m],{getAttribute:()=>this.getAttribute("targetY"),setAttribute:(t)=>this.setAttribute("targetY",t)});return this[vy]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class zc extends et{[Ty]=null;[F]=null;[at]=null;[ho]=null;[co]=null;[Z]=null;[ss]=null;[V]=null;[k]=null;[M]=null;get diffuseConstant(){if(!this[Ty])this[Ty]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("diffuseConstant"),setAttribute:(t)=>this.setAttribute("diffuseConstant",t)});return this[Ty]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get kernelUnitLengthX(){if(!this[ho])this[ho]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:(t)=>this.setAttribute("kernelUnitLengthX",t)});return this[ho]}get kernelUnitLengthY(){if(!this[co])this[co]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:(t)=>this.setAttribute("kernelUnitLengthY",t)});return this[co]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get surfaceScale(){if(!this[ss])this[ss]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("surfaceScale"),setAttribute:(t)=>this.setAttribute("surfaceScale",t)});return this[ss]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class Jc extends et{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;[at]=null;[uo]=null;[Z]=null;[Cy]=null;[V]=null;[k]=null;[Ny]=null;[M]=null;[Ly]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get in2(){if(!this[uo])this[uo]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in2"),setAttribute:(t)=>this.setAttribute("in2",t)});return this[uo]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get scale(){if(!this[Cy])this[Cy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("scale"),setAttribute:(t)=>this.setAttribute("scale",t)});return this[Cy]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get xChannelSelector(){if(!this[Ny])this[Ny]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("xChannelSelector"),setAttribute:(t)=>this.setAttribute("xChannelSelector",t),values:["r","g","b","a"],defaultValue:"r"});return this[Ny]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}get yChannelSelector(){if(!this[Ly])this[Ly]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("yChannelSelector"),setAttribute:(t)=>this.setAttribute("yChannelSelector",t),values:["r","g","b","a"],defaultValue:"r"});return this[Ly]}}class Zc extends et{[ky]=null;[My]=null;get azimuth(){if(!this[ky])this[ky]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("azimuth"),setAttribute:(t)=>this.setAttribute("azimuth",t)});return this[ky]}get elevation(){if(!this[My])this[My]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("elevation"),setAttribute:(t)=>this.setAttribute("elevation",t)});return this[My]}}class td extends et{[bo]=null;[go]=null;[F]=null;[at]=null;[Z]=null;[ns]=null;[ls]=null;[V]=null;[k]=null;[M]=null;get dx(){if(!this[bo])this[bo]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("dx"),setAttribute:(t)=>this.setAttribute("dx",t)});return this[bo]}get dy(){if(!this[go])this[go]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("dy"),setAttribute:(t)=>this.setAttribute("dy",t)});return this[go]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get stdDeviationX(){if(!this[ns])this[ns]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("stdDeviationX"),setAttribute:(t)=>this.setAttribute("stdDeviationX",t),defaultValue:2});return this[ns]}get stdDeviationY(){if(!this[ls])this[ls]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("stdDeviationY"),setAttribute:(t)=>this.setAttribute("stdDeviationY",t),defaultValue:2});return this[ls]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}setStdDeviation(t,e){this.stdDeviationX.baseVal=t,this.stdDeviationY.baseVal=e}}class ed extends et{[F]=null;[Z]=null;[V]=null;[k]=null;[M]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class ui extends et{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;[Qt]=null;[Iy]=null;[Ry]=null;[Fy]=null;[Vy]=null;[Dy]=null;[rs]=null;get type(){if(!this[Qt])this[Qt]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:(t)=>this.setAttribute("type",t),values:["identity","table","discrete","linear","gamma"],defaultValue:"identity"});return this[Qt]}get tableValues(){if(!this[Iy])this[Iy]=new Do(h,this[m],{getAttribute:()=>this.getAttribute("tableValues"),setAttribute:(t)=>this.setAttribute("tableValues",t)});return this[Iy]}get slope(){if(!this[Ry])this[Ry]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("slope"),setAttribute:(t)=>this.setAttribute("slope",t),defaultValue:1});return this[Ry]}get intercept(){if(!this[Fy])this[Fy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("intercept"),setAttribute:(t)=>this.setAttribute("intercept",t)});return this[Fy]}get amplitude(){if(!this[Vy])this[Vy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("amplitude"),setAttribute:(t)=>this.setAttribute("amplitude",t),defaultValue:1});return this[Vy]}get exponent(){if(!this[Dy])this[Dy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("exponent"),setAttribute:(t)=>this.setAttribute("exponent",t),defaultValue:1});return this[Dy]}get offset(){if(!this[rs])this[rs]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("offset"),setAttribute:(t)=>this.setAttribute("offset",t)});return this[rs]}}class rd extends ui{}class od extends ui{}class id extends ui{}class sd extends ui{}class nd extends et{static SVG_EDGEMODE_UNKNOWN=0;static SVG_EDGEMODE_DUPLICATE=1;static SVG_EDGEMODE_WRAP=2;static SVG_EDGEMODE_NONE=3;[is]=null;[F]=null;[at]=null;[Z]=null;[ns]=null;[ls]=null;[V]=null;[k]=null;[M]=null;get edgeMode(){if(!this[is])this[is]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("edgeMode"),setAttribute:(t)=>this.setAttribute("edgeMode",t),values:["duplicate","wrap","none"],defaultValue:"duplicate"});return this[is]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get stdDeviationX(){if(!this[ns])this[ns]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("stdDeviationX")||"2",setAttribute:(t)=>this.setAttribute("stdDeviationX",t)});return this[ns]}get stdDeviationY(){if(!this[ls])this[ls]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("stdDeviationY")||"2",setAttribute:(t)=>this.setAttribute("stdDeviationY",t)});return this[ls]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}setStdDeviation(t,e){this.stdDeviationX.baseVal=t,this.stdDeviationY.baseVal=e}}class ld extends et{[Og]=null;[F]=null;[Lt]=null;[ar]=null;[Z]=null;[V]=null;[k]=null;[M]=null;get crossOrigin(){return this.getAttribute("crossorigin")}set crossOrigin(t){this.setAttribute("crossorigin",t)}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}get preserveAspectRatio(){if(!this[ar])this[ar]=new yi(h,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:(t)=>this.setAttribute("preserveAspectRatio",t)});return this[ar]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class ad extends et{[F]=null;[Z]=null;[V]=null;[k]=null;[M]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class md extends et{[at]=null;get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}}class yd extends et{static SVG_MORPHOLOGY_OPERATOR_UNKNOWN=0;static SVG_MORPHOLOGY_OPERATOR_ERODE=1;static SVG_MORPHOLOGY_OPERATOR_DILATE=2;[F]=null;[at]=null;[By]=null;[Oy]=null;[Gy]=null;[Z]=null;[V]=null;[k]=null;[M]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get operator(){if(!this[By])this[By]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("operator"),setAttribute:(t)=>this.setAttribute("operator",t),values:["erode","dilate"],defaultValue:"erode"});return this[By]}get radiusX(){if(!this[Oy])this[Oy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("radiusX"),setAttribute:(t)=>this.setAttribute("radiusX",t)});return this[Oy]}get radiusY(){if(!this[Gy])this[Gy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("radiusY"),setAttribute:(t)=>this.setAttribute("radiusY",t)});return this[Gy]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class pd extends et{[F]=null;[at]=null;[bo]=null;[go]=null;[Z]=null;[V]=null;[k]=null;[M]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get dx(){if(!this[bo])this[bo]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("dx"),setAttribute:(t)=>this.setAttribute("dx",t)});return this[bo]}get dy(){if(!this[go])this[go]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("dy"),setAttribute:(t)=>this.setAttribute("dy",t)});return this[go]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class ud extends et{[k]=null;[M]=null;[Ir]=null;get x(){if(!this[k])this[k]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}get z(){if(!this[Ir])this[Ir]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("z"),setAttribute:(t)=>this.setAttribute("z",t)});return this[Ir]}}class hd extends et{[F]=null;[at]=null;[ho]=null;[co]=null;[Z]=null;[Uy]=null;[as]=null;[ss]=null;[V]=null;[k]=null;[M]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get kernelUnitLengthX(){if(!this[ho])this[ho]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:(t)=>this.setAttribute("kernelUnitLengthX",t)});return this[ho]}get kernelUnitLengthY(){if(!this[co])this[co]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:(t)=>this.setAttribute("kernelUnitLengthY",t)});return this[co]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get specularConstant(){if(!this[Uy])this[Uy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("specularConstant"),setAttribute:(t)=>this.setAttribute("specularConstant",t),defaultValue:1});return this[Uy]}get specularExponent(){if(!this[as])this[as]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("specularExponent"),setAttribute:(t)=>this.setAttribute("specularExponent",t),defaultValue:1});return this[as]}get surfaceScale(){if(!this[ss])this[ss]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("surfaceScale"),setAttribute:(t)=>this.setAttribute("surfaceScale",t),defaultValue:1});return this[ss]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class cd extends et{[k]=null;[M]=null;[Ir]=null;[Hy]=null;[Wy]=null;[_y]=null;[as]=null;[Yy]=null;get x(){if(!this[k])this[k]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}get z(){if(!this[Ir])this[Ir]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("z"),setAttribute:(t)=>this.setAttribute("z",t)});return this[Ir]}get pointsAtX(){if(!this[Hy])this[Hy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("pointsAtX"),setAttribute:(t)=>this.setAttribute("pointsAtX",t)});return this[Hy]}get pointsAtY(){if(!this[Wy])this[Wy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("pointsAtY"),setAttribute:(t)=>this.setAttribute("pointsAtY",t)});return this[Wy]}get pointsAtZ(){if(!this[_y])this[_y]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("pointsAtZ"),setAttribute:(t)=>this.setAttribute("pointsAtZ",t)});return this[_y]}get specularExponent(){if(!this[as])this[as]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("specularExponent"),setAttribute:(t)=>this.setAttribute("specularExponent",t),defaultValue:1});return this[as]}get limitingConeAngle(){if(!this[Yy])this[Yy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("limitingConeAngle"),setAttribute:(t)=>this.setAttribute("limitingConeAngle",t)});return this[Yy]}}class dd extends et{[F]=null;[at]=null;[Z]=null;[V]=null;[k]=null;[M]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class bd extends et{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;[Ky]=null;[Qy]=null;[F]=null;[jy]=null;[Z]=null;[qy]=null;[$y]=null;[Qt]=null;[V]=null;[k]=null;[M]=null;get baseFrequencyX(){if(!this[Ky])this[Ky]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("baseFrequencyX"),setAttribute:(t)=>this.setAttribute("baseFrequencyX",t)});return this[Ky]}get baseFrequencyY(){if(!this[Qy])this[Qy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("baseFrequencyY"),setAttribute:(t)=>this.setAttribute("baseFrequencyY",t)});return this[Qy]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get numOctaves(){if(!this[jy])this[jy]=new Fi(h,this[m],{getAttribute:()=>this.getAttribute("numOctaves"),setAttribute:(t)=>this.setAttribute("numOctaves",t)});return this[jy]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get seed(){if(!this[qy])this[qy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("seed"),setAttribute:(t)=>this.setAttribute("seed",t)});return this[qy]}get stitchTiles(){if(!this[$y])this[$y]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("stitchTiles"),setAttribute:(t)=>this.setAttribute("stitchTiles",t),values:["stitch","noStitch"],defaultValue:"stitch"});return this[$y]}get type(){if(!this[Qt])this[Qt]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:(t)=>this.setAttribute("type",t),values:["fractalNoise","turbulence"],defaultValue:"turbulence"});return this[Qt]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class gd extends et{[Lt]=null;[ey]=null;[ry]=null;[k]=null;[M]=null;[V]=null;[F]=null;get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}get filterUnits(){if(!this[ey])this[ey]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("filterUnits"),setAttribute:(t)=>this.setAttribute("filterUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"});return this[ey]}get primitiveUnits(){if(!this[ry])this[ry]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("primitiveUnits"),setAttribute:(t)=>this.setAttribute("primitiveUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"});return this[ry]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class Sd extends Ae{[k]=null;[M]=null;[V]=null;[F]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class fd extends Ae{}class Pd extends Ae{[Lt]=null;[ar]=null;[k]=null;[M]=null;[V]=null;[F]=null;get crossOrigin(){return this.getAttribute("crossorigin")}set crossOrigin(t){this.setAttribute("crossorigin",t)}get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}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(){if(!this[ar])this[ar]=new yi(h,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:(t)=>this.setAttribute("preserveAspectRatio",t)});return this[ar]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}decode(){return Promise.resolve()}}class Ad extends Nr{[Ji]=null;[Zi]=null;[ts]=null;[es]=null;get x1(){if(!this[Ji])this[Ji]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x1"),setAttribute:(t)=>this.setAttribute("x1",t)});return this[Ji]}get y1(){if(!this[Zi])this[Zi]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y1"),setAttribute:(t)=>this.setAttribute("y1",t)});return this[Zi]}get x2(){if(!this[ts])this[ts]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x2"),setAttribute:(t)=>this.setAttribute("x2",t)});return this[ts]}get y2(){if(!this[es])this[es]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y2"),setAttribute:(t)=>this.setAttribute("y2",t)});return this[es]}}class fl extends Ae{static SVG_SPREADMETHOD_UNKNOWN=0;static SVG_SPREADMETHOD_PAD=1;static SVG_SPREADMETHOD_REFLECT=2;static SVG_SPREADMETHOD_REPEAT=3;[Lt]=null;[oy]=null;[iy]=null;[sy]=null;get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}get gradientUnits(){if(!this[oy])this[oy]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("gradientUnits"),setAttribute:(t)=>this.setAttribute("gradientUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"objectBoundingBox"});return this[oy]}get gradientTransform(){if(!this[iy])this[iy]=new vs(h,this[m],{getAttribute:()=>this.getAttribute("gradientTransform"),setAttribute:(t)=>this.setAttribute("gradientTransform",t)});return this[iy]}get spreadMethod(){if(!this[sy])this[sy]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("spreadMethod"),setAttribute:(t)=>this.setAttribute("spreadMethod",t),values:["pad","reflect","repeat"],defaultValue:"pad"});return this[sy]}}class wd extends fl{[Ji]=null;[Zi]=null;[ts]=null;[es]=null;get x1(){if(!this[Ji])this[Ji]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x1"),setAttribute:(t)=>this.setAttribute("x1",t)});return this[Ji]}get y1(){if(!this[Zi])this[Zi]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y1"),setAttribute:(t)=>this.setAttribute("y1",t)});return this[Zi]}get x2(){if(!this[ts])this[ts]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x2"),setAttribute:(t)=>this.setAttribute("x2",t)});return this[ts]}get y2(){if(!this[es])this[es]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y2"),setAttribute:(t)=>this.setAttribute("y2",t)});return this[es]}}class Sm{[m];[v];[A];[se]=null;[ne]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){if(!this[ne])this[ne]=new Sn(h,this[m],{readOnly:!0,getAttribute:this[v]});return this[ne]}set animVal(t){}get baseVal(){if(!this[se])this[se]=new Sn(h,this[m],{getAttribute:this[v],setAttribute:this[A]});return this[se]}set baseVal(t){}}class Ed extends et{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;[Km]=null;[Qm]=null;[jm]=null;[qm]=null;[$m]=null;[Xm]=null;[zm]=null;[Qi]=null;[ar]=null;get markerUnits(){if(!this[Km])this[Km]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("markerUnits"),setAttribute:(t)=>this.setAttribute("markerUnits",t),values:["userSpaceOnUse","strokeWidth"],defaultValue:"strokeWidth"});return this[Km]}get markerWidth(){if(!this[Qm])this[Qm]=new L(h,this[m],{getAttribute:()=>this.getAttribute("markerWidth"),setAttribute:(t)=>this.setAttribute("markerWidth",t)});return this[Qm]}get markerHeight(){if(!this[jm])this[jm]=new L(h,this[m],{getAttribute:()=>this.getAttribute("markerHeight"),setAttribute:(t)=>this.setAttribute("markerHeight",t)});return this[jm]}get orientType(){if(!this[qm])this[qm]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("orient"),setAttribute:(t)=>this.setAttribute("orient",t),values:["auto",null],defaultValue:"auto"});return this[qm]}get orientAngle(){if(!this[$m])this[$m]=new Sm(h,this[m],{getAttribute:()=>this.getAttribute("orient"),setAttribute:(t)=>this.setAttribute("orient",t)});return this[$m]}get refX(){if(!this[Xm])this[Xm]=new L(h,this[m],{getAttribute:()=>this.getAttribute("refX"),setAttribute:(t)=>this.setAttribute("refX",t)});return this[Xm]}get refY(){if(!this[zm])this[zm]=new L(h,this[m],{getAttribute:()=>this.getAttribute("refY"),setAttribute:(t)=>this.setAttribute("refY",t)});return this[zm]}get viewBox(){if(!this[Qi])this[Qi]=new gl(h,this[m],{getAttribute:()=>this.getAttribute("viewBox"),setAttribute:(t)=>this.setAttribute("viewBox",t)});return this[Qi]}get preserveAspectRatio(){if(!this[ar])this[ar]=new yi(h,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:(t)=>this.setAttribute("preserveAspectRatio",t)});return this[ar]}setOrientToAuto(){this.setAttribute("orient","auto")}setOrientToAngle(t){this.setAttribute("orient",t.valueAsString)}}class xd extends et{[Zm]=null;[ty]=null;[k]=null;[M]=null;[V]=null;[F]=null;get maskUnits(){if(!this[Zm])this[Zm]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("maskUnits"),setAttribute:(t)=>this.setAttribute("maskUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"});return this[Zm]}get maskContentUnits(){if(!this[ty])this[ty]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("maskContentUnits"),setAttribute:(t)=>this.setAttribute("maskContentUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"});return this[ty]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class vd extends et{}class Td extends et{[Lt]=null;get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}}class Cd extends Nr{}class Nd extends et{[Lt]=null;[ny]=null;[ly]=null;[ay]=null;[k]=null;[M]=null;[V]=null;[F]=null;get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}get patternUnits(){if(!this[ny])this[ny]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("patternUnits"),setAttribute:(t)=>this.setAttribute("patternUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"objectBoundingBox"});return this[ny]}get patternContentUnits(){if(!this[ly])this[ly]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("patternContentUnits"),setAttribute:(t)=>this.setAttribute("patternContentUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"});return this[ly]}get patternTransform(){if(!this[ay])this[ay]=new vs(h,this[m],{getAttribute:()=>this.getAttribute("patternTransform"),setAttribute:(t)=>this.setAttribute("patternTransform",t)});return this[ay]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}var uw=/[\t\f\n\r, ]+/;class Vi{[m];[v];[A];[j]=!1;[U]={items:[],attributeValue:""};constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[j]=!!o.readOnly,this[v]=o.getAttribute,this[A]=o.setAttribute;let s=new fe(this,[Vi]);return new Proxy(this,{get:(n,l)=>{if(l==="length"||l==="numberOfItems")return n[K]().length;if(l in n||typeof l==="symbol")return s.bind(l),n[l];let a=Number(l);if(!isNaN(a))return n[K]()[a]},set(n,l,a){if(s.bind(l),typeof l==="symbol")return n[l]=a,!0;let y=Number(l);if(isNaN(y))n[l]=a;return!0},deleteProperty(n,l){if(typeof l==="symbol")return delete n[l],!0;let a=Number(l);if(isNaN(a))delete n[l];return!0},ownKeys(n){return Object.keys(n[K]())},has(n,l){if(l in n)return!0;if(typeof l==="symbol")return!1;let a=Number(l);return!isNaN(a)&&a>=0&&a<n[K]().length},defineProperty(n,l,a){if(s.preventBinding(l),l in n)return Object.defineProperty(n,l,a),!0;return!1},getOwnPropertyDescriptor(n,l){if(l in n||typeof l==="symbol")return;let a=Number(l),y=n[K]();if(!isNaN(a)&&y[a])return{value:y[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[K]().length}get numberOfItems(){return this[K]().length}[Symbol.iterator](){return this[K]().values()}clear(){if(this[j])throw new this[m].TypeError("Failed to execute 'clear' on 'SVGPointList': The object is read-only.");for(let t of this[U].items)t[v]=null,t[A]=null;this[U].items=[],this[U].attributeValue="",this[A]("")}initialize(t){if(this[j])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 pr))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");for(let e of this[U].items)e[v]=null,e[A]=null;return t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((e)=>e[I]||"0 0").join(" "),this[A](this[U].attributeValue)},this[U].items=[t],this[U].attributeValue=t[I],this[A](t[I]||""),t}getItem(t){let e=this[K]();if(typeof t==="number")return e[t]?e[t]:null;return t=Number(t),t=isNaN(t)?0:t,e[t]?e[t]:null}insertItemBefore(t,e){if(this[j])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 pr))throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let o=this[K](),s=o.indexOf(t);if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>o.length)e=o.length;return o.splice(e,0,t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((n)=>n[I]||"0 0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((n)=>n[I]||"0 0").join(" "),this[A](this[U].attributeValue),t}replaceItem(t,e){if(this[j])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 pr))throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let o=this[K](),s=o.indexOf(t);if(s===e)return t;if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>=o.length)e=o.length-1;if(o[e])o[e][v]=null,o[e][A]=null;let n=o[e];return o[e]=t,t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((l)=>l[I]||"0 0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((l)=>l[I]||"0 0").join(" "),this[A](this[U].attributeValue),n}removeItem(t){if(this[j])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[K]();if(t=Number(t),isNaN(t))t=0;if(t>=e.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${t}) is greater than the maximum bound.`,w.indexSizeError);if(t<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${t}) is negative.`,w.indexSizeError);let o=e[t];if(o)o[v]=null,o[A]=null;return e.splice(t,1),this[A](e.map((s)=>s[I]||"0 0").join(" ")),o}appendItem(t){if(this[j])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 pr))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let e=this[K](),o=e.indexOf(t);if(o!==-1)e.splice(o,1);return e.push(t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((s)=>s[I]||"0 0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=e.map((s)=>s[I]||"0 0").join(" "),this[A](this[U].attributeValue),t}[K](){let t=this[v]()??"",e=this[U];if(e.attributeValue===t)return e.items;if(e.items.length)for(let n of e.items)n[v]=null,n[A]=null;let o=[],s=t.trim();if(s){let n=s.split(uw);for(let l=0,a=n.length;l<a;l+=2){let y=parseFloat(n[l]),u=n[l+1]!==void 0?" "+parseFloat(n[l+1]):"",c=new pr(h,this[m],{readOnly:this[j],getAttribute:()=>c[I],setAttribute:()=>{this[U].attributeValue=this[K]().map((d)=>d[I]||"0 0").join(" "),this[A](this[U].attributeValue)}});c[I]=`${y}${u}`,o.push(c)}}return e.attributeValue=t,e.items=o,o}}class Ld extends Nr{[ji]=null;[qi]=null;get animatedPoints(){if(!this[ji])this[ji]=new Vi(h,this[m],{readOnly:!0,getAttribute:()=>this.getAttribute("points"),setAttribute:()=>{}});return this[ji]}get points(){if(!this[qi])this[qi]=new Vi(h,this[m],{getAttribute:()=>this.getAttribute("points"),setAttribute:(t)=>this.setAttribute("points",t)});return this[qi]}}class kd extends Nr{[ji]=null;[qi]=null;get animatedPoints(){if(!this[ji])this[ji]=new Vi(h,this[m],{readOnly:!0,getAttribute:()=>this.getAttribute("points"),setAttribute:()=>{}});return this[ji]}get points(){if(!this[qi])this[qi]=new Vi(h,this[m],{getAttribute:()=>this.getAttribute("points"),setAttribute:(t)=>this.setAttribute("points",t)});return this[qi]}}class Md extends fl{[yo]=null;[po]=null;[zi]=null;[my]=null;[yy]=null;get cx(){if(!this[yo])this[yo]=new L(h,this[m],{getAttribute:()=>this.getAttribute("cx"),setAttribute:(t)=>this.setAttribute("cx",t)});return this[yo]}get cy(){if(!this[po])this[po]=new L(h,this[m],{getAttribute:()=>this.getAttribute("cy"),setAttribute:(t)=>this.setAttribute("cy",t)});return this[po]}get r(){if(!this[zi])this[zi]=new L(h,this[m],{getAttribute:()=>this.getAttribute("r"),setAttribute:(t)=>this.setAttribute("r",t)});return this[zi]}get fx(){if(!this[my])this[my]=new L(h,this[m],{getAttribute:()=>this.getAttribute("fx"),setAttribute:(t)=>this.setAttribute("fx",t)});return this[my]}get fy(){if(!this[yy])this[yy]=new L(h,this[m],{getAttribute:()=>this.getAttribute("fy"),setAttribute:(t)=>this.setAttribute("fy",t)});return this[yy]}}class Id extends Nr{[k]=null;[M]=null;[V]=null;[F]=null;[$i]=null;[Xi]=null;get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get rx(){if(!this[$i])this[$i]=new L(h,this[m],{getAttribute:()=>this.getAttribute("rx"),setAttribute:(t)=>this.setAttribute("rx",t)});return this[$i]}get ry(){if(!this[Xi])this[Xi]=new L(h,this[m],{getAttribute:()=>this.getAttribute("ry"),setAttribute:(t)=>this.setAttribute("ry",t)});return this[Xi]}}class Rd extends Ae{[Lt]=null;get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}}class Fd extends pi{}class Vd extends et{[rs]=null;get offset(){if(!this[rs])this[rs]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("offset"),setAttribute:(t)=>this.setAttribute("offset",t)});return this[rs]}}class Dd extends et{[Be]=null;[dr]=this;[_n]=!1;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[_n]}set disabled(t){this[_n]=Boolean(t)}get sheet(){if(!this[tt])return null;if(!this[Be])this[Be]=new this[x][m].CSSStyleSheet,this[Be].replaceSync(this.textContent);return this[Be]}[nr](){super[nr](),this[Be]=null}[At](){super[At](),this[Be]=null}[Vn](){if(this[Be])this[Be].replaceSync(this.textContent)}}class Bd extends Ae{}class Od extends Ae{}class fm extends Ae{static LENGTHADJUST_UNKNOWN=0;static LENGTHADJUST_SPACING=1;static LENGTHADJUST_SPACINGANDGLYPHS=2;[py]=null;[uy]=null;get textLength(){if(!this[py])this[py]=new L(h,this[m],{getAttribute:()=>this.getAttribute("textLength"),setAttribute:(t)=>this.setAttribute("textLength",t)});return this[py]}get lengthAdjust(){if(!this[uy])this[uy]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("lengthAdjust"),setAttribute:(t)=>this.setAttribute("lengthAdjust",t),values:["spacing","spacingAndGlyphs"],defaultValue:"spacing"});return this[uy]}getNumberOfChars(){return 0}getComputedTextLength(){return 0}getSubStringLength(t,e){return 0}getStartPositionOfChar(t){return new pr(h,this[m])}getEndPositionOfChar(t){return new pr(h,this[m])}getExtentOfChar(t){return new Mi(h,this[m])}getRotationOfChar(t){return 0}getCharNumAtPosition(t){return 0}}var hw=/[\t\f\n\r, ]+/;class Pl{[m];[v];[A];[j]=!1;[U]={items:[],attributeValue:""};constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[j]=!!o.readOnly,this[v]=o.getAttribute,this[A]=o.setAttribute;let s=new fe(this,[Pl]);return new Proxy(this,{get:(n,l)=>{if(l==="length"||l==="numberOfItems")return n[K]().length;if(l in n||typeof l==="symbol")return s.bind(l),n[l];let a=Number(l);if(!isNaN(a))return n[K]()[a]},set(n,l,a){if(s.bind(l),typeof l==="symbol")return n[l]=a,!0;let y=Number(l);if(isNaN(y))n[l]=a;return!0},deleteProperty(n,l){if(typeof l==="symbol")return delete n[l],!0;let a=Number(l);if(isNaN(a))delete n[l];return!0},ownKeys(n){return Object.keys(n[K]())},has(n,l){if(l in n)return!0;if(typeof l==="symbol")return!1;let a=Number(l);return!isNaN(a)&&a>=0&&a<n[K]().length},defineProperty(n,l,a){if(s.preventBinding(l),l in n)return Object.defineProperty(n,l,a),!0;return!1},getOwnPropertyDescriptor(n,l){if(l in n||typeof l==="symbol")return;let a=Number(l),y=n[K]();if(!isNaN(a)&&y[a])return{value:y[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[K]().length}get numberOfItems(){return this[K]().length}[Symbol.iterator](){return this[K]().values()}clear(){this[A]("")}initialize(t){if(this[j])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[U].items)e[v]=null,e[A]=null;return t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((e)=>e[I]??"0").join(" "),this[A](this[U].attributeValue)},this[U].items=[t],this[U].attributeValue=t[I],this[A](t[I]||""),t}getItem(t){let e=this[K]();if(typeof t==="number")return e[t]?e[t]:null;return t=Number(t),t=isNaN(t)?0:t,e[t]?e[t]:null}insertItemBefore(t,e){if(this[j])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 o=this[K](),s=o.indexOf(t);if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>o.length)e=o.length;return o.splice(e,0,t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((n)=>n[I]??"0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((n)=>n[I]??"0").join(" "),this[A](this[U].attributeValue),t}replaceItem(t,e){if(this[j])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 o=this[K](),s=o.indexOf(t);if(s===e)return t;if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>=o.length)e=o.length-1;if(o[e])o[e][v]=null,o[e][A]=null;let n=o[e];return o[e]=t,t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((l)=>l[I]??"0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((l)=>l[I]??"0").join(" "),this[A](this[U].attributeValue),n}removeItem(t){if(this[j])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[K]();if(t=Number(t),isNaN(t))t=0;if(t>=e.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${t}) is greater than the maximum bound.`,w.indexSizeError);if(t<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${t}) is negative.`,w.indexSizeError);let o=e[t];if(o)o[v]=null,o[A]=null;return e.splice(t,1),this[A](e.map((s)=>s[I]??"0").join(" ")),o}appendItem(t){if(this[j])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[K](),o=e.indexOf(t);if(o!==-1)e.splice(o,1);return e.push(t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((s)=>s[I]??"0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=e.map((s)=>s[I]??"0").join(" "),this[A](this[U].attributeValue),t}[K](){let t=this[v]()??"",e=this[U];if(e.attributeValue===t)return e.items;if(e.items.length)for(let n of e.items)n[v]=null,n[A]=null;let o=[],s=t.trim();if(s){let n=s.split(hw);for(let l=0,a=n.length;l<a;l++){let y=new Ii(h,this[m],{readOnly:this[j],getAttribute:()=>y[I],setAttribute:(u)=>{y[I]=u;let c=o.map((d)=>d[I]??"0").join(" ");e.attributeValue=c,this[A](c)}});y[I]=n[l],o.push(y)}}return e.attributeValue=t,e.items=o,o}}class Pn{[m];[v];[A];[se]=null;[ne]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){if(!this[ne])this[ne]=new Pl(h,this[m],{readOnly:!0,getAttribute:this[v],setAttribute:this[A]});return this[ne]}set animVal(t){}get baseVal(){if(!this[se])this[se]=new Pl(h,this[m],{getAttribute:this[v],setAttribute:this[A]});return this[se]}set baseVal(t){}}class Al extends fm{[k]=null;[M]=null;[bo]=null;[go]=null;[tp]=null;get x(){if(!this[k])this[k]=new Pn(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new Pn(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}get dx(){if(!this[bo])this[bo]=new Pn(h,this[m],{getAttribute:()=>this.getAttribute("dx"),setAttribute:(t)=>this.setAttribute("dx",t)});return this[bo]}get dy(){if(!this[go])this[go]=new Pn(h,this[m],{getAttribute:()=>this.getAttribute("dy"),setAttribute:(t)=>this.setAttribute("dy",t)});return this[go]}get rotate(){if(!this[tp])this[tp]=new Do(h,this[m],{getAttribute:()=>this.getAttribute("rotate"),setAttribute:(t)=>this.setAttribute("rotate",t)});return this[tp]}}class Gd extends Al{}class Ud extends fm{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;[Lt]=null;[by]=null;[Ks]=null;[gy]=null;get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}get startOffset(){if(!this[by])this[by]=new L(h,this[m],{getAttribute:()=>this.getAttribute("startOffset"),setAttribute:(t)=>this.setAttribute("startOffset",t)});return this[by]}get method(){if(!this[Ks])this[Ks]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("method"),setAttribute:(t)=>this.setAttribute("method",t),values:["align","stretch"],defaultValue:"align"});return this[Ks]}get spacing(){if(!this[gy])this[gy]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("spacing"),setAttribute:(t)=>this.setAttribute("spacing",t),values:["auto","exact"],defaultValue:"exact"});return this[gy]}}class Hd extends et{}class Wd extends Al{}class _d extends Ae{[Lt]=null;[k]=null;[M]=null;[V]=null;[F]=null;get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}}class Yd extends et{}class Kd{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!==h)throw TypeError("Illegal constructor")}}class Qd{window;constructor(t){this.window=t}enqueueReaction(t,e,o){let s=this.window.customElements[gi]?.get(t.localName);if(!s)return;if(t[x]!==this.window.document)return;switch(e){case"connectedCallback":if(s.lifecycleCallbacks.connectedCallback){let n=s.lifecycleCallbacks.connectedCallback?.call(t);if(n instanceof Promise){let l=new it(this.window).getAsyncTaskManager();if(l){let a=l.startTask();n.then(()=>l.endTask(a)).catch(()=>l.endTask(a))}}}break;case"disconnectedCallback":if(s.lifecycleCallbacks.disconnectedCallback)s.lifecycleCallbacks.disconnectedCallback.call(t);break;case"attributeChangedCallback":if(s.lifecycleCallbacks.attributeChangedCallback&&o?.length&&s.observedAttributes.has(o[0]))s.lifecycleCallbacks.attributeChangedCallback.apply(t,o);break}}}class ch extends N{state;hasUAVisualTransition;constructor(t,e=null){super(t);this.state=e?.state??null,this.hasUAVisualTransition=e?.hasUAVisualTransition??!1}}class jd extends N{code;reason;wasClean;constructor(t,e=null){super(t,e);this.code=e?.code??0,this.reason=e?.reason??"",this.wasClean=e?.wasClean??!1}}var wl={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)},Tg=setTimeout.toString().includes("new Timeout"),ww=(()=>{try{return Function("return true;")(),!0}catch{return!1}})(),Ew=(()=>{try{return globalThis.Function.$UNFROZEN$=!0,delete globalThis.Function.$UNFROZEN$,!0}catch{return!1}})();class DS{constructor(){throw TypeError("Illegal constructor")}}class Cg{callback;constructor(t){this.callback=t}}class El extends vt{Node=st;Attr=tm;ShadowRoot=Wu;ProcessingInstruction=Hu;Element=Gr;CharacterData=Ss;DocumentType=nn;HTMLAnchorElement=Rp;HTMLButtonElement=Gp;HTMLOptGroupElement=bu;HTMLOptionElement=un;HTMLElement=B;HTMLUnknownElement=Gu;HTMLTemplateElement=Ru;HTMLInputElement=eu;HTMLSelectElement=pm;HTMLTextAreaElement=Fu;HTMLImageElement=la;HTMLStyleElement=Nu;HTMLLabelElement=ru;HTMLSlotElement=lg;HTMLMetaElement=pu;HTMLMediaElement=an;HTMLAudioElement=ia;HTMLVideoElement=Uu;HTMLBaseElement=Dp;HTMLDialogElement=Kp;HTMLScriptElement=vu;HTMLLinkElement=au;HTMLIFrameElement=Zp;HTMLFormElement=nm;HTMLUListElement=Ou;HTMLTrackElement=Bu;HTMLTableRowElement=Iu;HTMLTitleElement=Du;HTMLTimeElement=Vu;HTMLTableSectionElement=Es;HTMLTableCellElement=Lu;HTMLTableElement=Mu;HTMLSpanElement=Cu;HTMLSourceElement=Tu;HTMLQuoteElement=Eu;HTMLProgressElement=wu;HTMLPreElement=Au;HTMLPictureElement=Pu;HTMLParamElement=fu;HTMLParagraphElement=Su;HTMLOutputElement=gu;HTMLOListElement=cu;HTMLObjectElement=du;HTMLMeterElement=uu;HTMLMenuElement=yu;HTMLMapElement=mu;HTMLLIElement=iu;HTMLLegendElement=ou;HTMLModElement=hu;HTMLHtmlElement=Jp;HTMLHRElement=zp;HTMLHeadElement=$p;HTMLHeadingElement=Xp;HTMLFieldSetElement=sa;HTMLEmbedElement=jp;HTMLDListElement=Hp;HTMLDivElement=Qp;HTMLDetailsElement=Yp;HTMLDataListElement=_p;HTMLDataElement=Wp;HTMLTableColElement=ku;HTMLTableCaptionElement=aa;HTMLCanvasElement=Up;HTMLBRElement=Op;HTMLBodyElement=Bp;HTMLAreaElement=Fp;SVGSVGElement=hh;SVGAnimateElement=Oc;SVGAnimateMotionElement=Gc;SVGAnimateTransformElement=Uc;SVGCircleElement=Hc;SVGClipPathElement=Wc;SVGDefsElement=_c;SVGDescElement=Yc;SVGEllipseElement=Kc;SVGFEBlendElement=Qc;SVGFEColorMatrixElement=jc;SVGFEComponentTransferElement=qc;SVGFECompositeElement=$c;SVGFEConvolveMatrixElement=Xc;SVGFEDiffuseLightingElement=zc;SVGFEDisplacementMapElement=Jc;SVGFEDistantLightElement=Zc;SVGFEDropShadowElement=td;SVGFEFloodElement=ed;SVGFEFuncAElement=rd;SVGFEFuncBElement=od;SVGFEFuncGElement=id;SVGFEFuncRElement=sd;SVGFEGaussianBlurElement=nd;SVGFEImageElement=ld;SVGFEMergeElement=ad;SVGFEMergeNodeElement=md;SVGFEMorphologyElement=yd;SVGFEOffsetElement=pd;SVGFEPointLightElement=ud;SVGFESpecularLightingElement=hd;SVGFESpotLightElement=cd;SVGFETileElement=dd;SVGFETurbulenceElement=bd;SVGFilterElement=gd;SVGForeignObjectElement=Sd;SVGGElement=fd;SVGImageElement=Pd;SVGLineElement=Ad;SVGLinearGradientElement=wd;SVGMarkerElement=Ed;SVGMaskElement=xd;SVGMetadataElement=vd;SVGMPathElement=Td;SVGPathElement=Cd;SVGPatternElement=Nd;SVGPolygonElement=Ld;SVGPolylineElement=kd;SVGRadialGradientElement=Md;SVGRectElement=Id;SVGScriptElement=Rd;SVGSetElement=Fd;SVGStopElement=Vd;SVGStyleElement=Dd;SVGSwitchElement=Bd;SVGSymbolElement=Od;SVGTextElement=Gd;SVGTextPathElement=Ud;SVGTitleElement=Hd;SVGTSpanElement=Wd;SVGUseElement=_d;SVGViewElement=Yd;SVGElement=et;SVGAnimationElement=pi;SVGComponentTransferFunctionElement=ui;SVGGeometryElement=Nr;SVGGradientElement=fl;SVGTextPositioningElement=Al;SVGGraphicsElement=Ae;Event=N;UIEvent=Sr;CustomEvent=Pp;CloseEvent=jd;AnimationEvent=Sp;KeyboardEvent=wp;MessageEvent=Ep;MouseEvent=qe;PointerEvent=Zl;FocusEvent=cs;WheelEvent=vp;InputEvent=Ap;ErrorEvent=rn;StorageEvent=nc;SubmitEvent=ta;ProgressEvent=Io;MediaQueryListEvent=_l;HashChangeEvent=Jl;ClipboardEvent=fp;TouchEvent=xp;PopStateEvent=ch;Touch=gp;AudioProcessingEvent=N;BeforeInputEvent=N;BeforeUnloadEvent=N;BlobEvent=N;CompositionEvent=N;CSSFontFaceLoadEvent=N;DeviceLightEvent=N;DeviceMotionEvent=N;DeviceOrientationEvent=N;DeviceProximityEvent=N;DOMTransactionEvent=N;DragEvent=N;EditingBeforeInputEvent=N;FetchEvent=N;GamepadEvent=N;IDBVersionChangeEvent=N;MediaStreamEvent=N;MutationEvent=N;OfflineAudioCompletionEvent=N;OverconstrainedError=N;PageTransitionEvent=N;PaymentRequestUpdateEvent=N;RelatedEvent=N;RTCDataChannelEvent=N;RTCIdentityErrorEvent=N;RTCIdentityEvent=N;RTCPeerConnectionIceEvent=N;SensorEvent=N;SVGEvent=N;SVGZoomEvent=N;TimeEvent=N;TrackEvent=N;TransitionEvent=N;UserProximityEvent=N;WebGLContextEvent=N;TextEvent=N;Permissions=oa;History=$a;Navigator=Lp;Clipboard=Ul;TimeRanges=sl;TextTrackCueList=pl;ValidityState=qr;MutationRecord=Vo;IntersectionObserver=Tp;IntersectionObserverEntry=Cp;CSSStyleDeclaration=Kr;CSSRule=_o;CSSContainerRule=Yl;CSSFontFaceRule=Kl;CSSKeyframeRule=tn;CSSKeyframesRule=Ql;CSSMediaRule=jl;CSSStyleRule=en;CSSSupportsRule=Xl;CSSConditionRule=Ci;CSSGroupingRule=Ti;CSSScopeRule=Zs;DOMRect=li;DOMRectReadOnly=ol;Plugin=Np;PluginArray=Za;Location=Xa;CustomElementRegistry=_a;ResizeObserver=_u;Blob=ie;File=Mo;Storage=hl;MimeType=za;MimeTypeArray=Ja;NodeFilter=pe;HTMLCollection=de;HTMLFormControlCollection=na;HTMLOptionsCollection=ym;NodeList=Yo;RadioNodeList=sm;FileList=al;Screen=ul;ScreenDetails=um;ScreenDetailed=ya;DOMMatrixReadOnly=dl;DOMMatrix=Ao;NamedNodeMap=ln;TreeWalker=hn;NodeIterator=ca;DataTransfer=bp;DataTransferItem=hs;DataTransferItemList=zl;XMLSerializer=Yu;ClipboardItem=ap;Selection=pa;CSSUnitValue=ye;SVGAngle=Sn;SVGAnimatedAngle=Sm;SVGAnimatedBoolean=gm;SVGAnimatedEnumeration=Tt;SVGAnimatedInteger=Fi;SVGAnimatedLength=L;SVGAnimatedNumber=ut;SVGAnimatedNumberList=Do;SVGAnimatedPreserveAspectRatio=yi;SVGAnimatedRect=gl;SVGAnimatedString=nt;SVGAnimatedTransformList=vs;SVGLength=Ii;SVGLengthList=Pl;SVGMatrix=rr;SVGNumber=Ri;SVGNumberList=Sl;SVGPoint=pr;SVGPointList=Vi;SVGPreserveAspectRatio=Sa;SVGRect=Mi;SVGStringList=ki;SVGTransform=jo;SVGTransformList=bl;SVGAnimatedLengthList=Pn;SVGUnitTypes=Kd;DOMPoint=dm;StylePropertyMap=$l;StylePropertyMapReadOnly=ql;MediaList=qn;CSSKeywordValue=Xn;CSSStyleValue=zn;Window=this.constructor;URLSearchParams=fw;WritableStream=VS.Writable;ReadableStream=Sw;TransformStream=VS.Transform;PerformanceObserver=Pw;PerformanceEntry=Aw;PerformanceObserverEntryList=DS;document;customElements=new _a(this);window=this;globalThis=this;performance=performance;screenLeft=0;screenTop=0;screenX=0;screenY=0;crypto=dw;TextEncoder=bw;TextDecoder=gw;closed=!1;console;name="";Buffer=cw;[Nn]=[];[Eo];[no];[Oe];[Dh];[Bh];[Oh];[Gh];[Dn]=this;[Jo]=this;[ao]=this;[m]=this;[vb]=this;[xn]=-1;[Qs]=new Qd(this);[ms]={json:new Map,css:new Map,esm:new Map};[Bl]=null;[Qn]=[];[p]=new Map;#t;#e=null;#r=null;#o=null;#i=null;#s=null;#l={timeouts:null};#m=[];#a=[];constructor(t,e){super();this.#t=t,this[Tb](),this.console=t.page.console,this[Eo]=new hc(t),this[Dh]=new Lp(this),this[Bh]=new ul,this[Oh]=new hl,this[Gh]=new hl,this[no]=new Xa(this.#t,e?.url??"about:blank"),this[Oe]=new $a(this.#t,this),t[Oe].currentItem.href=e?.url??"about:blank",it.setWindowBrowserFrameRelation(this,this.#t),this[Tm](),Vc.extendClasses(this),this.document=new this.HTMLDocument,this.document[Lr]=this;let o=t[Pt].startTask(()=>this[Eo].destroy());this[Eo].waitUntilComplete().then(()=>{t[Pt].endTask(o),this.document[kn]=uc.complete,this.document.dispatchEvent(new N("readystatechange"));let s=new N("load");s[Go]=this,s[wr]=this.document,s[xr]=ae.atTarget,this.dispatchEvent(s),s[Go]=null,s[xr]=ae.none,s[Kn]=!1}),this[Eb]()}get onsearch(){return this[p].get("onsearch")??null}set onsearch(t){this[p].set("onsearch",t)}get onappinstalled(){return this[p].get("onappinstalled")??null}set onappinstalled(t){this[p].set("onappinstalled",t)}get onbeforeinstallprompt(){return this[p].get("onbeforeinstallprompt")??null}set onbeforeinstallprompt(t){this[p].set("onbeforeinstallprompt",t)}get onabort(){return this[p].get("onabort")??null}set onabort(t){this[p].set("onabort",t)}get onbeforeinput(){return this[p].get("onbeforeinput")??null}set onbeforeinput(t){this[p].set("onbeforeinput",t)}get onbeforematch(){return this[p].get("onbeforematch")??null}set onbeforematch(t){this[p].set("onbeforematch",t)}get onbeforetoggle(){return this[p].get("onbeforetoggle")??null}set onbeforetoggle(t){this[p].set("onbeforetoggle",t)}get onblur(){return this[p].get("onblur")??null}set onblur(t){this[p].set("onblur",t)}get oncancel(){return this[p].get("oncancel")??null}set oncancel(t){this[p].set("oncancel",t)}get oncanplay(){return this[p].get("oncanplay")??null}set oncanplay(t){this[p].set("oncanplay",t)}get oncanplaythrough(){return this[p].get("oncanplaythrough")??null}set oncanplaythrough(t){this[p].set("oncanplaythrough",t)}get onchange(){return this[p].get("onchange")??null}set onchange(t){this[p].set("onchange",t)}get onclick(){return this[p].get("onclick")??null}set onclick(t){this[p].set("onclick",t)}get onclose(){return this[p].get("onclose")??null}set onclose(t){this[p].set("onclose",t)}get oncommand(){return this[p].get("oncommand")??null}set oncommand(t){this[p].set("oncommand",t)}get oncontentvisibilityautostatechange(){return this[p].get("oncontentvisibilityautostatechange")??null}set oncontentvisibilityautostatechange(t){this[p].set("oncontentvisibilityautostatechange",t)}get oncontextlost(){return this[p].get("oncontextlost")??null}set oncontextlost(t){this[p].set("oncontextlost",t)}get oncontextmenu(){return this[p].get("oncontextmenu")??null}set oncontextmenu(t){this[p].set("oncontextmenu",t)}get oncontextrestored(){return this[p].get("oncontextrestored")??null}set oncontextrestored(t){this[p].set("oncontextrestored",t)}get oncuechange(){return this[p].get("oncuechange")??null}set oncuechange(t){this[p].set("oncuechange",t)}get ondblclick(){return this[p].get("ondblclick")??null}set ondblclick(t){this[p].set("ondblclick",t)}get ondrag(){return this[p].get("ondrag")??null}set ondrag(t){this[p].set("ondrag",t)}get ondragend(){return this[p].get("ondragend")??null}set ondragend(t){this[p].set("ondragend",t)}get ondragenter(){return this[p].get("ondragenter")??null}set ondragenter(t){this[p].set("ondragenter",t)}get ondragleave(){return this[p].get("ondragleave")??null}set ondragleave(t){this[p].set("ondragleave",t)}get ondragover(){return this[p].get("ondragover")??null}set ondragover(t){this[p].set("ondragover",t)}get ondragstart(){return this[p].get("ondragstart")??null}set ondragstart(t){this[p].set("ondragstart",t)}get ondrop(){return this[p].get("ondrop")??null}set ondrop(t){this[p].set("ondrop",t)}get ondurationchange(){return this[p].get("ondurationchange")??null}set ondurationchange(t){this[p].set("ondurationchange",t)}get onemptied(){return this[p].get("onemptied")??null}set onemptied(t){this[p].set("onemptied",t)}get onended(){return this[p].get("onended")??null}set onended(t){this[p].set("onended",t)}get onerror(){return this[p].get("onerror")??null}set onerror(t){this[p].set("onerror",t)}get onfocus(){return this[p].get("onfocus")??null}set onfocus(t){this[p].set("onfocus",t)}get onformdata(){return this[p].get("onformdata")??null}set onformdata(t){this[p].set("onformdata",t)}get oninput(){return this[p].get("oninput")??null}set oninput(t){this[p].set("oninput",t)}get oninvalid(){return this[p].get("oninvalid")??null}set oninvalid(t){this[p].set("oninvalid",t)}get onkeydown(){return this[p].get("onkeydown")??null}set onkeydown(t){this[p].set("onkeydown",t)}get onkeypress(){return this[p].get("onkeypress")??null}set onkeypress(t){this[p].set("onkeypress",t)}get onkeyup(){return this[p].get("onkeyup")??null}set onkeyup(t){this[p].set("onkeyup",t)}get onload(){return this[p].get("onload")??null}set onload(t){this[p].set("onload",t)}get onloadeddata(){return this[p].get("onloadeddata")??null}set onloadeddata(t){this[p].set("onloadeddata",t)}get onloadedmetadata(){return this[p].get("onloadedmetadata")??null}set onloadedmetadata(t){this[p].set("onloadedmetadata",t)}get onloadstart(){return this[p].get("onloadstart")??null}set onloadstart(t){this[p].set("onloadstart",t)}get onmousedown(){return this[p].get("onmousedown")??null}set onmousedown(t){this[p].set("onmousedown",t)}get onmouseenter(){return this[p].get("onmouseenter")??null}set onmouseenter(t){this[p].set("onmouseenter",t)}get onmouseleave(){return this[p].get("onmouseleave")??null}set onmouseleave(t){this[p].set("onmouseleave",t)}get onmousemove(){return this[p].get("onmousemove")??null}set onmousemove(t){this[p].set("onmousemove",t)}get onmouseout(){return this[p].get("onmouseout")??null}set onmouseout(t){this[p].set("onmouseout",t)}get onmouseover(){return this[p].get("onmouseover")??null}set onmouseover(t){this[p].set("onmouseover",t)}get onmouseup(){return this[p].get("onmouseup")??null}set onmouseup(t){this[p].set("onmouseup",t)}get onmousewheel(){return this[p].get("onmousewheel")??null}set onmousewheel(t){this[p].set("onmousewheel",t)}get onpause(){return this[p].get("onpause")??null}set onpause(t){this[p].set("onpause",t)}get onplay(){return this[p].get("onplay")??null}set onplay(t){this[p].set("onplay",t)}get onplaying(){return this[p].get("onplaying")??null}set onplaying(t){this[p].set("onplaying",t)}get onprogress(){return this[p].get("onprogress")??null}set onprogress(t){this[p].set("onprogress",t)}get onratechange(){return this[p].get("onratechange")??null}set onratechange(t){this[p].set("onratechange",t)}get onreset(){return this[p].get("onreset")??null}set onreset(t){this[p].set("onreset",t)}get onresize(){return this[p].get("onresize")??null}set onresize(t){this[p].set("onresize",t)}get onscroll(){return this[p].get("onscroll")??null}set onscroll(t){this[p].set("onscroll",t)}get onscrollend(){return this[p].get("onscrollend")??null}set onscrollend(t){this[p].set("onscrollend",t)}get onsecuritypolicyviolation(){return this[p].get("onsecuritypolicyviolation")??null}set onsecuritypolicyviolation(t){this[p].set("onsecuritypolicyviolation",t)}get onseeked(){return this[p].get("onseeked")??null}set onseeked(t){this[p].set("onseeked",t)}get onseeking(){return this[p].get("onseeking")??null}set onseeking(t){this[p].set("onseeking",t)}get onselect(){return this[p].get("onselect")??null}set onselect(t){this[p].set("onselect",t)}get onslotchange(){return this[p].get("onslotchange")??null}set onslotchange(t){this[p].set("onslotchange",t)}get onstalled(){return this[p].get("onstalled")??null}set onstalled(t){this[p].set("onstalled",t)}get onsubmit(){return this[p].get("onsubmit")??null}set onsubmit(t){this[p].set("onsubmit",t)}get onsuspend(){return this[p].get("onsuspend")??null}set onsuspend(t){this[p].set("onsuspend",t)}get ontimeupdate(){return this[p].get("ontimeupdate")??null}set ontimeupdate(t){this[p].set("ontimeupdate",t)}get ontoggle(){return this[p].get("ontoggle")??null}set ontoggle(t){this[p].set("ontoggle",t)}get onvolumechange(){return this[p].get("onvolumechange")??null}set onvolumechange(t){this[p].set("onvolumechange",t)}get onwaiting(){return this[p].get("onwaiting")??null}set onwaiting(t){this[p].set("onwaiting",t)}get onwebkitanimationend(){return this[p].get("onwebkitanimationend")??null}set onwebkitanimationend(t){this[p].set("onwebkitanimationend",t)}get onwebkitanimationiteration(){return this[p].get("onwebkitanimationiteration")??null}set onwebkitanimationiteration(t){this[p].set("onwebkitanimationiteration",t)}get onwebkitanimationstart(){return this[p].get("onwebkitanimationstart")??null}set onwebkitanimationstart(t){this[p].set("onwebkitanimationstart",t)}get onwebkittransitionend(){return this[p].get("onwebkittransitionend")??null}set onwebkittransitionend(t){this[p].set("onwebkittransitionend",t)}get onwheel(){return this[p].get("onwheel")??null}set onwheel(t){this[p].set("onwheel",t)}get onauxclick(){return this[p].get("onauxclick")??null}set onauxclick(t){this[p].set("onauxclick",t)}get ongotpointercapture(){return this[p].get("ongotpointercapture")??null}set ongotpointercapture(t){this[p].set("ongotpointercapture",t)}get onlostpointercapture(){return this[p].get("onlostpointercapture")??null}set onlostpointercapture(t){this[p].set("onlostpointercapture",t)}get onpointerdown(){return this[p].get("onpointerdown")??null}set onpointerdown(t){this[p].set("onpointerdown",t)}get onpointermove(){return this[p].get("onpointermove")??null}set onpointermove(t){this[p].set("onpointermove",t)}get onpointerup(){return this[p].get("onpointerup")??null}set onpointerup(t){this[p].set("onpointerup",t)}get onpointercancel(){return this[p].get("onpointercancel")??null}set onpointercancel(t){this[p].set("onpointercancel",t)}get onpointerover(){return this[p].get("onpointerover")??null}set onpointerover(t){this[p].set("onpointerover",t)}get onpointerout(){return this[p].get("onpointerout")??null}set onpointerout(t){this[p].set("onpointerout",t)}get onpointerenter(){return this[p].get("onpointerenter")??null}set onpointerenter(t){this[p].set("onpointerenter",t)}get onpointerleave(){return this[p].get("onpointerleave")??null}set onpointerleave(t){this[p].set("onpointerleave",t)}get onselectstart(){return this[p].get("onselectstart")??null}set onselectstart(t){this[p].set("onselectstart",t)}get onselectionchange(){return this[p].get("onselectionchange")??null}set onselectionchange(t){this[p].set("onselectionchange",t)}get onanimationcancel(){return this[p].get("onanimationcancel")??null}set onanimationcancel(t){this[p].set("onanimationcancel",t)}get onanimationend(){return this[p].get("onanimationend")??null}set onanimationend(t){this[p].set("onanimationend",t)}get onanimationiteration(){return this[p].get("onanimationiteration")??null}set onanimationiteration(t){this[p].set("onanimationiteration",t)}get onanimationstart(){return this[p].get("onanimationstart")??null}set onanimationstart(t){this[p].set("onanimationstart",t)}get ontransitionrun(){return this[p].get("ontransitionrun")??null}set ontransitionrun(t){this[p].set("ontransitionrun",t)}get ontransitionstart(){return this[p].get("ontransitionstart")??null}set ontransitionstart(t){this[p].set("ontransitionstart",t)}get ontransitionend(){return this[p].get("ontransitionend")??null}set ontransitionend(t){this[p].set("ontransitionend",t)}get ontransitioncancel(){return this[p].get("ontransitioncancel")??null}set ontransitioncancel(t){this[p].set("ontransitioncancel",t)}get onbeforexrselect(){return this[p].get("onbeforexrselect")??null}set onbeforexrselect(t){this[p].set("onbeforexrselect",t)}get onafterprint(){return this[p].get("onafterprint")??null}set onafterprint(t){this[p].set("onafterprint",t)}get onbeforeprint(){return this[p].get("onbeforeprint")??null}set onbeforeprint(t){this[p].set("onbeforeprint",t)}get onbeforeunload(){return this[p].get("onbeforeunload")??null}set onbeforeunload(t){this[p].set("onbeforeunload",t)}get onhashchange(){return this[p].get("onhashchange")??null}set onhashchange(t){this[p].set("onhashchange",t)}get onlanguagechange(){return this[p].get("onlanguagechange")??null}set onlanguagechange(t){this[p].set("onlanguagechange",t)}get onmessage(){return this[p].get("onmessage")??null}set onmessage(t){this[p].set("onmessage",t)}get onmessageerror(){return this[p].get("onmessageerror")??null}set onmessageerror(t){this[p].set("onmessageerror",t)}get onoffline(){return this[p].get("onoffline")??null}set onoffline(t){this[p].set("onoffline",t)}get ononline(){return this[p].get("ononline")??null}set ononline(t){this[p].set("ononline",t)}get onpagehide(){return this[p].get("onpagehide")??null}set onpagehide(t){this[p].set("onpagehide",t)}get onpageshow(){return this[p].get("onpageshow")??null}set onpageshow(t){this[p].set("onpageshow",t)}get onpopstate(){return this[p].get("onpopstate")??null}set onpopstate(t){this[p].set("onpopstate",t)}get onrejectionhandled(){return this[p].get("onrejectionhandled")??null}set onrejectionhandled(t){this[p].set("onrejectionhandled",t)}get onstorage(){return this[p].get("onstorage")??null}set onstorage(t){this[p].set("onstorage",t)}get onunhandledrejection(){return this[p].get("onunhandledrejection")??null}set onunhandledrejection(t){this[p].set("onunhandledrejection",t)}get onunload(){return this[p].get("onunload")??null}set onunload(t){this[p].set("onunload",t)}get ondevicemotion(){return this[p].get("ondevicemotion")??null}set ondevicemotion(t){this[p].set("ondevicemotion",t)}get ondeviceorientation(){return this[p].get("ondeviceorientation")??null}set ondeviceorientation(t){this[p].set("ondeviceorientation",t)}get ondeviceorientationabsolute(){return this[p].get("ondeviceorientationabsolute")??null}set ondeviceorientationabsolute(t){this[p].set("ondeviceorientationabsolute",t)}get onpointerrawupdate(){return this[p].get("onpointerrawupdate")??null}set onpointerrawupdate(t){this[p].set("onpointerrawupdate",t)}get onpageswap(){return this[p].get("onpageswap")??null}set onpageswap(t){this[p].set("onpageswap",t)}get onpagereveal(){return this[p].get("onpagereveal")??null}set onpagereveal(t){this[p].set("onpagereveal",t)}get onscrollsnapchange(){return this[p].get("onscrollsnapchange")??null}set onscrollsnapchange(t){this[p].set("onscrollsnapchange",t)}get onscrollsnapchanging(){return this[p].get("onscrollsnapchanging")??null}set onscrollsnapchanging(t){this[p].set("onscrollsnapchanging",t)}get ongamepadconnected(){return this[p].get("ongamepadconnected")??null}set ongamepadconnected(t){this[p].set("ongamepadconnected",t)}get ongamepaddisconnected(){return this[p].get("ongamepaddisconnected")??null}set ongamepaddisconnected(t){this[p].set("ongamepaddisconnected",t)}get self(){return this[Dn]}set self(t){this[Dn]=t}get top(){return this[Jo]}get parent(){return this[ao]}set parent(t){this[ao]=t}get frames(){return this[vb]}set frames(t){this[ao]=t}get location(){return this[no]}set location(t){this[no].href=t}get history(){return this[Oe]}get navigator(){return this[Dh]}get screen(){return this[Bh]}get sessionStorage(){return this[Oh]}get localStorage(){return this[Gh]}get opener(){return this.#t[Si]}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 rc}get innerWidth(){if(this.#e===null)return this.#t.page.viewport.width;return this.#e}set innerWidth(t){this.#e=t}get innerHeight(){if(this.#r===null)return this.#t.page.viewport.height;return this.#r}set innerHeight(t){this.#r=t}get outerWidth(){if(this.#o===null)return this.#t.page.viewport.width;return this.#o}set outerWidth(t){this.#o=t}get outerHeight(){if(this.#i===null)return this.#t.page.viewport.height;return this.#i}set outerHeight(t){this.#i=t}get devicePixelRatio(){if(this.#s===null)return this.#t.page.viewport.devicePixelRatio;return this.#s}set devicePixelRatio(t){this.#s=t}getComputedStyle(t){return t[Ll]=t[Ll]||new Kr(h,this,{element:t,computed:!0}),t[Ll]}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 o=typeof t==="object"?t:{left:t,top:e};if(o.behavior==="smooth")this.setTimeout(()=>{if(o.top!==void 0){let s=Number(o.top);this.document.documentElement.scrollTop=isNaN(s)?0:s}if(o.left!==void 0){let s=Number(o.left);this.document.documentElement.scrollLeft=isNaN(s)?0:s}});else{if(o.top!==void 0){let s=Number(o.top);this.document.documentElement.scrollTop=isNaN(s)?0:s}if(o.left!==void 0){let s=Number(o.left);this.document.documentElement.scrollLeft=isNaN(s)?0:s}}}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 o=typeof t==="object"?t:{left:t,top:e};this.scroll({left:this.document.documentElement.scrollLeft+(o.left??0),top:this.document.documentElement.scrollTop+(o.top??0),behavior:o.behavior})}blur(){}focus(){}open(t,e,o){return Tc.openPage(this.#t,{url:t,target:e,features:o})}close(){if(this.#t.page.mainFrame===this.#t&&this.#t[Si])this[At](),this.#t.page.close()}matchMedia(t){return new Wa({window:this,media:t})}getScreenDetails(){return Promise.resolve(new um)}setTimeout(t,e=0,...o){if(this.closed)return{};let s=this.#t.page.context.browser.settings;if(s.timer.preventTimerLoops){let a=Error().stack,y=this.#m,u=this.#a,c=y.indexOf(a);if(c!==-1){if(u[c].timeout++,u[c].timeout>=(s.timer.preventTimerLoops===!0?1:s.timer.preventTimerLoops.timeout??1))return{}}else y.push(a),u.push({timeout:0,requestAnimationFrame:0})}if(!e){let a=this.#l;if(!a.timeouts){let u=!s||!s.disableErrorCapturing&&s.errorCapture===me.tryAndCatch,c=wl.setTimeout(()=>{this.#t[Pt].endTimer(c);let d=a.timeouts;a.timeouts=null;for(let g of d)if(u){let f;try{f=g.callback()}catch(E){this[le](E)}if(f instanceof Promise)f.catch((E)=>this[le](E))}else g.callback()},0);a.timeouts=[],this.#t[Pt].startTimer(c)}let y=new Cg(()=>t(...o));return a.timeouts.push(y),y}let n=!s||!s.disableErrorCapturing&&s.errorCapture===me.tryAndCatch,l=wl.setTimeout(()=>{if(this.#t[Pt].endTimer(l),n){let a;try{a=t(...o)}catch(y){this[le](y)}if(a instanceof Promise)a.catch((y)=>this[le](y))}else t(...o)},s?.timer.maxTimeout!==-1&&e&&e>s?.timer.maxTimeout?s?.timer.maxTimeout:e);return this.#t[Pt].startTimer(l),l}clearTimeout(t){if(t&&t instanceof Cg){let e=this.#l;if(!e.timeouts)return;let o=e.timeouts.indexOf(t);if(o!==-1)e.timeouts.splice(o,1);return}if(Tg&&(!t||t.constructor.name!=="Timeout"))return;wl.clearTimeout(t),this.#t[Pt].endTimer(t)}setInterval(t,e=0,...o){if(this.closed)return{};let s=this.#t.page.context.browser.settings,n=!s||!s.disableErrorCapturing&&s.errorCapture===me.tryAndCatch,l=0,a=wl.setInterval(()=>{if(n){let y;try{y=t(...o)}catch(u){this.clearInterval(a),this[le](u)}if(y instanceof Promise)y.catch((u)=>{this.clearInterval(a),this[le](u)})}else t(...o);if(s?.timer.maxIntervalIterations!==-1){if(l>=s?.timer.maxIntervalIterations)this.clearInterval(a);l++}},s?.timer.maxIntervalTime!==-1&&e&&e>s?.timer.maxIntervalTime?s?.timer.maxIntervalTime:e);return this.#t[Pt].startTimer(a),a}clearInterval(t){if(Tg&&(!t||t.constructor.name!=="Timeout"))return;wl.clearInterval(t),this.#t[Pt].endTimer(t)}requestAnimationFrame(t){if(this.closed)return{};let e=this.#t.page.context.browser.settings;if(e.timer.preventTimerLoops){let n=Error().stack,l=this.#m,a=this.#a,y=l.indexOf(n);if(y!==-1){if(a[y].requestAnimationFrame++,a[y].requestAnimationFrame>=(e.timer.preventTimerLoops===!0?1:e.timer.preventTimerLoops.requestAnimationFrame??1))return{}}else l.push(n),a.push({timeout:0,requestAnimationFrame:0})}let o=!e||!e.disableErrorCapturing&&e.errorCapture===me.tryAndCatch,s=wl.setImmediate(()=>{if(this.#t[Pt].endImmediate(s),o){let n;try{n=t(this.performance.now())}catch(l){this[le](l)}if(n instanceof Promise)n.catch((l)=>this[le](l))}else t(this.performance.now())});return this.#t[Pt].startImmediate(s),s}cancelAnimationFrame(t){if(Tg&&(!t||t.constructor.name!=="Immediate"))return;wl.clearImmediate(t),this.#t[Pt].endImmediate(t)}queueMicrotask(t){if(this.closed)return;let e=!1,o=this.#t[Pt].startTask(()=>e=!0),s=this.#t.page.context.browser.settings,n=!s||!s.disableErrorCapturing&&s.errorCapture===me.tryAndCatch;wl.queueMicrotask(()=>{if(!e)if(this.#t[Pt].endTask(o),n){let l;try{l=t()}catch(a){this[le](a)}if(l instanceof Promise)l.catch((a)=>this[le](a))}else t()})}async fetch(t,e){if(this.closed)return Promise.reject(new this.DOMException("Failed to execute 'fetch' on 'Window': The window is closed.",w.invalidStateError));return await new Br({browserFrame:this.#t,window:this,url:t,init:e}).send()}btoa(t){return np.btoa(t)}atob(t){return np.atob(t)}postMessage(t,e="*",o){if(this.closed)return;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}').`,w.securityError);try{JSON.stringify(t)}catch(s){throw new this.DOMException("Failed to execute 'postMessage' on 'Window': The provided message cannot be serialized.",w.invalidStateError)}this.setTimeout(()=>this.dispatchEvent(new Ep("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)return;if(!t||!e)throw new this.DOMException(`Failed to execute 'resizeTo' on 'Window': 2 arguments required, but only ${arguments.length} present.`);if(this.#t[Ln])this.#t.page.setViewport({width:t,height:e})}resizeBy(t,e){if(this.closed)return;if(!t||!e)throw new this.DOMException(`Failed to execute 'resizeBy' on 'Window': 2 arguments required, but only ${arguments.length} present.`);if(this.#t[Ln]){let o=this.#t.page.viewport;this.#t.page.setViewport({width:o.width+t,height:o.height+e})}}[le](t){this.#t.page.console.error(t),this.dispatchEvent(new rn("error",{message:t.message,error:t}))}[Uo](t,e){return new vg.Script(t,e).runInContext(this)}[Tm](){if(!vg.isContext(this))vg.createContext(this),gS.runInContext(this)}[Tb](){let t=this.#t;if((ww||Ew)&&t.page.context.browser.settings.enableJavaScriptEvaluation&&!t.page.context.browser.settings.suppressInsecureJavaScriptEnvironmentWarning&&!t.page.context.browser.settings.suppressCodeGenerationFromStringsWarning)console.warn(`
215
+ `),n=s[s.length-1].length+1,l=`error on line ${s.length} at column ${n}: ${e||"Unknown error"}`,a=this.rootNode.createElementNS(Ht.html,"parsererror");a.setAttribute("style","display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black"),a.innerHTML=`<h3>This page contains the following errors:</h3><div style="font-family:monospace;font-size:12px">${l}</div><h3>Below is a rendering of the page up to the first error.</h3>`,o.insertBefore(a,o.firstChild)}removeOverflowingTextNodes(){if(this.currentNode&&this.currentNode!==this.rootNode)while(this.currentNode.lastChild?.[D]===st.TEXT_NODE)this.currentNode.removeChild(this.currentNode.lastChild)}getDocumentType(t){if(!t.toUpperCase().startsWith("DOCTYPE"))return null;let e=t.split(oh);if(e.length<=1)return null;let o=e.slice(1).join(" "),s=[],n=new RegExp(MA,"gm"),l=o.toUpperCase().includes("PUBLIC"),a;while(a=n.exec(o))s.push(a[1]);let y=l?s[0]||"":"",u=l?s[1]||"":s[0]||"";return{name:e[1].toLowerCase(),publicId:y,systemId:u}}}class sh{parseFromString(t,e){if(!e)throw new this[m].DOMException('Second parameter "mimeType" is mandatory.');let o=this[m];switch(e){case"text/html":let s=new o.HTMLDocument;return s[Lr]=o,new Cr(this[m]).parse(t,s);case"image/svg+xml":case"text/xml":case"application/xml":case"application/xhtml+xml":return new ih(this[m]).parse(t);default:throw new o.DOMException(`Unknown mime type "${e}".`)}}}var hg;(function(t){t[t.endToEnd=2]="endToEnd",t[t.endToStart=3]="endToStart",t[t.startToEnd=1]="startToEnd",t[t.startToStart=0]="startToStart"})(hg||(hg={}));var er=hg;class nh{static END_TO_END=er.endToEnd;static END_TO_START=er.endToStart;static START_TO_END=er.startToEnd;static START_TO_START=er.startToStart;END_TO_END=er.endToEnd;END_TO_START=er.endToStart;START_TO_END=er.startToEnd;START_TO_START=er.startToStart;[O];[Y];[x];constructor(){let t=this[m];if(!t)throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);this[x]=t.document,this[O]={node:t.document,offset:0},this[Y]={node:t.document,offset:0}}get startContainer(){return this[O].node}get endContainer(){return this[Y].node}get startOffset(){if(this[O].offset>0){let t=ft.getNodeLength(this[O].node);if(this[O].offset>t)this[O].offset=t}return this[O].offset}get endOffset(){if(this[Y].offset>0){let t=ft.getNodeLength(this[Y].node);if(this[Y].offset>t)this[Y].offset=t}return this[Y].offset}get collapsed(){return this[O].node===this[Y].node&&this.startOffset===this.endOffset}get commonAncestorContainer(){let t=this[O].node;while(t){if(ft.isInclusiveAncestor(t,this[Y].node))return t;t=t[W]}return null}collapse(t=!1){if(t)this[Y]=Object.assign({},this[O]);else this[O]=Object.assign({},this[Y])}compareBoundaryPoints(t,e){if(t!==er.startToStart&&t!==er.startToEnd&&t!==er.endToEnd&&t!==er.endToStart)throw new this[m].DOMException(`The comparison method provided must be one of '${er.startToStart}', '${er.startToEnd}', '${er.endToEnd}' or '${er.endToStart}'.`,w.notSupportedError);if(this[x]!==e[x])throw new this[m].DOMException("The two Ranges are not in the same tree.",w.wrongDocumentError);let o={node:null,offset:0},s={node:null,offset:0};switch(t){case er.startToStart:o.node=this[O].node,o.offset=this.startOffset,s.node=e[O].node,s.offset=e.startOffset;break;case er.startToEnd:o.node=this[Y].node,o.offset=this.endOffset,s.node=e[O].node,s.offset=e.startOffset;break;case er.endToEnd:o.node=this[Y].node,o.offset=this.endOffset,s.node=e[Y].node,s.offset=e.endOffset;break;case er.endToStart:o.node=this[O].node,o.offset=this.startOffset,s.node=e[Y].node,s.offset=e.endOffset;break}return ue.compareBoundaryPointsPosition(o,s)}comparePoint(t,e){if(t[x]!==this[x])throw new this[m].DOMException("The two Ranges are not in the same tree.",w.wrongDocumentError);ue.validateBoundaryPoint({node:t,offset:e});let o={node:t,offset:e};if(ue.compareBoundaryPointsPosition(o,{node:this[O].node,offset:this.startOffset})===-1)return-1;else if(ue.compareBoundaryPointsPosition(o,{node:this[Y].node,offset:this.endOffset})===1)return 1;return 0}cloneContents(){let t=this[m],e=this[x].createDocumentFragment(),o=this.startOffset,s=this.endOffset;if(this.collapsed)return e;if(this[O].node===this[Y].node&&(this[O].node[D]===T.textNode||this[O].node[D]===T.processingInstructionNode||this[O].node[D]===T.commentNode)){let u=this[O].node.cloneNode(!1);return u[Kt]=u.substringData(o,s-o),e.appendChild(u),e}let n=this[O].node;while(!ft.isInclusiveAncestor(n,this[Y].node))n=n[W];let l=null;if(!ft.isInclusiveAncestor(this[O].node,this[Y].node)){let u=n.firstChild;while(!l){if(ue.isPartiallyContained(u,this))l=u;u=u.nextSibling}}let a=null;if(!ft.isInclusiveAncestor(this[Y].node,this[O].node)){let u=n.lastChild;while(!a){if(ue.isPartiallyContained(u,this))a=u;u=u.previousSibling}}let y=[];for(let u of n[_])if(ue.isContained(u,this)){if(u[D]===T.documentTypeNode)throw new t.DOMException("Invalid document type element.",w.hierarchyRequestError);y.push(u)}if(l!==null&&(l[D]===T.textNode||l[D]===T.processingInstructionNode||l[D]===T.commentNode)){let u=this[O].node.cloneNode(!1);u[Kt]=u.substringData(o,ft.getNodeLength(this[O].node)-o),e.appendChild(u)}else if(l!==null){let u=l.cloneNode();e.appendChild(u);let c=new t.Range;c[O].node=this[O].node,c[O].offset=o,c[Y].node=l,c[Y].offset=ft.getNodeLength(l);let d=c.cloneContents();u.appendChild(d)}for(let u of y){let c=u.cloneNode(!0);e.appendChild(c)}if(a!==null&&(a[D]===T.textNode||a[D]===T.processingInstructionNode||a[D]===T.commentNode)){let u=this[Y].node.cloneNode(!1);u[Kt]=u.substringData(0,s),e.appendChild(u)}else if(a!==null){let u=a.cloneNode(!1);e.appendChild(u);let c=new t.Range;c[O].node=a,c[O].offset=0,c[Y].node=this[Y].node,c[Y].offset=s;let d=c.cloneContents();u.appendChild(d)}return e}cloneRange(){let t=new this[m].Range;return t[O].node=this[O].node,t[O].offset=this[O].offset,t[Y].node=this[Y].node,t[Y].offset=this[Y].offset,t}createContextualFragment(t){return new Cr(this[m]).parse(t)}deleteContents(){let t=this.startOffset,e=this.endOffset;if(this.collapsed)return;if(this[O].node===this[Y].node&&(this[O].node[D]===T.textNode||this[O].node[D]===T.processingInstructionNode||this[O].node[D]===T.commentNode)){this[O].node.replaceData(t,e-t,"");return}let o=[],s=this[O].node,n=ft.nextDescendantNode(this[Y].node);while(s&&s!==n){if(ue.isContained(s,this)&&!ue.isContained(s[W],this))o.push(s);s=ft.following(s)}let l,a;if(ft.isInclusiveAncestor(this[O].node,this[Y].node))l=this[O].node,a=t;else{let y=this[O].node;while(y&&!ft.isInclusiveAncestor(y[W],this[Y].node))y=y[W];l=y[W],a=y[W][_].indexOf(y)+1}if(this[O].node[D]===T.textNode||this[O].node[D]===T.processingInstructionNode||this[O].node[D]===T.commentNode)this[O].node.replaceData(this.startOffset,ft.getNodeLength(this[O].node)-this.startOffset,"");for(let y of o)y[W].removeChild(y);if(this[Y].node[D]===T.textNode||this[Y].node[D]===T.processingInstructionNode||this[Y].node[D]===T.commentNode)this[Y].node.replaceData(0,e,"");this[O].node=l,this[O].offset=a,this[Y].node=l,this[Y].offset=a}detach(){}extractContents(){let t=this[m],e=this[x].createDocumentFragment(),o=this.startOffset,s=this.endOffset;if(this.collapsed)return e;if(this[O].node===this[Y].node&&(this[O].node[D]===T.textNode||this[O].node[D]===T.processingInstructionNode||this[O].node[D]===T.commentNode)){let d=this[O].node.cloneNode(!1);return d[Kt]=d.substringData(o,s-o),e.appendChild(d),this[O].node.replaceData(o,s-o,""),e}let n=this[O].node;while(!ft.isInclusiveAncestor(n,this[Y].node))n=n[W];let l=null;if(!ft.isInclusiveAncestor(this[O].node,this[Y].node)){let d=n.firstChild;while(!l){if(ue.isPartiallyContained(d,this))l=d;d=d.nextSibling}}let a=null;if(!ft.isInclusiveAncestor(this[Y].node,this[O].node)){let d=n.lastChild;while(!a){if(ue.isPartiallyContained(d,this))a=d;d=d.previousSibling}}let y=[];for(let d of n[_])if(ue.isContained(d,this)){if(d[D]===T.documentTypeNode)throw new this[m].DOMException("Invalid document type element.",w.hierarchyRequestError);y.push(d)}let u,c;if(ft.isInclusiveAncestor(this[O].node,this[Y].node))u=this[O].node,c=o;else{let d=this[O].node;while(d&&!ft.isInclusiveAncestor(d[W],this[Y].node))d=d[W];u=d[W],c=d[W][_].indexOf(d)+1}if(l!==null&&(l[D]===T.textNode||l[D]===T.processingInstructionNode||l[D]===T.commentNode)){let d=this[O].node.cloneNode(!1);d[Kt]=d.substringData(o,ft.getNodeLength(this[O].node)-o),e.appendChild(d),this[O].node.replaceData(o,ft.getNodeLength(this[O].node)-o,"")}else if(l!==null){let d=l.cloneNode(!1);e.appendChild(d);let g=new t.Range;g[O].node=this[O].node,g[O].offset=o,g[Y].node=l,g[Y].offset=ft.getNodeLength(l);let f=g.extractContents();d.appendChild(f)}for(let d of y)e.appendChild(d);if(a!==null&&(a[D]===T.textNode||a[D]===T.processingInstructionNode||a[D]===T.commentNode)){let d=this[Y].node.cloneNode(!1);d[Kt]=d.substringData(0,s),e.appendChild(d),this[Y].node.replaceData(0,s,"")}else if(a!==null){let d=a.cloneNode(!1);e.appendChild(d);let g=new t.Range;g[O].node=a,g[O].offset=0,g[Y].node=this[Y].node,g[Y].offset=s;let f=g.extractContents();d.appendChild(f)}return this[O].node=u,this[O].offset=c,this[Y].node=u,this[Y].offset=c,e}getBoundingClientRect(){return new li}getClientRects(){return new em(h)}isPointInRange(t,e=0){if(t[x]!==this[x])return!1;let o={node:t,offset:e};if(ue.validateBoundaryPoint(o),ue.compareBoundaryPointsPosition(o,{node:this[O].node,offset:this.startOffset})===-1||ue.compareBoundaryPointsPosition(o,{node:this[Y].node,offset:this.endOffset})===1)return!1;return!0}insertNode(t){if(this[O].node[D]===T.processingInstructionNode||this[O].node[D]===T.commentNode||this[O].node[D]===T.textNode&&!this[O].node[W]||t===this[O].node)throw new this[m].DOMException("Invalid start node.",w.hierarchyRequestError);let e=this[O].node[D]===T.textNode?this[O].node:this[O].node[_][this.startOffset]||null,o=!e?this[O].node:e[W];if(this[O].node[D]===T.textNode)e=this[O].node.splitText(this.startOffset);if(t===e)e=e.nextSibling;let s=t[W];if(s)s.removeChild(t);let n=!e?ft.getNodeLength(o):e[W][_].indexOf(e);if(n+=t[D]===T.documentFragmentNode?ft.getNodeLength(t):1,o.insertBefore(t,e),this.collapsed)this[Y].node=o,this[Y].offset=n}intersectsNode(t){if(t[x]!==this[x])return!1;let e=t[W];if(!e)return!0;let o=e[_].indexOf(t);return ue.compareBoundaryPointsPosition({node:e,offset:o},{node:this[Y].node,offset:this.endOffset})===-1&&ue.compareBoundaryPointsPosition({node:e,offset:o+1},{node:this[O].node,offset:this.startOffset})===1}selectNode(t){if(!t[W])throw new this[m].DOMException("The given Node has no parent.",w.invalidNodeTypeError);let e=t[W][_].indexOf(t);this[O].node=t[W],this[O].offset=e,this[Y].node=t[W],this[Y].offset=e+1}selectNodeContents(t){if(t[D]===T.documentTypeNode)throw new this[m].DOMException("DocumentType Node can't be used as boundary point.",w.invalidNodeTypeError);this[O].node=t,this[O].offset=0,this[Y].node=t,this[Y].offset=ft.getNodeLength(t)}setEnd(t,e=0){ue.validateBoundaryPoint({node:t,offset:e});let o={node:t,offset:e};if(t[x]!==this[x]||ue.compareBoundaryPointsPosition(o,{node:this[O].node,offset:this.startOffset})===-1)this[O].node=t,this[O].offset=e;this[Y].node=t,this[Y].offset=e}setStart(t,e=0){ue.validateBoundaryPoint({node:t,offset:e});let o={node:t,offset:e};if(t[x]!==this[x]||ue.compareBoundaryPointsPosition(o,{node:this[Y].node,offset:this.endOffset})===1)this[Y].node=t,this[Y].offset=e;this[O].node=t,this[O].offset=e}setEndAfter(t){if(!t[W])throw new this[m].DOMException("The given Node has no parent.",w.invalidNodeTypeError);this.setEnd(t[W],t[W][_].indexOf(t)+1)}setEndBefore(t){if(!t[W])throw new this[m].DOMException("The given Node has no parent.",w.invalidNodeTypeError);this.setEnd(t[W],t[W][_].indexOf(t))}setStartAfter(t){if(!t[W])throw new this[m].DOMException("The given Node has no parent.",w.invalidNodeTypeError);this.setStart(t[W],t[W][_].indexOf(t)+1)}setStartBefore(t){if(!t[W])throw new this[m].DOMException("The given Node has no parent.",w.invalidNodeTypeError);this.setStart(t[W],t[W][_].indexOf(t))}surroundContents(t){let e=this.commonAncestorContainer;if(!e)return;let o=ft.nextDescendantNode(e);while(e&&e!==o){if(e[D]!==T.textNode&&ue.isPartiallyContained(e,this))throw new this[m].DOMException("The Range has partially contains a non-Text node.",w.invalidStateError);e=ft.following(e)}if(t[D]===T.documentNode||t[D]===T.documentTypeNode||t[D]===T.documentFragmentNode)throw new this[m].DOMException("Invalid element type.",w.invalidNodeTypeError);let s=this.extractContents();while(t.firstChild)t.removeChild(t.firstChild);this.insertNode(t),t.appendChild(s),this.selectNode(t)}toString(){let t=this.startOffset,e=this.endOffset,o="";if(this[O].node===this[Y].node&&this[O].node[D]===T.textNode)return this[O].node.data.slice(t,e);if(this[O].node[D]===T.textNode)o+=this[O].node.data.slice(t);let s=ft.nextDescendantNode(this[Y].node),n=this[O].node;while(n&&n!==s){if(n[D]===T.textNode&&ue.isContained(n,this))o+=n.data;n=ft.following(n)}if(this[Y].node[D]===T.textNode)o+=this[Y].node.data.slice(0,e);return o}}class da extends vt{id="";startTime=0;endTime=0;pauseOnExit=!1;[Ia]=null;onenter=null;onexit=null;constructor(t){super();if(t!==h)throw TypeError("Illegal constructor");if(!this[m])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get track(){return this[Ia]}}class lh extends da{region=null;vertical="";snapToLines=!0;line=0;lineAlign="";position="auto";positionAlign="auto";size=100;align="";text="";constructor(t,e,o){super(h);let s=this[m],n=0;if(t!==void 0)n++;if(e!==void 0)n++;if(o!==void 0)n++;if(n<3)throw new s.TypeError(`Failed to construct 'VTTCue': 3 arguments required, but only ${n} present.`);if(t=Number(t),e=Number(e),isNaN(t)||isNaN(e))throw new s.TypeError("Failed to construct 'VTTCue': The provided double value is non-finite.");this.startTime=t,this.endTime=e,this.text=String(o)}getCueAsHTML(){let t=this[m],e=t.document.createDocumentFragment();return e.appendChild(t.document.createTextNode(this.text)),e}}class hm extends vt{[xo]=Ps.subtitles;[Us]="";[Il]="";[Bm]="";[Ee]="disabled";[Ml]=new pl(h);[fb]=new pl(h);oncuechange=null;constructor(t){super();if(t!==h)throw TypeError("Illegal constructor");if(!this[m])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[xo]}get label(){return this[Us]}get language(){return this[Il]}get id(){return this[Bm]}get mode(){return this[Ee]}set mode(t){if(t!=="disabled"&&t!=="showing")return;this[Ee]=t}get cues(){if(this[Ee]==="disabled")return null;return this[Ml]}get activeCues(){if(this[Ee]==="disabled")return null;return this[fb]}addCue(t){if(this[Ml].includes(t))return;t[Ia]=this,this[Ml].push(t)}removeCue(t){let e=this[Ml].indexOf(t);if(e!==-1)t[Ia]=null,this[Ml].splice(e,1)}}class cm extends vt{[Q]=[];onaddtrack=null;onchange=null;onremovetrack=null;constructor(t,e){super();if(t!==h)throw TypeError("Illegal constructor");this[Q]=e;let o=new fe(this,[cm,vt]);return new Proxy(this,{get:(s,n)=>{if(n==="length")return e.length;if(n in s||typeof n==="symbol")return o.bind(n),s[n];let l=Number(n);if(!isNaN(l))return e[l]},set(s,n,l){if(o.bind(n),typeof n==="symbol")return s[n]=l,!0;let a=Number(n);if(isNaN(a))s[n]=l;return!0},deleteProperty(s,n){if(typeof n==="symbol")return delete s[n],!0;let l=Number(n);if(isNaN(l))delete s[n];return!0},ownKeys(){return Object.keys(e)},has(s,n){if(n in s)return!0;if(typeof n==="symbol")return!1;let l=Number(n);return!isNaN(l)&&l>=0&&l<e.length},defineProperty(s,n,l){if(o.preventBinding(n),n in s)return Object.defineProperty(s,n,l),!0;return!1},getOwnPropertyDescriptor(s,n){if(n in s||typeof n==="symbol")return;let l=Number(n);if(!isNaN(l)&&e[l])return{value:e[l],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Q].length}get[Symbol.toStringTag](){return"TextTrackList"}toLocaleString(){return"[object TextTrackList]"}toString(){return"[object TextTrackList]"}[Symbol.iterator](){return this[Q][Symbol.iterator]()}getTrackById(t){for(let e of this[Q])if(e.id===t)return e;return null}}class ah extends vt{[Pb]="disconnected";onconnecting=null;onconnect=null;ondisconnect=null;get state(){return this[Pb]}async watchAvailability(){}cancelWatchAvailability(){}prompt(){}}var kS=i(LS(),1);var bg;(function(t){t[t.empty=0]="empty",t[t.loading=1]="loading",t[t.done=2]="done"})(bg||(bg={}));var dn=bg;var gg;(function(t){t.buffer="buffer",t.binaryString="binaryString",t.dataURL="dataURL",t.text="text"})(gg||(gg={}));var bn=gg;var Sg;(function(t){t.abort="abort",t.error="error",t.load="load",t.loadstart="loadstart",t.loadend="loadend",t.progress="progress"})(Sg||(Sg={}));var ba=Sg;import{Buffer as JA}from"buffer";class yh extends vt{error=null;result=null;readyState=dn.empty;onabort=null;onerror=null;onload=null;onloadstart=null;onloadend=null;onprogress=null;#t=!1;#e=null;#r=null;constructor(){super();if(!this[m])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}readAsArrayBuffer(t){if(!(t instanceof ie))throw new this[m].TypeError("Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#o(t,bn.buffer)}readAsBinaryString(t){if(!(t instanceof ie))throw new this[m].TypeError("Failed to execute 'readAsBinaryString' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#o(t,bn.binaryString)}readAsDataURL(t){if(!(t instanceof ie))throw new this[m].TypeError("Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#o(t,bn.dataURL)}readAsText(t,e=null){if(!(t instanceof ie))throw new this[m].TypeError("Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#o(t,bn.text,e||"UTF-8")}abort(){let t=this[m];if(this.#e)t.clearTimeout(this.#e);if(this.#r)t.clearTimeout(this.#r);if(this.readyState===dn.empty||this.readyState===dn.done){this.result=null;return}if(this.readyState===dn.loading)this.readyState=dn.done,this.result=null;this.#t=!0,this.dispatchEvent(new Io(ba.abort)),this.dispatchEvent(new Io(ba.loadend))}#o(t,e,o=null){let s=this[m];if(this.readyState===dn.loading)throw new s.DOMException("The object is in an invalid state.",w.invalidStateError);this.readyState=dn.loading,this.#e=s.setTimeout(()=>{if(this.#t){this.#t=!1;return}this.dispatchEvent(new Io(ba.loadstart));let n=t[Nt];if(!n)n=JA.alloc(0);this.dispatchEvent(new Io(ba.loadstart,{lengthComputable:!isNaN(t.size),total:t.size,loaded:n.length})),this.#r=s.setTimeout(()=>{if(this.#t){this.#t=!1;return}switch(e){default:case bn.buffer:{this.result=new Uint8Array(n).buffer;break}case bn.binaryString:{this.result=n.toString("binary");break}case bn.dataURL:{let l=kS.default.parse(t.type)||"application/octet-stream";this.result=`data:${l};base64,${n.toString("base64")}`;break}case bn.text:{this.result=new TextDecoder(o||"UTF-8").decode(n);break}}this.readyState=dn.done,this.dispatchEvent(new Io(ba.load)),this.dispatchEvent(new Io(ba.loadend))})})}}import ZA from"crypto";var tw={aspectRatio:{max:300,min:0.006666666666666667},deviceId:"",facingMode:[],frameRate:{max:60,min:0},height:{max:150,min:1},resizeMode:["none","crop-and-scale"],width:{max:300,min:1}},ew={deviceId:"",frameRate:60,resizeMode:"none"};class ga extends vt{contentHint="";enabled=!0;id=ZA.randomUUID();muted=!1;readyState="live";label="";[Us]="";[xo]="video";[ka]={};[Pi]=JSON.parse(JSON.stringify(tw));[In]=JSON.parse(JSON.stringify(ew));onended=null;onmute=null;onunmute=null;constructor(t){super();if(t!==h)throw TypeError("Illegal constructor");if(!this[m])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[xo]}async applyConstraints(t){this.#t(this[ka],t)}getConstraints(){return this[ka]}getCapabilities(){return this[Pi]}getSettings(){return this[In]}clone(){let t=new this.constructor(h);return t[xo]=this[xo],t[ka]=this[ka],t[Pi]=this[Pi],t[In]=this[In],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 o in e)if(e[o]!==null&&typeof e[o]==="object"&&!Array.isArray(e[o])){if(typeof t[o]!=="object")t[o]={};this.#t(t[o],e[o])}else t[o]=e[o]}}class Fc extends ga{[Om];constructor(t,e){super(t);this[Om]=e}get canvas(){return this[Om]}requestFrame(){}clone(){let t=super.clone();return t[Om]=this.canvas,t}}var fg;(function(t){t[t.connecting=0]="connecting",t[t.open=1]="open",t[t.closing=2]="closing",t[t.closed=3]="closed"})(fg||(fg={}));var Po=fg;import rw from"ws";var ow=/^[!#$%&'*+\-.^_`|~\dA-Za-z]+$/;class ph extends vt{static CONNECTING=Po.connecting;static OPEN=Po.open;static CLOSING=Po.closing;static CLOSED=Po.closed;#t=Po.closed;#e="";#r="blob";#o=null;#i;[vr]=null;constructor(t,e){super();let o=this[m],s;try{s=new URL(t)}catch{throw new o.DOMException(`The URL '${t}' is invalid.`,w.syntaxError)}if(s.protocol!=="ws:"&&s.protocol!=="wss:")throw new o.DOMException(`The URL's protocol must be either 'ws' or 'wss'. '${s.protocol}' is not allowed.`,w.syntaxError);if(s.hash)s.hash="";let n=new Set,l=e!==void 0?Array.isArray(e)?e:[e]:[];for(let a of l){if(!this.#u(a))throw new o.DOMException(`The subprotocol '${a}' is invalid.`,w.syntaxError);if(n.has(a))throw new o.DOMException(`The subprotocol '${a}' is duplicated.`,w.syntaxError);n.add(a)}this.#i=s,this.#s(s,l)}get readyState(){return this.#t}get extensions(){return this.#e}get binaryType(){return this.#r}set binaryType(t){if(t!=="blob"&&t!=="arraybuffer")return;this.#r=t}get protocol(){return this[vr]?.protocol||""}get url(){return this.#i.href}close(t,e){let o=this[m];if(t!==void 0&&t!==1000&&!(t>=3000&&t<=4999))throw new o.DOMException(`The code must be either 1000, or between 3000 and 4999. ${t} is neither.`,w.invalidAccessError);if(e!==void 0&&Buffer.byteLength(e,"utf8")>123)throw new o.DOMException("The message must not be greater than 123 bytes.",w.syntaxError);this.#l(t,e?Buffer.from(e):void 0)}send(t){let e=this[m];if(this.#t===Po.connecting)throw new e.DOMException("Still in CONNECTING state.",w.invalidStateError);if(this.#t!==Po.open)return;if(typeof t==="string"){this[vr]?.send(t,{binary:!1});return}let o;if(t instanceof ArrayBuffer)o=Buffer.from(new Uint8Array(t));else if(t instanceof ie)o=t[Nt];else if(t instanceof Buffer)o=t;else if(ArrayBuffer.isView(t))o=Buffer.from(new Uint8Array(t.buffer,t.byteOffset,t.byteLength));else o=Buffer.from(String(t));this[vr]?.send(o,{binary:!0})}[At](){super[At](),this.#l(1001)}#s(t,e){let o=this[m],s=new it(o).getBrowserContext();if(!s)return;let n=new URL(o.location.href),l=s.cookieContainer.getCookies(n,!1);this.#t=Po.connecting,this[vr]=new rw(t,e,{headers:{"user-agent":o.navigator.userAgent,cookie:oi.cookiesToString(l),origin:n.origin},rejectUnauthorized:!s.browser.settings.fetch.disableStrictSSL}),this[vr].once("open",()=>{this.#m()}),this[vr].on("message",this.#y.bind(this)),this[vr].once("close",(a,y)=>{this.#a(a,y)}),this[vr].once("upgrade",({headers:a})=>{if(a["set-cookie"]!==void 0){let y=Array.isArray(a["set-cookie"])?a["set-cookie"]:[a["set-cookie"]];for(let u of y){let c=oi.stringToCookie(n,u);if(c)s.cookieContainer.addCookies([c])}}}),this[vr].once("error",(a)=>{this.#o=a}),o[Qn].push(this)}#l(t,e){if(this.readyState===Po.connecting)if(this[vr])this[vr].terminate();else this.#t=Po.closing;else if(this[vr]&&this.readyState===Po.open)this[vr].close(t,e);this[vr]=null}#m(){if(this[vr]?.extensions)this.#e=Object.keys(this[vr].extensions).join(", ");this.#t=Po.open,this.dispatchEvent(new this[m].Event("open"))}#a(t,e){let o=this[m],s=o[Qn].indexOf(this);if(s!==-1)o[Qn].splice(s,1);this.#t=Po.closed,this.dispatchEvent(new this[m].CloseEvent("close",{wasClean:this.#o===null,code:t,reason:e.toString()}))}#y(t,e){if(this.#t!==Po.open)return;let o=this[m],s;if(e)switch(this.binaryType){case"arraybuffer":if(t instanceof o.ArrayBuffer)s=t;else if(Array.isArray(t))s=this.#p(Buffer.concat(t));else s=this.#p(t);break;case"blob":default:if(!Array.isArray(t))t=[t];s=new o.Blob(t);break}else s=String(t);this.dispatchEvent(new o.MessageEvent("message",{data:s,origin:this.#i.origin}))}#p(t){let o=new this[m].ArrayBuffer(t.byteLength);return new Uint8Array(o).set(t),o}#u(t){return ow.test(t)}}class Vc{static extendClasses(t){class e extends cn{}e.prototype[m]=t,t.Document=e;class o extends Ku{}o.prototype[m]=t,t.HTMLDocument=o;class s extends Qu{}s.prototype[m]=t,t.XMLDocument=s;class n extends ma{}n.prototype[m]=t,t.DocumentFragment=n;class l extends ju{}l.prototype[m]=t,t.Text=l;class a extends qu{}a.prototype[m]=t,t.Comment=a;class y extends $u{}y.prototype[m]=t,t.Image=y;class u extends Nc{}u.prototype[m]=t,t.Audio=u;class c extends Xu{}c.prototype[m]=t,t.MutationObserver=c;class d extends kc{}d.prototype[m]=t,t.MessagePort=d;class g extends Ju{}g.prototype[m]=t,t.CSSStyleSheet=g;class f extends re{}t.DOMException=f;class E extends vi{}E.prototype[m]=t,t.Headers=E;class R extends Ni{}R.prototype[m]=t,t.Request=R;class H extends Ro{}H.prototype[m]=t,H[m]=t,t.Response=H;class pt extends vt{}pt.prototype[m]=t,t.EventTarget=pt;class gt extends Mc{}gt.prototype[m]=t,t.XMLHttpRequestUpload=gt;class Rt extends cl{}Rt.prototype[m]=t,t.XMLHttpRequestEventTarget=Rt;class lt extends Zu{}lt.prototype[m]=t,t.AbortController=lt;class dt extends th{}dt.prototype[m]=t,dt[m]=t,t.AbortSignal=dt;class ee extends ra{}ee.prototype[m]=t,t.FormData=ee;class Ct extends eh{}Ct.prototype[m]=t,t.PermissionStatus=Ct;class or extends Ic{}or.prototype[m]=t,t.XMLHttpRequest=or;class Ye extends sh{}Ye.prototype[m]=t,t.DOMParser=Ye;class Hr extends nh{}Hr.prototype[m]=t,t.Range=Hr;class zr extends lh{}zr.prototype[m]=t,t.VTTCue=zr;class Ts extends hm{}Ts.prototype[m]=t,t.TextTrack=Ts;class hi extends cm{}hi.prototype[m]=t,t.TextTrackList=hi;class fa extends da{}fa.prototype[m]=t,t.TextTrackCue=fa;class Bo extends ah{}Bo.prototype[m]=t,t.RemotePlayback=Bo;class Pa extends yh{}Pa.prototype[m]=t,t.FileReader=Pa;class xm extends nl{}xm.prototype[m]=t,t.MediaStream=xm;class Ue extends ga{}Ue.prototype[m]=t,t.MediaStreamTrack=Ue;class Jr extends Fc{}Jr.prototype[m]=t,t.CanvasCaptureMediaStreamTrack=Jr;class Cs extends Le{}Cs.prototype[m]=t,t.URL=Cs;class vm extends ph{}vm.prototype[m]=t,t.WebSocket=vm}}class Dc{[k]=0;[M]=0;[Ir]=0;[Rl]=1;constructor(t,e,o,s){this[k]=t!==void 0&&t!==null?Number(t):0,this[M]=e!==void 0&&e!==null?Number(e):0,this[Ir]=o!==void 0&&o!==null?Number(o):0,this[Rl]=s!==void 0&&s!==null?Number(s):1}get x(){return this[k]}get y(){return this[M]}get z(){return this[Ir]}get w(){return this[Rl]}toJSON(){return{x:this.x,y:this.y,z:this.z,w:this.w}}static fromPoint(t){if(!t)return new this;return new this(t.x??null,t.y??null,t.z??null,t.w??null)}}class dm extends Dc{set x(t){this[k]=t}get x(){return this[k]}set y(t){this[M]=t}get y(){return this[M]}set z(t){this[Ir]=t}get z(){return this[Ir]}set w(t){this[Rl]=t}get w(){return this[Rl]}}var bm={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:!0,isIdentity:!0},iw=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,sw=/[\s,]+/;class dl{[kt]=1;[Dt]=0;[zt]=0;[Jt]=0;[Mt]=0;[Bt]=1;[Zt]=0;[te]=0;[Wt]=0;[jt]=0;[qt]=1;[_t]=0;[It]=0;[Ot]=0;[$t]=0;[Xt]=1;constructor(t){if(t)this[Ra](t)}get a(){return this[kt]}get b(){return this[Dt]}get c(){return this[Mt]}get d(){return this[Bt]}get e(){return this[It]}get f(){return this[Ot]}get m11(){return this[kt]}get m12(){return this[Dt]}get m13(){return this[zt]}get m14(){return this[Jt]}get m21(){return this[Mt]}get m22(){return this[Bt]}get m23(){return this[Zt]}get m24(){return this[te]}get m31(){return this[Wt]}get m32(){return this[jt]}get m33(){return this[qt]}get m34(){return this[_t]}get m41(){return this[It]}get m42(){return this[Ot]}get m43(){return this[$t]}get m44(){return this[Xt]}get isIdentity(){return this[kt]===1&&this[Dt]===0&&this[zt]===0&&this[Jt]===0&&this[Mt]===0&&this[Bt]===1&&this[Zt]===0&&this[te]===0&&this[Wt]===0&&this[jt]===0&&this[qt]===1&&this[_t]===0&&this[It]===0&&this[Ot]===0&&this[$t]===0&&this[Xt]===1}get is2D(){return this[Wt]===0&&this[jt]===0&&this[qt]===1&&this[_t]===0&&this[$t]===0&&this[Xt]===1}toFloat32Array(t){return Float32Array.from(this[hy](t))}toFloat64Array(t){return Float64Array.from(this[hy](t))}toString(){let t=this.is2D,e=this[hy](t).join(", ");return`${t?"matrix":"matrix3d"}(${e})`}toJSON(){let{is2D:t,isIdentity:e}=this;return{m11:this[kt],m12:this[Dt],m13:this[zt],m14:this[Jt],m21:this[Mt],m22:this[Bt],m23:this[Zt],m24:this[te],m31:this[Wt],m32:this[jt],m33:this[qt],m34:this[_t],m41:this[It],m42:this[Ot],m43:this[$t],m44:this[Xt],a:this[kt],b:this[Dt],c:this[Mt],d:this[Bt],e:this[It],f:this[Ot],is2D:t,isIdentity:e}}multiply(t){let e=new this.constructor(this);return e[Co](t),e}translate(t=0,e=0,o=0){let s=new this.constructor(this);return s[To](t,e,o),s}scale(t,e,o=1,s=0,n=0,l=0){let a=new this.constructor(this);return a[os](t,e,o,s,n,l),a}scale3d(t=1,e=0,o=0,s=0){let n=new this.constructor(this);return n[cy](t,e,o,s),n}scaleNonUniform(t=1,e=1){let o=new this.constructor(this);return o[dy](t,e),o}rotateAxisAngle(t=0,e=0,o=0,s=0){let n=new this.constructor(this);return n[_s](t,e,o,s),n}rotate(t=0,e,o){let s=new this.constructor(this);return s[Ws](t,e,o),s}rotateFromVector(t=0,e=0){let o=new this.constructor(this);return o[Xy](t,e),o}skewX(t){let e=new this.constructor(this);return e[Vl](t),e}skewY(t){let e=new this.constructor(this);return e[Dl](t),e}flipX(){let t=new this.constructor(this);return t[zy](),t}flipY(){let t=new this.constructor(this);return t[Jy](),t}inverse(){let t=new this.constructor(this);return t[Zy](),t}transformPoint(t){let e=t.x??0,o=t.y??0,s=t.z??0,n=t.w??1,l=this[kt]*e+this[Mt]*o+this[Wt]*s+this[It]*n,a=this[Dt]*e+this[Bt]*o+this[jt]*s+this[Ot]*n,y=this[zt]*e+this[Zt]*o+this[qt]*s+this[$t]*n,u=this[Jt]*e+this[te]*o+this[_t]*s+this[Xt]*n;return new dm(l,a,y,u)}[Ra](t){let e=null;if(typeof t==="string"&&t.length&&t!=="none")e=this.constructor[Fl](t);else if(Array.isArray(t)||t instanceof Float64Array||t instanceof Float32Array)e=this.constructor[vo](t);else if(typeof t==="object")e=this.constructor.fromMatrix(t);else return;this[kt]=e[kt],this[Dt]=e[Dt],this[zt]=e[zt],this[Jt]=e[Jt],this[Mt]=e[Mt],this[Bt]=e[Bt],this[Zt]=e[Zt],this[te]=e[te],this[Wt]=e[Wt],this[jt]=e[jt],this[qt]=e[qt],this[_t]=e[_t],this[It]=e[It],this[Ot]=e[Ot],this[$t]=e[$t],this[Xt]=e[Xt]}[Co](t){let e=t;if(!(e instanceof dl))if(e?.m11===void 0&&e?.a!==void 0)e=Object.assign({},bm,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;else e=Object.assign({},bm,e);let o=this[kt]*e.m11+this[Mt]*e.m12+this[Wt]*e.m13+this[It]*e.m14,s=this[kt]*e.m21+this[Mt]*e.m22+this[Wt]*e.m23+this[It]*e.m24,n=this[kt]*e.m31+this[Mt]*e.m32+this[Wt]*e.m33+this[It]*e.m34,l=this[kt]*e.m41+this[Mt]*e.m42+this[Wt]*e.m43+this[It]*e.m44,a=this[Dt]*e.m11+this[Bt]*e.m12+this[jt]*e.m13+this[Ot]*e.m14,y=this[Dt]*e.m21+this[Bt]*e.m22+this[jt]*e.m23+this[Ot]*e.m24,u=this[Dt]*e.m31+this[Bt]*e.m32+this[jt]*e.m33+this[Ot]*e.m34,c=this[Dt]*e.m41+this[Bt]*e.m42+this[jt]*e.m43+this[Ot]*e.m44,d=this[zt]*e.m11+this[Zt]*e.m12+this[qt]*e.m13+this[$t]*e.m14,g=this[zt]*e.m21+this[Zt]*e.m22+this[qt]*e.m23+this[$t]*e.m24,f=this[zt]*e.m31+this[Zt]*e.m32+this[qt]*e.m33+this[$t]*e.m34,E=this[zt]*e.m41+this[Zt]*e.m42+this[qt]*e.m43+this[$t]*e.m44,R=this[Jt]*e.m11+this[te]*e.m12+this[_t]*e.m13+this[Xt]*e.m14,H=this[Jt]*e.m21+this[te]*e.m22+this[_t]*e.m23+this[Xt]*e.m24,pt=this[Jt]*e.m31+this[te]*e.m32+this[_t]*e.m33+this[Xt]*e.m34,gt=this[Jt]*e.m41+this[te]*e.m42+this[_t]*e.m43+this[Xt]*e.m44;this[kt]=o,this[Dt]=a,this[zt]=d,this[Jt]=R,this[Mt]=s,this[Bt]=y,this[Zt]=g,this[te]=H,this[Wt]=n,this[jt]=u,this[qt]=f,this[_t]=pt,this[It]=l,this[Ot]=c,this[$t]=E,this[Xt]=gt}[To](t=0,e=0,o=0){let s=this.constructor[vo]([1,0,0,0,0,1,0,0,0,0,1,0,t,e,o,1]);this[Co](s)}[os](t,e,o=1,s=0,n=0,l=0){if(t=t===void 0?1:Number(t),e=e===void 0?t:Number(e),s!==0||n!==0||l!==0)this[To](s,n,l);if(t!==1||e!==1||o!==1)this[Co](this.constructor[vo]([t,0,0,0,0,e,0,0,0,0,o,0,0,0,0,1]));if(s!==0||n!==0||l!==0)this[To](-s,-n,-l)}[cy](t=1,e=0,o=0,s=0){if(e!==0||o!==0||s!==0)this[To](e,o,s);if(t!==1)this[Co](this.constructor[vo]([t,0,0,0,0,t,0,0,0,0,t,0,0,0,0,1]));if(e!==0||o!==0||s!==0)this[To](-e,-o,-s)}[dy](t=1,e=1){if(t===1&&e===1)return;this[Co](this.constructor[vo]([t,0,0,0,0,e,0,0,0,0,1,0,0,0,0,1]))}[_s](t=0,e=0,o=0,s=0){if(t=Number(t),e=Number(e),o=Number(o),s=Number(s),isNaN(t)||isNaN(e)||isNaN(o)||isNaN(s))throw TypeError("Failed to execute 'rotateAxisAngleSelf' on 'DOMMatrix': The arguments must be numbers.");let n=Math.hypot(t,e,o);if(n===0)return;if(n!==1)t/=n,e/=n,o/=n;let l=-(s*Math.PI/360),a=this.#t,y=Math.sin(l)*Math.cos(l),u=Math.sin(l)*Math.sin(l),c=a(1-2*(e*e+o*o)*u),d=a(2*(t*e*u+o*y)),g=a(2*(t*o*u-e*y)),f=a(2*(t*e*u-o*y)),E=a(1-2*(t*t+o*o)*u),R=a(2*(e*o*u+t*y)),H=a(2*(t*o*u+e*y)),pt=a(2*(e*o*u-t*y)),gt=a(1-2*(t*t+e*e)*u),Rt=this.constructor[vo]([c,f,H,0,d,E,pt,0,g,R,gt,0,0,0,0,1]);this[Co](Rt)}[Ws](t=0,e,o){if(e===void 0&&o===void 0)o=t,t=0,e=0;if(e===void 0)e=0;if(o===void 0)o=0;if(t=Number(t),e=Number(e),o=Number(o),isNaN(t)||isNaN(e)||isNaN(o))throw TypeError("Failed to execute 'rotateSelf' on 'DOMMatrix': The arguments must be numbers.");if(o!==0)this[_s](0,0,1,o);if(e!==0)this[_s](0,1,0,e);if(t!==0)this[_s](1,0,0,t)}[Xy](t=0,e=0){if(t===0&&e===0)return;this[Ws](Math.atan2(e,t)*180/Math.PI)}[Vl](t){let e=Object.assign({},bm),o=Math.tan(t*Math.PI/180);e.m21=o,e.c=o,this[Co](e)}[Dl](t){let e=Object.assign({},bm),o=Math.tan(t*Math.PI/180);e.m12=o,e.b=o,this[Co](e)}[zy](){let t=this.constructor[vo]([-1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);this[Co](t)}[Jy](){let t=this.constructor[vo]([1,0,0,0,0,-1,0,0,0,0,1,0,0,0,0,1]);this[Co](t)}[Zy](){let t=this[Bt]*this[qt]*this[Xt]-this[Bt]*this[_t]*this[$t]-this[jt]*this[Zt]*this[Xt]+this[jt]*this[te]*this[$t]+this[Ot]*this[Zt]*this[_t]-this[Ot]*this[te]*this[qt],e=-this[Dt]*this[qt]*this[Xt]+this[Dt]*this[_t]*this[$t]+this[jt]*this[zt]*this[Xt]-this[jt]*this[Jt]*this[$t]-this[Ot]*this[zt]*this[_t]+this[Ot]*this[Jt]*this[qt],o=this[Dt]*this[Zt]*this[Xt]-this[Dt]*this[te]*this[$t]-this[Bt]*this[zt]*this[Xt]+this[Bt]*this[Jt]*this[$t]+this[Ot]*this[zt]*this[te]-this[Ot]*this[Jt]*this[Zt],s=-this[Dt]*this[Zt]*this[_t]+this[Dt]*this[te]*this[qt]+this[Bt]*this[zt]*this[_t]-this[Bt]*this[Jt]*this[qt]-this[jt]*this[zt]*this[te]+this[jt]*this[Jt]*this[Zt],n=this[kt]*t+this[Mt]*e+this[Wt]*o+this[It]*s;if(n===0){this[kt]=NaN,this[Dt]=NaN,this[zt]=NaN,this[Jt]=NaN,this[Mt]=NaN,this[Bt]=NaN,this[Zt]=NaN,this[te]=NaN,this[Wt]=NaN,this[jt]=NaN,this[qt]=NaN,this[_t]=NaN,this[It]=NaN,this[Ot]=NaN,this[$t]=NaN,this[Xt]=NaN;return}let l=-this[Mt]*this[qt]*this[Xt]+this[Mt]*this[_t]*this[$t]+this[Wt]*this[Zt]*this[Xt]-this[Wt]*this[te]*this[$t]-this[It]*this[Zt]*this[_t]+this[It]*this[te]*this[qt],a=this[kt]*this[qt]*this[Xt]-this[kt]*this[_t]*this[$t]-this[Wt]*this[zt]*this[Xt]+this[Wt]*this[Jt]*this[$t]+this[It]*this[zt]*this[_t]-this[It]*this[Jt]*this[qt],y=-this[kt]*this[Zt]*this[Xt]+this[kt]*this[te]*this[$t]+this[Mt]*this[zt]*this[Xt]-this[Mt]*this[Jt]*this[$t]-this[It]*this[zt]*this[te]+this[It]*this[Jt]*this[Zt],u=this[kt]*this[Zt]*this[_t]-this[kt]*this[te]*this[qt]-this[Mt]*this[zt]*this[_t]+this[Mt]*this[Jt]*this[qt]+this[Wt]*this[zt]*this[te]-this[Wt]*this[Jt]*this[Zt],c=this[Mt]*this[jt]*this[Xt]-this[Mt]*this[_t]*this[Ot]-this[Wt]*this[Bt]*this[Xt]+this[Wt]*this[te]*this[Ot]+this[It]*this[Bt]*this[_t]-this[It]*this[te]*this[jt],d=-this[kt]*this[jt]*this[Xt]+this[kt]*this[_t]*this[Ot]+this[Wt]*this[Dt]*this[Xt]-this[Wt]*this[Jt]*this[Ot]-this[It]*this[Dt]*this[_t]+this[It]*this[Jt]*this[jt],g=this[kt]*this[Bt]*this[Xt]-this[kt]*this[te]*this[Ot]-this[Mt]*this[Dt]*this[Xt]+this[Mt]*this[Jt]*this[Ot]+this[It]*this[Dt]*this[te]-this[It]*this[Jt]*this[Bt],f=-this[kt]*this[Bt]*this[_t]+this[kt]*this[te]*this[jt]+this[Mt]*this[Dt]*this[_t]-this[Mt]*this[Jt]*this[jt]-this[Wt]*this[Dt]*this[te]+this[Wt]*this[Jt]*this[Bt],E=-this[Mt]*this[jt]*this[$t]+this[Mt]*this[qt]*this[Ot]+this[Wt]*this[Bt]*this[$t]-this[Wt]*this[Zt]*this[Ot]-this[It]*this[Bt]*this[qt]+this[It]*this[Zt]*this[jt],R=this[kt]*this[jt]*this[$t]-this[kt]*this[qt]*this[Ot]-this[Wt]*this[Dt]*this[$t]+this[Wt]*this[zt]*this[Ot]+this[It]*this[Dt]*this[qt]-this[It]*this[zt]*this[jt],H=-this[kt]*this[Bt]*this[$t]+this[kt]*this[Zt]*this[Ot]+this[Mt]*this[Dt]*this[$t]-this[Mt]*this[zt]*this[Ot]-this[It]*this[Dt]*this[Zt]+this[It]*this[zt]*this[Bt],pt=this[kt]*this[Bt]*this[qt]-this[kt]*this[Zt]*this[jt]-this[Mt]*this[Dt]*this[qt]+this[Mt]*this[zt]*this[jt]+this[Wt]*this[Dt]*this[Zt]-this[Wt]*this[zt]*this[Bt];this[kt]=t/n||0,this[Dt]=e/n||0,this[zt]=o/n||0,this[Jt]=s/n||0,this[Mt]=l/n||0,this[Bt]=a/n||0,this[Zt]=y/n||0,this[te]=u/n||0,this[Wt]=c/n||0,this[jt]=d/n||0,this[qt]=g/n||0,this[_t]=f/n||0,this[It]=E/n||0,this[Ot]=R/n||0,this[$t]=H/n||0,this[Xt]=pt/n||0}[hy](t=!1){if(t)return[this[kt],this[Dt],this[Mt],this[Bt],this[It],this[Ot]];return[this[kt],this[Dt],this[zt],this[Jt],this[Mt],this[Bt],this[Zt],this[te],this[Wt],this[jt],this[qt],this[_t],this[It],this[Ot],this[$t],this[Xt]]}#t(t,e=1000000000000000){return Math.round(t*e)/e}static fromMatrix(t){if(!(t instanceof dl))if(t?.m11===void 0&&t?.a!==void 0)t=Object.assign({},bm,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;else t=Object.assign({},bm,t);return this[vo]([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[vo](t)}static fromFloat64Array(t){return this[vo](t)}static[vo](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[o,s,n,l,a,y,u,c,d,g,f,E,R,H,pt,gt]=t;e[kt]=o,e[Dt]=s,e[zt]=n,e[Jt]=l,e[Mt]=a,e[Bt]=y,e[Zt]=u,e[te]=c,e[Wt]=d,e[jt]=g,e[qt]=f,e[_t]=E,e[It]=R,e[Ot]=H,e[$t]=pt,e[Xt]=gt}else if(t.length===6){let[o,s,n,l,a,y]=t;e[kt]=o,e[Dt]=s,e[Mt]=n,e[Bt]=l,e[It]=a,e[Ot]=y}return e}static[Fl](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,o=new RegExp(iw),s;while(s=o.exec(t)){let n=s[1],l=s[2].split(sw);for(let d=0,g=l.length;d<g;d++)l[d]=this[wb](l[d]);let[a,y,u,c]=l;switch(n){case"perspective":if(!isNaN(a)&&a!==0&&y===void 0&&u===void 0)e[_t]=-1/a;break;case"translate":if(!isNaN(a)&&u===void 0)e[To](a,y||0,0);break;case"translate3d":if(!isNaN(a)&&!isNaN(y)&&!isNaN(u))e[To](a,y,u);break;case"translateX":if(!isNaN(a)&&y===void 0&&u===void 0)e[To](a);break;case"translateY":if(!isNaN(a)&&y===void 0&&u===void 0)e[To](0,a);break;case"translateZ":if(!isNaN(a)&&y===void 0&&u===void 0)e[To](0,0,a);break;case"matrix":case"matrix3d":if(l.length===6||l.length===16)e[Ra](this[vo](l));break;case"rotate":case"rotateZ":if(!isNaN(a)&&y===void 0&&u===void 0)e[Ws](0,0,a);break;case"rotateX":if(!isNaN(a)&&y===void 0&&u===void 0)e[Ws](a,0,0);break;case"rotateY":if(!isNaN(a)&&y===void 0&&u===void 0)e[Ws](0,a,0);case"rotate3d":if(!isNaN(a)&&!isNaN(y)&&!isNaN(u)&&!isNaN(c))e[_s](a,y,u,c);break;case"scale":if(!isNaN(a)&&a!==1&&u===void 0)e[os](a,isNaN(y)?a:y);break;case"scale3d":if(!isNaN(a)&&!isNaN(y)&&!isNaN(u))e[os](a,y,u);break;case"scaleX":if(!isNaN(a)&&y===void 0&&u===void 0)e[os](a,1,1);break;case"scaleY":if(!isNaN(a)&&y===void 0&&u===void 0)e[os](1,a,1);break;case"scaleZ":if(!isNaN(a)&&y===void 0&&u===void 0)e[os](1,1,a);break;case"skew":if(!isNaN(a))e[Vl](a);if(!isNaN(y))e[Dl](y);break;case"skewX":if(!isNaN(a)&&y===void 0)e[Vl](a);break;case"skewY":if(!isNaN(a)&&y===void 0)e[Dl](a);break;default:throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Unknown transform function '${s[1]}'.`)}}return e}static[wb](t){let e=parseFloat(t);switch(t.replace(e.toString(),"")){case"rem":case"em":case"vw":case"vh":case"%":case"vmin":case"vmax":throw 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*0.945;default:return e}}}class Ao extends dl{get a(){return this[kt]}set a(t){this[kt]=t}get b(){return this[Dt]}set b(t){this[Dt]=t}get c(){return this[Mt]}set c(t){this[Mt]=t}get d(){return this[Bt]}set d(t){this[Bt]=t}get e(){return this[It]}set e(t){this[It]=t}get f(){return this[Ot]}set f(t){this[Ot]=t}get m11(){return this[kt]}set m11(t){this[kt]=t}get m12(){return this[Dt]}set m12(t){this[Dt]=t}get m13(){return this[zt]}set m13(t){this[zt]=t}get m14(){return this[Jt]}set m14(t){this[Jt]=t}get m21(){return this[Mt]}set m21(t){this[Mt]=t}get m22(){return this[Bt]}set m22(t){this[Bt]=t}get m23(){return this[Zt]}set m23(t){this[Zt]=t}get m24(){return this[te]}set m24(t){this[te]=t}get m31(){return this[Wt]}set m31(t){this[Wt]=t}get m32(){return this[jt]}set m32(t){this[jt]=t}get m33(){return this[qt]}set m33(t){this[qt]=t}get m34(){return this[_t]}set m34(t){this[_t]=t}get m41(){return this[It]}set m41(t){this[It]=t}get m42(){return this[Ot]}set m42(t){this[Ot]=t}get m43(){return this[$t]}set m43(t){this[$t]=t}get m44(){return this[Xt]}set m44(t){this[Xt]=t}setMatrixValue(t){return this[Ra](t),this}multiplySelf(t){return this[Co](t),this}translateSelf(t=0,e=0,o=0){return this[To](t,e,o),this}scaleSelf(t,e,o=1,s=0,n=0,l=0){return this[os](t,e,o,s,n,l),this}scale3dSelf(t=1,e=0,o=0,s=0){return this[cy](t,e,o,s),this}scaleNonUniformSelf(t=1,e=1){return this[dy](t,e),this}rotateAxisAngleSelf(t=0,e=0,o=0,s=0){return this[_s](t,e,o,s),this}rotateSelf(t=0,e,o){return this[Ws](t,e,o),this}rotateFromVectorSelf(t=0,e=0){return this[Xy](t,e),this}skewXSelf(t){return this[Vl](t),this}skewYSelf(t){return this[Dl](t),this}flipXSelf(){return this[zy](),this}flipYSelf(){return this[Jy](),this}invertSelf(){return this[Zy](),this}}var nw=/[\t\f\n\r ,]+/;class ki{[m];[v];[A];[j]=!1;[U]={items:[],attributeValue:""};constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,this[j]=!!o.readOnly,this[v]=o.getAttribute,this[A]=o.setAttribute,t!==h)throw TypeError("Illegal constructor");let s=new fe(this,[ki]);return new Proxy(this,{get:(n,l)=>{if(l==="length"||l==="numberOfItems")return n[K]().length;if(l in n||typeof l==="symbol")return s.bind(l),n[l];let a=Number(l);if(!isNaN(a))return n[K]()[a]},set(n,l,a){if(s.bind(l),typeof l==="symbol")return n[l]=a,!0;let y=Number(l);if(isNaN(y))n[l]=a;return!0},deleteProperty(n,l){if(typeof l==="symbol")return delete n[l],!0;let a=Number(l);if(isNaN(a))delete n[l];return!0},ownKeys(n){return Object.keys(n[K]())},has(n,l){if(l in n)return!0;if(typeof l==="symbol")return!1;let a=Number(l);return!isNaN(a)&&a>=0&&a<n[K]().length},defineProperty(n,l,a){if(s.preventBinding(l),l in n)return Object.defineProperty(n,l,a),!0;return!1},getOwnPropertyDescriptor(n,l){if(l in n||typeof l==="symbol")return;let a=Number(l),y=n[K]();if(!isNaN(a)&&y[a])return{value:y[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[K]().length}get numberOfItems(){return this[K]().length}[Symbol.iterator](){return this[K]().values()}clear(){this[U].attributeValue="",this[U].items=[],this[A]("")}initialize(t){if(this[j])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[A](t),t}getItem(t){let e=this[K]();if(typeof t==="number")return e[t]?e[t]:null;return t=Number(t),t=isNaN(t)?0:t,e[t]?e[t]:null}insertItemBefore(t,e){if(this[j])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 o=this[K](),s=o.indexOf(t);if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>o.length)e=o.length;return o.splice(e,0,t),this[A](o.join(" ")),t}replaceItem(t,e){if(this[j])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 o=this[K]();if(e<0)e=0;else if(e>=o.length)e=o.length-1;let s=o[e];return o[e]=t,this[A](o.join(" ")),s}removeItem(t){if(this[j])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[K]();if(t=Number(t),isNaN(t))t=0;if(t>=e.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${t}) is greater than the maximum bound.`,w.indexSizeError);if(t<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${t}) is negative.`,w.indexSizeError);let o=e[t];return e.splice(t,1),this[A](e.join(" ")),o}appendItem(t){if(this[j])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[K](),o=e.indexOf(t);if(o!==-1)e.splice(o,1);return e.push(t),this[A](e.join(" ")),t}[K](){let t=this[v]()??"",e=this[U];if(e.attributeValue===t)return e.items;let o=[],s=t.trim();if(s){for(let n of s.split(nw))if(!o.includes(n))o.push(n)}return e.attributeValue=t,e.items=o,o}}var lw=/([a-zA-Z0-9]+)\(([^)]+)\)/,aw=/[\s,]+/;class rr{[m];[v]=null;[A]=null;[I]=null;[j]=!1;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get a(){return this[Ne]().a}set a(t){if(this[j])return;let e=this[Ne]();e.a=t,this[gr](e)}get b(){return this[Ne]().b}set b(t){if(this[j])return;let e=this[Ne]();e.b=t,this[gr](e)}get c(){return this[Ne]().c}set c(t){if(this[j])return;let e=this[Ne]();e.c=t,this[gr](e)}get d(){return this[Ne]().d}set d(t){if(this[j])return;let e=this[Ne]();e.d=t,this[gr](e)}get e(){return this[Ne]().e}set e(t){if(this[j])return;let e=this[Ne]();e.e=t,this[gr](e)}get f(){return this[Ne]().f}set f(t){if(this[j])return;let e=this[Ne]();e.f=t,this[gr](e)}multiply(t){if(!(t instanceof rr))throw new this[m].TypeError("Failed to execute 'multiply' on 'SVGMatrix': parameter 1 is not of type 'SVGMatrix'.");let e=this[Ne](),o=new rr(h,this[m]);return e.multiplySelf(t[Ne]()),o[gr](e),o}translate(t=0,e=0){let o=this[Ne](),s=new rr(h,this[m]);return o.translateSelf(t,e),s[gr](o),s}scale(t){let e=this[Ne](),o=new rr(h,this[m]);return e.scaleSelf(t),o[gr](e),o}scaleNonUniform(t=1,e=1){let o=this[Ne](),s=new rr(h,this[m]);return o.scaleNonUniformSelf(t,e),s[gr](o),s}rotate(t){let e=this[Ne](),o=new rr(h,this[m]);return e.rotateSelf(t),o[gr](e),o}rotateFromVector(t=0,e=0){let o=this[Ne](),s=new rr(h,this[m]);return o.rotateFromVectorSelf(t,e),s[gr](o),s}skewX(t){let e=this[Ne](),o=new rr(h,this[m]);return e.skewXSelf(t),o[gr](e),o}skewY(t){let e=this[Ne](),o=new rr(h,this[m]);return e.skewYSelf(t),o[gr](e),o}flipX(){let t=this[Ne](),e=new rr(h,this[m]);return t.flipXSelf(),e[gr](t),e}flipY(){let t=this[Ne](),e=new rr(h,this[m]);return t.flipYSelf(),e[gr](t),e}inverse(){let t=this[Ne](),e=new rr(h,this[m]);return t.invertSelf(),e[gr](t),e}[Ne](){let t=this[v]?this[v]():this[I];if(!t)return new Ao;let e=t.match(lw);if(!e)return new Ao;let o=[];for(let s of e[2].trim().split(aw)){let n=Number(s);if(isNaN(n))throw new this[m].TypeError(`Failed to parse transform attribute: Expected number, but got "${s}" in "${t}".`);o.push(n)}switch(e[1]){case"matrix":if(o.length!==6)throw new this[m].TypeError(`Failed to parse transform attribute: Expected 6 parameters in "${t}".`);return Ao[Fl](t);case"scale":case"translate":if(o.length!==1&&o.length!==2)throw new this[m].TypeError(`Failed to parse transform attribute: Expected 1 or 2 parameters in "${t}".`);return Ao[Fl](t);case"skewY":case"skewX":if(o.length!==1)throw new this[m].TypeError(`Failed to parse transform attribute: Expected 1 parameter in "${t}".`);return Ao[Fl](t);case"rotate":let s=new Ao;if(o.length!==1&&o.length!==3)throw new this[m].TypeError(`Failed to parse transform attribute: Expected 1 or 3 parameters in "${t}".`);let[n,l,a]=o;if(l||a)s.translateSelf(l,a);let y=n*Math.PI/180;if(s.multiplySelf(new Ao([Math.cos(y),Math.sin(y),-Math.sin(y),Math.cos(y),0,0])),l||a)s.translateSelf(-l,-a);return s;default:throw new this[m].TypeError(`Failed to parse transform attribute: Unknown transformation "${t}".`)}}[gr](t){if(this[I]=t.toString().replace(/, /g," "),this[A])this[A](this[I])}}var Pg;(function(t){t[t.unknown=0]="unknown",t[t.matrix=1]="matrix",t[t.translate=2]="translate",t[t.scale=3]="scale",t[t.rotate=4]="rotate",t[t.skewX=5]="skewX",t[t.skewY=6]="skewY"})(Pg||(Pg={}));var wo=Pg;var MS=/([a-zA-Z0-9]+)\(([^)]+)\)/,mw=/[\s,]+/;class jo{static SVG_TRANSFORM_UNKNOWN=wo.unknown;static SVG_TRANSFORM_MATRIX=wo.matrix;static SVG_TRANSFORM_TRANSLATE=wo.translate;static SVG_TRANSFORM_SCALE=wo.scale;static SVG_TRANSFORM_ROTATE=wo.rotate;static SVG_TRANSFORM_SKEWX=wo.skewX;static SVG_TRANSFORM_SKEWY=wo.skewY;[m];[v]=null;[A]=null;[I]=null;[j]=!1;[Ys]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get type(){let e=(this[v]?this[v]():this[I])?.match(MS);if(!e)return wo.unknown;switch(e[1]){case"matrix":return wo.matrix;case"translate":return wo.translate;case"rotate":return wo.rotate;case"scale":return wo.scale;case"skewX":return wo.skewX;case"skewY":return wo.skewY}return 0}get angle(){let e=(this[v]?this[v]():this[I])?.match(MS);if(!e)return 0;let o=parseFloat(e[2].trim().split(mw)[0]);if(isNaN(o))return 0;switch(e[1]){case"rotate":case"skewX":case"skewY":return o}return 0}get matrix(){if(!this[Ys])this[Ys]=new rr(h,this[m],{readOnly:this[j],getAttribute:()=>{if(this[v])return this[v]();return this[I]},setAttribute:(t)=>{if(this[I]=t,this[A]){this[A](t);return}}});return this[Ys]}setMatrix(t){if(!(t instanceof rr))throw TypeError('Failed to set the "matrix" property on "SVGTransform": The provided value is not of type "SVGMatrix".');if(this[j])return;if(this[Ys])this[Ys][v]=null,this[Ys][A]=null;if(t[v]=()=>{if(this[v])return this[v]();return this[I]},t[A]=(e)=>{if(this[I]=e,this[A]){this[A](e);return}},this[Ys]=t,t[I]!==this[I]){if(this[I]=t[I],this[A])this[A](this[I]||"")}}setTranslate(t,e){if(arguments.length<2)throw 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 TypeError("Failed to execute 'setTranslate' on 'SVGTransform': The provided float value is non-finite.");if(this[j])return;if(this[I]=`translate(${t} ${e})`,this[A])this[A](this[I])}setScale(t,e){if(arguments.length<2)throw 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 TypeError("Failed to execute 'setScale' on 'SVGTransform': The provided float value is non-finite.");if(this[j])return;if(this[I]=`scale(${t} ${e})`,this[A])this[A](this[I])}setRotate(t,e,o){if(arguments.length<3)throw TypeError(`Failed to execute 'setRotate' on 'SVGTransform': 3 arguments required, but only ${arguments.length} present.`);if(t=Number(t),e=Number(e),o=Number(o),isNaN(t)||isNaN(e)||isNaN(o))throw TypeError("Failed to execute 'setRotate' on 'SVGTransform': The provided float value is non-finite.");if(this[j])return;if(this[I]=`rotate(${t} ${e} ${o})`,this[A])this[A](this[I])}setSkewX(t){if(arguments.length<1)throw TypeError(`Failed to execute 'setSkewX' on 'SVGTransform': 1 arguments required, but only ${arguments.length} present.`);if(t=Number(t),isNaN(t))throw TypeError("Failed to execute 'setSkewX' on 'SVGTransform': The provided float value is non-finite.");if(this[j])return;if(this[I]=`skewX(${t})`,this[A])this[A](this[I])}setSkewY(t){if(arguments.length<1)throw TypeError(`Failed to execute 'setSkewY' on 'SVGTransform': 1 arguments required, but only ${arguments.length} present.`);if(t=Number(t),isNaN(t))throw TypeError("Failed to execute 'setSkewY' on 'SVGTransform': The provided float value is non-finite.");if(this[j])return;if(this[I]=`skewY(${t})`,this[A])this[A](this[I])}}var yw=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,gn="matrix(1 0 0 1 0 0)";class bl{[m];[v];[A];[j]=!1;[U]={items:[],attributeValue:""};constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[j]=!!o.readOnly,this[v]=o.getAttribute,this[A]=o.setAttribute;let s=new fe(this,[bl]);return new Proxy(this,{get:(n,l)=>{if(l==="length"||l==="numberOfItems")return n[K]().length;if(l in n||typeof l==="symbol")return s.bind(l),n[l];let a=Number(l);if(!isNaN(a))return n[K]()[a]},set(n,l,a){if(s.bind(l),typeof l==="symbol")return n[l]=a,!0;let y=Number(l);if(isNaN(y))n[l]=a;return!0},deleteProperty(n,l){if(typeof l==="symbol")return delete n[l],!0;let a=Number(l);if(isNaN(a))delete n[l];return!0},ownKeys(n){return Object.keys(n[K]())},has(n,l){if(l in n)return!0;if(typeof l==="symbol")return!1;let a=Number(l);return!isNaN(a)&&a>=0&&a<n[K]().length},defineProperty(n,l,a){if(s.preventBinding(l),l in n)return Object.defineProperty(n,l,a),!0;return!1},getOwnPropertyDescriptor(n,l){if(l in n||typeof l==="symbol")return;let a=Number(l),y=n[K]();if(!isNaN(a)&&y[a])return{value:y[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[K]().length}get numberOfItems(){return this[K]().length}[Symbol.iterator](){return this[K]().values()}clear(){if(this[j])throw new this[m].TypeError("Failed to execute 'clear' on 'SVGTransformList': The object is read-only.");for(let t of this[U].items)t[v]=null,t[A]=null;this[U].items=[],this[U].attributeValue="",this[A]("")}initialize(t){if(this[j])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 jo))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");for(let e of this[U].items)e[v]=null,e[A]=null;return t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((e)=>e[I]||gn).join(" "),this[A](this[U].attributeValue)},this[U].items=[t],this[U].attributeValue=t[I],this[A](t[I]||""),t}getItem(t){let e=this[K]();if(typeof t==="number")return e[t]?e[t]:null;return t=Number(t),t=isNaN(t)?0:t,e[t]?e[t]:null}insertItemBefore(t,e){if(this[j])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 jo))throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let o=this[K](),s=o.indexOf(t);if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>o.length)e=o.length;return o.splice(e,0,t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((n)=>n[I]||gn).join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((n)=>n[I]||gn).join(" "),this[A](this[U].attributeValue),t}replaceItem(t,e){if(this[j])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 jo))throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let o=this[K](),s=o.indexOf(t);if(s===e)return t;if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>=o.length)e=o.length-1;if(o[e])o[e][v]=null,o[e][A]=null;let n=o[e];return o[e]=t,t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((l)=>l[I]||gn).join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((l)=>l[I]||gn).join(" "),this[A](this[U].attributeValue),n}removeItem(t){if(this[j])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[K]();if(t=Number(t),isNaN(t))t=0;if(t>=e.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${t}) is greater than the maximum bound.`,w.indexSizeError);if(t<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${t}) is negative.`,w.indexSizeError);let o=e[t];if(o)o[v]=null,o[A]=null;return e.splice(t,1),this[U].attributeValue=e.map((s)=>s[I]||gn).join(" "),this[A](this[U].attributeValue),o}appendItem(t){if(this[j])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 jo))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let e=this[K](),o=e.indexOf(t);if(o!==-1)e.splice(o,1);return e.push(t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((s)=>s[I]||gn).join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=e.map((s)=>s[I]||gn).join(" "),this[A](this[U].attributeValue),t}[K](){let t=this[v]()??"",e=this[U];if(e.attributeValue===t)return e.items;if(e.items.length)for(let n of e.items)n[v]=null,n[A]=null;let o=[],s=t.trim();if(s){let n=new RegExp(yw),l;while(l=n.exec(s)){let a=new jo(h,this[m],{readOnly:this[j],getAttribute:()=>a[I],setAttribute:()=>{this[U].attributeValue=this[K]().map((y)=>y[I]||gn).join(" "),this[A](this[U].attributeValue)}});a[I]=`${l[1]}(${l[2]})`,o.push(a)}}return e.attributeValue=t,e.items=o,o}}class vs{[m];[v];[A];[se]=null;[ne]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){if(!this[ne])this[ne]=new bl(h,this[m],{readOnly:!0,getAttribute:this[v],setAttribute:()=>{}});return this[ne]}set animVal(t){}get baseVal(){if(!this[se])this[se]=new bl(h,this[m],{getAttribute:this[v],setAttribute:this[A]});return this[se]}set baseVal(t){}}class Ae extends et{[Yi]=null;[Ki]=null;[_m]=null;get oncopy(){return S.getEventListener(this,"oncopy")}set oncopy(t){this[p].set("oncopy",t)}get oncut(){return S.getEventListener(this,"oncut")}set oncut(t){this[p].set("oncut",t)}get onpaste(){return S.getEventListener(this,"onpaste")}set onpaste(t){this[p].set("onpaste",t)}get requiredExtensions(){if(!this[Yi])this[Yi]=new ki(h,this[m],{getAttribute:()=>this.getAttribute("requiredExtensions"),setAttribute:(t)=>this.setAttribute("requiredExtensions",t)});return this[Yi]}get systemLanguage(){if(!this[Ki])this[Ki]=new ki(h,this[m],{getAttribute:()=>this.getAttribute("systemLanguage"),setAttribute:(t)=>this.setAttribute("systemLanguage",t)});return this[Ki]}get transform(){if(!this[_m])this[_m]=new vs(h,this[m],{getAttribute:()=>this.getAttribute("transform"),setAttribute:(t)=>this.setAttribute("transform",t)});return this[_m]}getBBox(){return new li}getCTM(){return new Ao}getScreenCTM(){return new Ao}}class Mi{[m];[v]=null;[A]=null;[I]=null;[j]=!1;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get x(){let t=this[v]?this[v]():this[I];if(!t)return 0;let e=t.split(/\s+/),o=Number(e[0]);return isNaN(o)?0:o}set x(t){if(this[j])throw new this[m].TypeError("Failed to set the 'x' property on 'SVGRect': The object is read-only.");if(this[I]=`${String(typeof t==="number"?t:parseFloat(t))} ${this.y} ${this.width} ${this.height}`,this[A])this[A](this[I])}get y(){let t=this[v]?this[v]():this[I];if(!t)return 0;let e=t.split(/\s+/),o=Number(e[1]);return isNaN(o)?0:o}set y(t){if(this[j])throw new this[m].TypeError("Failed to set the 'y' property on 'SVGRect': The object is read-only.");if(this[I]=`${this.x} ${String(typeof t==="number"?t:parseFloat(t))} ${this.width} ${this.height}`,this[A])this[A](this[I])}get width(){let t=this[v]?this[v]():this[I];if(!t)return 0;let e=t.split(/\s+/),o=Number(e[2]);return isNaN(o)?0:o}set width(t){if(this[j])throw new this[m].TypeError("Failed to set the 'width' property on 'SVGRect': The object is read-only.");if(this[I]=`${this.x} ${this.y} ${String(typeof t==="number"?t:parseFloat(t))} ${this.height}`,this[A])this[A](this[I])}get height(){let t=this[v]?this[v]():this[I];if(!t)return 0;let e=t.split(/\s+/),o=Number(e[3]);return isNaN(o)?0:o}set height(t){if(this[j])throw new this[m].TypeError("Failed to set the 'height' property on 'SVGRect': The object is read-only.");if(this[I]=`${this.x} ${this.y} ${this.width} ${String(typeof t==="number"?t:parseFloat(t))}`,this[A])this[A](this[I])}}var IS=/[\t\f\n\r, ]+/;class pr{[m];[v]=null;[A]=null;[I]=null;[j]=!1;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get x(){let e=((this[v]?this[v]():this[I])||"").split(IS);return e[0]?parseFloat(e[0]):0}set x(t){if(this[j])throw new this[m].TypeError("Failed to set the 'x' property on 'SVGPoint': The object is read-only.");if(this[I]=`${t} ${this.y}`,this[A])this[A](this[I])}get y(){let e=((this[v]?this[v]():this[I])||"").split(IS);return e[1]?parseFloat(e[1]):0}set y(t){if(this[j])throw new this[m].TypeError("Failed to set the 'y' property on 'SVGPoint': The object is read-only.");if(this[I]=`${this.x} ${t}`,this[A])this[A](this[I])}}var Ag;(function(t){t[t.unknown=0]="unknown",t[t.number=1]="number",t[t.percentage=2]="percentage",t[t.ems=3]="ems",t[t.exs=4]="exs",t[t.px=5]="px",t[t.cm=6]="cm",t[t.mm=7]="mm",t[t.in=8]="in",t[t.pt=9]="pt",t[t.pc=10]="pc"})(Ag||(Ag={}));var wt=Ag;var RS=/^(\d+|\d+\.\d+)(px|em|ex|cm|mm|in|pt|pc|%|)$/;class Ii{static SVG_LENGTHTYPE_UNKNOWN=wt.unknown;static SVG_LENGTHTYPE_NUMBER=wt.number;static SVG_LENGTHTYPE_PERCENTAGE=wt.percentage;static SVG_LENGTHTYPE_EMS=wt.ems;static SVG_LENGTHTYPE_EXS=wt.exs;static SVG_LENGTHTYPE_PX=wt.px;static SVG_LENGTHTYPE_CM=wt.cm;static SVG_LENGTHTYPE_MM=wt.mm;static SVG_LENGTHTYPE_IN=wt.in;static SVG_LENGTHTYPE_PT=wt.pt;static SVG_LENGTHTYPE_PC=wt.pc;[m];[v]=null;[A]=null;[I]=null;[j]=!1;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get unitType(){let e=(this[v]?this[v]()||"":this[I]||"").match(RS);if(!e)return wt.unknown;if(isNaN(parseFloat(e[1])))return wt.unknown;switch(e[2]){case"":return wt.number;case"px":return wt.px;case"cm":return wt.cm;case"mm":return wt.mm;case"in":return wt.in;case"pt":return wt.pt;case"pc":return wt.pc;case"em":case"ex":case"%":throw new this[m].TypeError("Failed to execute 'value' on 'SVGLength': Could not resolve relative length.");default:return wt.unknown}}get value(){let e=(this[v]?this[v]()||"":this[I]||"").match(RS);if(!e)return 0;let o=parseFloat(e[1]);if(isNaN(o))return 0;switch(e[2]){case"":return o;case"px":return o;case"cm":return o/2.54*96;case"mm":return o/25.4*96;case"in":return o*96;case"pt":return o*72;case"pc":return o*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[j])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="",o=t;switch(this.unitType){case wt.number:o=t,e="";break;case wt.px:o=t,e="px";break;case wt.cm:o=t/96*2.54,e="cm";break;case wt.mm:o=t/96*25.4,e="mm";break;case wt.in:o=t/96,e="in";break;case wt.pt:o=t/72,e="pt";break;case wt.pc:o=t/6,e="pc";break;case wt.percentage:case wt.ems:case wt.exs:throw new this[m].TypeError("Failed to set the 'value' property on 'SVGLength': Could not resolve relative length.");default:break}if(this[I]=String(o)+e,this[A])this[A](this[I])}get valueAsString(){return this[v]?this[v]()||"0":this[I]||"0"}get valueInSpecifiedUnits(){let t=this.valueAsString;return parseFloat(t)||0}newValueSpecifiedUnits(t,e){if(this[j])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 o="";switch(t){case wt.number:o="";break;case wt.px:o="px";break;case wt.cm:o="cm";break;case wt.mm:o="mm";break;case wt.in:o="in";break;case wt.pt:o="pt";break;case wt.pc:o="pc";break;case wt.ems:case wt.exs:case wt.percentage:throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Could not resolve relative length.");default:break}if(this[I]=String(e)+o,this[A])this[A](this[I])}convertToSpecifiedUnits(t){if(this[j])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,o="";switch(t){case wt.number:o="";break;case wt.px:o="px";break;case wt.cm:e=e/96*2.54,o="cm";break;case wt.mm:e=e/96*25.4,o="mm";break;case wt.in:e=e/96,o="in";break;case wt.pt:e=e/72,o="pt";break;case wt.pc:e=e/6,o="pc";break;case wt.percentage:case wt.ems:case wt.exs:throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': Could not resolve relative length.");default:break}if(this[I]=String(e)+o,this[A])this[A](this[I])}}var wg;(function(t){t[t.unknown=0]="unknown",t[t.unspecified=1]="unspecified",t[t.deg=2]="deg",t[t.rad=3]="rad",t[t.grad=4]="grad"})(wg||(wg={}));var we=wg;var FS=/^(\d+|\d+\.\d+)(deg|rad|grad|turn|)$/;class Sn{static SVG_ANGLETYPE_UNKNOWN=we.unknown;static SVG_ANGLETYPE_UNSPECIFIED=we.unspecified;static SVG_ANGLETYPE_DEG=we.deg;static SVG_ANGLETYPE_RAD=we.rad;static SVG_ANGLETYPE_GRAD=we.grad;[m];[v]=null;[A]=null;[I]="";[j]=!1;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get unitType(){let e=(this[v]?this[v]():this[I])?.match(FS);if(!e)return we.unknown;if(isNaN(parseFloat(e[1])))return we.unknown;switch(e[2]){case"":return we.unspecified;case"deg":return we.deg;case"rad":return we.rad;case"grad":return we.grad;case"turn":return we.unknown;default:return we.unspecified}}get value(){let e=(this[v]?this[v]():this[I])?.match(FS);if(!e)return 0;let o=parseFloat(e[1]);if(isNaN(o))return 0;switch(e[2]){case"":return o;case"deg":return o;case"rad":return o*(180/Math.PI);case"grad":return o*0.9;case"turn":return o*360;default:return o}}set value(t){if(this[j])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="",o=t;switch(this.unitType){case we.unspecified:o=t,e="";break;case we.deg:o=t,e="deg";break;case we.rad:o=t/(180/Math.PI),e="rad";break;case we.grad:o=t/0.9,e="grad";break;case we.unknown:o=t/360,e="turn";default:break}if(this[I]=String(o)+e,this[A])this[A](this[I])}get valueAsString(){return this[v]?this[v]()||"0":this[I]||"0"}get valueInSpecifiedUnits(){let t=this.valueAsString;return parseFloat(t)||0}newValueSpecifiedUnits(t,e){if(this[j])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 o="";switch(t){case we.unspecified:o="";break;case we.deg:o="deg";break;case we.rad:o="rad";break;case we.grad:o="grad";break;case we.unknown:o="turn";break;default:break}if(this[I]=String(e)+o,this[A])this[A](this[I])}convertToSpecifiedUnits(t){if(this[j])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,o="";switch(t){case we.unspecified:o="";break;case we.deg:o="deg";break;case we.rad:o="rad",e=e/(180/Math.PI);break;case we.grad:o="grad",e=e/0.9;break;case we.unknown:o="turn",e=e/360;break;default:break}if(this[I]=String(e)+o,this[A])this[A](this[I])}}class Ri{[m];[v]=null;[A]=null;[I]=null;[j]=!1;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get value(){let t=this[v]?this[v]():this[I];return parseFloat(t||"0")}set value(t){if(this[j])throw 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 TypeError("Failed to set the 'value' property on 'SVGNumber': The provided value is not a number.");if(this[I]=String(t),this[A])this[A](this[I]||"")}}class gl{[m];[v];[A];[se]=null;[ne]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){if(!this[ne])this[ne]=new Mi(h,this[m],{readOnly:!0,getAttribute:this[v]});return this[ne]}set animVal(t){}get baseVal(){if(!this[se])this[se]=new Mi(h,this[m],{getAttribute:this[v],setAttribute:this[A]});return this[se]}set baseVal(t){}}var Eg;(function(t){t[t.unknown=0]="unknown",t[t.meet=1]="meet",t[t.slice=2]="slice"})(Eg||(Eg={}));var fn=Eg;var xg;(function(t){t[t.unknown=0]="unknown",t[t.none=1]="none",t[t.xMinYMin=2]="xMinYMin",t[t.xMidYMin=3]="xMidYMin",t[t.xMaxYMin=4]="xMaxYMin",t[t.xMinYMid=5]="xMinYMid",t[t.xMidYMid=6]="xMidYMid",t[t.xMaxYMid=7]="xMaxYMid",t[t.xMinYMax=8]="xMinYMax",t[t.xMidYMax=9]="xMidYMax",t[t.xMaxYMax=10]="xMaxYMax"})(xg||(xg={}));var Ur=xg;var uh=Object.values(Ur);uh.length=uh.indexOf(0);var Bc=Object.values(fn);Bc.length=Bc.indexOf(0);class Sa{static SVG_MEETORSLICE_UNKNOWN=fn.unknown;static SVG_MEETORSLICE_MEET=fn.meet;static SVG_MEETORSLICE_SLICE=fn.slice;static SVG_PRESERVEASPECTRATIO_UNKNOWN=Ur.unknown;static SVG_PRESERVEASPECTRATIO_NONE=Ur.none;static SVG_PRESERVEASPECTRATIO_XMINYMIN=Ur.xMinYMin;static SVG_PRESERVEASPECTRATIO_XMIDYMIN=Ur.xMidYMin;static SVG_PRESERVEASPECTRATIO_XMAXYMIN=Ur.xMaxYMin;static SVG_PRESERVEASPECTRATIO_XMINYMID=Ur.xMinYMid;static SVG_PRESERVEASPECTRATIO_XMIDYMID=Ur.xMidYMid;static SVG_PRESERVEASPECTRATIO_XMAXYMID=Ur.xMaxYMid;static SVG_PRESERVEASPECTRATIO_XMINYMAX=Ur.xMinYMax;static SVG_PRESERVEASPECTRATIO_XMIDYMAX=Ur.xMidYMax;static SVG_PRESERVEASPECTRATIO_XMAXYMAX=Ur.xMaxYMax;[m];[v]=null;[A]=null;[I]=null;[j]=!1;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get align(){let t=this[v]?this[v]():this[I];if(!t)return Ur.xMidYMid;let e=t.split(/\s+/)[0];if(Ur[e]===void 0)return Ur.xMidYMid;return Ur[e]}set align(t){if(this[j])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>uh.length)throw new this[m].TypeError("Failed to set the 'align' property on 'SVGPreserveAspectRatio': The alignment provided is invalid.");if(this[I]=`${uh[e]} ${Bc[this.meetOrSlice]}`,this[A])this[A](this[I])}get meetOrSlice(){let t=this[v]?this[v]():this[I];if(!t)return fn.meet;let e=t.split(/\s+/)[1];if(!e||fn[e]===void 0)return fn.meet;return fn[e]}set meetOrSlice(t){if(this[j])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.");if(this[I]=`${uh[this.align]} ${Bc[e]}`,this[A])this[A](this[I])}}class yi{[m];[v];[A];[se]=null;[ne]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){if(!this[ne])this[ne]=new Sa(h,this[m],{readOnly:!0,getAttribute:this[v]});return this[ne]}set animVal(t){}get baseVal(){if(!this[se])this[se]=new Sa(h,this[m],{getAttribute:this[v],setAttribute:this[A]});return this[se]}set baseVal(t){}}class L{[m];[v];[A];[se]=null;[ne]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){if(!this[ne])this[ne]=new Ii(h,this[m],{readOnly:!0,getAttribute:this[v]});return this[ne]}set animVal(t){}get baseVal(){if(!this[se])this[se]=new Ii(h,this[m],{getAttribute:this[v],setAttribute:this[A]});return this[se]}set baseVal(t){}}class hh extends Ae{[ar]=null;[k]=null;[M]=null;[V]=null;[F]=null;[Qh]=1;[Qi]=null;get onafterprint(){return S.getEventListener(this,"onafterprint")}set onafterprint(t){this[p].set("onafterprint",t)}get onbeforeprint(){return S.getEventListener(this,"onbeforeprint")}set onbeforeprint(t){this[p].set("onbeforeprint",t)}get onbeforeunload(){return S.getEventListener(this,"onbeforeunload")}set onbeforeunload(t){this[p].set("onbeforeunload",t)}get ongamepadconnected(){return S.getEventListener(this,"ongamepadconnected")}set ongamepadconnected(t){this[p].set("ongamepadconnected",t)}get ongamepaddisconnected(){return S.getEventListener(this,"ongamepaddisconnected")}set ongamepaddisconnected(t){this[p].set("ongamepaddisconnected",t)}get onhashchange(){return S.getEventListener(this,"onhashchange")}set onhashchange(t){this[p].set("onhashchange",t)}get onlanguagechange(){return S.getEventListener(this,"onlanguagechange")}set onlanguagechange(t){this[p].set("onlanguagechange",t)}get onmessage(){return S.getEventListener(this,"onmessage")}set onmessage(t){this[p].set("onmessage",t)}get onmessageerror(){return S.getEventListener(this,"onmessageerror")}set onmessageerror(t){this[p].set("onmessageerror",t)}get onoffline(){return S.getEventListener(this,"onoffline")}set onoffline(t){this[p].set("onoffline",t)}get ononline(){return S.getEventListener(this,"ononline")}set ononline(t){this[p].set("ononline",t)}get onpagehide(){return S.getEventListener(this,"onpagehide")}set onpagehide(t){this[p].set("onpagehide",t)}get onpageshow(){return S.getEventListener(this,"onpageshow")}set onpageshow(t){this[p].set("onpageshow",t)}get onpopstate(){return S.getEventListener(this,"onpopstate")}set onpopstate(t){this[p].set("onpopstate",t)}get onrejectionhandled(){return S.getEventListener(this,"onrejectionhandled")}set onrejectionhandled(t){this[p].set("onrejectionhandled",t)}get onstorage(){return S.getEventListener(this,"onstorage")}set onstorage(t){this[p].set("onstorage",t)}get onunhandledrejection(){return S.getEventListener(this,"onunhandledrejection")}set onunhandledrejection(t){this[p].set("onunhandledrejection",t)}get onunload(){return S.getEventListener(this,"onunload")}set onunload(t){this[p].set("onunload",t)}get preserveAspectRatio(){if(!this[ar])this[ar]=new yi(h,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:(t)=>this.setAttribute("preserveAspectRatio",t)});return this[ar]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}get currentScale(){return this[Qh]}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.");if(e<1)return;this[Qh]=e}get currentTranslate(){return new pr(h,this[m])}get viewBox(){if(!this[Qi])this[Qi]=new gl(h,this[m],{getAttribute:()=>this.getAttribute("viewBox"),setAttribute:(t)=>this.setAttribute("viewBox",t)});return this[Qi]}pauseAnimations(){}unpauseAnimations(){}animationsPaused(){return!1}getCurrentTime(){return 0}setCurrentTime(t){}getIntersectionList(t,e){return new Yo(h,[])}getEnclosureList(t,e){return new Yo(h,[])}checkIntersection(t,e){return!1}checkEnclosure(t,e){return!1}deselectAll(){}createSVGNumber(){return new Ri(h,this[m])}createSVGLength(){return new Ii(h,this[m])}createSVGAngle(){return new Sn(h,this[m])}createSVGPoint(){return new pr(h,this[m])}createSVGMatrix(){return new rr(h,this[m])}createSVGRect(){return new Mi(h,this[m])}createSVGTransform(){return new jo(h,this[m])}createSVGTransformFromMatrix(t){let e=new jo(h,this[m]);return e.setMatrix(t),e}getElementsByClassName(t){return oe.getElementsByClassName(this,t)}getElementsByTagName(t){return oe.getElementsByTagName(this,t)}getElementsByTagNameNS(t,e){return oe.getElementsByTagNameNS(this,t,e)}getElementById(t){return oe.getElementById(this,t)}[ct](t=!1){return super[ct](t)}}class pi extends et{[Yi]=null;[Ki]=null;get onbegin(){return S.getEventListener(this,"onbegin")}set onbegin(t){this[p].set("onbegin",t)}get onend(){return S.getEventListener(this,"onend")}set onend(t){this[p].set("onend",t)}get onrepeat(){return S.getEventListener(this,"onrepeat")}set onrepeat(t){this[p].set("onrepeat",t)}get requiredExtensions(){if(!this[Yi])this[Yi]=new ki(h,this[m],{getAttribute:()=>this.getAttribute("requiredExtensions"),setAttribute:(t)=>this.setAttribute("requiredExtensions",t)});return this[Yi]}get systemLanguage(){if(!this[Ki])this[Ki]=new ki(h,this[m],{getAttribute:()=>this.getAttribute("systemLanguage"),setAttribute:(t)=>this.setAttribute("systemLanguage",t)});return this[Ki]}get targetElement(){return null}}class Oc extends pi{}class Gc extends pi{}class Uc extends pi{}class ut{[m];[v];[A];[mo]=0;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute,this[mo]=o.defaultValue||0}get animVal(){return this.baseVal}set animVal(t){}get baseVal(){let t=this[v]();if(!t)return this[mo];let e=parseFloat(t);if(isNaN(e))return this[mo];return 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[A](String(e))}}class Nr extends Ae{[Ym]=null;get pathLength(){if(!this[Ym])this[Ym]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("pathLength"),setAttribute:(t)=>this.setAttribute("pathLength",t)});return this[Ym]}isPointInFill(t){if(!(t instanceof pr))throw TypeError("Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.");return!1}isPointInStroke(t){if(!(t instanceof pr))throw TypeError("Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.");return!1}getTotalLength(){return 0}getPointAtLength(t){return new pr(h,this[m])}}class Hc extends Nr{[yo]=null;[po]=null;[zi]=null;get cx(){if(!this[yo])this[yo]=new L(h,this[m],{getAttribute:()=>this.getAttribute("cx"),setAttribute:(t)=>this.setAttribute("cx",t)});return this[yo]}get cy(){if(!this[po])this[po]=new L(h,this[m],{getAttribute:()=>this.getAttribute("cy"),setAttribute:(t)=>this.setAttribute("cy",t)});return this[po]}get r(){if(!this[zi])this[zi]=new L(h,this[m],{getAttribute:()=>this.getAttribute("r"),setAttribute:(t)=>this.setAttribute("r",t)});return this[zi]}}class Tt{[m];[v];[A];[Ze];[mo];constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute,this[Ze]=o.values,this[mo]=o.defaultValue}get animVal(){return this.baseVal}set animVal(t){}get baseVal(){let t=this[v]();if(!t)return this[Ze].indexOf(this[mo])+1;let e=this[Ze].indexOf(t);if(e===-1){let o=this[Ze].indexOf(null);return o!==-1?o+1:0}return e+1}set baseVal(t){let e=Number(t);if(isNaN(e))e=0;if(e<1)throw TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided is ${e}, which is not settable.`);if(e>this[Ze].length)throw TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided (${e}) is larger than the largest allowed value (${this[Ze].length}).`);let o=this[v](),s=this[Ze][e-1]===null,n=s?"0":this[Ze][e-1];if(!o||s&&this[Ze].includes(o)||!s&&o!==n)this[A](n||"")}}class Wc extends et{[Jm]=null;get clipPathUnits(){if(!this[Jm])this[Jm]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("clipPathUnits"),setAttribute:(t)=>this.setAttribute("clipPathUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"});return this[Jm]}}class _c extends Ae{}class Yc extends et{}class Kc extends Nr{[yo]=null;[po]=null;[$i]=null;[Xi]=null;get cx(){if(!this[yo])this[yo]=new L(h,this[m],{getAttribute:()=>this.getAttribute("cx"),setAttribute:(t)=>this.setAttribute("cx",t)});return this[yo]}get cy(){if(!this[po])this[po]=new L(h,this[m],{getAttribute:()=>this.getAttribute("cy"),setAttribute:(t)=>this.setAttribute("cy",t)});return this[po]}get rx(){if(!this[$i])this[$i]=new L(h,this[m],{getAttribute:()=>this.getAttribute("rx"),setAttribute:(t)=>this.setAttribute("rx",t)});return this[$i]}get ry(){if(!this[Xi])this[Xi]=new L(h,this[m],{getAttribute:()=>this.getAttribute("ry"),setAttribute:(t)=>this.setAttribute("ry",t)});return this[Xi]}}class nt{[m];[v];[A];constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){return this.baseVal}set animVal(t){}get baseVal(){let t=this[v]();if(!t)return"";return t}set baseVal(t){this[A](String(t))}}class Qc extends et{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;[at]=null;[uo]=null;[Ee]=null;[k]=null;[M]=null;[V]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get in2(){if(!this[uo])this[uo]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in2"),setAttribute:(t)=>this.setAttribute("in2",t)});return this[uo]}get mode(){if(!this[Ee])this[Ee]=new Tt(h,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"});return this[Ee]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}var pw=/[\t\f\n\r, ]+/;class Sl{[m];[v];[A];[j]=!1;[U]={items:[],attributeValue:""};constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,this[j]=!!o.readOnly,this[v]=o.getAttribute,this[A]=o.setAttribute,t!==h)throw TypeError("Illegal constructor");let s=new fe(this,[Sl]);return new Proxy(this,{get:(n,l)=>{if(l==="length"||l==="numberOfItems")return n[K]().length;if(l in n||typeof l==="symbol")return s.bind(l),n[l];let a=Number(l);if(!isNaN(a))return n[K]()[a]},set(n,l,a){if(s.bind(l),typeof l==="symbol")return n[l]=a,!0;let y=Number(l);if(isNaN(y))n[l]=a;return!0},deleteProperty(n,l){if(typeof l==="symbol")return delete n[l],!0;let a=Number(l);if(isNaN(a))delete n[l];return!0},ownKeys(n){return Object.keys(n[K]())},has(n,l){if(l in n)return!0;if(typeof l==="symbol")return!1;let a=Number(l);return!isNaN(a)&&a>=0&&a<n[K]().length},defineProperty(n,l,a){if(s.preventBinding(l),l in n)return Object.defineProperty(n,l,a),!0;return!1},getOwnPropertyDescriptor(n,l){if(l in n||typeof l==="symbol")return;let a=Number(l),y=n[K]();if(!isNaN(a)&&y[a])return{value:y[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[K]().length}get numberOfItems(){return this[K]().length}[Symbol.iterator](){return this[K]().values()}clear(){if(this[j])throw new this[m].TypeError("Failed to execute 'clear' on 'SVGNumberList': The object is read-only.");for(let t of this[U].items)t[v]=null,t[A]=null;this[U].items=[],this[U].attributeValue="",this[A]("")}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[j])throw new this[m].TypeError("Failed to execute 'initialize' on 'SVGNumberList': The object is read-only.");for(let e of this[U].items)e[v]=null,e[A]=null;return t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((e)=>e[I]||"0").join(" "),this[A](this[U].attributeValue)},this[U].items=[t],this[U].attributeValue=t[I],this[A](t[I]||""),t}getItem(t){let e=this[K]();if(typeof t==="number")return e[t]?e[t]:null;return t=Number(t),t=isNaN(t)?0:t,e[t]?e[t]:null}insertItemBefore(t,e){if(this[j])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 Ri))throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let o=this[K](),s=o.indexOf(t);if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>o.length)e=o.length;return o.splice(e,0,t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((n)=>n[I]||"0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((n)=>n[I]||"0").join(" "),this[A](this[U].attributeValue),t}replaceItem(t,e){if(this[j])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 Ri))throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let o=this[K](),s=o.indexOf(t);if(s===e)return t;if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>=o.length)e=o.length-1;if(o[e])o[e][v]=null,o[e][A]=null;let n=o[e];return o[e]=t,t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((l)=>l[I]||"0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((l)=>l[I]||"0").join(" "),this[A](this[U].attributeValue),n}removeItem(t){if(this[j])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[K]();if(t=Number(t),isNaN(t))t=0;if(t>=e.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${t}) is greater than the maximum bound.`,w.indexSizeError);if(t<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${t}) is negative.`,w.indexSizeError);let o=e[t];if(o)o[v]=null,o[A]=null;return e.splice(t,1),this[A](e.map((s)=>s[I]||"0").join(" ")),o}appendItem(t){if(this[j])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 Ri))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let e=this[K](),o=e.indexOf(t);if(o!==-1)e.splice(o,1);return e.push(t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((s)=>s[I]||"0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=e.map((s)=>s[I]||"0").join(" "),this[A](this[U].attributeValue),t}[K](){let t=this[v]()??"",e=this[U];if(e.attributeValue===t)return e.items;if(e.items.length)for(let n of e.items)n[v]=null,n[A]=null;let o=[],s=t.trim();if(s){let n=s.split(pw);for(let l=0,a=n.length;l<a;l++){let y=new Ri(h,this[m],{readOnly:this[j],getAttribute:()=>y[I],setAttribute:()=>{this[U].attributeValue=this[K]().map((u)=>u[I]||"0").join(" "),this[A](this[U].attributeValue)}});y[I]=String(parseFloat(n[l])),o.push(y)}}return e.attributeValue=t,e.items=o,o}}class Do{[m];[v];[A];[se]=null;[ne]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){if(!this[ne])this[ne]=new Sl(h,this[m],{readOnly:!0,getAttribute:this[v],setAttribute:()=>{}});return this[ne]}set animVal(t){}get baseVal(){if(!this[se])this[se]=new Sl(h,this[m],{getAttribute:this[v],setAttribute:this[A]});return this[se]}set baseVal(t){}}class jc extends et{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;[at]=null;[uo]=null;[Z]=null;[Qt]=null;[Ze]=null;[k]=null;[M]=null;[V]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get in2(){if(!this[uo])this[uo]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in2"),setAttribute:(t)=>this.setAttribute("in2",t)});return this[uo]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get type(){if(!this[Qt])this[Qt]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:(t)=>this.setAttribute("type",t),values:["matrix","saturate","huerotate","luminancetoalpha"],defaultValue:"matrix"});return this[Qt]}get values(){if(!this[Ze])this[Ze]=new Do(h,this[m],{getAttribute:()=>this.getAttribute("values"),setAttribute:(t)=>this.setAttribute("values",t)});return this[Ze]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class qc extends et{[F]=null;[at]=null;[Z]=null;[k]=null;[M]=null;[V]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class $c extends et{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;[at]=null;[Z]=null;[Qt]=null;[Ze]=null;[k]=null;[M]=null;[V]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get type(){if(!this[Qt])this[Qt]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:(t)=>this.setAttribute("type",t),values:["over","in","out","atop","xor","arithmetic"],defaultValue:"over"});return this[Qt]}get values(){if(!this[Ze])this[Ze]=new Do(h,this[m],{getAttribute:()=>this.getAttribute("values"),setAttribute:(t)=>this.setAttribute("values",t)});return this[Ze]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class gm{[m];[v];[A];constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){return this.baseVal}set animVal(t){}get baseVal(){return this[v]()==="true"}set baseVal(t){this[A](typeof t!=="boolean"?String(Boolean(t)):String(t))}}class Fi{[m];[v];[A];constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){return this.baseVal}set animVal(t){}get baseVal(){let t=this[v]();if(!t)return 0;let e=parseInt(t);if(isNaN(e))return 0;return 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[A](String(e))}}class Xc extends et{static SVG_EDGEMODE_UNKNOWN=0;static SVG_EDGEMODE_DUPLICATE=1;static SVG_EDGEMODE_WRAP=2;static SVG_EDGEMODE_NONE=3;[Sy]=null;[fy]=null;[is]=null;[F]=null;[at]=null;[Py]=null;[ho]=null;[co]=null;[Ay]=null;[wy]=null;[Ey]=null;[Z]=null;[xy]=null;[vy]=null;[V]=null;[k]=null;[M]=null;get bias(){if(!this[Sy])this[Sy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("bias"),setAttribute:(t)=>this.setAttribute("bias",t)});return this[Sy]}get divisor(){if(!this[fy])this[fy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("divisor"),setAttribute:(t)=>this.setAttribute("divisor",t)});return this[fy]}get edgeMode(){if(!this[is])this[is]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("edgeMode"),setAttribute:(t)=>this.setAttribute("edgeMode",t),values:["duplicate","wrap","none"],defaultValue:"duplicate"});return this[is]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get kernelMatrix(){if(!this[Py])this[Py]=new Do(h,this[m],{getAttribute:()=>this.getAttribute("kernelMatrix"),setAttribute:(t)=>this.setAttribute("kernelMatrix",t)});return this[Py]}get kernelUnitLengthX(){if(!this[ho])this[ho]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:(t)=>this.setAttribute("kernelUnitLengthX",t)});return this[ho]}get kernelUnitLengthY(){if(!this[co])this[co]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:(t)=>this.setAttribute("kernelUnitLengthY",t)});return this[co]}get orderX(){if(!this[Ay])this[Ay]=new Fi(h,this[m],{getAttribute:()=>this.getAttribute("orderX"),setAttribute:(t)=>this.setAttribute("orderX",t)});return this[Ay]}get orderY(){if(!this[wy])this[wy]=new Fi(h,this[m],{getAttribute:()=>this.getAttribute("orderY"),setAttribute:(t)=>this.setAttribute("orderY",t)});return this[wy]}get preserveAlpha(){if(!this[Ey])this[Ey]=new gm(h,this[m],{getAttribute:()=>this.getAttribute("preserveAlpha"),setAttribute:(t)=>this.setAttribute("preserveAlpha",t)});return this[Ey]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get targetX(){if(!this[xy])this[xy]=new Fi(h,this[m],{getAttribute:()=>this.getAttribute("targetX"),setAttribute:(t)=>this.setAttribute("targetX",t)});return this[xy]}get targetY(){if(!this[vy])this[vy]=new Fi(h,this[m],{getAttribute:()=>this.getAttribute("targetY"),setAttribute:(t)=>this.setAttribute("targetY",t)});return this[vy]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class zc extends et{[Ty]=null;[F]=null;[at]=null;[ho]=null;[co]=null;[Z]=null;[ss]=null;[V]=null;[k]=null;[M]=null;get diffuseConstant(){if(!this[Ty])this[Ty]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("diffuseConstant"),setAttribute:(t)=>this.setAttribute("diffuseConstant",t)});return this[Ty]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get kernelUnitLengthX(){if(!this[ho])this[ho]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:(t)=>this.setAttribute("kernelUnitLengthX",t)});return this[ho]}get kernelUnitLengthY(){if(!this[co])this[co]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:(t)=>this.setAttribute("kernelUnitLengthY",t)});return this[co]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get surfaceScale(){if(!this[ss])this[ss]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("surfaceScale"),setAttribute:(t)=>this.setAttribute("surfaceScale",t)});return this[ss]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class Jc extends et{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;[at]=null;[uo]=null;[Z]=null;[Cy]=null;[V]=null;[k]=null;[Ny]=null;[M]=null;[Ly]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get in2(){if(!this[uo])this[uo]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in2"),setAttribute:(t)=>this.setAttribute("in2",t)});return this[uo]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get scale(){if(!this[Cy])this[Cy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("scale"),setAttribute:(t)=>this.setAttribute("scale",t)});return this[Cy]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get xChannelSelector(){if(!this[Ny])this[Ny]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("xChannelSelector"),setAttribute:(t)=>this.setAttribute("xChannelSelector",t),values:["r","g","b","a"],defaultValue:"r"});return this[Ny]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}get yChannelSelector(){if(!this[Ly])this[Ly]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("yChannelSelector"),setAttribute:(t)=>this.setAttribute("yChannelSelector",t),values:["r","g","b","a"],defaultValue:"r"});return this[Ly]}}class Zc extends et{[ky]=null;[My]=null;get azimuth(){if(!this[ky])this[ky]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("azimuth"),setAttribute:(t)=>this.setAttribute("azimuth",t)});return this[ky]}get elevation(){if(!this[My])this[My]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("elevation"),setAttribute:(t)=>this.setAttribute("elevation",t)});return this[My]}}class td extends et{[bo]=null;[go]=null;[F]=null;[at]=null;[Z]=null;[ns]=null;[ls]=null;[V]=null;[k]=null;[M]=null;get dx(){if(!this[bo])this[bo]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("dx"),setAttribute:(t)=>this.setAttribute("dx",t)});return this[bo]}get dy(){if(!this[go])this[go]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("dy"),setAttribute:(t)=>this.setAttribute("dy",t)});return this[go]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get stdDeviationX(){if(!this[ns])this[ns]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("stdDeviationX"),setAttribute:(t)=>this.setAttribute("stdDeviationX",t),defaultValue:2});return this[ns]}get stdDeviationY(){if(!this[ls])this[ls]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("stdDeviationY"),setAttribute:(t)=>this.setAttribute("stdDeviationY",t),defaultValue:2});return this[ls]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}setStdDeviation(t,e){this.stdDeviationX.baseVal=t,this.stdDeviationY.baseVal=e}}class ed extends et{[F]=null;[Z]=null;[V]=null;[k]=null;[M]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class ui extends et{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;[Qt]=null;[Iy]=null;[Ry]=null;[Fy]=null;[Vy]=null;[Dy]=null;[rs]=null;get type(){if(!this[Qt])this[Qt]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:(t)=>this.setAttribute("type",t),values:["identity","table","discrete","linear","gamma"],defaultValue:"identity"});return this[Qt]}get tableValues(){if(!this[Iy])this[Iy]=new Do(h,this[m],{getAttribute:()=>this.getAttribute("tableValues"),setAttribute:(t)=>this.setAttribute("tableValues",t)});return this[Iy]}get slope(){if(!this[Ry])this[Ry]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("slope"),setAttribute:(t)=>this.setAttribute("slope",t),defaultValue:1});return this[Ry]}get intercept(){if(!this[Fy])this[Fy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("intercept"),setAttribute:(t)=>this.setAttribute("intercept",t)});return this[Fy]}get amplitude(){if(!this[Vy])this[Vy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("amplitude"),setAttribute:(t)=>this.setAttribute("amplitude",t),defaultValue:1});return this[Vy]}get exponent(){if(!this[Dy])this[Dy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("exponent"),setAttribute:(t)=>this.setAttribute("exponent",t),defaultValue:1});return this[Dy]}get offset(){if(!this[rs])this[rs]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("offset"),setAttribute:(t)=>this.setAttribute("offset",t)});return this[rs]}}class rd extends ui{}class od extends ui{}class id extends ui{}class sd extends ui{}class nd extends et{static SVG_EDGEMODE_UNKNOWN=0;static SVG_EDGEMODE_DUPLICATE=1;static SVG_EDGEMODE_WRAP=2;static SVG_EDGEMODE_NONE=3;[is]=null;[F]=null;[at]=null;[Z]=null;[ns]=null;[ls]=null;[V]=null;[k]=null;[M]=null;get edgeMode(){if(!this[is])this[is]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("edgeMode"),setAttribute:(t)=>this.setAttribute("edgeMode",t),values:["duplicate","wrap","none"],defaultValue:"duplicate"});return this[is]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get stdDeviationX(){if(!this[ns])this[ns]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("stdDeviationX")||"2",setAttribute:(t)=>this.setAttribute("stdDeviationX",t)});return this[ns]}get stdDeviationY(){if(!this[ls])this[ls]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("stdDeviationY")||"2",setAttribute:(t)=>this.setAttribute("stdDeviationY",t)});return this[ls]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}setStdDeviation(t,e){this.stdDeviationX.baseVal=t,this.stdDeviationY.baseVal=e}}class ld extends et{[Og]=null;[F]=null;[Lt]=null;[ar]=null;[Z]=null;[V]=null;[k]=null;[M]=null;get crossOrigin(){return this.getAttribute("crossorigin")}set crossOrigin(t){this.setAttribute("crossorigin",t)}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}get preserveAspectRatio(){if(!this[ar])this[ar]=new yi(h,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:(t)=>this.setAttribute("preserveAspectRatio",t)});return this[ar]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class ad extends et{[F]=null;[Z]=null;[V]=null;[k]=null;[M]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class md extends et{[at]=null;get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}}class yd extends et{static SVG_MORPHOLOGY_OPERATOR_UNKNOWN=0;static SVG_MORPHOLOGY_OPERATOR_ERODE=1;static SVG_MORPHOLOGY_OPERATOR_DILATE=2;[F]=null;[at]=null;[By]=null;[Oy]=null;[Gy]=null;[Z]=null;[V]=null;[k]=null;[M]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get operator(){if(!this[By])this[By]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("operator"),setAttribute:(t)=>this.setAttribute("operator",t),values:["erode","dilate"],defaultValue:"erode"});return this[By]}get radiusX(){if(!this[Oy])this[Oy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("radiusX"),setAttribute:(t)=>this.setAttribute("radiusX",t)});return this[Oy]}get radiusY(){if(!this[Gy])this[Gy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("radiusY"),setAttribute:(t)=>this.setAttribute("radiusY",t)});return this[Gy]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class pd extends et{[F]=null;[at]=null;[bo]=null;[go]=null;[Z]=null;[V]=null;[k]=null;[M]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get dx(){if(!this[bo])this[bo]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("dx"),setAttribute:(t)=>this.setAttribute("dx",t)});return this[bo]}get dy(){if(!this[go])this[go]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("dy"),setAttribute:(t)=>this.setAttribute("dy",t)});return this[go]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class ud extends et{[k]=null;[M]=null;[Ir]=null;get x(){if(!this[k])this[k]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}get z(){if(!this[Ir])this[Ir]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("z"),setAttribute:(t)=>this.setAttribute("z",t)});return this[Ir]}}class hd extends et{[F]=null;[at]=null;[ho]=null;[co]=null;[Z]=null;[Uy]=null;[as]=null;[ss]=null;[V]=null;[k]=null;[M]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get kernelUnitLengthX(){if(!this[ho])this[ho]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:(t)=>this.setAttribute("kernelUnitLengthX",t)});return this[ho]}get kernelUnitLengthY(){if(!this[co])this[co]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:(t)=>this.setAttribute("kernelUnitLengthY",t)});return this[co]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get specularConstant(){if(!this[Uy])this[Uy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("specularConstant"),setAttribute:(t)=>this.setAttribute("specularConstant",t),defaultValue:1});return this[Uy]}get specularExponent(){if(!this[as])this[as]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("specularExponent"),setAttribute:(t)=>this.setAttribute("specularExponent",t),defaultValue:1});return this[as]}get surfaceScale(){if(!this[ss])this[ss]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("surfaceScale"),setAttribute:(t)=>this.setAttribute("surfaceScale",t),defaultValue:1});return this[ss]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class cd extends et{[k]=null;[M]=null;[Ir]=null;[Hy]=null;[Wy]=null;[_y]=null;[as]=null;[Yy]=null;get x(){if(!this[k])this[k]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}get z(){if(!this[Ir])this[Ir]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("z"),setAttribute:(t)=>this.setAttribute("z",t)});return this[Ir]}get pointsAtX(){if(!this[Hy])this[Hy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("pointsAtX"),setAttribute:(t)=>this.setAttribute("pointsAtX",t)});return this[Hy]}get pointsAtY(){if(!this[Wy])this[Wy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("pointsAtY"),setAttribute:(t)=>this.setAttribute("pointsAtY",t)});return this[Wy]}get pointsAtZ(){if(!this[_y])this[_y]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("pointsAtZ"),setAttribute:(t)=>this.setAttribute("pointsAtZ",t)});return this[_y]}get specularExponent(){if(!this[as])this[as]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("specularExponent"),setAttribute:(t)=>this.setAttribute("specularExponent",t),defaultValue:1});return this[as]}get limitingConeAngle(){if(!this[Yy])this[Yy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("limitingConeAngle"),setAttribute:(t)=>this.setAttribute("limitingConeAngle",t)});return this[Yy]}}class dd extends et{[F]=null;[at]=null;[Z]=null;[V]=null;[k]=null;[M]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class bd extends et{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;[Ky]=null;[Qy]=null;[F]=null;[jy]=null;[Z]=null;[qy]=null;[$y]=null;[Qt]=null;[V]=null;[k]=null;[M]=null;get baseFrequencyX(){if(!this[Ky])this[Ky]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("baseFrequencyX"),setAttribute:(t)=>this.setAttribute("baseFrequencyX",t)});return this[Ky]}get baseFrequencyY(){if(!this[Qy])this[Qy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("baseFrequencyY"),setAttribute:(t)=>this.setAttribute("baseFrequencyY",t)});return this[Qy]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get numOctaves(){if(!this[jy])this[jy]=new Fi(h,this[m],{getAttribute:()=>this.getAttribute("numOctaves"),setAttribute:(t)=>this.setAttribute("numOctaves",t)});return this[jy]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get seed(){if(!this[qy])this[qy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("seed"),setAttribute:(t)=>this.setAttribute("seed",t)});return this[qy]}get stitchTiles(){if(!this[$y])this[$y]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("stitchTiles"),setAttribute:(t)=>this.setAttribute("stitchTiles",t),values:["stitch","noStitch"],defaultValue:"stitch"});return this[$y]}get type(){if(!this[Qt])this[Qt]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:(t)=>this.setAttribute("type",t),values:["fractalNoise","turbulence"],defaultValue:"turbulence"});return this[Qt]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class gd extends et{[Lt]=null;[ey]=null;[ry]=null;[k]=null;[M]=null;[V]=null;[F]=null;get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}get filterUnits(){if(!this[ey])this[ey]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("filterUnits"),setAttribute:(t)=>this.setAttribute("filterUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"});return this[ey]}get primitiveUnits(){if(!this[ry])this[ry]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("primitiveUnits"),setAttribute:(t)=>this.setAttribute("primitiveUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"});return this[ry]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class Sd extends Ae{[k]=null;[M]=null;[V]=null;[F]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class fd extends Ae{}class Pd extends Ae{[Lt]=null;[ar]=null;[k]=null;[M]=null;[V]=null;[F]=null;get crossOrigin(){return this.getAttribute("crossorigin")}set crossOrigin(t){this.setAttribute("crossorigin",t)}get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}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(){if(!this[ar])this[ar]=new yi(h,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:(t)=>this.setAttribute("preserveAspectRatio",t)});return this[ar]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}decode(){return Promise.resolve()}}class Ad extends Nr{[Ji]=null;[Zi]=null;[ts]=null;[es]=null;get x1(){if(!this[Ji])this[Ji]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x1"),setAttribute:(t)=>this.setAttribute("x1",t)});return this[Ji]}get y1(){if(!this[Zi])this[Zi]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y1"),setAttribute:(t)=>this.setAttribute("y1",t)});return this[Zi]}get x2(){if(!this[ts])this[ts]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x2"),setAttribute:(t)=>this.setAttribute("x2",t)});return this[ts]}get y2(){if(!this[es])this[es]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y2"),setAttribute:(t)=>this.setAttribute("y2",t)});return this[es]}}class fl extends Ae{static SVG_SPREADMETHOD_UNKNOWN=0;static SVG_SPREADMETHOD_PAD=1;static SVG_SPREADMETHOD_REFLECT=2;static SVG_SPREADMETHOD_REPEAT=3;[Lt]=null;[oy]=null;[iy]=null;[sy]=null;get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}get gradientUnits(){if(!this[oy])this[oy]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("gradientUnits"),setAttribute:(t)=>this.setAttribute("gradientUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"objectBoundingBox"});return this[oy]}get gradientTransform(){if(!this[iy])this[iy]=new vs(h,this[m],{getAttribute:()=>this.getAttribute("gradientTransform"),setAttribute:(t)=>this.setAttribute("gradientTransform",t)});return this[iy]}get spreadMethod(){if(!this[sy])this[sy]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("spreadMethod"),setAttribute:(t)=>this.setAttribute("spreadMethod",t),values:["pad","reflect","repeat"],defaultValue:"pad"});return this[sy]}}class wd extends fl{[Ji]=null;[Zi]=null;[ts]=null;[es]=null;get x1(){if(!this[Ji])this[Ji]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x1"),setAttribute:(t)=>this.setAttribute("x1",t)});return this[Ji]}get y1(){if(!this[Zi])this[Zi]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y1"),setAttribute:(t)=>this.setAttribute("y1",t)});return this[Zi]}get x2(){if(!this[ts])this[ts]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x2"),setAttribute:(t)=>this.setAttribute("x2",t)});return this[ts]}get y2(){if(!this[es])this[es]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y2"),setAttribute:(t)=>this.setAttribute("y2",t)});return this[es]}}class Sm{[m];[v];[A];[se]=null;[ne]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){if(!this[ne])this[ne]=new Sn(h,this[m],{readOnly:!0,getAttribute:this[v]});return this[ne]}set animVal(t){}get baseVal(){if(!this[se])this[se]=new Sn(h,this[m],{getAttribute:this[v],setAttribute:this[A]});return this[se]}set baseVal(t){}}class Ed extends et{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;[Km]=null;[Qm]=null;[jm]=null;[qm]=null;[$m]=null;[Xm]=null;[zm]=null;[Qi]=null;[ar]=null;get markerUnits(){if(!this[Km])this[Km]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("markerUnits"),setAttribute:(t)=>this.setAttribute("markerUnits",t),values:["userSpaceOnUse","strokeWidth"],defaultValue:"strokeWidth"});return this[Km]}get markerWidth(){if(!this[Qm])this[Qm]=new L(h,this[m],{getAttribute:()=>this.getAttribute("markerWidth"),setAttribute:(t)=>this.setAttribute("markerWidth",t)});return this[Qm]}get markerHeight(){if(!this[jm])this[jm]=new L(h,this[m],{getAttribute:()=>this.getAttribute("markerHeight"),setAttribute:(t)=>this.setAttribute("markerHeight",t)});return this[jm]}get orientType(){if(!this[qm])this[qm]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("orient"),setAttribute:(t)=>this.setAttribute("orient",t),values:["auto",null],defaultValue:"auto"});return this[qm]}get orientAngle(){if(!this[$m])this[$m]=new Sm(h,this[m],{getAttribute:()=>this.getAttribute("orient"),setAttribute:(t)=>this.setAttribute("orient",t)});return this[$m]}get refX(){if(!this[Xm])this[Xm]=new L(h,this[m],{getAttribute:()=>this.getAttribute("refX"),setAttribute:(t)=>this.setAttribute("refX",t)});return this[Xm]}get refY(){if(!this[zm])this[zm]=new L(h,this[m],{getAttribute:()=>this.getAttribute("refY"),setAttribute:(t)=>this.setAttribute("refY",t)});return this[zm]}get viewBox(){if(!this[Qi])this[Qi]=new gl(h,this[m],{getAttribute:()=>this.getAttribute("viewBox"),setAttribute:(t)=>this.setAttribute("viewBox",t)});return this[Qi]}get preserveAspectRatio(){if(!this[ar])this[ar]=new yi(h,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:(t)=>this.setAttribute("preserveAspectRatio",t)});return this[ar]}setOrientToAuto(){this.setAttribute("orient","auto")}setOrientToAngle(t){this.setAttribute("orient",t.valueAsString)}}class xd extends et{[Zm]=null;[ty]=null;[k]=null;[M]=null;[V]=null;[F]=null;get maskUnits(){if(!this[Zm])this[Zm]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("maskUnits"),setAttribute:(t)=>this.setAttribute("maskUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"});return this[Zm]}get maskContentUnits(){if(!this[ty])this[ty]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("maskContentUnits"),setAttribute:(t)=>this.setAttribute("maskContentUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"});return this[ty]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class vd extends et{}class Td extends et{[Lt]=null;get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}}class Cd extends Nr{}class Nd extends et{[Lt]=null;[ny]=null;[ly]=null;[ay]=null;[k]=null;[M]=null;[V]=null;[F]=null;get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}get patternUnits(){if(!this[ny])this[ny]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("patternUnits"),setAttribute:(t)=>this.setAttribute("patternUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"objectBoundingBox"});return this[ny]}get patternContentUnits(){if(!this[ly])this[ly]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("patternContentUnits"),setAttribute:(t)=>this.setAttribute("patternContentUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"});return this[ly]}get patternTransform(){if(!this[ay])this[ay]=new vs(h,this[m],{getAttribute:()=>this.getAttribute("patternTransform"),setAttribute:(t)=>this.setAttribute("patternTransform",t)});return this[ay]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}var uw=/[\t\f\n\r, ]+/;class Vi{[m];[v];[A];[j]=!1;[U]={items:[],attributeValue:""};constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[j]=!!o.readOnly,this[v]=o.getAttribute,this[A]=o.setAttribute;let s=new fe(this,[Vi]);return new Proxy(this,{get:(n,l)=>{if(l==="length"||l==="numberOfItems")return n[K]().length;if(l in n||typeof l==="symbol")return s.bind(l),n[l];let a=Number(l);if(!isNaN(a))return n[K]()[a]},set(n,l,a){if(s.bind(l),typeof l==="symbol")return n[l]=a,!0;let y=Number(l);if(isNaN(y))n[l]=a;return!0},deleteProperty(n,l){if(typeof l==="symbol")return delete n[l],!0;let a=Number(l);if(isNaN(a))delete n[l];return!0},ownKeys(n){return Object.keys(n[K]())},has(n,l){if(l in n)return!0;if(typeof l==="symbol")return!1;let a=Number(l);return!isNaN(a)&&a>=0&&a<n[K]().length},defineProperty(n,l,a){if(s.preventBinding(l),l in n)return Object.defineProperty(n,l,a),!0;return!1},getOwnPropertyDescriptor(n,l){if(l in n||typeof l==="symbol")return;let a=Number(l),y=n[K]();if(!isNaN(a)&&y[a])return{value:y[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[K]().length}get numberOfItems(){return this[K]().length}[Symbol.iterator](){return this[K]().values()}clear(){if(this[j])throw new this[m].TypeError("Failed to execute 'clear' on 'SVGPointList': The object is read-only.");for(let t of this[U].items)t[v]=null,t[A]=null;this[U].items=[],this[U].attributeValue="",this[A]("")}initialize(t){if(this[j])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 pr))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");for(let e of this[U].items)e[v]=null,e[A]=null;return t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((e)=>e[I]||"0 0").join(" "),this[A](this[U].attributeValue)},this[U].items=[t],this[U].attributeValue=t[I],this[A](t[I]||""),t}getItem(t){let e=this[K]();if(typeof t==="number")return e[t]?e[t]:null;return t=Number(t),t=isNaN(t)?0:t,e[t]?e[t]:null}insertItemBefore(t,e){if(this[j])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 pr))throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let o=this[K](),s=o.indexOf(t);if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>o.length)e=o.length;return o.splice(e,0,t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((n)=>n[I]||"0 0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((n)=>n[I]||"0 0").join(" "),this[A](this[U].attributeValue),t}replaceItem(t,e){if(this[j])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 pr))throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let o=this[K](),s=o.indexOf(t);if(s===e)return t;if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>=o.length)e=o.length-1;if(o[e])o[e][v]=null,o[e][A]=null;let n=o[e];return o[e]=t,t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((l)=>l[I]||"0 0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((l)=>l[I]||"0 0").join(" "),this[A](this[U].attributeValue),n}removeItem(t){if(this[j])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[K]();if(t=Number(t),isNaN(t))t=0;if(t>=e.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${t}) is greater than the maximum bound.`,w.indexSizeError);if(t<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${t}) is negative.`,w.indexSizeError);let o=e[t];if(o)o[v]=null,o[A]=null;return e.splice(t,1),this[A](e.map((s)=>s[I]||"0 0").join(" ")),o}appendItem(t){if(this[j])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 pr))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let e=this[K](),o=e.indexOf(t);if(o!==-1)e.splice(o,1);return e.push(t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((s)=>s[I]||"0 0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=e.map((s)=>s[I]||"0 0").join(" "),this[A](this[U].attributeValue),t}[K](){let t=this[v]()??"",e=this[U];if(e.attributeValue===t)return e.items;if(e.items.length)for(let n of e.items)n[v]=null,n[A]=null;let o=[],s=t.trim();if(s){let n=s.split(uw);for(let l=0,a=n.length;l<a;l+=2){let y=parseFloat(n[l]),u=n[l+1]!==void 0?" "+parseFloat(n[l+1]):"",c=new pr(h,this[m],{readOnly:this[j],getAttribute:()=>c[I],setAttribute:()=>{this[U].attributeValue=this[K]().map((d)=>d[I]||"0 0").join(" "),this[A](this[U].attributeValue)}});c[I]=`${y}${u}`,o.push(c)}}return e.attributeValue=t,e.items=o,o}}class Ld extends Nr{[ji]=null;[qi]=null;get animatedPoints(){if(!this[ji])this[ji]=new Vi(h,this[m],{readOnly:!0,getAttribute:()=>this.getAttribute("points"),setAttribute:()=>{}});return this[ji]}get points(){if(!this[qi])this[qi]=new Vi(h,this[m],{getAttribute:()=>this.getAttribute("points"),setAttribute:(t)=>this.setAttribute("points",t)});return this[qi]}}class kd extends Nr{[ji]=null;[qi]=null;get animatedPoints(){if(!this[ji])this[ji]=new Vi(h,this[m],{readOnly:!0,getAttribute:()=>this.getAttribute("points"),setAttribute:()=>{}});return this[ji]}get points(){if(!this[qi])this[qi]=new Vi(h,this[m],{getAttribute:()=>this.getAttribute("points"),setAttribute:(t)=>this.setAttribute("points",t)});return this[qi]}}class Md extends fl{[yo]=null;[po]=null;[zi]=null;[my]=null;[yy]=null;get cx(){if(!this[yo])this[yo]=new L(h,this[m],{getAttribute:()=>this.getAttribute("cx"),setAttribute:(t)=>this.setAttribute("cx",t)});return this[yo]}get cy(){if(!this[po])this[po]=new L(h,this[m],{getAttribute:()=>this.getAttribute("cy"),setAttribute:(t)=>this.setAttribute("cy",t)});return this[po]}get r(){if(!this[zi])this[zi]=new L(h,this[m],{getAttribute:()=>this.getAttribute("r"),setAttribute:(t)=>this.setAttribute("r",t)});return this[zi]}get fx(){if(!this[my])this[my]=new L(h,this[m],{getAttribute:()=>this.getAttribute("fx"),setAttribute:(t)=>this.setAttribute("fx",t)});return this[my]}get fy(){if(!this[yy])this[yy]=new L(h,this[m],{getAttribute:()=>this.getAttribute("fy"),setAttribute:(t)=>this.setAttribute("fy",t)});return this[yy]}}class Id extends Nr{[k]=null;[M]=null;[V]=null;[F]=null;[$i]=null;[Xi]=null;get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get rx(){if(!this[$i])this[$i]=new L(h,this[m],{getAttribute:()=>this.getAttribute("rx"),setAttribute:(t)=>this.setAttribute("rx",t)});return this[$i]}get ry(){if(!this[Xi])this[Xi]=new L(h,this[m],{getAttribute:()=>this.getAttribute("ry"),setAttribute:(t)=>this.setAttribute("ry",t)});return this[Xi]}}class Rd extends Ae{[Lt]=null;get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}}class Fd extends pi{}class Vd extends et{[rs]=null;get offset(){if(!this[rs])this[rs]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("offset"),setAttribute:(t)=>this.setAttribute("offset",t)});return this[rs]}}class Dd extends et{[Be]=null;[dr]=this;[_n]=!1;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[_n]}set disabled(t){this[_n]=Boolean(t)}get sheet(){if(!this[tt])return null;if(!this[Be])this[Be]=new this[x][m].CSSStyleSheet,this[Be].replaceSync(this.textContent);return this[Be]}[nr](){super[nr](),this[Be]=null}[At](){super[At](),this[Be]=null}[Vn](){if(this[Be])this[Be].replaceSync(this.textContent)}}class Bd extends Ae{}class Od extends Ae{}class fm extends Ae{static LENGTHADJUST_UNKNOWN=0;static LENGTHADJUST_SPACING=1;static LENGTHADJUST_SPACINGANDGLYPHS=2;[py]=null;[uy]=null;get textLength(){if(!this[py])this[py]=new L(h,this[m],{getAttribute:()=>this.getAttribute("textLength"),setAttribute:(t)=>this.setAttribute("textLength",t)});return this[py]}get lengthAdjust(){if(!this[uy])this[uy]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("lengthAdjust"),setAttribute:(t)=>this.setAttribute("lengthAdjust",t),values:["spacing","spacingAndGlyphs"],defaultValue:"spacing"});return this[uy]}getNumberOfChars(){return 0}getComputedTextLength(){return 0}getSubStringLength(t,e){return 0}getStartPositionOfChar(t){return new pr(h,this[m])}getEndPositionOfChar(t){return new pr(h,this[m])}getExtentOfChar(t){return new Mi(h,this[m])}getRotationOfChar(t){return 0}getCharNumAtPosition(t){return 0}}var hw=/[\t\f\n\r, ]+/;class Pl{[m];[v];[A];[j]=!1;[U]={items:[],attributeValue:""};constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[j]=!!o.readOnly,this[v]=o.getAttribute,this[A]=o.setAttribute;let s=new fe(this,[Pl]);return new Proxy(this,{get:(n,l)=>{if(l==="length"||l==="numberOfItems")return n[K]().length;if(l in n||typeof l==="symbol")return s.bind(l),n[l];let a=Number(l);if(!isNaN(a))return n[K]()[a]},set(n,l,a){if(s.bind(l),typeof l==="symbol")return n[l]=a,!0;let y=Number(l);if(isNaN(y))n[l]=a;return!0},deleteProperty(n,l){if(typeof l==="symbol")return delete n[l],!0;let a=Number(l);if(isNaN(a))delete n[l];return!0},ownKeys(n){return Object.keys(n[K]())},has(n,l){if(l in n)return!0;if(typeof l==="symbol")return!1;let a=Number(l);return!isNaN(a)&&a>=0&&a<n[K]().length},defineProperty(n,l,a){if(s.preventBinding(l),l in n)return Object.defineProperty(n,l,a),!0;return!1},getOwnPropertyDescriptor(n,l){if(l in n||typeof l==="symbol")return;let a=Number(l),y=n[K]();if(!isNaN(a)&&y[a])return{value:y[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[K]().length}get numberOfItems(){return this[K]().length}[Symbol.iterator](){return this[K]().values()}clear(){this[A]("")}initialize(t){if(this[j])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[U].items)e[v]=null,e[A]=null;return t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((e)=>e[I]??"0").join(" "),this[A](this[U].attributeValue)},this[U].items=[t],this[U].attributeValue=t[I],this[A](t[I]||""),t}getItem(t){let e=this[K]();if(typeof t==="number")return e[t]?e[t]:null;return t=Number(t),t=isNaN(t)?0:t,e[t]?e[t]:null}insertItemBefore(t,e){if(this[j])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 o=this[K](),s=o.indexOf(t);if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>o.length)e=o.length;return o.splice(e,0,t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((n)=>n[I]??"0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((n)=>n[I]??"0").join(" "),this[A](this[U].attributeValue),t}replaceItem(t,e){if(this[j])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 o=this[K](),s=o.indexOf(t);if(s===e)return t;if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>=o.length)e=o.length-1;if(o[e])o[e][v]=null,o[e][A]=null;let n=o[e];return o[e]=t,t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((l)=>l[I]??"0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((l)=>l[I]??"0").join(" "),this[A](this[U].attributeValue),n}removeItem(t){if(this[j])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[K]();if(t=Number(t),isNaN(t))t=0;if(t>=e.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${t}) is greater than the maximum bound.`,w.indexSizeError);if(t<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${t}) is negative.`,w.indexSizeError);let o=e[t];if(o)o[v]=null,o[A]=null;return e.splice(t,1),this[A](e.map((s)=>s[I]??"0").join(" ")),o}appendItem(t){if(this[j])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[K](),o=e.indexOf(t);if(o!==-1)e.splice(o,1);return e.push(t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((s)=>s[I]??"0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=e.map((s)=>s[I]??"0").join(" "),this[A](this[U].attributeValue),t}[K](){let t=this[v]()??"",e=this[U];if(e.attributeValue===t)return e.items;if(e.items.length)for(let n of e.items)n[v]=null,n[A]=null;let o=[],s=t.trim();if(s){let n=s.split(hw);for(let l=0,a=n.length;l<a;l++){let y=new Ii(h,this[m],{readOnly:this[j],getAttribute:()=>y[I],setAttribute:(u)=>{y[I]=u;let c=o.map((d)=>d[I]??"0").join(" ");e.attributeValue=c,this[A](c)}});y[I]=n[l],o.push(y)}}return e.attributeValue=t,e.items=o,o}}class Pn{[m];[v];[A];[se]=null;[ne]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){if(!this[ne])this[ne]=new Pl(h,this[m],{readOnly:!0,getAttribute:this[v],setAttribute:this[A]});return this[ne]}set animVal(t){}get baseVal(){if(!this[se])this[se]=new Pl(h,this[m],{getAttribute:this[v],setAttribute:this[A]});return this[se]}set baseVal(t){}}class Al extends fm{[k]=null;[M]=null;[bo]=null;[go]=null;[tp]=null;get x(){if(!this[k])this[k]=new Pn(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new Pn(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}get dx(){if(!this[bo])this[bo]=new Pn(h,this[m],{getAttribute:()=>this.getAttribute("dx"),setAttribute:(t)=>this.setAttribute("dx",t)});return this[bo]}get dy(){if(!this[go])this[go]=new Pn(h,this[m],{getAttribute:()=>this.getAttribute("dy"),setAttribute:(t)=>this.setAttribute("dy",t)});return this[go]}get rotate(){if(!this[tp])this[tp]=new Do(h,this[m],{getAttribute:()=>this.getAttribute("rotate"),setAttribute:(t)=>this.setAttribute("rotate",t)});return this[tp]}}class Gd extends Al{}class Ud extends fm{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;[Lt]=null;[by]=null;[Ks]=null;[gy]=null;get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}get startOffset(){if(!this[by])this[by]=new L(h,this[m],{getAttribute:()=>this.getAttribute("startOffset"),setAttribute:(t)=>this.setAttribute("startOffset",t)});return this[by]}get method(){if(!this[Ks])this[Ks]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("method"),setAttribute:(t)=>this.setAttribute("method",t),values:["align","stretch"],defaultValue:"align"});return this[Ks]}get spacing(){if(!this[gy])this[gy]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("spacing"),setAttribute:(t)=>this.setAttribute("spacing",t),values:["auto","exact"],defaultValue:"exact"});return this[gy]}}class Hd extends et{}class Wd extends Al{}class _d extends Ae{[Lt]=null;[k]=null;[M]=null;[V]=null;[F]=null;get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}}class Yd extends et{}class Kd{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!==h)throw TypeError("Illegal constructor")}}class Qd{window;constructor(t){this.window=t}enqueueReaction(t,e,o){let s=this.window.customElements[gi]?.get(t.localName);if(!s)return;if(t[x]!==this.window.document)return;switch(e){case"connectedCallback":if(s.lifecycleCallbacks.connectedCallback){let n=s.lifecycleCallbacks.connectedCallback?.call(t);if(n instanceof Promise){let l=new it(this.window).getAsyncTaskManager();if(l){let a=l.startTask();n.then(()=>l.endTask(a)).catch(()=>l.endTask(a))}}}break;case"disconnectedCallback":if(s.lifecycleCallbacks.disconnectedCallback)s.lifecycleCallbacks.disconnectedCallback.call(t);break;case"attributeChangedCallback":if(s.lifecycleCallbacks.attributeChangedCallback&&o?.length&&s.observedAttributes.has(o[0]))s.lifecycleCallbacks.attributeChangedCallback.apply(t,o);break}}}class ch extends N{state;hasUAVisualTransition;constructor(t,e=null){super(t);this.state=e?.state??null,this.hasUAVisualTransition=e?.hasUAVisualTransition??!1}}class jd extends N{code;reason;wasClean;constructor(t,e=null){super(t,e);this.code=e?.code??0,this.reason=e?.reason??"",this.wasClean=e?.wasClean??!1}}var wl={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)},Tg=setTimeout.toString().includes("new Timeout"),ww=(()=>{try{return Function("return true;")(),!0}catch{return!1}})(),Ew=(()=>{try{return globalThis.Function.$UNFROZEN$=!0,delete globalThis.Function.$UNFROZEN$,!0}catch{return!1}})();class DS{constructor(){throw TypeError("Illegal constructor")}}class Cg{callback;constructor(t){this.callback=t}}class El extends vt{Node=st;Attr=tm;ShadowRoot=Wu;ProcessingInstruction=Hu;Element=Gr;CharacterData=Ss;DocumentType=nn;HTMLAnchorElement=Rp;HTMLButtonElement=Gp;HTMLOptGroupElement=bu;HTMLOptionElement=un;HTMLElement=B;HTMLUnknownElement=Gu;HTMLTemplateElement=Ru;HTMLInputElement=eu;HTMLSelectElement=pm;HTMLTextAreaElement=Fu;HTMLImageElement=la;HTMLStyleElement=Nu;HTMLLabelElement=ru;HTMLSlotElement=lg;HTMLMetaElement=pu;HTMLMediaElement=an;HTMLAudioElement=ia;HTMLVideoElement=Uu;HTMLBaseElement=Dp;HTMLDialogElement=Kp;HTMLScriptElement=vu;HTMLLinkElement=au;HTMLIFrameElement=Zp;HTMLFormElement=nm;HTMLUListElement=Ou;HTMLTrackElement=Bu;HTMLTableRowElement=Iu;HTMLTitleElement=Du;HTMLTimeElement=Vu;HTMLTableSectionElement=Es;HTMLTableCellElement=Lu;HTMLTableElement=Mu;HTMLSpanElement=Cu;HTMLSourceElement=Tu;HTMLQuoteElement=Eu;HTMLProgressElement=wu;HTMLPreElement=Au;HTMLPictureElement=Pu;HTMLParamElement=fu;HTMLParagraphElement=Su;HTMLOutputElement=gu;HTMLOListElement=cu;HTMLObjectElement=du;HTMLMeterElement=uu;HTMLMenuElement=yu;HTMLMapElement=mu;HTMLLIElement=iu;HTMLLegendElement=ou;HTMLModElement=hu;HTMLHtmlElement=Jp;HTMLHRElement=zp;HTMLHeadElement=$p;HTMLHeadingElement=Xp;HTMLFieldSetElement=sa;HTMLEmbedElement=jp;HTMLDListElement=Hp;HTMLDivElement=Qp;HTMLDetailsElement=Yp;HTMLDataListElement=_p;HTMLDataElement=Wp;HTMLTableColElement=ku;HTMLTableCaptionElement=aa;HTMLCanvasElement=Up;HTMLBRElement=Op;HTMLBodyElement=Bp;HTMLAreaElement=Fp;SVGSVGElement=hh;SVGAnimateElement=Oc;SVGAnimateMotionElement=Gc;SVGAnimateTransformElement=Uc;SVGCircleElement=Hc;SVGClipPathElement=Wc;SVGDefsElement=_c;SVGDescElement=Yc;SVGEllipseElement=Kc;SVGFEBlendElement=Qc;SVGFEColorMatrixElement=jc;SVGFEComponentTransferElement=qc;SVGFECompositeElement=$c;SVGFEConvolveMatrixElement=Xc;SVGFEDiffuseLightingElement=zc;SVGFEDisplacementMapElement=Jc;SVGFEDistantLightElement=Zc;SVGFEDropShadowElement=td;SVGFEFloodElement=ed;SVGFEFuncAElement=rd;SVGFEFuncBElement=od;SVGFEFuncGElement=id;SVGFEFuncRElement=sd;SVGFEGaussianBlurElement=nd;SVGFEImageElement=ld;SVGFEMergeElement=ad;SVGFEMergeNodeElement=md;SVGFEMorphologyElement=yd;SVGFEOffsetElement=pd;SVGFEPointLightElement=ud;SVGFESpecularLightingElement=hd;SVGFESpotLightElement=cd;SVGFETileElement=dd;SVGFETurbulenceElement=bd;SVGFilterElement=gd;SVGForeignObjectElement=Sd;SVGGElement=fd;SVGImageElement=Pd;SVGLineElement=Ad;SVGLinearGradientElement=wd;SVGMarkerElement=Ed;SVGMaskElement=xd;SVGMetadataElement=vd;SVGMPathElement=Td;SVGPathElement=Cd;SVGPatternElement=Nd;SVGPolygonElement=Ld;SVGPolylineElement=kd;SVGRadialGradientElement=Md;SVGRectElement=Id;SVGScriptElement=Rd;SVGSetElement=Fd;SVGStopElement=Vd;SVGStyleElement=Dd;SVGSwitchElement=Bd;SVGSymbolElement=Od;SVGTextElement=Gd;SVGTextPathElement=Ud;SVGTitleElement=Hd;SVGTSpanElement=Wd;SVGUseElement=_d;SVGViewElement=Yd;SVGElement=et;SVGAnimationElement=pi;SVGComponentTransferFunctionElement=ui;SVGGeometryElement=Nr;SVGGradientElement=fl;SVGTextPositioningElement=Al;SVGGraphicsElement=Ae;Event=N;UIEvent=Sr;CustomEvent=Pp;CloseEvent=jd;AnimationEvent=Sp;KeyboardEvent=wp;MessageEvent=Ep;MouseEvent=qe;PointerEvent=Zl;FocusEvent=cs;WheelEvent=vp;InputEvent=Ap;ErrorEvent=rn;StorageEvent=nc;SubmitEvent=ta;ProgressEvent=Io;MediaQueryListEvent=_l;HashChangeEvent=Jl;ClipboardEvent=fp;TouchEvent=xp;PopStateEvent=ch;Touch=gp;AudioProcessingEvent=N;BeforeInputEvent=N;BeforeUnloadEvent=N;BlobEvent=N;CompositionEvent=N;CSSFontFaceLoadEvent=N;DeviceLightEvent=N;DeviceMotionEvent=N;DeviceOrientationEvent=N;DeviceProximityEvent=N;DOMTransactionEvent=N;DragEvent=N;EditingBeforeInputEvent=N;FetchEvent=N;GamepadEvent=N;IDBVersionChangeEvent=N;MediaStreamEvent=N;MutationEvent=N;OfflineAudioCompletionEvent=N;OverconstrainedError=N;PageTransitionEvent=N;PaymentRequestUpdateEvent=N;RelatedEvent=N;RTCDataChannelEvent=N;RTCIdentityErrorEvent=N;RTCIdentityEvent=N;RTCPeerConnectionIceEvent=N;SensorEvent=N;SVGEvent=N;SVGZoomEvent=N;TimeEvent=N;TrackEvent=N;TransitionEvent=N;UserProximityEvent=N;WebGLContextEvent=N;TextEvent=N;Permissions=oa;History=$a;Navigator=Lp;Clipboard=Ul;TimeRanges=sl;TextTrackCueList=pl;ValidityState=qr;MutationRecord=Vo;IntersectionObserver=Tp;IntersectionObserverEntry=Cp;CSSStyleDeclaration=Kr;CSSRule=_o;CSSContainerRule=Yl;CSSFontFaceRule=Kl;CSSKeyframeRule=tn;CSSKeyframesRule=Ql;CSSMediaRule=jl;CSSStyleRule=en;CSSSupportsRule=Xl;CSSConditionRule=Ci;CSSGroupingRule=Ti;CSSScopeRule=Zs;DOMRect=li;DOMRectReadOnly=ol;Plugin=Np;PluginArray=Za;Location=Xa;CustomElementRegistry=_a;ResizeObserver=_u;Blob=ie;File=Mo;Storage=hl;MimeType=za;MimeTypeArray=Ja;NodeFilter=pe;HTMLCollection=de;HTMLFormControlCollection=na;HTMLOptionsCollection=ym;NodeList=Yo;RadioNodeList=sm;FileList=al;Screen=ul;ScreenDetails=um;ScreenDetailed=ya;DOMMatrixReadOnly=dl;DOMMatrix=Ao;NamedNodeMap=ln;TreeWalker=hn;NodeIterator=ca;DataTransfer=bp;DataTransferItem=hs;DataTransferItemList=zl;XMLSerializer=Yu;ClipboardItem=ap;Selection=pa;CSSUnitValue=ye;SVGAngle=Sn;SVGAnimatedAngle=Sm;SVGAnimatedBoolean=gm;SVGAnimatedEnumeration=Tt;SVGAnimatedInteger=Fi;SVGAnimatedLength=L;SVGAnimatedNumber=ut;SVGAnimatedNumberList=Do;SVGAnimatedPreserveAspectRatio=yi;SVGAnimatedRect=gl;SVGAnimatedString=nt;SVGAnimatedTransformList=vs;SVGLength=Ii;SVGLengthList=Pl;SVGMatrix=rr;SVGNumber=Ri;SVGNumberList=Sl;SVGPoint=pr;SVGPointList=Vi;SVGPreserveAspectRatio=Sa;SVGRect=Mi;SVGStringList=ki;SVGTransform=jo;SVGTransformList=bl;SVGAnimatedLengthList=Pn;SVGUnitTypes=Kd;DOMPoint=dm;StylePropertyMap=$l;StylePropertyMapReadOnly=ql;MediaList=qn;CSSKeywordValue=Xn;CSSStyleValue=zn;Window=this.constructor;URLSearchParams=fw;WritableStream=VS.Writable;ReadableStream=Sw;TransformStream=VS.Transform;PerformanceObserver=Pw;PerformanceEntry=Aw;PerformanceObserverEntryList=DS;document;customElements=new _a(this);window=this;globalThis=this;performance=performance;screenLeft=0;screenTop=0;screenX=0;screenY=0;crypto=dw;TextEncoder=bw;TextDecoder=gw;closed=!1;console;name="";Buffer=cw;[Nn]=[];[Eo];[no];[Oe];[Dh];[Bh];[Oh];[Gh];[On]=this;[Jo]=this;[ao]=this;[m]=this;[vb]=this;[xn]=-1;[Qs]=new Qd(this);[ms]={json:new Map,css:new Map,esm:new Map};[Bl]=null;[Qn]=[];[p]=new Map;#t;#e=null;#r=null;#o=null;#i=null;#s=null;#l={timeouts:null};#m=[];#a=[];constructor(t,e){super();this.#t=t,this[Tb](),this.console=t.page.console,this[Eo]=new hc(t),this[Dh]=new Lp(this),this[Bh]=new ul,this[Oh]=new hl,this[Gh]=new hl,this[no]=new Xa(this.#t,e?.url??"about:blank"),this[Oe]=new $a(this.#t,this),t[Oe].currentItem.href=e?.url??"about:blank",it.setWindowBrowserFrameRelation(this,this.#t),this[Tm](),Vc.extendClasses(this),this.document=new this.HTMLDocument,this.document[Lr]=this;let o=t[Pt].startTask(()=>this[Eo].destroy());this[Eo].waitUntilComplete().then(()=>{t[Pt].endTask(o),this.document[kn]=uc.complete,this.document.dispatchEvent(new N("readystatechange"));let s=new N("load");s[Go]=this,s[wr]=this.document,s[xr]=ae.atTarget,this.dispatchEvent(s),s[Go]=null,s[xr]=ae.none,s[Kn]=!1}),this[Eb]()}get onsearch(){return this[p].get("onsearch")??null}set onsearch(t){this[p].set("onsearch",t)}get onappinstalled(){return this[p].get("onappinstalled")??null}set onappinstalled(t){this[p].set("onappinstalled",t)}get onbeforeinstallprompt(){return this[p].get("onbeforeinstallprompt")??null}set onbeforeinstallprompt(t){this[p].set("onbeforeinstallprompt",t)}get onabort(){return this[p].get("onabort")??null}set onabort(t){this[p].set("onabort",t)}get onbeforeinput(){return this[p].get("onbeforeinput")??null}set onbeforeinput(t){this[p].set("onbeforeinput",t)}get onbeforematch(){return this[p].get("onbeforematch")??null}set onbeforematch(t){this[p].set("onbeforematch",t)}get onbeforetoggle(){return this[p].get("onbeforetoggle")??null}set onbeforetoggle(t){this[p].set("onbeforetoggle",t)}get onblur(){return this[p].get("onblur")??null}set onblur(t){this[p].set("onblur",t)}get oncancel(){return this[p].get("oncancel")??null}set oncancel(t){this[p].set("oncancel",t)}get oncanplay(){return this[p].get("oncanplay")??null}set oncanplay(t){this[p].set("oncanplay",t)}get oncanplaythrough(){return this[p].get("oncanplaythrough")??null}set oncanplaythrough(t){this[p].set("oncanplaythrough",t)}get onchange(){return this[p].get("onchange")??null}set onchange(t){this[p].set("onchange",t)}get onclick(){return this[p].get("onclick")??null}set onclick(t){this[p].set("onclick",t)}get onclose(){return this[p].get("onclose")??null}set onclose(t){this[p].set("onclose",t)}get oncommand(){return this[p].get("oncommand")??null}set oncommand(t){this[p].set("oncommand",t)}get oncontentvisibilityautostatechange(){return this[p].get("oncontentvisibilityautostatechange")??null}set oncontentvisibilityautostatechange(t){this[p].set("oncontentvisibilityautostatechange",t)}get oncontextlost(){return this[p].get("oncontextlost")??null}set oncontextlost(t){this[p].set("oncontextlost",t)}get oncontextmenu(){return this[p].get("oncontextmenu")??null}set oncontextmenu(t){this[p].set("oncontextmenu",t)}get oncontextrestored(){return this[p].get("oncontextrestored")??null}set oncontextrestored(t){this[p].set("oncontextrestored",t)}get oncuechange(){return this[p].get("oncuechange")??null}set oncuechange(t){this[p].set("oncuechange",t)}get ondblclick(){return this[p].get("ondblclick")??null}set ondblclick(t){this[p].set("ondblclick",t)}get ondrag(){return this[p].get("ondrag")??null}set ondrag(t){this[p].set("ondrag",t)}get ondragend(){return this[p].get("ondragend")??null}set ondragend(t){this[p].set("ondragend",t)}get ondragenter(){return this[p].get("ondragenter")??null}set ondragenter(t){this[p].set("ondragenter",t)}get ondragleave(){return this[p].get("ondragleave")??null}set ondragleave(t){this[p].set("ondragleave",t)}get ondragover(){return this[p].get("ondragover")??null}set ondragover(t){this[p].set("ondragover",t)}get ondragstart(){return this[p].get("ondragstart")??null}set ondragstart(t){this[p].set("ondragstart",t)}get ondrop(){return this[p].get("ondrop")??null}set ondrop(t){this[p].set("ondrop",t)}get ondurationchange(){return this[p].get("ondurationchange")??null}set ondurationchange(t){this[p].set("ondurationchange",t)}get onemptied(){return this[p].get("onemptied")??null}set onemptied(t){this[p].set("onemptied",t)}get onended(){return this[p].get("onended")??null}set onended(t){this[p].set("onended",t)}get onerror(){return this[p].get("onerror")??null}set onerror(t){this[p].set("onerror",t)}get onfocus(){return this[p].get("onfocus")??null}set onfocus(t){this[p].set("onfocus",t)}get onformdata(){return this[p].get("onformdata")??null}set onformdata(t){this[p].set("onformdata",t)}get oninput(){return this[p].get("oninput")??null}set oninput(t){this[p].set("oninput",t)}get oninvalid(){return this[p].get("oninvalid")??null}set oninvalid(t){this[p].set("oninvalid",t)}get onkeydown(){return this[p].get("onkeydown")??null}set onkeydown(t){this[p].set("onkeydown",t)}get onkeypress(){return this[p].get("onkeypress")??null}set onkeypress(t){this[p].set("onkeypress",t)}get onkeyup(){return this[p].get("onkeyup")??null}set onkeyup(t){this[p].set("onkeyup",t)}get onload(){return this[p].get("onload")??null}set onload(t){this[p].set("onload",t)}get onloadeddata(){return this[p].get("onloadeddata")??null}set onloadeddata(t){this[p].set("onloadeddata",t)}get onloadedmetadata(){return this[p].get("onloadedmetadata")??null}set onloadedmetadata(t){this[p].set("onloadedmetadata",t)}get onloadstart(){return this[p].get("onloadstart")??null}set onloadstart(t){this[p].set("onloadstart",t)}get onmousedown(){return this[p].get("onmousedown")??null}set onmousedown(t){this[p].set("onmousedown",t)}get onmouseenter(){return this[p].get("onmouseenter")??null}set onmouseenter(t){this[p].set("onmouseenter",t)}get onmouseleave(){return this[p].get("onmouseleave")??null}set onmouseleave(t){this[p].set("onmouseleave",t)}get onmousemove(){return this[p].get("onmousemove")??null}set onmousemove(t){this[p].set("onmousemove",t)}get onmouseout(){return this[p].get("onmouseout")??null}set onmouseout(t){this[p].set("onmouseout",t)}get onmouseover(){return this[p].get("onmouseover")??null}set onmouseover(t){this[p].set("onmouseover",t)}get onmouseup(){return this[p].get("onmouseup")??null}set onmouseup(t){this[p].set("onmouseup",t)}get onmousewheel(){return this[p].get("onmousewheel")??null}set onmousewheel(t){this[p].set("onmousewheel",t)}get onpause(){return this[p].get("onpause")??null}set onpause(t){this[p].set("onpause",t)}get onplay(){return this[p].get("onplay")??null}set onplay(t){this[p].set("onplay",t)}get onplaying(){return this[p].get("onplaying")??null}set onplaying(t){this[p].set("onplaying",t)}get onprogress(){return this[p].get("onprogress")??null}set onprogress(t){this[p].set("onprogress",t)}get onratechange(){return this[p].get("onratechange")??null}set onratechange(t){this[p].set("onratechange",t)}get onreset(){return this[p].get("onreset")??null}set onreset(t){this[p].set("onreset",t)}get onresize(){return this[p].get("onresize")??null}set onresize(t){this[p].set("onresize",t)}get onscroll(){return this[p].get("onscroll")??null}set onscroll(t){this[p].set("onscroll",t)}get onscrollend(){return this[p].get("onscrollend")??null}set onscrollend(t){this[p].set("onscrollend",t)}get onsecuritypolicyviolation(){return this[p].get("onsecuritypolicyviolation")??null}set onsecuritypolicyviolation(t){this[p].set("onsecuritypolicyviolation",t)}get onseeked(){return this[p].get("onseeked")??null}set onseeked(t){this[p].set("onseeked",t)}get onseeking(){return this[p].get("onseeking")??null}set onseeking(t){this[p].set("onseeking",t)}get onselect(){return this[p].get("onselect")??null}set onselect(t){this[p].set("onselect",t)}get onslotchange(){return this[p].get("onslotchange")??null}set onslotchange(t){this[p].set("onslotchange",t)}get onstalled(){return this[p].get("onstalled")??null}set onstalled(t){this[p].set("onstalled",t)}get onsubmit(){return this[p].get("onsubmit")??null}set onsubmit(t){this[p].set("onsubmit",t)}get onsuspend(){return this[p].get("onsuspend")??null}set onsuspend(t){this[p].set("onsuspend",t)}get ontimeupdate(){return this[p].get("ontimeupdate")??null}set ontimeupdate(t){this[p].set("ontimeupdate",t)}get ontoggle(){return this[p].get("ontoggle")??null}set ontoggle(t){this[p].set("ontoggle",t)}get onvolumechange(){return this[p].get("onvolumechange")??null}set onvolumechange(t){this[p].set("onvolumechange",t)}get onwaiting(){return this[p].get("onwaiting")??null}set onwaiting(t){this[p].set("onwaiting",t)}get onwebkitanimationend(){return this[p].get("onwebkitanimationend")??null}set onwebkitanimationend(t){this[p].set("onwebkitanimationend",t)}get onwebkitanimationiteration(){return this[p].get("onwebkitanimationiteration")??null}set onwebkitanimationiteration(t){this[p].set("onwebkitanimationiteration",t)}get onwebkitanimationstart(){return this[p].get("onwebkitanimationstart")??null}set onwebkitanimationstart(t){this[p].set("onwebkitanimationstart",t)}get onwebkittransitionend(){return this[p].get("onwebkittransitionend")??null}set onwebkittransitionend(t){this[p].set("onwebkittransitionend",t)}get onwheel(){return this[p].get("onwheel")??null}set onwheel(t){this[p].set("onwheel",t)}get onauxclick(){return this[p].get("onauxclick")??null}set onauxclick(t){this[p].set("onauxclick",t)}get ongotpointercapture(){return this[p].get("ongotpointercapture")??null}set ongotpointercapture(t){this[p].set("ongotpointercapture",t)}get onlostpointercapture(){return this[p].get("onlostpointercapture")??null}set onlostpointercapture(t){this[p].set("onlostpointercapture",t)}get onpointerdown(){return this[p].get("onpointerdown")??null}set onpointerdown(t){this[p].set("onpointerdown",t)}get onpointermove(){return this[p].get("onpointermove")??null}set onpointermove(t){this[p].set("onpointermove",t)}get onpointerup(){return this[p].get("onpointerup")??null}set onpointerup(t){this[p].set("onpointerup",t)}get onpointercancel(){return this[p].get("onpointercancel")??null}set onpointercancel(t){this[p].set("onpointercancel",t)}get onpointerover(){return this[p].get("onpointerover")??null}set onpointerover(t){this[p].set("onpointerover",t)}get onpointerout(){return this[p].get("onpointerout")??null}set onpointerout(t){this[p].set("onpointerout",t)}get onpointerenter(){return this[p].get("onpointerenter")??null}set onpointerenter(t){this[p].set("onpointerenter",t)}get onpointerleave(){return this[p].get("onpointerleave")??null}set onpointerleave(t){this[p].set("onpointerleave",t)}get onselectstart(){return this[p].get("onselectstart")??null}set onselectstart(t){this[p].set("onselectstart",t)}get onselectionchange(){return this[p].get("onselectionchange")??null}set onselectionchange(t){this[p].set("onselectionchange",t)}get onanimationcancel(){return this[p].get("onanimationcancel")??null}set onanimationcancel(t){this[p].set("onanimationcancel",t)}get onanimationend(){return this[p].get("onanimationend")??null}set onanimationend(t){this[p].set("onanimationend",t)}get onanimationiteration(){return this[p].get("onanimationiteration")??null}set onanimationiteration(t){this[p].set("onanimationiteration",t)}get onanimationstart(){return this[p].get("onanimationstart")??null}set onanimationstart(t){this[p].set("onanimationstart",t)}get ontransitionrun(){return this[p].get("ontransitionrun")??null}set ontransitionrun(t){this[p].set("ontransitionrun",t)}get ontransitionstart(){return this[p].get("ontransitionstart")??null}set ontransitionstart(t){this[p].set("ontransitionstart",t)}get ontransitionend(){return this[p].get("ontransitionend")??null}set ontransitionend(t){this[p].set("ontransitionend",t)}get ontransitioncancel(){return this[p].get("ontransitioncancel")??null}set ontransitioncancel(t){this[p].set("ontransitioncancel",t)}get onbeforexrselect(){return this[p].get("onbeforexrselect")??null}set onbeforexrselect(t){this[p].set("onbeforexrselect",t)}get onafterprint(){return this[p].get("onafterprint")??null}set onafterprint(t){this[p].set("onafterprint",t)}get onbeforeprint(){return this[p].get("onbeforeprint")??null}set onbeforeprint(t){this[p].set("onbeforeprint",t)}get onbeforeunload(){return this[p].get("onbeforeunload")??null}set onbeforeunload(t){this[p].set("onbeforeunload",t)}get onhashchange(){return this[p].get("onhashchange")??null}set onhashchange(t){this[p].set("onhashchange",t)}get onlanguagechange(){return this[p].get("onlanguagechange")??null}set onlanguagechange(t){this[p].set("onlanguagechange",t)}get onmessage(){return this[p].get("onmessage")??null}set onmessage(t){this[p].set("onmessage",t)}get onmessageerror(){return this[p].get("onmessageerror")??null}set onmessageerror(t){this[p].set("onmessageerror",t)}get onoffline(){return this[p].get("onoffline")??null}set onoffline(t){this[p].set("onoffline",t)}get ononline(){return this[p].get("ononline")??null}set ononline(t){this[p].set("ononline",t)}get onpagehide(){return this[p].get("onpagehide")??null}set onpagehide(t){this[p].set("onpagehide",t)}get onpageshow(){return this[p].get("onpageshow")??null}set onpageshow(t){this[p].set("onpageshow",t)}get onpopstate(){return this[p].get("onpopstate")??null}set onpopstate(t){this[p].set("onpopstate",t)}get onrejectionhandled(){return this[p].get("onrejectionhandled")??null}set onrejectionhandled(t){this[p].set("onrejectionhandled",t)}get onstorage(){return this[p].get("onstorage")??null}set onstorage(t){this[p].set("onstorage",t)}get onunhandledrejection(){return this[p].get("onunhandledrejection")??null}set onunhandledrejection(t){this[p].set("onunhandledrejection",t)}get onunload(){return this[p].get("onunload")??null}set onunload(t){this[p].set("onunload",t)}get ondevicemotion(){return this[p].get("ondevicemotion")??null}set ondevicemotion(t){this[p].set("ondevicemotion",t)}get ondeviceorientation(){return this[p].get("ondeviceorientation")??null}set ondeviceorientation(t){this[p].set("ondeviceorientation",t)}get ondeviceorientationabsolute(){return this[p].get("ondeviceorientationabsolute")??null}set ondeviceorientationabsolute(t){this[p].set("ondeviceorientationabsolute",t)}get onpointerrawupdate(){return this[p].get("onpointerrawupdate")??null}set onpointerrawupdate(t){this[p].set("onpointerrawupdate",t)}get onpageswap(){return this[p].get("onpageswap")??null}set onpageswap(t){this[p].set("onpageswap",t)}get onpagereveal(){return this[p].get("onpagereveal")??null}set onpagereveal(t){this[p].set("onpagereveal",t)}get onscrollsnapchange(){return this[p].get("onscrollsnapchange")??null}set onscrollsnapchange(t){this[p].set("onscrollsnapchange",t)}get onscrollsnapchanging(){return this[p].get("onscrollsnapchanging")??null}set onscrollsnapchanging(t){this[p].set("onscrollsnapchanging",t)}get ongamepadconnected(){return this[p].get("ongamepadconnected")??null}set ongamepadconnected(t){this[p].set("ongamepadconnected",t)}get ongamepaddisconnected(){return this[p].get("ongamepaddisconnected")??null}set ongamepaddisconnected(t){this[p].set("ongamepaddisconnected",t)}get self(){return this[On]}set self(t){this[On]=t}get top(){return this[Jo]}get parent(){return this[ao]}set parent(t){this[ao]=t}get frames(){return this[vb]}set frames(t){this[ao]=t}get location(){return this[no]}set location(t){this[no].href=t}get history(){return this[Oe]}get navigator(){return this[Dh]}get screen(){return this[Bh]}get sessionStorage(){return this[Oh]}get localStorage(){return this[Gh]}get opener(){return this.#t[Si]}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 rc}get innerWidth(){if(this.#e===null)return this.#t.page.viewport.width;return this.#e}set innerWidth(t){this.#e=t}get innerHeight(){if(this.#r===null)return this.#t.page.viewport.height;return this.#r}set innerHeight(t){this.#r=t}get outerWidth(){if(this.#o===null)return this.#t.page.viewport.width;return this.#o}set outerWidth(t){this.#o=t}get outerHeight(){if(this.#i===null)return this.#t.page.viewport.height;return this.#i}set outerHeight(t){this.#i=t}get devicePixelRatio(){if(this.#s===null)return this.#t.page.viewport.devicePixelRatio;return this.#s}set devicePixelRatio(t){this.#s=t}getComputedStyle(t){return t[Ll]=t[Ll]||new Kr(h,this,{element:t,computed:!0}),t[Ll]}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 o=typeof t==="object"?t:{left:t,top:e};if(o.behavior==="smooth")this.setTimeout(()=>{if(o.top!==void 0){let s=Number(o.top);this.document.documentElement.scrollTop=isNaN(s)?0:s}if(o.left!==void 0){let s=Number(o.left);this.document.documentElement.scrollLeft=isNaN(s)?0:s}});else{if(o.top!==void 0){let s=Number(o.top);this.document.documentElement.scrollTop=isNaN(s)?0:s}if(o.left!==void 0){let s=Number(o.left);this.document.documentElement.scrollLeft=isNaN(s)?0:s}}}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 o=typeof t==="object"?t:{left:t,top:e};this.scroll({left:this.document.documentElement.scrollLeft+(o.left??0),top:this.document.documentElement.scrollTop+(o.top??0),behavior:o.behavior})}blur(){}focus(){}open(t,e,o){return Tc.openPage(this.#t,{url:t,target:e,features:o})}close(){if(this.#t.page.mainFrame===this.#t&&this.#t[Si])this[At](),this.#t.page.close()}matchMedia(t){return new Wa({window:this,media:t})}getScreenDetails(){return Promise.resolve(new um)}setTimeout(t,e=0,...o){if(this.closed)return{};let s=this.#t.page.context.browser.settings;if(s.timer.preventTimerLoops){let a=Error().stack,y=this.#m,u=this.#a,c=y.indexOf(a);if(c!==-1){if(u[c].timeout++,u[c].timeout>=(s.timer.preventTimerLoops===!0?1:s.timer.preventTimerLoops.timeout??1))return{}}else y.push(a),u.push({timeout:0,requestAnimationFrame:0})}if(!e){let a=this.#l;if(!a.timeouts){let u=!s||!s.disableErrorCapturing&&s.errorCapture===me.tryAndCatch,c=wl.setTimeout(()=>{this.#t[Pt].endTimer(c);let d=a.timeouts;a.timeouts=null;for(let g of d)if(u){let f;try{f=g.callback()}catch(E){this[le](E)}if(f instanceof Promise)f.catch((E)=>this[le](E))}else g.callback()},0);a.timeouts=[],this.#t[Pt].startTimer(c)}let y=new Cg(()=>t(...o));return a.timeouts.push(y),y}let n=!s||!s.disableErrorCapturing&&s.errorCapture===me.tryAndCatch,l=wl.setTimeout(()=>{if(this.#t[Pt].endTimer(l),n){let a;try{a=t(...o)}catch(y){this[le](y)}if(a instanceof Promise)a.catch((y)=>this[le](y))}else t(...o)},s?.timer.maxTimeout!==-1&&e&&e>s?.timer.maxTimeout?s?.timer.maxTimeout:e);return this.#t[Pt].startTimer(l),l}clearTimeout(t){if(t&&t instanceof Cg){let e=this.#l;if(!e.timeouts)return;let o=e.timeouts.indexOf(t);if(o!==-1)e.timeouts.splice(o,1);return}if(Tg&&(!t||t.constructor.name!=="Timeout"))return;wl.clearTimeout(t),this.#t[Pt].endTimer(t)}setInterval(t,e=0,...o){if(this.closed)return{};let s=this.#t.page.context.browser.settings,n=!s||!s.disableErrorCapturing&&s.errorCapture===me.tryAndCatch,l=0,a=wl.setInterval(()=>{if(n){let y;try{y=t(...o)}catch(u){this.clearInterval(a),this[le](u)}if(y instanceof Promise)y.catch((u)=>{this.clearInterval(a),this[le](u)})}else t(...o);if(s?.timer.maxIntervalIterations!==-1){if(l>=s?.timer.maxIntervalIterations)this.clearInterval(a);l++}},s?.timer.maxIntervalTime!==-1&&e&&e>s?.timer.maxIntervalTime?s?.timer.maxIntervalTime:e);return this.#t[Pt].startTimer(a),a}clearInterval(t){if(Tg&&(!t||t.constructor.name!=="Timeout"))return;wl.clearInterval(t),this.#t[Pt].endTimer(t)}requestAnimationFrame(t){if(this.closed)return{};let e=this.#t.page.context.browser.settings;if(e.timer.preventTimerLoops){let n=Error().stack,l=this.#m,a=this.#a,y=l.indexOf(n);if(y!==-1){if(a[y].requestAnimationFrame++,a[y].requestAnimationFrame>=(e.timer.preventTimerLoops===!0?1:e.timer.preventTimerLoops.requestAnimationFrame??1))return{}}else l.push(n),a.push({timeout:0,requestAnimationFrame:0})}let o=!e||!e.disableErrorCapturing&&e.errorCapture===me.tryAndCatch,s=wl.setImmediate(()=>{if(this.#t[Pt].endImmediate(s),o){let n;try{n=t(this.performance.now())}catch(l){this[le](l)}if(n instanceof Promise)n.catch((l)=>this[le](l))}else t(this.performance.now())});return this.#t[Pt].startImmediate(s),s}cancelAnimationFrame(t){if(Tg&&(!t||t.constructor.name!=="Immediate"))return;wl.clearImmediate(t),this.#t[Pt].endImmediate(t)}queueMicrotask(t){if(this.closed)return;let e=!1,o=this.#t[Pt].startTask(()=>e=!0),s=this.#t.page.context.browser.settings,n=!s||!s.disableErrorCapturing&&s.errorCapture===me.tryAndCatch;wl.queueMicrotask(()=>{if(!e)if(this.#t[Pt].endTask(o),n){let l;try{l=t()}catch(a){this[le](a)}if(l instanceof Promise)l.catch((a)=>this[le](a))}else t()})}async fetch(t,e){if(this.closed)return Promise.reject(new this.DOMException("Failed to execute 'fetch' on 'Window': The window is closed.",w.invalidStateError));return await new Br({browserFrame:this.#t,window:this,url:t,init:e}).send()}btoa(t){return np.btoa(t)}atob(t){return np.atob(t)}postMessage(t,e="*",o){if(this.closed)return;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}').`,w.securityError);try{JSON.stringify(t)}catch(s){throw new this.DOMException("Failed to execute 'postMessage' on 'Window': The provided message cannot be serialized.",w.invalidStateError)}this.setTimeout(()=>this.dispatchEvent(new Ep("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)return;if(!t||!e)throw new this.DOMException(`Failed to execute 'resizeTo' on 'Window': 2 arguments required, but only ${arguments.length} present.`);if(this.#t[Ln])this.#t.page.setViewport({width:t,height:e})}resizeBy(t,e){if(this.closed)return;if(!t||!e)throw new this.DOMException(`Failed to execute 'resizeBy' on 'Window': 2 arguments required, but only ${arguments.length} present.`);if(this.#t[Ln]){let o=this.#t.page.viewport;this.#t.page.setViewport({width:o.width+t,height:o.height+e})}}[le](t){this.#t.page.console.error(t),this.dispatchEvent(new rn("error",{message:t.message,error:t}))}[Uo](t,e){return new vg.Script(t,e).runInContext(this)}[Tm](){if(!vg.isContext(this))vg.createContext(this),gS.runInContext(this)}[Tb](){let t=this.#t;if((ww||Ew)&&t.page.context.browser.settings.enableJavaScriptEvaluation&&!t.page.context.browser.settings.suppressInsecureJavaScriptEnvironmentWarning&&!t.page.context.browser.settings.suppressCodeGenerationFromStringsWarning)console.warn(`
216
216
  Warning! Happy DOM has JavaScript evaluation enabled and is running in an insecure environment.
217
217
 
218
218
  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.
@@ -222,5 +222,5 @@ It is recommended to disable code generation and freeze all builtins at process
222
222
  For more information, see https://github.com/capricorn86/happy-dom/wiki/JavaScript-Evaluation-Warning
223
223
 
224
224
  `)}[At](){if(this.closed)return;super[At](),this.closed=!0;let t=this[Nn];for(let n of t)if(n[At])n[At]();this[Nn]=[];for(let n of this[Qn])n[At]();this[Qn]=[],this.document[At]();let e=this.document.createElement("html"),o=this.document.createElement("head"),s=this.document.createElement("body");if(e.appendChild(o),e.appendChild(s),this.document[Et](e),this.location[At])this.location[At]();if(this.customElements[At])this.customElements[At]();if(this.history[At])this.history[At]();this[ms].json.clear(),this[ms].css.clear(),this[ms].esm.clear(),this.document[Rr].clear(),this.document[Me]=null,this.document[Rs]=null,this.document[Oo]=null,this.document[Tn]=null,this[ao]=null,this[Jo]=null,it.removeWindowBrowserFrameRelation(this)}[Eb](){for(let t of[El,vt]){let e=Object.getOwnPropertyDescriptors(t.prototype),o=Object.keys(e);for(let s of o){let n=e[s];if(n.get||n.set)Object.defineProperty(this,s,{...n,get:n.get?.bind(this),set:n.set?.bind(this)});else if(s!=="constructor"&&typeof n.value==="function"&&!n.value.toString().startsWith("class "))Object.defineProperty(this,s,{...n,value:n.value.bind(this)})}}}}import{Script as xw}from"vm";class Pm{static evaluate(t,e){if(!t.window)throw Error('The frame has been destroyed, the "window" property is not set.');return e=typeof e==="string"?new xw(e):e,e.runInContext(t.window)}static async evaluateModule(t,e){if(!t.window)throw Error('The frame has been destroyed, the "window" property is not set.');let o=t.window;if(e?.code){let s=e.url?new URL(e.url,o.location.href):o.location,n=e.code;switch(e?.type||"esm"){case"esm":let l=new Qo(o,s);return await new pn({window:o,url:s,source:n,factory:l}).evaluate();case"json":return await new mm({window:o,url:s,source:n}).evaluate();case"css":return await new am({window:o,url:s,source:n}).evaluate()}}if(e?.url)return await(await new Qo(o,o.location).getModule(e.url,{with:{type:e.type||"esm"}})).evaluate();return{}}}class dh{currentItem={title:"",href:"about:blank",state:null,popState:!1,scrollRestoration:ii.auto,method:"GET",formData:null};items=[this.currentItem];push(t){let e=this.items.indexOf(this.currentItem);if(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;if(e===-1)throw 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:!1,scrollRestoration:ii.auto,method:"GET",formData:null},this.items.push(this.currentItem)}}class Am{#t;#e={};#r={};#o=0;#i=[];constructor(t){this.#t=t}assert(t,e,...o){if(!t)this.#t.print({type:Fe.assert,level:mr.error,message:["Assertion failed:",...e?[e,...o]:o],group:this.#i[this.#i.length-1]||null})}clear(){this.#t.clear()}count(t="default"){if(!this.#e[t])this.#e[t]=0;this.#e[t]++,this.#t.print({type:Fe.count,level:mr.info,message:[`${t}: ${this.#e[t]}`],group:this.#i[this.#i.length-1]||null})}countReset(t="default"){delete this.#e[t],this.#t.print({type:Fe.countReset,level:mr.warn,message:[`${t}: 0`],group:this.#i[this.#i.length-1]||null})}debug(t,...e){this.#t.print({type:Fe.debug,level:mr.log,message:t?[t,...e]:e,group:this.#i[this.#i.length-1]||null})}dir(t){this.#t.print({type:Fe.dir,level:mr.log,message:[t],group:this.#i[this.#i.length-1]||null})}dirxml(t){this.#t.print({type:Fe.dirxml,level:mr.log,message:[t],group:this.#i[this.#i.length-1]||null})}error(t,...e){this.#t.print({type:Fe.error,level:mr.error,message:t?[t,...e]:e,group:this.#i[this.#i.length-1]||null})}exception(...t){this.error(...t)}group(t){this.#o++;let e={id:this.#o,label:t||"default",collapsed:!1,parent:this.#i[this.#i.length-1]||null};this.#i.push(e),this.#t.print({type:Fe.group,level:mr.log,message:[t||"default"],group:e})}groupCollapsed(t){this.#o++;let e={id:this.#o,label:t||"default",collapsed:!0,parent:this.#i[this.#i.length-1]||null};this.#i.push(e),this.#t.print({type:Fe.groupCollapsed,level:mr.log,message:[t||"default"],group:e})}groupEnd(){if(this.#i.length===0)return;this.#i.pop()}info(t,...e){this.#t.print({type:Fe.info,level:mr.info,message:t?[t,...e]:e,group:this.#i[this.#i.length-1]||null})}log(t,...e){this.#t.print({type:Fe.log,level:mr.log,message:t?[t,...e]:e,group:this.#i[this.#i.length-1]||null})}profile(){throw Error("Method not implemented.")}profileEnd(){throw Error("Method not implemented.")}table(t){this.#t.print({type:Fe.table,level:mr.log,message:[t],group:this.#i[this.#i.length-1]||null})}time(t="default"){this.#r[t]=performance.now()}timeEnd(t="default"){let e=this.#r[t];if(e){let o=performance.now()-e;this.#t.print({type:Fe.timeEnd,level:mr.info,message:[`${t}: ${o}ms - timer ended`],group:this.#i[this.#i.length-1]||null})}}timeLog(t="default",...e){let o=this.#r[t];if(o){let s=performance.now()-o;this.#t.print({type:Fe.timeLog,level:mr.info,message:[`${t}: ${s}ms`,...e],group:this.#i[this.#i.length-1]||null})}}timeStamp(){throw Error("Method not implemented.")}trace(t,...e){this.#t.print({type:Fe.trace,level:mr.log,message:[...t?[t,...e]:e,Error("stack").stack.replace("Error: stack","")],group:this.#i[this.#i.length-1]||null})}warn(t,...e){this.#t.print({type:Fe.warn,level:mr.warn,message:t?[t,...e]:e,group:this.#i[this.#i.length-1]||null})}}class wm{static getFrames(t){return this.findFrames(t.mainFrame)}static closePage(t){if(t.closed)return Promise.resolve();t.closed=!0;let e=t.context.pages.indexOf(t);if(e!==-1)t.context.pages.splice(e,1);return t.virtualConsolePrinter.close(),As.destroyFrame(t.mainFrame)}static findFrames(t){let e=[t];for(let o of t.childFrames)e=e.concat(this.findFrames(o));return e}}class bh{#t=new Map;get(t){let e=this.#t.get(t.url);if(e){if(e.expires<Date.now())return this.#t.delete(t.url),null;return e}return null}add(t,e){if(this.#t.delete(t.url),t.headers.get("Cache-Control")?.includes("no-cache"))return null;if(e.status<200||e.status>=300)return null;let o=e.headers.get("Access-Control-Max-Age"),s=e.headers.get("Access-Control-Allow-Origin");if(!o||!s)return null;let n=[];if(e.headers.has("Access-Control-Allow-Methods")){if(e.headers.get("Access-Control-Allow-Methods")!=="*")for(let y of e.headers.get("Access-Control-Allow-Methods").split(","))n.push(y.trim().toUpperCase())}let l={allowOrigin:s,allowMethods:n,expires:Date.now()+parseInt(o)*1000};if(isNaN(l.expires)||l.expires<Date.now())return null;return this.#t.set(t.url,l),l}clear(){this.#t.clear()}}var BS={version:"20.9.0"};var Di={disableJavaScriptEvaluation:!1,enableJavaScriptEvaluation:!1,disableJavaScriptFileLoading:!1,disableCSSFileLoading:!1,disableIframePageLoading:!1,disableComputedStyleRendering:!1,handleDisabledFileLoadingAsSuccess:!1,disableErrorCapturing:!1,errorCapture:me.tryAndCatch,enableFileSystemHttpRequests:!1,suppressCodeGenerationFromStringsWarning:!1,suppressInsecureJavaScriptEnvironmentWarning:!1,timer:{maxTimeout:-1,maxIntervalTime:-1,maxIntervalIterations:-1,preventTimerLoops:!1},fetch:{disableSameOriginPolicy:!1,disableStrictSSL:!1,interceptor:null,requestHeaders:null,virtualServers:null},module:{resolveNodeModules:null,urlResolver:null,disableCache:!1},navigation:{disableMainFrameNavigation:!1,disableChildFrameNavigation:!1,disableChildPageNavigation:!1,disableFallbackToSetURL:!1,crossOriginPolicy:im.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/${BS.version}`,maxTouchPoints:0},device:{prefersColorScheme:"light",prefersReducedMotion:"no-preference",mediaType:"screen",forcedColors:"none"},debug:{traceWaitUntilComplete:-1},viewport:{width:1024,height:768,devicePixelRatio:1}};class gh{static createSettings(t){if(t)this.validate(Di,t);return{...Di,...t,navigation:{...Di.navigation,...t?.navigation},navigator:{...Di.navigator,...t?.navigator},timer:{...Di.timer,...t?.timer},fetch:{...Di.fetch,...t?.fetch},module:{...Di.module,...t?.module},device:{...Di.device,...t?.device},debug:{...Di.debug,...t?.debug},viewport:{...Di.viewport,...t?.viewport}}}static validate(t,e,o){for(let s of Object.keys(e)){if(t[s]===void 0){let n=o?o+"."+s:s;throw Error(`Unknown browser setting "${n}"`)}if(typeof t[s]==="object"&&!Array.isArray(t[s])&&t[s]!==null){let n=o?o+"."+s:s;if(typeof e[s]!=="object"||Array.isArray(e[s])||e[s]===null)throw Error(`Browser setting "${n}" cannot be null`);this.validate(t[s],e[s],n)}else if((typeof t[s]==="boolean"||typeof t[s]==="number"||typeof t[s]==="string")&&typeof e[s]!==typeof t[s]){if(!(s==="preventTimerLoops"&&typeof e[s]==="object"&&e[s]!==null)){let l=o?o+"."+s:s;throw Error(`Browser setting "${l}" must be of type "${typeof t[s]}"`)}}}}}class Sh{static listenerCount=0;observedWindows=[];uncaughtExceptionListener=null;uncaughtRejectionListener=null;observe(t){if(this.observedWindows.includes(t))throw Error("Browser window is already being observed.");if(this.observedWindows.push(t),this.uncaughtExceptionListener)return;this.uncaughtExceptionListener=(e,o)=>{if(o==="unhandledRejection")return;let s=null;for(let n of this.observedWindows)if(e instanceof n.Error||e instanceof n.DOMException){s=n;break}if(s)s.console.error(e),s.dispatchEvent(new s.ErrorEvent("error",{error:e,message:e.message}));else if(process.listenerCount("uncaughtException")===this.constructor.listenerCount)console.error(e),process.exit(1)},this.uncaughtRejectionListener=(e)=>{let o=null;for(let s of this.observedWindows)if(e instanceof s.Error||e instanceof s.DOMException){o=s;break}if(o)o.console.error(e),o.dispatchEvent(new o.ErrorEvent("error",{error:e,message:e.message}));else if(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);if(e===-1)return;if(this.observedWindows.splice(e,1),this.observedWindows.length===0&&this.uncaughtExceptionListener){if(this.constructor.listenerCount--,process.off("uncaughtException",this.uncaughtExceptionListener),this.uncaughtRejectionListener)process.off("unhandledRejection",this.uncaughtRejectionListener);this.uncaughtExceptionListener=null,this.uncaughtRejectionListener=null}}}class fh{childFrames=[];parentFrame=null;page;closed=!1;[Pt]=new Js(this);[he]={navigation:[]};[io]=null;[Si]=null;[Ln]=!1;[Oe]=new dh;constructor(t){if(this.page=t,t.context.browser.contexts[0]?.pages[0]?.mainFrame){if(this.window=new this.page.context.browser.windowClass(this),t.context.browser[to])t.context.browser[to].observe(this.window)}}get content(){if(!this.window)throw 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 Error('The frame has been destroyed, the "window" property is not set.');this.window.document[ks]=!0,this.window.document[Ms]=!1,this.window.document.open(),this.window.document.write(t)}get url(){if(!this.window)throw Error('The frame has been destroyed, the "window" property is not set.');return this.window.location.href}set url(t){if(!this.window)throw Error('The frame has been destroyed, the "window" property is not set.');this.window[no][_r](this,Fo.getRelativeURL(this,t).href)}get document(){return this.window?.document??null}async waitUntilComplete(){await Promise.all([this[Pt].waitUntilComplete(),...this.childFrames.map((t)=>t.waitUntilComplete())])}waitForNavigation(){return new Promise((t)=>this[he].navigation.push(t))}abort(){if(!this.childFrames.length)return this[Pt].abort();return new Promise((t,e)=>{Promise.all(this.childFrames.map((o)=>o.abort()).concat([this[Pt].abort()])).then(()=>t()).catch(e)})}evaluate(t){return Pm.evaluate(this,t)}evaluateModule(t){return Pm.evaluateModule(this,t)}goto(t,e){return Xr.navigate({windowClass:this.page.context.browser.windowClass,frame:this,url:t,goToOptions:e})}goBack(t){return Xr.navigateBack({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:t})}goForward(t){return Xr.navigateForward({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:t})}goSteps(t,e){return Xr.navigateSteps({windowClass:this.page.context.browser.windowClass,frame:this,steps:t,goToOptions:e})}reload(t){return Xr.reload({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:t})}}class Em{virtualConsolePrinter=new Oa;mainFrame;context;console;viewport;closed=!1;constructor(t){this.context=t,this.console=t.browser.console??new Am(this.virtualConsolePrinter),this.mainFrame=new fh(this),this.viewport={width:t.browser.settings.viewport.width,height:t.browser.settings.viewport.height,devicePixelRatio:t.browser.settings.viewport.devicePixelRatio}}get frames(){return wm.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 o=this.context;wm.closePage(this).then(()=>{if(o.pages[0]===this)o.browser.close().then(t).catch(e);else 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);if(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 N("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)}}class Ph{pages;browser;cookieContainer=new ip;responseCache=new sp;preflightResponseCache=new bh;closed=!1;[Va]=new Map;constructor(t){this.browser=t,this.pages=[],this.pages.push(new Em(this))}async close(){if(this.closed)return;if(this.browser.contexts[0]===this)throw Error("Cannot close the default context. Use `browser.close()` to close the browser instead.");this.closed=!0,await Promise.all(this.pages.slice().map((o)=>o.close()));let t=this.browser,e=t.contexts.indexOf(this);if(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((o)=>o.abort())).then(()=>t()).catch((o)=>e(o))})}newPage(){let t=new Em(this);return this.pages.push(t),t}}class Ah{contexts;settings;console;windowClass;[to]=null;constructor(t,e){if(this.windowClass=t,this.console=e?.console||null,this.settings=gh.createSettings(e?.settings),this.settings.errorCapture===me.processLevel)this[to]=new Sh;this.contexts=[],this.contexts.push(new Ph(this))}get closed(){return this.contexts.length===0}get defaultContext(){if(this.contexts.length===0)throw 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((o)=>o.abort())).then(()=>t()).catch((o)=>e(o))})}newIncognitoContext(){throw Error("Not possible to create a new context on a detached browser.")}newPage(){if(this.contexts.length===0)throw Error("No default context. The browser has been closed.");return this.contexts[0].newPage()}}class wh{#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})}}class Eh extends El{happyDOM;constructor(t){let o=new Ah(El,{console:t?.console,settings:t?.settings}).defaultContext.pages[0],s=o.mainFrame;if(t&&(t.width||t.height||t.innerWidth||t.innerHeight))Object.assign(o.viewport,{width:t.width||t.innerWidth||o.viewport.width,height:t.height||t.innerHeight||o.viewport.height});super(s,{url:t?.url});if(s.window=this,s.page.context.browser[to])s.page.context.browser[to].observe(this);this.happyDOM=new wh(s)}}import{Buffer as Nw}from"buffer";class xh extends Eh{Array=globalThis.Array;ArrayBuffer=globalThis.ArrayBuffer;Boolean=globalThis.Boolean;Buffer=Nw;DataView=globalThis.DataView;Date=globalThis.Date;Error=globalThis.Error;EvalError=globalThis.EvalError;Float32Array=globalThis.Float32Array;Float64Array=globalThis.Float64Array;Function=globalThis.Function;Infinity=globalThis.Infinity;Int16Array=globalThis.Int16Array;Int32Array=globalThis.Int32Array;Int8Array=globalThis.Int8Array;Intl=globalThis.Intl;JSON=globalThis.JSON;Map=globalThis.Map;Math=globalThis.Math;NaN=globalThis.NaN;Number=globalThis.Number;Object=globalThis.Object;Promise=globalThis.Promise;RangeError=globalThis.RangeError;ReferenceError=globalThis.ReferenceError;RegExp=globalThis.RegExp;Set=globalThis.Set;String=globalThis.String;Symbol=globalThis.Symbol;SyntaxError=globalThis.SyntaxError;TypeError=globalThis.TypeError;URIError=globalThis.URIError;Uint16Array=globalThis.Uint16Array;Uint32Array=globalThis.Uint32Array;Uint8Array=globalThis.Uint8Array;Uint8ClampedArray=globalThis.Uint8ClampedArray;WeakMap=globalThis.WeakMap;WeakSet=globalThis.WeakSet;decodeURI=globalThis.decodeURI;decodeURIComponent=globalThis.decodeURIComponent;encodeURI=globalThis.encodeURI;encodeURIComponent=globalThis.encodeURIComponent;eval=globalThis.eval;escape=globalThis.escape;global=globalThis;isFinite=globalThis.isFinite;isNaN=globalThis.isNaN;parseFloat=globalThis.parseFloat;parseInt=globalThis.parseInt;undefined=globalThis.undefined;unescape=globalThis.unescape;[Uo](t,e){if(e?.filename)return this.eval(`${t}
225
- //# sourceURL=${e.filename}`);return this.eval(t)}[Tm](){}}class Ng{context;active=!0;revision=0;controller;state={pending:!1,error:null};listeners=new Set;update(t){if(t?.text!==this.context?.text||t?.draftKey!==this.context?.draftKey||t?.busy!==this.context?.busy||t?.disabled!==this.context?.disabled)this.revision++;this.context=t}activate(){this.active=!0}dispose(){this.active=!1,this.controller?.abort(),this.controller=void 0,this.state={...this.state,pending:!1}}subscribe=(t)=>(this.listeners.add(t),()=>this.listeners.delete(t));getSnapshot=()=>this.state;publish(t,e){this.state={pending:t,error:e};for(let o of this.listeners)o()}clearError=()=>this.publish(this.state.pending,null);run=async(t)=>{if(!this.active||this.controller)return;let e=this.context;if(!e||e.busy||e.disabled){this.publish(!1,"\u5F53\u524D\u4E0D\u53EF\u7528\uFF0C\u672A\u6267\u884C");return}let o=this.revision,s=new AbortController;this.controller=s,this.publish(!0,null);try{let n=await t(e.text,s.signal);if(!this.active||s.signal.aborted)return;if(o!==this.revision){this.publish(!0,this.context?.busy||this.context?.disabled?"\u5F53\u524D\u4E0D\u53EF\u7528\uFF0C\u672A\u6267\u884C":"\u8349\u7A3F\u5DF2\u66F4\u6539\uFF0C\u672A\u8986\u76D6\u5F53\u524D\u5185\u5BB9");return}e.setText((l)=>{if(!this.active||s.signal.aborted||o!==this.revision||l!==e.text)return queueMicrotask(()=>{if(this.active&&!s.signal.aborted)this.publish(this.state.pending,this.context?.busy||this.context?.disabled?"\u5F53\u524D\u4E0D\u53EF\u7528\uFF0C\u672A\u6267\u884C":"\u8349\u7A3F\u5DF2\u66F4\u6539\uFF0C\u672A\u8986\u76D6\u5F53\u524D\u5185\u5BB9")}),l;return n})}catch(n){if(this.active&&!s.signal.aborted)this.publish(!0,n instanceof Error?n.message:String(n))}finally{if(this.controller===s){if(this.controller=void 0,this.active)this.publish(!1,this.state.error)}}}}var qd=Bn(null);function OS(){let t=Fn(qd);if(!t)throw Error("Plugin Web UI provider is missing");return t}function Lw(t){let e=$n(null);if(!e.current)e.current=new Ng;let o=e.current;return o.update(t.context),Wn(()=>(o.activate(),()=>o.dispose()),[o]),{...Hn(o.subscribe,o.getSnapshot,o.getSnapshot),run:o.run,clearError:o.clearError}}function kw({pending:t,disabled:e,...o}){let{Button:s}=OS();return C(s,{...o,type:"button",size:"sm",variant:"ghost",disabled:e||t,loading:t,"aria-busy":t||void 0})}var Mw=Symbol.for("react.fragment");var GS=Mw,US=void 0;var Iw=Symbol.for("react.transitional.element"),Rw=Symbol.for("react.fragment");function HS(t,e,o){var s=null;if(o!==void 0&&(s=""+o),e.key!==void 0&&(s=""+e.key),"key"in e){o={};for(var n in e)n!=="key"&&(o[n]=e[n])}else o=e;return e=o.ref,{$$typeof:Iw,type:t,key:s,ref:e!==void 0?e:null,props:o}}var WS=Rw,_S=HS,YS=HS;var Fw={sans:'ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif',serif:'ui-serif, Georgia, "PingFang SC", "Microsoft YaHei", serif',mono:'ui-monospace, "SF Mono", Menlo, Consolas, monospace'},Vw={bg:"oklch(0.984 0.002 95)",sidebar:"oklch(0.966 0.003 95)",panel:"oklch(1 0 0)",raised:"oklch(0.94 0.004 95)",bubble:"oklch(0.948 0.004 95)",line:"oklch(0.905 0.005 95)",lineStrong:"oklch(0.84 0.006 95)",ink:"oklch(0.22 0.006 250)",dim:"oklch(0.47 0.008 250)",faint:"oklch(0.63 0.008 250)",accent:"oklch(0.53 0.085 172)",accentStrong:"oklch(0.47 0.085 172)",accentInk:"oklch(0.99 0.01 172)",accentSoft:"oklch(0.53 0.085 172 / 0.11)",danger:"oklch(0.55 0.17 27)",dangerFill:"oklch(0.52 0.17 27)",dangerFillHover:"oklch(0.47 0.17 27)",success:"oklch(0.56 0.11 155)",warning:"oklch(0.7 0.14 70)",overlay:"oklch(0.2 0.01 250 / 0.32)",facet:"oklch(0.32 0.012 240)",facetLit:"oklch(0.46 0.012 240)",facetShade:"oklch(0.27 0.01 240)",hex:{bg:"#f9f9f8",panel:"#ffffff",ink:"#1b1f24",dim:"#5b6068",faint:"#878c94",line:"#e3e2dd",lineStrong:"#cfcdc7"},chartPalette:["#2a78d6","#eb6834","#1baf7a","#eda100","#e87ba4","#008300","#4a3aa7","#e34948"],chartSequential:["#cde2fb","#86b6ef","#3987e5","#1c5cab","#0d366b"]},Dw={float:"0 1px 2px oklch(0.2 0.01 250 / 0.05), 0 8px 28px -6px oklch(0.2 0.01 250 / 0.14)",composer:"0 1px 2px oklch(0.2 0.01 250 / 0.04), 0 6px 24px -8px oklch(0.2 0.01 250 / 0.1)"},Bw={scheme:"light",colors:Vw,fonts:Fw,shadows:Dw},KS={"surface.panel":"overflow-hidden rounded-xl border border-line bg-panel text-ink","surface.card":"rounded-2xl border border-line bg-panel text-ink","surface.subtle":"rounded-xl border border-line/60 bg-raised/25","surface.interactive":"overflow-hidden rounded-xl border border-line bg-panel/70 transition-colors hover:border-line-strong hover:bg-panel","surface.dock":"relative flex flex-col overflow-hidden rounded-[20px] border border-line bg-panel outline-none","surface.empty":"py-8 text-center text-xs text-faint","surface.emptyDashed":"flex flex-col items-center gap-3 rounded-2xl border border-dashed border-line-strong/70 px-6 py-16 text-center","surface.floating":"z-50 min-w-40 overflow-hidden rounded-xl border border-line bg-panel p-1 text-ink shadow-float outline-none","surface.floatingItem":"relative flex min-h-8 w-full cursor-default items-center gap-2.5 rounded-lg px-2 py-1.5 text-left text-[13.5px] outline-none select-none","surface.floatingLabel":"px-2 pt-1.5 pb-1 text-xs font-medium text-faint","surface.floatingSeparator":"-mx-1 my-1 h-px bg-line","surface.toolbarFloating":"flex items-center gap-0.5 rounded-lg border border-line/70 bg-panel/85 p-0.5 shadow-xs backdrop-blur-sm","surface.tooltip":"z-50 flex items-center gap-1.5 rounded-md bg-ink px-2 py-1 text-xs font-medium text-bg","surface.dialog":"fixed z-50 flex max-h-[min(92dvh,48rem)] w-full flex-col border border-line bg-panel shadow-float outline-none","surface.overlay":"fixed inset-0 z-40 bg-overlay backdrop-blur-[2px]","toast.item":"pointer-events-auto flex w-full items-start gap-2.5 rounded-xl border border-line bg-panel px-3.5 py-2.5 text-[13.5px] leading-5 text-ink shadow-float outline-none","toast.danger":"border-danger/35","button.base":"relative inline-flex shrink-0 items-center justify-center gap-1.5 font-medium whitespace-nowrap select-none","button.primary":"bg-accent text-accent-ink hover:bg-accent-strong","button.secondary":"border border-line bg-panel text-ink hover:border-line-strong hover:bg-raised/60","button.ghost":"text-dim hover:bg-raised hover:text-ink","button.danger":"bg-danger-fill text-white hover:bg-danger-fill-hover","button.dangerGhost":"text-danger hover:bg-danger/10","button.inverse":"bg-ink text-bg hover:bg-ink/85","control.input":"w-full rounded-[10px] border border-line bg-bg px-3 text-sm text-ink outline-none placeholder:text-faint","control.chipTrigger":"inline-flex h-8 max-w-full min-w-0 items-center gap-1.5 rounded-full border border-line bg-panel px-3 text-xs text-dim shadow-xs select-none","control.fieldTrigger":"inline-flex h-9 w-full min-w-0 items-center gap-2 rounded-[10px] border border-line bg-bg px-3 text-sm text-ink select-none","control.segmented":"relative inline-flex rounded-xl bg-raised p-1","control.segmentedPill":"pointer-events-none absolute top-0 left-0 rounded-lg bg-panel opacity-0 shadow-xs will-change-transform","control.switch":"group/switch relative inline-flex h-5.5 w-9.5 shrink-0 items-center rounded-full p-0.5","control.switchThumb":"block h-4.5 w-4.5 rounded-full bg-white","control.kbd":"inline-flex h-4.5 min-w-4.5 items-center justify-center rounded border border-line bg-raised px-1","control.badge":"inline-flex items-center rounded-md bg-raised px-1.5 py-0.5 text-[10.5px] leading-none font-medium text-faint","control.badgeAccent":"inline-flex shrink-0 items-center rounded-md bg-accent-soft px-1.5 py-0.5 text-[11px] leading-none font-medium text-accent","control.iconCircle":"group relative flex size-7 items-center justify-center rounded-full border border-line bg-raised/40 text-dim","command.inputWrap":"flex shrink-0 items-center gap-2 border-b border-line px-3","command.input":"h-11 min-w-0 flex-1 bg-transparent text-[14px] outline-none placeholder:text-faint","command.group":"text-xs font-medium text-faint","command.row":"relative flex w-full cursor-default gap-3 rounded-lg px-2.5 py-2 text-left outline-none select-none","code.base":"overflow-x-auto font-mono text-[12.5px] leading-[1.65]","code.block":"group/code my-4 font-sans not-italic first:mt-0 last:mb-0","page.container":"mx-auto max-w-3xl px-4 pt-6 pb-16 sm:px-6 sm:pt-10","page.title":"min-w-0 flex-1 font-serif text-[1.75rem] leading-tight tracking-[-0.015em]","page.description":"mb-8 text-sm text-dim","workspace.header":"flex h-12 shrink-0 items-center gap-2 border-b border-line/60 px-3","settings.groupTitle":"text-[13px] font-medium text-dim","settings.groupDesc":"mt-0.5 text-xs text-faint","settings.groupBox":"divide-y divide-line overflow-hidden rounded-2xl border border-line bg-panel","settings.row":"flex flex-wrap items-center justify-between gap-4 p-4","settings.rowTitle":"text-sm font-medium text-ink","settings.rowDesc":"mt-0.5 text-xs leading-5 break-words text-dim","status.base":"inline-flex shrink-0 items-center gap-1.5 rounded-full px-2 py-1 text-[11px] leading-none font-medium","status.success":"bg-success/10 text-success","status.warning":"bg-warning/10 text-warning","status.danger":"bg-danger/10 text-danger","status.neutral":"bg-raised text-dim","callout.base":"flex items-start gap-2.5 rounded-xl border px-3.5 py-2.5 text-[13.5px] leading-5","callout.info":"border-line bg-raised/40 text-dim","callout.danger":"border-danger/25 bg-danger/6 text-danger","chat.banner":"flex shrink-0 flex-wrap items-center justify-between gap-2 border-b border-line bg-raised/45 px-4 py-2 text-xs text-dim","chat.dockBanner":"flex shrink-0 flex-wrap items-center justify-between gap-2 rounded-[20px] border border-line bg-raised/55 px-4 py-3 text-xs text-dim","chat.userBubble":"rounded-[20px] rounded-br-md bg-bubble px-4 py-2.5 text-[14.5px] leading-[1.6] text-ink break-words whitespace-pre-wrap","chat.attachmentCard":"flex h-8 items-center gap-1.5 rounded-xl border border-line bg-panel px-2.5 text-xs text-dim","chat.prose":"font-serif text-[14.5px] leading-[1.78] tracking-[0.005em] break-words text-ink/84","chat.metaBadge":"inline-flex items-center gap-1 rounded-md border border-line/60 bg-raised/60 px-1.5 py-0.5","chat.stepRow":"group/collapsible -mx-2 flex w-[calc(100%+1rem)] items-center gap-2 rounded-lg px-2 py-1.5","chat.timelineRow":"group/collapsible -mx-2 flex w-[calc(100%+1rem)] items-center gap-2 rounded-lg px-2 py-1","chat.thinkingBody":"mt-1.5 mb-2.5 font-serif text-[13.5px] leading-[1.65] text-dim italic","chat.toolOutput":"max-h-80 overflow-auto px-4 py-3 font-mono text-[12.5px] leading-[1.65] whitespace-pre-wrap break-words","chat.diffAdd":"bg-success/10 text-success","chat.diffRemove":"bg-danger/9 text-danger","chat.foldPill":"group/fold flex cursor-pointer select-none items-center gap-2 rounded-full border border-line/70 bg-panel/90 px-3.5 py-1 text-xs text-faint","chat.scrollBottomBtn":"flex h-8 items-center gap-1.5 rounded-full border border-line bg-panel/95 px-3 text-xs font-medium text-dim shadow-float","search.highlight":"rounded-sm bg-accent-soft px-0.5 font-medium text-ink","search.filterChip":"inline-flex h-6 items-center gap-1 rounded-md border border-line bg-panel px-2 text-xs text-dim","search.filterChipActive":"inline-flex h-6 items-center gap-1 rounded-md border border-accent/35 bg-accent-soft pl-2 pr-1 text-xs font-medium text-accent","composer.box":"group/composer relative min-w-0 rounded-[20px] border border-line bg-panel","composer.input":"relative block min-h-13 w-full resize-none bg-transparent px-4 pt-3.5 pb-1.5 text-[15px] leading-6","composer.attachment":"group/att flex h-9 items-center gap-2 rounded-xl border border-line bg-raised/60 pr-1.5 pl-2.5 text-xs","sidebar.shell":"flex h-full flex-col bg-sidebar","sidebar.drawer":"fixed inset-y-0 left-0 z-0 flex w-[min(86vw,24rem)] flex-col bg-sidebar outline-none","sidebar.rightShell":"flex h-full w-full flex-col border-l border-line bg-sidebar","sidebar.rightDrawer":"fixed inset-y-0 right-0 z-50 flex w-[min(24rem,90vw)] flex-col border-l border-line bg-sidebar shadow-float outline-none","sidebar.navItem":"group flex h-9 w-full items-center gap-2.5 rounded-lg px-2 text-left text-sm select-none","sidebar.sectionTitle":"flex-1 text-xs font-medium text-faint","sidebar.hoverPill":"pointer-events-none absolute top-0 left-0 rounded-lg bg-raised/65 opacity-0","sidebar.activePill":"pointer-events-none absolute top-0 left-0 rounded-lg bg-raised opacity-0","markdown.p":"my-4 first:mt-0 last:mb-0","markdown.strong":"font-semibold text-ink","markdown.a":"font-medium text-accent underline","markdown.fileChip":"inline-flex items-baseline gap-1 rounded-md bg-raised/85 px-[0.42em] py-[0.08em] font-mono","markdown.h1":"mt-6 mb-2.5 text-[1.28em] leading-snug font-semibold text-ink first:mt-0","markdown.h2":"mt-6 mb-2.5 text-[1.16em] leading-snug font-semibold text-ink first:mt-0","markdown.h3":"mt-5.5 mb-2 text-[1.06em] font-semibold text-ink first:mt-0","markdown.h4":"mt-4.5 mb-1.5 font-semibold text-ink first:mt-0","markdown.ul":"mt-1.5 mb-5 list-disc pl-[1.5em] marker:text-faint first:mt-0 last:mb-0","markdown.ol":"mt-1.5 mb-5 list-decimal pl-[1.6em] marker:text-[0.9em] marker:text-faint first:mt-0 last:mb-0","markdown.li":"my-2 pl-1","markdown.blockquote":"my-3.5 border-l-[3px] border-line-strong pl-3.5 text-dim italic","markdown.hr":"my-5 border-line","markdown.inlineCode":"mx-[0.18em] rounded-md bg-raised/85 px-[0.38em] py-[0.12em] font-mono text-[0.84em] text-ink/95 break-words","markdown.details":"my-3.5 overflow-hidden rounded-xl border border-line bg-raised/25 not-italic first:mt-0 last:mb-0","markdown.detailsTrigger":"group/collapsible flex w-full cursor-pointer items-center gap-2 px-3.5 py-2.5 text-left font-sans text-[13.5px] leading-snug font-medium text-ink","markdown.detailsContent":"border-t border-line px-3.5 py-3","markdown.imageButton":"my-3 block cursor-zoom-in overflow-hidden rounded-xl border border-line bg-panel text-left","markdown.tableWrap":"my-4 overflow-x-auto rounded-xl border border-line font-sans not-italic first:mt-0 last:mb-0","markdown.table":"w-full border-collapse text-[13.5px]","markdown.thead":"bg-raised/50","markdown.th":"min-w-24 border-b border-line px-3 py-2 text-left font-semibold","markdown.td":"min-w-24 border-t border-line px-3 py-2 align-top [&_code]:wrap-anywhere"},Ow={themeID:"basalt",preference:"light",resolved:"light",tokens:Bw,recipes:KS};function Gw({loading:t,disabled:e,size:o,variant:s,...n}){return C("button",{type:"button",...n,disabled:e||t,"aria-busy":t||void 0})}var QS={Button:Gw,Panel:({header:t,actions:e,children:o,...s})=>C("div",s,t,e,o),PageLayout:({title:t,description:e,actions:o,children:s,"aria-label":n,className:l})=>C("section",{"aria-label":n,className:l},C("header",null,C("h1",null,t),o,e&&C("p",null,e)),s),StatusChip:({children:t,title:e})=>C("span",{title:e},t),Markdown:({text:t})=>C("div",null,t),Form:(t)=>C("form",t),FormError:({children:t})=>C("p",{role:"alert"},t),Switch:({checked:t,onCheckedChange:e,label:o,...s})=>C("button",{...s,type:"button",role:"switch","aria-checked":t,onClick:()=>e(!t)},o),Select:({groups:t,onValueChange:e,placeholder:o,...s})=>C("select",{...s,onChange:(n)=>e(n.currentTarget.value)},o&&C("option",{value:""},o),t.map((n,l)=>C("optgroup",{key:l,label:n.label??""},n.options.map((a)=>C("option",{key:a.value,value:a.value},a.label))))),Input:(t)=>C("input",t),Textarea:(t)=>C("textarea",t),Code:({code:t,lang:e,className:o})=>C("pre",{className:o,"data-lang":e},C("code",null,t)),CopyButton:({text:t,label:e})=>C("button",{type:"button","aria-label":e??"\u590D\u5236",onClick:()=>void globalThis.navigator?.clipboard?.writeText(typeof t==="function"?t():t)}),useColorScheme:()=>"light",useTheme:()=>Ow,style:(t,...e)=>[KS[t]??t,...e].filter(Boolean).join(" "),cn:(...t)=>t.filter(Boolean).join(" ")},jS=new Proxy(QS,{get(t,e){if(Object.hasOwn(t,e))return Reflect.get(t,e);throw Error(`ui_test does not provide UI capability ${String(e)}; use supported native controls for structural tests and a browser for this capability`)}}),Xd={react:ur,"react-dom":Vr,"react/jsx-runtime":kg,"react/jsx-dev-runtime":Lg,"@basalt/plugin/web":$d,"@basalt/ui":QS};var qS=Promise.resolve();async function Uw(){let t=qS,e=()=>{};return qS=new Promise((o)=>{e=o}),await t,e}function Hw(t){return{window:t,document:t.document,navigator:t.navigator,HTMLElement:t.HTMLElement,HTMLInputElement:t.HTMLInputElement,HTMLTextAreaElement:t.HTMLTextAreaElement,Node:t.Node,Event:t.Event,MouseEvent:t.MouseEvent,getComputedStyle:t.getComputedStyle.bind(t)}}async function Ww(t,e){let o=await Bun.build({entrypoints:["basalt-ui-entry"],target:"browser",format:"esm",throw:!1,plugins:[{name:"basalt-ui-bridge",setup(n){n.onResolve({filter:/.*/},({path:l})=>{if(l==="basalt-ui-entry")return{path:l,namespace:"test-entry"};if(Object.hasOwn(Xd,l))return{path:l,namespace:"test-bridge"};throw Error(`Unsupported ui_test import: ${l}`)}),n.onLoad({filter:/.*/,namespace:"test-entry"},()=>({contents:t,loader:"js"})),n.onLoad({filter:/.*/,namespace:"test-bridge"},({path:l})=>({loader:"js",contents:Object.keys(Xd[l]??{}).map((a,y)=>{let u=`globalThis[${JSON.stringify(e)}][${JSON.stringify(l)}][${JSON.stringify(a)}]`;return`const e${y}=${u};export {e${y} as ${a}};`}).join(`
226
- `)}))}}]}),s=o.outputs[0];if(!o.success||!s)throw Error(o.logs.map((n)=>n.message).join("; ")||"UI bridge build failed");return s.text()}function _w(t,e){if(!(typeof t==="object"&&t!==null&&("id"in t)&&t.id===e&&("apiVersion"in t)&&t.apiVersion===1))throw Error("Web module must export default with matching id and apiVersion: 1")}async function Mg(t,e,o){let s=new xh({settings:{disableJavaScriptEvaluation:!0,disableJavaScriptFileLoading:!0,disableCSSFileLoading:!0,enableFileSystemHttpRequests:!1}}),n=await Uw(),l=`__basalt_ui_${crypto.randomUUID().replaceAll("-","")}`,a={...Hw(s),[l]:Xd},y=new Map(Object.keys(a).map((c)=>[c,Object.getOwnPropertyDescriptor(globalThis,c)])),u;try{for(let[d,g]of Object.entries(a))Object.defineProperty(globalThis,d,{configurable:!0,writable:!0,value:g});u=URL.createObjectURL(new Blob([await Ww(t,l)],{type:"text/javascript"})),An({type:"importing"});let c=await import(u);return An({type:"imported"}),_w(c.default,e),await o(c.default,s)}finally{try{await s.happyDOM.close()}finally{if(u)URL.revokeObjectURL(u);for(let[c,d]of y)if(d)Object.defineProperty(globalThis,c,d);else Reflect.deleteProperty(globalThis,c);n()}}}var Yw=10,$S=1000,XS=200,Kw="button,[role=button]";async function zS(t,e,o,s){let n=Date.now()+e;while(!t()){if(Date.now()>=n)throw Error(o);await Bun.sleep(Yw),await s.settle()}}function Qw(t,e,o){if(t.disabled||t.readOnly)throw Error("Control is not editable");let s=t.tagName==="TEXTAREA"?o.HTMLTextAreaElement.prototype:o.HTMLInputElement.prototype;Object.getOwnPropertyDescriptor(s,"value")?.set?.call(t,e),mt(()=>{t.dispatchEvent(new o.Event("input",{bubbles:!0})),t.dispatchEvent(new o.Event("change",{bubbles:!0}))})}async function jw(t,e){let{inspect:o,calls:s,window:n}=e;if("click"in t){let l=typeof t.click==="string"?o.findByName(Kw,t.click):o.selectOne(t.click.selector);if(o.isDisabled(l))throw Error("Control is disabled");mt(()=>l.click())}else if("type"in t)Qw(o.findByName("input,textarea",t.type.label),t.type.text,n);else if("waitText"in t){let{waitText:l}=t;await zS(()=>o.snapshot(void 0,!1).text.includes(l),t.timeoutMs??$S,`Timed out waiting for ${JSON.stringify(l)}`,e)}else if("waitSelector"in t){let{waitSelector:l}=t;await zS(()=>o.anyVisible(l),t.timeoutMs??$S,`Timed out waiting for selector ${l}`,e)}else if("expectCount"in t){let{selector:l,n:a}=t.expectCount,y=o.count(l);if(!Number.isInteger(a)||a<0||y!==a)throw Error(`Expected ${a} elements, got ${y}`)}else if("snapshot"in t){let l=t.snapshot.depth??10;if(!Number.isInteger(l)||l<0||l>XS)throw Error(`snapshot depth must be 0\u2013${XS}`);return o.outline(o.selectOne(t.snapshot.selector),l)}else if("expectCalls"in t){let{onOpen:l,onClose:a}=t.expectCalls;if(l&&JSON.stringify(l)!==JSON.stringify(s.onOpen))throw Error(`onOpen calls differ: ${JSON.stringify(s.onOpen)}`);if(a!==void 0&&a!==s.onClose)throw Error(`Expected ${a} onClose calls, got ${s.onClose}`)}else if("expectText"in t){let l=t.within?o.selectOne(t.within):void 0;if(!o.snapshot(l,!1).text.includes(t.expectText))throw Error(`Missing text: ${t.expectText}`)}else if("expectValue"in t){let l=o.findByName("input,textarea,select",t.expectValue.label);if(l.value!==t.expectValue.value)throw Error(`Expected value ${JSON.stringify(t.expectValue.value)}, got ${JSON.stringify(l.value)}`)}else throw Error("Unknown UI step")}async function JS(t,e){let o=[];for(let s of t)try{let n=await jw(s,e);await e.settle(),o.push({step:s,ok:!0,snapshot:e.inspect.snapshot(),outline:n})}catch(n){o.push({step:s,ok:!1,snapshot:e.inspect.snapshot(),error:n instanceof Error?n.message:String(n)});break}return o}var qw=()=>({id:"ui-test",title:"",projectID:null,model:"",created:0,updated:0,status:"idle",todos:[],parentID:null,forkThroughSeq:null,kind:"main",archivedAt:null}),ZS=["page","tab","card","sidebar"],tf=(t)=>[t.slot,t.view,t.codeBlock].filter(Boolean).length;async function ef(t,e){if(e.codeBlock){let n=e.codeBlock.toLowerCase(),l=Object.entries(t.codeBlocks??{}).find(([a])=>a.toLowerCase()===n)?.[1];if(!l)throw Error(`Unknown code block: ${e.codeBlock}`);return{view:void 0,codeBlock:n,component:(await l.load()).default}}let o=e.view?t.views?.[e.view]:void 0;if(e.view&&!o)throw Error(`Unknown view: ${e.view}`);if(o&&(!ZS.includes(o.kind)||e.kind&&e.kind!==o.kind))throw Error(`View kind mismatch for ${e.view}: expected ${e.kind??ZS.join("/")}, got ${o.kind}`);let s=o?(await o.load()).default:t.slots?.[e.slot??""];if(!s)throw Error(e.view?`Missing component for view: ${e.view}`:`Unknown slot: ${e.slot}`);return{view:o,codeBlock:void 0,component:s}}function $w(t,e,o,s,n){let l=(y)=>n.onOpen.push(y),a=()=>{n.onClose++};switch(t.kind){case"page":return C(e,{connection:s,onOpen:l});case"tab":return C(e,{connection:s,onClose:a});case"card":return C(e,{connection:s,onOpen:l,sessionID:typeof o.props?.sessionID==="string"?o.props.sessionID:"ui-test",payload:o.props?.payload});case"sidebar":return C(e,{session:qw(),entries:[],...o.props,connection:s})}}function rf(t,e,o,s){return function(){let[l,a]=jr(typeof e.context?.text==="string"?e.context.text:""),[y,u]=jr(Array.isArray(e.context?.attachments)?e.context.attachments:[]),c={disabled:!1,busy:!1,draftKey:"ui-test",...e.context,text:l,setText:a,attachments:y,setAttachments:u},d=C("textarea",{"aria-label":"__basalt_host_draft__",value:l,onInput:(f)=>{let E=Reflect.get(f.currentTarget,"value");if(typeof E==="string")a(E)}}),g=t.view?[$w(t.view,t.component,e,o,s)]:t.codeBlock?[C(t.component,{code:typeof e.props?.code==="string"?e.props.code:"",lang:t.codeBlock,streaming:e.props?.streaming===!0})]:[d,C(t.component,{context:c,connection:o})];return C(qd.Provider,{value:jS},...g)}}var of=1e4;function Xw(t){let e=`ui_test requires id, exactly one of slot, view or codeBlock, and at most ${Un} steps`;if(!t.id||tf(t)!==1||!Array.isArray(t.steps))throw Error(e);if(t.steps.length>Un)throw Error(e);for(let o of t.steps){if(!(("waitText"in o)||("waitSelector"in o)))continue;let s=o.timeoutMs??1000;if(!Number.isInteger(s)||s<1||s>cr)throw Error(`wait timeoutMs must be between 1 and ${cr}`)}for(let o of Object.values(t.mockRoutes??{})){let s=o.delayMs??0,n=Number.isInteger(o.status)&&o.status>=100&&o.status<=599,l=Number.isInteger(s)&&s>=0&&s<=of;if(!n||!l)throw Error(`mockRoutes requires HTTP status and delayMs between 0 and ${of}`)}}async function zw(t,e,o){return Xw(o),Mg(t,o.id,async(s,n)=>{if(e){let H=n.document.createElement("style");H.textContent=e,n.document.head.append(H)}let l=await ef(s,o),a={onOpen:[],onClose:0},y=new AbortController,u=Vg(o.mockRoutes,y.signal),c=rf(l,o,u,a),d=n.document.createElement("div");n.document.body.append(d);let g,{createRoot:f}=await import("./chunk-ppxv5q7y.js"),E=f(d,{onUncaughtError:(H)=>{g=H}}),R=async()=>{if(await Bun.sleep(0),mt(()=>{}),g)throw g};try{mt(()=>E.render(C(c))),await R();let H=Dg(d,n),pt=await JS(o.steps,{window:n,inspect:H,calls:a,settle:R});return{ok:pt.every((gt)=>gt.ok),steps:pt,calls:a}}finally{mt(()=>E.unmount()),y.abort()}})}function Jw(t,e){return Mg(t,e,async(o)=>{let s=o.pageNav?.viewID??"page";return{slots:Object.keys(o.slots??{}),views:Object.keys(o.views??{}),codeBlocks:Object.keys(o.codeBlocks??{}).map((n)=>n.toLowerCase()),pageNav:o.pageNav?{viewID:s,kind:o.views?.[s]?.kind}:void 0,themes:Array.isArray(o.themes)?o.themes.map((n)=>n&&typeof n==="object"?n.id:void 0).filter((n)=>typeof n==="string"&&n.length>0):void 0}})}globalThis.onmessage=async(t)=>{let e=t.data;if(e.type==="response")return Fg(e);try{let o=e.input?await zw(e.source,e.css,e.input):await Jw(e.source,e.id);An({type:"done",result:o})}catch(o){An({type:"error",error:o instanceof Error?o.message:String(o)})}};
225
+ //# sourceURL=${e.filename}`);return this.eval(t)}[Tm](){}}class Ng{context;active=!0;revision=0;controller;state={pending:!1,error:null};listeners=new Set;update(t){if(t?.text!==this.context?.text||t?.draftKey!==this.context?.draftKey||t?.busy!==this.context?.busy||t?.disabled!==this.context?.disabled)this.revision++;this.context=t}activate(){this.active=!0}dispose(){this.active=!1,this.controller?.abort(),this.controller=void 0,this.state={...this.state,pending:!1}}subscribe=(t)=>(this.listeners.add(t),()=>this.listeners.delete(t));getSnapshot=()=>this.state;publish(t,e){this.state={pending:t,error:e};for(let o of this.listeners)o()}clearError=()=>this.publish(this.state.pending,null);run=async(t)=>{if(!this.active||this.controller)return;let e=this.context;if(!e||e.busy||e.disabled){this.publish(!1,"\u5F53\u524D\u4E0D\u53EF\u7528\uFF0C\u672A\u6267\u884C");return}let o=this.revision,s=new AbortController;this.controller=s,this.publish(!0,null);try{let n=await t(e.text,s.signal);if(!this.active||s.signal.aborted)return;if(o!==this.revision){this.publish(!0,this.context?.busy||this.context?.disabled?"\u5F53\u524D\u4E0D\u53EF\u7528\uFF0C\u672A\u6267\u884C":"\u8349\u7A3F\u5DF2\u66F4\u6539\uFF0C\u672A\u8986\u76D6\u5F53\u524D\u5185\u5BB9");return}e.setText((l)=>{if(!this.active||s.signal.aborted||o!==this.revision||l!==e.text)return queueMicrotask(()=>{if(this.active&&!s.signal.aborted)this.publish(this.state.pending,this.context?.busy||this.context?.disabled?"\u5F53\u524D\u4E0D\u53EF\u7528\uFF0C\u672A\u6267\u884C":"\u8349\u7A3F\u5DF2\u66F4\u6539\uFF0C\u672A\u8986\u76D6\u5F53\u524D\u5185\u5BB9")}),l;return n})}catch(n){if(this.active&&!s.signal.aborted)this.publish(!0,n instanceof Error?n.message:String(n))}finally{if(this.controller===s){if(this.controller=void 0,this.active)this.publish(!1,this.state.error)}}}}var qd=Un(null);function OS(){let t=Bn(qd);if(!t)throw Error("Plugin Web UI provider is missing");return t}function Lw(t){let e=Wn(null);if(!e.current)e.current=new Ng;let o=e.current;return o.update(t.context),Fn(()=>(o.activate(),()=>o.dispose()),[o]),{...$n(o.subscribe,o.getSnapshot,o.getSnapshot),run:o.run,clearError:o.clearError}}function kw({pending:t,disabled:e,...o}){let{Button:s}=OS();return C(s,{...o,type:"button",size:"sm",variant:"ghost",disabled:e||t,loading:t,"aria-busy":t||void 0})}var Mw=Symbol.for("react.fragment");var GS=Mw,US=void 0;var Iw=Symbol.for("react.transitional.element"),Rw=Symbol.for("react.fragment");function HS(t,e,o){var s=null;if(o!==void 0&&(s=""+o),e.key!==void 0&&(s=""+e.key),"key"in e){o={};for(var n in e)n!=="key"&&(o[n]=e[n])}else o=e;return e=o.ref,{$$typeof:Iw,type:t,key:s,ref:e!==void 0?e:null,props:o}}var WS=Rw,_S=HS,YS=HS;var Fw={sans:'ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif',serif:'ui-serif, Georgia, "PingFang SC", "Microsoft YaHei", serif',mono:'ui-monospace, "SF Mono", Menlo, Consolas, monospace'},Vw={bg:"oklch(0.984 0.002 95)",sidebar:"oklch(0.966 0.003 95)",panel:"oklch(1 0 0)",raised:"oklch(0.94 0.004 95)",bubble:"oklch(0.948 0.004 95)",line:"oklch(0.905 0.005 95)",lineStrong:"oklch(0.84 0.006 95)",ink:"oklch(0.22 0.006 250)",dim:"oklch(0.47 0.008 250)",faint:"oklch(0.63 0.008 250)",accent:"oklch(0.53 0.085 172)",accentStrong:"oklch(0.47 0.085 172)",accentInk:"oklch(0.99 0.01 172)",accentSoft:"oklch(0.53 0.085 172 / 0.11)",danger:"oklch(0.55 0.17 27)",dangerFill:"oklch(0.52 0.17 27)",dangerFillHover:"oklch(0.47 0.17 27)",success:"oklch(0.56 0.11 155)",warning:"oklch(0.7 0.14 70)",overlay:"oklch(0.2 0.01 250 / 0.32)",facet:"oklch(0.32 0.012 240)",facetLit:"oklch(0.46 0.012 240)",facetShade:"oklch(0.27 0.01 240)",hex:{bg:"#f9f9f8",panel:"#ffffff",ink:"#1b1f24",dim:"#5b6068",faint:"#878c94",line:"#e3e2dd",lineStrong:"#cfcdc7"},chartPalette:["#2a78d6","#eb6834","#1baf7a","#eda100","#e87ba4","#008300","#4a3aa7","#e34948"],chartSequential:["#cde2fb","#86b6ef","#3987e5","#1c5cab","#0d366b"]},Dw={float:"0 1px 2px oklch(0.2 0.01 250 / 0.05), 0 8px 28px -6px oklch(0.2 0.01 250 / 0.14)",composer:"0 1px 2px oklch(0.2 0.01 250 / 0.04), 0 6px 24px -8px oklch(0.2 0.01 250 / 0.1)"},Bw={scheme:"light",colors:Vw,fonts:Fw,shadows:Dw},KS={"surface.panel":"overflow-hidden rounded-xl border border-line bg-panel text-ink","surface.card":"rounded-2xl border border-line bg-panel text-ink","surface.subtle":"rounded-xl border border-line/60 bg-raised/25","surface.interactive":"overflow-hidden rounded-xl border border-line bg-panel/70 transition-colors hover:border-line-strong hover:bg-panel","surface.dock":"relative flex flex-col overflow-hidden rounded-[20px] border border-line bg-panel outline-none","surface.empty":"py-8 text-center text-xs text-faint","surface.emptyDashed":"flex flex-col items-center gap-3 rounded-2xl border border-dashed border-line-strong/70 px-6 py-16 text-center","surface.floating":"z-50 min-w-40 overflow-hidden rounded-xl border border-line bg-panel p-1 text-ink shadow-float outline-none","surface.floatingItem":"relative flex min-h-8 w-full cursor-default items-center gap-2.5 rounded-lg px-2 py-1.5 text-left text-[13.5px] outline-none select-none","surface.floatingLabel":"px-2 pt-1.5 pb-1 text-xs font-medium text-faint","surface.floatingSeparator":"-mx-1 my-1 h-px bg-line","surface.toolbarFloating":"flex items-center gap-0.5 rounded-lg border border-line/70 bg-panel/85 p-0.5 shadow-xs backdrop-blur-sm","surface.tooltip":"z-50 flex items-center gap-1.5 rounded-md bg-ink px-2 py-1 text-xs font-medium text-bg","surface.dialog":"fixed z-50 flex max-h-[min(92dvh,48rem)] w-full flex-col border border-line bg-panel shadow-float outline-none","surface.overlay":"fixed inset-0 z-40 bg-overlay backdrop-blur-[2px]","toast.item":"pointer-events-auto flex w-full items-start gap-2.5 rounded-xl border border-line bg-panel px-3.5 py-2.5 text-[13.5px] leading-5 text-ink shadow-float outline-none","toast.danger":"border-danger/35","button.base":"relative inline-flex shrink-0 items-center justify-center gap-1.5 font-medium whitespace-nowrap select-none","button.primary":"bg-accent text-accent-ink hover:bg-accent-strong","button.secondary":"border border-line bg-panel text-ink hover:border-line-strong hover:bg-raised/60","button.ghost":"text-dim hover:bg-raised hover:text-ink","button.danger":"bg-danger-fill text-white hover:bg-danger-fill-hover","button.dangerGhost":"text-danger hover:bg-danger/10","button.inverse":"bg-ink text-bg hover:bg-ink/85","control.input":"w-full rounded-[10px] border border-line bg-bg px-3 text-sm text-ink outline-none placeholder:text-faint","control.chipTrigger":"inline-flex h-8 max-w-full min-w-0 items-center gap-1.5 rounded-full border border-line bg-panel px-3 text-xs text-dim shadow-xs select-none","control.fieldTrigger":"inline-flex h-9 w-full min-w-0 items-center gap-2 rounded-[10px] border border-line bg-bg px-3 text-sm text-ink select-none","control.segmented":"relative inline-flex rounded-xl bg-raised p-1","control.segmentedPill":"pointer-events-none absolute top-0 left-0 rounded-lg bg-panel opacity-0 shadow-xs will-change-transform","control.switch":"group/switch relative inline-flex h-5.5 w-9.5 shrink-0 items-center rounded-full p-0.5","control.switchThumb":"block h-4.5 w-4.5 rounded-full bg-white","control.kbd":"inline-flex h-4.5 min-w-4.5 items-center justify-center rounded border border-line bg-raised px-1","control.badge":"inline-flex items-center rounded-md bg-raised px-1.5 py-0.5 text-[10.5px] leading-none font-medium text-faint","control.badgeAccent":"inline-flex shrink-0 items-center rounded-md bg-accent-soft px-1.5 py-0.5 text-[11px] leading-none font-medium text-accent","control.iconCircle":"group relative flex size-7 items-center justify-center rounded-full border border-line bg-raised/40 text-dim","command.inputWrap":"flex shrink-0 items-center gap-2 border-b border-line px-3","command.input":"h-11 min-w-0 flex-1 bg-transparent text-[14px] outline-none placeholder:text-faint","command.group":"text-xs font-medium text-faint","command.row":"relative flex w-full cursor-default gap-3 rounded-lg px-2.5 py-2 text-left outline-none select-none","code.base":"overflow-x-auto font-mono text-[12.5px] leading-[1.65]","code.block":"group/code my-4 font-sans not-italic first:mt-0 last:mb-0","page.container":"mx-auto max-w-3xl px-4 pt-6 pb-16 sm:px-6 sm:pt-10","page.title":"min-w-0 flex-1 font-serif text-[1.75rem] leading-tight tracking-[-0.015em]","page.description":"mb-8 text-sm text-dim","workspace.header":"flex h-12 shrink-0 items-center gap-2 border-b border-line/60 px-3","settings.groupTitle":"text-[13px] font-medium text-dim","settings.groupDesc":"mt-0.5 text-xs text-faint","settings.groupBox":"divide-y divide-line overflow-hidden rounded-2xl border border-line bg-panel","settings.row":"flex flex-wrap items-center justify-between gap-4 p-4","settings.rowTitle":"text-sm font-medium text-ink","settings.rowDesc":"mt-0.5 text-xs leading-5 break-words text-dim","status.base":"inline-flex shrink-0 items-center gap-1.5 rounded-full px-2 py-1 text-[11px] leading-none font-medium","status.success":"bg-success/10 text-success","status.warning":"bg-warning/10 text-warning","status.danger":"bg-danger/10 text-danger","status.neutral":"bg-raised text-dim","callout.base":"flex items-start gap-2.5 rounded-xl border px-3.5 py-2.5 text-[13.5px] leading-5","callout.info":"border-line bg-raised/40 text-dim","callout.danger":"border-danger/25 bg-danger/6 text-danger","chat.banner":"flex shrink-0 flex-wrap items-center justify-between gap-2 border-b border-line bg-raised/45 px-4 py-2 text-xs text-dim","chat.dockBanner":"flex shrink-0 flex-wrap items-center justify-between gap-2 rounded-[20px] border border-line bg-raised/55 px-4 py-3 text-xs text-dim","chat.userBubble":"rounded-[20px] rounded-br-md bg-bubble px-4 py-2.5 text-[14.5px] leading-[1.6] text-ink break-words whitespace-pre-wrap","chat.attachmentCard":"flex h-8 items-center gap-1.5 rounded-xl border border-line bg-panel px-2.5 text-xs text-dim","chat.prose":"font-serif text-[14.5px] leading-[1.78] tracking-[0.005em] break-words text-ink/84","chat.metaBadge":"inline-flex items-center gap-1 rounded-md border border-line/60 bg-raised/60 px-1.5 py-0.5","chat.stepRow":"group/collapsible -mx-2 flex w-[calc(100%+1rem)] items-center gap-2 rounded-lg px-2 py-1.5","chat.timelineRow":"group/collapsible -mx-2 flex w-[calc(100%+1rem)] items-center gap-2 rounded-lg px-2 py-1","chat.thinkingBody":"mt-1.5 mb-2.5 font-serif text-[13.5px] leading-[1.65] text-dim italic","chat.toolOutput":"max-h-80 overflow-auto px-4 py-3 font-mono text-[12.5px] leading-[1.65] whitespace-pre-wrap break-words","chat.diffAdd":"bg-success/10 text-success","chat.diffRemove":"bg-danger/9 text-danger","chat.foldPill":"group/fold flex cursor-pointer select-none items-center gap-2 rounded-full border border-line/70 bg-panel/90 px-3.5 py-1 text-xs text-faint","chat.scrollBottomBtn":"flex h-8 items-center gap-1.5 rounded-full border border-line bg-panel/95 px-3 text-xs font-medium text-dim shadow-float","search.highlight":"rounded-sm bg-accent-soft px-0.5 font-medium text-ink","search.filterChip":"inline-flex h-6 items-center gap-1 rounded-md border border-line bg-panel px-2 text-xs text-dim","search.filterChipActive":"inline-flex h-6 items-center gap-1 rounded-md border border-accent/35 bg-accent-soft pl-2 pr-1 text-xs font-medium text-accent","composer.box":"group/composer relative min-w-0 rounded-[20px] border border-line bg-panel","composer.input":"relative block min-h-13 w-full resize-none bg-transparent px-4 pt-3.5 pb-1.5 text-[15px] leading-6","composer.attachment":"group/att flex h-9 items-center gap-2 rounded-xl border border-line bg-raised/60 pr-1.5 pl-2.5 text-xs","sidebar.shell":"flex h-full flex-col bg-sidebar","sidebar.drawer":"fixed inset-y-0 left-0 z-0 flex w-[min(86vw,24rem)] flex-col bg-sidebar outline-none","sidebar.rightShell":"flex h-full w-full flex-col border-l border-line bg-sidebar","sidebar.rightDrawer":"fixed inset-y-0 right-0 z-50 flex w-[min(24rem,90vw)] flex-col border-l border-line bg-sidebar shadow-float outline-none","sidebar.navItem":"group flex h-9 w-full items-center gap-2.5 rounded-lg px-2 text-left text-sm select-none","sidebar.sectionTitle":"flex-1 text-xs font-medium text-faint","sidebar.hoverPill":"pointer-events-none absolute top-0 left-0 rounded-lg bg-raised/65 opacity-0","sidebar.activePill":"pointer-events-none absolute top-0 left-0 rounded-lg bg-raised opacity-0","markdown.p":"my-4 first:mt-0 last:mb-0","markdown.strong":"font-semibold text-ink","markdown.a":"font-medium text-accent underline","markdown.fileChip":"inline-flex items-baseline gap-1 rounded-md bg-raised/85 px-[0.42em] py-[0.08em] font-mono","markdown.h1":"mt-6 mb-2.5 text-[1.28em] leading-snug font-semibold text-ink first:mt-0","markdown.h2":"mt-6 mb-2.5 text-[1.16em] leading-snug font-semibold text-ink first:mt-0","markdown.h3":"mt-5.5 mb-2 text-[1.06em] font-semibold text-ink first:mt-0","markdown.h4":"mt-4.5 mb-1.5 font-semibold text-ink first:mt-0","markdown.ul":"mt-1.5 mb-5 list-disc pl-[1.5em] marker:text-faint first:mt-0 last:mb-0","markdown.ol":"mt-1.5 mb-5 list-decimal pl-[1.6em] marker:text-[0.9em] marker:text-faint first:mt-0 last:mb-0","markdown.li":"my-2 pl-1","markdown.blockquote":"my-3.5 border-l-[3px] border-line-strong pl-3.5 text-dim italic","markdown.hr":"my-5 border-line","markdown.inlineCode":"mx-[0.18em] rounded-md bg-raised/85 px-[0.38em] py-[0.12em] font-mono text-[0.84em] text-ink/95 break-words","markdown.details":"my-3.5 overflow-hidden rounded-xl border border-line bg-raised/25 not-italic first:mt-0 last:mb-0","markdown.detailsTrigger":"group/collapsible flex w-full cursor-pointer items-center gap-2 px-3.5 py-2.5 text-left font-sans text-[13.5px] leading-snug font-medium text-ink","markdown.detailsContent":"border-t border-line px-3.5 py-3","markdown.imageButton":"my-3 block cursor-zoom-in overflow-hidden rounded-xl border border-line bg-panel text-left","markdown.tableWrap":"my-4 overflow-x-auto rounded-xl border border-line font-sans not-italic first:mt-0 last:mb-0","markdown.table":"w-full border-collapse text-[13.5px]","markdown.thead":"bg-raised/50","markdown.th":"min-w-24 border-b border-line px-3 py-2 text-left font-semibold","markdown.td":"min-w-24 border-t border-line px-3 py-2 align-top [&_code]:wrap-anywhere"},Ow={themeID:"basalt",preference:"light",resolved:"light",tokens:Bw,recipes:KS};function Gw({loading:t,disabled:e,size:o,variant:s,...n}){return C("button",{type:"button",...n,disabled:e||t,"aria-busy":t||void 0})}var QS={Button:Gw,Panel:({header:t,actions:e,children:o,...s})=>C("div",s,t,e,o),PageLayout:({title:t,description:e,actions:o,children:s,"aria-label":n,className:l})=>C("section",{"aria-label":n,className:l},C("header",null,C("h1",null,t),o,e&&C("p",null,e)),s),StatusChip:({children:t,title:e})=>C("span",{title:e},t),Markdown:({text:t})=>C("div",null,t),Form:(t)=>C("form",t),FormError:({children:t})=>C("p",{role:"alert"},t),Switch:({checked:t,onCheckedChange:e,label:o,...s})=>C("button",{...s,type:"button",role:"switch","aria-checked":t,onClick:()=>e(!t)},o),Select:({groups:t,onValueChange:e,placeholder:o,...s})=>C("select",{...s,onChange:(n)=>e(n.currentTarget.value)},o&&C("option",{value:""},o),t.map((n,l)=>C("optgroup",{key:l,label:n.label??""},n.options.map((a)=>C("option",{key:a.value,value:a.value},a.label))))),Input:(t)=>C("input",t),Textarea:(t)=>C("textarea",t),Code:({code:t,lang:e,className:o})=>C("pre",{className:o,"data-lang":e},C("code",null,t)),CopyButton:({text:t,label:e})=>C("button",{type:"button","aria-label":e??"\u590D\u5236",onClick:()=>void globalThis.navigator?.clipboard?.writeText(typeof t==="function"?t():t)}),useColorScheme:()=>"light",useTheme:()=>Ow,style:(t,...e)=>[KS[t]??t,...e].filter(Boolean).join(" "),cn:(...t)=>t.filter(Boolean).join(" ")},jS=new Proxy(QS,{get(t,e){if(Object.hasOwn(t,e))return Reflect.get(t,e);throw Error(`ui_test does not provide UI capability ${String(e)}; use supported native controls for structural tests and a browser for this capability`)}}),Xd={react:ur,"react-dom":Vr,"react/jsx-runtime":kg,"react/jsx-dev-runtime":Lg,"@basalt/plugin/web":$d,"@basalt/ui":QS};var qS=Promise.resolve();async function Uw(){let t=qS,e=()=>{};return qS=new Promise((o)=>{e=o}),await t,e}function Hw(t){return{window:t,document:t.document,navigator:t.navigator,HTMLElement:t.HTMLElement,HTMLInputElement:t.HTMLInputElement,HTMLTextAreaElement:t.HTMLTextAreaElement,Node:t.Node,Event:t.Event,MouseEvent:t.MouseEvent,getComputedStyle:t.getComputedStyle.bind(t)}}async function Ww(t,e){let o=await Bun.build({entrypoints:["basalt-ui-entry"],target:"browser",format:"esm",throw:!1,plugins:[{name:"basalt-ui-bridge",setup(n){n.onResolve({filter:/.*/},({path:l})=>{if(l==="basalt-ui-entry")return{path:l,namespace:"test-entry"};if(Object.hasOwn(Xd,l))return{path:l,namespace:"test-bridge"};throw Error(`Unsupported ui_test import: ${l}`)}),n.onLoad({filter:/.*/,namespace:"test-entry"},()=>({contents:t,loader:"js"})),n.onLoad({filter:/.*/,namespace:"test-bridge"},({path:l})=>({loader:"js",contents:Object.keys(Xd[l]??{}).map((a,y)=>{let u=`globalThis[${JSON.stringify(e)}][${JSON.stringify(l)}][${JSON.stringify(a)}]`;return`const e${y}=${u};export {e${y} as ${a}};`}).join(`
226
+ `)}))}}]}),s=o.outputs[0];if(!o.success||!s)throw Error(o.logs.map((n)=>n.message).join("; ")||"UI bridge build failed");return s.text()}function _w(t,e){if(!(typeof t==="object"&&t!==null&&("id"in t)&&t.id===e&&("apiVersion"in t)&&t.apiVersion===1))throw Error("Web module must export default with matching id and apiVersion: 1")}async function Mg(t,e,o){let s=new xh({settings:{disableJavaScriptEvaluation:!0,disableJavaScriptFileLoading:!0,disableCSSFileLoading:!0,enableFileSystemHttpRequests:!1}}),n=await Uw(),l=`__basalt_ui_${crypto.randomUUID().replaceAll("-","")}`,a={...Hw(s),[l]:Xd},y=new Map(Object.keys(a).map((c)=>[c,Object.getOwnPropertyDescriptor(globalThis,c)])),u;try{for(let[d,g]of Object.entries(a))Object.defineProperty(globalThis,d,{configurable:!0,writable:!0,value:g});u=URL.createObjectURL(new Blob([await Ww(t,l)],{type:"text/javascript"})),An({type:"importing"});let c=await import(u);return An({type:"imported"}),_w(c.default,e),await o(c.default,s)}finally{try{await s.happyDOM.close()}finally{if(u)URL.revokeObjectURL(u);for(let[c,d]of y)if(d)Object.defineProperty(globalThis,c,d);else Reflect.deleteProperty(globalThis,c);n()}}}var Yw=10,$S=1000,XS=200,Kw="button,[role=button]";async function zS(t,e,o,s){let n=Date.now()+e;while(!t()){if(Date.now()>=n)throw Error(o);await Bun.sleep(Yw),await s.settle()}}function Qw(t,e,o){if(t.disabled||t.readOnly)throw Error("Control is not editable");let s=t.tagName==="TEXTAREA"?o.HTMLTextAreaElement.prototype:o.HTMLInputElement.prototype;Object.getOwnPropertyDescriptor(s,"value")?.set?.call(t,e),mt(()=>{t.dispatchEvent(new o.Event("input",{bubbles:!0})),t.dispatchEvent(new o.Event("change",{bubbles:!0}))})}async function jw(t,e){let{inspect:o,calls:s,window:n}=e;if("click"in t){let l=typeof t.click==="string"?o.findByName(Kw,t.click):o.selectOne(t.click.selector);if(o.isDisabled(l))throw Error("Control is disabled");mt(()=>l.click())}else if("type"in t)Qw(o.findByName("input,textarea",t.type.label),t.type.text,n);else if("waitText"in t){let{waitText:l}=t;await zS(()=>o.snapshot(void 0,!1).text.includes(l),t.timeoutMs??$S,`Timed out waiting for ${JSON.stringify(l)}`,e)}else if("waitSelector"in t){let{waitSelector:l}=t;await zS(()=>o.anyVisible(l),t.timeoutMs??$S,`Timed out waiting for selector ${l}`,e)}else if("expectCount"in t){let{selector:l,n:a}=t.expectCount,y=o.count(l);if(!Number.isInteger(a)||a<0||y!==a)throw Error(`Expected ${a} elements, got ${y}`)}else if("snapshot"in t){let l=t.snapshot.depth??10;if(!Number.isInteger(l)||l<0||l>XS)throw Error(`snapshot depth must be 0\u2013${XS}`);return o.outline(o.selectOne(t.snapshot.selector),l)}else if("expectCalls"in t){let{onOpen:l,onClose:a}=t.expectCalls;if(l&&JSON.stringify(l)!==JSON.stringify(s.onOpen))throw Error(`onOpen calls differ: ${JSON.stringify(s.onOpen)}`);if(a!==void 0&&a!==s.onClose)throw Error(`Expected ${a} onClose calls, got ${s.onClose}`)}else if("expectText"in t){let l=t.within?o.selectOne(t.within):void 0;if(!o.snapshot(l,!1).text.includes(t.expectText))throw Error(`Missing text: ${t.expectText}`)}else if("expectValue"in t){let l=o.findByName("input,textarea,select",t.expectValue.label);if(l.value!==t.expectValue.value)throw Error(`Expected value ${JSON.stringify(t.expectValue.value)}, got ${JSON.stringify(l.value)}`)}else throw Error("Unknown UI step")}async function JS(t,e){let o=[];for(let s of t)try{let n=await jw(s,e);await e.settle(),o.push({step:s,ok:!0,snapshot:e.inspect.snapshot(),outline:n})}catch(n){o.push({step:s,ok:!1,snapshot:e.inspect.snapshot(),error:n instanceof Error?n.message:String(n)});break}return o}var qw=()=>({id:"ui-test",title:"",projectID:null,model:"",created:0,updated:0,status:"idle",todos:[],parentID:null,forkThroughSeq:null,kind:"main",archivedAt:null}),ZS=["page","tab","card","sidebar"],tf=(t)=>[t.slot,t.view,t.codeBlock].filter(Boolean).length;async function ef(t,e){if(e.codeBlock){let n=e.codeBlock.toLowerCase(),l=Object.entries(t.codeBlocks??{}).find(([a])=>a.toLowerCase()===n)?.[1];if(!l)throw Error(`Unknown code block: ${e.codeBlock}`);return{view:void 0,codeBlock:n,component:(await l.load()).default}}let o=e.view?t.views?.[e.view]:void 0;if(e.view&&!o)throw Error(`Unknown view: ${e.view}`);if(o&&(!ZS.includes(o.kind)||e.kind&&e.kind!==o.kind))throw Error(`View kind mismatch for ${e.view}: expected ${e.kind??ZS.join("/")}, got ${o.kind}`);let s=o?(await o.load()).default:t.slots?.[e.slot??""];if(!s)throw Error(e.view?`Missing component for view: ${e.view}`:`Unknown slot: ${e.slot}`);return{view:o,codeBlock:void 0,component:s}}function $w(t,e,o,s,n){let l=(y)=>n.onOpen.push(y),a=()=>{n.onClose++};switch(t.kind){case"page":return C(e,{connection:s,onOpen:l});case"tab":return C(e,{connection:s,onClose:a});case"card":return C(e,{connection:s,onOpen:l,sessionID:typeof o.props?.sessionID==="string"?o.props.sessionID:"ui-test",payload:o.props?.payload});case"sidebar":return C(e,{session:qw(),entries:[],...o.props,connection:s})}}function rf(t,e,o,s){return function(){let[l,a]=jr(typeof e.context?.text==="string"?e.context.text:""),[y,u]=jr(Array.isArray(e.context?.attachments)?e.context.attachments:[]),c={disabled:!1,busy:!1,draftKey:"ui-test",...e.context,text:l,setText:a,attachments:y,setAttachments:u},d=C("textarea",{"aria-label":"__basalt_host_draft__",value:l,onInput:(f)=>{let E=Reflect.get(f.currentTarget,"value");if(typeof E==="string")a(E)}}),g=t.view?[$w(t.view,t.component,e,o,s)]:t.codeBlock?[C(t.component,{code:typeof e.props?.code==="string"?e.props.code:"",lang:t.codeBlock,streaming:e.props?.streaming===!0})]:[d,C(t.component,{context:c,connection:o})];return C(qd.Provider,{value:jS},...g)}}var of=1e4;function Xw(t){let e=`ui_test requires id, exactly one of slot, view or codeBlock, and at most ${Dn} steps`;if(!t.id||tf(t)!==1||!Array.isArray(t.steps))throw Error(e);if(t.steps.length>Dn)throw Error(e);for(let o of t.steps){if(!(("waitText"in o)||("waitSelector"in o)))continue;let s=o.timeoutMs??1000;if(!Number.isInteger(s)||s<1||s>cr)throw Error(`wait timeoutMs must be between 1 and ${cr}`)}for(let o of Object.values(t.mockRoutes??{})){let s=o.delayMs??0,n=Number.isInteger(o.status)&&o.status>=100&&o.status<=599,l=Number.isInteger(s)&&s>=0&&s<=of;if(!n||!l)throw Error(`mockRoutes requires HTTP status and delayMs between 0 and ${of}`)}}async function zw(t,e,o){return Xw(o),Mg(t,o.id,async(s,n)=>{if(e){let H=n.document.createElement("style");H.textContent=e,n.document.head.append(H)}let l=await ef(s,o),a={onOpen:[],onClose:0},y=new AbortController,u=Vg(o.mockRoutes,y.signal),c=rf(l,o,u,a),d=n.document.createElement("div");n.document.body.append(d);let g,{createRoot:f}=await import("./chunk-1zj3zvw5.js"),E=f(d,{onUncaughtError:(H)=>{g=H}}),R=async()=>{if(await Bun.sleep(0),mt(()=>{}),g)throw g};try{mt(()=>E.render(C(c))),await R();let H=Dg(d,n),pt=await JS(o.steps,{window:n,inspect:H,calls:a,settle:R});return{ok:pt.every((gt)=>gt.ok),steps:pt,calls:a}}finally{mt(()=>E.unmount()),y.abort()}})}function Jw(t,e){return Mg(t,e,async(o)=>{let s=o.pageNav?.viewID??"page";return{slots:Object.keys(o.slots??{}),views:Object.keys(o.views??{}),codeBlocks:Object.keys(o.codeBlocks??{}).map((n)=>n.toLowerCase()),pageNav:o.pageNav?{viewID:s,kind:o.views?.[s]?.kind}:void 0,themes:Array.isArray(o.themes)?o.themes.map((n)=>n&&typeof n==="object"?n.id:void 0).filter((n)=>typeof n==="string"&&n.length>0):void 0}})}globalThis.onmessage=async(t)=>{let e=t.data;if(e.type==="response")return Fg(e);try{let o=e.input?await zw(e.source,e.css,e.input):await Jw(e.source,e.id);An({type:"done",result:o})}catch(o){An({type:"error",error:o instanceof Error?o.message:String(o)})}};