@kyro-cms/core 0.12.71 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/README.md +6 -0
  2. package/dist/{WebhookService-DQyM9fVo.d.ts → WebhookService-BLi5Rz2m.d.ts} +1 -1
  3. package/dist/{WebhookService-bo1NrgBW.d.cts → WebhookService-BcuD8tnn.d.cts} +1 -1
  4. package/dist/WebhookService-D5PSI5t6.d.cts +143 -0
  5. package/dist/WebhookService-DPCCn_12.d.ts +143 -0
  6. package/dist/WebhookService-Dncnbgm9.d.cts +143 -0
  7. package/dist/WebhookService-UY5p89Bj.d.ts +143 -0
  8. package/dist/WebhookService-YZXBCRXA.d.ts +143 -0
  9. package/dist/WebhookService-zrDmAx7L.d.cts +143 -0
  10. package/dist/api-handler-graphql.cjs +1 -1
  11. package/dist/api-handler-graphql.js +1 -1
  12. package/dist/api-handler-trpc.cjs +1 -1
  13. package/dist/api-handler-trpc.js +1 -1
  14. package/dist/api-handler.cjs +1 -1
  15. package/dist/api-handler.js +1 -1
  16. package/dist/{base-urWvrsX8.d.cts → base-B--L0lCn.d.cts} +1 -1
  17. package/dist/base-BVoDPNjJ.d.cts +218 -0
  18. package/dist/base-CAb9EYQs.d.ts +218 -0
  19. package/dist/base-CyG7aF1e.d.cts +218 -0
  20. package/dist/{base-BcfNgOqZ.d.ts → base-DOImeJ-F.d.ts} +1 -1
  21. package/dist/base-DbnwE42-.d.cts +218 -0
  22. package/dist/base-NyiSsD-n.d.ts +218 -0
  23. package/dist/base-xflndGDO.d.ts +218 -0
  24. package/dist/bootstrap-QQ6D3OYG.js +1 -0
  25. package/dist/bootstrap-QVKSKXJF.cjs +1 -0
  26. package/dist/bootstrap-RILR44UM.cjs +1 -0
  27. package/dist/bootstrap-ZRRUPRUR.js +1 -0
  28. package/dist/chunk-262YP5XA.cjs +1 -0
  29. package/dist/chunk-2FSOHXOU.cjs +56 -0
  30. package/dist/chunk-2OS5Y4LE.cjs +1 -0
  31. package/dist/chunk-2PXXQKN3.cjs +3 -0
  32. package/dist/{chunk-K6ZW5M6S.cjs → chunk-355R4LS5.cjs} +3 -3
  33. package/dist/chunk-35IVNLMA.js +122 -0
  34. package/dist/{chunk-FSWDDVLA.js → chunk-3GXLOYM3.js} +1 -1
  35. package/dist/chunk-3KZXF4US.js +2 -0
  36. package/dist/{chunk-H7PC2ENZ.cjs → chunk-3LAWUINR.cjs} +1 -1
  37. package/dist/chunk-3O3AVMWM.cjs +1 -0
  38. package/dist/chunk-3U6MKWET.cjs +120 -0
  39. package/dist/chunk-4BMWWGJN.js +384 -0
  40. package/dist/chunk-5A7E7N4B.cjs +431 -0
  41. package/dist/chunk-6DD4J7LI.js +2 -0
  42. package/dist/chunk-6GGPY7U2.js +4 -0
  43. package/dist/chunk-6MNLRAKM.cjs +121 -0
  44. package/dist/chunk-6NBZDW53.js +133 -0
  45. package/dist/{chunk-2HATK4C5.js → chunk-73Y63IPP.js} +4 -4
  46. package/dist/chunk-7K6ZUNJM.js +4 -0
  47. package/dist/chunk-7NKNSRCB.cjs +448 -0
  48. package/dist/chunk-A3IOQOV6.js +2 -0
  49. package/dist/chunk-A3XVL6ED.cjs +3 -0
  50. package/dist/{chunk-LKQHIOPW.cjs → chunk-APDQ6ZTG.cjs} +1 -1
  51. package/dist/chunk-ATI2UZ7U.js +2 -0
  52. package/dist/chunk-B4AC23SG.js +122 -0
  53. package/dist/chunk-BD6XHMMM.cjs +2 -0
  54. package/dist/chunk-CH4TZZI5.js +449 -0
  55. package/dist/{chunk-26KFM3P6.js → chunk-CNHUCCQJ.js} +1 -1
  56. package/dist/chunk-CRP6PSCE.js +2 -0
  57. package/dist/chunk-DI6TCZSE.js +122 -0
  58. package/dist/chunk-DORUYZQV.cjs +1 -0
  59. package/dist/chunk-EFKEVWAD.js +4 -0
  60. package/dist/chunk-EI7FRSNY.js +57 -0
  61. package/dist/chunk-EON4XLKQ.cjs +1 -0
  62. package/dist/chunk-EUQAOYEO.cjs +121 -0
  63. package/dist/chunk-EVAUBT7H.js +57 -0
  64. package/dist/chunk-EYHD7HZE.cjs +1 -0
  65. package/dist/chunk-EYYIPA5N.js +432 -0
  66. package/dist/chunk-F2O4QO5N.cjs +383 -0
  67. package/dist/chunk-FBWLSWZ4.js +122 -0
  68. package/dist/chunk-FGN6IMPY.cjs +3 -0
  69. package/dist/chunk-FK2BG4HU.js +3 -0
  70. package/dist/chunk-GWIZT2P5.js +57 -0
  71. package/dist/chunk-H3FJ54KB.cjs +121 -0
  72. package/dist/chunk-HY3EAWB2.js +4 -0
  73. package/dist/chunk-I6UJVO2P.js +57 -0
  74. package/dist/chunk-IQSF6XRV.js +57 -0
  75. package/dist/chunk-IXGDTAES.js +4 -0
  76. package/dist/chunk-JA44K75G.js +2 -0
  77. package/dist/chunk-K5XGP57D.cjs +19 -0
  78. package/dist/chunk-KEITOXIP.js +2 -0
  79. package/dist/chunk-LPFRMQFQ.js +121 -0
  80. package/dist/chunk-LYU44UNN.cjs +56 -0
  81. package/dist/chunk-MDLJTZLV.cjs +1 -0
  82. package/dist/chunk-MJAODEFC.cjs +121 -0
  83. package/dist/chunk-MYHNTJLR.cjs +56 -0
  84. package/dist/chunk-N2YHO2WI.cjs +3 -0
  85. package/dist/chunk-N4FXLQE3.cjs +132 -0
  86. package/dist/chunk-NPBXLPOP.js +3 -0
  87. package/dist/chunk-ON5XJEPO.cjs +3 -0
  88. package/dist/chunk-OT2Z4XBD.cjs +1 -0
  89. package/dist/chunk-PFTBTWSC.cjs +1 -0
  90. package/dist/chunk-PTPVFLET.js +20 -0
  91. package/dist/chunk-PZDLPRJF.js +4 -0
  92. package/dist/chunk-Q5TFO66G.cjs +1 -0
  93. package/dist/chunk-QUTYCUST.js +4 -0
  94. package/dist/chunk-REKKBAQX.cjs +56 -0
  95. package/dist/chunk-REQ622YC.js +3 -0
  96. package/dist/chunk-RTNQP6BV.js +2 -0
  97. package/dist/chunk-RUJW47ZJ.js +2 -0
  98. package/dist/chunk-RXYCFZJC.cjs +121 -0
  99. package/dist/chunk-RYHOWZLK.js +2 -0
  100. package/dist/chunk-S2MZNEBQ.cjs +1 -0
  101. package/dist/chunk-S73YERS2.js +57 -0
  102. package/dist/chunk-SBNMXQNO.cjs +2 -0
  103. package/dist/chunk-T3DJ3UTP.cjs +121 -0
  104. package/dist/chunk-TJZO7ZSX.cjs +3 -0
  105. package/dist/chunk-TKUNRCRH.js +4 -0
  106. package/dist/chunk-TQLCOMKC.js +4 -0
  107. package/dist/chunk-TRXYDWGE.cjs +1 -0
  108. package/dist/chunk-TS55CUNJ.js +57 -0
  109. package/dist/chunk-UFBJ3WOZ.js +2 -0
  110. package/dist/chunk-UQRVQUVR.js +2 -0
  111. package/dist/chunk-UW5W35NP.js +122 -0
  112. package/dist/chunk-VI7WCO2J.cjs +3 -0
  113. package/dist/chunk-W2GPP6RB.js +122 -0
  114. package/dist/chunk-WHOA7YJU.cjs +1 -0
  115. package/dist/chunk-WNRUPL26.js +2 -0
  116. package/dist/chunk-WXT2XW7T.js +13 -0
  117. package/dist/chunk-XFYSADHV.cjs +2 -0
  118. package/dist/chunk-XIAJQLGS.js +2 -0
  119. package/dist/chunk-XK6UB77Q.js +4 -0
  120. package/dist/chunk-Y2VHO66Q.cjs +3 -0
  121. package/dist/chunk-Y5O2OD7J.cjs +3 -0
  122. package/dist/chunk-YARB43JG.cjs +56 -0
  123. package/dist/chunk-YLCEMVYY.cjs +56 -0
  124. package/dist/chunk-YSOM57GK.cjs +3 -0
  125. package/dist/chunk-Z3UVDGYS.cjs +56 -0
  126. package/dist/chunk-ZTLGK6R4.cjs +12 -0
  127. package/dist/chunk-ZUBJ6RLQ.cjs +1 -0
  128. package/dist/cli/index.cjs +1 -1
  129. package/dist/cli/index.js +1 -1
  130. package/dist/client.cjs +8 -8
  131. package/dist/client.d.cts +1248 -0
  132. package/dist/client.d.ts +1248 -0
  133. package/dist/client.js +8 -8
  134. package/dist/drizzle/index.cjs +1 -1
  135. package/dist/drizzle/index.d.cts +3 -3
  136. package/dist/drizzle/index.d.ts +3 -3
  137. package/dist/drizzle/index.js +1 -1
  138. package/dist/fields/index.cjs +1 -1
  139. package/dist/fields/index.d.cts +2 -2
  140. package/dist/fields/index.d.ts +2 -2
  141. package/dist/fields/index.js +1 -1
  142. package/dist/graphql/index.d.cts +3 -3
  143. package/dist/graphql/index.d.ts +3 -3
  144. package/dist/{index-d1m_oup7.d.cts → index-B9BFNOHd.d.cts} +1 -1
  145. package/dist/index-BMcYFpTv.d.cts +105 -0
  146. package/dist/index-BttsFZDa.d.ts +105 -0
  147. package/dist/index-CxA9uOv0.d.ts +105 -0
  148. package/dist/{index-4cH-BjtP.d.ts → index-D6AXbuPI.d.ts} +1 -1
  149. package/dist/index-DF0KDBaM.d.cts +105 -0
  150. package/dist/index-DG4Xu7gA.d.cts +105 -0
  151. package/dist/index-eHex8Iwj.d.ts +105 -0
  152. package/dist/index.cjs +32 -32
  153. package/dist/index.d.cts +73 -11
  154. package/dist/index.d.ts +73 -11
  155. package/dist/index.js +32 -32
  156. package/dist/lib-A2D63VXD.cjs +1 -0
  157. package/dist/lib-JQD2JAOO.js +2 -0
  158. package/dist/local-KR3AIGVA.cjs +1 -0
  159. package/dist/local-T7GISZBL.js +1 -0
  160. package/dist/mongo-auth-adapter-GR2CFFEA.js +1 -0
  161. package/dist/mongo-auth-adapter-UOO2LZUJ.cjs +1 -0
  162. package/dist/mongodb/index.cjs +1 -1
  163. package/dist/mongodb/index.d.cts +4 -3
  164. package/dist/mongodb/index.d.ts +4 -3
  165. package/dist/mongodb/index.js +1 -1
  166. package/dist/nodemailer-transport-3VWVUBM5.cjs +1 -0
  167. package/dist/nodemailer-transport-7RHATUKL.js +1 -0
  168. package/dist/nodemailer-transport-CHO2WKIY.js +1 -0
  169. package/dist/nodemailer-transport-ED2IXNGW.cjs +1 -0
  170. package/dist/rest/index.cjs +1 -1
  171. package/dist/rest/index.d.cts +4 -4
  172. package/dist/rest/index.d.ts +4 -4
  173. package/dist/rest/index.js +1 -1
  174. package/dist/templates/index.cjs +1 -1
  175. package/dist/templates/index.d.cts +2 -2
  176. package/dist/templates/index.d.ts +2 -2
  177. package/dist/templates/index.js +1 -1
  178. package/dist/trpc/index.cjs +1 -1
  179. package/dist/trpc/index.d.cts +3 -3
  180. package/dist/trpc/index.d.ts +3 -3
  181. package/dist/trpc/index.js +1 -1
  182. package/dist/types-B5Qz1svz.d.cts +822 -0
  183. package/dist/types-Bii0bhUV.d.cts +329 -0
  184. package/dist/types-Bii0bhUV.d.ts +329 -0
  185. package/dist/{types-BADIMVGF.d.ts → types-Bt2_ycUO.d.ts} +36 -1
  186. package/dist/types-C4wXHImf.d.ts +822 -0
  187. package/dist/types-DCWgPFmi.d.cts +822 -0
  188. package/dist/types-DROqAsr0.d.cts +330 -0
  189. package/dist/types-DROqAsr0.d.ts +330 -0
  190. package/dist/{types-YAVR0H9Z.d.cts → types-DsF64Wrc.d.cts} +36 -1
  191. package/dist/types-ZrjEVWfi.d.ts +811 -0
  192. package/dist/types-dEy5JxvN.d.ts +822 -0
  193. package/dist/types-tVJc9YbX.d.cts +811 -0
  194. package/dist/ws/index.cjs +1 -1
  195. package/dist/ws/index.d.cts +121 -1
  196. package/dist/ws/index.d.ts +121 -1
  197. package/dist/ws/index.js +1 -1
  198. package/package.json +2 -2
  199. package/dist/chunk-5M3FKE2V.js +0 -2
  200. package/dist/chunk-WCFHS7EZ.cjs +0 -1
@@ -0,0 +1,384 @@
1
+ import {c as c$1}from'./chunk-7MNDQU6K.js';import {c,g,e}from'./chunk-Y2YAKDEQ.js';import {URL as URL$1,URLSearchParams as URLSearchParams$1}from'url';import Ip from'fs';import Rp from'path';import SR,{webcrypto}from'crypto';import {Buffer as Buffer$1,Blob}from'buffer';import {TextEncoder,TextDecoder as TextDecoder$1}from'util';import Fl from'stream';import {ReadableStream}from'stream/web';import Yx,{Script}from'vm';import {isIP}from'net';import BD from'http';import VD from'https';import Jp from'zlib';import sF from'child_process';import {PerformanceObserver,PerformanceEntry}from'perf_hooks';if (typeof window === "undefined") { const { createRequire } = await import(/* @vite-ignore */ 'module'); createRequire(import.meta.url); }
2
+ var vk=c((c6,Ek)=>{g();function bO(o){return o.toString("ascii",0,2)==="BM"}function gO(o){return {width:o.readUInt32LE(18),height:Math.abs(o.readInt32LE(22))}}Ek.exports={detect:bO,calculate:gO};});var wx=c((m6,kk)=>{g();var SO=1,PO=6,AO=16;function wO(o){var t;return o.readUInt16LE(0)!==0?false:(t=o.readUInt16LE(2),t===SO)}function Tk(o,t){var e=o.readUInt8(t);return e===0?256:e}function Ck(o,t){var e=PO+t*AO;return {width:Tk(o,e),height:Tk(o,e+1)}}function xO(o){var t=o.readUInt16LE(4),e=Ck(o,0),r;if(t===1)return e;for(e.images=[{width:e.width,height:e.height}],r=1;r<t;r+=1)e.images.push(Ck(o,r));return e}kk.exports={detect:wO,calculate:xO};});var Lk=c((y6,Nk)=>{g();var EO=2;function vO(o){var t;return o.readUInt16LE(0)!==0?false:(t=o.readUInt16LE(2),t===EO)}Nk.exports={detect:vO,calculate:wx().calculate};});var Ik=c((f6,Mk)=>{g();function TO(o){return o.readUInt32LE(0)===542327876}function CO(o){return {height:o.readUInt32LE(12),width:o.readUInt32LE(16)}}Mk.exports={detect:TO,calculate:CO};});var Dk=c((g6,Rk)=>{g();var kO=/^GIF8[79]a/;function NO(o){var t=o.toString("ascii",0,6);return kO.test(t)}function LO(o){return {width:o.readUInt16LE(6),height:o.readUInt16LE(8)}}Rk.exports={detect:NO,calculate:LO};});var Fk=c((P6,Ok)=>{g();function MO(o){var t=o.toString("hex",0,2);return t==="ffd8"}function IO(o,t){return {height:o.readUInt16BE(t),width:o.readUInt16BE(t+2)}}function RO(o,t){if(t>o.length)throw new TypeError("Corrupt JPG, exceeded buffer limits");if(o[t]!==255)throw new TypeError("Invalid JPG, marker table corrupted")}function DO(o){o=o.slice(4);for(var t,e;o.length;){if(t=o.readUInt16BE(0),RO(o,t),e=o[t+1],e===192||e===193||e===194)return IO(o,t+5);o=o.slice(t+2);}throw new TypeError("Invalid JPG, no size found")}Ok.exports={detect:MO,calculate:DO};});var Hk=c((w6,Vk)=>{g();var OO=`PNG\r
3
+ 
4
+ `,FO="IHDR",Bk="CgBI";function BO(o){if(OO===o.toString("ascii",1,8)){var t=o.toString("ascii",12,16);if(t===Bk&&(t=o.toString("ascii",28,32)),t!==FO)throw new TypeError("invalid png");return true}}function VO(o){return o.toString("ascii",12,16)===Bk?{width:o.readUInt32BE(32),height:o.readUInt32BE(36)}:{width:o.readUInt32BE(16),height:o.readUInt32BE(20)}}Vk.exports={detect:BO,calculate:VO};});var Uk=c((E6,Gk)=>{g();function HO(o){return o.toString("ascii",0,4)==="8BPS"}function GO(o){return {width:o.readUInt32BE(18),height:o.readUInt32BE(14)}}Gk.exports={detect:HO,calculate:GO};});var zk=c((T6,Wk)=>{g();var UO=/<svg[^>]+[^>]*>/;function WO(o){return UO.test(o)}var HS={root:/<svg\s[^>]+>/,width:/\bwidth=(['"])([^%]+?)\1/,height:/\bheight=(['"])([^%]+?)\1/,viewbox:/\bviewBox=(['"])(.+?)\1/};function zO(o){var t=o.split(" ");return {width:parseInt(t[2],10),height:parseInt(t[3],10)}}function _O(o){var t=o.match(HS.width),e=o.match(HS.height),r=o.match(HS.viewbox);return {width:t&&parseInt(t[2],10),height:e&&parseInt(e[2],10),viewbox:r&&zO(r[2])}}function $O(o){return {width:o.width,height:o.height}}function KO(o){var t=o.viewbox.width/o.viewbox.height;return o.width?{width:o.width,height:Math.floor(o.width/t)}:o.height?{width:Math.floor(o.height*t),height:o.height}:{width:o.viewbox.width,height:o.viewbox.height}}function jO(o){var t=o.toString("utf8").match(HS.root);if(t){var e=_O(t[0]);if(e.width&&e.height)return $O(e);if(e.viewbox)return KO(e)}throw new TypeError("invalid svg")}Wk.exports={detect:WO,calculate:jO};});var $k=c((k6,_k)=>{g();function qO(o){var t=o.toString("ascii",0,4)==="RIFF",e=o.toString("ascii",8,12)==="WEBP",r=o.toString("ascii",12,15)==="VP8";return t&&e&&r}function YO(o){var t=o.toString("ascii",12,16);if(o=o.slice(20,30),t==="VP8X"){var e=o[0],r=(e&192)===0,n=(e&1)===0;return r&&n?QO(o):false}if(t==="VP8 "&&o[0]!==47)return XO(o);var i=o.toString("hex",3,6);return t==="VP8L"&&i!=="9d012a"?JO(o):false}function QO(o){return {width:1+o.readUIntLE(4,3),height:1+o.readUIntLE(7,3)}}function JO(o){return {width:1+((o[2]&63)<<8|o[1]),height:1+((o[4]&15)<<10|o[3]<<2|(o[2]&192)>>6)}}function XO(o){return {width:o.readInt16LE(6)&16383,height:o.readInt16LE(8)&16383}}_k.exports={detect:qO,calculate:YO};});var xx=c((L6,Kk)=>{g();var ZO={bmp:vk(),cur:Lk(),dds:Ik(),gif:Dk(),ico:wx(),jpg:Fk(),png:Hk(),psd:Uk(),svg:zk(),webp:$k()};Kk.exports=ZO;});var Yk=c((I6,qk)=>{g();var jk=xx();qk.exports=function(o){var t,e;for(t in jk)if(e=jk[t].detect(o),e)return t};});var Qk=c((D6,vx)=>{g();var Ex=xx(),tF=Yk();function eF(o){var t=tF(o);if(t in Ex){var e=Ex[t].calculate(o);if(e!==false)return e.type=t,e}throw new TypeError("unsupported file type: "+t)}vx.exports=function(o){if(Buffer.isBuffer(o))return eF(o);throw new TypeError("expecting only a buffer as input")};vx.exports.types=Object.keys(Ex);});var Rf=c(wu=>{g();wu.removeLeadingAndTrailingHTTPWhitespace=o=>o.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");wu.removeTrailingHTTPWhitespace=o=>o.replace(/[ \t\n\r]+$/u,"");wu.isHTTPWhitespaceChar=o=>o===" "||o===" "||o===`
5
+ `||o==="\r";wu.solelyContainsHTTPTokenCodePoints=o=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(o);wu.soleyContainsHTTPQuotedStringTokenCodePoints=o=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(o);wu.asciiLowercase=o=>o.replace(/[A-Z]/ug,t=>t.toLowerCase());wu.collectAnHTTPQuotedString=(o,t)=>{let e="";for(t++;;){for(;t<o.length&&o[t]!=='"'&&o[t]!=="\\";)e+=o[t],++t;if(t>=o.length)break;let r=o[t];if(++t,r==="\\"){if(t>=o.length){e+="\\";break}e+=o[t],++t;}else break}return [e,t]};});var r0=c((jst,e0)=>{g();var{asciiLowercase:$S,solelyContainsHTTPTokenCodePoints:RF,soleyContainsHTTPQuotedStringTokenCodePoints:DF}=Rf();e0.exports=class{constructor(t){this._map=t;}get size(){return this._map.size}get(t){return t=$S(String(t)),this._map.get(t)}has(t){return t=$S(String(t)),this._map.has(t)}set(t,e){if(t=$S(String(t)),e=String(e),!RF(t))throw new Error(`Invalid MIME type parameter name "${t}": only HTTP token code points are valid.`);if(!DF(e))throw new Error(`Invalid MIME type parameter value "${e}": only HTTP quoted-string token code points are valid.`);return this._map.set(t,e)}clear(){this._map.clear();}delete(t){return t=$S(String(t)),this._map.delete(t)}forEach(t,e){this._map.forEach(t,e);}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}};});var i0=c((Yst,n0)=>{g();var{removeLeadingAndTrailingHTTPWhitespace:OF,removeTrailingHTTPWhitespace:o0,isHTTPWhitespaceChar:FF,solelyContainsHTTPTokenCodePoints:Vx,soleyContainsHTTPQuotedStringTokenCodePoints:BF,asciiLowercase:Hx,collectAnHTTPQuotedString:VF}=Rf();n0.exports=o=>{o=OF(o);let t=0,e="";for(;t<o.length&&o[t]!=="/";)e+=o[t],++t;if(e.length===0||!Vx(e)||t>=o.length)return null;++t;let r="";for(;t<o.length&&o[t]!==";";)r+=o[t],++t;if(r=o0(r),r.length===0||!Vx(r))return null;let n={type:Hx(e),subtype:Hx(r),parameters:new Map};for(;t<o.length;){for(++t;FF(o[t]);)++t;let i="";for(;t<o.length&&o[t]!==";"&&o[t]!=="=";)i+=o[t],++t;if(i=Hx(i),t<o.length){if(o[t]===";")continue;++t;}let s=null;if(o[t]==='"')for([s,t]=VF(o,t);t<o.length&&o[t]!==";";)++t;else {for(s="";t<o.length&&o[t]!==";";)s+=o[t],++t;if(s=o0(s),s==="")continue}i.length>0&&Vx(i)&&BF(s)&&!n.parameters.has(i)&&n.parameters.set(i,s);}return n};});var l0=c((Jst,s0)=>{g();var{solelyContainsHTTPTokenCodePoints:HF}=Rf();s0.exports=o=>{let t=`${o.type}/${o.subtype}`;if(o.parameters.size===0)return t;for(let[e,r]of o.parameters)t+=";",t+=e,t+="=",(!HF(r)||r.length===0)&&(r=r.replace(/(["\\])/ug,"\\$1"),r=`"${r}"`),t+=r;return t};});var p0=c((tlt,c0)=>{g();var GF=r0(),UF=i0(),WF=l0(),{asciiLowercase:a0,solelyContainsHTTPTokenCodePoints:u0}=Rf();c0.exports=class{constructor(t){t=String(t);let e=UF(t);if(e===null)throw new Error(`Could not parse MIME type string "${t}"`);this._type=e.type,this._subtype=e.subtype,this._parameters=new GF(e.parameters);}static parse(t){try{return new this(t)}catch{return null}}get essence(){return `${this.type}/${this.subtype}`}get type(){return this._type}set type(t){if(t=a0(String(t)),t.length===0)throw new Error("Invalid type: must be a non-empty string");if(!u0(t))throw new Error(`Invalid type ${t}: must contain only HTTP token code points`);this._type=t;}get subtype(){return this._subtype}set subtype(t){if(t=a0(String(t)),t.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!u0(t))throw new Error(`Invalid subtype ${t}: must contain only HTTP token code points`);this._subtype=t;}get parameters(){return this._parameters}toString(){return WF(this)}isJavaScript({prohibitParameters:t=false}={}){switch(this._type){case "text":switch(this._subtype){case "ecmascript":case "javascript":case "javascript1.0":case "javascript1.1":case "javascript1.2":case "javascript1.3":case "javascript1.4":case "javascript1.5":case "jscript":case "livescript":case "x-ecmascript":case "x-javascript":return !t||this._parameters.size===0;default:return false}case "application":switch(this._subtype){case "ecmascript":case "javascript":case "x-ecmascript":case "x-javascript":return !t||this._parameters.size===0;default:return false}default:return false}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}};});g();g();function A2(o){return o.type==="text"}function w2(o){return o.type==="number"}function x2(o){return o.type==="relationship"}function E2(o){return o.type==="array"}function v2(o){return o.type==="group"}function T2(o){return o.type==="blocks"}function C2(o){return o.type==="upload"}function k2(o){return o.type==="image"}function N2(o){return o.type==="richtext"}function L2(o){return o.type==="select"}function M2(o){return o.type==="row"||o.type==="collapsible"||o.type==="tabs"}function I2(o){return o.type==="icon"}function R2(o){return o.type==="embedding"}var RN=["text","number","checkbox","date","email","password","textarea","select","radio","color","icon"],DN=["richtext","json","code","upload","image","markdown","embedding"],ON=["relationship","array","group","blocks"],FN=["row","collapsible","tabs"],D2=[...RN,...DN,...ON,...FN];function O2(o,t,e){return {name:o,type:"relationship",relationTo:t,...e,required:e?.required??false}}g();g();g();g();g();g();g();function xo(o){this.content=o;}xo.prototype={constructor:xo,find:function(o){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===o)return t;return -1},get:function(o){var t=this.find(o);return t==-1?void 0:this.content[t+1]},update:function(o,t,e){var r=e&&e!=o?this.remove(e):this,n=r.find(o),i=r.content.slice();return n==-1?i.push(e||o,t):(i[n+1]=t,e&&(i[n]=e)),new xo(i)},remove:function(o){var t=this.find(o);if(t==-1)return this;var e=this.content.slice();return e.splice(t,2),new xo(e)},addToStart:function(o,t){return new xo([o,t].concat(this.remove(o).content))},addToEnd:function(o,t){var e=this.remove(o).content.slice();return e.push(o,t),new xo(e)},addBefore:function(o,t,e){var r=this.remove(t),n=r.content.slice(),i=r.find(o);return n.splice(i==-1?n.length:i,0,t,e),new xo(n)},forEach:function(o){for(var t=0;t<this.content.length;t+=2)o(this.content[t],this.content[t+1]);},prepend:function(o){return o=xo.from(o),o.size?new xo(o.content.concat(this.subtract(o).content)):this},append:function(o){return o=xo.from(o),o.size?new xo(this.subtract(o).content.concat(o.content)):this},subtract:function(o){var t=this;o=xo.from(o);for(var e=0;e<o.content.length;e+=2)t=t.remove(o.content[e]);return t},toObject:function(){var o={};return this.forEach(function(t,e){o[t]=e;}),o},get size(){return this.content.length>>1}};xo.from=function(o){if(o instanceof xo)return o;var t=[];if(o)for(var e in o)t.push(e,o[e]);return new xo(t)};var WP=xo;function iv(o,t,e){for(let r=0;;r++){if(r==o.childCount||r==t.childCount)return o.childCount==t.childCount?null:e;let n=o.child(r),i=t.child(r);if(n==i){e+=n.nodeSize;continue}if(!n.sameMarkup(i))return e;if(n.isText&&n.text!=i.text){let s=n.text,l=i.text,a=0;for(;s[a]==l[a];a++)e++;return a&&a<s.length&&a<l.length&&av(s.charCodeAt(a-1))&&lv(s.charCodeAt(a))&&e--,e}if(n.content.size||i.content.size){let s=iv(n.content,i.content,e+1);if(s!=null)return s}e+=n.nodeSize;}}function sv(o,t,e,r){for(let n=o.childCount,i=t.childCount;;){if(n==0||i==0)return n==i?null:{a:e,b:r};let s=o.child(--n),l=t.child(--i),a=s.nodeSize;if(s==l){e-=a,r-=a;continue}if(!s.sameMarkup(l))return {a:e,b:r};if(s.isText&&s.text!=l.text){let u=s.text,c=l.text,h=u.length,f=c.length;for(;h>0&&f>0&&u[h-1]==c[f-1];)h--,f--,e--,r--;return h&&f&&h<u.length&&av(u.charCodeAt(h-1))&&lv(u.charCodeAt(h))&&(e++,r++),{a:e,b:r}}if(s.content.size||l.content.size){let u=sv(s.content,l.content,e-1,r-1);if(u)return u}e-=a,r-=a;}}function lv(o){return o>=56320&&o<57344}function av(o){return o>=55296&&o<56320}var tt=class o{constructor(t,e){if(this.content=t,this.size=e||0,e==null)for(let r=0;r<t.length;r++)this.size+=t[r].nodeSize;}nodesBetween(t,e,r,n=0,i){for(let s=0,l=0;l<e;s++){let a=this.content[s],u=l+a.nodeSize;if(u>t&&r(a,n+l,i||null,s)!==false&&a.content.size){let c=l+1;a.nodesBetween(Math.max(0,t-c),Math.min(a.content.size,e-c),r,n+c);}l=u;}}descendants(t){this.nodesBetween(0,this.size,t);}textBetween(t,e,r,n){let i="",s=true;return this.nodesBetween(t,e,(l,a)=>{let u=l.isText?l.text.slice(Math.max(t,a)-a,e-a):l.isLeaf?n?typeof n=="function"?n(l):n:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&u||l.isTextblock)&&r&&(s?s=false:i+=r),i+=u;},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let e=this.lastChild,r=t.firstChild,n=this.content.slice(),i=0;for(e.isText&&e.sameMarkup(r)&&(n[n.length-1]=e.withText(e.text+r.text),i=1);i<t.content.length;i++)n.push(t.content[i]);return new o(n,this.size+t.size)}cut(t,e=this.size){if(t==0&&e==this.size)return this;let r=[],n=0;if(e>t)for(let i=0,s=0;s<e;i++){let l=this.content[i],a=s+l.nodeSize;a>t&&((s<t||a>e)&&(l.isText?l=l.cut(Math.max(0,t-s),Math.min(l.text.length,e-s)):l=l.cut(Math.max(0,t-s-1),Math.min(l.content.size,e-s-1))),r.push(l),n+=l.nodeSize),s=a;}return new o(r,n)}cutByIndex(t,e){return t==e?o.empty:t==0&&e==this.content.length?this:new o(this.content.slice(t,e))}replaceChild(t,e){let r=this.content[t];if(r==e)return this;let n=this.content.slice(),i=this.size+e.nodeSize-r.nodeSize;return n[t]=e,new o(n,i)}addToStart(t){return new o([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new o(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return false;for(let e=0;e<this.content.length;e++)if(!this.content[e].eq(t.content[e]))return false;return true}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(t){let e=this.content[t];if(!e)throw new RangeError("Index "+t+" out of range for "+this);return e}maybeChild(t){return this.content[t]||null}forEach(t){for(let e=0,r=0;e<this.content.length;e++){let n=this.content[e];t(n,r,e),r+=n.nodeSize;}}findDiffStart(t,e=0){return iv(this,t,e)}findDiffEnd(t,e=this.size,r=t.size){return sv(this,t,e,r)}findIndex(t){if(t==0)return pg(0,t);if(t==this.size)return pg(this.content.length,t);if(t>this.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let e=0,r=0;;e++){let n=this.child(e),i=r+n.nodeSize;if(i>=t)return i==t?pg(e+1,i):pg(e,r);r=i;}}toString(){return "<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,e){if(!e)return o.empty;if(!Array.isArray(e))throw new RangeError("Invalid input for Fragment.fromJSON");return o.fromArray(e.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return o.empty;let e,r=0;for(let n=0;n<t.length;n++){let i=t[n];r+=i.nodeSize,n&&i.isText&&t[n-1].sameMarkup(i)?(e||(e=t.slice(0,n)),e[e.length-1]=i.withText(e[e.length-1].text+i.text)):e&&e.push(i);}return new o(e||t,r)}static from(t){if(!t)return o.empty;if(t instanceof o)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new o([t],t.nodeSize);throw new RangeError("Can not convert "+t+" to a Fragment"+(t.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}};tt.empty=new tt([],0);var zP={index:0,offset:0};function pg(o,t){return zP.index=o,zP.offset=t,zP}function yg(o,t){if(o===t)return true;if(!(o&&typeof o=="object")||!(t&&typeof t=="object"))return false;let e=Array.isArray(o);if(Array.isArray(t)!=e)return false;if(e){if(o.length!=t.length)return false;for(let r=0;r<o.length;r++)if(!yg(o[r],t[r]))return false}else {for(let r in o)if(!(r in t)||!yg(o[r],t[r]))return false;for(let r in t)if(!(r in o))return false}return true}var Oe=class o{constructor(t,e){this.type=t,this.attrs=e;}addToSet(t){let e,r=false;for(let n=0;n<t.length;n++){let i=t[n];if(this.eq(i))return t;if(this.type.excludes(i.type))e||(e=t.slice(0,n));else {if(i.type.excludes(this.type))return t;!r&&i.type.rank>this.type.rank&&(e||(e=t.slice(0,n)),e.push(this),r=true),e&&e.push(i);}}return e||(e=t.slice()),r||e.push(this),e}removeFromSet(t){for(let e=0;e<t.length;e++)if(this.eq(t[e]))return t.slice(0,e).concat(t.slice(e+1));return t}isInSet(t){for(let e=0;e<t.length;e++)if(this.eq(t[e]))return true;return false}eq(t){return this==t||this.type==t.type&&yg(this.attrs,t.attrs)}toJSON(){let t={type:this.type.name};for(let e in this.attrs){t.attrs=this.attrs;break}return t}static fromJSON(t,e){if(!e)throw new RangeError("Invalid input for Mark.fromJSON");let r=t.marks[e.type];if(!r)throw new RangeError(`There is no mark type ${e.type} in this schema`);let n=r.create(e.attrs);return r.checkAttrs(n.attrs),n}static sameSet(t,e){if(t==e)return true;if(t.length!=e.length)return false;for(let r=0;r<t.length;r++)if(!t[r].eq(e[r]))return false;return true}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return o.none;if(t instanceof o)return [t];let e=t.slice();return e.sort((r,n)=>r.type.rank-n.type.rank),e}};Oe.none=[];var pa=class extends Error{},yt=class o{constructor(t,e,r){this.content=t,this.openStart=e,this.openEnd=r;}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,e){let r=cv(this.content,t+this.openStart,e,this.openStart+1,this.openEnd+1);return r&&new o(r,this.openStart,this.openEnd)}removeBetween(t,e){return new o(uv(this.content,t+this.openStart,e+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,e){if(!e)return o.empty;let r=e.openStart||0,n=e.openEnd||0;if(typeof r!="number"||typeof n!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new o(tt.fromJSON(t,e.content),r,n)}static maxOpen(t,e=true){let r=0,n=0;for(let i=t.firstChild;i&&!i.isLeaf&&(e||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=t.lastChild;i&&!i.isLeaf&&(e||!i.type.spec.isolating);i=i.lastChild)n++;return new o(t,r,n)}};yt.empty=new yt(tt.empty,0,0);function uv(o,t,e){let{index:r,offset:n}=o.findIndex(t),i=o.maybeChild(r),{index:s,offset:l}=o.findIndex(e);if(n==t||i.isText){if(l!=e&&!o.child(s).isText)throw new RangeError("Removing non-flat range");return o.cut(0,t).append(o.cut(e))}if(r!=s)throw new RangeError("Removing non-flat range");return o.replaceChild(r,i.copy(uv(i.content,t-n-1,e-n-1)))}function cv(o,t,e,r,n,i){let{index:s,offset:l}=o.findIndex(t),a=o.maybeChild(s);if(l==t||a.isText)return i&&r<=0&&n<=0&&!i.canReplace(s,s,e)?null:o.cut(0,t).append(e).append(o.cut(t));let u=cv(a.content,t-l-1,e,s==0?r-1:0,s==o.childCount-1?n-1:0,a);return u&&o.replaceChild(s,a.copy(u))}function BN(o,t,e){if(e.openStart>o.depth)throw new pa("Inserted content deeper than insertion position");if(o.depth-e.openStart!=t.depth-e.openEnd)throw new pa("Inconsistent open depths");return pv(o,t,e,0)}function pv(o,t,e,r){let n=o.index(r),i=o.node(r);if(n==t.index(r)&&r<o.depth-e.openStart){let s=pv(o,t,e,r+1);return i.copy(i.content.replaceChild(n,s))}else if(e.content.size)if(!e.openStart&&!e.openEnd&&o.depth==r&&t.depth==r){let s=o.parent,l=s.content;return Ru(s,l.cut(0,o.parentOffset).append(e.content).append(l.cut(t.parentOffset)))}else {let{start:s,end:l}=VN(e,o);return Ru(i,hv(o,s,l,t,r))}else return Ru(i,dg(o,t,r))}function mv(o,t){if(!t.type.compatibleContent(o.type))throw new pa("Cannot join "+t.type.name+" onto "+o.type.name)}function _P(o,t,e){let r=o.node(e);return mv(r,t.node(e)),r}function Iu(o,t){let e=t.length-1;e>=0&&o.isText&&o.sameMarkup(t[e])?t[e]=o.withText(t[e].text+o.text):t.push(o);}function Yh(o,t,e,r){let n=(t||o).node(e),i=0,s=t?t.index(e):n.childCount;o&&(i=o.index(e),o.depth>e?i++:o.textOffset&&(Iu(o.nodeAfter,r),i++));for(let l=i;l<s;l++)Iu(n.child(l),r);t&&t.depth==e&&t.textOffset&&Iu(t.nodeBefore,r);}function Ru(o,t){if(!o.type.validContent(t))throw new pa("Invalid content for node "+o.type.name);return o.copy(t)}function hv(o,t,e,r,n){let i=o.depth>n&&_P(o,t,n+1),s=r.depth>n&&_P(e,r,n+1),l=[];return Yh(null,o,n,l),i&&s&&t.index(n)==e.index(n)?(mv(i,s),Iu(Ru(i,hv(o,t,e,r,n+1)),l)):(i&&Iu(Ru(i,dg(o,t,n+1)),l),Yh(t,e,n,l),s&&Iu(Ru(s,dg(e,r,n+1)),l)),Yh(r,null,n,l),new tt(l)}function dg(o,t,e){let r=[];if(Yh(null,o,e,r),o.depth>e){let n=_P(o,t,e+1);Iu(Ru(n,dg(o,t,e+1)),r);}return Yh(t,null,e,r),new tt(r)}function VN(o,t){let e=t.depth-o.openStart,n=t.node(e).copy(o.content);for(let i=e-1;i>=0;i--)n=t.node(i).copy(tt.from(n));return {start:n.resolveNoCache(o.openStart+e),end:n.resolveNoCache(n.content.size-o.openEnd-e)}}var fg=class o{constructor(t,e,r){this.pos=t,this.path=e,this.parentOffset=r,this.depth=e.length/3-1;}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,e=this.index(this.depth);if(e==t.childCount)return null;let r=this.pos-this.path[this.path.length-1],n=t.child(e);return r?t.child(e).cut(r):n}get nodeBefore(){let t=this.index(this.depth),e=this.pos-this.path[this.path.length-1];return e?this.parent.child(t).cut(0,e):t==0?null:this.parent.child(t-1)}posAtIndex(t,e){e=this.resolveDepth(e);let r=this.path[e*3],n=e==0?0:this.path[e*3-1]+1;for(let i=0;i<t;i++)n+=r.child(i).nodeSize;return n}marks(){let t=this.parent,e=this.index();if(t.content.size==0)return Oe.none;if(this.textOffset)return t.child(e).marks;let r=t.maybeChild(e-1),n=t.maybeChild(e);if(!r){let l=r;r=n,n=l;}let i=r.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===false&&(!n||!i[s].isInSet(n.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(t){let e=this.parent.maybeChild(this.index());if(!e||!e.isInline)return null;let r=e.marks,n=t.parent.maybeChild(t.index());for(var i=0;i<r.length;i++)r[i].type.spec.inclusive===false&&(!n||!r[i].isInSet(n.marks))&&(r=r[i--].removeFromSet(r));return r}sharedDepth(t){for(let e=this.depth;e>0;e--)if(this.start(e)<=t&&this.end(e)>=t)return e;return 0}blockRange(t=this,e){if(t.pos<this.pos)return t.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==t.pos?1:0);r>=0;r--)if(t.pos<=this.end(r)&&(!e||e(this.node(r))))return new Du(this,t,r);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos<this.pos?t:this}toString(){let t="";for(let e=1;e<=this.depth;e++)t+=(t?"/":"")+this.node(e).type.name+"_"+this.index(e-1);return t+":"+this.parentOffset}static resolve(t,e){if(!(e>=0&&e<=t.content.size))throw new RangeError("Position "+e+" out of range");let r=[],n=0,i=e;for(let s=t;;){let{index:l,offset:a}=s.content.findIndex(i),u=i-a;if(r.push(s,l,n+a),!u||(s=s.child(l),s.isText))break;i=u-1,n+=a+1;}return new o(e,r,i)}static resolveCached(t,e){let r=QE.get(t);if(r)for(let i=0;i<r.elts.length;i++){let s=r.elts[i];if(s.pos==e)return s}else QE.set(t,r=new $P);let n=r.elts[r.i]=o.resolve(t,e);return r.i=(r.i+1)%HN,n}},$P=class{constructor(){this.elts=[],this.i=0;}},HN=12,QE=new WeakMap,Du=class{constructor(t,e,r){this.$from=t,this.$to=e,this.depth=r;}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}},GN=Object.create(null),Oo=class o{constructor(t,e,r,n=Oe.none){this.type=t,this.attrs=e,this.marks=n,this.content=r||tt.empty;}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(t){return this.content.child(t)}maybeChild(t){return this.content.maybeChild(t)}forEach(t){this.content.forEach(t);}nodesBetween(t,e,r,n=0){this.content.nodesBetween(t,e,r,n,this);}descendants(t){this.nodesBetween(0,this.content.size,t);}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(t,e,r,n){return this.content.textBetween(t,e,r,n)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(t){return this==t||this.sameMarkup(t)&&this.content.eq(t.content)}sameMarkup(t){return this.hasMarkup(t.type,t.attrs,t.marks)}hasMarkup(t,e,r){return this.type==t&&yg(this.attrs,e||t.defaultAttrs||GN)&&Oe.sameSet(this.marks,r||Oe.none)}copy(t=null){return t==this.content?this:new o(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new o(this.type,this.attrs,this.content,t)}cut(t,e=this.content.size){return t==0&&e==this.content.size?this:this.copy(this.content.cut(t,e))}slice(t,e=this.content.size,r=false){if(t==e)return yt.empty;let n=this.resolve(t),i=this.resolve(e),s=r?0:n.sharedDepth(e),l=n.start(s),u=n.node(s).content.cut(n.pos-l,i.pos-l);return new yt(u,n.depth-s,i.depth-s)}replace(t,e,r){return BN(this.resolve(t),this.resolve(e),r)}nodeAt(t){for(let e=this;;){let{index:r,offset:n}=e.content.findIndex(t);if(e=e.maybeChild(r),!e)return null;if(n==t||e.isText)return e;t-=n+1;}}childAfter(t){let{index:e,offset:r}=this.content.findIndex(t);return {node:this.content.maybeChild(e),index:e,offset:r}}childBefore(t){if(t==0)return {node:null,index:0,offset:0};let{index:e,offset:r}=this.content.findIndex(t);if(r<t)return {node:this.content.child(e),index:e,offset:r};let n=this.content.child(e-1);return {node:n,index:e-1,offset:r-n.nodeSize}}resolve(t){return fg.resolveCached(this,t)}resolveNoCache(t){return fg.resolve(this,t)}rangeHasMark(t,e,r){let n=false;return e>t&&this.nodesBetween(t,e,i=>(r.isInSet(i.marks)&&(n=true),!n)),n}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),yv(this.marks,t)}contentMatchAt(t){let e=this.type.contentMatch.matchFragment(this.content,0,t);if(!e)throw new Error("Called contentMatchAt on a node with invalid content");return e}canReplace(t,e,r=tt.empty,n=0,i=r.childCount){let s=this.contentMatchAt(t).matchFragment(r,n,i),l=s&&s.matchFragment(this.content,e);if(!l||!l.validEnd)return false;for(let a=n;a<i;a++)if(!this.type.allowsMarks(r.child(a).marks))return false;return true}canReplaceWith(t,e,r,n){if(n&&!this.type.allowsMarks(n))return false;let i=this.contentMatchAt(t).matchType(r),s=i&&i.matchFragment(this.content,e);return s?s.validEnd:false}canAppend(t){return t.content.size?this.canReplace(this.childCount,this.childCount,t.content):this.type.compatibleContent(t.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let t=Oe.none;for(let e=0;e<this.marks.length;e++){let r=this.marks[e];r.type.checkAttrs(r.attrs),t=r.addToSet(t);}if(!Oe.sameSet(t,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check());}toJSON(){let t={type:this.type.name};for(let e in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(e=>e.toJSON())),t}static fromJSON(t,e){if(!e)throw new RangeError("Invalid input for Node.fromJSON");let r;if(e.marks){if(!Array.isArray(e.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=e.marks.map(t.markFromJSON);}if(e.type=="text"){if(typeof e.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(e.text,r)}let n=tt.fromJSON(t,e.content),i=t.nodeType(e.type).create(e.attrs,n,r);return i.type.checkAttrs(i.attrs),i}};Oo.prototype.text=void 0;var KP=class o extends Oo{constructor(t,e,r,n){if(super(t,e,null,n),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r;}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):yv(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,e){return this.text.slice(t,e)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new o(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new o(this.type,this.attrs,t,this.marks)}cut(t=0,e=this.text.length){return t==0&&e==this.text.length?this:this.withText(this.text.slice(t,e))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}};function yv(o,t){for(let e=o.length-1;e>=0;e--)t=o[e].type.name+"("+t+")";return t}var Ou=class o{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[];}static parse(t,e){let r=new jP(t,e);if(r.next==null)return o.empty;let n=dv(r);r.next&&r.err("Unexpected trailing text");let i=jN(KN(n));return qN(i,r),i}matchType(t){for(let e=0;e<this.next.length;e++)if(this.next[e].type==t)return this.next[e].next;return null}matchFragment(t,e=0,r=t.childCount){let n=this;for(let i=e;n&&i<r;i++)n=n.matchType(t.child(i).type);return n}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let t=0;t<this.next.length;t++){let{type:e}=this.next[t];if(!(e.isText||e.hasRequiredAttrs()))return e}return null}compatible(t){for(let e=0;e<this.next.length;e++)for(let r=0;r<t.next.length;r++)if(this.next[e].type==t.next[r].type)return true;return false}fillBefore(t,e=false,r=0){let n=[this];function i(s,l){let a=s.matchFragment(t,r);if(a&&(!e||a.validEnd))return tt.from(l.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:c,next:h}=s.next[u];if(!(c.isText||c.hasRequiredAttrs())&&n.indexOf(h)==-1){n.push(h);let f=i(h,l.concat(c));if(f)return f}}return null}return i(this,[])}findWrapping(t){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==t)return this.wrapCache[r+1];let e=this.computeWrapping(t);return this.wrapCache.push(t,e),e}computeWrapping(t){let e=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let n=r.shift(),i=n.match;if(i.matchType(t)){let s=[];for(let l=n;l.type;l=l.via)s.push(l.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:l,next:a}=i.next[s];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in e)&&(!n.type||a.validEnd)&&(r.push({match:l.contentMatch,type:l,via:n}),e[l.name]=true);}}return null}get edgeCount(){return this.next.length}edge(t){if(t>=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function e(r){t.push(r);for(let n=0;n<r.next.length;n++)t.indexOf(r.next[n].next)==-1&&e(r.next[n].next);}return e(this),t.map((r,n)=>{let i=n+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)i+=(s?", ":"")+r.next[s].type.name+"->"+t.indexOf(r.next[s].next);return i}).join(`
6
+ `)}};Ou.empty=new Ou(true);var jP=class{constructor(t,e){this.string=t,this.nodeTypes=e,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift();}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||true)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}};function dv(o){let t=[];do t.push(UN(o));while(o.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function UN(o){let t=[];do t.push(WN(o));while(o.next&&o.next!=")"&&o.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function WN(o){let t=$N(o);for(;;)if(o.eat("+"))t={type:"plus",expr:t};else if(o.eat("*"))t={type:"star",expr:t};else if(o.eat("?"))t={type:"opt",expr:t};else if(o.eat("{"))t=zN(o,t);else break;return t}function JE(o){/\D/.test(o.next)&&o.err("Expected number, got '"+o.next+"'");let t=Number(o.next);return o.pos++,t}function zN(o,t){let e=JE(o),r=e;return o.eat(",")&&(o.next!="}"?r=JE(o):r=-1),o.eat("}")||o.err("Unclosed braced range"),{type:"range",min:e,max:r,expr:t}}function _N(o,t){let e=o.nodeTypes,r=e[t];if(r)return [r];let n=[];for(let i in e){let s=e[i];s.isInGroup(t)&&n.push(s);}return n.length==0&&o.err("No node type or group '"+t+"' found"),n}function $N(o){if(o.eat("(")){let t=dv(o);return o.eat(")")||o.err("Missing closing paren"),t}else if(/\W/.test(o.next))o.err("Unexpected token '"+o.next+"'");else {let t=_N(o,o.next).map(e=>(o.inline==null?o.inline=e.isInline:o.inline!=e.isInline&&o.err("Mixing inline and block content"),{type:"name",value:e}));return o.pos++,t.length==1?t[0]:{type:"choice",exprs:t}}}function KN(o){let t=[[]];return n(i(o,0),e()),t;function e(){return t.push([])-1}function r(s,l,a){let u={term:a,to:l};return t[s].push(u),u}function n(s,l){s.forEach(a=>a.to=l);}function i(s,l){if(s.type=="choice")return s.exprs.reduce((a,u)=>a.concat(i(u,l)),[]);if(s.type=="seq")for(let a=0;;a++){let u=i(s.exprs[a],l);if(a==s.exprs.length-1)return u;n(u,l=e());}else if(s.type=="star"){let a=e();return r(l,a),n(i(s.expr,a),a),[r(a)]}else if(s.type=="plus"){let a=e();return n(i(s.expr,l),a),n(i(s.expr,a),a),[r(a)]}else {if(s.type=="opt")return [r(l)].concat(i(s.expr,l));if(s.type=="range"){let a=l;for(let u=0;u<s.min;u++){let c=e();n(i(s.expr,a),c),a=c;}if(s.max==-1)n(i(s.expr,a),a);else for(let u=s.min;u<s.max;u++){let c=e();r(a,c),n(i(s.expr,a),c),a=c;}return [r(a)]}else {if(s.type=="name")return [r(l,void 0,s.value)];throw new Error("Unknown expr type")}}}}function fv(o,t){return t-o}function XE(o,t){let e=[];return r(t),e.sort(fv);function r(n){let i=o[n];if(i.length==1&&!i[0].term)return r(i[0].to);e.push(n);for(let s=0;s<i.length;s++){let{term:l,to:a}=i[s];!l&&e.indexOf(a)==-1&&r(a);}}}function jN(o){let t=Object.create(null);return e(XE(o,0));function e(r){let n=[];r.forEach(s=>{o[s].forEach(({term:l,to:a})=>{if(!l)return;let u;for(let c=0;c<n.length;c++)n[c][0]==l&&(u=n[c][1]);XE(o,a).forEach(c=>{u||n.push([l,u=[]]),u.indexOf(c)==-1&&u.push(c);});});});let i=t[r.join(",")]=new Ou(r.indexOf(o.length-1)>-1);for(let s=0;s<n.length;s++){let l=n[s][1].sort(fv);i.next.push({type:n[s][0],next:t[l.join(",")]||e(l)});}return i}}function qN(o,t){for(let e=0,r=[o];e<r.length;e++){let n=r[e],i=!n.validEnd,s=[];for(let l=0;l<n.next.length;l++){let{type:a,next:u}=n.next[l];s.push(a.name),i&&!(a.isText||a.hasRequiredAttrs())&&(i=false),r.indexOf(u)==-1&&r.push(u);}i&&t.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)");}}function bv(o){let t=Object.create(null);for(let e in o){let r=o[e];if(!r.hasDefault)return null;t[e]=r.default;}return t}function gv(o,t){let e=Object.create(null);for(let r in o){let n=t&&t[r];if(n===void 0){let i=o[r];if(i.hasDefault)n=i.default;else throw new RangeError("No value supplied for attribute "+r)}e[r]=n;}return e}function Sv(o,t,e,r){for(let n in t)if(!(n in o))throw new RangeError(`Unsupported attribute ${n} for ${e} of type ${r}`);for(let n in o)o[n].validate&&o[n].validate(t[n]);}function Pv(o,t){let e=Object.create(null);if(t)for(let r in t)e[r]=new qP(o,r,t[r]);return e}var bg=class o{constructor(t,e,r){this.name=t,this.schema=e,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=Pv(t,r.attrs),this.defaultAttrs=bv(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||t=="text"),this.isText=t=="text";}get isInline(){return !this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Ou.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(t){return this.groups.indexOf(t)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let t in this.attrs)if(this.attrs[t].isRequired)return true;return false}compatibleContent(t){return this==t||this.contentMatch.compatible(t.contentMatch)}computeAttrs(t){return !t&&this.defaultAttrs?this.defaultAttrs:gv(this.attrs,t)}create(t=null,e,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Oo(this,this.computeAttrs(t),tt.from(e),Oe.setFrom(r))}createChecked(t=null,e,r){return e=tt.from(e),this.checkContent(e),new Oo(this,this.computeAttrs(t),e,Oe.setFrom(r))}createAndFill(t=null,e,r){if(t=this.computeAttrs(t),e=tt.from(e),e.size){let s=this.contentMatch.fillBefore(e);if(!s)return null;e=s.append(e);}let n=this.contentMatch.matchFragment(e),i=n&&n.fillBefore(tt.empty,true);return i?new Oo(this,t,e.append(i),Oe.setFrom(r)):null}validContent(t){let e=this.contentMatch.matchFragment(t);if(!e||!e.validEnd)return false;for(let r=0;r<t.childCount;r++)if(!this.allowsMarks(t.child(r).marks))return false;return true}checkContent(t){if(!this.validContent(t))throw new RangeError(`Invalid content for node ${this.name}: ${t.toString().slice(0,50)}`)}checkAttrs(t){Sv(this.attrs,t,"node",this.name);}allowsMarkType(t){return this.markSet==null||this.markSet.indexOf(t)>-1}allowsMarks(t){if(this.markSet==null)return true;for(let e=0;e<t.length;e++)if(!this.allowsMarkType(t[e].type))return false;return true}allowedMarks(t){if(this.markSet==null)return t;let e;for(let r=0;r<t.length;r++)this.allowsMarkType(t[r].type)?e&&e.push(t[r]):e||(e=t.slice(0,r));return e?e.length?e:Oe.none:t}static compile(t,e){let r=Object.create(null);t.forEach((i,s)=>r[i]=new o(i,e,s));let n=e.spec.topNode||"doc";if(!r[n])throw new RangeError("Schema is missing its top node type ('"+n+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let i in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function YN(o,t,e){let r=e.split("|");return n=>{let i=n===null?"null":typeof n;if(r.indexOf(i)<0)throw new RangeError(`Expected value of type ${r} for attribute ${t} on type ${o}, got ${i}`)}}var qP=class{constructor(t,e,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?YN(t,e,r.validate):r.validate;}get isRequired(){return !this.hasDefault}},Jh=class o{constructor(t,e,r,n){this.name=t,this.rank=e,this.schema=r,this.spec=n,this.attrs=Pv(t,n.attrs),this.excluded=null;let i=bv(this.attrs);this.instance=i?new Oe(this,i):null;}create(t=null){return !t&&this.instance?this.instance:new Oe(this,gv(this.attrs,t))}static compile(t,e){let r=Object.create(null),n=0;return t.forEach((i,s)=>r[i]=new o(i,n++,e,s)),r}removeFromSet(t){for(var e=0;e<t.length;e++)t[e].type==this&&(t=t.slice(0,e).concat(t.slice(e+1)),e--);return t}isInSet(t){for(let e=0;e<t.length;e++)if(t[e].type==this)return t[e]}checkAttrs(t){Sv(this.attrs,t,"mark",this.name);}excludes(t){return this.excluded.indexOf(t)>-1}},rp=class{constructor(t){this.linebreakReplacement=null,this.cached=Object.create(null);let e=this.spec={};for(let n in t)e[n]=t[n];e.nodes=WP.from(t.nodes),e.marks=WP.from(t.marks||{}),this.nodes=bg.compile(this.spec.nodes,this),this.marks=Jh.compile(this.spec.marks,this);let r=Object.create(null);for(let n in this.nodes){if(n in this.marks)throw new RangeError(n+" can not be both a node and a mark");let i=this.nodes[n],s=i.spec.content||"",l=i.spec.marks;if(i.contentMatch=r[s]||(r[s]=Ou.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i;}i.markSet=l=="_"?null:l?ZE(this,l.split(" ")):l==""||!i.inlineContent?[]:null;}for(let n in this.marks){let i=this.marks[n],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:ZE(this,s.split(" "));}this.nodeFromJSON=n=>Oo.fromJSON(this,n),this.markFromJSON=n=>Oe.fromJSON(this,n),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null);}node(t,e=null,r,n){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof bg){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(e,r,n)}text(t,e){let r=this.nodes.text;return new KP(r,r.defaultAttrs,t,Oe.setFrom(e))}mark(t,e){return typeof t=="string"&&(t=this.marks[t]),t.create(e)}nodeType(t){let e=this.nodes[t];if(!e)throw new RangeError("Unknown node type: "+t);return e}};function ZE(o,t){let e=[];for(let r=0;r<t.length;r++){let n=t[r],i=o.marks[n],s=i;if(i)e.push(i);else for(let l in o.marks){let a=o.marks[l];(n=="_"||a.spec.group&&a.spec.group.split(" ").indexOf(n)>-1)&&e.push(s=a);}if(!s)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return e}function QN(o){return o.tag!=null}function JN(o){return o.style!=null}var wi=class o{constructor(t,e){this.schema=t,this.rules=e,this.tags=[],this.styles=[];let r=this.matchedStyles=[];e.forEach(n=>{if(QN(n))this.tags.push(n);else if(JN(n)){let i=/[^=]*/.exec(n.style)[0];r.indexOf(i)<0&&r.push(i),this.styles.push(n);}}),this.normalizeLists=!this.tags.some(n=>{if(!/^(ul|ol)\b/.test(n.tag)||!n.node)return false;let i=t.nodes[n.node];return i.contentMatch.matchType(i)});}parse(t,e={}){let r=new gg(this,e,false);return r.addAll(t,Oe.none,e.from,e.to),r.finish()}parseSlice(t,e={}){let r=new gg(this,e,true);return r.addAll(t,Oe.none,e.from,e.to),yt.maxOpen(r.finish())}matchTag(t,e,r){for(let n=r?this.tags.indexOf(r)+1:0;n<this.tags.length;n++){let i=this.tags[n];if(t1(t,i.tag)&&(i.namespace===void 0||t.namespaceURI==i.namespace)&&(!i.context||e.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(t);if(s===false)continue;i.attrs=s||void 0;}return i}}}matchStyle(t,e,r,n){for(let i=n?this.styles.indexOf(n)+1:0;i<this.styles.length;i++){let s=this.styles[i],l=s.style;if(!(l.indexOf(t)!=0||s.context&&!r.matchesContext(s.context)||l.length>t.length&&(l.charCodeAt(t.length)!=61||l.slice(t.length+1)!=e))){if(s.getAttrs){let a=s.getAttrs(e);if(a===false)continue;s.attrs=a||void 0;}return s}}}static schemaRules(t){let e=[];function r(n){let i=n.priority==null?50:n.priority,s=0;for(;s<e.length;s++){let l=e[s];if((l.priority==null?50:l.priority)<i)break}e.splice(s,0,n);}for(let n in t.marks){let i=t.marks[n].spec.parseDOM;i&&i.forEach(s=>{r(s=ev(s)),s.mark||s.ignore||s.clearMark||(s.mark=n);});}for(let n in t.nodes){let i=t.nodes[n].spec.parseDOM;i&&i.forEach(s=>{r(s=ev(s)),s.node||s.ignore||s.mark||(s.node=n);});}return e}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new o(t,o.schemaRules(t)))}},Av={address:true,article:true,aside:true,blockquote:true,body:true,canvas:true,dd:true,div:true,dl:true,fieldset:true,figcaption:true,figure:true,footer:true,form:true,h1:true,h2:true,h3:true,h4:true,h5:true,h6:true,header:true,hgroup:true,hr:true,li:true,noscript:true,ol:true,output:true,p:true,pre:true,section:true,table:true,tfoot:true,ul:true},XN={head:true,noscript:true,object:true,script:true,style:true,title:true},wv={ol:true,ul:true},Xh=1,YP=2,Qh=4;function tv(o,t,e){return t!=null?(t?Xh:0)|(t==="full"?YP:0):o&&o.whitespace=="pre"?Xh|YP:e&~Qh}var ep=class{constructor(t,e,r,n,i,s){this.type=t,this.attrs=e,this.marks=r,this.solid=n,this.options=s,this.content=[],this.activeMarks=Oe.none,this.match=i||(s&Qh?null:t.contentMatch);}findWrapping(t){if(!this.match){if(!this.type)return [];let e=this.type.contentMatch.fillBefore(tt.from(t));if(e)this.match=this.type.contentMatch.matchFragment(e);else {let r=this.type.contentMatch,n;return (n=r.findWrapping(t.type))?(this.match=r,n):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&Xh)){let r=this.content[this.content.length-1],n;if(r&&r.isText&&(n=/[ \t\r\n\u000c]+$/.exec(r.text))){let i=r;r.text.length==n[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-n[0].length));}}let e=tt.from(this.content);return !t&&this.match&&(e=e.append(this.match.fillBefore(tt.empty,true))),this.type?this.type.create(this.attrs,e,this.marks):e}inlineContext(t){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:t.parentNode&&!Av.hasOwnProperty(t.parentNode.nodeName.toLowerCase())}},gg=class{constructor(t,e,r){this.parser=t,this.options=e,this.isOpen=r,this.open=0,this.localPreserveWS=false;let n=e.topNode,i,s=tv(null,e.preserveWhitespace,0)|(r?Qh:0);n?i=new ep(n.type,n.attrs,Oe.none,true,e.topMatch||n.type.contentMatch,s):r?i=new ep(null,null,Oe.none,true,null,s):i=new ep(t.schema.topNodeType,null,Oe.none,true,null,s),this.nodes=[i],this.find=e.findPositions,this.needsBlock=false;}get top(){return this.nodes[this.open]}addDOM(t,e){t.nodeType==3?this.addTextNode(t,e):t.nodeType==1&&this.addElement(t,e);}addTextNode(t,e){let r=t.nodeValue,n=this.top,i=n.options&YP?"full":this.localPreserveWS||(n.options&Xh)>0,{schema:s}=this.parser;if(i==="full"||n.inlineContext(t)||/[^ \t\r\n\u000c]/.test(r)){if(i)if(i==="full")r=r.replace(/\r\n?/g,`
7
+ `);else if(s.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(s.linebreakReplacement.create())){let l=r.split(/\r?\n|\r/);for(let a=0;a<l.length;a++)a&&this.insertNode(s.linebreakReplacement.create(),e,true),l[a]&&this.insertNode(s.text(l[a]),e,!/\S/.test(l[a]));r="";}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let l=n.content[n.content.length-1],a=t.previousSibling;(!l||a&&a.nodeName=="BR"||l.isText&&/[ \t\r\n\u000c]$/.test(l.text))&&(r=r.slice(1));}r&&this.insertNode(s.text(r),e,!/\S/.test(r)),this.findInText(t);}else this.findInside(t);}addElement(t,e,r){let n=this.localPreserveWS,i=this.top;(t.tagName=="PRE"||/pre/.test(t.style&&t.style.whiteSpace))&&(this.localPreserveWS=true);let s=t.nodeName.toLowerCase(),l;wv.hasOwnProperty(s)&&this.parser.normalizeLists&&ZN(t);let a=this.options.ruleFromNode&&this.options.ruleFromNode(t)||(l=this.parser.matchTag(t,this,r));t:if(a?a.ignore:XN.hasOwnProperty(s))this.findInside(t),this.ignoreFallback(t,e);else if(!a||a.skip||a.closeParent){a&&a.closeParent?this.open=Math.max(0,this.open-1):a&&a.skip.nodeType&&(t=a.skip);let u,c=this.needsBlock;if(Av.hasOwnProperty(s))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),u=true,i.type||(this.needsBlock=true);else if(!t.firstChild){this.leafFallback(t,e);break t}let h=a&&a.skip?e:this.readStyles(t,e);h&&this.addAll(t,h),u&&this.sync(i),this.needsBlock=c;}else {let u=this.readStyles(t,e);u&&this.addElementByRule(t,a,u,a.consuming===false?l:void 0);}this.localPreserveWS=n;}leafFallback(t,e){t.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode(`
8
+ `),e);}ignoreFallback(t,e){t.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),e,true);}readStyles(t,e){let r=t.style;if(r&&r.length)for(let n=0;n<this.parser.matchedStyles.length;n++){let i=this.parser.matchedStyles[n],s=r.getPropertyValue(i);if(s)for(let l=void 0;;){let a=this.parser.matchStyle(i,s,this,l);if(!a)break;if(a.ignore)return null;if(a.clearMark?e=e.filter(u=>!a.clearMark(u)):e=e.concat(this.parser.schema.marks[a.mark].create(a.attrs)),a.consuming===false)l=a;else break}}return e}addElementByRule(t,e,r,n){let i,s;if(e.node)if(s=this.parser.schema.nodes[e.node],s.isLeaf)this.insertNode(s.create(e.attrs),r,t.nodeName=="BR")||this.leafFallback(t,r);else {let a=this.enter(s,e.attrs||null,r,e.preserveWhitespace);a&&(i=true,r=a);}else {let a=this.parser.schema.marks[e.mark];r=r.concat(a.create(e.attrs));}let l=this.top;if(s&&s.isLeaf)this.findInside(t);else if(n)this.addElement(t,r,n);else if(e.getContent)this.findInside(t),e.getContent(t,this.parser.schema).forEach(a=>this.insertNode(a,r,false));else {let a=t;typeof e.contentElement=="string"?a=t.querySelector(e.contentElement):typeof e.contentElement=="function"?a=e.contentElement(t):e.contentElement&&(a=e.contentElement),this.findAround(t,a,true),this.addAll(a,r),this.findAround(t,a,false);}i&&this.sync(l)&&this.open--;}addAll(t,e,r,n){let i=r||0;for(let s=r?t.childNodes[r]:t.firstChild,l=n==null?null:t.childNodes[n];s!=l;s=s.nextSibling,++i)this.findAtPoint(t,i),this.addDOM(s,e);this.findAtPoint(t,i);}findPlace(t,e,r){let n,i;for(let s=this.open,l=0;s>=0;s--){let a=this.nodes[s],u=a.findWrapping(t);if(u&&(!n||n.length>u.length+l)&&(n=u,i=a,!u.length))break;if(a.solid){if(r)break;l+=2;}}if(!n)return null;this.sync(i);for(let s=0;s<n.length;s++)e=this.enterInner(n[s],null,e,false);return e}insertNode(t,e,r){if(t.isInline&&this.needsBlock&&!this.top.type){let i=this.textblockFromContext();i&&(e=this.enterInner(i,null,e));}let n=this.findPlace(t,e,r);if(n){this.closeExtra();let i=this.top;i.match&&(i.match=i.match.matchType(t.type));let s=Oe.none;for(let l of n.concat(t.marks))(i.type?i.type.allowsMarkType(l.type):rv(l.type,t.type))&&(s=l.addToSet(s));return i.content.push(t.mark(s)),true}return false}enter(t,e,r,n){let i=this.findPlace(t.create(e),r,false);return i&&(i=this.enterInner(t,e,r,true,n)),i}enterInner(t,e,r,n=false,i){this.closeExtra();let s=this.top;s.match=s.match&&s.match.matchType(t);let l=tv(t,i,s.options);s.options&Qh&&s.content.length==0&&(l|=Qh);let a=Oe.none;return r=r.filter(u=>(s.type?s.type.allowsMarkType(u.type):rv(u.type,t))?(a=u.addToSet(a),false):true),this.nodes.push(new ep(t,e,a,n,null,l)),this.open++,r}closeExtra(t=false){let e=this.nodes.length-1;if(e>this.open){for(;e>this.open;e--)this.nodes[e-1].content.push(this.nodes[e].finish(t));this.nodes.length=this.open+1;}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(t){for(let e=this.open;e>=0;e--){if(this.nodes[e]==t)return this.open=e,true;this.localPreserveWS&&(this.nodes[e].options|=Xh);}return false}get currentPos(){this.closeExtra();let t=0;for(let e=this.open;e>=0;e--){let r=this.nodes[e].content;for(let n=r.length-1;n>=0;n--)t+=r[n].nodeSize;e&&t++;}return t}findAtPoint(t,e){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==t&&this.find[r].offset==e&&(this.find[r].pos=this.currentPos);}findInside(t){if(this.find)for(let e=0;e<this.find.length;e++)this.find[e].pos==null&&t.nodeType==1&&t.contains(this.find[e].node)&&(this.find[e].pos=this.currentPos);}findAround(t,e,r){if(t!=e&&this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&t.nodeType==1&&t.contains(this.find[n].node)&&e.compareDocumentPosition(this.find[n].node)&(r?2:4)&&(this.find[n].pos=this.currentPos);}findInText(t){if(this.find)for(let e=0;e<this.find.length;e++)this.find[e].node==t&&(this.find[e].pos=this.currentPos-(t.nodeValue.length-this.find[e].offset));}matchesContext(t){if(t.indexOf("|")>-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let e=t.split("/"),r=this.options.context,n=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+(n?0:1),s=(l,a)=>{for(;l>=0;l--){let u=e[l];if(u==""){if(l==e.length-1||l==0)continue;for(;a>=i;a--)if(s(l-1,a))return true;return false}else {let c=a>0||a==0&&n?this.nodes[a].type:r&&a>=i?r.node(a-i).type:null;if(!c||c.name!=u&&!c.isInGroup(u))return false;a--;}}return true};return s(e.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let e=t.depth;e>=0;e--){let r=t.node(e).contentMatchAt(t.indexAfter(e)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let e in this.parser.schema.nodes){let r=this.parser.schema.nodes[e];if(r.isTextblock&&r.defaultAttrs)return r}}};function ZN(o){for(let t=o.firstChild,e=null;t;t=t.nextSibling){let r=t.nodeType==1?t.nodeName.toLowerCase():null;r&&wv.hasOwnProperty(r)&&e?(e.appendChild(t),t=e):r=="li"?e=t:r&&(e=null);}}function t1(o,t){return (o.matches||o.msMatchesSelector||o.webkitMatchesSelector||o.mozMatchesSelector).call(o,t)}function ev(o){let t={};for(let e in o)t[e]=o[e];return t}function rv(o,t){let e=t.schema.nodes;for(let r in e){let n=e[r];if(!n.allowsMarkType(o))continue;let i=[],s=l=>{i.push(l);for(let a=0;a<l.edgeCount;a++){let{type:u,next:c}=l.edge(a);if(u==t||i.indexOf(c)<0&&s(c))return true}};if(s(n.contentMatch))return true}}var _n=class o{constructor(t,e){this.nodes=t,this.marks=e;}serializeFragment(t,e={},r){r||(r=mg(e).createDocumentFragment());let n=r,i=[];return t.forEach(s=>{if(i.length||s.marks.length){let l=0,a=0;for(;l<i.length&&a<s.marks.length;){let u=s.marks[a];if(!this.marks[u.type.name]){a++;continue}if(!u.eq(i[l][0])||u.type.spec.spanning===false)break;l++,a++;}for(;l<i.length;)n=i.pop()[1];for(;a<s.marks.length;){let u=s.marks[a++],c=this.serializeMark(u,s.isInline,e);c&&(i.push([u,n]),n.appendChild(c.dom),n=c.contentDOM||c.dom);}}n.appendChild(this.serializeNodeInner(s,e));}),r}serializeNodeInner(t,e){if(t.isText)return mg(e).createTextNode(t.text);let{dom:r,contentDOM:n}=hg(mg(e),this.nodes[t.type.name](t),null,t.attrs);if(n){if(t.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(t.content,e,n);}return r}serializeNode(t,e={}){let r=this.serializeNodeInner(t,e);for(let n=t.marks.length-1;n>=0;n--){let i=this.serializeMark(t.marks[n],t.isInline,e);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom);}return r}serializeMark(t,e,r={}){let n=this.marks[t.type.name];return n&&hg(mg(r),n(t,e),null,t.attrs)}static renderSpec(t,e,r=null,n){return typeof e=="string"?{dom:t.createTextNode(e)}:hg(t,e,r,n)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new o(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let e=ov(t.nodes);return e.text||(e.text=r=>r.text),e}static marksFromSchema(t){return ov(t.marks)}};function ov(o){let t={};for(let e in o){let r=o[e].spec.toDOM;r&&(t[e]=r);}return t}function mg(o){return o.document||window.document}var nv=new WeakMap;function e1(o){let t=nv.get(o);return t===void 0&&nv.set(o,t=r1(o)),t}function r1(o){let t=null;function e(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")t||(t=[]),t.push(r);else for(let n=0;n<r.length;n++)e(r[n]);else for(let n in r)e(r[n]);}return e(o),t}function hg(o,t,e,r){if(t.nodeType==1)return {dom:t};if(t.dom&&t.dom.nodeType==1)return t;let n=t[0],i;if(typeof n!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(i=e1(r))&&i.indexOf(t)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let s=n.indexOf(" ");s>0&&(e=n.slice(0,s),n=n.slice(s+1));let l,a=e?o.createElementNS(e,n):o.createElement(n),u=t[1],c=1;if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){c=2;for(let h in u)if(u[h]!=null){let f=h.indexOf(" ");f>0?a.setAttributeNS(h.slice(0,f),h.slice(f+1),u[h]):h=="style"&&a.style?a.style.cssText=u[h]:a.setAttribute(h,u[h]);}}for(let h=c;h<t.length;h++){let f=t[h];if(f===0){if(h<t.length-1||h>c)throw new RangeError("Content hole must be the only child of its parent node");return {dom:a,contentDOM:a}}else if(typeof f=="string")a.appendChild(o.createTextNode(f));else {let{dom:d,contentDOM:g}=hg(o,f,e,r);if(a.appendChild(d),g){if(l)throw new RangeError("Multiple content holes");l=g;}}}return {dom:a,contentDOM:l}}var vv=65535,Tv=Math.pow(2,16);function o1(o,t){return o+t*Tv}function xv(o){return o&vv}function n1(o){return (o-(o&vv))/Tv}var Cv=1,kv=2,Sg=4,Nv=8,ey=class{constructor(t,e,r){this.pos=t,this.delInfo=e,this.recover=r;}get deleted(){return (this.delInfo&Nv)>0}get deletedBefore(){return (this.delInfo&(Cv|Sg))>0}get deletedAfter(){return (this.delInfo&(kv|Sg))>0}get deletedAcross(){return (this.delInfo&Sg)>0}},Zs=class o{constructor(t,e=false){if(this.ranges=t,this.inverted=e,!t.length&&o.empty)return o.empty}recover(t){let e=0,r=xv(t);if(!this.inverted)for(let n=0;n<r;n++)e+=this.ranges[n*3+2]-this.ranges[n*3+1];return this.ranges[r*3]+e+n1(t)}mapResult(t,e=1){return this._map(t,e,false)}map(t,e=1){return this._map(t,e,true)}_map(t,e,r){let n=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?n:0);if(a>t)break;let u=this.ranges[l+i],c=this.ranges[l+s],h=a+u;if(t<=h){let f=u?t==a?-1:t==h?1:e:e,d=a+n+(f<0?0:c);if(r)return d;let g=t==(e<0?a:h)?null:o1(l/3,t-a),A=t==a?kv:t==h?Cv:Sg;return (e<0?t!=a:t!=h)&&(A|=Nv),new ey(d,A,g)}n+=c-u;}return r?t+n:new ey(t+n,0,null)}touches(t,e){let r=0,n=xv(e),i=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?r:0);if(a>t)break;let u=this.ranges[l+i],c=a+u;if(t<=c&&l==n*3)return true;r+=this.ranges[l+s]-u;}return false}forEach(t){let e=this.inverted?2:1,r=this.inverted?1:2;for(let n=0,i=0;n<this.ranges.length;n+=3){let s=this.ranges[n],l=s-(this.inverted?i:0),a=s+(this.inverted?0:i),u=this.ranges[n+e],c=this.ranges[n+r];t(l,l+u,a,a+c),i+=c-u;}}invert(){return new o(this.ranges,!this.inverted)}toString(){return (this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(t){return t==0?o.empty:new o(t<0?[0,-t,0]:[0,0,t])}};Zs.empty=new Zs([]);var ry=class o{constructor(t,e,r=0,n=t?t.length:0){this.mirror=e,this.from=r,this.to=n,this._maps=t||[],this.ownData=!(t||e);}get maps(){return this._maps}slice(t=0,e=this.maps.length){return new o(this._maps,this.mirror,t,e)}appendMap(t,e){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=true),this.to=this._maps.push(t),e!=null&&this.setMirror(this._maps.length-1,e);}appendMapping(t){for(let e=0,r=this._maps.length;e<t._maps.length;e++){let n=t.getMirror(e);this.appendMap(t._maps[e],n!=null&&n<e?r+n:void 0);}}getMirror(t){if(this.mirror){for(let e=0;e<this.mirror.length;e++)if(this.mirror[e]==t)return this.mirror[e+(e%2?-1:1)]}}setMirror(t,e){this.mirror||(this.mirror=[]),this.mirror.push(t,e);}appendMappingInverted(t){for(let e=t.maps.length-1,r=this._maps.length+t._maps.length;e>=0;e--){let n=t.getMirror(e);this.appendMap(t._maps[e].invert(),n!=null&&n>e?r-n-1:void 0);}}invert(){let t=new o;return t.appendMappingInverted(this),t}map(t,e=1){if(this.mirror)return this._map(t,e,true);for(let r=this.from;r<this.to;r++)t=this._maps[r].map(t,e);return t}mapResult(t,e=1){return this._map(t,e,false)}_map(t,e,r){let n=0;for(let i=this.from;i<this.to;i++){let s=this._maps[i],l=s.mapResult(t,e);if(l.recover!=null){let a=this.getMirror(i);if(a!=null&&a>i&&a<this.to){i=a,t=this._maps[a].recover(l.recover);continue}}n|=l.delInfo,t=l.pos;}return r?t:new ey(t,n,null)}},QP=Object.create(null),Kr=class{getMap(){return Zs.empty}merge(t){return null}static fromJSON(t,e){if(!e||!e.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=QP[e.stepType];if(!r)throw new RangeError(`No step type ${e.stepType} defined`);return r.fromJSON(t,e)}static jsonID(t,e){if(t in QP)throw new RangeError("Duplicate use of step JSON ID "+t);return QP[t]=e,e.prototype.jsonID=t,e}},no=class o{constructor(t,e){this.doc=t,this.failed=e;}static ok(t){return new o(t,null)}static fail(t){return new o(null,t)}static fromReplace(t,e,r,n){try{return o.ok(t.replace(e,r,n))}catch(i){if(i instanceof pa)return o.fail(i.message);throw i}}};function eA(o,t,e){let r=[];for(let n=0;n<o.childCount;n++){let i=o.child(n);i.content.size&&(i=i.copy(eA(i.content,t,i))),i.isInline&&(i=t(i,e,n)),r.push(i);}return tt.fromArray(r)}var oy=class o extends Kr{constructor(t,e,r){super(),this.from=t,this.to=e,this.mark=r;}apply(t){let e=t.slice(this.from,this.to),r=t.resolve(this.from),n=r.node(r.sharedDepth(this.to)),i=new yt(eA(e.content,(s,l)=>!s.isAtom||!l.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),n),e.openStart,e.openEnd);return no.fromReplace(t,this.from,this.to,i)}invert(){return new tl(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return e.deleted&&r.deleted||e.pos>=r.pos?null:new o(e.pos,r.pos,this.mark)}merge(t){return t instanceof o&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new o(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return {stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if(typeof e.from!="number"||typeof e.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new o(e.from,e.to,t.markFromJSON(e.mark))}};Kr.jsonID("addMark",oy);var tl=class o extends Kr{constructor(t,e,r){super(),this.from=t,this.to=e,this.mark=r;}apply(t){let e=t.slice(this.from,this.to),r=new yt(eA(e.content,n=>n.mark(this.mark.removeFromSet(n.marks)),t),e.openStart,e.openEnd);return no.fromReplace(t,this.from,this.to,r)}invert(){return new oy(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return e.deleted&&r.deleted||e.pos>=r.pos?null:new o(e.pos,r.pos,this.mark)}merge(t){return t instanceof o&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new o(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return {stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if(typeof e.from!="number"||typeof e.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new o(e.from,e.to,t.markFromJSON(e.mark))}};Kr.jsonID("removeMark",tl);var ny=class o extends Kr{constructor(t,e){super(),this.pos=t,this.mark=e;}apply(t){let e=t.nodeAt(this.pos);if(!e)return no.fail("No node at mark step's position");let r=e.type.create(e.attrs,null,this.mark.addToSet(e.marks));return no.fromReplace(t,this.pos,this.pos+1,new yt(tt.from(r),0,e.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);if(e){let r=this.mark.addToSet(e.marks);if(r.length==e.marks.length){for(let n=0;n<e.marks.length;n++)if(!e.marks[n].isInSet(r))return new o(this.pos,e.marks[n]);return new o(this.pos,this.mark)}}return new op(this.pos,this.mark)}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new o(e.pos,this.mark)}toJSON(){return {stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,e){if(typeof e.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new o(e.pos,t.markFromJSON(e.mark))}};Kr.jsonID("addNodeMark",ny);var op=class o extends Kr{constructor(t,e){super(),this.pos=t,this.mark=e;}apply(t){let e=t.nodeAt(this.pos);if(!e)return no.fail("No node at mark step's position");let r=e.type.create(e.attrs,null,this.mark.removeFromSet(e.marks));return no.fromReplace(t,this.pos,this.pos+1,new yt(tt.from(r),0,e.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);return !e||!this.mark.isInSet(e.marks)?this:new ny(this.pos,this.mark)}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new o(e.pos,this.mark)}toJSON(){return {stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,e){if(typeof e.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new o(e.pos,t.markFromJSON(e.mark))}};Kr.jsonID("removeNodeMark",op);var io=class o extends Kr{constructor(t,e,r,n=false){super(),this.from=t,this.to=e,this.slice=r,this.structure=n;}apply(t){return this.structure&&ZP(t,this.from,this.to)?no.fail("Structure replace would overwrite content"):no.fromReplace(t,this.from,this.to,this.slice)}getMap(){return new Zs([this.from,this.to-this.from,this.slice.size])}invert(t){return new o(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let e=t.mapResult(this.to,-1),r=this.from==this.to&&o.MAP_BIAS<0?e:t.mapResult(this.from,1);return r.deletedAcross&&e.deletedAcross?null:new o(r.pos,Math.max(r.pos,e.pos),this.slice,this.structure)}merge(t){if(!(t instanceof o)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let e=this.slice.size+t.slice.size==0?yt.empty:new yt(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new o(this.from,this.to+(t.to-t.from),e,this.structure)}else if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let e=this.slice.size+t.slice.size==0?yt.empty:new yt(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new o(t.from,this.to,e,this.structure)}else return null}toJSON(){let t={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=true),t}static fromJSON(t,e){if(typeof e.from!="number"||typeof e.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new o(e.from,e.to,yt.fromJSON(t,e.slice),!!e.structure)}};io.MAP_BIAS=1;Kr.jsonID("replace",io);var kr=class o extends Kr{constructor(t,e,r,n,i,s,l=false){super(),this.from=t,this.to=e,this.gapFrom=r,this.gapTo=n,this.slice=i,this.insert=s,this.structure=l;}apply(t){if(this.structure&&(ZP(t,this.from,this.gapFrom)||ZP(t,this.gapTo,this.to)))return no.fail("Structure gap-replace would overwrite content");let e=t.slice(this.gapFrom,this.gapTo);if(e.openStart||e.openEnd)return no.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,e.content);return r?no.fromReplace(t,this.from,this.to,r):no.fail("Content does not fit in gap")}getMap(){return new Zs([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let e=this.gapTo-this.gapFrom;return new o(this.from,this.from+this.slice.size+e,this.from+this.insert,this.from+this.insert+e,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),n=this.from==this.gapFrom?e.pos:t.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return e.deletedAcross&&r.deletedAcross||n<e.pos||i>r.pos?null:new o(e.pos,r.pos,n,i,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=true),t}static fromJSON(t,e){if(typeof e.from!="number"||typeof e.to!="number"||typeof e.gapFrom!="number"||typeof e.gapTo!="number"||typeof e.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new o(e.from,e.to,e.gapFrom,e.gapTo,yt.fromJSON(t,e.slice),e.insert,!!e.structure)}};Kr.jsonID("replaceAround",kr);function ZP(o,t,e){let r=o.resolve(t),n=e-t,i=r.depth;for(;n>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,n--;if(n>0){let s=r.node(i).maybeChild(r.indexAfter(i));for(;n>0;){if(!s||s.isLeaf)return true;s=s.firstChild,n--;}}return false}function i1(o,t,e,r){let n=[],i=[],s,l;o.doc.nodesBetween(t,e,(a,u,c)=>{if(!a.isInline)return;let h=a.marks;if(!r.isInSet(h)&&c.type.allowsMarkType(r.type)){let f=Math.max(u,t),d=Math.min(u+a.nodeSize,e),g=r.addToSet(h);for(let A=0;A<h.length;A++)h[A].isInSet(g)||(s&&s.to==f&&s.mark.eq(h[A])?s.to=d:n.push(s=new tl(f,d,h[A])));l&&l.to==f?l.to=d:i.push(l=new oy(f,d,r));}}),n.forEach(a=>o.step(a)),i.forEach(a=>o.step(a));}function s1(o,t,e,r){let n=[],i=0;o.doc.nodesBetween(t,e,(s,l)=>{if(!s.isInline)return;i++;let a=null;if(r instanceof Jh){let u=s.marks,c;for(;c=r.isInSet(u);)(a||(a=[])).push(c),u=c.removeFromSet(u);}else r?r.isInSet(s.marks)&&(a=[r]):a=s.marks;if(a&&a.length){let u=Math.min(l+s.nodeSize,e);for(let c=0;c<a.length;c++){let h=a[c],f;for(let d=0;d<n.length;d++){let g=n[d];g.step==i-1&&h.eq(n[d].style)&&(f=g);}f?(f.to=u,f.step=i):n.push({style:h,from:Math.max(l,t),to:u,step:i});}}}),n.forEach(s=>o.step(new tl(s.from,s.to,s.style)));}function rA(o,t,e,r=e.contentMatch,n=true){let i=o.doc.nodeAt(t),s=[],l=t+1;for(let a=0;a<i.childCount;a++){let u=i.child(a),c=l+u.nodeSize,h=r.matchType(u.type);if(!h)s.push(new io(l,c,yt.empty));else {r=h;for(let f=0;f<u.marks.length;f++)e.allowsMarkType(u.marks[f].type)||o.step(new tl(l,c,u.marks[f]));if(n&&u.isText&&e.whitespace!="pre"){let f,d=/\r?\n|\r/g,g;for(;f=d.exec(u.text);)g||(g=new yt(tt.from(e.schema.text(" ",e.allowedMarks(u.marks))),0,0)),s.push(new io(l+f.index,l+f.index+f[0].length,g));}}l=c;}if(!r.validEnd){let a=r.fillBefore(tt.empty,true);o.replace(l,l,new yt(a,0,0));}for(let a=s.length-1;a>=0;a--)o.step(s[a]);}function l1(o,t,e){return (t==0||o.canReplace(t,o.childCount))&&(e==o.childCount||o.canReplace(0,e))}function el(o){let e=o.parent.content.cutByIndex(o.startIndex,o.endIndex);for(let r=o.depth,n=0,i=0;;--r){let s=o.$from.node(r),l=o.$from.index(r)+n,a=o.$to.indexAfter(r)-i;if(r<o.depth&&s.canReplace(l,a,e))return r;if(r==0||s.type.spec.isolating||!l1(s,l,a))break;l&&(n=1),a<s.childCount&&(i=1);}return null}function a1(o,t,e){let{$from:r,$to:n,depth:i}=t,s=r.before(i+1),l=n.after(i+1),a=s,u=l,c=tt.empty,h=0;for(let g=i,A=false;g>e;g--)A||r.index(g)>0?(A=true,c=tt.from(r.node(g).copy(c)),h++):a--;let f=tt.empty,d=0;for(let g=i,A=false;g>e;g--)A||n.after(g+1)<n.end(g)?(A=true,f=tt.from(n.node(g).copy(f)),d++):u++;o.step(new kr(a,u,s,l,new yt(c.append(f),h,d),c.size-h,true));}function ip(o,t,e=null,r=o){let n=u1(o,t),i=n&&c1(r,t);return i?n.map(Ev).concat({type:t,attrs:e}).concat(i.map(Ev)):null}function Ev(o){return {type:o,attrs:null}}function u1(o,t){let{parent:e,startIndex:r,endIndex:n}=o,i=e.contentMatchAt(r).findWrapping(t);if(!i)return null;let s=i.length?i[0]:t;return e.canReplaceWith(r,n,s)?i:null}function c1(o,t){let{parent:e,startIndex:r,endIndex:n}=o,i=e.child(r),s=t.contentMatch.findWrapping(i.type);if(!s)return null;let a=(s.length?s[s.length-1]:t).contentMatch;for(let u=r;a&&u<n;u++)a=a.matchType(e.child(u).type);return !a||!a.validEnd?null:s}function p1(o,t,e){let r=tt.empty;for(let s=e.length-1;s>=0;s--){if(r.size){let l=e[s].type.contentMatch.matchFragment(r);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=tt.from(e[s].type.create(e[s].attrs,r));}let n=t.start,i=t.end;o.step(new kr(n,i,n,i,new yt(r,0,0),e.length,true));}function m1(o,t,e,r,n){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=o.steps.length;o.doc.nodesBetween(t,e,(s,l)=>{let a=typeof n=="function"?n(s):n;if(s.isTextblock&&!s.hasMarkup(r,a)&&h1(o.doc,o.mapping.slice(i).map(l),r)){let u=null;if(r.schema.linebreakReplacement){let d=r.whitespace=="pre",g=!!r.contentMatch.matchType(r.schema.linebreakReplacement);d&&!g?u=false:!d&&g&&(u=true);}u===false&&Mv(o,s,l,i),rA(o,o.mapping.slice(i).map(l,1),r,void 0,u===null);let c=o.mapping.slice(i),h=c.map(l,1),f=c.map(l+s.nodeSize,1);return o.step(new kr(h,f,h+1,f-1,new yt(tt.from(r.create(a,null,s.marks)),0,0),1,true)),u===true&&Lv(o,s,l,i),false}});}function Lv(o,t,e,r){t.forEach((n,i)=>{if(n.isText){let s,l=/\r?\n|\r/g;for(;s=l.exec(n.text);){let a=o.mapping.slice(r).map(e+1+i+s.index);o.replaceWith(a,a+1,t.type.schema.linebreakReplacement.create());}}});}function Mv(o,t,e,r){t.forEach((n,i)=>{if(n.type==n.type.schema.linebreakReplacement){let s=o.mapping.slice(r).map(e+1+i);o.replaceWith(s,s+1,t.type.schema.text(`
9
+ `));}});}function h1(o,t,e){let r=o.resolve(t),n=r.index();return r.parent.canReplaceWith(n,n+1,e)}function y1(o,t,e,r,n){let i=o.doc.nodeAt(t);if(!i)throw new RangeError("No node at given position");e||(e=i.type);let s=e.create(r,null,n||i.marks);if(i.isLeaf)return o.replaceWith(t,t+i.nodeSize,s);if(!e.validContent(i.content))throw new RangeError("Invalid content for node type "+e.name);o.step(new kr(t,t+i.nodeSize,t+1,t+i.nodeSize-1,new yt(tt.from(s),0,0),1,true));}function Tn(o,t,e=1,r){let n=o.resolve(t),i=n.depth-e,s=r&&r[r.length-1]||n.parent;if(i<0||n.parent.type.spec.isolating||!n.parent.canReplace(n.index(),n.parent.childCount)||!s.type.validContent(n.parent.content.cutByIndex(n.index(),n.parent.childCount)))return false;for(let u=n.depth-1,c=e-2;u>i;u--,c--){let h=n.node(u),f=n.index(u);if(h.type.spec.isolating)return false;let d=h.content.cutByIndex(f,h.childCount),g=r&&r[c+1];g&&(d=d.replaceChild(0,g.type.create(g.attrs)));let A=r&&r[c]||h;if(!h.canReplace(f+1,h.childCount)||!A.type.validContent(d))return false}let l=n.indexAfter(i),a=r&&r[0];return n.node(i).canReplaceWith(l,l,a?a.type:n.node(i+1).type)}function d1(o,t,e=1,r){let n=o.doc.resolve(t),i=tt.empty,s=tt.empty;for(let l=n.depth,a=n.depth-e,u=e-1;l>a;l--,u--){i=tt.from(n.node(l).copy(i));let c=r&&r[u];s=tt.from(c?c.type.create(c.attrs,s):n.node(l).copy(s));}o.step(new io(t,t,new yt(i.append(s),e,e),true));}function $n(o,t){let e=o.resolve(t),r=e.index();return Iv(e.nodeBefore,e.nodeAfter)&&e.parent.canReplace(r,r+1)}function f1(o,t){t.content.size||o.type.compatibleContent(t.type);let e=o.contentMatchAt(o.childCount),{linebreakReplacement:r}=o.type.schema;for(let n=0;n<t.childCount;n++){let i=t.child(n),s=i.type==r?o.type.schema.nodes.text:i.type;if(e=e.matchType(s),!e||!o.type.allowsMarks(i.marks))return false}return e.validEnd}function Iv(o,t){return !!(o&&t&&!o.isLeaf&&f1(o,t))}function Fu(o,t,e=-1){let r=o.resolve(t);for(let n=r.depth;;n--){let i,s,l=r.index(n);if(n==r.depth?(i=r.nodeBefore,s=r.nodeAfter):e>0?(i=r.node(n+1),l++,s=r.node(n).maybeChild(l)):(i=r.node(n).maybeChild(l-1),s=r.node(n+1)),i&&!i.isTextblock&&Iv(i,s)&&r.node(n).canReplace(l,l+1))return t;if(n==0)break;t=e<0?r.before(n):r.after(n);}}function b1(o,t,e){let r=null,{linebreakReplacement:n}=o.doc.type.schema,i=o.doc.resolve(t-e),s=i.node().type;if(n&&s.inlineContent){let c=s.whitespace=="pre",h=!!s.contentMatch.matchType(n);c&&!h?r=false:!c&&h&&(r=true);}let l=o.steps.length;if(r===false){let c=o.doc.resolve(t+e);Mv(o,c.node(),c.before(),l);}s.inlineContent&&rA(o,t+e-1,s,i.node().contentMatchAt(i.index()),r==null);let a=o.mapping.slice(l),u=a.map(t-e);if(o.step(new io(u,a.map(t+e,-1),yt.empty,true)),r===true){let c=o.doc.resolve(u);Lv(o,c.node(),c.before(),o.steps.length);}return o}function g1(o,t,e){let r=o.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),e))return t;if(r.parentOffset==0)for(let n=r.depth-1;n>=0;n--){let i=r.index(n);if(r.node(n).canReplaceWith(i,i,e))return r.before(n+1);if(i>0)return null}if(r.parentOffset==r.parent.content.size)for(let n=r.depth-1;n>=0;n--){let i=r.indexAfter(n);if(r.node(n).canReplaceWith(i,i,e))return r.after(n+1);if(i<r.node(n).childCount)return null}return null}function wg(o,t,e){let r=o.resolve(t);if(!e.content.size)return t;let n=e.content;for(let i=0;i<e.openStart;i++)n=n.firstChild.content;for(let i=1;i<=(e.openStart==0&&e.size?2:1);i++)for(let s=r.depth;s>=0;s--){let l=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,a=r.index(s)+(l>0?1:0),u=r.node(s),c=false;if(i==1)c=u.canReplace(a,a,n);else {let h=u.contentMatchAt(a).findWrapping(n.firstChild.type);c=h&&u.canReplaceWith(a,a,h[0]);}if(c)return l==0?r.pos:l<0?r.before(s+1):r.after(s+1)}return null}function sy(o,t,e=t,r=yt.empty){if(t==e&&!r.size)return null;let n=o.resolve(t),i=o.resolve(e);return Rv(n,i,r)?new io(t,e,r):new tA(n,i,r).fit()}function Rv(o,t,e){return !e.openStart&&!e.openEnd&&o.start()==t.start()&&o.parent.canReplace(o.index(),t.index(),e.content)}var tA=class{constructor(t,e,r){this.$from=t,this.$to=e,this.unplaced=r,this.frontier=[],this.placed=tt.empty;for(let n=0;n<=t.depth;n++){let i=t.node(n);this.frontier.push({type:i.type,match:i.contentMatchAt(t.indexAfter(n))});}for(let n=t.depth;n>0;n--)this.placed=tt.from(t.node(n).copy(this.placed));}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):this.openMore()||this.dropNode();}let t=this.mustMoveInline(),e=this.placed.size-this.depth-this.$from.depth,r=this.$from,n=this.close(t<0?this.$to:r.doc.resolve(t));if(!n)return null;let i=this.placed,s=r.depth,l=n.depth;for(;s&&l&&i.childCount==1;)i=i.firstChild.content,s--,l--;let a=new yt(i,s,l);return t>-1?new kr(r.pos,t,this.$to.pos,this.$to.end(),a,e):a.size||r.pos!=this.$to.pos?new io(r.pos,n.pos,a):null}findFittable(){let t=this.unplaced.openStart;for(let e=this.unplaced.content,r=0,n=this.unplaced.openEnd;r<t;r++){let i=e.firstChild;if(e.childCount>1&&(n=0),i.type.spec.isolating&&n<=r){t=r;break}e=i.content;}for(let e=1;e<=2;e++)for(let r=e==1?t:this.unplaced.openStart;r>=0;r--){let n,i=null;r?(i=JP(this.unplaced.content,r-1).firstChild,n=i.content):n=this.unplaced.content;let s=n.firstChild;for(let l=this.depth;l>=0;l--){let{type:a,match:u}=this.frontier[l],c,h=null;if(e==1&&(s?u.matchType(s.type)||(h=u.fillBefore(tt.from(s),false)):i&&a.compatibleContent(i.type)))return {sliceDepth:r,frontierDepth:l,parent:i,inject:h};if(e==2&&s&&(c=u.findWrapping(s.type)))return {sliceDepth:r,frontierDepth:l,parent:i,wrap:c};if(i&&u.matchType(i.type))break}}}openMore(){let{content:t,openStart:e,openEnd:r}=this.unplaced,n=JP(t,e);return !n.childCount||n.firstChild.isLeaf?false:(this.unplaced=new yt(t,e+1,Math.max(r,n.size+e>=t.size-r?e+1:0)),true)}dropNode(){let{content:t,openStart:e,openEnd:r}=this.unplaced,n=JP(t,e);if(n.childCount<=1&&e>0){let i=t.size-e<=e+n.size;this.unplaced=new yt(Zh(t,e-1,1),e-1,i?e-1:r);}else this.unplaced=new yt(Zh(t,e,1),e,r);}placeNodes({sliceDepth:t,frontierDepth:e,parent:r,inject:n,wrap:i}){for(;this.depth>e;)this.closeFrontierNode();if(i)for(let A=0;A<i.length;A++)this.openFrontierNode(i[A]);let s=this.unplaced,l=r?r.content:s.content,a=s.openStart-t,u=0,c=[],{match:h,type:f}=this.frontier[e];if(n){for(let A=0;A<n.childCount;A++)c.push(n.child(A));h=h.matchFragment(n);}let d=l.size+t-(s.content.size-s.openEnd);for(;u<l.childCount;){let A=l.child(u),w=h.matchType(A.type);if(!w)break;u++,(u>1||a==0||A.content.size)&&(h=w,c.push(Dv(A.mark(f.allowedMarks(A.marks)),u==1?a:0,u==l.childCount?d:-1)));}let g=u==l.childCount;g||(d=-1),this.placed=ty(this.placed,e,tt.from(c)),this.frontier[e].match=h,g&&d<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let A=0,w=l;A<d;A++){let T=w.lastChild;this.frontier.push({type:T.type,match:T.contentMatchAt(T.childCount)}),w=T.content;}this.unplaced=g?t==0?yt.empty:new yt(Zh(s.content,t-1,1),t-1,d<0?s.openEnd:t-1):new yt(Zh(s.content,t,u),s.openStart,s.openEnd);}mustMoveInline(){if(!this.$to.parent.isTextblock)return -1;let t=this.frontier[this.depth],e;if(!t.type.isTextblock||!XP(this.$to,this.$to.depth,t.type,t.match,false)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.depth==this.depth)return -1;let{depth:r}=this.$to,n=this.$to.after(r);for(;r>1&&n==this.$to.end(--r);)++n;return n}findCloseLevel(t){t:for(let e=Math.min(this.depth,t.depth);e>=0;e--){let{match:r,type:n}=this.frontier[e],i=e<t.depth&&t.end(e+1)==t.pos+(t.depth-(e+1)),s=XP(t,e,n,r,i);if(s){for(let l=e-1;l>=0;l--){let{match:a,type:u}=this.frontier[l],c=XP(t,l,u,a,true);if(!c||c.childCount)continue t}return {depth:e,fit:s,move:i?t.doc.resolve(t.after(e+1)):t}}}}close(t){let e=this.findCloseLevel(t);if(!e)return null;for(;this.depth>e.depth;)this.closeFrontierNode();e.fit.childCount&&(this.placed=ty(this.placed,e.depth,e.fit)),t=e.move;for(let r=e.depth+1;r<=t.depth;r++){let n=t.node(r),i=n.type.contentMatch.fillBefore(n.content,true,t.index(r));this.openFrontierNode(n.type,n.attrs,i);}return t}openFrontierNode(t,e=null,r){let n=this.frontier[this.depth];n.match=n.match.matchType(t),this.placed=ty(this.placed,this.depth,tt.from(t.create(e,r))),this.frontier.push({type:t,match:t.contentMatch});}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(tt.empty,true);e.childCount&&(this.placed=ty(this.placed,this.frontier.length,e));}};function Zh(o,t,e){return t==0?o.cutByIndex(e,o.childCount):o.replaceChild(0,o.firstChild.copy(Zh(o.firstChild.content,t-1,e)))}function ty(o,t,e){return t==0?o.append(e):o.replaceChild(o.childCount-1,o.lastChild.copy(ty(o.lastChild.content,t-1,e)))}function JP(o,t){for(let e=0;e<t;e++)o=o.firstChild.content;return o}function Dv(o,t,e){if(t<=0)return o;let r=o.content;return t>1&&(r=r.replaceChild(0,Dv(r.firstChild,t-1,r.childCount==1?e-1:0))),t>0&&(r=o.type.contentMatch.fillBefore(r).append(r),e<=0&&(r=r.append(o.type.contentMatch.matchFragment(r).fillBefore(tt.empty,true)))),o.copy(r)}function XP(o,t,e,r,n){let i=o.node(t),s=n?o.indexAfter(t):o.index(t);if(s==i.childCount&&!e.compatibleContent(i.type))return null;let l=r.fillBefore(i.content,true,s);return l&&!S1(e,i.content,s)?l:null}function S1(o,t,e){for(let r=e;r<t.childCount;r++)if(!o.allowsMarks(t.child(r).marks))return true;return false}function P1(o){return o.spec.defining||o.spec.definingForContent}function A1(o,t,e,r){if(!r.size)return o.deleteRange(t,e);let n=o.doc.resolve(t),i=o.doc.resolve(e);if(Rv(n,i,r))return o.step(new io(t,e,r));let s=Fv(n,i);s[s.length-1]==0&&s.pop();let l=-(n.depth+1);s.unshift(l);for(let f=n.depth,d=n.pos-1;f>0;f--,d--){let g=n.node(f).type.spec;if(g.defining||g.definingAsContext||g.isolating)break;s.indexOf(f)>-1?l=f:n.before(f)==d&&s.splice(1,0,-f);}let a=s.indexOf(l),u=[],c=r.openStart;for(let f=r.content,d=0;;d++){let g=f.firstChild;if(u.push(g),d==r.openStart)break;f=g.content;}for(let f=c-1;f>=0;f--){let d=u[f],g=P1(d.type);if(g&&!d.sameMarkup(n.node(Math.abs(l)-1)))c=f;else if(g||!d.type.isTextblock)break}for(let f=r.openStart;f>=0;f--){let d=(f+c+1)%(r.openStart+1),g=u[d];if(g)for(let A=0;A<s.length;A++){let w=s[(A+a)%s.length],T=true;w<0&&(T=false,w=-w);let G=n.node(w-1),J=n.index(w-1);if(G.canReplaceWith(J,J,g.type,g.marks))return o.replace(n.before(w),T?i.after(w):e,new yt(Ov(r.content,0,r.openStart,d),d,r.openEnd))}}let h=o.steps.length;for(let f=s.length-1;f>=0&&(o.replace(t,e,r),!(o.steps.length>h));f--){let d=s[f];d<0||(t=n.before(d),e=i.after(d));}}function Ov(o,t,e,r,n){if(t<e){let i=o.firstChild;o=o.replaceChild(0,i.copy(Ov(i.content,t+1,e,r,i)));}if(t>r){let i=n.contentMatchAt(0),s=i.fillBefore(o).append(o);o=s.append(i.matchFragment(s).fillBefore(tt.empty,true));}return o}function w1(o,t,e,r){if(!r.isInline&&t==e&&o.doc.resolve(t).parent.content.size){let n=g1(o.doc,t,r.type);n!=null&&(t=e=n);}o.replaceRange(t,e,new yt(tt.from(r),0,0));}function x1(o,t,e){let r=o.doc.resolve(t),n=o.doc.resolve(e);if(r.parent.isTextblock&&n.parent.isTextblock&&r.start()!=n.start()&&r.parentOffset==0&&n.parentOffset==0){let s=r.sharedDepth(e),l=false;for(let a=r.depth;a>s;a--)r.node(a).type.spec.isolating&&(l=true);for(let a=n.depth;a>s;a--)n.node(a).type.spec.isolating&&(l=true);if(!l){for(let a=r.depth;a>0&&t==r.start(a);a--)t=r.before(a);for(let a=n.depth;a>0&&e==n.start(a);a--)e=n.before(a);r=o.doc.resolve(t),n=o.doc.resolve(e);}}let i=Fv(r,n);for(let s=0;s<i.length;s++){let l=i[s],a=s==i.length-1;if(a&&l==0||r.node(l).type.contentMatch.validEnd)return o.delete(r.start(l),n.end(l));if(l>0&&(a||r.node(l-1).canReplace(r.index(l-1),n.indexAfter(l-1))))return o.delete(r.before(l),n.after(l))}for(let s=1;s<=r.depth&&s<=n.depth;s++)if(t-r.start(s)==r.depth-s&&e>r.end(s)&&n.end(s)-e!=n.depth-s&&r.start(s-1)==n.start(s-1)&&r.node(s-1).canReplace(r.index(s-1),n.index(s-1)))return o.delete(r.before(s),e);o.delete(t,e);}function Fv(o,t){let e=[],r=Math.min(o.depth,t.depth);for(let n=r;n>=0;n--){let i=o.start(n);if(i<o.pos-(o.depth-n)||t.end(n)>t.pos+(t.depth-n)||o.node(n).type.spec.isolating||t.node(n).type.spec.isolating)break;(i==t.start(n)||n==o.depth&&n==t.depth&&o.parent.inlineContent&&t.parent.inlineContent&&n&&t.start(n-1)==i-1)&&e.push(n);}return e}var Pg=class o extends Kr{constructor(t,e,r){super(),this.pos=t,this.attr=e,this.value=r;}apply(t){let e=t.nodeAt(this.pos);if(!e)return no.fail("No node at attribute step's position");let r=Object.create(null);for(let i in e.attrs)r[i]=e.attrs[i];r[this.attr]=this.value;let n=e.type.create(r,null,e.marks);return no.fromReplace(t,this.pos,this.pos+1,new yt(tt.from(n),0,e.isLeaf?0:1))}getMap(){return Zs.empty}invert(t){return new o(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new o(e.pos,this.attr,this.value)}toJSON(){return {stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,e){if(typeof e.pos!="number"||typeof e.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new o(e.pos,e.attr,e.value)}};Kr.jsonID("attr",Pg);var Ag=class o extends Kr{constructor(t,e){super(),this.attr=t,this.value=e;}apply(t){let e=Object.create(null);for(let n in t.attrs)e[n]=t.attrs[n];e[this.attr]=this.value;let r=t.type.create(e,t.content,t.marks);return no.ok(r)}getMap(){return Zs.empty}invert(t){return new o(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return {stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,e){if(typeof e.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new o(e.attr,e.value)}};Kr.jsonID("docAttr",Ag);var np=class extends Error{};np=function o(t){let e=Error.call(this,t);return e.__proto__=o.prototype,e};np.prototype=Object.create(Error.prototype);np.prototype.constructor=np;np.prototype.name="TransformError";var iy=class{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new ry;}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let e=this.maybeStep(t);if(e.failed)throw new np(e.failed);return this}maybeStep(t){let e=t.apply(this.doc);return e.failed||this.addStep(t,e.doc),e}get docChanged(){return this.steps.length>0}changedRange(){let t=1e9,e=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let n=this.mapping.maps[r];r&&(t=n.map(t,1),e=n.map(e,-1)),n.forEach((i,s,l,a)=>{t=Math.min(t,l),e=Math.max(e,a);});}return t==1e9?null:{from:t,to:e}}addStep(t,e){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=e;}replace(t,e=t,r=yt.empty){let n=sy(this.doc,t,e,r);return n&&this.step(n),this}replaceWith(t,e,r){return this.replace(t,e,new yt(tt.from(r),0,0))}delete(t,e){return this.replace(t,e,yt.empty)}insert(t,e){return this.replaceWith(t,t,e)}replaceRange(t,e,r){return A1(this,t,e,r),this}replaceRangeWith(t,e,r){return w1(this,t,e,r),this}deleteRange(t,e){return x1(this,t,e),this}lift(t,e){return a1(this,t,e),this}join(t,e=1){return b1(this,t,e),this}wrap(t,e){return p1(this,t,e),this}setBlockType(t,e=t,r,n=null){return m1(this,t,e,r,n),this}setNodeMarkup(t,e,r=null,n){return y1(this,t,e,r,n),this}setNodeAttribute(t,e,r){return this.step(new Pg(t,e,r)),this}setDocAttribute(t,e){return this.step(new Ag(t,e)),this}addNodeMark(t,e){return this.step(new ny(t,e)),this}removeNodeMark(t,e){let r=this.doc.nodeAt(t);if(!r)throw new RangeError("No node at position "+t);if(e instanceof Oe)e.isInSet(r.marks)&&this.step(new op(t,e));else {let n=r.marks,i,s=[];for(;i=e.isInSet(n);)s.push(new op(t,i)),n=i.removeFromSet(n);for(let l=s.length-1;l>=0;l--)this.step(s[l]);}return this}split(t,e=1,r){return d1(this,t,e,r),this}addMark(t,e,r){return i1(this,t,e,r),this}removeMark(t,e,r){return s1(this,t,e,r),this}clearIncompatible(t,e,r){return rA(this,t,e,r),this}};g();g();g();var oA=Object.create(null),Vt=class{constructor(t,e,r){this.$anchor=t,this.$head=e,this.ranges=r||[new xg(t.min(e),t.max(e))];}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let e=0;e<t.length;e++)if(t[e].$from.pos!=t[e].$to.pos)return false;return true}content(){return this.$from.doc.slice(this.from,this.to,true)}replace(t,e=yt.empty){let r=e.content.lastChild,n=null;for(let l=0;l<e.openEnd;l++)n=r,r=r.lastChild;let i=t.steps.length,s=this.ranges;for(let l=0;l<s.length;l++){let{$from:a,$to:u}=s[l],c=t.mapping.slice(i);t.replaceRange(c.map(a.pos),c.map(u.pos),l?yt.empty:e),l==0&&Hv(t,i,(r?r.isInline:n&&n.isTextblock)?-1:1);}}replaceWith(t,e){let r=t.steps.length,n=this.ranges;for(let i=0;i<n.length;i++){let{$from:s,$to:l}=n[i],a=t.mapping.slice(r),u=a.map(s.pos),c=a.map(l.pos);i?t.deleteRange(u,c):(t.replaceRangeWith(u,c,e),Hv(t,r,e.isInline?-1:1));}}static findFrom(t,e,r=false){let n=t.parent.inlineContent?new At(t):sp(t.node(0),t.parent,t.pos,t.index(),e,r);if(n)return n;for(let i=t.depth-1;i>=0;i--){let s=e<0?sp(t.node(0),t.node(i),t.before(i+1),t.index(i),e,r):sp(t.node(0),t.node(i),t.after(i+1),t.index(i)+1,e,r);if(s)return s}return null}static near(t,e=1){return this.findFrom(t,e)||this.findFrom(t,-e)||new Fo(t.node(0))}static atStart(t){return sp(t,t,0,0,1)||new Fo(t)}static atEnd(t){return sp(t,t,t.content.size,t.childCount,-1)||new Fo(t)}static fromJSON(t,e){if(!e||!e.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=oA[e.type];if(!r)throw new RangeError(`No selection type ${e.type} defined`);return r.fromJSON(t,e)}static jsonID(t,e){if(t in oA)throw new RangeError("Duplicate use of selection JSON ID "+t);return oA[t]=e,e.prototype.jsonID=t,e}getBookmark(){return At.between(this.$anchor,this.$head).getBookmark()}};Vt.prototype.visible=true;var xg=class{constructor(t,e){this.$from=t,this.$to=e;}},Bv=false;function Vv(o){!Bv&&!o.parent.inlineContent&&(Bv=true,console.warn("TextSelection endpoint not pointing into a node with inline content ("+o.parent.type.name+")"));}var At=class o extends Vt{constructor(t,e=t){Vv(t),Vv(e),super(t,e);}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,e){let r=t.resolve(e.map(this.head));if(!r.parent.inlineContent)return Vt.near(r);let n=t.resolve(e.map(this.anchor));return new o(n.parent.inlineContent?n:r,r)}replace(t,e=yt.empty){if(super.replace(t,e),e==yt.empty){let r=this.$from.marksAcross(this.$to);r&&t.ensureMarks(r);}}eq(t){return t instanceof o&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new Eg(this.anchor,this.head)}toJSON(){return {type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,e){if(typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new o(t.resolve(e.anchor),t.resolve(e.head))}static create(t,e,r=e){let n=t.resolve(e);return new this(n,r==e?n:t.resolve(r))}static between(t,e,r){let n=t.pos-e.pos;if((!r||n)&&(r=n>=0?1:-1),!e.parent.inlineContent){let i=Vt.findFrom(e,r,true)||Vt.findFrom(e,-r,true);if(i)e=i.$head;else return Vt.near(e,r)}return t.parent.inlineContent||(n==0?t=e:(t=(Vt.findFrom(t,-r,true)||Vt.findFrom(t,r,true)).$anchor,t.pos<e.pos!=n<0&&(t=e))),new o(t,e)}};Vt.jsonID("text",At);var Eg=class o{constructor(t,e){this.anchor=t,this.head=e;}map(t){return new o(t.map(this.anchor),t.map(this.head))}resolve(t){return At.between(t.resolve(this.anchor),t.resolve(this.head))}},wt=class o extends Vt{constructor(t){let e=t.nodeAfter,r=t.node(0).resolve(t.pos+e.nodeSize);super(t,r),this.node=e;}map(t,e){let{deleted:r,pos:n}=e.mapResult(this.anchor),i=t.resolve(n);return r?Vt.near(i):new o(i)}content(){return new yt(tt.from(this.node),0,0)}eq(t){return t instanceof o&&t.anchor==this.anchor}toJSON(){return {type:"node",anchor:this.anchor}}getBookmark(){return new iA(this.anchor)}static fromJSON(t,e){if(typeof e.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new o(t.resolve(e.anchor))}static create(t,e){return new o(t.resolve(e))}static isSelectable(t){return !t.isText&&t.type.spec.selectable!==false}};wt.prototype.visible=false;Vt.jsonID("node",wt);var iA=class o{constructor(t){this.anchor=t;}map(t){let{deleted:e,pos:r}=t.mapResult(this.anchor);return e?new Eg(r,r):new o(r)}resolve(t){let e=t.resolve(this.anchor),r=e.nodeAfter;return r&&wt.isSelectable(r)?new wt(e):Vt.near(e)}},Fo=class o extends Vt{constructor(t){super(t.resolve(0),t.resolve(t.content.size));}replace(t,e=yt.empty){if(e==yt.empty){t.delete(0,t.doc.content.size);let r=Vt.atStart(t.doc);r.eq(t.selection)||t.setSelection(r);}else super.replace(t,e);}toJSON(){return {type:"all"}}static fromJSON(t){return new o(t)}map(t){return new o(t)}eq(t){return t instanceof o}getBookmark(){return E1}};Vt.jsonID("all",Fo);var E1={map(){return this},resolve(o){return new Fo(o)}};function sp(o,t,e,r,n,i=false){if(t.inlineContent)return At.create(o,e);for(let s=r-(n>0?0:1);n>0?s<t.childCount:s>=0;s+=n){let l=t.child(s);if(l.isAtom){if(!i&&wt.isSelectable(l))return wt.create(o,e-(n<0?l.nodeSize:0))}else {let a=sp(o,l,e+n,n<0?l.childCount:0,n,i);if(a)return a}e+=l.nodeSize*n;}return null}function Hv(o,t,e){let r=o.steps.length-1;if(r<t)return;let n=o.steps[r];if(!(n instanceof io||n instanceof kr))return;let i=o.mapping.maps[r],s;i.forEach((l,a,u,c)=>{s==null&&(s=c);}),o.setSelection(Vt.near(o.doc.resolve(s),e));}function Gv(o,t){return !t||!o?o:o.bind(t)}var lp=class{constructor(t,e,r){this.name=t,this.init=Gv(e.init,r),this.apply=Gv(e.apply,r);}};[new lp("doc",{init(o){return o.doc||o.schema.topNodeType.createAndFill()},apply(o){return o.doc}}),new lp("selection",{init(o,t){return o.selection||Vt.atStart(t.doc)},apply(o){return o.selection}}),new lp("storedMarks",{init(o){return o.storedMarks||null},apply(o,t,e,r){return r.selection.$cursor?o.storedMarks:null}}),new lp("scrollToSelection",{init(){return 0},apply(o,t){return o.scrolledIntoView?t+1:t}})];function Uv(o,t,e){for(let r in o){let n=o[r];n instanceof Function?n=n.bind(t):r=="handleDOMEvents"&&(n=Uv(n,t,{})),e[r]=n;}return e}var Dt=class{constructor(t){this.spec=t,this.props={},t.props&&Uv(t.props,this,this.props),this.key=t.key?t.key.key:Wv("plugin");}getState(t){return t[this.key]}},nA=Object.create(null);function Wv(o){return o in nA?o+"$"+ ++nA[o]:(nA[o]=0,o+"$")}var ne=class{constructor(t="key"){this.key=Wv(t);}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}};var _v=(o,t)=>o.selection.empty?false:(t&&t(o.tr.deleteSelection().scrollIntoView()),true);function $v(o,t){let{$cursor:e}=o.selection;return !e||(t?!t.endOfTextblock("backward",o):e.parentOffset>0)?null:e}var lA=(o,t,e)=>{let r=$v(o,e);if(!r)return false;let n=uA(r);if(!n){let s=r.blockRange(),l=s&&el(s);return l==null?false:(t&&t(o.tr.lift(s,l).scrollIntoView()),true)}let i=n.nodeBefore;if(tT(o,n,t,-1))return true;if(r.parent.content.size==0&&(ap(i,"end")||wt.isSelectable(i)))for(let s=r.depth;;s--){let l=sy(o.doc,r.before(s),r.after(s),yt.empty);if(l&&l.slice.size<l.to-l.from){if(t){let a=o.tr.step(l);a.setSelection(ap(i,"end")?Vt.findFrom(a.doc.resolve(a.mapping.map(n.pos,-1)),-1):wt.create(a.doc,n.pos-i.nodeSize)),t(a.scrollIntoView());}return true}if(s==1||r.node(s-1).childCount>1)break}return i.isAtom&&n.depth==r.depth-1?(t&&t(o.tr.delete(n.pos-i.nodeSize,n.pos).scrollIntoView()),true):false},Kv=(o,t,e)=>{let r=$v(o,e);if(!r)return false;let n=uA(r);return n?qv(o,n,t):false},jv=(o,t,e)=>{let r=Yv(o,e);if(!r)return false;let n=mA(r);return n?qv(o,n,t):false};function qv(o,t,e){let r=t.nodeBefore,n=r,i=t.pos-1;for(;!n.isTextblock;i--){if(n.type.spec.isolating)return false;let c=n.lastChild;if(!c)return false;n=c;}let s=t.nodeAfter,l=s,a=t.pos+1;for(;!l.isTextblock;a++){if(l.type.spec.isolating)return false;let c=l.firstChild;if(!c)return false;l=c;}let u=sy(o.doc,i,a,yt.empty);if(!u||u.from!=i||u instanceof io&&u.slice.size>=a-i)return false;if(e){let c=o.tr.step(u);c.setSelection(At.create(c.doc,i)),e(c.scrollIntoView());}return true}function ap(o,t,e=false){for(let r=o;r;r=t=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return true;if(e&&r.childCount!=1)return false}return false}var aA=(o,t,e)=>{let{$head:r,empty:n}=o.selection,i=r;if(!n)return false;if(r.parent.isTextblock){if(e?!e.endOfTextblock("backward",o):r.parentOffset>0)return false;i=uA(r);}let s=i&&i.nodeBefore;return !s||!wt.isSelectable(s)?false:(t&&t(o.tr.setSelection(wt.create(o.doc,i.pos-s.nodeSize)).scrollIntoView()),true)};function uA(o){if(!o.parent.type.spec.isolating)for(let t=o.depth-1;t>=0;t--){if(o.index(t)>0)return o.doc.resolve(o.before(t+1));if(o.node(t).type.spec.isolating)break}return null}function Yv(o,t){let{$cursor:e}=o.selection;return !e||(t?!t.endOfTextblock("forward",o):e.parentOffset<e.parent.content.size)?null:e}var cA=(o,t,e)=>{let r=Yv(o,e);if(!r)return false;let n=mA(r);if(!n)return false;let i=n.nodeAfter;if(tT(o,n,t,1))return true;if(r.parent.content.size==0&&(ap(i,"start")||wt.isSelectable(i))){let s=sy(o.doc,r.before(),r.after(),yt.empty);if(s&&s.slice.size<s.to-s.from){if(t){let l=o.tr.step(s);l.setSelection(ap(i,"start")?Vt.findFrom(l.doc.resolve(l.mapping.map(n.pos)),1):wt.create(l.doc,l.mapping.map(n.pos))),t(l.scrollIntoView());}return true}}return i.isAtom&&n.depth==r.depth-1?(t&&t(o.tr.delete(n.pos,n.pos+i.nodeSize).scrollIntoView()),true):false},pA=(o,t,e)=>{let{$head:r,empty:n}=o.selection,i=r;if(!n)return false;if(r.parent.isTextblock){if(e?!e.endOfTextblock("forward",o):r.parentOffset<r.parent.content.size)return false;i=mA(r);}let s=i&&i.nodeAfter;return !s||!wt.isSelectable(s)?false:(t&&t(o.tr.setSelection(wt.create(o.doc,i.pos)).scrollIntoView()),true)};function mA(o){if(!o.parent.type.spec.isolating)for(let t=o.depth-1;t>=0;t--){let e=o.node(t);if(o.index(t)+1<e.childCount)return o.doc.resolve(o.after(t+1));if(e.type.spec.isolating)break}return null}var Qv=(o,t)=>{let e=o.selection,r=e instanceof wt,n;if(r){if(e.node.isTextblock||!$n(o.doc,e.from))return false;n=e.from;}else if(n=Fu(o.doc,e.from,-1),n==null)return false;if(t){let i=o.tr.join(n);r&&i.setSelection(wt.create(i.doc,n-o.doc.resolve(n).nodeBefore.nodeSize)),t(i.scrollIntoView());}return true},Jv=(o,t)=>{let e=o.selection,r;if(e instanceof wt){if(e.node.isTextblock||!$n(o.doc,e.to))return false;r=e.to;}else if(r=Fu(o.doc,e.to,1),r==null)return false;return t&&t(o.tr.join(r).scrollIntoView()),true},Xv=(o,t)=>{let{$from:e,$to:r}=o.selection,n=e.blockRange(r),i=n&&el(n);return i==null?false:(t&&t(o.tr.lift(n,i).scrollIntoView()),true)},hA=(o,t)=>{let{$head:e,$anchor:r}=o.selection;return !e.parent.type.spec.code||!e.sameParent(r)?false:(t&&t(o.tr.insertText(`
10
+ `).scrollIntoView()),true)};function yA(o){for(let t=0;t<o.edgeCount;t++){let{type:e}=o.edge(t);if(e.isTextblock&&!e.hasRequiredAttrs())return e}return null}var dA=(o,t)=>{let{$head:e,$anchor:r}=o.selection;if(!e.parent.type.spec.code||!e.sameParent(r))return false;let n=e.node(-1),i=e.indexAfter(-1),s=yA(n.contentMatchAt(i));if(!s||!n.canReplaceWith(i,i,s))return false;if(t){let l=e.after(),a=o.tr.replaceWith(l,l,s.createAndFill());a.setSelection(Vt.near(a.doc.resolve(l),1)),t(a.scrollIntoView());}return true},fA=(o,t)=>{let e=o.selection,{$from:r,$to:n}=e;if(e instanceof Fo||r.parent.inlineContent||n.parent.inlineContent)return false;let i=yA(n.parent.contentMatchAt(n.indexAfter()));if(!i||!i.isTextblock)return false;if(t){let s=(!r.parentOffset&&n.index()<n.parent.childCount?r:n).pos,l=o.tr.insert(s,i.createAndFill());l.setSelection(At.create(l.doc,s+1)),t(l.scrollIntoView());}return true},bA=(o,t)=>{let{$cursor:e}=o.selection;if(!e||e.parent.content.size)return false;if(e.depth>1&&e.after()!=e.end(-1)){let i=e.before();if(Tn(o.doc,i))return t&&t(o.tr.split(i).scrollIntoView()),true}let r=e.blockRange(),n=r&&el(r);return n==null?false:(t&&t(o.tr.lift(r,n).scrollIntoView()),true)};function v1(o){return (t,e)=>{let{$from:r,$to:n}=t.selection;if(t.selection instanceof wt&&t.selection.node.isBlock)return !r.parentOffset||!Tn(t.doc,r.pos)?false:(e&&e(t.tr.split(r.pos).scrollIntoView()),true);if(!r.depth)return false;let i=[],s,l,a=false,u=false;for(let d=r.depth;;d--)if(r.node(d).isBlock){a=r.end(d)==r.pos+(r.depth-d),u=r.start(d)==r.pos-(r.depth-d),l=yA(r.node(d-1).contentMatchAt(r.indexAfter(d-1)));i.unshift((a&&l?{type:l}:null)),s=d;break}else {if(d==1)return false;i.unshift(null);}let c=t.tr;(t.selection instanceof At||t.selection instanceof Fo)&&c.deleteSelection();let h=c.mapping.map(r.pos),f=Tn(c.doc,h,i.length,i);if(f||(i[0]=l?{type:l}:null,f=Tn(c.doc,h,i.length,i)),!f)return false;if(c.split(h,i.length,i),!a&&u&&r.node(s).type!=l){let d=c.mapping.map(r.before(s)),g=c.doc.resolve(d);l&&r.node(s-1).canReplaceWith(g.index(),g.index()+1,l)&&c.setNodeMarkup(c.mapping.map(r.before(s)),l);}return e&&e(c.scrollIntoView()),true}}var T1=v1();var Zv=(o,t)=>{let{$from:e,to:r}=o.selection,n,i=e.sharedDepth(r);return i==0?false:(n=e.before(i),t&&t(o.tr.setSelection(wt.create(o.doc,n))),true)};function k1(o,t,e){let r=t.nodeBefore,n=t.nodeAfter,i=t.index();return !r||!n||!r.type.compatibleContent(n.type)?false:!r.content.size&&t.parent.canReplace(i-1,i)?(e&&e(o.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),true):!t.parent.canReplace(i,i+1)||!(n.isTextblock||$n(o.doc,t.pos))?false:(e&&e(o.tr.join(t.pos).scrollIntoView()),true)}function tT(o,t,e,r){let n=t.nodeBefore,i=t.nodeAfter,s,l,a=n.type.spec.isolating||i.type.spec.isolating;if(!a&&k1(o,t,e))return true;let u=!a&&t.parent.canReplace(t.index(),t.index()+1);if(u&&(s=(l=n.contentMatchAt(n.childCount)).findWrapping(i.type))&&l.matchType(s[0]||i.type).validEnd){if(e){let d=t.pos+i.nodeSize,g=tt.empty;for(let T=s.length-1;T>=0;T--)g=tt.from(s[T].create(null,g));g=tt.from(n.copy(g));let A=o.tr.step(new kr(t.pos-1,d,t.pos,d,new yt(g,1,0),s.length,true)),w=A.doc.resolve(d+2*s.length);w.nodeAfter&&w.nodeAfter.type==n.type&&$n(A.doc,w.pos)&&A.join(w.pos),e(A.scrollIntoView());}return true}let c=i.type.spec.isolating||r>0&&a?null:Vt.findFrom(t,1),h=c&&c.$from.blockRange(c.$to),f=h&&el(h);if(f!=null&&f>=t.depth)return e&&e(o.tr.lift(h,f).scrollIntoView()),true;if(u&&ap(i,"start",true)&&ap(n,"end")){let d=n,g=[];for(;g.push(d),!d.isTextblock;)d=d.lastChild;let A=i,w=1;for(;!A.isTextblock;A=A.firstChild)w++;if(d.canReplace(d.childCount,d.childCount,A.content)){if(e){let T=tt.empty;for(let J=g.length-1;J>=0;J--)T=tt.from(g[J].copy(T));let G=o.tr.step(new kr(t.pos-g.length,t.pos+i.nodeSize,t.pos+w,t.pos+i.nodeSize-w,new yt(T,g.length,0),0,true));e(G.scrollIntoView());}return true}}return false}function eT(o){return function(t,e){let r=t.selection,n=o<0?r.$from:r.$to,i=n.depth;for(;n.node(i).isInline;){if(!i)return false;i--;}return n.node(i).isTextblock?(e&&e(t.tr.setSelection(At.create(t.doc,o<0?n.start(i):n.end(i)))),true):false}}var gA=eT(-1),SA=eT(1);function rT(o,t=null){return function(e,r){let{$from:n,$to:i}=e.selection,s=n.blockRange(i),l=s&&ip(s,o,t);return l?(r&&r(e.tr.wrap(s,l).scrollIntoView()),true):false}}function PA(o,t=null){return function(e,r){let n=false;for(let i=0;i<e.selection.ranges.length&&!n;i++){let{$from:{pos:s},$to:{pos:l}}=e.selection.ranges[i];e.doc.nodesBetween(s,l,(a,u)=>{if(n)return false;if(!(!a.isTextblock||a.hasMarkup(o,t)))if(a.type==o)n=true;else {let c=e.doc.resolve(u),h=c.index();n=c.parent.canReplaceWith(h,h+1,o);}});}if(!n)return false;if(r){let i=e.tr;for(let s=0;s<e.selection.ranges.length;s++){let{$from:{pos:l},$to:{pos:a}}=e.selection.ranges[s];i.setBlockType(l,a,o,t);}r(i.scrollIntoView());}return true}}function AA(...o){return function(t,e,r){for(let n=0;n<o.length;n++)if(o[n](t,e,r))return true;return false}}AA(_v,lA,aA);AA(_v,cA,pA);({Enter:AA(hA,fA,bA,T1)});typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform?os.platform()=="darwin":false;g();g();g();g();function oT(o,t=null){return function(e,r){let{$from:n,$to:i}=e.selection,s=n.blockRange(i);if(!s)return false;let l=r?e.tr:null;return L1(l,s,o,t)?(r&&r(l.scrollIntoView()),true):false}}function L1(o,t,e,r=null){let n=false,i=t,s=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(e)&&t.startIndex==0){if(t.$from.index(t.depth-1)==0)return false;let a=s.resolve(t.start-2);i=new Du(a,a,t.depth),t.endIndex<t.parent.childCount&&(t=new Du(t.$from,s.resolve(t.$to.end(t.depth)),t.depth)),n=true;}let l=ip(i,e,r,t);return l?(o&&M1(o,t,l,n,e),true):false}function M1(o,t,e,r,n){let i=tt.empty;for(let c=e.length-1;c>=0;c--)i=tt.from(e[c].type.create(e[c].attrs,i));o.step(new kr(t.start-(r?2:0),t.end,t.start,t.end,new yt(i,0,0),e.length,true));let s=0;for(let c=0;c<e.length;c++)e[c].type==n&&(s=c+1);let l=e.length-s,a=t.start+e.length-(r?2:0),u=t.parent;for(let c=t.startIndex,h=t.endIndex,f=true;c<h;c++,f=false)!f&&Tn(o.doc,a,l)&&(o.split(a,l),a+=2*l),a+=u.child(c).nodeSize;return o}function nT(o){return function(t,e){let{$from:r,$to:n}=t.selection,i=r.blockRange(n,s=>s.childCount>0&&s.firstChild.type==o);return i?e?r.node(i.depth-1).type==o?I1(t,e,o,i):R1(t,e,i):true:false}}function I1(o,t,e,r){let n=o.tr,i=r.end,s=r.$to.end(r.depth);i<s&&(n.step(new kr(i-1,s,i,s,new yt(tt.from(e.create(null,r.parent.copy())),1,0),1,true)),r=new Du(n.doc.resolve(r.$from.pos),n.doc.resolve(s),r.depth));let l=el(r);if(l==null)return false;n.lift(r,l);let a=n.doc.resolve(n.mapping.map(i,-1)-1);return $n(n.doc,a.pos)&&a.nodeBefore.type==a.nodeAfter.type&&n.join(a.pos),t(n.scrollIntoView()),true}function R1(o,t,e){let r=o.tr,n=e.parent;for(let d=e.end,g=e.endIndex-1,A=e.startIndex;g>A;g--)d-=n.child(g).nodeSize,r.delete(d-1,d+1);let i=r.doc.resolve(e.start),s=i.nodeAfter;if(r.mapping.map(e.end)!=e.start+i.nodeAfter.nodeSize)return false;let l=e.startIndex==0,a=e.endIndex==n.childCount,u=i.node(-1),c=i.index(-1);if(!u.canReplace(c+(l?0:1),c+1,s.content.append(a?tt.empty:tt.from(n))))return false;let h=i.pos,f=h+s.nodeSize;return r.step(new kr(h-(l?1:0),f+(a?1:0),h+1,f-1,new yt((l?tt.empty:tt.from(n.copy(tt.empty))).append(a?tt.empty:tt.from(n.copy(tt.empty))),l?0:1,a?0:1),l?0:1)),t(r.scrollIntoView()),true}function iT(o){return function(t,e){let{$from:r,$to:n}=t.selection,i=r.blockRange(n,u=>u.childCount>0&&u.firstChild.type==o);if(!i)return false;let s=i.startIndex;if(s==0)return false;let l=i.parent,a=l.child(s-1);if(a.type!=o)return false;if(e){let u=a.lastChild&&a.lastChild.type==l.type,c=tt.from(u?o.create():null),h=new yt(tt.from(o.create(null,tt.from(l.type.create(null,c)))),u?3:1,0),f=i.start,d=i.end;e(t.tr.step(new kr(f-(u?3:1),d,f,d,h,1,true)).scrollIntoView());}return true}}g();g();var so=function(o){for(var t=0;;t++)if(o=o.previousSibling,!o)return t},_u=function(o,t,e,r){return e&&(sT(o,t,e,r,-1)||sT(o,t,e,r,1))},O1=/^(img|br|input|textarea|hr)$/i;function sT(o,t,e,r,n){for(var i;;){if(o==e&&t==r)return true;if(t==(n<0?0:jn(o))){let s=o.parentNode;if(!s||s.nodeType!=1||hy(o)||O1.test(o.nodeName)||o.contentEditable=="false")return false;t=so(o)+(n<0?0:1),o=s;}else if(o.nodeType==1){let s=o.childNodes[t+(n<0?-1:0)];if(s.nodeType==1&&s.contentEditable=="false")if(!((i=s.pmViewDesc)===null||i===void 0)&&i.ignoreForSelection)t+=n;else return false;else o=s,t=n<0?jn(o):0;}else return false}}function jn(o){return o.nodeType==3?o.nodeValue.length:o.childNodes.length}function V1(o,t,e){for(let r=t==0,n=t==jn(o);r||n;){if(o==e)return true;let i=so(o);if(o=o.parentNode,!o)return false;r=r&&i==0,n=n&&i==jn(o);}}function hy(o){let t;for(let e=o;e&&!(t=e.pmViewDesc);e=e.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==o||t.contentDOM==o)}var Bg=function(o){return o.focusNode&&_u(o.focusNode,o.focusOffset,o.anchorNode,o.anchorOffset)};function Bu(o,t){let e=document.createEvent("Event");return e.initEvent("keydown",true,true),e.keyCode=o,e.key=e.code=t,e}var Qi=typeof navigator<"u"?navigator:null,lT=typeof document<"u"?document:null,ba=Qi&&Qi.userAgent||"",kA=/Edge\/(\d+)/.exec(ba),FT=/MSIE \d/.exec(ba),NA=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ba),hn=!!(FT||NA||kA),da=FT?document.documentMode:NA?+NA[1]:kA?+kA[1]:0,qn=!hn&&/gecko\/(\d+)/i.test(ba);qn&&+(/Firefox\/(\d+)/.exec(ba)||[0,0])[1];var LA=!hn&&/Chrome\/(\d+)/.exec(ba),jr=!!LA,BT=LA?+LA[1]:0,vo=!hn&&!!Qi&&/Apple Computer/.test(Qi.vendor),hp=vo&&(/Mobile\/\w+/.test(ba)||!!Qi&&Qi.maxTouchPoints>2),Kn=hp||(Qi?/Mac/.test(Qi.platform):false),VT=Qi?/Win/.test(Qi.platform):false,nl=/Android \d/.test(ba),yy=!!lT&&"webkitFontSmoothing"in lT.documentElement.style,U1=yy?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function qA(o,t=null){let e=o.domSelectionRange(),r=o.state.doc;if(!e.focusNode)return null;let n=o.docView.nearestDesc(e.focusNode),i=n&&n.size==0,s=o.docView.posFromDOM(e.focusNode,e.focusOffset,1);if(s<0)return null;let l=r.resolve(s),a,u;if(Bg(e)){for(a=s;n&&!n.node;)n=n.parent;let h=n.node;if(n&&h.isAtom&&wt.isSelectable(h)&&n.parent&&!(h.isInline&&V1(e.focusNode,e.focusOffset,n.dom))){let f=n.posBefore;u=new wt(s==f?l:r.resolve(f));}}else {if(e instanceof o.dom.ownerDocument.defaultView.Selection&&e.rangeCount>1){let h=s,f=s;for(let d=0;d<e.rangeCount;d++){let g=e.getRangeAt(d);h=Math.min(h,o.docView.posFromDOM(g.startContainer,g.startOffset,1)),f=Math.max(f,o.docView.posFromDOM(g.endContainer,g.endOffset,-1));}if(h<0)return null;[a,s]=f==o.state.selection.anchor?[f,h]:[h,f],l=r.resolve(s);}else a=o.docView.posFromDOM(e.anchorNode,e.anchorOffset,1);if(a<0)return null}let c=r.resolve(a);if(!u){let h=t=="pointer"||o.state.selection.head<l.pos&&!i?1:-1;u=YA(o,c,l,h);}return u}function qT(o){return o.editable?o.hasFocus():QT(o)&&document.activeElement&&document.activeElement.contains(o.dom)}function sl(o,t=false){let e=o.state.selection;if(YT(o,e),!qT(o))return;let r=o.input.mouseDown;if(!t&&jr&&r){let n=o.domSelectionRange(),i=o.domObserver.currentSelection;if(n.anchorNode&&i.anchorNode&&_u(n.anchorNode,n.anchorOffset,i.anchorNode,i.anchorOffset)&&r.delaySelUpdate()){o.domObserver.setCurSelection();return}}if(o.domObserver.disconnectSelection(),o.cursorWrapper)cL(o);else {let{anchor:n,head:i}=e,s,l;dT&&!(e instanceof At)&&(e.$from.parent.inlineContent||(s=fT(o,e.from)),!e.empty&&!e.$from.parent.inlineContent&&(l=fT(o,e.to))),o.docView.setSelection(n,i,o,t),dT&&(s&&bT(s),l&&bT(l)),e.visible?o.dom.classList.remove("ProseMirror-hideselection"):(o.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&uL(o));}o.domObserver.setCurSelection(),o.domObserver.connectSelection();}var dT=vo||jr&&BT<63;function fT(o,t){let{node:e,offset:r}=o.docView.domFromPos(t,0),n=r<e.childNodes.length?e.childNodes[r]:null,i=r?e.childNodes[r-1]:null;if(vo&&n&&n.contentEditable=="false")return xA(n);if((!n||n.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(n)return xA(n);if(i)return xA(i)}}function xA(o){return o.contentEditable="true",vo&&o.draggable&&(o.draggable=false,o.wasDraggable=true),o}function bT(o){o.contentEditable="false",o.wasDraggable&&(o.draggable=true,o.wasDraggable=null);}function uL(o){let t=o.dom.ownerDocument;t.removeEventListener("selectionchange",o.input.hideSelectionGuard);let e=o.domSelectionRange(),r=e.anchorNode,n=e.anchorOffset;t.addEventListener("selectionchange",o.input.hideSelectionGuard=()=>{(e.anchorNode!=r||e.anchorOffset!=n)&&(t.removeEventListener("selectionchange",o.input.hideSelectionGuard),setTimeout(()=>{(!qT(o)||o.state.selection.visible)&&o.dom.classList.remove("ProseMirror-hideselection");},20));});}function cL(o){let t=o.domSelection();if(!t)return;let e=o.cursorWrapper.dom,r=e.nodeName=="IMG";r?t.collapse(e.parentNode,so(e)+1):t.collapse(e,0),!r&&!o.state.selection.visible&&hn&&da<=11&&(e.disabled=true,e.disabled=false);}function YT(o,t){if(t instanceof wt){let e=o.docView.descAt(t.from);e!=o.lastSelectedViewDesc&&(gT(o),e&&e.selectNode(),o.lastSelectedViewDesc=e);}else gT(o);}function gT(o){o.lastSelectedViewDesc&&(o.lastSelectedViewDesc.parent&&o.lastSelectedViewDesc.deselectNode(),o.lastSelectedViewDesc=void 0);}function YA(o,t,e,r){return o.someProp("createSelectionBetween",n=>n(o,t,e))||At.between(t,e,r)}function QT(o){let t=o.domSelectionRange();if(!t.anchorNode)return false;try{return o.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(o.editable||o.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return false}}function BA(o,t){let{$anchor:e,$head:r}=o.selection,n=t>0?e.max(r):e.min(r),i=n.parent.inlineContent?n.depth?o.doc.resolve(t>0?n.after():n.before()):null:n;return i&&Vt.findFrom(i,t)}function ya(o,t){return o.dispatch(o.state.tr.setSelection(t).scrollIntoView()),true}function PT(o,t,e){let r=o.state.selection;if(r instanceof At)if(e.indexOf("s")>-1){let{$head:n}=r,i=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter;if(!i||i.isText||!i.isLeaf)return false;let s=o.state.doc.resolve(n.pos+i.nodeSize*(t<0?-1:1));return ya(o,new At(r.$anchor,s))}else if(r.empty){if(o.endOfTextblock(t>0?"forward":"backward")){let n=BA(o.state,t);return n&&n instanceof wt?ya(o,n):false}else if(!(Kn&&e.indexOf("m")>-1)){let n=r.$head,i=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter,s;if(!i||i.isText)return false;let l=t<0?n.pos-i.nodeSize:n.pos;return i.isAtom||(s=o.docView.descAt(l))&&!s.contentDOM?wt.isSelectable(i)?ya(o,new wt(t<0?o.state.doc.resolve(n.pos-i.nodeSize):n)):yy?ya(o,new At(o.state.doc.resolve(t<0?l:l+i.nodeSize))):false:false}}else return false;else {if(r instanceof wt&&r.node.isInline)return ya(o,new At(t>0?r.$to:r.$from));{let n=BA(o.state,t);return n?ya(o,n):false}}}function Ng(o){return o.nodeType==3?o.nodeValue.length:o.childNodes.length}function uy(o,t){let e=o.pmViewDesc;return e&&e.size==0&&(t<0||o.nextSibling||o.nodeName!="BR")}function cp(o,t){return t<0?mL(o):hL(o)}function mL(o){let t=o.domSelectionRange(),e=t.focusNode,r=t.focusOffset;if(!e)return;let n,i,s=false;for(qn&&e.nodeType==1&&r<Ng(e)&&uy(e.childNodes[r],-1)&&(s=true);;)if(r>0){if(e.nodeType!=1)break;{let l=e.childNodes[r-1];if(uy(l,-1))n=e,i=--r;else if(l.nodeType==3)e=l,r=e.nodeValue.length;else break}}else {if(JT(e))break;{let l=e.previousSibling;for(;l&&uy(l,-1);)n=e.parentNode,i=so(l),l=l.previousSibling;if(l)e=l,r=Ng(e);else {if(e=e.parentNode,e==o.dom)break;r=0;}}}s?VA(o,e,r):n&&VA(o,n,i);}function hL(o){let t=o.domSelectionRange(),e=t.focusNode,r=t.focusOffset;if(!e)return;let n=Ng(e),i,s;for(;;)if(r<n){if(e.nodeType!=1)break;let l=e.childNodes[r];if(uy(l,1))i=e,s=++r;else break}else {if(JT(e))break;{let l=e.nextSibling;for(;l&&uy(l,1);)i=l.parentNode,s=so(l)+1,l=l.nextSibling;if(l)e=l,r=0,n=Ng(e);else {if(e=e.parentNode,e==o.dom)break;r=n=0;}}}i&&VA(o,i,s);}function JT(o){let t=o.pmViewDesc;return t&&t.node&&t.node.isBlock}function yL(o,t){for(;o&&t==o.childNodes.length&&!hy(o);)t=so(o)+1,o=o.parentNode;for(;o&&t<o.childNodes.length;){let e=o.childNodes[t];if(e.nodeType==3)return e;if(e.nodeType==1&&e.contentEditable=="false")break;o=e,t=0;}}function dL(o,t){for(;o&&!t&&!hy(o);)t=so(o),o=o.parentNode;for(;o&&t;){let e=o.childNodes[t-1];if(e.nodeType==3)return e;if(e.nodeType==1&&e.contentEditable=="false")break;o=e,t=o.childNodes.length;}}function VA(o,t,e){if(t.nodeType!=3){let i,s;(s=yL(t,e))?(t=s,e=0):(i=dL(t,e))&&(t=i,e=i.nodeValue.length);}let r=o.domSelection();if(!r)return;if(Bg(r)){let i=document.createRange();i.setEnd(t,e),i.setStart(t,e),r.removeAllRanges(),r.addRange(i);}else r.extend&&r.extend(t,e);o.domObserver.setCurSelection();let{state:n}=o;setTimeout(()=>{o.state==n&&sl(o);},50);}function AT(o,t){let e=o.state.doc.resolve(t);if(!(jr||VT)&&e.parent.inlineContent){let n=o.coordsAtPos(t);if(t>e.start()){let i=o.coordsAtPos(t-1),s=(i.top+i.bottom)/2;if(s>n.top&&s<n.bottom&&Math.abs(i.left-n.left)>1)return i.left<n.left?"ltr":"rtl"}if(t<e.end()){let i=o.coordsAtPos(t+1),s=(i.top+i.bottom)/2;if(s>n.top&&s<n.bottom&&Math.abs(i.left-n.left)>1)return i.left>n.left?"ltr":"rtl"}}return getComputedStyle(o.dom).direction=="rtl"?"rtl":"ltr"}function wT(o,t,e){let r=o.state.selection;if(r instanceof At&&!r.empty||e.indexOf("s")>-1||Kn&&e.indexOf("m")>-1)return false;let{$from:n,$to:i}=r;if(!n.parent.inlineContent||o.endOfTextblock(t<0?"up":"down")){let s=BA(o.state,t);if(s&&s instanceof wt)return ya(o,s)}if(!n.parent.inlineContent){let s=t<0?n:i,l=r instanceof Fo?Vt.near(s,t):Vt.findFrom(s,t);return l?ya(o,l):false}return false}function xT(o,t){if(!(o.state.selection instanceof At))return true;let{$head:e,$anchor:r,empty:n}=o.state.selection;if(!e.sameParent(r))return true;if(!n)return false;if(o.endOfTextblock(t>0?"forward":"backward"))return true;let i=!e.textOffset&&(t<0?e.nodeBefore:e.nodeAfter);if(i&&!i.isText){let s=o.state.tr;return t<0?s.delete(e.pos-i.nodeSize,e.pos):s.delete(e.pos,e.pos+i.nodeSize),o.dispatch(s),true}return false}function ET(o,t,e){o.domObserver.stop(),t.contentEditable=e,o.domObserver.start();}function fL(o){if(!vo||o.state.selection.$head.parentOffset>0)return false;let{focusNode:t,focusOffset:e}=o.domSelectionRange();if(t&&t.nodeType==1&&e==0&&t.firstChild&&t.firstChild.contentEditable=="false"){let r=t.firstChild;ET(o,r,"true"),setTimeout(()=>ET(o,r,"false"),20);}return false}function bL(o){let t="";return o.ctrlKey&&(t+="c"),o.metaKey&&(t+="m"),o.altKey&&(t+="a"),o.shiftKey&&(t+="s"),t}function gL(o,t){let e=t.keyCode,r=bL(t);if(e==8||Kn&&e==72&&r=="c")return xT(o,-1)||cp(o,-1);if(e==46&&!t.shiftKey||Kn&&e==68&&r=="c")return xT(o,1)||cp(o,1);if(e==13||e==27)return true;if(e==37||Kn&&e==66&&r=="c"){let n=e==37?AT(o,o.state.selection.from)=="ltr"?-1:1:-1;return PT(o,n,r)||cp(o,n)}else if(e==39||Kn&&e==70&&r=="c"){let n=e==39?AT(o,o.state.selection.from)=="ltr"?1:-1:1;return PT(o,n,r)||cp(o,n)}else {if(e==38||Kn&&e==80&&r=="c")return wT(o,-1,r)||cp(o,-1);if(e==40||Kn&&e==78&&r=="c")return fL(o)||wT(o,1,r)||cp(o,1);if(r==(Kn?"m":"c")&&(e==66||e==73||e==89||e==90))return true}return false}function QA(o,t){o.someProp("transformCopied",d=>{t=d(t,o);});let e=[],{content:r,openStart:n,openEnd:i}=t;for(;n>1&&i>1&&r.childCount==1&&r.firstChild.childCount==1;){n--,i--;let d=r.firstChild;e.push(d.type.name,d.attrs!=d.type.defaultAttrs?d.attrs:null),r=d.content;}let s=o.someProp("clipboardSerializer")||_n.fromSchema(o.state.schema),l=oC(),a=l.createElement("div");a.appendChild(s.serializeFragment(r,{document:l}));let u=a.firstChild,c,h=0;for(;u&&u.nodeType==1&&(c=rC[u.nodeName.toLowerCase()]);){for(let d=c.length-1;d>=0;d--){let g=l.createElement(c[d]);for(;a.firstChild;)g.appendChild(a.firstChild);a.appendChild(g),h++;}u=a.firstChild;}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${n} ${i}${h?` -${h}`:""} ${JSON.stringify(e)}`);let f=o.someProp("clipboardTextSerializer",d=>d(t,o))||t.content.textBetween(0,t.content.size,`
11
+
12
+ `);return {dom:a,text:f,slice:t}}function XT(o,t,e,r,n){let i=n.parent.type.spec.code,s,l;if(!e&&!t)return null;let a=!!t&&(r||i||!e);if(a){if(o.someProp("transformPastedText",f=>{t=f(t,i||r,o);}),i)return l=new yt(tt.from(o.state.schema.text(t.replace(/\r\n?/g,`
13
+ `))),0,0),o.someProp("transformPasted",f=>{l=f(l,o,true);}),l;let h=o.someProp("clipboardTextParser",f=>f(t,n,r,o));if(h)l=h;else {let f=n.marks(),{schema:d}=o.state,g=_n.fromSchema(d);s=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(A=>{let w=s.appendChild(document.createElement("p"));A&&w.appendChild(g.serializeNode(d.text(A,f)));});}}else o.someProp("transformPastedHTML",h=>{e=h(e,o);}),s=wL(e),yy&&xL(s);let u=s&&s.querySelector("[data-pm-slice]"),c=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let h=+c[3];h>0;h--){let f=s.firstChild;for(;f&&f.nodeType!=1;)f=f.nextSibling;if(!f)break;s=f;}if(l||(l=(o.someProp("clipboardParser")||o.someProp("domParser")||wi.fromSchema(o.state.schema)).parseSlice(s,{preserveWhitespace:!!(a||c),context:n,ruleFromNode(f){return f.nodeName=="BR"&&!f.nextSibling&&f.parentNode&&!SL.test(f.parentNode.nodeName)?{ignore:true}:null}})),c)l=EL(vT(l,+c[1],+c[2]),c[4]);else if(l=yt.maxOpen(PL(l.content,n),true),l.openStart||l.openEnd){let h=0,f=0;for(let d=l.content.firstChild;h<l.openStart&&!d.type.spec.isolating;h++,d=d.firstChild);for(let d=l.content.lastChild;f<l.openEnd&&!d.type.spec.isolating;f++,d=d.lastChild);l=vT(l,h,f);}return o.someProp("transformPasted",h=>{l=h(l,o,a);}),l}var SL=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function PL(o,t){if(o.childCount<2)return o;for(let e=t.depth;e>=0;e--){let n=t.node(e).contentMatchAt(t.index(e)),i,s=[];if(o.forEach(l=>{if(!s)return;let a=n.findWrapping(l.type),u;if(!a)return s=null;if(u=s.length&&i.length&&tC(a,i,l,s[s.length-1],0))s[s.length-1]=u;else {s.length&&(s[s.length-1]=eC(s[s.length-1],i.length));let c=ZT(l,a);s.push(c),n=n.matchType(c.type),i=a;}}),s)return tt.from(s)}return o}function ZT(o,t,e=0){for(let r=t.length-1;r>=e;r--)o=t[r].create(null,tt.from(o));return o}function tC(o,t,e,r,n){if(n<o.length&&n<t.length&&o[n]==t[n]){let i=tC(o,t,e,r.lastChild,n+1);if(i)return r.copy(r.content.replaceChild(r.childCount-1,i));if(r.contentMatchAt(r.childCount).matchType(n==o.length-1?e.type:o[n+1]))return r.copy(r.content.append(tt.from(ZT(e,o,n+1))))}}function eC(o,t){if(t==0)return o;let e=o.content.replaceChild(o.childCount-1,eC(o.lastChild,t-1)),r=o.contentMatchAt(o.childCount).fillBefore(tt.empty,true);return o.copy(e.append(r))}function HA(o,t,e,r,n,i){let s=t<0?o.firstChild:o.lastChild,l=s.content;return o.childCount>1&&(i=0),n<r-1&&(l=HA(l,t,e,r,n+1,i)),n>=e&&(l=t<0?s.contentMatchAt(0).fillBefore(l,i<=n).append(l):l.append(s.contentMatchAt(s.childCount).fillBefore(tt.empty,true))),o.replaceChild(t<0?0:o.childCount-1,s.copy(l))}function vT(o,t,e){return t<o.openStart&&(o=new yt(HA(o.content,-1,t,o.openStart,0,o.openEnd),t,o.openEnd)),e<o.openEnd&&(o=new yt(HA(o.content,1,e,o.openEnd,0,0),o.openStart,e)),o}var rC={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};function oC(){return document.implementation.createHTMLDocument("title")}var EA=null;function AL(o){let t=window.trustedTypes;return t?(EA||(EA=t.defaultPolicy||t.createPolicy("ProseMirrorClipboard",{createHTML:e=>e})),EA.createHTML(o)):o}function wL(o){let t=/^(\s*<meta [^>]*>)*/.exec(o);t&&(o=o.slice(t[0].length));let e=oC(),r=e.body,n=/<([a-z][^>\s]+)/i.exec(o),i;if((i=n&&rC[n[1].toLowerCase()])&&(o=i.map(s=>"<"+s+">").join("")+o+i.map(s=>"</"+s+">").reverse().join("")),r.innerHTML=AL(o),i)for(let s=0;s<i.length;s++)r=r.querySelector(i[s])||r;for(let s=0;s<e.styleSheets.length;s++){let l=e.styleSheets[s];for(let a=0;a<l.rules.length;a++){let u=l.rules[a];if(u instanceof CSSStyleRule){let c=r.querySelectorAll(u.selectorText);for(let h=0;h<c.length;h++)c[h].style.cssText+=u.style.cssText;}}}return r}function xL(o){let t=o.querySelectorAll(jr?"span:not([class]):not([style])":"span.Apple-converted-space");for(let e=0;e<t.length;e++){let r=t[e];r.childNodes.length==1&&r.textContent=="\xA0"&&r.parentNode&&r.parentNode.replaceChild(o.ownerDocument.createTextNode(" "),r);}}function EL(o,t){if(!o.size)return o;let e=o.content.firstChild.type.schema,r;try{r=JSON.parse(t);}catch{return o}let{content:n,openStart:i,openEnd:s}=o;for(let l=r.length-2;l>=0;l-=2){let a=e.nodes[r[l]];if(!a||a.hasRequiredAttrs())break;n=tt.from(a.create(r[l+1],n)),i++,s++;}return new yt(n,i,s)}var Bo={},Vo={};function il(o,t){o.input.lastSelectionOrigin=t,o.input.lastSelectionTime=Date.now();}Vo.keydown=(o,t)=>{let e=t;if(o.input.shiftKey=e.keyCode==16||e.shiftKey,!sC(o)&&(o.input.lastKeyCode=e.keyCode,o.input.lastKeyCodeTime=Date.now(),!(nl&&jr&&e.keyCode==13)))if(e.keyCode!=229&&o.domObserver.forceFlush(),hp&&e.keyCode==13&&!e.ctrlKey&&!e.altKey&&!e.metaKey){let r=Date.now();o.input.lastIOSEnter=r,o.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{o.input.lastIOSEnter==r&&(o.someProp("handleKeyDown",n=>n(o,Bu(13,"Enter"))),o.input.lastIOSEnter=0);},200);}else o.someProp("handleKeyDown",r=>r(o,e))||gL(o,e)?e.preventDefault():il(o,"key");};Vo.keyup=(o,t)=>{t.keyCode==16&&(o.input.shiftKey=false);};Vo.keypress=(o,t)=>{let e=t;if(sC(o)||!e.charCode||e.ctrlKey&&!e.altKey||Kn&&e.metaKey)return;if(o.someProp("handleKeyPress",n=>n(o,e))){e.preventDefault();return}let r=o.state.selection;if(!(r instanceof At)||!r.$from.sameParent(r.$to)){let n=String.fromCharCode(e.charCode),i=()=>o.state.tr.insertText(n).scrollIntoView();!/[\r\n]/.test(n)&&!o.someProp("handleTextInput",s=>s(o,r.$from.pos,r.$to.pos,n,i))&&o.dispatch(i()),e.preventDefault();}};function dy(o){return {left:o.clientX,top:o.clientY}}function LL(o,t){let e=t.x-o.clientX,r=t.y-o.clientY;return e*e+r*r<100}function XA(o,t,e,r,n){if(r==-1)return false;let i=o.state.doc.resolve(r);for(let s=i.depth+1;s>0;s--)if(o.someProp(t,l=>s>i.depth?l(o,e,i.nodeAfter,i.before(s),n,true):l(o,e,i.node(s),i.before(s),n,false)))return true;return false}function fy(o,t,e){if(o.focused||o.focus(),o.state.selection.eq(t))return;let r=o.state.tr.setSelection(t);r.setMeta("pointer",true),o.dispatch(r);}function ML(o,t){if(t==-1)return false;let e=o.state.doc.resolve(t),r=e.nodeAfter;return r&&r.isAtom&&wt.isSelectable(r)?(fy(o,new wt(e)),true):false}function IL(o,t){if(t==-1)return false;let e=o.state.selection,r,n;e instanceof wt&&(r=e.node);let i=o.state.doc.resolve(t);for(let s=i.depth+1;s>0;s--){let l=s>i.depth?i.nodeAfter:i.node(s);if(wt.isSelectable(l)){r&&e.$from.depth>0&&s>=e.$from.depth&&i.before(e.$from.depth+1)==e.$from.pos?n=i.before(e.$from.depth):n=i.before(s);break}}return n!=null?(fy(o,wt.create(o.state.doc,n)),true):false}function RL(o,t,e,r,n){return XA(o,"handleClickOn",t,e,r)||o.someProp("handleClick",i=>i(o,t,r))||(n?IL(o,e):ML(o,e))}function DL(o,t,e,r){return XA(o,"handleDoubleClickOn",t,e,r)||o.someProp("handleDoubleClick",n=>n(o,t,r))}function OL(o,t,e,r){return XA(o,"handleTripleClickOn",t,e,r)||o.someProp("handleTripleClick",n=>n(o,t,r))||FL(o,e,r)}function FL(o,t,e){if(e.button!=0)return false;let r=nC(o,t,true),n=o.state.doc;return r?(fy(o,r),r instanceof At&&n.eq(o.state.doc)&&(o.input.mouseDown=new zA(o,r)),true):false}function nC(o,t,e){let r=o.state.doc;if(t==-1)return r.inlineContent?At.create(r,0,r.content.size):null;let n=r.resolve(t);for(let i=n.depth+1;i>0;i--){let s=i>n.depth?n.nodeAfter:n.node(i),l=n.before(i);if(s.inlineContent)return At.create(r,l+1,l+1+s.content.size);if(e&&wt.isSelectable(s))return wt.create(r,l)}return null}function ZA(o){return Mg(o)}var iC=Kn?"metaKey":"ctrlKey";Bo.mousedown=(o,t)=>{let e=t;o.input.shiftKey=e.shiftKey;let r=ZA(o),n=Date.now(),i="singleClick";n-o.input.lastClick.time<500&&LL(e,o.input.lastClick)&&!e[iC]&&o.input.lastClick.button==e.button&&(o.input.lastClick.type=="singleClick"?i="doubleClick":o.input.lastClick.type=="doubleClick"&&(i="tripleClick")),o.input.lastClick={time:n,x:e.clientX,y:e.clientY,type:i,button:e.button},o.input.mouseDown&&o.input.mouseDown.done();let s=o.posAtCoords(dy(e));s&&(i=="singleClick"?o.input.mouseDown=new WA(o,s,e,!!r):(i=="doubleClick"?DL:OL)(o,s.pos,s.inside,e)?e.preventDefault():il(o,"pointer"));};var Lg=class{constructor(t){this.view=t,this.mightDrag=null,t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this));}up(t){this.done();}move(t){t.buttons==0&&this.done();}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.view.input.mouseDown==this&&(this.view.input.mouseDown=null);}delaySelUpdate(){return false}},WA=class extends Lg{constructor(t,e,r,n){super(t),this.pos=e,this.event=r,this.flushed=n,this.delayedSelectionSync=false,this.startDoc=t.state.doc,this.selectNode=!!r[iC],this.allowDefault=r.shiftKey;let i,s;if(e.inside>-1)i=t.state.doc.nodeAt(e.inside),s=e.inside;else {let c=t.state.doc.resolve(e.pos);i=c.parent,s=c.depth?c.before():0;}let l=n?null:r.target,a=l?t.docView.nearestDesc(l,true):null;this.target=a&&a.nodeDOM.nodeType==1?a.nodeDOM:null;let{selection:u}=t.state;r.button==0&&(i.type.spec.draggable&&i.type.spec.selectable!==false||u instanceof wt&&u.from<=s&&u.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&qn&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=true),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false");},20),this.view.domObserver.start()),il(t,"pointer");}done(){super.done(),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>{this.view.isDestroyed||sl(this.view);});}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let e=this.pos;this.view.state.doc!=this.startDoc&&(e=this.view.posAtCoords(dy(t))),this.updateAllowDefault(t),this.allowDefault||!e?il(this.view,"pointer"):RL(this.view,e.pos,e.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||vo&&this.mightDrag&&!this.mightDrag.node.isAtom||jr&&!this.view.state.selection.visible&&Math.min(Math.abs(e.pos-this.view.state.selection.from),Math.abs(e.pos-this.view.state.selection.to))<=2)?(fy(this.view,Vt.near(this.view.state.doc.resolve(e.pos))),t.preventDefault()):il(this.view,"pointer");}move(t){this.updateAllowDefault(t),il(this.view,"pointer"),super.move(t);}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=true);}delaySelUpdate(){return this.allowDefault?(this.delayedSelectionSync=true,true):false}},zA=class extends Lg{constructor(t,e){super(t),this.startSelection=e,this.startDoc=t.state.doc;}move(t){if(t.buttons==0||this.view.isDestroyed||!this.view.state.doc.eq(this.startDoc)){this.done();return}t.preventDefault(),il(this.view,"pointer");let e=this.view.posAtCoords(dy(t)),r=e&&nC(this.view,e.inside,false);if(!r)return;let{doc:n}=this.view.state,i=this.startSelection,[s,l]=r.from<i.from?[i.to,r.from]:[i.from,r.to];fy(this.view,At.create(n,s,l));}};Bo.touchstart=o=>{o.input.lastTouch=Date.now(),ZA(o),il(o,"pointer");};Bo.touchmove=o=>{o.input.lastTouch=Date.now(),il(o,"pointer");};Bo.contextmenu=o=>ZA(o);function sC(o,t){return o.composing?true:vo&&Math.abs(Date.now()-o.input.compositionEndedAt)<500?(o.input.compositionEndedAt=-2e8,true):false}var BL=nl?5e3:-1;Vo.compositionstart=Vo.compositionupdate=o=>{if(!o.composing){o.domObserver.flush();let{state:t}=o,e=t.selection.$to;if(t.selection instanceof At&&(t.storedMarks||!e.textOffset&&e.parentOffset&&e.nodeBefore.marks.some(r=>r.type.spec.inclusive===false)||jr&&VT&&VL(o)))o.markCursor=o.state.storedMarks||e.marks(),Mg(o,true),o.markCursor=null;else if(Mg(o,!t.selection.empty),qn&&t.selection.empty&&e.parentOffset&&!e.textOffset&&e.nodeBefore.marks.length){let r=o.domSelectionRange();for(let n=r.focusNode,i=r.focusOffset;n&&n.nodeType==1&&i!=0;){let s=i<0?n.lastChild:n.childNodes[i-1];if(!s)break;if(s.nodeType==3){let l=o.domSelection();l&&l.collapse(s,s.nodeValue.length);break}else n=s,i=-1;}}o.input.composing=true;}lC(o,BL);};function VL(o){let{focusNode:t,focusOffset:e}=o.domSelectionRange();if(!t||t.nodeType!=1||e>=t.childNodes.length)return false;let r=t.childNodes[e];return r.nodeType==1&&r.contentEditable=="false"}Vo.compositionend=(o,t)=>{o.composing&&(o.input.composing=false,o.input.compositionEndedAt=Date.now(),o.input.compositionPendingChanges=o.domObserver.pendingRecords().length?o.input.compositionID:0,o.input.compositionNode=null,o.input.badSafariComposition?o.domObserver.forceFlush():o.input.compositionPendingChanges&&Promise.resolve().then(()=>o.domObserver.flush()),o.input.compositionID++,lC(o,20));};function lC(o,t){clearTimeout(o.input.composingTimeout),t>-1&&(o.input.composingTimeout=setTimeout(()=>Mg(o),t));}function aC(o){for(o.composing&&(o.input.composing=false,o.input.compositionEndedAt=Date.now());o.input.compositionNodes.length>0;)o.input.compositionNodes.pop().markParentsDirty();}function Mg(o,t=false){if(!(nl&&o.domObserver.flushingSoon>=0)){if(o.domObserver.forceFlush(),aC(o),t||o.docView&&o.docView.dirty){let e=qA(o),r=o.state.selection;return e&&!e.eq(r)?o.dispatch(o.state.tr.setSelection(e)):(o.markCursor||t)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?o.dispatch(o.state.tr.deleteSelection()):o.updateState(o.state),true}return false}}function GL(o,t){if(!o.dom.parentNode)return;let e=o.dom.parentNode.appendChild(document.createElement("div"));e.appendChild(t),e.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),n=document.createRange();n.selectNodeContents(t),o.dom.blur(),r.removeAllRanges(),r.addRange(n),setTimeout(()=>{e.parentNode&&e.parentNode.removeChild(e),o.focus();},50);}var cy=hn&&da<15||hp&&U1<604;Bo.copy=Vo.cut=(o,t)=>{let e=t,r=o.state.selection,n=e.type=="cut";if(r.empty)return;let i=cy?null:e.clipboardData,s=r.content(),{dom:l,text:a}=QA(o,s);i?(e.preventDefault(),i.clearData(),i.setData("text/html",l.innerHTML),i.setData("text/plain",a)):GL(o,l),n&&o.dispatch(o.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"));};function UL(o){return o.openStart==0&&o.openEnd==0&&o.content.childCount==1?o.content.firstChild:null}function WL(o,t){if(!o.dom.parentNode)return;let e=o.input.shiftKey||o.state.selection.$from.parent.type.spec.code,r=o.dom.parentNode.appendChild(document.createElement(e?"textarea":"div"));e||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let n=o.input.shiftKey&&o.input.lastKeyCode!=45;setTimeout(()=>{o.focus(),r.parentNode&&r.parentNode.removeChild(r),e?py(o,r.value,null,n,t):py(o,r.textContent,r.innerHTML,n,t);},50);}function py(o,t,e,r,n){let i=XT(o,t,e,r,o.state.selection.$from);if(o.someProp("handlePaste",a=>a(o,n,i||yt.empty)))return true;if(!i)return false;let s=UL(i),l=s?o.state.tr.replaceSelectionWith(s,r):o.state.tr.replaceSelection(i);return o.dispatch(l.scrollIntoView().setMeta("paste",true).setMeta("uiEvent","paste")),true}function uC(o){let t=o.getData("text/plain")||o.getData("Text");if(t)return t;let e=o.getData("text/uri-list");return e?e.replace(/\r?\n/g," "):""}Vo.paste=(o,t)=>{let e=t;if(o.composing&&!nl)return;let r=cy?null:e.clipboardData,n=o.input.shiftKey&&o.input.lastKeyCode!=45;r&&py(o,uC(r),r.getData("text/html"),n,e)?e.preventDefault():WL(o,e);};var Ig=class{constructor(t,e,r){this.slice=t,this.move=e,this.node=r;}},zL=Kn?"altKey":"ctrlKey";function cC(o,t){let e;return o.someProp("dragCopies",r=>{e=e||r(t);}),e!=null?!e:!t[zL]}Bo.dragstart=(o,t)=>{let e=t,r=o.input.mouseDown;if(r&&r.done(),!e.dataTransfer)return;let n=o.state.selection,i=n.empty?null:o.posAtCoords(dy(e)),s;if(!(i&&i.pos>=n.from&&i.pos<=(n instanceof wt?n.to-1:n.to))){if(r&&r.mightDrag)s=wt.create(o.state.doc,r.mightDrag.pos);else if(e.target&&e.target.nodeType==1){let h=o.docView.nearestDesc(e.target,true);h&&h.node.type.spec.draggable&&h!=o.docView&&(s=wt.create(o.state.doc,h.posBefore));}}let l=(s||o.state.selection).content(),{dom:a,text:u,slice:c}=QA(o,l);(!e.dataTransfer.files.length||!jr||BT>120)&&e.dataTransfer.clearData(),e.dataTransfer.setData(cy?"Text":"text/html",a.innerHTML),e.dataTransfer.effectAllowed="copyMove",cy||e.dataTransfer.setData("text/plain",u),o.dragging=new Ig(c,cC(o,e),s);};Bo.dragend=o=>{let t=o.dragging;window.setTimeout(()=>{o.dragging==t&&(o.dragging=null);},50);};Vo.dragover=Vo.dragenter=(o,t)=>t.preventDefault();Vo.drop=(o,t)=>{try{_L(o,t,o.dragging);}finally{o.dragging=null;}};function _L(o,t,e){if(!t.dataTransfer)return;let r=o.posAtCoords(dy(t));if(!r)return;let n=o.state.doc.resolve(r.pos),i=e&&e.slice;i?o.someProp("transformPasted",d=>{i=d(i,o,false);}):i=XT(o,uC(t.dataTransfer),cy?null:t.dataTransfer.getData("text/html"),false,n);let s=!!(e&&cC(o,t));if(o.someProp("handleDrop",d=>d(o,t,i||yt.empty,s))){t.preventDefault();return}if(!i)return;t.preventDefault();let l=i?wg(o.state.doc,n.pos,i):n.pos;l==null&&(l=n.pos);let a=o.state.tr;if(s){let{node:d}=e;d?d.replace(a):a.deleteSelection();}let u=a.mapping.map(l),c=i.openStart==0&&i.openEnd==0&&i.content.childCount==1,h=a.doc;if(c?a.replaceRangeWith(u,u,i.content.firstChild):a.replaceRange(u,u,i),a.doc.eq(h))return;let f=a.doc.resolve(u);if(c&&wt.isSelectable(i.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(i.content.firstChild))a.setSelection(new wt(f));else {let d=a.mapping.map(l);a.mapping.maps[a.mapping.maps.length-1].forEach((g,A,w,T)=>d=T),a.setSelection(YA(o,f,a.doc.resolve(d)));}o.focus(),o.dispatch(a.setMeta("uiEvent","drop"));}Bo.focus=o=>{o.input.lastFocus=Date.now(),o.focused||(o.domObserver.stop(),o.dom.classList.add("ProseMirror-focused"),o.domObserver.start(),o.focused=true,setTimeout(()=>{o.docView&&o.hasFocus()&&!o.domObserver.currentSelection.eq(o.domSelectionRange())&&sl(o);},20));};Bo.blur=(o,t)=>{let e=t;o.focused&&(o.domObserver.stop(),o.dom.classList.remove("ProseMirror-focused"),o.domObserver.start(),e.relatedTarget&&o.dom.contains(e.relatedTarget)&&o.domObserver.currentSelection.clear(),o.focused=false);};Bo.beforeinput=(o,t)=>{if(jr&&nl&&t.inputType=="deleteContentBackward"){o.domObserver.flushSoon();let{domChangeCount:r}=o.input;setTimeout(()=>{if(o.input.domChangeCount!=r||(o.dom.blur(),o.focus(),o.someProp("handleKeyDown",i=>i(o,Bu(8,"Backspace")))))return;let{$cursor:n}=o.state.selection;n&&n.pos>0&&o.dispatch(o.state.tr.delete(n.pos-1,n.pos).scrollIntoView());},50);}};for(let o in Vo)Bo[o]=Vo[o];function my(o,t){if(o==t)return true;for(let e in o)if(o[e]!==t[e])return false;for(let e in t)if(!(e in o))return false;return true}var Rg=class o{constructor(t,e){this.toDOM=t,this.spec=e||Wu,this.side=this.spec.side||0;}map(t,e,r,n){let{pos:i,deleted:s}=t.mapResult(e.from+n,this.side<0?-1:1);return s?null:new To(i-r,i-r,this)}valid(){return true}eq(t){return this==t||t instanceof o&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&my(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t);}},Uu=class o{constructor(t,e){this.attrs=t,this.spec=e||Wu;}map(t,e,r,n){let i=t.map(e.from+n,this.spec.inclusiveStart?-1:1)-r,s=t.map(e.to+n,this.spec.inclusiveEnd?1:-1)-r;return i>=s?null:new To(i,s,this)}valid(t,e){return e.from<e.to}eq(t){return this==t||t instanceof o&&my(this.attrs,t.attrs)&&my(this.spec,t.spec)}static is(t){return t.type instanceof o}destroy(){}},_A=class o{constructor(t,e){this.attrs=t,this.spec=e||Wu;}map(t,e,r,n){let i=t.mapResult(e.from+n,1);if(i.deleted)return null;let s=t.mapResult(e.to+n,-1);return s.deleted||s.pos<=i.pos?null:new To(i.pos-r,s.pos-r,this)}valid(t,e){let{index:r,offset:n}=t.content.findIndex(e.from),i;return n==e.from&&!(i=t.child(r)).isText&&n+i.nodeSize==e.to}eq(t){return this==t||t instanceof o&&my(this.attrs,t.attrs)&&my(this.spec,t.spec)}destroy(){}},To=class o{constructor(t,e,r){this.from=t,this.to=e,this.type=r;}copy(t,e){return new o(t,e,this.type)}eq(t,e=0){return this.type.eq(t.type)&&this.from+e==t.from&&this.to+e==t.to}map(t,e,r){return this.type.map(t,this,e,r)}static widget(t,e,r){return new o(t,t,new Rg(e,r))}static inline(t,e,r,n){return new o(t,e,new Uu(r,n))}static node(t,e,r,n){return new o(t,e,new _A(r,n))}get spec(){return this.type.spec}get inline(){return this.type instanceof Uu}get widget(){return this.type instanceof Rg}},pp=[],Wu={},qe=class o{constructor(t,e){this.local=t.length?t:pp,this.children=e.length?e:pp;}static create(t,e){return e.length?Og(e,t,0,Wu):Eo}find(t,e,r){let n=[];return this.findInner(t??0,e??1e9,n,0,r),n}findInner(t,e,r,n,i){for(let s=0;s<this.local.length;s++){let l=this.local[s];l.from<=e&&l.to>=t&&(!i||i(l.spec))&&r.push(l.copy(l.from+n,l.to+n));}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<e&&this.children[s+1]>t){let l=this.children[s]+1;this.children[s+2].findInner(t-l,e-l,r,n+l,i);}}map(t,e,r){return this==Eo||t.maps.length==0?this:this.mapInner(t,e,0,0,r||Wu)}mapInner(t,e,r,n,i){let s;for(let l=0;l<this.local.length;l++){let a=this.local[l].map(t,r,n);a&&a.type.valid(e,a)?(s||(s=[])).push(a):i.onRemove&&i.onRemove(this.local[l].spec);}return this.children.length?$L(this.children,s||[],t,e,r,n,i):s?new o(s.sort(zu),pp):Eo}add(t,e){return e.length?this==Eo?o.create(t,e):this.addInner(t,e,0):this}addInner(t,e,r){let n,i=0;t.forEach((l,a)=>{let u=a+r,c;if(c=mC(e,l,u)){for(n||(n=this.children.slice());i<n.length&&n[i]<a;)i+=3;n[i]==a?n[i+2]=n[i+2].addInner(l,c,u+1):n.splice(i,0,a,a+l.nodeSize,Og(c,l,u+1,Wu)),i+=3;}});let s=pC(i?hC(e):e,-r);for(let l=0;l<s.length;l++)s[l].type.valid(t,s[l])||s.splice(l--,1);return new o(s.length?this.local.concat(s).sort(zu):this.local,n||this.children)}remove(t){return t.length==0||this==Eo?this:this.removeInner(t,0)}removeInner(t,e){let r=this.children,n=this.local;for(let i=0;i<r.length;i+=3){let s,l=r[i]+e,a=r[i+1]+e;for(let c=0,h;c<t.length;c++)(h=t[c])&&h.from>l&&h.to<a&&(t[c]=null,(s||(s=[])).push(h));if(!s)continue;r==this.children&&(r=this.children.slice());let u=r[i+2].removeInner(s,l+1);u!=Eo?r[i+2]=u:(r.splice(i,3),i-=3);}if(n.length){for(let i=0,s;i<t.length;i++)if(s=t[i])for(let l=0;l<n.length;l++)n[l].eq(s,e)&&(n==this.local&&(n=this.local.slice()),n.splice(l--,1));}return r==this.children&&n==this.local?this:n.length||r.length?new o(n,r):Eo}forChild(t,e){if(this==Eo)return this;if(e.isLeaf)return o.empty;let r,n;for(let l=0;l<this.children.length;l+=3)if(this.children[l]>=t){this.children[l]==t&&(r=this.children[l+2]);break}let i=t+1,s=i+e.content.size;for(let l=0;l<this.local.length;l++){let a=this.local[l];if(a.from<s&&a.to>i&&a.type instanceof Uu){let u=Math.max(i,a.from)-i,c=Math.min(s,a.to)-i;u<c&&(n||(n=[])).push(a.copy(u,c));}}if(n){let l=new o(n.sort(zu),pp);return r?new Dg([l,r]):l}return r||Eo}eq(t){if(this==t)return true;if(!(t instanceof o)||this.local.length!=t.local.length||this.children.length!=t.children.length)return false;for(let e=0;e<this.local.length;e++)if(!this.local[e].eq(t.local[e]))return false;for(let e=0;e<this.children.length;e+=3)if(this.children[e]!=t.children[e]||this.children[e+1]!=t.children[e+1]||!this.children[e+2].eq(t.children[e+2]))return false;return true}locals(t){return tw(this.localsInner(t))}localsInner(t){if(this==Eo)return pp;if(t.inlineContent||!this.local.some(Uu.is))return this.local;let e=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof Uu||e.push(this.local[r]);return e}forEachSet(t){t(this);}};qe.empty=new qe([],[]);qe.removeOverlap=tw;var Eo=qe.empty,Dg=class o{constructor(t){this.members=t;}map(t,e){let r=this.members.map(n=>n.map(t,e,Wu));return o.from(r)}forChild(t,e){if(e.isLeaf)return qe.empty;let r=[];for(let n=0;n<this.members.length;n++){let i=this.members[n].forChild(t,e);i!=Eo&&(i instanceof o?r=r.concat(i.members):r.push(i));}return o.from(r)}eq(t){if(!(t instanceof o)||t.members.length!=this.members.length)return false;for(let e=0;e<this.members.length;e++)if(!this.members[e].eq(t.members[e]))return false;return true}locals(t){let e,r=true;for(let n=0;n<this.members.length;n++){let i=this.members[n].localsInner(t);if(i.length)if(!e)e=i;else {r&&(e=e.slice(),r=false);for(let s=0;s<i.length;s++)e.push(i[s]);}}return e?tw(r?e:e.sort(zu)):pp}static from(t){switch(t.length){case 0:return Eo;case 1:return t[0];default:return new o(t.every(e=>e instanceof qe)?t:t.reduce((e,r)=>e.concat(r instanceof qe?r:r.members),[]))}}forEachSet(t){for(let e=0;e<this.members.length;e++)this.members[e].forEachSet(t);}};function $L(o,t,e,r,n,i,s){let l=o.slice();for(let u=0,c=i;u<e.maps.length;u++){let h=0;e.maps[u].forEach((f,d,g,A)=>{let w=A-g-(d-f);for(let T=0;T<l.length;T+=3){let G=l[T+1];if(G<0||f>G+c-h)continue;let J=l[T]+c-h;d>=J?l[T+1]=f<=J?-2:-1:f>=c&&w&&(l[T]+=w,l[T+1]+=w);}h+=w;}),c=e.maps[u].map(c,-1);}let a=false;for(let u=0;u<l.length;u+=3)if(l[u+1]<0){if(l[u+1]==-2){a=true,l[u+1]=-1;continue}let c=e.map(o[u]+i),h=c-n;if(h<0||h>=r.content.size){a=true;continue}let f=e.map(o[u+1]+i,-1),d=f-n,{index:g,offset:A}=r.content.findIndex(h),w=r.maybeChild(g);if(w&&A==h&&A+w.nodeSize==d){let T=l[u+2].mapInner(e,w,c+1,o[u]+i+1,s);T!=Eo?(l[u]=h,l[u+1]=d,l[u+2]=T):(l[u+1]=-2,a=true);}else a=true;}if(a){let u=KL(l,o,t,e,n,i,s),c=Og(u,r,0,s);t=c.local;for(let h=0;h<l.length;h+=3)l[h+1]<0&&(l.splice(h,3),h-=3);for(let h=0,f=0;h<c.children.length;h+=3){let d=c.children[h];for(;f<l.length&&l[f]<d;)f+=3;l.splice(f,0,c.children[h],c.children[h+1],c.children[h+2]);}}return new qe(t.sort(zu),l)}function pC(o,t){if(!t||!o.length)return o;let e=[];for(let r=0;r<o.length;r++){let n=o[r];e.push(new To(n.from+t,n.to+t,n.type));}return e}function KL(o,t,e,r,n,i,s){function l(a,u){for(let c=0;c<a.local.length;c++){let h=a.local[c].map(r,n,u);h?e.push(h):s.onRemove&&s.onRemove(a.local[c].spec);}for(let c=0;c<a.children.length;c+=3)l(a.children[c+2],a.children[c]+u+1);}for(let a=0;a<o.length;a+=3)o[a+1]==-1&&l(o[a+2],t[a]+i+1);return e}function mC(o,t,e){if(t.isLeaf)return null;let r=e+t.nodeSize,n=null;for(let i=0,s;i<o.length;i++)(s=o[i])&&s.from>e&&s.to<r&&((n||(n=[])).push(s),o[i]=null);return n}function hC(o){let t=[];for(let e=0;e<o.length;e++)o[e]!=null&&t.push(o[e]);return t}function Og(o,t,e,r){let n=[],i=false;t.forEach((l,a)=>{let u=mC(o,l,a+e);if(u){i=true;let c=Og(u,l,e+a+1,r);c!=Eo&&n.push(a,a+l.nodeSize,c);}});let s=pC(i?hC(o):o,-e).sort(zu);for(let l=0;l<s.length;l++)s[l].type.valid(t,s[l])||(r.onRemove&&r.onRemove(s[l].spec),s.splice(l--,1));return s.length||n.length?new qe(s,n):Eo}function zu(o,t){return o.from-t.from||o.to-t.to}function tw(o){let t=o;for(let e=0;e<t.length-1;e++){let r=t[e];if(r.from!=r.to)for(let n=e+1;n<t.length;n++){let i=t[n];if(i.from==r.from){i.to!=r.to&&(t==o&&(t=o.slice()),t[n]=i.copy(i.from,r.to),TT(t,n+1,i.copy(r.to,i.to)));continue}else {i.from<r.to&&(t==o&&(t=o.slice()),t[e]=r.copy(r.from,i.from),TT(t,n,r.copy(i.from,r.to)));break}}}return t}function TT(o,t,e){for(;t<o.length&&zu(e,o[t])>0;)t++;o.splice(t,0,e);}g();g();g();var ll={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Hg={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},aM=typeof navigator<"u"&&/Mac/.test(navigator.platform),uM=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(Nr=0;Nr<10;Nr++)ll[48+Nr]=ll[96+Nr]=String(Nr);var Nr;for(Nr=1;Nr<=24;Nr++)ll[Nr+111]="F"+Nr;var Nr;for(Nr=65;Nr<=90;Nr++)ll[Nr]=String.fromCharCode(Nr+32),Hg[Nr]=String.fromCharCode(Nr);var Nr;for(Vg in ll)Hg.hasOwnProperty(Vg)||(Hg[Vg]=ll[Vg]);var Vg;function yC(o){var t=aM&&o.metaKey&&o.shiftKey&&!o.ctrlKey&&!o.altKey||uM&&o.shiftKey&&o.key&&o.key.length==1||o.key=="Unidentified",e=!t&&o.key||(o.shiftKey?Hg:ll)[o.keyCode]||o.key||"Unidentified";return e=="Esc"&&(e="Escape"),e=="Del"&&(e="Delete"),e=="Left"&&(e="ArrowLeft"),e=="Up"&&(e="ArrowUp"),e=="Right"&&(e="ArrowRight"),e=="Down"&&(e="ArrowDown"),e}var cM=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),pM=typeof navigator<"u"&&/Win/.test(navigator.platform);function mM(o){let t=o.split(/-(?!$)/),e=t[t.length-1];e=="Space"&&(e=" ");let r,n,i,s;for(let l=0;l<t.length-1;l++){let a=t[l];if(/^(cmd|meta|m)$/i.test(a))s=true;else if(/^a(lt)?$/i.test(a))r=true;else if(/^(c|ctrl|control)$/i.test(a))n=true;else if(/^s(hift)?$/i.test(a))i=true;else if(/^mod$/i.test(a))cM?s=true:n=true;else throw new Error("Unrecognized modifier name: "+a)}return r&&(e="Alt-"+e),n&&(e="Ctrl-"+e),s&&(e="Meta-"+e),i&&(e="Shift-"+e),e}function hM(o){let t=Object.create(null);for(let e in o)t[mM(e)]=o[e];return t}function ew(o,t,e=true){return t.altKey&&(o="Alt-"+o),t.ctrlKey&&(o="Ctrl-"+o),t.metaKey&&(o="Meta-"+o),e&&t.shiftKey&&(o="Shift-"+o),o}function rw(o){let t=hM(o);return function(e,r){let n=yC(r),i,s=t[ew(n,r)];if(s&&s(e.state,e.dispatch,e))return true;if(n.length==1&&n!=" "){if(r.shiftKey){let l=t[ew(n,r,false)];if(l&&l(e.state,e.dispatch,e))return true}if((r.altKey||r.metaKey||r.ctrlKey)&&!(pM&&r.ctrlKey&&r.altKey)&&(i=ll[r.keyCode])&&i!=n){let l=t[ew(i,r)];if(l&&l(e.state,e.dispatch,e))return true}}return false}}var yM=Object.defineProperty,sw=(o,t)=>{for(var e in t)yM(o,e,{get:t[e],enumerable:true});};function jg(o){let{state:t,transaction:e}=o,{selection:r}=e,{doc:n}=e,{storedMarks:i}=e;return {...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return i},get selection(){return r},get doc(){return n},get tr(){return r=e.selection,n=e.doc,i=e.storedMarks,e}}}var lw=class{constructor(o){this.editor=o.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=o.state;}get hasCustomState(){return !!this.customState}get state(){return this.customState||this.editor.state}get commands(){let{rawCommands:o,editor:t,state:e}=this,{view:r}=t,{tr:n}=e,i=this.buildProps(n);return Object.fromEntries(Object.entries(o).map(([s,l])=>[s,(...u)=>{let c=l(...u)(i);return !n.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(n),c}]))}get chain(){return ()=>this.createChain()}get can(){return ()=>this.createCan()}createChain(o,t=true){let{rawCommands:e,editor:r,state:n}=this,{view:i}=r,s=[],l=!!o,a=o||n.tr,u=()=>(!l&&t&&!a.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(a),s.every(h=>h===true)),c={...Object.fromEntries(Object.entries(e).map(([h,f])=>[h,(...g)=>{let A=this.buildProps(a,t),w=f(...g)(A);return s.push(w),c}])),run:u};return c}createCan(o){let{rawCommands:t,state:e}=this,r=false,n=o||e.tr,i=this.buildProps(n,r);return {...Object.fromEntries(Object.entries(t).map(([l,a])=>[l,(...u)=>a(...u)({...i,dispatch:void 0})])),chain:()=>this.createChain(n,r)}}buildProps(o,t=true){let{rawCommands:e,editor:r,state:n}=this,{view:i}=r,s={tr:o,editor:r,view:i,state:jg({state:n,transaction:o}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(o,t),can:()=>this.createCan(o),get commands(){return Object.fromEntries(Object.entries(e).map(([l,a])=>[l,(...u)=>a(...u)(s)]))}};return s}},CC={};sw(CC,{blur:()=>dM,clearContent:()=>fM,clearNodes:()=>bM,command:()=>gM,createParagraphNear:()=>SM,cut:()=>PM,deleteCurrentNode:()=>AM,deleteNode:()=>wM,deleteRange:()=>xM,deleteSelection:()=>TM,enter:()=>CM,exitCode:()=>kM,extendMarkRange:()=>NM,first:()=>LM,focus:()=>RM,forEach:()=>DM,insertContent:()=>OM,insertContentAt:()=>VM,joinBackward:()=>UM,joinDown:()=>GM,joinForward:()=>WM,joinItemBackward:()=>zM,joinItemForward:()=>_M,joinTextblockBackward:()=>$M,joinTextblockForward:()=>KM,joinUp:()=>HM,keyboardShortcut:()=>qM,lift:()=>YM,liftEmptyBlock:()=>QM,liftListItem:()=>JM,newlineInCode:()=>XM,resetAttributes:()=>ZM,scrollIntoView:()=>tI,selectAll:()=>eI,selectNodeBackward:()=>rI,selectNodeForward:()=>oI,selectParentNode:()=>nI,selectTextblockEnd:()=>iI,selectTextblockStart:()=>sI,setContent:()=>aI,setMark:()=>EI,setMeta:()=>vI,setNode:()=>TI,setNodeSelection:()=>CI,setTextDirection:()=>kI,setTextSelection:()=>NI,sinkListItem:()=>LI,splitBlock:()=>MI,splitListItem:()=>II,toggleList:()=>DI,toggleMark:()=>OI,toggleNode:()=>FI,toggleWrap:()=>BI,undoInputRule:()=>VI,unsetAllMarks:()=>HI,unsetMark:()=>GI,unsetTextDirection:()=>UI,updateAttributes:()=>WI,wrapIn:()=>zI,wrapInList:()=>_I});var dM=()=>({editor:o,view:t})=>(requestAnimationFrame(()=>{var e;o.isDestroyed||(t.dom.blur(),(e=window?.getSelection())==null||e.removeAllRanges());}),true),fM=(o=true)=>({commands:t})=>t.setContent("",{emitUpdate:o}),bM=()=>({state:o,tr:t,dispatch:e})=>{let{selection:r}=t,{ranges:n}=r;return e&&n.forEach(({$from:i,$to:s})=>{o.doc.nodesBetween(i.pos,s.pos,(l,a)=>{if(l.type.isText)return;let{doc:u,mapping:c}=t,h=u.resolve(c.map(a)),f=u.resolve(c.map(a+l.nodeSize)),d=h.blockRange(f);if(!d)return;let g=el(d);if(l.type.isTextblock){let{defaultType:A}=h.parent.contentMatchAt(h.index());t.setNodeMarkup(d.start,A);}(g||g===0)&&t.lift(d,g);});}),true},gM=o=>t=>o(t),SM=()=>({state:o,dispatch:t})=>fA(o,t),PM=(o,t)=>({editor:e,tr:r})=>{let{state:n}=e,i=n.doc.slice(o.from,o.to);r.deleteRange(o.from,o.to);let s=r.mapping.map(t);return r.insert(s,i.content),r.setSelection(new At(r.doc.resolve(Math.max(s-1,0)))),true},AM=()=>({tr:o,dispatch:t})=>{let{selection:e}=o,r=e.$anchor.node();if(r.content.size>0)return false;let n=o.selection.$anchor;for(let i=n.depth;i>0;i-=1)if(n.node(i).type===r.type){if(t){let l=n.before(i),a=n.after(i);o.delete(l,a).scrollIntoView();}return true}return false};function yr(o,t){if(typeof o=="string"){if(!t.nodes[o])throw Error(`There is no node type named '${o}'. Maybe you forgot to add the extension?`);return t.nodes[o]}return o}var wM=o=>({tr:t,state:e,dispatch:r})=>{let n=yr(o,e.schema),i=t.selection.$anchor;for(let s=i.depth;s>0;s-=1)if(i.node(s).type===n){if(r){let a=i.before(s),u=i.after(s);t.delete(a,u).scrollIntoView();}return true}return false},xM=o=>({tr:t,dispatch:e})=>{let{from:r,to:n}=o;return e&&t.delete(r,n),true},EM=o=>o.content?/^text(\*|\+)/.test(o.content):false,fC=(o,t,e)=>{if(!o.parent.isInline||e==="left"&&o.pos>o.start()||e==="right"&&o.pos<o.end())return o.pos;let r=t.nodes[o.parent.type.name].spec;return EM(r)?e==="left"?o.start()-1:o.end()+1:o.pos},vM=(o,t,e)=>{let r=fC(o,e,"left"),n=fC(t,e,"right");return {from:r,to:n}},TM=()=>({state:o,dispatch:t})=>{if(o.selection.empty)return false;if(t){let e=o.tr,{ranges:r}=o.selection,n=e.steps.length;r.forEach(i=>{let s=e.mapping.slice(n),l=e.doc.resolve(s.map(i.$from.pos)),a=e.doc.resolve(s.map(i.$to.pos)),{from:u,to:c}=vM(l,a,o.schema);e.deleteRange(u,c);}),e.scrollIntoView(),t(e);}return true},CM=()=>({commands:o})=>o.keyboardShortcut("Enter"),kM=()=>({state:o,dispatch:t})=>dA(o,t);function aw(o){return Object.prototype.toString.call(o)==="[object RegExp]"}function $g(o,t,e={strict:true}){let r=Object.keys(t);return r.length?r.every(n=>e.strict?t[n]===o[n]:aw(t[n])?t[n].test(o[n]):t[n]===o[n]):true}function kC(o,t,e={}){return o.find(r=>r.type===t&&$g(Object.fromEntries(Object.keys(e).map(n=>[n,r.attrs[n]])),e))}function bC(o,t,e={}){return !!kC(o,t,e)}function uw(o,t,e){if(!o||!t)return;let r=o.parent.childAfter(o.parentOffset);if((!r.node||!r.node.marks.some(u=>u.type===t))&&(r=o.parent.childBefore(o.parentOffset)),!r.node||!r.node.marks.some(u=>u.type===t))return;if(!e){let u=r.node.marks.find(c=>c.type===t);u&&(e=u.attrs);}if(!kC([...r.node.marks],t,e))return;let i=r.index,s=o.start()+r.offset,l=i+1,a=s+r.node.nodeSize;for(;i>0&&bC([...o.parent.child(i-1).marks],t,e);)i-=1,s-=o.parent.child(i).nodeSize;for(;l<o.parent.childCount&&bC([...o.parent.child(l).marks],t,e);)a+=o.parent.child(l).nodeSize,l+=1;return {from:s,to:a}}function al(o,t){if(typeof o=="string"){if(!t.marks[o])throw Error(`There is no mark type named '${o}'. Maybe you forgot to add the extension?`);return t.marks[o]}return o}var NM=(o,t)=>({tr:e,state:r,dispatch:n})=>{let i=al(o,r.schema),{doc:s,selection:l}=e,{$from:a,from:u,to:c}=l;if(n){let h=uw(a,i,t);if(h&&h.from<=u&&h.to>=c){let f=At.create(s,h.from,h.to);e.setSelection(f);}}return true},LM=o=>t=>{let e=typeof o=="function"?o(t):o;for(let r=0;r<e.length;r+=1)if(e[r](t))return true;return false};function NC(o){return o instanceof At}function Ku(o=0,t=0,e=0){return Math.min(Math.max(o,t),e)}function MM(o,t=null){if(!t)return null;let e=Vt.atStart(o),r=Vt.atEnd(o);if(t==="start"||t===true)return e;if(t==="end")return r;let n=e.from,i=r.to;return t==="all"?At.create(o,Ku(0,n,i),Ku(o.content.size,n,i)):At.create(o,Ku(t,n,i),Ku(t,n,i))}function gC(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function Kg(){return ["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function IM(){return typeof navigator<"u"?/^((?!chrome|android).)*safari/i.test(navigator.userAgent):false}var RM=(o=null,t={})=>({editor:e,view:r,tr:n,dispatch:i})=>{t={scrollIntoView:true,...t};let s=()=>{(Kg()||gC())&&r.dom.focus(),IM()&&!Kg()&&!gC()&&r.dom.focus({preventScroll:true}),requestAnimationFrame(()=>{e.isDestroyed||(r.focus(),t?.scrollIntoView&&e.commands.scrollIntoView());});};try{if(r.hasFocus()&&o===null||o===!1)return !0}catch{return false}if(i&&o===null&&!NC(e.state.selection))return s(),true;let l=MM(n.doc,o)||e.state.selection,a=e.state.selection.eq(l);return i&&(a||n.setSelection(l),a&&n.storedMarks&&n.setStoredMarks(n.storedMarks),s()),true},DM=(o,t)=>e=>o.every((r,n)=>t(r,{...e,index:n})),OM=(o,t)=>({tr:e,commands:r})=>r.insertContentAt({from:e.selection.from,to:e.selection.to},o,t),LC=o=>{let t=o.childNodes;for(let e=t.length-1;e>=0;e-=1){let r=t[e];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?o.removeChild(r):r.nodeType===1&&LC(r);}return o};function Gg(o){if(typeof window>"u")throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");let t=`<body>${o}</body>`,e=new window.DOMParser().parseFromString(t,"text/html").body;return LC(e)}function Sy(o,t,e){if(o instanceof Oo||o instanceof tt)return o;e={slice:true,parseOptions:{},...e};let r=typeof o=="object"&&o!==null,n=typeof o=="string";if(r)try{if(Array.isArray(o)&&o.length>0)return tt.fromArray(o.map(l=>t.nodeFromJSON(l)));let s=t.nodeFromJSON(o);return e.errorOnInvalidContent&&s.check(),s}catch(i){if(e.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:i});return console.warn("[tiptap warn]: Invalid content.","Passed value:",o,"Error:",i),Sy("",t,e)}if(n){if(e.errorOnInvalidContent){let s=false,l="",a=new rp({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:u=>(s=true,l=typeof u=="string"?u:u.outerHTML,null)}]}})});if(e.slice?wi.fromSchema(a).parseSlice(Gg(o),e.parseOptions):wi.fromSchema(a).parse(Gg(o),e.parseOptions),e.errorOnInvalidContent&&s)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${l}`)})}let i=wi.fromSchema(t);return e.slice?i.parseSlice(Gg(o),e.parseOptions).content:i.parse(Gg(o),e.parseOptions)}return Sy("",t,e)}function FM(o,t,e){let r=o.steps.length-1;if(r<t)return;let n=o.steps[r];if(!(n instanceof io||n instanceof kr))return;let i=o.mapping.maps[r],s=0;i.forEach((l,a,u,c)=>{s===0&&(s=c);}),o.setSelection(Vt.near(o.doc.resolve(s),e));}var BM=o=>!("type"in o),VM=(o,t,e)=>({tr:r,dispatch:n,editor:i})=>{var s;if(n){e={parseOptions:i.options.parseOptions,updateSelection:true,applyInputRules:false,applyPasteRules:false,...e};let l,a=w=>{i.emit("contentError",{editor:i,error:w,disableCollaboration:()=>{"collaboration"in i.storage&&typeof i.storage.collaboration=="object"&&i.storage.collaboration&&(i.storage.collaboration.isDisabled=true);}});},u={preserveWhitespace:"full",...e.parseOptions};if(!e.errorOnInvalidContent&&!i.options.enableContentCheck&&i.options.emitContentError)try{Sy(t,i.schema,{parseOptions:u,errorOnInvalidContent:!0});}catch(w){a(w);}try{l=Sy(t,i.schema,{parseOptions:u,errorOnInvalidContent:(s=e.errorOnInvalidContent)!=null?s:i.options.enableContentCheck});}catch(w){return a(w),false}let{from:c,to:h}=typeof o=="number"?{from:o,to:o}:{from:o.from,to:o.to},f=true,d=true;if((BM(l)?l:[l]).forEach(w=>{w.check(),f=f?w.isText&&w.marks.length===0:false,d=d?w.isBlock:false;}),c===h&&d){let{parent:w}=r.doc.resolve(c);w.isTextblock&&!w.type.spec.code&&!w.childCount&&(c-=1,h+=1);}let A;if(f){if(Array.isArray(t))A=t.map(w=>w.text||"").join("");else if(t instanceof tt){let w="";t.forEach(T=>{T.text&&(w+=T.text);}),A=w;}else typeof t=="object"&&t&&t.text?A=t.text:A=t;r.insertText(A,c,h);}else {A=l;let w=r.doc.resolve(c),T=w.node(),G=w.parentOffset===0,J=T.isText||T.isTextblock,W=T.content.size>0;G&&J&&W&&d&&(c=Math.max(0,c-1)),r.replaceWith(c,h,A);}e.updateSelection&&FM(r,r.steps.length-1,-1),e.applyInputRules&&r.setMeta("applyInputRules",{from:c,text:A}),e.applyPasteRules&&r.setMeta("applyPasteRules",{from:c,text:A});}return true},HM=()=>({state:o,dispatch:t})=>Qv(o,t),GM=()=>({state:o,dispatch:t})=>Jv(o,t),UM=()=>({state:o,dispatch:t})=>lA(o,t),WM=()=>({state:o,dispatch:t})=>cA(o,t),zM=()=>({state:o,dispatch:t,tr:e})=>{try{let r=Fu(o.doc,o.selection.$from.pos,-1);return r==null?!1:(e.join(r,2),t&&t(e),!0)}catch{return false}},_M=()=>({state:o,dispatch:t,tr:e})=>{try{let r=Fu(o.doc,o.selection.$from.pos,1);return r==null?!1:(e.join(r,2),t&&t(e),!0)}catch{return false}},$M=()=>({state:o,dispatch:t})=>Kv(o,t),KM=()=>({state:o,dispatch:t})=>jv(o,t);function MC(){return typeof navigator<"u"?/Mac/.test(navigator.platform):false}function jM(o){let t=o.split(/-(?!$)/),e=t[t.length-1];e==="Space"&&(e=" ");let r,n,i,s;for(let l=0;l<t.length-1;l+=1){let a=t[l];if(/^(cmd|meta|m)$/i.test(a))s=true;else if(/^a(lt)?$/i.test(a))r=true;else if(/^(c|ctrl|control)$/i.test(a))n=true;else if(/^s(hift)?$/i.test(a))i=true;else if(/^mod$/i.test(a))Kg()||MC()?s=true:n=true;else throw new Error(`Unrecognized modifier name: ${a}`)}return r&&(e=`Alt-${e}`),n&&(e=`Ctrl-${e}`),s&&(e=`Meta-${e}`),i&&(e=`Shift-${e}`),e}var qM=o=>({editor:t,view:e,tr:r,dispatch:n})=>{let i=jM(o).split(/-(?!$)/),s=i.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),l=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:true,cancelable:true}),a=t.captureTransaction(()=>{e.someProp("handleKeyDown",u=>u(e,l));});return a?.steps.forEach(u=>{let c=u.map(r.mapping);c&&n&&r.maybeStep(c);}),true};function ga(o,t,e={}){let{from:r,to:n,empty:i}=o.selection,s=t?yr(t,o.schema):null,l=[];o.doc.nodesBetween(r,n,(h,f)=>{if(h.isText)return;let d=Math.max(r,f),g=Math.min(n,f+h.nodeSize);l.push({node:h,from:d,to:g});});let a=n-r,u=l.filter(h=>s?s.name===h.node.type.name:true).filter(h=>$g(h.node.attrs,e,{strict:false}));return i?!!u.length:u.reduce((h,f)=>h+f.to-f.from,0)>=a}var YM=(o,t={})=>({state:e,dispatch:r})=>{let n=yr(o,e.schema);return ga(e,n,t)?Xv(e,r):false},QM=()=>({state:o,dispatch:t})=>bA(o,t),JM=o=>({state:t,dispatch:e})=>{let r=yr(o,t.schema);return nT(r)(t,e)},XM=()=>({state:o,dispatch:t})=>hA(o,t);function cw(o,t){return t.nodes[o]?"node":t.marks[o]?"mark":null}function SC(o,t){let e=typeof t=="string"?[t]:t;return Object.keys(o).reduce((r,n)=>(e.includes(n)||(r[n]=o[n]),r),{})}var ZM=(o,t)=>({tr:e,state:r,dispatch:n})=>{let i=null,s=null,l=cw(typeof o=="string"?o:o.name,r.schema);if(!l)return false;l==="node"&&(i=yr(o,r.schema)),l==="mark"&&(s=al(o,r.schema));let a=false;return e.selection.ranges.forEach(u=>{r.doc.nodesBetween(u.$from.pos,u.$to.pos,(c,h)=>{i&&i===c.type&&(a=true,n&&e.setNodeMarkup(h,void 0,SC(c.attrs,t))),s&&c.marks.length&&c.marks.forEach(f=>{s===f.type&&(a=true,n&&e.addMark(h,h+c.nodeSize,s.create(SC(f.attrs,t))));});});}),a},tI=()=>({tr:o,dispatch:t})=>(t&&o.scrollIntoView(),true),eI=()=>({tr:o,dispatch:t})=>{if(t){let e=new Fo(o.doc);o.setSelection(e);}return true},rI=()=>({state:o,dispatch:t})=>aA(o,t),oI=()=>({state:o,dispatch:t})=>pA(o,t),nI=()=>({state:o,dispatch:t})=>Zv(o,t),iI=()=>({state:o,dispatch:t})=>SA(o,t),sI=()=>({state:o,dispatch:t})=>gA(o,t);function lI(o,t,e={},r={}){return Sy(o,t,{slice:false,parseOptions:e,errorOnInvalidContent:r.errorOnInvalidContent})}var aI=(o,{errorOnInvalidContent:t,emitUpdate:e=true,parseOptions:r={}}={})=>({editor:n,tr:i,dispatch:s,commands:l})=>{let{doc:a}=i;if(r.preserveWhitespace!=="full"){let u=lI(o,n.schema,r,{errorOnInvalidContent:t??n.options.enableContentCheck});return s&&i.replaceWith(0,a.content.size,u).setMeta("preventUpdate",!e),true}return s&&i.setMeta("preventUpdate",!e),l.insertContentAt({from:0,to:a.content.size},o,{parseOptions:r,errorOnInvalidContent:t??n.options.enableContentCheck})};function IC(o,t){let e=al(t,o.schema),{from:r,to:n,empty:i}=o.selection,s=[];i?(o.storedMarks&&s.push(...o.storedMarks),s.push(...o.selection.$head.marks())):o.doc.nodesBetween(r,n,a=>{s.push(...a.marks);});let l=s.find(a=>a.type.name===e.name);return l?{...l.attrs}:{}}function pw(o,t){let e=new iy(o);return t.forEach(r=>{r.steps.forEach(n=>{e.step(n);});}),e}function uI(o){for(let t=0;t<o.edgeCount;t+=1){let{type:e}=o.edge(t);if(e.isTextblock&&!e.hasRequiredAttrs())return e}return null}function RC(o,t,e){let r=[];return o.nodesBetween(t.from,t.to,(n,i)=>{e(n)&&r.push({node:n,pos:i});}),r}function cI(o,t){for(let e=o.depth;e>0;e-=1){let r=o.node(e);if(t(r))return {pos:e>0?o.before(e):0,start:o.start(e),depth:e,node:r}}}function qg(o){return t=>cI(t.$from,o)}function vt(o,t,e){return o.config[t]===void 0&&o.parent?vt(o.parent,t,e):typeof o.config[t]=="function"?o.config[t].bind({...e,parent:o.parent?vt(o.parent,t,e):null}):o.config[t]}function mw(o){return o.map(t=>{let e={name:t.name,options:t.options,storage:t.storage},r=vt(t,"addExtensions",e);return r?[t,...mw(r())]:t}).flat(10)}function pI(o){return typeof o=="function"}function Le(o,t=void 0,...e){return pI(o)?t?o.bind(t)(...e):o(...e):o}function mI(o={}){return Object.keys(o).length===0&&o.constructor===Object}function yp(o){let t=o.filter(n=>n.type==="extension"),e=o.filter(n=>n.type==="node"),r=o.filter(n=>n.type==="mark");return {baseExtensions:t,nodeExtensions:e,markExtensions:r}}function OC(o){let t=[],{nodeExtensions:e,markExtensions:r}=yp(o),n=[...e,...r],i={default:null,validate:void 0,rendered:true,renderHTML:null,parseHTML:null,keepOnSplit:true,isRequired:false},s=e.filter(u=>u.name!=="text").map(u=>u.name),l=r.map(u=>u.name),a=[...s,...l];return o.forEach(u=>{let c={name:u.name,options:u.options,storage:u.storage,extensions:n},h=vt(u,"addGlobalAttributes",c);if(!h)return;h().forEach(d=>{let g;Array.isArray(d.types)?g=d.types:d.types==="*"?g=a:d.types==="nodes"?g=s:d.types==="marks"?g=l:g=[],g.forEach(A=>{Object.entries(d.attributes).forEach(([w,T])=>{t.push({type:A,name:w,attribute:{...i,...T}});});});});}),n.forEach(u=>{let c={name:u.name,options:u.options,storage:u.storage},h=vt(u,"addAttributes",c);if(!h)return;let f=h();Object.entries(f).forEach(([d,g])=>{let A={...i,...g};typeof A?.default=="function"&&(A.default=A.default()),A?.isRequired&&A?.default===void 0&&delete A.default,t.push({type:u.name,name:d,attribute:A});});}),t}function hI(o){let t=[],e="",r=false,n=false,i=0,s=o.length;for(let l=0;l<s;l+=1){let a=o[l];if(a==="'"&&!n){r=!r,e+=a;continue}if(a==='"'&&!r){n=!n,e+=a;continue}if(!r&&!n){if(a==="("){i+=1,e+=a;continue}if(a===")"&&i>0){i-=1,e+=a;continue}if(a===";"&&i===0){t.push(e),e="";continue}}e+=a;}return e&&t.push(e),t}function PC(o){let t=[],e=hI(o||""),r=e.length;for(let n=0;n<r;n+=1){let i=e[n],s=i.indexOf(":");if(s===-1)continue;let l=i.slice(0,s).trim(),a=i.slice(s+1).trim();l&&a&&t.push([l,a]);}return t}function Jt(...o){return o.filter(t=>!!t).reduce((t,e)=>{let r={...t};return Object.entries(e).forEach(([n,i])=>{if(!r[n]){r[n]=i;return}if(n==="class"){let l=i?String(i).split(" "):[],a=r[n]?r[n].split(" "):[],u=l.filter(c=>!a.includes(c));r[n]=[...a,...u].join(" ");}else if(n==="style"){let l=new Map([...PC(r[n]),...PC(i)]);r[n]=Array.from(l.entries()).map(([a,u])=>`${a}: ${u}`).join("; ");}else r[n]=i;}),r},{})}function dp(o,t){return t.filter(e=>e.type===o.type.name).filter(e=>e.attribute.rendered).map(e=>e.attribute.renderHTML?e.attribute.renderHTML(o.attrs)||{}:{[e.name]:o.attrs[e.name]}).reduce((e,r)=>Jt(e,r),{})}function yI(o){return typeof o!="string"?o:o.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(o):o==="true"?true:o==="false"?false:o}function AC(o,t){return "style"in o?o:{...o,getAttrs:e=>{let r=o.getAttrs?o.getAttrs(e):o.attrs;if(r===false)return false;let n=t.reduce((i,s)=>{let l=s.attribute.parseHTML?s.attribute.parseHTML(e):yI(e.getAttribute(s.name));return l==null?i:{...i,[s.name]:l}},{});return {...r,...n}}}}function wC(o){return Object.fromEntries(Object.entries(o).filter(([t,e])=>t==="attrs"&&mI(e)?false:e!=null))}function xC(o){var t,e;let r={};return !((t=o?.attribute)!=null&&t.isRequired)&&"default"in(o?.attribute||{})&&(r.default=o.attribute.default),((e=o?.attribute)==null?void 0:e.validate)!==void 0&&(r.validate=o.attribute.validate),[o.name,r]}function FC(o,t){var e;let r=OC(o),{nodeExtensions:n,markExtensions:i}=yp(o),s=(e=n.find(u=>vt(u,"topNode")))==null?void 0:e.name,l=Object.fromEntries(n.map(u=>{let c=r.filter(T=>T.type===u.name),h={name:u.name,options:u.options,storage:u.storage,editor:t},f=o.reduce((T,G)=>{let J=vt(G,"extendNodeSchema",h);return {...T,...J?J(u):{}}},{}),d=wC({...f,content:Le(vt(u,"content",h)),marks:Le(vt(u,"marks",h)),group:Le(vt(u,"group",h)),inline:Le(vt(u,"inline",h)),atom:Le(vt(u,"atom",h)),selectable:Le(vt(u,"selectable",h)),draggable:Le(vt(u,"draggable",h)),code:Le(vt(u,"code",h)),whitespace:Le(vt(u,"whitespace",h)),linebreakReplacement:Le(vt(u,"linebreakReplacement",h)),defining:Le(vt(u,"defining",h)),isolating:Le(vt(u,"isolating",h)),attrs:Object.fromEntries(c.map(xC))}),g=Le(vt(u,"parseHTML",h));g&&(d.parseDOM=g.map(T=>AC(T,c)));let A=vt(u,"renderHTML",h);A&&(d.toDOM=T=>A({node:T,HTMLAttributes:dp(T,c)}));let w=vt(u,"renderText",h);return w&&(d.toText=w),[u.name,d]})),a=Object.fromEntries(i.map(u=>{let c=r.filter(w=>w.type===u.name),h={name:u.name,options:u.options,storage:u.storage,editor:t},f=o.reduce((w,T)=>{let G=vt(T,"extendMarkSchema",h);return {...w,...G?G(u):{}}},{}),d=wC({...f,inclusive:Le(vt(u,"inclusive",h)),excludes:Le(vt(u,"excludes",h)),group:Le(vt(u,"group",h)),spanning:Le(vt(u,"spanning",h)),code:Le(vt(u,"code",h)),attrs:Object.fromEntries(c.map(xC))}),g=Le(vt(u,"parseHTML",h));g&&(d.parseDOM=g.map(w=>AC(w,c)));let A=vt(u,"renderHTML",h);return A&&(d.toDOM=w=>A({mark:w,HTMLAttributes:dp(w,c)})),[u.name,d]}));return new rp({topNode:s,nodes:l,marks:a})}function dI(o){let t=o.filter((e,r)=>o.indexOf(e)!==r);return Array.from(new Set(t))}function gy(o){return o.sort((e,r)=>{let n=vt(e,"priority")||100,i=vt(r,"priority")||100;return n>i?-1:n<i?1:0})}function hw(o){let t=gy(mw(o)),e=dI(t.map(r=>r.name));return e.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${e.map(r=>`'${r}'`).join(", ")}]. This can lead to issues.`),t}function BC(o,t){let e=hw(o);return FC(e,t)}function fI(o,t,e){let{from:r,to:n}=t,{blockSeparator:i=`
14
+
15
+ `,textSerializers:s={}}=e||{},l="";return o.nodesBetween(r,n,(a,u,c,h)=>{var f;a.isBlock&&u>r&&(l+=i);let d=s?.[a.type.name];if(d)return c&&(l+=d({node:a,pos:u,parent:c,index:h,range:t})),false;a.isText&&(l+=(f=a?.text)==null?void 0:f.slice(Math.max(r,u)-u,n-u));}),l}function bI(o){return Object.fromEntries(Object.entries(o.nodes).filter(([,t])=>t.spec.toText).map(([t,e])=>[t,e.spec.toText]))}function gI(o,t){let e=yr(t,o.schema),{from:r,to:n}=o.selection,i=[];o.doc.nodesBetween(r,n,l=>{i.push(l);});let s=i.reverse().find(l=>l.type.name===e.name);return s?{...s.attrs}:{}}function VC(o,t){let e=cw(typeof t=="string"?t:t.name,o.schema);return e==="node"?gI(o,t):e==="mark"?IC(o,t):{}}function SI(o,t=JSON.stringify){let e={};return o.filter(r=>{let n=t(r);return Object.prototype.hasOwnProperty.call(e,n)?false:e[n]=true})}function PI(o){let t=SI(o);return t.length===1?t:t.filter((e,r)=>!t.filter((i,s)=>s!==r).some(i=>e.oldRange.from>=i.oldRange.from&&e.oldRange.to<=i.oldRange.to&&e.newRange.from>=i.newRange.from&&e.newRange.to<=i.newRange.to))}function Py(o){let{mapping:t,steps:e}=o,r=[];return t.maps.forEach((n,i)=>{let s=[];if(n.ranges.length)n.forEach((l,a)=>{s.push({from:l,to:a});});else {let{from:l,to:a}=e[i];if(l===void 0||a===void 0)return;s.push({from:l,to:a});}s.forEach(({from:l,to:a})=>{let u=t.slice(i).map(l,-1),c=t.slice(i).map(a),h=t.invert().map(u,-1),f=t.invert().map(c);r.push({oldRange:{from:h,to:f},newRange:{from:u,to:c}});});}),PI(r)}function Yg(o,t,e){let r=[];return o===t?e.resolve(o).marks().forEach(n=>{let i=e.resolve(o),s=uw(i,n.type);s&&r.push({mark:n,...s});}):e.nodesBetween(o,t,(n,i)=>{!n||n?.nodeSize===void 0||r.push(...n.marks.map(s=>({from:i,to:i+n.nodeSize,mark:s})));}),r}var HC=(o,t,e,r=20)=>{let n=o.doc.resolve(e),i=r,s=null;for(;i>0&&s===null;){let l=n.node(i);l?.type.name===t?s=l:i-=1;}return [s,i]};function _g(o,t,e){return Object.fromEntries(Object.entries(e).filter(([r])=>{let n=o.find(i=>i.type===t&&i.name===r);return n?n.attribute.keepOnSplit:false}))}function wI(o,t,e={}){let{empty:r,ranges:n}=o.selection,i=t?al(t,o.schema):null;if(r)return !!(o.storedMarks||o.selection.$from.marks()).filter(h=>i?i.name===h.type.name:true).find(h=>$g(h.attrs,e,{strict:false}));let s=0,l=[];if(n.forEach(({$from:h,$to:f})=>{let d=h.pos,g=f.pos;o.doc.nodesBetween(d,g,(A,w)=>{if(i&&A.inlineContent&&!A.type.allowsMarkType(i))return false;if(!A.isText&&!A.marks.length)return;let T=Math.max(d,w),G=Math.min(g,w+A.nodeSize),J=G-T;s+=J,l.push(...A.marks.map(W=>({mark:W,from:T,to:G})));});}),s===0)return false;let a=l.filter(h=>i?i.name===h.mark.type.name:true).filter(h=>$g(h.mark.attrs,e,{strict:false})).reduce((h,f)=>h+f.to-f.from,0),u=l.filter(h=>i?h.mark.type!==i&&h.mark.type.excludes(i):true).reduce((h,f)=>h+f.to-f.from,0);return (a>0?a+u:a)>=s}var GC=(o,t)=>{let{$from:e,$to:r,$anchor:n}=o.selection;if(t){let i=qg(l=>l.type.name===t)(o.selection);if(!i)return false;let s=o.doc.resolve(i.pos+1);return n.pos+1===s.end()}return !(r.parentOffset<r.parent.nodeSize-2||e.pos!==r.pos)},UC=o=>{let{$from:t,$to:e}=o.selection;return !(t.parentOffset>0||t.pos!==e.pos)};function ow(o,t){let{nodeExtensions:e}=yp(t),r=e.find(s=>s.name===o);if(!r)return false;let n={name:r.name,options:r.options,storage:r.storage},i=Le(vt(r,"group",n));return typeof i!="string"?false:i.split(" ").includes("list")}function Ay(o,{checkChildren:t=true,ignoreWhitespace:e=false}={}){var r;if(e){if(o.type.name==="hardBreak")return true;if(o.isText)return !/\S/.test((r=o.text)!=null?r:"")}if(o.isText)return !o.text;if(o.isAtom||o.isLeaf)return false;if(o.content.childCount===0)return true;if(t){let n=true;return o.content.forEach(i=>{n!==false&&(Ay(i,{ignoreWhitespace:e,checkChildren:t})||(n=false));}),n}return false}function Qg(o){return o instanceof wt}function xI(o,t,e){var r;let{selection:n}=t,i=null;if(NC(n)&&(i=n.$cursor),i){let l=(r=o.storedMarks)!=null?r:i.marks();return i.parent.type.allowsMarkType(e)&&(!!e.isInSet(l)||!l.some(u=>u.type.excludes(e)))}let{ranges:s}=n;return s.some(({$from:l,$to:a})=>{let u=l.depth===0?o.doc.inlineContent&&o.doc.type.allowsMarkType(e):false;return o.doc.nodesBetween(l.pos,a.pos,(c,h,f)=>{if(u)return false;if(c.isInline){let d=!f||f.type.allowsMarkType(e),g=!!e.isInSet(c.marks)||!c.marks.some(A=>A.type.excludes(e));u=d&&g;}return !u}),u})}var EI=(o,t={})=>({tr:e,state:r,dispatch:n})=>{let{selection:i}=e,{empty:s,ranges:l}=i,a=al(o,r.schema);if(n)if(s){let u=IC(r,a);e.addStoredMark(a.create({...u,...t}));}else l.forEach(u=>{let c=u.$from.pos,h=u.$to.pos;r.doc.nodesBetween(c,h,(f,d)=>{let g=Math.max(d,c),A=Math.min(d+f.nodeSize,h);f.marks.find(T=>T.type===a)?f.marks.forEach(T=>{a===T.type&&e.addMark(g,A,a.create({...T.attrs,...t}));}):e.addMark(g,A,a.create(t));});});return xI(r,e,a)},vI=(o,t)=>({tr:e})=>(e.setMeta(o,t),true),TI=(o,t={})=>({state:e,dispatch:r,chain:n})=>{let i=yr(o,e.schema),s;return e.selection.$anchor.sameParent(e.selection.$head)&&(s=e.selection.$anchor.parent.attrs),i.isTextblock?n().command(({commands:l})=>PA(i,{...s,...t})(e)?true:l.clearNodes()).command(({state:l})=>PA(i,{...s,...t})(l,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),false)},CI=o=>({tr:t,dispatch:e})=>{if(e){let{doc:r}=t,n=Ku(o,0,r.content.size),i=wt.create(r,n);t.setSelection(i);}return true},kI=(o,t)=>({tr:e,state:r,dispatch:n})=>{let{selection:i}=r,s,l;return typeof t=="number"?(s=t,l=t):t&&"from"in t&&"to"in t?(s=t.from,l=t.to):(s=i.from,l=i.to),n&&e.doc.nodesBetween(s,l,(a,u)=>{a.isText||e.setNodeMarkup(u,void 0,{...a.attrs,dir:o});}),true},NI=o=>({tr:t,dispatch:e})=>{if(e){let{doc:r}=t,{from:n,to:i}=typeof o=="number"?{from:o,to:o}:o,s=At.atStart(r).from,l=At.atEnd(r).to,a=Ku(n,s,l),u=Ku(i,s,l),c=At.create(r,a,u);t.setSelection(c);}return true},LI=o=>({state:t,dispatch:e})=>{let r=yr(o,t.schema);return iT(r)(t,e)};function vC(o,t){let e=o.storedMarks||o.selection.$to.parentOffset&&o.selection.$from.marks();if(e){let r=e.filter(n=>t?.includes(n.type.name));o.tr.ensureMarks(r);}}var MI=({keepMarks:o=true}={})=>({tr:t,state:e,dispatch:r,editor:n})=>{let{selection:i,doc:s}=t,{$from:l,$to:a}=i,u=n.extensionManager.attributes,c=_g(u,l.node().type.name,l.node().attrs);if(i instanceof wt&&i.node.isBlock)return !l.parentOffset||!Tn(s,l.pos)?false:(r&&(o&&vC(e,n.extensionManager.splittableMarks),t.split(l.pos).scrollIntoView()),true);if(!l.parent.isBlock)return false;let h=a.parentOffset===a.parent.content.size,f=l.depth===0?void 0:uI(l.node(-1).contentMatchAt(l.indexAfter(-1))),d=h&&f?[{type:f,attrs:c}]:void 0,g=Tn(t.doc,t.mapping.map(l.pos),1,d);if(!d&&!g&&Tn(t.doc,t.mapping.map(l.pos),1,f?[{type:f}]:void 0)&&(g=true,d=f?[{type:f,attrs:c}]:void 0),r){if(g&&(i instanceof At&&t.deleteSelection(),t.split(t.mapping.map(l.pos),1,d),f&&!h&&!l.parentOffset&&l.parent.type!==f)){let A=t.mapping.map(l.before()),w=t.doc.resolve(A);l.node(-1).canReplaceWith(w.index(),w.index()+1,f)&&t.setNodeMarkup(t.mapping.map(l.before()),f);}o&&vC(e,n.extensionManager.splittableMarks),t.scrollIntoView();}return g},II=(o,t={})=>({tr:e,state:r,dispatch:n,editor:i})=>{var s;let l=yr(o,r.schema),{$from:a,$to:u}=r.selection,c=r.selection.node;if(c&&c.isBlock||a.depth<2||!a.sameParent(u))return false;let h=a.node(-1);if(h.type!==l)return false;let f=i.extensionManager.attributes;if(a.parent.content.size===0&&a.node(-1).childCount===a.indexAfter(-1)){if(a.depth===2||a.node(-3).type!==l||a.index(-2)!==a.node(-2).childCount-1)return false;if(n){let T=tt.empty,G=a.index(-1)?1:a.index(-2)?2:3;for(let kt=a.depth-G;kt>=a.depth-3;kt-=1)T=tt.from(a.node(kt).copy(T));let J=a.indexAfter(-1)<a.node(-2).childCount?1:a.indexAfter(-2)<a.node(-3).childCount?2:3,W={..._g(f,a.node().type.name,a.node().attrs),...t},q=((s=l.contentMatch.defaultType)==null?void 0:s.createAndFill(W))||void 0;T=T.append(tt.from(l.createAndFill(null,q)||void 0));let ut=a.before(a.depth-(G-1));e.replace(ut,a.after(-J),new yt(T,4-G,0));let Z=-1;e.doc.nodesBetween(ut,e.doc.content.size,(kt,Lt)=>{if(Z>-1)return false;kt.isTextblock&&kt.content.size===0&&(Z=Lt+1);}),Z>-1&&e.setSelection(At.near(e.doc.resolve(Z))),e.scrollIntoView();}return true}let d=u.pos===a.end()?h.contentMatchAt(0).defaultType:null,g={..._g(f,h.type.name,h.attrs),...t},A={..._g(f,a.node().type.name,a.node().attrs),...t};e.delete(a.pos,u.pos);let w=d?[{type:l,attrs:g},{type:d,attrs:A}]:[{type:l,attrs:g}];if(!Tn(e.doc,a.pos,2))return false;if(n){let{selection:T,storedMarks:G}=r,{splittableMarks:J}=i.extensionManager,W=G||T.$to.parentOffset&&T.$from.marks();if(e.split(a.pos,2,w).scrollIntoView(),!W||!n)return true;let q=W.filter(ut=>J.includes(ut.type.name));e.ensureMarks(q);}return true};function TC(o){return !o||o==="1"?null:o}function WC(o,t){return TC(o)===TC(t)}var nw=(o,t)=>{let e=qg(s=>s.type===t)(o.selection);if(!e)return true;let r=o.doc.resolve(Math.max(0,e.pos-1)).before(e.depth);if(r===void 0)return true;let n=o.doc.nodeAt(r);return !(e.node.type===n?.type&&$n(o.doc,e.pos))||!WC(e.node.attrs.type,n?.attrs.type)||o.join(e.pos),true},iw=(o,t)=>{let e=qg(s=>s.type===t)(o.selection);if(!e)return true;let r=o.doc.resolve(e.start).after(e.depth);if(r===void 0)return true;let n=o.doc.nodeAt(r);return !(e.node.type===n?.type&&$n(o.doc,r))||!WC(e.node.attrs.type,n?.attrs.type)||o.join(r),true};function RI(o){let t=o.doc,e=t.firstChild;if(!e)return null;let r=t.resolve(1),n=t.resolve(e.nodeSize-1);return At.between(r,n)}var DI=(o,t,e,r={})=>({editor:n,tr:i,state:s,dispatch:l,chain:a,commands:u,can:c})=>{let{extensions:h,splittableMarks:f}=n.extensionManager,d=yr(o,s.schema),g=yr(t,s.schema),{selection:A,storedMarks:w}=s,{$from:T,$to:G}=A,J=T.blockRange(G),W=w||A.$to.parentOffset&&A.$from.marks();if(!J)return false;let q=qg(_e=>ow(_e.type.name,h))(A),ut=A.from===0&&A.to===s.doc.content.size,Z=s.doc.content.content,kt=Z.length===1?Z[0]:null,Lt=ut&&kt&&ow(kt.type.name,h)?{node:kt,pos:0}:null,Ee=q??Lt,ir=!!q&&J.depth>=1&&J.depth-q.depth<=1,Br=!!Lt;if((ir||Br)&&Ee){if(Ee.node.type===d)return ut&&Br?a().command(({tr:_e,dispatch:sr})=>{let ve=RI(_e);return ve?(_e.setSelection(ve),sr&&sr(_e),true):false}).liftListItem(g).run():u.liftListItem(g);if(ow(Ee.node.type.name,h)&&d.validContent(Ee.node.content))return a().command(()=>(i.setNodeMarkup(Ee.pos,d),true)).command(()=>nw(i,d)).command(()=>iw(i,d)).run()}return !e||!W||!l?a().command(()=>c().wrapInList(d,r)?true:u.clearNodes()).wrapInList(d,r).command(()=>nw(i,d)).command(()=>iw(i,d)).run():a().command(()=>{let _e=c().wrapInList(d,r),sr=W.filter(ve=>f.includes(ve.type.name));return i.ensureMarks(sr),_e?true:u.clearNodes()}).wrapInList(d,r).command(()=>nw(i,d)).command(()=>iw(i,d)).run()},OI=(o,t={},e={})=>({state:r,commands:n})=>{let{extendEmptyMarkRange:i=false}=e,s=al(o,r.schema);return wI(r,s,t)?n.unsetMark(s,{extendEmptyMarkRange:i}):n.setMark(s,t)},FI=(o,t,e={})=>({state:r,commands:n})=>{let i=yr(o,r.schema),s=yr(t,r.schema),l=ga(r,i,e),a;return r.selection.$anchor.sameParent(r.selection.$head)&&(a=r.selection.$anchor.parent.attrs),l?n.setNode(s,a):n.setNode(i,{...a,...e})},BI=(o,t={})=>({state:e,commands:r})=>{let n=yr(o,e.schema);return ga(e,n,t)?r.lift(n):r.wrapIn(n,t)},VI=()=>({state:o,dispatch:t})=>{let e=o.plugins;for(let r=0;r<e.length;r+=1){let n=e[r],i;if(n.spec.isInputRules&&(i=n.getState(o))){if(t){let s=o.tr,l=i.transform;for(let a=l.steps.length-1;a>=0;a-=1)s.step(l.steps[a].invert(l.docs[a]));if(i.text){let a=s.doc.resolve(i.from).marks();s.replaceWith(i.from,i.to,o.schema.text(i.text,a));}else s.delete(i.from,i.to);}return true}}return false},HI=(o={})=>({tr:t,dispatch:e,editor:r})=>{let{ignoreClearable:n=false}=o,{selection:i}=t,{empty:s,ranges:l}=i;if(s)return true;let{nonClearableMarks:a}=r.extensionManager;if(e){let u=Object.values(r.schema.marks).filter(c=>n||!a.includes(c.name));l.forEach(c=>{for(let h of u)t.removeMark(c.$from.pos,c.$to.pos,h);});}return true},GI=(o,t={})=>({tr:e,state:r,dispatch:n})=>{var i;let{extendEmptyMarkRange:s=false}=t,{selection:l}=e,a=al(o,r.schema),{$from:u,empty:c,ranges:h}=l;if(!n)return true;if(c&&s){let{from:f,to:d}=l,g=(i=u.marks().find(w=>w.type===a))==null?void 0:i.attrs,A=uw(u,a,g);A&&(f=A.from,d=A.to),e.removeMark(f,d,a);}else h.forEach(f=>{e.removeMark(f.$from.pos,f.$to.pos,a);});return e.removeStoredMark(a),true},UI=o=>({tr:t,state:e,dispatch:r})=>{let{selection:n}=e,i,s;return typeof o=="number"?(i=o,s=o):o&&"from"in o&&"to"in o?(i=o.from,s=o.to):(i=n.from,s=n.to),r&&t.doc.nodesBetween(i,s,(l,a)=>{if(l.isText)return;let u={...l.attrs};delete u.dir,t.setNodeMarkup(a,void 0,u);}),true},WI=(o,t={})=>({tr:e,state:r,dispatch:n})=>{let i=null,s=null,l=cw(typeof o=="string"?o:o.name,r.schema);if(!l)return false;l==="node"&&(i=yr(o,r.schema)),l==="mark"&&(s=al(o,r.schema));let a=false;return e.selection.ranges.forEach(u=>{let c=u.$from.pos,h=u.$to.pos,f,d,g,A;e.selection.empty?r.doc.nodesBetween(c,h,(w,T)=>{i&&i===w.type&&(a=true,g=Math.max(T,c),A=Math.min(T+w.nodeSize,h),f=T,d=w);}):r.doc.nodesBetween(c,h,(w,T)=>{T<c&&i&&i===w.type&&(a=true,g=Math.max(T,c),A=Math.min(T+w.nodeSize,h),f=T,d=w),T>=c&&T<=h&&(i&&i===w.type&&(a=true,n&&e.setNodeMarkup(T,void 0,{...w.attrs,...t})),s&&w.marks.length&&w.marks.forEach(G=>{if(s===G.type&&(a=true,n)){let J=Math.max(T,c),W=Math.min(T+w.nodeSize,h);e.addMark(J,W,s.create({...G.attrs,...t}));}}));}),d&&(f!==void 0&&n&&e.setNodeMarkup(f,void 0,{...d.attrs,...t}),s&&d.marks.length&&d.marks.forEach(w=>{s===w.type&&n&&e.addMark(g,A,s.create({...w.attrs,...t}));}));}),a},zI=(o,t={})=>({state:e,dispatch:r})=>{let n=yr(o,e.schema);return rT(n,t)(e,r)},_I=(o,t={})=>({state:e,dispatch:r})=>{let n=yr(o,e.schema);return oT(n,t)(e,r)};function zC(o,t){let{selection:e}=o,{$from:r}=e;if(e instanceof wt){let i=r.index();return r.parent.canReplaceWith(i,i+1,t)}let n=r.depth;for(;n>=0;){let i=r.index(n);if(r.node(n).contentMatchAt(i).matchType(t))return true;n-=1;}return false}function Qn(o,t){let e=o.getAttribute("style");if(!e)return null;let r=e.split(";").map(i=>i.trim()).filter(Boolean),n=t.toLowerCase();for(let i=r.length-1;i>=0;i-=1){let s=r[i],l=s.indexOf(":");if(l===-1)continue;if(s.slice(0,l).trim().toLowerCase()===n)return s.slice(l+1).trim()}return null}function KI(o){return Object.prototype.toString.call(o).slice(8,-1)}function Ug(o){return KI(o)!=="Object"?false:o.constructor===Object&&Object.getPrototypeOf(o)===Object.prototype}var jI={};sw(jI,{createAtomBlockMarkdownSpec:()=>qI,createBlockMarkdownSpec:()=>YI,createInlineMarkdownSpec:()=>XI,parseAttributes:()=>yw,parseIndentedBlocks:()=>Jg,renderNestedMarkdownContent:()=>wy,serializeAttributes:()=>dw});function yw(o){if(!o?.trim())return {};let t={},e=[],r=o.replace(/["']([^"']*)["']/g,u=>(e.push(u),`__QUOTED_${e.length-1}__`)),n=r.match(/(?:^|\s)\.([\w-]+)/g);if(n){let u=n.map(c=>c.trim().slice(1));t.class=u.join(" ");}let i=r.match(/(?:^|\s)#([\w-]+)/);i&&(t.id=i[1]);let s=/([a-zA-Z][\w-]*)\s*=\s*(__QUOTED_\d+__)/g;Array.from(r.matchAll(s)).forEach(([,u,c])=>{var h;let f=parseInt(((h=c.match(/__QUOTED_(\d+)__/))==null?void 0:h[1])||"0",10),d=e[f];d&&(t[u]=d.slice(1,-1));});let a=r.replace(/(?:^|\s)\.([\w-]+)/g,"").replace(/(?:^|\s)#([\w-]+)/g,"").replace(/([a-zA-Z][\w-]*)\s*=\s*__QUOTED_\d+__/g,"").trim();return a&&a.split(/\s+/).filter(Boolean).forEach(c=>{c.match(/^[a-zA-Z][\w-]*$/)&&(t[c]=true);}),t}function dw(o){if(!o||Object.keys(o).length===0)return "";let t=[];return o.class&&String(o.class).split(/\s+/).filter(Boolean).forEach(r=>t.push(`.${r}`)),o.id&&t.push(`#${o.id}`),Object.entries(o).forEach(([e,r])=>{e==="class"||e==="id"||(r===true?t.push(e):r!==false&&r!=null&&t.push(`${e}="${String(r)}"`));}),t.join(" ")}function qI(o){let{nodeName:t,name:e,parseAttributes:r=yw,serializeAttributes:n=dw,defaultAttributes:i={},requiredAttributes:s=[],allowedAttributes:l}=o,a=e||t,u=c=>{if(!l)return c;let h={};return l.forEach(f=>{f in c&&(h[f]=c[f]);}),h};return {parseMarkdown:(c,h)=>{let f={...i,...c.attributes};return h.createNode(t,f,[])},markdownTokenizer:{name:t,level:"block",start(c){var h;let f=new RegExp(`^:::${a}(?:\\s|$)`,"m"),d=(h=c.match(f))==null?void 0:h.index;return d!==void 0?d:-1},tokenize(c,h,f){let d=new RegExp(`^:::${a}(?:\\s+\\{([^}]*)\\})?\\s*:::(?:\\n|$)`),g=c.match(d);if(!g)return;let A=g[1]||"",w=r(A);if(!s.find(G=>!(G in w)))return {type:t,raw:g[0],attributes:w}}},renderMarkdown:c=>{let h=u(c.attrs||{}),f=n(h),d=f?` {${f}}`:"";return `:::${a}${d} :::`}}}function YI(o){let{nodeName:t,name:e,getContent:r,parseAttributes:n=yw,serializeAttributes:i=dw,defaultAttributes:s={},content:l="block",allowedAttributes:a}=o,u=e||t,c=h=>{if(!a)return h;let f={};return a.forEach(d=>{d in h&&(f[d]=h[d]);}),f};return {parseMarkdown:(h,f)=>{let d;if(r){let A=r(h);d=typeof A=="string"?[{type:"text",text:A}]:A;}else l==="block"?d=f.parseChildren(h.tokens||[]):d=f.parseInline(h.tokens||[]);let g={...s,...h.attributes};return f.createNode(t,g,d)},markdownTokenizer:{name:t,level:"block",start(h){var f;let d=new RegExp(`^:::${u}`,"m"),g=(f=h.match(d))==null?void 0:f.index;return g!==void 0?g:-1},tokenize(h,f,d){var g;let A=new RegExp(`^:::${u}(?:\\s+\\{([^}]*)\\})?\\s*\\n`),w=h.match(A);if(!w)return;let[T,G=""]=w,J=n(G),W=1,q=T.length,ut="",Z=/^:::([\w-]*)(\s.*)?/gm,kt=h.slice(q);for(Z.lastIndex=0;;){let Lt=Z.exec(kt);if(Lt===null)break;let Ee=Lt.index,ir=Lt[1];if(!((g=Lt[2])!=null&&g.endsWith(":::"))){if(ir)W+=1;else if(W-=1,W===0){let Br=kt.slice(0,Ee);ut=Br.trim();let _e=h.slice(0,q+Ee+Lt[0].length),sr=[];if(ut)if(l==="block")for(sr=d.blockTokens(Br),sr.forEach(ve=>{ve.text&&(!ve.tokens||ve.tokens.length===0)&&(ve.tokens=d.inlineTokens(ve.text));});sr.length>0;){let ve=sr[sr.length-1];if(ve.type==="paragraph"&&(!ve.text||ve.text.trim()===""))sr.pop();else break}else sr=d.inlineTokens(ut);return {type:t,raw:_e,attributes:J,content:ut,tokens:sr}}}}}},renderMarkdown:(h,f)=>{let d=c(h.attrs||{}),g=i(d),A=g?` {${g}}`:"",w=f.renderChildren(h.content||[],`
16
+
17
+ `);return `:::${u}${A}
18
+
19
+ ${w}
20
+
21
+ :::`}}}function QI(o){if(!o.trim())return {};let t={},e=/(\w+)=(?:"([^"]*)"|'([^']*)')/g,r=e.exec(o);for(;r!==null;){let[,n,i,s]=r;t[n]=i||s,r=e.exec(o);}return t}function JI(o){return Object.entries(o).filter(([,t])=>t!=null).map(([t,e])=>`${t}="${e}"`).join(" ")}function XI(o){let{nodeName:t,name:e,getContent:r,parseAttributes:n=QI,serializeAttributes:i=JI,defaultAttributes:s={},selfClosing:l=false,allowedAttributes:a}=o,u=e||t,c=f=>{if(!a)return f;let d={};return a.forEach(g=>{let A=typeof g=="string"?g:g.name,w=typeof g=="string"?void 0:g.skipIfDefault;if(A in f){let T=f[A];if(w!==void 0&&T===w)return;d[A]=T;}}),d},h=u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return {parseMarkdown:(f,d)=>{let g={...s,...f.attributes};if(l)return d.createNode(t,g);let A=r?r(f):f.content||"";return A?d.createNode(t,g,[d.createTextNode(A)]):d.createNode(t,g,[])},markdownTokenizer:{name:t,level:"inline",start(f){let d=l?new RegExp(`\\[${h}\\s*[^\\]]*\\]`):new RegExp(`\\[${h}\\s*[^\\]]*\\][\\s\\S]*?\\[\\/${h}\\]`),g=f.match(d),A=g?.index;return A!==void 0?A:-1},tokenize(f,d,g){let A=l?new RegExp(`^\\[${h}\\s*([^\\]]*)\\]`):new RegExp(`^\\[${h}\\s*([^\\]]*)\\]([\\s\\S]*?)\\[\\/${h}\\]`),w=f.match(A);if(!w)return;let T="",G="";if(l){let[,W]=w;G=W;}else {let[,W,q]=w;G=W,T=q||"";}let J=n(G.trim());return {type:t,raw:w[0],content:T.trim(),attributes:J}}},renderMarkdown:f=>{let d="";r?d=r(f):f.content&&f.content.length>0&&(d=f.content.filter(T=>T.type==="text").map(T=>T.text).join(""));let g=c(f.attrs||{}),A=i(g),w=A?` ${A}`:"";return l?`[${u}${w}]`:`[${u}${w}]${d}[/${u}]`}}}function Jg(o,t,e){var r,n,i,s;let l=o.split(`
22
+ `),a=[],u="",c=0,h=t.baseIndentSize||2;for(;c<l.length;){let f=l[c],d=f.match(t.itemPattern);if(!d){if(a.length>0)break;if(f.trim()===""){c+=1,u=`${u}${f}
23
+ `;continue}else return}let g=t.extractItemData(d),{indentLevel:A,mainContent:w}=g;u=`${u}${f}
24
+ `;let T=[w];for(c+=1;c<l.length;){let q=l[c];if(q.trim()===""){let Z=l.slice(c+1).findIndex(Ee=>Ee.trim()!=="");if(Z===-1)break;if((((n=(r=l[c+1+Z].match(/^(\s*)/))==null?void 0:r[1])==null?void 0:n.length)||0)>A){T.push(q),u=`${u}${q}
25
+ `,c+=1;continue}else break}if((((s=(i=q.match(/^(\s*)/))==null?void 0:i[1])==null?void 0:s.length)||0)>A)T.push(q),u=`${u}${q}
26
+ `,c+=1;else break}let G,J=T.slice(1);if(J.length>0){let q=J.map(ut=>ut.slice(A+h)).join(`
27
+ `);q.trim()&&(t.customNestedParser?G=t.customNestedParser(q):G=e.blockTokens(q));}let W=t.createToken(g,G);a.push(W);}if(a.length!==0)return {items:a,raw:u}}function wy(o,t,e,r){if(!o||!Array.isArray(o.content))return "";let n=typeof e=="function"?e(r):e,[i,...s]=o.content,l=t.renderChildren([i]),a=`${n}${l}`;return s&&s.length>0&&s.forEach((u,c)=>{var h,f;let d=(f=(h=t.renderChild)==null?void 0:h.call(t,u,c+1))!=null?f:t.renderChildren([u]);if(d!=null){let g=d.split(`
28
+ `).map(A=>A?t.indent(A):t.indent("")).join(`
29
+ `);a+=u.type==="paragraph"?`
30
+
31
+ ${g}`:`
32
+ ${g}`;}}),a}function _C(o,t){let e={...o};return Ug(o)&&Ug(t)&&Object.keys(t).forEach(r=>{Ug(t[r])&&Ug(o[r])?e[r]=_C(o[r],t[r]):e[r]=t[r];}),e}var Xg=class{constructor(o){var t;this.find=o.find,this.handler=o.handler,this.undoable=(t=o.undoable)!=null?t:true;}};var fw=class{constructor(o={}){this.type="extendable",this.parent=null,this.child=null,this.name="",this.config={name:this.name},this.config={...this.config,...o},this.name=this.config.name;}get options(){return {...Le(vt(this,"addOptions",{name:this.name}))}}get storage(){return {...Le(vt(this,"addStorage",{name:this.name,options:this.options}))}}configure(o={}){let t=this.extend({...this.config,addOptions:()=>_C(this.options,o)});return t.name=this.name,t.parent=this.parent,this.child=null,t}extend(o={}){let t=new this.constructor({...this.config,...o});return t.parent=this,this.child=t,t.name="name"in o?o.name:t.parent.name,t}},lo=class $C extends fw{constructor(){super(...arguments),this.type="mark";}static create(t={}){let e=typeof t=="function"?t():t;return new $C(e)}static handleExit({editor:t,mark:e}){let{tr:r}=t.state,n=t.state.selection.$from;if(n.pos===n.end()){let s=n.marks();if(!!!s.find(u=>u?.type.name===e.name))return false;let a=s.find(u=>u?.type.name===e.name);return a&&r.removeStoredMark(a),r.insertText(" ",n.pos),t.view.dispatch(r),true}return false}configure(t){return super.configure(t)}extend(t){let e=typeof t=="function"?t():t;return super.extend(e)}},rR=class{constructor(o){this.find=o.find,this.handler=o.handler;}};var lR={};sw(lR,{ClipboardTextSerializer:()=>aR,Commands:()=>uR,Delete:()=>cR,Drop:()=>pR,Editable:()=>mR,FocusEvents:()=>hR,Keymap:()=>yR,Paste:()=>dR,Tabindex:()=>fR,TextDirection:()=>bR,focusEventsPluginKey:()=>jC});var Bt=class KC extends fw{constructor(){super(...arguments),this.type="extension";}static create(t={}){let e=typeof t=="function"?t():t;return new KC(e)}configure(t){return super.configure(t)}extend(t){let e=typeof t=="function"?t():t;return super.extend(e)}},aR=Bt.create({name:"clipboardTextSerializer",addOptions(){return {blockSeparator:void 0}},addProseMirrorPlugins(){return [new Dt({key:new ne("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{let{editor:o}=this,{state:t,schema:e}=o,{doc:r,selection:n}=t,i=bI(e),{blockSeparator:s}=this.options,l={...s!==void 0?{blockSeparator:s}:{},textSerializers:i};return [...n.ranges].sort((u,c)=>u.$from.pos-c.$from.pos).map(({$from:u,$to:c})=>fI(r,{from:u.pos,to:c.pos},l)).join(s??`
33
+
34
+ `)}}})]}}),uR=Bt.create({name:"commands",addCommands(){return {...CC}}}),cR=Bt.create({name:"delete",onUpdate({transaction:o,appendedTransactions:t}){var e,r,n;let i=()=>{var s,l,a,u;if((u=(a=(l=(s=this.editor.options.coreExtensionOptions)==null?void 0:s.delete)==null?void 0:l.filterTransaction)==null?void 0:a.call(l,o))!=null?u:o.getMeta("y-sync$"))return;let c=pw(o.before,[o,...t]);Py(c).forEach(d=>{c.mapping.mapResult(d.oldRange.from).deletedAfter&&c.mapping.mapResult(d.oldRange.to).deletedBefore&&c.before.nodesBetween(d.oldRange.from,d.oldRange.to,(g,A)=>{let w=A+g.nodeSize-2,T=d.oldRange.from<=A&&w<=d.oldRange.to;this.editor.emit("delete",{type:"node",node:g,from:A,to:w,newFrom:c.mapping.map(A),newTo:c.mapping.map(w),deletedRange:d.oldRange,newRange:d.newRange,partial:!T,editor:this.editor,transaction:o,combinedTransform:c});});});let f=c.mapping;c.steps.forEach((d,g)=>{var A,w;if(d instanceof tl){let T=f.slice(g).map(d.from,-1),G=f.slice(g).map(d.to),J=f.invert().map(T,-1),W=f.invert().map(G),q=T>0?(A=c.doc.nodeAt(T-1))==null?void 0:A.marks.some(Z=>Z.eq(d.mark)):false,ut=(w=c.doc.nodeAt(G))==null?void 0:w.marks.some(Z=>Z.eq(d.mark));this.editor.emit("delete",{type:"mark",mark:d.mark,from:d.from,to:d.to,deletedRange:{from:J,to:W},newRange:{from:T,to:G},partial:!!(ut||q),editor:this.editor,transaction:o,combinedTransform:c});}});};(n=(r=(e=this.editor.options.coreExtensionOptions)==null?void 0:e.delete)==null?void 0:r.async)==null||n?setTimeout(i,0):i();}}),pR=Bt.create({name:"drop",addProseMirrorPlugins(){return [new Dt({key:new ne("tiptapDrop"),props:{handleDrop:(o,t,e,r)=>{this.editor.emit("drop",{editor:this.editor,event:t,slice:e,moved:r});}}})]}}),mR=Bt.create({name:"editable",addProseMirrorPlugins(){return [new Dt({key:new ne("editable"),props:{editable:()=>this.editor.options.editable}})]}}),jC=new ne("focusEvents"),hR=Bt.create({name:"focusEvents",addProseMirrorPlugins(){let{editor:o}=this;return [new Dt({key:jC,props:{handleDOMEvents:{focus:(t,e)=>{o.isFocused=true;let r=o.state.tr.setMeta("focus",{event:e}).setMeta("addToHistory",false);return t.dispatch(r),false},blur:(t,e)=>{o.isFocused=false;let r=o.state.tr.setMeta("blur",{event:e}).setMeta("addToHistory",false);return t.dispatch(r),false}}}})]}}),yR=Bt.create({name:"keymap",addKeyboardShortcuts(){let o=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:l})=>{let{selection:a,doc:u}=l,{empty:c,$anchor:h}=a,{pos:f,parent:d}=h,g=h.parent.isTextblock&&f>0?l.doc.resolve(f-1):h,A=g.parent.type.spec.isolating,w=h.pos-h.parentOffset,T=A&&g.parent.childCount===1?w===h.pos:Vt.atStart(u).from===f;return !c||!d.type.isTextblock||d.textContent.length||!T||T&&h.parent.type.name==="paragraph"?false:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:o,"Mod-Backspace":o,"Shift-Backspace":o,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},n={...r},i={...r,"Ctrl-h":o,"Alt-Backspace":o,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return Kg()||MC()?i:n},addProseMirrorPlugins(){return [new Dt({key:new ne("clearDocument"),appendTransaction:(o,t,e)=>{if(o.some(A=>A.getMeta("composition")))return;let r=o.some(A=>A.docChanged)&&!t.doc.eq(e.doc),n=o.some(A=>A.getMeta("preventClearDocument"));if(!r||n)return;let{empty:i,from:s,to:l}=t.selection,a=Vt.atStart(t.doc).from,u=Vt.atEnd(t.doc).to;if(i||!(s===a&&l===u)||!Ay(e.doc))return;let f=e.tr,d=jg({state:e,transaction:f}),{commands:g}=new lw({editor:this.editor,state:d});if(g.clearNodes(),!!f.steps.length)return f}})]}}),dR=Bt.create({name:"paste",addProseMirrorPlugins(){return [new Dt({key:new ne("tiptapPaste"),props:{handlePaste:(o,t,e)=>{this.editor.emit("paste",{editor:this.editor,event:t,slice:e});}}})]}}),fR=Bt.create({name:"tabindex",addOptions(){return {value:void 0}},addProseMirrorPlugins(){return [new Dt({key:new ne("tabindex"),props:{attributes:()=>{var o;return !this.editor.isEditable&&this.options.value===void 0?{}:{tabindex:(o=this.options.value)!=null?o:"0"}}}})]}}),bR=Bt.create({name:"textDirection",addOptions(){return {direction:void 0}},addGlobalAttributes(){if(!this.options.direction)return [];let{nodeExtensions:o}=yp(this.extensions);return [{types:o.filter(t=>t.name!=="text").map(t=>t.name),attributes:{dir:{default:this.options.direction,parseHTML:t=>{let e=t.getAttribute("dir");return e&&(e==="ltr"||e==="rtl"||e==="auto")?e:this.options.direction},renderHTML:t=>t.dir?{dir:t.dir}:{}}}}]},addProseMirrorPlugins(){return [new Dt({key:new ne("textDirection"),props:{attributes:()=>{let o=this.options.direction;return o?{dir:o}:{}}}})]}});function Jn(o){return new Xg({find:o.find,handler:({state:t,range:e,match:r})=>{let n=Le(o.getAttributes,void 0,r);if(n===false||n===null)return null;let{tr:i}=t,s=r[r.length-1],l=r[0];if(s){let a=l.search(/\S/),u=e.from+l.indexOf(s),c=u+s.length;if(Yg(e.from,e.to,t.doc).filter(d=>d.mark.type.excluded.find(A=>A===o.type&&A!==d.mark.type)).filter(d=>d.to>u).length)return null;c<e.to&&i.delete(c,e.to),u>e.from&&i.delete(e.from+a,u);let f=e.from+a+s.length;i.addMark(e.from+a,f,o.type.create(n||{})),i.removeStoredMark(o.type);}},undoable:o.undoable})}function Zg(o){return new Xg({find:o.find,handler:({state:t,range:e,match:r})=>{let n=Le(o.getAttributes,void 0,r)||{},{tr:i}=t,s=e.from,l=e.to,a=o.type.create(n);if(r[1]){let u=r[0].lastIndexOf(r[1]),c=s+u;c>l?c=l:l=c+r[1].length;let h=r[0][r[0].length-1];i.insertText(h,s+r[0].length-1),i.replaceWith(c,l,a);}else if(r[0]){let u=o.type.isInline?s:s-1;i.insert(u,o.type.create(n)).delete(i.mapping.map(s),i.mapping.map(l));}i.scrollIntoView();},undoable:o.undoable})}function xy(o){return new Xg({find:o.find,handler:({state:t,range:e,match:r})=>{let n=t.doc.resolve(e.from),i=Le(o.getAttributes,void 0,r)||{};if(!n.node(-1).canReplaceWith(n.index(-1),n.indexAfter(-1),o.type))return null;t.tr.delete(e.from,e.to).setBlockType(e.from,e.from,o.type,i);},undoable:o.undoable})}function Ji(o){return new Xg({find:o.find,handler:({state:t,range:e,match:r,chain:n})=>{let i=Le(o.getAttributes,void 0,r)||{},s=t.tr.delete(e.from,e.to),a=s.doc.resolve(e.from).blockRange(),u=a&&ip(a,o.type,i);if(!u)return null;if(s.wrap(a,u),o.keepMarks&&o.editor){let{selection:h,storedMarks:f}=t,{splittableMarks:d}=o.editor.extensionManager,g=f||h.$to.parentOffset&&h.$from.marks();if(g){let A=g.filter(w=>d.includes(w.type.name));s.ensureMarks(A);}}if(o.keepAttributes){let h=o.type.name==="bulletList"||o.type.name==="orderedList"?"listItem":"taskList";n().updateAttributes(h,i).run();}let c=s.doc.resolve(e.from-1).nodeBefore;c&&c.type===o.type&&$n(s.doc,e.from-1)&&(!o.joinPredicate||o.joinPredicate(r,c))&&s.join(e.from-1);},undoable:o.undoable})}var gR=o=>"touches"in o,qC=class{constructor(o){this.directions=["bottom-left","bottom-right","top-left","top-right"],this.minSize={height:8,width:8},this.preserveAspectRatio=false,this.classNames={container:"",wrapper:"",handle:"",resizing:""},this.initialWidth=0,this.initialHeight=0,this.aspectRatio=1,this.isResizing=false,this.activeHandle=null,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.isShiftKeyPressed=false,this.lastEditableState=void 0,this.handleMap=new Map,this.handleMouseMove=l=>{if(!this.isResizing||!this.activeHandle)return;let a=l.clientX-this.startX,u=l.clientY-this.startY;this.handleResize(a,u);},this.handleTouchMove=l=>{if(!this.isResizing||!this.activeHandle)return;let a=l.touches[0];if(!a)return;let u=a.clientX-this.startX,c=a.clientY-this.startY;this.handleResize(u,c);},this.handleMouseUp=()=>{if(!this.isResizing)return;let l=this.element.offsetWidth,a=this.element.offsetHeight;this.onCommit(l,a),this.isResizing=false,this.activeHandle=null,this.container.dataset.resizeState="false",this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp);},this.handleKeyDown=l=>{l.key==="Shift"&&(this.isShiftKeyPressed=true);},this.handleKeyUp=l=>{l.key==="Shift"&&(this.isShiftKeyPressed=false);};var t,e,r,n,i,s;this.node=o.node,this.editor=o.editor,this.element=o.element,this.element.draggable=false,this.contentElement=o.contentElement,this.getPos=o.getPos,this.onResize=o.onResize,this.onCommit=o.onCommit,this.onUpdate=o.onUpdate,(t=o.options)!=null&&t.min&&(this.minSize={...this.minSize,...o.options.min}),(e=o.options)!=null&&e.max&&(this.maxSize=o.options.max),(r=o?.options)!=null&&r.directions&&(this.directions=o.options.directions),(n=o.options)!=null&&n.preserveAspectRatio&&(this.preserveAspectRatio=o.options.preserveAspectRatio),(i=o.options)!=null&&i.className&&(this.classNames={container:o.options.className.container||"",wrapper:o.options.className.wrapper||"",handle:o.options.className.handle||"",resizing:o.options.className.resizing||""}),(s=o.options)!=null&&s.createCustomHandle&&(this.createCustomHandle=o.options.createCustomHandle),this.wrapper=this.createWrapper(),this.container=this.createContainer(),this.applyInitialSize(),this.attachHandles(),this.editor.on("update",this.handleEditorUpdate.bind(this));}get dom(){return this.container}get contentDOM(){var o;return (o=this.contentElement)!=null?o:null}handleEditorUpdate(){let o=this.editor.isEditable;o!==this.lastEditableState&&(this.lastEditableState=o,o?o&&this.handleMap.size===0&&this.attachHandles():this.removeHandles());}update(o,t,e){return o.type!==this.node.type?false:(this.node=o,this.onUpdate?this.onUpdate(o,t,e):true)}destroy(){this.isResizing&&(this.container.dataset.resizeState="false",this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp),this.isResizing=false,this.activeHandle=null),this.editor.off("update",this.handleEditorUpdate.bind(this)),this.container.remove();}createContainer(){let o=document.createElement("div");return o.dataset.resizeContainer="",o.dataset.node=this.node.type.name,o.style.display=this.node.type.isInline?"inline-flex":"flex",this.classNames.container&&(o.className=this.classNames.container),o.appendChild(this.wrapper),o}createWrapper(){let o=document.createElement("div");return o.style.position="relative",o.style.display="block",o.dataset.resizeWrapper="",this.classNames.wrapper&&(o.className=this.classNames.wrapper),o.appendChild(this.element),o}createHandle(o){let t=document.createElement("div");return t.dataset.resizeHandle=o,t.style.position="absolute",this.classNames.handle&&(t.className=this.classNames.handle),t}positionHandle(o,t){let e=t.includes("top"),r=t.includes("bottom"),n=t.includes("left"),i=t.includes("right");e&&(o.style.top="0"),r&&(o.style.bottom="0"),n&&(o.style.left="0"),i&&(o.style.right="0"),(t==="top"||t==="bottom")&&(o.style.left="0",o.style.right="0"),(t==="left"||t==="right")&&(o.style.top="0",o.style.bottom="0");}attachHandles(){this.directions.forEach(o=>{let t;this.createCustomHandle?t=this.createCustomHandle(o):t=this.createHandle(o),t instanceof HTMLElement||(console.warn(`[ResizableNodeView] createCustomHandle("${o}") did not return an HTMLElement. Falling back to default handle.`),t=this.createHandle(o)),this.createCustomHandle||this.positionHandle(t,o),t.addEventListener("mousedown",e=>this.handleResizeStart(e,o)),t.addEventListener("touchstart",e=>this.handleResizeStart(e,o)),this.handleMap.set(o,t),this.wrapper.appendChild(t);});}removeHandles(){this.handleMap.forEach(o=>o.remove()),this.handleMap.clear();}applyInitialSize(){let o=this.node.attrs.width,t=this.node.attrs.height;o?(this.element.style.width=`${o}px`,this.initialWidth=o):this.initialWidth=this.element.offsetWidth,t?(this.element.style.height=`${t}px`,this.initialHeight=t):this.initialHeight=this.element.offsetHeight,this.initialWidth>0&&this.initialHeight>0&&(this.aspectRatio=this.initialWidth/this.initialHeight);}handleResizeStart(o,t){o.preventDefault(),o.stopPropagation(),this.isResizing=true,this.activeHandle=t,gR(o)?(this.startX=o.touches[0].clientX,this.startY=o.touches[0].clientY):(this.startX=o.clientX,this.startY=o.clientY),this.startWidth=this.element.offsetWidth,this.startHeight=this.element.offsetHeight,this.startWidth>0&&this.startHeight>0&&(this.aspectRatio=this.startWidth/this.startHeight);this.getPos();this.container.dataset.resizeState="true",this.classNames.resizing&&this.container.classList.add(this.classNames.resizing),document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("touchmove",this.handleTouchMove),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp);}handleResize(o,t){if(!this.activeHandle)return;let e=this.preserveAspectRatio||this.isShiftKeyPressed,{width:r,height:n}=this.calculateNewDimensions(this.activeHandle,o,t),i=this.applyConstraints(r,n,e);this.element.style.width=`${i.width}px`,this.element.style.height=`${i.height}px`,this.onResize&&this.onResize(i.width,i.height);}calculateNewDimensions(o,t,e){let r=this.startWidth,n=this.startHeight,i=o.includes("right"),s=o.includes("left"),l=o.includes("bottom"),a=o.includes("top");return i?r=this.startWidth+t:s&&(r=this.startWidth-t),l?n=this.startHeight+e:a&&(n=this.startHeight-e),(o==="right"||o==="left")&&(r=this.startWidth+(i?t:-t)),(o==="top"||o==="bottom")&&(n=this.startHeight+(l?e:-e)),this.preserveAspectRatio||this.isShiftKeyPressed?this.applyAspectRatio(r,n,o):{width:r,height:n}}applyConstraints(o,t,e){var r,n,i,s;if(!e){let u=Math.max(this.minSize.width,o),c=Math.max(this.minSize.height,t);return (r=this.maxSize)!=null&&r.width&&(u=Math.min(this.maxSize.width,u)),(n=this.maxSize)!=null&&n.height&&(c=Math.min(this.maxSize.height,c)),{width:u,height:c}}let l=o,a=t;return l<this.minSize.width&&(l=this.minSize.width,a=l/this.aspectRatio),a<this.minSize.height&&(a=this.minSize.height,l=a*this.aspectRatio),(i=this.maxSize)!=null&&i.width&&l>this.maxSize.width&&(l=this.maxSize.width,a=l/this.aspectRatio),(s=this.maxSize)!=null&&s.height&&a>this.maxSize.height&&(a=this.maxSize.height,l=a*this.aspectRatio),{width:l,height:a}}applyAspectRatio(o,t,e){let r=e==="left"||e==="right",n=e==="top"||e==="bottom";return r?{width:o,height:o/this.aspectRatio}:n?{width:t*this.aspectRatio,height:t}:{width:o,height:o/this.aspectRatio}}};var Ue=class YC extends fw{constructor(){super(...arguments),this.type="node";}static create(t={}){let e=typeof t=="function"?t():t;return new YC(e)}configure(t){return super.configure(t)}extend(t){let e=typeof t=="function"?t():t;return super.extend(e)}};function yn(o){return new rR({find:o.find,handler:({state:t,range:e,match:r,pasteEvent:n})=>{let i=Le(o.getAttributes,void 0,r,n);if(i===false||i===null)return null;let{tr:s}=t,l=r[r.length-1],a=r[0],u=e.to;if(l){let c=a.search(/\S/),h=e.from+a.indexOf(l),f=h+l.length;if(Yg(e.from,e.to,t.doc).filter(A=>A.mark.type.excluded.find(T=>T===o.type&&T!==A.mark.type)).filter(A=>A.to>h).length)return null;f<e.to&&s.delete(f,e.to),h>e.from&&s.delete(e.from+c,h),u=e.from+c+l.length,s.addMark(e.from+c,u,o.type.create(i||{})),r.index!==void 0&&r.input!==void 0&&r.index+r[0].length>=r.input.length||s.removeStoredMark(o.type);}}})}g();g();var Ei=Symbol("abort"),tr=Symbol("activeElement"),Tt=Symbol("asyncTaskManager"),vi=Symbol("bodyBuffer"),Mt=Symbol("buffer"),Xn=Symbol("cachedResponse"),Ti=Symbol("callbacks"),Sa=Symbol("checked"),ul=Symbol("childNodes"),Lr=Symbol("children"),fp=Symbol("classList"),Ho=Symbol("connectedToNode"),Xi=Symbol("disconnectedFromNode"),Mr=Symbol("connectedToDocument"),Ir=Symbol("disconnectedFromDocument"),ju=Symbol("contentLength"),$e=Symbol("contentType"),qr=Symbol("cssText"),Cn=Symbol("currentScript"),kn=Symbol("currentTarget"),$t=Symbol("data"),ao=Symbol("defaultView"),It=Symbol("destroy"),Pa=Symbol("dirtyness"),Y=Symbol("end"),wr=Symbol("entries");var Nn=Symbol("evaluateScript"),Vr=Symbol("exceptionObserver"),Xt=Symbol("formNode"),Aa=Symbol("internalId"),B=Symbol("height"),cl=Symbol("immediatePropagationStopped"),wa=Symbol("indeterminate"),Zi=Symbol("isFirstWrite"),ts=Symbol("isFirstWriteAfterOpen"),bp=Symbol("isInPassiveEventListener"),Go=Symbol("isValue"),pl=Symbol("listenerOptions"),Te=Symbol("listeners"),Co=Symbol("itemsByName"),ml=Symbol("nextActiveElement"),qu=Symbol("observeMutations"),Uo=Symbol("mutationListeners"),N=Symbol("ownerDocument"),Ht=Symbol("ownerElement"),hl=Symbol("propagationStopped"),dn=Symbol("readyStateManager"),Yr=Symbol("referrer"),Ci=Symbol("registry"),Wo=Symbol("relList"),gp=Symbol("resetSelection"),Ke=Symbol("rootNode"),er=Symbol("selectNode"),Qr=Symbol("selectedness"),xa=Symbol("selection"),Ey=Symbol("setupVMContext"),Me=Symbol("shadowRoot"),z=Symbol("start"),Ie=Symbol("style"),Jr=Symbol("target"),xr=Symbol("textAreaNode"),Sp=Symbol("unobserveMutations"),es=Symbol("reportMutation"),Ea=Symbol("updateSelectedness"),Ve=Symbol("url"),nt=Symbol("value"),V=Symbol("width"),m=Symbol("window"),tS=Symbol("windowResizeListener"),va=Symbol("mutationObservers"),ko=Symbol("openerFrame"),Zn=Symbol("openerWindow"),vy=Symbol("pointerCaptures"),yl=Symbol("popup"),pt=Symbol("isConnected"),K=Symbol("parentNode"),H=Symbol("nodeType"),st=Symbol("tagName"),Kt=Symbol("prefix"),gw=Symbol("scrollHeight"),Sw=Symbol("scrollWidth"),eS=Symbol("scrollTop"),rS=Symbol("scrollLeft"),Ct=Symbol("attributes"),Pp=Symbol("attributesProxy"),lt=Symbol("namespaceURI"),Ap=Symbol("accessKey");var Pw=Symbol("offsetHeight"),Aw=Symbol("offsetWidth"),ww=Symbol("offsetLeft"),xw=Symbol("offsetTop"),Ew=Symbol("clientHeight"),vw=Symbol("clientWidth"),Tw=Symbol("clientLeft"),Cw=Symbol("clientTop"),ct=Symbol("name"),Ty=Symbol("specified"),dl=Symbol("adoptedStyleSheets"),oS=Symbol("implementation"),Ta=Symbol("readyState"),fl=Symbol("publicId"),bl=Symbol("systemId"),Ye=Symbol("validationMessage"),dr=Symbol("validity"),nS=Symbol("returnValue"),rs=Symbol("elements");var ns=Symbol("complete"),ti=Symbol("naturalHeight"),ei=Symbol("naturalWidth"),QC=Symbol("loading"),D=Symbol("x"),O=Symbol("y");var ri=Symbol("files"),lr=Symbol("sheet"),iS=Symbol("volume"),Yu=Symbol("paused"),sS=Symbol("currentTime"),lS=Symbol("playbackRate"),aS=Symbol("defaultPlaybackRate"),wp=Symbol("muted"),Qu=Symbol("defaultMuted"),uS=Symbol("preservesPitch"),kw=Symbol("buffered"),Nw=Symbol("duration"),fr=Symbol("error"),Lw=Symbol("ended"),Mw=Symbol("networkState"),cS=Symbol("textTracks"),Iw=Symbol("seeking"),Rw=Symbol("seekable"),Dw=Symbol("played"),No=Symbol("options"),zo=Symbol("content"),We=Symbol("mode"),Ca=Symbol("host"),uo=Symbol("setURL"),ht=Symbol("localName"),xp=Symbol("classRegistry"),Cy=Symbol("nodeStream"),Lo=Symbol("location"),rr=Symbol("history"),pS=Symbol("navigator"),mS=Symbol("screen"),hS=Symbol("sessionStorage"),yS=Symbol("localStorage"),ky=Symbol("sandbox"),xt=Symbol("cloneNode"),Ft=Symbol("appendChild"),Hr=Symbol("removeChild"),co=Symbol("insertBefore"),Ep=Symbol("replaceChild"),ki=Symbol("tracks"),vp=Symbol("constraints"),Ni=Symbol("capabilities"),ka=Symbol("settings");var gl=Symbol("removeNamedItem"),X=Symbol("items"),Na=Symbol("selectedOptions"),Gr=Symbol("styleNode"),La=Symbol("updateSheet"),po=Symbol("clearCache"),ze=Symbol("onSetAttribute"),br=Symbol("onRemoveAttribute"),j=Symbol("nodeArray"),Pt=Symbol("elementArray"),$=Symbol("cache"),ur=Symbol("affectsCache"),Tp=Symbol("forms"),oi=Symbol("affectsComputedStyleCache"),Ju=Symbol("query"),Xu=Symbol("computedStyle"),_o=Symbol("getFormControlItems"),Ny=Symbol("getFormControlNamedItem"),dS=Symbol("dataset");var Li=Symbol("itemsByNamespaceURI"),jt=Symbol("proxy"),ni=Symbol("setNamedItem"),Xr=Symbol("getTokenList"),Sl=Symbol("attributeName"),Ln=Symbol("selectedIndex"),Ma=Symbol("self"),$o=Symbol("parent"),ii=Symbol("top"),Ly=Symbol("areas"),Ko=Symbol("defaultValue"),Mi=Symbol("elementIdMap"),Ia=Symbol("clonable"),Zu=Symbol("delegatesFocus"),is=Symbol("serializable"),Ii=Symbol("slotAssignment"),ss=Symbol("assignedNodes"),si=Symbol("assignedToSlot"),My=Symbol("cells"),Iy=Symbol("rows"),fS=Symbol("headers"),Ry=Symbol("tBodies"),Cp=Symbol("track"),Dy=Symbol("controlsList"),bS=Symbol("mediaKeys"),Ow=Symbol("remote"),gS=Symbol("sinkId"),SS=Symbol("srcObject"),tc=Symbol("cues"),Fw=Symbol("activeCues"),fn=Symbol("kind"),Pl=Symbol("label"),ec=Symbol("language"),Oy=Symbol("id"),b=Symbol("illegalConstructor"),Bw=Symbol("state"),ls=Symbol("canvas"),Ra=Symbol("popoverTargetElement"),Fy=Symbol("composed"),Al=Symbol("bubbles"),as=Symbol("cancelable"),Rr=Symbol("defaultPrevented"),Zr=Symbol("eventPhase"),Vw=Symbol("timeStamp"),ie=Symbol("type"),By=Symbol("detail");var Vy=Symbol("destroyed"),Re=Symbol("aborted"),Hy=Symbol("browserFrames"),PS=Symbol("windowInternalId"),Q=Symbol("getItemList"),us=Symbol("requiredExtensions"),cs=Symbol("systemLanguage"),Gy=Symbol("transform"),ge=Symbol("baseVal"),Se=Symbol("animVal"),Uy=Symbol("pathLength");var ps=Symbol("viewBox"),Wy=Symbol("markerUnits"),zy=Symbol("markerWidth"),_y=Symbol("markerHeight"),Er=Symbol("values"),$y=Symbol("orientType"),Ky=Symbol("orientAngle"),jy=Symbol("refX"),qy=Symbol("refY"),et=Symbol("readOnly"),Dr=Symbol("preserveAspectRatio"),ms=Symbol("animatedPoints"),hs=Symbol("points"),ys=Symbol("rx"),ds=Symbol("ry"),jo=Symbol("cx"),qo=Symbol("cy"),fs=Symbol("r"),Yy=Symbol("clipPathUnits"),Qy=Symbol("maskUnits"),Jy=Symbol("maskContentUnits"),Xy=Symbol("filterUnits"),Zy=Symbol("primitiveUnits"),Ut=Symbol("href"),bs=Symbol("x1"),gs=Symbol("y1"),Ss=Symbol("x2"),Ps=Symbol("y2"),td=Symbol("gradientUnits"),ed=Symbol("gradientTransform"),rd=Symbol("spreadMethod"),od=Symbol("patternUnits"),nd=Symbol("patternContentUnits"),id=Symbol("patternTransform"),sd=Symbol("fx"),ld=Symbol("fy"),As=Symbol("offset"),Da=Symbol("disabled"),ad=Symbol("textLength"),ud=Symbol("lengthAdjust"),L=Symbol("getAttribute"),C=Symbol("setAttribute"),mo=Symbol("z"),rc=Symbol("w"),cd=Symbol("toArray"),oc=Symbol("fromString"),bn=Symbol("fromArray");var Wt=Symbol("m11"),qt=Symbol("m12"),pe=Symbol("m13"),me=Symbol("m14"),zt=Symbol("m21"),Yt=Symbol("m22"),he=Symbol("m23"),ye=Symbol("m24"),ee=Symbol("m31"),se=Symbol("m32"),le=Symbol("m33"),re=Symbol("m34"),_t=Symbol("m41"),Qt=Symbol("m42"),ae=Symbol("m43"),ue=Symbol("m44"),kp=Symbol("setMatrixValue"),gn=Symbol("translateSelf"),wl=Symbol("rotateSelf"),xl=Symbol("rotateAxisAngleSelf"),ws=Symbol("scaleSelf"),pd=Symbol("scale3dSelf"),md=Symbol("scaleNonUniformSelf"),nc=Symbol("skewXSelf"),ic=Symbol("skewYSelf"),Yo=Symbol("multiplySelf"),El=Symbol("matrix");var Qe=Symbol("getDOMMatrix"),Ur=Symbol("setDOMMatrix"),F=Symbol("attributeValue"),hd=Symbol("startOffset"),vl=Symbol("method"),yd=Symbol("spacing"),bt=Symbol("in1"),Qo=Symbol("in2"),at=Symbol("result"),dd=Symbol("bias"),fd=Symbol("divisor"),xs=Symbol("edgeMode"),bd=Symbol("kernelMatrix"),Jo=Symbol("kernelUnitLengthX"),Xo=Symbol("kernelUnitLengthY"),gd=Symbol("orderX"),Sd=Symbol("orderY"),Pd=Symbol("preserveAlpha"),Ad=Symbol("targetX"),wd=Symbol("targetY"),xd=Symbol("diffuseConstant"),Es=Symbol("surfaceScale"),Ed=Symbol("scale"),vd=Symbol("xChannelSelector"),Td=Symbol("yChannelSelector"),Cd=Symbol("azimuth"),kd=Symbol("elevation"),Zo=Symbol("dx"),tn=Symbol("dy"),vs=Symbol("stdDeviationX"),Ts=Symbol("stdDeviationY"),Nd=Symbol("tableValues"),Ld=Symbol("slope"),Md=Symbol("intercept"),Id=Symbol("amplitude"),Rd=Symbol("exponent"),JC=Symbol("crossOrigin"),Dd=Symbol("operator"),Od=Symbol("radiusX"),Fd=Symbol("radiusY"),Bd=Symbol("specularConstant"),Cs=Symbol("specularExponent"),Vd=Symbol("pointsAtX"),Hd=Symbol("pointsAtY"),Gd=Symbol("pointsAtZ"),Ud=Symbol("limitingConeAngle"),Wd=Symbol("baseFrequencyX"),zd=Symbol("baseFrequencyY"),_d=Symbol("numOctaves"),$d=Symbol("seed"),Kd=Symbol("stitchTiles"),jd=Symbol("rotateFromVectorSelf"),qd=Symbol("flipXSelf"),Yd=Symbol("flipYSelf"),Qd=Symbol("invertSelf"),Hw=Symbol("getLength"),AS=Symbol("currentScale"),Jd=Symbol("rotate"),Gw=Symbol("bindMethods"),Oa=Symbol("xmlProcessingInstruction");var Mn=Symbol("filterNode"),Tl=Symbol("customElementReactionStack"),Fa=Symbol("dispatching"),ks=Symbol("modules"),ho=Symbol("preloads"),Ri=Symbol("body"),wS=Symbol("redirect"),Np=Symbol("referrerPolicy"),xS=Symbol("signal"),Di=Symbol("bodyUsed"),ES=Symbol("credentials"),Xd=Symbol("blocking"),sc=Symbol("moduleImportMap"),Pe=Symbol("dispatchError"),vS=Symbol("supports"),Sn=Symbol("reason"),y=Symbol("propertyEventListeners"),cr=Symbol("cssRules"),Cl=Symbol("parentRule"),Pn=Symbol("parentStyleSheet"),en=Symbol("conditionText"),Ns=Symbol("keyText"),Uw=Symbol("media"),Zd=Symbol("styleMap"),lc=Symbol("selectorText"),ac=Symbol("cssParser"),kl=Symbol("cssRule"),yo=Symbol("rulePrefix"),Mo=Symbol("virtualServerFile"),Ww=Symbol("frames"),Nl=Symbol("disableEvaluation"),zw=Symbol("validateJavaScriptExecutionEnvironment");var Ba=Symbol("openWebSockets"),to=Symbol("webSocket"),uc=Symbol("moduleCache"),TS=Symbol("cookieStore"),tf=Symbol("context"),Lp=Symbol("querySelectorCache");g();g();g();g();g();var _w;(function(o){o.strict="Strict",o.lax="Lax",o.none="None";})(_w||(_w={}));var fo=_w;var CS={key:null,originURL:null,value:null,domain:"",path:"",expires:null,httpOnly:false,secure:false,sameSite:fo.lax};g();var Mp=class{static hasExpired(t){return t.expires&&t.expires.getTime()<Date.now()}};g();var ef=class{static cookieMatchesURL(t,e){let r=e.hostname==="localhost"||e.hostname?.endsWith(".localhost");return (!t.secure||e.protocol==="https:"||r)&&(!t.domain||e.hostname?.endsWith(t.domain))&&(!t.path||e.pathname?.startsWith(t.path))&&(t.sameSite===fo.none&&t.secure||t.originURL?.hostname===e.hostname)}};var cc=class{#t=[];addCookies(t){let e={changed:[],deleted:[]},r=this.#t;for(let n of t){let i=Object.assign({},CS,n);if(i&&i.key&&i.originURL){let s=Mp.hasExpired(i);for(let l=0,a=r.length;l<a;l++){let u=r[l];if(u.key===i.key&&u.originURL.hostname===i.originURL.hostname&&u.path===i.path&&typeof u.value==typeof i.value){s&&e.deleted.push(u),r.splice(l,1);break}}s||(r.push(i),e.changed.push(i));}}return e}getCookies(t=null,e=false){let r=[];for(let n of this.#t)!Mp.hasExpired(n)&&(!e||!n.httpOnly)&&(!t||ef.cookieMatchesURL(n,t))&&r.push(n);return r}clearCookies(){this.#t=[];}};g();g();var $w;(function(o){o.fresh="fresh",o.stale="stale";})($w||($w={}));var Va=$w;g();g();g();var Kw;(function(o){o.invalidStateError="InvalidStateError",o.indexSizeError="IndexSizeError",o.syntaxError="SyntaxError",o.hierarchyRequestError="HierarchyRequestError",o.notSupportedError="NotSupportedError",o.wrongDocumentError="WrongDocumentError",o.invalidNodeTypeError="InvalidNodeTypeError",o.invalidCharacterError="InvalidCharacterError",o.notFoundError="NotFoundError",o.securityError="SecurityError",o.networkError="NetworkError",o.domException="DOMException",o.invalidAccessError="InvalidAccessError",o.unknownError="UnknownError",o.abortError="AbortError",o.timeoutError="TimeoutError",o.encodingError="EncodingError",o.uriMismatchError="URIMismatchError",o.inUseAttributeError="InUseAttributeError",o.namespaceError="NamespaceError";})(Kw||(Kw={}));var k=Kw;var de=class extends Error{constructor(t,e=null){super(t),this.name=e||k.domException;}};var Oi=class o{[wr]={};constructor(t){if(t)if(t instanceof o)this[wr]=JSON.parse(JSON.stringify(t[wr]));else if(Array.isArray(t))for(let e of t){if(e.length!==2)throw new de('Failed to construct "Headers": The provided init is not a valid array.',k.invalidStateError);this.append(e[0],e[1]);}else for(let e of Object.keys(t))this.set(e,t[e]);}append(t,e){let r=t.toLowerCase();this[wr][r]?this[wr][r].value.push(e):this[wr][r]={name:t,value:[e]};}delete(t){delete this[wr][t.toLowerCase()];}get(t){return this[wr][t.toLowerCase()]?.value.join(", ")??null}set(t,e){this[wr][t.toLowerCase()]={name:t,value:[e]};}getSetCookie(){let t=this[wr]["set-cookie"];return t?t.value:[]}has(t){return !!this[wr][t.toLowerCase()]}forEach(t,e){let r=e??this[m];for(let n of Object.values(this[wr]))t.call(r,n.value.join(", "),n.name,this);}*keys(){for(let t of Object.values(this[wr]))yield t.name;}*values(){for(let t of Object.values(this[wr]))yield t.value.join(", ");}*entries(){for(let t of Object.values(this[wr]))yield [t.name,t.value.join(", ")];}*[Symbol.iterator](){for(let t of Object.values(this[wr]))yield [t.name,t.value.join(", ")];}};g();var rf=class{#t=new Set;#e=new Set;#r;constructor(t){this.#r=t;}async load(t){if(!t)throw new Error("Failed to execute 'load' on 'ResponseCacheFileSystem': Directory is not specified.");let e=Rp.resolve(t),r=[];try{r=await Ip.promises.readdir(e);}catch{return}let n=[],i=this.#r;for(let s of r)s.endsWith(".json")&&n.push(Ip.promises.readFile(Rp.join(e,s),"utf8").then(l=>{let a=JSON.parse(l);if(a.response&&a.request&&!a.virtual)return a.response.headers=new Oi(a.response.headers),a.request.headers=new Oi(a.request.headers),Ip.promises.readFile(Rp.join(e,s.split(".")[0]+".data")).then(u=>{a.response.body=u;let c=i.get(a.response.url);c||(c=[],i.set(a.response.url,c)),c.push(a);}).catch(()=>{let u=i.get(a.response.url);u||(u=[],i.set(a.response.url,u)),u.push(a);})}).catch(()=>{}));await Promise.all(n);}async save(t){if(!t)throw new Error("Failed to execute 'store' on 'ResponseCacheFileSystem': Directory is not specified.");if(!this.#r.size)return;let e=Rp.resolve(t);if(!this.#t.has(e)){this.#t.add(e);try{await Ip.promises.mkdir(e,{recursive:!0});}catch{}}let n=this.#r,i=[];for(let s of n.values())for(let l of s)if(!l.virtual){let a={},u={};for(let[d,g]of l.response.headers.entries())a[d]=g;for(let[d,g]of l.request.headers.entries())u[d]=g;let c={...l,response:{...l.response,headers:a,body:null},request:{...l.request,headers:u}},h=JSON.stringify(c,null,3),f=SR.createHash("md5").update(h).digest("hex");this.#e.has(f)||(this.#e.add(f),i.push(Ip.promises.writeFile(Rp.join(e,`${f}.json`),h)),l.response.body&&i.push(Ip.promises.writeFile(Rp.join(e,`${f}.data`),l.response.body)));}await Promise.all(i);}};var PR=["Cache-Control","Last-Modified","Vary","ETag"],pc=class{fileSystem;#t=new Map;constructor(){this.fileSystem=new rf(this.#t);}get(t){if(t.headers.get("Cache-Control")?.includes("no-cache"))return null;let e=t.url,r=this.#t.get(e);if(r)for(let n=0,i=r.length;n<i;n++){let s=r[n],l=s.request.method===t.method;if(l)for(let a of Object.keys(s.vary)){let u=t.headers.get(a);if(u!==null&&s.vary[a]!==u){l=false;break}}if(l){if(s.expires&&s.expires<Date.now()){if(s.lastModified)s.state=Va.stale;else if(!s.etag)return r.splice(n,1),null}return s}}return null}add(t,e){if(t.method!=="GET"&&t.method!=="HEAD"||t.headers.get("Cache-Control")?.includes("no-cache"))return null;let r=t.url,n=this.get(t);if(e.status===304){if(!n)throw new Error("ResponseCache: Cached response not found.");for(let i of PR)e.headers.has(i)&&n.response.headers.set(i,e.headers.get(i));n.cacheUpdateTime=Date.now(),n.state=Va.fresh;}else {if(n){let s=this.#t.get(r);if(s){let l=s.indexOf(n);l!==-1&&s.splice(l,1);}}n={response:{status:e.status,statusText:e.statusText,url:e.url,headers:new Oi(e.headers),waitingForBody:e.waitingForBody,body:e.body??null},request:{headers:t.headers,method:t.method},vary:{},expires:null,etag:null,cacheUpdateTime:Date.now(),lastModified:null,mustRevalidate:false,staleWhileRevalidate:false,state:Va.fresh,virtual:e.virtual??false};let i=this.#t.get(r);i||(i=[],this.#t.set(r,i)),i.push(n);}if(e.headers.has("Cache-Control")){let i=e.headers.get("Age");for(let s of e.headers.get("Cache-Control").split(",")){let[l,a]=s.trim().split("=");switch(l){case "max-age":n.expires=Date.now()+parseFloat(a)*1e3-(i?parseFloat(i)*1e3:0);break;case "no-cache":case "no-store":let u=this.#t.get(r);if(u){let c=u.indexOf(n);c!==-1&&u.splice(c,1);}return null;case "must-revalidate":n.mustRevalidate=true;break;case "stale-while-revalidate":n.staleWhileRevalidate=true;break}}}if(e.headers.has("Last-Modified")&&(n.lastModified=Date.parse(e.headers.get("Last-Modified"))),e.headers.has("Vary"))for(let i of e.headers.get("Vary").split(",")){let s=i.trim(),l=t.headers.get(s);l&&(n.vary[s]=l);}if(e.headers.has("ETag")&&(n.etag=e.headers.get("ETag")),!n.expires){let i=e.headers.get("Expires");i&&(n.expires=Date.parse(i));}if(!n.etag&&(!n.expires||n.expires<Date.now())){let i=this.#t.get(r);if(i){let s=i.indexOf(n);s!==-1&&i.splice(s,1);}return null}return n}clear(t){if(t)if(t.toTime)for(let e of t.url?[t.url]:this.#t.keys()){let r=this.#t.get(e);if(r)for(let n=0,i=r.length;n<i;n++)r[n].cacheUpdateTime<t.toTime&&(r.splice(n,1),n--,i--);}else t.url&&this.#t.delete(t.url);else this.#t.clear();}};g();g();g();var jw;(function(o){o[o.log=0]="log",o[o.info=1]="info",o[o.warn=2]="warn",o[o.error=3]="error";})(jw||(jw={}));var Or=jw;g();g();var qw;(function(o){o[o.elementNode=1]="elementNode",o[o.attributeNode=2]="attributeNode",o[o.textNode=3]="textNode",o[o.cdataSectionNode=4]="cdataSectionNode",o[o.commentNode=8]="commentNode",o[o.documentNode=9]="documentNode",o[o.documentTypeNode=10]="documentTypeNode",o[o.documentFragmentNode=11]="documentFragmentNode",o[o.processingInstructionNode=7]="processingInstructionNode";})(qw||(qw={}));var M=qw;g();var Yw;(function(o){o[o.none=0]="none",o[o.capturing=1]="capturing",o[o.atTarget=2]="atTarget",o[o.bubbling=3]="bubbling";})(Yw||(Yw={}));var Ae=Yw;var I=class o{static NONE=Ae.none;static CAPTURING_PHASE=Ae.capturing;static AT_TARGET=Ae.atTarget;static BUBBLING_PHASE=Ae.bubbling;NONE=o.NONE;CAPTURING_PHASE=o.CAPTURING_PHASE;AT_TARGET=o.AT_TARGET;BUBBLING_PHASE=o.BUBBLING_PHASE;[Fy]=false;[Al]=false;[as]=false;[Rr]=false;[Zr]=Ae.none;[Vw]=performance.now();[ie];[Fa]=false;[cl]=false;[hl]=false;[Jr]=null;[kn]=null;[bp]=false;constructor(t,e=null){this[ie]=t,this[Al]=e?.bubbles??false,this[as]=e?.cancelable??false,this[Fy]=e?.composed??false;}get composed(){return this[Fy]}get bubbles(){return this[Al]}get cancelable(){return this[as]}get defaultPrevented(){return this[Rr]}get eventPhase(){return this[Zr]}get timeStamp(){return this[Vw]}get type(){return this[ie]}get target(){return this[Jr]}get currentTarget(){return this[kn]}get cancelBubble(){return this[hl]}composedPath(){if(!this[Jr])return [];let t=[],e=this[Jr];for(;e;)if(t.push(e),e.parentNode)e=e.parentNode;else if(this[Fy]&&e[H]===M.documentFragmentNode&&e.host)e=e.host;else if(e[H]===M.documentNode&&this[ie]!=="load")e=e[m];else break;return t}initEvent(t,e=false,r=false){this[ie]=t,this[Al]=e,this[as]=r,this[hl]=false,this[cl]=false,this[Rr]=false;}preventDefault(){!this[bp]&&this.cancelable&&(this[Rr]=true);}stopImmediatePropagation(){this[cl]=true;}stopPropagation(){this[hl]=true;}};g();g();var Qw;(function(o){o.log="log",o.table="table",o.trace="trace",o.dir="dir",o.dirxml="dirxml",o.group="group",o.groupCollapsed="groupCollapsed",o.debug="debug",o.timeLog="timeLog",o.info="info",o.count="count",o.timeEnd="timeEnd",o.warn="warn",o.countReset="countReset",o.error="error",o.assert="assert";})(Qw||(Qw={}));var or=Qw;var of=class{static toString(t){if(this.isLogEntryCollapsed(t))return "";let e=this.getLogEntryGroupTabbing(t),r=e;for(let n of t.message)if(r+=r!==""&&r!==e?" ":"",typeof n=="object"&&(n===null||n.constructor.name==="Object"||Array.isArray(n)))try{r+=JSON.stringify(n);}catch{r+=new Error("Failed to JSON stringify object in log entry.").stack.replace(/\n at/gm,`
35
+ `+e+"at");}else typeof n=="object"&&n.message&&n.stack?r+=n.stack.replace(/\n at/gm,`
36
+ `+e+"at"):r+=this.getLogEntryIcon(t)+String(n);return r+`
37
+ `}static getLogEntryIcon(t){switch(t.type){case or.group:return "\u25BC ";case or.groupCollapsed:return "\u25B6 "}return ""}static getLogEntryGroupTabbing(t){let e="",r=t.type===or.group||t.type===or.groupCollapsed?t.group?.parent:t.group;for(;r;)e+=" ",r=r.parent;return e}static isLogEntryCollapsed(t){let e=t.type===or.group||t.type===or.groupCollapsed?t.group?.parent:t.group;for(;e;){if(e.collapsed)return true;e=e.parent;}return false}};var Ha=class{#t=[];#e={print:[],clear:[]};#r=false;get closed(){return this.#r}print(t){this.#r||(this.#t.push(t),this.dispatchEvent(new I("print")));}clear(){this.#r||(this.#t=[],this.dispatchEvent(new I("clear")));}close(){this.#r||(this.#t=[],this.#e={print:[],clear:[]},this.#r=true);}addEventListener(t,e){if(!this.#r){if(!this.#e[t])throw new Error(`Event type "${t}" is not supported.`);this.#e[t].push(e);}}removeEventListener(t,e){if(this.#r)return;if(!this.#e[t])throw new Error(`Event type "${t}" is not supported.`);let r=this.#e[t].indexOf(e);r!==-1&&this.#e[t].splice(r,1);}dispatchEvent(t){if(!this.#r)switch(t.type){case "print":case "clear":for(let e of this.#e[t.type])e(t);break;default:throw new Error(`Event type "${t.type}" is not supported.`)}}read(){let t=this.#t;return this.#t=[],t}readAsString(t=Or.log){let e=this.read(),r="";for(let n of e)n.level>=t&&(r+=of.toString(n));return r}};g();g();g();var mc=class extends Error{constructor(t){super(t),this.name="AsyncTaskManagerDebugError";}};var An={setTimeout:globalThis.setTimeout.bind(globalThis),clearTimeout:globalThis.clearTimeout.bind(globalThis),clearImmediate:globalThis.clearImmediate.bind(globalThis)},Fi=class{static taskID=0;runningTasks={};runningTaskCount=0;runningTimers=[];runningImmediates=[];debugTrace=new Map;waitUntilCompleteTimer=null;waitUntilCompleteResolvers=[];destroyed=false;#t=null;#e;constructor(t){this.#e=t;}waitUntilComplete(){return new Promise((t,e)=>{this.waitUntilCompleteResolvers.push({resolve:t,reject:e}),this.resolveWhenComplete();})}abort(){return this.destroyed?new Promise((t,e)=>{this.waitUntilCompleteResolvers.push({resolve:t,reject:e}),this.resolveWhenComplete();}):this.abortAll(false)}destroy(){return this.destroyed?new Promise((t,e)=>{this.waitUntilCompleteResolvers.push({resolve:t,reject:e}),this.resolveWhenComplete();}):this.abortAll(true)}startTimer(t){if(this.destroyed){An.clearTimeout(t);return}this.waitUntilCompleteTimer&&(An.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null),this.runningTimers.push(t),this.#e.page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.set(t,new mc().stack);}endTimer(t){if(this.destroyed){An.clearTimeout(t);return}let e=this.runningTimers.indexOf(t);e!==-1&&(this.runningTimers.splice(e,1),this.resolveWhenComplete()),this.#e.page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.delete(t);}startImmediate(t){if(this.destroyed){An.clearImmediate(t);return}this.waitUntilCompleteTimer&&(An.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null),this.runningImmediates.push(t),this.#e.page?.context?.browser?.settings?.debug?.traceWaitUntilComplete>0&&this.debugTrace.set(t,new mc().stack);}endImmediate(t){if(this.destroyed){An.clearImmediate(t);return}let e=this.runningImmediates.indexOf(t);e!==-1&&(this.runningImmediates.splice(e,1),this.resolveWhenComplete()),this.#e.page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.delete(t);}startTask(t){if(this.destroyed)throw t&&t(this.destroyed),new this.#e.window.Error("Failed to execute 'startTask()' on 'AsyncTaskManager': The asynchronous task manager has been destroyed. This error can be thrown if scripts continue to run while a browser frame is closed.");this.waitUntilCompleteTimer&&(An.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null);let e=this.newTaskID();return this.runningTasks[e]=t||(()=>{}),this.runningTaskCount++,this.#e.page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.set(e,new mc().stack),e}endTask(t){this.destroyed||(this.runningTasks[t]&&(delete this.runningTasks[t],this.runningTaskCount--,this.resolveWhenComplete()),this.#e.page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.delete(t));}getTaskCount(){return this.runningTaskCount}newTaskID(){return this.constructor.taskID++,this.constructor.taskID}resolveWhenComplete(){this.applyDebugging(),!(this.runningTaskCount||this.runningTimers.length||this.runningImmediates.length)&&(this.waitUntilCompleteTimer&&(An.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null),this.waitUntilCompleteTimer=An.setTimeout(()=>{if(this.waitUntilCompleteTimer=null,!this.runningTaskCount&&!this.runningTimers.length&&!this.runningImmediates.length){this.#t&&An.clearTimeout(this.#t);let t=this.waitUntilCompleteResolvers;this.waitUntilCompleteResolvers=[];for(let e of t)e.resolve();this.destroyed=false;}else this.applyDebugging();},1));}applyDebugging(){let t=this.#e.page.context.browser.settings.debug;!t?.traceWaitUntilComplete||t.traceWaitUntilComplete<1||this.#t||(this.#t=An.setTimeout(()=>{this.#t=null;let e=`The maximum time was reached for "waitUntilComplete()".
38
+
39
+ ${this.debugTrace.size} task${this.debugTrace.size===1?"":"s"} did not end in time.
40
+
41
+ The following traces were recorded:
42
+
43
+ `,r=1;for(let[i,s]of this.debugTrace.entries())e+=`${typeof i=="number"?"Task":"Timer"} #${r}
44
+ \u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E${s.replace(/AsyncTaskManagerDebugError:{0,1}/,"").replace(/\s+at /gm,`
45
+ > `)}
46
+
47
+ `,r++;let n=new Error(e);for(let i of this.waitUntilCompleteResolvers)i.reject(n);this.abortAll(true);},t.traceWaitUntilComplete));}abortAll(t){let e=this.runningTimers,r=this.runningImmediates,n=this.runningTasks;t&&(this.destroyed=true),this.runningTasks={},this.runningTaskCount=0,this.runningImmediates=[],this.runningTimers=[],this.debugTrace=new Map,this.waitUntilCompleteTimer&&(An.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null);for(let i of r)An.clearImmediate(i);for(let i of e)An.clearTimeout(i);for(let i of Object.keys(n))n[i](t);return new Promise((i,s)=>{this.waitUntilCompleteResolvers.push({resolve:i,reject:s}),this.resolveWhenComplete();})}};g();g();var XC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Dp=class{static btoa(t){let e=t.toString();if(/[^\u0000-\u00ff]/.test(e))throw new de("Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.",k.invalidCharacterError);let r="",n=-6,i=0,s=0,l=0,a;for(;s<e.length||n>-6;)n<0&&(s<e.length?(a=e.charCodeAt(s++),l+=8):a=0,i=(i&255)<<8|a&255,n+=8),r+=XC.charAt(l>0?i>>n&63:64),n-=6,l-=6;return r}static atob(t){let e=t.toString();if(/[^\u0000-\u00ff]/.test(e))throw new de("Failed to execute 'atob' on 'Window': The string to be decoded contains characters outside of the Latin1 range.",k.invalidCharacterError);if(/[^A-Za-z\d+/=]/.test(e)||e.length%4==1)throw new de("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.",k.invalidCharacterError);let r="",n=-8,i=0,s,l;for(let a=0;a<e.length;a++)(s=XC.indexOf(e.charAt(a)))<0||(i=i<<6|s&63,(n+=6)>=0&&(l=i>>n&255,s!==64&&(r+=String.fromCharCode(l)),i&=63,n-=8));return r}};g();var Jw;(function(o){o.tryAndCatch="tryAndCatch",o.processLevel="processLevel",o.disabled="disabled";})(Jw||(Jw={}));var be=Jw;g();g();var we=class o{type="";[Mt];constructor(t,e){let r=[];if(t)for(let n of t){let i;n instanceof ArrayBuffer?i=Buffer$1.from(new Uint8Array(n)):n instanceof o?i=n[Mt]:n instanceof Buffer$1?i=n:ArrayBuffer.isView(n)?i=Buffer$1.from(new Uint8Array(n.buffer,n.byteOffset,n.byteLength)):i=Buffer$1.from(typeof n=="string"?n:String(n)),r.push(i);}this[Mt]=Buffer$1.concat(r),e&&e.type&&e.type.match(/^[\u0020-\u007E]*$/)&&(this.type=String(e.type).toLowerCase());}get size(){return this[Mt].length}slice(t=0,e=null,r=""){let n=this.size,i,s,l;t===void 0?i=0:t<0?i=Math.max(n+t,0):i=Math.min(t,n),e===null?s=n:e<0?s=Math.max(n+e,0):s=Math.min(e,n),r===void 0?l="":l=r;let a=Math.max(s-i,0),c=this[Mt].slice(i,i+a),h=new o([],{type:l});return h[Mt]=c,h}async arrayBuffer(){return new Uint8Array(this[Mt]).buffer}async text(){return this[Mt].toString()}stream(){let t=this[Mt];return new ReadableStream({start(e){e.enqueue(t),e.close();}})}toString(){return "[object Blob]"}};var Ga=class{#t;#e=[];constructor(t){if(!t)throw new TypeError("Illegal constructor");this.#t=t;}async read(){if((await this.#t.navigator.permissions.query({name:"clipboard-read"})).state==="denied")throw new this.#t.DOMException("Failed to execute 'read' on 'Clipboard': The request is not allowed");return this.#e}async readText(){if((await this.#t.navigator.permissions.query({name:"clipboard-read"})).state==="denied")throw new this.#t.DOMException("Failed to execute 'readText' on 'Clipboard': The request is not allowed");let e="";for(let r of this.#e)if(r.types.includes("text/plain")){let n=await r.getType("text/plain");typeof n=="string"?e+=n:e+=await n.text();}return e}async write(t){if((await this.#t.navigator.permissions.query({name:"clipboard-write"})).state==="denied")throw new this.#t.DOMException("Failed to execute 'write' on 'Clipboard': The request is not allowed");this.#e=t;}async writeText(t){if((await this.#t.navigator.permissions.query({name:"clipboard-write"})).state==="denied")throw new this.#t.DOMException("Failed to execute 'writeText' on 'Clipboard': The request is not allowed");this.#e=[new this.#t.ClipboardItem({"text/plain":new we([t],{type:"text/plain"})})];}};g();var Op=class{presentationStyle="unspecified";#t;constructor(t,e){this.#t=t,e?.presentationStyle&&(this.presentationStyle=e.presentationStyle);}get types(){return Object.keys(this.#t)}async getType(t){if(!this.#t[t])throw new de(`Failed to execute 'getType' on 'ClipboardItem': The type '${t}' was not found`);return this.#t[t]instanceof we?this.#t[t]:new we([await this.#t[t]],{type:t})}};g();g();g();var rt=class{static[Hy]=new Map;static[PS]=0;#t;constructor(t){this.#t=t;}getSettings(){return this.getBrowserFrame()?.page.context.browser.settings||null}getBrowser(){return this.getBrowserFrame()?.page.context.browser||null}getBrowserPage(){return this.getBrowserFrame()?.page||null}getBrowserContext(){return this.getBrowserFrame()?.page.context||null}getBrowserFrame(){return this.#t&&this.constructor[Hy].get(this.#t[Aa])||null}getAsyncTaskManager(){return this.getBrowserFrame()?.[Tt]||null}static setWindowBrowserFrameRelation(t,e){let r=this[Hy];t[Aa]===-1&&(t[Aa]=this[PS],this[PS]++),r.set(t[Aa],e);}static removeWindowBrowserFrameRelation(t){this[Hy].delete(t[Aa]);}};var Ot=class{[Te]={capturing:new Map,bubbling:new Map};[pl]={capturing:new Map,bubbling:new Map};get[Symbol.toStringTag](){return "EventTarget"}addEventListener(t,e,r){r=typeof r=="boolean"?{capture:r}:r||{};let n=r.capture?"capturing":"bubbling",i=this[Te][n].get(t),s;i?s=this[pl][n].get(t):(i=[],s=[],this[Te][n].set(t,i),this[pl][n].set(t,s)),!i.includes(e)&&(i.push(e),s.push(r),r.signal&&!r.signal.aborted&&r.signal.addEventListener("abort",()=>{this.removeEventListener(t,e);}));}removeEventListener(t,e){let r=this[Te].bubbling.get(t);if(r){let i=r.indexOf(e);if(i!==-1){r.splice(i,1),this[pl].bubbling.get(t).splice(i,1);return}}let n=this[Te].capturing.get(t);if(n){let i=n.indexOf(e);i!==-1&&(n.splice(i,1),this[pl].capturing.get(t).splice(i,1));}}dispatchEvent(t){if(!(t instanceof I))throw new this[m].TypeError("Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1 is not of type 'Event'.");return !t[Fa]&&(t[ie]!=="load"||!t[Jr])?(t[Fa]=true,t[Jr]=this[jt]||this,this.#t(t),t[Fa]=false,!(t[as]&&t[Rr])):(this.#e(t),!(t[as]&&t[Rr]))}attachEvent(t,e){this.addEventListener(t.replace("on",""),e);}detachEvent(t,e){this.removeEventListener(t.replace("on",""),e);}[It](){this[Te].capturing.clear(),this[Te].bubbling.clear(),this[pl].capturing.clear(),this[pl].bubbling.clear();}#t(t){let e=t.composedPath();t[Zr]=Ae.capturing;for(let r=e.length-1;r>=0;r--)if(t[kn]=e[r],e[r].dispatchEvent(t),t[hl]||t[cl]){t[Zr]=Ae.none,t[kn]=null;return}if(t[Zr]=Ae.atTarget,t[kn]=this[jt]||this,t[Jr].dispatchEvent(t),t[Zr]=Ae.bubbling,t[Al]&&!t[hl]&&!t[cl]){for(let r=1,n=e.length;r<n;r++)if(t[kn]=e[r],e[r].dispatchEvent(t),t[hl]||t[cl]){t[Zr]=Ae.none,t[kn]=null;return}}t[Zr]=Ae.none,t[kn]=null;}#e(t){let e=this[m],r=e?new rt(e).getSettings():null,n=t.eventPhase===Ae.capturing?"capturing":"bubbling",i=this[Te][n].get(t.type)?.slice();if(i&&i.length){let s=this[pl][n].get(t.type).slice();for(let l=0,a=i.length;l<a;l++){let u=i[l],c=s[l];if(c?.passive&&(t[bp]=true),e&&(this!==e||t.type!=="error")&&!r?.disableErrorCapturing&&r?.errorCapture===be.tryAndCatch)if(u.handleEvent){let h;try{h=u.handleEvent.call(u,t);}catch(f){e[Pe](f);}h instanceof Promise&&h.catch(f=>e[Pe](f));}else {let h;try{h=u.call(this,t);}catch(f){e[Pe](f);}h instanceof Promise&&h.catch(f=>e[Pe](f));}else u.handleEvent?u.handleEvent.call(u,t):u.call(this,t);if(t[bp]=false,c?.once&&(i.splice(l,1),s.splice(l,1),this.removeEventListener(t.type,u),l--,a--),t[cl])return}}if(t.eventPhase!==Ae.capturing){let s="on"+t.type.toLowerCase(),l=this[y],a=!l&&Object.hasOwn(this,s)&&this.constructor.name!=="EventTarget";if(l||a){let u=l?.get(s)??this[s];if(typeof u=="function")if(e&&(this!==e||t.type!=="error")&&!r?.disableErrorCapturing&&r?.errorCapture===be.tryAndCatch){let c;try{c=u(t);}catch(h){e[Pe](h);}c instanceof Promise&&c.catch(h=>e[Pe](h));}else u(t);}}}};g();var Ua=class extends I{changed;deleted;constructor(t,e=null){super(t,e),this.changed=e?.changed??[],this.deleted=e?.deleted??[];}};g();var He=class extends URL$1{constructor(t,e){try{super(t,e);}catch(r){throw super("about:blank"),this[m]?new this[m].TypeError("Invalid URL"):r}}static createObjectURL(t){if(t instanceof we){let e=new Blob([t[Mt]],{type:t.type});return super.createObjectURL(e)}return super.createObjectURL(t)}};var hc=class extends Ot{#t;constructor(t,e){if(super(),t!==b)throw new TypeError("Illegal constructor");this.#t=e;}async get(t){let e=await this.getAll(t);return e.length>0?e[0]:null}async getAll(t){let e=new rt(this.#t).getBrowserFrame();if(!e)return [];let r=typeof t=="string"?{name:t}:t||{},n;if(r.url){if(n=new He(r.url,this.#t.location.href),n.origin!==this.#t.location.origin)throw new this.#t.DOMException("Failed to execute 'getAll' on 'CookieStore': URL must match the document origin",k.securityError)}else n=this.#t.location;let i=e.page.context.cookieContainer.getCookies(n,true),s=[];for(let l of i)(!r.name||l.key===r.name)&&s.push(this.#e(l));return s}async set(t,e){let r=new rt(this.#t).getBrowserFrame();if(!r)return;let n;if(typeof t=="string"){if(e===void 0)throw new this.#t.TypeError("Failed to execute 'set' on 'CookieStore': Value is required when name is provided as a string.");n={name:t,value:e};}else n={...t,value:t.value??""};if(!n.name)throw new this.#t.TypeError("Failed to execute 'set' on 'CookieStore': Required member name is undefined.");let i=this.#t.location,s=null;n.expires!==void 0&&n.expires!==null&&(s=n.expires instanceof Date?n.expires:new Date(n.expires));let l=fo.strict;if(n.sameSite)switch(n.sameSite.toLowerCase()){case "strict":l=fo.strict;break;case "lax":l=fo.lax;break;case "none":l=fo.none;break}let a={key:n.name,value:n.value??"",originURL:i,domain:n.domain||"",path:n.path||"/",expires:s,httpOnly:false,secure:true,sameSite:l},c=r.page.context.cookieContainer.addCookies([a]);(c.changed.length>0||c.deleted.length>0)&&this.dispatchEvent(new Ua("change",{changed:c.changed.map(h=>this.#e(h)),deleted:c.deleted.map(h=>this.#e(h))}));}async delete(t){let e=typeof t=="string"?{name:t}:t;await this.set({name:e.name,value:"",domain:e.domain??void 0,path:e.path,partitioned:e.partitioned,expires:new Date(0)});}#e(t){let e="lax";switch(t.sameSite){case fo.strict:e="strict";break;case fo.lax:e="lax";break;case fo.none:e="none";break}return {name:t.key,value:t.value??"",domain:t.domain,path:t.path,expires:t.expires?t.expires.getTime():null,secure:t.secure,sameSite:e,partitioned:false}}};g();g();var sf=class{static escape(t){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let e=String(t),r=e.length,n=-1,i,s="",l=e.charCodeAt(0);if(r==1&&l==45)return "\\"+e;for(;++n<r;){if(i=e.charCodeAt(n),i==0){s+="\uFFFD";continue}if(i>=1&&i<=31||i==127||n==0&&i>=48&&i<=57||n==1&&i>=48&&i<=57&&l==45){s+="\\"+i.toString(16)+" ";continue}if(i>=128||i==45||i==95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){s+=e.charAt(n);continue}s+="\\"+e.charAt(n);}return s}};g();g();var ZC=["Hz","Q","ch","cm","deg","dpcm","dpi","dppx","em","ex","fr","grad","in","kHz","mm","ms","number","pc","percent","pt","px","rad","rem","s","turn","vh","vmax","vmin","vw"];var xe=class{unit;value;constructor(t,e){if(typeof t!="number")throw new TypeError("The provided double value is non-finite");if(!ZC.includes(e))throw new TypeError("Invalid unit: "+e);this.value=t,this.unit=e;}};var lf=class{Hz=t=>new xe(t,"Hz");Q=t=>new xe(t,"Q");ch=t=>new xe(t,"ch");cm=t=>new xe(t,"cm");deg=t=>new xe(t,"deg");dpcm=t=>new xe(t,"dpcm");dpi=t=>new xe(t,"dpi");dppx=t=>new xe(t,"dppx");em=t=>new xe(t,"em");ex=t=>new xe(t,"ex");fr=t=>new xe(t,"fr");grad=t=>new xe(t,"grad");in=t=>new xe(t,"in");kHz=t=>new xe(t,"kHz");mm=t=>new xe(t,"mm");ms=t=>new xe(t,"ms");number=t=>new xe(t,"number");pc=t=>new xe(t,"pc");percent=t=>new xe(t,"percent");pt=t=>new xe(t,"pt");px=t=>new xe(t,"px");rad=t=>new xe(t,"rad");rem=t=>new xe(t,"rem");s=t=>new xe(t,"s");turn=t=>new xe(t,"turn");vh=t=>new xe(t,"vh");vmax=t=>new xe(t,"vmax");vmin=t=>new xe(t,"vmin");vw=t=>new xe(t,"vw");supports(t,e){return true}escape(t){return sf.escape(t)}};g();g();var Xw;(function(o){o[o.containerRule=0]="containerRule",o[o.styleRule=1]="styleRule",o[o.importRule=3]="importRule",o[o.mediaRule=4]="mediaRule",o[o.fontFaceRule=5]="fontFaceRule",o[o.pageRule=6]="pageRule",o[o.keyframesRule=7]="keyframesRule",o[o.keyframeRule=8]="keyframeRule",o[o.namespaceRule=10]="namespaceRule",o[o.counterStyleRule=11]="counterStyleRule",o[o.supportsRule=12]="supportsRule",o[o.documentRule=13]="documentRule",o[o.fontFeatureValuesRule=14]="fontFeatureValuesRule",o[o.regionStyleRule=16]="regionStyleRule";})(Xw||(Xw={}));var St=Xw;var wn=class{static CONTAINER_RULE=St.containerRule;static STYLE_RULE=St.styleRule;static IMPORT_RULE=St.importRule;static MEDIA_RULE=St.mediaRule;static FONT_FACE_RULE=St.fontFaceRule;static PAGE_RULE=St.pageRule;static KEYFRAMES_RULE=St.keyframesRule;static KEYFRAME_RULE=St.keyframeRule;static NAMESPACE_RULE=St.namespaceRule;static COUNTER_STYLE_RULE=St.counterStyleRule;static SUPPORTS_RULE=St.supportsRule;static DOCUMENT_RULE=St.documentRule;static FONT_FEATURE_VALUES_RULE=St.fontFeatureValuesRule;static REGION_STYLE_RULE=St.regionStyleRule;[m];[ac];[Cl]=null;[Pn]=null;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[ac]=r;}get parentRule(){return this[Cl]}get parentStyleSheet(){return this[Pn]}};g();g();g();g();g();var ER=/[,()]/gm,vR=/[()]|\s+/gm,Wa=class{static splitByComma(t){let e=[],r=new RegExp(ER),n,i=0,s=0;for(;n=r.exec(t);)switch(n[0]){case "(":i++;break;case ")":i--;break;case ",":if(i===0){let l=t.substring(s,n.index).trim();l&&e.push(l),s=r.lastIndex;}break}return s<t.length&&e.push(t.substring(s).trim()),e}static splitBySpace(t){let e=[],r=new RegExp(vR),n,i=0,s=0;for(;n=r.exec(t);)switch(n[0]){case "(":i++;break;case ")":i--;break;default:if(i===0){let l=t.substring(s,n.index).trim();l&&e.push(l),s=r.lastIndex;}break}if(s<t.length){let l=t.substring(s).trim();l&&e.push(l);}return e}};var TR=/^#([0-9a-fA-F]{3,4}){1,2}$|^rgb\(([^)]*)\)$|^rgba\(([^)]*)\)$|^hsla?\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*(,\s*(-?\d+|-?\d*.\d+)\s*)?\)|(?:(rgba?|hsla?)\((var\(\s*(--[^)\s]+)\))\))/,CR=/^(0|[-+]?[0-9]*\.?[0-9]+)(in|cm|em|mm|pt|pc|px|ex|rem|vh|vw|ch|vw|vh|vmin|vmax|Q)$/,kR=/^[-+]?[0-9]*\.?[0-9]+%$/,NR=/^[0-9]+deg$/,LR=/^url\(\s*([^)]*)\s*\)$/,MR=/^[0-9]+$/,IR=/^[0-9.]+$/,RR=/^calc\([^^)]+\)$/,DR=/^var\(\s*(--[^)\s]+)\)$/,OR=/^fit-content\([^^)]+\)$/,FR=/^((repeating-linear|linear|radial|repeating-radial|conic|repeating-conic)-gradient)\(((?:[^()]|\([^()]*\))*)\)$/,tk=["inherit","initial","unset","revert"],BR=["none","currentcolor","transparent","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aliceblue","aqua","antiquewhite","aquamarine","azure","beige","bisque","black","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","magenta","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rebeccapurple","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen"],x=class{static getLength(t){if(t==="0")return "0px";let e=t.match(CR);if(e){let r=parseFloat(e[1]);if(isNaN(r))return null;let n=e[2];return `${Math.round(r*1e6)/1e6}${n}`}return null}static getPercentage(t){return t==="0"?"0%":kR.test(t)?t:null}static getDegree(t){return t==="0"?"0deg":NR.test(t)?t:null}static getCalc(t){return RR.test(t)?t:null}static getFitContent(t){let e=t.toLowerCase();return e==="auto"||e==="max-content"||e==="min-content"||e==="fit-content"||OR.test(e)?e:null}static getMeasurement(t){return this.getLength(t)||this.getPercentage(t)||this.getCalc(t)}static getContentMeasurement(t){return this.getFitContent(t)||this.getMeasurement(t)}static getAutoMeasurement(t){return t.toLocaleLowerCase()==="auto"?"auto":this.getMeasurement(t)}static getInteger(t){return MR.test(t)?t:null}static getFloat(t){if(IR.test(t)){let e=parseFloat(t);return isNaN(e)?null:String(Math.round(e*1e6)/1e6)}return null}static getGradient(t){let e=t.match(FR);if(e){let r=e[3].trim(),n=Wa.splitByComma(r);return `${e[1]}(${n.join(", ")})`}return null}static getColor(t){let e=t.toLowerCase();return BR.includes(e)?e:TR.test(t)?t.replace(/,([^ ])/g,", $1"):null}static getURL(t){if(!t)return null;if(t.toLowerCase()==="none")return "none";let e=LR.exec(t);if(!e)return null;let r=e[1].trim();if((r[0]==='"'||r[0]==="'")&&r[0]!==r[r.length-1])return null;(r[0]==='"'||r[0]==="'")&&(r=r.substring(1,r.length-1));for(let n=0;n<r.length;n++)switch(r[n]){case "(":case ")":case " ":case " ":case `
48
+ `:case "'":case '"':return null;case "\\":n++;break}return `url("${r}")`}static getInitial(t){return t.toLowerCase()==="initial"?"initial":null}static getVariable(t){let e=t.match(DR);return e?`var(${e[1]})`:null}static getGlobal(t){let e=t.toLowerCase();return tk.includes(e)?e:null}static getGlobalExceptInitial(t){let e=t.toLowerCase();return e!=="initial"&&tk.includes(e)?e:null}};var VR=/^rect\((.*)\)$/i,kS=/,(?=(?:(?:(?!\))[\s\S])*\()|[^\(\)]*$)/,gr=/\s+(?=(?:(?:(?!\))[\s\S])*\()|[^\(\)]*$)/,HR=/\s+/gm,af=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],uf=["thin","medium","thick"],GR=["separate","collapse"],UR=["repeat","repeat-x","repeat-y","no-repeat"],WR=["border-box","padding-box","content-box"],zR=["border-box","padding-box","content-box"],_R=["scroll","fixed"],$R=["auto","fill","content"],KR=["none","left","right","both"],jR=["none","left","right","inline-start","inline-end"],qR=["caption","icon","menu","message-box","small-caption","status-bar"],YR=["normal","bold","bolder","lighter"],QR=["normal","italic","oblique"],JR=["xx-small","x-small","small","medium","large","x-large","xx-large","xxx-large","smaller","larger"],XR=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],ZR=["block","inline","inline-block","flex","inline-flex","grid","inline-grid","flow-root","none","contents","block flow","inline flow","inline flow-root","block flex","inline flex","block grid","inline grid","block flow-root","table","table-row","list-item"],tD=["stretch","repeat","round","space"],eD=["capitalize","uppercase","lowercase","none","full-width","full-size-kana"],rD=["visible","hidden","collapse"],it=class{static getBorderCollapse(t,e){let r=x.getVariable(t);if(r)return {"border-collapse":{value:r,important:e}};let n=t.toLowerCase();return x.getGlobal(n)||GR.includes(n)?{"border-collapse":{value:n,important:e}}:null}static getDisplay(t,e){let r=x.getVariable(t);if(r)return {display:{value:r,important:e}};let n=t.toLowerCase();return x.getGlobal(n)||ZR.includes(n)?{display:{value:n,important:e}}:null}static getDirection(t,e){let r=x.getVariable(t);if(r)return {direction:{value:r,important:e}};let n=t.toLowerCase();return x.getGlobal(n)||n==="ltr"||n==="rtl"?{direction:{value:n,important:e}}:null}static getLetterSpacing(t,e){let r=x.getVariable(t)||x.getGlobal(t)||x.getContentMeasurement(t);return r?{"letter-spacing":{value:r,important:e}}:null}static getWordSpacing(t,e){let r=x.getVariable(t)||x.getGlobal(t)||x.getContentMeasurement(t);return r?{"word-spacing":{value:r,important:e}}:null}static getTextIndent(t,e){let r=x.getVariable(t)||x.getGlobal(t)||x.getContentMeasurement(t);return r?{"text-indent":{value:r,important:e}}:null}static getWidth(t,e){let r=x.getVariable(t)||x.getGlobal(t)||x.getContentMeasurement(t);return r?{width:{value:r,important:e}}:null}static getHeight(t,e){let r=x.getVariable(t)||x.getGlobal(t)||x.getContentMeasurement(t);return r?{height:{value:r,important:e}}:null}static getTop(t,e){let r=x.getVariable(t)||x.getGlobal(t)||x.getContentMeasurement(t);return r?{top:{value:r,important:e}}:null}static getRight(t,e){let r=x.getVariable(t)||x.getGlobal(t)||x.getContentMeasurement(t);return r?{right:{value:r,important:e}}:null}static getBottom(t,e){let r=x.getVariable(t)||x.getGlobal(t)||x.getContentMeasurement(t);return r?{bottom:{value:r,important:e}}:null}static getLeft(t,e){let r=x.getVariable(t)||x.getGlobal(t)||x.getContentMeasurement(t);return r?{left:{value:r,important:e}}:null}static getClear(t,e){let r=x.getVariable(t);if(r)return {clear:{value:r,important:e}};let n=t.toLowerCase();return x.getGlobal(n)||KR.includes(n)?{clear:{value:n,important:e}}:null}static getClip(t,e){let r=x.getVariable(t);if(r)return {clip:{value:r,important:e}};let n=t.toLowerCase();if(x.getGlobal(n)||n==="auto")return {clip:{value:n,important:e}};let i=n.match(VR);if(!i)return null;let s=i[1].split(/\s*,\s*/);if(s.length!==4)return null;for(let l of s)if(!x.getMeasurement(l))return null;return {clip:{value:t,important:e}}}static getFloat(t,e){let r=x.getVariable(t);if(r)return {float:{value:r,important:e}};let n=t.toLowerCase();return x.getGlobal(n)||jR.includes(n)?{float:{value:n,important:e}}:null}static getCSSFloat(t,e){let r=x.getVariable(t);if(r)return {"css-float":{value:r,important:e}};let n=this.getFloat(t,e);return n?{"css-float":n.float}:null}static getOutline(t,e){let r=x.getVariable(t);if(r)return {outline:{value:r,important:e}};let n=x.getGlobal(t);if(n)return {...this.getOutlineColor(n,e),...this.getOutlineStyle(n,e),...this.getOutlineWidth(n,e)};let i={...this.getOutlineColor("initial",e),...this.getOutlineStyle("initial",e),...this.getOutlineWidth("initial",e)},s=t.split(gr);for(let l of s){let a=this.getOutlineWidth(l,e),u=this.getOutlineStyle(l,e),c=this.getOutlineColor(l,e);if(a===null&&u===null&&c===null)return null;Object.assign(i,a,u,c);}return i}static getOutlineColor(t,e){let r=x.getVariable(t)||x.getGlobal(t)||x.getColor(t);return r?{"outline-color":{value:r,important:e}}:null}static getOutlineOffset(t,e){let r=x.getVariable(t)||x.getLength(t);return r?{"outline-offset":{value:r,important:e}}:null}static getOutlineStyle(t,e){let r=x.getVariable(t);if(r)return {"outline-style":{value:r,important:e}};let n=t.toLowerCase();return x.getGlobal(n)||af.includes(n)?{"outline-style":{value:n,important:e}}:null}static getOutlineWidth(t,e){let r=x.getVariable(t);if(r)return {"outline-width":{value:r,important:e}};let n=t.toLowerCase(),i=uf.includes(n)||x.getGlobal(n)?n:x.getLength(t);return i?{"outline-width":{value:i,important:e}}:null}static getBorder(t,e){let r=x.getVariable(t);if(r)return {border:{value:r,important:e}};let n=x.getGlobal(t);if(n)return {...this.getBorderWidth(n,e),...this.getBorderStyle(n,e),...this.getBorderColor(n,e),...this.getBorderImage(n,e)};let i={...this.getBorderWidth("initial",e),...this.getBorderStyle("initial",e),...this.getBorderColor("initial",e),...this.getBorderImage("initial",e)},s=t.replace(/\s*,\s*/g,",").split(gr);for(let l of s){let a=this.getBorderWidth(l,e),u=this.getBorderStyle(l,e),c=this.getBorderColor(l,e);if(a===null&&u===null&&c===null)return null;Object.assign(i,a,u,c);}return i}static getBorderWidth(t,e){let r=x.getVariable(t);if(r)return {"border-width":{value:r,important:e}};let n=x.getGlobal(t);if(n)return {...this.getBorderTopWidth(n,e),...this.getBorderRightWidth(n,e),...this.getBorderBottomWidth(n,e),...this.getBorderLeftWidth(n,e)};let i=t.split(gr),s=this.getBorderTopWidth(i[0],e),l=this.getBorderRightWidth(i[1]||i[0],e),a=this.getBorderBottomWidth(i[2]||i[0],e),u=this.getBorderLeftWidth(i[3]||i[1]||i[0],e);return !s||!l||!a||!u?null:{...s,...l,...a,...u}}static getBorderStyle(t,e){let r=x.getVariable(t);if(r)return {"border-style":{value:r,important:e}};let n=x.getGlobal(t);if(n)return {...this.getBorderTopStyle(n,e),...this.getBorderRightStyle(n,e),...this.getBorderBottomStyle(n,e),...this.getBorderLeftStyle(n,e)};let i=t.split(gr),s=this.getBorderTopStyle(i[0],e),l=this.getBorderRightStyle(i[1]||i[0],e),a=this.getBorderBottomStyle(i[2]||i[0],e),u=this.getBorderLeftStyle(i[3]||i[1]||i[0],e);return !s||!l||!a||!u?null:{...s,...l,...a,...u}}static getBorderColor(t,e){let r=x.getVariable(t);if(r)return {"border-color":{value:r,important:e}};let n=x.getGlobal(t);if(n)return {...this.getBorderTopColor(n,e),...this.getBorderRightColor(n,e),...this.getBorderBottomColor(n,e),...this.getBorderLeftColor(n,e)};let i=t.split(gr),s=this.getBorderTopColor(i[0],e),l=this.getBorderRightColor(i[1]||i[0],e),a=this.getBorderBottomColor(i[2]||i[0],e),u=this.getBorderLeftColor(i[3]||i[1]||i[0],e);return !s||!l||!a||!u?null:{...s,...l,...a,...u}}static getBorderImage(t,e){let r=x.getVariable(t);if(r)return {"border-image":{value:r,important:e}};let n=x.getGlobal(t);if(n)return {...this.getBorderImageSource(n,e),...this.getBorderImageSlice(n,e),...this.getBorderImageWidth(n,e),...this.getBorderImageOutset(n,e),...this.getBorderImageRepeat(n,e)};let i=t.replace(/\s\/\s/g,"/"),s=i.match(/\s*([a-zA-Z-]+\([^)]*\))\s*/);s&&(i=i.replace(s[0],""));let l=i.split(gr);s&&l.push(s[1]);let a={...this.getBorderImageSource("none",e),...this.getBorderImageSlice("100%",e),...this.getBorderImageWidth("1",e),...this.getBorderImageOutset("0",e),...this.getBorderImageRepeat("stretch",e)};for(let u=0,c=l.length;u<c;u++){let h=l[u],f=u>0?l[u-1]:"";if(!h.startsWith("url")&&h.includes("/")){let[d,g,A]=h.split("/"),w=this.getBorderImageSlice(`${f} ${d}`,e)||this.getBorderImageSlice(d,e),T=this.getBorderImageWidth(g,e),G=A&&this.getBorderImageOutset(A,e);if(!w||!T||G===null)return null;Object.assign(a,w,T,G);}else {let d=this.getBorderImageSlice(`${f} ${h}`,e)||this.getBorderImageSlice(h,e),g=this.getBorderImageSource(h,e),A=this.getBorderImageRepeat(h,e);if(!d&&!g&&!A)return null;Object.assign(a,d,g,A);}}return a}static getBorderImageSource(t,e){let r=x.getVariable(t);if(r)return {"border-image-source":{value:r,important:e}};let n=t.toLowerCase();if(x.getGlobal(n)||n==="none")return {"border-image-source":{important:e,value:n}};let i=x.getURL(t)||x.getGradient(t);return i?{"border-image-source":{important:e,value:i}}:null}static getBorderImageSlice(t,e){let r=x.getVariable(t);if(r)return {"border-image-slice":{value:r,important:e}};let n=t.toLowerCase();if(x.getGlobal(n))return {"border-image-slice":{important:e,value:n}};if(n!==n.trim())return null;let i=/(fill)|(calc\([^^)]+\))|([0-9]+%)|([0-9]+)/g,s=[],l;for(;l=i.exec(n);){let a=n[l.index-1],u=n[l.index+l[0].length];if(a&&a!==" "||u&&u!==" ")return null;let c=l[1]&&"fill",h=l[2]&&x.getCalc(l[2]),f=l[3]&&x.getPercentage(l[3]),d=l[4]&&x.getInteger(l[4]);if(!c&&!h&&!f&&!d)return null;s.push(c||h||f||d);}return !s.length||s.length>4?null:{"border-image-slice":{important:e,value:s.join(" ")}}}static getBorderImageWidth(t,e){let r=x.getVariable(t);if(r)return {"border-image-width":{value:r,important:e}};let n=t.toLowerCase();if(x.getGlobal(n))return {"border-image-width":{important:e,value:n}};let i=n.split(gr);if(i.length>4)return null;for(let s of i)if(!x.getInteger(s)&&!x.getAutoMeasurement(s))return null;return {"border-image-width":{important:e,value:t}}}static getBorderImageOutset(t,e){if(t==="0")return {"border-image-outset":{important:e,value:t}};let r=x.getVariable(t);if(r)return {"border-image-outset":{value:r,important:e}};let n=t.toLowerCase();if(x.getGlobal(n))return {"border-image-outset":{important:e,value:n}};let i=t.split(gr);if(i.length>4)return null;let s=[];for(let l of i){let a=x.getLength(l)||x.getFloat(l);if(!a)return null;s.push(a==="0px"?"0":a);}return {"border-image-outset":{important:e,value:s.join(" ")}}}static getBorderImageRepeat(t,e){let r=x.getVariable(t);if(r)return {"border-image-repeat":{value:r,important:e}};let n=t.toLowerCase();if(x.getGlobal(n))return {"border-image-repeat":{important:e,value:n}};let i=n.split(gr);if(i.length>2)return null;for(let s of i)if(!tD.includes(s))return null;return {"border-image-repeat":{important:e,value:t}}}static getBorderTopWidth(t,e){let r=x.getVariable(t);if(r)return {"border-top-width":{value:r,important:e}};let n=t.toLowerCase(),i=uf.includes(n)||x.getGlobal(n)?n:x.getLength(t);return i?{"border-top-width":{value:i,important:e}}:null}static getBorderRightWidth(t,e){let r=x.getVariable(t);if(r)return {"border-right-width":{value:r,important:e}};let n=t.toLowerCase(),i=uf.includes(n)||x.getGlobal(n)?n:x.getLength(t);return i?{"border-right-width":{value:i,important:e}}:null}static getBorderBottomWidth(t,e){let r=x.getVariable(t);if(r)return {"border-bottom-width":{value:r,important:e}};let n=t.toLowerCase(),i=uf.includes(n)||x.getGlobal(n)?n:x.getLength(t);return i?{"border-bottom-width":{value:i,important:e}}:null}static getBorderLeftWidth(t,e){let r=x.getVariable(t);if(r)return {"border-left-width":{value:r,important:e}};let n=t.toLowerCase(),i=uf.includes(n)||x.getGlobal(n)?n:x.getLength(t);return i?{"border-left-width":{value:i,important:e}}:null}static getBorderTopStyle(t,e){let r=x.getVariable(t);if(r)return {"border-top-style":{value:r,important:e}};let n=t.toLowerCase();return x.getGlobal(n)||af.includes(n)?{"border-top-style":{value:n,important:e}}:null}static getBorderRightStyle(t,e){let r=x.getVariable(t);if(r)return {"border-right-style":{value:r,important:e}};let n=t.toLowerCase();return x.getGlobal(n)||af.includes(n)?{"border-right-style":{value:n,important:e}}:null}static getBorderBottomStyle(t,e){let r=x.getVariable(t);if(r)return {"border-bottom-style":{value:r,important:e}};let n=t.toLowerCase();return x.getGlobal(n)||af.includes(n)?{"border-bottom-style":{value:n,important:e}}:null}static getBorderLeftStyle(t,e){let r=x.getVariable(t);if(r)return {"border-left-style":{value:r,important:e}};let n=t.toLowerCase();return x.getGlobal(n)||af.includes(n)?{"border-left-style":{value:n,important:e}}:null}static getBorderTopColor(t,e){let r=x.getVariable(t);if(r)return {"border-top-color":{value:r,important:e}};let n=x.getGlobal(t)||x.getColor(t);return n?{"border-top-color":{value:n,important:e}}:null}static getBorderRightColor(t,e){let r=x.getVariable(t);if(r)return {"border-right-color":{value:r,important:e}};let n=x.getGlobal(t)||x.getColor(t);return n?{"border-right-color":{value:n,important:e}}:null}static getBorderBottomColor(t,e){let r=x.getVariable(t);if(r)return {"border-bottom-color":{value:r,important:e}};let n=x.getGlobal(t)||x.getColor(t);return n?{"border-bottom-color":{value:n,important:e}}:null}static getBorderLeftColor(t,e){let r=x.getVariable(t);if(r)return {"border-left-color":{value:r,important:e}};let n=x.getGlobal(t)||x.getColor(t);return n?{"border-left-color":{value:n,important:e}}:null}static getBorderRadius(t,e){let r=x.getVariable(t);if(r)return {"border-radius":{value:r,important:e}};let n=x.getGlobal(t);if(n)return {...this.getBorderTopLeftRadius(n,e),...this.getBorderTopRightRadius(n,e),...this.getBorderBottomRightRadius(n,e),...this.getBorderBottomLeftRadius(n,e)};let i=t.split(gr),s=this.getBorderTopLeftRadius(i[0],e),l=this.getBorderTopRightRadius(i[1]||i[0],e),a=this.getBorderBottomRightRadius(i[2]||i[0],e),u=this.getBorderBottomLeftRadius(i[3]||i[1]||i[0],e);return !s||!l||!a||!u?null:{...s,...l,...a,...u}}static getBorderTopLeftRadius(t,e){let r=x.getVariable(t);if(r)return {"border-top-left-radius":{value:r,important:e}};let n=x.getGlobal(t)||x.getMeasurement(t);return n?{"border-top-left-radius":{important:e,value:n}}:null}static getBorderTopRightRadius(t,e){let r=x.getVariable(t);if(r)return {"border-top-right-radius":{value:r,important:e}};let n=x.getGlobal(t)||x.getMeasurement(t);return n?{"border-top-right-radius":{important:e,value:n}}:null}static getBorderBottomRightRadius(t,e){let r=x.getVariable(t);if(r)return {"border-bottom-right-radius":{value:r,important:e}};let n=x.getGlobal(t)||x.getMeasurement(t);return n?{"border-bottom-right-radius":{important:e,value:n}}:null}static getBorderBottomLeftRadius(t,e){let r=x.getVariable(t);if(r)return {"border-bottom-left-radius":{value:r,important:e}};let n=x.getGlobal(t)||x.getMeasurement(t);return n?{"border-bottom-left-radius":{important:e,value:n}}:null}static getBorderTop(t,e){let r=x.getVariable(t);if(r)return {"border-top":{value:r,important:e}};let n=x.getGlobal(t);if(n)return {...this.getBorderTopWidth(n,e),...this.getBorderTopStyle(n,e),...this.getBorderTopColor(n,e)};let i={...this.getBorderTopWidth("initial",e),...this.getBorderTopStyle("initial",e),...this.getBorderTopColor("initial",e)},s=t.split(gr);for(let l of s){let a=this.getBorderTopWidth(l,e),u=this.getBorderTopStyle(l,e),c=this.getBorderTopColor(l,e);if(a===null&&u===null&&c===null)return null;Object.assign(i,a,u,c);}return i}static getBorderRight(t,e){let r=x.getVariable(t);if(r)return {"border-right":{value:r,important:e}};let n=x.getGlobal(t);if(n)return {...this.getBorderRightWidth(n,e),...this.getBorderRightStyle(n,e),...this.getBorderRightColor(n,e)};let i={...this.getBorderRightWidth("initial",e),...this.getBorderRightStyle("initial",e),...this.getBorderRightColor("initial",e)},s=t.split(gr);for(let l of s){let a=this.getBorderRightWidth(l,e),u=this.getBorderRightStyle(l,e),c=this.getBorderRightColor(l,e);if(a===null&&u===null&&c===null)return null;Object.assign(i,a,u,c);}return i}static getBorderBottom(t,e){let r=x.getVariable(t);if(r)return {"border-bottom":{value:r,important:e}};let n=x.getGlobal(t);if(n)return {...this.getBorderBottomWidth(n,e),...this.getBorderBottomStyle(n,e),...this.getBorderBottomColor(n,e)};let i={...this.getBorderBottomWidth("initial",e),...this.getBorderBottomStyle("initial",e),...this.getBorderBottomColor("initial",e)},s=t.split(gr);for(let l of s){let a=this.getBorderBottomWidth(l,e),u=this.getBorderBottomStyle(l,e),c=this.getBorderBottomColor(l,e);if(a===null&&u===null&&c===null)return null;Object.assign(i,a,u,c);}return i}static getBorderLeft(t,e){let r=x.getVariable(t);if(r)return {"border-left":{value:r,important:e}};let n=x.getGlobal(t);if(n)return {...this.getBorderLeftWidth(n,e),...this.getBorderLeftStyle(n,e),...this.getBorderLeftColor(n,e)};let i={...this.getBorderLeftWidth("initial",e),...this.getBorderLeftStyle("initial",e),...this.getBorderLeftColor("initial",e)},s=t.split(gr);for(let l of s){let a=this.getBorderLeftWidth(l,e),u=this.getBorderLeftStyle(l,e),c=this.getBorderLeftColor(l,e);if(a===null&&u===null&&c===null)return null;Object.assign(i,a,u,c);}return i}static getPadding(t,e){let r=x.getVariable(t);if(r)return {padding:{value:r,important:e}};let n=x.getGlobal(t);if(n)return {...this.getPaddingTop(n,e),...this.getPaddingRight(n,e),...this.getPaddingBottom(n,e),...this.getPaddingLeft(n,e)};let i=t.split(gr),s=this.getPaddingTop(i[0],e),l=this.getPaddingRight(i[1]||i[0],e),a=this.getPaddingBottom(i[2]||i[0],e),u=this.getPaddingLeft(i[3]||i[1]||i[0],e);return !s||!l||!a||!u?null:{...s,...l,...a,...u}}static getPaddingTop(t,e){let r=x.getVariable(t);if(r)return {"padding-top":{value:r,important:e}};let n=x.getGlobal(t)||x.getMeasurement(t);return n?{"padding-top":{value:n,important:e}}:null}static getPaddingRight(t,e){let r=x.getVariable(t);if(r)return {"padding-right":{value:r,important:e}};let n=x.getGlobal(t)||x.getMeasurement(t);return n?{"padding-right":{value:n,important:e}}:null}static getPaddingBottom(t,e){let r=x.getVariable(t);if(r)return {"padding-bottom":{value:r,important:e}};let n=x.getGlobal(t)||x.getMeasurement(t);return n?{"padding-bottom":{value:n,important:e}}:null}static getPaddingLeft(t,e){let r=x.getVariable(t);if(r)return {"padding-left":{value:r,important:e}};let n=x.getGlobal(t)||x.getMeasurement(t);return n?{"padding-left":{value:n,important:e}}:null}static getMargin(t,e){let r=x.getVariable(t);if(r)return {margin:{value:r,important:e}};let n=x.getGlobal(t);if(n)return {...this.getMarginTop(n,e),...this.getMarginRight(n,e),...this.getMarginBottom(n,e),...this.getMarginLeft(n,e)};let i=t.split(gr),s=this.getMarginTop(i[0],e),l=this.getMarginRight(i[1]||i[0],e),a=this.getMarginBottom(i[2]||i[0],e),u=this.getMarginLeft(i[3]||i[1]||i[0],e);return !s||!l||!a||!u?null:{...s,...l,...a,...u}}static getMarginTop(t,e){let r=x.getVariable(t);if(r)return {"margin-top":{value:r,important:e}};let n=x.getGlobal(t)||x.getAutoMeasurement(t);return n?{"margin-top":{value:n,important:e}}:null}static getMarginRight(t,e){let r=x.getVariable(t);if(r)return {"margin-right":{value:r,important:e}};let n=x.getGlobal(t)||x.getAutoMeasurement(t);return n?{"margin-right":{value:n,important:e}}:null}static getMarginBottom(t,e){let r=x.getVariable(t);if(r)return {"margin-bottom":{value:r,important:e}};let n=x.getGlobal(t)||x.getAutoMeasurement(t);return n?{"margin-bottom":{value:n,important:e}}:null}static getMarginLeft(t,e){let r=x.getVariable(t);if(r)return {"margin-left":{value:r,important:e}};let n=x.getGlobal(t)||x.getAutoMeasurement(t);return n?{"margin-left":{value:n,important:e}}:null}static getFlex(t,e){let r=x.getVariable(t);if(r)return {flex:{value:r,important:e}};let n=t.trim().toLowerCase(),i=x.getGlobal(t);if(i)return {...this.getFlexGrow(i,e),...this.getFlexShrink(i,e),...this.getFlexBasis(i,e)};switch(n){case "none":return {...this.getFlexGrow("0",e),...this.getFlexShrink("0",e),...this.getFlexBasis("auto",e)};case "auto":return {...this.getFlexGrow("1",e),...this.getFlexShrink("1",e),...this.getFlexBasis("auto",e)}}let s=x.getContentMeasurement(n);if(s)return {...this.getFlexGrow("1",e),...this.getFlexShrink("1",e),...this.getFlexBasis(s,e)};let l=t.split(gr),a=this.getFlexGrow(l[0],e),u=this.getFlexShrink(l[1]||"1",e),c=this.getFlexBasis(l[2]||"0%",e);return !a||!u||!c?null:{...a,...u,...c}}static getFlexBasis(t,e){let r=x.getVariable(t);if(r)return {"flex-basis":{value:r,important:e}};let n=t.toLowerCase();if(x.getGlobal(n)||$R.includes(n))return {"flex-basis":{value:n,important:e}};let i=x.getContentMeasurement(n);return i?{"flex-basis":{value:i,important:e}}:null}static getFlexShrink(t,e){let r=x.getVariable(t);if(r)return {"flex-shrink":{value:r,important:e}};let n=x.getGlobal(t)||x.getFloat(t);return n?{"flex-shrink":{value:n,important:e}}:null}static getFlexGrow(t,e){let r=x.getVariable(t);if(r)return {"flex-grow":{value:r,important:e}};let n=x.getGlobal(t)||x.getFloat(t);return n?{"flex-grow":{value:n,important:e}}:null}static getBackground(t,e){let r=x.getVariable(t);if(r)return {background:{value:r,important:e}};let n=x.getGlobal(t);if(n)return {...this.getBackgroundImage(n,e),...this.getBackgroundPosition(n,e),...this.getBackgroundSize(n,e),...this.getBackgroundRepeat(n,e),...this.getBackgroundAttachment(n,e),...this.getBackgroundOrigin(n,e),...this.getBackgroundClip(n,e),...this.getBackgroundColor(n,e)};let i={...this.getBackgroundImage("initial",e),...this.getBackgroundPosition("initial",e),...this.getBackgroundSize("initial",e),...this.getBackgroundRepeat("initial",e),...this.getBackgroundAttachment("initial",e),...this.getBackgroundOrigin("initial",e),...this.getBackgroundClip("initial",e),...this.getBackgroundColor("initial",e)},s=Wa.splitBySpace(t.replace(/\s+\/\s+/g,"/")),l=[];for(let a of s)if(!a.startsWith("url")&&a.includes("/")){let[u,c]=a.split("/"),h=this.getBackgroundPositionX(u,e),f=this.getBackgroundPositionY(u,e),d=this.getBackgroundSize(c,e);if(!h&&!f||!d)return null;f?l.push(f["background-position-y"].value):h&&l.push(h["background-position-x"].value),Object.assign(i,d);}else {let u=this.getBackgroundImage(a,e),c=this.getBackgroundRepeat(a,e),h=this.getBackgroundAttachment(a,e),f=this.getBackgroundPositionX(a,e),d=this.getBackgroundPositionY(a,e),g=this.getBackgroundColor(a,e),A=this.getBackgroundOrigin(a,e),w=this.getBackgroundClip(a,e);if(!u&&!c&&!h&&!f&&!d&&!g&&!A&&!w)return null;f?l.push(f["background-position-x"].value):d&&l.push(d["background-position-y"].value),Object.assign(i,u,c,h,g,A,w);}return l.length&&Object.assign(i,this.getBackgroundPosition(l.join(" "),e)),i}static getBackgroundSize(t,e){let r=x.getVariable(t);if(r)return {"background-size":{value:r,important:e}};let n=t.toLowerCase();if(x.getGlobal(n))return {"background-size":{value:n,important:e}};let i=n.split(kS),s=[];for(let l of i){let a=l.trim().split(" ");if(a.length!==1&&a.length!==2)return null;if(a.length===1){if(a[0]!=="cover"&&a[0]!=="contain"&&!x.getAutoMeasurement(a[0]))return null;s.push(a[0]);}else {if(!x.getAutoMeasurement(a[0])||!x.getAutoMeasurement(a[1]))return null;s.push(`${a[0]} ${a[1]}`);}}return s.length===1?{"background-size":{value:s.join(", "),important:e}}:null}static getBackgroundOrigin(t,e){let r=x.getVariable(t);if(r)return {"background-origin":{value:r,important:e}};let n=t.toLowerCase();return x.getGlobal(n)||WR.includes(n)?{"background-origin":{value:n,important:e}}:null}static getBackgroundClip(t,e){let r=x.getVariable(t);if(r)return {"background-clip":{value:r,important:e}};let n=t.toLowerCase();return x.getGlobal(n)||zR.includes(n)?{"background-clip":{value:n,important:e}}:null}static getBackgroundRepeat(t,e){let r=x.getVariable(t);if(r)return {"background-repeat":{value:r,important:e}};let n=t.toLowerCase();return x.getGlobal(n)||UR.includes(n)?{"background-repeat":{value:n,important:e}}:null}static getBackgroundAttachment(t,e){let r=x.getVariable(t);if(r)return {"background-attachment":{value:r,important:e}};let n=t.toLowerCase();return x.getGlobal(n)||_R.includes(n)?{"background-attachment":{value:n,important:e}}:null}static getBackgroundPosition(t,e){let r=x.getVariable(t);if(r)return {"background-position":{value:r,important:e}};let n=x.getGlobal(t);if(n)return {...this.getBackgroundPositionX(n,e),...this.getBackgroundPositionY(n,e)};let i=t.split(kS),s="",l="";for(let c of i){let h=c.trim().split(gr);switch(s&&(s+=",",l+=","),h.length){case 1:h[0]==="top"||h[0]==="bottom"?(s+="center",l+=h[0]):h[0]==="left"||h[0]==="right"?(s+=h[0],l+="center"):h[0]==="center"&&(s+="center",l+="center");break;case 2:s+=h[0]==="top"||h[0]==="bottom"?h[1]:h[0],l+=h[0]==="top"||h[0]==="bottom"?h[0]:h[1];break;case 3:h[0]==="top"||h[0]==="bottom"||h[1]==="left"||h[1]==="right"||h[2]==="left"||h[2]==="right"?x.getMeasurement(h[1])?(s+=h[2],l+=`${h[0]} ${h[1]}`):(s+=`${h[1]} ${h[2]}`,l+=h[0]):x.getMeasurement(h[1])?(s+=`${h[0]} ${h[1]}`,l+=h[2]):(s+=h[0],l+=`${h[1]} ${h[2]}`);break;case 4:s+=h[0]==="top"||h[0]==="bottom"||h[1]==="top"||h[1]==="bottom"?`${h[2]} ${h[3]}`:`${h[0]} ${h[1]}`,l+=h[0]==="top"||h[0]==="bottom"||h[1]==="top"||h[1]==="bottom"?`${h[0]} ${h[1]}`:`${h[2]} ${h[3]}`;break;default:return null}}let a=this.getBackgroundPositionX(s,e),u=this.getBackgroundPositionY(l,e);return a&&u?{...a,...u}:null}static getBackgroundPositionX(t,e){let r=x.getVariable(t);if(r)return {"background-position-x":{value:r,important:e}};let n=t.toLowerCase();if(x.getGlobal(n))return {"background-position-x":{value:n,important:e}};let i=n.split(kS),s="";for(let l of i){let a=l.trim().split(gr);s&&(s+=",");for(let u of a){let c=x.getMeasurement(u);if(!c&&u!=="left"&&u!=="right"&&u!=="center")return null;s&&(s+=" "),s+=c||u;}}return {"background-position-x":{value:s,important:e}}}static getBackgroundPositionY(t,e){let r=x.getVariable(t);if(r)return {"background-position-y":{value:r,important:e}};let n=t.toLowerCase();if(x.getGlobal(n))return {"background-position-y":{value:n,important:e}};let i=n.split(kS),s="";for(let l of i){let a=l.trim().split(gr);s&&(s+=",");for(let u of a){let c=x.getMeasurement(u);if(!c&&u!=="top"&&u!=="bottom"&&u!=="center")return null;s&&(s+=" "),s+=c||u;}}return {"background-position-y":{value:s,important:e}}}static getBackgroundColor(t,e){let r=x.getVariable(t);if(r)return {"background-color":{value:r,important:e}};let n=x.getGlobal(t)||x.getColor(t);return n?{"background-color":{important:e,value:n}}:null}static getBackgroundImage(t,e){let r=x.getVariable(t);if(r)return {"background-image":{value:r,important:e}};let n=t.toLowerCase();if(x.getGlobal(n)||n==="none")return {"background-image":{value:n,important:e}};let i=Wa.splitByComma(t),s=[];for(let l of i){let a=x.getURL(l.trim())||x.getGradient(l.trim());if(!a)return null;s.push(a);}return s.length?{"background-image":{value:s.join(", "),important:e}}:null}static getColor(t,e){let r=x.getVariable(t);if(r)return {color:{value:r,important:e}};let n=x.getGlobal(t)||x.getColor(t);return n?{color:{important:e,value:n}}:null}static getFloodColor(t,e){let r=x.getVariable(t);if(r)return {"flood-color":{value:r,important:e}};let n=x.getGlobal(t)||x.getColor(t);return n?{"flood-color":{important:e,value:n}}:null}static getFont(t,e){let r=x.getVariable(t);if(r)return {font:{value:r,important:e}};let n=t.toLowerCase();if(x.getGlobal(n))return {...this.getFontStyle(n,e),...this.getFontVariant(n,e),...this.getFontWeight(n,e),...this.getFontStretch(n,e),...this.getFontSize(n,e),...this.getLineHeight(n,e),...this.getFontFamily(n,e)};if(qR.includes(n))return {font:{value:n,important:e}};let i={...this.getFontStyle("normal",e),...this.getFontVariant("normal",e),...this.getFontWeight("normal",e),...this.getFontStretch("normal",e),...this.getLineHeight("normal",e)},s=t.replace(/\s*\/\s*/g,"/").split(gr);for(let l=0,a=s.length;l<a;l++){let u=s[l];if(u.includes("/")){let[c,h]=u.split("/"),f=this.getFontSize(c,e),d=this.getLineHeight(h,e);if(!f||!d)return null;Object.assign(i,f,d);}else {let c=this.getFontStyle(u,e),h=this.getFontVariant(u,e),f=this.getFontWeight(u,e),d=this.getFontSize(u,e),g=this.getFontStretch(u,e);if(c)Object.assign(i,c);else if(h)Object.assign(i,h);else if(f)Object.assign(i,f);else if(d)Object.assign(i,d);else if(g)Object.assign(i,g);else {let A=s.slice(l).join(" "),w=this.getFontFamily(A,e);if(!w)return null;Object.assign(i,w);break}}}return i}static getFontStyle(t,e){let r=x.getVariable(t);if(r)return {"font-style":{value:r,important:e}};let n=t.toLowerCase();if(x.getGlobal(n)||QR.includes(n))return {"font-style":{value:n,important:e}};let i=t.split(gr);return i.length===2&&i[0]==="oblique"&&x.getDegree(i[1])?{"font-style":{value:n,important:e}}:null}static getFontVariant(t,e){let r=x.getVariable(t);if(r)return {"font-variant":{value:r,important:e}};let n=t.toLowerCase();return x.getGlobal(n)||n==="normal"||n==="small-caps"?{"font-variant":{value:n,important:e}}:null}static getFontStretch(t,e){let r=x.getVariable(t);if(r)return {"font-stretch":{value:r,important:e}};let n=t.toLowerCase();if(x.getGlobal(n)||XR.includes(n))return {"font-stretch":{value:n,important:e}};let i=x.getPercentage(t);return i?{"font-stretch":{value:i,important:e}}:null}static getFontWeight(t,e){let r=x.getVariable(t);if(r)return {"font-weight":{value:r,important:e}};let n=t.toLowerCase();if(x.getGlobal(n)||YR.includes(n))return {"font-weight":{value:n,important:e}};let i=x.getInteger(t);return i?{"font-weight":{value:i,important:e}}:null}static getFontSize(t,e){let r=x.getVariable(t);if(r)return {"font-size":{value:r,important:e}};let n=t.toLowerCase();if(x.getGlobal(n)||JR.includes(n))return {"font-size":{value:n,important:e}};let i=x.getMeasurement(t);return i?{"font-size":{value:i,important:e}}:null}static getLineHeight(t,e){let r=x.getVariable(t);if(r)return {"line-height":{value:r,important:e}};let n=t.toLowerCase();if(x.getGlobal(n)||n==="normal")return {"line-height":{value:n,important:e}};let i=x.getFloat(t)||x.getMeasurement(t);return i?{"line-height":{value:i,important:e}}:null}static getFontFamily(t,e){let r=x.getVariable(t);if(r)return {"font-family":{value:r,important:e}};let n=x.getGlobal(t);if(n)return {"font-family":{value:n,important:e}};let i=t.split(","),s="",l=false;for(let a=0,u=i.length;a<u;a++){let c=i[a].trim().replace(/'/g,'"');if(!c)return null;if(c.includes(" ")){let h=(c.match(/"/g)||[]).length;if((c[0]!=='"'||a!==0)&&h!==2&&h!==0)return null;c[0]==='"'&&c[c.length-1]!=='"'?l=true:c[0]!=='"'&&c[c.length-1]!=='"'&&(c=`"${c}"`);}else c=c.replace(/"/g,"");a>0&&(s+=", "),s+=c;}return l&&(s+='"'),s?{"font-family":{important:e,value:s}}:null}static getTextTransform(t,e){let r=x.getVariable(t);if(r)return {"text-transform":{value:r,important:e}};let n=t.toLowerCase(),i=x.getGlobal(n)||eD.includes(n)&&n;return i?{"text-transform":{value:i,important:e}}:null}static getVisibility(t,e){let r=x.getVariable(t);if(r)return {visibility:{value:r,important:e}};let n=t.toLowerCase(),i=x.getGlobal(n)||rD.includes(n)&&n;return i?{visibility:{value:i,important:e}}:null}static getAspectRatio(t,e){let r=x.getVariable(t);if(r)return {"aspect-ratio":{value:r,important:e}};let n=t.toLowerCase();if(x.getGlobal(n))return {"aspect-ratio":{value:n,important:e}};let i=t,s=i.includes("auto");if(s&&(i=i.replace("auto","")),i=i.replace(HR,""),!i)return {"aspect-ratio":{value:"auto",important:e}};let l=i.split("/");if(l.length>3)return null;let a=Number(l[0]),u=l[1]?Number(l[1]):1;return isNaN(a)||isNaN(u)?null:s?{"aspect-ratio":{value:`auto ${a} / ${u}`,important:e}}:{"aspect-ratio":{value:`${a} / ${u}`,important:e}}}};g();var vr=class{static getMargin(t){return this.getPaddingLikeProperty(["margin-top","margin-right","margin-bottom","margin-left"],t)}static getPadding(t){return this.getPaddingLikeProperty(["padding-top","padding-right","padding-bottom","padding-left"],t)}static getOutline(t){if(!t["outline-color"]?.value||!t["outline-style"]?.value||!t["outline-width"]?.value)return null;let e=t["outline-color"].important&&t["outline-style"].important&&t["outline-width"].important;if(x.getGlobalExceptInitial(t["outline-width"].value)&&t["outline-width"].value===t["outline-style"].value&&t["outline-width"].value===t["outline-color"].value)return {important:e,value:t["outline-width"].value};let r=[];return x.getInitial(t["outline-color"]?.value)||r.push(t["outline-color"].value),x.getInitial(t["outline-style"]?.value)||r.push(t["outline-style"].value),x.getInitial(t["outline-width"].value)||r.push(t["outline-width"].value),{important:e,value:r.join(" ")}}static getBorder(t){if(!t["border-top-width"]?.value||t["border-top-width"]?.value!==t["border-right-width"]?.value||t["border-top-width"]?.value!==t["border-bottom-width"]?.value||t["border-top-width"]?.value!==t["border-left-width"]?.value||!t["border-top-style"]?.value||t["border-top-style"]?.value!==t["border-right-style"]?.value||t["border-top-style"]?.value!==t["border-bottom-style"]?.value||t["border-top-style"]?.value!==t["border-left-style"]?.value||!t["border-top-color"]?.value||t["border-top-color"]?.value!==t["border-right-color"]?.value||t["border-top-color"]?.value!==t["border-bottom-color"]?.value||t["border-top-color"]?.value!==t["border-left-color"]?.value||!t["border-image-source"]?.value||!t["border-image-slice"]?.value||!t["border-image-width"]?.value||!t["border-image-outset"]?.value||!t["border-image-repeat"]?.value)return null;let e=t["border-top-width"].important&&t["border-right-width"].important&&t["border-bottom-width"].important&&t["border-left-width"].important&&t["border-top-style"].important&&t["border-right-style"].important&&t["border-bottom-style"].important&&t["border-left-style"].important&&t["border-top-color"].important&&t["border-right-color"].important&&t["border-bottom-color"].important&&t["border-left-color"].important&&t["border-image-source"].important&&t["border-image-slice"].important&&t["border-image-width"].important&&t["border-image-outset"].important&&t["border-image-repeat"].important;if(x.getGlobalExceptInitial(t["border-top-width"].value)||x.getGlobalExceptInitial(t["border-top-style"].value)||x.getGlobalExceptInitial(t["border-top-color"].value)||x.getGlobalExceptInitial(t["border-image-source"].value)||x.getGlobalExceptInitial(t["border-image-slice"].value)||x.getGlobalExceptInitial(t["border-image-width"].value)||x.getGlobalExceptInitial(t["border-image-outset"].value)||x.getGlobalExceptInitial(t["border-image-repeat"].value))return t["border-top-width"].value!==t["border-top-style"].value||t["border-top-width"].value!==t["border-top-color"].value||t["border-top-width"].value!==t["border-image-source"].value||t["border-top-width"].value!==t["border-image-slice"].value||t["border-top-width"].value!==t["border-image-width"].value||t["border-top-width"].value!==t["border-image-outset"].value||t["border-top-width"].value!==t["border-image-repeat"].value?null:{important:e,value:t["border-top-width"].value};let r=[];return x.getInitial(t["border-top-width"].value)||r.push(t["border-top-width"].value),x.getInitial(t["border-top-style"].value)||r.push(t["border-top-style"].value),x.getInitial(t["border-top-color"].value)||r.push(t["border-top-color"].value),{important:e,value:r.join(" ")}}static getBorderTop(t){return this.getBorderTopRightBottomLeft("top",t)}static getBorderRight(t){return this.getBorderTopRightBottomLeft("right",t)}static getBorderBottom(t){return this.getBorderTopRightBottomLeft("bottom",t)}static getBorderLeft(t){return this.getBorderTopRightBottomLeft("left",t)}static getBorderColor(t){return this.getPaddingLikeProperty(["border-top-color","border-right-color","border-bottom-color","border-left-color"],t)}static getBorderWidth(t){return this.getPaddingLikeProperty(["border-top-width","border-right-width","border-bottom-width","border-left-width"],t)}static getBorderStyle(t){return this.getPaddingLikeProperty(["border-top-style","border-right-style","border-bottom-style","border-left-style"],t)}static getBorderRadius(t){return this.getPaddingLikeProperty(["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"],t)}static getBorderImage(t){if(!t["border-image-source"]?.value||!t["border-image-slice"]?.value||!t["border-image-width"]?.value||!t["border-image-outset"]?.value||!t["border-image-repeat"]?.value)return null;let e=t["border-image-source"].important&&t["border-image-slice"].important&&t["border-image-width"].important&&t["border-image-outset"].important&&t["border-image-repeat"].important;return x.getGlobal(t["border-image-source"].value)||x.getGlobal(t["border-image-slice"].value)||x.getGlobal(t["border-image-width"].value)||x.getGlobal(t["border-image-outset"].value)||x.getGlobal(t["border-image-repeat"].value)?t["border-image-source"].value!==t["border-image-slice"].value||t["border-image-source"].value!==t["border-image-width"].value||t["border-image-source"].value!==t["border-image-outset"].value||t["border-image-source"].value!==t["border-image-repeat"].value?null:{important:e,value:t["border-image-source"].value}:{important:e,value:`${t["border-image-source"].value} ${t["border-image-slice"].value} / ${t["border-image-width"].value} / ${t["border-image-outset"].value} ${t["border-image-repeat"].value}`}}static getBackground(t){if(!t["background-image"]?.value||!t["background-repeat"]?.value||!t["background-attachment"]?.value||!t["background-position-x"]?.value||!t["background-position-y"]?.value||!t["background-color"]?.value||!t["background-size"]?.value||!t["background-origin"]?.value||!t["background-clip"]?.value)return null;let e=t["background-image"].important&&t["background-repeat"].important&&t["background-attachment"].important&&t["background-position-x"].important&&t["background-position-y"].important&&t["background-color"].important&&t["background-size"].important&&t["background-origin"].important&&t["background-clip"].important;if(x.getGlobalExceptInitial(t["background-image"].value)||x.getGlobalExceptInitial(t["background-repeat"].value)||x.getGlobalExceptInitial(t["background-attachment"].value)||x.getGlobalExceptInitial(t["background-position-x"].value)||x.getGlobalExceptInitial(t["background-position-y"].value)||x.getGlobalExceptInitial(t["background-color"].value)||x.getGlobalExceptInitial(t["background-size"].value)||x.getGlobalExceptInitial(t["background-origin"].value)||x.getGlobalExceptInitial(t["background-clip"].value))return t["background-image"].value!==t["background-repeat"].value||t["background-image"].value!==t["background-attachment"].value||t["background-image"].value!==t["background-position-x"].value||t["background-image"].value!==t["background-position-y"].value||t["background-image"].value!==t["background-color"].value||t["background-image"].value!==t["background-size"].value||t["background-image"].value!==t["background-origin"].value||t["background-image"].value!==t["background-clip"].value?null:{important:e,value:t["background-image"].value};let r=[];return x.getInitial(t["background-image"].value)||r.push(t["background-image"].value),!x.getInitial(t["background-position-x"].value)&&!x.getInitial(t["background-position-y"].value)&&!x.getInitial(t["background-size"].value)?r.push(`${t["background-position-x"].value} ${t["background-position-y"].value} / ${t["background-size"].value}`):!x.getInitial(t["background-position-x"].value)&&!x.getInitial(t["background-position-y"].value)&&r.push(`${t["background-position-x"].value} ${t["background-position-y"].value}`),x.getInitial(t["background-repeat"].value)||r.push(t["background-repeat"].value),x.getInitial(t["background-attachment"].value)||r.push(t["background-attachment"].value),x.getInitial(t["background-origin"].value)||r.push(t["background-origin"].value),x.getInitial(t["background-clip"].value)||r.push(t["background-clip"].value),x.getInitial(t["background-color"].value)||r.push(t["background-color"].value),{important:e,value:r.join(" ")}}static getBackgroundPosition(t){if(!t["background-position-x"]?.value||!t["background-position-y"]?.value)return null;let e=t["background-position-x"].important&&t["background-position-y"].important;if(x.getGlobal(t["background-position-x"].value)||x.getGlobal(t["background-position-y"].value))return t["background-position-x"].value!==t["background-position-y"].value?null:{important:e,value:t["background-position-x"].value};let r=t["background-position-x"].value.replace(/ *, */g,",").split(","),n=t["background-position-y"].value.replace(/ *, */g,",").split(","),i=[];for(let s=0;s<r.length;s++)i.push(`${r[s]} ${n[s]}`);return {important:e,value:i.join(", ")}}static getFlex(t){if(!t["flex-grow"]?.value||!t["flex-shrink"]?.value||!t["flex-basis"]?.value)return null;let e=t["flex-grow"].important&&t["flex-shrink"].important&&t["flex-basis"].important;return x.getGlobal(t["flex-grow"].value)||x.getGlobal(t["flex-shrink"].value)||x.getGlobal(t["flex-basis"].value)?t["flex-grow"].value!==t["flex-shrink"].value||t["flex-grow"].value!==t["flex-basis"].value?null:{important:e,value:t["flex-grow"].value}:{important:e,value:`${t["flex-grow"].value} ${t["flex-shrink"].value} ${t["flex-basis"].value}`}}static getFont(t){if(!t["font-size"]?.value||!t["font-family"]?.value||!t["font-weight"]?.value||!t["font-style"]?.value||!t["font-variant"]?.value||!t["font-stretch"]?.value||!t["line-height"]?.value)return null;let e=t["font-size"].important&&t["font-family"].important&&t["font-weight"].important&&t["font-style"].important&&t["font-variant"].important&&t["font-stretch"].important&&t["line-height"].important;if(x.getGlobal(t["font-size"].value)||x.getGlobal(t["font-family"].value)||x.getGlobal(t["font-weight"].value)||x.getGlobal(t["font-style"].value)||x.getGlobal(t["font-variant"].value)||x.getGlobal(t["font-stretch"].value)||x.getGlobal(t["line-height"].value))return t["font-size"].value!==t["font-family"].value||t["font-size"].value!==t["font-weight"].value||t["font-size"].value!==t["font-style"].value||t["font-size"].value!==t["font-variant"].value||t["font-size"].value!==t["font-stretch"].value||t["font-size"].value!==t["line-height"].value?null:{important:e,value:t["font-size"].value};let r=[];return t["font-style"].value!=="normal"&&r.push(t["font-style"].value),t["font-variant"].value!=="normal"&&r.push(t["font-variant"].value),t["font-weight"].value!=="normal"&&r.push(t["font-weight"].value),t["font-stretch"].value!=="normal"&&r.push(t["font-stretch"].value),t["line-height"].value!=="normal"?r.push(`${t["font-size"].value} / ${t["line-height"].value}`):r.push(t["font-size"].value),r.push(t["font-family"].value),{important:e,value:r.join(" ")}}static getBorderTopRightBottomLeft(t,e){if(!e[`border-${t}-width`]?.value||!e[`border-${t}-style`]?.value||!e[`border-${t}-color`]?.value)return null;let r=e[`border-${t}-width`].important&&e[`border-${t}-style`].important&&e[`border-${t}-color`].important;if(x.getGlobalExceptInitial(e[`border-${t}-width`].value)&&e[`border-${t}-width`].value===e[`border-${t}-style`].value&&e[`border-${t}-width`].value===e[`border-${t}-color`].value)return {important:r,value:e[`border-${t}-width`].value};let n=[];return x.getInitial(e[`border-${t}-width`].value)||n.push(e[`border-${t}-width`].value),x.getInitial(e[`border-${t}-style`]?.value)||n.push(e[`border-${t}-style`].value),x.getInitial(e[`border-${t}-color`]?.value)||n.push(e[`border-${t}-color`].value),{important:r,value:n.join(" ")}}static getPaddingLikeProperty(t,e){if(!e[t[0]]?.value||!e[t[1]]?.value||!e[t[2]]?.value||!e[t[3]]?.value)return null;let r=e[t[0]].important&&e[t[1]].important&&e[t[2]].important&&e[t[3]].important;if(x.getGlobal(e[t[0]].value)||x.getGlobal(e[t[1]].value)||x.getGlobal(e[t[2]].value)||x.getGlobal(e[t[3]].value))return e[t[0]].value!==e[t[1]].value||e[t[0]].value!==e[t[2]].value||e[t[0]].value!==e[t[3]].value?null:{important:r,value:e[t[0]].value};let n=[e[t[0]].value];return (e[t[1]].value!==e[t[0]].value||e[t[2]].value!==e[t[0]].value||e[t[3]].value!==e[t[1]].value)&&n.push(e[t[1]].value),(e[t[2]].value!==e[t[0]].value||e[t[3]].value!==e[t[1]].value)&&n.push(e[t[2]].value),e[t[3]].value!==e[t[1]].value&&n.push(e[t[3]].value),{important:r,value:n.join(" ")}}};g();var oD=/\s*([^:;]+?)\s*:\s*((?:[^(;]*?(?:\([^)]*\))?)*?)\s*(!important)?\s*(?:$|;)/g,yc=class{static parse(t){let e={},r=[],n=new RegExp(oD),i;for(;i=n.exec(t);){let s=(i[1]??"").trim(),l=(i[2]??"").trim(),a=!!i[3];s&&l&&(s.startsWith("--")&&(e[s]=l),r.push({name:s,value:l,important:a}));}return {rules:r,properties:e}}};var nD=[["margin"],["padding"],["border",["border-width","border-style","border-color","border-image"]],["border-radius"],["background","background-position"],["font"]],Bi=class{properties={};definedPropertyNames={};constructor(t){if(t?.cssText){let{rules:e}=yc.parse(t.cssText);for(let r of e)(r.important||!this.get(r.name)?.important)&&this.set(r.name,r.value,r.important);}}get(t){if(this.properties[t])return this.properties[t];switch(t){case "margin":return vr.getMargin(this.properties);case "padding":return vr.getPadding(this.properties);case "border":return vr.getBorder(this.properties);case "border-top":return vr.getBorderTop(this.properties);case "border-right":return vr.getBorderRight(this.properties);case "border-bottom":return vr.getBorderBottom(this.properties);case "border-left":return vr.getBorderLeft(this.properties);case "border-color":return vr.getBorderColor(this.properties);case "border-style":return vr.getBorderStyle(this.properties);case "border-width":return vr.getBorderWidth(this.properties);case "border-radius":return vr.getBorderRadius(this.properties);case "border-image":return vr.getBorderImage(this.properties);case "outline":return vr.getOutline(this.properties);case "background":return vr.getBackground(this.properties);case "background-position":return vr.getBackgroundPosition(this.properties);case "flex":return vr.getFlex(this.properties);case "font":return vr.getFont(this.properties)}return this.properties[t]||null}remove(t){switch(delete this.properties[t],delete this.definedPropertyNames[t],t){case "border":delete this.properties["border-top-width"],delete this.properties["border-right-width"],delete this.properties["border-bottom-width"],delete this.properties["border-left-width"],delete this.properties["border-top-style"],delete this.properties["border-right-style"],delete this.properties["border-bottom-style"],delete this.properties["border-left-style"],delete this.properties["border-top-color"],delete this.properties["border-right-color"],delete this.properties["border-bottom-color"],delete this.properties["border-left-color"],delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case "border-top":delete this.properties["border-top-width"],delete this.properties["border-top-style"],delete this.properties["border-top-color"],delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case "border-right":delete this.properties["border-right-width"],delete this.properties["border-right-style"],delete this.properties["border-right-color"],delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case "border-bottom":delete this.properties["border-bottom-width"],delete this.properties["border-bottom-style"],delete this.properties["border-bottom-color"],delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case "border-left":delete this.properties["border-left-width"],delete this.properties["border-left-style"],delete this.properties["border-left-color"],delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case "border-width":delete this.properties["border-top-width"],delete this.properties["border-right-width"],delete this.properties["border-bottom-width"],delete this.properties["border-left-width"];break;case "border-style":delete this.properties["border-top-style"],delete this.properties["border-right-style"],delete this.properties["border-bottom-style"],delete this.properties["border-left-style"];break;case "border-color":delete this.properties["border-top-color"],delete this.properties["border-right-color"],delete this.properties["border-bottom-color"],delete this.properties["border-left-color"];break;case "border-image":delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case "border-radius":delete this.properties["border-top-left-radius"],delete this.properties["border-top-right-radius"],delete this.properties["border-bottom-right-radius"],delete this.properties["border-bottom-left-radius"];break;case "outline":delete this.properties["outline-color"],delete this.properties["outline-style"],delete this.properties["outline-width"];break;case "background":delete this.properties["background-color"],delete this.properties["background-image"],delete this.properties["background-repeat"],delete this.properties["background-attachment"],delete this.properties["background-position-x"],delete this.properties["background-position-y"],delete this.properties["background-size"],delete this.properties["background-origin"],delete this.properties["background-clip"];break;case "background-position":delete this.properties["background-position-x"],delete this.properties["background-position-y"];break;case "flex":delete this.properties["flex-grow"],delete this.properties["flex-shrink"],delete this.properties["flex-basis"];break;case "font":delete this.properties["font-style"],delete this.properties["font-variant"],delete this.properties["font-weight"],delete this.properties["font-stretch"],delete this.properties["font-size"],delete this.properties["line-height"],delete this.properties["font-family"];break;case "padding":delete this.properties["padding-top"],delete this.properties["padding-right"],delete this.properties["padding-bottom"],delete this.properties["padding-left"];break;case "margin":delete this.properties["margin-top"],delete this.properties["margin-right"],delete this.properties["margin-bottom"],delete this.properties["margin-left"];break}}set(t,e,r){if(e===null){this.remove(t);return}let n=null;switch(t){case "border":n=it.getBorder(e,r);break;case "border-top":n=it.getBorderTop(e,r);break;case "border-right":n=it.getBorderRight(e,r);break;case "border-bottom":n=it.getBorderBottom(e,r);break;case "border-left":n=it.getBorderLeft(e,r);break;case "border-width":n=it.getBorderWidth(e,r);break;case "border-style":n=it.getBorderStyle(e,r);break;case "border-color":n=it.getBorderColor(e,r);break;case "border-image":n=it.getBorderImage(e,r);break;case "border-image-source":n=it.getBorderImageSource(e,r);break;case "border-image-slice":n=it.getBorderImageSlice(e,r);break;case "border-image-width":n=it.getBorderImageWidth(e,r);break;case "border-image-outset":n=it.getBorderImageOutset(e,r);break;case "border-image-repeat":n=it.getBorderImageRepeat(e,r);break;case "border-top-width":n=it.getBorderTopWidth(e,r);break;case "border-right-width":n=it.getBorderRightWidth(e,r);break;case "border-bottom-width":n=it.getBorderBottomWidth(e,r);break;case "border-left-width":n=it.getBorderLeftWidth(e,r);break;case "border-top-color":n=it.getBorderTopColor(e,r);break;case "border-right-color":n=it.getBorderRightColor(e,r);break;case "border-bottom-color":n=it.getBorderBottomColor(e,r);break;case "border-left-color":n=it.getBorderLeftColor(e,r);break;case "border-top-style":n=it.getBorderTopStyle(e,r);break;case "border-right-style":n=it.getBorderRightStyle(e,r);break;case "border-bottom-style":n=it.getBorderBottomStyle(e,r);break;case "border-left-style":n=it.getBorderLeftStyle(e,r);break;case "border-radius":n=it.getBorderRadius(e,r);break;case "border-top-left-radius":n=it.getBorderTopLeftRadius(e,r);break;case "border-top-right-radius":n=it.getBorderTopRightRadius(e,r);break;case "border-bottom-right-radius":n=it.getBorderBottomRightRadius(e,r);break;case "border-bottom-left-radius":n=it.getBorderBottomLeftRadius(e,r);break;case "border-collapse":n=it.getBorderCollapse(e,r);break;case "outline":n=it.getOutline(e,r);break;case "outline-width":n=it.getOutlineWidth(e,r);break;case "outline-style":n=it.getOutlineStyle(e,r);break;case "outline-color":n=it.getOutlineColor(e,r);break;case "letter-spacing":n=it.getLetterSpacing(e,r);break;case "word-spacing":n=it.getWordSpacing(e,r);break;case "clear":n=it.getClear(e,r);break;case "clip":n=it.getClip(e,r);break;case "css-float":n=it.getCSSFloat(e,r);break;case "float":n=it.getFloat(e,r);break;case "display":n=it.getDisplay(e,r);break;case "direction":n=it.getDirection(e,r);break;case "flex":n=it.getFlex(e,r);break;case "flex-shrink":n=it.getFlexShrink(e,r);break;case "flex-grow":n=it.getFlexGrow(e,r);break;case "flex-basis":n=it.getFlexBasis(e,r);break;case "padding":n=it.getPadding(e,r);break;case "padding-top":n=it.getPaddingTop(e,r);break;case "padding-right":n=it.getPaddingRight(e,r);break;case "padding-bottom":n=it.getPaddingBottom(e,r);break;case "padding-left":n=it.getPaddingLeft(e,r);break;case "margin":n=it.getMargin(e,r);break;case "margin-top":n=it.getMarginTop(e,r);break;case "margin-right":n=it.getMarginRight(e,r);break;case "margin-bottom":n=it.getMarginBottom(e,r);break;case "margin-left":n=it.getMarginLeft(e,r);break;case "background":n=it.getBackground(e,r);break;case "background-image":n=it.getBackgroundImage(e,r);break;case "background-color":n=it.getBackgroundColor(e,r);break;case "background-repeat":n=it.getBackgroundRepeat(e,r);break;case "background-attachment":n=it.getBackgroundAttachment(e,r);break;case "background-position":n=it.getBackgroundPosition(e,r);break;case "width":n=it.getWidth(e,r);break;case "height":n=it.getHeight(e,r);break;case "top":n=it.getTop(e,r);break;case "right":n=it.getRight(e,r);break;case "bottom":n=it.getBottom(e,r);break;case "left":n=it.getLeft(e,r);break;case "font":n=it.getFont(e,r);break;case "font-style":n=it.getFontStyle(e,r);break;case "font-variant":n=it.getFontVariant(e,r);break;case "font-weight":n=it.getFontWeight(e,r);break;case "font-stretch":n=it.getFontStretch(e,r);break;case "font-size":n=it.getFontSize(e,r);break;case "line-height":n=it.getLineHeight(e,r);break;case "text-indent":n=it.getTextIndent(e,r);break;case "font-family":n=it.getFontFamily(e,r);break;case "color":n=it.getColor(e,r);break;case "flood-color":n=it.getFloodColor(e,r);break;case "text-transform":n=it.getTextTransform(e,r);break;case "visibility":n=it.getVisibility(e,r);break;case "aspect-ratio":n=it.getAspectRatio(e,r);break;default:let i=e.trim();if(i){let s=x.getGlobal(i);n={[t]:{value:s||i,important:r}};}break}n!==null&&Object.keys(n).length>0&&(this.definedPropertyNames[t]=true,Object.assign(this.properties,n));}clone(){let t=this.constructor,e=new t;return e.properties=JSON.parse(JSON.stringify(this.properties)),e.definedPropertyNames=Object.assign({},this.definedPropertyNames),e}size(){return Object.keys(this.properties).length}item(t){return Object.keys(this.properties)[t]||""}toString(){let t=[],e=this.clone(),r={};for(let n of nD)for(let i of n)if(Array.isArray(i)){let s=false;for(let l of i){let a=e.get(l);a&&(r[l]=a,e.remove(l),s=true);}if(s)break}else {let s=e.get(i);if(s){r[i]=s,e.remove(i);break}}for(let n of Object.keys(e.properties))r[n]=e.get(n);for(let n of Object.keys(this.definedPropertyNames)){let i=r[n];i&&(t.push(`${n}: ${i.value}${i.important?" !important":""};`),delete r[n]);}for(let n of Object.keys(r)){let i=r[n];i&&t.push(`${n}: ${i.value}${i.important?" !important":""};`);}return t.join(" ")}};g();g();var ek={default:"display: inline;",A:"",ABBR:"",ADDRESS:"display: block;",AREA:"",ARTICLE:"display: block;",ASIDE:"display: block;",AUDIO:"display: none;",B:"",BASE:"display: none;",BDI:"",BDO:"",BLOCKQUAOTE:"",BODY:"display: block;",TEMPLATE:"display: none;",FORM:"display: block;",INPUT:"display: inline-block;",TEXTAREA:"display: inline-block;",SCRIPT:"display: none;",IMG:"",LINK:"display: none;",STYLE:"display: none;",LABEL:"",SLOT:"display: contents;",SVG:"",CIRCLE:"",ELLIPSE:"",LINE:"",PATH:"",POLYGON:"",POLYLINE:"",RECT:"",STOP:"",USE:"",META:"display: none;",BLOCKQUOTE:"display: block;",BR:"",BUTTON:"display: inline-block;",CANVAS:"",CAPTION:"display: table-caption;",CITE:"",CODE:"",COL:"display: table-column;",COLGROUP:"display: table-column-group;",DATA:"",DATALIST:"display: none;",DD:"display: block;",DEL:"",DETAILS:"display: block;",DFN:"",DIALOG:{default:"display: none;",open:"display: block;"},DIV:"display: block;",DL:"display: block;",DT:"display: block;",EM:"",EMBED:"",FIELDSET:"display: block;",FIGCAPTION:"display: block;",FIGURE:"display: block;",FOOTER:"display: block;",H1:"display: block;",H2:"display: block;",H3:"display: block;",H4:"display: block;",H5:"display: block;",H6:"display: block;",HEAD:"display: none;",HEADER:"display: block;",HGROUP:"display: block;",HR:"display: block;",HTML:'display: block;direction: ltr;font: 16px "Times New Roman";',I:"",IFRAME:"",INS:"",KBD:"",LEGEND:"display: block;",LI:"display: list-item;",MAIN:"display: block;",MAP:"",MARK:"",MATH:"",MENU:"display: block;",MENUITEM:"",METER:"display: inline-block;",NAV:"display: block;",NOSCRIPT:"",OBJECT:"",OL:"display: block;",OPTGROUP:"display: block;",OPTION:"display: block;",OUTPUT:"unicode-bidi: isolate;",P:"display: block;",PARAM:"display: none;",PICTURE:"",PRE:"display: block;",PROGRESS:"display: inline-block;",Q:"",RB:"",RP:"display: none;",RT:"",RTC:"",RUBY:"",S:"",SAMP:"",SECTION:"display: block;",SELECT:"display: inline-block;",SMALL:"",SOURCE:"",SPAN:"",STRONG:"",SUB:"",SUMMARY:"display: block;",SUP:"",TABLE:"display: table;",TBODY:"display: table-row-group;",TD:"display: table-cell;",TFOOT:"display: table-footer-group;",TH:"display: table-cell;",THEAD:"display: table-header-group;",TIME:"",TITLE:"display: none;",TR:"display: table-row;",TRACK:"",U:"",UL:"display: block;",VAR:"",VIDEO:"",WBR:""};g();var rk={"border-collapse":true,"border-spacing":true,"caption-side":true,color:true,cursor:true,direction:true,"empty-cells":true,"font-family":true,"font-size":true,"font-style":true,"font-variant":true,"font-weight":true,"font-size-adjust":true,"font-stretch":true,font:true,"letter-spacing":true,"line-height":true,"list-style-image":true,"list-style-position":true,"list-style-type":true,"list-style":true,orphans:true,quotes:true,"tab-size":true,"text-align":true,"text-align-last":true,"text-decoration-color":true,"text-indent":true,"text-justify":true,"text-shadow":true,"text-transform":true,visibility:true,"white-space":true,widows:true,"word-break":true,"word-spacing":true,"word-wrap":true};g();var ok=["background-position-x","background-position-y","background-size","border-image-outset","border-top-width","border-right-width","border-bottom-width","border-left-width","border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius","border-image-width","clip","font-size","padding-top","padding-right","padding-bottom","padding-left","margin-top","margin-right","margin-bottom","margin-left","width","height","min-width","min-height","max-width","max-height","top","right","bottom","left","outline-width","outline-offset","letter-spacing","word-spacing","text-indent","line-height"];g();g();g();var De=class{target;classes;cache=new Map;constructor(t,e){this.target=t,this.classes=e;}bind(t){if(this.cache.has(t)||t===Symbol.iterator||t==="constructor")return;this.cache.set(t,true);let e=this.target;if(t in e)for(let r of this.classes){let n=Object.getOwnPropertyDescriptor(r.prototype,t);if(n){if(typeof n.value=="function"){if(n.value.toString().startsWith("class "))return;Object.defineProperty(e,t,{...n,value:n.value.bind(e)});}else n.get!==void 0&&Object.defineProperty(e,t,{...n,get:n.get?.bind(e),set:n.set?.bind(e)});return}}}preventBinding(t){this.cache.set(t,true);}};var Zw=class o{[X];[jt];constructor(t,e){if(t!==b)throw new TypeError("Illegal constructor");this[X]=e;let r=new De(this,this.constructor!==o?[this.constructor,o]:[o]),n=new Proxy(this,{get:(i,s)=>{if(s==="length")return e.length;if(s in i||typeof s=="symbol")return r.bind(s),i[s];if(s==="")return;let l=Number(s);if(!isNaN(l))return e[l]},set(i,s,l){if(r.bind(s),typeof s=="symbol")return i[s]=l,true;let a=Number(s);return isNaN(a)&&(i[s]=l),true},deleteProperty(i,s){if(typeof s=="symbol")return delete i[s],true;let l=Number(s);return isNaN(l)&&delete i[s],true},ownKeys(){return Object.keys(e)},has(i,s){if(s in i)return true;if(typeof s=="symbol")return false;let l=Number(s);return !isNaN(l)&&l>=0&&l<e.length},defineProperty(i,s,l){return r.preventBinding(s),s in i?(Object.defineProperty(i,s,l),true):false},getOwnPropertyDescriptor(i,s){if(s in i||typeof s=="symbol")return;let l=Number(s);if(!isNaN(l)&&e[l])return {value:e[l],writable:false,enumerable:true,configurable:true}}});return this[jt]=n,n}get length(){return this[X].length}get[Symbol.toStringTag](){return "NodeList"}toLocaleString(){return "[object NodeList]"}toString(){return "[object NodeList]"}item(t){let e=this[X];return t>=0&&e[t]?e[t]:null}[Symbol.iterator](){return this[X][Symbol.iterator]()}values(){return this[X].values()}entries(){return this[X].entries()}forEach(t,e){let r=this[X],n=this[jt]??this;for(let i=0,s=r.length;i<s;i++){let l=r[i];t.call(e??l[m],l,i,n);}}keys(){return this[X].keys()}},In=Zw;g();var tx;(function(o){o.none="none",o.descendant="descendant",o.child="child",o.adjacentSibling="adjacentSibling",o.subsequentSibling="subsequentSibling";})(tx||(tx={}));var Ne=tx;g();g();var Fp=class{tagName;id;classNames;attributes;pseudos;isPseudoElement;combinator;constructor(t){this.tagName=t?.tagName||null,this.id=t?.id||null,this.classNames=t?.classNames||null,this.attributes=t?.attributes||null,this.pseudos=t?.pseudos||null,this.isPseudoElement=t?.isPseudoElement||false,this.combinator=t?.combinator||Ne.none;}match(t,e,r){let n=0;if(this.isPseudoElement)return null;if(this.tagName){if(this.tagName!=="*"&&this.tagName!==e[st].toUpperCase())return null;n+=1;}if(this.id){if(this.id!==e.id)return null;n+=100;}if(this.classNames){let i=this.matchClass(e);if(!i)return null;n+=i.priorityWeight;}if(this.attributes){let i=this.matchAttributes(e);if(!i)return null;n+=i.priorityWeight;}if(this.pseudos){let i=this.matchPseudo(t,e,r);if(!i)return null;n+=i.priorityWeight;}return {priorityWeight:n}}matchPseudo(t,e,r){let n=e[K],i=e[K]?e[K][Pt]:[];if(!this.pseudos)return {priorityWeight:0};let s=0;for(let l of this.pseudos){switch(l.name){case "not":case "nth-child":case "nth-of-type":case "nth-last-child":case "nth-last-of-type":case "is":case "where":if(!l.arguments){if(r)return null;throw new e[m].DOMException(`Failed to execute 'matches' on '${e.constructor.name}': '${this.getSelectorString()}' is not a valid selector.`)}break}if(!n)switch(l.name){case "first-child":case "last-child":case "only-child":case "first-of-type":case "last-of-type":case "only-of-type":case "nth-child":case "nth-of-type":case "nth-last-child":case "nth-last-of-type":return null}let a=this.matchPseudoItem(t,e,i,l,r);if(!a)return null;s+=a.priorityWeight;}return {priorityWeight:s}}matchPseudoItem(t,e,r,n,i){let s=this.getRootElement(t);switch(n.name){case "first-child":return r[0]===e?{priorityWeight:10}:null;case "last-child":return r.length&&r[r.length-1]===e?{priorityWeight:10}:null;case "only-child":return r.length===1&&r[0]===e?{priorityWeight:10}:null;case "first-of-type":for(let A of r)if(A[st]===e[st])return A===e?{priorityWeight:10}:null;return null;case "last-of-type":for(let A=r.length-1;A>=0;A--){let w=r[A];if(w[st]===e[st])return w===e?{priorityWeight:10}:null}return null;case "only-of-type":let l=false;for(let A of r)if(A[st]===e[st]){if(l||A!==e)return null;l=true;}return l?{priorityWeight:10}:null;case "checked":return e[st]==="INPUT"&&e.checked?{priorityWeight:10}:null;case "disabled":return "disabled"in e&&e.hasAttribute("disabled")?{priorityWeight:10}:null;case "empty":return e[Pt].length?null:{priorityWeight:10};case "root":return s&&e===s?{priorityWeight:10}:null;case "not":for(let A of n.selectorItems)if(A.match(t,e))return null;return {priorityWeight:10};case "nth-child":let a=-1;if(n.selectorItems?.[0]&&!n.selectorItems[0].match(t,e))return null;for(let A=0,w=r.length;A<w;A++)if((!n.selectorItems?.[0]||n.selectorItems[0].match(t,r[A]))&&a++,r[A]===e)return a!==-1&&n.nthFunction(a+1)?{priorityWeight:10}:null;return null;case "nth-of-type":let u=-1;for(let A=0,w=r.length;A<w;A++)if(r[A][st]===e[st]&&u++,r[A]===e)return u!==-1&&n.nthFunction(u+1)?{priorityWeight:10}:null;return null;case "nth-last-child":let c=-1;if(n.selectorItems?.[0]&&!n.selectorItems[0].match(t,e))return null;for(let A=r.length-1;A>=0;A--)if((!n.selectorItems?.[0]||n.selectorItems[0].match(t,r[A]))&&c++,r[A]===e)return c!==-1&&n.nthFunction(c+1)?{priorityWeight:10}:null;return null;case "nth-last-of-type":let h=-1;for(let A=r.length-1;A>=0;A--)if(r[A][st]===e[st]&&h++,r[A]===e)return h!==-1&&n.nthFunction(h+1)?{priorityWeight:10}:null;return null;case "target":let f=e[N].location.hash;return f&&e.isConnected&&e.id===f.slice(1)?{priorityWeight:10}:null;case "is":let d=0;if(!n.selectorItems)return null;for(let A of n.selectorItems){let w=A.match(t,e);w&&d<w.priorityWeight&&(d=w.priorityWeight);}return d?{priorityWeight:d}:null;case "where":if(!n.selectorItems)return null;for(let A of n.selectorItems)if(A.match(t,e))return {priorityWeight:0};return null;case "has":let g=0;if(n.arguments&&n.selectorItems)if(n.arguments[0]==="+"){let A=e.nextElementSibling;if(!A)return null;for(let w of n.selectorItems){let T=w.match(t,A);T&&g<T.priorityWeight&&(g=T.priorityWeight);}}else if(n.arguments[0]===">")for(let A of n.selectorItems)for(let w of e[Pt]){let T=A.match(t,w);if(T&&g<T.priorityWeight){g=T.priorityWeight;break}}else for(let A of n.selectorItems){let w=this.matchChildOfElement(t,A,e,i);w&&g<w.priorityWeight&&(g=w.priorityWeight);}return g?{priorityWeight:g}:null;case "focus":case "focus-visible":return e[N].activeElement===e?{priorityWeight:10}:null;case "scope":return t&&t===e?{priorityWeight:10}:null;default:return null}}matchAttributes(t){if(!this.attributes)return null;let e=0;for(let r of this.attributes){let n=t[Ct].getNamedItem(r.name);if(!n||(e+=10,r.value!==null&&(n[nt]===null||r.regExp&&!r.regExp.test(n[nt])||!r.regExp&&r.value!==n[nt])))return null}return {priorityWeight:e}}matchClass(t){if(!this.classNames)return null;let e=0;for(let r of this.classNames){if(!t.classList.contains(r))return null;e+=10;}return {priorityWeight:e}}matchChildOfElement(t,e,r,n){for(let i of r[Pt]){let s=e.match(t,i,n);if(s)return s;let l=this.matchChildOfElement(t,e,i,n);if(l)return l}return null}getSelectorString(){return `${this.tagName?this.tagName.toLowerCase():""}${this.id?`#${this.id}`:""}${this.classNames?`.${this.classNames.join(".")}`:""}${this.attributes?this.attributes.map(t=>`[${t.name}${t.value?`${t.operator||""}="${t.value}"`:""}]`).join(""):""}${this.pseudos?this.pseudos.map(t=>`:${t.name}${t.arguments?`(${t.arguments})`:""}`).join(""):""}`}getRootElement(t){return t?.[N]?.documentElement||t?.[m].document?.documentElement||null}};var iD=/(\s*[\s,+>~]\s*)|([\[\]\(\)"'])/g,sD=/(\*)|([a-zA-Z0-9\u00A0-\uFFFF-]+)|#(([a-zA-Z0-9\u00A0-\uFFFF_-]|\\.)+)|\.(([a-zA-Z0-9\u00A0-\uFFFF_-]|\\.)+)|\[(([a-zA-Z0-9-_]|\\.)+)\]|\[(([a-zA-Z0-9-_]|\\.)+)\s*([~|^$*]{0,1})\s*=\s*("([^"]*)"|'([^']*)')\s*(s|i){0,1}\]|\[(([a-zA-Z0-9-_]|\\.)+)\s*([~|^$*]{0,1})\s*=\s*(([a-zA-Z0-9\u00A0-\uFFFF_¤£-]|\\.)+)\]|:([a-zA-Z-]+)\s*\(.+\)|:([a-zA-Z-]+)|::([a-zA-Z-]+)/g,lD=/:([a-zA-Z-]+)|([()])/g,cf=/\\/g,aD=/\\([0-9a-fA-F]{1,6})\s?|\\(.)/g,uD=/[.*+?^${}()|[\]\\]/g,nk={odd:o=>(o+1)%2===0,even:o=>(o+1)%2!==0},cD=/ /g,Ll=class o{window;scope;ignoreErrors;constructor(t){this.window=t.window,this.scope=t.scope,this.ignoreErrors=t.ignoreErrors??false;}getSelectorItem(t){return this.getSelectorGroups(t)[0][0]}getSelectorGroups(t){t=t.trim();let e=this.window[Lp].get(t);if(e)return e;let r=this.getSelectorGroupsUncached(t);return this.window[Lp].set(t,r),r}getSelectorGroupsUncached(t){let e=[],r=[e],n=new RegExp(iD),i={parentheses:0,brackets:0,doubleApostrophe:0,singleApostrophe:0},s=this.scope.nodeType===M.documentNode?"Document":"Element",l=new this.window.DOMException(`Failed to execute 'querySelectorAll' on '${s}': '${t}' is not a valid selector.`),a=null,u=0,c=null,h=Ne.none;for(;a=n.exec(t);)if(a[1]){if(i.parentheses===0&&i.brackets===0&&i.singleApostrophe===0&&i.doubleApostrophe===0){let f=t.substring(u,a.index).trim();switch(a[1].trim()){case ",":if(c=this.getSelectorGroupItem(f,h),!c){if(this.ignoreErrors)return [];throw l}e.push(c),e=[],r.push(e),h=Ne.none;break;case ">":if(c=this.getSelectorGroupItem(f,h),!c){if(this.ignoreErrors)return [];throw l}e.push(c),h=Ne.child;break;case "+":if(c=this.getSelectorGroupItem(f,h),!c){if(this.ignoreErrors)return [];throw l}e.push(c),h=Ne.adjacentSibling;break;case "~":if(c=this.getSelectorGroupItem(f,h),!c){if(this.ignoreErrors)return [];throw l}e.push(c),h=Ne.subsequentSibling;break;case "":if(c=this.getSelectorGroupItem(f,h),!c){if(this.ignoreErrors)return [];throw l}e.push(c),h=Ne.descendant;break}u=n.lastIndex;}}else switch(a[2]){case "(":i.singleApostrophe===0&&i.doubleApostrophe===0&&i.parentheses++;break;case ")":i.singleApostrophe===0&&i.doubleApostrophe===0&&i.parentheses--;break;case "[":i.singleApostrophe===0&&i.doubleApostrophe===0&&i.brackets++;break;case "]":i.singleApostrophe===0&&i.doubleApostrophe===0&&i.brackets--;break;case '"':i.singleApostrophe===0&&(i.doubleApostrophe=i.doubleApostrophe===1?0:1);break;case "'":i.doubleApostrophe===0&&(i.singleApostrophe=i.singleApostrophe===1?0:1);break}if(c=this.getSelectorGroupItem(t.substring(u),h),!c||i.parentheses!==0||i.brackets!==0||i.singleApostrophe!==0||i.doubleApostrophe!==0){if(this.ignoreErrors)return [];throw l}return h===Ne.none&&e.length>0?r.push([c]):e.push(c),r}getSelectorGroupItem(t,e){if(t=t.trim(),!t)return null;if(t==="*")return new Fp({tagName:"*",combinator:e});let r=new RegExp(sD),n=new Fp({combinator:e}),i,s=0;for(;i=r.exec(t);){if(t.substring(s,i.index).trim()!=="")return null;if(i[1])n.tagName="*";else if(i[2])n.tagName=i[2].toUpperCase();else if(i[3])n.id=i[3].replace(cf,"");else if(i[5])n.classNames=n.classNames||[],n.classNames.push(i[5].replace(cf,""));else if(i[7])n.attributes=n.attributes||[],n.attributes.push({name:i[7].replace(cf,""),operator:null,value:null,modifier:null,regExp:null});else if(i[9]&&(i[13]!==void 0||i[14]!==void 0)){let l=i[13]??i[14],a=o.cssUnescape(l);n.attributes=n.attributes||[],n.attributes.push({name:i[9].replace(cf,""),operator:i[11]||null,value:a,modifier:i[15]||null,regExp:this.getAttributeRegExp({operator:i[11],value:a,modifier:i[15]})});}else if(i[16]&&i[19]!==void 0){let l=o.cssUnescape(i[19]);n.attributes=n.attributes||[],n.attributes.push({name:i[16].replace(cf,""),operator:i[18]||null,value:l,modifier:null,regExp:this.getAttributeRegExp({operator:i[18],value:l})});}else if(i[21]){let l=new RegExp(lD),a=null,u=null,c=0,h=-1;for(;a=l.exec(i[0]);)if(a[1])c===0&&(u=a[1]);else if(a[2]){if(a[2]==="(")c===0&&(h=l.lastIndex),c++;else if(a[2]===")"){if(c--,c<0)return null;if(c===0){if(h===-1||!u)return null;n.pseudos=n.pseudos||[],n.pseudos.push(this.getPseudo(u,i[0].substring(h,a.index))),u=null,h=-1;}}}}else i[22]?(n.pseudos=n.pseudos||[],n.pseudos.push(this.getPseudo(i[22],null))):i[23]&&(n.isPseudoElement=true);s=r.lastIndex;}return s<t.length?null:n}getAttributeRegExp(t){let e=t.modifier==="i"?"i":"";if(!t.operator||!t.value)return null;let r=t.value.replace(uD,"\\$&");switch(t.operator){case "~":return new RegExp(`(^|\\s)${r}(\\s|$)`,e);case "|":return new RegExp(`^${r}[- ]|^${r}$`,e);case "^":return new RegExp(`^${r}`,e);case "$":return new RegExp(`${r}$`,e);case "*":return new RegExp(`${r}`,e);default:return null}}getPseudo(t,e){let r=t.toLowerCase();if(e&&(e=e.trim()),!e)return {name:r,arguments:null,selectorItems:null,nthFunction:null};switch(r){case "nth-last-child":case "nth-child":let n=e.indexOf(" of "),i=n!==-1?e.substring(0,n):e,s=n!==-1?this.getSelectorItem(e.substring(n+4).trim()):null;return {name:r,arguments:e,selectorItems:s?[s]:null,nthFunction:this.getPseudoNthFunction(i)};case "nth-of-type":case "nth-last-of-type":return {name:r,arguments:e,selectorItems:null,nthFunction:this.getPseudoNthFunction(e)};case "not":let l=[];for(let c of this.getSelectorGroups(e))c[0]&&l.push(c[0]);return {name:r,arguments:e,selectorItems:l,nthFunction:null};case "is":case "where":let a=[];for(let c of this.getSelectorGroups(e))c[0]&&a.push(c[0]);return {name:r,arguments:e,selectorItems:a,nthFunction:null};case "has":let u=[];if(!e.includes(":has(")){let c=e;e[0]==="+"?c=e.replace("+",""):e[0]===">"&&(c=e.replace(">",""));for(let h of this.getSelectorGroups(c))h[0]&&u.push(h[0]);}return {name:r,arguments:e||"",selectorItems:u,nthFunction:null};default:return {name:r,arguments:e,selectorItems:null,nthFunction:null}}}getPseudoNthFunction(t){if(!t)return null;if(t==="odd")return nk.odd;if(t==="even")return nk.even;let e=t.replace(cD,"").split("n"),r=parseInt(e[0],10)||0;if(e[0]=="-"&&(r=-1),e.length===1)return i=>i==r;let n=parseInt(e[1],10)||0;return e[0]=="+"&&(n=1),r>=1||r<=-1?r>=1?Math.abs(r)===1?i=>i>n-1:i=>i>n-1&&(i+-1*n)%r===0:Math.abs(r)===1?i=>i<n+1:i=>i<n+1&&(i+-1*n)%r===0:e[0]?i=>i===n:i=>i>n-1}static cssUnescape(t){return t.replace(aD,(e,r,n)=>r?String.fromCodePoint(parseInt(r,16)):n)}};var ex=/^[.#\[]?\d|[.#]$/,ft=class{static querySelectorAll(t,e){let r=t[m];if(e==="")throw new r.DOMException(`Failed to execute 'querySelectorAll' on '${t.constructor.name}': The provided selector is empty.`);if(typeof e=="function")throw new r.DOMException(`Failed to execute 'querySelectorAll' on '${t.constructor.name}': '${e}' is not a valid selector.`);if(typeof e=="symbol")throw new r.TypeError(`Failed to execute 'querySelectorAll' on '${t.constructor.name}': Cannot convert a Symbol value to a string`);if(e=String(e),ex.test(e))throw new r.DOMException(`Failed to execute 'querySelectorAll' on '${t.constructor.name}': '${e}' is not a valid selector.`);let n=t[$].querySelectorAll,i=n.get(e);if(i){if(i.result!==null){let g=i.result.deref();if(g)return g}n.delete(e);}let s=t[H]===M.documentNode?t.documentElement:t,l=new Ll({window:r,scope:s}).getSelectorGroups(e),a=[],u=new In(b,a),c=new Map,h=[],f={result:new WeakRef(u)};t[$].querySelectorAll.set(e,f),t[pt]&&(t[N]||t)[ur].push(f);for(let g of l){let A=t[H]===M.elementNode?t:null,w=t[H]===M.elementNode?[t]:t[Pt],T=this.findAll({scope:s,rootElement:A,children:w,selectorItems:g,cachedItem:f});for(let G of T)c.has(G.documentPosition)||(c.set(G.documentPosition,G.element),h.push(G.documentPosition));}let d=h.sort();for(let g=0,A=d.length;g<A;g++)a.push(c.get(d[g]));return u}static querySelector(t,e){let r=t[m];if(e==="")throw new r.DOMException(`Failed to execute 'querySelector' on '${t.constructor.name}': The provided selector is empty.`);if(typeof e=="function")throw new r.DOMException(`Failed to execute 'querySelector' on '${t.constructor.name}': '${e}' is not a valid selector.`);if(typeof e=="symbol")throw new r.TypeError(`Failed to execute 'querySelector' on '${t.constructor.name}': Cannot convert a Symbol value to a string`);if(e=String(e),ex.test(e))throw new r.DOMException(`Failed to execute 'querySelector' on '${t.constructor.name}': '${e}' is not a valid selector.`);let n=t[$].querySelector.get(e);if(n){if(n.result!==null){if(!n.result.element)return null;let c=n.result.element.deref();if(c)return c}t[$].querySelector.delete(e);}let i={result:{element:null}};t[$].querySelector.set(e,i),t[pt]&&(t[N]||t)[ur].push(i);let s=null,l=new Map,a=t[H]===M.documentNode?t.documentElement:t;for(let c of new Ll({window:r,scope:a}).getSelectorGroups(e)){let h=t[H]===M.elementNode?t:null,f=t[H]===M.elementNode?[t]:t[Pt],d=this.findFirst({scope:a,rootElement:h,children:f,selectorItems:c,cachedItem:i});d&&!l.has(d.documentPosition)&&(l.set(d.documentPosition,true),(!s||d.documentPosition<s.documentPosition)&&(s=d));}let u=s?.element||null;return i.result={element:u?new WeakRef(u):null},u}static matches(t,e,r){let n=r?.ignoreErrors,i=t[m];if(e==="*")return {priorityWeight:1};if(e===""){if(n)return null;throw new i.DOMException(`Failed to execute 'matches' on '${t.constructor.name}': The provided selector is empty.`)}if(typeof e=="function"){if(n)return null;throw new i.DOMException(`Failed to execute 'matches' on '${t.constructor.name}': '${e}' is not a valid selector.`)}if(typeof e=="symbol"){if(n)return null;throw new i.TypeError("Cannot convert a Symbol value to a string")}if(e=String(e),ex.test(e)){if(n)return null;throw new i.DOMException(`Failed to execute 'matches' on '${t.constructor.name}': '${e}' is not a valid selector.`)}let s=t[$].matches.get(e);if(s){if(s.result!==null)return s.result.match;t[$].matches.delete(e);}let l={result:{match:null}};t[$].matches.set(e,l),t[pt]&&(t[N]||t)[ur].push(l);let a=r?.scope||t,u=a[H]===M.documentNode?a.documentElement:a;for(let c of new Ll({ignoreErrors:r?.ignoreErrors,window:i,scope:u}).getSelectorGroups(e)){let h=this.matchSelector({scope:u,element:t,selectorItems:c.slice().reverse(),cachedItem:l,ignoreErrors:n});if(h)return l.result.match=h,h}return null}static matchSelector(t,e=null,r=0){let{scope:n,element:i,selectorItems:s,cachedItem:l,ignoreErrors:a}=t,u=s[0];if(!u)return null;let c=u.match(n,i,a);if(c){if(s.length===1)return {priorityWeight:r+c.priorityWeight};switch(u.combinator){case Ne.adjacentSibling:let h=i.previousElementSibling;if(h){h[ur].push(l);let g=this.matchSelector({scope:n,element:h,selectorItems:s.slice(1),cachedItem:l,ignoreErrors:a},u,r+c.priorityWeight);if(g)return g}break;case Ne.none:case Ne.child:case Ne.descendant:let f=i.parentElement;if(f){f[ur].push(l);let g=this.matchSelector({scope:n,element:f,selectorItems:s.slice(1),cachedItem:l,ignoreErrors:a},u,r+c.priorityWeight);if(g)return g}break;case Ne.subsequentSibling:let d=i.parentElement;if(d){let g=d[Pt],A=g.indexOf(i);d[ur].push(l);for(let w=A-1;w>=0;w--){let T=g[w];T[ur].push(l);let G=this.matchSelector({scope:n,element:T,selectorItems:s.slice(1),cachedItem:l,ignoreErrors:a},u,r+c.priorityWeight);if(G)return G}}break}}if(e?.combinator===Ne.none||e?.combinator===Ne.descendant){let h=i.parentElement;if(h)return this.matchSelector({scope:n,element:h,selectorItems:s,cachedItem:l,ignoreErrors:a},e,r)}return null}static findAll(t,e){let{scope:r,rootElement:n,children:i,selectorItems:s,cachedItem:l}=t,a=s[0],u=s[1],c=[];if(!a)return [];for(let h=0,f=i.length;h<f;h++){let d=i[h],g=d[Pt],A=(e?e+">":"")+String.fromCharCode(h);if(d[ur].push(l),a.match(r,d))if(!u)n!==d&&c.push({documentPosition:A,element:d});else switch(u.combinator){case Ne.adjacentSibling:let w=d.nextElementSibling;w&&(c=c.concat(this.findAll({scope:r,rootElement:n,children:[w],selectorItems:s.slice(1),cachedItem:l},A)));break;case Ne.none:case Ne.descendant:case Ne.child:c=c.concat(this.findAll({scope:r,rootElement:n,children:g,selectorItems:s.slice(1),cachedItem:l},A));break;case Ne.subsequentSibling:let T=i.indexOf(d);for(let G=T+1;G<i.length;G++){let J=i[G];c=c.concat(this.findAll({scope:r,rootElement:n,children:[J],selectorItems:s.slice(1),cachedItem:l},A));}break}(a.combinator===Ne.none||a.combinator===Ne.descendant)&&g.length&&(c=c.concat(this.findAll({scope:r,rootElement:n,children:g,selectorItems:s,cachedItem:l},A)));}return c}static findFirst(t,e){let{scope:r,rootElement:n,children:i,selectorItems:s,cachedItem:l}=t,a=s[0],u=s[1];if(!a)return null;for(let c=0,h=i.length;c<h;c++){let f=i[c],d=f[Pt],g=(e?e+">":"")+String.fromCharCode(c);if(f[ur].push(l),a.match(r,f)){if(u)switch(u.combinator){case Ne.adjacentSibling:let A=f.nextElementSibling;if(A){let G=this.findFirst({scope:r,rootElement:n,children:[A],selectorItems:s.slice(1),cachedItem:l},g);if(G)return G}break;case Ne.none:case Ne.descendant:case Ne.child:let w=this.findFirst({scope:r,rootElement:n,children:d,selectorItems:s.slice(1),cachedItem:l},g);if(w)return w;break;case Ne.subsequentSibling:let T=i.indexOf(f);for(let G=T+1;G<i.length;G++){let J=i[G],W=this.findFirst({scope:r,rootElement:n,children:[J],selectorItems:s.slice(1),cachedItem:l},g);if(W)return W}break}else if(n!==f)return {documentPosition:g,element:f}}if((a.combinator===Ne.none||a.combinator===Ne.descendant)&&d.length){let A=this.findFirst({scope:r,rootElement:n,children:d,selectorItems:s,cachedItem:l},g);if(A)return A}}return null}};g();var za=class{static toPixels(t){let e=parseFloat(t.value),r=t.value.replace(e.toString(),"");if(isNaN(e))return null;switch(r){case "px":return e;case "rem":return this.round(e*parseFloat(t.rootFontSize));case "em":return this.round(e*parseFloat(t.parentFontSize));case "vw":return this.round(e*t.window.innerWidth/100);case "vh":return this.round(e*t.window.innerHeight/100);case "%":return t.parentSize!==void 0&&t.parentSize!==null?this.round(e*parseFloat(t.parentSize)/100):null;case "vmin":return this.round(e*Math.min(t.window.innerWidth,t.window.innerHeight)/100);case "vmax":return e*Math.max(t.window.innerWidth,t.window.innerHeight)/100;case "cm":return this.round(e*37.7812);case "mm":return this.round(e*3.7781);case "in":return this.round(e*96);case "pt":return this.round(e*1.3281);case "pc":return this.round(e*16);case "Q":return this.round(e*.945);default:return null}}static round(t){return Math.round(t*1e4)/1e4}};g();g();var _a=class extends I{matches;media;constructor(t,e=null){super(t,e),this.matches=e?.matches??false,this.media=e?.media??"";}};g();g();g();var rx;(function(o){o.all="all",o.print="print",o.screen="screen";})(rx||(rx={}));var NS=rx;var dc=class{mediaTypes;not;rules;ranges;rootFontSize=null;window;constructor(t){this.window=t.window,this.rootFontSize=t.rootFontSize||null,this.mediaTypes=t.mediaTypes||[],this.not=t.not||false,this.rules=t.rules||[],this.ranges=t.ranges||[];}toString(){return `${this.not?"not ":""}${this.mediaTypes.join(", ")}${(this.not||this.mediaTypes.length>0)&&this.ranges.length?" and ":""}${this.ranges.map(t=>`(${t.before?`${t.before.value} ${t.before.operator} `:""}${t.type}${t.after?` ${t.after.operator} ${t.after.value}`:""})`).join(" and ")}${(this.not||this.mediaTypes.length>0)&&this.rules.length?" and ":""}${this.rules.map(t=>t.value?`(${t.name}: ${t.value})`:`(${t.name})`).join(" and ")}`}matches(){return this.not?!this.matchesAll():this.matchesAll()}matchesAll(){if(this.mediaTypes.length){let t=false;for(let e of this.mediaTypes)if(this.matchesMediaType(e)){t=true;break}if(!t)return false}for(let t of this.rules)if(!this.matchesRule(t))return false;for(let t of this.ranges)if(!this.matchesRange(t))return false;return true}matchesMediaType(t){return t===NS.all?true:t===new rt(this.window).getSettings()?.device.mediaType}matchesRange(t){let e=t.type==="width"?this.window.innerWidth:this.window.innerHeight;if(t.before){let r=this.toPixels(t.before.value);if(r===null)return false;switch(t.before.operator){case "<":if(r>=e)return false;break;case "<=":if(r>e)return false;break;case ">":if(r<=e)return false;break;case ">=":if(r<e)return false;break}}if(t.after){let r=this.toPixels(t.after.value);if(r===null)return false;switch(t.after.operator){case "<":if(e>=r)return false;break;case "<=":if(e>r)return false;break;case ">":if(e<=r)return false;break;case ">=":if(e<r)return false;break}}return true}matchesRule(t){let e=new rt(this.window).getSettings();if(!e)return false;if(!t.value){switch(t.name){case "min-width":case "max-width":case "min-height":case "max-height":case "width":case "height":case "orientation":case "prefers-color-scheme":case "hover":case "any-hover":case "any-pointer":case "pointer":case "display-mode":case "min-aspect-ratio":case "max-aspect-ratio":case "aspect-ratio":return true;case "prefers-reduced-motion":return e.device.prefersReducedMotion==="reduce";case "forced-colors":return e.device.forcedColors==="active"}return false}switch(t.name){case "min-width":let r=this.toPixels(t.value);return r!==null&&this.window.innerWidth>=r;case "max-width":let n=this.toPixels(t.value);return n!==null&&this.window.innerWidth<=n;case "min-height":let i=this.toPixels(t.value);return i!==null&&this.window.innerHeight>=i;case "max-height":let s=this.toPixels(t.value);return s!==null&&this.window.innerHeight<=s;case "width":let l=this.toPixels(t.value);return l!==null&&this.window.innerWidth===l;case "height":let a=this.toPixels(t.value);return a!==null&&this.window.innerHeight===a;case "orientation":return t.value==="landscape"?this.window.innerWidth>this.window.innerHeight:this.window.innerWidth<this.window.innerHeight;case "prefers-color-scheme":return t.value===e.device.prefersColorScheme;case "prefers-reduced-motion":return t.value===e.device.prefersReducedMotion;case "forced-colors":return (t.value==="none"||t.value==="active")&&t.value===e.device.forcedColors;case "any-hover":case "hover":return t.value==="none"?this.window.navigator.maxTouchPoints>0:t.value==="hover"?this.window.navigator.maxTouchPoints===0:false;case "any-pointer":case "pointer":return t.value==="none"?false:t.value==="coarse"?this.window.navigator.maxTouchPoints>0:t.value==="fine"?this.window.navigator.maxTouchPoints===0:false;case "display-mode":return t.value==="browser";case "min-aspect-ratio":case "max-aspect-ratio":case "aspect-ratio":let u=t.value.split("/"),c=parseInt(u[0],10),h=parseInt(u[1],10);if(isNaN(c)||isNaN(h))return false;switch(t.name){case "min-aspect-ratio":return c/h<=this.window.innerWidth/this.window.innerHeight;case "max-aspect-ratio":return c/h>=this.window.innerWidth/this.window.innerHeight;case "aspect-ratio":return c/h===this.window.innerWidth/this.window.innerHeight}}return false}toPixels(t){return !new rt(this.window).getSettings()?.disableComputedStyleRendering&&t.endsWith("em")?(this.rootFontSize=this.rootFontSize||parseFloat(this.window.getComputedStyle(this.window.document.documentElement).fontSize),za.toPixels({window:this.window,value:t,rootFontSize:this.rootFontSize,parentFontSize:this.rootFontSize})):za.toPixels({window:this.window,value:t,rootFontSize:16,parentFontSize:16})}};var pD=/(not|only|all|screen|print)|\(([^\)]+)(\)){0,1}|(,)| +(or|and) +/g,mD=/[<>]/,hD=/(?:([0-9]+[a-z]+) *(<|<=|>|>=)){0,1} *(width|height) *(?:(<|<=|>|>=) *([0-9]+[a-z]+)){0,1}/,Bp=class{static parse(t){let e=new dc({window:t.window,rootFontSize:t.rootFontSize}),r=[e],n=new RegExp(pD),i=null;for(;i=n.exec(t.mediaQuery.toLowerCase());)if(i[4]===","||i[5]==="or")e=new dc({window:t.window,rootFontSize:t.rootFontSize}),r.push(e);else if(i[1]==="all"||i[1]==="screen"||i[1]==="print")e.mediaTypes.push(i[1]);else if(i[1]==="not")e.not=true;else if(i[2]){let s=mD.test(i[2])?i[2].match(hD):null;if(s&&(s[1]||s[5]))e.ranges.push({before:s[1]?{value:s[1],operator:s[2]}:null,type:s[3],after:s[5]?{value:s[5],operator:s[4]}:null});else {let[l,a]=i[2].split(":"),u=a?a.trim():null;if(!u&&!i[3])return [new dc({window:t.window,rootFontSize:t.rootFontSize,not:true,mediaTypes:[NS.all]})];e.rules.push({name:l.trim(),value:u});}}return r}};var fc=class extends Ot{onchange=null;#t;#e=null;#r;#o=null;constructor(t){super(),this.#t=t.window,this.#r=t.media,this.#o=t.rootFontSize||null;}get media(){return this.#e=this.#e||Bp.parse({window:this.#t,mediaQuery:this.#r,rootFontSize:this.#o}),this.#e.map(t=>t.toString()).join(", ")}get matches(){this.#e=this.#e||Bp.parse({window:this.#t,mediaQuery:this.#r,rootFontSize:this.#o});for(let t of this.#e)if(!t.matches())return false;return true}addListener(t){this.addEventListener("change",t);}removeListener(t){this.removeEventListener("change",t);}addEventListener(t,e){if(super.addEventListener(t,e),t==="change"){let r=false,n=()=>{let i=this.matches;i!==r&&(r=i,this.dispatchEvent(new _a("change",{matches:i,media:this.media})));};e[tS]=n,this.#t.addEventListener("resize",n);}}removeEventListener(t,e){super.removeEventListener(t,e),t==="change"&&e[tS]&&this.#t.removeEventListener("resize",e[tS]);}};g();g();var li=class extends wn{[cr]=[];get cssRules(){return this[cr]}insertRule(t,e){if(arguments.length===0)throw new this[m].TypeError(`Failed to execute 'insertRule' on '${this.constructor.name}': 1 argument required, but only 0 present.`);let r=this[ac].parseFromString(t);if(r.length===0||r.length>1)throw new this[m].DOMException(`Failed to execute 'insertRule' on '${this.constructor.name}': Failed to parse the rule '${t}'.`,k.syntaxError);if(e!==void 0){if(e=Number(e),isNaN(e)||e>this.cssRules.length)throw new this[m].DOMException(`Failed to execute 'insertRule' on '${this.constructor.name}': The index provided (${e}) is larger than the maximum index (${this.cssRules.length}).`,k.indexSizeError);return this.cssRules.splice(e,0,r[0]),e}let n=this.cssRules.length;return this.cssRules.unshift(r[0]),n}deleteRule(t){if(arguments.length===0)throw new this[m].TypeError(`Failed to execute 'deleteRule' on '${this.constructor.name}': 1 argument required, but only 0 present.`);if(t=Number(t),isNaN(t)||t<0||t>=this.cssRules.length)throw new this[m].DOMException(`Failed to execute 'deleteRule' on '${this.constructor.name}': the index (${t}) is greater than the length of the rule list.`,k.indexSizeError);this.cssRules.splice(t,1);}};var Ls=class extends li{[z]="";[Y]="";[yo]="";get type(){return St.containerRule}get cssText(){let t="";for(let e of this[cr])t+=`
49
+ `+e.cssText;return t+=`
50
+ `,`@${this[yo]}scope${this[z]?` (${this[z]})`:""}${this[Y]?` to (${this[Y]})`:""} {${t}}`}get start(){return this[z]}get end(){return this[Y]}};var yD=/[0-9.]+(px|rem|em|vw|vh|%|vmin|vmax|cm|mm|in|pt|pc|Q)/g,ik=/:host\s*\(([^)]+)\)|:host-context\s*\(([^)]+)\)/,dD=/var\( *(--[^), ]+)\)/,fD=/var\( *(--[^), ]+), *([^), ]+)\)/,pf=class{element;constructor(t){this.element=t;}getComputedStyle(){let t=[],e=[],r={element:this.element,cssTexts:[]},n=[],i=[];if(!this.element[pt])return new Bi;let s=this.element[$].computedStyle;if(s?.result){let d=s.result.deref();if(d)return d}for(;r.element;)if(r.element[H]===M.elementNode&&(r.element.getRootNode()[H]===M.documentNode?t.unshift(r):n.unshift(r),r.element.shadowRoot&&i.push(r),e.unshift(r)),r.element===this.element[N]){let d=this.getStyleSheets(this.element[N]);for(let g of d)this.parseCSSRules({elements:t,cssRules:g.cssRules});for(let g of i){let A=this.getStyleSheets(g.element.shadowRoot);for(let w of A)this.parseCSSRules({elements:[],cssRules:w.cssRules,hostElement:g});}r={element:null,cssTexts:[]};}else if(r.element[H]===M.documentFragmentNode&&r.element.host){let d=r.element,g=this.getStyleSheets(d);r={element:d.host,cssTexts:[]};for(let A of g)this.parseCSSRules({elements:n,cssRules:A.cssRules,hostElement:r});for(let A of i){let w=this.getStyleSheets(A.element.shadowRoot);for(let T of w)this.parseCSSRules({elements:[],cssRules:T.cssRules,hostElement:A});}i=[],n=[];}else r={element:r.element[K],cssTexts:[]};let l=e[e.length-1],a=new Bi,u={},c=16,h=16;for(let d of e){d.cssTexts.sort((J,W)=>J.priorityWeight-W.priorityWeight);let g=ek[d.element[st]],A="";if(g)if(typeof g=="string")A+=g;else for(let J of Object.keys(g))(J==="default"||d.element[J])&&(A+=g[J]);for(let J of d.cssTexts)A+=J.cssText;let w=d.element.getAttribute("style");w&&(A+=w);let T=yc.parse(A),G=T.rules;Object.assign(u,T.properties);for(let{name:J,value:W,important:q}of G)if(rk[J]||d===l){let ut=this.parseCSSVariablesInValue(W.trim(),u);if(ut&&(!a.get(J)?.important||q)&&(a.set(J,ut,q),J==="font"||J==="font-size")){let Z=a.properties["font-size"];if(Z!==null){let kt=this.parseMeasurementsInValue({value:Z.value,rootFontSize:c,parentFontSize:h,parentSize:h});d.element[st]==="HTML"?c=kt:d!==l&&(h=kt);}}}}for(let d of ok){let g=a.properties[d];g&&(g.value=this.parseMeasurementsInValue({value:g.value,rootFontSize:c,parentFontSize:h,parentSize:d==="font-size"?h:null}));}let f={result:new WeakRef(a)};return this.element[$].computedStyle=f,this.element[N][oi].push(f),a}getStyleSheets(t){if(!t)return [];let e=t.querySelectorAll('style,link[rel="stylesheet"]'),r=[];for(let n of e){let i=n.sheet;i&&r.push(i);}return t.adoptedStyleSheets&&(r=r.concat(t.adoptedStyleSheets)),r}parseCSSRules(t){if(!t.hostElement&&!t.elements.length)return;let e=this.element[m];for(let r of t.cssRules)if(r.type===St.styleRule){let n=r.selectorText;if(n)if(n[0]===":"&&n.startsWith(":host")){if(t.hostElement){let i=true;if(n!==":host"){let s=n.match(ik);if(s)if(ft.matches(t.hostElement.element,s[1]||s[2],{ignoreErrors:true,scope:t.scopeElement?.element})){let a=n?.replace(ik,"").trim();if(a&&a[0]!==":"){i=false;for(let u of t.elements){let c=ft.matches(u.element,a,{ignoreErrors:true,scope:t.scopeElement?.element});c&&u.cssTexts.push({cssText:r[qr],priorityWeight:10+c.priorityWeight});}}}else i=false;}i&&t.hostElement.cssTexts.push({cssText:r[qr],priorityWeight:10});}}else for(let i of t.elements){let s=ft.matches(i.element,n,{ignoreErrors:true,scope:t.scopeElement?.element});s&&i.cssTexts.push({cssText:r[qr],priorityWeight:s.priorityWeight});}}else if(r.type===St.mediaRule&&new fc({window:e,media:r.conditionText,rootFontSize:this.element[st]==="HTML"?16:null}).matches)this.parseCSSRules({elements:t.elements,cssRules:r.cssRules,hostElement:t.hostElement,scopeElement:t.scopeElement});else if(r.type===St.supportsRule)e.CSS.supports(r.conditionText)&&this.parseCSSRules({elements:t.elements,cssRules:r.cssRules,hostElement:t.hostElement,scopeElement:t.scopeElement});else if(r.type===St.containerRule&&r instanceof Ls){let n=[],i=null;for(let s of t.elements)if(i){if(r[Y]&&ft.matches(s.element,r[Y],{ignoreErrors:true,scope:i.element}))break;n.push(s);}else ft.matches(s.element,r[z]||":root",{ignoreErrors:true})&&(i=s,n.push(s));n.length&&this.parseCSSRules({elements:n,cssRules:r.cssRules,hostElement:t.hostElement,scopeElement:i});}}parseCSSVariablesInValue(t,e){let r=t,n;for(;(n=r.match(dD))!=null;)r=r.replace(n[0],e[n[1]]||"");for(;(n=r.match(fD))!==null;)r=r.replace(n[0],e[n[1]]||n[2]);return r}parseMeasurementsInValue(t){if(new rt(this.element[m]).getSettings()?.disableComputedStyleRendering)return t.value;let e=new RegExp(yD),r=t.value,n;for(;(n=e.exec(t.value))!==null;)if(n[1]!=="px"){let i=za.toPixels({window:this.element[m],value:n[0],rootFontSize:t.rootFontSize,parentFontSize:t.parentFontSize,parentSize:t.parentSize});i!==null&&(r=r.replace(n[0],i+"px"));}return r}};var bo=class{parentRule=null;[m];#t;#e;#r={attributeValue:null,propertyManager:null};constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this.#t=r?.element||null,this.#e=r?.element?!!r?.computed:false;}get 0(){return this.item(0)||void 0}get 1(){return this.item(1)||void 0}get 2(){return this.item(2)||void 0}get 3(){return this.item(3)||void 0}get 4(){return this.item(4)||void 0}get 5(){return this.item(5)||void 0}get 6(){return this.item(6)||void 0}get 7(){return this.item(7)||void 0}get 8(){return this.item(8)||void 0}get 9(){return this.item(9)||void 0}get 10(){return this.item(10)||void 0}get 11(){return this.item(11)||void 0}get 12(){return this.item(12)||void 0}get 13(){return this.item(13)||void 0}get 14(){return this.item(14)||void 0}get 15(){return this.item(15)||void 0}get 16(){return this.item(16)||void 0}get 17(){return this.item(17)||void 0}get 18(){return this.item(18)||void 0}get 19(){return this.item(19)||void 0}get 20(){return this.item(20)||void 0}get 21(){return this.item(21)||void 0}get 22(){return this.item(22)||void 0}get 23(){return this.item(23)||void 0}get 24(){return this.item(24)||void 0}get 25(){return this.item(25)||void 0}get 26(){return this.item(26)||void 0}get 27(){return this.item(27)||void 0}get 28(){return this.item(28)||void 0}get 29(){return this.item(29)||void 0}get 30(){return this.item(30)||void 0}get 31(){return this.item(31)||void 0}get 32(){return this.item(32)||void 0}get 33(){return this.item(33)||void 0}get 34(){return this.item(34)||void 0}get 35(){return this.item(35)||void 0}get 36(){return this.item(36)||void 0}get 37(){return this.item(37)||void 0}get 38(){return this.item(38)||void 0}get 39(){return this.item(39)||void 0}get 40(){return this.item(40)||void 0}get 41(){return this.item(41)||void 0}get 42(){return this.item(42)||void 0}get 43(){return this.item(43)||void 0}get 44(){return this.item(44)||void 0}get 45(){return this.item(45)||void 0}get 46(){return this.item(46)||void 0}get 47(){return this.item(47)||void 0}get 48(){return this.item(48)||void 0}get 49(){return this.item(49)||void 0}get 50(){return this.item(50)||void 0}get 51(){return this.item(51)||void 0}get 52(){return this.item(52)||void 0}get 53(){return this.item(53)||void 0}get 54(){return this.item(54)||void 0}get 55(){return this.item(55)||void 0}get 56(){return this.item(56)||void 0}get 57(){return this.item(57)||void 0}get 58(){return this.item(58)||void 0}get 59(){return this.item(59)||void 0}get 60(){return this.item(60)||void 0}get 61(){return this.item(61)||void 0}get 62(){return this.item(62)||void 0}get 63(){return this.item(63)||void 0}get 64(){return this.item(64)||void 0}get 65(){return this.item(65)||void 0}get 66(){return this.item(66)||void 0}get 67(){return this.item(67)||void 0}get 68(){return this.item(68)||void 0}get 69(){return this.item(69)||void 0}get 70(){return this.item(70)||void 0}get 71(){return this.item(71)||void 0}get 72(){return this.item(72)||void 0}get 73(){return this.item(73)||void 0}get 74(){return this.item(74)||void 0}get 75(){return this.item(75)||void 0}get 76(){return this.item(76)||void 0}get 77(){return this.item(77)||void 0}get 78(){return this.item(78)||void 0}get 79(){return this.item(79)||void 0}get 80(){return this.item(80)||void 0}get 81(){return this.item(81)||void 0}get 82(){return this.item(82)||void 0}get 83(){return this.item(83)||void 0}get 84(){return this.item(84)||void 0}get 85(){return this.item(85)||void 0}get 86(){return this.item(86)||void 0}get 87(){return this.item(87)||void 0}get 88(){return this.item(88)||void 0}get 89(){return this.item(89)||void 0}get 90(){return this.item(90)||void 0}get 91(){return this.item(91)||void 0}get 92(){return this.item(92)||void 0}get 93(){return this.item(93)||void 0}get 94(){return this.item(94)||void 0}get 95(){return this.item(95)||void 0}get 96(){return this.item(96)||void 0}get 97(){return this.item(97)||void 0}get 98(){return this.item(98)||void 0}get 99(){return this.item(99)||void 0}get 100(){return this.item(100)||void 0}get 101(){return this.item(101)||void 0}get 102(){return this.item(102)||void 0}get 103(){return this.item(103)||void 0}get 104(){return this.item(104)||void 0}get 105(){return this.item(105)||void 0}get 106(){return this.item(106)||void 0}get 107(){return this.item(107)||void 0}get 108(){return this.item(108)||void 0}get 109(){return this.item(109)||void 0}get 110(){return this.item(110)||void 0}get 111(){return this.item(111)||void 0}get 112(){return this.item(112)||void 0}get 113(){return this.item(113)||void 0}get 114(){return this.item(114)||void 0}get 115(){return this.item(115)||void 0}get 116(){return this.item(116)||void 0}get 117(){return this.item(117)||void 0}get 118(){return this.item(118)||void 0}get 119(){return this.item(119)||void 0}get 120(){return this.item(120)||void 0}get 121(){return this.item(121)||void 0}get 122(){return this.item(122)||void 0}get 123(){return this.item(123)||void 0}get 124(){return this.item(124)||void 0}get 125(){return this.item(125)||void 0}get 126(){return this.item(126)||void 0}get 127(){return this.item(127)||void 0}get 128(){return this.item(128)||void 0}get 129(){return this.item(129)||void 0}get 130(){return this.item(130)||void 0}get 131(){return this.item(131)||void 0}get 132(){return this.item(132)||void 0}get 133(){return this.item(133)||void 0}get 134(){return this.item(134)||void 0}get 135(){return this.item(135)||void 0}get 136(){return this.item(136)||void 0}get 137(){return this.item(137)||void 0}get 138(){return this.item(138)||void 0}get 139(){return this.item(139)||void 0}get 140(){return this.item(140)||void 0}get 141(){return this.item(141)||void 0}get 142(){return this.item(142)||void 0}get 143(){return this.item(143)||void 0}get 144(){return this.item(144)||void 0}get 145(){return this.item(145)||void 0}get 146(){return this.item(146)||void 0}get 147(){return this.item(147)||void 0}get 148(){return this.item(148)||void 0}get 149(){return this.item(149)||void 0}get 150(){return this.item(150)||void 0}get 151(){return this.item(151)||void 0}get 152(){return this.item(152)||void 0}get 153(){return this.item(153)||void 0}get 154(){return this.item(154)||void 0}get 155(){return this.item(155)||void 0}get 156(){return this.item(156)||void 0}get 157(){return this.item(157)||void 0}get 158(){return this.item(158)||void 0}get 159(){return this.item(159)||void 0}get 160(){return this.item(160)||void 0}get 161(){return this.item(161)||void 0}get 162(){return this.item(162)||void 0}get 163(){return this.item(163)||void 0}get 164(){return this.item(164)||void 0}get 165(){return this.item(165)||void 0}get 166(){return this.item(166)||void 0}get 167(){return this.item(167)||void 0}get 168(){return this.item(168)||void 0}get 169(){return this.item(169)||void 0}get 170(){return this.item(170)||void 0}get 171(){return this.item(171)||void 0}get 172(){return this.item(172)||void 0}get 173(){return this.item(173)||void 0}get 174(){return this.item(174)||void 0}get 175(){return this.item(175)||void 0}get 176(){return this.item(176)||void 0}get 177(){return this.item(177)||void 0}get 178(){return this.item(178)||void 0}get 179(){return this.item(179)||void 0}get 180(){return this.item(180)||void 0}get 181(){return this.item(181)||void 0}get 182(){return this.item(182)||void 0}get 183(){return this.item(183)||void 0}get 184(){return this.item(184)||void 0}get 185(){return this.item(185)||void 0}get 186(){return this.item(186)||void 0}get 187(){return this.item(187)||void 0}get 188(){return this.item(188)||void 0}get 189(){return this.item(189)||void 0}get 190(){return this.item(190)||void 0}get 191(){return this.item(191)||void 0}get 192(){return this.item(192)||void 0}get 193(){return this.item(193)||void 0}get 194(){return this.item(194)||void 0}get 195(){return this.item(195)||void 0}get 196(){return this.item(196)||void 0}get 197(){return this.item(197)||void 0}get 198(){return this.item(198)||void 0}get 199(){return this.item(199)||void 0}get 200(){return this.item(200)||void 0}get 201(){return this.item(201)||void 0}get 202(){return this.item(202)||void 0}get 203(){return this.item(203)||void 0}get 204(){return this.item(204)||void 0}get 205(){return this.item(205)||void 0}get 206(){return this.item(206)||void 0}get 207(){return this.item(207)||void 0}get 208(){return this.item(208)||void 0}get 209(){return this.item(209)||void 0}get 210(){return this.item(210)||void 0}get 211(){return this.item(211)||void 0}get 212(){return this.item(212)||void 0}get 213(){return this.item(213)||void 0}get 214(){return this.item(214)||void 0}get 215(){return this.item(215)||void 0}get 216(){return this.item(216)||void 0}get 217(){return this.item(217)||void 0}get 218(){return this.item(218)||void 0}get 219(){return this.item(219)||void 0}get 220(){return this.item(220)||void 0}get 221(){return this.item(221)||void 0}get 222(){return this.item(222)||void 0}get 223(){return this.item(223)||void 0}get 224(){return this.item(224)||void 0}get 225(){return this.item(225)||void 0}get 226(){return this.item(226)||void 0}get 227(){return this.item(227)||void 0}get 228(){return this.item(228)||void 0}get 229(){return this.item(229)||void 0}get 230(){return this.item(230)||void 0}get 231(){return this.item(231)||void 0}get 232(){return this.item(232)||void 0}get 233(){return this.item(233)||void 0}get 234(){return this.item(234)||void 0}get 235(){return this.item(235)||void 0}get 236(){return this.item(236)||void 0}get 237(){return this.item(237)||void 0}get 238(){return this.item(238)||void 0}get 239(){return this.item(239)||void 0}get 240(){return this.item(240)||void 0}get 241(){return this.item(241)||void 0}get 242(){return this.item(242)||void 0}get 243(){return this.item(243)||void 0}get 244(){return this.item(244)||void 0}get 245(){return this.item(245)||void 0}get 246(){return this.item(246)||void 0}get 247(){return this.item(247)||void 0}get 248(){return this.item(248)||void 0}get 249(){return this.item(249)||void 0}get 250(){return this.item(250)||void 0}get 251(){return this.item(251)||void 0}get 252(){return this.item(252)||void 0}get 253(){return this.item(253)||void 0}get 254(){return this.item(254)||void 0}get 255(){return this.item(255)||void 0}get 256(){return this.item(256)||void 0}get 257(){return this.item(257)||void 0}get 258(){return this.item(258)||void 0}get 259(){return this.item(259)||void 0}get 260(){return this.item(260)||void 0}get 261(){return this.item(261)||void 0}get 262(){return this.item(262)||void 0}get 263(){return this.item(263)||void 0}get 264(){return this.item(264)||void 0}get 265(){return this.item(265)||void 0}get 266(){return this.item(266)||void 0}get 267(){return this.item(267)||void 0}get 268(){return this.item(268)||void 0}get 269(){return this.item(269)||void 0}get 270(){return this.item(270)||void 0}get 271(){return this.item(271)||void 0}get 272(){return this.item(272)||void 0}get 273(){return this.item(273)||void 0}get 274(){return this.item(274)||void 0}get 275(){return this.item(275)||void 0}get 276(){return this.item(276)||void 0}get 277(){return this.item(277)||void 0}get 278(){return this.item(278)||void 0}get 279(){return this.item(279)||void 0}get 280(){return this.item(280)||void 0}get 281(){return this.item(281)||void 0}get 282(){return this.item(282)||void 0}get 283(){return this.item(283)||void 0}get 284(){return this.item(284)||void 0}get 285(){return this.item(285)||void 0}get 286(){return this.item(286)||void 0}get 287(){return this.item(287)||void 0}get 288(){return this.item(288)||void 0}get 289(){return this.item(289)||void 0}get 290(){return this.item(290)||void 0}get 291(){return this.item(291)||void 0}get 292(){return this.item(292)||void 0}get 293(){return this.item(293)||void 0}get 294(){return this.item(294)||void 0}get 295(){return this.item(295)||void 0}get 296(){return this.item(296)||void 0}get 297(){return this.item(297)||void 0}get 298(){return this.item(298)||void 0}get 299(){return this.item(299)||void 0}get 300(){return this.item(300)||void 0}get 301(){return this.item(301)||void 0}get 302(){return this.item(302)||void 0}get 303(){return this.item(303)||void 0}get 304(){return this.item(304)||void 0}get 305(){return this.item(305)||void 0}get 306(){return this.item(306)||void 0}get 307(){return this.item(307)||void 0}get 308(){return this.item(308)||void 0}get 309(){return this.item(309)||void 0}get 310(){return this.item(310)||void 0}get 311(){return this.item(311)||void 0}get 312(){return this.item(312)||void 0}get 313(){return this.item(313)||void 0}get 314(){return this.item(314)||void 0}get 315(){return this.item(315)||void 0}get 316(){return this.item(316)||void 0}get 317(){return this.item(317)||void 0}get 318(){return this.item(318)||void 0}get 319(){return this.item(319)||void 0}get 320(){return this.item(320)||void 0}get 321(){return this.item(321)||void 0}get 322(){return this.item(322)||void 0}get 323(){return this.item(323)||void 0}get 324(){return this.item(324)||void 0}get 325(){return this.item(325)||void 0}get 326(){return this.item(326)||void 0}get 327(){return this.item(327)||void 0}get 328(){return this.item(328)||void 0}get 329(){return this.item(329)||void 0}get 330(){return this.item(330)||void 0}get 331(){return this.item(331)||void 0}get 332(){return this.item(332)||void 0}get 333(){return this.item(333)||void 0}get 334(){return this.item(334)||void 0}get 335(){return this.item(335)||void 0}get 336(){return this.item(336)||void 0}get 337(){return this.item(337)||void 0}get 338(){return this.item(338)||void 0}get 339(){return this.item(339)||void 0}get 340(){return this.item(340)||void 0}get 341(){return this.item(341)||void 0}get 342(){return this.item(342)||void 0}get 343(){return this.item(343)||void 0}get 344(){return this.item(344)||void 0}get 345(){return this.item(345)||void 0}get 346(){return this.item(346)||void 0}get 347(){return this.item(347)||void 0}get 348(){return this.item(348)||void 0}get 349(){return this.item(349)||void 0}get 350(){return this.item(350)||void 0}get 351(){return this.item(351)||void 0}get 352(){return this.item(352)||void 0}get 353(){return this.item(353)||void 0}get 354(){return this.item(354)||void 0}get 355(){return this.item(355)||void 0}get 356(){return this.item(356)||void 0}get 357(){return this.item(357)||void 0}get 358(){return this.item(358)||void 0}get 359(){return this.item(359)||void 0}get 360(){return this.item(360)||void 0}get 361(){return this.item(361)||void 0}get 362(){return this.item(362)||void 0}get 363(){return this.item(363)||void 0}get 364(){return this.item(364)||void 0}get 365(){return this.item(365)||void 0}get 366(){return this.item(366)||void 0}get 367(){return this.item(367)||void 0}get 368(){return this.item(368)||void 0}get 369(){return this.item(369)||void 0}get 370(){return this.item(370)||void 0}get 371(){return this.item(371)||void 0}get 372(){return this.item(372)||void 0}get 373(){return this.item(373)||void 0}get 374(){return this.item(374)||void 0}get 375(){return this.item(375)||void 0}get 376(){return this.item(376)||void 0}get 377(){return this.item(377)||void 0}get 378(){return this.item(378)||void 0}get 379(){return this.item(379)||void 0}get 380(){return this.item(380)||void 0}get 381(){return this.item(381)||void 0}get 382(){return this.item(382)||void 0}get 383(){return this.item(383)||void 0}get 384(){return this.item(384)||void 0}get 385(){return this.item(385)||void 0}get 386(){return this.item(386)||void 0}get 387(){return this.item(387)||void 0}get 388(){return this.item(388)||void 0}get 389(){return this.item(389)||void 0}get 390(){return this.item(390)||void 0}get 391(){return this.item(391)||void 0}get 392(){return this.item(392)||void 0}get 393(){return this.item(393)||void 0}get accentColor(){return this.getPropertyValue("accent-color")}set accentColor(t){this.setProperty("accent-color",t);}get appRegion(){return this.getPropertyValue("app-region")}set appRegion(t){this.setProperty("app-region",t);}get alignContent(){return this.getPropertyValue("align-content")}set alignContent(t){this.setProperty("align-content",t);}get alignItems(){return this.getPropertyValue("align-items")}set alignItems(t){this.setProperty("align-items",t);}get alignSelf(){return this.getPropertyValue("align-self")}set alignSelf(t){this.setProperty("align-self",t);}get alignmentBaseline(){return this.getPropertyValue("alignment-baseline")}set alignmentBaseline(t){this.setProperty("alignment-baseline",t);}get all(){return this.getPropertyValue("all")}set all(t){this.setProperty("all",t);}get animation(){return this.getPropertyValue("animation")}set animation(t){this.setProperty("animation",t);}get animationDelay(){return this.getPropertyValue("animation-delay")}set animationDelay(t){this.setProperty("animation-delay",t);}get animationDirection(){return this.getPropertyValue("animation-direction")}set animationDirection(t){this.setProperty("animation-direction",t);}get animationDuration(){return this.getPropertyValue("animation-duration")}set animationDuration(t){this.setProperty("animation-duration",t);}get animationFillMode(){return this.getPropertyValue("animation-fill-mode")}set animationFillMode(t){this.setProperty("animation-fill-mode",t);}get animationIterationCount(){return this.getPropertyValue("animation-iteration-count")}set animationIterationCount(t){this.setProperty("animation-iteration-count",t);}get animationName(){return this.getPropertyValue("animation-name")}set animationName(t){this.setProperty("animation-name",t);}get animationPlayState(){return this.getPropertyValue("animation-play-state")}set animationPlayState(t){this.setProperty("animation-play-state",t);}get animationTimingFunction(){return this.getPropertyValue("animation-timing-function")}set animationTimingFunction(t){this.setProperty("animation-timing-function",t);}get appearance(){return this.getPropertyValue("appearance")}set appearance(t){this.setProperty("appearance",t);}get backdropFilter(){return this.getPropertyValue("backdrop-filter")}set backdropFilter(t){this.setProperty("backdrop-filter",t);}get backfaceVisibility(){return this.getPropertyValue("backface-visibility")}set backfaceVisibility(t){this.setProperty("backface-visibility",t);}get background(){return this.getPropertyValue("background")}set background(t){this.setProperty("background",t);}get backgroundAttachment(){return this.getPropertyValue("background-attachment")}set backgroundAttachment(t){this.setProperty("background-attachment",t);}get backgroundBlendMode(){return this.getPropertyValue("background-blend-mode")}set backgroundBlendMode(t){this.setProperty("background-blend-mode",t);}get backgroundClip(){return this.getPropertyValue("background-clip")}set backgroundClip(t){this.setProperty("background-clip",t);}get backgroundColor(){return this.getPropertyValue("background-color")}set backgroundColor(t){this.setProperty("background-color",t);}get backgroundImage(){return this.getPropertyValue("background-image")}set backgroundImage(t){this.setProperty("background-image",t);}get backgroundOrigin(){return this.getPropertyValue("background-origin")}set backgroundOrigin(t){this.setProperty("background-origin",t);}get backgroundPosition(){return this.getPropertyValue("background-position")}set backgroundPosition(t){this.setProperty("background-position",t);}get backgroundPositionX(){return this.getPropertyValue("background-position-x")}set backgroundPositionX(t){this.setProperty("background-position-x",t);}get backgroundPositionY(){return this.getPropertyValue("background-position-y")}set backgroundPositionY(t){this.setProperty("background-position-y",t);}get backgroundRepeat(){return this.getPropertyValue("background-repeat")}set backgroundRepeat(t){this.setProperty("background-repeat",t);}get backgroundRepeatX(){return this.getPropertyValue("background-repeat-x")}set backgroundRepeatX(t){this.setProperty("background-repeat-x",t);}get backgroundRepeatY(){return this.getPropertyValue("background-repeat-y")}set backgroundRepeatY(t){this.setProperty("background-repeat-y",t);}get backgroundSize(){return this.getPropertyValue("background-size")}set backgroundSize(t){this.setProperty("background-size",t);}get baselineShift(){return this.getPropertyValue("baseline-shift")}set baselineShift(t){this.setProperty("baseline-shift",t);}get blockSize(){return this.getPropertyValue("block-size")}set blockSize(t){this.setProperty("block-size",t);}get border(){return this.getPropertyValue("border")}set border(t){this.setProperty("border",t);}get borderBlockEnd(){return this.getPropertyValue("border-block-end")}set borderBlockEnd(t){this.setProperty("border-block-end",t);}get borderBlockEndColor(){return this.getPropertyValue("border-block-end-color")}set borderBlockEndColor(t){this.setProperty("border-block-end-color",t);}get borderBlockEndStyle(){return this.getPropertyValue("border-block-end-style")}set borderBlockEndStyle(t){this.setProperty("border-block-end-style",t);}get borderBlockEndWidth(){return this.getPropertyValue("border-block-end-width")}set borderBlockEndWidth(t){this.setProperty("border-block-end-width",t);}get borderBlockStart(){return this.getPropertyValue("border-block-start")}set borderBlockStart(t){this.setProperty("border-block-start",t);}get borderBlockStartColor(){return this.getPropertyValue("border-block-start-color")}set borderBlockStartColor(t){this.setProperty("border-block-start-color",t);}get borderBlockStartStyle(){return this.getPropertyValue("border-block-start-style")}set borderBlockStartStyle(t){this.setProperty("border-block-start-style",t);}get borderBlockStartWidth(){return this.getPropertyValue("border-block-start-width")}set borderBlockStartWidth(t){this.setProperty("border-block-start-width",t);}get borderBottom(){return this.getPropertyValue("border-bottom")}set borderBottom(t){this.setProperty("border-bottom",t);}get borderBottomColor(){return this.getPropertyValue("border-bottom-color")}set borderBottomColor(t){this.setProperty("border-bottom-color",t);}get borderBottomLeftRadius(){return this.getPropertyValue("border-bottom-left-radius")}set borderBottomLeftRadius(t){this.setProperty("border-bottom-left-radius",t);}get borderBottomRightRadius(){return this.getPropertyValue("border-bottom-right-radius")}set borderBottomRightRadius(t){this.setProperty("border-bottom-right-radius",t);}get borderBottomStyle(){return this.getPropertyValue("border-bottom-style")}set borderBottomStyle(t){this.setProperty("border-bottom-style",t);}get borderBottomWidth(){return this.getPropertyValue("border-bottom-width")}set borderBottomWidth(t){this.setProperty("border-bottom-width",t);}get borderCollapse(){return this.getPropertyValue("border-collapse")}set borderCollapse(t){this.setProperty("border-collapse",t);}get borderColor(){return this.getPropertyValue("border-color")}set borderColor(t){this.setProperty("border-color",t);}get borderImage(){return this.getPropertyValue("border-image")}set borderImage(t){this.setProperty("border-image",t);}get borderImageOutset(){return this.getPropertyValue("border-image-outset")}set borderImageOutset(t){this.setProperty("border-image-outset",t);}get borderImageRepeat(){return this.getPropertyValue("border-image-repeat")}set borderImageRepeat(t){this.setProperty("border-image-repeat",t);}get borderImageSlice(){return this.getPropertyValue("border-image-slice")}set borderImageSlice(t){this.setProperty("border-image-slice",t);}get borderImageSource(){return this.getPropertyValue("border-image-source")}set borderImageSource(t){this.setProperty("border-image-source",t);}get borderImageWidth(){return this.getPropertyValue("border-image-width")}set borderImageWidth(t){this.setProperty("border-image-width",t);}get borderInlineEnd(){return this.getPropertyValue("border-inline-end")}set borderInlineEnd(t){this.setProperty("border-inline-end",t);}get borderInlineEndColor(){return this.getPropertyValue("border-inline-end-color")}set borderInlineEndColor(t){this.setProperty("border-inline-end-color",t);}get borderInlineEndStyle(){return this.getPropertyValue("border-inline-end-style")}set borderInlineEndStyle(t){this.setProperty("border-inline-end-style",t);}get borderInlineEndWidth(){return this.getPropertyValue("border-inline-end-width")}set borderInlineEndWidth(t){this.setProperty("border-inline-end-width",t);}get borderInlineStart(){return this.getPropertyValue("border-inline-start")}set borderInlineStart(t){this.setProperty("border-inline-start",t);}get borderInlineStartColor(){return this.getPropertyValue("border-inline-start-color")}set borderInlineStartColor(t){this.setProperty("border-inline-start-color",t);}get borderInlineStartStyle(){return this.getPropertyValue("border-inline-start-style")}set borderInlineStartStyle(t){this.setProperty("border-inline-start-style",t);}get borderInlineStartWidth(){return this.getPropertyValue("border-inline-start-width")}set borderInlineStartWidth(t){this.setProperty("border-inline-start-width",t);}get borderLeft(){return this.getPropertyValue("border-left")}set borderLeft(t){this.setProperty("border-left",t);}get borderLeftColor(){return this.getPropertyValue("border-left-color")}set borderLeftColor(t){this.setProperty("border-left-color",t);}get borderLeftStyle(){return this.getPropertyValue("border-left-style")}set borderLeftStyle(t){this.setProperty("border-left-style",t);}get borderLeftWidth(){return this.getPropertyValue("border-left-width")}set borderLeftWidth(t){this.setProperty("border-left-width",t);}get borderRadius(){return this.getPropertyValue("border-radius")}set borderRadius(t){this.setProperty("border-radius",t);}get borderRight(){return this.getPropertyValue("border-right")}set borderRight(t){this.setProperty("border-right",t);}get borderRightColor(){return this.getPropertyValue("border-right-color")}set borderRightColor(t){this.setProperty("border-right-color",t);}get borderRightStyle(){return this.getPropertyValue("border-right-style")}set borderRightStyle(t){this.setProperty("border-right-style",t);}get borderRightWidth(){return this.getPropertyValue("border-right-width")}set borderRightWidth(t){this.setProperty("border-right-width",t);}get borderSpacing(){return this.getPropertyValue("border-spacing")}set borderSpacing(t){this.setProperty("border-spacing",t);}get borderStyle(){return this.getPropertyValue("border-style")}set borderStyle(t){this.setProperty("border-style",t);}get borderTop(){return this.getPropertyValue("border-top")}set borderTop(t){this.setProperty("border-top",t);}get borderTopColor(){return this.getPropertyValue("border-top-color")}set borderTopColor(t){this.setProperty("border-top-color",t);}get borderTopLeftRadius(){return this.getPropertyValue("border-top-left-radius")}set borderTopLeftRadius(t){this.setProperty("border-top-left-radius",t);}get borderTopRightRadius(){return this.getPropertyValue("border-top-right-radius")}set borderTopRightRadius(t){this.setProperty("border-top-right-radius",t);}get borderTopStyle(){return this.getPropertyValue("border-top-style")}set borderTopStyle(t){this.setProperty("border-top-style",t);}get borderTopWidth(){return this.getPropertyValue("border-top-width")}set borderTopWidth(t){this.setProperty("border-top-width",t);}get borderWidth(){return this.getPropertyValue("border-width")}set borderWidth(t){this.setProperty("border-width",t);}get borderEndEndRadius(){return this.getPropertyValue("border-end-end-radius")}set borderEndEndRadius(t){this.setProperty("border-end-end-radius",t);}get borderEndStartRadius(){return this.getPropertyValue("border-end-start-radius")}set borderEndStartRadius(t){this.setProperty("border-end-start-radius",t);}get borderStartEndRadius(){return this.getPropertyValue("border-start-end-radius")}set borderStartEndRadius(t){this.setProperty("border-start-end-radius",t);}get borderStartStartRadius(){return this.getPropertyValue("border-start-start-radius")}set borderStartStartRadius(t){this.setProperty("border-start-start-radius",t);}get bottom(){return this.getPropertyValue("bottom")}set bottom(t){this.setProperty("bottom",t);}get boxShadow(){return this.getPropertyValue("box-shadow")}set boxShadow(t){this.setProperty("box-shadow",t);}get boxSizing(){return this.getPropertyValue("box-sizing")}set boxSizing(t){this.setProperty("box-sizing",t);}get breakAfter(){return this.getPropertyValue("break-after")}set breakAfter(t){this.setProperty("break-after",t);}get breakBefore(){return this.getPropertyValue("break-before")}set breakBefore(t){this.setProperty("break-before",t);}get breakInside(){return this.getPropertyValue("break-inside")}set breakInside(t){this.setProperty("break-inside",t);}get bufferedRendering(){return this.getPropertyValue("buffered-rendering")}set bufferedRendering(t){this.setProperty("buffered-rendering",t);}get captionSide(){return this.getPropertyValue("caption-side")}set captionSide(t){this.setProperty("caption-side",t);}get caretColor(){return this.getPropertyValue("caret-color")}set caretColor(t){this.setProperty("caret-color",t);}get clear(){return this.getPropertyValue("clear")}set clear(t){this.setProperty("clear",t);}get clip(){return this.getPropertyValue("clip")}set clip(t){this.setProperty("clip",t);}get clipPath(){return this.getPropertyValue("clip-path")}set clipPath(t){this.setProperty("clip-path",t);}get clipRule(){return this.getPropertyValue("clip-rule")}set clipRule(t){this.setProperty("clip-rule",t);}get color(){return this.getPropertyValue("color")}set color(t){this.setProperty("color",t);}get colorInterpolation(){return this.getPropertyValue("color-interpolation")}set colorInterpolation(t){this.setProperty("color-interpolation",t);}get colorInterpolationFilters(){return this.getPropertyValue("color-interpolation-filters")}set colorInterpolationFilters(t){this.setProperty("color-interpolation-filters",t);}get colorRendering(){return this.getPropertyValue("color-rendering")}set colorRendering(t){this.setProperty("color-rendering",t);}get colorScheme(){return this.getPropertyValue("color-scheme")}set colorScheme(t){this.setProperty("color-scheme",t);}get columnCount(){return this.getPropertyValue("column-count")}set columnCount(t){this.setProperty("column-count",t);}get columnFill(){return this.getPropertyValue("column-fill")}set columnFill(t){this.setProperty("column-fill",t);}get columnGap(){return this.getPropertyValue("column-gap")}set columnGap(t){this.setProperty("column-gap",t);}get columnRule(){return this.getPropertyValue("column-rule")}set columnRule(t){this.setProperty("column-rule",t);}get columnRuleColor(){return this.getPropertyValue("column-rule-color")}set columnRuleColor(t){this.setProperty("column-rule-color",t);}get columnRuleStyle(){return this.getPropertyValue("column-rule-style")}set columnRuleStyle(t){this.setProperty("column-rule-style",t);}get columnRuleWidth(){return this.getPropertyValue("column-rule-width")}set columnRuleWidth(t){this.setProperty("column-rule-width",t);}get columnSpan(){return this.getPropertyValue("column-span")}set columnSpan(t){this.setProperty("column-span",t);}get columnWidth(){return this.getPropertyValue("column-width")}set columnWidth(t){this.setProperty("column-width",t);}get columns(){return this.getPropertyValue("columns")}set columns(t){this.setProperty("columns",t);}get contain(){return this.getPropertyValue("contain")}set contain(t){this.setProperty("contain",t);}get containIntrinsicSize(){return this.getPropertyValue("contain-intrinsic-size")}set containIntrinsicSize(t){this.setProperty("contain-intrinsic-size",t);}get content(){return this.getPropertyValue("content")}set content(t){this.setProperty("content",t);}get contentVisibility(){return this.getPropertyValue("content-visibility")}set contentVisibility(t){this.setProperty("content-visibility",t);}get counterIncrement(){return this.getPropertyValue("counter-increment")}set counterIncrement(t){this.setProperty("counter-increment",t);}get counterReset(){return this.getPropertyValue("counter-reset")}set counterReset(t){this.setProperty("counter-reset",t);}get counterSet(){return this.getPropertyValue("counter-set")}set counterSet(t){this.setProperty("counter-set",t);}get containIntrinsicBlockSize(){return this.getPropertyValue("contain-intrinsic-block-size")}set containIntrinsicBlockSize(t){this.setProperty("contain-intrinsic-block-size",t);}get containIntrinsicHeight(){return this.getPropertyValue("contain-intrinsic-height")}set containIntrinsicHeight(t){this.setProperty("contain-intrinsic-height",t);}get containIntrinsicInlineSize(){return this.getPropertyValue("contain-intrinsic-inline-size")}set containIntrinsicInlineSize(t){this.setProperty("contain-intrinsic-inline-size",t);}get containIntrinsicWidth(){return this.getPropertyValue("contain-intrinsic-width")}set containIntrinsicWidth(t){this.setProperty("contain-intrinsic-width",t);}get cssFloat(){return this.getPropertyValue("css-float")}set cssFloat(t){this.setProperty("css-float",t);}get cursor(){return this.getPropertyValue("cursor")}set cursor(t){this.setProperty("cursor",t);}get cx(){return this.getPropertyValue("cx")}set cx(t){this.setProperty("cx",t);}get cy(){return this.getPropertyValue("cy")}set cy(t){this.setProperty("cy",t);}get d(){return this.getPropertyValue("d")}set d(t){this.setProperty("d",t);}get direction(){return this.getPropertyValue("direction")}set direction(t){this.setProperty("direction",t);}get display(){return this.getPropertyValue("display")}set display(t){this.setProperty("display",t);}get dominantBaseline(){return this.getPropertyValue("dominant-baseline")}set dominantBaseline(t){this.setProperty("dominant-baseline",t);}get emptyCells(){return this.getPropertyValue("empty-cells")}set emptyCells(t){this.setProperty("empty-cells",t);}get fill(){return this.getPropertyValue("fill")}set fill(t){this.setProperty("fill",t);}get fillOpacity(){return this.getPropertyValue("fill-opacity")}set fillOpacity(t){this.setProperty("fill-opacity",t);}get fillRule(){return this.getPropertyValue("fill-rule")}set fillRule(t){this.setProperty("fill-rule",t);}get filter(){return this.getPropertyValue("filter")}set filter(t){this.setProperty("filter",t);}get flex(){return this.getPropertyValue("flex")}set flex(t){this.setProperty("flex",t);}get flexBasis(){return this.getPropertyValue("flex-basis")}set flexBasis(t){this.setProperty("flex-basis",t);}get flexDirection(){return this.getPropertyValue("flex-direction")}set flexDirection(t){this.setProperty("flex-direction",t);}get flexFlow(){return this.getPropertyValue("flex-flow")}set flexFlow(t){this.setProperty("flex-flow",t);}get flexGrow(){return this.getPropertyValue("flex-grow")}set flexGrow(t){this.setProperty("flex-grow",t);}get flexShrink(){return this.getPropertyValue("flex-shrink")}set flexShrink(t){this.setProperty("flex-shrink",t);}get flexWrap(){return this.getPropertyValue("flex-wrap")}set flexWrap(t){this.setProperty("flex-wrap",t);}get float(){return this.getPropertyValue("float")}set float(t){this.setProperty("float",t);}get floodColor(){return this.getPropertyValue("flood-color")}set floodColor(t){this.setProperty("flood-color",t);}get floodOpacity(){return this.getPropertyValue("flood-opacity")}set floodOpacity(t){this.setProperty("flood-opacity",t);}get font(){return this.getPropertyValue("font")}set font(t){this.setProperty("font",t);}get fontDisplay(){return this.getPropertyValue("font-display")}set fontDisplay(t){this.setProperty("font-display",t);}get fontFamily(){return this.getPropertyValue("font-family")}set fontFamily(t){this.setProperty("font-family",t);}get fontFeatureSettings(){return this.getPropertyValue("font-feature-settings")}set fontFeatureSettings(t){this.setProperty("font-feature-settings",t);}get fontKerning(){return this.getPropertyValue("font-kerning")}set fontKerning(t){this.setProperty("font-kerning",t);}get fontOpticalSizing(){return this.getPropertyValue("font-optical-sizing")}set fontOpticalSizing(t){this.setProperty("font-optical-sizing",t);}get fontSize(){return this.getPropertyValue("font-size")}set fontSize(t){this.setProperty("font-size",t);}get fontStretch(){return this.getPropertyValue("font-stretch")}set fontStretch(t){this.setProperty("font-stretch",t);}get fontStyle(){return this.getPropertyValue("font-style")}set fontStyle(t){this.setProperty("font-style",t);}get fontVariant(){return this.getPropertyValue("font-variant")}set fontVariant(t){this.setProperty("font-variant",t);}get fontVariantCaps(){return this.getPropertyValue("font-variant-caps")}set fontVariantCaps(t){this.setProperty("font-variant-caps",t);}get fontVariantEastAsian(){return this.getPropertyValue("font-variant-east-asian")}set fontVariantEastAsian(t){this.setProperty("font-variant-east-asian",t);}get fontVariantLigatures(){return this.getPropertyValue("font-variant-ligatures")}set fontVariantLigatures(t){this.setProperty("font-variant-ligatures",t);}get fontVariantNumeric(){return this.getPropertyValue("font-variant-numeric")}set fontVariantNumeric(t){this.setProperty("font-variant-numeric",t);}get fontVariationSettings(){return this.getPropertyValue("font-variation-settings")}set fontVariationSettings(t){this.setProperty("font-variation-settings",t);}get fontPalette(){return this.getPropertyValue("font-palette")}set fontPalette(t){this.setProperty("font-palette",t);}get fontSynthesisSmallCaps(){return this.getPropertyValue("font-synthesis-small-caps")}set fontSynthesisSmallCaps(t){this.setProperty("font-synthesis-small-caps",t);}get fontSynthesisStyle(){return this.getPropertyValue("font-synthesis-style")}set fontSynthesisStyle(t){this.setProperty("font-synthesis-style",t);}get fontSynthesisWeight(){return this.getPropertyValue("font-synthesis-weight")}set fontSynthesisWeight(t){this.setProperty("font-synthesis-weight",t);}get fontWeight(){return this.getPropertyValue("font-weight")}set fontWeight(t){this.setProperty("font-weight",t);}get gap(){return this.getPropertyValue("gap")}set gap(t){this.setProperty("gap",t);}get grid(){return this.getPropertyValue("grid")}set grid(t){this.setProperty("grid",t);}get gridArea(){return this.getPropertyValue("grid-area")}set gridArea(t){this.setProperty("grid-area",t);}get gridAutoColumns(){return this.getPropertyValue("grid-auto-columns")}set gridAutoColumns(t){this.setProperty("grid-auto-columns",t);}get gridAutoFlow(){return this.getPropertyValue("grid-auto-flow")}set gridAutoFlow(t){this.setProperty("grid-auto-flow",t);}get gridAutoRows(){return this.getPropertyValue("grid-auto-rows")}set gridAutoRows(t){this.setProperty("grid-auto-rows",t);}get gridColumn(){return this.getPropertyValue("grid-column")}set gridColumn(t){this.setProperty("grid-column",t);}get gridColumnEnd(){return this.getPropertyValue("grid-column-end")}set gridColumnEnd(t){this.setProperty("grid-column-end",t);}get gridColumnGap(){return this.getPropertyValue("grid-column-gap")}set gridColumnGap(t){this.setProperty("grid-column-gap",t);}get gridColumnStart(){return this.getPropertyValue("grid-column-start")}set gridColumnStart(t){this.setProperty("grid-column-start",t);}get gridGap(){return this.getPropertyValue("grid-gap")}set gridGap(t){this.setProperty("grid-gap",t);}get gridRow(){return this.getPropertyValue("grid-row")}set gridRow(t){this.setProperty("grid-row",t);}get gridRowEnd(){return this.getPropertyValue("grid-row-end")}set gridRowEnd(t){this.setProperty("grid-row-end",t);}get gridRowGap(){return this.getPropertyValue("grid-row-gap")}set gridRowGap(t){this.setProperty("grid-row-gap",t);}get gridRowStart(){return this.getPropertyValue("grid-row-start")}set gridRowStart(t){this.setProperty("grid-row-start",t);}get gridTemplate(){return this.getPropertyValue("grid-template")}set gridTemplate(t){this.setProperty("grid-template",t);}get gridTemplateAreas(){return this.getPropertyValue("grid-template-areas")}set gridTemplateAreas(t){this.setProperty("grid-template-areas",t);}get gridTemplateColumns(){return this.getPropertyValue("grid-template-columns")}set gridTemplateColumns(t){this.setProperty("grid-template-columns",t);}get gridTemplateRows(){return this.getPropertyValue("grid-template-rows")}set gridTemplateRows(t){this.setProperty("grid-template-rows",t);}get height(){return this.getPropertyValue("height")}set height(t){this.setProperty("height",t);}get hyphens(){return this.getPropertyValue("hyphens")}set hyphens(t){this.setProperty("hyphens",t);}get imageOrientation(){return this.getPropertyValue("image-orientation")}set imageOrientation(t){this.setProperty("image-orientation",t);}get imageRendering(){return this.getPropertyValue("image-rendering")}set imageRendering(t){this.setProperty("image-rendering",t);}get inherits(){return this.getPropertyValue("inherits")}set inherits(t){this.setProperty("inherits",t);}get initialValue(){return this.getPropertyValue("initial-value")}set initialValue(t){this.setProperty("initial-value",t);}get inlineSize(){return this.getPropertyValue("inline-size")}set inlineSize(t){this.setProperty("inline-size",t);}get isolation(){return this.getPropertyValue("isolation")}set isolation(t){this.setProperty("isolation",t);}get insetBlockEnd(){return this.getPropertyValue("inset-block-end")}set insetBlockEnd(t){this.setProperty("inset-block-end",t);}get insetBlockStart(){return this.getPropertyValue("inset-block-start")}set insetBlockStart(t){this.setProperty("inset-block-start",t);}get insetInlineEnd(){return this.getPropertyValue("inset-inline-end")}set insetInlineEnd(t){this.setProperty("inset-inline-end",t);}get insetInlineStart(){return this.getPropertyValue("inset-inline-start")}set insetInlineStart(t){this.setProperty("inset-inline-start",t);}get justifyContent(){return this.getPropertyValue("justify-content")}set justifyContent(t){this.setProperty("justify-content",t);}get justifyItems(){return this.getPropertyValue("justify-items")}set justifyItems(t){this.setProperty("justify-items",t);}get justifySelf(){return this.getPropertyValue("justify-self")}set justifySelf(t){this.setProperty("justify-self",t);}get left(){return this.getPropertyValue("left")}set left(t){this.setProperty("left",t);}get letterSpacing(){return this.getPropertyValue("letter-spacing")}set letterSpacing(t){this.setProperty("letter-spacing",t);}get lightingColor(){return this.getPropertyValue("lighting-color")}set lightingColor(t){this.setProperty("lighting-color",t);}get lineBreak(){return this.getPropertyValue("line-break")}set lineBreak(t){this.setProperty("line-break",t);}get lineHeight(){return this.getPropertyValue("line-height")}set lineHeight(t){this.setProperty("line-height",t);}get listStyle(){return this.getPropertyValue("list-style")}set listStyle(t){this.setProperty("list-style",t);}get listStyleImage(){return this.getPropertyValue("list-style-image")}set listStyleImage(t){this.setProperty("list-style-image",t);}get listStylePosition(){return this.getPropertyValue("list-style-position")}set listStylePosition(t){this.setProperty("list-style-position",t);}get listStyleType(){return this.getPropertyValue("list-style-type")}set listStyleType(t){this.setProperty("list-style-type",t);}get margin(){return this.getPropertyValue("margin")}set margin(t){this.setProperty("margin",t);}get marginBlockEnd(){return this.getPropertyValue("margin-block-end")}set marginBlockEnd(t){this.setProperty("margin-block-end",t);}get marginBlockStart(){return this.getPropertyValue("margin-block-start")}set marginBlockStart(t){this.setProperty("margin-block-start",t);}get marginBottom(){return this.getPropertyValue("margin-bottom")}set marginBottom(t){this.setProperty("margin-bottom",t);}get marginInlineEnd(){return this.getPropertyValue("margin-inline-end")}set marginInlineEnd(t){this.setProperty("margin-inline-end",t);}get marginInlineStart(){return this.getPropertyValue("margin-inline-start")}set marginInlineStart(t){this.setProperty("margin-inline-start",t);}get marginLeft(){return this.getPropertyValue("margin-left")}set marginLeft(t){this.setProperty("margin-left",t);}get marginRight(){return this.getPropertyValue("margin-right")}set marginRight(t){this.setProperty("margin-right",t);}get marginTop(){return this.getPropertyValue("margin-top")}set marginTop(t){this.setProperty("margin-top",t);}get marker(){return this.getPropertyValue("marker")}set marker(t){this.setProperty("marker",t);}get markerEnd(){return this.getPropertyValue("marker-end")}set markerEnd(t){this.setProperty("marker-end",t);}get markerMid(){return this.getPropertyValue("marker-mid")}set markerMid(t){this.setProperty("marker-mid",t);}get markerStart(){return this.getPropertyValue("marker-start")}set markerStart(t){this.setProperty("marker-start",t);}get mask(){return this.getPropertyValue("mask")}set mask(t){this.setProperty("mask",t);}get maskType(){return this.getPropertyValue("mask-type")}set maskType(t){this.setProperty("mask-type",t);}get maxBlockSize(){return this.getPropertyValue("max-block-size")}set maxBlockSize(t){this.setProperty("max-block-size",t);}get maxHeight(){return this.getPropertyValue("max-height")}set maxHeight(t){this.setProperty("max-height",t);}get maxInlineSize(){return this.getPropertyValue("max-inline-size")}set maxInlineSize(t){this.setProperty("max-inline-size",t);}get maxWidth(){return this.getPropertyValue("max-width")}set maxWidth(t){this.setProperty("max-width",t);}get maxZoom(){return this.getPropertyValue("max-zoom")}set maxZoom(t){this.setProperty("max-zoom",t);}get minBlockSize(){return this.getPropertyValue("min-block-size")}set minBlockSize(t){this.setProperty("min-block-size",t);}get minHeight(){return this.getPropertyValue("min-height")}set minHeight(t){this.setProperty("min-height",t);}get minInlineSize(){return this.getPropertyValue("min-inline-size")}set minInlineSize(t){this.setProperty("min-inline-size",t);}get minWidth(){return this.getPropertyValue("min-width")}set minWidth(t){this.setProperty("min-width",t);}get minZoom(){return this.getPropertyValue("min-zoom")}set minZoom(t){this.setProperty("min-zoom",t);}get mixBlendMode(){return this.getPropertyValue("mix-blend-mode")}set mixBlendMode(t){this.setProperty("mix-blend-mode",t);}get objectFit(){return this.getPropertyValue("object-fit")}set objectFit(t){this.setProperty("object-fit",t);}get objectPosition(){return this.getPropertyValue("object-position")}set objectPosition(t){this.setProperty("object-position",t);}get offset(){return this.getPropertyValue("offset")}set offset(t){this.setProperty("offset",t);}get offsetDistance(){return this.getPropertyValue("offset-distance")}set offsetDistance(t){this.setProperty("offset-distance",t);}get offsetPath(){return this.getPropertyValue("offset-path")}set offsetPath(t){this.setProperty("offset-path",t);}get offsetRotate(){return this.getPropertyValue("offset-rotate")}set offsetRotate(t){this.setProperty("offset-rotate",t);}get opacity(){return this.getPropertyValue("opacity")}set opacity(t){this.setProperty("opacity",t);}get order(){return this.getPropertyValue("order")}set order(t){this.setProperty("order",t);}get orientation(){return this.getPropertyValue("orientation")}set orientation(t){this.setProperty("orientation",t);}get orphans(){return this.getPropertyValue("orphans")}set orphans(t){this.setProperty("orphans",t);}get outline(){return this.getPropertyValue("outline")}set outline(t){this.setProperty("outline",t);}get outlineColor(){return this.getPropertyValue("outline-color")}set outlineColor(t){this.setProperty("outline-color",t);}get outlineOffset(){return this.getPropertyValue("outline-offset")}set outlineOffset(t){this.setProperty("outline-offset",t);}get outlineStyle(){return this.getPropertyValue("outline-style")}set outlineStyle(t){this.setProperty("outline-style",t);}get outlineWidth(){return this.getPropertyValue("outline-width")}set outlineWidth(t){this.setProperty("outline-width",t);}get overflow(){return this.getPropertyValue("overflow")}set overflow(t){this.setProperty("overflow",t);}get overflowAnchor(){return this.getPropertyValue("overflow-anchor")}set overflowAnchor(t){this.setProperty("overflow-anchor",t);}get overflowWrap(){return this.getPropertyValue("overflow-wrap")}set overflowWrap(t){this.setProperty("overflow-wrap",t);}get overflowX(){return this.getPropertyValue("overflow-x")}set overflowX(t){this.setProperty("overflow-x",t);}get overflowY(){return this.getPropertyValue("overflow-y")}set overflowY(t){this.setProperty("overflow-y",t);}get overscrollBehavior(){return this.getPropertyValue("overscroll-behavior")}set overscrollBehavior(t){this.setProperty("overscroll-behavior",t);}get overscrollBehaviorBlock(){return this.getPropertyValue("overscroll-behavior-block")}set overscrollBehaviorBlock(t){this.setProperty("overscroll-behavior-block",t);}get overscrollBehaviorInline(){return this.getPropertyValue("overscroll-behavior-inline")}set overscrollBehaviorInline(t){this.setProperty("overscroll-behavior-inline",t);}get overscrollBehaviorX(){return this.getPropertyValue("overscroll-behavior-x")}set overscrollBehaviorX(t){this.setProperty("overscroll-behavior-x",t);}get overscrollBehaviorY(){return this.getPropertyValue("overscroll-behavior-y")}set overscrollBehaviorY(t){this.setProperty("overscroll-behavior-y",t);}get overflowClipMargin(){return this.getPropertyValue("overflow-clip-margin")}set overflowClipMargin(t){this.setProperty("overflow-clip-margin",t);}get padding(){return this.getPropertyValue("padding")}set padding(t){this.setProperty("padding",t);}get paddingBlockEnd(){return this.getPropertyValue("padding-block-end")}set paddingBlockEnd(t){this.setProperty("padding-block-end",t);}get paddingBlockStart(){return this.getPropertyValue("padding-block-start")}set paddingBlockStart(t){this.setProperty("padding-block-start",t);}get paddingBottom(){return this.getPropertyValue("padding-bottom")}set paddingBottom(t){this.setProperty("padding-bottom",t);}get paddingInlineEnd(){return this.getPropertyValue("padding-inline-end")}set paddingInlineEnd(t){this.setProperty("padding-inline-end",t);}get paddingInlineStart(){return this.getPropertyValue("padding-inline-start")}set paddingInlineStart(t){this.setProperty("padding-inline-start",t);}get paddingLeft(){return this.getPropertyValue("padding-left")}set paddingLeft(t){this.setProperty("padding-left",t);}get paddingRight(){return this.getPropertyValue("padding-right")}set paddingRight(t){this.setProperty("padding-right",t);}get paddingTop(){return this.getPropertyValue("padding-top")}set paddingTop(t){this.setProperty("padding-top",t);}get page(){return this.getPropertyValue("page")}set page(t){this.setProperty("page",t);}get pageBreakAfter(){return this.getPropertyValue("page-break-after")}set pageBreakAfter(t){this.setProperty("page-break-after",t);}get pageBreakBefore(){return this.getPropertyValue("page-break-before")}set pageBreakBefore(t){this.setProperty("page-break-before",t);}get pageBreakInside(){return this.getPropertyValue("page-break-inside")}set pageBreakInside(t){this.setProperty("page-break-inside",t);}get pageOrientation(){return this.getPropertyValue("page-orientation")}set pageOrientation(t){this.setProperty("page-orientation",t);}get paintOrder(){return this.getPropertyValue("paint-order")}set paintOrder(t){this.setProperty("paint-order",t);}get perspective(){return this.getPropertyValue("perspective")}set perspective(t){this.setProperty("perspective",t);}get perspectiveOrigin(){return this.getPropertyValue("perspective-origin")}set perspectiveOrigin(t){this.setProperty("perspective-origin",t);}get placeContent(){return this.getPropertyValue("place-content")}set placeContent(t){this.setProperty("place-content",t);}get placeItems(){return this.getPropertyValue("place-items")}set placeItems(t){this.setProperty("place-items",t);}get placeSelf(){return this.getPropertyValue("place-self")}set placeSelf(t){this.setProperty("place-self",t);}get pointerEvents(){return this.getPropertyValue("pointer-events")}set pointerEvents(t){this.setProperty("pointer-events",t);}get position(){return this.getPropertyValue("position")}set position(t){this.setProperty("position",t);}get quotes(){return this.getPropertyValue("quotes")}set quotes(t){this.setProperty("quotes",t);}get r(){return this.getPropertyValue("r")}set r(t){this.setProperty("r",t);}get resize(){return this.getPropertyValue("resize")}set resize(t){this.setProperty("resize",t);}get right(){return this.getPropertyValue("right")}set right(t){this.setProperty("right",t);}get rowGap(){return this.getPropertyValue("row-gap")}set rowGap(t){this.setProperty("row-gap",t);}get rubyPosition(){return this.getPropertyValue("ruby-position")}set rubyPosition(t){this.setProperty("ruby-position",t);}get rx(){return this.getPropertyValue("rx")}set rx(t){this.setProperty("rx",t);}get ry(){return this.getPropertyValue("ry")}set ry(t){this.setProperty("ry",t);}get scrollBehavior(){return this.getPropertyValue("scroll-behavior")}set scrollBehavior(t){this.setProperty("scroll-behavior",t);}get scrollMargin(){return this.getPropertyValue("scroll-margin")}set scrollMargin(t){this.setProperty("scroll-margin",t);}get scrollMarginBlock(){return this.getPropertyValue("scroll-margin-block")}set scrollMarginBlock(t){this.setProperty("scroll-margin-block",t);}get scrollMarginBlockEnd(){return this.getPropertyValue("scroll-margin-block-end")}set scrollMarginBlockEnd(t){this.setProperty("scroll-margin-block-end",t);}get scrollMarginBlockStart(){return this.getPropertyValue("scroll-margin-block-start")}set scrollMarginBlockStart(t){this.setProperty("scroll-margin-block-start",t);}get scrollMarginBottom(){return this.getPropertyValue("scroll-margin-bottom")}set scrollMarginBottom(t){this.setProperty("scroll-margin-bottom",t);}get scrollMarginInline(){return this.getPropertyValue("scroll-margin-inline")}set scrollMarginInline(t){this.setProperty("scroll-margin-inline",t);}get scrollMarginInlineEnd(){return this.getPropertyValue("scroll-margin-inline-end")}set scrollMarginInlineEnd(t){this.setProperty("scroll-margin-inline-end",t);}get scrollMarginInlineStart(){return this.getPropertyValue("scroll-margin-inline-start")}set scrollMarginInlineStart(t){this.setProperty("scroll-margin-inline-start",t);}get scrollMarginLeft(){return this.getPropertyValue("scroll-margin-left")}set scrollMarginLeft(t){this.setProperty("scroll-margin-left",t);}get scrollMarginRight(){return this.getPropertyValue("scroll-margin-right")}set scrollMarginRight(t){this.setProperty("scroll-margin-right",t);}get scrollMarginTop(){return this.getPropertyValue("scroll-margin-top")}set scrollMarginTop(t){this.setProperty("scroll-margin-top",t);}get scrollPadding(){return this.getPropertyValue("scroll-padding")}set scrollPadding(t){this.setProperty("scroll-padding",t);}get scrollPaddingBlock(){return this.getPropertyValue("scroll-padding-block")}set scrollPaddingBlock(t){this.setProperty("scroll-padding-block",t);}get scrollPaddingBlockEnd(){return this.getPropertyValue("scroll-padding-block-end")}set scrollPaddingBlockEnd(t){this.setProperty("scroll-padding-block-end",t);}get scrollPaddingBlockStart(){return this.getPropertyValue("scroll-padding-block-start")}set scrollPaddingBlockStart(t){this.setProperty("scroll-padding-block-start",t);}get scrollPaddingBottom(){return this.getPropertyValue("scroll-padding-bottom")}set scrollPaddingBottom(t){this.setProperty("scroll-padding-bottom",t);}get scrollPaddingInline(){return this.getPropertyValue("scroll-padding-inline")}set scrollPaddingInline(t){this.setProperty("scroll-padding-inline",t);}get scrollPaddingInlineEnd(){return this.getPropertyValue("scroll-padding-inline-end")}set scrollPaddingInlineEnd(t){this.setProperty("scroll-padding-inline-end",t);}get scrollPaddingInlineStart(){return this.getPropertyValue("scroll-padding-inline-start")}set scrollPaddingInlineStart(t){this.setProperty("scroll-padding-inline-start",t);}get scrollPaddingLeft(){return this.getPropertyValue("scroll-padding-left")}set scrollPaddingLeft(t){this.setProperty("scroll-padding-left",t);}get scrollPaddingRight(){return this.getPropertyValue("scroll-padding-right")}set scrollPaddingRight(t){this.setProperty("scroll-padding-right",t);}get scrollPaddingTop(){return this.getPropertyValue("scroll-padding-top")}set scrollPaddingTop(t){this.setProperty("scroll-padding-top",t);}get scrollSnapAlign(){return this.getPropertyValue("scroll-snap-align")}set scrollSnapAlign(t){this.setProperty("scroll-snap-align",t);}get scrollSnapStop(){return this.getPropertyValue("scroll-snap-stop")}set scrollSnapStop(t){this.setProperty("scroll-snap-stop",t);}get scrollSnapType(){return this.getPropertyValue("scroll-snap-type")}set scrollSnapType(t){this.setProperty("scroll-snap-type",t);}get shapeImageThreshold(){return this.getPropertyValue("shape-image-threshold")}set shapeImageThreshold(t){this.setProperty("shape-image-threshold",t);}get shapeMargin(){return this.getPropertyValue("shape-margin")}set shapeMargin(t){this.setProperty("shape-margin",t);}get shapeOutside(){return this.getPropertyValue("shape-outside")}set shapeOutside(t){this.setProperty("shape-outside",t);}get shapeRendering(){return this.getPropertyValue("shape-rendering")}set shapeRendering(t){this.setProperty("shape-rendering",t);}get size(){return this.getPropertyValue("size")}set size(t){this.setProperty("size",t);}get speak(){return this.getPropertyValue("speak")}set speak(t){this.setProperty("speak",t);}get src(){return this.getPropertyValue("src")}set src(t){this.setProperty("src",t);}get stopColor(){return this.getPropertyValue("stop-color")}set stopColor(t){this.setProperty("stop-color",t);}get stopOpacity(){return this.getPropertyValue("stop-opacity")}set stopOpacity(t){this.setProperty("stop-opacity",t);}get stroke(){return this.getPropertyValue("stroke")}set stroke(t){this.setProperty("stroke",t);}get strokeDasharray(){return this.getPropertyValue("stroke-dasharray")}set strokeDasharray(t){this.setProperty("stroke-dasharray",t);}get strokeDashoffset(){return this.getPropertyValue("stroke-dashoffset")}set strokeDashoffset(t){this.setProperty("stroke-dashoffset",t);}get strokeLinecap(){return this.getPropertyValue("stroke-linecap")}set strokeLinecap(t){this.setProperty("stroke-linecap",t);}get strokeLinejoin(){return this.getPropertyValue("stroke-linejoin")}set strokeLinejoin(t){this.setProperty("stroke-linejoin",t);}get strokeMiterlimit(){return this.getPropertyValue("stroke-miterlimit")}set strokeMiterlimit(t){this.setProperty("stroke-miterlimit",t);}get strokeOpacity(){return this.getPropertyValue("stroke-opacity")}set strokeOpacity(t){this.setProperty("stroke-opacity",t);}get strokeWidth(){return this.getPropertyValue("stroke-width")}set strokeWidth(t){this.setProperty("stroke-width",t);}get syntax(){return this.getPropertyValue("syntax")}set syntax(t){this.setProperty("syntax",t);}get scrollbarGutter(){return this.getPropertyValue("scrollbar-gutter")}set scrollbarGutter(t){this.setProperty("scrollbar-gutter",t);}get tabSize(){return this.getPropertyValue("tab-size")}set tabSize(t){this.setProperty("tab-size",t);}get tableLayout(){return this.getPropertyValue("table-layout")}set tableLayout(t){this.setProperty("table-layout",t);}get textAlign(){return this.getPropertyValue("text-align")}set textAlign(t){this.setProperty("text-align",t);}get textAlignLast(){return this.getPropertyValue("text-align-last")}set textAlignLast(t){this.setProperty("text-align-last",t);}get textAnchor(){return this.getPropertyValue("text-anchor")}set textAnchor(t){this.setProperty("text-anchor",t);}get textCombineUpright(){return this.getPropertyValue("text-combine-upright")}set textCombineUpright(t){this.setProperty("text-combine-upright",t);}get textDecoration(){return this.getPropertyValue("text-decoration")}set textDecoration(t){this.setProperty("text-decoration",t);}get textDecorationColor(){return this.getPropertyValue("text-decoration-color")}set textDecorationColor(t){this.setProperty("text-decoration-color",t);}get textDecorationLine(){return this.getPropertyValue("text-decoration-line")}set textDecorationLine(t){this.setProperty("text-decoration-line",t);}get textDecorationSkipInk(){return this.getPropertyValue("text-decoration-skip-ink")}set textDecorationSkipInk(t){this.setProperty("text-decoration-skip-ink",t);}get textDecorationStyle(){return this.getPropertyValue("text-decoration-style")}set textDecorationStyle(t){this.setProperty("text-decoration-style",t);}get textIndent(){return this.getPropertyValue("text-indent")}set textIndent(t){this.setProperty("text-indent",t);}get textOrientation(){return this.getPropertyValue("text-orientation")}set textOrientation(t){this.setProperty("text-orientation",t);}get textOverflow(){return this.getPropertyValue("text-overflow")}set textOverflow(t){this.setProperty("text-overflow",t);}get textRendering(){return this.getPropertyValue("text-rendering")}set textRendering(t){this.setProperty("text-rendering",t);}get textShadow(){return this.getPropertyValue("text-shadow")}set textShadow(t){this.setProperty("text-shadow",t);}get textSizeAdjust(){return this.getPropertyValue("text-size-adjust")}set textSizeAdjust(t){this.setProperty("text-size-adjust",t);}get textTransform(){return this.getPropertyValue("text-transform")}set textTransform(t){this.setProperty("text-transform",t);}get textUnderlinePosition(){return this.getPropertyValue("text-underline-position")}set textUnderlinePosition(t){this.setProperty("text-underline-position",t);}get top(){return this.getPropertyValue("top")}set top(t){this.setProperty("top",t);}get touchAction(){return this.getPropertyValue("touch-action")}set touchAction(t){this.setProperty("touch-action",t);}get transform(){return this.getPropertyValue("transform")}set transform(t){this.setProperty("transform",t);}get transformBox(){return this.getPropertyValue("transform-box")}set transformBox(t){this.setProperty("transform-box",t);}get transformOrigin(){return this.getPropertyValue("transform-origin")}set transformOrigin(t){this.setProperty("transform-origin",t);}get transformStyle(){return this.getPropertyValue("transform-style")}set transformStyle(t){this.setProperty("transform-style",t);}get transition(){return this.getPropertyValue("transition")}set transition(t){this.setProperty("transition",t);}get transitionDelay(){return this.getPropertyValue("transition-delay")}set transitionDelay(t){this.setProperty("transition-delay",t);}get transitionDuration(){return this.getPropertyValue("transition-duration")}set transitionDuration(t){this.setProperty("transition-duration",t);}get transitionProperty(){return this.getPropertyValue("transition-property")}set transitionProperty(t){this.setProperty("transition-property",t);}get transitionTimingFunction(){return this.getPropertyValue("transition-timing-function")}set transitionTimingFunction(t){this.setProperty("transition-timing-function",t);}get textEmphasisColor(){return this.getPropertyValue("text-emphasis-color")}set textEmphasisColor(t){this.setProperty("text-emphasis-color",t);}get textEmphasisPosition(){return this.getPropertyValue("text-emphasis-position")}set textEmphasisPosition(t){this.setProperty("text-emphasis-position",t);}get textEmphasisStyle(){return this.getPropertyValue("text-emphasis-style")}set textEmphasisStyle(t){this.setProperty("text-emphasis-style",t);}get unicodeBidi(){return this.getPropertyValue("unicode-bidi")}set unicodeBidi(t){this.setProperty("unicode-bidi",t);}get unicodeRange(){return this.getPropertyValue("unicode-range")}set unicodeRange(t){this.setProperty("unicode-range",t);}get userSelect(){return this.getPropertyValue("user-select")}set userSelect(t){this.setProperty("user-select",t);}get userZoom(){return this.getPropertyValue("user-zoom")}set userZoom(t){this.setProperty("user-zoom",t);}get vectorEffect(){return this.getPropertyValue("vector-effect")}set vectorEffect(t){this.setProperty("vector-effect",t);}get verticalAlign(){return this.getPropertyValue("vertical-align")}set verticalAlign(t){this.setProperty("vertical-align",t);}get visibility(){return this.getPropertyValue("visibility")}set visibility(t){this.setProperty("visibility",t);}get whiteSpace(){return this.getPropertyValue("white-space")}set whiteSpace(t){this.setProperty("white-space",t);}get widows(){return this.getPropertyValue("widows")}set widows(t){this.setProperty("widows",t);}get width(){return this.getPropertyValue("width")}set width(t){this.setProperty("width",t);}get willChange(){return this.getPropertyValue("will-change")}set willChange(t){this.setProperty("will-change",t);}get wordBreak(){return this.getPropertyValue("word-break")}set wordBreak(t){this.setProperty("word-break",t);}get wordSpacing(){return this.getPropertyValue("word-spacing")}set wordSpacing(t){this.setProperty("word-spacing",t);}get wordWrap(){return this.getPropertyValue("word-wrap")}set wordWrap(t){this.setProperty("word-wrap",t);}get writingMode(){return this.getPropertyValue("writing-mode")}set writingMode(t){this.setProperty("writing-mode",t);}get x(){return this.getPropertyValue("x")}set x(t){this.setProperty("x",t);}get y(){return this.getPropertyValue("y")}set y(t){this.setProperty("y",t);}get zIndex(){return this.getPropertyValue("z-index")}set zIndex(t){this.setProperty("z-index",t);}get zoom(){return this.getPropertyValue("zoom")}set zoom(t){this.setProperty("zoom",t);}get containerType(){return this.getPropertyValue("container-type")}set containerType(t){this.setProperty("container-type",t);}get containerName(){return this.getPropertyValue("container-name")}set containerName(t){this.setProperty("container-name",t);}get aspectRatio(){return this.getPropertyValue("aspect-ratio")}set aspectRatio(t){this.setProperty("aspect-ratio",t);}get length(){return this.#o().size()}get cssText(){return this.#t&&this.#e?"":this.#o().toString()}set cssText(t){if(this.#e)throw new this[m].DOMException("Failed to execute 'cssText' on 'CSSStyleDeclaration': These styles are computed, and the properties are therefore read-only.",k.domException);this.#t?(this.#r.propertyManager=new Bi({cssText:t}),this.#r.attributeValue=t,this.#t.setAttribute("style",this.#r.propertyManager.toString())):this.#r.propertyManager=new Bi({cssText:t});}item(t){return this.#o().item(t)}setProperty(t,e,r){if(this.#e)throw new this[m].DOMException(`Failed to execute 'setProperty' on 'CSSStyleDeclaration': These styles are computed, and therefore the '${t}' property is read-only.`,k.domException);if(r!==""&&r!==void 0&&r!=="important")return;let n=String(e).trim(),i=this.#o();n?i.set(t,n,!!r):i.remove(t),this.#t&&(this.#r.attributeValue=i.toString(),this.#r.attributeValue?this.#t.setAttribute("style",this.#r.attributeValue):this.#t.removeAttribute("style"));}removeProperty(t){if(this.#e)throw new this[m].DOMException(`Failed to execute 'removeProperty' on 'CSSStyleDeclaration': These styles are computed, and therefore the '${t}' property is read-only.`,k.domException);let e=this.#o();e.remove(t),this.#t&&(this.#r.attributeValue=e.toString(),this.#r.attributeValue?this.#t.setAttribute("style",this.#r.attributeValue):this.#t.removeAttribute("style"));}getPropertyValue(t){return this.#o().get(t)?.value||""}getPropertyPriority(t){return this.#o().get(t)?.important?"important":""}#o(){let t=this.#t,e=this.#r;if(!t)return e.propertyManager||(e.propertyManager=new Bi),e.propertyManager;if(this.#e)return new pf(t).getComputedStyle();let r=t.getAttribute("style")||"";return e.attributeValue!==r&&(e.propertyManager=new Bi({cssText:r})),e.propertyManager}};g();g();var ai=class extends li{[en]="";get conditionText(){return this[en]}};var $a=class extends ai{[ie]=St.containerRule;[yo]="";get type(){return St.containerRule}get cssText(){let t="";for(let e of this[cr])t+=`
51
+ `+e.cssText;return t+=`
52
+ `,`@${this[yo]}container ${this[en]} {${t}}`}};g();var Ka=class extends wn{[qr]="";#t=null;get type(){return St.fontFaceRule}get cssText(){return `@font-face { ${this.style.cssText} }`}get style(){return this.#t||(this.#t=new bo(b,this[m]),this.#t.parentRule=this,this.#t.cssText=this[qr]),this.#t}};g();var Ms=class extends wn{[Ns]="";[qr]="";#t=null;get type(){return St.keyframeRule}get cssText(){return `${this[Ns]} { ${this.style.cssText} }`}get style(){return this.#t||(this.#t=new bo(b,this[m]),this.#t.parentRule=this,this.#t.cssText=this[qr]),this.#t}get keyText(){return this[Ns]}};g();var bD=/^(from|to|[0-9]{1,3}%)\s*{([^}]*)}$/,ja=class extends wn{[cr]=[];[ct]="";[yo]="";get type(){return St.keyframesRule}get cssText(){let t="";for(let e of this[cr])t+=`
53
+ `+e.cssText;return t+=`
54
+ `,`@${this[yo]}keyframes ${this[ct]} { ${t}}`}get cssRules(){return this[cr]}get name(){return this[ct]}get length(){return this[cr].length}appendRule(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'appendRule' on 'CSSKeyframesRule': 1 argument required, but only 0 present.");let e=String(t).trim().match(bD);if(!e)throw new this[m].DOMException("Invalid or unexpected token",k.syntaxError);let r=new Ms(b,this[m],this[ac]),n=e[1].trim();n==="from"?n="0%":n==="to"&&(n="100%"),r[Cl]=this,r[Ns]=n,r[qr]=e[2].trim(),this[cr].push(r);}deleteRule(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'deleteRule' on 'CSSKeyframesRule': 1 argument required, but only 0 present.");for(let e=0,r=this[cr].length;e<r;e++)if(this[cr][e][Ns]===t){this[cr].splice(e,1);return}}findRule(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'findRule' on 'CSSKeyframesRule': 1 argument required, but only 0 present.");for(let e=0,r=this[cr].length;e<r;e++)if(this[cr][e][Ns]===t)return this[cr][e];return null}};g();g();var sk=/\s*,\s*/,qa=class o{[kl];constructor(t,e){if(t!==b)throw new TypeError("Illegal constructor");this[kl]=e;let r=new De(this,[o]);return new Proxy(this,{get:(n,i)=>{if(i in n||typeof i=="symbol")return r.bind(i),n[i];let s=Number(i);if(!isNaN(s))return n[Q]()[s]},set(n,i,s){return r.bind(i),(i in n||typeof i=="symbol")&&(n[i]=s),true},deleteProperty(n,i){return (i in n||typeof i=="symbol")&&delete n[i],true},ownKeys(n){return Object.keys(n[Q]())},has(n,i){if(typeof i=="symbol")return false;if(i in n)return true;let s=Number(i);return !isNaN(s)&&s>=0&&s<n[Q]().length},defineProperty(n,i,s){return r.preventBinding(i),i in n?(Object.defineProperty(n,i,s),true):false},getOwnPropertyDescriptor(n,i){if(i in n||typeof i=="symbol")return;let s=Number(i),l=n[Q]();if(!isNaN(s)&&l[s])return {value:l[s],writable:false,enumerable:true,configurable:true}}})}get length(){return this[Q]().length}get mediaText(){return this[kl][en]}set mediaText(t){this[kl][en]=t===null?"":String(t).split(sk).join(", ");}item(t){return this[Q]()[Number(t)]||null}appendMedium(t){let e=this[Q]();e.indexOf(t)===-1&&(e.push(t),this[kl][en]=e.join(", "));}deleteMedium(t){let e=this[Q](),r=e.indexOf(t);r!==-1&&(e.splice(r,1),this[kl][en]=e.join(", "));}[Q](){return this[kl][en].trim()?this[kl][en].split(sk):[]}};var Ya=class extends ai{[Uw]=new qa(b,this);get type(){return St.mediaRule}get cssText(){let t="";for(let e of this[cr])t+=`
55
+ `+e.cssText;return t+=t?`
56
+ `:" ",`@media ${this.conditionText} {${t}}`}get media(){return this[Uw]}get conditionText(){return this.media.mediaText}};g();g();g();g();var Ml=class{#t;constructor(t){this.#t=t;}get value(){return this.#t}set value(t){this.#t=t;}};g();var Il=class{#t;#e;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this.#t=e,this.#e=r;}toString(){return this.#t.getPropertyValue(this.#e)}};var Qa=class{[Ie];constructor(t,e){if(t!==b)throw new TypeError("Illegal constructor");this[Ie]=e;}get size(){return this[Ie].length}[Symbol.iterator](){return this.entries()}entries(){let t=this[Ie].length,e=new Array(t);for(let r=0;r<t;r++){let n=this[Ie][r];e[r]=[n,[new Ml(this[Ie].getPropertyValue(n))]];}return e.values()}values(){let t=this[Ie].length,e=new Array(t);for(let r=0;r<t;r++){let n=this[Ie][r];e[r]=[new Ml(this[Ie].getPropertyValue(n))];}return e.values()}keys(){let t=this[Ie].length,e=new Array(t);for(let r=0;r<t;r++)e[r]=this[Ie][r];return e.values()}get(t){return new Il(b,this[Ie],t)}getAll(t){return [new Il(b,this[Ie],t)]}has(t){return !!this[Ie].getPropertyValue(t)}};var Ja=class extends Qa{append(t,e){this[Ie].setProperty(t,e);}clear(){this[Ie].cssText="";}delete(t){this[Ie].removeProperty(t);}set(t,e){this[Ie].setProperty(t,e);}};var Is=class extends li{[Zd]=null;[lc]="";[qr]="";#t=null;get type(){return St.styleRule}get cssText(){return `${this[lc]} { ${this.style.cssText} }`}get styleMap(){return this[Zd]||(this[Zd]=new Ja(b,this.style)),this[Zd]}get selectorText(){return this[lc]}get style(){return this.#t||(this.#t=new bo(b,this[m]),this.#t.parentRule=this,this.#t.cssText=this[qr]),this.#t}};g();var Xa=class extends ai{[ie]=St.supportsRule;[yo]="";get type(){return St.supportsRule}get cssText(){let t="";for(let e of this[cr])t+=`
57
+ `+e.cssText;return t+=`
58
+ `,`@${this[yo]}supports ${this.conditionText} {${t}}`}};g();g();var Zt={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg",mathML:"http://www.w3.org/1998/Math/MathML",xml:"http://www.w3.org/XML/1998/namespace",xlink:"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"};g();var lk=new Map,ak=new Map,gD=/[A-Z]/g,SD=/[a-z]/g,eo=class{static asciiLowerCase(t){let e=lk.get(t);if(e)return e;let r=t.replace(gD,n=>String.fromCharCode(n.charCodeAt(0)+32));return lk.set(t,r),r}static asciiUpperCase(t){let e=ak.get(t);if(e)return e;let r=t.replace(SD,n=>String.fromCharCode(n.charCodeAt(0)-32));return ak.set(t,r),r}};g();var uk="[-_.]|[0-9]|[a-z]|\xB7|[\xC0-\xD6]|[\xD8-\xF6]|[\xF8-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u203F-\u2040]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD]|[\u{10000}-\u{EFFFF}]",PD=new RegExp(`^[a-z](${uk})*-(${uk})*$`,"u"),AD=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"],Vp=class{static isValidCustomElementName(t){return PD.test(t)&&!AD.includes(t)}};var bc=class{[Ci]=new Map;[xp]=new Map;[Ti]=new Map;[Vy]=false;#t;constructor(t){if(!t)throw new TypeError("Illegal constructor");this.#t=t;}define(t,e,r){if(this[Vy])return;if(!Vp.isValidCustomElementName(t))throw new this.#t.DOMException(`Failed to execute 'define' on 'CustomElementRegistry': "${t}" is not a valid custom element name`);if(this[Ci].has(t))throw new this.#t.DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(this[xp].has(e))throw new this.#t.DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let n=eo.asciiUpperCase(t);e.prototype[m]=this.#t,e.prototype[N]=this.#t.document,e.prototype[st]=n,e.prototype[ht]=t,e.prototype[lt]=Zt.html;let i=new Set,s=e.observedAttributes;if(Array.isArray(s))for(let a of s)i.add(String(a).toLowerCase());this[Ci].set(t,{elementClass:e,extends:r&&r.extends?r.extends.toLowerCase():null,observedAttributes:i,lifecycleCallbacks:{connectedCallback:e.prototype.connectedCallback,disconnectedCallback:e.prototype.disconnectedCallback,attributeChangedCallback:e.prototype.attributeChangedCallback}}),this[xp].set(e,t);let l=this[Ti].get(t);if(l){this[Ti].delete(t);for(let a of l)a();}}get(t){return this[Ci].get(t)?.elementClass}upgrade(t){}whenDefined(t){return this[Vy]?Promise.reject(new this.#t.DOMException("Failed to execute 'whenDefined' on 'CustomElementRegistry': The custom element registry has been destroyed.")):Vp.isValidCustomElementName(t)?this.get(t)?Promise.resolve():new Promise(e=>{let r=this[Ti].get(t);r?r.push(e):this[Ti].set(t,[e]);}):Promise.reject(new this.#t.DOMException(`Failed to execute 'whenDefined' on 'CustomElementRegistry': Invalid custom element name: "${t}"`))}getName(t){return this[xp].get(t)||null}[It](){this[Vy]=true;for(let t of this[Ci].values())t.elementClass.prototype[m]=null,t.elementClass.prototype[N]=null,t.elementClass.prototype[st]=null,t.elementClass.prototype[ht]=null,t.elementClass.prototype[lt]=null;this[Ci]=new Map,this[xp]=new Map,this[Ti]=new Map;}};g();g();var Vi=class{kind;type;#t=null;constructor(t,e=""){this.kind=typeof t=="string"?"string":"file",this.type=this.kind==="string"?e:t.type,this.#t=t;}getAsFile(){return this.kind==="string"?null:this.#t}getAsString(t){this.kind==="file"&&t(""),t(this.#t);}};g();g();var rn=class extends we{lastModified;name;constructor(t,e,r){if(arguments.length<2)throw new TypeError("Failed to construct 'File': 2 arguments required, but only "+arguments.length+" present.");super(t,r),this.name=e,this.lastModified=r&&r.lastModified?r.lastModified:Date.now();}};var Za=class extends Array{add(t,e){if(t instanceof rn){this.push(new Vi(t));return}if(!e)throw new TypeError("Failed to execute 'add' on 'DataTransferItemList': parameter 1 is not of type 'File'.");this.push(new Vi(t,e));}remove(t){this.splice(t,1);}clear(){for(;this.length;)this.pop();}};var Hp=class{dropEffect="none";effectAllowed="none";items=new Za;get files(){let t=[];for(let e of this.items)if(e.kind==="file"){let r=e.getAsFile();r&&t.push(r);}return t}get types(){return this.items.map(t=>t.type)}clearData(){this.items.clear();}setData(t,e){for(let r=0,n=this.items.length;r<n;r++)if(this.items[r].type===t){this.items[r]=new Vi(e,t);return}this.items.add(e,t);}getData(t){let e=this.#t(t);for(let r=0,n=this.items.length;r<n;r++)if(this.#t(this.items[r].type)===e){let s="";return this.items[r].getAsString(l=>s=l),s}return ""}#t(t){let e=t.toLowerCase();return e==="text"?"text/plain":e==="url"?"text/uri-list":e}setDragImage(){throw new Error("Not implemented.")}};g();var Gp=class{identifier;target;clientX;clientY;screenX;screenY;pageX;pageY;radiusX;radiusY;rotationAngle;force;constructor(t){this.identifier=t.identifier,this.target=t.target,this.clientX=t.clientX??0,this.clientY=t.clientY??0,this.screenX=t.screenX??0,this.screenY=t.screenY??0,this.pageX=t.pageX??0,this.pageY=t.pageY??0,this.radiusX=t.radiusX??0,this.radiusY=t.radiusY??0,this.rotationAngle=t.rotationAngle??0,this.force=t.force??0;}};g();var Fr=class extends I{static NONE=0;static CAPTURING_PHASE=1;static AT_TARGET=2;static BUBBLING_PHASE=3;detail;layerX=0;layerY=0;pageX=0;pageY=0;view;constructor(t,e=null){super(t,e),this.detail=e?.detail??0,this.view=e?.view??null;}};g();var Up=class extends I{animationName;elapsedTime;pseudoElement;constructor(t,e=null){super(t,e),this.animationName=e?.animationName??"",this.elapsedTime=e?.elapsedTime??0,this.pseudoElement=e?.pseudoElement??"";}};g();var Wp=class extends I{clipboardData;constructor(t,e=null){super(t,e),this.clipboardData=e?.clipboardData??null;}};g();var zp=class extends I{[By];constructor(t,e=null){super(t,e),this[By]=e?.detail??null;}get detail(){return this[By]}initCustomEvent(t,e=false,r=false,n=null){this[ie]=t,this[Al]=e,this[as]=r,this[By]=n;}};g();var Rs=class extends Fr{message;filename;lineno;colno;error;constructor(t,e=null){super(t,e),this.message=e?.message??"",this.filename=e?.filename??"",this.lineno=e?.lineno??0,this.colno=e?.colno??0,this.error=e?.error??null;}};g();var Hi=class extends Fr{relatedTarget;constructor(t,e=null){super(t,e),this.relatedTarget=e?.relatedTarget??null;}};g();var tu=class extends I{newURL;oldURL;constructor(t,e=null){super(t,e),this.newURL=e?.newURL??"",this.oldURL=e?.oldURL??"";}};g();var _p=class extends Fr{data;dataTransfer;inputType;isComposing;constructor(t,e=null){super(t,e),this.data=e?.data??"",this.dataTransfer=e?.dataTransfer??null,this.inputType=e?.inputType??"",this.isComposing=e?.isComposing??false;}};g();var $p=class extends Fr{static DOM_KEY_LOCATION_STANDARD=0;static DOM_KEY_LOCATION_LEFT=1;static DOM_KEY_LOCATION_RIGHT=2;static DOM_KEY_LOCATION_NUMPAD=3;altKey;code;ctrlKey;isComposing;key;location;metaKey;repeat;shiftKey;keyCode;which;constructor(t,e=null){super(t,e),this.altKey=e?.altKey??false,this.code=e?.code??"",this.ctrlKey=e?.ctrlKey??false,this.isComposing=e?.isComposing??false,this.key=e?.key??"",this.location=e?.location??0,this.metaKey=e?.metaKey??false,this.repeat=e?.repeat??false,this.shiftKey=e?.shiftKey??false,this.keyCode=e?.keyCode??0,this.which=e?.which??e?.keyCode??0;}getModifierState(t){if(arguments.length<1)throw new TypeError("Failed to execute 'getModifierState' on 'KeyboardEvent': 1 argument required, but only 0 present.");switch(String(t).toLowerCase()){case "alt":case "altgraph":return this.altKey;case "control":return this.ctrlKey;case "meta":return this.metaKey;case "shift":return this.shiftKey;default:return false}}};g();var Kp=class extends I{data;origin;lastEventId;source;ports;constructor(t,e=null){super(t,e),this.data=e?.data??null,this.origin=e?.origin??"",this.lastEventId=e?.lastEventId??"",this.source=e?.source??null,this.ports=e?.ports??[];}};g();var pr=class extends Fr{altKey;button;buttons;clientX;clientY;ctrlKey;metaKey;movementX;movementY;offsetX;offsetY;region;relatedTarget;screenX;screenY;shiftKey;constructor(t,e=null){super(t,e),this.altKey=e?.altKey??false,this.button=e?.button??0,this.buttons=e?.buttons??0,this.clientX=e?.clientX??0,this.clientY=e?.clientY??0,this.ctrlKey=e?.ctrlKey??false,this.metaKey=e?.metaKey??false,this.movementX=e?.movementX??0,this.movementY=e?.movementY??0,this.offsetX=e?.offsetX??0,this.offsetY=e?.offsetY??0,this.region=e?.region??"",this.relatedTarget=e?.relatedTarget??null,this.screenX=e?.screenX??0,this.screenY=e?.screenY??0,this.shiftKey=e?.shiftKey??false;}};g();var eu=class extends pr{pointerId;width;height;pressure;tangentialPressure;tiltX;tiltY;twist;altitudeAngle;azimuthAngle;pointerType;isPrimary;coalescedEvents;predictedEvents;constructor(t,e=null){super(t,e),this.pointerId=e?.pointerId??0,this.width=e?.width??1,this.height=e?.height??1,this.pressure=e?.pressure??0,this.tangentialPressure=e?.tangentialPressure??0,this.tiltX=e?.tiltX??0,this.tiltY=e?.tiltY??0,this.twist=e?.twist??0,this.altitudeAngle=e?.altitudeAngle??0,this.azimuthAngle=e?.azimuthAngle??0,this.pointerType=e?.pointerType??"",this.isPrimary=e?.isPrimary??false,this.coalescedEvents=e?.coalescedEvents??[],this.predictedEvents=e?.predictedEvents??[];}getCoalescedEvents=()=>this.coalescedEvents;getPredictedEvents=()=>this.predictedEvents};g();var on=class extends I{lengthComputable;loaded;total;constructor(t,e=null){super(t),this.lengthComputable=e?.lengthComputable??false,this.loaded=e?.loaded??0,this.total=e?.total??0;}};g();var mf=class extends I{key;oldValue;newValue;url;storageArea;constructor(t,e=null){super(t),this.key=e?.key??null,this.oldValue=e?.oldValue??null,this.newValue=e?.newValue??null,this.url=e?.url??"",this.storageArea=e?.storageArea??null;}};g();var ru=class extends I{submitter;constructor(t,e=null){super(t,e),this.submitter=e?.submitter??null;}};g();var jp=class extends Fr{altKey;changedTouches;ctrlKey;metaKey;shiftKey;targetTouches;touches;constructor(t,e=null){super(t,e),this.altKey=e?.altKey??false,this.changedTouches=e?.changedTouches??[],this.ctrlKey=e?.ctrlKey??false,this.metaKey=e?.metaKey??false,this.shiftKey=e?.shiftKey??false,this.targetTouches=e?.targetTouches??[],this.touches=e?.touches??[];}};g();var qp=class extends Fr{static DOM_DELTA_PIXEL=0;static DOM_DELTA_LINE=1;static DOM_DELTA_PAGE=2;deltaX;deltaY;deltaZ;deltaMode;constructor(t,e=null){super(t,e),this.deltaX=e?.deltaX??0,this.deltaY=e?.deltaY??0,this.deltaZ=e?.deltaZ??0,this.deltaMode=e?.deltaMode??0;}};g();g();var xD=/^(about|blob|data):$/,ED=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],Gi=class{static prepareRequest(t,e){e.referrerPolicy||(e[Np]="strict-origin-when-cross-origin"),e.referrer&&e.referrer!=="no-referrer"?e[Yr]=this.getSentReferrer(t,e):e[Yr]="no-referrer";}static getInitialReferrer(t,e){if(e===""||e==="no-referrer"||e==="client")return e;if(e){let r=e instanceof He?e:new He(e,t.location.href);return r.origin===t.location.origin?r:"client"}return "client"}static getReferrerPolicyFromHeader(t){let e=t.get("Referrer-Policy");if(!e)return "";let r=e.split(/[,\s]+/),n="";for(let i of r)i&&ED.includes(i)&&(n=i);return n}static getSentReferrer(t,e){if(e.referrer==="about:client"&&t.origin==="null")return "no-referrer";let r=new He(e.url),n=e.referrer==="about:client"?new He(t.href):new He(e.referrer);if(xD.test(n.protocol))return "no-referrer";switch(n.username="",n.password="",n.hash="",e.referrerPolicy){case "no-referrer":return "no-referrer";case "origin":return new He(n.origin);case "unsafe-url":return n;case "strict-origin":return this.isURLPotentiallyTrustWorthy(n)&&!this.isURLPotentiallyTrustWorthy(r)?"no-referrer":new He(n.origin);case "strict-origin-when-cross-origin":return n.origin===r.origin?n:this.isURLPotentiallyTrustWorthy(n)&&!this.isURLPotentiallyTrustWorthy(r)?"no-referrer":new He(n.origin);case "same-origin":return n.origin===r.origin?n:"no-referrer";case "origin-when-cross-origin":return n.origin===r.origin?n:new He(n.origin);case "no-referrer-when-downgrade":return this.isURLPotentiallyTrustWorthy(n)&&!this.isURLPotentiallyTrustWorthy(r)?"no-referrer":n}return "no-referrer"}static isURLPotentiallyTrustWorthy(t){return /^about:(blank|srcdoc)$/.test(t.href)||t.protocol==="data:"||/^(blob|filesystem):$/.test(t.protocol)?true:this.isOriginPotentiallyTrustWorthy(t)}static isOriginPotentiallyTrustWorthy(t){if(/^(http|ws)s:$/.test(t.protocol))return true;let e=t.host.replace(/(^\[)|(]$)/g,""),r=isIP(e);return r===4&&/^127\./.test(e)||r===6&&/^(((0+:){7})|(::(0+:){0,6}))0*1$/.test(e)?true:t.host==="localhost"||t.host.endsWith(".localhost")?false:t.protocol==="file:"}};g();var gc=class{static parse(t){if(!/^data:/i.test(t))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');t=t.replace(/\r?\n/g,"");let e=t.indexOf(",");if(e===-1||e<=4)throw new TypeError("malformed data: URI");let r=t.substring(5,e).split(";"),n="",i=false,s=r[0]||"text/plain";for(let c=1;c<r.length;c++)r[c]==="base64"?i=true:r[c]&&(s+=`;${r[c]}`,r[c].indexOf("charset=")===0&&(n=r[c].substring(8)));!r[0]&&!n.length&&(s+=";charset=US-ASCII",n="US-ASCII");let l=i?"base64":"ascii",a=unescape(t.substring(e+1)),u=Buffer.from(a,l);return {type:s,charset:n,buffer:u}}};g();var Rn=class{static isCORS(t,e){return t=typeof t=="string"?new URL$1(t):t,e=typeof e=="string"?new URL$1(e):e,e.protocol==="about:"||e.protocol==="javascript:"?false:t.hostname!==e.hostname&&!t.hostname.endsWith(e.hostname)||t.protocol!==e.protocol}};g();g();g();g();var ui;(function(o){o[o.boundary=0]="boundary",o[o.headerStart=2]="headerStart",o[o.header=3]="header",o[o.data=5]="data";})(ui||(ui={}));var LS={lf:10,cr:13},hf=class{formData;boundary;boundaryIndex=0;state=ui.boundary;data={contentDisposition:null,value:[],contentType:null,header:""};constructor(t,e){let r=`--${e}`;this.boundary=new Uint8Array(r.length),this.formData=new t.FormData;for(let n=0,i=r.length;n<i;n++)this.boundary[n]=r.charCodeAt(n);}write(t){let e,r;for(let n=0,i=t.length;n<i;n++)switch(e=t[n],r=t[n+1],this.state){case ui.boundary:e===this.boundary[this.boundaryIndex]?this.boundaryIndex++:this.boundaryIndex=0,this.boundaryIndex===this.boundary.length&&(this.state=ui.headerStart,this.boundaryIndex=0);break;case ui.headerStart:r!==LS.cr&&r!==LS.lf&&(this.data.header="",this.state=t[n-2]===LS.lf?ui.data:ui.header);break;case ui.header:if(e===LS.cr){if(this.data.header){let s=this.data.header.split(":");if(s.length>1){let l=s[0].toLowerCase(),a=s[1].trim();switch(l){case "content-disposition":this.data.contentDisposition=this.getContentDisposition(a);break;case "content-type":this.data.contentType=a;break}}}this.state=ui.headerStart;}else this.data.header+=String.fromCharCode(e);break;case ui.data:e===this.boundary[this.boundaryIndex]?this.boundaryIndex++:this.boundaryIndex=0,this.boundaryIndex===this.boundary.length?(this.state=ui.headerStart,this.data.value.length&&(this.appendFormData(this.data.contentDisposition.name,Buffer.from(this.data.value.slice(0,-(this.boundary.length+1))),this.data.contentDisposition.filename,this.data.contentType),this.data.value=[],this.data.contentDisposition=null,this.data.contentType=null),this.boundaryIndex=0):this.data.value.push(e);break}}end(){return this.data.contentDisposition&&this.data.value.length&&this.appendFormData(this.data.contentDisposition.name,Buffer.from(this.data.value.slice(0,-2)),this.data.contentDisposition.filename,this.data.contentType),this.formData}appendFormData(t,e,r,n){e.length&&(r?this.formData.append(t,new rn([e],r,{type:n})):this.formData.append(t,e.toString()));}getContentDisposition(t){let e=/([a-z]+) *= *"([^"]+)"/g,r={},n;for(;n=e.exec(t);)r[n[1]]=n[2];return r}};g();var Rl=class{#t;#e=null;constructor(t){this.#t=t;}get readableStream(){return this.#e||(this.#e=this.#t()),this.#e}};var Dl=class{static async streamToFormData(t,e,r){if(!/multipart/i.test(r))throw new t.DOMException(`Failed to build FormData object: The "content-type" header isn't of type "multipart/form-data".`,k.invalidStateError);let n=e.body;if(!n)throw new t.DOMException("Failed to build FormData object: The response body is null.",k.invalidStateError);let i=r.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!i)throw new t.DOMException(`Failed to build FormData object: The "content-type" header doesn't contain any multipart boundary.`,k.invalidStateError);let s=n.getReader(),l=new hf(t,i[1]||i[2]),a=[],u,c=0,h=await s.read();for(;!h.done;){if(e[fr])throw e[fr];if(e[Re])throw new t.DOMException("Failed to read response body: The stream was aborted.",k.abortError);l.write(h.value),h=await s.read();}try{u=typeof a[0]=="string"?Buffer$1.from(a.join("")):Buffer$1.concat(a,c);}catch(f){throw new t.DOMException(`Could not create Buffer from response body. Error: ${f.message}.`,k.invalidStateError)}return {formData:l.end(),buffer:u}}static formDataToStream(t){let e="----HappyDOMFormDataBoundary"+Math.random().toString(36),r=[],n=`--${e}\r
59
+ Content-Disposition: form-data; name="`;for(let[s,l]of t)typeof l=="string"?r.push(Buffer$1.from(`${n}${this.escapeName(s)}"\r
60
+ \r
61
+ ${l.replace(/\r(?!\n)|(?<!\r)\n/g,`\r
62
+ `)}\r
63
+ `)):(r.push(Buffer$1.from(`${n}${this.escapeName(s)}"; filename="${this.escapeName(l.name,true)}"\r
64
+ Content-Type: ${l.type||"application/octet-stream"}\r
65
+ \r
66
+ `)),r.push(l[Mt]),r.push(Buffer$1.from(`\r
67
+ `)));r.push(Buffer$1.from(`--${e}--\r
68
+ `));let i=Buffer$1.concat(r);return {contentType:`multipart/form-data; boundary=${e}`,contentLength:i.length,buffer:i,stream:new Rl(()=>new ReadableStream({start(s){s.enqueue(i),s.close();}}))}}static escapeName(t,e=false){return (e?t:t.replace(/\r?\n|\r/g,`\r
69
+ `)).replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22")}};g();var ou=class{#t=[];constructor(t,e){if(!t)return;if(e){let n=t[jt]?t[jt]:t;if(e.form!==n)throw new this[m].DOMException("The specified element is not owned by this form element",k.notFoundError);if(!(e[st]==="INPUT"&&(e.type==="submit"||e.type==="image")||e[st]==="BUTTON"&&e.type==="submit"))throw new this[m].TypeError("The specified element is not a submit button")}let r=t[_o]();for(let n of r){let i=n.name;if(i)switch(n[st]){case "INPUT":if(n.disabled)break;switch(n.type){case "file":if(n[ri].length===0)this.append(i,new rn([],"",{type:"application/octet-stream"}));else for(let s of n[ri])this.append(i,s);break;case "checkbox":case "radio":n.checked&&this.append(i,n.value);break;case "submit":case "reset":case "button":n===e&&n.value&&this.append(i,n.value);break;default:this.append(i,n.value);break}break;case "BUTTON":n===e&&n.value&&this.append(i,n.value);break;case "TEXTAREA":case "SELECT":this.append(i,n.value);break}}}forEach(t,e){for(let r of this.#t)t.call(e,r.value,r.name,this);}append(t,e,r){if(r&&!(e instanceof we))throw new this[m].TypeError('Failed to execute "append" on "FormData": parameter 2 is not of type "Blob".');this.#t.push({name:t,value:this.#e(e,r)});}delete(t){let e=[];for(let r of this.#t)r.name!==t&&e.push(r);this.#t=e;}get(t){for(let e of this.#t)if(e.name===t)return e.value;return null}getAll(t){let e=[];for(let r of this.#t)r.name===t&&e.push(r.value);return e}has(t){for(let e of this.#t)if(e.name===t)return true;return false}set(t,e,r){for(let n of this.#t)if(n.name===t){n.value=this.#e(e,r);return}this.append(t,e);}*keys(){for(let t of this.#t)yield t.name;}*values(){for(let t of this.#t)yield t.value;}*entries(){for(let t of this.#t)yield [t.name,t.value];}*[Symbol.iterator](){for(let t of this.#t)yield [t.name,t.value];}#e(t,e){if(t instanceof rn){if(e){let r=new rn([],e,{type:t.type,lastModified:t.lastModified});return r[Mt]=t[Mt],r}return t}if(t instanceof we){let r=new rn([],"blob",{type:t.type});return r[Mt]=t[Mt],r}return String(t)}};var Sr=class{static getBodyStream(t){if(t==null)return {stream:null,buffer:null,contentType:null,contentLength:null};if(t instanceof URLSearchParams$1){let r=Buffer$1.from(t.toString());return {buffer:r,stream:this.getReadableStream(r),contentType:"application/x-www-form-urlencoded;charset=UTF-8",contentLength:r.length}}else if(t instanceof we){let r=t[Mt];return {buffer:r,stream:this.getReadableStream(r),contentType:t.type,contentLength:t.size}}else {if(Buffer$1.isBuffer(t))return {buffer:t,stream:this.getReadableStream(t),contentType:null,contentLength:t.length};if(t instanceof ArrayBuffer){let r=Buffer$1.from(t);return {buffer:r,stream:this.getReadableStream(r),contentType:null,contentLength:t.byteLength}}else if(ArrayBuffer.isView(t)){let r=Buffer$1.from(t.buffer,t.byteOffset,t.byteLength);return {buffer:r,stream:this.getReadableStream(r),contentType:null,contentLength:t.byteLength}}else {if(t instanceof ReadableStream)return {buffer:null,stream:new Rl(()=>t),contentType:null,contentLength:null};if(t instanceof ou)return Dl.formDataToStream(t)}}let e=Buffer$1.from(String(t));return {buffer:e,stream:this.getReadableStream(e),contentType:"text/plain;charset=UTF-8",contentLength:e.length}}static cloneBodyStream(t,e){if(e.bodyUsed)throw new t.DOMException("Failed to clone body stream of request: Request body is already used.",k.invalidStateError);if(e.body===null||e.body===void 0)return null;if(e[Mt])return this.getReadableStream(e[Mt]).readableStream;if(e.body[Cy]){let i=new Fl.PassThrough,s=new Fl.PassThrough;return e.body[Cy].pipe(i),e.body[Cy].pipe(s),e[Ri]=new Rl(()=>this.nodeToWebStream(i)),this.nodeToWebStream(s)}let[r,n]=e.body.tee();return e[Ri]=new Rl(()=>r),n}static async consumeBodyStream(t,e){let r=e.body;if(r===null||!(r instanceof ReadableStream))return Buffer$1.alloc(0);if(e[fr])throw e[fr];let n=r.getReader(),i=[],s=0;try{let l=await n.read();for(;!l.done;){if(e[fr])throw e[fr];if(e[Re])throw new t.DOMException("Failed to read response body: The stream was aborted.",k.abortError);let a=l.value;s+=a.length,i.push(a),l=await n.read();}}catch(l){throw l instanceof de?l:new t.DOMException(`Failed to read response body. Error: ${l.message}.`,k.encodingError)}try{return typeof i[0]=="string"?Buffer$1.from(i.join("")):Buffer$1.concat(i,s)}catch(l){throw new t.DOMException(`Could not create Buffer from response body. Error: ${l.message}.`,k.invalidStateError)}}static nodeToWebStream(t){let e=new ReadableStream({start(r){t.on("data",n=>{r.enqueue(n);}),t.on("end",()=>{r.close();}),t.on("error",n=>{r.error(n);});}});return e[Cy]=t,e}static getReadableStream(t){return new Rl(()=>new ReadableStream({start(e){e.enqueue(t),e.close();}}))}};g();var CD=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],kD=["error","manual","follow"],ND=["data:","http:","https:"],LD=["TRACE","TRACK","CONNECT"],MD=/^[A-Z]+$/,Dn=class{static validateMethod(t){if(!t.method||LD.includes(t.method))throw new de(`'${t.method||""}' is not a valid HTTP method.`,k.invalidStateError);if(!MD.test(t.method))throw new de(`'${t.method}' HTTP method is unsupported.`,k.invalidStateError)}static validateBody(t){if(t.body&&(t.method==="GET"||t.method==="HEAD"))throw new de("Request with GET/HEAD method cannot have body.",k.invalidStateError)}static validateURL(t){if(t.username!==""||t.password!=="")throw new de(`${t} is an url with embedded credentials.`,k.notSupportedError)}static validateReferrerPolicy(t){if(!CD.includes(t))throw new de(`Invalid referrer policy "${t}".`,k.syntaxError)}static validateRedirect(t){if(!kD.includes(t))throw new de(`Invalid redirect "${t}".`,k.syntaxError)}static validateSchema(t){if(!ND.includes(t[Ve].protocol))throw new de(`Failed to fetch from "${t.url}": URL scheme "${t[Ve].protocol.replace(/:$/,"")}" is not supported.`,k.notSupportedError)}};g();g();var On=class{static stringToCookie(t,e){let r=e.split(";"),n=r.shift();if(!n)return null;let i=n.indexOf("="),s=i!==-1?n.slice(0,i).trim():n.trim(),l=i!==-1?n.slice(i+1).trim():null,a=Object.assign({},CS,{key:s,value:l,originURL:t});if(!a.key)return null;for(let c of r){let h=c.indexOf("="),f=h!==-1?c.slice(0,h).trim().toLowerCase():c.trim().toLowerCase(),d=h!==-1?c.slice(h+1).trim():"";switch(f){case "expires":a.expires=new Date(d);break;case "max-age":a.expires=new Date(parseInt(d,10)*1e3+Date.now());break;case "domain":a.domain=d;break;case "path":a.path=d[0]==="/"?d:`/${d}`;break;case "httponly":a.httpOnly=true;break;case "secure":a.secure=true;break;case "samesite":switch(d.toLowerCase()){case "strict":a.sameSite=fo.strict;break;case "lax":a.sameSite=fo.lax;break;case "none":a.sameSite=fo.none;}break}}let u=a.key.toLowerCase();return u.startsWith("__secure-")&&!a.secure||u.startsWith("__host-")&&(!a.secure||a.path!=="/"||a.domain)?null:a}static cookiesToString(t){let e=[];for(let r of t)r.value!==null?e.push(`${r.key}=${r.value}`):e.push(r.key);return e.join("; ")}};var hk=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","content-transfer-encoding","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"],Ui=class{static removeForbiddenHeaders(t){for(let e of Object.keys(t[wr]))(hk.includes(e)||e.startsWith("proxy-")||e.startsWith("sec-"))&&delete t[wr][e];}static isHeaderForbidden(t){return hk.includes(t.toLowerCase())}static getRequestHeaders(t){let e=new t.window.Headers(t.baseHeaders);t.request.headers.forEach((s,l)=>{e.set(l,s);});let r=new URL$1(t.window.location.href),n=Rn.isCORS(r,t.request[Ve]);if(e.set("Accept-Encoding","gzip, deflate, br"),e.set("Connection","close"),e.has("User-Agent")||e.set("User-Agent",t.window.navigator.userAgent),t.request[Yr]instanceof URL$1&&e.set("Referer",t.request[Yr].href),t.request.credentials==="include"||t.request.credentials==="same-origin"&&!n){let s=t.browserFrame.page.context.cookieContainer.getCookies(t.request[Ve],false);s.length>0&&e.set("Cookie",On.cookiesToString(s));}else e.delete("Cookie"),e.delete("Cookie2");e.has("Accept")||e.set("Accept","*/*"),!e.has("Content-Length")&&t.request[ju]!==null&&e.set("Content-Length",String(t.request[ju])),!e.has("Content-Type")&&t.request[$e]&&e.set("Content-Type",t.request[$e]),n&&e.set("Origin",r.origin);let i={};for(let s of Object.values(e[wr]))i[s.name]=s.value.join(", ");return i}};var iu=class o{[vl];[Ri];[We]="cors";[fS];[wS];[Np];[xS];[Di]=false;[ES];[Re]=false;[fr]=null;[ju]=null;[$e]=null;[Yr]="client";[Ve];[vi];constructor(t,e){let r=this[m];if(!r)throw new TypeError("Failed to construct 'Request': 'Request' was constructed outside a Window context.");if(typeof t!="string"&&!t)throw new r.TypeError("Failed to construct 'Request': 1 argument required, only 0 present.");if(this[vl]=(e?.method||t.method||"GET").toUpperCase(),e?.mode)switch(e.mode){case "navigate":case "websocket":throw new r.DOMException(`Failed to construct 'Request': Cannot construct a Request with a RequestInit whose mode member is set as '${e.mode}'.`,k.securityError);case "same-origin":case "no-cors":case "cors":this[We]=e.mode;break;default:throw new r.DOMException(`Failed to construct 'Request': The provided value '${e.mode}' is not a valid enum value of type RequestMode.`,k.syntaxError)}else t instanceof o&&(this[We]=t.mode);let{stream:n,buffer:i,contentType:s,contentLength:l}=Sr.getBodyStream(t instanceof o&&(t[vi]||t.body)?t[vi]||Sr.cloneBodyStream(r,t):e?.body??null);if(this[vi]=i,this[Ri]=n,this[ES]=e?.credentials||t.credentials||"same-origin",this[fS]=new this[m].Headers(e?.headers||t.headers||{}),Ui.removeForbiddenHeaders(this.headers),l?this[ju]=l:!this.body&&(this.method==="POST"||this.method==="PUT")&&(this[ju]=0),s?(this.headers.has("Content-Type")||this.headers.set("Content-Type",s),this[$e]=s):t instanceof o&&t[$e]&&(this[$e]=t[$e]),this[wS]=e?.redirect||t.redirect||"follow",this[Np]=(e?.referrerPolicy||t.referrerPolicy||"").toLowerCase(),this[xS]=e?.signal||t.signal||new r.AbortSignal,this[Yr]=Gi.getInitialReferrer(r,e?.referrer!==null&&e?.referrer!==void 0?e?.referrer:t.referrer),t instanceof URL$1)this[Ve]=t;else try{t instanceof o&&t.url?this[Ve]=new URL$1(t.url,r.location.href):this[Ve]=new URL$1(t,r.location.href);}catch{throw new r.DOMException(`Failed to construct 'Request': Invalid URL "${t}" on document location '${r.location}'.${r.location.origin==="null"?" Relative URLs are not permitted on current document location.":""}`,k.notSupportedError)}Dn.validateMethod(this),Dn.validateBody(this),Dn.validateURL(this[Ve]),Dn.validateReferrerPolicy(this.referrerPolicy),Dn.validateRedirect(this.redirect);}get method(){return this[vl]}get body(){return this[Ri]?.readableStream||null}get mode(){return this[We]}get headers(){return this[fS]}get redirect(){return this[wS]}get referrerPolicy(){return this[Np]}get signal(){return this[xS]}get bodyUsed(){return this[Di]}get credentials(){return this[ES]}get referrer(){return !this[Yr]||this[Yr]==="no-referrer"?"":this[Yr]==="client"?"about:client":this[Yr].toString()}get url(){return this[Ve].href}get[Symbol.toStringTag](){return "Request"}async arrayBuffer(){let t=this[m];if(this[Di])throw new t.DOMException(`Body has already been used for "${this.url}".`,k.invalidStateError);let e=new rt(t).getAsyncTaskManager();this[Di]=true;let r=e.startTask(()=>{this[Re]=true,this.signal[Ei]();}),n;try{n=await Sr.consumeBodyStream(t,this);}catch(i){throw e.endTask(r),i}return e.endTask(r),n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength)}async blob(){let t=this.headers.get("Content-Type")||"",e=await this.arrayBuffer();return new we([e],{type:t})}async buffer(){let t=this[m];if(this[Di])throw new t.DOMException(`Body has already been used for "${this.url}".`,k.invalidStateError);let e=new rt(t).getAsyncTaskManager();this[Di]=true;let r=e.startTask(()=>{this[Re]=true,this.signal[Ei]();}),n;try{n=await Sr.consumeBodyStream(t,this);}catch(i){throw e.endTask(r),i}return e.endTask(r),n}async text(){let t=this[m];if(this[Di])throw new t.DOMException(`Body has already been used for "${this.url}".`,k.invalidStateError);let e=new rt(t).getAsyncTaskManager();this[Di]=true;let r=e.startTask(()=>{this[Re]=true,this.signal[Ei]();}),n;try{n=await Sr.consumeBodyStream(t,this);}catch(i){throw e.endTask(r),i}return e.endTask(r),new TextDecoder().decode(n)}async json(){let t=await this.text();return JSON.parse(t)}async formData(){let t=this[m],e=new rt(t).getAsyncTaskManager(),r=this.headers.get("Content-Type")??this[$e];if(this.body&&r&&/multipart/i.test(r)){if(this[Di])throw new t.DOMException(`Body has already been used for "${this.url}".`,k.invalidStateError);this[Di]=true;let n=e.startTask(()=>{this[Re]=true,this.signal[Ei]();}),i;try{i=(await Dl.streamToFormData(t,this,r)).formData;}catch(s){throw e.endTask(n),s}return e.endTask(n),i}if(r?.startsWith("application/x-www-form-urlencoded")){let n=new URLSearchParams(await this.text()),i=new t.FormData;for(let[s,l]of n)i.append(s,l);return i}throw new t.DOMException('Failed to construct FormData object: The "content-type" header is neither "application/x-www-form-urlencoded" nor "multipart/form-data".',k.invalidStateError)}clone(){return new this[m].Request(this)}};g();var DD=[301,302,303,307,308],nn=class{bodyUsed=false;redirected=false;type="basic";url="";status;statusText;ok;headers;[Xn]=null;[Mt]=null;[Mo]=null;[Re]=false;[fr]=null;[Ri]=null;constructor(t,e){if(!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);if(this.status=e?.status!==void 0?e.status:200,this.statusText=e?.statusText||"",this.ok=this.status>=200&&this.status<300,this.headers=new this[m].Headers(e?.headers),this.headers.delete("Set-Cookie"),this.headers.delete("Set-Cookie2"),t){let{stream:r,buffer:n,contentType:i}=Sr.getBodyStream(t);this[Ri]=r,n&&(this[Mt]=n),i&&!this.headers.has("Content-Type")&&this.headers.set("Content-Type",i);}}get[Symbol.toStringTag](){return "Response"}get body(){return this[Ri]?.readableStream||null}async arrayBuffer(){let t=this[m];if(this.bodyUsed)throw new t.DOMException(`Body has already been used for "${this.url}".`,k.invalidStateError);let e=new rt(t).getBrowserFrame();if(!e)return new ArrayBuffer(0);let r=e[Tt];this.bodyUsed=true;let n=this[Mt];if(!n){let i=r.startTask(()=>{this[Re]=true;});try{n=await Sr.consumeBodyStream(t,this);}catch(s){throw r.endTask(i),s}r.endTask(i);}return this.#t(n),n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength)}async blob(){let t=this.headers.get("Content-Type")||"",e=await this.arrayBuffer();return new we([e],{type:t})}async buffer(){let t=this[m];if(this.bodyUsed)throw new t.DOMException(`Body has already been used for "${this.url}".`,k.invalidStateError);let e=new rt(t).getBrowserFrame();if(!e)return Buffer$1.alloc(0);let r=e[Tt];this.bodyUsed=true;let n=this[Mt];if(!n){let i=r.startTask(()=>{this[Re]=true;});try{n=await Sr.consumeBodyStream(t,this);}catch(s){throw r.endTask(i),s}r.endTask(i);}return this.#t(n),n}async text(){let t=this[m];if(this.bodyUsed)throw new t.DOMException(`Body has already been used for "${this.url}".`,k.invalidStateError);let e=new rt(t).getBrowserFrame();if(!e)return "";let r=e[Tt];this.bodyUsed=true;let n=this[Mt];if(!n){let i=r.startTask(()=>{this[Re]=true;});try{n=await Sr.consumeBodyStream(t,this);}catch(s){throw r.endTask(i),s}r.endTask(i);}return this.#t(n),new TextDecoder().decode(n)}async json(){let t=await this.text();return JSON.parse(t)}async formData(){let t=this[m],e=new rt(t).getBrowserFrame();if(!e)return new t.FormData;let r=e[Tt],n=this.headers.get("Content-Type");if(n&&this.body&&/multipart/i.test(n)){if(this.bodyUsed)throw new t.DOMException(`Body has already been used for "${this.url}".`,k.invalidStateError);this.bodyUsed=true;let i=e[Tt].startTask(()=>{this[Re]=true;}),s,l;try{let a=await Dl.streamToFormData(t,this,n);s=a.formData,l=a.buffer;}catch(a){throw r.endTask(i),a}return this.#t(l),r.endTask(i),s}if(n?.startsWith("application/x-www-form-urlencoded")){let i=new URLSearchParams$1(await this.text()),s=new t.FormData;for(let[l,a]of i)s.append(l,a);return s}throw new t.DOMException('Failed to build FormData object: The "content-type" header is neither "application/x-www-form-urlencoded" nor "multipart/form-data".',k.invalidStateError)}clone(){let t=this[m],e=Sr.cloneBodyStream(t,this),r=new t.Response(e,{status:this.status,statusText:this.statusText,headers:this.headers});return r[Xn]=this[Xn],r[Mt]=this[Mt],r.ok=this.ok,r.redirected=this.redirected,r.type=this.type,r.url=this.url,r}#t(t){this[Mt]=t,this[Xn]?.response?.waitingForBody&&(this[Xn].response.body=t,this[Xn].response.waitingForBody=false);}static redirect(t,e=302){let r=this[m];if(!DD.includes(e))throw new r.DOMException("Failed to create redirect response: Invalid redirect status code.",k.invalidStateError);return new r.Response(null,{headers:{location:new He(t).toString()},status:e})}static error(){let t=new this[m].Response(null,{status:0,statusText:""});return t.type="error",t}static json(t,e){let r=this[m],n=JSON.stringify(t);if(n===void 0)throw new r.TypeError("data is not JSON serializable");let i=new r.Headers(e&&e.headers);return i.has("Content-Type")||i.set("Content-Type","application/json"),new r.Response(n,{status:200,...e,headers:i})}};g();var OD=[301,302,303,307,308],FD=20,Ol=class{static isRedirect(t){return OD.includes(t)}static isMaxRedirectsReached(t){return t>=FD}};g();var Pc=class{static parseResponseHeaders(t){let e=new t.browserFrame.window.Headers,r=null;for(let n of t.rawHeaders)if(!r)r=n;else {let i=r.toLowerCase();if(i==="set-cookie"||i==="set-cookie2"){let s=On.stringToCookie(t.requestURL,n);s&&t.browserFrame.page.context.cookieContainer.addCookies([s]);}else e.append(r,n);r=null;}return e}};g();var Yp={cert:`-----BEGIN CERTIFICATE-----
70
+ MIIDYzCCAkugAwIBAgIUJRKB/H66hpet1VfUlm0CiXqePA4wDQYJKoZIhvcNAQEL
71
+ BQAwQTELMAkGA1UEBhMCU0UxDjAMBgNVBAgMBVNrYW5lMQ4wDAYDVQQHDAVNYWxt
72
+ bzESMBAGA1UECgwJSGFwcHkgRE9NMB4XDTIyMTAxMTIyMDM0OVoXDTMyMTAwODIy
73
+ MDM0OVowQTELMAkGA1UEBhMCU0UxDjAMBgNVBAgMBVNrYW5lMQ4wDAYDVQQHDAVN
74
+ YWxtbzESMBAGA1UECgwJSGFwcHkgRE9NMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A
75
+ MIIBCgKCAQEAqerQSQEg/SxVxRiwlItithr5e5EMZo1nsqt/xOxagbmpW3IEmt0j
76
+ bpbH7iEF4DDEo7KAOwUCOwVWeFxRoag8lG2ax48wrgjlCna45XDn0Xeg1ARajL04
77
+ gs46HZ0VrzIloVGfln0zgt/Vum5BNqs9Oc5fQoBmoP3cAn3dn4ZVcP0AKthtcyPl
78
+ q2DuNRN0PV0D2RtMSiAy9l1Ko6N5x+sAeClDyOL+sTDLngZBVeZyOKt9Id15S8Zt
79
+ XtA6VMgHnnF3jChn7pag77rsd/y5iANAVNZYqRl+Eg7xaDcsvbgH46UBOrBcB39Q
80
+ tTh5Mtjoxep5e3ZDFG+kQ1HUE+iz5O5n0wIDAQABo1MwUTAdBgNVHQ4EFgQU69s9
81
+ YSobG/m2SN4L/7zTaF7iDbwwHwYDVR0jBBgwFoAU69s9YSobG/m2SN4L/7zTaF7i
82
+ DbwwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAi/WUXx2oal8L
83
+ YnPlIuKfh49n/K18wXSYG//oFYwxfVxqpYH8hUiXVm/GUcXCxS++hUkaKLqXmH9q
84
+ MKJiCrZr3vS+2nsBKopkICu/TLdROl0sAI9lByfnEbfSAzjxe1IWJdK8NdY0y5m5
85
+ 9pEr/URVIAp/CxrneyASb4q0Jg5To3FR7vYc+2X6wZn0MundKMg6Dp9/A37jiF3l
86
+ Tt/EJp299YZcsUzh+LnRuggRjnoOVu1aLcLFlaUiwZfy9m8mLG6B/mdW/qNzNMh9
87
+ Oqvg1zfGdpz/4D/2UUUBn6pq1vbsoAaF3OesoA3mfDcegDf/H9woJlpT0Wql+e68
88
+ Y3FblSokcA==
89
+ -----END CERTIFICATE-----`,key:`-----BEGIN PRIVATE KEY-----
90
+ MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCp6tBJASD9LFXF
91
+ GLCUi2K2Gvl7kQxmjWeyq3/E7FqBualbcgSa3SNulsfuIQXgMMSjsoA7BQI7BVZ4
92
+ XFGhqDyUbZrHjzCuCOUKdrjlcOfRd6DUBFqMvTiCzjodnRWvMiWhUZ+WfTOC39W6
93
+ bkE2qz05zl9CgGag/dwCfd2fhlVw/QAq2G1zI+WrYO41E3Q9XQPZG0xKIDL2XUqj
94
+ o3nH6wB4KUPI4v6xMMueBkFV5nI4q30h3XlLxm1e0DpUyAeecXeMKGfulqDvuux3
95
+ /LmIA0BU1lipGX4SDvFoNyy9uAfjpQE6sFwHf1C1OHky2OjF6nl7dkMUb6RDUdQT
96
+ 6LPk7mfTAgMBAAECggEAKkwTkTjAt4UjzK56tl+EMQTB+ep/hb/JgoaChci4Nva6
97
+ m9LkJpDJ0yuhlTuPNOGu8XjrxsVWas7HWarRf0Zb3i7yip6wZYI9Ub+AA015x4DZ
98
+ /i0fRU2NFbK0cM67qSL4jxG8gj+kZP3HPGNZxHwX/53JxMolwgmvjMc8NgvAlSFd
99
+ NnV9h4xtbhUh1NGS5zmP3iU2rwnE8JrIEzwy6axLom7nekAgkdcbAr0UoBs8gcgH
100
+ aYNhU4Gz3tGcZZ0IXAfT/bJIH1Ko8AGv4pssWc3BXcmmNdm/+kzvHIxEIV7Qegmo
101
+ XG1ZyZCyD/0b4/3e8ySDBEDqwR+HeyTW2isWG2agAQKBgQDp44aTwr3dkIXY30xv
102
+ FPfUOipg/B49dWnffYJ9MWc1FT9ijNPAngWSk0EIiEQIazICcUBI4Yji6/KeyqLJ
103
+ GdLpDi1CkKqtyh73mjELinYp3EUQgEa77aQogGa2+nMOVfu+O5CtloUrv/A18jX3
104
+ +VEyaEASK0fWmnSI0OdlxQHIAQKBgQC5+xOls2F3MlKASvWRLlnW1wHqlDTtVoYg
105
+ 5Nh8syZH4Ci2UH8tON3A5/7SWNM0t1cgV6Cw4zW8Z2spgIT/W0iYYrQ4hHL1xdCu
106
+ +CxL1km4Gy8Uwpsd+KdFahFqF/XTmLzW0HXLxWSK0fTwmdV0SFrKF3MXfTCU2AeZ
107
+ jJoMFb6P0wKBgQC3Odw6s0vkYAzLGhuZxfZkVvDOK5RRF0NKpttr0iEFL9EJFkPo
108
+ 2KKK8jr3QTDy229BBJGUxsJi6u6VwS8HlehpVQbV59kd7oKV/EBBx0XMg1fDlopT
109
+ PNbmN7i/zbIG4AsoOyebJZjL7kBzMn1e9vzKHWtcEHXlw/hZGja8vjooAQKBgAeg
110
+ xK2HLfg1mCyq5meN/yFQsENu0LzrT5UJzddPgcJw7zqLEqxIKNBAs7Ls8by3yFsL
111
+ PQwERa/0jfCl1M6kb9XQNpQa2pw6ANUsWKTDpUJn2wZ+9N3F1RaDwzMWyH5lRVmK
112
+ M0qoTfdjpSg5Jwgd75taWt4bxGJWeflSSv8z5R0BAoGAWL8c527AbeBvx2tOYKkD
113
+ 2TFranvANNcoMrbeviZSkkGvMNDP3p8b6juJwXOIeWNr8q4vFgCzLmq6d1/9gYm2
114
+ 3XJwwyD0LKlqzkBrrKU47qrnmMosUrIRlrAzd3HbShOptxc6Iz2apSaUDKGKXkaw
115
+ gl5OpEjeliU7Mus0BVS858g=
116
+ -----END PRIVATE KEY-----`};g();var yk="<html><head><title>Happy DOM Virtual Server - 404 Not Found</title></head><body><h1>Happy DOM Virtual Server - 404 Not Found</h1></body></html>",Wi=class{static getFilepath(t,e){let r=new rt(t).getSettings();if(!r||!r.fetch.virtualServers&&!r.module.resolveNodeModules)return null;if(r.fetch.virtualServers)for(let n of r.fetch.virtualServers){let i=null;if(typeof n.url=="string"){let s=new URL(n.url[n.url.length-1]==="/"?n.url.slice(0,-1):n.url,t.location.origin!=="null"?t.location.origin:void 0);e.startsWith(s.href)&&(i=s);}else if(n.url instanceof RegExp){let s=e.match(n.url);s&&(i=new URL(s[0][s[0].length-1]==="/"?s[0].slice(0,-1):s[0],t.location.origin));}if(i){let s=e.slice(i.href.length).split("?")[0].split("#")[0];return Rp.join(Rp.resolve(n.directory),s.replaceAll("/",Rp.sep))}}if(r.module.resolveNodeModules){let n=r.module.resolveNodeModules.url,i=new URL(n[n.length-1]==="/"?n.slice(0,-1):n,t.location.origin);if(e.startsWith(i.href)){let s=e.slice(i.href.length).split("?")[0].split("#")[0];return Rp.join(Rp.resolve(r.module.resolveNodeModules.directory),s.replaceAll("/",Rp.sep))}}return null}static getNotFoundResponse(t){return new t.Response(yk,{status:404,statusText:"Not Found",headers:{"Content-Type":"text/html"}})}static getNotFoundSyncResponse(t,e){return {status:404,statusText:"Not Found",ok:false,url:e,redirected:false,headers:new t.Headers({"Content-Type":"text/html"}),body:Buffer.from(yk),[Mo]:null}}};g();var Ds=class{static getKey(t){return JSON.stringify({url:t.url,destination:t.destination,mode:t.mode,credentialsMode:t.credentialsMode})}};var nx=Buffer$1.from(`0\r
117
+ \r
118
+ `),sn=class o{reject=null;resolve=null;listeners={onSignalAbort:this.onSignalAbort.bind(this)};isChunkedTransfer=false;isProperLastChunkReceived=false;previousChunk=null;nodeRequest=null;nodeResponse=null;response=null;responseHeaders=null;interceptor;requestHeaders;request;redirectCount=0;disableCache;disableSameOriginPolicy;disablePreload;#t;#e;#r=null;constructor(t){this.#t=t.browserFrame,this.#e=t.window,this.#r=t.unfilteredHeaders??null,this.request=typeof t.url=="string"||t.url instanceof URL$1?new t.window.Request(t.url,t.init):t.url,t.contentType&&(this.request[$e]=t.contentType),this.redirectCount=t.redirectCount??0,this.disableCache=t.disableCache??false,this.disableSameOriginPolicy=t.disableSameOriginPolicy??this.#t.page.context.browser.settings.fetch.disableSameOriginPolicy??false,this.interceptor=this.#t.page.context.browser.settings.fetch.interceptor,this.requestHeaders=this.#t.page.context.browser.settings.fetch.requestHeaders,this.disablePreload=t.disablePreload??false;}async send(){if(!(this.request instanceof iu)||!(this.request[Ve]instanceof URL$1))throw new this.#e.DOMException("Unknown request object. Request object must be an instance of Request.",k.invalidStateError);if(Gi.prepareRequest(new URL$1(this.#e.location.href),this.request),this.requestHeaders){for(let e of this.requestHeaders)if(!e.url||(typeof e.url=="string"?e.url.startsWith(this.request.url):this.request.url.match(e.url)))for(let[r,n]of Object.entries(e.headers))this.request.headers.set(r,n);}if(this.interceptor?.beforeAsyncRequest){let e=this.#t[Tt].startTask(),r=await this.interceptor.beforeAsyncRequest({request:this.request,window:this.#e});if(this.#t[Tt].endTask(e),r instanceof nn)return r}if(Dn.validateSchema(this.request),this.request.signal[Re])throw this.request.signal[Sn]!==void 0?this.request.signal[Sn]:new this.#e.DOMException("signal is aborted without reason",k.abortError);if(this.request[Ve].protocol==="data:"){let e=gc.parse(this.request.url);this.response=new this.#e.Response(e.buffer,{headers:{"Content-Type":e.type}});let r=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:this.#e,response:this.response,request:this.request}):void 0;return r instanceof nn?r:this.response}if(this.request[Ve].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.`,k.securityError);if(!this.disableCache){let e=await this.getCachedResponse();if(e)return e}if(!this.disablePreload){let e=Ds.getKey({url:this.request.url,destination:"fetch",mode:this.request.mode,credentialsMode:this.request.credentials}),r=this.#e.document[ho].get(e);if(r){if(this.#e.document[ho].delete(e),r.response)return r.response;let n=this.#t[Tt].startTask(),i=await r.onResponseAvailable();return this.#t[Tt].endTask(n),i}}let t=await this.getVirtualServerResponse();if(t)return t;if(!this.disableSameOriginPolicy&&!await this.compliesWithCrossOriginPolicy())throw this.#t.page.console.warn(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`),new this.#e.DOMException(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`,k.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===Va.stale){let r=new this.#e.Headers(t.request.headers);if(t.etag)r.set("If-None-Match",t.etag);else {if(!t.lastModified)return null;r.set("If-Modified-Since",new Date(t.lastModified).toUTCString());}let n=new o({browserFrame:this.#t,window:this.#e,url:this.request.url,init:{headers:r,method:t.request.method},disableCache:true,disableSameOriginPolicy:true});if(t.etag||!t.staleWhileRevalidate){let i=await n.send(),s=i.status!==304?await i.buffer():null;if(t=this.#t.page.context.responseCache.add(this.request,{...i,body:s,waitingForBody:false}),i.status!==304){let l=new this.#e.Response(s,{status:i.status,statusText:i.statusText,headers:i.headers});return l.url=i.url,l[Xn]=t,l}}else n.send().then(i=>{i.buffer().then(s=>{this.#t.page.context.responseCache.add(this.request,{...i,body:s,waitingForBody:false});});});}if(!t||t.response.waitingForBody)return null;let e=new this.#e.Response(t.response.body,{status:t.response.status,statusText:t.response.statusText,headers:t.response.headers});return e.url=t.response.url,e[Xn]=t,e}async getVirtualServerResponse(){let t=Wi.getFilepath(this.#e,this.request.url);if(!t)return null;let e=this.#t[Tt].startTask();if(this.request.method!=="GET"){this.#t.page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let u=Wi.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[Tt].endTask(e),c instanceof nn?c:u}let r;try{t=(await Ip.promises.stat(t)).isDirectory()?Rp.join(t,"index.html"):t,r=await Ip.promises.readFile(t);}catch{this.#t.page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let c=Wi.getNotFoundResponse(this.#e),h=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:this.#e,response:await c,request:this.request}):void 0;return this.#t[Tt].endTask(e),h instanceof nn?h:c}let n=new this.#e.ReadableStream({start:u=>{this.#e.queueMicrotask(()=>{u.enqueue(r),u.close();});}}),i=new this.#e.Response(n);i[Mt]=r,i[Mo]=t,i.url=this.request.url;let s=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:this.#e,response:await i,request:this.request}):void 0;this.#t[Tt].endTask(e);let l=s instanceof nn?s:i,a={...l,body:r,waitingForBody:false,virtual:true};return i[Xn]=this.#t.page.context.responseCache.add(this.request,a),l}async compliesWithCrossOriginPolicy(){if(this.disableSameOriginPolicy||!Rn.isCORS(this.#e.location.href,this.request[Ve]))return true;let t=this.#t.page.context.preflightResponseCache.get(this.request);if(t)return !(t.allowOrigin!=="*"&&t.allowOrigin!==this.#e.location.origin||t.allowMethods.length!==0&&!t.allowMethods.includes(this.request.method));let e=[];for(let[a]of this.request.headers)e.push(a.toLowerCase());let r=new this.#e.Headers({"Access-Control-Request-Method":this.request.method,Origin:this.#e.location.origin});e.length>0&&r.set("Access-Control-Request-Headers",e.slice().sort().join(","));let i=await new o({browserFrame:this.#t,window:this.#e,url:this.request.url,init:{method:"OPTIONS"},disableCache:true,disableSameOriginPolicy:true,unfilteredHeaders:r}).send();if(!i.ok)return false;let s=i.headers.get("Access-Control-Allow-Origin");if(!s||s!=="*"&&s!==this.#e.location.origin)return false;let l=[];if(i.headers.has("Access-Control-Allow-Methods")){let a=i.headers.get("Access-Control-Allow-Methods");if(a!=="*")for(let u of a.split(","))l.push(u.trim().toUpperCase());}return !(l.length!==0&&!l.includes(this.request.method))}sendRequest(){return new Promise((t,e)=>{let r=this.#t[Tt].startTask(()=>this.onAsyncTaskManagerAbort());if(this.resolve)throw new this.#e.Error("Fetch already sent.");this.resolve=async i=>{!this.disableCache&&i instanceof nn&&this.#t.page&&this.#t.page.context&&(i[Xn]=this.#t.page.context.responseCache.add(this.request,{...i,headers:this.responseHeaders,body:i[Mt],waitingForBody:!i[Mt]&&!!i.body}));let s=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:this.#e,response:await i,request:this.request}):void 0;this.#t[Tt].endTask(r);let l=s instanceof nn?s:i;l instanceof nn&&!l.ok&&this.#t.page.console.error(`${this.request.method} ${this.request.url} ${l.status} (${l.statusText})`),t(l);},this.reject=i=>{this.#t[Tt].endTask(r),e(i);},this.request.signal.addEventListener("abort",this.listeners.onSignalAbort);let n=(this.request[Ve].protocol==="https:"?VD:BD).request;this.nodeRequest=n(this.request[Ve].href,{method:this.request.method,headers:Ui.getRequestHeaders({browserFrame:this.#t,window:this.#e,request:this.request,baseHeaders:this.#r}),agent:false,rejectUnauthorized:!this.#t.page.context.browser.settings.fetch.disableStrictSSL,key:this.request[Ve].protocol==="https:"?Yp.key:void 0,cert:this.request[Ve].protocol==="https:"?Yp.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():Fl.pipeline(this.request.body,this.nodeRequest,i=>{i&&this.onError(i);});})}onSocket(t){let e=()=>{if(this.isChunkedTransfer&&!this.isProperLastChunkReceived){let n=new this.#e.DOMException("Premature close.",k.networkError);this.request[fr]=n,this.response&&(this.response[fr]=n,this.response.body&&!this.response.body.locked&&this.response.body.cancel(n));}},r=n=>{this.isProperLastChunkReceived=Buffer$1.compare(n.slice(-5),nx)===0,!this.isProperLastChunkReceived&&this.previousChunk&&(this.isProperLastChunkReceived=Buffer$1.compare(this.previousChunk.slice(-3),nx.slice(0,3))===0&&Buffer$1.compare(n.slice(-2),nx.slice(3))===0),this.previousChunk=n;};t.prependListener("close",e),t.on("data",r),this.nodeRequest.on("close",()=>{t.removeListener("close",e),t.removeListener("data",r);});}onSignalAbort(t){this.finalizeRequest(),this.abort(t.target?.reason);}onError(t){this.finalizeRequest(),this.#t.page.console.error(t),this.reject(new this.#e.DOMException(`Failed to execute "fetch()" on "Window" with URL "${this.request.url}": ${t.message}`,k.networkError));}onAsyncTaskManagerAbort(){let t=new this.#e.DOMException("The operation was aborted.",k.abortError);this.request[Re]=true,this.request[fr]=t,this.response&&(this.response[Re]=true,this.response[fr]=t),this.listeners.onSignalAbort&&this.request.signal.removeEventListener("abort",this.listeners.onSignalAbort),this.nodeRequest&&!this.nodeRequest.destroyed&&this.nodeRequest.destroy(t),this.nodeResponse&&!this.nodeResponse.destroyed&&this.nodeResponse.destroy(t),this.response&&this.response.body&&(this.response.body.locked||this.response.body.cancel(t));}onResponse(t){if(this.isChunkedTransfer=t.headers["transfer-encoding"]==="chunked"&&!t.headers["content-length"],this.nodeRequest.setTimeout(0),this.responseHeaders=Pc.parseResponseHeaders({browserFrame:this.#t,requestURL:this.request[Ve],rawHeaders:t.rawHeaders}),this.handleRedirectResponse(t,this.responseHeaders))return;t.once("end",()=>this.request.signal.removeEventListener("abort",this.listeners.onSignalAbort));let e=Fl.pipeline(t,new Fl.PassThrough,i=>{}),r={status:t.statusCode,statusText:t.statusMessage,headers:this.responseHeaders},n=this.responseHeaders.get("Content-Encoding");if(this.request.method==="HEAD"||n===null||t.statusCode===204||t.statusCode===304){this.response=new this.#e.Response(Sr.nodeToWebStream(e),r),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response);return}if(n==="gzip"||n==="x-gzip"){let i={flush:Jp.constants.Z_SYNC_FLUSH,finishFlush:Jp.constants.Z_SYNC_FLUSH};e=Fl.pipeline(e,Jp.createGunzip(i),s=>{}),this.response=new this.#e.Response(Sr.nodeToWebStream(e),r),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response);return}if(n==="deflate"||n==="x-deflate"){let i=Fl.pipeline(t,new Fl.PassThrough,s=>{});i.on("data",s=>{(s[0]&15)===8?e=Fl.pipeline(e,Jp.createInflate(),l=>{}):e=Fl.pipeline(e,Jp.createInflateRaw(),l=>{}),this.response=new this.#e.Response(Sr.nodeToWebStream(e),r),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response);}),i.on("end",()=>{this.response||(this.response=new this.#e.Response(Sr.nodeToWebStream(e),r),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response));});return}if(n==="br"){e=Fl.pipeline(e,Jp.createBrotliDecompress(),i=>{}),this.response=new this.#e.Response(Sr.nodeToWebStream(e),r),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response);return}this.response=new this.#e.Response(Sr.nodeToWebStream(e),r),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response);}handleRedirectResponse(t,e){if(!Ol.isRedirect(t.statusCode))return false;switch(this.request.redirect){case "error":return this.finalizeRequest(),this.reject(new this.#e.DOMException(`URI requested responds with a redirect, redirect mode is set to "error": ${this.request.url}`,k.abortError)),true;case "manual":return false;case "follow":let r=e.get("Location"),n=t.statusCode===303||(t.statusCode===301||t.statusCode===302)&&this.request.method==="POST",i=null;if(r!==null)try{i=new URL$1(r,this.request.url);}catch{return this.finalizeRequest(),this.reject(new this.#e.DOMException(`URI requested responds with an invalid redirect URL: ${r}`,k.uriMismatchError)),true}if(i===null)return false;if(Ol.isMaxRedirectsReached(this.redirectCount))return this.finalizeRequest(),this.reject(new this.#e.DOMException(`Maximum redirects reached at: ${this.request.url}`,k.networkError)),true;let s=new this.#e.Headers(this.request.headers),l={method:this.request.method,signal:this.request.signal,referrer:this.request.referrer,referrerPolicy:this.request.referrerPolicy,credentials:this.request.credentials,headers:s,body:this.request[vi]};if((this.request.credentials==="omit"||this.request.credentials==="same-origin"&&Rn.isCORS(this.#e.location.href,i))&&(s.delete("cookie"),s.delete("cookie2")),this.request.signal[Re])return this.abort(this.request.signal[Sn]),true;n&&(l.method="GET",l.body=void 0,s.delete("Content-Length"),s.delete("Content-Type"));let a=Gi.getReferrerPolicyFromHeader(s);a&&(l.referrerPolicy=a);let u=new o({browserFrame:this.#t,window:this.#e,url:i,init:l,redirectCount:this.redirectCount+1,disableSameOriginPolicy:this.disableSameOriginPolicy,contentType:n?null:this.request[$e]});return this.finalizeRequest(),u.send().then(c=>this.resolve(c)).catch(c=>this.reject(c)),true;default:return this.finalizeRequest(),this.reject(new this.#e.DOMException(`Redirect option '${this.request.redirect}' is not a valid value of TRequestRedirect`)),true}}finalizeRequest(){this.request.signal.removeEventListener("abort",this.listeners.onSignalAbort),this.nodeRequest?.destroy();}abort(t){let e=new this.#e.DOMException("The operation was aborted."+(t?" "+t.toString():""),k.abortError);this.request[Re]=true,this.request[fr]=e,this.response&&(this.response[Re]=true,this.response[fr]=e),this.nodeRequest&&!this.nodeRequest.destroyed&&this.nodeRequest.destroy(e),this.nodeResponse&&!this.nodeResponse.destroyed&&this.nodeResponse.destroy(e),this.response&&this.response.body&&(this.response.body.locked||this.response.body.cancel(e)),this.reject&&this.reject(t!==void 0?t:e);}};g();g();var ix;(function(o){o.auto="auto",o.manual="manual";})(ix||(ix={}));var ci=ix;g();var Io=class{static getRelativeURL(t,e){if(e=e?String(e):"about:blank",e.startsWith("about:")||e.startsWith("javascript:"))return new URL$1(e);try{return new URL$1(e,t.window[Lo].href)}catch{return new URL$1("about:blank")}}};var Ac=class{#t;#e;constructor(t,e){if(!t)throw new TypeError("Illegal constructor");this.#t=t,this.#e=e;}get length(){return this.#t?.[rr].items.length||0}get state(){return this.#t?.[rr].currentItem.state||null}get scrollRestoration(){return this.#t?.[rr].currentItem.scrollRestoration||ci.auto}set scrollRestoration(t){switch(t){case ci.auto:case ci.manual:let e=this.#t?.[rr].currentItem;e&&(e.scrollRestoration=t);break}}back(){this.#e.closed||this.#t?.goBack();}forward(){this.#e.closed||this.#t?.goForward();}go(t){this.#e.closed||this.#t?.goSteps(t);}pushState(t,e,r){if(!this.#t||this.#e.closed)return;let n=this.#t?.[rr];if(!n)return;if(arguments.length<2)throw new this.#e.TypeError(`Failed to execute 'pushState' on 'History': 2 arguments required, but only ${arguments.length} present.`);let i=this.#e[Lo],s=r?Io.getRelativeURL(this.#t,r):i;if(r&&s.origin!==i.origin)throw new this.#e.DOMException(`Failed to execute 'pushState' on 'History': A history state object with URL '${r.toString()}' cannot be created in a document with origin '${i.origin}' and URL '${i.href}'.`,k.securityError);n.currentItem.popState=true,n.push({title:this.#e.document.title,href:s.href,state:t,popState:true,scrollRestoration:n.currentItem.scrollRestoration,method:n.currentItem.method||"GET",formData:n.currentItem.formData||null}),i[uo](this.#t,n.currentItem.href);}replaceState(t,e,r){if(!this.#t||this.#e.closed)return;let n=this.#t?.[rr];if(!n)return;if(arguments.length<2)throw new this.#e.TypeError(`Failed to execute 'pushState' on 'History': 2 arguments required, but only ${arguments.length} present.`);let i=this.#e[Lo],s=r?Io.getRelativeURL(this.#t,r):i;if(r&&s.origin!==i.origin)throw new this.#e.DOMException(`Failed to execute 'pushState' on 'History': A history state object with URL '${r.toString()}' cannot be created in a document with origin '${i.origin}' and URL '${i.href}'.`,k.securityError);n.replace({title:this.#e.document.title,href:s.href,state:t,popState:n.currentItem.popState,scrollRestoration:n.currentItem.scrollRestoration,method:n.currentItem.method,formData:n.currentItem.formData}),r&&i[uo](this.#t,n.currentItem.href);}[It](){this.#t=null;}};g();var Xp=class{#t;#e;constructor(t,e){this.#t=t,this.#e=e||{};}observe(t){}disconnect(){}unobserve(t){}takeRecords(){return []}};g();var Zp=class{boundingClientRect=null;intersectionRatio=0;intersectionRect=null;isIntersecting=false;rootBounds=null;target=null;time=0;constructor(t){Object.assign(this,t);}};g();var wc=class{[Symbol.toStringTag]="Location";#t;#e;#r=null;#o=[];constructor(t,e){if(!t)throw new TypeError("Illegal constructor");this.#t=t,this.#e=new URL(e);}get hash(){return this.#e.hash}set hash(t){let e=this.#t?.[rr];if(!e||!this.#t)return;let r=new URL(this.#e.href),n=this.#e.hash;r.hash=t,r.hash!==n&&(e.currentItem.popState=true,e.push({title:"",href:r.href,state:e.currentItem.state,popState:true,scrollRestoration:ci.manual,method:e.currentItem.method,formData:e.currentItem.formData||null}),this[uo](this.#t,r.href));}get host(){return this.#e.host}set host(t){let e=new URL(this.#e.href);e.host=t,this.href=e.href;}get hostname(){return this.#e.hostname}set hostname(t){let e=new URL(this.#e.href);e.hostname=t,this.href=e.href;}get href(){return this.#e.href}set href(t){this.#t&&this.#t.goto(t).catch(e=>{if(this.#t?.page?.console)this.#t.page.console.error(e);else throw e});}get origin(){return this.#e.origin}get pathname(){return this.#e.pathname}set pathname(t){let e=new URL(this.#e.href);e.pathname=t,this.href=e.href;}get port(){return this.#e.port}set port(t){let e=new URL(this.#e.href);e.port=t,this.href=e.href;}get protocol(){return this.#e.protocol}set protocol(t){let e=new URL(this.#e.href);e.protocol=t,this.href=e.href;}get search(){return this.#e.search}set search(t){let e=new URL(this.#e.href);e.search=t,this.href=e.href;}replace(t){this.href=String(t);}assign(t){this.href=String(t);}reload(){this.#t&&this.#t.goto(this.href).catch(t=>{if(this.#t?.page.console)this.#t.page.console.error(t);else throw t});}[uo](t,e){if(!this.#t)return;if(this.#t!==t)throw new Error("Failed to set URL. Browser frame mismatch.");let r=this.#e.href,n=this.#e.hash;if(this.#e.href=e,this.#e.hash!==n){let i=this.#e.href;this.#o.push(new tu("hashchange",{oldURL:r,newURL:i})),this.#t?.window?.document?.[po](),this.#r&&this.#t.window?.clearTimeout(this.#r),this.#r=this.#t.window?.setTimeout(()=>{let s=this.#o;this.#o=[];for(let l of s)this.#t?.window?.dispatchEvent(l);});}}[It](){this.#r&&this.#t?.window?.clearTimeout(this.#r),this.#t=null;}toString(){return this.#e.toString()}};g();var ln=class{type;target;addedNodes;removedNodes;previousSibling;nextSibling;attributeName;attributeNamespace;oldValue;constructor(t){this.type=t.type,this.target=t.target,this.addedNodes=t.addedNodes||[],this.removedNodes=t.removedNodes||[],this.previousSibling=t.previousSibling||null,this.nextSibling=t.nextSibling||null,this.attributeName=t.attributeName||null,this.attributeNamespace=t.attributeNamespace||null,this.oldValue=t.oldValue||null;}};g();var yf=class{description;enabledPlugin;suffixes;type;constructor(t,e,r,n){this.description=t,this.enabledPlugin=e,this.suffixes=r,this.type=n;}toString(){return "[object MimeType]"}};g();var xc=class{length;constructor(t){for(let e=0,r=t.length;e<r;e++)this[e]=t[e],this[t[e].type]=t[e];this.length=t.length;}item(t){return this[t]||null}namedItem(t){return this[t]||null}toString(){return "[object MimeTypeArray]"}};g();g();var Ec=class{length;constructor(t){for(let e=0,r=t.length;e<r;e++)this[e]=t[e],this[t[e].name]=t[e];this.length=t.length;}item(t){return this[t]||null}namedItem(t){return this[t]||null}refresh(){}toString(){return "[object PluginArray]"}};g();g();var lx;(function(o){o.geolocation="geolocation",o.notifications="notifications",o.push="push",o.midi="midi",o.camera="camera",o.microphone="microphone",o.backgroundFetch="background-fetch",o.backgroundSync="background-sync",o.persistentStorage="persistent-storage",o.ambientLightSensor="ambient-light-sensor",o.accelerometer="accelerometer",o.gyroscope="gyroscope",o.magnetometer="magnetometer",o.screenWakeLock="screen-wake-lock",o.nfc="nfc",o.displayCapture="display-capture",o.accessibilityEvents="accessibility-events",o.clipboardRead="clipboard-read",o.clipboardWrite="clipboard-write",o.paymentHandler="payment-handler",o.idleDetection="idle-detection",o.periodicBackgroundSync="periodic-background-sync",o.systemWakeLock="system-wake-lock",o.storageAccess="storage-access",o.windowManagement="window-management",o.windowPlacement="window-placement",o.localFonts="local-fonts",o.topLevelStorageAccess="top-level-storage-access";})(lx||(lx={}));var fk=lx;var su=class{#t={};#e;constructor(t){t?.document||new TypeError("Invalid constructor"),this.#e=t;}async query(t){let e=t?.name;if(e&&this.#t[e])return this.#t[e];if(!Object.values(fk).includes(e))throw new Error(`Failed to execute 'query' on 'Permissions': Failed to read the 'name' property from 'PermissionDescriptor': The provided value '${e}' is not a valid enum value of type PermissionName.`);return this.#t[e]=new this.#e.PermissionStatus("granted"),this.#t[e]}};var tm=class{#t;#e;#r;constructor(t){if(!t)throw new TypeError("Invalid constructor");this.#t=t,this.#e=new Ga(t),this.#r=new su(t);}get cookieEnabled(){return true}get credentials(){return null}get geolocation(){return null}get language(){return "en-US"}get languages(){return ["en-US","en"]}get locks(){return null}get maxTouchPoints(){return new rt(this.#t).getSettings()?.navigator.maxTouchPoints||0}get hardwareConcurrency(){return 8}get appCodeName(){return "Mozilla"}get appName(){return "Netscape"}get appVersion(){let t=this.userAgent,e=t.indexOf("/");return e>-1?t.substring(e+1):""}get platform(){let t=this.userAgent,e=t.indexOf("("),r=t.indexOf(")");return e>-1&&r>-1?t.substring(e+1,r):""}get product(){return "Gecko"}get productSub(){return "20100101"}get vendor(){return ""}get vendorSub(){return ""}get userAgent(){return new rt(this.#t).getSettings()?.navigator.userAgent||""}get onLine(){return true}get permissions(){return this.#r}get clipboard(){return this.#e}get webdriver(){return true}get doNotTrack(){return "unspecified"}get mimeTypes(){return new xc([])}get plugins(){return new Ec([])}sendBeacon(t,e){return this.#t.fetch(t,{method:"POST",body:e}),true}toString(){return "[object Navigator]"}};g();var df=class{length=0;description;filename;name;constructor(t,e,r,n){this.description=e,this.filename=r,this.name=n;for(let i=0,s=t.length;i<s;i++)this[i]=t[i],this[t[i].type]=t[i];this.length=t.length;}item(t){return this[t]||null}namedItem(t){return this[t]||null}toString(){return "[object Plugin]"}};g();g();g();var ax;(function(o){o[o.disconnect=1]="disconnect",o[o.preceding=2]="preceding",o[o.following=4]="following",o[o.contains=8]="contains",o[o.containedBy=16]="containedBy",o[o.implementationSpecific=32]="implementationSpecific";})(ax||(ax={}));var Fn=ax;g();var Nt=class o{static isTextNode(t){return t?.[H]===M.textNode}static isInclusiveAncestor(t,e,r=false){if(t===null||e===null)return false;if(t===e)return true;if(!t[j].length||r&&e[pt]!==t[pt])return false;if(r&&t===e[N]&&e[pt])return true;let n=e[K];for(;n;){if(t===n)return true;if(t[K]===n[K])return false;n=n[K]?n[K]:r&&n.host?n.host:null;}return false}static isFollowing(t,e){if(t===e)return false;let r=e;for(;r;)if(r=this.following(r),r===t)return true;return false}static getNodeLength(t){switch(t[H]){case M.documentTypeNode:return 0;case M.textNode:case M.processingInstructionNode:case M.commentNode:return t.data.length;default:return t[j].length}}static following(t,e){let r=t.firstChild;if(r)return r;let n=t;for(;n;){if(n===e)return null;let i=n.nextSibling;if(i)return i;n=n[K];}return null}static nextDescendantNode(t){for(;t&&!t.nextSibling;)t=t[K];return t?t.nextSibling:null}static attributeListsEqual(t,e){let r=Array.from(t[Ct][X].values()),n=Array.from(e[Ct][X].values());for(let i of r){let s=false;for(let l of n)if(i[lt]===l[lt]&&i.localName===l.localName&&i[nt]===l[nt]){s=true;break}if(!s)return false}return true}static isEqualNode(t,e){if(t[H]!==e[H])return false;switch(t[H]){case M.documentTypeNode:let r=t,n=e;if(r.name!==n.name||r.publicId!==n.publicId||r.systemId!==n.systemId)return false;break;case M.elementNode:let i=t,s=e;if(i[lt]!==s[lt]||i[Kt]!==s[Kt]||i[ht]!==s[ht]||i[Ct][X].size!==s[Ct][X].size)return false;break;case M.attributeNode:let l=t,a=e;if(l[lt]!==a[lt]||l.localName!==a.localName||l[nt]!==a[nt])return false;break;case M.processingInstructionNode:let u=t,c=e;if(u.target!==c.target||u.data!==c.data)return false;break;case M.textNode:case M.commentNode:let h=t,f=e;if(h.data!==f.data)return false;break}if(t[H]===M.elementNode&&!o.attributeListsEqual(t,e)||t[j].length!==e[j].length)return false;for(let r=0;r<t[j].length;r++){let n=t[j][r],i=e[j][r];if(!o.isEqualNode(n,i))return false}return true}};g();var ux;(function(o){o.attributes="attributes",o.characterData="characterData",o.childList="childList";})(ux||(ux={}));var pi=ux;g();var Je=class{static ownerDocuments=[];static createNode(t,e,...r){return e.prototype[m]||this.ownerDocuments.push(t),new e(...r)}static pullOwnerDocument(){return this.ownerDocuments.pop()||null}};var Et=class o extends Ot{static ELEMENT_NODE=M.elementNode;static ATTRIBUTE_NODE=M.attributeNode;static TEXT_NODE=M.textNode;static CDATA_SECTION_NODE=M.cdataSectionNode;static COMMENT_NODE=M.commentNode;static DOCUMENT_NODE=M.documentNode;static DOCUMENT_TYPE_NODE=M.documentTypeNode;static DOCUMENT_FRAGMENT_NODE=M.documentFragmentNode;static PROCESSING_INSTRUCTION_NODE=M.processingInstructionNode;static DOCUMENT_POSITION_CONTAINED_BY=Fn.containedBy;static DOCUMENT_POSITION_CONTAINS=Fn.contains;static DOCUMENT_POSITION_DISCONNECTED=Fn.disconnect;static DOCUMENT_POSITION_FOLLOWING=Fn.following;static DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=Fn.implementationSpecific;static DOCUMENT_POSITION_PRECEDING=Fn.preceding;[pt]=false;[K]=null;[Ke]=null;[Gr]=null;[xr]=null;[Xt]=null;[er]=null;[Uo]=[];[j]=[];[Pt]=[];[ul]=null;[si]=null;[$]={querySelector:new Map,querySelectorAll:new Map,matches:new Map,elementsByTagName:new Map,elementsByTagNameNS:new Map,elementByTagName:new Map,elementById:new Map,computedStyle:null};[ur]=[];constructor(){if(super(),this[m])this[N]=this[m].document;else {let t=Je.pullOwnerDocument();if(!t)throw new TypeError("Illegal constructor");this[N]=t,this[m]=t[m];}}get[Symbol.toStringTag](){return this.constructor.name}get isConnected(){return this[pt]}get ownerDocument(){return this[N]}get parentNode(){return this[K]}get nodeType(){return this[H]}get childNodes(){return this[ul]||(this[ul]=new In(b,this[j])),this[ul]}get textContent(){return ""}set textContent(t){}get nodeValue(){return null}set nodeValue(t){}get nodeName(){return ""}get previousSibling(){if(this[K]){let t=this[K][j],e=t.indexOf(this[jt]||this);if(e>0)return t[e-1]}return null}get nextSibling(){if(this[K]){let t=this[K][j],e=t.indexOf(this[jt]||this);if(e>-1&&e+1<t.length)return t[e+1]}return null}get firstChild(){let t=this[j];return t.length>0?t[0]:null}get lastChild(){let t=this[j];return t.length>0?t[t.length-1]:null}get parentElement(){let t=this[K];for(;t&&t[H]!==M.elementNode;)t=t[K];return t}get baseURI(){let t=this[N].querySelector("base");return t?t.href:this[m].location.href}hasChildNodes(){return this[j].length>0}contains(t){if(t===void 0)return false;let e=this[jt]||this;return Nt.isInclusiveAncestor(e,t)}getRootNode(t){if(this[pt])return this[Ke]&&!t?.composed?this[Ke]:this[N];let e=this;for(;e[K];)e=e[K];return e}cloneNode(t=false){return this[xt](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[Ft](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[co](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[Ep](t,e)}[xt](t=false){let e=Je.createNode(this[N],this.constructor);if(e[j].length){let r=e[j];for(;r.length;)e.removeChild(r[0]);}if(t)for(let r of this[j]){let n=r.cloneNode(true);n[K]=e,e[j].push(n),n[H]===M.elementNode&&e[Pt].push(n);}return e}[Ft](t,e=false){t[jt]&&(t=t[jt]);let r=this[jt]||this;if(!e){if(t===r)throw new this[m].DOMException("Failed to execute 'appendChild' on 'Node': Not possible to append a node as a child of itself.");if(Nt.isInclusiveAncestor(t,r,true))throw new this[m].DOMException("Failed to execute 'appendChild' on 'Node': The new node is a parent of the node to insert to.",k.domException)}if(t[H]===M.documentFragmentNode){let n=t[j];for(;n.length;)this.appendChild(n[0]);return t}t[K]&&t[K][Hr](t),t[K]=r,t[po](),this[j].push(t),t[H]===M.elementNode&&this[Pt].push(t),t[Ho]();for(let n of this[Uo])n.options?.subtree&&n.callback.deref()&&t[qu](n);return this[es](new ln({target:r,type:pi.childList,addedNodes:[t]})),t}[Hr](t){t[jt]&&(t=t[jt]);let e=this[j].indexOf(t);if(e===-1)throw new this[m].DOMException("Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.");let r=t.previousSibling,n=t.nextSibling;if(t[K]=null,t[po](),this[j].splice(e,1),t[H]===M.elementNode){let i=this[Pt].indexOf(t);i!==-1&&this[Pt].splice(i,1);}if(t[si]){let i=t[si][ss].indexOf(t);i!==-1&&t[si][ss].splice(i,1),t[si]=null;}t[Xi]();for(let i of this[Uo])i.options?.subtree&&i.callback.deref()&&t[Sp](i);return this[es](new ln({target:this[jt]||this,type:pi.childList,removedNodes:[t],previousSibling:r,nextSibling:n})),t}[co](t,e,r=false){if(t[jt]&&(t=t[jt]),e&&e[jt]&&(e=e[jt]),t===e)return t;let n=this[jt]||this;if(!r){if(t===n)throw new this[m].DOMException("Failed to execute 'insertBefore' on 'Node': Not possible to insert a node as a child of itself.");if(Nt.isInclusiveAncestor(t,n,true))throw new this[m].DOMException("Failed to execute 'insertBefore' on 'Node': The new node is a parent of the node to insert to.",k.domException)}if(t[H]===M.documentFragmentNode){let l=t[j];for(;l.length>0;)this[co](l[0],e,true);return t}if(!e)return this[Ft](t,true),t;let i=this[j];if(!i.includes(e))throw new this[m].DOMException("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.");t[K]&&t[K][Hr](t),t[K]=n,t[po]();let s=i.indexOf(e);if(t[H]===M.elementNode){let l=this[Pt];if(e[H]===M.elementNode)l.splice(l.indexOf(e),0,t);else {let a=false;for(let u=s,c=i.length;u<c;u++)if(i[u][H]===M.elementNode){l.splice(l.indexOf(i[u]),0,t),a=true;break}a||l.push(t);}}i.splice(s,0,t),t[Ho]();for(let l of this[Uo])l.options?.subtree&&l.callback.deref()&&t[qu](l);return this[es](new ln({target:n,type:pi.childList,addedNodes:[t]})),t}[Ep](t,e){return this.insertBefore(t,e),this.removeChild(e),e}isEqualNode(t){return Nt.isEqualNode(this,t)}toString(){return `[object ${this.constructor.name}]`}[qu](t){if(this[Uo].push(t),t.options.subtree)for(let e of this[j])e[qu](t);}[Sp](t){let e=this[Uo].indexOf(t);if(e!==-1&&this[Uo].splice(e,1),t.options.subtree)for(let r of this[j])r[Sp](t);}[es](t){this[po]();let e=this[Uo];if(e.length)for(let r=0,n=e.length;r<n;r++){let i=e[r],s=i.callback.deref();if(s)switch(t.type){case pi.childList:i.options.childList&&s(t);break;case pi.attributes:i.options.attributes&&(!i.options.attributeFilter||i.options.attributeFilter.includes(t.attributeName))&&s(t);break;case pi.characterData:i.options?.characterData&&s(t);break}else e.splice(r,1),r--,n--;}}[po](){let t=this[$];if(t.querySelector.size){for(let n of t.querySelector.values())n.result&&(n.result=null);t.querySelector=new Map;}if(t.querySelectorAll.size){for(let n of t.querySelectorAll.values())n.result&&(n.result=null);t.querySelectorAll=new Map;}if(t.matches.size){for(let n of t.matches.values())n.result&&(n.result=null);t.matches=new Map;}if(t.elementsByTagName.size){for(let n of t.elementsByTagName.values())n.result&&(n.result=null);t.elementsByTagName=new Map;}if(t.elementsByTagNameNS.size){for(let n of t.elementsByTagNameNS.values())n.result&&(n.result=null);t.elementsByTagNameNS=new Map;}if(t.elementByTagName.size){for(let n of t.elementByTagName.values())n.result&&(n.result=null);t.elementByTagName=new Map;}if(t.elementById.size){for(let n of t.elementById.values())n.result&&(n.result=null);t.elementById=new Map;}let e=this[ur];if(e.length){for(let n of e)n.result=null;this[ur]=[];}let r=this[N];if(r&&r[oi].length){for(let n of r[oi])n.result=null;r[oi]=[];}}[Ho](){let t=this[K],e=t||this[Ca],r=false,n=false;if(!this[pt]&&e[pt]?(this[pt]=true,r=true):this[pt]&&!e[pt]&&(this[pt]=false,n=true),this[N]=e[N]||e,this[m]=e[m]||e[ao],t){this[H]!==M.documentFragmentNode&&(this[Ke]=t[Ke]);let s=this[st];t[Gr]&&s!=="STYLE"&&(this[Gr]=t[Gr]),t[xr]&&s!=="TEXTAREA"&&(this[xr]=t[xr]),t[Xt]&&s!=="FORM"&&(this[Xt]=t[Xt]),t[er]&&s!=="SELECT"&&(this[er]=t[er]);}let i=this[j].slice();for(let s=0,l=i.length;s<l;s++)i[s][K]=this,i[s][Ho]();this[Me]&&this[Me][Ho](),r?this[Mr]():n&&this[Ir]();}[Xi](){this[H]!==M.documentFragmentNode&&(this[Ke]=null);let t=this[st];t!=="STYLE"&&(this[Gr]=null),t!=="TEXTAREA"&&(this[xr]=null),t!=="FORM"&&(this[Xt]=null),t!=="SELECT"&&(this[er]=null),this[pt]&&(this[pt]=false,this[Ir]());let e=this[j].slice();for(let r=0,n=e.length;r<n;r++)e[r][Ho]();this[Me]&&this[Me][Xi]();}[Mr](){this[Me]&&this[Me][Mr]();}[Ir](){this[N][tr]===this&&(this[N][po](),this[N][tr]=null),this[Me]&&this[Me][Ir]();}[It](){super[It](),this[pt]=false;for(let t=0,e=this[j].length;t<e;t++)this[j][t][It]();this[Uo]=[],this[K]=null,this[Ke]=null,this[Gr]=null,this[xr]=null,this[Xt]=null,this[er]=null,this[Uo]=[],this[j]=[],this[Pt]=[],this[ul]=null,this[si]=null,this[po]();}compareDocumentPosition(t){if(this===t)return 0;let e=t,r=this[jt]||this,n=null,i=null;if(e[H]===M.attributeNode&&(n=e,e=n[Ht]),r[H]===M.attributeNode&&(i=r,r=i[Ht],n!==null&&e!==null&&r===e))for(let q of r[Ct][X].values()){if(Nt.isEqualNode(q,n))return o.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|o.DOCUMENT_POSITION_PRECEDING;if(Nt.isEqualNode(q,i))return o.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|o.DOCUMENT_POSITION_FOLLOWING}let s=[],l=r;for(;l;){if(l===e)return o.DOCUMENT_POSITION_CONTAINS|o.DOCUMENT_POSITION_PRECEDING;s.push(l),l=l[K];}let a=[],u=e;for(;u;){if(u===r)return o.DOCUMENT_POSITION_CONTAINED_BY|o.DOCUMENT_POSITION_FOLLOWING;a.push(u),u=u[K];}let c=(q,ut)=>q[q.length-1-ut],h=c(s,0);if(!h||h!==c(a,0))return o.DOCUMENT_POSITION_DISCONNECTED|o.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|o.DOCUMENT_POSITION_FOLLOWING;let f=0,d=Math.min(s.length,a.length);for(let q=0;q<d;++q){let ut=c(s,q),Z=c(a,q);if(ut!==Z)break;f=q;}let g=c(s,f),A=0,w=-1,T=-1,G=c(s,f+1),J=c(a,f+1),W=q=>{for(let ut of q){if(W(ut[j]),ut===G?w=A:ut===J&&(T=A),w!==-1&&T!==-1)break;A++;}};return W(g[j]),T<w?o.DOCUMENT_POSITION_PRECEDING:o.DOCUMENT_POSITION_FOLLOWING}normalize(){let t=this.firstChild;for(;t;){if(Nt.isTextNode(t)){for(;Nt.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}};Et.prototype.ELEMENT_NODE=M.elementNode;Et.prototype.ATTRIBUTE_NODE=M.attributeNode;Et.prototype.TEXT_NODE=M.textNode;Et.prototype.CDATA_SECTION_NODE=M.cdataSectionNode;Et.prototype.COMMENT_NODE=M.commentNode;Et.prototype.DOCUMENT_NODE=M.documentNode;Et.prototype.DOCUMENT_TYPE_NODE=M.documentTypeNode;Et.prototype.DOCUMENT_FRAGMENT_NODE=M.documentFragmentNode;Et.prototype.PROCESSING_INSTRUCTION_NODE=M.processingInstructionNode;Et.prototype.DOCUMENT_POSITION_CONTAINED_BY=Fn.containedBy;Et.prototype.DOCUMENT_POSITION_CONTAINS=Fn.contains;Et.prototype.DOCUMENT_POSITION_DISCONNECTED=Fn.disconnect;Et.prototype.DOCUMENT_POSITION_FOLLOWING=Fn.following;Et.prototype.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=Fn.implementationSpecific;Et.prototype.DOCUMENT_POSITION_PRECEDING=Fn.preceding;var em=class extends Et{[H]=M.attributeNode;[lt]=null;[ct]=null;[ht]=null;[Kt]=null;[nt]=null;[Ty]=true;[Ht]=null;get specified(){return this[Ty]}get ownerElement(){return this[Ht]}get value(){return this[nt]}set value(t){this[nt]=t;}get name(){return this[ct]||""}get localName(){return this[ht]||""}get prefix(){return this[Kt]}get textContent(){return this[nt]||""}get namespaceURI(){return this[lt]}[xt](t=false){let e=super[xt](t);return e[lt]=this[lt],e[ct]=this[ct],e[ht]=this[ht],e[Kt]=this[Kt],e[nt]=this[nt],e[Ty]=this[Ty],e}};g();g();var Bl=class{static appendData(t,e){t.data+=e;}static deleteData(t,e,r){t.data=t.data.substring(0,e)+t.data.substring(e+r);}static insertData(t,e,r){t.data=t.data.substring(0,e)+r+t.data.substring(e);}static replaceData(t,e,r,n){t.data=t.data.substring(0,e)+n+t.data.substring(e+r);}static substringData(t,e,r){return t.data.substring(e,e+r)}};g();var Vl=class{static previousElementSibling(t){let e=t.previousSibling;for(;e&&e[H]!==M.elementNode;)e=e.previousSibling;return e}static nextElementSibling(t){let e=t.nextSibling;for(;e&&e[H]!==M.elementNode;)e=e.nextSibling;return e}};g();var Bn=class{static remove(t){t[K]&&t[K].removeChild(t);}static replaceWith(t,...e){let r=t[K];if(r){for(let n of e)n instanceof Et?r.insertBefore(n,t):r.insertBefore(r[N].createTextNode(String(n)),t);r.removeChild(t);}}static before(t,...e){let r=t[K];if(r)for(let n of e)n instanceof Et?r.insertBefore(n,t):r.insertBefore(r[N].createTextNode(String(n)),t);}static after(t,...e){let r=t[K];if(!r)return;let n=t.nextSibling;for(let i of e){let s=i instanceof Et?i:r[N].createTextNode(String(i));n?r.insertBefore(s,n):r.appendChild(s);}}};var zi=class extends Et{[$t]="";constructor(t){super(),this[$t]=t!==void 0?String(t):"";}get length(){return this[$t].length}get data(){return this[$t]}set data(t){let e=this[$t];this[$t]=String(t),this[es](new ln({target:this,type:pi.characterData,oldValue:e}));}get textContent(){return this[$t]}set textContent(t){this.data=t;}get nodeValue(){return this[$t]}set nodeValue(t){this.textContent=t;}get previousElementSibling(){return Vl.previousElementSibling(this)}get nextElementSibling(){return Vl.nextElementSibling(this)}appendData(t){Bl.appendData(this,t);}deleteData(t,e){Bl.deleteData(this,t,e);}insertData(t,e){Bl.insertData(this,t,e);}replaceData(t,e,r){Bl.replaceData(this,t,e,r);}substringData(t,e){return Bl.substringData(this,t,e)}remove(){Bn.remove(this);}replaceWith(...t){Bn.replaceWith(this,...t);}before(...t){Bn.before(this,...t);}after(...t){Bn.after(this,...t);}[xt](t=false){let e=super[xt](t);return e[$t]=this[$t],e}};g();var Os=class extends Et{[H]=M.documentTypeNode;[ct]="";[fl]="";[bl]="";get name(){return this[ct]}get publicId(){return this[fl]}get systemId(){return this[bl]}get nodeName(){return this.name}toString(){return "[object DocumentType]"}[xt](t=false){let e=super[xt](t);return e[ct]=this[ct],e[fl]=this[fl],e[bl]=this[bl],e}};g();var cx;(function(o){o.loading="loading",o.interactive="interactive",o.complete="complete";})(cx||(cx={}));var DS=cx;g();var ff=class{#t;constructor(t){this.#t=new Fi(t);}waitUntilComplete(){return this.#t.waitUntilComplete()}startTask(){return this.#t.startTask()}endTask(t){this.#t.endTask(t);}destroy(){return this.#t.destroy()}};g();g();var lu=class o{[D]=0;[O]=0;[V]=0;[B]=0;constructor(t,e,r,n){this[D]=t!=null?Number(t):0,this[O]=e!=null?Number(e):0,this[V]=r!=null?Number(r):0,this[B]=n!=null?Number(n):0;}get x(){return this[D]}get y(){return this[O]}get width(){return this[V]}get height(){return this[B]}get top(){return Math.min(this[O],this[O]+this[B])}get right(){return Math.max(this[D],this[D]+this[V])}get bottom(){return Math.max(this[O],this[O]+this[B])}get left(){return Math.min(this[D],this[D]+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 o(t.x,t.y,t.width,t.height)}};var mi=class o extends lu{set x(t){this[D]=t;}get x(){return this[D]}set y(t){this[O]=t;}get y(){return this[O]}set width(t){this[V]=t;}get width(){return this[V]}set height(t){this[B]=t;}get height(){return this[B]}static fromRect(t){return new o(t.x,t.y,t.width,t.height)}};g();g();var GD=/[\t\f\n\r ]+/,go=class o{[Ht];[Sl];[$]={items:[],attributeValue:""};[vS];[jt];constructor(t,e,r,n){if(t!==b)throw new TypeError("Illegal constructor");this[Ht]=e,this[Sl]=r,this[vS]=n||[];let i=new De(this,[o]),s=new Proxy(this,{get:(l,a)=>{if(a==="length")return l[Xr]().length;if(a in l||typeof a=="symbol")return i.bind(a),l[a];let u=Number(a);if(!isNaN(u))return l[Xr]()[u]},set(l,a,u){if(i.bind(a),typeof a=="symbol")return l[a]=u,true;let c=Number(a);return isNaN(c)&&(l[a]=u),true},deleteProperty(l,a){if(typeof a=="symbol")return delete l[a],true;let u=Number(a);return isNaN(u)&&delete l[a],true},ownKeys(l){return Object.keys(l[Xr]())},has(l,a){if(a in l)return true;if(typeof a=="symbol")return false;let u=Number(a);return !isNaN(u)&&u>=0&&u<l[Xr]().length},defineProperty(l,a,u){return i.preventBinding(a),a in l?(Object.defineProperty(l,a,u),true):false},getOwnPropertyDescriptor(l,a){if(a in l||typeof a=="symbol")return;let u=Number(a),c=l[Xr]();if(!isNaN(u)&&c[u])return {value:c[u],writable:false,enumerable:true,configurable:true}}});return this[jt]=s,s}get length(){return this[Xr]().length}set value(t){this[Ht].setAttribute(this[Sl],t);}get value(){return this[Ht].getAttribute(this[Sl])||""}[Symbol.iterator](){return this[Xr]().values()}item(t){let e=this[Xr]();return typeof t=="number"||(t=Number(t),t=isNaN(t)?0:t),e[t]?e[t]:null}replace(t,e){let r=this[Xr]().slice(),n=r.indexOf(t);return n===-1?false:(r[n]=e,this[Ht].setAttribute(this[Sl],r.join(" ")),true)}supports(t){return this[vS].includes(t)}values(){return this[Xr]().values()}entries(){return this[Xr]().entries()}forEach(t,e){let r=e??this[Ht][m],n=this[Xr](),i=this[jt]??this;for(let s=0,l=n.length;s<l;s++)t.call(r,n[s],s,i);}keys(){return this[Xr]().keys()}add(...t){let e=this[Xr]().slice(),r=new Set(e);for(let n of t)r.has(n)||(r.add(n),e.push(n));this[Ht].setAttribute(this[Sl],e.join(" "));}remove(...t){let e=this[Xr](),r=new Set(t),n=e.filter(i=>!r.has(i));this[Ht].setAttribute(this[Sl],n.join(" "));}contains(t){return this[Xr]().includes(t)}toggle(t,e){let r;return e!==void 0?r=e:r=!this.contains(t),r?(this.add(t),true):(this.remove(t),false)}[Xr](){let t=this[Ht].getAttribute(this[Sl])??"",e=this[$];if(e.attributeValue===t)return e.items;let r=[],n=t.trim();if(n)for(let i of n.split(GD))r.includes(i)||r.push(i);return e.attributeValue=t,e.items=r,r}toString(){return this.value||""}};g();g();var Fe=class o{[Ju];constructor(t,e){if(t!==b)throw new TypeError("Illegal constructor");this[Ju]=e;let r=new De(this,this.constructor!==o?[this.constructor,o]:[o]);return new Proxy(this,{get:(n,i)=>{if(i==="length")return e().length;if(i in n||typeof i=="symbol")return r.bind(i),n[i];let s=Number(i);return isNaN(s)?n.namedItem(i)||void 0:e()[s]},set(n,i,s){if(r.bind(i),typeof i=="symbol")return n[i]=s,true;let l=Number(i);return isNaN(l)&&(n[i]=s),true},deleteProperty(n,i){if(typeof i=="symbol")return delete n[i],true;let s=Number(i);return isNaN(s)&&delete n[i],true},ownKeys(){let n=[],i=e();for(let s=0;s<i.length;s++){let l=i[s],a=l.getAttribute("id")||l.getAttribute("name");n.push(String(s)),a&&n.push(a);}return n},has(n,i){if(i in n)return true;let s=e(),l=Number(i);if(!isNaN(l)&&l>=0&&l<s.length)return true;i=String(i);for(let a=0;a<s.length;a++){let u=s[a],c=u.getAttribute("id")||u.getAttribute("name");if(c&&c===i)return true}return false},defineProperty(n,i,s){return r.preventBinding(i),i in n?(Object.defineProperty(n,i,s),true):false},getOwnPropertyDescriptor(n,i){if(i in n||typeof i=="symbol")return;let s=e(),l=Number(i);if(!isNaN(l)&&l>=0&&l<s.length)return {value:s[l],writable:false,enumerable:true,configurable:true};for(let a=0;a<s.length;a++){let u=s[a],c=u.getAttribute("id")||u.getAttribute("name");if(c&&c===i)return {value:u,writable:false,enumerable:true,configurable:true}}}})}get length(){return this[Ju]().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[Ju]();return t>=0&&e[t]?e[t]:null}[Symbol.iterator](){return this[Ju]()[Symbol.iterator]()}namedItem(t){let e=this[Ju]();t=String(t);for(let r of e)if(r.getAttribute("id")===t||r.getAttribute("name")===t)return r;return null}};var fe=class{static append(t,...e){for(let r of e)r instanceof Et?t.appendChild(r):t.appendChild(t[N].createTextNode(String(r)));}static prepend(t,...e){let r=t.firstChild;for(let n of e)n instanceof Et?t.insertBefore(n,r):t.insertBefore(t[N].createTextNode(String(n)),r);}static replaceChildren(t,...e){let r=t[j];for(;r.length;)t.removeChild(r[0]);this.append(t,...e);}static getElementsByClassName(t,e){return new Fe(b,()=>ft.querySelectorAll(t,`.${e.replace(/\s+/gm,".")}`)[X])}static getElementsByTagName(t,e){let r=e.toUpperCase(),n=e==="*",i=(l,a)=>{let u=[];for(let c of l[Pt]){(n||c[st].toUpperCase()===r)&&u.push(c),c[ur].push(a);for(let h of i(c,a))u.push(h);}return u},s=()=>{let l=t[$].elementsByTagName,a=l.get(e);if(a?.result){let h=a.result.deref();if(h)return h}let u={result:null},c=i(t,u);return u.result=new WeakRef(c),l.set(e,u),c};return new Fe(b,s)}static getElementsByTagNameNS(t,e,r){let n=e===Zt.html&&t[N][$e]==="text/html"?r.toUpperCase():r,i=r==="*",s=(a,u)=>{let c=[];for(let h of a[Pt]){(i||h[st]===n)&&h[lt]===e&&c.push(h),h[ur].push(u);for(let f of s(h,u))c.push(f);}return c},l=()=>{let a=t[$].elementsByTagNameNS,u=a.get(r);if(u?.result){let f=u.result.deref();if(f)return f}let c={result:null},h=s(t,c);return c.result=new WeakRef(h),a.set(r,c),h};return new Fe(b,l)}static getElementByTagName(t,e){let r=e.toUpperCase(),n=(u,c)=>{for(let h of u[Pt]){if(h[ur].push(c),h[st]===r)return h;let f=n(h,c);if(f)return f}return null},i=t[$].elementByTagName,s=i.get(e);if(s?.result){let u=s.result.deref();if(u)return u}let l={result:null},a=n(t,l);return l.result=a?new WeakRef(a):{deref:()=>null},i.set(e,l),a}static getElementById(t,e){if(e=String(e),t[H]===Et.DOCUMENT_NODE){let a=t[Mi].get(e);return a&&a.elements.length>0?a.elements[0]:null}let r=(a,u)=>{for(let c of a[Pt]){if(c[ur].push(u),c.getAttribute("id")===e)return c;let h=r(c,u);if(h)return h}return null},n=t[$].elementById,i=n.get(e);if(i?.result){let a=i.result.deref();if(a)return a}let s={result:null},l=r(t,s);return s.result=l?new WeakRef(l):{deref:()=>null},n.set(e,s),l}};g();var vc=class extends Array{constructor(t){if(super(),t!==1&&t!==b)throw new TypeError("Illegal constructor")}item(t){return this[t]??null}};g();var Fs=class{[Li]=new Map;[Co]=new Map;[X]=new Map;constructor(t){this[Ht]=t;}get length(){return this[X].size}get[Symbol.toStringTag](){return "NamedNodeMap"}toString(){return "[object NamedNodeMap]"}[Symbol.iterator](){return this[X].values()}item(t){let e=Array.from(this[X].values());return t>=0&&e[t]?e[t]:null}getNamedItem(t){return t=String(t),this[Ht][lt]===Zt.html&&this[Ht][N][$e]==="text/html"?this[Co].get(eo.asciiLowerCase(t))?.[0]||null:this[Co].get(t)?.[0]||null}getNamedItemNS(t,e){let r=this[Li].get(`${t||""}:${e}`);return r&&(!r[Kt]||r[lt])?r:null}setNamedItem(t){return this[ni](t)}setNamedItemNS(t){return this[ni](t)}removeNamedItem(t){let e=this.getNamedItem(t);if(!e)throw new this[Ht][m].DOMException(`Failed to execute 'removeNamedItem' on 'NamedNodeMap': No item with name '${t}' was found.`,k.notFoundError);return this[gl](e),e}removeNamedItemNS(t,e){let r=this.getNamedItemNS(t,e);if(!r)throw new this[Ht][m].DOMException(`Failed to execute 'removeNamedItemNS' on 'NamedNodeMap': No item with name '${e}' in namespace '${t}' was found.`,k.notFoundError);return this[gl](r),r}[ni](t,e=false){if(t[Ht]!==null&&t[Ht]!==this[Ht])throw new this[Ht][m].DOMException("The attribute is in use.",k.inUseAttributeError);t[Ht]=this[Ht];let r=this.getNamedItemNS(t[lt],t[ht])||null,n=this[Co].get(t[ct]);if(r===t)return t;if(this[Li].set(`${t[lt]||""}:${t[ht]}`,t),this[X].set(`${t[lt]||""}:${t[ct]}`,t),!n?.length)this[Co].set(t[ct],[t]);else {let i=n.indexOf(r);i!==-1&&n.splice(i,1),n.push(t);}return e||this[Ht][ze](t,r),r}[gl](t,e=false){t[Ht]=null,this[Li].delete(`${t[lt]||""}:${t[ht]}`),this[X].delete(`${t[lt]||""}:${t[ct]}`);let r=this[Co].get(t[ct]);if(r?.length){let n=r.indexOf(t);n!==-1&&r.splice(n,1),r.length||this[Co].delete(t[ct]);}e||this[Ht][br](t);}};g();var bf=class{static createProxy(t){let e=new De(this,[Fs]);return new Proxy(t,{get:(r,n)=>{if(n==="length")return t[X].size;if(n in r||typeof n=="symbol")return e.bind(n),r[n];let i=Number(n);return isNaN(i)?r.getNamedItem(n)||void 0:r.item(i)},set(r,n,i){if(e.bind(n),typeof n=="symbol")return r[n]=i,true;let s=Number(n);return isNaN(s)&&(r[n]=i),true},deleteProperty(r,n){if(typeof n=="symbol")return delete r[n],true;let i=Number(n);return isNaN(i)&&delete r[n],true},ownKeys(){let r=Array.from(t[X].keys());for(let n=0,i=t[X].size;n<i;n++)r.push(String(n));return r},has(r,n){if(typeof n=="symbol")return false;if(n in r||t[X].has(n))return true;let i=Number(n);return !isNaN(i)&&i>=0&&i<t[X].size},defineProperty(r,n,i){return e.preventBinding(n),n in r?(Object.defineProperty(r,n,i),true):false},getOwnPropertyDescriptor(r,n){if(n in r||typeof n=="symbol")return;let i=Number(n);if(!isNaN(i)){if(i>=0){let l=r.item(i);if(l)return {value:l,writable:false,enumerable:true,configurable:true}}return}let s=t[X].get(n);if(s)return {value:s,writable:false,enumerable:true,configurable:true}}})}};g();g();g();var px;(function(o){o.rawText="rawText",o.noSelfDescendants="noSelfDescendants",o.noFirstLevelSelfDescendants="noFirstLevelSelfDescendants",o.noForbiddenFirstLevelDescendants="noForbiddenFirstLevelDescendants",o.noDescendants="noDescendants",o.permittedDescendants="permittedDescendants",o.textOrComments="textOrComments",o.anyDescendants="anyDescendants";})(px||(px={}));var _=px;var Pr={a:{className:"HTMLAnchorElement",contentModel:_.noSelfDescendants},abbr:{className:"HTMLElement",contentModel:_.anyDescendants},address:{className:"HTMLElement",contentModel:_.anyDescendants},area:{className:"HTMLAreaElement",contentModel:_.noDescendants},article:{className:"HTMLElement",contentModel:_.anyDescendants},aside:{className:"HTMLElement",contentModel:_.anyDescendants},audio:{className:"HTMLAudioElement",contentModel:_.anyDescendants},b:{className:"HTMLElement",contentModel:_.anyDescendants},base:{className:"HTMLBaseElement",contentModel:_.noDescendants},bdi:{className:"HTMLElement",contentModel:_.anyDescendants},bdo:{className:"HTMLElement",contentModel:_.anyDescendants},body:{className:"HTMLBodyElement",contentModel:_.anyDescendants},template:{className:"HTMLTemplateElement",contentModel:_.anyDescendants},form:{className:"HTMLFormElement",contentModel:_.anyDescendants},input:{className:"HTMLInputElement",contentModel:_.noDescendants},textarea:{className:"HTMLTextAreaElement",contentModel:_.anyDescendants},script:{className:"HTMLScriptElement",contentModel:_.rawText},img:{className:"HTMLImageElement",contentModel:_.noDescendants},link:{className:"HTMLLinkElement",contentModel:_.noDescendants},style:{className:"HTMLStyleElement",contentModel:_.rawText},label:{className:"HTMLLabelElement",contentModel:_.anyDescendants},slot:{className:"HTMLSlotElement",contentModel:_.anyDescendants},meta:{className:"HTMLMetaElement",contentModel:_.noDescendants},blockquote:{className:"HTMLQuoteElement",contentModel:_.anyDescendants},br:{className:"HTMLBRElement",contentModel:_.noDescendants},button:{className:"HTMLButtonElement",contentModel:_.anyDescendants},canvas:{className:"HTMLCanvasElement",contentModel:_.anyDescendants},caption:{className:"HTMLTableCaptionElement",contentModel:_.noForbiddenFirstLevelDescendants,forbiddenDescendants:["table","tbody","thead","tfoot","tr","td","th","col","colgroup"],permittedParents:["table"]},cite:{className:"HTMLElement",contentModel:_.anyDescendants},code:{className:"HTMLElement",contentModel:_.anyDescendants},col:{className:"HTMLTableColElement",contentModel:_.noDescendants,permittedParents:["colgroup"]},colgroup:{className:"HTMLTableColElement",contentModel:_.permittedDescendants,permittedDescendants:["col"]},data:{className:"HTMLDataElement",contentModel:_.anyDescendants},datalist:{className:"HTMLDataListElement",contentModel:_.anyDescendants},dd:{className:"HTMLElement",contentModel:_.noForbiddenFirstLevelDescendants,forbiddenDescendants:["dt","dd"]},del:{className:"HTMLModElement",contentModel:_.anyDescendants},details:{className:"HTMLDetailsElement",contentModel:_.anyDescendants},dfn:{className:"HTMLElement",contentModel:_.anyDescendants},dialog:{className:"HTMLDialogElement",contentModel:_.anyDescendants},div:{className:"HTMLDivElement",contentModel:_.anyDescendants},dl:{className:"HTMLDListElement",contentModel:_.anyDescendants},dt:{className:"HTMLElement",contentModel:_.noForbiddenFirstLevelDescendants,forbiddenDescendants:["dt","dd"]},em:{className:"HTMLElement",contentModel:_.anyDescendants},embed:{className:"HTMLEmbedElement",contentModel:_.noDescendants},fieldset:{className:"HTMLFieldSetElement",contentModel:_.anyDescendants},figcaption:{className:"HTMLElement",contentModel:_.anyDescendants},figure:{className:"HTMLElement",contentModel:_.anyDescendants},footer:{className:"HTMLElement",contentModel:_.anyDescendants},h1:{className:"HTMLHeadingElement",contentModel:_.noFirstLevelSelfDescendants},h2:{className:"HTMLHeadingElement",contentModel:_.noFirstLevelSelfDescendants},h3:{className:"HTMLHeadingElement",contentModel:_.noFirstLevelSelfDescendants},h4:{className:"HTMLHeadingElement",contentModel:_.noFirstLevelSelfDescendants},h5:{className:"HTMLHeadingElement",contentModel:_.noFirstLevelSelfDescendants},h6:{className:"HTMLHeadingElement",contentModel:_.noFirstLevelSelfDescendants},head:{className:"HTMLHeadElement",contentModel:_.anyDescendants},header:{className:"HTMLElement",contentModel:_.anyDescendants},hgroup:{className:"HTMLElement",contentModel:_.anyDescendants},hr:{className:"HTMLHRElement",contentModel:_.noDescendants},html:{className:"HTMLHtmlElement",contentModel:_.anyDescendants},i:{className:"HTMLElement",contentModel:_.anyDescendants},iframe:{className:"HTMLIFrameElement",contentModel:_.anyDescendants},ins:{className:"HTMLModElement",contentModel:_.anyDescendants},kbd:{className:"HTMLElement",contentModel:_.anyDescendants},legend:{className:"HTMLLegendElement",contentModel:_.anyDescendants},li:{className:"HTMLLIElement",contentModel:_.noFirstLevelSelfDescendants},main:{className:"HTMLElement",contentModel:_.anyDescendants},map:{className:"HTMLMapElement",contentModel:_.anyDescendants},mark:{className:"HTMLElement",contentModel:_.anyDescendants},menu:{className:"HTMLMenuElement",contentModel:_.anyDescendants},meter:{className:"HTMLMeterElement",contentModel:_.anyDescendants},nav:{className:"HTMLElement",contentModel:_.anyDescendants},noscript:{className:"HTMLElement",contentModel:_.anyDescendants},object:{className:"HTMLObjectElement",contentModel:_.anyDescendants},ol:{className:"HTMLOListElement",contentModel:_.anyDescendants},optgroup:{className:"HTMLOptGroupElement",contentModel:_.noFirstLevelSelfDescendants},option:{className:"HTMLOptionElement",contentModel:_.noForbiddenFirstLevelDescendants,forbiddenDescendants:["option","optgroup"]},output:{className:"HTMLOutputElement",contentModel:_.anyDescendants},p:{className:"HTMLParagraphElement",contentModel:_.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:_.noDescendants},picture:{className:"HTMLPictureElement",contentModel:_.anyDescendants},pre:{className:"HTMLPreElement",contentModel:_.anyDescendants},progress:{className:"HTMLProgressElement",contentModel:_.anyDescendants},q:{className:"HTMLQuoteElement",contentModel:_.anyDescendants},rb:{className:"HTMLElement",contentModel:_.anyDescendants},rp:{className:"HTMLElement",contentModel:_.noForbiddenFirstLevelDescendants,forbiddenDescendants:["rp","rt"]},rt:{className:"HTMLElement",contentModel:_.noForbiddenFirstLevelDescendants,forbiddenDescendants:["rp","rt"]},rtc:{className:"HTMLElement",contentModel:_.anyDescendants},ruby:{className:"HTMLElement",contentModel:_.anyDescendants},s:{className:"HTMLElement",contentModel:_.anyDescendants},samp:{className:"HTMLElement",contentModel:_.anyDescendants},section:{className:"HTMLElement",contentModel:_.anyDescendants},select:{className:"HTMLSelectElement",contentModel:_.anyDescendants},small:{className:"HTMLElement",contentModel:_.anyDescendants},source:{className:"HTMLSourceElement",contentModel:_.noDescendants},span:{className:"HTMLSpanElement",contentModel:_.anyDescendants},strong:{className:"HTMLElement",contentModel:_.anyDescendants},sub:{className:"HTMLElement",contentModel:_.anyDescendants},summary:{className:"HTMLElement",contentModel:_.anyDescendants},sup:{className:"HTMLElement",contentModel:_.anyDescendants},table:{className:"HTMLTableElement",contentModel:_.permittedDescendants,permittedDescendants:["caption","colgroup","thead","tfoot","tbody"],moveForbiddenDescendant:{exclude:[]}},tbody:{className:"HTMLTableSectionElement",contentModel:_.permittedDescendants,permittedDescendants:["tr"],permittedParents:["table"],moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody"]}},td:{className:"HTMLTableCellElement",contentModel:_.noForbiddenFirstLevelDescendants,forbiddenDescendants:["td","th","tr","tbody","tfoot","thead"],permittedParents:["tr"]},tfoot:{className:"HTMLTableSectionElement",contentModel:_.permittedDescendants,permittedDescendants:["tr"],permittedParents:["table"],moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody"]}},th:{className:"HTMLTableCellElement",contentModel:_.noForbiddenFirstLevelDescendants,forbiddenDescendants:["td","th","tr","tbody","tfoot","thead"],permittedParents:["tr"]},thead:{className:"HTMLTableSectionElement",contentModel:_.permittedDescendants,permittedDescendants:["tr"],permittedParents:["table"],moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody"]}},time:{className:"HTMLTimeElement",contentModel:_.anyDescendants},title:{className:"HTMLTitleElement",contentModel:_.anyDescendants},tr:{className:"HTMLTableRowElement",contentModel:_.permittedDescendants,permittedDescendants:["td","th"],permittedParents:["tbody","tfoot","thead"],addPermittedParent:"tbody",moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody","tr"]}},track:{className:"HTMLTrackElement",contentModel:_.noDescendants},u:{className:"HTMLElement",contentModel:_.anyDescendants},ul:{className:"HTMLUListElement",contentModel:_.anyDescendants},var:{className:"HTMLElement",contentModel:_.anyDescendants},video:{className:"HTMLVideoElement",contentModel:_.anyDescendants},wbr:{className:"HTMLElement",contentModel:_.noDescendants}};g();g();g();g();var mx,UD=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]]),hx=(mx=String.fromCodePoint)!==null&&mx!==void 0?mx:(o=>{let t="";return o>65535&&(o-=65536,t+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),t+=String.fromCharCode(o),t});function yx(o){var t;return o>=55296&&o<=57343||o>1114111?65533:(t=UD.get(o))!==null&&t!==void 0?t:o}g();g();function OS(o){let t=typeof atob=="function"?atob(o):typeof Buffer.from=="function"?Buffer.from(o,"base64").toString("binary"):new Buffer(o,"base64").toString("binary"),e=t.length&-2,r=new Uint16Array(e/2);for(let n=0,i=0;n<e;n+=2){let s=t.charCodeAt(n),l=t.charCodeAt(n+1);r[i++]=s|l<<8;}return r}var dx=OS("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");g();var fx=OS("AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg");g();var Ro;(function(o){o[o.VALUE_LENGTH=49152]="VALUE_LENGTH",o[o.FLAG13=8192]="FLAG13",o[o.BRANCH_LENGTH=8064]="BRANCH_LENGTH",o[o.JUMP_TABLE=127]="JUMP_TABLE";})(Ro||(Ro={}));var mr;(function(o){o[o.NUM=35]="NUM",o[o.SEMI=59]="SEMI",o[o.EQUALS=61]="EQUALS",o[o.ZERO=48]="ZERO",o[o.NINE=57]="NINE",o[o.LOWER_A=97]="LOWER_A",o[o.LOWER_F=102]="LOWER_F",o[o.LOWER_X=120]="LOWER_X",o[o.LOWER_Z=122]="LOWER_Z",o[o.UPPER_A=65]="UPPER_A",o[o.UPPER_F=70]="UPPER_F",o[o.UPPER_Z=90]="UPPER_Z";})(mr||(mr={}));var bk=32;function bx(o){return o>=mr.ZERO&&o<=mr.NINE}function WD(o){return o>=mr.UPPER_A&&o<=mr.UPPER_F||o>=mr.LOWER_A&&o<=mr.LOWER_F}function zD(o){return o>=mr.UPPER_A&&o<=mr.UPPER_Z||o>=mr.LOWER_A&&o<=mr.LOWER_Z||bx(o)}function _D(o){return o===mr.EQUALS||zD(o)}var ro;(function(o){o[o.EntityStart=0]="EntityStart",o[o.NumericStart=1]="NumericStart",o[o.NumericDecimal=2]="NumericDecimal",o[o.NumericHex=3]="NumericHex",o[o.NamedEntity=4]="NamedEntity";})(ro||(ro={}));var hi;(function(o){o[o.Legacy=0]="Legacy",o[o.Strict=1]="Strict",o[o.Attribute=2]="Attribute";})(hi||(hi={}));var FS=class{constructor(t,e,r){this.decodeTree=t,this.emitCodePoint=e,this.errors=r,this.state=ro.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=hi.Strict,this.runConsumed=0;}startEntity(t){this.decodeMode=t,this.state=ro.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0;}write(t,e){switch(this.state){case ro.EntityStart:return t.charCodeAt(e)===mr.NUM?(this.state=ro.NumericStart,this.consumed+=1,this.stateNumericStart(t,e+1)):(this.state=ro.NamedEntity,this.stateNamedEntity(t,e));case ro.NumericStart:return this.stateNumericStart(t,e);case ro.NumericDecimal:return this.stateNumericDecimal(t,e);case ro.NumericHex:return this.stateNumericHex(t,e);case ro.NamedEntity:return this.stateNamedEntity(t,e)}}stateNumericStart(t,e){return e>=t.length?-1:(t.charCodeAt(e)|bk)===mr.LOWER_X?(this.state=ro.NumericHex,this.consumed+=1,this.stateNumericHex(t,e+1)):(this.state=ro.NumericDecimal,this.stateNumericDecimal(t,e))}stateNumericHex(t,e){for(;e<t.length;){let r=t.charCodeAt(e);if(bx(r)||WD(r)){let n=r<=mr.NINE?r-mr.ZERO:(r|bk)-mr.LOWER_A+10;this.result=this.result*16+n,this.consumed++,e++;}else return this.emitNumericEntity(r,3)}return -1}stateNumericDecimal(t,e){for(;e<t.length;){let r=t.charCodeAt(e);if(bx(r))this.result=this.result*10+(r-mr.ZERO),this.consumed++,e++;else return this.emitNumericEntity(r,2)}return -1}emitNumericEntity(t,e){var r;if(this.consumed<=e)return (r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===mr.SEMI)this.consumed+=1;else if(this.decodeMode===hi.Strict)return 0;return this.emitCodePoint(yx(this.result),this.consumed),this.errors&&(t!==mr.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,e){let{decodeTree:r}=this,n=r[this.treeIndex],i=(n&Ro.VALUE_LENGTH)>>14;for(;e<t.length;){if(i===0&&(n&Ro.FLAG13)!==0){let l=(n&Ro.BRANCH_LENGTH)>>7;if(this.runConsumed===0){let a=n&Ro.JUMP_TABLE;if(t.charCodeAt(e)!==a)return this.result===0?0:this.emitNotTerminatedNamedEntity();e++,this.excess++,this.runConsumed++;}for(;this.runConsumed<l;){if(e>=t.length)return -1;let a=this.runConsumed-1,u=r[this.treeIndex+1+(a>>1)],c=a%2===0?u&255:u>>8&255;if(t.charCodeAt(e)!==c)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();e++,this.excess++,this.runConsumed++;}this.runConsumed=0,this.treeIndex+=1+(l>>1),n=r[this.treeIndex],i=(n&Ro.VALUE_LENGTH)>>14;}if(e>=t.length)break;let s=t.charCodeAt(e);if(s===mr.SEMI&&i!==0&&(n&Ro.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);if(this.treeIndex=$D(r,n,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return this.result===0||this.decodeMode===hi.Attribute&&(i===0||_D(s))?0:this.emitNotTerminatedNamedEntity();if(n=r[this.treeIndex],i=(n&Ro.VALUE_LENGTH)>>14,i!==0){if(s===mr.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==hi.Strict&&(n&Ro.FLAG13)===0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0);}e++,this.excess++;}return -1}emitNotTerminatedNamedEntity(){var t;let{result:e,decodeTree:r}=this,n=(r[e]&Ro.VALUE_LENGTH)>>14;return this.emitNamedEntityData(e,n,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,e,r){let{decodeTree:n}=this;return this.emitCodePoint(e===1?n[t]&~(Ro.VALUE_LENGTH|Ro.FLAG13):n[t+1],r),e===3&&this.emitCodePoint(n[t+2],r),r}end(){var t;switch(this.state){case ro.NamedEntity:return this.result!==0&&(this.decodeMode!==hi.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ro.NumericDecimal:return this.emitNumericEntity(0,2);case ro.NumericHex:return this.emitNumericEntity(0,3);case ro.NumericStart:return (t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ro.EntityStart:return 0}}};function gk(o){let t="",e=new FS(o,r=>t+=hx(r));return function(n,i){let s=0,l=0;for(;(l=n.indexOf("&",l))>=0;){t+=n.slice(s,l),e.startEntity(i);let u=e.write(n,l+1);if(u<0){s=l+e.end();break}s=l+u,l=u===0?s+1:s;}let a=t+n.slice(s);return t="",a}}function $D(o,t,e,r){let n=(t&Ro.BRANCH_LENGTH)>>7,i=t&Ro.JUMP_TABLE;if(n===0)return i!==0&&r===i?e:-1;if(i){let u=r-i;return u<0||u>=n?-1:o[e+u]-1}let s=n+1>>1,l=0,a=n-1;for(;l<=a;){let u=l+a>>>1,c=u>>1,f=o[e+c]>>(u&1)*8&255;if(f<r)l=u+1;else if(f>r)a=u-1;else return o[e+s+u]}return -1}var Sk=gk(dx),KD=gk(fx);function rm(o,t=hi.Legacy){return Sk(o,t)}function gx(o){return Sk(o,hi.Attribute)}function om(o){return KD(o,hi.Strict)}g();g();function qD(o,t){return function(r){let n,i=0,s="";for(;n=o.exec(r);)i!==n.index&&(s+=r.substring(i,n.index)),s+=t.get(n[0].charCodeAt(0)),i=n.index+1;return s+r.substring(i)}}var BS=qD(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]));g();g();var Pk;(function(o){o[o.XML=0]="XML",o[o.HTML=1]="HTML";})(Pk||(Pk={}));var Ak;(function(o){o[o.UTF8=0]="UTF8",o[o.ASCII=1]="ASCII",o[o.Extensive=2]="Extensive",o[o.Attribute=3]="Attribute",o[o.Text=4]="Text";})(Ak||(Ak={}));var ZD=/[&"<>\t\n\r]/g,tO=/[&"]/g,eO=/&(?:nbsp|lt|gt|amp);/g,rO={"&":"&amp;",'"':"&quot;","<":"&lt;",">":"&gt;"," ":"&#x9;","\n":"&#xA;","\r":"&#xD;"},oO={"&":"&amp;",'"':"&quot;"},nO={"&nbsp;":"\xA0","&lt;":"<","&gt;":">","&amp;":"&"},Xe=class{static encodeXMLAttributeValue(t){return t===null?"":t.replace(ZD,e=>rO[e])}static decodeXMLAttributeValue(t){return t===null?"":om(t)}static encodeHTMLAttributeValue(t){return t===null?"":t.replace(tO,e=>oO[e])}static decodeHTMLAttributeValue(t){return t===null?"":gx(t)}static encodeTextContent(t){return t===null?"":BS(t)}static decodeTextContent(t){return t===null?"":t.replace(eO,e=>nO[e])}static decodeHTMLEntities(t){return t===null?"":rm(t)}static decodeXMLEntities(t){return t===null?"":om(t)}};var Vn=class{options={serializableShadowRoots:false,shadowRoots:null,allShadowRoots:false,excludeShadowRootTags:null};constructor(t){t&&(t.serializableShadowRoots&&(this.options.serializableShadowRoots=t.serializableShadowRoots),t.shadowRoots&&(this.options.shadowRoots=t.shadowRoots),t.allShadowRoots&&(this.options.allShadowRoots=t.allShadowRoots),t.excludeShadowRootTags&&(this.options.excludeShadowRootTags=t.excludeShadowRootTags));}serializeToString(t){switch(t[H]){case M.elementNode:let e=t,r=e[Kt],n=e[ht],i=Pr[e[ht]],s=r?`${r}:${n}`:n;if(i?.contentModel===_.noDescendants)return `<${s}${this.getAttributes(e)}>`;let l="";if(e.shadowRoot&&(this.options.allShadowRoots||this.options.serializableShadowRoots&&e.shadowRoot[is]||this.options.shadowRoots?.includes(e.shadowRoot))&&(!this.options.excludeShadowRootTags||!this.options.excludeShadowRootTags.includes(s))){l+=`<template shadowrootmode="${e.shadowRoot[We]}"${e.shadowRoot[is]?' shadowrootserializable=""':""}>`;for(let A of e.shadowRoot[j])l+=this.serializeToString(A);l+="</template>";}let a=s==="template"?t.content[j]:t[j];for(let A of a)l+=this.serializeToString(A);return `<${s}${this.getAttributes(e)}>${l}</${s}>`;case Et.DOCUMENT_FRAGMENT_NODE:case Et.DOCUMENT_NODE:let u="";for(let A of t[j])u+=this.serializeToString(A);return u;case M.commentNode:return `<!--${t.textContent}-->`;case M.processingInstructionNode:return `<!--?${t.target} ${t.textContent}?-->`;case M.textNode:let c=t.parentElement;return c&&Pr[c[ht]]?.contentModel===_.rawText?t.textContent:Xe.encodeTextContent(t.textContent);case M.documentTypeNode:let h=t,f=h.publicId?" PUBLIC":h.systemId?" SYSTEM":"",d=h.publicId?` "${h.publicId}"`:"",g=h.systemId?` "${h.systemId}"`:"";return `<!DOCTYPE ${h.name}${f}${d}${g}>`}return ""}getAttributes(t){let e="",r=t[Ct][X];!r.has(":is")&&t[Go]&&(e+=' is="'+Xe.encodeHTMLAttributeValue(t[Go])+'"');for(let n of r.values()){let i=Xe.encodeHTMLAttributeValue(n[nt]);e+=" "+n[ct]+'="'+i+'"';}return e}};g();g();var gf={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 iO=/<([^\s/!>?]+)|<\/([^\s/!>?]+)\s*>|(<!--)|(-->|--!>)|(<!)|(<\?)|(\/>)|(>)/gm,sO=/\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,lO=/"([^"]+)"/gm,aO=/\s+/,uO=/^\s+/,ar;(function(o){o.any="any",o.startTag="startTag",o.comment="comment",o.documentType="documentType",o.processingInstruction="processingInstruction",o.rawTextElement="rawTextElement";})(ar||(ar={}));var je;(function(o){o[o.root=0]="root",o[o.doctype=1]="doctype",o[o.documentElement=2]="documentElement",o[o.head=3]="head",o[o.additionalHeadWithoutBody=4]="additionalHeadWithoutBody",o[o.body=5]="body",o[o.afterBody=6]="afterBody";})(je||(je={}));var Wr=class{window;evaluateScripts=false;isTemplateDocumentFragment=false;rootNode=null;rootDocument=null;nodeStack=[];tagNameStack=[];documentStructure=null;startTagIndex=0;markupRegExp=null;nextElement=null;currentNode=null;readState=ar.any;constructor(t,e){this.window=t,e?.evaluateScripts&&(this.evaluateScripts=true),e?.isTemplateDocumentFragment&&(this.isTemplateDocumentFragment=true);}parse(t,e){if(this.rootNode=e||this.window.document.createDocumentFragment(),this.rootDocument=this.rootNode[H]===M.documentNode?this.rootNode:this.window.document,this.nodeStack=[this.rootNode],this.tagNameStack=[null],this.currentNode=this.rootNode,this.readState=ar.any,this.documentStructure=null,this.startTagIndex=0,this.markupRegExp=new RegExp(iO),this.rootNode[H]===M.documentNode){let{doctype:i,documentElement:s,head:l,body:a}=this.rootNode;if(!s||!l||!a)throw new Error(`Failed to parse HTML: The root node must have "documentElement", "head" and "body".
119
+
120
+ We should not end up here and it is therefore a bug in Happy DOM. Please report this issue.`);this.documentStructure={nodes:{doctype:i||null,documentElement:s,head:l,body:a},level:je.root};}if(this.rootNode instanceof this.window.HTMLHtmlElement){let i=this.rootDocument.createElement("head"),s=this.rootDocument.createElement("body");for(;this.rootNode[j].length>0;)this.rootNode[Hr](this.rootNode[j][this.rootNode[j].length-1]);this.rootNode[Ft](i),this.rootNode[Ft](s),this.documentStructure={nodes:{doctype:null,documentElement:this.rootNode,head:i,body:s},level:je.documentElement};}let r,n=0;for(t=String(t);r=this.markupRegExp.exec(t);){switch(this.readState){case ar.any:r.index!==n&&(r[1]||r[2]||r[3]||r[4]||r[5]!==void 0||r[6])&&this.parsePlainText(t.substring(n,r.index)),r[1]?(this.nextElement=this.getStartTagElement(r[1]),this.startTagIndex=this.markupRegExp.lastIndex,this.readState=ar.startTag):r[2]?this.parseEndTag(r[2]):r[3]?(this.startTagIndex=this.markupRegExp.lastIndex,this.readState=ar.comment):r[5]!==void 0?(this.startTagIndex=this.markupRegExp.lastIndex,this.readState=ar.documentType):r[6]?(this.startTagIndex=this.markupRegExp.lastIndex,this.readState=ar.processingInstruction):this.parsePlainText(t.substring(n,this.markupRegExp.lastIndex));break;case ar.startTag:if(r[7]||r[8]||r[2])if(this.nextElement){let i=t.substring(this.startTagIndex,r[2]?this.markupRegExp.lastIndex-1:r.index),s=!!r[7];this.parseEndOfStartTag(i,s);}else this.readState=ar.any;break;case ar.comment:r[4]&&this.parseComment(t.substring(this.startTagIndex,r.index));break;case ar.documentType:(r[7]||r[8])&&this.parseDocumentType(t.substring(this.startTagIndex,r.index));break;case ar.processingInstruction:(r[7]||r[8])&&this.parseComment("?"+t.substring(this.startTagIndex,r.index));break;case ar.rawTextElement:r[2]&&this.parseRawTextElementContent(r[2],t.substring(this.startTagIndex,r.index));break}n=this.markupRegExp.lastIndex;}return n!==t.length&&this.currentNode&&this.parsePlainText(t.substring(n)),this.rootNode}parsePlainText(t){if(this.documentStructure){let e=this.documentStructure.level,{documentElement:r,head:n,body:i}=this.documentStructure.nodes,s=(this.currentNode===this.rootNode||this.currentNode===r)&&e<je.head&&i[Pt].length===0?t.replace(uO,""):t;if(s){let l=this.rootDocument.createTextNode(Xe.decodeHTMLEntities(s));this.currentNode===n&&e===je.additionalHeadWithoutBody?r[co](l,i,true):this.currentNode===this.rootNode||this.currentNode===r||this.currentNode===n&&e>=je.body?e===je.head?r[co](l,i,true):i.lastChild?.[H]===M.textNode?i.lastChild[$t]+=t:i[Ft](l,true):this.currentNode[Ft](l,true);}}else {let e=this.rootDocument.createTextNode(Xe.decodeHTMLEntities(t));this.currentNode[Ft](e,true);}}parseEndOfStartTag(t,e){if(t&&(!this.documentStructure||this.nextElement!==this.documentStructure.nodes.head||this.documentStructure.level<je.body)){let l=new RegExp(sO),a;for(;a=l.exec(t);)if(a[1]&&a[2]||a[3]&&a[5]==='"'||a[6]&&a[8]==="'"||a[9]){let u=a[1]||a[3]||a[6]||a[9]||"",c=a[2]||a[4]||a[7]||"",h=c?Xe.decodeHTMLAttributeValue(c):"",f=this.nextElement[Ct];if(this.nextElement[lt]===Zt.svg){let d=u.split(":"),g=null;switch(d[0]){case "xmlns":g=!d[1]||d[1]==="xlink"?Zt.xmlns:null;break;case "xlink":g=Zt.xlink;break}if(!f.getNamedItemNS(g,d[1]??u)){let A=Je.createNode(this.rootDocument,this.window.Attr);A[lt]=g,A[ct]=u,A[ht]=g&&d[1]?d[1]:u,A[Kt]=g&&d[1]?d[0]:null,A[nt]=h,f[ni](A);}}else if(!f.getNamedItem(u)){let d=this.rootDocument.createAttribute(u);d[nt]=h,f[ni](d);}this.startTagIndex+=a[0].length;}else if(!a[1]&&(a[3]&&!a[5]||a[6]&&!a[8]))return}let r=this.nextElement[st],n=r.toLowerCase(),i=Pr[n],s=null;for(;s!==this.rootNode;){let l=this.currentNode[st]?.toLowerCase(),a=l?Pr[l]:null;if(s===this.currentNode)throw new Error("Failed to parse HTML: The parser is stuck in an infinite loop. Please report this issue.");if(s=this.currentNode,i?.contentModel===_.noFirstLevelSelfDescendants&&this.tagNameStack[this.tagNameStack.length-1]===r||a?.contentModel===_.textOrComments||a?.contentModel===_.noForbiddenFirstLevelDescendants&&a?.forbiddenDescendants?.includes(n)||a?.contentModel===_.permittedDescendants&&!a?.permittedDescendants?.includes(n)&&(!i||!i.addPermittedParent||Pr[i.addPermittedParent].permittedParents&&!Pr[i.addPermittedParent].permittedParents.includes(l)||Pr[i.addPermittedParent].permittedDescendants&&!Pr[i.addPermittedParent].permittedDescendants.includes(n))){if(a?.contentModel===_.permittedDescendants&&a.moveForbiddenDescendant&&!a.moveForbiddenDescendant.exclude.includes(n)){let u=this.currentNode;for(;u&&!(!u.parentNode||!Pr[u.parentNode[ht]]?.permittedDescendants||Pr[u.parentNode[ht]]?.permittedDescendants?.includes(n));)u=u.parentNode;u&&u.parentNode?u.parentNode.insertBefore(this.nextElement,u):u.appendChild(this.nextElement),this.startTagIndex=this.markupRegExp.lastIndex,this.readState=ar.any;return}this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode;}else if(i?.contentModel===_.noSelfDescendants&&this.tagNameStack.includes(r))for(;this.currentNode!==this.rootNode;){if(this.currentNode[st]===r){this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode;break}this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode;}else if(!this.isTemplateDocumentFragment&&i?.permittedParents&&!i.permittedParents.includes(l)){if(!i.addPermittedParent||Pr[i.addPermittedParent].permittedParents&&!Pr[i.addPermittedParent].permittedParents.includes(l)||Pr[i.addPermittedParent].permittedDescendants&&!Pr[i.addPermittedParent].permittedDescendants.includes(n)){this.readState=ar.any,this.startTagIndex=this.markupRegExp.lastIndex;return}let u=this.rootDocument.createElement(i.addPermittedParent);this.currentNode[Ft](u,true),this.nodeStack.push(u),this.tagNameStack.push(u[st]),this.currentNode=u;}else break}if(this.documentStructure){let{documentElement:l,head:a,body:u}=this.documentStructure.nodes,c=this.documentStructure.level;(!i||i.contentModel!==_.rawText)&&this.nextElement!==l&&this.nextElement!==a&&this.nextElement!==u&&(l&&(this.currentNode===this.rootNode||this.currentNode===l||this.currentNode===a&&c>=je.body)?(c<je.body&&(this.documentStructure.level=je.afterBody),u[Ft](this.nextElement,true)):this.currentNode[Ft](this.nextElement,true));}else this.currentNode[Ft](this.nextElement,true);!this.documentStructure||this.nextElement!==this.documentStructure.nodes.body||this.documentStructure.level<=je.body?(this.currentNode=this.nextElement,this.nodeStack.push(this.currentNode),this.tagNameStack.push(r),this.documentStructure&&this.nextElement===this.documentStructure.nodes.body&&(this.documentStructure.level=je.afterBody),i?.contentModel===_.noDescendants||e&&this.currentNode[lt]===Zt.svg?(this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode,this.readState=ar.any):this.readState=i?.contentModel===_.rawText?ar.rawTextElement:ar.any):this.readState=ar.any,this.startTagIndex=this.markupRegExp.lastIndex;}parseEndTag(t){let e=this.currentNode[lt]===Zt.html?eo.asciiUpperCase(t):gf[eo.asciiLowerCase(t)]?.localName||t,r=this.tagNameStack.lastIndexOf(e);r!==-1&&(this.nodeStack.splice(r,this.nodeStack.length-r),this.tagNameStack.splice(r,this.tagNameStack.length-r),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode);}parseComment(t){let e=this.rootDocument.createComment(Xe.decodeHTMLEntities(t));if(this.documentStructure){let r=this.documentStructure.level,{documentElement:n,head:i,body:s}=this.documentStructure.nodes,l=null;this.currentNode===this.rootNode&&r===je.root?l=n:this.currentNode===n&&r===je.documentElement?l=i:this.currentNode===n&&r===je.head&&(l=s),this.currentNode[co](e,l,true);}else this.currentNode[Ft](e,true);this.readState=ar.any;}parseDocumentType(t){let e=Xe.decodeHTMLEntities(t);if(this.documentStructure){let{doctype:r}=this.documentStructure.nodes,n=this.getDocumentType(e);n?this.currentNode===this.rootNode&&this.documentStructure.level===je.root&&(r?(r[ct]=n.name,r[fl]=n.publicId,r[bl]=n.systemId):(r=this.rootNode.implementation.createDocumentType(n.name,n.publicId,n.systemId),this.rootNode.insertBefore(r,this.rootNode.documentElement)),this.documentStructure.level=je.doctype):this.parseComment(e);}else this.getDocumentType(e)||this.parseComment(e);this.readState=ar.any;}parseRawTextElementContent(t,e){let r=eo.asciiUpperCase(t);if(r!==this.currentNode[st])return;r==="SCRIPT"?this.currentNode[Nl]=!this.evaluateScripts:r==="LINK"&&(this.currentNode[Nl]=!this.evaluateScripts),this.currentNode[Ft](this.rootDocument.createTextNode(e),true);let n=this.currentNode;if(this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode,this.readState=ar.any,this.documentStructure){let{documentElement:i,body:s}=this.documentStructure.nodes;i&&(this.currentNode===this.rootNode||this.currentNode===i)?s[Ft](n,true):this.currentNode[Ft](n,true);}else this.currentNode[Ft](n,true);}getStartTagElement(t){let e=eo.asciiLowerCase(t),r=this.currentNode[lt];if(e==="svg")return this.rootDocument.createElementNS(Zt.svg,"svg");if(r===Zt.svg)return this.rootDocument.createElementNS(Zt.svg,gf[e]?.localName||t);switch(e){case "html":return this.documentStructure?(this.documentStructure.level<je.documentElement&&(this.documentStructure.level=je.documentElement),this.documentStructure.nodes.documentElement??null):null;case "head":return this.documentStructure?(this.documentStructure.level<je.head?this.documentStructure.level=je.head:this.documentStructure.level===je.head&&(this.documentStructure.level=je.additionalHeadWithoutBody),this.documentStructure.nodes.head??null):null;case "body":return this.documentStructure?(this.documentStructure.level<je.body&&(this.documentStructure.level=je.body),this.documentStructure.nodes.body??null):null;default:return this.rootDocument.createElementNS(Zt.html,e)}}getDocumentType(t){if(!t.toUpperCase().startsWith("DOCTYPE"))return null;let e=t.split(aO);if(e.length<=1)return null;let r=e.slice(1).join(" "),n=[],i=new RegExp(lO,"gm"),s=r.toUpperCase().includes("PUBLIC"),l;for(;l=i.exec(r);)n.push(l[1]);let a=s&&n[0]||"",u=s?n[1]||"":n[0]||"";return {name:e[1].toLowerCase(),publicId:a,systemId:u}}};g();var cO=/[\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]/,VS=class{static validateAttributeName(t,e,r){let{method:n,instance:i}=r;if(e==="text/html"){let s=String(t).toLowerCase();if(cO.test(s)||s.length===0||s[0]==="-")throw new de(`Uncaught InvalidCharacterError: Failed to execute '${n}' on '${i}': '${t}' is not a valid attribute name.`,k.invalidCharacterError)}}};g();var E=class{static getEventListener(t,e){let r=t[y].get(e);if(r)return r;let n=t[N][ao];if(!n)return null;let i=new rt(n).getSettings();if(!i||!i.enableJavaScriptEvaluation)return null;let s=t.getAttribute(e);if(!s)return null;let l="(function anonymous($happy_dom, event) {";i&&!i.disableErrorCapturing&&i.errorCapture===be.tryAndCatch&&(l+=`try {
121
+ `),l+=s,i&&!i.disableErrorCapturing&&i.errorCapture===be.tryAndCatch&&(l+="} catch(e) { $happy_dom.dispatchError(e); }"),l+="})";let a=null;try{a=n[Nn](l,{filename:n.location.href}).bind(t,{dispatchError:n[Pe].bind(n)});}catch(u){let c=new n.SyntaxError(`Failed to read the '${e}' property from '${t.constructor.name}': ${u.message}`);if(i.disableErrorCapturing||i.errorCapture!==be.tryAndCatch)throw c;return n[Pe](c),null}return a&&t[y].set(e,a),a}};var zr=class extends Et{static[st]=null;static[ht]=null;static[lt]=null;[fp]=null;[Go]=null;[H]=M.elementNode;[Kt]=null;[Me]=null;[gw]=0;[Sw]=0;[eS]=0;[rS]=0;[Ct]=new Fs(this);[Pp]=null;[Lr]=null;[Xu]=null;[vy]=new Set;[y]=new Map;constructor(){super(),this[st]||(this[st]=null),this[ht]||(this[ht]=null),this[lt]||(this[lt]=null);}get onfullscreenerror(){return E.getEventListener(this,"onfullscreenerror")}set onfullscreenerror(t){this[y].set("onfullscreenerror",t);}get onfullscreenchange(){return E.getEventListener(this,"onfullscreenchange")}set onfullscreenchange(t){this[y].set("onfullscreenchange",t);}get onbeforecopy(){return E.getEventListener(this,"onbeforecopy")}set onbeforecopy(t){this[y].set("onbeforecopy",t);}get onbeforecut(){return E.getEventListener(this,"onbeforecut")}set onbeforecut(t){this[y].set("onbeforecut",t);}get onbeforepaste(){return E.getEventListener(this,"onbeforepaste")}set onbeforepaste(t){this[y].set("onbeforepaste",t);}get onsearch(){return E.getEventListener(this,"onsearch")}set onsearch(t){this[y].set("onsearch",t);}get tagName(){return this[st]}get prefix(){return this[Kt]}get shadowRoot(){let t=this[Me];return t&&t[We]==="open"?t:null}get scrollHeight(){return this[gw]}get scrollWidth(){return this[Sw]}get scrollTop(){return this[eS]}set scrollTop(t){this[eS]=t;}get scrollLeft(){return this[rS]}set scrollLeft(t){this[rS]=t;}get attributes(){return this[Pp]||(this[Pp]=bf.createProxy(this[Ct])),this[Pp]}get namespaceURI(){return this[lt]}get children(){if(!this[Lr]){let t=this[Pt];this[Lr]=new Fe(b,()=>t);}return this[Lr]}get classList(){return this[fp]||(this[fp]=new go(b,this,"class")),this[fp]}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[st]}get localName(){return this[ht]}get role(){return this.getAttribute("role")||""}set role(t){this.setAttribute("role",t);}get previousElementSibling(){return Vl.previousElementSibling(this)}get nextElementSibling(){return Vl.nextElementSibling(this)}get textContent(){let t="";for(let e of this[j])(e[H]===M.elementNode||e[H]===M.textNode)&&(t+=e.textContent);return t}set textContent(t){let e=this[j];for(;e.length;)this.removeChild(e[0]);t&&this.appendChild(this[N].createTextNode(t));}get innerHTML(){return this.getHTML()}set innerHTML(t){let e=this[j];for(;e.length;)this.removeChild(e[0]);new Wr(this[m]).parse(t,this);}get outerHTML(){return new Vn().serializeToString(this)}set outerHTML(t){let e=new Wr(this[m]).parse(t)[j];this.replaceWith(...e);}get childElementCount(){return this[Pt].length}get firstElementChild(){return this[Pt][0]??null}get lastElementChild(){let t=this[Pt];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 Vn({allShadowRoots:!!t?.includeShadowRoots}),r="";for(let n of this[j])r+=e.serializeToString(n);return r}getHTML(t){let e=new Vn({serializableShadowRoots:!!t?.serializableShadowRoots,shadowRoots:t?.shadowRoots??null}),r="";for(let n of this[j])r+=e.serializeToString(n);return r}[xt](t=false){let e=super[xt](t);e[st]=this[st],e[ht]=this[ht],e[lt]=this[lt],this[Me]?.[Ia]&&(e[Me]=this[Me].cloneNode(t),e[Me][Ca]=e),e[Ct]=new Fs(e);for(let r of this[Ct][X].values())e[Ct].setNamedItem(r.cloneNode(t));return e}remove(){Bn.remove(this);}replaceWith(...t){Bn.replaceWith(this,...t);}before(...t){Bn.before(this,...t);}after(...t){Bn.after(this,...t);}append(...t){fe.append(this,...t);}prepend(...t){fe.prepend(this,...t);}replaceChildren(...t){fe.replaceChildren(this,...t);}insertAdjacentElement(t,e){if(t==="beforebegin"){if(!this.parentElement)return null;this.parentElement.insertBefore(e,this);}else if(t==="afterbegin")this.insertBefore(e,this.firstChild);else if(t==="beforeend")this.appendChild(e);else if(t==="afterend"){if(!this.parentElement)return null;this.parentElement.insertBefore(e,this.nextSibling);}return e}insertAdjacentHTML(t,e){let r=new Wr(this[m]).parse(e)[j];for(;r.length;)this.insertAdjacentElement(t,r[0]);}insertAdjacentText(t,e){if(!e)return;let r=this[N].createTextNode(e);this.insertAdjacentElement(t,r);}setAttribute(t,e){if(VS.validateAttributeName(t,this[N][$e],{method:"setAttribute",instance:"Element"}),t=String(t),this[lt]===Zt.html){let n=this[N].createAttribute(t);n[nt]=String(e),this[Ct][ni](n);}else {let n=t.split(":"),i=null;switch(n[0]){case "xmlns":i=!n[1]||n[1]==="xlink"?Zt.xmlns:null;break;case "xlink":i=Zt.xlink;break}let s=Je.createNode(this[N],this[m].Attr);s[lt]=i,s[ct]=t,s[ht]=i&&n[1]?n[1]:t,s[Kt]=i&&n[1]?n[0]:null,s[nt]=String(e),this[Ct][ni](s);}}setAttributeNS(t,e,r){let n=this[N].createAttributeNS(t,e);if(!t&&n[Kt])throw new this[m].DOMException("Failed to execute 'setAttributeNS' on 'Element': '' is an invalid namespace for attributes.",k.namespaceError);n[nt]=String(r),this[Ct].setNamedItemNS(n);}getAttributeNames(){let t=[];for(let e of this[Ct][X].values())t.push(e[ct]);return t}getAttribute(t){let e=this[Ct].getNamedItem(t);return e?e[nt]:null}toggleAttribute(t,e){t=t.toLowerCase();let r=this[Ct].getNamedItem(t);return r?e===true?true:(this[Ct][gl](r),false):e===false?false:(this.setAttribute(t,""),true)}getAttributeNS(t,e){let r=this.getAttributeNodeNS(t,e);return r?r[nt]:null}hasAttribute(t){return !!this.getAttributeNode(t)}hasAttributeNS(t,e){return this[Ct].getNamedItemNS(t,e)!==null}hasAttributes(){return this[Ct][X].size>0}removeAttribute(t){let e=this[Ct].getNamedItem(t);e&&this[Ct][gl](e);}removeAttributeNS(t,e){let r=this[Ct].getNamedItemNS(t,e);r&&this[Ct][gl](r);}attachShadow(t){let e=this[m];if(!t)throw new e.TypeError("Failed to execute 'attachShadow' on 'Element': 1 argument required, but only 0 present.");if(!t.mode)throw new e.TypeError("Failed to execute 'attachShadow' on 'Element': Failed to read the 'mode' property from 'ShadowRootInit': Required member is undefined.");if(t.mode!=="open"&&t.mode!=="closed")throw new e.TypeError(`Failed to execute 'attachShadow' on 'Element': Failed to read the 'mode' property from 'ShadowRootInit': The provided value '${t.mode}' is not a valid enum value of type ShadowRootMode.`);if(this[Me])throw new e.DOMException("Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.");let r=Je.createNode(this[N],this[m].ShadowRoot);return this[Me]=r,r[Ca]=this,r[We]=t.mode,r[Ia]=!!t.clonable,r[Zu]=!!t.delegateFocus,r[is]=!!t.serializable,r[Ii]=t.slotAssignment==="manual"?"manual":"named",r[Ho](),this[Me]}toString(){return this.outerHTML}getBoundingClientRect(){return new mi}getClientRects(){let t=new vc(b);return t.push(this.getBoundingClientRect()),t}setPointerCapture(t){this[vy].add(t);}hasPointerCapture(t){return this[vy].has(t)}releasePointerCapture(t){this[vy].delete(t);}matches(t){return !!ft.matches(this,t)}closest(t){let e=this;for(;e;){if(ft.matches(e,t))return e;e=e.parentElement;}return null}querySelectorAll(t){return ft.querySelectorAll(this,t)}querySelector(t){return ft.querySelector(this,t)}getElementsByClassName(t){return fe.getElementsByClassName(this,t)}getElementsByTagName(t){return fe.getElementsByTagName(this,t)}getElementsByTagNameNS(t,e){return fe.getElementsByTagNameNS(this,t,e)}setAttributeNode(t){return this[Ct].setNamedItem(t)}setAttributeNodeNS(t){return this[Ct].setNamedItemNS(t)}getAttributeNode(t){return this[Ct].getNamedItem(t)}getAttributeNodeNS(t,e){return this[Ct].getNamedItemNS(t,e)}removeAttributeNode(t){if(t[Ht]!==this)throw new this[m].DOMException("Failed to execute 'removeAttributeNode' on 'Element': The node provided is owned by another element.");return this[Ct][gl](t),t}scroll(t,e){if(typeof t!="object"&&arguments.length===1)throw new this[m].TypeError("Failed to execute 'scroll' on 'Element': The provided value is not of type 'ScrollToOptions'.");let r=typeof t=="object"?t:{left:t,top:e};if(r.behavior==="smooth")this[m].setTimeout(()=>{if(r.top!==void 0){let n=Number(r.top);this.scrollTop=isNaN(n)?0:n;}if(r.left!==void 0){let n=Number(r.left);this.scrollLeft=isNaN(n)?0:n;}});else {if(r.top!==void 0){let n=Number(r.top);this.scrollTop=isNaN(n)?0:n;}if(r.left!==void 0){let n=Number(r.left);this.scrollLeft=isNaN(n)?0:n;}}}scrollTo(t,e){if(typeof t!="object"&&arguments.length===1)throw new this[m].TypeError("Failed to execute 'scrollTo' on 'Element': The provided value is not of type 'ScrollToOptions'.");this.scroll(t,e);}scrollBy(t,e){if(typeof t!="object"&&arguments.length===1)throw new this[m].TypeError("Failed to execute 'scrollBy' on 'Element': The provided value is not of type 'ScrollToOptions'.");let r=typeof t=="object"?t:{left:t,top:e};this.scroll({left:this.scrollLeft+(r.left??0),top:this.scrollTop+(r.top??0),behavior:r.behavior});}scrollIntoView(t){}checkVisibility(t){if(!this[pt])return false;let e=this;for(;e;){let r=this[m].getComputedStyle(e);if(r.display==="none")return false;if(r.display==="contents"){let n=false;for(let i of e[Pt])if(this[m].getComputedStyle(i).display!=="none"){n=true;break}if(!n)return false}if((t?.opacityProperty||t?.checkOpacity)&&r.opacity==="0"||(t?.visibilityProperty||t?.checkVisibilityCSS)&&r.visibility==="hidden")return false;e=e.parentElement;}return true}[Ft](t,e=false){let r=super[Ft](t,e);return this.#r(t),r}[Hr](t){let e=super[Hr](t);return this.#r(t),e}[co](t,e,r=false){let n=super[co](t,e,r);return this.#r(t),n}[ze](t,e){if(!t[ct])return;let r=e?e[nt]:null;if(t[ct]==="slot"&&this[K]&&this[K][Me]){let n=this[K][Me];if(n&&t[nt]!==r){if(r!==null&&e){let s=n.querySelector(`slot[name="${e[nt]}"]`);s&&s.dispatchEvent(new I("slotchange",{bubbles:true}));}else {let s=n.querySelector("slot:not([name])");s&&s.dispatchEvent(new I("slotchange",{bubbles:true}));}let i=n.querySelector(`slot[name="${t[nt]}"]`);i&&i.dispatchEvent(new I("slotchange",{bubbles:true}));}}this[t[ct]]!==void 0&&t[ct][0]==="o"&&t[ct][1]==="n"&&this[y].delete(t[ct]),t[ct]==="id"&&this[pt]&&(e?.[nt]&&this.#e(e[nt]),this.#t(t[nt])),this[es](new ln({type:pi.attributes,target:this,attributeName:t[ct],oldValue:r}));}[br](t){if(t[ct]==="slot"&&this[K]&&this[K][Me]){let e=this[K][Me],r=e.querySelector(`slot[name="${t[nt]}"]`),n=e.querySelector("slot:not([name])");r&&r.dispatchEvent(new I("slotchange",{bubbles:true})),n&&n.dispatchEvent(new I("slotchange",{bubbles:true}));}t[ct]==="id"&&this[pt]&&this.#e(t[nt]),this[es](new ln({type:pi.attributes,target:this,attributeName:t[ct],oldValue:t[nt]}));}[Mr](){let t=this.getAttribute("id");if(t&&this.#t(t),super[Mr](),this[m][Tl].enqueueReaction(this,"connectedCallback"),this[Me])for(let e of this[j])this.#r(e);}[Ir](){super[Ir]();let t=this.getAttribute("id");t&&this.#e(t),this[m][Tl].enqueueReaction(this,"disconnectedCallback");}[It](){let t=this.getAttribute("id");t&&this.#e(t),this[m][Tl].enqueueReaction(this,"disconnectedCallback"),super[It](),this[Me]&&this[Me][It](),this[fp]=null,this[Me]=null,this[Pp]=null,this[Lr]=null,this[Xu]=null,this[y].clear(),this[Ct][Li].clear(),this[Ct][Co].clear(),this[Ct][X].clear();}#t(t){if(!t)return;let e=this[N],r=this[m];if(this[Ke]&&this[Ke]!==e)return;e[Mi].has(t)||e[Mi].set(t,{elements:[],htmlCollection:null});let n=e[Mi].get(t);if(!n)return;let i=this[jt]||this;n.elements.push(i),n.elements.length>1?(n.htmlCollection||(n.htmlCollection=new Fe(b,()=>n.elements)),(!(t in r)||r[t]===n.elements[0])&&(r[t]=n.htmlCollection)):(!(t in r)||n.htmlCollection!==null&&r[t]===n.htmlCollection)&&(r[t]=i);}#e(t){if(!t)return;let e=this[N],r=this[m];if(this[Ke]&&this[Ke]!==e)return;let n=e[Mi].get(t);if(!n)return;let i=this[jt]||this,s=n.elements.indexOf(i);s!==-1&&n.elements.splice(s,1),n.elements.length===1?(r[t]===n.htmlCollection&&(r[t]=n.elements[0]),n.htmlCollection=null):n.elements.length||(e[Mi].delete(t),(r[t]===i||r[t]===n.htmlCollection)&&delete r[t]);}#r(t){let e=this[Me];if(!e||!this[pt])return;let r=t.getAttribute?t.getAttribute("slot"):null;if(r){let n=e.querySelector(`slot[name="${r}"]`);n&&n.dispatchEvent(new I("slotchange",{bubbles:true}));}else if(t[H]!==M.commentNode){let n=e.querySelector("slot:not([name])");n&&n.dispatchEvent(new I("slotchange",{bubbles:true}));}}};g();g();g();var Hl=class{static blur(t){let e=t[jt]||t,r=e[N];if(r[tr]!==e||!e[pt]||e.disabled)return;let n=r[ml]??null;r[tr]=null,r[po](),e.dispatchEvent(new Hi("blur",{relatedTarget:n,bubbles:false,composed:true,cancelable:true})),e.dispatchEvent(new Hi("focusout",{relatedTarget:n,bubbles:true,composed:true,cancelable:true}));}static focus(t){let e=t[jt]||t,r=e[N];if(r[tr]===e||!e[pt]||e.disabled||this.isInert(e))return;r[ml]=e;let n=r[tr];r[tr]!==null&&r[tr].blur(),r[ml]=null,r[tr]=e,r[po](),e.dispatchEvent(new Hi("focus",{relatedTarget:n,bubbles:false,composed:true})),e.dispatchEvent(new Hi("focusin",{relatedTarget:n,bubbles:true,composed:true}));}static isInert(t){let e=t[jt]||t;for(;e&&typeof e.getAttribute=="function";){if(e.getAttribute("inert")!==null)return true;e=e[K];}return false}};g();g();var _i=class{static kebabToCamelCase(t){let e=t.split("-");for(let r=0,n=e.length;r<n;r++)e[r]=r>0?e[r].charAt(0).toUpperCase()+e[r].slice(1):e[r];return e.join("")}static camelCaseToKebab(t){return t.toString().replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,r)=>(r?"-":"")+e.toLowerCase())}};var Tc=class{constructor(t,e){if(t!==b)throw new TypeError("Illegal constructor");return new Proxy(this,{get(r,n){let i=e.getAttribute("data-"+_i.camelCaseToKebab(n));if(i!==null)return i},set(r,n,i){return e.setAttribute("data-"+_i.camelCaseToKebab(n),i),true},deleteProperty(r,n){return e.removeAttribute("data-"+_i.camelCaseToKebab(n)),true},ownKeys(r){let n=[];for(let i of e[Ct][Co].values())i[0][ct].startsWith("data-")&&n.push(_i.kebabToCamelCase(i[0][ct].replace("data-","")));return n},has(r,n){return e.hasAttribute("data-"+_i.camelCaseToKebab(n))},defineProperty(r,n,i){return i.value===void 0?false:(e.setAttribute("data-"+_i.camelCaseToKebab(n),i.value),true)},getOwnPropertyDescriptor(r,n){let i=e.getAttribute("data-"+_i.camelCaseToKebab(n));if(i)return {value:i,writable:true,enumerable:true,configurable:true}}})}};var U=class extends zr{static observedAttributes;[Ap]="";[Pw]=0;[Aw]=0;[ww]=0;[xw]=0;[Ew]=0;[vw]=0;[Tw]=0;[Cw]=0;[Ie]=null;[dS]=null;#t=null;get oncancel(){return E.getEventListener(this,"oncancel")}set oncancel(t){this[y].set("oncancel",t);}get onerror(){return E.getEventListener(this,"onerror")}set onerror(t){this[y].set("onerror",t);}get onscroll(){return E.getEventListener(this,"onscroll")}set onscroll(t){this[y].set("onscroll",t);}get onselect(){return E.getEventListener(this,"onselect")}set onselect(t){this[y].set("onselect",t);}get onwheel(){return E.getEventListener(this,"onwheel")}set onwheel(t){this[y].set("onwheel",t);}get oncopy(){return E.getEventListener(this,"oncopy")}set oncopy(t){this[y].set("oncopy",t);}get oncut(){return E.getEventListener(this,"oncut")}set oncut(t){this[y].set("oncut",t);}get onpaste(){return E.getEventListener(this,"onpaste")}set onpaste(t){this[y].set("onpaste",t);}get oncompositionend(){return E.getEventListener(this,"oncompositionend")}set oncompositionend(t){this[y].set("oncompositionend",t);}get oncompositionstart(){return E.getEventListener(this,"oncompositionstart")}set oncompositionstart(t){this[y].set("oncompositionstart",t);}get oncompositionupdate(){return E.getEventListener(this,"oncompositionupdate")}set oncompositionupdate(t){this[y].set("oncompositionupdate",t);}get onblur(){return E.getEventListener(this,"onblur")}set onblur(t){this[y].set("onblur",t);}get onfocus(){return E.getEventListener(this,"onfocus")}set onfocus(t){this[y].set("onfocus",t);}get onfocusin(){return E.getEventListener(this,"onfocusin")}set onfocusin(t){this[y].set("onfocusin",t);}get onfocusout(){return E.getEventListener(this,"onfocusout")}set onfocusout(t){this[y].set("onfocusout",t);}get onkeydown(){return E.getEventListener(this,"onkeydown")}set onkeydown(t){this[y].set("onkeydown",t);}get onkeyup(){return E.getEventListener(this,"onkeyup")}set onkeyup(t){this[y].set("onkeyup",t);}get onauxclick(){return E.getEventListener(this,"onauxclick")}set onauxclick(t){this[y].set("onauxclick",t);}get onclick(){return E.getEventListener(this,"onclick")}set onclick(t){this[y].set("onclick",t);}get oncontextmenu(){return E.getEventListener(this,"oncontextmenu")}set oncontextmenu(t){this[y].set("oncontextmenu",t);}get ondblclick(){return E.getEventListener(this,"ondblclick")}set ondblclick(t){this[y].set("ondblclick",t);}get onmousedown(){return E.getEventListener(this,"onmousedown")}set onmousedown(t){this[y].set("onmousedown",t);}get onmouseenter(){return E.getEventListener(this,"onmouseenter")}set onmouseenter(t){this[y].set("onmouseenter",t);}get onmouseleave(){return E.getEventListener(this,"onmouseleave")}set onmouseleave(t){this[y].set("onmouseleave",t);}get onmousemove(){return E.getEventListener(this,"onmousemove")}set onmousemove(t){this[y].set("onmousemove",t);}get onmouseout(){return E.getEventListener(this,"onmouseout")}set onmouseout(t){this[y].set("onmouseout",t);}get onmouseover(){return E.getEventListener(this,"onmouseover")}set onmouseover(t){this[y].set("onmouseover",t);}get onmouseup(){return E.getEventListener(this,"onmouseup")}set onmouseup(t){this[y].set("onmouseup",t);}get ontouchcancel(){return E.getEventListener(this,"ontouchcancel")}set ontouchcancel(t){this[y].set("ontouchcancel",t);}get ontouchend(){return E.getEventListener(this,"ontouchend")}set ontouchend(t){this[y].set("ontouchend",t);}get ontouchmove(){return E.getEventListener(this,"ontouchmove")}set ontouchmove(t){this[y].set("ontouchmove",t);}get ontouchstart(){return E.getEventListener(this,"ontouchstart")}set ontouchstart(t){this[y].set("ontouchstart",t);}get oninvalid(){return E.getEventListener(this,"oninvalid")}set oninvalid(t){this[y].set("oninvalid",t);}get onanimationcancel(){return E.getEventListener(this,"onanimationcancel")}set onanimationcancel(t){this[y].set("onanimationcancel",t);}get onanimationend(){return E.getEventListener(this,"onanimationend")}set onanimationend(t){this[y].set("onanimationend",t);}get onanimationiteration(){return E.getEventListener(this,"onanimationiteration")}set onanimationiteration(t){this[y].set("onanimationiteration",t);}get onanimationstart(){return E.getEventListener(this,"onanimationstart")}set onanimationstart(t){this[y].set("onanimationstart",t);}get onbeforeinput(){return E.getEventListener(this,"onbeforeinput")}set onbeforeinput(t){this[y].set("onbeforeinput",t);}get oninput(){return E.getEventListener(this,"oninput")}set oninput(t){this[y].set("oninput",t);}get onchange(){return E.getEventListener(this,"onchange")}set onchange(t){this[y].set("onchange",t);}get ongotpointercapture(){return E.getEventListener(this,"ongotpointercapture")}set ongotpointercapture(t){this[y].set("ongotpointercapture",t);}get onlostpointercapture(){return E.getEventListener(this,"onlostpointercapture")}set onlostpointercapture(t){this[y].set("onlostpointercapture",t);}get onpointercancel(){return E.getEventListener(this,"onpointercancel")}set onpointercancel(t){this[y].set("onpointercancel",t);}get onpointerdown(){return E.getEventListener(this,"onpointerdown")}set onpointerdown(t){this[y].set("onpointerdown",t);}get onpointerenter(){return E.getEventListener(this,"onpointerenter")}set onpointerenter(t){this[y].set("onpointerenter",t);}get onpointerleave(){return E.getEventListener(this,"onpointerleave")}set onpointerleave(t){this[y].set("onpointerleave",t);}get onpointermove(){return E.getEventListener(this,"onpointermove")}set onpointermove(t){this[y].set("onpointermove",t);}get onpointerout(){return E.getEventListener(this,"onpointerout")}set onpointerout(t){this[y].set("onpointerout",t);}get onpointerover(){return E.getEventListener(this,"onpointerover")}set onpointerover(t){this[y].set("onpointerover",t);}get onpointerup(){return E.getEventListener(this,"onpointerup")}set onpointerup(t){this[y].set("onpointerup",t);}get ontransitioncancel(){return E.getEventListener(this,"ontransitioncancel")}set ontransitioncancel(t){this[y].set("ontransitioncancel",t);}get ontransitionend(){return E.getEventListener(this,"ontransitionend")}set ontransitionend(t){this[y].set("ontransitionend",t);}get ontransitionrun(){return E.getEventListener(this,"ontransitionrun")}set ontransitionrun(t){this[y].set("ontransitionrun",t);}get ontransitionstart(){return E.getEventListener(this,"ontransitionstart")}set ontransitionstart(t){this[y].set("ontransitionstart",t);}get accessKey(){return this[Ap]}set accessKey(t){this[Ap]=t;}get contentEditable(){let t=String(this.getAttribute("contentEditable")).toLowerCase();switch(t){case "false":case "true":case "plaintext-only":return t;default:return "inherit"}}set contentEditable(t){switch(t=String(t).toLowerCase(),t){case "false":case "true":case "plaintext-only":case "inherit":this.setAttribute("contentEditable",t);break;default:throw new this[m].SyntaxError(`Failed to set the 'contentEditable' property on 'HTMLElement': The value provided ('${t}') is not one of 'true', 'false', 'plaintext-only', or 'inherit'.`)}}get isContentEditable(){let t=this.contentEditable;return t==="true"||t==="plaintext-only"?true:t==="inherit"?this[K]?.isContentEditable??false:false}get offsetHeight(){return this[Pw]}get offsetWidth(){return this[Aw]}get offsetLeft(){return this[ww]}get offsetTop(){return this[xw]}get clientHeight(){return this[Ew]}get clientWidth(){return this[vw]}get clientLeft(){return this[Tw]}get clientTop(){return this[Cw]}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?-1:e}return -1}set tabIndex(t){let e=Number(t);isNaN(e)?this.setAttribute("tabindex","0"):this.setAttribute("tabindex",String(e));}get innerText(){if(!this[pt])return this.textContent;let t="";for(let e of this[j])if(e[H]===M.elementNode){let r=e,n=this[m].getComputedStyle(r);if(r[st]!=="SCRIPT"&&r[st]!=="STYLE"&&r[st]!=="svg"){let i=n.display;if(i!=="none"){let s=n.textTransform,l=r.innerText;(i==="block"||i==="flex")&&t&&l&&(t+=`
122
+ `);let a=l;switch(s){case "uppercase":a=a.toUpperCase();break;case "lowercase":a=a.toLowerCase();break;case "capitalize":a=a.replace(/(^|\s)\S/g,u=>u.toUpperCase());break}t+=a;}}}else e[H]===M.textNode&&(t+=e.textContent.replace(/[\n\r]/,""));return t}set innerText(t){let e=this[j];for(;e.length;)this.removeChild(e[0]);let r=t.split(/[\n\r]/),n=this[N];for(let i=0,s=r.length;i<s;i++)i!==0&&this.appendChild(n.createElement("br")),this.appendChild(n.createTextNode(r[i]));}get outerText(){return this.innerText}set outerText(t){if(!this[K])throw new this[m].DOMException("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");let e=t.split(/[\n\r]/);for(let r=0,n=e.length;r<n;r++)r!==0&&this[K].insertBefore(this[N].createElement("br"),this),this[K].insertBefore(this[N].createTextNode(e[r]),this);this[K].removeChild(this);}get style(){return this[Ie]||(this[Ie]=new bo(b,this[m],{element:this})),this[Ie]}set style(t){this.style.cssText=typeof t=="string"?t:"";}get dataset(){return this[dS]??=new Tc(b,this)}get dir(){return this.getAttribute("dir")||""}set dir(t){this.setAttribute("dir",t);}get hidden(){return this.getAttribute("hidden")!==null}set hidden(t){t?this.setAttribute("hidden",""):this.removeAttribute("hidden");}get inert(){return this.getAttribute("inert")!==null}set inert(t){t?this.setAttribute("inert",""):this.removeAttribute("inert");}get lang(){return this.getAttribute("lang")||""}set lang(t){this.setAttribute("lang",t);}get title(){return this.getAttribute("title")||""}set title(t){this.setAttribute("title",t);}get popover(){switch(this.getAttribute("popover")){case null:return null;case "":case "auto":return "auto";case "manual":return "manual";default:return "manual"}}set popover(t){if(t===null){this.removeAttribute("popover");return}this.setAttribute("popover",t);}click(){this.dispatchEvent(new eu("click",{bubbles:true,composed:true,cancelable:true}));}blur(){Hl.blur(this);}focus(){Hl.focus(this);}[xt](t=false){let e=super[xt](t);return e[Ap]=this[Ap],e}[Mr](){let t=this[m],e=this[ht],r=t.customElements[Ti];if(this.constructor===t.HTMLElement&&e.includes("-")&&r&&!this.#t){let n=this.#e.bind(this),i=r.get(e);i?i.unshift(n):r.set(e,[n]),this.#t=n;}super[Mr]();}[Ir](){let t=this[m],e=this[ht],r=t.customElements[Ti];if(this.constructor===t.HTMLElement&&e.includes("-")&&r){let n=r.get(e);if(n&&this.#t){let i=n.indexOf(this.#t);i!==-1&&n.splice(i,1),n.length||r.delete(e),this.#t=null;}}super[Ir]();}[ze](t,e){super[ze](t,e),this[m][Tl].enqueueReaction(this,"attributeChangedCallback",[t.name,e?.value??null,t.value]);}[br](t){super[br](t),this[m][Tl].enqueueReaction(this,"attributeChangedCallback",[t.name,t.value,null]);}[It](){super[It](),this[Ie]=null,this[dS]=null;}#e(){if(!this[K])return;let t=this[m],e=this[ht],r=this[N].createElement(e),n=r[$];r[j]=this[j],r[Pt]=this[Pt],r[ul]=null,r[Lr]=null,r[pt]=this[pt],r[Ke]=this[Ke],r[Xt]=this[Xt],r[K]=this[K],r[er]=this[er],r[xr]=this[xr],r[Uo]=this[Uo],r[Go]=this[Go],r[$]=this[$],r[ur]=this[ur],r[Ct][Li]=this[Ct][Li],r[Ct][Co]=this[Ct][Co],r[Ct][X]=this[Ct][X];for(let u of r[Ct][X].values())u[Ht]=r;this[po](),this[j]=[],this[Pt]=[],this[ul]=null,this[Lr]=null,this[K]=null,this[Ke]=null,this[Xt]=null,this[er]=null,this[xr]=null,this[Uo]=[],this[Go]=null,this[$]=n,this[ur]=[],this[Ct][Li]=new Map,this[Ct][Co]=new Map,this[Ct][X]=new Map;for(let u of r[j])u[K]=r;let i=r[K][j],s=r[K][Pt];i[i.indexOf(this)]=r,s[s.indexOf(this)]=r;let l=t.customElements[Ti],a=l.get(e);if(a&&this.#t){let u=a.indexOf(this.#t);u!==-1&&a.splice(u,1),a.length||l.delete(e),this.#t=null;}r[pt]&&(r[Me]&&(r[Me][pt]=true),r[Mr]());}};g();var Cc=class{element;constructor(t){this.element=t;}getOrigin(){try{return new URL(this.getHref()).origin}catch{return ""}}getHref(){if(!this.element.hasAttribute("href"))return "";try{return new URL(this.element.getAttribute("href"),this.element[N].location.href).href}catch{return this.element.getAttribute("href")}}setHref(t){this.element.setAttribute("href",t);}getProtocol(){try{return new URL(this.getHref()).protocol}catch{return ""}}setProtocol(t){let e;try{e=new URL(this.getHref());}catch{return}e.protocol=t,this.element.setAttribute("href",e.href);}getUsername(){try{return new URL(this.getHref()).username}catch{return ""}}setUsername(t){let e;try{e=new URL(this.getHref());}catch{return}e.username=t,this.element.setAttribute("href",e.href);}getPassword(){try{return new URL(this.getHref()).password}catch{return ""}}setPassword(t){let e;try{e=new URL(this.getHref());}catch{return}e.password=t,this.element.setAttribute("href",e.href);}getHost(){try{return new URL(this.getHref()).host}catch{return ""}}setHost(t){let e;try{e=new URL(this.getHref());}catch{return}e.host=t,this.element.setAttribute("href",e.href);}getHostname(){try{return new URL(this.getHref()).hostname}catch{return ""}}setHostname(t){let e;try{e=new URL(this.getHref());}catch{return}e.hostname=t,this.element.setAttribute("href",e.href);}getPort(){try{return new URL(this.getHref()).port}catch{return ""}}setPort(t){let e;try{e=new URL(this.getHref());}catch{return}e.port=t,this.element.setAttribute("href",e.href);}getPathname(){try{return new URL(this.getHref()).pathname}catch{return ""}}setPathname(t){let e;try{e=new URL(this.getHref());}catch{return}e.pathname=t,this.element.setAttribute("href",e.href);}getSearch(){try{return new URL(this.getHref()).search}catch{return ""}}setSearch(t){let e;try{e=new URL(this.getHref());}catch{return}e.search=t,this.element.setAttribute("href",e.href);}getHash(){let t=this.element.getAttribute("href");if(t?.[0]==="#")return t;let e;try{e=new URL(this.getHref());}catch{return ""}return e.hash}setHash(t){let e;try{e=new URL(this.getHref());}catch{return}e.hash=t,this.element.setAttribute("href",e.href);}};var nm=class extends U{[Wo]=null;#t=new Cc(this);get download(){return this.getAttribute("download")||""}set download(t){this.setAttribute("download",t);}get hash(){return this.#t.getHash()}set hash(t){this.#t.setHash(t);}get href(){return this.#t.getHref()}set href(t){this.#t.setHref(t);}get hreflang(){return this.getAttribute("hreflang")||""}set hreflang(t){this.setAttribute("hreflang",t);}get origin(){return this.#t.getOrigin()}get ping(){return this.getAttribute("ping")||""}set ping(t){this.setAttribute("ping",t);}get protocol(){return this.#t.getProtocol()}set protocol(t){this.#t.setProtocol(t);}get username(){return this.#t.getUsername()}set username(t){this.#t.setUsername(t);}get password(){return this.#t.getPassword()}set password(t){this.#t.setPassword(t);}get pathname(){return this.#t.getPathname()}set pathname(t){this.#t.setPathname(t);}get port(){return this.#t.getPort()}set port(t){this.#t.setPort(t);}get host(){return this.#t.getHost()}set host(t){this.#t.setHost(t);}get hostname(){return this.#t.getHostname()}set hostname(t){this.#t.setHostname(t);}get referrerPolicy(){return this.getAttribute("referrerPolicy")||""}set referrerPolicy(t){this.setAttribute("referrerPolicy",t);}get rel(){return this.getAttribute("rel")||""}set rel(t){this.setAttribute("rel",t);}get relList(){return this[Wo]||(this[Wo]=new go(b,this,"rel")),this[Wo]}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[Rr]&&t.type==="click"&&t instanceof pr&&(t.eventPhase===Ae.none||t.eventPhase===Ae.bubbling)){let r=this.href;if(r){let n=[];this.relList.contains("noreferrer")&&n.push("noreferrer"),this.relList.contains("noopener")&&n.push("noopener"),this[m].open(r,this.target||"_self",n.join(",")),this[m].closed&&t.stopImmediatePropagation();}}return e}};g();var im=class extends U{[Wo]=null;#t=new Cc(this);get alt(){return this.getAttribute("alt")||""}set alt(t){this.setAttribute("alt",t);}get coords(){return this.getAttribute("coords")||""}set coords(t){this.setAttribute("coords",t);}get shape(){return this.getAttribute("shape")||""}set shape(t){this.setAttribute("shape",t);}get download(){return this.getAttribute("download")||""}set download(t){this.setAttribute("download",t);}get referrerPolicy(){return this.getAttribute("referrerPolicy")||""}set referrerPolicy(t){this.setAttribute("referrerPolicy",t);}get ping(){return this.getAttribute("ping")||""}set ping(t){this.setAttribute("ping",t);}get rel(){return this.getAttribute("rel")||""}set rel(t){this.setAttribute("rel",t);}get relList(){return this[Wo]||(this[Wo]=new go(b,this,"rel")),this[Wo]}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[Rr]&&t[ie]==="click"&&t[Zr]===Ae.none&&t instanceof pr){let r=this.href;r&&(this[m].open(r,this.target||"_self"),this[m].closed&&t.stopImmediatePropagation());}return e}};g();g();g();var Gl=class{constructor(t){if(t!==b)throw new TypeError("Illegal constructor")}get length(){return 0}get[Symbol.toStringTag](){return "TimeRanges"}toLocaleString(){return "[object TimeRanges]"}toString(){return "[object TimeRanges]"}start(t){return 0}end(t){return 0}};g();g();var sm=class extends I{track;constructor(t,e=null){super(t,e),this.track=e?.track??null;}};var au=class o extends Ot{active=true;id=SR.randomUUID();onaddtrack=null;onremovetrack=null;[ki]=[];constructor(t){if(super(),!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);t!==void 0&&(this[ki]=t instanceof o?t[ki].slice():t);}addTrack(t){this[ki].includes(t)||(this[ki].push(t),this.dispatchEvent(new sm("addtrack",{track:t})));}clone(){return new this.constructor(this)}getAudioTracks(){return this[ki].filter(t=>t.kind==="audio")}getTrackById(t){for(let e of this[ki])if(e.id===t)return e;return null}getVideoTracks(){return this[ki].filter(t=>t.kind==="video")}removeTrack(t){let e=this[ki].indexOf(t);e!==-1&&(this[ki].splice(e,1),this.dispatchEvent(new sm("removetrack",{track:t})));}};g();var Px;(function(o){o.subtitles="subtitles",o.captions="captions",o.descriptions="descriptions",o.chapters="chapters",o.metadata="metadata";})(Px||(Px={}));var Bs=Px;var Vs=class extends U{[iS]=1;[Yu]=true;[sS]=0;[lS]=1;[aS]=1;[wp]=false;[Qu]=false;[uS]=true;[kw]=new Gl(b);[Nw]=NaN;[fr]=null;[Lw]=false;[Mw]=0;[Ta]=0;[Iw]=false;[Rw]=new Gl(b);[gS]="";[Dw]=new Gl(b);[Ow]=new this[m].RemotePlayback;[Dy]=null;[bS]=null;[SS]=null;[cS]=[];get onabort(){return E.getEventListener(this,"onabort")}set onabort(t){this[y].set("onabort",t);}get oncanplay(){return E.getEventListener(this,"oncanplay")}set oncanplay(t){this[y].set("oncanplay",t);}get oncanplaythrough(){return E.getEventListener(this,"oncanplaythrough")}set oncanplaythrough(t){this[y].set("oncanplaythrough",t);}get ondurationchange(){return E.getEventListener(this,"ondurationchange")}set ondurationchange(t){this[y].set("ondurationchange",t);}get onemptied(){return E.getEventListener(this,"onemptied")}set onemptied(t){this[y].set("onemptied",t);}get onended(){return E.getEventListener(this,"onended")}set onended(t){this[y].set("onended",t);}get onloadeddata(){return E.getEventListener(this,"onloadeddata")}set onloadeddata(t){this[y].set("onloadeddata",t);}get onloadedmetadata(){return E.getEventListener(this,"onloadedmetadata")}set onloadedmetadata(t){this[y].set("onloadedmetadata",t);}get onloadstart(){return E.getEventListener(this,"onloadstart")}set onloadstart(t){this[y].set("onloadstart",t);}get onpause(){return E.getEventListener(this,"onpause")}set onpause(t){this[y].set("onpause",t);}get onplay(){return E.getEventListener(this,"onplay")}set onplay(t){this[y].set("onplay",t);}get onplaying(){return E.getEventListener(this,"onplaying")}set onplaying(t){this[y].set("onplaying",t);}get onprogress(){return E.getEventListener(this,"onprogress")}set onprogress(t){this[y].set("onprogress",t);}get onratechange(){return E.getEventListener(this,"onratechange")}set onratechange(t){this[y].set("onratechange",t);}get onresize(){return E.getEventListener(this,"onresize")}set onresize(t){this[y].set("onresize",t);}get onseeked(){return E.getEventListener(this,"onseeked")}set onseeked(t){this[y].set("onseeked",t);}get onseeking(){return E.getEventListener(this,"onseeking")}set onseeking(t){this[y].set("onseeking",t);}get onstalled(){return E.getEventListener(this,"onstalled")}set onstalled(t){this[y].set("onstalled",t);}get onsuspend(){return E.getEventListener(this,"onsuspend")}set onsuspend(t){this[y].set("onsuspend",t);}get ontimeupdate(){return E.getEventListener(this,"ontimeupdate")}set ontimeupdate(t){this[y].set("ontimeupdate",t);}get onvolumechange(){return E.getEventListener(this,"onvolumechange")}set onvolumechange(t){this[y].set("onvolumechange",t);}get onwaiting(){return E.getEventListener(this,"onwaiting")}set onwaiting(t){this[y].set("onwaiting",t);}get buffered(){return this[kw]}get duration(){return this[Nw]}get error(){return this[fr]}get ended(){return this[Lw]}get networkState(){return this[Mw]}get readyState(){return this[Ta]}get remote(){return this[Ow]}get seeking(){return this[Iw]}get seekable(){return this[Rw]}get sinkId(){return this[gS]}get played(){return this[Dw]}get autoplay(){return this.getAttribute("autoplay")!==null}set autoplay(t){t?this.setAttribute("autoplay",""):this.removeAttribute("autoplay");}get controls(){return this.getAttribute("controls")!==null}set controls(t){t?this.setAttribute("controls",""):this.removeAttribute("controls");}get loop(){return this.getAttribute("loop")!==null}set loop(t){t?this.setAttribute("loop",""):this.removeAttribute("loop");}get preload(){return this.getAttribute("preload")||"auto"}set preload(t){this.setAttribute("preload",t);}get src(){if(!this.hasAttribute("src"))return "";try{return new URL(this.getAttribute("src"),this[N].location.href).href}catch{return this.getAttribute("src")}}set src(t){this.setAttribute("src",t),t&&(this.dispatchEvent(new I("canplay",{bubbles:false,cancelable:false})),this.dispatchEvent(new I("durationchange",{bubbles:false,cancelable:false})));}get controlsList(){return this[Dy]===null&&(this[Dy]=new go(b,this,"controlslist")),this[Dy]}set controlsList(t){this.setAttribute("controlslist",t);}get mediaKeys(){return this[bS]}get muted(){return this[wp]?this[wp]:this[Qu]?false:this.getAttribute("muted")!==null}set muted(t){this[wp]=!!t,!t&&!this[Qu]?this.removeAttribute("muted"):this.setAttribute("muted","");}get defaultMuted(){return this[Qu]}set defaultMuted(t){this[Qu]=!!t,!this[Qu]&&!this[wp]?this.removeAttribute("muted"):this.setAttribute("muted","");}get disableRemotePlayback(){return this.getAttribute("disableremoteplayback")!==null}set disableRemotePlayback(t){t?this.setAttribute("disableremoteplayback",""):this.removeAttribute("disableremoteplayback");}get srcObject(){return this[SS]}set srcObject(t){if(t!==null&&!(t instanceof au))throw new this[m].TypeError("Failed to set the 'srcObject' property on 'HTMLMediaElement': The provided value is not of type 'MediaStream'.");this[SS]=t;}get textTracks(){let t=[];for(let e of this[cS])t.push(e);for(let e of this.querySelectorAll("track")[X])t.push(e.track);return new this[m].TextTrackList(b,t)}get currentSrc(){let t=this.src;if(t)return t;let e=this.querySelector("source");return e?e.src:""}get volume(){return this[iS]}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].`,k.indexSizeError);this[iS]=e;}get crossOrigin(){let t=this.getAttribute("crossorigin");return t==="use-credentials"?"use-credentials":t!==null?"anonymous":null}set crossOrigin(t){this.setAttribute("crossorigin",t);}get currentTime(){return this[sS]}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[sS]=e;}get playbackRate(){return this[lS]}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[lS]=e;}get defaultPlaybackRate(){return this[aS]}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[aS]=e;}get preservesPitch(){return this[uS]}set preservesPitch(t){this[uS]=!!t;}get paused(){return this[Yu]}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t;}addTextTrack(t,e,r){let n=this[m];if(arguments.length===0)throw new n.TypeError("Failed to execute 'addTextTrack' on 'HTMLMediaElement': 1 argument required, but only 0 present.");if(!Bs[t])throw new n.TypeError(`Failed to execute 'addTextTrack' on 'HTMLMediaElement': The provided value '${t}' is not a valid enum value of type TextTrackKind.`);let i=new n.TextTrack(b);return i[fn]=t,i[Pl]=e||"",i[ec]=r||"",this[cS].push(i),i}pause(){this[Yu]||(this[Yu]=true,this.dispatchEvent(new I("pause",{bubbles:false,cancelable:false})));}async play(){this[Yu]&&(this[Yu]=false,this.dispatchEvent(new I("play",{bubbles:false,cancelable:false})),this.dispatchEvent(new I("playing",{bubbles:false,cancelable:false})));}canPlayType(t){return ""}fastSeek(t){}load(){this.dispatchEvent(new I("emptied",{bubbles:false,cancelable:false}));}async setMediaKeys(t){this[bS]=t;}async setSinkId(t){this[gS]=t;}captureStream(){return new this[m].MediaStream}[xt](t=false){return super[xt](t)}};var uu=class extends Vs{};g();var lm=class extends U{get href(){if(!this.hasAttribute("href"))return this[N].location.href;try{return new URL(this.getAttribute("href"),this[N].location.href).href}catch{return this.getAttribute("href")}}set href(t){this.setAttribute("href",t);}get target(){return this.getAttribute("target")||""}set target(t){this.setAttribute("target",t);}[xt](t=false){return super[xt](t)}};g();var am=class extends U{get onafterprint(){return E.getEventListener(this,"onafterprint")}set onafterprint(t){this[y].set("onafterprint",t);}get onbeforeprint(){return E.getEventListener(this,"onbeforeprint")}set onbeforeprint(t){this[y].set("onbeforeprint",t);}get onbeforeunload(){return E.getEventListener(this,"onbeforeunload")}set onbeforeunload(t){this[y].set("onbeforeunload",t);}get ongamepadconnected(){return E.getEventListener(this,"ongamepadconnected")}set ongamepadconnected(t){this[y].set("ongamepadconnected",t);}get ongamepaddisconnected(){return E.getEventListener(this,"ongamepaddisconnected")}set ongamepaddisconnected(t){this[y].set("ongamepaddisconnected",t);}get onhashchange(){return E.getEventListener(this,"onhashchange")}set onhashchange(t){this[y].set("onhashchange",t);}get onlanguagechange(){return E.getEventListener(this,"onlanguagechange")}set onlanguagechange(t){this[y].set("onlanguagechange",t);}get onmessage(){return E.getEventListener(this,"onmessage")}set onmessage(t){this[y].set("onmessage",t);}get onmessageerror(){return E.getEventListener(this,"onmessageerror")}set onmessageerror(t){this[y].set("onmessageerror",t);}get onoffline(){return E.getEventListener(this,"onoffline")}set onoffline(t){this[y].set("onoffline",t);}get ononline(){return E.getEventListener(this,"ononline")}set ononline(t){this[y].set("ononline",t);}get onpagehide(){return E.getEventListener(this,"onpagehide")}set onpagehide(t){this[y].set("onpagehide",t);}get onpageshow(){return E.getEventListener(this,"onpageshow")}set onpageshow(t){this[y].set("onpageshow",t);}get onpopstate(){return E.getEventListener(this,"onpopstate")}set onpopstate(t){this[y].set("onpopstate",t);}get onrejectionhandled(){return E.getEventListener(this,"onrejectionhandled")}set onrejectionhandled(t){this[y].set("onrejectionhandled",t);}get onstorage(){return E.getEventListener(this,"onstorage")}set onstorage(t){this[y].set("onstorage",t);}get onunhandledrejection(){return E.getEventListener(this,"onunhandledrejection")}set onunhandledrejection(t){this[y].set("onunhandledrejection",t);}get onunload(){return E.getEventListener(this,"onunload")}set onunload(t){this[y].set("onunload",t);}};g();var um=class extends U{};g();g();var mO=/^([^\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))*$/,hO=/^(?:(?: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*)?$/,So=class{element;constructor(t){this.element=t;}get badInput(){return this.element[ht]==="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[Ye].length>0}get patternMismatch(){return this.element[ht]==="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[ht]==="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[ht]==="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[ht]==="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[ht]==="input"||this.element[ht]==="textarea")&&this.element.maxLength>0&&this.element.value.length>this.element.maxLength}get tooShort(){return (this.element[ht]==="input"||this.element[ht]==="textarea")&&this.element.minLength>0&&this.element.value.length>0&&this.element.value.length<this.element.minLength}get typeMismatch(){return this.element[ht]==="input"&&this.element.value.length>0&&(this.element.type==="email"&&!mO.test(this.element.value)||this.element.type==="url"&&!hO.test(this.element.value))}get valueMissing(){if(!this.element.required||this.element[ht]==="object"||this.element[ht]==="output")return false;if(this.element[ht]==="input"){if(this.element.type==="checkbox")return !this.element.checked;if(this.element.type==="radio"){if(this.element.checked)return false;if(!this.element.name)return true;let t=this.element[Xt]||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}};g();var Po=class{static getAssociatedLabelElements(t){let e=t.id,r;e&&t[pt]?r=(t[Ke]||t[N]).querySelectorAll(`label[for="${e}"]`)[X]:r=[];let n=t[K];for(;n;){if(n.tagName==="LABEL"){r.push(n);break}n=n[K];}return new In(b,r)}};var dO=["submit","reset","button","menu"],cm=class extends U{[Ye]="";[dr]=new So(this);[Xt]=null;[Ra]=null;get validationMessage(){return this[Ye]}get validity(){return this[dr]}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t);}get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t);}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled");}get type(){let t=this.getAttribute("type");return t===null||!dO.includes(t)?"submit":t}set type(t){this.setAttribute("type",t);}get formAction(){if(!this.hasAttribute("formaction"))return this[N].location.href;try{return new URL$1(this.getAttribute("formaction"),this[N].location.href).href}catch{return ""}}set formAction(t){this.setAttribute("formaction",t);}get formEnctype(){return this.getAttribute("formenctype")||""}set formEnctype(t){this.setAttribute("formenctype",t);}get formMethod(){return this.getAttribute("formmethod")||""}set formMethod(t){this.setAttribute("formmethod",t);}get formNoValidate(){return this.getAttribute("formnovalidate")!==null}set formNoValidate(t){t?this.setAttribute("formnovalidate",""):this.removeAttribute("formnovalidate");}get formTarget(){return this.getAttribute("formtarget")||""}set formTarget(t){this.setAttribute("formtarget",t);}get form(){if(this[Xt])return this[Xt];let t=this.getAttribute("form");return !t||!this[pt]?null:this[N].getElementById(t)}get labels(){return Po.getAssociatedLabelElements(this)}get popoverTargetElement(){return this[Ra]}set popoverTargetElement(t){if(t!==null&&!(t instanceof U))throw new this[m].TypeError("Failed to set the 'popoverTargetElement' property on 'HTMLInputElement': Failed to convert value to 'Element'.");this[Ra]=t;}get popoverTargetAction(){let t=this.getAttribute("popovertargetaction");return t===null||t!=="hide"&&t!=="show"&&t!=="toggle"?"toggle":t}set popoverTargetAction(t){this.setAttribute("popovertargetaction",t);}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t;}checkValidity(){let t=this.disabled||this.type==="reset"||this.type==="button"||this[dr].valid;return t||this.dispatchEvent(new I("invalid",{bubbles:true,cancelable:true})),t}reportValidity(){return this.checkValidity()}setCustomValidity(t){this[Ye]=String(t);}dispatchEvent(t){if(t.type==="click"&&t instanceof pr&&t.eventPhase===Ae.none&&this.disabled)return false;let e=super.dispatchEvent(t);if(!t[Rr]&&t.type==="click"&&t.eventPhase===Ae.none&&t instanceof pr){let r=this.type;if(r==="submit"||r==="reset"){let n=this.form;n&&(r==="submit"&&this[pt]?n.requestSubmit(this):r==="reset"&&n.reset());}}return e}};g();g();var Hs=class{[tf]=null;width;height;constructor(t,e){this.width=t,this.height=e;}getContext(t,e){let r=new rt(this[m]).getBrowserFrame();if(!r)throw new this[m].Error("Failed to execute 'getContext' on 'OffscreenCanvas': Browser frame is not available. This happens when the browser is closing.");let i=new rt(this[m]).getSettings()?.canvasAdapter;return i?(this[tf]=i.getContext({window:this[m],browserFrame:r,canvas:this},t,e),this[tf]):null}convertToBlob(t){let e=new rt(this[m]).getBrowserFrame();if(!e)throw new this[m].Error("Failed to execute 'getContext' on 'OffscreenCanvas': Browser frame is not available. This happens when the browser is closing.");let n=new rt(this[m]).getSettings()?.canvasAdapter;return n?new Promise((i,s)=>{n.toBlob({window:this[m],browserFrame:e,canvas:this},l=>{l?i(l):s(new this[m].DOMException("Failed to execute 'convertToBlob' on 'OffscreenCanvas': The canvas could not be converted to a Blob.",k.encodingError));},t?.type,t?.quality);}):new Promise(i=>{this[m].requestAnimationFrame(()=>i(new we([],t)));})}transferToImageBitmap(){if(!new rt(this[m]).getBrowserFrame())throw new this[m].Error("Failed to execute 'getContext' on 'OffscreenCanvas': Browser frame is not available. This happens when the browser is closing.");let e=this[m];if(!new rt(e).getSettings()?.canvasAdapter)return new e.ImageBitmap(b,this[m],this);let i=this[tf];if(!i)throw new this[m].TypeError("Failed to execute 'transferToImageBitmap' on 'OffscreenCanvas': Cannot transfer an ImageBitmap from an OffscreenCanvas with no context");let s=new e.ImageBitmap(b,this[m],this);return i.clearRect(0,0,this.width,this.height),s}};var xk="S3F/aBCdEfGHIjKlMnOpQRStUvWxYz1234567890+1AbC2DEf2GHi3jK34le+ab12C3+1aBCdEf==",cu;(function(o){o.none="none",o.context="context",o.offscreen="offscreen";})(cu||(cu={}));var pu=class extends U{#t=cu.none;#e=null;get oncontextlost(){return E.getEventListener(this,"oncontextlost")}set oncontextlost(t){this[y].set("oncontextlost",t);}get oncontextrestored(){return E.getEventListener(this,"oncontextrestored")}set oncontextrestored(t){this[y].set("oncontextrestored",t);}get onwebglcontextcreationerror(){return E.getEventListener(this,"onwebglcontextcreationerror")}set onwebglcontextcreationerror(t){this[y].set("onwebglcontextcreationerror",t);}get onwebglcontextlost(){return E.getEventListener(this,"onwebglcontextlost")}set onwebglcontextlost(t){this[y].set("onwebglcontextlost",t);}get onwebglcontextrestored(){return E.getEventListener(this,"onwebglcontextrestored")}set onwebglcontextrestored(t){this[y].set("onwebglcontextrestored",t);}get width(){let t=this.getAttribute("width");if(t===null)return 300;let e=parseInt(t,10);return isNaN(e)?300:e}set width(t){this.setAttribute("width",String(t));}get height(){let t=this.getAttribute("height");if(t===null)return 150;let e=parseInt(t,10);return isNaN(e)?150:e}set height(t){this.setAttribute("height",String(t));}captureStream(t){let e=new this[m].MediaStream,r=new this[m].CanvasCaptureMediaStreamTrack(b,this);return r[fn]="video",r[Ni].deviceId=xk,r[Ni].aspectRatio.max=this.width,r[Ni].height.max=this.height,r[Ni].width.max=this.width,r[ka].deviceId=xk,t!==void 0&&(r[Ni].frameRate.max=t,r[ka].frameRate=t),e.addTrack(r),e}getContext(t,e){if(this.#t===cu.offscreen)throw new this[m].DOMException("Failed to execute 'getContext' on 'HTMLCanvasElement': Cannot get context from a canvas that has transferred its control to offscreen.",k.invalidStateError);this.#t=cu.context;let r=new rt(this[m]).getBrowserFrame();if(!r)throw new this[m].Error("Failed to execute 'getContext' on 'HTMLCanvasElement': Browser frame is not available. This happens when the browser is closing.");let i=new rt(this[m]).getSettings()?.canvasAdapter;return i?i.getContext({browserFrame:r,window:this[m],canvas:this},t,e):null}toDataURL(t,e){let r=new rt(this[m]).getBrowserFrame();if(!r)throw new this[m].Error("Failed to execute 'toDataURL' on 'HTMLCanvasElement': Browser frame is not available. This happens when the browser is closing.");let i=new rt(this[m]).getSettings()?.canvasAdapter;return i?this.#e?i.toDataURL({browserFrame:r,window:this[m],canvas:this.#e},t,e):i.toDataURL({browserFrame:r,window:this[m],canvas:this},t,e):`data:${t||"image/png"};base64,${Buffer.from([]).toString("base64")}`}toBlob(t,e,r){let n=new rt(this[m]).getBrowserFrame();if(!n)throw new this[m].Error("Failed to execute 'toBlob' on 'HTMLCanvasElement': Browser frame is not available. This happens when the browser is closing.");let s=new rt(this[m]).getSettings()?.canvasAdapter;if(!s){this[m].requestAnimationFrame(()=>t(new we([],{type:e||"image/png"})));return}if(this.#e){s.toBlob({browserFrame:n,window:this[m],canvas:this.#e},t,e,r);return}s.toBlob({browserFrame:n,window:this[m],canvas:this},t,e,r);}transferControlToOffscreen(){if(this.#t===cu.context)throw new this[m].DOMException("Failed to execute 'transferControlToOffscreen' on 'HTMLCanvasElement': Cannot transfer control from a canvas that has a rendering context.",k.invalidStateError);if(this.#t===cu.offscreen)throw new this[m].DOMException("Failed to execute 'transferControlToOffscreen' on 'HTMLCanvasElement': Cannot transfer control from a canvas for more than one time.",k.invalidStateError);return this.#t=cu.offscreen,this.#e=new Hs(this.width,this.height),this.#e}};g();var pm=class extends U{};g();var mm=class extends U{get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t);}};g();var hm=class extends U{[No]=null;get options(){return this[No]||(this[No]=fe.getElementsByTagName(this,"OPTION")),this[No]}};g();var ym=class extends U{get ontoggle(){return E.getEventListener(this,"ontoggle")}set ontoggle(t){this[y].set("ontoggle",t);}get open(){return this.getAttribute("open")!==null}set open(t){t?this.setAttribute("open",""):this.removeAttribute("open");}[ze](t,e){super[ze](t,e),t[ct]==="open"&&t[nt]!==e?.[nt]&&this.dispatchEvent(new I("toggle"));}[br](t){super[br](t),t&&t[ct]==="open"&&this.dispatchEvent(new I("toggle"));}dispatchEvent(t){let e=super.dispatchEvent(t);if(!t[Rr]&&t.type==="click"&&t.eventPhase===Ae.bubbling&&t instanceof pr){let r=t[Jr];if(r)if(r[ht]==="summary"&&r[K]===this)this.open=!this.open;else {let n=r;for(let i of this[Pt])if(i[ht]==="summary"){n=i;break}n&&n.contains(r)&&(this.open=!this.open);}}return e}};g();var dm=class extends U{[nS]="";get oncancel(){return E.getEventListener(this,"oncancel")}set oncancel(t){this[y].set("oncancel",t);}get onclose(){return E.getEventListener(this,"onclose")}set onclose(t){this[y].set("onclose",t);}get returnValue(){return this[nS]}set returnValue(t){this[nS]=String(t);}set open(t){t?this.setAttribute("open",""):this.removeAttribute("open");}get open(){return this.getAttribute("open")!==null}close(t){let e=this.open;this.removeAttribute("open"),this.returnValue=t!==void 0?String(t):"",e&&this.dispatchEvent(new I("close"));}showModal(){this.setAttribute("open","");}show(){this.setAttribute("open","");}};g();var fm=class extends U{};g();var bm=class extends U{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[N].location.href).href}catch{return this.getAttribute("src")}}set src(t){this.setAttribute("src",t);}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t);}};g();var mu=class extends U{[rs]=null;[Xt]=null;get elements(){return this[rs]||(this[rs]=new Fe(b,()=>ft.querySelectorAll(this,"input,button,textarea,select")[X])),this[rs]}get form(){if(this[Xt])return this[Xt];let t=this.getAttribute("form");return !t||!this[pt]?null:this[N].getElementById(t)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t);}get type(){return "fieldset"}get validationMessage(){return ""}get willValidate(){return false}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled");}checkValidity(){return true}reportValidity(){return true}setCustomValidity(t){}};g();var hu=class extends Fe{constructor(t,e){super(t,()=>e[_o]()),this[Ht]=e;}namedItem(t){return this[Ht][Ny](t)}};g();g();g();var $i=class{static createChildFrame(t){let e=new t.constructor(t.page);return e.parentFrame=t,t.childFrames.push(e),e}static destroyFrame(t){let e=t.page.context.browser[Vr];return t.closed?Promise.resolve():(t.closed=true,new Promise((r,n)=>{if(!t.window){r();return}if(t.parentFrame){let i=t.parentFrame.childFrames.indexOf(t);i!==-1&&t.parentFrame.childFrames.splice(i,1);}if(!t.childFrames.length){t[Tt].destroy().then(()=>{e&&t.window&&e.disconnect(t.window),t.window={closed:true},t[ko]=null,t[Zn]=null,t[Te]&&(t[Te].navigation=[]),r();}).catch(i=>n(i)),t.window&&t.window[It]();return}Promise.all(t.childFrames.slice().map(i=>this.destroyFrame(i))).then(()=>{t[Tt].destroy().then(()=>{e&&t.window&&e.disconnect(t.window),t.window={closed:true},t[ko]=null,t[Zn]=null,t[Te]&&(t[Te].navigation=[]),r();}).catch(i=>n(i)),t.window&&t.window[It]();}).catch(i=>n(i));}))}};g();g();var Ax;(function(o){o.anyOrigin="anyOrigin",o.sameOrigin="sameOrigin",o.strictOrigin="strictOrigin";})(Ax||(Ax={}));var gm=Ax;var Sm=class{static validateCrossOriginPolicy(t,e){let r=t.page.context.browser.settings,n=t.page.mainFrame.window.location;return t[ko]?n=t[ko].window.location:t.parentFrame&&(n=t.parentFrame.window.location),!(r.navigation.crossOriginPolicy===gm.sameOrigin&&n.protocol!=="about:"&&e.protocol!=="about:"&&e.protocol!=="javascript:"&&n.origin!==e.origin||r.navigation.crossOriginPolicy===gm.strictOrigin&&n.protocol==="https:"&&e.protocol==="http:")}static validateFrameNavigation(t){let e=t.page.context.browser.settings;return !(t.page.context.browser.windowClass&&t.page.context===t.page.context.browser.defaultContext&&t.page.context.pages[0]===t.page&&t.page.mainFrame===t||e.navigation.disableMainFrameNavigation&&t.page.mainFrame===t||e.navigation.disableChildFrameNavigation&&t.page.mainFrame!==t||e.navigation.disableChildPageNavigation&&t[ko])}};var oo=class o{static async navigate(t){let{windowClass:e,frame:r,url:n,formData:i,method:s,goToOptions:l,disableHistory:a}=t,u=r.page.context.browser[Vr],c=l?.referrer||r.window.location.origin,h=Io.getRelativeURL(r,n),f=new URL(h.href.split("#")[0]),d=new URL(r.url.split("#")[0]),g=()=>{let hr=r[Te].navigation;r[Te].navigation=[];for(let mn of hr)mn();};if(!r.window)throw new Error('The frame has been destroyed, the "window" property is not set.');if(f.href===d.href&&h.hash&&h.hash!==r.window?.location.hash){let hr=r[rr];return a||(hr.currentItem.popState=true,hr.push({title:"",href:h.href,state:null,popState:true,scrollRestoration:ci.manual,method:s||(i?"POST":"GET"),formData:i||null})),r.window.location[uo](r,h.href),null}if(h.protocol==="javascript:"){if(r&&r.page.context.browser.settings.enableJavaScriptEvaluation){let hr=r.window[dn],mn=r[Tt],ca=hr.startTask(),ag=h.href.replace("javascript:","");await new Promise(qh=>{r.window.requestAnimationFrame(()=>{let ug=setImmediate(()=>{mn.endTask(cg),qh(null);}),cg=mn.startTask(()=>()=>{clearImmediate(ug),qh(null);});r.window[Nn](ag,{filename:r.url});});}),hr.endTask(ca),g();}return null}if(!Sm.validateCrossOriginPolicy(r,h))return null;if(!Sm.validateFrameNavigation(r))return r.page.context.browser.settings.navigation.disableFallbackToSetURL||r.window.location[uo](r,h.href),null;a||r[rr].push({title:"",href:h.href,state:null,popState:false,scrollRestoration:ci.auto,method:s||(i?"POST":"GET"),formData:i||null});let A=r.window,w=r[Tt],T=A.innerWidth,G=A.innerHeight,J=A.devicePixelRatio,W=r.parentFrame?r.parentFrame.window:r.page.mainFrame.window,q=r.page.mainFrame.window;r[Tt]=new Fi(r),r.window=new e(r,{url:h.href,width:T,height:G}),r.window[$o]=W,r.window[ii]=q,r.window.devicePixelRatio=J,u&&u.observe(r.window),c&&(r.window.document[Yr]=c);let ut=r[Tt].startTask(),Z=()=>{w.destroy().then(()=>{u&&u.disconnect(A),r[Tt].endTask(ut);}),A[It]();};if(r.childFrames.length?Promise.all(r.childFrames.map(hr=>$i.destroyFrame(hr))).then(Z):Z(),h.protocol==="about:")return l?.beforeContentCallback&&l.beforeContentCallback(r.window),r.page.context.browser.settings.navigation.beforeContentCallback&&r.page.context.browser.settings.navigation.beforeContentCallback(r.window),await new Promise(hr=>r.page.mainFrame.window.requestAnimationFrame(hr)),g(),null;let kt=r.window[dn],Lt=r[Tt],Ee=new r.window.AbortController,ir=setTimeout(()=>{Lt.endTimer(ir),Ee.abort(new r.window.DOMException("The operation was aborted. Request timed out.",k.timeoutError));},l?.timeout??3e4);Lt.startTimer(ir);let Br=kt.startTask(),_e=()=>{clearTimeout(ir),Lt.endTimer(ir),kt.endTask(Br),g();},sr=new r.window.Headers(l?.headers),ve,zn;l?.hard&&sr.set("Cache-Control","no-cache");let lg=new sn({browserFrame:r,window:r.window,url:h.href,disableSameOriginPolicy:true,init:{referrer:c,referrerPolicy:l?.referrerPolicy||"origin",signal:Ee.signal,method:s||(i?"POST":"GET"),headers:sr,body:i}});try{if(ve=await lg.send(),r.parentFrame){let hr=r.parentFrame.window.location,mn=ve.headers?.get("X-Frame-Options")?.toLowerCase(),ca=hr.origin===h.origin||h.origin==="null";if(mn==="deny"||mn==="sameorigin"&&!ca)throw new Error(`Refused to display '${n}' in a frame because it set 'X-Frame-Options' to '${mn}'.`)}zn=await ve.text();}catch(hr){throw _e(),hr}return r.window?(ve.url&&r.window[Lo][uo](r,ve.url),ve.ok||r.page.console.error(`GET ${h.href} ${ve.status} (${ve.statusText})`),l?.beforeContentCallback&&l.beforeContentCallback(r.window),r.page.context.browser.settings.navigation.beforeContentCallback&&r.page.context.browser.settings.navigation.beforeContentCallback(r.window),await new Promise(hr=>{r.window.requestAnimationFrame(()=>{let mn,ca=Lt.startTask(()=>()=>{clearImmediate(mn),hr(null);});mn=setImmediate(()=>{Lt.endTask(ca),hr(null);}),r.content=zn;});}),_e(),ve):null}static navigateBack(t){let{windowClass:e,frame:r,goToOptions:n}=t,i=r[rr],s=i.items[i.items.indexOf(i.currentItem)-1];if(!s)return new Promise(u=>{r.window.requestAnimationFrame(()=>{let c=r[Te].navigation;r[Te].navigation=[];for(let h of c)h();u(null);});});let l=new URL(i.currentItem.href).origin,a=new URL(s.href).origin;return i.currentItem=s,!s.popState||l!==a?o.navigate({windowClass:e,frame:r,goToOptions:{...n,referrer:r.url},url:s.href,method:s.method,formData:s.formData,disableHistory:true}):(r.window.location[uo](r,s.href),r.window.dispatchEvent(new r.window.PopStateEvent("popstate",{state:s.state,hasUAVisualTransition:false})),Promise.resolve(null))}static navigateForward(t){let{windowClass:e,frame:r,goToOptions:n}=t,i=r[rr],s=i.items[i.items.indexOf(i.currentItem)+1];if(!s)return new Promise(u=>{r.window.requestAnimationFrame(()=>{let c=r[Te].navigation;r[Te].navigation=[];for(let h of c)h();u(null);});});let l=new URL(i.currentItem.href).origin,a=new URL(s.href).origin;return i.currentItem=s,!s.popState||l!==a?o.navigate({windowClass:e,frame:r,goToOptions:{...n,referrer:r.url},url:s.href,method:s.method,formData:s.formData,disableHistory:true}):(r.window.location[uo](r,s.href),r.window.dispatchEvent(new r.window.PopStateEvent("popstate",{state:s.state,hasUAVisualTransition:false})),Promise.resolve(null))}static navigateSteps(t){if(!t.steps)return this.reload(t);let{windowClass:e,frame:r,goToOptions:n,steps:i}=t,s=r[rr],l=s.items.indexOf(s.currentItem),a=l+i,u=s.items[a];if(!u)return new Promise(f=>{r.window.requestAnimationFrame(()=>{let d=r[Te].navigation;r[Te].navigation=[];for(let g of d)g();f(null);});});let c=new URL(s.currentItem.href).origin,h=true;if(i<0){for(let f=l;f>a;f--)if(!s.items[f].popState||c!==new URL(s.items[f].href).origin){h=false;break}}else for(let f=l;f<a;f++)if(!s.items[f].popState||c!==new URL(s.items[f].href).origin){h=false;break}return s.currentItem=u,h?(r.window.location[uo](r,u.href),r.window.dispatchEvent(new r.window.PopStateEvent("popstate",{state:u.state,hasUAVisualTransition:false})),Promise.resolve(null)):o.navigate({windowClass:e,frame:r,goToOptions:{...n,referrer:r.url},url:u.href,method:u.method,formData:u.formData,disableHistory:true})}static reload(t){let{windowClass:e,frame:r,goToOptions:n}=t,i=r[rr];return o.navigate({windowClass:e,frame:r,goToOptions:{...n,referrer:r.url},url:i.currentItem.href,method:i.currentItem.method,formData:i.currentItem.formData,disableHistory:true})}};g();var kc=class extends In{get value(){for(let t of this[X])if(t.checked)return t.value;return null}};var Pm=class o extends U{[rs]=null;[jt];constructor(){super();let t=new De(this,[o,U,zr,Et,Ot]),e=new Proxy(this,{get:(r,n)=>{if(n==="length")return r[_o]().length;if(n in r||typeof n=="symbol")return t.bind(n),r[n];let i=Number(n);return isNaN(i)?r[Ny](n)||void 0:r[_o]()[i]},set(r,n,i){if(t.bind(n),typeof n=="symbol")return r[n]=i,true;let s=Number(n);return isNaN(s)&&(r[n]=i),true},deleteProperty(r,n){if(typeof n=="symbol")return delete r[n],true;let i=Number(n);return isNaN(i)&&delete r[n],true},ownKeys(r){return Object.keys(r[_o]())},has(r,n){if(n in r)return true;if(typeof n=="symbol")return false;let i=r[_o](),s=Number(n);if(!isNaN(s)&&s>=0&&s<i.length)return true;n=String(n);for(let l=0;l<i.length;l++){let a=i[l],u=a.getAttribute("id")||a.getAttribute("name");if(u&&u===n)return true}return false},defineProperty(r,n,i){if(t.preventBinding(n),!i.value)return Object.defineProperty(r,n,i),true;let s=Number(i.value);return isNaN(s)?(Object.defineProperty(r,n,i),true):false},getOwnPropertyDescriptor(r,n){if(n in r)return Object.getOwnPropertyDescriptor(r,n);let i=r[_o](),s=Number(n);if(!isNaN(s)&&s>=0&&s<i.length)return {value:i[s],writable:false,enumerable:true,configurable:true};for(let l=0;l<i.length;l++){let a=i[l],u=a.getAttribute("id")||a.getAttribute("name");if(u&&u===n)return {value:a,writable:false,enumerable:true,configurable:true}}}});return this[jt]=e,this[Xt]=e,e}get onformdata(){return E.getEventListener(this,"onformdata")}set onformdata(t){this[y].set("onformdata",t);}get onreset(){return E.getEventListener(this,"onreset")}set onreset(t){this[y].set("onreset",t);}get onsubmit(){return E.getEventListener(this,"onsubmit")}set onsubmit(t){this[y].set("onsubmit",t);}get elements(){return this[rs]||(this[rs]=new hu(b,this)),this[rs]}get length(){return this[_o]().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[N].location.href;try{return new URL(this.getAttribute("action"),this[N].location.href).href}catch{return ""}}set action(t){this.setAttribute("action",t);}get encoding(){return this.getAttribute("encoding")||""}set encoding(t){this.setAttribute("encoding",t);}get enctype(){return this.getAttribute("enctype")||""}set enctype(t){this.setAttribute("enctype",t);}get autocomplete(){return this.getAttribute("autocomplete")||""}set autocomplete(t){this.setAttribute("autocomplete",t);}get acceptCharset(){return this.getAttribute("acceptcharset")||""}set acceptCharset(t){this.setAttribute("acceptcharset",t);}get noValidate(){return this.getAttribute("novalidate")!==null}set noValidate(t){t?this.setAttribute("novalidate",""):this.removeAttribute("novalidate");}submit(){this.#t();}requestSubmit(t){if(t?.formNoValidate||this.noValidate||this.checkValidity()){let r=new ru("submit",{bubbles:true,cancelable:true,submitter:t||this[jt]});this.dispatchEvent(r),r.defaultPrevented||this.#t(t);}}reset(){for(let t of this[_o]())switch(t[st]){case "TEXTAREA":t[nt]=null;break;case "INPUT":t[nt]=null,t[Sa]=null;break;case "OUTPUT":t.textContent=t[Ko];break;case "SELECT":let e=false;for(let r of t.options)if(r.hasAttribute("selected")){e=true,r.selected=true;break}!e&&t.options.length>0&&(t.options[0].selected=true);break}this.dispatchEvent(new I("reset",{bubbles:true,cancelable:true}));}checkValidity(){let t={},e=true;for(let r of this[_o]())r[st]==="INPUT"&&r.type==="radio"&&r.name?t[r.name]||(t[r.name]=true,r.checkValidity()||(e=false)):r.checkValidity()||(e=false);return e}reportValidity(){return this.checkValidity()}[xt](t=false){return super[xt](t)}[_o](){let t=ft.querySelectorAll(this,"input,select,textarea,button,fieldset,object,output")[X].slice();if(this[pt]){let e=this.getAttribute("id");if(e)for(let r of ft.querySelectorAll(this[N],`input[form="${e}"],select[form="${e}"],textarea[form="${e}"],button[form="${e}"],fieldset[form="${e}"],object[form="${e}"],output[form="${e}"]`)[X])t.includes(r)||t.push(r);}return t}[Ny](t){let e=this[_o](),r=[];t=String(t);for(let n of e)(n.getAttribute("id")===t||n.getAttribute("name")===t)&&r.push(n);return r.length?r.length===1?r[0]:new kc(b,r):null}#t(t){let e=t?.formMethod||this.method;if(e==="dialog"){let l=null,a=this;for(;a;){if(a[st]==="DIALOG"){l=a;break}a=a.parentElement;}if(l){l.close(t?.value);return}}let r=t?.hasAttribute("formaction")?t?.formAction||this.action:this.action,n=new rt(this[m]).getBrowserFrame();if(!n)return;if(!r){this[N].location.hash="#blocked";return}let i=new this[m].FormData(this,t),s;switch(t?.formTarget||this.target){default:case "_self":s=n;break;case "_top":s=n.page.mainFrame;break;case "_parent":s=n.parentFrame??n;break;case "_blank":s=n.page.context.newPage().mainFrame,s[ko]=n;break}if(e==="get"){let l=new URL(r);l.search="";for(let[a,u]of i)typeof u=="string"&&l.searchParams.append(a,u);oo.navigate({windowClass:this[N][ao]?.constructor,frame:s,url:l.href,goToOptions:{referrer:n.page.mainFrame.window.location.origin}});return}oo.navigate({windowClass:this[N][ao]?.constructor,frame:s,method:e,url:r,formData:i,goToOptions:{referrer:n.page.mainFrame.window.location.origin}});}};g();var Am=class extends U{};g();var wm=class extends U{};g();var xm=class extends U{};g();var Em=class extends U{};g();g();var Ul=class extends Ot{window=this;location;[Ma]=this;#t;constructor(t,e){super(),this[$o]=e??this,this[ii]=e??this,this.location=new Proxy({},{get:()=>{throw new de(`Blocked a frame with origin "${this.parent.location.origin}" from accessing a cross-origin frame.`,k.securityError)},set:()=>{throw new de(`Blocked a frame with origin "${this.parent.location.origin}" from accessing a cross-origin frame.`,k.securityError)}}),this.#t=t;}get self(){return this[Ma]}set self(t){this[Ma]=t;}get top(){return this[ii]}get parent(){return this[$o]}set parent(t){this[$o]=t;}get opener(){return this.#t.opener}get closed(){return this.#t.closed}blur(){this.#t.blur();}focus(){this.#t.focus();}close(){this.#t.close();}postMessage(t,e="*",r){this.#t.postMessage(t,e,r);}};var fO=["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"],vm=class extends U{[ky]=null;#t={window:null};#e=null;#r=null;get onload(){return E.getEventListener(this,"onload")}set onload(t){this[y].set("onload",t);}get onerror(){return E.getEventListener(this,"onerror")}set onerror(t){this[y].set("onerror",t);}get src(){if(!this.hasAttribute("src"))return "";try{return new URL(this.getAttribute("src"),this[N].location.href).href}catch{return this.getAttribute("src")}}set src(t){this.setAttribute("src",t);}get allow(){return this.getAttribute("allow")||""}set allow(t){this.setAttribute("allow",t);}get height(){return this.getAttribute("height")||""}set height(t){this.setAttribute("height",t);}get width(){return this.getAttribute("width")||""}set width(t){this.setAttribute("width",t);}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t);}get sandbox(){return this[ky]||(this[ky]=new go(b,this,"sandbox")),this[ky]}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;}[Mr](){super[Mr](),this.#n();}[Ir](){super[Ir](),this.#i();}[xt](t=false){return super[xt](t)}[ze](t,e){super[ze](t,e),t[ct]==="srcdoc"&&this.#n(),t[ct]==="src"&&t[nt]&&!this.hasAttribute("srcdoc")&&t[nt]!==e?.[nt]&&this.#n(),t[ct]==="sandbox"&&this.#o();}[br](t){super[br](t),(t[ct]==="srcdoc"||t[ct]==="src")&&this.#n();}#o(){let t=this[m],e=[];for(let r of this.sandbox)fO.includes(r)||e.push(r);e.length===1?t.console.error(`Error while parsing the 'sandbox' attribute: '${e[0]}' is an invalid sandbox flag.`):e.length>1&&t.console.error(`Error while parsing the 'sandbox' attribute: '${e.join("', '")}' are invalid sandbox flags.`);}#n(){if(!this[pt]){this.#i();return}let t=this.getAttribute("srcdoc"),e=this[m],r=new rt(e).getBrowserFrame();if(!r)return;if(t!==null){if(this.#r===t)return;this.#i(),this.#e=$i.createChildFrame(r),this.#e.url="about:srcdoc",this.#t.window=this.#e.window,this.#e.window[ii]=r.window.top,this.#e.window[$o]=r.window,this.#e.window.document.open(),this.#e.window.document.write(t),this.#r=t,this[m].requestAnimationFrame(()=>this.dispatchEvent(new I("load")));return}this.#r!==null&&this.#i();let n=r.window.location,i=Io.getRelativeURL(r,this.src);if(this.#e&&this.#e.window.location.href===i.href)return;if(r.page.context.browser.settings.disableIframePageLoading){let a=new e.DOMException(`Failed to load iframe page "${i.href}". Iframe page loading is disabled.`,k.notSupportedError);r.page.console.error(a),this.dispatchEvent(new I("error"));return}let s=n.origin===i.origin||i.origin==="null",l=s?e:new Ul(e);this.#e=this.#e??$i.createChildFrame(r),this.#e.window[ii]=l,this.#e.window[$o]=l,this.#e.goto(i.href,{referrer:n.origin,referrerPolicy:this.referrerPolicy}).then(()=>this.dispatchEvent(new I("load"))).catch(a=>{r.page.console.error(a),this.dispatchEvent(new I("error"));}),this.#t.window=s?this.#e.window:new Ul(this.#e.window,e);}#i(){this.#e&&($i.destroyFrame(this.#e),this.#e=null),this.#t.window=null,this.#r=null;}};g();var Tx=e(Qk(),1),rF=/^\s*data:([^,]+)?,(.*)/,Gs=class extends U{[st]="IMG";[ns]=true;[ti]=0;[ei]=0;[QC]="auto";[D]=0;[O]=0;[Mt]=null;get onload(){return E.getEventListener(this,"onload")}set onload(t){this[y].set("onload",t);}get onerror(){return E.getEventListener(this,"onerror")}set onerror(t){this[y].set("onerror",t);}get complete(){return this[ns]}get naturalHeight(){return this[ti]}get naturalWidth(){return this[ei]}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[D]}get y(){return this[O]}get decoding(){return this.getAttribute("decoding")||"auto"}set decoding(t){this.setAttribute("decoding",t);}get crossOrigin(){return this.getAttribute("crossOrigin")}set crossOrigin(t){(t==="anonymous"||t==="use-credentials")&&this.setAttribute("crossOrigin",t);}get alt(){return this.getAttribute("alt")||""}set alt(t){this.setAttribute("alt",t);}get currentSrc(){return this.src}get width(){let t=this.getAttribute("width");if(t===null)return this[ei];let e=parseInt(t,10);return isNaN(e)||e<=0?this[ei]:e}set width(t){this.setAttribute("width",String(t));}get height(){let t=this.getAttribute("height");if(t===null)return this[ti];let e=parseInt(t,10);return isNaN(e)||e<=0?this[ti]:e}set height(t){this.setAttribute("height",String(t));}get isMap(){return this.getAttribute("ismap")!==null}set isMap(t){t?this.setAttribute("ismap",""):this.removeAttribute("ismap");}get referrerPolicy(){return this.getAttribute("referrerpolicy")||""}set referrerPolicy(t){this.setAttribute("referrerpolicy",t);}get sizes(){return this.getAttribute("sizes")||""}set sizes(t){this.setAttribute("sizes",t);}get src(){let t=this.getAttribute("src");return t&&(this.#t(t)||this.getAttribute("src"))||""}set src(t){this.setAttribute("src",t);}get srcset(){return this.getAttribute("srcset")||""}set srcset(t){this.setAttribute("srcset",t);}get useMap(){return this.getAttribute("usemap")||""}set useMap(t){this.setAttribute("usemap",t);}decode(){return Promise.resolve()}[ze](t,e){if(super[ze](t,e),t[ct]==="src"){let r=this.#t(t[nt]);if(!r){this[ns]=true,this[ti]=0,this[ei]=0,this.dispatchEvent(new this[m].Event("error"));return}if(this.#e(r))return;new rt(this[m]).getSettings()?.enableImageFileLoading&&this.#r(this.src);}}[br](t){super[br](t),t[ct]==="src"&&(this[ns]=true,this[ti]=0,this[ei]=0,this[Mt]=null);}#t(t){if(t===null)return null;try{return new URL(t,this[N].location.href).href}catch{}return null}#e(t){let e=t.match(rF);if(e){let r=Buffer.from(e[2],"base64");this[ns]=true,this[Mt]=r;try{let n=(0,Tx.default)(r);this[ti]=n.height,this[ei]=n.width;}catch{this[ti]=0,this[ei]=0;}return this.dispatchEvent(new this[m].Event("load")),true}return false}async#r(t){this[ns]=false,this[ti]=0,this[ei]=0,this[Mt]=null;let e=null,r=null;try{e=await this[m].fetch(t);}catch(i){r=i;}if(r||!e?.ok){this[ns]=true,this.dispatchEvent(new this[m].Event("error")),e?this[m].console.error(`GET ${t} ${e.status} (${e.statusText}).`):r&&this[m].console.error(r);return}let n;try{n=await e.buffer();}catch{this[ns]=true,this.dispatchEvent(new this[m].Event("error"));return}this[ns]=true,this[Mt]=n;try{let i=(0,Tx.default)(n);this[ti]=i.height,this[ei]=i.width;}catch{this[ti]=0,this[ei]=0;}this.dispatchEvent(new this[m].Event("load"));}};g();var Wl=class extends Array{constructor(){super(0);}get[Symbol.toStringTag](){return this.constructor.name}item(t){return this[t]||null}};g();g();var Cx=/[\n\r]/gm,GS=o=>o.map(t=>parseInt(t,10)),Sf=class{static sanitize(t,e){switch(t.type){case "password":case "search":case "tel":case "text":return e.replace(Cx,"");case "color":return /^#[a-fA-F\d]{6}$/.test(e)?e.toLowerCase():"#000000";case "email":return t.multiple?e.split(",").map(r=>r.trim()).join(","):e.trim().replace(Cx,"");case "number":return isNaN(Number.parseFloat(e))?"":e;case "range":{let r=Number.parseFloat(e),n=parseFloat(t.min)||0,i=parseFloat(t.max)||100;return isNaN(r)?i<n?String(n):String((n+i)/2):r<n?String(n):r>i?String(i):e}case "url":return e.trim().replace(Cx,"");case "date":return this.sanitizeDate(e);case "datetime-local":{let r=e.match(/^(\d\d\d\d)-(\d\d)-(\d\d)[T ](\d\d):(\d\d)(?::(\d\d)(?:\.(\d{1,3}))?)?$/);if(!r)return "";let n=this.sanitizeDate(e.slice(0,10)),i=this.sanitizeTime(e.slice(11));return n&&i?(r[6]!==void 0&&(i.indexOf(".")!==-1&&(i=i.replace(/(?:\.0*|(\.\d+?)0+)$/,"$1")),i=i.replace(/(\d\d:\d\d)(:00)$/,"$1")),n+"T"+i):""}case "month":return e.match(/^(\d\d\d\d)-(\d\d)$/)&&this.parseMonthComponent(e)&&this.checkBoundaries(e,t.min,t.max)?e:"";case "time":return e=this.sanitizeTime(e),e&&this.checkBoundaries(e,t.min,t.max)?e:"";case "week":{let r=e.match(/^(\d\d\d\d)-W(\d\d)$/);if(!r)return "";let[n,i]=GS(r.slice(1,3));if(n<=0||i<1||i>53)return "";let s=this.lastIsoWeekOfYear(n);return i<1||i>52+s||!this.checkBoundaries(e,t.min,t.max)?"":e}}return e}static checkBoundaries(t,e,r){return e&&e>t?false:!(r&&r<t)}static parseMonthComponent(t){let[e,r]=t.split("-"),[n,i]=GS([e,r]);return isNaN(n)||isNaN(i)||n<=0||i<1||i>12?"":t}static lastIsoWeekOfYear=t=>{let e=new Date(+t,11,31),r=(e.getDay()+6)%7;e.setDate(e.getDate()-r+3);let n=e.getTime();return e.setMonth(0,1),e.getDay()!==4&&e.setMonth(0,1+(4-e.getDay()+7)%7),1+Math.ceil((n-e.getTime())/6048e5)};static sanitizeDate(t){let e=t.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!e||!this.parseMonthComponent(t.slice(0,7)))return "";let[n,i,s]=GS(e.slice(1,4));if(s<1||s>31)return "";let l=new Date(n,i,0).getDate();return s>l?"":t}static sanitizeTime(t){let e=t.match(/^(\d{2}):(\d{2})(?::(\d{2}(?:\.(\d{1,3}))?))?$/);if(!e)return "";let[r,n]=GS(e.slice(1,3)),i=parseFloat(e[3]||"0")*1e3;return r>23||n>59||i>59999?"":i===0?`${e[1]}:${e[2]}`:`${e[1]}:${e[2]}${i>=1e4?`:${i/1e3}`:`:0${i/1e3}`}`}};g();var kx;(function(o){o.preserve="preserve",o.select="select",o.start="start",o.end="end";})(kx||(kx={}));var Us=kx;g();var Nx;(function(o){o.none="none",o.forward="forward",o.backward="backward";})(Nx||(Nx={}));var an=Nx;g();var Tm=class{static step(t,e,r){switch(t.type){case "number":return this.getNumberValue(t,e,r);case "date":case "month":case "week":case "time":case "datetime-local":case "range":return null;default:throw new de("This form element is not steppable.")}}static getNumberValue(t,e,r){let n=t.step,i=t.min,s=t.max,l=i!==""?Number(i):null,a=s!==""?Number(s):null,u=Number(t.value),c=n!==""?Number(n):1;if(u=isNaN(u)?0:u,c=isNaN(c)||c===0?1:c,l!==null&&!isNaN(l)&&a!==null&&!isNaN(a)&&(l>a||a<l)||r===0)return t.value;let h=r!==void 0?Math.ceil(r/c)*c:c,f=u+h*e,d=l!==null&&!isNaN(l)?l:0;switch(e){case -1:return l!==null&&!isNaN(l)&&f<l?String(l):String(f+(u-d)%c);case 1:return a!==null&&!isNaN(a)&&f>a?String(d+Math.floor((a-d)/c)*c):String(f-(u-d)%c)}}};g();var Nc=class{static dateIsoWeek(t){t=typeof t=="number"?new Date(t):t,t=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),t.setUTCDate(t.getUTCDate()+4-(t.getUTCDay()||7));let e=new Date(Date.UTC(t.getUTCFullYear(),0,1)),r=Math.ceil(((t-e)/864e5+1)/7);return `${t.getUTCFullYear()}-W${r<10?"0":""}${r}`}static isoWeekDate(t){let[,e,r]=t.match(/^(\d{4})-W(\d{2})$/)||[];if(!e||!r||Number(r)>53||Number(r)<1)return new Date("x");let n=new Date(`${e}-01-01T00:00Z`),s=(new Date(`${e}-01-04T00:00Z`).getUTCDay()+6)%7,l=1+(Number(r)-1)*7-s+3;return n.setUTCDate(l),n.getUTCFullYear()>Number(e)?new Date("x"):n}};var nF=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"]),Cm=class extends U{[nt]=null;[B]=0;[V]=0;[Sa]=null;[Ye]="";[dr]=new So(this);[ri]=new Wl;[wa]=false;[Xt]=null;[Ra]=null;#t=null;#e=null;#r=an.none;get oninput(){return E.getEventListener(this,"oninput")}set oninput(t){this[y].set("oninput",t);}get oninvalid(){return E.getEventListener(this,"oninvalid")}set oninvalid(t){this[y].set("oninvalid",t);}get onselectionchange(){return E.getEventListener(this,"onselectionchange")}set onselectionchange(t){this[y].set("onselectionchange",t);}get defaultChecked(){return this.hasAttribute("checked")}set defaultChecked(t){t?this.setAttribute("checked",""):this.removeAttribute("checked");}get files(){return this[ri]}set files(t){this[ri]=t;}get formAction(){if(!this.hasAttribute("formaction"))return this[N].location.href;try{return new URL$1(this.getAttribute("formaction"),this[N].location.href).href}catch{return ""}}set formAction(t){this.setAttribute("formaction",t);}get formEnctype(){return this.getAttribute("formenctype")||""}set formEnctype(t){this.setAttribute("formenctype",t);}get formMethod(){return this.getAttribute("formmethod")||""}set formMethod(t){this.setAttribute("formmethod",t);}get formNoValidate(){return this.getAttribute("formnovalidate")!==null}set formNoValidate(t){t?this.setAttribute("formnovalidate",""):this.removeAttribute("formnovalidate");}get formTarget(){return this.getAttribute("formtarget")||""}set formTarget(t){this.setAttribute("formtarget",t);}get form(){if(this[Xt])return this[Xt];let t=this.getAttribute("form");return !t||!this[pt]?null:this[N].getElementById(t)}get validationMessage(){return this[Ye]}get validity(){return this[dr]}get height(){return this[B]}set height(t){this[B]=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");return t!==null?parseInt(t):20}set size(t){this.setAttribute("size",String(t));}get minLength(){let t=this.getAttribute("minlength");return t!==null?parseInt(t):-1}set minLength(t){this.setAttribute("minlength",String(t));}get maxLength(){let t=this.getAttribute("maxlength");return t!==null?parseInt(t):-1}set maxLength(t){this.setAttribute("maxlength",String(t));}get type(){let t=(this.getAttribute("type")??"").toLowerCase();return nF.has(t)?t:"text"}set type(t){this.setAttribute("type",t.toLowerCase());}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t);}get alt(){return this.getAttribute("alt")||""}set alt(t){this.setAttribute("alt",t);}get min(){return this.getAttribute("min")||""}set min(t){this.setAttribute("min",t);}get max(){return this.getAttribute("max")||""}set max(t){this.setAttribute("max",t);}get pattern(){return this.getAttribute("pattern")||""}set pattern(t){this.setAttribute("pattern",t);}get placeholder(){return this.getAttribute("placeholder")||""}set placeholder(t){this.setAttribute("placeholder",t);}get step(){return this.getAttribute("step")||""}set step(t){this.setAttribute("step",t);}get inputMode(){return this.getAttribute("inputmode")||""}set inputMode(t){this.setAttribute("inputmode",t);}get accept(){return this.getAttribute("accept")||""}set accept(t){this.setAttribute("accept",t);}get allowdirs(){return this.getAttribute("allowdirs")||""}set allowdirs(t){this.setAttribute("allowdirs",t);}get autocomplete(){return this.getAttribute("autocomplete")||""}set autocomplete(t){this.setAttribute("autocomplete",t);}get src(){return this.getAttribute("src")||""}set src(t){this.setAttribute("src",t);}get defaultValue(){return this.getAttribute("value")||""}set defaultValue(t){this.setAttribute("value",t);}get readOnly(){return this.getAttribute("readonly")!==null}set readOnly(t){t?this.setAttribute("readonly",""):this.removeAttribute("readonly");}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled");}get autofocus(){return this.getAttribute("autofocus")!==null}set autofocus(t){t?this.setAttribute("autofocus",""):this.removeAttribute("autofocus");}get required(){return this.getAttribute("required")!==null}set required(t){t?this.setAttribute("required",""):this.removeAttribute("required");}get indeterminate(){return this[wa]}set indeterminate(t){this[wa]=!!t;}get multiple(){return this.getAttribute("multiple")!==null}set multiple(t){t?this.setAttribute("multiple",""):this.removeAttribute("multiple");}get checked(){return this[Sa]!==null?this[Sa]:this.getAttribute("checked")!==null}set checked(t){this.#n(t);}get value(){switch(this.type){case "hidden":case "submit":case "image":case "reset":case "button":return this.getAttribute("value")||"";case "checkbox":case "radio":let t=this.getAttribute("value");return t!==null?t:"on";case "file":return this[ri].length>0?"/fake/path/"+this[ri][0].name:""}return this[nt]===null?this.getAttribute("value")||"":this[nt]}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.',k.invalidStateError);this[ri]=new Wl;break;default:let e=this.value;this[nt]=Sf.sanitize(this,t),e!==this[nt]&&(this.#t=this[nt].length,this.#e=this[nt].length,this.#r=an.none);break}}get selectionStart(){return this.#o()?this.#t===null?this.value.length:this.#t:null}set selectionStart(t){if(!this.#o())throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,k.invalidStateError);this.setSelectionRange(t,Math.max(t,this.selectionEnd),this.#r);}get selectionEnd(){return this.#o()?this.#e===null?this.value.length:this.#e:null}set selectionEnd(t){if(!this.#o())throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,k.invalidStateError);this.setSelectionRange(this.selectionStart,t,this.#r);}get selectionDirection(){return this.#o()?this.#r:null}set selectionDirection(t){if(!this.#o())throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,k.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=Nc.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.",k.invalidStateError);if(typeof t!="object")throw new this[m].TypeError("Failed to set the 'valueAsDate' property on 'HTMLInputElement': Failed to convert value to 'object'.");if(t&&!(t instanceof Date))throw new this[m].TypeError("Failed to set the 'valueAsDate' property on 'HTMLInputElement': The provided value is not a Date.");if(t===null||isNaN(t.getTime())){this.value="";return}switch(this.type){case "date":this.value=t.toISOString().split("T")[0];break;case "month":this.value=t.toISOString().split("T")[0].slice(0,-3);break;case "time":this.value=t.toISOString().split("T")[1].slice(0,5);break;case "week":this.value=Nc.dateIsoWeek(t);break}}get valueAsNumber(){let t=this.value;if(!this.type.match(/^(range|number|date|datetime-local|month|time|week)$/)||!t)return NaN;switch(this.type){case "number":return parseFloat(t);case "range":{let e=parseFloat(t),r=parseFloat(this.min)||0,n=parseFloat(this.max)||100;return isNaN(e)?n<r?r:(r+n)/2:e<r?r:e>n?n:e}case "date":return new Date(t).getTime();case "datetime-local":return new Date(t).getTime()-new Date(t).getTimezoneOffset()*6e4;case "month":return (new Date(t).getUTCFullYear()-1970)*12+new Date(t).getUTCMonth();case "time":return new Date("1970-01-01T"+t).getTime()-new Date("1970-01-01T00:00:00").getTime();case "week":{let e=t.match(/^(\d{4})-W(\d{2})$/);if(!e)return NaN;let r=new Date(Date.UTC(parseInt(e[1],10),0)),n=r.getUTCDay(),i=((n===0?-6:1)-n)*864e5+parseInt(e[2],10)*6048e5;return r.getTime()+i}default:return NaN}}set valueAsNumber(t){switch(this.type){case "number":case "range":this.value=Number(t).toString();break;case "date":case "datetime-local":{let e=new Date(Number(t));if(isNaN(e.getTime())){this.value="";break}this.type=="date"?this.value=e.toISOString().slice(0,10):this.value=e.toISOString().slice(0,-1);break}case "month":!Number.isInteger(t)||t<0?this.value="":this.value=new Date(Date.UTC(1970,Number(t))).toISOString().slice(0,7);break;case "time":!Number.isInteger(t)||t<0?this.value="":this.value=new Date(Number(t)).toISOString().slice(11,-1);break;case "week":{let e=new Date(Number(t));this.value=isNaN(e.getTime())?"":Nc.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.",k.invalidStateError)}}get labels(){return Po.getAssociatedLabelElements(this)}get list(){let t=this.getAttribute("list");return t?(this[Ke]||this[N]).querySelector(`datalist#${t}`):null}get popoverTargetElement(){return this[Ra]}set popoverTargetElement(t){if(t!==null&&!(t instanceof U))throw new this[m].TypeError("Failed to set the 'popoverTargetElement' property on 'HTMLInputElement': Failed to convert value to 'Element'.");this[Ra]=t;}get popoverTargetAction(){let t=this.getAttribute("popovertargetaction");return t===null||t!=="hide"&&t!=="show"&&t!=="toggle"?"toggle":t}set popoverTargetAction(t){this.setAttribute("popovertargetaction",t);}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t;}setCustomValidity(t){this[Ye]=String(t);}select(){this.#o()&&(this.#t=0,this.#e=this.value.length,this.#r=an.none,this.dispatchEvent(new I("select",{bubbles:true,cancelable:false})));}setSelectionRange(t,e,r="none"){if(!this.#o())throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,k.invalidStateError);this.#e=Math.min(e,this.value.length),this.#t=Math.min(t,this.#e),this.#r=r===an.forward||r===an.backward?r:an.none,this.dispatchEvent(new I("select",{bubbles:true,cancelable:false}));}setRangeText(t,e=null,r=null,n=Us.preserve){if(!this.#o())throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,k.invalidStateError);if(e===null&&(e=this.#t),r===null&&(r=this.#e),e>r)throw new this[m].DOMException("The index is not in the allowed range.",k.invalidStateError);e=Math.min(e,this.value.length),r=Math.min(r,this.value.length);let i=this.value,s=this.#t,l=this.#e;this.value=i.slice(0,e)+t+i.slice(r);let a=e+this.value.length;switch(n){case Us.select:this.setSelectionRange(e,a);break;case Us.start:this.setSelectionRange(e,e);break;case Us.end:this.setSelectionRange(a,a);break;default:let u=t.length-(r-e);s>r?s+=u:s>e&&(s=e),l>r?l+=u:l>e&&(l=a),this.setSelectionRange(s,l);break}}checkValidity(){let t=this.disabled||this.readOnly||this.type==="hidden"||this.type==="reset"||this.type==="button"||this[dr].valid;return t||this.dispatchEvent(new I("invalid",{bubbles:true,cancelable:true})),t}reportValidity(){return this.checkValidity()}stepUp(t){let e=Tm.step(this,1,t);e!==null&&(this.value=e);}stepDown(t){let e=Tm.step(this,-1,t);e!==null&&(this.value=e);}[xt](t=false){let e=super[xt](t);return e[nt]=this[nt],e[B]=this[B],e[V]=this[V],e[ri]=this[ri].slice(),e.#t=this.#t,e.#e=this.#e,e.#r=this.#r,e}dispatchEvent(t){if(t[ie]!=="click"||t[Zr]!==Ae.none||!(t instanceof pr))return super.dispatchEvent(t);if(this.disabled)return false;let e=null,r=this[wa],n=this.type;(n==="checkbox"||n==="radio")&&(e=this.checked,this.#n(n==="checkbox"?!e:true),n==="checkbox"&&(r=this[wa],this[wa]=false));let i=super.dispatchEvent(t);if(t[ie]!=="click"||t[Zr]!==Ae.none||!(t instanceof pr))return i;if(t[Rr])e!==null&&(this.#n(e),this[wa]=r);else {let s=this.type;if(s==="checkbox"&&this[pt])this.dispatchEvent(new I("input",{bubbles:true,cancelable:true})),this.dispatchEvent(new I("change",{bubbles:true,cancelable:true}));else if(s==="radio"&&!e&&this[pt])this.dispatchEvent(new I("input",{bubbles:true,cancelable:true})),this.dispatchEvent(new I("change",{bubbles:true,cancelable:true}));else if(s==="submit"||s==="reset"){let l=this.form;l&&(s==="submit"&&this[pt]?l.requestSubmit(this):s==="reset"&&l.reset());}}return i}#o(){let t=this.type;return t==="text"||t==="search"||t==="url"||t==="tel"||t==="password"}#n(t){if(this[Sa]=t,this[po](),t&&this.type==="radio"&&this.name){let r=(this[Xt]||this.getRootNode()).querySelectorAll(`input[type="radio"][name="${this.name}"]`);for(let n of r)n!==this&&(n[Sa]=false);}}};g();var km=class extends U{get htmlFor(){let t=this.getAttribute("for");return t!==null||t!==null?t:""}set htmlFor(t){this.setAttribute("for",t);}get control(){let t=this.getAttribute("for");if(t!==null){if(!t||!this[pt])return null;let e=this[Ke].getElementById(t);if(e)switch(e[st]){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}[xt](t=false){return super[xt](t)}dispatchEvent(t){let e=super.dispatchEvent(t);if(!t[Rr]&&t.type==="click"&&(t.eventPhase===Ae.atTarget||t.eventPhase===Ae.bubbling)&&t instanceof pr){let r=this.control;r&&t.target!==r&&r.dispatchEvent(new pr("click",{bubbles:true,cancelable:true}));}return e}};g();var Nm=class extends U{get form(){let t=this;for(;t;){if(t instanceof mu)return t.form;t=t.parentNode;}return null}};g();var Lm=class extends U{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));}};g();g();g();g();var Pf=class{static getScript(t){let e={},r=Object.keys(t.headers).sort();for(let n of r)e[n]=t.headers[n];return `
123
+ const sendRequest = require('http${t.url.protocol==="https:"?"s":""}').request;
124
+ const options = ${JSON.stringify({method:t.method,headers:e,agent:false,rejectUnauthorized:!t.disableStrictSSL,key:t.url.protocol==="https:"?Yp.key:void 0,cert:t.url.protocol==="https:"?Yp.cert:void 0},null,4)};
125
+ const request = sendRequest(${JSON.stringify(t.url.href)}, options, (incomingMessage) => {
126
+ let data = Buffer.alloc(0);
127
+ incomingMessage.on('data', (chunk) => {
128
+ data = Buffer.concat([data, Buffer.from(chunk)]);
129
+ });
130
+ incomingMessage.on('end', () => {
131
+ console.log(JSON.stringify({
132
+ error: null,
133
+ incomingMessage: {
134
+ statusCode: incomingMessage.statusCode,
135
+ statusMessage: incomingMessage.statusMessage,
136
+ rawHeaders: incomingMessage.rawHeaders,
137
+ data: data.toString('base64')
138
+ }
139
+ }));
140
+ });
141
+ incomingMessage.on('error', (error) => {
142
+ console.log(JSON.stringify({ error: error.message, incomingMessage: null }));
143
+ });
144
+ });
145
+ request.write(Buffer.from('${t.body?t.body.toString("base64"):""}', 'base64'));
146
+ request.end();
147
+ `}};var Lc=class o{request;redirectCount=0;disableCache;disableSameOriginPolicy;interceptor;requestHeaders;#t;#e;#r=null;constructor(t){this.#t=t.browserFrame,this.#e=t.window,this.#r=t.unfilteredHeaders??null,this.request=typeof t.url=="string"||t.url instanceof He?new t.window.Request(t.url,t.init):t.url,t.contentType&&(this.request[$e]=t.contentType),this.redirectCount=t.redirectCount??0,this.disableCache=t.disableCache??false,this.disableSameOriginPolicy=t.disableSameOriginPolicy??this.#t.page.context.browser.settings.fetch.disableSameOriginPolicy??false,this.interceptor=this.#t.page.context.browser.settings.fetch.interceptor,this.requestHeaders=this.#t.page.context.browser.settings.fetch.requestHeaders;}send(){if(Gi.prepareRequest(new He(this.#e.location.href),this.request),this.requestHeaders){for(let r of this.requestHeaders)if(!r.url||(typeof r.url=="string"?r.url.startsWith(this.request.url):this.request.url.match(r.url)))for(let[n,i]of Object.entries(r.headers))this.request.headers.set(n,i);}if(this.interceptor?.beforeSyncRequest){let r=this.interceptor.beforeSyncRequest({request:this.request,window:this.#e});if(typeof r=="object")return r}if(Dn.validateSchema(this.request),this.request.signal[Re])throw this.request.signal[Sn]!==void 0?this.request.signal[Sn]:new this.#e.DOMException("signal is aborted without reason",k.abortError);if(this.request[Ve].protocol==="data:"){let r=gc.parse(this.request.url),n={status:200,statusText:"OK",ok:true,url:this.request.url,redirected:false,headers:new this.#e.Headers({"Content-Type":r.type}),body:r.buffer,[Mo]:null},i=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:this.#e,response:n,request:this.request}):void 0;return typeof i=="object"?i:n}if(this.request[Ve].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.`,k.securityError);let t=this.getCachedResponse();if(t)return t;let e=this.getVirtualServerResponse();if(e)return e;if(!this.compliesWithCrossOriginPolicy())throw this.#e.console.warn(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`),new this.#e.DOMException(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`,k.networkError);return this.sendRequest()}getCachedResponse(){if(this.disableCache)return null;let t=this.#t.page.context.responseCache.get(this.request);if(!t||t.response.waitingForBody)return null;if(t.state===Va.stale){let e=new this.#e.Headers(t.request.headers);if(t.etag)e.set("If-None-Match",t.etag);else {if(!t.lastModified)return null;e.set("If-Modified-Since",new Date(t.lastModified).toUTCString());}if(t.etag||!t.staleWhileRevalidate){let n=new o({browserFrame:this.#t,window:this.#e,url:this.request.url,init:{headers:e,method:t.request.method},disableCache:true,disableSameOriginPolicy:true}).send(),i=n.status!==304?n.body:null;if(t=this.#t.page.context.responseCache.add(this.request,{...n,body:i,waitingForBody:false}),n.status!==304)return n}else new sn({browserFrame:this.#t,window:this.#e,url:this.request.url,init:{headers:e,method:t.request.method},disableCache:true,disableSameOriginPolicy:true}).send().then(n=>{n.buffer().then(i=>{this.#t.page.context.responseCache.add(this.request,{...n,body:i,waitingForBody:false});});});}return !t||t.response.waitingForBody?null:{status:t.response.status,statusText:t.response.statusText,ok:true,url:t.response.url,redirected:false,headers:t.response.headers,body:t.response.body,[Mo]:t.response[Mo]||null}}getVirtualServerResponse(){let t=Wi.getFilepath(this.#e,this.request.url);if(!t)return null;if(this.request.method!=="GET"){this.#t.page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let s=Wi.getNotFoundSyncResponse(this.#e,this.request.url),l=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:this.#e,response:s,request:this.request}):void 0;return typeof l=="object"?l:s}let e;try{t=Ip.statSync(t).isDirectory()?Rp.join(t,"index.html"):t,e=Ip.readFileSync(t);}catch{this.#t.page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let s=Wi.getNotFoundSyncResponse(this.#e,this.request.url),l=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:this.#e,response:s,request:this.request}):void 0;return typeof l=="object"?l:s}let r={status:200,statusText:"",ok:true,url:this.request.url,redirected:false,headers:new this.#e.Headers,body:e,[Mo]:t},n=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:this.#e,response:r,request:this.request}):void 0,i=typeof n=="object"?n:r;return this.#t.page.context.responseCache.add(this.request,{...i,waitingForBody:false,virtual:true}),i}compliesWithCrossOriginPolicy(){if(this.disableSameOriginPolicy||!Rn.isCORS(this.#e.location.href,this.request[Ve]))return true;let t=this.#t.page.context.preflightResponseCache.get(this.request);if(t)return !(t.allowOrigin!=="*"&&t.allowOrigin!==this.#e.location.origin||t.allowMethods.length!==0&&!t.allowMethods.includes(this.request.method));let e=[];for(let[a]of this.request.headers)e.push(a.toLowerCase());let r=new this.#e.Headers({"Access-Control-Request-Method":this.request.method,Origin:this.#e.location.origin});e.length>0&&r.set("Access-Control-Request-Headers",e.slice().sort().join(","));let i=new o({browserFrame:this.#t,window:this.#e,url:this.request.url,init:{method:"OPTIONS"},disableCache:true,disableSameOriginPolicy:true,unfilteredHeaders:r}).send();if(!i.ok)return false;let s=i.headers.get("Access-Control-Allow-Origin");if(!s||s!=="*"&&s!==this.#e.location.origin)return false;let l=[];if(i.headers.has("Access-Control-Allow-Methods")){let a=i.headers.get("Access-Control-Allow-Methods");if(a!=="*")for(let u of a.split(","))l.push(u.trim().toUpperCase());}return !(l.length!==0&&!l.includes(this.request.method))}sendRequest(){if(!this.request[vi]&&this.request.body)throw new this.#e.DOMException("Streams are not supported as request body for synchronous requests.",k.notSupportedError);let t=Pf.getScript({url:this.request[Ve],method:this.request.method,headers:Ui.getRequestHeaders({browserFrame:this.#t,window:this.#e,request:this.request,baseHeaders:this.#r}),disableStrictSSL:this.#t.page.context.browser.settings.fetch.disableStrictSSL,body:this.request[vi]}),e=sF.execFileSync(process.argv[0],["-e",t],{encoding:"buffer",maxBuffer:1024*1024*1024});if(!e.length)throw new this.#e.DOMException(`Synchronous fetch to "${this.request.url}" failed.`,k.networkError);let{error:r,incomingMessage:n}=JSON.parse(e.toString());if(r)throw new this.#e.DOMException(`Synchronous fetch to "${this.request.url}" failed. Error: ${r}`,k.networkError);let i=Pc.parseResponseHeaders({browserFrame:this.#t,requestURL:this.request[Ve],rawHeaders:n.rawHeaders}),s={status:n.statusCode,statusText:n.statusMessage,ok:n.statusCode>=200&&n.statusCode<300,url:this.request.url,redirected:this.redirectCount>0,headers:i,body:this.parseIResponseBody({headers:i,status:n.statusCode,body:Buffer.from(n.data,"base64")})},l=this.handleRedirectResponse(s)||s;!this.disableCache&&!l.redirected&&this.#t.page.context.responseCache.add(this.request,{status:l.status,statusText:l.statusText,url:l.url,headers:l.headers,body:l.body,waitingForBody:false});let a=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:this.#e,response:l,request:this.request}):void 0,u=typeof a=="object"?a:l;return u.ok||this.#t.page.console.error(`${this.request.method} ${this.request.url} ${u.status} (${u.statusText})`),u}parseIResponseBody(t){let e=t.headers.get("Content-Encoding");if(this.request.method==="HEAD"||e===null||t.status===204||t.status===304)return t.body;try{if(e==="gzip"||e==="x-gzip")return Jp.gunzipSync(t.body,{flush:Jp.constants.Z_SYNC_FLUSH,finishFlush:Jp.constants.Z_SYNC_FLUSH});if(e==="deflate"||e==="x-deflate")return Jp.inflateSync(t.body);if(e==="br")return Jp.brotliDecompressSync(t.body)}catch(r){throw new this.#e.DOMException(`Failed to read response body. Error: ${r.message}.`,k.encodingError)}return t.body}handleRedirectResponse(t){if(!Ol.isRedirect(t.status))return null;switch(this.request.redirect){case "error":throw new this.#e.DOMException(`URI requested responds with a redirect, redirect mode is set to "error": ${this.request.url}`,k.abortError);case "manual":return null;case "follow":let e=t.headers.get("Location"),r=t.status===303||(t.status===301||t.status===302)&&this.request.method==="POST",n=null;if(e!==null)try{n=new He(e,this.request.url);}catch{throw new this.#e.DOMException(`URI requested responds with an invalid redirect URL: ${e}`,k.uriMismatchError)}if(n===null)return null;if(Ol.isMaxRedirectsReached(this.redirectCount))throw new this.#e.DOMException(`Maximum redirects reached at: ${this.request.url}`,k.networkError);let i=new this.#e.Headers(this.request.headers),s={method:this.request.method,signal:this.request.signal,referrer:this.request.referrer,referrerPolicy:this.request.referrerPolicy,credentials:this.request.credentials,headers:i,body:this.request[vi]};(this.request.credentials==="omit"||this.request.credentials==="same-origin"&&Rn.isCORS(this.#e.location.href,n))&&(i.delete("cookie"),i.delete("cookie2")),r&&(s.method="GET",s.body=void 0,i.delete("Content-Length"),i.delete("Content-Type"));let l=Gi.getReferrerPolicyFromHeader(i);return l&&(s.referrerPolicy=l),new o({browserFrame:this.#t,window:this.#e,url:n,init:s,redirectCount:this.redirectCount+1,contentType:r?null:this.request[$e]}).send();default:throw new this.#e.DOMException(`Redirect option '${this.request.redirect}' is not a valid value of TRequestRedirect`)}}};var zl=class{window;constructor(t){this.window=t;}async fetch(t,e,r){let n=new rt(this.window).getBrowserFrame();if(!n)return {content:"",virtualServerFile:null};if(e==="script"||e==="style"){let l=Ds.getKey({url:String(t),destination:e,mode:"cors",credentialsMode:r?.credentials||"same-origin"}),a=this.window.document[ho].get(l);if(a){this.window.document[ho].delete(l);let u=a.response||await a.onResponseAvailable();if(u&&!u.ok)throw new this.window.DOMException(`Failed to perform request to "${new He(t,this.window.location.href).href}". Status ${a.response?.status||"0"} ${a.response?.statusText||"Unknown"}.`);return {content:a.response?.[Mt]?.toString()||"",virtualServerFile:a.response?.[Mo]||null}}}let s=await new sn({browserFrame:n,window:this.window,url:t,disableSameOriginPolicy:e==="script"||e==="style",disablePreload:true,init:{credentials:r?.credentials,referrerPolicy:r?.referrerPolicy}}).send();if(!s.ok)throw new this.window.DOMException(`Failed to perform request to "${new He(t,this.window.location.href).href}". Status ${s.status} ${s.statusText}.`);return {content:await s.text(),virtualServerFile:s[Mo]||null}}fetchSync(t,e,r){let n=new rt(this.window).getBrowserFrame();if(!n)return {content:"",virtualServerFile:null};if(e==="script"||e==="style"){let l=Ds.getKey({url:String(t),destination:e,mode:"cors",credentialsMode:r?.credentials||"same-origin"}),a=this.window.document[ho].get(l);if(a&&a.response){if(this.window.document[ho].delete(l),!a.response.ok)throw new this.window.DOMException(`Failed to perform request to "${new He(t,this.window.location.href).href}". Status ${a.response.status} ${a.response.statusText}.`);return {content:a.response?.[Mt]?.toString()||"",virtualServerFile:a.response?.[Mo]||null}}}let s=new Lc({browserFrame:n,window:this.window,url:t,disableSameOriginPolicy:true,init:{credentials:r?.credentials,referrerPolicy:r?.referrerPolicy}}).send();if(!s.ok)throw new this.window.DOMException(`Failed to perform request to "${new He(t,this.window.location.href).href}". Status ${s.status} ${s.statusText}.`);return {content:s.body?.toString()||"",virtualServerFile:s[Mo]||null}}};g();g();var Mc=class{url;#t;#e;#r=null;constructor(t){this.#t=t.window,this.url=t.url,this.#e=t.source;}async evaluate(){if(this.#r)return this.#r;let t=new this.#t.CSSStyleSheet;return t.replaceSync(this.#e),this.#r={default:t},this.#r}async preload(){await this.evaluate();}};g();var Ic=class{url;#t;#e;#r=null;constructor(t){this.#t=t.window,this.url=t.url,this.#e=t.source;}async evaluate(){if(this.#r)return this.#r;let t;try{t=JSON.parse(this.#e);}catch(e){throw new this.#t.TypeError(`Failed to parse module "${this.url.href}": ${e.message}`)}return this.#r={default:t},this.#r}async preload(){await this.evaluate();}};g();var Mm=class{url;#t;#e=[];#r=null;constructor(t){this.#t=t.window,this.url=t.url;}async evaluate(){throw new this.#t.TypeError("Unresolved module. We should never end up here.")}async preload(){throw new this.#t.TypeError("Unresolved module. We should never end up here.")}addResolveListener(t,e){if(this.#r){e(this.#r);return}this.#e.push({resolve:t,reject:e});}resolve(t){t&&(this.#r=t);for(let e of this.#e)t?e.reject(t):e.resolve(null);}};g();g();g();var lF=["module","main"],aF=[".js",".mjs"],_l=class{static nodeModuleResolveCache=new Map;static packageJsonCache=new Map;static getURL(t,e,r){let n=typeof e=="string"?e:e.href,i=t[sc],s=this.resolveURL(t,n,r);if(!i)return new URL$1(s,n);if(i.scopes.length){for(let l of i.scopes)if(n.includes(l.scope)){for(let a of l.rules)if(s.startsWith(a.from))return new URL$1(a.to+s.replace(a.from,""),n)}}if(i.imports.length){for(let l of i.imports)if(s.startsWith(l.from))return new URL$1(l.to+s.replace(l.from,""),n)}return new URL$1(s,n)}static clearCache(){this.nodeModuleResolveCache.clear(),this.packageJsonCache.clear();}static resolveURL(t,e,r){let n=new rt(t).getSettings();if(!n)return r;let i=r;return n.module.resolveNodeModules&&(i=this.resolveNodeModuleURL(n.module.resolveNodeModules,r)),n.module.urlResolver&&(i=n.module.urlResolver({url:i,parentURL:e,window:t})),i}static resolveNodeModuleURL(t,e){if(e[0]==="."||e[0]==="/"||e.startsWith("http://")||e.startsWith("https://"))return e;let r=t.url[t.url.length-1]==="/"?"":"/",n=`${t.url}${r}`,i=Rp.resolve(t.directory),s=e.split("/"),l=this.nodeModuleResolveCache.get(e);if(l)return l;let a=e[0]==="@"?`${s[0]}/${s[1]}`:s[0],u=this.packageJsonCache.get(a);if(!u)try{u=JSON.parse(Ip.readFileSync(Rp.join(i,a,"package.json"),"utf-8")),this.packageJsonCache.set(a,u);}catch{return e}if(e[0]==="@"&&s.length===2||s.length===1){if(u.exports?.["."]?.import){let f=`${n}${a}/${u.exports["."].import.replace("./","")}`;return this.nodeModuleResolveCache.set(e,f),f}let h=t.mainFields||lF;for(let f of h)if(u[f]&&Ip.existsSync(Rp.join(i,a,u[f]))){let d=`${n}${e}/${u[f]}`;return this.nodeModuleResolveCache.set(e,d),d}return e}let c=s.slice(e[0]==="@"?2:1).join("/");if(u.exports)for(let h of Object.keys(u.exports)){let f=Array.isArray(u.exports[h].import)?u.exports[h].import[0]:u.exports[h].import;if(f){let d=new RegExp(`^${h.replace("./","").replace(/\./g,"\\.").replace(/\*/g,"(.*)")}$`),g=c.match(d);if(g){let A=f.replace("./","").replace("*",g[1]),w=`${n}${a}/${A}`;return this.nodeModuleResolveCache.set(e,w),w}}}if(!e.endsWith(".js")&&!e.endsWith(".mjs")){for(let h of aF)if(Ip.existsSync(Rp.join(i,`${e}${h}`))){let f=`${n}${e}${h}`;return this.nodeModuleResolveCache.set(e,f),f}}else if(Ip.existsSync(Rp.join(i,e))){let h=`${n}${e}`;return this.nodeModuleResolveCache.set(e,h),h}return e}};var uF=/import\.meta\.([a-zA-Z]+)|import\s*["']([^"']+)["'];{0,1}|import\s*\(([^)]+)\)|(import[\s{])|[\s}]from\s*["']([^"']+)["'](\s+with\s*{\s*type\s*:\s*["']([^"']+)["']\s*}){0,1}([;\s]*)|export(\s+[a-zA-Z0-9-_$]+\s+|\s+\*\s+|\s+\*\s+as\s+["'a-zA-Z0-9-_$]+\s+|\s*{[^}]+}\s*)from\s*["']([^"']+)["']|export\s*(default\s+){0,1}(async\s+){0,1}(function\*{0,1}|class)\s*([^({\s]+)|(export\s*default\s*)|export\s*{([^}]+)}|export\s+(var|let|const)\s+([^=;]+)(=|;)/gm,cF=/(\/)|(\(|\))|({|})|(\[|\])|(\${)|(`)|(')|(")|(\n)/gm,pF=/{([^}]+)}|\*\s+as\s+([a-zA-Z0-9-_$]+)|([a-zA-Z0-9-_$]+)/gm,mF=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/,$l=/['"`(){}\s;=><\[\]+-,:&]/,hF=/['"`({};=><\[+-,:&]/,yF=/\/\*|\*\//gm,zS=/export\s*/,dF=/export\s*default\s*/,fF=/;\s*$/,xf=class{window;debug=false;count={comment:0,singleLineComment:0,parentheses:0,curlyBraces:0,squareBrackets:0,regExp:0,regExpSquareBrackets:0,escapeTemplateString:0,simpleString:0,doubleString:0};debugCount={comment:[],singleLineComment:[],parentheses:[],curlyBraces:[],squareBrackets:[],regExp:[],regExpSquareBrackets:[],escapeTemplateString:[],simpleString:[],doubleString:[]};templateString=[];constructor(t){this.window=t;}compile(t,e,r=null){let n=new rt(this.window).getBrowserContext();if(!n)return {imports:[],execute:async()=>{}};let i=n.browser.settings;if(!i.module.disableCache&&r){let W=n[uc].get(t);if(W)return {imports:W.imports,execute:this.window[Nn](W.code,{filename:r})}}this.reset();let s=new RegExp(uF),l=[],a=[],u=this.count,c="",h="",f="",d=null,g,A,w=true,T=0,G=-1;for(;d=s.exec(e);){if(g=e[d.index-1]||" ",A=e.substring(T,d.index),this.parseSyntax(A,T),G===-1&&(c+=A),w=u.comment===0&&u.singleLineComment===0&&u.parentheses===0&&u.curlyBraces===0&&u.squareBrackets===0&&u.regExp===0&&u.simpleString===0&&u.doubleString===0&&this.templateString.length===0,d[1]&&u.simpleString===0&&u.doubleString===0&&u.comment===0&&u.singleLineComment===0&&u.regExp===0&&(this.templateString.length===0||this.templateString[0]>0)&&$l.test(this.getNonSpacePrecedingToken(e,d.index)))c+=`$happy_dom.importMeta.${d[1]}`;else if(d[2]&&w&&$l.test(g))l.push({url:_l.getURL(this.window,t,d[2]).href,type:"esm"});else if(d[3]&&u.simpleString===0&&u.doubleString===0&&u.comment===0&&u.singleLineComment===0&&u.regExp===0&&(this.templateString.length===0||this.templateString[0]>0)&&$l.test(g))c+=`$happy_dom.dynamicImport(${d[3]})`;else if(d[4]&&w&&$l.test(g)){if(G!==-1)throw new this.window.TypeError(`Failed to parse module: Unexpected import statement in "${t}"`);G=d.index+d[0].length-1;}else if(d[5]&&w&&G!==-1){let W=_l.getURL(this.window,t,d[5]).href,q=e.substring(G,d.index+1),ut=new RegExp(pF),Z=null;for(;Z=ut.exec(q);)if(Z[1]){let kt=this.removeMultilineComments(Z[1]).split(/\s*,\s*/),Lt=[];for(let Ee of kt){let ir=Ee.trim().split(/\s+as\s+/),Br=(ir[1]||ir[0]).replace(/["']/g,""),_e=ir[0].replace(/["']/g,"");Br&&_e&&(_e===Br?Lt.push({name:_e}):Lt.push({name:_e,alias:Br}));}(!d[7]||d[7]==="esm")&&a.push({url:W,properties:Lt}),h+=`let {${Lt.map(Ee=>Ee.alias?`"${Ee.name}": ${Ee.alias}`:Ee.name).join(", ")}} = $happy_dom.imports.get('${W}')${d[8]}`;}else Z[2]?h+=`const ${Z[2]} = $happy_dom.imports.get('${W}')${d[8]}`:Z[3]&&((!d[7]||d[7]==="esm")&&a.push({url:W,properties:[{name:"default",alias:Z[3]}]}),h+=`let ${Z[3]} = $happy_dom.imports.get('${W}').default${d[8]}`);G=-1,l.push({url:W,type:d[7]||"esm"});}else if(d[9]&&d[10]&&w&&$l.test(g)){let W=_l.getURL(this.window,t,d[10]).href,q=d[9].trim();if(q==="*")c+=`Object.assign($happy_dom.exports, $happy_dom.imports.get('${W}'))`,l.push({url:W,type:"esm"});else if(q[0]==="*"){let ut=q.split(/\s+as\s+/);if(ut.length===2){let Z=ut[1].replace(/["']/g,"");c+=`$happy_dom.exports['${Z}'] = $happy_dom.imports.get('${W}')`,l.push({url:W,type:"esm"});}}else if(q[0]==="{"){let ut=this.removeMultilineComments(q).slice(1,-1).split(/\s*,\s*/),Z=[];for(let kt of ut){let Lt=kt.trim().split(/\s+as\s+/),Ee=(Lt[1]||Lt[0]).replace(/["']/g,""),ir=Lt[0].replace(/["']/g,"");Ee&&ir&&Z.push(`$happy_dom.exports['${Ee}'] = $happy_dom.imports.get('${W}')['${ir}']`);}c+=Z.join(`;
148
+ `),l.push({url:W,type:"esm"});}}else if(d[13]&&d[14]&&w&&$l.test(g)){let W=d[14].replace("*","");if(W)d[11]?(c+=d[0].replace(dF,""),f+=`$happy_dom.exports.default = ${W};
149
+ `):(c+=d[0].replace(zS,""),f+=`$happy_dom.exports['${W}'] = ${W};
150
+ `);else if(d[11])c+=`$happy_dom.exports.default = ${d[12]||""}${d[13]}${W?" ":""}${d[14]}`;else throw new this.window.SyntaxError(`Failed to parse module: Missing function or class name in export statement in "${t}"`)}else if(d[15]&&w&&$l.test(g))c+="$happy_dom.exports.default = ";else if(d[16]&&w&&$l.test(g)){let W=this.removeMultilineComments(d[16]).split(/\s*,\s*/),q=[];for(let ut of W){let Z=ut.trim().split(/\s+as\s+/),kt=(Z[1]||Z[0]).replace(/["']/g,""),Lt=Z[0].replace(/["']/g,"");kt&&Lt&&mF.test(Lt)&&q.push(`$happy_dom.exports['${kt}'] = ${Lt}`);}c+=q.join(`;
151
+ `);}else if(d[17]&&w&&$l.test(g))if(d[19]==="="){let W=this.removeMultilineComments(d[18]).trim();if(W[0]==="{"&&W[W.length-1]==="}"||W[0]==="["&&W[W.length-1]==="]"){let q=W.slice(1,-1).split(/\s*,\s*/);for(let ut of q){let Z=ut.trim().split(/\s*:\s*/),kt=(Z[1]||Z[0]).replace(/["']/g,"");kt&&(f+=`$happy_dom.exports['${kt}'] = ${kt};
152
+ `);}c+=d[0].replace(zS,"");}else c+=d[0].replace(zS,""),f+=`$happy_dom.exports['${W}'] = ${W};
153
+ `;}else {c+=d[0].replace(zS,"");let W=this.removeMultilineComments(d[18]).split(",");for(let q of W){let ut=q.trim();f+=`$happy_dom.exports['${ut}'] = ${ut};
154
+ `;}}else if(G!==-1){let W=e.substring(G,d.index+1);c+=W,this.parseSyntax(W,G);}else c+=d[0],this.parseSyntax(d[0],d.index);T=s.lastIndex;}if(this.debug)return {imports:l,execute:async()=>{}};if(h&&!fF.test(h)&&(h=`
155
+ ${h};`),!i.disableErrorCapturing&&i.errorCapture===be.tryAndCatch?h="(async function anonymous($happy_dom) { try {"+h:h="(async function anonymous($happy_dom) {"+h,c=h+c,T===0?c+=e:c+=e.substring(T),c+=`
156
+ `+f,a.length>0){c+=`$happy_dom.addCircularImportResolver(() => {
157
+ `;for(let W of a)for(let q of W.properties)q.alias?c+=`${q.alias} = $happy_dom.imports.get('${W.url}')['${q.name}'];
158
+ `:c+=`${q.name} = $happy_dom.imports.get('${W.url}')['${q.name}'];
159
+ `;c+="});";}!i.disableErrorCapturing&&i.errorCapture===be.tryAndCatch&&(c+="} catch(e) { $happy_dom.dispatchError(e); }"),c+="})";let J;try{J=this.window[Nn](c,{filename:r||t});}catch(W){let q=this.getError(t,e,r),ut=q?new this.window.SyntaxError(`Failed to parse module in '${t}'. Execution error: ${W.message}. Compile error: ${q}`):W;if(W.message=`Failed to parse module in '${r}': ${ut.message}`,i.disableErrorCapturing||i.errorCapture!==be.tryAndCatch)throw ut;return this.window[Pe](ut),{imports:l,execute:async()=>{}}}return !i.module.disableCache&&r&&n[uc].set(t,{imports:l,code:c}),{imports:l,execute:J}}parseSyntax(t,e){let r=new RegExp(cF),n=this.count,i=this.debug,s=this.debugCount,l=null,a,u;for(e++;l=r.exec(t);)a=t[l.index-1]||" ",u=a==="\\"&&t[l.index-2]!=="\\",l[1]?n.simpleString===0&&n.doubleString===0&&n.singleLineComment===0&&n.regExpSquareBrackets===0&&(this.templateString.length===0||this.templateString[0]>0)&&(n.comment===1?a==="*"&&(n.comment=0,i&&(s.comment.length=0)):n.regExp===0?t[l.index+1]==="*"?(n.comment=1,i&&(s.comment=[e+l.index])):t[l.index+1]==="/"?(n.singleLineComment=1,i&&(s.singleLineComment=[e+l.index])):hF.test(this.getNonSpacePrecedingToken(t,l.index))&&(n.regExp=1,i&&(s.regExp=[e+l.index])):u||(n.regExp=0,i&&(s.regExp.length=0))):l[2]?n.simpleString===0&&n.doubleString===0&&n.regExp===0&&n.comment===0&&n.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(l[2]==="("?(n.parentheses++,i&&s.parentheses.push(e+l.index)):l[2]===")"&&n.parentheses>0&&(n.parentheses--,i&&s.parentheses.pop())):l[3]?n.simpleString===0&&n.doubleString===0&&n.regExp===0&&n.comment===0&&n.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(l[3]==="{"?(this.templateString.length&&this.templateString[0]++,n.curlyBraces++,i&&s.curlyBraces.push(e+l.index)):l[3]==="}"&&(this.templateString.length&&this.templateString[0]>0&&this.templateString[0]--,n.curlyBraces>0&&(n.curlyBraces--,i&&s.curlyBraces.pop()))):l[4]?n.simpleString===0&&n.doubleString===0&&n.comment===0&&n.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(n.regExp===1?u||(l[4]==="["&&n.regExpSquareBrackets===0?(n.regExpSquareBrackets=1,i&&(s.regExpSquareBrackets=[e+l.index])):l[4]==="]"&&n.regExpSquareBrackets===1&&(n.regExpSquareBrackets=0,i&&(s.regExpSquareBrackets.length=0))):l[4]==="["?(n.squareBrackets++,i&&s.squareBrackets.push(e+l.index)):l[4]==="]"&&n.squareBrackets>0&&(n.squareBrackets--,i&&s.squareBrackets.pop())):l[5]?n.simpleString===0&&n.doubleString===0&&n.comment===0&&n.singleLineComment===0&&n.regExp===0&&!u&&this.templateString[0]===0&&(this.templateString[0]=1,n.curlyBraces++,i&&s.curlyBraces.push(e+l.index)):l[6]?n.simpleString===0&&n.doubleString===0&&n.comment===0&&n.singleLineComment===0&&n.regExp===0&&!u&&(this.templateString?.[0]===0?this.templateString.shift():this.templateString.unshift(0)):l[7]?n.doubleString===0&&n.comment===0&&n.singleLineComment===0&&n.regExp===0&&!u&&(this.templateString.length===0||this.templateString[0]>0)&&(n.simpleString===0?(n.simpleString=1,i&&(s.simpleString=[e+l.index])):(n.simpleString=0,i&&(s.simpleString.length=0))):l[8]?n.simpleString===0&&n.comment===0&&n.singleLineComment===0&&n.regExp===0&&!u&&(this.templateString.length===0||this.templateString[0]>0)&&(n.doubleString===0?(n.doubleString=1,i&&(s.doubleString=[e+l.index])):(n.doubleString=0,i&&(s.doubleString.length=0))):l[9]&&(n.singleLineComment=0,i&&(s.singleLineComment.length=0));}getError(t,e,r){if(this.count.comment===0&&this.count.singleLineComment===0&&this.count.parentheses===0&&this.count.curlyBraces===0&&this.count.squareBrackets===0&&this.count.regExp===0&&this.count.regExpSquareBrackets===0&&this.count.simpleString===0&&this.count.doubleString===0)return null;this.debug||(this.debug=true,this.compile(t,e,r));let n=this.debugCount;if(n.comment.length>0){let{line:i,column:s}=this.getLineAndColumn(e,n.comment[0]);return `Missing end of comment on line ${i} and column ${s}`}else if(n.regExp.length>0){let{line:i,column:s}=this.getLineAndColumn(e,n.regExp[0]);return `Missing end of regular expression on line ${i} and column ${s}`}else if(n.regExpSquareBrackets.length>0){let{line:i,column:s}=this.getLineAndColumn(e,n.regExpSquareBrackets[0]);return `Missing end of regular expression square brackets on line ${i} and column ${s}`}else if(n.simpleString.length>0){let{line:i,column:s}=this.getLineAndColumn(e,n.simpleString[0]);return `Missing end of single quote string on line ${i} and column ${s}`}else if(n.doubleString.length>0){let{line:i,column:s}=this.getLineAndColumn(e,n.doubleString[0]);return `Missing end of double quote string on line ${i} and column ${s}`}else if(n.parentheses.length>0){let{line:i,column:s}=this.getLineAndColumn(e,n.parentheses[0]);return `Missing end of parentheses on line ${i} and column ${s}`}else if(n.curlyBraces.length>0){let{line:i,column:s}=this.getLineAndColumn(e,n.curlyBraces[0]);return `Missing end of curly braces on line ${i} and column ${s}`}else if(n.squareBrackets.length>0){let{line:i,column:s}=this.getLineAndColumn(e,n.squareBrackets[0]);return `Missing end of square brackets on line ${i} and column ${s}`}else if(n.escapeTemplateString.length>0){let{line:i,column:s}=this.getLineAndColumn(e,n.escapeTemplateString[0]);return `Missing end of escaped template string on line ${i} and column ${s}`}return null}getLineAndColumn(t,e){let r=t.substring(0,e).split(`
160
+ `),n=r.length,i=r[r.length-1].length;return {line:n,column:i}}getNonSpacePrecedingToken(t,e){e--;let r=t[e];for(;r===" "||r===`
161
+ `||r===" ";)e--,r=t[e];return r||";"}removeMultilineComments(t){let e=new RegExp(yF),r,n=0,i=0,s="";for(;r=e.exec(t);)n===0&&(s+=t.substring(i,r.index)),r[0]==="/*"?n++:r[0]==="*/"&&n>0&&n--,i=e.lastIndex;return s+=t.substring(i),s}reset(){this.count={comment:0,singleLineComment:0,parentheses:0,curlyBraces:0,squareBrackets:0,regExp:0,regExpSquareBrackets:0,escapeTemplateString:0,simpleString:0,doubleString:0},this.debugCount={comment:[],singleLineComment:[],parentheses:[],curlyBraces:[],squareBrackets:[],regExp:[],regExpSquareBrackets:[],escapeTemplateString:[],simpleString:[],doubleString:[]},this.templateString=[];}};var gF={imports:[],execute:async()=>{}},Kl=class o{url;[m];#t;#e;#r=false;#o=null;#n=null;#i=null;#l;constructor(t){this[m]=t.window,this.url=t.url,this.#t=t.source,this.#e=t.sourceURL||null,this.#l=t.factory;}async evaluate(t=[],e=null){if(this.#i)return t.includes(this.url.href)?(e&&this.#i.push(e),this.#n):new Promise(d=>{this.#i.push(d);});if(this.#n)return this.#n;let r=this.#u(),n=[],i=this[m];if(!new rt(i).getBrowserFrame())return {};let l={};this.#n=l,this.#i=[];for(let d of r.imports)n.push(this.#l.getModule(d.url,{with:{type:d.type}}));let a=new Map,u=null,c=()=>{u&&u();};if(n.length){let d=await Promise.all(n),g=[...t,this.url.href];for(let A of d)if(A instanceof o){let w=await A.evaluate(g,c);a.set(A.url.href,w);}else {let w=await A.evaluate();a.set(A.url.href,w);}}let h=this.url.href;r.execute({dispatchError:i[Pe].bind(i),dynamicImport:this.#l.importModule.bind(this.#l),importMeta:{url:h,resolve:d=>new URL$1(d,h).href},imports:a,exports:l,addCircularImportResolver:d=>u=d});let f=this.#i;this.#i=null;for(let d of f)d(l);return l}async preload(){if(this.#r)return;this.#r=true;let t=this.#u(),e=[],r=this[m];if(!new rt(r).getBrowserFrame())return;for(let l of t.imports)e.push(this.#l.getModule(l.url,{with:{type:l.type}}));let i=await Promise.all(e),s=[];for(let l of i)s.push(l.preload());await Promise.all(s);}#u(){if(this.#o)return this.#o;this.#o=gF;let t=new xf(this[m]);return this.#o=t.compile(this.url.href,this.#t,this.#e),this.#o}};var Hn=class o{window;parentURL;constructor(t,e){this.window=t,this.parentURL=e;}async getModule(t,e){let r=this.window,n=this.parentURL,i=_l.getURL(r,n,t),s=i.href,l=e?.with?.type||"esm";if(l!=="esm"&&l!=="css"&&l!=="json")throw new r.TypeError(`Failed to import module "${i}" from "${n}": Unknown type "${l}"`);let a=r[ks][l].get(s);if(a)return a instanceof Mm?(await new Promise((w,T)=>{a.addResolveListener(w,T);}),r[ks][l].get(s)):a;if(!new rt(r).getBrowserFrame())throw new r.TypeError(`Failed to import module "${i}" from "${n}": Window is closed and is no longer attached to a frame`);let c=new Mm({window:r,url:i}),h=r[dn],f=h.startTask();r[ks][l].set(s,c);let d=new zl(r),g;try{g=await d.fetch(i,"module");}catch(w){throw h.endTask(f),c.resolve(w),w}h.endTask(f);let A;switch(l){case "json":A=new Ic({window:r,url:i,source:g.content});break;case "css":A=new Mc({window:r,url:i,source:g.content});break;case "esm":A=new Kl({window:r,url:i,source:g.content,sourceURL:g.virtualServerFile||s,factory:new o(r,i)});break}return r[ks][l].set(s,A),c.resolve(),A}async importModule(t,e){let r=new rt(this.window).getBrowserFrame();if(!r)return {};let n=r[Tt],i=n?.startTask(),l=await(await this.getModule(t,e)).evaluate();return n.endTask(i),l}};g();var Ef=class{integrityMetadata=null;response=null;error=null;#t=null;onResponseAvailable(){return new Promise((t,e)=>{this.#t={resolve:t,reject:e};})}responseAvailable(t,e){this.response=e,this.error=t,this.#t&&(t?this.#t.reject(t):e?this.#t.resolve(e):this.#t.reject(new Error("Response is null")));}};var Im=class extends U{[lr]=null;[Nl]=false;[Wo]=null;#t=null;get onerror(){return E.getEventListener(this,"onerror")}set onerror(t){this[y].set("onerror",t);}get onload(){return E.getEventListener(this,"onload")}set onload(t){this[y].set("onload",t);}get sheet(){return this[lr]}get relList(){return this[Wo]||(this[Wo]=new go(b,this,"rel",["stylesheet","modulepreload","preload"])),this[Wo]}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[N].location.href).href}catch{return this.getAttribute("href")}}set href(t){this.setAttribute("href",t);}get hreflang(){return this.getAttribute("hreflang")||""}set hreflang(t){this.setAttribute("hreflang",t);}get media(){return this.getAttribute("media")||""}set media(t){this.setAttribute("media",t);}get referrerPolicy(){return this.getAttribute("referrerPolicy")||""}set referrerPolicy(t){this.setAttribute("referrerPolicy",t);}get rel(){return this.getAttribute("rel")||""}set rel(t){this.setAttribute("rel",t);}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t);}[Mr](){super[Mr]();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}}[ze](t,e){if(super[ze](t,e),t[ct]==="rel"||t[ct]==="href"){let r=this.getAttribute("rel"),n=this.getAttribute("href");if(r&&n)switch(r){case "stylesheet":this.#o(n);break;case "modulepreload":this.#e(n);break;case "preload":this.#r(n);break}}}async#e(t){let e=this[m],r=new rt(e).getBrowserFrame(),n=new rt(e).getSettings();if(!r||!n||!this[pt]||n.disableJavaScriptFileLoading||!n.enableJavaScriptEvaluation)return;let i=new Hn(e,e.location);if(n.disableErrorCapturing||n.errorCapture!==be.tryAndCatch)await(await i.getModule(t)).preload();else try{await(await i.getModule(t)).preload();}catch(s){r.page.console.error(s),e[Pe](s);return}}async#r(t){let e=this[m],r=new rt(e).getBrowserFrame(),n=this.as;if(!r||!this[pt]||n!=="script"&&n!=="style"&&n!=="fetch")return;let i=r.page.context.browser.settings;if(n==="script"&&(i.disableJavaScriptFileLoading||!i.enableJavaScriptEvaluation)||n==="style"&&i.disableCSSFileLoading)return;let s=new URL(t,e.location.href).href,l=Ds.getKey({url:s,destination:n,mode:"cors",credentialsMode:this.crossOrigin==="use-credentials"?"include":"same-origin"});if(e.document[ho].has(l))return;let a=new Ef;e.document[ho].set(l,a);let u=new sn({browserFrame:r,window:e,url:s,disableSameOriginPolicy:n==="script"||n==="style",disablePreload:true,init:{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin"}});try{let c=await u.send();c[Mt]||await c.buffer(),a.responseAvailable(null,c);}catch(c){a.responseAvailable(c,null),e.document[ho].delete(l),r.page.console.error(`Failed to preload resource "${s}": ${c.message}`);}}async#o(t){let e=this[m],r=new rt(e).getBrowserFrame();if(!r||t===null)return;let n=r.page.context.browser.settings;if(this[Nl]||!this[pt])return;let i;try{i=new URL(t,e.location.href).href;}catch{return}if(this.#t===i)return;if(n&&n.disableCSSFileLoading){if(n.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new I("load"));else {let h=new e.DOMException(`Failed to load external stylesheet "${i}". CSS file loading is disabled.`,k.notSupportedError);r.page.console.error(h),this.dispatchEvent(new I("error"));}return}let s=new zl(e),l=e[dn];this.#t=i;let a=l.startTask(),u=null,c=null;try{u=await s.fetch(i,"style",{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin"});}catch(h){c=h;}if(l.endTask(a),c)r.page.console.error(c),this.dispatchEvent(new I("error"));else {let h=new this[N][m].CSSStyleSheet;h.replaceSync(u.content),this[lr]=h;let f=this[N];if(f){for(let d of f[oi])d.result=null;f[oi]=[];}this.dispatchEvent(new I("load"));}}};g();var Rm=class extends U{[Ly]=null;get areas(){return this[Ly]||(this[Ly]=fe.getElementsByTagName(this,"area")),this[Ly]}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t);}};g();var jl=class extends Array{constructor(t){if(super(),t!==1&&t!==b)throw new TypeError("Illegal constructor")}getCueById(t){for(let e of this)if(e.id===t)return e;return null}};g();var Dm=class extends U{};g();var Om=class extends U{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);}};g();var Fm=class extends U{get high(){if(!this.hasAttribute("high"))return 1;let t=parseFloat(this.getAttribute("high")||"");return isNaN(t)||t>1?1:t<0?0:t}set high(t){if(t=typeof t!="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'high' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("high",String(t));}get low(){if(!this.hasAttribute("low"))return 0;let t=parseFloat(this.getAttribute("low")||"");return isNaN(t)||t<0?0:t>1?1:t}set low(t){if(t=typeof t!="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'low' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("low",String(t));}get max(){if(!this.hasAttribute("max"))return 1;let t=parseFloat(this.getAttribute("max")||"");return isNaN(t)||t>1?1:t<0?0:t}set max(t){if(t=typeof t!="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'max' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("max",String(t));}get min(){if(!this.hasAttribute("min"))return 0;let t=parseFloat(this.getAttribute("min")||"");return isNaN(t)||t<0?0:t>1?1:t}set min(t){if(t=typeof t!="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'min' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("min",String(t));}get optimum(){if(!this.hasAttribute("optimum"))return .5;let t=parseFloat(this.getAttribute("optimum")||"");return isNaN(t)?.5:t<0?0:t>1?1:t}set optimum(t){if(t=typeof t!="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'optimum' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("optimum",String(t));}get value(){if(!this.hasAttribute("value"))return 0;let t=parseFloat(this.getAttribute("value")||"");return isNaN(t)||t<0?0:t>1?1:t}set value(t){if(t=typeof t!="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'value' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("value",String(t));}get labels(){return Po.getAssociatedLabelElements(this)}};g();var Bm=class extends U{get cite(){if(!this.hasAttribute("cite"))return "";try{return new URL(this.getAttribute("cite"),this[N].location.href).href}catch{return this.getAttribute("cite")}}set cite(t){this.setAttribute("cite",t);}get dateTime(){return this.getAttribute("datetime")||""}set dateTime(t){this.setAttribute("datetime",t);}};g();var Vm=class extends U{get reversed(){return this.getAttribute("reversed")!==null}set reversed(t){t?this.setAttribute("reversed",""):this.removeAttribute("reversed");}get start(){if(!this.hasAttribute("start"))return 1;let t=Number(this.getAttribute("start")||"");return isNaN(t)?1:t}set start(t){typeof t!="number"&&(t=Number(t)),isNaN(t)&&(t=0),this.setAttribute("start",String(t));}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t);}};g();var Hm=class extends U{[Xt]=null;[Ye]="";[dr]=new So(this);get contentDocument(){return null}get contentWindow(){return null}get data(){if(!this.hasAttribute("data"))return "";try{return new URL(this.getAttribute("data"),this[N].location.href).href}catch{return this.getAttribute("data")}}set data(t){this.setAttribute("data",t);}get form(){if(this[Xt])return this[Xt];let t=this.getAttribute("form");return !t||!this[pt]?null:this[N].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[Ye]}get validity(){return this[dr]}get willValidate(){return false}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t;}checkValidity(){return true}reportValidity(){return this.checkValidity()}setCustomValidity(t){this[Ye]=String(t);}};g();var Gm=class extends U{get label(){return this.getAttribute("label")||""}set label(t){t?this.setAttribute("label",t):this.removeAttribute("label");}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled");}};g();var Ws=class extends U{[Qr]=false;[Pa]=false;[er]=null;get text(){return this.innerText}set text(t){this.innerText=t;}get index(){return this[er]?ft.querySelectorAll(this[er],"option")[X].indexOf(this):0}get form(){return this[er]?.form||null}get selected(){return this[Qr]}set selected(t){let e=this[er];this[Pa]=true,this[Qr]=!!t,e&&e[Ea](this[Qr]?this:null);}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled");}get value(){return this.getAttribute("value")??this.textContent}set value(t){this.setAttribute("value",t);}[ze](t,e){if(super[ze](t,e),!this[Pa]&&t[ct]==="selected"&&e?.[nt]!==t[nt]){let r=this[er];this[Qr]=true,r&&r[Ea](this);}}[br](t){if(super[br](t),t&&!this[Pa]&&t[ct]==="selected"){let e=this[er];this[Qr]=false,e&&e[Ea]();}}[Ho](){super[Ho](),this[er]&&this[er][Ea]();}[Xi](){this[er]&&this[er][Ea](),super[Xi]();}};g();var Um=class extends U{[Xt]=null;[Ye]="";[dr]=new So(this);[Ko]="";get defaultValue(){return this[Ko]}set defaultValue(t){this[Ko]=t;}get form(){if(this[Xt])return this[Xt];let t=this.getAttribute("form");return !t||!this[pt]?null:this[N].getElementById(t)}get htmlFor(){return this.getAttribute("for")||""}set htmlFor(t){this.setAttribute("for",t);}get labels(){return Po.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[Ye]}get validity(){return this[dr]}get willValidate(){return false}checkValidity(){return true}reportValidity(){return this.checkValidity()}setCustomValidity(t){this[Ye]=String(t);}};g();var Wm=class extends U{};g();var zm=class extends U{};g();var _m=class extends U{};g();var $m=class extends U{};g();var Km=class extends U{get max(){if(!this.hasAttribute("max"))return 1;let t=parseFloat(this.getAttribute("max")||"");return isNaN(t)||t<0?1:t}set max(t){if(t=typeof t!="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'max' property on 'HTMLProgressElement': The provided double value is non-finite.");this.setAttribute("max",t<0?"1":String(t));}get value(){if(!this.hasAttribute("value"))return 0;let t=parseFloat(this.getAttribute("value")||"");return isNaN(t)||t<0?0:t}set value(t){if(t=typeof t!="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'value' property on 'HTMLProgressElement': The provided double value is non-finite.");this.setAttribute("value",t<0?"0":String(t));}get position(){return this.hasAttribute("value")?this.value/this.max:-1}get labels(){return Po.getAssociatedLabelElements(this)}};g();var jm=class extends U{get cite(){if(!this.hasAttribute("cite"))return "";try{return new URL(this.getAttribute("cite"),this[N].location.href).href}catch{return this.getAttribute("cite")}}set cite(t){this.setAttribute("cite",t);}};g();g();var SF=/import\s*\(([^)]+)\)/gm,PF=/(\/)|(\(|\))|({|})|(\[|\])|(\${)|(`)|(')|(")|(\n)/gm,AF=/['"`(){}\s;=><\[\]+-,:&]/,wF=/['"`({};=><\[+-,:&]/,qm=class{window;count={comment:0,singleLineComment:0,parentheses:0,curlyBraces:0,squareBrackets:0,regExp:0,regExpSquareBrackets:0,escapeTemplateString:0,simpleString:0,doubleString:0};templateString=[];constructor(t){this.window=t;}compile(t,e){let r=new rt(this.window).getSettings();if(!r)return {execute:()=>{}};let n=new RegExp(SF),i=this.count,s="(function anonymous($happy_dom) {",l=null,a,u,c=0;for(!r.disableErrorCapturing&&r.errorCapture===be.tryAndCatch&&(s+="try {");l=n.exec(e);)a=e[l.index-1]||" ",u=e.substring(c,l.index),this.parseSyntax(u,c),(s+=u),l[1]&&i.simpleString===0&&i.doubleString===0&&i.comment===0&&i.singleLineComment===0&&i.regExp===0&&(this.templateString.length===0||this.templateString[0]>0)&&AF.test(a)?s+=`$happy_dom.dynamicImport(${l[1]})`:(s+=l[0],this.parseSyntax(l[0],l.index)),c=n.lastIndex;c===0?s+=e:s+=e.substring(c),!r.disableErrorCapturing&&r.errorCapture===be.tryAndCatch&&(s+="} catch (error) { $happy_dom.dispatchError(error); }"),s+="})";try{return {execute:this.window[Nn](s,{filename:t})}}catch(f){if(f.message=`Failed to parse JavaScript in '${t}': ${f.message}`,r.disableErrorCapturing||r.errorCapture!==be.tryAndCatch)throw f;return this.window[Pe](f),{execute:()=>{}}}}parseSyntax(t,e){let r=new RegExp(PF),n=this.count,i=null,s,l;for(e++;i=r.exec(t);)s=t[i.index-1]||" ",l=s==="\\"&&t[i.index-2]!=="\\",i[1]?n.simpleString===0&&n.doubleString===0&&n.singleLineComment===0&&n.regExpSquareBrackets===0&&(this.templateString.length===0||this.templateString[0]>0)&&(n.comment===1?s==="*"&&(n.comment=0):n.regExp===0?t[i.index+1]==="*"?n.comment=1:t[i.index+1]==="/"?n.singleLineComment=1:wF.test(this.getNonSpacePrecedingToken(t,i.index))&&(n.regExp=1):l||(n.regExp=0)):i[2]?n.simpleString===0&&n.doubleString===0&&n.regExp===0&&n.comment===0&&n.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(i[2]==="("?n.parentheses++:i[2]===")"&&n.parentheses>0&&n.parentheses--):i[3]?n.simpleString===0&&n.doubleString===0&&n.regExp===0&&n.comment===0&&n.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(i[3]==="{"?(this.templateString.length&&this.templateString[0]++,n.curlyBraces++):i[3]==="}"&&(this.templateString.length&&this.templateString[0]>0&&this.templateString[0]--,n.curlyBraces>0&&n.curlyBraces--)):i[4]?n.simpleString===0&&n.doubleString===0&&n.comment===0&&n.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(n.regExp===1?l||(i[4]==="["&&n.regExpSquareBrackets===0?n.regExpSquareBrackets=1:i[4]==="]"&&n.regExpSquareBrackets===1&&(n.regExpSquareBrackets=0)):i[4]==="["?n.squareBrackets++:i[4]==="]"&&n.squareBrackets>0&&n.squareBrackets--):i[5]?n.simpleString===0&&n.doubleString===0&&n.comment===0&&n.singleLineComment===0&&n.regExp===0&&!l&&this.templateString[0]===0&&(this.templateString[0]=1,n.curlyBraces++):i[6]?n.simpleString===0&&n.doubleString===0&&n.comment===0&&n.singleLineComment===0&&n.regExp===0&&!l&&(this.templateString?.[0]===0?this.templateString.shift():this.templateString.unshift(0)):i[7]?n.doubleString===0&&n.comment===0&&n.singleLineComment===0&&n.regExp===0&&!l&&(this.templateString.length===0||this.templateString[0]>0)&&(n.simpleString===0?n.simpleString=1:n.simpleString=0):i[8]?n.simpleString===0&&n.comment===0&&n.singleLineComment===0&&n.regExp===0&&!l&&(this.templateString.length===0||this.templateString[0]>0)&&(n.doubleString===0?n.doubleString=1:n.doubleString=0):i[9]&&(n.singleLineComment=0);}getNonSpacePrecedingToken(t,e){e--;let r=t[e];for(;r===" "||r===`
162
+ `||r===" ";)e--,r=t[e];return r||";"}};var Ym=class extends U{[Nl]=false;[Xd]=null;#t=null;get onerror(){return E.getEventListener(this,"onerror")}set onerror(t){this[y].set("onerror",t);}get onload(){return E.getEventListener(this,"onload")}set onload(t){this[y].set("onload",t);}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t);}get blocking(){return this[Xd]||(this[Xd]=new go(b,this,"blocking")),this[Xd]}set blocking(t){this.setAttribute("blocking",t);}get crossOrigin(){return this.getAttribute("crossorigin")||""}set crossOrigin(t){this.setAttribute("crossorigin",t);}get fetchPriority(){let t=this.getAttribute("fetchpriority");switch(t){case "high":case "low":case "normal":return t;default:return "auto"}}set fetchPriority(t){this.setAttribute("fetchpriority",t);}get noModule(){return this.getAttribute("nomodule")!==null}set noModule(t){t?this.setAttribute("nomodule",""):this.removeAttribute("nomodule");}get integrity(){return this.getAttribute("integrity")||""}set integrity(t){this.setAttribute("integrity",t);}get referrerPolicy(){let t=this.getAttribute("referrerpolicy");switch(t){case "no-referrer":case "no-referrer-when-downgrade":case "same-origin":case "origin":case "strict-origin":case "origin-when-cross-origin":case "strict-origin-when-cross-origin":case "unsafe-url":return t;default:return ""}}set referrerPolicy(t){this.setAttribute("referrerpolicy",t);}get src(){if(!this.hasAttribute("src"))return "";try{return new URL(this.getAttribute("src"),this[N].location.href).href}catch{return this.getAttribute("src")}}set src(t){this.setAttribute("src",t);}get charset(){return this.getAttribute("charset")||""}set charset(t){this.setAttribute("charset",t);}get lang(){return this.getAttribute("lang")||""}set lang(t){this.setAttribute("lang",t);}get async(){return this.getAttribute("async")!==null}set async(t){t?this.setAttribute("async",""):this.removeAttribute("async");}get defer(){return this.getAttribute("defer")!==null}set defer(t){t?this.setAttribute("defer",""):this.removeAttribute("defer");}get text(){return this.textContent}set text(t){this.textContent=t;}[xt](t=false){return super[xt](t)}[Mr](){let t=new rt(this[m]).getSettings();if(super[Mr](),this[Nl])return;let e=this.getAttribute("src");if(e!==null)this.getAttribute("type")==="module"?this.#n(e):this.#i(e);else if(t&&t.enableJavaScriptEvaluation){let r=this.textContent,n=this.getAttribute("type");r&&(n==="module"?this.#e(r):n==="importmap"?this.#r(r):(n===null||n==="application/x-ecmascript"||n==="application/x-javascript"||n.startsWith("text/javascript"))&&this.#o(r));}}[ze](t,e){super[ze](t,e),t[ct]==="src"&&t[nt]!==null&&this[pt]&&(this.getAttribute("type")==="module"?this.#n(t[nt]):this.#i(t[nt]));}#e(t){let e=this[N].location,r=this[m],n=new rt(r).getSettings();if(!new rt(r).getBrowserFrame()||!n||!n.enableJavaScriptEvaluation)return;this[N][Cn]=this;let s=new Hn(r,e),l=new Kl({window:r,url:e,source:t,factory:s});n.disableErrorCapturing||n.errorCapture!==be.tryAndCatch?l.evaluate():l.evaluate().catch(a=>{r[Pe](a);}),this[N][Cn]=null,this.dispatchEvent(new I("load"));}async#r(t){let e=this[m],r=new rt(e).getSettings();if(!new rt(e).getBrowserFrame()||!r||e[sc]||!r.enableJavaScriptEvaluation)return;let i;if(r.disableErrorCapturing||r.errorCapture!==be.tryAndCatch)i=JSON.parse(t);else try{i=JSON.parse(t);}catch(s){e[Pe](s);return}if(i.imports||i.scopes){let s={imports:[],scopes:[]};if(i.imports)for(let l of Object.keys(i.imports))s.imports.push({from:l,to:i.imports[l]});if(i.scopes)for(let l of Object.keys(i.scopes)){let a={scope:l,rules:[]};for(let u of Object.keys(i.scopes[l])){let c=i.scopes[l][u];a.rules.push({from:u,to:c});}s.scopes.push(a);}e[sc]=s;}}#o(t){let e=this[m];if(!new rt(e).getSettings())return;this[N][Cn]=this;let i=new qm(e).compile(e.location.href,t),s=new Hn(e,e.location);i.execute({dynamicImport:s.importModule.bind(s),dispatchError:e[Pe].bind(e)}),this[N][Cn]=null;}async#n(t){let e=this[m],r=new rt(e).getBrowserFrame(),n=new rt(e).getSettings();if(!r||!n||!t||!this[pt]||this.getAttribute("type")!=="module")return;if(n&&(n.disableJavaScriptFileLoading||!n.enableJavaScriptEvaluation)){if(n.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new I("load"));else {let s=new e.DOMException(`Failed to load module "${t}". JavaScript file loading is disabled.`,k.notSupportedError);r.page.console.error(s),this.dispatchEvent(new I("error"));}return}let i=new Hn(e,e.location);if(n.disableErrorCapturing||n.errorCapture!==be.tryAndCatch)await(await i.getModule(t)).evaluate();else try{await(await i.getModule(t)).evaluate();}catch(s){r.page.console.error(s),this.dispatchEvent(new I("error"));return}this.dispatchEvent(new I("load"));}async#i(t){let e=this[m],r=new rt(e).getBrowserFrame();if(!r)return;let n=r.page.context.browser.settings,i=this.getAttribute("type");if(!t||!this[pt]||i!==null&&i!=="application/x-ecmascript"&&i!=="application/x-javascript"&&!i.startsWith("text/javascript"))return;let s;try{s=new URL(t,e.location.href);}catch{return}let l=s.toString();if(this.#t===l)return;if(n&&(n.disableJavaScriptFileLoading||!n.enableJavaScriptEvaluation)){if(n.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new I("load"));else {let g=new e.DOMException(`Failed to load script "${s}". JavaScript file loading is disabled.`,k.notSupportedError);r.page.console.error(g),this.dispatchEvent(new I("error"));}return}this.#t=l;let a=new zl(e),u=this.getAttribute("async")!==null||this.getAttribute("defer")!==null,c=null;if(u){let g=e[dn],A=g.startTask();try{c=await a.fetch(l,"script",{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin",referrerPolicy:this.referrerPolicy});}catch(w){r.page.console.error(w),this.dispatchEvent(new I("error")),g.endTask(A);return}g.endTask(A);}else try{c=a.fetchSync(l,"script",{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin",referrerPolicy:this.referrerPolicy});}catch(g){r.page.console.error(g),this.dispatchEvent(new I("error"));return}this[N][Cn]=this;let f=new qm(e).compile(c.virtualServerFile||l,c.content),d=new Hn(e,e.location);f.execute({dynamicImport:d.importModule.bind(d),dispatchError:e[Pe].bind(e)}),this[N][Cn]=null,this.dispatchEvent(new I("load"));}static supports(t){switch(t){case "classic":case "module":case "importmap":return true;default:return false}}};g();g();var Rc=class extends Fe{constructor(t,e){super(t,()=>ft.querySelectorAll(e,"option")[X]),this[Ht]=e;}get selectedIndex(){return this[Ht].selectedIndex}set selectedIndex(t){this[Ht].selectedIndex=t;}add(t,e){this[Ht].add(t,e);}remove(t){this[Ht].remove(t);}};var Qm=class o extends U{[Ye]="";[dr]=new So(this);[No]=null;[Na]=null;[Ln]=-1;[jt];constructor(){super();let t=new De(this,[o,U,zr,Et,Ot]),e=new Proxy(this,{get:(r,n)=>{if(n in r||typeof n=="symbol")return t.bind(n),r[n];let i=Number(n);if(!isNaN(i))return ft.querySelectorAll(r,"option")[X][i]},set(r,n,i){if(t.bind(n),typeof n=="symbol")return r[n]=i,true;let s=Number(n);if(isNaN(s))return r[n]=i,true;if(!i||!(i instanceof Ws))throw new r[m].Error(`TypeError: Failed to set an indexed property [${s}] on 'HTMLSelectElement': parameter 2 is not of type 'HTMLOptionElement'.`);let l=ft.querySelectorAll(r,"option")[X],a=r[j];for(;a.length;)r[Hr](a[0]);for(let u=0;u<=s;u++)u===s?r[Ft](i):l[u]?r[Ft](l[u]):r[Ft](r[N].createElement("option"));return true},deleteProperty(r,n){if(typeof n=="symbol")return delete r[n],true;let i=Number(n);return isNaN(i)&&delete r[n],true},ownKeys(r){return Object.keys(ft.querySelectorAll(r,"option")[X])},has(r,n){if(n in r)return true;if(typeof n=="symbol")return false;let i=Number(n);return isNaN(i)?false:!!ft.querySelectorAll(r,"option")[X][i]},defineProperty(r,n,i){t.preventBinding(n);let s=Number(n);if(isNaN(s))return Object.defineProperty(r,n,i),true;if(!i.value||!(i.value instanceof Ws))throw new r[m].Error(`TypeError: Failed to set an indexed property [${s}] on 'HTMLSelectElement': parameter 2 is not of type 'HTMLOptionElement'.`);let l=ft.querySelectorAll(r,"option")[X],a=r[j];for(;a.length;)r[Hr](a[0]);for(let u=0;u<=s;u++)u===s?r[Ft](i.value):l[u]?r[Ft](l[u]):r[Ft](r[N].createElement("option"));return true},getOwnPropertyDescriptor(r,n){if(n in r)return Object.getOwnPropertyDescriptor(r,n);let i=Number(n);if(isNaN(i))return;let s=ft.querySelectorAll(r,"option")[X];if(s[i])return {value:s[i],writable:true,enumerable:true,configurable:true}}});return this[jt]=e,this[er]=e,e}get onchange(){return E.getEventListener(this,"onchange")}set onchange(t){this[y].set("onchange",t);}get oninput(){return E.getEventListener(this,"oninput")}set oninput(t){this[y].set("oninput",t);}get length(){return ft.querySelectorAll(this,"option")[X].length}get options(){return this[No]||(this[No]=new Rc(b,this)),this[No]}get validationMessage(){return this[Ye]}get validity(){return this[dr]}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t);}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled");}get multiple(){return this.getAttribute("multiple")!==null}set multiple(t){t?this.setAttribute("multiple",""):this.removeAttribute("multiple");}get autofocus(){return this.getAttribute("autofocus")!==null}set autofocus(t){t?this.setAttribute("autofocus",""):this.removeAttribute("autofocus");}get required(){return this.getAttribute("required")!==null}set required(t){t?this.setAttribute("required",""):this.removeAttribute("required");}get type(){return this.hasAttributeNS(null,"multiple")?"select-multiple":"select-one"}get value(){let t=ft.querySelectorAll(this,"option")[X];for(let e=0,r=t.length;e<r;e++){let n=t[e];if(n[Qr])return n.value}return ""}set value(t){let e=ft.querySelectorAll(this,"option")[X];this[Ln]=-1;for(let r=0,n=e.length;r<n;r++){let i=e[r];i.value===t?(i[Qr]=true,i[Pa]=true,this[Ln]=r):i[Qr]=false;}}get selectedIndex(){return this[Ln]}set selectedIndex(t){if(t=Number(t),isNaN(t))return;let e=ft.querySelectorAll(this,"option")[X];if(this[Ln]=-1,typeof t=="number"&&!isNaN(t)){for(let n=0,i=e.length;n<i;n++)e[n][Qr]=false;let r=e[t];r&&(r[Qr]=true,r[Pa]=true,this[Ln]=t);}}get selectedOptions(){return this[Na]||(this[Na]=new Fe(b,()=>{let t=ft.querySelectorAll(this,"option")[X];if(t[Na])return t[Na];let e=[];for(let r=0,n=t.length;r<n;r++){let i=t[r];i[Qr]&&e.push(i);}return t[Na]=e,e})),this[Na]}get labels(){return Po.getAssociatedLabelElements(this)}get form(){if(this[Xt])return this[Xt];let t=this.getAttribute("form");return !t||!this[pt]?null:this[N].getElementById(t)}get willValidate(){return this.type!=="hidden"&&this.type!=="reset"&&this.type!=="button"&&!this.disabled}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t;}item(t){return this.options.item(t)}add(t,e){let r=ft.querySelectorAll(this,"option")[X];if(!e&&e!==0){let l=this[j];for(;l.length;)this[Hr](l[0]);for(let a of r)this[Ft](a);this[Ft](t);return}let n=this[m];if(typeof e!="number"){if(!(e instanceof Ws))throw new n.DOMException("Failed to execute 'add' on 'HTMLFormElement': The node before which the new node is to be inserted before is not an 'HTMLOptionElement'.");e=r.indexOf(e);}if(!r[e])throw new n.DOMException("Failed to execute 'add' on 'HTMLFormElement': The node before which the new node is to be inserted before is not a child of this node.");let s=this[j];for(;s.length;)this[Hr](s[0]);for(let l=0,a=r.length;l<a;l++)l===e&&this[Ft](t),this[Ft](r[l]);}remove(t){if(typeof t=="number"){let e=ft.querySelectorAll(this,"option")[X];if(!e[t])return;let r=this[j];for(;r.length;)this[Hr](r[0]);for(let n=0,i=e.length;n<i;n++)n!==t&&this[Ft](e[n]);}else super.remove();}setCustomValidity(t){this[Ye]=String(t);}checkValidity(){let t=this.disabled||this[dr].valid;return t||this.dispatchEvent(new I("invalid",{bubbles:true,cancelable:true})),t}reportValidity(){return this.checkValidity()}[Ea](t){let e=this.hasAttribute("multiple"),r=ft.querySelectorAll(this,"option")[X],n=[];if(t&&(this[Ln]=-1),!e)for(let s=0,l=r.length;s<l;s++){let a=r[s];t&&(a[Qr]=a===t,a===t&&(this[Ln]=s)),a[Qr]&&n.push(a);}if(this.#t()===1&&!n.length){this[Ln]=-1;for(let s=0,l=r.length;s<l;s++){let a=r[s],u=a[K],c=a.hasAttributeNS(null,"disabled");if(u&&u[H]===M.elementNode&&u[st]==="OPTGROUP"&&u.hasAttributeNS(null,"disabled")&&(c=true),!c){a[Qr]=true,this[Ln]=s;break}}}else if(n.length>=2){this[Ln]=-1;for(let s=0,l=r.length;s<l;s++)r[s][Qr]=s===n.length-1,s===n.length-1&&(this[Ln]=s);}}#t(){if(this.hasAttributeNS(null,"size")){let t=parseInt(this.getAttribute("size"));if(!isNaN(t)&&t>=0)return t}return this.hasAttributeNS(null,"multiple")?4:1}};g();var Lx,_S=class extends U{[ss]=[];get onslotchange(){return E.getEventListener(this,"onslotchange")}set onslotchange(t){this[y].set("onslotchange",t);}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t);}assign(...t){let e=this.getRootNode();if(e?.[Ii]!=="manual")return;let r=e.host;if(r){for(let n of t)if(n instanceof Et&&r[j].includes(n)&&n[H]!==M.commentNode){if(n[si]){let i=n[si][ss].indexOf(n);i!==-1&&n[si][ss].splice(i,1);}n[si]=this,this[ss].push(n);}}}assignedNodes(t){return this.#t(this.name,t)}assignedElements(t){return this.#e(this.name,t)}[xt](t=false){return super[xt](t)}[ze](t,e){if(super[ze](t,e),t[ct]==="name"&&t[nt]!==e?.[nt]){let r=this.#t(e?.[nt]),n=this.#t(t.value);if(r.length!==n.length)this.dispatchEvent(new I("slotchange",{bubbles:true}));else for(let i=0,s=n.length;i<s;i++)if(r[i]!==n[i]){this.dispatchEvent(new I("slotchange",{bubbles:true}));break}}}[br](t){super[br](t),t[ct]==="name"&&t[nt]&&this.#t(t.value).length>0&&this.dispatchEvent(new I("slotchange",{bubbles:true}));}#t(t,e){let r=this.getRootNode();if(!r?.host)return [];if(r[Ii]==="manual")return this[ss];let n=r.host,i=!!e?.flatten,s=[];for(let l of n[j]){let a=l.slot;if(t&&a&&a===t||!t&&!a)if(i&&l instanceof Lx)for(let u of l.assignedNodes(e))s.push(u);else s.push(l);}return s}#e(t,e){let r=this.getRootNode();if(!r?.host)return [];if(r[Ii]==="manual"){let l=[];for(let a of this[ss])a instanceof zr&&l.push(a);return l}let n=r.host,i=!!e?.flatten,s=[];for(let l of n[Pt]){let a=l.slot;if(t&&a===t||!t&&!a)if(i&&l instanceof Lx)for(let u of l.assignedElements(e))s.push(u);else s.push(l);}return s}};Lx=_S;var Mx=_S;g();var Jm=class extends U{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[N].location.href).href}catch{return this.getAttribute("src")||""}}set src(t){this.setAttribute("src",t);}get srcset(){return this.getAttribute("srcset")||""}set srcset(t){this.setAttribute("srcset",t);}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t);}};g();var Xm=class extends U{};g();var Zm=class extends U{[lr]=null;[Gr]=this;[Da]=false;get media(){return this.getAttribute("media")||""}set media(t){this.setAttribute("media",t);}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t);}get disabled(){return this[Da]}set disabled(t){this[Da]=!!t;}get sheet(){return this[pt]?(this[lr]||(this[lr]=new this[N][m].CSSStyleSheet,this[lr].replaceSync(this.textContent)),this[lr]):null}[Ir](){super[Ir](),this[lr]=null;}[It](){super[It](),this[lr]=null;}[La](){this[lr]&&this[lr].replaceSync(this.textContent);}};g();var yu=class extends U{};g();var th=class extends U{get abbr(){return this.getAttribute("abbr")||""}set abbr(t){this.setAttribute("abbr",t);}get cellIndex(){let t=this.parentNode;for(;t;){if(t[st]==="TR")return ft.querySelectorAll(t,"td,th")[X].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);}};g();var eh=class extends U{};g();g();var Ki=class extends U{insertRow(t=-1){typeof t!="number"&&(t=-1);let e=ft.querySelectorAll(this,"tr")[X];if(t<-1)throw new this[m].DOMException(`Failed to execute 'insertRow' on 'HTMLTableSectionElement': The index provided (${t}) is less than -1.`,k.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}).`,k.indexSizeError);let r=this[N].createElement("tr");return t===-1||t===e.length?this.appendChild(r):this.insertBefore(r,e[t]),r}deleteRow(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'deleteRow' on 'HTMLTableSectionElement': 1 argument required, but only 0 present.");if(typeof t!="number"&&(t=-1),t<-1)throw new this[m].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableSectionElement': The index provided (${t}) is less than -1.`,k.indexSizeError);let e=ft.querySelectorAll(this,"tr")[X];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}).`,k.indexSizeError);t===-1&&(t=e.length-1),e[t].remove();}};var rh=class extends U{[Iy]=null;[Ry]=null;get caption(){return ft.querySelector(this,"caption")}set caption(t){if(t){if(!(t instanceof yu))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 ft.querySelector(this,"thead")}set tHead(t){if(t){if(!(t instanceof Ki))throw new this[m].TypeError("Failed to set the 'tHead' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableSectionElement'.");this.tHead?.remove();let e=false;for(let r of this[Pt])if(r[st]!=="CAPTION"&&r[st]!=="COLGROUP"){this.insertBefore(t,r),e=true;break}e||this.appendChild(t);}else this.tHead?.remove();}get tFoot(){return ft.querySelector(this,"tfoot")}set tFoot(t){if(t){if(!(t instanceof Ki))throw new this[m].TypeError("Failed to set the 'tFoot' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableSectionElement'.");this.tFoot?.remove();let e=false;for(let r of this[Pt])if(r[st]!=="CAPTION"&&r[st]!=="COLGROUP"&&r[st]!=="THEAD"){this.insertBefore(t,r),e=true;break}e||this.appendChild(t);}else this.tFoot?.remove();}get rows(){return this[Iy]||(this[Iy]=new Fe(b,()=>ft.querySelectorAll(this,"tr")[X])),this[Iy]}get tBodies(){return this[Ry]||(this[Ry]=new Fe(b,()=>ft.querySelectorAll(this,"tbody")[X])),this[Ry]}createTHead(){let t=this.tHead;if(t)return t;let e=this[N].createElement("thead");return this.tHead=e,e}deleteTHead(){this.tHead=null;}createTFoot(){let t=this.tFoot;if(t)return t;let e=this[N].createElement("tfoot");return this.tFoot=e,e}deleteTFoot(){this.tFoot=null;}createTBody(){let t=ft.querySelectorAll(this,"tbody")[X],e=this[N].createElement("tbody");if(t.length>0){let r=t[t.length-1];return r.parentNode?.insertBefore(e,r.nextSibling),e}return this.appendChild(e),e}createCaption(){let t=this.caption;if(t)return t;let e=this[N].createElement("caption");return this.caption=e,e}deleteCaption(){this.caption=null;}insertRow(t=-1){typeof t!="number"&&(t=-1);let e=ft.querySelectorAll(this,"tr")[X];if(t<-1)throw new this[m].DOMException(`Failed to execute 'insertRow' on 'HTMLTableElement': The index provided (${t}) is less than -1.`,k.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}).`,k.indexSizeError);let r=this[N].createElement("tr");if(t===-1||t===e.length){let n=ft.querySelector(this,"tbody");if(n)n.appendChild(r);else {let i=this[N].createElement("tbody");i.appendChild(r),this.appendChild(i);}return r}return e[t].parentNode?.insertBefore(r,e[t]),r}deleteRow(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'deleteRow' on 'HTMLTableElement': 1 argument required, but only 0 present.");if(typeof t!="number"&&(t=-1),t<-1)throw new this[m].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableElement': The index provided (${t}) is less than -1.`,k.indexSizeError);let e=ft.querySelectorAll(this,"tr")[X];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}).`,k.indexSizeError);t===-1&&(t=e.length-1),e[t].remove();}};g();var oh=class extends U{[My]=null;get cells(){return this[My]||(this[My]=new Fe(b,()=>ft.querySelectorAll(this,"td,th")[X])),this[My]}get rowIndex(){let t=this.parentNode;for(;t;){if(t[st]==="TABLE")return ft.querySelectorAll(t,"tr")[X].indexOf(this);t=t.parentNode;}return -1}get sectionRowIndex(){let t=this.parentNode;for(;t;){if(t instanceof Ki)return ft.querySelectorAll(t,"tr")[X].indexOf(this);t=t.parentNode;}return -1}insertCell(t=-1){typeof t!="number"&&(t=-1);let e=ft.querySelectorAll(this,"td,th")[X];if(t<-1)throw new this[m].DOMException(`Failed to execute 'insertCell' on 'HTMLTableRowElement': The index provided (${t}) is less than -1.`,k.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}).`,k.indexSizeError);let r=this[N].createElement("td");return t===-1||t===e.length?(this.appendChild(r),r):(e[t].parentNode?.insertBefore(r,e[t]),r)}deleteCell(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'deleteCell' on 'HTMLTableRowElement': 1 argument required, but only 0 present.");if(typeof t!="number"&&(t=-1),t<-1)throw new this[m].DOMException(`Failed to execute 'deleteCell' on 'HTMLTableRowElement': The index provided (${t}) is less than -1.`,k.indexSizeError);let e=ft.querySelectorAll(this,"td,th")[X];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}).`,k.indexSizeError);t===-1&&(t=e.length-1),e[t].remove();}};g();var nh=class extends U{[zo]=this[N].createDocumentFragment();get content(){return this[zo]}get innerHTML(){return this.getHTML()}set innerHTML(t){let e=this[zo],r=e[j];for(;r.length;)e.removeChild(r[0]);new Wr(this[m],{isTemplateDocumentFragment:true}).parse(t,this[zo]);}get firstChild(){return this[zo].firstChild}get lastChild(){return this[zo].lastChild}getInnerHTML(t){let e=new Vn,r=this[zo],n="";for(let i of r[j])n+=e.serializeToString(i);return n}getHTML(t){let e=new Vn,r=this[zo],n="";for(let i of r[j])n+=e.serializeToString(i);return n}[Ft](t,e=false){return this[zo][Ft](t,e)}[Hr](t){return this[zo][Hr](t)}[co](t,e,r=false){return this[zo][co](t,e,r)}[Ep](t,e){return this[zo][Ep](t,e)}[xt](t=false){let e=super[xt](t);return e[zo]=this[zo].cloneNode(t),e}};g();var ih=class extends U{type="textarea";[Ye]="";[dr]=new So(this);[nt]=null;[xr]=this;[Xt]=null;#t=null;#e=null;#r=an.none;get oninput(){return E.getEventListener(this,"oninput")}set oninput(t){this[y].set("oninput",t);}get onselectionchange(){return E.getEventListener(this,"onselectionchange")}set onselectionchange(t){this[y].set("onselectionchange",t);}get validationMessage(){return this[Ye]}get validity(){return this[dr]}get defaultValue(){return this.textContent}set defaultValue(t){this.textContent=t;}get minLength(){let t=this.getAttribute("minlength");return t!==null?parseInt(t):-1}set minLength(t){this.setAttribute("minlength",String(t));}get maxLength(){let t=this.getAttribute("maxlength");return t!==null?parseInt(t):-1}set maxLength(t){this.setAttribute("maxlength",String(t));}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t);}get placeholder(){return this.getAttribute("placeholder")||""}set placeholder(t){this.setAttribute("placeholder",t);}get inputMode(){return this.getAttribute("inputmode")||""}set inputMode(t){this.setAttribute("inputmode",t);}get cols(){return this.getAttribute("cols")||""}set cols(t){this.setAttribute("cols",t);}get rows(){return this.getAttribute("rows")||""}set rows(t){this.setAttribute("rows",t);}get autocomplete(){return this.getAttribute("autocomplete")||""}set autocomplete(t){this.setAttribute("autocomplete",t);}get readOnly(){return this.getAttribute("readonly")!==null}set readOnly(t){t?this.setAttribute("readonly",""):this.removeAttribute("readonly");}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled");}get autofocus(){return this.getAttribute("autofocus")!==null}set autofocus(t){t?this.setAttribute("autofocus",""):this.removeAttribute("autofocus");}get required(){return this.getAttribute("required")!==null}set required(t){t?this.setAttribute("required",""):this.removeAttribute("required");}get value(){return this[nt]===null?this.textContent:this[nt]}set value(t){let e=this[nt];this[nt]=t,e!==this[nt]&&(this.#t=this[nt].length,this.#e=this[nt].length,this.#r=an.none);}get selectionStart(){return this.#t===null?this.value.length:this.#t}set selectionStart(t){this.setSelectionRange(t,Math.max(t,this.selectionEnd),this.#r);}get selectionEnd(){return this.#e===null?this.value.length:this.#e}set selectionEnd(t){this.setSelectionRange(this.selectionStart,t,this.#r);}get selectionDirection(){return this.#r}set selectionDirection(t){this.setSelectionRange(this.selectionStart,this.selectionEnd,t);}get form(){if(this[Xt])return this[Xt];let t=this.getAttribute("form");return !t||!this[pt]?null:this[N].getElementById(t)}get textLength(){return this.value.length}get labels(){return Po.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=an.none,this.dispatchEvent(new I("select",{bubbles:true,cancelable:false}));}setSelectionRange(t,e,r="none"){this.#e=Math.min(e,this.value.length),this.#t=Math.min(t,this.selectionEnd),this.#r=r===an.forward||r===an.backward?r:an.none,this.dispatchEvent(new I("select",{bubbles:true,cancelable:false}));}setRangeText(t,e=null,r=null,n=Us.preserve){if(e===null&&(e=this.#t!==null?this.#t:0),r===null&&(r=this.#e!==null?this.#e:this.value.length),e>r)throw new this[m].DOMException("The index is not in the allowed range.",k.invalidStateError);e=Math.min(e,this.value.length),r=Math.min(r,this.value.length);let i=this.value,s=this.#t!==null?this.#t:0,l=this.#e!==null?this.#e:this.value.length;this.value=i.slice(0,e)+t+i.slice(r);let a=e+this.value.length;switch(n){case Us.select:this.setSelectionRange(e,a);break;case Us.start:this.setSelectionRange(e,e);break;case Us.end:this.setSelectionRange(a,a);break;default:let u=t.length-(r-e);s>r?s+=u:s>e&&(s=e),l>r?l+=u:l>e&&(l=a),this.setSelectionRange(s,l);break}}setCustomValidity(t){this[Ye]=String(t);}checkValidity(){let t=this.disabled||this.readOnly||this[dr].valid;return t||this.dispatchEvent(new I("invalid",{bubbles:true,cancelable:true})),t}reportValidity(){return this.checkValidity()}[xt](t=false){let e=super[xt](t);return e[nt]=this[nt],e.#t=this.#t,e.#e=this.#e,e.#r=this.#r,e}[gp](){this[nt]===null&&(this.#t=null,this.#e=null,this.#r=an.none);}};g();var sh=class extends U{get dateTime(){return this.getAttribute("dateTime")||""}set dateTime(t){this.setAttribute("dateTime",t);}};g();var lh=class extends U{get text(){let t="";for(let e of this[j])e[H]===M.textNode&&(t+=e.textContent);return t}set text(t){this.textContent=t;}get innerHTML(){return this.getHTML()}set innerHTML(t){this.textContent=t;}};g();var ah=class extends U{get oncuechange(){return E.getEventListener(this,"oncuechange")}set oncuechange(t){this[y].set("oncuechange",t);}get kind(){let t=this.getAttribute("kind");return t===null?Bs.subtitles:Bs[t]?t:Bs.metadata}set kind(t){Bs[t]||(t=Bs.metadata),this.setAttribute("kind",t);}get src(){if(!this.hasAttribute("src"))return "";try{return new URL(this.getAttribute("src"),this[N].location.href).href}catch{return this.getAttribute("src")||""}}set src(t){this.setAttribute("src",t);}get srclang(){return this.getAttribute("srclang")||""}set srclang(t){this.setAttribute("srclang",t);}get label(){return this.getAttribute("label")||""}set label(t){this.setAttribute("label",t);}get default(){return this.hasAttribute("default")}set default(t){t?this.setAttribute("default",""):this.removeAttribute("default");}get readyState(){return 0}get track(){let t=new this[m].TextTrack(b);return t[fn]=this.kind,t[Pl]=this.label,t[ec]=this.srclang,t[We]=this.default?"showing":"disabled",t[Oy]=this.id,t}};g();var uh=class extends U{};g();var ch=class extends U{};g();var du=class extends Vs{};g();var ph=class extends zi{[H]=M.processingInstructionNode;[Jr]="";get target(){return this[Jr]}};g();g();var fu=class extends Et{[Lr]=null;[Ke]=this;[H]=M.documentFragmentNode;get children(){if(!this[Lr]){let t=this[Pt];this[Lr]=new Fe(b,()=>t);}return this[Lr]}get childElementCount(){return this[Pt].length}get firstElementChild(){return this[Pt][0]??null}get lastElementChild(){let t=this[Pt];return t[t.length-1]??null}get textContent(){let t="";for(let e of this[j])(e[H]===M.elementNode||e[H]===M.textNode)&&(t+=e.textContent);return t}set textContent(t){let e=this[j];for(;e.length;)this.removeChild(e[0]);t&&this.appendChild(this[N].createTextNode(t));}append(...t){fe.append(this,...t);}prepend(...t){fe.prepend(this,...t);}replaceChildren(...t){fe.replaceChildren(this,...t);}querySelectorAll(t){return ft.querySelectorAll(this,t)}querySelector(t){return ft.querySelector(this,t)}getElementById(t){return fe.getElementById(this,t)}};var mh=class extends fu{[dl]=[];[We]="open";[Ca]=null;[Ia]=false;[Zu]=false;[is]=false;[Ii]="named";[y]=new Map;get onslotchange(){return this[y].get("onslotchange")??null}set onslotchange(t){this[y].set("onslotchange",t);}get mode(){return this[We]}get host(){return this[Ca]}get clonable(){return this[Ia]}get delegatesFocus(){return this[Zu]}get serializable(){return this[is]}get slotAssignment(){return this[Ii]}get fullscreenElement(){return null}get pictureInPictureElement(){return null}get pointerLockElement(){return null}get innerHTML(){let t=new Vn,e="";for(let r of this[j])e+=t.serializeToString(r);return e}set innerHTML(t){let e=this[j];for(;e.length;)this.removeChild(e[0]);new Wr(this[m]).parse(t,this);}get adoptedStyleSheets(){return this[dl]}set adoptedStyleSheets(t){this[dl]=t;}get activeElement(){let t=this[N][tr],e=t?.getRootNode();if(!e||e===this[N])return null;if(e===this)return t;for(;e&&e!==this;)t=e.host,e=t.getRootNode();return t}getAnimations(){return []}setHTMLUnsafe(t){let e=this[j];for(;e.length;)this.removeChild(e[0]);new Wr(this[m]).parse(t,this);}toString(){return this.innerHTML}[xt](t=false){let e=super[xt](t);return e[We]=this[We],e[Ia]=this[Ia],e[Zu]=this[Zu],e[is]=this[is],e[Ii]=this[Ii],e}};g();var mt=class extends zr{[Ie]=null;#t=null;get onabort(){return E.getEventListener(this,"onabort")}set onabort(t){this[y].set("onabort",t);}get onanimationend(){return E.getEventListener(this,"onanimationend")}set onanimationend(t){this[y].set("onanimationend",t);}get onanimationiteration(){return E.getEventListener(this,"onanimationiteration")}set onanimationiteration(t){this[y].set("onanimationiteration",t);}get onanimationstart(){return E.getEventListener(this,"onanimationstart")}set onanimationstart(t){this[y].set("onanimationstart",t);}get onauxclick(){return E.getEventListener(this,"onauxclick")}set onauxclick(t){this[y].set("onauxclick",t);}get onblur(){return E.getEventListener(this,"onblur")}set onblur(t){this[y].set("onblur",t);}get oncancel(){return E.getEventListener(this,"oncancel")}set oncancel(t){this[y].set("oncancel",t);}get oncanplay(){return E.getEventListener(this,"oncanplay")}set oncanplay(t){this[y].set("oncanplay",t);}get oncanplaythrough(){return E.getEventListener(this,"oncanplaythrough")}set oncanplaythrough(t){this[y].set("oncanplaythrough",t);}get onchange(){return E.getEventListener(this,"onchange")}set onchange(t){this[y].set("onchange",t);}get onclick(){return E.getEventListener(this,"onclick")}set onclick(t){this[y].set("onclick",t);}get onclose(){return E.getEventListener(this,"onclose")}set onclose(t){this[y].set("onclose",t);}get oncontextmenu(){return E.getEventListener(this,"oncontextmenu")}set oncontextmenu(t){this[y].set("oncontextmenu",t);}get oncopy(){return E.getEventListener(this,"oncopy")}set oncopy(t){this[y].set("oncopy",t);}get oncuechange(){return E.getEventListener(this,"oncuechange")}set oncuechange(t){this[y].set("oncuechange",t);}get oncut(){return E.getEventListener(this,"oncut")}set oncut(t){this[y].set("oncut",t);}get ondblclick(){return E.getEventListener(this,"ondblclick")}set ondblclick(t){this[y].set("ondblclick",t);}get ondrag(){return E.getEventListener(this,"ondrag")}set ondrag(t){this[y].set("ondrag",t);}get ondragend(){return E.getEventListener(this,"ondragend")}set ondragend(t){this[y].set("ondragend",t);}get ondragenter(){return E.getEventListener(this,"ondragenter")}set ondragenter(t){this[y].set("ondragenter",t);}get ondragleave(){return E.getEventListener(this,"ondragleave")}set ondragleave(t){this[y].set("ondragleave",t);}get ondragover(){return E.getEventListener(this,"ondragover")}set ondragover(t){this[y].set("ondragover",t);}get ondragstart(){return E.getEventListener(this,"ondragstart")}set ondragstart(t){this[y].set("ondragstart",t);}get ondrop(){return E.getEventListener(this,"ondrop")}set ondrop(t){this[y].set("ondrop",t);}get ondurationchange(){return E.getEventListener(this,"ondurationchange")}set ondurationchange(t){this[y].set("ondurationchange",t);}get onemptied(){return E.getEventListener(this,"onemptied")}set onemptied(t){this[y].set("onemptied",t);}get onended(){return E.getEventListener(this,"onended")}set onended(t){this[y].set("onended",t);}get onerror(){return E.getEventListener(this,"onerror")}set onerror(t){this[y].set("onerror",t);}get onfocus(){return E.getEventListener(this,"onfocus")}set onfocus(t){this[y].set("onfocus",t);}get onformdata(){return E.getEventListener(this,"onformdata")}set onformdata(t){this[y].set("onformdata",t);}get ongotpointercapture(){return E.getEventListener(this,"ongotpointercapture")}set ongotpointercapture(t){this[y].set("ongotpointercapture",t);}get oninput(){return E.getEventListener(this,"oninput")}set oninput(t){this[y].set("oninput",t);}get oninvalid(){return E.getEventListener(this,"oninvalid")}set oninvalid(t){this[y].set("oninvalid",t);}get onkeydown(){return E.getEventListener(this,"onkeydown")}set onkeydown(t){this[y].set("onkeydown",t);}get onkeypress(){return E.getEventListener(this,"onkeypress")}set onkeypress(t){this[y].set("onkeypress",t);}get onkeyup(){return E.getEventListener(this,"onkeyup")}set onkeyup(t){this[y].set("onkeyup",t);}get onload(){return E.getEventListener(this,"onload")}set onload(t){this[y].set("onload",t);}get onloadeddata(){return E.getEventListener(this,"onloadeddata")}set onloadeddata(t){this[y].set("onloadeddata",t);}get onloadedmetadata(){return E.getEventListener(this,"onloadedmetadata")}set onloadedmetadata(t){this[y].set("onloadedmetadata",t);}get onloadstart(){return E.getEventListener(this,"onloadstart")}set onloadstart(t){this[y].set("onloadstart",t);}get onlostpointercapture(){return E.getEventListener(this,"onlostpointercapture")}set onlostpointercapture(t){this[y].set("onlostpointercapture",t);}get onmousedown(){return E.getEventListener(this,"onmousedown")}set onmousedown(t){this[y].set("onmousedown",t);}get onmouseenter(){return E.getEventListener(this,"onmouseenter")}set onmouseenter(t){this[y].set("onmouseenter",t);}get onmouseleave(){return E.getEventListener(this,"onmouseleave")}set onmouseleave(t){this[y].set("onmouseleave",t);}get onmousemove(){return E.getEventListener(this,"onmousemove")}set onmousemove(t){this[y].set("onmousemove",t);}get onmouseout(){return E.getEventListener(this,"onmouseout")}set onmouseout(t){this[y].set("onmouseout",t);}get onmouseover(){return E.getEventListener(this,"onmouseover")}set onmouseover(t){this[y].set("onmouseover",t);}get onmouseup(){return E.getEventListener(this,"onmouseup")}set onmouseup(t){this[y].set("onmouseup",t);}get onmousewheel(){return E.getEventListener(this,"onmousewheel")}set onmousewheel(t){this[y].set("onmousewheel",t);}get onpaste(){return E.getEventListener(this,"onpaste")}set onpaste(t){this[y].set("onpaste",t);}get onpause(){return E.getEventListener(this,"onpause")}set onpause(t){this[y].set("onpause",t);}get onplay(){return E.getEventListener(this,"onplay")}set onplay(t){this[y].set("onplay",t);}get onplaying(){return E.getEventListener(this,"onplaying")}set onplaying(t){this[y].set("onplaying",t);}get onpointercancel(){return E.getEventListener(this,"onpointercancel")}set onpointercancel(t){this[y].set("onpointercancel",t);}get onpointerdown(){return E.getEventListener(this,"onpointerdown")}set onpointerdown(t){this[y].set("onpointerdown",t);}get onpointerenter(){return E.getEventListener(this,"onpointerenter")}set onpointerenter(t){this[y].set("onpointerenter",t);}get onpointerleave(){return E.getEventListener(this,"onpointerleave")}set onpointerleave(t){this[y].set("onpointerleave",t);}get onpointermove(){return E.getEventListener(this,"onpointermove")}set onpointermove(t){this[y].set("onpointermove",t);}get onpointerout(){return E.getEventListener(this,"onpointerout")}set onpointerout(t){this[y].set("onpointerout",t);}get onpointerover(){return E.getEventListener(this,"onpointerover")}set onpointerover(t){this[y].set("onpointerover",t);}get onpointerrawupdate(){return E.getEventListener(this,"onpointerrawupdate")}set onpointerrawupdate(t){this[y].set("onpointerrawupdate",t);}get onpointerup(){return E.getEventListener(this,"onpointerup")}set onpointerup(t){this[y].set("onpointerup",t);}get onprogress(){return E.getEventListener(this,"onprogress")}set onprogress(t){this[y].set("onprogress",t);}get onratechange(){return E.getEventListener(this,"onratechange")}set onratechange(t){this[y].set("onratechange",t);}get onreset(){return E.getEventListener(this,"onreset")}set onreset(t){this[y].set("onreset",t);}get onresize(){return E.getEventListener(this,"onresize")}set onresize(t){this[y].set("onresize",t);}get onscroll(){return E.getEventListener(this,"onscroll")}set onscroll(t){this[y].set("onscroll",t);}get onscrollend(){return E.getEventListener(this,"onscrollend")}set onscrollend(t){this[y].set("onscrollend",t);}get onscrollsnapchange(){return E.getEventListener(this,"onscrollsnapchange")}set onscrollsnapchange(t){this[y].set("onscrollsnapchange",t);}get onscrollsnapchanging(){return E.getEventListener(this,"onscrollsnapchanging")}set onscrollsnapchanging(t){this[y].set("onscrollsnapchanging",t);}get onsecuritypolicyviolation(){return E.getEventListener(this,"onsecuritypolicyviolation")}set onsecuritypolicyviolation(t){this[y].set("onsecuritypolicyviolation",t);}get onseeked(){return E.getEventListener(this,"onseeked")}set onseeked(t){this[y].set("onseeked",t);}get onseeking(){return E.getEventListener(this,"onseeking")}set onseeking(t){this[y].set("onseeking",t);}get onselect(){return E.getEventListener(this,"onselect")}set onselect(t){this[y].set("onselect",t);}get onselectionchange(){return E.getEventListener(this,"onselectionchange")}set onselectionchange(t){this[y].set("onselectionchange",t);}get onselectstart(){return E.getEventListener(this,"onselectstart")}set onselectstart(t){this[y].set("onselectstart",t);}get onslotchange(){return E.getEventListener(this,"onslotchange")}set onslotchange(t){this[y].set("onslotchange",t);}get onstalled(){return E.getEventListener(this,"onstalled")}set onstalled(t){this[y].set("onstalled",t);}get onsubmit(){return E.getEventListener(this,"onsubmit")}set onsubmit(t){this[y].set("onsubmit",t);}get onsuspend(){return E.getEventListener(this,"onsuspend")}set onsuspend(t){this[y].set("onsuspend",t);}get ontimeupdate(){return E.getEventListener(this,"ontimeupdate")}set ontimeupdate(t){this[y].set("ontimeupdate",t);}get ontoggle(){return E.getEventListener(this,"ontoggle")}set ontoggle(t){this[y].set("ontoggle",t);}get ontransitioncancel(){return E.getEventListener(this,"ontransitioncancel")}set ontransitioncancel(t){this[y].set("ontransitioncancel",t);}get ontransitionend(){return E.getEventListener(this,"ontransitionend")}set ontransitionend(t){this[y].set("ontransitionend",t);}get ontransitionrun(){return E.getEventListener(this,"ontransitionrun")}set ontransitionrun(t){this[y].set("ontransitionrun",t);}get ontransitionstart(){return E.getEventListener(this,"ontransitionstart")}set ontransitionstart(t){this[y].set("ontransitionstart",t);}get onvolumechange(){return E.getEventListener(this,"onvolumechange")}set onvolumechange(t){this[y].set("onvolumechange",t);}get onwaiting(){return E.getEventListener(this,"onwaiting")}set onwaiting(t){this[y].set("onwaiting",t);}get onwheel(){return E.getEventListener(this,"onwheel")}set onwheel(t){this[y].set("onwheel",t);}get ownerSVGElement(){let t=this[K];for(;t;){if(t[ht]==="svg")return t;t=t[K];}return null}get viewportElement(){return this.ownerSVGElement}get dataset(){return this.#t??=new Tc(b,this)}get style(){return this[Ie]||(this[Ie]=new bo(b,this[m],{element:this})),this[Ie]}get tabIndex(){let t=this.getAttribute("tabindex");return t!==null?Number(t):-1}set tabIndex(t){t===-1?this.removeAttribute("tabindex"):this.setAttribute("tabindex",String(t));}blur(){Hl.blur(this);}focus(){Hl.focus(this);}};g();var hh=class{observe(){}unobserve(){}disconnect(){}};g();var ql=class extends Ot{width=1024;height=768;availWidth=1024;availHeight=768;colorDepth=24;pixelDepth=24;onchange=null};g();g();var bu=class extends ql{availLeft=0;availTop=0;left=0;top=0;isPrimary=true;isInternal=true;devicePixelRatio=1;label=""};var Dc=class extends Ot{currentScreen;screens;oncurrentscreenchange=null;onscreenschange=null;constructor(){super();let t=new bu;this.currentScreen=t,this.screens=[t];}};g();g();var Ce=class{static compareBoundaryPointsPosition(t,e){if(t.node===e.node)return t.offset===e.offset?0:t.offset<e.offset?-1:1;if(Nt.isFollowing(t.node,e.node))return this.compareBoundaryPointsPosition(e,t)===-1?1:-1;if(Nt.isInclusiveAncestor(t.node,e.node)){let r=e.node;for(;r[K]!==t.node;)r=r[K];if(r[K][j].indexOf(r)<t.offset)return 1}return -1}static validateBoundaryPoint(t){if(t.node[H]===M.documentTypeNode)throw new de("DocumentType Node can't be used as boundary point.",k.invalidNodeTypeError);if(t.offset>Nt.getNodeLength(t.node))throw new de("Offset out of bound.",k.indexSizeError)}static isContained(t,e){return this.compareBoundaryPointsPosition({node:t,offset:0},{node:e.startContainer,offset:e.startOffset})===1&&this.compareBoundaryPointsPosition({node:t,offset:Nt.getNodeLength(t)},{node:e.endContainer,offset:e.endOffset})===-1}static isPartiallyContained(t,e){return Nt.isInclusiveAncestor(t,e.startContainer)&&!Nt.isInclusiveAncestor(t,e.endContainer)||!Nt.isInclusiveAncestor(t,e.startContainer)&&Nt.isInclusiveAncestor(t,e.endContainer)}};g();var Ix;(function(o){o[o.forwards=1]="forwards",o[o.backwards=-1]="backwards",o[o.directionless=0]="directionless";})(Ix||(Ix={}));var yi=Ix;var gu=class{#t;#e=null;#r=yi.directionless;constructor(t){this.#t=t;}get rangeCount(){return this.#e?1:0}get isCollapsed(){return this.#e===null||this.#e.collapsed}get type(){if(this.#e){if(this.#e.collapsed)return "Caret"}else return "None";return "Range"}get anchorNode(){return this.#e?this.#r===yi.forwards?this.#e.startContainer:this.#e.endContainer:null}get anchorOffset(){return this.#e?this.#r===yi.forwards?this.#e.startOffset:this.#e.endOffset:0}get baseNode(){return this.anchorNode}get baseOffset(){return this.anchorOffset}get focusNode(){return this.#e?this.#r===yi.forwards?this.#e.endContainer:this.#e.startContainer:null}get focusOffset(){return this.#e?this.#r===yi.forwards?this.#e.endOffset:this.#e.startOffset:0}get extentNode(){return this.focusNode}get extentOffset(){return this.focusOffset}addRange(t){if(!t)throw new this.#t[m].TypeError("Failed to execute addRange on Selection. Parameter 1 is not of type Range.");!this.#e&&t[N]===this.#t&&this.#o(t);}getRangeAt(t){if(!this.#e||t!==0)throw new this.#t[m].DOMException("Invalid range index.",k.indexSizeError);return this.#e}removeRange(t){if(this.#e!==t)throw new this.#t[m].DOMException("Invalid range.",k.notFoundError);this.#o(null);}removeAllRanges(){this.#o(null);}empty(){this.removeAllRanges();}collapse(t,e){if(t===null){this.removeAllRanges();return}if(t[H]===M.documentTypeNode)throw new this.#t[m].DOMException("DocumentType Node can't be used as boundary point.",k.invalidNodeTypeError);if(e>Nt.getNodeLength(t))throw new this.#t[m].DOMException("Invalid range index.",k.indexSizeError);if(t!==this.#t&&t[N]!==this.#t)return;let r=new this.#t[m].Range;r[z].node=t,r[z].offset=e,r[Y].node=t,r[Y].offset=e,this.#o(r);}setPosition(t,e){this.collapse(t,e);}collapseToEnd(){if(this.#e===null)throw new this.#t[m].DOMException("There is no selection to collapse.",k.invalidStateError);let{node:t,offset:e}=this.#e[Y],r=new this.#t[m].Range;r[z].node=t,r[z].offset=e,r[Y].node=t,r[Y].offset=e,this.#o(r);}collapseToStart(){if(!this.#e)throw new this.#t[m].DOMException("There is no selection to collapse.",k.invalidStateError);let{node:t,offset:e}=this.#e[z],r=new this.#t[m].Range;r[z].node=t,r[z].offset=e,r[Y].node=t,r[Y].offset=e,this.#o(r);}containsNode(t,e=false){if(!this.#e||t[N]!==this.#t)return false;let r=Ce.compareBoundaryPointsPosition(this.#e[z],{node:t,offset:0})===-1,n=Ce.compareBoundaryPointsPosition(this.#e[Y],{node:t,offset:Nt.getNodeLength(t)})===1;return e?r||n:r&&n}deleteFromDocument(){this.#e&&this.#e.deleteContents();}extend(t,e){if(t!==this.#t&&t[N]!==this.#t)return;if(!this.#e)throw new this.#t[m].DOMException("There is no selection to extend.",k.invalidStateError);let r=this.anchorNode,n=this.anchorOffset,i=new this.#t[m].Range;i[z].node=t,i[z].offset=0,i[Y].node=t,i[Y].offset=0,t[N]!==this.#e[N]?(i[z].offset=e,i[Y].offset=e):Ce.compareBoundaryPointsPosition({node:r,offset:n},{node:t,offset:e})<=0?(i[z].node=r,i[z].offset=n,i[Y].node=t,i[Y].offset=e):(i[z].node=t,i[z].offset=e,i[Y].node=r,i[Y].offset=n),this.#o(i),this.#r=Ce.compareBoundaryPointsPosition({node:t,offset:e},{node:r,offset:n})===-1?yi.backwards:yi.forwards;}selectAllChildren(t){if(t[H]===M.documentTypeNode)throw new this.#t[m].DOMException("DocumentType Node can't be used as boundary point.",k.invalidNodeTypeError);if(t!==this.#t&&t[N]!==this.#t)return;let e=t[j].length,r=new this.#t[m].Range;r[z].node=t,r[z].offset=0,r[Y].node=t,r[Y].offset=e,this.#o(r);}setBaseAndExtent(t,e,r,n){if(e>Nt.getNodeLength(t)||n>Nt.getNodeLength(r))throw new this.#t[m].DOMException("Invalid anchor or focus offset.",k.indexSizeError);if(t!==this.#t&&t[N]!==this.#t||r!==this.#t&&r[N]!==this.#t)return;let i={node:t,offset:e},s={node:r,offset:n},l=new this.#t[m].Range;Ce.compareBoundaryPointsPosition(i,s)===-1?(l[z]=i,l[Y]=s):(l[z]=s,l[Y]=i),this.#o(l),this.#r=Ce.compareBoundaryPointsPosition(s,i)===-1?yi.backwards:yi.forwards;}toString(){return this.#e?this.#e.toString():""}#o(t){let e=this.#e;this.#e=t,this.#r=t===null?yi.directionless:yi.forwards,e!==this.#e&&this.#t.dispatchEvent(new I("selectionchange"));}};g();var Su=class o{[$t]={};constructor(){let t=this[$t],e=new De(this,[o]);return new Proxy(this,{get:(r,n)=>{if(n in r||typeof n=="symbol")return e.bind(n),r[n];if(n in t)return t[n]},set(r,n,i){return e.bind(n),n in r||typeof n=="symbol"||(t[String(n)]=String(i)),true},deleteProperty(r,n){return n in t?(delete t[String(n)],true):false},ownKeys(){return Object.keys(t)},has(r,n){return n in r||n in t},defineProperty(r,n,i){return e.preventBinding(n),n in r?(Object.defineProperty(r,n,i),true):i.value!==void 0?(t[String(n)]=String(i.value),true):false},getOwnPropertyDescriptor(r,n){if(n in r)return;let i=t[String(n)];if(i!==void 0)return {value:i,writable:true,enumerable:true,configurable:true}}})}get length(){return Object.keys(this[$t]).length}key(t){let e=Object.keys(this[$t])[t];return e!==void 0?e:null}setItem(t,e){this[$t][t]=String(e);}getItem(t){return this[$t][t]!==void 0?this[$t][t]:null}removeItem(t){delete this[$t][t];}clear(){let t=this[$t];for(let e of Object.keys(t))delete t[e];}};g();var ke={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};g();g();g();var Xk={1:ke.SHOW_ELEMENT,2:ke.SHOW_ATTRIBUTE,3:ke.SHOW_TEXT,4:ke.SHOW_CDATA_SECTION,5:ke.SHOW_ENTITY_REFERENCE,6:ke.SHOW_PROCESSING_INSTRUCTION,7:ke.SHOW_PROCESSING_INSTRUCTION,8:ke.SHOW_COMMENT,9:ke.SHOW_DOCUMENT,10:ke.SHOW_DOCUMENT_TYPE,11:ke.SHOW_DOCUMENT_FRAGMENT,12:ke.SHOW_NOTATION};var Oc;(function(o){o.first="first",o.last="last";})(Oc||(Oc={}));var Fc;(function(o){o.next="next",o.previous="previous";})(Fc||(Fc={}));var zs=class{root;whatToShow=-1;filter=null;#t=null;constructor(t,e=-1,r=null){if(!(t instanceof Et))throw new de("Parameter 1 was not of type Node.");this.root=t,this.whatToShow=e,this.filter=r,this.#t=t;}get currentNode(){return this.#t}set currentNode(t){if(!(t instanceof Et))throw new this.root[m].TypeError("Failed to set the 'currentNode' property on 'TreeWalker': Failed to convert value to 'Node'.");this.#t=t;}parentNode(){let t=this.#t;for(;t!==null&&t!==this.root;)if(t=t.parentNode,t!==null&&this[Mn](t)===ke.FILTER_ACCEPT)return this.#t=t,this.#t;return null}firstChild(){return this.#e(Oc.first)}lastChild(){return this.#e(Oc.last)}nextSibling(){return this.#r(Fc.next)}previousSibling(){return this.#r(Fc.previous)}previousNode(){let t=this.#t;for(;t!==this.root;){let e=t?.previousSibling||null;for(;e!==null;){let r=e,n=this[Mn](r);for(;n!==ke.FILTER_REJECT&&r[j].length;)r=r.lastChild,n=this[Mn](r);if(n===ke.FILTER_ACCEPT)return this.#t=r,r;e=r.previousSibling;}if(t===this.root||t.parentNode===null)return null;if(t=t.parentNode,this[Mn](t)===ke.FILTER_ACCEPT)return this.#t=t,t}return null}nextNode(){let t=this.#t,e=ke.FILTER_ACCEPT;if(t===null)return null;for(;;){for(;e!==ke.FILTER_REJECT&&t[j].length;)if(t=t.firstChild,e=this[Mn](t),e===ke.FILTER_ACCEPT)return this.#t=t,t;for(;t!==null;){if(t===this.root)return null;let r=t.nextSibling;if(r!==null){t=r;break}t=t.parentNode;}if(t===null)return null;if(e=this[Mn](t),e===ke.FILTER_ACCEPT)return this.#t=t,t}}[Mn](t){let e=Xk[t.nodeType];return e&&(this.whatToShow&e)==0?ke.FILTER_SKIP:typeof this.filter=="function"?this.filter(t):this.filter?this.filter.acceptNode(t):ke.FILTER_ACCEPT}#e(t){let e=this.#t;if(!e)return null;for(e=t===Oc.first?e.firstChild:e.lastChild;e!==null;){let r=this[Mn](e);if(r===ke.FILTER_ACCEPT)return this.#t=e,e;if(r===ke.FILTER_SKIP){let n=t===Oc.first?e.firstChild:e.lastChild;if(n!==null){e=n;continue}}for(;e!==null;){let n=t===Oc.first?e.nextSibling:e.previousSibling;if(n!==null){e=n;break}let i=e.parentNode;if(i===null||i===this.root||i===this.#t)return null;e=i;}}return null}#r(t){let e=this.#t;if(!e||e===this.root)return null;for(;;){let r=t===Fc.next?e.nextSibling:e.previousSibling;for(;r!==null;){let n=r,i=this[Mn](n);if(i===ke.FILTER_ACCEPT)return this.#t=n,n;r=t===Fc.next?n.firstChild:n.lastChild,(i===ke.FILTER_REJECT||r===null)&&(r=t===Fc.next?n.nextSibling:n.previousSibling);}if(e=e.parentNode,e===null||e===this.root||this[Mn](e)===ke.FILTER_ACCEPT)return null}}};var Pu=class{#t;#e=-1;#r=null;#o;#n=true;constructor(t,e=-1,r=null){this.#t=t,this.#e=e,this.#r=r,this.#o=new zs(t,e,r);}get root(){return this.#t}get whatToShow(){return this.#e}get filter(){return this.#r}nextNode(){return this.#n?(this.#n=false,this.#o[Mn](this.#t)!==ke.FILTER_ACCEPT?this.#o.nextNode():this.#t):this.#o.nextNode()}previousNode(){return this.#o.previousNode()}};g();var yh=class{serializeToString(t){return this.#t(t)}#t(t,e=null,r=null){switch(t[H]){case M.elementNode:let n=t,i=n[ht],s="",l=this.#e(n,r),a=n[lt]===Zt.html?n[Kt]:this.#r(n,l),u=`${a?a+":":""}${i}`,c=a?e:n[lt]||e,h=this.#o(n,a,e,r),f=c===Zt.html&&i==="template"?t.content[j]:t[j];for(let J of f)s+=this.#t(J,c,l);return !s&&c===Zt.html&&Pr[i.toLowerCase()]?.contentModel===_.noDescendants?`<${u}${h} />`:!s&&c!==Zt.html?`<${u}${h}/>`:`<${u}${h}>${s}</${u}>`;case Et.DOCUMENT_FRAGMENT_NODE:case Et.DOCUMENT_NODE:let d="";t[Oa]&&(d+=this.#t(t[Oa],e,new Map(r)));for(let J of t[j])d+=this.#t(J,e,new Map(r));return d;case M.commentNode:return `<!--${t.textContent}-->`;case M.processingInstructionNode:return `<?${t.target} ${t.textContent}?>`;case M.textNode:let g=t.parentElement;return g&&Pr[g[ht]]?.contentModel===_.rawText?t.textContent:Xe.encodeTextContent(t.textContent);case M.documentTypeNode:let A=t,w=A.publicId?" PUBLIC":A.systemId?" SYSTEM":"",T=A.publicId?` "${A.publicId}"`:"",G=A.systemId?` "${A.systemId}"`:"";return `<!DOCTYPE ${A.name}${w}${T}${G}>`}return ""}#e(t,e){let r=new Map(e);for(let n of t[Ct][X].values())n[lt]===Zt.xmlns&&n[Kt]&&r.set(n[nt],n[ht]);return r}#r(t,e){if(t[Kt]&&!t[lt])throw new Error("Element has a prefix but no namespace.");if(!t[Kt]||!e)return null;let r=e.get(t[lt]);if(r)return r;let n=new Set(e.values());if(n.has(t[Kt])){let i=1;for(;n.has("n"+i);)i++;return e.set(t[lt],"n"+i),"n"+i}return e.set(t[lt],t[Kt]),t[Kt]}#o(t,e,r,n){let i="",s="",l=new Set;for(let a of t[Ct][X].values())a[lt]===Zt.xmlns?e&&a[ht]===e&&t[lt]?(s+=` xmlns:${e}="${Xe.encodeXMLAttributeValue(t[lt])}"`,l.add(t[lt])):!e&&a[ct]==="xmlns"&&t[lt]?(s+=` xmlns="${Xe.encodeXMLAttributeValue(t[lt])}"`,l.add(t[lt])):(s+=` ${a[ct]}="${Xe.encodeXMLAttributeValue(a[nt])}"`,l.add(a[nt])):i+=` ${a[ct]}="${Xe.encodeXMLAttributeValue(a[nt])}"`;return t[lt]&&r!==t[lt]&&!l.has(t[lt])&&(e&&!n?.has(t[lt])?s+=` xmlns:${e}="${Xe.encodeXMLAttributeValue(t[lt])}"`:!e&&r!==t[lt]&&(s+=` xmlns="${Xe.encodeXMLAttributeValue(t[lt])}"`)),s+i}};g();var Zk=new Script(`
163
+ this.ArrayBuffer = globalThis.ArrayBuffer;
164
+ this.Boolean = globalThis.Boolean;
165
+ this.DataView = globalThis.DataView;
166
+ this.Date = globalThis.Date;
167
+ this.Error = globalThis.Error;
168
+ this.EvalError = globalThis.EvalError;
169
+ this.Float32Array = globalThis.Float32Array;
170
+ this.Float64Array = globalThis.Float64Array;
171
+ this.GLOBAL = globalThis.GLOBAL;
172
+ this.Infinity = globalThis.Infinity;
173
+ this.Int16Array = globalThis.Int16Array;
174
+ this.Int32Array = globalThis.Int32Array;
175
+ this.Int8Array = globalThis.Int8Array;
176
+ this.Intl = globalThis.Intl;
177
+ this.JSON = globalThis.JSON;
178
+ this.Map = globalThis.Map;
179
+ this.Math = globalThis.Math;
180
+ this.NaN = globalThis.NaN;
181
+ this.Number = globalThis.Number;
182
+ this.Promise = globalThis.Promise;
183
+ this.RangeError = globalThis.RangeError;
184
+ this.ReferenceError = globalThis.ReferenceError;
185
+ this.RegExp = globalThis.RegExp;
186
+ this.Reflect = globalThis.Reflect;
187
+ this.Set = globalThis.Set;
188
+ this.Symbol = globalThis.Symbol;
189
+ this.SyntaxError = globalThis.SyntaxError;
190
+ this.String = globalThis.String;
191
+ this.TypeError = globalThis.TypeError;
192
+ this.URIError = globalThis.URIError;
193
+ this.Uint16Array = globalThis.Uint16Array;
194
+ this.Uint32Array = globalThis.Uint32Array;
195
+ this.Uint8Array = globalThis.Uint8Array;
196
+ this.Uint8ClampedArray = globalThis.Uint8ClampedArray;
197
+ this.WeakMap = globalThis.WeakMap;
198
+ this.WeakSet = globalThis.WeakSet;
199
+ this.decodeURI = globalThis.decodeURI;
200
+ this.decodeURIComponent = globalThis.decodeURIComponent;
201
+ this.encodeURI = globalThis.encodeURI;
202
+ this.encodeURIComponent = globalThis.encodeURIComponent;
203
+ this.eval = globalThis.eval;
204
+ this.escape = globalThis.escape;
205
+ this.global = globalThis.global;
206
+ this.isFinite = globalThis.isFinite;
207
+ this.isNaN = globalThis.isNaN;
208
+ this.parseFloat = globalThis.parseFloat;
209
+ this.parseInt = globalThis.parseInt;
210
+ this.root = globalThis.root;
211
+ this.undefined = globalThis.undefined;
212
+ this.unescape = globalThis.unescape;
213
+ this.AbortController = globalThis.AbortController;
214
+ this.AbortSignal = globalThis.AbortSignal;
215
+ this.Array = globalThis.Array;
216
+ this.Object = globalThis.Object;
217
+ this.Function = globalThis.Function;
218
+ `);g();var vf=class{static openPage(t,e){let r=this.getWindowFeatures(e?.features||""),n=e?.target!==void 0?String(e.target):null,i=new URL$1(t.window.location.href),s=Io.getRelativeURL(t,e?.url),l=t.window,a;if(t.window!==l)return null;switch(n){case "_self":a=t;break;case "_top":a=t.page.mainFrame;break;case "_parent":a=t.parentFrame??t;break;default:a=t.page.context.newPage().mainFrame,a[ko]=t;break}if(a.goto(s.href,{referrer:r.noreferrer?void 0:t.window.location.origin,referrerPolicy:r.noreferrer?"no-referrer":void 0}).catch(c=>{a.page.console.error(c);}),s.protocol==="javascript:")return a.window;if(a===t&&t.window===l)return null;r.popup&&n!=="_self"&&n!=="_top"&&n!=="_parent"&&(a[yl]=true,(r?.width||r?.height)&&a.page.setViewport({width:r?.width,height:r?.height}),r?.left&&(a.window.screenLeft=r.left,a.window.screenX=r.left),r?.top&&(a.window.screenTop=r.top,a.window.screenY=r.top)),n&&n!=="_self"&&n!=="_top"&&n!=="_parent"&&n!=="_blank"&&(a.window.name=n);let u=Rn.isCORS(i,a.url);return !r.noopener&&!r.noreferrer&&t.window&&a[ko]&&a.window!==t.window&&(a[Zn]=u?new Ul(t.window):t.window),r.noopener||r.noreferrer?null:u?new Ul(a.window,t.window):a.window}static getWindowFeatures(t){let e=t.split(","),r={popup:false,width:0,height:0,left:0,top:0,noopener:false,noreferrer:false};for(let n of e){let[i,s]=n.split("=");switch(i){case "popup":r.popup=!s||s==="yes"||s==="1"||s==="true";break;case "width":case "innerWidth":r.width=parseInt(s,10);break;case "height":case "innerHeight":r.height=parseInt(s,10);break;case "left":case "screenX":r.left=parseInt(s,10);break;case "top":case "screenY":r.top=parseInt(s,10);break;case "noopener":r.noopener=true;break;case "noreferrer":r.noreferrer=true;break}}return r}};g();g();g();var Tf=class{#t;constructor(t){this.#t=t;}createDocument(t,e,r){if(arguments.length<2)throw new this.#t[m].TypeError(`Failed to execute 'createDocument' on 'DOMImplementation': 2 arguments required, but only ${arguments.length} present.`);switch(e=e===null?"":String(e),e.split(":").pop()){case "svg":case "xml":return new this.#t[m].XMLDocument;default:return new this.#t[m].HTMLDocument}}createHTMLDocument(){return new this.#t[m].HTMLDocument}createDocumentType(t,e,r){let n=Je.createNode(this.#t,Os);return n[ct]=t,n[fl]=e,n[bl]=r,n}};g();var Rx;(function(o){o.hidden="hidden",o.visible="visible",o.prerender="prerender";})(Rx||(Rx={}));var Dx=Rx;var vF=/^[a-z][a-z0-9-]+$/,_s=class extends Et{[Lr]=null;[tr]=null;[ml]=null;[Cn]=null;[Ke]=this;[Zi]=true;[ts]=false;[H]=M.documentNode;[pt]=true;[dl]=[];[oS]=new Tf(this);[Ta]=DS.interactive;[Yr]="";[ao]=null;[Tp]=null;[oi]=[];[N]=null;[Mi]=new Map;[$e]="text/html";[Oa]=null;[ho]=new Map;[y]=new Map;[xa]=null;get onreadystatechange(){return this[y].get("onreadystatechange")??null}set onreadystatechange(t){this[y].set("onreadystatechange",t);}get onpointerlockchange(){return this[y].get("onpointerlockchange")??null}set onpointerlockchange(t){this[y].set("onpointerlockchange",t);}get onpointerlockerror(){return this[y].get("onpointerlockerror")??null}set onpointerlockerror(t){this[y].set("onpointerlockerror",t);}get onbeforecopy(){return this[y].get("onbeforecopy")??null}set onbeforecopy(t){this[y].set("onbeforecopy",t);}get onbeforecut(){return this[y].get("onbeforecut")??null}set onbeforecut(t){this[y].set("onbeforecut",t);}get onbeforepaste(){return this[y].get("onbeforepaste")??null}set onbeforepaste(t){this[y].set("onbeforepaste",t);}get onfreeze(){return this[y].get("onfreeze")??null}set onfreeze(t){this[y].set("onfreeze",t);}get onprerenderingchange(){return this[y].get("onprerenderingchange")??null}set onprerenderingchange(t){this[y].set("onprerenderingchange",t);}get onresume(){return this[y].get("onresume")??null}set onresume(t){this[y].set("onresume",t);}get onsearch(){return this[y].get("onsearch")??null}set onsearch(t){this[y].set("onsearch",t);}get onvisibilitychange(){return this[y].get("onvisibilitychange")??null}set onvisibilitychange(t){this[y].set("onvisibilitychange",t);}get onfullscreenchange(){return this[y].get("onfullscreenchange")??null}set onfullscreenchange(t){this[y].set("onfullscreenchange",t);}get onfullscreenerror(){return this[y].get("onfullscreenerror")??null}set onfullscreenerror(t){this[y].set("onfullscreenerror",t);}get onwebkitfullscreenchange(){return this[y].get("onwebkitfullscreenchange")??null}set onwebkitfullscreenchange(t){this[y].set("onwebkitfullscreenchange",t);}get onwebkitfullscreenerror(){return this[y].get("onwebkitfullscreenerror")??null}set onwebkitfullscreenerror(t){this[y].set("onwebkitfullscreenerror",t);}get onbeforexrselect(){return this[y].get("onbeforexrselect")??null}set onbeforexrselect(t){this[y].set("onbeforexrselect",t);}get onabort(){return this[y].get("onabort")??null}set onabort(t){this[y].set("onabort",t);}get onbeforeinput(){return this[y].get("onbeforeinput")??null}set onbeforeinput(t){this[y].set("onbeforeinput",t);}get onbeforematch(){return this[y].get("onbeforematch")??null}set onbeforematch(t){this[y].set("onbeforematch",t);}get onbeforetoggle(){return this[y].get("onbeforetoggle")??null}set onbeforetoggle(t){this[y].set("onbeforetoggle",t);}get onblur(){return this[y].get("onblur")??null}set onblur(t){this[y].set("onblur",t);}get oncancel(){return this[y].get("oncancel")??null}set oncancel(t){this[y].set("oncancel",t);}get oncanplay(){return this[y].get("oncanplay")??null}set oncanplay(t){this[y].set("oncanplay",t);}get oncanplaythrough(){return this[y].get("oncanplaythrough")??null}set oncanplaythrough(t){this[y].set("oncanplaythrough",t);}get onchange(){return this[y].get("onchange")??null}set onchange(t){this[y].set("onchange",t);}get onclick(){return this[y].get("onclick")??null}set onclick(t){this[y].set("onclick",t);}get onclose(){return this[y].get("onclose")??null}set onclose(t){this[y].set("onclose",t);}get oncontentvisibilityautostatechange(){return this[y].get("oncontentvisibilityautostatechange")??null}set oncontentvisibilityautostatechange(t){this[y].set("oncontentvisibilityautostatechange",t);}get oncontextlost(){return this[y].get("oncontextlost")??null}set oncontextlost(t){this[y].set("oncontextlost",t);}get oncontextmenu(){return this[y].get("oncontextmenu")??null}set oncontextmenu(t){this[y].set("oncontextmenu",t);}get oncontextrestored(){return this[y].get("oncontextrestored")??null}set oncontextrestored(t){this[y].set("oncontextrestored",t);}get oncuechange(){return this[y].get("oncuechange")??null}set oncuechange(t){this[y].set("oncuechange",t);}get ondblclick(){return this[y].get("ondblclick")??null}set ondblclick(t){this[y].set("ondblclick",t);}get ondrag(){return this[y].get("ondrag")??null}set ondrag(t){this[y].set("ondrag",t);}get ondragend(){return this[y].get("ondragend")??null}set ondragend(t){this[y].set("ondragend",t);}get ondragenter(){return this[y].get("ondragenter")??null}set ondragenter(t){this[y].set("ondragenter",t);}get ondragleave(){return this[y].get("ondragleave")??null}set ondragleave(t){this[y].set("ondragleave",t);}get ondragover(){return this[y].get("ondragover")??null}set ondragover(t){this[y].set("ondragover",t);}get ondragstart(){return this[y].get("ondragstart")??null}set ondragstart(t){this[y].set("ondragstart",t);}get ondrop(){return this[y].get("ondrop")??null}set ondrop(t){this[y].set("ondrop",t);}get ondurationchange(){return this[y].get("ondurationchange")??null}set ondurationchange(t){this[y].set("ondurationchange",t);}get onemptied(){return this[y].get("onemptied")??null}set onemptied(t){this[y].set("onemptied",t);}get onended(){return this[y].get("onended")??null}set onended(t){this[y].set("onended",t);}get onerror(){return this[y].get("onerror")??null}set onerror(t){this[y].set("onerror",t);}get onfocus(){return this[y].get("onfocus")??null}set onfocus(t){this[y].set("onfocus",t);}get onformdata(){return this[y].get("onformdata")??null}set onformdata(t){this[y].set("onformdata",t);}get oninput(){return this[y].get("oninput")??null}set oninput(t){this[y].set("oninput",t);}get oninvalid(){return this[y].get("oninvalid")??null}set oninvalid(t){this[y].set("oninvalid",t);}get onkeydown(){return this[y].get("onkeydown")??null}set onkeydown(t){this[y].set("onkeydown",t);}get onkeypress(){return this[y].get("onkeypress")??null}set onkeypress(t){this[y].set("onkeypress",t);}get onkeyup(){return this[y].get("onkeyup")??null}set onkeyup(t){this[y].set("onkeyup",t);}get onload(){return this[y].get("onload")??null}set onload(t){this[y].set("onload",t);}get onloadeddata(){return this[y].get("onloadeddata")??null}set onloadeddata(t){this[y].set("onloadeddata",t);}get onloadedmetadata(){return this[y].get("onloadedmetadata")??null}set onloadedmetadata(t){this[y].set("onloadedmetadata",t);}get onloadstart(){return this[y].get("onloadstart")??null}set onloadstart(t){this[y].set("onloadstart",t);}get onmousedown(){return this[y].get("onmousedown")??null}set onmousedown(t){this[y].set("onmousedown",t);}get onmouseenter(){return this[y].get("onmouseenter")??null}set onmouseenter(t){this[y].set("onmouseenter",t);}get onmouseleave(){return this[y].get("onmouseleave")??null}set onmouseleave(t){this[y].set("onmouseleave",t);}get onmousemove(){return this[y].get("onmousemove")??null}set onmousemove(t){this[y].set("onmousemove",t);}get onmouseout(){return this[y].get("onmouseout")??null}set onmouseout(t){this[y].set("onmouseout",t);}get onmouseover(){return this[y].get("onmouseover")??null}set onmouseover(t){this[y].set("onmouseover",t);}get onmouseup(){return this[y].get("onmouseup")??null}set onmouseup(t){this[y].set("onmouseup",t);}get onmousewheel(){return this[y].get("onmousewheel")??null}set onmousewheel(t){this[y].set("onmousewheel",t);}get onpause(){return this[y].get("onpause")??null}set onpause(t){this[y].set("onpause",t);}get onplay(){return this[y].get("onplay")??null}set onplay(t){this[y].set("onplay",t);}get onplaying(){return this[y].get("onplaying")??null}set onplaying(t){this[y].set("onplaying",t);}get onprogress(){return this[y].get("onprogress")??null}set onprogress(t){this[y].set("onprogress",t);}get onratechange(){return this[y].get("onratechange")??null}set onratechange(t){this[y].set("onratechange",t);}get onreset(){return this[y].get("onreset")??null}set onreset(t){this[y].set("onreset",t);}get onresize(){return this[y].get("onresize")??null}set onresize(t){this[y].set("onresize",t);}get onscroll(){return this[y].get("onscroll")??null}set onscroll(t){this[y].set("onscroll",t);}get onsecuritypolicyviolation(){return this[y].get("onsecuritypolicyviolation")??null}set onsecuritypolicyviolation(t){this[y].set("onsecuritypolicyviolation",t);}get onseeked(){return this[y].get("onseeked")??null}set onseeked(t){this[y].set("onseeked",t);}get onseeking(){return this[y].get("onseeking")??null}set onseeking(t){this[y].set("onseeking",t);}get onselect(){return this[y].get("onselect")??null}set onselect(t){this[y].set("onselect",t);}get onslotchange(){return this[y].get("onslotchange")??null}set onslotchange(t){this[y].set("onslotchange",t);}get onstalled(){return this[y].get("onstalled")??null}set onstalled(t){this[y].set("onstalled",t);}get onsubmit(){return this[y].get("onsubmit")??null}set onsubmit(t){this[y].set("onsubmit",t);}get onsuspend(){return this[y].get("onsuspend")??null}set onsuspend(t){this[y].set("onsuspend",t);}get ontimeupdate(){return this[y].get("ontimeupdate")??null}set ontimeupdate(t){this[y].set("ontimeupdate",t);}get ontoggle(){return this[y].get("ontoggle")??null}set ontoggle(t){this[y].set("ontoggle",t);}get onvolumechange(){return this[y].get("onvolumechange")??null}set onvolumechange(t){this[y].set("onvolumechange",t);}get onwaiting(){return this[y].get("onwaiting")??null}set onwaiting(t){this[y].set("onwaiting",t);}get onwebkitanimationend(){return this[y].get("onwebkitanimationend")??null}set onwebkitanimationend(t){this[y].set("onwebkitanimationend",t);}get onwebkitanimationiteration(){return this[y].get("onwebkitanimationiteration")??null}set onwebkitanimationiteration(t){this[y].set("onwebkitanimationiteration",t);}get onwebkitanimationstart(){return this[y].get("onwebkitanimationstart")??null}set onwebkitanimationstart(t){this[y].set("onwebkitanimationstart",t);}get onwebkittransitionend(){return this[y].get("onwebkittransitionend")??null}set onwebkittransitionend(t){this[y].set("onwebkittransitionend",t);}get onwheel(){return this[y].get("onwheel")??null}set onwheel(t){this[y].set("onwheel",t);}get onauxclick(){return this[y].get("onauxclick")??null}set onauxclick(t){this[y].set("onauxclick",t);}get ongotpointercapture(){return this[y].get("ongotpointercapture")??null}set ongotpointercapture(t){this[y].set("ongotpointercapture",t);}get onlostpointercapture(){return this[y].get("onlostpointercapture")??null}set onlostpointercapture(t){this[y].set("onlostpointercapture",t);}get onpointerdown(){return this[y].get("onpointerdown")??null}set onpointerdown(t){this[y].set("onpointerdown",t);}get onpointermove(){return this[y].get("onpointermove")??null}set onpointermove(t){this[y].set("onpointermove",t);}get onpointerrawupdate(){return this[y].get("onpointerrawupdate")??null}set onpointerrawupdate(t){this[y].set("onpointerrawupdate",t);}get onpointerup(){return this[y].get("onpointerup")??null}set onpointerup(t){this[y].set("onpointerup",t);}get onpointercancel(){return this[y].get("onpointercancel")??null}set onpointercancel(t){this[y].set("onpointercancel",t);}get onpointerover(){return this[y].get("onpointerover")??null}set onpointerover(t){this[y].set("onpointerover",t);}get onpointerout(){return this[y].get("onpointerout")??null}set onpointerout(t){this[y].set("onpointerout",t);}get onpointerenter(){return this[y].get("onpointerenter")??null}set onpointerenter(t){this[y].set("onpointerenter",t);}get onpointerleave(){return this[y].get("onpointerleave")??null}set onpointerleave(t){this[y].set("onpointerleave",t);}get onselectstart(){return this[y].get("onselectstart")??null}set onselectstart(t){this[y].set("onselectstart",t);}get onselectionchange(){return this[y].get("onselectionchange")??null}set onselectionchange(t){this[y].set("onselectionchange",t);}get onanimationend(){return this[y].get("onanimationend")??null}set onanimationend(t){this[y].set("onanimationend",t);}get onanimationiteration(){return this[y].get("onanimationiteration")??null}set onanimationiteration(t){this[y].set("onanimationiteration",t);}get onanimationstart(){return this[y].get("onanimationstart")??null}set onanimationstart(t){this[y].set("onanimationstart",t);}get ontransitionrun(){return this[y].get("ontransitionrun")??null}set ontransitionrun(t){this[y].set("ontransitionrun",t);}get ontransitionstart(){return this[y].get("ontransitionstart")??null}set ontransitionstart(t){this[y].set("ontransitionstart",t);}get ontransitionend(){return this[y].get("ontransitionend")??null}set ontransitionend(t){this[y].set("ontransitionend",t);}get ontransitioncancel(){return this[y].get("ontransitioncancel")??null}set ontransitioncancel(t){this[y].set("ontransitioncancel",t);}get oncopy(){return this[y].get("oncopy")??null}set oncopy(t){this[y].set("oncopy",t);}get oncut(){return this[y].get("oncut")??null}set oncut(t){this[y].set("oncut",t);}get onpaste(){return this[y].get("onpaste")??null}set onpaste(t){this[y].set("onpaste",t);}get onscrollend(){return this[y].get("onscrollend")??null}set onscrollend(t){this[y].set("onscrollend",t);}get onscrollsnapchange(){return this[y].get("onscrollsnapchange")??null}set onscrollsnapchange(t){this[y].set("onscrollsnapchange",t);}get onscrollsnapchanging(){return this[y].get("onscrollsnapchanging")??null}set onscrollsnapchanging(t){this[y].set("onscrollsnapchanging",t);}get adoptedStyleSheets(){return this[dl]}set adoptedStyleSheets(t){this[dl]=t;}get implementation(){return this[oS]}get readyState(){return this[Ta]}get referrer(){return this[Yr]}get defaultView(){return this[ao]}get children(){if(!this[Lr]){let t=this[Pt];this[Lr]=new Fe(b,()=>t);}return this[Lr]}get charset(){return this.characterSet}get characterSet(){let t=ft.querySelector(this,"meta[charset]")?.getAttributeNS(null,"charset");return t||"UTF-8"}get title(){let t=fe.getElementByTagName(this,"title");return t?t.text.trim():""}set title(t){let e=fe.getElementByTagName(this,"title");if(e)e.textContent=t;else {let r=this.createElement("title");r.textContent=t,this.head.appendChild(r);}}get links(){return ft.querySelectorAll(this,"a[href],area[href]")}get forms(){return this[Tp]||(this[Tp]=fe.getElementsByTagName(this,"form")),this[Tp]}get childElementCount(){return this[Pt].length}get firstElementChild(){return this[Pt][0]??null}get lastElementChild(){let t=this[Pt];return t[t.length-1]??null}get cookie(){let t=new rt(this[m]).getBrowserFrame();return t?On.cookiesToString(t.page.context.cookieContainer.getCookies(this[m].location,true)):""}set cookie(t){let e=new rt(this[m]).getBrowserFrame();if(!e)return;let r=On.stringToCookie(this[m].location,t);r&&e.page.context.cookieContainer.addCookies([r]);}get nodeName(){return "#document"}get documentElement(){return this[Pt][0]??null}get doctype(){for(let t of this[j])if(t instanceof Os)return t;return null}get body(){let t=this.documentElement;return t?fe.getElementByTagName(t,"body"):null}get head(){let t=this.documentElement;return t?fe.getElementByTagName(t,"head"):null}get styleSheets(){let t=ft.querySelectorAll(this,'link[rel="stylesheet"][href],style'),e=[];for(let r of t){let n=r.sheet;n&&e.push(n);}return e}get activeElement(){if(this[tr]&&!this[tr][pt]&&(this[tr]=null),this[tr]){let t=this[tr].getRootNode(),e=this[tr];for(;t!==this;)e=t.host,t=e?e.getRootNode():this;return e}return this[tr]||this.body||this.documentElement||null}get scrollingElement(){return this.documentElement}get location(){return this[m].location}get scripts(){return this.getElementsByTagName("script")}get baseURI(){let t=fe.getElementByTagName(this,"base");return t?t.href:this[m].location.href}get URL(){return this[m].location.href}get documentURI(){return this.URL}get domain(){return this[m].location.hostname}get visibilityState(){return this.defaultView?Dx.visible:Dx.hidden}get hidden(){return !this.defaultView}get currentScript(){return this[Cn]}get contentType(){return this[$e]}append(...t){fe.append(this,...t);}prepend(...t){fe.prepend(this,...t);}replaceChildren(...t){fe.replaceChildren(this,...t);}querySelectorAll(t){return ft.querySelectorAll(this,t)}querySelector(t){return ft.querySelector(this,t)}queryCommandSupported(t){if(!arguments.length)throw new this[m].TypeError("Failed to execute 'queryCommandSupported' on 'Document': 1 argument required, but only 0 present.");return true}getElementsByClassName(t){return fe.getElementsByClassName(this,t)}getElementsByTagName(t){return fe.getElementsByTagName(this,t)}getElementsByTagNameNS(t,e){return fe.getElementsByTagNameNS(this,t,e)}getElementById(t){return fe.getElementById(this,t)}getElementsByName(t){return ft.querySelectorAll(this,`[name="${t}"]`)}write(t){if(this[Zi]||this[ts]){this[Zi]&&(this[ts]||this.open(),this[Zi]=false);let{documentElement:e,head:r,body:n}=this;(!e||!r||!n)&&this.open(),this[Zi]=false,this[ts]=false,new Wr(this[m],{evaluateScripts:true}).parse(t,this);}else new Wr(this[m],{evaluateScripts:true}).parse(t,this.body);}open(){this[ts]=true;for(let s of this[Te].bubbling.keys()){let l=this[Te].bubbling.get(s);if(l)for(let a of l)this.removeEventListener(s,a);}for(let s of this[Te].capturing.keys()){let l=this[Te].capturing.get(s);if(l)for(let a of l)this.removeEventListener(s,a);}let t=this[j];for(;t.length;)this.removeChild(t[0]);let e=this[oS].createDocumentType("html","",""),r=this.createElement("html"),n=this.createElement("body"),i=this.createElement("head");return this.appendChild(e),this.appendChild(r),r.appendChild(i),r.appendChild(n),this}close(){}createElement(t,e){return this.createElementNS(Zt.html,eo.asciiLowerCase(String(t)),e)}createElementNS(t,e,r){let n=this[m];if(e=String(e),!e)throw new n.DOMException("Failed to execute 'createElementNS' on 'Document': The qualified name provided is empty.");let i=e.split(":"),s=i[1]??i[0],l=i[1]?i[0]:null;switch(t){case Zt.svg:let a=gf[e.toLowerCase()],u=a&&a.localName===e?n[a.className]:n.SVGElement,c=Je.createNode(this,u);return c[st]=e,c[ht]=s,c[Kt]=l,c[lt]=t,c[Go]=r&&r.is?String(r.is):null,c;case Zt.html:let h=n.customElements[Ci]?.get(r&&r.is?String(r.is):e);if(h){let w=new h.elementClass;return w[st]=eo.asciiUpperCase(e),w[ht]=s,w[Kt]=l,w[lt]=t,w[Go]=r&&r.is?String(r.is):null,w}let f=Pr[e]?n[Pr[e].className]:null;if(f){let w=Je.createNode(this,f);return w[st]=eo.asciiUpperCase(e),w[ht]=s,w[Kt]=l,w[lt]=t,w[Go]=r&&r.is?String(r.is):null,w}let d=e.includes("-")?n.HTMLElement:n.HTMLUnknownElement,g=Je.createNode(this,d);return g[st]=eo.asciiUpperCase(e),g[ht]=s,g[Kt]=l,g[lt]=t,g[Go]=r&&r.is?String(r.is):null,g;default:let A=Je.createNode(this,zr);return A[st]=e,A[ht]=s,A[Kt]=l,A[lt]=t,A[Go]=r&&r.is?String(r.is):null,A}}createTextNode(t){if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'createTextNode' on 'Document': 1 argument required, but only ${arguments.length} present.`);return Je.createNode(this,this[m].Text,String(t))}createComment(t){if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'createComment' on 'Document': 1 argument required, but only ${arguments.length} present.`);return Je.createNode(this,this[m].Comment,String(t))}createDocumentFragment(){return Je.createNode(this,this[m].DocumentFragment)}createNodeIterator(t,e=-1,r=null){return new Pu(t,e,r)}createTreeWalker(t,e=-1,r=null){return new zs(t,e,r)}createEvent(t){return typeof this[m][t]=="function"?new this[m][t]("init"):new I("init")}createAttribute(t){let e=Je.createNode(this,this[m].Attr),r=eo.asciiLowerCase(t),n=r.split(":");return e[ct]=r,e[ht]=n[1]??r,e[Kt]=n[1]?n[0]:null,e}createAttributeNS(t,e){let r=Je.createNode(this,this[m].Attr),n=e.split(":");if(r[lt]=t,r[ct]=e,r[ht]=n[1]??e,r[Kt]=n[1]?n[0]:null,!t&&r[Kt])throw new this[m].DOMException(`Failed to execute 'createAttributeNS' on 'Document': The namespace URI provided ('${t||""}') is not valid for the qualified name provided ('${e}').`,k.namespaceError);return r}importNode(t,e=false){if(!(t instanceof Et))throw new this[m].DOMException("Parameter 1 was not of type Node.");let r=t.cloneNode(e);return this.#t(r),r}createRange(){return new this[m].Range}adoptNode(t){if(!(t instanceof Et))throw new this[m].DOMException("Parameter 1 was not of type Node.");let e=t[K]?t[K].removeChild(t):t;return Object.defineProperty(e,"ownerDocument",{value:this}),e}getSelection(){return this[xa]||(this[xa]=new gu(this)),this[xa]}hasFocus(){return !!this.activeElement}createProcessingInstruction(t,e){if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'createProcessingInstruction' on 'Document': 2 arguments required, but only ${arguments.length} present.`);if(t=String(t),e=String(e),!t||!vF.test(t))throw new this[m].DOMException(`Failed to execute 'createProcessingInstruction' on 'Document': The target provided ('${t}') is not a valid name.`);if(e.includes("?>"))throw new this[m].DOMException("Failed to execute 'createProcessingInstruction' on 'Document': The data provided ('?>') contains '?>'");let r=Je.createNode(this,this[m].ProcessingInstruction);return r[$t]=e,r[Jr]=t,r}elementFromPoint(t,e){return null}[It](){super[It](),this[Lr]=null,this[tr]=null,this[ml]=null,this[Cn]=null,this[ao]=null,this[dl]=[],this[Tp]=null,this[oi]=[],this[Mi].clear(),this[Oa]=null,this[ho].clear(),this[y].clear(),this[xa]=null;}#t(t){t[N]=this;for(let e of t[j])this.#t(e);}};g();var dh=class extends _s{constructor(){super();let t=this.createElement("html"),e=this.createElement("body"),r=this.createElement("head");this.appendChild(t),t.appendChild(r),t.appendChild(e);}[Ft](t,e=false){if(t[H]===M.textNode)throw new this[m].Error("Failed to execute 'appendChild' on 'Node': Nodes of type '#text' may not be inserted inside nodes of type '#document'.");if(t[H]===M.documentFragmentNode)return t;if(t[H]===M.elementNode&&this[Pt].length!==0)throw new this[m].Error("Failed to execute 'appendChild' on 'Node': Only one element on document allowed.");return super[Ft](t,e)}[co](t,e,r=false){if(t[H]===M.textNode)throw new this[m].Error("Failed to execute 'insertBefore' on 'Node': Nodes of type '#text' may not be inserted inside nodes of type '#document'.");if(t[H]===M.documentFragmentNode)return t;if(t[H]===M.elementNode&&this[Pt].length!==0)throw new this[m].Error("Failed to execute 'insertBefore' on 'Node': Only one element on document allowed.");return super[co](t,e,r)}};g();var fh=class extends _s{[$e]="application/xml"};g();var bh=class extends zi{[H]=M.textNode;[xr]=null;[Gr]=null;get nodeName(){return "#text"}get wholeText(){if(!this[K])return this[$t];let t="";for(let e=this.previousSibling;Nt.isTextNode(e);e=e.previousSibling)t=e.data+t;t+=this[$t];for(let e=this.nextSibling;Nt.isTextNode(e);e=e.nextSibling)t+=e.data;return t}get data(){return this[$t]}set data(t){super.data=t,this[xr]&&this[xr][gp](),this[Gr]&&this[Gr][La]();}splitText(t){let e=this[$t].length;if(t<0||t>e)throw new this[m].DOMException("The index is not in the allowed range.",k.indexSizeError);let r=e-t,n=this.substringData(t,r),i=this[N].createTextNode(n);return this[K]!==null&&this[K].insertBefore(i,this.nextSibling),this.replaceData(t,r,""),i}toString(){return "[object Text]"}[xt](t=false){return super[xt](t)}[Ho](){super[Ho](),this[xr]&&this[xr][gp](),this[Gr]&&this[$t]&&this[Gr][La]();}[Xi](){this[xr]&&this[xr][gp](),this[Gr]&&this[$t]&&this[Gr][La](),super[Xi]();}};g();var gh=class extends zi{[H]=M.commentNode;get nodeName(){return "#comment"}toString(){return "[object Comment]"}[xt](t=false){return super[xt](t)}};g();var Sh=class extends Gs{[st]="IMG";[ht]="img";[lt]=Zt.html;constructor(t=null,e=null){super(),t!==null&&(this.width=t),e!==null&&(this.height=e);}};g();var Cf=class extends uu{[st]="AUDIO";[ht]="audio";[lt]=Zt.html;constructor(t=null){super(),t!==null&&(this.src=t);}};g();g();var kf=class{target;options;mutationListener;#t;#e;#r;#o=[];#n=false;#i=false;constructor(t){this.options=t.options,this.target=t.target,this.mutationListener={options:t.options,callback:new WeakRef(e=>this.report(e))},this.#t=t.window,this.#e=t.observer,this.#r=t.callback;}report(t){this.#n||(this.#o.push(t),!this.#i&&(this.#t.queueMicrotask(()=>{if(this.#n)return;this.#i=false;let e=this.#o;e?.length>0&&(this.#o=[],this.#r(e,this.#e));}),this.#i=true));}takeRecords(){if(this.#n)return [];let t=this.#o;return this.#o=[],t}destroy(){this.#n||(this.#n=true,this.options=null,this.target=null,this.mutationListener=null,this.#t=null,this.#e=null,this.#r=null,this.#o=null);}};var Ph=class{#t;#e=[];#r=false;constructor(t){if(!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);this.#t=t;}observe(t,e){if(this.#r)return;if(!t)throw new this[m].TypeError(`Failed to execute 'observe' on 'MutationObserver': The first parameter "target" should be of type "Node".`);if(e&&(e.attributeFilter||e.attributeOldValue)){if(e.attributes===void 0&&(e=Object.assign({},e,{attributes:true,attributeFilter:e.attributeFilter,attributeOldValue:e.attributeOldValue})),!e.attributes&&e.attributeOldValue)throw new this[m].TypeError("Failed to execute 'observe' on 'MutationObserver': The options object may only set 'attributeOldValue' to true when 'attributes' is true or not present.");if(!e.attributes&&e.attributeFilter)throw new this[m].TypeError("Failed to execute 'observe' on 'MutationObserver': The options object may only set 'attributeFilter' when 'attributes' is true or not present.")}if(e&&e.characterDataOldValue&&(e.characterData===void 0&&(e=Object.assign({},e,{characterData:true,characterDataOldValue:e.characterDataOldValue})),!e.characterData&&e.characterDataOldValue))throw new this[m].TypeError("Failed to execute 'observe' on 'MutationObserver': The options object may only set 'characterDataOldValue' to true when 'characterData' is true or not present.");if(!e||!e.childList&&!e.attributes&&!e.characterData)throw new this[m].TypeError("Failed to execute 'observe' on 'MutationObserver': The options object must set at least one of 'attributes', 'characterData', or 'childList' to true.");e=Object.assign({},e,{attributeFilter:e.attributeFilter?e.attributeFilter.map(n=>n.toLowerCase()):null});for(let n of this.#e)if(n.target===t){n.options=e;return}let r=new kf({window:this[m],options:e,callback:this.#t.bind(this),observer:this,target:t});this.#e.push(r),this[m][va].includes(this)||this[m][va].push(this),t[qu](r.mutationListener);}disconnect(){if(this.#e.length===0)return;for(let r of this.#e)r.target[Sp](r.mutationListener),r.destroy();this.#e=[];let t=this[m][va],e=t.indexOf(this);e!==-1&&t.splice(e,1);}takeRecords(){let t=[];for(let e of this.#e)t=t.concat(e.takeRecords());return t}[It](){this.#r=true,this.disconnect();}};g();var Nf=class extends Ot{postMessage(t,e){}start(){}close(){}};g();g();var TF=/\/\*[\s\S]*?\*\//gm,Ah=class{#t;constructor(t){this.#t=t;}parseFromString(t){let e=this.#t,r=e[m],n=t.replace(TF,""),i=[],s=/{|}/gm,l=[],a=null,u=0,c;for(;c=s.exec(n);){if(c[0]==="{"){let h=n.substring(u,c.index).trim();if(h[0]==="@"){let f=h.split(" "),d=f[0],g=f.slice(1).join(" ").trim();switch(d){case "@keyframes":case "@-webkit-keyframes":let A=new ja(b,r,this);A[yo]=d==="@-webkit-keyframes"?"-webkit-":"",A[ct]=g,A[Pn]=e,a?(a.type===St.mediaRule||a.type===St.containerRule||a.type===St.supportsRule)&&a.cssRules.push(A):i.push(A),a=A;break;case "@media":let w=g.split(","),T=new Ya(b,r,this);for(let Z of w)T.media.appendMedium(Z.trim());T[Pn]=e,a?(a.type===St.mediaRule||a.type===St.containerRule||a.type===St.supportsRule)&&a.cssRules.push(T):i.push(T),a=T;break;case "@container":case "@-webkit-container":let G=new $a(b,r,this);G[yo]=d==="@-webkit-container"?"-webkit-":"",G[en]=g,G[Pn]=e,a?(a.type===St.mediaRule||a.type===St.containerRule||a.type===St.supportsRule)&&a.cssRules.push(G):i.push(G),a=G;break;case "@supports":case "@-webkit-supports":let J=new Xa(b,r,this);J[yo]=d==="@-webkit-supports"?"-webkit-":"",J[en]=g,J[Pn]=e,a?(a.type===St.mediaRule||a.type===St.containerRule||a.type===St.supportsRule)&&a.cssRules.push(J):i.push(J),a=J;break;case "@font-face":let W=new Ka(b,r,this);W[qr]=g,W[Pn]=e,a?(a.type===St.mediaRule||a.type===St.containerRule||a.type===St.supportsRule)&&a.cssRules.push(W):i.push(W),a=W;break;case "@scope":case "@-webkit-scope":let q=new Ls(b,r,this);if(q[yo]=d==="@-webkit-scope"?"-webkit-":"",q[Pn]=e,g){let Z=g.split(/\s+to\s+/);Z[0]&&Z[0][0]==="("&&Z[0][Z[0].length-1]===")"&&(q[z]=Z[0].slice(1,-1)),Z[1]&&Z[1][0]==="("&&Z[1][Z[1].length-1]===")"&&(q[Y]=Z[1].slice(1,-1));}a?(a.type===St.mediaRule||a.type===St.containerRule||a.type===St.supportsRule)&&a.cssRules.push(q):i.push(q),a=q;break;default:let ut=new Is(b,r,this);ut[Pn]=e,a=ut;break}}else if(a&&a.type===St.keyframesRule){let f=new Ms(b,r,this),d=h.trim();d==="from"?d="0%":d==="to"&&(d="100%"),f[Ns]=d,f[Pn]=e,f[Cl]=a,a.cssRules.push(f),a=f;}else if(a&&(a.type===St.mediaRule||a.type===St.containerRule||a.type===St.supportsRule)){if(this.validateSelectorText(h)){let f=new Is(b,r,this);f[lc]=h,f[Pn]=e,f[Cl]=a,a.cssRules.push(f),a=f;}}else if(this.validateSelectorText(h)){let f=new Is(b,r,this);f[lc]=h,f[Pn]=e,f[Cl]=a,a||i.push(f),a=f;}a&&l.push(a);}else {if(a){let h=n.substring(u,c.index).trim().replace(/([^;])$/,"$1;");switch(a.type){case St.fontFaceRule:case St.keyframeRule:case St.styleRule:a[qr]=h;break}}l.pop(),a=l[l.length-1]||null;}u=c.index+1;}return i}validateSelectorText(t){let e=this.#t[m];return new Ll({window:e,scope:e.document,ignoreErrors:true}).getSelectorGroups(t).length>0}};var wh=class{cssRules=[];media;title;alternate;disabled;#t=null;constructor(t){this.media=t&&t.media?t.media:"",this.title=t&&t.title?t.title:"",this.alternate=t&&t.alternate?t.alternate:false,this.disabled=t&&t.disabled?t.disabled:false;}insertRule(t,e){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'insertRule' on 'CSSStyleSheet': 1 argument required, but only 0 present.");let n=new Ah(this).parseFromString(t);if(n.length===0||n.length>1)throw new this[m].DOMException(`Failed to execute 'insertRule' on 'CSSStyleSheet': Failed to parse the rule '${t}'.`,k.syntaxError);if(e!==void 0){if(e>this.cssRules.length)throw new this[m].DOMException(`Failed to execute 'insertRule' on 'CSSStyleSheet': The index provided (${e}) is larger than the maximum index (${this.cssRules.length-1}).`,k.indexSizeError);return this.cssRules.splice(e,0,n[0]),e}let i=this.cssRules.length;return this.cssRules.push(n[0]),i}deleteRule(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'deleteRule' on 'CSSStyleSheet': 1 argument required, but only 0 present.");this.cssRules.splice(t,1);}async replace(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'replace' on 'CSSStyleSheet': 1 argument required, but only 0 present.");this.replaceSync(t);}replaceSync(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'replaceSync' on 'CSSStyleSheet': 1 argument required, but only 0 present.");this.#t!==t&&(this.#t=t,this.cssRules=new Ah(this).parseFromString(t));}};g();g();var Yl=class extends Ot{[y]=new Map;get onloadstart(){return this[y].get("onloadstart")??null}set onloadstart(t){this[y].set("onloadstart",t);}get onprogress(){return this[y].get("onprogress")??null}set onprogress(t){this[y].set("onprogress",t);}get onabort(){return this[y].get("onabort")??null}set onabort(t){this[y].set("onabort",t);}get onerror(){return this[y].get("onerror")??null}set onerror(t){this[y].set("onerror",t);}get onload(){return this[y].get("onload")??null}set onload(t){this[y].set("onload",t);}get ontimeout(){return this[y].get("ontimeout")??null}set ontimeout(t){this[y].set("ontimeout",t);}get onloadend(){return this[y].get("onloadend")??null}set onloadend(t){this[y].set("onloadend",t);}};var Lf=class extends Yl{};g();var xh=class{signal=new this[m].AbortSignal;abort(t){this.signal[Ei](t);}};g();var Eh=class extends Ot{[Re]=false;[Sn]=void 0;onabort=null;constructor(){if(super(),!this[m])throw new TypeError("Failed to construct 'AbortSignal': Illegal constructor")}get[Symbol.toStringTag](){return "AbortSignal"}get aborted(){return this[Re]}set aborted(t){}get reason(){return this[Sn]}set reason(t){}[Ei](t){this.aborted||(this[Sn]=t!==void 0?t:new this[m].DOMException("signal is aborted without reason",k.abortError),this[Re]=true,this.dispatchEvent(new I("abort")));}throwIfAborted(){if(this.aborted)throw this.reason}static abort(t){let e=new this;return e[Sn]=t!==void 0?t:new this[m].DOMException("signal is aborted without reason",k.abortError),e[Re]=true,e}static timeout(t){let e=this[m],r=new this;return e.setTimeout(()=>{r[Ei](new e.DOMException("signal timed out",k.timeoutError));},t),r}static any(t){for(let i of t)if(i[Re])return this.abort(i[Sn]);let e=new this,r=new Map,n=()=>{for(let i of t)i.removeEventListener("abort",r.get(i));};for(let i of t){let s=()=>{n(),e[Ei](i[Sn]);};r.set(i,s),i.addEventListener("abort",s);}return e}};g();var vh=class extends Ot{state;onchange=null;constructor(t="granted"){super(),this.state=t;}};g();g();var Ox;(function(o){o[o.unsent=0]="unsent",o[o.opened=1]="opened",o[o.headersReceived=2]="headersReceived",o[o.loading=3]="loading",o[o.done=4]="done";})(Ox||(Ox={}));var Ze=Ox;g();var Fx;(function(o){o.arraybuffer="arraybuffer",o.blob="blob",o.document="document",o.json="json",o.text="text";})(Fx||(Fx={}));var $s=Fx;g();var Th=class{static parse(t){if(!t.data)return "";switch(t.responseType){case $s.arraybuffer:let e=new ArrayBuffer(t.data.length),r=new Uint8Array(e);return r.set(t.data),r;case $s.blob:try{return new t.window.Blob([new Uint8Array(t.data)],{type:t.contentType||""})}catch{}return null;case $s.document:let n=t.window,i=new n.DOMParser;try{return i.parseFromString(t.data.toString(),"application/xml")}catch{}return null;case $s.json:try{return JSON.parse(t.data.toString())}catch{}return null;case $s.text:default:return t.data.toString()}}};var Mf=class extends Yl{static UNSENT=Ze.unsent;static OPENED=Ze.opened;static HEADERS_RECEIVED=Ze.headersReceived;static LOADING=Ze.loading;static DONE=Ze.done;upload=new this[m].XMLHttpRequestUpload;withCredentials=false;#t=true;#e=null;#r=false;#o=null;#n=null;#i="";#l=null;#u=Buffer.from([]);#a=Ze.unsent;#c=null;constructor(){if(super(),!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get status(){return this.#n?.status||0}get statusText(){return this.#n?.statusText||""}get response(){return this.#n?this.#l:""}get responseText(){if(this.responseType!==$s.text&&this.responseType!=="")throw new this[m].DOMException(`Failed to read the 'responseText' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'text' (was '${this.responseType}').`,k.invalidStateError);return this.#l!==null?this.#l:this.readyState===Ze.headersReceived||this.readyState===Ze.loading?this.#u.toString()??"":""}get responseXML(){if(this.responseType!==$s.document&&this.responseType!=="")throw new this[m].DOMException(`Failed to read the 'responseXML' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'document' (was '${this.responseType}').`,k.invalidStateError);return this.responseType===""?null:this.#l}get responseURL(){return this.#n?.url||""}get readyState(){return this.#a}set responseType(t){if(this.readyState!==Ze.opened&&this.readyState!==Ze.unsent)throw new this[m].DOMException("Failed to set the 'responseType' property on 'XMLHttpRequest': The object's state must be OPENED or UNSENT.",k.invalidStateError);if(!this.#t)throw new this[m].DOMException("Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be changed for synchronous requests made from a document.",k.invalidStateError);this.#i=t;}get responseType(){return this.#i}open(t,e,r=true,n,i){let s=this[m];if(!r&&this.responseType&&this.responseType!==$s.text)throw new s.DOMException("Failed to execute 'open' on 'XMLHttpRequest': Synchronous requests from a document must not set a response type.",k.invalidAccessError);let l=new this[m].Headers;if(n){let a=Buffer.from(`${n}:${i||""}`);l.set("Authorization","Basic "+a.toString("base64"));}this.#t=r,this.#r=false,this.#n=null,this.#l=null,this.#u=Buffer.from([]),this.#e=new s.AbortController,this.#o=new s.Request(e,{method:t,headers:l,signal:this.#e.signal,credentials:this.withCredentials?"include":"same-origin"}),this.#a=Ze.opened;}setRequestHeader(t,e){if(this.readyState!==Ze.opened)throw new this[m].DOMException("Failed to execute 'setRequestHeader' on 'XMLHttpRequest': The object's state must be OPENED.",k.invalidStateError);return Ui.isHeaderForbidden(t)?false:(this.#o.headers.set(t,e),true)}getResponseHeader(t){return this.#n?.headers.get(t)??null}getAllResponseHeaders(){if(!this.#n)return "";let t=[];for(let[e,r]of this.#n?.headers){let n=e.toLowerCase();n!=="set-cookie"&&n!=="set-cookie2"&&t.push(`${e}: ${r}`);}return t.join(`\r
219
+ `)}send(t){let e=this[m];if(this.readyState!=Ze.opened)throw new this[m].DOMException("Failed to execute 'send' on 'XMLHttpRequest': Connection must be opened before send() is called.",k.invalidStateError);typeof t=="object"&&t!==null&&t[H]===M.documentNode&&(t=new e.XMLSerializer().serializeToString(t)),this.#t?this.#p(t).catch(r=>{throw r}):this.#m(t);}abort(){this.#r||(this.#r=true,this.#e.abort());}overrideMimeType(t){if(this.readyState===Ze.loading||this.readyState===Ze.done)throw new this[m].DOMException("Failed to execute 'overrideMimeType' on 'XMLHttpRequest': MIME type cannot be overridden when the request state is LOADING or DONE.",k.invalidStateError);this.#c=t;}async#p(t){let e=this[m],r=new rt(e).getBrowserFrame();if(!r)return;let n=r[Tt],i=n.startTask(()=>this.abort());this.#a=Ze.loading,this.#s(new I("readystatechange")),this.#s(new I("loadstart")),t&&(this.#o=new e.Request(this.#o.url,{method:this.#o.method,headers:this.#o.headers,signal:this.#e.signal,credentials:this.#o.credentials,body:t})),this.#e.signal.addEventListener("abort",()=>{this.#r=true,this.#a=Ze.unsent,this.#s(new I("abort")),this.#s(new I("loadend")),this.#s(new I("readystatechange")),n.endTask(i);});let s=h=>{if(h instanceof de&&h.name===k.abortError){if(this.#r)return;this.#a=Ze.unsent,this.#s(new I("abort"));}else this.#a=Ze.done,this.#s(new Rs("error",{error:h,message:h.message}));this.#s(new I("loadend")),this.#s(new I("readystatechange")),n.endTask(i);},l=new sn({browserFrame:r,window:e,url:this.#o.url,init:this.#o});try{this.#n=await l.send();}catch(h){s(h);return}this.#a=Ze.headersReceived,this.#s(new I("readystatechange"));let a=this.#n.headers.get("Content-Length"),u=a!==null&&!isNaN(Number(a))?Number(a):null,c=0;if(this.#n.body){let h;try{for await(let f of this.#n.body){let d=typeof f=="string"?Buffer.from(f):f;this.#u=Buffer.concat([this.#u,d]),c+=f.length;try{this.#s(new on("progress",{lengthComputable:u!==null,loaded:c,total:u!==null?u:0}));}catch(g){throw h=g,g}}}catch(f){if(f===h)throw f;s(f);return}}this.#l=Th.parse({window:e,responseType:this.#i,data:this.#u,contentType:this.#c||this.#n.headers.get("Content-Type")||this.#o.headers.get("Content-Type")}),this.#a=Ze.done,this.#u=Buffer.from([]),n.endTask(i),this.#s(new I("readystatechange")),this.#s(new I("load")),this.#s(new I("loadend"));}#m(t){let e=this[m],r=new rt(e).getBrowserFrame();if(!r)return;t&&(this.#o=new e.Request(this.#o.url,{method:this.#o.method,headers:this.#o.headers,signal:this.#e.signal,credentials:this.#o.credentials,body:t})),this.#a=Ze.loading;let n=new Lc({browserFrame:r,window:e,url:this.#o.url,init:this.#o});try{this.#n=n.send();}catch(i){this.#a=Ze.done,this.#s(new Rs("error",{error:i,message:i.message})),this.#s(new I("loadend")),this.#s(new I("readystatechange"));return}this.#a=Ze.headersReceived,this.#l=Th.parse({window:e,responseType:this.#i,data:this.#n.body,contentType:this.#c||this.#n.headers.get("Content-Type")||this.#o.headers.get("Content-Type")}),this.#a=Ze.done,this.#s(new I("readystatechange")),this.#s(new I("load")),this.#s(new I("loadend"));}#s(t){let e=new rt(this[m]).getBrowserFrame();if(!e?.page?.context?.browser?.settings?.errorCapture)return;let r=e.page.context.browser.settings,n=r.errorCapture;r.errorCapture=be.tryAndCatch,this.dispatchEvent(t),r.errorCapture=n;}};g();g();var CF=/<([^\s/!>?]+)|<\/([^\s/!>?]+)\s*>|(<!--)|(-->)|(<!)|(<\?)|(\/>)|(>)/gm,kF=/\s*([a-zA-Z0-9-_:]+)\s*=\s*"([^"]*)("{0,1})|\s*([a-zA-Z0-9-_:]+)\s*=\s*'([^']*)('{0,1})/gm,t0=/^\s*([a-zA-Z0-9-_:]+)$/,NF=/version="[^"]+"/,LF=/"([^"]+)"/gm,If=/\s+/,MF=/\n/g,oe;(function(o){o.any="any",o.startTag="startTag",o.comment="comment",o.documentType="documentType",o.processingInstruction="processingInstruction",o.error="error";})(oe||(oe={}));var IF=Object.values(Zt),Ch=class{window;rootNode=null;nodeStack=[];tagNameStack=[];defaultNamespaceStack=null;namespacePrefixStack=null;startTagIndex=0;markupRegExp=null;lastIndex=0;errorIndex=0;nextElement=null;nextTagName=null;currentNode=null;readState=oe.any;errorMessage=null;constructor(t){this.window=t;}parse(t){this.rootNode=new this.window.XMLDocument,this.nodeStack=[this.rootNode],this.tagNameStack=[null],this.currentNode=this.rootNode,this.readState=oe.any,this.defaultNamespaceStack=[null],this.namespacePrefixStack=[null],this.startTagIndex=0,this.errorIndex=0,this.errorMessage=null,this.markupRegExp=new RegExp(CF,"gm"),this.lastIndex=0;let e;for(this.rootNode[ao]=this.window,t=String(t);e=this.markupRegExp.exec(t);){switch(this.readState){case oe.any:e.index!==this.lastIndex&&(e[1]||e[2]||e[3]||e[4]||e[5]!==void 0||e[6])&&this.parsePlainText(t.substring(this.lastIndex,e.index)),e[1]?this.parseStartTag(e[1]):e[2]?this.parseEndTag(e[2])||(this.errorMessage=`Opening and ending tag mismatch: ${this.tagNameStack[this.tagNameStack.length-1]} line ${t.substring(0,this.startTagIndex).split(`
220
+ `).length} and ${e[2]}
221
+ `,this.errorIndex=this.markupRegExp.lastIndex,this.readState=oe.error,this.removeOverflowingTextNodes()):e[3]?(this.startTagIndex=this.markupRegExp.lastIndex,this.readState=oe.comment):e[5]!==void 0?(this.startTagIndex=this.markupRegExp.lastIndex,this.readState=oe.documentType):e[6]?(this.startTagIndex=this.markupRegExp.lastIndex,this.readState=oe.processingInstruction):this.parsePlainText(t.substring(this.lastIndex,this.markupRegExp.lastIndex));break;case oe.startTag:if(e[7]||e[8]){let r=t.substring(this.startTagIndex,e[2]?this.markupRegExp.lastIndex-1:e.index),n=!!e[7];this.parseEndOfStartTag(r,n);}else this.errorMessage=e[2]&&this.lastIndex!==this.startTagIndex?`Unescaped '&lt;' not allowed in attributes values
222
+ `:`error parsing attribute name
223
+ `,this.errorIndex=e.index,this.readState=oe.error,this.removeOverflowingTextNodes();break;case oe.comment:e[4]&&this.parseComment(t.substring(this.startTagIndex,e.index));break;case oe.documentType:(e[7]||e[8])&&this.parseDocumentType(t.substring(this.startTagIndex,e.index));break;case oe.processingInstruction:(e[7]||e[8])&&this.parseProcessingInstruction(t.substring(this.startTagIndex,e.index));break;case oe.error:return this.parseError(t.slice(0,this.errorIndex),this.errorMessage),this.rootNode}this.lastIndex=this.markupRegExp.lastIndex;}return this.readState===oe.error?(this.parseError(t.slice(0,this.errorIndex),this.errorMessage),this.rootNode):this.readState===oe.comment?(this.parseError(t,`Comment not terminated
224
+ `),this.removeOverflowingTextNodes(),this.rootNode):this.rootNode[Pt].length===0?(this.parseError("","Start tag expected, '&lt;' not found"),this.rootNode):(this.lastIndex!==t.length&&this.currentNode&&this.parsePlainText(t.substring(this.lastIndex)),this.nodeStack.length!==1?(this.parseError(t,this.nextElement?`attributes construct error
225
+ `:`Premature end of data in tag article line 1
226
+ `),this.rootNode):this.rootNode)}parsePlainText(t){this.currentNode===this.rootNode?t.replace(If,"")&&(this.errorMessage=`Extra content at the end of the document
227
+ `,this.errorIndex=this.lastIndex,this.readState=oe.error):t.includes("&nbsp;")?(this.errorMessage=`Entity 'nbsp' not defined
228
+ `,this.errorIndex=this.lastIndex+t.indexOf("&nbsp;")+6,this.readState=oe.error):this.currentNode[Ft](this.rootNode.createTextNode(Xe.decodeXMLEntities(t)),true);}parseProcessingInstruction(t){let e=this.markupRegExp,r=t.split(If),n=t[t.length-1]==="?";if(r[0]==="xml")if(this.currentNode!==this.rootNode||this.rootNode[j].length!==0||r.length===1)this.errorMessage=`XML declaration allowed only at the start of the document
229
+ `,this.errorIndex=e.lastIndex-t.length+2,this.readState=oe.error,this.removeOverflowingTextNodes();else if(!NF.test(r[1]))this.errorMessage=`Malformed declaration expecting version
230
+ `,this.errorIndex=e.lastIndex-t.length+3,this.readState=oe.error;else if(!n)this.errorMessage=`Blank needed here
231
+ `,this.errorIndex=e.lastIndex-1,this.readState=oe.error;else {let i=r[0],s=r.slice(1).join(" ").slice(0,-1);this.rootNode[Oa]=this.rootNode.createProcessingInstruction(i,s),this.readState=oe.any;}else if(r.length===1&&!n)this.errorMessage=`ParsePI: PI processing-instruction space expected
232
+ `,this.errorIndex=e.lastIndex-1,this.readState=oe.error;else if(r.length>1&&!n)this.errorMessage=`ParsePI: PI processing-instruction never end ...
233
+ `,this.errorIndex=e.lastIndex-1,this.readState=oe.error;else {let i=r[0],s=r.slice(1).join(" ").slice(0,-1);this.currentNode[Ft](this.rootNode.createProcessingInstruction(i,s),true),this.readState=oe.any;}}parseComment(t){this.currentNode!==this.rootNode&&this.currentNode[Ft](this.rootNode.createComment(Xe.decodeXMLEntities(t)),true),this.readState=oe.any;}parseDocumentType(t){let e=this.markupRegExp;if(this.currentNode===this.rootNode&&this.rootNode[j].length===0){let r=this.getDocumentType(Xe.decodeXMLEntities(t));r?.name?(this.rootNode[Ft](this.window.document.implementation.createDocumentType(r.name,r.publicId,r.systemId),true),this.readState=oe.any):r?(this.errorMessage=`xmlParseDocTypeDecl : no DOCTYPE name
234
+ `,this.errorIndex=e.lastIndex-t.length-2,this.readState=oe.error):(this.errorMessage=`StartTag: invalid element name
235
+ `,this.errorIndex=e.lastIndex-t.length-2,this.readState=oe.error);}else this.currentNode===this.rootNode&&this.rootNode[Pt].length===1?(this.errorMessage=`Extra content at the end of the document
236
+ `,this.errorIndex=e.lastIndex-t.length-2,this.readState=oe.error):(this.errorMessage=`StartTag: invalid element name
237
+ `,this.errorIndex=e.lastIndex-t.length-2,this.readState=oe.error);}parseStartTag(t){let e=t.split(":"),r=this.namespacePrefixStack,n=this.defaultNamespaceStack;e.length>1?this.nextElement=this.rootNode.createElementNS(r[r.length-1]?.get(e[0])||null,t):this.nextElement=this.rootNode.createElementNS(n[n.length-1]||null,t),r.push(new Map(r[r.length-1])),this.nextTagName=t,this.startTagIndex=this.markupRegExp.lastIndex,this.readState=oe.startTag;}parseEndOfStartTag(t,e){let r=this.namespacePrefixStack[this.namespacePrefixStack.length-1];if(t){let n=new RegExp(kF,"gm"),i,s=0;for(;i=n.exec(t);){let a=t.substring(s,i.index).replace(If,"");if(a.length){let u=a.match(t0);this.errorMessage=u?`Specification mandates value for attribute ${u[1]}
238
+ `:`attributes construct error
239
+ `,this.errorIndex=this.startTagIndex,this.readState=oe.error,this.removeOverflowingTextNodes();return}if(i[1]&&i[3]==='"'||i[4]&&i[6]==="'"){let u=i[1]??i[4],c=i[2]??i[5],h=c?Xe.decodeXMLAttributeValue(c.replace(MF," ")):"",f=this.nextElement[Ct],d=u.split(":");if(d.length>2||d.length===2&&(!d[0]||!d[1])){this.errorMessage=`Failed to parse QName '${u}'
240
+ `,this.errorIndex=this.startTagIndex+i.index+i[0].split("=")[0].length,this.readState=oe.error;return}let g=null;switch(d[0]){case "xmlns":g=Zt.xmlns;break;case "xlink":g=Zt.xlink;break}if(f.getNamedItemNS(g,d[1]??u))this.errorMessage=`Attribute ${u} redefined
241
+ `,this.errorIndex=this.startTagIndex,this.readState=oe.error;else {let A=Je.createNode(this.rootNode,this.window.Attr);if(A[lt]=g,A[ct]=u,A[ht]=g&&d[1]?d[1]:u,A[Kt]=g&&d[1]?d[0]:null,A[nt]=h,f[ni](A),A[Kt]==="xmlns")r.set(A[ht],h),this.nextElement[Kt]===A[ht]&&(this.nextElement[lt]=h);else if(u==="xmlns"&&!this.nextElement[Kt])if(IF.includes(h)){this.nextElement=this.rootNode.createElementNS(h,this.nextElement[st]),this.nextElement[Ct]=f,f[Ht]=this.nextElement;for(let w of f[X].values())w[Ht]=this.nextElement;}else this.nextElement[lt]=h;}this.startTagIndex+=i[0].length;}else if(i[1]&&i[3]!=='"'||i[4]&&i[6]!=="'")return;s=n.lastIndex;}let l=t.substring(s).replace(If,"");if(l.length){let a=l.match(t0);a?(this.errorMessage=`Specification mandates value for attribute ${a[1]}
242
+ `,this.errorIndex=this.markupRegExp.lastIndex-2):(this.errorMessage=`attributes construct error
243
+ `,this.errorIndex=this.startTagIndex),this.readState=oe.error,this.removeOverflowingTextNodes();return}}if(this.nextElement[Kt]&&!this.nextElement[lt]){this.errorMessage=`Namespace prefix ${this.nextElement[Kt]} on name is not defined
244
+ `,this.errorIndex=this.lastIndex,this.readState=oe.error;return}if(this.currentNode===this.rootNode&&this.rootNode[Pt].length!==0){this.errorMessage=`Extra content at the end of the document
245
+ `,this.errorIndex=this.lastIndex-this.nextElement[st].length-1,this.readState=oe.error;return}this.currentNode[Ft](this.nextElement,true),e||(this.currentNode=this.nextElement,this.nodeStack.push(this.currentNode),this.tagNameStack.push(this.nextTagName),this.currentNode[lt]&&!this.currentNode[Kt]?this.defaultNamespaceStack.push(this.currentNode[lt]):this.defaultNamespaceStack.push(this.defaultNamespaceStack[this.defaultNamespaceStack.length-1])),this.nextElement=null,this.nextTagName=null,this.readState=oe.any,this.startTagIndex=this.markupRegExp.lastIndex;}parseEndTag(t){return this.tagNameStack[this.tagNameStack.length-1]===t?(this.nodeStack.pop(),this.tagNameStack.pop(),this.namespacePrefixStack.pop(),this.defaultNamespaceStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode,true):false}parseError(t,e){let r=this.rootNode.documentElement;if(!r){let a=this.rootNode.createElementNS(Zt.html,"html"),u=this.rootNode.createElementNS(Zt.html,"body");a.appendChild(u),r=u,this.rootNode[Ft](a,true);}let n=t.split(`
246
+ `),i=n[n.length-1].length+1,s=`error on line ${n.length} at column ${i}: ${e||"Unknown error"}`,l=this.rootNode.createElementNS(Zt.html,"parsererror");l.setAttribute("style","display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black"),l.innerHTML=`<h3>This page contains the following errors:</h3><div style="font-family:monospace;font-size:12px">${s}</div><h3>Below is a rendering of the page up to the first error.</h3>`,r.insertBefore(l,r.firstChild);}removeOverflowingTextNodes(){if(this.currentNode&&this.currentNode!==this.rootNode)for(;this.currentNode.lastChild?.[H]===Et.TEXT_NODE;)this.currentNode.removeChild(this.currentNode.lastChild);}getDocumentType(t){if(!t.toUpperCase().startsWith("DOCTYPE"))return null;let e=t.split(If);if(e.length<=1)return null;let r=e.slice(1).join(" "),n=[],i=new RegExp(LF,"gm"),s=r.toUpperCase().includes("PUBLIC"),l;for(;l=i.exec(r);)n.push(l[1]);let a=s&&n[0]||"",u=s?n[1]||"":n[0]||"";return {name:e[1].toLowerCase(),publicId:a,systemId:u}}};var kh=class{parseFromString(t,e){if(!e)throw new this[m].DOMException('Second parameter "mimeType" is mandatory.');let r=this[m];switch(e){case "text/html":let n=new r.HTMLDocument;return n[ao]=r,new Wr(this[m]).parse(t,n);case "image/svg+xml":case "text/xml":case "application/xml":case "application/xhtml+xml":return new Ch(this[m]).parse(t);default:throw new r.DOMException(`Unknown mime type "${e}".`)}}};g();g();var Bx;(function(o){o[o.endToEnd=2]="endToEnd",o[o.endToStart=3]="endToStart",o[o.startToEnd=1]="startToEnd",o[o.startToStart=0]="startToStart";})(Bx||(Bx={}));var Tr=Bx;var Nh=class{static END_TO_END=Tr.endToEnd;static END_TO_START=Tr.endToStart;static START_TO_END=Tr.startToEnd;static START_TO_START=Tr.startToStart;END_TO_END=Tr.endToEnd;END_TO_START=Tr.endToStart;START_TO_END=Tr.startToEnd;START_TO_START=Tr.startToStart;[z];[Y];[N];constructor(){let t=this[m];if(!t)throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);this[N]=t.document,this[z]={node:t.document,offset:0},this[Y]={node:t.document,offset:0};}get startContainer(){return this[z].node}get endContainer(){return this[Y].node}get startOffset(){if(this[z].offset>0){let t=Nt.getNodeLength(this[z].node);this[z].offset>t&&(this[z].offset=t);}return this[z].offset}get endOffset(){if(this[Y].offset>0){let t=Nt.getNodeLength(this[Y].node);this[Y].offset>t&&(this[Y].offset=t);}return this[Y].offset}get collapsed(){return this[z].node===this[Y].node&&this.startOffset===this.endOffset}get commonAncestorContainer(){let t=this[z].node;for(;t;){if(Nt.isInclusiveAncestor(t,this[Y].node))return t;t=t[K];}return null}collapse(t=false){t?this[Y]=Object.assign({},this[z]):this[z]=Object.assign({},this[Y]);}compareBoundaryPoints(t,e){if(t!==Tr.startToStart&&t!==Tr.startToEnd&&t!==Tr.endToEnd&&t!==Tr.endToStart)throw new this[m].DOMException(`The comparison method provided must be one of '${Tr.startToStart}', '${Tr.startToEnd}', '${Tr.endToEnd}' or '${Tr.endToStart}'.`,k.notSupportedError);if(this[N]!==e[N])throw new this[m].DOMException("The two Ranges are not in the same tree.",k.wrongDocumentError);let r={node:null,offset:0},n={node:null,offset:0};switch(t){case Tr.startToStart:r.node=this[z].node,r.offset=this.startOffset,n.node=e[z].node,n.offset=e.startOffset;break;case Tr.startToEnd:r.node=this[Y].node,r.offset=this.endOffset,n.node=e[z].node,n.offset=e.startOffset;break;case Tr.endToEnd:r.node=this[Y].node,r.offset=this.endOffset,n.node=e[Y].node,n.offset=e.endOffset;break;case Tr.endToStart:r.node=this[z].node,r.offset=this.startOffset,n.node=e[Y].node,n.offset=e.endOffset;break}return Ce.compareBoundaryPointsPosition(r,n)}comparePoint(t,e){if(t[N]!==this[N])throw new this[m].DOMException("The two Ranges are not in the same tree.",k.wrongDocumentError);Ce.validateBoundaryPoint({node:t,offset:e});let r={node:t,offset:e};return Ce.compareBoundaryPointsPosition(r,{node:this[z].node,offset:this.startOffset})===-1?-1:Ce.compareBoundaryPointsPosition(r,{node:this[Y].node,offset:this.endOffset})===1?1:0}cloneContents(){let t=this[m],e=this[N].createDocumentFragment(),r=this.startOffset,n=this.endOffset;if(this.collapsed)return e;if(this[z].node===this[Y].node&&(this[z].node[H]===M.textNode||this[z].node[H]===M.processingInstructionNode||this[z].node[H]===M.commentNode)){let u=this[z].node.cloneNode(false);return u[$t]=u.substringData(r,n-r),e.appendChild(u),e}let i=this[z].node;for(;!Nt.isInclusiveAncestor(i,this[Y].node);)i=i[K];let s=null;if(!Nt.isInclusiveAncestor(this[z].node,this[Y].node)){let u=i.firstChild;for(;!s;)Ce.isPartiallyContained(u,this)&&(s=u),u=u.nextSibling;}let l=null;if(!Nt.isInclusiveAncestor(this[Y].node,this[z].node)){let u=i.lastChild;for(;!l;)Ce.isPartiallyContained(u,this)&&(l=u),u=u.previousSibling;}let a=[];for(let u of i[j])if(Ce.isContained(u,this)){if(u[H]===M.documentTypeNode)throw new t.DOMException("Invalid document type element.",k.hierarchyRequestError);a.push(u);}if(s!==null&&(s[H]===M.textNode||s[H]===M.processingInstructionNode||s[H]===M.commentNode)){let u=this[z].node.cloneNode(false);u[$t]=u.substringData(r,Nt.getNodeLength(this[z].node)-r),e.appendChild(u);}else if(s!==null){let u=s.cloneNode();e.appendChild(u);let c=new t.Range;c[z].node=this[z].node,c[z].offset=r,c[Y].node=s,c[Y].offset=Nt.getNodeLength(s);let h=c.cloneContents();u.appendChild(h);}for(let u of a){let c=u.cloneNode(true);e.appendChild(c);}if(l!==null&&(l[H]===M.textNode||l[H]===M.processingInstructionNode||l[H]===M.commentNode)){let u=this[Y].node.cloneNode(false);u[$t]=u.substringData(0,n),e.appendChild(u);}else if(l!==null){let u=l.cloneNode(false);e.appendChild(u);let c=new t.Range;c[z].node=l,c[z].offset=0,c[Y].node=this[Y].node,c[Y].offset=n;let h=c.cloneContents();u.appendChild(h);}return e}cloneRange(){let t=new this[m].Range;return t[z].node=this[z].node,t[z].offset=this[z].offset,t[Y].node=this[Y].node,t[Y].offset=this[Y].offset,t}createContextualFragment(t){return new Wr(this[m]).parse(t)}deleteContents(){let t=this.startOffset,e=this.endOffset;if(this.collapsed)return;if(this[z].node===this[Y].node&&(this[z].node[H]===M.textNode||this[z].node[H]===M.processingInstructionNode||this[z].node[H]===M.commentNode)){this[z].node.replaceData(t,e-t,"");return}let r=[],n=this[z].node,i=Nt.nextDescendantNode(this[Y].node);for(;n&&n!==i;)Ce.isContained(n,this)&&!Ce.isContained(n[K],this)&&r.push(n),n=Nt.following(n);let s,l;if(Nt.isInclusiveAncestor(this[z].node,this[Y].node))s=this[z].node,l=t;else {let a=this[z].node;for(;a&&!Nt.isInclusiveAncestor(a[K],this[Y].node);)a=a[K];s=a[K],l=a[K][j].indexOf(a)+1;}(this[z].node[H]===M.textNode||this[z].node[H]===M.processingInstructionNode||this[z].node[H]===M.commentNode)&&this[z].node.replaceData(this.startOffset,Nt.getNodeLength(this[z].node)-this.startOffset,"");for(let a of r)a[K].removeChild(a);(this[Y].node[H]===M.textNode||this[Y].node[H]===M.processingInstructionNode||this[Y].node[H]===M.commentNode)&&this[Y].node.replaceData(0,e,""),this[z].node=s,this[z].offset=l,this[Y].node=s,this[Y].offset=l;}detach(){}extractContents(){let t=this[m],e=this[N].createDocumentFragment(),r=this.startOffset,n=this.endOffset;if(this.collapsed)return e;if(this[z].node===this[Y].node&&(this[z].node[H]===M.textNode||this[z].node[H]===M.processingInstructionNode||this[z].node[H]===M.commentNode)){let h=this[z].node.cloneNode(false);return h[$t]=h.substringData(r,n-r),e.appendChild(h),this[z].node.replaceData(r,n-r,""),e}let i=this[z].node;for(;!Nt.isInclusiveAncestor(i,this[Y].node);)i=i[K];let s=null;if(!Nt.isInclusiveAncestor(this[z].node,this[Y].node)){let h=i.firstChild;for(;!s;)Ce.isPartiallyContained(h,this)&&(s=h),h=h.nextSibling;}let l=null;if(!Nt.isInclusiveAncestor(this[Y].node,this[z].node)){let h=i.lastChild;for(;!l;)Ce.isPartiallyContained(h,this)&&(l=h),h=h.previousSibling;}let a=[];for(let h of i[j])if(Ce.isContained(h,this)){if(h[H]===M.documentTypeNode)throw new this[m].DOMException("Invalid document type element.",k.hierarchyRequestError);a.push(h);}let u,c;if(Nt.isInclusiveAncestor(this[z].node,this[Y].node))u=this[z].node,c=r;else {let h=this[z].node;for(;h&&!Nt.isInclusiveAncestor(h[K],this[Y].node);)h=h[K];u=h[K],c=h[K][j].indexOf(h)+1;}if(s!==null&&(s[H]===M.textNode||s[H]===M.processingInstructionNode||s[H]===M.commentNode)){let h=this[z].node.cloneNode(false);h[$t]=h.substringData(r,Nt.getNodeLength(this[z].node)-r),e.appendChild(h),this[z].node.replaceData(r,Nt.getNodeLength(this[z].node)-r,"");}else if(s!==null){let h=s.cloneNode(false);e.appendChild(h);let f=new t.Range;f[z].node=this[z].node,f[z].offset=r,f[Y].node=s,f[Y].offset=Nt.getNodeLength(s);let d=f.extractContents();h.appendChild(d);}for(let h of a)e.appendChild(h);if(l!==null&&(l[H]===M.textNode||l[H]===M.processingInstructionNode||l[H]===M.commentNode)){let h=this[Y].node.cloneNode(false);h[$t]=h.substringData(0,n),e.appendChild(h),this[Y].node.replaceData(0,n,"");}else if(l!==null){let h=l.cloneNode(false);e.appendChild(h);let f=new t.Range;f[z].node=l,f[z].offset=0,f[Y].node=this[Y].node,f[Y].offset=n;let d=f.extractContents();h.appendChild(d);}return this[z].node=u,this[z].offset=c,this[Y].node=u,this[Y].offset=c,e}getBoundingClientRect(){return new mi}getClientRects(){return new vc(b)}isPointInRange(t,e=0){if(t[N]!==this[N])return false;let r={node:t,offset:e};return Ce.validateBoundaryPoint(r),!(Ce.compareBoundaryPointsPosition(r,{node:this[z].node,offset:this.startOffset})===-1||Ce.compareBoundaryPointsPosition(r,{node:this[Y].node,offset:this.endOffset})===1)}insertNode(t){if(this[z].node[H]===M.processingInstructionNode||this[z].node[H]===M.commentNode||this[z].node[H]===M.textNode&&!this[z].node[K]||t===this[z].node)throw new this[m].DOMException("Invalid start node.",k.hierarchyRequestError);let e=this[z].node[H]===M.textNode?this[z].node:this[z].node[j][this.startOffset]||null,r=e?e[K]:this[z].node;this[z].node[H]===M.textNode&&(e=this[z].node.splitText(this.startOffset)),t===e&&(e=e.nextSibling);let n=t[K];n&&n.removeChild(t);let i=e?e[K][j].indexOf(e):Nt.getNodeLength(r);i+=t[H]===M.documentFragmentNode?Nt.getNodeLength(t):1,r.insertBefore(t,e),this.collapsed&&(this[Y].node=r,this[Y].offset=i);}intersectsNode(t){if(t[N]!==this[N])return false;let e=t[K];if(!e)return true;let r=e[j].indexOf(t);return Ce.compareBoundaryPointsPosition({node:e,offset:r},{node:this[Y].node,offset:this.endOffset})===-1&&Ce.compareBoundaryPointsPosition({node:e,offset:r+1},{node:this[z].node,offset:this.startOffset})===1}selectNode(t){if(!t[K])throw new this[m].DOMException("The given Node has no parent.",k.invalidNodeTypeError);let e=t[K][j].indexOf(t);this[z].node=t[K],this[z].offset=e,this[Y].node=t[K],this[Y].offset=e+1;}selectNodeContents(t){if(t[H]===M.documentTypeNode)throw new this[m].DOMException("DocumentType Node can't be used as boundary point.",k.invalidNodeTypeError);this[z].node=t,this[z].offset=0,this[Y].node=t,this[Y].offset=Nt.getNodeLength(t);}setEnd(t,e=0){Ce.validateBoundaryPoint({node:t,offset:e});let r={node:t,offset:e};(t[N]!==this[N]||Ce.compareBoundaryPointsPosition(r,{node:this[z].node,offset:this.startOffset})===-1)&&(this[z].node=t,this[z].offset=e),this[Y].node=t,this[Y].offset=e;}setStart(t,e=0){Ce.validateBoundaryPoint({node:t,offset:e});let r={node:t,offset:e};(t[N]!==this[N]||Ce.compareBoundaryPointsPosition(r,{node:this[Y].node,offset:this.endOffset})===1)&&(this[Y].node=t,this[Y].offset=e),this[z].node=t,this[z].offset=e;}setEndAfter(t){if(!t[K])throw new this[m].DOMException("The given Node has no parent.",k.invalidNodeTypeError);this.setEnd(t[K],t[K][j].indexOf(t)+1);}setEndBefore(t){if(!t[K])throw new this[m].DOMException("The given Node has no parent.",k.invalidNodeTypeError);this.setEnd(t[K],t[K][j].indexOf(t));}setStartAfter(t){if(!t[K])throw new this[m].DOMException("The given Node has no parent.",k.invalidNodeTypeError);this.setStart(t[K],t[K][j].indexOf(t)+1);}setStartBefore(t){if(!t[K])throw new this[m].DOMException("The given Node has no parent.",k.invalidNodeTypeError);this.setStart(t[K],t[K][j].indexOf(t));}surroundContents(t){let e=this.commonAncestorContainer;if(!e)return;let r=Nt.nextDescendantNode(e);for(;e&&e!==r;){if(e[H]!==M.textNode&&Ce.isPartiallyContained(e,this))throw new this[m].DOMException("The Range has partially contains a non-Text node.",k.invalidStateError);e=Nt.following(e);}if(t[H]===M.documentNode||t[H]===M.documentTypeNode||t[H]===M.documentFragmentNode)throw new this[m].DOMException("Invalid element type.",k.invalidNodeTypeError);let n=this.extractContents();for(;t.firstChild;)t.removeChild(t.firstChild);this.insertNode(t),t.appendChild(n),this.selectNode(t);}toString(){let t=this.startOffset,e=this.endOffset,r="";if(this[z].node===this[Y].node&&this[z].node[H]===M.textNode)return this[z].node.data.slice(t,e);this[z].node[H]===M.textNode&&(r+=this[z].node.data.slice(t));let n=Nt.nextDescendantNode(this[Y].node),i=this[z].node;for(;i&&i!==n;)i[H]===M.textNode&&Ce.isContained(i,this)&&(r+=i.data),i=Nt.following(i);return this[Y].node[H]===M.textNode&&(r+=this[Y].node.data.slice(0,e)),r}};g();g();var Au=class extends Ot{id="";startTime=0;endTime=0;pauseOnExit=false;[Cp]=null;onenter=null;onexit=null;constructor(t){if(super(),t!==b)throw new TypeError("Illegal constructor");if(!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get track(){return this[Cp]}};var Lh=class extends Au{region=null;vertical="";snapToLines=true;line=0;lineAlign="";position="auto";positionAlign="auto";size=100;align="";text="";constructor(t,e,r){super(b);let n=this[m],i=0;if(t!==void 0&&i++,e!==void 0&&i++,r!==void 0&&i++,i<3)throw new n.TypeError(`Failed to construct 'VTTCue': 3 arguments required, but only ${i} present.`);if(t=Number(t),e=Number(e),isNaN(t)||isNaN(e))throw new n.TypeError("Failed to construct 'VTTCue': The provided double value is non-finite.");this.startTime=t,this.endTime=e,this.text=String(r);}getCueAsHTML(){let t=this[m],e=t.document.createDocumentFragment();return e.appendChild(t.document.createTextNode(this.text)),e}};g();var Mh=class extends Ot{[fn]=Bs.subtitles;[Pl]="";[ec]="";[Oy]="";[We]="disabled";[tc]=new jl(b);[Fw]=new jl(b);oncuechange=null;constructor(t){if(super(),t!==b)throw new TypeError("Illegal constructor");if(!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[fn]}get label(){return this[Pl]}get language(){return this[ec]}get id(){return this[Oy]}get mode(){return this[We]}set mode(t){t!=="disabled"&&t!=="showing"||(this[We]=t);}get cues(){return this[We]==="disabled"?null:this[tc]}get activeCues(){return this[We]==="disabled"?null:this[Fw]}addCue(t){this[tc].includes(t)||(t[Cp]=this,this[tc].push(t));}removeCue(t){let e=this[tc].indexOf(t);e!==-1&&(t[Cp]=null,this[tc].splice(e,1));}};g();var Ih=class o extends Ot{[X]=[];onaddtrack=null;onchange=null;onremovetrack=null;constructor(t,e){if(super(),t!==b)throw new TypeError("Illegal constructor");this[X]=e;let r=new De(this,[o,Ot]);return new Proxy(this,{get:(n,i)=>{if(i==="length")return e.length;if(i in n||typeof i=="symbol")return r.bind(i),n[i];let s=Number(i);if(!isNaN(s))return e[s]},set(n,i,s){if(r.bind(i),typeof i=="symbol")return n[i]=s,true;let l=Number(i);return isNaN(l)&&(n[i]=s),true},deleteProperty(n,i){if(typeof i=="symbol")return delete n[i],true;let s=Number(i);return isNaN(s)&&delete n[i],true},ownKeys(){return Object.keys(e)},has(n,i){if(i in n)return true;if(typeof i=="symbol")return false;let s=Number(i);return !isNaN(s)&&s>=0&&s<e.length},defineProperty(n,i,s){return r.preventBinding(i),i in n?(Object.defineProperty(n,i,s),true):false},getOwnPropertyDescriptor(n,i){if(i in n||typeof i=="symbol")return;let s=Number(i);if(!isNaN(s)&&e[s])return {value:e[s],writable:false,enumerable:true,configurable:true}}})}get length(){return this[X].length}get[Symbol.toStringTag](){return "TextTrackList"}toLocaleString(){return "[object TextTrackList]"}toString(){return "[object TextTrackList]"}[Symbol.iterator](){return this[X][Symbol.iterator]()}getTrackById(t){for(let e of this[X])if(e.id===t)return e;return null}};g();var Rh=class extends Ot{[Bw]="disconnected";onconnecting=null;onconnect=null;ondisconnect=null;get state(){return this[Bw]}async watchAvailability(){}cancelWatchAvailability(){}prompt(){}};g();var m0=e(p0(),1);g();var Gx;(function(o){o[o.empty=0]="empty",o[o.loading=1]="loading",o[o.done=2]="done";})(Gx||(Gx={}));var Ql=Gx;g();var Ux;(function(o){o.buffer="buffer",o.binaryString="binaryString",o.dataURL="dataURL",o.text="text";})(Ux||(Ux={}));var Jl=Ux;g();var Wx;(function(o){o.abort="abort",o.error="error",o.load="load",o.loadstart="loadstart",o.loadend="loadend",o.progress="progress";})(Wx||(Wx={}));var Bc=Wx;var Dh=class extends Ot{error=null;result=null;readyState=Ql.empty;onabort=null;onerror=null;onload=null;onloadstart=null;onloadend=null;onprogress=null;#t=false;#e=null;#r=null;constructor(){if(super(),!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}readAsArrayBuffer(t){if(!(t instanceof we))throw new this[m].TypeError("Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#o(t,Jl.buffer);}readAsBinaryString(t){if(!(t instanceof we))throw new this[m].TypeError("Failed to execute 'readAsBinaryString' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#o(t,Jl.binaryString);}readAsDataURL(t){if(!(t instanceof we))throw new this[m].TypeError("Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#o(t,Jl.dataURL);}readAsText(t,e=null){if(!(t instanceof we))throw new this[m].TypeError("Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#o(t,Jl.text,e||"UTF-8");}abort(){let t=this[m];if(this.#e&&t.clearTimeout(this.#e),this.#r&&t.clearTimeout(this.#r),this.readyState===Ql.empty||this.readyState===Ql.done){this.result=null;return}this.readyState===Ql.loading&&(this.readyState=Ql.done,this.result=null),this.#t=true,this.dispatchEvent(new on(Bc.abort)),this.dispatchEvent(new on(Bc.loadend));}#o(t,e,r=null){let n=this[m];if(this.readyState===Ql.loading)throw new n.DOMException("The object is in an invalid state.",k.invalidStateError);this.readyState=Ql.loading,this.#e=n.setTimeout(()=>{if(this.#t){this.#t=false;return}this.dispatchEvent(new on(Bc.loadstart));let i=t[Mt];i||(i=Buffer$1.alloc(0)),this.dispatchEvent(new on(Bc.loadstart,{lengthComputable:!isNaN(t.size),total:t.size,loaded:i.length})),this.#r=n.setTimeout(()=>{if(this.#t){this.#t=false;return}switch(e){default:case Jl.buffer:{this.result=new Uint8Array(i).buffer;break}case Jl.binaryString:{this.result=i.toString("binary");break}case Jl.dataURL:{let s=m0.default.parse(t.type)||"application/octet-stream";this.result=`data:${s};base64,${i.toString("base64")}`;break}case Jl.text:{this.result=new TextDecoder(r||"UTF-8").decode(i);break}}this.readyState=Ql.done,this.dispatchEvent(new on(Bc.load)),this.dispatchEvent(new on(Bc.loadend));});});}};g();var $F={aspectRatio:{max:300,min:.006666666666666667},deviceId:"",facingMode:[],frameRate:{max:60,min:0},height:{max:150,min:1},resizeMode:["none","crop-and-scale"],width:{max:300,min:1}},KF={deviceId:"",frameRate:60,resizeMode:"none"},xu=class extends Ot{contentHint="";enabled=true;id=SR.randomUUID();muted=false;readyState="live";label="";[Pl]="";[fn]="video";[vp]={};[Ni]=JSON.parse(JSON.stringify($F));[ka]=JSON.parse(JSON.stringify(KF));onended=null;onmute=null;onunmute=null;constructor(t){if(super(),t!==b)throw new TypeError("Illegal constructor");if(!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[fn]}async applyConstraints(t){this.#t(this[vp],t);}getConstraints(){return this[vp]}getCapabilities(){return this[Ni]}getSettings(){return this[ka]}clone(){let t=new this.constructor(b);return t[fn]=this[fn],t[vp]=this[vp],t[Ni]=this[Ni],t[ka]=this[ka],t.contentHint=this.contentHint,t.enabled=this.enabled,t.label=this.label,t.muted=this.muted,t.readyState=this.readyState,t}stop(){this.readyState="ended";}#t(t,e){for(let r in e)e[r]!==null&&typeof e[r]=="object"&&!Array.isArray(e[r])?(typeof t[r]!="object"&&(t[r]={}),this.#t(t[r],e[r])):t[r]=e[r];}};g();var Df=class extends xu{[ls];constructor(t,e){super(t),this[ls]=e;}get canvas(){return this[ls]}requestFrame(){}clone(){let t=super.clone();return t[ls]=this.canvas,t}};g();g();var zx;(function(o){o[o.connecting=0]="connecting",o[o.open=1]="open",o[o.closing=2]="closing",o[o.closed=3]="closed";})(zx||(zx={}));var un=zx;var jF=/^[!#$%&'*+\-.^_`|~\dA-Za-z]+$/,Oh=class extends Ot{static CONNECTING=un.connecting;static OPEN=un.open;static CLOSING=un.closing;static CLOSED=un.closed;#t=un.closed;#e="";#r="blob";#o=null;#n;[to]=null;constructor(t,e){super();let r=this[m],n;try{n=new URL(t);}catch{throw new r.DOMException(`The URL '${t}' is invalid.`,k.syntaxError)}if(n.protocol!=="ws:"&&n.protocol!=="wss:")throw new r.DOMException(`The URL's protocol must be either 'ws' or 'wss'. '${n.protocol}' is not allowed.`,k.syntaxError);n.hash&&(n.hash="");let i=new Set,s=e!==void 0?Array.isArray(e)?e:[e]:[];for(let l of s){if(!this.#m(l))throw new r.DOMException(`The subprotocol '${l}' is invalid.`,k.syntaxError);if(i.has(l))throw new r.DOMException(`The subprotocol '${l}' is duplicated.`,k.syntaxError);i.add(l);}this.#n=n,this.#i(n,s);}get readyState(){return this.#t}get extensions(){return this.#e}get binaryType(){return this.#r}set binaryType(t){t!=="blob"&&t!=="arraybuffer"||(this.#r=t);}get protocol(){return this[to]?.protocol||""}get url(){return this.#n.href}close(t,e){let r=this[m];if(t!==void 0&&t!==1e3&&!(t>=3e3&&t<=4999))throw new r.DOMException(`The code must be either 1000, or between 3000 and 4999. ${t} is neither.`,k.invalidAccessError);if(e!==void 0&&Buffer.byteLength(e,"utf8")>123)throw new r.DOMException("The message must not be greater than 123 bytes.",k.syntaxError);this.#l(t,e?Buffer.from(e):void 0);}send(t){let e=this[m];if(this.#t===un.connecting)throw new e.DOMException("Still in CONNECTING state.",k.invalidStateError);if(this.#t!==un.open)return;if(typeof t=="string"){this[to]?.send(t,{binary:false});return}let r;t instanceof ArrayBuffer?r=Buffer.from(new Uint8Array(t)):t instanceof we?r=t[Mt]:t instanceof Buffer?r=t:ArrayBuffer.isView(t)?r=Buffer.from(new Uint8Array(t.buffer,t.byteOffset,t.byteLength)):r=Buffer.from(String(t)),this[to]?.send(r,{binary:true});}[It](){super[It](),this.#l(1001);}#i(t,e){let r=this[m],n=new rt(r).getBrowserContext();if(!n)return;let i=new URL(r.location.href),s=n.cookieContainer.getCookies(i,false);this.#t=un.connecting,this[to]=new c$1(t,e,{headers:{"user-agent":r.navigator.userAgent,cookie:On.cookiesToString(s),origin:i.origin},rejectUnauthorized:!n.browser.settings.fetch.disableStrictSSL}),this[to].once("open",()=>{this.#u();}),this[to].on("message",this.#c.bind(this)),this[to].once("close",(l,a)=>{this.#a(l,a);}),this[to].once("upgrade",({headers:l})=>{if(l["set-cookie"]!==void 0){let a=Array.isArray(l["set-cookie"])?l["set-cookie"]:[l["set-cookie"]];for(let u of a){let c=On.stringToCookie(i,u);c&&n.cookieContainer.addCookies([c]);}}}),this[to].once("error",l=>{this.#o=l;}),r[Ba].push(this);}#l(t,e){this.readyState===un.connecting?this[to]?this[to].terminate():this.#t=un.closing:this[to]&&this.readyState===un.open&&this[to].close(t,e),this[to]=null;}#u(){this[to]?.extensions&&(this.#e=Object.keys(this[to].extensions).join(", ")),this.#t=un.open,this.dispatchEvent(new this[m].Event("open"));}#a(t,e){let r=this[m],n=r[Ba].indexOf(this);n!==-1&&r[Ba].splice(n,1),this.#t=un.closed,this.dispatchEvent(new this[m].CloseEvent("close",{wasClean:this.#o===null,code:t,reason:e.toString()}));}#c(t,e){if(this.#t!==un.open)return;let r=this[m],n;e?this.binaryType==="arraybuffer"?t instanceof r.ArrayBuffer?n=t:Array.isArray(t)?n=this.#p(Buffer.concat(t)):n=this.#p(t):(Array.isArray(t)||(t=[t]),n=new r.Blob(t)):n=String(t),this.dispatchEvent(new r.MessageEvent("message",{data:n,origin:this.#n.origin}));}#p(t){let e=this[m],r=new e.ArrayBuffer(t.byteLength);return new Uint8Array(r).set(t),r}#m(t){return jF.test(t)}};g();var Fh=class{[$t];[V];[B];constructor(t,e,r){if(arguments.length<2)throw new this[m].TypeError(`Failed to construct 'ImageData': 2 arguments required, but only ${arguments.length} present.`);if(t instanceof Uint8ClampedArray){if(typeof e!="number")throw new this[m].TypeError("Failed to construct 'ImageData': The width argument must be a number.");if(r!==void 0&&typeof r!="number")throw new this[m].TypeError("Failed to construct 'ImageData': The height argument must be a number.");this[$t]=t,this[V]=e,this[B]=r!==void 0?r:t.length/(e*4);}else {if(typeof e!="number")throw new this[m].TypeError("Failed to construct 'ImageData': The height argument must be a number.");this[$t]=new Uint8ClampedArray(new Array(t*e*4).fill(0)),this[V]=t,this[B]=e;}}get data(){return this[$t]}get width(){return this[V]}get height(){return this[B]}};g();var Bh={a:1,b:0,c:0,d:1,e:0,f:0,m11:1,m12:0,m13:0,m14:0,m21:0,m22:1,m23:0,m24:0,m31:0,m32:0,m33:1,m34:0,m41:0,m42:0,m43:0,m44:1,is2D:true,isIdentity:true},qF=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,YF=/[\s,]+/,Vc=class o{[Wt]=1;[qt]=0;[pe]=0;[me]=0;[zt]=0;[Yt]=1;[he]=0;[ye]=0;[ee]=0;[se]=0;[le]=1;[re]=0;[_t]=0;[Qt]=0;[ae]=0;[ue]=1;constructor(t){t&&this[kp](t);}get a(){return this[Wt]}get b(){return this[qt]}get c(){return this[zt]}get d(){return this[Yt]}get e(){return this[_t]}get f(){return this[Qt]}get m11(){return this[Wt]}get m12(){return this[qt]}get m13(){return this[pe]}get m14(){return this[me]}get m21(){return this[zt]}get m22(){return this[Yt]}get m23(){return this[he]}get m24(){return this[ye]}get m31(){return this[ee]}get m32(){return this[se]}get m33(){return this[le]}get m34(){return this[re]}get m41(){return this[_t]}get m42(){return this[Qt]}get m43(){return this[ae]}get m44(){return this[ue]}get isIdentity(){return this[Wt]===1&&this[qt]===0&&this[pe]===0&&this[me]===0&&this[zt]===0&&this[Yt]===1&&this[he]===0&&this[ye]===0&&this[ee]===0&&this[se]===0&&this[le]===1&&this[re]===0&&this[_t]===0&&this[Qt]===0&&this[ae]===0&&this[ue]===1}get is2D(){return this[ee]===0&&this[se]===0&&this[le]===1&&this[re]===0&&this[ae]===0&&this[ue]===1}toFloat32Array(t){return Float32Array.from(this[cd](t))}toFloat64Array(t){return Float64Array.from(this[cd](t))}toString(){let t=this.is2D,e=this[cd](t).join(", ");return `${t?"matrix":"matrix3d"}(${e})`}toJSON(){let{is2D:t,isIdentity:e}=this;return {m11:this[Wt],m12:this[qt],m13:this[pe],m14:this[me],m21:this[zt],m22:this[Yt],m23:this[he],m24:this[ye],m31:this[ee],m32:this[se],m33:this[le],m34:this[re],m41:this[_t],m42:this[Qt],m43:this[ae],m44:this[ue],a:this[Wt],b:this[qt],c:this[zt],d:this[Yt],e:this[_t],f:this[Qt],is2D:t,isIdentity:e}}multiply(t){let e=new this.constructor(this);return t&&e[Yo](t),e}translate(t=0,e=0,r=0){let n=new this.constructor(this);return n[gn](t,e,r),n}scale(t,e,r=1,n=0,i=0,s=0){let l=new this.constructor(this);return l[ws](t,e,r,n,i,s),l}scale3d(t=1,e=0,r=0,n=0){let i=new this.constructor(this);return i[pd](t,e,r,n),i}scaleNonUniform(t=1,e=1){let r=new this.constructor(this);return r[md](t,e),r}rotateAxisAngle(t=0,e=0,r=0,n=0){let i=new this.constructor(this);return i[xl](t,e,r,n),i}rotate(t=0,e,r){let n=new this.constructor(this);return n[wl](t,e,r),n}rotateFromVector(t=0,e=0){let r=new this.constructor(this);return r[jd](t,e),r}skewX(t){let e=new this.constructor(this);return e[nc](t),e}skewY(t){let e=new this.constructor(this);return e[ic](t),e}flipX(){let t=new this.constructor(this);return t[qd](),t}flipY(){let t=new this.constructor(this);return t[Yd](),t}inverse(){let t=new this.constructor(this);return t[Qd](),t}transformPoint(t){let e=t?.x??0,r=t?.y??0,n=t?.z??0,i=t?.w??1,s=this[Wt]*e+this[zt]*r+this[ee]*n+this[_t]*i,l=this[qt]*e+this[Yt]*r+this[se]*n+this[Qt]*i,a=this[pe]*e+this[he]*r+this[le]*n+this[ae]*i,u=this[me]*e+this[ye]*r+this[re]*n+this[ue]*i;return new this[m].DOMPoint(s,l,a,u)}[kp](t){let e=null;if(typeof t=="string"&&t.length&&t!=="none")e=this.constructor[oc](t);else if(Array.isArray(t)||t instanceof Float64Array||t instanceof Float32Array)e=this.constructor[bn](t);else if(typeof t=="object")e=this.constructor.fromMatrix(t);else return;this[Wt]=e[Wt],this[qt]=e[qt],this[pe]=e[pe],this[me]=e[me],this[zt]=e[zt],this[Yt]=e[Yt],this[he]=e[he],this[ye]=e[ye],this[ee]=e[ee],this[se]=e[se],this[le]=e[le],this[re]=e[re],this[_t]=e[_t],this[Qt]=e[Qt],this[ae]=e[ae],this[ue]=e[ue];}[Yo](t){if(!t)return;let e=t;e instanceof o||(e?.m11===void 0&&e?.a!==void 0?(e=Object.assign({},Bh,e),e.m11=e.a,e.m12=e.b,e.m21=e.c,e.m22=e.d,e.m41=e.e,e.m42=e.f):e=Object.assign({},Bh,e));let r=this[Wt]*e.m11+this[zt]*e.m12+this[ee]*e.m13+this[_t]*e.m14,n=this[Wt]*e.m21+this[zt]*e.m22+this[ee]*e.m23+this[_t]*e.m24,i=this[Wt]*e.m31+this[zt]*e.m32+this[ee]*e.m33+this[_t]*e.m34,s=this[Wt]*e.m41+this[zt]*e.m42+this[ee]*e.m43+this[_t]*e.m44,l=this[qt]*e.m11+this[Yt]*e.m12+this[se]*e.m13+this[Qt]*e.m14,a=this[qt]*e.m21+this[Yt]*e.m22+this[se]*e.m23+this[Qt]*e.m24,u=this[qt]*e.m31+this[Yt]*e.m32+this[se]*e.m33+this[Qt]*e.m34,c=this[qt]*e.m41+this[Yt]*e.m42+this[se]*e.m43+this[Qt]*e.m44,h=this[pe]*e.m11+this[he]*e.m12+this[le]*e.m13+this[ae]*e.m14,f=this[pe]*e.m21+this[he]*e.m22+this[le]*e.m23+this[ae]*e.m24,d=this[pe]*e.m31+this[he]*e.m32+this[le]*e.m33+this[ae]*e.m34,g=this[pe]*e.m41+this[he]*e.m42+this[le]*e.m43+this[ae]*e.m44,A=this[me]*e.m11+this[ye]*e.m12+this[re]*e.m13+this[ue]*e.m14,w=this[me]*e.m21+this[ye]*e.m22+this[re]*e.m23+this[ue]*e.m24,T=this[me]*e.m31+this[ye]*e.m32+this[re]*e.m33+this[ue]*e.m34,G=this[me]*e.m41+this[ye]*e.m42+this[re]*e.m43+this[ue]*e.m44;this[Wt]=r,this[qt]=l,this[pe]=h,this[me]=A,this[zt]=n,this[Yt]=a,this[he]=f,this[ye]=w,this[ee]=i,this[se]=u,this[le]=d,this[re]=T,this[_t]=s,this[Qt]=c,this[ae]=g,this[ue]=G;}[gn](t=0,e=0,r=0){let n=this.constructor[bn]([1,0,0,0,0,1,0,0,0,0,1,0,t,e,r,1]);this[Yo](n);}[ws](t,e,r=1,n=0,i=0,s=0){t=t===void 0?1:Number(t),e=e===void 0?t:Number(e),(n!==0||i!==0||s!==0)&&this[gn](n,i,s),(t!==1||e!==1||r!==1)&&this[Yo](this.constructor[bn]([t,0,0,0,0,e,0,0,0,0,r,0,0,0,0,1])),(n!==0||i!==0||s!==0)&&this[gn](-n,-i,-s);}[pd](t=1,e=0,r=0,n=0){(e!==0||r!==0||n!==0)&&this[gn](e,r,n),t!==1&&this[Yo](this.constructor[bn]([t,0,0,0,0,t,0,0,0,0,t,0,0,0,0,1])),(e!==0||r!==0||n!==0)&&this[gn](-e,-r,-n);}[md](t=1,e=1){t===1&&e===1||this[Yo](this.constructor[bn]([t,0,0,0,0,e,0,0,0,0,1,0,0,0,0,1]));}[xl](t=0,e=0,r=0,n=0){if(t=Number(t),e=Number(e),r=Number(r),n=Number(n),isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw new this[m].TypeError("Failed to execute 'rotateAxisAngleSelf' on 'DOMMatrix': The arguments must be numbers.");let i=Math.hypot(t,e,r);if(i===0)return;i!==1&&(t/=i,e/=i,r/=i);let s=-(n*Math.PI/360),l=this.#t,a=Math.sin(s)*Math.cos(s),u=Math.sin(s)*Math.sin(s),c=l(1-2*(e*e+r*r)*u),h=l(2*(t*e*u+r*a)),f=l(2*(t*r*u-e*a)),d=l(2*(t*e*u-r*a)),g=l(1-2*(t*t+r*r)*u),A=l(2*(e*r*u+t*a)),w=l(2*(t*r*u+e*a)),T=l(2*(e*r*u-t*a)),G=l(1-2*(t*t+e*e)*u),J=this.constructor[bn]([c,d,w,0,h,g,T,0,f,A,G,0,0,0,0,1]);this[Yo](J);}[wl](t=0,e,r){if(e===void 0&&r===void 0&&(r=t,t=0,e=0),e===void 0&&(e=0),r===void 0&&(r=0),t=Number(t),e=Number(e),r=Number(r),isNaN(t)||isNaN(e)||isNaN(r))throw new this[m].TypeError("Failed to execute 'rotateSelf' on 'DOMMatrix': The arguments must be numbers.");r!==0&&this[xl](0,0,1,r),e!==0&&this[xl](0,1,0,e),t!==0&&this[xl](1,0,0,t);}[jd](t=0,e=0){t===0&&e===0||this[wl](Math.atan2(e,t)*180/Math.PI);}[nc](t){let e=Object.assign({},Bh),r=Math.tan(t*Math.PI/180);e.m21=r,e.c=r,this[Yo](e);}[ic](t){let e=Object.assign({},Bh),r=Math.tan(t*Math.PI/180);e.m12=r,e.b=r,this[Yo](e);}[qd](){let t=this.constructor[bn]([-1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);this[Yo](t);}[Yd](){let t=this.constructor[bn]([1,0,0,0,0,-1,0,0,0,0,1,0,0,0,0,1]);this[Yo](t);}[Qd](){let t=this[Yt]*this[le]*this[ue]-this[Yt]*this[re]*this[ae]-this[se]*this[he]*this[ue]+this[se]*this[ye]*this[ae]+this[Qt]*this[he]*this[re]-this[Qt]*this[ye]*this[le],e=-this[qt]*this[le]*this[ue]+this[qt]*this[re]*this[ae]+this[se]*this[pe]*this[ue]-this[se]*this[me]*this[ae]-this[Qt]*this[pe]*this[re]+this[Qt]*this[me]*this[le],r=this[qt]*this[he]*this[ue]-this[qt]*this[ye]*this[ae]-this[Yt]*this[pe]*this[ue]+this[Yt]*this[me]*this[ae]+this[Qt]*this[pe]*this[ye]-this[Qt]*this[me]*this[he],n=-this[qt]*this[he]*this[re]+this[qt]*this[ye]*this[le]+this[Yt]*this[pe]*this[re]-this[Yt]*this[me]*this[le]-this[se]*this[pe]*this[ye]+this[se]*this[me]*this[he],i=this[Wt]*t+this[zt]*e+this[ee]*r+this[_t]*n;if(i===0){this[Wt]=NaN,this[qt]=NaN,this[pe]=NaN,this[me]=NaN,this[zt]=NaN,this[Yt]=NaN,this[he]=NaN,this[ye]=NaN,this[ee]=NaN,this[se]=NaN,this[le]=NaN,this[re]=NaN,this[_t]=NaN,this[Qt]=NaN,this[ae]=NaN,this[ue]=NaN;return}let s=-this[zt]*this[le]*this[ue]+this[zt]*this[re]*this[ae]+this[ee]*this[he]*this[ue]-this[ee]*this[ye]*this[ae]-this[_t]*this[he]*this[re]+this[_t]*this[ye]*this[le],l=this[Wt]*this[le]*this[ue]-this[Wt]*this[re]*this[ae]-this[ee]*this[pe]*this[ue]+this[ee]*this[me]*this[ae]+this[_t]*this[pe]*this[re]-this[_t]*this[me]*this[le],a=-this[Wt]*this[he]*this[ue]+this[Wt]*this[ye]*this[ae]+this[zt]*this[pe]*this[ue]-this[zt]*this[me]*this[ae]-this[_t]*this[pe]*this[ye]+this[_t]*this[me]*this[he],u=this[Wt]*this[he]*this[re]-this[Wt]*this[ye]*this[le]-this[zt]*this[pe]*this[re]+this[zt]*this[me]*this[le]+this[ee]*this[pe]*this[ye]-this[ee]*this[me]*this[he],c=this[zt]*this[se]*this[ue]-this[zt]*this[re]*this[Qt]-this[ee]*this[Yt]*this[ue]+this[ee]*this[ye]*this[Qt]+this[_t]*this[Yt]*this[re]-this[_t]*this[ye]*this[se],h=-this[Wt]*this[se]*this[ue]+this[Wt]*this[re]*this[Qt]+this[ee]*this[qt]*this[ue]-this[ee]*this[me]*this[Qt]-this[_t]*this[qt]*this[re]+this[_t]*this[me]*this[se],f=this[Wt]*this[Yt]*this[ue]-this[Wt]*this[ye]*this[Qt]-this[zt]*this[qt]*this[ue]+this[zt]*this[me]*this[Qt]+this[_t]*this[qt]*this[ye]-this[_t]*this[me]*this[Yt],d=-this[Wt]*this[Yt]*this[re]+this[Wt]*this[ye]*this[se]+this[zt]*this[qt]*this[re]-this[zt]*this[me]*this[se]-this[ee]*this[qt]*this[ye]+this[ee]*this[me]*this[Yt],g=-this[zt]*this[se]*this[ae]+this[zt]*this[le]*this[Qt]+this[ee]*this[Yt]*this[ae]-this[ee]*this[he]*this[Qt]-this[_t]*this[Yt]*this[le]+this[_t]*this[he]*this[se],A=this[Wt]*this[se]*this[ae]-this[Wt]*this[le]*this[Qt]-this[ee]*this[qt]*this[ae]+this[ee]*this[pe]*this[Qt]+this[_t]*this[qt]*this[le]-this[_t]*this[pe]*this[se],w=-this[Wt]*this[Yt]*this[ae]+this[Wt]*this[he]*this[Qt]+this[zt]*this[qt]*this[ae]-this[zt]*this[pe]*this[Qt]-this[_t]*this[qt]*this[he]+this[_t]*this[pe]*this[Yt],T=this[Wt]*this[Yt]*this[le]-this[Wt]*this[he]*this[se]-this[zt]*this[qt]*this[le]+this[zt]*this[pe]*this[se]+this[ee]*this[qt]*this[he]-this[ee]*this[pe]*this[Yt];this[Wt]=t/i||0,this[qt]=e/i||0,this[pe]=r/i||0,this[me]=n/i||0,this[zt]=s/i||0,this[Yt]=l/i||0,this[he]=a/i||0,this[ye]=u/i||0,this[ee]=c/i||0,this[se]=h/i||0,this[le]=f/i||0,this[re]=d/i||0,this[_t]=g/i||0,this[Qt]=A/i||0,this[ae]=w/i||0,this[ue]=T/i||0;}[cd](t=false){return t?[this[Wt],this[qt],this[zt],this[Yt],this[_t],this[Qt]]:[this[Wt],this[qt],this[pe],this[me],this[zt],this[Yt],this[he],this[ye],this[ee],this[se],this[le],this[re],this[_t],this[Qt],this[ae],this[ue]]}#t(t,e=1e15){return Math.round(t*e)/e}static fromMatrix(t){return t instanceof o||(t?.m11===void 0&&t?.a!==void 0?(t=Object.assign({},Bh,t),t.m11=t.a,t.m12=t.b,t.m21=t.c,t.m22=t.d,t.m41=t.e,t.m42=t.f):t=Object.assign({},Bh,t)),this[bn]([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[bn](t)}static fromFloat64Array(t){return this[bn](t)}static[bn](t){if(!(t instanceof Float64Array||t instanceof Float32Array||Array.isArray(t))||t.length!==6&&t.length!==16)throw TypeError(`Failed to execute 'fromArray' on '${this.name}': '${String(t)}' is not a compatible array.`);let e=new this;if(t.length===16){let[r,n,i,s,l,a,u,c,h,f,d,g,A,w,T,G]=t;e[Wt]=r,e[qt]=n,e[pe]=i,e[me]=s,e[zt]=l,e[Yt]=a,e[he]=u,e[ye]=c,e[ee]=h,e[se]=f,e[le]=d,e[re]=g,e[_t]=A,e[Qt]=w,e[ae]=T,e[ue]=G;}else if(t.length===6){let[r,n,i,s,l,a]=t;e[Wt]=r,e[qt]=n,e[zt]=i,e[Yt]=s,e[_t]=l,e[Qt]=a;}return e}static[oc](t){if(typeof t!="string")throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Expected '${String(t)}' to be a string.`);let e=new this,r=new RegExp(qF),n;for(;n=r.exec(t);){let i=n[1],s=n[2].split(YF);for(let h=0,f=s.length;h<f;h++)s[h]=this[Hw](s[h]);let[l,a,u,c]=s;switch(i){case "perspective":!isNaN(l)&&l!==0&&a===void 0&&u===void 0&&(e[re]=-1/l);break;case "translate":!isNaN(l)&&u===void 0&&e[gn](l,a||0,0);break;case "translate3d":!isNaN(l)&&!isNaN(a)&&!isNaN(u)&&e[gn](l,a,u);break;case "translateX":!isNaN(l)&&a===void 0&&u===void 0&&e[gn](l);break;case "translateY":!isNaN(l)&&a===void 0&&u===void 0&&e[gn](0,l);break;case "translateZ":!isNaN(l)&&a===void 0&&u===void 0&&e[gn](0,0,l);break;case "matrix":case "matrix3d":(s.length===6||s.length===16)&&e[kp](this[bn](s));break;case "rotate":case "rotateZ":!isNaN(l)&&a===void 0&&u===void 0&&e[wl](0,0,l);break;case "rotateX":!isNaN(l)&&a===void 0&&u===void 0&&e[wl](l,0,0);break;case "rotateY":!isNaN(l)&&a===void 0&&u===void 0&&e[wl](0,l,0);case "rotate3d":!isNaN(l)&&!isNaN(a)&&!isNaN(u)&&!isNaN(c)&&e[xl](l,a,u,c);break;case "scale":!isNaN(l)&&l!==1&&u===void 0&&e[ws](l,isNaN(a)?l:a);break;case "scale3d":!isNaN(l)&&!isNaN(a)&&!isNaN(u)&&e[ws](l,a,u);break;case "scaleX":!isNaN(l)&&a===void 0&&u===void 0&&e[ws](l,1,1);break;case "scaleY":!isNaN(l)&&a===void 0&&u===void 0&&e[ws](1,l,1);break;case "scaleZ":!isNaN(l)&&a===void 0&&u===void 0&&e[ws](1,1,l);break;case "skew":isNaN(l)||e[nc](l),isNaN(a)||e[ic](a);break;case "skewX":!isNaN(l)&&a===void 0&&e[nc](l);break;case "skewY":!isNaN(l)&&a===void 0&&e[ic](l);break;default:throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Unknown transform function '${n[1]}'.`)}}return e}static[Hw](t){let e=parseFloat(t);switch(t.replace(e.toString(),"")){case "rem":case "em":case "vw":case "vh":case "%":case "vmin":case "vmax":throw new SyntaxError(`Failed to construct '${this.name}': Lengths must be absolute, not relative`);case "rad":return e*(180/Math.PI);case "turn":return e*360;case "px":return e;case "cm":return e*37.7812;case "mm":return e*3.7781;case "in":return e*96;case "pt":return e*1.3281;case "pc":return e*16;case "Q":return e*.945;default:return e}}};g();var Xl=class extends Vc{get a(){return this[Wt]}set a(t){this[Wt]=t;}get b(){return this[qt]}set b(t){this[qt]=t;}get c(){return this[zt]}set c(t){this[zt]=t;}get d(){return this[Yt]}set d(t){this[Yt]=t;}get e(){return this[_t]}set e(t){this[_t]=t;}get f(){return this[Qt]}set f(t){this[Qt]=t;}get m11(){return this[Wt]}set m11(t){this[Wt]=t;}get m12(){return this[qt]}set m12(t){this[qt]=t;}get m13(){return this[pe]}set m13(t){this[pe]=t;}get m14(){return this[me]}set m14(t){this[me]=t;}get m21(){return this[zt]}set m21(t){this[zt]=t;}get m22(){return this[Yt]}set m22(t){this[Yt]=t;}get m23(){return this[he]}set m23(t){this[he]=t;}get m24(){return this[ye]}set m24(t){this[ye]=t;}get m31(){return this[ee]}set m31(t){this[ee]=t;}get m32(){return this[se]}set m32(t){this[se]=t;}get m33(){return this[le]}set m33(t){this[le]=t;}get m34(){return this[re]}set m34(t){this[re]=t;}get m41(){return this[_t]}set m41(t){this[_t]=t;}get m42(){return this[Qt]}set m42(t){this[Qt]=t;}get m43(){return this[ae]}set m43(t){this[ae]=t;}get m44(){return this[ue]}set m44(t){this[ue]=t;}setMatrixValue(t){return this[kp](t),this}multiplySelf(t){return this[Yo](t),this}translateSelf(t=0,e=0,r=0){return this[gn](t,e,r),this}scaleSelf(t,e,r=1,n=0,i=0,s=0){return this[ws](t,e,r,n,i,s),this}scale3dSelf(t=1,e=0,r=0,n=0){return this[pd](t,e,r,n),this}scaleNonUniformSelf(t=1,e=1){return this[md](t,e),this}rotateAxisAngleSelf(t=0,e=0,r=0,n=0){return this[xl](t,e,r,n),this}rotateSelf(t=0,e,r){return this[wl](t,e,r),this}rotateFromVectorSelf(t=0,e=0){return this[jd](t,e),this}skewXSelf(t){return this[nc](t),this}skewYSelf(t){return this[ic](t),this}flipXSelf(){return this[qd](),this}flipYSelf(){return this[Yd](),this}invertSelf(){return this[Qd](),this}preMultiplySelf(t){return this[Yo](t),this}};g();var Hc=class{[D]=0;[O]=0;[mo]=0;[rc]=1;constructor(t,e,r,n){this[D]=t!=null?Number(t):0,this[O]=e!=null?Number(e):0,this[mo]=r!=null?Number(r):0,this[rc]=n!=null?Number(n):1;}get x(){return this[D]}get y(){return this[O]}get z(){return this[mo]}get w(){return this[rc]}toJSON(){return {x:this.x,y:this.y,z:this.z,w:this.w}}static fromPoint(t){return t?new this(t.x??null,t.y??null,t.z??null,t.w??null):new this}matrixTransform(t){let e=new this[m].DOMMatrixReadOnly(t),r=this.x*e.m11+this.y*e.m21+this.z*e.m31+this.w*e.m41,n=this.x*e.m12+this.y*e.m22+this.z*e.m32+this.w*e.m42,i=this.x*e.m13+this.y*e.m23+this.z*e.m33+this.w*e.m43,s=this.x*e.m14+this.y*e.m24+this.z*e.m34+this.w*e.m44;return new this.constructor(r,n,i,s)}};g();var Of=class extends Hc{set x(t){this[D]=t;}get x(){return this[D]}set y(t){this[O]=t;}get y(){return this[O]}set z(t){this[mo]=t;}get z(){return this[mo]}set w(t){this[rc]=t;}get w(){return this[rc]}};var Ff=class{static extendClasses(t){class e extends _s{}e.prototype[m]=t,t.Document=e;class r extends dh{}r.prototype[m]=t,t.HTMLDocument=r;class n extends fh{}n.prototype[m]=t,t.XMLDocument=n;class i extends fu{}i.prototype[m]=t,t.DocumentFragment=i;class s extends bh{}s.prototype[m]=t,t.Text=s;class l extends gh{}l.prototype[m]=t,t.Comment=l;class a extends Sh{}a.prototype[m]=t,t.Image=a;class u extends Cf{}u.prototype[m]=t,t.Audio=u;class c extends Ph{}c.prototype[m]=t,t.MutationObserver=c;class h extends Nf{}h.prototype[m]=t,t.MessagePort=h;class f extends wh{}f.prototype[m]=t,t.CSSStyleSheet=f;class d extends de{}t.DOMException=d;class g extends Oi{}g.prototype[m]=t,t.Headers=g;class A extends iu{}A.prototype[m]=t,t.Request=A;class w extends nn{}w.prototype[m]=t,w[m]=t,t.Response=w;class T extends Ot{}T.prototype[m]=t,t.EventTarget=T;class G extends Lf{}G.prototype[m]=t,t.XMLHttpRequestUpload=G;class J extends Yl{}J.prototype[m]=t,t.XMLHttpRequestEventTarget=J;class W extends xh{}W.prototype[m]=t,t.AbortController=W;class q extends Eh{}q.prototype[m]=t,q[m]=t,t.AbortSignal=q;class ut extends ou{}ut.prototype[m]=t,t.FormData=ut;class Z extends vh{}Z.prototype[m]=t,t.PermissionStatus=Z;class kt extends Mf{}kt.prototype[m]=t,t.XMLHttpRequest=kt;class Lt extends kh{}Lt.prototype[m]=t,t.DOMParser=Lt;class Ee extends Nh{}Ee.prototype[m]=t,t.Range=Ee;class ir extends Lh{}ir.prototype[m]=t,t.VTTCue=ir;class Br extends Mh{}Br.prototype[m]=t,t.TextTrack=Br;class _e extends Ih{}_e.prototype[m]=t,t.TextTrackList=_e;class sr extends Au{}sr.prototype[m]=t,t.TextTrackCue=sr;class ve extends Rh{}ve.prototype[m]=t,t.RemotePlayback=ve;class zn extends Dh{}zn.prototype[m]=t,t.FileReader=zn;class lg extends au{}lg.prototype[m]=t,t.MediaStream=lg;class hr extends xu{}hr.prototype[m]=t,t.MediaStreamTrack=hr;class mn extends Df{}mn.prototype[m]=t,t.CanvasCaptureMediaStreamTrack=mn;class ca extends He{}ca.prototype[m]=t,t.URL=ca;class ag extends Oh{}ag.prototype[m]=t,t.WebSocket=ag;class qh extends Fh{}qh.prototype[m]=t,t.ImageData=qh;class ug extends Hs{}ug.prototype[m]=t,t.OffscreenCanvas=ug;class cg extends Vc{}cg.prototype[m]=t,t.DOMMatrixReadOnly=cg;class $E extends Xl{}$E.prototype[m]=t,t.DOMMatrix=$E;class KE extends Hc{}KE.prototype[m]=t,t.DOMPointReadOnly=KE;class jE extends Of{}jE.prototype[m]=t,t.DOMPoint=jE;}};g();g();g();var QF=/[\t\f\n\r ,]+/,ji=class o{[m];[L];[C];[et]=false;[$]={items:[],attributeValue:""};constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");if(this[m]=e,this[et]=!!r.readOnly,this[L]=r.getAttribute,this[C]=r.setAttribute,t!==b)throw new TypeError("Illegal constructor");let n=new De(this,[o]);return new Proxy(this,{get:(i,s)=>{if(s==="length"||s==="numberOfItems")return i[Q]().length;if(s in i||typeof s=="symbol")return n.bind(s),i[s];let l=Number(s);if(!isNaN(l))return i[Q]()[l]},set(i,s,l){if(n.bind(s),typeof s=="symbol")return i[s]=l,true;let a=Number(s);return isNaN(a)&&(i[s]=l),true},deleteProperty(i,s){if(typeof s=="symbol")return delete i[s],true;let l=Number(s);return isNaN(l)&&delete i[s],true},ownKeys(i){return Object.keys(i[Q]())},has(i,s){if(s in i)return true;if(typeof s=="symbol")return false;let l=Number(s);return !isNaN(l)&&l>=0&&l<i[Q]().length},defineProperty(i,s,l){return n.preventBinding(s),s in i?(Object.defineProperty(i,s,l),true):false},getOwnPropertyDescriptor(i,s){if(s in i||typeof s=="symbol")return;let l=Number(s),a=i[Q]();if(!isNaN(l)&&a[l])return {value:a[l],writable:false,enumerable:true,configurable:true}}})}get length(){return this[Q]().length}get numberOfItems(){return this[Q]().length}[Symbol.iterator](){return this[Q]().values()}clear(){this[$].attributeValue="",this[$].items=[],this[C]("");}initialize(t){if(this[et])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[C](t),t}getItem(t){let e=this[Q]();return typeof t=="number"||(t=Number(t),t=isNaN(t)?0:t),e[t]?e[t]:null}insertItemBefore(t,e){if(this[et])throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGStringList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertItemBefore' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(t=String(t),!t)return t;let r=this[Q](),n=r.indexOf(t);return n!==-1&&r.splice(n,1),e<0?e=0:e>r.length&&(e=r.length),r.splice(e,0,t),this[C](r.join(" ")),t}replaceItem(t,e){if(this[et])throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGStringList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceItem' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(t=String(t),!t)return this.removeItem(e);let r=this[Q]();e<0?e=0:e>=r.length&&(e=r.length-1);let n=r[e];return r[e]=t,this[C](r.join(" ")),n}removeItem(t){if(this[et])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[Q]();if(t=Number(t),isNaN(t)&&(t=0),t>=e.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${t}) is greater than the maximum bound.`,k.indexSizeError);if(t<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${t}) is negative.`,k.indexSizeError);let r=e[t];return e.splice(t,1),this[C](e.join(" ")),r}appendItem(t){if(this[et])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[Q](),r=e.indexOf(t);return r!==-1&&e.splice(r,1),e.push(t),this[C](e.join(" ")),t}[Q](){let t=this[L]()??"",e=this[$];if(e.attributeValue===t)return e.items;let r=[],n=t.trim();if(n)for(let i of n.split(QF))r.includes(i)||r.push(i);return e.attributeValue=t,e.items=r,r}};g();g();g();g();var JF=/([a-zA-Z0-9]+)\(([^)]+)\)/,XF=/[\s,]+/,Ks=class o{[m];[L]=null;[C]=null;[F]=null;[et]=false;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,r&&(this[et]=!!r.readOnly,this[L]=r.getAttribute||null,this[C]=r.setAttribute||null);}get a(){return this[Qe]().a}set a(t){if(this[et])return;let e=this[Qe]();e.a=t,this[Ur](e);}get b(){return this[Qe]().b}set b(t){if(this[et])return;let e=this[Qe]();e.b=t,this[Ur](e);}get c(){return this[Qe]().c}set c(t){if(this[et])return;let e=this[Qe]();e.c=t,this[Ur](e);}get d(){return this[Qe]().d}set d(t){if(this[et])return;let e=this[Qe]();e.d=t,this[Ur](e);}get e(){return this[Qe]().e}set e(t){if(this[et])return;let e=this[Qe]();e.e=t,this[Ur](e);}get f(){return this[Qe]().f}set f(t){if(this[et])return;let e=this[Qe]();e.f=t,this[Ur](e);}multiply(t){if(!(t instanceof o))throw new this[m].TypeError("Failed to execute 'multiply' on 'SVGMatrix': parameter 1 is not of type 'SVGMatrix'.");let e=this[Qe](),r=new o(b,this[m]);return e.multiplySelf(t[Qe]()),r[Ur](e),r}translate(t=0,e=0){let r=this[Qe](),n=new o(b,this[m]);return r.translateSelf(t,e),n[Ur](r),n}scale(t){let e=this[Qe](),r=new o(b,this[m]);return e.scaleSelf(t),r[Ur](e),r}scaleNonUniform(t=1,e=1){let r=this[Qe](),n=new o(b,this[m]);return r.scaleNonUniformSelf(t,e),n[Ur](r),n}rotate(t){let e=this[Qe](),r=new o(b,this[m]);return e.rotateSelf(t),r[Ur](e),r}rotateFromVector(t=0,e=0){let r=this[Qe](),n=new o(b,this[m]);return r.rotateFromVectorSelf(t,e),n[Ur](r),n}skewX(t){let e=this[Qe](),r=new o(b,this[m]);return e.skewXSelf(t),r[Ur](e),r}skewY(t){let e=this[Qe](),r=new o(b,this[m]);return e.skewYSelf(t),r[Ur](e),r}flipX(){let t=this[Qe](),e=new o(b,this[m]);return t.flipXSelf(),e[Ur](t),e}flipY(){let t=this[Qe](),e=new o(b,this[m]);return t.flipYSelf(),e[Ur](t),e}inverse(){let t=this[Qe](),e=new o(b,this[m]);return t.invertSelf(),e[Ur](t),e}[Qe](){let t=this[L]?this[L]():this[F],e=this[m];if(!t)return new e.DOMMatrix;let r=t.match(JF);if(!r)return new e.DOMMatrix;let n=[];for(let i of r[2].trim().split(XF)){let s=Number(i);if(isNaN(s))throw new e.TypeError(`Failed to parse transform attribute: Expected number, but got "${i}" in "${t}".`);n.push(s);}switch(r[1]){case "matrix":if(n.length!==6)throw new e.TypeError(`Failed to parse transform attribute: Expected 6 parameters in "${t}".`);return Xl[oc](t);case "scale":case "translate":if(n.length!==1&&n.length!==2)throw new e.TypeError(`Failed to parse transform attribute: Expected 1 or 2 parameters in "${t}".`);return Xl[oc](t);case "skewY":case "skewX":if(n.length!==1)throw new e.TypeError(`Failed to parse transform attribute: Expected 1 parameter in "${t}".`);return Xl[oc](t);case "rotate":let i=new e.DOMMatrix;if(n.length!==1&&n.length!==3)throw new e.TypeError(`Failed to parse transform attribute: Expected 1 or 3 parameters in "${t}".`);let[s,l,a]=n;(l||a)&&i.translateSelf(l,a);let u=s*Math.PI/180;return i.multiplySelf(new e.DOMMatrix([Math.cos(u),Math.sin(u),-Math.sin(u),Math.cos(u),0,0])),(l||a)&&i.translateSelf(-l,-a),i;default:throw new this[m].TypeError(`Failed to parse transform attribute: Unknown transformation "${t}".`)}}[Ur](t){this[F]=t.toString().replace(/, /g," "),this[C]&&this[C](this[F]);}};g();var _x;(function(o){o[o.unknown=0]="unknown",o[o.matrix=1]="matrix",o[o.translate=2]="translate",o[o.scale=3]="scale",o[o.rotate=4]="rotate",o[o.skewX=5]="skewX",o[o.skewY=6]="skewY";})(_x||(_x={}));var cn=_x;var h0=/([a-zA-Z0-9]+)\(([^)]+)\)/,ZF=/[\s,]+/,xn=class{static SVG_TRANSFORM_UNKNOWN=cn.unknown;static SVG_TRANSFORM_MATRIX=cn.matrix;static SVG_TRANSFORM_TRANSLATE=cn.translate;static SVG_TRANSFORM_SCALE=cn.scale;static SVG_TRANSFORM_ROTATE=cn.rotate;static SVG_TRANSFORM_SKEWX=cn.skewX;static SVG_TRANSFORM_SKEWY=cn.skewY;[m];[L]=null;[C]=null;[F]=null;[et]=false;[El]=null;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,r&&(this[et]=!!r.readOnly,this[L]=r.getAttribute||null,this[C]=r.setAttribute||null);}get type(){let e=(this[L]?this[L]():this[F])?.match(h0);if(!e)return cn.unknown;switch(e[1]){case "matrix":return cn.matrix;case "translate":return cn.translate;case "rotate":return cn.rotate;case "scale":return cn.scale;case "skewX":return cn.skewX;case "skewY":return cn.skewY}return 0}get angle(){let e=(this[L]?this[L]():this[F])?.match(h0);if(!e)return 0;let r=parseFloat(e[2].trim().split(ZF)[0]);if(isNaN(r))return 0;switch(e[1]){case "rotate":case "skewX":case "skewY":return r}return 0}get matrix(){return this[El]||(this[El]=new Ks(b,this[m],{readOnly:this[et],getAttribute:()=>this[L]?this[L]():this[F],setAttribute:t=>{if(this[F]=t,this[C]){this[C](t);return}}})),this[El]}setMatrix(t){if(!(t instanceof Ks))throw new TypeError('Failed to set the "matrix" property on "SVGTransform": The provided value is not of type "SVGMatrix".');this[et]||(this[El]&&(this[El][L]=null,this[El][C]=null),t[L]=()=>this[L]?this[L]():this[F],t[C]=e=>{if(this[F]=e,this[C]){this[C](e);return}},this[El]=t,t[F]!==this[F]&&(this[F]=t[F],this[C]&&this[C](this[F]||"")));}setTranslate(t,e){if(arguments.length<2)throw new TypeError(`Failed to execute 'setTranslate' on 'SVGTransform': 2 arguments required, but only ${arguments.length} present.`);if(t=Number(t),e=Number(e),isNaN(t)||isNaN(e))throw new TypeError("Failed to execute 'setTranslate' on 'SVGTransform': The provided float value is non-finite.");this[et]||(this[F]=`translate(${t} ${e})`,this[C]&&this[C](this[F]));}setScale(t,e){if(arguments.length<2)throw new TypeError(`Failed to execute 'setScale' on 'SVGTransform': 2 arguments required, but only ${arguments.length} present.`);if(t=Number(t),e=Number(e),isNaN(t)||isNaN(e))throw new TypeError("Failed to execute 'setScale' on 'SVGTransform': The provided float value is non-finite.");this[et]||(this[F]=`scale(${t} ${e})`,this[C]&&this[C](this[F]));}setRotate(t,e,r){if(arguments.length<3)throw new TypeError(`Failed to execute 'setRotate' on 'SVGTransform': 3 arguments required, but only ${arguments.length} present.`);if(t=Number(t),e=Number(e),r=Number(r),isNaN(t)||isNaN(e)||isNaN(r))throw new TypeError("Failed to execute 'setRotate' on 'SVGTransform': The provided float value is non-finite.");this[et]||(this[F]=`rotate(${t} ${e} ${r})`,this[C]&&this[C](this[F]));}setSkewX(t){if(arguments.length<1)throw new TypeError(`Failed to execute 'setSkewX' on 'SVGTransform': 1 arguments required, but only ${arguments.length} present.`);if(t=Number(t),isNaN(t))throw new TypeError("Failed to execute 'setSkewX' on 'SVGTransform': The provided float value is non-finite.");this[et]||(this[F]=`skewX(${t})`,this[C]&&this[C](this[F]));}setSkewY(t){if(arguments.length<1)throw new TypeError(`Failed to execute 'setSkewY' on 'SVGTransform': 1 arguments required, but only ${arguments.length} present.`);if(t=Number(t),isNaN(t))throw new TypeError("Failed to execute 'setSkewY' on 'SVGTransform': The provided float value is non-finite.");this[et]||(this[F]=`skewY(${t})`,this[C]&&this[C](this[F]));}};var tB=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,Zl="matrix(1 0 0 1 0 0)",Eu=class o{[m];[L];[C];[et]=false;[$]={items:[],attributeValue:""};constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[et]=!!r.readOnly,this[L]=r.getAttribute,this[C]=r.setAttribute;let n=new De(this,[o]);return new Proxy(this,{get:(i,s)=>{if(s==="length"||s==="numberOfItems")return i[Q]().length;if(s in i||typeof s=="symbol")return n.bind(s),i[s];let l=Number(s);if(!isNaN(l))return i[Q]()[l]},set(i,s,l){if(n.bind(s),typeof s=="symbol")return i[s]=l,true;let a=Number(s);return isNaN(a)&&(i[s]=l),true},deleteProperty(i,s){if(typeof s=="symbol")return delete i[s],true;let l=Number(s);return isNaN(l)&&delete i[s],true},ownKeys(i){return Object.keys(i[Q]())},has(i,s){if(s in i)return true;if(typeof s=="symbol")return false;let l=Number(s);return !isNaN(l)&&l>=0&&l<i[Q]().length},defineProperty(i,s,l){return n.preventBinding(s),s in i?(Object.defineProperty(i,s,l),true):false},getOwnPropertyDescriptor(i,s){if(s in i||typeof s=="symbol")return;let l=Number(s),a=i[Q]();if(!isNaN(l)&&a[l])return {value:a[l],writable:false,enumerable:true,configurable:true}}})}get length(){return this[Q]().length}get numberOfItems(){return this[Q]().length}[Symbol.iterator](){return this[Q]().values()}clear(){if(this[et])throw new this[m].TypeError("Failed to execute 'clear' on 'SVGTransformList': The object is read-only.");for(let t of this[$].items)t[L]=null,t[C]=null;this[$].items=[],this[$].attributeValue="",this[C]("");}initialize(t){if(this[et])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 xn))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");for(let e of this[$].items)e[L]=null,e[C]=null;return t[L]=()=>t[F],t[C]=()=>{this[$].attributeValue=this[Q]().map(e=>e[F]||Zl).join(" "),this[C](this[$].attributeValue);},this[$].items=[t],this[$].attributeValue=t[F],this[C](t[F]||""),t}getItem(t){let e=this[Q]();return typeof t=="number"||(t=Number(t),t=isNaN(t)?0:t),e[t]?e[t]:null}insertItemBefore(t,e){if(this[et])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 xn))throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let r=this[Q](),n=r.indexOf(t);return n!==-1&&r.splice(n,1),e<0?e=0:e>r.length&&(e=r.length),r.splice(e,0,t),t[L]=()=>t[F],t[C]=()=>{this[$].attributeValue=this[Q]().map(i=>i[F]||Zl).join(" "),this[C](this[$].attributeValue);},this[$].attributeValue=r.map(i=>i[F]||Zl).join(" "),this[C](this[$].attributeValue),t}replaceItem(t,e){if(this[et])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 xn))throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let r=this[Q](),n=r.indexOf(t);if(n===e)return t;n!==-1&&r.splice(n,1),e<0?e=0:e>=r.length&&(e=r.length-1),r[e]&&(r[e][L]=null,r[e][C]=null);let i=r[e];return r[e]=t,t[L]=()=>t[F],t[C]=()=>{this[$].attributeValue=this[Q]().map(s=>s[F]||Zl).join(" "),this[C](this[$].attributeValue);},this[$].attributeValue=r.map(s=>s[F]||Zl).join(" "),this[C](this[$].attributeValue),i}removeItem(t){if(this[et])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[Q]();if(t=Number(t),isNaN(t)&&(t=0),t>=e.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${t}) is greater than the maximum bound.`,k.indexSizeError);if(t<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${t}) is negative.`,k.indexSizeError);let r=e[t];return r&&(r[L]=null,r[C]=null),e.splice(t,1),this[$].attributeValue=e.map(n=>n[F]||Zl).join(" "),this[C](this[$].attributeValue),r}appendItem(t){if(this[et])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 xn))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let e=this[Q](),r=e.indexOf(t);return r!==-1&&e.splice(r,1),e.push(t),t[L]=()=>t[F],t[C]=()=>{this[$].attributeValue=this[Q]().map(n=>n[F]||Zl).join(" "),this[C](this[$].attributeValue);},this[$].attributeValue=e.map(n=>n[F]||Zl).join(" "),this[C](this[$].attributeValue),t}[Q](){let t=this[L]()??"",e=this[$];if(e.attributeValue===t)return e.items;if(e.items.length)for(let i of e.items)i[L]=null,i[C]=null;let r=[],n=t.trim();if(n){let i=new RegExp(tB),s;for(;s=i.exec(n);){let l=new xn(b,this[m],{readOnly:this[et],getAttribute:()=>l[F],setAttribute:()=>{this[$].attributeValue=this[Q]().map(a=>a[F]||Zl).join(" "),this[C](this[$].attributeValue);}});l[F]=`${s[1]}(${s[2]})`,r.push(l);}}return e.attributeValue=t,e.items=r,r}};var qi=class{[m];[L];[C];[ge]=null;[Se]=null;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[L]=r.getAttribute,this[C]=r.setAttribute;}get animVal(){return this[Se]||(this[Se]=new Eu(b,this[m],{readOnly:true,getAttribute:this[L],setAttribute:()=>{}})),this[Se]}set animVal(t){}get baseVal(){return this[ge]||(this[ge]=new Eu(b,this[m],{getAttribute:this[L],setAttribute:this[C]})),this[ge]}set baseVal(t){}};var Be=class extends mt{[us]=null;[cs]=null;[Gy]=null;get oncopy(){return E.getEventListener(this,"oncopy")}set oncopy(t){this[y].set("oncopy",t);}get oncut(){return E.getEventListener(this,"oncut")}set oncut(t){this[y].set("oncut",t);}get onpaste(){return E.getEventListener(this,"onpaste")}set onpaste(t){this[y].set("onpaste",t);}get requiredExtensions(){return this[us]||(this[us]=new ji(b,this[m],{getAttribute:()=>this.getAttribute("requiredExtensions"),setAttribute:t=>this.setAttribute("requiredExtensions",t)})),this[us]}get systemLanguage(){return this[cs]||(this[cs]=new ji(b,this[m],{getAttribute:()=>this.getAttribute("systemLanguage"),setAttribute:t=>this.setAttribute("systemLanguage",t)})),this[cs]}get transform(){return this[Gy]||(this[Gy]=new qi(b,this[m],{getAttribute:()=>this.getAttribute("transform"),setAttribute:t=>this.setAttribute("transform",t)})),this[Gy]}getBBox(){return new mi}getCTM(){return new this[m].DOMMatrix}getScreenCTM(){return new this[m].DOMMatrix}};g();var di=class{[m];[L]=null;[C]=null;[F]=null;[et]=false;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,r&&(this[et]=!!r.readOnly,this[L]=r.getAttribute||null,this[C]=r.setAttribute||null);}get x(){let t=this[L]?this[L]():this[F];if(!t)return 0;let e=t.split(/\s+/),r=Number(e[0]);return isNaN(r)?0:r}set x(t){if(this[et])throw new this[m].TypeError("Failed to set the 'x' property on 'SVGRect': The object is read-only.");this[F]=`${String(typeof t=="number"?t:parseFloat(t))} ${this.y} ${this.width} ${this.height}`,this[C]&&this[C](this[F]);}get y(){let t=this[L]?this[L]():this[F];if(!t)return 0;let e=t.split(/\s+/),r=Number(e[1]);return isNaN(r)?0:r}set y(t){if(this[et])throw new this[m].TypeError("Failed to set the 'y' property on 'SVGRect': The object is read-only.");this[F]=`${this.x} ${String(typeof t=="number"?t:parseFloat(t))} ${this.width} ${this.height}`,this[C]&&this[C](this[F]);}get width(){let t=this[L]?this[L]():this[F];if(!t)return 0;let e=t.split(/\s+/),r=Number(e[2]);return isNaN(r)?0:r}set width(t){if(this[et])throw new this[m].TypeError("Failed to set the 'width' property on 'SVGRect': The object is read-only.");this[F]=`${this.x} ${this.y} ${String(typeof t=="number"?t:parseFloat(t))} ${this.height}`,this[C]&&this[C](this[F]);}get height(){let t=this[L]?this[L]():this[F];if(!t)return 0;let e=t.split(/\s+/),r=Number(e[3]);return isNaN(r)?0:r}set height(t){if(this[et])throw new this[m].TypeError("Failed to set the 'height' property on 'SVGRect': The object is read-only.");this[F]=`${this.x} ${this.y} ${this.width} ${String(typeof t=="number"?t:parseFloat(t))}`,this[C]&&this[C](this[F]);}};g();var y0=/[\t\f\n\r, ]+/,Cr=class{[m];[L]=null;[C]=null;[F]=null;[et]=false;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,r&&(this[et]=!!r.readOnly,this[L]=r.getAttribute||null,this[C]=r.setAttribute||null);}get x(){let e=((this[L]?this[L]():this[F])||"").split(y0);return e[0]?parseFloat(e[0]):0}set x(t){if(this[et])throw new this[m].TypeError("Failed to set the 'x' property on 'SVGPoint': The object is read-only.");this[F]=`${t} ${this.y}`,this[C]&&this[C](this[F]);}get y(){let e=((this[L]?this[L]():this[F])||"").split(y0);return e[1]?parseFloat(e[1]):0}set y(t){if(this[et])throw new this[m].TypeError("Failed to set the 'y' property on 'SVGPoint': The object is read-only.");this[F]=`${this.x} ${t}`,this[C]&&this[C](this[F]);}};g();g();var $x;(function(o){o[o.unknown=0]="unknown",o[o.number=1]="number",o[o.percentage=2]="percentage",o[o.ems=3]="ems",o[o.exs=4]="exs",o[o.px=5]="px",o[o.cm=6]="cm",o[o.mm=7]="mm",o[o.in=8]="in",o[o.pt=9]="pt",o[o.pc=10]="pc";})($x||($x={}));var Rt=$x;var d0=/^(\d+|\d+\.\d+)(px|em|ex|cm|mm|in|pt|pc|%|)$/,fi=class{static SVG_LENGTHTYPE_UNKNOWN=Rt.unknown;static SVG_LENGTHTYPE_NUMBER=Rt.number;static SVG_LENGTHTYPE_PERCENTAGE=Rt.percentage;static SVG_LENGTHTYPE_EMS=Rt.ems;static SVG_LENGTHTYPE_EXS=Rt.exs;static SVG_LENGTHTYPE_PX=Rt.px;static SVG_LENGTHTYPE_CM=Rt.cm;static SVG_LENGTHTYPE_MM=Rt.mm;static SVG_LENGTHTYPE_IN=Rt.in;static SVG_LENGTHTYPE_PT=Rt.pt;static SVG_LENGTHTYPE_PC=Rt.pc;[m];[L]=null;[C]=null;[F]=null;[et]=false;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,r&&(this[et]=!!r.readOnly,this[L]=r.getAttribute||null,this[C]=r.setAttribute||null);}get unitType(){let e=(this[L]?this[L]()||"":this[F]||"").match(d0);if(!e)return Rt.unknown;if(isNaN(parseFloat(e[1])))return Rt.unknown;switch(e[2]){case "":return Rt.number;case "px":return Rt.px;case "cm":return Rt.cm;case "mm":return Rt.mm;case "in":return Rt.in;case "pt":return Rt.pt;case "pc":return Rt.pc;case "em":case "ex":case "%":throw new this[m].TypeError("Failed to execute 'value' on 'SVGLength': Could not resolve relative length.");default:return Rt.unknown}}get value(){let e=(this[L]?this[L]()||"":this[F]||"").match(d0);if(!e)return 0;let r=parseFloat(e[1]);if(isNaN(r))return 0;switch(e[2]){case "":return r;case "px":return r;case "cm":return r/2.54*96;case "mm":return r/25.4*96;case "in":return r*96;case "pt":return r*72;case "pc":return r*6;case "em":case "ex":case "%":throw new this[m].TypeError("Failed to execute 'value' on 'SVGLength': Could not resolve relative length.");default:return 0}}set value(t){if(this[et])throw new this[m].TypeError("Failed to set the 'value' property on 'SVGLength': The object is read-only.");if(t=typeof t!="number"?parseFloat(String(t)):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'value' property on 'SVGLength': The provided float value is non-finite.");let e="",r=t;switch(this.unitType){case Rt.number:r=t,e="";break;case Rt.px:r=t,e="px";break;case Rt.cm:r=t/96*2.54,e="cm";break;case Rt.mm:r=t/96*25.4,e="mm";break;case Rt.in:r=t/96,e="in";break;case Rt.pt:r=t/72,e="pt";break;case Rt.pc:r=t/6,e="pc";break;case Rt.percentage:case Rt.ems:case Rt.exs:throw new this[m].TypeError("Failed to set the 'value' property on 'SVGLength': Could not resolve relative length.");}this[F]=String(r)+e,this[C]&&this[C](this[F]);}get valueAsString(){return this[L]?this[L]()||"0":this[F]||"0"}get valueInSpecifiedUnits(){let t=this.valueAsString;return parseFloat(t)||0}newValueSpecifiedUnits(t,e){if(this[et])throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The object is read-only.");if(typeof t!="number")throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.");if(e=typeof e!="number"?parseFloat(String(e)):e,isNaN(e))throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The provided float value is non-finite.");let r="";switch(t){case Rt.number:r="";break;case Rt.px:r="px";break;case Rt.cm:r="cm";break;case Rt.mm:r="mm";break;case Rt.in:r="in";break;case Rt.pt:r="pt";break;case Rt.pc:r="pc";break;case Rt.ems:case Rt.exs:case Rt.percentage:throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Could not resolve relative length.");}this[F]=String(e)+r,this[C]&&this[C](this[F]);}convertToSpecifiedUnits(t){if(this[et])throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': The object is read-only.");if(typeof t!="number")throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.");let e=this.value,r="";switch(t){case Rt.number:r="";break;case Rt.px:r="px";break;case Rt.cm:e=e/96*2.54,r="cm";break;case Rt.mm:e=e/96*25.4,r="mm";break;case Rt.in:e=e/96,r="in";break;case Rt.pt:e=e/72,r="pt";break;case Rt.pc:e=e/6,r="pc";break;case Rt.percentage:case Rt.ems:case Rt.exs:throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': Could not resolve relative length.");}this[F]=String(e)+r,this[C]&&this[C](this[F]);}};g();g();var Kx;(function(o){o[o.unknown=0]="unknown",o[o.unspecified=1]="unspecified",o[o.deg=2]="deg",o[o.rad=3]="rad",o[o.grad=4]="grad";})(Kx||(Kx={}));var Ge=Kx;var f0=/^(\d+|\d+\.\d+)(deg|rad|grad|turn|)$/,js=class{static SVG_ANGLETYPE_UNKNOWN=Ge.unknown;static SVG_ANGLETYPE_UNSPECIFIED=Ge.unspecified;static SVG_ANGLETYPE_DEG=Ge.deg;static SVG_ANGLETYPE_RAD=Ge.rad;static SVG_ANGLETYPE_GRAD=Ge.grad;[m];[L]=null;[C]=null;[F]="";[et]=false;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,r&&(this[et]=!!r.readOnly,this[L]=r.getAttribute||null,this[C]=r.setAttribute||null);}get unitType(){let e=(this[L]?this[L]():this[F])?.match(f0);if(!e)return Ge.unknown;if(isNaN(parseFloat(e[1])))return Ge.unknown;switch(e[2]){case "":return Ge.unspecified;case "deg":return Ge.deg;case "rad":return Ge.rad;case "grad":return Ge.grad;case "turn":return Ge.unknown;default:return Ge.unspecified}}get value(){let e=(this[L]?this[L]():this[F])?.match(f0);if(!e)return 0;let r=parseFloat(e[1]);if(isNaN(r))return 0;switch(e[2]){case "":return r;case "deg":return r;case "rad":return r*(180/Math.PI);case "grad":return r*(180/200);case "turn":return r*360;default:return r}}set value(t){if(this[et])throw new this[m].TypeError("Failed to set the 'value' property on 'SVGAngle': The object is read-only.");if(t=typeof t!="number"?parseFloat(String(t)):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'value' property on 'SVGAngle': The provided float value is non-finite.");let e="",r=t;switch(this.unitType){case Ge.unspecified:r=t,e="";break;case Ge.deg:r=t,e="deg";break;case Ge.rad:r=t/(180/Math.PI),e="rad";break;case Ge.grad:r=t/(180/200),e="grad";break;case Ge.unknown:r=t/360,e="turn";}this[F]=String(r)+e,this[C]&&this[C](this[F]);}get valueAsString(){return this[L]?this[L]()||"0":this[F]||"0"}get valueInSpecifiedUnits(){let t=this.valueAsString;return parseFloat(t)||0}newValueSpecifiedUnits(t,e){if(this[et])throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The object is read-only.");if(typeof t!="number")throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.");if(e=typeof e!="number"?parseFloat(e):e,isNaN(e))throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The provided float value is non-finite.");let r="";switch(t){case Ge.unspecified:r="";break;case Ge.deg:r="deg";break;case Ge.rad:r="rad";break;case Ge.grad:r="grad";break;case Ge.unknown:r="turn";break;}this[F]=String(e)+r,this[C]&&this[C](this[F]);}convertToSpecifiedUnits(t){if(this[et])throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': The object is read-only.");if(typeof t!="number")throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.");let e=this.value,r="";switch(t){case Ge.unspecified:r="";break;case Ge.deg:r="deg";break;case Ge.rad:r="rad",e=e/(180/Math.PI);break;case Ge.grad:r="grad",e=e/(180/200);break;case Ge.unknown:r="turn",e=e/360;break;}this[F]=String(e)+r,this[C]&&this[C](this[F]);}};g();var bi=class{[m];[L]=null;[C]=null;[F]=null;[et]=false;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,r&&(this[et]=!!r.readOnly,this[L]=r.getAttribute||null,this[C]=r.setAttribute||null);}get value(){let t=this[L]?this[L]():this[F];return parseFloat(t||"0")}set value(t){if(this[et])throw new TypeError("Failed to set the 'value' property on 'SVGNumber': The object is read-only.");let e=typeof t!="number"?parseFloat(String(t)):t;if(isNaN(e))throw new TypeError("Failed to set the 'value' property on 'SVGNumber': The provided value is not a number.");this[F]=String(t),this[C]&&this[C](this[F]||"");}};g();var ta=class{[m];[L];[C];[ge]=null;[Se]=null;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[L]=r.getAttribute,this[C]=r.setAttribute;}get animVal(){return this[Se]||(this[Se]=new di(b,this[m],{readOnly:true,getAttribute:this[L]})),this[Se]}set animVal(t){}get baseVal(){return this[ge]||(this[ge]=new di(b,this[m],{getAttribute:this[L],setAttribute:this[C]})),this[ge]}set baseVal(t){}};g();g();g();var jx;(function(o){o[o.unknown=0]="unknown",o[o.meet=1]="meet",o[o.slice=2]="slice";})(jx||(jx={}));var ea=jx;g();var qx;(function(o){o[o.unknown=0]="unknown",o[o.none=1]="none",o[o.xMinYMin=2]="xMinYMin",o[o.xMidYMin=3]="xMidYMin",o[o.xMaxYMin=4]="xMaxYMin",o[o.xMinYMid=5]="xMinYMid",o[o.xMidYMid=6]="xMidYMid",o[o.xMaxYMid=7]="xMaxYMid",o[o.xMinYMax=8]="xMinYMax",o[o.xMidYMax=9]="xMidYMax",o[o.xMaxYMax=10]="xMaxYMax";})(qx||(qx={}));var Ao=qx;var Bf=Object.values(Ao);Bf.length=Bf.indexOf(0);var KS=Object.values(ea);KS.length=KS.indexOf(0);var vu=class{static SVG_MEETORSLICE_UNKNOWN=ea.unknown;static SVG_MEETORSLICE_MEET=ea.meet;static SVG_MEETORSLICE_SLICE=ea.slice;static SVG_PRESERVEASPECTRATIO_UNKNOWN=Ao.unknown;static SVG_PRESERVEASPECTRATIO_NONE=Ao.none;static SVG_PRESERVEASPECTRATIO_XMINYMIN=Ao.xMinYMin;static SVG_PRESERVEASPECTRATIO_XMIDYMIN=Ao.xMidYMin;static SVG_PRESERVEASPECTRATIO_XMAXYMIN=Ao.xMaxYMin;static SVG_PRESERVEASPECTRATIO_XMINYMID=Ao.xMinYMid;static SVG_PRESERVEASPECTRATIO_XMIDYMID=Ao.xMidYMid;static SVG_PRESERVEASPECTRATIO_XMAXYMID=Ao.xMaxYMid;static SVG_PRESERVEASPECTRATIO_XMINYMAX=Ao.xMinYMax;static SVG_PRESERVEASPECTRATIO_XMIDYMAX=Ao.xMidYMax;static SVG_PRESERVEASPECTRATIO_XMAXYMAX=Ao.xMaxYMax;[m];[L]=null;[C]=null;[F]=null;[et]=false;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,r&&(this[et]=!!r.readOnly,this[L]=r.getAttribute||null,this[C]=r.setAttribute||null);}get align(){let t=this[L]?this[L]():this[F];if(!t)return Ao.xMidYMid;let e=t.split(/\s+/)[0];return Ao[e]===void 0?Ao.xMidYMid:Ao[e]}set align(t){if(this[et])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>Bf.length)throw new this[m].TypeError("Failed to set the 'align' property on 'SVGPreserveAspectRatio': The alignment provided is invalid.");this[F]=`${Bf[e]} ${KS[this.meetOrSlice]}`,this[C]&&this[C](this[F]);}get meetOrSlice(){let t=this[L]?this[L]():this[F];if(!t)return ea.meet;let e=t.split(/\s+/)[1];return !e||ea[e]===void 0?ea.meet:ea[e]}set meetOrSlice(t){if(this[et])throw new this[m].TypeError("Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The object is read-only.");let e=Number(t);if(isNaN(e)||e<1||e>2)throw new this[m].TypeError("Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The meetOrSlice provided is invalid.");this[F]=`${Bf[this.align]} ${KS[e]}`,this[C]&&this[C](this[F]);}};var Gn=class{[m];[L];[C];[ge]=null;[Se]=null;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[L]=r.getAttribute,this[C]=r.setAttribute;}get animVal(){return this[Se]||(this[Se]=new vu(b,this[m],{readOnly:true,getAttribute:this[L]})),this[Se]}set animVal(t){}get baseVal(){return this[ge]||(this[ge]=new vu(b,this[m],{getAttribute:this[L],setAttribute:this[C]})),this[ge]}set baseVal(t){}};g();var R=class{[m];[L];[C];[ge]=null;[Se]=null;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[L]=r.getAttribute,this[C]=r.setAttribute;}get animVal(){return this[Se]||(this[Se]=new fi(b,this[m],{readOnly:true,getAttribute:this[L]})),this[Se]}set animVal(t){}get baseVal(){return this[ge]||(this[ge]=new fi(b,this[m],{getAttribute:this[L],setAttribute:this[C]})),this[ge]}set baseVal(t){}};var Vh=class extends Be{[Dr]=null;[D]=null;[O]=null;[V]=null;[B]=null;[AS]=1;[ps]=null;get onafterprint(){return E.getEventListener(this,"onafterprint")}set onafterprint(t){this[y].set("onafterprint",t);}get onbeforeprint(){return E.getEventListener(this,"onbeforeprint")}set onbeforeprint(t){this[y].set("onbeforeprint",t);}get onbeforeunload(){return E.getEventListener(this,"onbeforeunload")}set onbeforeunload(t){this[y].set("onbeforeunload",t);}get ongamepadconnected(){return E.getEventListener(this,"ongamepadconnected")}set ongamepadconnected(t){this[y].set("ongamepadconnected",t);}get ongamepaddisconnected(){return E.getEventListener(this,"ongamepaddisconnected")}set ongamepaddisconnected(t){this[y].set("ongamepaddisconnected",t);}get onhashchange(){return E.getEventListener(this,"onhashchange")}set onhashchange(t){this[y].set("onhashchange",t);}get onlanguagechange(){return E.getEventListener(this,"onlanguagechange")}set onlanguagechange(t){this[y].set("onlanguagechange",t);}get onmessage(){return E.getEventListener(this,"onmessage")}set onmessage(t){this[y].set("onmessage",t);}get onmessageerror(){return E.getEventListener(this,"onmessageerror")}set onmessageerror(t){this[y].set("onmessageerror",t);}get onoffline(){return E.getEventListener(this,"onoffline")}set onoffline(t){this[y].set("onoffline",t);}get ononline(){return E.getEventListener(this,"ononline")}set ononline(t){this[y].set("ononline",t);}get onpagehide(){return E.getEventListener(this,"onpagehide")}set onpagehide(t){this[y].set("onpagehide",t);}get onpageshow(){return E.getEventListener(this,"onpageshow")}set onpageshow(t){this[y].set("onpageshow",t);}get onpopstate(){return E.getEventListener(this,"onpopstate")}set onpopstate(t){this[y].set("onpopstate",t);}get onrejectionhandled(){return E.getEventListener(this,"onrejectionhandled")}set onrejectionhandled(t){this[y].set("onrejectionhandled",t);}get onstorage(){return E.getEventListener(this,"onstorage")}set onstorage(t){this[y].set("onstorage",t);}get onunhandledrejection(){return E.getEventListener(this,"onunhandledrejection")}set onunhandledrejection(t){this[y].set("onunhandledrejection",t);}get onunload(){return E.getEventListener(this,"onunload")}set onunload(t){this[y].set("onunload",t);}get preserveAspectRatio(){return this[Dr]||(this[Dr]=new Gn(b,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:t=>this.setAttribute("preserveAspectRatio",t)})),this[Dr]}get height(){return this[B]||(this[B]=new R(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[B]}get width(){return this[V]||(this[V]=new R(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[D]||(this[D]=new R(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[D]}get y(){return this[O]||(this[O]=new R(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[O]}get currentScale(){return this[AS]}set currentScale(t){let e=typeof t!="number"?parseFloat(String(t)):t;if(isNaN(e))throw this[m].TypeError("Failed to set the 'currentScale' property on 'SVGSVGElement': The provided float value is non-finite.");e<1||(this[AS]=e);}get currentTranslate(){return new Cr(b,this[m])}get viewBox(){return this[ps]||(this[ps]=new ta(b,this[m],{getAttribute:()=>this.getAttribute("viewBox"),setAttribute:t=>this.setAttribute("viewBox",t)})),this[ps]}pauseAnimations(){}unpauseAnimations(){}animationsPaused(){return false}getCurrentTime(){return 0}setCurrentTime(t){}getIntersectionList(t,e){return new In(b,[])}getEnclosureList(t,e){return new In(b,[])}checkIntersection(t,e){return false}checkEnclosure(t,e){return false}deselectAll(){}createSVGNumber(){return new bi(b,this[m])}createSVGLength(){return new fi(b,this[m])}createSVGAngle(){return new js(b,this[m])}createSVGPoint(){return new Cr(b,this[m])}createSVGMatrix(){return new Ks(b,this[m])}createSVGRect(){return new di(b,this[m])}createSVGTransform(){return new xn(b,this[m])}createSVGTransformFromMatrix(t){let e=new xn(b,this[m]);return e.setMatrix(t),e}getElementsByClassName(t){return fe.getElementsByClassName(this,t)}getElementsByTagName(t){return fe.getElementsByTagName(this,t)}getElementsByTagNameNS(t,e){return fe.getElementsByTagNameNS(this,t,e)}getElementById(t){return fe.getElementById(this,t)}[xt](t=false){return super[xt](t)}};g();g();var Un=class extends mt{[us]=null;[cs]=null;get onbegin(){return E.getEventListener(this,"onbegin")}set onbegin(t){this[y].set("onbegin",t);}get onend(){return E.getEventListener(this,"onend")}set onend(t){this[y].set("onend",t);}get onrepeat(){return E.getEventListener(this,"onrepeat")}set onrepeat(t){this[y].set("onrepeat",t);}get requiredExtensions(){return this[us]||(this[us]=new ji(b,this[m],{getAttribute:()=>this.getAttribute("requiredExtensions"),setAttribute:t=>this.setAttribute("requiredExtensions",t)})),this[us]}get systemLanguage(){return this[cs]||(this[cs]=new ji(b,this[m],{getAttribute:()=>this.getAttribute("systemLanguage"),setAttribute:t=>this.setAttribute("systemLanguage",t)})),this[cs]}get targetElement(){return null}};var Vf=class extends Un{};g();var Hf=class extends Un{};g();var Gf=class extends Un{};g();g();g();var gt=class{[m];[L];[C];[Ko]=0;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[L]=r.getAttribute,this[C]=r.setAttribute,this[Ko]=r.defaultValue||0;}get animVal(){return this.baseVal}set animVal(t){}get baseVal(){let t=this[L]();if(!t)return this[Ko];let e=parseFloat(t);return isNaN(e)?this[Ko]: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[C](String(e));}};var _r=class extends Be{[Uy]=null;get pathLength(){return this[Uy]||(this[Uy]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("pathLength"),setAttribute:t=>this.setAttribute("pathLength",t)})),this[Uy]}isPointInFill(t){if(!(t instanceof Cr))throw new TypeError("Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.");return false}isPointInStroke(t){if(!(t instanceof Cr))throw new TypeError("Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.");return false}getTotalLength(){return 0}getPointAtLength(t){return new Cr(b,this[m])}};var Uf=class extends _r{[jo]=null;[qo]=null;[fs]=null;get cx(){return this[jo]||(this[jo]=new R(b,this[m],{getAttribute:()=>this.getAttribute("cx"),setAttribute:t=>this.setAttribute("cx",t)})),this[jo]}get cy(){return this[qo]||(this[qo]=new R(b,this[m],{getAttribute:()=>this.getAttribute("cy"),setAttribute:t=>this.setAttribute("cy",t)})),this[qo]}get r(){return this[fs]||(this[fs]=new R(b,this[m],{getAttribute:()=>this.getAttribute("r"),setAttribute:t=>this.setAttribute("r",t)})),this[fs]}};g();g();var Gt=class{[m];[L];[C];[Er];[Ko];constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[L]=r.getAttribute,this[C]=r.setAttribute,this[Er]=r.values,this[Ko]=r.defaultValue;}get animVal(){return this.baseVal}set animVal(t){}get baseVal(){let t=this[L]();if(!t)return this[Er].indexOf(this[Ko])+1;let e=this[Er].indexOf(t);if(e===-1){let r=this[Er].indexOf(null);return r!==-1?r+1:0}return e+1}set baseVal(t){let e=Number(t);if(isNaN(e)&&(e=0),e<1)throw new TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided is ${e}, which is not settable.`);if(e>this[Er].length)throw new TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided (${e}) is larger than the largest allowed value (${this[Er].length}).`);let r=this[L](),n=this[Er][e-1]===null,i=n?"0":this[Er][e-1];(!r||n&&this[Er].includes(r)||!n&&r!==i)&&this[C](i||"");}};var Wf=class extends mt{[Yy]=null;get clipPathUnits(){return this[Yy]||(this[Yy]=new Gt(b,this[m],{getAttribute:()=>this.getAttribute("clipPathUnits"),setAttribute:t=>this.setAttribute("clipPathUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[Yy]}};g();var zf=class extends Be{};g();var _f=class extends mt{};g();var $f=class extends _r{[jo]=null;[qo]=null;[ys]=null;[ds]=null;get cx(){return this[jo]||(this[jo]=new R(b,this[m],{getAttribute:()=>this.getAttribute("cx"),setAttribute:t=>this.setAttribute("cx",t)})),this[jo]}get cy(){return this[qo]||(this[qo]=new R(b,this[m],{getAttribute:()=>this.getAttribute("cy"),setAttribute:t=>this.setAttribute("cy",t)})),this[qo]}get rx(){return this[ys]||(this[ys]=new R(b,this[m],{getAttribute:()=>this.getAttribute("rx"),setAttribute:t=>this.setAttribute("rx",t)})),this[ys]}get ry(){return this[ds]||(this[ds]=new R(b,this[m],{getAttribute:()=>this.getAttribute("ry"),setAttribute:t=>this.setAttribute("ry",t)})),this[ds]}};g();g();var dt=class{[m];[L];[C];constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[L]=r.getAttribute,this[C]=r.setAttribute;}get animVal(){return this.baseVal}set animVal(t){}get baseVal(){let t=this[L]();return t||""}set baseVal(t){this[C](String(t));}};var Kf=class extends mt{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;[B]=null;[bt]=null;[Qo]=null;[We]=null;[D]=null;[O]=null;[V]=null;get height(){return this[B]||(this[B]=new R(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[B]}get in1(){return this[bt]||(this[bt]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[bt]}get in2(){return this[Qo]||(this[Qo]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("in2"),setAttribute:t=>this.setAttribute("in2",t)})),this[Qo]}get mode(){return this[We]||(this[We]=new Gt(b,this[m],{getAttribute:()=>this.getAttribute("mode"),setAttribute:t=>this.setAttribute("mode",t),values:["normal","multiply","screen","darken","lighten","overlay","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],defaultValue:"normal"})),this[We]}get width(){return this[V]||(this[V]=new R(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[D]||(this[D]=new R(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[D]}get y(){return this[O]||(this[O]=new R(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[O]}};g();g();g();var eB=/[\t\f\n\r, ]+/,Tu=class o{[m];[L];[C];[et]=false;[$]={items:[],attributeValue:""};constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");if(this[m]=e,this[et]=!!r.readOnly,this[L]=r.getAttribute,this[C]=r.setAttribute,t!==b)throw new TypeError("Illegal constructor");let n=new De(this,[o]);return new Proxy(this,{get:(i,s)=>{if(s==="length"||s==="numberOfItems")return i[Q]().length;if(s in i||typeof s=="symbol")return n.bind(s),i[s];let l=Number(s);if(!isNaN(l))return i[Q]()[l]},set(i,s,l){if(n.bind(s),typeof s=="symbol")return i[s]=l,true;let a=Number(s);return isNaN(a)&&(i[s]=l),true},deleteProperty(i,s){if(typeof s=="symbol")return delete i[s],true;let l=Number(s);return isNaN(l)&&delete i[s],true},ownKeys(i){return Object.keys(i[Q]())},has(i,s){if(s in i)return true;if(typeof s=="symbol")return false;let l=Number(s);return !isNaN(l)&&l>=0&&l<i[Q]().length},defineProperty(i,s,l){return n.preventBinding(s),s in i?(Object.defineProperty(i,s,l),true):false},getOwnPropertyDescriptor(i,s){if(s in i||typeof s=="symbol")return;let l=Number(s),a=i[Q]();if(!isNaN(l)&&a[l])return {value:a[l],writable:false,enumerable:true,configurable:true}}})}get length(){return this[Q]().length}get numberOfItems(){return this[Q]().length}[Symbol.iterator](){return this[Q]().values()}clear(){if(this[et])throw new this[m].TypeError("Failed to execute 'clear' on 'SVGNumberList': The object is read-only.");for(let t of this[$].items)t[L]=null,t[C]=null;this[$].items=[],this[$].attributeValue="",this[C]("");}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[et])throw new this[m].TypeError("Failed to execute 'initialize' on 'SVGNumberList': The object is read-only.");for(let e of this[$].items)e[L]=null,e[C]=null;return t[L]=()=>t[F],t[C]=()=>{this[$].attributeValue=this[Q]().map(e=>e[F]||"0").join(" "),this[C](this[$].attributeValue);},this[$].items=[t],this[$].attributeValue=t[F],this[C](t[F]||""),t}getItem(t){let e=this[Q]();return typeof t=="number"||(t=Number(t),t=isNaN(t)?0:t),e[t]?e[t]:null}insertItemBefore(t,e){if(this[et])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 bi))throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let r=this[Q](),n=r.indexOf(t);return n!==-1&&r.splice(n,1),e<0?e=0:e>r.length&&(e=r.length),r.splice(e,0,t),t[L]=()=>t[F],t[C]=()=>{this[$].attributeValue=this[Q]().map(i=>i[F]||"0").join(" "),this[C](this[$].attributeValue);},this[$].attributeValue=r.map(i=>i[F]||"0").join(" "),this[C](this[$].attributeValue),t}replaceItem(t,e){if(this[et])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 bi))throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let r=this[Q](),n=r.indexOf(t);if(n===e)return t;n!==-1&&r.splice(n,1),e<0?e=0:e>=r.length&&(e=r.length-1),r[e]&&(r[e][L]=null,r[e][C]=null);let i=r[e];return r[e]=t,t[L]=()=>t[F],t[C]=()=>{this[$].attributeValue=this[Q]().map(s=>s[F]||"0").join(" "),this[C](this[$].attributeValue);},this[$].attributeValue=r.map(s=>s[F]||"0").join(" "),this[C](this[$].attributeValue),i}removeItem(t){if(this[et])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[Q]();if(t=Number(t),isNaN(t)&&(t=0),t>=e.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${t}) is greater than the maximum bound.`,k.indexSizeError);if(t<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${t}) is negative.`,k.indexSizeError);let r=e[t];return r&&(r[L]=null,r[C]=null),e.splice(t,1),this[C](e.map(n=>n[F]||"0").join(" ")),r}appendItem(t){if(this[et])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 bi))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let e=this[Q](),r=e.indexOf(t);return r!==-1&&e.splice(r,1),e.push(t),t[L]=()=>t[F],t[C]=()=>{this[$].attributeValue=this[Q]().map(n=>n[F]||"0").join(" "),this[C](this[$].attributeValue);},this[$].attributeValue=e.map(n=>n[F]||"0").join(" "),this[C](this[$].attributeValue),t}[Q](){let t=this[L]()??"",e=this[$];if(e.attributeValue===t)return e.items;if(e.items.length)for(let i of e.items)i[L]=null,i[C]=null;let r=[],n=t.trim();if(n){let i=n.split(eB);for(let s=0,l=i.length;s<l;s++){let a=new bi(b,this[m],{readOnly:this[et],getAttribute:()=>a[F],setAttribute:()=>{this[$].attributeValue=this[Q]().map(u=>u[F]||"0").join(" "),this[C](this[$].attributeValue);}});a[F]=String(parseFloat(i[s])),r.push(a);}}return e.attributeValue=t,e.items=r,r}};var pn=class{[m];[L];[C];[ge]=null;[Se]=null;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[L]=r.getAttribute,this[C]=r.setAttribute;}get animVal(){return this[Se]||(this[Se]=new Tu(b,this[m],{readOnly:true,getAttribute:this[L],setAttribute:()=>{}})),this[Se]}set animVal(t){}get baseVal(){return this[ge]||(this[ge]=new Tu(b,this[m],{getAttribute:this[L],setAttribute:this[C]})),this[ge]}set baseVal(t){}};var jf=class extends mt{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;[B]=null;[bt]=null;[Qo]=null;[at]=null;[ie]=null;[Er]=null;[D]=null;[O]=null;[V]=null;get height(){return this[B]||(this[B]=new R(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[B]}get in1(){return this[bt]||(this[bt]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[bt]}get in2(){return this[Qo]||(this[Qo]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("in2"),setAttribute:t=>this.setAttribute("in2",t)})),this[Qo]}get result(){return this[at]||(this[at]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[at]}get type(){return this[ie]||(this[ie]=new Gt(b,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:t=>this.setAttribute("type",t),values:["matrix","saturate","huerotate","luminancetoalpha"],defaultValue:"matrix"})),this[ie]}get values(){return this[Er]||(this[Er]=new pn(b,this[m],{getAttribute:()=>this.getAttribute("values"),setAttribute:t=>this.setAttribute("values",t)})),this[Er]}get width(){return this[V]||(this[V]=new R(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[D]||(this[D]=new R(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[D]}get y(){return this[O]||(this[O]=new R(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[O]}};g();var qf=class extends mt{[B]=null;[bt]=null;[at]=null;[D]=null;[O]=null;[V]=null;get height(){return this[B]||(this[B]=new R(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[B]}get in1(){return this[bt]||(this[bt]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[bt]}get result(){return this[at]||(this[at]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[at]}get width(){return this[V]||(this[V]=new R(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[D]||(this[D]=new R(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[D]}get y(){return this[O]||(this[O]=new R(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[O]}};g();var Yf=class extends mt{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;[B]=null;[bt]=null;[at]=null;[ie]=null;[Er]=null;[D]=null;[O]=null;[V]=null;get height(){return this[B]||(this[B]=new R(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[B]}get in1(){return this[bt]||(this[bt]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[bt]}get result(){return this[at]||(this[at]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[at]}get type(){return this[ie]||(this[ie]=new Gt(b,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:t=>this.setAttribute("type",t),values:["over","in","out","atop","xor","arithmetic"],defaultValue:"over"})),this[ie]}get values(){return this[Er]||(this[Er]=new pn(b,this[m],{getAttribute:()=>this.getAttribute("values"),setAttribute:t=>this.setAttribute("values",t)})),this[Er]}get width(){return this[V]||(this[V]=new R(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[D]||(this[D]=new R(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[D]}get y(){return this[O]||(this[O]=new R(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[O]}};g();g();var Gc=class{[m];[L];[C];constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[L]=r.getAttribute,this[C]=r.setAttribute;}get animVal(){return this.baseVal}set animVal(t){}get baseVal(){return this[L]()==="true"}set baseVal(t){this[C](String(typeof t!="boolean"?!!t:t));}};g();var gi=class{[m];[L];[C];constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[L]=r.getAttribute,this[C]=r.setAttribute;}get animVal(){return this.baseVal}set animVal(t){}get baseVal(){let t=this[L]();if(!t)return 0;let e=parseInt(t);return isNaN(e)?0:e}set baseVal(t){let e=parseInt(String(t));if(isNaN(e))throw new this[m].TypeError("TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedInteger': The provided float value is non-finite.");this[C](String(e));}};var Qf=class extends mt{static SVG_EDGEMODE_UNKNOWN=0;static SVG_EDGEMODE_DUPLICATE=1;static SVG_EDGEMODE_WRAP=2;static SVG_EDGEMODE_NONE=3;[dd]=null;[fd]=null;[xs]=null;[B]=null;[bt]=null;[bd]=null;[Jo]=null;[Xo]=null;[gd]=null;[Sd]=null;[Pd]=null;[at]=null;[Ad]=null;[wd]=null;[V]=null;[D]=null;[O]=null;get bias(){return this[dd]||(this[dd]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("bias"),setAttribute:t=>this.setAttribute("bias",t)})),this[dd]}get divisor(){return this[fd]||(this[fd]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("divisor"),setAttribute:t=>this.setAttribute("divisor",t)})),this[fd]}get edgeMode(){return this[xs]||(this[xs]=new Gt(b,this[m],{getAttribute:()=>this.getAttribute("edgeMode"),setAttribute:t=>this.setAttribute("edgeMode",t),values:["duplicate","wrap","none"],defaultValue:"duplicate"})),this[xs]}get height(){return this[B]||(this[B]=new R(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[B]}get in1(){return this[bt]||(this[bt]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[bt]}get kernelMatrix(){return this[bd]||(this[bd]=new pn(b,this[m],{getAttribute:()=>this.getAttribute("kernelMatrix"),setAttribute:t=>this.setAttribute("kernelMatrix",t)})),this[bd]}get kernelUnitLengthX(){return this[Jo]||(this[Jo]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:t=>this.setAttribute("kernelUnitLengthX",t)})),this[Jo]}get kernelUnitLengthY(){return this[Xo]||(this[Xo]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:t=>this.setAttribute("kernelUnitLengthY",t)})),this[Xo]}get orderX(){return this[gd]||(this[gd]=new gi(b,this[m],{getAttribute:()=>this.getAttribute("orderX"),setAttribute:t=>this.setAttribute("orderX",t)})),this[gd]}get orderY(){return this[Sd]||(this[Sd]=new gi(b,this[m],{getAttribute:()=>this.getAttribute("orderY"),setAttribute:t=>this.setAttribute("orderY",t)})),this[Sd]}get preserveAlpha(){return this[Pd]||(this[Pd]=new Gc(b,this[m],{getAttribute:()=>this.getAttribute("preserveAlpha"),setAttribute:t=>this.setAttribute("preserveAlpha",t)})),this[Pd]}get result(){return this[at]||(this[at]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[at]}get targetX(){return this[Ad]||(this[Ad]=new gi(b,this[m],{getAttribute:()=>this.getAttribute("targetX"),setAttribute:t=>this.setAttribute("targetX",t)})),this[Ad]}get targetY(){return this[wd]||(this[wd]=new gi(b,this[m],{getAttribute:()=>this.getAttribute("targetY"),setAttribute:t=>this.setAttribute("targetY",t)})),this[wd]}get width(){return this[V]||(this[V]=new R(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[D]||(this[D]=new R(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[D]}get y(){return this[O]||(this[O]=new R(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[O]}};g();var Jf=class extends mt{[xd]=null;[B]=null;[bt]=null;[Jo]=null;[Xo]=null;[at]=null;[Es]=null;[V]=null;[D]=null;[O]=null;get diffuseConstant(){return this[xd]||(this[xd]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("diffuseConstant"),setAttribute:t=>this.setAttribute("diffuseConstant",t)})),this[xd]}get height(){return this[B]||(this[B]=new R(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[B]}get in1(){return this[bt]||(this[bt]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[bt]}get kernelUnitLengthX(){return this[Jo]||(this[Jo]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:t=>this.setAttribute("kernelUnitLengthX",t)})),this[Jo]}get kernelUnitLengthY(){return this[Xo]||(this[Xo]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:t=>this.setAttribute("kernelUnitLengthY",t)})),this[Xo]}get result(){return this[at]||(this[at]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[at]}get surfaceScale(){return this[Es]||(this[Es]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("surfaceScale"),setAttribute:t=>this.setAttribute("surfaceScale",t)})),this[Es]}get width(){return this[V]||(this[V]=new R(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[D]||(this[D]=new R(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[D]}get y(){return this[O]||(this[O]=new R(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[O]}};g();var Xf=class extends mt{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;[B]=null;[bt]=null;[Qo]=null;[at]=null;[Ed]=null;[V]=null;[D]=null;[vd]=null;[O]=null;[Td]=null;get height(){return this[B]||(this[B]=new R(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[B]}get in1(){return this[bt]||(this[bt]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[bt]}get in2(){return this[Qo]||(this[Qo]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("in2"),setAttribute:t=>this.setAttribute("in2",t)})),this[Qo]}get result(){return this[at]||(this[at]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[at]}get scale(){return this[Ed]||(this[Ed]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("scale"),setAttribute:t=>this.setAttribute("scale",t)})),this[Ed]}get width(){return this[V]||(this[V]=new R(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[D]||(this[D]=new R(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[D]}get xChannelSelector(){return this[vd]||(this[vd]=new Gt(b,this[m],{getAttribute:()=>this.getAttribute("xChannelSelector"),setAttribute:t=>this.setAttribute("xChannelSelector",t),values:["r","g","b","a"],defaultValue:"r"})),this[vd]}get y(){return this[O]||(this[O]=new R(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[O]}get yChannelSelector(){return this[Td]||(this[Td]=new Gt(b,this[m],{getAttribute:()=>this.getAttribute("yChannelSelector"),setAttribute:t=>this.setAttribute("yChannelSelector",t),values:["r","g","b","a"],defaultValue:"r"})),this[Td]}};g();var Zf=class extends mt{[Cd]=null;[kd]=null;get azimuth(){return this[Cd]||(this[Cd]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("azimuth"),setAttribute:t=>this.setAttribute("azimuth",t)})),this[Cd]}get elevation(){return this[kd]||(this[kd]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("elevation"),setAttribute:t=>this.setAttribute("elevation",t)})),this[kd]}};g();var tb=class extends mt{[Zo]=null;[tn]=null;[B]=null;[bt]=null;[at]=null;[vs]=null;[Ts]=null;[V]=null;[D]=null;[O]=null;get dx(){return this[Zo]||(this[Zo]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("dx"),setAttribute:t=>this.setAttribute("dx",t)})),this[Zo]}get dy(){return this[tn]||(this[tn]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("dy"),setAttribute:t=>this.setAttribute("dy",t)})),this[tn]}get height(){return this[B]||(this[B]=new R(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[B]}get in1(){return this[bt]||(this[bt]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[bt]}get result(){return this[at]||(this[at]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[at]}get stdDeviationX(){return this[vs]||(this[vs]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("stdDeviationX"),setAttribute:t=>this.setAttribute("stdDeviationX",t),defaultValue:2})),this[vs]}get stdDeviationY(){return this[Ts]||(this[Ts]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("stdDeviationY"),setAttribute:t=>this.setAttribute("stdDeviationY",t),defaultValue:2})),this[Ts]}get width(){return this[V]||(this[V]=new R(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[D]||(this[D]=new R(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[D]}get y(){return this[O]||(this[O]=new R(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[O]}setStdDeviation(t,e){this.stdDeviationX.baseVal=t,this.stdDeviationY.baseVal=e;}};g();var eb=class extends mt{[B]=null;[at]=null;[V]=null;[D]=null;[O]=null;get height(){return this[B]||(this[B]=new R(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[B]}get result(){return this[at]||(this[at]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[at]}get width(){return this[V]||(this[V]=new R(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[D]||(this[D]=new R(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[D]}get y(){return this[O]||(this[O]=new R(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[O]}};g();g();var Wn=class extends mt{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;[ie]=null;[Nd]=null;[Ld]=null;[Md]=null;[Id]=null;[Rd]=null;[As]=null;get type(){return this[ie]||(this[ie]=new Gt(b,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:t=>this.setAttribute("type",t),values:["identity","table","discrete","linear","gamma"],defaultValue:"identity"})),this[ie]}get tableValues(){return this[Nd]||(this[Nd]=new pn(b,this[m],{getAttribute:()=>this.getAttribute("tableValues"),setAttribute:t=>this.setAttribute("tableValues",t)})),this[Nd]}get slope(){return this[Ld]||(this[Ld]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("slope"),setAttribute:t=>this.setAttribute("slope",t),defaultValue:1})),this[Ld]}get intercept(){return this[Md]||(this[Md]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("intercept"),setAttribute:t=>this.setAttribute("intercept",t)})),this[Md]}get amplitude(){return this[Id]||(this[Id]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("amplitude"),setAttribute:t=>this.setAttribute("amplitude",t),defaultValue:1})),this[Id]}get exponent(){return this[Rd]||(this[Rd]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("exponent"),setAttribute:t=>this.setAttribute("exponent",t),defaultValue:1})),this[Rd]}get offset(){return this[As]||(this[As]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("offset"),setAttribute:t=>this.setAttribute("offset",t)})),this[As]}};var rb=class extends Wn{};g();var ob=class extends Wn{};g();var nb=class extends Wn{};g();var ib=class extends Wn{};g();var sb=class extends mt{static SVG_EDGEMODE_UNKNOWN=0;static SVG_EDGEMODE_DUPLICATE=1;static SVG_EDGEMODE_WRAP=2;static SVG_EDGEMODE_NONE=3;[xs]=null;[B]=null;[bt]=null;[at]=null;[vs]=null;[Ts]=null;[V]=null;[D]=null;[O]=null;get edgeMode(){return this[xs]||(this[xs]=new Gt(b,this[m],{getAttribute:()=>this.getAttribute("edgeMode"),setAttribute:t=>this.setAttribute("edgeMode",t),values:["duplicate","wrap","none"],defaultValue:"duplicate"})),this[xs]}get height(){return this[B]||(this[B]=new R(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[B]}get in1(){return this[bt]||(this[bt]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[bt]}get result(){return this[at]||(this[at]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[at]}get stdDeviationX(){return this[vs]||(this[vs]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("stdDeviationX")||"2",setAttribute:t=>this.setAttribute("stdDeviationX",t)})),this[vs]}get stdDeviationY(){return this[Ts]||(this[Ts]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("stdDeviationY")||"2",setAttribute:t=>this.setAttribute("stdDeviationY",t)})),this[Ts]}get width(){return this[V]||(this[V]=new R(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[D]||(this[D]=new R(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[D]}get y(){return this[O]||(this[O]=new R(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[O]}setStdDeviation(t,e){this.stdDeviationX.baseVal=t,this.stdDeviationY.baseVal=e;}};g();var lb=class extends mt{[JC]=null;[B]=null;[Ut]=null;[Dr]=null;[at]=null;[V]=null;[D]=null;[O]=null;get crossOrigin(){return this.getAttribute("crossorigin")}set crossOrigin(t){this.setAttribute("crossorigin",t);}get height(){return this[B]||(this[B]=new R(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[B]}get href(){return this[Ut]||(this[Ut]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Ut]}get preserveAspectRatio(){return this[Dr]||(this[Dr]=new Gn(b,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:t=>this.setAttribute("preserveAspectRatio",t)})),this[Dr]}get result(){return this[at]||(this[at]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[at]}get width(){return this[V]||(this[V]=new R(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[D]||(this[D]=new R(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[D]}get y(){return this[O]||(this[O]=new R(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[O]}};g();var ab=class extends mt{[B]=null;[at]=null;[V]=null;[D]=null;[O]=null;get height(){return this[B]||(this[B]=new R(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[B]}get result(){return this[at]||(this[at]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[at]}get width(){return this[V]||(this[V]=new R(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[D]||(this[D]=new R(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[D]}get y(){return this[O]||(this[O]=new R(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[O]}};g();var ub=class extends mt{[bt]=null;get in1(){return this[bt]||(this[bt]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[bt]}};g();var cb=class extends mt{static SVG_MORPHOLOGY_OPERATOR_UNKNOWN=0;static SVG_MORPHOLOGY_OPERATOR_ERODE=1;static SVG_MORPHOLOGY_OPERATOR_DILATE=2;[B]=null;[bt]=null;[Dd]=null;[Od]=null;[Fd]=null;[at]=null;[V]=null;[D]=null;[O]=null;get height(){return this[B]||(this[B]=new R(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[B]}get in1(){return this[bt]||(this[bt]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[bt]}get operator(){return this[Dd]||(this[Dd]=new Gt(b,this[m],{getAttribute:()=>this.getAttribute("operator"),setAttribute:t=>this.setAttribute("operator",t),values:["erode","dilate"],defaultValue:"erode"})),this[Dd]}get radiusX(){return this[Od]||(this[Od]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("radiusX"),setAttribute:t=>this.setAttribute("radiusX",t)})),this[Od]}get radiusY(){return this[Fd]||(this[Fd]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("radiusY"),setAttribute:t=>this.setAttribute("radiusY",t)})),this[Fd]}get result(){return this[at]||(this[at]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[at]}get width(){return this[V]||(this[V]=new R(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[D]||(this[D]=new R(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[D]}get y(){return this[O]||(this[O]=new R(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[O]}};g();var pb=class extends mt{[B]=null;[bt]=null;[Zo]=null;[tn]=null;[at]=null;[V]=null;[D]=null;[O]=null;get height(){return this[B]||(this[B]=new R(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[B]}get in1(){return this[bt]||(this[bt]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[bt]}get dx(){return this[Zo]||(this[Zo]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("dx"),setAttribute:t=>this.setAttribute("dx",t)})),this[Zo]}get dy(){return this[tn]||(this[tn]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("dy"),setAttribute:t=>this.setAttribute("dy",t)})),this[tn]}get result(){return this[at]||(this[at]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[at]}get width(){return this[V]||(this[V]=new R(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[D]||(this[D]=new R(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[D]}get y(){return this[O]||(this[O]=new R(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[O]}};g();var mb=class extends mt{[D]=null;[O]=null;[mo]=null;get x(){return this[D]||(this[D]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[D]}get y(){return this[O]||(this[O]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[O]}get z(){return this[mo]||(this[mo]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("z"),setAttribute:t=>this.setAttribute("z",t)})),this[mo]}};g();var hb=class extends mt{[B]=null;[bt]=null;[Jo]=null;[Xo]=null;[at]=null;[Bd]=null;[Cs]=null;[Es]=null;[V]=null;[D]=null;[O]=null;get height(){return this[B]||(this[B]=new R(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[B]}get in1(){return this[bt]||(this[bt]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[bt]}get kernelUnitLengthX(){return this[Jo]||(this[Jo]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:t=>this.setAttribute("kernelUnitLengthX",t)})),this[Jo]}get kernelUnitLengthY(){return this[Xo]||(this[Xo]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:t=>this.setAttribute("kernelUnitLengthY",t)})),this[Xo]}get result(){return this[at]||(this[at]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[at]}get specularConstant(){return this[Bd]||(this[Bd]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("specularConstant"),setAttribute:t=>this.setAttribute("specularConstant",t),defaultValue:1})),this[Bd]}get specularExponent(){return this[Cs]||(this[Cs]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("specularExponent"),setAttribute:t=>this.setAttribute("specularExponent",t),defaultValue:1})),this[Cs]}get surfaceScale(){return this[Es]||(this[Es]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("surfaceScale"),setAttribute:t=>this.setAttribute("surfaceScale",t),defaultValue:1})),this[Es]}get width(){return this[V]||(this[V]=new R(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[D]||(this[D]=new R(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[D]}get y(){return this[O]||(this[O]=new R(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[O]}};g();var yb=class extends mt{[D]=null;[O]=null;[mo]=null;[Vd]=null;[Hd]=null;[Gd]=null;[Cs]=null;[Ud]=null;get x(){return this[D]||(this[D]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[D]}get y(){return this[O]||(this[O]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[O]}get z(){return this[mo]||(this[mo]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("z"),setAttribute:t=>this.setAttribute("z",t)})),this[mo]}get pointsAtX(){return this[Vd]||(this[Vd]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("pointsAtX"),setAttribute:t=>this.setAttribute("pointsAtX",t)})),this[Vd]}get pointsAtY(){return this[Hd]||(this[Hd]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("pointsAtY"),setAttribute:t=>this.setAttribute("pointsAtY",t)})),this[Hd]}get pointsAtZ(){return this[Gd]||(this[Gd]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("pointsAtZ"),setAttribute:t=>this.setAttribute("pointsAtZ",t)})),this[Gd]}get specularExponent(){return this[Cs]||(this[Cs]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("specularExponent"),setAttribute:t=>this.setAttribute("specularExponent",t),defaultValue:1})),this[Cs]}get limitingConeAngle(){return this[Ud]||(this[Ud]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("limitingConeAngle"),setAttribute:t=>this.setAttribute("limitingConeAngle",t)})),this[Ud]}};g();var db=class extends mt{[B]=null;[bt]=null;[at]=null;[V]=null;[D]=null;[O]=null;get height(){return this[B]||(this[B]=new R(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[B]}get in1(){return this[bt]||(this[bt]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[bt]}get result(){return this[at]||(this[at]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[at]}get width(){return this[V]||(this[V]=new R(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[D]||(this[D]=new R(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[D]}get y(){return this[O]||(this[O]=new R(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[O]}};g();var fb=class extends mt{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;[Wd]=null;[zd]=null;[B]=null;[_d]=null;[at]=null;[$d]=null;[Kd]=null;[ie]=null;[V]=null;[D]=null;[O]=null;get baseFrequencyX(){return this[Wd]||(this[Wd]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("baseFrequencyX"),setAttribute:t=>this.setAttribute("baseFrequencyX",t)})),this[Wd]}get baseFrequencyY(){return this[zd]||(this[zd]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("baseFrequencyY"),setAttribute:t=>this.setAttribute("baseFrequencyY",t)})),this[zd]}get height(){return this[B]||(this[B]=new R(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[B]}get numOctaves(){return this[_d]||(this[_d]=new gi(b,this[m],{getAttribute:()=>this.getAttribute("numOctaves"),setAttribute:t=>this.setAttribute("numOctaves",t)})),this[_d]}get result(){return this[at]||(this[at]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[at]}get seed(){return this[$d]||(this[$d]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("seed"),setAttribute:t=>this.setAttribute("seed",t)})),this[$d]}get stitchTiles(){return this[Kd]||(this[Kd]=new Gt(b,this[m],{getAttribute:()=>this.getAttribute("stitchTiles"),setAttribute:t=>this.setAttribute("stitchTiles",t),values:["stitch","noStitch"],defaultValue:"stitch"})),this[Kd]}get type(){return this[ie]||(this[ie]=new Gt(b,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:t=>this.setAttribute("type",t),values:["fractalNoise","turbulence"],defaultValue:"turbulence"})),this[ie]}get width(){return this[V]||(this[V]=new R(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[D]||(this[D]=new R(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[D]}get y(){return this[O]||(this[O]=new R(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[O]}};g();var bb=class extends mt{[Ut]=null;[Xy]=null;[Zy]=null;[D]=null;[O]=null;[V]=null;[B]=null;get href(){return this[Ut]||(this[Ut]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Ut]}get filterUnits(){return this[Xy]||(this[Xy]=new Gt(b,this[m],{getAttribute:()=>this.getAttribute("filterUnits"),setAttribute:t=>this.setAttribute("filterUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[Xy]}get primitiveUnits(){return this[Zy]||(this[Zy]=new Gt(b,this[m],{getAttribute:()=>this.getAttribute("primitiveUnits"),setAttribute:t=>this.setAttribute("primitiveUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[Zy]}get height(){return this[B]||(this[B]=new R(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[B]}get width(){return this[V]||(this[V]=new R(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[D]||(this[D]=new R(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[D]}get y(){return this[O]||(this[O]=new R(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[O]}};g();var gb=class extends Be{[D]=null;[O]=null;[V]=null;[B]=null;get height(){return this[B]||(this[B]=new R(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[B]}get width(){return this[V]||(this[V]=new R(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[D]||(this[D]=new R(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[D]}get y(){return this[O]||(this[O]=new R(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[O]}};g();var Sb=class extends Be{};g();var Pb=class extends Be{[Ut]=null;[Dr]=null;[D]=null;[O]=null;[V]=null;[B]=null;get crossOrigin(){return this.getAttribute("crossorigin")}set crossOrigin(t){this.setAttribute("crossorigin",t);}get href(){return this[Ut]||(this[Ut]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Ut]}get decoding(){let t=this.getAttribute("decoding");switch(t){case "sync":case "async":case "auto":return t;default:return "auto"}}set decoding(t){this.setAttribute("decoding",t);}get preserveAspectRatio(){return this[Dr]||(this[Dr]=new Gn(b,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:t=>this.setAttribute("preserveAspectRatio",t)})),this[Dr]}get height(){return this[B]||(this[B]=new R(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[B]}get width(){return this[V]||(this[V]=new R(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[D]||(this[D]=new R(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[D]}get y(){return this[O]||(this[O]=new R(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[O]}decode(){return Promise.resolve()}};g();var Ab=class extends _r{[bs]=null;[gs]=null;[Ss]=null;[Ps]=null;get x1(){return this[bs]||(this[bs]=new R(b,this[m],{getAttribute:()=>this.getAttribute("x1"),setAttribute:t=>this.setAttribute("x1",t)})),this[bs]}get y1(){return this[gs]||(this[gs]=new R(b,this[m],{getAttribute:()=>this.getAttribute("y1"),setAttribute:t=>this.setAttribute("y1",t)})),this[gs]}get x2(){return this[Ss]||(this[Ss]=new R(b,this[m],{getAttribute:()=>this.getAttribute("x2"),setAttribute:t=>this.setAttribute("x2",t)})),this[Ss]}get y2(){return this[Ps]||(this[Ps]=new R(b,this[m],{getAttribute:()=>this.getAttribute("y2"),setAttribute:t=>this.setAttribute("y2",t)})),this[Ps]}};g();g();var ra=class extends Be{static SVG_SPREADMETHOD_UNKNOWN=0;static SVG_SPREADMETHOD_PAD=1;static SVG_SPREADMETHOD_REFLECT=2;static SVG_SPREADMETHOD_REPEAT=3;[Ut]=null;[td]=null;[ed]=null;[rd]=null;get href(){return this[Ut]||(this[Ut]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Ut]}get gradientUnits(){return this[td]||(this[td]=new Gt(b,this[m],{getAttribute:()=>this.getAttribute("gradientUnits"),setAttribute:t=>this.setAttribute("gradientUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"objectBoundingBox"})),this[td]}get gradientTransform(){return this[ed]||(this[ed]=new qi(b,this[m],{getAttribute:()=>this.getAttribute("gradientTransform"),setAttribute:t=>this.setAttribute("gradientTransform",t)})),this[ed]}get spreadMethod(){return this[rd]||(this[rd]=new Gt(b,this[m],{getAttribute:()=>this.getAttribute("spreadMethod"),setAttribute:t=>this.setAttribute("spreadMethod",t),values:["pad","reflect","repeat"],defaultValue:"pad"})),this[rd]}};var wb=class extends ra{[bs]=null;[gs]=null;[Ss]=null;[Ps]=null;get x1(){return this[bs]||(this[bs]=new R(b,this[m],{getAttribute:()=>this.getAttribute("x1"),setAttribute:t=>this.setAttribute("x1",t)})),this[bs]}get y1(){return this[gs]||(this[gs]=new R(b,this[m],{getAttribute:()=>this.getAttribute("y1"),setAttribute:t=>this.setAttribute("y1",t)})),this[gs]}get x2(){return this[Ss]||(this[Ss]=new R(b,this[m],{getAttribute:()=>this.getAttribute("x2"),setAttribute:t=>this.setAttribute("x2",t)})),this[Ss]}get y2(){return this[Ps]||(this[Ps]=new R(b,this[m],{getAttribute:()=>this.getAttribute("y2"),setAttribute:t=>this.setAttribute("y2",t)})),this[Ps]}};g();g();var Uc=class{[m];[L];[C];[ge]=null;[Se]=null;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[L]=r.getAttribute,this[C]=r.setAttribute;}get animVal(){return this[Se]||(this[Se]=new js(b,this[m],{readOnly:true,getAttribute:this[L]})),this[Se]}set animVal(t){}get baseVal(){return this[ge]||(this[ge]=new js(b,this[m],{getAttribute:this[L],setAttribute:this[C]})),this[ge]}set baseVal(t){}};var xb=class extends mt{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;[Wy]=null;[zy]=null;[_y]=null;[$y]=null;[Ky]=null;[jy]=null;[qy]=null;[ps]=null;[Dr]=null;get markerUnits(){return this[Wy]||(this[Wy]=new Gt(b,this[m],{getAttribute:()=>this.getAttribute("markerUnits"),setAttribute:t=>this.setAttribute("markerUnits",t),values:["userSpaceOnUse","strokeWidth"],defaultValue:"strokeWidth"})),this[Wy]}get markerWidth(){return this[zy]||(this[zy]=new R(b,this[m],{getAttribute:()=>this.getAttribute("markerWidth"),setAttribute:t=>this.setAttribute("markerWidth",t)})),this[zy]}get markerHeight(){return this[_y]||(this[_y]=new R(b,this[m],{getAttribute:()=>this.getAttribute("markerHeight"),setAttribute:t=>this.setAttribute("markerHeight",t)})),this[_y]}get orientType(){return this[$y]||(this[$y]=new Gt(b,this[m],{getAttribute:()=>this.getAttribute("orient"),setAttribute:t=>this.setAttribute("orient",t),values:["auto",null],defaultValue:"auto"})),this[$y]}get orientAngle(){return this[Ky]||(this[Ky]=new Uc(b,this[m],{getAttribute:()=>this.getAttribute("orient"),setAttribute:t=>this.setAttribute("orient",t)})),this[Ky]}get refX(){return this[jy]||(this[jy]=new R(b,this[m],{getAttribute:()=>this.getAttribute("refX"),setAttribute:t=>this.setAttribute("refX",t)})),this[jy]}get refY(){return this[qy]||(this[qy]=new R(b,this[m],{getAttribute:()=>this.getAttribute("refY"),setAttribute:t=>this.setAttribute("refY",t)})),this[qy]}get viewBox(){return this[ps]||(this[ps]=new ta(b,this[m],{getAttribute:()=>this.getAttribute("viewBox"),setAttribute:t=>this.setAttribute("viewBox",t)})),this[ps]}get preserveAspectRatio(){return this[Dr]||(this[Dr]=new Gn(b,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:t=>this.setAttribute("preserveAspectRatio",t)})),this[Dr]}setOrientToAuto(){this.setAttribute("orient","auto");}setOrientToAngle(t){this.setAttribute("orient",t.valueAsString);}};g();var Eb=class extends mt{[Qy]=null;[Jy]=null;[D]=null;[O]=null;[V]=null;[B]=null;get maskUnits(){return this[Qy]||(this[Qy]=new Gt(b,this[m],{getAttribute:()=>this.getAttribute("maskUnits"),setAttribute:t=>this.setAttribute("maskUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[Qy]}get maskContentUnits(){return this[Jy]||(this[Jy]=new Gt(b,this[m],{getAttribute:()=>this.getAttribute("maskContentUnits"),setAttribute:t=>this.setAttribute("maskContentUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[Jy]}get width(){return this[V]||(this[V]=new R(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get height(){return this[B]||(this[B]=new R(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[B]}get x(){return this[D]||(this[D]=new R(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[D]}get y(){return this[O]||(this[O]=new R(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[O]}};g();var vb=class extends mt{};g();var Tb=class extends mt{[Ut]=null;get href(){return this[Ut]||(this[Ut]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Ut]}};g();var Cb=class extends _r{};g();var kb=class extends mt{[Ut]=null;[od]=null;[nd]=null;[id]=null;[D]=null;[O]=null;[V]=null;[B]=null;get href(){return this[Ut]||(this[Ut]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Ut]}get patternUnits(){return this[od]||(this[od]=new Gt(b,this[m],{getAttribute:()=>this.getAttribute("patternUnits"),setAttribute:t=>this.setAttribute("patternUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"objectBoundingBox"})),this[od]}get patternContentUnits(){return this[nd]||(this[nd]=new Gt(b,this[m],{getAttribute:()=>this.getAttribute("patternContentUnits"),setAttribute:t=>this.setAttribute("patternContentUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[nd]}get patternTransform(){return this[id]||(this[id]=new qi(b,this[m],{getAttribute:()=>this.getAttribute("patternTransform"),setAttribute:t=>this.setAttribute("patternTransform",t)})),this[id]}get width(){return this[V]||(this[V]=new R(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get height(){return this[B]||(this[B]=new R(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[B]}get x(){return this[D]||(this[D]=new R(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[D]}get y(){return this[O]||(this[O]=new R(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[O]}};g();g();var rB=/[\t\f\n\r, ]+/,Yi=class o{[m];[L];[C];[et]=false;[$]={items:[],attributeValue:""};constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[et]=!!r.readOnly,this[L]=r.getAttribute,this[C]=r.setAttribute;let n=new De(this,[o]);return new Proxy(this,{get:(i,s)=>{if(s==="length"||s==="numberOfItems")return i[Q]().length;if(s in i||typeof s=="symbol")return n.bind(s),i[s];let l=Number(s);if(!isNaN(l))return i[Q]()[l]},set(i,s,l){if(n.bind(s),typeof s=="symbol")return i[s]=l,true;let a=Number(s);return isNaN(a)&&(i[s]=l),true},deleteProperty(i,s){if(typeof s=="symbol")return delete i[s],true;let l=Number(s);return isNaN(l)&&delete i[s],true},ownKeys(i){return Object.keys(i[Q]())},has(i,s){if(s in i)return true;if(typeof s=="symbol")return false;let l=Number(s);return !isNaN(l)&&l>=0&&l<i[Q]().length},defineProperty(i,s,l){return n.preventBinding(s),s in i?(Object.defineProperty(i,s,l),true):false},getOwnPropertyDescriptor(i,s){if(s in i||typeof s=="symbol")return;let l=Number(s),a=i[Q]();if(!isNaN(l)&&a[l])return {value:a[l],writable:false,enumerable:true,configurable:true}}})}get length(){return this[Q]().length}get numberOfItems(){return this[Q]().length}[Symbol.iterator](){return this[Q]().values()}clear(){if(this[et])throw new this[m].TypeError("Failed to execute 'clear' on 'SVGPointList': The object is read-only.");for(let t of this[$].items)t[L]=null,t[C]=null;this[$].items=[],this[$].attributeValue="",this[C]("");}initialize(t){if(this[et])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 Cr))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");for(let e of this[$].items)e[L]=null,e[C]=null;return t[L]=()=>t[F],t[C]=()=>{this[$].attributeValue=this[Q]().map(e=>e[F]||"0 0").join(" "),this[C](this[$].attributeValue);},this[$].items=[t],this[$].attributeValue=t[F],this[C](t[F]||""),t}getItem(t){let e=this[Q]();return typeof t=="number"||(t=Number(t),t=isNaN(t)?0:t),e[t]?e[t]:null}insertItemBefore(t,e){if(this[et])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 Cr))throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let r=this[Q](),n=r.indexOf(t);return n!==-1&&r.splice(n,1),e<0?e=0:e>r.length&&(e=r.length),r.splice(e,0,t),t[L]=()=>t[F],t[C]=()=>{this[$].attributeValue=this[Q]().map(i=>i[F]||"0 0").join(" "),this[C](this[$].attributeValue);},this[$].attributeValue=r.map(i=>i[F]||"0 0").join(" "),this[C](this[$].attributeValue),t}replaceItem(t,e){if(this[et])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 Cr))throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let r=this[Q](),n=r.indexOf(t);if(n===e)return t;n!==-1&&r.splice(n,1),e<0?e=0:e>=r.length&&(e=r.length-1),r[e]&&(r[e][L]=null,r[e][C]=null);let i=r[e];return r[e]=t,t[L]=()=>t[F],t[C]=()=>{this[$].attributeValue=this[Q]().map(s=>s[F]||"0 0").join(" "),this[C](this[$].attributeValue);},this[$].attributeValue=r.map(s=>s[F]||"0 0").join(" "),this[C](this[$].attributeValue),i}removeItem(t){if(this[et])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[Q]();if(t=Number(t),isNaN(t)&&(t=0),t>=e.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${t}) is greater than the maximum bound.`,k.indexSizeError);if(t<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${t}) is negative.`,k.indexSizeError);let r=e[t];return r&&(r[L]=null,r[C]=null),e.splice(t,1),this[C](e.map(n=>n[F]||"0 0").join(" ")),r}appendItem(t){if(this[et])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 Cr))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let e=this[Q](),r=e.indexOf(t);return r!==-1&&e.splice(r,1),e.push(t),t[L]=()=>t[F],t[C]=()=>{this[$].attributeValue=this[Q]().map(n=>n[F]||"0 0").join(" "),this[C](this[$].attributeValue);},this[$].attributeValue=e.map(n=>n[F]||"0 0").join(" "),this[C](this[$].attributeValue),t}[Q](){let t=this[L]()??"",e=this[$];if(e.attributeValue===t)return e.items;if(e.items.length)for(let i of e.items)i[L]=null,i[C]=null;let r=[],n=t.trim();if(n){let i=n.split(rB);for(let s=0,l=i.length;s<l;s+=2){let a=parseFloat(i[s]),u=i[s+1]!==void 0?" "+parseFloat(i[s+1]):"",c=new Cr(b,this[m],{readOnly:this[et],getAttribute:()=>c[F],setAttribute:()=>{this[$].attributeValue=this[Q]().map(h=>h[F]||"0 0").join(" "),this[C](this[$].attributeValue);}});c[F]=`${a}${u}`,r.push(c);}}return e.attributeValue=t,e.items=r,r}};var Nb=class extends _r{[ms]=null;[hs]=null;get animatedPoints(){return this[ms]||(this[ms]=new Yi(b,this[m],{readOnly:true,getAttribute:()=>this.getAttribute("points"),setAttribute:()=>{}})),this[ms]}get points(){return this[hs]||(this[hs]=new Yi(b,this[m],{getAttribute:()=>this.getAttribute("points"),setAttribute:t=>this.setAttribute("points",t)})),this[hs]}};g();var Lb=class extends _r{[ms]=null;[hs]=null;get animatedPoints(){return this[ms]||(this[ms]=new Yi(b,this[m],{readOnly:true,getAttribute:()=>this.getAttribute("points"),setAttribute:()=>{}})),this[ms]}get points(){return this[hs]||(this[hs]=new Yi(b,this[m],{getAttribute:()=>this.getAttribute("points"),setAttribute:t=>this.setAttribute("points",t)})),this[hs]}};g();var Mb=class extends ra{[jo]=null;[qo]=null;[fs]=null;[sd]=null;[ld]=null;get cx(){return this[jo]||(this[jo]=new R(b,this[m],{getAttribute:()=>this.getAttribute("cx"),setAttribute:t=>this.setAttribute("cx",t)})),this[jo]}get cy(){return this[qo]||(this[qo]=new R(b,this[m],{getAttribute:()=>this.getAttribute("cy"),setAttribute:t=>this.setAttribute("cy",t)})),this[qo]}get r(){return this[fs]||(this[fs]=new R(b,this[m],{getAttribute:()=>this.getAttribute("r"),setAttribute:t=>this.setAttribute("r",t)})),this[fs]}get fx(){return this[sd]||(this[sd]=new R(b,this[m],{getAttribute:()=>this.getAttribute("fx"),setAttribute:t=>this.setAttribute("fx",t)})),this[sd]}get fy(){return this[ld]||(this[ld]=new R(b,this[m],{getAttribute:()=>this.getAttribute("fy"),setAttribute:t=>this.setAttribute("fy",t)})),this[ld]}};g();var Ib=class extends _r{[D]=null;[O]=null;[V]=null;[B]=null;[ys]=null;[ds]=null;get x(){return this[D]||(this[D]=new R(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[D]}get y(){return this[O]||(this[O]=new R(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[O]}get height(){return this[B]||(this[B]=new R(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[B]}get width(){return this[V]||(this[V]=new R(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get rx(){return this[ys]||(this[ys]=new R(b,this[m],{getAttribute:()=>this.getAttribute("rx"),setAttribute:t=>this.setAttribute("rx",t)})),this[ys]}get ry(){return this[ds]||(this[ds]=new R(b,this[m],{getAttribute:()=>this.getAttribute("ry"),setAttribute:t=>this.setAttribute("ry",t)})),this[ds]}};g();var Rb=class extends Be{[Ut]=null;get href(){return this[Ut]||(this[Ut]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Ut]}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t);}};g();var Db=class extends Un{};g();var Ob=class extends mt{[As]=null;get offset(){return this[As]||(this[As]=new gt(b,this[m],{getAttribute:()=>this.getAttribute("offset"),setAttribute:t=>this.setAttribute("offset",t)})),this[As]}};g();var Fb=class extends mt{[lr]=null;[Gr]=this;[Da]=false;get media(){return this.getAttribute("media")||"all"}set media(t){this.setAttribute("media",t);}get type(){return this.getAttribute("type")||"text/css"}set type(t){this.setAttribute("type",t);}get title(){return this.getAttribute("title")||""}set title(t){this.setAttribute("title",t);}get disabled(){return this[Da]}set disabled(t){this[Da]=!!t;}get sheet(){return this[pt]?(this[lr]||(this[lr]=new this[N][m].CSSStyleSheet,this[lr].replaceSync(this.textContent)),this[lr]):null}[Ir](){super[Ir](),this[lr]=null;}[It](){super[It](),this[lr]=null;}[La](){this[lr]&&this[lr].replaceSync(this.textContent);}};g();var Bb=class extends Be{};g();var Vb=class extends Be{};g();g();g();var Wc=class extends Be{static LENGTHADJUST_UNKNOWN=0;static LENGTHADJUST_SPACING=1;static LENGTHADJUST_SPACINGANDGLYPHS=2;[ad]=null;[ud]=null;get textLength(){return this[ad]||(this[ad]=new R(b,this[m],{getAttribute:()=>this.getAttribute("textLength"),setAttribute:t=>this.setAttribute("textLength",t)})),this[ad]}get lengthAdjust(){return this[ud]||(this[ud]=new Gt(b,this[m],{getAttribute:()=>this.getAttribute("lengthAdjust"),setAttribute:t=>this.setAttribute("lengthAdjust",t),values:["spacing","spacingAndGlyphs"],defaultValue:"spacing"})),this[ud]}getNumberOfChars(){return 0}getComputedTextLength(){return 0}getSubStringLength(t,e){return 0}getStartPositionOfChar(t){return new Cr(b,this[m])}getEndPositionOfChar(t){return new Cr(b,this[m])}getExtentOfChar(t){return new di(b,this[m])}getRotationOfChar(t){return 0}getCharNumAtPosition(t){return 0}};g();g();var oB=/[\t\f\n\r, ]+/,Cu=class o{[m];[L];[C];[et]=false;[$]={items:[],attributeValue:""};constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[et]=!!r.readOnly,this[L]=r.getAttribute,this[C]=r.setAttribute;let n=new De(this,[o]);return new Proxy(this,{get:(i,s)=>{if(s==="length"||s==="numberOfItems")return i[Q]().length;if(s in i||typeof s=="symbol")return n.bind(s),i[s];let l=Number(s);if(!isNaN(l))return i[Q]()[l]},set(i,s,l){if(n.bind(s),typeof s=="symbol")return i[s]=l,true;let a=Number(s);return isNaN(a)&&(i[s]=l),true},deleteProperty(i,s){if(typeof s=="symbol")return delete i[s],true;let l=Number(s);return isNaN(l)&&delete i[s],true},ownKeys(i){return Object.keys(i[Q]())},has(i,s){if(s in i)return true;if(typeof s=="symbol")return false;let l=Number(s);return !isNaN(l)&&l>=0&&l<i[Q]().length},defineProperty(i,s,l){return n.preventBinding(s),s in i?(Object.defineProperty(i,s,l),true):false},getOwnPropertyDescriptor(i,s){if(s in i||typeof s=="symbol")return;let l=Number(s),a=i[Q]();if(!isNaN(l)&&a[l])return {value:a[l],writable:false,enumerable:true,configurable:true}}})}get length(){return this[Q]().length}get numberOfItems(){return this[Q]().length}[Symbol.iterator](){return this[Q]().values()}clear(){this[C]("");}initialize(t){if(this[et])throw new this[m].TypeError("Failed to execute 'initialize' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'initialize' on 'SVGLengthList': 1 arguments required, but only ${arguments.length} present.`);for(let e of this[$].items)e[L]=null,e[C]=null;return t[L]=()=>t[F],t[C]=()=>{this[$].attributeValue=this[Q]().map(e=>e[F]??"0").join(" "),this[C](this[$].attributeValue);},this[$].items=[t],this[$].attributeValue=t[F],this[C](t[F]||""),t}getItem(t){let e=this[Q]();return typeof t=="number"||(t=Number(t),t=isNaN(t)?0:t),e[t]?e[t]:null}insertItemBefore(t,e){if(this[et])throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGLengthList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertItemBefore' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let r=this[Q](),n=r.indexOf(t);return n!==-1&&r.splice(n,1),e<0?e=0:e>r.length&&(e=r.length),r.splice(e,0,t),t[L]=()=>t[F],t[C]=()=>{this[$].attributeValue=this[Q]().map(i=>i[F]??"0").join(" "),this[C](this[$].attributeValue);},this[$].attributeValue=r.map(i=>i[F]??"0").join(" "),this[C](this[$].attributeValue),t}replaceItem(t,e){if(this[et])throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceItem' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let r=this[Q](),n=r.indexOf(t);if(n===e)return t;n!==-1&&r.splice(n,1),e<0?e=0:e>=r.length&&(e=r.length-1),r[e]&&(r[e][L]=null,r[e][C]=null);let i=r[e];return r[e]=t,t[L]=()=>t[F],t[C]=()=>{this[$].attributeValue=this[Q]().map(s=>s[F]??"0").join(" "),this[C](this[$].attributeValue);},this[$].attributeValue=r.map(s=>s[F]??"0").join(" "),this[C](this[$].attributeValue),i}removeItem(t){if(this[et])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[Q]();if(t=Number(t),isNaN(t)&&(t=0),t>=e.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${t}) is greater than the maximum bound.`,k.indexSizeError);if(t<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${t}) is negative.`,k.indexSizeError);let r=e[t];return r&&(r[L]=null,r[C]=null),e.splice(t,1),this[C](e.map(n=>n[F]??"0").join(" ")),r}appendItem(t){if(this[et])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[Q](),r=e.indexOf(t);return r!==-1&&e.splice(r,1),e.push(t),t[L]=()=>t[F],t[C]=()=>{this[$].attributeValue=this[Q]().map(n=>n[F]??"0").join(" "),this[C](this[$].attributeValue);},this[$].attributeValue=e.map(n=>n[F]??"0").join(" "),this[C](this[$].attributeValue),t}[Q](){let t=this[L]()??"",e=this[$];if(e.attributeValue===t)return e.items;if(e.items.length)for(let i of e.items)i[L]=null,i[C]=null;let r=[],n=t.trim();if(n){let i=n.split(oB);for(let s=0,l=i.length;s<l;s++){let a=new fi(b,this[m],{readOnly:this[et],getAttribute:()=>a[F],setAttribute:u=>{a[F]=u;let c=r.map(h=>h[F]??"0").join(" ");e.attributeValue=c,this[C](c);}});a[F]=i[s],r.push(a);}}return e.attributeValue=t,e.items=r,r}};var qs=class{[m];[L];[C];[ge]=null;[Se]=null;constructor(t,e,r){if(t!==b)throw new TypeError("Illegal constructor");this[m]=e,this[L]=r.getAttribute,this[C]=r.setAttribute;}get animVal(){return this[Se]||(this[Se]=new Cu(b,this[m],{readOnly:true,getAttribute:this[L],setAttribute:this[C]})),this[Se]}set animVal(t){}get baseVal(){return this[ge]||(this[ge]=new Cu(b,this[m],{getAttribute:this[L],setAttribute:this[C]})),this[ge]}set baseVal(t){}};var oa=class extends Wc{[D]=null;[O]=null;[Zo]=null;[tn]=null;[Jd]=null;get x(){return this[D]||(this[D]=new qs(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[D]}get y(){return this[O]||(this[O]=new qs(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[O]}get dx(){return this[Zo]||(this[Zo]=new qs(b,this[m],{getAttribute:()=>this.getAttribute("dx"),setAttribute:t=>this.setAttribute("dx",t)})),this[Zo]}get dy(){return this[tn]||(this[tn]=new qs(b,this[m],{getAttribute:()=>this.getAttribute("dy"),setAttribute:t=>this.setAttribute("dy",t)})),this[tn]}get rotate(){return this[Jd]||(this[Jd]=new pn(b,this[m],{getAttribute:()=>this.getAttribute("rotate"),setAttribute:t=>this.setAttribute("rotate",t)})),this[Jd]}};var Hb=class extends oa{};g();var Gb=class extends Wc{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;[Ut]=null;[hd]=null;[vl]=null;[yd]=null;get href(){return this[Ut]||(this[Ut]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Ut]}get startOffset(){return this[hd]||(this[hd]=new R(b,this[m],{getAttribute:()=>this.getAttribute("startOffset"),setAttribute:t=>this.setAttribute("startOffset",t)})),this[hd]}get method(){return this[vl]||(this[vl]=new Gt(b,this[m],{getAttribute:()=>this.getAttribute("method"),setAttribute:t=>this.setAttribute("method",t),values:["align","stretch"],defaultValue:"align"})),this[vl]}get spacing(){return this[yd]||(this[yd]=new Gt(b,this[m],{getAttribute:()=>this.getAttribute("spacing"),setAttribute:t=>this.setAttribute("spacing",t),values:["auto","exact"],defaultValue:"exact"})),this[yd]}};g();var Ub=class extends mt{};g();var Wb=class extends oa{};g();var zb=class extends Be{[Ut]=null;[D]=null;[O]=null;[V]=null;[B]=null;get href(){return this[Ut]||(this[Ut]=new dt(b,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Ut]}get x(){return this[D]||(this[D]=new R(b,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[D]}get y(){return this[O]||(this[O]=new R(b,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[O]}get width(){return this[V]||(this[V]=new R(b,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get height(){return this[B]||(this[B]=new R(b,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[B]}};g();var _b=class extends mt{};g();var $b=class{static SVG_UNIT_TYPE_UNKNOWN=0;static SVG_UNIT_TYPE_USERSPACEONUSE=1;static SVG_UNIT_TYPE_OBJECTBOUNDINGBOX=2;SVG_UNIT_TYPE_UNKNOWN=0;SVG_UNIT_TYPE_USERSPACEONUSE=1;SVG_UNIT_TYPE_OBJECTBOUNDINGBOX=2;constructor(t){if(t!==b)throw new TypeError("Illegal constructor")}};g();var Kb=class{window;constructor(t){this.window=t;}enqueueReaction(t,e,r){let n=this.window.customElements[Ci]?.get(t.localName);if(n&&t[N]===this.window.document)switch(e){case "connectedCallback":if(n.lifecycleCallbacks.connectedCallback){let i=n.lifecycleCallbacks.connectedCallback?.call(t);if(i instanceof Promise){let s=new rt(this.window).getAsyncTaskManager();if(s){let l=s.startTask();i.then(()=>s.endTask(l)).catch(()=>s.endTask(l));}}}break;case "disconnectedCallback":n.lifecycleCallbacks.disconnectedCallback&&n.lifecycleCallbacks.disconnectedCallback.call(t);break;case "attributeChangedCallback":n.lifecycleCallbacks.attributeChangedCallback&&r?.length&&n.observedAttributes.has(r[0])&&n.lifecycleCallbacks.attributeChangedCallback.apply(t,r);break}}};g();var Hh=class extends I{state;hasUAVisualTransition;constructor(t,e=null){super(t),this.state=e?.state??null,this.hasUAVisualTransition=e?.hasUAVisualTransition??false;}};g();var jb=class extends I{code;reason;wasClean;constructor(t,e=null){super(t,e),this.code=e?.code??0,this.reason=e?.reason??"",this.wasClean=e?.wasClean??false;}};g();var zc=class o{[ls]=null;[V]=0;[B]=0;[No]=null;constructor(t,e,r,n,i,s,l,a){if(t!==b)throw new TypeError("Illegal constructor");let u=null;if(r instanceof o){if(r[ls]===null)throw new e.DOMException("Failed to execute 'createImageBitmap' on 'Window': The image source is not usable.",k.invalidStateError);u=r;}if(r instanceof Gs){if(!r[Mt])throw new e.DOMException("Failed to execute 'createImageBitmap' on 'Window': The image source is not usable.",k.invalidStateError);u=r;}else {if(r instanceof du)throw new e.DOMException("Failed to execute 'createImageBitmap' on 'Window': HTMLVideoElement is not supported as an image source yet in Happy DOM.",k.invalidStateError);(r instanceof pu||r instanceof Hs)&&(u=r);}if(u===null)throw new e.TypeError("Failed to execute 'createImageBitmap' on 'Window': The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'.");this[V]=u.width,this[B]=u.height;let c=0,h=0;if(typeof n=="number"&&typeof i=="number"&&typeof s=="number"&&typeof l=="number"){if(c=n,h=i,this[V]=s,this[B]=l,a!==void 0&&typeof a!="object")throw new e.TypeError("The provided value is not of type 'ImageBitmapOptions'.");this[No]=a||null;}else if(typeof n=="number"&&typeof i=="number"){if(this[V]=n,this[B]=i,s!==void 0&&typeof s!="object")throw new e.TypeError("The provided value is not of type 'ImageBitmapOptions'.");this[No]=s||null;}else if(typeof n=="object")this[No]=n;else if(n!==void 0)throw new e.TypeError("Failed to execute 'createImageBitmap' on 'Window': Overload resolution failed.");let f=new rt(e).getSettings(),d=new e.OffscreenCanvas(this[V],this[B]);f?.canvasAdapter&&(d.getContext("2d").drawImage(u,-c,-h,u.width,u.height),this[ls]=d);}get width(){return this[V]}get height(){return this[B]}close(){this[ls]=null,this[No]=null,this[V]=0,this[B]=0;}};var ku={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)},Qx=setTimeout.toString().includes("new Timeout"),mB=(()=>{try{return new Function("return true;")(),!0}catch{return false}})(),hB=(()=>{try{return globalThis.Function.$UNFROZEN$=!0,delete globalThis.Function.$UNFROZEN$,!0}catch{return false}})(),Jx=class{constructor(){throw new TypeError("Illegal constructor")}},jS=class{callback;constructor(t){this.callback=t;}},En=class o extends Ot{Node=Et;Attr=em;ShadowRoot=mh;ProcessingInstruction=ph;Element=zr;CharacterData=zi;DocumentType=Os;HTMLAnchorElement=nm;HTMLButtonElement=cm;HTMLOptGroupElement=Gm;HTMLOptionElement=Ws;HTMLElement=U;HTMLUnknownElement=ch;HTMLTemplateElement=nh;HTMLInputElement=Cm;HTMLSelectElement=Qm;HTMLTextAreaElement=ih;HTMLImageElement=Gs;HTMLStyleElement=Zm;HTMLLabelElement=km;HTMLSlotElement=Mx;HTMLMetaElement=Om;HTMLMediaElement=Vs;HTMLAudioElement=uu;HTMLVideoElement=du;HTMLBaseElement=lm;HTMLDialogElement=dm;HTMLScriptElement=Ym;HTMLLinkElement=Im;HTMLIFrameElement=vm;HTMLFormElement=Pm;HTMLUListElement=uh;HTMLTrackElement=ah;HTMLTableRowElement=oh;HTMLTitleElement=lh;HTMLTimeElement=sh;HTMLTableSectionElement=Ki;HTMLTableCellElement=th;HTMLTableElement=rh;HTMLSpanElement=Xm;HTMLSourceElement=Jm;HTMLQuoteElement=jm;HTMLProgressElement=Km;HTMLPreElement=$m;HTMLPictureElement=_m;HTMLParamElement=zm;HTMLParagraphElement=Wm;HTMLOutputElement=Um;HTMLOListElement=Vm;HTMLObjectElement=Hm;HTMLMeterElement=Fm;HTMLMenuElement=Dm;HTMLMapElement=Rm;HTMLLIElement=Lm;HTMLLegendElement=Nm;HTMLModElement=Bm;HTMLHtmlElement=Em;HTMLHRElement=xm;HTMLHeadElement=Am;HTMLHeadingElement=wm;HTMLFieldSetElement=mu;HTMLEmbedElement=bm;HTMLDListElement=pm;HTMLDivElement=fm;HTMLDetailsElement=ym;HTMLDataListElement=hm;HTMLDataElement=mm;HTMLTableColElement=eh;HTMLTableCaptionElement=yu;HTMLCanvasElement=pu;HTMLBRElement=um;HTMLBodyElement=am;HTMLAreaElement=im;SVGSVGElement=Vh;SVGAnimateElement=Vf;SVGAnimateMotionElement=Hf;SVGAnimateTransformElement=Gf;SVGCircleElement=Uf;SVGClipPathElement=Wf;SVGDefsElement=zf;SVGDescElement=_f;SVGEllipseElement=$f;SVGFEBlendElement=Kf;SVGFEColorMatrixElement=jf;SVGFEComponentTransferElement=qf;SVGFECompositeElement=Yf;SVGFEConvolveMatrixElement=Qf;SVGFEDiffuseLightingElement=Jf;SVGFEDisplacementMapElement=Xf;SVGFEDistantLightElement=Zf;SVGFEDropShadowElement=tb;SVGFEFloodElement=eb;SVGFEFuncAElement=rb;SVGFEFuncBElement=ob;SVGFEFuncGElement=nb;SVGFEFuncRElement=ib;SVGFEGaussianBlurElement=sb;SVGFEImageElement=lb;SVGFEMergeElement=ab;SVGFEMergeNodeElement=ub;SVGFEMorphologyElement=cb;SVGFEOffsetElement=pb;SVGFEPointLightElement=mb;SVGFESpecularLightingElement=hb;SVGFESpotLightElement=yb;SVGFETileElement=db;SVGFETurbulenceElement=fb;SVGFilterElement=bb;SVGForeignObjectElement=gb;SVGGElement=Sb;SVGImageElement=Pb;SVGLineElement=Ab;SVGLinearGradientElement=wb;SVGMarkerElement=xb;SVGMaskElement=Eb;SVGMetadataElement=vb;SVGMPathElement=Tb;SVGPathElement=Cb;SVGPatternElement=kb;SVGPolygonElement=Nb;SVGPolylineElement=Lb;SVGRadialGradientElement=Mb;SVGRectElement=Ib;SVGScriptElement=Rb;SVGSetElement=Db;SVGStopElement=Ob;SVGStyleElement=Fb;SVGSwitchElement=Bb;SVGSymbolElement=Vb;SVGTextElement=Hb;SVGTextPathElement=Gb;SVGTitleElement=Ub;SVGTSpanElement=Wb;SVGUseElement=zb;SVGViewElement=_b;SVGElement=mt;SVGAnimationElement=Un;SVGComponentTransferFunctionElement=Wn;SVGGeometryElement=_r;SVGGradientElement=ra;SVGTextPositioningElement=oa;SVGGraphicsElement=Be;Event=I;UIEvent=Fr;CustomEvent=zp;CloseEvent=jb;AnimationEvent=Up;KeyboardEvent=$p;MessageEvent=Kp;MouseEvent=pr;PointerEvent=eu;FocusEvent=Hi;WheelEvent=qp;InputEvent=_p;ErrorEvent=Rs;StorageEvent=mf;SubmitEvent=ru;ProgressEvent=on;MediaQueryListEvent=_a;HashChangeEvent=tu;ClipboardEvent=Wp;CookieChangeEvent=Ua;TouchEvent=jp;PopStateEvent=Hh;Touch=Gp;AudioProcessingEvent=I;BeforeInputEvent=I;BeforeUnloadEvent=I;BlobEvent=I;CompositionEvent=I;CSSFontFaceLoadEvent=I;DeviceLightEvent=I;DeviceMotionEvent=I;DeviceOrientationEvent=I;DeviceProximityEvent=I;DOMTransactionEvent=I;DragEvent=I;EditingBeforeInputEvent=I;FetchEvent=I;GamepadEvent=I;IDBVersionChangeEvent=I;MediaStreamEvent=I;MutationEvent=I;OfflineAudioCompletionEvent=I;OverconstrainedError=I;PageTransitionEvent=I;PaymentRequestUpdateEvent=I;RelatedEvent=I;RTCDataChannelEvent=I;RTCIdentityErrorEvent=I;RTCIdentityEvent=I;RTCPeerConnectionIceEvent=I;SensorEvent=I;SVGEvent=I;SVGZoomEvent=I;TimeEvent=I;TrackEvent=I;TransitionEvent=I;UserProximityEvent=I;WebGLContextEvent=I;TextEvent=I;Permissions=su;History=Ac;Navigator=tm;Clipboard=Ga;TimeRanges=Gl;TextTrackCueList=jl;ValidityState=So;MutationRecord=ln;IntersectionObserver=Xp;IntersectionObserverEntry=Zp;CSSStyleDeclaration=bo;CSSRule=wn;CSSContainerRule=$a;CSSFontFaceRule=Ka;CSSKeyframeRule=Ms;CSSKeyframesRule=ja;CSSMediaRule=Ya;CSSStyleRule=Is;CSSSupportsRule=Xa;CSSConditionRule=ai;CSSGroupingRule=li;CSSScopeRule=Ls;DOMRect=mi;DOMRectReadOnly=lu;Plugin=df;PluginArray=Ec;Location=wc;CustomElementRegistry=bc;ResizeObserver=hh;Blob=we;File=rn;Storage=Su;CookieStore=hc;MimeType=yf;MimeTypeArray=xc;NodeFilter=ke;ImageBitmap=zc;HTMLCollection=Fe;HTMLFormControlCollection=hu;HTMLOptionsCollection=Rc;NodeList=In;RadioNodeList=kc;FileList=Wl;Screen=ql;ScreenDetails=Dc;ScreenDetailed=bu;NamedNodeMap=Fs;TreeWalker=zs;NodeIterator=Pu;DataTransfer=Hp;DataTransferItem=Vi;DataTransferItemList=Za;XMLSerializer=yh;ClipboardItem=Op;Selection=gu;CSSUnitValue=xe;SVGAngle=js;SVGAnimatedAngle=Uc;SVGAnimatedBoolean=Gc;SVGAnimatedEnumeration=Gt;SVGAnimatedInteger=gi;SVGAnimatedLength=R;SVGAnimatedNumber=gt;SVGAnimatedNumberList=pn;SVGAnimatedPreserveAspectRatio=Gn;SVGAnimatedRect=ta;SVGAnimatedString=dt;SVGAnimatedTransformList=qi;SVGLength=fi;SVGLengthList=Cu;SVGMatrix=Ks;SVGNumber=bi;SVGNumberList=Tu;SVGPoint=Cr;SVGPointList=Yi;SVGPreserveAspectRatio=vu;SVGRect=di;SVGStringList=ji;SVGTransform=xn;SVGTransformList=Eu;SVGAnimatedLengthList=qs;SVGUnitTypes=$b;StylePropertyMap=Ja;StylePropertyMapReadOnly=Qa;MediaList=qa;CSSKeywordValue=Ml;CSSStyleValue=Il;Window=this.constructor;URLSearchParams=URLSearchParams$1;WritableStream=Fl.Writable;ReadableStream=ReadableStream;TransformStream=Fl.Transform;PerformanceObserver=PerformanceObserver;PerformanceEntry=PerformanceEntry;PerformanceObserverEntryList=Jx;document;customElements=new bc(this);window=this;globalThis=this;performance=performance;screenLeft=0;screenTop=0;screenX=0;screenY=0;crypto=webcrypto;TextEncoder=TextEncoder;TextDecoder=TextDecoder$1;closed=false;console;name="";Buffer=Buffer$1;[va]=[];[dn];[Lo];[rr];[pS];[mS];[hS];[yS];[TS];[Ma]=this;[ii]=this;[$o]=this;[m]=this;[Ww]=this;[Aa]=-1;[Tl]=new Kb(this);[ks]={json:new Map,css:new Map,esm:new Map};[sc]=null;[Ba]=[];[y]=new Map;[Lp]=new Map;#t;#e=null;#r=null;#o=null;#n=null;#i=null;#l={timeouts:null};#u=[];#a=[];constructor(t,e){super(),this.#t=t,this[zw](),this.console=t.page.console,this[dn]=new ff(t),this[pS]=new tm(this),this[mS]=new ql,this[hS]=new Su,this[yS]=new Su,this[TS]=new hc(b,this),this[Lo]=new wc(this.#t,e?.url??"about:blank"),this[rr]=new Ac(this.#t,this),t[rr].currentItem.href=e?.url??"about:blank",rt.setWindowBrowserFrameRelation(this,this.#t),this[Ey](),Ff.extendClasses(this),this.document=new this.HTMLDocument,this.document[ao]=this;let r=t[Tt].startTask(()=>this[dn].destroy());this[dn].waitUntilComplete().then(()=>{t[Tt].endTask(r),this.document[Ta]=DS.complete,this.document.dispatchEvent(new I("readystatechange"));let n=new I("load");n[kn]=this,n[Jr]=this.document,n[Zr]=Ae.atTarget,this.dispatchEvent(n),n[kn]=null,n[Zr]=Ae.none,n[Fa]=false;}),this[Gw]();}get onsearch(){return this[y].get("onsearch")??null}set onsearch(t){this[y].set("onsearch",t);}get onappinstalled(){return this[y].get("onappinstalled")??null}set onappinstalled(t){this[y].set("onappinstalled",t);}get onbeforeinstallprompt(){return this[y].get("onbeforeinstallprompt")??null}set onbeforeinstallprompt(t){this[y].set("onbeforeinstallprompt",t);}get onabort(){return this[y].get("onabort")??null}set onabort(t){this[y].set("onabort",t);}get onbeforeinput(){return this[y].get("onbeforeinput")??null}set onbeforeinput(t){this[y].set("onbeforeinput",t);}get onbeforematch(){return this[y].get("onbeforematch")??null}set onbeforematch(t){this[y].set("onbeforematch",t);}get onbeforetoggle(){return this[y].get("onbeforetoggle")??null}set onbeforetoggle(t){this[y].set("onbeforetoggle",t);}get onblur(){return this[y].get("onblur")??null}set onblur(t){this[y].set("onblur",t);}get oncancel(){return this[y].get("oncancel")??null}set oncancel(t){this[y].set("oncancel",t);}get oncanplay(){return this[y].get("oncanplay")??null}set oncanplay(t){this[y].set("oncanplay",t);}get oncanplaythrough(){return this[y].get("oncanplaythrough")??null}set oncanplaythrough(t){this[y].set("oncanplaythrough",t);}get onchange(){return this[y].get("onchange")??null}set onchange(t){this[y].set("onchange",t);}get onclick(){return this[y].get("onclick")??null}set onclick(t){this[y].set("onclick",t);}get onclose(){return this[y].get("onclose")??null}set onclose(t){this[y].set("onclose",t);}get oncommand(){return this[y].get("oncommand")??null}set oncommand(t){this[y].set("oncommand",t);}get oncontentvisibilityautostatechange(){return this[y].get("oncontentvisibilityautostatechange")??null}set oncontentvisibilityautostatechange(t){this[y].set("oncontentvisibilityautostatechange",t);}get oncontextlost(){return this[y].get("oncontextlost")??null}set oncontextlost(t){this[y].set("oncontextlost",t);}get oncontextmenu(){return this[y].get("oncontextmenu")??null}set oncontextmenu(t){this[y].set("oncontextmenu",t);}get oncontextrestored(){return this[y].get("oncontextrestored")??null}set oncontextrestored(t){this[y].set("oncontextrestored",t);}get oncuechange(){return this[y].get("oncuechange")??null}set oncuechange(t){this[y].set("oncuechange",t);}get ondblclick(){return this[y].get("ondblclick")??null}set ondblclick(t){this[y].set("ondblclick",t);}get ondrag(){return this[y].get("ondrag")??null}set ondrag(t){this[y].set("ondrag",t);}get ondragend(){return this[y].get("ondragend")??null}set ondragend(t){this[y].set("ondragend",t);}get ondragenter(){return this[y].get("ondragenter")??null}set ondragenter(t){this[y].set("ondragenter",t);}get ondragleave(){return this[y].get("ondragleave")??null}set ondragleave(t){this[y].set("ondragleave",t);}get ondragover(){return this[y].get("ondragover")??null}set ondragover(t){this[y].set("ondragover",t);}get ondragstart(){return this[y].get("ondragstart")??null}set ondragstart(t){this[y].set("ondragstart",t);}get ondrop(){return this[y].get("ondrop")??null}set ondrop(t){this[y].set("ondrop",t);}get ondurationchange(){return this[y].get("ondurationchange")??null}set ondurationchange(t){this[y].set("ondurationchange",t);}get onemptied(){return this[y].get("onemptied")??null}set onemptied(t){this[y].set("onemptied",t);}get onended(){return this[y].get("onended")??null}set onended(t){this[y].set("onended",t);}get onerror(){return this[y].get("onerror")??null}set onerror(t){this[y].set("onerror",t);}get onfocus(){return this[y].get("onfocus")??null}set onfocus(t){this[y].set("onfocus",t);}get onformdata(){return this[y].get("onformdata")??null}set onformdata(t){this[y].set("onformdata",t);}get oninput(){return this[y].get("oninput")??null}set oninput(t){this[y].set("oninput",t);}get oninvalid(){return this[y].get("oninvalid")??null}set oninvalid(t){this[y].set("oninvalid",t);}get onkeydown(){return this[y].get("onkeydown")??null}set onkeydown(t){this[y].set("onkeydown",t);}get onkeypress(){return this[y].get("onkeypress")??null}set onkeypress(t){this[y].set("onkeypress",t);}get onkeyup(){return this[y].get("onkeyup")??null}set onkeyup(t){this[y].set("onkeyup",t);}get onload(){return this[y].get("onload")??null}set onload(t){this[y].set("onload",t);}get onloadeddata(){return this[y].get("onloadeddata")??null}set onloadeddata(t){this[y].set("onloadeddata",t);}get onloadedmetadata(){return this[y].get("onloadedmetadata")??null}set onloadedmetadata(t){this[y].set("onloadedmetadata",t);}get onloadstart(){return this[y].get("onloadstart")??null}set onloadstart(t){this[y].set("onloadstart",t);}get onmousedown(){return this[y].get("onmousedown")??null}set onmousedown(t){this[y].set("onmousedown",t);}get onmouseenter(){return this[y].get("onmouseenter")??null}set onmouseenter(t){this[y].set("onmouseenter",t);}get onmouseleave(){return this[y].get("onmouseleave")??null}set onmouseleave(t){this[y].set("onmouseleave",t);}get onmousemove(){return this[y].get("onmousemove")??null}set onmousemove(t){this[y].set("onmousemove",t);}get onmouseout(){return this[y].get("onmouseout")??null}set onmouseout(t){this[y].set("onmouseout",t);}get onmouseover(){return this[y].get("onmouseover")??null}set onmouseover(t){this[y].set("onmouseover",t);}get onmouseup(){return this[y].get("onmouseup")??null}set onmouseup(t){this[y].set("onmouseup",t);}get onmousewheel(){return this[y].get("onmousewheel")??null}set onmousewheel(t){this[y].set("onmousewheel",t);}get onpause(){return this[y].get("onpause")??null}set onpause(t){this[y].set("onpause",t);}get onplay(){return this[y].get("onplay")??null}set onplay(t){this[y].set("onplay",t);}get onplaying(){return this[y].get("onplaying")??null}set onplaying(t){this[y].set("onplaying",t);}get onprogress(){return this[y].get("onprogress")??null}set onprogress(t){this[y].set("onprogress",t);}get onratechange(){return this[y].get("onratechange")??null}set onratechange(t){this[y].set("onratechange",t);}get onreset(){return this[y].get("onreset")??null}set onreset(t){this[y].set("onreset",t);}get onresize(){return this[y].get("onresize")??null}set onresize(t){this[y].set("onresize",t);}get onscroll(){return this[y].get("onscroll")??null}set onscroll(t){this[y].set("onscroll",t);}get onscrollend(){return this[y].get("onscrollend")??null}set onscrollend(t){this[y].set("onscrollend",t);}get onsecuritypolicyviolation(){return this[y].get("onsecuritypolicyviolation")??null}set onsecuritypolicyviolation(t){this[y].set("onsecuritypolicyviolation",t);}get onseeked(){return this[y].get("onseeked")??null}set onseeked(t){this[y].set("onseeked",t);}get onseeking(){return this[y].get("onseeking")??null}set onseeking(t){this[y].set("onseeking",t);}get onselect(){return this[y].get("onselect")??null}set onselect(t){this[y].set("onselect",t);}get onslotchange(){return this[y].get("onslotchange")??null}set onslotchange(t){this[y].set("onslotchange",t);}get onstalled(){return this[y].get("onstalled")??null}set onstalled(t){this[y].set("onstalled",t);}get onsubmit(){return this[y].get("onsubmit")??null}set onsubmit(t){this[y].set("onsubmit",t);}get onsuspend(){return this[y].get("onsuspend")??null}set onsuspend(t){this[y].set("onsuspend",t);}get ontimeupdate(){return this[y].get("ontimeupdate")??null}set ontimeupdate(t){this[y].set("ontimeupdate",t);}get ontoggle(){return this[y].get("ontoggle")??null}set ontoggle(t){this[y].set("ontoggle",t);}get onvolumechange(){return this[y].get("onvolumechange")??null}set onvolumechange(t){this[y].set("onvolumechange",t);}get onwaiting(){return this[y].get("onwaiting")??null}set onwaiting(t){this[y].set("onwaiting",t);}get onwebkitanimationend(){return this[y].get("onwebkitanimationend")??null}set onwebkitanimationend(t){this[y].set("onwebkitanimationend",t);}get onwebkitanimationiteration(){return this[y].get("onwebkitanimationiteration")??null}set onwebkitanimationiteration(t){this[y].set("onwebkitanimationiteration",t);}get onwebkitanimationstart(){return this[y].get("onwebkitanimationstart")??null}set onwebkitanimationstart(t){this[y].set("onwebkitanimationstart",t);}get onwebkittransitionend(){return this[y].get("onwebkittransitionend")??null}set onwebkittransitionend(t){this[y].set("onwebkittransitionend",t);}get onwheel(){return this[y].get("onwheel")??null}set onwheel(t){this[y].set("onwheel",t);}get onauxclick(){return this[y].get("onauxclick")??null}set onauxclick(t){this[y].set("onauxclick",t);}get ongotpointercapture(){return this[y].get("ongotpointercapture")??null}set ongotpointercapture(t){this[y].set("ongotpointercapture",t);}get onlostpointercapture(){return this[y].get("onlostpointercapture")??null}set onlostpointercapture(t){this[y].set("onlostpointercapture",t);}get onpointerdown(){return this[y].get("onpointerdown")??null}set onpointerdown(t){this[y].set("onpointerdown",t);}get onpointermove(){return this[y].get("onpointermove")??null}set onpointermove(t){this[y].set("onpointermove",t);}get onpointerup(){return this[y].get("onpointerup")??null}set onpointerup(t){this[y].set("onpointerup",t);}get onpointercancel(){return this[y].get("onpointercancel")??null}set onpointercancel(t){this[y].set("onpointercancel",t);}get onpointerover(){return this[y].get("onpointerover")??null}set onpointerover(t){this[y].set("onpointerover",t);}get onpointerout(){return this[y].get("onpointerout")??null}set onpointerout(t){this[y].set("onpointerout",t);}get onpointerenter(){return this[y].get("onpointerenter")??null}set onpointerenter(t){this[y].set("onpointerenter",t);}get onpointerleave(){return this[y].get("onpointerleave")??null}set onpointerleave(t){this[y].set("onpointerleave",t);}get onselectstart(){return this[y].get("onselectstart")??null}set onselectstart(t){this[y].set("onselectstart",t);}get onselectionchange(){return this[y].get("onselectionchange")??null}set onselectionchange(t){this[y].set("onselectionchange",t);}get onanimationcancel(){return this[y].get("onanimationcancel")??null}set onanimationcancel(t){this[y].set("onanimationcancel",t);}get onanimationend(){return this[y].get("onanimationend")??null}set onanimationend(t){this[y].set("onanimationend",t);}get onanimationiteration(){return this[y].get("onanimationiteration")??null}set onanimationiteration(t){this[y].set("onanimationiteration",t);}get onanimationstart(){return this[y].get("onanimationstart")??null}set onanimationstart(t){this[y].set("onanimationstart",t);}get ontransitionrun(){return this[y].get("ontransitionrun")??null}set ontransitionrun(t){this[y].set("ontransitionrun",t);}get ontransitionstart(){return this[y].get("ontransitionstart")??null}set ontransitionstart(t){this[y].set("ontransitionstart",t);}get ontransitionend(){return this[y].get("ontransitionend")??null}set ontransitionend(t){this[y].set("ontransitionend",t);}get ontransitioncancel(){return this[y].get("ontransitioncancel")??null}set ontransitioncancel(t){this[y].set("ontransitioncancel",t);}get onbeforexrselect(){return this[y].get("onbeforexrselect")??null}set onbeforexrselect(t){this[y].set("onbeforexrselect",t);}get onafterprint(){return this[y].get("onafterprint")??null}set onafterprint(t){this[y].set("onafterprint",t);}get onbeforeprint(){return this[y].get("onbeforeprint")??null}set onbeforeprint(t){this[y].set("onbeforeprint",t);}get onbeforeunload(){return this[y].get("onbeforeunload")??null}set onbeforeunload(t){this[y].set("onbeforeunload",t);}get onhashchange(){return this[y].get("onhashchange")??null}set onhashchange(t){this[y].set("onhashchange",t);}get onlanguagechange(){return this[y].get("onlanguagechange")??null}set onlanguagechange(t){this[y].set("onlanguagechange",t);}get onmessage(){return this[y].get("onmessage")??null}set onmessage(t){this[y].set("onmessage",t);}get onmessageerror(){return this[y].get("onmessageerror")??null}set onmessageerror(t){this[y].set("onmessageerror",t);}get onoffline(){return this[y].get("onoffline")??null}set onoffline(t){this[y].set("onoffline",t);}get ononline(){return this[y].get("ononline")??null}set ononline(t){this[y].set("ononline",t);}get onpagehide(){return this[y].get("onpagehide")??null}set onpagehide(t){this[y].set("onpagehide",t);}get onpageshow(){return this[y].get("onpageshow")??null}set onpageshow(t){this[y].set("onpageshow",t);}get onpopstate(){return this[y].get("onpopstate")??null}set onpopstate(t){this[y].set("onpopstate",t);}get onrejectionhandled(){return this[y].get("onrejectionhandled")??null}set onrejectionhandled(t){this[y].set("onrejectionhandled",t);}get onstorage(){return this[y].get("onstorage")??null}set onstorage(t){this[y].set("onstorage",t);}get onunhandledrejection(){return this[y].get("onunhandledrejection")??null}set onunhandledrejection(t){this[y].set("onunhandledrejection",t);}get onunload(){return this[y].get("onunload")??null}set onunload(t){this[y].set("onunload",t);}get ondevicemotion(){return this[y].get("ondevicemotion")??null}set ondevicemotion(t){this[y].set("ondevicemotion",t);}get ondeviceorientation(){return this[y].get("ondeviceorientation")??null}set ondeviceorientation(t){this[y].set("ondeviceorientation",t);}get ondeviceorientationabsolute(){return this[y].get("ondeviceorientationabsolute")??null}set ondeviceorientationabsolute(t){this[y].set("ondeviceorientationabsolute",t);}get onpointerrawupdate(){return this[y].get("onpointerrawupdate")??null}set onpointerrawupdate(t){this[y].set("onpointerrawupdate",t);}get onpageswap(){return this[y].get("onpageswap")??null}set onpageswap(t){this[y].set("onpageswap",t);}get onpagereveal(){return this[y].get("onpagereveal")??null}set onpagereveal(t){this[y].set("onpagereveal",t);}get onscrollsnapchange(){return this[y].get("onscrollsnapchange")??null}set onscrollsnapchange(t){this[y].set("onscrollsnapchange",t);}get onscrollsnapchanging(){return this[y].get("onscrollsnapchanging")??null}set onscrollsnapchanging(t){this[y].set("onscrollsnapchanging",t);}get ongamepadconnected(){return this[y].get("ongamepadconnected")??null}set ongamepadconnected(t){this[y].set("ongamepadconnected",t);}get ongamepaddisconnected(){return this[y].get("ongamepaddisconnected")??null}set ongamepaddisconnected(t){this[y].set("ongamepaddisconnected",t);}get self(){return this[Ma]}set self(t){this[Ma]=t;}get top(){return this[ii]}get parent(){return this[$o]}set parent(t){this[$o]=t;}get frames(){return this[Ww]}set frames(t){this[$o]=t;}get location(){return this[Lo]}set location(t){this[Lo].href=t;}get history(){return this[rr]}get navigator(){return this[pS]}get screen(){return this[mS]}get sessionStorage(){return this[hS]}get localStorage(){return this[yS]}get cookieStore(){return this[TS]}get opener(){return this.#t[Zn]}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 lf}get innerWidth(){return this.#e===null?this.#t.page.viewport.width:this.#e}set innerWidth(t){this.#e=t;}get innerHeight(){return this.#r===null?this.#t.page.viewport.height:this.#r}set innerHeight(t){this.#r=t;}get outerWidth(){return this.#o===null?this.#t.page.viewport.width:this.#o}set outerWidth(t){this.#o=t;}get outerHeight(){return this.#n===null?this.#t.page.viewport.height:this.#n}set outerHeight(t){this.#n=t;}get devicePixelRatio(){return this.#i===null?this.#t.page.viewport.devicePixelRatio:this.#i}set devicePixelRatio(t){this.#i=t;}getComputedStyle(t){if(!(t instanceof zr))throw new this.TypeError("Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.");return t[Xu]=t[Xu]||new bo(b,this,{element:t,computed:true}),t[Xu]}getSelection(){return this.document.getSelection()}scroll(t,e){if(typeof t!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scroll' on 'Window': The provided value is not of type 'ScrollToOptions'.");let r=typeof t=="object"?t:{left:t,top:e};if(r.behavior==="smooth")this.setTimeout(()=>{if(r.top!==void 0){let n=Number(r.top);this.document.documentElement.scrollTop=isNaN(n)?0:n;}if(r.left!==void 0){let n=Number(r.left);this.document.documentElement.scrollLeft=isNaN(n)?0:n;}});else {if(r.top!==void 0){let n=Number(r.top);this.document.documentElement.scrollTop=isNaN(n)?0:n;}if(r.left!==void 0){let n=Number(r.left);this.document.documentElement.scrollLeft=isNaN(n)?0:n;}}}scrollTo(t,e){if(typeof t!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scrollTo' on 'Window': The provided value is not of type 'ScrollToOptions'.");this.scroll(t,e);}scrollBy(t,e){if(typeof t!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scrollBy' on 'Window': The provided value is not of type 'ScrollToOptions'.");let r=typeof t=="object"?t:{left:t,top:e};this.scroll({left:this.document.documentElement.scrollLeft+(r.left??0),top:this.document.documentElement.scrollTop+(r.top??0),behavior:r.behavior});}blur(){}focus(){}open(t,e,r){return vf.openPage(this.#t,{url:t,target:e,features:r})}close(){this.#t.page.mainFrame===this.#t&&this.#t[Zn]&&(this[It](),this.#t.page.close());}matchMedia(t){return new fc({window:this,media:t})}getScreenDetails(){return Promise.resolve(new Dc)}setTimeout(t,e=0,...r){if(this.closed)return {};let n=this.#t.page.context.browser.settings;if(n.timer.preventTimerLoops){let l=new Error().stack,a=this.#u,u=this.#a,c=a.indexOf(l);if(c!==-1){if(u[c].timeout++,u[c].timeout>=(n.timer.preventTimerLoops===true?1:n.timer.preventTimerLoops.timeout??1))return {}}else a.push(l),u.push({timeout:0,requestAnimationFrame:0});}if(!e){let l=this.#l;if(!l.timeouts){let u=!n||!n.disableErrorCapturing&&n.errorCapture===be.tryAndCatch,c=ku.setTimeout(()=>{this.#t[Tt].endTimer(c);let h=l.timeouts;l.timeouts=null;for(let f of h)if(u){let d;try{d=f.callback();}catch(g){this[Pe](g);}d instanceof Promise&&d.catch(g=>this[Pe](g));}else f.callback();},0);l.timeouts=[],this.#t[Tt].startTimer(c);}let a=new jS(()=>t(...r));return l.timeouts.push(a),a}let i=!n||!n.disableErrorCapturing&&n.errorCapture===be.tryAndCatch,s=ku.setTimeout(()=>{if(this.#t[Tt].endTimer(s),i){let l;try{l=t(...r);}catch(a){this[Pe](a);}l instanceof Promise&&l.catch(a=>this[Pe](a));}else t(...r);},n?.timer.maxTimeout!==-1&&e&&e>n?.timer.maxTimeout?n?.timer.maxTimeout:e);return this.#t[Tt].startTimer(s),s}clearTimeout(t){if(t&&t instanceof jS){let e=this.#l;if(!e.timeouts)return;let r=e.timeouts.indexOf(t);r!==-1&&e.timeouts.splice(r,1);return}Qx&&(!t||t.constructor.name!=="Timeout")||(ku.clearTimeout(t),this.#t[Tt].endTimer(t));}setInterval(t,e=0,...r){if(this.closed)return {};let n=this.#t.page.context.browser.settings,i=!n||!n.disableErrorCapturing&&n.errorCapture===be.tryAndCatch,s=0,l=ku.setInterval(()=>{if(i){let a;try{a=t(...r);}catch(u){this.clearInterval(l),this[Pe](u);}a instanceof Promise&&a.catch(u=>{this.clearInterval(l),this[Pe](u);});}else t(...r);n?.timer.maxIntervalIterations!==-1&&(s>=n?.timer.maxIntervalIterations&&this.clearInterval(l),s++);},n?.timer.maxIntervalTime!==-1&&e&&e>n?.timer.maxIntervalTime?n?.timer.maxIntervalTime:e);return this.#t[Tt].startTimer(l),l}clearInterval(t){Qx&&(!t||t.constructor.name!=="Timeout")||(ku.clearInterval(t),this.#t[Tt].endTimer(t));}requestAnimationFrame(t){if(this.closed)return {};let e=this.#t.page.context.browser.settings;if(e.timer.preventTimerLoops){let i=new Error().stack,s=this.#u,l=this.#a,a=s.indexOf(i);if(a!==-1){if(l[a].requestAnimationFrame++,l[a].requestAnimationFrame>=(e.timer.preventTimerLoops===true?1:e.timer.preventTimerLoops.requestAnimationFrame??1))return {}}else s.push(i),l.push({timeout:0,requestAnimationFrame:0});}let r=!e||!e.disableErrorCapturing&&e.errorCapture===be.tryAndCatch,n=ku.setImmediate(()=>{if(this.#t[Tt].endImmediate(n),r){let i;try{i=t(this.performance.now());}catch(s){this[Pe](s);}i instanceof Promise&&i.catch(s=>this[Pe](s));}else t(this.performance.now());});return this.#t[Tt].startImmediate(n),n}cancelAnimationFrame(t){Qx&&(!t||t.constructor.name!=="Immediate")||(ku.clearImmediate(t),this.#t[Tt].endImmediate(t));}queueMicrotask(t){if(this.closed)return;let e=false,r=this.#t[Tt].startTask(()=>e=true),n=this.#t.page.context.browser.settings,i=!n||!n.disableErrorCapturing&&n.errorCapture===be.tryAndCatch;ku.queueMicrotask(()=>{if(!e)if(this.#t[Tt].endTask(r),i){let s;try{s=t();}catch(l){this[Pe](l);}s instanceof Promise&&s.catch(l=>this[Pe](l));}else t();});}async fetch(t,e){return this.closed?Promise.reject(new this.DOMException("Failed to execute 'fetch' on 'Window': The window is closed.",k.invalidStateError)):await new sn({browserFrame:this.#t,window:this,url:t,init:e}).send()}btoa(t){return Dp.btoa(t)}atob(t){return Dp.atob(t)}postMessage(t,e="*",r){if(!this.closed){if(e&&e!=="*"&&this.location.origin!==e)throw new this.DOMException(`Failed to execute 'postMessage' on 'Window': The target origin provided ('${e}') does not match the recipient window's origin ('${this.location.origin}').`,k.securityError);try{JSON.stringify(t);}catch{throw new this.DOMException("Failed to execute 'postMessage' on 'Window': The provided message cannot be serialized.",k.invalidStateError)}this.setTimeout(()=>this.dispatchEvent(new Kp("message",{data:t,origin:this.#t.parentFrame?this.#t.parentFrame.window.location.origin:this.#t.window.location.origin,source:this.#t.parentFrame?this.#t.parentFrame.window:this.#t.window,lastEventId:""})));}}resizeTo(t,e){if(!this.closed){if(!t||!e)throw new this.DOMException(`Failed to execute 'resizeTo' on 'Window': 2 arguments required, but only ${arguments.length} present.`);this.#t[yl]&&this.#t.page.setViewport({width:t,height:e});}}resizeBy(t,e){if(!this.closed){if(!t||!e)throw new this.DOMException(`Failed to execute 'resizeBy' on 'Window': 2 arguments required, but only ${arguments.length} present.`);if(this.#t[yl]){let r=this.#t.page.viewport;this.#t.page.setViewport({width:r.width+t,height:r.height+e});}}}async createImageBitmap(t,e,r,n,i,s){return new zc(b,this,t,e,r,n,i,s)}[Pe](t){this.#t.page.console.error(t),this.dispatchEvent(new Rs("error",{message:t.message,error:t}));}[Nn](t,e){return new Yx.Script(t,e).runInContext(this)}[Ey](){Yx.isContext(this)||(Yx.createContext(this),Zk.runInContext(this));}[zw](){let t=this.#t;(mB||hB)&&t.page.context.browser.settings.enableJavaScriptEvaluation&&!t.page.context.browser.settings.suppressInsecureJavaScriptEnvironmentWarning&&!t.page.context.browser.settings.suppressCodeGenerationFromStringsWarning&&console.warn(`
247
+ Warning! Happy DOM has JavaScript evaluation enabled and is running in an insecure environment.
248
+
249
+ 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.
250
+
251
+ It is recommended to disable code generation and freeze all builtins at process level by running node with the flags "--disallow-code-generation-from-strings" and "--frozen-intrinsics". You can suppress this warning by setting "suppressInsecureJavaScriptEnvironmentWarning" to "true" at your own risk.
252
+
253
+ For more information, see https://github.com/capricorn86/happy-dom/wiki/JavaScript-Evaluation-Warning
254
+
255
+ `);}[It](){if(this.closed)return;super[It](),this.closed=true;let t=this[va];for(let i of t)i[It]&&i[It]();this[va]=[];for(let i of this[Ba])i[It]();this[Ba]=[],this.document[It]();let e=this.document.createElement("html"),r=this.document.createElement("head"),n=this.document.createElement("body");e.appendChild(r),e.appendChild(n),this.document[Ft](e),this.location[It]&&this.location[It](),this.customElements[It]&&this.customElements[It](),this.history[It]&&this.history[It](),this[Lp].clear(),this[ks].json.clear(),this[ks].css.clear(),this[ks].esm.clear(),this.document[ho].clear(),this.document[tr]=null,this.document[ml]=null,this.document[Cn]=null,this.document[xa]=null,this[$o]=null,this[ii]=null,rt.removeWindowBrowserFrameRelation(this);}[Gw](){for(let t of [o,Ot]){let e=Object.getOwnPropertyDescriptors(t.prototype),r=Object.keys(e);for(let n of r){let i=e[n];i.get||i.set?Object.defineProperty(this,n,{...i,get:i.get?.bind(this),set:i.set?.bind(this)}):n!=="constructor"&&typeof i.value=="function"&&!i.value.toString().startsWith("class ")&&Object.defineProperty(this,n,{...i,value:i.value.bind(this)});}}}};g();var na=class{static evaluate(t,e){if(!t.window)throw new Error('The frame has been destroyed, the "window" property is not set.');return e=typeof e=="string"?new Script(e):e,e.runInContext(t.window)}static async evaluateModule(t,e){if(!t.window)throw new Error('The frame has been destroyed, the "window" property is not set.');let r=t.window;if(e?.code){let n=e.url?new URL(e.url,r.location.href):r.location,i=e.code;switch(e?.type||"esm"){case "esm":let s=new Hn(r,n);return await new Kl({window:r,url:n,source:i,factory:s}).evaluate();case "json":return await new Ic({window:r,url:n,source:i}).evaluate();case "css":return await new Mc({window:r,url:n,source:i}).evaluate()}}return e?.url?await(await new Hn(r,r.location).getModule(e.url,{with:{type:e.type||"esm"}})).evaluate():{}}};g();var _c=class{currentItem={title:"",href:"about:blank",state:null,popState:false,scrollRestoration:ci.auto,method:"GET",formData:null};items=[this.currentItem];push(t){let e=this.items.indexOf(this.currentItem);e!==this.items.length-1&&(this.items.length=e+1),this.items.push(t),this.currentItem=t;}replace(t){let e=this.items.indexOf(this.currentItem);if(e!==this.items.length-1&&(this.items.length=e+1),e===-1)throw new Error("Current history item not found");this.currentItem=t,this.items[e]=t;}clear(){this.items.length=0,this.currentItem={title:"",href:"about:blank",state:null,popState:false,scrollRestoration:ci.auto,method:"GET",formData:null},this.items.push(this.currentItem);}};g();var Nu=class{#t;#e={};#r={};#o=0;#n=[];constructor(t){this.#t=t;}assert(t,e,...r){t||this.#t.print({type:or.assert,level:Or.error,message:["Assertion failed:",...e?[e,...r]:r],group:this.#n[this.#n.length-1]||null});}clear(){this.#t.clear();}count(t="default"){this.#e[t]||(this.#e[t]=0),this.#e[t]++,this.#t.print({type:or.count,level:Or.info,message:[`${t}: ${this.#e[t]}`],group:this.#n[this.#n.length-1]||null});}countReset(t="default"){delete this.#e[t],this.#t.print({type:or.countReset,level:Or.warn,message:[`${t}: 0`],group:this.#n[this.#n.length-1]||null});}debug(t,...e){this.#t.print({type:or.debug,level:Or.log,message:t?[t,...e]:e,group:this.#n[this.#n.length-1]||null});}dir(t){this.#t.print({type:or.dir,level:Or.log,message:[t],group:this.#n[this.#n.length-1]||null});}dirxml(t){this.#t.print({type:or.dirxml,level:Or.log,message:[t],group:this.#n[this.#n.length-1]||null});}error(t,...e){this.#t.print({type:or.error,level:Or.error,message:t?[t,...e]:e,group:this.#n[this.#n.length-1]||null});}exception(...t){this.error(...t);}group(t){this.#o++;let e={id:this.#o,label:t||"default",collapsed:false,parent:this.#n[this.#n.length-1]||null};this.#n.push(e),this.#t.print({type:or.group,level:Or.log,message:[t||"default"],group:e});}groupCollapsed(t){this.#o++;let e={id:this.#o,label:t||"default",collapsed:true,parent:this.#n[this.#n.length-1]||null};this.#n.push(e),this.#t.print({type:or.groupCollapsed,level:Or.log,message:[t||"default"],group:e});}groupEnd(){this.#n.length!==0&&this.#n.pop();}info(t,...e){this.#t.print({type:or.info,level:Or.info,message:t?[t,...e]:e,group:this.#n[this.#n.length-1]||null});}log(t,...e){this.#t.print({type:or.log,level:Or.log,message:t?[t,...e]:e,group:this.#n[this.#n.length-1]||null});}profile(){throw new Error("Method not implemented.")}profileEnd(){throw new Error("Method not implemented.")}table(t){this.#t.print({type:or.table,level:Or.log,message:[t],group:this.#n[this.#n.length-1]||null});}time(t="default"){this.#r[t]=performance.now();}timeEnd(t="default"){let e=this.#r[t];if(e){let r=performance.now()-e;this.#t.print({type:or.timeEnd,level:Or.info,message:[`${t}: ${r}ms - timer ended`],group:this.#n[this.#n.length-1]||null});}}timeLog(t="default",...e){let r=this.#r[t];if(r){let n=performance.now()-r;this.#t.print({type:or.timeLog,level:Or.info,message:[`${t}: ${n}ms`,...e],group:this.#n[this.#n.length-1]||null});}}timeStamp(){throw new Error("Method not implemented.")}trace(t,...e){this.#t.print({type:or.trace,level:Or.log,message:[...t?[t,...e]:e,new Error("stack").stack.replace("Error: stack","")],group:this.#n[this.#n.length-1]||null});}warn(t,...e){this.#t.print({type:or.warn,level:Or.warn,message:t?[t,...e]:e,group:this.#n[this.#n.length-1]||null});}};g();var ia=class{static getFrames(t){return this.findFrames(t.mainFrame)}static closePage(t){if(t.closed)return Promise.resolve();t.closed=true;let e=t.context.pages.indexOf(t);return e!==-1&&t.context.pages.splice(e,1),t.virtualConsolePrinter.close(),$i.destroyFrame(t.mainFrame)}static findFrames(t){let e=[t];for(let r of t.childFrames)e=e.concat(this.findFrames(r));return e}};g();var $c=class{#t=new Map;get(t){let e=this.#t.get(t.url);return e?e.expires<Date.now()?(this.#t.delete(t.url),null):e:null}add(t,e){if(this.#t.delete(t.url),t.headers.get("Cache-Control")?.includes("no-cache")||e.status<200||e.status>=300)return null;let r=e.headers.get("Access-Control-Max-Age"),n=e.headers.get("Access-Control-Allow-Origin");if(!r||!n)return null;let i=[];if(e.headers.has("Access-Control-Allow-Methods")&&e.headers.get("Access-Control-Allow-Methods")!=="*")for(let a of e.headers.get("Access-Control-Allow-Methods").split(","))i.push(a.trim().toUpperCase());let s={allowOrigin:n,allowMethods:i,expires:Date.now()+parseInt(r)*1e3};return isNaN(s.expires)||s.expires<Date.now()?null:(this.#t.set(t.url,s),s)}clear(){this.#t.clear();}};g();g();g();var g0={version:"20.11.0"};var Si={disableJavaScriptEvaluation:false,enableJavaScriptEvaluation:false,disableJavaScriptFileLoading:false,disableCSSFileLoading:false,enableImageFileLoading:false,disableIframePageLoading:false,disableComputedStyleRendering:false,handleDisabledFileLoadingAsSuccess:false,disableErrorCapturing:false,errorCapture:be.tryAndCatch,enableFileSystemHttpRequests:false,suppressCodeGenerationFromStringsWarning:false,suppressInsecureJavaScriptEnvironmentWarning:false,timer:{maxTimeout:-1,maxIntervalTime:-1,maxIntervalIterations:-1,preventTimerLoops:false},fetch:{disableSameOriginPolicy:false,disableStrictSSL:false,interceptor:null,requestHeaders:null,virtualServers:null},module:{resolveNodeModules:null,urlResolver:null,disableCache:false},navigation:{disableMainFrameNavigation:false,disableChildFrameNavigation:false,disableChildPageNavigation:false,disableFallbackToSetURL:false,crossOriginPolicy:gm.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/${g0.version}`,maxTouchPoints:0},device:{prefersColorScheme:"light",prefersReducedMotion:"no-preference",mediaType:"screen",forcedColors:"none"},debug:{traceWaitUntilComplete:-1},viewport:{width:1024,height:768,devicePixelRatio:1},canvasAdapter:null};var jc=class{static createSettings(t){return t&&this.validate(Si,t),{...Si,...t,navigation:{...Si.navigation,...t?.navigation},navigator:{...Si.navigator,...t?.navigator},timer:{...Si.timer,...t?.timer},fetch:{...Si.fetch,...t?.fetch},module:{...Si.module,...t?.module},device:{...Si.device,...t?.device},debug:{...Si.debug,...t?.debug},viewport:{...Si.viewport,...t?.viewport},canvasAdapter:t?.canvasAdapter??Si.canvasAdapter}}static validate(t,e,r){for(let n of Object.keys(e)){if(t[n]===void 0){let i=r?r+"."+n:n;throw new Error(`Unknown browser setting "${i}"`)}if(typeof t[n]=="object"&&!Array.isArray(t[n])&&t[n]!==null){let i=r?r+"."+n:n;if(typeof e[n]!="object"||Array.isArray(e[n])||e[n]===null)throw new Error(`Browser setting "${i}" cannot be null`);this.validate(t[n],e[n],i);}else if((typeof t[n]=="boolean"||typeof t[n]=="number"||typeof t[n]=="string")&&typeof e[n]!=typeof t[n]&&!(n==="preventTimerLoops"&&typeof e[n]=="object"&&e[n]!==null)){let s=r?r+"."+n:n;throw new Error(`Browser setting "${s}" must be of type "${typeof t[n]}"`)}}}};g();var qc=class{static listenerCount=0;observedWindows=[];uncaughtExceptionListener=null;uncaughtRejectionListener=null;observe(t){if(this.observedWindows.includes(t))throw new Error("Browser window is already being observed.");this.observedWindows.push(t),!this.uncaughtExceptionListener&&(this.uncaughtExceptionListener=(e,r)=>{if(r==="unhandledRejection")return;let n=null;for(let i of this.observedWindows)if(e instanceof i.Error||e instanceof i.DOMException){n=i;break}n?(n.console.error(e),n.dispatchEvent(new n.ErrorEvent("error",{error:e,message:e.message}))):process.listenerCount("uncaughtException")===this.constructor.listenerCount&&(console.error(e),process.exit(1));},this.uncaughtRejectionListener=e=>{let r=null;for(let n of this.observedWindows)if(e instanceof n.Error||e instanceof n.DOMException){r=n;break}r?(r.console.error(e),r.dispatchEvent(new r.ErrorEvent("error",{error:e,message:e.message}))):process.listenerCount("unhandledRejection")===this.constructor.listenerCount&&(console.error(e),process.exit(1));},this.constructor.listenerCount++,process.on("uncaughtException",this.uncaughtExceptionListener),process.on("unhandledRejection",this.uncaughtRejectionListener));}disconnect(t){let e=this.observedWindows.indexOf(t);e!==-1&&(this.observedWindows.splice(e,1),this.observedWindows.length===0&&this.uncaughtExceptionListener&&(this.constructor.listenerCount--,process.off("uncaughtException",this.uncaughtExceptionListener),this.uncaughtRejectionListener&&process.off("unhandledRejection",this.uncaughtRejectionListener),this.uncaughtExceptionListener=null,this.uncaughtRejectionListener=null));}};g();g();g();g();var Wh=class{childFrames=[];parentFrame=null;page;closed=false;[Tt]=new Fi(this);[Te]={navigation:[]};[ko]=null;[Zn]=null;[yl]=false;[rr]=new _c;constructor(t){this.page=t,t.context.browser.contexts[0]?.pages[0]?.mainFrame&&(this.window=new this.page.context.browser.windowClass(this),t.context.browser[Vr]&&t.context.browser[Vr].observe(this.window));}get content(){if(!this.window)throw new Error('The frame has been destroyed, the "window" property is not set.');return this.window.document.documentElement.outerHTML}set content(t){if(!this.window)throw new Error('The frame has been destroyed, the "window" property is not set.');this.window.document[Zi]=true,this.window.document[ts]=false,this.window.document.open(),this.window.document.write(t);}get url(){if(!this.window)throw new Error('The frame has been destroyed, the "window" property is not set.');return this.window.location.href}set url(t){if(!this.window)throw new Error('The frame has been destroyed, the "window" property is not set.');this.window[Lo][uo](this,Io.getRelativeURL(this,t).href);}get document(){return this.window?.document??null}async waitUntilComplete(){await Promise.all([this[Tt].waitUntilComplete(),...this.childFrames.map(t=>t.waitUntilComplete())]);}waitForNavigation(){return new Promise(t=>this[Te].navigation.push(t))}abort(){return this.childFrames.length?new Promise((t,e)=>{Promise.all(this.childFrames.map(r=>r.abort()).concat([this[Tt].abort()])).then(()=>t()).catch(e);}):this[Tt].abort()}evaluate(t){return na.evaluate(this,t)}evaluateModule(t){return na.evaluateModule(this,t)}goto(t,e){return oo.navigate({windowClass:this.page.context.browser.windowClass,frame:this,url:t,goToOptions:e})}goBack(t){return oo.navigateBack({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:t})}goForward(t){return oo.navigateForward({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:t})}goSteps(t,e){return oo.navigateSteps({windowClass:this.page.context.browser.windowClass,frame:this,steps:t,goToOptions:e})}reload(t){return oo.reload({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:t})}};var Yc=class{virtualConsolePrinter=new Ha;mainFrame;context;console;viewport;closed=false;constructor(t){this.context=t,this.console=t.browser.console??new Nu(this.virtualConsolePrinter),this.mainFrame=new Wh(this),this.viewport={width:t.browser.settings.viewport.width,height:t.browser.settings.viewport.height,devicePixelRatio:t.browser.settings.viewport.devicePixelRatio};}get frames(){return ia.getFrames(this)}get content(){return this.mainFrame.content}set content(t){this.mainFrame.content=t;}get url(){return this.mainFrame.url}set url(t){this.mainFrame.url=t;}close(){return new Promise((t,e)=>{let r=this.context;ia.closePage(this).then(()=>{r.pages[0]===this?r.browser.close().then(t).catch(e):t();}).catch(e);})}waitUntilComplete(){return this.mainFrame.waitUntilComplete()}waitForNavigation(){return this.mainFrame.waitForNavigation()}abort(){return this.mainFrame.abort()}evaluate(t){return this.mainFrame.evaluate(t)}evaluateModule(t){return this.mainFrame.evaluateModule(t)}setViewport(t){let e=Object.assign({},this.viewport);Object.assign(this.viewport,t),(e.width!==this.viewport.width||e.height!==this.viewport.height||e.devicePixelRatio!==this.viewport.devicePixelRatio)&&this.mainFrame.window.dispatchEvent(new I("resize"));}goto(t,e){return this.mainFrame.goto(t,e)}goBack(t){return this.mainFrame.goBack(t)}goForward(t){return this.mainFrame.goForward(t)}goSteps(t,e){return this.mainFrame.goSteps(t,e)}reload(t){return this.mainFrame.reload(t)}};var zh=class{pages;browser;cookieContainer=new cc;responseCache=new pc;preflightResponseCache=new $c;closed=false;[uc]=new Map;constructor(t){this.browser=t,this.pages=[],this.pages.push(new Yc(this));}async close(){if(this.closed)return;if(this.browser.contexts[0]===this)throw new Error("Cannot close the default context. Use `browser.close()` to close the browser instead.");this.closed=true,await Promise.all(this.pages.slice().map(r=>r.close()));let t=this.browser,e=t.contexts.indexOf(this);e!==-1&&t.contexts.splice(e,1),this.pages=[],this.cookieContainer.clearCookies(),this.responseCache.clear(),this.preflightResponseCache.clear();}async waitUntilComplete(){await Promise.all(this.pages.map(t=>t.waitUntilComplete()));}abort(){return new Promise((t,e)=>{if(!this.pages.length){t();return}Promise.all(this.pages.slice().map(r=>r.abort())).then(()=>t()).catch(r=>e(r));})}newPage(){let t=new Yc(this);return this.pages.push(t),t}};var _h=class{contexts;settings;console;windowClass;[Vr]=null;constructor(t,e){this.windowClass=t,this.console=e?.console||null,this.settings=jc.createSettings(e?.settings),this.settings.errorCapture===be.processLevel&&(this[Vr]=new qc),this.contexts=[],this.contexts.push(new zh(this));}get closed(){return this.contexts.length===0}get defaultContext(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");return this.contexts[0]}async close(){if(this.contexts.length===0)return;let t=this.contexts;this.contexts=[],await Promise.all(t.map(e=>e.close()));}async waitUntilComplete(){await Promise.all(this.contexts.map(t=>t.waitUntilComplete()));}abort(){return new Promise((t,e)=>{if(!this.contexts.length){t();return}Promise.all(this.contexts.slice().map(r=>r.abort())).then(()=>t()).catch(r=>e(r));})}newIncognitoContext(){throw new Error("Not possible to create a new context on a detached browser.")}newPage(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");return this.contexts[0].newPage()}};g();var $h=class{#t;constructor(t){this.#t=t;}get settings(){return this.#t.page.context.browser.settings}get virtualConsolePrinter(){return this.#t.page.virtualConsolePrinter}waitUntilComplete(){return this.#t.waitUntilComplete()}whenAsyncComplete(){return this.waitUntilComplete()}abort(){return this.#t.abort()}cancelAsync(){return this.abort()}close(){return this.#t.page.close()}setURL(t){this.#t.url=t;}setViewport(t){this.#t.page.setViewport(t);}setWindowSize(t){this.setViewport({width:t?.width,height:t?.height});}setInnerWidth(t){this.setViewport({width:t});}setInnerHeight(t){this.setViewport({height:t});}};g();g();var sa=class extends En{happyDOM;constructor(t){let r=new _h(En,{console:t?.console,settings:t?.settings}).defaultContext.pages[0],n=r.mainFrame;t&&(t.width||t.height||t.innerWidth||t.innerHeight)&&Object.assign(r.viewport,{width:t.width||t.innerWidth||r.viewport.width,height:t.height||t.innerHeight||r.viewport.height}),super(n,{url:t?.url}),n.window=this,n.page.context.browser[Vr]&&n.page.context.browser[Vr].observe(this),this.happyDOM=new $h(n);}};function fB(o,t,e){let r=new sa({settings:{disableJavaScriptEvaluation:true,disableJavaScriptFileLoading:true,disableCSSFileLoading:true,disableIframePageLoading:true,disableComputedStyleRendering:true}}),n;try{let i=r.document.createElement("div");_n.fromSchema(t).serializeFragment(o.content,{document:r.document},i),n=i.innerHTML;}finally{r.happyDOM.abort(),r.happyDOM.close();}return n}function S0(o,t){if(!(typeof process<"u"&&process.versions!=null&&process.versions.node!=null))throw new Error("generateHTML can only be used in a Node environment\nIf you want to use this in a browser environment, use the `@tiptap/html` import instead.");let r=BC(t),n=Oo.fromJSON(r,o);return fB(n,r)}g();g();g();var Kh=(o,t)=>{if(o==="slot")return 0;if(o instanceof Function)return o(t);let{children:e,...r}=t??{};if(o==="svg")throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return [o,r,e]};var bB=(o,t)=>{var e;let{state:r,view:n}=o,{selection:i}=r;if(!i.empty)return false;let{$from:s}=i;if(s.parentOffset!==0)return false;let l=s.depth-1;if(l<0)return false;let a=s.node(l),u=s.index(l);if(u===0)return false;if(a.type===t)return o.commands.lift(t.name);let c=a.child(u-1);if(c.type!==t||!((e=c.lastChild)!=null&&e.isTextblock))return false;let h=s.before(),d=h-1-1,{tr:g}=r;return g.delete(h,s.after()).insert(d,s.parent.content),g.setSelection(At.create(g.doc,d)),n.dispatch(g.scrollIntoView()),true},gB=/^\s*>\s$/,P0=Ue.create({name:"blockquote",addOptions(){return {HTMLAttributes:{}}},content:"block+",group:"block",defining:true,parseHTML(){return [{tag:"blockquote"}]},renderHTML({HTMLAttributes:o}){return Kh("blockquote",{...Jt(this.options.HTMLAttributes,o),children:Kh("slot",{})})},parseMarkdown:(o,t)=>{var e;let r=(e=t.parseBlockChildren)!=null?e:t.parseChildren;return t.createNode("blockquote",void 0,r(o.tokens||[]))},renderMarkdown:(o,t)=>{if(!o.content)return "";let e=">",r=[];return o.content.forEach((n,i)=>{var s,l;let c=((l=(s=t.renderChild)==null?void 0:s.call(t,n,i))!=null?l:t.renderChildren([n])).split(`
256
+ `).map(h=>h.trim()===""?e:`${e} ${h}`);r.push(c.join(`
257
+ `));}),r.join(`
258
+ ${e}
259
+ `)},addCommands(){return {setBlockquote:()=>({commands:o})=>o.wrapIn(this.name),toggleBlockquote:()=>({commands:o})=>o.toggleWrap(this.name),unsetBlockquote:()=>({commands:o})=>o.lift(this.name)}},addKeyboardShortcuts(){return {"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote(),Backspace:()=>bB(this.editor,this.type)}},addInputRules(){return [Ji({find:gB,type:this.type})]}});g();var SB=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,PB=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,AB=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,wB=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,A0=lo.create({name:"bold",addOptions(){return {HTMLAttributes:{}}},parseHTML(){return [{tag:"strong"},{tag:"b",getAttrs:o=>o.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:o=>o.type.name===this.name},{style:"font-weight",getAttrs:o=>/^(bold(er)?|[5-9]\d{2,})$/.test(o)&&null}]},renderHTML({HTMLAttributes:o}){return Kh("strong",{...Jt(this.options.HTMLAttributes,o),children:Kh("slot",{})})},markdownTokenName:"strong",parseMarkdown:(o,t)=>t.applyMark("bold",t.parseInline(o.tokens||[])),markdownOptions:{htmlReopen:{open:"<strong>",close:"</strong>"}},renderMarkdown:(o,t)=>`**${t.renderChildren(o)}**`,addCommands(){return {setBold:()=>({commands:o})=>o.setMark(this.name),toggleBold:()=>({commands:o})=>o.toggleMark(this.name),unsetBold:()=>({commands:o})=>o.unsetMark(this.name)}},addKeyboardShortcuts(){return {"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return [Jn({find:SB,type:this.type}),Jn({find:AB,type:this.type})]},addPasteRules(){return [yn({find:PB,type:this.type}),yn({find:wB,type:this.type})]}});g();var xB=o=>{let t=/`([^`]+)`(?!`)$/.exec(o);return !t||t.index>0&&o[t.index-1]==="`"?null:{index:t.index,text:t[0],replaceWith:t[1]}},EB=o=>{let t=/`([^`]+)`(?!`)/g,e=[],r;for(;(r=t.exec(o))!==null;)r.index>0&&o[r.index-1]==="`"||e.push({index:r.index,text:r[0],replaceWith:r[1]});return e},w0=lo.create({name:"code",addOptions(){return {HTMLAttributes:{}}},excludes:"_",code:true,exitable:true,parseHTML(){return [{tag:"code"}]},renderHTML({HTMLAttributes:o}){return ["code",Jt(this.options.HTMLAttributes,o),0]},markdownTokenName:"codespan",parseMarkdown:(o,t)=>t.applyMark("code",[{type:"text",text:o.text||""}]),renderMarkdown:(o,t)=>o.content?`\`${t.renderChildren(o.content)}\``:"",addCommands(){return {setCode:()=>({commands:o})=>o.setMark(this.name),toggleCode:()=>({commands:o})=>o.toggleMark(this.name),unsetCode:()=>({commands:o})=>o.unsetMark(this.name)}},addKeyboardShortcuts(){return {"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return [Jn({find:xB,type:this.type})]},addPasteRules(){return [yn({find:EB,type:this.type})]}});g();var Xx=4,vB=/^```([a-z]+)?[\s\n]$/,TB=/^~~~([a-z]+)?[\s\n]$/,x0=Ue.create({name:"codeBlock",addOptions(){return {languageClassPrefix:"language-",exitOnTripleEnter:true,exitOnArrowDown:true,defaultLanguage:null,enableTabIndentation:false,tabSize:Xx,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:true,defining:true,addAttributes(){return {language:{default:this.options.defaultLanguage,parseHTML:o=>{var t;let{languageClassPrefix:e}=this.options;if(!e)return null;let i=[...((t=o.firstElementChild)==null?void 0:t.classList)||[]].filter(s=>s.startsWith(e)).map(s=>s.replace(e,""))[0];return i||null},rendered:false}}},parseHTML(){return [{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:o,HTMLAttributes:t}){return ["pre",Jt(this.options.HTMLAttributes,t),["code",{class:o.attrs.language?this.options.languageClassPrefix+o.attrs.language:null},0]]},markdownTokenName:"code",parseMarkdown:(o,t)=>{var e,r;return ((e=o.raw)==null?void 0:e.startsWith("```"))===false&&((r=o.raw)==null?void 0:r.startsWith("~~~"))===false&&o.codeBlockStyle!=="indented"?[]:t.createNode("codeBlock",{language:o.lang||null},o.text?[t.createTextNode(o.text)]:[])},renderMarkdown:(o,t)=>{var e;let r="",n=((e=o.attrs)==null?void 0:e.language)||"";return o.content?r=[`\`\`\`${n}`,t.renderChildren(o.content),"```"].join(`
260
+ `):r=`\`\`\`${n}
261
+
262
+ \`\`\``,r},addCommands(){return {setCodeBlock:o=>({commands:t})=>t.setNode(this.name,o),toggleCodeBlock:o=>({commands:t})=>t.toggleNode(this.name,"paragraph",o)}},addKeyboardShortcuts(){return {"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{let{empty:o,$anchor:t}=this.editor.state.selection,e=t.pos===1;return !o||t.parent.type.name!==this.name?false:e||!t.parent.textContent.length?this.editor.commands.clearNodes():false},Tab:({editor:o})=>{var t;if(!this.options.enableTabIndentation)return false;let e=(t=this.options.tabSize)!=null?t:Xx,{state:r}=o,{selection:n}=r,{$from:i,empty:s}=n;if(i.parent.type!==this.type)return false;let l=" ".repeat(e);return s?o.commands.insertContent(l):o.commands.command(({tr:a})=>{let{from:u,to:c}=n,d=r.doc.textBetween(u,c,`
263
+ `,`
264
+ `).split(`
265
+ `).map(g=>l+g).join(`
266
+ `);return a.replaceWith(u,c,r.schema.text(d)),true})},"Shift-Tab":({editor:o})=>{var t;if(!this.options.enableTabIndentation)return false;let e=(t=this.options.tabSize)!=null?t:Xx,{state:r}=o,{selection:n}=r,{$from:i,empty:s}=n;return i.parent.type!==this.type?false:s?o.commands.command(({tr:l})=>{var a;let{pos:u}=i,c=i.start(),h=i.end(),d=r.doc.textBetween(c,h,`
267
+ `,`
268
+ `).split(`
269
+ `),g=0,A=0,w=u-c;for(let ut=0;ut<d.length;ut+=1){if(A+d[ut].length>=w){g=ut;break}A+=d[ut].length+1;}let G=((a=d[g].match(/^ */))==null?void 0:a[0])||"",J=Math.min(G.length,e);if(J===0)return true;let W=c;for(let ut=0;ut<g;ut+=1)W+=d[ut].length+1;return l.delete(W,W+J),u-W<=J&&l.setSelection(At.create(l.doc,W)),true}):o.commands.command(({tr:l})=>{let{from:a,to:u}=n,f=r.doc.textBetween(a,u,`
270
+ `,`
271
+ `).split(`
272
+ `).map(d=>{var g;let A=((g=d.match(/^ */))==null?void 0:g[0])||"",w=Math.min(A.length,e);return d.slice(w)}).join(`
273
+ `);return l.replaceWith(a,u,r.schema.text(f)),true})},Enter:({editor:o})=>{if(!this.options.exitOnTripleEnter)return false;let{state:t}=o,{selection:e}=t,{$from:r,empty:n}=e;if(!n||r.parent.type!==this.type)return false;let i=r.parentOffset===r.parent.nodeSize-2,s=r.parent.textContent.endsWith(`
274
+
275
+ `);return !i||!s?false:o.chain().command(({tr:l})=>(l.delete(r.pos-2,r.pos),true)).exitCode().run()},ArrowDown:({editor:o})=>{if(!this.options.exitOnArrowDown)return false;let{state:t}=o,{selection:e,doc:r}=t,{$from:n,empty:i}=e;if(!i||n.parent.type!==this.type||!(n.parentOffset===n.parent.nodeSize-2))return false;let l=n.after();return l===void 0?false:r.nodeAt(l)?o.commands.command(({tr:u})=>(u.setSelection(Vt.near(r.resolve(l))),true)):o.commands.exitCode()}}},addInputRules(){return [xy({find:vB,type:this.type,getAttributes:o=>({language:o[1]})}),xy({find:TB,type:this.type,getAttributes:o=>({language:o[1]})})]},addProseMirrorPlugins(){return [new Dt({key:new ne("codeBlockVSCodeHandler"),props:{handlePaste:(o,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return false;let e=t.clipboardData.getData("text/plain"),r=t.clipboardData.getData("vscode-editor-data"),n=r?JSON.parse(r):void 0,i=n?.mode;if(!e||!i)return false;let{tr:s,schema:l}=o.state,a=l.text(e.replace(/\r\n?/g,`
276
+ `));return s.replaceSelectionWith(this.type.create({language:i},a)),s.selection.$from.parent.type!==this.type&&s.setSelection(At.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.setMeta("paste",true),o.dispatch(s),true}}})]}});g();var E0=Ue.create({name:"doc",topNode:true,content:"block+",renderMarkdown:(o,t)=>o.content?t.renderChildren(o.content,`
277
+
278
+ `):""});g();var v0=Ue.create({name:"hardBreak",markdownTokenName:"br",addOptions(){return {keepMarks:true,HTMLAttributes:{}}},inline:true,group:"inline",selectable:false,linebreakReplacement:true,parseHTML(){return [{tag:"br"}]},renderHTML({HTMLAttributes:o}){return ["br",Jt(this.options.HTMLAttributes,o)]},renderText(){return `
279
+ `},renderMarkdown:()=>`
280
+ `,parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return {setHardBreak:()=>({commands:o,chain:t,state:e,editor:r})=>o.first([()=>o.exitCode(),()=>o.command(()=>{let{selection:n,storedMarks:i}=e;if(n.$from.parent.type.spec.isolating)return false;let{keepMarks:s}=this.options,{splittableMarks:l}=r.extensionManager,a=i||n.$to.parentOffset&&n.$from.marks();return t().insertContent({type:this.name}).command(({tr:u,dispatch:c})=>{if(c&&a&&s){let h=a.filter(f=>l.includes(f.type.name));u.ensureMarks(h);}return true}).run()})])}},addKeyboardShortcuts(){return {"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}});g();var T0=Ue.create({name:"heading",addOptions(){return {levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:true,addAttributes(){return {level:{default:1,rendered:false}}},parseHTML(){return this.options.levels.map(o=>({tag:`h${o}`,attrs:{level:o}}))},renderHTML({node:o,HTMLAttributes:t}){return [`h${this.options.levels.includes(o.attrs.level)?o.attrs.level:this.options.levels[0]}`,Jt(this.options.HTMLAttributes,t),0]},parseMarkdown:(o,t)=>t.createNode("heading",{level:o.depth||1},t.parseInline(o.tokens||[])),renderMarkdown:(o,t)=>{var e;let r=(e=o.attrs)!=null&&e.level?parseInt(o.attrs.level,10):1,n="#".repeat(r);return o.content?`${n} ${t.renderChildren(o.content)}`:""},addCommands(){return {setHeading:o=>({commands:t})=>this.options.levels.includes(o.level)?t.setNode(this.name,o):false,toggleHeading:o=>({commands:t})=>this.options.levels.includes(o.level)?t.toggleNode(this.name,"paragraph",o):false}},addKeyboardShortcuts(){return this.options.levels.reduce((o,t)=>({...o,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(o=>xy({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${o}})\\s$`),type:this.type,getAttributes:{level:o}}))}});g();var C0=Ue.create({name:"horizontalRule",addOptions(){return {HTMLAttributes:{},nextNodeType:"paragraph"}},group:"block",parseHTML(){return [{tag:"hr"}]},renderHTML({HTMLAttributes:o}){return ["hr",Jt(this.options.HTMLAttributes,o)]},markdownTokenName:"hr",parseMarkdown:(o,t)=>t.createNode("horizontalRule"),renderMarkdown:()=>"---",addCommands(){return {setHorizontalRule:()=>({chain:o,state:t})=>{if(!zC(t,t.schema.nodes[this.name]))return false;let{selection:e}=t,{$to:r}=e,n=o();return Qg(e)?n.insertContentAt(r.pos,{type:this.name}):n.insertContent({type:this.name}),n.command(({state:i,tr:s,dispatch:l})=>{if(l){let{$to:a}=s.selection,u=a.end();if(a.nodeAfter)a.nodeAfter.isTextblock?s.setSelection(At.create(s.doc,a.pos+1)):a.nodeAfter.isBlock?s.setSelection(wt.create(s.doc,a.pos)):s.setSelection(At.create(s.doc,a.pos));else {let c=i.schema.nodes[this.options.nextNodeType]||a.parent.type.contentMatch.defaultType,h=c?.create();h&&(s.insert(u,h),s.setSelection(At.create(s.doc,u+1)));}s.scrollIntoView();}return true}).run()}}},addInputRules(){return [Zg({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}});g();var CB=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,kB=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,NB=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,LB=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,k0=lo.create({name:"italic",addOptions(){return {HTMLAttributes:{}}},parseHTML(){return [{tag:"em"},{tag:"i",getAttrs:o=>o.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:o=>o.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:o}){return ["em",Jt(this.options.HTMLAttributes,o),0]},addCommands(){return {setItalic:()=>({commands:o})=>o.setMark(this.name),toggleItalic:()=>({commands:o})=>o.toggleMark(this.name),unsetItalic:()=>({commands:o})=>o.unsetMark(this.name)}},markdownTokenName:"em",parseMarkdown:(o,t)=>t.applyMark("italic",t.parseInline(o.tokens||[])),markdownOptions:{htmlReopen:{open:"<em>",close:"</em>"}},renderMarkdown:(o,t)=>`*${t.renderChildren(o)}*`,addKeyboardShortcuts(){return {"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return [Jn({find:CB,type:this.type}),Jn({find:NB,type:this.type})]},addPasteRules(){return [yn({find:kB,type:this.type}),yn({find:LB,type:this.type})]}});g();g();var MB="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\xF6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",IB="\u03B5\u03BB1\u03C52\u0431\u04331\u0435\u043B3\u0434\u0435\u0442\u04384\u0435\u044E2\u043A\u0430\u0442\u043E\u043B\u0438\u043A6\u043E\u043C3\u043C\u043A\u04342\u043E\u043D1\u0441\u043A\u0432\u04306\u043E\u043D\u043B\u0430\u0439\u043D5\u0440\u04333\u0440\u0443\u04412\u04442\u0441\u0430\u0439\u04423\u0440\u04313\u0443\u043A\u04403\u049B\u0430\u04373\u0570\u0561\u05753\u05D9\u05E9\u05E8\u05D0\u05DC5\u05E7\u05D5\u05DD3\u0627\u0628\u0648\u0638\u0628\u064A5\u0631\u0627\u0645\u0643\u06485\u0644\u0627\u0631\u062F\u06464\u0628\u062D\u0631\u064A\u06465\u062C\u0632\u0627\u0626\u06315\u0633\u0639\u0648\u062F\u064A\u06296\u0639\u0644\u064A\u0627\u06465\u0645\u063A\u0631\u06285\u0645\u0627\u0631\u0627\u062A5\u06CC\u0631\u0627\u06465\u0628\u0627\u0631\u062A2\u0632\u0627\u06314\u064A\u062A\u06433\u06BE\u0627\u0631\u062A5\u062A\u0648\u0646\u06334\u0633\u0648\u062F\u0627\u06463\u0631\u064A\u06295\u0634\u0628\u0643\u06294\u0639\u0631\u0627\u06422\u06282\u0645\u0627\u06464\u0641\u0644\u0633\u0637\u064A\u06466\u0642\u0637\u06313\u0643\u0627\u062B\u0648\u0644\u064A\u06436\u0648\u06453\u0645\u0635\u06312\u0644\u064A\u0633\u064A\u06275\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u06277\u0642\u06394\u0647\u0645\u0631\u0627\u06475\u067E\u0627\u06A9\u0633\u062A\u0627\u06467\u0680\u0627\u0631\u062A4\u0915\u0949\u092E3\u0928\u0947\u091F3\u092D\u093E\u0930\u09240\u092E\u094D3\u094B\u09245\u0938\u0902\u0917\u0920\u09285\u09AC\u09BE\u0982\u09B2\u09BE5\u09AD\u09BE\u09B0\u09A42\u09F0\u09A44\u0A2D\u0A3E\u0A30\u0A244\u0AAD\u0ABE\u0AB0\u0AA44\u0B2D\u0B3E\u0B30\u0B244\u0B87\u0BA8\u0BCD\u0BA4\u0BBF\u0BAF\u0BBE6\u0BB2\u0B99\u0BCD\u0B95\u0BC86\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD11\u0C2D\u0C3E\u0C30\u0C24\u0C4D5\u0CAD\u0CBE\u0CB0\u0CA44\u0D2D\u0D3E\u0D30\u0D24\u0D025\u0DBD\u0D82\u0D9A\u0DCF4\u0E04\u0E2D\u0E213\u0E44\u0E17\u0E223\u0EA5\u0EB2\u0EA73\u10D2\u10D42\u307F\u3093\u306A3\u30A2\u30DE\u30BE\u30F34\u30AF\u30E9\u30A6\u30C94\u30B0\u30FC\u30B0\u30EB4\u30B3\u30E02\u30B9\u30C8\u30A23\u30BB\u30FC\u30EB3\u30D5\u30A1\u30C3\u30B7\u30E7\u30F36\u30DD\u30A4\u30F3\u30C84\u4E16\u754C2\u4E2D\u4FE11\u56FD1\u570B1\u6587\u7F513\u4E9A\u9A6C\u900A3\u4F01\u4E1A2\u4F5B\u5C712\u4FE1\u606F2\u5065\u5EB72\u516B\u53662\u516C\u53F81\u76CA2\u53F0\u6E7E1\u70632\u5546\u57CE1\u5E971\u68072\u5609\u91CC0\u5927\u9152\u5E975\u5728\u7EBF2\u5927\u62FF2\u5929\u4E3B\u65593\u5A31\u4E502\u5BB6\u96FB2\u5E7F\u4E1C2\u5FAE\u535A2\u6148\u55842\u6211\u7231\u4F603\u624B\u673A2\u62DB\u80582\u653F\u52A11\u5E9C2\u65B0\u52A0\u57612\u95FB2\u65F6\u5C1A2\u66F8\u7C4D2\u673A\u67842\u6DE1\u9A6C\u95213\u6E38\u620F2\u6FB3\u95802\u70B9\u770B2\u79FB\u52A82\u7EC4\u7EC7\u673A\u67844\u7F51\u57401\u5E971\u7AD91\u7EDC2\u8054\u901A2\u8C37\u6B4C2\u8D2D\u72692\u901A\u8CA92\u96C6\u56E22\u96FB\u8A0A\u76C8\u79D14\u98DE\u5229\u6D663\u98DF\u54C12\u9910\u53852\u9999\u683C\u91CC\u62C93\u6E2F2\uB2F7\uB1371\uCEF42\uC0BC\uC1312\uD55C\uAD6D2",iE="numeric",sE="ascii",lE="alpha",Qb="asciinumeric",Yb="alphanumeric",aE="domain",D0="emoji",RB="scheme",DB="slashscheme",Zx="whitespace";function OB(o,t){return o in t||(t[o]=[]),t[o]}function Qc(o,t,e){t[iE]&&(t[Qb]=true,t[Yb]=true),t[sE]&&(t[Qb]=true,t[lE]=true),t[Qb]&&(t[Yb]=true),t[lE]&&(t[Yb]=true),t[Yb]&&(t[aE]=true),t[D0]&&(t[aE]=true);for(let r in t){let n=OB(r,e);n.indexOf(o)<0&&n.push(o);}}function FB(o,t){let e={};for(let r in t)t[r].indexOf(o)>=0&&(e[r]=true);return e}function vn(o=null){this.j={},this.jr=[],this.jd=null,this.t=o;}vn.groups={};vn.prototype={accepts(){return !!this.t},go(o){let t=this,e=t.j[o];if(e)return e;for(let r=0;r<t.jr.length;r++){let n=t.jr[r][0],i=t.jr[r][1];if(i&&n.test(o))return i}return t.jd},has(o,t=false){return t?o in this.j:!!this.go(o)},ta(o,t,e,r){for(let n=0;n<o.length;n++)this.tt(o[n],t,e,r);},tr(o,t,e,r){r=r||vn.groups;let n;return t&&t.j?n=t:(n=new vn(t),e&&r&&Qc(t,e,r)),this.jr.push([o,n]),n},ts(o,t,e,r){let n=this,i=o.length;if(!i)return n;for(let s=0;s<i-1;s++)n=n.tt(o[s]);return n.tt(o[i-1],t,e,r)},tt(o,t,e,r){r=r||vn.groups;let n=this;if(t&&t.j)return n.j[o]=t,t;let i=t,s,l=n.go(o);if(l?(s=new vn,Object.assign(s.j,l.j),s.jr.push.apply(s.jr,l.jr),s.jd=l.jd,s.t=l.t):s=new vn,i){if(r)if(s.t&&typeof s.t=="string"){let a=Object.assign(FB(s.t,r),e);Qc(i,a,r);}else e&&Qc(i,e,r);s.t=i;}return n.j[o]=s,s}};var ce=(o,t,e,r,n)=>o.ta(t,e,r,n),Ar=(o,t,e,r,n)=>o.tr(t,e,r,n),N0=(o,t,e,r,n)=>o.ts(t,e,r,n),ot=(o,t,e,r,n)=>o.tt(t,e,r,n),ua="WORD",uE="UWORD",O0="ASCIINUMERICAL",F0="ALPHANUMERICAL",rg="LOCALHOST",cE="TLD",pE="UTLD",ZS="SCHEME",jh="SLASH_SCHEME",hE="NUM",mE="WS",yE="NL",Jb="OPENBRACE",Xb="CLOSEBRACE",tP="OPENBRACKET",eP="CLOSEBRACKET",rP="OPENPAREN",oP="CLOSEPAREN",nP="OPENANGLEBRACKET",iP="CLOSEANGLEBRACKET",sP="FULLWIDTHLEFTPAREN",lP="FULLWIDTHRIGHTPAREN",aP="LEFTCORNERBRACKET",uP="RIGHTCORNERBRACKET",cP="LEFTWHITECORNERBRACKET",pP="RIGHTWHITECORNERBRACKET",mP="FULLWIDTHLESSTHAN",hP="FULLWIDTHGREATERTHAN",yP="AMPERSAND",dP="APOSTROPHE",fP="ASTERISK",Mu="AT",bP="BACKSLASH",gP="BACKTICK",SP="CARET",Jc="COLON",dE="COMMA",PP="DOLLAR",Ys="DOT",AP="EQUALS",fE="EXCLAMATION",Ai="HYPHEN",Zb="PERCENT",wP="PIPE",xP="PLUS",EP="POUND",tg="QUERY",bE="QUOTE",B0="FULLWIDTHMIDDLEDOT",gE="SEMI",Qs="SLASH",eg="TILDE",vP="UNDERSCORE",V0="EMOJI",TP="SYM",H0=Object.freeze({__proto__:null,ALPHANUMERICAL:F0,AMPERSAND:yP,APOSTROPHE:dP,ASCIINUMERICAL:O0,ASTERISK:fP,AT:Mu,BACKSLASH:bP,BACKTICK:gP,CARET:SP,CLOSEANGLEBRACKET:iP,CLOSEBRACE:Xb,CLOSEBRACKET:eP,CLOSEPAREN:oP,COLON:Jc,COMMA:dE,DOLLAR:PP,DOT:Ys,EMOJI:V0,EQUALS:AP,EXCLAMATION:fE,FULLWIDTHGREATERTHAN:hP,FULLWIDTHLEFTPAREN:sP,FULLWIDTHLESSTHAN:mP,FULLWIDTHMIDDLEDOT:B0,FULLWIDTHRIGHTPAREN:lP,HYPHEN:Ai,LEFTCORNERBRACKET:aP,LEFTWHITECORNERBRACKET:cP,LOCALHOST:rg,NL:yE,NUM:hE,OPENANGLEBRACKET:nP,OPENBRACE:Jb,OPENBRACKET:tP,OPENPAREN:rP,PERCENT:Zb,PIPE:wP,PLUS:xP,POUND:EP,QUERY:tg,QUOTE:bE,RIGHTCORNERBRACKET:uP,RIGHTWHITECORNERBRACKET:pP,SCHEME:ZS,SEMI:gE,SLASH:Qs,SLASH_SCHEME:jh,SYM:TP,TILDE:eg,TLD:cE,UNDERSCORE:vP,UTLD:pE,UWORD:uE,WORD:ua,WS:mE}),la=/[a-z]/,qb=/\p{L}/u,tE=/\p{Emoji}/u;var aa=/\d/,eE=/\s/;var L0="\r",rE=`
281
+ `,BB="\uFE0F",VB="\u200D",oE="\uFFFC",QS=null,JS=null;function HB(o=[]){let t={};vn.groups=t;let e=new vn;QS==null&&(QS=M0(MB)),JS==null&&(JS=M0(IB)),ot(e,"'",dP),ot(e,"{",Jb),ot(e,"}",Xb),ot(e,"[",tP),ot(e,"]",eP),ot(e,"(",rP),ot(e,")",oP),ot(e,"<",nP),ot(e,">",iP),ot(e,"\uFF08",sP),ot(e,"\uFF09",lP),ot(e,"\u300C",aP),ot(e,"\u300D",uP),ot(e,"\u300E",cP),ot(e,"\u300F",pP),ot(e,"\uFF1C",mP),ot(e,"\uFF1E",hP),ot(e,"&",yP),ot(e,"*",fP),ot(e,"@",Mu),ot(e,"`",gP),ot(e,"^",SP),ot(e,":",Jc),ot(e,",",dE),ot(e,"$",PP),ot(e,".",Ys),ot(e,"=",AP),ot(e,"!",fE),ot(e,"-",Ai),ot(e,"%",Zb),ot(e,"|",wP),ot(e,"+",xP),ot(e,"#",EP),ot(e,"?",tg),ot(e,'"',bE),ot(e,"/",Qs),ot(e,";",gE),ot(e,"~",eg),ot(e,"_",vP),ot(e,"\\",bP),ot(e,"\u30FB",B0);let r=Ar(e,aa,hE,{[iE]:true});Ar(r,aa,r);let n=Ar(r,la,O0,{[Qb]:true}),i=Ar(r,qb,F0,{[Yb]:true}),s=Ar(e,la,ua,{[sE]:true});Ar(s,aa,n),Ar(s,la,s),Ar(n,aa,n),Ar(n,la,n);let l=Ar(e,qb,uE,{[lE]:true});Ar(l,la),Ar(l,aa,i),Ar(l,qb,l),Ar(i,aa,i),Ar(i,la),Ar(i,qb,i);let a=ot(e,rE,yE,{[Zx]:true}),u=ot(e,L0,mE,{[Zx]:true}),c=Ar(e,eE,mE,{[Zx]:true});ot(e,oE,c),ot(u,rE,a),ot(u,oE,c),Ar(u,eE,c),ot(c,L0),ot(c,rE),Ar(c,eE,c),ot(c,oE,c);let h=Ar(e,tE,V0,{[D0]:true});ot(h,"#"),Ar(h,tE,h),ot(h,BB,h);let f=ot(h,VB);ot(f,"#"),Ar(f,tE,h);let d=[[la,s],[aa,n]],g=[[la,null],[qb,l],[aa,i]];for(let A=0;A<QS.length;A++)Lu(e,QS[A],cE,ua,d);for(let A=0;A<JS.length;A++)Lu(e,JS[A],pE,uE,g);Qc(cE,{tld:true,ascii:true},t),Qc(pE,{utld:true,alpha:true},t),Lu(e,"file",ZS,ua,d),Lu(e,"mailto",ZS,ua,d),Lu(e,"http",jh,ua,d),Lu(e,"https",jh,ua,d),Lu(e,"ftp",jh,ua,d),Lu(e,"ftps",jh,ua,d),Qc(ZS,{scheme:true,ascii:true},t),Qc(jh,{slashscheme:true,ascii:true},t),o=o.sort((A,w)=>A[0]>w[0]?1:-1);for(let A=0;A<o.length;A++){let w=o[A][0],G=o[A][1]?{[RB]:true}:{[DB]:true};w.indexOf("-")>=0?G[aE]=true:la.test(w)?aa.test(w)?G[Qb]=true:G[sE]=true:G[iE]=true,N0(e,w,w,G);}return N0(e,"localhost",rg,{ascii:true}),e.jd=new vn(TP),{start:e,tokens:Object.assign({groups:t},H0)}}function G0(o,t){let e=GB(t.replace(/[A-Z]/g,l=>l.toLowerCase())),r=e.length,n=[],i=0,s=0;for(;s<r;){let l=o,a=null,u=0,c=null,h=-1,f=-1;for(;s<r&&(a=l.go(e[s]));)l=a,l.accepts()?(h=0,f=0,c=l):h>=0&&(h+=e[s].length,f++),u+=e[s].length,i+=e[s].length,s++;i-=h,s-=f,u-=h,n.push({t:c.t,v:t.slice(i-u,i),s:i-u,e:i});}return n}function GB(o){let t=[],e=o.length,r=0;for(;r<e;){let n=o.charCodeAt(r),i,s=n<55296||n>56319||r+1===e||(i=o.charCodeAt(r+1))<56320||i>57343?o[r]:o.slice(r,r+2);t.push(s),r+=s.length;}return t}function Lu(o,t,e,r,n){let i,s=t.length;for(let l=0;l<s-1;l++){let a=t[l];o.j[a]?i=o.j[a]:(i=new vn(r),i.jr=n.slice(),o.j[a]=i),o=i;}return i=new vn(e),i.jr=n.slice(),o.j[t[s-1]]=i,i}function M0(o){let t=[],e=[],r=0,n="0123456789";for(;r<o.length;){let i=0;for(;n.indexOf(o[r+i])>=0;)i++;if(i>0){t.push(e.join(""));for(let s=parseInt(o.substring(r,r+i),10);s>0;s--)e.pop();r+=i;}else e.push(o[r]),r++;}return t}var og={defaultProtocol:"http",events:null,format:I0,formatHref:I0,nl2br:false,tagName:"a",target:null,rel:null,validate:true,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function SE(o,t=null){let e=Object.assign({},og);o&&(e=Object.assign(e,o instanceof SE?o.o:o));let r=e.ignoreTags,n=[];for(let i=0;i<r.length;i++)n.push(r[i].toUpperCase());this.o=e,t&&(this.defaultRender=t),this.ignoreTags=n;}SE.prototype={o:og,ignoreTags:[],defaultRender(o){return o},check(o){return this.get("validate",o.toString(),o)},get(o,t,e){let r=t!=null,n=this.o[o];return n&&(typeof n=="object"?(n=e.t in n?n[e.t]:og[o],typeof n=="function"&&r&&(n=n(t,e))):typeof n=="function"&&r&&(n=n(t,e.t,e)),n)},getObj(o,t,e){let r=this.o[o];return typeof r=="function"&&t!=null&&(r=r(t,e.t,e)),r},render(o){let t=o.render(this);return (this.get("render",null,o)||this.defaultRender)(t,o.t,o)}};function I0(o){return o}function U0(o,t){this.t="token",this.v=o,this.tk=t;}U0.prototype={isLink:false,toString(){return this.v},toHref(o){return this.toString()},toFormattedString(o){let t=this.toString(),e=o.get("truncate",t,this),r=o.get("format",t,this);return e&&r.length>e?r.substring(0,e)+"\u2026":r},toFormattedHref(o){return o.get("formatHref",this.toHref(o.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(o=og.defaultProtocol){return {type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(o),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(o){return {type:this.t,value:this.toFormattedString(o),isLink:this.isLink,href:this.toFormattedHref(o),start:this.startIndex(),end:this.endIndex()}},validate(o){return o.get("validate",this.toString(),this)},render(o){let t=this,e=this.toHref(o.get("defaultProtocol")),r=o.get("formatHref",e,this),n=o.get("tagName",e,t),i=this.toFormattedString(o),s={},l=o.get("className",e,t),a=o.get("target",e,t),u=o.get("rel",e,t),c=o.getObj("attributes",e,t),h=o.getObj("events",e,t);return s.href=r,l&&(s.class=l),a&&(s.target=a),u&&(s.rel=u),c&&Object.assign(s,c),{tagName:n,attributes:s,content:i,eventListeners:h}}};function CP(o,t){class e extends U0{constructor(n,i){super(n,i),this.t=o;}}for(let r in t)e.prototype[r]=t[r];return e.t=o,e}var UB=CP("email",{isLink:true,toHref(){return "mailto:"+this.toString()}}),R0=CP("text"),WB=CP("nl"),XS=CP("url",{isLink:true,toHref(o=og.defaultProtocol){return this.hasProtocol()?this.v:`${o}://${this.v}`},hasProtocol(){let o=this.tk;return o.length>=2&&o[0].t!==rg&&o[1].t===Jc}});var Pi=o=>new vn(o);function zB({groups:o}){let t=o.domain.concat([yP,fP,Mu,bP,gP,SP,PP,AP,Ai,hE,Zb,wP,xP,EP,Qs,TP,eg,vP]),e=[dP,Jc,dE,Ys,fE,Zb,tg,bE,gE,nP,iP,Jb,Xb,eP,tP,rP,oP,sP,lP,aP,uP,cP,pP,mP,hP],r=[yP,dP,fP,bP,gP,SP,PP,AP,Ai,Jb,Xb,Zb,wP,xP,EP,tg,Qs,TP,eg,vP],n=Pi(),i=ot(n,eg);ce(i,r,i),ce(i,o.domain,i);let s=Pi(),l=Pi(),a=Pi();ce(n,o.domain,s),ce(n,o.scheme,l),ce(n,o.slashscheme,a),ce(s,r,i),ce(s,o.domain,s);let u=ot(s,Mu);ot(i,Mu,u),ot(l,Mu,u),ot(a,Mu,u);let c=ot(i,Ys);ce(c,r,i),ce(c,o.domain,i);let h=Pi();ce(u,o.domain,h),ce(h,o.domain,h);let f=ot(h,Ys);ce(f,o.domain,h);let d=Pi(UB);ce(f,o.tld,d),ce(f,o.utld,d),ot(u,rg,d);let g=ot(h,Ai);ot(g,Ai,g),ce(g,o.domain,h),ce(d,o.domain,h),ot(d,Ys,f),ot(d,Ai,g);let A=ot(s,Ai),w=ot(s,Ys);ot(A,Ai,A),ce(A,o.domain,s),ce(w,r,i),ce(w,o.domain,s);let T=Pi(XS);ce(w,o.tld,T),ce(w,o.utld,T),ce(T,o.domain,s),ce(T,r,i),ot(T,Ys,w),ot(T,Ai,A),ot(T,Mu,u);let G=ot(T,Jc),J=Pi(XS);ce(G,o.numeric,J);let W=Pi(XS),q=Pi();ce(W,t,W),ce(W,e,q),ce(q,t,W),ce(q,e,q),ot(T,Qs,W),ot(J,Qs,W);let ut=ot(l,Jc),Z=ot(a,Jc),kt=ot(Z,Qs),Lt=ot(kt,Qs);ce(l,o.domain,s),ot(l,Ys,w),ot(l,Ai,A),ce(a,o.domain,s),ot(a,Ys,w),ot(a,Ai,A),ce(ut,o.domain,W),ot(ut,Qs,W),ot(ut,tg,W),ce(Lt,o.domain,W),ce(Lt,t,W),ot(Lt,Qs,W);let Ee=[[Jb,Xb],[tP,eP],[rP,oP],[nP,iP],[sP,lP],[aP,uP],[cP,pP],[mP,hP]];for(let ir=0;ir<Ee.length;ir++){let[Br,_e]=Ee[ir],sr=ot(W,Br);ot(q,Br,sr);let ve=Pi(XS);ce(sr,t,ve);let zn=Pi();ce(sr,e,zn),ot(sr,_e,W),ce(ve,t,ve),ce(ve,e,zn),ce(zn,t,ve),ce(zn,e,zn),ot(ve,_e,W),ot(zn,_e,W);}return ot(n,rg,T),ot(n,yE,WB),{start:n,tokens:H0}}function _B(o,t,e){let r=e.length,n=0,i=[],s=[];for(;n<r;){let l=o,a=null,u=null,c=0,h=null,f=-1;for(;n<r&&!(a=l.go(e[n].t));)s.push(e[n++]);for(;n<r&&(u=a||l.go(e[n].t));)a=null,l=u,l.accepts()?(f=0,h=l):f>=0&&f++,n++,c++;if(f<0)n-=c,n<r&&(s.push(e[n]),n++);else {s.length>0&&(i.push(nE(R0,t,s)),s=[]),n-=f,c-=f;let d=h.t,g=e.slice(n-c,n);i.push(nE(d,t,g));}}return s.length>0&&i.push(nE(R0,t,s)),i}function nE(o,t,e){let r=e[0].s,n=e[e.length-1].e,i=t.slice(r,n);return new o(i,e)}var $B=typeof console<"u"&&console&&console.warn||(()=>{}),KB="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",nr={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:false};function W0(){return vn.groups={},nr.scanner=null,nr.parser=null,nr.tokenQueue=[],nr.pluginQueue=[],nr.customSchemes=[],nr.initialized=false,nr}function PE(o,t=false){if(nr.initialized&&$B(`linkifyjs: already initialized - will not register custom scheme "${o}" ${KB}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(o))throw new Error(`linkifyjs: incorrect scheme format.
282
+ 1. Must only contain digits, lowercase ASCII letters or "-"
283
+ 2. Cannot start or end with "-"
284
+ 3. "-" cannot repeat`);nr.customSchemes.push([o,t]);}function jB(){nr.scanner=HB(nr.customSchemes);for(let o=0;o<nr.tokenQueue.length;o++)nr.tokenQueue[o][1]({scanner:nr.scanner});nr.parser=zB(nr.scanner.tokens);for(let o=0;o<nr.pluginQueue.length;o++)nr.pluginQueue[o][1]({scanner:nr.scanner,parser:nr.parser});return nr.initialized=true,nr}function kP(o){return nr.initialized||jB(),_B(nr.parser.start,o,G0(nr.scanner.start,o))}kP.scan=G0;function NP(o,t=null,e=null){if(t&&typeof t=="object"){if(e)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);e=t,t=null;}let r=new SE(e),n=kP(o),i=[];for(let s=0;s<n.length;s++){let l=n[s];l.isLink&&(!t||l.t===t)&&r.check(l)&&i.push(l.toFormattedObject(r));}return i}var AE="[\0- \xA0\u1680\u180E\u2000-\u2029\u205F\u3000]",qB=new RegExp(AE),YB=new RegExp(`${AE}$`),QB=new RegExp(AE,"g");function JB(o){return o.length===1?o[0].isLink:o.length===3&&o[1].isLink?["()","[]"].includes(o[0].value+o[2].value):false}function XB(o){return new Dt({key:new ne("autolink"),appendTransaction:(t,e,r)=>{let n=t.some(u=>u.docChanged)&&!e.doc.eq(r.doc),i=t.some(u=>u.getMeta("preventAutolink"));if(!n||i)return;let{tr:s}=r,l=pw(e.doc,[...t]);if(Py(l).forEach(({newRange:u})=>{let c=RC(r.doc,u,d=>d.isTextblock),h,f;if(c.length>1)h=c[0],f=r.doc.textBetween(h.pos,h.pos+h.node.nodeSize,void 0," ");else if(c.length){let d=r.doc.textBetween(u.from,u.to," "," ");if(!YB.test(d))return;h=c[0],f=r.doc.textBetween(h.pos,u.to,void 0," ");}if(h&&f){let d=f.split(qB).filter(Boolean);if(d.length<=0)return false;let g=d[d.length-1],A=h.pos+f.lastIndexOf(g);if(!g)return false;let w=kP(g).map(T=>T.toObject(o.defaultProtocol));if(!JB(w))return false;w.filter(T=>T.isLink).map(T=>({...T,from:A+T.start+1,to:A+T.end+1})).filter(T=>r.schema.marks.code?!r.doc.rangeHasMark(T.from,T.to,r.schema.marks.code):true).filter(T=>o.validate(T.value)).filter(T=>o.shouldAutoLink(T.value)).forEach(T=>{Yg(T.from,T.to,r.doc).some(G=>G.mark.type===o.type)||s.addMark(T.from,T.to,o.type.create({href:T.href}));});}}),!!s.steps.length)return s}})}function ZB(o){return new Dt({key:new ne("handleClickLink"),props:{handleClick:(t,e,r)=>{var n,i;if(r.button!==0||!t.editable)return false;let s=null;if(r.target instanceof HTMLAnchorElement)s=r.target;else {let a=r.target;if(!a)return false;let u=o.editor.view.dom;s=a.closest("a"),s&&!u.contains(s)&&(s=null);}if(!s)return false;let l=false;if(o.enableClickSelection&&(l=o.editor.commands.extendMarkRange(o.type.name)),o.openOnClick){let a=VC(t.state,o.type.name),u=(n=s.href)!=null?n:a.href,c=(i=s.target)!=null?i:a.target;u&&(window.open(u,c),l=true);}return l}}})}function tV(o){return new Dt({key:new ne("handlePasteLink"),props:{handlePaste:(t,e,r)=>{let{shouldAutoLink:n}=o,{state:i}=t,{selection:s}=i,{empty:l}=s;if(l)return false;let a="";r.content.forEach(c=>{a+=c.textContent;});let u=NP(a,{defaultProtocol:o.defaultProtocol}).find(c=>c.isLink&&c.value===a);return !a||!u||n!==void 0&&!n(u.value)?false:o.editor.commands.setMark(o.type,{href:u.href})}}})}function Xc(o,t){let e=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return t&&t.forEach(r=>{let n=typeof r=="string"?r:r.scheme;n&&e.push(n);}),!o||o.replace(QB,"").match(new RegExp(`^(?:(?:${e.map(r=>r.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")).join("|")}):|[^a-z]|[a-z0-9+.\\-]+(?:[^a-z+.\\-:]|$))`,"i"))}var wE=lo.create({name:"link",priority:1e3,keepOnSplit:false,exitable:true,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(o=>{if(typeof o=="string"){PE(o);return}PE(o.scheme,o.optionalSlashes);});},onDestroy(){W0();},inclusive(){return this.options.autolink},addOptions(){return {openOnClick:true,enableClickSelection:false,linkOnPaste:true,autolink:true,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(o,t)=>!!Xc(o,t.protocols),validate:o=>!!o,shouldAutoLink:o=>{let t=/^[a-z][a-z0-9+.-]*:\/\//i.test(o),e=/^[a-z][a-z0-9+.-]*:/i.test(o);if(t||e&&!o.includes("@"))return true;let n=(o.includes("@")?o.split("@").pop():o).split(/[/?#:]/)[0];return !(/^\d{1,3}(\.\d{1,3}){3}$/.test(n)||!/\./.test(n))}}},addAttributes(){var o,t,e;return {href:{default:null,parseHTML(r){return r.getAttribute("href")}},target:{default:(o=this.options.HTMLAttributes.target)!=null?o:null},rel:{default:(t=this.options.HTMLAttributes.rel)!=null?t:null},class:{default:(e=this.options.HTMLAttributes.class)!=null?e:null},title:{default:null}}},parseHTML(){return [{tag:"a[href]",getAttrs:o=>{let t=o.getAttribute("href");return !t||!this.options.isAllowedUri(t,{defaultValidate:e=>!!Xc(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?false:null}}]},renderHTML({HTMLAttributes:o}){return this.options.isAllowedUri(o.href,{defaultValidate:t=>!!Xc(t,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",Jt(this.options.HTMLAttributes,o),0]:["a",Jt(this.options.HTMLAttributes,{...o,href:""}),0]},markdownTokenName:"link",parseMarkdown:(o,t)=>t.applyMark("link",t.parseInline(o.tokens||[]),{href:o.href,title:o.title||null}),renderMarkdown:(o,t)=>{var e,r,n,i;let s=(r=(e=o.attrs)==null?void 0:e.href)!=null?r:"",l=(i=(n=o.attrs)==null?void 0:n.title)!=null?i:"",a=t.renderChildren(o);return l?`[${a}](${s} "${l}")`:`[${a}](${s})`},addCommands(){return {setLink:o=>({chain:t})=>{let{href:e}=o;return this.options.isAllowedUri(e,{defaultValidate:r=>!!Xc(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?t().setMark(this.name,o).setMeta("preventAutolink",true).run():false},toggleLink:o=>({chain:t})=>{let{href:e}=o||{};return e&&!this.options.isAllowedUri(e,{defaultValidate:r=>!!Xc(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?false:t().toggleMark(this.name,o,{extendEmptyMarkRange:true}).setMeta("preventAutolink",true).run()},unsetLink:()=>({chain:o})=>o().unsetMark(this.name,{extendEmptyMarkRange:true}).setMeta("preventAutolink",true).run()}},addPasteRules(){return [yn({find:o=>{let t=[];if(o){let{protocols:e,defaultProtocol:r}=this.options,n=NP(o).filter(i=>i.isLink&&this.options.isAllowedUri(i.value,{defaultValidate:s=>!!Xc(s,e),protocols:e,defaultProtocol:r}));n.length&&n.forEach(i=>{this.options.shouldAutoLink(i.value)&&t.push({text:i.value,data:{href:i.href},index:i.start});});}return t},type:this.type,getAttributes:o=>{var t;return {href:(t=o.data)==null?void 0:t.href}}})]},addProseMirrorPlugins(){let o=[],{protocols:t,defaultProtocol:e}=this.options;return this.options.autolink&&o.push(XB({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:r=>this.options.isAllowedUri(r,{defaultValidate:n=>!!Xc(n,t),protocols:t,defaultProtocol:e}),shouldAutoLink:this.options.shouldAutoLink})),o.push(ZB({type:this.type,editor:this.editor,openOnClick:this.options.openOnClick==="whenNotEditable"?true:this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&o.push(tV({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),o}}),z0=wE;g();var eV=Object.defineProperty,rV=(o,t)=>{for(var e in t)eV(o,e,{get:t[e],enumerable:true});},oV="listItem",_0="textStyle",$0=/^\s*([-+*])\s$/,TE=Ue.create({name:"bulletList",addOptions(){return {itemTypeName:"listItem",HTMLAttributes:{},keepMarks:false,keepAttributes:false}},group:"block list",content(){return `${this.options.itemTypeName}+`},parseHTML(){return [{tag:"ul"}]},renderHTML({HTMLAttributes:o}){return ["ul",Jt(this.options.HTMLAttributes,o),0]},markdownTokenName:"list",parseMarkdown:(o,t)=>o.type!=="list"||o.ordered?[]:{type:"bulletList",content:o.items?t.parseChildren(o.items):[]},renderMarkdown:(o,t)=>o.content?t.renderChildren(o.content,`
285
+ `):"",markdownOptions:{indentsContent:true},addCommands(){return {toggleBulletList:()=>({commands:o,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(oV,this.editor.getAttributes(_0)).run():o.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return {"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let o=Ji({find:$0,type:this.type});return (this.options.keepMarks||this.options.keepAttributes)&&(o=Ji({find:$0,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(_0),editor:this.editor})),[o]}}),nV=(o,t,e)=>{let{selection:r}=o;if(!r.empty)return null;let{$from:n}=r;if(!n.parent.isTextblock||n.parentOffset!==n.parent.content.size)return null;let i=-1;for(let d=n.depth;d>0;d-=1)if(n.node(d).type.name===t){i=d;break}if(i<0)return null;let s=n.node(i),l=n.index(i);if(l+1>=s.childCount)return null;let a=s.child(l+1);if(!e.includes(a.type.name))return null;let u=o.schema.nodes[t],c=false;if(a.forEach(d=>{d.type===u&&d.childCount>1&&(c=true);}),!c)return null;let h=o.doc.resolve(n.after()).nodeAfter;if(!h||!e.includes(h.type.name))return null;let f=[];return h.forEach(d=>{f.push(d);}),f.length===0?null:{listItemDepth:i,nestedList:h,nestedListPos:n.after(),insertPos:n.after(i),items:f}},iV=(o,t,e,r)=>{let n=nV(o,e,r);if(!n)return false;let{selection:i}=o,{nestedList:s,nestedListPos:l,insertPos:a,items:u}=n,c=o.tr;c.delete(l,l+s.nodeSize);let h=c.mapping.map(a);return c.insert(h,tt.from(u)),c.setSelection(i.map(c.doc,c.mapping)),t&&t(c),true},sV=(o,t,e)=>iV(o.state,o.view.dispatch,t,e),Y0=(o,t)=>Bt.create({name:`${o}BranchingDeleteKeymap`,priority:101,addKeyboardShortcuts(){let e=()=>sV(this.editor,o,t);return {Delete:e,"Mod-Delete":e}}}),Q0=[[1e3,"m"],[900,"cm"],[500,"d"],[400,"cd"],[100,"c"],[90,"xc"],[50,"l"],[40,"xl"],[10,"x"],[9,"ix"],[5,"v"],[4,"iv"],[1,"i"]],LP="abcdefghijklmnopqrstuvwxyz",lV="[a-zA-Z]{1,2}",J0=String.raw`\d+|[ivxlcdmIVXLCDM]+|${lV}`;function IP(o){let t=o,e="";for(let[r,n]of Q0)for(;t>=r;)e+=n,t-=r;return e}function CE(o){return IP(o).toUpperCase()}function X0(o){let t=o.toLowerCase(),e=0,r=0;for(;e<t.length;){let n=false;for(let[i,s]of Q0)if(t.startsWith(s,e)){r+=i,e+=s.length,n=true;break}if(!n)return 0}return r}function aV(o){if(!/^[ivxlcdmIVXLCDM]+$/.test(o))return false;let t=X0(o);return t<=0?false:(o===o.toLowerCase()?IP(t):CE(t))===o}function uV(o){let t=o.toLowerCase();if(t.length===1)return t.charCodeAt(0)-97+1;if(t.length===2){let e=t.charCodeAt(0)-97,r=t.charCodeAt(1)-97;return (e+1)*26+r+1}return 0}function MP(o){if(o<=26)return LP[o-1];let t=Math.floor((o-1)/26)-1,e=(o-1)%26;return t<0?LP[e]:LP[t]+LP[e]}function RP(o){if(!(!o||/^\d+$/.test(o))){if(aV(o))return o===o.toLowerCase()?"i":"I";if(/^[a-z]{1,2}$/.test(o))return "a";if(/^[A-Z]{1,2}$/.test(o))return "A"}}function kE(o){if(/^\d+$/.test(o))return parseInt(o,10);let t=RP(o);if(t==="i"||t==="I")return X0(o);if(t==="a"||t==="A"){let r=uV(o);return r>0?r:1}let e=parseInt(o,10);return Number.isNaN(e)?1:e}function cV(o,t){if(o==="numeric")return String(t);switch(o){case "a":return MP(t);case "A":return MP(t).toUpperCase();case "i":return IP(t);case "I":return CE(t);default:return String(t)}}function pV(o){var t;if(o.length===0)return false;let e=(t=RP(o[0]))!=null?t:"numeric",r=kE(o[0]);if(r<1)return false;for(let n=0;n<o.length;n++){let i=cV(e,r+n);if(o[n]!==i)return false}return true}function mV(o){return {type:RP(o),start:kE(o)}}function hV(o){let{type:t,start:e}=mV(o),r={};return t&&(r.type=t),e!==1&&(r.start=e),r}function yV(o,t,e=". "){let r=t+1;if(!o||o==="1")return `${r}${e}`;switch(o){case "a":return `${MP(r)}${e}`;case "A":return `${MP(r).toUpperCase()}${e}`;case "i":return `${IP(r)}${e}`;case "I":return `${CE(r)}${e}`;default:return `${r}${e}`}}function dV(o){var t,e;let r=(t=o.tokens)==null?void 0:t[0];return !!(o.text&&((e=o.tokens)==null?void 0:e.length)===1&&r?.type==="list"&&r.ordered&&r.raw===o.text)}function fV(o,t){return t.tokenizeInline?t.parseInline(t.tokenizeInline(o)):t.parseInline([{type:"text",raw:o,text:o}])}var NE=Ue.create({name:"listItem",addOptions(){return {HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:true,parseHTML(){return [{tag:"li"}]},renderHTML({HTMLAttributes:o}){return ["li",Jt(this.options.HTMLAttributes,o),0]},markdownTokenName:"list_item",parseMarkdown:(o,t)=>{var e;if(o.type!=="list_item")return [];let r=(e=t.parseBlockChildren)!=null?e:t.parseChildren,n=[];if(o.tokens&&o.tokens.length>0){if(dV(o))return {type:"listItem",content:[{type:"paragraph",content:fV(o.text||"",t)}]};if(o.tokens.some(s=>s.type==="paragraph"))n=r(o.tokens);else {let s=o.tokens[0];if(s&&s.type==="text"&&s.tokens&&s.tokens.length>0){if(n=[{type:"paragraph",content:t.parseInline(s.tokens)}],o.tokens.length>1){let a=o.tokens.slice(1),u=r(a);n.push(...u);}}else n=r(o.tokens);}}return n.length===0&&(n=[{type:"paragraph",content:[]}]),{type:"listItem",content:n}},renderMarkdown:(o,t,e)=>wy(o,t,r=>{var n,i,s,l;if(r.parentType==="bulletList")return "- ";if(r.parentType==="orderedList"){let a=((i=(n=r.meta)==null?void 0:n.parentAttrs)==null?void 0:i.start)||1,u=(l=(s=r.meta)==null?void 0:s.parentAttrs)==null?void 0:l.type,c=a-1+(r.index||0);return yV(u,c,". ")}return "- "},e),addExtensions(){return [Y0(this.name,[this.options.bulletListTypeName,this.options.orderedListTypeName])]},addKeyboardShortcuts(){return {Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),bV={};rV(bV,{findListItemPos:()=>DP,getNextListDepth:()=>LE,handleBackspace:()=>xE,handleDelete:()=>EE,hasListBefore:()=>Z0,hasListItemAfter:()=>gV,hasListItemBefore:()=>SV,listItemHasSubList:()=>PV,nextListIsDeeper:()=>tN,nextListIsHigher:()=>eN});var DP=(o,t)=>{let{$from:e}=t.selection,r=yr(o,t.schema),n=null,i=e.depth,s=e.pos,l=null;for(;i>0&&l===null;)n=e.node(i),n.type===r?l=i:(i-=1,s-=1);return l===null?null:{$pos:t.doc.resolve(s),depth:l}},LE=(o,t)=>{let e=DP(o,t);if(!e)return false;let[,r]=HC(t,o,e.$pos.pos+4);return r},Z0=(o,t,e)=>{let{$anchor:r}=o.selection,n=Math.max(0,r.pos-2),i=o.doc.resolve(n).node();return !(!i||!e.includes(i.type.name))},xE=(o,t,e)=>{if(o.commands.undoInputRule())return true;if(o.state.selection.from!==o.state.selection.to)return false;if(!ga(o.state,t)&&Z0(o.state,t,e)){let{$anchor:r}=o.state.selection,n=o.state.doc.resolve(r.before()-1),i=[];n.node().descendants((a,u)=>{a.type.name===t&&i.push({node:a,pos:u});});let s=i.at(-1);if(!s)return false;let l=o.state.doc.resolve(n.start()+s.pos+1);return o.chain().cut({from:r.start()-1,to:r.end()+1},l.end()).joinForward().run()}return !ga(o.state,t)||!UC(o.state)?false:o.chain().liftListItem(t).run()},tN=(o,t)=>{let e=LE(o,t),r=DP(o,t);return !r||!e?false:e>r.depth},eN=(o,t)=>{let e=LE(o,t),r=DP(o,t);return !r||!e?false:e<r.depth},EE=(o,t)=>{if(!ga(o.state,t)||!GC(o.state,t))return false;let{selection:e}=o.state,{$from:r,$to:n}=e;return !e.empty&&r.sameParent(n)?false:tN(t,o.state)?o.chain().focus(o.state.selection.from+4).lift(t).joinBackward().run():eN(t,o.state)?o.chain().joinForward().joinBackward().run():o.commands.joinItemForward()},gV=(o,t)=>{var e;let{$anchor:r}=t.selection,n=t.doc.resolve(r.pos-r.parentOffset-2);return !(n.index()===n.parent.childCount-1||((e=n.nodeAfter)==null?void 0:e.type.name)!==o)},SV=(o,t)=>{var e;let{$anchor:r}=t.selection,n=t.doc.resolve(r.pos-2);return !(n.index()===0||((e=n.nodeBefore)==null?void 0:e.type.name)!==o)},PV=(o,t,e)=>{if(!e)return false;let r=yr(o,t.schema),n=false;return e.descendants(i=>{i.type===r&&(n=true);}),n},ME=Bt.create({name:"listKeymap",addOptions(){return {listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}},addKeyboardShortcuts(){return {Delete:({editor:o})=>{let t=false;return this.options.listTypes.forEach(({itemName:e})=>{o.state.schema.nodes[e]!==void 0&&EE(o,e)&&(t=true);}),t},"Mod-Delete":({editor:o})=>{let t=false;return this.options.listTypes.forEach(({itemName:e})=>{o.state.schema.nodes[e]!==void 0&&EE(o,e)&&(t=true);}),t},Backspace:({editor:o})=>{let t=false;return this.options.listTypes.forEach(({itemName:e,wrapperNames:r})=>{o.state.schema.nodes[e]!==void 0&&xE(o,e,r)&&(t=true);}),t},"Mod-Backspace":({editor:o})=>{let t=false;return this.options.listTypes.forEach(({itemName:e,wrapperNames:r})=>{o.state.schema.nodes[e]!==void 0&&xE(o,e,r)&&(t=true);}),t}}}}),vE=new RegExp(`^(\\s*)(${J0})([.)])\\s+(.*)$`),AV=/^\s/,ng={heading:/^#{1,6}(?:\s|$)/,bulletItem:/^[-+*]\s+/,codeFence:/^(?:```|~~~)/,thematicBreak:/^(?:(?:-[ \t]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})$/};function wV(o){return vE.test(o.trimStart())}function xV(o){let t=o.trimStart();return ng.bulletItem.test(t)||wV(t)||ng.heading.test(t)||ng.thematicBreak.test(t)&&!t.startsWith("-")||/^>\s?/.test(t)||ng.codeFence.test(t)}function EV(o){return Object.values(ng).some(t=>t.test(o))}function vV(o){let t=[],e=[],r=false;return o.forEach(n=>{if(r){e.push(n);return}if(n.trim()===""){r=true,e.push(n);return}if(t.length>0&&xV(n)){r=true,e.push(n);return}t.push(n);}),{paragraphLines:t,blockLines:e}}function TV(o){let t=[],e=0,r=0;for(;e<o.length;){let n=o[e],i=n.match(vE);if(!i)break;let[,s,l,a,u]=i,c=s.length,h=parseInt(l,10),f=isNaN(h)?RP(l):void 0,d=isNaN(h)?kE(l):h,g=[u],A=e+1,w=[n],T=false;for(;A<o.length;){let G=o[A];if(G.match(vE))break;if(G.trim()==="")w.push(G),g.push(""),T=true,A+=1;else if(G.match(AV)){let W=G.length-G.trimStart().length,q=c+l.length+1;w.push(G),g.push(G.slice(Math.min(W,q))),A+=1;}else {if(T||EV(G))break;w.push(G),g.push(G),A+=1;}}t.push({indent:c,number:d,type:f,content:g.join(`
286
+ `).trim(),contentLines:g,raw:w.join(`
287
+ `)}),r=A,e=A;}return [t,r]}var CV=new RegExp(`^(${J0})([.)])\\s+(.+)$`);function kV(o){let t=o.split(`
288
+ `).filter(i=>i.trim().length>0);if(t.length===0)return null;let e=[];for(let i of t){let s=i.trim().match(CV);if(!s)return null;e.push({marker:s[1],content:s[3]});}let r=e.map(i=>i.marker);return pV(r)?{type:"orderedList",attrs:hV(e[0].marker),content:e.map(i=>({type:"listItem",content:[{type:"paragraph",content:[{type:"text",text:i.content}]}]}))}:null}function rN(o,t,e){let r=[],n=0;for(;n<o.length;){let i=o[n];if(i.indent===t){let{paragraphLines:s,blockLines:l}=vV(i.contentLines),a=s.join(`
289
+ `).trim(),u=[];a&&u.push({type:"paragraph",raw:a,tokens:e.inlineTokens(a)});let c=l.join(`
290
+ `).trim();if(c){let d=e.blockTokens(c);u.push(...d);}let h=n+1,f=[];for(;h<o.length&&o[h].indent>t;)f.push(o[h]),h+=1;if(f.length>0){let d=Math.min(...f.map(A=>A.indent)),g=rN(f,d,e);u.push({type:"list",ordered:true,start:f[0].number,typeMarker:f[0].type,items:g,raw:f.map(A=>A.raw).join(`
291
+ `)});}r.push({type:"list_item",raw:i.raw,tokens:u}),n=h;}else n+=1;}return r}function NV(o,t){return o.map(e=>{if(e.type!=="list_item")return t.parseChildren([e])[0];let r=[];return e.tokens&&e.tokens.length>0&&e.tokens.forEach(n=>{if(n.type==="paragraph"||n.type==="list"||n.type==="blockquote"||n.type==="code")r.push(...t.parseChildren([n]));else if(n.type==="text"&&n.tokens){let i=t.parseChildren([n]);r.push({type:"paragraph",content:i});}else {let i=t.parseChildren([n]);i.length>0&&r.push(...i);}}),{type:"listItem",content:r}})}var LV="listItem",K0="textStyle",j0=/^(\d+)\.\s$/;function q0(o){let t=o.match(/list-style-type\s*:\s*([^;]+)/i);if(!t)return null;switch(t[1].trim().toLowerCase()){case "upper-roman":return "I";case "lower-roman":return "i";case "upper-alpha":case "upper-latin":return "A";case "lower-alpha":case "lower-latin":return "a";default:return null}}var IE=Ue.create({name:"orderedList",addOptions(){return {itemTypeName:"listItem",HTMLAttributes:{},keepMarks:false,keepAttributes:false}},group:"block list",content(){return `${this.options.itemTypeName}+`},addAttributes(){return {start:{default:1,parseHTML:o=>o.hasAttribute("start")?parseInt(o.getAttribute("start")||"",10):1},type:{default:null,parseHTML:o=>{let t=o.getAttribute("type");if(t)return t;let e=o.getAttribute("style");if(e){let n=q0(e);if(n)return n}let r=o.querySelector("li");if(r){let n=r.getAttribute("style");if(n){let i=q0(n);if(i)return i}}return null}}}},parseHTML(){return [{tag:"ol"}]},renderHTML({HTMLAttributes:o}){let{start:t,type:e,...r}=o,n=Jt(this.options.HTMLAttributes,r);return t!==1&&(n.start=t),e&&e!=="1"&&(n.type=e),["ol",n,0]},markdownTokenName:"list",parseMarkdown:(o,t)=>{if(o.type!=="list"||!o.ordered)return [];let e=o.start||1,r=o.typeMarker,n=o.items?NV(o.items,t):[],i={};return e!==1&&(i.start=e),r&&(i.type=r),Object.keys(i).length>0?{type:"orderedList",attrs:i,content:n}:{type:"orderedList",content:n}},renderMarkdown:(o,t)=>o.content?t.renderChildren(o.content,`
292
+ `):"",markdownTokenizer:{name:"orderedList",level:"block",start:()=>-1,tokenize:(o,t,e)=>{var r,n;let i=o.split(`
293
+ `),[s,l]=TV(i);if(s.length===0)return;let a=rN(s,s[0].indent,e);if(a.length===0)return;let u=((r=s[0])==null?void 0:r.number)||1,c=(n=s[0])==null?void 0:n.type;return {type:"list",ordered:true,start:u,typeMarker:c,items:a,raw:i.slice(0,l).join(`
294
+ `)}}},markdownOptions:{indentsContent:true},addCommands(){return {toggleOrderedList:()=>({commands:o,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(LV,this.editor.getAttributes(K0)).run():o.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return {"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addProseMirrorPlugins(){return [new Dt({props:{handlePaste:(o,t)=>{var e,r;let n=(e=t.clipboardData)==null?void 0:e.getData("text/html");if(n?.trim())return false;let i=(r=t.clipboardData)==null?void 0:r.getData("text/plain");if(!i)return false;let s=kV(i);if(!s)return false;try{let l=o.state.schema.nodeFromJSON(s),a=o.state.tr.replaceSelectionWith(l);return o.dispatch(a),!0}catch{return false}}}})]},addInputRules(){let o=(e,r)=>(!r.attrs.type||r.attrs.type==="1")&&r.childCount+r.attrs.start===+e[1],t=Ji({find:j0,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:o});return (this.options.keepMarks||this.options.keepAttributes)&&(t=Ji({find:j0,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(K0)}),joinPredicate:o,editor:this.editor})),[t]}}),MV=/^\s*(\[([( |x])?\])\s$/,OP=Ue.create({name:"taskItem",addOptions(){return {nested:false,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:true,addAttributes(){return {checked:{default:false,keepOnSplit:false,parseHTML:o=>{let t=o.getAttribute("data-checked");return t===""||t==="true"},renderHTML:o=>({"data-checked":o.checked})}}},parseHTML(){return [{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:o,HTMLAttributes:t}){return ["li",Jt(this.options.HTMLAttributes,t,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:o.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(o,t)=>{let e=[];if(o.tokens&&o.tokens.length>0?e.push(t.createNode("paragraph",{},t.parseInline(o.tokens))):o.text?e.push(t.createNode("paragraph",{},[t.createNode("text",{text:o.text})])):e.push(t.createNode("paragraph",{},[])),o.nestedTokens&&o.nestedTokens.length>0){let r=t.parseChildren(o.nestedTokens);e.push(...r);}return t.createNode("taskItem",{checked:o.checked||false},e)},renderMarkdown:(o,t)=>{var e;let n=`- [${(e=o.attrs)!=null&&e.checked?"x":" "}] `;return wy(o,t,n)},addExtensions(){return this.options.nested?[Y0(this.name,[this.options.taskListTypeName])]:[]},addKeyboardShortcuts(){let o={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...o,Tab:()=>this.editor.commands.sinkListItem(this.name)}:o},addNodeView(){return ({node:o,HTMLAttributes:t,getPos:e,editor:r})=>{let n=document.createElement("li"),i=document.createElement("label"),s=document.createElement("span"),l=document.createElement("input"),a=document.createElement("div"),u=h=>{var f,d;l.ariaLabel=((d=(f=this.options.a11y)==null?void 0:f.checkboxLabel)==null?void 0:d.call(f,h,l.checked))||`Task item checkbox for ${h.textContent||"empty task item"}`;};u(o),i.contentEditable="false",l.type="checkbox",l.addEventListener("mousedown",h=>h.preventDefault()),l.addEventListener("change",h=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){l.checked=!l.checked;return}let{checked:f}=h.target;r.isEditable&&typeof e=="function"&&r.chain().focus(void 0,{scrollIntoView:false}).command(({tr:d})=>{let g=e();if(typeof g!="number")return false;let A=d.doc.nodeAt(g);return d.setNodeMarkup(g,void 0,{...A?.attrs,checked:f}),true}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(o,f)||(l.checked=!l.checked));}),Object.entries(this.options.HTMLAttributes).forEach(([h,f])=>{n.setAttribute(h,f);}),n.dataset.checked=o.attrs.checked,l.checked=o.attrs.checked,i.append(l,s),n.append(i,a),Object.entries(t).forEach(([h,f])=>{n.setAttribute(h,f);});let c=new Set(Object.keys(t));return {dom:n,contentDOM:a,update:h=>{if(h.type!==this.type)return false;n.dataset.checked=h.attrs.checked,l.checked=h.attrs.checked,u(h);let f=r.extensionManager.attributes,d=dp(h,f),g=new Set(Object.keys(d)),A=this.options.HTMLAttributes;return c.forEach(w=>{g.has(w)||(w in A?n.setAttribute(w,A[w]):n.removeAttribute(w));}),Object.entries(d).forEach(([w,T])=>{T==null?w in A?n.setAttribute(w,A[w]):n.removeAttribute(w):n.setAttribute(w,T);}),c=g,true}}}},addInputRules(){return [Ji({find:MV,type:this.type,getAttributes:o=>({checked:o[o.length-1]==="x"})})]}}),FP=Ue.create({name:"taskList",addOptions(){return {itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return `${this.options.itemTypeName}+`},parseHTML(){return [{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:o}){return ["ul",Jt(this.options.HTMLAttributes,o,{"data-type":this.name}),0]},parseMarkdown:(o,t)=>t.createNode("taskList",{},t.parseChildren(o.items||[])),renderMarkdown:(o,t)=>o.content?t.renderChildren(o.content,`
295
+ `):"",markdownTokenizer:{name:"taskList",level:"block",start(o){var t;let e=(t=o.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))==null?void 0:t.index;return e!==void 0?e:-1},tokenize(o,t,e){let r=i=>{let s=Jg(i,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:l=>({indentLevel:l[1].length,mainContent:l[4],checked:l[3].toLowerCase()==="x"}),createToken:(l,a)=>({type:"taskItem",raw:"",mainContent:l.mainContent,indentLevel:l.indentLevel,checked:l.checked,text:l.mainContent,tokens:e.inlineTokens(l.mainContent),nestedTokens:a}),customNestedParser:r},e);if(s){let l={type:"taskList",raw:s.raw,items:s.items},a=i.slice(s.raw.length);return a.trim()?[l,...e.blockTokens(a)]:[l]}return e.blockTokens(i)},n=Jg(o,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:i=>({indentLevel:i[1].length,mainContent:i[4],checked:i[3].toLowerCase()==="x"}),createToken:(i,s)=>({type:"taskItem",raw:"",mainContent:i.mainContent,indentLevel:i.indentLevel,checked:i.checked,text:i.mainContent,tokens:e.inlineTokens(i.mainContent),nestedTokens:s}),customNestedParser:r},e);if(n)return {type:"taskList",raw:n.raw,items:n.items}}},markdownOptions:{indentsContent:true},addCommands(){return {toggleTaskList:()=>({commands:o})=>o.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return {"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});Bt.create({name:"listKit",addExtensions(){let o=[];return this.options.bulletList!==false&&o.push(TE.configure(this.options.bulletList)),this.options.listItem!==false&&o.push(NE.configure(this.options.listItem)),this.options.listKeymap!==false&&o.push(ME.configure(this.options.listKeymap)),this.options.orderedList!==false&&o.push(IE.configure(this.options.orderedList)),this.options.taskItem!==false&&o.push(OP.configure(this.options.taskItem)),this.options.taskList!==false&&o.push(FP.configure(this.options.taskList)),o}});g();var BP="&nbsp;",RE="\xA0",oN=Ue.create({name:"paragraph",priority:1e3,addOptions(){return {HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return [{tag:"p"}]},renderHTML({HTMLAttributes:o}){return ["p",Jt(this.options.HTMLAttributes,o),0]},parseMarkdown:(o,t)=>{let e=o.tokens||[];if(e.length===1&&e[0].type==="image")return t.parseChildren([e[0]]);let r=t.parseInline(e);return e.length===1&&e[0].type==="text"&&(e[0].raw===BP||e[0].text===BP||e[0].raw===RE||e[0].text===RE)&&r.length===1&&r[0].type==="text"&&(r[0].text===BP||r[0].text===RE)?t.createNode("paragraph",void 0,[]):t.createNode("paragraph",void 0,r)},renderMarkdown:(o,t,e)=>{var r,n;if(!o)return "";let i=Array.isArray(o.content)?o.content:[];if(i.length===0){let s=Array.isArray((r=e?.previousNode)==null?void 0:r.content)?e.previousNode.content:[];return ((n=e?.previousNode)==null?void 0:n.type)==="paragraph"&&s.length===0?BP:""}return t.renderChildren(i)},addCommands(){return {setParagraph:()=>({commands:o})=>o.setNode(this.name)}},addKeyboardShortcuts(){return {"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}});g();var IV=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,RV=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,nN=lo.create({name:"strike",addOptions(){return {HTMLAttributes:{}}},parseHTML(){return [{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:false,getAttrs:o=>o.includes("line-through")?{}:false}]},renderHTML({HTMLAttributes:o}){return ["s",Jt(this.options.HTMLAttributes,o),0]},markdownTokenName:"del",parseMarkdown:(o,t)=>t.applyMark("strike",t.parseInline(o.tokens||[])),renderMarkdown:(o,t)=>`~~${t.renderChildren(o)}~~`,addCommands(){return {setStrike:()=>({commands:o})=>o.setMark(this.name),toggleStrike:()=>({commands:o})=>o.toggleMark(this.name),unsetStrike:()=>({commands:o})=>o.unsetMark(this.name)}},addKeyboardShortcuts(){return {"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return [Jn({find:IV,type:this.type})]},addPasteRules(){return [yn({find:RV,type:this.type})]}});g();var iN=Ue.create({name:"text",group:"inline",parseMarkdown:o=>({type:"text",text:o.text||""}),renderMarkdown:o=>o.text||""});g();var DE=lo.create({name:"underline",addOptions(){return {HTMLAttributes:{}}},parseHTML(){return [{tag:"u"},{style:"text-decoration",consuming:false,getAttrs:o=>o.includes("underline")?{}:false}]},renderHTML({HTMLAttributes:o}){return ["u",Jt(this.options.HTMLAttributes,o),0]},parseMarkdown(o,t){return t.applyMark(this.name||"underline",t.parseInline(o.tokens||[]))},renderMarkdown(o,t){return `++${t.renderChildren(o)}++`},markdownTokenizer:{name:"underline",level:"inline",start(o){return o.indexOf("++")},tokenize(o,t,e){let n=/^(\+\+)([\s\S]+?)(\+\+)/.exec(o);if(!n)return;let i=n[2].trim();return {type:"underline",raw:n[0],text:i,tokens:e.inlineTokens(i)}}},addCommands(){return {setUnderline:()=>({commands:o})=>o.setMark(this.name),toggleUnderline:()=>({commands:o})=>o.toggleMark(this.name),unsetUnderline:()=>({commands:o})=>o.unsetMark(this.name)}},addKeyboardShortcuts(){return {"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),sN=DE;g();g();g();function lN(o={}){return new Dt({view(t){return new OE(t,o)}})}var OE=class{constructor(t,e){var r;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.lastDragEvent=null,this.width=(r=e.width)!==null&&r!==void 0?r:1,this.color=e.color===false?void 0:e.color||"black",this.class=e.class,this.handlers=["dragover","dragend","drop","dragleave"].map(n=>{let i=s=>{this[n](s);};return t.dom.addEventListener(n,i),{name:n,handler:i}});}destroy(){this.handlers.forEach(({name:t,handler:e})=>this.editorView.dom.removeEventListener(t,e));}update(t,e){if(this.cursorPos!=null&&e.doc!=t.state.doc)if(this.lastDragEvent){let r=this.computeTarget(this.lastDragEvent);r==this.cursorPos?this.updateOverlay():this.setCursor(r);}else this.updateOverlay();}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,t==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay());}updateOverlay(){let t=this.editorView.state.doc.resolve(this.cursorPos),e=!t.parent.inlineContent,r,n=this.editorView.dom,i=n.getBoundingClientRect(),s=i.width/n.offsetWidth,l=i.height/n.offsetHeight;if(e){let h=t.nodeBefore,f=t.nodeAfter;if(h||f){let d=this.editorView.nodeDOM(this.cursorPos-(h?h.nodeSize:0));if(d){let g=d.getBoundingClientRect(),A=h?g.bottom:g.top;h&&f&&(A=(A+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let w=this.width/2*l;r={left:g.left,right:g.right,top:A-w,bottom:A+w};}}}if(!r){let h=this.editorView.coordsAtPos(this.cursorPos),f=this.width/2*s;r={left:h.left-f,right:h.left+f,top:h.top,bottom:h.bottom};}let a=this.editorView.dom.offsetParent;this.element||(this.element=a.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",e),this.element.classList.toggle("prosemirror-dropcursor-inline",!e);let u,c;if(!a||a==document.body&&getComputedStyle(a).position=="static")u=-pageXOffset,c=-pageYOffset;else {let h=a.getBoundingClientRect(),f=h.width/a.offsetWidth,d=h.height/a.offsetHeight;u=h.left-a.scrollLeft*f,c=h.top-a.scrollTop*d;}this.element.style.left=(r.left-u)/s+"px",this.element.style.top=(r.top-c)/l+"px",this.element.style.width=(r.right-r.left)/s+"px",this.element.style.height=(r.bottom-r.top)/l+"px";}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t);}computeTarget(t){let e=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),r=e&&e.inside>=0&&this.editorView.state.doc.nodeAt(e.inside),n=r&&r.type.spec.disableDropCursor,i=typeof n=="function"?n(this.editorView,e,t):n;if(!e||i)return null;let s=e.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let l=wg(this.editorView.state.doc,s,this.editorView.dragging.slice);l!=null&&(s=l);}return s}dragover(t){if(!this.editorView.editable)return;this.lastDragEvent=t;let e=this.computeTarget(t);e!=null&&(this.setCursor(e),this.scheduleRemoval(5e3));}dragend(){this.scheduleRemoval(20);}drop(){this.scheduleRemoval(20);}dragleave(t){this.editorView.dom.contains(t.relatedTarget)||this.setCursor(null);}};g();g();var Do=class o extends Vt{constructor(t){super(t,t);}map(t,e){let r=t.resolve(e.map(this.head));return o.valid(r)?new o(r):Vt.near(r)}content(){return yt.empty}eq(t){return t instanceof o&&t.head==this.head}toJSON(){return {type:"gapcursor",pos:this.head}}static fromJSON(t,e){if(typeof e.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new o(t.resolve(e.pos))}getBookmark(){return new FE(this.anchor)}static valid(t){let e=t.parent;if(e.inlineContent||!DV(t)||!OV(t))return false;let r=e.type.spec.allowGapCursor;if(r!=null)return r;let n=e.contentMatchAt(t.index()).defaultType;return n&&n.isTextblock}static findGapCursorFrom(t,e,r=false){t:for(;;){if(!r&&o.valid(t))return t;let n=t.pos,i=null;for(let s=t.depth;;s--){let l=t.node(s);if(e>0?t.indexAfter(s)<l.childCount:t.index(s)>0){i=l.child(e>0?t.indexAfter(s):t.index(s)-1);break}else if(s==0)return null;n+=e;let a=t.doc.resolve(n);if(o.valid(a))return a}for(;;){let s=e>0?i.firstChild:i.lastChild;if(!s){if(i.isAtom&&!i.isText&&!wt.isSelectable(i)){t=t.doc.resolve(n+i.nodeSize*e),r=false;continue t}break}i=s,n+=e;let l=t.doc.resolve(n);if(o.valid(l))return l}return null}}};Do.prototype.visible=false;Do.findFrom=Do.findGapCursorFrom;Vt.jsonID("gapcursor",Do);var FE=class o{constructor(t){this.pos=t;}map(t){return new o(t.map(this.pos))}resolve(t){let e=t.resolve(this.pos);return Do.valid(e)?new Do(e):Vt.near(e)}};function aN(o){return o.isAtom||o.spec.isolating||o.spec.createGapCursor}function DV(o){for(let t=o.depth;t>=0;t--){let e=o.index(t),r=o.node(t);if(e==0){if(r.type.spec.isolating)return true;continue}for(let n=r.child(e-1);;n=n.lastChild){if(n.childCount==0&&!n.inlineContent||aN(n.type))return true;if(n.inlineContent)return false}}return true}function OV(o){for(let t=o.depth;t>=0;t--){let e=o.indexAfter(t),r=o.node(t);if(e==r.childCount){if(r.type.spec.isolating)return true;continue}for(let n=r.child(e);;n=n.firstChild){if(n.childCount==0&&!n.inlineContent||aN(n.type))return true;if(n.inlineContent)return false}}return true}function uN(){return new Dt({props:{decorations:HV,createSelectionBetween(o,t,e){return t.pos==e.pos&&Do.valid(e)?new Do(e):null},handleClick:BV,handleKeyDown:FV,handleDOMEvents:{beforeinput:VV}}})}var FV=rw({ArrowLeft:VP("horiz",-1),ArrowRight:VP("horiz",1),ArrowUp:VP("vert",-1),ArrowDown:VP("vert",1)});function VP(o,t){let e=o=="vert"?t>0?"down":"up":t>0?"right":"left";return function(r,n,i){let s=r.selection,l=t>0?s.$to:s.$from,a=s.empty;if(s instanceof At){if(!i.endOfTextblock(e)||l.depth==0)return false;a=false,l=r.doc.resolve(t>0?l.after():l.before());}let u=Do.findGapCursorFrom(l,t,a);return u?(n&&n(r.tr.setSelection(new Do(u))),true):false}}function BV(o,t,e){if(!o||!o.editable)return false;let r=o.state.doc.resolve(t);if(!Do.valid(r))return false;let n=o.posAtCoords({left:e.clientX,top:e.clientY});return n&&n.inside>-1&&wt.isSelectable(o.state.doc.nodeAt(n.inside))?false:(o.dispatch(o.state.tr.setSelection(new Do(r))),true)}function VV(o,t){if(t.inputType!="insertCompositionText"||!(o.state.selection instanceof Do))return false;let{$from:e}=o.state.selection,r=e.parent.contentMatchAt(e.index()).findWrapping(o.state.schema.nodes.text);if(!r)return false;let n=tt.empty;for(let s=r.length-1;s>=0;s--)n=tt.from(r[s].createAndFill(null,n));let i=o.state.tr.replace(e.pos,e.pos,new yt(n,0,0));return i.setSelection(At.near(i.doc.resolve(e.pos+1))),o.dispatch(i),false}function HV(o){if(!(o.selection instanceof Do))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",qe.create(o.doc,[To.widget(o.selection.head,t,{key:"gapcursor"})])}g();g();g();var HP=200,wo=function(){};wo.prototype.append=function(t){return t.length?(t=wo.from(t),!this.length&&t||t.length<HP&&this.leafAppend(t)||this.length<HP&&t.leafPrepend(this)||this.appendInner(t)):this};wo.prototype.prepend=function(t){return t.length?wo.from(t).append(this):this};wo.prototype.appendInner=function(t){return new GV(this,t)};wo.prototype.slice=function(t,e){return t===void 0&&(t=0),e===void 0&&(e=this.length),t>=e?wo.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,e))};wo.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)};wo.prototype.forEach=function(t,e,r){e===void 0&&(e=0),r===void 0&&(r=this.length),e<=r?this.forEachInner(t,e,r,0):this.forEachInvertedInner(t,e,r,0);};wo.prototype.map=function(t,e,r){e===void 0&&(e=0),r===void 0&&(r=this.length);var n=[];return this.forEach(function(i,s){return n.push(t(i,s))},e,r),n};wo.from=function(t){return t instanceof wo?t:t&&t.length?new cN(t):wo.empty};var cN=(function(o){function t(r){o.call(this),this.values=r;}o&&(t.__proto__=o),t.prototype=Object.create(o&&o.prototype),t.prototype.constructor=t;var e={length:{configurable:true},depth:{configurable:true}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(n,i){return n==0&&i==this.length?this:new t(this.values.slice(n,i))},t.prototype.getInner=function(n){return this.values[n]},t.prototype.forEachInner=function(n,i,s,l){for(var a=i;a<s;a++)if(n(this.values[a],l+a)===false)return false},t.prototype.forEachInvertedInner=function(n,i,s,l){for(var a=i-1;a>=s;a--)if(n(this.values[a],l+a)===false)return false},t.prototype.leafAppend=function(n){if(this.length+n.length<=HP)return new t(this.values.concat(n.flatten()))},t.prototype.leafPrepend=function(n){if(this.length+n.length<=HP)return new t(n.flatten().concat(this.values))},e.length.get=function(){return this.values.length},e.depth.get=function(){return 0},Object.defineProperties(t.prototype,e),t})(wo);wo.empty=new cN([]);var GV=(function(o){function t(e,r){o.call(this),this.left=e,this.right=r,this.length=e.length+r.length,this.depth=Math.max(e.depth,r.depth)+1;}return o&&(t.__proto__=o),t.prototype=Object.create(o&&o.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},t.prototype.forEachInner=function(r,n,i,s){var l=this.left.length;if(n<l&&this.left.forEachInner(r,n,Math.min(i,l),s)===false||i>l&&this.right.forEachInner(r,Math.max(n-l,0),Math.min(this.length,i)-l,s+l)===false)return false},t.prototype.forEachInvertedInner=function(r,n,i,s){var l=this.left.length;if(n>l&&this.right.forEachInvertedInner(r,n-l,Math.max(i,l)-l,s+l)===false||i<l&&this.left.forEachInvertedInner(r,Math.min(n,l),i,s)===false)return false},t.prototype.sliceInner=function(r,n){if(r==0&&n==this.length)return this;var i=this.left.length;return n<=i?this.left.slice(r,n):r>=i?this.right.slice(r-i,n-i):this.left.slice(r,i).append(this.right.slice(0,n-i))},t.prototype.leafAppend=function(r){var n=this.right.leafAppend(r);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(r){var n=this.left.leafPrepend(r);if(n)return new t(n,this.right)},t.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new t(this.left,new t(this.right,r)):new t(this,r)},t})(wo),BE=wo;var UV=500,tp=class o{constructor(t,e){this.items=t,this.eventCount=e;}popEvent(t,e){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let n,i;e&&(n=this.remapping(r,this.items.length),i=n.maps.length);let s=t.tr,l,a,u=[],c=[];return this.items.forEach((h,f)=>{if(!h.step){n||(n=this.remapping(r,f+1),i=n.maps.length),i--,c.push(h);return}if(n){c.push(new Js(h.map));let d=h.step.map(n.slice(i)),g;d&&s.maybeStep(d).doc&&(g=s.mapping.maps[s.mapping.maps.length-1],u.push(new Js(g,void 0,void 0,u.length+c.length))),i--,g&&n.appendMap(g,i);}else s.maybeStep(h.step);if(h.selection)return l=n?h.selection.map(n.slice(i)):h.selection,a=new o(this.items.slice(0,r).append(c.reverse().concat(u)),this.eventCount-1),false},this.items.length,0),{remaining:a,transform:s,selection:l}}addTransform(t,e,r,n){let i=[],s=this.eventCount,l=this.items,a=!n&&l.length?l.get(l.length-1):null;for(let c=0;c<t.steps.length;c++){let h=t.steps[c].invert(t.docs[c]),f=new Js(t.mapping.maps[c],h,e),d;(d=a&&a.merge(f))&&(f=d,c?i.pop():l=l.slice(0,l.length-1)),i.push(f),e&&(s++,e=void 0),n||(a=f);}let u=s-r.depth;return u>zV&&(l=WV(l,u),s-=u),new o(l.append(i),s)}remapping(t,e){let r=new ry;return this.items.forEach((n,i)=>{let s=n.mirrorOffset!=null&&i-n.mirrorOffset>=t?r.maps.length-n.mirrorOffset:void 0;r.appendMap(n.map,s);},t,e),r}addMaps(t){return this.eventCount==0?this:new o(this.items.append(t.map(e=>new Js(e))),this.eventCount)}rebased(t,e){if(!this.eventCount)return this;let r=[],n=Math.max(0,this.items.length-e),i=t.mapping,s=t.steps.length,l=this.eventCount;this.items.forEach(f=>{f.selection&&l--;},n);let a=e;this.items.forEach(f=>{let d=i.getMirror(--a);if(d==null)return;s=Math.min(s,d);let g=i.maps[d];if(f.step){let A=t.steps[d].invert(t.docs[d]),w=f.selection&&f.selection.map(i.slice(a+1,d));w&&l++,r.push(new Js(g,A,w));}else r.push(new Js(g));},n);let u=[];for(let f=e;f<s;f++)u.push(new Js(i.maps[f]));let c=this.items.slice(0,n).append(u).append(r),h=new o(c,l);return h.emptyItemCount()>UV&&(h=h.compress(this.items.length-r.length)),h}emptyItemCount(){let t=0;return this.items.forEach(e=>{e.step||t++;}),t}compress(t=this.items.length){let e=this.remapping(0,t),r=e.maps.length,n=[],i=0;return this.items.forEach((s,l)=>{if(l>=t)n.push(s),s.selection&&i++;else if(s.step){let a=s.step.map(e.slice(r)),u=a&&a.getMap();if(r--,u&&e.appendMap(u,r),a){let c=s.selection&&s.selection.map(e.slice(r));c&&i++;let h=new Js(u.invert(),a,c),f,d=n.length-1;(f=n.length&&n[d].merge(h))?n[d]=f:n.push(h);}}else s.map&&r--;},this.items.length,0),new o(BE.from(n.reverse()),i)}};tp.empty=new tp(BE.empty,0);function WV(o,t){let e;return o.forEach((r,n)=>{if(r.selection&&t--==0)return e=n,false}),o.slice(e)}var Js=class o{constructor(t,e,r,n){this.map=t,this.step=e,this.selection=r,this.mirrorOffset=n;}merge(t){if(this.step&&t.step&&!t.selection){let e=t.step.merge(this.step);if(e)return new o(e.getMap().invert(),e,this.selection)}}},Xs=class{constructor(t,e,r,n,i){this.done=t,this.undone=e,this.prevRanges=r,this.prevTime=n,this.prevComposition=i;}},zV=20;function _V(o,t,e,r){let n=e.getMeta(Zc),i;if(n)return n.historyState;e.getMeta(jV)&&(o=new Xs(o.done,o.undone,null,0,-1));let s=e.getMeta("appendedTransaction");if(e.steps.length==0)return o;if(s&&s.getMeta(Zc))return s.getMeta(Zc).redo?new Xs(o.done.addTransform(e,void 0,r,GP(t)),o.undone,pN(e.mapping.maps),o.prevTime,o.prevComposition):new Xs(o.done,o.undone.addTransform(e,void 0,r,GP(t)),null,o.prevTime,o.prevComposition);if(e.getMeta("addToHistory")!==false&&!(s&&s.getMeta("addToHistory")===false)){let l=e.getMeta("composition"),a=o.prevTime==0||!s&&o.prevComposition!=l&&(o.prevTime<(e.time||0)-r.newGroupDelay||!$V(e,o.prevRanges)),u=s?VE(o.prevRanges,e.mapping):pN(e.mapping.maps);return new Xs(o.done.addTransform(e,a?t.selection.getBookmark():void 0,r,GP(t)),tp.empty,u,e.time,l??o.prevComposition)}else return (i=e.getMeta("rebased"))?new Xs(o.done.rebased(e,i),o.undone.rebased(e,i),VE(o.prevRanges,e.mapping),o.prevTime,o.prevComposition):new Xs(o.done.addMaps(e.mapping.maps),o.undone.addMaps(e.mapping.maps),VE(o.prevRanges,e.mapping),o.prevTime,o.prevComposition)}function $V(o,t){if(!t)return false;if(!o.docChanged)return true;let e=false;return o.mapping.maps[0].forEach((r,n)=>{for(let i=0;i<t.length;i+=2)r<=t[i+1]&&n>=t[i]&&(e=true);}),e}function pN(o){let t=[];for(let e=o.length-1;e>=0&&t.length==0;e--)o[e].forEach((r,n,i,s)=>t.push(i,s));return t}function VE(o,t){if(!o)return null;let e=[];for(let r=0;r<o.length;r+=2){let n=t.map(o[r],1),i=t.map(o[r+1],-1);n<=i&&e.push(n,i);}return e}function KV(o,t,e){let r=GP(t),n=Zc.get(t).spec.config,i=(e?o.undone:o.done).popEvent(t,r);if(!i)return null;let s=i.selection.resolve(i.transform.doc),l=(e?o.done:o.undone).addTransform(i.transform,t.selection.getBookmark(),n,r),a=new Xs(e?l:i.remaining,e?i.remaining:l,null,0,-1);return i.transform.setSelection(s).setMeta(Zc,{redo:e,historyState:a})}var HE=false,mN=null;function GP(o){let t=o.plugins;if(mN!=t){HE=false,mN=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){HE=true;break}}return HE}var Zc=new ne("history"),jV=new ne("closeHistory");function hN(o={}){return o={depth:o.depth||100,newGroupDelay:o.newGroupDelay||500},new Dt({key:Zc,state:{init(){return new Xs(tp.empty,tp.empty,null,0,-1)},apply(t,e,r){return _V(e,r,t,o)}},config:o,props:{handleDOMEvents:{beforeinput(t,e){let r=e.inputType,n=r=="historyUndo"?GE:r=="historyRedo"?UE:null;return !n||!t.editable?false:(e.preventDefault(),n(t.state,t.dispatch))}}}})}function UP(o,t){return (e,r)=>{let n=Zc.getState(e);if(!n||(o?n.undone:n.done).eventCount==0)return false;if(r){let i=KV(n,e,o);i&&r(t?i.scrollIntoView():i);}return true}}var GE=UP(false,true),UE=UP(true,true);Bt.create({name:"characterCount",addOptions(){return {limit:null,autoTrim:true,mode:"textSize",textCounter:o=>o.length,wordCounter:o=>o.split(" ").filter(t=>t!=="").length}},addStorage(){return {characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=o=>{let t=o?.node||this.editor.state.doc;if((o?.mode||this.options.mode)==="textSize"){let r=t.textBetween(0,t.content.size,void 0," ");return this.options.textCounter(r)}return t.nodeSize},this.storage.words=o=>{let t=o?.node||this.editor.state.doc,e=t.textBetween(0,t.content.size," "," ");return this.options.wordCounter(e)};},addProseMirrorPlugins(){let o=false;return [new Dt({key:new ne("characterCount"),appendTransaction:(t,e,r)=>{if(o)return;let n=this.options.limit,i=this.options.autoTrim;if(n==null||n===0||i===false){o=true;return}let s=this.storage.characters({node:r.doc});if(s>n){let l=s-n,a=0,u=l;console.warn(`[CharacterCount] Initial content exceeded limit of ${n} characters. Content was automatically trimmed.`);let c=r.tr.deleteRange(a,u);return o=true,c}o=true;},filterTransaction:(t,e)=>{let r=this.options.limit;if(!t.docChanged||r===0||r===null||r===void 0)return true;let n=this.storage.characters({node:e.doc}),i=this.storage.characters({node:t.doc});if(i<=r||n>r&&i>r&&i<=n)return true;if(n>r&&i>r&&i>n||!t.getMeta("paste"))return false;let l=t.selection.$head.pos,a=i-r,u=l-a,c=l;return t.deleteRange(u,c),!(this.storage.characters({node:t.doc})>r)}})]}});var fN=Bt.create({name:"dropCursor",addOptions(){return {color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return [lN(this.options)]}});Bt.create({name:"focus",addOptions(){return {className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return [new Dt({key:new ne("focus"),props:{decorations:({doc:o,selection:t})=>{let{isEditable:e,isFocused:r}=this.editor,{anchor:n}=t,i=[];if(!e||!r)return qe.create(o,[]);let s=0;this.options.mode==="deepest"&&o.descendants((a,u)=>{if(a.isText)return;if(!(n>=u&&n<=u+a.nodeSize-1))return false;s+=1;});let l=0;return o.descendants((a,u)=>{if(a.isText||!(n>=u&&n<=u+a.nodeSize-1))return false;if(l+=1,this.options.mode==="deepest"&&s-l>0||this.options.mode==="shallowest"&&l>1)return this.options.mode==="deepest";i.push(To.node(u,u+a.nodeSize,{class:this.options.className}));}),qe.create(o,i)}}})]}});var bN=Bt.create({name:"gapCursor",addProseMirrorPlugins(){return [uN()]},extendNodeSchema(o){var t;let e={name:o.name,options:o.options,storage:o.storage};return {allowGapCursor:(t=Le(vt(o,"allowGapCursor",e)))!=null?t:null}}}),gN="placeholder",yN=new ne("tiptap__placeholder");function SN(o){let{editor:t,placeholder:e,dataAttribute:r,pos:n,node:i,isEmptyDoc:s,hasAnchor:l,classes:{emptyNode:a,emptyEditor:u}}=o,c=[a];return s&&c.push(u),To.node(n,n+i.nodeSize,{class:c.join(" "),[r]:typeof e=="function"?e({editor:t,node:i,pos:n,hasAnchor:l}):e})}function PN(o,t){return typeof o=="function"?o(t):o}function AN({editor:o,options:t,dataAttribute:e,doc:r,selection:n,from:i,to:s}){let{anchor:l}=n,a=[],u=o.isEmpty;return r.nodesBetween(i,s,(c,h)=>{let f=l>=h&&l<=h+c.nodeSize,d=!c.isLeaf&&Ay(c);return c.type.isTextblock&&(f||!t.showOnlyCurrent)&&d&&a.push(SN({editor:o,isEmptyDoc:u,dataAttribute:e,hasAnchor:f,placeholder:t.placeholder,classes:{emptyEditor:t.emptyEditorClass,emptyNode:PN(t.emptyNodeClass,{editor:o,node:c,pos:h,hasAnchor:f})},node:c,pos:h})),t.includeChildren}),a}function wN({editor:o,options:t,dataAttribute:e,doc:r,selection:n}){if(!(o.isEditable||!t.showOnlyWhenEditable))return null;let{anchor:s}=n,l=[],a=o.isEmpty;if(t.showOnlyCurrent&&!t.includeChildren){let c=r.resolve(s),h=c.depth>0?c.node(1):c.nodeAfter,f=c.depth>0?c.before(1):s;if(h&&h.type.isTextblock&&Ay(h)){let d=s>=f&&s<=f+h.nodeSize;l.push(SN({editor:o,isEmptyDoc:a,dataAttribute:e,hasAnchor:d,placeholder:t.placeholder,classes:{emptyEditor:t.emptyEditorClass,emptyNode:PN(t.emptyNodeClass,{editor:o,node:h,pos:f,hasAnchor:d})},node:h,pos:f}));}}else l.push(...AN({editor:o,options:t,dataAttribute:e,doc:r,selection:n,from:0,to:r.content.size}));return qe.create(r,l)}function ig(o,t){var e;let r=o.resolve(t);if(r.depth===0){let s=(e=r.nodeAfter)!=null?e:r.nodeBefore;if(!s)return {from:t,to:t};let l=r.nodeAfter?t:t-s.nodeSize;return {from:l,to:l+s.nodeSize}}let n=r.before(1),i=r.node(1);return {from:n,to:n+i.nodeSize}}function sg(o,t){return {from:Math.max(0,t.from-1),to:Math.min(o.content.size,t.to-1)}}function qV(o,t,e){let r=[];return o.forEach((n,i)=>{let s=i,l=s+n.nodeSize,a=s+1,u=l+1;a<e&&u>t&&r.push({from:s,to:l});}),r}function YV(o){if(o.length===0)return [];let t=[...o].sort((r,n)=>r.from-n.from),e=[{...t[0]}];for(let r=1;r<t.length;r+=1){let n=e[e.length-1],i=t[r];i.from<=n.to?n.to=Math.max(n.to,i.to):e.push({...i});}return e}function QV(o,t){let e=qV(o,t.from,t.to);return e.push(sg(o,ig(o,t.from))),t.to>t.from?e.push(sg(o,ig(o,Math.min(t.to,o.content.size+1)-1))):t.from<o.content.size+1&&e.push(sg(o,ig(o,Math.min(t.from+1,o.content.size)))),e}function JV(o,t,e){let r=[];if(o.docChanged){let n=Py(o);for(let i of n)r.push(...QV(e.doc,i.newRange));}return o.selectionSet&&(r.push(sg(e.doc,ig(e.doc,o.mapping.map(t.selection.anchor)))),r.push(sg(e.doc,ig(e.doc,e.selection.anchor)))),YV(r)}function XV(o,t,e){let r=Math.max(0,Math.min(o,e.content.size)),n=Math.max(r,Math.min(t,e.content.size));return {from:r,to:n}}function ZV({decorations:o,ranges:t,editor:e,options:r,dataAttribute:n,doc:i,selection:s}){let l=o;for(let a of t){let{from:u,to:c}=XV(a.from,a.to,i),h=l.find(u,c).filter(d=>d.from>=u&&d.to<=c);h.length&&(l=l.remove(h));let f=AN({editor:e,options:r,dataAttribute:n,doc:i,selection:s,from:u,to:c});f.length&&(l=l.add(i,f));}return l}function t2({editor:o,options:t,dataAttribute:e}){return {init(r,n){let i=wN({editor:o,options:t,dataAttribute:e,doc:n.doc,selection:n.selection});return i??qe.empty},apply(r,n,i,s){if(!r.docChanged&&!r.selectionSet)return n;let l=n.map(r.mapping,r.doc),a=JV(r,i,s);return ZV({decorations:l,ranges:a,editor:o,options:t,dataAttribute:e,doc:s.doc,selection:s.selection})}}}function e2(o){return o.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}function r2({editor:o,options:t}){let e=t.dataAttribute?`data-${e2(t.dataAttribute)}`:`data-${gN}`,r=t.showOnlyCurrent&&!t.includeChildren;return new Dt({key:yN,...r?{}:{state:t2({editor:o,options:t,dataAttribute:e})},props:{decorations:r?({doc:n,selection:i})=>wN({editor:o,options:t,dataAttribute:e,doc:n,selection:i}):n=>{var i;return t.showOnlyWhenEditable&&!o.isEditable?qe.empty:(i=yN.getState(n))!=null?i:qe.empty}}})}Bt.create({name:"placeholder",addOptions(){return {emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:gN,placeholder:"Write something \u2026",showOnlyWhenEditable:true,showOnlyCurrent:true,includeChildren:false}},addProseMirrorPlugins(){return [r2({editor:this.editor,options:this.options})]}});function WE(o,t){return !o.selection.empty&&!Qg(o.selection)&&t.isEditable}function o2(o,t){return WE(o,t)&&!t.isFocused&&!t.view.dragging}function n2(){var o;(o=window.getSelection())==null||o.removeAllRanges();}function i2(o){o.focus();}Bt.create({name:"selection",addOptions(){return {className:"selection"}},addProseMirrorPlugins(){let{editor:o,options:t}=this;return [new Dt({key:new ne("selection"),props:{decorations(e){return o2(e,o)?qe.create(e.doc,[To.inline(e.selection.from,e.selection.to,{class:t.className})]):null},handleDOMEvents:{blur(e){return WE(e.state,o)&&n2(),false},focus(e){return WE(e.state,o)&&requestAnimationFrame(()=>{!o.isDestroyed&&e.hasFocus()&&i2(e);}),false}}}})]}});var s2="skipTrailingNode";function dN({types:o,node:t}){return t&&Array.isArray(o)&&o.includes(t.type)||t?.type===o}var xN=Bt.create({name:"trailingNode",addOptions(){return {node:void 0,notAfter:[]}},addProseMirrorPlugins(){var o;let t=new ne(this.name),e=this.options.node||((o=this.editor.schema.topNodeType.contentMatch.defaultType)==null?void 0:o.name)||"paragraph",r=Object.entries(this.editor.schema.nodes).map(([,n])=>n).filter(n=>(this.options.notAfter||[]).concat(e).includes(n.name));return [new Dt({key:t,appendTransaction:(n,i,s)=>{let{doc:l,tr:a,schema:u}=s,c=t.getState(s),h=l.content.size,f=u.nodes[e];if(!n.some(d=>d.getMeta(s2))&&c)return a.insert(h,f.create())},state:{init:(n,i)=>{let s=i.tr.doc.lastChild;return !dN({node:s,types:r})},apply:(n,i)=>{if(!n.docChanged||n.getMeta("__uniqueIDTransaction"))return i;let s=n.doc.lastChild;return !dN({node:s,types:r})}}})]}}),EN=Bt.create({name:"undoRedo",addOptions(){return {depth:100,newGroupDelay:500}},addCommands(){return {undo:()=>({state:o,dispatch:t})=>GE(o,t),redo:()=>({state:o,dispatch:t})=>UE(o,t)}},addProseMirrorPlugins(){return [hN(this.options)]},addKeyboardShortcuts(){return {"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-\u044F":()=>this.editor.commands.undo(),"Shift-Mod-\u044F":()=>this.editor.commands.redo()}}});var l2=Bt.create({name:"starterKit",addExtensions(){var o,t,e,r;let n=[];return this.options.bold!==false&&n.push(A0.configure(this.options.bold)),this.options.blockquote!==false&&n.push(P0.configure(this.options.blockquote)),this.options.bulletList!==false&&n.push(TE.configure(this.options.bulletList)),this.options.code!==false&&n.push(w0.configure(this.options.code)),this.options.codeBlock!==false&&n.push(x0.configure(this.options.codeBlock)),this.options.document!==false&&n.push(E0.configure(this.options.document)),this.options.dropcursor!==false&&n.push(fN.configure(this.options.dropcursor)),this.options.gapcursor!==false&&n.push(bN.configure(this.options.gapcursor)),this.options.hardBreak!==false&&n.push(v0.configure(this.options.hardBreak)),this.options.heading!==false&&n.push(T0.configure(this.options.heading)),this.options.undoRedo!==false&&n.push(EN.configure(this.options.undoRedo)),this.options.horizontalRule!==false&&n.push(C0.configure(this.options.horizontalRule)),this.options.italic!==false&&n.push(k0.configure(this.options.italic)),this.options.listItem!==false&&n.push(NE.configure(this.options.listItem)),this.options.listKeymap!==false&&n.push(ME.configure((o=this.options)==null?void 0:o.listKeymap)),this.options.link!==false&&n.push(wE.configure((t=this.options)==null?void 0:t.link)),this.options.orderedList!==false&&n.push(IE.configure(this.options.orderedList)),this.options.paragraph!==false&&n.push(oN.configure(this.options.paragraph)),this.options.strike!==false&&n.push(nN.configure(this.options.strike)),this.options.text!==false&&n.push(iN.configure(this.options.text)),this.options.underline!==false&&n.push(DE.configure((e=this.options)==null?void 0:e.underline)),this.options.trailingNode!==false&&n.push(xN.configure((r=this.options)==null?void 0:r.trailingNode)),n}}),vN=l2;g();var a2=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,u2=Ue.create({name:"image",addOptions(){return {inline:false,allowBase64:false,HTMLAttributes:{},resize:false}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:true,addAttributes(){return {src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}}},parseHTML(){return [{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:o}){return ["img",Jt(this.options.HTMLAttributes,o)]},parseMarkdown:(o,t)=>t.createNode("image",{src:o.href,title:o.title,alt:o.text}),renderMarkdown:o=>{var t,e,r,n,i,s;let l=(e=(t=o.attrs)==null?void 0:t.src)!=null?e:"",a=(n=(r=o.attrs)==null?void 0:r.alt)!=null?n:"",u=(s=(i=o.attrs)==null?void 0:i.title)!=null?s:"";return u?`![${a}](${l} "${u}")`:`![${a}](${l})`},addNodeView(){if(!this.options.resize||!this.options.resize.enabled||typeof document>"u")return null;let{directions:o,minWidth:t,minHeight:e,alwaysPreserveAspectRatio:r}=this.options.resize;return ({node:n,getPos:i,HTMLAttributes:s,editor:l})=>{let a=document.createElement("img");a.draggable=false;let u=Jt(this.options.HTMLAttributes,s);Object.entries(u).forEach(([f,d])=>{if(d!=null)switch(f){case "width":case "height":break;default:a.setAttribute(f,d);break}}),u.src!==null&&(a.src=u.src);let c=new qC({element:a,editor:l,node:n,getPos:i,onResize:(f,d)=>{a.style.width=`${f}px`,a.style.height=`${d}px`;},onCommit:(f,d)=>{let g=i();g!==void 0&&this.editor.chain().setNodeSelection(g).updateAttributes(this.name,{width:f,height:d}).run();},onUpdate:(f,d,g)=>f.type===n.type,options:{directions:o,min:{width:t,height:e},preserveAspectRatio:r===true}}),h=c.dom;return h.style.visibility="hidden",h.style.pointerEvents="none",a.onload=()=>{h.style.visibility="",h.style.pointerEvents="";},c}},addCommands(){return {setImage:o=>({commands:t})=>t.insertContent({type:this.name,attrs:o})}},addInputRules(){return [Zg({find:a2,type:this.type,getAttributes:o=>{let[,,t,e,r]=o;return {src:e,alt:t,title:r}}})]}}),TN=u2;g();var c2=Bt.create({name:"textAlign",addOptions(){return {types:[],alignments:["left","center","right","justify"],defaultAlignment:null}},addGlobalAttributes(){return [{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:o=>{let t=o.style.textAlign;return this.options.alignments.includes(t)?t:this.options.defaultAlignment},renderHTML:o=>o.textAlign?{style:`text-align: ${o.textAlign}`}:{}}}}]},addCommands(){return {setTextAlign:o=>({commands:t})=>this.options.alignments.includes(o)?this.options.types.map(e=>t.updateAttributes(e,{textAlign:o})).some(e=>e):false,unsetTextAlign:()=>({commands:o})=>this.options.types.map(t=>o.resetAttributes(t,"textAlign")).some(t=>t),toggleTextAlign:o=>({editor:t,commands:e})=>this.options.alignments.includes(o)?t.isActive({textAlign:o})?e.unsetTextAlign():e.setTextAlign(o):false}},addKeyboardShortcuts(){return {"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),CN=c2;g();var p2=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,m2=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,h2=lo.create({name:"highlight",addOptions(){return {multicolor:false,HTMLAttributes:{}}},addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:o=>o.getAttribute("data-color")||Qn(o,"background-color")||o.style.backgroundColor,renderHTML:o=>o.color?{"data-color":o.color,style:`background-color: ${o.color}; color: inherit`}:{}}}:{}},parseHTML(){return [{tag:"mark"}]},renderHTML({HTMLAttributes:o}){return ["mark",Jt(this.options.HTMLAttributes,o),0]},renderMarkdown:(o,t)=>`==${t.renderChildren(o)}==`,parseMarkdown:(o,t)=>t.applyMark("highlight",t.parseInline(o.tokens||[])),markdownTokenizer:{name:"highlight",level:"inline",start:o=>o.indexOf("=="),tokenize(o,t,e){let n=/^(==)([^=]+)(==)/.exec(o);if(n){let i=n[2].trim(),s=e.inlineTokens(i);return {type:"highlight",raw:n[0],text:i,tokens:s}}}},addCommands(){return {setHighlight:o=>({commands:t})=>t.setMark(this.name,o),toggleHighlight:o=>({commands:t})=>t.toggleMark(this.name,o),unsetHighlight:()=>({commands:o})=>o.unsetMark(this.name)}},addKeyboardShortcuts(){return {"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return [Jn({find:p2,type:this.type})]},addPasteRules(){return [yn({find:m2,type:this.type})]}}),kN=h2;g();var NN=FP;g();var LN=OP;g();var y2=20,MN=(o,t=0)=>{let e=[];return !o.children.length||t>y2||Array.from(o.children).forEach(r=>{r.tagName==="SPAN"?e.push(r):r.children.length&&e.push(...MN(r,t+1));}),e},d2=o=>{if(!o.children.length)return;let t=MN(o);t&&t.forEach(e=>{var r,n;let i=e.getAttribute("style"),s=(n=(r=e.parentElement)==null?void 0:r.closest("span"))==null?void 0:n.getAttribute("style");e.setAttribute("style",`${s};${i}`);});},zE=lo.create({name:"textStyle",priority:101,addOptions(){return {HTMLAttributes:{},mergeNestedSpanStyles:true}},parseHTML(){return [{tag:"span",consuming:false,getAttrs:o=>o.hasAttribute("style")?(this.options.mergeNestedSpanStyles&&d2(o),{}):false}]},renderHTML({HTMLAttributes:o}){return ["span",Jt(this.options.HTMLAttributes,o),0]},addCommands(){return {toggleTextStyle:o=>({commands:t})=>t.toggleMark(this.name,o),removeEmptyTextStyle:()=>({tr:o})=>{let{selection:t}=o;return o.doc.nodesBetween(t.from,t.to,(e,r)=>{if(e.isTextblock)return true;e.marks.filter(n=>n.type===this.type).some(n=>Object.values(n.attrs).some(i=>!!i))||o.removeMark(r,r+e.nodeSize,this.type);}),true}}}}),f2=Bt.create({name:"backgroundColor",addOptions(){return {types:["textStyle"]}},addGlobalAttributes(){return [{types:this.options.types,attributes:{backgroundColor:{default:null,parseHTML:o=>{var t;let e=(t=Qn(o,"background-color"))!=null?t:o.style.backgroundColor;return e?.replace(/['"]+/g,"")},renderHTML:o=>o.backgroundColor?{style:`background-color: ${o.backgroundColor}`}:{}}}}]},addCommands(){return {setBackgroundColor:o=>({chain:t})=>t().setMark("textStyle",{backgroundColor:o}).run(),unsetBackgroundColor:()=>({chain:o})=>o().setMark("textStyle",{backgroundColor:null}).removeEmptyTextStyle().run()}}}),_E=Bt.create({name:"color",addOptions(){return {types:["textStyle"]}},addGlobalAttributes(){return [{types:this.options.types,attributes:{color:{default:null,parseHTML:o=>{var t;let e=(t=Qn(o,"color"))!=null?t:o.style.color;return e?.replace(/['"]+/g,"")},renderHTML:o=>o.color?{style:`color: ${o.color}`}:{}}}}]},addCommands(){return {setColor:o=>({chain:t})=>t().setMark("textStyle",{color:o}).run(),unsetColor:()=>({chain:o})=>o().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()}}}),b2=Bt.create({name:"fontFamily",addOptions(){return {types:["textStyle"]}},addGlobalAttributes(){return [{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:o=>{var t;return (t=Qn(o,"font-family"))!=null?t:o.style.fontFamily},renderHTML:o=>o.fontFamily?{style:`font-family: ${o.fontFamily}`}:{}}}}]},addCommands(){return {setFontFamily:o=>({chain:t})=>t().setMark("textStyle",{fontFamily:o}).run(),unsetFontFamily:()=>({chain:o})=>o().setMark("textStyle",{fontFamily:null}).removeEmptyTextStyle().run()}}}),g2=Bt.create({name:"fontSize",addOptions(){return {types:["textStyle"]}},addGlobalAttributes(){return [{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:o=>{var t;return (t=Qn(o,"font-size"))!=null?t:o.style.fontSize},renderHTML:o=>o.fontSize?{style:`font-size: ${o.fontSize}`}:{}}}}]},addCommands(){return {setFontSize:o=>({chain:t})=>t().setMark("textStyle",{fontSize:o}).run(),unsetFontSize:()=>({chain:o})=>o().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()}}}),S2=Bt.create({name:"lineHeight",addOptions(){return {types:["textStyle"]}},addGlobalAttributes(){return [{types:this.options.types,attributes:{lineHeight:{default:null,parseHTML:o=>{var t;return (t=Qn(o,"line-height"))!=null?t:o.style.lineHeight},renderHTML:o=>o.lineHeight?{style:`line-height: ${o.lineHeight}`}:{}}}}]},addCommands(){return {setLineHeight:o=>({chain:t})=>t().setMark("textStyle",{lineHeight:o}).run(),unsetLineHeight:()=>({chain:o})=>o().setMark("textStyle",{lineHeight:null}).removeEmptyTextStyle().run()}}});Bt.create({name:"textStyleKit",addExtensions(){let o=[];return this.options.backgroundColor!==false&&o.push(f2.configure(this.options.backgroundColor)),this.options.color!==false&&o.push(_E.configure(this.options.color)),this.options.fontFamily!==false&&o.push(b2.configure(this.options.fontFamily)),this.options.fontSize!==false&&o.push(g2.configure(this.options.fontSize)),this.options.lineHeight!==false&&o.push(S2.configure(this.options.lineHeight)),this.options.textStyle!==false&&o.push(zE.configure(this.options.textStyle)),o}});g();var IN=_E;var g1t=`
296
+ .kyro-richtext {
297
+ color: inherit;
298
+ line-height: 1.7;
299
+ }
300
+
301
+ .kyro-richtext > *:first-child {
302
+ margin-top: 0;
303
+ }
304
+
305
+ .kyro-richtext > *:last-child {
306
+ margin-bottom: 0;
307
+ }
308
+
309
+ .kyro-richtext p,
310
+ .kyro-richtext ul,
311
+ .kyro-richtext ol,
312
+ .kyro-richtext blockquote,
313
+ .kyro-richtext pre {
314
+ margin: 0 0 1rem;
315
+ }
316
+
317
+ .kyro-richtext h1,
318
+ .kyro-richtext h2,
319
+ .kyro-richtext h3,
320
+ .kyro-richtext h4,
321
+ .kyro-richtext h5,
322
+ .kyro-richtext h6 {
323
+ margin: 0 0 0.75rem;
324
+ line-height: 1.2;
325
+ }
326
+
327
+ .kyro-richtext ul,
328
+ .kyro-richtext ol {
329
+ padding-left: 1.5rem;
330
+ }
331
+
332
+ .kyro-richtext blockquote {
333
+ border-left: 4px solid rgba(148, 163, 184, 0.5);
334
+ margin-left: 0;
335
+ padding-left: 1rem;
336
+ font-style: italic;
337
+ }
338
+
339
+ .kyro-richtext pre {
340
+ overflow-x: auto;
341
+ border-radius: 0.75rem;
342
+ background: rgba(15, 23, 42, 0.92);
343
+ color: #f8fafc;
344
+ padding: 1rem;
345
+ }
346
+
347
+ .kyro-richtext code {
348
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
349
+ }
350
+
351
+ .kyro-richtext img {
352
+ display: block;
353
+ max-width: 100%;
354
+ height: auto;
355
+ border-radius: 0.75rem;
356
+ }
357
+
358
+ .kyro-richtext ul[data-type="taskList"] {
359
+ list-style: none;
360
+ padding: 0;
361
+ }
362
+
363
+ .kyro-richtext li[data-type="taskItem"] {
364
+ display: flex;
365
+ align-items: flex-start;
366
+ gap: 0.5rem;
367
+ }
368
+
369
+ .kyro-richtext li[data-type="taskItem"] > label {
370
+ user-select: none;
371
+ pointer-events: none;
372
+ margin-top: 0.2rem;
373
+ }
374
+
375
+ .kyro-richtext li[data-type="taskItem"] > div {
376
+ flex: 1;
377
+ }
378
+
379
+ .kyro-richtext mark {
380
+ background-color: #fef08a;
381
+ border-radius: 0.25rem;
382
+ padding: 0.125rem 0.25rem;
383
+ }
384
+ `.trim(),P2=[vN,z0.configure({openOnClick:false}),TN,CN.configure({types:["heading","paragraph"]}),sN,kN.configure({multicolor:true}),NN,LN.configure({nested:true}),zE,IN];function S1t(o){return typeof o=="object"&&o!==null?o:{}}function P1t(o){if(typeof o!="object"||o===null)return "";try{return `<div class="kyro-richtext">${S0(o,P2)}</div>`}catch(t){return console.error("Failed to render rich text:",t),""}}export{A2 as a,w2 as b,x2 as c,E2 as d,v2 as e,T2 as f,C2 as g,k2 as h,N2 as i,L2 as j,M2 as k,I2 as l,R2 as m,RN as n,DN as o,ON as p,FN as q,D2 as r,O2 as s,g1t as t,S1t as u,P1t as v};